window.__require = function e(t, n, o) {
    function r(a, s) {
        if (!n[a]) {
            if (!t[a]) {
                var l = a.split("/");
                if (l = l[l.length - 1], !t[l]) {
                    var c = "function" == typeof __require && __require;
                    if (!s && c) return c(l, !0);
                    if (i) return i(l, !0);
                    throw new Error("Cannot find module '" + a + "'")
                }
                a = l
            }
            var u = n[a] = {
                exports: {}
            };
            t[a][0].call(u.exports, function(e) {
                return r(t[a][1][e] || e)
            }, u, u.exports, e, t, n, o)
        }
        return n[a].exports
    }
    for (var i = "function" == typeof __require && __require, a = 0; a < o.length; a++) r(o[a]);
    return r
}({
    1: [function(e, t, n) {
        "use strict";
        const o = n;
        o.bignum = e("bn.js"), o.define = e("./asn1/api").define, o.base = e("./asn1/base"), o.constants = e("./asn1/constants"), o.decoders = e("./asn1/decoders"), o.encoders = e("./asn1/encoders")
    }, {
        "./asn1/api": 2,
        "./asn1/base": 4,
        "./asn1/constants": 8,
        "./asn1/decoders": 10,
        "./asn1/encoders": 13,
        "bn.js": 15
    }],
    2: [function(e, t, n) {
        "use strict";
        const o = e("./encoders"),
            r = e("./decoders"),
            i = e("inherits");

        function a(e, t) {
            this.name = e, this.body = t, this.decoders = {}, this.encoders = {}
        }
        n.define = function(e, t) {
            return new a(e, t)
        }, a.prototype._createNamed = function(e) {
            const t = this.name;

            function n(e) {
                this._initNamed(e, t)
            }
            return i(n, e), n.prototype._initNamed = function(t, n) {
                e.call(this, t, n)
            }, new n(this)
        }, a.prototype._getDecoder = function(e) {
            return e = e || "der", this.decoders.hasOwnProperty(e) || (this.decoders[e] = this._createNamed(r[e])), this.decoders[e]
        }, a.prototype.decode = function(e, t, n) {
            return this._getDecoder(t).decode(e, n)
        }, a.prototype._getEncoder = function(e) {
            return e = e || "der", this.encoders.hasOwnProperty(e) || (this.encoders[e] = this._createNamed(o[e])), this.encoders[e]
        }, a.prototype.encode = function(e, t, n) {
            return this._getEncoder(t).encode(e, n)
        }
    }, {
        "./decoders": 10,
        "./encoders": 13,
        inherits: 138
    }],
    3: [function(e, t, n) {
        "use strict";
        const o = e("inherits"),
            r = e("../base/reporter").Reporter,
            i = e("safer-buffer").Buffer;

        function a(e, t) {
            r.call(this, t), i.isBuffer(e) ? (this.base = e, this.offset = 0, this.length = e.length) : this.error("Input not Buffer")
        }

        function s(e, t) {
            if (Array.isArray(e)) this.length = 0, this.value = e.map(function(e) {
                return s.isEncoderBuffer(e) || (e = new s(e, t)), this.length += e.length, e
            }, this);
            else if ("number" == typeof e) {
                if (!(0 <= e && e <= 255)) return t.error("non-byte EncoderBuffer value");
                this.value = e, this.length = 1
            } else if ("string" == typeof e) this.value = e, this.length = i.byteLength(e);
            else {
                if (!i.isBuffer(e)) return t.error("Unsupported type: " + typeof e);
                this.value = e, this.length = e.length
            }
        }
        o(a, r), n.DecoderBuffer = a, a.isDecoderBuffer = function(e) {
            return e instanceof a || "object" == typeof e && i.isBuffer(e.base) && "DecoderBuffer" === e.constructor.name && "number" == typeof e.offset && "number" == typeof e.length && "function" == typeof e.save && "function" == typeof e.restore && "function" == typeof e.isEmpty && "function" == typeof e.readUInt8 && "function" == typeof e.skip && "function" == typeof e.raw
        }, a.prototype.save = function() {
            return {
                offset: this.offset,
                reporter: r.prototype.save.call(this)
            }
        }, a.prototype.restore = function(e) {
            const t = new a(this.base);
            return t.offset = e.offset, t.length = this.offset, this.offset = e.offset, r.prototype.restore.call(this, e.reporter), t
        }, a.prototype.isEmpty = function() {
            return this.offset === this.length
        }, a.prototype.readUInt8 = function(e) {
            return this.offset + 1 <= this.length ? this.base.readUInt8(this.offset++, !0) : this.error(e || "DecoderBuffer overrun")
        }, a.prototype.skip = function(e, t) {
            if (!(this.offset + e <= this.length)) return this.error(t || "DecoderBuffer overrun");
            const n = new a(this.base);
            return n._reporterState = this._reporterState, n.offset = this.offset, n.length = this.offset + e, this.offset += e, n
        }, a.prototype.raw = function(e) {
            return this.base.slice(e ? e.offset : this.offset, this.length)
        }, n.EncoderBuffer = s, s.isEncoderBuffer = function(e) {
            return e instanceof s || "object" == typeof e && "EncoderBuffer" === e.constructor.name && "number" == typeof e.length && "function" == typeof e.join
        }, s.prototype.join = function(e, t) {
            return e || (e = i.alloc(this.length)), t || (t = 0), 0 === this.length ? e : (Array.isArray(this.value) ? this.value.forEach(function(n) {
                n.join(e, t), t += n.length
            }) : ("number" == typeof this.value ? e[t] = this.value : "string" == typeof this.value ? e.write(this.value, t) : i.isBuffer(this.value) && this.value.copy(e, t), t += this.length), e)
        }
    }, {
        "../base/reporter": 6,
        inherits: 138,
        "safer-buffer": 184
    }],
    4: [function(e, t, n) {
        "use strict";
        const o = n;
        o.Reporter = e("./reporter").Reporter, o.DecoderBuffer = e("./buffer").DecoderBuffer, o.EncoderBuffer = e("./buffer").EncoderBuffer, o.Node = e("./node")
    }, {
        "./buffer": 3,
        "./node": 5,
        "./reporter": 6
    }],
    5: [function(e, t) {
        "use strict";
        const n = e("../base/reporter").Reporter,
            o = e("../base/buffer").EncoderBuffer,
            r = e("../base/buffer").DecoderBuffer,
            i = e("minimalistic-assert"),
            a = ["seq", "seqof", "set", "setof", "objid", "bool", "gentime", "utctime", "null_", "enum", "int", "objDesc", "bitstr", "bmpstr", "charstr", "genstr", "graphstr", "ia5str", "iso646str", "numstr", "octstr", "printstr", "t61str", "unistr", "utf8str", "videostr"],
            s = ["key", "obj", "use", "optional", "explicit", "implicit", "def", "choice", "any", "contains"].concat(a);

        function l(e, t, n) {
            const o = {};
            this._baseState = o, o.name = n, o.enc = e, o.parent = t || null, o.children = null, o.tag = null, o.args = null, o.reverseArgs = null, o.choice = null, o.optional = !1, o.any = !1, o.obj = !1, o.use = null, o.useDecoder = null, o.key = null, o.default = null, o.explicit = null, o.implicit = null, o.contains = null, o.parent || (o.children = [], this._wrap())
        }
        t.exports = l;
        const c = ["enc", "parent", "children", "tag", "args", "reverseArgs", "choice", "optional", "any", "obj", "use", "alteredUse", "key", "default", "explicit", "implicit", "contains"];
        l.prototype.clone = function() {
            const e = this._baseState,
                t = {};
            c.forEach(function(n) {
                t[n] = e[n]
            });
            const n = new this.constructor(t.parent);
            return n._baseState = t, n
        }, l.prototype._wrap = function() {
            const e = this._baseState;
            s.forEach(function(t) {
                this[t] = function() {
                    const n = new this.constructor(this);
                    return e.children.push(n), n[t].apply(n, arguments)
                }
            }, this)
        }, l.prototype._init = function(e) {
            const t = this._baseState;
            i(null === t.parent), e.call(this), t.children = t.children.filter(function(e) {
                return e._baseState.parent === this
            }, this), i.equal(t.children.length, 1, "Root node can have only one child")
        }, l.prototype._useArgs = function(e) {
            const t = this._baseState,
                n = e.filter(function(e) {
                    return e instanceof this.constructor
                }, this);
            e = e.filter(function(e) {
                return !(e instanceof this.constructor)
            }, this), 0 !== n.length && (i(null === t.children), t.children = n, n.forEach(function(e) {
                e._baseState.parent = this
            }, this)), 0 !== e.length && (i(null === t.args), t.args = e, t.reverseArgs = e.map(function(e) {
                if ("object" != typeof e || e.constructor !== Object) return e;
                const t = {};
                return Object.keys(e).forEach(function(n) {
                    n == (0 | n) && (n |= 0);
                    const o = e[n];
                    t[o] = n
                }), t
            }))
        }, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach(function(e) {
            l.prototype[e] = function() {
                const t = this._baseState;
                throw new Error(e + " not implemented for encoding: " + t.enc)
            }
        }), a.forEach(function(e) {
            l.prototype[e] = function() {
                const t = this._baseState,
                    n = Array.prototype.slice.call(arguments);
                return i(null === t.tag), t.tag = e, this._useArgs(n), this
            }
        }), l.prototype.use = function(e) {
            i(e);
            const t = this._baseState;
            return i(null === t.use), t.use = e, this
        }, l.prototype.optional = function() {
            return this._baseState.optional = !0, this
        }, l.prototype.def = function(e) {
            const t = this._baseState;
            return i(null === t.default), t.default = e, t.optional = !0, this
        }, l.prototype.explicit = function(e) {
            const t = this._baseState;
            return i(null === t.explicit && null === t.implicit), t.explicit = e, this
        }, l.prototype.implicit = function(e) {
            const t = this._baseState;
            return i(null === t.explicit && null === t.implicit), t.implicit = e, this
        }, l.prototype.obj = function() {
            const e = this._baseState,
                t = Array.prototype.slice.call(arguments);
            return e.obj = !0, 0 !== t.length && this._useArgs(t), this
        }, l.prototype.key = function(e) {
            const t = this._baseState;
            return i(null === t.key), t.key = e, this
        }, l.prototype.any = function() {
            return this._baseState.any = !0, this
        }, l.prototype.choice = function(e) {
            const t = this._baseState;
            return i(null === t.choice), t.choice = e, this._useArgs(Object.keys(e).map(function(t) {
                return e[t]
            })), this
        }, l.prototype.contains = function(e) {
            const t = this._baseState;
            return i(null === t.use), t.contains = e, this
        }, l.prototype._decode = function(e, t) {
            const n = this._baseState;
            if (null === n.parent) return e.wrapResult(n.children[0]._decode(e, t));
            let o, i = n.default,
                a = !0,
                s = null;
            if (null !== n.key && (s = e.enterKey(n.key)), n.optional) {
                let o = null;
                if (null !== n.explicit ? o = n.explicit : null !== n.implicit ? o = n.implicit : null !== n.tag && (o = n.tag), null !== o || n.any) {
                    if (a = this._peekTag(e, o, n.any), e.isError(a)) return a
                } else {
                    const o = e.save();
                    try {
                        null === n.choice ? this._decodeGeneric(n.tag, e, t) : this._decodeChoice(e, t), a = !0
                    } catch (l) {
                        a = !1
                    }
                    e.restore(o)
                }
            }
            if (n.obj && a && (o = e.enterObject()), a) {
                if (null !== n.explicit) {
                    const t = this._decodeTag(e, n.explicit);
                    if (e.isError(t)) return t;
                    e = t
                }
                const o = e.offset;
                if (null === n.use && null === n.choice) {
                    let t;
                    n.any && (t = e.save());
                    const o = this._decodeTag(e, null !== n.implicit ? n.implicit : n.tag, n.any);
                    if (e.isError(o)) return o;
                    n.any ? i = e.raw(t) : e = o
                }
                if (t && t.track && null !== n.tag && t.track(e.path(), o, e.length, "tagged"), t && t.track && null !== n.tag && t.track(e.path(), e.offset, e.length, "content"), n.any || (i = null === n.choice ? this._decodeGeneric(n.tag, e, t) : this._decodeChoice(e, t)), e.isError(i)) return i;
                if (n.any || null !== n.choice || null === n.children || n.children.forEach(function(n) {
                        n._decode(e, t)
                    }), n.contains && ("octstr" === n.tag || "bitstr" === n.tag)) {
                    const o = new r(i);
                    i = this._getUse(n.contains, e._reporterState.obj)._decode(o, t)
                }
            }
            return n.obj && a && (i = e.leaveObject(o)), null === n.key || null === i && !0 !== a ? null !== s && e.exitKey(s) : e.leaveKey(s, n.key, i), i
        }, l.prototype._decodeGeneric = function(e, t, n) {
            const o = this._baseState;
            return "seq" === e || "set" === e ? null : "seqof" === e || "setof" === e ? this._decodeList(t, e, o.args[0], n) : /str$/.test(e) ? this._decodeStr(t, e, n) : "objid" === e && o.args ? this._decodeObjid(t, o.args[0], o.args[1], n) : "objid" === e ? this._decodeObjid(t, null, null, n) : "gentime" === e || "utctime" === e ? this._decodeTime(t, e, n) : "null_" === e ? this._decodeNull(t, n) : "bool" === e ? this._decodeBool(t, n) : "objDesc" === e ? this._decodeStr(t, e, n) : "int" === e || "enum" === e ? this._decodeInt(t, o.args && o.args[0], n) : null !== o.use ? this._getUse(o.use, t._reporterState.obj)._decode(t, n) : t.error("unknown tag: " + e)
        }, l.prototype._getUse = function(e, t) {
            const n = this._baseState;
            return n.useDecoder = this._use(e, t), i(null === n.useDecoder._baseState.parent), n.useDecoder = n.useDecoder._baseState.children[0], n.implicit !== n.useDecoder._baseState.implicit && (n.useDecoder = n.useDecoder.clone(), n.useDecoder._baseState.implicit = n.implicit), n.useDecoder
        }, l.prototype._decodeChoice = function(e, t) {
            const n = this._baseState;
            let o = null,
                r = !1;
            return Object.keys(n.choice).some(function(i) {
                const a = e.save(),
                    s = n.choice[i];
                try {
                    const n = s._decode(e, t);
                    if (e.isError(n)) return !1;
                    o = {
                        type: i,
                        value: n
                    }, r = !0
                } catch (l) {
                    return e.restore(a), !1
                }
                return !0
            }, this), r ? o : e.error("Choice not matched")
        }, l.prototype._createEncoderBuffer = function(e) {
            return new o(e, this.reporter)
        }, l.prototype._encode = function(e, t, n) {
            const o = this._baseState;
            if (null !== o.default && o.default === e) return;
            const r = this._encodeValue(e, t, n);
            return void 0 === r || this._skipDefault(r, t, n) ? void 0 : r
        }, l.prototype._encodeValue = function(e, t, o) {
            const r = this._baseState;
            if (null === r.parent) return r.children[0]._encode(e, t || new n);
            let i = null;
            if (this.reporter = t, r.optional && void 0 === e) {
                if (null === r.default) return;
                e = r.default
            }
            let a = null,
                s = !1;
            if (r.any) i = this._createEncoderBuffer(e);
            else if (r.choice) i = this._encodeChoice(e, t);
            else if (r.contains) a = this._getUse(r.contains, o)._encode(e, t), s = !0;
            else if (r.children) a = r.children.map(function(n) {
                if ("null_" === n._baseState.tag) return n._encode(null, t, e);
                if (null === n._baseState.key) return t.error("Child should have a key");
                const o = t.enterKey(n._baseState.key);
                if ("object" != typeof e) return t.error("Child expected, but input is not object");
                const r = n._encode(e[n._baseState.key], t, e);
                return t.leaveKey(o), r
            }, this).filter(function(e) {
                return e
            }), a = this._createEncoderBuffer(a);
            else if ("seqof" === r.tag || "setof" === r.tag) {
                if (!r.args || 1 !== r.args.length) return t.error("Too many args for : " + r.tag);
                if (!Array.isArray(e)) return t.error("seqof/setof, but data is not Array");
                const n = this.clone();
                n._baseState.implicit = null, a = this._createEncoderBuffer(e.map(function(n) {
                    const o = this._baseState;
                    return this._getUse(o.args[0], e)._encode(n, t)
                }, n))
            } else null !== r.use ? i = this._getUse(r.use, o)._encode(e, t) : (a = this._encodePrimitive(r.tag, e), s = !0);
            if (!r.any && null === r.choice) {
                const e = null !== r.implicit ? r.implicit : r.tag,
                    n = null === r.implicit ? "universal" : "context";
                null === e ? null === r.use && t.error("Tag could be omitted only for .use()") : null === r.use && (i = this._encodeComposite(e, s, n, a))
            }
            return null !== r.explicit && (i = this._encodeComposite(r.explicit, !1, "context", i)), i
        }, l.prototype._encodeChoice = function(e, t) {
            const n = this._baseState,
                o = n.choice[e.type];
            return o || i(!1, e.type + " not found in " + JSON.stringify(Object.keys(n.choice))), o._encode(e.value, t)
        }, l.prototype._encodePrimitive = function(e, t) {
            const n = this._baseState;
            if (/str$/.test(e)) return this._encodeStr(t, e);
            if ("objid" === e && n.args) return this._encodeObjid(t, n.reverseArgs[0], n.args[1]);
            if ("objid" === e) return this._encodeObjid(t, null, null);
            if ("gentime" === e || "utctime" === e) return this._encodeTime(t, e);
            if ("null_" === e) return this._encodeNull();
            if ("int" === e || "enum" === e) return this._encodeInt(t, n.args && n.reverseArgs[0]);
            if ("bool" === e) return this._encodeBool(t);
            if ("objDesc" === e) return this._encodeStr(t, e);
            throw new Error("Unsupported tag: " + e)
        }, l.prototype._isNumstr = function(e) {
            return /^[0-9 ]*$/.test(e)
        }, l.prototype._isPrintstr = function(e) {
            return /^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)
        }
    }, {
        "../base/buffer": 3,
        "../base/reporter": 6,
        "minimalistic-assert": 142
    }],
    6: [function(e, t, n) {
        "use strict";
        const o = e("inherits");

        function r(e) {
            this._reporterState = {
                obj: null,
                path: [],
                options: e || {},
                errors: []
            }
        }

        function i(e, t) {
            this.path = e, this.rethrow(t)
        }
        n.Reporter = r, r.prototype.isError = function(e) {
            return e instanceof i
        }, r.prototype.save = function() {
            const e = this._reporterState;
            return {
                obj: e.obj,
                pathLen: e.path.length
            }
        }, r.prototype.restore = function(e) {
            const t = this._reporterState;
            t.obj = e.obj, t.path = t.path.slice(0, e.pathLen)
        }, r.prototype.enterKey = function(e) {
            return this._reporterState.path.push(e)
        }, r.prototype.exitKey = function(e) {
            const t = this._reporterState;
            t.path = t.path.slice(0, e - 1)
        }, r.prototype.leaveKey = function(e, t, n) {
            const o = this._reporterState;
            this.exitKey(e), null !== o.obj && (o.obj[t] = n)
        }, r.prototype.path = function() {
            return this._reporterState.path.join("/")
        }, r.prototype.enterObject = function() {
            const e = this._reporterState,
                t = e.obj;
            return e.obj = {}, t
        }, r.prototype.leaveObject = function(e) {
            const t = this._reporterState,
                n = t.obj;
            return t.obj = e, n
        }, r.prototype.error = function(e) {
            let t;
            const n = this._reporterState,
                o = e instanceof i;
            if (t = o ? e : new i(n.path.map(function(e) {
                    return "[" + JSON.stringify(e) + "]"
                }).join(""), e.message || e, e.stack), !n.options.partial) throw t;
            return o || n.errors.push(t), t
        }, r.prototype.wrapResult = function(e) {
            const t = this._reporterState;
            return t.options.partial ? {
                result: this.isError(e) ? null : e,
                errors: t.errors
            } : e
        }, o(i, Error), i.prototype.rethrow = function(e) {
            if (this.message = e + " at: " + (this.path || "(shallow)"), Error.captureStackTrace && Error.captureStackTrace(this, i), !this.stack) try {
                throw new Error(this.message)
            } catch (t) {
                this.stack = t.stack
            }
            return this
        }
    }, {
        inherits: 138
    }],
    7: [function(e, t, n) {
        "use strict";

        function o(e) {
            const t = {};
            return Object.keys(e).forEach(function(n) {
                (0 | n) == n && (n |= 0);
                const o = e[n];
                t[o] = n
            }), t
        }
        n.tagClass = {
            0: "universal",
            1: "application",
            2: "context",
            3: "private"
        }, n.tagClassByName = o(n.tagClass), n.tag = {
            0: "end",
            1: "bool",
            2: "int",
            3: "bitstr",
            4: "octstr",
            5: "null_",
            6: "objid",
            7: "objDesc",
            8: "external",
            9: "real",
            10: "enum",
            11: "embed",
            12: "utf8str",
            13: "relativeOid",
            16: "seq",
            17: "set",
            18: "numstr",
            19: "printstr",
            20: "t61str",
            21: "videostr",
            22: "ia5str",
            23: "utctime",
            24: "gentime",
            25: "graphstr",
            26: "iso646str",
            27: "genstr",
            28: "unistr",
            29: "charstr",
            30: "bmpstr"
        }, n.tagByName = o(n.tag)
    }, {}],
    8: [function(e, t, n) {
        "use strict";
        const o = n;
        o._reverse = function(e) {
            const t = {};
            return Object.keys(e).forEach(function(n) {
                (0 | n) == n && (n |= 0);
                const o = e[n];
                t[o] = n
            }), t
        }, o.der = e("./der")
    }, {
        "./der": 7
    }],
    9: [function(e, t) {
        "use strict";
        const n = e("inherits"),
            o = e("bn.js"),
            r = e("../base/buffer").DecoderBuffer,
            i = e("../base/node"),
            a = e("../constants/der");

        function s(e) {
            this.enc = "der", this.name = e.name, this.entity = e, this.tree = new l, this.tree._init(e.body)
        }

        function l(e) {
            i.call(this, "der", e)
        }

        function c(e, t) {
            let n = e.readUInt8(t);
            if (e.isError(n)) return n;
            const o = a.tagClass[n >> 6],
                r = 0 == (32 & n);
            if (31 == (31 & n)) {
                let o = n;
                for (n = 0; 128 == (128 & o);) {
                    if (o = e.readUInt8(t), e.isError(o)) return o;
                    n <<= 7, n |= 127 & o
                }
            } else n &= 31;
            return {
                cls: o,
                primitive: r,
                tag: n,
                tagStr: a.tag[n]
            }
        }

        function u(e, t, n) {
            let o = e.readUInt8(n);
            if (e.isError(o)) return o;
            if (!t && 128 === o) return null;
            if (0 == (128 & o)) return o;
            const r = 127 & o;
            if (r > 4) return e.error("length octect is too long");
            o = 0;
            for (let i = 0; i < r; i++) {
                o <<= 8;
                const t = e.readUInt8(n);
                if (e.isError(t)) return t;
                o |= t
            }
            return o
        }
        t.exports = s, s.prototype.decode = function(e, t) {
            return r.isDecoderBuffer(e) || (e = new r(e, t)), this.tree._decode(e, t)
        }, n(l, i), l.prototype._peekTag = function(e, t, n) {
            if (e.isEmpty()) return !1;
            const o = e.save(),
                r = c(e, 'Failed to peek tag: "' + t + '"');
            return e.isError(r) ? r : (e.restore(o), r.tag === t || r.tagStr === t || r.tagStr + "of" === t || n)
        }, l.prototype._decodeTag = function(e, t, n) {
            const o = c(e, 'Failed to decode tag of "' + t + '"');
            if (e.isError(o)) return o;
            let r = u(e, o.primitive, 'Failed to get length of "' + t + '"');
            if (e.isError(r)) return r;
            if (!n && o.tag !== t && o.tagStr !== t && o.tagStr + "of" !== t) return e.error('Failed to match tag: "' + t + '"');
            if (o.primitive || null !== r) return e.skip(r, 'Failed to match body of: "' + t + '"');
            const i = e.save(),
                a = this._skipUntilEnd(e, 'Failed to skip indefinite length body: "' + this.tag + '"');
            return e.isError(a) ? a : (r = e.offset - i.offset, e.restore(i), e.skip(r, 'Failed to match body of: "' + t + '"'))
        }, l.prototype._skipUntilEnd = function(e, t) {
            for (;;) {
                const n = c(e, t);
                if (e.isError(n)) return n;
                const o = u(e, n.primitive, t);
                if (e.isError(o)) return o;
                let r;
                if (r = n.primitive || null !== o ? e.skip(o) : this._skipUntilEnd(e, t), e.isError(r)) return r;
                if ("end" === n.tagStr) break
            }
        }, l.prototype._decodeList = function(e, t, n, o) {
            const r = [];
            for (; !e.isEmpty();) {
                const t = this._peekTag(e, "end");
                if (e.isError(t)) return t;
                const i = n.decode(e, "der", o);
                if (e.isError(i) && t) break;
                r.push(i)
            }
            return r
        }, l.prototype._decodeStr = function(e, t) {
            if ("bitstr" === t) {
                const t = e.readUInt8();
                return e.isError(t) ? t : {
                    unused: t,
                    data: e.raw()
                }
            }
            if ("bmpstr" === t) {
                const t = e.raw();
                if (t.length % 2 == 1) return e.error("Decoding of string type: bmpstr length mismatch");
                let n = "";
                for (let e = 0; e < t.length / 2; e++) n += String.fromCharCode(t.readUInt16BE(2 * e));
                return n
            }
            if ("numstr" === t) {
                const t = e.raw().toString("ascii");
                return this._isNumstr(t) ? t : e.error("Decoding of string type: numstr unsupported characters")
            }
            if ("octstr" === t) return e.raw();
            if ("objDesc" === t) return e.raw();
            if ("printstr" === t) {
                const t = e.raw().toString("ascii");
                return this._isPrintstr(t) ? t : e.error("Decoding of string type: printstr unsupported characters")
            }
            return /str$/.test(t) ? e.raw().toString() : e.error("Decoding of string type: " + t + " unsupported")
        }, l.prototype._decodeObjid = function(e, t, n) {
            let o;
            const r = [];
            let i = 0,
                a = 0;
            for (; !e.isEmpty();) i <<= 7, i |= 127 & (a = e.readUInt8()), 0 == (128 & a) && (r.push(i), i = 0);
            128 & a && r.push(i);
            const s = r[0] / 40 | 0,
                l = r[0] % 40;
            if (o = n ? r : [s, l].concat(r.slice(1)), t) {
                let e = t[o.join(" ")];
                void 0 === e && (e = t[o.join(".")]), void 0 !== e && (o = e)
            }
            return o
        }, l.prototype._decodeTime = function(e, t) {
            const n = e.raw().toString();
            let o, r, i, a, s, l;
            if ("gentime" === t) o = 0 | n.slice(0, 4), r = 0 | n.slice(4, 6), i = 0 | n.slice(6, 8), a = 0 | n.slice(8, 10), s = 0 | n.slice(10, 12), l = 0 | n.slice(12, 14);
            else {
                if ("utctime" !== t) return e.error("Decoding " + t + " time is not supported yet");
                o = 0 | n.slice(0, 2), r = 0 | n.slice(2, 4), i = 0 | n.slice(4, 6), a = 0 | n.slice(6, 8), s = 0 | n.slice(8, 10), l = 0 | n.slice(10, 12), o = o < 70 ? 2e3 + o : 1900 + o
            }
            return Date.UTC(o, r - 1, i, a, s, l, 0)
        }, l.prototype._decodeNull = function() {
            return null
        }, l.prototype._decodeBool = function(e) {
            const t = e.readUInt8();
            return e.isError(t) ? t : 0 !== t
        }, l.prototype._decodeInt = function(e, t) {
            const n = e.raw();
            let r = new o(n);
            return t && (r = t[r.toString(10)] || r), r
        }, l.prototype._use = function(e, t) {
            return "function" == typeof e && (e = e(t)), e._getDecoder("der").tree
        }
    }, {
        "../base/buffer": 3,
        "../base/node": 5,
        "../constants/der": 7,
        "bn.js": 15,
        inherits: 138
    }],
    10: [function(e, t, n) {
        "use strict";
        const o = n;
        o.der = e("./der"), o.pem = e("./pem")
    }, {
        "./der": 9,
        "./pem": 11
    }],
    11: [function(e, t) {
        "use strict";
        const n = e("inherits"),
            o = e("safer-buffer").Buffer,
            r = e("./der");

        function i(e) {
            r.call(this, e), this.enc = "pem"
        }
        n(i, r), t.exports = i, i.prototype.decode = function(e, t) {
            const n = e.toString().split(/[\r\n]+/g),
                i = t.label.toUpperCase(),
                a = /^-----(BEGIN|END) ([^-]+)-----$/;
            let s = -1,
                l = -1;
            for (let o = 0; o < n.length; o++) {
                const e = n[o].match(a);
                if (null !== e && e[2] === i) {
                    if (-1 !== s) {
                        if ("END" !== e[1]) break;
                        l = o;
                        break
                    }
                    if ("BEGIN" !== e[1]) break;
                    s = o
                }
            }
            if (-1 === s || -1 === l) throw new Error("PEM section not found for: " + i);
            const c = n.slice(s + 1, l).join("");
            c.replace(/[^a-z0-9+/=]+/gi, "");
            const u = o.from(c, "base64");
            return r.prototype.decode.call(this, u, t)
        }
    }, {
        "./der": 9,
        inherits: 138,
        "safer-buffer": 184
    }],
    12: [function(e, t) {
        "use strict";
        const n = e("inherits"),
            o = e("safer-buffer").Buffer,
            r = e("../base/node"),
            i = e("../constants/der");

        function a(e) {
            this.enc = "der", this.name = e.name, this.entity = e, this.tree = new s, this.tree._init(e.body)
        }

        function s(e) {
            r.call(this, "der", e)
        }

        function l(e) {
            return e < 10 ? "0" + e : e
        }

        function c(e, t, n, o) {
            let r;
            if ("seqof" === e ? e = "seq" : "setof" === e && (e = "set"), i.tagByName.hasOwnProperty(e)) r = i.tagByName[e];
            else {
                if ("number" != typeof e || (0 | e) !== e) return o.error("Unknown tag: " + e);
                r = e
            }
            return r >= 31 ? o.error("Multi-octet tag encoding unsupported") : (t || (r |= 32), r |= i.tagClassByName[n || "universal"] << 6)
        }
        t.exports = a, a.prototype.encode = function(e, t) {
            return this.tree._encode(e, t).join()
        }, n(s, r), s.prototype._encodeComposite = function(e, t, n, r) {
            const i = c(e, t, n, this.reporter);
            if (r.length < 128) {
                const e = o.alloc(2);
                return e[0] = i, e[1] = r.length, this._createEncoderBuffer([e, r])
            }
            let a = 1;
            for (let o = r.length; o >= 256; o >>= 8) a++;
            const s = o.alloc(2 + a);
            s[0] = i, s[1] = 128 | a;
            for (let o = 1 + a, l = r.length; l > 0; o--, l >>= 8) s[o] = 255 & l;
            return this._createEncoderBuffer([s, r])
        }, s.prototype._encodeStr = function(e, t) {
            if ("bitstr" === t) return this._createEncoderBuffer([0 | e.unused, e.data]);
            if ("bmpstr" === t) {
                const t = o.alloc(2 * e.length);
                for (let n = 0; n < e.length; n++) t.writeUInt16BE(e.charCodeAt(n), 2 * n);
                return this._createEncoderBuffer(t)
            }
            return "numstr" === t ? this._isNumstr(e) ? this._createEncoderBuffer(e) : this.reporter.error("Encoding of string type: numstr supports only digits and space") : "printstr" === t ? this._isPrintstr(e) ? this._createEncoderBuffer(e) : this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark") : /str$/.test(t) ? this._createEncoderBuffer(e) : "objDesc" === t ? this._createEncoderBuffer(e) : this.reporter.error("Encoding of string type: " + t + " unsupported")
        }, s.prototype._encodeObjid = function(e, t, n) {
            if ("string" == typeof e) {
                if (!t) return this.reporter.error("string objid given, but no values map found");
                if (!t.hasOwnProperty(e)) return this.reporter.error("objid not found in values map");
                e = t[e].split(/[\s.]+/g);
                for (let t = 0; t < e.length; t++) e[t] |= 0
            } else if (Array.isArray(e)) {
                e = e.slice();
                for (let t = 0; t < e.length; t++) e[t] |= 0
            }
            if (!Array.isArray(e)) return this.reporter.error("objid() should be either array or string, got: " + JSON.stringify(e));
            if (!n) {
                if (e[1] >= 40) return this.reporter.error("Second objid identifier OOB");
                e.splice(0, 2, 40 * e[0] + e[1])
            }
            let r = 0;
            for (let o = 0; o < e.length; o++) {
                let t = e[o];
                for (r++; t >= 128; t >>= 7) r++
            }
            const i = o.alloc(r);
            let a = i.length - 1;
            for (let o = e.length - 1; o >= 0; o--) {
                let t = e[o];
                for (i[a--] = 127 & t;
                    (t >>= 7) > 0;) i[a--] = 128 | 127 & t
            }
            return this._createEncoderBuffer(i)
        }, s.prototype._encodeTime = function(e, t) {
            let n;
            const o = new Date(e);
            return "gentime" === t ? n = [l(o.getUTCFullYear()), l(o.getUTCMonth() + 1), l(o.getUTCDate()), l(o.getUTCHours()), l(o.getUTCMinutes()), l(o.getUTCSeconds()), "Z"].join("") : "utctime" === t ? n = [l(o.getUTCFullYear() % 100), l(o.getUTCMonth() + 1), l(o.getUTCDate()), l(o.getUTCHours()), l(o.getUTCMinutes()), l(o.getUTCSeconds()), "Z"].join("") : this.reporter.error("Encoding " + t + " time is not supported yet"), this._encodeStr(n, "octstr")
        }, s.prototype._encodeNull = function() {
            return this._createEncoderBuffer("")
        }, s.prototype._encodeInt = function(e, t) {
            if ("string" == typeof e) {
                if (!t) return this.reporter.error("String int or enum given, but no values map");
                if (!t.hasOwnProperty(e)) return this.reporter.error("Values map doesn't contain: " + JSON.stringify(e));
                e = t[e]
            }
            if ("number" != typeof e && !o.isBuffer(e)) {
                const t = e.toArray();
                !e.sign && 128 & t[0] && t.unshift(0), e = o.from(t)
            }
            if (o.isBuffer(e)) {
                let t = e.length;
                0 === e.length && t++;
                const n = o.alloc(t);
                return e.copy(n), 0 === e.length && (n[0] = 0), this._createEncoderBuffer(n)
            }
            if (e < 128) return this._createEncoderBuffer(e);
            if (e < 256) return this._createEncoderBuffer([0, e]);
            let n = 1;
            for (let o = e; o >= 256; o >>= 8) n++;
            const r = new Array(n);
            for (let o = r.length - 1; o >= 0; o--) r[o] = 255 & e, e >>= 8;
            return 128 & r[0] && r.unshift(0), this._createEncoderBuffer(o.from(r))
        }, s.prototype._encodeBool = function(e) {
            return this._createEncoderBuffer(e ? 255 : 0)
        }, s.prototype._use = function(e, t) {
            return "function" == typeof e && (e = e(t)), e._getEncoder("der").tree
        }, s.prototype._skipDefault = function(e, t, n) {
            const o = this._baseState;
            let r;
            if (null === o.default) return !1;
            const i = e.join();
            if (void 0 === o.defaultBuffer && (o.defaultBuffer = this._encodeValue(o.default, t, n).join()), i.length !== o.defaultBuffer.length) return !1;
            for (r = 0; r < i.length; r++)
                if (i[r] !== o.defaultBuffer[r]) return !1;
            return !0
        }
    }, {
        "../base/node": 5,
        "../constants/der": 7,
        inherits: 138,
        "safer-buffer": 184
    }],
    13: [function(e, t, n) {
        "use strict";
        const o = n;
        o.der = e("./der"), o.pem = e("./pem")
    }, {
        "./der": 12,
        "./pem": 14
    }],
    14: [function(e, t) {
        "use strict";
        const n = e("inherits"),
            o = e("./der");

        function r(e) {
            o.call(this, e), this.enc = "pem"
        }
        n(r, o), t.exports = r, r.prototype.encode = function(e, t) {
            const n = o.prototype.encode.call(this, e).toString("base64"),
                r = ["-----BEGIN " + t.label + "-----"];
            for (let o = 0; o < n.length; o += 64) r.push(n.slice(o, o + 64));
            return r.push("-----END " + t.label + "-----"), r.join("\n")
        }
    }, {
        "./der": 12,
        inherits: 138
    }],
    15: [function(e, t) {
        (function(t, n) {
            "use strict";

            function o(e, t) {
                if (!e) throw new Error(t || "Assertion failed")
            }

            function r(e, t) {
                e.super_ = t;
                var n = function() {};
                n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e
            }

            function i(e, t, n) {
                if (i.isBN(e)) return e;
                this.negative = 0, this.words = null, this.length = 0, this.red = null, null !== e && ("le" !== t && "be" !== t || (n = t, t = 10), this._init(e || 0, t || 10, n || "be"))
            }
            var a;
            "object" == typeof t ? t.exports = i : n.BN = i, i.BN = i, i.wordSize = 26;
            try {
                a = "undefined" != typeof window && void 0 !== window.Buffer ? window.Buffer : e("buffer").Buffer
            } catch (T) {}

            function s(e, t) {
                var n = e.charCodeAt(t);
                return n >= 65 && n <= 70 ? n - 55 : n >= 97 && n <= 102 ? n - 87 : n - 48 & 15
            }

            function l(e, t, n) {
                var o = s(e, n);
                return n - 1 >= t && (o |= s(e, n - 1) << 4), o
            }

            function c(e, t, n, o) {
                for (var r = 0, i = Math.min(e.length, n), a = t; a < i; a++) {
                    var s = e.charCodeAt(a) - 48;
                    r *= o, r += s >= 49 ? s - 49 + 10 : s >= 17 ? s - 17 + 10 : s
                }
                return r
            }
            i.isBN = function(e) {
                return e instanceof i || null !== e && "object" == typeof e && e.constructor.wordSize === i.wordSize && Array.isArray(e.words)
            }, i.max = function(e, t) {
                return e.cmp(t) > 0 ? e : t
            }, i.min = function(e, t) {
                return e.cmp(t) < 0 ? e : t
            }, i.prototype._init = function(e, t, n) {
                if ("number" == typeof e) return this._initNumber(e, t, n);
                if ("object" == typeof e) return this._initArray(e, t, n);
                "hex" === t && (t = 16), o(t === (0 | t) && t >= 2 && t <= 36);
                var r = 0;
                "-" === (e = e.toString().replace(/\s+/g, ""))[0] && (r++, this.negative = 1), r < e.length && (16 === t ? this._parseHex(e, r, n) : (this._parseBase(e, t, r), "le" === n && this._initArray(this.toArray(), t, n)))
            }, i.prototype._initNumber = function(e, t, n) {
                e < 0 && (this.negative = 1, e = -e), e < 67108864 ? (this.words = [67108863 & e], this.length = 1) : e < 4503599627370496 ? (this.words = [67108863 & e, e / 67108864 & 67108863], this.length = 2) : (o(e < 9007199254740992), this.words = [67108863 & e, e / 67108864 & 67108863, 1], this.length = 3), "le" === n && this._initArray(this.toArray(), t, n)
            }, i.prototype._initArray = function(e, t, n) {
                if (o("number" == typeof e.length), e.length <= 0) return this.words = [0], this.length = 1, this;
                this.length = Math.ceil(e.length / 3), this.words = new Array(this.length);
                for (var r = 0; r < this.length; r++) this.words[r] = 0;
                var i, a, s = 0;
                if ("be" === n)
                    for (r = e.length - 1, i = 0; r >= 0; r -= 3) a = e[r] | e[r - 1] << 8 | e[r - 2] << 16, this.words[i] |= a << s & 67108863, this.words[i + 1] = a >>> 26 - s & 67108863, (s += 24) >= 26 && (s -= 26, i++);
                else if ("le" === n)
                    for (r = 0, i = 0; r < e.length; r += 3) a = e[r] | e[r + 1] << 8 | e[r + 2] << 16, this.words[i] |= a << s & 67108863, this.words[i + 1] = a >>> 26 - s & 67108863, (s += 24) >= 26 && (s -= 26, i++);
                return this.strip()
            }, i.prototype._parseHex = function(e, t, n) {
                this.length = Math.ceil((e.length - t) / 6), this.words = new Array(this.length);
                for (var o = 0; o < this.length; o++) this.words[o] = 0;
                var r, i = 0,
                    a = 0;
                if ("be" === n)
                    for (o = e.length - 1; o >= t; o -= 2) r = l(e, t, o) << i, this.words[a] |= 67108863 & r, i >= 18 ? (i -= 18, a += 1, this.words[a] |= r >>> 26) : i += 8;
                else
                    for (o = (e.length - t) % 2 == 0 ? t + 1 : t; o < e.length; o += 2) r = l(e, t, o) << i, this.words[a] |= 67108863 & r, i >= 18 ? (i -= 18, a += 1, this.words[a] |= r >>> 26) : i += 8;
                this.strip()
            }, i.prototype._parseBase = function(e, t, n) {
                this.words = [0], this.length = 1;
                for (var o = 0, r = 1; r <= 67108863; r *= t) o++;
                o--, r = r / t | 0;
                for (var i = e.length - n, a = i % o, s = Math.min(i, i - a) + n, l = 0, u = n; u < s; u += o) l = c(e, u, u + o, t), this.imuln(r), this.words[0] + l < 67108864 ? this.words[0] += l : this._iaddn(l);
                if (0 !== a) {
                    var p = 1;
                    for (l = c(e, u, e.length, t), u = 0; u < a; u++) p *= t;
                    this.imuln(p), this.words[0] + l < 67108864 ? this.words[0] += l : this._iaddn(l)
                }
                this.strip()
            }, i.prototype.copy = function(e) {
                e.words = new Array(this.length);
                for (var t = 0; t < this.length; t++) e.words[t] = this.words[t];
                e.length = this.length, e.negative = this.negative, e.red = this.red
            }, i.prototype.clone = function() {
                var e = new i(null);
                return this.copy(e), e
            }, i.prototype._expand = function(e) {
                for (; this.length < e;) this.words[this.length++] = 0;
                return this
            }, i.prototype.strip = function() {
                for (; this.length > 1 && 0 === this.words[this.length - 1];) this.length--;
                return this._normSign()
            }, i.prototype._normSign = function() {
                return 1 === this.length && 0 === this.words[0] && (this.negative = 0), this
            }, i.prototype.inspect = function() {
                return (this.red ? "<BN-R: " : "<BN: ") + this.toString(16) + ">"
            };
            var u = ["", "0", "00", "000", "0000", "00000", "000000", "0000000", "00000000", "000000000", "0000000000", "00000000000", "000000000000", "0000000000000", "00000000000000", "000000000000000", "0000000000000000", "00000000000000000", "000000000000000000", "0000000000000000000", "00000000000000000000", "000000000000000000000", "0000000000000000000000", "00000000000000000000000", "000000000000000000000000", "0000000000000000000000000"],
                p = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
                d = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176];

            function h(e) {
                for (var t = new Array(e.bitLength()), n = 0; n < t.length; n++) {
                    var o = n / 26 | 0,
                        r = n % 26;
                    t[n] = (e.words[o] & 1 << r) >>> r
                }
                return t
            }

            function f(e, t, n) {
                n.negative = t.negative ^ e.negative;
                var o = e.length + t.length | 0;
                n.length = o, o = o - 1 | 0;
                var r = 0 | e.words[0],
                    i = 0 | t.words[0],
                    a = r * i,
                    s = 67108863 & a,
                    l = a / 67108864 | 0;
                n.words[0] = s;
                for (var c = 1; c < o; c++) {
                    for (var u = l >>> 26, p = 67108863 & l, d = Math.min(c, t.length - 1), h = Math.max(0, c - e.length + 1); h <= d; h++) {
                        var f = c - h | 0;
                        u += (a = (r = 0 | e.words[f]) * (i = 0 | t.words[h]) + p) / 67108864 | 0, p = 67108863 & a
                    }
                    n.words[c] = 0 | p, l = 0 | u
                }
                return 0 !== l ? n.words[c] = 0 | l : n.length--, n.strip()
            }
            i.prototype.toString = function(e, t) {
                var n;
                if (t = 0 | t || 1, 16 === (e = e || 10) || "hex" === e) {
                    n = "";
                    for (var r = 0, i = 0, a = 0; a < this.length; a++) {
                        var s = this.words[a],
                            l = (16777215 & (s << r | i)).toString(16);
                        n = 0 != (i = s >>> 24 - r & 16777215) || a !== this.length - 1 ? u[6 - l.length] + l + n : l + n, (r += 2) >= 26 && (r -= 26, a--)
                    }
                    for (0 !== i && (n = i.toString(16) + n); n.length % t != 0;) n = "0" + n;
                    return 0 !== this.negative && (n = "-" + n), n
                }
                if (e === (0 | e) && e >= 2 && e <= 36) {
                    var c = p[e],
                        h = d[e];
                    n = "";
                    var f = this.clone();
                    for (f.negative = 0; !f.isZero();) {
                        var y = f.modn(h).toString(e);
                        n = (f = f.idivn(h)).isZero() ? y + n : u[c - y.length] + y + n
                    }
                    for (this.isZero() && (n = "0" + n); n.length % t != 0;) n = "0" + n;
                    return 0 !== this.negative && (n = "-" + n), n
                }
                o(!1, "Base should be between 2 and 36")
            }, i.prototype.toNumber = function() {
                var e = this.words[0];
                return 2 === this.length ? e += 67108864 * this.words[1] : 3 === this.length && 1 === this.words[2] ? e += 4503599627370496 + 67108864 * this.words[1] : this.length > 2 && o(!1, "Number can only safely store up to 53 bits"), 0 !== this.negative ? -e : e
            }, i.prototype.toJSON = function() {
                return this.toString(16)
            }, i.prototype.toBuffer = function(e, t) {
                return o(void 0 !== a), this.toArrayLike(a, e, t)
            }, i.prototype.toArray = function(e, t) {
                return this.toArrayLike(Array, e, t)
            }, i.prototype.toArrayLike = function(e, t, n) {
                var r = this.byteLength(),
                    i = n || Math.max(1, r);
                o(r <= i, "byte array longer than desired length"), o(i > 0, "Requested array length <= 0"), this.strip();
                var a, s, l = "le" === t,
                    c = new e(i),
                    u = this.clone();
                if (l) {
                    for (s = 0; !u.isZero(); s++) a = u.andln(255), u.iushrn(8), c[s] = a;
                    for (; s < i; s++) c[s] = 0
                } else {
                    for (s = 0; s < i - r; s++) c[s] = 0;
                    for (s = 0; !u.isZero(); s++) a = u.andln(255), u.iushrn(8), c[i - s - 1] = a
                }
                return c
            }, Math.clz32 ? i.prototype._countBits = function(e) {
                return 32 - Math.clz32(e)
            } : i.prototype._countBits = function(e) {
                var t = e,
                    n = 0;
                return t >= 4096 && (n += 13, t >>>= 13), t >= 64 && (n += 7, t >>>= 7), t >= 8 && (n += 4, t >>>= 4), t >= 2 && (n += 2, t >>>= 2), n + t
            }, i.prototype._zeroBits = function(e) {
                if (0 === e) return 26;
                var t = e,
                    n = 0;
                return 0 == (8191 & t) && (n += 13, t >>>= 13), 0 == (127 & t) && (n += 7, t >>>= 7), 0 == (15 & t) && (n += 4, t >>>= 4), 0 == (3 & t) && (n += 2, t >>>= 2), 0 == (1 & t) && n++, n
            }, i.prototype.bitLength = function() {
                var e = this.words[this.length - 1],
                    t = this._countBits(e);
                return 26 * (this.length - 1) + t
            }, i.prototype.zeroBits = function() {
                if (this.isZero()) return 0;
                for (var e = 0, t = 0; t < this.length; t++) {
                    var n = this._zeroBits(this.words[t]);
                    if (e += n, 26 !== n) break
                }
                return e
            }, i.prototype.byteLength = function() {
                return Math.ceil(this.bitLength() / 8)
            }, i.prototype.toTwos = function(e) {
                return 0 !== this.negative ? this.abs().inotn(e).iaddn(1) : this.clone()
            }, i.prototype.fromTwos = function(e) {
                return this.testn(e - 1) ? this.notn(e).iaddn(1).ineg() : this.clone()
            }, i.prototype.isNeg = function() {
                return 0 !== this.negative
            }, i.prototype.neg = function() {
                return this.clone().ineg()
            }, i.prototype.ineg = function() {
                return this.isZero() || (this.negative ^= 1), this
            }, i.prototype.iuor = function(e) {
                for (; this.length < e.length;) this.words[this.length++] = 0;
                for (var t = 0; t < e.length; t++) this.words[t] = this.words[t] | e.words[t];
                return this.strip()
            }, i.prototype.ior = function(e) {
                return o(0 == (this.negative | e.negative)), this.iuor(e)
            }, i.prototype.or = function(e) {
                return this.length > e.length ? this.clone().ior(e) : e.clone().ior(this)
            }, i.prototype.uor = function(e) {
                return this.length > e.length ? this.clone().iuor(e) : e.clone().iuor(this)
            }, i.prototype.iuand = function(e) {
                var t;
                t = this.length > e.length ? e : this;
                for (var n = 0; n < t.length; n++) this.words[n] = this.words[n] & e.words[n];
                return this.length = t.length, this.strip()
            }, i.prototype.iand = function(e) {
                return o(0 == (this.negative | e.negative)), this.iuand(e)
            }, i.prototype.and = function(e) {
                return this.length > e.length ? this.clone().iand(e) : e.clone().iand(this)
            }, i.prototype.uand = function(e) {
                return this.length > e.length ? this.clone().iuand(e) : e.clone().iuand(this)
            }, i.prototype.iuxor = function(e) {
                var t, n;
                this.length > e.length ? (t = this, n = e) : (t = e, n = this);
                for (var o = 0; o < n.length; o++) this.words[o] = t.words[o] ^ n.words[o];
                if (this !== t)
                    for (; o < t.length; o++) this.words[o] = t.words[o];
                return this.length = t.length, this.strip()
            }, i.prototype.ixor = function(e) {
                return o(0 == (this.negative | e.negative)), this.iuxor(e)
            }, i.prototype.xor = function(e) {
                return this.length > e.length ? this.clone().ixor(e) : e.clone().ixor(this)
            }, i.prototype.uxor = function(e) {
                return this.length > e.length ? this.clone().iuxor(e) : e.clone().iuxor(this)
            }, i.prototype.inotn = function(e) {
                o("number" == typeof e && e >= 0);
                var t = 0 | Math.ceil(e / 26),
                    n = e % 26;
                this._expand(t), n > 0 && t--;
                for (var r = 0; r < t; r++) this.words[r] = 67108863 & ~this.words[r];
                return n > 0 && (this.words[r] = ~this.words[r] & 67108863 >> 26 - n), this.strip()
            }, i.prototype.notn = function(e) {
                return this.clone().inotn(e)
            }, i.prototype.setn = function(e, t) {
                o("number" == typeof e && e >= 0);
                var n = e / 26 | 0,
                    r = e % 26;
                return this._expand(n + 1), this.words[n] = t ? this.words[n] | 1 << r : this.words[n] & ~(1 << r), this.strip()
            }, i.prototype.iadd = function(e) {
                var t, n, o;
                if (0 !== this.negative && 0 === e.negative) return this.negative = 0, t = this.isub(e), this.negative ^= 1, this._normSign();
                if (0 === this.negative && 0 !== e.negative) return e.negative = 0, t = this.isub(e), e.negative = 1, t._normSign();
                this.length > e.length ? (n = this, o = e) : (n = e, o = this);
                for (var r = 0, i = 0; i < o.length; i++) t = (0 | n.words[i]) + (0 | o.words[i]) + r, this.words[i] = 67108863 & t, r = t >>> 26;
                for (; 0 !== r && i < n.length; i++) t = (0 | n.words[i]) + r, this.words[i] = 67108863 & t, r = t >>> 26;
                if (this.length = n.length, 0 !== r) this.words[this.length] = r, this.length++;
                else if (n !== this)
                    for (; i < n.length; i++) this.words[i] = n.words[i];
                return this
            }, i.prototype.add = function(e) {
                var t;
                return 0 !== e.negative && 0 === this.negative ? (e.negative = 0, t = this.sub(e), e.negative ^= 1, t) : 0 === e.negative && 0 !== this.negative ? (this.negative = 0, t = e.sub(this), this.negative = 1, t) : this.length > e.length ? this.clone().iadd(e) : e.clone().iadd(this)
            }, i.prototype.isub = function(e) {
                if (0 !== e.negative) {
                    e.negative = 0;
                    var t = this.iadd(e);
                    return e.negative = 1, t._normSign()
                }
                if (0 !== this.negative) return this.negative = 0, this.iadd(e), this.negative = 1, this._normSign();
                var n, o, r = this.cmp(e);
                if (0 === r) return this.negative = 0, this.length = 1, this.words[0] = 0, this;
                r > 0 ? (n = this, o = e) : (n = e, o = this);
                for (var i = 0, a = 0; a < o.length; a++) i = (t = (0 | n.words[a]) - (0 | o.words[a]) + i) >> 26, this.words[a] = 67108863 & t;
                for (; 0 !== i && a < n.length; a++) i = (t = (0 | n.words[a]) + i) >> 26, this.words[a] = 67108863 & t;
                if (0 === i && a < n.length && n !== this)
                    for (; a < n.length; a++) this.words[a] = n.words[a];
                return this.length = Math.max(this.length, a), n !== this && (this.negative = 1), this.strip()
            }, i.prototype.sub = function(e) {
                return this.clone().isub(e)
            };
            var y = function(e, t, n) {
                var o, r, i, a = e.words,
                    s = t.words,
                    l = n.words,
                    c = 0,
                    u = 0 | a[0],
                    p = 8191 & u,
                    d = u >>> 13,
                    h = 0 | a[1],
                    f = 8191 & h,
                    y = h >>> 13,
                    g = 0 | a[2],
                    m = 8191 & g,
                    I = g >>> 13,
                    _ = 0 | a[3],
                    C = 8191 & _,
                    v = _ >>> 13,
                    b = 0 | a[4],
                    S = 8191 & b,
                    w = b >>> 13,
                    P = 0 | a[5],
                    A = 8191 & P,
                    T = P >>> 13,
                    R = 0 | a[6],
                    L = 8191 & R,
                    k = R >>> 13,
                    O = 0 | a[7],
                    M = 8191 & O,
                    D = O >>> 13,
                    B = 0 | a[8],
                    N = 8191 & B,
                    E = B >>> 13,
                    U = 0 | a[9],
                    G = 8191 & U,
                    x = U >>> 13,
                    H = 0 | s[0],
                    F = 8191 & H,
                    j = H >>> 13,
                    W = 0 | s[1],
                    z = 8191 & W,
                    q = W >>> 13,
                    V = 0 | s[2],
                    Z = 8191 & V,
                    K = V >>> 13,
                    J = 0 | s[3],
                    X = 8191 & J,
                    Q = J >>> 13,
                    Y = 0 | s[4],
                    $ = 8191 & Y,
                    ee = Y >>> 13,
                    te = 0 | s[5],
                    ne = 8191 & te,
                    oe = te >>> 13,
                    re = 0 | s[6],
                    ie = 8191 & re,
                    ae = re >>> 13,
                    se = 0 | s[7],
                    le = 8191 & se,
                    ce = se >>> 13,
                    ue = 0 | s[8],
                    pe = 8191 & ue,
                    de = ue >>> 13,
                    he = 0 | s[9],
                    fe = 8191 & he,
                    ye = he >>> 13;
                n.negative = e.negative ^ t.negative, n.length = 19;
                var ge = (c + (o = Math.imul(p, F)) | 0) + ((8191 & (r = (r = Math.imul(p, j)) + Math.imul(d, F) | 0)) << 13) | 0;
                c = ((i = Math.imul(d, j)) + (r >>> 13) | 0) + (ge >>> 26) | 0, ge &= 67108863, o = Math.imul(f, F), r = (r = Math.imul(f, j)) + Math.imul(y, F) | 0, i = Math.imul(y, j);
                var me = (c + (o = o + Math.imul(p, z) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, q) | 0) + Math.imul(d, z) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, q) | 0) + (r >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, o = Math.imul(m, F), r = (r = Math.imul(m, j)) + Math.imul(I, F) | 0, i = Math.imul(I, j), o = o + Math.imul(f, z) | 0, r = (r = r + Math.imul(f, q) | 0) + Math.imul(y, z) | 0, i = i + Math.imul(y, q) | 0;
                var Ie = (c + (o = o + Math.imul(p, Z) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, K) | 0) + Math.imul(d, Z) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, K) | 0) + (r >>> 13) | 0) + (Ie >>> 26) | 0, Ie &= 67108863, o = Math.imul(C, F), r = (r = Math.imul(C, j)) + Math.imul(v, F) | 0, i = Math.imul(v, j), o = o + Math.imul(m, z) | 0, r = (r = r + Math.imul(m, q) | 0) + Math.imul(I, z) | 0, i = i + Math.imul(I, q) | 0, o = o + Math.imul(f, Z) | 0, r = (r = r + Math.imul(f, K) | 0) + Math.imul(y, Z) | 0, i = i + Math.imul(y, K) | 0;
                var _e = (c + (o = o + Math.imul(p, X) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, Q) | 0) + Math.imul(d, X) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, Q) | 0) + (r >>> 13) | 0) + (_e >>> 26) | 0, _e &= 67108863, o = Math.imul(S, F), r = (r = Math.imul(S, j)) + Math.imul(w, F) | 0, i = Math.imul(w, j), o = o + Math.imul(C, z) | 0, r = (r = r + Math.imul(C, q) | 0) + Math.imul(v, z) | 0, i = i + Math.imul(v, q) | 0, o = o + Math.imul(m, Z) | 0, r = (r = r + Math.imul(m, K) | 0) + Math.imul(I, Z) | 0, i = i + Math.imul(I, K) | 0, o = o + Math.imul(f, X) | 0, r = (r = r + Math.imul(f, Q) | 0) + Math.imul(y, X) | 0, i = i + Math.imul(y, Q) | 0;
                var Ce = (c + (o = o + Math.imul(p, $) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, ee) | 0) + Math.imul(d, $) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, ee) | 0) + (r >>> 13) | 0) + (Ce >>> 26) | 0, Ce &= 67108863, o = Math.imul(A, F), r = (r = Math.imul(A, j)) + Math.imul(T, F) | 0, i = Math.imul(T, j), o = o + Math.imul(S, z) | 0, r = (r = r + Math.imul(S, q) | 0) + Math.imul(w, z) | 0, i = i + Math.imul(w, q) | 0, o = o + Math.imul(C, Z) | 0, r = (r = r + Math.imul(C, K) | 0) + Math.imul(v, Z) | 0, i = i + Math.imul(v, K) | 0, o = o + Math.imul(m, X) | 0, r = (r = r + Math.imul(m, Q) | 0) + Math.imul(I, X) | 0, i = i + Math.imul(I, Q) | 0, o = o + Math.imul(f, $) | 0, r = (r = r + Math.imul(f, ee) | 0) + Math.imul(y, $) | 0, i = i + Math.imul(y, ee) | 0;
                var ve = (c + (o = o + Math.imul(p, ne) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, oe) | 0) + Math.imul(d, ne) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, oe) | 0) + (r >>> 13) | 0) + (ve >>> 26) | 0, ve &= 67108863, o = Math.imul(L, F), r = (r = Math.imul(L, j)) + Math.imul(k, F) | 0, i = Math.imul(k, j), o = o + Math.imul(A, z) | 0, r = (r = r + Math.imul(A, q) | 0) + Math.imul(T, z) | 0, i = i + Math.imul(T, q) | 0, o = o + Math.imul(S, Z) | 0, r = (r = r + Math.imul(S, K) | 0) + Math.imul(w, Z) | 0, i = i + Math.imul(w, K) | 0, o = o + Math.imul(C, X) | 0, r = (r = r + Math.imul(C, Q) | 0) + Math.imul(v, X) | 0, i = i + Math.imul(v, Q) | 0, o = o + Math.imul(m, $) | 0, r = (r = r + Math.imul(m, ee) | 0) + Math.imul(I, $) | 0, i = i + Math.imul(I, ee) | 0, o = o + Math.imul(f, ne) | 0, r = (r = r + Math.imul(f, oe) | 0) + Math.imul(y, ne) | 0, i = i + Math.imul(y, oe) | 0;
                var be = (c + (o = o + Math.imul(p, ie) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, ae) | 0) + Math.imul(d, ie) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, ae) | 0) + (r >>> 13) | 0) + (be >>> 26) | 0, be &= 67108863, o = Math.imul(M, F), r = (r = Math.imul(M, j)) + Math.imul(D, F) | 0, i = Math.imul(D, j), o = o + Math.imul(L, z) | 0, r = (r = r + Math.imul(L, q) | 0) + Math.imul(k, z) | 0, i = i + Math.imul(k, q) | 0, o = o + Math.imul(A, Z) | 0, r = (r = r + Math.imul(A, K) | 0) + Math.imul(T, Z) | 0, i = i + Math.imul(T, K) | 0, o = o + Math.imul(S, X) | 0, r = (r = r + Math.imul(S, Q) | 0) + Math.imul(w, X) | 0, i = i + Math.imul(w, Q) | 0, o = o + Math.imul(C, $) | 0, r = (r = r + Math.imul(C, ee) | 0) + Math.imul(v, $) | 0, i = i + Math.imul(v, ee) | 0, o = o + Math.imul(m, ne) | 0, r = (r = r + Math.imul(m, oe) | 0) + Math.imul(I, ne) | 0, i = i + Math.imul(I, oe) | 0, o = o + Math.imul(f, ie) | 0, r = (r = r + Math.imul(f, ae) | 0) + Math.imul(y, ie) | 0, i = i + Math.imul(y, ae) | 0;
                var Se = (c + (o = o + Math.imul(p, le) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, ce) | 0) + Math.imul(d, le) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, ce) | 0) + (r >>> 13) | 0) + (Se >>> 26) | 0, Se &= 67108863, o = Math.imul(N, F), r = (r = Math.imul(N, j)) + Math.imul(E, F) | 0, i = Math.imul(E, j), o = o + Math.imul(M, z) | 0, r = (r = r + Math.imul(M, q) | 0) + Math.imul(D, z) | 0, i = i + Math.imul(D, q) | 0, o = o + Math.imul(L, Z) | 0, r = (r = r + Math.imul(L, K) | 0) + Math.imul(k, Z) | 0, i = i + Math.imul(k, K) | 0, o = o + Math.imul(A, X) | 0, r = (r = r + Math.imul(A, Q) | 0) + Math.imul(T, X) | 0, i = i + Math.imul(T, Q) | 0, o = o + Math.imul(S, $) | 0, r = (r = r + Math.imul(S, ee) | 0) + Math.imul(w, $) | 0, i = i + Math.imul(w, ee) | 0, o = o + Math.imul(C, ne) | 0, r = (r = r + Math.imul(C, oe) | 0) + Math.imul(v, ne) | 0, i = i + Math.imul(v, oe) | 0, o = o + Math.imul(m, ie) | 0, r = (r = r + Math.imul(m, ae) | 0) + Math.imul(I, ie) | 0, i = i + Math.imul(I, ae) | 0, o = o + Math.imul(f, le) | 0, r = (r = r + Math.imul(f, ce) | 0) + Math.imul(y, le) | 0, i = i + Math.imul(y, ce) | 0;
                var we = (c + (o = o + Math.imul(p, pe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, de) | 0) + Math.imul(d, pe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, de) | 0) + (r >>> 13) | 0) + (we >>> 26) | 0, we &= 67108863, o = Math.imul(G, F), r = (r = Math.imul(G, j)) + Math.imul(x, F) | 0, i = Math.imul(x, j), o = o + Math.imul(N, z) | 0, r = (r = r + Math.imul(N, q) | 0) + Math.imul(E, z) | 0, i = i + Math.imul(E, q) | 0, o = o + Math.imul(M, Z) | 0, r = (r = r + Math.imul(M, K) | 0) + Math.imul(D, Z) | 0, i = i + Math.imul(D, K) | 0, o = o + Math.imul(L, X) | 0, r = (r = r + Math.imul(L, Q) | 0) + Math.imul(k, X) | 0, i = i + Math.imul(k, Q) | 0, o = o + Math.imul(A, $) | 0, r = (r = r + Math.imul(A, ee) | 0) + Math.imul(T, $) | 0, i = i + Math.imul(T, ee) | 0, o = o + Math.imul(S, ne) | 0, r = (r = r + Math.imul(S, oe) | 0) + Math.imul(w, ne) | 0, i = i + Math.imul(w, oe) | 0, o = o + Math.imul(C, ie) | 0, r = (r = r + Math.imul(C, ae) | 0) + Math.imul(v, ie) | 0, i = i + Math.imul(v, ae) | 0, o = o + Math.imul(m, le) | 0, r = (r = r + Math.imul(m, ce) | 0) + Math.imul(I, le) | 0, i = i + Math.imul(I, ce) | 0, o = o + Math.imul(f, pe) | 0, r = (r = r + Math.imul(f, de) | 0) + Math.imul(y, pe) | 0, i = i + Math.imul(y, de) | 0;
                var Pe = (c + (o = o + Math.imul(p, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, ye) | 0) + Math.imul(d, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, ye) | 0) + (r >>> 13) | 0) + (Pe >>> 26) | 0, Pe &= 67108863, o = Math.imul(G, z), r = (r = Math.imul(G, q)) + Math.imul(x, z) | 0, i = Math.imul(x, q), o = o + Math.imul(N, Z) | 0, r = (r = r + Math.imul(N, K) | 0) + Math.imul(E, Z) | 0, i = i + Math.imul(E, K) | 0, o = o + Math.imul(M, X) | 0, r = (r = r + Math.imul(M, Q) | 0) + Math.imul(D, X) | 0, i = i + Math.imul(D, Q) | 0, o = o + Math.imul(L, $) | 0, r = (r = r + Math.imul(L, ee) | 0) + Math.imul(k, $) | 0, i = i + Math.imul(k, ee) | 0, o = o + Math.imul(A, ne) | 0, r = (r = r + Math.imul(A, oe) | 0) + Math.imul(T, ne) | 0, i = i + Math.imul(T, oe) | 0, o = o + Math.imul(S, ie) | 0, r = (r = r + Math.imul(S, ae) | 0) + Math.imul(w, ie) | 0, i = i + Math.imul(w, ae) | 0, o = o + Math.imul(C, le) | 0, r = (r = r + Math.imul(C, ce) | 0) + Math.imul(v, le) | 0, i = i + Math.imul(v, ce) | 0, o = o + Math.imul(m, pe) | 0, r = (r = r + Math.imul(m, de) | 0) + Math.imul(I, pe) | 0, i = i + Math.imul(I, de) | 0;
                var Ae = (c + (o = o + Math.imul(f, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(f, ye) | 0) + Math.imul(y, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(y, ye) | 0) + (r >>> 13) | 0) + (Ae >>> 26) | 0, Ae &= 67108863, o = Math.imul(G, Z), r = (r = Math.imul(G, K)) + Math.imul(x, Z) | 0, i = Math.imul(x, K), o = o + Math.imul(N, X) | 0, r = (r = r + Math.imul(N, Q) | 0) + Math.imul(E, X) | 0, i = i + Math.imul(E, Q) | 0, o = o + Math.imul(M, $) | 0, r = (r = r + Math.imul(M, ee) | 0) + Math.imul(D, $) | 0, i = i + Math.imul(D, ee) | 0, o = o + Math.imul(L, ne) | 0, r = (r = r + Math.imul(L, oe) | 0) + Math.imul(k, ne) | 0, i = i + Math.imul(k, oe) | 0, o = o + Math.imul(A, ie) | 0, r = (r = r + Math.imul(A, ae) | 0) + Math.imul(T, ie) | 0, i = i + Math.imul(T, ae) | 0, o = o + Math.imul(S, le) | 0, r = (r = r + Math.imul(S, ce) | 0) + Math.imul(w, le) | 0, i = i + Math.imul(w, ce) | 0, o = o + Math.imul(C, pe) | 0, r = (r = r + Math.imul(C, de) | 0) + Math.imul(v, pe) | 0, i = i + Math.imul(v, de) | 0;
                var Te = (c + (o = o + Math.imul(m, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(m, ye) | 0) + Math.imul(I, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(I, ye) | 0) + (r >>> 13) | 0) + (Te >>> 26) | 0, Te &= 67108863, o = Math.imul(G, X), r = (r = Math.imul(G, Q)) + Math.imul(x, X) | 0, i = Math.imul(x, Q), o = o + Math.imul(N, $) | 0, r = (r = r + Math.imul(N, ee) | 0) + Math.imul(E, $) | 0, i = i + Math.imul(E, ee) | 0, o = o + Math.imul(M, ne) | 0, r = (r = r + Math.imul(M, oe) | 0) + Math.imul(D, ne) | 0, i = i + Math.imul(D, oe) | 0, o = o + Math.imul(L, ie) | 0, r = (r = r + Math.imul(L, ae) | 0) + Math.imul(k, ie) | 0, i = i + Math.imul(k, ae) | 0, o = o + Math.imul(A, le) | 0, r = (r = r + Math.imul(A, ce) | 0) + Math.imul(T, le) | 0, i = i + Math.imul(T, ce) | 0, o = o + Math.imul(S, pe) | 0, r = (r = r + Math.imul(S, de) | 0) + Math.imul(w, pe) | 0, i = i + Math.imul(w, de) | 0;
                var Re = (c + (o = o + Math.imul(C, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(C, ye) | 0) + Math.imul(v, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(v, ye) | 0) + (r >>> 13) | 0) + (Re >>> 26) | 0, Re &= 67108863, o = Math.imul(G, $), r = (r = Math.imul(G, ee)) + Math.imul(x, $) | 0, i = Math.imul(x, ee), o = o + Math.imul(N, ne) | 0, r = (r = r + Math.imul(N, oe) | 0) + Math.imul(E, ne) | 0, i = i + Math.imul(E, oe) | 0, o = o + Math.imul(M, ie) | 0, r = (r = r + Math.imul(M, ae) | 0) + Math.imul(D, ie) | 0, i = i + Math.imul(D, ae) | 0, o = o + Math.imul(L, le) | 0, r = (r = r + Math.imul(L, ce) | 0) + Math.imul(k, le) | 0, i = i + Math.imul(k, ce) | 0, o = o + Math.imul(A, pe) | 0, r = (r = r + Math.imul(A, de) | 0) + Math.imul(T, pe) | 0, i = i + Math.imul(T, de) | 0;
                var Le = (c + (o = o + Math.imul(S, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(S, ye) | 0) + Math.imul(w, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(w, ye) | 0) + (r >>> 13) | 0) + (Le >>> 26) | 0, Le &= 67108863, o = Math.imul(G, ne), r = (r = Math.imul(G, oe)) + Math.imul(x, ne) | 0, i = Math.imul(x, oe), o = o + Math.imul(N, ie) | 0, r = (r = r + Math.imul(N, ae) | 0) + Math.imul(E, ie) | 0, i = i + Math.imul(E, ae) | 0, o = o + Math.imul(M, le) | 0, r = (r = r + Math.imul(M, ce) | 0) + Math.imul(D, le) | 0, i = i + Math.imul(D, ce) | 0, o = o + Math.imul(L, pe) | 0, r = (r = r + Math.imul(L, de) | 0) + Math.imul(k, pe) | 0, i = i + Math.imul(k, de) | 0;
                var ke = (c + (o = o + Math.imul(A, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(A, ye) | 0) + Math.imul(T, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(T, ye) | 0) + (r >>> 13) | 0) + (ke >>> 26) | 0, ke &= 67108863, o = Math.imul(G, ie), r = (r = Math.imul(G, ae)) + Math.imul(x, ie) | 0, i = Math.imul(x, ae), o = o + Math.imul(N, le) | 0, r = (r = r + Math.imul(N, ce) | 0) + Math.imul(E, le) | 0, i = i + Math.imul(E, ce) | 0, o = o + Math.imul(M, pe) | 0, r = (r = r + Math.imul(M, de) | 0) + Math.imul(D, pe) | 0, i = i + Math.imul(D, de) | 0;
                var Oe = (c + (o = o + Math.imul(L, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(L, ye) | 0) + Math.imul(k, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(k, ye) | 0) + (r >>> 13) | 0) + (Oe >>> 26) | 0, Oe &= 67108863, o = Math.imul(G, le), r = (r = Math.imul(G, ce)) + Math.imul(x, le) | 0, i = Math.imul(x, ce), o = o + Math.imul(N, pe) | 0, r = (r = r + Math.imul(N, de) | 0) + Math.imul(E, pe) | 0, i = i + Math.imul(E, de) | 0;
                var Me = (c + (o = o + Math.imul(M, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(M, ye) | 0) + Math.imul(D, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(D, ye) | 0) + (r >>> 13) | 0) + (Me >>> 26) | 0, Me &= 67108863, o = Math.imul(G, pe), r = (r = Math.imul(G, de)) + Math.imul(x, pe) | 0, i = Math.imul(x, de);
                var De = (c + (o = o + Math.imul(N, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(N, ye) | 0) + Math.imul(E, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(E, ye) | 0) + (r >>> 13) | 0) + (De >>> 26) | 0, De &= 67108863;
                var Be = (c + (o = Math.imul(G, fe)) | 0) + ((8191 & (r = (r = Math.imul(G, ye)) + Math.imul(x, fe) | 0)) << 13) | 0;
                return c = ((i = Math.imul(x, ye)) + (r >>> 13) | 0) + (Be >>> 26) | 0, Be &= 67108863, l[0] = ge, l[1] = me, l[2] = Ie, l[3] = _e, l[4] = Ce, l[5] = ve, l[6] = be, l[7] = Se, l[8] = we, l[9] = Pe, l[10] = Ae, l[11] = Te, l[12] = Re, l[13] = Le, l[14] = ke, l[15] = Oe, l[16] = Me, l[17] = De, l[18] = Be, 0 !== c && (l[19] = c, n.length++), n
            };

            function g(e, t, n) {
                n.negative = t.negative ^ e.negative, n.length = e.length + t.length;
                for (var o = 0, r = 0, i = 0; i < n.length - 1; i++) {
                    var a = r;
                    r = 0;
                    for (var s = 67108863 & o, l = Math.min(i, t.length - 1), c = Math.max(0, i - e.length + 1); c <= l; c++) {
                        var u = i - c,
                            p = (0 | e.words[u]) * (0 | t.words[c]),
                            d = 67108863 & p;
                        s = 67108863 & (d = d + s | 0), r += (a = (a = a + (p / 67108864 | 0) | 0) + (d >>> 26) | 0) >>> 26, a &= 67108863
                    }
                    n.words[i] = s, o = a, a = r
                }
                return 0 !== o ? n.words[i] = o : n.length--, n.strip()
            }

            function m(e, t, n) {
                return (new I).mulp(e, t, n)
            }

            function I(e, t) {
                this.x = e, this.y = t
            }
            Math.imul || (y = f), i.prototype.mulTo = function(e, t) {
                var n = this.length + e.length;
                return 10 === this.length && 10 === e.length ? y(this, e, t) : n < 63 ? f(this, e, t) : n < 1024 ? g(this, e, t) : m(this, e, t)
            }, I.prototype.makeRBT = function(e) {
                for (var t = new Array(e), n = i.prototype._countBits(e) - 1, o = 0; o < e; o++) t[o] = this.revBin(o, n, e);
                return t
            }, I.prototype.revBin = function(e, t, n) {
                if (0 === e || e === n - 1) return e;
                for (var o = 0, r = 0; r < t; r++) o |= (1 & e) << t - r - 1, e >>= 1;
                return o
            }, I.prototype.permute = function(e, t, n, o, r, i) {
                for (var a = 0; a < i; a++) o[a] = t[e[a]], r[a] = n[e[a]]
            }, I.prototype.transform = function(e, t, n, o, r, i) {
                this.permute(i, e, t, n, o, r);
                for (var a = 1; a < r; a <<= 1)
                    for (var s = a << 1, l = Math.cos(2 * Math.PI / s), c = Math.sin(2 * Math.PI / s), u = 0; u < r; u += s)
                        for (var p = l, d = c, h = 0; h < a; h++) {
                            var f = n[u + h],
                                y = o[u + h],
                                g = n[u + h + a],
                                m = o[u + h + a],
                                I = p * g - d * m;
                            m = p * m + d * g, g = I, n[u + h] = f + g, o[u + h] = y + m, n[u + h + a] = f - g, o[u + h + a] = y - m, h !== s && (I = l * p - c * d, d = l * d + c * p, p = I)
                        }
            }, I.prototype.guessLen13b = function(e, t) {
                var n = 1 | Math.max(t, e),
                    o = 1 & n,
                    r = 0;
                for (n = n / 2 | 0; n; n >>>= 1) r++;
                return 1 << r + 1 + o
            }, I.prototype.conjugate = function(e, t, n) {
                if (!(n <= 1))
                    for (var o = 0; o < n / 2; o++) {
                        var r = e[o];
                        e[o] = e[n - o - 1], e[n - o - 1] = r, r = t[o], t[o] = -t[n - o - 1], t[n - o - 1] = -r
                    }
            }, I.prototype.normalize13b = function(e, t) {
                for (var n = 0, o = 0; o < t / 2; o++) {
                    var r = 8192 * Math.round(e[2 * o + 1] / t) + Math.round(e[2 * o] / t) + n;
                    e[o] = 67108863 & r, n = r < 67108864 ? 0 : r / 67108864 | 0
                }
                return e
            }, I.prototype.convert13b = function(e, t, n, r) {
                for (var i = 0, a = 0; a < t; a++) i += 0 | e[a], n[2 * a] = 8191 & i, i >>>= 13, n[2 * a + 1] = 8191 & i, i >>>= 13;
                for (a = 2 * t; a < r; ++a) n[a] = 0;
                o(0 === i), o(0 == (-8192 & i))
            }, I.prototype.stub = function(e) {
                for (var t = new Array(e), n = 0; n < e; n++) t[n] = 0;
                return t
            }, I.prototype.mulp = function(e, t, n) {
                var o = 2 * this.guessLen13b(e.length, t.length),
                    r = this.makeRBT(o),
                    i = this.stub(o),
                    a = new Array(o),
                    s = new Array(o),
                    l = new Array(o),
                    c = new Array(o),
                    u = new Array(o),
                    p = new Array(o),
                    d = n.words;
                d.length = o, this.convert13b(e.words, e.length, a, o), this.convert13b(t.words, t.length, c, o), this.transform(a, i, s, l, o, r), this.transform(c, i, u, p, o, r);
                for (var h = 0; h < o; h++) {
                    var f = s[h] * u[h] - l[h] * p[h];
                    l[h] = s[h] * p[h] + l[h] * u[h], s[h] = f
                }
                return this.conjugate(s, l, o), this.transform(s, l, d, i, o, r), this.conjugate(d, i, o), this.normalize13b(d, o), n.negative = e.negative ^ t.negative, n.length = e.length + t.length, n.strip()
            }, i.prototype.mul = function(e) {
                var t = new i(null);
                return t.words = new Array(this.length + e.length), this.mulTo(e, t)
            }, i.prototype.mulf = function(e) {
                var t = new i(null);
                return t.words = new Array(this.length + e.length), m(this, e, t)
            }, i.prototype.imul = function(e) {
                return this.clone().mulTo(e, this)
            }, i.prototype.imuln = function(e) {
                o("number" == typeof e), o(e < 67108864);
                for (var t = 0, n = 0; n < this.length; n++) {
                    var r = (0 | this.words[n]) * e,
                        i = (67108863 & r) + (67108863 & t);
                    t >>= 26, t += r / 67108864 | 0, t += i >>> 26, this.words[n] = 67108863 & i
                }
                return 0 !== t && (this.words[n] = t, this.length++), this
            }, i.prototype.muln = function(e) {
                return this.clone().imuln(e)
            }, i.prototype.sqr = function() {
                return this.mul(this)
            }, i.prototype.isqr = function() {
                return this.imul(this.clone())
            }, i.prototype.pow = function(e) {
                var t = h(e);
                if (0 === t.length) return new i(1);
                for (var n = this, o = 0; o < t.length && 0 === t[o]; o++, n = n.sqr());
                if (++o < t.length)
                    for (var r = n.sqr(); o < t.length; o++, r = r.sqr()) 0 !== t[o] && (n = n.mul(r));
                return n
            }, i.prototype.iushln = function(e) {
                o("number" == typeof e && e >= 0);
                var t, n = e % 26,
                    r = (e - n) / 26,
                    i = 67108863 >>> 26 - n << 26 - n;
                if (0 !== n) {
                    var a = 0;
                    for (t = 0; t < this.length; t++) {
                        var s = this.words[t] & i,
                            l = (0 | this.words[t]) - s << n;
                        this.words[t] = l | a, a = s >>> 26 - n
                    }
                    a && (this.words[t] = a, this.length++)
                }
                if (0 !== r) {
                    for (t = this.length - 1; t >= 0; t--) this.words[t + r] = this.words[t];
                    for (t = 0; t < r; t++) this.words[t] = 0;
                    this.length += r
                }
                return this.strip()
            }, i.prototype.ishln = function(e) {
                return o(0 === this.negative), this.iushln(e)
            }, i.prototype.iushrn = function(e, t, n) {
                var r;
                o("number" == typeof e && e >= 0), r = t ? (t - t % 26) / 26 : 0;
                var i = e % 26,
                    a = Math.min((e - i) / 26, this.length),
                    s = 67108863 ^ 67108863 >>> i << i,
                    l = n;
                if (r -= a, r = Math.max(0, r), l) {
                    for (var c = 0; c < a; c++) l.words[c] = this.words[c];
                    l.length = a
                }
                if (0 === a);
                else if (this.length > a)
                    for (this.length -= a, c = 0; c < this.length; c++) this.words[c] = this.words[c + a];
                else this.words[0] = 0, this.length = 1;
                var u = 0;
                for (c = this.length - 1; c >= 0 && (0 !== u || c >= r); c--) {
                    var p = 0 | this.words[c];
                    this.words[c] = u << 26 - i | p >>> i, u = p & s
                }
                return l && 0 !== u && (l.words[l.length++] = u), 0 === this.length && (this.words[0] = 0, this.length = 1), this.strip()
            }, i.prototype.ishrn = function(e, t, n) {
                return o(0 === this.negative), this.iushrn(e, t, n)
            }, i.prototype.shln = function(e) {
                return this.clone().ishln(e)
            }, i.prototype.ushln = function(e) {
                return this.clone().iushln(e)
            }, i.prototype.shrn = function(e) {
                return this.clone().ishrn(e)
            }, i.prototype.ushrn = function(e) {
                return this.clone().iushrn(e)
            }, i.prototype.testn = function(e) {
                o("number" == typeof e && e >= 0);
                var t = e % 26,
                    n = (e - t) / 26,
                    r = 1 << t;
                return !(this.length <= n || !(this.words[n] & r))
            }, i.prototype.imaskn = function(e) {
                o("number" == typeof e && e >= 0);
                var t = e % 26,
                    n = (e - t) / 26;
                if (o(0 === this.negative, "imaskn works only with positive numbers"), this.length <= n) return this;
                if (0 !== t && n++, this.length = Math.min(n, this.length), 0 !== t) {
                    var r = 67108863 ^ 67108863 >>> t << t;
                    this.words[this.length - 1] &= r
                }
                return this.strip()
            }, i.prototype.maskn = function(e) {
                return this.clone().imaskn(e)
            }, i.prototype.iaddn = function(e) {
                return o("number" == typeof e), o(e < 67108864), e < 0 ? this.isubn(-e) : 0 !== this.negative ? 1 === this.length && (0 | this.words[0]) < e ? (this.words[0] = e - (0 | this.words[0]), this.negative = 0, this) : (this.negative = 0, this.isubn(e), this.negative = 1, this) : this._iaddn(e)
            }, i.prototype._iaddn = function(e) {
                this.words[0] += e;
                for (var t = 0; t < this.length && this.words[t] >= 67108864; t++) this.words[t] -= 67108864, t === this.length - 1 ? this.words[t + 1] = 1 : this.words[t + 1]++;
                return this.length = Math.max(this.length, t + 1), this
            }, i.prototype.isubn = function(e) {
                if (o("number" == typeof e), o(e < 67108864), e < 0) return this.iaddn(-e);
                if (0 !== this.negative) return this.negative = 0, this.iaddn(e), this.negative = 1, this;
                if (this.words[0] -= e, 1 === this.length && this.words[0] < 0) this.words[0] = -this.words[0], this.negative = 1;
                else
                    for (var t = 0; t < this.length && this.words[t] < 0; t++) this.words[t] += 67108864, this.words[t + 1] -= 1;
                return this.strip()
            }, i.prototype.addn = function(e) {
                return this.clone().iaddn(e)
            }, i.prototype.subn = function(e) {
                return this.clone().isubn(e)
            }, i.prototype.iabs = function() {
                return this.negative = 0, this
            }, i.prototype.abs = function() {
                return this.clone().iabs()
            }, i.prototype._ishlnsubmul = function(e, t, n) {
                var r, i, a = e.length + n;
                this._expand(a);
                var s = 0;
                for (r = 0; r < e.length; r++) {
                    i = (0 | this.words[r + n]) + s;
                    var l = (0 | e.words[r]) * t;
                    s = ((i -= 67108863 & l) >> 26) - (l / 67108864 | 0), this.words[r + n] = 67108863 & i
                }
                for (; r < this.length - n; r++) s = (i = (0 | this.words[r + n]) + s) >> 26, this.words[r + n] = 67108863 & i;
                if (0 === s) return this.strip();
                for (o(-1 === s), s = 0, r = 0; r < this.length; r++) s = (i = -(0 | this.words[r]) + s) >> 26, this.words[r] = 67108863 & i;
                return this.negative = 1, this.strip()
            }, i.prototype._wordDiv = function(e, t) {
                var n = (this.length, e.length),
                    o = this.clone(),
                    r = e,
                    a = 0 | r.words[r.length - 1];
                0 != (n = 26 - this._countBits(a)) && (r = r.ushln(n), o.iushln(n), a = 0 | r.words[r.length - 1]);
                var s, l = o.length - r.length;
                if ("mod" !== t) {
                    (s = new i(null)).length = l + 1, s.words = new Array(s.length);
                    for (var c = 0; c < s.length; c++) s.words[c] = 0
                }
                var u = o.clone()._ishlnsubmul(r, 1, l);
                0 === u.negative && (o = u, s && (s.words[l] = 1));
                for (var p = l - 1; p >= 0; p--) {
                    var d = 67108864 * (0 | o.words[r.length + p]) + (0 | o.words[r.length + p - 1]);
                    for (d = Math.min(d / a | 0, 67108863), o._ishlnsubmul(r, d, p); 0 !== o.negative;) d--, o.negative = 0, o._ishlnsubmul(r, 1, p), o.isZero() || (o.negative ^= 1);
                    s && (s.words[p] = d)
                }
                return s && s.strip(), o.strip(), "div" !== t && 0 !== n && o.iushrn(n), {
                    div: s || null,
                    mod: o
                }
            }, i.prototype.divmod = function(e, t, n) {
                return o(!e.isZero()), this.isZero() ? {
                    div: new i(0),
                    mod: new i(0)
                } : 0 !== this.negative && 0 === e.negative ? (s = this.neg().divmod(e, t), "mod" !== t && (r = s.div.neg()), "div" !== t && (a = s.mod.neg(), n && 0 !== a.negative && a.iadd(e)), {
                    div: r,
                    mod: a
                }) : 0 === this.negative && 0 !== e.negative ? (s = this.divmod(e.neg(), t), "mod" !== t && (r = s.div.neg()), {
                    div: r,
                    mod: s.mod
                }) : 0 != (this.negative & e.negative) ? (s = this.neg().divmod(e.neg(), t), "div" !== t && (a = s.mod.neg(), n && 0 !== a.negative && a.isub(e)), {
                    div: s.div,
                    mod: a
                }) : e.length > this.length || this.cmp(e) < 0 ? {
                    div: new i(0),
                    mod: this
                } : 1 === e.length ? "div" === t ? {
                    div: this.divn(e.words[0]),
                    mod: null
                } : "mod" === t ? {
                    div: null,
                    mod: new i(this.modn(e.words[0]))
                } : {
                    div: this.divn(e.words[0]),
                    mod: new i(this.modn(e.words[0]))
                } : this._wordDiv(e, t);
                var r, a, s
            }, i.prototype.div = function(e) {
                return this.divmod(e, "div", !1).div
            }, i.prototype.mod = function(e) {
                return this.divmod(e, "mod", !1).mod
            }, i.prototype.umod = function(e) {
                return this.divmod(e, "mod", !0).mod
            }, i.prototype.divRound = function(e) {
                var t = this.divmod(e);
                if (t.mod.isZero()) return t.div;
                var n = 0 !== t.div.negative ? t.mod.isub(e) : t.mod,
                    o = e.ushrn(1),
                    r = e.andln(1),
                    i = n.cmp(o);
                return i < 0 || 1 === r && 0 === i ? t.div : 0 !== t.div.negative ? t.div.isubn(1) : t.div.iaddn(1)
            }, i.prototype.modn = function(e) {
                o(e <= 67108863);
                for (var t = (1 << 26) % e, n = 0, r = this.length - 1; r >= 0; r--) n = (t * n + (0 | this.words[r])) % e;
                return n
            }, i.prototype.idivn = function(e) {
                o(e <= 67108863);
                for (var t = 0, n = this.length - 1; n >= 0; n--) {
                    var r = (0 | this.words[n]) + 67108864 * t;
                    this.words[n] = r / e | 0, t = r % e
                }
                return this.strip()
            }, i.prototype.divn = function(e) {
                return this.clone().idivn(e)
            }, i.prototype.egcd = function(e) {
                o(0 === e.negative), o(!e.isZero());
                var t = this,
                    n = e.clone();
                t = 0 !== t.negative ? t.umod(e) : t.clone();
                for (var r = new i(1), a = new i(0), s = new i(0), l = new i(1), c = 0; t.isEven() && n.isEven();) t.iushrn(1), n.iushrn(1), ++c;
                for (var u = n.clone(), p = t.clone(); !t.isZero();) {
                    for (var d = 0, h = 1; 0 == (t.words[0] & h) && d < 26; ++d, h <<= 1);
                    if (d > 0)
                        for (t.iushrn(d); d-- > 0;)(r.isOdd() || a.isOdd()) && (r.iadd(u), a.isub(p)), r.iushrn(1), a.iushrn(1);
                    for (var f = 0, y = 1; 0 == (n.words[0] & y) && f < 26; ++f, y <<= 1);
                    if (f > 0)
                        for (n.iushrn(f); f-- > 0;)(s.isOdd() || l.isOdd()) && (s.iadd(u), l.isub(p)), s.iushrn(1), l.iushrn(1);
                    t.cmp(n) >= 0 ? (t.isub(n), r.isub(s), a.isub(l)) : (n.isub(t), s.isub(r), l.isub(a))
                }
                return {
                    a: s,
                    b: l,
                    gcd: n.iushln(c)
                }
            }, i.prototype._invmp = function(e) {
                o(0 === e.negative), o(!e.isZero());
                var t = this,
                    n = e.clone();
                t = 0 !== t.negative ? t.umod(e) : t.clone();
                for (var r, a = new i(1), s = new i(0), l = n.clone(); t.cmpn(1) > 0 && n.cmpn(1) > 0;) {
                    for (var c = 0, u = 1; 0 == (t.words[0] & u) && c < 26; ++c, u <<= 1);
                    if (c > 0)
                        for (t.iushrn(c); c-- > 0;) a.isOdd() && a.iadd(l), a.iushrn(1);
                    for (var p = 0, d = 1; 0 == (n.words[0] & d) && p < 26; ++p, d <<= 1);
                    if (p > 0)
                        for (n.iushrn(p); p-- > 0;) s.isOdd() && s.iadd(l), s.iushrn(1);
                    t.cmp(n) >= 0 ? (t.isub(n), a.isub(s)) : (n.isub(t), s.isub(a))
                }
                return (r = 0 === t.cmpn(1) ? a : s).cmpn(0) < 0 && r.iadd(e), r
            }, i.prototype.gcd = function(e) {
                if (this.isZero()) return e.abs();
                if (e.isZero()) return this.abs();
                var t = this.clone(),
                    n = e.clone();
                t.negative = 0, n.negative = 0;
                for (var o = 0; t.isEven() && n.isEven(); o++) t.iushrn(1), n.iushrn(1);
                for (;;) {
                    for (; t.isEven();) t.iushrn(1);
                    for (; n.isEven();) n.iushrn(1);
                    var r = t.cmp(n);
                    if (r < 0) {
                        var i = t;
                        t = n, n = i
                    } else if (0 === r || 0 === n.cmpn(1)) break;
                    t.isub(n)
                }
                return n.iushln(o)
            }, i.prototype.invm = function(e) {
                return this.egcd(e).a.umod(e)
            }, i.prototype.isEven = function() {
                return 0 == (1 & this.words[0])
            }, i.prototype.isOdd = function() {
                return 1 == (1 & this.words[0])
            }, i.prototype.andln = function(e) {
                return this.words[0] & e
            }, i.prototype.bincn = function(e) {
                o("number" == typeof e);
                var t = e % 26,
                    n = (e - t) / 26,
                    r = 1 << t;
                if (this.length <= n) return this._expand(n + 1), this.words[n] |= r, this;
                for (var i = r, a = n; 0 !== i && a < this.length; a++) {
                    var s = 0 | this.words[a];
                    i = (s += i) >>> 26, s &= 67108863, this.words[a] = s
                }
                return 0 !== i && (this.words[a] = i, this.length++), this
            }, i.prototype.isZero = function() {
                return 1 === this.length && 0 === this.words[0]
            }, i.prototype.cmpn = function(e) {
                var t, n = e < 0;
                if (0 !== this.negative && !n) return -1;
                if (0 === this.negative && n) return 1;
                if (this.strip(), this.length > 1) t = 1;
                else {
                    n && (e = -e), o(e <= 67108863, "Number is too big");
                    var r = 0 | this.words[0];
                    t = r === e ? 0 : r < e ? -1 : 1
                }
                return 0 !== this.negative ? 0 | -t : t
            }, i.prototype.cmp = function(e) {
                if (0 !== this.negative && 0 === e.negative) return -1;
                if (0 === this.negative && 0 !== e.negative) return 1;
                var t = this.ucmp(e);
                return 0 !== this.negative ? 0 | -t : t
            }, i.prototype.ucmp = function(e) {
                if (this.length > e.length) return 1;
                if (this.length < e.length) return -1;
                for (var t = 0, n = this.length - 1; n >= 0; n--) {
                    var o = 0 | this.words[n],
                        r = 0 | e.words[n];
                    if (o !== r) {
                        o < r ? t = -1 : o > r && (t = 1);
                        break
                    }
                }
                return t
            }, i.prototype.gtn = function(e) {
                return 1 === this.cmpn(e)
            }, i.prototype.gt = function(e) {
                return 1 === this.cmp(e)
            }, i.prototype.gten = function(e) {
                return this.cmpn(e) >= 0
            }, i.prototype.gte = function(e) {
                return this.cmp(e) >= 0
            }, i.prototype.ltn = function(e) {
                return -1 === this.cmpn(e)
            }, i.prototype.lt = function(e) {
                return -1 === this.cmp(e)
            }, i.prototype.lten = function(e) {
                return this.cmpn(e) <= 0
            }, i.prototype.lte = function(e) {
                return this.cmp(e) <= 0
            }, i.prototype.eqn = function(e) {
                return 0 === this.cmpn(e)
            }, i.prototype.eq = function(e) {
                return 0 === this.cmp(e)
            }, i.red = function(e) {
                return new P(e)
            }, i.prototype.toRed = function(e) {
                return o(!this.red, "Already a number in reduction context"), o(0 === this.negative, "red works only with positives"), e.convertTo(this)._forceRed(e)
            }, i.prototype.fromRed = function() {
                return o(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this)
            }, i.prototype._forceRed = function(e) {
                return this.red = e, this
            }, i.prototype.forceRed = function(e) {
                return o(!this.red, "Already a number in reduction context"), this._forceRed(e)
            }, i.prototype.redAdd = function(e) {
                return o(this.red, "redAdd works only with red numbers"), this.red.add(this, e)
            }, i.prototype.redIAdd = function(e) {
                return o(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, e)
            }, i.prototype.redSub = function(e) {
                return o(this.red, "redSub works only with red numbers"), this.red.sub(this, e)
            }, i.prototype.redISub = function(e) {
                return o(this.red, "redISub works only with red numbers"), this.red.isub(this, e)
            }, i.prototype.redShl = function(e) {
                return o(this.red, "redShl works only with red numbers"), this.red.shl(this, e)
            }, i.prototype.redMul = function(e) {
                return o(this.red, "redMul works only with red numbers"), this.red._verify2(this, e), this.red.mul(this, e)
            }, i.prototype.redIMul = function(e) {
                return o(this.red, "redMul works only with red numbers"), this.red._verify2(this, e), this.red.imul(this, e)
            }, i.prototype.redSqr = function() {
                return o(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this)
            }, i.prototype.redISqr = function() {
                return o(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this)
            }, i.prototype.redSqrt = function() {
                return o(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this)
            }, i.prototype.redInvm = function() {
                return o(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this)
            }, i.prototype.redNeg = function() {
                return o(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this)
            }, i.prototype.redPow = function(e) {
                return o(this.red && !e.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, e)
            };
            var _ = {
                k256: null,
                p224: null,
                p192: null,
                p25519: null
            };

            function C(e, t) {
                this.name = e, this.p = new i(t, 16), this.n = this.p.bitLength(), this.k = new i(1).iushln(this.n).isub(this.p), this.tmp = this._tmp()
            }

            function v() {
                C.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")
            }

            function b() {
                C.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")
            }

            function S() {
                C.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")
            }

            function w() {
                C.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")
            }

            function P(e) {
                if ("string" == typeof e) {
                    var t = i._prime(e);
                    this.m = t.p, this.prime = t
                } else o(e.gtn(1), "modulus must be greater than 1"), this.m = e, this.prime = null
            }

            function A(e) {
                P.call(this, e), this.shift = this.m.bitLength(), this.shift % 26 != 0 && (this.shift += 26 - this.shift % 26), this.r = new i(1).iushln(this.shift), this.r2 = this.imod(this.r.sqr()), this.rinv = this.r._invmp(this.m), this.minv = this.rinv.mul(this.r).isubn(1).div(this.m), this.minv = this.minv.umod(this.r), this.minv = this.r.sub(this.minv)
            }
            C.prototype._tmp = function() {
                var e = new i(null);
                return e.words = new Array(Math.ceil(this.n / 13)), e
            }, C.prototype.ireduce = function(e) {
                var t, n = e;
                do {
                    this.split(n, this.tmp), t = (n = (n = this.imulK(n)).iadd(this.tmp)).bitLength()
                } while (t > this.n);
                var o = t < this.n ? -1 : n.ucmp(this.p);
                return 0 === o ? (n.words[0] = 0, n.length = 1) : o > 0 ? n.isub(this.p) : void 0 !== n.strip ? n.strip() : n._strip(), n
            }, C.prototype.split = function(e, t) {
                e.iushrn(this.n, 0, t)
            }, C.prototype.imulK = function(e) {
                return e.imul(this.k)
            }, r(v, C), v.prototype.split = function(e, t) {
                for (var n = Math.min(e.length, 9), o = 0; o < n; o++) t.words[o] = e.words[o];
                if (t.length = n, e.length <= 9) return e.words[0] = 0, void(e.length = 1);
                var r = e.words[9];
                for (t.words[t.length++] = 4194303 & r, o = 10; o < e.length; o++) {
                    var i = 0 | e.words[o];
                    e.words[o - 10] = (4194303 & i) << 4 | r >>> 22, r = i
                }
                r >>>= 22, e.words[o - 10] = r, 0 === r && e.length > 10 ? e.length -= 10 : e.length -= 9
            }, v.prototype.imulK = function(e) {
                e.words[e.length] = 0, e.words[e.length + 1] = 0, e.length += 2;
                for (var t = 0, n = 0; n < e.length; n++) {
                    var o = 0 | e.words[n];
                    t += 977 * o, e.words[n] = 67108863 & t, t = 64 * o + (t / 67108864 | 0)
                }
                return 0 === e.words[e.length - 1] && (e.length--, 0 === e.words[e.length - 1] && e.length--), e
            }, r(b, C), r(S, C), r(w, C), w.prototype.imulK = function(e) {
                for (var t = 0, n = 0; n < e.length; n++) {
                    var o = 19 * (0 | e.words[n]) + t,
                        r = 67108863 & o;
                    o >>>= 26, e.words[n] = r, t = o
                }
                return 0 !== t && (e.words[e.length++] = t), e
            }, i._prime = function(e) {
                if (_[e]) return _[e];
                var t;
                if ("k256" === e) t = new v;
                else if ("p224" === e) t = new b;
                else if ("p192" === e) t = new S;
                else {
                    if ("p25519" !== e) throw new Error("Unknown prime " + e);
                    t = new w
                }
                return _[e] = t, t
            }, P.prototype._verify1 = function(e) {
                o(0 === e.negative, "red works only with positives"), o(e.red, "red works only with red numbers")
            }, P.prototype._verify2 = function(e, t) {
                o(0 == (e.negative | t.negative), "red works only with positives"), o(e.red && e.red === t.red, "red works only with red numbers")
            }, P.prototype.imod = function(e) {
                return this.prime ? this.prime.ireduce(e)._forceRed(this) : e.umod(this.m)._forceRed(this)
            }, P.prototype.neg = function(e) {
                return e.isZero() ? e.clone() : this.m.sub(e)._forceRed(this)
            }, P.prototype.add = function(e, t) {
                this._verify2(e, t);
                var n = e.add(t);
                return n.cmp(this.m) >= 0 && n.isub(this.m), n._forceRed(this)
            }, P.prototype.iadd = function(e, t) {
                this._verify2(e, t);
                var n = e.iadd(t);
                return n.cmp(this.m) >= 0 && n.isub(this.m), n
            }, P.prototype.sub = function(e, t) {
                this._verify2(e, t);
                var n = e.sub(t);
                return n.cmpn(0) < 0 && n.iadd(this.m), n._forceRed(this)
            }, P.prototype.isub = function(e, t) {
                this._verify2(e, t);
                var n = e.isub(t);
                return n.cmpn(0) < 0 && n.iadd(this.m), n
            }, P.prototype.shl = function(e, t) {
                return this._verify1(e), this.imod(e.ushln(t))
            }, P.prototype.imul = function(e, t) {
                return this._verify2(e, t), this.imod(e.imul(t))
            }, P.prototype.mul = function(e, t) {
                return this._verify2(e, t), this.imod(e.mul(t))
            }, P.prototype.isqr = function(e) {
                return this.imul(e, e.clone())
            }, P.prototype.sqr = function(e) {
                return this.mul(e, e)
            }, P.prototype.sqrt = function(e) {
                if (e.isZero()) return e.clone();
                var t = this.m.andln(3);
                if (o(t % 2 == 1), 3 === t) {
                    var n = this.m.add(new i(1)).iushrn(2);
                    return this.pow(e, n)
                }
                for (var r = this.m.subn(1), a = 0; !r.isZero() && 0 === r.andln(1);) a++, r.iushrn(1);
                o(!r.isZero());
                var s = new i(1).toRed(this),
                    l = s.redNeg(),
                    c = this.m.subn(1).iushrn(1),
                    u = this.m.bitLength();
                for (u = new i(2 * u * u).toRed(this); 0 !== this.pow(u, c).cmp(l);) u.redIAdd(l);
                for (var p = this.pow(u, r), d = this.pow(e, r.addn(1).iushrn(1)), h = this.pow(e, r), f = a; 0 !== h.cmp(s);) {
                    for (var y = h, g = 0; 0 !== y.cmp(s); g++) y = y.redSqr();
                    o(g < f);
                    var m = this.pow(p, new i(1).iushln(f - g - 1));
                    d = d.redMul(m), p = m.redSqr(), h = h.redMul(p), f = g
                }
                return d
            }, P.prototype.invm = function(e) {
                var t = e._invmp(this.m);
                return 0 !== t.negative ? (t.negative = 0, this.imod(t).redNeg()) : this.imod(t)
            }, P.prototype.pow = function(e, t) {
                if (t.isZero()) return new i(1).toRed(this);
                if (0 === t.cmpn(1)) return e.clone();
                var n = new Array(16);
                n[0] = new i(1).toRed(this), n[1] = e;
                for (var o = 2; o < n.length; o++) n[o] = this.mul(n[o - 1], e);
                var r = n[0],
                    a = 0,
                    s = 0,
                    l = t.bitLength() % 26;
                for (0 === l && (l = 26), o = t.length - 1; o >= 0; o--) {
                    for (var c = t.words[o], u = l - 1; u >= 0; u--) {
                        var p = c >> u & 1;
                        r !== n[0] && (r = this.sqr(r)), 0 !== p || 0 !== a ? (a <<= 1, a |= p, (4 == ++s || 0 === o && 0 === u) && (r = this.mul(r, n[a]), s = 0, a = 0)) : s = 0
                    }
                    l = 26
                }
                return r
            }, P.prototype.convertTo = function(e) {
                var t = e.umod(this.m);
                return t === e ? t.clone() : t
            }, P.prototype.convertFrom = function(e) {
                var t = e.clone();
                return t.red = null, t
            }, i.mont = function(e) {
                return new A(e)
            }, r(A, P), A.prototype.convertTo = function(e) {
                return this.imod(e.ushln(this.shift))
            }, A.prototype.convertFrom = function(e) {
                var t = this.imod(e.mul(this.rinv));
                return t.red = null, t
            }, A.prototype.imul = function(e, t) {
                if (e.isZero() || t.isZero()) return e.words[0] = 0, e.length = 1, e;
                var n = e.imul(t),
                    o = n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),
                    r = n.isub(o).iushrn(this.shift),
                    i = r;
                return r.cmp(this.m) >= 0 ? i = r.isub(this.m) : r.cmpn(0) < 0 && (i = r.iadd(this.m)), i._forceRed(this)
            }, A.prototype.mul = function(e, t) {
                if (e.isZero() || t.isZero()) return new i(0)._forceRed(this);
                var n = e.mul(t),
                    o = n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),
                    r = n.isub(o).iushrn(this.shift),
                    a = r;
                return r.cmp(this.m) >= 0 ? a = r.isub(this.m) : r.cmpn(0) < 0 && (a = r.iadd(this.m)), a._forceRed(this)
            }, A.prototype.invm = function(e) {
                return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)
            }
        })(void 0 === t || t, this)
    }, {
        buffer: 19
    }],
    16: [function(e, t, n) {
        "use strict";
        n.byteLength = function(e) {
            var t = c(e),
                n = t[0],
                o = t[1];
            return 3 * (n + o) / 4 - o
        }, n.toByteArray = function(e) {
            var t, n, o = c(e),
                a = o[0],
                s = o[1],
                l = new i(u(0, a, s)),
                p = 0,
                d = s > 0 ? a - 4 : a;
            for (n = 0; n < d; n += 4) t = r[e.charCodeAt(n)] << 18 | r[e.charCodeAt(n + 1)] << 12 | r[e.charCodeAt(n + 2)] << 6 | r[e.charCodeAt(n + 3)], l[p++] = t >> 16 & 255, l[p++] = t >> 8 & 255, l[p++] = 255 & t;
            return 2 === s && (t = r[e.charCodeAt(n)] << 2 | r[e.charCodeAt(n + 1)] >> 4, l[p++] = 255 & t), 1 === s && (t = r[e.charCodeAt(n)] << 10 | r[e.charCodeAt(n + 1)] << 4 | r[e.charCodeAt(n + 2)] >> 2, l[p++] = t >> 8 & 255, l[p++] = 255 & t), l
        }, n.fromByteArray = function(e) {
            for (var t, n = e.length, r = n % 3, i = [], a = 0, s = n - r; a < s; a += 16383) i.push(p(e, a, a + 16383 > s ? s : a + 16383));
            return 1 === r ? (t = e[n - 1], i.push(o[t >> 2] + o[t << 4 & 63] + "==")) : 2 === r && (t = (e[n - 2] << 8) + e[n - 1], i.push(o[t >> 10] + o[t >> 4 & 63] + o[t << 2 & 63] + "=")), i.join("")
        };
        for (var o = [], r = [], i = "undefined" != typeof Uint8Array ? Uint8Array : Array, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, l = a.length; s < l; ++s) o[s] = a[s], r[a.charCodeAt(s)] = s;

        function c(e) {
            var t = e.length;
            if (t % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
            var n = e.indexOf("=");
            return -1 === n && (n = t), [n, n === t ? 0 : 4 - n % 4]
        }

        function u(e, t, n) {
            return 3 * (t + n) / 4 - n
        }

        function p(e, t, n) {
            for (var r, i, a = [], s = t; s < n; s += 3) r = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (255 & e[s + 2]), a.push(o[(i = r) >> 18 & 63] + o[i >> 12 & 63] + o[i >> 6 & 63] + o[63 & i]);
            return a.join("")
        }
        r["-".charCodeAt(0)] = 62, r["_".charCodeAt(0)] = 63
    }, {}],
    17: [function(e, t) {
        (function(t, n) {
            "use strict";

            function o(e, t) {
                if (!e) throw new Error(t || "Assertion failed")
            }

            function r(e, t) {
                e.super_ = t;
                var n = function() {};
                n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e
            }

            function i(e, t, n) {
                if (i.isBN(e)) return e;
                this.negative = 0, this.words = null, this.length = 0, this.red = null, null !== e && ("le" !== t && "be" !== t || (n = t, t = 10), this._init(e || 0, t || 10, n || "be"))
            }
            var a;
            "object" == typeof t ? t.exports = i : n.BN = i, i.BN = i, i.wordSize = 26;
            try {
                a = "undefined" != typeof window && void 0 !== window.Buffer ? window.Buffer : e("buffer").Buffer
            } catch (k) {}

            function s(e, t) {
                var n = e.charCodeAt(t);
                return n >= 48 && n <= 57 ? n - 48 : n >= 65 && n <= 70 ? n - 55 : n >= 97 && n <= 102 ? n - 87 : void o(!1, "Invalid character in " + e)
            }

            function l(e, t, n) {
                var o = s(e, n);
                return n - 1 >= t && (o |= s(e, n - 1) << 4), o
            }

            function c(e, t, n, r) {
                for (var i = 0, a = 0, s = Math.min(e.length, n), l = t; l < s; l++) {
                    var c = e.charCodeAt(l) - 48;
                    i *= r, a = c >= 49 ? c - 49 + 10 : c >= 17 ? c - 17 + 10 : c, o(c >= 0 && a < r, "Invalid character"), i += a
                }
                return i
            }

            function u(e, t) {
                e.words = t.words, e.length = t.length, e.negative = t.negative, e.red = t.red
            }
            if (i.isBN = function(e) {
                    return e instanceof i || null !== e && "object" == typeof e && e.constructor.wordSize === i.wordSize && Array.isArray(e.words)
                }, i.max = function(e, t) {
                    return e.cmp(t) > 0 ? e : t
                }, i.min = function(e, t) {
                    return e.cmp(t) < 0 ? e : t
                }, i.prototype._init = function(e, t, n) {
                    if ("number" == typeof e) return this._initNumber(e, t, n);
                    if ("object" == typeof e) return this._initArray(e, t, n);
                    "hex" === t && (t = 16), o(t === (0 | t) && t >= 2 && t <= 36);
                    var r = 0;
                    "-" === (e = e.toString().replace(/\s+/g, ""))[0] && (r++, this.negative = 1), r < e.length && (16 === t ? this._parseHex(e, r, n) : (this._parseBase(e, t, r), "le" === n && this._initArray(this.toArray(), t, n)))
                }, i.prototype._initNumber = function(e, t, n) {
                    e < 0 && (this.negative = 1, e = -e), e < 67108864 ? (this.words = [67108863 & e], this.length = 1) : e < 4503599627370496 ? (this.words = [67108863 & e, e / 67108864 & 67108863], this.length = 2) : (o(e < 9007199254740992), this.words = [67108863 & e, e / 67108864 & 67108863, 1], this.length = 3), "le" === n && this._initArray(this.toArray(), t, n)
                }, i.prototype._initArray = function(e, t, n) {
                    if (o("number" == typeof e.length), e.length <= 0) return this.words = [0], this.length = 1, this;
                    this.length = Math.ceil(e.length / 3), this.words = new Array(this.length);
                    for (var r = 0; r < this.length; r++) this.words[r] = 0;
                    var i, a, s = 0;
                    if ("be" === n)
                        for (r = e.length - 1, i = 0; r >= 0; r -= 3) a = e[r] | e[r - 1] << 8 | e[r - 2] << 16, this.words[i] |= a << s & 67108863, this.words[i + 1] = a >>> 26 - s & 67108863, (s += 24) >= 26 && (s -= 26, i++);
                    else if ("le" === n)
                        for (r = 0, i = 0; r < e.length; r += 3) a = e[r] | e[r + 1] << 8 | e[r + 2] << 16, this.words[i] |= a << s & 67108863, this.words[i + 1] = a >>> 26 - s & 67108863, (s += 24) >= 26 && (s -= 26, i++);
                    return this._strip()
                }, i.prototype._parseHex = function(e, t, n) {
                    this.length = Math.ceil((e.length - t) / 6), this.words = new Array(this.length);
                    for (var o = 0; o < this.length; o++) this.words[o] = 0;
                    var r, i = 0,
                        a = 0;
                    if ("be" === n)
                        for (o = e.length - 1; o >= t; o -= 2) r = l(e, t, o) << i, this.words[a] |= 67108863 & r, i >= 18 ? (i -= 18, a += 1, this.words[a] |= r >>> 26) : i += 8;
                    else
                        for (o = (e.length - t) % 2 == 0 ? t + 1 : t; o < e.length; o += 2) r = l(e, t, o) << i, this.words[a] |= 67108863 & r, i >= 18 ? (i -= 18, a += 1, this.words[a] |= r >>> 26) : i += 8;
                    this._strip()
                }, i.prototype._parseBase = function(e, t, n) {
                    this.words = [0], this.length = 1;
                    for (var o = 0, r = 1; r <= 67108863; r *= t) o++;
                    o--, r = r / t | 0;
                    for (var i = e.length - n, a = i % o, s = Math.min(i, i - a) + n, l = 0, u = n; u < s; u += o) l = c(e, u, u + o, t), this.imuln(r), this.words[0] + l < 67108864 ? this.words[0] += l : this._iaddn(l);
                    if (0 !== a) {
                        var p = 1;
                        for (l = c(e, u, e.length, t), u = 0; u < a; u++) p *= t;
                        this.imuln(p), this.words[0] + l < 67108864 ? this.words[0] += l : this._iaddn(l)
                    }
                    this._strip()
                }, i.prototype.copy = function(e) {
                    e.words = new Array(this.length);
                    for (var t = 0; t < this.length; t++) e.words[t] = this.words[t];
                    e.length = this.length, e.negative = this.negative, e.red = this.red
                }, i.prototype._move = function(e) {
                    u(e, this)
                }, i.prototype.clone = function() {
                    var e = new i(null);
                    return this.copy(e), e
                }, i.prototype._expand = function(e) {
                    for (; this.length < e;) this.words[this.length++] = 0;
                    return this
                }, i.prototype._strip = function() {
                    for (; this.length > 1 && 0 === this.words[this.length - 1];) this.length--;
                    return this._normSign()
                }, i.prototype._normSign = function() {
                    return 1 === this.length && 0 === this.words[0] && (this.negative = 0), this
                }, "undefined" != typeof Symbol && "function" == typeof Symbol.for) try {
                i.prototype[Symbol.for("nodejs.util.inspect.custom")] = p
            } catch (k) {
                i.prototype.inspect = p
            } else i.prototype.inspect = p;

            function p() {
                return (this.red ? "<BN-R: " : "<BN: ") + this.toString(16) + ">"
            }
            var d = ["", "0", "00", "000", "0000", "00000", "000000", "0000000", "00000000", "000000000", "0000000000", "00000000000", "000000000000", "0000000000000", "00000000000000", "000000000000000", "0000000000000000", "00000000000000000", "000000000000000000", "0000000000000000000", "00000000000000000000", "000000000000000000000", "0000000000000000000000", "00000000000000000000000", "000000000000000000000000", "0000000000000000000000000"],
                h = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
                f = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176];
            i.prototype.toString = function(e, t) {
                var n;
                if (t = 0 | t || 1, 16 === (e = e || 10) || "hex" === e) {
                    n = "";
                    for (var r = 0, i = 0, a = 0; a < this.length; a++) {
                        var s = this.words[a],
                            l = (16777215 & (s << r | i)).toString(16);
                        i = s >>> 24 - r & 16777215, (r += 2) >= 26 && (r -= 26, a--), n = 0 !== i || a !== this.length - 1 ? d[6 - l.length] + l + n : l + n
                    }
                    for (0 !== i && (n = i.toString(16) + n); n.length % t != 0;) n = "0" + n;
                    return 0 !== this.negative && (n = "-" + n), n
                }
                if (e === (0 | e) && e >= 2 && e <= 36) {
                    var c = h[e],
                        u = f[e];
                    n = "";
                    var p = this.clone();
                    for (p.negative = 0; !p.isZero();) {
                        var y = p.modrn(u).toString(e);
                        n = (p = p.idivn(u)).isZero() ? y + n : d[c - y.length] + y + n
                    }
                    for (this.isZero() && (n = "0" + n); n.length % t != 0;) n = "0" + n;
                    return 0 !== this.negative && (n = "-" + n), n
                }
                o(!1, "Base should be between 2 and 36")
            }, i.prototype.toNumber = function() {
                var e = this.words[0];
                return 2 === this.length ? e += 67108864 * this.words[1] : 3 === this.length && 1 === this.words[2] ? e += 4503599627370496 + 67108864 * this.words[1] : this.length > 2 && o(!1, "Number can only safely store up to 53 bits"), 0 !== this.negative ? -e : e
            }, i.prototype.toJSON = function() {
                return this.toString(16, 2)
            }, a && (i.prototype.toBuffer = function(e, t) {
                return this.toArrayLike(a, e, t)
            }), i.prototype.toArray = function(e, t) {
                return this.toArrayLike(Array, e, t)
            };
            var y = function(e, t) {
                return e.allocUnsafe ? e.allocUnsafe(t) : new e(t)
            };

            function g(e) {
                for (var t = new Array(e.bitLength()), n = 0; n < t.length; n++) {
                    var o = n / 26 | 0,
                        r = n % 26;
                    t[n] = e.words[o] >>> r & 1
                }
                return t
            }

            function m(e, t, n) {
                n.negative = t.negative ^ e.negative;
                var o = e.length + t.length | 0;
                n.length = o, o = o - 1 | 0;
                var r = 0 | e.words[0],
                    i = 0 | t.words[0],
                    a = r * i,
                    s = 67108863 & a,
                    l = a / 67108864 | 0;
                n.words[0] = s;
                for (var c = 1; c < o; c++) {
                    for (var u = l >>> 26, p = 67108863 & l, d = Math.min(c, t.length - 1), h = Math.max(0, c - e.length + 1); h <= d; h++) {
                        var f = c - h | 0;
                        u += (a = (r = 0 | e.words[f]) * (i = 0 | t.words[h]) + p) / 67108864 | 0, p = 67108863 & a
                    }
                    n.words[c] = 0 | p, l = 0 | u
                }
                return 0 !== l ? n.words[c] = 0 | l : n.length--, n._strip()
            }
            i.prototype.toArrayLike = function(e, t, n) {
                this._strip();
                var r = this.byteLength(),
                    i = n || Math.max(1, r);
                o(r <= i, "byte array longer than desired length"), o(i > 0, "Requested array length <= 0");
                var a = y(e, i);
                return this["_toArrayLike" + ("le" === t ? "LE" : "BE")](a, r), a
            }, i.prototype._toArrayLikeLE = function(e) {
                for (var t = 0, n = 0, o = 0, r = 0; o < this.length; o++) {
                    var i = this.words[o] << r | n;
                    e[t++] = 255 & i, t < e.length && (e[t++] = i >> 8 & 255), t < e.length && (e[t++] = i >> 16 & 255), 6 === r ? (t < e.length && (e[t++] = i >> 24 & 255), n = 0, r = 0) : (n = i >>> 24, r += 2)
                }
                if (t < e.length)
                    for (e[t++] = n; t < e.length;) e[t++] = 0
            }, i.prototype._toArrayLikeBE = function(e) {
                for (var t = e.length - 1, n = 0, o = 0, r = 0; o < this.length; o++) {
                    var i = this.words[o] << r | n;
                    e[t--] = 255 & i, t >= 0 && (e[t--] = i >> 8 & 255), t >= 0 && (e[t--] = i >> 16 & 255), 6 === r ? (t >= 0 && (e[t--] = i >> 24 & 255), n = 0, r = 0) : (n = i >>> 24, r += 2)
                }
                if (t >= 0)
                    for (e[t--] = n; t >= 0;) e[t--] = 0
            }, Math.clz32 ? i.prototype._countBits = function(e) {
                return 32 - Math.clz32(e)
            } : i.prototype._countBits = function(e) {
                var t = e,
                    n = 0;
                return t >= 4096 && (n += 13, t >>>= 13), t >= 64 && (n += 7, t >>>= 7), t >= 8 && (n += 4, t >>>= 4), t >= 2 && (n += 2, t >>>= 2), n + t
            }, i.prototype._zeroBits = function(e) {
                if (0 === e) return 26;
                var t = e,
                    n = 0;
                return 0 == (8191 & t) && (n += 13, t >>>= 13), 0 == (127 & t) && (n += 7, t >>>= 7), 0 == (15 & t) && (n += 4, t >>>= 4), 0 == (3 & t) && (n += 2, t >>>= 2), 0 == (1 & t) && n++, n
            }, i.prototype.bitLength = function() {
                var e = this.words[this.length - 1],
                    t = this._countBits(e);
                return 26 * (this.length - 1) + t
            }, i.prototype.zeroBits = function() {
                if (this.isZero()) return 0;
                for (var e = 0, t = 0; t < this.length; t++) {
                    var n = this._zeroBits(this.words[t]);
                    if (e += n, 26 !== n) break
                }
                return e
            }, i.prototype.byteLength = function() {
                return Math.ceil(this.bitLength() / 8)
            }, i.prototype.toTwos = function(e) {
                return 0 !== this.negative ? this.abs().inotn(e).iaddn(1) : this.clone()
            }, i.prototype.fromTwos = function(e) {
                return this.testn(e - 1) ? this.notn(e).iaddn(1).ineg() : this.clone()
            }, i.prototype.isNeg = function() {
                return 0 !== this.negative
            }, i.prototype.neg = function() {
                return this.clone().ineg()
            }, i.prototype.ineg = function() {
                return this.isZero() || (this.negative ^= 1), this
            }, i.prototype.iuor = function(e) {
                for (; this.length < e.length;) this.words[this.length++] = 0;
                for (var t = 0; t < e.length; t++) this.words[t] = this.words[t] | e.words[t];
                return this._strip()
            }, i.prototype.ior = function(e) {
                return o(0 == (this.negative | e.negative)), this.iuor(e)
            }, i.prototype.or = function(e) {
                return this.length > e.length ? this.clone().ior(e) : e.clone().ior(this)
            }, i.prototype.uor = function(e) {
                return this.length > e.length ? this.clone().iuor(e) : e.clone().iuor(this)
            }, i.prototype.iuand = function(e) {
                var t;
                t = this.length > e.length ? e : this;
                for (var n = 0; n < t.length; n++) this.words[n] = this.words[n] & e.words[n];
                return this.length = t.length, this._strip()
            }, i.prototype.iand = function(e) {
                return o(0 == (this.negative | e.negative)), this.iuand(e)
            }, i.prototype.and = function(e) {
                return this.length > e.length ? this.clone().iand(e) : e.clone().iand(this)
            }, i.prototype.uand = function(e) {
                return this.length > e.length ? this.clone().iuand(e) : e.clone().iuand(this)
            }, i.prototype.iuxor = function(e) {
                var t, n;
                this.length > e.length ? (t = this, n = e) : (t = e, n = this);
                for (var o = 0; o < n.length; o++) this.words[o] = t.words[o] ^ n.words[o];
                if (this !== t)
                    for (; o < t.length; o++) this.words[o] = t.words[o];
                return this.length = t.length, this._strip()
            }, i.prototype.ixor = function(e) {
                return o(0 == (this.negative | e.negative)), this.iuxor(e)
            }, i.prototype.xor = function(e) {
                return this.length > e.length ? this.clone().ixor(e) : e.clone().ixor(this)
            }, i.prototype.uxor = function(e) {
                return this.length > e.length ? this.clone().iuxor(e) : e.clone().iuxor(this)
            }, i.prototype.inotn = function(e) {
                o("number" == typeof e && e >= 0);
                var t = 0 | Math.ceil(e / 26),
                    n = e % 26;
                this._expand(t), n > 0 && t--;
                for (var r = 0; r < t; r++) this.words[r] = 67108863 & ~this.words[r];
                return n > 0 && (this.words[r] = ~this.words[r] & 67108863 >> 26 - n), this._strip()
            }, i.prototype.notn = function(e) {
                return this.clone().inotn(e)
            }, i.prototype.setn = function(e, t) {
                o("number" == typeof e && e >= 0);
                var n = e / 26 | 0,
                    r = e % 26;
                return this._expand(n + 1), this.words[n] = t ? this.words[n] | 1 << r : this.words[n] & ~(1 << r), this._strip()
            }, i.prototype.iadd = function(e) {
                var t, n, o;
                if (0 !== this.negative && 0 === e.negative) return this.negative = 0, t = this.isub(e), this.negative ^= 1, this._normSign();
                if (0 === this.negative && 0 !== e.negative) return e.negative = 0, t = this.isub(e), e.negative = 1, t._normSign();
                this.length > e.length ? (n = this, o = e) : (n = e, o = this);
                for (var r = 0, i = 0; i < o.length; i++) t = (0 | n.words[i]) + (0 | o.words[i]) + r, this.words[i] = 67108863 & t, r = t >>> 26;
                for (; 0 !== r && i < n.length; i++) t = (0 | n.words[i]) + r, this.words[i] = 67108863 & t, r = t >>> 26;
                if (this.length = n.length, 0 !== r) this.words[this.length] = r, this.length++;
                else if (n !== this)
                    for (; i < n.length; i++) this.words[i] = n.words[i];
                return this
            }, i.prototype.add = function(e) {
                var t;
                return 0 !== e.negative && 0 === this.negative ? (e.negative = 0, t = this.sub(e), e.negative ^= 1, t) : 0 === e.negative && 0 !== this.negative ? (this.negative = 0, t = e.sub(this), this.negative = 1, t) : this.length > e.length ? this.clone().iadd(e) : e.clone().iadd(this)
            }, i.prototype.isub = function(e) {
                if (0 !== e.negative) {
                    e.negative = 0;
                    var t = this.iadd(e);
                    return e.negative = 1, t._normSign()
                }
                if (0 !== this.negative) return this.negative = 0, this.iadd(e), this.negative = 1, this._normSign();
                var n, o, r = this.cmp(e);
                if (0 === r) return this.negative = 0, this.length = 1, this.words[0] = 0, this;
                r > 0 ? (n = this, o = e) : (n = e, o = this);
                for (var i = 0, a = 0; a < o.length; a++) i = (t = (0 | n.words[a]) - (0 | o.words[a]) + i) >> 26, this.words[a] = 67108863 & t;
                for (; 0 !== i && a < n.length; a++) i = (t = (0 | n.words[a]) + i) >> 26, this.words[a] = 67108863 & t;
                if (0 === i && a < n.length && n !== this)
                    for (; a < n.length; a++) this.words[a] = n.words[a];
                return this.length = Math.max(this.length, a), n !== this && (this.negative = 1), this._strip()
            }, i.prototype.sub = function(e) {
                return this.clone().isub(e)
            };
            var I = function(e, t, n) {
                var o, r, i, a = e.words,
                    s = t.words,
                    l = n.words,
                    c = 0,
                    u = 0 | a[0],
                    p = 8191 & u,
                    d = u >>> 13,
                    h = 0 | a[1],
                    f = 8191 & h,
                    y = h >>> 13,
                    g = 0 | a[2],
                    m = 8191 & g,
                    I = g >>> 13,
                    _ = 0 | a[3],
                    C = 8191 & _,
                    v = _ >>> 13,
                    b = 0 | a[4],
                    S = 8191 & b,
                    w = b >>> 13,
                    P = 0 | a[5],
                    A = 8191 & P,
                    T = P >>> 13,
                    R = 0 | a[6],
                    L = 8191 & R,
                    k = R >>> 13,
                    O = 0 | a[7],
                    M = 8191 & O,
                    D = O >>> 13,
                    B = 0 | a[8],
                    N = 8191 & B,
                    E = B >>> 13,
                    U = 0 | a[9],
                    G = 8191 & U,
                    x = U >>> 13,
                    H = 0 | s[0],
                    F = 8191 & H,
                    j = H >>> 13,
                    W = 0 | s[1],
                    z = 8191 & W,
                    q = W >>> 13,
                    V = 0 | s[2],
                    Z = 8191 & V,
                    K = V >>> 13,
                    J = 0 | s[3],
                    X = 8191 & J,
                    Q = J >>> 13,
                    Y = 0 | s[4],
                    $ = 8191 & Y,
                    ee = Y >>> 13,
                    te = 0 | s[5],
                    ne = 8191 & te,
                    oe = te >>> 13,
                    re = 0 | s[6],
                    ie = 8191 & re,
                    ae = re >>> 13,
                    se = 0 | s[7],
                    le = 8191 & se,
                    ce = se >>> 13,
                    ue = 0 | s[8],
                    pe = 8191 & ue,
                    de = ue >>> 13,
                    he = 0 | s[9],
                    fe = 8191 & he,
                    ye = he >>> 13;
                n.negative = e.negative ^ t.negative, n.length = 19;
                var ge = (c + (o = Math.imul(p, F)) | 0) + ((8191 & (r = (r = Math.imul(p, j)) + Math.imul(d, F) | 0)) << 13) | 0;
                c = ((i = Math.imul(d, j)) + (r >>> 13) | 0) + (ge >>> 26) | 0, ge &= 67108863, o = Math.imul(f, F), r = (r = Math.imul(f, j)) + Math.imul(y, F) | 0, i = Math.imul(y, j);
                var me = (c + (o = o + Math.imul(p, z) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, q) | 0) + Math.imul(d, z) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, q) | 0) + (r >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, o = Math.imul(m, F), r = (r = Math.imul(m, j)) + Math.imul(I, F) | 0, i = Math.imul(I, j), o = o + Math.imul(f, z) | 0, r = (r = r + Math.imul(f, q) | 0) + Math.imul(y, z) | 0, i = i + Math.imul(y, q) | 0;
                var Ie = (c + (o = o + Math.imul(p, Z) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, K) | 0) + Math.imul(d, Z) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, K) | 0) + (r >>> 13) | 0) + (Ie >>> 26) | 0, Ie &= 67108863, o = Math.imul(C, F), r = (r = Math.imul(C, j)) + Math.imul(v, F) | 0, i = Math.imul(v, j), o = o + Math.imul(m, z) | 0, r = (r = r + Math.imul(m, q) | 0) + Math.imul(I, z) | 0, i = i + Math.imul(I, q) | 0, o = o + Math.imul(f, Z) | 0, r = (r = r + Math.imul(f, K) | 0) + Math.imul(y, Z) | 0, i = i + Math.imul(y, K) | 0;
                var _e = (c + (o = o + Math.imul(p, X) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, Q) | 0) + Math.imul(d, X) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, Q) | 0) + (r >>> 13) | 0) + (_e >>> 26) | 0, _e &= 67108863, o = Math.imul(S, F), r = (r = Math.imul(S, j)) + Math.imul(w, F) | 0, i = Math.imul(w, j), o = o + Math.imul(C, z) | 0, r = (r = r + Math.imul(C, q) | 0) + Math.imul(v, z) | 0, i = i + Math.imul(v, q) | 0, o = o + Math.imul(m, Z) | 0, r = (r = r + Math.imul(m, K) | 0) + Math.imul(I, Z) | 0, i = i + Math.imul(I, K) | 0, o = o + Math.imul(f, X) | 0, r = (r = r + Math.imul(f, Q) | 0) + Math.imul(y, X) | 0, i = i + Math.imul(y, Q) | 0;
                var Ce = (c + (o = o + Math.imul(p, $) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, ee) | 0) + Math.imul(d, $) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, ee) | 0) + (r >>> 13) | 0) + (Ce >>> 26) | 0, Ce &= 67108863, o = Math.imul(A, F), r = (r = Math.imul(A, j)) + Math.imul(T, F) | 0, i = Math.imul(T, j), o = o + Math.imul(S, z) | 0, r = (r = r + Math.imul(S, q) | 0) + Math.imul(w, z) | 0, i = i + Math.imul(w, q) | 0, o = o + Math.imul(C, Z) | 0, r = (r = r + Math.imul(C, K) | 0) + Math.imul(v, Z) | 0, i = i + Math.imul(v, K) | 0, o = o + Math.imul(m, X) | 0, r = (r = r + Math.imul(m, Q) | 0) + Math.imul(I, X) | 0, i = i + Math.imul(I, Q) | 0, o = o + Math.imul(f, $) | 0, r = (r = r + Math.imul(f, ee) | 0) + Math.imul(y, $) | 0, i = i + Math.imul(y, ee) | 0;
                var ve = (c + (o = o + Math.imul(p, ne) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, oe) | 0) + Math.imul(d, ne) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, oe) | 0) + (r >>> 13) | 0) + (ve >>> 26) | 0, ve &= 67108863, o = Math.imul(L, F), r = (r = Math.imul(L, j)) + Math.imul(k, F) | 0, i = Math.imul(k, j), o = o + Math.imul(A, z) | 0, r = (r = r + Math.imul(A, q) | 0) + Math.imul(T, z) | 0, i = i + Math.imul(T, q) | 0, o = o + Math.imul(S, Z) | 0, r = (r = r + Math.imul(S, K) | 0) + Math.imul(w, Z) | 0, i = i + Math.imul(w, K) | 0, o = o + Math.imul(C, X) | 0, r = (r = r + Math.imul(C, Q) | 0) + Math.imul(v, X) | 0, i = i + Math.imul(v, Q) | 0, o = o + Math.imul(m, $) | 0, r = (r = r + Math.imul(m, ee) | 0) + Math.imul(I, $) | 0, i = i + Math.imul(I, ee) | 0, o = o + Math.imul(f, ne) | 0, r = (r = r + Math.imul(f, oe) | 0) + Math.imul(y, ne) | 0, i = i + Math.imul(y, oe) | 0;
                var be = (c + (o = o + Math.imul(p, ie) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, ae) | 0) + Math.imul(d, ie) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, ae) | 0) + (r >>> 13) | 0) + (be >>> 26) | 0, be &= 67108863, o = Math.imul(M, F), r = (r = Math.imul(M, j)) + Math.imul(D, F) | 0, i = Math.imul(D, j), o = o + Math.imul(L, z) | 0, r = (r = r + Math.imul(L, q) | 0) + Math.imul(k, z) | 0, i = i + Math.imul(k, q) | 0, o = o + Math.imul(A, Z) | 0, r = (r = r + Math.imul(A, K) | 0) + Math.imul(T, Z) | 0, i = i + Math.imul(T, K) | 0, o = o + Math.imul(S, X) | 0, r = (r = r + Math.imul(S, Q) | 0) + Math.imul(w, X) | 0, i = i + Math.imul(w, Q) | 0, o = o + Math.imul(C, $) | 0, r = (r = r + Math.imul(C, ee) | 0) + Math.imul(v, $) | 0, i = i + Math.imul(v, ee) | 0, o = o + Math.imul(m, ne) | 0, r = (r = r + Math.imul(m, oe) | 0) + Math.imul(I, ne) | 0, i = i + Math.imul(I, oe) | 0, o = o + Math.imul(f, ie) | 0, r = (r = r + Math.imul(f, ae) | 0) + Math.imul(y, ie) | 0, i = i + Math.imul(y, ae) | 0;
                var Se = (c + (o = o + Math.imul(p, le) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, ce) | 0) + Math.imul(d, le) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, ce) | 0) + (r >>> 13) | 0) + (Se >>> 26) | 0, Se &= 67108863, o = Math.imul(N, F), r = (r = Math.imul(N, j)) + Math.imul(E, F) | 0, i = Math.imul(E, j), o = o + Math.imul(M, z) | 0, r = (r = r + Math.imul(M, q) | 0) + Math.imul(D, z) | 0, i = i + Math.imul(D, q) | 0, o = o + Math.imul(L, Z) | 0, r = (r = r + Math.imul(L, K) | 0) + Math.imul(k, Z) | 0, i = i + Math.imul(k, K) | 0, o = o + Math.imul(A, X) | 0, r = (r = r + Math.imul(A, Q) | 0) + Math.imul(T, X) | 0, i = i + Math.imul(T, Q) | 0, o = o + Math.imul(S, $) | 0, r = (r = r + Math.imul(S, ee) | 0) + Math.imul(w, $) | 0, i = i + Math.imul(w, ee) | 0, o = o + Math.imul(C, ne) | 0, r = (r = r + Math.imul(C, oe) | 0) + Math.imul(v, ne) | 0, i = i + Math.imul(v, oe) | 0, o = o + Math.imul(m, ie) | 0, r = (r = r + Math.imul(m, ae) | 0) + Math.imul(I, ie) | 0, i = i + Math.imul(I, ae) | 0, o = o + Math.imul(f, le) | 0, r = (r = r + Math.imul(f, ce) | 0) + Math.imul(y, le) | 0, i = i + Math.imul(y, ce) | 0;
                var we = (c + (o = o + Math.imul(p, pe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, de) | 0) + Math.imul(d, pe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, de) | 0) + (r >>> 13) | 0) + (we >>> 26) | 0, we &= 67108863, o = Math.imul(G, F), r = (r = Math.imul(G, j)) + Math.imul(x, F) | 0, i = Math.imul(x, j), o = o + Math.imul(N, z) | 0, r = (r = r + Math.imul(N, q) | 0) + Math.imul(E, z) | 0, i = i + Math.imul(E, q) | 0, o = o + Math.imul(M, Z) | 0, r = (r = r + Math.imul(M, K) | 0) + Math.imul(D, Z) | 0, i = i + Math.imul(D, K) | 0, o = o + Math.imul(L, X) | 0, r = (r = r + Math.imul(L, Q) | 0) + Math.imul(k, X) | 0, i = i + Math.imul(k, Q) | 0, o = o + Math.imul(A, $) | 0, r = (r = r + Math.imul(A, ee) | 0) + Math.imul(T, $) | 0, i = i + Math.imul(T, ee) | 0, o = o + Math.imul(S, ne) | 0, r = (r = r + Math.imul(S, oe) | 0) + Math.imul(w, ne) | 0, i = i + Math.imul(w, oe) | 0, o = o + Math.imul(C, ie) | 0, r = (r = r + Math.imul(C, ae) | 0) + Math.imul(v, ie) | 0, i = i + Math.imul(v, ae) | 0, o = o + Math.imul(m, le) | 0, r = (r = r + Math.imul(m, ce) | 0) + Math.imul(I, le) | 0, i = i + Math.imul(I, ce) | 0, o = o + Math.imul(f, pe) | 0, r = (r = r + Math.imul(f, de) | 0) + Math.imul(y, pe) | 0, i = i + Math.imul(y, de) | 0;
                var Pe = (c + (o = o + Math.imul(p, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(p, ye) | 0) + Math.imul(d, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(d, ye) | 0) + (r >>> 13) | 0) + (Pe >>> 26) | 0, Pe &= 67108863, o = Math.imul(G, z), r = (r = Math.imul(G, q)) + Math.imul(x, z) | 0, i = Math.imul(x, q), o = o + Math.imul(N, Z) | 0, r = (r = r + Math.imul(N, K) | 0) + Math.imul(E, Z) | 0, i = i + Math.imul(E, K) | 0, o = o + Math.imul(M, X) | 0, r = (r = r + Math.imul(M, Q) | 0) + Math.imul(D, X) | 0, i = i + Math.imul(D, Q) | 0, o = o + Math.imul(L, $) | 0, r = (r = r + Math.imul(L, ee) | 0) + Math.imul(k, $) | 0, i = i + Math.imul(k, ee) | 0, o = o + Math.imul(A, ne) | 0, r = (r = r + Math.imul(A, oe) | 0) + Math.imul(T, ne) | 0, i = i + Math.imul(T, oe) | 0, o = o + Math.imul(S, ie) | 0, r = (r = r + Math.imul(S, ae) | 0) + Math.imul(w, ie) | 0, i = i + Math.imul(w, ae) | 0, o = o + Math.imul(C, le) | 0, r = (r = r + Math.imul(C, ce) | 0) + Math.imul(v, le) | 0, i = i + Math.imul(v, ce) | 0, o = o + Math.imul(m, pe) | 0, r = (r = r + Math.imul(m, de) | 0) + Math.imul(I, pe) | 0, i = i + Math.imul(I, de) | 0;
                var Ae = (c + (o = o + Math.imul(f, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(f, ye) | 0) + Math.imul(y, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(y, ye) | 0) + (r >>> 13) | 0) + (Ae >>> 26) | 0, Ae &= 67108863, o = Math.imul(G, Z), r = (r = Math.imul(G, K)) + Math.imul(x, Z) | 0, i = Math.imul(x, K), o = o + Math.imul(N, X) | 0, r = (r = r + Math.imul(N, Q) | 0) + Math.imul(E, X) | 0, i = i + Math.imul(E, Q) | 0, o = o + Math.imul(M, $) | 0, r = (r = r + Math.imul(M, ee) | 0) + Math.imul(D, $) | 0, i = i + Math.imul(D, ee) | 0, o = o + Math.imul(L, ne) | 0, r = (r = r + Math.imul(L, oe) | 0) + Math.imul(k, ne) | 0, i = i + Math.imul(k, oe) | 0, o = o + Math.imul(A, ie) | 0, r = (r = r + Math.imul(A, ae) | 0) + Math.imul(T, ie) | 0, i = i + Math.imul(T, ae) | 0, o = o + Math.imul(S, le) | 0, r = (r = r + Math.imul(S, ce) | 0) + Math.imul(w, le) | 0, i = i + Math.imul(w, ce) | 0, o = o + Math.imul(C, pe) | 0, r = (r = r + Math.imul(C, de) | 0) + Math.imul(v, pe) | 0, i = i + Math.imul(v, de) | 0;
                var Te = (c + (o = o + Math.imul(m, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(m, ye) | 0) + Math.imul(I, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(I, ye) | 0) + (r >>> 13) | 0) + (Te >>> 26) | 0, Te &= 67108863, o = Math.imul(G, X), r = (r = Math.imul(G, Q)) + Math.imul(x, X) | 0, i = Math.imul(x, Q), o = o + Math.imul(N, $) | 0, r = (r = r + Math.imul(N, ee) | 0) + Math.imul(E, $) | 0, i = i + Math.imul(E, ee) | 0, o = o + Math.imul(M, ne) | 0, r = (r = r + Math.imul(M, oe) | 0) + Math.imul(D, ne) | 0, i = i + Math.imul(D, oe) | 0, o = o + Math.imul(L, ie) | 0, r = (r = r + Math.imul(L, ae) | 0) + Math.imul(k, ie) | 0, i = i + Math.imul(k, ae) | 0, o = o + Math.imul(A, le) | 0, r = (r = r + Math.imul(A, ce) | 0) + Math.imul(T, le) | 0, i = i + Math.imul(T, ce) | 0, o = o + Math.imul(S, pe) | 0, r = (r = r + Math.imul(S, de) | 0) + Math.imul(w, pe) | 0, i = i + Math.imul(w, de) | 0;
                var Re = (c + (o = o + Math.imul(C, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(C, ye) | 0) + Math.imul(v, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(v, ye) | 0) + (r >>> 13) | 0) + (Re >>> 26) | 0, Re &= 67108863, o = Math.imul(G, $), r = (r = Math.imul(G, ee)) + Math.imul(x, $) | 0, i = Math.imul(x, ee), o = o + Math.imul(N, ne) | 0, r = (r = r + Math.imul(N, oe) | 0) + Math.imul(E, ne) | 0, i = i + Math.imul(E, oe) | 0, o = o + Math.imul(M, ie) | 0, r = (r = r + Math.imul(M, ae) | 0) + Math.imul(D, ie) | 0, i = i + Math.imul(D, ae) | 0, o = o + Math.imul(L, le) | 0, r = (r = r + Math.imul(L, ce) | 0) + Math.imul(k, le) | 0, i = i + Math.imul(k, ce) | 0, o = o + Math.imul(A, pe) | 0, r = (r = r + Math.imul(A, de) | 0) + Math.imul(T, pe) | 0, i = i + Math.imul(T, de) | 0;
                var Le = (c + (o = o + Math.imul(S, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(S, ye) | 0) + Math.imul(w, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(w, ye) | 0) + (r >>> 13) | 0) + (Le >>> 26) | 0, Le &= 67108863, o = Math.imul(G, ne), r = (r = Math.imul(G, oe)) + Math.imul(x, ne) | 0, i = Math.imul(x, oe), o = o + Math.imul(N, ie) | 0, r = (r = r + Math.imul(N, ae) | 0) + Math.imul(E, ie) | 0, i = i + Math.imul(E, ae) | 0, o = o + Math.imul(M, le) | 0, r = (r = r + Math.imul(M, ce) | 0) + Math.imul(D, le) | 0, i = i + Math.imul(D, ce) | 0, o = o + Math.imul(L, pe) | 0, r = (r = r + Math.imul(L, de) | 0) + Math.imul(k, pe) | 0, i = i + Math.imul(k, de) | 0;
                var ke = (c + (o = o + Math.imul(A, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(A, ye) | 0) + Math.imul(T, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(T, ye) | 0) + (r >>> 13) | 0) + (ke >>> 26) | 0, ke &= 67108863, o = Math.imul(G, ie), r = (r = Math.imul(G, ae)) + Math.imul(x, ie) | 0, i = Math.imul(x, ae), o = o + Math.imul(N, le) | 0, r = (r = r + Math.imul(N, ce) | 0) + Math.imul(E, le) | 0, i = i + Math.imul(E, ce) | 0, o = o + Math.imul(M, pe) | 0, r = (r = r + Math.imul(M, de) | 0) + Math.imul(D, pe) | 0, i = i + Math.imul(D, de) | 0;
                var Oe = (c + (o = o + Math.imul(L, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(L, ye) | 0) + Math.imul(k, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(k, ye) | 0) + (r >>> 13) | 0) + (Oe >>> 26) | 0, Oe &= 67108863, o = Math.imul(G, le), r = (r = Math.imul(G, ce)) + Math.imul(x, le) | 0, i = Math.imul(x, ce), o = o + Math.imul(N, pe) | 0, r = (r = r + Math.imul(N, de) | 0) + Math.imul(E, pe) | 0, i = i + Math.imul(E, de) | 0;
                var Me = (c + (o = o + Math.imul(M, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(M, ye) | 0) + Math.imul(D, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(D, ye) | 0) + (r >>> 13) | 0) + (Me >>> 26) | 0, Me &= 67108863, o = Math.imul(G, pe), r = (r = Math.imul(G, de)) + Math.imul(x, pe) | 0, i = Math.imul(x, de);
                var De = (c + (o = o + Math.imul(N, fe) | 0) | 0) + ((8191 & (r = (r = r + Math.imul(N, ye) | 0) + Math.imul(E, fe) | 0)) << 13) | 0;
                c = ((i = i + Math.imul(E, ye) | 0) + (r >>> 13) | 0) + (De >>> 26) | 0, De &= 67108863;
                var Be = (c + (o = Math.imul(G, fe)) | 0) + ((8191 & (r = (r = Math.imul(G, ye)) + Math.imul(x, fe) | 0)) << 13) | 0;
                return c = ((i = Math.imul(x, ye)) + (r >>> 13) | 0) + (Be >>> 26) | 0, Be &= 67108863, l[0] = ge, l[1] = me, l[2] = Ie, l[3] = _e, l[4] = Ce, l[5] = ve, l[6] = be, l[7] = Se, l[8] = we, l[9] = Pe, l[10] = Ae, l[11] = Te, l[12] = Re, l[13] = Le, l[14] = ke, l[15] = Oe, l[16] = Me, l[17] = De, l[18] = Be, 0 !== c && (l[19] = c, n.length++), n
            };

            function _(e, t, n) {
                n.negative = t.negative ^ e.negative, n.length = e.length + t.length;
                for (var o = 0, r = 0, i = 0; i < n.length - 1; i++) {
                    var a = r;
                    r = 0;
                    for (var s = 67108863 & o, l = Math.min(i, t.length - 1), c = Math.max(0, i - e.length + 1); c <= l; c++) {
                        var u = i - c,
                            p = (0 | e.words[u]) * (0 | t.words[c]),
                            d = 67108863 & p;
                        s = 67108863 & (d = d + s | 0), r += (a = (a = a + (p / 67108864 | 0) | 0) + (d >>> 26) | 0) >>> 26, a &= 67108863
                    }
                    n.words[i] = s, o = a, a = r
                }
                return 0 !== o ? n.words[i] = o : n.length--, n._strip()
            }

            function C(e, t, n) {
                return _(e, t, n)
            }

            function v(e, t) {
                this.x = e, this.y = t
            }
            Math.imul || (I = m), i.prototype.mulTo = function(e, t) {
                var n = this.length + e.length;
                return 10 === this.length && 10 === e.length ? I(this, e, t) : n < 63 ? m(this, e, t) : n < 1024 ? _(this, e, t) : C(this, e, t)
            }, v.prototype.makeRBT = function(e) {
                for (var t = new Array(e), n = i.prototype._countBits(e) - 1, o = 0; o < e; o++) t[o] = this.revBin(o, n, e);
                return t
            }, v.prototype.revBin = function(e, t, n) {
                if (0 === e || e === n - 1) return e;
                for (var o = 0, r = 0; r < t; r++) o |= (1 & e) << t - r - 1, e >>= 1;
                return o
            }, v.prototype.permute = function(e, t, n, o, r, i) {
                for (var a = 0; a < i; a++) o[a] = t[e[a]], r[a] = n[e[a]]
            }, v.prototype.transform = function(e, t, n, o, r, i) {
                this.permute(i, e, t, n, o, r);
                for (var a = 1; a < r; a <<= 1)
                    for (var s = a << 1, l = Math.cos(2 * Math.PI / s), c = Math.sin(2 * Math.PI / s), u = 0; u < r; u += s)
                        for (var p = l, d = c, h = 0; h < a; h++) {
                            var f = n[u + h],
                                y = o[u + h],
                                g = n[u + h + a],
                                m = o[u + h + a],
                                I = p * g - d * m;
                            m = p * m + d * g, g = I, n[u + h] = f + g, o[u + h] = y + m, n[u + h + a] = f - g, o[u + h + a] = y - m, h !== s && (I = l * p - c * d, d = l * d + c * p, p = I)
                        }
            }, v.prototype.guessLen13b = function(e, t) {
                var n = 1 | Math.max(t, e),
                    o = 1 & n,
                    r = 0;
                for (n = n / 2 | 0; n; n >>>= 1) r++;
                return 1 << r + 1 + o
            }, v.prototype.conjugate = function(e, t, n) {
                if (!(n <= 1))
                    for (var o = 0; o < n / 2; o++) {
                        var r = e[o];
                        e[o] = e[n - o - 1], e[n - o - 1] = r, r = t[o], t[o] = -t[n - o - 1], t[n - o - 1] = -r
                    }
            }, v.prototype.normalize13b = function(e, t) {
                for (var n = 0, o = 0; o < t / 2; o++) {
                    var r = 8192 * Math.round(e[2 * o + 1] / t) + Math.round(e[2 * o] / t) + n;
                    e[o] = 67108863 & r, n = r < 67108864 ? 0 : r / 67108864 | 0
                }
                return e
            }, v.prototype.convert13b = function(e, t, n, r) {
                for (var i = 0, a = 0; a < t; a++) i += 0 | e[a], n[2 * a] = 8191 & i, i >>>= 13, n[2 * a + 1] = 8191 & i, i >>>= 13;
                for (a = 2 * t; a < r; ++a) n[a] = 0;
                o(0 === i), o(0 == (-8192 & i))
            }, v.prototype.stub = function(e) {
                for (var t = new Array(e), n = 0; n < e; n++) t[n] = 0;
                return t
            }, v.prototype.mulp = function(e, t, n) {
                var o = 2 * this.guessLen13b(e.length, t.length),
                    r = this.makeRBT(o),
                    i = this.stub(o),
                    a = new Array(o),
                    s = new Array(o),
                    l = new Array(o),
                    c = new Array(o),
                    u = new Array(o),
                    p = new Array(o),
                    d = n.words;
                d.length = o, this.convert13b(e.words, e.length, a, o), this.convert13b(t.words, t.length, c, o), this.transform(a, i, s, l, o, r), this.transform(c, i, u, p, o, r);
                for (var h = 0; h < o; h++) {
                    var f = s[h] * u[h] - l[h] * p[h];
                    l[h] = s[h] * p[h] + l[h] * u[h], s[h] = f
                }
                return this.conjugate(s, l, o), this.transform(s, l, d, i, o, r), this.conjugate(d, i, o), this.normalize13b(d, o), n.negative = e.negative ^ t.negative, n.length = e.length + t.length, n._strip()
            }, i.prototype.mul = function(e) {
                var t = new i(null);
                return t.words = new Array(this.length + e.length), this.mulTo(e, t)
            }, i.prototype.mulf = function(e) {
                var t = new i(null);
                return t.words = new Array(this.length + e.length), C(this, e, t)
            }, i.prototype.imul = function(e) {
                return this.clone().mulTo(e, this)
            }, i.prototype.imuln = function(e) {
                var t = e < 0;
                t && (e = -e), o("number" == typeof e), o(e < 67108864);
                for (var n = 0, r = 0; r < this.length; r++) {
                    var i = (0 | this.words[r]) * e,
                        a = (67108863 & i) + (67108863 & n);
                    n >>= 26, n += i / 67108864 | 0, n += a >>> 26, this.words[r] = 67108863 & a
                }
                return 0 !== n && (this.words[r] = n, this.length++), t ? this.ineg() : this
            }, i.prototype.muln = function(e) {
                return this.clone().imuln(e)
            }, i.prototype.sqr = function() {
                return this.mul(this)
            }, i.prototype.isqr = function() {
                return this.imul(this.clone())
            }, i.prototype.pow = function(e) {
                var t = g(e);
                if (0 === t.length) return new i(1);
                for (var n = this, o = 0; o < t.length && 0 === t[o]; o++, n = n.sqr());
                if (++o < t.length)
                    for (var r = n.sqr(); o < t.length; o++, r = r.sqr()) 0 !== t[o] && (n = n.mul(r));
                return n
            }, i.prototype.iushln = function(e) {
                o("number" == typeof e && e >= 0);
                var t, n = e % 26,
                    r = (e - n) / 26,
                    i = 67108863 >>> 26 - n << 26 - n;
                if (0 !== n) {
                    var a = 0;
                    for (t = 0; t < this.length; t++) {
                        var s = this.words[t] & i,
                            l = (0 | this.words[t]) - s << n;
                        this.words[t] = l | a, a = s >>> 26 - n
                    }
                    a && (this.words[t] = a, this.length++)
                }
                if (0 !== r) {
                    for (t = this.length - 1; t >= 0; t--) this.words[t + r] = this.words[t];
                    for (t = 0; t < r; t++) this.words[t] = 0;
                    this.length += r
                }
                return this._strip()
            }, i.prototype.ishln = function(e) {
                return o(0 === this.negative), this.iushln(e)
            }, i.prototype.iushrn = function(e, t, n) {
                var r;
                o("number" == typeof e && e >= 0), r = t ? (t - t % 26) / 26 : 0;
                var i = e % 26,
                    a = Math.min((e - i) / 26, this.length),
                    s = 67108863 ^ 67108863 >>> i << i,
                    l = n;
                if (r -= a, r = Math.max(0, r), l) {
                    for (var c = 0; c < a; c++) l.words[c] = this.words[c];
                    l.length = a
                }
                if (0 === a);
                else if (this.length > a)
                    for (this.length -= a, c = 0; c < this.length; c++) this.words[c] = this.words[c + a];
                else this.words[0] = 0, this.length = 1;
                var u = 0;
                for (c = this.length - 1; c >= 0 && (0 !== u || c >= r); c--) {
                    var p = 0 | this.words[c];
                    this.words[c] = u << 26 - i | p >>> i, u = p & s
                }
                return l && 0 !== u && (l.words[l.length++] = u), 0 === this.length && (this.words[0] = 0, this.length = 1), this._strip()
            }, i.prototype.ishrn = function(e, t, n) {
                return o(0 === this.negative), this.iushrn(e, t, n)
            }, i.prototype.shln = function(e) {
                return this.clone().ishln(e)
            }, i.prototype.ushln = function(e) {
                return this.clone().iushln(e)
            }, i.prototype.shrn = function(e) {
                return this.clone().ishrn(e)
            }, i.prototype.ushrn = function(e) {
                return this.clone().iushrn(e)
            }, i.prototype.testn = function(e) {
                o("number" == typeof e && e >= 0);
                var t = e % 26,
                    n = (e - t) / 26,
                    r = 1 << t;
                return !(this.length <= n || !(this.words[n] & r))
            }, i.prototype.imaskn = function(e) {
                o("number" == typeof e && e >= 0);
                var t = e % 26,
                    n = (e - t) / 26;
                if (o(0 === this.negative, "imaskn works only with positive numbers"), this.length <= n) return this;
                if (0 !== t && n++, this.length = Math.min(n, this.length), 0 !== t) {
                    var r = 67108863 ^ 67108863 >>> t << t;
                    this.words[this.length - 1] &= r
                }
                return this._strip()
            }, i.prototype.maskn = function(e) {
                return this.clone().imaskn(e)
            }, i.prototype.iaddn = function(e) {
                return o("number" == typeof e), o(e < 67108864), e < 0 ? this.isubn(-e) : 0 !== this.negative ? 1 === this.length && (0 | this.words[0]) <= e ? (this.words[0] = e - (0 | this.words[0]), this.negative = 0, this) : (this.negative = 0, this.isubn(e), this.negative = 1, this) : this._iaddn(e)
            }, i.prototype._iaddn = function(e) {
                this.words[0] += e;
                for (var t = 0; t < this.length && this.words[t] >= 67108864; t++) this.words[t] -= 67108864, t === this.length - 1 ? this.words[t + 1] = 1 : this.words[t + 1]++;
                return this.length = Math.max(this.length, t + 1), this
            }, i.prototype.isubn = function(e) {
                if (o("number" == typeof e), o(e < 67108864), e < 0) return this.iaddn(-e);
                if (0 !== this.negative) return this.negative = 0, this.iaddn(e), this.negative = 1, this;
                if (this.words[0] -= e, 1 === this.length && this.words[0] < 0) this.words[0] = -this.words[0], this.negative = 1;
                else
                    for (var t = 0; t < this.length && this.words[t] < 0; t++) this.words[t] += 67108864, this.words[t + 1] -= 1;
                return this._strip()
            }, i.prototype.addn = function(e) {
                return this.clone().iaddn(e)
            }, i.prototype.subn = function(e) {
                return this.clone().isubn(e)
            }, i.prototype.iabs = function() {
                return this.negative = 0, this
            }, i.prototype.abs = function() {
                return this.clone().iabs()
            }, i.prototype._ishlnsubmul = function(e, t, n) {
                var r, i, a = e.length + n;
                this._expand(a);
                var s = 0;
                for (r = 0; r < e.length; r++) {
                    i = (0 | this.words[r + n]) + s;
                    var l = (0 | e.words[r]) * t;
                    s = ((i -= 67108863 & l) >> 26) - (l / 67108864 | 0), this.words[r + n] = 67108863 & i
                }
                for (; r < this.length - n; r++) s = (i = (0 | this.words[r + n]) + s) >> 26, this.words[r + n] = 67108863 & i;
                if (0 === s) return this._strip();
                for (o(-1 === s), s = 0, r = 0; r < this.length; r++) s = (i = -(0 | this.words[r]) + s) >> 26, this.words[r] = 67108863 & i;
                return this.negative = 1, this._strip()
            }, i.prototype._wordDiv = function(e, t) {
                var n = (this.length, e.length),
                    o = this.clone(),
                    r = e,
                    a = 0 | r.words[r.length - 1];
                0 != (n = 26 - this._countBits(a)) && (r = r.ushln(n), o.iushln(n), a = 0 | r.words[r.length - 1]);
                var s, l = o.length - r.length;
                if ("mod" !== t) {
                    (s = new i(null)).length = l + 1, s.words = new Array(s.length);
                    for (var c = 0; c < s.length; c++) s.words[c] = 0
                }
                var u = o.clone()._ishlnsubmul(r, 1, l);
                0 === u.negative && (o = u, s && (s.words[l] = 1));
                for (var p = l - 1; p >= 0; p--) {
                    var d = 67108864 * (0 | o.words[r.length + p]) + (0 | o.words[r.length + p - 1]);
                    for (d = Math.min(d / a | 0, 67108863), o._ishlnsubmul(r, d, p); 0 !== o.negative;) d--, o.negative = 0, o._ishlnsubmul(r, 1, p), o.isZero() || (o.negative ^= 1);
                    s && (s.words[p] = d)
                }
                return s && s._strip(), o._strip(), "div" !== t && 0 !== n && o.iushrn(n), {
                    div: s || null,
                    mod: o
                }
            }, i.prototype.divmod = function(e, t, n) {
                return o(!e.isZero()), this.isZero() ? {
                    div: new i(0),
                    mod: new i(0)
                } : 0 !== this.negative && 0 === e.negative ? (s = this.neg().divmod(e, t), "mod" !== t && (r = s.div.neg()), "div" !== t && (a = s.mod.neg(), n && 0 !== a.negative && a.iadd(e)), {
                    div: r,
                    mod: a
                }) : 0 === this.negative && 0 !== e.negative ? (s = this.divmod(e.neg(), t), "mod" !== t && (r = s.div.neg()), {
                    div: r,
                    mod: s.mod
                }) : 0 != (this.negative & e.negative) ? (s = this.neg().divmod(e.neg(), t), "div" !== t && (a = s.mod.neg(), n && 0 !== a.negative && a.isub(e)), {
                    div: s.div,
                    mod: a
                }) : e.length > this.length || this.cmp(e) < 0 ? {
                    div: new i(0),
                    mod: this
                } : 1 === e.length ? "div" === t ? {
                    div: this.divn(e.words[0]),
                    mod: null
                } : "mod" === t ? {
                    div: null,
                    mod: new i(this.modrn(e.words[0]))
                } : {
                    div: this.divn(e.words[0]),
                    mod: new i(this.modrn(e.words[0]))
                } : this._wordDiv(e, t);
                var r, a, s
            }, i.prototype.div = function(e) {
                return this.divmod(e, "div", !1).div
            }, i.prototype.mod = function(e) {
                return this.divmod(e, "mod", !1).mod
            }, i.prototype.umod = function(e) {
                return this.divmod(e, "mod", !0).mod
            }, i.prototype.divRound = function(e) {
                var t = this.divmod(e);
                if (t.mod.isZero()) return t.div;
                var n = 0 !== t.div.negative ? t.mod.isub(e) : t.mod,
                    o = e.ushrn(1),
                    r = e.andln(1),
                    i = n.cmp(o);
                return i < 0 || 1 === r && 0 === i ? t.div : 0 !== t.div.negative ? t.div.isubn(1) : t.div.iaddn(1)
            }, i.prototype.modrn = function(e) {
                var t = e < 0;
                t && (e = -e), o(e <= 67108863);
                for (var n = (1 << 26) % e, r = 0, i = this.length - 1; i >= 0; i--) r = (n * r + (0 | this.words[i])) % e;
                return t ? -r : r
            }, i.prototype.modn = function(e) {
                return this.modrn(e)
            }, i.prototype.idivn = function(e) {
                var t = e < 0;
                t && (e = -e), o(e <= 67108863);
                for (var n = 0, r = this.length - 1; r >= 0; r--) {
                    var i = (0 | this.words[r]) + 67108864 * n;
                    this.words[r] = i / e | 0, n = i % e
                }
                return this._strip(), t ? this.ineg() : this
            }, i.prototype.divn = function(e) {
                return this.clone().idivn(e)
            }, i.prototype.egcd = function(e) {
                o(0 === e.negative), o(!e.isZero());
                var t = this,
                    n = e.clone();
                t = 0 !== t.negative ? t.umod(e) : t.clone();
                for (var r = new i(1), a = new i(0), s = new i(0), l = new i(1), c = 0; t.isEven() && n.isEven();) t.iushrn(1), n.iushrn(1), ++c;
                for (var u = n.clone(), p = t.clone(); !t.isZero();) {
                    for (var d = 0, h = 1; 0 == (t.words[0] & h) && d < 26; ++d, h <<= 1);
                    if (d > 0)
                        for (t.iushrn(d); d-- > 0;)(r.isOdd() || a.isOdd()) && (r.iadd(u), a.isub(p)), r.iushrn(1), a.iushrn(1);
                    for (var f = 0, y = 1; 0 == (n.words[0] & y) && f < 26; ++f, y <<= 1);
                    if (f > 0)
                        for (n.iushrn(f); f-- > 0;)(s.isOdd() || l.isOdd()) && (s.iadd(u), l.isub(p)), s.iushrn(1), l.iushrn(1);
                    t.cmp(n) >= 0 ? (t.isub(n), r.isub(s), a.isub(l)) : (n.isub(t), s.isub(r), l.isub(a))
                }
                return {
                    a: s,
                    b: l,
                    gcd: n.iushln(c)
                }
            }, i.prototype._invmp = function(e) {
                o(0 === e.negative), o(!e.isZero());
                var t = this,
                    n = e.clone();
                t = 0 !== t.negative ? t.umod(e) : t.clone();
                for (var r, a = new i(1), s = new i(0), l = n.clone(); t.cmpn(1) > 0 && n.cmpn(1) > 0;) {
                    for (var c = 0, u = 1; 0 == (t.words[0] & u) && c < 26; ++c, u <<= 1);
                    if (c > 0)
                        for (t.iushrn(c); c-- > 0;) a.isOdd() && a.iadd(l), a.iushrn(1);
                    for (var p = 0, d = 1; 0 == (n.words[0] & d) && p < 26; ++p, d <<= 1);
                    if (p > 0)
                        for (n.iushrn(p); p-- > 0;) s.isOdd() && s.iadd(l), s.iushrn(1);
                    t.cmp(n) >= 0 ? (t.isub(n), a.isub(s)) : (n.isub(t), s.isub(a))
                }
                return (r = 0 === t.cmpn(1) ? a : s).cmpn(0) < 0 && r.iadd(e), r
            }, i.prototype.gcd = function(e) {
                if (this.isZero()) return e.abs();
                if (e.isZero()) return this.abs();
                var t = this.clone(),
                    n = e.clone();
                t.negative = 0, n.negative = 0;
                for (var o = 0; t.isEven() && n.isEven(); o++) t.iushrn(1), n.iushrn(1);
                for (;;) {
                    for (; t.isEven();) t.iushrn(1);
                    for (; n.isEven();) n.iushrn(1);
                    var r = t.cmp(n);
                    if (r < 0) {
                        var i = t;
                        t = n, n = i
                    } else if (0 === r || 0 === n.cmpn(1)) break;
                    t.isub(n)
                }
                return n.iushln(o)
            }, i.prototype.invm = function(e) {
                return this.egcd(e).a.umod(e)
            }, i.prototype.isEven = function() {
                return 0 == (1 & this.words[0])
            }, i.prototype.isOdd = function() {
                return 1 == (1 & this.words[0])
            }, i.prototype.andln = function(e) {
                return this.words[0] & e
            }, i.prototype.bincn = function(e) {
                o("number" == typeof e);
                var t = e % 26,
                    n = (e - t) / 26,
                    r = 1 << t;
                if (this.length <= n) return this._expand(n + 1), this.words[n] |= r, this;
                for (var i = r, a = n; 0 !== i && a < this.length; a++) {
                    var s = 0 | this.words[a];
                    i = (s += i) >>> 26, s &= 67108863, this.words[a] = s
                }
                return 0 !== i && (this.words[a] = i, this.length++), this
            }, i.prototype.isZero = function() {
                return 1 === this.length && 0 === this.words[0]
            }, i.prototype.cmpn = function(e) {
                var t, n = e < 0;
                if (0 !== this.negative && !n) return -1;
                if (0 === this.negative && n) return 1;
                if (this._strip(), this.length > 1) t = 1;
                else {
                    n && (e = -e), o(e <= 67108863, "Number is too big");
                    var r = 0 | this.words[0];
                    t = r === e ? 0 : r < e ? -1 : 1
                }
                return 0 !== this.negative ? 0 | -t : t
            }, i.prototype.cmp = function(e) {
                if (0 !== this.negative && 0 === e.negative) return -1;
                if (0 === this.negative && 0 !== e.negative) return 1;
                var t = this.ucmp(e);
                return 0 !== this.negative ? 0 | -t : t
            }, i.prototype.ucmp = function(e) {
                if (this.length > e.length) return 1;
                if (this.length < e.length) return -1;
                for (var t = 0, n = this.length - 1; n >= 0; n--) {
                    var o = 0 | this.words[n],
                        r = 0 | e.words[n];
                    if (o !== r) {
                        o < r ? t = -1 : o > r && (t = 1);
                        break
                    }
                }
                return t
            }, i.prototype.gtn = function(e) {
                return 1 === this.cmpn(e)
            }, i.prototype.gt = function(e) {
                return 1 === this.cmp(e)
            }, i.prototype.gten = function(e) {
                return this.cmpn(e) >= 0
            }, i.prototype.gte = function(e) {
                return this.cmp(e) >= 0
            }, i.prototype.ltn = function(e) {
                return -1 === this.cmpn(e)
            }, i.prototype.lt = function(e) {
                return -1 === this.cmp(e)
            }, i.prototype.lten = function(e) {
                return this.cmpn(e) <= 0
            }, i.prototype.lte = function(e) {
                return this.cmp(e) <= 0
            }, i.prototype.eqn = function(e) {
                return 0 === this.cmpn(e)
            }, i.prototype.eq = function(e) {
                return 0 === this.cmp(e)
            }, i.red = function(e) {
                return new R(e)
            }, i.prototype.toRed = function(e) {
                return o(!this.red, "Already a number in reduction context"), o(0 === this.negative, "red works only with positives"), e.convertTo(this)._forceRed(e)
            }, i.prototype.fromRed = function() {
                return o(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this)
            }, i.prototype._forceRed = function(e) {
                return this.red = e, this
            }, i.prototype.forceRed = function(e) {
                return o(!this.red, "Already a number in reduction context"), this._forceRed(e)
            }, i.prototype.redAdd = function(e) {
                return o(this.red, "redAdd works only with red numbers"), this.red.add(this, e)
            }, i.prototype.redIAdd = function(e) {
                return o(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, e)
            }, i.prototype.redSub = function(e) {
                return o(this.red, "redSub works only with red numbers"), this.red.sub(this, e)
            }, i.prototype.redISub = function(e) {
                return o(this.red, "redISub works only with red numbers"), this.red.isub(this, e)
            }, i.prototype.redShl = function(e) {
                return o(this.red, "redShl works only with red numbers"), this.red.shl(this, e)
            }, i.prototype.redMul = function(e) {
                return o(this.red, "redMul works only with red numbers"), this.red._verify2(this, e), this.red.mul(this, e)
            }, i.prototype.redIMul = function(e) {
                return o(this.red, "redMul works only with red numbers"), this.red._verify2(this, e), this.red.imul(this, e)
            }, i.prototype.redSqr = function() {
                return o(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this)
            }, i.prototype.redISqr = function() {
                return o(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this)
            }, i.prototype.redSqrt = function() {
                return o(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this)
            }, i.prototype.redInvm = function() {
                return o(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this)
            }, i.prototype.redNeg = function() {
                return o(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this)
            }, i.prototype.redPow = function(e) {
                return o(this.red && !e.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, e)
            };
            var b = {
                k256: null,
                p224: null,
                p192: null,
                p25519: null
            };

            function S(e, t) {
                this.name = e, this.p = new i(t, 16), this.n = this.p.bitLength(), this.k = new i(1).iushln(this.n).isub(this.p), this.tmp = this._tmp()
            }

            function w() {
                S.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")
            }

            function P() {
                S.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")
            }

            function A() {
                S.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")
            }

            function T() {
                S.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")
            }

            function R(e) {
                if ("string" == typeof e) {
                    var t = i._prime(e);
                    this.m = t.p, this.prime = t
                } else o(e.gtn(1), "modulus must be greater than 1"), this.m = e, this.prime = null
            }

            function L(e) {
                R.call(this, e), this.shift = this.m.bitLength(), this.shift % 26 != 0 && (this.shift += 26 - this.shift % 26), this.r = new i(1).iushln(this.shift), this.r2 = this.imod(this.r.sqr()), this.rinv = this.r._invmp(this.m), this.minv = this.rinv.mul(this.r).isubn(1).div(this.m), this.minv = this.minv.umod(this.r), this.minv = this.r.sub(this.minv)
            }
            S.prototype._tmp = function() {
                var e = new i(null);
                return e.words = new Array(Math.ceil(this.n / 13)), e
            }, S.prototype.ireduce = function(e) {
                var t, n = e;
                do {
                    this.split(n, this.tmp), t = (n = (n = this.imulK(n)).iadd(this.tmp)).bitLength()
                } while (t > this.n);
                var o = t < this.n ? -1 : n.ucmp(this.p);
                return 0 === o ? (n.words[0] = 0, n.length = 1) : o > 0 ? n.isub(this.p) : void 0 !== n.strip ? n.strip() : n._strip(), n
            }, S.prototype.split = function(e, t) {
                e.iushrn(this.n, 0, t)
            }, S.prototype.imulK = function(e) {
                return e.imul(this.k)
            }, r(w, S), w.prototype.split = function(e, t) {
                for (var n = Math.min(e.length, 9), o = 0; o < n; o++) t.words[o] = e.words[o];
                if (t.length = n, e.length <= 9) return e.words[0] = 0, void(e.length = 1);
                var r = e.words[9];
                for (t.words[t.length++] = 4194303 & r, o = 10; o < e.length; o++) {
                    var i = 0 | e.words[o];
                    e.words[o - 10] = (4194303 & i) << 4 | r >>> 22, r = i
                }
                r >>>= 22, e.words[o - 10] = r, 0 === r && e.length > 10 ? e.length -= 10 : e.length -= 9
            }, w.prototype.imulK = function(e) {
                e.words[e.length] = 0, e.words[e.length + 1] = 0, e.length += 2;
                for (var t = 0, n = 0; n < e.length; n++) {
                    var o = 0 | e.words[n];
                    t += 977 * o, e.words[n] = 67108863 & t, t = 64 * o + (t / 67108864 | 0)
                }
                return 0 === e.words[e.length - 1] && (e.length--, 0 === e.words[e.length - 1] && e.length--), e
            }, r(P, S), r(A, S), r(T, S), T.prototype.imulK = function(e) {
                for (var t = 0, n = 0; n < e.length; n++) {
                    var o = 19 * (0 | e.words[n]) + t,
                        r = 67108863 & o;
                    o >>>= 26, e.words[n] = r, t = o
                }
                return 0 !== t && (e.words[e.length++] = t), e
            }, i._prime = function(e) {
                if (b[e]) return b[e];
                var t;
                if ("k256" === e) t = new w;
                else if ("p224" === e) t = new P;
                else if ("p192" === e) t = new A;
                else {
                    if ("p25519" !== e) throw new Error("Unknown prime " + e);
                    t = new T
                }
                return b[e] = t, t
            }, R.prototype._verify1 = function(e) {
                o(0 === e.negative, "red works only with positives"), o(e.red, "red works only with red numbers")
            }, R.prototype._verify2 = function(e, t) {
                o(0 == (e.negative | t.negative), "red works only with positives"), o(e.red && e.red === t.red, "red works only with red numbers")
            }, R.prototype.imod = function(e) {
                return this.prime ? this.prime.ireduce(e)._forceRed(this) : (u(e, e.umod(this.m)._forceRed(this)), e)
            }, R.prototype.neg = function(e) {
                return e.isZero() ? e.clone() : this.m.sub(e)._forceRed(this)
            }, R.prototype.add = function(e, t) {
                this._verify2(e, t);
                var n = e.add(t);
                return n.cmp(this.m) >= 0 && n.isub(this.m), n._forceRed(this)
            }, R.prototype.iadd = function(e, t) {
                this._verify2(e, t);
                var n = e.iadd(t);
                return n.cmp(this.m) >= 0 && n.isub(this.m), n
            }, R.prototype.sub = function(e, t) {
                this._verify2(e, t);
                var n = e.sub(t);
                return n.cmpn(0) < 0 && n.iadd(this.m), n._forceRed(this)
            }, R.prototype.isub = function(e, t) {
                this._verify2(e, t);
                var n = e.isub(t);
                return n.cmpn(0) < 0 && n.iadd(this.m), n
            }, R.prototype.shl = function(e, t) {
                return this._verify1(e), this.imod(e.ushln(t))
            }, R.prototype.imul = function(e, t) {
                return this._verify2(e, t), this.imod(e.imul(t))
            }, R.prototype.mul = function(e, t) {
                return this._verify2(e, t), this.imod(e.mul(t))
            }, R.prototype.isqr = function(e) {
                return this.imul(e, e.clone())
            }, R.prototype.sqr = function(e) {
                return this.mul(e, e)
            }, R.prototype.sqrt = function(e) {
                if (e.isZero()) return e.clone();
                var t = this.m.andln(3);
                if (o(t % 2 == 1), 3 === t) {
                    var n = this.m.add(new i(1)).iushrn(2);
                    return this.pow(e, n)
                }
                for (var r = this.m.subn(1), a = 0; !r.isZero() && 0 === r.andln(1);) a++, r.iushrn(1);
                o(!r.isZero());
                var s = new i(1).toRed(this),
                    l = s.redNeg(),
                    c = this.m.subn(1).iushrn(1),
                    u = this.m.bitLength();
                for (u = new i(2 * u * u).toRed(this); 0 !== this.pow(u, c).cmp(l);) u.redIAdd(l);
                for (var p = this.pow(u, r), d = this.pow(e, r.addn(1).iushrn(1)), h = this.pow(e, r), f = a; 0 !== h.cmp(s);) {
                    for (var y = h, g = 0; 0 !== y.cmp(s); g++) y = y.redSqr();
                    o(g < f);
                    var m = this.pow(p, new i(1).iushln(f - g - 1));
                    d = d.redMul(m), p = m.redSqr(), h = h.redMul(p), f = g
                }
                return d
            }, R.prototype.invm = function(e) {
                var t = e._invmp(this.m);
                return 0 !== t.negative ? (t.negative = 0, this.imod(t).redNeg()) : this.imod(t)
            }, R.prototype.pow = function(e, t) {
                if (t.isZero()) return new i(1).toRed(this);
                if (0 === t.cmpn(1)) return e.clone();
                var n = new Array(16);
                n[0] = new i(1).toRed(this), n[1] = e;
                for (var o = 2; o < n.length; o++) n[o] = this.mul(n[o - 1], e);
                var r = n[0],
                    a = 0,
                    s = 0,
                    l = t.bitLength() % 26;
                for (0 === l && (l = 26), o = t.length - 1; o >= 0; o--) {
                    for (var c = t.words[o], u = l - 1; u >= 0; u--) {
                        var p = c >> u & 1;
                        r !== n[0] && (r = this.sqr(r)), 0 !== p || 0 !== a ? (a <<= 1, a |= p, (4 == ++s || 0 === o && 0 === u) && (r = this.mul(r, n[a]), s = 0, a = 0)) : s = 0
                    }
                    l = 26
                }
                return r
            }, R.prototype.convertTo = function(e) {
                var t = e.umod(this.m);
                return t === e ? t.clone() : t
            }, R.prototype.convertFrom = function(e) {
                var t = e.clone();
                return t.red = null, t
            }, i.mont = function(e) {
                return new L(e)
            }, r(L, R), L.prototype.convertTo = function(e) {
                return this.imod(e.ushln(this.shift))
            }, L.prototype.convertFrom = function(e) {
                var t = this.imod(e.mul(this.rinv));
                return t.red = null, t
            }, L.prototype.imul = function(e, t) {
                if (e.isZero() || t.isZero()) return e.words[0] = 0, e.length = 1, e;
                var n = e.imul(t),
                    o = n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),
                    r = n.isub(o).iushrn(this.shift),
                    i = r;
                return r.cmp(this.m) >= 0 ? i = r.isub(this.m) : r.cmpn(0) < 0 && (i = r.iadd(this.m)), i._forceRed(this)
            }, L.prototype.mul = function(e, t) {
                if (e.isZero() || t.isZero()) return new i(0)._forceRed(this);
                var n = e.mul(t),
                    o = n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),
                    r = n.isub(o).iushrn(this.shift),
                    a = r;
                return r.cmp(this.m) >= 0 ? a = r.isub(this.m) : r.cmpn(0) < 0 && (a = r.iadd(this.m)), a._forceRed(this)
            }, L.prototype.invm = function(e) {
                return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)
            }
        })(void 0 === t || t, this)
    }, {
        buffer: 19
    }],
    18: [function(e, t) {
        var n;

        function o(e) {
            this.rand = e
        }
        if (t.exports = function(e) {
                return n || (n = new o(null)), n.generate(e)
            }, t.exports.Rand = o, o.prototype.generate = function(e) {
                return this._rand(e)
            }, o.prototype._rand = function(e) {
                if (this.rand.getBytes) return this.rand.getBytes(e);
                for (var t = new Uint8Array(e), n = 0; n < t.length; n++) t[n] = this.rand.getByte();
                return t
            }, "object" == typeof self) self.crypto && self.crypto.getRandomValues ? o.prototype._rand = function(e) {
            var t = new Uint8Array(e);
            return self.crypto.getRandomValues(t), t
        } : self.msCrypto && self.msCrypto.getRandomValues ? o.prototype._rand = function(e) {
            var t = new Uint8Array(e);
            return self.msCrypto.getRandomValues(t), t
        } : "object" == typeof window && (o.prototype._rand = function() {
            throw new Error("Not implemented yet")
        });
        else try {
            var r = e("crypto");
            if ("function" != typeof r.randomBytes) throw new Error("Not supported");
            o.prototype._rand = function(e) {
                return r.randomBytes(e)
            }
        } catch (i) {}
    }, {
        crypto: 19
    }],
    19: [function() {}, {}],
    20: [function(e, t) {
        var n = e("safe-buffer").Buffer;

        function o(e) {
            n.isBuffer(e) || (e = n.from(e));
            for (var t = e.length / 4 | 0, o = new Array(t), r = 0; r < t; r++) o[r] = e.readUInt32BE(4 * r);
            return o
        }

        function r(e) {
            for (; 0 < e.length; e++) e[0] = 0
        }

        function i(e, t, n, o, r) {
            for (var i, a, s, l, c = n[0], u = n[1], p = n[2], d = n[3], h = e[0] ^ t[0], f = e[1] ^ t[1], y = e[2] ^ t[2], g = e[3] ^ t[3], m = 4, I = 1; I < r; I++) i = c[h >>> 24] ^ u[f >>> 16 & 255] ^ p[y >>> 8 & 255] ^ d[255 & g] ^ t[m++], a = c[f >>> 24] ^ u[y >>> 16 & 255] ^ p[g >>> 8 & 255] ^ d[255 & h] ^ t[m++], s = c[y >>> 24] ^ u[g >>> 16 & 255] ^ p[h >>> 8 & 255] ^ d[255 & f] ^ t[m++], l = c[g >>> 24] ^ u[h >>> 16 & 255] ^ p[f >>> 8 & 255] ^ d[255 & y] ^ t[m++], h = i, f = a, y = s, g = l;
            return i = (o[h >>> 24] << 24 | o[f >>> 16 & 255] << 16 | o[y >>> 8 & 255] << 8 | o[255 & g]) ^ t[m++], a = (o[f >>> 24] << 24 | o[y >>> 16 & 255] << 16 | o[g >>> 8 & 255] << 8 | o[255 & h]) ^ t[m++], s = (o[y >>> 24] << 24 | o[g >>> 16 & 255] << 16 | o[h >>> 8 & 255] << 8 | o[255 & f]) ^ t[m++], l = (o[g >>> 24] << 24 | o[h >>> 16 & 255] << 16 | o[f >>> 8 & 255] << 8 | o[255 & y]) ^ t[m++], [i >>>= 0, a >>>= 0, s >>>= 0, l >>>= 0]
        }
        var a = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
            s = function() {
                for (var e = new Array(256), t = 0; t < 256; t++) e[t] = t < 128 ? t << 1 : t << 1 ^ 283;
                for (var n = [], o = [], r = [
                        [],
                        [],
                        [],
                        []
                    ], i = [
                        [],
                        [],
                        [],
                        []
                    ], a = 0, s = 0, l = 0; l < 256; ++l) {
                    var c = s ^ s << 1 ^ s << 2 ^ s << 3 ^ s << 4;
                    c = c >>> 8 ^ 255 & c ^ 99, n[a] = c, o[c] = a;
                    var u = e[a],
                        p = e[u],
                        d = e[p],
                        h = 257 * e[c] ^ 16843008 * c;
                    r[0][a] = h << 24 | h >>> 8, r[1][a] = h << 16 | h >>> 16, r[2][a] = h << 8 | h >>> 24, r[3][a] = h, h = 16843009 * d ^ 65537 * p ^ 257 * u ^ 16843008 * a, i[0][c] = h << 24 | h >>> 8, i[1][c] = h << 16 | h >>> 16, i[2][c] = h << 8 | h >>> 24, i[3][c] = h, 0 === a ? a = s = 1 : (a = u ^ e[e[e[d ^ u]]], s ^= e[e[s]])
                }
                return {
                    SBOX: n,
                    INV_SBOX: o,
                    SUB_MIX: r,
                    INV_SUB_MIX: i
                }
            }();

        function l(e) {
            this._key = o(e), this._reset()
        }
        l.blockSize = 16, l.keySize = 32, l.prototype.blockSize = l.blockSize, l.prototype.keySize = l.keySize, l.prototype._reset = function() {
            for (var e = this._key, t = e.length, n = t + 6, o = 4 * (n + 1), r = [], i = 0; i < t; i++) r[i] = e[i];
            for (i = t; i < o; i++) {
                var l = r[i - 1];
                i % t == 0 ? (l = l << 8 | l >>> 24, l = s.SBOX[l >>> 24] << 24 | s.SBOX[l >>> 16 & 255] << 16 | s.SBOX[l >>> 8 & 255] << 8 | s.SBOX[255 & l], l ^= a[i / t | 0] << 24) : t > 6 && i % t == 4 && (l = s.SBOX[l >>> 24] << 24 | s.SBOX[l >>> 16 & 255] << 16 | s.SBOX[l >>> 8 & 255] << 8 | s.SBOX[255 & l]), r[i] = r[i - t] ^ l
            }
            for (var c = [], u = 0; u < o; u++) {
                var p = o - u,
                    d = r[p - (u % 4 ? 0 : 4)];
                c[u] = u < 4 || p <= 4 ? d : s.INV_SUB_MIX[0][s.SBOX[d >>> 24]] ^ s.INV_SUB_MIX[1][s.SBOX[d >>> 16 & 255]] ^ s.INV_SUB_MIX[2][s.SBOX[d >>> 8 & 255]] ^ s.INV_SUB_MIX[3][s.SBOX[255 & d]]
            }
            this._nRounds = n, this._keySchedule = r, this._invKeySchedule = c
        }, l.prototype.encryptBlockRaw = function(e) {
            return i(e = o(e), this._keySchedule, s.SUB_MIX, s.SBOX, this._nRounds)
        }, l.prototype.encryptBlock = function(e) {
            var t = this.encryptBlockRaw(e),
                o = n.allocUnsafe(16);
            return o.writeUInt32BE(t[0], 0), o.writeUInt32BE(t[1], 4), o.writeUInt32BE(t[2], 8), o.writeUInt32BE(t[3], 12), o
        }, l.prototype.decryptBlock = function(e) {
            var t = (e = o(e))[1];
            e[1] = e[3], e[3] = t;
            var r = i(e, this._invKeySchedule, s.INV_SUB_MIX, s.INV_SBOX, this._nRounds),
                a = n.allocUnsafe(16);
            return a.writeUInt32BE(r[0], 0), a.writeUInt32BE(r[3], 4), a.writeUInt32BE(r[2], 8), a.writeUInt32BE(r[1], 12), a
        }, l.prototype.scrub = function() {
            r(this._keySchedule), r(this._invKeySchedule), r(this._key)
        }, t.exports.AES = l
    }, {
        "safe-buffer": 183
    }],
    21: [function(e, t) {
        var n = e("./aes"),
            o = e("safe-buffer").Buffer,
            r = e("cipher-base"),
            i = e("inherits"),
            a = e("./ghash"),
            s = e("buffer-xor"),
            l = e("./incr32");

        function c(e, t) {
            var n = 0;
            e.length !== t.length && n++;
            for (var o = Math.min(e.length, t.length), r = 0; r < o; ++r) n += e[r] ^ t[r];
            return n
        }

        function u(e, t, n) {
            if (12 === t.length) return e._finID = o.concat([t, o.from([0, 0, 0, 1])]), o.concat([t, o.from([0, 0, 0, 2])]);
            var r = new a(n),
                i = t.length,
                s = i % 16;
            r.update(t), s && (s = 16 - s, r.update(o.alloc(s, 0))), r.update(o.alloc(8, 0));
            var c = 8 * i,
                u = o.alloc(8);
            u.writeUIntBE(c, 0, 8), r.update(u), e._finID = r.state;
            var p = o.from(e._finID);
            return l(p), p
        }

        function p(e, t, i, s) {
            r.call(this);
            var l = o.alloc(4, 0);
            this._cipher = new n.AES(t);
            var c = this._cipher.encryptBlock(l);
            this._ghash = new a(c), i = u(this, i, c), this._prev = o.from(i), this._cache = o.allocUnsafe(0), this._secCache = o.allocUnsafe(0), this._decrypt = s, this._alen = 0, this._len = 0, this._mode = e, this._authTag = null, this._called = !1
        }
        i(p, r), p.prototype._update = function(e) {
            if (!this._called && this._alen) {
                var t = 16 - this._alen % 16;
                t < 16 && (t = o.alloc(t, 0), this._ghash.update(t))
            }
            this._called = !0;
            var n = this._mode.encrypt(this, e);
            return this._decrypt ? this._ghash.update(e) : this._ghash.update(n), this._len += e.length, n
        }, p.prototype._final = function() {
            if (this._decrypt && !this._authTag) throw new Error("Unsupported state or unable to authenticate data");
            var e = s(this._ghash.final(8 * this._alen, 8 * this._len), this._cipher.encryptBlock(this._finID));
            if (this._decrypt && c(e, this._authTag)) throw new Error("Unsupported state or unable to authenticate data");
            this._authTag = e, this._cipher.scrub()
        }, p.prototype.getAuthTag = function() {
            if (this._decrypt || !o.isBuffer(this._authTag)) throw new Error("Attempting to get auth tag in unsupported state");
            return this._authTag
        }, p.prototype.setAuthTag = function(e) {
            if (!this._decrypt) throw new Error("Attempting to set auth tag in unsupported state");
            this._authTag = e
        }, p.prototype.setAAD = function(e) {
            if (this._called) throw new Error("Attempting to set AAD in unsupported state");
            this._ghash.update(e), this._alen += e.length
        }, t.exports = p
    }, {
        "./aes": 20,
        "./ghash": 25,
        "./incr32": 26,
        "buffer-xor": 64,
        "cipher-base": 67,
        inherits: 138,
        "safe-buffer": 183
    }],
    22: [function(e, t, n) {
        var o = e("./encrypter"),
            r = e("./decrypter"),
            i = e("./modes/list.json");
        n.createCipher = n.Cipher = o.createCipher, n.createCipheriv = n.Cipheriv = o.createCipheriv, n.createDecipher = n.Decipher = r.createDecipher, n.createDecipheriv = n.Decipheriv = r.createDecipheriv, n.listCiphers = n.getCiphers = function() {
            return Object.keys(i)
        }
    }, {
        "./decrypter": 23,
        "./encrypter": 24,
        "./modes/list.json": 34
    }],
    23: [function(e, t, n) {
        var o = e("./authCipher"),
            r = e("safe-buffer").Buffer,
            i = e("./modes"),
            a = e("./streamCipher"),
            s = e("cipher-base"),
            l = e("./aes"),
            c = e("evp_bytestokey");

        function u(e, t, n) {
            s.call(this), this._cache = new p, this._last = void 0, this._cipher = new l.AES(t), this._prev = r.from(n), this._mode = e, this._autopadding = !0
        }

        function p() {
            this.cache = r.allocUnsafe(0)
        }

        function d(e) {
            var t = e[15];
            if (t < 1 || t > 16) throw new Error("unable to decrypt data");
            for (var n = -1; ++n < t;)
                if (e[n + (16 - t)] !== t) throw new Error("unable to decrypt data");
            if (16 !== t) return e.slice(0, 16 - t)
        }

        function h(e, t, n) {
            var s = i[e.toLowerCase()];
            if (!s) throw new TypeError("invalid suite type");
            if ("string" == typeof n && (n = r.from(n)), "GCM" !== s.mode && n.length !== s.iv) throw new TypeError("invalid iv length " + n.length);
            if ("string" == typeof t && (t = r.from(t)), t.length !== s.key / 8) throw new TypeError("invalid key length " + t.length);
            return "stream" === s.type ? new a(s.module, t, n, !0) : "auth" === s.type ? new o(s.module, t, n, !0) : new u(s.module, t, n)
        }
        e("inherits")(u, s), u.prototype._update = function(e) {
            var t, n;
            this._cache.add(e);
            for (var o = []; t = this._cache.get(this._autopadding);) n = this._mode.decrypt(this, t), o.push(n);
            return r.concat(o)
        }, u.prototype._final = function() {
            var e = this._cache.flush();
            if (this._autopadding) return d(this._mode.decrypt(this, e));
            if (e) throw new Error("data not multiple of block length")
        }, u.prototype.setAutoPadding = function(e) {
            return this._autopadding = !!e, this
        }, p.prototype.add = function(e) {
            this.cache = r.concat([this.cache, e])
        }, p.prototype.get = function(e) {
            var t;
            if (e) {
                if (this.cache.length > 16) return t = this.cache.slice(0, 16), this.cache = this.cache.slice(16), t
            } else if (this.cache.length >= 16) return t = this.cache.slice(0, 16), this.cache = this.cache.slice(16), t;
            return null
        }, p.prototype.flush = function() {
            if (this.cache.length) return this.cache
        }, n.createDecipher = function(e, t) {
            var n = i[e.toLowerCase()];
            if (!n) throw new TypeError("invalid suite type");
            var o = c(t, !1, n.key, n.iv);
            return h(e, o.key, o.iv)
        }, n.createDecipheriv = h
    }, {
        "./aes": 20,
        "./authCipher": 21,
        "./modes": 33,
        "./streamCipher": 36,
        "cipher-base": 67,
        evp_bytestokey: 105,
        inherits: 138,
        "safe-buffer": 183
    }],
    24: [function(e, t, n) {
        var o = e("./modes"),
            r = e("./authCipher"),
            i = e("safe-buffer").Buffer,
            a = e("./streamCipher"),
            s = e("cipher-base"),
            l = e("./aes"),
            c = e("evp_bytestokey");

        function u(e, t, n) {
            s.call(this), this._cache = new d, this._cipher = new l.AES(t), this._prev = i.from(n), this._mode = e, this._autopadding = !0
        }
        e("inherits")(u, s), u.prototype._update = function(e) {
            var t, n;
            this._cache.add(e);
            for (var o = []; t = this._cache.get();) n = this._mode.encrypt(this, t), o.push(n);
            return i.concat(o)
        };
        var p = i.alloc(16, 16);

        function d() {
            this.cache = i.allocUnsafe(0)
        }

        function h(e, t, n) {
            var s = o[e.toLowerCase()];
            if (!s) throw new TypeError("invalid suite type");
            if ("string" == typeof t && (t = i.from(t)), t.length !== s.key / 8) throw new TypeError("invalid key length " + t.length);
            if ("string" == typeof n && (n = i.from(n)), "GCM" !== s.mode && n.length !== s.iv) throw new TypeError("invalid iv length " + n.length);
            return "stream" === s.type ? new a(s.module, t, n) : "auth" === s.type ? new r(s.module, t, n) : new u(s.module, t, n)
        }
        u.prototype._final = function() {
            var e = this._cache.flush();
            if (this._autopadding) return e = this._mode.encrypt(this, e), this._cipher.scrub(), e;
            if (!e.equals(p)) throw this._cipher.scrub(), new Error("data not multiple of block length")
        }, u.prototype.setAutoPadding = function(e) {
            return this._autopadding = !!e, this
        }, d.prototype.add = function(e) {
            this.cache = i.concat([this.cache, e])
        }, d.prototype.get = function() {
            if (this.cache.length > 15) {
                var e = this.cache.slice(0, 16);
                return this.cache = this.cache.slice(16), e
            }
            return null
        }, d.prototype.flush = function() {
            for (var e = 16 - this.cache.length, t = i.allocUnsafe(e), n = -1; ++n < e;) t.writeUInt8(e, n);
            return i.concat([this.cache, t])
        }, n.createCipheriv = h, n.createCipher = function(e, t) {
            var n = o[e.toLowerCase()];
            if (!n) throw new TypeError("invalid suite type");
            var r = c(t, !1, n.key, n.iv);
            return h(e, r.key, r.iv)
        }
    }, {
        "./aes": 20,
        "./authCipher": 21,
        "./modes": 33,
        "./streamCipher": 36,
        "cipher-base": 67,
        evp_bytestokey: 105,
        inherits: 138,
        "safe-buffer": 183
    }],
    25: [function(e, t) {
        var n = e("safe-buffer").Buffer,
            o = n.alloc(16, 0);

        function r(e) {
            var t = n.allocUnsafe(16);
            return t.writeUInt32BE(e[0] >>> 0, 0), t.writeUInt32BE(e[1] >>> 0, 4), t.writeUInt32BE(e[2] >>> 0, 8), t.writeUInt32BE(e[3] >>> 0, 12), t
        }

        function i(e) {
            this.h = e, this.state = n.alloc(16, 0), this.cache = n.allocUnsafe(0)
        }
        i.prototype.ghash = function(e) {
            for (var t = -1; ++t < e.length;) this.state[t] ^= e[t];
            this._multiply()
        }, i.prototype._multiply = function() {
            for (var e, t, n, o = [(e = this.h).readUInt32BE(0), e.readUInt32BE(4), e.readUInt32BE(8), e.readUInt32BE(12)], i = [0, 0, 0, 0], a = -1; ++a < 128;) {
                for (0 != (this.state[~~(a / 8)] & 1 << 7 - a % 8) && (i[0] ^= o[0], i[1] ^= o[1], i[2] ^= o[2], i[3] ^= o[3]), n = 0 != (1 & o[3]), t = 3; t > 0; t--) o[t] = o[t] >>> 1 | (1 & o[t - 1]) << 31;
                o[0] = o[0] >>> 1, n && (o[0] = o[0] ^ 225 << 24)
            }
            this.state = r(i)
        }, i.prototype.update = function(e) {
            var t;
            for (this.cache = n.concat([this.cache, e]); this.cache.length >= 16;) t = this.cache.slice(0, 16), this.cache = this.cache.slice(16), this.ghash(t)
        }, i.prototype.final = function(e, t) {
            return this.cache.length && this.ghash(n.concat([this.cache, o], 16)), this.ghash(r([0, e, 0, t])), this.state
        }, t.exports = i
    }, {
        "safe-buffer": 183
    }],
    26: [function(e, t) {
        t.exports = function(e) {
            for (var t, n = e.length; n--;) {
                if (255 !== (t = e.readUInt8(n))) {
                    t++, e.writeUInt8(t, n);
                    break
                }
                e.writeUInt8(0, n)
            }
        }
    }, {}],
    27: [function(e, t, n) {
        var o = e("buffer-xor");
        n.encrypt = function(e, t) {
            var n = o(t, e._prev);
            return e._prev = e._cipher.encryptBlock(n), e._prev
        }, n.decrypt = function(e, t) {
            var n = e._prev;
            e._prev = t;
            var r = e._cipher.decryptBlock(t);
            return o(r, n)
        }
    }, {
        "buffer-xor": 64
    }],
    28: [function(e, t, n) {
        var o = e("safe-buffer").Buffer,
            r = e("buffer-xor");

        function i(e, t, n) {
            var i = t.length,
                a = r(t, e._cache);
            return e._cache = e._cache.slice(i), e._prev = o.concat([e._prev, n ? t : a]), a
        }
        n.encrypt = function(e, t, n) {
            for (var r, a = o.allocUnsafe(0); t.length;) {
                if (0 === e._cache.length && (e._cache = e._cipher.encryptBlock(e._prev), e._prev = o.allocUnsafe(0)), !(e._cache.length <= t.length)) {
                    a = o.concat([a, i(e, t, n)]);
                    break
                }
                r = e._cache.length, a = o.concat([a, i(e, t.slice(0, r), n)]), t = t.slice(r)
            }
            return a
        }
    }, {
        "buffer-xor": 64,
        "safe-buffer": 183
    }],
    29: [function(e, t, n) {
        var o = e("safe-buffer").Buffer;

        function r(e, t, n) {
            for (var o, r, a = -1, s = 0; ++a < 8;) o = t & 1 << 7 - a ? 128 : 0, s += (128 & (r = e._cipher.encryptBlock(e._prev)[0] ^ o)) >> a % 8, e._prev = i(e._prev, n ? o : r);
            return s
        }

        function i(e, t) {
            var n = e.length,
                r = -1,
                i = o.allocUnsafe(e.length);
            for (e = o.concat([e, o.from([t])]); ++r < n;) i[r] = e[r] << 1 | e[r + 1] >> 7;
            return i
        }
        n.encrypt = function(e, t, n) {
            for (var i = t.length, a = o.allocUnsafe(i), s = -1; ++s < i;) a[s] = r(e, t[s], n);
            return a
        }
    }, {
        "safe-buffer": 183
    }],
    30: [function(e, t, n) {
        var o = e("safe-buffer").Buffer;

        function r(e, t, n) {
            var r = e._cipher.encryptBlock(e._prev)[0] ^ t;
            return e._prev = o.concat([e._prev.slice(1), o.from([n ? t : r])]), r
        }
        n.encrypt = function(e, t, n) {
            for (var i = t.length, a = o.allocUnsafe(i), s = -1; ++s < i;) a[s] = r(e, t[s], n);
            return a
        }
    }, {
        "safe-buffer": 183
    }],
    31: [function(e, t, n) {
        var o = e("buffer-xor"),
            r = e("safe-buffer").Buffer,
            i = e("../incr32");

        function a(e) {
            var t = e._cipher.encryptBlockRaw(e._prev);
            return i(e._prev), t
        }
        n.encrypt = function(e, t) {
            var n = Math.ceil(t.length / 16),
                i = e._cache.length;
            e._cache = r.concat([e._cache, r.allocUnsafe(16 * n)]);
            for (var s = 0; s < n; s++) {
                var l = a(e),
                    c = i + 16 * s;
                e._cache.writeUInt32BE(l[0], c + 0), e._cache.writeUInt32BE(l[1], c + 4), e._cache.writeUInt32BE(l[2], c + 8), e._cache.writeUInt32BE(l[3], c + 12)
            }
            var u = e._cache.slice(0, t.length);
            return e._cache = e._cache.slice(t.length), o(t, u)
        }
    }, {
        "../incr32": 26,
        "buffer-xor": 64,
        "safe-buffer": 183
    }],
    32: [function(e, t, n) {
        n.encrypt = function(e, t) {
            return e._cipher.encryptBlock(t)
        }, n.decrypt = function(e, t) {
            return e._cipher.decryptBlock(t)
        }
    }, {}],
    33: [function(e, t) {
        var n = {
                ECB: e("./ecb"),
                CBC: e("./cbc"),
                CFB: e("./cfb"),
                CFB8: e("./cfb8"),
                CFB1: e("./cfb1"),
                OFB: e("./ofb"),
                CTR: e("./ctr"),
                GCM: e("./ctr")
            },
            o = e("./list.json");
        for (var r in o) o[r].module = n[o[r].mode];
        t.exports = o
    }, {
        "./cbc": 27,
        "./cfb": 28,
        "./cfb1": 29,
        "./cfb8": 30,
        "./ctr": 31,
        "./ecb": 32,
        "./list.json": 34,
        "./ofb": 35
    }],
    34: [function(e, t) {
        t.exports = {
            "aes-128-ecb": {
                cipher: "AES",
                key: 128,
                iv: 0,
                mode: "ECB",
                type: "block"
            },
            "aes-192-ecb": {
                cipher: "AES",
                key: 192,
                iv: 0,
                mode: "ECB",
                type: "block"
            },
            "aes-256-ecb": {
                cipher: "AES",
                key: 256,
                iv: 0,
                mode: "ECB",
                type: "block"
            },
            "aes-128-cbc": {
                cipher: "AES",
                key: 128,
                iv: 16,
                mode: "CBC",
                type: "block"
            },
            "aes-192-cbc": {
                cipher: "AES",
                key: 192,
                iv: 16,
                mode: "CBC",
                type: "block"
            },
            "aes-256-cbc": {
                cipher: "AES",
                key: 256,
                iv: 16,
                mode: "CBC",
                type: "block"
            },
            aes128: {
                cipher: "AES",
                key: 128,
                iv: 16,
                mode: "CBC",
                type: "block"
            },
            aes192: {
                cipher: "AES",
                key: 192,
                iv: 16,
                mode: "CBC",
                type: "block"
            },
            aes256: {
                cipher: "AES",
                key: 256,
                iv: 16,
                mode: "CBC",
                type: "block"
            },
            "aes-128-cfb": {
                cipher: "AES",
                key: 128,
                iv: 16,
                mode: "CFB",
                type: "stream"
            },
            "aes-192-cfb": {
                cipher: "AES",
                key: 192,
                iv: 16,
                mode: "CFB",
                type: "stream"
            },
            "aes-256-cfb": {
                cipher: "AES",
                key: 256,
                iv: 16,
                mode: "CFB",
                type: "stream"
            },
            "aes-128-cfb8": {
                cipher: "AES",
                key: 128,
                iv: 16,
                mode: "CFB8",
                type: "stream"
            },
            "aes-192-cfb8": {
                cipher: "AES",
                key: 192,
                iv: 16,
                mode: "CFB8",
                type: "stream"
            },
            "aes-256-cfb8": {
                cipher: "AES",
                key: 256,
                iv: 16,
                mode: "CFB8",
                type: "stream"
            },
            "aes-128-cfb1": {
                cipher: "AES",
                key: 128,
                iv: 16,
                mode: "CFB1",
                type: "stream"
            },
            "aes-192-cfb1": {
                cipher: "AES",
                key: 192,
                iv: 16,
                mode: "CFB1",
                type: "stream"
            },
            "aes-256-cfb1": {
                cipher: "AES",
                key: 256,
                iv: 16,
                mode: "CFB1",
                type: "stream"
            },
            "aes-128-ofb": {
                cipher: "AES",
                key: 128,
                iv: 16,
                mode: "OFB",
                type: "stream"
            },
            "aes-192-ofb": {
                cipher: "AES",
                key: 192,
                iv: 16,
                mode: "OFB",
                type: "stream"
            },
            "aes-256-ofb": {
                cipher: "AES",
                key: 256,
                iv: 16,
                mode: "OFB",
                type: "stream"
            },
            "aes-128-ctr": {
                cipher: "AES",
                key: 128,
                iv: 16,
                mode: "CTR",
                type: "stream"
            },
            "aes-192-ctr": {
                cipher: "AES",
                key: 192,
                iv: 16,
                mode: "CTR",
                type: "stream"
            },
            "aes-256-ctr": {
                cipher: "AES",
                key: 256,
                iv: 16,
                mode: "CTR",
                type: "stream"
            },
            "aes-128-gcm": {
                cipher: "AES",
                key: 128,
                iv: 12,
                mode: "GCM",
                type: "auth"
            },
            "aes-192-gcm": {
                cipher: "AES",
                key: 192,
                iv: 12,
                mode: "GCM",
                type: "auth"
            },
            "aes-256-gcm": {
                cipher: "AES",
                key: 256,
                iv: 12,
                mode: "GCM",
                type: "auth"
            }
        }
    }, {}],
    35: [function(e, t, n) {
        (function(t) {
            var o = e("buffer-xor");

            function r(e) {
                return e._prev = e._cipher.encryptBlock(e._prev), e._prev
            }
            n.encrypt = function(e, n) {
                for (; e._cache.length < n.length;) e._cache = t.concat([e._cache, r(e)]);
                var i = e._cache.slice(0, n.length);
                return e._cache = e._cache.slice(n.length), o(n, i)
            }
        }).call(this, e("buffer").Buffer)
    }, {
        buffer: 65,
        "buffer-xor": 64
    }],
    36: [function(e, t) {
        var n = e("./aes"),
            o = e("safe-buffer").Buffer,
            r = e("cipher-base");

        function i(e, t, i, a) {
            r.call(this), this._cipher = new n.AES(t), this._prev = o.from(i), this._cache = o.allocUnsafe(0), this._secCache = o.allocUnsafe(0), this._decrypt = a, this._mode = e
        }
        e("inherits")(i, r), i.prototype._update = function(e) {
            return this._mode.encrypt(this, e, this._decrypt)
        }, i.prototype._final = function() {
            this._cipher.scrub()
        }, t.exports = i
    }, {
        "./aes": 20,
        "cipher-base": 67,
        inherits: 138,
        "safe-buffer": 183
    }],
    37: [function(e, t, n) {
        var o = e("browserify-des"),
            r = e("browserify-aes/browser"),
            i = e("browserify-aes/modes"),
            a = e("browserify-des/modes"),
            s = e("evp_bytestokey");

        function l(e, t, n) {
            if (e = e.toLowerCase(), i[e]) return r.createCipheriv(e, t, n);
            if (a[e]) return new o({
                key: t,
                iv: n,
                mode: e
            });
            throw new TypeError("invalid suite type")
        }

        function c(e, t, n) {
            if (e = e.toLowerCase(), i[e]) return r.createDecipheriv(e, t, n);
            if (a[e]) return new o({
                key: t,
                iv: n,
                mode: e,
                decrypt: !0
            });
            throw new TypeError("invalid suite type")
        }
        n.createCipher = n.Cipher = function(e, t) {
            var n, o;
            if (e = e.toLowerCase(), i[e]) n = i[e].key, o = i[e].iv;
            else {
                if (!a[e]) throw new TypeError("invalid suite type");
                n = 8 * a[e].key, o = a[e].iv
            }
            var r = s(t, !1, n, o);
            return l(e, r.key, r.iv)
        }, n.createCipheriv = n.Cipheriv = l, n.createDecipher = n.Decipher = function(e, t) {
            var n, o;
            if (e = e.toLowerCase(), i[e]) n = i[e].key, o = i[e].iv;
            else {
                if (!a[e]) throw new TypeError("invalid suite type");
                n = 8 * a[e].key, o = a[e].iv
            }
            var r = s(t, !1, n, o);
            return c(e, r.key, r.iv)
        }, n.createDecipheriv = n.Decipheriv = c, n.listCiphers = n.getCiphers = function() {
            return Object.keys(a).concat(r.getCiphers())
        }
    }, {
        "browserify-aes/browser": 22,
        "browserify-aes/modes": 33,
        "browserify-des": 38,
        "browserify-des/modes": 39,
        evp_bytestokey: 105
    }],
    38: [function(e, t) {
        var n = e("cipher-base"),
            o = e("des.js"),
            r = e("inherits"),
            i = e("safe-buffer").Buffer,
            a = {
                "des-ede3-cbc": o.CBC.instantiate(o.EDE),
                "des-ede3": o.EDE,
                "des-ede-cbc": o.CBC.instantiate(o.EDE),
                "des-ede": o.EDE,
                "des-cbc": o.CBC.instantiate(o.DES),
                "des-ecb": o.DES
            };

        function s(e) {
            n.call(this);
            var t, o = e.mode.toLowerCase(),
                r = a[o];
            t = e.decrypt ? "decrypt" : "encrypt";
            var s = e.key;
            i.isBuffer(s) || (s = i.from(s)), "des-ede" !== o && "des-ede-cbc" !== o || (s = i.concat([s, s.slice(0, 8)]));
            var l = e.iv;
            i.isBuffer(l) || (l = i.from(l)), this._des = r.create({
                key: s,
                iv: l,
                type: t
            })
        }
        a.des = a["des-cbc"], a.des3 = a["des-ede3-cbc"], t.exports = s, r(s, n), s.prototype._update = function(e) {
            return i.from(this._des.update(e))
        }, s.prototype._final = function() {
            return i.from(this._des.final())
        }
    }, {
        "cipher-base": 67,
        "des.js": 76,
        inherits: 138,
        "safe-buffer": 183
    }],
    39: [function(e, t, n) {
        n["des-ecb"] = {
            key: 8,
            iv: 0
        }, n["des-cbc"] = n.des = {
            key: 8,
            iv: 8
        }, n["des-ede3-cbc"] = n.des3 = {
            key: 24,
            iv: 8
        }, n["des-ede3"] = {
            key: 24,
            iv: 0
        }, n["des-ede-cbc"] = {
            key: 16,
            iv: 8
        }, n["des-ede"] = {
            key: 16,
            iv: 0
        }
    }, {}],
    40: [function(e, t) {
        (function(n) {
            var o = e("bn.js"),
                r = e("randombytes");

            function i(e) {
                var t = a(e);
                return {
                    blinder: t.toRed(o.mont(e.modulus)).redPow(new o(e.publicExponent)).fromRed(),
                    unblinder: t.invm(e.modulus)
                }
            }

            function a(e) {
                var t, n = e.modulus.byteLength();
                do {
                    t = new o(r(n))
                } while (t.cmp(e.modulus) >= 0 || !t.umod(e.prime1) || !t.umod(e.prime2));
                return t
            }

            function s(e, t) {
                var r = i(t),
                    a = t.modulus.byteLength(),
                    s = new o(e).mul(r.blinder).umod(t.modulus),
                    l = s.toRed(o.mont(t.prime1)),
                    c = s.toRed(o.mont(t.prime2)),
                    u = t.coefficient,
                    p = t.prime1,
                    d = t.prime2,
                    h = l.redPow(t.exponent1).fromRed(),
                    f = c.redPow(t.exponent2).fromRed(),
                    y = h.isub(f).imul(u).umod(p).imul(d);
                return f.iadd(y).imul(r.unblinder).umod(t.modulus).toArrayLike(n, "be", a)
            }
            s.getr = a, t.exports = s
        }).call(this, e("buffer").Buffer)
    }, {
        "bn.js": 17,
        buffer: 65,
        randombytes: 165
    }],
    41: [function(e, t) {
        t.exports = e("./browser/algorithms.json")
    }, {
        "./browser/algorithms.json": 42
    }],
    42: [function(e, t) {
        t.exports = {
            sha224WithRSAEncryption: {
                sign: "rsa",
                hash: "sha224",
                id: "302d300d06096086480165030402040500041c"
            },
            "RSA-SHA224": {
                sign: "ecdsa/rsa",
                hash: "sha224",
                id: "302d300d06096086480165030402040500041c"
            },
            sha256WithRSAEncryption: {
                sign: "rsa",
                hash: "sha256",
                id: "3031300d060960864801650304020105000420"
            },
            "RSA-SHA256": {
                sign: "ecdsa/rsa",
                hash: "sha256",
                id: "3031300d060960864801650304020105000420"
            },
            sha384WithRSAEncryption: {
                sign: "rsa",
                hash: "sha384",
                id: "3041300d060960864801650304020205000430"
            },
            "RSA-SHA384": {
                sign: "ecdsa/rsa",
                hash: "sha384",
                id: "3041300d060960864801650304020205000430"
            },
            sha512WithRSAEncryption: {
                sign: "rsa",
                hash: "sha512",
                id: "3051300d060960864801650304020305000440"
            },
            "RSA-SHA512": {
                sign: "ecdsa/rsa",
                hash: "sha512",
                id: "3051300d060960864801650304020305000440"
            },
            "RSA-SHA1": {
                sign: "rsa",
                hash: "sha1",
                id: "3021300906052b0e03021a05000414"
            },
            "ecdsa-with-SHA1": {
                sign: "ecdsa",
                hash: "sha1",
                id: ""
            },
            sha256: {
                sign: "ecdsa",
                hash: "sha256",
                id: ""
            },
            sha224: {
                sign: "ecdsa",
                hash: "sha224",
                id: ""
            },
            sha384: {
                sign: "ecdsa",
                hash: "sha384",
                id: ""
            },
            sha512: {
                sign: "ecdsa",
                hash: "sha512",
                id: ""
            },
            "DSA-SHA": {
                sign: "dsa",
                hash: "sha1",
                id: ""
            },
            "DSA-SHA1": {
                sign: "dsa",
                hash: "sha1",
                id: ""
            },
            DSA: {
                sign: "dsa",
                hash: "sha1",
                id: ""
            },
            "DSA-WITH-SHA224": {
                sign: "dsa",
                hash: "sha224",
                id: ""
            },
            "DSA-SHA224": {
                sign: "dsa",
                hash: "sha224",
                id: ""
            },
            "DSA-WITH-SHA256": {
                sign: "dsa",
                hash: "sha256",
                id: ""
            },
            "DSA-SHA256": {
                sign: "dsa",
                hash: "sha256",
                id: ""
            },
            "DSA-WITH-SHA384": {
                sign: "dsa",
                hash: "sha384",
                id: ""
            },
            "DSA-SHA384": {
                sign: "dsa",
                hash: "sha384",
                id: ""
            },
            "DSA-WITH-SHA512": {
                sign: "dsa",
                hash: "sha512",
                id: ""
            },
            "DSA-SHA512": {
                sign: "dsa",
                hash: "sha512",
                id: ""
            },
            "DSA-RIPEMD160": {
                sign: "dsa",
                hash: "rmd160",
                id: ""
            },
            ripemd160WithRSA: {
                sign: "rsa",
                hash: "rmd160",
                id: "3021300906052b2403020105000414"
            },
            "RSA-RIPEMD160": {
                sign: "rsa",
                hash: "rmd160",
                id: "3021300906052b2403020105000414"
            },
            md5WithRSAEncryption: {
                sign: "rsa",
                hash: "md5",
                id: "3020300c06082a864886f70d020505000410"
            },
            "RSA-MD5": {
                sign: "rsa",
                hash: "md5",
                id: "3020300c06082a864886f70d020505000410"
            }
        }
    }, {}],
    43: [function(e, t) {
        t.exports = {
            "1.3.132.0.10": "secp256k1",
            "1.3.132.0.33": "p224",
            "1.2.840.10045.3.1.1": "p192",
            "1.2.840.10045.3.1.7": "p256",
            "1.3.132.0.34": "p384",
            "1.3.132.0.35": "p521"
        }
    }, {}],
    44: [function(e, t) {
        var n = e("safe-buffer").Buffer,
            o = e("create-hash"),
            r = e("readable-stream"),
            i = e("inherits"),
            a = e("./sign"),
            s = e("./verify"),
            l = e("./algorithms.json");

        function c(e) {
            r.Writable.call(this);
            var t = l[e];
            if (!t) throw new Error("Unknown message digest");
            this._hashType = t.hash, this._hash = o(t.hash), this._tag = t.id, this._signType = t.sign
        }

        function u(e) {
            r.Writable.call(this);
            var t = l[e];
            if (!t) throw new Error("Unknown message digest");
            this._hash = o(t.hash), this._tag = t.id, this._signType = t.sign
        }

        function p(e) {
            return new c(e)
        }

        function d(e) {
            return new u(e)
        }
        Object.keys(l).forEach(function(e) {
            l[e].id = n.from(l[e].id, "hex"), l[e.toLowerCase()] = l[e]
        }), i(c, r.Writable), c.prototype._write = function(e, t, n) {
            this._hash.update(e), n()
        }, c.prototype.update = function(e, t) {
            return "string" == typeof e && (e = n.from(e, t)), this._hash.update(e), this
        }, c.prototype.sign = function(e, t) {
            this.end();
            var n = this._hash.digest(),
                o = a(n, e, this._hashType, this._signType, this._tag);
            return t ? o.toString(t) : o
        }, i(u, r.Writable), u.prototype._write = function(e, t, n) {
            this._hash.update(e), n()
        }, u.prototype.update = function(e, t) {
            return "string" == typeof e && (e = n.from(e, t)), this._hash.update(e), this
        }, u.prototype.verify = function(e, t, o) {
            "string" == typeof t && (t = n.from(t, o)), this.end();
            var r = this._hash.digest();
            return s(t, r, e, this._signType, this._tag)
        }, t.exports = {
            Sign: p,
            Verify: d,
            createSign: p,
            createVerify: d
        }
    }, {
        "./algorithms.json": 42,
        "./sign": 45,
        "./verify": 46,
        "create-hash": 71,
        inherits: 138,
        "readable-stream": 61,
        "safe-buffer": 62
    }],
    45: [function(e, t) {
        var n = e("safe-buffer").Buffer,
            o = e("create-hmac"),
            r = e("browserify-rsa"),
            i = e("elliptic").ec,
            a = e("bn.js"),
            s = e("parse-asn1"),
            l = e("./curves.json");

        function c(e, t) {
            var o = l[t.curve.join(".")];
            if (!o) throw new Error("unknown curve " + t.curve.join("."));
            var r = new i(o).keyFromPrivate(t.privateKey).sign(e);
            return n.from(r.toDER())
        }

        function u(e, t, n) {
            for (var o, r = t.params.priv_key, i = t.params.p, s = t.params.q, l = t.params.g, c = new a(0), u = h(e, s).mod(s), f = !1, m = d(r, s, e, n); !1 === f;) c = g(l, o = y(s, m, n), i, s), 0 === (f = o.invm(s).imul(u.add(r.mul(c))).mod(s)).cmpn(0) && (f = !1, c = new a(0));
            return p(c, f)
        }

        function p(e, t) {
            e = e.toArray(), t = t.toArray(), 128 & e[0] && (e = [0].concat(e)), 128 & t[0] && (t = [0].concat(t));
            var o = [48, e.length + t.length + 4, 2, e.length];
            return o = o.concat(e, [2, t.length], t), n.from(o)
        }

        function d(e, t, r, i) {
            if ((e = n.from(e.toArray())).length < t.byteLength()) {
                var a = n.alloc(t.byteLength() - e.length);
                e = n.concat([a, e])
            }
            var s = r.length,
                l = f(r, t),
                c = n.alloc(s);
            c.fill(1);
            var u = n.alloc(s);
            return u = o(i, u).update(c).update(n.from([0])).update(e).update(l).digest(), c = o(i, u).update(c).digest(), {
                k: u = o(i, u).update(c).update(n.from([1])).update(e).update(l).digest(),
                v: c = o(i, u).update(c).digest()
            }
        }

        function h(e, t) {
            var n = new a(e),
                o = (e.length << 3) - t.bitLength();
            return o > 0 && n.ishrn(o), n
        }

        function f(e, t) {
            e = (e = h(e, t)).mod(t);
            var o = n.from(e.toArray());
            if (o.length < t.byteLength()) {
                var r = n.alloc(t.byteLength() - o.length);
                o = n.concat([r, o])
            }
            return o
        }

        function y(e, t, r) {
            var i, a;
            do {
                for (i = n.alloc(0); 8 * i.length < e.bitLength();) t.v = o(r, t.k).update(t.v).digest(), i = n.concat([i, t.v]);
                a = h(i, e), t.k = o(r, t.k).update(t.v).update(n.from([0])).digest(), t.v = o(r, t.k).update(t.v).digest()
            } while (-1 !== a.cmp(e));
            return a
        }

        function g(e, t, n, o) {
            return e.toRed(a.mont(n)).redPow(t).fromRed().mod(o)
        }
        t.exports = function(e, t, o, i, a) {
            var l = s(t);
            if (l.curve) {
                if ("ecdsa" !== i && "ecdsa/rsa" !== i) throw new Error("wrong private key type");
                return c(e, l)
            }
            if ("dsa" === l.type) {
                if ("dsa" !== i) throw new Error("wrong private key type");
                return u(e, l, o)
            }
            if ("rsa" !== i && "ecdsa/rsa" !== i) throw new Error("wrong private key type");
            e = n.concat([a, e]);
            for (var p = l.modulus.byteLength(), d = [0, 1]; e.length + d.length + 1 < p;) d.push(255);
            d.push(0);
            for (var h = -1; ++h < e.length;) d.push(e[h]);
            return r(d, l)
        }, t.exports.getKey = d, t.exports.makeKey = y
    }, {
        "./curves.json": 43,
        "bn.js": 17,
        "browserify-rsa": 40,
        "create-hmac": 73,
        elliptic: 87,
        "parse-asn1": 148,
        "safe-buffer": 62
    }],
    46: [function(e, t) {
        var n = e("safe-buffer").Buffer,
            o = e("bn.js"),
            r = e("elliptic").ec,
            i = e("parse-asn1"),
            a = e("./curves.json");

        function s(e, t, n) {
            var o = a[n.data.algorithm.curve.join(".")];
            if (!o) throw new Error("unknown curve " + n.data.algorithm.curve.join("."));
            var i = new r(o),
                s = n.data.subjectPrivateKey.data;
            return i.verify(t, e, s)
        }

        function l(e, t, n) {
            var r = n.data.p,
                a = n.data.q,
                s = n.data.g,
                l = n.data.pub_key,
                u = i.signature.decode(e, "der"),
                p = u.s,
                d = u.r;
            c(p, a), c(d, a);
            var h = o.mont(r),
                f = p.invm(a);
            return 0 === s.toRed(h).redPow(new o(t).mul(f).mod(a)).fromRed().mul(l.toRed(h).redPow(d.mul(f).mod(a)).fromRed()).mod(r).mod(a).cmp(d)
        }

        function c(e, t) {
            if (e.cmpn(0) <= 0) throw new Error("invalid sig");
            if (e.cmp(t) >= t) throw new Error("invalid sig")
        }
        t.exports = function(e, t, r, a, c) {
            var u = i(r);
            if ("ec" === u.type) {
                if ("ecdsa" !== a && "ecdsa/rsa" !== a) throw new Error("wrong public key type");
                return s(e, t, u)
            }
            if ("dsa" === u.type) {
                if ("dsa" !== a) throw new Error("wrong public key type");
                return l(e, t, u)
            }
            if ("rsa" !== a && "ecdsa/rsa" !== a) throw new Error("wrong public key type");
            t = n.concat([c, t]);
            for (var p = u.modulus.byteLength(), d = [1], h = 0; t.length + d.length + 2 < p;) d.push(255), h++;
            d.push(0);
            for (var f = -1; ++f < t.length;) d.push(t[f]);
            d = n.from(d);
            var y = o.mont(u.modulus);
            e = (e = new o(e).toRed(y)).redPow(new o(u.publicExponent)), e = n.from(e.fromRed().toArray());
            var g = h < 8 ? 1 : 0;
            for (p = Math.min(e.length, d.length), e.length !== d.length && (g = 1), f = -1; ++f < p;) g |= e[f] ^ d[f];
            return 0 === g
        }
    }, {
        "./curves.json": 43,
        "bn.js": 17,
        elliptic: 87,
        "parse-asn1": 148,
        "safe-buffer": 62
    }],
    47: [function(e, t) {
        "use strict";
        var n = {};

        function o(e, t, o) {
            function r(e, n, o) {
                return "string" == typeof t ? t : t(e, n, o)
            }
            o || (o = Error);
            var i = function(e) {
                var t, n;

                function o(t, n, o) {
                    return e.call(this, r(t, n, o)) || this
                }
                return n = e, (t = o).prototype = Object.create(n.prototype), t.prototype.constructor = t, t.__proto__ = n, o
            }(o);
            i.prototype.name = o.name, i.prototype.code = e, n[e] = i
        }

        function r(e, t) {
            if (Array.isArray(e)) {
                var n = e.length;
                return e = e.map(function(e) {
                    return String(e)
                }), n > 2 ? "one of ".concat(t, " ").concat(e.slice(0, n - 1).join(", "), ", or ") + e[n - 1] : 2 === n ? "one of ".concat(t, " ").concat(e[0], " or ").concat(e[1]) : "of ".concat(t, " ").concat(e[0])
            }
            return "of ".concat(t, " ").concat(String(e))
        }

        function i(e, t, n) {
            return (void 0 === n || n > e.length) && (n = e.length), e.substring(n - t.length, n) === t
        }

        function a(e, t, n) {
            return "number" != typeof n && (n = 0), !(n + t.length > e.length) && -1 !== e.indexOf(t, n)
        }
        o("ERR_INVALID_OPT_VALUE", function(e, t) {
            return 'The value "' + t + '" is invalid for option "' + e + '"'
        }, TypeError), o("ERR_INVALID_ARG_TYPE", function(e, t, n) {
            var o, s;
            if ("string" == typeof t && ("not ", "not " === t.substr(0, "not ".length)) ? (o = "must not be", t = t.replace(/^not /, "")) : o = "must be", i(e, " argument")) s = "The ".concat(e, " ").concat(o, " ").concat(r(t, "type"));
            else {
                var l = a(e, ".") ? "property" : "argument";
                s = 'The "'.concat(e, '" ').concat(l, " ").concat(o, " ").concat(r(t, "type"))
            }
            return s + ". Received type ".concat(typeof n)
        }, TypeError), o("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), o("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
            return "The " + e + " method is not implemented"
        }), o("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), o("ERR_STREAM_DESTROYED", function(e) {
            return "Cannot call " + e + " after a stream was destroyed"
        }), o("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), o("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), o("ERR_STREAM_WRITE_AFTER_END", "write after end"), o("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), o("ERR_UNKNOWN_ENCODING", function(e) {
            return "Unknown encoding: " + e
        }, TypeError), o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), t.exports.codes = n
    }, {}],
    48: [function(e, t) {
        (function(n) {
            "use strict";
            var o = Object.keys || function(e) {
                var t = [];
                for (var n in e) t.push(n);
                return t
            };
            t.exports = c;
            var r = e("./_stream_readable"),
                i = e("./_stream_writable");
            e("inherits")(c, r);
            for (var a = o(i.prototype), s = 0; s < a.length; s++) {
                var l = a[s];
                c.prototype[l] || (c.prototype[l] = i.prototype[l])
            }

            function c(e) {
                if (!(this instanceof c)) return new c(e);
                r.call(this, e), i.call(this, e), this.allowHalfOpen = !0, e && (!1 === e.readable && (this.readable = !1), !1 === e.writable && (this.writable = !1), !1 === e.allowHalfOpen && (this.allowHalfOpen = !1, this.once("end", u)))
            }

            function u() {
                this._writableState.ended || n.nextTick(p, this)
            }

            function p(e) {
                e.end()
            }
            Object.defineProperty(c.prototype, "writableHighWaterMark", {
                enumerable: !1,
                get: function() {
                    return this._writableState.highWaterMark
                }
            }), Object.defineProperty(c.prototype, "writableBuffer", {
                enumerable: !1,
                get: function() {
                    return this._writableState && this._writableState.getBuffer()
                }
            }), Object.defineProperty(c.prototype, "writableLength", {
                enumerable: !1,
                get: function() {
                    return this._writableState.length
                }
            }), Object.defineProperty(c.prototype, "destroyed", {
                enumerable: !1,
                get: function() {
                    return void 0 !== this._readableState && void 0 !== this._writableState && this._readableState.destroyed && this._writableState.destroyed
                },
                set: function(e) {
                    void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed = e, this._writableState.destroyed = e)
                }
            })
        }).call(this, e("_process"))
    }, {
        "./_stream_readable": 50,
        "./_stream_writable": 52,
        _process: 157,
        inherits: 138
    }],
    49: [function(e, t) {
        "use strict";
        t.exports = o;
        var n = e("./_stream_transform");

        function o(e) {
            if (!(this instanceof o)) return new o(e);
            n.call(this, e)
        }
        e("inherits")(o, n), o.prototype._transform = function(e, t, n) {
            n(null, e)
        }
    }, {
        "./_stream_transform": 51,
        inherits: 138
    }],
    50: [function(e, t) {
        (function(n, o) {
            "use strict";
            var r;
            t.exports = T, T.ReadableState = A, e("events").EventEmitter;
            var i = function(e, t) {
                    return e.listeners(t).length
                },
                a = e("./internal/streams/stream"),
                s = e("buffer").Buffer,
                l = o.Uint8Array || function() {};

            function c(e) {
                return s.from(e)
            }
            var u, p = e("util");
            u = p && p.debuglog ? p.debuglog("stream") : function() {};
            var d, h, f, y = e("./internal/streams/buffer_list"),
                g = e("./internal/streams/destroy"),
                m = e("./internal/streams/state").getHighWaterMark,
                I = e("../errors").codes,
                _ = I.ERR_INVALID_ARG_TYPE,
                C = I.ERR_STREAM_PUSH_AFTER_EOF,
                v = I.ERR_METHOD_NOT_IMPLEMENTED,
                b = I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
            e("inherits")(T, a);
            var S = g.errorOrDestroy,
                w = ["error", "close", "destroy", "pause", "resume"];

            function P(e, t, n) {
                if ("function" == typeof e.prependListener) return e.prependListener(t, n);
                e._events && e._events[t] ? Array.isArray(e._events[t]) ? e._events[t].unshift(n) : e._events[t] = [n, e._events[t]] : e.on(t, n)
            }

            function A(t, n, o) {
                r = r || e("./_stream_duplex"), t = t || {}, "boolean" != typeof o && (o = n instanceof r), this.objectMode = !!t.objectMode, o && (this.objectMode = this.objectMode || !!t.readableObjectMode), this.highWaterMark = m(this, t, "readableHighWaterMark", o), this.buffer = new y, this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = !1 !== t.emitClose, this.autoDestroy = !!t.autoDestroy, this.destroyed = !1, this.defaultEncoding = t.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, t.encoding && (d || (d = e("string_decoder/").StringDecoder), this.decoder = new d(t.encoding), this.encoding = t.encoding)
            }

            function T(t) {
                if (r = r || e("./_stream_duplex"), !(this instanceof T)) return new T(t);
                var n = this instanceof r;
                this._readableState = new A(t, this, n), this.readable = !0, t && ("function" == typeof t.read && (this._read = t.read), "function" == typeof t.destroy && (this._destroy = t.destroy)), a.call(this)
            }

            function R(e, t, n, o, r) {
                u("readableAddChunk", t);
                var i, a = e._readableState;
                if (null === t) a.reading = !1, B(e, a);
                else if (r || (i = k(a, t)), i) S(e, i);
                else if (a.objectMode || t && t.length > 0)
                    if ("string" == typeof t || a.objectMode || Object.getPrototypeOf(t) === s.prototype || (t = c(t)), o) a.endEmitted ? S(e, new b) : L(e, a, t, !0);
                    else if (a.ended) S(e, new C);
                else {
                    if (a.destroyed) return !1;
                    a.reading = !1, a.decoder && !n ? (t = a.decoder.write(t), a.objectMode || 0 !== t.length ? L(e, a, t, !1) : U(e, a)) : L(e, a, t, !1)
                } else o || (a.reading = !1, U(e, a));
                return !a.ended && (a.length < a.highWaterMark || 0 === a.length)
            }

            function L(e, t, n, o) {
                t.flowing && 0 === t.length && !t.sync ? (t.awaitDrain = 0, e.emit("data", n)) : (t.length += t.objectMode ? 1 : n.length, o ? t.buffer.unshift(n) : t.buffer.push(n), t.needReadable && N(e)), U(e, t)
            }

            function k(e, t) {
                var n, o;
                return o = t, s.isBuffer(o) || o instanceof l || "string" == typeof t || void 0 === t || e.objectMode || (n = new _("chunk", ["string", "Buffer", "Uint8Array"], t)), n
            }
            Object.defineProperty(T.prototype, "destroyed", {
                enumerable: !1,
                get: function() {
                    return void 0 !== this._readableState && this._readableState.destroyed
                },
                set: function(e) {
                    this._readableState && (this._readableState.destroyed = e)
                }
            }), T.prototype.destroy = g.destroy, T.prototype._undestroy = g.undestroy, T.prototype._destroy = function(e, t) {
                t(e)
            }, T.prototype.push = function(e, t) {
                var n, o = this._readableState;
                return o.objectMode ? n = !0 : "string" == typeof e && ((t = t || o.defaultEncoding) !== o.encoding && (e = s.from(e, t), t = ""), n = !0), R(this, e, t, !1, n)
            }, T.prototype.unshift = function(e) {
                return R(this, e, null, !0, !1)
            }, T.prototype.isPaused = function() {
                return !1 === this._readableState.flowing
            }, T.prototype.setEncoding = function(t) {
                d || (d = e("string_decoder/").StringDecoder);
                var n = new d(t);
                this._readableState.decoder = n, this._readableState.encoding = this._readableState.decoder.encoding;
                for (var o = this._readableState.buffer.head, r = ""; null !== o;) r += n.write(o.data), o = o.next;
                return this._readableState.buffer.clear(), "" !== r && this._readableState.buffer.push(r), this._readableState.length = r.length, this
            };
            var O = 1073741824;

            function M(e) {
                return e >= O ? e = O : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e
            }

            function D(e, t) {
                return e <= 0 || 0 === t.length && t.ended ? 0 : t.objectMode ? 1 : e != e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = M(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0))
            }

            function B(e, t) {
                if (u("onEofChunk"), !t.ended) {
                    if (t.decoder) {
                        var n = t.decoder.end();
                        n && n.length && (t.buffer.push(n), t.length += t.objectMode ? 1 : n.length)
                    }
                    t.ended = !0, t.sync ? N(e) : (t.needReadable = !1, t.emittedReadable || (t.emittedReadable = !0, E(e)))
                }
            }

            function N(e) {
                var t = e._readableState;
                u("emitReadable", t.needReadable, t.emittedReadable), t.needReadable = !1, t.emittedReadable || (u("emitReadable", t.flowing), t.emittedReadable = !0, n.nextTick(E, e))
            }

            function E(e) {
                var t = e._readableState;
                u("emitReadable_", t.destroyed, t.length, t.ended), t.destroyed || !t.length && !t.ended || (e.emit("readable"), t.emittedReadable = !1), t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark, z(e)
            }

            function U(e, t) {
                t.readingMore || (t.readingMore = !0, n.nextTick(G, e, t))
            }

            function G(e, t) {
                for (; !t.reading && !t.ended && (t.length < t.highWaterMark || t.flowing && 0 === t.length);) {
                    var n = t.length;
                    if (u("maybeReadMore read 0"), e.read(0), n === t.length) break
                }
                t.readingMore = !1
            }

            function x(e) {
                return function() {
                    var t = e._readableState;
                    u("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, 0 === t.awaitDrain && i(e, "data") && (t.flowing = !0, z(e))
                }
            }

            function H(e) {
                var t = e._readableState;
                t.readableListening = e.listenerCount("readable") > 0, t.resumeScheduled && !t.paused ? t.flowing = !0 : e.listenerCount("data") > 0 && e.resume()
            }

            function F(e) {
                u("readable nexttick read 0"), e.read(0)
            }

            function j(e, t) {
                t.resumeScheduled || (t.resumeScheduled = !0, n.nextTick(W, e, t))
            }

            function W(e, t) {
                u("resume", t.reading), t.reading || e.read(0), t.resumeScheduled = !1, e.emit("resume"), z(e), t.flowing && !t.reading && e.read(0)
            }

            function z(e) {
                var t = e._readableState;
                for (u("flow", t.flowing); t.flowing && null !== e.read(););
            }

            function q(e, t) {
                return 0 === t.length ? null : (t.objectMode ? n = t.buffer.shift() : !e || e >= t.length ? (n = t.decoder ? t.buffer.join("") : 1 === t.buffer.length ? t.buffer.first() : t.buffer.concat(t.length), t.buffer.clear()) : n = t.buffer.consume(e, t.decoder), n);
                var n
            }

            function V(e) {
                var t = e._readableState;
                u("endReadable", t.endEmitted), t.endEmitted || (t.ended = !0, n.nextTick(Z, t, e))
            }

            function Z(e, t) {
                if (u("endReadableNT", e.endEmitted, e.length), !e.endEmitted && 0 === e.length && (e.endEmitted = !0, t.readable = !1, t.emit("end"), e.autoDestroy)) {
                    var n = t._writableState;
                    (!n || n.autoDestroy && n.finished) && t.destroy()
                }
            }

            function K(e, t) {
                for (var n = 0, o = e.length; n < o; n++)
                    if (e[n] === t) return n;
                return -1
            }
            T.prototype.read = function(e) {
                u("read", e), e = parseInt(e, 10);
                var t = this._readableState,
                    n = e;
                if (0 !== e && (t.emittedReadable = !1), 0 === e && t.needReadable && ((0 !== t.highWaterMark ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) return u("read: emitReadable", t.length, t.ended), 0 === t.length && t.ended ? V(this) : N(this), null;
                if (0 === (e = D(e, t)) && t.ended) return 0 === t.length && V(this), null;
                var o, r = t.needReadable;
                return u("need readable", r), (0 === t.length || t.length - e < t.highWaterMark) && u("length less than watermark", r = !0), t.ended || t.reading ? u("reading or ended", r = !1) : r && (u("do read"), t.reading = !0, t.sync = !0, 0 === t.length && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = D(n, t))), null === (o = e > 0 ? q(e, t) : null) ? (t.needReadable = t.length <= t.highWaterMark, e = 0) : (t.length -= e, t.awaitDrain = 0), 0 === t.length && (t.ended || (t.needReadable = !0), n !== e && t.ended && V(this)), null !== o && this.emit("data", o), o
            }, T.prototype._read = function() {
                S(this, new v("_read()"))
            }, T.prototype.pipe = function(e, t) {
                var o = this,
                    r = this._readableState;
                switch (r.pipesCount) {
                    case 0:
                        r.pipes = e;
                        break;
                    case 1:
                        r.pipes = [r.pipes, e];
                        break;
                    default:
                        r.pipes.push(e)
                }
                r.pipesCount += 1, u("pipe count=%d opts=%j", r.pipesCount, t);
                var a = t && !1 === t.end || e === n.stdout || e === n.stderr ? g : l;

                function s(t, n) {
                    u("onunpipe"), t === o && n && !1 === n.hasUnpiped && (n.hasUnpiped = !0, u("cleanup"), e.removeListener("close", f), e.removeListener("finish", y), e.removeListener("drain", c), e.removeListener("error", h), e.removeListener("unpipe", s), o.removeListener("end", l), o.removeListener("end", g), o.removeListener("data", d), p = !0, !r.awaitDrain || e._writableState && !e._writableState.needDrain || c())
                }

                function l() {
                    u("onend"), e.end()
                }
                r.endEmitted ? n.nextTick(a) : o.once("end", a), e.on("unpipe", s);
                var c = x(o);
                e.on("drain", c);
                var p = !1;

                function d(t) {
                    u("ondata");
                    var n = e.write(t);
                    u("dest.write", n), !1 === n && ((1 === r.pipesCount && r.pipes === e || r.pipesCount > 1 && -1 !== K(r.pipes, e)) && !p && (u("false write response, pause", r.awaitDrain), r.awaitDrain++), o.pause())
                }

                function h(t) {
                    u("onerror", t), g(), e.removeListener("error", h), 0 === i(e, "error") && S(e, t)
                }

                function f() {
                    e.removeListener("finish", y), g()
                }

                function y() {
                    u("onfinish"), e.removeListener("close", f), g()
                }

                function g() {
                    u("unpipe"), o.unpipe(e)
                }
                return o.on("data", d), P(e, "error", h), e.once("close", f), e.once("finish", y), e.emit("pipe", o), r.flowing || (u("pipe resume"), o.resume()), e
            }, T.prototype.unpipe = function(e) {
                var t = this._readableState,
                    n = {
                        hasUnpiped: !1
                    };
                if (0 === t.pipesCount) return this;
                if (1 === t.pipesCount) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, n), this);
                if (!e) {
                    var o = t.pipes,
                        r = t.pipesCount;
                    t.pipes = null, t.pipesCount = 0, t.flowing = !1;
                    for (var i = 0; i < r; i++) o[i].emit("unpipe", this, {
                        hasUnpiped: !1
                    });
                    return this
                }
                var a = K(t.pipes, e);
                return -1 === a ? this : (t.pipes.splice(a, 1), t.pipesCount -= 1, 1 === t.pipesCount && (t.pipes = t.pipes[0]), e.emit("unpipe", this, n), this)
            }, T.prototype.on = function(e, t) {
                var o = a.prototype.on.call(this, e, t),
                    r = this._readableState;
                return "data" === e ? (r.readableListening = this.listenerCount("readable") > 0, !1 !== r.flowing && this.resume()) : "readable" === e && (r.endEmitted || r.readableListening || (r.readableListening = r.needReadable = !0, r.flowing = !1, r.emittedReadable = !1, u("on readable", r.length, r.reading), r.length ? N(this) : r.reading || n.nextTick(F, this))), o
            }, T.prototype.addListener = T.prototype.on, T.prototype.removeListener = function(e, t) {
                var o = a.prototype.removeListener.call(this, e, t);
                return "readable" === e && n.nextTick(H, this), o
            }, T.prototype.removeAllListeners = function(e) {
                var t = a.prototype.removeAllListeners.apply(this, arguments);
                return "readable" !== e && void 0 !== e || n.nextTick(H, this), t
            }, T.prototype.resume = function() {
                var e = this._readableState;
                return e.flowing || (u("resume"), e.flowing = !e.readableListening, j(this, e)), e.paused = !1, this
            }, T.prototype.pause = function() {
                return u("call pause flowing=%j", this._readableState.flowing), !1 !== this._readableState.flowing && (u("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this
            }, T.prototype.wrap = function(e) {
                var t = this,
                    n = this._readableState,
                    o = !1;
                for (var r in e.on("end", function() {
                        if (u("wrapped end"), n.decoder && !n.ended) {
                            var e = n.decoder.end();
                            e && e.length && t.push(e)
                        }
                        t.push(null)
                    }), e.on("data", function(r) {
                        u("wrapped data"), n.decoder && (r = n.decoder.write(r)), n.objectMode && null == r || (n.objectMode || r && r.length) && (t.push(r) || (o = !0, e.pause()))
                    }), e) void 0 === this[r] && "function" == typeof e[r] && (this[r] = function(t) {
                    return function() {
                        return e[t].apply(e, arguments)
                    }
                }(r));
                for (var i = 0; i < w.length; i++) e.on(w[i], this.emit.bind(this, w[i]));
                return this._read = function(t) {
                    u("wrapped _read", t), o && (o = !1, e.resume())
                }, this
            }, "function" == typeof Symbol && (T.prototype[Symbol.asyncIterator] = function() {
                return void 0 === h && (h = e("./internal/streams/async_iterator")), h(this)
            }), Object.defineProperty(T.prototype, "readableHighWaterMark", {
                enumerable: !1,
                get: function() {
                    return this._readableState.highWaterMark
                }
            }), Object.defineProperty(T.prototype, "readableBuffer", {
                enumerable: !1,
                get: function() {
                    return this._readableState && this._readableState.buffer
                }
            }), Object.defineProperty(T.prototype, "readableFlowing", {
                enumerable: !1,
                get: function() {
                    return this._readableState.flowing
                },
                set: function(e) {
                    this._readableState && (this._readableState.flowing = e)
                }
            }), T._fromList = q, Object.defineProperty(T.prototype, "readableLength", {
                enumerable: !1,
                get: function() {
                    return this._readableState.length
                }
            }), "function" == typeof Symbol && (T.from = function(t, n) {
                return void 0 === f && (f = e("./internal/streams/from")), f(T, t, n)
            })
        }).call(this, e("_process"), "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {
        "../errors": 47,
        "./_stream_duplex": 48,
        "./internal/streams/async_iterator": 53,
        "./internal/streams/buffer_list": 54,
        "./internal/streams/destroy": 55,
        "./internal/streams/from": 57,
        "./internal/streams/state": 59,
        "./internal/streams/stream": 60,
        _process: 157,
        buffer: 65,
        events: 104,
        inherits: 138,
        "string_decoder/": 63,
        util: 19
    }],
    51: [function(e, t) {
        "use strict";
        t.exports = c;
        var n = e("../errors").codes,
            o = n.ERR_METHOD_NOT_IMPLEMENTED,
            r = n.ERR_MULTIPLE_CALLBACK,
            i = n.ERR_TRANSFORM_ALREADY_TRANSFORMING,
            a = n.ERR_TRANSFORM_WITH_LENGTH_0,
            s = e("./_stream_duplex");

        function l(e, t) {
            var n = this._transformState;
            n.transforming = !1;
            var o = n.writecb;
            if (null === o) return this.emit("error", new r);
            n.writechunk = null, n.writecb = null, null != t && this.push(t), o(e);
            var i = this._readableState;
            i.reading = !1, (i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark)
        }

        function c(e) {
            if (!(this instanceof c)) return new c(e);
            s.call(this, e), this._transformState = {
                afterTransform: l.bind(this),
                needTransform: !1,
                transforming: !1,
                writecb: null,
                writechunk: null,
                writeencoding: null
            }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && ("function" == typeof e.transform && (this._transform = e.transform), "function" == typeof e.flush && (this._flush = e.flush)), this.on("prefinish", u)
        }

        function u() {
            var e = this;
            "function" != typeof this._flush || this._readableState.destroyed ? p(this, null, null) : this._flush(function(t, n) {
                p(e, t, n)
            })
        }

        function p(e, t, n) {
            if (t) return e.emit("error", t);
            if (null != n && e.push(n), e._writableState.length) throw new a;
            if (e._transformState.transforming) throw new i;
            return e.push(null)
        }
        e("inherits")(c, s), c.prototype.push = function(e, t) {
            return this._transformState.needTransform = !1, s.prototype.push.call(this, e, t)
        }, c.prototype._transform = function(e, t, n) {
            n(new o("_transform()"))
        }, c.prototype._write = function(e, t, n) {
            var o = this._transformState;
            if (o.writecb = n, o.writechunk = e, o.writeencoding = t, !o.transforming) {
                var r = this._readableState;
                (o.needTransform || r.needReadable || r.length < r.highWaterMark) && this._read(r.highWaterMark)
            }
        }, c.prototype._read = function() {
            var e = this._transformState;
            null === e.writechunk || e.transforming ? e.needTransform = !0 : (e.transforming = !0, this._transform(e.writechunk, e.writeencoding, e.afterTransform))
        }, c.prototype._destroy = function(e, t) {
            s.prototype._destroy.call(this, e, function(e) {
                t(e)
            })
        }
    }, {
        "../errors": 47,
        "./_stream_duplex": 48,
        inherits: 138
    }],
    52: [function(e, t) {
        (function(n, o) {
            "use strict";

            function r(e) {
                var t = this;
                this.next = null, this.entry = null, this.finish = function() {
                    W(t, e)
                }
            }
            var i;
            t.exports = A, A.WritableState = P;
            var a = {
                    deprecate: e("util-deprecate")
                },
                s = e("./internal/streams/stream"),
                l = e("buffer").Buffer,
                c = o.Uint8Array || function() {};

            function u(e) {
                return l.from(e)
            }
            var p, d = e("./internal/streams/destroy"),
                h = e("./internal/streams/state").getHighWaterMark,
                f = e("../errors").codes,
                y = f.ERR_INVALID_ARG_TYPE,
                g = f.ERR_METHOD_NOT_IMPLEMENTED,
                m = f.ERR_MULTIPLE_CALLBACK,
                I = f.ERR_STREAM_CANNOT_PIPE,
                _ = f.ERR_STREAM_DESTROYED,
                C = f.ERR_STREAM_NULL_VALUES,
                v = f.ERR_STREAM_WRITE_AFTER_END,
                b = f.ERR_UNKNOWN_ENCODING,
                S = d.errorOrDestroy;

            function w() {}

            function P(t, n, o) {
                i = i || e("./_stream_duplex"), t = t || {}, "boolean" != typeof o && (o = n instanceof i), this.objectMode = !!t.objectMode, o && (this.objectMode = this.objectMode || !!t.writableObjectMode), this.highWaterMark = h(this, t, "writableHighWaterMark", o), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
                var a = !1 === t.decodeStrings;
                this.decodeStrings = !a, this.defaultEncoding = t.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(e) {
                    B(n, e)
                }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = !1 !== t.emitClose, this.autoDestroy = !!t.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new r(this)
            }

            function A(t) {
                var n = this instanceof(i = i || e("./_stream_duplex"));
                if (!n && !p.call(A, this)) return new A(t);
                this._writableState = new P(t, this, n), this.writable = !0, t && ("function" == typeof t.write && (this._write = t.write), "function" == typeof t.writev && (this._writev = t.writev), "function" == typeof t.destroy && (this._destroy = t.destroy), "function" == typeof t.final && (this._final = t.final)), s.call(this)
            }

            function T(e, t) {
                var o = new v;
                S(e, o), n.nextTick(t, o)
            }

            function R(e, t, o, r) {
                var i;
                return null === o ? i = new C : "string" == typeof o || t.objectMode || (i = new y("chunk", ["string", "Buffer"], o)), !i || (S(e, i), n.nextTick(r, i), !1)
            }

            function L(e, t, n) {
                return e.objectMode || !1 === e.decodeStrings || "string" != typeof t || (t = l.from(t, n)), t
            }

            function k(e, t, n, o, r, i) {
                if (!n) {
                    var a = L(t, o, r);
                    o !== a && (n = !0, r = "buffer", o = a)
                }
                var s = t.objectMode ? 1 : o.length;
                t.length += s;
                var l = t.length < t.highWaterMark;
                if (l || (t.needDrain = !0), t.writing || t.corked) {
                    var c = t.lastBufferedRequest;
                    t.lastBufferedRequest = {
                        chunk: o,
                        encoding: r,
                        isBuf: n,
                        callback: i,
                        next: null
                    }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1
                } else O(e, t, !1, s, o, r, i);
                return l
            }

            function O(e, t, n, o, r, i, a) {
                t.writelen = o, t.writecb = a, t.writing = !0, t.sync = !0, t.destroyed ? t.onwrite(new _("write")) : n ? e._writev(r, t.onwrite) : e._write(r, i, t.onwrite), t.sync = !1
            }

            function M(e, t, o, r, i) {
                --t.pendingcb, o ? (n.nextTick(i, r), n.nextTick(F, e, t), e._writableState.errorEmitted = !0, S(e, r)) : (i(r), e._writableState.errorEmitted = !0, S(e, r), F(e, t))
            }

            function D(e) {
                e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0
            }

            function B(e, t) {
                var o = e._writableState,
                    r = o.sync,
                    i = o.writecb;
                if ("function" != typeof i) throw new m;
                if (D(o), t) M(e, o, r, t, i);
                else {
                    var a = G(o) || e.destroyed;
                    a || o.corked || o.bufferProcessing || !o.bufferedRequest || U(e, o), r ? n.nextTick(N, e, o, a, i) : N(e, o, a, i)
                }
            }

            function N(e, t, n, o) {
                n || E(e, t), t.pendingcb--, o(), F(e, t)
            }

            function E(e, t) {
                0 === t.length && t.needDrain && (t.needDrain = !1, e.emit("drain"))
            }

            function U(e, t) {
                t.bufferProcessing = !0;
                var n = t.bufferedRequest;
                if (e._writev && n && n.next) {
                    var o = t.bufferedRequestCount,
                        i = new Array(o),
                        a = t.corkedRequestsFree;
                    a.entry = n;
                    for (var s = 0, l = !0; n;) i[s] = n, n.isBuf || (l = !1), n = n.next, s += 1;
                    i.allBuffers = l, O(e, t, !0, t.length, i, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new r(t), t.bufferedRequestCount = 0
                } else {
                    for (; n;) {
                        var c = n.chunk,
                            u = n.encoding,
                            p = n.callback;
                        if (O(e, t, !1, t.objectMode ? 1 : c.length, c, u, p), n = n.next, t.bufferedRequestCount--, t.writing) break
                    }
                    null === n && (t.lastBufferedRequest = null)
                }
                t.bufferedRequest = n, t.bufferProcessing = !1
            }

            function G(e) {
                return e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing
            }

            function x(e, t) {
                e._final(function(n) {
                    t.pendingcb--, n && S(e, n), t.prefinished = !0, e.emit("prefinish"), F(e, t)
                })
            }

            function H(e, t) {
                t.prefinished || t.finalCalled || ("function" != typeof e._final || t.destroyed ? (t.prefinished = !0, e.emit("prefinish")) : (t.pendingcb++, t.finalCalled = !0, n.nextTick(x, e, t)))
            }

            function F(e, t) {
                var n = G(t);
                if (n && (H(e, t), 0 === t.pendingcb && (t.finished = !0, e.emit("finish"), t.autoDestroy))) {
                    var o = e._readableState;
                    (!o || o.autoDestroy && o.endEmitted) && e.destroy()
                }
                return n
            }

            function j(e, t, o) {
                t.ending = !0, F(e, t), o && (t.finished ? n.nextTick(o) : e.once("finish", o)), t.ended = !0, e.writable = !1
            }

            function W(e, t, n) {
                var o = e.entry;
                for (e.entry = null; o;) {
                    var r = o.callback;
                    t.pendingcb--, r(n), o = o.next
                }
                t.corkedRequestsFree.next = e
            }
            e("inherits")(A, s), P.prototype.getBuffer = function() {
                    for (var e = this.bufferedRequest, t = []; e;) t.push(e), e = e.next;
                    return t
                },
                function() {
                    try {
                        Object.defineProperty(P.prototype, "buffer", {
                            get: a.deprecate(function() {
                                return this.getBuffer()
                            }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
                        })
                    } catch (e) {}
                }(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (p = Function.prototype[Symbol.hasInstance], Object.defineProperty(A, Symbol.hasInstance, {
                    value: function(e) {
                        return !!p.call(this, e) || this === A && e && e._writableState instanceof P
                    }
                })) : p = function(e) {
                    return e instanceof this
                }, A.prototype.pipe = function() {
                    S(this, new I)
                }, A.prototype.write = function(e, t, n) {
                    var o, r = this._writableState,
                        i = !1,
                        a = !r.objectMode && (o = e, l.isBuffer(o) || o instanceof c);
                    return a && !l.isBuffer(e) && (e = u(e)), "function" == typeof t && (n = t, t = null), a ? t = "buffer" : t || (t = r.defaultEncoding), "function" != typeof n && (n = w), r.ending ? T(this, n) : (a || R(this, r, e, n)) && (r.pendingcb++, i = k(this, r, a, e, t, n)), i
                }, A.prototype.cork = function() {
                    this._writableState.corked++
                }, A.prototype.uncork = function() {
                    var e = this._writableState;
                    e.corked && (e.corked--, e.writing || e.corked || e.bufferProcessing || !e.bufferedRequest || U(this, e))
                }, A.prototype.setDefaultEncoding = function(e) {
                    if ("string" == typeof e && (e = e.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()) > -1)) throw new b(e);
                    return this._writableState.defaultEncoding = e, this
                }, Object.defineProperty(A.prototype, "writableBuffer", {
                    enumerable: !1,
                    get: function() {
                        return this._writableState && this._writableState.getBuffer()
                    }
                }), Object.defineProperty(A.prototype, "writableHighWaterMark", {
                    enumerable: !1,
                    get: function() {
                        return this._writableState.highWaterMark
                    }
                }), A.prototype._write = function(e, t, n) {
                    n(new g("_write()"))
                }, A.prototype._writev = null, A.prototype.end = function(e, t, n) {
                    var o = this._writableState;
                    return "function" == typeof e ? (n = e, e = null, t = null) : "function" == typeof t && (n = t, t = null), null != e && this.write(e, t), o.corked && (o.corked = 1, this.uncork()), o.ending || j(this, o, n), this
                }, Object.defineProperty(A.prototype, "writableLength", {
                    enumerable: !1,
                    get: function() {
                        return this._writableState.length
                    }
                }), Object.defineProperty(A.prototype, "destroyed", {
                    enumerable: !1,
                    get: function() {
                        return void 0 !== this._writableState && this._writableState.destroyed
                    },
                    set: function(e) {
                        this._writableState && (this._writableState.destroyed = e)
                    }
                }), A.prototype.destroy = d.destroy, A.prototype._undestroy = d.undestroy, A.prototype._destroy = function(e, t) {
                    t(e)
                }
        }).call(this, e("_process"), "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {
        "../errors": 47,
        "./_stream_duplex": 48,
        "./internal/streams/destroy": 55,
        "./internal/streams/state": 59,
        "./internal/streams/stream": 60,
        _process: 157,
        buffer: 65,
        inherits: 138,
        "util-deprecate": 195
    }],
    53: [function(e, t) {
        (function(n) {
            "use strict";
            var o;

            function r(e, t, n) {
                return t in e ? Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = n, e
            }
            var i = e("./end-of-stream"),
                a = Symbol("lastResolve"),
                s = Symbol("lastReject"),
                l = Symbol("error"),
                c = Symbol("ended"),
                u = Symbol("lastPromise"),
                p = Symbol("handlePromise"),
                d = Symbol("stream");

            function h(e, t) {
                return {
                    value: e,
                    done: t
                }
            }

            function f(e) {
                var t = e[a];
                if (null !== t) {
                    var n = e[d].read();
                    null !== n && (e[u] = null, e[a] = null, e[s] = null, t(h(n, !1)))
                }
            }

            function y(e) {
                n.nextTick(f, e)
            }

            function g(e, t) {
                return function(n, o) {
                    e.then(function() {
                        t[c] ? n(h(void 0, !0)) : t[p](n, o)
                    }, o)
                }
            }
            var m = Object.getPrototypeOf(function() {}),
                I = Object.setPrototypeOf((r(o = {
                    get stream() {
                        return this[d]
                    },
                    next: function() {
                        var e = this,
                            t = this[l];
                        if (null !== t) return Promise.reject(t);
                        if (this[c]) return Promise.resolve(h(void 0, !0));
                        if (this[d].destroyed) return new Promise(function(t, o) {
                            n.nextTick(function() {
                                e[l] ? o(e[l]) : t(h(void 0, !0))
                            })
                        });
                        var o, r = this[u];
                        if (r) o = new Promise(g(r, this));
                        else {
                            var i = this[d].read();
                            if (null !== i) return Promise.resolve(h(i, !1));
                            o = new Promise(this[p])
                        }
                        return this[u] = o, o
                    }
                }, Symbol.asyncIterator, function() {
                    return this
                }), r(o, "return", function() {
                    var e = this;
                    return new Promise(function(t, n) {
                        e[d].destroy(null, function(e) {
                            e ? n(e) : t(h(void 0, !0))
                        })
                    })
                }), o), m);
            t.exports = function(e) {
                var t, n = Object.create(I, (r(t = {}, d, {
                    value: e,
                    writable: !0
                }), r(t, a, {
                    value: null,
                    writable: !0
                }), r(t, s, {
                    value: null,
                    writable: !0
                }), r(t, l, {
                    value: null,
                    writable: !0
                }), r(t, c, {
                    value: e._readableState.endEmitted,
                    writable: !0
                }), r(t, p, {
                    value: function(e, t) {
                        var o = n[d].read();
                        o ? (n[u] = null, n[a] = null, n[s] = null, e(h(o, !1))) : (n[a] = e, n[s] = t)
                    },
                    writable: !0
                }), t));
                return n[u] = null, i(e, function(e) {
                    if (e && "ERR_STREAM_PREMATURE_CLOSE" !== e.code) {
                        var t = n[s];
                        return null !== t && (n[u] = null, n[a] = null, n[s] = null, t(e)), void(n[l] = e)
                    }
                    var o = n[a];
                    null !== o && (n[u] = null, n[a] = null, n[s] = null, o(h(void 0, !0))), n[c] = !0
                }), e.on("readable", y.bind(null, n)), n
            }
        }).call(this, e("_process"))
    }, {
        "./end-of-stream": 56,
        _process: 157
    }],
    54: [function(e, t) {
        "use strict";

        function n(e, t) {
            var n = Object.keys(e);
            if (Object.getOwnPropertySymbols) {
                var o = Object.getOwnPropertySymbols(e);
                t && (o = o.filter(function(t) {
                    return Object.getOwnPropertyDescriptor(e, t).enumerable
                })), n.push.apply(n, o)
            }
            return n
        }

        function o(e) {
            for (var t = 1; t < arguments.length; t++) {
                var o = null != arguments[t] ? arguments[t] : {};
                t % 2 ? n(Object(o), !0).forEach(function(t) {
                    r(e, t, o[t])
                }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : n(Object(o)).forEach(function(t) {
                    Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(o, t))
                })
            }
            return e
        }

        function r(e, t, n) {
            return t in e ? Object.defineProperty(e, t, {
                value: n,
                enumerable: !0,
                configurable: !0,
                writable: !0
            }) : e[t] = n, e
        }

        function i(e, t) {
            if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
        }

        function a(e, t) {
            for (var n = 0; n < t.length; n++) {
                var o = t[n];
                o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o)
            }
        }
        var s = e("buffer").Buffer,
            l = e("util").inspect,
            c = l && l.custom || "inspect";
        t.exports = function() {
            function e() {
                i(this, e), this.head = null, this.tail = null, this.length = 0
            }
            var t, n;
            return t = e, (n = [{
                key: "push",
                value: function(e) {
                    var t = {
                        data: e,
                        next: null
                    };
                    this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length
                }
            }, {
                key: "unshift",
                value: function(e) {
                    var t = {
                        data: e,
                        next: this.head
                    };
                    0 === this.length && (this.tail = t), this.head = t, ++this.length
                }
            }, {
                key: "shift",
                value: function() {
                    if (0 !== this.length) {
                        var e = this.head.data;
                        return 1 === this.length ? this.head = this.tail = null : this.head = this.head.next, --this.length, e
                    }
                }
            }, {
                key: "clear",
                value: function() {
                    this.head = this.tail = null, this.length = 0
                }
            }, {
                key: "join",
                value: function(e) {
                    if (0 === this.length) return "";
                    for (var t = this.head, n = "" + t.data; t = t.next;) n += e + t.data;
                    return n
                }
            }, {
                key: "concat",
                value: function(e) {
                    if (0 === this.length) return s.alloc(0);
                    for (var t, n, o, r = s.allocUnsafe(e >>> 0), i = this.head, a = 0; i;) t = i.data, n = r, o = a, s.prototype.copy.call(t, n, o), a += i.data.length, i = i.next;
                    return r
                }
            }, {
                key: "consume",
                value: function(e, t) {
                    var n;
                    return e < this.head.data.length ? (n = this.head.data.slice(0, e), this.head.data = this.head.data.slice(e)) : n = e === this.head.data.length ? this.shift() : t ? this._getString(e) : this._getBuffer(e), n
                }
            }, {
                key: "first",
                value: function() {
                    return this.head.data
                }
            }, {
                key: "_getString",
                value: function(e) {
                    var t = this.head,
                        n = 1,
                        o = t.data;
                    for (e -= o.length; t = t.next;) {
                        var r = t.data,
                            i = e > r.length ? r.length : e;
                        if (i === r.length ? o += r : o += r.slice(0, e), 0 == (e -= i)) {
                            i === r.length ? (++n, t.next ? this.head = t.next : this.head = this.tail = null) : (this.head = t, t.data = r.slice(i));
                            break
                        }++n
                    }
                    return this.length -= n, o
                }
            }, {
                key: "_getBuffer",
                value: function(e) {
                    var t = s.allocUnsafe(e),
                        n = this.head,
                        o = 1;
                    for (n.data.copy(t), e -= n.data.length; n = n.next;) {
                        var r = n.data,
                            i = e > r.length ? r.length : e;
                        if (r.copy(t, t.length - e, 0, i), 0 == (e -= i)) {
                            i === r.length ? (++o, n.next ? this.head = n.next : this.head = this.tail = null) : (this.head = n, n.data = r.slice(i));
                            break
                        }++o
                    }
                    return this.length -= o, t
                }
            }, {
                key: c,
                value: function(e, t) {
                    return l(this, o({}, t, {
                        depth: 0,
                        customInspect: !1
                    }))
                }
            }]) && a(t.prototype, n), e
        }()
    }, {
        buffer: 65,
        util: 19
    }],
    55: [function(e, t) {
        (function(e) {
            "use strict";

            function n(e, t) {
                r(e, t), o(e)
            }

            function o(e) {
                e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close")
            }

            function r(e, t) {
                e.emit("error", t)
            }
            t.exports = {
                destroy: function(t, i) {
                    var a = this,
                        s = this._readableState && this._readableState.destroyed,
                        l = this._writableState && this._writableState.destroyed;
                    return s || l ? (i ? i(t) : t && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, e.nextTick(r, this, t)) : e.nextTick(r, this, t)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(t || null, function(t) {
                        !i && t ? a._writableState ? a._writableState.errorEmitted ? e.nextTick(o, a) : (a._writableState.errorEmitted = !0, e.nextTick(n, a, t)) : e.nextTick(n, a, t) : i ? (e.nextTick(o, a), i(t)) : e.nextTick(o, a)
                    }), this)
                },
                undestroy: function() {
                    this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1)
                },
                errorOrDestroy: function(e, t) {
                    var n = e._readableState,
                        o = e._writableState;
                    n && n.autoDestroy || o && o.autoDestroy ? e.destroy(t) : e.emit("error", t)
                }
            }
        }).call(this, e("_process"))
    }, {
        _process: 157
    }],
    56: [function(e, t) {
        "use strict";
        var n = e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;

        function o(e) {
            var t = !1;
            return function() {
                if (!t) {
                    t = !0;
                    for (var n = arguments.length, o = new Array(n), r = 0; r < n; r++) o[r] = arguments[r];
                    e.apply(this, o)
                }
            }
        }

        function r() {}

        function i(e) {
            return e.setHeader && "function" == typeof e.abort
        }
        t.exports = function e(t, a, s) {
            if ("function" == typeof a) return e(t, null, a);
            a || (a = {}), s = o(s || r);
            var l = a.readable || !1 !== a.readable && t.readable,
                c = a.writable || !1 !== a.writable && t.writable,
                u = function() {
                    t.writable || d()
                },
                p = t._writableState && t._writableState.finished,
                d = function() {
                    c = !1, p = !0, l || s.call(t)
                },
                h = t._readableState && t._readableState.endEmitted,
                f = function() {
                    l = !1, h = !0, c || s.call(t)
                },
                y = function(e) {
                    s.call(t, e)
                },
                g = function() {
                    var e;
                    return l && !h ? (t._readableState && t._readableState.ended || (e = new n), s.call(t, e)) : c && !p ? (t._writableState && t._writableState.ended || (e = new n), s.call(t, e)) : void 0
                },
                m = function() {
                    t.req.on("finish", d)
                };
            return i(t) ? (t.on("complete", d), t.on("abort", g), t.req ? m() : t.on("request", m)) : c && !t._writableState && (t.on("end", u), t.on("close", u)), t.on("end", f), t.on("finish", d), !1 !== a.error && t.on("error", y), t.on("close", g),
                function() {
                    t.removeListener("complete", d), t.removeListener("abort", g), t.removeListener("request", m), t.req && t.req.removeListener("finish", d), t.removeListener("end", u), t.removeListener("close", u), t.removeListener("finish", d), t.removeListener("end", f), t.removeListener("error", y), t.removeListener("close", g)
                }
        }
    }, {
        "../../../errors": 47
    }],
    57: [function(e, t) {
        t.exports = function() {
            throw new Error("Readable.from is not available in the browser")
        }
    }, {}],
    58: [function(e, t) {
        "use strict";
        var n;

        function o(e) {
            var t = !1;
            return function() {
                t || (t = !0, e.apply(void 0, arguments))
            }
        }
        var r = e("../../../errors").codes,
            i = r.ERR_MISSING_ARGS,
            a = r.ERR_STREAM_DESTROYED;

        function s(e) {
            if (e) throw e
        }

        function l(e) {
            return e.setHeader && "function" == typeof e.abort
        }

        function c(t, r, i, s) {
            s = o(s);
            var c = !1;
            t.on("close", function() {
                c = !0
            }), void 0 === n && (n = e("./end-of-stream")), n(t, {
                readable: r,
                writable: i
            }, function(e) {
                if (e) return s(e);
                c = !0, s()
            });
            var u = !1;
            return function(e) {
                if (!c && !u) return u = !0, l(t) ? t.abort() : "function" == typeof t.destroy ? t.destroy() : void s(e || new a("pipe"))
            }
        }

        function u(e) {
            e()
        }

        function p(e, t) {
            return e.pipe(t)
        }

        function d(e) {
            return e.length ? "function" != typeof e[e.length - 1] ? s : e.pop() : s
        }
        t.exports = function() {
            for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
            var o, r = d(t);
            if (Array.isArray(t[0]) && (t = t[0]), t.length < 2) throw new i("streams");
            var a = t.map(function(e, n) {
                var i = n < t.length - 1;
                return c(e, i, n > 0, function(e) {
                    o || (o = e), e && a.forEach(u), i || (a.forEach(u), r(o))
                })
            });
            return t.reduce(p)
        }
    }, {
        "../../../errors": 47,
        "./end-of-stream": 56
    }],
    59: [function(e, t) {
        "use strict";
        var n = e("../../../errors").codes.ERR_INVALID_OPT_VALUE;

        function o(e, t, n) {
            return null != e.highWaterMark ? e.highWaterMark : t ? e[n] : null
        }
        t.exports = {
            getHighWaterMark: function(e, t, r, i) {
                var a = o(t, i, r);
                if (null != a) {
                    if (!isFinite(a) || Math.floor(a) !== a || a < 0) throw new n(i ? r : "highWaterMark", a);
                    return Math.floor(a)
                }
                return e.objectMode ? 16 : 16384
            }
        }
    }, {
        "../../../errors": 47
    }],
    60: [function(e, t) {
        t.exports = e("events").EventEmitter
    }, {
        events: 104
    }],
    61: [function(e, t, n) {
        (n = t.exports = e("./lib/_stream_readable.js")).Stream = n, n.Readable = n, n.Writable = e("./lib/_stream_writable.js"), n.Duplex = e("./lib/_stream_duplex.js"), n.Transform = e("./lib/_stream_transform.js"), n.PassThrough = e("./lib/_stream_passthrough.js"), n.finished = e("./lib/internal/streams/end-of-stream.js"), n.pipeline = e("./lib/internal/streams/pipeline.js")
    }, {
        "./lib/_stream_duplex.js": 48,
        "./lib/_stream_passthrough.js": 49,
        "./lib/_stream_readable.js": 50,
        "./lib/_stream_transform.js": 51,
        "./lib/_stream_writable.js": 52,
        "./lib/internal/streams/end-of-stream.js": 56,
        "./lib/internal/streams/pipeline.js": 58
    }],
    62: [function(e, t, n) {
        var o = e("buffer"),
            r = o.Buffer;

        function i(e, t) {
            for (var n in e) t[n] = e[n]
        }

        function a(e, t, n) {
            return r(e, t, n)
        }
        r.from && r.alloc && r.allocUnsafe && r.allocUnsafeSlow ? t.exports = o : (i(o, n), n.Buffer = a), a.prototype = Object.create(r.prototype), i(r, a), a.from = function(e, t, n) {
            if ("number" == typeof e) throw new TypeError("Argument must not be a number");
            return r(e, t, n)
        }, a.alloc = function(e, t, n) {
            if ("number" != typeof e) throw new TypeError("Argument must be a number");
            var o = r(e);
            return void 0 !== t ? "string" == typeof n ? o.fill(t, n) : o.fill(t) : o.fill(0), o
        }, a.allocUnsafe = function(e) {
            if ("number" != typeof e) throw new TypeError("Argument must be a number");
            return r(e)
        }, a.allocUnsafeSlow = function(e) {
            if ("number" != typeof e) throw new TypeError("Argument must be a number");
            return o.SlowBuffer(e)
        }
    }, {
        buffer: 65
    }],
    63: [function(e, t, n) {
        "use strict";
        var o = e("safe-buffer").Buffer,
            r = o.isEncoding || function(e) {
                switch ((e = "" + e) && e.toLowerCase()) {
                    case "hex":
                    case "utf8":
                    case "utf-8":
                    case "ascii":
                    case "binary":
                    case "base64":
                    case "ucs2":
                    case "ucs-2":
                    case "utf16le":
                    case "utf-16le":
                    case "raw":
                        return !0;
                    default:
                        return !1
                }
            };

        function i(e) {
            if (!e) return "utf8";
            for (var t;;) switch (e) {
                case "utf8":
                case "utf-8":
                    return "utf8";
                case "ucs2":
                case "ucs-2":
                case "utf16le":
                case "utf-16le":
                    return "utf16le";
                case "latin1":
                case "binary":
                    return "latin1";
                case "base64":
                case "ascii":
                case "hex":
                    return e;
                default:
                    if (t) return;
                    e = ("" + e).toLowerCase(), t = !0
            }
        }

        function a(e) {
            var t = i(e);
            if ("string" != typeof t && (o.isEncoding === r || !r(e))) throw new Error("Unknown encoding: " + e);
            return t || e
        }

        function s(e) {
            var t;
            switch (this.encoding = a(e), this.encoding) {
                case "utf16le":
                    this.text = d, this.end = h, t = 4;
                    break;
                case "utf8":
                    this.fillLast = p, t = 4;
                    break;
                case "base64":
                    this.text = f, this.end = y, t = 3;
                    break;
                default:
                    return this.write = g, void(this.end = m)
            }
            this.lastNeed = 0, this.lastTotal = 0, this.lastChar = o.allocUnsafe(t)
        }

        function l(e) {
            return e <= 127 ? 0 : e >> 5 == 6 ? 2 : e >> 4 == 14 ? 3 : e >> 3 == 30 ? 4 : e >> 6 == 2 ? -1 : -2
        }

        function c(e, t, n) {
            var o = t.length - 1;
            if (o < n) return 0;
            var r = l(t[o]);
            return r >= 0 ? (r > 0 && (e.lastNeed = r - 1), r) : --o < n || -2 === r ? 0 : (r = l(t[o])) >= 0 ? (r > 0 && (e.lastNeed = r - 2), r) : --o < n || -2 === r ? 0 : (r = l(t[o])) >= 0 ? (r > 0 && (2 === r ? r = 0 : e.lastNeed = r - 3), r) : 0
        }

        function u(e, t) {
            if (128 != (192 & t[0])) return e.lastNeed = 0, "\ufffd";
            if (e.lastNeed > 1 && t.length > 1) {
                if (128 != (192 & t[1])) return e.lastNeed = 1, "\ufffd";
                if (e.lastNeed > 2 && t.length > 2 && 128 != (192 & t[2])) return e.lastNeed = 2, "\ufffd"
            }
        }

        function p(e) {
            var t = this.lastTotal - this.lastNeed,
                n = u(this, e);
            return void 0 !== n ? n : this.lastNeed <= e.length ? (e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (e.copy(this.lastChar, t, 0, e.length), void(this.lastNeed -= e.length))
        }

        function d(e, t) {
            if ((e.length - t) % 2 == 0) {
                var n = e.toString("utf16le", t);
                if (n) {
                    var o = n.charCodeAt(n.length - 1);
                    if (o >= 55296 && o <= 56319) return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = e[e.length - 2], this.lastChar[1] = e[e.length - 1], n.slice(0, -1)
                }
                return n
            }
            return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = e[e.length - 1], e.toString("utf16le", t, e.length - 1)
        }

        function h(e) {
            var t = e && e.length ? this.write(e) : "";
            if (this.lastNeed) {
                var n = this.lastTotal - this.lastNeed;
                return t + this.lastChar.toString("utf16le", 0, n)
            }
            return t
        }

        function f(e, t) {
            var n = (e.length - t) % 3;
            return 0 === n ? e.toString("base64", t) : (this.lastNeed = 3 - n, this.lastTotal = 3, 1 === n ? this.lastChar[0] = e[e.length - 1] : (this.lastChar[0] = e[e.length - 2], this.lastChar[1] = e[e.length - 1]), e.toString("base64", t, e.length - n))
        }

        function y(e) {
            var t = e && e.length ? this.write(e) : "";
            return this.lastNeed ? t + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t
        }

        function g(e) {
            return e.toString(this.encoding)
        }

        function m(e) {
            return e && e.length ? this.write(e) : ""
        }
        n.StringDecoder = s, s.prototype.write = function(e) {
            if (0 === e.length) return "";
            var t, n;
            if (this.lastNeed) {
                if (void 0 === (t = this.fillLast(e))) return "";
                n = this.lastNeed, this.lastNeed = 0
            } else n = 0;
            return n < e.length ? t ? t + this.text(e, n) : this.text(e, n) : t || ""
        }, s.prototype.end = function(e) {
            var t = e && e.length ? this.write(e) : "";
            return this.lastNeed ? t + "\ufffd" : t
        }, s.prototype.text = function(e, t) {
            var n = c(this, e, t);
            if (!this.lastNeed) return e.toString("utf8", t);
            this.lastTotal = n;
            var o = e.length - (n - this.lastNeed);
            return e.copy(this.lastChar, 0, o), e.toString("utf8", t, o)
        }, s.prototype.fillLast = function(e) {
            if (this.lastNeed <= e.length) return e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
            e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), this.lastNeed -= e.length
        }
    }, {
        "safe-buffer": 62
    }],
    64: [function(e, t) {
        (function(e) {
            t.exports = function(t, n) {
                for (var o = Math.min(t.length, n.length), r = new e(o), i = 0; i < o; ++i) r[i] = t[i] ^ n[i];
                return r
            }
        }).call(this, e("buffer").Buffer)
    }, {
        buffer: 65
    }],
    65: [function(e, t, n) {
        (function(t) {
            "use strict";
            var o = e("base64-js"),
                r = e("ieee754"),
                i = e("isarray");

            function a() {
                return l.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823
            }

            function s(e, t) {
                if (a() < t) throw new RangeError("Invalid typed array length");
                return l.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t)).__proto__ = l.prototype : (null === e && (e = new l(t)), e.length = t), e
            }

            function l(e, t, n) {
                if (!(l.TYPED_ARRAY_SUPPORT || this instanceof l)) return new l(e, t, n);
                if ("number" == typeof e) {
                    if ("string" == typeof t) throw new Error("If encoding is specified then the first argument must be a string");
                    return d(this, e)
                }
                return c(this, e, t, n)
            }

            function c(e, t, n, o) {
                if ("number" == typeof t) throw new TypeError('"value" argument must not be a number');
                return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ? y(e, t, n, o) : "string" == typeof t ? h(e, t, n) : g(e, t)
            }

            function u(e) {
                if ("number" != typeof e) throw new TypeError('"size" argument must be a number');
                if (e < 0) throw new RangeError('"size" argument must not be negative')
            }

            function p(e, t, n, o) {
                return u(t), t <= 0 ? s(e, t) : void 0 !== n ? "string" == typeof o ? s(e, t).fill(n, o) : s(e, t).fill(n) : s(e, t)
            }

            function d(e, t) {
                if (u(t), e = s(e, t < 0 ? 0 : 0 | m(t)), !l.TYPED_ARRAY_SUPPORT)
                    for (var n = 0; n < t; ++n) e[n] = 0;
                return e
            }

            function h(e, t, n) {
                if ("string" == typeof n && "" !== n || (n = "utf8"), !l.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding');
                var o = 0 | I(t, n),
                    r = (e = s(e, o)).write(t, n);
                return r !== o && (e = e.slice(0, r)), e
            }

            function f(e, t) {
                var n = t.length < 0 ? 0 : 0 | m(t.length);
                e = s(e, n);
                for (var o = 0; o < n; o += 1) e[o] = 255 & t[o];
                return e
            }

            function y(e, t, n, o) {
                if (t.byteLength, n < 0 || t.byteLength < n) throw new RangeError("'offset' is out of bounds");
                if (t.byteLength < n + (o || 0)) throw new RangeError("'length' is out of bounds");
                return t = void 0 === n && void 0 === o ? new Uint8Array(t) : void 0 === o ? new Uint8Array(t, n) : new Uint8Array(t, n, o), l.TYPED_ARRAY_SUPPORT ? (e = t).__proto__ = l.prototype : e = f(e, t), e
            }

            function g(e, t) {
                if (l.isBuffer(t)) {
                    var n = 0 | m(t.length);
                    return 0 === (e = s(e, n)).length ? e : (t.copy(e, 0, 0, n), e)
                }
                if (t) {
                    if ("undefined" != typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length" in t) return "number" != typeof t.length || (o = t.length) != o ? s(e, 0) : f(e, t);
                    if ("Buffer" === t.type && i(t.data)) return f(e, t.data)
                }
                var o;
                throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")
            }

            function m(e) {
                if (e >= a()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a().toString(16) + " bytes");
                return 0 | e
            }

            function I(e, t) {
                if (l.isBuffer(e)) return e.length;
                if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(e) || e instanceof ArrayBuffer)) return e.byteLength;
                "string" != typeof e && (e = "" + e);
                var n = e.length;
                if (0 === n) return 0;
                for (var o = !1;;) switch (t) {
                    case "ascii":
                    case "latin1":
                    case "binary":
                        return n;
                    case "utf8":
                    case "utf-8":
                    case void 0:
                        return Z(e).length;
                    case "ucs2":
                    case "ucs-2":
                    case "utf16le":
                    case "utf-16le":
                        return 2 * n;
                    case "hex":
                        return n >>> 1;
                    case "base64":
                        return X(e).length;
                    default:
                        if (o) return Z(e).length;
                        t = ("" + t).toLowerCase(), o = !0
                }
            }

            function _(e, t, n) {
                var o = !1;
                if ((void 0 === t || t < 0) && (t = 0), t > this.length) return "";
                if ((void 0 === n || n > this.length) && (n = this.length), n <= 0) return "";
                if ((n >>>= 0) <= (t >>>= 0)) return "";
                for (e || (e = "utf8");;) switch (e) {
                    case "hex":
                        return N(this, t, n);
                    case "utf8":
                    case "utf-8":
                        return k(this, t, n);
                    case "ascii":
                        return D(this, t, n);
                    case "latin1":
                    case "binary":
                        return B(this, t, n);
                    case "base64":
                        return L(this, t, n);
                    case "ucs2":
                    case "ucs-2":
                    case "utf16le":
                    case "utf-16le":
                        return E(this, t, n);
                    default:
                        if (o) throw new TypeError("Unknown encoding: " + e);
                        e = (e + "").toLowerCase(), o = !0
                }
            }

            function C(e, t, n) {
                var o = e[t];
                e[t] = e[n], e[n] = o
            }

            function v(e, t, n, o, r) {
                if (0 === e.length) return -1;
                if ("string" == typeof n ? (o = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = r ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
                    if (r) return -1;
                    n = e.length - 1
                } else if (n < 0) {
                    if (!r) return -1;
                    n = 0
                }
                if ("string" == typeof t && (t = l.from(t, o)), l.isBuffer(t)) return 0 === t.length ? -1 : b(e, t, n, o, r);
                if ("number" == typeof t) return t &= 255, l.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? r ? Uint8Array.prototype.indexOf.call(e, t, n) : Uint8Array.prototype.lastIndexOf.call(e, t, n) : b(e, [t], n, o, r);
                throw new TypeError("val must be string, number or Buffer")
            }

            function b(e, t, n, o, r) {
                var i, a = 1,
                    s = e.length,
                    l = t.length;
                if (void 0 !== o && ("ucs2" === (o = String(o).toLowerCase()) || "ucs-2" === o || "utf16le" === o || "utf-16le" === o)) {
                    if (e.length < 2 || t.length < 2) return -1;
                    a = 2, s /= 2, l /= 2, n /= 2
                }

                function c(e, t) {
                    return 1 === a ? e[t] : e.readUInt16BE(t * a)
                }
                if (r) {
                    var u = -1;
                    for (i = n; i < s; i++)
                        if (c(e, i) === c(t, -1 === u ? 0 : i - u)) {
                            if (-1 === u && (u = i), i - u + 1 === l) return u * a
                        } else - 1 !== u && (i -= i - u), u = -1
                } else
                    for (n + l > s && (n = s - l), i = n; i >= 0; i--) {
                        for (var p = !0, d = 0; d < l; d++)
                            if (c(e, i + d) !== c(t, d)) {
                                p = !1;
                                break
                            } if (p) return i
                    }
                return -1
            }

            function S(e, t, n, o) {
                n = Number(n) || 0;
                var r = e.length - n;
                o ? (o = Number(o)) > r && (o = r) : o = r;
                var i = t.length;
                if (i % 2 != 0) throw new TypeError("Invalid hex string");
                o > i / 2 && (o = i / 2);
                for (var a = 0; a < o; ++a) {
                    var s = parseInt(t.substr(2 * a, 2), 16);
                    if (isNaN(s)) return a;
                    e[n + a] = s
                }
                return a
            }

            function w(e, t, n, o) {
                return Q(Z(t, e.length - n), e, n, o)
            }

            function P(e, t, n, o) {
                return Q(K(t), e, n, o)
            }

            function A(e, t, n, o) {
                return P(e, t, n, o)
            }

            function T(e, t, n, o) {
                return Q(X(t), e, n, o)
            }

            function R(e, t, n, o) {
                return Q(J(t, e.length - n), e, n, o)
            }

            function L(e, t, n) {
                return 0 === t && n === e.length ? o.fromByteArray(e) : o.fromByteArray(e.slice(t, n))
            }

            function k(e, t, n) {
                n = Math.min(e.length, n);
                for (var o = [], r = t; r < n;) {
                    var i, a, s, l, c = e[r],
                        u = null,
                        p = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
                    if (r + p <= n) switch (p) {
                        case 1:
                            c < 128 && (u = c);
                            break;
                        case 2:
                            128 == (192 & (i = e[r + 1])) && (l = (31 & c) << 6 | 63 & i) > 127 && (u = l);
                            break;
                        case 3:
                            i = e[r + 1], a = e[r + 2], 128 == (192 & i) && 128 == (192 & a) && (l = (15 & c) << 12 | (63 & i) << 6 | 63 & a) > 2047 && (l < 55296 || l > 57343) && (u = l);
                            break;
                        case 4:
                            i = e[r + 1], a = e[r + 2], s = e[r + 3], 128 == (192 & i) && 128 == (192 & a) && 128 == (192 & s) && (l = (15 & c) << 18 | (63 & i) << 12 | (63 & a) << 6 | 63 & s) > 65535 && l < 1114112 && (u = l)
                    }
                    null === u ? (u = 65533, p = 1) : u > 65535 && (u -= 65536, o.push(u >>> 10 & 1023 | 55296), u = 56320 | 1023 & u), o.push(u), r += p
                }
                return M(o)
            }
            n.Buffer = l, n.SlowBuffer = function(e) {
                return +e != e && (e = 0), l.alloc(+e)
            }, n.INSPECT_MAX_BYTES = 50, l.TYPED_ARRAY_SUPPORT = void 0 !== t.TYPED_ARRAY_SUPPORT ? t.TYPED_ARRAY_SUPPORT : function() {
                try {
                    var e = new Uint8Array(1);
                    return e.__proto__ = {
                        __proto__: Uint8Array.prototype,
                        foo: function() {
                            return 42
                        }
                    }, 42 === e.foo() && "function" == typeof e.subarray && 0 === e.subarray(1, 1).byteLength
                } catch (t) {
                    return !1
                }
            }(), n.kMaxLength = a(), l.poolSize = 8192, l._augment = function(e) {
                return e.__proto__ = l.prototype, e
            }, l.from = function(e, t, n) {
                return c(null, e, t, n)
            }, l.TYPED_ARRAY_SUPPORT && (l.prototype.__proto__ = Uint8Array.prototype, l.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && l[Symbol.species] === l && Object.defineProperty(l, Symbol.species, {
                value: null,
                configurable: !0
            })), l.alloc = function(e, t, n) {
                return p(null, e, t, n)
            }, l.allocUnsafe = function(e) {
                return d(null, e)
            }, l.allocUnsafeSlow = function(e) {
                return d(null, e)
            }, l.isBuffer = function(e) {
                return !(null == e || !e._isBuffer)
            }, l.compare = function(e, t) {
                if (!l.isBuffer(e) || !l.isBuffer(t)) throw new TypeError("Arguments must be Buffers");
                if (e === t) return 0;
                for (var n = e.length, o = t.length, r = 0, i = Math.min(n, o); r < i; ++r)
                    if (e[r] !== t[r]) {
                        n = e[r], o = t[r];
                        break
                    } return n < o ? -1 : o < n ? 1 : 0
            }, l.isEncoding = function(e) {
                switch (String(e).toLowerCase()) {
                    case "hex":
                    case "utf8":
                    case "utf-8":
                    case "ascii":
                    case "latin1":
                    case "binary":
                    case "base64":
                    case "ucs2":
                    case "ucs-2":
                    case "utf16le":
                    case "utf-16le":
                        return !0;
                    default:
                        return !1
                }
            }, l.concat = function(e, t) {
                if (!i(e)) throw new TypeError('"list" argument must be an Array of Buffers');
                if (0 === e.length) return l.alloc(0);
                var n;
                if (void 0 === t)
                    for (t = 0, n = 0; n < e.length; ++n) t += e[n].length;
                var o = l.allocUnsafe(t),
                    r = 0;
                for (n = 0; n < e.length; ++n) {
                    var a = e[n];
                    if (!l.isBuffer(a)) throw new TypeError('"list" argument must be an Array of Buffers');
                    a.copy(o, r), r += a.length
                }
                return o
            }, l.byteLength = I, l.prototype._isBuffer = !0, l.prototype.swap16 = function() {
                var e = this.length;
                if (e % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
                for (var t = 0; t < e; t += 2) C(this, t, t + 1);
                return this
            }, l.prototype.swap32 = function() {
                var e = this.length;
                if (e % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
                for (var t = 0; t < e; t += 4) C(this, t, t + 3), C(this, t + 1, t + 2);
                return this
            }, l.prototype.swap64 = function() {
                var e = this.length;
                if (e % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
                for (var t = 0; t < e; t += 8) C(this, t, t + 7), C(this, t + 1, t + 6), C(this, t + 2, t + 5), C(this, t + 3, t + 4);
                return this
            }, l.prototype.toString = function() {
                var e = 0 | this.length;
                return 0 === e ? "" : 0 === arguments.length ? k(this, 0, e) : _.apply(this, arguments)
            }, l.prototype.equals = function(e) {
                if (!l.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
                return this === e || 0 === l.compare(this, e)
            }, l.prototype.inspect = function() {
                var e = "",
                    t = n.INSPECT_MAX_BYTES;
                return this.length > 0 && (e = this.toString("hex", 0, t).match(/.{2}/g).join(" "), this.length > t && (e += " ... ")), "<Buffer " + e + ">"
            }, l.prototype.compare = function(e, t, n, o, r) {
                if (!l.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
                if (void 0 === t && (t = 0), void 0 === n && (n = e ? e.length : 0), void 0 === o && (o = 0), void 0 === r && (r = this.length), t < 0 || n > e.length || o < 0 || r > this.length) throw new RangeError("out of range index");
                if (o >= r && t >= n) return 0;
                if (o >= r) return -1;
                if (t >= n) return 1;
                if (this === e) return 0;
                for (var i = (r >>>= 0) - (o >>>= 0), a = (n >>>= 0) - (t >>>= 0), s = Math.min(i, a), c = this.slice(o, r), u = e.slice(t, n), p = 0; p < s; ++p)
                    if (c[p] !== u[p]) {
                        i = c[p], a = u[p];
                        break
                    } return i < a ? -1 : a < i ? 1 : 0
            }, l.prototype.includes = function(e, t, n) {
                return -1 !== this.indexOf(e, t, n)
            }, l.prototype.indexOf = function(e, t, n) {
                return v(this, e, t, n, !0)
            }, l.prototype.lastIndexOf = function(e, t, n) {
                return v(this, e, t, n, !1)
            }, l.prototype.write = function(e, t, n, o) {
                if (void 0 === t) o = "utf8", n = this.length, t = 0;
                else if (void 0 === n && "string" == typeof t) o = t, n = this.length, t = 0;
                else {
                    if (!isFinite(t)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
                    t |= 0, isFinite(n) ? (n |= 0, void 0 === o && (o = "utf8")) : (o = n, n = void 0)
                }
                var r = this.length - t;
                if ((void 0 === n || n > r) && (n = r), e.length > 0 && (n < 0 || t < 0) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds");
                o || (o = "utf8");
                for (var i = !1;;) switch (o) {
                    case "hex":
                        return S(this, e, t, n);
                    case "utf8":
                    case "utf-8":
                        return w(this, e, t, n);
                    case "ascii":
                        return P(this, e, t, n);
                    case "latin1":
                    case "binary":
                        return A(this, e, t, n);
                    case "base64":
                        return T(this, e, t, n);
                    case "ucs2":
                    case "ucs-2":
                    case "utf16le":
                    case "utf-16le":
                        return R(this, e, t, n);
                    default:
                        if (i) throw new TypeError("Unknown encoding: " + o);
                        o = ("" + o).toLowerCase(), i = !0
                }
            }, l.prototype.toJSON = function() {
                return {
                    type: "Buffer",
                    data: Array.prototype.slice.call(this._arr || this, 0)
                }
            };
            var O = 4096;

            function M(e) {
                var t = e.length;
                if (t <= O) return String.fromCharCode.apply(String, e);
                for (var n = "", o = 0; o < t;) n += String.fromCharCode.apply(String, e.slice(o, o += O));
                return n
            }

            function D(e, t, n) {
                var o = "";
                n = Math.min(e.length, n);
                for (var r = t; r < n; ++r) o += String.fromCharCode(127 & e[r]);
                return o
            }

            function B(e, t, n) {
                var o = "";
                n = Math.min(e.length, n);
                for (var r = t; r < n; ++r) o += String.fromCharCode(e[r]);
                return o
            }

            function N(e, t, n) {
                var o, r = e.length;
                (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
                for (var i = "", a = t; a < n; ++a) i += (o = e[a]) < 16 ? "0" + o.toString(16) : o.toString(16);
                return i
            }

            function E(e, t, n) {
                for (var o = e.slice(t, n), r = "", i = 0; i < o.length; i += 2) r += String.fromCharCode(o[i] + 256 * o[i + 1]);
                return r
            }

            function U(e, t, n) {
                if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint");
                if (e + t > n) throw new RangeError("Trying to access beyond buffer length")
            }

            function G(e, t, n, o, r, i) {
                if (!l.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
                if (t > r || t < i) throw new RangeError('"value" argument is out of bounds');
                if (n + o > e.length) throw new RangeError("Index out of range")
            }

            function x(e, t, n, o) {
                t < 0 && (t = 65535 + t + 1);
                for (var r = 0, i = Math.min(e.length - n, 2); r < i; ++r) e[n + r] = (t & 255 << 8 * (o ? r : 1 - r)) >>> 8 * (o ? r : 1 - r)
            }

            function H(e, t, n, o) {
                t < 0 && (t = 4294967295 + t + 1);
                for (var r = 0, i = Math.min(e.length - n, 4); r < i; ++r) e[n + r] = t >>> 8 * (o ? r : 3 - r) & 255
            }

            function F(e, t, n, o) {
                if (n + o > e.length) throw new RangeError("Index out of range");
                if (n < 0) throw new RangeError("Index out of range")
            }

            function j(e, t, n, o, i) {
                return i || F(e, 0, n, 4), r.write(e, t, n, o, 23, 4), n + 4
            }

            function W(e, t, n, o, i) {
                return i || F(e, 0, n, 8), r.write(e, t, n, o, 52, 8), n + 8
            }
            l.prototype.slice = function(e, t) {
                var n, o = this.length;
                if ((e = ~~e) < 0 ? (e += o) < 0 && (e = 0) : e > o && (e = o), (t = void 0 === t ? o : ~~t) < 0 ? (t += o) < 0 && (t = 0) : t > o && (t = o), t < e && (t = e), l.TYPED_ARRAY_SUPPORT)(n = this.subarray(e, t)).__proto__ = l.prototype;
                else {
                    var r = t - e;
                    n = new l(r, void 0);
                    for (var i = 0; i < r; ++i) n[i] = this[i + e]
                }
                return n
            }, l.prototype.readUIntLE = function(e, t, n) {
                e |= 0, t |= 0, n || U(e, t, this.length);
                for (var o = this[e], r = 1, i = 0; ++i < t && (r *= 256);) o += this[e + i] * r;
                return o
            }, l.prototype.readUIntBE = function(e, t, n) {
                e |= 0, t |= 0, n || U(e, t, this.length);
                for (var o = this[e + --t], r = 1; t > 0 && (r *= 256);) o += this[e + --t] * r;
                return o
            }, l.prototype.readUInt8 = function(e, t) {
                return t || U(e, 1, this.length), this[e]
            }, l.prototype.readUInt16LE = function(e, t) {
                return t || U(e, 2, this.length), this[e] | this[e + 1] << 8
            }, l.prototype.readUInt16BE = function(e, t) {
                return t || U(e, 2, this.length), this[e] << 8 | this[e + 1]
            }, l.prototype.readUInt32LE = function(e, t) {
                return t || U(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3]
            }, l.prototype.readUInt32BE = function(e, t) {
                return t || U(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3])
            }, l.prototype.readIntLE = function(e, t, n) {
                e |= 0, t |= 0, n || U(e, t, this.length);
                for (var o = this[e], r = 1, i = 0; ++i < t && (r *= 256);) o += this[e + i] * r;
                return o >= (r *= 128) && (o -= Math.pow(2, 8 * t)), o
            }, l.prototype.readIntBE = function(e, t, n) {
                e |= 0, t |= 0, n || U(e, t, this.length);
                for (var o = t, r = 1, i = this[e + --o]; o > 0 && (r *= 256);) i += this[e + --o] * r;
                return i >= (r *= 128) && (i -= Math.pow(2, 8 * t)), i
            }, l.prototype.readInt8 = function(e, t) {
                return t || U(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e]
            }, l.prototype.readInt16LE = function(e, t) {
                t || U(e, 2, this.length);
                var n = this[e] | this[e + 1] << 8;
                return 32768 & n ? 4294901760 | n : n
            }, l.prototype.readInt16BE = function(e, t) {
                t || U(e, 2, this.length);
                var n = this[e + 1] | this[e] << 8;
                return 32768 & n ? 4294901760 | n : n
            }, l.prototype.readInt32LE = function(e, t) {
                return t || U(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24
            }, l.prototype.readInt32BE = function(e, t) {
                return t || U(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]
            }, l.prototype.readFloatLE = function(e, t) {
                return t || U(e, 4, this.length), r.read(this, e, !0, 23, 4)
            }, l.prototype.readFloatBE = function(e, t) {
                return t || U(e, 4, this.length), r.read(this, e, !1, 23, 4)
            }, l.prototype.readDoubleLE = function(e, t) {
                return t || U(e, 8, this.length), r.read(this, e, !0, 52, 8)
            }, l.prototype.readDoubleBE = function(e, t) {
                return t || U(e, 8, this.length), r.read(this, e, !1, 52, 8)
            }, l.prototype.writeUIntLE = function(e, t, n, o) {
                e = +e, t |= 0, n |= 0, o || G(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
                var r = 1,
                    i = 0;
                for (this[t] = 255 & e; ++i < n && (r *= 256);) this[t + i] = e / r & 255;
                return t + n
            }, l.prototype.writeUIntBE = function(e, t, n, o) {
                e = +e, t |= 0, n |= 0, o || G(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
                var r = n - 1,
                    i = 1;
                for (this[t + r] = 255 & e; --r >= 0 && (i *= 256);) this[t + r] = e / i & 255;
                return t + n
            }, l.prototype.writeUInt8 = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 1, 255, 0), l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[t] = 255 & e, t + 1
            }, l.prototype.writeUInt16LE = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : x(this, e, t, !0), t + 2
            }, l.prototype.writeUInt16BE = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : x(this, e, t, !1), t + 2
            }, l.prototype.writeUInt32LE = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = 255 & e) : H(this, e, t, !0), t + 4
            }, l.prototype.writeUInt32BE = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : H(this, e, t, !1), t + 4
            }, l.prototype.writeIntLE = function(e, t, n, o) {
                if (e = +e, t |= 0, !o) {
                    var r = Math.pow(2, 8 * n - 1);
                    G(this, e, t, n, r - 1, -r)
                }
                var i = 0,
                    a = 1,
                    s = 0;
                for (this[t] = 255 & e; ++i < n && (a *= 256);) e < 0 && 0 === s && 0 !== this[t + i - 1] && (s = 1), this[t + i] = (e / a >> 0) - s & 255;
                return t + n
            }, l.prototype.writeIntBE = function(e, t, n, o) {
                if (e = +e, t |= 0, !o) {
                    var r = Math.pow(2, 8 * n - 1);
                    G(this, e, t, n, r - 1, -r)
                }
                var i = n - 1,
                    a = 1,
                    s = 0;
                for (this[t + i] = 255 & e; --i >= 0 && (a *= 256);) e < 0 && 0 === s && 0 !== this[t + i + 1] && (s = 1), this[t + i] = (e / a >> 0) - s & 255;
                return t + n
            }, l.prototype.writeInt8 = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 1, 127, -128), l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[t] = 255 & e, t + 1
            }, l.prototype.writeInt16LE = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : x(this, e, t, !0), t + 2
            }, l.prototype.writeInt16BE = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : x(this, e, t, !1), t + 2
            }, l.prototype.writeInt32LE = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 4, 2147483647, -2147483648), l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24) : H(this, e, t, !0), t + 4
            }, l.prototype.writeInt32BE = function(e, t, n) {
                return e = +e, t |= 0, n || G(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : H(this, e, t, !1), t + 4
            }, l.prototype.writeFloatLE = function(e, t, n) {
                return j(this, e, t, !0, n)
            }, l.prototype.writeFloatBE = function(e, t, n) {
                return j(this, e, t, !1, n)
            }, l.prototype.writeDoubleLE = function(e, t, n) {
                return W(this, e, t, !0, n)
            }, l.prototype.writeDoubleBE = function(e, t, n) {
                return W(this, e, t, !1, n)
            }, l.prototype.copy = function(e, t, n, o) {
                if (n || (n = 0), o || 0 === o || (o = this.length), t >= e.length && (t = e.length), t || (t = 0), o > 0 && o < n && (o = n), o === n) return 0;
                if (0 === e.length || 0 === this.length) return 0;
                if (t < 0) throw new RangeError("targetStart out of bounds");
                if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds");
                if (o < 0) throw new RangeError("sourceEnd out of bounds");
                o > this.length && (o = this.length), e.length - t < o - n && (o = e.length - t + n);
                var r, i = o - n;
                if (this === e && n < t && t < o)
                    for (r = i - 1; r >= 0; --r) e[r + t] = this[r + n];
                else if (i < 1e3 || !l.TYPED_ARRAY_SUPPORT)
                    for (r = 0; r < i; ++r) e[r + t] = this[r + n];
                else Uint8Array.prototype.set.call(e, this.subarray(n, n + i), t);
                return i
            }, l.prototype.fill = function(e, t, n, o) {
                if ("string" == typeof e) {
                    if ("string" == typeof t ? (o = t, t = 0, n = this.length) : "string" == typeof n && (o = n, n = this.length), 1 === e.length) {
                        var r = e.charCodeAt(0);
                        r < 256 && (e = r)
                    }
                    if (void 0 !== o && "string" != typeof o) throw new TypeError("encoding must be a string");
                    if ("string" == typeof o && !l.isEncoding(o)) throw new TypeError("Unknown encoding: " + o)
                } else "number" == typeof e && (e &= 255);
                if (t < 0 || this.length < t || this.length < n) throw new RangeError("Out of range index");
                if (n <= t) return this;
                var i;
                if (t >>>= 0, n = void 0 === n ? this.length : n >>> 0, e || (e = 0), "number" == typeof e)
                    for (i = t; i < n; ++i) this[i] = e;
                else {
                    var a = l.isBuffer(e) ? e : Z(new l(e, o).toString()),
                        s = a.length;
                    for (i = 0; i < n - t; ++i) this[i + t] = a[i % s]
                }
                return this
            };
            var z = /[^+\/0-9A-Za-z-_]/g;

            function q(e) {
                if ((e = V(e).replace(z, "")).length < 2) return "";
                for (; e.length % 4 != 0;) e += "=";
                return e
            }

            function V(e) {
                return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "")
            }

            function Z(e, t) {
                var n;
                t = t || 1 / 0;
                for (var o = e.length, r = null, i = [], a = 0; a < o; ++a) {
                    if ((n = e.charCodeAt(a)) > 55295 && n < 57344) {
                        if (!r) {
                            if (n > 56319) {
                                (t -= 3) > -1 && i.push(239, 191, 189);
                                continue
                            }
                            if (a + 1 === o) {
                                (t -= 3) > -1 && i.push(239, 191, 189);
                                continue
                            }
                            r = n;
                            continue
                        }
                        if (n < 56320) {
                            (t -= 3) > -1 && i.push(239, 191, 189), r = n;
                            continue
                        }
                        n = 65536 + (r - 55296 << 10 | n - 56320)
                    } else r && (t -= 3) > -1 && i.push(239, 191, 189);
                    if (r = null, n < 128) {
                        if ((t -= 1) < 0) break;
                        i.push(n)
                    } else if (n < 2048) {
                        if ((t -= 2) < 0) break;
                        i.push(n >> 6 | 192, 63 & n | 128)
                    } else if (n < 65536) {
                        if ((t -= 3) < 0) break;
                        i.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128)
                    } else {
                        if (!(n < 1114112)) throw new Error("Invalid code point");
                        if ((t -= 4) < 0) break;
                        i.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128)
                    }
                }
                return i
            }

            function K(e) {
                for (var t = [], n = 0; n < e.length; ++n) t.push(255 & e.charCodeAt(n));
                return t
            }

            function J(e, t) {
                for (var n, o, r, i = [], a = 0; a < e.length && !((t -= 2) < 0); ++a) o = (n = e.charCodeAt(a)) >> 8, r = n % 256, i.push(r), i.push(o);
                return i
            }

            function X(e) {
                return o.toByteArray(q(e))
            }

            function Q(e, t, n, o) {
                for (var r = 0; r < o && !(r + n >= t.length || r >= e.length); ++r) t[r + n] = e[r];
                return r
            }
        }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {
        "base64-js": 16,
        ieee754: 137,
        isarray: 66
    }],
    66: [function(e, t) {
        var n = {}.toString;
        t.exports = Array.isArray || function(e) {
            return "[object Array]" == n.call(e)
        }
    }, {}],
    67: [function(e, t) {
        var n = e("safe-buffer").Buffer,
            o = e("stream").Transform,
            r = e("string_decoder").StringDecoder;

        function i(e) {
            o.call(this), this.hashMode = "string" == typeof e, this.hashMode ? this[e] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null
        }
        e("inherits")(i, o), i.prototype.update = function(e, t, o) {
            "string" == typeof e && (e = n.from(e, t));
            var r = this._update(e);
            return this.hashMode ? this : (o && (r = this._toString(r, o)), r)
        }, i.prototype.setAutoPadding = function() {}, i.prototype.getAuthTag = function() {
            throw new Error("trying to get auth tag in unsupported state")
        }, i.prototype.setAuthTag = function() {
            throw new Error("trying to set auth tag in unsupported state")
        }, i.prototype.setAAD = function() {
            throw new Error("trying to set aad in unsupported state")
        }, i.prototype._transform = function(e, t, n) {
            var o;
            try {
                this.hashMode ? this._update(e) : this.push(this._update(e))
            } catch (r) {
                o = r
            } finally {
                n(o)
            }
        }, i.prototype._flush = function(e) {
            var t;
            try {
                this.push(this.__final())
            } catch (n) {
                t = n
            }
            e(t)
        }, i.prototype._finalOrDigest = function(e) {
            var t = this.__final() || n.alloc(0);
            return e && (t = this._toString(t, e, !0)), t
        }, i.prototype._toString = function(e, t, n) {
            if (this._decoder || (this._decoder = new r(t), this._encoding = t), this._encoding !== t) throw new Error("can't switch encodings");
            var o = this._decoder.write(e);
            return n && (o += this._decoder.end()), o
        }, t.exports = i
    }, {
        inherits: 138,
        "safe-buffer": 183,
        stream: 193,
        string_decoder: 194
    }],
    68: [function(e, t, n) {
        function o(e) {
            return Object.prototype.toString.call(e)
        }
        n.isArray = function(e) {
            return Array.isArray ? Array.isArray(e) : "[object Array]" === o(e)
        }, n.isBoolean = function(e) {
            return "boolean" == typeof e
        }, n.isNull = function(e) {
            return null === e
        }, n.isNullOrUndefined = function(e) {
            return null == e
        }, n.isNumber = function(e) {
            return "number" == typeof e
        }, n.isString = function(e) {
            return "string" == typeof e
        }, n.isSymbol = function(e) {
            return "symbol" == typeof e
        }, n.isUndefined = function(e) {
            return void 0 === e
        }, n.isRegExp = function(e) {
            return "[object RegExp]" === o(e)
        }, n.isObject = function(e) {
            return "object" == typeof e && null !== e
        }, n.isDate = function(e) {
            return "[object Date]" === o(e)
        }, n.isError = function(e) {
            return "[object Error]" === o(e) || e instanceof Error
        }, n.isFunction = function(e) {
            return "function" == typeof e
        }, n.isPrimitive = function(e) {
            return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || void 0 === e
        }, n.isBuffer = e("buffer").Buffer.isBuffer
    }, {
        buffer: 65
    }],
    69: [function(e, t) {
        (function(n) {
            var o = e("elliptic"),
                r = e("bn.js");
            t.exports = function(e) {
                return new a(e)
            };
            var i = {
                secp256k1: {
                    name: "secp256k1",
                    byteLength: 32
                },
                secp224r1: {
                    name: "p224",
                    byteLength: 28
                },
                prime256v1: {
                    name: "p256",
                    byteLength: 32
                },
                prime192v1: {
                    name: "p192",
                    byteLength: 24
                },
                ed25519: {
                    name: "ed25519",
                    byteLength: 32
                },
                secp384r1: {
                    name: "p384",
                    byteLength: 48
                },
                secp521r1: {
                    name: "p521",
                    byteLength: 66
                }
            };

            function a(e) {
                this.curveType = i[e], this.curveType || (this.curveType = {
                    name: e
                }), this.curve = new o.ec(this.curveType.name), this.keys = void 0
            }

            function s(e, t, o) {
                Array.isArray(e) || (e = e.toArray());
                var r = new n(e);
                if (o && r.length < o) {
                    var i = new n(o - r.length);
                    i.fill(0), r = n.concat([i, r])
                }
                return t ? r.toString(t) : r
            }
            i.p224 = i.secp224r1, i.p256 = i.secp256r1 = i.prime256v1, i.p192 = i.secp192r1 = i.prime192v1, i.p384 = i.secp384r1, i.p521 = i.secp521r1, a.prototype.generateKeys = function(e, t) {
                return this.keys = this.curve.genKeyPair(), this.getPublicKey(e, t)
            }, a.prototype.computeSecret = function(e, t, o) {
                return t = t || "utf8", n.isBuffer(e) || (e = new n(e, t)), s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(), o, this.curveType.byteLength)
            }, a.prototype.getPublicKey = function(e, t) {
                var n = this.keys.getPublic("compressed" === t, !0);
                return "hybrid" === t && (n[n.length - 1] % 2 ? n[0] = 7 : n[0] = 6), s(n, e)
            }, a.prototype.getPrivateKey = function(e) {
                return s(this.keys.getPrivate(), e)
            }, a.prototype.setPublicKey = function(e, t) {
                return t = t || "utf8", n.isBuffer(e) || (e = new n(e, t)), this.keys._importPublic(e), this
            }, a.prototype.setPrivateKey = function(e, t) {
                t = t || "utf8", n.isBuffer(e) || (e = new n(e, t));
                var o = new r(e);
                return o = o.toString(16), this.keys = this.curve.genKeyPair(), this.keys._importPrivate(o), this
            }
        }).call(this, e("buffer").Buffer)
    }, {
        "bn.js": 70,
        buffer: 65,
        elliptic: 87
    }],
    70: [function(e, t, n) {
        arguments[4][15][0].apply(n, arguments)
    }, {
        buffer: 19,
        dup: 15
    }],
    71: [function(e, t) {
        "use strict";
        var n = e("inherits"),
            o = e("md5.js"),
            r = e("ripemd160"),
            i = e("sha.js"),
            a = e("cipher-base");

        function s(e) {
            a.call(this, "digest"), this._hash = e
        }
        n(s, a), s.prototype._update = function(e) {
            this._hash.update(e)
        }, s.prototype._final = function() {
            return this._hash.digest()
        }, t.exports = function(e) {
            return "md5" === (e = e.toLowerCase()) ? new o : "rmd160" === e || "ripemd160" === e ? new r : new s(i(e))
        }
    }, {
        "cipher-base": 67,
        inherits: 138,
        "md5.js": 139,
        ripemd160: 182,
        "sha.js": 186
    }],
    72: [function(e, t) {
        var n = e("md5.js");
        t.exports = function(e) {
            return (new n).update(e).digest()
        }
    }, {
        "md5.js": 139
    }],
    73: [function(e, t) {
        "use strict";
        var n = e("inherits"),
            o = e("./legacy"),
            r = e("cipher-base"),
            i = e("safe-buffer").Buffer,
            a = e("create-hash/md5"),
            s = e("ripemd160"),
            l = e("sha.js"),
            c = i.alloc(128);

        function u(e, t) {
            r.call(this, "digest"), "string" == typeof t && (t = i.from(t));
            var n = "sha512" === e || "sha384" === e ? 128 : 64;
            this._alg = e, this._key = t, t.length > n ? t = ("rmd160" === e ? new s : l(e)).update(t).digest() : t.length < n && (t = i.concat([t, c], n));
            for (var o = this._ipad = i.allocUnsafe(n), a = this._opad = i.allocUnsafe(n), u = 0; u < n; u++) o[u] = 54 ^ t[u], a[u] = 92 ^ t[u];
            this._hash = "rmd160" === e ? new s : l(e), this._hash.update(o)
        }
        n(u, r), u.prototype._update = function(e) {
            this._hash.update(e)
        }, u.prototype._final = function() {
            var e = this._hash.digest();
            return ("rmd160" === this._alg ? new s : l(this._alg)).update(this._opad).update(e).digest()
        }, t.exports = function(e, t) {
            return "rmd160" === (e = e.toLowerCase()) || "ripemd160" === e ? new u("rmd160", t) : "md5" === e ? new o(a, t) : new u(e, t)
        }
    }, {
        "./legacy": 74,
        "cipher-base": 67,
        "create-hash/md5": 72,
        inherits: 138,
        ripemd160: 182,
        "safe-buffer": 183,
        "sha.js": 186
    }],
    74: [function(e, t) {
        "use strict";
        var n = e("inherits"),
            o = e("safe-buffer").Buffer,
            r = e("cipher-base"),
            i = o.alloc(128),
            a = 64;

        function s(e, t) {
            r.call(this, "digest"), "string" == typeof t && (t = o.from(t)), this._alg = e, this._key = t, t.length > a ? t = e(t) : t.length < a && (t = o.concat([t, i], a));
            for (var n = this._ipad = o.allocUnsafe(a), s = this._opad = o.allocUnsafe(a), l = 0; l < a; l++) n[l] = 54 ^ t[l], s[l] = 92 ^ t[l];
            this._hash = [n]
        }
        n(s, r), s.prototype._update = function(e) {
            this._hash.push(e)
        }, s.prototype._final = function() {
            var e = this._alg(o.concat(this._hash));
            return this._alg(o.concat([this._opad, e]))
        }, t.exports = s
    }, {
        "cipher-base": 67,
        inherits: 138,
        "safe-buffer": 183
    }],
    75: [function(e, t, n) {
        "use strict";
        n.randomBytes = n.rng = n.pseudoRandomBytes = n.prng = e("randombytes"), n.createHash = n.Hash = e("create-hash"), n.createHmac = n.Hmac = e("create-hmac");
        var o = e("browserify-sign/algos"),
            r = Object.keys(o),
            i = ["sha1", "sha224", "sha256", "sha384", "sha512", "md5", "rmd160"].concat(r);
        n.getHashes = function() {
            return i
        };
        var a = e("pbkdf2");
        n.pbkdf2 = a.pbkdf2, n.pbkdf2Sync = a.pbkdf2Sync;
        var s = e("browserify-cipher");
        n.Cipher = s.Cipher, n.createCipher = s.createCipher, n.Cipheriv = s.Cipheriv, n.createCipheriv = s.createCipheriv, n.Decipher = s.Decipher, n.createDecipher = s.createDecipher, n.Decipheriv = s.Decipheriv, n.createDecipheriv = s.createDecipheriv, n.getCiphers = s.getCiphers, n.listCiphers = s.listCiphers;
        var l = e("diffie-hellman");
        n.DiffieHellmanGroup = l.DiffieHellmanGroup, n.createDiffieHellmanGroup = l.createDiffieHellmanGroup, n.getDiffieHellman = l.getDiffieHellman, n.createDiffieHellman = l.createDiffieHellman, n.DiffieHellman = l.DiffieHellman;
        var c = e("browserify-sign");
        n.createSign = c.createSign, n.Sign = c.Sign, n.createVerify = c.createVerify, n.Verify = c.Verify, n.createECDH = e("create-ecdh");
        var u = e("public-encrypt");
        n.publicEncrypt = u.publicEncrypt, n.privateEncrypt = u.privateEncrypt, n.publicDecrypt = u.publicDecrypt, n.privateDecrypt = u.privateDecrypt;
        var p = e("randomfill");
        n.randomFill = p.randomFill, n.randomFillSync = p.randomFillSync, n.createCredentials = function() {
            throw new Error(["sorry, createCredentials is not implemented yet", "we accept pull requests", "https://github.com/crypto-browserify/crypto-browserify"].join("\n"))
        }, n.constants = {
            DH_CHECK_P_NOT_SAFE_PRIME: 2,
            DH_CHECK_P_NOT_PRIME: 1,
            DH_UNABLE_TO_CHECK_GENERATOR: 4,
            DH_NOT_SUITABLE_GENERATOR: 8,
            NPN_ENABLED: 1,
            ALPN_ENABLED: 1,
            RSA_PKCS1_PADDING: 1,
            RSA_SSLV23_PADDING: 2,
            RSA_NO_PADDING: 3,
            RSA_PKCS1_OAEP_PADDING: 4,
            RSA_X931_PADDING: 5,
            RSA_PKCS1_PSS_PADDING: 6,
            POINT_CONVERSION_COMPRESSED: 2,
            POINT_CONVERSION_UNCOMPRESSED: 4,
            POINT_CONVERSION_HYBRID: 6
        }
    }, {
        "browserify-cipher": 37,
        "browserify-sign": 44,
        "browserify-sign/algos": 41,
        "create-ecdh": 69,
        "create-hash": 71,
        "create-hmac": 73,
        "diffie-hellman": 82,
        pbkdf2: 150,
        "public-encrypt": 158,
        randombytes: 165,
        randomfill: 166
    }],
    76: [function(e, t, n) {
        "use strict";
        n.utils = e("./des/utils"), n.Cipher = e("./des/cipher"), n.DES = e("./des/des"), n.CBC = e("./des/cbc"), n.EDE = e("./des/ede")
    }, {
        "./des/cbc": 77,
        "./des/cipher": 78,
        "./des/des": 79,
        "./des/ede": 80,
        "./des/utils": 81
    }],
    77: [function(e, t, n) {
        "use strict";
        var o = e("minimalistic-assert"),
            r = e("inherits"),
            i = {};

        function a(e) {
            o.equal(e.length, 8, "Invalid IV length"), this.iv = new Array(8);
            for (var t = 0; t < this.iv.length; t++) this.iv[t] = e[t]
        }
        n.instantiate = function(e) {
            function t(t) {
                e.call(this, t), this._cbcInit()
            }
            r(t, e);
            for (var n = Object.keys(i), o = 0; o < n.length; o++) {
                var a = n[o];
                t.prototype[a] = i[a]
            }
            return t.create = function(e) {
                return new t(e)
            }, t
        }, i._cbcInit = function() {
            var e = new a(this.options.iv);
            this._cbcState = e
        }, i._update = function(e, t, n, o) {
            var r = this._cbcState,
                i = this.constructor.super_.prototype,
                a = r.iv;
            if ("encrypt" === this.type) {
                for (var s = 0; s < this.blockSize; s++) a[s] ^= e[t + s];
                for (i._update.call(this, a, 0, n, o), s = 0; s < this.blockSize; s++) a[s] = n[o + s]
            } else {
                for (i._update.call(this, e, t, n, o), s = 0; s < this.blockSize; s++) n[o + s] ^= a[s];
                for (s = 0; s < this.blockSize; s++) a[s] = e[t + s]
            }
        }
    }, {
        inherits: 138,
        "minimalistic-assert": 142
    }],
    78: [function(e, t) {
        "use strict";
        var n = e("minimalistic-assert");

        function o(e) {
            this.options = e, this.type = this.options.type, this.blockSize = 8, this._init(), this.buffer = new Array(this.blockSize), this.bufferOff = 0
        }
        t.exports = o, o.prototype._init = function() {}, o.prototype.update = function(e) {
            return 0 === e.length ? [] : "decrypt" === this.type ? this._updateDecrypt(e) : this._updateEncrypt(e)
        }, o.prototype._buffer = function(e, t) {
            for (var n = Math.min(this.buffer.length - this.bufferOff, e.length - t), o = 0; o < n; o++) this.buffer[this.bufferOff + o] = e[t + o];
            return this.bufferOff += n, n
        }, o.prototype._flushBuffer = function(e, t) {
            return this._update(this.buffer, 0, e, t), this.bufferOff = 0, this.blockSize
        }, o.prototype._updateEncrypt = function(e) {
            var t = 0,
                n = 0,
                o = (this.bufferOff + e.length) / this.blockSize | 0,
                r = new Array(o * this.blockSize);
            0 !== this.bufferOff && (t += this._buffer(e, t), this.bufferOff === this.buffer.length && (n += this._flushBuffer(r, n)));
            for (var i = e.length - (e.length - t) % this.blockSize; t < i; t += this.blockSize) this._update(e, t, r, n), n += this.blockSize;
            for (; t < e.length; t++, this.bufferOff++) this.buffer[this.bufferOff] = e[t];
            return r
        }, o.prototype._updateDecrypt = function(e) {
            for (var t = 0, n = 0, o = Math.ceil((this.bufferOff + e.length) / this.blockSize) - 1, r = new Array(o * this.blockSize); o > 0; o--) t += this._buffer(e, t), n += this._flushBuffer(r, n);
            return t += this._buffer(e, t), r
        }, o.prototype.final = function(e) {
            var t, n;
            return e && (t = this.update(e)), n = "encrypt" === this.type ? this._finalEncrypt() : this._finalDecrypt(), t ? t.concat(n) : n
        }, o.prototype._pad = function(e, t) {
            if (0 === t) return !1;
            for (; t < e.length;) e[t++] = 0;
            return !0
        }, o.prototype._finalEncrypt = function() {
            if (!this._pad(this.buffer, this.bufferOff)) return [];
            var e = new Array(this.blockSize);
            return this._update(this.buffer, 0, e, 0), e
        }, o.prototype._unpad = function(e) {
            return e
        }, o.prototype._finalDecrypt = function() {
            n.equal(this.bufferOff, this.blockSize, "Not enough data to decrypt");
            var e = new Array(this.blockSize);
            return this._flushBuffer(e, 0), this._unpad(e)
        }
    }, {
        "minimalistic-assert": 142
    }],
    79: [function(e, t) {
        "use strict";
        var n = e("minimalistic-assert"),
            o = e("inherits"),
            r = e("./utils"),
            i = e("./cipher");

        function a() {
            this.tmp = new Array(2), this.keys = null
        }

        function s(e) {
            i.call(this, e);
            var t = new a;
            this._desState = t, this.deriveKeys(t, e.key)
        }
        o(s, i), t.exports = s, s.create = function(e) {
            return new s(e)
        };
        var l = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1];
        s.prototype.deriveKeys = function(e, t) {
            e.keys = new Array(32), n.equal(t.length, this.blockSize, "Invalid key length");
            var o = r.readUInt32BE(t, 0),
                i = r.readUInt32BE(t, 4);
            r.pc1(o, i, e.tmp, 0), o = e.tmp[0], i = e.tmp[1];
            for (var a = 0; a < e.keys.length; a += 2) {
                var s = l[a >>> 1];
                o = r.r28shl(o, s), i = r.r28shl(i, s), r.pc2(o, i, e.keys, a)
            }
        }, s.prototype._update = function(e, t, n, o) {
            var i = this._desState,
                a = r.readUInt32BE(e, t),
                s = r.readUInt32BE(e, t + 4);
            r.ip(a, s, i.tmp, 0), a = i.tmp[0], s = i.tmp[1], "encrypt" === this.type ? this._encrypt(i, a, s, i.tmp, 0) : this._decrypt(i, a, s, i.tmp, 0), a = i.tmp[0], s = i.tmp[1], r.writeUInt32BE(n, a, o), r.writeUInt32BE(n, s, o + 4)
        }, s.prototype._pad = function(e, t) {
            for (var n = e.length - t, o = t; o < e.length; o++) e[o] = n;
            return !0
        }, s.prototype._unpad = function(e) {
            for (var t = e[e.length - 1], o = e.length - t; o < e.length; o++) n.equal(e[o], t);
            return e.slice(0, e.length - t)
        }, s.prototype._encrypt = function(e, t, n, o, i) {
            for (var a = t, s = n, l = 0; l < e.keys.length; l += 2) {
                var c = e.keys[l],
                    u = e.keys[l + 1];
                r.expand(s, e.tmp, 0), c ^= e.tmp[0], u ^= e.tmp[1];
                var p = r.substitute(c, u),
                    d = s;
                s = (a ^ r.permute(p)) >>> 0, a = d
            }
            r.rip(s, a, o, i)
        }, s.prototype._decrypt = function(e, t, n, o, i) {
            for (var a = n, s = t, l = e.keys.length - 2; l >= 0; l -= 2) {
                var c = e.keys[l],
                    u = e.keys[l + 1];
                r.expand(a, e.tmp, 0), c ^= e.tmp[0], u ^= e.tmp[1];
                var p = r.substitute(c, u),
                    d = a;
                a = (s ^ r.permute(p)) >>> 0, s = d
            }
            r.rip(a, s, o, i)
        }
    }, {
        "./cipher": 78,
        "./utils": 81,
        inherits: 138,
        "minimalistic-assert": 142
    }],
    80: [function(e, t) {
        "use strict";
        var n = e("minimalistic-assert"),
            o = e("inherits"),
            r = e("./cipher"),
            i = e("./des");

        function a(e, t) {
            n.equal(t.length, 24, "Invalid key length");
            var o = t.slice(0, 8),
                r = t.slice(8, 16),
                a = t.slice(16, 24);
            this.ciphers = "encrypt" === e ? [i.create({
                type: "encrypt",
                key: o
            }), i.create({
                type: "decrypt",
                key: r
            }), i.create({
                type: "encrypt",
                key: a
            })] : [i.create({
                type: "decrypt",
                key: a
            }), i.create({
                type: "encrypt",
                key: r
            }), i.create({
                type: "decrypt",
                key: o
            })]
        }

        function s(e) {
            r.call(this, e);
            var t = new a(this.type, this.options.key);
            this._edeState = t
        }
        o(s, r), t.exports = s, s.create = function(e) {
            return new s(e)
        }, s.prototype._update = function(e, t, n, o) {
            var r = this._edeState;
            r.ciphers[0]._update(e, t, n, o), r.ciphers[1]._update(n, o, n, o), r.ciphers[2]._update(n, o, n, o)
        }, s.prototype._pad = i.prototype._pad, s.prototype._unpad = i.prototype._unpad
    }, {
        "./cipher": 78,
        "./des": 79,
        inherits: 138,
        "minimalistic-assert": 142
    }],
    81: [function(e, t, n) {
        "use strict";
        n.readUInt32BE = function(e, t) {
            return (e[0 + t] << 24 | e[1 + t] << 16 | e[2 + t] << 8 | e[3 + t]) >>> 0
        }, n.writeUInt32BE = function(e, t, n) {
            e[0 + n] = t >>> 24, e[1 + n] = t >>> 16 & 255, e[2 + n] = t >>> 8 & 255, e[3 + n] = 255 & t
        }, n.ip = function(e, t, n, o) {
            for (var r = 0, i = 0, a = 6; a >= 0; a -= 2) {
                for (var s = 0; s <= 24; s += 8) r <<= 1, r |= t >>> s + a & 1;
                for (s = 0; s <= 24; s += 8) r <<= 1, r |= e >>> s + a & 1
            }
            for (a = 6; a >= 0; a -= 2) {
                for (s = 1; s <= 25; s += 8) i <<= 1, i |= t >>> s + a & 1;
                for (s = 1; s <= 25; s += 8) i <<= 1, i |= e >>> s + a & 1
            }
            n[o + 0] = r >>> 0, n[o + 1] = i >>> 0
        }, n.rip = function(e, t, n, o) {
            for (var r = 0, i = 0, a = 0; a < 4; a++)
                for (var s = 24; s >= 0; s -= 8) r <<= 1, r |= t >>> s + a & 1, r <<= 1, r |= e >>> s + a & 1;
            for (a = 4; a < 8; a++)
                for (s = 24; s >= 0; s -= 8) i <<= 1, i |= t >>> s + a & 1, i <<= 1, i |= e >>> s + a & 1;
            n[o + 0] = r >>> 0, n[o + 1] = i >>> 0
        }, n.pc1 = function(e, t, n, o) {
            for (var r = 0, i = 0, a = 7; a >= 5; a--) {
                for (var s = 0; s <= 24; s += 8) r <<= 1, r |= t >> s + a & 1;
                for (s = 0; s <= 24; s += 8) r <<= 1, r |= e >> s + a & 1
            }
            for (s = 0; s <= 24; s += 8) r <<= 1, r |= t >> s + a & 1;
            for (a = 1; a <= 3; a++) {
                for (s = 0; s <= 24; s += 8) i <<= 1, i |= t >> s + a & 1;
                for (s = 0; s <= 24; s += 8) i <<= 1, i |= e >> s + a & 1
            }
            for (s = 0; s <= 24; s += 8) i <<= 1, i |= e >> s + a & 1;
            n[o + 0] = r >>> 0, n[o + 1] = i >>> 0
        }, n.r28shl = function(e, t) {
            return e << t & 268435455 | e >>> 28 - t
        };
        var o = [14, 11, 17, 4, 27, 23, 25, 0, 13, 22, 7, 18, 5, 9, 16, 24, 2, 20, 12, 21, 1, 8, 15, 26, 15, 4, 25, 19, 9, 1, 26, 16, 5, 11, 23, 8, 12, 7, 17, 0, 22, 3, 10, 14, 6, 20, 27, 24];
        n.pc2 = function(e, t, n, r) {
            for (var i = 0, a = 0, s = o.length >>> 1, l = 0; l < s; l++) i <<= 1, i |= e >>> o[l] & 1;
            for (l = s; l < o.length; l++) a <<= 1, a |= t >>> o[l] & 1;
            n[r + 0] = i >>> 0, n[r + 1] = a >>> 0
        }, n.expand = function(e, t, n) {
            var o = 0,
                r = 0;
            o = (1 & e) << 5 | e >>> 27;
            for (var i = 23; i >= 15; i -= 4) o <<= 6, o |= e >>> i & 63;
            for (i = 11; i >= 3; i -= 4) r |= e >>> i & 63, r <<= 6;
            r |= (31 & e) << 1 | e >>> 31, t[n + 0] = o >>> 0, t[n + 1] = r >>> 0
        };
        var r = [14, 0, 4, 15, 13, 7, 1, 4, 2, 14, 15, 2, 11, 13, 8, 1, 3, 10, 10, 6, 6, 12, 12, 11, 5, 9, 9, 5, 0, 3, 7, 8, 4, 15, 1, 12, 14, 8, 8, 2, 13, 4, 6, 9, 2, 1, 11, 7, 15, 5, 12, 11, 9, 3, 7, 14, 3, 10, 10, 0, 5, 6, 0, 13, 15, 3, 1, 13, 8, 4, 14, 7, 6, 15, 11, 2, 3, 8, 4, 14, 9, 12, 7, 0, 2, 1, 13, 10, 12, 6, 0, 9, 5, 11, 10, 5, 0, 13, 14, 8, 7, 10, 11, 1, 10, 3, 4, 15, 13, 4, 1, 2, 5, 11, 8, 6, 12, 7, 6, 12, 9, 0, 3, 5, 2, 14, 15, 9, 10, 13, 0, 7, 9, 0, 14, 9, 6, 3, 3, 4, 15, 6, 5, 10, 1, 2, 13, 8, 12, 5, 7, 14, 11, 12, 4, 11, 2, 15, 8, 1, 13, 1, 6, 10, 4, 13, 9, 0, 8, 6, 15, 9, 3, 8, 0, 7, 11, 4, 1, 15, 2, 14, 12, 3, 5, 11, 10, 5, 14, 2, 7, 12, 7, 13, 13, 8, 14, 11, 3, 5, 0, 6, 6, 15, 9, 0, 10, 3, 1, 4, 2, 7, 8, 2, 5, 12, 11, 1, 12, 10, 4, 14, 15, 9, 10, 3, 6, 15, 9, 0, 0, 6, 12, 10, 11, 1, 7, 13, 13, 8, 15, 9, 1, 4, 3, 5, 14, 11, 5, 12, 2, 7, 8, 2, 4, 14, 2, 14, 12, 11, 4, 2, 1, 12, 7, 4, 10, 7, 11, 13, 6, 1, 8, 5, 5, 0, 3, 15, 15, 10, 13, 3, 0, 9, 14, 8, 9, 6, 4, 11, 2, 8, 1, 12, 11, 7, 10, 1, 13, 14, 7, 2, 8, 13, 15, 6, 9, 15, 12, 0, 5, 9, 6, 10, 3, 4, 0, 5, 14, 3, 12, 10, 1, 15, 10, 4, 15, 2, 9, 7, 2, 12, 6, 9, 8, 5, 0, 6, 13, 1, 3, 13, 4, 14, 14, 0, 7, 11, 5, 3, 11, 8, 9, 4, 14, 3, 15, 2, 5, 12, 2, 9, 8, 5, 12, 15, 3, 10, 7, 11, 0, 14, 4, 1, 10, 7, 1, 6, 13, 0, 11, 8, 6, 13, 4, 13, 11, 0, 2, 11, 14, 7, 15, 4, 0, 9, 8, 1, 13, 10, 3, 14, 12, 3, 9, 5, 7, 12, 5, 2, 10, 15, 6, 8, 1, 6, 1, 6, 4, 11, 11, 13, 13, 8, 12, 1, 3, 4, 7, 10, 14, 7, 10, 9, 15, 5, 6, 0, 8, 15, 0, 14, 5, 2, 9, 3, 2, 12, 13, 1, 2, 15, 8, 13, 4, 8, 6, 10, 15, 3, 11, 7, 1, 4, 10, 12, 9, 5, 3, 6, 14, 11, 5, 0, 0, 14, 12, 9, 7, 2, 7, 2, 11, 1, 4, 14, 1, 7, 9, 4, 12, 10, 14, 8, 2, 13, 0, 15, 6, 12, 10, 9, 13, 0, 15, 3, 3, 5, 5, 6, 8, 11];
        n.substitute = function(e, t) {
            for (var n = 0, o = 0; o < 4; o++) n <<= 4, n |= r[64 * o + (e >>> 18 - 6 * o & 63)];
            for (o = 0; o < 4; o++) n <<= 4, n |= r[256 + 64 * o + (t >>> 18 - 6 * o & 63)];
            return n >>> 0
        };
        var i = [16, 25, 12, 11, 3, 20, 4, 15, 31, 17, 9, 6, 27, 14, 1, 22, 30, 24, 8, 18, 0, 5, 29, 23, 13, 19, 2, 26, 10, 21, 28, 7];
        n.permute = function(e) {
            for (var t = 0, n = 0; n < i.length; n++) t <<= 1, t |= e >>> i[n] & 1;
            return t >>> 0
        }, n.padSplit = function(e, t, n) {
            for (var o = e.toString(2); o.length < t;) o = "0" + o;
            for (var r = [], i = 0; i < t; i += n) r.push(o.slice(i, i + n));
            return r.join(" ")
        }
    }, {}],
    82: [function(e, t, n) {
        (function(t) {
            var o = e("./lib/generatePrime"),
                r = e("./lib/primes.json"),
                i = e("./lib/dh"),
                a = {
                    binary: !0,
                    hex: !0,
                    base64: !0
                };
            n.DiffieHellmanGroup = n.createDiffieHellmanGroup = n.getDiffieHellman = function(e) {
                var n = new t(r[e].prime, "hex"),
                    o = new t(r[e].gen, "hex");
                return new i(n, o)
            }, n.createDiffieHellman = n.DiffieHellman = function e(n, r, s, l) {
                return t.isBuffer(r) || void 0 === a[r] ? e(n, "binary", r, s) : (r = r || "binary", l = l || "binary", s = s || new t([2]), t.isBuffer(s) || (s = new t(s, l)), "number" == typeof n ? new i(o(n, s), s, !0) : (t.isBuffer(n) || (n = new t(n, r)), new i(n, s, !0)))
            }
        }).call(this, e("buffer").Buffer)
    }, {
        "./lib/dh": 83,
        "./lib/generatePrime": 84,
        "./lib/primes.json": 85,
        buffer: 65
    }],
    83: [function(e, t) {
        (function(n) {
            var o = e("bn.js"),
                r = new(e("miller-rabin")),
                i = new o(24),
                a = new o(11),
                s = new o(10),
                l = new o(3),
                c = new o(7),
                u = e("./generatePrime"),
                p = e("randombytes");

            function d(e, t) {
                return t = t || "utf8", n.isBuffer(e) || (e = new n(e, t)), this._pub = new o(e), this
            }

            function h(e, t) {
                return t = t || "utf8", n.isBuffer(e) || (e = new n(e, t)), this._priv = new o(e), this
            }
            t.exports = g;
            var f = {};

            function y(e, t) {
                var n = t.toString("hex"),
                    o = [n, e.toString(16)].join("_");
                if (o in f) return f[o];
                var p, d = 0;
                if (e.isEven() || !u.simpleSieve || !u.fermatTest(e) || !r.test(e)) return d += 1, d += "02" === n || "05" === n ? 8 : 4, f[o] = d, d;
                switch (r.test(e.shrn(1)) || (d += 2), n) {
                    case "02":
                        e.mod(i).cmp(a) && (d += 8);
                        break;
                    case "05":
                        (p = e.mod(s)).cmp(l) && p.cmp(c) && (d += 8);
                        break;
                    default:
                        d += 4
                }
                return f[o] = d, d
            }

            function g(e, t, n) {
                this.setGenerator(t), this.__prime = new o(e), this._prime = o.mont(this.__prime), this._primeLen = e.length, this._pub = void 0, this._priv = void 0, this._primeCode = void 0, n ? (this.setPublicKey = d, this.setPrivateKey = h) : this._primeCode = 8
            }

            function m(e, t) {
                var o = new n(e.toArray());
                return t ? o.toString(t) : o
            }
            Object.defineProperty(g.prototype, "verifyError", {
                enumerable: !0,
                get: function() {
                    return "number" != typeof this._primeCode && (this._primeCode = y(this.__prime, this.__gen)), this._primeCode
                }
            }), g.prototype.generateKeys = function() {
                return this._priv || (this._priv = new o(p(this._primeLen))), this._pub = this._gen.toRed(this._prime).redPow(this._priv).fromRed(), this.getPublicKey()
            }, g.prototype.computeSecret = function(e) {
                var t = (e = (e = new o(e)).toRed(this._prime)).redPow(this._priv).fromRed(),
                    r = new n(t.toArray()),
                    i = this.getPrime();
                if (r.length < i.length) {
                    var a = new n(i.length - r.length);
                    a.fill(0), r = n.concat([a, r])
                }
                return r
            }, g.prototype.getPublicKey = function(e) {
                return m(this._pub, e)
            }, g.prototype.getPrivateKey = function(e) {
                return m(this._priv, e)
            }, g.prototype.getPrime = function(e) {
                return m(this.__prime, e)
            }, g.prototype.getGenerator = function(e) {
                return m(this._gen, e)
            }, g.prototype.setGenerator = function(e, t) {
                return t = t || "utf8", n.isBuffer(e) || (e = new n(e, t)), this.__gen = e, this._gen = new o(e), this
            }
        }).call(this, e("buffer").Buffer)
    }, {
        "./generatePrime": 84,
        "bn.js": 86,
        buffer: 65,
        "miller-rabin": 140,
        randombytes: 165
    }],
    84: [function(e, t) {
        var n = e("randombytes");
        t.exports = m, m.simpleSieve = y, m.fermatTest = g;
        var o = e("bn.js"),
            r = new o(24),
            i = new(e("miller-rabin")),
            a = new o(1),
            s = new o(2),
            l = new o(5),
            c = (new o(16), new o(8), new o(10)),
            u = new o(3),
            p = (new o(7), new o(11)),
            d = new o(4),
            h = (new o(12), null);

        function f() {
            if (null !== h) return h;
            var e = [];
            e[0] = 2;
            for (var t = 1, n = 3; n < 1048576; n += 2) {
                for (var o = Math.ceil(Math.sqrt(n)), r = 0; r < t && e[r] <= o && n % e[r] != 0; r++);
                t !== r && e[r] <= o || (e[t++] = n)
            }
            return h = e, e
        }

        function y(e) {
            for (var t = f(), n = 0; n < t.length; n++)
                if (0 === e.modn(t[n])) return 0 === e.cmpn(t[n]);
            return !0
        }

        function g(e) {
            var t = o.mont(e);
            return 0 === s.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)
        }

        function m(e, t) {
            if (e < 16) return new o(2 === t || 5 === t ? [140, 123] : [140, 39]);
            var h, f;
            for (t = new o(t);;) {
                for (h = new o(n(Math.ceil(e / 8))); h.bitLength() > e;) h.ishrn(1);
                if (h.isEven() && h.iadd(a), h.testn(1) || h.iadd(s), t.cmp(s)) {
                    if (!t.cmp(l))
                        for (; h.mod(c).cmp(u);) h.iadd(d)
                } else
                    for (; h.mod(r).cmp(p);) h.iadd(d);
                if (y(f = h.shrn(1)) && y(h) && g(f) && g(h) && i.test(f) && i.test(h)) return h
            }
        }
    }, {
        "bn.js": 86,
        "miller-rabin": 140,
        randombytes: 165
    }],
    85: [function(e, t) {
        t.exports = {
            modp1: {
                gen: "02",
                prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"
            },
            modp2: {
                gen: "02",
                prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"
            },
            modp5: {
                gen: "02",
                prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"
            },
            modp14: {
                gen: "02",
                prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"
            },
            modp15: {
                gen: "02",
                prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"
            },
            modp16: {
                gen: "02",
                prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"
            },
            modp17: {
                gen: "02",
                prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"
            },
            modp18: {
                gen: "02",
                prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"
            }
        }
    }, {}],
    86: [function(e, t, n) {
        arguments[4][15][0].apply(n, arguments)
    }, {
        buffer: 19,
        dup: 15
    }],
    87: [function(e, t, n) {
        "use strict";
        var o = n;
        o.version = e("../package.json").version, o.utils = e("./elliptic/utils"), o.rand = e("brorand"), o.curve = e("./elliptic/curve"), o.curves = e("./elliptic/curves"), o.ec = e("./elliptic/ec"), o.eddsa = e("./elliptic/eddsa")
    }, {
        "../package.json": 103,
        "./elliptic/curve": 90,
        "./elliptic/curves": 93,
        "./elliptic/ec": 94,
        "./elliptic/eddsa": 97,
        "./elliptic/utils": 101,
        brorand: 18
    }],
    88: [function(e, t) {
        "use strict";
        var n = e("bn.js"),
            o = e("../utils"),
            r = o.getNAF,
            i = o.getJSF,
            a = o.assert;

        function s(e, t) {
            this.type = e, this.p = new n(t.p, 16), this.red = t.prime ? n.red(t.prime) : n.mont(this.p), this.zero = new n(0).toRed(this.red), this.one = new n(1).toRed(this.red), this.two = new n(2).toRed(this.red), this.n = t.n && new n(t.n, 16), this.g = t.g && this.pointFromJSON(t.g, t.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0;
            var o = this.n && this.p.div(this.n);
            !o || o.cmpn(100) > 0 ? this.redN = null : (this._maxwellTrick = !0, this.redN = this.n.toRed(this.red))
        }

        function l(e, t) {
            this.curve = e, this.type = t, this.precomputed = null
        }
        t.exports = s, s.prototype.point = function() {
            throw new Error("Not implemented")
        }, s.prototype.validate = function() {
            throw new Error("Not implemented")
        }, s.prototype._fixedNafMul = function(e, t) {
            a(e.precomputed);
            var n = e._getDoubles(),
                o = r(t, 1, this._bitLength),
                i = (1 << n.step + 1) - (n.step % 2 == 0 ? 2 : 1);
            i /= 3;
            var s, l, c = [];
            for (s = 0; s < o.length; s += n.step) {
                l = 0;
                for (var u = s + n.step - 1; u >= s; u--) l = (l << 1) + o[u];
                c.push(l)
            }
            for (var p = this.jpoint(null, null, null), d = this.jpoint(null, null, null), h = i; h > 0; h--) {
                for (s = 0; s < c.length; s++)(l = c[s]) === h ? d = d.mixedAdd(n.points[s]) : l === -h && (d = d.mixedAdd(n.points[s].neg()));
                p = p.add(d)
            }
            return p.toP()
        }, s.prototype._wnafMul = function(e, t) {
            var n = 4,
                o = e._getNAFPoints(n);
            n = o.wnd;
            for (var i = o.points, s = r(t, n, this._bitLength), l = this.jpoint(null, null, null), c = s.length - 1; c >= 0; c--) {
                for (var u = 0; c >= 0 && 0 === s[c]; c--) u++;
                if (c >= 0 && u++, l = l.dblp(u), c < 0) break;
                var p = s[c];
                a(0 !== p), l = "affine" === e.type ? p > 0 ? l.mixedAdd(i[p - 1 >> 1]) : l.mixedAdd(i[-p - 1 >> 1].neg()) : p > 0 ? l.add(i[p - 1 >> 1]) : l.add(i[-p - 1 >> 1].neg())
            }
            return "affine" === e.type ? l.toP() : l
        }, s.prototype._wnafMulAdd = function(e, t, n, o, a) {
            var s, l, c, u = this._wnafT1,
                p = this._wnafT2,
                d = this._wnafT3,
                h = 0;
            for (s = 0; s < o; s++) {
                var f = (c = t[s])._getNAFPoints(e);
                u[s] = f.wnd, p[s] = f.points
            }
            for (s = o - 1; s >= 1; s -= 2) {
                var y = s - 1,
                    g = s;
                if (1 === u[y] && 1 === u[g]) {
                    var m = [t[y], null, null, t[g]];
                    0 === t[y].y.cmp(t[g].y) ? (m[1] = t[y].add(t[g]), m[2] = t[y].toJ().mixedAdd(t[g].neg())) : 0 === t[y].y.cmp(t[g].y.redNeg()) ? (m[1] = t[y].toJ().mixedAdd(t[g]), m[2] = t[y].add(t[g].neg())) : (m[1] = t[y].toJ().mixedAdd(t[g]), m[2] = t[y].toJ().mixedAdd(t[g].neg()));
                    var I = [-3, -1, -5, -7, 0, 7, 5, 1, 3],
                        _ = i(n[y], n[g]);
                    for (h = Math.max(_[0].length, h), d[y] = new Array(h), d[g] = new Array(h), l = 0; l < h; l++) {
                        var C = 0 | _[0][l],
                            v = 0 | _[1][l];
                        d[y][l] = I[3 * (C + 1) + (v + 1)], d[g][l] = 0, p[y] = m
                    }
                } else d[y] = r(n[y], u[y], this._bitLength), d[g] = r(n[g], u[g], this._bitLength), h = Math.max(d[y].length, h), h = Math.max(d[g].length, h)
            }
            var b = this.jpoint(null, null, null),
                S = this._wnafT4;
            for (s = h; s >= 0; s--) {
                for (var w = 0; s >= 0;) {
                    var P = !0;
                    for (l = 0; l < o; l++) S[l] = 0 | d[l][s], 0 !== S[l] && (P = !1);
                    if (!P) break;
                    w++, s--
                }
                if (s >= 0 && w++, b = b.dblp(w), s < 0) break;
                for (l = 0; l < o; l++) {
                    var A = S[l];
                    0 !== A && (A > 0 ? c = p[l][A - 1 >> 1] : A < 0 && (c = p[l][-A - 1 >> 1].neg()), b = "affine" === c.type ? b.mixedAdd(c) : b.add(c))
                }
            }
            for (s = 0; s < o; s++) p[s] = null;
            return a ? b : b.toP()
        }, s.BasePoint = l, l.prototype.eq = function() {
            throw new Error("Not implemented")
        }, l.prototype.validate = function() {
            return this.curve.validate(this)
        }, s.prototype.decodePoint = function(e, t) {
            e = o.toArray(e, t);
            var n = this.p.byteLength();
            if ((4 === e[0] || 6 === e[0] || 7 === e[0]) && e.length - 1 == 2 * n) return 6 === e[0] ? a(e[e.length - 1] % 2 == 0) : 7 === e[0] && a(e[e.length - 1] % 2 == 1), this.point(e.slice(1, 1 + n), e.slice(1 + n, 1 + 2 * n));
            if ((2 === e[0] || 3 === e[0]) && e.length - 1 === n) return this.pointFromX(e.slice(1, 1 + n), 3 === e[0]);
            throw new Error("Unknown point format")
        }, l.prototype.encodeCompressed = function(e) {
            return this.encode(e, !0)
        }, l.prototype._encode = function(e) {
            var t = this.curve.p.byteLength(),
                n = this.getX().toArray("be", t);
            return e ? [this.getY().isEven() ? 2 : 3].concat(n) : [4].concat(n, this.getY().toArray("be", t))
        }, l.prototype.encode = function(e, t) {
            return o.encode(this._encode(t), e)
        }, l.prototype.precompute = function(e) {
            if (this.precomputed) return this;
            var t = {
                doubles: null,
                naf: null,
                beta: null
            };
            return t.naf = this._getNAFPoints(8), t.doubles = this._getDoubles(4, e), t.beta = this._getBeta(), this.precomputed = t, this
        }, l.prototype._hasDoubles = function(e) {
            if (!this.precomputed) return !1;
            var t = this.precomputed.doubles;
            return !!t && t.points.length >= Math.ceil((e.bitLength() + 1) / t.step)
        }, l.prototype._getDoubles = function(e, t) {
            if (this.precomputed && this.precomputed.doubles) return this.precomputed.doubles;
            for (var n = [this], o = this, r = 0; r < t; r += e) {
                for (var i = 0; i < e; i++) o = o.dbl();
                n.push(o)
            }
            return {
                step: e,
                points: n
            }
        }, l.prototype._getNAFPoints = function(e) {
            if (this.precomputed && this.precomputed.naf) return this.precomputed.naf;
            for (var t = [this], n = (1 << e) - 1, o = 1 === n ? null : this.dbl(), r = 1; r < n; r++) t[r] = t[r - 1].add(o);
            return {
                wnd: e,
                points: t
            }
        }, l.prototype._getBeta = function() {
            return null
        }, l.prototype.dblp = function(e) {
            for (var t = this, n = 0; n < e; n++) t = t.dbl();
            return t
        }
    }, {
        "../utils": 101,
        "bn.js": 102
    }],
    89: [function(e, t) {
        "use strict";
        var n = e("../utils"),
            o = e("bn.js"),
            r = e("inherits"),
            i = e("./base"),
            a = n.assert;

        function s(e) {
            this.twisted = 1 != (0 | e.a), this.mOneA = this.twisted && -1 == (0 | e.a), this.extended = this.mOneA, i.call(this, "edwards", e), this.a = new o(e.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new o(e.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new o(e.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), a(!this.twisted || 0 === this.c.fromRed().cmpn(1)), this.oneC = 1 == (0 | e.c)
        }

        function l(e, t, n, r, a) {
            i.BasePoint.call(this, e, "projective"), null === t && null === n && null === r ? (this.x = this.curve.zero, this.y = this.curve.one, this.z = this.curve.one, this.t = this.curve.zero, this.zOne = !0) : (this.x = new o(t, 16), this.y = new o(n, 16), this.z = r ? new o(r, 16) : this.curve.one, this.t = a && new o(a, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.t && !this.t.red && (this.t = this.t.toRed(this.curve.red)), this.zOne = this.z === this.curve.one, this.curve.extended && !this.t && (this.t = this.x.redMul(this.y), this.zOne || (this.t = this.t.redMul(this.z.redInvm()))))
        }
        r(s, i), t.exports = s, s.prototype._mulA = function(e) {
            return this.mOneA ? e.redNeg() : this.a.redMul(e)
        }, s.prototype._mulC = function(e) {
            return this.oneC ? e : this.c.redMul(e)
        }, s.prototype.jpoint = function(e, t, n, o) {
            return this.point(e, t, n, o)
        }, s.prototype.pointFromX = function(e, t) {
            (e = new o(e, 16)).red || (e = e.toRed(this.red));
            var n = e.redSqr(),
                r = this.c2.redSub(this.a.redMul(n)),
                i = this.one.redSub(this.c2.redMul(this.d).redMul(n)),
                a = r.redMul(i.redInvm()),
                s = a.redSqrt();
            if (0 !== s.redSqr().redSub(a).cmp(this.zero)) throw new Error("invalid point");
            var l = s.fromRed().isOdd();
            return (t && !l || !t && l) && (s = s.redNeg()), this.point(e, s)
        }, s.prototype.pointFromY = function(e, t) {
            (e = new o(e, 16)).red || (e = e.toRed(this.red));
            var n = e.redSqr(),
                r = n.redSub(this.c2),
                i = n.redMul(this.d).redMul(this.c2).redSub(this.a),
                a = r.redMul(i.redInvm());
            if (0 === a.cmp(this.zero)) {
                if (t) throw new Error("invalid point");
                return this.point(this.zero, e)
            }
            var s = a.redSqrt();
            if (0 !== s.redSqr().redSub(a).cmp(this.zero)) throw new Error("invalid point");
            return s.fromRed().isOdd() !== t && (s = s.redNeg()), this.point(s, e)
        }, s.prototype.validate = function(e) {
            if (e.isInfinity()) return !0;
            e.normalize();
            var t = e.x.redSqr(),
                n = e.y.redSqr(),
                o = t.redMul(this.a).redAdd(n),
                r = this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));
            return 0 === o.cmp(r)
        }, r(l, i.BasePoint), s.prototype.pointFromJSON = function(e) {
            return l.fromJSON(this, e)
        }, s.prototype.point = function(e, t, n, o) {
            return new l(this, e, t, n, o)
        }, l.fromJSON = function(e, t) {
            return new l(e, t[0], t[1], t[2])
        }, l.prototype.inspect = function() {
            return this.isInfinity() ? "<EC Point Infinity>" : "<EC Point x: " + this.x.fromRed().toString(16, 2) + " y: " + this.y.fromRed().toString(16, 2) + " z: " + this.z.fromRed().toString(16, 2) + ">"
        }, l.prototype.isInfinity = function() {
            return 0 === this.x.cmpn(0) && (0 === this.y.cmp(this.z) || this.zOne && 0 === this.y.cmp(this.curve.c))
        }, l.prototype._extDbl = function() {
            var e = this.x.redSqr(),
                t = this.y.redSqr(),
                n = this.z.redSqr();
            n = n.redIAdd(n);
            var o = this.curve._mulA(e),
                r = this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),
                i = o.redAdd(t),
                a = i.redSub(n),
                s = o.redSub(t),
                l = r.redMul(a),
                c = i.redMul(s),
                u = r.redMul(s),
                p = a.redMul(i);
            return this.curve.point(l, c, p, u)
        }, l.prototype._projDbl = function() {
            var e, t, n, o, r, i, a = this.x.redAdd(this.y).redSqr(),
                s = this.x.redSqr(),
                l = this.y.redSqr();
            if (this.curve.twisted) {
                var c = (o = this.curve._mulA(s)).redAdd(l);
                this.zOne ? (e = a.redSub(s).redSub(l).redMul(c.redSub(this.curve.two)), t = c.redMul(o.redSub(l)), n = c.redSqr().redSub(c).redSub(c)) : (r = this.z.redSqr(), i = c.redSub(r).redISub(r), e = a.redSub(s).redISub(l).redMul(i), t = c.redMul(o.redSub(l)), n = c.redMul(i))
            } else o = s.redAdd(l), r = this.curve._mulC(this.z).redSqr(), i = o.redSub(r).redSub(r), e = this.curve._mulC(a.redISub(o)).redMul(i), t = this.curve._mulC(o).redMul(s.redISub(l)), n = o.redMul(i);
            return this.curve.point(e, t, n)
        }, l.prototype.dbl = function() {
            return this.isInfinity() ? this : this.curve.extended ? this._extDbl() : this._projDbl()
        }, l.prototype._extAdd = function(e) {
            var t = this.y.redSub(this.x).redMul(e.y.redSub(e.x)),
                n = this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),
                o = this.t.redMul(this.curve.dd).redMul(e.t),
                r = this.z.redMul(e.z.redAdd(e.z)),
                i = n.redSub(t),
                a = r.redSub(o),
                s = r.redAdd(o),
                l = n.redAdd(t),
                c = i.redMul(a),
                u = s.redMul(l),
                p = i.redMul(l),
                d = a.redMul(s);
            return this.curve.point(c, u, d, p)
        }, l.prototype._projAdd = function(e) {
            var t, n, o = this.z.redMul(e.z),
                r = o.redSqr(),
                i = this.x.redMul(e.x),
                a = this.y.redMul(e.y),
                s = this.curve.d.redMul(i).redMul(a),
                l = r.redSub(s),
                c = r.redAdd(s),
                u = this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),
                p = o.redMul(l).redMul(u);
            return this.curve.twisted ? (t = o.redMul(c).redMul(a.redSub(this.curve._mulA(i))), n = l.redMul(c)) : (t = o.redMul(c).redMul(a.redSub(i)), n = this.curve._mulC(l).redMul(c)), this.curve.point(p, t, n)
        }, l.prototype.add = function(e) {
            return this.isInfinity() ? e : e.isInfinity() ? this : this.curve.extended ? this._extAdd(e) : this._projAdd(e)
        }, l.prototype.mul = function(e) {
            return this._hasDoubles(e) ? this.curve._fixedNafMul(this, e) : this.curve._wnafMul(this, e)
        }, l.prototype.mulAdd = function(e, t, n) {
            return this.curve._wnafMulAdd(1, [this, t], [e, n], 2, !1)
        }, l.prototype.jmulAdd = function(e, t, n) {
            return this.curve._wnafMulAdd(1, [this, t], [e, n], 2, !0)
        }, l.prototype.normalize = function() {
            if (this.zOne) return this;
            var e = this.z.redInvm();
            return this.x = this.x.redMul(e), this.y = this.y.redMul(e), this.t && (this.t = this.t.redMul(e)), this.z = this.curve.one, this.zOne = !0, this
        }, l.prototype.neg = function() {
            return this.curve.point(this.x.redNeg(), this.y, this.z, this.t && this.t.redNeg())
        }, l.prototype.getX = function() {
            return this.normalize(), this.x.fromRed()
        }, l.prototype.getY = function() {
            return this.normalize(), this.y.fromRed()
        }, l.prototype.eq = function(e) {
            return this === e || 0 === this.getX().cmp(e.getX()) && 0 === this.getY().cmp(e.getY())
        }, l.prototype.eqXToP = function(e) {
            var t = e.toRed(this.curve.red).redMul(this.z);
            if (0 === this.x.cmp(t)) return !0;
            for (var n = e.clone(), o = this.curve.redN.redMul(this.z);;) {
                if (n.iadd(this.curve.n), n.cmp(this.curve.p) >= 0) return !1;
                if (t.redIAdd(o), 0 === this.x.cmp(t)) return !0
            }
        }, l.prototype.toP = l.prototype.normalize, l.prototype.mixedAdd = l.prototype.add
    }, {
        "../utils": 101,
        "./base": 88,
        "bn.js": 102,
        inherits: 138
    }],
    90: [function(e, t, n) {
        "use strict";
        var o = n;
        o.base = e("./base"), o.short = e("./short"), o.mont = e("./mont"), o.edwards = e("./edwards")
    }, {
        "./base": 88,
        "./edwards": 89,
        "./mont": 91,
        "./short": 92
    }],
    91: [function(e, t) {
        "use strict";
        var n = e("bn.js"),
            o = e("inherits"),
            r = e("./base"),
            i = e("../utils");

        function a(e) {
            r.call(this, "mont", e), this.a = new n(e.a, 16).toRed(this.red), this.b = new n(e.b, 16).toRed(this.red), this.i4 = new n(4).toRed(this.red).redInvm(), this.two = new n(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two))
        }

        function s(e, t, o) {
            r.BasePoint.call(this, e, "projective"), null === t && null === o ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new n(t, 16), this.z = new n(o, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)))
        }
        o(a, r), t.exports = a, a.prototype.validate = function(e) {
            var t = e.normalize().x,
                n = t.redSqr(),
                o = n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);
            return 0 === o.redSqrt().redSqr().cmp(o)
        }, o(s, r.BasePoint), a.prototype.decodePoint = function(e, t) {
            return this.point(i.toArray(e, t), 1)
        }, a.prototype.point = function(e, t) {
            return new s(this, e, t)
        }, a.prototype.pointFromJSON = function(e) {
            return s.fromJSON(this, e)
        }, s.prototype.precompute = function() {}, s.prototype._encode = function() {
            return this.getX().toArray("be", this.curve.p.byteLength())
        }, s.fromJSON = function(e, t) {
            return new s(e, t[0], t[1] || e.one)
        }, s.prototype.inspect = function() {
            return this.isInfinity() ? "<EC Point Infinity>" : "<EC Point x: " + this.x.fromRed().toString(16, 2) + " z: " + this.z.fromRed().toString(16, 2) + ">"
        }, s.prototype.isInfinity = function() {
            return 0 === this.z.cmpn(0)
        }, s.prototype.dbl = function() {
            var e = this.x.redAdd(this.z).redSqr(),
                t = this.x.redSub(this.z).redSqr(),
                n = e.redSub(t),
                o = e.redMul(t),
                r = n.redMul(t.redAdd(this.curve.a24.redMul(n)));
            return this.curve.point(o, r)
        }, s.prototype.add = function() {
            throw new Error("Not supported on Montgomery curve")
        }, s.prototype.diffAdd = function(e, t) {
            var n = this.x.redAdd(this.z),
                o = this.x.redSub(this.z),
                r = e.x.redAdd(e.z),
                i = e.x.redSub(e.z).redMul(n),
                a = r.redMul(o),
                s = t.z.redMul(i.redAdd(a).redSqr()),
                l = t.x.redMul(i.redISub(a).redSqr());
            return this.curve.point(s, l)
        }, s.prototype.mul = function(e) {
            for (var t = e.clone(), n = this, o = this.curve.point(null, null), r = []; 0 !== t.cmpn(0); t.iushrn(1)) r.push(t.andln(1));
            for (var i = r.length - 1; i >= 0; i--) 0 === r[i] ? (n = n.diffAdd(o, this), o = o.dbl()) : (o = n.diffAdd(o, this), n = n.dbl());
            return o
        }, s.prototype.mulAdd = function() {
            throw new Error("Not supported on Montgomery curve")
        }, s.prototype.jumlAdd = function() {
            throw new Error("Not supported on Montgomery curve")
        }, s.prototype.eq = function(e) {
            return 0 === this.getX().cmp(e.getX())
        }, s.prototype.normalize = function() {
            return this.x = this.x.redMul(this.z.redInvm()), this.z = this.curve.one, this
        }, s.prototype.getX = function() {
            return this.normalize(), this.x.fromRed()
        }
    }, {
        "../utils": 101,
        "./base": 88,
        "bn.js": 102,
        inherits: 138
    }],
    92: [function(e, t) {
        "use strict";
        var n = e("../utils"),
            o = e("bn.js"),
            r = e("inherits"),
            i = e("./base"),
            a = n.assert;

        function s(e) {
            i.call(this, "short", e), this.a = new o(e.a, 16).toRed(this.red), this.b = new o(e.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = 0 === this.a.fromRed().cmpn(0), this.threeA = 0 === this.a.fromRed().sub(this.p).cmpn(-3), this.endo = this._getEndomorphism(e), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4)
        }

        function l(e, t, n, r) {
            i.BasePoint.call(this, e, "affine"), null === t && null === n ? (this.x = null, this.y = null, this.inf = !0) : (this.x = new o(t, 16), this.y = new o(n, 16), r && (this.x.forceRed(this.curve.red), this.y.forceRed(this.curve.red)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.inf = !1)
        }

        function c(e, t, n, r) {
            i.BasePoint.call(this, e, "jacobian"), null === t && null === n && null === r ? (this.x = this.curve.one, this.y = this.curve.one, this.z = new o(0)) : (this.x = new o(t, 16), this.y = new o(n, 16), this.z = new o(r, 16)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.zOne = this.z === this.curve.one
        }
        r(s, i), t.exports = s, s.prototype._getEndomorphism = function(e) {
            if (this.zeroA && this.g && this.n && 1 === this.p.modn(3)) {
                var t, n;
                if (e.beta) t = new o(e.beta, 16).toRed(this.red);
                else {
                    var r = this._getEndoRoots(this.p);
                    t = (t = r[0].cmp(r[1]) < 0 ? r[0] : r[1]).toRed(this.red)
                }
                if (e.lambda) n = new o(e.lambda, 16);
                else {
                    var i = this._getEndoRoots(this.n);
                    0 === this.g.mul(i[0]).x.cmp(this.g.x.redMul(t)) ? n = i[0] : (n = i[1], a(0 === this.g.mul(n).x.cmp(this.g.x.redMul(t))))
                }
                return {
                    beta: t,
                    lambda: n,
                    basis: e.basis ? e.basis.map(function(e) {
                        return {
                            a: new o(e.a, 16),
                            b: new o(e.b, 16)
                        }
                    }) : this._getEndoBasis(n)
                }
            }
        }, s.prototype._getEndoRoots = function(e) {
            var t = e === this.p ? this.red : o.mont(e),
                n = new o(2).toRed(t).redInvm(),
                r = n.redNeg(),
                i = new o(3).toRed(t).redNeg().redSqrt().redMul(n);
            return [r.redAdd(i).fromRed(), r.redSub(i).fromRed()]
        }, s.prototype._getEndoBasis = function(e) {
            for (var t, n, r, i, a, s, l, c, u, p = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), d = e, h = this.n.clone(), f = new o(1), y = new o(0), g = new o(0), m = new o(1), I = 0; 0 !== d.cmpn(0);) {
                var _ = h.div(d);
                c = h.sub(_.mul(d)), u = g.sub(_.mul(f));
                var C = m.sub(_.mul(y));
                if (!r && c.cmp(p) < 0) t = l.neg(), n = f, r = c.neg(), i = u;
                else if (r && 2 == ++I) break;
                l = c, h = d, d = c, g = f, f = u, m = y, y = C
            }
            a = c.neg(), s = u;
            var v = r.sqr().add(i.sqr());
            return a.sqr().add(s.sqr()).cmp(v) >= 0 && (a = t, s = n), r.negative && (r = r.neg(), i = i.neg()), a.negative && (a = a.neg(), s = s.neg()), [{
                a: r,
                b: i
            }, {
                a: a,
                b: s
            }]
        }, s.prototype._endoSplit = function(e) {
            var t = this.endo.basis,
                n = t[0],
                o = t[1],
                r = o.b.mul(e).divRound(this.n),
                i = n.b.neg().mul(e).divRound(this.n),
                a = r.mul(n.a),
                s = i.mul(o.a),
                l = r.mul(n.b),
                c = i.mul(o.b);
            return {
                k1: e.sub(a).sub(s),
                k2: l.add(c).neg()
            }
        }, s.prototype.pointFromX = function(e, t) {
            (e = new o(e, 16)).red || (e = e.toRed(this.red));
            var n = e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),
                r = n.redSqrt();
            if (0 !== r.redSqr().redSub(n).cmp(this.zero)) throw new Error("invalid point");
            var i = r.fromRed().isOdd();
            return (t && !i || !t && i) && (r = r.redNeg()), this.point(e, r)
        }, s.prototype.validate = function(e) {
            if (e.inf) return !0;
            var t = e.x,
                n = e.y,
                o = this.a.redMul(t),
                r = t.redSqr().redMul(t).redIAdd(o).redIAdd(this.b);
            return 0 === n.redSqr().redISub(r).cmpn(0)
        }, s.prototype._endoWnafMulAdd = function(e, t, n) {
            for (var o = this._endoWnafT1, r = this._endoWnafT2, i = 0; i < e.length; i++) {
                var a = this._endoSplit(t[i]),
                    s = e[i],
                    l = s._getBeta();
                a.k1.negative && (a.k1.ineg(), s = s.neg(!0)), a.k2.negative && (a.k2.ineg(), l = l.neg(!0)), o[2 * i] = s, o[2 * i + 1] = l, r[2 * i] = a.k1, r[2 * i + 1] = a.k2
            }
            for (var c = this._wnafMulAdd(1, o, r, 2 * i, n), u = 0; u < 2 * i; u++) o[u] = null, r[u] = null;
            return c
        }, r(l, i.BasePoint), s.prototype.point = function(e, t, n) {
            return new l(this, e, t, n)
        }, s.prototype.pointFromJSON = function(e, t) {
            return l.fromJSON(this, e, t)
        }, l.prototype._getBeta = function() {
            if (this.curve.endo) {
                var e = this.precomputed;
                if (e && e.beta) return e.beta;
                var t = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);
                if (e) {
                    var n = this.curve,
                        o = function(e) {
                            return n.point(e.x.redMul(n.endo.beta), e.y)
                        };
                    e.beta = t, t.precomputed = {
                        beta: null,
                        naf: e.naf && {
                            wnd: e.naf.wnd,
                            points: e.naf.points.map(o)
                        },
                        doubles: e.doubles && {
                            step: e.doubles.step,
                            points: e.doubles.points.map(o)
                        }
                    }
                }
                return t
            }
        }, l.prototype.toJSON = function() {
            return this.precomputed ? [this.x, this.y, this.precomputed && {
                doubles: this.precomputed.doubles && {
                    step: this.precomputed.doubles.step,
                    points: this.precomputed.doubles.points.slice(1)
                },
                naf: this.precomputed.naf && {
                    wnd: this.precomputed.naf.wnd,
                    points: this.precomputed.naf.points.slice(1)
                }
            }] : [this.x, this.y]
        }, l.fromJSON = function(e, t, n) {
            "string" == typeof t && (t = JSON.parse(t));
            var o = e.point(t[0], t[1], n);
            if (!t[2]) return o;

            function r(t) {
                return e.point(t[0], t[1], n)
            }
            var i = t[2];
            return o.precomputed = {
                beta: null,
                doubles: i.doubles && {
                    step: i.doubles.step,
                    points: [o].concat(i.doubles.points.map(r))
                },
                naf: i.naf && {
                    wnd: i.naf.wnd,
                    points: [o].concat(i.naf.points.map(r))
                }
            }, o
        }, l.prototype.inspect = function() {
            return this.isInfinity() ? "<EC Point Infinity>" : "<EC Point x: " + this.x.fromRed().toString(16, 2) + " y: " + this.y.fromRed().toString(16, 2) + ">"
        }, l.prototype.isInfinity = function() {
            return this.inf
        }, l.prototype.add = function(e) {
            if (this.inf) return e;
            if (e.inf) return this;
            if (this.eq(e)) return this.dbl();
            if (this.neg().eq(e)) return this.curve.point(null, null);
            if (0 === this.x.cmp(e.x)) return this.curve.point(null, null);
            var t = this.y.redSub(e.y);
            0 !== t.cmpn(0) && (t = t.redMul(this.x.redSub(e.x).redInvm()));
            var n = t.redSqr().redISub(this.x).redISub(e.x),
                o = t.redMul(this.x.redSub(n)).redISub(this.y);
            return this.curve.point(n, o)
        }, l.prototype.dbl = function() {
            if (this.inf) return this;
            var e = this.y.redAdd(this.y);
            if (0 === e.cmpn(0)) return this.curve.point(null, null);
            var t = this.curve.a,
                n = this.x.redSqr(),
                o = e.redInvm(),
                r = n.redAdd(n).redIAdd(n).redIAdd(t).redMul(o),
                i = r.redSqr().redISub(this.x.redAdd(this.x)),
                a = r.redMul(this.x.redSub(i)).redISub(this.y);
            return this.curve.point(i, a)
        }, l.prototype.getX = function() {
            return this.x.fromRed()
        }, l.prototype.getY = function() {
            return this.y.fromRed()
        }, l.prototype.mul = function(e) {
            return e = new o(e, 16), this.isInfinity() ? this : this._hasDoubles(e) ? this.curve._fixedNafMul(this, e) : this.curve.endo ? this.curve._endoWnafMulAdd([this], [e]) : this.curve._wnafMul(this, e)
        }, l.prototype.mulAdd = function(e, t, n) {
            var o = [this, t],
                r = [e, n];
            return this.curve.endo ? this.curve._endoWnafMulAdd(o, r) : this.curve._wnafMulAdd(1, o, r, 2)
        }, l.prototype.jmulAdd = function(e, t, n) {
            var o = [this, t],
                r = [e, n];
            return this.curve.endo ? this.curve._endoWnafMulAdd(o, r, !0) : this.curve._wnafMulAdd(1, o, r, 2, !0)
        }, l.prototype.eq = function(e) {
            return this === e || this.inf === e.inf && (this.inf || 0 === this.x.cmp(e.x) && 0 === this.y.cmp(e.y))
        }, l.prototype.neg = function(e) {
            if (this.inf) return this;
            var t = this.curve.point(this.x, this.y.redNeg());
            if (e && this.precomputed) {
                var n = this.precomputed,
                    o = function(e) {
                        return e.neg()
                    };
                t.precomputed = {
                    naf: n.naf && {
                        wnd: n.naf.wnd,
                        points: n.naf.points.map(o)
                    },
                    doubles: n.doubles && {
                        step: n.doubles.step,
                        points: n.doubles.points.map(o)
                    }
                }
            }
            return t
        }, l.prototype.toJ = function() {
            return this.inf ? this.curve.jpoint(null, null, null) : this.curve.jpoint(this.x, this.y, this.curve.one)
        }, r(c, i.BasePoint), s.prototype.jpoint = function(e, t, n) {
            return new c(this, e, t, n)
        }, c.prototype.toP = function() {
            if (this.isInfinity()) return this.curve.point(null, null);
            var e = this.z.redInvm(),
                t = e.redSqr(),
                n = this.x.redMul(t),
                o = this.y.redMul(t).redMul(e);
            return this.curve.point(n, o)
        }, c.prototype.neg = function() {
            return this.curve.jpoint(this.x, this.y.redNeg(), this.z)
        }, c.prototype.add = function(e) {
            if (this.isInfinity()) return e;
            if (e.isInfinity()) return this;
            var t = e.z.redSqr(),
                n = this.z.redSqr(),
                o = this.x.redMul(t),
                r = e.x.redMul(n),
                i = this.y.redMul(t.redMul(e.z)),
                a = e.y.redMul(n.redMul(this.z)),
                s = o.redSub(r),
                l = i.redSub(a);
            if (0 === s.cmpn(0)) return 0 !== l.cmpn(0) ? this.curve.jpoint(null, null, null) : this.dbl();
            var c = s.redSqr(),
                u = c.redMul(s),
                p = o.redMul(c),
                d = l.redSqr().redIAdd(u).redISub(p).redISub(p),
                h = l.redMul(p.redISub(d)).redISub(i.redMul(u)),
                f = this.z.redMul(e.z).redMul(s);
            return this.curve.jpoint(d, h, f)
        }, c.prototype.mixedAdd = function(e) {
            if (this.isInfinity()) return e.toJ();
            if (e.isInfinity()) return this;
            var t = this.z.redSqr(),
                n = this.x,
                o = e.x.redMul(t),
                r = this.y,
                i = e.y.redMul(t).redMul(this.z),
                a = n.redSub(o),
                s = r.redSub(i);
            if (0 === a.cmpn(0)) return 0 !== s.cmpn(0) ? this.curve.jpoint(null, null, null) : this.dbl();
            var l = a.redSqr(),
                c = l.redMul(a),
                u = n.redMul(l),
                p = s.redSqr().redIAdd(c).redISub(u).redISub(u),
                d = s.redMul(u.redISub(p)).redISub(r.redMul(c)),
                h = this.z.redMul(a);
            return this.curve.jpoint(p, d, h)
        }, c.prototype.dblp = function(e) {
            if (0 === e) return this;
            if (this.isInfinity()) return this;
            if (!e) return this.dbl();
            var t;
            if (this.curve.zeroA || this.curve.threeA) {
                var n = this;
                for (t = 0; t < e; t++) n = n.dbl();
                return n
            }
            var o = this.curve.a,
                r = this.curve.tinv,
                i = this.x,
                a = this.y,
                s = this.z,
                l = s.redSqr().redSqr(),
                c = a.redAdd(a);
            for (t = 0; t < e; t++) {
                var u = i.redSqr(),
                    p = c.redSqr(),
                    d = p.redSqr(),
                    h = u.redAdd(u).redIAdd(u).redIAdd(o.redMul(l)),
                    f = i.redMul(p),
                    y = h.redSqr().redISub(f.redAdd(f)),
                    g = f.redISub(y),
                    m = h.redMul(g);
                m = m.redIAdd(m).redISub(d);
                var I = c.redMul(s);
                t + 1 < e && (l = l.redMul(d)), i = y, s = I, c = m
            }
            return this.curve.jpoint(i, c.redMul(r), s)
        }, c.prototype.dbl = function() {
            return this.isInfinity() ? this : this.curve.zeroA ? this._zeroDbl() : this.curve.threeA ? this._threeDbl() : this._dbl()
        }, c.prototype._zeroDbl = function() {
            var e, t, n;
            if (this.zOne) {
                var o = this.x.redSqr(),
                    r = this.y.redSqr(),
                    i = r.redSqr(),
                    a = this.x.redAdd(r).redSqr().redISub(o).redISub(i);
                a = a.redIAdd(a);
                var s = o.redAdd(o).redIAdd(o),
                    l = s.redSqr().redISub(a).redISub(a),
                    c = i.redIAdd(i);
                c = (c = c.redIAdd(c)).redIAdd(c), e = l, t = s.redMul(a.redISub(l)).redISub(c), n = this.y.redAdd(this.y)
            } else {
                var u = this.x.redSqr(),
                    p = this.y.redSqr(),
                    d = p.redSqr(),
                    h = this.x.redAdd(p).redSqr().redISub(u).redISub(d);
                h = h.redIAdd(h);
                var f = u.redAdd(u).redIAdd(u),
                    y = f.redSqr(),
                    g = d.redIAdd(d);
                g = (g = g.redIAdd(g)).redIAdd(g), e = y.redISub(h).redISub(h), t = f.redMul(h.redISub(e)).redISub(g), n = (n = this.y.redMul(this.z)).redIAdd(n)
            }
            return this.curve.jpoint(e, t, n)
        }, c.prototype._threeDbl = function() {
            var e, t, n;
            if (this.zOne) {
                var o = this.x.redSqr(),
                    r = this.y.redSqr(),
                    i = r.redSqr(),
                    a = this.x.redAdd(r).redSqr().redISub(o).redISub(i);
                a = a.redIAdd(a);
                var s = o.redAdd(o).redIAdd(o).redIAdd(this.curve.a),
                    l = s.redSqr().redISub(a).redISub(a);
                e = l;
                var c = i.redIAdd(i);
                c = (c = c.redIAdd(c)).redIAdd(c), t = s.redMul(a.redISub(l)).redISub(c), n = this.y.redAdd(this.y)
            } else {
                var u = this.z.redSqr(),
                    p = this.y.redSqr(),
                    d = this.x.redMul(p),
                    h = this.x.redSub(u).redMul(this.x.redAdd(u));
                h = h.redAdd(h).redIAdd(h);
                var f = d.redIAdd(d),
                    y = (f = f.redIAdd(f)).redAdd(f);
                e = h.redSqr().redISub(y), n = this.y.redAdd(this.z).redSqr().redISub(p).redISub(u);
                var g = p.redSqr();
                g = (g = (g = g.redIAdd(g)).redIAdd(g)).redIAdd(g), t = h.redMul(f.redISub(e)).redISub(g)
            }
            return this.curve.jpoint(e, t, n)
        }, c.prototype._dbl = function() {
            var e = this.curve.a,
                t = this.x,
                n = this.y,
                o = this.z,
                r = o.redSqr().redSqr(),
                i = t.redSqr(),
                a = n.redSqr(),
                s = i.redAdd(i).redIAdd(i).redIAdd(e.redMul(r)),
                l = t.redAdd(t),
                c = (l = l.redIAdd(l)).redMul(a),
                u = s.redSqr().redISub(c.redAdd(c)),
                p = c.redISub(u),
                d = a.redSqr();
            d = (d = (d = d.redIAdd(d)).redIAdd(d)).redIAdd(d);
            var h = s.redMul(p).redISub(d),
                f = n.redAdd(n).redMul(o);
            return this.curve.jpoint(u, h, f)
        }, c.prototype.trpl = function() {
            if (!this.curve.zeroA) return this.dbl().add(this);
            var e = this.x.redSqr(),
                t = this.y.redSqr(),
                n = this.z.redSqr(),
                o = t.redSqr(),
                r = e.redAdd(e).redIAdd(e),
                i = r.redSqr(),
                a = this.x.redAdd(t).redSqr().redISub(e).redISub(o),
                s = (a = (a = (a = a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(i)).redSqr(),
                l = o.redIAdd(o);
            l = (l = (l = l.redIAdd(l)).redIAdd(l)).redIAdd(l);
            var c = r.redIAdd(a).redSqr().redISub(i).redISub(s).redISub(l),
                u = t.redMul(c);
            u = (u = u.redIAdd(u)).redIAdd(u);
            var p = this.x.redMul(s).redISub(u);
            p = (p = p.redIAdd(p)).redIAdd(p);
            var d = this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));
            d = (d = (d = d.redIAdd(d)).redIAdd(d)).redIAdd(d);
            var h = this.z.redAdd(a).redSqr().redISub(n).redISub(s);
            return this.curve.jpoint(p, d, h)
        }, c.prototype.mul = function(e, t) {
            return e = new o(e, t), this.curve._wnafMul(this, e)
        }, c.prototype.eq = function(e) {
            if ("affine" === e.type) return this.eq(e.toJ());
            if (this === e) return !0;
            var t = this.z.redSqr(),
                n = e.z.redSqr();
            if (0 !== this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0)) return !1;
            var o = t.redMul(this.z),
                r = n.redMul(e.z);
            return 0 === this.y.redMul(r).redISub(e.y.redMul(o)).cmpn(0)
        }, c.prototype.eqXToP = function(e) {
            var t = this.z.redSqr(),
                n = e.toRed(this.curve.red).redMul(t);
            if (0 === this.x.cmp(n)) return !0;
            for (var o = e.clone(), r = this.curve.redN.redMul(t);;) {
                if (o.iadd(this.curve.n), o.cmp(this.curve.p) >= 0) return !1;
                if (n.redIAdd(r), 0 === this.x.cmp(n)) return !0
            }
        }, c.prototype.inspect = function() {
            return this.isInfinity() ? "<EC JPoint Infinity>" : "<EC JPoint x: " + this.x.toString(16, 2) + " y: " + this.y.toString(16, 2) + " z: " + this.z.toString(16, 2) + ">"
        }, c.prototype.isInfinity = function() {
            return 0 === this.z.cmpn(0)
        }
    }, {
        "../utils": 101,
        "./base": 88,
        "bn.js": 102,
        inherits: 138
    }],
    93: [function(e, t, n) {
        "use strict";
        var o, r = n,
            i = e("hash.js"),
            a = e("./curve"),
            s = e("./utils").assert;

        function l(e) {
            "short" === e.type ? this.curve = new a.short(e) : "edwards" === e.type ? this.curve = new a.edwards(e) : this.curve = new a.mont(e), this.g = this.curve.g, this.n = this.curve.n, this.hash = e.hash, s(this.g.validate(), "Invalid curve"), s(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O")
        }

        function c(e, t) {
            Object.defineProperty(r, e, {
                configurable: !0,
                enumerable: !0,
                get: function() {
                    var n = new l(t);
                    return Object.defineProperty(r, e, {
                        configurable: !0,
                        enumerable: !0,
                        value: n
                    }), n
                }
            })
        }
        r.PresetCurve = l, c("p192", {
            type: "short",
            prime: "p192",
            p: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",
            a: "ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",
            b: "64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",
            n: "ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",
            hash: i.sha256,
            gRed: !1,
            g: ["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]
        }), c("p224", {
            type: "short",
            prime: "p224",
            p: "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",
            a: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",
            b: "b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",
            n: "ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",
            hash: i.sha256,
            gRed: !1,
            g: ["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]
        }), c("p256", {
            type: "short",
            prime: null,
            p: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",
            a: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",
            b: "5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",
            n: "ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",
            hash: i.sha256,
            gRed: !1,
            g: ["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]
        }), c("p384", {
            type: "short",
            prime: null,
            p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",
            a: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",
            b: "b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",
            n: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",
            hash: i.sha384,
            gRed: !1,
            g: ["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7", "3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]
        }), c("p521", {
            type: "short",
            prime: null,
            p: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",
            a: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",
            b: "00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",
            n: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",
            hash: i.sha512,
            gRed: !1,
            g: ["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66", "00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]
        }), c("curve25519", {
            type: "mont",
            prime: "p25519",
            p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",
            a: "76d06",
            b: "1",
            n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",
            hash: i.sha256,
            gRed: !1,
            g: ["9"]
        }), c("ed25519", {
            type: "edwards",
            prime: "p25519",
            p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",
            a: "-1",
            c: "1",
            d: "52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",
            n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",
            hash: i.sha256,
            gRed: !1,
            g: ["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a", "6666666666666666666666666666666666666666666666666666666666666658"]
        });
        try {
            o = e("./precomputed/secp256k1")
        } catch (u) {
            o = void 0
        }
        c("secp256k1", {
            type: "short",
            prime: "k256",
            p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",
            a: "0",
            b: "7",
            n: "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",
            h: "1",
            hash: i.sha256,
            beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",
            lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",
            basis: [{
                a: "3086d221a7d46bcde86c90e49284eb15",
                b: "-e4437ed6010e88286f547fa90abfe4c3"
            }, {
                a: "114ca50f7a8e2f3f657c1108d9d44cfd8",
                b: "3086d221a7d46bcde86c90e49284eb15"
            }],
            gRed: !1,
            g: ["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", o]
        })
    }, {
        "./curve": 90,
        "./precomputed/secp256k1": 100,
        "./utils": 101,
        "hash.js": 124
    }],
    94: [function(e, t) {
        "use strict";
        var n = e("bn.js"),
            o = e("hmac-drbg"),
            r = e("../utils"),
            i = e("../curves"),
            a = e("brorand"),
            s = r.assert,
            l = e("./key"),
            c = e("./signature");

        function u(e) {
            if (!(this instanceof u)) return new u(e);
            "string" == typeof e && (s(Object.prototype.hasOwnProperty.call(i, e), "Unknown curve " + e), e = i[e]), e instanceof i.PresetCurve && (e = {
                curve: e
            }), this.curve = e.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = e.curve.g, this.g.precompute(e.curve.n.bitLength() + 1), this.hash = e.hash || e.curve.hash
        }
        t.exports = u, u.prototype.keyPair = function(e) {
            return new l(this, e)
        }, u.prototype.keyFromPrivate = function(e, t) {
            return l.fromPrivate(this, e, t)
        }, u.prototype.keyFromPublic = function(e, t) {
            return l.fromPublic(this, e, t)
        }, u.prototype.genKeyPair = function(e) {
            e || (e = {});
            for (var t = new o({
                    hash: this.hash,
                    pers: e.pers,
                    persEnc: e.persEnc || "utf8",
                    entropy: e.entropy || a(this.hash.hmacStrength),
                    entropyEnc: e.entropy && e.entropyEnc || "utf8",
                    nonce: this.n.toArray()
                }), r = this.n.byteLength(), i = this.n.sub(new n(2));;) {
                var s = new n(t.generate(r));
                if (!(s.cmp(i) > 0)) return s.iaddn(1), this.keyFromPrivate(s)
            }
        }, u.prototype._truncateToN = function(e, t) {
            var n = 8 * e.byteLength() - this.n.bitLength();
            return n > 0 && (e = e.ushrn(n)), !t && e.cmp(this.n) >= 0 ? e.sub(this.n) : e
        }, u.prototype.sign = function(e, t, r, i) {
            "object" == typeof r && (i = r, r = null), i || (i = {}), t = this.keyFromPrivate(t, r), e = this._truncateToN(new n(e, 16));
            for (var a = this.n.byteLength(), s = t.getPrivate().toArray("be", a), l = e.toArray("be", a), u = new o({
                    hash: this.hash,
                    entropy: s,
                    nonce: l,
                    pers: i.pers,
                    persEnc: i.persEnc || "utf8"
                }), p = this.n.sub(new n(1)), d = 0;; d++) {
                var h = i.k ? i.k(d) : new n(u.generate(this.n.byteLength()));
                if (!((h = this._truncateToN(h, !0)).cmpn(1) <= 0 || h.cmp(p) >= 0)) {
                    var f = this.g.mul(h);
                    if (!f.isInfinity()) {
                        var y = f.getX(),
                            g = y.umod(this.n);
                        if (0 !== g.cmpn(0)) {
                            var m = h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));
                            if (0 !== (m = m.umod(this.n)).cmpn(0)) {
                                var I = (f.getY().isOdd() ? 1 : 0) | (0 !== y.cmp(g) ? 2 : 0);
                                return i.canonical && m.cmp(this.nh) > 0 && (m = this.n.sub(m), I ^= 1), new c({
                                    r: g,
                                    s: m,
                                    recoveryParam: I
                                })
                            }
                        }
                    }
                }
            }
        }, u.prototype.verify = function(e, t, o, r) {
            e = this._truncateToN(new n(e, 16)), o = this.keyFromPublic(o, r);
            var i = (t = new c(t, "hex")).r,
                a = t.s;
            if (i.cmpn(1) < 0 || i.cmp(this.n) >= 0) return !1;
            if (a.cmpn(1) < 0 || a.cmp(this.n) >= 0) return !1;
            var s, l = a.invm(this.n),
                u = l.mul(e).umod(this.n),
                p = l.mul(i).umod(this.n);
            return this.curve._maxwellTrick ? !(s = this.g.jmulAdd(u, o.getPublic(), p)).isInfinity() && s.eqXToP(i) : !(s = this.g.mulAdd(u, o.getPublic(), p)).isInfinity() && 0 === s.getX().umod(this.n).cmp(i)
        }, u.prototype.recoverPubKey = function(e, t, o, r) {
            s((3 & o) === o, "The recovery param is more than two bits"), t = new c(t, r);
            var i = this.n,
                a = new n(e),
                l = t.r,
                u = t.s,
                p = 1 & o,
                d = o >> 1;
            if (l.cmp(this.curve.p.umod(this.curve.n)) >= 0 && d) throw new Error("Unable to find sencond key candinate");
            l = d ? this.curve.pointFromX(l.add(this.curve.n), p) : this.curve.pointFromX(l, p);
            var h = t.r.invm(i),
                f = i.sub(a).mul(h).umod(i),
                y = u.mul(h).umod(i);
            return this.g.mulAdd(f, l, y)
        }, u.prototype.getKeyRecoveryParam = function(e, t, n, o) {
            if (null !== (t = new c(t, o)).recoveryParam) return t.recoveryParam;
            for (var r = 0; r < 4; r++) {
                var i;
                try {
                    i = this.recoverPubKey(e, t, r)
                } catch (e) {
                    continue
                }
                if (i.eq(n)) return r
            }
            throw new Error("Unable to find valid recovery factor")
        }
    }, {
        "../curves": 93,
        "../utils": 101,
        "./key": 95,
        "./signature": 96,
        "bn.js": 102,
        brorand: 18,
        "hmac-drbg": 136
    }],
    95: [function(e, t) {
        "use strict";
        var n = e("bn.js"),
            o = e("../utils").assert;

        function r(e, t) {
            this.ec = e, this.priv = null, this.pub = null, t.priv && this._importPrivate(t.priv, t.privEnc), t.pub && this._importPublic(t.pub, t.pubEnc)
        }
        t.exports = r, r.fromPublic = function(e, t, n) {
            return t instanceof r ? t : new r(e, {
                pub: t,
                pubEnc: n
            })
        }, r.fromPrivate = function(e, t, n) {
            return t instanceof r ? t : new r(e, {
                priv: t,
                privEnc: n
            })
        }, r.prototype.validate = function() {
            var e = this.getPublic();
            return e.isInfinity() ? {
                result: !1,
                reason: "Invalid public key"
            } : e.validate() ? e.mul(this.ec.curve.n).isInfinity() ? {
                result: !0,
                reason: null
            } : {
                result: !1,
                reason: "Public key * N != O"
            } : {
                result: !1,
                reason: "Public key is not a point"
            }
        }, r.prototype.getPublic = function(e, t) {
            return "string" == typeof e && (t = e, e = null), this.pub || (this.pub = this.ec.g.mul(this.priv)), t ? this.pub.encode(t, e) : this.pub
        }, r.prototype.getPrivate = function(e) {
            return "hex" === e ? this.priv.toString(16, 2) : this.priv
        }, r.prototype._importPrivate = function(e, t) {
            this.priv = new n(e, t || 16), this.priv = this.priv.umod(this.ec.curve.n)
        }, r.prototype._importPublic = function(e, t) {
            if (e.x || e.y) return "mont" === this.ec.curve.type ? o(e.x, "Need x coordinate") : "short" !== this.ec.curve.type && "edwards" !== this.ec.curve.type || o(e.x && e.y, "Need both x and y coordinate"), void(this.pub = this.ec.curve.point(e.x, e.y));
            this.pub = this.ec.curve.decodePoint(e, t)
        }, r.prototype.derive = function(e) {
            return e.validate() || o(e.validate(), "public point not validated"), e.mul(this.priv).getX()
        }, r.prototype.sign = function(e, t, n) {
            return this.ec.sign(e, this, t, n)
        }, r.prototype.verify = function(e, t) {
            return this.ec.verify(e, t, this)
        }, r.prototype.inspect = function() {
            return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >"
        }
    }, {
        "../utils": 101,
        "bn.js": 102
    }],
    96: [function(e, t) {
        "use strict";
        var n = e("bn.js"),
            o = e("../utils"),
            r = o.assert;

        function i(e, t) {
            if (e instanceof i) return e;
            this._importDER(e, t) || (r(e.r && e.s, "Signature without r or s"), this.r = new n(e.r, 16), this.s = new n(e.s, 16), void 0 === e.recoveryParam ? this.recoveryParam = null : this.recoveryParam = e.recoveryParam)
        }

        function a() {
            this.place = 0
        }

        function s(e, t) {
            var n = e[t.place++];
            if (!(128 & n)) return n;
            var o = 15 & n;
            if (0 === o || o > 4) return !1;
            for (var r = 0, i = 0, a = t.place; i < o; i++, a++) r <<= 8, r |= e[a], r >>>= 0;
            return !(r <= 127) && (t.place = a, r)
        }

        function l(e) {
            for (var t = 0, n = e.length - 1; !e[t] && !(128 & e[t + 1]) && t < n;) t++;
            return 0 === t ? e : e.slice(t)
        }

        function c(e, t) {
            if (t < 128) e.push(t);
            else {
                var n = 1 + (Math.log(t) / Math.LN2 >>> 3);
                for (e.push(128 | n); --n;) e.push(t >>> (n << 3) & 255);
                e.push(t)
            }
        }
        t.exports = i, i.prototype._importDER = function(e, t) {
            e = o.toArray(e, t);
            var r = new a;
            if (48 !== e[r.place++]) return !1;
            var i = s(e, r);
            if (!1 === i) return !1;
            if (i + r.place !== e.length) return !1;
            if (2 !== e[r.place++]) return !1;
            var l = s(e, r);
            if (!1 === l) return !1;
            var c = e.slice(r.place, l + r.place);
            if (r.place += l, 2 !== e[r.place++]) return !1;
            var u = s(e, r);
            if (!1 === u) return !1;
            if (e.length !== u + r.place) return !1;
            var p = e.slice(r.place, u + r.place);
            if (0 === c[0]) {
                if (!(128 & c[1])) return !1;
                c = c.slice(1)
            }
            if (0 === p[0]) {
                if (!(128 & p[1])) return !1;
                p = p.slice(1)
            }
            return this.r = new n(c), this.s = new n(p), this.recoveryParam = null, !0
        }, i.prototype.toDER = function(e) {
            var t = this.r.toArray(),
                n = this.s.toArray();
            for (128 & t[0] && (t = [0].concat(t)), 128 & n[0] && (n = [0].concat(n)), t = l(t), n = l(n); !(n[0] || 128 & n[1]);) n = n.slice(1);
            var r = [2];
            c(r, t.length), (r = r.concat(t)).push(2), c(r, n.length);
            var i = r.concat(n),
                a = [48];
            return c(a, i.length), a = a.concat(i), o.encode(a, e)
        }
    }, {
        "../utils": 101,
        "bn.js": 102
    }],
    97: [function(e, t) {
        "use strict";
        var n = e("hash.js"),
            o = e("../curves"),
            r = e("../utils"),
            i = r.assert,
            a = r.parseBytes,
            s = e("./key"),
            l = e("./signature");

        function c(e) {
            if (i("ed25519" === e, "only tested with ed25519 so far"), !(this instanceof c)) return new c(e);
            e = o[e].curve, this.curve = e, this.g = e.g, this.g.precompute(e.n.bitLength() + 1), this.pointClass = e.point().constructor, this.encodingLength = Math.ceil(e.n.bitLength() / 8), this.hash = n.sha512
        }
        t.exports = c, c.prototype.sign = function(e, t) {
            e = a(e);
            var n = this.keyFromSecret(t),
                o = this.hashInt(n.messagePrefix(), e),
                r = this.g.mul(o),
                i = this.encodePoint(r),
                s = this.hashInt(i, n.pubBytes(), e).mul(n.priv()),
                l = o.add(s).umod(this.curve.n);
            return this.makeSignature({
                R: r,
                S: l,
                Rencoded: i
            })
        }, c.prototype.verify = function(e, t, n) {
            e = a(e), t = this.makeSignature(t);
            var o = this.keyFromPublic(n),
                r = this.hashInt(t.Rencoded(), o.pubBytes(), e),
                i = this.g.mul(t.S());
            return t.R().add(o.pub().mul(r)).eq(i)
        }, c.prototype.hashInt = function() {
            for (var e = this.hash(), t = 0; t < arguments.length; t++) e.update(arguments[t]);
            return r.intFromLE(e.digest()).umod(this.curve.n)
        }, c.prototype.keyFromPublic = function(e) {
            return s.fromPublic(this, e)
        }, c.prototype.keyFromSecret = function(e) {
            return s.fromSecret(this, e)
        }, c.prototype.makeSignature = function(e) {
            return e instanceof l ? e : new l(this, e)
        }, c.prototype.encodePoint = function(e) {
            var t = e.getY().toArray("le", this.encodingLength);
            return t[this.encodingLength - 1] |= e.getX().isOdd() ? 128 : 0, t
        }, c.prototype.decodePoint = function(e) {
            var t = (e = r.parseBytes(e)).length - 1,
                n = e.slice(0, t).concat(-129 & e[t]),
                o = 0 != (128 & e[t]),
                i = r.intFromLE(n);
            return this.curve.pointFromY(i, o)
        }, c.prototype.encodeInt = function(e) {
            return e.toArray("le", this.encodingLength)
        }, c.prototype.decodeInt = function(e) {
            return r.intFromLE(e)
        }, c.prototype.isPoint = function(e) {
            return e instanceof this.pointClass
        }
    }, {
        "../curves": 93,
        "../utils": 101,
        "./key": 98,
        "./signature": 99,
        "hash.js": 124
    }],
    98: [function(e, t) {
        "use strict";
        var n = e("../utils"),
            o = n.assert,
            r = n.parseBytes,
            i = n.cachedProperty;

        function a(e, t) {
            this.eddsa = e, this._secret = r(t.secret), e.isPoint(t.pub) ? this._pub = t.pub : this._pubBytes = r(t.pub)
        }
        a.fromPublic = function(e, t) {
            return t instanceof a ? t : new a(e, {
                pub: t
            })
        }, a.fromSecret = function(e, t) {
            return t instanceof a ? t : new a(e, {
                secret: t
            })
        }, a.prototype.secret = function() {
            return this._secret
        }, i(a, "pubBytes", function() {
            return this.eddsa.encodePoint(this.pub())
        }), i(a, "pub", function() {
            return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv())
        }), i(a, "privBytes", function() {
            var e = this.eddsa,
                t = this.hash(),
                n = e.encodingLength - 1,
                o = t.slice(0, e.encodingLength);
            return o[0] &= 248, o[n] &= 127, o[n] |= 64, o
        }), i(a, "priv", function() {
            return this.eddsa.decodeInt(this.privBytes())
        }), i(a, "hash", function() {
            return this.eddsa.hash().update(this.secret()).digest()
        }), i(a, "messagePrefix", function() {
            return this.hash().slice(this.eddsa.encodingLength)
        }), a.prototype.sign = function(e) {
            return o(this._secret, "KeyPair can only verify"), this.eddsa.sign(e, this)
        }, a.prototype.verify = function(e, t) {
            return this.eddsa.verify(e, t, this)
        }, a.prototype.getSecret = function(e) {
            return o(this._secret, "KeyPair is public only"), n.encode(this.secret(), e)
        }, a.prototype.getPublic = function(e) {
            return n.encode(this.pubBytes(), e)
        }, t.exports = a
    }, {
        "../utils": 101
    }],
    99: [function(e, t) {
        "use strict";
        var n = e("bn.js"),
            o = e("../utils"),
            r = o.assert,
            i = o.cachedProperty,
            a = o.parseBytes;

        function s(e, t) {
            this.eddsa = e, "object" != typeof t && (t = a(t)), Array.isArray(t) && (t = {
                R: t.slice(0, e.encodingLength),
                S: t.slice(e.encodingLength)
            }), r(t.R && t.S, "Signature without R or S"), e.isPoint(t.R) && (this._R = t.R), t.S instanceof n && (this._S = t.S), this._Rencoded = Array.isArray(t.R) ? t.R : t.Rencoded, this._Sencoded = Array.isArray(t.S) ? t.S : t.Sencoded
        }
        i(s, "S", function() {
            return this.eddsa.decodeInt(this.Sencoded())
        }), i(s, "R", function() {
            return this.eddsa.decodePoint(this.Rencoded())
        }), i(s, "Rencoded", function() {
            return this.eddsa.encodePoint(this.R())
        }), i(s, "Sencoded", function() {
            return this.eddsa.encodeInt(this.S())
        }), s.prototype.toBytes = function() {
            return this.Rencoded().concat(this.Sencoded())
        }, s.prototype.toHex = function() {
            return o.encode(this.toBytes(), "hex").toUpperCase()
        }, t.exports = s
    }, {
        "../utils": 101,
        "bn.js": 102
    }],
    100: [function(e, t) {
        t.exports = {
            doubles: {
                step: 4,
                points: [
                    ["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a", "f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],
                    ["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508", "11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],
                    ["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739", "d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],
                    ["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640", "4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],
                    ["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c", "4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],
                    ["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda", "96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],
                    ["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa", "5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],
                    ["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0", "cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],
                    ["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d", "9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],
                    ["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d", "e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],
                    ["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1", "9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],
                    ["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0", "5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],
                    ["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047", "10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],
                    ["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862", "283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],
                    ["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7", "7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],
                    ["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd", "56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],
                    ["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83", "7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],
                    ["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a", "53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],
                    ["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8", "bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],
                    ["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d", "4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],
                    ["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725", "7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],
                    ["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754", "4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],
                    ["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c", "17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],
                    ["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6", "6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],
                    ["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39", "c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],
                    ["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891", "893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],
                    ["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b", "febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],
                    ["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03", "2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],
                    ["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d", "eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],
                    ["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070", "7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],
                    ["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4", "e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],
                    ["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da", "662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],
                    ["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11", "1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],
                    ["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e", "efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],
                    ["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41", "2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],
                    ["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef", "67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],
                    ["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8", "db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],
                    ["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d", "648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],
                    ["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96", "35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],
                    ["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd", "ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],
                    ["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5", "9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],
                    ["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266", "40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],
                    ["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71", "34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],
                    ["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac", "c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],
                    ["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751", "1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],
                    ["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e", "493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],
                    ["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241", "c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],
                    ["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3", "be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],
                    ["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f", "4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],
                    ["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19", "aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],
                    ["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be", "b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],
                    ["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9", "6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],
                    ["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2", "8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],
                    ["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13", "7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],
                    ["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c", "ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],
                    ["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba", "2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],
                    ["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151", "e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],
                    ["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073", "d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],
                    ["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458", "38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],
                    ["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b", "69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],
                    ["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366", "d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],
                    ["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa", "40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],
                    ["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0", "620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],
                    ["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787", "7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],
                    ["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e", "ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]
                ]
            },
            naf: {
                wnd: 7,
                points: [
                    ["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9", "388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],
                    ["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4", "d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],
                    ["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc", "6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],
                    ["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe", "cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],
                    ["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb", "d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],
                    ["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8", "ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],
                    ["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e", "581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],
                    ["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34", "4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],
                    ["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c", "85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],
                    ["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5", "321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],
                    ["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f", "2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],
                    ["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714", "73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],
                    ["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729", "a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],
                    ["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db", "2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],
                    ["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4", "e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],
                    ["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5", "b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],
                    ["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479", "2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],
                    ["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d", "80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],
                    ["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f", "1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],
                    ["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb", "d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],
                    ["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9", "eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],
                    ["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963", "758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],
                    ["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74", "958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],
                    ["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530", "e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],
                    ["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b", "5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],
                    ["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247", "cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],
                    ["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1", "cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],
                    ["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120", "4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],
                    ["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435", "91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],
                    ["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18", "673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],
                    ["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8", "59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],
                    ["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb", "3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],
                    ["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f", "55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],
                    ["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143", "efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],
                    ["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba", "e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],
                    ["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45", "f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],
                    ["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a", "744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],
                    ["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e", "c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],
                    ["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8", "e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],
                    ["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c", "30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],
                    ["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519", "e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],
                    ["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab", "100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],
                    ["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca", "ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],
                    ["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf", "8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],
                    ["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610", "68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],
                    ["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4", "f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],
                    ["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c", "d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],
                    ["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940", "edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],
                    ["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980", "a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],
                    ["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3", "66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],
                    ["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf", "9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],
                    ["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63", "4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],
                    ["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448", "fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],
                    ["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf", "5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],
                    ["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5", "8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],
                    ["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6", "8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],
                    ["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5", "5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],
                    ["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99", "f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],
                    ["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51", "f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],
                    ["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5", "42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],
                    ["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5", "204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],
                    ["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997", "4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],
                    ["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881", "73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],
                    ["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5", "39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],
                    ["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66", "d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],
                    ["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726", "ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],
                    ["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede", "6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],
                    ["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94", "60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],
                    ["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31", "3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],
                    ["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51", "b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],
                    ["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252", "ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],
                    ["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5", "cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],
                    ["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b", "6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],
                    ["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4", "322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],
                    ["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f", "6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],
                    ["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889", "2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],
                    ["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246", "b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],
                    ["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984", "998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],
                    ["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a", "b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],
                    ["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030", "bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],
                    ["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197", "6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],
                    ["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593", "c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],
                    ["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef", "21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],
                    ["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38", "60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],
                    ["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a", "49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],
                    ["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111", "5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],
                    ["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502", "7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],
                    ["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea", "be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],
                    ["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26", "8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],
                    ["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986", "39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],
                    ["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e", "62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],
                    ["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4", "25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],
                    ["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda", "ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],
                    ["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859", "cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],
                    ["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f", "f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],
                    ["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c", "6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],
                    ["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942", "fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],
                    ["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a", "1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],
                    ["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80", "5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],
                    ["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d", "438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],
                    ["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1", "cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],
                    ["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63", "c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],
                    ["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352", "6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],
                    ["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193", "ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],
                    ["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00", "9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],
                    ["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58", "ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],
                    ["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7", "d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],
                    ["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8", "c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],
                    ["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e", "67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],
                    ["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d", "cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],
                    ["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b", "299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],
                    ["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f", "f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],
                    ["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6", "462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],
                    ["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297", "62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],
                    ["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a", "7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],
                    ["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c", "ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],
                    ["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52", "4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],
                    ["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb", "bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],
                    ["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065", "bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],
                    ["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917", "603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],
                    ["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9", "cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],
                    ["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3", "553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],
                    ["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57", "712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],
                    ["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66", "ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],
                    ["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8", "9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],
                    ["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721", "9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],
                    ["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180", "4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]
                ]
            }
        }
    }, {}],
    101: [function(e, t, n) {
        "use strict";
        var o = n,
            r = e("bn.js"),
            i = e("minimalistic-assert"),
            a = e("minimalistic-crypto-utils");
        o.assert = i, o.toArray = a.toArray, o.zero2 = a.zero2, o.toHex = a.toHex, o.encode = a.encode, o.getNAF = function(e, t, n) {
            var o = new Array(Math.max(e.bitLength(), n) + 1);
            o.fill(0);
            for (var r = 1 << t + 1, i = e.clone(), a = 0; a < o.length; a++) {
                var s, l = i.andln(r - 1);
                i.isOdd() ? (s = l > (r >> 1) - 1 ? (r >> 1) - l : l, i.isubn(s)) : s = 0, o[a] = s, i.iushrn(1)
            }
            return o
        }, o.getJSF = function(e, t) {
            var n = [
                [],
                []
            ];
            e = e.clone(), t = t.clone();
            for (var o, r = 0, i = 0; e.cmpn(-r) > 0 || t.cmpn(-i) > 0;) {
                var a, s, l = e.andln(3) + r & 3,
                    c = t.andln(3) + i & 3;
                3 === l && (l = -1), 3 === c && (c = -1), a = 0 == (1 & l) ? 0 : 3 != (o = e.andln(7) + r & 7) && 5 !== o || 2 !== c ? l : -l, n[0].push(a), s = 0 == (1 & c) ? 0 : 3 != (o = t.andln(7) + i & 7) && 5 !== o || 2 !== l ? c : -c, n[1].push(s), 2 * r === a + 1 && (r = 1 - r), 2 * i === s + 1 && (i = 1 - i), e.iushrn(1), t.iushrn(1)
            }
            return n
        }, o.cachedProperty = function(e, t, n) {
            var o = "_" + t;
            e.prototype[t] = function() {
                return void 0 !== this[o] ? this[o] : this[o] = n.call(this)
            }
        }, o.parseBytes = function(e) {
            return "string" == typeof e ? o.toArray(e, "hex") : e
        }, o.intFromLE = function(e) {
            return new r(e, "hex", "le")
        }
    }, {
        "bn.js": 102,
        "minimalistic-assert": 142,
        "minimalistic-crypto-utils": 143
    }],
    102: [function(e, t, n) {
        arguments[4][15][0].apply(n, arguments)
    }, {
        buffer: 19,
        dup: 15
    }],
    103: [function(e, t) {
        t.exports = {
            _from: "elliptic@^6.5.3",
            _id: "elliptic@6.5.4",
            _inBundle: !1,
            _integrity: "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",
            _location: "/elliptic",
            _phantomChildren: {},
            _requested: {
                type: "range",
                registry: !0,
                raw: "elliptic@^6.5.3",
                name: "elliptic",
                escapedName: "elliptic",
                rawSpec: "^6.5.3",
                saveSpec: null,
                fetchSpec: "^6.5.3"
            },
            _requiredBy: ["/browserify-sign", "/create-ecdh"],
            _resolved: "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
            _shasum: "da37cebd31e79a1367e941b592ed1fbebd58abbb",
            _spec: "elliptic@^6.5.3",
            _where: "/Users/nantas/fireball-x/fireball_2.4.10/dist/CocosCreator.app/Contents/Resources/app/node_modules/browserify-sign",
            author: {
                name: "Fedor Indutny",
                email: "fedor@indutny.com"
            },
            bugs: {
                url: "https://github.com/indutny/elliptic/issues"
            },
            bundleDependencies: !1,
            dependencies: {
                "bn.js": "^4.11.9",
                brorand: "^1.1.0",
                "hash.js": "^1.0.0",
                "hmac-drbg": "^1.0.1",
                inherits: "^2.0.4",
                "minimalistic-assert": "^1.0.1",
                "minimalistic-crypto-utils": "^1.0.1"
            },
            deprecated: !1,
            description: "EC cryptography",
            devDependencies: {
                brfs: "^2.0.2",
                coveralls: "^3.1.0",
                eslint: "^7.6.0",
                grunt: "^1.2.1",
                "grunt-browserify": "^5.3.0",
                "grunt-cli": "^1.3.2",
                "grunt-contrib-connect": "^3.0.0",
                "grunt-contrib-copy": "^1.0.0",
                "grunt-contrib-uglify": "^5.0.0",
                "grunt-mocha-istanbul": "^5.0.2",
                "grunt-saucelabs": "^9.0.1",
                istanbul: "^0.4.5",
                mocha: "^8.0.1"
            },
            files: ["lib"],
            homepage: "https://github.com/indutny/elliptic",
            keywords: ["EC", "Elliptic", "curve", "Cryptography"],
            license: "MIT",
            main: "lib/elliptic.js",
            name: "elliptic",
            repository: {
                type: "git",
                url: "git+ssh://git@github.com/indutny/elliptic.git"
            },
            scripts: {
                lint: "eslint lib test",
                "lint:fix": "npm run lint -- --fix",
                test: "npm run lint && npm run unit",
                unit: "istanbul test _mocha --reporter=spec test/index.js",
                version: "grunt dist && git add dist/"
            },
            version: "6.5.4"
        }
    }, {}],
    104: [function(e, t) {
        function n() {
            this._events = this._events || {}, this._maxListeners = this._maxListeners || void 0
        }

        function o(e) {
            return "function" == typeof e
        }

        function r(e) {
            return "object" == typeof e && null !== e
        }

        function i(e) {
            return void 0 === e
        }
        t.exports = n, n.EventEmitter = n, n.prototype._events = void 0, n.prototype._maxListeners = void 0, n.defaultMaxListeners = 10, n.prototype.setMaxListeners = function(e) {
            if ("number" != typeof e || e < 0 || isNaN(e)) throw TypeError("n must be a positive number");
            return this._maxListeners = e, this
        }, n.prototype.emit = function(e) {
            var t, n, a, s, l, c;
            if (this._events || (this._events = {}), "error" === e && (!this._events.error || r(this._events.error) && !this._events.error.length)) {
                if ((t = arguments[1]) instanceof Error) throw t;
                var u = new Error('Uncaught, unspecified "error" event. (' + t + ")");
                throw u.context = t, u
            }
            if (i(n = this._events[e])) return !1;
            if (o(n)) switch (arguments.length) {
                case 1:
                    n.call(this);
                    break;
                case 2:
                    n.call(this, arguments[1]);
                    break;
                case 3:
                    n.call(this, arguments[1], arguments[2]);
                    break;
                default:
                    s = Array.prototype.slice.call(arguments, 1), n.apply(this, s)
            } else if (r(n))
                for (s = Array.prototype.slice.call(arguments, 1), a = (c = n.slice()).length, l = 0; l < a; l++) c[l].apply(this, s);
            return !0
        }, n.prototype.addListener = function(e, t) {
            var a;
            if (!o(t)) throw TypeError("listener must be a function");
            return this._events || (this._events = {}), this._events.newListener && this.emit("newListener", e, o(t.listener) ? t.listener : t), this._events[e] ? r(this._events[e]) ? this._events[e].push(t) : this._events[e] = [this._events[e], t] : this._events[e] = t, r(this._events[e]) && !this._events[e].warned && (a = i(this._maxListeners) ? n.defaultMaxListeners : this._maxListeners) && a > 0 && this._events[e].length > a && (this._events[e].warned = !0, console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[e].length), "function" == typeof console.trace && console.trace()), this
        }, n.prototype.on = n.prototype.addListener, n.prototype.once = function(e, t) {
            if (!o(t)) throw TypeError("listener must be a function");
            var n = !1;

            function r() {
                this.removeListener(e, r), n || (n = !0, t.apply(this, arguments))
            }
            return r.listener = t, this.on(e, r), this
        }, n.prototype.removeListener = function(e, t) {
            var n, i, a, s;
            if (!o(t)) throw TypeError("listener must be a function");
            if (!this._events || !this._events[e]) return this;
            if (a = (n = this._events[e]).length, i = -1, n === t || o(n.listener) && n.listener === t) delete this._events[e], this._events.removeListener && this.emit("removeListener", e, t);
            else if (r(n)) {
                for (s = a; s-- > 0;)
                    if (n[s] === t || n[s].listener && n[s].listener === t) {
                        i = s;
                        break
                    } if (i < 0) return this;
                1 === n.length ? (n.length = 0, delete this._events[e]) : n.splice(i, 1), this._events.removeListener && this.emit("removeListener", e, t)
            }
            return this
        }, n.prototype.removeAllListeners = function(e) {
            var t, n;
            if (!this._events) return this;
            if (!this._events.removeListener) return 0 === arguments.length ? this._events = {} : this._events[e] && delete this._events[e], this;
            if (0 === arguments.length) {
                for (t in this._events) "removeListener" !== t && this.removeAllListeners(t);
                return this.removeAllListeners("removeListener"), this._events = {}, this
            }
            if (o(n = this._events[e])) this.removeListener(e, n);
            else if (n)
                for (; n.length;) this.removeListener(e, n[n.length - 1]);
            return delete this._events[e], this
        }, n.prototype.listeners = function(e) {
            return this._events && this._events[e] ? o(this._events[e]) ? [this._events[e]] : this._events[e].slice() : []
        }, n.prototype.listenerCount = function(e) {
            if (this._events) {
                var t = this._events[e];
                if (o(t)) return 1;
                if (t) return t.length
            }
            return 0
        }, n.listenerCount = function(e, t) {
            return e.listenerCount(t)
        }
    }, {}],
    105: [function(e, t) {
        var n = e("safe-buffer").Buffer,
            o = e("md5.js");
        t.exports = function(e, t, r, i) {
            if (n.isBuffer(e) || (e = n.from(e, "binary")), t && (n.isBuffer(t) || (t = n.from(t, "binary")), 8 !== t.length)) throw new RangeError("salt should be Buffer with 8 byte length");
            for (var a = r / 8, s = n.alloc(a), l = n.alloc(i || 0), c = n.alloc(0); a > 0 || i > 0;) {
                var u = new o;
                u.update(c), u.update(e), t && u.update(t), c = u.digest();
                var p = 0;
                if (a > 0) {
                    var d = s.length - a;
                    p = Math.min(a, c.length), c.copy(s, d, 0, p), a -= p
                }
                if (p < c.length && i > 0) {
                    var h = l.length - i,
                        f = Math.min(i, c.length - p);
                    c.copy(l, h, p, p + f), i -= f
                }
            }
            return c.fill(0), {
                key: s,
                iv: l
            }
        }
    }, {
        "md5.js": 139,
        "safe-buffer": 183
    }],
    106: [function(e, t) {
        "use strict";
        var n = e("safe-buffer").Buffer,
            o = e("readable-stream").Transform;

        function r(e, t) {
            if (!n.isBuffer(e) && "string" != typeof e) throw new TypeError(t + " must be a string or a buffer")
        }

        function i(e) {
            o.call(this), this._block = n.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1
        }
        e("inherits")(i, o), i.prototype._transform = function(e, t, n) {
            var o = null;
            try {
                this.update(e, t)
            } catch (r) {
                o = r
            }
            n(o)
        }, i.prototype._flush = function(e) {
            var t = null;
            try {
                this.push(this.digest())
            } catch (n) {
                t = n
            }
            e(t)
        }, i.prototype.update = function(e, t) {
            if (r(e, "Data"), this._finalized) throw new Error("Digest already called");
            n.isBuffer(e) || (e = n.from(e, t));
            for (var o = this._block, i = 0; this._blockOffset + e.length - i >= this._blockSize;) {
                for (var a = this._blockOffset; a < this._blockSize;) o[a++] = e[i++];
                this._update(), this._blockOffset = 0
            }
            for (; i < e.length;) o[this._blockOffset++] = e[i++];
            for (var s = 0, l = 8 * e.length; l > 0; ++s) this._length[s] += l, (l = this._length[s] / 4294967296 | 0) > 0 && (this._length[s] -= 4294967296 * l);
            return this
        }, i.prototype._update = function() {
            throw new Error("_update is not implemented")
        }, i.prototype.digest = function(e) {
            if (this._finalized) throw new Error("Digest already called");
            this._finalized = !0;
            var t = this._digest();
            void 0 !== e && (t = t.toString(e)), this._block.fill(0), this._blockOffset = 0;
            for (var n = 0; n < 4; ++n) this._length[n] = 0;
            return t
        }, i.prototype._digest = function() {
            throw new Error("_digest is not implemented")
        }, t.exports = i
    }, {
        inherits: 138,
        "readable-stream": 121,
        "safe-buffer": 122
    }],
    107: [function(e, t, n) {
        arguments[4][47][0].apply(n, arguments)
    }, {
        dup: 47
    }],
    108: [function(e, t, n) {
        arguments[4][48][0].apply(n, arguments)
    }, {
        "./_stream_readable": 110,
        "./_stream_writable": 112,
        _process: 157,
        dup: 48,
        inherits: 138
    }],
    109: [function(e, t, n) {
        arguments[4][49][0].apply(n, arguments)
    }, {
        "./_stream_transform": 111,
        dup: 49,
        inherits: 138
    }],
    110: [function(e, t, n) {
        arguments[4][50][0].apply(n, arguments)
    }, {
        "../errors": 107,
        "./_stream_duplex": 108,
        "./internal/streams/async_iterator": 113,
        "./internal/streams/buffer_list": 114,
        "./internal/streams/destroy": 115,
        "./internal/streams/from": 117,
        "./internal/streams/state": 119,
        "./internal/streams/stream": 120,
        _process: 157,
        buffer: 65,
        dup: 50,
        events: 104,
        inherits: 138,
        "string_decoder/": 123,
        util: 19
    }],
    111: [function(e, t, n) {
        arguments[4][51][0].apply(n, arguments)
    }, {
        "../errors": 107,
        "./_stream_duplex": 108,
        dup: 51,
        inherits: 138
    }],
    112: [function(e, t, n) {
        arguments[4][52][0].apply(n, arguments)
    }, {
        "../errors": 107,
        "./_stream_duplex": 108,
        "./internal/streams/destroy": 115,
        "./internal/streams/state": 119,
        "./internal/streams/stream": 120,
        _process: 157,
        buffer: 65,
        dup: 52,
        inherits: 138,
        "util-deprecate": 195
    }],
    113: [function(e, t, n) {
        arguments[4][53][0].apply(n, arguments)
    }, {
        "./end-of-stream": 116,
        _process: 157,
        dup: 53
    }],
    114: [function(e, t, n) {
        arguments[4][54][0].apply(n, arguments)
    }, {
        buffer: 65,
        dup: 54,
        util: 19
    }],
    115: [function(e, t, n) {
        arguments[4][55][0].apply(n, arguments)
    }, {
        _process: 157,
        dup: 55
    }],
    116: [function(e, t, n) {
        arguments[4][56][0].apply(n, arguments)
    }, {
        "../../../errors": 107,
        dup: 56
    }],
    117: [function(e, t, n) {
        arguments[4][57][0].apply(n, arguments)
    }, {
        dup: 57
    }],
    118: [function(e, t, n) {
        arguments[4][58][0].apply(n, arguments)
    }, {
        "../../../errors": 107,
        "./end-of-stream": 116,
        dup: 58
    }],
    119: [function(e, t, n) {
        arguments[4][59][0].apply(n, arguments)
    }, {
        "../../../errors": 107,
        dup: 59
    }],
    120: [function(e, t, n) {
        arguments[4][60][0].apply(n, arguments)
    }, {
        dup: 60,
        events: 104
    }],
    121: [function(e, t, n) {
        arguments[4][61][0].apply(n, arguments)
    }, {
        "./lib/_stream_duplex.js": 108,
        "./lib/_stream_passthrough.js": 109,
        "./lib/_stream_readable.js": 110,
        "./lib/_stream_transform.js": 111,
        "./lib/_stream_writable.js": 112,
        "./lib/internal/streams/end-of-stream.js": 116,
        "./lib/internal/streams/pipeline.js": 118,
        dup: 61
    }],
    122: [function(e, t, n) {
        arguments[4][62][0].apply(n, arguments)
    }, {
        buffer: 65,
        dup: 62
    }],
    123: [function(e, t, n) {
        arguments[4][63][0].apply(n, arguments)
    }, {
        dup: 63,
        "safe-buffer": 122
    }],
    124: [function(e, t, n) {
        var o = n;
        o.utils = e("./hash/utils"), o.common = e("./hash/common"), o.sha = e("./hash/sha"), o.ripemd = e("./hash/ripemd"), o.hmac = e("./hash/hmac"), o.sha1 = o.sha.sha1, o.sha256 = o.sha.sha256, o.sha224 = o.sha.sha224, o.sha384 = o.sha.sha384, o.sha512 = o.sha.sha512, o.ripemd160 = o.ripemd.ripemd160
    }, {
        "./hash/common": 125,
        "./hash/hmac": 126,
        "./hash/ripemd": 127,
        "./hash/sha": 128,
        "./hash/utils": 135
    }],
    125: [function(e, t, n) {
        "use strict";
        var o = e("./utils"),
            r = e("minimalistic-assert");

        function i() {
            this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32
        }
        n.BlockHash = i, i.prototype.update = function(e, t) {
            if (e = o.toArray(e, t), this.pending ? this.pending = this.pending.concat(e) : this.pending = e, this.pendingTotal += e.length, this.pending.length >= this._delta8) {
                var n = (e = this.pending).length % this._delta8;
                this.pending = e.slice(e.length - n, e.length), 0 === this.pending.length && (this.pending = null), e = o.join32(e, 0, e.length - n, this.endian);
                for (var r = 0; r < e.length; r += this._delta32) this._update(e, r, r + this._delta32)
            }
            return this
        }, i.prototype.digest = function(e) {
            return this.update(this._pad()), r(null === this.pending), this._digest(e)
        }, i.prototype._pad = function() {
            var e = this.pendingTotal,
                t = this._delta8,
                n = t - (e + this.padLength) % t,
                o = new Array(n + this.padLength);
            o[0] = 128;
            for (var r = 1; r < n; r++) o[r] = 0;
            if (e <<= 3, "big" === this.endian) {
                for (var i = 8; i < this.padLength; i++) o[r++] = 0;
                o[r++] = 0, o[r++] = 0, o[r++] = 0, o[r++] = 0, o[r++] = e >>> 24 & 255, o[r++] = e >>> 16 & 255, o[r++] = e >>> 8 & 255, o[r++] = 255 & e
            } else
                for (o[r++] = 255 & e, o[r++] = e >>> 8 & 255, o[r++] = e >>> 16 & 255, o[r++] = e >>> 24 & 255, o[r++] = 0, o[r++] = 0, o[r++] = 0, o[r++] = 0, i = 8; i < this.padLength; i++) o[r++] = 0;
            return o
        }
    }, {
        "./utils": 135,
        "minimalistic-assert": 142
    }],
    126: [function(e, t) {
        "use strict";
        var n = e("./utils"),
            o = e("minimalistic-assert");

        function r(e, t, o) {
            if (!(this instanceof r)) return new r(e, t, o);
            this.Hash = e, this.blockSize = e.blockSize / 8, this.outSize = e.outSize / 8, this.inner = null, this.outer = null, this._init(n.toArray(t, o))
        }
        t.exports = r, r.prototype._init = function(e) {
            e.length > this.blockSize && (e = (new this.Hash).update(e).digest()), o(e.length <= this.blockSize);
            for (var t = e.length; t < this.blockSize; t++) e.push(0);
            for (t = 0; t < e.length; t++) e[t] ^= 54;
            for (this.inner = (new this.Hash).update(e), t = 0; t < e.length; t++) e[t] ^= 106;
            this.outer = (new this.Hash).update(e)
        }, r.prototype.update = function(e, t) {
            return this.inner.update(e, t), this
        }, r.prototype.digest = function(e) {
            return this.outer.update(this.inner.digest()), this.outer.digest(e)
        }
    }, {
        "./utils": 135,
        "minimalistic-assert": 142
    }],
    127: [function(e, t, n) {
        "use strict";
        var o = e("./utils"),
            r = e("./common"),
            i = o.rotl32,
            a = o.sum32,
            s = o.sum32_3,
            l = o.sum32_4,
            c = r.BlockHash;

        function u() {
            if (!(this instanceof u)) return new u;
            c.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little"
        }

        function p(e, t, n, o) {
            return e <= 15 ? t ^ n ^ o : e <= 31 ? t & n | ~t & o : e <= 47 ? (t | ~n) ^ o : e <= 63 ? t & o | n & ~o : t ^ (n | ~o)
        }

        function d(e) {
            return e <= 15 ? 0 : e <= 31 ? 1518500249 : e <= 47 ? 1859775393 : e <= 63 ? 2400959708 : 2840853838
        }

        function h(e) {
            return e <= 15 ? 1352829926 : e <= 31 ? 1548603684 : e <= 47 ? 1836072691 : e <= 63 ? 2053994217 : 0
        }
        o.inherits(u, c), n.ripemd160 = u, u.blockSize = 512, u.outSize = 160, u.hmacStrength = 192, u.padLength = 64, u.prototype._update = function(e, t) {
            for (var n = this.h[0], o = this.h[1], r = this.h[2], c = this.h[3], u = this.h[4], I = n, _ = o, C = r, v = c, b = u, S = 0; S < 80; S++) {
                var w = a(i(l(n, p(S, o, r, c), e[f[S] + t], d(S)), g[S]), u);
                n = u, u = c, c = i(r, 10), r = o, o = w, w = a(i(l(I, p(79 - S, _, C, v), e[y[S] + t], h(S)), m[S]), b), I = b, b = v, v = i(C, 10), C = _, _ = w
            }
            w = s(this.h[1], r, v), this.h[1] = s(this.h[2], c, b), this.h[2] = s(this.h[3], u, I), this.h[3] = s(this.h[4], n, _), this.h[4] = s(this.h[0], o, C), this.h[0] = w
        }, u.prototype._digest = function(e) {
            return "hex" === e ? o.toHex32(this.h, "little") : o.split32(this.h, "little")
        };
        var f = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13],
            y = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11],
            g = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6],
            m = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]
    }, {
        "./common": 125,
        "./utils": 135
    }],
    128: [function(e, t, n) {
        "use strict";
        n.sha1 = e("./sha/1"), n.sha224 = e("./sha/224"), n.sha256 = e("./sha/256"), n.sha384 = e("./sha/384"), n.sha512 = e("./sha/512")
    }, {
        "./sha/1": 129,
        "./sha/224": 130,
        "./sha/256": 131,
        "./sha/384": 132,
        "./sha/512": 133
    }],
    129: [function(e, t) {
        "use strict";
        var n = e("../utils"),
            o = e("../common"),
            r = e("./common"),
            i = n.rotl32,
            a = n.sum32,
            s = n.sum32_5,
            l = r.ft_1,
            c = o.BlockHash,
            u = [1518500249, 1859775393, 2400959708, 3395469782];

        function p() {
            if (!(this instanceof p)) return new p;
            c.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.W = new Array(80)
        }
        n.inherits(p, c), t.exports = p, p.blockSize = 512, p.outSize = 160, p.hmacStrength = 80, p.padLength = 64, p.prototype._update = function(e, t) {
            for (var n = this.W, o = 0; o < 16; o++) n[o] = e[t + o];
            for (; o < n.length; o++) n[o] = i(n[o - 3] ^ n[o - 8] ^ n[o - 14] ^ n[o - 16], 1);
            var r = this.h[0],
                c = this.h[1],
                p = this.h[2],
                d = this.h[3],
                h = this.h[4];
            for (o = 0; o < n.length; o++) {
                var f = ~~(o / 20),
                    y = s(i(r, 5), l(f, c, p, d), h, n[o], u[f]);
                h = d, d = p, p = i(c, 30), c = r, r = y
            }
            this.h[0] = a(this.h[0], r), this.h[1] = a(this.h[1], c), this.h[2] = a(this.h[2], p), this.h[3] = a(this.h[3], d), this.h[4] = a(this.h[4], h)
        }, p.prototype._digest = function(e) {
            return "hex" === e ? n.toHex32(this.h, "big") : n.split32(this.h, "big")
        }
    }, {
        "../common": 125,
        "../utils": 135,
        "./common": 134
    }],
    130: [function(e, t) {
        "use strict";
        var n = e("../utils"),
            o = e("./256");

        function r() {
            if (!(this instanceof r)) return new r;
            o.call(this), this.h = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]
        }
        n.inherits(r, o), t.exports = r, r.blockSize = 512, r.outSize = 224, r.hmacStrength = 192, r.padLength = 64, r.prototype._digest = function(e) {
            return "hex" === e ? n.toHex32(this.h.slice(0, 7), "big") : n.split32(this.h.slice(0, 7), "big")
        }
    }, {
        "../utils": 135,
        "./256": 131
    }],
    131: [function(e, t) {
        "use strict";
        var n = e("../utils"),
            o = e("../common"),
            r = e("./common"),
            i = e("minimalistic-assert"),
            a = n.sum32,
            s = n.sum32_4,
            l = n.sum32_5,
            c = r.ch32,
            u = r.maj32,
            p = r.s0_256,
            d = r.s1_256,
            h = r.g0_256,
            f = r.g1_256,
            y = o.BlockHash,
            g = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];

        function m() {
            if (!(this instanceof m)) return new m;
            y.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k = g, this.W = new Array(64)
        }
        n.inherits(m, y), t.exports = m, m.blockSize = 512, m.outSize = 256, m.hmacStrength = 192, m.padLength = 64, m.prototype._update = function(e, t) {
            for (var n = this.W, o = 0; o < 16; o++) n[o] = e[t + o];
            for (; o < n.length; o++) n[o] = s(f(n[o - 2]), n[o - 7], h(n[o - 15]), n[o - 16]);
            var r = this.h[0],
                y = this.h[1],
                g = this.h[2],
                m = this.h[3],
                I = this.h[4],
                _ = this.h[5],
                C = this.h[6],
                v = this.h[7];
            for (i(this.k.length === n.length), o = 0; o < n.length; o++) {
                var b = l(v, d(I), c(I, _, C), this.k[o], n[o]),
                    S = a(p(r), u(r, y, g));
                v = C, C = _, _ = I, I = a(m, b), m = g, g = y, y = r, r = a(b, S)
            }
            this.h[0] = a(this.h[0], r), this.h[1] = a(this.h[1], y), this.h[2] = a(this.h[2], g), this.h[3] = a(this.h[3], m), this.h[4] = a(this.h[4], I), this.h[5] = a(this.h[5], _), this.h[6] = a(this.h[6], C), this.h[7] = a(this.h[7], v)
        }, m.prototype._digest = function(e) {
            return "hex" === e ? n.toHex32(this.h, "big") : n.split32(this.h, "big")
        }
    }, {
        "../common": 125,
        "../utils": 135,
        "./common": 134,
        "minimalistic-assert": 142
    }],
    132: [function(e, t) {
        "use strict";
        var n = e("../utils"),
            o = e("./512");

        function r() {
            if (!(this instanceof r)) return new r;
            o.call(this), this.h = [3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, 3204075428]
        }
        n.inherits(r, o), t.exports = r, r.blockSize = 1024, r.outSize = 384, r.hmacStrength = 192, r.padLength = 128, r.prototype._digest = function(e) {
            return "hex" === e ? n.toHex32(this.h.slice(0, 12), "big") : n.split32(this.h.slice(0, 12), "big")
        }
    }, {
        "../utils": 135,
        "./512": 133
    }],
    133: [function(e, t) {
        "use strict";
        var n = e("../utils"),
            o = e("../common"),
            r = e("minimalistic-assert"),
            i = n.rotr64_hi,
            a = n.rotr64_lo,
            s = n.shr64_hi,
            l = n.shr64_lo,
            c = n.sum64,
            u = n.sum64_hi,
            p = n.sum64_lo,
            d = n.sum64_4_hi,
            h = n.sum64_4_lo,
            f = n.sum64_5_hi,
            y = n.sum64_5_lo,
            g = o.BlockHash,
            m = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591];

        function I() {
            if (!(this instanceof I)) return new I;
            g.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = m, this.W = new Array(160)
        }

        function _(e, t, n, o, r) {
            var i = e & n ^ ~e & r;
            return i < 0 && (i += 4294967296), i
        }

        function C(e, t, n, o, r, i) {
            var a = t & o ^ ~t & i;
            return a < 0 && (a += 4294967296), a
        }

        function v(e, t, n, o, r) {
            var i = e & n ^ e & r ^ n & r;
            return i < 0 && (i += 4294967296), i
        }

        function b(e, t, n, o, r, i) {
            var a = t & o ^ t & i ^ o & i;
            return a < 0 && (a += 4294967296), a
        }

        function S(e, t) {
            var n = i(e, t, 28) ^ i(t, e, 2) ^ i(t, e, 7);
            return n < 0 && (n += 4294967296), n
        }

        function w(e, t) {
            var n = a(e, t, 28) ^ a(t, e, 2) ^ a(t, e, 7);
            return n < 0 && (n += 4294967296), n
        }

        function P(e, t) {
            var n = a(e, t, 14) ^ a(e, t, 18) ^ a(t, e, 9);
            return n < 0 && (n += 4294967296), n
        }

        function A(e, t) {
            var n = i(e, t, 1) ^ i(e, t, 8) ^ s(e, t, 7);
            return n < 0 && (n += 4294967296), n
        }

        function T(e, t) {
            var n = a(e, t, 1) ^ a(e, t, 8) ^ l(e, t, 7);
            return n < 0 && (n += 4294967296), n
        }

        function R(e, t) {
            var n = a(e, t, 19) ^ a(t, e, 29) ^ l(e, t, 6);
            return n < 0 && (n += 4294967296), n
        }
        n.inherits(I, g), t.exports = I, I.blockSize = 1024, I.outSize = 512, I.hmacStrength = 192, I.padLength = 128, I.prototype._prepareBlock = function(e, t) {
            for (var n = this.W, o = 0; o < 32; o++) n[o] = e[t + o];
            for (; o < n.length; o += 2) {
                var r = (g = n[o - 4], m = n[o - 3], I = void 0, (I = i(g, m, 19) ^ i(m, g, 29) ^ s(g, m, 6)) < 0 && (I += 4294967296), I),
                    a = R(n[o - 4], n[o - 3]),
                    l = n[o - 14],
                    c = n[o - 13],
                    u = A(n[o - 30], n[o - 29]),
                    p = T(n[o - 30], n[o - 29]),
                    f = n[o - 32],
                    y = n[o - 31];
                n[o] = d(r, a, l, c, u, p, f, y), n[o + 1] = h(r, a, l, c, u, p, f, y)
            }
            var g, m, I
        }, I.prototype._update = function(e, t) {
            this._prepareBlock(e, t);
            var n, o, a, s = this.W,
                l = this.h[0],
                d = this.h[1],
                h = this.h[2],
                g = this.h[3],
                m = this.h[4],
                I = this.h[5],
                A = this.h[6],
                T = this.h[7],
                R = this.h[8],
                L = this.h[9],
                k = this.h[10],
                O = this.h[11],
                M = this.h[12],
                D = this.h[13],
                B = this.h[14],
                N = this.h[15];
            r(this.k.length === s.length);
            for (var E = 0; E < s.length; E += 2) {
                var U = B,
                    G = N,
                    x = (a = void 0, (a = i(n = R, o = L, 14) ^ i(n, o, 18) ^ i(o, n, 9)) < 0 && (a += 4294967296), a),
                    H = P(R, L),
                    F = _(R, 0, k, 0, M),
                    j = C(0, L, 0, O, 0, D),
                    W = this.k[E],
                    z = this.k[E + 1],
                    q = s[E],
                    V = s[E + 1],
                    Z = f(U, G, x, H, F, j, W, z, q, V),
                    K = y(U, G, x, H, F, j, W, z, q, V);
                U = S(l, d), G = w(l, d), x = v(l, 0, h, 0, m), H = b(0, d, 0, g, 0, I);
                var J = u(U, G, x, H),
                    X = p(U, G, x, H);
                B = M, N = D, M = k, D = O, k = R, O = L, R = u(A, T, Z, K), L = p(T, T, Z, K), A = m, T = I, m = h, I = g, h = l, g = d, l = u(Z, K, J, X), d = p(Z, K, J, X)
            }
            c(this.h, 0, l, d), c(this.h, 2, h, g), c(this.h, 4, m, I), c(this.h, 6, A, T), c(this.h, 8, R, L), c(this.h, 10, k, O), c(this.h, 12, M, D), c(this.h, 14, B, N)
        }, I.prototype._digest = function(e) {
            return "hex" === e ? n.toHex32(this.h, "big") : n.split32(this.h, "big")
        }
    }, {
        "../common": 125,
        "../utils": 135,
        "minimalistic-assert": 142
    }],
    134: [function(e, t, n) {
        "use strict";
        var o = e("../utils").rotr32;

        function r(e, t, n) {
            return e & t ^ ~e & n
        }

        function i(e, t, n) {
            return e & t ^ e & n ^ t & n
        }

        function a(e, t, n) {
            return e ^ t ^ n
        }
        n.ft_1 = function(e, t, n, o) {
            return 0 === e ? r(t, n, o) : 1 === e || 3 === e ? a(t, n, o) : 2 === e ? i(t, n, o) : void 0
        }, n.ch32 = r, n.maj32 = i, n.p32 = a, n.s0_256 = function(e) {
            return o(e, 2) ^ o(e, 13) ^ o(e, 22)
        }, n.s1_256 = function(e) {
            return o(e, 6) ^ o(e, 11) ^ o(e, 25)
        }, n.g0_256 = function(e) {
            return o(e, 7) ^ o(e, 18) ^ e >>> 3
        }, n.g1_256 = function(e) {
            return o(e, 17) ^ o(e, 19) ^ e >>> 10
        }
    }, {
        "../utils": 135
    }],
    135: [function(e, t, n) {
        "use strict";
        var o = e("minimalistic-assert"),
            r = e("inherits");

        function i(e, t) {
            return 55296 == (64512 & e.charCodeAt(t)) && !(t < 0 || t + 1 >= e.length) && 56320 == (64512 & e.charCodeAt(t + 1))
        }

        function a(e) {
            return (e >>> 24 | e >>> 8 & 65280 | e << 8 & 16711680 | (255 & e) << 24) >>> 0
        }

        function s(e) {
            return 1 === e.length ? "0" + e : e
        }

        function l(e) {
            return 7 === e.length ? "0" + e : 6 === e.length ? "00" + e : 5 === e.length ? "000" + e : 4 === e.length ? "0000" + e : 3 === e.length ? "00000" + e : 2 === e.length ? "000000" + e : 1 === e.length ? "0000000" + e : e
        }
        n.inherits = r, n.toArray = function(e, t) {
            if (Array.isArray(e)) return e.slice();
            if (!e) return [];
            var n = [];
            if ("string" == typeof e)
                if (t) {
                    if ("hex" === t)
                        for ((e = e.replace(/[^a-z0-9]+/gi, "")).length % 2 != 0 && (e = "0" + e), r = 0; r < e.length; r += 2) n.push(parseInt(e[r] + e[r + 1], 16))
                } else
                    for (var o = 0, r = 0; r < e.length; r++) {
                        var a = e.charCodeAt(r);
                        a < 128 ? n[o++] = a : a < 2048 ? (n[o++] = a >> 6 | 192, n[o++] = 63 & a | 128) : i(e, r) ? (a = 65536 + ((1023 & a) << 10) + (1023 & e.charCodeAt(++r)), n[o++] = a >> 18 | 240, n[o++] = a >> 12 & 63 | 128, n[o++] = a >> 6 & 63 | 128, n[o++] = 63 & a | 128) : (n[o++] = a >> 12 | 224, n[o++] = a >> 6 & 63 | 128, n[o++] = 63 & a | 128)
                    } else
                        for (r = 0; r < e.length; r++) n[r] = 0 | e[r];
            return n
        }, n.toHex = function(e) {
            for (var t = "", n = 0; n < e.length; n++) t += s(e[n].toString(16));
            return t
        }, n.htonl = a, n.toHex32 = function(e, t) {
            for (var n = "", o = 0; o < e.length; o++) {
                var r = e[o];
                "little" === t && (r = a(r)), n += l(r.toString(16))
            }
            return n
        }, n.zero2 = s, n.zero8 = l, n.join32 = function(e, t, n, r) {
            var i = n - t;
            o(i % 4 == 0);
            for (var a = new Array(i / 4), s = 0, l = t; s < a.length; s++, l += 4) {
                var c;
                c = "big" === r ? e[l] << 24 | e[l + 1] << 16 | e[l + 2] << 8 | e[l + 3] : e[l + 3] << 24 | e[l + 2] << 16 | e[l + 1] << 8 | e[l], a[s] = c >>> 0
            }
            return a
        }, n.split32 = function(e, t) {
            for (var n = new Array(4 * e.length), o = 0, r = 0; o < e.length; o++, r += 4) {
                var i = e[o];
                "big" === t ? (n[r] = i >>> 24, n[r + 1] = i >>> 16 & 255, n[r + 2] = i >>> 8 & 255, n[r + 3] = 255 & i) : (n[r + 3] = i >>> 24, n[r + 2] = i >>> 16 & 255, n[r + 1] = i >>> 8 & 255, n[r] = 255 & i)
            }
            return n
        }, n.rotr32 = function(e, t) {
            return e >>> t | e << 32 - t
        }, n.rotl32 = function(e, t) {
            return e << t | e >>> 32 - t
        }, n.sum32 = function(e, t) {
            return e + t >>> 0
        }, n.sum32_3 = function(e, t, n) {
            return e + t + n >>> 0
        }, n.sum32_4 = function(e, t, n, o) {
            return e + t + n + o >>> 0
        }, n.sum32_5 = function(e, t, n, o, r) {
            return e + t + n + o + r >>> 0
        }, n.sum64 = function(e, t, n, o) {
            var r = e[t],
                i = o + e[t + 1] >>> 0,
                a = (i < o ? 1 : 0) + n + r;
            e[t] = a >>> 0, e[t + 1] = i
        }, n.sum64_hi = function(e, t, n, o) {
            return (t + o >>> 0 < t ? 1 : 0) + e + n >>> 0
        }, n.sum64_lo = function(e, t, n, o) {
            return t + o >>> 0
        }, n.sum64_4_hi = function(e, t, n, o, r, i, a, s) {
            var l = 0,
                c = t;
            return l += (c = c + o >>> 0) < t ? 1 : 0, l += (c = c + i >>> 0) < i ? 1 : 0, e + n + r + a + (l += (c = c + s >>> 0) < s ? 1 : 0) >>> 0
        }, n.sum64_4_lo = function(e, t, n, o, r, i, a, s) {
            return t + o + i + s >>> 0
        }, n.sum64_5_hi = function(e, t, n, o, r, i, a, s, l, c) {
            var u = 0,
                p = t;
            return u += (p = p + o >>> 0) < t ? 1 : 0, u += (p = p + i >>> 0) < i ? 1 : 0, u += (p = p + s >>> 0) < s ? 1 : 0, e + n + r + a + l + (u += (p = p + c >>> 0) < c ? 1 : 0) >>> 0
        }, n.sum64_5_lo = function(e, t, n, o, r, i, a, s, l, c) {
            return t + o + i + s + c >>> 0
        }, n.rotr64_hi = function(e, t, n) {
            return (t << 32 - n | e >>> n) >>> 0
        }, n.rotr64_lo = function(e, t, n) {
            return (e << 32 - n | t >>> n) >>> 0
        }, n.shr64_hi = function(e, t, n) {
            return e >>> n
        }, n.shr64_lo = function(e, t, n) {
            return (e << 32 - n | t >>> n) >>> 0
        }
    }, {
        inherits: 138,
        "minimalistic-assert": 142
    }],
    136: [function(e, t) {
        "use strict";
        var n = e("hash.js"),
            o = e("minimalistic-crypto-utils"),
            r = e("minimalistic-assert");

        function i(e) {
            if (!(this instanceof i)) return new i(e);
            this.hash = e.hash, this.predResist = !!e.predResist, this.outLen = this.hash.outSize, this.minEntropy = e.minEntropy || this.hash.hmacStrength, this._reseed = null, this.reseedInterval = null, this.K = null, this.V = null;
            var t = o.toArray(e.entropy, e.entropyEnc || "hex"),
                n = o.toArray(e.nonce, e.nonceEnc || "hex"),
                a = o.toArray(e.pers, e.persEnc || "hex");
            r(t.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._init(t, n, a)
        }
        t.exports = i, i.prototype._init = function(e, t, n) {
            var o = e.concat(t).concat(n);
            this.K = new Array(this.outLen / 8), this.V = new Array(this.outLen / 8);
            for (var r = 0; r < this.V.length; r++) this.K[r] = 0, this.V[r] = 1;
            this._update(o), this._reseed = 1, this.reseedInterval = 281474976710656
        }, i.prototype._hmac = function() {
            return new n.hmac(this.hash, this.K)
        }, i.prototype._update = function(e) {
            var t = this._hmac().update(this.V).update([0]);
            e && (t = t.update(e)), this.K = t.digest(), this.V = this._hmac().update(this.V).digest(), e && (this.K = this._hmac().update(this.V).update([1]).update(e).digest(), this.V = this._hmac().update(this.V).digest())
        }, i.prototype.reseed = function(e, t, n, i) {
            "string" != typeof t && (i = n, n = t, t = null), e = o.toArray(e, t), n = o.toArray(n, i), r(e.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._update(e.concat(n || [])), this._reseed = 1
        }, i.prototype.generate = function(e, t, n, r) {
            if (this._reseed > this.reseedInterval) throw new Error("Reseed is required");
            "string" != typeof t && (r = n, n = t, t = null), n && (n = o.toArray(n, r || "hex"), this._update(n));
            for (var i = []; i.length < e;) this.V = this._hmac().update(this.V).digest(), i = i.concat(this.V);
            var a = i.slice(0, e);
            return this._update(n), this._reseed++, o.encode(a, t)
        }
    }, {
        "hash.js": 124,
        "minimalistic-assert": 142,
        "minimalistic-crypto-utils": 143
    }],
    137: [function(e, t, n) {
        n.read = function(e, t, n, o, r) {
            var i, a, s = 8 * r - o - 1,
                l = (1 << s) - 1,
                c = l >> 1,
                u = -7,
                p = n ? r - 1 : 0,
                d = n ? -1 : 1,
                h = e[t + p];
            for (p += d, i = h & (1 << -u) - 1, h >>= -u, u += s; u > 0; i = 256 * i + e[t + p], p += d, u -= 8);
            for (a = i & (1 << -u) - 1, i >>= -u, u += o; u > 0; a = 256 * a + e[t + p], p += d, u -= 8);
            if (0 === i) i = 1 - c;
            else {
                if (i === l) return a ? NaN : 1 / 0 * (h ? -1 : 1);
                a += Math.pow(2, o), i -= c
            }
            return (h ? -1 : 1) * a * Math.pow(2, i - o)
        }, n.write = function(e, t, n, o, r, i) {
            var a, s, l, c = 8 * i - r - 1,
                u = (1 << c) - 1,
                p = u >> 1,
                d = 23 === r ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
                h = o ? 0 : i - 1,
                f = o ? 1 : -1,
                y = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
            for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, a = u) : (a = Math.floor(Math.log(t) / Math.LN2), t * (l = Math.pow(2, -a)) < 1 && (a--, l *= 2), (t += a + p >= 1 ? d / l : d * Math.pow(2, 1 - p)) * l >= 2 && (a++, l /= 2), a + p >= u ? (s = 0, a = u) : a + p >= 1 ? (s = (t * l - 1) * Math.pow(2, r), a += p) : (s = t * Math.pow(2, p - 1) * Math.pow(2, r), a = 0)); r >= 8; e[n + h] = 255 & s, h += f, s /= 256, r -= 8);
            for (a = a << r | s, c += r; c > 0; e[n + h] = 255 & a, h += f, a /= 256, c -= 8);
            e[n + h - f] |= 128 * y
        }
    }, {}],
    138: [function(e, t) {
        "function" == typeof Object.create ? t.exports = function(e, t) {
            t && (e.super_ = t, e.prototype = Object.create(t.prototype, {
                constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0
                }
            }))
        } : t.exports = function(e, t) {
            if (t) {
                e.super_ = t;
                var n = function() {};
                n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e
            }
        }
    }, {}],
    139: [function(e, t) {
        "use strict";
        var n = e("inherits"),
            o = e("hash-base"),
            r = e("safe-buffer").Buffer,
            i = new Array(16);

        function a() {
            o.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878
        }

        function s(e, t) {
            return e << t | e >>> 32 - t
        }

        function l(e, t, n, o, r, i, a) {
            return s(e + (t & n | ~t & o) + r + i | 0, a) + t | 0
        }

        function c(e, t, n, o, r, i, a) {
            return s(e + (t & o | n & ~o) + r + i | 0, a) + t | 0
        }

        function u(e, t, n, o, r, i, a) {
            return s(e + (t ^ n ^ o) + r + i | 0, a) + t | 0
        }

        function p(e, t, n, o, r, i, a) {
            return s(e + (n ^ (t | ~o)) + r + i | 0, a) + t | 0
        }
        n(a, o), a.prototype._update = function() {
            for (var e = i, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(4 * t);
            var n = this._a,
                o = this._b,
                r = this._c,
                a = this._d;
            n = l(n, o, r, a, e[0], 3614090360, 7), a = l(a, n, o, r, e[1], 3905402710, 12), r = l(r, a, n, o, e[2], 606105819, 17), o = l(o, r, a, n, e[3], 3250441966, 22), n = l(n, o, r, a, e[4], 4118548399, 7), a = l(a, n, o, r, e[5], 1200080426, 12), r = l(r, a, n, o, e[6], 2821735955, 17), o = l(o, r, a, n, e[7], 4249261313, 22), n = l(n, o, r, a, e[8], 1770035416, 7), a = l(a, n, o, r, e[9], 2336552879, 12), r = l(r, a, n, o, e[10], 4294925233, 17), o = l(o, r, a, n, e[11], 2304563134, 22), n = l(n, o, r, a, e[12], 1804603682, 7), a = l(a, n, o, r, e[13], 4254626195, 12), r = l(r, a, n, o, e[14], 2792965006, 17), n = c(n, o = l(o, r, a, n, e[15], 1236535329, 22), r, a, e[1], 4129170786, 5), a = c(a, n, o, r, e[6], 3225465664, 9), r = c(r, a, n, o, e[11], 643717713, 14), o = c(o, r, a, n, e[0], 3921069994, 20), n = c(n, o, r, a, e[5], 3593408605, 5), a = c(a, n, o, r, e[10], 38016083, 9), r = c(r, a, n, o, e[15], 3634488961, 14), o = c(o, r, a, n, e[4], 3889429448, 20), n = c(n, o, r, a, e[9], 568446438, 5), a = c(a, n, o, r, e[14], 3275163606, 9), r = c(r, a, n, o, e[3], 4107603335, 14), o = c(o, r, a, n, e[8], 1163531501, 20), n = c(n, o, r, a, e[13], 2850285829, 5), a = c(a, n, o, r, e[2], 4243563512, 9), r = c(r, a, n, o, e[7], 1735328473, 14), n = u(n, o = c(o, r, a, n, e[12], 2368359562, 20), r, a, e[5], 4294588738, 4), a = u(a, n, o, r, e[8], 2272392833, 11), r = u(r, a, n, o, e[11], 1839030562, 16), o = u(o, r, a, n, e[14], 4259657740, 23), n = u(n, o, r, a, e[1], 2763975236, 4), a = u(a, n, o, r, e[4], 1272893353, 11), r = u(r, a, n, o, e[7], 4139469664, 16), o = u(o, r, a, n, e[10], 3200236656, 23), n = u(n, o, r, a, e[13], 681279174, 4), a = u(a, n, o, r, e[0], 3936430074, 11), r = u(r, a, n, o, e[3], 3572445317, 16), o = u(o, r, a, n, e[6], 76029189, 23), n = u(n, o, r, a, e[9], 3654602809, 4), a = u(a, n, o, r, e[12], 3873151461, 11), r = u(r, a, n, o, e[15], 530742520, 16), n = p(n, o = u(o, r, a, n, e[2], 3299628645, 23), r, a, e[0], 4096336452, 6), a = p(a, n, o, r, e[7], 1126891415, 10), r = p(r, a, n, o, e[14], 2878612391, 15), o = p(o, r, a, n, e[5], 4237533241, 21), n = p(n, o, r, a, e[12], 1700485571, 6), a = p(a, n, o, r, e[3], 2399980690, 10), r = p(r, a, n, o, e[10], 4293915773, 15), o = p(o, r, a, n, e[1], 2240044497, 21), n = p(n, o, r, a, e[8], 1873313359, 6), a = p(a, n, o, r, e[15], 4264355552, 10), r = p(r, a, n, o, e[6], 2734768916, 15), o = p(o, r, a, n, e[13], 1309151649, 21), n = p(n, o, r, a, e[4], 4149444226, 6), a = p(a, n, o, r, e[11], 3174756917, 10), r = p(r, a, n, o, e[2], 718787259, 15), o = p(o, r, a, n, e[9], 3951481745, 21), this._a = this._a + n | 0, this._b = this._b + o | 0, this._c = this._c + r | 0, this._d = this._d + a | 0
        }, a.prototype._digest = function() {
            this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
            var e = r.allocUnsafe(16);
            return e.writeInt32LE(this._a, 0), e.writeInt32LE(this._b, 4), e.writeInt32LE(this._c, 8), e.writeInt32LE(this._d, 12), e
        }, t.exports = a
    }, {
        "hash-base": 106,
        inherits: 138,
        "safe-buffer": 183
    }],
    140: [function(e, t) {
        var n = e("bn.js"),
            o = e("brorand");

        function r(e) {
            this.rand = e || new o.Rand
        }
        t.exports = r, r.create = function(e) {
            return new r(e)
        }, r.prototype._randbelow = function(e) {
            var t = e.bitLength(),
                o = Math.ceil(t / 8);
            do {
                var r = new n(this.rand.generate(o))
            } while (r.cmp(e) >= 0);
            return r
        }, r.prototype._randrange = function(e, t) {
            var n = t.sub(e);
            return e.add(this._randbelow(n))
        }, r.prototype.test = function(e, t, o) {
            var r = e.bitLength(),
                i = n.mont(e),
                a = new n(1).toRed(i);
            t || (t = Math.max(1, r / 48 | 0));
            for (var s = e.subn(1), l = 0; !s.testn(l); l++);
            for (var c = e.shrn(l), u = s.toRed(i); t > 0; t--) {
                var p = this._randrange(new n(2), s);
                o && o(p);
                var d = p.toRed(i).redPow(c);
                if (0 !== d.cmp(a) && 0 !== d.cmp(u)) {
                    for (var h = 1; h < l; h++) {
                        if (0 === (d = d.redSqr()).cmp(a)) return !1;
                        if (0 === d.cmp(u)) break
                    }
                    if (h === l) return !1
                }
            }
            return !0
        }, r.prototype.getDivisor = function(e, t) {
            var o = e.bitLength(),
                r = n.mont(e),
                i = new n(1).toRed(r);
            t || (t = Math.max(1, o / 48 | 0));
            for (var a = e.subn(1), s = 0; !a.testn(s); s++);
            for (var l = e.shrn(s), c = a.toRed(r); t > 0; t--) {
                var u = this._randrange(new n(2), a),
                    p = e.gcd(u);
                if (0 !== p.cmpn(1)) return p;
                var d = u.toRed(r).redPow(l);
                if (0 !== d.cmp(i) && 0 !== d.cmp(c)) {
                    for (var h = 1; h < s; h++) {
                        if (0 === (d = d.redSqr()).cmp(i)) return d.fromRed().subn(1).gcd(e);
                        if (0 === d.cmp(c)) break
                    }
                    if (h === s) return (d = d.redSqr()).fromRed().subn(1).gcd(e)
                }
            }
            return !1
        }
    }, {
        "bn.js": 141,
        brorand: 18
    }],
    141: [function(e, t, n) {
        arguments[4][15][0].apply(n, arguments)
    }, {
        buffer: 19,
        dup: 15
    }],
    142: [function(e, t) {
        function n(e, t) {
            if (!e) throw new Error(t || "Assertion failed")
        }
        t.exports = n, n.equal = function(e, t, n) {
            if (e != t) throw new Error(n || "Assertion failed: " + e + " != " + t)
        }
    }, {}],
    143: [function(e, t, n) {
        "use strict";
        var o = n;

        function r(e) {
            return 1 === e.length ? "0" + e : e
        }

        function i(e) {
            for (var t = "", n = 0; n < e.length; n++) t += r(e[n].toString(16));
            return t
        }
        o.toArray = function(e, t) {
            if (Array.isArray(e)) return e.slice();
            if (!e) return [];
            var n = [];
            if ("string" != typeof e) {
                for (var o = 0; o < e.length; o++) n[o] = 0 | e[o];
                return n
            }
            if ("hex" === t)
                for ((e = e.replace(/[^a-z0-9]+/gi, "")).length % 2 != 0 && (e = "0" + e), o = 0; o < e.length; o += 2) n.push(parseInt(e[o] + e[o + 1], 16));
            else
                for (o = 0; o < e.length; o++) {
                    var r = e.charCodeAt(o),
                        i = r >> 8,
                        a = 255 & r;
                    i ? n.push(i, a) : n.push(a)
                }
            return n
        }, o.zero2 = r, o.toHex = i, o.encode = function(e, t) {
            return "hex" === t ? i(e) : e
        }
    }, {}],
    144: [function(e, t) {
        t.exports = {
            "2.16.840.1.101.3.4.1.1": "aes-128-ecb",
            "2.16.840.1.101.3.4.1.2": "aes-128-cbc",
            "2.16.840.1.101.3.4.1.3": "aes-128-ofb",
            "2.16.840.1.101.3.4.1.4": "aes-128-cfb",
            "2.16.840.1.101.3.4.1.21": "aes-192-ecb",
            "2.16.840.1.101.3.4.1.22": "aes-192-cbc",
            "2.16.840.1.101.3.4.1.23": "aes-192-ofb",
            "2.16.840.1.101.3.4.1.24": "aes-192-cfb",
            "2.16.840.1.101.3.4.1.41": "aes-256-ecb",
            "2.16.840.1.101.3.4.1.42": "aes-256-cbc",
            "2.16.840.1.101.3.4.1.43": "aes-256-ofb",
            "2.16.840.1.101.3.4.1.44": "aes-256-cfb"
        }
    }, {}],
    145: [function(e, t, n) {
        "use strict";
        var o = e("asn1.js");
        n.certificate = e("./certificate");
        var r = o.define("RSAPrivateKey", function() {
            this.seq().obj(this.key("version").int(), this.key("modulus").int(), this.key("publicExponent").int(), this.key("privateExponent").int(), this.key("prime1").int(), this.key("prime2").int(), this.key("exponent1").int(), this.key("exponent2").int(), this.key("coefficient").int())
        });
        n.RSAPrivateKey = r;
        var i = o.define("RSAPublicKey", function() {
            this.seq().obj(this.key("modulus").int(), this.key("publicExponent").int())
        });
        n.RSAPublicKey = i;
        var a = o.define("SubjectPublicKeyInfo", function() {
            this.seq().obj(this.key("algorithm").use(s), this.key("subjectPublicKey").bitstr())
        });
        n.PublicKey = a;
        var s = o.define("AlgorithmIdentifier", function() {
                this.seq().obj(this.key("algorithm").objid(), this.key("none").null_().optional(), this.key("curve").objid().optional(), this.key("params").seq().obj(this.key("p").int(), this.key("q").int(), this.key("g").int()).optional())
            }),
            l = o.define("PrivateKeyInfo", function() {
                this.seq().obj(this.key("version").int(), this.key("algorithm").use(s), this.key("subjectPrivateKey").octstr())
            });
        n.PrivateKey = l;
        var c = o.define("EncryptedPrivateKeyInfo", function() {
            this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(), this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(), this.key("kdeparams").seq().obj(this.key("salt").octstr(), this.key("iters").int())), this.key("cipher").seq().obj(this.key("algo").objid(), this.key("iv").octstr()))), this.key("subjectPrivateKey").octstr())
        });
        n.EncryptedPrivateKey = c;
        var u = o.define("DSAPrivateKey", function() {
            this.seq().obj(this.key("version").int(), this.key("p").int(), this.key("q").int(), this.key("g").int(), this.key("pub_key").int(), this.key("priv_key").int())
        });
        n.DSAPrivateKey = u, n.DSAparam = o.define("DSAparam", function() {
            this.int()
        });
        var p = o.define("ECPrivateKey", function() {
            this.seq().obj(this.key("version").int(), this.key("privateKey").octstr(), this.key("parameters").optional().explicit(0).use(d), this.key("publicKey").optional().explicit(1).bitstr())
        });
        n.ECPrivateKey = p;
        var d = o.define("ECParameters", function() {
            this.choice({
                namedCurve: this.objid()
            })
        });
        n.signature = o.define("signature", function() {
            this.seq().obj(this.key("r").int(), this.key("s").int())
        })
    }, {
        "./certificate": 146,
        "asn1.js": 1
    }],
    146: [function(e, t) {
        "use strict";
        var n = e("asn1.js"),
            o = n.define("Time", function() {
                this.choice({
                    utcTime: this.utctime(),
                    generalTime: this.gentime()
                })
            }),
            r = n.define("AttributeTypeValue", function() {
                this.seq().obj(this.key("type").objid(), this.key("value").any())
            }),
            i = n.define("AlgorithmIdentifier", function() {
                this.seq().obj(this.key("algorithm").objid(), this.key("parameters").optional(), this.key("curve").objid().optional())
            }),
            a = n.define("SubjectPublicKeyInfo", function() {
                this.seq().obj(this.key("algorithm").use(i), this.key("subjectPublicKey").bitstr())
            }),
            s = n.define("RelativeDistinguishedName", function() {
                this.setof(r)
            }),
            l = n.define("RDNSequence", function() {
                this.seqof(s)
            }),
            c = n.define("Name", function() {
                this.choice({
                    rdnSequence: this.use(l)
                })
            }),
            u = n.define("Validity", function() {
                this.seq().obj(this.key("notBefore").use(o), this.key("notAfter").use(o))
            }),
            p = n.define("Extension", function() {
                this.seq().obj(this.key("extnID").objid(), this.key("critical").bool().def(!1), this.key("extnValue").octstr())
            }),
            d = n.define("TBSCertificate", function() {
                this.seq().obj(this.key("version").explicit(0).int().optional(), this.key("serialNumber").int(), this.key("signature").use(i), this.key("issuer").use(c), this.key("validity").use(u), this.key("subject").use(c), this.key("subjectPublicKeyInfo").use(a), this.key("issuerUniqueID").implicit(1).bitstr().optional(), this.key("subjectUniqueID").implicit(2).bitstr().optional(), this.key("extensions").explicit(3).seqof(p).optional())
            }),
            h = n.define("X509Certificate", function() {
                this.seq().obj(this.key("tbsCertificate").use(d), this.key("signatureAlgorithm").use(i), this.key("signatureValue").bitstr())
            });
        t.exports = h
    }, {
        "asn1.js": 1
    }],
    147: [function(e, t) {
        var n = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,
            o = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,
            r = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,
            i = e("evp_bytestokey"),
            a = e("browserify-aes"),
            s = e("safe-buffer").Buffer;
        t.exports = function(e, t) {
            var l, c = e.toString(),
                u = c.match(n);
            if (u) {
                var p = "aes" + u[1],
                    d = s.from(u[2], "hex"),
                    h = s.from(u[3].replace(/[\r\n]/g, ""), "base64"),
                    f = i(t, d.slice(0, 8), parseInt(u[1], 10)).key,
                    y = [],
                    g = a.createDecipheriv(p, f, d);
                y.push(g.update(h)), y.push(g.final()), l = s.concat(y)
            } else {
                var m = c.match(r);
                l = s.from(m[2].replace(/[\r\n]/g, ""), "base64")
            }
            return {
                tag: c.match(o)[1],
                data: l
            }
        }
    }, {
        "browserify-aes": 22,
        evp_bytestokey: 105,
        "safe-buffer": 183
    }],
    148: [function(e, t) {
        var n = e("./asn1"),
            o = e("./aesid.json"),
            r = e("./fixProc"),
            i = e("browserify-aes"),
            a = e("pbkdf2"),
            s = e("safe-buffer").Buffer;

        function l(e) {
            var t;
            "object" != typeof e || s.isBuffer(e) || (t = e.passphrase, e = e.key), "string" == typeof e && (e = s.from(e));
            var o, i, a = r(e, t),
                l = a.tag,
                u = a.data;
            switch (l) {
                case "CERTIFICATE":
                    i = n.certificate.decode(u, "der").tbsCertificate.subjectPublicKeyInfo;
                case "PUBLIC KEY":
                    switch (i || (i = n.PublicKey.decode(u, "der")), o = i.algorithm.algorithm.join(".")) {
                        case "1.2.840.113549.1.1.1":
                            return n.RSAPublicKey.decode(i.subjectPublicKey.data, "der");
                        case "1.2.840.10045.2.1":
                            return i.subjectPrivateKey = i.subjectPublicKey, {
                                type: "ec",
                                data: i
                            };
                        case "1.2.840.10040.4.1":
                            return i.algorithm.params.pub_key = n.DSAparam.decode(i.subjectPublicKey.data, "der"), {
                                type: "dsa",
                                data: i.algorithm.params
                            };
                        default:
                            throw new Error("unknown key id " + o)
                    }
                case "ENCRYPTED PRIVATE KEY":
                    u = c(u = n.EncryptedPrivateKey.decode(u, "der"), t);
                case "PRIVATE KEY":
                    switch (o = (i = n.PrivateKey.decode(u, "der")).algorithm.algorithm.join(".")) {
                        case "1.2.840.113549.1.1.1":
                            return n.RSAPrivateKey.decode(i.subjectPrivateKey, "der");
                        case "1.2.840.10045.2.1":
                            return {
                                curve: i.algorithm.curve, privateKey: n.ECPrivateKey.decode(i.subjectPrivateKey, "der").privateKey
                            };
                        case "1.2.840.10040.4.1":
                            return i.algorithm.params.priv_key = n.DSAparam.decode(i.subjectPrivateKey, "der"), {
                                type: "dsa",
                                params: i.algorithm.params
                            };
                        default:
                            throw new Error("unknown key id " + o)
                    }
                case "RSA PUBLIC KEY":
                    return n.RSAPublicKey.decode(u, "der");
                case "RSA PRIVATE KEY":
                    return n.RSAPrivateKey.decode(u, "der");
                case "DSA PRIVATE KEY":
                    return {
                        type: "dsa", params: n.DSAPrivateKey.decode(u, "der")
                    };
                case "EC PRIVATE KEY":
                    return {
                        curve: (u = n.ECPrivateKey.decode(u, "der")).parameters.value, privateKey: u.privateKey
                    };
                default:
                    throw new Error("unknown key type " + l)
            }
        }

        function c(e, t) {
            var n = e.algorithm.decrypt.kde.kdeparams.salt,
                r = parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(), 10),
                l = o[e.algorithm.decrypt.cipher.algo.join(".")],
                c = e.algorithm.decrypt.cipher.iv,
                u = e.subjectPrivateKey,
                p = parseInt(l.split("-")[1], 10) / 8,
                d = a.pbkdf2Sync(t, n, r, p, "sha1"),
                h = i.createDecipheriv(l, d, c),
                f = [];
            return f.push(h.update(u)), f.push(h.final()), s.concat(f)
        }
        t.exports = l, l.signature = n.signature
    }, {
        "./aesid.json": 144,
        "./asn1": 145,
        "./fixProc": 147,
        "browserify-aes": 22,
        pbkdf2: 150,
        "safe-buffer": 183
    }],
    149: [function(e, t, n) {
        (function(e) {
            function t(e, t) {
                for (var n = 0, o = e.length - 1; o >= 0; o--) {
                    var r = e[o];
                    "." === r ? e.splice(o, 1) : ".." === r ? (e.splice(o, 1), n++) : n && (e.splice(o, 1), n--)
                }
                if (t)
                    for (; n--; n) e.unshift("..");
                return e
            }

            function o(e) {
                "string" != typeof e && (e += "");
                var t, n = 0,
                    o = -1,
                    r = !0;
                for (t = e.length - 1; t >= 0; --t)
                    if (47 === e.charCodeAt(t)) {
                        if (!r) {
                            n = t + 1;
                            break
                        }
                    } else - 1 === o && (r = !1, o = t + 1);
                return -1 === o ? "" : e.slice(n, o)
            }

            function r(e, t) {
                if (e.filter) return e.filter(t);
                for (var n = [], o = 0; o < e.length; o++) t(e[o], o, e) && n.push(e[o]);
                return n
            }
            n.resolve = function() {
                for (var n = "", o = !1, i = arguments.length - 1; i >= -1 && !o; i--) {
                    var a = i >= 0 ? arguments[i] : e.cwd();
                    if ("string" != typeof a) throw new TypeError("Arguments to path.resolve must be strings");
                    a && (n = a + "/" + n, o = "/" === a.charAt(0))
                }
                return (o ? "/" : "") + (n = t(r(n.split("/"), function(e) {
                    return !!e
                }), !o).join("/")) || "."
            }, n.normalize = function(e) {
                var o = n.isAbsolute(e),
                    a = "/" === i(e, -1);
                return (e = t(r(e.split("/"), function(e) {
                    return !!e
                }), !o).join("/")) || o || (e = "."), e && a && (e += "/"), (o ? "/" : "") + e
            }, n.isAbsolute = function(e) {
                return "/" === e.charAt(0)
            }, n.join = function() {
                var e = Array.prototype.slice.call(arguments, 0);
                return n.normalize(r(e, function(e) {
                    if ("string" != typeof e) throw new TypeError("Arguments to path.join must be strings");
                    return e
                }).join("/"))
            }, n.relative = function(e, t) {
                function o(e) {
                    for (var t = 0; t < e.length && "" === e[t]; t++);
                    for (var n = e.length - 1; n >= 0 && "" === e[n]; n--);
                    return t > n ? [] : e.slice(t, n - t + 1)
                }
                e = n.resolve(e).substr(1), t = n.resolve(t).substr(1);
                for (var r = o(e.split("/")), i = o(t.split("/")), a = Math.min(r.length, i.length), s = a, l = 0; l < a; l++)
                    if (r[l] !== i[l]) {
                        s = l;
                        break
                    } var c = [];
                for (l = s; l < r.length; l++) c.push("..");
                return (c = c.concat(i.slice(s))).join("/")
            }, n.sep = "/", n.delimiter = ":", n.dirname = function(e) {
                if ("string" != typeof e && (e += ""), 0 === e.length) return ".";
                for (var t = e.charCodeAt(0), n = 47 === t, o = -1, r = !0, i = e.length - 1; i >= 1; --i)
                    if (47 === (t = e.charCodeAt(i))) {
                        if (!r) {
                            o = i;
                            break
                        }
                    } else r = !1;
                return -1 === o ? n ? "/" : "." : n && 1 === o ? "/" : e.slice(0, o)
            }, n.basename = function(e, t) {
                var n = o(e);
                return t && n.substr(-1 * t.length) === t && (n = n.substr(0, n.length - t.length)), n
            }, n.extname = function(e) {
                "string" != typeof e && (e += "");
                for (var t = -1, n = 0, o = -1, r = !0, i = 0, a = e.length - 1; a >= 0; --a) {
                    var s = e.charCodeAt(a);
                    if (47 !== s) - 1 === o && (r = !1, o = a + 1), 46 === s ? -1 === t ? t = a : 1 !== i && (i = 1) : -1 !== t && (i = -1);
                    else if (!r) {
                        n = a + 1;
                        break
                    }
                }
                return -1 === t || -1 === o || 0 === i || 1 === i && t === o - 1 && t === n + 1 ? "" : e.slice(t, o)
            };
            var i = "b" === "ab".substr(-1) ? function(e, t, n) {
                return e.substr(t, n)
            } : function(e, t, n) {
                return t < 0 && (t = e.length + t), e.substr(t, n)
            }
        }).call(this, e("_process"))
    }, {
        _process: 157
    }],
    150: [function(e, t, n) {
        n.pbkdf2 = e("./lib/async"), n.pbkdf2Sync = e("./lib/sync")
    }, {
        "./lib/async": 151,
        "./lib/sync": 154
    }],
    151: [function(e, t) {
        (function(n) {
            var o, r, i = e("safe-buffer").Buffer,
                a = e("./precondition"),
                s = e("./default-encoding"),
                l = e("./sync"),
                c = e("./to-buffer"),
                u = n.crypto && n.crypto.subtle,
                p = {
                    sha: "SHA-1",
                    "sha-1": "SHA-1",
                    sha1: "SHA-1",
                    sha256: "SHA-256",
                    "sha-256": "SHA-256",
                    sha384: "SHA-384",
                    "sha-384": "SHA-384",
                    "sha-512": "SHA-512",
                    sha512: "SHA-512"
                },
                d = [];

            function h(e) {
                if (n.process && !n.process.browser) return Promise.resolve(!1);
                if (!u || !u.importKey || !u.deriveBits) return Promise.resolve(!1);
                if (void 0 !== d[e]) return d[e];
                var t = y(o = o || i.alloc(8), o, 10, 128, e).then(function() {
                    return !0
                }).catch(function() {
                    return !1
                });
                return d[e] = t, t
            }

            function f() {
                return r || (r = n.process && n.process.nextTick ? n.process.nextTick : n.queueMicrotask ? n.queueMicrotask : n.setImmediate ? n.setImmediate : n.setTimeout)
            }

            function y(e, t, n, o, r) {
                return u.importKey("raw", e, {
                    name: "PBKDF2"
                }, !1, ["deriveBits"]).then(function(e) {
                    return u.deriveBits({
                        name: "PBKDF2",
                        salt: t,
                        iterations: n,
                        hash: {
                            name: r
                        }
                    }, e, o << 3)
                }).then(function(e) {
                    return i.from(e)
                })
            }

            function g(e, t) {
                e.then(function(e) {
                    f()(function() {
                        t(null, e)
                    })
                }, function(e) {
                    f()(function() {
                        t(e)
                    })
                })
            }
            t.exports = function(e, t, o, r, i, u) {
                "function" == typeof i && (u = i, i = void 0);
                var d = p[(i = i || "sha1").toLowerCase()];
                if (d && "function" == typeof n.Promise) {
                    if (a(o, r), e = c(e, s, "Password"), t = c(t, s, "Salt"), "function" != typeof u) throw new Error("No callback provided to pbkdf2");
                    g(h(d).then(function(n) {
                        return n ? y(e, t, o, r, d) : l(e, t, o, r, i)
                    }), u)
                } else f()(function() {
                    var n;
                    try {
                        n = l(e, t, o, r, i)
                    } catch (a) {
                        return u(a)
                    }
                    u(null, n)
                })
            }
        }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {
        "./default-encoding": 152,
        "./precondition": 153,
        "./sync": 154,
        "./to-buffer": 155,
        "safe-buffer": 183
    }],
    152: [function(e, t) {
        (function(e, n) {
            var o;
            o = n.process && n.process.browser ? "utf-8" : n.process && n.process.version ? parseInt(e.version.split(".")[0].slice(1), 10) >= 6 ? "utf-8" : "binary" : "utf-8", t.exports = o
        }).call(this, e("_process"), "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {
        _process: 157
    }],
    153: [function(e, t) {
        var n = Math.pow(2, 30) - 1;
        t.exports = function(e, t) {
            if ("number" != typeof e) throw new TypeError("Iterations not a number");
            if (e < 0) throw new TypeError("Bad iterations");
            if ("number" != typeof t) throw new TypeError("Key length not a number");
            if (t < 0 || t > n || t != t) throw new TypeError("Bad key length")
        }
    }, {}],
    154: [function(e, t) {
        var n = e("create-hash/md5"),
            o = e("ripemd160"),
            r = e("sha.js"),
            i = e("safe-buffer").Buffer,
            a = e("./precondition"),
            s = e("./default-encoding"),
            l = e("./to-buffer"),
            c = i.alloc(128),
            u = {
                md5: 16,
                sha1: 20,
                sha224: 28,
                sha256: 32,
                sha384: 48,
                sha512: 64,
                rmd160: 20,
                ripemd160: 20
            };

        function p(e, t, n) {
            var o = d(e),
                r = "sha512" === e || "sha384" === e ? 128 : 64;
            t.length > r ? t = o(t) : t.length < r && (t = i.concat([t, c], r));
            for (var a = i.allocUnsafe(r + u[e]), s = i.allocUnsafe(r + u[e]), l = 0; l < r; l++) a[l] = 54 ^ t[l], s[l] = 92 ^ t[l];
            var p = i.allocUnsafe(r + n + 4);
            a.copy(p, 0, 0, r), this.ipad1 = p, this.ipad2 = a, this.opad = s, this.alg = e, this.blocksize = r, this.hash = o, this.size = u[e]
        }

        function d(e) {
            return "rmd160" === e || "ripemd160" === e ? function(e) {
                return (new o).update(e).digest()
            } : "md5" === e ? n : function(t) {
                return r(e).update(t).digest()
            }
        }
        p.prototype.run = function(e, t) {
            return e.copy(t, this.blocksize), this.hash(t).copy(this.opad, this.blocksize), this.hash(this.opad)
        }, t.exports = function(e, t, n, o, r) {
            a(n, o);
            var c = new p(r = r || "sha1", e = l(e, s, "Password"), (t = l(t, s, "Salt")).length),
                d = i.allocUnsafe(o),
                h = i.allocUnsafe(t.length + 4);
            t.copy(h, 0, 0, t.length);
            for (var f = 0, y = u[r], g = Math.ceil(o / y), m = 1; m <= g; m++) {
                h.writeUInt32BE(m, t.length);
                for (var I = c.run(h, c.ipad1), _ = I, C = 1; C < n; C++) {
                    _ = c.run(_, c.ipad2);
                    for (var v = 0; v < y; v++) I[v] ^= _[v]
                }
                I.copy(d, f), f += y
            }
            return d
        }
    }, {
        "./default-encoding": 152,
        "./precondition": 153,
        "./to-buffer": 155,
        "create-hash/md5": 72,
        ripemd160: 182,
        "safe-buffer": 183,
        "sha.js": 186
    }],
    155: [function(e, t) {
        var n = e("safe-buffer").Buffer;
        t.exports = function(e, t, o) {
            if (n.isBuffer(e)) return e;
            if ("string" == typeof e) return n.from(e, t);
            if (ArrayBuffer.isView(e)) return n.from(e.buffer);
            throw new TypeError(o + " must be a string, a Buffer, a typed array or a DataView")
        }
    }, {
        "safe-buffer": 183
    }],
    156: [function(e, t) {
        (function(e) {
            "use strict";
            void 0 === e || !e.version || 0 === e.version.indexOf("v0.") || 0 === e.version.indexOf("v1.") && 0 !== e.version.indexOf("v1.8.") ? t.exports = {
                nextTick: function(t, n, o, r) {
                    if ("function" != typeof t) throw new TypeError('"callback" argument must be a function');
                    var i, a, s = arguments.length;
                    switch (s) {
                        case 0:
                        case 1:
                            return e.nextTick(t);
                        case 2:
                            return e.nextTick(function() {
                                t.call(null, n)
                            });
                        case 3:
                            return e.nextTick(function() {
                                t.call(null, n, o)
                            });
                        case 4:
                            return e.nextTick(function() {
                                t.call(null, n, o, r)
                            });
                        default:
                            for (i = new Array(s - 1), a = 0; a < i.length;) i[a++] = arguments[a];
                            return e.nextTick(function() {
                                t.apply(null, i)
                            })
                    }
                }
            } : t.exports = e
        }).call(this, e("_process"))
    }, {
        _process: 157
    }],
    157: [function(e, t) {
        var n, o, r = t.exports = {};

        function i() {
            throw new Error("setTimeout has not been defined")
        }

        function a() {
            throw new Error("clearTimeout has not been defined")
        }

        function s(e) {
            if (n === setTimeout) return setTimeout(e, 0);
            if ((n === i || !n) && setTimeout) return n = setTimeout, setTimeout(e, 0);
            try {
                return n(e, 0)
            } catch (t) {
                try {
                    return n.call(null, e, 0)
                } catch (t) {
                    return n.call(this, e, 0)
                }
            }
        }

        function l(e) {
            if (o === clearTimeout) return clearTimeout(e);
            if ((o === a || !o) && clearTimeout) return o = clearTimeout, clearTimeout(e);
            try {
                return o(e)
            } catch (t) {
                try {
                    return o.call(null, e)
                } catch (t) {
                    return o.call(this, e)
                }
            }
        }(function() {
            try {
                n = "function" == typeof setTimeout ? setTimeout : i
            } catch (e) {
                n = i
            }
            try {
                o = "function" == typeof clearTimeout ? clearTimeout : a
            } catch (e) {
                o = a
            }
        })();
        var c, u = [],
            p = !1,
            d = -1;

        function h() {
            p && c && (p = !1, c.length ? u = c.concat(u) : d = -1, u.length && f())
        }

        function f() {
            if (!p) {
                var e = s(h);
                p = !0;
                for (var t = u.length; t;) {
                    for (c = u, u = []; ++d < t;) c && c[d].run();
                    d = -1, t = u.length
                }
                c = null, p = !1, l(e)
            }
        }

        function y(e, t) {
            this.fun = e, this.array = t
        }

        function g() {}
        r.nextTick = function(e) {
            var t = new Array(arguments.length - 1);
            if (arguments.length > 1)
                for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
            u.push(new y(e, t)), 1 !== u.length || p || s(f)
        }, y.prototype.run = function() {
            this.fun.apply(null, this.array)
        }, r.title = "browser", r.browser = !0, r.env = {}, r.argv = [], r.version = "", r.versions = {}, r.on = g, r.addListener = g, r.once = g, r.off = g, r.removeListener = g, r.removeAllListeners = g, r.emit = g, r.prependListener = g, r.prependOnceListener = g, r.listeners = function() {
            return []
        }, r.binding = function() {
            throw new Error("process.binding is not supported")
        }, r.cwd = function() {
            return "/"
        }, r.chdir = function() {
            throw new Error("process.chdir is not supported")
        }, r.umask = function() {
            return 0
        }
    }, {}],
    158: [function(e, t, n) {
        n.publicEncrypt = e("./publicEncrypt"), n.privateDecrypt = e("./privateDecrypt"), n.privateEncrypt = function(e, t) {
            return n.publicEncrypt(e, t, !0)
        }, n.publicDecrypt = function(e, t) {
            return n.privateDecrypt(e, t, !0)
        }
    }, {
        "./privateDecrypt": 161,
        "./publicEncrypt": 162
    }],
    159: [function(e, t) {
        var n = e("create-hash"),
            o = e("safe-buffer").Buffer;

        function r(e) {
            var t = o.allocUnsafe(4);
            return t.writeUInt32BE(e, 0), t
        }
        t.exports = function(e, t) {
            for (var i, a = o.alloc(0), s = 0; a.length < t;) i = r(s++), a = o.concat([a, n("sha1").update(e).update(i).digest()]);
            return a.slice(0, t)
        }
    }, {
        "create-hash": 71,
        "safe-buffer": 183
    }],
    160: [function(e, t, n) {
        arguments[4][15][0].apply(n, arguments)
    }, {
        buffer: 19,
        dup: 15
    }],
    161: [function(e, t) {
        var n = e("parse-asn1"),
            o = e("./mgf"),
            r = e("./xor"),
            i = e("bn.js"),
            a = e("browserify-rsa"),
            s = e("create-hash"),
            l = e("./withPublic"),
            c = e("safe-buffer").Buffer;

        function u(e, t) {
            var n = e.modulus.byteLength(),
                i = s("sha1").update(c.alloc(0)).digest(),
                a = i.length;
            if (0 !== t[0]) throw new Error("decryption error");
            var l = t.slice(1, a + 1),
                u = t.slice(a + 1),
                p = r(l, o(u, a)),
                h = r(u, o(p, n - a - 1));
            if (d(i, h.slice(0, a))) throw new Error("decryption error");
            for (var f = a; 0 === h[f];) f++;
            if (1 !== h[f++]) throw new Error("decryption error");
            return h.slice(f)
        }

        function p(e, t, n) {
            for (var o = t.slice(0, 2), r = 2, i = 0; 0 !== t[r++];)
                if (r >= t.length) {
                    i++;
                    break
                } var a = t.slice(2, r - 1);
            if (("0002" !== o.toString("hex") && !n || "0001" !== o.toString("hex") && n) && i++, a.length < 8 && i++, i) throw new Error("decryption error");
            return t.slice(r)
        }

        function d(e, t) {
            e = c.from(e), t = c.from(t);
            var n = 0,
                o = e.length;
            e.length !== t.length && (n++, o = Math.min(e.length, t.length));
            for (var r = -1; ++r < o;) n += e[r] ^ t[r];
            return n
        }
        t.exports = function(e, t, o) {
            var r;
            r = e.padding ? e.padding : o ? 1 : 4;
            var s, d = n(e),
                h = d.modulus.byteLength();
            if (t.length > h || new i(t).cmp(d.modulus) >= 0) throw new Error("decryption error");
            s = o ? l(new i(t), d) : a(t, d);
            var f = c.alloc(h - s.length);
            if (s = c.concat([f, s], h), 4 === r) return u(d, s);
            if (1 === r) return p(0, s, o);
            if (3 === r) return s;
            throw new Error("unknown padding")
        }
    }, {
        "./mgf": 159,
        "./withPublic": 163,
        "./xor": 164,
        "bn.js": 160,
        "browserify-rsa": 40,
        "create-hash": 71,
        "parse-asn1": 148,
        "safe-buffer": 183
    }],
    162: [function(e, t) {
        var n = e("parse-asn1"),
            o = e("randombytes"),
            r = e("create-hash"),
            i = e("./mgf"),
            a = e("./xor"),
            s = e("bn.js"),
            l = e("./withPublic"),
            c = e("browserify-rsa"),
            u = e("safe-buffer").Buffer;

        function p(e, t) {
            var n = e.modulus.byteLength(),
                l = t.length,
                c = r("sha1").update(u.alloc(0)).digest(),
                p = c.length,
                d = 2 * p;
            if (l > n - d - 2) throw new Error("message too long");
            var h = u.alloc(n - l - d - 2),
                f = n - p - 1,
                y = o(p),
                g = a(u.concat([c, h, u.alloc(1, 1), t], f), i(y, f)),
                m = a(y, i(g, p));
            return new s(u.concat([u.alloc(1), m, g], n))
        }

        function d(e, t, n) {
            var o, r = t.length,
                i = e.modulus.byteLength();
            if (r > i - 11) throw new Error("message too long");
            return o = n ? u.alloc(i - r - 3, 255) : h(i - r - 3), new s(u.concat([u.from([0, n ? 1 : 2]), o, u.alloc(1), t], i))
        }

        function h(e) {
            for (var t, n = u.allocUnsafe(e), r = 0, i = o(2 * e), a = 0; r < e;) a === i.length && (i = o(2 * e), a = 0), (t = i[a++]) && (n[r++] = t);
            return n
        }
        t.exports = function(e, t, o) {
            var r;
            r = e.padding ? e.padding : o ? 1 : 4;
            var i, a = n(e);
            if (4 === r) i = p(a, t);
            else if (1 === r) i = d(a, t, o);
            else {
                if (3 !== r) throw new Error("unknown padding");
                if ((i = new s(t)).cmp(a.modulus) >= 0) throw new Error("data too long for modulus")
            }
            return o ? c(i, a) : l(i, a)
        }
    }, {
        "./mgf": 159,
        "./withPublic": 163,
        "./xor": 164,
        "bn.js": 160,
        "browserify-rsa": 40,
        "create-hash": 71,
        "parse-asn1": 148,
        randombytes: 165,
        "safe-buffer": 183
    }],
    163: [function(e, t) {
        var n = e("bn.js"),
            o = e("safe-buffer").Buffer;
        t.exports = function(e, t) {
            return o.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())
        }
    }, {
        "bn.js": 160,
        "safe-buffer": 183
    }],
    164: [function(e, t) {
        t.exports = function(e, t) {
            for (var n = e.length, o = -1; ++o < n;) e[o] ^= t[o];
            return e
        }
    }, {}],
    165: [function(e, t) {
        (function(n, o) {
            "use strict";
            var r = e("safe-buffer").Buffer,
                i = o.crypto || o.msCrypto;
            i && i.getRandomValues ? t.exports = function(e, t) {
                if (e > 4294967295) throw new RangeError("requested too many random bytes");
                var o = r.allocUnsafe(e);
                if (e > 0)
                    if (e > 65536)
                        for (var a = 0; a < e; a += 65536) i.getRandomValues(o.slice(a, a + 65536));
                    else i.getRandomValues(o);
                return "function" == typeof t ? n.nextTick(function() {
                    t(null, o)
                }) : o
            } : t.exports = function() {
                throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")
            }
        }).call(this, e("_process"), "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {
        _process: 157,
        "safe-buffer": 183
    }],
    166: [function(e, t, n) {
        (function(t, o) {
            "use strict";

            function r() {
                throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")
            }
            var i = e("safe-buffer"),
                a = e("randombytes"),
                s = i.Buffer,
                l = i.kMaxLength,
                c = o.crypto || o.msCrypto,
                u = Math.pow(2, 32) - 1;

            function p(e, t) {
                if ("number" != typeof e || e != e) throw new TypeError("offset must be a number");
                if (e > u || e < 0) throw new TypeError("offset must be a uint32");
                if (e > l || e > t) throw new RangeError("offset out of range")
            }

            function d(e, t, n) {
                if ("number" != typeof e || e != e) throw new TypeError("size must be a number");
                if (e > u || e < 0) throw new TypeError("size must be a uint32");
                if (e + t > n || e > l) throw new RangeError("buffer too small")
            }

            function h(e, n, o, r) {
                if (t.browser) {
                    var i = e.buffer,
                        s = new Uint8Array(i, n, o);
                    return c.getRandomValues(s), r ? void t.nextTick(function() {
                        r(null, e)
                    }) : e
                }
                if (!r) return a(o).copy(e, n), e;
                a(o, function(t, o) {
                    if (t) return r(t);
                    o.copy(e, n), r(null, e)
                })
            }
            c && c.getRandomValues || !t.browser ? (n.randomFill = function(e, t, n, r) {
                if (!(s.isBuffer(e) || e instanceof o.Uint8Array)) throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
                if ("function" == typeof t) r = t, t = 0, n = e.length;
                else if ("function" == typeof n) r = n, n = e.length - t;
                else if ("function" != typeof r) throw new TypeError('"cb" argument must be a function');
                return p(t, e.length), d(n, t, e.length), h(e, t, n, r)
            }, n.randomFillSync = function(e, t, n) {
                if (void 0 === t && (t = 0), !(s.isBuffer(e) || e instanceof o.Uint8Array)) throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
                return p(t, e.length), void 0 === n && (n = e.length - t), d(n, t, e.length), h(e, t, n)
            }) : (n.randomFill = r, n.randomFillSync = r)
        }).call(this, e("_process"), "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {
        _process: 157,
        randombytes: 165,
        "safe-buffer": 183
    }],
    167: [function(e, t) {
        t.exports = e("./lib/_stream_duplex.js")
    }, {
        "./lib/_stream_duplex.js": 168
    }],
    168: [function(e, t) {
        "use strict";
        var n = e("process-nextick-args"),
            o = Object.keys || function(e) {
                var t = [];
                for (var n in e) t.push(n);
                return t
            };
        t.exports = u;
        var r = Object.create(e("core-util-is"));
        r.inherits = e("inherits");
        var i = e("./_stream_readable"),
            a = e("./_stream_writable");
        r.inherits(u, i);
        for (var s = o(a.prototype), l = 0; l < s.length; l++) {
            var c = s[l];
            u.prototype[c] || (u.prototype[c] = a.prototype[c])
        }

        function u(e) {
            if (!(this instanceof u)) return new u(e);
            i.call(this, e), a.call(this, e), e && !1 === e.readable && (this.readable = !1), e && !1 === e.writable && (this.writable = !1), this.allowHalfOpen = !0, e && !1 === e.allowHalfOpen && (this.allowHalfOpen = !1), this.once("end", p)
        }

        function p() {
            this.allowHalfOpen || this._writableState.ended || n.nextTick(d, this)
        }

        function d(e) {
            e.end()
        }
        Object.defineProperty(u.prototype, "writableHighWaterMark", {
            enumerable: !1,
            get: function() {
                return this._writableState.highWaterMark
            }
        }), Object.defineProperty(u.prototype, "destroyed", {
            get: function() {
                return void 0 !== this._readableState && void 0 !== this._writableState && this._readableState.destroyed && this._writableState.destroyed
            },
            set: function(e) {
                void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed = e, this._writableState.destroyed = e)
            }
        }), u.prototype._destroy = function(e, t) {
            this.push(null), this.end(), n.nextTick(t, e)
        }
    }, {
        "./_stream_readable": 170,
        "./_stream_writable": 172,
        "core-util-is": 68,
        inherits: 138,
        "process-nextick-args": 156
    }],
    169: [function(e, t) {
        "use strict";
        t.exports = r;
        var n = e("./_stream_transform"),
            o = Object.create(e("core-util-is"));

        function r(e) {
            if (!(this instanceof r)) return new r(e);
            n.call(this, e)
        }
        o.inherits = e("inherits"), o.inherits(r, n), r.prototype._transform = function(e, t, n) {
            n(null, e)
        }
    }, {
        "./_stream_transform": 171,
        "core-util-is": 68,
        inherits: 138
    }],
    170: [function(e, t) {
        (function(n, o) {
            "use strict";
            var r = e("process-nextick-args");
            t.exports = v;
            var i, a = e("isarray");
            v.ReadableState = C, e("events").EventEmitter;
            var s = function(e, t) {
                    return e.listeners(t).length
                },
                l = e("./internal/streams/stream"),
                c = e("safe-buffer").Buffer,
                u = o.Uint8Array || function() {};

            function p(e) {
                return c.from(e)
            }
            var d = Object.create(e("core-util-is"));
            d.inherits = e("inherits");
            var h = e("util"),
                f = void 0;
            f = h && h.debuglog ? h.debuglog("stream") : function() {};
            var y, g = e("./internal/streams/BufferList"),
                m = e("./internal/streams/destroy");
            d.inherits(v, l);
            var I = ["error", "close", "destroy", "pause", "resume"];

            function _(e, t, n) {
                if ("function" == typeof e.prependListener) return e.prependListener(t, n);
                e._events && e._events[t] ? a(e._events[t]) ? e._events[t].unshift(n) : e._events[t] = [n, e._events[t]] : e.on(t, n)
            }

            function C(t, n) {
                t = t || {};
                var o = n instanceof(i = i || e("./_stream_duplex"));
                this.objectMode = !!t.objectMode, o && (this.objectMode = this.objectMode || !!t.readableObjectMode);
                var r = t.highWaterMark,
                    a = t.readableHighWaterMark,
                    s = this.objectMode ? 16 : 16384;
                this.highWaterMark = r || 0 === r ? r : o && (a || 0 === a) ? a : s, this.highWaterMark = Math.floor(this.highWaterMark), this.buffer = new g, this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = t.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, t.encoding && (y || (y = e("string_decoder/").StringDecoder), this.decoder = new y(t.encoding), this.encoding = t.encoding)
            }

            function v(t) {
                if (i = i || e("./_stream_duplex"), !(this instanceof v)) return new v(t);
                this._readableState = new C(t, this), this.readable = !0, t && ("function" == typeof t.read && (this._read = t.read), "function" == typeof t.destroy && (this._destroy = t.destroy)), l.call(this)
            }

            function b(e, t, n, o, r) {
                var i, a = e._readableState;
                return null === t ? (a.reading = !1, L(e, a)) : (r || (i = w(a, t)), i ? e.emit("error", i) : a.objectMode || t && t.length > 0 ? ("string" == typeof t || a.objectMode || Object.getPrototypeOf(t) === c.prototype || (t = p(t)), o ? a.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : S(e, a, t, !0) : a.ended ? e.emit("error", new Error("stream.push() after EOF")) : (a.reading = !1, a.decoder && !n ? (t = a.decoder.write(t), a.objectMode || 0 !== t.length ? S(e, a, t, !1) : M(e, a)) : S(e, a, t, !1))) : o || (a.reading = !1)), P(a)
            }

            function S(e, t, n, o) {
                t.flowing && 0 === t.length && !t.sync ? (e.emit("data", n), e.read(0)) : (t.length += t.objectMode ? 1 : n.length, o ? t.buffer.unshift(n) : t.buffer.push(n), t.needReadable && k(e)), M(e, t)
            }

            function w(e, t) {
                var n, o;
                return o = t, c.isBuffer(o) || o instanceof u || "string" == typeof t || void 0 === t || e.objectMode || (n = new TypeError("Invalid non-string/buffer chunk")), n
            }

            function P(e) {
                return !e.ended && (e.needReadable || e.length < e.highWaterMark || 0 === e.length)
            }
            Object.defineProperty(v.prototype, "destroyed", {
                get: function() {
                    return void 0 !== this._readableState && this._readableState.destroyed
                },
                set: function(e) {
                    this._readableState && (this._readableState.destroyed = e)
                }
            }), v.prototype.destroy = m.destroy, v.prototype._undestroy = m.undestroy, v.prototype._destroy = function(e, t) {
                this.push(null), t(e)
            }, v.prototype.push = function(e, t) {
                var n, o = this._readableState;
                return o.objectMode ? n = !0 : "string" == typeof e && ((t = t || o.defaultEncoding) !== o.encoding && (e = c.from(e, t), t = ""), n = !0), b(this, e, t, !1, n)
            }, v.prototype.unshift = function(e) {
                return b(this, e, null, !0, !1)
            }, v.prototype.isPaused = function() {
                return !1 === this._readableState.flowing
            }, v.prototype.setEncoding = function(t) {
                return y || (y = e("string_decoder/").StringDecoder), this._readableState.decoder = new y(t), this._readableState.encoding = t, this
            };
            var A = 8388608;

            function T(e) {
                return e >= A ? e = A : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e
            }

            function R(e, t) {
                return e <= 0 || 0 === t.length && t.ended ? 0 : t.objectMode ? 1 : e != e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = T(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0))
            }

            function L(e, t) {
                if (!t.ended) {
                    if (t.decoder) {
                        var n = t.decoder.end();
                        n && n.length && (t.buffer.push(n), t.length += t.objectMode ? 1 : n.length)
                    }
                    t.ended = !0, k(e)
                }
            }

            function k(e) {
                var t = e._readableState;
                t.needReadable = !1, t.emittedReadable || (f("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? r.nextTick(O, e) : O(e))
            }

            function O(e) {
                f("emit readable"), e.emit("readable"), G(e)
            }

            function M(e, t) {
                t.readingMore || (t.readingMore = !0, r.nextTick(D, e, t))
            }

            function D(e, t) {
                for (var n = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (f("maybeReadMore read 0"), e.read(0), n !== t.length);) n = t.length;
                t.readingMore = !1
            }

            function B(e) {
                return function() {
                    var t = e._readableState;
                    f("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, 0 === t.awaitDrain && s(e, "data") && (t.flowing = !0, G(e))
                }
            }

            function N(e) {
                f("readable nexttick read 0"), e.read(0)
            }

            function E(e, t) {
                t.resumeScheduled || (t.resumeScheduled = !0, r.nextTick(U, e, t))
            }

            function U(e, t) {
                t.reading || (f("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), G(e), t.flowing && !t.reading && e.read(0)
            }

            function G(e) {
                var t = e._readableState;
                for (f("flow", t.flowing); t.flowing && null !== e.read(););
            }

            function x(e, t) {
                return 0 === t.length ? null : (t.objectMode ? n = t.buffer.shift() : !e || e >= t.length ? (n = t.decoder ? t.buffer.join("") : 1 === t.buffer.length ? t.buffer.head.data : t.buffer.concat(t.length), t.buffer.clear()) : n = H(e, t.buffer, t.decoder), n);
                var n
            }

            function H(e, t, n) {
                var o;
                return e < t.head.data.length ? (o = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : o = e === t.head.data.length ? t.shift() : n ? F(e, t) : j(e, t), o
            }

            function F(e, t) {
                var n = t.head,
                    o = 1,
                    r = n.data;
                for (e -= r.length; n = n.next;) {
                    var i = n.data,
                        a = e > i.length ? i.length : e;
                    if (a === i.length ? r += i : r += i.slice(0, e), 0 == (e -= a)) {
                        a === i.length ? (++o, n.next ? t.head = n.next : t.head = t.tail = null) : (t.head = n, n.data = i.slice(a));
                        break
                    }++o
                }
                return t.length -= o, r
            }

            function j(e, t) {
                var n = c.allocUnsafe(e),
                    o = t.head,
                    r = 1;
                for (o.data.copy(n), e -= o.data.length; o = o.next;) {
                    var i = o.data,
                        a = e > i.length ? i.length : e;
                    if (i.copy(n, n.length - e, 0, a), 0 == (e -= a)) {
                        a === i.length ? (++r, o.next ? t.head = o.next : t.head = t.tail = null) : (t.head = o, o.data = i.slice(a));
                        break
                    }++r
                }
                return t.length -= r, n
            }

            function W(e) {
                var t = e._readableState;
                if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream');
                t.endEmitted || (t.ended = !0, r.nextTick(z, t, e))
            }

            function z(e, t) {
                e.endEmitted || 0 !== e.length || (e.endEmitted = !0, t.readable = !1, t.emit("end"))
            }

            function q(e, t) {
                for (var n = 0, o = e.length; n < o; n++)
                    if (e[n] === t) return n;
                return -1
            }
            v.prototype.read = function(e) {
                f("read", e), e = parseInt(e, 10);
                var t = this._readableState,
                    n = e;
                if (0 !== e && (t.emittedReadable = !1), 0 === e && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return f("read: emitReadable", t.length, t.ended), 0 === t.length && t.ended ? W(this) : k(this), null;
                if (0 === (e = R(e, t)) && t.ended) return 0 === t.length && W(this), null;
                var o, r = t.needReadable;
                return f("need readable", r), (0 === t.length || t.length - e < t.highWaterMark) && f("length less than watermark", r = !0), t.ended || t.reading ? f("reading or ended", r = !1) : r && (f("do read"), t.reading = !0, t.sync = !0, 0 === t.length && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = R(n, t))), null === (o = e > 0 ? x(e, t) : null) ? (t.needReadable = !0, e = 0) : t.length -= e, 0 === t.length && (t.ended || (t.needReadable = !0), n !== e && t.ended && W(this)), null !== o && this.emit("data", o), o
            }, v.prototype._read = function() {
                this.emit("error", new Error("_read() is not implemented"))
            }, v.prototype.pipe = function(e, t) {
                var o = this,
                    i = this._readableState;
                switch (i.pipesCount) {
                    case 0:
                        i.pipes = e;
                        break;
                    case 1:
                        i.pipes = [i.pipes, e];
                        break;
                    default:
                        i.pipes.push(e)
                }
                i.pipesCount += 1, f("pipe count=%d opts=%j", i.pipesCount, t);
                var a = t && !1 === t.end || e === n.stdout || e === n.stderr ? I : c;

                function l(t, n) {
                    f("onunpipe"), t === o && n && !1 === n.hasUnpiped && (n.hasUnpiped = !0, f("cleanup"), e.removeListener("close", g), e.removeListener("finish", m), e.removeListener("drain", u), e.removeListener("error", y), e.removeListener("unpipe", l), o.removeListener("end", c), o.removeListener("end", I), o.removeListener("data", h), p = !0, !i.awaitDrain || e._writableState && !e._writableState.needDrain || u())
                }

                function c() {
                    f("onend"), e.end()
                }
                i.endEmitted ? r.nextTick(a) : o.once("end", a), e.on("unpipe", l);
                var u = B(o);
                e.on("drain", u);
                var p = !1;
                var d = !1;

                function h(t) {
                    f("ondata"), d = !1, !1 !== e.write(t) || d || ((1 === i.pipesCount && i.pipes === e || i.pipesCount > 1 && -1 !== q(i.pipes, e)) && !p && (f("false write response, pause", o._readableState.awaitDrain), o._readableState.awaitDrain++, d = !0), o.pause())
                }

                function y(t) {
                    f("onerror", t), I(), e.removeListener("error", y), 0 === s(e, "error") && e.emit("error", t)
                }

                function g() {
                    e.removeListener("finish", m), I()
                }

                function m() {
                    f("onfinish"), e.removeListener("close", g), I()
                }

                function I() {
                    f("unpipe"), o.unpipe(e)
                }
                return o.on("data", h), _(e, "error", y), e.once("close", g), e.once("finish", m), e.emit("pipe", o), i.flowing || (f("pipe resume"), o.resume()), e
            }, v.prototype.unpipe = function(e) {
                var t = this._readableState,
                    n = {
                        hasUnpiped: !1
                    };
                if (0 === t.pipesCount) return this;
                if (1 === t.pipesCount) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, n), this);
                if (!e) {
                    var o = t.pipes,
                        r = t.pipesCount;
                    t.pipes = null, t.pipesCount = 0, t.flowing = !1;
                    for (var i = 0; i < r; i++) o[i].emit("unpipe", this, n);
                    return this
                }
                var a = q(t.pipes, e);
                return -1 === a ? this : (t.pipes.splice(a, 1), t.pipesCount -= 1, 1 === t.pipesCount && (t.pipes = t.pipes[0]), e.emit("unpipe", this, n), this)
            }, v.prototype.on = function(e, t) {
                var n = l.prototype.on.call(this, e, t);
                if ("data" === e) !1 !== this._readableState.flowing && this.resume();
                else if ("readable" === e) {
                    var o = this._readableState;
                    o.endEmitted || o.readableListening || (o.readableListening = o.needReadable = !0, o.emittedReadable = !1, o.reading ? o.length && k(this) : r.nextTick(N, this))
                }
                return n
            }, v.prototype.addListener = v.prototype.on, v.prototype.resume = function() {
                var e = this._readableState;
                return e.flowing || (f("resume"), e.flowing = !0, E(this, e)), this
            }, v.prototype.pause = function() {
                return f("call pause flowing=%j", this._readableState.flowing), !1 !== this._readableState.flowing && (f("pause"), this._readableState.flowing = !1, this.emit("pause")), this
            }, v.prototype.wrap = function(e) {
                var t = this,
                    n = this._readableState,
                    o = !1;
                for (var r in e.on("end", function() {
                        if (f("wrapped end"), n.decoder && !n.ended) {
                            var e = n.decoder.end();
                            e && e.length && t.push(e)
                        }
                        t.push(null)
                    }), e.on("data", function(r) {
                        f("wrapped data"), n.decoder && (r = n.decoder.write(r)), n.objectMode && null == r || (n.objectMode || r && r.length) && (t.push(r) || (o = !0, e.pause()))
                    }), e) void 0 === this[r] && "function" == typeof e[r] && (this[r] = function(t) {
                    return function() {
                        return e[t].apply(e, arguments)
                    }
                }(r));
                for (var i = 0; i < I.length; i++) e.on(I[i], this.emit.bind(this, I[i]));
                return this._read = function(t) {
                    f("wrapped _read", t), o && (o = !1, e.resume())
                }, this
            }, Object.defineProperty(v.prototype, "readableHighWaterMark", {
                enumerable: !1,
                get: function() {
                    return this._readableState.highWaterMark
                }
            }), v._fromList = x
        }).call(this, e("_process"), "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {
        "./_stream_duplex": 168,
        "./internal/streams/BufferList": 173,
        "./internal/streams/destroy": 174,
        "./internal/streams/stream": 175,
        _process: 157,
        "core-util-is": 68,
        events: 104,
        inherits: 138,
        isarray: 176,
        "process-nextick-args": 156,
        "safe-buffer": 183,
        "string_decoder/": 177,
        util: 19
    }],
    171: [function(e, t) {
        "use strict";
        t.exports = i;
        var n = e("./_stream_duplex"),
            o = Object.create(e("core-util-is"));

        function r(e, t) {
            var n = this._transformState;
            n.transforming = !1;
            var o = n.writecb;
            if (!o) return this.emit("error", new Error("write callback called multiple times"));
            n.writechunk = null, n.writecb = null, null != t && this.push(t), o(e);
            var r = this._readableState;
            r.reading = !1, (r.needReadable || r.length < r.highWaterMark) && this._read(r.highWaterMark)
        }

        function i(e) {
            if (!(this instanceof i)) return new i(e);
            n.call(this, e), this._transformState = {
                afterTransform: r.bind(this),
                needTransform: !1,
                transforming: !1,
                writecb: null,
                writechunk: null,
                writeencoding: null
            }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && ("function" == typeof e.transform && (this._transform = e.transform), "function" == typeof e.flush && (this._flush = e.flush)), this.on("prefinish", a)
        }

        function a() {
            var e = this;
            "function" == typeof this._flush ? this._flush(function(t, n) {
                s(e, t, n)
            }) : s(this, null, null)
        }

        function s(e, t, n) {
            if (t) return e.emit("error", t);
            if (null != n && e.push(n), e._writableState.length) throw new Error("Calling transform done when ws.length != 0");
            if (e._transformState.transforming) throw new Error("Calling transform done when still transforming");
            return e.push(null)
        }
        o.inherits = e("inherits"), o.inherits(i, n), i.prototype.push = function(e, t) {
            return this._transformState.needTransform = !1, n.prototype.push.call(this, e, t)
        }, i.prototype._transform = function() {
            throw new Error("_transform() is not implemented")
        }, i.prototype._write = function(e, t, n) {
            var o = this._transformState;
            if (o.writecb = n, o.writechunk = e, o.writeencoding = t, !o.transforming) {
                var r = this._readableState;
                (o.needTransform || r.needReadable || r.length < r.highWaterMark) && this._read(r.highWaterMark)
            }
        }, i.prototype._read = function() {
            var e = this._transformState;
            null !== e.writechunk && e.writecb && !e.transforming ? (e.transforming = !0, this._transform(e.writechunk, e.writeencoding, e.afterTransform)) : e.needTransform = !0
        }, i.prototype._destroy = function(e, t) {
            var o = this;
            n.prototype._destroy.call(this, e, function(e) {
                t(e), o.emit("close")
            })
        }
    }, {
        "./_stream_duplex": 168,
        "core-util-is": 68,
        inherits: 138
    }],
    172: [function(e, t) {
        (function(n, o) {
            "use strict";
            var r = e("process-nextick-args");

            function i(e) {
                var t = this;
                this.next = null, this.entry = null, this.finish = function() {
                    N(t, e)
                }
            }
            t.exports = I;
            var a, s = !n.browser && ["v0.10", "v0.9."].indexOf(n.version.slice(0, 5)) > -1 ? setImmediate : r.nextTick;
            I.WritableState = m;
            var l = Object.create(e("core-util-is"));
            l.inherits = e("inherits");
            var c = {
                    deprecate: e("util-deprecate")
                },
                u = e("./internal/streams/stream"),
                p = e("safe-buffer").Buffer,
                d = o.Uint8Array || function() {};

            function h(e) {
                return p.from(e)
            }
            var f, y = e("./internal/streams/destroy");

            function g() {}

            function m(t, n) {
                a = a || e("./_stream_duplex"), t = t || {};
                var o = n instanceof a;
                this.objectMode = !!t.objectMode, o && (this.objectMode = this.objectMode || !!t.writableObjectMode);
                var r = t.highWaterMark,
                    s = t.writableHighWaterMark,
                    l = this.objectMode ? 16 : 16384;
                this.highWaterMark = r || 0 === r ? r : o && (s || 0 === s) ? s : l, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
                var c = !1 === t.decodeStrings;
                this.decodeStrings = !c, this.defaultEncoding = t.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(e) {
                    A(n, e)
                }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new i(this)
            }

            function I(t) {
                if (a = a || e("./_stream_duplex"), !(f.call(I, this) || this instanceof a)) return new I(t);
                this._writableState = new m(t, this), this.writable = !0, t && ("function" == typeof t.write && (this._write = t.write), "function" == typeof t.writev && (this._writev = t.writev), "function" == typeof t.destroy && (this._destroy = t.destroy), "function" == typeof t.final && (this._final = t.final)), u.call(this)
            }

            function _(e, t) {
                var n = new Error("write after end");
                e.emit("error", n), r.nextTick(t, n)
            }

            function C(e, t, n, o) {
                var i = !0,
                    a = !1;
                return null === n ? a = new TypeError("May not write null values to stream") : "string" == typeof n || void 0 === n || t.objectMode || (a = new TypeError("Invalid non-string/buffer chunk")), a && (e.emit("error", a), r.nextTick(o, a), i = !1), i
            }

            function v(e, t, n) {
                return e.objectMode || !1 === e.decodeStrings || "string" != typeof t || (t = p.from(t, n)), t
            }

            function b(e, t, n, o, r, i) {
                if (!n) {
                    var a = v(t, o, r);
                    o !== a && (n = !0, r = "buffer", o = a)
                }
                var s = t.objectMode ? 1 : o.length;
                t.length += s;
                var l = t.length < t.highWaterMark;
                if (l || (t.needDrain = !0), t.writing || t.corked) {
                    var c = t.lastBufferedRequest;
                    t.lastBufferedRequest = {
                        chunk: o,
                        encoding: r,
                        isBuf: n,
                        callback: i,
                        next: null
                    }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1
                } else S(e, t, !1, s, o, r, i);
                return l
            }

            function S(e, t, n, o, r, i, a) {
                t.writelen = o, t.writecb = a, t.writing = !0, t.sync = !0, n ? e._writev(r, t.onwrite) : e._write(r, i, t.onwrite), t.sync = !1
            }

            function w(e, t, n, o, i) {
                --t.pendingcb, n ? (r.nextTick(i, o), r.nextTick(D, e, t), e._writableState.errorEmitted = !0, e.emit("error", o)) : (i(o), e._writableState.errorEmitted = !0, e.emit("error", o), D(e, t))
            }

            function P(e) {
                e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0
            }

            function A(e, t) {
                var n = e._writableState,
                    o = n.sync,
                    r = n.writecb;
                if (P(n), t) w(e, n, o, t, r);
                else {
                    var i = k(n);
                    i || n.corked || n.bufferProcessing || !n.bufferedRequest || L(e, n), o ? s(T, e, n, i, r) : T(e, n, i, r)
                }
            }

            function T(e, t, n, o) {
                n || R(e, t), t.pendingcb--, o(), D(e, t)
            }

            function R(e, t) {
                0 === t.length && t.needDrain && (t.needDrain = !1, e.emit("drain"))
            }

            function L(e, t) {
                t.bufferProcessing = !0;
                var n = t.bufferedRequest;
                if (e._writev && n && n.next) {
                    var o = t.bufferedRequestCount,
                        r = new Array(o),
                        a = t.corkedRequestsFree;
                    a.entry = n;
                    for (var s = 0, l = !0; n;) r[s] = n, n.isBuf || (l = !1), n = n.next, s += 1;
                    r.allBuffers = l, S(e, t, !0, t.length, r, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new i(t), t.bufferedRequestCount = 0
                } else {
                    for (; n;) {
                        var c = n.chunk,
                            u = n.encoding,
                            p = n.callback;
                        if (S(e, t, !1, t.objectMode ? 1 : c.length, c, u, p), n = n.next, t.bufferedRequestCount--, t.writing) break
                    }
                    null === n && (t.lastBufferedRequest = null)
                }
                t.bufferedRequest = n, t.bufferProcessing = !1
            }

            function k(e) {
                return e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing
            }

            function O(e, t) {
                e._final(function(n) {
                    t.pendingcb--, n && e.emit("error", n), t.prefinished = !0, e.emit("prefinish"), D(e, t)
                })
            }

            function M(e, t) {
                t.prefinished || t.finalCalled || ("function" == typeof e._final ? (t.pendingcb++, t.finalCalled = !0, r.nextTick(O, e, t)) : (t.prefinished = !0, e.emit("prefinish")))
            }

            function D(e, t) {
                var n = k(t);
                return n && (M(e, t), 0 === t.pendingcb && (t.finished = !0, e.emit("finish"))), n
            }

            function B(e, t, n) {
                t.ending = !0, D(e, t), n && (t.finished ? r.nextTick(n) : e.once("finish", n)), t.ended = !0, e.writable = !1
            }

            function N(e, t, n) {
                var o = e.entry;
                for (e.entry = null; o;) {
                    var r = o.callback;
                    t.pendingcb--, r(n), o = o.next
                }
                t.corkedRequestsFree ? t.corkedRequestsFree.next = e : t.corkedRequestsFree = e
            }
            l.inherits(I, u), m.prototype.getBuffer = function() {
                    for (var e = this.bufferedRequest, t = []; e;) t.push(e), e = e.next;
                    return t
                },
                function() {
                    try {
                        Object.defineProperty(m.prototype, "buffer", {
                            get: c.deprecate(function() {
                                return this.getBuffer()
                            }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
                        })
                    } catch (e) {}
                }(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (f = Function.prototype[Symbol.hasInstance], Object.defineProperty(I, Symbol.hasInstance, {
                    value: function(e) {
                        return !!f.call(this, e) || this === I && e && e._writableState instanceof m
                    }
                })) : f = function(e) {
                    return e instanceof this
                }, I.prototype.pipe = function() {
                    this.emit("error", new Error("Cannot pipe, not readable"))
                }, I.prototype.write = function(e, t, n) {
                    var o, r = this._writableState,
                        i = !1,
                        a = !r.objectMode && (o = e, p.isBuffer(o) || o instanceof d);
                    return a && !p.isBuffer(e) && (e = h(e)), "function" == typeof t && (n = t, t = null), a ? t = "buffer" : t || (t = r.defaultEncoding), "function" != typeof n && (n = g), r.ended ? _(this, n) : (a || C(this, r, e, n)) && (r.pendingcb++, i = b(this, r, a, e, t, n)), i
                }, I.prototype.cork = function() {
                    this._writableState.corked++
                }, I.prototype.uncork = function() {
                    var e = this._writableState;
                    e.corked && (e.corked--, e.writing || e.corked || e.finished || e.bufferProcessing || !e.bufferedRequest || L(this, e))
                }, I.prototype.setDefaultEncoding = function(e) {
                    if ("string" == typeof e && (e = e.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + e);
                    return this._writableState.defaultEncoding = e, this
                }, Object.defineProperty(I.prototype, "writableHighWaterMark", {
                    enumerable: !1,
                    get: function() {
                        return this._writableState.highWaterMark
                    }
                }), I.prototype._write = function(e, t, n) {
                    n(new Error("_write() is not implemented"))
                }, I.prototype._writev = null, I.prototype.end = function(e, t, n) {
                    var o = this._writableState;
                    "function" == typeof e ? (n = e, e = null, t = null) : "function" == typeof t && (n = t, t = null), null != e && this.write(e, t), o.corked && (o.corked = 1, this.uncork()), o.ending || o.finished || B(this, o, n)
                }, Object.defineProperty(I.prototype, "destroyed", {
                    get: function() {
                        return void 0 !== this._writableState && this._writableState.destroyed
                    },
                    set: function(e) {
                        this._writableState && (this._writableState.destroyed = e)
                    }
                }), I.prototype.destroy = y.destroy, I.prototype._undestroy = y.undestroy, I.prototype._destroy = function(e, t) {
                    this.end(), t(e)
                }
        }).call(this, e("_process"), "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {
        "./_stream_duplex": 168,
        "./internal/streams/destroy": 174,
        "./internal/streams/stream": 175,
        _process: 157,
        "core-util-is": 68,
        inherits: 138,
        "process-nextick-args": 156,
        "safe-buffer": 183,
        "util-deprecate": 195
    }],
    173: [function(e, t) {
        "use strict";

        function n(e, t) {
            if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
        }
        var o = e("safe-buffer").Buffer,
            r = e("util");
        t.exports = function() {
            function e() {
                n(this, e), this.head = null, this.tail = null, this.length = 0
            }
            return e.prototype.push = function(e) {
                var t = {
                    data: e,
                    next: null
                };
                this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length
            }, e.prototype.unshift = function(e) {
                var t = {
                    data: e,
                    next: this.head
                };
                0 === this.length && (this.tail = t), this.head = t, ++this.length
            }, e.prototype.shift = function() {
                if (0 !== this.length) {
                    var e = this.head.data;
                    return 1 === this.length ? this.head = this.tail = null : this.head = this.head.next, --this.length, e
                }
            }, e.prototype.clear = function() {
                this.head = this.tail = null, this.length = 0
            }, e.prototype.join = function(e) {
                if (0 === this.length) return "";
                for (var t = this.head, n = "" + t.data; t = t.next;) n += e + t.data;
                return n
            }, e.prototype.concat = function(e) {
                if (0 === this.length) return o.alloc(0);
                if (1 === this.length) return this.head.data;
                for (var t, n, r = o.allocUnsafe(e >>> 0), i = this.head, a = 0; i;) t = r, n = a, i.data.copy(t, n), a += i.data.length, i = i.next;
                return r
            }, e
        }(), r && r.inspect && r.inspect.custom && (t.exports.prototype[r.inspect.custom] = function() {
            var e = r.inspect({
                length: this.length
            });
            return this.constructor.name + " " + e
        })
    }, {
        "safe-buffer": 183,
        util: 19
    }],
    174: [function(e, t) {
        "use strict";
        var n = e("process-nextick-args");

        function o(e, t) {
            e.emit("error", t)
        }
        t.exports = {
            destroy: function(e, t) {
                var r = this,
                    i = this._readableState && this._readableState.destroyed,
                    a = this._writableState && this._writableState.destroyed;
                return i || a ? (t ? t(e) : !e || this._writableState && this._writableState.errorEmitted || n.nextTick(o, this, e), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(e) {
                    !t && e ? (n.nextTick(o, r, e), r._writableState && (r._writableState.errorEmitted = !0)) : t && t(e)
                }), this)
            },
            undestroy: function() {
                this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1)
            }
        }
    }, {
        "process-nextick-args": 156
    }],
    175: [function(e, t, n) {
        arguments[4][60][0].apply(n, arguments)
    }, {
        dup: 60,
        events: 104
    }],
    176: [function(e, t, n) {
        arguments[4][66][0].apply(n, arguments)
    }, {
        dup: 66
    }],
    177: [function(e, t, n) {
        arguments[4][63][0].apply(n, arguments)
    }, {
        dup: 63,
        "safe-buffer": 183
    }],
    178: [function(e, t) {
        t.exports = e("./readable").PassThrough
    }, {
        "./readable": 179
    }],
    179: [function(e, t, n) {
        (n = t.exports = e("./lib/_stream_readable.js")).Stream = n, n.Readable = n, n.Writable = e("./lib/_stream_writable.js"), n.Duplex = e("./lib/_stream_duplex.js"), n.Transform = e("./lib/_stream_transform.js"), n.PassThrough = e("./lib/_stream_passthrough.js")
    }, {
        "./lib/_stream_duplex.js": 168,
        "./lib/_stream_passthrough.js": 169,
        "./lib/_stream_readable.js": 170,
        "./lib/_stream_transform.js": 171,
        "./lib/_stream_writable.js": 172
    }],
    180: [function(e, t) {
        t.exports = e("./readable").Transform
    }, {
        "./readable": 179
    }],
    181: [function(e, t) {
        t.exports = e("./lib/_stream_writable.js")
    }, {
        "./lib/_stream_writable.js": 172
    }],
    182: [function(e, t) {
        "use strict";
        var n = e("buffer").Buffer,
            o = e("inherits"),
            r = e("hash-base"),
            i = new Array(16),
            a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13],
            s = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11],
            l = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6],
            c = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11],
            u = [0, 1518500249, 1859775393, 2400959708, 2840853838],
            p = [1352829926, 1548603684, 1836072691, 2053994217, 0];

        function d() {
            r.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520
        }

        function h(e, t) {
            return e << t | e >>> 32 - t
        }

        function f(e, t, n, o, r, i, a, s) {
            return h(e + (t ^ n ^ o) + i + a | 0, s) + r | 0
        }

        function y(e, t, n, o, r, i, a, s) {
            return h(e + (t & n | ~t & o) + i + a | 0, s) + r | 0
        }

        function g(e, t, n, o, r, i, a, s) {
            return h(e + ((t | ~n) ^ o) + i + a | 0, s) + r | 0
        }

        function m(e, t, n, o, r, i, a, s) {
            return h(e + (t & o | n & ~o) + i + a | 0, s) + r | 0
        }

        function I(e, t, n, o, r, i, a, s) {
            return h(e + (t ^ (n | ~o)) + i + a | 0, s) + r | 0
        }
        o(d, r), d.prototype._update = function() {
            for (var e = i, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(4 * t);
            for (var n = 0 | this._a, o = 0 | this._b, r = 0 | this._c, d = 0 | this._d, _ = 0 | this._e, C = 0 | this._a, v = 0 | this._b, b = 0 | this._c, S = 0 | this._d, w = 0 | this._e, P = 0; P < 80; P += 1) {
                var A, T;
                P < 16 ? (A = f(n, o, r, d, _, e[a[P]], u[0], l[P]), T = I(C, v, b, S, w, e[s[P]], p[0], c[P])) : P < 32 ? (A = y(n, o, r, d, _, e[a[P]], u[1], l[P]), T = m(C, v, b, S, w, e[s[P]], p[1], c[P])) : P < 48 ? (A = g(n, o, r, d, _, e[a[P]], u[2], l[P]), T = g(C, v, b, S, w, e[s[P]], p[2], c[P])) : P < 64 ? (A = m(n, o, r, d, _, e[a[P]], u[3], l[P]), T = y(C, v, b, S, w, e[s[P]], p[3], c[P])) : (A = I(n, o, r, d, _, e[a[P]], u[4], l[P]), T = f(C, v, b, S, w, e[s[P]], p[4], c[P])), n = _, _ = d, d = h(r, 10), r = o, o = A, C = w, w = S, S = h(b, 10), b = v, v = T
            }
            var R = this._b + r + S | 0;
            this._b = this._c + d + w | 0, this._c = this._d + _ + C | 0, this._d = this._e + n + v | 0, this._e = this._a + o + b | 0, this._a = R
        }, d.prototype._digest = function() {
            this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
            var e = n.alloc ? n.alloc(20) : new n(20);
            return e.writeInt32LE(this._a, 0), e.writeInt32LE(this._b, 4), e.writeInt32LE(this._c, 8), e.writeInt32LE(this._d, 12), e.writeInt32LE(this._e, 16), e
        }, t.exports = d
    }, {
        buffer: 65,
        "hash-base": 106,
        inherits: 138
    }],
    183: [function(e, t, n) {
        var o = e("buffer"),
            r = o.Buffer;

        function i(e, t) {
            for (var n in e) t[n] = e[n]
        }

        function a(e, t, n) {
            return r(e, t, n)
        }
        r.from && r.alloc && r.allocUnsafe && r.allocUnsafeSlow ? t.exports = o : (i(o, n), n.Buffer = a), i(r, a), a.from = function(e, t, n) {
            if ("number" == typeof e) throw new TypeError("Argument must not be a number");
            return r(e, t, n)
        }, a.alloc = function(e, t, n) {
            if ("number" != typeof e) throw new TypeError("Argument must be a number");
            var o = r(e);
            return void 0 !== t ? "string" == typeof n ? o.fill(t, n) : o.fill(t) : o.fill(0), o
        }, a.allocUnsafe = function(e) {
            if ("number" != typeof e) throw new TypeError("Argument must be a number");
            return r(e)
        }, a.allocUnsafeSlow = function(e) {
            if ("number" != typeof e) throw new TypeError("Argument must be a number");
            return o.SlowBuffer(e)
        }
    }, {
        buffer: 65
    }],
    184: [function(e, t) {
        (function(n) {
            "use strict";
            var o, r = e("buffer"),
                i = r.Buffer,
                a = {};
            for (o in r) r.hasOwnProperty(o) && "SlowBuffer" !== o && "Buffer" !== o && (a[o] = r[o]);
            var s = a.Buffer = {};
            for (o in i) i.hasOwnProperty(o) && "allocUnsafe" !== o && "allocUnsafeSlow" !== o && (s[o] = i[o]);
            if (a.Buffer.prototype = i.prototype, s.from && s.from !== Uint8Array.from || (s.from = function(e, t, n) {
                    if ("number" == typeof e) throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof e);
                    if (e && void 0 === e.length) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
                    return i(e, t, n)
                }), s.alloc || (s.alloc = function(e, t, n) {
                    if ("number" != typeof e) throw new TypeError('The "size" argument must be of type number. Received type ' + typeof e);
                    if (e < 0 || e >= 2 * (1 << 30)) throw new RangeError('The value "' + e + '" is invalid for option "size"');
                    var o = i(e);
                    return t && 0 !== t.length ? "string" == typeof n ? o.fill(t, n) : o.fill(t) : o.fill(0), o
                }), !a.kStringMaxLength) try {
                a.kStringMaxLength = n.binding("buffer").kStringMaxLength
            } catch (l) {}
            a.constants || (a.constants = {
                MAX_LENGTH: a.kMaxLength
            }, a.kStringMaxLength && (a.constants.MAX_STRING_LENGTH = a.kStringMaxLength)), t.exports = a
        }).call(this, e("_process"))
    }, {
        _process: 157,
        buffer: 65
    }],
    185: [function(e, t) {
        var n = e("safe-buffer").Buffer;

        function o(e, t) {
            this._block = n.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0
        }
        o.prototype.update = function(e, t) {
            "string" == typeof e && (t = t || "utf8", e = n.from(e, t));
            for (var o = this._block, r = this._blockSize, i = e.length, a = this._len, s = 0; s < i;) {
                for (var l = a % r, c = Math.min(i - s, r - l), u = 0; u < c; u++) o[l + u] = e[s + u];
                s += c, (a += c) % r == 0 && this._update(o)
            }
            return this._len += i, this
        }, o.prototype.digest = function(e) {
            var t = this._len % this._blockSize;
            this._block[t] = 128, this._block.fill(0, t + 1), t >= this._finalSize && (this._update(this._block), this._block.fill(0));
            var n = 8 * this._len;
            if (n <= 4294967295) this._block.writeUInt32BE(n, this._blockSize - 4);
            else {
                var o = (4294967295 & n) >>> 0,
                    r = (n - o) / 4294967296;
                this._block.writeUInt32BE(r, this._blockSize - 8), this._block.writeUInt32BE(o, this._blockSize - 4)
            }
            this._update(this._block);
            var i = this._hash();
            return e ? i.toString(e) : i
        }, o.prototype._update = function() {
            throw new Error("_update must be implemented by subclass")
        }, t.exports = o
    }, {
        "safe-buffer": 183
    }],
    186: [function(e, t, n) {
        (n = t.exports = function(e) {
            e = e.toLowerCase();
            var t = n[e];
            if (!t) throw new Error(e + " is not supported (we accept pull requests)");
            return new t
        }).sha = e("./sha"), n.sha1 = e("./sha1"), n.sha224 = e("./sha224"), n.sha256 = e("./sha256"), n.sha384 = e("./sha384"), n.sha512 = e("./sha512")
    }, {
        "./sha": 187,
        "./sha1": 188,
        "./sha224": 189,
        "./sha256": 190,
        "./sha384": 191,
        "./sha512": 192
    }],
    187: [function(e, t) {
        var n = e("inherits"),
            o = e("./hash"),
            r = e("safe-buffer").Buffer,
            i = [1518500249, 1859775393, -1894007588, -899497514],
            a = new Array(80);

        function s() {
            this.init(), this._w = a, o.call(this, 64, 56)
        }

        function l(e) {
            return e << 30 | e >>> 2
        }

        function c(e, t, n, o) {
            return 0 === e ? t & n | ~t & o : 2 === e ? t & n | t & o | n & o : t ^ n ^ o
        }
        n(s, o), s.prototype.init = function() {
            return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this
        }, s.prototype._update = function(e) {
            for (var t, n = this._w, o = 0 | this._a, r = 0 | this._b, a = 0 | this._c, s = 0 | this._d, u = 0 | this._e, p = 0; p < 16; ++p) n[p] = e.readInt32BE(4 * p);
            for (; p < 80; ++p) n[p] = n[p - 3] ^ n[p - 8] ^ n[p - 14] ^ n[p - 16];
            for (var d = 0; d < 80; ++d) {
                var h = ~~(d / 20),
                    f = 0 | ((t = o) << 5 | t >>> 27) + c(h, r, a, s) + u + n[d] + i[h];
                u = s, s = a, a = l(r), r = o, o = f
            }
            this._a = o + this._a | 0, this._b = r + this._b | 0, this._c = a + this._c | 0, this._d = s + this._d | 0, this._e = u + this._e | 0
        }, s.prototype._hash = function() {
            var e = r.allocUnsafe(20);
            return e.writeInt32BE(0 | this._a, 0), e.writeInt32BE(0 | this._b, 4), e.writeInt32BE(0 | this._c, 8), e.writeInt32BE(0 | this._d, 12), e.writeInt32BE(0 | this._e, 16), e
        }, t.exports = s
    }, {
        "./hash": 185,
        inherits: 138,
        "safe-buffer": 183
    }],
    188: [function(e, t) {
        var n = e("inherits"),
            o = e("./hash"),
            r = e("safe-buffer").Buffer,
            i = [1518500249, 1859775393, -1894007588, -899497514],
            a = new Array(80);

        function s() {
            this.init(), this._w = a, o.call(this, 64, 56)
        }

        function l(e) {
            return e << 5 | e >>> 27
        }

        function c(e) {
            return e << 30 | e >>> 2
        }

        function u(e, t, n, o) {
            return 0 === e ? t & n | ~t & o : 2 === e ? t & n | t & o | n & o : t ^ n ^ o
        }
        n(s, o), s.prototype.init = function() {
            return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this
        }, s.prototype._update = function(e) {
            for (var t, n = this._w, o = 0 | this._a, r = 0 | this._b, a = 0 | this._c, s = 0 | this._d, p = 0 | this._e, d = 0; d < 16; ++d) n[d] = e.readInt32BE(4 * d);
            for (; d < 80; ++d) n[d] = (t = n[d - 3] ^ n[d - 8] ^ n[d - 14] ^ n[d - 16]) << 1 | t >>> 31;
            for (var h = 0; h < 80; ++h) {
                var f = ~~(h / 20),
                    y = l(o) + u(f, r, a, s) + p + n[h] + i[f] | 0;
                p = s, s = a, a = c(r), r = o, o = y
            }
            this._a = o + this._a | 0, this._b = r + this._b | 0, this._c = a + this._c | 0, this._d = s + this._d | 0, this._e = p + this._e | 0
        }, s.prototype._hash = function() {
            var e = r.allocUnsafe(20);
            return e.writeInt32BE(0 | this._a, 0), e.writeInt32BE(0 | this._b, 4), e.writeInt32BE(0 | this._c, 8), e.writeInt32BE(0 | this._d, 12), e.writeInt32BE(0 | this._e, 16), e
        }, t.exports = s
    }, {
        "./hash": 185,
        inherits: 138,
        "safe-buffer": 183
    }],
    189: [function(e, t) {
        var n = e("inherits"),
            o = e("./sha256"),
            r = e("./hash"),
            i = e("safe-buffer").Buffer,
            a = new Array(64);

        function s() {
            this.init(), this._w = a, r.call(this, 64, 56)
        }
        n(s, o), s.prototype.init = function() {
            return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this
        }, s.prototype._hash = function() {
            var e = i.allocUnsafe(28);
            return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e
        }, t.exports = s
    }, {
        "./hash": 185,
        "./sha256": 190,
        inherits: 138,
        "safe-buffer": 183
    }],
    190: [function(e, t) {
        var n = e("inherits"),
            o = e("./hash"),
            r = e("safe-buffer").Buffer,
            i = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298],
            a = new Array(64);

        function s() {
            this.init(), this._w = a, o.call(this, 64, 56)
        }

        function l(e, t, n) {
            return n ^ e & (t ^ n)
        }

        function c(e, t, n) {
            return e & t | n & (e | t)
        }

        function u(e) {
            return (e >>> 2 | e << 30) ^ (e >>> 13 | e << 19) ^ (e >>> 22 | e << 10)
        }

        function p(e) {
            return (e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7)
        }

        function d(e) {
            return (e >>> 7 | e << 25) ^ (e >>> 18 | e << 14) ^ e >>> 3
        }
        n(s, o), s.prototype.init = function() {
            return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this
        }, s.prototype._update = function(e) {
            for (var t, n = this._w, o = 0 | this._a, r = 0 | this._b, a = 0 | this._c, s = 0 | this._d, h = 0 | this._e, f = 0 | this._f, y = 0 | this._g, g = 0 | this._h, m = 0; m < 16; ++m) n[m] = e.readInt32BE(4 * m);
            for (; m < 64; ++m) n[m] = 0 | (((t = n[m - 2]) >>> 17 | t << 15) ^ (t >>> 19 | t << 13) ^ t >>> 10) + n[m - 7] + d(n[m - 15]) + n[m - 16];
            for (var I = 0; I < 64; ++I) {
                var _ = g + p(h) + l(h, f, y) + i[I] + n[I] | 0,
                    C = u(o) + c(o, r, a) | 0;
                g = y, y = f, f = h, h = s + _ | 0, s = a, a = r, r = o, o = _ + C | 0
            }
            this._a = o + this._a | 0, this._b = r + this._b | 0, this._c = a + this._c | 0, this._d = s + this._d | 0, this._e = h + this._e | 0, this._f = f + this._f | 0, this._g = y + this._g | 0, this._h = g + this._h | 0
        }, s.prototype._hash = function() {
            var e = r.allocUnsafe(32);
            return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e.writeInt32BE(this._h, 28), e
        }, t.exports = s
    }, {
        "./hash": 185,
        inherits: 138,
        "safe-buffer": 183
    }],
    191: [function(e, t) {
        var n = e("inherits"),
            o = e("./sha512"),
            r = e("./hash"),
            i = e("safe-buffer").Buffer,
            a = new Array(160);

        function s() {
            this.init(), this._w = a, r.call(this, 128, 112)
        }
        n(s, o), s.prototype.init = function() {
            return this._ah = 3418070365, this._bh = 1654270250, this._ch = 2438529370, this._dh = 355462360, this._eh = 1731405415, this._fh = 2394180231, this._gh = 3675008525, this._hh = 1203062813, this._al = 3238371032, this._bl = 914150663, this._cl = 812702999, this._dl = 4144912697, this._el = 4290775857, this._fl = 1750603025, this._gl = 1694076839, this._hl = 3204075428, this
        }, s.prototype._hash = function() {
            var e = i.allocUnsafe(48);

            function t(t, n, o) {
                e.writeInt32BE(t, o), e.writeInt32BE(n, o + 4)
            }
            return t(this._ah, this._al, 0), t(this._bh, this._bl, 8), t(this._ch, this._cl, 16), t(this._dh, this._dl, 24), t(this._eh, this._el, 32), t(this._fh, this._fl, 40), e
        }, t.exports = s
    }, {
        "./hash": 185,
        "./sha512": 192,
        inherits: 138,
        "safe-buffer": 183
    }],
    192: [function(e, t) {
        var n = e("inherits"),
            o = e("./hash"),
            r = e("safe-buffer").Buffer,
            i = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591],
            a = new Array(160);

        function s() {
            this.init(), this._w = a, o.call(this, 128, 112)
        }

        function l(e, t, n) {
            return n ^ e & (t ^ n)
        }

        function c(e, t, n) {
            return e & t | n & (e | t)
        }

        function u(e, t) {
            return (e >>> 28 | t << 4) ^ (t >>> 2 | e << 30) ^ (t >>> 7 | e << 25)
        }

        function p(e, t) {
            return (e >>> 14 | t << 18) ^ (e >>> 18 | t << 14) ^ (t >>> 9 | e << 23)
        }

        function d(e, t) {
            return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ e >>> 7
        }

        function h(e, t) {
            return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ (e >>> 7 | t << 25)
        }

        function f(e, t) {
            return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ e >>> 6
        }

        function y(e, t) {
            return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ (e >>> 6 | t << 26)
        }

        function g(e, t) {
            return e >>> 0 < t >>> 0 ? 1 : 0
        }
        n(s, o), s.prototype.init = function() {
            return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this
        }, s.prototype._update = function(e) {
            for (var t = this._w, n = 0 | this._ah, o = 0 | this._bh, r = 0 | this._ch, a = 0 | this._dh, s = 0 | this._eh, m = 0 | this._fh, I = 0 | this._gh, _ = 0 | this._hh, C = 0 | this._al, v = 0 | this._bl, b = 0 | this._cl, S = 0 | this._dl, w = 0 | this._el, P = 0 | this._fl, A = 0 | this._gl, T = 0 | this._hl, R = 0; R < 32; R += 2) t[R] = e.readInt32BE(4 * R), t[R + 1] = e.readInt32BE(4 * R + 4);
            for (; R < 160; R += 2) {
                var L = t[R - 30],
                    k = t[R - 30 + 1],
                    O = d(L, k),
                    M = h(k, L),
                    D = f(L = t[R - 4], k = t[R - 4 + 1]),
                    B = y(k, L),
                    N = t[R - 14],
                    E = t[R - 14 + 1],
                    U = t[R - 32],
                    G = t[R - 32 + 1],
                    x = M + E | 0,
                    H = O + N + g(x, M) | 0;
                H = (H = H + D + g(x = x + B | 0, B) | 0) + U + g(x = x + G | 0, G) | 0, t[R] = H, t[R + 1] = x
            }
            for (var F = 0; F < 160; F += 2) {
                H = t[F], x = t[F + 1];
                var j = c(n, o, r),
                    W = c(C, v, b),
                    z = u(n, C),
                    q = u(C, n),
                    V = p(s, w),
                    Z = p(w, s),
                    K = i[F],
                    J = i[F + 1],
                    X = l(s, m, I),
                    Q = l(w, P, A),
                    Y = T + Z | 0,
                    $ = _ + V + g(Y, T) | 0;
                $ = ($ = ($ = $ + X + g(Y = Y + Q | 0, Q) | 0) + K + g(Y = Y + J | 0, J) | 0) + H + g(Y = Y + x | 0, x) | 0;
                var ee = q + W | 0,
                    te = z + j + g(ee, q) | 0;
                _ = I, T = A, I = m, A = P, m = s, P = w, s = a + $ + g(w = S + Y | 0, S) | 0, a = r, S = b, r = o, b = v, o = n, v = C, n = $ + te + g(C = Y + ee | 0, Y) | 0
            }
            this._al = this._al + C | 0, this._bl = this._bl + v | 0, this._cl = this._cl + b | 0, this._dl = this._dl + S | 0, this._el = this._el + w | 0, this._fl = this._fl + P | 0, this._gl = this._gl + A | 0, this._hl = this._hl + T | 0, this._ah = this._ah + n + g(this._al, C) | 0, this._bh = this._bh + o + g(this._bl, v) | 0, this._ch = this._ch + r + g(this._cl, b) | 0, this._dh = this._dh + a + g(this._dl, S) | 0, this._eh = this._eh + s + g(this._el, w) | 0, this._fh = this._fh + m + g(this._fl, P) | 0, this._gh = this._gh + I + g(this._gl, A) | 0, this._hh = this._hh + _ + g(this._hl, T) | 0
        }, s.prototype._hash = function() {
            var e = r.allocUnsafe(64);

            function t(t, n, o) {
                e.writeInt32BE(t, o), e.writeInt32BE(n, o + 4)
            }
            return t(this._ah, this._al, 0), t(this._bh, this._bl, 8), t(this._ch, this._cl, 16), t(this._dh, this._dl, 24), t(this._eh, this._el, 32), t(this._fh, this._fl, 40), t(this._gh, this._gl, 48), t(this._hh, this._hl, 56), e
        }, t.exports = s
    }, {
        "./hash": 185,
        inherits: 138,
        "safe-buffer": 183
    }],
    193: [function(e, t) {
        t.exports = o;
        var n = e("events").EventEmitter;

        function o() {
            n.call(this)
        }
        e("inherits")(o, n), o.Readable = e("readable-stream/readable.js"), o.Writable = e("readable-stream/writable.js"), o.Duplex = e("readable-stream/duplex.js"), o.Transform = e("readable-stream/transform.js"), o.PassThrough = e("readable-stream/passthrough.js"), o.Stream = o, o.prototype.pipe = function(e, t) {
            var o = this;

            function r(t) {
                e.writable && !1 === e.write(t) && o.pause && o.pause()
            }

            function i() {
                o.readable && o.resume && o.resume()
            }
            o.on("data", r), e.on("drain", i), e._isStdio || t && !1 === t.end || (o.on("end", s), o.on("close", l));
            var a = !1;

            function s() {
                a || (a = !0, e.end())
            }

            function l() {
                a || (a = !0, "function" == typeof e.destroy && e.destroy())
            }

            function c(e) {
                if (u(), 0 === n.listenerCount(this, "error")) throw e
            }

            function u() {
                o.removeListener("data", r), e.removeListener("drain", i), o.removeListener("end", s), o.removeListener("close", l), o.removeListener("error", c), e.removeListener("error", c), o.removeListener("end", u), o.removeListener("close", u), e.removeListener("close", u)
            }
            return o.on("error", c), e.on("error", c), o.on("end", u), o.on("close", u), e.on("close", u), e.emit("pipe", o), e
        }
    }, {
        events: 104,
        inherits: 138,
        "readable-stream/duplex.js": 167,
        "readable-stream/passthrough.js": 178,
        "readable-stream/readable.js": 179,
        "readable-stream/transform.js": 180,
        "readable-stream/writable.js": 181
    }],
    194: [function(e, t, n) {
        var o = e("buffer").Buffer,
            r = o.isEncoding || function(e) {
                switch (e && e.toLowerCase()) {
                    case "hex":
                    case "utf8":
                    case "utf-8":
                    case "ascii":
                    case "binary":
                    case "base64":
                    case "ucs2":
                    case "ucs-2":
                    case "utf16le":
                    case "utf-16le":
                    case "raw":
                        return !0;
                    default:
                        return !1
                }
            };

        function i(e) {
            if (e && !r(e)) throw new Error("Unknown encoding: " + e)
        }
        var a = n.StringDecoder = function(e) {
            switch (this.encoding = (e || "utf8").toLowerCase().replace(/[-_]/, ""), i(e), this.encoding) {
                case "utf8":
                    this.surrogateSize = 3;
                    break;
                case "ucs2":
                case "utf16le":
                    this.surrogateSize = 2, this.detectIncompleteChar = l;
                    break;
                case "base64":
                    this.surrogateSize = 3, this.detectIncompleteChar = c;
                    break;
                default:
                    return void(this.write = s)
            }
            this.charBuffer = new o(6), this.charReceived = 0, this.charLength = 0
        };

        function s(e) {
            return e.toString(this.encoding)
        }

        function l(e) {
            this.charReceived = e.length % 2, this.charLength = this.charReceived ? 2 : 0
        }

        function c(e) {
            this.charReceived = e.length % 3, this.charLength = this.charReceived ? 3 : 0
        }
        a.prototype.write = function(e) {
            for (var t = ""; this.charLength;) {
                var n = e.length >= this.charLength - this.charReceived ? this.charLength - this.charReceived : e.length;
                if (e.copy(this.charBuffer, this.charReceived, 0, n), this.charReceived += n, this.charReceived < this.charLength) return "";
                if (e = e.slice(n, e.length), !((o = (t = this.charBuffer.slice(0, this.charLength).toString(this.encoding)).charCodeAt(t.length - 1)) >= 55296 && o <= 56319)) {
                    if (this.charReceived = this.charLength = 0, 0 === e.length) return t;
                    break
                }
                this.charLength += this.surrogateSize, t = ""
            }
            this.detectIncompleteChar(e);
            var o, r = e.length;
            if (this.charLength && (e.copy(this.charBuffer, 0, e.length - this.charReceived, r), r -= this.charReceived), r = (t += e.toString(this.encoding, 0, r)).length - 1, (o = t.charCodeAt(r)) >= 55296 && o <= 56319) {
                var i = this.surrogateSize;
                return this.charLength += i, this.charReceived += i, this.charBuffer.copy(this.charBuffer, i, 0, i), e.copy(this.charBuffer, 0, 0, i), t.substring(0, r)
            }
            return t
        }, a.prototype.detectIncompleteChar = function(e) {
            for (var t = e.length >= 3 ? 3 : e.length; t > 0; t--) {
                var n = e[e.length - t];
                if (1 == t && n >> 5 == 6) {
                    this.charLength = 2;
                    break
                }
                if (t <= 2 && n >> 4 == 14) {
                    this.charLength = 3;
                    break
                }
                if (t <= 3 && n >> 3 == 30) {
                    this.charLength = 4;
                    break
                }
            }
            this.charReceived = t
        }, a.prototype.end = function(e) {
            var t = "";
            if (e && e.length && (t = this.write(e)), this.charReceived) {
                var n = this.charReceived,
                    o = this.charBuffer,
                    r = this.encoding;
                t += o.slice(0, n).toString(r)
            }
            return t
        }
    }, {
        buffer: 65
    }],
    195: [function(e, t) {
        (function(e) {
            function n(t) {
                try {
                    if (!e.localStorage) return !1
                } catch (o) {
                    return !1
                }
                var n = e.localStorage[t];
                return null != n && "true" === String(n).toLowerCase()
            }
            t.exports = function(e, t) {
                if (n("noDeprecation")) return e;
                var o = !1;
                return function() {
                    if (!o) {
                        if (n("throwDeprecation")) throw new Error(t);
                        n("traceDeprecation") ? console.trace(t) : console.warn(t), o = !0
                    }
                    return e.apply(this, arguments)
                }
            }
        }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }, {}],
    ACCDrawReward: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4e89csKLmlNjo3KItHBmIgt", "ACCDrawReward");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Mask = null, t.Check = null, t.HighLight = null, t.ItemComtainer = null, t.CountLabel = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "item", {
                    get: function() {
                        return this._item
                    },
                    set: function(e) {
                        e.node.setParent(this.ItemComtainer), e.node.setPosition(0, 0), this._item = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "isChosen", {
                    get: function() {
                        return this._isChosen
                    },
                    set: function(e) {
                        this._isChosen = e, this.HighLight.active = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "goodCount", {
                    get: function() {
                        return this._goodCount
                    },
                    set: function(e) {
                        this.Mask.active = e <= 0, this.Check.active = this.Mask.active, this._goodCount = this.Mask.active ? 0 : e, this.CountLabel.string = "shop_stock".ToUILocale().Fmt(this._goodCount)
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([l(cc.Node)], t.prototype, "Mask", void 0), i([l(cc.Node)], t.prototype, "Check", void 0), i([l(cc.Node)], t.prototype, "HighLight", void 0), i([l(cc.Node)], t.prototype, "ItemComtainer", void 0), i([l(cc.Label)], t.prototype, "CountLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AGDHighLightItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c98d8jwWRtKBrSAHWs5r8LF", "AGDHighLightItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.Highlight = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "item", {
                    get: function() {
                        return this._item
                    },
                    set: function(e) {
                        e.node.setParent(this.ItemContainer), e.node.setPosition(0, 0), this._item = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([l(cc.Node)], t.prototype, "ItemContainer", void 0), i([l(cc.Node)], t.prototype, "Highlight", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AGDListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "695b5Wz+RBMwrBFOmoaO/7M", "AGDListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = e("../../Channel/ChannelManager"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Components/ItemComponent"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.StockLabel = null, t.DiscountLabel = null, t.DiscountValue = null, t.Price = null, t.AttainLabel = null, t.AttainValue = null, t.SelloutTag = null, t.Container = null, t.BuyButton = null, t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.BuyButton.node.on("click", this.OnButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.BuyButton.node.off("click", this.OnButtonClick, this)
                }, t.prototype.SetBuyInfo = function(e, t) {
                    return this.AttainLabel.string = "task_get_score_tag".ToUILocale(), e > 0 ? (this.Price.string = s.default.Instance.CurrencySymbol + s.default.Instance.ExchangeMoney(e), this.AttainValue.string = "x" + t, this.AttainValue.node.parent.active = !0, this.Price.node.y = 16) : (this.Price.string = "shop_buyFree".ToUILocale(), this.AttainValue.node.parent.active = !1, this.Price.node.y = 0), this
                }, t.prototype.SetStock = function(e) {
                    return e > 0 ? (this.StockLabel.node.parent.active = !0, this.StockLabel.string = "shop_stock".ToUILocale().Fmt(e), this.BuyButton.node.active = !0) : (this.StockLabel.node.parent.active = !1, this.BuyButton.node.active = !1), this.SelloutTag.active = !this.BuyButton.node.active, this
                }, t.prototype.SetDiscount = function(e) {
                    return a.default.Instance.SetDisCount(e, this.DiscountValue, this.DiscountLabel), this
                }, t.prototype.SetItems = function(e, t) {
                    for (var n = 0; n < e.length; n++) {
                        if (!this._items[n]) {
                            var o = cc.instantiate(t);
                            o.setParent(this.Container), this._items[n] = o.getComponent(u.ItemComponent)
                        }
                        this._items[n].node.active = !0;
                        var r = p.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e[n].Items[0]);
                        this._items[n].Init({
                            ItemId: r.Id,
                            Count: e[n].Items[1]
                        }, r.Star ? u.ItemComponentType.ItemWithStar : u.ItemComponentType.ItemCommon)
                    }
                    for (n = e.length; n < this._items.length; n++) this._items[n].node.active = !1;
                    return this
                }, t.prototype.SetIndex = function(e, t) {
                    this._index = e, this.pack = t
                }, t.prototype.OnButtonClick = function() {
                    l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_MALL_BUTTONCLICK, this._index, this.pack)
                }, i([y(cc.RichText)], t.prototype, "StockLabel", void 0), i([y(cc.Label)], t.prototype, "DiscountLabel", void 0), i([y(cc.Label)], t.prototype, "DiscountValue", void 0), i([y(cc.Label)], t.prototype, "Price", void 0), i([y(cc.Label)], t.prototype, "AttainLabel", void 0), i([y(cc.Label)], t.prototype, "AttainValue", void 0), i([y(cc.Node)], t.prototype, "SelloutTag", void 0), i([y(cc.Node)], t.prototype, "Container", void 0), i([y(cc.Button)], t.prototype, "BuyButton", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ASSBuyCarItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7bfcbqXAy1PF72Tmy5zrXfx", "ASSBuyCarItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./AddRedeceComponent"),
            p = e("./CurrencyBarItem"),
            d = e("./ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemName = null, t.LimitCount = null, t.SinglePriceTip = null, t.SinglePriceCurrency = null, t.OperateNumComp = null, t.ItemContainer = null, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Set = function(e) {
                    var t;
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (n = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._unloadAssets.push(n), this._itemPrefab = n, s.label = 2;
                                case 2:
                                    return this._num = e.DataTool.InCarNumMap[e.GoodsId], this._dataTool = e.DataTool, this._goodsId = e.GoodsId, this.SinglePriceTip.string = "SinglePrice".ToUILocale(), o = e.LimitNum - (e.BoughtNum ? e.BoughtNum : 0), r = e.DataTool.CurrencyItemId, i = e.SinglePrice, this.ItemName.string = e.ItemId.ToItemName(), a = cc.instantiate(this._itemPrefab), this.ItemContainer.removeAllChildren(), this.ItemContainer.addChild(a), a.getComponent(d.ItemComponent).Init({
                                        ItemId: e.ItemId
                                    }), this.LimitCount.string = "shop_stock".ToUILocale().Fmt(o), this.SinglePriceCurrency.Init(r, !1, i), u = null === (t = this._dataTool.Model) || void 0 === t ? void 0 : t.ShopItems[e.GoodsId], this.OperateNumComp.Set(this._num, this._dataTool.ShopItemsMap[e.GoodsId].LimitCount - (u || 0), 0, this.OnNumChange.bind(this)), [2]
                            }
                        })
                    })
                }, t.prototype.OnNumChange = function(e) {
                    this._num = e, this._dataTool.ChangeGoodsNum(this._goodsId, this._num)
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    t == this.ItemContainer.children[0] && f.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, i([m(cc.Label)], t.prototype, "ItemName", void 0), i([m(cc.Label)], t.prototype, "LimitCount", void 0), i([m(cc.Label)], t.prototype, "SinglePriceTip", void 0), i([m(p.default)], t.prototype, "SinglePriceCurrency", void 0), i([m(u.default)], t.prototype, "OperateNumComp", void 0), i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AddRedeceComponent": "AddRedeceComponent",
        "./CurrencyBarItem": "CurrencyBarItem",
        "./ItemComponent": "ItemComponent"
    }],
    ASSBuyCarPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3ef43R3z6lNpoYGFs+mGZji", "ASSBuyCarPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ASSBuyCarData = n.PanelDataTool = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/AssDiscountCurrencyComponent"),
            u = e("../Components/CustomLayout"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/ASSBuyCarItemComponent"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/DataCenter"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../Components/RpcComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../Consts/GameEventIds"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../../Auxiliary/GameRecord"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Tip), t.Title = null, t.SubTitle = null, t.CustomLayout = null, t.DicountInfo = null, t.DiscountShowComp = null, t.BuyNode = null, t.BuyLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ActivityScoreShopPanel/Component/ASSBuyCarItemComponent", cc.Prefab)];
                                case 1:
                                    return t._listCellPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.Title.string = "Ass_purchaseList".ToUILocale(), this.SubTitle.string = "Ass_afterPayCanGetAllRewards".ToUILocale(), this.BuyLabel.string = "Activity_Story_Task_Btn_Buy".ToUILocale(), this.BuyNode.on("click", this.OnClickBuyBtn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityId = t[0], this._buyCarData = t[1], this._itemId = t[2], this._dataTool = new T(this._activityId, this._buyCarData), this._buyCarData.ListenLocalDataChange("OnLocalDataChange", this.RenderBottom.bind(this))
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.IsReDisPlay || (this.CustomLayout.Init(this._listCellPrefab), this.RenderList(), this.RenderBottom())
                }, t.prototype.RenderList = function() {
                    this.CustomLayout.RenderLayOut(Object.values(this._buyCarData.InCarNumMap).length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = e.getComponent(h.default),
                            r = n._buyCarData.ShopItemsMap[Number(n._dataTool._goodIds[t])];
                        o.Set({
                            GoodsId: r.Id,
                            ItemId: r.ItemId,
                            LimitNum: r.LimitCount,
                            BoughtNum: n._dataTool.Model.ShopItems[r.Id],
                            DataTool: n._buyCarData,
                            SinglePrice: r.Price
                        })
                    })
                }, t.prototype.RenderBottom = function() {
                    var e = g.default.SetDiscountInfo(this.DicountInfo, this._buyCarData);
                    this._needCurrency = this._buyCarData.Price - e.reduced, this.DiscountShowComp.Set(this._itemId, this._buyCarData.Price, this._needCurrency)
                }, t.prototype.OnClickBuyBtn = function() {
                    var e = this,
                        t = function() {
                            var t = y.DataCenter.Instance.GetItemCount(e._itemId),
                                n = e._needCurrency;
                            n ? t >= n ? e._dataTool.BuyGoods(e._buyCarData.GetInCarNumWithReqForm(), function(t) {
                                e._buyCarData.ClearTheCar(), p.UIManager.Instance.BackUIPanel(), I.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                            }) : (I.UIUtlity.ShowFloatingHint("ChaosSummon_TicketNotEngough".ToUILocale().Fmt(e._itemId.ToItemName())), p.UIManager.Instance.ShowUIPanel(C.PanelConfig.ASSGiftPanel.Path)) : I.UIUtlity.ShowFloatingHint("Ass_BuyCartEmpty".ToUILocale())
                        },
                        n = v.default.GetItem(v.GameRecordDefine.AssBuyCartNotDiscount);
                    this._needCurrency != this._buyCarData.Price || n ? t() : I.UIUtlity.ShowHintPanel(null, "Ass_BuyCartNotDiscount".ToUILocale(), "", null, "", t.bind(this), void 0, v.GameRecordDefine.AssBuyCartNotDiscount)
                }, t.prototype.onDestroy = function() {
                    this._dataTool.Destory(), this._buyCarData.UnlistenLocalDataChange("OnLocalDataChange", this.RenderBottom.bind(this))
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Label)], t.prototype, "SubTitle", void 0), i([w(u.default)], t.prototype, "CustomLayout", void 0), i([w(cc.RichText)], t.prototype, "DicountInfo", void 0), i([w(c.default)], t.prototype, "DiscountShowComp", void 0), i([w(cc.Node)], t.prototype, "BuyNode", void 0), i([w(cc.Label)], t.prototype, "BuyLabel", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P;
        var A = function() {
            function e() {
                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                return this._alive = !1, this._alive = !0, this._severDataChangeEvts = [], this._localDataChangeCallMap = {}, this.Init.apply(this, e), this.RefreshModel(), this.OnLocalDataChange(), this
            }
            return e.prototype.Init = function() {
                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]
            }, e.prototype.RefreshModel = function() {}, e.prototype.OnSeverDataChange = function() {}, e.prototype.OnLocalDataChange = function() {}, e.prototype.Refresh = function(e, t, n) {
                return a(this, void 0, void 0, function() {
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return [4, this.OnSeverDataChange(e, t, n)];
                            case 1:
                                return o.sent() && this._alive && (this.RefreshModel(), this.OnLocalDataChange()), [2]
                        }
                    })
                })
            }, e.prototype.CacheDataChange = function(e) {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._localDataChangeCallMap[e] ? (this._localDataChangeCallMap[e].forEach(function(e) {
                            e()
                        }), [2]) : [2]
                    })
                })
            }, e.prototype.Destory = function() {
                var e = this;
                this._alive = !1, this._severDataChangeEvts.forEach(function(t) {
                    e.UnlistenSeverDataChange(t)
                })
            }, e.prototype.ListenSeverDataChange = function(e) {
                this._severDataChangeEvts.push(e), p.Game.EventDispatcher.On(e, this.Refresh, this)
            }, e.prototype.UnlistenSeverDataChange = function(e) {
                var t = this._severDataChangeEvts.indexOf(e);
                this._severDataChangeEvts.splice(t, 1), p.Game.EventDispatcher.Off(e, this.Refresh, this)
            }, e.prototype.ListenLocalDataChange = function(e, t) {
                this._localDataChangeCallMap[e] || (this._localDataChangeCallMap[e] = []), this._localDataChangeCallMap[e].push(t)
            }, e.prototype.UnlistenLocalDataChange = function(e, t) {
                if (this._localDataChangeCallMap[e]) {
                    var n = this._localDataChangeCallMap[e].indexOf(t);
                    this._localDataChangeCallMap[e].splice(n, 1)
                }
            }, e.prototype.ListenEZEvt = function(e) {
                this.ListenSeverDataChange(_.GameEventIds.AddDataDetail.Fmt(e._n_)), this.ListenSeverDataChange(_.GameEventIds.ChangeDataDetail.Fmt(e._n_)), this.ListenSeverDataChange(_.GameEventIds.RemoveDataDetail.Fmt(e._n_))
            }, e.prototype.UnListenEZEvt = function(e) {
                this.UnlistenSeverDataChange(_.GameEventIds.AddDataDetail.Fmt(e._n_)), this.UnlistenSeverDataChange(_.GameEventIds.ChangeDataDetail.Fmt(e._n_)), this.UnlistenSeverDataChange(_.GameEventIds.RemoveDataDetail.Fmt(e._n_))
            }, e
        }();
        n.PanelDataTool = A;
        var T = function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            return r(t, e), Object.defineProperty(t.prototype, "ActivityId", {
                get: function() {
                    return this._activityId
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Config", {
                get: function() {
                    return this._config
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Model", {
                get: function() {
                    return this._model
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Init = function(e, t) {
                this._activityId = e, this._config = y.DataCenter.Instance.ActivityConfigs[this._activityId], this._model = y.DataCenter.Instance.GetDataById(f.UserActivity_Model, this._activityId), this._goodIds = Object.keys(t.InCarNumMap)
            }, t.prototype.BuyGoods = function(e, t) {
                var n = new f.Req_Activity_BuyItem;
                n.ActivityId = this._activityId, n.Items = e, n.IsClear = !0, m.RpcComponent.Instance.Call(n, function(e) {
                    t(e)
                })
            }, t
        }(A);
        n.ASSBuyCarData = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ASSBuyCarItemComponent": "ASSBuyCarItemComponent",
        "../Components/AssDiscountCurrencyComponent": "AssDiscountCurrencyComponent",
        "../Components/CustomLayout": "CustomLayout"
    }],
    ASSDiscountTabComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca0e1iGHShD7bk834H/ddQg", "ASSDiscountTabComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.label = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    this.label.string = "Ass_fullReduce".ToUILocale().Fmt(e, t)
                }, i([l(cc.Label)], t.prototype, "label", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    ASSGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "78bb6PnD6VPn701sQFxCj/+", "ASSGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../Components/CustomLayout"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("./NodePool"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/ItemComponent"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../Channel/ChannelManager"),
            I = e("./GiftPackComponent1"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../../Consts/GameEventIds"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.TimeLabel = null, t.TimeValue = null, t.View = null, t.Banner = null, t._packs = [], t._gifts = [], t._upToDown = {}, t._initCustomLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnMallButtonClick, this), l.Game.EventDispatcher.On(C.GameEventIds.ChangeDataDetail.Fmt(y.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnMallButtonClick, this), l.Game.EventDispatcher.Off(C.GameEventIds.ChangeDataDetail.Fmt(y.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ActivityScoreShopPanel/Component/GiftPackComponent"), this.LoadDynamicAsset(_.BundlePath.ItemComponent)]).then(function(e) {
                                        t._singlePrefab = e[0], t._itemPrefab = e[1], t._itemPool = new d.default(t._itemPrefab)
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TimeLabel.string = "mall_nextRefresh".ToUILocale(), this.Title.string = "activity_scoreShop_gift".ToUILocale(), this._offset = cc.v2()
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this);
                    var t = c.DataCenter.Instance.GetTempData("ASSData");
                    this._packs = t._Packs, this._gifts = [];
                    for (var n = 0; n < this._packs.length; n++) {
                        var o = this._packs[n];
                        null == o.UnlockCondition || 0 == o.UnlockCondition ? this._gifts.push(o) : this._upToDown[o.UnlockCondition] = o.Id
                    }
                    this._deadline = g.default.Instance.ComputeDeadTime(t.Common), this._activityId = t._id, this.SetBanner()
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this._model = c.DataCenter.Instance.GetDataById(y.UserActivity_Model, this._activityId), this._initCustomLayout) {
                        if (!this._singlePrefab) return void this.Close();
                        this.View.Init(this._singlePrefab), this._initCustomLayout = !1
                    }
                    this.PeelGifts(), this.View.RenderLayOut(this._gifts.length, 0, 0, this._offset), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.View && e.forEach(function(e, t) {
                        var o = n._gifts[t],
                            r = n.GetGiftBuyCount(n._model.Packs[o.Id]);
                        e.getComponent(I.default).SetTitle(o.Name).SetItems(n._itemPool, o.Items).SetButtonLabel(o.Money, o.VipPoint).SetPurchaseLimit(o.LimitCount - r, o.LimitCount, o.LimitType).SetDiscount(o.Discount).SetButtonClick(t, o.Id)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayoutgif" == t.parent.name && h.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, t.prototype.OnMallButtonClick = function(e) {
                    if (this._offset = this.View.ScrollView.getScrollOffset(), 0 == this._gifts[e].Money) {
                        var t = new y.Req_Pay_ByDiamond;
                        t.Id = this._gifts[e].Id, t.ActivityId = this._activityId, c.RpcComponent.Instance.Call(t, function(e) {
                            h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else m.default.Instance.Pay(this._gifts[e].Id, this._activityId)
                }, t.prototype.CountDown = function() {
                    var e = this._deadline - c.RpcComponent.Instance.ServerTime;
                    e < 0 && l.UIManager.Instance.BackUIPanel(), this.TimeValue.string = g.default.ActivityTimeLeftFormat(e)
                }, t.prototype.PeelGifts = function() {
                    for (var e, t, n, o = this, r = 0; r < this._gifts.length; r++)
                        for (e = this._gifts[r].Id, t = this.GetGiftBuyCount(this._model.Packs[e]); this._gifts[r].LimitCount <= t && null != this._upToDown[e];) this._gifts[r] = this.GetGiftById(this._upToDown[e]), e = this._gifts[r].Id, t = this.GetGiftBuyCount(this._model.Packs[e]);
                    this._gifts.sort(function(e, t) {
                        return n = null == o._model.Packs[e.Id] ? 999 : o._model.Packs[e.Id].Items[0], e.LimitCount - n == 0 ? 1 : (n = null == o._model.Packs[t.Id] ? 999 : o._model.Packs[t.Id].Items[0], t.LimitCount - n == 0 ? -1 : e.SortId - t.SortId)
                    })
                }, t.prototype.GetGiftById = function(e) {
                    for (var t = 0; t < this._packs.length; t++)
                        if (this._packs[t].Id == e) return this._packs[t];
                    return null
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, l.AssetsManager.Instance.LoadAsset("GiftPackListPanel/PNG/xshd_jfsc_banner001", cc.SpriteFrame)];
                                case 1:
                                    return e._bgtexture = t.sent(), this.isValid ? (this.Banner.spriteFrame = this._bgtexture, [2]) : (l.AssetsManager.Instance.UnloadAsset(this._bgtexture), [2])
                            }
                        })
                    })
                }, t.prototype.GetGiftBuyCount = function(e) {
                    return null == e ? 0 : e.Items[0]
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._bgtexture), this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear()
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Label)], t.prototype, "TimeLabel", void 0), i([S(cc.Label)], t.prototype, "TimeValue", void 0), i([S(u.default)], t.prototype, "View", void 0), i([S(cc.Sprite)], t.prototype, "Banner", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./GiftPackComponent1": "GiftPackComponent1",
        "./NodePool": "NodePool"
    }],
    ASSItemGood: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7a694AtqwtDw7G6dWyCnVD7", "ASSItemGood");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Components/Components"),
            d = e("../Components/ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CountLabel = null, t.ValueLabel = null, t.ItemContainer = null, t.Mask = null, t.DiscountLabel = null, t.BuyCarNode = null, t.InBuyCarNum = null, t.CurrencySprite = null, t
                }
                return r(t, e), t.prototype.SetItem = function(e, t, n, o, r, i) {
                    return a(this, void 0, void 0, function() {
                        var a, h, f, y;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return 0 == this.ItemContainer.childrenCount && cc.instantiate(n).setParent(this.ItemContainer), a = this.ItemContainer.children[0].getComponent(d.ItemComponent), h = p.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, e), a.Init({
                                        ItemId: e,
                                        Count: t
                                    }, h.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon), this._itemCache ? [3, 2] : (f = u.default.Instance.GetItemPathById(i), y = this, [4, c.AssetsManager.Instance.LoadAsset(f, cc.SpriteFrame)]);
                                case 1:
                                    if (y._itemCache = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemCache), [2];
                                    s.label = 2;
                                case 2:
                                    return this.CurrencySprite.spriteFrame = this._itemCache, o ? (this.DiscountLabel.string = "-" + o + "%", this.DiscountLabel.node.parent.active = !0) : this.DiscountLabel.node.parent.active = !1, r ? (this.BuyCarNode.active = !0, this.InBuyCarNum.node.active = !0, this.InBuyCarNum.string = "(-" + r + ")") : (this.BuyCarNode.active = !1, this.InBuyCarNum.node.active = !1, this.InBuyCarNum.node.width = 0, this.InBuyCarNum.string = ""), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    c.AssetsManager.Instance.UnloadAsset(this._itemCache)
                }, i([y(cc.Label)], t.prototype, "CountLabel", void 0), i([y(cc.Label)], t.prototype, "ValueLabel", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Node)], t.prototype, "Mask", void 0), i([y(cc.Label)], t.prototype, "DiscountLabel", void 0), i([y(cc.Node)], t.prototype, "BuyCarNode", void 0), i([y(cc.Label)], t.prototype, "InBuyCarNum", void 0), i([y(cc.Sprite)], t.prototype, "CurrencySprite", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ASSTimesRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "553e11/swFKmLCLxPlkhbD0", "ASSTimesRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./NodePool"),
            y = e("./TimesRewardListComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../../../Util/AppUtil"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.View = null, t._testData = [], t._initLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_DAYSGIFT_GETBUTTONCLICK, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_DAYSGIFT_GOBUTTONCLICK, this.OnGoButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_DAYSGIFT_GETBUTTONCLICK, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_DAYSGIFT_GOBUTTONCLICK, this.OnGoButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent), this.LoadDynamicAsset("ActivityScoreShopPanel/Component/TimesRewardListComponent")]).then(function(e) {
                                        t._itemPrefab = e[0], t._listItemPrefab = e[1], t._pool = new f.default(t._itemPrefab)
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "personalityCall_timeRewards".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._tasks = I.AppUtil.FullCloneObj(t[0]), this._dataId = t[1], this._taskIdPrefix = 1e4 * t[1]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this._initLayout && (this.View.Init(this._listItemPrefab), this._initLayout = !1), this._tasks.sort(function(e, t) {
                        var o = u.DataCenter.Instance.GetDataById(c.UserTask_Model, e.Id + n._taskIdPrefix),
                            r = u.DataCenter.Instance.GetDataById(c.UserTask_Model, t.Id + n._taskIdPrefix);
                        return o.IsCompleted && !r.IsCompleted ? 1 : !o.IsCompleted && r.IsCompleted ? -1 : o.Progress >= e.TotalCount && r.Progress < t.TotalCount ? -1 : o.Progress < e.TotalCount && r.Progress >= t.TotalCount ? 1 : e.SortId - t.SortId
                    }), this.View.RenderLayOut(this._tasks.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.View && e.forEach(function(e, t) {
                        var o = u.DataCenter.Instance.GetDataById(c.UserTask_Model, n._tasks[t].Id + n._taskIdPrefix),
                            r = null == o || null == o.Progress ? 0 : o.Progress;
                        e.getComponent(y.default).SetTitle(_.default.GetTaskDesc(n._tasks[t])).SetPurchaseLimit(r, n._tasks[t].TotalCount, o.IsCompleted).SetItems(n._pool, n._tasks[t].Rewards).SetButtonClick(t)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayout7" == t.parent.name && g.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.OnPurchaseButtonClick = function(e) {
                    var t = new c.Req_Activity_CommonTaskReward;
                    t.ActivityId = this._dataId, t.TaskIds = [this._tasks[e].Id], u.RpcComponent.Instance.Call(t, function(e) {
                        g.UIUtlity.ShwDisplayRewardPanel(e.Rewards), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_MAINUI_PERSONALITY)
                    })
                }, t.prototype.OnGoButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._pool && this._pool.Clear()
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(p.default)], t.prototype, "View", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./NodePool": "NodePool",
        "./TimesRewardListComponent": "TimesRewardListComponent"
    }],
    AccountActivityLnkPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "72d34luy0pFdrvT/LhQawiI", "AccountActivityLnkPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/PWA/PWAManager"),
            u = e("../../Components/Components"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.TagLabel = null, t.DescLabel = null, t.TipSpriteArray = [], t.TipLabelArray = [], t.Arrow1 = null, t.Arrow2 = null, t.OkButton = null, t.OkButtonLabel = null, t._assets = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "accountActivity_lnkTitle".ToUILocale(), this.TagLabel.string = "accountActivity_tag".ToUILocale(), this.DescLabel.string = "accountActivity_hint".ToUILocale(), this.OkButtonLabel.string = "Answer_QuitYes".ToUILocale(), this.OkButton.node.on("click", this.OnOkButtonClick, this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetTips()
                }, t.prototype.SetTips = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function() {
                            if (e = c.default.GetBrowserName(), this.DescLabel.string = this.GetHintKeyByName(e).ToUILocale(), (t = this.GetTextKeysByName(e))[0].length > 1)
                                for (n = 0; n < t[0].length; n++) this.TipLabelArray[n].string = t[0][n].ToUILocale(), this.LoadTipSpriteFrame(u.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/" + t[1][n]), n);
                            else this.TipLabelArray[1].node.width = 926, this.TipLabelArray[1].string = t[0][0].ToUILocale(), this.Arrow1.active = !1, this.Arrow2.active = !1, this.LoadTipSpriteFrame(u.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/" + t[1][0]), 1);
                            return [2]
                        })
                    })
                }, t.prototype.GetHintKeyByName = function(e) {
                    switch (cc.sys.os) {
                        case cc.sys.OS_ANDROID:
                            switch (e) {
                                case c.default.Browser_Edge:
                                    return "accountActivity_hintAndroidEdge";
                                case c.default.Browser_Firefox:
                                    return "accountActivity_hintAndroidFirefox";
                                default:
                                    return "accountActivity_hintAndroidDefault"
                            }
                        case cc.sys.OS_IOS:
                            switch (e) {
                                case c.default.Browser_Safari:
                                    return "accountActivity_hintIosSafari";
                                default:
                                    return "accountActivity_hintIosDefault"
                            }
                        case cc.sys.OS_WINDOWS:
                        default:
                            switch (e) {
                                case c.default.Browser_Firefox:
                                    return "accountActivity_hintWinFirefox";
                                default:
                                    return "accountActivity_hintWinDefault"
                            }
                    }
                }, t.prototype.GetTextKeysByName = function(e) {
                    switch (cc.sys.os) {
                        case cc.sys.OS_ANDROID:
                            switch (e) {
                                case c.default.Browser_Edge:
                                    return [
                                        ["browser_tipAndroidEdgeText_1", "browser_tipAndroidEdgeText_2", "browser_tipAndroidEdgeText_3"],
                                        ["browser_tipAndroidEdge_1", "browser_tipAndroidEdge_2", "browser_tipAndroidEdge_3"]
                                    ];
                                case c.default.Browser_Firefox:
                                default:
                                    return [
                                        ["browser_tipAndroidFirefoxText_1", "browser_tipAndroidFirefoxText_2", "browser_tipAndroidFirefoxText_3"],
                                        ["browser_tipAndroidFirefox_1", "browser_tipAndroidFirefox_2", "browser_tipAndroidFirefox_3"]
                                    ]
                            }
                        case cc.sys.OS_IOS:
                            return [
                                ["browser_tipIosSafariText_1", "browser_tipIosSafariText_2", "browser_tipIosSafariText_3"],
                                ["browser_tipIosSafari_1", "browser_tipIosSafari_2", "browser_tipIosSafari_3"]
                            ];
                        case cc.sys.OS_WINDOWS:
                        default:
                            return [
                                ["browser_tipWinFirefoxText_1"],
                                ["browser_tipWinFirefox_1"]
                            ]
                    }
                }, t.prototype.LoadTipSpriteFrame = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame).then(function(e) {
                                        n.isValid ? (n.TipSpriteArray[t].spriteFrame = e, n._assets.push(e)) : l.AssetsManager.Instance.UnloadAsset(e)
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.OnOkButtonClick = function() {
                    this.Close()
                }, t.prototype.Dispose = function() {
                    e.prototype.Dispose.call(this);
                    for (var t = 0; t < this.TipSpriteArray.length; t++) this.TipSpriteArray[t].spriteFrame = null;
                    for (t = 0; t < this._assets.length; t++) l.AssetsManager.Instance.UnloadAsset(this._assets[t])
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Label)], t.prototype, "TagLabel", void 0), i([h(cc.Label)], t.prototype, "DescLabel", void 0), i([h(cc.Sprite)], t.prototype, "TipSpriteArray", void 0), i([h(cc.Label)], t.prototype, "TipLabelArray", void 0), i([h(cc.Node)], t.prototype, "Arrow1", void 0), i([h(cc.Node)], t.prototype, "Arrow2", void 0), i([h(cc.Button)], t.prototype, "OkButton", void 0), i([h(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([d], t)
            }(l.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/PWA/PWAManager": "PWAManager",
        "../../Components/Components": "Components"
    }],
    AccountActivityPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e03252ZTFZMi6/67hu0aOyt", "AccountActivityPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/ItemComponent"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = e("../../Channel/ChannelManager"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("./AccountInfoPanel"),
            g = e("../../Components/RpcComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Auxiliary/GameRecord"),
            C = e("../../../EZFramework/PWA/PWAManager"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../Consts/Etc"),
            S = e("./TimeLimitedActivityPanel"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TimeDesc = null, t.Time = null, t.LayoutNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_VISITORBIND_SUCCESS, this.RefreshBindBtn, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_VISITORBIND_SUCCESS, this.RefreshBindBtn, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._activityConfig = d.DataCenter.Instance.GetActivityConfigsByActId(n), this.StartCountDown(this._activityConfig.Common);
                    var o = [g.RpcComponent.Instance.ServerTime],
                        r = _.default.GetItem(_.GameRecordDefine.AccountActivityDaily);
                    r && (o[1] = JSON.parse(r)[1]), _.default.SetItem(_.GameRecordDefine.AccountActivityDaily, JSON.stringify(o)), this.RefreshRedDot()
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this._activityModel = d.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this._bindTaskItem ? this.RefreshBindBtn() : (this._bindTaskItem = this.LayoutNode.children[0].addComponent(R), this._bindTaskItem.Init({
                        Title: "accountActivity_taskTitle1".ToUILocale(),
                        BtnText: "accountActivity_bindBtn".ToUILocale(),
                        ItemPrefab: this._itemPrefab,
                        Rewards: this._activityConfig.CustomPart.Rewards,
                        BtnClick: function(e) {
                            e ? n.ReceiveRequest(1) : l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AccountInfoPanel.Path, !0, y.OperationType.BindAccount)
                        }
                    }, h.default.Instance.StorageAccountInfo.Current.Type != f.EZUserAccountType.Visitor, this._activityModel.IntArray[0] > 0));
                    var o = !1,
                        r = _.default.GetItem(_.GameRecordDefine.AccountActivityDaily);
                    r && (o = JSON.parse(r)[1] > 0), this._lnkTaskItem ? this._lnkTaskItem.SetBtnState(o, this._activityModel.IntArray[1] > 0) : (this._lnkTaskItem = this.LayoutNode.children[1].addComponent(R), this._lnkTaskItem.Init({
                        Title: "accountActivity_taskTitle2".ToUILocale(),
                        BtnText: "accountActivity_lnkBtn".ToUILocale(),
                        ItemPrefab: this._itemPrefab,
                        Rewards: this._activityConfig.CustomPart.Rewards2,
                        BtnClick: function(e) {
                            _.default.SetItem(_.GameRecordDefine.AccountActivityDaily, JSON.stringify([g.RpcComponent.Instance.ServerTime, 1])), e ? n.ReceiveRequest(2) : (n.RefreshRedDot(), n._lnkTaskItem.SetBtnState(!0, n._activityModel.IntArray[1] > 0), C.default.CanInstallPWA() ? C.default.AddToHome() : l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AccountActivityLnkPanel.Path))
                        }
                    }, o, this._activityModel.IntArray[1] > 0))
                }, t.prototype.StartCountDown = function(e) {
                    this._common = e, this._deadLine || (this._deadLine = v.default.Instance.ComputeExtraShowDeadTime(e), this.CountDownActivityTime(), this.schedule(this.CountDownActivityTime, 1))
                }, t.prototype.CountDownActivityTime = function() {
                    var e = this._deadLine - g.RpcComponent.Instance.ServerTime;
                    if (e < 0) this.unschedule(this.CountDownActivityTime), this.TimeDesc.string = "Activity_HeroPK_Round_Tag_End".ToUILocale();
                    else {
                        this.TimeDesc.string = e > this._common.ExtraShowDays * b.Etc.DayDuration ? "activity_remain_time".ToUILocale() : "activityBoss_show_time".ToUILocale();
                        var t = e > this._common.ExtraShowDays * b.Etc.DayDuration ? e - this._common.ExtraShowDays * b.Etc.DayDuration : e;
                        this.Time.string = v.default.ActivityTimeLeftFormat(t)
                    }
                }, t.prototype.ReceiveRequest = function(e) {
                    var t = this,
                        n = new c.Req_Activity_BindRewards;
                    n.ActivityId = this._activityConfig._id, n.Type = e, g.RpcComponent.Instance.Call(n, function(e) {
                        l.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), t.RefreshRedDot()
                    })
                }, t.prototype.RefreshBindBtn = function() {
                    this._bindTaskItem.SetBtnState(h.default.Instance.StorageAccountInfo.Current.Type != f.EZUserAccountType.Visitor, this._activityModel.IntArray[0] > 0), this.RefreshRedDot()
                }, t.prototype.RefreshRedDot = function() {
                    if (v.default.Instance.GetActivityPositionAndSort(this._activityConfig.Common)[0][0] == S.ActivityShowPostion.MainRightBottom) {
                        var e = l.UIManager.Instance.GetUIPanel(p.PanelConfig.MainUIPanel.Path);
                        e && e.SetBindActivityBtn()
                    } else l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._activityConfig._id)
                }, i([A(cc.Label)], t.prototype, "TimeDesc", void 0), i([A(cc.Label)], t.prototype, "Time", void 0), i([A(cc.Node)], t.prototype, "LayoutNode", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T;
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Title = null, t.ItemLayoutNode = null, t.OkButton = null, t.OkButtonLabel = null, t.Received = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.Title = this.node.getChildByName("Title").getComponent(cc.Label), this.ItemLayoutNode = this.node.getChildByName("ItemLayout"), this.OkButton = this.node.getChildByName("OkButton").getComponent(cc.Button), this.OkButtonLabel = this.OkButton.target.getChildByName("Label").getComponent(cc.Label), this.Received = this.node.getChildByName("Received")
            }, t.prototype.start = function() {
                this.OkButton.node.on("click", this.OnOkButtonClick, this)
            }, t.prototype.onEnable = function() {
                l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Init = function(e, t, n) {
                this._data = e, this.Title.string = e.Title, this.SetRewardItems(), this.SetBtnState(t, n)
            }, t.prototype.SetRewardItems = function() {
                if (!this._itemComponents) {
                    this._itemComponents = [];
                    for (var e = 0; e < this._data.Rewards.length; e++) {
                        var t = cc.instantiate(this._data.ItemPrefab);
                        t.setParent(this.ItemLayoutNode);
                        var n = t.getComponent(u.ItemComponent);
                        this._itemComponents.push(n);
                        var o = this._data.Rewards[e].Items;
                        n.Init({
                            ItemId: o[0],
                            Count: o[1]
                        }, u.ItemComponentType.ItemCommon)
                    }
                }
            }, t.prototype.SetBtnState = function(e, t) {
                if (this._canReceive = e, e)
                    if (t) {
                        this.Received.active = !0, this.OkButton.node.active = !1;
                        for (var n = 0; n < this._itemComponents.length; n++) this._itemComponents[n].SetReceivedTagState(!0)
                    } else this.Received.active = !1, this.OkButton.node.active = !0, this.OkButtonLabel.string = "receive".ToUILocale();
                else this.OkButton.node.active = !0, this.OkButtonLabel.string = this._data.BtnText
            }, t.prototype.OnOkButtonClick = function() {
                this._data.BtnClick && this._data.BtnClick(this._canReceive)
            }, t.prototype.OnItemClick = function(e, t) {
                var n = t.getComponent(u.ItemComponent); - 1 != this._itemComponents.indexOf(n) && I.UIUtlity.ShowItemTip(n.ItemId, t)
            }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Node)], t.prototype, "ItemLayoutNode", void 0), i([A(cc.Button)], t.prototype, "OkButton", void 0), i([A(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([A(cc.Node)], t.prototype, "Received", void 0), t
        }(cc.Component);
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/PWA/PWAManager": "PWAManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./AccountInfoPanel": "AccountInfoPanel",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    AccountEditComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f00abmqpxlBBr6jUJWKHFDz", "AccountEditComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Auxiliary/GameRecord"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../Tool/Tool"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagLabel = null, t.EditBox = null, t.Button = null, t.ButtonLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.TagLabel = this.node.getChildByName("TagLabel").getComponent(cc.Label), this.EditBox = this.node.getChildByName("EditBox").getComponent(cc.EditBox), this.node.childrenCount > 2 && (this.Button = this.node.getChildByName("Btn").getComponent(cc.Button), this.Button.node.on("click", this.OnButtonClick, this), this.ButtonLabel = this.Button.target.getChildByName("Label").getComponent(cc.Label))
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    void 0 === o && (o = !0), this._basePanel = n, this._btnCallBack = r, e && (this.TagLabel.string = e[0].ToUILocale(), this.EditBox.placeholder = e[1].ToUILocale()), t && (this.EditBox.string = ""), this.Button && (o ? (this.Button.node.active = !0, i ? this.ButtonLabel.string = i : (this._sendCodeCDDeadline = 0, this.SetCodeBtnLabel())) : this.Button.node.active = !1)
                }, t.prototype.GetInputText = function() {
                    return this.EditBox.string
                }, t.prototype.SetInputText = function(e) {
                    this.EditBox.string = e
                }, t.prototype.OnButtonClick = function() {
                    this._btnCallBack ? this._btnCallBack() : this.SendCode()
                }, t.prototype.SetCodeBtnLabel = function() {
                    this.UpdateCodeBtnLabel(), this.schedule(this.UpdateCodeBtnLabel, 1)
                }, t.prototype.UpdateCodeBtnLabel = function() {
                    var e = this.GetSendCodeRemainingDuration();
                    e > 0 ? this.ButtonLabel.string = "SecondCount".ToUILocale().Fmt(Math.ceil(e / u.Etc.SecondDuration)) : (this.ButtonLabel.string = "SendCode".ToUILocale(), this.unschedule(this.UpdateCodeBtnLabel))
                }, t.prototype.GetSendCodeRemainingDuration = function() {
                    var e = c.RpcComponent.Instance.ServerTime;
                    if (!this._sendCodeCDDeadline) {
                        var t = JSON.parse(l.default.GetItem(l.GameRecordDefine.LastSendCodeTime));
                        this._sendCodeCDDeadline = t + u.Etc.MinuteDuration
                    }
                    return this._sendCodeCDDeadline - e
                }, t.prototype.SendCode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, y, g, m;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (!(e = this.GetInputText())) return p.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_EmailEmpty".ToUILocale()), [2];
                                    if (!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)) return p.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_EmailFormatError".ToUILocale()), [2];
                                    if (t = JSON.parse(l.default.GetItem(l.GameRecordDefine.LastSendCodeTime)), (n = c.RpcComponent.Instance.ServerTime) < t + u.Etc.MinuteDuration) return [2];
                                    l.default.SetItem(l.GameRecordDefine.LastSendCodeTime, JSON.stringify(n)), this._sendCodeCDDeadline = n + u.Etc.MinuteDuration, this.SetCodeBtnLabel(), this._basePanel.SendCodeEmail = e, (o = new h.Req_Account_VerifyCode).Param = c.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), o.MailAddress = e, o.Locale = c.GlobalConfigComponent.Instance.Locale, r = null, i = c.GlobalConfigComponent.Instance.ServerAddress, a = i + "/account_verify_code", s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, f.HttpTool.SendPostRequest(a, h.Req_Account_VerifyCode.encode(o).finish())];
                                case 2:
                                    if (y = s.sent(), (g = h.Res_Account_VerifyCode.decode(y)).ErrCode != u.ErrCode.OK) throw r = ("error_hint_content_code_" + g.ErrCode).ToUILocale() || null, new Error(g.ErrCode + ": " + g.ErrMsg);
                                    return [3, 4];
                                case 3:
                                    return m = s.sent(), d.EZLog.Error(m), p.UIUtlity.ShowFloatingHint(r), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, i([m(cc.Label)], t.prototype, "TagLabel", void 0), i([m(cc.EditBox)], t.prototype, "EditBox", void 0), i([m(cc.Button)], t.prototype, "Button", void 0), i([m(cc.Label)], t.prototype, "ButtonLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Tool/Tool": "Tool",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AccountInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fe5ffBsNQFHQKLwb16vtFwl", "AccountInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.OperationType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../../Tool/Tool"),
            h = e("../../Components/Components"),
            f = e("../../Channel/ChannelManager"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../Channel/AdjustAction"),
            I = e("../Components/AccountEditComponent"),
            _ = e("../Components/CustomLayout"),
            C = e("../Components/ListAccountCompnent"),
            v = e("../../InitHelper"),
            b = e("../Auxiliary/Mask"),
            S = e("../../../EZFramework/Auxiliary/CanvasAutoFit"),
            w = e("../Components/AgreementComponent"),
            P = e("../../Auxiliary/GlobalDefine"),
            A = e("./AgreementPanel");
        (function(e) {
            e[e.BindAccount = 0] = "BindAccount", e[e.RegisterAndBind = 1] = "RegisterAndBind", e[e.SwitchAccount = 2] = "SwitchAccount", e[e.ChooseLoginChannel = 3] = "ChooseLoginChannel", e[e.EmailLogin = 4] = "EmailLogin", e[e.RegisterNewAccount = 5] = "RegisterNewAccount", e[e.ChangePassword = 6] = "ChangePassword", e[e.ForgetPassword = 7] = "ForgetPassword"
        })(l = n.OperationType || (n.OperationType = {}));
        var T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1, !1), t.Mask = null, t.Title = null, t.NameInput = null, t.AccountInfo = null, t.VisitorAccountIcon = null, t.FacebookAccountIcon = null, t.GoogleAccountIcon = null, t.AccountInfoLabel = null, t.VisitorBtn = null, t.FacebookBtn = null, t.GoogleBtn = null, t.GoogleTip = null, t.TipText = null, t.SwitchAccountBtn = null, t.Content = null, t.VNContent = null, t.EmptyNode = null, t.EmailInfo = null, t.BindAccount = null, t.Account = null, t.PanelTipText = null, t.AgreementComponent = null, t.BtnLayoutNode = null, t.BackButton = null, t.BackButtonLabel = null, t.OkButton = null, t.OkButtonLabel = null, t.EmailInfoHintNode = null, t.EmailInfoHintLabel = null, t.EmailInfoEditNodes = [], t.EmailInfoBtnContainer = null, t.EmailLoginButton = null, t.EmailLoginButtonLabel = null, t.ToggleContainerNode = null, t.Toggles = [], t.TogglesLabel = [], t.TipText1 = null, t.AccountButton = null, t.AccountButtonLabel = null, t.GoogleButton = null, t.GoogleButtonLabel = null, t.TipText2 = null, t.AccountIcon = null, t.AccountIconLabel = null, t.UserNameLabel = null, t.LoginHintPanel = null, t.ArrowNode = null, t.ArrowEventNode = null, t.AccountListNode = null, t.CustomLayout = null, t.AddEventNode = null, t._Interacting = !1, t._IsDevLogin = !1, t._isInitAccountNode = !1, t._isInitEmailLogin = !1, t._googleLoginErrData = {}, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("LoginPanel/ListAccountCompnent", cc.Prefab)]).then(function(e) {
                                        t._ListItemPrefab = e[0]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AccountButton.node.on("click", this.OnAccountButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.OkButton.node.on("click", this.OnOkButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._IsDevLogin = t[0] || !1, this._currentOperationType = this._firstOperationType = t[1], this._operationStack = [this._currentOperationType], this._autoFillMailAddress = t[2];
                    var n = t[3];
                    this.Mask.HintNode.active = !n
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), f.default.Instance.IsVNChannel() || f.default.Instance.IsMainlandCheckChannel() ? (this.VNContent.active = !0, this.VNContent.parent.width = 1016, this.RefershVNPanelView()) : (this.Content.active = !0, this.RefreshView())
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t), this.Reset();
                    var n = document.getElementById("google-login-div");
                    n && n.remove()
                }, t.prototype.RefreshView = function() {
                    this.Reset();
                    var e = f.default.Instance.StorageAccountInfo.Current || null;
                    if (e) this.Title.string = "AccountInfoPanelTitle_AccountInfo".ToUILocale(), this.AccountInfo.active = !0, this.SwitchAccountBtn.node.active = !0, this.SwitchAccountBtn.getComponentInChildren(cc.Label).string = "AccountInfoPanelButton_SwitchAccount".ToUILocale(), this.SwitchAccountBtn.node.on("click", this.OnClickSwitchAccountBtn, this), this.VisitorAccountIcon.node.active = !1, this.FacebookAccountIcon.node.active = !1, this.GoogleAccountIcon.node.active = !1, e.Type == u.EZUserAccountType.Devepment ? (this.VisitorAccountIcon.node.active = !0, this.AccountInfoLabel.string = e.Name, this.TipText.string = "AccountInfoPanelTip_DevAccount".ToUILocale()) : e.Type == u.EZUserAccountType.Visitor ? (this.FacebookBtn.node.active = !0, this.FacebookBtn.getComponentInChildren(cc.Label).string = "AccountInfoPanelButton_BindFacebook".ToUILocale(), this.FacebookBtn.node.on("click", this.OnOnClickBindFacebookBtn, this), this.GoogleBtn.node.active = !0, this.GoogleBtn.getComponentInChildren(cc.Label).string = "AccountInfoPanelButton_BindGoogle".ToUILocale(), this.GoogleBtn.node.on("click", this.OnOnClickBindGoogleBtn, this), this.GoogleTip.active = !0, this.GoogleTip.getComponentInChildren(cc.Label).string = "AccountInfoPanelTip_CloseGoogleDialog".ToUILocale(), this.VisitorAccountIcon.node.active = !0, this.AccountInfoLabel.string = "AccountInfoPanelText_Visitor".ToUILocale() + e.Name, this.TipText.string = "AccountInfoPanelTip_VisitorAccount".ToUILocale()) : (e.Type == u.EZUserAccountType.Google ? this.GoogleAccountIcon.node.active = !0 : this.FacebookAccountIcon.node.active = !0, this.AccountInfoLabel.string = e.Name);
                    else {
                        if (this._IsDevLogin) return this.NameInput.node.active = !0, this.Title.string = "AccountInfoPanelTitle_DevAccount".ToUILocale(), this.NameInput.placeholder = "Input 4-20 characters", this.SwitchAccountBtn.node.active = !0, this.SwitchAccountBtn.getComponentInChildren(cc.Label).string = "AccountInfoPanelButton_AccountLogin".ToUILocale(), void this.SwitchAccountBtn.node.on("click", this.OnClickDevLoginBtn, this);
                        this.Title.string = "AccountInfoPanelTitle_AccountLogin".ToUILocale();
                        var t = f.default.Instance.StorageAccountInfo.Visitor || null;
                        t && t.Type != u.EZUserAccountType.Visitor || (this.VisitorBtn.node.active = !0, this.VisitorBtn.getComponentInChildren(cc.Label).string = "AccountInfoPanelButton_VisitorLogin".ToUILocale(), this.VisitorBtn.node.on("click", this.OnClickVisitorLoginBtn, this)), this.FacebookBtn.node.active = !0, this.FacebookBtn.getComponentInChildren(cc.Label).string = "AccountInfoPanelButton_FacebookLogin".ToUILocale(), this.FacebookBtn.node.on("click", this.OnClickFacebookLoginBtn, this), this.GoogleBtn.node.active = !0, this.GoogleBtn.getComponentInChildren(cc.Label).string = "AccountInfoPanelButton_GoogleLogin".ToUILocale(), this.GoogleBtn.node.on("click", this.OnClickGoogleLoginBtn, this), this.GoogleTip.active = !0, this.GoogleTip.getComponentInChildren(cc.Label).string = "AccountInfoPanelTip_CloseGoogleDialog".ToUILocale(), this.TipText.string = "AccountInfoPanelTip_LoginAgreement".ToUILocale()
                    }
                }, t.prototype.OnClickVisitorLoginBtn = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return (e = f.default.Instance.StorageAccountInfo.Visitor) && e.Type != u.EZUserAccountType.Visitor ? (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_VistorBindOtherAccount".ToUILocale()), [2]) : this._Interacting ? [2] : (this._Interacting = !0, e ? [3, 2] : [4, this.AccountRegister({
                                        Id: f.default.Instance.StorageAccountInfo.UUID,
                                        Type: u.EZUserAccountType.Visitor
                                    }, void 0, !1)]);
                                case 1:
                                    if (s.sent(), !(e = f.default.Instance.StorageAccountInfo.Visitor)) return [2];
                                    s.label = 2;
                                case 2:
                                    t = null, n = h.GlobalConfigComponent.Instance.ServerAddress, o = n + "/account_login", (r = new g.Req_Account_Login).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), r.AccountType = u.EZUserAccountType.Visitor, r.Pid = e.Id, r.Token = e.Token, s.label = 3;
                                case 3:
                                    return s.trys.push([3, 5, , 6]), [4, d.HttpTool.SendPostRequest(o, g.Req_Account_Login.encode(r).finish())];
                                case 4:
                                    if (i = s.sent(), (a = g.Res_Account_Login.decode(i)).ErrCode != u.ErrCode.OK) throw t = ("error_hint_content_code_" + a.ErrCode).ToUILocale() || null, new Error(a.ErrCode + ": " + a.ErrMsg);
                                    return f.default.Instance.StorageAccountInfo.Visitor = {
                                        Id: a.Pid,
                                        Type: u.EZUserAccountType.Visitor
                                    }, f.default.Instance.StorageAccountInfo.Current = {
                                        Id: a.Pid,
                                        Type: u.EZUserAccountType.Visitor,
                                        Token: a.Token
                                    }, f.default.Instance.SaveAccountInfo(), m.default.AdjustTrackEvent(m.AdjustEventToken.Login), y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginSuccess".ToUILocale().Fmt(f.default.Instance.StorageAccountInfo.Current.Name)), [3, 6];
                                case 5:
                                    return l = s.sent(), c.EZLog.Error(l), t || (t = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(t), [3, 6];
                                case 6:
                                    return this._Interacting = !1, c.Game.EventDispatcher.Emit(u.GameEventIds.LoginStatusChange), this.Close(), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickSwitchAccountBtn = function() {
                    f.default.Instance.StorageAccountInfo.Current && (f.default.Instance.StorageAccountInfo.Current = null, f.default.Instance.SaveAccountInfo(), c.Game.EventDispatcher.Emit(u.GameEventIds.LoginStatusChange)), this.RefreshView()
                }, t.prototype.OnClickDevLoginBtn = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (this._Interacting) return [2];
                                    if ((e = this.NameInput.string.trim()).length < 4) return y.UIUtlity.ShowFloatingHint("please input 4-20 characters"), [2];
                                    this._Interacting = !0, t = null, n = h.GlobalConfigComponent.Instance.ServerAddress, o = n + "/account_login", (r = new g.Req_Account_Login).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), r.Pid = e, r.AccountType = u.EZUserAccountType.Devepment, s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(o, g.Req_Account_Login.encode(r).finish())];
                                case 2:
                                    if (i = s.sent(), (a = g.Res_Account_Login.decode(i)).ErrCode != u.ErrCode.OK) throw t = ("error_hint_content_code_" + a.ErrCode).ToUILocale() || null, new Error(a.ErrCode + ": " + a.ErrMsg);
                                    return f.default.Instance.StorageAccountInfo.Current = {
                                        Id: a.Pid,
                                        Type: u.EZUserAccountType.Devepment,
                                        Name: a.Pid,
                                        Token: a.Token
                                    }, f.default.Instance.SaveAccountInfo(), m.default.AdjustTrackEvent(m.AdjustEventToken.Login), y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginSuccess".ToUILocale().Fmt(f.default.Instance.StorageAccountInfo.Current.Name)), [3, 4];
                                case 3:
                                    return l = s.sent(), c.EZLog.Error(l), t || (t = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(t), [3, 4];
                                case 4:
                                    return this._Interacting = !1, c.Game.EventDispatcher.Emit(u.GameEventIds.LoginStatusChange), this.Close(), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickGoogleLoginBtn = function() {
                    return a(this, void 0, void 0, function() {
                        function e(e) {
                            return a(this, void 0, void 0, function() {
                                var n, o, r, i, a, l, p;
                                return s(this, function(s) {
                                    switch (s.label) {
                                        case 0:
                                            if (c.EZLog.Log("handleCredentialResponse: ", e), !e || !e.credential) return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginVerifyFail".ToUILocale()), [2];
                                            t._Interacting = !0, n = null, o = h.GlobalConfigComponent.Instance.ServerAddress, r = o + "/account_login", (i = new g.Req_Account_Login).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), i.AccountType = u.EZUserAccountType.Google, i.ThirdPartyToken = e.credential, s.label = 1;
                                        case 1:
                                            return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(r, g.Req_Account_Login.encode(i).finish())];
                                        case 2:
                                            if (a = s.sent(), t._Interacting = !1, (l = g.Res_Account_Login.decode(a)).ErrCode != u.ErrCode.OK) throw n = ("error_hint_content_code_" + l.ErrCode).ToUILocale() || null, new Error(l.ErrCode + ": " + l.ErrMsg);
                                            return f.default.Instance.StorageAccountInfo.Current = {
                                                Id: l.Pid,
                                                Type: u.EZUserAccountType.Google,
                                                Name: l.Pid,
                                                Token: l.Token,
                                                ThirdPartyToken: e.credential
                                            }, f.default.Instance.StorageAccountInfo.ReadyLogin = !0, f.default.Instance.SaveAccountInfo(), f.default.Instance.StorageAccountLog[l.Pid] = {
                                                Id: l.Pid,
                                                Type: u.EZUserAccountType.Google,
                                                Name: l.Pid,
                                                LoginTime: h.RpcComponent.Instance.ServerTime
                                            }, f.default.Instance.SaveAccountLog(), m.default.AdjustTrackEvent(m.AdjustEventToken.Login), y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginSuccess".ToUILocale().Fmt(f.default.Instance.StorageAccountInfo.Current.Name)), v.InitHelper.LogOut(), [3, 4];
                                        case 3:
                                            return p = s.sent(), c.EZLog.Error(p), n || (n = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(n), [3, 4];
                                        case 4:
                                            return c.Game.EventDispatcher.Emit(u.GameEventIds.LoginStatusChange), [2]
                                    }
                                })
                            })
                        }
                        var t;
                        return s(this, function() {
                            return this._Interacting ? [2] : (t = this, this.LoginGoogleAccount(e), [2])
                        })
                    })
                }, t.prototype.OnOnClickBindGoogleBtn = function() {
                    var e = f.default.Instance.StorageAccountInfo.Visitor,
                        t = f.default.Instance.StorageAccountInfo.Current;
                    if (t && e && t.Type == u.EZUserAccountType.Visitor && t.Id == e.Id) {
                        if (!this._Interacting) {
                            var n = this;
                            this.LoginGoogleAccount(function(o) {
                                return a(this, void 0, void 0, function() {
                                    var r, i, a, l, I, _, C;
                                    return s(this, function(s) {
                                        switch (s.label) {
                                            case 0:
                                                if (c.EZLog.Log("handleCredential bind: ", o), !o || !o.credential) return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginVerifyFail".ToUILocale()), [2];
                                                n._Interacting = !0, r = null, i = h.GlobalConfigComponent.Instance.ServerAddress, a = i + "/bind_account", (l = new g.Req_Account_Bind).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), l.AccountId = e.AccountId, l.Token = t.Token, l.AccountType = u.EZUserAccountType.Google, l.ThirdPartyToken = o.credential, s.label = 1;
                                            case 1:
                                                return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(a, g.Req_Account_Bind.encode(l).finish())];
                                            case 2:
                                                if (I = s.sent(), n._Interacting = !1, (_ = g.Res_Account_Bind.decode(I)).ErrCode != u.ErrCode.OK) throw r = ("error_hint_content_code_" + _.ErrCode).ToUILocale() || null, new Error(_.ErrCode + ": " + _.ErrMsg);
                                                return c.EZLog.Log("bind success: ", _), e.Type = u.EZUserAccountType.Google, t.Type = u.EZUserAccountType.Google, t.Id = _.Pid, t.Token = _.Token, t.Name = _.Pid, t.LoginTime = h.RpcComponent.Instance.ServerTime, t.ThirdPartyToken = o.credential, f.default.Instance.SaveAccountInfo(), f.default.Instance.StorageAccountLog[e.Id] && delete f.default.Instance.StorageAccountLog[e.Id], f.default.Instance.StorageAccountLog[t.Id] = t, f.default.Instance.SaveAccountLog(), m.default.AdjustTrackEvent(m.AdjustEventToken.SignUp), y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_BindSuccess".ToUILocale()), c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_VISITORBIND_SUCCESS), n.Close(), [3, 4];
                                            case 3:
                                                return C = s.sent(), c.EZLog.Error(C), r || (r = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(r), [3, 4];
                                            case 4:
                                                return [2]
                                        }
                                    })
                                })
                            })
                        }
                    } else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_NoVisitorAccountToBind".ToUILocale())
                }, t.prototype.LoginGoogleAccount = function(e) {
                    function t(e) {
                        (e.isNotDisplayed() || e.isSkippedMoment()) && y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_GoogleCancelLogin".ToUILocale())
                    }
                    if (n._IsGoogleSdkReady) google.accounts.id.initialize({
                        client_id: u.GlobalSetting.GOOGLE_ACCOUNT_CLIENT_ID,
                        callback: e
                    }), google.accounts.id.disableAutoSelect(), google.accounts.id.prompt(t);
                    else {
                        var o = document.createElement("script");
                        o.src = "https://accounts.google.com/gsi/client", document.body.appendChild(o), window.onGoogleLibraryLoad = function() {
                            n._IsGoogleSdkReady = !0, google.accounts.id.initialize({
                                client_id: u.GlobalSetting.GOOGLE_ACCOUNT_CLIENT_ID,
                                callback: e
                            }), google.accounts.id.disableAutoSelect(), google.accounts.id.prompt(t)
                        }
                    }
                }, t.prototype.OnClickFacebookLoginBtn = function() {
                    return a(this, void 0, void 0, function() {
                        function e(e) {
                            return a(this, void 0, void 0, function() {
                                var n, o, r, i, a, l, p;
                                return s(this, function(s) {
                                    switch (s.label) {
                                        case 0:
                                            t._Interacting = !0, n = null, o = h.GlobalConfigComponent.Instance.ServerAddress, r = o + "/account_login", (i = new g.Req_Account_Login).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), i.Pid = f.default.Instance.StorageAccountInfo.UUID, i.ThirdPartyToken = e.accessToken, s.label = 1;
                                        case 1:
                                            return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(r, g.Req_Account_Login.encode(i).finish())];
                                        case 2:
                                            if (a = s.sent(), (l = g.Res_Account_Login.decode(a)).ErrCode != u.ErrCode.OK) throw n = ("error_hint_content_code_" + l.ErrCode).ToUILocale() || null, new Error(l.ErrCode + ": " + l.ErrMsg);
                                            return f.default.Instance.SaveAccountInfo(), m.default.AdjustTrackEvent(m.AdjustEventToken.Login), y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginSuccess".ToUILocale().Fmt(f.default.Instance.StorageAccountInfo.Current.Name)), [3, 4];
                                        case 3:
                                            return p = s.sent(), c.EZLog.Error(p), n || (n = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(n), [3, 4];
                                        case 4:
                                            return t._Interacting = !1, c.Game.EventDispatcher.Emit(u.GameEventIds.LoginStatusChange), t.Close(), [2]
                                    }
                                })
                            })
                        }
                        var t;
                        return s(this, function() {
                            return this._Interacting ? [2] : (t = this, this.LoginFacebookAccount(e), [2])
                        })
                    })
                }, t.prototype.OnOnClickBindFacebookBtn = function() {
                    var e = f.default.Instance.StorageAccountInfo.Visitor,
                        t = f.default.Instance.StorageAccountInfo.Current;
                    if (t && e && t.Type == u.EZUserAccountType.Visitor && t.Id == e.Id) {
                        if (!this._Interacting) {
                            var n = this;
                            this.LoginFacebookAccount(function(o) {
                                return a(this, void 0, void 0, function() {
                                    var r, i, a, l, p, m, I;
                                    return s(this, function(s) {
                                        switch (s.label) {
                                            case 0:
                                                n._Interacting = !0, r = null, i = h.GlobalConfigComponent.Instance.ServerAddress, a = i + "/bind_account", (l = new g.Req_Account_Bind).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), l.AccountId = e.Id, l.ThirdPartyToken = o.accessToken, l.Token = t.Token, s.label = 1;
                                            case 1:
                                                return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(a, g.Req_Account_Bind.encode(l).finish())];
                                            case 2:
                                                if (p = s.sent(), (m = g.Res_Account_Bind.decode(p)).ErrCode != u.ErrCode.OK) throw r = ("error_hint_content_code_" + m.ErrCode).ToUILocale() || null, new Error(m.ErrCode + ": " + m.ErrMsg);
                                                return t.Token = m.Token, f.default.Instance.SaveAccountInfo(), y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_BindSuccess".ToUILocale()), [3, 4];
                                            case 3:
                                                return I = s.sent(), c.EZLog.Error(I), r || (r = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(r), [3, 4];
                                            case 4:
                                                return n._Interacting = !1, n.RefreshView(), [2]
                                        }
                                    })
                                })
                            })
                        }
                    } else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_NoVisitorAccountToBind".ToUILocale())
                }, t.prototype.LoginFacebookAccount = function(e) {
                    function t(t) {
                        if (t && "connected" == t.status) {
                            var n = {
                                accessToken: t.authResponse.accessToken,
                                name: ""
                            };
                            FB.api("/me", {
                                fields: "email"
                            }, function(t) {
                                n.name = t ? t.email : "", e(n)
                            })
                        } else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginVerifyFail".ToUILocale())
                    }
                    if (n._IsFacebookSdkReady) FB.getLoginStatus(function(e) {
                        e && "connected" == e.status ? t(e) : FB.login(t, {
                            scope: "public_profile,email"
                        })
                    });
                    else {
                        var o = document.createElement("script");
                        o.src = "https://connect.facebook.net/en_Us/sdk.js", document.body.appendChild(o), window.fbAsyncInit = function() {
                            FB.init({
                                appId: u.GlobalSetting.FACEBOOK_ACCOUNT_CLIENT_ID,
                                cookie: !0,
                                xfbml: !0,
                                version: "v15.0"
                            }), n._IsFacebookSdkReady = !0, FB.AppEvents.logPageView(), FB.getLoginStatus(function(e) {
                                e && "connected" == e.status ? t(e) : FB.login(t, {
                                    scope: "public_profile,email"
                                })
                            })
                        }
                    }
                }, t.prototype.Reset = function() {
                    this.VisitorBtn.node.off("click"), this.FacebookBtn.node.off("click"), this.GoogleBtn.node.off("click"), this.SwitchAccountBtn.node.off("click"), this.NameInput.node.active = !1, this.AccountInfo.active = !1, this.VisitorBtn.node.active = !1, this.GoogleAccountIcon.node.active = !1, this.FacebookBtn.node.active = !1, this.GoogleBtn.node.active = !1, this.VisitorBtn.node.active = !1, this.SwitchAccountBtn.node.active = !1, this.GoogleTip.active = !1, this.GoogleTip.getComponentInChildren(cc.Label).node.height = 0, this.TipText.string = "", this.TipText.node.height = 0
                }, t.prototype.RefershVNPanelView = function() {
                    switch (this.HideAll(), this._currentOperationType) {
                        case l.BindAccount:
                            this.Title.string = "Vietnam_BindAccount".ToUILocale(), this.BindAccount.active = !0, this.TipText1.string = "AccountInfoPanelTip_VisitorAccount2".ToUILocale(), this.AccountButtonLabel.string = "AccountInfoPanelButton_SignUpAccount".ToUILocale(), this.GoogleButtonLabel.string = "AccountInfoPanelButton_BindGoogle".ToUILocale(), this.PanelTipText.node.active = !0, this.PanelTipText.string = "AccountInfoPanelTip_LoginAgreement".ToUILocale(), this.DelayShowGoogleBtn(this.GoogleButton.node);
                            break;
                        case l.RegisterAndBind:
                        case l.RegisterNewAccount:
                            this.Title.string = "Register".ToUILocale(), this.EmailInfo.active = !0, this.EmailInfo.height = 446, this.EmailInfoHintNode.active = !1, this.EmailInfoBtnContainer.active = !1, this.BtnLayoutNode.active = !0, this.BackButton.node.active = !0, this.BackButtonLabel.string = "SendLog_return".ToUILocale(), this.OkButtonLabel.string = "Register".ToUILocale(), this._currentOperationType == l.RegisterNewAccount && f.default.Instance.IsMainlandCheckChannel() ? this.AgreementComponent.node.active = !0 : (this.PanelTipText.node.active = !0, this.PanelTipText.string = "AccountInfoPanelTip_VisitorAccount2".ToUILocale()), this.InitAccountEdit([
                                ["AccountInfoPanelTip_EmailTag", "AccountInfoPanelTip_EmailText"],
                                ["AccountInfoPanelTip_VerificationCodeTag", "AccountInfoPanelTip_Code"], null, ["AccountInfoPanelTip_PasswordTag", "AccountInfoPanelTip_PasswordText"],
                                ["AccountInfoPanelTip_ConfirmPasswordTag", "AccountInfoPanelTip_ConfirmPasswordText"]
                            ]);
                            break;
                        case l.SwitchAccount:
                            this.Title.string = "Login".ToUILocale(), this.Account.active = !0, this.BtnLayoutNode.active = !0, this.BackButton.node.active = !1, this.OkButtonLabel.string = "Login".ToUILocale(), this.InitAccountNode(), this.SetCurrentAccountInfo(), this.SetAccountListView();
                            break;
                        case l.ChooseLoginChannel:
                            this.Title.string = "Login".ToUILocale(), this.BindAccount.active = !0, this.PanelTipText.node.active = !0, this.PanelTipText.string = "AccountInfoPanelTip_LoginAgreement".ToUILocale(), this.AccountButtonLabel.string = "AccountInfoPanelButton_EmailAccount".ToUILocale(), this.GoogleButtonLabel.string = "Vietnam_Google".ToUILocale(), this.DelayShowGoogleBtn(this.GoogleButton.node);
                            break;
                        case l.EmailLogin:
                            this.Title.string = "Login".ToUILocale(), this.EmailInfo.active = !0, this.EmailInfo.height = 366, this.EmailInfoHintNode.active = !1, this.BtnLayoutNode.active = !0, this._firstOperationType != l.EmailLogin || this.Mask.HintNode.active ? this.BackButton.node.active = !0 : this.BackButton.node.active = !1, this.BackButtonLabel.string = "SendLog_return".ToUILocale(), this.OkButtonLabel.string = "Register".ToUILocale(), f.default.Instance.IsMainlandCheckChannel() ? this.AgreementComponent.node.active = !0 : (this.PanelTipText.node.active = !0, this.PanelTipText.string = "AccountInfoPanelTip_VisitorAccount2".ToUILocale()), this.InitEmailLogin(), this.EmailInfoBtnContainer.active = !0, this.SetEmailLoginView();
                            break;
                        case l.ChangePassword:
                            this.Title.string = "AccountInfoPanelTitle_ChangePassword".ToUILocale(), this.EmailInfo.active = !0, this.EmailInfo.height = 366, this.EmailInfoHintNode.active = !1, this.EmailInfoBtnContainer.active = !1, this.BtnLayoutNode.active = !0, this.BackButton.node.active = !0, this.BackButtonLabel.string = "SendLog_return".ToUILocale(), this.OkButtonLabel.string = "Answer_QuitYes".ToUILocale(), this.InitAccountEdit([null, null, ["AccountInfoPanelTip_OldPasswordTag", "AccountInfoPanelTip_OldPasswordText"],
                                ["AccountInfoPanelTip_newPasswordTag", "AccountInfoPanelTip_PasswordText"],
                                ["AccountInfoPanelTip_ConfirmPasswordTag", "AccountInfoPanelTip_ConfirmPasswordText"]
                            ]);
                            break;
                        case l.ForgetPassword:
                            this.Title.string = "AccountInfoPanelTitle_ForgetPassword".ToUILocale(), this.EmailInfo.active = !0, this.EmailInfo.height = 486, this.EmailInfoHintNode.active = !0, this.EmailInfoBtnContainer.active = !1, this.EmailInfoHintLabel.string = "AccountInfoPanelTip_ForgetPasswordHint".ToUILocale(), this.BtnLayoutNode.active = !0, this.BackButton.node.active = !0, this.BackButtonLabel.string = "SendLog_return".ToUILocale(), this.OkButtonLabel.string = "Answer_QuitYes".ToUILocale(), this.InitAccountEdit([
                                ["AccountInfoPanelTip_EmailTag", "AccountInfoPanelTip_EmailText"],
                                ["AccountInfoPanelTip_VerificationCodeTag", "AccountInfoPanelTip_Code"], null, ["AccountInfoPanelTip_newPasswordTag", "AccountInfoPanelTip_PasswordText"],
                                ["AccountInfoPanelTip_ConfirmPasswordTag", "AccountInfoPanelTip_ConfirmPasswordText"]
                            ])
                    }
                }, t.prototype.HideAll = function() {
                    this.EmptyNode.active = !1, this.BindAccount.active = !1, this.EmailInfo.active = !1, this.Account.active = !1, this.BtnLayoutNode.active = !1, this.PanelTipText.node.active = !1, this.AgreementComponent.node.active = !1, this.HideGoogleLoginDiv()
                }, t.prototype.InitAccountEdit = function(e) {
                    var t = this;
                    if (!this._accountEditArray) {
                        this._accountEditArray = [];
                        for (var n = 0; n < this.EmailInfoEditNodes.length; n++) {
                            var o = this.EmailInfoEditNodes[n].addComponent(I.default);
                            this._accountEditArray.push(o)
                        }
                    }
                    var r = this._clearEdit ? this._clearEdit : [!1, !0, !0, !0, !0];
                    for (n = 0; n < this._accountEditArray.length; n++)
                        if (o = this._accountEditArray[n], e[n])
                            if (o.node.active = !0, 2 == n) o.Init(e[n], r[n], this, !0, function() {
                                t.GoToPanel(l.ForgetPassword)
                            }, "AccountInfoPanelTitle_ForgetPassword".ToUILocale());
                            else {
                                var i = this._currentOperationType != l.EmailLogin;
                                o.Init(e[n], r[n], this, i)
                            }
                    else o.node.active = !1;
                    this._autoFillMailAddress && (this._accountEditArray[0].SetInputText(this._autoFillMailAddress), this._autoFillMailAddress = null)
                }, t.prototype.OnAccountButtonClick = function() {
                    this._currentOperationType == l.BindAccount ? this.GoToPanel(l.RegisterAndBind) : this.GoToPanel(l.EmailLogin)
                }, t.prototype.GoToPanel = function(e, t) {
                    this._currentOperationType = e, this._clearEdit = t, this._operationStack.push(this._currentOperationType), this.RefershVNPanelView()
                }, t.prototype.OnGoogleButtonClick = function() {
                    this._currentOperationType == l.BindAccount ? this.OnOnClickBindGoogleBtn() : this.OnClickGoogleLoginBtn()
                }, t.prototype.InitAccountNode = function() {
                    this._isInitAccountNode || (this._isInitAccountNode = !0, this.ArrowEventNode.on(cc.Node.EventType.TOUCH_END, this.OnArrowTouchEnd, this), this.AddEventNode.on(cc.Node.EventType.TOUCH_END, this.OnAddTouchEnd, this), this.InitCustomLayout())
                }, t.prototype.SetCurrentAccountInfo = function() {
                    switch (this._selectedAccountInfo || (this._selectedAccountInfo = f.default.Instance.StorageAccountInfo.Current), this.AccountIcon.node.active = !1, this.AccountIconLabel.node.active = !1, this._selectedAccountInfo.Type) {
                        case u.EZUserAccountType.Visitor:
                            this.AccountIconLabel.node.active = !0, this.AccountIconLabel.string = "AccountInfoPanelText_Visitor".ToUILocale();
                            break;
                        case u.EZUserAccountType.Google:
                        case u.EZUserAccountType.Normal:
                            this.AccountIcon.node.active = !0
                    }
                    this._selectedAccountInfo.Name ? (this.UserNameLabel.node.active = !0, this.UserNameLabel.string = this._selectedAccountInfo.Name) : this.UserNameLabel.node.active = !1, this._selectedAccountInfo.Id == f.default.Instance.StorageAccountInfo.Current.Id ? this.LoginHintPanel.string = this.GetLoginTimeText(0) : this.LoginHintPanel.string = this.GetLoginTimeText(this._selectedAccountInfo.LoginTime)
                }, t.prototype.SetAccountListView = function() {
                    this.ArrowNode.scaleY = -1, this.AccountListNode.active = !1
                }, t.prototype.InitCustomLayout = function() {
                    this.CustomLayout.Init(this._ListItemPrefab)
                }, t.prototype.RenderCustomLayout = function() {
                    this._accountInfos = [];
                    var e = f.default.Instance.StorageAccountLog;
                    for (var t in e) {
                        var n = e[t];
                        this._accountInfos.push(n)
                    }
                    this._accountInfos.sort(function(e, t) {
                        return t.LoginTime - e.LoginTime
                    }), this.CustomLayout.RenderLayOut(this._accountInfos.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (this._currentOperationType == l.SwitchAccount && this.CustomLayout == t) {
                        var o = f.default.Instance.StorageAccountInfo.Current;
                        e.forEach(function(e, t) {
                            if (t < n._accountInfos.length) {
                                e.active = !0;
                                var r = n._accountInfos[t],
                                    i = e.getComponent(C.default);
                                switch (r.Type) {
                                    case u.EZUserAccountType.Google:
                                    case u.EZUserAccountType.Normal:
                                }
                                var a;
                                a = r.Id == o.Id ? n.GetLoginTimeText(0) : n.GetLoginTimeText(r.LoginTime), i.Init(r, n._selectedAccountInfo.Id == r.Id, n.SelectAccountCallBack.bind(n), a, void 0)
                            } else e.active = !1
                        })
                    }
                }, t.prototype.OnArrowTouchEnd = function() {
                    if (this.ArrowNode.scaleY = -this.ArrowNode.scaleY, this.ArrowNode.scaleY > 0) this.AccountListNode.active = !0, this.RenderCustomLayout(), this.HideGoogleLoginDiv();
                    else if (this.AccountListNode.active = !1, this._selectedAccountInfo && this._selectedAccountInfo.Type == u.EZUserAccountType.Google) {
                        var e = f.default.Instance.StorageAccountInfo.Current;
                        this._selectedAccountInfo.Id != e.Id && this._googleLoginErrData[this._selectedAccountInfo.Id] && this.DelayShowGoogleBtn(this.OkButton.node)
                    }
                }, t.prototype.OnAddTouchEnd = function() {
                    f.default.Instance.IsMainlandCheckChannel() ? this.GoToPanel(l.EmailLogin) : this.GoToPanel(l.ChooseLoginChannel)
                }, t.prototype.SelectAccountCallBack = function(e) {
                    if (e) {
                        if (this._selectedAccountInfo.Id == e.Id) return;
                        this._selectedAccountInfo = e, this.SetCurrentAccountInfo()
                    }
                    this.RenderCustomLayout(), this.OnArrowTouchEnd()
                }, t.prototype.InitEmailLogin = function() {
                    this._isInitEmailLogin || (this._isInitEmailLogin = !0, this.EmailLoginButton.node.on("click", this.OnEmailLoginButtonClick, this), this.EmailLoginButtonLabel.string = "Login".ToUILocale())
                }, t.prototype.SetEmailLoginView = function() {
                    this.InitAccountEdit([
                        ["AccountInfoPanelTip_EmailTag", "AccountInfoPanelTip_EmailText"], null, ["AccountInfoPanelTip_PasswordTag", "AccountInfoPanelTip_PasswordText"], null, null
                    ])
                }, t.prototype.OnEmailLoginButtonClick = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this.MainlandCheckAgreementState() ? (e = this._accountEditArray[0].GetInputText(), this.ValidateEmailTextIsOk(e) ? (t = new g.Req_Account_Login, (n = this._accountEditArray[2].GetInputText()) ? this.ValidatePasswordFormat(n) ? (t.Password = n, this._Interacting ? [2] : (this._Interacting = !0, t.Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), t.AccountType = u.EZUserAccountType.Normal, t.Pid = e, [4, this.EmailLoginRequest(t)])) : (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordFormat".ToUILocale()), [2]) : (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PassWord".ToUILocale()), [2])) : [2]) : [2];
                                case 1:
                                    return o.sent(), this._Interacting = !1, [2]
                            }
                        })
                    })
                }, t.prototype.EmailLoginRequest = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l, p;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    t = null, n = h.GlobalConfigComponent.Instance.ServerAddress, o = n + "/account_login", s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(o, g.Req_Account_Login.encode(e).finish())];
                                case 2:
                                    if (r = s.sent(), (i = g.Res_Account_Login.decode(r)).ErrCode != u.ErrCode.OK) {
                                        if (i.ErrCode != u.ErrCode.From16To17NotInPlayTime) throw t = ("error_hint_content_code_" + i.ErrCode).ToUILocale() || null, new Error(i.ErrCode + ": " + i.ErrMsg);
                                        if (f.default.Instance.IsMainlandCheckChannel()) return c.UIManager.Instance.ShowUIPanel(P.PanelConfig.AgreementPanel.Path, A.AgreementType.Under18NotInTime), [2]
                                    }
                                    return a = void 0, e.Password ? a = h.GlobalConfigComponent.Instance.EncryptStr(e.Password, u.GlobalSetting.RPC_SECRET_CODE) : (l = f.default.Instance.StorageAccountLog[i.Pid], a = null == l ? void 0 : l.Password), f.default.Instance.StorageAccountInfo.Current = {
                                        Id: i.Pid,
                                        Type: u.EZUserAccountType.Normal,
                                        Token: i.Token,
                                        Password: a,
                                        Name: i.Pid,
                                        LoginTime: h.RpcComponent.Instance.ServerTime,
                                        IdCardVerification: i.IdCardVerification,
                                        AgeType: i.AgeType
                                    }, f.default.Instance.StorageAccountInfo.ReadyLogin = !0, f.default.Instance.SaveAccountInfo(), m.default.AdjustTrackEvent(m.AdjustEventToken.Login), f.default.Instance.StorageAccountLog[f.default.Instance.StorageAccountInfo.Current.Id] = f.default.Instance.StorageAccountInfo.Current, f.default.Instance.SaveAccountLog(), f.default.Instance.IsMainlandCheckChannel() ? 0 == i.IdCardVerification ? this.DisplayRealNamePanel() : v.InitHelper.LogOut(!1) : v.InitHelper.LogOut(), [3, 4];
                                case 3:
                                    return p = s.sent(), c.EZLog.Error(p), t || (t = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(t), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.MainlandCheckAgreementState = function() {
                    return !(f.default.Instance.IsMainlandCheckChannel() && !this.AgreementComponent.CheckState && (y.UIUtlity.ShowFloatingHint("agreement_errorHint".ToUILocale()), 1))
                }, t.prototype.OnBackButtonClick = function() {
                    this._operationStack.length > 1 ? (this._operationStack.pop(), this._currentOperationType = this._operationStack[this._operationStack.length - 1], this.RefershVNPanelView()) : this.Close()
                }, t.prototype.OnOkButtonClick = function() {
                    switch (this._currentOperationType) {
                        case l.RegisterAndBind:
                        case l.RegisterNewAccount:
                            (this._currentOperationType != l.RegisterNewAccount || this.MainlandCheckAgreementState()) && this.ValidateSignUp();
                            break;
                        case l.SwitchAccount:
                            this.SwitchAccountLogin();
                            break;
                        case l.EmailLogin:
                            this.GoToPanel(l.RegisterNewAccount);
                            break;
                        case l.ChangePassword:
                            this.ValidateChangePassword();
                            break;
                        case l.ForgetPassword:
                            this.ValidateForgetPassword()
                    }
                }, t.prototype.ValidateSignUp = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e = this._accountEditArray[0].GetInputText(), this.ValidateEmailTextIsOk(e) ? (t = this._accountEditArray[1].GetInputText()) ? this.SendCodeEmail && this.SendCodeEmail != e ? (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_CodeError".ToUILocale()), [2]) : (n = this._accountEditArray[3].GetInputText()) ? this.ValidatePasswordFormat(n) ? (o = this._accountEditArray[4].GetInputText()) ? n != o ? (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordNotSame".ToUILocale()), [2]) : this._Interacting ? [2] : (this._Interacting = !0, this._currentOperationType != l.RegisterNewAccount ? [3, 2] : (r = {
                                        Id: e,
                                        Type: u.EZUserAccountType.Normal,
                                        Password: n
                                    }, [4, this.AccountRegister(r, t)])) : (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_ConfirmPassword".ToUILocale()), [2]) : (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordFormat".ToUILocale()), [2]) : (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PassWord".ToUILocale()), [2]) : (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_CodeError".ToUILocale()), [2]) : [2];
                                case 1:
                                    return i.sent(), [3, 4];
                                case 2:
                                    return [4, this.VisitorAccountBind(u.EZUserAccountType.Normal, t, e, n)];
                                case 3:
                                    i.sent(), i.label = 4;
                                case 4:
                                    return this._Interacting = !1, [2]
                            }
                        })
                    })
                }, t.prototype.SwitchAccountLogin = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, p;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (e = f.default.Instance.StorageAccountInfo.Current, this._selectedAccountInfo.Id == e.Id) return this.Close(), [2];
                                    if (this._selectedAccountInfo.Type == u.EZUserAccountType.Google) return this.RequestLoginGoogleAccount(this._selectedAccountInfo.ThirdPartyToken, this._selectedAccountInfo.Id), [2];
                                    switch (t = null, n = h.GlobalConfigComponent.Instance.ServerAddress, o = n + "/account_login", (r = new g.Req_Account_Login).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), r.AccountType = this._selectedAccountInfo.Type, r.Pid = this._selectedAccountInfo.Id, this._selectedAccountInfo.Type) {
                                        case u.EZUserAccountType.Visitor:
                                            r.Token = this._selectedAccountInfo.Token;
                                            break;
                                        case u.EZUserAccountType.Normal:
                                            r.Password = h.GlobalConfigComponent.Instance.DecryptStr(this._selectedAccountInfo.Password, u.GlobalSetting.RPC_SECRET_CODE)
                                    }
                                    if (this._Interacting) return [2];
                                    this._Interacting = !0, s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(o, g.Req_Account_Login.encode(r).finish())];
                                case 2:
                                    if (i = s.sent(), a = g.Res_Account_Login.decode(i), this._Interacting = !1, a.ErrCode != u.ErrCode.OK) switch (a.ErrCode) {
                                        case u.ErrCode.LoginVerifyFail:
                                            return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordError".ToUILocale()), this._autoFillMailAddress = r.Pid, this.GoToPanel(l.EmailLogin), [2];
                                        case u.ErrCode.From16To17NotInPlayTime:
                                            if (f.default.Instance.IsMainlandCheckChannel()) return c.UIManager.Instance.ShowUIPanel(P.PanelConfig.AgreementPanel.Path, A.AgreementType.Under18NotInTime), [2];
                                            break;
                                        default:
                                            throw t = ("error_hint_content_code_" + a.ErrCode).ToUILocale() || null, new Error(a.ErrCode + ": " + a.ErrMsg)
                                    }
                                    return f.default.Instance.StorageAccountInfo.Current = {
                                        Id: a.Pid,
                                        Type: this._selectedAccountInfo.Type,
                                        Token: a.Token,
                                        Password: this._selectedAccountInfo.Password,
                                        LoginTime: h.RpcComponent.Instance.ServerTime,
                                        IdCardVerification: a.IdCardVerification,
                                        AgeType: a.AgeType
                                    }, this._selectedAccountInfo.Type != u.EZUserAccountType.Visitor && (f.default.Instance.StorageAccountInfo.Current.Name = a.Pid), f.default.Instance.StorageAccountInfo.ReadyLogin = !0, f.default.Instance.SaveAccountInfo(), m.default.AdjustTrackEvent(m.AdjustEventToken.Login), f.default.Instance.StorageAccountLog[f.default.Instance.StorageAccountInfo.Current.Id] = f.default.Instance.StorageAccountInfo.Current, f.default.Instance.SaveAccountLog(), f.default.Instance.IsMainlandCheckChannel() ? 0 == a.IdCardVerification ? this.DisplayRealNamePanel() : v.InitHelper.LogOut(!1) : v.InitHelper.LogOut(), [3, 4];
                                case 3:
                                    return p = s.sent(), c.EZLog.Error(p), t || (t = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(t), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ValidateChangePassword = function() {
                    var e = this._accountEditArray[2].GetInputText();
                    if (e) {
                        var t = this._accountEditArray[3].GetInputText();
                        if (t)
                            if (this.ValidatePasswordFormat(t))
                                if (e != t) {
                                    var n = this._accountEditArray[4].GetInputText();
                                    n ? t == n ? this.AccountResetPassword(n, f.default.Instance.StorageAccountInfo.Current.Id, e) : y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordNotSame".ToUILocale()) : y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_ConfirmPassword2".ToUILocale())
                                } else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordSame".ToUILocale());
                        else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordFormat".ToUILocale());
                        else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_NewPassword".ToUILocale())
                    } else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_OldPassword".ToUILocale())
                }, t.prototype.ValidateForgetPassword = function() {
                    var e = this._accountEditArray[0].GetInputText();
                    if (!e) return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_EmailEmpty2".ToUILocale()), !1;
                    if (!this.ValidateEmailFormat(e)) return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_EmailFormatError".ToUILocale()), !1;
                    var t = this._accountEditArray[1].GetInputText();
                    if (t)
                        if (this.SendCodeEmail && this.SendCodeEmail != e) y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_CodeError2".ToUILocale());
                        else {
                            var n = this._accountEditArray[3].GetInputText();
                            if (n)
                                if (this.ValidatePasswordFormat(n)) {
                                    var o = this._accountEditArray[4].GetInputText();
                                    o ? (n != o && y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordNotSame2".ToUILocale()), this.AccountResetPassword(n, e, null, t)) : y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_ConfirmPassword".ToUILocale())
                                } else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordFormatError".ToUILocale());
                            else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_PasswordEmpty".ToUILocale())
                        }
                    else y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_CodeEmpty".ToUILocale())
                }, t.prototype.VisitorAccountBind = function(e, t, n, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i, a, l, m, I, _, C, v;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (r = f.default.Instance.StorageAccountInfo.Visitor, !(i = f.default.Instance.StorageAccountInfo.Current) || !r || i.Type != u.EZUserAccountType.Visitor) return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_NoVisitorAccountToBind".ToUILocale()), [2];
                                    a = null, l = h.GlobalConfigComponent.Instance.ServerAddress, m = l + "/bind_account", (I = new g.Req_Account_Bind).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), I.AccountType = e, I.AccountId = r.AccountId, I.Token = i.Token, I.Password = o, I.MailAddress = n, I.VerifyCode = t, s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(m, g.Req_Account_Bind.encode(I).finish())];
                                case 2:
                                    if (_ = s.sent(), (C = g.Res_Account_Bind.decode(_)).ErrCode != u.ErrCode.OK) throw a = ("error_hint_content_code_" + C.ErrCode).ToUILocale() || null, new Error(C.ErrCode + ": " + C.ErrMsg);
                                    return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_AccountBindSuccess".ToUILocale()), f.default.Instance.StorageAccountInfo.Visitor.Type = e, f.default.Instance.StorageAccountInfo.Current = {
                                        Id: C.Pid,
                                        Type: e,
                                        Password: h.GlobalConfigComponent.Instance.EncryptStr(o, u.GlobalSetting.RPC_SECRET_CODE),
                                        LoginTime: h.RpcComponent.Instance.ServerTime,
                                        Name: C.Pid,
                                        Token: C.Token
                                    }, f.default.Instance.SaveAccountInfo(), f.default.Instance.StorageAccountLog[i.Id] && delete f.default.Instance.StorageAccountLog[i.Id], f.default.Instance.StorageAccountLog[f.default.Instance.StorageAccountInfo.Current.Id] = f.default.Instance.StorageAccountInfo.Current, f.default.Instance.SaveAccountLog(), c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_VISITORBIND_SUCCESS), this.Close(), [3, 4];
                                case 3:
                                    return v = s.sent(), c.EZLog.Error(v), a && y.UIUtlity.ShowFloatingHint(a), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.AccountRegister = function(e, t, n) {
                    return void 0 === n && (n = !0), a(this, void 0, void 0, function() {
                        var o, r, i, a, l, p, I, _, C;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    o = null, r = h.GlobalConfigComponent.Instance.ServerAddress, i = r + "/account_register", (a = new g.Req_Account_Register).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), a.AccountType = e.Type, a.Pid = e.Id, a.Password = e.Password, a.VerifyCode = t, s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(i, g.Req_Account_Register.encode(a).finish())];
                                case 2:
                                    if (l = s.sent(), (p = g.Res_Account_Register.decode(l)).ErrCode != u.ErrCode.OK) throw o = ("error_hint_content_code_" + p.ErrCode).ToUILocale() || null, new Error(p.ErrCode + ": " + p.ErrMsg);
                                    return e.Type == u.EZUserAccountType.Visitor && (f.default.Instance.StorageAccountInfo.Visitor = {
                                        Id: e.Id,
                                        Type: u.EZUserAccountType.Visitor,
                                        Token: p.Token,
                                        AccountId: p.AccountId
                                    }), f.default.Instance.StorageAccountInfo.Current = {
                                        Id: e.Id,
                                        Type: e.Type,
                                        Token: p.Token,
                                        AccountId: p.AccountId
                                    }, e.Password && (I = h.GlobalConfigComponent.Instance.EncryptStr(e.Password, u.GlobalSetting.RPC_SECRET_CODE), f.default.Instance.StorageAccountInfo.Current.Password = I), f.default.Instance.SaveAccountInfo(), m.default.AdjustTrackEvent(m.AdjustEventToken.SignUp), f.default.Instance.IsMainlandCheckChannel() ? ((_ = new g.Req_Account_Login).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), _.AccountType = u.EZUserAccountType.Normal, _.Pid = a.Pid, _.Password = a.Password, this.EmailLoginRequest(_)) : n && v.InitHelper.LogOut(), [3, 4];
                                case 3:
                                    return C = s.sent(), c.EZLog.Error(C), o && y.UIUtlity.ShowFloatingHint(o), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.AccountResetPassword = function(e, t, n, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i, a, l, p, m, I;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (this._Interacting) return [2];
                                    this._Interacting = !0, r = null, i = h.GlobalConfigComponent.Instance.ServerAddress, a = i + "/account_change_password", (l = new g.Req_Account_Password).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), l.Pid = t, l.OriginalPassword = n, l.Password = e, l.VerifyCode = o, s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(a, g.Req_Account_Password.encode(l).finish())];
                                case 2:
                                    if (p = s.sent(), m = g.Res_Account_Password.decode(p), this._Interacting = !1, m.ErrCode != u.ErrCode.OK) throw r = ("error_hint_content_code_" + m.ErrCode).ToUILocale() || null, new Error(m.ErrCode + ": " + m.ErrMsg);
                                    return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_ChangePasswordSuccess".ToUILocale()), f.default.Instance.StorageAccountInfo.Current = {
                                        Id: l.Pid,
                                        Type: u.EZUserAccountType.Normal,
                                        Password: h.GlobalConfigComponent.Instance.EncryptStr(e, u.GlobalSetting.RPC_SECRET_CODE)
                                    }, f.default.Instance.SaveAccountInfo(), f.default.Instance.StorageAccountLog[f.default.Instance.StorageAccountInfo.Current.Id] = f.default.Instance.StorageAccountInfo.Current, f.default.Instance.SaveAccountLog(), v.InitHelper.LogOut(), [3, 4];
                                case 3:
                                    return I = s.sent(), c.EZLog.Error(I), r && y.UIUtlity.ShowFloatingHint(r), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ValidateEmailTextIsOk = function(e) {
                    return e ? !!this.ValidateEmailFormat(e) || (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_EmailFormatError".ToUILocale()), !1) : (y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_EmailEmpty".ToUILocale()), !1)
                }, t.prototype.ValidateEmailFormat = function(e) {
                    return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)
                }, t.prototype.ValidatePasswordFormat = function(e) {
                    return !!e && e.length >= 6 && e.length <= 15
                }, Object.defineProperty(t.prototype, "SendCodeEmail", {
                    get: function() {
                        return this._sendCodeEmail
                    },
                    set: function(e) {
                        this._sendCodeEmail = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.GetLoginTimeText = function(e) {
                    if (!e) return "AccountInfoPanelTip_JustNow".ToUILocale();
                    var t = Math.floor((h.RpcComponent.Instance.ServerTime - e) / u.Etc.DayDuration);
                    return t > 0 ? t < 7 ? "AccountInfoPanelTip_DayAgo".ToUILocale().Fmt(t) : t < 30 ? "AccountInfoPanelTip_WeekAgo".ToUILocale() : "AccountInfoPanelTip_MonthAgo".ToUILocale() : "AccountInfoPanelTip_JustNow".ToUILocale()
                }, t.prototype.DelayShowGoogleBtn = function(e) {
                    var t = this;
                    this.scheduleOnce(function() {
                        t.RenderGoogleBtnDiv(e)
                    })
                }, t.prototype.HideGoogleLoginDiv = function() {
                    var e = document.getElementById("google-login-div");
                    e && (e.style.display = "none")
                }, t.prototype.RenderGoogleBtnDiv = function(e) {
                    var t = document.getElementById("google-login-div");
                    t || ((t = document.createElement("div")).id = "google-login-div", document.getElementById("Cocos2dGameContainer").appendChild(t), t.style.opacity = "0"), t.style.display = "block";
                    var n = document.getElementById("GameCanvas"),
                        o = S.default.Instance.GameCanvas.node.width,
                        r = S.default.Instance.GameCanvas.node.height;
                    t.style.width = (n.clientWidth * e.width / o).toString(), t.style.height = (n.clientHeight * e.height / r).toString(), t.style.position = "absolute";
                    var i = e.convertToWorldSpaceAR(cc.v2(0, 0));
                    t.style.bottom = 100 * i.y / r + "%", t.style.left = 100 * i.x / o + "%", t.style.transform = "translate(-" + 100 * e.anchorX + "%, " + 100 * e.anchorY + "%)";
                    var a = this;

                    function s(e) {
                        c.EZLog.Log("handleCredentialResponse: " + e), a._currentOperationType == l.BindAccount ? a.GoogleBindAccount(e) : a.GoogleLoginAccount(e)
                    }
                    var p = document.getElementById("google-login-client");
                    p ? (google.accounts.id.initialize({
                        client_id: u.GlobalSetting.GOOGLE_ACCOUNT_CLIENT_ID,
                        callback: s
                    }), google.accounts.id.renderButton(document.getElementById("google-login-div"), {
                        size: "medium"
                    })) : ((p = document.createElement("script")).id = "google-login-client", document.head.appendChild(p), p.src = "https://accounts.google.com/gsi/client", window.onGoogleLibraryLoad = function() {
                        google.accounts.id.initialize({
                            client_id: u.GlobalSetting.GOOGLE_ACCOUNT_CLIENT_ID,
                            callback: s
                        }), google.accounts.id.renderButton(document.getElementById("google-login-div"), {
                            size: "medium"
                        })
                    })
                }, t.prototype.GoogleBindAccount = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l, I, _;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (t = f.default.Instance.StorageAccountInfo.Visitor, !(n = f.default.Instance.StorageAccountInfo.Current) || !t || n.Type != u.EZUserAccountType.Visitor || n.Id != t.Id) return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_NoVisitorAccountToBind".ToUILocale()), [2];
                                    if (this._Interacting) return [2];
                                    if (c.EZLog.Log("handleCredential bind: ", e), !e || !e.credential) return y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginVerifyFail".ToUILocale()), [2];
                                    this._Interacting = !0, o = null, r = h.GlobalConfigComponent.Instance.ServerAddress, i = r + "/bind_account", (a = new g.Req_Account_Bind).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), a.AccountId = t.AccountId, a.Token = n.Token, a.AccountType = u.EZUserAccountType.Google, a.ThirdPartyToken = e.credential, s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(i, g.Req_Account_Bind.encode(a).finish())];
                                case 2:
                                    if (l = s.sent(), this._Interacting = !1, (I = g.Res_Account_Bind.decode(l)).ErrCode != u.ErrCode.OK) throw o = ("error_hint_content_code_" + I.ErrCode).ToUILocale() || null, new Error(I.ErrCode + ": " + I.ErrMsg);
                                    return c.EZLog.Log("bind success: ", I), t.Type = u.EZUserAccountType.Google, n.Type = u.EZUserAccountType.Google, n.Id = I.Pid, n.Token = I.Token, n.Name = I.Pid, n.LoginTime = h.RpcComponent.Instance.ServerTime, n.ThirdPartyToken = e.credential, f.default.Instance.SaveAccountInfo(), f.default.Instance.StorageAccountLog[t.Id] && delete f.default.Instance.StorageAccountLog[t.Id], f.default.Instance.StorageAccountLog[n.Id] = n, f.default.Instance.SaveAccountLog(), m.default.AdjustTrackEvent(m.AdjustEventToken.SignUp), y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_BindSuccess".ToUILocale()), c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_VISITORBIND_SUCCESS), this.Close(), [3, 4];
                                case 3:
                                    return _ = s.sent(), c.EZLog.Error(_), o || (o = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(o), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GoogleLoginAccount = function(e) {
                    c.EZLog.Log("handleCredentialResponse: ", e), e && e.credential ? this.RequestLoginGoogleAccount(e.credential) : y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginVerifyFail".ToUILocale())
                }, t.prototype.RequestLoginGoogleAccount = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a, l, p;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (this._Interacting) return [2];
                                    this._Interacting = !0, n = null, o = h.GlobalConfigComponent.Instance.ServerAddress, r = o + "/account_login", (i = new g.Req_Account_Login).Param = h.GlobalConfigComponent.Instance.CreateWebCommonParam(u.GlobalSetting.RPC_SECRET_CODE), i.AccountType = u.EZUserAccountType.Google, i.ThirdPartyToken = e, s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(r, g.Req_Account_Login.encode(i).finish())];
                                case 2:
                                    if (a = s.sent(), this._Interacting = !1, (l = g.Res_Account_Login.decode(a)).ErrCode != u.ErrCode.OK) throw t && (this._googleLoginErrData[t] = 1, this.DelayShowGoogleBtn(this.OkButton.node)), n = ("error_hint_content_code_" + l.ErrCode).ToUILocale() || null, new Error(l.ErrCode + ": " + l.ErrMsg);
                                    return delete this._googleLoginErrData[l.Pid], f.default.Instance.StorageAccountInfo.Current = {
                                        Id: l.Pid,
                                        Type: u.EZUserAccountType.Google,
                                        Name: l.Pid,
                                        Token: l.Token,
                                        ThirdPartyToken: e
                                    }, f.default.Instance.StorageAccountInfo.ReadyLogin = !0, f.default.Instance.SaveAccountInfo(), f.default.Instance.StorageAccountLog[l.Pid] = {
                                        Id: l.Pid,
                                        Type: u.EZUserAccountType.Google,
                                        Name: l.Pid,
                                        LoginTime: h.RpcComponent.Instance.ServerTime,
                                        ThirdPartyToken: e
                                    }, f.default.Instance.SaveAccountLog(), m.default.AdjustTrackEvent(m.AdjustEventToken.Login), y.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginSuccess".ToUILocale().Fmt(f.default.Instance.StorageAccountInfo.Current.Name)), v.InitHelper.LogOut(), [3, 4];
                                case 3:
                                    return p = s.sent(), c.EZLog.Error(p), n || (n = "AccountInfoPanelTip_TryAgain".ToUILocale()), y.UIUtlity.ShowFloatingHint(n), [3, 4];
                                case 4:
                                    return c.Game.EventDispatcher.Emit(u.GameEventIds.LoginStatusChange), [2]
                            }
                        })
                    })
                }, t.prototype.DisplayRealNamePanel = function() {
                    c.UIManager.Instance.ShowUIPanel(P.PanelConfig.RealNamePanel.Path, function() {
                        v.InitHelper.LogOut(!1)
                    })
                }, t._IsGoogleSdkReady = !1, t._IsFacebookSdkReady = !1, i([L(b.default)], t.prototype, "Mask", void 0), i([L(cc.Label)], t.prototype, "Title", void 0), i([L(cc.EditBox)], t.prototype, "NameInput", void 0), i([L(cc.Node)], t.prototype, "AccountInfo", void 0), i([L(cc.Sprite)], t.prototype, "VisitorAccountIcon", void 0), i([L(cc.Sprite)], t.prototype, "FacebookAccountIcon", void 0), i([L(cc.Sprite)], t.prototype, "GoogleAccountIcon", void 0), i([L(cc.Label)], t.prototype, "AccountInfoLabel", void 0), i([L(cc.Button)], t.prototype, "VisitorBtn", void 0), i([L(cc.Button)], t.prototype, "FacebookBtn", void 0), i([L(cc.Button)], t.prototype, "GoogleBtn", void 0), i([L(cc.Node)], t.prototype, "GoogleTip", void 0), i([L(cc.Label)], t.prototype, "TipText", void 0), i([L(cc.Button)], t.prototype, "SwitchAccountBtn", void 0), i([L(cc.Node)], t.prototype, "Content", void 0), i([L(cc.Node)], t.prototype, "VNContent", void 0), i([L(cc.Node)], t.prototype, "EmptyNode", void 0), i([L(cc.Node)], t.prototype, "EmailInfo", void 0), i([L(cc.Node)], t.prototype, "BindAccount", void 0), i([L(cc.Node)], t.prototype, "Account", void 0), i([L(cc.Label)], t.prototype, "PanelTipText", void 0), i([L(w.default)], t.prototype, "AgreementComponent", void 0), i([L(cc.Node)], t.prototype, "BtnLayoutNode", void 0), i([L(cc.Button)], t.prototype, "BackButton", void 0), i([L(cc.Label)], t.prototype, "BackButtonLabel", void 0), i([L(cc.Button)], t.prototype, "OkButton", void 0), i([L(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([L(cc.Node)], t.prototype, "EmailInfoHintNode", void 0), i([L(cc.Label)], t.prototype, "EmailInfoHintLabel", void 0), i([L(cc.Node)], t.prototype, "EmailInfoEditNodes", void 0), i([L(cc.Node)], t.prototype, "EmailInfoBtnContainer", void 0), i([L(cc.Button)], t.prototype, "EmailLoginButton", void 0), i([L(cc.Label)], t.prototype, "EmailLoginButtonLabel", void 0), i([L(cc.Node)], t.prototype, "ToggleContainerNode", void 0), i([L(cc.Toggle)], t.prototype, "Toggles", void 0), i([L(cc.Label)], t.prototype, "TogglesLabel", void 0), i([L(cc.Label)], t.prototype, "TipText1", void 0), i([L(cc.Button)], t.prototype, "AccountButton", void 0), i([L(cc.Label)], t.prototype, "AccountButtonLabel", void 0), i([L(cc.Button)], t.prototype, "GoogleButton", void 0), i([L(cc.Label)], t.prototype, "GoogleButtonLabel", void 0), i([L(cc.Label)], t.prototype, "TipText2", void 0), i([L(cc.Sprite)], t.prototype, "AccountIcon", void 0), i([L(cc.Label)], t.prototype, "AccountIconLabel", void 0), i([L(cc.Label)], t.prototype, "UserNameLabel", void 0), i([L(cc.Label)], t.prototype, "LoginHintPanel", void 0), i([L(cc.Node)], t.prototype, "ArrowNode", void 0), i([L(cc.Node)], t.prototype, "ArrowEventNode", void 0), i([L(cc.Node)], t.prototype, "AccountListNode", void 0), i([L(_.default)], t.prototype, "CustomLayout", void 0), i([L(cc.Node)], t.prototype, "AddEventNode", void 0), n = i([R], t)
            }(c.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/Auxiliary/CanvasAutoFit": "CanvasAutoFit",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Tool/Tool": "Tool",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/AdjustAction": "AdjustAction",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../InitHelper": "InitHelper",
        "../Auxiliary/Mask": "Mask",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AccountEditComponent": "AccountEditComponent",
        "../Components/AgreementComponent": "AgreementComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ListAccountCompnent": "ListAccountCompnent",
        "./AgreementPanel": "AgreementPanel"
    }],
    AccountPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "60a9e4PG15LlKK6Gg5LUBW3", "AccountPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../Channel/ChannelManager"),
            p = e("../../../Consts/Consts"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1, !1), t.NameInput = null, t.LoginBtn = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LoginBtn.node.on("click", this.OnClickLoginBtn.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), t[0] ? this._isRelogin = t[0] : this._isRelogin = !1
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this);
                    var t = "",
                        n = cc.sys.localStorage.getItem(p.LocalStorageKeys.CurrentUser);
                    n && (c.DataCenter.Instance.UserName = n, t = n), this.NameInput.string = t
                }, t.prototype.OnClickLoginBtn = function() {
                    d.UIUtlity.ShowMaskPanel();
                    var e = this.NameInput.string;
                    e.length < 4 ? l.EZLog.Debug("username required 4 chars.") : (c.DataCenter.Instance.UserName = e, this.GetLoginInfo())
                }, t.prototype.GetLoginInfo = function() {
                    return a(this, void 0, Promise, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, u.default.Instance.GetLoginInfo()];
                                case 1:
                                    return null == (e = t.sent()) || e.ErrCode != p.ErrCode.OK ? (d.UIUtlity.CloseMaskPanel(), d.UIUtlity.ShowForceConfirmPanel(null, c.GlobalConfigComponent.Instance.PreloadLocale.ConnectServerError, c.GlobalConfigComponent.Instance.PreloadLocale.ButtonRetry, this.GetLoginInfo.bind(this)), [2]) : (d.UIUtlity.CloseMaskPanel(), c.DataCenter.Instance.ZoneAccounts = e.Data, cc.sys.localStorage.setItem(p.LocalStorageKeys.CurrentUser, c.DataCenter.Instance.UserName), l.Game.EventDispatcher.Emit(p.GameEventIds.UserLoginSuccess), this.Close(), [2])
                            }
                        })
                    })
                }, i([y(cc.EditBox)], t.prototype, "NameInput", void 0), i([y(cc.Button)], t.prototype, "LoginBtn", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AccumulatedChargeRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "064e8AExCpNE5sBOfnb7U93", "AccumulatedChargeRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/EventKeys"),
            s = e("../Components/ItemComponent"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Components/Components"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../Consts/Etc"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.PurchaseLimit = null, t.GetButtonLabel = null, t.GoButtonLabel = null, t.GetButton = null, t.GoButton = null, t.ReceivedNode = null, t.ReceivedLabel = null, t.ItemContainer = null, t._itemComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ReceivedLabel.string = "completed".ToUILocale(), this.GoButton.node.on("click", this.OnGoButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this)
                }, t.prototype.onEnable = function() {
                    d.Game.EventDispatcher.On(a.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    d.Game.EventDispatcher.Off(a.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._itemPrefab = e, this._task = t, this._totaltasks = n, this._configId = o, this.Title.string = u.default.GetTaskDesc(t), this.SetBtnState(), this.SetItems()
                }, t.prototype.SetBtnState = function() {
                    var e = this.GetTaskModel(this._configId, this._task.Id),
                        t = null == e || null == e.Progress ? 0 : e.Progress;
                    this.PurchaseLimit.node.color = t < this._task.TotalCount ? cc.Color.WHITE : cc.Color.GREEN, this.PurchaseLimit.string = "item_count_enough".ToUILocale().Fmt(t, this._task.TotalCount), this.GoButton.node.active = t < this._task.TotalCount && this._task.GetWayId && this._task.GetWayId > 0, this.GetButton.node.active = t >= this._task.TotalCount && !e.IsCompleted, this.ReceivedNode.active = t >= this._task.TotalCount && e.IsCompleted, this.GetButtonLabel.string = "receive".ToUILocale(), this.GoButtonLabel.string = "task_goto".ToUILocale()
                }, t.prototype.SetItems = function() {
                    var e = this;
                    if (this._task.Rewards.forEach(function(t, n) {
                            var o = e._itemComponentArray[n];
                            if (!o) {
                                var r = cc.instantiate(e._itemPrefab);
                                r.setParent(e.ItemContainer), o = r.getComponent(s.ItemComponent), e._itemComponentArray[n] = o
                            }
                            o.node.active = !0, o.node.name = t.Items[0].toString(), o.Init({
                                ItemId: t.Items[0],
                                Count: t.Items[1]
                            })
                        }), this._task.Rewards.length < this._itemComponentArray.length)
                        for (var t = this._task.Rewards.length; t < this._itemComponentArray.length; t++) this._itemComponentArray[t].node.active = !1
                }, t.prototype.GetTaskModel = function(e, t) {
                    return p.DataCenter.Instance.GetDataById(l.UserTask_Model, e * h.Etc.Multiplier + t)
                }, t.prototype.OnGetButtonClick = function() {
                    for (var e = [], t = 0; t < this._totaltasks.length; t++) {
                        var n = this.GetTaskModel(this._configId, this._totaltasks[t].Id);
                        !n.IsCompleted && n.Progress >= this._totaltasks[t].TotalCount && e.push(this._totaltasks[t].Id)
                    }
                    var o = new l.Req_Activity_CommonTaskReward;
                    o.ActivityId = this._configId, o.TaskIds = e, p.RpcComponent.Instance.Call(o, this.ResponseRewardSuccess.bind(this))
                }, t.prototype.ResponseRewardSuccess = function(e) {
                    c.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.OnGoButtonClick = function() {
                    u.default.ShowPanelByGetWayId(this._task.GetWayId)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && c.UIUtlity.ShowItemTip(e, t)
                }, i([g(cc.RichText)], t.prototype, "Title", void 0), i([g(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([g(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([g(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([g(cc.Button)], t.prototype, "GetButton", void 0), i([g(cc.Button)], t.prototype, "GoButton", void 0), i([g(cc.Node)], t.prototype, "ReceivedNode", void 0), i([g(cc.Label)], t.prototype, "ReceivedLabel", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActCollectionBigImgComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "522b99Nu59Ed7psgAtrCefo", "ActCollectionBigImgComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../Components/DataCenter"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Components/RpcComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../Util/TimeUtil"),
            g = e("../Panel/ActivityBaseContent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.lock = 0] = "lock", e[e.unlock = 1] = "unlock", e[e.end = 2] = "end"
        })(l || (l = {})),
        function(e) {
            e[e.Activity = 1] = "Activity", e[e.Img = 2] = "Img"
        }(c || (c = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UnlockTime = null, t.RedDot = null, t.IconContainer = null, t.Title = null, t.backGround = null, t.TimeLayout = null, t._panel = null, t._tagState = l.lock, t._startTime = 0, t._preShowData = null, t._palying = !1, t.LOCK_COLOR = new cc.Color(255, 231, 72), t.UNLOCK_COLOR = new cc.Color(0, 255, 0), t._animationInterval = .4, t._animationTimes = Number.POSITIVE_INFINITY, t._backCache = {}, t._assets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.node.on("click", this.JumpToActivity, this), this.backGround.node.on(cc.Node.EventType.MOUSE_MOVE, this.OnMouseMove, this), this.backGround.node.on(cc.Node.EventType.MOUSE_LEAVE, this.OnMouseLeave, this)
            }, t.prototype.onDisable = function() {
                this.node.off("click", this.JumpToActivity, this), this.backGround.node.on(cc.Node.EventType.MOUSE_MOVE, this.OnMouseMove, this), this.backGround.node.on(cc.Node.EventType.MOUSE_LEAVE, this.OnMouseLeave, this), this.unschedule(this.RefreshDeadLine)
            }, t.prototype.Init = function(e, t, n) {
                return a(this, void 0, void 0, function() {
                    var o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this._panel = e, this._activityName = t, this._preShowData = this._panel.GetLabelData(this._activityName), null != n && (this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n]), this.GetActivityItemStart(), this.RefreshTagState(), this.SetPosition(), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), this.TimeLayout.node.active = 1 == this._preShowData.IsShowDate, this.HandleShowState(), (o = this._preShowData.Tab.split("|"))[0] && 0 != o[0].length ? [4, this.ChangeBack(o[0])] : [3, 2];
                            case 1:
                                return i.sent(), [3, 3];
                            case 2:
                                this.backGround.node.width = 0, this.backGround.node.height = 0, i.label = 3;
                            case 3:
                                return o[1] && 0 != o[1].length ? [4, d.default.LoadActivityTexture(o[1])] : [3, 5];
                            case 4:
                                return r = i.sent(), this.isValid ? (this.Title.spriteFrame = r, this._assets.push(r), [3, 6]) : (u.AssetsManager.Instance.UnloadAsset(r), [2]);
                            case 5:
                                this.Title.node.width = 0, this.Title.node.height = 0, i.label = 6;
                            case 6:
                                return this.IconContainer.width = o[0] && 0 != o[0].length ? this.backGround.node.width : this.Title.node.width, this.IconContainer.height = o[0] && 0 != o[0].length ? this.backGround.node.height : this.Title.node.height, this.RedDot.x = o[0] && 0 != o[0].length ? this.backGround.node.width / 2 - this.RedDot.width / 2 : this.Title.node.width / 2 - this.RedDot.width / 2, this.RedDot.y = o[0] && 0 != o[0].length ? this.backGround.node.height / 2 - this.RedDot.height / 2 : this.Title.node.height / 2 - this.RedDot.height / 2, this._preShowData.SubType == c.Img && (this.node.getComponent(cc.Button).interactable = !1), [2]
                        }
                    })
                })
            }, t.prototype.OnMouseMove = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return this._animationTimes = Number.POSITIVE_INFINITY, [4, this.PlayAnimation()];
                            case 1:
                                return e.sent(), [2]
                        }
                    })
                })
            }, t.prototype.OnMouseLeave = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._animationTimes = 0, [2]
                    })
                })
            }, t.prototype.onDestroy = function() {
                for (var e in this._assets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    }), this._backCache) u.AssetsManager.Instance.UnloadAsset(this._backCache[e])
            }, t.prototype.RefreshDeadLine = function() {
                var e = this;
                this.UnlockTime.string = this.GetBottomText(), this.scheduleOnce(function() {
                    e.UnlockTime.node.width > 206 ? e.TimeLayout.enabled = !0 : (e.TimeLayout.enabled = !1, e.UnlockTime.node.parent.width = 246)
                })
            }, t.prototype.GetBottomText = function() {
                return ""
            }, t.prototype.LockActivity = function() {
                f.UIUtlity.OnSpriteDark(this.Title, .6), f.UIUtlity.OnSpriteDark(this.backGround, .6), this.UnlockTime.node.color = this.LOCK_COLOR
            }, t.prototype.UnLockActivity = function() {
                f.UIUtlity.OffSpriteGray(this.Title), f.UIUtlity.OffSpriteGray(this.backGround), this.UnlockTime.node.color = this.UNLOCK_COLOR
            }, t.prototype.JumpToActivity = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                if (this._activityConfig && 0 !== this._activityConfig.Common.GameModule && !(e = d.default.Instance.IsGameModuleUnlock(this._activityConfig.Common.GameModule))[0]) return f.UIUtlity.ShowFloatingHint(e[1]), [2];
                                switch (this._tagState) {
                                    case l.lock:
                                        return t = new Date(this._startTime), f.UIUtlity.ShowFloatingHint("ActiveCollection_OpenTimeTip".ToUILocale().Fmt(t.getMonth() + 1, t.getDate())), [2];
                                    case l.end:
                                        return f.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale()), [2];
                                    case l.unlock:
                                }
                                return [4, g.default.OpenActivityPanel(this._activityConfig._id)];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.PlayAnimation = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function() {
                        return this._palying ? [2] : (this._palying = !0, [2, new Promise(function(t) {
                            return a(e, void 0, void 0, function() {
                                var e;
                                return s(this, function(n) {
                                    switch (n.label) {
                                        case 0:
                                            e = 0, n.label = 1;
                                        case 1:
                                            return e < this._animationTimes ? [4, this.PlayAnimationOnce()] : [3, 5];
                                        case 2:
                                            return n.sent(), [4, this.OneIntervalTime()];
                                        case 3:
                                            n.sent(), n.label = 4;
                                        case 4:
                                            return e++, [3, 1];
                                        case 5:
                                            return t(null), this._palying = !1, [2]
                                    }
                                })
                            })
                        })])
                    })
                })
            }, t.prototype.PlayAnimationOnce = function() {
                return a(this, void 0, void 0, function() {
                    var e, t = this;
                    return s(this, function() {
                        return e = [this._preShowData.Tab.split("|")[0]].concat(this._preShowData.JumpAnimation.split("|")), [2, new Promise(function(n) {
                            return a(t, void 0, void 0, function() {
                                var t;
                                return s(this, function(o) {
                                    switch (o.label) {
                                        case 0:
                                            t = 0, o.label = 1;
                                        case 1:
                                            return t < e.length ? [4, this.ChangeBack(e[t])] : [3, 5];
                                        case 2:
                                            return o.sent(), [4, this.OneIntervalTime()];
                                        case 3:
                                            o.sent(), o.label = 4;
                                        case 4:
                                            return t++, [3, 1];
                                        case 5:
                                            return n(null), [2]
                                    }
                                })
                            })
                        })]
                    })
                })
            }, t.prototype.OneIntervalTime = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function() {
                        return [2, new Promise(function(t) {
                            e.scheduleOnce(function() {
                                t(null)
                            }, e._animationInterval)
                        })]
                    })
                })
            }, t.prototype.ChangeBack = function(e) {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function() {
                        return [2, new Promise(function(n) {
                            return a(t, void 0, void 0, function() {
                                var t, o;
                                return s(this, function(r) {
                                    switch (r.label) {
                                        case 0:
                                            return this._backCache[e] ? [3, 2] : (t = this._backCache, o = e, [4, d.default.LoadActivityTexture(e)]);
                                        case 1:
                                            t[o] = r.sent(), r.label = 2;
                                        case 2:
                                            return this.backGround.spriteFrame = this._backCache[e], n(null), [2]
                                    }
                                })
                            })
                        })]
                    })
                })
            }, t.prototype.SetRedDot = function(e) {
                void 0 === e && (e = !1), this.RedDot.active = e
            }, t.prototype.SetPosition = function() {
                var e = this._preShowData.Positions[0];
                if (this.node.x = e.Items[0], this.node.y = e.Items[1], this._preShowData.Positions[1]) {
                    var t = this._preShowData.Positions[1];
                    this.Title.node.x = t.Items[0], this.Title.node.y = t.Items[1]
                }
            }, t.prototype.RefreshTagState = function() {
                var e, t = this,
                    n = this._startTime - h.RpcComponent.Instance.ServerTime;
                if (this._activityConfig && 0 !== this._activityConfig.Common.GameModule && (e = d.default.Instance.IsGameModuleUnlock(this._activityConfig.Common.GameModule)), e && !e[0]) this._tagState = l.lock, this.LockActivity(), this.GetBottomText = function() {
                    return e[1]
                };
                else if (n > 0) this._tagState = l.lock, this.LockActivity(), this.GetBottomText = function() {
                    var e = t._startTime - h.RpcComponent.Instance.ServerTime;
                    return "ActiveCollection_OpenTimeLabel".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(e))
                }, this.scheduleOnce(this.RefreshTagState, n / 1e3);
                else if (this._activityConfig) {
                    this._tagState = l.unlock, this.UnLockActivity(), this.GetBottomText = function() {
                        var e = h.RpcComponent.Instance.ServerTime - d.default.Instance.ComputeDeadTime(t._activityConfig.Common);
                        if (e <= 0) return "ActiveCollection_LeftTime".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(-e));
                        var n = d.default.Instance.ComputeExtraShowDeadTime(t._activityConfig.Common) - h.RpcComponent.Instance.ServerTime;
                        return "ActiveCollection_showLeftTime".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(n))
                    };
                    var o = h.RpcComponent.Instance.ServerTime - d.default.Instance.ComputeDeadTime(this._activityConfig.Common);
                    this.scheduleOnce(this.RefreshTagState, o / 1e3)
                } else this._tagState = l.end, this.UnLockActivity(), this.GetBottomText = function() {
                    return "crossServerRank_end".ToUILocale()
                }
            }, t.prototype.GetActivityItemStart = function() {
                this._activityConfig ? this._startTime = d.default.Instance.ComputeActivitStartTime(this._activityConfig.Common) : this._startTime = y.TimeUtil.StrToTime(this._preShowData.Start)
            }, t.prototype.HandleShowState = function() {
                if (this._preShowData.ShowStart && this._preShowData.ShowEnd && "" != this._preShowData.ShowStart && "" != this._preShowData.ShowEnd) {
                    var e = h.RpcComponent.Instance.ServerTime,
                        t = y.TimeUtil.StrToTime(this._preShowData.ShowStart),
                        n = y.TimeUtil.StrToTime(this._preShowData.ShowEnd);
                    this.node.active = e >= t && e <= n
                }
            }, i([_(cc.Label)], t.prototype, "UnlockTime", void 0), i([_(cc.Node)], t.prototype, "RedDot", void 0), i([_(cc.Node)], t.prototype, "IconContainer", void 0), i([_(cc.Sprite)], t.prototype, "Title", void 0), i([_(cc.Sprite)], t.prototype, "backGround", void 0), i([_(cc.Layout)], t.prototype, "TimeLayout", void 0), i([I], t)
        }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ActivityBaseContent": "ActivityBaseContent"
    }],
    ActTransitionPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5e224oRqmFMhb4JvXqwmkGr", "ActTransitionPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.PopUp, !1), t.spine = null, t._play = 0, t
                }
                return r(t, e), t.prototype.InitData = function(e) {
                    this._call = e[0]
                }, t.prototype.DisPlay = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this), this.IsReDisPlay ? [3, 2] : (t = this.spine, [4, this.LoadDynamicAsset("ActivityStoryTaskPanel/Spine/UI_effect_heipingzhuanchang", sp.SkeletonData)]);
                                case 1:
                                    if (t.skeletonData = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this.spine.skeletonData), [2];
                                    this.spine.setAnimation(0, "Ani_UI_effect_heipingzhuanchang", !1), this.spine.setCompleteListener(function() {
                                        return a(n, void 0, void 0, function() {
                                            return s(this, function(e) {
                                                switch (e.label) {
                                                    case 0:
                                                        return this._play++, 1 != this._play ? [3, 2] : [4, this._call()];
                                                    case 1:
                                                        e.sent(), e.label = 2;
                                                    case 2:
                                                        return this._play >= 2 ? (this.Close(), [2]) : (this.spine.setAnimation(0, "Ani_UI_effect_heipingzhuanchang2", !1), [2])
                                                }
                                            })
                                        })
                                    }), o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, i([d(sp.Skeleton)], t.prototype, "spine", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    ActiveCollectionEntryPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d6067+rUvFMsIO1HA4ENznn", "ActiveCollectionEntryPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Components/Components"),
            d = e("../../Components/RpcComponent"),
            h = e("./ActiveCollectionItemComponent"),
            f = e("./TimeLimitedActivityPanel"),
            y = e("../Components/ActCollectionBigImgComponent"),
            g = e("../../../Util/TimeUtil"),
            m = e("../../../ShareConsts/EnumType"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property;
        (function(e) {
            e[e.title = 1] = "title", e[e.bigImg = 2] = "bigImg"
        })(l || (l = {}));
        var v = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.PanelTitle = null, t.PanelDeadLine = null, t.ActivityItemsContainer = null, t.BackButton = null, t.Background = null, t.EffectBack = null, t.EffectFront = null, t._frameId = 0, t._activeNameDataMap = {}, t._namePreShowDataMap = {}, t._nameActivityComponentMap = {}, t._loadAssets = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActiveCollectionEntryPanel/ActiveCollectionItemComponent", cc.Prefab), n = this.LoadDynamicAsset("ActiveCollectionEntryPanel/ActCollectionBigImgComponent", cc.Prefab), [4, Promise.all([t, n])];
                            case 1:
                                return o = r.sent(), this._prefabCache = o[0], this._bigImgItemPrefab = o[1], [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.BackButton.on("click", c.UIManager.Instance.BackUIPanel, c.UIManager.Instance)
            }, t.prototype.InitData = function(t) {
                var n = this;
                if (e.prototype.InitData.call(this, t), this._frameId = t[0], !this._frameId) {
                    var o = p.DataCenter.Instance.ActivityConfigs;
                    for (var r in o)
                        if (m.ActivityType.Frame6 == o[r].Common.Type) {
                            this._frameId = o[r]._id;
                            break
                        }
                }
                this._frameConfig = p.DataCenter.Instance.ActivityConfigs[this._frameId];
                var i = p.DataCenter.Instance.ActivityFrameMap[this._frameId];
                this._frameConfig.Labels.forEach(function(e) {
                    if (i)
                        for (var t = 0; t < i.length; t++) {
                            var o = p.DataCenter.Instance.ActivityConfigs[i[t]];
                            if (o && o.Name == e.Id) {
                                n._activeNameDataMap[e.Id] = o;
                                break
                            }
                        }
                    n._namePreShowDataMap[e.Id] = e
                })
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), t = this._frameConfig.CustomPart.BgEffect.split("|")[0], n = this._frameConfig.CustomPart.FgEffect.split("|")[0], t && "" != t && (o = this.LoadDynamicAsset("ActivitySpine/" + t, sp.SkeletonData)), n && "" != n && (r = this.LoadDynamicAsset("ActivitySpine/" + n, sp.SkeletonData)), i = this.LoadBack(), [4, Promise.all([i, o, r])];
                            case 1:
                                return a = s.sent(), this._loadAssets.push(a[0]), this.Background.spriteFrame = a[0], t && "" != t && (this.EffectBack.skeletonData = a[1]), n && "" != n && (this.EffectFront.skeletonData = a[2]), [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.PanelTitle.string = this._frameConfig.Common.Title, this.InitActivityItem(), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), this.EffectBack.setAnimation(0, this._frameConfig.CustomPart.BgEffect.split("|")[1], !0), this.EffectFront.setAnimation(0, this._frameConfig.CustomPart.FgEffect.split("|")[1], !0)), this.BindRedDot()
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), this.unscheduleAllCallbacks()
            }, t.prototype.InitActivityItem = function() {
                var e = this;
                Object.keys(this._namePreShowDataMap).forEach(function(t) {
                    var n, o;
                    o = e._frameConfig.CustomPart.SubType == l.bigImg ? (n = cc.instantiate(e._bigImgItemPrefab)).getComponent(y.default) : (n = cc.instantiate(e._prefabCache)).getComponent(h.default), e.ActivityItemsContainer.addChild(n), e._nameActivityComponentMap[t] = o, e._activeNameDataMap[t] ? o.Init(e, t, e._activeNameDataMap[t]._id) : o.Init(e, t, void 0)
                })
            }, t.prototype.RefreshDeadLine = function() {
                var e = u.default.Instance.ComputeExtraShowDeadTime(this._frameConfig.Common) - d.RpcComponent.Instance.ServerTime;
                e < 0 ? c.UIManager.Instance.BackUIPanel() : this.PanelDeadLine.string = "ActiveCollection_DeadlineTimeRichText".ToUILocale().Fmt(u.default.ActivityTimeLeftFormat(e))
            }, t.prototype.BindRedDot = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function() {
                        for (e = Object.keys(this._activeNameDataMap), t = 0; t < e.length; t++) n = e[t], o = null, this._activeNameDataMap[n] && (o = f.ActivityData.GetTopicActivityTypeToRedDot(this._activeNameDataMap[n].Common.Type)), null != o && this._nameActivityComponentMap[n].SetRedDot(o.callBackFunc({
                            Value1: this._activeNameDataMap[n]._id
                        }));
                        return [2]
                    })
                })
            }, t.prototype.GetLabelData = function(e) {
                return this._namePreShowDataMap[e]
            }, t.prototype.LoadBack = function() {
                for (var e, t = 0, n = d.RpcComponent.Instance.ServerTime, o = this._frameConfig.CustomPart.BgEndTime.split("|").map(function(e) {
                        return g.TimeUtil.StrToTime(e)
                    }), r = this._frameConfig.CustomPart.BackgroundImage.split("|"), i = 0; i < o.length; i++) {
                    if (!(n >= o[i])) {
                        t = Math.min(t, r.length - 1);
                        break
                    }
                    t = i + 1
                }
                return (e = r[t]) || (e = this._frameConfig.CustomPart.BackgroundImage.split("|")[0]), u.default.LoadActivityTexture(e)
            }, t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([C(cc.Label)], t.prototype, "PanelTitle", void 0), i([C(cc.RichText)], t.prototype, "PanelDeadLine", void 0), i([C(cc.Node)], t.prototype, "ActivityItemsContainer", void 0), i([C(cc.Node)], t.prototype, "BackButton", void 0), i([C(cc.Sprite)], t.prototype, "Background", void 0), i([C(sp.Skeleton)], t.prototype, "EffectBack", void 0), i([C(sp.Skeleton)], t.prototype, "EffectFront", void 0), i([_], t)
        }(c.BaseUIFullScreenPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/ActCollectionBigImgComponent": "ActCollectionBigImgComponent",
        "./ActiveCollectionItemComponent": "ActiveCollectionItemComponent",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    ActiveCollectionItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1bbc84hu/5L9JxxJW/YrDMm", "ActiveCollectionItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Components/DataCenter"),
            p = e("../../Components/RpcComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../../Util/TimeUtil"),
            y = e("./ActivityBaseContent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property;
        (function(e) {
            e[e.lock = 0] = "lock", e[e.unlock = 1] = "unlock", e[e.end = 2] = "end"
        })(l || (l = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UnlockTime = null, t.RedDot = null, t.Title = null, t.LockSprite = null, t.TimeLayout = null, t._panel = null, t._tagState = l.lock, t._startTime = 0, t._preShowData = null, t.LOCK_COLOR = new cc.Color(255, 231, 72), t.UNLOCK_COLOR = new cc.Color(0, 255, 0), t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.node.on("click", this.JumpToActivity, this)
            }, t.prototype.onDisable = function() {
                this.node.off("click", this.JumpToActivity, this), this.unschedule(this.RefreshDeadLine)
            }, t.prototype.Init = function(e, t, n) {
                return a(this, void 0, void 0, function() {
                    var o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this._panel = e, this._activityName = t, this._preShowData = this._panel.GetLabelData(this._activityName), null != n && (this._activityConfig = u.DataCenter.Instance.ActivityConfigs[n]), this.GetActivityItemStart(), this.RefreshTagState(), this.SetPosition(), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), this.HandleShowState(), o = this, [4, c.default.LoadActivityTexture(this._preShowData.Tab)];
                            case 1:
                                return o._titleAsset = r.sent(), this.isValid ? (this.Title.spriteFrame = this._titleAsset, [2]) : (h.AssetsManager.Instance.UnloadAsset(this._titleAsset), [2])
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                h.AssetsManager.Instance.UnloadAsset(this._titleAsset)
            }, t.prototype.RefreshDeadLine = function() {
                var e = this;
                this.UnlockTime.string = this.GetBottomText(), this.scheduleOnce(function() {
                    e.UnlockTime.node.width > 206 ? e.TimeLayout.enabled = !0 : (e.TimeLayout.enabled = !1, e.UnlockTime.node.parent.width = 246)
                })
            }, t.prototype.GetBottomText = function() {
                return ""
            }, t.prototype.LockActivity = function() {
                d.UIUtlity.OnSpriteDark(this.Title), this.LockSprite.node.active = !0, this.LockSprite.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("lock_gold"), this.UnlockTime.node.color = this.LOCK_COLOR
            }, t.prototype.UnLockActivity = function() {
                d.UIUtlity.OffSpriteGray(this.Title), this.LockSprite.node.active = !1, this.UnlockTime.node.color = this.UNLOCK_COLOR
            }, t.prototype.JumpToActivity = function() {
                if (this._activityConfig && 0 !== this._activityConfig.Common.GameModule) {
                    var e = c.default.Instance.IsGameModuleUnlock(this._activityConfig.Common.GameModule);
                    if (!e[0]) return void d.UIUtlity.ShowFloatingHint(e[1])
                }
                switch (this._tagState) {
                    case l.lock:
                        var t = new Date(this._startTime);
                        return void d.UIUtlity.ShowFloatingHint("ActiveCollection_OpenTimeTip".ToUILocale().Fmt(t.getMonth() + 1, t.getDate()));
                    case l.end:
                        return void d.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale());
                    case l.unlock:
                }
                y.default.OpenActivityPanel(this._activityConfig._id)
            }, t.prototype.SetRedDot = function(e) {
                void 0 === e && (e = !1), this.RedDot.active = e
            }, t.prototype.SetPosition = function() {
                var e = this._preShowData.Positions;
                this.node.x = e[0].Items[0], this.node.y = e[0].Items[1]
            }, t.prototype.RefreshTagState = function() {
                var e, t = this,
                    n = this._startTime - p.RpcComponent.Instance.ServerTime;
                if (this._activityConfig && 0 !== this._activityConfig.Common.GameModule && (e = c.default.Instance.IsGameModuleUnlock(this._activityConfig.Common.GameModule)), e && !e[0]) this._tagState = l.lock, this.LockActivity(), this.GetBottomText = function() {
                    return e[1]
                };
                else if (n > 0) this._tagState = l.lock, this.LockActivity(), this.GetBottomText = function() {
                    var e = t._startTime - p.RpcComponent.Instance.ServerTime;
                    return "ActiveCollection_OpenTimeLabel".ToUILocale().Fmt(c.default.ActivityTimeLeftFormat(e))
                }, this.scheduleOnce(this.RefreshTagState, n / 1e3);
                else if (this._activityConfig) {
                    this._tagState = l.unlock, this.UnLockActivity(), this.GetBottomText = function() {
                        var e = p.RpcComponent.Instance.ServerTime - c.default.Instance.ComputeDeadTime(t._activityConfig.Common);
                        if (e <= 0) return "ActiveCollection_LeftTime".ToUILocale().Fmt(c.default.ActivityTimeLeftFormat(-e));
                        var n = c.default.Instance.ComputeExtraShowDeadTime(t._activityConfig.Common) - p.RpcComponent.Instance.ServerTime;
                        return "ActiveCollection_showLeftTime".ToUILocale().Fmt(c.default.ActivityTimeLeftFormat(n))
                    };
                    var o = p.RpcComponent.Instance.ServerTime - c.default.Instance.ComputeDeadTime(this._activityConfig.Common);
                    this.scheduleOnce(this.RefreshTagState, o / 1e3)
                } else this._tagState = l.end, this.UnLockActivity(), this.GetBottomText = function() {
                    return "crossServerRank_end".ToUILocale()
                }
            }, t.prototype.GetActivityItemStart = function() {
                this._activityConfig ? this._startTime = c.default.Instance.ComputeActivitStartTime(this._activityConfig.Common) : this._startTime = f.TimeUtil.StrToTime(this._preShowData.Start)
            }, t.prototype.HandleShowState = function() {
                if (this._preShowData.ShowStart && this._preShowData.ShowEnd && "" != this._preShowData.ShowStart && "" != this._preShowData.ShowEnd) {
                    var e = p.RpcComponent.Instance.ServerTime,
                        t = f.TimeUtil.StrToTime(this._preShowData.ShowStart),
                        n = f.TimeUtil.StrToTime(this._preShowData.ShowEnd);
                    this.node.active = e >= t && e <= n
                }
            }, i([I(cc.Label)], t.prototype, "UnlockTime", void 0), i([I(cc.Node)], t.prototype, "RedDot", void 0), i([I(cc.Sprite)], t.prototype, "Title", void 0), i([I(cc.Sprite)], t.prototype, "LockSprite", void 0), i([I(cc.Layout)], t.prototype, "TimeLayout", void 0), i([m], t)
        }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ActivityBaseContent": "ActivityBaseContent"
    }],
    ActiveCommandUnlockHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1630exlRFJC+5SFDge/oAvE", "ActiveCommandUnlockHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./NodePool"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.UpperTip = null, t.LowerTip = null, t.AttainLabel = null, t.AttainNumber = null, t.BuyButtonLabel = null, t.BuyButton = null, t.UpperRewardsContainer = null, t.LowerRewardsContainer = null, t._items = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), this._itemPool = new u.default(this._itemPrefab), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "climbTower_scripture_unlock_high".ToUILocale(), this.UpperTip.string = "climbTower_unlock_high_grandTotal".ToUILocale(), this.LowerTip.string = "climbTower_unlock_high_buyNow".ToUILocale(), this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._upperRewards = t[0], this._lowerRewards = t[1], this._exp = t[2], this._price = t[3]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetItems(), this.AttainNumber.string = "x" + this._exp, this.BuyButtonLabel.string = this._price
                }, t.prototype.SetItems = function() {
                    for (var e = 0; e < this._upperRewards.length; e++) {
                        (n = this._itemPool.Get()).active = !0, n.name = this._upperRewards[e][0].toString(), n.setParent(this.UpperRewardsContainer);
                        var t = n.getComponent(p.ItemComponent);
                        this._items.push(t), t.Init({
                            ItemId: this._upperRewards[e][0],
                            Count: this._upperRewards[e][1]
                        })
                    }
                    for (e = 0; e < this._lowerRewards.length; e++) {
                        var n;
                        (n = this._itemPool.Get()).active = !0, n.name = this._upperRewards[e][0].toString(), n.setParent(this.LowerRewardsContainer), t = n.getComponent(p.ItemComponent), this._items.push(t), t.Init({
                            ItemId: this._lowerRewards[e][0],
                            Count: this._lowerRewards[e][1]
                        })
                    }
                }, t.prototype.OnBuyButtonClick = function() {}, t.prototype.OnItemClick = function(e, t) {
                    "content2" == t.parent.name && h.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick);
                    for (var e = 0; e < this._items.length; e++) this._items[e].node.active = !1, this._itemPool.Put(this._items[e].node);
                    this._items = []
                }, t.prototype.onDestroy = function() {
                    this._itemPool && this._itemPool.Clear()
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "UpperTip", void 0), i([g(cc.Label)], t.prototype, "LowerTip", void 0), i([g(cc.Label)], t.prototype, "AttainLabel", void 0), i([g(cc.Label)], t.prototype, "AttainNumber", void 0), i([g(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([g(cc.Button)], t.prototype, "BuyButton", void 0), i([g(cc.Node)], t.prototype, "UpperRewardsContainer", void 0), i([g(cc.Node)], t.prototype, "LowerRewardsContainer", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./NodePool": "NodePool"
    }],
    ActivePrivilegePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4fa8ba4u6ZKm4B9XvBq8ub6", "ActivePrivilegePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            p = e("../../../EZFramework/UIFrame/UIPanelType"),
            d = e("../../../EZFramework/EZDefine/SysDefine"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/ConfigData/ConfigDataComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/ItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../../Proto/Static/RpcProto"),
            _ = e("../../Components/DataCenter"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../../Channel/ChannelManager"),
            S = e("../../Auxiliary/DataUtlity"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.Id = 0] = "Id", e[e.Count = 1] = "Count"
        })(l || (l = {})),
        function(e) {
            e[e.GrandTotal = 0] = "GrandTotal", e[e.RightNow = 1] = "RightNow"
        }(c || (c = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(d.UINodeType.Tip, !1), t.Tittle = null, t.TipsTop = null, t.TipsBottom = null, t.GradTotalScroll = null, t.BuyNowScroll = null, t.GradTotalItemGrid = null, t.BuyNowItemGrid = null, t.BuyButton = null, t.BuyButtonLabel = null, t.AttainLabel = null, t.AttainValue = null, t.DiscountLabel = null, t.DiscountValue = null, t.COLUMN_MAX = 5, t._tolenTypeId = -1, t._isSameToken = !1, t._grandTotalItemTable = [], t._buyNowItemTable = [], t._grandTotalRewardMap = new Map, t._buyNowRewardMap = new Map, t._userData = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                C.Game.EventDispatcher.On(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                C.Game.EventDispatcher.Off(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.GradTotalItemGrid.node.children.indexOf(t) && m.UIUtlity.ShowItemTip(e, t), -1 != this.BuyNowItemGrid.node.children.indexOf(t) && m.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent)];
                            case 1:
                                return t._itemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetClickEvent(), this.SetStaticLocalText()
            }, t.prototype.SetStaticLocalText = function() {
                this.Tittle.string = "climbTower_scripture_unlock_high".ToUILocale(), this.TipsTop.string = "<outline width=3 color=#221611>" + "privilege_buyNow".ToUILocale() + "</outline>", this.TipsBottom.string = "privilege_grandTotal".ToUILocale(), this.AttainLabel.string = "task_get_score_tag".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
            }, t.prototype.ReloadUserData = function() {
                this._userData = _.DataCenter.Instance.GetDataById(I.WarToken_Model, this._tolenTypeId)
            }, t.prototype.InitData = function(e) {
                this._tolenTypeId != e[0] ? (this._tolenTypeId = e[0], this._isSameToken = !1) : this._isSameToken = !0, this._giftId = f.ConfigDataComponent.Instance.GetConfigById(h.WarTokenType_Config, this._tolenTypeId).GiftId, this._gift = f.ConfigDataComponent.Instance.GetConfigById(h.GiftPack_Config, this._giftId), this.BuyButtonLabel.string = b.default.Instance.CurrencySymbol + b.default.Instance.ExchangeMoney(this._gift.Money), this.AttainValue.string = "x" + this._gift.VipPoint, S.default.Instance.SetDisCount(this._gift.Discount, this.DiscountValue, this.DiscountLabel)
            }, t.prototype.CalcRewardData = function() {
                var e = f.ConfigDataComponent.Instance.GetConfigById(h.WarTokenType_Config, this._tolenTypeId),
                    t = e.TaskList.length;
                this._isSameToken || this._grandTotalRewardMap.clear(), this._buyNowRewardMap.clear();
                for (var n = 0; n < t; n++) {
                    var o = e.TaskList[n],
                        r = f.ConfigDataComponent.Instance.GetConfigById(h.WarTokenTask_Config, o),
                        i = r.NormalReward,
                        a = r.AdvanceReward;
                    this._isSameToken || (this.SetMap(this._grandTotalRewardMap, i), this.SetMap(this._grandTotalRewardMap, a)), this._userData.Point >= r.RequirePoint && (this._userData.RewardIndex >= n + 1 ? this.SetMap(this._buyNowRewardMap, a) : (this.SetMap(this._buyNowRewardMap, i), this.SetMap(this._buyNowRewardMap, a)))
                }
            }, t.prototype.SetMap = function(e, t) {
                for (var n = 0; n < t.length; n++)
                    if (e.has(t[n].Items[l.Id])) {
                        var o = e.get(t[n].Items[l.Id]),
                            r = t[n].Items[l.Count];
                        e.set(t[n].Items[l.Id], o + r)
                    } else e.set(t[n].Items[l.Id], t[n].Items[l.Count])
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.ReloadUserData(), this.CalcRewardData(), this.InitGrid(c.GrandTotal), this.InitGrid(c.RightNow)
            }, t.prototype.InitGrid = function(e) {
                var t = this;
                if (!this._isSameToken || e != c.GrandTotal) {
                    var n, o, r, i, a = 0;
                    e == c.GrandTotal ? (n = this._grandTotalItemTable, o = this._grandTotalRewardMap, i = this.GradTotalScroll, r = this.GradTotalItemGrid) : (n = this._buyNowItemTable, o = this._buyNowRewardMap, i = this.BuyNowScroll, r = this.BuyNowItemGrid);
                    for (var s = 0; s < n.length; s++) n[s].node.active = !1;
                    o.forEach(function(e, o) {
                        if (null == n[a]) {
                            var i = cc.instantiate(t._itemPrefab).getComponent(g.ItemComponent);
                            i.node.parent = r.node, n[a] = i
                        }
                        n[a].node.name = o.toString(), n[a].Init({
                            ItemId: o,
                            Count: e
                        }), n[a].node.active = !0, a++
                    }), this.ResizeLayout(i, r, o.size)
                }
            }, t.prototype.ResizeLayout = function(e, t, n) {
                if (n < this.COLUMN_MAX) e.enabled = !1, t.node.anchorX = .5, t.resizeMode = cc.Layout.ResizeMode.CONTAINER;
                else {
                    e.enabled = !0, t.node.anchorX = 0, t.resizeMode = cc.Layout.ResizeMode.NONE;
                    var o = t.spacingX,
                        r = t.node.scaleX;
                    t.node.width = m.UIUtlity.ITEM_COMPONENT_WIDTH * r * n + o * (n - 1), e.scheduleOnce(function() {
                        this.scrollToOffset(cc.v2(0, 0))
                    }, .1)
                }
                t.updateLayout()
            }, t.prototype.OnBuyButtonClick = function() {
                b.default.Instance.Pay(this._giftId), this.Close()
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, i([A(cc.Label)], t.prototype, "Tittle", void 0), i([A(cc.RichText)], t.prototype, "TipsTop", void 0), i([A(cc.RichText)], t.prototype, "TipsBottom", void 0), i([A(cc.ScrollView)], t.prototype, "GradTotalScroll", void 0), i([A(cc.ScrollView)], t.prototype, "BuyNowScroll", void 0), i([A(cc.Layout)], t.prototype, "GradTotalItemGrid", void 0), i([A(cc.Layout)], t.prototype, "BuyNowItemGrid", void 0), i([A(cc.Button)], t.prototype, "BuyButton", void 0), i([A(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([A(cc.Label)], t.prototype, "AttainLabel", void 0), i([A(cc.Label)], t.prototype, "AttainValue", void 0), i([A(cc.Label)], t.prototype, "DiscountLabel", void 0), i([A(cc.Label)], t.prototype, "DiscountValue", void 0), i([P], t)
        }(u.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    Activity2048CardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1bc9dXCMcVKOpzV9iRBGZTp", "Activity2048CardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Spine = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnCardClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._value = e, this._cardIndex = t, this._atlas = n, this._mainPanel = o, cc.Tween.stopAllByTarget(this.node), this.node.opacity = 255, this.node.position = new cc.Vec3(0, 0, 0), this.node.scale = 1, this.Icon.spriteFrame = e ? this._atlas.getSpriteFrame(e.toString()) : null
                }, t.prototype.SetMoveTween = function(e) {
                    var t = this;
                    0 == e[0] && 0 == e[1] || cc.tween(this.node).to(.1, {
                        x: e[0] * this.node.width,
                        y: e[1] * this.node.height
                    }).to(0, {
                        opacity: 0,
                        x: 0,
                        y: 0
                    }).call(function() {
                        var n = 0 == e[0] ? t._cardIndex - 4 * e[1] : t._cardIndex + e[0];
                        t._mainPanel.SetCombineCard(n)
                    }).start()
                }, t.prototype.SetCombineValue = function(e, t) {
                    this.node.opacity = 255, this._value != e && (this._value = e, this.Icon.spriteFrame = e ? this._atlas.getSpriteFrame(e.toString()) : null, t && cc.tween(this.node).to(.05, {
                        scale: 1.5
                    }).to(.05, {
                        scale: 1
                    }).start())
                }, t.prototype.SetSpine = function(e, t) {
                    var n = this;
                    e ? (this.Spine.node.active = !0, this.Spine.skeletonData = e, 1 == t ? (this.Spine.setAnimation(0, "Ani_UI_Effect_dgxyx_daozi", !1), this.scheduleOnce(function() {
                        n.Icon.spriteFrame = null
                    }, .5), this.Spine.setCompleteListener(function() {
                        n.Spine.node.active = !1, n._mainPanel.ConsumeCallBack()
                    })) : 2 == t && this.Spine.setAnimation(0, "Ani_UI_Effect_dgxyx_chanzi", !0)) : this.Spine.node.active = !1
                }, t.prototype.OnCardClick = function() {
                    this._value && this._mainPanel.OnClickCardUseConsume(this._cardIndex, this._value)
                }, t.prototype.onDestroy = function() {
                    cc.Tween.stopAllByTarget(this.node), this.unscheduleAllCallbacks()
                }, i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([l(sp.Skeleton)], t.prototype, "Spine", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    Activity2048ConsumePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c7269gt6oZFA4owSnsrsh9g", "Activity2048ConsumePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/SliderComponent"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.ItemNode = null, t.ItemName = null, t.ItemDesc = null, t.SliderComponent = null, t.SliderCount = null, t.CurrencyBarItem = null, t.LeftTimes = null, t.UseButton = null, t.UseButtonLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "activity2048_title".ToUILocale(), this.UseButtonLabel.string = "use".ToUILocale(), this.SliderCount.string = "1", this.UseButton.node.on("click", this.OnUseButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityId = t[0], this._consumeId = t[1], this._limitUseTimes = t[2], this._isUseSingle = t[3]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetItemNode(), this.SetCurrentShow()
                }, t.prototype.SetItemNode = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.ItemNode), e.getComponent(f.ItemComponent).Init({
                        ItemId: this._consumeId
                    }), this.ItemName.string = this._consumeId.ToItemName(), this.ItemDesc.string = this._consumeId.ToItemDesc()
                }, t.prototype.SetCurrentShow = function() {
                    if (this.CurrencyBarItem.Init(this._consumeId), this.SliderComponent.node.active = !1, this.LeftTimes.node.active = !1, this._limitUseTimes) {
                        this.LeftTimes.node.active = !0;
                        var e = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId),
                            t = e.IntMap[this._consumeId] ? e.IntMap[this._consumeId] : 0,
                            n = this._limitUseTimes - t;
                        if (this.LeftTimes.string = "activity2048_consuem_leftTimes".ToUILocale() + (n + "/") + this._limitUseTimes, !this._isUseSingle) {
                            var o = u.DataCenter.Instance.GetItemCount(this._consumeId),
                                r = n > o ? o : n;
                            this.SetSlider(r)
                        }
                    } else this._isUseSingle || (r = u.DataCenter.Instance.GetItemCount(this._consumeId), this.SetSlider(r))
                }, t.prototype.SetSlider = function(e) {
                    this.SliderComponent.node.active = !0, this.SliderComponent.SetUI(1, e, 1, !0)
                }, t.prototype.OnSliderDragOver = function(e) {
                    this._sliderValue = e, this.SliderCount.string = e.toString()
                }, t.prototype.OnUseButtonClick = function() {
                    var e = this._sliderValue ? this._sliderValue : 1;
                    l.Game.EventDispatcher.Emit(y.EventKeys.EVENT_2048_USE_CONSUME, this._consumeId, e), l.UIManager.Instance.QuitPanelStack(h.PanelConfig.Activity2048ConsumePanel.Path)
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Node)], t.prototype, "ItemNode", void 0), i([I(cc.Label)], t.prototype, "ItemName", void 0), i([I(cc.Label)], t.prototype, "ItemDesc", void 0), i([I(p.default)], t.prototype, "SliderComponent", void 0), i([I(cc.Label)], t.prototype, "SliderCount", void 0), i([I(d.default)], t.prototype, "CurrencyBarItem", void 0), i([I(cc.Label)], t.prototype, "LeftTimes", void 0), i([I(cc.Button)], t.prototype, "UseButton", void 0), i([I(cc.Label)], t.prototype, "UseButtonLabel", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SliderComponent": "SliderComponent"
    }],
    Activity2048EndPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a450flsj0ZIdrVax7b5DiWl", "Activity2048EndPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.ScoreTip = null, t.RankTip = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._endData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.ScoreTip.string = "activity2048_end_score_tip".ToUILocale().Fmt(this._endData[0]), 1 == this._endData[1] ? this.RankTip.string = "ActivityHeroTestTower_CurrentRank_Title".ToUILocale() + this._endData[1] : this.RankTip.string = "activity2048_end_rank_tip".ToUILocale().Fmt(this._endData[1], this._endData[2]))
                }, i([c(cc.RichText)], t.prototype, "ScoreTip", void 0), i([c(cc.RichText)], t.prototype, "RankTip", void 0), i([l], t)
            }(a.BaseUIPanel);
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    Activity2048Panel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7533dSFTYdAIJ+0ctpktTn/", "Activity2048Panel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/ItemComponent"),
            m = e("../../../Consts/Etc"),
            I = e("../../../Util/TimeUtil"),
            _ = e("../Components/Activity2048CardComponent"),
            C = e("../Components/CustomProgressBar"),
            v = e("../../RedDot/RedDotManager"),
            b = e("./ActivityJumpBtnComponent"),
            S = e("./TimeLimitedActivityPanel"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.LeftTime = null, t.ScoreTip = null, t.OpenTip = null, t.ResetTip = null, t.EnergyLabel = null, t.EnergyCount = null, t.EnergyTime = null, t.ProgressBar = null, t.RewardNode = null, t.ConsumeTag = null, t.ConsumeItemContainer = null, t.GridContainer = null, t.TouchNode = null, t.FigureNode = null, t.GiftButton = null, t.GiftButtonLabel = null, t.RewardButton = null, t.RewardButtonLabel = null, t.RankButton = null, t.RankButtonLabel = null, t.ReturnButton = null, t.ConsumeMaskNode1 = null, t.ConsumeMaskNode2 = null, t.UnTouchNode = null, t.ButtonLayoutNode = null, t.SINGLE_WIDTH = 128, t._cardComponentArray = [], t._consumeItemArray = [], t._consumeConfigMap = {}, t._progressItemArray = [], t._progressTagBgArray = [], t._progressPointArray = [], t._isShowEnergyLeftTime = !1, t._jumpButtonNode = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_2048_USE_CONSUME, this.ConsumeItemCallBack, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_2048_USE_CONSUME, this.ConsumeItemCallBack, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("Activity2048Panel/PNG/Activity2048Atlas", cc.SpriteAtlas), o = this.LoadDynamicAsset("Activity2048Panel/Components/Activity2048CardComponent", cc.Prefab), r = this.LoadDynamicAsset("Activity2048Panel/Spine/UI_Effect_dgxyx_daozi", sp.SkeletonData), i = this.LoadDynamicAsset("Activity2048Panel/Spine/UI_Effect_dgxyx_chanzi", sp.SkeletonData), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._itemPrefab = e[0], a._atlas = e[1], a._cardPrefab = e[2], a._consume1Spine = e[3], a._consume2Spine = e[4]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "activity2048_title".ToUILocale(), this.ResetTip.string = "activity2048_resetTip".ToUILocale(), this.EnergyLabel.string = "activity2048_energy_tag".ToUILocale(), this.ConsumeTag.string = "activity2048_consume_tag".ToUILocale(), this.RankButtonLabel.string = "holyArea_rank".ToUILocale(), this.RewardButtonLabel.string = "rank_rewards".ToUILocale(), this.GiftButtonLabel.string = "activity2048_gift".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.TouchNode.on(cc.Node.EventType.TOUCH_START, this.OnTouchNodeDown, this), this.ConsumeMaskNode1.on(cc.Node.EventType.TOUCH_END, this.OnConsumeMaskNodeClick, this), this.ConsumeMaskNode2.on(cc.Node.EventType.TOUCH_END, this.OnConsumeMaskNodeClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = u.DataCenter.Instance.ActivityConfigs[t[0]], this._activityShowEndTime = h.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common), this._activityEndTime = h.default.Instance.ComputeDeadTime(this._activityConfig.Common), this.SetRewardConfigs()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), t || (this.SetProgressBarAndTip(), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)), this.SetConsumeItem(), this.SetCurrentShow(), this.SetBottomButtonContainer()
                }, t.prototype.OnClickCardUseConsume = function(e, t) {
                    if (this._useConsumeId) {
                        var n = this._consumeConfigMap[this._useConsumeId],
                            o = Math.floor(e / 4),
                            r = Math.floor(e % 4),
                            i = n.Param[0];
                        if (1 == i) this._requestConusmeData = [o, r], this.RequestConsumeItem();
                        else if (3 == i) {
                            if (t >= n.Param[1]) return void y.UIUtlity.ShowFloatingHint("activity2048_maxStage_tip".ToUILocale().Fmt(n.Param[1]));
                            this._requestConusmeData = [o, r], this.RequestConsumeItem()
                        } else 2 == i && (this._requestConusmeData.push(o, r), this._cardComponentArray[e].SetSpine(this._consume2Spine, 2), this._consume2IndexArray.push(e), 4 == this._requestConusmeData.length && this.RequestConsumeItem())
                    }
                }, t.prototype.SetCombineCard = function(e) {
                    var t = Math.floor(e / 4),
                        n = Math.floor(e % 4),
                        o = this._activityModel.Int2DArray[t].Items[n],
                        r = this._combineArray[t][n];
                    this._cardComponentArray[e].SetCombineValue(o, r)
                }, t.prototype.SetRewardConfigs = function() {
                    var e = this;
                    this._rewardConfigs = [], this._rewardStageArray = [], this._activityConfig.__Stage.forEach(function(t) {
                        t.Rewards.length > 0 && (e._rewardConfigs.push(t), e._rewardStageArray.push(t.Id), e._totalRewardProgress = t.Id)
                    })
                }, t.prototype.SetProgressBarAndTip = function() {
                    this.ProgressBar.node.width = this.SINGLE_WIDTH * this._rewardConfigs.length + 100, this.ProgressBar.TotalLength = this.SINGLE_WIDTH * this._rewardConfigs.length, this.ProgressBar.Container.x = this.SINGLE_WIDTH * this._rewardConfigs.length / 2, this.OpenTip.string = "activity2048_open_tip".ToUILocale().Fmt(this._activityConfig.CustomPart.TimeParam[0] + ":00-" + this._activityConfig.CustomPart.TimeParam[1] + ":00")
                }, t.prototype.SetConsumeItem = function() {
                    for (var e = 0; e < this._activityConfig.__Item.length; e++) {
                        var t = this._activityConfig.__Item[e],
                            n = this._consumeItemArray[e];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(this.ConsumeItemContainer), n = o.getComponent(g.ItemComponent), this._consumeItemArray[e] = n, this._consumeConfigMap[t.Id] = t
                        }
                        var r = u.DataCenter.Instance.GetItemCount(t.Id);
                        n.Init({
                            ItemId: t.Id,
                            Count: r
                        }), n.SetCount(r, null, !0)
                    }
                }, t.prototype.SetCurrentShow = function() {
                    this.ScoreTip.string = "activity2048_score_tip".ToUILocale().Fmt(this._activityModel.IntArray[0]);
                    for (var e = this._activityModel.IntArray[3], t = 0, n = 0; n < this._rewardStageArray.length; n++) this._rewardStageArray[n] <= e && (t = n + 1);
                    var o;
                    o = t == this._rewardStageArray.length ? 1 : t > 0 ? (t + (e - this._rewardStageArray[t - 1]) / (this._rewardStageArray[t] - this._rewardStageArray[t - 1])) / this._rewardStageArray.length : e / this._rewardStageArray[0] / this._rewardStageArray.length, this.ProgressBar.progress = o, this.ProgressBar.Bar.getComponent(cc.Widget).updateAlignment(), this.RefreshEnergy(), this.SetProgressReward(), this.RequestGameStart()
                }, t.prototype.RefreshEnergy = function() {
                    var e = I.TimeUtil.GetIndexClockTs(u.RpcComponent.Instance.ServerTime, this._activityConfig.CustomPart.TimeParam[1]),
                        t = u.RpcComponent.Instance.ServerTime > e ? e : u.RpcComponent.Instance.ServerTime,
                        n = Math.floor((t - this._activityModel.IntArray[2]) / m.Etc.SecondDuration / this._activityConfig.CustomPart.EnergyResume),
                        o = this._activityModel.IntArray[1];
                    o ? o >= this._activityConfig.CustomPart.EnergyValue ? this._energyCount = o : o + n >= this._activityConfig.CustomPart.EnergyValue ? this._energyCount = this._activityConfig.CustomPart.EnergyValue : this._energyCount = o + n : this._energyCount = n, this.EnergyCount.string = this._energyCount + "/" + this._activityConfig.CustomPart.EnergyValue, this.RefreshRedDot()
                }, t.prototype.SetProgressReward = function() {
                    for (var e = 0; e < this._rewardConfigs.length; e++) {
                        var t = this._progressItemArray[e];
                        if (!t) {
                            var n = void 0;
                            0 == e ? (n = this.RewardNode).x = this.SINGLE_WIDTH : ((n = cc.instantiate(this.RewardNode)).setParent(this.RewardNode.parent), n.x = this.SINGLE_WIDTH * (e + 1));
                            var o = cc.find("ItemNode", n),
                                r = cc.instantiate(this._itemPrefab);
                            r.parent = o, t = r.getComponent(g.ItemComponent), this._progressItemArray[e] = t;
                            var i = this._rewardConfigs[e].Rewards[0].Items;
                            t.Init({
                                ItemId: i[0],
                                Count: i[1]
                            }), cc.find("TagIcon", n).getComponent(cc.Sprite).spriteFrame = this._atlas.getSpriteFrame(this._rewardConfigs[e].Id.toString()), this._progressTagBgArray[e] = cc.find("TagBg", n), this._progressPointArray[e] = cc.find("Point", n).getComponent(cc.Sprite)
                        }
                        t.SetSelectFlagState(this._activityModel.IntArray[3] >= this._rewardConfigs[e].Id);
                        var a = this._activityModel.IntArray[3] >= this._rewardConfigs[e].Id ? "progressNode_on" : "progressNode_off";
                        this._progressPointArray[e].spriteFrame = y.UIUtlity.COMMON_ATLAS5.getSpriteFrame(a), this._progressTagBgArray[e].active = this._activityModel.IntArray[3] >= this._rewardConfigs[e].Id
                    }
                }, t.prototype.RequestGameStart = function() {
                    var e = this;
                    if (!(this._activityEndTime < u.RpcComponent.Instance.ServerTime))
                        if (this._activityModel.Int2DArray && 0 != this._activityModel.Int2DArray.length) this.SetGrid();
                        else {
                            var t = new c.Req_Activity_Game2048Start;
                            t.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(t, function() {
                                e._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, e._activityConfig._id), e.SetGrid()
                            })
                        }
                }, t.prototype.SetGrid = function() {
                    var e = this;
                    this._combineArray = [
                        [],
                        [],
                        [],
                        []
                    ];
                    var t = 0;
                    if (this._moveType) {
                        if (this._moveType == f.Game2048MoveType.Left || this._moveType == f.Game2048MoveType.Up)
                            for (o = 0; o < this.GridContainer.children.length; o++) {
                                a = Math.floor(o / 4), s = Math.floor(o % 4);
                                var n = this.GetCardMoveData(a, s);
                                this._cardComponentArray[o].SetMoveTween(n)
                            } else if (this._moveType == f.Game2048MoveType.Right || this._moveType == f.Game2048MoveType.Down)
                                for (o = this.GridContainer.children.length - 1; o >= 0; o--) a = Math.floor(o / 4), s = Math.floor(o % 4), n = this.GetCardMoveData(a, s), this._cardComponentArray[o].SetMoveTween(n)
                    } else
                        for (var o = 0; o < this.GridContainer.children.length; o++) {
                            var r = this._cardComponentArray[o];
                            if (!r) {
                                var i = cc.instantiate(this._cardPrefab);
                                i.setParent(this.GridContainer.children[o]), r = i.getComponent(_.default), this._cardComponentArray[o] = r
                            }
                            var a = Math.floor(o / 4),
                                s = Math.floor(o % 4),
                                l = this._activityModel.Int2DArray[a].Items[s];
                            this._cardComponentArray[o].Init(l, o, this._atlas, this), l && t++
                        }
                    this._moveType && (this._moveType = null, this.scheduleOnce(function() {
                        for (var t = 0; t < e.GridContainer.children.length; t++) {
                            var n = Math.floor(t / 4),
                                o = Math.floor(t % 4),
                                r = e._activityModel.Int2DArray[n].Items[o];
                            e._cardComponentArray[t].Init(r, t, e._atlas, e)
                        }
                    }, .2)), !this.IsGameStart() || this._isShowGuid && (2 != t || 1 != this._activityModel.Int2DArray[1].Items[1] || 1 != this._activityModel.Int2DArray[3].Items[1]) ? (this._isShowGuid = !1, cc.Tween.stopAllByTarget(this.FigureNode), this.FigureNode.active = !1) : this._isShowGuid || 2 != t || 1 != this._activityModel.Int2DArray[1].Items[1] || 1 != this._activityModel.Int2DArray[3].Items[1] || (this._isShowGuid = !0, this.SetGuideFigure())
                }, t.prototype.GetCardMoveData = function(e, t) {
                    var n = this._activityConfig.__Stage.length,
                        o = [0, 0];
                    if (this._lastGridData && this._lastGridData[e].Items[t]) switch (this._moveType) {
                        case f.Game2048MoveType.Left:
                            if (t > 0)
                                for (var r = t; r > 0; r--) 0 == this._lastGridData[e].Items[r - 1] ? (o[0]--, this._lastGridData[e].Items[r - 1] = this._lastGridData[e].Items[r], this._lastGridData[e].Items[r] = 0, this._combineArray[e][r] && (this._combineArray[e][r] = 0, this._combineArray[e][r - 1] = 1)) : this._combineArray[e][r - 1] || this._combineArray[e][r] || this._lastGridData[e].Items[r - 1] != this._lastGridData[e].Items[r] || this._lastGridData[e].Items[r] == n || (o[0]--, this._lastGridData[e].Items[r - 1]++, this._lastGridData[e].Items[r] = 0, this._combineArray[e][r - 1] = 1);
                            break;
                        case f.Game2048MoveType.Right:
                            if (t < 3)
                                for (r = t; r < 3; r++) 0 == this._lastGridData[e].Items[r + 1] ? (o[0]++, this._lastGridData[e].Items[r + 1] = this._lastGridData[e].Items[r], this._lastGridData[e].Items[r] = 0, this._combineArray[e][r] && (this._combineArray[e][r] = 0, this._combineArray[e][r + 1] = 1)) : this._combineArray[e][r + 1] || this._combineArray[e][r] || this._lastGridData[e].Items[r + 1] != this._lastGridData[e].Items[r] || this._lastGridData[e].Items[r] == n || (o[0]++, this._lastGridData[e].Items[r + 1]++, this._lastGridData[e].Items[r] = 0, this._combineArray[e][r + 1] = 1);
                            break;
                        case f.Game2048MoveType.Up:
                            if (e > 0)
                                for (r = e; r > 0; r--) 0 == this._lastGridData[r - 1].Items[t] ? (o[1]++, this._lastGridData[r - 1].Items[t] = this._lastGridData[r].Items[t], this._lastGridData[r].Items[t] = 0, this._combineArray[r][t] && (this._combineArray[r][t] = 0, this._combineArray[r - 1][t] = 1)) : this._combineArray[r - 1][t] || this._combineArray[r][t] || this._lastGridData[r - 1].Items[t] != this._lastGridData[r].Items[t] || this._lastGridData[r].Items[t] == n || (o[1]++, this._lastGridData[r - 1].Items[t]++, this._lastGridData[r].Items[t] = 0, this._combineArray[r - 1][t] = 1);
                            break;
                        case f.Game2048MoveType.Down:
                            if (e < 3)
                                for (r = e; r < 3; r++) 0 == this._lastGridData[r + 1].Items[t] ? (o[1]--, this._lastGridData[r + 1].Items[t] = this._lastGridData[r].Items[t], this._lastGridData[r].Items[t] = 0, this._combineArray[r][t] && (this._combineArray[r][t] = 0, this._combineArray[r + 1][t] = 1)) : this._combineArray[r + 1][t] || this._combineArray[r][t] || this._lastGridData[r + 1].Items[t] != this._lastGridData[r].Items[t] || this._lastGridData[r].Items[t] == n || (o[1]--, this._lastGridData[r + 1].Items[t]++, this._lastGridData[r].Items[t] = 0, this._combineArray[r + 1][t] = 1)
                    }
                    return o
                }, t.prototype.SetDeadLine = function() {
                    var e = this._activityEndTime - u.RpcComponent.Instance.ServerTime;
                    if (e < 0) {
                        var t = this._activityShowEndTime - u.RpcComponent.Instance.ServerTime;
                        return t < 0 && l.UIManager.Instance.BackUIPanel(), void(this.LeftTime.string = "activity_show_end_time".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(t)))
                    }
                    if (this.LeftTime.string = "Activity_LuckyBag_LeftTime".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e)), this._energyCount < this._activityConfig.CustomPart.EnergyValue) {
                        this._isShowEnergyLeftTime || (this.EnergyTime.node.parent.active = !0), this._isShowEnergyLeftTime = !0;
                        var n = this._activityConfig.CustomPart.EnergyResume - Math.floor((u.RpcComponent.Instance.ServerTime - this._activityModel.IntArray[2]) / m.Etc.SecondDuration % this._activityConfig.CustomPart.EnergyResume);
                        n == this._activityConfig.CustomPart.EnergyResume && (this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this.RefreshEnergy()), this.EnergyTime.string = h.default.ActivityTimeLeftFormat(n * m.Etc.SecondDuration)
                    } else this._isShowEnergyLeftTime && (this._isShowEnergyLeftTime = !1, this.EnergyTime.node.parent.active = !1)
                }, t.prototype.OnTouchNodeDown = function(e) {
                    this.TouchNode.on(cc.Node.EventType.TOUCH_END, this.OnTouchNodeUp, this), this.TouchNode.on(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchNodeUp, this), this._touchStartPos = e.getLocation()
                }, t.prototype.OnTouchNodeUp = function(e) {
                    this.TouchNode.off(cc.Node.EventType.TOUCH_END, this.OnTouchNodeUp, this), this.TouchNode.off(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchNodeUp, this);
                    var t, n = e.getLocation(),
                        o = n.x - this._touchStartPos.x,
                        r = n.y - this._touchStartPos.y;
                    Math.sqrt(Math.abs(o) * Math.abs(o) + Math.abs(r) * Math.abs(r)) < 20 || (t = Math.abs(o) > Math.abs(r) ? o > 0 ? f.Game2048MoveType.Right : f.Game2048MoveType.Left : r > 0 ? f.Game2048MoveType.Up : f.Game2048MoveType.Down, this.RequestMove(t))
                }, t.prototype.RequestMove = function(e) {
                    var t = this;
                    if (this._activityEndTime - u.RpcComponent.Instance.ServerTime < 0) y.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else if (this.IsGameStart()) {
                        if (!this._useConsumeId)
                            if (this._energyCount <= 0) y.UIUtlity.ShowFloatingHint("activity2048_energy_not_enough".ToUILocale());
                            else if (this._activityModel.IntArray[4]) this.ShowReplayHint();
                        else {
                            var n = new c.Req_Activity_Game2048Move;
                            n.ActivityId = this._activityConfig._id, n.MoveType = e, u.RpcComponent.Instance.Call(n, function(n) {
                                n.Rewards && n.Rewards.length > 0 && y.UIUtlity.ShwDisplayRewardPanel(n.Rewards), t._lastGridData = t._activityModel.Int2DArray, t._moveType = e, t._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, t._activityConfig._id), t.SetCurrentShow(), t._activityModel.IntArray[4] && t.ShowReplayHint()
                            })
                        }
                    } else y.UIUtlity.ShowFloatingHint("activity2048_unopen_tip".ToUILocale())
                }, t.prototype.IsGameStart = function() {
                    var e = I.TimeUtil.GetIndexClockTs(u.RpcComponent.Instance.ServerTime, this._activityConfig.CustomPart.TimeParam[0]),
                        t = I.TimeUtil.GetIndexClockTs(u.RpcComponent.Instance.ServerTime, this._activityConfig.CustomPart.TimeParam[1]);
                    return !(u.RpcComponent.Instance.ServerTime < e || u.RpcComponent.Instance.ServerTime > t)
                }, t.prototype.ShowReplayHint = function() {
                    var e = this;
                    y.UIUtlity.ShowHintPanel(null, "activity2048_replay_tip".ToUILocale(), "FantasticPasture_useItem".ToUILocale(), null, "activity2048_replay".ToUILocale(), function() {
                        var t = new c.Req_Activity_Game2048Start;
                        t.ActivityId = e._activityConfig._id, u.RpcComponent.Instance.Call(t, function(t) {
                            var n = e._activityModel.IntArray[0];
                            e._lastGridData = null, e._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, e._activityConfig._id), e.SetGrid(), l.UIManager.Instance.ShowUIPanel(p.PanelConfig.Activity2048EndPanel.Path, [n, t.MyRank, t.LastRankValue])
                        })
                    })
                }, t.prototype.ConsumeItemCallBack = function(e, t) {
                    var n = this;
                    if (this._activityEndTime - u.RpcComponent.Instance.ServerTime < 0) y.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else {
                        var o = u.DataCenter.Instance.GetItemCount(e);
                        if (o <= 0 || t > o) y.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.ToItemName()));
                        else {
                            var r = this._consumeConfigMap[e],
                                i = this._activityModel.IntMap[e] ? this._activityModel.IntMap[e] : 0;
                            r.CountLimit - i <= 0 ? y.UIUtlity.ShowFloatingHint("activity2048_playTimes_not_enough".ToUILocale()) : (this._useConsumeId = e, 5 == r.Param[0] ? (this._requestConusmeData = [t], this._energyCount + r.Param[1] * t > this._activityConfig.CustomPart.EnergyValue ? y.UIUtlity.ShowHintPanel(null, "activity2048_energy_out_tip".ToUILocale(), "", null, "", function() {
                                n.RequestConsumeItem()
                            }) : this.RequestConsumeItem()) : 4 == r.Param[0] ? (this._requestConusmeData = [], this.RequestConsumeItem()) : (this._requestConusmeData = [], this._consume2IndexArray = [], this.TouchNode.active = !1, this.ConsumeMaskNode1.active = !0, this.ConsumeMaskNode2.active = !0))
                        }
                    }
                }, t.prototype.RequestConsumeItem = function() {
                    var e = this,
                        t = new c.Req_Activity_Game2048UseItem;
                    t.ActivityId = this._activityConfig._id, t.ItemId = this._useConsumeId, t.Param = this._requestConusmeData, u.RpcComponent.Instance.Call(t, function(t) {
                        if (1 == e._consumeConfigMap[e._useConsumeId].Param[0]) {
                            e.UnTouchNode.active = !0;
                            var n = 4 * e._requestConusmeData[0] + e._requestConusmeData[1];
                            e._cardComponentArray[n].SetSpine(e._consume1Spine, 1)
                        } else e.ConsumeCallBack(t)
                    })
                }, t.prototype.ConsumeCallBack = function(e) {
                    e && e.Rewards && e.Rewards.length > 0 && y.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this.UnTouchNode.active = !1, this._lastGridData = null, this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this.SetCurrentShow(), this.SetConsumeItem(), this.OnConsumeMaskNodeClick()
                }, t.prototype.SetGuideFigure = function() {
                    cc.Tween.stopAllByTarget(this.FigureNode), this.FigureNode.active = !0, cc.tween(this.FigureNode).repeatForever(cc.tween(this.FigureNode).to(0, {
                        opacity: 255,
                        y: 100
                    }).delay(.5).to(1, {
                        y: -400
                    }).delay(.5).to(0, {
                        opacity: 0
                    }).start()).start()
                }, t.prototype.RefreshRedDot = function() {
                    v.RedDotManager.Instance.BindInstance(this.EnergyCount.node.parent, v.RedDotManager.Instance.InstanceRedDot.Activity2048EnergyNode, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.SetBottomButtonContainer = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this._buttonPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)]);
                                case 1:
                                    if (e._buttonPrefab = a.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._buttonPrefab), [2];
                                    a.label = 2;
                                case 2:
                                    for (t = 0; t < this._activityConfig.Common.JumpIds.length; t++) n = this._activityConfig.Common.JumpIds[t], (o = u.DataCenter.Instance.ActivityNameMap[n]) && (u.RpcComponent.Instance.ServerTime > h.default.Instance.ComputeDeadTime(o.Common) || ((r = this._jumpButtonNode[t]) || ((r = cc.instantiate(this._buttonPrefab)).setParent(this.ButtonLayoutNode), this._jumpButtonNode[t] = r, r.getComponent(b.default).Init(n, this._activityConfig.Common.JumpIcons[t]), cc.find("Background/Label", r).y = -62), (i = S.ActivityData.GetTopicActivityTypeToRedDot(o.Common.Type)) && v.RedDotManager.Instance.BindInstance(r, i, {
                                        Value1: Number(o._id)
                                    })));
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "activity2048_rule_name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["activity2048_rule_content".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnGiftButtonClick = function() {
                    if (this._activityEndTime - u.RpcComponent.Instance.ServerTime < 0) y.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else {
                        var e = this._activityConfig.Common.Pictures,
                            t = {
                                ActivityId: this._activityConfig._id,
                                ActivityGiftPackData: this._activityConfig._Packs,
                                Deadline: this._activityEndTime,
                                BannerPath: e[0],
                                Title: "activity2048_gift".ToUILocale()
                            };
                        l.UIManager.Instance.ShowUIPanel(p.PanelConfig.CommonGiftPackPanel.Path, t)
                    }
                }, t.prototype.OnRankButtonClick = function() {
                    var e = new c.Req_Activity_GetRank;
                    e.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(e, this.RequestRankSuccess.bind(this))
                }, t.prototype.RequestRankSuccess = function(e) {
                    var t = {};
                    t.ActivityId = this._activityConfig._id, t.Title = "bossWar_rank_name".ToUILocale().Fmt(this._activityConfig.Common.Title), t.RankDatas = [e], l.UIManager.Instance.ShowUIPanel(p.PanelConfig.CommonActivityRankPanel.Path, t)
                }, t.prototype.OnRewardButtonClick = function() {
                    var e = {},
                        t = [];
                    this._activityConfig._RankRewards.forEach(function(e) {
                        var n = {};
                        n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                    }), e.Data = t, e.IsNotShowMyRank = !0, l.UIManager.Instance.ShowUIPanel(p.PanelConfig.CommonRankRewardPanel.Path, e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    if (t.parent.parent.parent == this.RewardNode.parent) y.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t);
                    else if (t.parent == this.ConsumeItemContainer) {
                        if (!this.IsGameStart()) return void y.UIUtlity.ShowFloatingHint("activity2048_unopen_tip".ToUILocale());
                        var n = t.getComponent(g.ItemComponent).ItemId,
                            o = this._consumeConfigMap[n];
                        l.UIManager.Instance.ShowUIPanel(p.PanelConfig.Activity2048ConsumePanel.Path, this._activityConfig._id, n, o.CountLimit, 5 != o.Param[0])
                    }
                }, t.prototype.OnConsumeMaskNodeClick = function() {
                    var e = this;
                    this._useConsumeId = null, this.TouchNode.active = !0, this.ConsumeMaskNode1.active = !1, this.ConsumeMaskNode2.active = !1, this._consume2IndexArray.length > 0 && this._consume2IndexArray.forEach(function(t) {
                        e._cardComponentArray[t].SetSpine(null, null)
                    })
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), cc.Tween.stopAllByTarget(this.FigureNode)
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.RichText)], t.prototype, "LeftTime", void 0), i([A(cc.RichText)], t.prototype, "ScoreTip", void 0), i([A(cc.Label)], t.prototype, "OpenTip", void 0), i([A(cc.Label)], t.prototype, "ResetTip", void 0), i([A(cc.Label)], t.prototype, "EnergyLabel", void 0), i([A(cc.Label)], t.prototype, "EnergyCount", void 0), i([A(cc.Label)], t.prototype, "EnergyTime", void 0), i([A(C.default)], t.prototype, "ProgressBar", void 0), i([A(cc.Node)], t.prototype, "RewardNode", void 0), i([A(cc.Label)], t.prototype, "ConsumeTag", void 0), i([A(cc.Node)], t.prototype, "ConsumeItemContainer", void 0), i([A(cc.Node)], t.prototype, "GridContainer", void 0), i([A(cc.Node)], t.prototype, "TouchNode", void 0), i([A(cc.Node)], t.prototype, "FigureNode", void 0), i([A(cc.Button)], t.prototype, "GiftButton", void 0), i([A(cc.Label)], t.prototype, "GiftButtonLabel", void 0), i([A(cc.Button)], t.prototype, "RewardButton", void 0), i([A(cc.Label)], t.prototype, "RewardButtonLabel", void 0), i([A(cc.Button)], t.prototype, "RankButton", void 0), i([A(cc.Label)], t.prototype, "RankButtonLabel", void 0), i([A(cc.Button)], t.prototype, "ReturnButton", void 0), i([A(cc.Node)], t.prototype, "ConsumeMaskNode1", void 0), i([A(cc.Node)], t.prototype, "ConsumeMaskNode2", void 0), i([A(cc.Node)], t.prototype, "UnTouchNode", void 0), i([A(cc.Node)], t.prototype, "ButtonLayoutNode", void 0), i([P], t)
            }(l.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/Activity2048CardComponent": "Activity2048CardComponent",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    ActivityBaseComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bb23eYr4ZhKz7WAzQ1nAdcY", "ActivityBaseComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Reddot = null, t
                }
                return r(t, e), t.prototype.SetRedDot = function(e) {
                    void 0 === e && (e = !1), this.Reddot.active = e
                }, i([l(cc.Node)], t.prototype, "Reddot", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    ActivityBaseContent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "14208yxCPBIyrGeuLL2FXDS", "ActivityBaseContent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, e("../../../EZFramework/EZFramework")),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../Components/Components"),
            f = e("../../../Consts/Consts"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./TimeLimitedActivityPanel"),
            m = e("./ActivityBaseComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("./ElementTrialPanel"),
            C = e("../Battle/BattleManager"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = e("./ActivityRunningTrainPanel"),
            S = e("./RechargeFeedbackPanel"),
            w = e("./WelfareFramePanel"),
            P = e("../Auxiliary/UIUtlity"),
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._activityIdToNode = {}, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.GameEventIds.ChangeDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelDataChange, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_ACTIVITY_REFRESHREDDOT, this.RefreshReddots, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.GameEventIds.ChangeDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelDataChange, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ACTIVITY_REFRESHREDDOT, this.RefreshReddots, this)
                }, t.prototype.Init = function(e, t, n) {
                    var o = this;
                    void 0 === t && (t = !1), void 0 === n && (n = !1), this._frameConfig = e, this._activityDatas = [], this._noRepeatData = [];
                    var r = d.DataCenter.Instance.ActivityFrameMap[this._frameConfig._id],
                        i = [];
                    r.forEach(function(e) {
                        var t = h.DataCenter.Instance.ActivityConfigs[e];
                        i.push(t)
                    }), i.sort(function(e, t) {
                        return e.Common.SortId - t.Common.SortId
                    });
                    var a = [],
                        s = [];
                    i.forEach(function(e) {
                        e.Common.Type == f.ActivityType.ElementTest ? -1 == a.findIndex(function(t) {
                            return t.StartTime == e.Common.StartTime && t.FrameId == e.Common.FrameId
                        }) && (a.push(e.Common), s.push(e), o._noRepeatData.push(e)) : (s.push(e), o._noRepeatData.push(e))
                    });
                    for (var l = 0; l < s.length; l++)
                        if (!(s[l].Common.IsZoneOpen && (s[l].Common.RequireOpenDays - 1) * f.Etc.DayDuration + y.default.Instance.GetOpenZeroTime() > d.RpcComponent.Instance.ServerTime)) {
                            var u = y.default.Instance.ComputeExtraShowDeadTime(s[l].Common);
                            if ((!(d.RpcComponent.Instance.ServerTime > u) || t) && (!s[l].Common.GameModule || y.default.Instance.IsGameModuleUnlock(s[l].Common.GameModule)[0] || n)) {
                                var p = d.DataCenter.Instance.GetIntData(c.UserDataKey.TotalPay);
                                s[l].Common.TotalPay && p < s[l].Common.TotalPay || 0 != s[l].Common.BannerType && this._activityDatas.push(s[l])
                            }
                        }
                }, t.prototype.BindRedDot = function(e, t, n) {
                    var o = g.ActivityData.GetTopicActivityTypeToRedDot(e),
                        r = this._activityIdToNode[t];
                    null != r && null != o && (n ? r.getComponent(m.default).SetRedDot(o.callBackFunc({
                        Value1: n
                    })) : r.getComponent(m.default).SetRedDot(o.callBackFunc({
                        Value1: t
                    })))
                }, t.prototype.OnModelDataChange = function(e) {
                    for (var t in e) {
                        var n = Number.parseInt(t),
                            o = h.DataCenter.Instance.ActivityConfigs[n];
                        if (o) {
                            var r = o.Common.Type,
                                i = g.ActivityData.GetTopicActivityTypeToRedDot(r);
                            i && this._activityIdToNode[n] && this._activityIdToNode[n].getComponent(m.default).SetRedDot(i.callBackFunc({
                                Value1: n
                            }))
                        }
                    }
                }, t.prototype.RefreshReddots = function() {
                    var e = this;
                    this._activityDatas.forEach(function(t) {
                        var n = g.ActivityData.GetTopicActivityTypeToRedDot(t.Common.Type);
                        n && e._activityIdToNode[t._id] && e._activityIdToNode[t._id].isValid && e._activityIdToNode[t._id].getComponent(m.default).SetRedDot(n.callBackFunc({
                            Value1: t._id
                        }))
                    })
                }, t.prototype.OnModuleTouch = function(e) {
                    var t = Number.parseInt(e.currentTarget.name);
                    t && n.OpenActivityPanel(t)
                }, t.OpenActivityPanel = function(e, t) {
                    var o = h.DataCenter.Instance.ActivityConfigs[e];
                    if (!o) return P.UIUtlity.ShowFloatingHint("Answer_Unopen".ToUILocale());
                    var r = o.Common.Type;
                    switch (r) {
                        case f.ActivityType.AllUserImpactRank:
                            var i = new u.Req_Activity_AllUserImpactRankEnter;
                            i.ActivityId = e, d.RpcComponent.Instance.Call(i, function(t) {
                                l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e, t)
                            }.bind(this));
                            break;
                        case c.ActivityType.AllianceMaze:
                            var a = y.default.Instance.IsGameModuleUnlock(c.GameModuleType.Alliance);
                            if (!a[0]) return P.UIUtlity.ShowFloatingHint(a[1]);
                            h.DataCenter.Instance.AllianceId <= 0 ? l.UIManager.Instance.ShowUIPanel(v.PanelConfig.AllianceListPanel.Path, !1) : l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e);
                            break;
                        case c.ActivityType.AllianceTrader:
                            var s = y.default.Instance.IsGameModuleUnlock(c.GameModuleType.Alliance);
                            if (!s[0]) return P.UIUtlity.ShowFloatingHint(s[1]);
                            h.DataCenter.Instance.AllianceId <= 0 ? l.UIManager.Instance.ShowUIPanel(v.PanelConfig.AllianceListPanel.Path, !1) : l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e);
                            break;
                        case f.ActivityType.ElementTest:
                            if (_.default._CurrentActivityConfig && _.default._CurrentActivityConfig._id && g.default.CheckActivityBattleBack(e, _.default._CurrentActivityConfig._id) && C.BattleManager.Instance.ResumePlayBattle(c.MapType.ActivityElementHeart)) return;
                            var m = new u.Req_Activity_GetRank;
                            m.ActivityId = e, d.RpcComponent.Instance.Call(m, function(t) {
                                l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e, t, 0)
                            }.bind(this));
                            break;
                        case f.ActivityType.HeroDungeon:
                            var I = h.DataCenter.Instance.ActivityConfigs[e],
                                A = I.Maps.length > 0 ? I.Maps[0].MapId : 0;
                            if (A) {
                                var T = d.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, A);
                                if (T && C.BattleManager.Instance.ResumePlayBattle(T.Type)) return
                            }
                            var R = new u.Req_Activity_GetRank;
                            R.ActivityId = h.DataCenter.Instance.ActivityConfigs[e]._id, d.RpcComponent.Instance.Call(R, function(t) {
                                l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e, t)
                            }.bind(this));
                            break;
                        case f.ActivityType.HeroTestTower:
                            var L = new u.Req_Activity_HeroTestTowerEnter;
                            L.ActivityId = h.DataCenter.Instance.ActivityConfigs[e]._id, d.RpcComponent.Instance.Call(L, function(t) {
                                l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e, t)
                            }.bind(this));
                            break;
                        case f.ActivityType.TaskTalent:
                            l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e, 1);
                            break;
                        case f.ActivityType.GemForgeSummon:
                            l.UIManager.Instance.ShowUIPanel(v.PanelConfig.HolyFurnacePanel.Path, 1);
                            break;
                        case f.ActivityType.SecretArea:
                            l.UIManager.Instance.ShowUIPanel(v.PanelConfig.SecretJourneyEntrance.Path, e);
                            break;
                        case f.ActivityType.WarToken:
                        case f.ActivityType.ActiveWarToken:
                            l.UIManager.Instance.ShowUIPanel(v.PanelConfig.WarTokenListPanel.Path, !0, e);
                            break;
                        case f.ActivityType.WishSummon:
                        case f.ActivityType.NewHeroSummon:
                        case f.ActivityType.PersonalitySummon:
                        case f.ActivityType.DiamondSummon:
                        case f.ActivityType.CommonSummon:
                        case f.ActivityType.WishPersonality:
                            l.UIManager.Instance.ShowUIPanel(v.PanelConfig.SummonActivityListPanel.Path, h.DataCenter.Instance.ActivityConfigs[e].Common.GetWayId);
                            break;
                        case f.ActivityType.ActivityBoss:
                            var k = h.DataCenter.Instance.ActivityConfigs[e].CustomPart.MapId;
                            if (k) {
                                var O = d.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, k);
                                if (O && C.BattleManager.Instance.ResumePlayBattle(O.Type)) return
                            }
                            var M = new u.Req_Activity_CommonEnter;
                            M.ActivityId = e, d.RpcComponent.Instance.Call(M, function(t) {
                                l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ActivityBossPanel.Path, e, t)
                            });
                            break;
                        case f.ActivityType.SupportHero:
                            var D = new u.Req_Activity_RefreshSupportInfo;
                            D.ActivityId = e, d.RpcComponent.Instance.Call(D, function(t) {
                                l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e, t)
                            });
                            break;
                        case f.ActivityType.Carnival:
                            var B = h.DataCenter.Instance.ActivityConfigs[e];
                            B && B.CustomPart && null != B.CustomPart.ActivityType && 0 != B.CustomPart.ActivityType ? l.UIManager.Instance.ShowUIPanel(v.PanelConfig.SevenDayCelebrationPanel.Path, e) : l.UIManager.Instance.ShowUIPanel(v.PanelConfig.CarnivalPanel.Path, e);
                            break;
                        case f.ActivityType.HeroStarUp:
                            var N = h.DataCenter.Instance.ActivityConfigs[e];
                            N && !N.CustomPart.Type ? l.UIManager.Instance.ShowUIPanel(v.PanelConfig.HerosRisingStarGiftPanel.Path, e) : l.UIManager.Instance.ShowUIPanel(v.PanelConfig.HerosRisingStarGiftNewPanel.Path, e);
                            break;
                        case f.ActivityType.LuckyPack:
                            l.UIManager.Instance.ShowUIPanel(v.PanelConfig.LuckyGiftPanel.Path, e);
                            break;
                        case f.ActivityType.ElementArena:
                            var E = d.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, 15);
                            if (E && C.BattleManager.Instance.ResumePlayBattle(E.Type)) return;
                            l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e);
                            break;
                        case f.ActivityType.SecondKill:
                            var U = new u.Req_Activity_SecondKillEnter;
                            U.ActivityId = e, d.RpcComponent.Instance.Call(U, function(t) {
                                var n = t.Map ? t.Map : {};
                                l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), e, n)
                            });
                            break;
                        case f.ActivityType.RunningTrain:
                            var G, x, H = h.DataCenter.Instance.ActivityConfigs[e],
                                F = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, e);
                            if (H.CustomPart.BeforeEnterFragmentId) {
                                G = F.StoryProgress[H.CustomPart.BeforeEnterFragmentId] ? F.StoryProgress[H.CustomPart.BeforeEnterFragmentId] : 0;
                                for (var j = 0; j < H.__StoryFragment.length; j++)
                                    if (H.__StoryFragment[j].Id == H.CustomPart.BeforeEnterFragmentId) {
                                        x = H.__StoryFragment[j].ContentIds[0].Items.length;
                                        break
                                    }
                            }
                            var W = y.default.Instance.ComputeDeadTime(H.Common) - d.RpcComponent.Instance.ServerTime;
                            if (F.IntArray.length > 0 && F.IntArray[b.RunningTrainDataIndex.HeroId] && W > 0) {
                                var z = new u.Req_Activity_RunningTrainGetMeters;
                                z.ActivityId = e, d.RpcComponent.Instance.Call(z, function() {
                                    H.CustomPart.BeforeEnterFragmentId && G < x && l.UIManager.Instance.ShowUIPanelByQueue(v.PanelConfig.StoryPlayPanel.Path, H._id, H.CustomPart.BeforeEnterFragmentId), l.UIManager.Instance.ShowUIPanelByQueue(g.ActivityData.GetActivityTypeToPath(r), e)
                                })
                            } else H.CustomPart.BeforeEnterFragmentId && G < x && l.UIManager.Instance.ShowUIPanelByQueue(v.PanelConfig.StoryPlayPanel.Path, H._id, H.CustomPart.BeforeEnterFragmentId), l.UIManager.Instance.ShowUIPanelByQueue(g.ActivityData.GetActivityTypeToPath(r), e);
                            break;
                        case f.ActivityType.HeroPK:
                            var q = new u.Req_Activity_HeroPKEnter;
                            q.ActivityId = e, d.RpcComponent.Instance.Call(q, function() {
                                l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ActivityHeroPKPanel.Path, e)
                            });
                            break;
                        case f.ActivityType.Champion:
                            var V = d.DataCenter.Instance.ActivityConfigs[e],
                                Z = d.RpcComponent.Instance.ServerTime,
                                K = y.default.Instance.ComputeActivitStartTime(V.Common),
                                J = K + (V.__Rounds[0].Apply - 1) * f.Etc.DayDuration + 2 * f.Etc.HourDuration < Z ? 1 : 0;
                            for (j = 0; j < V.__Rounds.length; j++) {
                                var X = K + (V.__Rounds[j].Apply - 1) * f.Etc.DayDuration + 2 * f.Etc.HourDuration,
                                    Q = K + (V.__Rounds[j].Knockout[0] - 1) * f.Etc.DayDuration + V.__Rounds[j].Knockout[1] * f.Etc.HourDuration + 6 * V.CustomPart.Time * f.Etc.SecondDuration;
                                if (X < Z && Z < Q) {
                                    J = V.__Rounds[j].Id;
                                    break
                                }
                            }
                            if (J) {
                                var Y = new u.Req_Activity_ChampionGetRank;
                                Y.ActivityId = e, Y.Round = J, Y.Count = 3, d.RpcComponent.Instance.Call(Y, function(t) {
                                    l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ActivityChampionPanel.Path, e, J, t)
                                })
                            } else l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ActivityChampionPanel.Path, e, 1);
                            break;
                        case f.ActivityType.KnockWatermelon:
                            var $ = new u.Req_Activity_KnockWatermelonAct;
                            $.ActivityId = e, $.Type = 1, d.RpcComponent.Instance.Call($, function(t) {
                                t && t.Rewards && t.Rewards.length > 0 ? (l.UIManager.Instance.ShowUIPanelByQueue(v.PanelConfig.ActivityBeatWatermelonResultPanel.Path, t.Rewards, [t.Result[2], t.Result[1], t.Result[0]]), l.UIManager.Instance.ShowUIPanelByQueue(v.PanelConfig.ActivityBeatWatermelonPanel.Path, e)) : l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ActivityBeatWatermelonPanel.Path, e)
                            });
                            break;
                        case f.ActivityType.BossHunt:
                            var ee = new u.Req_Activity_BossHuntInfo;
                            ee.ActivityId = e, d.RpcComponent.Instance.Call(ee, function(t) {
                                l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ActivityBossBattlePanel.Path, e, t)
                            });
                            break;
                        case f.ActivityType.SuperGift:
                            l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r), w.Mode.SuperPack);
                            break;
                        case f.ActivityType.RechargeFeedback:
                            if (S.default.CheckNeedRequest(e)) {
                                var te = new u.Req_Activity_RechargeFeedbackRefreshItem;
                                te.ActivityId = e, d.RpcComponent.Instance.Call(te, function() {
                                    l.UIManager.Instance.ShowUIPanel(v.PanelConfig.RechargeFeedbackPanel.Path, e)
                                })
                            } else l.UIManager.Instance.ShowUIPanel(v.PanelConfig.RechargeFeedbackPanel.Path, e);
                            break;
                        case f.ActivityType.CircusMaze:
                            var ne = new u.Req_Activity_CircusMazeEnter;
                            ne.ActivityId = e, d.RpcComponent.Instance.Call(ne, function(t) {
                                l.UIManager.Instance.ShowUIPanel(v.PanelConfig.CircusMazePanel.Path, e, t.Power)
                            });
                            break;
                        case f.ActivityType.Championship:
                            y.default.Instance.DisplayGlobalChampionPanel(e);
                            break;
                        case f.ActivityType.Breakou:
                            if (C.BattleManager.Instance.IsInBattle(c.MapType.ActBreakou)) return void C.BattleManager.Instance.ResumePlayBattle(c.MapType.ActBreakou);
                            var oe = new u.Req_Activity_BreakouFloors;
                            oe.ActivityId = e, d.RpcComponent.Instance.Call(oe, function(t) {
                                l.UIManager.Instance.ShowUIPanel(v.PanelConfig.BreakOutMatchPanel.Path, e, t)
                            });
                            break;
                        case f.ActivityType.ChaosSummon:
                            l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ChaosSummonPanel.Path, 0, e);
                            break;
                        case f.ActivityType.ExchangeShop:
                            if (h.DataCenter.Instance.ActivityConfigs[e].CustomPart.Type) l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ActivityExchangeShopTipPanel.Path, e);
                            else if (t) {
                                var re = {};
                                re.ToggleId = Number(t), l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ActivityExchangeShopPanel.Path, e, null, null, null, re)
                            } else l.UIManager.Instance.ShowUIPanel(v.PanelConfig.ActivityExchangeShopPanel.Path, e);
                            break;
                        case f.ActivityType.NewPersonality:
                            var ie = new u.Req_Activity_CommonEnter;
                            ie.ActivityId = e, d.RpcComponent.Instance.Call(ie, function() {
                                l.UIManager.Instance.ShowUIPanel(v.PanelConfig.NewPersonalitySummonPanel.Path, e)
                            });
                            break;
                        case f.ActivityType.EightDays:
                            l.UIManager.Instance.ShowUIPanel(v.PanelConfig.EightDaysPanel.Path, e);
                            break;
                        case f.ActivityType.StarryPrayer:
                            l.UIManager.Instance.ShowUIPanel(v.PanelConfig.StarPrayPanel.Path, e);
                            break;
                        default:
                            l.EZLog.Log("\u70b9\u51fb\u7684\u6d3b\u52a8id = ", e, "\uff0c\u7c7b\u578b = ", r);
                            var ae = h.DataCenter.Instance.ActivityConfigs[e];
                            if (!ae.Common.IsSummon || ae.Common.IsSummon < 2)
                                if (ae.Common.Type == f.ActivityType.SkipInlet) {
                                    var se = d.ConfigDataComponent.Instance.GetConfigById(p.ItemGetWay_Config, ae.Common.JumpId),
                                        le = y.default.Instance.CheckItemGetWayCanShow(se);
                                    if (!le[0]) return void P.UIUtlity.ShowFloatingHint(le[1]);
                                    if (se.PanelInfo && se.PanelInfo[0] > 0) switch (se.PanelInfo[0]) {
                                        case v.PanelConfig.ChaosSummonPanel.Id:
                                            l.UIManager.Instance.ShowUIPanel(P.UIUtlity.PanelMap[se.PanelInfo[0]].Path, se.PanelInfo[1], se.PanelInfo[2], se.PanelInfo[3]);
                                            break;
                                        case v.PanelConfig.HeroDungeonPanel.Id:
                                        case v.PanelConfig.CampSupportPanel.Id:
                                        case v.PanelConfig.AllUserPuzzlePanel.Id:
                                        case v.PanelConfig.CrazyWheelPanel.Id:
                                        case v.PanelConfig.ActivityHeroTestTowerEntryPanel.Id:
                                            var ce = g.ActivityData.GetActivityTypeByPanelId(se.PanelInfo[0]);
                                            if (ce) {
                                                var ue = y.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(ce, se.PanelInfo[1]);
                                                n.OpenActivityPanel(ue)
                                            }
                                            return;
                                        default:
                                            l.UIManager.Instance.ShowUIPanel(P.UIUtlity.PanelMap[se.PanelInfo[0]].Path, se.PanelInfo[1])
                                    }
                                } else l.UIManager.Instance.ShowUIPanel(g.ActivityData.GetActivityTypeToPath(r, e), e);
                            else g.default.JumpToSummonActivityListPanel(ae)
                    }
                }, n = i([s], t)
            }(cc.Component);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./ActivityBaseComponent": "ActivityBaseComponent",
        "./ActivityRunningTrainPanel": "ActivityRunningTrainPanel",
        "./ElementTrialPanel": "ElementTrialPanel",
        "./RechargeFeedbackPanel": "RechargeFeedbackPanel",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel",
        "./WelfareFramePanel": "WelfareFramePanel"
    }],
    ActivityBeatWatermelonPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9ae87adeTlMl4TK/bUEqXFN", "ActivityBeatWatermelonPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("./CommonRatePanel"),
            I = e("../../RedDot/RedDotManager"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property;
        (function(e) {
            e[e.Common = 1] = "Common", e[e.Outstanding = 2] = "Outstanding", e[e.Perfect = 3] = "Perfect"
        })(l || (l = {}));
        var b = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.LeftTimeRichText = null, t.StartCountDownNode = null, t.StartCountDownIcon = null, t.RuleButton = null, t.GiftButton = null, t.GiftButtonLabel = null, t.RewardPreviewButton = null, t.RewardPreviewLabel = null, t.AvatarSpine = null, t.WatermelonIcon = null, t.BeatSpine = null, t.ScoreNode = null, t.ScoreSpine = null, t.ScoreIcon = null, t.PerfectCount = null, t.BottomLineNode = null, t.OrangeLineNode = null, t.YellowLineNode = null, t.RulerNode = null, t.BeatLightNode = null, t.BeatButton = null, t.BeatButtonLabel = null, t.ItemNode = null, t.ItemIcon = null, t.ItemCount = null, t.TipNode = null, t.TipLabel = null, t.WarTokenButton = null, t.warTokenLabel = null, t.ReturnButton = null, t.UnTouchMask = null, t._beatTimes = 0, t._perfectCount = 0, t._outstandingCount = 0, t._commonCount = 0, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityBeatWatermelonPanel/PNG/BeatWatermelonAtlas", cc.SpriteAtlas), n = this.LoadDynamicAsset(d.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/common"), cc.SpriteFrame), o = this.LoadDynamicAsset(d.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/outstanding"), cc.SpriteFrame), r = this.LoadDynamicAsset(d.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/perfect"), cc.SpriteFrame), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._atlas = e[0], i._commonIcon = e[1], i._outstandingIcon = e[2], i._perfectIcon = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "ActivityBeatWatermelon_Title".ToUILocale(), this.GiftButtonLabel.string = "ActivityBeatWatermelon_Gift".ToUILocale(), this.RewardPreviewLabel.string = "rewards_preview".ToUILocale(), this.warTokenLabel.string = "ActivityBeatWatermelon_WarToken".ToUILocale(), this.BeatButtonLabel.string = "ActivityBeatWatermelon_Start".ToUILocale(), this.BeatButton.node.on("click", this.OnBeatButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.RewardPreviewButton.node.on("click", this.OnRewardPreviewButtonClick, this), this.WarTokenButton.node.on("click", this.OnWarTokenButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._activityConfig = d.DataCenter.Instance.ActivityConfigs[t[0]], this._rulerStartPos = new cc.Vec3(-this.BottomLineNode.width / 2, this.RulerNode.y, 0), this._rulerEndPos = new cc.Vec3(this.BottomLineNode.width / 2, this.RulerNode.y, 0)
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), t = f.default.Instance.GetItemPathById(this._activityConfig.CustomPart.ItemId), [4, this.LoadDynamicAsset(t, cc.SpriteFrame)];
                            case 1:
                                return n = o.sent(), this.ItemIcon.spriteFrame = n, [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ItemCount.string = "x" + d.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.ItemId), t || (this.AvatarSpine.setAnimation(0, "standby", !0), this.RulerNode.setPosition(this._rulerStartPos), this.RefreshLineNode(), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)), this.SetRedDot()
            }, t.prototype.SetRulerNode = function() {
                var e = this,
                    t = this._beatTimes >= this._activityConfig.CustomPart.OnceCount ? this._activityConfig.CustomPart.OnceCount : this._beatTimes;
                cc.tween(this.RulerNode).to(this._activityConfig.CustomPart.Time[t] / 1e3, {
                    position: this._rulerEndPos
                }).call(function() {
                    e.RulerNode.setPosition(e._rulerStartPos), e._isBeat = !1, e.SetRulerNode()
                }).start()
            }, t.prototype.RefreshLineNode = function() {
                var e = this._activityConfig.CustomPart.RandomPattern[this._beatTimes].Items;
                this.OrangeLineNode.x = e[0], this.OrangeLineNode.width = e[1], this.YellowLineNode.width = e[2], this._commonRange = [e[0] - e[1] / 2, e[0] + e[1] / 2], this._perfectRange = [e[0] - e[2] / 2, e[0] + e[2] / 2]
            }, t.prototype.OnBeatButtonClick = function() {
                if (this._isGameStart) {
                    if (this._isBeat) return;
                    this._isBeat = !0, this._aniSpeed = this._activityConfig.CustomPart.Time[0] / this._activityConfig.CustomPart.Time[this._beatTimes], this._beatTimes++, this.SetScore(), this.RequestBeatTimes()
                } else {
                    if (d.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.ItemId) <= 0) return void h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activityConfig.CustomPart.ItemId.ToItemName()));
                    var e = new u.Req_Activity_KnockWatermelonAct;
                    e.ActivityId = this._activityConfig._id, e.Type = 2, d.RpcComponent.Instance.Call(e, this.SetStart.bind(this))
                }
            }, t.prototype.SetStart = function() {
                this._isGameStart = !0, this.BeatButtonLabel.string = "ActivityBeatWatermelon_Beat".ToUILocale(), this.TipLabel.string = "ActivityBeatWatermelon_Tip".ToUILocale().Fmt(this._activityConfig.CustomPart.OnceCount + "/" + this._activityConfig.CustomPart.OnceCount), this.ItemNode.active = !1, this.TipNode.active = !0, this.StartCountDownNode.active = !0, this.UnTouchMask.active = !0, this._threeCountDown = 3, this.ThreeCountDown(), this.schedule(this.ThreeCountDown, 1)
            }, t.prototype.ThreeCountDown = function() {
                this._threeCountDown > 0 ? (this.StartCountDownIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS2.getSpriteFrame("" + this._threeCountDown), this._threeCountDown--) : (this.StartCountDownNode.active = !1, this.UnTouchMask.active = !1, this.unschedule(this.ThreeCountDown), this.SetRulerNode())
            }, t.prototype.RequestBeatTimes = function() {
                var e = this,
                    t = new u.Req_Activity_KnockWatermelonAct;
                t.ActivityId = this._activityConfig._id, t.Type = 3, t.KnockType = this._beatType, d.RpcComponent.Instance.Call(t, function(t) {
                    e.SetAnimation(), e.TipLabel.string = "ActivityBeatWatermelon_Tip".ToUILocale().Fmt(e._activityConfig.CustomPart.OnceCount - e._beatTimes + "/" + e._activityConfig.CustomPart.OnceCount), e._beatTimes == e._activityConfig.CustomPart.OnceCount && (c.UIManager.Instance.ShowUIPanel(g.PanelConfig.ActivityBeatWatermelonResultPanel.Path, t.Rewards, [e._perfectCount, e._outstandingCount, e._commonCount]), e._isGameStart = !1, e.TipNode.active = !1, e.ItemNode.active = !0, e._beatTimes = 0, e._perfectCount = 0, e._outstandingCount = 0, e._commonCount = 0, e.BeatButtonLabel.string = "ActivityBeatWatermelon_Start".ToUILocale(), e.ItemCount.string = "x" + d.DataCenter.Instance.GetItemCount(e._activityConfig.CustomPart.ItemId), e._isBeat = !1, cc.Tween.stopAllByTarget(e.RulerNode), e.RulerNode.setPosition(e._rulerStartPos)), e.RefreshLineNode()
                })
            }, t.prototype.SetScore = function() {
                var e = this,
                    t = this.RulerNode.x;
                t > this._perfectRange[0] && t < this._perfectRange[1] ? (this.ScoreIcon.spriteFrame = this._perfectIcon, this._perfectCount++, this.ScoreSpine.node.active = !0, this.PerfectCount.node.active = !0, this.ScoreSpine.setAnimation(0, "Ani_UI_Effect_QXG_wanmei", !1), this.PerfectCount.string = this._perfectCount.toString(), this._beatType = l.Perfect) : t > this._commonRange[0] && t < this._commonRange[1] ? (this.ScoreIcon.spriteFrame = this._outstandingIcon, this._outstandingCount++, this._beatType = l.Outstanding) : (this.ScoreIcon.spriteFrame = this._commonIcon, this._commonCount++, this._beatType = l.Common), this.BeatLightNode.x = t, this.BeatLightNode.active = !0, this.scheduleOnce(function() {
                    e.BeatLightNode.active = !1
                }, .1), this.ScoreNode.active = !0, this.scheduleOnce(function() {
                    e.ScoreNode.active = !1, e.ScoreSpine.node.active = !1, e.PerfectCount.node.active = !1
                }, .5)
            }, t.prototype.SetAnimation = function() {
                var e = this;
                this.AvatarSpine.timeScale = this._aniSpeed, this.BeatSpine.timeScale = this._aniSpeed, this.AvatarSpine.setAnimation(0, "attack2", !1), this.BeatSpine.setAnimation(0, "Ani_UI_Effect_QNG_qiaoda", !1), this.AvatarSpine.setCompleteListener(function() {
                    e.AvatarSpine.timeScale = 1, e.AvatarSpine.setAnimation(0, "standby", !0)
                }), this.scheduleOnce(function() {
                    var t;
                    t = e._beatTimes < 2 ? 1 : e._beatTimes < 5 ? 2 : e._beatTimes < 7 ? 3 : e._beatTimes < 9 ? 4 : 5, e.WatermelonIcon.spriteFrame = e._atlas.getSpriteFrame("rice_" + t)
                }, .6 / this._aniSpeed)
            }, t.prototype.SetDeadLine = function() {
                var e = f.default.Instance.ComputeDeadTime(this._activityConfig.Common) - d.RpcComponent.Instance.ServerTime;
                e < 0 ? c.UIManager.Instance.BackUIPanel() : this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e))
            }, t.prototype.SetRedDot = function() {
                I.RedDotManager.Instance.BindInstance(this.GiftButton.node, I.RedDotManager.Instance.InstanceRedDot.BeatWatermelonGiftButton, {
                    Value1: this._activityConfig._id
                }, 20, 20)
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "ActivityBeatWatermelon_Rule_Name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["ActivityBeatWatermelon_Rule_Content".ToUILocale()]
                };
                h.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnGiftButtonClick = function() {
                this._imagePath || (this._imagePath = this._activityConfig.Common.Pictures);
                var e = {
                    ActivityId: this._activityConfig._id,
                    ActivityGiftPackData: this._activityConfig._Packs,
                    Deadline: f.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                    BannerPath: this._imagePath[0],
                    Title: "ActivityBeatWatermelon_Gift".ToUILocale()
                };
                c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonGiftPackPanel.Path, e)
            }, t.prototype.OnRewardPreviewButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonRatePanel.Path, m.ShowRateType.BeatWatermelon, this._activityConfig.CustomPart.Rewards, this._activityConfig.__Rewards)
            }, t.prototype.OnWarTokenButtonClick = function() {
                var e = d.ConfigDataComponent.Instance.GetConfigById(p.ItemGetWay_Config, this._activityConfig.Common.JumpId);
                if (e && e.PanelInfo[1]) {
                    var t = f.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(y.ActivityType.ActiveWarToken, e.PanelInfo[1]);
                    t > 0 && c.UIManager.Instance.ShowUIPanel(g.PanelConfig.WarTokenListPanel.Path, !0, t)
                }
            }, t.prototype.OnReturnButtonClick = function() {
                var e = this;
                this._isGameStart ? h.UIUtlity.ShowHintPanel("", "ActivityBeatWatermelon_Hint_Tip".ToUILocale(), "", null, "", function() {
                    var t = new u.Req_Activity_KnockWatermelonAct;
                    t.ActivityId = e._activityConfig._id, t.Type = 1, d.RpcComponent.Instance.Call(t, function(t) {
                        c.UIManager.Instance.ShowUIPanel(g.PanelConfig.ActivityBeatWatermelonResultPanel.Path, t.Rewards, [e._perfectCount, e._outstandingCount, e._commonCount]), c.UIManager.Instance.QuitPanelStack(g.PanelConfig.ActivityBeatWatermelonPanel.Path)
                    })
                }) : c.UIManager.Instance.BackUIPanel()
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks(), cc.Tween.stopAllByTarget(this.RulerNode)
            }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([v(cc.Node)], t.prototype, "StartCountDownNode", void 0), i([v(cc.Sprite)], t.prototype, "StartCountDownIcon", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Button)], t.prototype, "GiftButton", void 0), i([v(cc.Label)], t.prototype, "GiftButtonLabel", void 0), i([v(cc.Button)], t.prototype, "RewardPreviewButton", void 0), i([v(cc.Label)], t.prototype, "RewardPreviewLabel", void 0), i([v(sp.Skeleton)], t.prototype, "AvatarSpine", void 0), i([v(cc.Sprite)], t.prototype, "WatermelonIcon", void 0), i([v(sp.Skeleton)], t.prototype, "BeatSpine", void 0), i([v(cc.Node)], t.prototype, "ScoreNode", void 0), i([v(sp.Skeleton)], t.prototype, "ScoreSpine", void 0), i([v(cc.Sprite)], t.prototype, "ScoreIcon", void 0), i([v(cc.Label)], t.prototype, "PerfectCount", void 0), i([v(cc.Node)], t.prototype, "BottomLineNode", void 0), i([v(cc.Node)], t.prototype, "OrangeLineNode", void 0), i([v(cc.Node)], t.prototype, "YellowLineNode", void 0), i([v(cc.Node)], t.prototype, "RulerNode", void 0), i([v(cc.Node)], t.prototype, "BeatLightNode", void 0), i([v(cc.Button)], t.prototype, "BeatButton", void 0), i([v(cc.Label)], t.prototype, "BeatButtonLabel", void 0), i([v(cc.Node)], t.prototype, "ItemNode", void 0), i([v(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([v(cc.Label)], t.prototype, "ItemCount", void 0), i([v(cc.Node)], t.prototype, "TipNode", void 0), i([v(cc.Label)], t.prototype, "TipLabel", void 0), i([v(cc.Button)], t.prototype, "WarTokenButton", void 0), i([v(cc.Label)], t.prototype, "warTokenLabel", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([v(cc.Node)], t.prototype, "UnTouchMask", void 0), i([C], t)
        }(c.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CommonRatePanel": "CommonRatePanel"
    }],
    ActivityBeatWatermelonResultPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "84e91+kwiBIl78lcxw6/Krc", "ActivityBeatWatermelonResultPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.PerfectIcon = null, t.OutstandingIcon = null, t.CommonIcon = null, t.PerfectCount = null, t.OutstandingCount = null, t.CommonCount = null, t.RewardTitle = null, t.RewardContainer = null, t.NoneTip = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset(c.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/common"), cc.SpriteFrame), o = this.LoadDynamicAsset(c.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/outstanding"), cc.SpriteFrame), r = this.LoadDynamicAsset(c.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/perfect"), cc.SpriteFrame), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._itemPrefab = e[0], i._commonIcon = e[1], i._outstandingIcon = e[2], i._perfectIcon = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RewardTitle.string = "activityBoss_reward".ToUILocale(), this.PerfectIcon.spriteFrame = this._perfectIcon, this.OutstandingIcon.spriteFrame = this._outstandingIcon, this.CommonIcon.spriteFrame = this._commonIcon
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rewardsData = t[0], this._countArray = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.PerfectCount.string = this._countArray[0].toString(), this.OutstandingCount.string = this._countArray[1].toString(), this.CommonCount.string = this._countArray[2].toString(), this.SetRewards())
                }, t.prototype.SetRewards = function() {
                    var e = this;
                    this._rewardsData.length > 0 ? this._rewardsData.forEach(function(t) {
                        var n = cc.instantiate(e._itemPrefab);
                        n.setParent(e.RewardContainer), n.getComponent(p.ItemComponent).Init({
                            ItemId: t.ItemId,
                            Count: t.Count
                        })
                    }) : (this.NoneTip.node.active = !0, this.NoneTip.string = "ActivityBeatWatermelon_None_Reward".ToUILocale())
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = t.getComponent(p.ItemComponent); - 1 != this.RewardContainer.children.indexOf(t) && h.UIUtlity.ShowItemTip(n.ItemId, t)
                }, i([g(cc.Sprite)], t.prototype, "PerfectIcon", void 0), i([g(cc.Sprite)], t.prototype, "OutstandingIcon", void 0), i([g(cc.Sprite)], t.prototype, "CommonIcon", void 0), i([g(cc.Label)], t.prototype, "PerfectCount", void 0), i([g(cc.Label)], t.prototype, "OutstandingCount", void 0), i([g(cc.Label)], t.prototype, "CommonCount", void 0), i([g(cc.Label)], t.prototype, "RewardTitle", void 0), i([g(cc.Node)], t.prototype, "RewardContainer", void 0), i([g(cc.Label)], t.prototype, "NoneTip", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityBossBattleChallengePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "27cb0i1TydI66PnJaeuxF5e", "ActivityBossBattleChallengePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CurrencyBarItem"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../Components/BossBattleChallengeItem"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Tip = null, t.CurrencyBarItem = null, t.LevelsContainer = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityBossBattlePanel/Components/BossBattleChallengeItem", cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                        n._levelsPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "activityBossBattle_challenge_title".ToUILocale(), this.Tip.string = "activityBossBattle_challenge_tip".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = u.DataCenter.Instance.ActivityConfigs[t[0]], this._currentRound = t[1], this.SetLevelsMap()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this.SetLevels()), d.default.Instance.ComputeContiuousTime(this._activityConfig.Common) == this._currentRound ? this.CurrencyBarItem.Init(this._activityConfig.CustomPart.ItemId[0], !1, void 0, this._activityConfig.CustomPart.DailyComplete) : l.UIManager.Instance.QuitPanelStack(this)
                }, t.prototype.SetLevelsMap = function() {
                    var e = this;
                    this._levelsMap = {}, this._activityConfig.__Levels.forEach(function(t) {
                        e._levelsMap[t.Id] = t
                    })
                }, t.prototype.SetLevels = function() {
                    for (var e = this._activityConfig.Rounds[this._currentRound - 1].Level, t = 0; t < e.length; t++) {
                        var n = cc.instantiate(this._levelsPrefab);
                        n.setParent(this.LevelsContainer);
                        var o = this._levelsMap[e[t]],
                            r = t > 0 ? e[t - 1] : 0;
                        n.getComponent(h.default).Init(o, this._activityModel, t, r, this._activityConfig.CustomPart.ItemId[0])
                    }
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "Tip", void 0), i([g(p.default)], t.prototype, "CurrencyBarItem", void 0), i([g(cc.Node)], t.prototype, "LevelsContainer", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/BossBattleChallengeItem": "BossBattleChallengeItem",
        "../Components/CurrencyBarItem": "CurrencyBarItem"
    }],
    ActivityBossBattleJoinTeamPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eefe5k9411Hs7fzaRJJzWyq", "ActivityBossBattleJoinTeamPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleIcon = null, t.TeamIcon = null, t.TeamTip = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/joinTeam"), cc.SpriteFrame), n = this.LoadDynamicAsset("ActivityBossBattlePanel/PNG/ActivityBossBattleAtlas", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o.TitleIcon.spriteFrame = e[0], o._atlas = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._joinData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.TeamIcon.spriteFrame = this._atlas.getSpriteFrame("team" + this._joinData.GroupId), this.TeamTip.string = this._joinData.LeaderName)
                }, i([d(cc.Sprite)], t.prototype, "TitleIcon", void 0), i([d(cc.Sprite)], t.prototype, "TeamIcon", void 0), i([d(cc.Label)], t.prototype, "TeamTip", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components"
    }],
    ActivityBossBattlePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2142cm0UvxJ3KwvajvTukCJ", "ActivityBossBattlePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Components/SmallRankListComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Components/CustomToggleRollingLabel"),
            m = e("../Components/BossBattleTeamComponent"),
            I = e("../../../Util/TimeUtil"),
            _ = e("../../../Consts/Etc"),
            C = e("../Components/SkillItemComponent"),
            v = e("../../../ShareConsts/BattleConsts"),
            b = e("../../../Consts/Consts"),
            S = e("../Battle/BattleData"),
            w = e("../Battle/BattleManager"),
            P = e("../../RedDot/RedDotManager"),
            A = e("./ActivityJumpBtnComponent"),
            T = e("./TimeLimitedActivityPanel"),
            R = e("./ChattingMiniPanel"),
            L = cc._decorator,
            k = L.ccclass,
            O = L.property,
            M = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.BossAvatarNode = null, t.Title = null, t.LeftTimeRichText = null, t.RuleButton = null, t.RankListComponent = null, t.BossDetailPartNode = null, t.BossDetailButton = null, t.BossLevel = null, t.BossName = null, t.BossSkillTag = null, t.BossSkillContainer = null, t.RoundToggleContainer = null, t.RoundLeftTime = null, t.VerticalArrowButton = null, t.VerticalArrowIcon = null, t.VerticalArrowLabel = null, t.TeamScrollView = null, t.TeamView = null, t.TeamContainer = null, t.BattleTimeTip = null, t.ApplyButton = null, t.ApplyButtonLabel = null, t.ReturnButton = null, t.RankButton = null, t.RankButtonLabel = null, t.ShopButton = null, t.ShopButtonLabel = null, t.TaskButton = null, t.TaskButtonLabel = null, t.BottomButtonLayout = null, t.ChatNode = null, t._toggleArray = [], t._teamArray = [], t._refreshInterval = 0, t._skillComponentArray = [], t._isShowAllTeam = !1, t._battleButtonState = 0, t._checkRoundRewardStartIndex = 0, t._jumpButtonNode = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityHeroTestTowerPanel/PNG/TestEntryBg", cc.SpriteFrame), n = this.LoadDynamicAsset("ActivityBossBattlePanel/PNG/ActivityBossBattleAtlas", cc.SpriteAtlas), o = this.LoadDynamicAsset("ActivityBossBattlePanel/Components/BossBattleTeamComponent", cc.Prefab), r = this.LoadDynamicAsset("Buttons/ToggleTopRollingLabel", cc.Prefab), i = this.LoadDynamicAsset(f.BundlePath.SkillItemComponent, cc.Prefab), a = this.LoadDynamicAsset("Chatting/ChattingMiniPanel", cc.Prefab), [4, Promise.all([t, n, o, r, i, a]).then(function(e) {
                                        l._bg = e[0], l._atlas = e[1], l._teamPrefab = e[2], l._togglePrefab = e[3], l._skillPrefab = e[4], l._chattingMiniPanelPrefab = e[5]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Bg.spriteFrame = this._bg, this.Title.string = "activityBossBattle_title".ToUILocale(), this.BossSkillTag.string = "activityBossBattle_bossSkill_tag".ToUILocale(), this.RankButtonLabel.string = "holyArea_rank".ToUILocale(), this.ShopButtonLabel.string = "exchange_shop".ToUILocale(), this.TaskButtonLabel.string = "btn_task".ToUILocale(), this.VerticalArrowButton.node.on("click", this.OnVerticalArrowButtonClick, this), this.ApplyButton.node.on("click", this.OnApplyButtonClick, this), this.BossDetailButton.node.on("click", this.OnBossDetailButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = u.DataCenter.Instance.ActivityConfigs[t[0]], this._gameInfo = t[1], this.RefrshTimeValue(), this._currentRound = this._startDays >= this._activityConfig.Rounds.length ? this._activityConfig.Rounds.length : this._startDays, this.SetLevelsMap(), this.SetRewardsMap()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), t || (this.BattleTimeTip.string = "activityBossBattle_time_tip".ToUILocale().Fmt(this._activityConfig.CustomPart.TimeParam[0], this._activityConfig.CustomPart.TimeParam[1]), this.SetToggleContainer(), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1), this.SetCurrentPart(), this.CheckRoundEndReward(), this.InstantiateChattingMiniNode()), this.SetBottomButtonContainer(), this.SetRedDot()
                }, t.prototype.RefrshTimeValue = function() {
                    this._startDays = y.default.Instance.ComputeContiuousTime(this._activityConfig.Common), this._dayEndTime = I.TimeUtil.GetIndexClockTs(u.RpcComponent.Instance.ServerTime, 0) + _.Etc.DayDuration, this._roundStartTime = I.TimeUtil.GetIndexClockTs(u.RpcComponent.Instance.ServerTime, this._activityConfig.CustomPart.TimeParam[0]), this._roundEndTime = I.TimeUtil.GetIndexClockTs(u.RpcComponent.Instance.ServerTime, this._activityConfig.CustomPart.TimeParam[1])
                }, t.prototype.SetLevelsMap = function() {
                    var e = this;
                    this._levelsMap = {}, this._activityConfig.__Levels.forEach(function(t) {
                        e._levelsMap[t.Id] = t
                    })
                }, t.prototype.SetRewardsMap = function() {
                    var e = this;
                    this._rankRewardMap = {}, this._activityConfig.__RankRewards.forEach(function(t) {
                        e._rankRewardMap[t.Id] = t
                    })
                }, t.prototype.RefreshGameInfo = function(e) {
                    var t = this,
                        n = new c.Req_Activity_BossHuntInfo;
                    n.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(n, function(n) {
                        if (t._chattingMiniPanel && -1 == t._gameInfo.GroupId && -1 != n.GroupId) {
                            t._chattingMiniPanel.SetDefalutChannel(b.ChatChannelType.BossHunt);
                            var o = {
                                ChannelTypeShowMap: {},
                                OpenStateMap: {}
                            };
                            o.ChannelTypeShowMap[b.ChatChannelType.BossHunt] = !0, o.OpenStateMap[b.ChatChannelType.BossHunt] = !0, t._chattingMiniPanel.SetActivityChannelData(o)
                        }
                        t._gameInfo = n, e ? t.CheckRoundEndReward() : t.SetCurrentPart()
                    })
                }, t.prototype.CheckRoundEndReward = function() {
                    var e = this._startDays >= this._activityConfig.Rounds.length ? this._activityConfig.Rounds.length : this._startDays;
                    if (this._checkRoundRewardStartIndex < e)
                        for (var t = this._checkRoundRewardStartIndex; t < e; t++) {
                            var n = this._gameInfo.RoundInfo[this._activityConfig.Rounds[t].Id];
                            if (n && -1 != n.Items[1] && 0 == n.Items[3]) {
                                l.UIManager.Instance.ShowUIPanel(f.PanelConfig.ActivityBossBattleRoundEndPanel.Path, this._activityConfig._id, this._activityConfig.Rounds[t], n.Items, this.RefreshGameInfo.bind(this));
                                break
                            }
                            n && 1 == n.Items[3] && (this._checkRoundRewardStartIndex = t + 1)
                        }
                }, t.prototype.SetToggleContainer = function() {
                    for (var e = 0; e < this._activityConfig.Rounds.length; e++) {
                        var t = this._toggleArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._togglePrefab);
                            n.setParent(this.RoundToggleContainer), t = n.getComponent(g.default), this._toggleArray[e] = t, n.name = e.toString(), n.on("toggle", this.OnSwitchRound, this), t.Init("Activity_HeroPK_Round_Tag".ToUILocale().Fmt(e + 1)), e == this._startDays - 1 && (t.isChecked = !0)
                        }
                        t.SetInteractable(e < this._startDays, "activityBossBattle_round_unlock".ToUILocale())
                    }
                }, t.prototype.OnSwitchRound = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._currentRound != t + 1 && (this._currentRound = t + 1, this.SetCurrentPart())
                }, t.prototype.SetCurrentPart = function() {
                    if (this.BossDetailPartNode.active = !1, this.RankListComponent.node.active = !1, this.VerticalArrowButton.node.active = !1, this.BattleTimeTip.node.active = !1, this.ApplyButton.node.active = !0, -1 == this._gameInfo.GroupId) this.BattleTimeTip.node.active = !0, this.TeamScrollView.node.height = 1075, this.TeamView.height = 1075, this.ApplyButtonLabel.string = "application".ToUILocale();
                    else {
                        this.BossDetailPartNode.active = !0, this.RankListComponent.node.active = !0, this.VerticalArrowButton.node.active = !0;
                        var e = c.Res_Activity_GetRank.create();
                        e.Rows = this._gameInfo.Top3List, this.RankListComponent.InitUIForActivity(this._activityConfig._id, "activityBoss_score_rank".ToUILocale(), this.RankListComponentCallback.bind(this), e), this.SetBossInfo(), this._currentRound != this._startDays ? (this._battleButtonState = 0, this.ApplyButton.node.active = !1) : u.RpcComponent.Instance.ServerTime < this._roundStartTime || u.RpcComponent.Instance.ServerTime > this._roundEndTime ? (this._battleButtonState = 1, h.UIUtlity.SetGray(this.ApplyButton.node, !0, !0)) : (this._battleButtonState = 2, h.UIUtlity.SetGray(this.ApplyButton.node, !1, !0)), this.SetBattleTeamShow()
                    }
                    this.SetTeamContainer(), this._currentRound < this._startDays && (this.RoundLeftTime.string = "activityBossBattle_round_end".ToUILocale())
                }, t.prototype.SetTeamContainer = function() {
                    var e = this._activityConfig.Rounds[this._currentRound - 1],
                        t = [];
                    if (-1 == this._gameInfo.GroupId || this._isShowAllTeam)
                        for (var n = 0; n < e.Matchup.length; n++)((a = e.Matchup[n].Items)[0] == this._gameInfo.GroupId || a[1] == this._gameInfo.GroupId) && n > 0 ? (t[n] = t[0], t[0] = [a[0], a[1]]) : t[n] = [a[0], a[1]];
                    else
                        for (n = 0; n < e.Matchup.length; n++)
                            if ((a = e.Matchup[n].Items)[0] == this._gameInfo.GroupId || a[1] == this._gameInfo.GroupId) {
                                t[0] = [a[0], a[1]];
                                break
                            } var o = this._isShowAllTeam ? this._battleButtonState : 0;
                    for (n = 0; n < t.length; n++) {
                        var r = this._teamArray[n];
                        if (!r) {
                            var i = cc.instantiate(this._teamPrefab);
                            i.setParent(this.TeamContainer), r = i.getComponent(m.default), this._teamArray[n] = r
                        }
                        r.node.active = !0;
                        var a = t[n],
                            s = [this._gameInfo.GroupInfo[a[0]].RoundInfo[this._currentRound], this._gameInfo.GroupInfo[a[1]].RoundInfo[this._currentRound]],
                            l = [this._atlas.getSpriteFrame("team" + a[0]), this._atlas.getSpriteFrame("team" + a[1])],
                            c = 0;
                        a[0] == this._gameInfo.GroupId ? c = 1 : a[1] == this._gameInfo.GroupId && (c = 2), r.Init(s, l, this._gameInfo.LeaderName, c, o, this.OnApplyButtonClick.bind(this))
                    }
                    if (t.length < this._teamArray.length)
                        for (n = t.length; n < this._teamArray.length; n++) this._teamArray[n].node.active = !1;
                    this.TeamContainer.getComponent(cc.Layout).updateLayout()
                }, t.prototype.RankListComponentCallback = function() {
                    var e = this,
                        t = new c.Req_Activity_BossHuntRoundRank;
                    t.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(t, function(t) {
                        var n = {};
                        n.ActivityId = e._activityConfig._id, n.Title = "bossWar_rank_name".ToUILocale().Fmt(e._activityConfig.Common.Title);
                        var o = c.Res_Activity_GetRank.create();
                        o.MyRank = t.MyRank, o.MyRankData = t.MyRankData, o.Rows = t.DataList, n.RankDatas = [o], n.RewardDatasArray = e.GetRoundRankRewardData(), l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonActivityRankPanel.Path, n)
                    })
                }, t.prototype.GetRoundRankRewardData = function() {
                    var e = this,
                        t = this._activityConfig.Rounds[this._currentRound - 1],
                        n = {},
                        o = [];
                    t.WinRankRewards.forEach(function(t) {
                        var n = e._rankRewardMap[t],
                            r = {};
                        r.Id = n.Id, r.Ranks = n.Rank, r.Rewards = n.Rewards, o.push(r)
                    }), n.Data = o, n.IsNotShowMyRank = !0, n.ToggleTitle = "activityBossBattle_win_rankRewards".ToUILocale();
                    var r = {},
                        i = [];
                    return t.LoseRankRewards.forEach(function(t) {
                        var n = e._rankRewardMap[t],
                            o = {};
                        o.Id = n.Id, o.Ranks = n.Rank, o.Rewards = n.Rewards, i.push(o)
                    }), r.Data = i, r.IsNotShowMyRank = !0, r.ToggleTitle = "activityBossBattle_fail_rankRewards".ToUILocale(), [n, r]
                }, t.prototype.SetBattleTeamShow = function() {
                    this._isShowAllTeam ? (this.VerticalArrowIcon.node.angle = -90, this.TeamScrollView.node.height = 1200, this.TeamView.height = 1200, this.ApplyButton.node.active = !1) : (this.VerticalArrowIcon.node.angle = 90, this.TeamScrollView.node.height = 280, this.TeamView.height = 280, this.ApplyButtonLabel.string = "activityBossBattle_battle".ToUILocale(), this.ApplyButton.node.active = 0 != this._battleButtonState)
                }, t.prototype.SetBossInfo = function() {
                    var e = this._levelsMap[this._activityConfig.Rounds[this._currentRound - 1].Level[0]].MapId,
                        t = u.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, e),
                        n = t.Heros[0].Items[1];
                    this.BossLevel.string = "Lv." + t.Strength[1] + " " + n.ToHeroName(), this.SetBossAvatar(n), this.SetBossSkill()
                }, t.prototype.SetBossAvatar = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._lastMonsterId == e ? [3, 2] : (this._lastMonsterId = e, this.BossAvatarNode.destroyAllChildren(), this._bossPrefab && (l.AssetsManager.Instance.UnloadAsset(this._bossPrefab), this._bossPrefab = null), t = void 0, n = u.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, e), this._bossPath = "Hero_" + n.Model + "/HeroAvatar", [4, l.AssetsManager.Instance.LoadAsset(this._bossPath, cc.Prefab)]);
                                case 1:
                                    if (t = r.sent(), !this.isValid || this._bossPath != t.name) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._bossPrefab = t, (o = cc.instantiate(this._bossPrefab)).setParent(this.BossAvatarNode), o.getComponent(sp.Skeleton).setAnimation(0, v.SkillAnimationType.Standby, !0), r.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetBossSkill = function() {
                    for (var e = this._activityConfig.Rounds[this._currentRound - 1].Skills, t = 0; t < e.length; t++) {
                        var n = this._skillComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._skillPrefab);
                            o.setParent(this.BossSkillContainer), n = o.getComponent(C.default), this._skillComponentArray[t] = n
                        }
                        n.node.active = !0, n.Init(e[t])
                    }
                    if (e.length < this._skillComponentArray.length)
                        for (t = e.length; t < this._skillComponentArray.length; t++) this._skillComponentArray[t].node.active = !1
                }, t.prototype.SetDeadLine = function() {
                    var e = y.default.Instance.ComputeDeadTime(this._activityConfig.Common) - u.RpcComponent.Instance.ServerTime;
                    if (e < 0) {
                        var t = y.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - u.RpcComponent.Instance.ServerTime;
                        return t < 0 && l.UIManager.Instance.BackUIPanel(), void(this.LeftTimeRichText.string = "activityBossBattle_receive_leftTime".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(t)))
                    }
                    if (this.LeftTimeRichText.string = "Activity_LuckyBag_LeftTime".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(e)), u.RpcComponent.Instance.ServerTime > this._dayEndTime) return this.RefrshTimeValue(), this._refreshInterval = 0, void this.RefreshGameInfo();
                    this._currentRound == this._startDays && (u.RpcComponent.Instance.ServerTime < this._roundStartTime ? this.RoundLeftTime.string = "activityBossBattle_round_start_left".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(this._roundStartTime - u.RpcComponent.Instance.ServerTime)) : u.RpcComponent.Instance.ServerTime < this._roundEndTime ? this.RoundLeftTime.string = "activityBossBattle_round_battle_left".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(this._roundEndTime - u.RpcComponent.Instance.ServerTime)) : this.RoundLeftTime.string = "activityBossBattle_round_end_left".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(this._roundStartTime + _.Etc.DayDuration - u.RpcComponent.Instance.ServerTime))), this._refreshInterval++, this._refreshInterval >= 60 && (this._refreshInterval = 0, this.RefreshGameInfo())
                }, t.prototype.SetBottomButtonContainer = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this.BottomButtonLayout.active = this._activityConfig.CustomPart.JumpId.length > 0, this._buttonPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)]);
                                case 1:
                                    if (e._buttonPrefab = a.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._buttonPrefab), [2];
                                    a.label = 2;
                                case 2:
                                    for (t = 0; t < this._activityConfig.CustomPart.JumpId.length; t++) n = this._activityConfig.CustomPart.JumpId[t], (o = u.DataCenter.Instance.ActivityNameMap[n]) && (u.RpcComponent.Instance.ServerTime > y.default.Instance.ComputeDeadTime(o.Common) || ((r = this._jumpButtonNode[t]) || ((r = cc.instantiate(this._buttonPrefab)).setParent(this.BottomButtonLayout), this._jumpButtonNode[t] = r, r.width = 146, r.height = 168, r.getComponent(A.default).Init(n, this._activityConfig.CustomPart.JumpIcon[t]), cc.find("Background/Label", r).y = -75), (i = T.ActivityData.GetTopicActivityTypeToRedDot(o.Common.Type)) && P.RedDotManager.Instance.BindInstance(r, i, {
                                        Value1: Number(o._id)
                                    })));
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetRedDot = function() {
                    -1 == this._gameInfo.GroupId ? P.RedDotManager.Instance.BindInstance(this.ApplyButton.node, P.RedDotManager.Instance.InstanceRedDot.ActivityBossBattleApplyButton, {
                        Value1: this._activityConfig._id
                    }) : P.RedDotManager.Instance.BindInstance(this.ApplyButton.node, P.RedDotManager.Instance.InstanceRedDot.ActivityBossBattleChallengeButton, {
                        Value1: this._activityConfig._id
                    }), P.RedDotManager.Instance.BindInstance(this.TaskButton.node, P.RedDotManager.Instance.InstanceRedDot.ActivityBossBattleTaskNode, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.OnVerticalArrowButtonClick = function() {
                    this._isShowAllTeam = !this._isShowAllTeam, this.SetBattleTeamShow(), this.SetTeamContainer()
                }, t.prototype.OnApplyButtonClick = function() {
                    var e = this;
                    if (-1 == this._gameInfo.GroupId) {
                        var t = new c.Req_Activity_BossHuntJoin;
                        t.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(t, function(t) {
                            l.UIManager.Instance.ShowUIPanel(f.PanelConfig.ActivityBossBattleJoinTeamPanel.Path, t), e._refreshInterval = 0, e.RefreshGameInfo()
                        })
                    } else u.RpcComponent.Instance.ServerTime < this._roundStartTime || u.RpcComponent.Instance.ServerTime > this._roundEndTime ? h.UIUtlity.ShowFloatingHint("activityBossBattle_battle_time_hint".ToUILocale()) : l.UIManager.Instance.ShowUIPanel(f.PanelConfig.ActivityBossBattleChallengePanel.Path, this._activityConfig._id, this._currentRound)
                }, t.prototype.OnBossDetailButtonClick = function() {
                    var e = this._levelsMap[this._activityConfig.Rounds[this._currentRound - 1].Level[0]].MapId;
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.BossWarPreviewPanel.Path, e)
                }, t.prototype.InstantiateChattingMiniNode = function() {
                    var e = cc.instantiate(this._chattingMiniPanelPrefab);
                    e.setParent(this.ChatNode), this._chattingMiniPanel = e.getComponent(R.default), -1 != this._gameInfo.GroupId && this._chattingMiniPanel.SetDefalutChannel(b.ChatChannelType.BossHunt);
                    var t = {
                        ChannelTypeShowMap: {},
                        OpenStateMap: {}
                    };
                    t.ChannelTypeShowMap[b.ChatChannelType.BossHunt] = !0, t.OpenStateMap[b.ChatChannelType.BossHunt] = -1 != this._gameInfo.GroupId, this._chattingMiniPanel.SetActivityChannelData(t)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "activityBossBattle_rule_name".ToUILocale(),
                        titles: ["ActivityPurchase_Rule_Title".ToUILocale()],
                        contents: ["activityBossBattle_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnRankButtonClick = function() {
                    var e = new c.Req_Activity_BossHuntTotalRank;
                    e.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(e, this.RequestRankSuccess.bind(this))
                }, t.prototype.RequestRankSuccess = function(e) {
                    var t = this,
                        n = {};
                    n.ActivityId = this._activityConfig._id, n.Title = "bossWar_rank_name".ToUILocale().Fmt(this._activityConfig.Common.Title);
                    var o = c.Res_Activity_GetRank.create();
                    o.MyRank = e.MyRank, o.MyRankData = e.MyRankData, o.Rows = e.DataList, n.RankDatas = [o];
                    var r = [];
                    this._activityConfig.CustomPart.RankRewards.forEach(function(e) {
                        var n = t._rankRewardMap[e],
                            o = {};
                        o.Id = n.Id, o.Ranks = n.Rank, o.Rewards = n.Rewards, r.push(o)
                    }), n.RewardDatas = r, l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonActivityRankPanel.Path, n)
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = [],
                        t = [];
                    this._activityConfig._Tasks.forEach(function(n) {
                        n.IsDaily ? e.push(n) : t.push(n)
                    });
                    var n = {
                        IsActivity: !0
                    };
                    n.Title = "knife_daily_task".ToUILocale(), n.Tasks = e, n.ActivityId = this._activityConfig._id, n.Reddot = P.RedDotManager.Instance.InstanceRedDot.ActivityBossBattleTaskDailyNode;
                    var o = {
                        IsActivity: !0
                    };
                    o.Title = "knife_total_task".ToUILocale(), o.Tasks = t, o.ActivityId = this._activityConfig._id, o.Reddot = P.RedDotManager.Instance.InstanceRedDot.ActivityBossBattleTaskTotalNode, l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonTaskPanel.Path, [n, o])
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.InitBattle = function() {
                    [b.MapType.BossHunt].forEach(function(e) {
                        l.Game.EventDispatcher.Only(b.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(b.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(b.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(b.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(b.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                    })
                }, t.RestartBattle = function() {
                    n.StartBattle(n._currentBattleMapId, n._currentActivityId, n._currentLevel)
                }, t.StartBattle = function(e, t, o) {
                    n._currentBattleMapId = e, n._currentActivityId = t, n._currentLevel = o, n.NextBattleIndex = 0, l.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.RequestChallenge(e)
                    }, [e, e], n._currentActivityId)
                }, t.RequestChallenge = function(e) {
                    var t = new c.Req_Activity_BossHuntChallenge;
                    t.ActivityId = n._currentActivityId, t.LevelId = n._currentLevel, t.Formation = e[0], u.RpcComponent.Instance.Call(t, function(e) {
                        var t;
                        n.ChallengeData = e;
                        for (var o = u.DataCenter.Instance.ActivityConfigs[n._currentActivityId], r = 0; r < o.__Levels.length; r++)
                            if (n._currentLevel == o.__Levels[r].Id && o.__Levels[r].Hps.length > 0) {
                                t = o.__Levels[r].Hps;
                                break
                            } var i = {
                                BossHPBarCapacityArray: t,
                                DontCloseOnEnd: !0
                            },
                            a = n.GetNextBattleReport(),
                            s = w.BattleManager.Instance.StartPlay(a, i);
                        l.UIManager.Instance.ShowUIPanel(f.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, b.CampType.Attacker, s)
                    }.bind(this))
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.ChallengeData.Reports && n.NextBattleIndex < n.ChallengeData.Reports.length && (e = n.ChallengeData.Reports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.ShowNextBattle = function(e) {
                    w.BattleManager.Instance.NextWave(e)
                }, t.SettleBattle = function(e) {
                    var t, o = n.GetNextBattleReport();
                    o ? (e.Reports[0] = o, e.InBackground ? w.BattleManager.Instance.NextWave(e) : l.UIManager.Instance.ShowUIPanel(f.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, b.CampType.Attacker, e, n.ShowNextBattle)) : (e.InBackground || l.Game.EventDispatcher.Emit(b.GameEventIds.DelayCloseBattlePanel), delete S.BattleData.PlayingBattleDatas[e.MapType], t = "ActivityBossBattlePanel/Components/BossBattleSettlementComponent", e.SettleParams = n.ChallengeData.Params, e.Reports = n.ChallengeData.Reports, 1 == n.ChallengeData.Result ? e.InBackground ? w.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementWinPanel.Path, t, e, n.ChallengeData.Rewards, n.ChallengeData.Result) : l.UIManager.Instance.ShowUIPanel(f.PanelConfig.SettlementWinPanel.Path, t, e, n.ChallengeData.Rewards, n.ChallengeData.Result) : e.InBackground ? w.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementFailPanel.Path, t, e) : l.UIManager.Instance.ShowUIPanel(f.PanelConfig.SettlementFailPanel.Path, t, e))
                }, t.CancelBattle = function(e) {
                    var t = new c.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, u.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(f.PanelConfig.ActivityBossPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), l.AssetsManager.Instance.UnloadAsset(this._bossPrefab)
                }, t._currentBattleMapId = 0, t._currentActivityId = 0, t._currentLevel = 0, t.NextBattleIndex = 0, i([O(cc.Sprite)], t.prototype, "Bg", void 0), i([O(cc.Node)], t.prototype, "BossAvatarNode", void 0), i([O(cc.Label)], t.prototype, "Title", void 0), i([O(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([O(cc.Button)], t.prototype, "RuleButton", void 0), i([O(d.default)], t.prototype, "RankListComponent", void 0), i([O(cc.Node)], t.prototype, "BossDetailPartNode", void 0), i([O(cc.Button)], t.prototype, "BossDetailButton", void 0), i([O(cc.Label)], t.prototype, "BossLevel", void 0), i([O(cc.Label)], t.prototype, "BossName", void 0), i([O(cc.Label)], t.prototype, "BossSkillTag", void 0), i([O(cc.Node)], t.prototype, "BossSkillContainer", void 0), i([O(cc.Node)], t.prototype, "RoundToggleContainer", void 0), i([O(cc.RichText)], t.prototype, "RoundLeftTime", void 0), i([O(cc.Button)], t.prototype, "VerticalArrowButton", void 0), i([O(cc.Sprite)], t.prototype, "VerticalArrowIcon", void 0), i([O(cc.Label)], t.prototype, "VerticalArrowLabel", void 0), i([O(cc.ScrollView)], t.prototype, "TeamScrollView", void 0), i([O(cc.Node)], t.prototype, "TeamView", void 0), i([O(cc.Node)], t.prototype, "TeamContainer", void 0), i([O(cc.RichText)], t.prototype, "BattleTimeTip", void 0), i([O(cc.Button)], t.prototype, "ApplyButton", void 0), i([O(cc.Label)], t.prototype, "ApplyButtonLabel", void 0), i([O(cc.Button)], t.prototype, "ReturnButton", void 0), i([O(cc.Button)], t.prototype, "RankButton", void 0), i([O(cc.Label)], t.prototype, "RankButtonLabel", void 0), i([O(cc.Button)], t.prototype, "ShopButton", void 0), i([O(cc.Label)], t.prototype, "ShopButtonLabel", void 0), i([O(cc.Button)], t.prototype, "TaskButton", void 0), i([O(cc.Label)], t.prototype, "TaskButtonLabel", void 0), i([O(cc.Node)], t.prototype, "BottomButtonLayout", void 0), i([O(cc.Node)], t.prototype, "ChatNode", void 0), n = i([k], t)
            }(l.BaseUIFullScreenPanel);
        n.default = M, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/BossBattleTeamComponent": "BossBattleTeamComponent",
        "../Components/CustomToggleRollingLabel": "CustomToggleRollingLabel",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent",
        "./ChattingMiniPanel": "ChattingMiniPanel",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    ActivityBossBattleRoundEndPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a44752mfG1MRbe/4lpfcRhK", "ActivityBossBattleRoundEndPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/ItemComponent"),
            f = e("../Components/HeadComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.ResultTag = null, t.ResultValue = null, t.RankTag = null, t.RankValue = null, t.HeadNode = null, t.RewardTag = null, t.RewardContainer = null, t.ReceiveButton = null, t.ReceiveButtonLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._headPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ResultTag.string = "activityBossBattle_round_result".ToUILocale(), this.RankTag.string = "activityBossBattle_round_rankTag".ToUILocale(), this.RewardTag.string = "tradeWar_roundReward".ToUILocale(), this.ReceiveButtonLabel.string = "mail_receive".ToUILocale(), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = u.DataCenter.Instance.ActivityConfigs[t[0]], this._roundConfig = t[1], this._roundData = t[2], this._callback = t[3]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.Title.string = "activityBossBattle_round_title".ToUILocale().Fmt(this._roundConfig.Id), this.ResultValue.node.color = 0 == this._roundData[1] ? (new cc.Color).fromHEX("#FF4B4B") : (new cc.Color).fromHEX("#568F00"), this.ResultValue.string = 0 == this._roundData[1] ? "activityBossBattle_round_fail_tag".ToUILocale() : "activityBossBattle_round_win_tag".ToUILocale(), this.RankValue.string = "activityBoss_rank_num".ToUILocale().Fmt(this._roundData[2]), this.SetRewardContainer(), this.SetHeadComponent())
                }, t.prototype.SetRewardContainer = function() {
                    var e, t = {};
                    this._activityConfig.__RankRewards.forEach(function(e) {
                        t[e.Id] = e
                    });
                    for (var n = 0 == this._roundData[1] ? this._roundConfig.LoseRankRewards : this._roundConfig.WinRankRewards, o = 0; o < n.length; o++) {
                        var r = t[n[o]];
                        if (this._roundData[2] >= r.Rank[0] && (this._roundData[2] <= r.Rank[1] || !r.Rank[1])) {
                            e = r.Rewards;
                            break
                        }
                    }
                    for (o = 0; o < e.length; o++) {
                        var i = cc.instantiate(this._itemPrefab);
                        i.setParent(this.RewardContainer);
                        var a = e[o].Items;
                        i.getComponent(h.ItemComponent).Init({
                            ItemId: a[0],
                            Count: a[1]
                        })
                    }
                }, t.prototype.SetHeadComponent = function() {
                    var e = cc.instantiate(this._headPrefab);
                    e.setParent(this.HeadNode), e.getComponent(f.default).AutoSetUI()
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = this,
                        t = new c.Req_Activity_BossHuntRoundReward;
                    t.ActivityId = this._activityConfig._id, t.Round = this._roundConfig.Id, u.RpcComponent.Instance.Call(t, function(t) {
                        d.UIUtlity.ShwDisplayRewardPanel(t.Rewards), l.UIManager.Instance.QuitPanelStack(e), e._callback && e._callback(!0)
                    })
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.OnReceiveButtonClick()
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = t.getComponent(h.ItemComponent); - 1 != this.RewardContainer.children.indexOf(t) && d.UIUtlity.ShowItemTip(n.ItemId, t)
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Label)], t.prototype, "ResultTag", void 0), i([I(cc.Label)], t.prototype, "ResultValue", void 0), i([I(cc.Label)], t.prototype, "RankTag", void 0), i([I(cc.RichText)], t.prototype, "RankValue", void 0), i([I(cc.Node)], t.prototype, "HeadNode", void 0), i([I(cc.Label)], t.prototype, "RewardTag", void 0), i([I(cc.Node)], t.prototype, "RewardContainer", void 0), i([I(cc.Button)], t.prototype, "ReceiveButton", void 0), i([I(cc.Label)], t.prototype, "ReceiveButtonLabel", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityBossPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b5d16fLy6pAvIY5CeHeIyzY", "ActivityBossPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/SmallRankListComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../../Consts/Etc"),
            C = e("../../../Util/TimeUtil"),
            v = e("../Battle/BattleData"),
            b = e("../Battle/BattleManager"),
            S = e("../Components/CommonMultiRewardComponent"),
            w = e("../../RedDot/RedDotManager"),
            P = e("../Components/SkillItemComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.Title = null, t.RuleButton = null, t.TimeDesc = null, t.Time = null, t.SmallRankListComponent = null, t.ExtraSkillContent = null, t.ExtraSkillTitle = null, t.UpNode = null, t.UpRichText = null, t.UpButton = null, t.UpHeroContent = null, t.BossNode = null, t.BossNameAndLv = null, t.BossDetailButton = null, t.BossDetailLabel = null, t.MaxScoreLabel = null, t.MaxScoreValue = null, t.MyRankLabel = null, t.MyRankValue = null, t.NoRankLabel = null, t.NoRankRewardLabel = null, t.RewardsNode = null, t.GetRichText = null, t.RewardButton = null, t.DailyRewardLabel = null, t.MyScoreLabel = null, t.MyScoreValue = null, t.MyRewardNode = null, t.DailyRewardButton = null, t.ChallengeButton = null, t.ChallengeButtonLabel = null, t.TimeRichText = null, t.MyRankNotLabel = null, t.TaskButton = null, t.TaskButtonLabel = null, t.ReturnButton = null, t.ExchangeShopBtn = null, t.ExchangeShopBtnLabel = null, t.CountRichText = null, t.CantChallengeButton = null, t.CantChallengeButtonLabel = null, t.DebuffNode = null, t.DebuffSKill = null, t.DebuffCount = null, t.ReduceButton = null, t.ReduceLabel = null, t.SkillDescLabel = null, t.GiftPackButton = null, t.GiftPackLabel = null, t._skillPrefab = null, t._upHeroDatas = [], t._upHeroNodes = [], t._rankRewards = [], t._dailyRewards = [], t._unloadAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(m.BundlePath.SkillItemComponent, cc.Prefab), n = this.LoadDynamicAsset(m.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._skillPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), [4, I.default.LoadActivityTexture(this._configData.CustomPart.Bg)];
                                case 1:
                                    return t = n.sent(), this._unloadAssets.push(t), this.Bg.spriteFrame = t, [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BossDetailLabel.string = "detail".ToUILocale(), this.MaxScoreLabel.string = "activityBoss_max_score".ToUILocale(), this.MyRankLabel.string = "activityBoss_cur_rank".ToUILocale(), this.NoRankLabel.string = "activityBoss_not_in_rank".ToUILocale(), this.NoRankRewardLabel.string = "activityBoss_no_rank_reward".ToUILocale(), this.GetRichText.string = "activityBoss_settle_reard".ToUILocale(), this.DailyRewardLabel.string = "activityBoss_reward_preview".ToUILocale(), this.MyScoreLabel.string = "activityBoss_score".ToUILocale(), this.MyRankNotLabel.string = "activityBoss_more_reward".ToUILocale(), this.ChallengeButtonLabel.string = "activityBoss_challenge".ToUILocale(), this.CantChallengeButtonLabel.string = "activityBoss_challenge".ToUILocale(), this.TaskButtonLabel.string = "activityBoss_challenge_task".ToUILocale(), this.ExchangeShopBtnLabel.string = "exchange_shop".ToUILocale(), this.ReduceLabel.string = "bossReduce_reduce".ToUILocale(), this.SkillDescLabel.string = "bossReduce_click_skill".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.UpButton.node.on("click", this.OnUpButtonClick, this), this.BossDetailButton.node.on("click", this.OnBossDetailButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.DailyRewardButton.node.on("click", this.OnDailyRewardButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnBtnClick, this), this.ExchangeShopBtn.node.on("click", this.OnShopClick, this), this.ReduceButton.node.on("click", this.OnReduceButtonClick, this), this.GiftPackButton.node.on("click", this.OnGiftPackButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._res = t[1], this._configData = u.DataCenter.Instance.ActivityConfigs[n], this._deadLine = I.default.Instance.ComputeExtraShowDeadTime(this._configData.Common), this.Title.string = this._configData.Common.Title, this._dailyRewardEndTime = C.TimeUtil.Get0ClockTs(u.RpcComponent.Instance.ServerTime) + _.Etc.DayDuration
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isRedisplay = t, this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetActivityTime(), this.SetSmallRankListComponent(), this.SetUpNode(), this.SetDebuffNode(), this.SetMaxScore(), this.SetDailyRewardNode(), this.SetBossNode(), this.SetBottomButton(), this.BindReddot(), this._isRedisplay || this.SetExtraSkillContent()
                }, t.prototype.SetActivityTime = function() {
                    this._isRedisplay || (this.CountDownActivityTime(), this.schedule(this.CountDownActivityTime, 1))
                }, t.prototype.CountDownActivityTime = function() {
                    var e = u.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    if (t < 0) this.unschedule(this.CountDownActivityTime), l.UIManager.Instance.BackUIPanel();
                    else {
                        var n = 24 - this._configData.CustomPart.EndTime;
                        this.TimeDesc.string = t > this._configData.Common.ExtraShowDays * _.Etc.DayDuration + n * _.Etc.HourDuration ? "activityBoss_remain_time".ToUILocale() : "activityBoss_show_time".ToUILocale();
                        var o = t > this._configData.Common.ExtraShowDays * _.Etc.DayDuration + n * _.Etc.HourDuration ? t - this._configData.Common.ExtraShowDays * _.Etc.DayDuration - n * _.Etc.HourDuration : t;
                        this.Time.string = I.default.ActivityTimeLeftFormat(o)
                    }
                }, t.prototype.SetSmallRankListComponent = function() {
                    var e = this,
                        t = new c.Req_Activity_GetRank;
                    t.ActivityId = this._configData._id, u.RpcComponent.Instance.Call(t, function(t) {
                        e._rankData = t, e.SmallRankListComponent.InitUIForActivity(e._configData._id, "activityBoss_score_rank".ToUILocale(), function() {
                            var t = new c.Req_Activity_GetRank;
                            t.ActivityId = e._configData._id, u.RpcComponent.Instance.Call(t, function(t) {
                                e._rankData = t;
                                var n = {};
                                n.ActivityId = e._configData._id, n.Title = "bossWar_rank_name".ToUILocale().Fmt(e._configData.Common.Title), n.RankDatas = [t], l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonActivityRankPanel.Path, n)
                            })
                        }, t), e.SetRankReward()
                    })
                }, t.prototype.SetRankReward = function() {
                    var e = this;
                    if (this.MyRankValue.node.active = this._rankData && this._rankData.MyRank > 0, this.NoRankLabel.node.active = !(this._rankData && this._rankData.MyRank > 0), this._rankData && this._rankData.MyRank) {
                        var t = I.default.GetRankRewardData(this._configData._RankRewards, this._rankData.MyRank);
                        t ? (this.GetRichText.node.active = !0, this.RewardsNode.active = !0, this.NoRankRewardLabel.node.active = !1, this.MyRankValue.string = this._rankData.MyRank.toString(), this._rankRewards.forEach(function(e) {
                            e.active = !1
                        }), t.Rewards.forEach(function(t, n) {
                            if (!e._rankRewards[n]) {
                                var o = cc.instantiate(e._itemPrefab);
                                o.parent = e.RewardsNode, e._rankRewards[n] = o
                            }
                            e._rankRewards[n].active = !0, e._rankRewards[n].getComponent(g.ItemComponent).Init({
                                ItemId: t.Items[0],
                                Count: t.Items[1]
                            }, g.ItemComponentType.ItemCommon)
                        })) : (this.GetRichText.node.active = !1, this.RewardsNode.active = !1, this.NoRankRewardLabel.node.active = !0)
                    }
                }, t.GetActivityBossUpData = function(e) {
                    var t = [];
                    return e.CustomPart.HeroIds.forEach(function(e) {
                        var n = {},
                            o = u.DataCenter.Instance.GetDataById(c.HeroInfo_Model, e);
                        o ? (n.havaHero = !0, n.maxStar = o.MaxStar) : (n.havaHero = !1, n.maxStar = 0), n.heroId = e, t.push(n)
                    }), t.sort(function(e, t) {
                        return e.havaHero && !t.havaHero ? -1 : !e.havaHero && t.havaHero ? 1 : t.maxStar - e.maxStar
                    }), t
                }, t.GetActivityBossUpValue = function(e, t) {
                    var o = 0;
                    return t.forEach(function(t) {
                        if (t.havaHero && t.maxStar >= n.StartBonusStar) {
                            var r = e.CustomPart.Bonus[t.maxStar - n.StartBonusStar];
                            o += r
                        }
                    }), o = Math.floor(o / 10)
                }, t.prototype.SetUpNode = function() {
                    var e = this;
                    if (this.UpNode.active = this._configData.CustomPart.HeroIds && this._configData.CustomPart.HeroIds.length > 0, this._upHeroNodes.forEach(function(e) {
                            e.active = !1
                        }), this._configData.CustomPart.HeroIds && this._configData.CustomPart.HeroIds.length > 0) {
                        this._upHeroDatas = n.GetActivityBossUpData(this._configData);
                        var t = n.GetActivityBossUpValue(this._configData, this._upHeroDatas);
                        this.UpRichText.string = "activityBoss_hero_up".ToUILocale().Fmt(t + "%"), this._upHeroDatas.forEach(function(t, o) {
                            if (!e._upHeroNodes[o]) {
                                var r = cc.instantiate(e._itemPrefab);
                                r.parent = e.UpHeroContent, e._upHeroNodes[o] = r
                            }
                            e._upHeroNodes[o].active = !0;
                            var i = e._upHeroNodes[o].getComponent(g.ItemComponent);
                            i.Init({
                                ItemId: t.heroId,
                                StarLevel: t.maxStar
                            }, g.ItemComponentType.HeroInfo), t.havaHero && t.maxStar >= n.StartBonusStar ? (i.DisableMask(), i.Name.node.active = !0, i.Name.node.color = new cc.Color(0, 255, 0), i.Name.string = Math.floor(e._configData.CustomPart.Bonus[t.maxStar - n.StartBonusStar] / 10) + "%") : (i.EnableMask(), i.Name.node.active = !1)
                        })
                    }
                }, t.prototype.SetDebuffNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this.DebuffNode.active = this._configData.CustomPart.Skill.length > 1, this._configData.CustomPart.Skill.length > 1 ? (e = this._configData.CustomPart.Skill[0], this._skillNode ? [3, 2] : [4, this.LoadDynamicAsset(m.BundlePath.SkillItemComponent, cc.Prefab)]) : [3, 3];
                                case 1:
                                    if (t = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._skillNode = cc.instantiate(t), this._skillNode.parent = this.DebuffSKill, r.label = 2;
                                case 2:
                                    this._skillNode.getComponent(P.default).Init(e), o = n.GetReduceCount(this._configData), this.DebuffCount.string = "x{0}".Fmt(o), r.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.GetReduceCount = function(e) {
                    var t = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, e._id),
                        n = e.CustomPart.Skill[1],
                        o = 0,
                        r = 0,
                        i = C.TimeUtil.GetDiffDays(e.Common.StartTime, u.RpcComponent.Instance.ServerTime, !0) + 1;
                    if (i > e.Conditions[e.Conditions.length - 1].Id) o = e.Conditions[e.Conditions.length - 1].Reduce;
                    else
                        for (var a = 0; a < e.Conditions.length; a++)
                            if (i == e.Conditions[a].Id) {
                                o = e.Conditions[a].Reduce;
                                break
                            } if (t.IntMap) {
                        var s = function(n) {
                            var o = e.__Props.find(function(e) {
                                return e.Id == Number(n)
                            });
                            o && (r += o.Reduce * t.IntMap[n])
                        };
                        for (var l in t.IntMap) s(l)
                    }
                    return Math.max(0, n - o - r)
                }, t.prototype.SetMaxScore = function() {
                    this.MaxScoreValue.string = this._model.IntArray[0].FmtCurrency()
                }, t.prototype.SetDailyRewardNode = function() {
                    this.SetDailyRewardState(), this.SetDailyRewardTime(), this.SetCount()
                }, t.prototype.SetDailyRewardState = function() {
                    var e = this;
                    this.MyScoreLabel.node.active = this._model.IntArray[1] > 0, this.MyScoreValue.node.active = this._model.IntArray[1] > 0, this.MyRewardNode.active = this._model.IntArray[1] > 0, this.MyRankNotLabel.node.active = 0 == this._model.IntArray[1], this._model.IntArray[1] > 0 && (this.MyScoreValue.string = this._model.IntArray[1].FmtCurrency(), this._dailyRewards.forEach(function(e) {
                        e.active = !1
                    }), this.GetNextRewardData().Rewards.forEach(function(t, n) {
                        if (!e._dailyRewards[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.MyRewardNode, e._dailyRewards[n] = o
                        }
                        e._dailyRewards[n].active = !0, e._dailyRewards[n].getComponent(g.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        }, g.ItemComponentType.ItemCommon)
                    }))
                }, t.prototype.SetDailyRewardTime = function() {
                    this._isRedisplay || (this.CountDownDailyRewarTime(), this.schedule(this.CountDownDailyRewarTime, 1))
                }, t.prototype.SetCount = function() {
                    var e = I.default.Instance.ComputeDeadTime(this._configData.Common);
                    if (u.RpcComponent.Instance.ServerTime >= e) this.CountRichText.string = "activityBoss_end".ToUILocale();
                    else {
                        var t = this._configData.CustomPart.Count - this._model.IntValue > 0 ? this._configData.CustomPart.Count - this._model.IntValue : 0,
                            n = t > 0 ? "" + t : "<color=#ff0000>" + t + "</c>";
                        this.CountRichText.string = "<color=#624e3c>{0}{1}/{2}</c>".Fmt("bossWar_remain_times".ToUILocale(), n, this._configData.CustomPart.Count)
                    }
                }, t.GetCurScoreReward = function(e, t) {
                    var n = null;
                    return e.__Rewards.forEach(function(e) {
                        t >= e.Score && (n = e)
                    }), n
                }, t.prototype.GetNextRewardData = function() {
                    var e, t = n.GetCurScoreReward(this._configData, this._model.IntArray[1]);
                    e = t ? t.Id + 1 : 1;
                    var o = this._configData.__Rewards.find(function(t) {
                        return t.Id == e
                    });
                    return o || (o = t), o
                }, t.prototype.CountDownDailyRewarTime = function() {
                    var e = u.RpcComponent.Instance.ServerTime,
                        t = this._dailyRewardEndTime - e;
                    if (t < 0) return this._dailyRewardEndTime = C.TimeUtil.Get0ClockTs(u.RpcComponent.Instance.ServerTime) + _.Etc.DayDuration, void this.DisPlay(!0);
                    this.TimeRichText.string = "activityBoss_receive_time".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(t))
                }, t.prototype.SetBossNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e = this._configData.CustomPart.MapId, (t = u.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, e)) ? (n = 0, t.Heros.forEach(function(e) {
                                        e.Items[2] && (n = e[1])
                                    }), n || (n = t.Heros[0].Items[1]), this._avatar ? [3, 2] : (o = u.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, n)) ? [4, this.LoadDynamicAsset("Hero_" + o.Model + "/HeroAvatar", cc.Prefab)] : [2]) : [2];
                                case 1:
                                    if (r = a.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(r), [2];
                                    (i = cc.instantiate(r)).parent = this.BossNode, this._avatar = i, i.getComponent(sp.Skeleton).setAnimation(0, d.SkillAnimationType.Standby, !0), this.BossNameAndLv.string = "Lv." + t.Strength[1] + " " + n.ToHeroName(), a.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetBottomButton = function() {
                    this.ExchangeShopBtn.node.active = this._configData._Shops && this._configData._Shops.length > 0, this.GiftPackButton.node.active = this._configData._Packs && this._configData._Packs.length > 0, this._configData._Packs && this._configData._Packs.length > 0 && (this.GiftPackLabel.string = this._configData._Packs[0].Name);
                    var e = I.default.Instance.ComputeDeadTime(this._configData.Common);
                    this.CantChallengeButton.node.active = u.RpcComponent.Instance.ServerTime >= e, this.ChallengeButton.node.active = u.RpcComponent.Instance.ServerTime < e
                }, t.prototype.SetExtraSkillContent = function() {
                    this.ExtraSkillContent.active = !1;
                    var e = [];
                    if (this._res.Params[0] && this._res.Params[0].Items.length > 0)
                        for (var t = 0; t < this._res.Params[0].Items.length; t++) this._res.Params[0].Items[t] > 0 && e.push(this._res.Params[0].Items[t]);
                    if (e.length > 0)
                        for (this.ExtraSkillContent.active = !0, this.ExtraSkillTitle.string = "bossWar_random_skill_sub".ToUILocale(), t = 0; t < e.length; t++) {
                            var n = cc.instantiate(this._skillPrefab);
                            n.setParent(this.ExtraSkillContent), n.getComponent(P.default).Init(e[t])
                        }
                }, t.prototype.BindReddot = function() {
                    w.RedDotManager.Instance.BindInstance(this.ChallengeButton.node, w.RedDotManager.Instance.InstanceRedDot.ActivityBossChallengeNode, {
                        Value1: this._configData._id
                    }), w.RedDotManager.Instance.BindInstance(this.TaskButton.node, w.RedDotManager.Instance.InstanceRedDot.ActivityBossTaskNode, {
                        Value1: this._configData._id
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsNode.children.indexOf(t) ? y.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t) : -1 != this.MyRewardNode.children.indexOf(t) && y.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "activityBoss_rule_main_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["activityBoss_rule_content".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnUpButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.ActivityBossUpPreviewPanel.Path, this._configData)
                }, t.prototype.OnBossDetailButtonClick = function() {
                    var e = this._configData.CustomPart.MapId;
                    u.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, e) && l.UIManager.Instance.ShowUIPanel(m.PanelConfig.BossWarPreviewPanel.Path, e)
                }, t.prototype.GetRankRewardDatas = function() {
                    var e = this.GetNextRankScoreReward(),
                        t = {};
                    t.Title = "activityBoss_dialy_reward".ToUILocale(), t.LeftLabel = "activityBoss_my_score".ToUILocale().Fmt(this._model.IntArray[1]), t.RuleData = {
                        name: "activityBoss_daily_rule_main".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["activityBoss_daily_rule_content".ToUILocale()]
                    }, t.RightLabel = e ? "activityBoss_next_level".ToUILocale().Fmt(e.Score - this._model.IntArray[1]) : "activityBoss_has_receive".ToUILocale();
                    var n = {};
                    if (n.Mode = S.CommonMultiRewardRankMode.RankLabel, n.RankLabel1 = "activityBoss_score".ToUILocale(), n.RankLabel2 = this._model.IntArray[1].FmtCurrency(), this._model.IntArray[1] < this._configData.__Rewards[0].Score) n.Rewards = [], n.IsEmptyReward = !0;
                    else {
                        for (var o = void 0, r = this._configData.__Rewards.length - 1; r >= 0; r--) {
                            var i = this._configData.__Rewards[r];
                            if (this._model.IntArray[1] >= i.Score) {
                                o = i;
                                break
                            }
                        }
                        n.IsEmptyReward = !1, n.Rewards = o.Rewards
                    }
                    t.MyData = n;
                    var a = [];
                    for (r = this._configData.__Rewards.length - 1; r >= 0; r--) {
                        var s = this._configData.__Rewards[r],
                            l = {};
                        l.Mode = S.CommonMultiRewardRankMode.RankLabel, l.RankLabel1 = "activityBoss_score".ToUILocale(), l.RankLabel2 = s.Score.FmtCurrency(), l.Rewards = s.Rewards, l.IsEmptyReward = !1, a.push(l)
                    }
                    t.ItemDatas = a;
                    var c = {};
                    c.Title = "activityBoss_rank_reward".ToUILocale(), c.MidLabel = "activityBoss_my_rank".ToUILocale(), c.RuleData = {
                        name: "activityBoss_rank_rule_main".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["activityBoss_rank_rule_content".ToUILocale()]
                    };
                    var u = {};
                    if (u.Mode = S.CommonMultiRewardRankMode.RankNum, this._rankData && this._rankData.MyRank) {
                        var p = this.GetCurrentRankReward();
                        u.IsEmptyReward = !1, u.RankNum = [this._rankData.MyRank, this._rankData.MyRank], u.Rewards = p.Rewards
                    } else u.IsEmptyReward = !0, u.RankNum = [0, 0], u.Rewards = [];
                    c.MyData = u;
                    var d = [];
                    return this._configData._RankRewards.forEach(function(e) {
                        var t = {
                            IsEmptyReward: !1
                        };
                        t.Mode = S.CommonMultiRewardRankMode.RankNum, t.RankNum = e.Rank, t.Rewards = e.Rewards, d.push(t)
                    }), c.ItemDatas = d, [t, c]
                }, t.prototype.GetNextRankScoreReward = function() {
                    for (var e, t = 0; t < this._configData.__Rewards.length; t++) {
                        var n = this._configData.__Rewards[t];
                        if (this._model.IntArray[1] < n.Score) {
                            e = n;
                            break
                        }
                    }
                    return e
                }, t.prototype.GetCurrentRankReward = function() {
                    for (var e, t = 0; t < this._configData._RankRewards.length; t++) {
                        var n = this._configData._RankRewards[t];
                        if (this._rankData.MyRank >= n.Rank[0] && this._rankData.MyRank <= n.Rank[1]) {
                            e = n;
                            break
                        }
                        this._rankData.MyRank >= n.Rank[0] && 0 == n.Rank[1] && (e = n)
                    }
                    return e
                }, t.prototype.OnRewardButtonClick = function() {
                    var e = this.GetRankRewardDatas();
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonMultiRewardPanel.Path, e, 1)
                }, t.prototype.OnDailyRewardButtonClick = function() {
                    var e = this.GetRankRewardDatas();
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonMultiRewardPanel.Path, e, 0)
                }, t.prototype.OnChallengeButtonClick = function() {
                    var e = I.default.Instance.ComputeExtraShowDeadTime(this._configData.Common) - _.Etc.DayDuration * (this._configData.Common.ExtraShowDays + 1);
                    if (u.RpcComponent.Instance.ServerTime >= e + this._configData.CustomPart.EndTime * _.Etc.HourDuration) y.UIUtlity.ShowFloatingHint("activityBoss_challenge_end".ToUILocale());
                    else if (this._model.IntValue >= this._configData.CustomPart.Count) y.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale());
                    else {
                        var t = u.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, this._configData.CustomPart.MapId);
                        t && b.BattleManager.Instance.ResumePlayBattle(t.Type) || n.StartBattle(this._configData.CustomPart.MapId, this._configData._id)
                    }
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = [],
                        t = [];
                    this._configData._Tasks.forEach(function(n) {
                        n.IsDaily ? e.push(n) : t.push(n)
                    });
                    var n = {
                        IsActivity: !0
                    };
                    n.Title = "activityBoss_daily_challenge".ToUILocale(), n.Tasks = e, n.ActivityId = this._configData._id, n.Reddot = w.RedDotManager.Instance.InstanceRedDot.ActivityBossTaskDailyNode;
                    var o = {
                        IsActivity: !0
                    };
                    o.Title = "activityBoss_period_challenge".ToUILocale(), o.Tasks = t, o.ActivityId = this._configData._id, o.Reddot = w.RedDotManager.Instance.InstanceRedDot.ActivityBossTaskPeriodNode, l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonTaskPanel.Path, [n, o])
                }, t.prototype.OnShopClick = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.ActivityExchangeShopPanel.Path, this._configData._id, 1)
                }, t.prototype.OnReduceButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.ActivityBossReducePanel.Path, this._configData._id)
                }, t.prototype.OnGiftPackButtonClick = function() {
                    var e = this._configData.Common.Pictures,
                        t = {
                            ActivityId: this._configData._id,
                            ActivityGiftPackData: this._configData._Packs,
                            Deadline: I.default.Instance.ComputeDeadTime(this._configData.Common),
                            BannerPath: e[0],
                            Title: this._configData._Packs[0].Name
                        };
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnReturnBtnClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.InitBattle = function() {
                    [d.MapType.ActivityBoss, d.MapType.ActivityBoss2, d.MapType.ActivityBoss3].forEach(function(e) {
                        l.Game.EventDispatcher.Only(d.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                    })
                }, t.RestartBattle = function() {
                    n.StartBattle(n._CurrentBattleMapId, n._CurrentActivityId)
                }, t.StartBattle = function(e, t) {
                    n._CurrentBattleMapId = e, n._CurrentActivityId = t, n.NextBattleIndex = 0, l.UIManager.Instance.ShowUIPanel(m.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.RequestChallenge(e)
                    }, [e, e], n._CurrentActivityId)
                }, t.RequestChallenge = function(e) {
                    var t = new c.Req_Activity_ActivityBossChallenge;
                    t.ActivityId = n._CurrentActivityId, t.Formations = e, u.RpcComponent.Instance.Call(t, function(e) {
                        n.BattleReports = e.Reports;
                        var t = {
                                BossHPBarCapacityArray: u.DataCenter.Instance.ActivityConfigs[n._CurrentActivityId].CustomPart.Hps,
                                DontCloseOnEnd: !0
                            },
                            o = n.GetNextBattleReport(),
                            r = b.BattleManager.Instance.StartPlay(o, t);
                        l.UIManager.Instance.ShowUIPanel(m.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, d.CampType.Attacker, r)
                    }.bind(this))
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.BattleReports && n.NextBattleIndex < n.BattleReports.length && (e = n.BattleReports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.ShowNextBattle = function(e) {
                    b.BattleManager.Instance.NextWave(e)
                }, t.SettleBattle = function(e) {
                    var t = n.GetNextBattleReport();
                    if (t) e.Reports[0] = t, e.InBackground ? b.BattleManager.Instance.NextWave(e) : l.UIManager.Instance.ShowUIPanel(m.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, d.CampType.Attacker, e, n.ShowNextBattle);
                    else {
                        delete v.BattleData.PlayingBattleDatas[e.MapType];
                        var o = new c.Req_Map_BattleSettlement;
                        o.MapType = e.MapType, u.RpcComponent.Instance.Call(o, function(t) {
                            var o;
                            o = n.Settlement_prefab_path, e.SettleParams = t.ExtraParam[0].Items.concat(t.ExtraParam[1].Items), e.Reports = n.BattleReports;
                            var r = e.SettleParams[0];
                            u.DataCenter.Instance.ActivityConfigs[r] && (e.InBackground ? b.BattleManager.Instance.ShowSettlePanel(m.PanelConfig.SettlementWinPanel.Path, o, e, t.Rewards, t.Result) : l.UIManager.Instance.ShowUIPanel(m.PanelConfig.SettlementWinPanel.Path, o, e, t.Rewards, t.Result))
                        })
                    }
                }, t.CancelBattle = function(e) {
                    var t = new c.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, u.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(m.PanelConfig.ActivityBossPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._unloadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.StartBonusStar = 5, t.Settlement_prefab_path = "ActivityBossPanel/SubItems/ActivityBossSettlementComponent", t._CurrentBattleMapId = 0, t._CurrentActivityId = 0, t.BattleReports = null, t.NextBattleIndex = 0, i([R(cc.Sprite)], t.prototype, "Bg", void 0), i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.Button)], t.prototype, "RuleButton", void 0), i([R(cc.Label)], t.prototype, "TimeDesc", void 0), i([R(cc.Label)], t.prototype, "Time", void 0), i([R(h.default)], t.prototype, "SmallRankListComponent", void 0), i([R(cc.Node)], t.prototype, "ExtraSkillContent", void 0), i([R(cc.Label)], t.prototype, "ExtraSkillTitle", void 0), i([R(cc.Node)], t.prototype, "UpNode", void 0), i([R(cc.RichText)], t.prototype, "UpRichText", void 0), i([R(cc.Button)], t.prototype, "UpButton", void 0), i([R(cc.Node)], t.prototype, "UpHeroContent", void 0), i([R(cc.Node)], t.prototype, "BossNode", void 0), i([R(cc.Label)], t.prototype, "BossNameAndLv", void 0), i([R(cc.Button)], t.prototype, "BossDetailButton", void 0), i([R(cc.Label)], t.prototype, "BossDetailLabel", void 0), i([R(cc.Label)], t.prototype, "MaxScoreLabel", void 0), i([R(cc.Label)], t.prototype, "MaxScoreValue", void 0), i([R(cc.Label)], t.prototype, "MyRankLabel", void 0), i([R(cc.Label)], t.prototype, "MyRankValue", void 0), i([R(cc.Label)], t.prototype, "NoRankLabel", void 0), i([R(cc.Label)], t.prototype, "NoRankRewardLabel", void 0), i([R(cc.Node)], t.prototype, "RewardsNode", void 0), i([R(cc.RichText)], t.prototype, "GetRichText", void 0), i([R(cc.Button)], t.prototype, "RewardButton", void 0), i([R(cc.Label)], t.prototype, "DailyRewardLabel", void 0), i([R(cc.Label)], t.prototype, "MyScoreLabel", void 0), i([R(cc.Label)], t.prototype, "MyScoreValue", void 0), i([R(cc.Node)], t.prototype, "MyRewardNode", void 0), i([R(cc.Button)], t.prototype, "DailyRewardButton", void 0), i([R(cc.Button)], t.prototype, "ChallengeButton", void 0), i([R(cc.Label)], t.prototype, "ChallengeButtonLabel", void 0), i([R(cc.RichText)], t.prototype, "TimeRichText", void 0), i([R(cc.Label)], t.prototype, "MyRankNotLabel", void 0), i([R(cc.Button)], t.prototype, "TaskButton", void 0), i([R(cc.Label)], t.prototype, "TaskButtonLabel", void 0), i([R(cc.Button)], t.prototype, "ReturnButton", void 0), i([R(cc.Button)], t.prototype, "ExchangeShopBtn", void 0), i([R(cc.Label)], t.prototype, "ExchangeShopBtnLabel", void 0), i([R(cc.RichText)], t.prototype, "CountRichText", void 0), i([R(cc.Button)], t.prototype, "CantChallengeButton", void 0), i([R(cc.Label)], t.prototype, "CantChallengeButtonLabel", void 0), i([R(cc.Node)], t.prototype, "DebuffNode", void 0), i([R(cc.Node)], t.prototype, "DebuffSKill", void 0), i([R(cc.Label)], t.prototype, "DebuffCount", void 0), i([R(cc.Button)], t.prototype, "ReduceButton", void 0), i([R(cc.Label)], t.prototype, "ReduceLabel", void 0), i([R(cc.Label)], t.prototype, "SkillDescLabel", void 0), i([R(cc.Button)], t.prototype, "GiftPackButton", void 0), i([R(cc.Label)], t.prototype, "GiftPackLabel", void 0), n = i([T], t)
            }(l.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CommonMultiRewardComponent": "CommonMultiRewardComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent"
    }],
    ActivityBossReduceComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b423cBbPhZPrKzuCxpo0gRZ", "ActivityBossReduceComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("./ItemComponent"),
            c = e("./CurrencyBarItem"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ReduceCount = null, t.ItemNode = null, t.CurrencyNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._itemPrefab = e, this._currencyPrefab = t, this._propConfig = n, this.SetItemNode(), this.SetCurrencyNode()
                }, t.prototype.SetItemNode = function() {
                    if (this.ReduceCount.string = "bossReduce_reduce_count".ToUILocale().Fmt(this._propConfig.Reduce), !this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.parent = this.ItemNode, e.y = -15, this._itemComponent = e.getComponent(l.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: this._propConfig.Id
                    })
                }, t.prototype.SetCurrencyNode = function() {
                    if (!this._currency) {
                        var e = cc.instantiate(this._currencyPrefab);
                        e.x = 0, e.parent = this.CurrencyNode, this._currency = e.getComponent(c.default)
                    }
                    var t = s.DataCenter.Instance.GetItemCount(this._propConfig.Id);
                    this._currency.Init(this._propConfig.Id, !1, t), this._currency.HideIcon(), this._currency.SetFixedWidth(180)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(l.ItemComponent).ItemId, t)
                }, i([f(cc.Label)], t.prototype, "ReduceCount", void 0), i([f(cc.Node)], t.prototype, "ItemNode", void 0), i([f(cc.Node)], t.prototype, "CurrencyNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CurrencyBarItem": "CurrencyBarItem",
        "./ItemComponent": "ItemComponent"
    }],
    ActivityBossReducePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "53c0eUddXhH3ZkTILNU0pBH", "ActivityBossReducePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("./ActivityBossPanel"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ActivityBossReduceComponent"),
            y = e("../../../Util/TimeUtil"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("./ChaosElementEffectPanel"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.LevelTitle = null, t.BossName = null, t.Level = null, t.Desc = null, t.ReduceTitle = null, t.ReduceContent = null, t.RuleButton = null, t.UseButton = null, t.UseLabel = null, t.CompleteNode = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityBossPanel/SubItems/ActivityBossReduceComponent", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset(h.BundlePath.CurrencyBarComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._reducePrefab = e[0], r._itemPrefab = e[1], r._currencyPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "bossReduce_reduce_title1".ToUILocale(), this.LevelTitle.string = "bossReduce_reduce_title2".ToUILocale(), this.ReduceTitle.string = "bossReduce_reduce_title3".ToUILocale(), this.UseLabel.string = "bossReduce_auto_use".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.UseButton.node.on("click", this.OnUseButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._configData = u.DataCenter.Instance.ActivityConfigs[this._activityId], this._reduceNodes = []
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetBossName(), this.SetLevelCount(), this.SetMaterialContent()
                }, t.prototype.SetBossName = function() {
                    var e = this._configData.CustomPart.MapId,
                        t = u.ConfigDataComponent.Instance.GetConfigById(c.MapBase_Config, e);
                    if (t) {
                        var n = 0;
                        t.Heros.forEach(function(e) {
                            e.Items[2] && (n = e[1])
                        }), n || (n = t.Heros[0].Items[1]), this.BossName.string = n.ToHeroName()
                    }
                }, t.prototype.SetLevelCount = function() {
                    var e = this._configData.CustomPart.Skill[1],
                        t = d.default.GetReduceCount(this._configData);
                    if (this.Level.string = t + "/" + e, this.Desc.node.active = t > 0, this.CompleteNode.active = 0 == t, this.UseButton.node.active = t > 0, t > 0) {
                        var n, o, r = y.TimeUtil.GetDiffDays(this._configData.Common.StartTime, u.RpcComponent.Instance.ServerTime, !0) + 1;
                        if (!this._reduceMap) {
                            this._reduceMap = {};
                            for (var i = 0; i < this._configData.Conditions.length; i++) this._reduceMap[this._configData.Conditions[i].Id] = this._configData.Conditions[i].Reduce
                        }
                        n = this._reduceMap[r] ? this._reduceMap[r] : this._configData.Conditions[this._configData.Conditions.length - 1].Reduce, o = this._reduceMap[r + 1] ? this._reduceMap[r + 1] : this._configData.Conditions[this._configData.Conditions.length - 1].Reduce, this.Desc.string = "bossReduce_tommorow_reduce".ToUILocale().Fmt(o - n)
                    }
                }, t.prototype.SetMaterialContent = function() {
                    var e = this;
                    this._reduceNodes.forEach(function(e) {
                        e.active = !1
                    }), this._configData.__Props.forEach(function(t, n) {
                        if (!e._reduceNodes[n]) {
                            var o = cc.instantiate(e._reducePrefab);
                            o.parent = e.ReduceContent, e._reduceNodes[n] = o
                        }
                        e._reduceNodes[n].active = !0, e._reduceNodes[n].getComponent(f.default).Init(e._itemPrefab, e._currencyPrefab, t)
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ChaosElementEffectPanel.Path, 1, m.ChaosElementEffectType.ActivityBoss)
                }, t.prototype.OnUseButtonClick = function() {
                    var e = this;
                    if (!I.default.CheckActivityIsEnd(this._configData.Common, !0))
                        if (0 != d.default.GetReduceCount(this._configData)) {
                            var t = [],
                                n = 0;
                            if (this._configData.__Props.forEach(function(e) {
                                    var o = u.DataCenter.Instance.GetItemCount(e.Id);
                                    if (o > 0) {
                                        var r = new p.IntArray;
                                        r.Items = [e.Id, o], n += e.Reduce * o, t.push(r)
                                    }
                                }), 0 != t.length) {
                                var o = new p.Req_Activity_ActivityBossUseItems;
                                o.ActivityId = this._configData._id, o.Items = t, u.RpcComponent.Instance.Call(o, function() {
                                    e.SetUIContent(), d.default.GetReduceCount(e._configData) > 0 ? g.UIUtlity.ShowFloatingHint("bossReduce_success_count".ToUILocale().Fmt(n)) : g.UIUtlity.ShowFloatingHint("bossReduce_success".ToUILocale())
                                })
                            } else g.UIUtlity.ShowFloatingHint("bossReduce_not_enough".ToUILocale())
                        } else g.UIUtlity.ShowFloatingHint("bossReduce_reduce_complete".ToUILocale())
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Label)], t.prototype, "LevelTitle", void 0), i([v(cc.Label)], t.prototype, "BossName", void 0), i([v(cc.Label)], t.prototype, "Level", void 0), i([v(cc.RichText)], t.prototype, "Desc", void 0), i([v(cc.Label)], t.prototype, "ReduceTitle", void 0), i([v(cc.Node)], t.prototype, "ReduceContent", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Button)], t.prototype, "UseButton", void 0), i([v(cc.Label)], t.prototype, "UseLabel", void 0), i([v(cc.Node)], t.prototype, "CompleteNode", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityBossReduceComponent": "ActivityBossReduceComponent",
        "./ActivityBossPanel": "ActivityBossPanel",
        "./ChaosElementEffectPanel": "ChaosElementEffectPanel"
    }],
    ActivityBossSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b2134JjLVZE0ok6Tuwkv18x", "ActivityBossSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("./CustomRichText"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../EZFramework/UIFrame/UIManager"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Components/Components"),
            m = e("../../Components/Components"),
            I = e("../Panel/ActivityBossPanel"),
            _ = e("./ItemComponent"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../Battle/BattleManager"),
            S = e("../../Auxiliary/DataUtlity"),
            w = e("../../../Consts/Consts"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BattleName = null, t.ScoreDescLabel = null, t.MaxScoreLabel = null, t.NewRecordNode = null, t.BaseScoreLabel1 = null, t.BaseScoreLabel2 = null, t.ScoreUp = null, t.RankDescLabel = null, t.RankLabel = null, t.RewardkDescLabel = null, t.ScrollerRewardNode = null, t.ScrollerNode = null, t.RewardNode = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t.NoRewardLabel = null, t.BtnNextLevel = null, t.LabelBtnNextLevel = null, t._isInit = !1, t._activityId = 0, t._reward = [], t._baseScore = 0, t._rewardNodes = [], t._assests = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    y.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    y.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.SetUI = function(t, n) {
                    e.prototype.SetUI.call(this, t), this._activityId = t.SettleParams[0], this._baseScore = t.SettleParams[1], this._rank = t.SettleParams[2], this._baseScore1 = t.SettleParams[4], this._baseScore2 = t.SettleParams[5], this._reward = n, this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.SetBattleName(), this.SetScore(), this.SetRank(), this.SetBtnState(), this.RenderContent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.ScoreDescLabel.string = "activityBoss_cur_score".ToUILocale(), this.RankDescLabel.string = "activityBoss_cur_rank".ToUILocale(), this.RewardkDescLabel.string = "activityBoss_reward".ToUILocale(), this.NoRewardLabel.string = "activityBoss_no_reward".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale(), this.LabelBtnNextLevel.string = "common_challenge_again".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnNextLevel.node.on("click", this.OnBtnNextClick, this)
                }, t.prototype.SetBtnState = function() {
                    var e = d.UIManager.Instance.GetUIPanel(h.PanelConfig.ActivityBossPanel.Path);
                    this.BtnReturn.node.active = null == e
                }, t.prototype.SetScore = function() {
                    var e = g.DataCenter.Instance.ActivityConfigs[this._activityId],
                        t = g.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId),
                        n = I.default.GetActivityBossUpData(e),
                        o = I.default.GetActivityBossUpValue(e, n),
                        r = Math.floor(this._baseScore1 * (1 + o / 100)),
                        i = Math.floor(this._baseScore2 * (1 + o / 100)),
                        a = r + i;
                    this.MaxScoreLabel.string = a.toString(), this.NewRecordNode.active = a >= t.IntArray[0], this.BaseScoreLabel1.string = "activityBoss_count_score".ToUILocale().Fmt(1, r), this.BaseScoreLabel2.string = "activityBoss_count_score".ToUILocale().Fmt(2, i), this.ScoreUp.node.active = e.CustomPart.HeroIds && e.CustomPart.HeroIds.length > 0, e.CustomPart.HeroIds && e.CustomPart.HeroIds.length > 0 && (this.ScoreUp.string = "activityBoss_score_up_num".ToUILocale().Fmt(o + "%"))
                }, t.prototype.SetRank = function() {
                    this._rank > 0 ? this.RankLabel.string = "activityBoss_rank_num".ToUILocale().Fmt(this._rank) : this.RankLabel.string = "activityBoss_not_in_rank".ToUILocale()
                }, t.prototype.OnBtnSureClick = function() {
                    d.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    var e = this,
                        t = new p.Req_Activity_CommonEnter;
                    t.ActivityId = this._activityId, g.RpcComponent.Instance.Call(t, function(t) {
                        d.UIManager.Instance.BackUIPanel(), y.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityBossPanel.Path, e._activityId, t)
                    })
                }, t.prototype.OnBtnNextClick = function() {
                    d.UIManager.Instance.BackUIPanel(), this.CheckCanNextLevel() && (this._BattleData.InBackground && v.UIUtlity.ShowFloatingHint("common_challenge_again_hint".ToUILocale()), this.RequestChallenge(null, this._BattleData.InBackground))
                }, t.prototype.SetBattleName = function() {
                    this.ConfigBattleName()
                }, t.prototype.ConfigBattleName = function() {
                    var e = g.DataCenter.Instance.ActivityConfigs[this._activityId],
                        t = m.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, e.CustomPart.MapId),
                        n = "";
                    if (t) {
                        var o = 0;
                        t.Heros.forEach(function(e) {
                            e.Items[2] && (o = e[1])
                        }), o || (o = t.Heros[0].Items[1]), n = o.ToHeroName()
                    }
                    var r = e.Common.Title + "\xb7" + n;
                    this.BattleName.Init(r)
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, f.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return e = o.sent(), this.isValid ? (this._assests.push(e), this._reward && this._reward.length > 0 ? (this.NoRewardLabel.node.active = !1, this._reward.length > 5 ? (this.ScrollerNode.active = !0, this.RewardNode.active = !1, t = this.ScrollerRewardNode) : (this.ScrollerNode.active = !1, this.RewardNode.active = !0, t = this.RewardNode), this._rewardNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._reward.forEach(function(o, r) {
                                        if (!n._rewardNodes[r]) {
                                            var i = cc.instantiate(e);
                                            i.parent = t, n._rewardNodes[r] = i
                                        }
                                        n._rewardNodes[r].active = !0, n._rewardNodes[r].getComponent(_.ItemComponent).Init(o, _.ItemComponentType.ItemCommon)
                                    })) : (this.ScrollerNode.active = !1, this.RewardNode.active = !1, this.NoRewardLabel.node.active = !0), [2]) : (f.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.CheckCanNextLevel = function() {
                    var e = g.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId),
                        t = g.DataCenter.Instance.ActivityConfigs[this._activityId],
                        n = S.default.Instance.ComputeExtraShowDeadTime(t.Common) - w.Etc.DayDuration * (t.Common.ExtraShowDays + 1);
                    return g.RpcComponent.Instance.ServerTime >= n + t.CustomPart.EndTime * w.Etc.HourDuration ? (v.UIUtlity.ShowFloatingHint("activityBoss_challenge_end".ToUILocale()), !1) : !(e.IntValue >= t.CustomPart.Count && (v.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale()), 1))
                }, t.prototype.RequestChallenge = function(e, t) {
                    var n = new p.Req_Activity_ActivityBossChallenge;
                    n.ActivityId = this._activityId, n.Formations = e, g.RpcComponent.Instance.Call(n, function(e) {
                        b.BattleManager.Instance.StartPlay(e.Reports, null, t)
                    }.bind(this))
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ScrollerRewardNode.children.indexOf(t) ? v.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t) : -1 != this.RewardNode.children.indexOf(t) && v.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._assests.forEach(function(e) {
                        f.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([T(c.CustomRichText)], t.prototype, "BattleName", void 0), i([T(cc.Label)], t.prototype, "ScoreDescLabel", void 0), i([T(cc.Label)], t.prototype, "MaxScoreLabel", void 0), i([T(cc.Node)], t.prototype, "NewRecordNode", void 0), i([T(cc.Label)], t.prototype, "BaseScoreLabel1", void 0), i([T(cc.Label)], t.prototype, "BaseScoreLabel2", void 0), i([T(cc.RichText)], t.prototype, "ScoreUp", void 0), i([T(cc.Label)], t.prototype, "RankDescLabel", void 0), i([T(cc.Label)], t.prototype, "RankLabel", void 0), i([T(cc.Label)], t.prototype, "RewardkDescLabel", void 0), i([T(cc.Node)], t.prototype, "ScrollerRewardNode", void 0), i([T(cc.Node)], t.prototype, "ScrollerNode", void 0), i([T(cc.Node)], t.prototype, "RewardNode", void 0), i([T(cc.Button)], t.prototype, "BtnReturn", void 0), i([T(cc.Button)], t.prototype, "BtnSure", void 0), i([T(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([T(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([T(cc.Label)], t.prototype, "NoRewardLabel", void 0), i([T(cc.Button)], t.prototype, "BtnNextLevel", void 0), i([T(cc.Label)], t.prototype, "LabelBtnNextLevel", void 0), i([A], t)
            }(l.default);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Panel/ActivityBossPanel": "ActivityBossPanel",
        "./CustomRichText": "CustomRichText",
        "./ItemComponent": "ItemComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    ActivityBossUpPreviewItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "41189OoFp5MZKKSWZcNfN6i", "ActivityBossUpPreviewItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./LevelComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelComponent = null, t.UpValueLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.LevelComponent.Init(e), this.UpValueLabel.string = "+" + t + "%"
                }, i([c(a.LevelComponent)], t.prototype, "LevelComponent", void 0), i([c(cc.Label)], t.prototype, "UpValueLabel", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./LevelComponent": "LevelComponent"
    }],
    ActivityBossUpPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9d69287g/5KBarWBsCGTzp0", "ActivityBossUpPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./ActivityBossPanel"),
            u = e("../Components/ItemComponent"),
            p = e("../Components/ActivityBossUpPreviewItem"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Desc = null, t.HeroNode = null, t.UpStarLabel = null, t.UpScoreLabel = null, t.UpContent = null, t._itemPrefab = null, t._upHeroNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityBossPanel/SubItems/ActivityBossUpPreviewItem", cc.Prefab), n = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._upItemPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "activiityBoss_score_up".ToUILocale(), this.Desc.string = "activityBoss_up_heros".ToUILocale(), this.UpStarLabel.string = "activityBoss_up_star".ToUILocale(), this.UpScoreLabel.string = "activityBoss_extra_score_up".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._configData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.SetUIContent(), [2]
                        })
                    })
                }, t.prototype.SetUIContent = function() {
                    this.SetHeroNode(), this.SetUpContent()
                }, t.prototype.SetHeroNode = function() {
                    var e = this,
                        t = c.default.GetActivityBossUpData(this._configData);
                    this._upHeroNodes.forEach(function(e) {
                        e.active = !1
                    }), t.forEach(function(t, n) {
                        if (!e._upHeroNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.HeroNode, e._upHeroNodes[n] = o
                        }
                        e._upHeroNodes[n].active = !0;
                        var r = e._upHeroNodes[n].getComponent(u.ItemComponent);
                        r.Init({
                            ItemId: t.heroId,
                            StarLevel: t.maxStar
                        }, u.ItemComponentType.HeroInfo), t.havaHero && t.maxStar >= c.default.StartBonusStar ? (r.DisableMask(), r.Name.node.active = !0, r.Name.node.color = new cc.Color(0, 255, 0), r.Name.string = Math.floor(e._configData.CustomPart.Bonus[t.maxStar - c.default.StartBonusStar] / 10) + "%") : (r.EnableMask(), r.Name.node.active = !1)
                    })
                }, t.prototype.SetUpContent = function() {
                    var e = this,
                        t = [];
                    this._configData.CustomPart.Bonus.forEach(function(n, o) {
                        var r = cc.instantiate(e._upItemPrefab);
                        r.getComponent(p.default).Init(c.default.StartBonusStar + o, Math.floor(n / 10)), t.push(r)
                    }), t.reverse(), t.forEach(function(t) {
                        t.parent = e.UpContent
                    })
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "Desc", void 0), i([y(cc.Node)], t.prototype, "HeroNode", void 0), i([y(cc.Label)], t.prototype, "UpStarLabel", void 0), i([y(cc.Label)], t.prototype, "UpScoreLabel", void 0), i([y(cc.Node)], t.prototype, "UpContent", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ActivityBossUpPreviewItem": "ActivityBossUpPreviewItem",
        "../Components/ItemComponent": "ItemComponent",
        "./ActivityBossPanel": "ActivityBossPanel"
    }],
    ActivityBubbleTipComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ff135l96shMxKHAKDRlVOfa", "ActivityBubbleTipComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../Panel/ActivityBaseContent"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BubbleArrow = null, t.BubbleBgNode = null, t.BubbleLabel = null, t.GoToButton = null, t.GoToButtonLabel = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    if (this._activityId = e, this._direction = t, o) {
                        var r = o.convertToWorldSpaceAR(cc.v2(0, 0)),
                            i = this.node.parent.convertToNodeSpaceAR(r);
                        this.node.y = i.y
                    }
                    this._isInit || (this._isInit = !0, this.GoToButton.node.on("click", this.OnGoToButtonClick, this), this.GoToButtonLabel.string = "LoverArrow_Start_Go".ToUILocale()), this.BubbleLabel.string = n, this.ShowBubble(), this.SetBubbleDirection()
                }, t.prototype.InitMallTip = function(e) {
                    this._mallActivityId = e, this._isInit || (this._isInit = !0, this.GoToButton.node.on("click", this.OnMallGoToBtnClick, this), this.BubbleLabel.string = "bubbleTip_new4".ToUILocale(), this.GoToButtonLabel.string = "LoverArrow_Start_Go".ToUILocale()), this.ShowBubble()
                }, t.prototype.SetBubbleDirection = function() {
                    switch (this._direction) {
                        case 1:
                            this.node.x = 111, this.BubbleArrow.angle = 0, this.BubbleBgNode.x = 142;
                            break;
                        case 2:
                            this.node.x = -111, this.BubbleArrow.angle = 180, this.BubbleBgNode.x = -142
                    }
                }, t.prototype.ShowBubble = function() {
                    var e = this;
                    this.node.active = !0, this.scheduleOnce(function() {
                        e.node.active = !1
                    }, 5)
                }, t.prototype.HideBubble = function() {
                    this.node.active = !1, this.unscheduleAllCallbacks()
                }, t.prototype.OnGoToButtonClick = function() {
                    var e = c.DataCenter.Instance.ActivityConfigs[this._activityId];
                    e ? e.Common.Type <= 10 ? a.UIManager.Instance.ShowUIPanel(u.PanelConfig.TimeLimitedActivityPanel.Path, null, this._activityId) : (l.default.OpenActivityPanel(this._activityId), this.HideBubble()) : p.UIUtlity.ShowFloatingHint("Answer_Unopen".ToUILocale())
                }, t.prototype.OnMallGoToBtnClick = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(s.MallActivity_Config, this._mallActivityId);
                    a.UIManager.Instance.ShowUIPanel(u.PanelConfig.MallNewPanel.Path, [e.Position[0].Items[0], this._mallActivityId]), this.HideBubble()
                }, i([f(cc.Node)], t.prototype, "BubbleArrow", void 0), i([f(cc.Node)], t.prototype, "BubbleBgNode", void 0), i([f(cc.Label)], t.prototype, "BubbleLabel", void 0), i([f(cc.Button)], t.prototype, "GoToButton", void 0), i([f(cc.Label)], t.prototype, "GoToButtonLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ActivityBaseContent": "ActivityBaseContent"
    }],
    ActivityChampionApplyPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "80072LjOaBGIqBDUWzAJHCL", "ActivityChampionApplyPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CustomLayout"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Components/ActivityChampionApplyTeamComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.TeamTip = null, t.CustomLayout = null, t.ApplyButton = null, t.ApplyButtonLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_ACTIVITYCHAMPION_EDIT_TEAM, this.OnApplyButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ACTIVITYCHAMPION_EDIT_TEAM, this.OnApplyButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityChampionPanel/Components/ActivityChampionApplyTeamComponent", cc.Prefab), n = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._teamPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ActivityChampion_Apply".ToUILocale(), this.ApplyButtonLabel.string = "button_confirm".ToUILocale(), this.ApplyButton.node.on("click", this.OnApplyButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._formationModelArray = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.CustomLayout.Init(this._teamPrefab), this.CustomLayout.RenderLayOut(this._formationModelArray.length)
                }, t.prototype.OnApplyButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(d.default).Init(Number(t), n._formationModelArray[t], n._formationModelArray.length, n._itemPrefab)
                    })
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "TeamTip", void 0), i([y(c.default)], t.prototype, "CustomLayout", void 0), i([y(cc.Button)], t.prototype, "ApplyButton", void 0), i([y(cc.Label)], t.prototype, "ApplyButtonLabel", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ActivityChampionApplyTeamComponent": "ActivityChampionApplyTeamComponent",
        "../Components/CustomLayout": "CustomLayout"
    }],
    ActivityChampionApplyTeamComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ab0a0SB1IVCI7Pddfz/Oy6v", "ActivityChampionApplyTeamComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("./ItemComponent"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagLabel = null, t.PowerValue = null, t.HeroContainer = null, t.FormationButton = null, t.FormationButtonLabel = null, t.TEAM_HERO_COUNT = 5, t._heroComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.FormationButtonLabel.string = "crossServerRank_edit".ToUILocale(), this.FormationButton.node.on("click", this.OnFormationButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._index = e, this._formationData = t, this._teamCount = n, this._itemPrefab = o, this.SetTeamInfo(), this.SetHeroNodes()
                }, t.prototype.SetTeamInfo = function() {
                    var e = [];
                    this._heroModelArray = [];
                    for (var t = 0; t < this.TEAM_HERO_COUNT; t++) {
                        var n = this._formationData.HeroIds[t],
                            o = void 0;
                        n && (e.push(n), o = c.DataCenter.Instance.GetDataById(l.UserHero_Model, n)), this._heroModelArray[t] = o
                    }
                    this.TagLabel.string = "formation_index".ToUILocale().Fmt(this._index + 1);
                    var r = p.default.Instance.GetTeamPowerByHeroIds(e);
                    this.PowerValue.string = r.toString()
                }, t.prototype.SetHeroNodes = function() {
                    for (var e = 0; e < this.TEAM_HERO_COUNT; e++) {
                        var t = this._heroComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.HeroContainer), t = n.getComponent(u.ItemComponent), this._heroComponentArray[e] = t
                        }
                        this._heroModelArray[e] ? t.Init(this._heroModelArray[e], u.ItemComponentType.HeroInfo) : (t.SetHeroSimpleState(), t.SetCustomIcon(s.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180))
                    }
                }, t.prototype.OnFormationButtonClick = function() {
                    a.Game.EventDispatcher.Emit(d.EventKeys.EVENT_ACTIVITYCHAMPION_EDIT_TEAM, this._teamCount)
                }, i([y(cc.Label)], t.prototype, "TagLabel", void 0), i([y(cc.Label)], t.prototype, "PowerValue", void 0), i([y(cc.Node)], t.prototype, "HeroContainer", void 0), i([y(cc.Button)], t.prototype, "FormationButton", void 0), i([y(cc.Label)], t.prototype, "FormationButtonLabel", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ActivityChampionPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2d9921J6wVPgYjzQwfRb6oV", "ActivityChampionPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../../Consts/Consts"),
            y = e("../Components/ActivityChampionRoundToggle"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/ActivityChampionRoundTag"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../Components/CustomLayout"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../Components/ChampionStartPlayerComponent"),
            b = e("../Components/HeadComponent"),
            S = e("../Components/ActivityChampionScoreRaceBattleComponent"),
            w = e("../Battle/BattleData"),
            P = e("../Battle/BattleManager"),
            A = e("./CrossServerChampionShipPanel"),
            T = e("../Components/CrossServerChampionShipHeader"),
            R = e("./CrossServerChampionStartPanel"),
            L = e("../../RedDot/RedDotManager"),
            k = e("./ActivityJumpBtnComponent"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property;
        (function(e) {
            e[e.Prepare = 0] = "Prepare", e[e.Race1 = 1] = "Race1", e[e.Race2 = 2] = "Race2", e[e.Race3 = 3] = "Race3"
        })(l || (l = {}));
        var B = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.LeftTimeRichText = null, t.RoundToggleScrollView = null, t.RoundToggleContainer = null, t.RaceTabContainer = null, t.TimeTip = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.ApplyPartNode = null, t.PlayerItemContainer = [], t.RankButton = null, t.RankButtonLabel = null, t.ThemeContainer = null, t.ThemeTag = null, t.ConditionNode = null, t.ApplyButton = null, t.ApplyButtonLabel = null, t.ConditionTag = null, t.ConditionTip = null, t.ScoreRacePartNode = null, t.ScoreRaceCustomLayout = null, t.ScoreRaceTag = null, t.ScoreRaceValue = null, t.ScoreRaceScoreTag = null, t.ScoreRaceScoreValue = null, t.PlayerHead = null, t.PlayerZone = null, t.PlayerName = null, t.NoneReportTip = null, t.RaceMapPartNode = null, t.PlayerNodesRound0 = [], t.VictoryLinesRound0 = [], t.PlayerNodesRound1 = [], t.VictoryLinesRound1 = [], t.PlayerNodesRound2 = [], t.VictoryLinesRound2 = [], t.PlayerNodeFinal = null, t.RaceMapPageNode = null, t.PreviousGroupButton = null, t.NextGroupButton = null, t.CurrentGroupNameLabel = null, t.ReturnButton = null, t.RankRewardButton = null, t.RankRewardButtonLabel = null, t.PreviewButton = null, t.PreviewButtonLabel = null, t.ShopButton = null, t.ShopButtonLabel = null, t.LayoutNode = null, t._threePlayerRankArray = [], t._rankArray = [], t._toggleComponentArray = [], t._tagComponentArray = [], t._currentTag = l.Prepare, t._conditionTagArray = [], t._playerAvatarComponent = [], t._scoreRaceRefreshTime = [], t._scoreraceReportsArray = [], t._baseMatchIds = [], t._currentGroupPageIndex = 0, t._raceMapConfig = [], t._mapHeaderComponents = [], t.PLAYER_PER_PAGE = 8, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(C.EventKeys.EVENT_ACTIVITYCHAMPION_EDIT_TEAM, this.ShowBattlePanel, this), c.Game.EventDispatcher.On(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(C.EventKeys.EVENT_ACTIVITYCHAMPION_EDIT_TEAM, this.ShowBattlePanel, this), c.Game.EventDispatcher.Off(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, c = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityChampionPanel/Components/ActivityChampionRoundToggle", cc.Prefab), n = this.LoadDynamicAsset("ActivityChampionPanel/Components/ActivityChampionRoundTag", cc.Prefab), o = this.LoadDynamicAsset(g.BundlePath.HeadComponent, cc.Prefab), r = this.LoadDynamicAsset("ActivityChampionPanel/PNG/ActivityChampionAtlas", cc.SpriteAtlas), i = this.LoadDynamicAsset("CrossServerChampionShip/Private/ChampionStartPlayerComponent", cc.Prefab), a = this.LoadDynamicAsset("ActivityChampionPanel/Components/ActivityChampionScoreRaceBattleComponent", cc.Prefab), l = this.LoadDynamicAsset("CrossServerChampionShip/Private/CrossServerChampionShipHeader", cc.Prefab), [4, Promise.all([t, n, o, r, i, a, l]).then(function(e) {
                                    c._roundTogglePrefab = e[0], c._roundTagPrefab = e[1], c._headPrefab = e[2], c._atlas = e[3], c._playerItemPrefab = e[4], c._scoreRaceBattlePrefab = e[5], c._mapHeaderPrefab = e[6]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "ActivityChampion_Title".ToUILocale(), this.ThemeTag.string = "ActivityChampion_ThemeTag".ToUILocale(), this.ConditionTag.string = "ActivityChampion_Condition_Tag".ToUILocale(), this.RankButtonLabel.string = "ActivityChampion_Total_Rank".ToUILocale(), this.PreviewButtonLabel.string = "ActivityChampion_Preview".ToUILocale(), this.RankRewardButtonLabel.string = "rank_rewards".ToUILocale(), this.ShopButtonLabel.string = "ActivityChampion_Shop".ToUILocale(), this.ScoreRaceTag.string = "ActivityChampion_Score_Race_Tag".ToUILocale(), this.ScoreRaceScoreTag.string = "ActivityChampion_Score_Current".ToUILocale(), this.NoneReportTip.string = "ActivityChampion_None_Report_Tip".ToUILocale(), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.ApplyButton.node.on("click", this.OnApplyButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.RankRewardButton.node.on("click", this.OnRankRewardButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.PreviewButton.node.on("click", this.OnPreviewButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.PreviousGroupButton.node.on("click", this.OnPreviousGroupButtonClicked, this), this.NextGroupButton.node.on("click", this.OnNextGroupButtonClicked, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this);
                var n = t[0];
                this._entryRound = t[1] - 1, this._threePlayerRankArray[this._entryRound] = t[2], this._activityConfig = h.DataCenter.Instance.ActivityConfigs[n], this._activityStartTime = I.default.Instance.ComputeActivitStartTime(this._activityConfig.Common), this._raceMapConfig = h.ConfigDataComponent.Instance.GetArrayConfig(p.ChampionFinalRace_Config), this.ShopButton.node.active = this._activityConfig._Shops && this._activityConfig._Shops.length > 0
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), this._activityConfig.Common.JumpIds && this._activityConfig.Common.JumpIds.length > 0 ? [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)] : [3, 2];
                            case 1:
                                for (t = i.sent(), n = 0; n < this._activityConfig.Common.JumpIds.length; n++) o = this._activityConfig.Common.JumpIds[n], (r = cc.instantiate(t)).parent = this.LayoutNode, r.getComponent(k.default).Init(o, this._activityConfig.Common.JumpIcons[n]);
                                i.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._playerModel = h.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._activityConfig._id), t ? (this.SetCurrentTagPart(), this.SetRedDot()) : (this.SetRoundToggleContainer(), this.SetRaceTagContainer(), this.SetLeftTime(), this.schedule(this.SetLeftTime, 1), this.RoundToggleContainer.getComponent(cc.Layout).updateLayout(), this.OnArrowButtonClick(this._entryRound))
            }, t.prototype.SetRoundToggleContainer = function() {
                for (var e = 0; e < this._activityConfig.__Rounds.length; e++) {
                    var t = this._toggleComponentArray[e];
                    if (!t) {
                        var n = cc.instantiate(this._roundTogglePrefab);
                        n.setParent(this.RoundToggleContainer), t = n.getComponent(y.default), this._toggleComponentArray[e] = t, n.name = e.toString(), n.on("toggle", this.OnSwitchRound, this)
                    }
                    t.Init(e, this._activityStartTime, this._activityConfig, this._atlas)
                }
            }, t.prototype.SetRaceTagContainer = function() {
                for (var e = l.Prepare; e <= l.Race3; e++) {
                    var t = cc.instantiate(this._roundTagPrefab);
                    t.setParent(this.RaceTabContainer);
                    var n = t.getComponent(m.default);
                    this._tagComponentArray[e] = n, t.name = e.toString(), t.on("toggle", this.OnSwithRoundTag, this), n.Init(("ActivityChampion_Race_Tag_" + e).ToUILocale())
                }
            }, t.prototype.OnSwitchRound = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentRound != t && (this._currentRound = t, n.ACTIVITY_CHAMPION_ROUND = t, this._currentRoundConfig = this._activityConfig.__Rounds[this._currentRound], this._currentTag = l.Prepare, this._tagComponentArray[this._currentTag].isChecked = !0, this.SetCurrentRoundRaceTime(), this.SetCurrentTagPart(), this.SetRedDot())
            }, t.prototype.OnSwithRoundTag = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentTag != t && (this._currentTag = t, this.SetCurrentTagPart())
            }, t.prototype.SetCurrentTagPart = function() {
                switch (this.ApplyPartNode.active = !1, this.ScoreRacePartNode.active = !1, this.RaceMapPartNode.active = !1, this.SetArrowButtonState(), this._currentTag) {
                    case l.Prepare:
                        this.ApplyPartNode.active = !0, this.SetThemeContainer(), this.RequestThreePlayerRank(), this.SetConditionTip();
                        break;
                    case l.Race1:
                        this.ScoreRacePartNode.active = !0, this.SetScoreRaceReportContainer();
                        break;
                    case l.Race2:
                        this.RaceMapPartNode.active = !0, this.RefreshBaseMatchIds(64), this.ShowRaceMapView();
                        break;
                    case l.Race3:
                        this.RaceMapPartNode.active = !0, this._currentGroupPageIndex = 0, this.RefreshBaseMatchIds(8), this.ShowRaceMapView()
                }
            }, t.prototype.SetCurrentRoundRaceTime = function() {
                this._roundApplyStartTime = this._activityStartTime + (this._currentRoundConfig.Apply - 1) * f.Etc.DayDuration + 2 * f.Etc.HourDuration, this._roundApplyEndTime = this._activityStartTime + (this._currentRoundConfig.Preliminary[0] - 1) * f.Etc.DayDuration, this._roundPreRaceStartTime = this._activityStartTime + (this._currentRoundConfig.Preliminary[0] - 1) * f.Etc.DayDuration, this._roundPreRaceLastTime = this._activityStartTime + (this._currentRoundConfig.Preliminary[0] - 1) * f.Etc.DayDuration + this._currentRoundConfig.Preliminary[this._currentRoundConfig.Preliminary.length - 1] * f.Etc.HourDuration, this._roundRaceOutStartTime = this._activityStartTime + (this._currentRoundConfig.Knockout[0] - 1) * f.Etc.DayDuration + this._currentRoundConfig.Knockout[1] * f.Etc.HourDuration
            }, t.prototype.SetRedDot = function() {
                L.RedDotManager.Instance.BindInstance(this.ApplyButton.node, L.RedDotManager.Instance.InstanceRedDot.ActivityChampionApplyButton, {
                    Value1: this._activityConfig._id,
                    extra: this._currentRound
                })
            }, t.prototype.SetArrowButtonState = function() {
                this.LeftArrowButton.node.active = this._currentRound > 0;
                var e = this._currentRound < this._activityConfig.__Rounds.length - 1 ? this._activityStartTime + (this._activityConfig.__Rounds[this._currentRound + 1].Apply - 1) * f.Etc.DayDuration + 2 * f.Etc.HourDuration : 0;
                this.RightArrowButton.node.active = this._currentRound < this._activityConfig.__Rounds.length - 1 && e && h.RpcComponent.Instance.ServerTime >= e
            }, t.prototype.SetThemeContainer = function() {
                this._conditionTagArray[0] || (this._conditionTagArray[0] = this.ConditionNode.children[0].getComponent(cc.Label));
                for (var e = 0; e < this._currentRoundConfig.Condition.length; e++) {
                    var t = this._conditionTagArray[e];
                    if (!t) {
                        var n = cc.instantiate(this.ConditionNode);
                        n.setParent(this.ThemeContainer), t = n.children[0].getComponent(cc.Label), this._conditionTagArray[e] = t
                    }
                    t.node.active = !0;
                    var o = this._currentRoundConfig.Condition[e].Items[0],
                        r = this._currentRoundConfig.Condition[e].Items;
                    if (1 == o || 2 == o) {
                        for (var i = "", a = 1; a < r.length; a++) i += 1 == o ? ("hero_element_" + r[a]).ToUILocale() : ("hero_career_" + r[a]).ToUILocale(), a != r.length - 1 && (i += ",");
                        t.string = ("ActivityChampion_Condition_" + o).ToUILocale().Fmt(i)
                    } else t.string = ("ActivityChampion_Condition_" + o).ToUILocale().Fmt(r[1])
                }
                if (this._currentRoundConfig.Condition.length < this._conditionTagArray.length)
                    for (e = this._currentRoundConfig.Condition.length; e < this._conditionTagArray.length; e++) this._conditionTagArray[e].node.active = !1
            }, t.prototype.RequestThreePlayerRank = function() {
                var e = this,
                    t = this._activityStartTime + (this._currentRoundConfig.Preliminary[0] - 1) * f.Etc.DayDuration + this._currentRoundConfig.Preliminary[1] * f.Etc.HourDuration;
                if (t > h.RpcComponent.Instance.ServerTime && this._threePlayerRankArray[this._currentRound] && (this._threePlayerRankArray[this._currentRound] = null), !this._threePlayerRankArray[this._currentRound] && t < h.RpcComponent.Instance.ServerTime) {
                    var n = new d.Req_Activity_ChampionGetRank;
                    n.ActivityId = this._activityConfig._id, n.Round = this._currentRound + 1, n.Count = 3, h.RpcComponent.Instance.Call(n, function(t) {
                        e._threePlayerRankArray[e._currentRound] = t, e.SetPlayerContainer()
                    })
                } else this.SetPlayerContainer()
            }, t.prototype.SetPlayerContainer = function() {
                for (var e = this._threePlayerRankArray[this._currentRound], t = 0; t < this.PlayerItemContainer.length; t++) {
                    var n = this._playerAvatarComponent[t];
                    if (!n) {
                        var o = cc.instantiate(this._playerItemPrefab);
                        o.setParent(this.PlayerItemContainer[t]), n = o.getComponent(v.default), this._playerAvatarComponent[t] = n
                    }
                    var r = e ? e.Rows[t] : null;
                    n.Init(r, [], t, this._atlas, v.RankPlayerAvatarType.ActivityChampion, null, null, this._currentRoundConfig.MapId)
                }
            }, t.prototype.SetConditionTip = function() {
                var e = h.RpcComponent.Instance.ServerTime;
                this.ApplyButton.node.active = e < this._roundApplyEndTime, e < this._roundApplyEndTime && (this.ApplyButtonLabel.string = this._playerModel.IntArray[this._currentRound] ? "ActivityChampion_Edit_Team".ToUILocale() : "ActivityChampion_Apply".ToUILocale());
                for (var t = "", n = 0; n < this._currentRoundConfig.ApplyCondition.length; n++) {
                    var o = this._currentRoundConfig.ApplyCondition[n].Items[0],
                        r = this._currentRoundConfig.ApplyCondition[n].Items[1];
                    1 == o ? t += "ActivityChampion_Condition_Power".ToUILocale().Fmt(r.FmtCurrency()) : 2 == o && (t += "ActivityChampion_Condition_Level".ToUILocale().Fmt(r))
                }
                this.ConditionTip.string = t
            }, t.prototype.SetScoreRaceReportContainer = function() {
                if (!this._myHeadComponent) {
                    var e = cc.instantiate(this._headPrefab);
                    e.setParent(this.PlayerHead), this._myHeadComponent = e.getComponent(b.default);
                    var t = h.DataCenter.Instance.GetIntData(f.UserDataKey.HeadIcon),
                        n = h.DataCenter.Instance.GetIntData(f.UserDataKey.HeadFrame),
                        o = h.DataCenter.Instance.GetIntData(f.UserDataKey.Title),
                        r = h.DataCenter.Instance.GetIntData(f.UserDataKey.PlayerLevel);
                    this._myHeadComponent.SetUI(t, n, o), this._myHeadComponent.SetLevel(r), this.PlayerZone.string = "[S" + h.DataCenter.Zone.toString() + "]", this.PlayerName.string = h.DataCenter.Instance.GetStringData(f.UserDataKey.RoleName), this.ScoreRaceCustomLayout.Init(this._scoreRaceBattlePrefab)
                }
                this.ScoreRaceScoreValue.string = this._threePlayerRankArray[this._currentRound] && this._threePlayerRankArray[this._currentRound].MyRankData ? this._threePlayerRankArray[this._currentRound].MyRankData.Value.toString() : "0", this.RequestScoreRaceReport()
            }, t.prototype.RequestScoreRaceReport = function() {
                var e = this,
                    t = h.RpcComponent.Instance.ServerTime,
                    n = this._scoreRaceRefreshTime[this._currentRound],
                    o = this._activityStartTime + (this._currentRoundConfig.Preliminary[0] - 1) * f.Etc.DayDuration + this._currentRoundConfig.Preliminary[this._currentRoundConfig.Preliminary.length - 1] * f.Etc.HourDuration,
                    r = this._scoreraceReportsArray[this._currentRound];
                if (n && (t < n || n == o) && r) {
                    this.NoneReportTip.node.active = 0 == r.Reports.length, this.ScoreRaceCustomLayout.RenderLayOut(r.Reports.length);
                    for (var i = 0, a = 1; a < this._currentRoundConfig.Preliminary.length; a++) {
                        var s = this._activityStartTime + (this._currentRoundConfig.Preliminary[0] - 1) * f.Etc.DayDuration + this._currentRoundConfig.Preliminary[a] * f.Etc.HourDuration;
                        if (t < s) {
                            i = this._currentRoundConfig.Preliminary.length - a;
                            break
                        }
                    }
                    this.ScoreRaceValue.string = i + "/" + (this._currentRoundConfig.Preliminary.length - 1)
                } else {
                    var l = new d.Req_Activity_ChampionGetMyReports;
                    l.ActivityId = this._activityConfig._id, l.Round = this._currentRound + 1, h.RpcComponent.Instance.Call(l, function(n) {
                        var o = new d.Res_CrossZone_GetMyChampionHistoryReports;
                        o.Reports = [], n.Reports.forEach(function(e) {
                            e.Ts && o.Reports.push(e)
                        }), e._scoreraceReportsArray[e._currentRound] = o, e.NoneReportTip.node.active = 0 == e._scoreraceReportsArray[e._currentRound].Reports.length, e.ScoreRaceCustomLayout.RenderLayOut(e._scoreraceReportsArray[e._currentRound].Reports.length);
                        for (var r = 0, i = 1; i < e._currentRoundConfig.Preliminary.length; i++) {
                            var a = e._activityStartTime + (e._currentRoundConfig.Preliminary[0] - 1) * f.Etc.DayDuration + e._currentRoundConfig.Preliminary[i] * f.Etc.HourDuration;
                            if (t < a) {
                                r = i;
                                break
                            }
                        }
                        e.ScoreRaceValue.string = r ? e._currentRoundConfig.Preliminary.length - r + "/" + (e._currentRoundConfig.Preliminary.length - 1) : r + "/" + (e._currentRoundConfig.Preliminary.length - 1), r = r || e._currentRoundConfig.Preliminary.length - 1, e._scoreRaceRefreshTime[e._currentRound] = e._activityStartTime + (e._currentRoundConfig.Preliminary[0] - 1) * f.Etc.DayDuration + e._currentRoundConfig.Preliminary[r] * f.Etc.HourDuration
                    })
                }
            }, t.prototype.RefreshBaseMatchIds = function(e) {
                var t = e / this.PLAYER_PER_PAGE;
                this._baseMatchIds = [];
                for (var n = 0; n < this._raceMapConfig.length; n++) this._raceMapConfig[n].Id > 100 * t && this._raceMapConfig[n].Id < 200 * t && this._baseMatchIds.push(this._raceMapConfig[n].Id)
            }, t.prototype.ShowRaceMapView = function() {
                this._currentRaceMapInfos = {}, this._baseMatchIds.sort(function(e, t) {
                    return e - t
                }), this.RaceMapPageNode.active = this._baseMatchIds.length > 1, this._currentGroupPageIndex = this._currentGroupPageIndex ? this._currentGroupPageIndex : 0, this.SetMapStateInfoView(), this.RequestChampionMatchInfo(this.GetPageMatchIdsByBaseId(this._baseMatchIds[this._currentGroupPageIndex]))
            }, t.prototype.GetPageMatchIdsByBaseId = function(e) {
                var t = [],
                    n = Math.log2(this.PLAYER_PER_PAGE);
                t[0] = [e];
                for (var o = function(e) {
                        t[e - 1].forEach(function(n) {
                            var o = h.ConfigDataComponent.Instance.GetConfigById(p.ChampionFinalRace_Config, n);
                            t[e] || (t[e] = []), t[e].push(o.P1), t[e].push(o.P2)
                        })
                    }, r = 1; r < n; r++) o(r);
                return t
            }, t.prototype.SetMapStateInfoView = function() {
                this._baseMatchIds.length > 1 ? (this.RaceMapPageNode.active = !0, this.CurrentGroupNameLabel.string = "CrossServerChampionShip_MapStateTitle".ToUILocale().Fmt(this.PLAYER_PER_PAGE * this._baseMatchIds.length, this._currentGroupPageIndex + 1)) : this.RaceMapPageNode.active = !1
            }, t.prototype.RequestChampionMatchInfo = function(e) {
                var t = this;
                if (h.RpcComponent.Instance.ServerTime < this._roundRaceOutStartTime) this.RenderMapView();
                else {
                    var n = !1,
                        o = [];
                    if (e.forEach(function(e) {
                            e.forEach(function(e) {
                                t._currentRaceMapInfos[e] && (n = !0), o.push(e)
                            })
                        }), n) this.OnRequestChampionMatchInfosSuccess();
                    else {
                        var r = new d.Req_Activity_ChampionGetRace;
                        r.ActivityId = this._activityConfig._id, r.Round = this._currentRound + 1, r.MatchIds = o, h.RpcComponent.Instance.Call(r, this.OnRequestChampionMatchInfosSuccess.bind(this))
                    }
                }
            }, t.prototype.OnRequestChampionMatchInfosSuccess = function(e) {
                if (e)
                    for (var t in e.MatchInfos) this._currentRaceMapInfos[t] = e.MatchInfos[t];
                this.RenderMapView()
            }, t.prototype.RenderMapView = function() {
                for (var e = this, t = 0, n = this.GetPageMatchIdsByBaseId(this._baseMatchIds[this._currentGroupPageIndex]), o = !0, r = function(r) {
                        n[r].forEach(function(n, i) {
                            var a = e._currentRaceMapInfos[n],
                                s = a ? e.GetRoundByLast64MatchId(a.Id) : 0,
                                l = e.GetCurrentRoundRaceOutPassed();
                            if (a && 0 != a.Id && s <= l) {
                                o = !1;
                                var c = s == l,
                                    u = h.ConfigDataComponent.Instance.GetConfigById(p.ChampionFinalRace_Config, a.Id);
                                if (0 == r && !c) {
                                    var d = 1 == a.Result ? a.User1 : a.User2;
                                    e.RenderHeaderItem(e.PlayerNodeFinal, t, !0, d, !1, a), t++
                                }
                                e.RenderHeaderItem(e["PlayerNodesRound" + r][2 * i], t, 1 == a.Result, a.User1, c, e._currentRaceMapInfos[u.P1]), t++, e.RenderHeaderItem(e["PlayerNodesRound" + r][2 * i + 1], t, 2 == a.Result, a.User2, c, e._currentRaceMapInfos[u.P2]), t++, c ? (e["VictoryLinesRound" + r][2 * i].active = !1, e["VictoryLinesRound" + r][2 * i + 1].active = !1, e["PlayerNodesRound" + (r - 1)] && (e.RenderHeaderItem(e["PlayerNodesRound" + (r - 1)][i], t, !1, null, !0, null), t++)) : (e["VictoryLinesRound" + r][2 * i].active = 1 == a.Result, e["VictoryLinesRound" + r][2 * i + 1].active = !(1 == a.Result), e["PlayerNodesRound" + (r - 1)] && (e.RenderHeaderItem(e["PlayerNodesRound" + (r - 1)][i], t, !0, 1 == a.Result ? a.User1 : a.User2, !1, a), t++))
                            } else e["PlayerNodesRound" + r][2 * i].removeAllChildren(), e["PlayerNodesRound" + r][2 * i + 1].removeAllChildren(), e["VictoryLinesRound" + r][2 * i].active = !1, e["VictoryLinesRound" + r][2 * i + 1].active = !1
                        })
                    }, i = 0; i < n.length; i++) r(i);
                o && this.ShowRaceMapNotInMatchView()
            }, t.prototype.RenderHeaderItem = function(e, t, n, o, r, i) {
                if (!this._mapHeaderComponents[t]) {
                    var a = cc.instantiate(this._mapHeaderPrefab);
                    this._mapHeaderComponents.push(a.getComponent(T.default))
                }
                this._mapHeaderComponents[t].node.setParent(e), this._mapHeaderComponents[t].InitUI(R.ChampionShipType.Activity, this._headPrefab, o, r, n, !0, i)
            }, t.prototype.GetRoundByLast64MatchId = function(e) {
                var t = Math.floor(e / 100);
                return A.ChampionShipRound.RACE_64_ROUND + A.ChampionShipRound.RACE_8_ROUND - Math.log2(t)
            }, t.prototype.GetCurrentRoundRaceOutPassed = function() {
                var e = 0,
                    t = h.RpcComponent.Instance.ServerTime;
                return t > this._roundRaceOutStartTime && (e = Math.floor((t - this._roundRaceOutStartTime) / (this._activityConfig.CustomPart.Time * f.Etc.SecondDuration)) + 1), e
            }, t.prototype.ShowRaceMapNotInMatchView = function() {
                this.PlayerNodesRound0.forEach(function(e) {
                    e.removeAllChildren()
                }), this.PlayerNodesRound1.forEach(function(e) {
                    e.removeAllChildren()
                }), this.PlayerNodesRound2.forEach(function(e) {
                    e.removeAllChildren()
                }), this.VictoryLinesRound0.forEach(function(e) {
                    e.active = !1
                }), this.VictoryLinesRound1.forEach(function(e) {
                    e.active = !1
                }), this.VictoryLinesRound2.forEach(function(e) {
                    e.active = !1
                }), this.PlayerNodeFinal.removeAllChildren(), this.RaceMapPageNode.active = !1
            }, t.prototype.OnPreviousGroupButtonClicked = function() {
                this._currentGroupPageIndex > 0 && (this._currentGroupPageIndex--, this.SetMapStateInfoView(), this.RequestChampionMatchInfo(this.GetPageMatchIdsByBaseId(this._baseMatchIds[this._currentGroupPageIndex])))
            }, t.prototype.OnNextGroupButtonClicked = function() {
                this._currentGroupPageIndex < this._baseMatchIds.length - 1 && (this._currentGroupPageIndex++, this.SetMapStateInfoView(), this.RequestChampionMatchInfo(this.GetPageMatchIdsByBaseId(this._baseMatchIds[this._currentGroupPageIndex])))
            }, t.prototype.SetLeftTime = function() {
                var e = h.RpcComponent.Instance.ServerTime,
                    t = I.default.Instance.ComputeDeadTime(this._activityConfig.Common) - e;
                if (t < 0) c.UIManager.Instance.BackUIPanel();
                else if (this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(t)), e < this._roundApplyStartTime) this.TimeTip.string = "ActivityChampion_Apply_Start".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(this._roundApplyStartTime - e));
                else if (e < this._roundApplyEndTime) this.TimeTip.string = "ActivityChampion_Apply_End".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(this._roundApplyEndTime - e));
                else if (e < this._roundPreRaceLastTime)
                    for (var n = 1; n < this._currentRoundConfig.Preliminary.length; n++) {
                        var o = this._roundPreRaceStartTime + this._currentRoundConfig.Preliminary[n] * f.Etc.HourDuration;
                        if (e < o) {
                            this.TimeTip.string = "ActivityChampion_Race_Next".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(o - e));
                            break
                        }
                    } else if (e < this._roundRaceOutStartTime) this.TimeTip.string = "ActivityChampion_RaceOut_Start".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(this._roundRaceOutStartTime - e));
                    else if (e < this._roundRaceOutStartTime + 2 * this._activityConfig.CustomPart.Time * f.Etc.SecondDuration) {
                    for (n = 0; n < 3; n++)
                        if (e < (r = this._roundRaceOutStartTime + n * this._activityConfig.CustomPart.Time * f.Etc.SecondDuration)) {
                            this.TimeTip.string = "ActivityChampion_Race_Out_Next".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(r - e));
                            break
                        }
                } else if (e < this._roundRaceOutStartTime + 5 * this._activityConfig.CustomPart.Time * f.Etc.SecondDuration)
                    for (n = 3; n < 6; n++) {
                        var r;
                        if (e < (r = this._roundRaceOutStartTime + n * this._activityConfig.CustomPart.Time * f.Etc.SecondDuration)) {
                            this.TimeTip.string = "ActivityChampion_Race_Out_Next".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(r - e));
                            break
                        }
                    } else this.TimeTip.string = "ActivityChampion_Race_End".ToUILocale()
            }, t.prototype.OnLeftArrowButtonClick = function() {
                this.OnArrowButtonClick(this._currentRound - 1)
            }, t.prototype.OnRightArrowButtonClick = function() {
                this.OnArrowButtonClick(this._currentRound + 1)
            }, t.prototype.OnArrowButtonClick = function(e) {
                var t = this._toggleComponentArray[e];
                t.isChecked = !0, this.OnSwitchRound(t), this.RoundToggleScrollView.scrollToOffset(new cc.Vec2((this._currentRound - 1) * t.node.width, 0))
            }, t.prototype.OnApplyButtonClick = function() {
                var e = this._activityStartTime + (this._currentRoundConfig.Apply - 1) * f.Etc.DayDuration + 2 * f.Etc.HourDuration,
                    t = this._activityStartTime + (this._currentRoundConfig.Preliminary[0] - 1) * f.Etc.DayDuration,
                    n = h.RpcComponent.Instance.ServerTime;
                if (e > n) u.UIUtlity.ShowFloatingHint("ActivityChampion_Apply_Not_Start".ToUILocale());
                else if (t < n) u.UIUtlity.ShowFloatingHint("ActivityChampion_Apply_End_Tip".ToUILocale());
                else {
                    for (var o = 0; o < this._currentRoundConfig.ApplyCondition.length; o++)
                        if (1 == this._currentRoundConfig.ApplyCondition[o].Items[0]) {
                            if (h.DataCenter.Instance.GetIntData(f.UserDataKey.Power) < this._currentRoundConfig.ApplyCondition[o].Items[1]) return void u.UIUtlity.ShowFloatingHint("ActivityChampion_Condition_Not_Enough".ToUILocale())
                        } else if (2 == this._currentRoundConfig.ApplyCondition[o].Items[0] && h.DataCenter.Instance.GetIntData(f.UserDataKey.PlayerLevel) < this._currentRoundConfig.ApplyCondition[o].Items[1]) return void u.UIUtlity.ShowFloatingHint("ActivityChampion_Condition_Not_Enough".ToUILocale());
                    var r = [],
                        i = h.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, this._currentRoundConfig.MapId),
                        a = h.ConfigDataComponent.Instance.GetConfigById(p.MapType_Config, i.Type);
                    if (this._playerModel.IntArray[this._currentRound]) {
                        for (o = 0; o < a.AttackerFormation.length; o++) {
                            var s = h.DataCenter.Instance.GetDataById(d.UserFormation_Model, a.AttackerFormation[o]);
                            if (!s) return void this.ShowBattlePanel(a.AttackerFormation.length);
                            r.push(s)
                        }
                        c.UIManager.Instance.ShowUIPanel(g.PanelConfig.ActivityChampionApplyPanel.Path, r)
                    } else this.ShowBattlePanel(a.AttackerFormation.length)
                }
            }, t.prototype.ShowBattlePanel = function(e) {
                for (var t = [], n = 0; n < e; n++) t.push(this._currentRoundConfig.MapId);
                c.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattleFormationPanel.Path, this.RequestSaveFormation.bind(this), t, {
                    ActivityId: this._activityConfig._id,
                    IsSaveFormationState: !0
                })
            }, t.prototype.RequestSaveFormation = function(e) {
                var t = this,
                    n = !this._playerModel.IntArray[this._currentRound],
                    o = new d.Req_Activity_ChampionApply;
                o.ActivityId = this._activityConfig._id, o.Round = this._currentRound + 1, o.Formations = e, o.Type = this._playerModel.IntArray[this._currentRound] ? 1 : 0, h.RpcComponent.Instance.Call(o, function() {
                    u.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale()), t._playerModel = h.DataCenter.Instance.GetDataById(d.UserActivity_Model, t._activityConfig._id), h.RpcComponent.Instance.ServerTime < t._roundApplyEndTime && (t.ApplyButtonLabel.string = t._playerModel.IntArray[t._currentRound] ? "ActivityChampion_Edit_Team".ToUILocale() : "ActivityChampion_Apply".ToUILocale()), t.SetRedDot(), n && (t._threePlayerRankArray[t._currentRound] = null, t._rankArray[t._currentRound] = null)
                })
            }, t.prototype.OnRankButtonClick = function() {
                var e = this,
                    t = {};
                if (t.ActivityId = this._activityConfig._id, t.Title = "bossWar_rank_name".ToUILocale().Fmt(this._activityConfig.Common.Title), this._rankArray[this._currentRound]) t.RankDatas = [this._rankArray[this._currentRound]], c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonActivityRankPanel.Path, t);
                else {
                    var n = new d.Req_Activity_ChampionGetRank;
                    n.ActivityId = this._activityConfig._id, n.Round = this._currentRound + 1, n.Count = this._activityConfig.CustomPart.RankCount, h.RpcComponent.Instance.Call(n, function(n) {
                        n.MyRankData || (n.MyRankData = {}, n.MyRankData.Value = 0), e._rankArray[e._currentRound] = n, t.RankDatas = [n], c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonActivityRankPanel.Path, t)
                    })
                }
            }, t.prototype.OnPreviewButtonClick = function() {
                var e = this,
                    t = new d.Req_CrossZone_GetForecastData;
                t.Id = 1e4 * this._activityConfig._id + this._currentRound + 1, t.Type = f.ForecastContentType.WinUid, t.DataType = 1, t.IsGetRank = 0, h.RpcComponent.Instance.Call(t, function(t) {
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.ChampionPreviewPanel.Path, R.ChampionShipType.Activity, t, e._activityConfig._id, e._currentRound)
                })
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "ActivityChampion_Rule_Name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["ActivityChampion_Rule_Content".ToUILocale()]
                };
                u.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnRankRewardButtonClick = function() {
                var e = {},
                    t = [];
                this._activityConfig._RankRewards.forEach(function(e) {
                    var n = {};
                    n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                }), e.Data = t, e.IsNotShowMyRank = !0, c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonRankRewardPanel.Path, e)
            }, t.prototype.OnShopButtonClick = function() {
                var e = this._activityConfig.Common.Pictures,
                    t = {
                        name: "ActivityChampion_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["ActivityChampion_Rule_Content".ToUILocale()]
                    };
                c.UIManager.Instance.ShowUIPanel(g.PanelConfig.ActivityExchangeShopPanel.Path, this._activityConfig._id, 1, e[0], t)
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                t == this.ScoreRaceCustomLayout && e.forEach(function(e, t) {
                    e.getComponent(S.default).Init(Number(t), n._scoreraceReportsArray[n._currentRound].Reports[t], n._currentRoundConfig.MapId, n._headPrefab)
                })
            }, t.prototype.onDestroy = function() {
                this.unschedule(this.SetLeftTime)
            }, t.InitBattle = function() {
                [f.MapType.ActChampion11, f.MapType.ActChampion12, f.MapType.ActChampion31, f.MapType.ActChampion32].forEach(function(e) {
                    c.Game.EventDispatcher.Only(f.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), c.Game.EventDispatcher.Only(f.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), c.Game.EventDispatcher.Only(f.GameEventIds.SettleAllBattle.Fmt(e), n.SettleFunction, n)
                })
            }, t.StartBattle = function(e) {
                n.NextBattleIndex = 0;
                var t = new d.Req_Player_GetCommonReport;
                t.Id = e, h.RpcComponent.Instance.Call(t, function(e) {
                    n.Reports = e.Reports;
                    var t, o = {},
                        r = h.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, e.Reports[0].MapId);
                    t = {
                        MultiBattleResult: [0, 0, 0],
                        DontCloseOnEnd: !0,
                        CanSwitchSpeed: !0,
                        CanSkipPlay: !0,
                        CanPlayInBackground: !1,
                        CanSkipAllPlay: r && (r.Type == f.MapType.ActChampion31 || r.Type == f.MapType.ActChampion32)
                    };
                    var i = n.GetNextBattleReport();
                    n.HasSelf = !1, i.Players.forEach(function(e) {
                        e.Uid == h.DataCenter.Instance.Uid && (n.HasSelf = !0)
                    }), (o = P.BattleManager.Instance.StartPlay(i, t)).SettleParams = [n.BattleInfo, n.Reports, n.ScoreInfo], n.MapType = o.MapType, n.HasSelf ? c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, f.CampType.Attacker, o) : c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, null, o)
                }.bind(this))
            }, t.GetNextBattleReport = function() {
                var e = null;
                return n.Reports && n.NextBattleIndex < n.Reports.length && (e = n.Reports[n.NextBattleIndex], n.NextBattleIndex += 1), e
            }, t.SettleBattle = function(e) {
                var t = n.GetNextBattleReport();
                if (t)
                    if (e.Reports[0] = t, n.HasSelf) {
                        var o = I.default.CheckIsSelfBattleWin(n.Reports[n.NextBattleIndex - 2], !0);
                        e.ExtraParam.MultiBattleResult[n.NextBattleIndex - 2] = o ? 1 : -1, c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, f.CampType.Attacker, e, n.ShowNextBattle)
                    } else {
                        var r = n.Reports[n.NextBattleIndex - 2].Result;
                        e.ExtraParam.MultiBattleResult[n.NextBattleIndex - 2] = r == f.BattleResult.AttackerWin ? 1 : -1, c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, null, e, n.ShowNextBattle)
                    }
                else n.SettleFunction(e)
            }, t.SettleFunction = function(e) {
                if (e.InBackground || c.Game.EventDispatcher.Emit(f.GameEventIds.DelayCloseBattlePanel), delete w.BattleData.PlayingBattleDatas[e.MapType], n.ShowSettlement) {
                    if (e.SettleParams) {
                        var t = "CrossServerChampionShip/CrossServerChampionShipSettlement",
                            o = e.SettleParams[0];
                        1 == o.Result ? P.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : P.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementFailPanel.Path, t, e)
                    }
                } else n.BattleEndCallback && n.BattleEndCallback()
            }, t.ShowNextBattle = function(e) {
                P.BattleManager.Instance.NextWave(e)
            }, t.StopBattleByTimeEnd = function() {
                P.BattleManager.Instance.StopBattle(n.MapType, w.CloseBattleType.Cancel), n.BattleEndCallback && n.BattleEndCallback()
            }, t.ACTIVITY_CHAMPION_ROUND = 0, t.BattleInfo = null, t.Reports = null, t.ScoreInfo = null, t.ShowSettlement = !0, t.HasSelf = !1, t.MapType = 0, t.NextBattleIndex = 0, i([D(cc.Label)], t.prototype, "Title", void 0), i([D(cc.Button)], t.prototype, "RuleButton", void 0), i([D(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([D(cc.ScrollView)], t.prototype, "RoundToggleScrollView", void 0), i([D(cc.Node)], t.prototype, "RoundToggleContainer", void 0), i([D(cc.Node)], t.prototype, "RaceTabContainer", void 0), i([D(cc.RichText)], t.prototype, "TimeTip", void 0), i([D(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([D(cc.Button)], t.prototype, "RightArrowButton", void 0), i([D(cc.Node)], t.prototype, "ApplyPartNode", void 0), i([D([cc.Node])], t.prototype, "PlayerItemContainer", void 0), i([D(cc.Button)], t.prototype, "RankButton", void 0), i([D(cc.Label)], t.prototype, "RankButtonLabel", void 0), i([D(cc.Node)], t.prototype, "ThemeContainer", void 0), i([D(cc.Label)], t.prototype, "ThemeTag", void 0), i([D(cc.Node)], t.prototype, "ConditionNode", void 0), i([D(cc.Button)], t.prototype, "ApplyButton", void 0), i([D(cc.Label)], t.prototype, "ApplyButtonLabel", void 0), i([D(cc.Label)], t.prototype, "ConditionTag", void 0), i([D(cc.Label)], t.prototype, "ConditionTip", void 0), i([D(cc.Node)], t.prototype, "ScoreRacePartNode", void 0), i([D(_.default)], t.prototype, "ScoreRaceCustomLayout", void 0), i([D(cc.Label)], t.prototype, "ScoreRaceTag", void 0), i([D(cc.Label)], t.prototype, "ScoreRaceValue", void 0), i([D(cc.Label)], t.prototype, "ScoreRaceScoreTag", void 0), i([D(cc.Label)], t.prototype, "ScoreRaceScoreValue", void 0), i([D(cc.Node)], t.prototype, "PlayerHead", void 0), i([D(cc.Label)], t.prototype, "PlayerZone", void 0), i([D(cc.Label)], t.prototype, "PlayerName", void 0), i([D(cc.Label)], t.prototype, "NoneReportTip", void 0), i([D(cc.Node)], t.prototype, "RaceMapPartNode", void 0), i([D([cc.Node])], t.prototype, "PlayerNodesRound0", void 0), i([D([cc.Node])], t.prototype, "VictoryLinesRound0", void 0), i([D([cc.Node])], t.prototype, "PlayerNodesRound1", void 0), i([D([cc.Node])], t.prototype, "VictoryLinesRound1", void 0), i([D([cc.Node])], t.prototype, "PlayerNodesRound2", void 0), i([D([cc.Node])], t.prototype, "VictoryLinesRound2", void 0), i([D(cc.Node)], t.prototype, "PlayerNodeFinal", void 0), i([D(cc.Node)], t.prototype, "RaceMapPageNode", void 0), i([D(cc.Button)], t.prototype, "PreviousGroupButton", void 0), i([D(cc.Button)], t.prototype, "NextGroupButton", void 0), i([D(cc.Label)], t.prototype, "CurrentGroupNameLabel", void 0), i([D(cc.Button)], t.prototype, "ReturnButton", void 0), i([D(cc.Button)], t.prototype, "RankRewardButton", void 0), i([D(cc.Label)], t.prototype, "RankRewardButtonLabel", void 0), i([D(cc.Button)], t.prototype, "PreviewButton", void 0), i([D(cc.Label)], t.prototype, "PreviewButtonLabel", void 0), i([D(cc.Button)], t.prototype, "ShopButton", void 0), i([D(cc.Label)], t.prototype, "ShopButtonLabel", void 0), i([D(cc.Node)], t.prototype, "LayoutNode", void 0), n = i([M], t)
        }(c.BaseUIFullScreenPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ActivityChampionRoundTag": "ActivityChampionRoundTag",
        "../Components/ActivityChampionRoundToggle": "ActivityChampionRoundToggle",
        "../Components/ActivityChampionScoreRaceBattleComponent": "ActivityChampionScoreRaceBattleComponent",
        "../Components/ChampionStartPlayerComponent": "ChampionStartPlayerComponent",
        "../Components/CrossServerChampionShipHeader": "CrossServerChampionShipHeader",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeadComponent": "HeadComponent",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent",
        "./CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "./CrossServerChampionStartPanel": "CrossServerChampionStartPanel"
    }],
    ActivityChampionRoundTag: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0479bPIRipIeIcGIuEljBAH", "ActivityChampionRoundTag");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.TagLabel.string = e
                }, i([l(cc.Label)], t.prototype, "TagLabel", void 0), i([s], t)
            }(cc.Toggle);
        n.default = c, cc._RF.pop()
    }, {}],
    ActivityChampionRoundToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "99316Ov5IZEaKqH9odX3dhN", "ActivityChampionRoundToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../Consts/Etc"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../../Components/Components"),
            c = e("../Auxiliary/UIUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ElementIcon = null, t.RoundLabel = null, t.TagBg = null, t.TagLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._startTime = t, this._activityConfig = n, this._atlas = o, this._roundConfig = n.__Rounds[e], this.RoundLabel.string = "Activity_HeroPK_Round_Tag".ToUILocale().Fmt(e + 1), this.SetElementIcon(), this.SetTag()
                }, t.prototype.SetElementIcon = function() {
                    for (var e = 0; e < this._roundConfig.Condition.length; e++) {
                        var t = this._roundConfig.Condition[e].Items[0],
                            n = this._roundConfig.Condition[e].Items[1];
                        if (1 == t) {
                            this.ElementIcon.spriteFrame = c.UIUtlity.GetHeroElementIcon(n);
                            break
                        }
                        if (2 == t) {
                            this.ElementIcon.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("profession_" + n);
                            break
                        }
                    }
                }, t.prototype.SetTag = function() {
                    var e = l.RpcComponent.Instance.ServerTime;
                    this._roundApplyTime = this._startTime + (this._roundConfig.Apply - 1) * a.Etc.DayDuration + 2 * a.Etc.HourDuration;
                    var t = this._startTime + (this._roundConfig.Preliminary[0] - 1) * a.Etc.DayDuration + this._roundConfig.Preliminary[1] * a.Etc.HourDuration,
                        n = this._startTime + (this._roundConfig.Knockout[0] - 1) * a.Etc.DayDuration + this._roundConfig.Knockout[1] * a.Etc.HourDuration + this._activityConfig.CustomPart.Time * a.Etc.SecondDuration * 6;
                    c.UIUtlity.SetGray(this.node, !1, !0), this.interactable = e >= this._roundApplyTime, e < this._roundApplyTime ? (this.TagBg.node.active = !1, c.UIUtlity.SetGray(this.node, !0, !0)) : e < t ? (this.TagBg.node.active = !0, this.TagBg.spriteFrame = this._atlas.getSpriteFrame("blue_tag"), this.TagLabel.string = "Activity_HeroPK_Round_Tag_Start".ToUILocale()) : e < n ? (this.TagBg.node.active = !0, this.TagBg.spriteFrame = this._atlas.getSpriteFrame("red_tag"), this.TagLabel.string = "Activity_HeroPK_Round_Tag_Play".ToUILocale()) : this.TagBg.node.active = !1
                }, t.prototype.OnNodeClick = function() {
                    l.RpcComponent.Instance.ServerTime < this._roundApplyTime && c.UIUtlity.ShowFloatingHint("ActivityChampion_Round_Apply_Tip".ToUILocale().Fmt(s.default.ActivityTimeLeftFormat(this._roundApplyTime - l.RpcComponent.Instance.ServerTime)))
                }, i([d(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([d(cc.Label)], t.prototype, "RoundLabel", void 0), i([d(cc.Sprite)], t.prototype, "TagBg", void 0), i([d(cc.Label)], t.prototype, "TagLabel", void 0), i([p], t)
            }(cc.Toggle);
        n.default = h, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    ActivityChampionScoreRaceBattleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "910dbnKa8lCFrURKGssJwdS", "ActivityChampionScoreRaceBattleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("./HeadComponent"),
            c = e("../Panel/ActivityChampionPanel"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.VSIconNode = null, t.ResultContainerNode = null, t.AttackResultIcon = null, t.DefenceResultIcon = null, t.ReplayButton = null, t.RaceTag = null, t.ScoreValueRichText = null, t.AttackName = null, t.DefenceName = null, t.AttackZone = null, t.DefenceZone = null, t.AttackPlayerHeadNode = null, t.DefencePlayerHeadNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ReplayButton.node.on("click", this.OnReplayButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.ReplayButton.node.off("click", this.OnReplayButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._scoreRaceReport = t, this._mapId = n, this._headPrefab = o, this.RaceTag.string = "ActivityChampion_Score_Round".ToUILocale().Fmt(e + 1);
                    var r = this._scoreRaceReport.AttackerInfo.Uid == a.DataCenter.Instance.Uid,
                        i = r && 1 == this._scoreRaceReport.Result || !r && 1 != this._scoreRaceReport.Result;
                    this.ScoreValueRichText.string = i ? "+" + this._scoreRaceReport.IntParams[0] : "-" + this._scoreRaceReport.IntParams[0], this.AttackName.string = this._scoreRaceReport.AttackerInfo.Name, this.DefenceName.string = this._scoreRaceReport.DefenderInfo.Name, this.AttackZone.string = "S" + this._scoreRaceReport.AttackerInfo.Zone, this.DefenceZone.string = "S" + this._scoreRaceReport.DefenderInfo.Zone, 1 == this._scoreRaceReport.Result ? (this.AttackResultIcon.spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Win"), this.DefenceResultIcon.spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Lose")) : (this.AttackResultIcon.spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("lose"), this.DefenceResultIcon.spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Lose")), this.SetHeadNode()
                }, t.prototype.SetHeadNode = function() {
                    if (!this._attackHeadComponent) {
                        var e = cc.instantiate(this._headPrefab);
                        e.setParent(this.AttackPlayerHeadNode), this._attackHeadComponent = e.getComponent(l.default);
                        var t = cc.instantiate(this._headPrefab);
                        t.setParent(this.DefencePlayerHeadNode), this._defenceHeadComponent = t.getComponent(l.default)
                    }
                    this._attackHeadComponent.SetUI(this._scoreRaceReport.AttackerInfo.HeadIcon, this._scoreRaceReport.AttackerInfo.HeadFrame, this._scoreRaceReport.AttackerInfo.Title), this._attackHeadComponent.SetLevel(this._scoreRaceReport.AttackerInfo.Level), this._defenceHeadComponent.SetUI(this._scoreRaceReport.DefenderInfo.HeadIcon, this._scoreRaceReport.DefenderInfo.HeadFrame, this._scoreRaceReport.DefenderInfo.Title), this._defenceHeadComponent.SetLevel(this._scoreRaceReport.DefenderInfo.Level)
                }, t.prototype.OnReplayButtonClick = function() {
                    c.default.BattleInfo = {
                        Result: this._scoreRaceReport.Result,
                        AttackerInfo: this._scoreRaceReport.AttackerInfo,
                        DefenderInfo: this._scoreRaceReport.DefenderInfo
                    }, c.default.StartBattle(this._scoreRaceReport.Report)
                }, i([d(cc.Node)], t.prototype, "VSIconNode", void 0), i([d(cc.Node)], t.prototype, "ResultContainerNode", void 0), i([d(cc.Sprite)], t.prototype, "AttackResultIcon", void 0), i([d(cc.Sprite)], t.prototype, "DefenceResultIcon", void 0), i([d(cc.Button)], t.prototype, "ReplayButton", void 0), i([d(cc.Label)], t.prototype, "RaceTag", void 0), i([d(cc.RichText)], t.prototype, "ScoreValueRichText", void 0), i([d(cc.Label)], t.prototype, "AttackName", void 0), i([d(cc.Label)], t.prototype, "DefenceName", void 0), i([d(cc.Label)], t.prototype, "AttackZone", void 0), i([d(cc.Label)], t.prototype, "DefenceZone", void 0), i([d(cc.Node)], t.prototype, "AttackPlayerHeadNode", void 0), i([d(cc.Node)], t.prototype, "DefencePlayerHeadNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ActivityChampionPanel": "ActivityChampionPanel",
        "./HeadComponent": "HeadComponent"
    }],
    ActivityContinuousChargePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5b26cT6i0ZOdYoVignEj28z", "ActivityContinuousChargePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./ActivityContinuousChargeTaskComponent"),
            m = e("../../../Consts/Consts"),
            I = e("./CommonTaskTipComponent"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../Components/ContinuousChargeProgressReward"),
            v = e("../Components/CustomToggle"),
            b = e("../Components/CustomProgressBar"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.ViewCustomLayout = null, t.ProgressScrollView = null, t.ChargeProgressBar = null, t.MoveLeftButton = null, t.MoveRightButton = null, t.RuleBtn = null, t.DailyGiftBtn = null, t.AdvanceBar = null, t.RedDotLeftNode = null, t.RedDotRightNode = null, t.DailyGiftAni = null, t.DailyGiftReceived = null, t.LeftTimeRichText = null, t.TipsRichText = null, t.GetTip = null, t.CommonTaskTipComponent = null, t.ToggleContainerNode = null, t.TASK_WIDTH = 125, t.PROGRESS_BAR_WIDTH = 872, t._canArrow = !1, t._tasksDaily = [], t._tasksContinuous = [], t._deadLine = 0, t._progressRewards = [], t._currentToggleIndex = 0, t._bgIconArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent), this.LoadDynamicAsset("ActivityContinuousChargePanel/Components/ContinuousChargeTaskComponent", cc.Prefab), this.LoadDynamicAsset("ActivityContinuousChargePanel/Components/ProgressRewardNode", cc.Prefab), this.LoadDynamicAsset("ActivityContinuousChargePanel/PNG/Bg0", cc.SpriteFrame)]).then(function(e) {
                                        t._itemPrefab = e[0], t._taskPrefab = e[1], t._progressRewardNode = e[2], t._bgIconArray[0] = e[3]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetTip.string = "continuousCharge_getTip".ToUILocale(), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.DailyGiftBtn.node.on("click", this.OnDailyGiftBtnClick, this), this.MoveLeftButton.node.on("click", this.OnMoveLeftBtnClick, this), this.MoveRightButton.node.on("click", this.OnMoveRightBtnClick, this), this.CommonTaskTipComponent.InitData(), this._continuousScrollViewRect = this.SetScrollViewRect(this.ProgressScrollView.node), this.ProgressScrollView.node.on("scrolling", this.OnProgressScrolling, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this.SetConfigArray()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this._configDataArray.length > 1 ? [4, this.LoadDynamicAsset("Buttons/ToggleBottom", cc.Prefab)] : [3, 2];
                                case 1:
                                    if (t = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    for (this.ToggleContainerNode.parent.active = !0, n = 0; n < this._configDataArray.length; n++)(o = cc.instantiate(t)).parent = this.ToggleContainerNode, o.getComponent(v.default).Init(this._configDataArray[n].Common.Title), o.name = n.toString(), o.on("toggle", this.OnSwitchToggle, this);
                                    r.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this._deadLine = y.default.Instance.ComputeDeadTime(this._configDataArray[0].Common), this.ViewCustomLayout.Init(this._taskPrefab), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)), this._playerModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configDataArray[0]._id), this.SetDailyGift(), this.SetRedDot(), this.SetCurrentConfigData()
                }, t.prototype.SetConfigArray = function() {
                    var e = m.ActivityType.ContinuousPay;
                    for (var t in this._configDataArray = [], u.DataCenter.Instance.ActivityConfigs) {
                        var n = u.DataCenter.Instance.ActivityConfigs[t];
                        if (n.Common.Type == e && y.default.GetActivityUnlockState(n.Common)) {
                            var o = n;
                            this._configDataArray.push(o)
                        }
                    }
                    this._configDataArray.sort(function(e, t) {
                        return e._id - t._id
                    })
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._currentToggleIndex != t && (this._currentToggleIndex = t, this.SetCurrentConfigData())
                }, t.prototype.SetCurrentConfigData = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._bgIconArray[this._currentToggleIndex] ? [3, 2] : (e = this._bgIconArray, t = this._currentToggleIndex, [4, this.LoadDynamicAsset("ActivityContinuousChargePanel/PNG/Bg" + this._currentToggleIndex, cc.SpriteFrame)]);
                                case 1:
                                    if (e[t] = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._bgIconArray[this._currentToggleIndex]), [2];
                                    n.label = 2;
                                case 2:
                                    return this.Bg.spriteFrame = this._bgIconArray[this._currentToggleIndex], this._configData = this._configDataArray[this._currentToggleIndex], this._deadLine = y.default.Instance.ComputeDeadTime(this._configData.Common), this._tasksDaily[this._currentToggleIndex] || this.LoadTasks(), this._currentTaskDaily = this._tasksDaily[this._currentToggleIndex], this._currentTaskContinuous = this._tasksContinuous[this._currentToggleIndex], this.LoadProgressBar(), this.SetProgressReward(), this.SetTips(), this.RefreshProgressReward(), this.SetDailyTasks(), this.ReArrow(), [2]
                            }
                        })
                    })
                }, t.prototype.GetTaskModel = function(e, t) {
                    return u.DataCenter.Instance.GetDataById(c.UserTask_Model, 1e4 * e + t)
                }, t.prototype.OnRuleBtnClick = function() {
                    var e = {
                        name: "continuousCharge_rule_sub".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["continuousCharge_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnDailyGiftBtnClick = function() {
                    if (1 != this._playerModel.IntValue) {
                        var e = new c.Req_Activity_ContinuousPayReward;
                        e.ActivityId = this._configDataArray[0]._id, u.RpcComponent.Instance.Call(e, this.ResponseRewardSuccess.bind(this))
                    } else f.UIUtlity.ShowFloatingHint("continuousCharge_dailyGift_received".ToUILocale())
                }, t.prototype.ResponseRewardSuccess = function(e) {
                    f.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this.DailyGiftReceived.active = !0, this.DailyGiftAni.active = !1
                }, t.prototype.OnMoveLeftBtnClick = function() {
                    var e = this.ProgressScrollView.getScrollOffset().x + this.TASK_WIDTH;
                    this.ProgressScrollView.scrollToOffset(cc.v2(-e, this.ProgressScrollView.getScrollOffset().y), .2)
                }, t.prototype.OnMoveRightBtnClick = function() {
                    var e = this.ProgressScrollView.getScrollOffset().x - this.TASK_WIDTH;
                    this.ProgressScrollView.scrollToOffset(cc.v2(-e, this.ProgressScrollView.getScrollOffset().y), .2)
                }, t.prototype.SetScrollViewRect = function(e) {
                    var t = e.getBoundingBoxToWorld();
                    return new cc.Rect(t.x, t.y, e.width, e.height)
                }, t.prototype.OnProgressScrolling = function() {
                    l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_CONTINUOUSCHARGE_PROGRESS_SCROLLVIEW, this._continuousScrollViewRect), this.ReArrow()
                }, t.prototype.LoadTasks = function() {
                    this._tasksDaily[this._currentToggleIndex] = [], this._tasksContinuous[this._currentToggleIndex] = [];
                    for (var e = 0; e < this._configData._Tasks.length; e++) this._configData._Tasks[e].Condition[0] == m.TaskConditionType.PayCount ? this._tasksDaily[this._currentToggleIndex].push(this._configData._Tasks[e]) : this._tasksContinuous[this._currentToggleIndex].push(this._configData._Tasks[e])
                }, t.prototype.LoadProgressBar = function() {
                    var e = this._currentTaskContinuous.length;
                    this._totalWidth = e * this.TASK_WIDTH, this.ChargeProgressBar.node.width = this._totalWidth, this.ChargeProgressBar.TotalLength = this._totalWidth, this.AdvanceBar.width = this._totalWidth, this._totalWidth >= this.PROGRESS_BAR_WIDTH ? this._canArrow = !0 : (this._canArrow = !1, this.MoveRightButton.node.active = !1, this.MoveLeftButton.node.active = !1)
                }, t.prototype.SetProgressReward = function() {
                    for (var e = 0; e < this._currentTaskContinuous.length; e++) {
                        if (!this._progressRewards[e]) {
                            var t = cc.instantiate(this._progressRewardNode);
                            t.setParent(this.ChargeProgressBar.node), t.x = e == this._currentTaskContinuous.length - 1 ? (e + 1) * this.TASK_WIDTH - 10 : (e + 1) * this.TASK_WIDTH, t.y = -15, this._progressRewards[e] = t.getComponent(C.default)
                        }
                        var n = this.GetTaskModel(this._configData._id, this._currentTaskContinuous[e].Id);
                        this._progressRewards[e].SetProgressReward(n, this._configData, this._currentTaskContinuous[e], this._itemPrefab)
                    }
                }, t.prototype.SetDailyGift = function() {
                    this.DailyGiftReceived.active = 1 == this._playerModel.IntValue, this.DailyGiftAni.active = !this._playerModel.IntValue
                }, t.prototype.SetTips = function() {
                    this._continuousLastTaskModel = this.GetTaskModel(this._configData._id, this._currentTaskContinuous[this._currentTaskContinuous.length - 1].Id), this.TipsRichText.string = "continuousCharge_tips".ToUILocale().Fmt(this._continuousLastTaskModel.Progress)
                }, t.prototype.SetDeadLine = function() {
                    var e = this._deadLine - u.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTimeRichText.string = "continuousCharge_time".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetRedDot = function() {
                    _.RedDotManager.Instance.Bind(this.DailyGiftBtn.node, _.RedDotManager.Instance.RedDot.ContinuousChargeDailyGiftNode)
                }, t.prototype.RefreshProgressReward = function() {
                    for (var e, t = 0; t < this._currentTaskContinuous.length; t++) this._currentTaskContinuous[t].TotalCount <= this._continuousLastTaskModel.Progress && (e = this._currentTaskContinuous[t]);
                    for (this.ChargeProgressBar.progress = e ? this.GetProgress(e) : 0, t = 0; t < this._progressRewards.length; t++) {
                        var n = this.GetTaskModel(this._configData._id, this._currentTaskContinuous[t].Id);
                        this._progressRewards[t].SetItemState(n)
                    }
                }, t.prototype.GetProgress = function(e) {
                    for (var t = this.GetTaskModel(this._configData._id, e.Id).Progress, n = 0, o = 0; o < this._currentTaskContinuous.length; o++) t >= this._currentTaskContinuous[o].TotalCount && (n = o + 1);
                    var r = n >= this._currentTaskContinuous.length ? null : this._currentTaskContinuous[n],
                        i = n / this._currentTaskContinuous.length,
                        a = 0;
                    return r && (a = (t - e.TotalCount) / (r.TotalCount - e.TotalCount) * this.TASK_WIDTH / this._totalWidth), i + a
                }, t.prototype.ReArrow = function() {
                    if (this._canArrow) {
                        Math.round(Math.abs(this.ProgressScrollView.getScrollOffset().x)) >= this.ProgressScrollView.getMaxScrollOffset().x ? this.MoveRightButton.node.active = !1 : this.MoveRightButton.node.active = !0, Math.round(this.ProgressScrollView.getScrollOffset().x) >= 0 ? this.MoveLeftButton.node.active = !1 : this.MoveLeftButton.node.active = !0;
                        var e = this.GetCompleteTasks(this._currentTaskContinuous);
                        if (e.length > 0) {
                            this.RedDotLeftNode.active = !1, this.RedDotRightNode.active = !1;
                            for (var t = 0; t < e.length; t++) {
                                var n = e[t],
                                    o = this._currentTaskContinuous.indexOf(n);
                                if (o > -1) {
                                    var r = o * this.TASK_WIDTH;
                                    Math.abs(this.ProgressScrollView.getScrollOffset().x) >= r && (this.RedDotLeftNode.active = !0), Math.abs(this.ProgressScrollView.getScrollOffset().x) <= r - this.PROGRESS_BAR_WIDTH && (this.RedDotRightNode.active = !0)
                                }
                            }
                        } else this.RedDotLeftNode.active = !1, this.RedDotRightNode.active = !1
                    }
                }, t.prototype.GetCompleteTasks = function(e) {
                    for (var t = [], n = 0; n < e.length; n++) {
                        var o = e[n],
                            r = this.GetTaskModel(this._configData._id, o.Id);
                        !r.IsCompleted && r.Progress >= o.TotalCount && t.push(o)
                    }
                    return t
                }, t.prototype.SetDailyTasks = function() {
                    var e = this;
                    this._currentTaskDaily.sort(function(t, n) {
                        var o = e.GetTaskModel(e._configData._id, t.Id),
                            r = e.GetTaskModel(e._configData._id, n.Id);
                        return o.IsCompleted && !r.IsCompleted ? 1 : !o.IsCompleted && r.IsCompleted ? -1 : o.Progress >= t.TotalCount && r.Progress < t.TotalCount ? -1 : o.Progress < t.TotalCount && r.Progress >= t.TotalCount ? 1 : t.SortId - n.SortId
                    }), this.ViewCustomLayout.RenderLayOut(this._currentTaskDaily.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.ViewCustomLayout && e.forEach(function(e, t) {
                        var o = n.GetTaskModel(n._configData._id, n._currentTaskDaily[t].Id),
                            r = null == o || null == o.Progress ? 0 : o.Progress;
                        e.getComponent(g.default).SetDailyTaskComponent(n._itemPrefab, r, n._currentTaskDaily[t], n._currentTaskDaily, o.IsCompleted, n._configData)
                    })
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([P(cc.Sprite)], t.prototype, "Bg", void 0), i([P(p.default)], t.prototype, "ViewCustomLayout", void 0), i([P(cc.ScrollView)], t.prototype, "ProgressScrollView", void 0), i([P(b.default)], t.prototype, "ChargeProgressBar", void 0), i([P(cc.Button)], t.prototype, "MoveLeftButton", void 0), i([P(cc.Button)], t.prototype, "MoveRightButton", void 0), i([P(cc.Button)], t.prototype, "RuleBtn", void 0), i([P(cc.Button)], t.prototype, "DailyGiftBtn", void 0), i([P(cc.Node)], t.prototype, "AdvanceBar", void 0), i([P(cc.Node)], t.prototype, "RedDotLeftNode", void 0), i([P(cc.Node)], t.prototype, "RedDotRightNode", void 0), i([P(cc.Node)], t.prototype, "DailyGiftAni", void 0), i([P(cc.Node)], t.prototype, "DailyGiftReceived", void 0), i([P(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([P(cc.RichText)], t.prototype, "TipsRichText", void 0), i([P(cc.Label)], t.prototype, "GetTip", void 0), i([P(I.default)], t.prototype, "CommonTaskTipComponent", void 0), i([P(cc.Node)], t.prototype, "ToggleContainerNode", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ContinuousChargeProgressReward": "ContinuousChargeProgressReward",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/CustomToggle": "CustomToggle",
        "./ActivityContinuousChargeTaskComponent": "ActivityContinuousChargeTaskComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent"
    }],
    ActivityContinuousChargeTaskComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a811eOKjwpDx5xIyH8qHpdn", "ActivityContinuousChargeTaskComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Components/Components"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TimeTagLabel = null, t.Title = null, t.GetButtonLabel = null, t.GoButtonLabel = null, t.NoGetWayLabel = null, t.PurchaseLimit = null, t.GetButton = null, t.GoButton = null, t.NoGetWayButton = null, t.ReceivedNode = null, t.ItemContainer = null, t._items = [], t._tasks = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.GoButton.node.on("click", this.OnGoButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this), a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.GoButton.node.off("click", this.OnGoButtonClick, this), this.GetButton.node.off("click", this.OnGetButtonClick, this), a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.SetDailyTaskComponent = function(e, t, n, o, r, i) {
                    void 0 === o && (o = []), this._itemPrefab = e, this._progress = t, this._task = n, this._tasks = o, this._received = r, this._configData = i, this.Title.string = p.default.GetTaskDesc(n), this.TimeTagLabel.string = this._task.IsDaily ? "continuousCharge_task_tag_daily".ToUILocale() : "continuousCharge_task_tag_period".ToUILocale(), this.SetBtnState(), this.SetItems()
                }, t.prototype.SetBtnState = function() {
                    this._progress < this._task.TotalCount ? this.PurchaseLimit.string = "<color = ffffff>" + this._progress + "/" + this._task.TotalCount + "</c>" : this.PurchaseLimit.string = "<color = 00ff00>" + this._task.TotalCount + "/" + this._task.TotalCount + "</c>", this.GoButton.node.active = this._progress < this._task.TotalCount && this._task.GetWayId && this._task.GetWayId > 0, this.GetButton.node.active = this._progress >= this._task.TotalCount && !this._received, this.ReceivedNode.active = this._progress >= this._task.TotalCount && this._received, this.NoGetWayButton.node.active = this._progress < this._task.TotalCount && !this._task.GetWayId, this.GetButtonLabel.string = "receive".ToUILocale(), this.GoButtonLabel.string = "task_goto".ToUILocale(), this.NoGetWayLabel.string = "receive".ToUILocale()
                }, t.prototype.SetItems = function() {
                    var e = this;
                    this._items.forEach(function(t, n) {
                        e._items[n].node.active = !1
                    }), this._task.Rewards.forEach(function(t, n) {
                        if (!e._items[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.setParent(e.ItemContainer), e._items[n] = o.getComponent(l.ItemComponent)
                        }
                        e._items[n].node.active = !0, e._items[n].Init({
                            ItemId: e._task.Rewards[n].Items[0],
                            Count: e._task.Rewards[n].Items[1]
                        })
                    })
                }, t.prototype.GetTaskModel = function(e, t) {
                    return d.DataCenter.Instance.GetDataById(c.UserTask_Model, 1e4 * e + t)
                }, t.prototype.OnGetButtonClick = function() {
                    for (var e = [], t = 0; t < this._tasks.length; t++) {
                        var n = this.GetTaskModel(this._configData._id, this._tasks[t].Id);
                        !n.IsCompleted && n.Progress >= this._tasks[t].TotalCount && e.push(this._tasks[t].Id)
                    }
                    var o = new c.Req_Activity_CommonTaskReward;
                    o.ActivityId = this._configData._id, o.TaskIds = e, d.RpcComponent.Instance.Call(o, this.ResponseRewardSuccess.bind(this))
                }, t.prototype.ResponseRewardSuccess = function(e) {
                    u.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.OnGoButtonClick = function() {
                    p.default.Instance.HasBoughtFirstPay() ? p.default.ShowPanelByGetWayId(this._task.GetWayId) : p.default.ShowActivityFirstPayPanel(!0)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && u.UIUtlity.ShowItemTip(t.getComponent(l.ItemComponent).ItemId, t)
                }, i([y(cc.Label)], t.prototype, "TimeTagLabel", void 0), i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([y(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([y(cc.Label)], t.prototype, "NoGetWayLabel", void 0), i([y(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([y(cc.Button)], t.prototype, "GetButton", void 0), i([y(cc.Button)], t.prototype, "GoButton", void 0), i([y(cc.Button)], t.prototype, "NoGetWayButton", void 0), i([y(cc.Node)], t.prototype, "ReceivedNode", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityContinuousPurchasePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6ebe44+Y95G0Zq6GSzguFYS", "ActivityContinuousPurchasePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ContinuousPurchaseBubbleComponent"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../../../Consts/GameEventIds"),
            I = e("../../../ShareConsts/EnumType"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.AvatarSpine = null, t.MaskIcon = null, t.Title = null, t.LeftTime = null, t.RuleButton = null, t.DailyRewardButton = null, t.DailyRewardButtonLabel = null, t.PreviewGiftButton = null, t.PreviewGiftButtonLabel = null, t.SpineNodeArray = [], t.TopSpine = null, t.MainNode = null, t.NoneTipNode = null, t.NoneTipBg = null, t.NoneTipLabel = null, t.ReturnButton = null, t._currentGiftArrayStartIndex = 0, t._spriteMap = {}, t._isPaySuccess = !1, t._isActivityModelChange = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftSuccess, this), l.Game.EventDispatcher.On(m.GameEventIds.ChangeDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelDataChange, this), l.Game.EventDispatcher.On(m.GameEventIds.AddDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelDataChange, this), l.Game.EventDispatcher.On(m.GameEventIds.RemoveDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelDataChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftSuccess, this), l.Game.EventDispatcher.Off(m.GameEventIds.ChangeDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelDataChange, this), l.Game.EventDispatcher.Off(m.GameEventIds.AddDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelDataChange, this), l.Game.EventDispatcher.Off(m.GameEventIds.RemoveDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelDataChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityContinuousPurchasePanel/Components/ContinuousPurchaseBubbleComponent", cc.Prefab), n = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._bubblePrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ActivityPurchase_Title".ToUILocale(), this.DailyRewardButtonLabel.string = "daysPay_daily".ToUILocale(), this.PreviewGiftButtonLabel.string = "ActivityPurchase_Preview_Gift".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.DailyRewardButton.node.on("click", this.OnDailyRewardButtonClick, this), this.PreviewGiftButton.node.on("click", this.OnPreviewGiftButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n], this._moveCount = this._activityConfig.CustomPart.RewardIndexs[2] - this._activityConfig.CustomPart.RewardIndexs[1], this.SetIntervalTimeArray()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r, i, a, l = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), o = this.LoadDynamicAsset("ActivityContinuousPurchasePanel/Spine/" + this._activityConfig.CustomPart.BackdropId + "_ppmj", sp.SkeletonData), r = this.LoadDynamicAsset("ActivityContinuousPurchasePanel/Spine/" + this._activityConfig.Common.Pictures[5], sp.SkeletonData), i = this.LoadDynamicAsset("ActivityContinuousPurchasePanel/Spine/UI_Effect_PPMJ_" + this._activityConfig.CustomPart.BackdropId, sp.SkeletonData), [4, Promise.all([o, r, i]).then(function(e) {
                                        t = e[0], l._bubbleSpine = e[1], n = e[2]
                                    })];
                                case 1:
                                    return s.sent(), this._activityConfig.Common.Pictures[9] ? (a = this, [4, this.LoadDynamicAsset("ActivityContinuousPurchasePanel/Spine/" + this._activityConfig.Common.Pictures[9], sp.SkeletonData)]) : [3, 3];
                                case 2:
                                    a._bubbleSpine2 = s.sent(), s.label = 3;
                                case 3:
                                    return this.AvatarSpine.skeletonData = t, this.TopSpine.skeletonData = n, [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._playerModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), this.DailyRewardButton.node.active = !this._playerModel.DailyRewards, t || (this.AvatarSpine.setSkin("skin1"), this.AvatarSpine.setAnimation(0, "standby_1", !0), this.TopSpine.setAnimation(0, "Ani_UI_Effect_PPMJ_" + this._activityConfig.CustomPart.BackdropId + "_standby", !0), this.SetMaskIcon(), this.SetCurrentGiftIndex(), this.SetBubbleArray(), this.SetLastBubbleArray(), this.SetLeftTime(), this.schedule(this.SetLeftTime, 1)), this.SetRedDot()
                }, t.prototype.SetIntervalTimeArray = function() {
                    this._moveIntervalTimeArray = [];
                    for (var e = 0; e < this._activityConfig.CustomPart.Positions.length; e++)
                        if (0 == e) this._moveIntervalTimeArray.push(0);
                        else {
                            var t = this._activityConfig.CustomPart.Positions[e].Items[0],
                                n = this._activityConfig.CustomPart.Positions[e].Items[1],
                                o = this._activityConfig.CustomPart.Positions[e - 1].Items[0],
                                r = this._activityConfig.CustomPart.Positions[e - 1].Items[1],
                                i = Math.floor(Math.sqrt((t - o) * (t - o) + (n - r) * (n - r))) / this._activityConfig.CustomPart.Speed + this._moveIntervalTimeArray[e - 1];
                            this._moveIntervalTimeArray.push(i)
                        }
                }, t.prototype.SetMaskIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.MaskIcon.node.active = !!this._activityConfig.Common.Pictures[7], this._activityConfig.Common.Pictures[7] ? (e = this.MaskIcon, [4, this.GetBubbleSprite(this._activityConfig.Common.Pictures[7])]) : [3, 2];
                                case 1:
                                    e.spriteFrame = t.sent(), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetCurrentGiftIndex = function() {
                    this._currentGiftIndexArray = [];
                    for (var e = this._currentGiftArrayStartIndex; e < this._activityConfig._Packs.length && (!this._playerModel.Packs[this._activityConfig._Packs[e].Id].Items[0] && this._currentGiftIndexArray.length < this._activityConfig.CustomPart.RewardIndexs.length && this._currentGiftIndexArray.push(e), this._currentGiftIndexArray.length != this._activityConfig.CustomPart.RewardIndexs.length); e++);
                    this._currentGiftIndexArray.length > 0 && (this._currentGiftArrayStartIndex = this._currentGiftIndexArray[0])
                }, t.prototype.SetBubbleArray = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (!(this._currentGiftIndexArray.length > 0)) return [3, 1];
                                    for (e = this._activityConfig.CustomPart.RewardIndexs[this._currentGiftIndexArray.length - 1], t = 0; t <= e; t++)(n = this.GetBubbleNode()).setParent(this.MainNode), -1 != (o = this._activityConfig.CustomPart.RewardIndexs.indexOf(t)) && o < this._currentGiftIndexArray.length ? (r = this._currentGiftIndexArray[o], i = this._activityConfig._Packs[r], n.getComponent(h.default).Init(t, this._moveIntervalTimeArray, !1, this, this._activityConfig, i, this._itemPrefab)) : n.getComponent(h.default).Init(t, this._moveIntervalTimeArray, !1, this, this._activityConfig);
                                    return [3, 3];
                                case 1:
                                    return this.NoneTipNode.active = !0, a = this.NoneTipBg, [4, this.GetBubbleSprite(this._activityConfig.Common.Pictures[8])];
                                case 2:
                                    a.spriteFrame = s.sent(), this.NoneTipLabel.string = "ActivityPurchase_None_Gift_Tip".ToUILocale(), s.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetLastBubbleArray = function() {
                    if (0 != this._currentGiftIndexArray.length && this._currentGiftIndexArray[this._currentGiftIndexArray.length - 1] < this._activityConfig._Packs.length - 1)
                        for (var e = this._activityConfig.CustomPart.Positions.length - this._moveCount; e < this._activityConfig.CustomPart.Positions.length; e++) {
                            var t = this.GetBubbleNode();
                            t.setParent(this.MainNode);
                            var n = this._activityConfig.CustomPart.RewardIndexs.indexOf(e);
                            if (-1 != n && n < this._currentGiftIndexArray.length) {
                                var o = this._currentGiftIndexArray[n] + 1,
                                    r = this._activityConfig._Packs[o];
                                t.getComponent(h.default).Init(e, this._moveIntervalTimeArray, !0, this, this._activityConfig, r, this._itemPrefab)
                            } else t.getComponent(h.default).Init(e, this._moveIntervalTimeArray, !0, this, this._activityConfig);
                            t.active = !0
                        }
                }, t.prototype.SetSpineNodeState = function() {
                    for (var e = 0; e < this.SpineNodeArray.length; e++) this.SpineNodeArray[e].active = e < this._currentGiftIndexArray.length - 1
                }, t.prototype.SetLeftTime = function() {
                    var e = f.default.Instance.ComputeDeadTime(this._activityConfig.Common) - p.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "Activity_Story_LeftTime".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetRedDot = function() {
                    g.RedDotManager.Instance.BindInstance(this.DailyRewardButton.node, g.RedDotManager.Instance.InstanceRedDot.ContinuousPurchaseGiftDailyReward, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.GetBubbleNode = function() {
                    return this._bubbleNodePool ? this._bubbleNodePool.size() > 0 ? this._bubbleNodePool.get() : cc.instantiate(this._bubblePrefab) : (this._bubbleNodePool = new cc.NodePool, cc.instantiate(this._bubblePrefab))
                }, t.prototype.PutBubbleNode = function(e) {
                    this._bubbleNodePool || (this._bubbleNodePool = new cc.NodePool), this._bubbleNodePool.put(e)
                }, t.prototype.GetBubbleSpine = function(e) {
                    return 0 == e ? this._bubbleSpine : this._bubbleSpine2
                }, t.prototype.GetBubbleSprite = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._spriteMap[e] ? [2, this._spriteMap[e]] : [3, 1];
                                case 1:
                                    return [4, this.LoadDynamicAsset("ActivityContinuousPurchasePanel/PNG/" + e, cc.SpriteFrame)];
                                case 2:
                                    return t = n.sent(), this.isValid ? (this._spriteMap[e] = t, [2, t]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "ActivityPurchase_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["ActivityPurchase_Rule_Content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnDailyRewardButtonClick = function() {
                    if (this._playerModel.DailyRewards) c.UIUtlity.ShowFloatingHint("ActivityPurchase_DailyReward_Tip".ToUILocale());
                    else {
                        var e = new u.Req_Activity_CommonDailyRewards;
                        e.ActivityId = this._activityConfig._id, p.RpcComponent.Instance.Call(e, function(e) {
                            c.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnPreviewGiftButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ContinuousPurchaseGiftPackPreviewPanel.Path, this._activityConfig._id)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnModelDataChange = function(e) {
                    for (var t in e) {
                        var n = Number.parseInt(t),
                            o = p.DataCenter.Instance.ActivityConfigs[n];
                        o && o.Common.Type == I.ActivityType.ContinuousPack && (this._isActivityModelChange = !0, this.CheckGiftBuyComplete())
                    }
                }, t.prototype.OnBuyGiftSuccess = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._isPaySuccess = !0, this.CheckGiftBuyComplete(), [2]
                        })
                    })
                }, t.prototype.CheckGiftBuyComplete = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._isPaySuccess && this._isActivityModelChange ? (this._isPaySuccess = !1, this._isActivityModelChange = !1, this.AvatarSpine.setAnimation(0, "standby_2", !1), this.TopSpine.setAnimation(0, "Ani_UI_Effect_PPMJ_" + this._activityConfig.CustomPart.BackdropId, !1), this.AvatarSpine.setCompleteListener(function() {
                                        t.AvatarSpine.setAnimation(0, "standby_1", !0)
                                    }), this.TopSpine.setCompleteListener(function() {
                                        t.TopSpine.setAnimation(0, "Ani_UI_Effect_PPMJ_" + t._activityConfig.CustomPart.BackdropId + "_standby", !0)
                                    }), this._playerModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), this.SetCurrentGiftIndex(), this._currentGiftIndexArray.length > 0 ? (this.SetLastBubbleArray(), [3, 3]) : [3, 1]) : [3, 3];
                                case 1:
                                    return this.NoneTipNode.active = !0, e = this.NoneTipBg, [4, this.GetBubbleSprite(this._activityConfig.Common.Pictures[8])];
                                case 2:
                                    e.spriteFrame = n.sent(), this.NoneTipLabel.string = "ActivityPurchase_None_Gift_Tip".ToUILocale(), n.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._bubbleNodePool && this._bubbleNodePool.clear()
                }, i([v(sp.Skeleton)], t.prototype, "AvatarSpine", void 0), i([v(cc.Sprite)], t.prototype, "MaskIcon", void 0), i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.RichText)], t.prototype, "LeftTime", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Button)], t.prototype, "DailyRewardButton", void 0), i([v(cc.Label)], t.prototype, "DailyRewardButtonLabel", void 0), i([v(cc.Button)], t.prototype, "PreviewGiftButton", void 0), i([v(cc.Label)], t.prototype, "PreviewGiftButtonLabel", void 0), i([v([cc.Node])], t.prototype, "SpineNodeArray", void 0), i([v(sp.Skeleton)], t.prototype, "TopSpine", void 0), i([v(cc.Node)], t.prototype, "MainNode", void 0), i([v(cc.Node)], t.prototype, "NoneTipNode", void 0), i([v(cc.Sprite)], t.prototype, "NoneTipBg", void 0), i([v(cc.Label)], t.prototype, "NoneTipLabel", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([C], t)
            }(l.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ContinuousPurchaseBubbleComponent": "ContinuousPurchaseBubbleComponent"
    }],
    ActivityCountDownComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "51a624q0KlPqq59NNGvpR7q", "ActivityCountDownComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../../../Consts/Etc"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TimeDesc = null, t.Time = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._common = e, this._deadLine || (this._deadLine = s.default.Instance.ComputeExtraShowDeadTime(e), this.CountDownActivityTime(), this.schedule(this.CountDownActivityTime, 1))
                }, t.prototype.CountDownActivityTime = function() {
                    var e = this._deadLine - a.RpcComponent.Instance.ServerTime;
                    if (e < 0) this.unschedule(this.CountDownActivityTime), this.TimeDesc.string = "Activity_HeroPK_Round_Tag_End".ToUILocale();
                    else {
                        this.TimeDesc.string = e > this._common.ExtraShowDays * l.Etc.DayDuration ? "activity_remain_time".ToUILocale() : "activityBoss_show_time".ToUILocale();
                        var t = e > this._common.ExtraShowDays * l.Etc.DayDuration ? e - this._common.ExtraShowDays * l.Etc.DayDuration : e;
                        this.Time.string = s.default.ActivityTimeLeftFormat(t)
                    }
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([p(cc.Label)], t.prototype, "TimeDesc", void 0), i([p(cc.Label)], t.prototype, "Time", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    ActivityCumulativeChargePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5441fjlKM5LMqKrt4yUPXHl", "ActivityCumulativeChargePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/ProgressRewardNode"),
            _ = e("../Components/CurrencyBarItem"),
            C = e("./ACCDrawReward"),
            v = e("../../Components/Components"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../Components/CustomProgressBar"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.LeftTimeRichText = null, t.DetailButton = null, t.DrawButton = null, t.DrawButtonLabel = null, t.GrayButton = null, t.GrayButtonLabel = null, t.BackButton = null, t.ScrollView = null, t.ChargeProgressBar = null, t.Bar = null, t.ChargeValue = null, t.ChargeLabel = null, t.TopCurrencyBar = null, t.DrawRewardContainer = null, t.ConsumptionIcon = null, t.ConsumeIcon = null, t.ConsumeNum = null, t.MoveLeftNode = null, t.MoveRightNode = null, t.RedDotLeftNode = null, t.RedDotRightNode = null, t._itemContainerName = "accItemContainer", t._progressItemName = "pbar", t._ticketId = 46, t._ExistDRs = [], t._remainderRewardCount = 0, t._isDrawing = !1, t._lightDuration = 1, t._canArrow = !1, t._stepIndex = 0, t._duration = 1, t._time = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnItemChanges, this), l.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelChanges, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnItemChanges, this), l.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(u.UserActivity_Model._n_), this.OnModelChanges, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(g.BundlePath.ItemComponent), this.LoadDynamicAsset("ActivityCumulativeChargePanel/Components/ProgressRewardNode"), this.LoadDynamicAsset("ActivityCumulativeChargePanel/Components/ACCDrawReward")]).then(function(e) {
                                        t._itemPrefab = e[0], t._progressRewardNodePrefab = e[1], t._drawRewardPrefab = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.DrawButton.node.on("click", this.OnDrawButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.MoveLeftNode.node.on("click", this.OnMoveLeftButtonClick, this), this.MoveRightNode.node.on("click", this.OnMoveRightButtonClick, this), this.ChargeLabel.string = "cumuCharge_account".ToUILocale(), this.DrawButtonLabel.string = "cumuCharge_draw".ToUILocale(), this.GrayButtonLabel.string = "cumuCharge_out".ToUILocale(), this._ACCDrawRewards = [], this._canArrow = !1, this.DrawRewardContainer.children.forEach(function(e) {
                        var n = cc.instantiate(t._drawRewardPrefab);
                        n.setParent(e), t._ACCDrawRewards.push(n.getComponent(C.default))
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = m.default.ParseActivityParams(t, p.ActivityType.TotalPaySummon), this._deadLine = m.default.Instance.ComputeDeadTime(this._data.Common), this.Title.string = this._data.Common.Title, this._data._Tasks[this._data._Tasks.length - 1].TotalCount;
                    var n = this._data._Tasks.length * this._data.CustomPart.LimitLines;
                    this.ChargeProgressBar.node.width = n, this.ChargeProgressBar.TotalLength = n, this.Bar.width = n, this._canArrow = !0, this._progressRewards = [];
                    for (var o = 0; o < this._data._Tasks.length; o++) {
                        (a = cc.instantiate(this._progressRewardNodePrefab)).setParent(this.ChargeProgressBar.node), a.y = 0, a.x = (o + 1) * this._data.CustomPart.LimitLines, this._progressRewards[o] = a.getComponent(I.default), this._progressRewards[o].NodeSprite.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeUnlock"), this._progressRewards[o].item = cc.instantiate(this._itemPrefab).getComponent(y.ItemComponent), this._progressRewards[o].threshold = this._data._Tasks[o].TotalCount, this._progressRewards[o].TouchCover.name = this._data._Tasks[o].Id.toString(), this._progressRewards[o].taskId = this._data._Tasks[o].Id, this._progressRewards[o].ValueLabel.string = this._data._Tasks[o].TotalCount.toString();
                        var r = this._data._Tasks[o].Rewards[0].Items,
                            i = d.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, r[0]);
                        this._progressRewards[o].item.Init({
                            ItemId: r[0],
                            Count: r[1]
                        }, i.Star ? y.ItemComponentType.ItemWithStar : y.ItemComponentType.ItemCommon), this._progressRewards[o].item.node.name = this._progressItemName
                    }
                    for (o = 0; o < this._ACCDrawRewards.length; o++) {
                        var a = cc.instantiate(this._itemPrefab);
                        this._ACCDrawRewards[o].item = a.getComponent(y.ItemComponent);
                        var s = this._data.__RandomLib[o].Rewards[0].Items;
                        i = d.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, s[0]), this._ACCDrawRewards[o].item.Init({
                            ItemId: s[0],
                            Count: s[1]
                        }, i.Star ? y.ItemComponentType.ItemWithStar : y.ItemComponentType.ItemCommon), this._ACCDrawRewards[o].id = this._data.__RandomLib[o].Id
                    }
                    this._ticketId = this._data.__CommonSummon[0].ConsumeItem[0].Items[0], this.LoadIcon()
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (e.prototype.DisPlay.call(this, t), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this._model = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data._id), this.TopCurrencyBar.Init(this._ticketId), !t) {
                        this._data._Tasks[this._data._Tasks.length - 1].TotalCount;
                        var o = this.GetCanReceiveTasks();
                        if (o.length > 0) {
                            var r = o[0],
                                i = this._data._Tasks.indexOf(r);
                            if (i > -1) {
                                var a = (i + 1) * this._data.CustomPart.LimitLines,
                                    s = Math.max(a - 450, 0);
                                this.ScrollView.scrollToOffset(cc.v2(s, this.ScrollView.getScrollOffset().y))
                            }
                        }
                    }
                    for (var c = 0, p = 0; p < this._ACCDrawRewards.length; p++) this.IsLibOut(this._ACCDrawRewards[p].id) ? this._ACCDrawRewards[p].goodCount = 0 : this._ACCDrawRewards[p].goodCount = this._data.__RandomLib[p].Count - this.GetDrawCount(this._data.__RandomLib[p].Id), c += this._ACCDrawRewards[p].goodCount;
                    this.DrawButton.node.active = c > 0, this.GrayButton.node.active = !this.DrawButton.node.active, this._ExistDRs = [], this._remainderRewardCount = 0, this._ACCDrawRewards.forEach(function(e) {
                        e.Mask.active || (n._remainderRewardCount++, n._ExistDRs.push(e))
                    });
                    var f = this._data._Tasks[this._data._Tasks.length - 1],
                        y = d.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * this._data._id + f.Id);
                    for (this.ChargeProgressBar.progress = this.GetProgress(f), this.ChargeValue.string = y.Progress.toString(), p = 0; p < this._progressRewards.length; p++) f = this._data._Tasks[p], y = d.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * this._data._id + f.Id), this._progressRewards[p].item.SetReceivedTagState(y.IsCompleted), this._progressRewards[p].reddot = !y.IsCompleted && y.Progress >= f.TotalCount;
                    var g = v.DataCenter.Instance.GetItemCount(this._ticketId);
                    this.ConsumeNum.string = "{0}/{1}".Fmt(g.FmtCurrency(), 1), l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._data._id)
                }, t.prototype.OnItemClick = function(e, t) {
                    if (t.parent.name == this._itemContainerName) {
                        if (t.name == this._progressItemName) {
                            var n = t.parent.parent.parent.getComponent(I.default),
                                o = d.DataCenter.Instance.GetDataById(u.UserTask_Model, n.taskId + 1e4 * this._data._id);
                            if (o.Progress >= n.threshold) {
                                if (o.IsCompleted) return f.UIUtlity.ShowFloatingHint("already_receive".ToUILocale());
                                var r = new u.Req_Activity_CommonTaskReward;
                                return r.ActivityId = this._data._id, r.TaskIds = [n.taskId], void d.RpcComponent.Instance.Call(r, function(e) {
                                    f.UIUtlity.ShwDisplayRewardPanel(e.Rewards), l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REFRESH_MAINUI_PERSONALITY)
                                })
                            }
                        }
                        f.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                    }
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = {
                        name: "cumuCharge_RuleMainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["cumuCharge_RuleText".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnDrawButtonClick = function() {
                    var e = this;
                    if (d.DataCenter.Instance.IsItemEnough(this._ticketId, 1)) {
                        if (!m.default.CheckActivityIsEnd(this._data.Common, !0)) {
                            this.DrawButton.interactable = !1;
                            var t = new u.Req_Activity_CommonSummon;
                            t.ItemId = this._ticketId, t.Type = this._data.__CommonSummon[0].Id, t.ActivityId = this._data._id, d.RpcComponent.Instance.Call(t, function(t) {
                                if (e._remainderRewardCount > 1) e._isDrawing = !0, e._duration = .1, e._rewards = t.Items, e._model = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, e._data._id);
                                else {
                                    var n = [];
                                    t.Items.forEach(function(e) {
                                        n.push({
                                            ItemId: e.Items[0],
                                            Count: e.Items[1]
                                        })
                                    }), f.UIUtlity.ShwDisplayRewardPanel(n), e.DrawButton.node.active = !1
                                }
                            }, function() {
                                e.DrawButton.interactable = !0
                            })
                        }
                    } else f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._ticketId.ToItemName()))
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnMoveLeftButtonClick = function() {
                    var e = this.ScrollView.getScrollOffset().x + this._data.CustomPart.LimitLines;
                    this.ScrollView.scrollToOffset(cc.v2(-e, this.ScrollView.getScrollOffset().y), .2)
                }, t.prototype.OnMoveRightButtonClick = function() {
                    var e = this.ScrollView.getScrollOffset().x - this._data.CustomPart.LimitLines;
                    this.ScrollView.scrollToOffset(cc.v2(-e, this.ScrollView.getScrollOffset().y), .2)
                }, t.prototype.OnItemChanges = function(e) {
                    for (var t in e) switch (Number.parseInt(t)) {
                        case this._ticketId:
                            this.TopCurrencyBar.Init(this._ticketId)
                    }
                }, t.prototype.OnModelChanges = function(e) {
                    for (var t in e) switch (Number.parseInt(t)) {
                        case this._data._id:
                            var n = e[t];
                            this._model = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data._id);
                            var o;
                            o = null != n.Summons[this._data.__SummonType[0].Id] && null != n.Summons[this._data.__SummonType[0].Id].LibCount ? n.Summons[this._data.__SummonType[0].Id].LibCount : {};
                            var r = this._model.Summons[this._data.__SummonType[0].Id].LibCount;
                            for (var i in r) r[i] && r[i] != o[i] && (this._chosenId = Number.parseInt(i))
                    }
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - d.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.QuitPanelStack(this) : this.LeftTimeRichText.string = "openServer_frameCountDown".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(e))
                }, t.prototype.update = function(e) {
                    if (this._canArrow) {
                        Math.round(Math.abs(this.ScrollView.getScrollOffset().x)) >= this.ScrollView.getMaxScrollOffset().x ? this.MoveRightNode.node.active = !1 : this.MoveRightNode.node.active = !0, Math.round(this.ScrollView.getScrollOffset().x) >= 0 ? this.MoveLeftNode.node.active = !1 : this.MoveLeftNode.node.active = !0;
                        var t = this.GetCanReceiveTasks();
                        if (t.length > 0) {
                            this._data._Tasks[this._data._Tasks.length - 1].TotalCount, this.RedDotLeftNode.active = !1, this.RedDotRightNode.active = !1;
                            for (var n = 0; n < t.length; n++) {
                                var o = t[n],
                                    r = this._data._Tasks.indexOf(o);
                                if (r > -1) {
                                    var i = (r + 1) * this._data.CustomPart.LimitLines;
                                    Math.abs(this.ScrollView.getScrollOffset().x) >= i && (this.RedDotLeftNode.active = !0), Math.abs(this.ScrollView.getScrollOffset().x) <= i - 900 && (this.RedDotRightNode.active = !0)
                                }
                            }
                        } else this.RedDotLeftNode.active = !1, this.RedDotRightNode.active = !1
                    }
                    if (!(this._ExistDRs.length < 2))
                        if (this._time > .3) {
                            if (this._isDrawing && this._time > .3 && this._ExistDRs[this._stepIndex] && this._ExistDRs[this._stepIndex].id == this._chosenId) {
                                var a = [];
                                return this._rewards.forEach(function(e) {
                                    a.push({
                                        ItemId: e.Items[0],
                                        Count: e.Items[1]
                                    })
                                }), f.UIUtlity.ShwDisplayRewardPanel(a), this._isDrawing = !1, this.DrawButton.interactable = !0, this._ExistDRs[this._stepIndex].HighLight.active = !1, void(this._ExistDRs = [])
                            }
                            this._stepIndex >= this._ExistDRs.length && (this._stepIndex = this._ExistDRs.length - 1), this._ExistDRs[this._stepIndex].HighLight.active = !1, this._stepIndex = (this._stepIndex + 1) % this._ExistDRs.length, this._ExistDRs[this._stepIndex].HighLight.active = !0, this._time = 0
                        } else this._time += e
                }, t.prototype.GetDrawCount = function(e) {
                    if (!this._model || !this._model.Summons || !this._model.Summons[this._data.__SummonType[0].Id]) return 0;
                    var t = this._model.Summons[this._data.__SummonType[0].Id].LibCount;
                    return t && t[e] ? t[e] : 0
                }, t.prototype.IsLibOut = function(e) {
                    if (this._model && this._model.Summons && this._model.Summons[this._data.__SummonType[0].Id]) {
                        var t = this._model.Summons[this._data.__SummonType[0].Id].LibStatus;
                        if (t && t[e]) return -1 == this._model.Summons[this._data.__SummonType[0].Id].LibStatus[e]
                    }
                    return !1
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = m.default.Instance.GetItemPathById(this._ticketId), [4, this.LoadDynamicAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.ConsumptionIcon.spriteFrame = t, this.ConsumeIcon.spriteFrame = t, [2]
                            }
                        })
                    })
                }, t.prototype.GetCanReceiveTasks = function() {
                    for (var e = [], t = 0; t < this._data._Tasks.length; t++) {
                        var n = this._data._Tasks[t],
                            o = d.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * this._data._id + n.Id);
                        !o.IsCompleted && o.Progress >= n.TotalCount && e.push(n)
                    }
                    return e.sort(function(e, t) {
                        return e.Id - t.Id
                    }), e
                }, t.prototype.GetProgress = function(e) {
                    for (var t = 0, n = d.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * this._data._id + e.Id).Progress, o = null, r = 0, i = this._data._Tasks.length * this._data.CustomPart.LimitLines, a = 0; a < this._data._Tasks.length; a++) n >= this._data._Tasks[a].TotalCount && (o = this._data._Tasks[a], r = a + 1);
                    if (o) {
                        var s = r >= this._data._Tasks.length ? null : this._data._Tasks[r],
                            l = r / this._data._Tasks.length * i,
                            c = 0;
                        s && (c = (n - o.TotalCount) / (s.TotalCount - o.TotalCount) * this._data.CustomPart.LimitLines), t = (l + c) / i
                    } else t = n / this._data._Tasks[0].TotalCount * this._data.CustomPart.LimitLines / i;
                    return t
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([A(cc.Button)], t.prototype, "DetailButton", void 0), i([A(cc.Button)], t.prototype, "DrawButton", void 0), i([A(cc.Label)], t.prototype, "DrawButtonLabel", void 0), i([A(cc.Button)], t.prototype, "GrayButton", void 0), i([A(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([A(cc.Button)], t.prototype, "BackButton", void 0), i([A(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([A(S.default)], t.prototype, "ChargeProgressBar", void 0), i([A(cc.Node)], t.prototype, "Bar", void 0), i([A(cc.Label)], t.prototype, "ChargeValue", void 0), i([A(cc.Label)], t.prototype, "ChargeLabel", void 0), i([A(_.default)], t.prototype, "TopCurrencyBar", void 0), i([A(cc.Node)], t.prototype, "DrawRewardContainer", void 0), i([A(cc.Sprite)], t.prototype, "ConsumptionIcon", void 0), i([A(cc.Sprite)], t.prototype, "ConsumeIcon", void 0), i([A(cc.RichText)], t.prototype, "ConsumeNum", void 0), i([A(cc.Button)], t.prototype, "MoveLeftNode", void 0), i([A(cc.Button)], t.prototype, "MoveRightNode", void 0), i([A(cc.Node)], t.prototype, "RedDotLeftNode", void 0), i([A(cc.Node)], t.prototype, "RedDotRightNode", void 0), i([P], t)
            }(b.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/ProgressRewardNode": "ProgressRewardNode",
        "./ACCDrawReward": "ACCDrawReward"
    }],
    ActivityEmaPrayPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "24386VkX71GJJv4AnZIFUwu", "ActivityEmaPrayPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Components/EmaPrayCardComponent"),
            g = e("../Components/ItemComponent"),
            m = e("../../../Util/TimeUtil"),
            I = e("../../../Consts/Etc"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../Channel/ChannelManager"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.PrayPart = 0] = "PrayPart", e[e.GiftPart = 1] = "GiftPart"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.ActivityLeftTime = null, t.RuleButton = null, t.StartDaysTip = null, t.DaysLeftTime = null, t.LeftTimeIconNode = null, t.EndIconNode = null, t.PrayPartNode = null, t.PrayCardContainer = null, t.PrayTimesTip = null, t.PrayButton = null, t.PrayButtonLabel = null, t.GiftPartNode = null, t.GiftBottomBgNode = null, t.GiftHeroNode = null, t.GiftLineNode = null, t.GiftItemNodeArray = [], t.SellOutTip = null, t.BuyButton = null, t.BuyButtonLabel = null, t.GetVipPointNode = null, t.GetVipPointTag = null, t.GetVipPointCount = null, t.DiscountValue = null, t.DiscountLabel = null, t.BuyButtonRedDot = null, t.ReturnButton = null, t._currentPart = l.PrayPart, t._prayCardComponentArray = [], t._giftItemComponentArray = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityEmaPrayPanel/Components/EmaPrayCardComponent", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("ActivityEmaPrayPanel/PNG/ActivityEmaPrayAtlas", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._prayCardPrefab = e[0], r._itemPrefab = e[1], r._atlas = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "Activity_EmaPray_Title".ToUILocale(), this.PrayButtonLabel.string = "Activity_EmaPray_PrayPart_Title".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.PrayButton.node.on("click", this.OnPrayButtonClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this);
                var n = t[0];
                this._activityConfig = d.DataCenter.Instance.ActivityConfigs[n], this.SetPrayCardConfigMap()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._playerModel = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id), t || (this.SetTodayData(), this.SetLeftTime(), this.schedule(this.SetLeftTime, 1)), this.SetCurrentPart()
            }, t.prototype.SetPrayCardConfigMap = function() {
                var e = this;
                this._prayCardConfigMap = {}, this._activityConfig.__Contents.forEach(function(t) {
                    e._prayCardConfigMap[t.Id] = t
                }), this._prayCardTitleConfigMap = {}, this._activityConfig._Locale.forEach(function(t) {
                    e._prayCardTitleConfigMap[t.Id] = t
                })
            }, t.prototype.SetTodayData = function() {
                this._startDays = f.default.Instance.ComputeContiuousTime(this._activityConfig.Common), this.StartDaysTip.string = "Activity_EmaPray_StartDays_Tip".ToUILocale().Fmt(this._startDays), this._todayEndTime = m.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime) + I.Etc.DayDuration, this.SetTodayGiftConfig()
            }, t.prototype.SetTodayGiftConfig = function() {
                for (var e = 0; e < this._activityConfig.__Days.length; e++) {
                    var t = this._activityConfig.__Days[e];
                    if (t.Id == this._startDays) {
                        this._todayGiftConfig = t;
                        break
                    }
                }
            }, t.prototype.SetCurrentPart = function() {
                this.PrayPartNode.active = !1, this.GiftPartNode.active = !1, this._currentPart == l.PrayPart ? (this.PrayPartNode.active = !0, this._selectedPrayIdArray = this._playerModel.Int2DArray.length > 0 && this._playerModel.Int2DArray[this._startDays - 1] ? this._playerModel.Int2DArray[this._startDays - 1].Items : [], this.SetPrayCardContainer(), this.PrayTimesTip.string = "Activity_EmaPray_PrayTimes_Tip".ToUILocale().Fmt(this._todayGiftConfig.LimitCount - this._selectedPrayIdArray.length), this.PrayButton.node.active = this._selectedPrayIdArray.length >= this._todayGiftConfig.LimitCount) : this._currentPart == l.GiftPart && (this.GiftPartNode.active = !0, this.BuyButton.node.active = !1, this.SellOutTip.node.active = !1, this.GiftHeroNode.active = !0, this.SetCurrentGiftId(), this._currentGiftId ? (this.BuyButton.node.active = !0, this.GiftBottomBgNode.y = -150, this.GiftLineNode.y = 232, this.SetGiftItemNode(), this.SetBuyButtonShow()) : (this.SellOutTip.node.active = !0, this.GiftHeroNode.active = !1, this.GiftBottomBgNode.y = -30, this.GiftLineNode.y = 352, this.SetSellOutTip()))
            }, t.prototype.SetPrayCardContainer = function() {
                for (var e = 0; e < this._todayGiftConfig.ContentIds.length; e++) {
                    var t = this._prayCardComponentArray[e];
                    if (!t) {
                        var n = cc.instantiate(this._prayCardPrefab);
                        n.setParent(this.PrayCardContainer), t = n.getComponent(y.default), this._prayCardComponentArray[e] = t
                    }
                    t.node.active = !0;
                    var o = this._prayCardConfigMap[this._todayGiftConfig.ContentIds[e]],
                        r = this._prayCardTitleConfigMap[o.LocaleId].Content,
                        i = e % 2 == 0 ? this._atlas.getSpriteFrame("prayCardBg2") : this._atlas.getSpriteFrame("prayCardBg1");
                    t.Init(o, this._selectedPrayIdArray, this._todayGiftConfig.LimitCount, this._activityConfig._id, e, r, i, this._itemPrefab)
                }
                if (this._todayGiftConfig.ContentIds.length < this._prayCardComponentArray.length)
                    for (e = this._todayGiftConfig.ContentIds.length; e < this._prayCardComponentArray.length; e++) this._prayCardComponentArray[e].node.active = !1
            }, t.prototype.SetCurrentGiftId = function() {
                this._currentGiftId = 0;
                for (var e = 0; e < this._todayGiftConfig.PackIds.length; e++) {
                    var t = this._todayGiftConfig.PackIds[e];
                    if (!this._playerModel.Packs[t] || !this._playerModel.Packs[t].Items[0]) {
                        this._currentGiftId = t, this._itemCountIndex = e + 1;
                        break
                    }
                }
            }, t.prototype.SetGiftItemNode = function() {
                for (var e = 0; e < this.GiftItemNodeArray.length; e++) {
                    var t = this.GiftItemNodeArray[e],
                        n = this._selectedPrayIdArray[e];
                    if (n || 0 == n) {
                        t.parent.active = !0;
                        var o = this._giftItemComponentArray[e];
                        if (!o) {
                            var r = cc.instantiate(this._itemPrefab);
                            r.setParent(t), o = r.getComponent(g.ItemComponent), this._giftItemComponentArray[e] = o
                        }
                        var i = this._prayCardConfigMap[this._todayGiftConfig.ContentIds[n]];
                        o.Init({
                            ItemId: i.ItemId,
                            Count: i.Count[this._itemCountIndex]
                        })
                    } else t.parent.active = !1
                }
            }, t.prototype.SetBuyButtonShow = function() {
                var e = this;
                this._giftConfigMap || (this._giftConfigMap = {}, this._activityConfig._Packs.forEach(function(t) {
                    e._giftConfigMap[t.Id] = t
                }));
                var t = this._giftConfigMap[this._currentGiftId];
                this.BuyButtonLabel.string = t.Money > 0 ? C.default.Instance.CurrencySymbol + C.default.Instance.ExchangeMoney(t.Money) : "shop_buyFree".ToUILocale(), this.GetVipPointNode.active = t.VipPoint > 0, this.GetVipPointTag.string = "task_get_score_tag".ToUILocale(), this.GetVipPointCount.string = "x" + t.VipPoint, this.BuyButtonRedDot.active = !t.Money, f.default.Instance.SetDisCount(t.Discount, this.DiscountValue, this.DiscountLabel)
            }, t.prototype.SetSellOutTip = function() {
                this.GiftItemNodeArray.forEach(function(e) {
                    e.parent.active = !1
                }), this.SellOutTip.string = "Activity_EmaPray_Gift_SellOut_Tip".ToUILocale()
            }, t.prototype.SetLeftTime = function() {
                var e = f.default.Instance.ComputeDeadTime(this._activityConfig.Common) - d.RpcComponent.Instance.ServerTime;
                if (e < 0) c.UIManager.Instance.BackUIPanel();
                else {
                    this.ActivityLeftTime.string = "Activity_Story_LeftTime".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e));
                    var t = this._todayEndTime - d.RpcComponent.Instance.ServerTime;
                    t < 0 && (this.SetTodayData(), this.DisPlay(!0)), this.DaysLeftTime.string = f.default.ActivityTimeLeftFormat(t)
                }
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "Activity_EmaPray_Rule_Name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["Activity_EmaPray_Rule_Content".ToUILocale()]
                };
                u.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnPrayButtonClick = function() {
                this._currentPart = l.GiftPart, this.DisPlay(!0)
            }, t.prototype.OnBuyButtonClick = function() {
                var e = this._giftConfigMap[this._currentGiftId];
                if (e.Money) C.default.Instance.Pay(e.Id, this._activityConfig._id);
                else {
                    var t = new p.Req_Pay_ByDiamond;
                    t.Id = e.Id, t.ActivityId = this._activityConfig._id, d.RpcComponent.Instance.Call(t, function(e) {
                        u.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }
            }, t.prototype.OnReturnButtonClick = function() {
                this._currentPart == l.PrayPart ? c.UIManager.Instance.BackUIPanel() : this._currentPart == l.GiftPart && (this._currentPart = l.PrayPart, this.DisPlay(!0))
            }, t.prototype.OnItemClick = function(e, t) {
                var n = t.getComponent(g.ItemComponent); - 1 != this._giftItemComponentArray.indexOf(n) && u.UIUtlity.ShowItemTip(n.ItemId, t)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.RichText)], t.prototype, "ActivityLeftTime", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.RichText)], t.prototype, "StartDaysTip", void 0), i([S(cc.Label)], t.prototype, "DaysLeftTime", void 0), i([S(cc.Node)], t.prototype, "LeftTimeIconNode", void 0), i([S(cc.Node)], t.prototype, "EndIconNode", void 0), i([S(cc.Node)], t.prototype, "PrayPartNode", void 0), i([S(cc.Node)], t.prototype, "PrayCardContainer", void 0), i([S(cc.RichText)], t.prototype, "PrayTimesTip", void 0), i([S(cc.Button)], t.prototype, "PrayButton", void 0), i([S(cc.Label)], t.prototype, "PrayButtonLabel", void 0), i([S(cc.Node)], t.prototype, "GiftPartNode", void 0), i([S(cc.Node)], t.prototype, "GiftBottomBgNode", void 0), i([S(cc.Node)], t.prototype, "GiftHeroNode", void 0), i([S(cc.Node)], t.prototype, "GiftLineNode", void 0), i([S([cc.Node])], t.prototype, "GiftItemNodeArray", void 0), i([S(cc.Label)], t.prototype, "SellOutTip", void 0), i([S(cc.Button)], t.prototype, "BuyButton", void 0), i([S(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([S(cc.Node)], t.prototype, "GetVipPointNode", void 0), i([S(cc.Label)], t.prototype, "GetVipPointTag", void 0), i([S(cc.Label)], t.prototype, "GetVipPointCount", void 0), i([S(cc.Label)], t.prototype, "DiscountValue", void 0), i([S(cc.Label)], t.prototype, "DiscountLabel", void 0), i([S(cc.Node)], t.prototype, "BuyButtonRedDot", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([b], t)
        }(c.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/EmaPrayCardComponent": "EmaPrayCardComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityExchangeShopPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3c0519Y+L9AoIbwQ35IxnxQ", "ActivityExchangeShopPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Components/Components"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../../Consts/Consts"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../Components/CustomToggle"),
            g = e("../Components/GoodsItem"),
            m = e("./ShopUIPanel"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Auxiliary/GameEventsListener"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/PanelBottomToggles"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.LeftTimeLabel = null, t.LeftTimeValue = null, t.TopCurrencyBar = null, t.BannerSprite = null, t.WordSprite = null, t.DetailButton = null, t.ReturnButton = null, t.MoreToggleNode = null, t.GoodScrollView = null, t.ToggleScrollView = null, t.PanelBottomTogglesComponent = null, t._goodsItems = [], t._banenerPath = "", t._assets = [], t._togglesRedDots = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(f.UserActivity_Model._n_), this.OnDataChanges, this), l.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(f.UserItem_Model._n_), this.RefreshCurrencyBar, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnBuySuccess, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(f.UserActivity_Model._n_), this.OnDataChanges, this), l.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(f.UserItem_Model._n_), this.RefreshCurrencyBar, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnBuySuccess, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ItemsComponent/GoodsItem"), this.LoadDynamicAsset("Buttons/Toggle2")]).then(function(e) {
                                        t._goodPrefab = e[0], t._togglePrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LeftTimeLabel.string = "gift_remainderTime".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.GoodScrollView.node.height = p.UIUtlity.DESIGN_SCREEN_HEIGHT - 770, this.GoodScrollView.content.parent.height = this.GoodScrollView.node.height
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a, l, p, d, f, g, m, I, _, v, b, S = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    for (e.prototype.InitData.call(this), n = t[0], t.length > 1 && 1 == t[1] ? this._secretData = u.DataCenter.Instance.ActivityConfigs[n] : this._exchangeData = u.DataCenter.Instance.ActivityConfigs[n], t[2] && (this._banenerPath = t[2]), t[3] && (this._ruleData = t[3]), t[4] && (this._extraParam = t[4]), this._exchangeData ? (this.Title.string = this._exchangeData.Common.Title, this._deadLine = c.default.Instance.ComputeExtraShowDeadTime(this._exchangeData.Common)) : this._secretData && (this.Title.string = this._secretData.Common.Title, this._deadLine = c.default.Instance.ComputeExtraShowDeadTime(this._secretData.Common)), this._idToTaskLocals = {}, this._exchangeData && this._exchangeData._Locale.forEach(function(e) {
                                            S._idToTaskLocals[e.Id] = e.Content
                                        }), this._exchangeData ? (this._exchangeData._Shops ? this._shopsData = this._exchangeData._Shops : this._exchangeData._Shops && (this._shopsData = this._exchangeData._Shops), this._dataId = this._exchangeData._id, this._showImage = this._exchangeData.Common.ShowImage, this._shopItems = this._exchangeData._ShopItems) : this._secretData && (this._shopsData = this._secretData._Shops, this._dataId = this._secretData._id, this._showImage = this._secretData.Common.Pictures[0], this._shopItems = this._secretData._ShopItems), this._shopsData.sort(function(e, t) {
                                            return e.SortId - t.SortId
                                        }), o = [], p = 0; p < this._shopsData.length; p++) i = c.default.Instance.GetItemPathById(this._shopsData[p].HeaderCurrencyType[0]), o[p] = this.LoadDynamicAsset(i, cc.SpriteFrame);
                                    return [4, Promise.all(o).then(function(e) {
                                        r = e
                                    })];
                                case 1:
                                    for (s.sent(), this._shopsData.length, this._exchangeData && (a = c.default.Instance.ComputeActivitStartTime(this._exchangeData.Common)), this._toggles = [], l = 0, p = 0; p < this._shopsData.length; p++) d = !0, this._shopsData[p].Show && a && (f = a + (this._shopsData[p].Show[0] - 1) * h.Etc.DayDuration, g = a + this._shopsData[p].Show[1] * h.Etc.DayDuration, (u.RpcComponent.Instance.ServerTime < f || u.RpcComponent.Instance.ServerTime >= g) && (d = !1)), d && this._extraParam && this._extraParam.ToggleId == this._shopsData[p].Id && (l = p), (m = cc.instantiate(this._togglePrefab)).name = p.toString(), m.setParent(this.MoreToggleNode), I = m.getComponent(y.default), (_ = this._idToTaskLocals[this._shopsData[p].Id]) || (_ = "exchange_shop".ToUILocale()), I.Init(_), this._toggles.push(I), m.on("toggle", this.OnSwitchToggle, this), m.children[2].getComponent(cc.Sprite).spriteFrame = r[p], m.active = d;
                                    return this._toggles[l].isChecked = !0, this.PanelBottomTogglesComponent && this.PanelBottomTogglesComponent.RefreshUIStyle(), this.OnSwitchToggle(this._toggles[l]), this.SetBanner(), this.RefreshReddots(), this._deadLine > u.RpcComponent.Instance.ServerTime && u.RpcComponent.Instance.ServerTime + h.Etc.DayDuration > this._deadLine && (v = u.DataCenter.Instance.GetTempData("ExchangeShopTime"), b = void 0, (b = null == v ? {} : v)[this._dataId] = 1, u.DataCenter.Instance.SetTempData("ExchangeShopTime", b), C.RedDotManager.Instance.RefreshInstanceRedDotNode(C.RedDotManager.Instance.InstanceRedDot.ExchangeShopNode, {
                                        Value1: this._dataId
                                    })), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), _.default.Instance._zeroRefreshPanel = this
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnDetailButtonClick = function() {
                    if (this._ruleData) p.UIUtlity.ShowRulePanel(this._ruleData);
                    else {
                        var e;
                        e = this._secretData ? {
                            name: "exchange_shop".ToUILocale(),
                            titles: ["SecretExchangeShop_SubTitle".ToUILocale()],
                            contents: ["SecretExchangeShop_RuleInfo".ToUILocale()]
                        } : {
                            name: "exchange_shop".ToUILocale(),
                            titles: ["SecretExchangeShop_SubTitle".ToUILocale()],
                            contents: ["activityExchangeShop_RuleText".ToUILocale()]
                        }, p.UIUtlity.ShowRulePanel(e)
                    }
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    this._chosenIndex != t && (this._chosenIndex = t, this.RefreshGoods())
                }, t.prototype.OnLeftButtonClick = function() {
                    this.ToggleScrollView.scrollToLeft(.1)
                }, t.prototype.OnRightButtonClick = function() {
                    this.ToggleScrollView.scrollToRight(.1)
                }, t.prototype.OnDataChanges = function(e) {
                    for (var t in e) Number.parseInt(t) == this._dataId && (this.RefreshGoods(), this.RefreshReddots())
                }, t.prototype.OnBuySuccess = function() {
                    this.RefreshGoods()
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - u.RpcComponent.Instance.ServerTime;
                    e < 0 && l.UIManager.Instance.BackUIPanel(), this.LeftTimeValue.string = c.default.ActivityTimeLeftFormat(e)
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e = [], (e = this._banenerPath ? this._banenerPath.split("|") : this._secretData ? this._showImage.split("|") : [this._exchangeData._Shops[this._chosenIndex].Banner]).length > 1 ? (t = e[0], n = e[1], o = void 0, r = void 0, t ? [4, c.default.LoadActivityTexture(t)] : [3, 2]) : [3, 5];
                                case 1:
                                    o = a.sent(), a.label = 2;
                                case 2:
                                    return n ? [4, c.default.LoadActivityTexture(n)] : [3, 4];
                                case 3:
                                    r = a.sent(), a.label = 4;
                                case 4:
                                    return this.isValid ? (this.BannerSprite.spriteFrame = o, this.WordSprite.spriteFrame = r, o && this._assets.push(o), r && this._assets.push(r), [3, 8]) : (l.AssetsManager.Instance.UnloadAsset(o), l.AssetsManager.Instance.UnloadAsset(r), [2]);
                                case 5:
                                    return i = void 0, e[0] ? [4, c.default.LoadActivityTexture(e[0])] : [3, 7];
                                case 6:
                                    i = a.sent(), a.label = 7;
                                case 7:
                                    if (!this.isValid) return l.AssetsManager.Instance.UnloadAsset(i), [2];
                                    this.BannerSprite.spriteFrame = i, i && this._assets.push(i), a.label = 8;
                                case 8:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetGoodById = function(e) {
                    for (var t = 0; t < this._shopItems.length; t++)
                        if (e == this._shopItems[t].Id) return this._shopItems[t];
                    return null
                }, t.prototype.GetGoodBuyCount = function(e) {
                    return this._model.ShopItems[e] ? this._model.ShopItems[e] : 0
                }, t.prototype.RefreshGoods = function() {
                    this._model = u.DataCenter.Instance.GetDataById(f.UserActivity_Model, this._dataId);
                    var e = this._shopsData[this._chosenIndex];
                    this.TopCurrencyBar.Init(e.HeaderCurrencyType[0]);
                    for (var t = this.GetShopCanShowGoods(e.Goods), n = 0; n < t.length; n++) {
                        var o = this.GetGoodById(t[n].Items[0]);
                        if (null != o) {
                            if (null == this._goodsItems[n]) {
                                var r = cc.instantiate(this._goodPrefab);
                                r.setParent(this.GoodScrollView.content), this._goodsItems[n] = r.getComponent(g.default)
                            } else this._goodsItems[n].node.active = !0;
                            this._goodsItems[n].SetUI(o, null, m.ShopType.ActivityExchangeShop, this.GetGoodBuyCount(o.Id), this._dataId)
                        }
                    }
                    for (n = t.length; n < this._goodsItems.length; n++) this._goodsItems[n].node.active = !1
                }, t.prototype.GetShopCanShowGoods = function(e) {
                    var t = this,
                        n = [];
                    return e.forEach(function(e) {
                        var o = t.GetGoodById(e.Items[0]);
                        o && c.default.CheckEffectiveCondtion(o.EffectiveCondition) && n.push(e)
                    }), n
                }, t.prototype.RefreshCurrencyBar = function(e) {
                    for (var t in e) {
                        var n = Number.parseInt(t);
                        n == this._shopsData[this._chosenIndex].HeaderCurrencyType[0] && (this.TopCurrencyBar.Init(n), this.TopCurrencyBar.SetFixedWidth(200))
                    }
                }, t.prototype.RefreshReddots = function() {
                    this._model = u.DataCenter.Instance.GetDataById(f.UserActivity_Model, this._dataId);
                    for (var e = 0; e < this._toggles.length; e++) {
                        for (var t = this._shopsData[e], n = !1, o = this.GetShopCanShowGoods(t.Goods), r = 0; r < o.length; r++) {
                            var i = this.GetGoodById(o[r].Items[0]);
                            if (null != i && 0 == i.Price && this.GetGoodBuyCount(i.Id) < i.LimitCount) {
                                n = !0;
                                break
                            }
                        }
                        this._togglesRedDots[e] || (this._togglesRedDots[e] = {}), C.RedDotManager.Instance.BindNodeByResult(this._toggles[e].node, this._togglesRedDots[e], n)
                    }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this.unscheduleAllCallbacks()
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Label)], t.prototype, "LeftTimeLabel", void 0), i([w(cc.Label)], t.prototype, "LeftTimeValue", void 0), i([w(d.default)], t.prototype, "TopCurrencyBar", void 0), i([w(cc.Sprite)], t.prototype, "BannerSprite", void 0), i([w(cc.Sprite)], t.prototype, "WordSprite", void 0), i([w(cc.Button)], t.prototype, "DetailButton", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([w(cc.Node)], t.prototype, "MoreToggleNode", void 0), i([w(cc.ScrollView)], t.prototype, "GoodScrollView", void 0), i([w(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([w(v.default)], t.prototype, "PanelBottomTogglesComponent", void 0), i([S], t)
            }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GoodsItem": "GoodsItem",
        "../Components/PanelBottomToggles": "PanelBottomToggles",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    ActivityExchangeShopTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "51238N0FBZKXpO0kZo+dotA", "ActivityExchangeShopTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Components/Components"),
            p = e("../Components/CurrencyBarItem"),
            d = e("../../../Consts/Consts"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../Components/GoodsItem"),
            y = e("./ShopUIPanel"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/GameEventsListener"),
            I = e("../Components/GameModuleGuideManager"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../../Components/Components"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.LeftTimeLabel = null, t.LeftTimeValue = null, t.TopCurrencyBar = null, t.BannerSprite = null, t.WordSprite = null, t.GoodScrollView = null, t.Hint = null, t._goodsItems = [], t._banenerPath = "", t._assets = [], t._moduleGuideGroupIds = [10014], t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.GameEventIds.ChangeDataDetail.Fmt(h.UserActivity_Model._n_), this.OnDataChanges, this), l.Game.EventDispatcher.On(d.GameEventIds.ChangeDataDetail.Fmt(h.UserItem_Model._n_), this.RefreshCurrencyBar, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnBuySuccess, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.GameEventIds.ChangeDataDetail.Fmt(h.UserActivity_Model._n_), this.OnDataChanges, this), l.Game.EventDispatcher.Off(d.GameEventIds.ChangeDataDetail.Fmt(h.UserItem_Model._n_), this.RefreshCurrencyBar, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnBuySuccess, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/GoodsItem")]).then(function(e) {
                                        t._goodPrefab = e[0]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LeftTimeLabel.string = "gift_remainderTime".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function() {
                            return e.prototype.InitData.call(this), n = t[0], this._exchangeData = u.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._exchangeData.Common.Title, this._deadLine = c.default.Instance.ComputeExtraShowDeadTime(this._exchangeData.Common), this._shopsData = this._exchangeData._Shops[0], this._dataId = this._exchangeData._id, this._showImage = this._exchangeData.Common.ShowImage, this._shopItems = this._exchangeData._ShopItems, this.SetBanner(), [2]
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.RefreshGoods(), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this.ShowGameGuid(), m.default.Instance._zeroRefreshPanel = this
                }, t.prototype.OnDataChanges = function(e) {
                    for (var t in e) Number.parseInt(t) == this._dataId && this.RefreshGoods()
                }, t.prototype.OnBuySuccess = function() {
                    this.RefreshGoods()
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - u.RpcComponent.Instance.ServerTime;
                    e < 0 && l.UIManager.Instance.BackUIPanel(), this.LeftTimeValue.string = c.default.ActivityTimeLeftFormat(e)
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e = [], (e = this._banenerPath ? this._banenerPath.split("|") : this._showImage.split("|")).length > 1 ? (t = e[0], n = e[1], o = void 0, r = void 0, t ? [4, c.default.LoadActivityTexture(t)] : [3, 2]) : [3, 5];
                                case 1:
                                    o = a.sent(), a.label = 2;
                                case 2:
                                    return n ? [4, c.default.LoadActivityTexture(n)] : [3, 4];
                                case 3:
                                    r = a.sent(), a.label = 4;
                                case 4:
                                    return this.isValid ? (this.BannerSprite.spriteFrame = o, this.WordSprite.spriteFrame = r, o && this._assets.push(o), r && this._assets.push(r), [3, 8]) : (l.AssetsManager.Instance.UnloadAsset(o), l.AssetsManager.Instance.UnloadAsset(r), [2]);
                                case 5:
                                    return i = void 0, e[0] ? [4, c.default.LoadActivityTexture(e[0])] : [3, 7];
                                case 6:
                                    i = a.sent(), a.label = 7;
                                case 7:
                                    if (!this.isValid) return l.AssetsManager.Instance.UnloadAsset(i), [2];
                                    this.BannerSprite.spriteFrame = i, i && this._assets.push(i), a.label = 8;
                                case 8:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetGoodById = function(e) {
                    for (var t = 0; t < this._shopItems.length; t++)
                        if (e == this._shopItems[t].Id) return this._shopItems[t];
                    return null
                }, t.prototype.GetGoodBuyCount = function(e) {
                    return this._model.ShopItems[e] ? this._model.ShopItems[e] : 0
                }, t.prototype.RefreshGoods = function() {
                    this._model = u.DataCenter.Instance.GetDataById(h.UserActivity_Model, this._dataId), this.TopCurrencyBar.Init(this._shopsData.HeaderCurrencyType[0]);
                    for (var e = this.GetShopCanShowGoods(this._shopsData.Goods), t = 0; t < e.length; t++) {
                        var n = this.GetGoodById(e[t].Items[0]);
                        if (null != n) {
                            if (null == this._goodsItems[t]) {
                                var o = cc.instantiate(this._goodPrefab);
                                o.setParent(this.GoodScrollView.content), this._goodsItems[t] = o.getComponent(f.default)
                            } else this._goodsItems[t].node.active = !0;
                            this._goodsItems[t].SetUI(n, null, y.ShopType.ActivityExchangeShop, this.GetGoodBuyCount(n.Id), this._dataId)
                        }
                    }
                    for (t = e.length; t < this._goodsItems.length; t++) this._goodsItems[t].node.active = !1
                }, t.prototype.GetShopCanShowGoods = function(e) {
                    var t = this,
                        n = [];
                    return e.forEach(function(e) {
                        var o = t.GetGoodById(e.Items[0]);
                        o && c.default.CheckEffectiveCondtion(o.EffectiveCondition) && n.push(e)
                    }), n
                }, t.prototype.RefreshCurrencyBar = function(e) {
                    for (var t in e) {
                        var n = Number.parseInt(t);
                        n == this._shopsData.HeaderCurrencyType[0] && this.TopCurrencyBar.Init(n)
                    }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this.unscheduleAllCallbacks()
                }, t.prototype.ShowGameGuid = function(e) {
                    if (this._shopsData.HeaderCurrencyType[0] == d.CommonItemId.AllianceMazeCoin && (!e || e == this._guideGroupId)) {
                        var t = I.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = C.ConfigDataComponent.Instance.GetConfigById(_.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 41:
                                            I.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 42:
                                            I.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.Hint);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Label)], t.prototype, "LeftTimeLabel", void 0), i([S(cc.Label)], t.prototype, "LeftTimeValue", void 0), i([S(p.default)], t.prototype, "TopCurrencyBar", void 0), i([S(cc.Sprite)], t.prototype, "BannerSprite", void 0), i([S(cc.Sprite)], t.prototype, "WordSprite", void 0), i([S(cc.ScrollView)], t.prototype, "GoodScrollView", void 0), i([S(cc.Node)], t.prototype, "Hint", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Components/Components": "Components",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/GoodsItem": "GoodsItem",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    ActivityExchangeShopToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8e5d0mvGCpCC6KjDtOHiaEq", "ActivityExchangeShopToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Labels = [], t.CurrencyIcon = null, t
                }
                return r(t, e), t.prototype.InitLabel = function(e) {
                    this.Labels.forEach(function(t) {
                        t.string = e
                    })
                }, i([l({
                    type: [cc.Label]
                })], t.prototype, "Labels", void 0), i([l(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([s], t)
            }(cc.Toggle);
        n.default = c, cc._RF.pop()
    }, {}],
    ActivityFeedBackDrawPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6a373R0I4FPq7jZy5pocHSO", "ActivityFeedBackDrawPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./FeedBackDrawGood"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("./CommonRatePanel"),
            _ = e("../../Auxiliary/GameRecord"),
            C = e("../../Auxiliary/GameEventsListener"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.BottomTitle = null, t.LeftTimeRichText = null, t.LeftItemCountRichText = null, t.RightItem0CountRichText = null, t.RightItem1CountRichText = null, t.OrangeButton = null, t.OrangeButtonLabel = null, t.GrayButton = null, t.GrayButtonLabel = null, t.ReturnButton = null, t.DetailButton = null, t.GoodScrollView = null, t.Banner = null, t.BottomRestNode = null, t.BottomRightNode = null, t.BottomLeftItemContainer = null, t.BottomRightItem0Container = null, t.Ani = null, t.ChestNode = null, t.ChestReceivedNode = null, t.ButtonReceivedNode = null, t.ReddotNode = null, t.InputRichText = null, t.AcquireRichText = null, t._aniName = "Ani_UI_effect_fanlichoujiang", t._goods = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    var e = this;
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this._goods.forEach(function(t) {
                        t.node.off(cc.Node.EventType.TOUCH_END, e.OnGoodChosen, e)
                    })
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(d.BundlePath.ItemComponent), this.LoadDynamicAsset("ActivityFeedBackDrawPanel/Components/FeedBackDrawGood")]).then(function(e) {
                                        t._itemPrefab = e[0], t._goodPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OrangeButtonLabel.string = "receive".ToUILocale(), this.GrayButtonLabel.string = "receive".ToUILocale(), this.RightItem1CountRichText.string = "<outline width = 3 color = 000000>" + "GiftCode_extraReward".ToUILocale() + "</>", this.AcquireRichText.string = "<outline width = 3 color = 000000>" + "activityFeedBack_acquire".ToUILocale() + "</>", this.InputRichText.string = "<outline width = 3 color = 000000>" + "activityFeedBack_input".ToUILocale() + "</>", this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.GrayButton.node.on("click", this.OnGrayButtonClick, this), this.ChestNode.on(cc.Node.EventType.TOUCH_END, this.OnChestTouch, this), this._view = this.GoodScrollView.content.parent;
                    for (var t = [this.BottomLeftItemContainer, this.BottomRightItem0Container], n = [], o = 0; o < t.length; o++) {
                        var r = cc.instantiate(this._itemPrefab);
                        r.setParent(t[o]), n[o] = r.getComponent(y.ItemComponent)
                    }
                    this._leftItem = n[0], this._right0Item = n[1]
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n, o = t[0];
                    this._data = p.DataCenter.Instance.ActivityConfigs[o], this._deadLine = m.default.Instance.ComputeDeadTime(this._data.Common), this.Title.string = this._data.Common.Title, this.SetBanner(), this._goods = [], this._items = [];
                    for (var r = 0; r < this._data.Rewards.length; r++) {
                        var i = this._data.Rewards[r],
                            a = cc.instantiate(this._goodPrefab);
                        a.setParent(this.GoodScrollView.content), a.name = r.toString(), a.on(cc.Node.EventType.TOUCH_END, this.OnGoodChosen, this);
                        var s = a.getComponent(h.default);
                        s.DaythLabel.string = "firstCharge_dayth".ToUILocale().Fmt(r + 1), s.HighLightBG.active = 3 == r;
                        var l = cc.instantiate(this._itemPrefab);
                        l.setParent(s.ItemContainer), this._items[r] = l.getComponent(y.ItemComponent), n = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, i.ItemId), this._items[r].Init({
                            ItemId: i.ItemId,
                            Count: 1
                        }, n.Star ? y.ItemComponentType.ItemWithStar : y.ItemComponentType.ItemCommon), this._goods.push(s)
                    }
                    this.GoodScrollView.content.getComponent(cc.Layout).updateLayout();
                    var u = this.GoodScrollView.content.height,
                        d = this.GoodScrollView.node.height - this._view.height,
                        g = f.UIUtlity.DESIGN_SCREEN_HEIGHT - 932 - d;
                    this._view.height = Math.min(u, g), this.GoodScrollView.node.height = this._view.height + d, this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1)
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (e.prototype.DisPlay.call(this, t), this._model = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data._id), this._dayth = m.default.Instance.ComputeContiuousTime(this._data.Common), !t) {
                        var o = _.default.GetItem(_.GameRecordDefine.RebateSummonTime),
                            r = void 0;
                        (r = null == o || m.default.IsNumberString(o) ? {} : JSON.parse(o))[this._data._id] = this._dayth, _.default.SetItem(_.GameRecordDefine.RebateSummonTime, JSON.stringify(r)), this._rewardIndex = -1;
                        for (var i = 0; i < this._data.Rewards.length; i++) {
                            this._goods[i].HighLightBG.active = !1;
                            var a = this.JudgeBit(this._model.IntValue, i);
                            !a && this._rewardIndex < 0 && (this._rewardIndex = i), this._items[i].SetReceivedTagState(a)
                        }
                        this._chosenIndex = this._dayth - 1
                    }
                    this._chosenIndex >= this._goods.length && (this._chosenIndex = this._goods.length - 1), this._goods[this._chosenIndex].HighLightBG.active = !0, this._goods.forEach(function(e, t) {
                        e.RedDotNode.active = !1, 0 == (n._model.IntValue >> t & 1) && p.DataCenter.Instance.IsItemEnough(n._data.Rewards[t].ItemId, n._data.Rewards[t].Input) && t < n._dayth && (e.RedDotNode.active = !0)
                    }), this.BottomShow(), C.default.Instance._zeroRefreshPanel = this
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnOrangeButtonClick = function() {
                    if (this._data.CustomPart.IsContinuous && this._chosenIndex != this._rewardIndex) f.UIUtlity.ShowFloatingHint("needGetPreviousFirst".ToUILocale());
                    else {
                        var e = this._data.Rewards[this._chosenIndex];
                        if (!p.DataCenter.Instance.IsItemEnough(e.ItemId, e.Input)) return f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.ItemId.ToItemName())), void l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemGetWayPanel.Path, e.ItemId);
                        f.UIUtlity.ShowHintPanel("", "activityFeedBack_query".ToUILocale().Fmt(" " + e.ItemId.ToItemName(), e.Input + " "), "cancel".ToUILocale(), null, "ok".ToUILocale(), this.ReceiveReward.bind(this))
                    }
                }, t.prototype.ReceiveReward = function() {
                    var e = this,
                        t = this._data.Rewards[this._chosenIndex],
                        n = new u.Req_Activity_RebateSummon;
                    n.ActivityId = this._data._id, n.RewardId = t.Id, p.RpcComponent.Instance.Call(n, function(t) {
                        e._items[e._chosenIndex].SetReceivedTagState(!0), f.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.Ani.setAnimation(0, e._aniName, !1), e._rewardIndex++
                    })
                }, t.prototype.OnGrayButtonClick = function() {
                    f.UIUtlity.ShowFloatingHint("not_receive_time".ToUILocale())
                }, t.prototype.OnChestTouch = function() {
                    var e = this._data.Rewards[this._chosenIndex].Rewards;
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonRatePanel.Path, I.ShowRateType.Rebate, e)
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = {
                        name: "rebateSummon_RuleMainTitle".ToUILocale(),
                        titles: ["rebateSummon_RuleSubtitle".ToUILocale()],
                        contents: ["rebateSummon_RuleText".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnItemClick = function(e, t) {
                    "Node0x00" == t.parent.name && f.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t), t.parent.parent.getComponent(h.default) && (this._goods[this._chosenIndex].HighLightBG.active = !1, this._chosenIndex = Number.parseInt(t.parent.parent.name), this.DisPlay(!0))
                }, t.prototype.OnGoodChosen = function(e) {
                    this._goods[this._chosenIndex].HighLightBG.active = !1, this._chosenIndex = Number.parseInt(e.currentTarget.name), this.DisPlay(!0)
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - p.RpcComponent.Instance.ServerTime;
                    e < 0 && l.UIManager.Instance.BackUIPanel(), this.LeftTimeRichText.string = "openServer_frameCountDown".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, m.default.LoadActivityTexture(this._data.Common.ShowImage)];
                                case 1:
                                    return e._bannerTexture = t.sent(), this.isValid ? (this.Banner.spriteFrame = this._bannerTexture, [2]) : (l.AssetsManager.Instance.UnloadAsset(this._bannerTexture), [2])
                            }
                        })
                    })
                }, t.prototype.BottomShow = function() {
                    var e = this;
                    this.BottomTitle.string = "feedbackdraw_daythReward".ToUILocale().Fmt(this._chosenIndex + 1);
                    var t = this._data.Rewards[this._chosenIndex];
                    this.BottomRightNode.active = null != t.Rewards && t.Rewards.length > 0, this.BottomRestNode.x = this.BottomRightNode.active ? 0 : 75, this.ButtonReceivedNode.active = this.JudgeBit(this._model.IntValue, this._chosenIndex), this.ChestReceivedNode.active = this.ButtonReceivedNode.active, this.OrangeButton.node.active = !this.ButtonReceivedNode.active && this._chosenIndex < this._dayth, this.GrayButton.node.active = !this.ButtonReceivedNode.active && !this.OrangeButton.node.active;
                    var n = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t.ItemId).Star ? y.ItemComponentType.ItemWithStar : y.ItemComponentType.ItemCommon;
                    [this._leftItem, this._right0Item].forEach(function(o) {
                        o.Init({
                            ItemId: t.ItemId,
                            Count: 1
                        }, n), o.SetReceivedTagState(e.ButtonReceivedNode.active)
                    });
                    var o, r = p.DataCenter.Instance.GetItemCount(t.ItemId);
                    o = r < t.Input ? "<color = ff4b4b>" + r + "</c>" : r.toString(), this.LeftItemCountRichText.string = "<outline width = 3 color = 000000>" + o + "/" + t.Input + "</>";
                    var i = 0,
                        a = Number.POSITIVE_INFINITY;
                    t.Output.forEach(function(e) {
                        i < e.Items[0] && (i = e.Items[0]), a > e.Items[0] && (a = e.Items[0])
                    }), this.RightItem0CountRichText.string = "<outline width = 3 color = 000000>" + a + "~" + i + "</>", this.ReddotNode.active = !1;
                    var s = this._data.Rewards;
                    0 == (this._model.IntValue >> this._chosenIndex & 1) && p.DataCenter.Instance.IsItemEnough(s[this._chosenIndex].ItemId, s[this._chosenIndex].Input) && (this.ReddotNode.active = !0)
                }, t.prototype.JudgeBit = function(e, t) {
                    return 1 == (e >> t & 1)
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._bannerTexture), this.unscheduleAllCallbacks()
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Label)], t.prototype, "BottomTitle", void 0), i([S(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([S(cc.RichText)], t.prototype, "LeftItemCountRichText", void 0), i([S(cc.RichText)], t.prototype, "RightItem0CountRichText", void 0), i([S(cc.RichText)], t.prototype, "RightItem1CountRichText", void 0), i([S(cc.Button)], t.prototype, "OrangeButton", void 0), i([S(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([S(cc.Button)], t.prototype, "GrayButton", void 0), i([S(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([S(cc.Button)], t.prototype, "DetailButton", void 0), i([S(cc.ScrollView)], t.prototype, "GoodScrollView", void 0), i([S(cc.Sprite)], t.prototype, "Banner", void 0), i([S(cc.Node)], t.prototype, "BottomRestNode", void 0), i([S(cc.Node)], t.prototype, "BottomRightNode", void 0), i([S(cc.Node)], t.prototype, "BottomLeftItemContainer", void 0), i([S(cc.Node)], t.prototype, "BottomRightItem0Container", void 0), i([S(sp.Skeleton)], t.prototype, "Ani", void 0), i([S(cc.Node)], t.prototype, "ChestNode", void 0), i([S(cc.Node)], t.prototype, "ChestReceivedNode", void 0), i([S(cc.Node)], t.prototype, "ButtonReceivedNode", void 0), i([S(cc.Node)], t.prototype, "ReddotNode", void 0), i([S(cc.RichText)], t.prototype, "InputRichText", void 0), i([S(cc.RichText)], t.prototype, "AcquireRichText", void 0), i([b], t)
            }(l.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonRatePanel": "CommonRatePanel",
        "./FeedBackDrawGood": "FeedBackDrawGood"
    }],
    ActivityFirstPayPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "617a8XQp41G7JpRyxzCiggV", "ActivityFirstPayPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("./CommonTaskTipComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./FirstPayToggle"),
            m = e("../../Channel/ChannelManager"),
            I = e("../Components/ItemComponent"),
            _ = e("../../../Util/TimeUtil"),
            C = e("../../../Consts/Etc"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../RedDot/RedDotManager"),
            S = e("./ProgressRewardComponent"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.DaysLabel = [], t.DaysItemContainers = [], t.ToggleNode = null, t.OriginalPriceRoot = null, t.OriginalPriceLabel = null, t.OriginalPriceValue = null, t.AttainValue = null, t.AttainLabel = null, t.PayButtonLabel = null, t.PayButton = null, t.GetButton = null, t.GetButtonLabel = null, t.GrayButton = null, t.GrayButtonLabel = null, t.ShowOutTag = null, t.AlreadyGotNodes = [], t.Sprite = null, t.DiscountLabel = null, t.DiscountValue = null, t.CommonTaskTipComponent = null, t.ProgressRewardNode = null, t.ToggleScrollViewBg = null, t.ToggleScrollView = null, t._selectIndex = 0, t._toggles = [], t._itemComponents = [], t._itemCount = 0, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("FirstChargePanel/Components/FirstPayToggle", cc.Prefab), this.LoadDynamicAsset("FirstChargePanel/Components/ProgressRewardComponent", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._togglePrefab = e[1], t._progressRewardPrefab = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.GetButtonLabel.string = "receive".ToUILocale(), this.GrayButtonLabel.string = "receive".ToUILocale(), this.PayButton.node.on("click", this.OnButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this), this.CommonTaskTipComponent.node.active = !1
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t);
                    var o = t[0];
                    this._configData = d.DataCenter.Instance.ActivityConfigs[o], this._configData && (this._sortPacks = [], this._configData._Packs.forEach(function(e) {
                        n._sortPacks.push(e)
                    }), this._sortPacks.sort(function(e, t) {
                        return e.VipPoint - t.VipPoint
                    }))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._configData ? (this._model = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this.SetFirstPayData(), this.SetUIContent()) : l.UIManager.Instance.QuitPanelStack(this)
                }, t.prototype.SetUIContent = function() {
                    this._firstPayDatas.length ? (this.SetToggles(), this.SetBg(), this.SetRewards(), this.SetButtons(), this.SetProgressRewardNode()) : l.UIManager.Instance.QuitPanelStack(this)
                }, t.prototype.SetFirstPayData = function() {
                    this._firstPayDatas = [];
                    for (var e = function(e) {
                            var n = t._sortPacks[e];
                            if (n.UnlockCondition && 0 == t._model.Packs[n.UnlockCondition].Items[0]) return "continue";
                            var o = t.GetReceiveData(n.Id);
                            if (o && o.Items[1] && o.Items[2] >= 3) return "continue";
                            var r = t._configData.__Rewards.find(function(e) {
                                    return e.Id == n.Id
                                }),
                                i = {};
                            i.Pack = n, i.RewardData = r, t._firstPayDatas.push(i)
                        }, t = this, n = 0; n < this._sortPacks.length; n++) e(n);
                    this._firstPayDatas[this._selectIndex] || (this._selectIndex = this._firstPayDatas.length - 1)
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, y.default.LoadActivityTexture(this._firstPayDatas[this._selectIndex].RewardData.Texture)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.Sprite.spriteFrame = e, this._assets.push(e), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this._toggles.forEach(function(e) {
                        e.node.active = !1
                    });
                    var t = !1;
                    if (this._firstPayDatas.forEach(function(n, o) {
                            if (!e._toggles[o]) {
                                var r = cc.instantiate(e._togglePrefab);
                                r.parent = e.ToggleNode, e._toggles[o] = r.getComponent(g.default), r.name = o.toString(), r.on("toggle", e.ClickToggle, e), t = !0
                            }
                            e._toggles[o].node.active = !0, e._toggles[o].node.getComponent(cc.Toggle).isChecked = o == e._selectIndex, e._toggles[o].SetLabels(m.default.Instance.CurrencySymbol + m.default.Instance.ExchangeMoney(n.Pack.Money)), e._toggles[o].RedDot.active = b.RedDotManager.DataHandler.RefreshActivityFirstPayToggle({
                                Value1: e._configData._id,
                                extra: n.Pack.Id
                            })
                        }), this.ToggleScrollView.enabled = this.ToggleNode.childrenCount > 4, this.ToggleNode.childrenCount > 4 && this.ToggleScrollView.scrollToRight(), this.ToggleScrollViewBg.active = this.ToggleNode.childrenCount > 1, this.ToggleScrollView.node.active = this.ToggleNode.childrenCount > 1, t)
                        for (var n = this._firstPayDatas.length - 1; n >= 0; n--)
                            if (!this.GetReceiveData(this._firstPayDatas[n].Pack.Id)) {
                                this._selectIndex = n, this._toggles[this._selectIndex].node.getComponent(cc.Toggle).isChecked = !0;
                                break
                            }
                }, t.prototype.SetRewards = function() {
                    for (var e = 0; e < 3; e++) this.DaysLabel[e].string = "firstCharge_dayth".ToUILocale().Fmt(e + 1);
                    this._itemComponents.forEach(function(e) {
                        e.node.active = !1
                    }), this._itemCount = 0, this.SetRewardNode(this._firstPayDatas[this._selectIndex].RewardData.Rewards1, 0), this.SetRewardNode(this._firstPayDatas[this._selectIndex].RewardData.Rewards2, 1), this.SetRewardNode(this._firstPayDatas[this._selectIndex].RewardData.Rewards3, 2)
                }, t.prototype.SetRewardNode = function(e, t) {
                    var n = this;
                    e.forEach(function(e) {
                        if (!n._itemComponents[n._itemCount]) {
                            var o = cc.instantiate(n._itemPrefab);
                            o.scale = .9, o.parent = n.DaysItemContainers[t], n._itemComponents[n._itemCount] = o.getComponent(I.ItemComponent)
                        }
                        var r = d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, e.Items[0]);
                        n._itemComponents[n._itemCount].node.active = !0, n._itemComponents[n._itemCount].node.name = e.Items[0].toString(), n._itemComponents[n._itemCount].Init({
                            ItemId: e.Items[0],
                            Count: e.Items[1]
                        }, r && r.Star ? I.ItemComponentType.ItemWithStar : I.ItemComponentType.ItemCommon), n._itemCount++
                    })
                }, t.prototype.SetButtons = function() {
                    var e, t, n, o = this._firstPayDatas[this._selectIndex],
                        r = this.GetReceiveData(o.Pack.Id);
                    r && r.Items[1] > 0 ? (e = r.Items[1] > 0, t = Math.max(0, r.Items[2]), n = e ? this.TimeToNowInDay(r.Items[1]) : 0) : (e = !1, t = 0, n = 0);
                    var i = 3 == t;
                    this.ShowOutTag.active = i, this.OriginalPriceRoot.active = !1, this.PayButton.node.active = !e, this.PayButtonLabel.string = m.default.Instance.CurrencySymbol + m.default.Instance.ExchangeMoney(o.Pack.Money), this.AttainValue.string = "x" + o.Pack.VipPoint, this.GetButton.node.active = e && n > t && 3 != t, this.GrayButton.node.active = e && n <= t && 3 != t, y.default.Instance.SetDisCount(o.Pack.Discount, this.DiscountValue, this.DiscountLabel), this._itemComponents.forEach(function(e) {
                        e.node.active && (e.SetReceivedTagState(!1), e.PauseGetRewardEffect())
                    });
                    for (var a = 0; a < t; a++) this.DaysItemContainers[a].children.forEach(function(e) {
                        e.getComponent(I.ItemComponent).SetReceivedTagState(!0)
                    });
                    for (a = t; a < Math.min(n, 3); a++) this.DaysItemContainers[a].children.forEach(function(e) {
                        e.getComponent(I.ItemComponent).PlayGetRewardEffect()
                    })
                }, t.prototype.GetReceiveData = function(e) {
                    return this._model = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this._model.Int2DArray.find(function(t) {
                        return t.Items[0] == e
                    })
                }, t.prototype.ShouldHide = function() {
                    for (var e = 0; e < this._firstPayDatas.length; e++) {
                        var t = this.GetReceiveData(this._firstPayDatas[e].Pack.Id);
                        if (!t || !t.Items[1] || t.Items[2] < 3) return !1
                    }
                    return !(this._configData.CustomPart && this._configData.CustomPart.Rewards && this._configData.CustomPart.Rewards.length > 0 && !(this._model && this._model.IntValue > 0))
                }, t.prototype.TimeToNowInDay = function(e) {
                    var t = d.RpcComponent.Instance.ServerTime,
                        n = _.TimeUtil.Get0ClockTs(e);
                    return Math.ceil((t - n) / C.Etc.DayDuration)
                }, t.prototype.OnItemClick = function(e, t) {
                    this.DaysItemContainers.forEach(function(n) {
                        n.children.indexOf(t) > -1 && v.UIUtlity.ShowItemTip(e, t)
                    })
                }, t.prototype.OnButtonClick = function() {
                    y.default.Instance.SendBuyGiftPackRequest(this._firstPayDatas[this._selectIndex].Pack, this._configData._id)
                }, t.prototype.OnGetButtonClick = function() {
                    var e = this,
                        t = new p.Req_Activity_CommonRewards;
                    t.Params = [this._firstPayDatas[this._selectIndex].Pack.Id], t.ActivityId = this._configData._id, t.Type = 1, d.RpcComponent.Instance.Call(t, function(t) {
                        v.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.CheckClosePanel()
                    })
                }, t.prototype.CheckClosePanel = function() {
                    this.ShouldHide() && (l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, this._configData._id, -1), l.UIManager.Instance.QuitPanelStack(this), v.UIUtlity.ShowFloatingHint("eightDays_moduleClose".ToUILocale()))
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    t != this._selectIndex && (this._selectIndex = t, this.SetBg(), this.SetRewards(), this.SetButtons())
                }, t.prototype.OnBuyGiftPackSuccess = function() {
                    if (this._progressRewardComponent) {
                        this._model = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id);
                        var e = this.GetBuyCount(),
                            t = this._model && this._model.IntValue > 0;
                        this._progressRewardComponent.UpdateInfo(e, t), this.SetFirstPayData(), this.SetToggles()
                    }
                }, t.prototype.SetProgressRewardNode = function() {
                    if (this._configData.CustomPart && this._configData.CustomPart.Rewards && this._configData.CustomPart.Rewards.length) {
                        if (!this._progressRewardComponent) {
                            var e = cc.instantiate(this._progressRewardPrefab);
                            e.parent = this.ProgressRewardNode, this._progressRewardComponent = e.getComponent(S.default)
                        }
                        var t = {};
                        t.ItemId = this._configData.CustomPart.Rewards[0].Items[0], t.Desc = "progressReward_buy_all_get".ToUILocale(), t.CurValue = this.GetBuyCount(), t.TotalValue = this._firstPayDatas.length, t.IsReceive = this._model && this._model.IntValue > 0, t.ReceiveCallback = this.RequestGetAllBuyReward.bind(this), this._progressRewardComponent.Init(t)
                    }
                }, t.prototype.RequestGetAllBuyReward = function() {
                    var e = this,
                        t = new p.Req_Activity_CommonRewards;
                    t.Type = 2, t.ActivityId = this._configData._id, d.RpcComponent.Instance.Call(t, function(t) {
                        v.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.CheckClosePanel()
                    })
                }, t.prototype.GetBuyCount = function() {
                    var e = this,
                        t = 0;
                    return this._firstPayDatas.forEach(function(n) {
                        var o = e.GetReceiveData(n.Pack.Id);
                        o && o.Items[1] > 0 && t++
                    }), t
                }, i([A({
                    type: [cc.Label]
                })], t.prototype, "DaysLabel", void 0), i([A({
                    type: [cc.Node]
                })], t.prototype, "DaysItemContainers", void 0), i([A(cc.Node)], t.prototype, "ToggleNode", void 0), i([A(cc.Node)], t.prototype, "OriginalPriceRoot", void 0), i([A(cc.Label)], t.prototype, "OriginalPriceLabel", void 0), i([A(cc.Label)], t.prototype, "OriginalPriceValue", void 0), i([A(cc.Label)], t.prototype, "AttainValue", void 0), i([A(cc.Label)], t.prototype, "AttainLabel", void 0), i([A(cc.Label)], t.prototype, "PayButtonLabel", void 0), i([A(cc.Button)], t.prototype, "PayButton", void 0), i([A(cc.Button)], t.prototype, "GetButton", void 0), i([A(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([A(cc.Button)], t.prototype, "GrayButton", void 0), i([A(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([A(cc.Node)], t.prototype, "ShowOutTag", void 0), i([A({
                    type: [cc.Node]
                })], t.prototype, "AlreadyGotNodes", void 0), i([A(cc.Sprite)], t.prototype, "Sprite", void 0), i([A(cc.Label)], t.prototype, "DiscountLabel", void 0), i([A(cc.Label)], t.prototype, "DiscountValue", void 0), i([A(f.default)], t.prototype, "CommonTaskTipComponent", void 0), i([A(cc.Node)], t.prototype, "ProgressRewardNode", void 0), i([A(cc.Node)], t.prototype, "ToggleScrollViewBg", void 0), i([A(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent",
        "./FirstPayToggle": "FirstPayToggle",
        "./ProgressRewardComponent": "ProgressRewardComponent"
    }],
    ActivityGiftDrawPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2010b8TaFZGBamMkrO4UtHb", "ActivityGiftDrawPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("./AGDHighLightItem"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/ItemComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("./AGDListItem"),
            C = e("../../Channel/ChannelManager"),
            v = e("../../Auxiliary/GameRecord"),
            b = e("../../RedDot/RedDotManager"),
            S = e("../../../EZFramework/EZFramework"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.ReturnButton = null, t.DrawButton = null, t.DrawButtonLabel = null, t.LeftDrawTimeLabel = null, t.GrayButton = null, t.GrayButtonLabel = null, t.GrayDrawTimeLabel = null, t.LeftTimeRichText = null, t.DrawTip = null, t.ListItemsContainer = null, t.RewardsContainer = null, t._bottomItems = [], t._listItems = [], t.highLightArray = [0, 1, 2, 3, 7, 6, 5, 4], t._isDrawing = !1, t._curLightIndex = 0, t._lightDuration = 1, t._lightCounter = 0, t._drawChances = 0, t._remainderRewardCount = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ActivityGiftDrawPanel/Components/AGDListItem", cc.Prefab), this.LoadDynamicAsset("ActivityGiftDrawPanel/Components/AGDHighLightItem", cc.Prefab), this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        t._listItemPrefab = e[0], t._hlItemPrefab = e[1], t._itemPrefab = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.DrawButton.node.on("click", this.OnDrawButtonClick, this), this.DrawButtonLabel.string = "activity_giftDraw_draw".ToUILocale(), this.GrayButtonLabel.string = "activity_giftDraw_draw".ToUILocale(), this.Title.string = "aGiftDraw_Title".ToUILocale(), this.DrawTip.string = "aGiftDraw_drawTip".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    this._data = f.default.ParseActivityParams(e, p.ActivityType.GiftPackSummon), this._deadTime = f.default.Instance.ComputeDeadTime(this._data.Common);
                    for (var t = 0; t < this._data.__RandomLib.length; t++) {
                        (i = cc.instantiate(this._hlItemPrefab)).setParent(this.RewardsContainer), this._bottomItems[t] = i.getComponent(y.default), this._bottomItems[t].Highlight.active = !1;
                        var n = cc.instantiate(this._itemPrefab);
                        this._bottomItems[t].item = n.getComponent(m.ItemComponent);
                        var o = this._data.__RandomLib[t].Rewards[0].Items,
                            r = h.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, o[0]);
                        this._bottomItems[t].item.Init({
                            ItemId: o[0],
                            Count: o[1]
                        }, r.Star ? m.ItemComponentType.ItemWithStar : m.ItemComponentType.ItemCommon)
                    }
                    for (t = 0; t < this._data._Packs.length; t++) {
                        var i;
                        null == this._listItems[t] && ((i = cc.instantiate(this._listItemPrefab)).setParent(this.ListItemsContainer), this._listItems[t] = i.getComponent(_.default)), this._listItems[t].node.active = !0;
                        var a = this._data._Packs[t],
                            s = this.GetBuyCount(a.Id);
                        this._listItems[t].SetBuyInfo(a.Money, a.VipPoint).SetDiscount(a.Discount).SetStock(a.LimitCount - s).SetItems(a.Items, this._itemPrefab).SetIndex(t, a)
                    }
                    for (t = this._data._Packs.length; t < this._listItems.length; t++) this._listItems[t].node.active = !1
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        var n = v.default.GetItem(v.GameRecordDefine.GiftDrawRedDot),
                            o = [0];
                        null != n && (o = JSON.parse(n)), o.includes(this._data._id) || (o.push(this._data._id), v.default.SetItem(v.GameRecordDefine.GiftDrawRedDot, JSON.stringify(o)), b.RedDotManager.Instance.RefreshInstanceRedDotNode(b.RedDotManager.Instance.InstanceRedDot.GiftDrawNode, {
                            Value1: this._data._id
                        }))
                    }
                    this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this._model = h.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data._id);
                    var r = null;
                    this._model && this._model.Summons && this._model.Summons[this._data.__CommonSummon[0].SummonType] && (r = this._model.Summons[this._data.__CommonSummon[0].SummonType].LibCount), this._remainderRewardCount = 0;
                    for (var i = 0; i < this._bottomItems.length; i++) {
                        var a = null != r && null != r[this._data.__RandomLib[i].Id] && r[this._data.__RandomLib[i].Id] >= this._data.__RandomLib[i].Count;
                        this._bottomItems[i].item.SetReceivedTagState(a), this._remainderRewardCount += a ? 0 : 1
                    }
                    for (this._remainderRewardCount < 1 && (this.DrawTip.node.color = new cc.Color(254, 217, 74), this.DrawTip.string = "activity_giftDraw_allrewardGet".ToUILocale()), i = 0; i < this._listItems.length; i++) {
                        var s = this._listItems[i].pack,
                            l = this.GetBuyCount(s.Id);
                        this._listItems[i].SetStock(s.LimitCount - l)
                    }
                    this._drawChances = this.GetDrawChance(), this.DrawButton.node.active = this._drawChances > 0, this.GrayButton.node.active = !this.DrawButton.node.active, this.LeftDrawTimeLabel.string = "activity_giftDraw_leftdrawtime".ToUILocale().Fmt(this._drawChances), this.GrayDrawTimeLabel.string = "activity_giftDraw_leftdrawtime".ToUILocale().Fmt(0)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "aGiftDraw_Title".ToUILocale(),
                        titles: ["aGiftDraw_RuleSubtitle".ToUILocale()],
                        contents: ["aGiftDraw_RuleText".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnDrawButtonClick = function() {
                    var e = this;
                    if (!f.default.CheckActivityIsEnd(this._data.Common, !0)) {
                        this.DrawButton.interactable = !1;
                        var t = new u.Req_Activity_CommonSummon;
                        t.ItemId = 0, t.Type = this._data.__CommonSummon[0].Id, t.ActivityId = this._data._id, h.RpcComponent.Instance.Call(t, function(t) {
                            if (e._remainderRewardCount > 1) e._isDrawing = !0, e._lightDuration = .1, e._chosenIndex = 6, e._rewards = t.Items, e._model = h.DataCenter.Instance.GetDataById(u.UserActivity_Model, e._data._id);
                            else {
                                var n = [];
                                t.Items.forEach(function(e) {
                                    n.push({
                                        ItemId: e.Items[0],
                                        Count: e.Items[1]
                                    })
                                }), d.UIUtlity.ShwDisplayRewardPanel(n), e.DrawButton.node.active = !1
                            }
                        })
                    }
                }, t.prototype.CountDown = function() {
                    var e = this._deadTime - h.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTimeRichText.string = "openServer_frameCountDown".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemContainer_agd" == t.parent.name && d.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.OnButtonClick = function(e, t) {
                    C.default.Instance.Pay(t.Id, this._data._id)
                }, t.prototype.update = function(e) {
                    if (this._isDrawing)
                        if (this._lightCounter > 0) this._lightCounter -= e;
                        else {
                            if (this._lightDuration > .3 && this.IsDrawItem()) {
                                this._bottomItems[this.highLightArray[this._curLightIndex]].Highlight.active = !1, this._isDrawing = !1, this.DrawButton.interactable = !0, this._lightCounter = 0;
                                var t = [];
                                return this._rewards.forEach(function(e) {
                                    t.push({
                                        ItemId: e.Items[0],
                                        Count: e.Items[1]
                                    })
                                }), void d.UIUtlity.ShwDisplayRewardPanel(t)
                            }
                            this._lightCounter = this._lightDuration, this._lightDuration < .3 && (this._lightDuration *= 2), this._bottomItems[this.highLightArray[this._curLightIndex]].Highlight.active = !1, this._curLightIndex = (this._curLightIndex + 1) % this.highLightArray.length;
                            for (var n = this.highLightArray[this._curLightIndex]; this._bottomItems[n].item.ReceivedTag.node.active;) this._curLightIndex = (this._curLightIndex + 1) % this.highLightArray.length, n = this.highLightArray[this._curLightIndex];
                            this._bottomItems[n].Highlight.active = !0
                        }
                }, t.prototype.GetBuyCount = function(e) {
                    if (null == this._model || null == this._model.Packs) return 0;
                    var t = this._model.Packs[e];
                    return t && t.Items[0] ? t.Items[0] : 0
                }, t.prototype.IsDrawItem = function() {
                    var e = this.highLightArray[this._curLightIndex],
                        t = this._model.Summons[this._data.__CommonSummon[0].SummonType].LibCount[this._data.__RandomLib[e].Id];
                    return !this._bottomItems[e].item.ReceivedTag.node.active && null != t && t > 0
                }, t.prototype.GetDrawChance = function() {
                    return this._model && this._model.Summons && this._model.Summons[this._data.__SummonType[0].Id] ? this._model.Summons[this._data.__SummonType[0].Id].FreeCount : 0
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.Button)], t.prototype, "ReturnButton", void 0), i([A(cc.Button)], t.prototype, "DrawButton", void 0), i([A(cc.Label)], t.prototype, "DrawButtonLabel", void 0), i([A(cc.Label)], t.prototype, "LeftDrawTimeLabel", void 0), i([A(cc.Button)], t.prototype, "GrayButton", void 0), i([A(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([A(cc.Label)], t.prototype, "GrayDrawTimeLabel", void 0), i([A(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([A(cc.RichText)], t.prototype, "DrawTip", void 0), i([A(cc.Node)], t.prototype, "ListItemsContainer", void 0), i([A(cc.Node)], t.prototype, "RewardsContainer", void 0), i([P], t)
            }(S.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./AGDHighLightItem": "AGDHighLightItem",
        "./AGDListItem": "AGDListItem"
    }],
    ActivityHeroPKPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6acda9pHIxP4omOC/9M1nI0", "ActivityHeroPKPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../Components/LevelComponent"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/HeroPKToggleTagComponent"),
            _ = e("../Components/CustomToggleRollingLabel"),
            C = e("../Components/HeroPKTeamComponent"),
            v = e("../../../Consts/Etc"),
            b = e("../Components/ItemComponent"),
            S = e("../Battle/BattleData"),
            w = e("../Battle/BattleManager"),
            P = e("../../Auxiliary/EventKeys"),
            A = e("../../RedDot/RedDotManager"),
            T = e("../../Channel/ChannelManager"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property,
            O = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.Title = null, t.LeftTimeRichText = null, t.TotalPointTag = null, t.TotalPointValue = null, t.RuleButton = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.ToggleContainer = null, t.NoneTip = null, t.CurrentRankButton = null, t.CurrentRankButoonLabel = null, t.StartPartNode = null, t.StartTitle = null, t.StartTeamContainer = null, t.StartTip = null, t.JoinTip = null, t.JoinButton = null, t.JoinButtonLabel = null, t.PlayPartNode = null, t.HeroIcon = null, t.HeroTitle = null, t.HeroName = null, t.HeroLevelComponent = null, t.NoneHeroStarTag = null, t.HeroAddTag = null, t.HeroAddValue = null, t.NoneHeroAddTip = null, t.HeroAddDetailButton = null, t.MyPointTag = null, t.MyPointValue = null, t.MyRankTag = null, t.MyRankValue = null, t.RankRewardTag = null, t.NoneRankRewardTip = null, t.PlayTip = null, t.RankRewardContainer = null, t.FlagCurrencyBarItem = null, t.BattleButton = null, t.BattleButtonLabel = null, t.FlagIcon = null, t.FlagCount = null, t.FormationButton = null, t.FormationButtonLabel = null, t.SelectSameTeamToggle = null, t.SameTeamToggleTip = null, t.EndPartNode = null, t.ResultTitle = null, t.GetTip = null, t.GetTitleIcon = null, t.ResultTeamContainer = null, t.ResultRankTag = null, t.ResultRankValue = null, t.ResultRewardTag = null, t.ResultNoneRewardTip = null, t.ResultRewardTitle = null, t.ResultRewardContainer = null, t.ReceiveButton = null, t.ReceiveButtonLabel = null, t.ReceivedIconNode = null, t.ReturnButton = null, t.TotalRankButton = null, t.TotalRankButtonLabel = null, t.RewardPreviewButton = null, t.RewardPreviewButtonLabel = null, t.ReportsButton = null, t.ReportsButtonLabel = null, t.WarTokenButton = null, t.WarTokenButtonLabel = null, t.GiftButton = null, t.GiftButtonLabel = null, t.TaskButton = null, t.TaskButtonLabel = null, t._toggleComponentArray = [], t._toggleTagComponentArray = [], t._currentTab = 0, t._isSetStartPart = !1, t._isSetPlayPart = !1, t._isSetEndPart = !1, t._startHeroTeamComponentArray = [], t._endHeroTeamComponentArray = [], t._playPartRewardComponents = [], t._endPartRewardComponents = [], t._isTotalRank = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(P.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.GameEventIds.StartBattle.Fmt(h.MapType.HeroPK), this.OnStartBattleButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(P.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(h.GameEventIds.StartBattle.Fmt(h.MapType.HeroPK), this.OnStartBattleButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityHeroPKPanel/Components/HeroPKTeamComponent", cc.Prefab), n = this.LoadDynamicAsset("Buttons/ToggleTopRollingLabel", cc.Prefab), o = this.LoadDynamicAsset("ActivityHeroPKPanel/Components/HeroPKToggleTagComponent", cc.Prefab), r = this.LoadDynamicAsset("ActivityHeroPKPanel/PNG/ActivityHeroPKAtlas", cc.SpriteAtlas), i = this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab), a = this.LoadDynamicAsset("ActivityHeroTestTowerPanel/PNG/TestEntryBg", cc.SpriteFrame), [4, Promise.all([t, n, o, r, i, a]).then(function(e) {
                                        l._heroPKTeamPrefab = e[0], l._togglePrefab = e[1], l._toggleTagPrefab = e[2], l._atlas = e[3], l._itemPrefab = e[4], l._bgSprite = e[5]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "Activity_HeroPK_Title".ToUILocale(), this.TotalPointTag.string = "Activity_HeroPK_Total_Point".ToUILocale(), this.CurrentRankButoonLabel.string = "Activity_HeroPK_Rount_Rank".ToUILocale(), this.TotalRankButtonLabel.string = "holyArea_rank".ToUILocale(), this.RewardPreviewButtonLabel.string = "rewards_preview".ToUILocale(), this.ReportsButtonLabel.string = "allianceWar_report".ToUILocale(), this.WarTokenButtonLabel.string = "Activity_HeroPK_WarToken".ToUILocale(), this.GiftButtonLabel.string = "Activity_HeroPK_Gift".ToUILocale(), this.TaskButtonLabel.string = "btn_task".ToUILocale(), this.NoneTip.string = "Activity_HeroPK_Result_Time_Tip".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.CurrentRankButton.node.on("click", this.OnCurrentRankButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.TotalRankButton.node.on("click", this.OnTotalRankButtonClick, this), this.RewardPreviewButton.node.on("click", this.OnRewardPreviewButtonClick, this), this.ReportsButton.node.on("click", this.OnReportsButtonClick, this), this.WarTokenButton.node.on("click", this.OnWarTokenButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.Bg.spriteFrame = this._bgSprite
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    if (this._activityConfig = d.DataCenter.Instance.ActivityConfigs[n], this.SetConfigMap(), this.SetCurrentToggleTab(), this._activityConfig.Common.JumpId) {
                        var o = d.ConfigDataComponent.Instance.GetConfigById(u.ItemGetWay_Config, this._activityConfig.Common.JumpId);
                        if (o && o.PanelInfo[1]) {
                            var r = m.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(h.ActivityType.WarToken, o.PanelInfo[1]);
                            r > 0 && (this._warTokenActivityId = r)
                        }
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._playerModel = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id), t || (this.SetToggleContainer(), this.SetLeftTime(), this.schedule(this.SetLeftTime, 1)), this.SetTotalPoint(), this.SetCurrentRoundPart(), this.SetRedDot()
                }, t.prototype.SetConfigMap = function() {
                    var e = this;
                    this._heroAddtionMap = {}, this._attrMap = {}, this._roundMap = {}, this._activityConfig.__Heros.forEach(function(t) {
                        e._heroAddtionMap[t.Id] = t
                    }), this._activityConfig.__Attrs.forEach(function(t) {
                        e._attrMap[t.Id] = t.Attrs
                    }), this._activityConfig.__Rounds.forEach(function(t) {
                        e._roundMap[t.Id] = t
                    })
                }, t.prototype.SetCurrentToggleTab = function() {
                    for (var e = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id), t = m.default.Instance.ComputeContiuousTime(this._activityConfig.Common), n = 0; n < this._activityConfig.__Rounds.length; n++) {
                        var o = this._activityConfig.__Rounds[n];
                        if (e.IntMap[o.Id] && !e.Int2DArray[o.Id - 1]) return void(this._currentTab = n);
                        if (t > o.StartDay && t <= o.BattleDay) return void(this._currentTab = n)
                    }
                }, t.prototype.SetToggleContainer = function() {
                    for (var e = m.default.Instance.ComputeContiuousTime(this._activityConfig.Common), t = 0; t < this._activityConfig.__Rounds.length; t++) {
                        var n = this._toggleComponentArray[t];
                        n || ((o = cc.instantiate(this._togglePrefab)).setParent(this.ToggleContainer), n = o.getComponent(_.default), this._toggleComponentArray[t] = n, n.isChecked = this._currentTab == t, o.name = t.toString(), o.on("toggle", this.OnSwitchTab, this), n.Init("Activity_HeroPK_Round_Tag".ToUILocale().Fmt(t + 1)));
                        var o, r = this._toggleTagComponentArray[t];
                        r || ((o = cc.instantiate(this._toggleTagPrefab)).setParent(n.node), o.setPosition(50, -30, 0), o.scaleY = -1, r = o.getComponent(I.default), this._toggleTagComponentArray[t] = r), r.Init(e, this._activityConfig.__Rounds[t], this._atlas)
                    }
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._currentTab != t && (this._currentTab = t, this._selectHeroIndex = null, this.SetCurrentRoundPart())
                }, t.prototype.SetTotalPoint = function() {
                    var e = 0;
                    this._playerModel.Int2DArray.forEach(function(t) {
                        e += t.Items[1]
                    }), this.TotalPointValue.string = e.toString()
                }, t.prototype.SetCurrentRoundPart = function() {
                    var e = this;
                    if (this.StartPartNode.active = !1, this.PlayPartNode.active = !1, this.EndPartNode.active = !1, this.NoneTip.node.active = !1, this.CurrentRankButton.node.active = !0, this._currentRound = this._activityConfig.__Rounds[this._currentTab], m.default.Instance.ComputeContiuousTime(this._activityConfig.Common) > this._currentRound.EndDay) {
                        var t = m.default.Instance.ComputeActivitStartTime(this._activityConfig.Common) + this._currentRound.EndDay * v.Etc.DayDuration + 2 * v.Etc.HourDuration;
                        if (d.RpcComponent.Instance.ServerTime < t) this.NoneTip.node.active = !0, this.CurrentRankButton.node.active = !1;
                        else {
                            var n = new p.Req_Activity_HeroPKGetRank;
                            n.ActivityId = this._activityConfig._id, n.Round = this._currentRound.Id, n.Type = 2, d.RpcComponent.Instance.Call(n, function(t) {
                                for (var n = {}, o = 0; o < t.Rows.length; o++) n[t.Rows[o].Id] = o + 1;
                                e.EndPartNode.active = !0, e.SetEndPart(n, t.Rows.length)
                            })
                        }
                    } else this._playerModel.IntMap[this._currentRound.Id] ? (this.PlayPartNode.active = !0, this.SetPlayPart()) : (this.StartPartNode.active = !0, this.CurrentRankButton.node.active = !1, this.SetStartPart())
                }, t.prototype.SetStartPart = function() {
                    this._isSetStartPart || (this._isSetStartPart = !0, this.StartTitle.string = "Activity_HeroPK_Start_Title".ToUILocale(), this.StartTip.string = "Activity_HeroPK_Start_Tip".ToUILocale(), this.JoinTip.string = "Activity_HeroPK_Join_Tip".ToUILocale(), this.JoinButtonLabel.string = "Activity_HeroPK_Join".ToUILocale(), this.JoinButton.node.on("click", this.OnJoinButtonClick, this));
                    var e = m.default.Instance.ComputeContiuousTime(this._activityConfig.Common);
                    c.UIUtlity.SetGray(this.JoinButton.node, e < this._currentRound.StartDay, !0);
                    for (var t = 0; t < this._currentRound.Heros.length; t++) {
                        var n = this._startHeroTeamComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._heroPKTeamPrefab);
                            o.setParent(this.StartTeamContainer), n = o.getComponent(C.default), this._startHeroTeamComponentArray[t] = n
                        }
                        n.node.active = !0;
                        var r = this._currentRound.Heros[t].Items,
                            i = this._heroAddtionMap[r[0]];
                        n.Init(C.HeroPKTeamState.Start, t, r[0], r[1], i, this._attrMap, this), n.SetSelectBgState(this._selectHeroIndex == t)
                    }
                    if (this._currentRound.Heros.length < this._startHeroTeamComponentArray.length)
                        for (t = this._currentRound.Heros.length; t < this._startHeroTeamComponentArray.length; t++) this._startHeroTeamComponentArray[t].node.active = !1
                }, t.prototype.SetPlayPart = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, u, h, f;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._isSetPlayPart ? [3, 2] : (this._isSetPlayPart = !0, this.NoneHeroStarTag.string = "Activity_HeroPK_None_Hero".ToUILocale(), this.HeroAddTag.string = "Activity_HeroPK_Hero_Add".ToUILocale(), this.NoneHeroAddTip.string = "ActivityHeroTestTower_Battle_None_Addtion".ToUILocale(), this.MyPointTag.string = "Activity_HeroPK_MyPoint".ToUILocale(), this.MyRankTag.string = "Activity_HeroPK_MyRank".ToUILocale(), this.RankRewardTag.string = "Activity_HeroPK_Rank_Reward".ToUILocale(), this.NoneRankRewardTip.string = "activityBoss_no_reward".ToUILocale(), this.PlayTip.string = "Activity_HeroPK_Play_Tip".ToUILocale(), this.BattleButtonLabel.string = "Activity_HeroPK_Battle".ToUILocale(), this.FormationButtonLabel.string = "formation_title".ToUILocale(), this.SameTeamToggleTip.string = "Activity_HeroPK_SameTeam_Select_Tip".ToUILocale(), this.FlagCount.string = "x1", this.HeroAddDetailButton.node.on("click", this.OnHeroDetailButtonClick, this), this.BattleButton.node.on("click", this.OnPlayBattleButtonClick, this), this.FormationButton.node.on("click", this.OnFormationButtonClick, this), this.SelectSameTeamToggle.node.on("toggle", this.OnSelectTeamToggleClick, this), e = m.default.Instance.GetItemPathById(this._activityConfig.CustomPart.ItemId), [4, this.LoadDynamicAsset(e, cc.SpriteFrame)]);
                                case 1:
                                    if (t = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this.FlagIcon.spriteFrame = t, s.label = 2;
                                case 2:
                                    return this.NoneHeroStarTag.node.active = !1, this.HeroLevelComponent.node.active = !1, this.HeroAddValue.node.active = !1, this.NoneHeroAddTip.node.active = !1, this.NoneRankRewardTip.node.active = !1, this.RankRewardContainer.active = !1, this.SelectSameTeamToggle.isChecked = !!this._playerModel.IntArray[6], n = m.default.Instance.ComputeContiuousTime(this._activityConfig.Common), c.UIUtlity.SetGray(this.BattleButton.node, n < this._currentRound.BattleDay, !0), o = this._playerModel.IntMap[this._currentRound.Id], this._heroIconId == o ? [3, 4] : [4, this.LoadDynamicAsset("BattleHeroPicture/" + o, cc.SpriteFrame)];
                                case 3:
                                    if (r = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(r), [2];
                                    this.HeroIcon.spriteFrame = r, this._heroIconId = o, s.label = 4;
                                case 4:
                                    return i = T.default.Instance.IsVNChannel(), this.HeroTitle.node.active = !i, i || (this.HeroTitle.string = o.ToHeroTitle()), this.HeroName.string = o.ToHeroName(), this.MyPointValue.string = this._playerModel.Int2DArray[this._currentTab].Items[1].toString(), a = this._playerModel.Int2DArray[this._currentTab].Items[2], this.MyRankValue.string = a ? a.toString() : "openServer_heroTest_noRatingYet".ToUILocale(), (u = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, o)) ? (this.HeroLevelComponent.node.active = !0, this.HeroAddValue.node.active = !0, this.HeroLevelComponent.Init(u.MaxStar), h = this._heroAddtionMap[o], f = this._attrMap[h.AttrIds[u.MaxStar - 5]][0].Items[1], this.HeroAddValue.string = "+" + f / 10 + "%") : (this.NoneHeroStarTag.node.active = !0, this.NoneHeroAddTip.node.active = !0), this.FlagCurrencyBarItem.Init(this._activityConfig.CustomPart.ItemId), this.SetRankRewardContainer(!0), [2]
                            }
                        })
                    })
                }, t.prototype.SetRankRewardContainer = function(e) {
                    for (var t, n = this._playerModel.Int2DArray[this._currentTab].Items[2], o = 0; o < this._activityConfig.RoundRankRewards.length; o++) {
                        var r = this._activityConfig.RoundRankRewards[o];
                        if (n >= r.Rank[0] && (n <= r.Rank[1] || 0 == r.Rank[1])) {
                            t = r.Rewards;
                            break
                        }
                    }
                    if (t) {
                        this.RankRewardContainer.active = !0, this.ResultRewardContainer.active = !0;
                        var i = e ? this.RankRewardContainer : this.ResultRewardContainer,
                            a = e ? this._playPartRewardComponents : this._endPartRewardComponents;
                        for (o = 0; o < t.length; o++) {
                            var s = a[o];
                            if (!s) {
                                var l = cc.instantiate(this._itemPrefab);
                                l.setParent(i), s = l.getComponent(b.ItemComponent), a[o] = s
                            }
                            s.node.active = !0, s.Init({
                                ItemId: t[o].Items[0],
                                Count: t[o].Items[1]
                            })
                        }
                        if (t.length < a.length)
                            for (o = t.length; o < a.length; o++) a[o].node.active = !1
                    } else this.NoneRankRewardTip.node.active = !0, this.ResultNoneRewardTip.node.active = !0
                }, t.prototype.SetEndPart = function(e, t) {
                    this._isSetEndPart || (this._isSetEndPart = !0, this.ResultTitle.string = "Activity_HeroPK_Result_Title".ToUILocale(), this.GetTip.string = "Activity_HeroPK_Result_GetTip".ToUILocale(), this.ResultRewardTitle.string = "Activity_HeroPK_Result_Reward_Title".ToUILocale(), this.ResultNoneRewardTip.string = "activityBoss_no_reward".ToUILocale(), this.ResultRankTag.string = "Activity_HeroPK_MyRank".ToUILocale(), this.ResultRewardTag.string = "Activity_HeroPK_Rank_Reward".ToUILocale(), this.ReceiveButtonLabel.string = "mail_receive".ToUILocale(), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this)), this.ResultNoneRewardTip.node.active = !1, this.ResultRewardContainer.active = !1;
                    var n, o = this._playerModel.IntMap[this._currentRound.Id],
                        r = this._playerModel.Int2DArray[this._currentTab].Items;
                    this.ReceiveButton.node.active = o && !r[3], this.ReceivedIconNode.active = o && !!r[3], this.ResultRankValue.string = r[2] ? r[2].toString() : "openServer_heroTest_noRatingYet".ToUILocale();
                    for (var i = 0; i < this._currentRound.Heros.length; i++) {
                        var a = this._endHeroTeamComponentArray[i];
                        if (!a) {
                            var s = cc.instantiate(this._heroPKTeamPrefab);
                            s.setParent(this.ResultTeamContainer), a = s.getComponent(C.default), this._endHeroTeamComponentArray[i] = a
                        }
                        a.node.active = !0;
                        var l = this._currentRound.Heros[i].Items[0];
                        a.Init(C.HeroPKTeamState.End, i, l);
                        var c = e[l] ? e[l] : t + 1;
                        a.SetResultNode(c, o, this._atlas), 1 == c && (n = this._currentRound.Heros[i].Items[1])
                    }
                    if (this._currentRound.Heros.length < this._endHeroTeamComponentArray.length)
                        for (i = this._currentRound.Heros.length; i < this._endHeroTeamComponentArray.length; i++) this._endHeroTeamComponentArray[i].node.active = !1;
                    this.SetRankRewardContainer(!1), this.SetTitleIcon(n), A.RedDotManager.Instance.BindInstance(this.ReceiveButton.node, A.RedDotManager.Instance.InstanceRedDot.HeroPKReceiveButtonNode, {
                        Value1: this._activityConfig._id,
                        extra: this._currentRound.Id
                    })
                }, t.prototype.SetTitleIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset(d.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + e), cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this.GetTitleIcon.spriteFrame = t, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.OnSetHeroTeamSelect = function(e) {
                    this._selectHeroIndex != e && ((this._selectHeroIndex || 0 == this._selectHeroIndex) && this._startHeroTeamComponentArray[this._selectHeroIndex].SetSelectBgState(!1), this._selectHeroIndex = e, this._startHeroTeamComponentArray[e].SetSelectBgState(!0))
                }, t.prototype.SetLeftTime = function() {
                    if (m.default.Instance.ComputeDeadTime(this._activityConfig.Common) - d.RpcComponent.Instance.ServerTime < 0) {
                        var e = m.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - d.RpcComponent.Instance.ServerTime;
                        return e < 0 ? void l.UIManager.Instance.BackUIPanel() : void(this.LeftTimeRichText.string = "<outline color=#000000 width = 2><color=#ffffff>{0}</c><color=#00ff00>{1}</c></o>".Fmt("activityTime_show".ToUILocale(), m.default.ActivityTimeLeftFormat(e)))
                    }
                    var t = m.default.Instance.ComputeContiuousTime(this._activityConfig.Common);
                    if (t != this._openDay) {
                        this._openDay = t;
                        for (var n = 0; n < this._activityConfig.__Rounds.length; n++)
                            if (t <= this._activityConfig.__Rounds[n].EndDay) {
                                this._currentPlayRoundIndex = this._activityConfig.__Rounds[n].Id;
                                break
                            }
                    }
                    if (t <= this._roundMap[this._currentPlayRoundIndex].StartDay) {
                        var o = m.default.Instance.ComputeActivitStartTime(this._activityConfig.Common) + this._roundMap[this._currentPlayRoundIndex].StartDay * v.Etc.DayDuration;
                        this.LeftTimeRichText.string = "Activity_HeroPK_Start_Left_Time".ToUILocale().Fmt(this._currentPlayRoundIndex, m.default.ActivityTimeLeftFormat(o - d.RpcComponent.Instance.ServerTime))
                    } else {
                        var r = m.default.Instance.ComputeActivitStartTime(this._activityConfig.Common) + this._roundMap[this._currentPlayRoundIndex].EndDay * v.Etc.DayDuration - d.RpcComponent.Instance.ServerTime;
                        this.LeftTimeRichText.string = "Activity_HeroPK_Left_Time".ToUILocale().Fmt(this._currentPlayRoundIndex, m.default.ActivityTimeLeftFormat(r))
                    }
                }, t.prototype.SetRedDot = function() {
                    A.RedDotManager.Instance.BindInstance(this.TaskButton.node, A.RedDotManager.Instance.InstanceRedDot.HeroPKTaskNode, {
                        Value1: this._activityConfig._id
                    }), this._warTokenActivityId && A.RedDotManager.Instance.BindInstance(this.WarTokenButton.node, A.RedDotManager.Instance.InstanceRedDot.HeroPKWarTokenButtonNode, {
                        Value1: this._warTokenActivityId
                    })
                }, t.prototype.OnJoinButtonClick = function() {
                    var e = this;
                    m.default.Instance.ComputeContiuousTime(this._activityConfig.Common) < this._currentRound.StartDay ? c.UIUtlity.ShowFloatingHint("Activity_HeroPK_Round_Tag_Not_Start".ToUILocale()) : m.default.CheckActivityIsEnd(this._activityConfig.Common, !0) || (this._selectHeroIndex || 0 == this._selectHeroIndex ? c.UIUtlity.ShowHintPanel(null, "Activity_HeroPK_Join_Confirm_Tip".ToUILocale(), "cancel".ToUILocale(), null, "button_confirm".ToUILocale(), function() {
                        e._requestHeroIndex = e._selectHeroIndex, d.DataCenter.Instance.SetTempData(n.TEMP_HEROPK_SELECT_HEROID, e._currentRound.Heros[e._selectHeroIndex].Items[0]), d.DataCenter.Instance.SetTempData(n.TEMP_HEROPK_IS_JOIN, !0), l.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattleFormationPanel.Path, e.RequestSaveFormation.bind(e), [17, 17, 17], e._activityConfig._id)
                    }) : c.UIUtlity.ShowFloatingHint("Activity_HeroPK_None_Hero_Select_Tip".ToUILocale()))
                }, t.prototype.RequestSaveFormation = function(e) {
                    var t = this,
                        n = new p.Req_Activity_HeroPKApply;
                    n.ActivityId = this._activityConfig._id, n.Round = this._currentRound.Id, n.Index = this._requestHeroIndex, n.Formations = e, d.RpcComponent.Instance.Call(n, function() {
                        c.UIUtlity.ShowFloatingHint("Activity_HeroPK_Formation_Save_Success".ToUILocale()), t.DisPlay(!0)
                    })
                }, t.prototype.OnHeroDetailButtonClick = function() {
                    var e = this._playerModel.IntMap[this._currentRound.Id];
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.HeroTestTowerStarAddtionPanel.Path, null, this._heroAddtionMap[e].AttrIds, this._attrMap)
                }, t.prototype.OnPlayBattleButtonClick = function() {
                    var e = this;
                    if (w.BattleManager.Instance.IsInBattle(h.MapType.HeroPK)) w.BattleManager.Instance.ResumePlayBattle(h.MapType.HeroPK);
                    else if (!m.default.CheckActivityIsEnd(this._activityConfig.Common, !0))
                        if (m.default.Instance.ComputeContiuousTime(this._activityConfig.Common) < this._currentRound.BattleDay) c.UIUtlity.ShowFloatingHint("Activity_HeroPK_Battle_Time_Tip".ToUILocale());
                        else if (d.DataCenter.Instance.IsItemEnough(this._activityConfig.CustomPart.ItemId, 1)) {
                        for (var t = this._playerModel.IntMap[this._currentRound.Id], n = d.ConfigDataComponent.Instance.GetConfigById(u.MapType_Config, h.MapType.HeroPK), o = 0; o < n.AttackerFormation.length; o++) {
                            for (var r = !1, i = d.DataCenter.Instance.GetDataById(p.UserFormation_Model, n.AttackerFormation[o]), a = 0; a < i.HeroIds.length; a++) {
                                var s = i.HeroIds[a];
                                if (s < 0 && s == -t) {
                                    r = !0;
                                    break
                                }
                                if (s > 0) {
                                    var f = d.DataCenter.Instance.GetDataById(p.UserHero_Model, s);
                                    if (f && f.HeroId == t) {
                                        r = !0;
                                        break
                                    }
                                }
                            }
                            if (!r) return c.UIUtlity.ShowFloatingHint("Activity_HeroPK_Battle_Formation_Tip".ToUILocale()), void this.OnFormationButtonClick()
                        }
                        if (this.SelectSameTeamToggle.isChecked && this._sameTeamPlayerDatas) l.UIManager.Instance.ShowUIPanel(g.PanelConfig.HeroPKSelectHeroPanel.Path, this._sameTeamPlayerDatas, this._playerModel.Int2DArray[this._currentTab].Items[1], this._currentRound.Id, this.SelectSameTeamToggle.isChecked, this._activityConfig._id);
                        else if (!this.SelectSameTeamToggle.isChecked && this._differentTeamPlayerDatas) l.UIManager.Instance.ShowUIPanel(g.PanelConfig.HeroPKSelectHeroPanel.Path, this._differentTeamPlayerDatas, this._playerModel.Int2DArray[this._currentTab].Items[1], this._currentRound.Id, this.SelectSameTeamToggle.isChecked, this._activityConfig._id);
                        else {
                            var y = new p.Req_Activity_HeroPKTargetInfo;
                            y.ActivityId = this._activityConfig._id, y.SameCamp = this.SelectSameTeamToggle.isChecked ? 1 : 0, y.NewTarget = 1, d.RpcComponent.Instance.Call(y, function(t) {
                                t.Rows.length > 0 && e.SelectSameTeamToggle.isChecked ? e._sameTeamPlayerDatas = t.Rows : t.Rows.length > 0 && !e.SelectSameTeamToggle.isChecked && (e._differentTeamPlayerDatas = t.Rows), l.UIManager.Instance.ShowUIPanel(g.PanelConfig.HeroPKSelectHeroPanel.Path, t.Rows, e._playerModel.Int2DArray[e._currentTab].Items[1], e._currentRound.Id, e.SelectSameTeamToggle.isChecked, e._activityConfig._id)
                            })
                        }
                    } else c.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activityConfig.CustomPart.ItemId.ToItemName()))
                }, t.prototype.OnFormationButtonClick = function() {
                    m.default.CheckActivityIsEnd(this._activityConfig.Common, !0) || (this._requestHeroIndex = -1, d.DataCenter.Instance.SetTempData(n.TEMP_HEROPK_SELECT_HEROID, this._playerModel.IntMap[this._currentRound.Id]), d.DataCenter.Instance.SetTempData(n.TEMP_HEROPK_IS_JOIN, !1), l.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattleFormationPanel.Path, this.RequestSaveFormation.bind(this), [17, 17, 17], this._activityConfig._id))
                }, t.prototype.OnSelectTeamToggleClick = function() {
                    var e = this,
                        t = new p.Req_Activity_HeroPKTargetInfo;
                    t.ActivityId = this._activityConfig._id, t.SameCamp = this.SelectSameTeamToggle.isChecked ? 1 : 0, d.RpcComponent.Instance.Call(t, function() {
                        e._playerModel = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, e._activityConfig._id), e.SelectSameTeamToggle.isChecked = !!e._playerModel.IntArray[6]
                    })
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = new p.Req_Activity_HeroPKRewards;
                    e.ActivityId = this._activityConfig._id, e.Round = this._currentRound.Id, d.RpcComponent.Instance.Call(e, function(e) {
                        c.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "Activity_HeroPK_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["Activity_HeroPK_Rule_Content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnLeftArrowButtonClick = function() {}, t.prototype.OnRightArrowButtonClick = function() {}, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnCurrentRankButtonClick = function() {
                    this._isTotalRank = !1;
                    var e = new p.Req_Activity_HeroPKGetRank;
                    e.ActivityId = this._activityConfig._id, e.Round = this._currentRound.Id, e.Type = 1, d.RpcComponent.Instance.Call(e, this.RequestRankSuccess.bind(this))
                }, t.prototype.OnTotalRankButtonClick = function() {
                    this._isTotalRank = !0;
                    var e = new p.Req_Activity_GetRank;
                    e.ActivityId = this._activityConfig._id, d.RpcComponent.Instance.Call(e, this.RequestRankSuccess.bind(this))
                }, t.prototype.RequestRankSuccess = function(e) {
                    var t = {};
                    if (t.ActivityId = this._activityConfig._id, t.Title = "bossWar_rank_name".ToUILocale().Fmt(this._activityConfig.Common.Title), t.RankDatas = [e], !this._isTotalRank) {
                        var n = [];
                        this._activityConfig.RoundRankRewards.forEach(function(e) {
                            var t = {};
                            t.Id = e.Id, t.Ranks = e.Rank, t.Rewards = e.Rewards, n.push(t)
                        }), t.RewardDatas = n
                    }
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonActivityRankPanel.Path, t)
                }, t.prototype.OnRewardPreviewButtonClick = function() {
                    var e = {},
                        t = [];
                    this._activityConfig._RankRewards.forEach(function(e) {
                        var n = {};
                        n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                    }), e.Data = t, e.IsNotShowMyRank = !0, e.ToggleTitle = "Activity_HeroPK_Reward_Preview_Toggle_1".ToUILocale();
                    var n = {},
                        o = [],
                        r = {
                            Id: 1,
                            Ranks: [1, 1]
                        };
                    r.Rewards = this._activityConfig.CustomPart.Rewards, o.push(r);
                    var i = {
                        Id: 2,
                        Ranks: [2, 4]
                    };
                    i.Rewards = this._activityConfig.CustomPart.SecondRewards, o.push(i), n.Data = o, n.IsNotShowMyRank = !0, n.ToggleTitle = "Activity_HeroPK_Reward_Preview_Toggle_2".ToUILocale(), n.RuleTip = "Activity_HeroPK_Reward_Preview_Tip".ToUILocale(), l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonRankRewardPanel.Path, null, [e, n])
                }, t.prototype.OnReportsButtonClick = function() {
                    var e = new p.Req_Activity_HeroPKReports;
                    e.ActivityId = this._activityConfig._id, e.Round = this._currentRound.Id;
                    var t = this;
                    d.RpcComponent.Instance.Call(e, function(e) {
                        l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerRankReportPanel.Path, e, h.ActivityType.HeroPK, t._activityConfig._id)
                    })
                }, t.prototype.OnWarTokenButtonClick = function() {
                    if (this._activityConfig.Common.JumpId) {
                        var e = d.ConfigDataComponent.Instance.GetConfigById(u.ItemGetWay_Config, this._activityConfig.Common.JumpId);
                        if (e && e.PanelInfo[1]) {
                            var t = m.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(h.ActivityType.WarToken, e.PanelInfo[1]);
                            t > 0 && l.UIManager.Instance.ShowUIPanel(g.PanelConfig.WarTokenListPanel.Path, !0, t)
                        }
                    }
                }, t.prototype.OnGiftButtonClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: m.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[0],
                            Title: "Activity_HeroPK_Gift".ToUILocale()
                        };
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = this;
                    this._taskArray || (this._taskArray = [], this._taskArray[0] = {
                        Tasks: [],
                        IsActivity: !0,
                        Title: "task_tab_2".ToUILocale(),
                        Reddot: A.RedDotManager.Instance.InstanceRedDot.HeroPKDailyTaskToggle,
                        ActivityId: this._activityConfig._id
                    }, this._taskArray[1] = {
                        Tasks: [],
                        IsActivity: !0,
                        Title: "task_tab_5".ToUILocale(),
                        Reddot: A.RedDotManager.Instance.InstanceRedDot.HeroPKTotalTaskToggle,
                        ActivityId: this._activityConfig._id
                    }, this._activityConfig._Tasks.forEach(function(t) {
                        t.IsDaily ? e._taskArray[0].Tasks.push(t) : e._taskArray[1].Tasks.push(t)
                    })), l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonTaskPanel.Path, this._taskArray)
                }, t.prototype.OnStartBattleButtonClick = function() {
                    this.SelectSameTeamToggle.isChecked ? this._sameTeamPlayerDatas = null : this._differentTeamPlayerDatas = null
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 == this.RankRewardContainer.children.indexOf(t) && -1 == this.ResultRewardContainer.children.indexOf(t) || c.UIUtlity.ShowItemTip(t.getComponent(b.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, t.InitBattle = function() {
                    [h.MapType.HeroPK].forEach(function(e) {
                        l.Game.EventDispatcher.Only(h.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(h.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(h.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(h.GameEventIds.SettleAllBattle.Fmt(e), n.SettleFunction, n), l.Game.EventDispatcher.Only(h.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(h.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                    })
                }, t.RestartBattle = function() {
                    n.StartBattle(n.ActivityId, n.HeroIndex, n.Round)
                }, t.StartBattle = function(e, t, o, r) {
                    if (n.NextBattleIndex = 0, r) {
                        var i = 1;
                        n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                            e.Uid == d.DataCenter.Instance.Uid && (i = e.Camp)
                        });
                        var a = n.GetNextBattleReport(),
                            s = w.BattleManager.Instance.StartPlay(a, {
                                MultiBattleResult: [0, 0, 0],
                                DontCloseOnEnd: !0,
                                CanSwitchSpeed: !0,
                                CanSkipPlay: !0,
                                CanPlayInBackground: !1,
                                CanCanel: !1,
                                CanRestart: !1
                            });
                        l.UIManager.Instance.ShowUIPanel(g.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, i, s, function() {
                            s.SettleParams = [n.BattleInfo, n.BattleReports]
                        })
                    } else {
                        n.HeroIndex = t, n.ActivityId = e, n.Round = o;
                        var c = new p.Req_Activity_HeroPKChallenge;
                        c.ActivityId = e, c.Index = t, c.Round = o, d.RpcComponent.Instance.Call(c, function(e) {
                            n.BattleReports = e.Reports;
                            var t = n.GetNextBattleReport(),
                                o = w.BattleManager.Instance.StartPlay(t, {
                                    MultiBattleResult: [0, 0, 0],
                                    DontCloseOnEnd: !0,
                                    CanSwitchSpeed: !0,
                                    CanSkipPlay: !0,
                                    CanPlayInBackground: !0,
                                    CanCanel: !1,
                                    CanRestart: !1,
                                    CanSkipAllPlay: !0
                                });
                            l.UIManager.Instance.ShowUIPanel(g.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, h.CampType.Attacker, o)
                        }.bind(this))
                    }
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.BattleReports && n.NextBattleIndex < n.BattleReports.length && (e = n.BattleReports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.SettleBattle = function(e) {
                    var t = n.GetNextBattleReport();
                    if (t) {
                        e.Reports[0] = t;
                        var o = m.default.CheckIsSelfBattleWin(n.BattleReports[n.NextBattleIndex - 2], !0);
                        if (e.ExtraParam.MultiBattleResult[n.NextBattleIndex - 2] = o ? 1 : -1, e.InBackground) w.BattleManager.Instance.NextWave(e);
                        else {
                            var r = 1;
                            n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                                e.Uid == d.DataCenter.Instance.Uid && (r = e.Camp)
                            }), l.UIManager.Instance.ShowUIPanel(g.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, r, e, n.ShowNextBattle)
                        }
                    } else n.SettleFunction(e)
                }, t.SettleFunction = function(e) {
                    if (e.InBackground || l.Game.EventDispatcher.Emit(h.GameEventIds.DelayCloseBattlePanel), delete S.BattleData.PlayingBattleDatas[e.MapType], e.SettleParams) {
                        var t = e.SettleParams[0];
                        e.SettleParams.unshift(!0);
                        var o = d.DataCenter.Instance.Uid == t.AttackerInfo.Uid == !!t.Result;
                        n.SetSettlePanel(e, o, !0)
                    } else {
                        var r = new p.Req_Map_BattleSettlement;
                        r.MapType = h.MapType.HeroPK, d.RpcComponent.Instance.Call(r, function(t) {
                            e.SettleParams = t.ExtraParam[0].Items, e.SettleParams.unshift(!1);
                            var o = 1 == t.Result;
                            n.SetSettlePanel(e, o, !1)
                        })
                    }
                }, t.SetSettlePanel = function(e, t, n) {
                    if (!n) {
                        var o = e.SettleParams[1];
                        if (!d.DataCenter.Instance.ActivityConfigs[o]) return
                    }
                    if (t) {
                        var r = "ActivityHeroPKPanel/Components/HeroPKSettlementComponent";
                        w.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementWinPanel.Path, r, e)
                    } else r = "ActivityHeroPKPanel/Components/HeroPKSettlementComponent", w.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementFailPanel.Path, r, e)
                }, t.CancelBattle = function(e) {
                    var t = new p.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, d.RpcComponent.Instance.Call(t, null)
                }, t.ShowNextBattle = function(e) {
                    w.BattleManager.Instance.NextWave(e)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(g.PanelConfig.HeroPKSelectHeroPanel.Path)
                }, t.TEMP_HEROPK_SELECT_HEROID = "HeroPKSelecHeroId", t.TEMP_HEROPK_IS_JOIN = "HeroPKIsJoin", t.HeroIndex = 0, t.Round = 0, t.ActivityId = 0, t.BattleReports = null, t.BattleInfo = null, t.NextBattleIndex = 0, i([k(cc.Sprite)], t.prototype, "Bg", void 0), i([k(cc.Label)], t.prototype, "Title", void 0), i([k(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([k(cc.Label)], t.prototype, "TotalPointTag", void 0), i([k(cc.Label)], t.prototype, "TotalPointValue", void 0), i([k(cc.Button)], t.prototype, "RuleButton", void 0), i([k(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([k(cc.Button)], t.prototype, "RightArrowButton", void 0), i([k(cc.Node)], t.prototype, "ToggleContainer", void 0), i([k(cc.Label)], t.prototype, "NoneTip", void 0), i([k(cc.Button)], t.prototype, "CurrentRankButton", void 0), i([k(cc.Label)], t.prototype, "CurrentRankButoonLabel", void 0), i([k(cc.Node)], t.prototype, "StartPartNode", void 0), i([k(cc.Label)], t.prototype, "StartTitle", void 0), i([k(cc.Node)], t.prototype, "StartTeamContainer", void 0), i([k(cc.Label)], t.prototype, "StartTip", void 0), i([k(cc.Label)], t.prototype, "JoinTip", void 0), i([k(cc.Button)], t.prototype, "JoinButton", void 0), i([k(cc.Label)], t.prototype, "JoinButtonLabel", void 0), i([k(cc.Node)], t.prototype, "PlayPartNode", void 0), i([k(cc.Sprite)], t.prototype, "HeroIcon", void 0), i([k(cc.Label)], t.prototype, "HeroTitle", void 0), i([k(cc.Label)], t.prototype, "HeroName", void 0), i([k(f.LevelComponent)], t.prototype, "HeroLevelComponent", void 0), i([k(cc.Label)], t.prototype, "NoneHeroStarTag", void 0), i([k(cc.Label)], t.prototype, "HeroAddTag", void 0), i([k(cc.Label)], t.prototype, "HeroAddValue", void 0), i([k(cc.Label)], t.prototype, "NoneHeroAddTip", void 0), i([k(cc.Button)], t.prototype, "HeroAddDetailButton", void 0), i([k(cc.Label)], t.prototype, "MyPointTag", void 0), i([k(cc.Label)], t.prototype, "MyPointValue", void 0), i([k(cc.Label)], t.prototype, "MyRankTag", void 0), i([k(cc.Label)], t.prototype, "MyRankValue", void 0), i([k(cc.Label)], t.prototype, "RankRewardTag", void 0), i([k(cc.Label)], t.prototype, "NoneRankRewardTip", void 0), i([k(cc.Label)], t.prototype, "PlayTip", void 0), i([k(cc.Node)], t.prototype, "RankRewardContainer", void 0), i([k(y.default)], t.prototype, "FlagCurrencyBarItem", void 0), i([k(cc.Button)], t.prototype, "BattleButton", void 0), i([k(cc.Label)], t.prototype, "BattleButtonLabel", void 0), i([k(cc.Sprite)], t.prototype, "FlagIcon", void 0), i([k(cc.Label)], t.prototype, "FlagCount", void 0), i([k(cc.Button)], t.prototype, "FormationButton", void 0), i([k(cc.Label)], t.prototype, "FormationButtonLabel", void 0), i([k(cc.Toggle)], t.prototype, "SelectSameTeamToggle", void 0), i([k(cc.Label)], t.prototype, "SameTeamToggleTip", void 0), i([k(cc.Node)], t.prototype, "EndPartNode", void 0), i([k(cc.Label)], t.prototype, "ResultTitle", void 0), i([k(cc.Label)], t.prototype, "GetTip", void 0), i([k(cc.Sprite)], t.prototype, "GetTitleIcon", void 0), i([k(cc.Node)], t.prototype, "ResultTeamContainer", void 0), i([k(cc.Label)], t.prototype, "ResultRankTag", void 0), i([k(cc.Label)], t.prototype, "ResultRankValue", void 0), i([k(cc.Label)], t.prototype, "ResultRewardTag", void 0), i([k(cc.Label)], t.prototype, "ResultNoneRewardTip", void 0), i([k(cc.Label)], t.prototype, "ResultRewardTitle", void 0), i([k(cc.Node)], t.prototype, "ResultRewardContainer", void 0), i([k(cc.Button)], t.prototype, "ReceiveButton", void 0), i([k(cc.Label)], t.prototype, "ReceiveButtonLabel", void 0), i([k(cc.Node)], t.prototype, "ReceivedIconNode", void 0), i([k(cc.Button)], t.prototype, "ReturnButton", void 0), i([k(cc.Button)], t.prototype, "TotalRankButton", void 0), i([k(cc.Label)], t.prototype, "TotalRankButtonLabel", void 0), i([k(cc.Button)], t.prototype, "RewardPreviewButton", void 0), i([k(cc.Label)], t.prototype, "RewardPreviewButtonLabel", void 0), i([k(cc.Button)], t.prototype, "ReportsButton", void 0), i([k(cc.Label)], t.prototype, "ReportsButtonLabel", void 0), i([k(cc.Button)], t.prototype, "WarTokenButton", void 0), i([k(cc.Label)], t.prototype, "WarTokenButtonLabel", void 0), i([k(cc.Button)], t.prototype, "GiftButton", void 0), i([k(cc.Label)], t.prototype, "GiftButtonLabel", void 0), i([k(cc.Button)], t.prototype, "TaskButton", void 0), i([k(cc.Label)], t.prototype, "TaskButtonLabel", void 0), n = i([L], t)
            }(l.BaseUIFullScreenPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggleRollingLabel": "CustomToggleRollingLabel",
        "../Components/HeroPKTeamComponent": "HeroPKTeamComponent",
        "../Components/HeroPKToggleTagComponent": "HeroPKToggleTagComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent"
    }],
    ActivityHeroTestBattleLevelComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a2101NUa9hO4qtsH8KVrwe3", "ActivityHeroTestBattleLevelComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("./ItemComponent"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../Battle/BattleManager"),
            y = e("../Battle/BattleData"),
            g = e("../../../Consts/GameEventIds"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelTagLabel = null, t.CommonRewardContainer = null, t.SpecialRewardContainer = null, t.GetButton = null, t.GetButtonLabel = null, t.UngetButton = null, t.UngetButtonLabel = null, t.ReduceButton = null, t._commonRewardComponents = [], t._specialRewardComponents = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.GetButton.node.on("click", this.OnGetButtonClick, this), this.ReduceButton.node.on("click", this.OnReduceButtonClick, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._mapData = e, this._activityHeroId = t, this._playerModel = n, this._reduceValue = o, this._itemPrefab = r, this.LevelTagLabel.string = "level".ToUILocale().Fmt(e.Id), this._currentMapId = this._playerModel.IntArray[0], this.SetRewardContainer(), this.SetButtonState();
                    var i = h.ConfigDataComponent.Instance.GetConfigById(d.MapBase_Config, this._mapData.MapId);
                    this._mapType = i.Type
                }, t.prototype.SetRewardContainer = function() {
                    for (var e = 0; e < this._mapData.Rewards.length; e++) {
                        (n = this._commonRewardComponents[e]) || ((o = cc.instantiate(this._itemPrefab)).setParent(this.CommonRewardContainer), n = o.getComponent(s.ItemComponent), this._commonRewardComponents[e] = n), n.node.active = !0, n.Init({
                            ItemId: this._mapData.Rewards[e].Items[0],
                            Count: this._mapData.Rewards[e].Items[1]
                        });
                        var t = this._currentMapId && this._mapData.Id <= this._currentMapId;
                        n.SetSelectFlagState(t)
                    }
                    if (this._mapData.Rewards.length < this._commonRewardComponents.length)
                        for (e = this._mapData.Rewards.length; e < this._commonRewardComponents.length; e++) this._commonRewardComponents[e].node.active = !1;
                    for (e = 0; e < this._mapData.ExtraRewards.length; e++) {
                        var n, o;
                        (n = this._specialRewardComponents[e]) || ((o = cc.instantiate(this._itemPrefab)).setParent(this.SpecialRewardContainer), n = o.getComponent(s.ItemComponent), this._specialRewardComponents[e] = n), n.node.active = !0, n.Init({
                            ItemId: this._mapData.ExtraRewards[e].Items[0],
                            Count: this._mapData.ExtraRewards[e].Items[1]
                        }), t = this._currentMapId && this._mapData.Id <= this._currentMapId && !!this._playerModel.IntArray[1], n.SetSelectFlagState(t)
                    }
                    if (this._mapData.ExtraRewards.length < this._specialRewardComponents.length)
                        for (e = this._mapData.ExtraRewards.length; e < this._specialRewardComponents.length; e++) this._specialRewardComponents[e].node.active = !1
                }, t.prototype.SetButtonState = function() {
                    this.ReduceButton.node.active = this._reduceValue > 0, this.GetButton.node.active = !1, this.UngetButton.node.active = !1, this._isReceiveReward = !1, this._isCanBattle = !1;
                    var e = this._playerModel.IntArray[1];
                    if (this._currentMapId)
                        if (this._mapData.Id <= this._currentMapId)
                            if (e) this.UngetButton.node.active = !0, this.UngetButtonLabel.string = "Activity_HeroTestTower_Challenge_Success".ToUILocale();
                            else {
                                this.GetButton.node.active = !0;
                                var t = c.DataCenter.Instance.GetDataById(a.HeroInfo_Model, this._activityHeroId);
                                this._isReceiveReward = !!t, this.GetButtonLabel.string = "receive_continue".ToUILocale()
                            }
                    else this._mapData.Id == this._currentMapId + 1 ? (this.GetButton.node.active = !0, this._isCanBattle = !0, this.GetButtonLabel.string = "dailyInstance_challenge".ToUILocale()) : (this.UngetButton.node.active = !0, this.UngetButtonLabel.string = "Activity_HeroTestTower_Not_Start".ToUILocale());
                    else 1 == this._mapData.Id ? (this.GetButton.node.active = !0, this._isCanBattle = !0, this.GetButtonLabel.string = "dailyInstance_challenge".ToUILocale()) : (this.UngetButton.node.active = !0, this.UngetButtonLabel.string = "Activity_HeroTestTower_Not_Start".ToUILocale())
                }, t.prototype.OnGetButtonClick = function() {
                    if (this._isReceiveReward) {
                        var e = new a.Req_Activity_HeroTestTowerRewards;
                        e.ActivityId = this._playerModel.Sid, c.RpcComponent.Instance.Call(e, function(e) {
                            p.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else if (this._isCanBattle) {
                        if (f.BattleManager.Instance.IsInBattle(this._mapType)) {
                            var t = y.BattleData.PlayingBattleDatas[this._mapType];
                            return void(this._mapData.MapId != t.Reports[0].MapId ? p.UIUtlity.ShowFloatingHint("TrialHero_Challenging".ToUILocale().Fmt(t.Reports[0].MapId.ToMapName())) : f.BattleManager.Instance.ResumePlayBattle(this._mapType))
                        }
                        l.Game.EventDispatcher.Emit(g.GameEventIds.StartBattle.Fmt(this._mapType), this._mapData.MapId, this._playerModel.Sid)
                    } else this._isReceiveReward || p.UIUtlity.ShowFloatingHint("Activity_HeroTestTower_Special_Reward_Tip".ToUILocale().Fmt(this._activityHeroId.ToHeroTitle()))
                }, t.prototype.OnReduceButtonClick = function() {
                    var e = this._reduceValue / 10 + "%";
                    p.UIUtlity.ShowFloatingHint("ActivityHeroTestTower_Reduce_Tip".ToUILocale().Fmt(e))
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 == this.CommonRewardContainer.children.indexOf(t) && -1 == this.SpecialRewardContainer.children.indexOf(t) || p.UIUtlity.ShowItemTip(t.getComponent(s.ItemComponent).ItemId, t)
                }, i([_(cc.Label)], t.prototype, "LevelTagLabel", void 0), i([_(cc.Node)], t.prototype, "CommonRewardContainer", void 0), i([_(cc.Node)], t.prototype, "SpecialRewardContainer", void 0), i([_(cc.Button)], t.prototype, "GetButton", void 0), i([_(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([_(cc.Button)], t.prototype, "UngetButton", void 0), i([_(cc.Label)], t.prototype, "UngetButtonLabel", void 0), i([_(cc.Button)], t.prototype, "ReduceButton", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "./ItemComponent": "ItemComponent"
    }],
    ActivityHeroTestTowerEntryPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "295baGC+lBBMZF61g4nlIu+", "ActivityHeroTestTowerEntryPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Battle/BattleManager"),
            I = e("../Components/HeroTestTowerPlayerComponent"),
            _ = e("../../Auxiliary/GameRecord"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.LeftTime = null, t.PlayerItemContainer = [], t.CurrentRankTitle = null, t.CurrentRankValue = null, t.RewardNode = null, t.RewardTitle = null, t.RewardContainer = null, t.ShopButton = null, t.ShopButtonLabel = null, t.RewardButton = null, t.RewardButtonLabel = null, t.RankButton = null, t.RankButtonLabel = null, t.EnterButton = null, t.EnterButtonLabel = null, t.ReturnButton = null, t._playerAvatarComponent = [], t._rewardItemArray = [], t._isShowTime = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityHeroTestTowerPanel/Components/HeroTestTowerPlayerComponent", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._playerItemPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ActivityHeroTestTower_Title".ToUILocale(), this.CurrentRankTitle.string = "ActivityHeroTestTower_CurrentRank_Title".ToUILocale(), this.RewardTitle.string = "ActivityHeroTestTower_Reward_Title".ToUILocale(), this.ShopButtonLabel.string = "exchange_shop".ToUILocale(), this.RewardButtonLabel.string = "ActivityHeroTestTower_Reward_Title".ToUILocale(), this.RankButtonLabel.string = "ActivityHeroTestTower_Rank".ToUILocale(), this.EnterButtonLabel.string = "ActivityHeroTestTower_Entry".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.EnterButton.node.on("click", this.OnEnterButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._enterData = t[1], this.ActivityConfig = d.DataCenter.Instance.ActivityConfigs[n], this._myRank = this._enterData.MyRank
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n = _.default.GetItem(_.GameRecordDefine.ActivityHeroTestDaily);
                    (n = n ? JSON.parse(n) : {})[this.ActivityConfig._id] = d.RpcComponent.Instance.ServerTime, _.default.SetItem(_.GameRecordDefine.ActivityHeroTestDaily, JSON.stringify(n)), l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this.ActivityConfig._id), t || (this.SetLeftTime(), this.schedule(this.SetLeftTime, 1), this.SetTestHeroesTempData()), this.RefreshRankData(), this.SetRankInfo(), this.SetPlayerItemContainer()
                }, t.prototype.SetPlayerItemContainer = function() {
                    var e = {};
                    this._enterData.Map && (e = this._enterData.Map);
                    for (var t = 0; t < this.PlayerItemContainer.length; t++) {
                        var n = this._playerAvatarComponent[t];
                        if (!n) {
                            var o = cc.instantiate(this._playerItemPrefab);
                            o.setParent(this.PlayerItemContainer[t]), n = o.getComponent(I.default), this._playerAvatarComponent[t] = n
                        }
                        var r = this._rankData ? this._rankData.Rows[t] : this._enterData.Rows[t];
                        n.Init(r, t, this.ActivityConfig, e)
                    }
                }, t.prototype.RefreshRankData = function() {
                    var e = this,
                        t = new p.Req_Activity_GetRank;
                    t.ActivityId = this.ActivityConfig._id, d.RpcComponent.Instance.Call(t, function(t) {
                        e._rankData = t, e._myRank = e._rankData.MyRank
                    })
                }, t.prototype.SetRankInfo = function() {
                    this.RewardNode.active = !1, this._myRank ? (this.CurrentRankValue.string = this._myRank.toString(), this.SetCurrentRankReward()) : this.CurrentRankValue.string = "openServer_heroTest_noRatingYet".ToUILocale()
                }, t.prototype.SetCurrentRankReward = function() {
                    for (var e, t = 0; t < this.ActivityConfig._RankRewards.length; t++) this.ActivityConfig._RankRewards[t].Rank[0] <= this._myRank && this._myRank <= this.ActivityConfig._RankRewards[t].Rank[1] && (e = this.ActivityConfig._RankRewards[t].Rewards);
                    if (e) {
                        for (this.RewardNode.active = !0, t = 0; t < e.length; t++) {
                            var n = this._rewardItemArray[t];
                            if (!n) {
                                var o = cc.instantiate(this._itemPrefab);
                                o.setParent(this.RewardContainer), n = o.getComponent(y.ItemComponent), this._rewardItemArray[t] = n
                            }
                            n.node.active = !0, n.Init({
                                ItemId: e[t].Items[0],
                                Count: e[t].Items[1]
                            })
                        }
                        if (e.length < this._rewardItemArray.length)
                            for (t = e.length; t < this._rewardItemArray.length; t++) this._rewardItemArray[t].node.active = !1
                    }
                }, t.prototype.SetLeftTime = function() {
                    var e = f.default.Instance.ComputeDeadTime(this.ActivityConfig.Common) - d.RpcComponent.Instance.ServerTime;
                    if (e < 0) {
                        this._isShowTime = !0;
                        var t = f.default.Instance.ComputeExtraShowDeadTime(this.ActivityConfig.Common) - d.RpcComponent.Instance.ServerTime;
                        return t < 0 ? void l.UIManager.Instance.BackUIPanel() : void(this.LeftTime.string = "<outline color=#202434 width=2>" + "activityTime_show".ToUILocale() + "<color=#00ff00>" + f.default.ActivityTimeLeftFormat(t) + "</color></outline>")
                    }
                    this.LeftTime.string = "<outline color=#202434 width=2>" + "activityGetWayTime".ToUILocale().Fmt("<color=#00ff00>" + f.default.ActivityTimeLeftFormat(e) + "</color>") + "</outline>"
                }, t.prototype.SetTestHeroesTempData = function() {
                    var e, t = this,
                        o = [];
                    this.ActivityConfig.__Heros.forEach(function(n) {
                        var r = t.GetHeroData(-n.Id, n.Id, n.Level, n.Star);
                        n.Id == t.ActivityConfig.CustomPart.HeroId ? e = r : o.push(r)
                    }), f.default.Instance.SortHeroByRule2(o), o.unshift(e);
                    var r = -this.ActivityConfig.CustomPart.HeroId;
                    d.DataCenter.Instance.SetTempData(n.TEMP_HEROTESTTOWER_HERODATAS + r, o);
                    var i = d.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, this.ActivityConfig.__Maps[0].MapId);
                    d.DataCenter.Instance.SetTempData(n.TEMP_HEROTESTTOWER_HEROSID + i.Type, r);
                    var a = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this.ActivityConfig.CustomPart.HeroId),
                        s = Math.min(e.Level, a.MaxStarLevel),
                        l = {
                            HeroId: this.ActivityConfig.CustomPart.HeroId,
                            MaxStar: s
                        },
                        c = p.HeroInfo_Model.create(l);
                    d.DataCenter.Instance.SetTempData(n.TEMP_HEROTESTTOWER_HEROINFO + r, c)
                }, t.prototype.GetHeroData = function(e, t, n, o) {
                    var r = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, t),
                        i = Math.min(o, r.MaxStarLevel),
                        a = d.ConfigDataComponent.Instance.GetConfigById(u.HeroStar_Config, i),
                        s = Math.min(n, a.MaxLevel),
                        l = {
                            Sid: e,
                            HeroId: t,
                            Level: s,
                            StarLevel: i,
                            Power: d.ConfigCacheComponent.Instance.GetHeroPowerByStarAndLevel(t, i, s)
                        };
                    return p.UserHero_Model.create(l)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "ActivityHeroTestTower_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["ActivityHeroTestTower_Rule_Content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnShopButtonClick = function() {
                    this.ActivityConfig.Common.JumpId && f.default.ShowPanelByGetWayId(this.ActivityConfig.Common.JumpId)
                }, t.prototype.OnRewardButtonClick = function() {
                    var e = {},
                        t = [];
                    this.ActivityConfig._RankRewards.forEach(function(e) {
                        var n = {};
                        n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                    }), e.MyRank = this._myRank, e.Data = t, e.IsInRank = !0, l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonRankRewardPanel.Path, e)
                }, t.prototype.OnRankButtonClick = function() {
                    var e = {};
                    e.ActivityId = this.ActivityConfig._id, e.Title = "bossWar_rank_name".ToUILocale().Fmt(this.ActivityConfig.Common.Title), e.RankDatas = [this._rankData];
                    var t = [];
                    this.ActivityConfig._RankRewards.forEach(function(e) {
                        var n = {};
                        n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                    }), e.RewardDatas = t, l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonActivityRankPanel.Path, e)
                }, t.prototype.OnEnterButtonClick = function() {
                    if (this._isShowTime) c.UIUtlity.ShowFloatingHint("ActivityHeroTestTower_ShowTime_Tip".ToUILocale());
                    else {
                        var e = this.ActivityConfig.__Maps.length > 0 ? this.ActivityConfig.__Maps[0].MapId : 0;
                        if (e) {
                            var t = d.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, e);
                            if (t && m.BattleManager.Instance.ResumePlayBattle(t.Type)) return
                        }
                        l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityHeroTestTowerPanel.Path, this.ActivityConfig._id)
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContainer.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.SetLeftTime)
                }, t.TEMP_HEROTESTTOWER_HERODATAS = "HeroTestTowerHeroDatas", t.TEMP_HEROTESTTOWER_HEROINFO = "HeroTestTowerlHeroInfoModel", t.TEMP_HEROTESTTOWER_HEROSID = "HeroTestTowerHeroSid", i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Button)], t.prototype, "RuleButton", void 0), i([b(cc.RichText)], t.prototype, "LeftTime", void 0), i([b([cc.Node])], t.prototype, "PlayerItemContainer", void 0), i([b(cc.Label)], t.prototype, "CurrentRankTitle", void 0), i([b(cc.Label)], t.prototype, "CurrentRankValue", void 0), i([b(cc.Node)], t.prototype, "RewardNode", void 0), i([b(cc.Label)], t.prototype, "RewardTitle", void 0), i([b(cc.Node)], t.prototype, "RewardContainer", void 0), i([b(cc.Button)], t.prototype, "ShopButton", void 0), i([b(cc.Label)], t.prototype, "ShopButtonLabel", void 0), i([b(cc.Button)], t.prototype, "RewardButton", void 0), i([b(cc.Label)], t.prototype, "RewardButtonLabel", void 0), i([b(cc.Button)], t.prototype, "RankButton", void 0), i([b(cc.Label)], t.prototype, "RankButtonLabel", void 0), i([b(cc.Button)], t.prototype, "EnterButton", void 0), i([b(cc.Label)], t.prototype, "EnterButtonLabel", void 0), i([b(cc.Button)], t.prototype, "ReturnButton", void 0), n = i([v], t)
            }(l.BaseUIFullScreenPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/HeroTestTowerPlayerComponent": "HeroTestTowerPlayerComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityHeroTestTowerPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7add7eR6BlFYKCRpadkBtv1", "ActivityHeroTestTowerPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../Components/SmallRankListComponent"),
            y = e("../Components/CustomLayout"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Components/ActivityHeroTestBattleLevelComponent"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Components/ItemComponent"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../Battle/BattleManager"),
            b = e("../../../Consts/Consts"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.HeroBanner = null, t.HeroTitleIcon = null, t.HeroQuilityIcon = null, t.HeroElementIcon = null, t.Title = null, t.RuleButton = null, t.LeftTimeTip = null, t.HeroAddtionTip = null, t.HeroAddtionTag = null, t.HeroAddtionValue = null, t.HeroItemNode = null, t.HeroAddtionDetailButton = null, t.RankListComponent = null, t.RankDetailButtonLabel = null, t.CurrentRankTag = null, t.CurrentRankValue = null, t.RewardTitle = null, t.RewardContaienr = null, t.RewardNoneTip = null, t.LevelTagLabel = null, t.RewardTagLabel = null, t.AttrTagLabel = null, t.LevelCustomLayout = null, t.ReturnButton = null, t.AddtionTip = null, t._rewardItemArray = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshLevelScrollView, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshLevelScrollView, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityHeroTestTowerPanel/Components/ActivityHeroTestBattleLevelComponent", cc.Prefab), n = this.LoadDynamicAsset(I.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._battleLevelPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ActivityHeroTestTower_Battle_Title".ToUILocale(), this.HeroAddtionTip.string = "ActivityHeroTestTower_Battle_HeroAddtion".ToUILocale(), this.HeroAddtionTag.string = "ActivityHeroTestTower_Battle_HeroAddtion_Tag".ToUILocale(), this.RankDetailButtonLabel.string = "ActivityHeroTestTower_Battle_Rank_Detail".ToUILocale(), this.CurrentRankTag.string = "rank_my_rank".ToUILocale(), this.RewardTitle.string = "ActivityHeroTestTower_Reward_Title".ToUILocale(), this.LevelTagLabel.string = "ActivityHeroTestTower_Battle_Level_Tag".ToUILocale(), this.RewardTagLabel.string = "ActivityHeroTestTower_Battle_Reward_Tag".ToUILocale(), this.AttrTagLabel.string = "ActivityHeroTestTower_Battle_Attr_Tag".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.HeroAddtionDetailButton.node.on("click", this.OnHeroAddtionDetailButton, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this);
                    var o = t[0];
                    this._activityConfig = d.DataCenter.Instance.ActivityConfigs[o], this._totalMapConfig = {}, this._activityConfig.__Maps.forEach(function(e) {
                        n._totalMapConfig[e.Id] = e
                    }), this._debuffConfigs = {}, this._activityConfig.__Debuffs.forEach(function(e) {
                        n._debuffConfigs[e.Id] = e.Debuffs
                    }), this._heroBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._activityConfig.CustomPart.HeroId), this.SetOpenDay()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this.LoadDynamicAsset(d.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/" + this._activityConfig.CustomPart.HeroId), cc.SpriteFrame), n = C.default.LoadActivityTexture(this._activityConfig.Common.Pictures[0]), [4, Promise.all([t, n]).then(function(e) {
                                        o.HeroTitleIcon.spriteFrame = e[0], o.HeroBanner.spriteFrame = e[1], o._banner = e[1]
                                    })];
                                case 1:
                                    return r.sent(), this.HeroQuilityIcon.spriteFrame = c.UIUtlity.GetSRByQuality(this._heroBaseConfig.Quality), this.HeroElementIcon.spriteFrame = c.UIUtlity.GetHeroElementIcon(this._heroBaseConfig.ElementType), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._playerModel = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id), t || (this.AddtionTip.string = "ActivityHeroTestTower_Addtion_Tip".ToUILocale().Fmt(this._activityConfig.CustomPart.HeroId.ToHeroTitle()), this.LevelCustomLayout.Init(this._battleLevelPrefab), this.SetAddtionHeroItem(), this.SetLeftTime(), this.schedule(this.SetLeftTime, 1));
                    var n = this._playerModel.IntArray[0] ? this._playerModel.IntArray[0] : 0;
                    this.LevelCustomLayout.RenderLayOut(this._activityConfig.__Maps.length, n), this.SetSmallRankList(), this.SetHeroCurrentAddtion()
                }, t.prototype.SetOpenDay = function() {
                    var e = d.RpcComponent.Instance.ServerTime - C.default.Instance.ComputeActivitStartTime(this._activityConfig.Common);
                    this._openDay = Math.floor(e / b.Etc.DayDuration)
                }, t.prototype.SetAddtionHeroItem = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.HeroItemNode), e.getComponent(_.ItemComponent).Init({
                        ItemId: this._activityConfig.CustomPart.HeroId
                    }, _.ItemComponentType.HeroInfo)
                }, t.prototype.SetLeftTime = function() {
                    var e = C.default.Instance.ComputeDeadTime(this._activityConfig.Common) - d.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTimeTip.string = "<outline color=#202434 width=3>" + "activityGetWayTime".ToUILocale().Fmt("<color=#33ff8e>" + C.default.ActivityTimeLeftFormat(e) + "</color>") + "</outline>"
                }, t.prototype.SetSmallRankList = function() {
                    var e = this,
                        t = new p.Req_Activity_GetRank;
                    t.ActivityId = this._activityConfig._id, d.RpcComponent.Instance.Call(t, function(t) {
                        e.RankListComponent.InitUIForActivity(e._activityConfig._id, "ActivityHeroTestTower_Battle_Rank_Title".ToUILocale(), function() {
                            var t = new p.Req_Activity_GetRank;
                            t.ActivityId = e._activityConfig._id, d.RpcComponent.Instance.Call(t, function(t) {
                                var n = {};
                                n.ActivityId = e._activityConfig._id, n.Title = "bossWar_rank_name".ToUILocale().Fmt(e._activityConfig.Common.Title), n.RankDatas = [t], l.UIManager.Instance.ShowUIPanel(I.PanelConfig.CommonActivityRankPanel.Path, n)
                            })
                        }, t), e.RewardContaienr.active = !1, e.RewardNoneTip.node.active = !1, t.MyRank ? (e.CurrentRankValue.string = t.MyRank.toString(), e.SetCurrentRankReward(t.MyRank)) : (e.RewardNoneTip.node.active = !0, e.CurrentRankValue.string = "openServer_heroTest_noRatingYet".ToUILocale(), e.RewardNoneTip.string = "activityBoss_no_reward".ToUILocale())
                    })
                }, t.prototype.SetCurrentRankReward = function(e) {
                    for (var t, n = 0; n < this._activityConfig._RankRewards.length; n++) this._activityConfig._RankRewards[n].Rank[0] <= e && e <= this._activityConfig._RankRewards[n].Rank[1] && (t = this._activityConfig._RankRewards[n].Rewards);
                    if (t) {
                        for (this.RewardContaienr.active = !0, n = 0; n < t.length; n++) {
                            var o = this._rewardItemArray[n];
                            if (!o) {
                                var r = cc.instantiate(this._itemPrefab);
                                r.setParent(this.RewardContaienr), o = r.getComponent(_.ItemComponent), this._rewardItemArray[n] = o
                            }
                            o.node.active = !0, o.Init({
                                ItemId: t[n].Items[0],
                                Count: t[n].Items[1]
                            })
                        }
                        if (t.length < this._rewardItemArray.length)
                            for (n = t.length; n < this._rewardItemArray.length; n++) this._rewardItemArray[n].node.active = !1
                    } else this.RewardNoneTip.node.active = !0, this.RewardNoneTip.string = "activityBoss_no_reward".ToUILocale()
                }, t.prototype.SetHeroCurrentAddtion = function() {
                    var e = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, this._activityConfig.CustomPart.HeroId);
                    if (e) {
                        for (var t = 0; t < this._activityConfig.__Stars.length; t++)
                            if (e.MaxStar == this._activityConfig.__Stars[t].Id) {
                                this.HeroAddtionValue.string = this._activityConfig.__Stars[t].Attrs[0].Items[1] / 10 + "%";
                                break
                            }
                    } else this.HeroAddtionValue.string = "ActivityHeroTestTower_Battle_None_Addtion".ToUILocale()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "ActivityHeroTestTower_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["ActivityHeroTestTower_Rule_Content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnHeroAddtionDetailButton = function() {
                    l.UIManager.Instance.ShowUIPanel(I.PanelConfig.HeroTestTowerStarAddtionPanel.Path, this._activityConfig._id)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.RefreshLevelScrollView = function(e, t) {
                    var n = this;
                    t == this.LevelCustomLayout && e.forEach(function(e, t) {
                        var o = n._activityConfig.__Maps[t].Debuffs[n._openDay],
                            r = -n._debuffConfigs[o][0].Items[1];
                        e.getComponent(m.default).Init(n._activityConfig.__Maps[t], n._activityConfig.CustomPart.HeroId, n._playerModel, r, n._itemPrefab)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContaienr.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.SetLeftTime), this.HeroBanner.spriteFrame = null, l.AssetsManager.Instance.UnloadAsset(this._banner)
                }, t.InitBattle = function() {
                    [h.MapType.HeroTestTower1, h.MapType.HeroTestTower2, h.MapType.HeroTestTower3, h.MapType.HeroTestTower4, h.MapType.HeroTestTower5, h.MapType.HeroTestTower6, h.MapType.HeroTestTower7, h.MapType.HeroTestTower8, h.MapType.HeroTestTower9].forEach(function(e) {
                        l.Game.EventDispatcher.Only(h.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(h.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(h.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(h.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(h.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                    })
                }, t.RestartBattle = function(e) {
                    n.StartBattle(e.Reports[0].MapId, n.ActivityId)
                }, t.StartBattle = function(e, t) {
                    var o = this;
                    n.MapId = e, n.ActivityId = t, l.UIManager.Instance.ShowUIPanel(I.PanelConfig.BattleFormationPanel.Path, function(e) {
                        o.RequestTestHeroChallenge(e[0])
                    }, [e], t)
                }, t.RequestTestHeroChallenge = function(e) {
                    var t = l.UIManager.Instance.GetUIPanel(I.PanelConfig.ActivityHeroTestTowerEntryPanel.Path);
                    if (t && (!t.ActivityConfig || !C.default.CheckActivityIsEnd(t.ActivityConfig.Common, !0))) {
                        for (var n = e.HeroIds, o = 0; o < n.length; o++) {
                            var r = n[o];
                            r < 0 && (n[o] = -r)
                        }
                        e.HeroIds = n;
                        var i = new p.Req_Activity_HeroTestTowerChallenge;
                        i.ActivityId = t.ActivityConfig._id, i.Formations = [e], d.RpcComponent.Instance.Call(i, function(e) {
                            for (var n = !0, o = d.DataCenter.Instance.ActivityConfigs[t.ActivityConfig._id], r = 0; r < o.__Maps.length; r++)
                                if (o.__Maps[r].MapId == e.Reports[0].MapId && o.__Maps[r].CanSkip) {
                                    n = !1;
                                    break
                                } var i = {
                                CanSkipPlay: n,
                                CanPlayInBackground: !1
                            };
                            v.BattleManager.Instance.StartPlay(e.Reports, i)
                        })
                    }
                }, t.SettleBattle = function(e) {
                    var t = new p.Req_Map_BattleSettlement;
                    t.MapType = e.MapType, d.RpcComponent.Instance.Call(t, function(t) {
                        var n = t.ExtraParam && t.ExtraParam[0] ? t.ExtraParam[0].Items[0] : 0;
                        if (n && d.DataCenter.Instance.ActivityConfigs[n])
                            if (C.default.CheckIsSelfBattleWin(e.Reports[0], !1)) {
                                var o = "ActivityHeroTestTowerPanel/Components/HeroTestTowerSettlementComponent";
                                v.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementWinPanel.Path, o, e, null, null, [t])
                            } else o = "SettlementPanel/CommonFailSettlementComponent", v.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementFailPanel.Path, o, e)
                    })
                }, t.CancelBattle = function(e) {
                    var t = new p.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, d.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(I.PanelConfig.ActivityHeroTestTowerPanel.Path)
                }, t.MapId = 0, t.ActivityId = 0, i([P(cc.Sprite)], t.prototype, "HeroBanner", void 0), i([P(cc.Sprite)], t.prototype, "HeroTitleIcon", void 0), i([P(cc.Sprite)], t.prototype, "HeroQuilityIcon", void 0), i([P(cc.Sprite)], t.prototype, "HeroElementIcon", void 0), i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.RichText)], t.prototype, "LeftTimeTip", void 0), i([P(cc.Label)], t.prototype, "HeroAddtionTip", void 0), i([P(cc.Label)], t.prototype, "HeroAddtionTag", void 0), i([P(cc.Label)], t.prototype, "HeroAddtionValue", void 0), i([P(cc.Node)], t.prototype, "HeroItemNode", void 0), i([P(cc.Button)], t.prototype, "HeroAddtionDetailButton", void 0), i([P(f.default)], t.prototype, "RankListComponent", void 0), i([P(cc.Label)], t.prototype, "RankDetailButtonLabel", void 0), i([P(cc.Label)], t.prototype, "CurrentRankTag", void 0), i([P(cc.Label)], t.prototype, "CurrentRankValue", void 0), i([P(cc.Label)], t.prototype, "RewardTitle", void 0), i([P(cc.Node)], t.prototype, "RewardContaienr", void 0), i([P(cc.Label)], t.prototype, "RewardNoneTip", void 0), i([P(cc.Label)], t.prototype, "LevelTagLabel", void 0), i([P(cc.Label)], t.prototype, "RewardTagLabel", void 0), i([P(cc.Label)], t.prototype, "AttrTagLabel", void 0), i([P(y.default)], t.prototype, "LevelCustomLayout", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([P(cc.Label)], t.prototype, "AddtionTip", void 0), n = i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ActivityHeroTestBattleLevelComponent": "ActivityHeroTestBattleLevelComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent"
    }],
    ActivityJumpBtnComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6a8c0Y1ym9PSb4OHrWMml9v", "ActivityJumpBtnComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Components/DataCenter"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./ActivityBaseContent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Name = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on("click", this.OnActivityJumpClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off("click", this.OnActivityJumpClick, this)
                }, t.prototype.Init = function(e, t) {
                    var n = e.split(":"),
                        o = n[0];
                    this._activityConfig = p.DataCenter.Instance.ActivityNameMap[o], this._jumpParam = n[1], this._iconPath = t, this.SetName(), this.SetIcon()
                }, t.prototype.SetName = function() {
                    this._activityConfig && (this.Name.string = this._activityConfig.Common.Title)
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._iconPath ? [4, u.default.LoadActivityTexture(this._iconPath)] : [2];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._loadAssets.push(e), this.Icon.spriteFrame = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.OnActivityJumpClick = function() {
                    if (!this._activityConfig) return d.UIUtlity.ShowFloatingHint("activity_not_have".ToUILocale());
                    this._activityConfig.Common.Type == c.ActivityType.ExchangeShop && this._jumpParam ? h.default.OpenActivityPanel(this._activityConfig._id, this._jumpParam) : h.default.OpenActivityPanel(this._activityConfig._id)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([g(cc.Sprite)], t.prototype, "Icon", void 0), i([g(cc.Label)], t.prototype, "Name", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ActivityBaseContent": "ActivityBaseContent"
    }],
    ActivityKoiGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "33128YwTkpO5aBbWgCqHMYL", "ActivityKoiGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../../Consts/Etc"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../Channel/ChannelManager"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleIcon = null, t.RuleButton = null, t.RewardButton = null, t.RewardButtonLabel = null, t.RoundLabel = null, t.RankLabel = null, t.PlayerNameArray = [], t.NextTimeRichText = null, t.NextTimeTip = null, t.ItemNodeArray = [], t.ItemLayoutNode = null, t.RewardLabel = null, t.PlayerCountTip = null, t.RewardTip = null, t.ItemIcon = null, t.ItemCount = null, t.LeftTimeRichText = null, t.GiftNode = null, t.GiftPackItemContainer = null, t.OrangeButtonLabel = null, t.OrangeButton = null, t.AttainLabel = null, t.AttainValue = null, t.SellOutTag = null, t.SellOutTagLabel = null, t.DiscountValue = null, t.LoackLabel = null, t.ReturnButton = null, t._itemComponentArray = [], t._giftItemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CommonPanel/SubItems/CommonGiftPackComponent", cc.Prefab), n = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset(p.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/koiTitle"), cc.SpriteFrame), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._giftPrefab = e[0], r._itemPrefab = e[1], r._titleIcon = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RewardButtonLabel.string = "recharge_feedback_free".ToUILocale(), this.RankLabel.string = "ActivityKoi_RankTag".ToUILocale(), this.RewardLabel.string = "ActivityKoi_Reward".ToUILocale(), this.SellOutTagLabel.string = "sellout".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.OrangeButton.node.on("click", this.OnPurchaseButtonClick, this), this.TitleIcon.spriteFrame = this._titleIcon
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n], this.SetGiftConfigMap(), this.RefreshCurrentRound()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._playerModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), t || (this.SetLeftTime(), this.schedule(this.SetLeftTime, 1), this.SetRoundShow()), this.RewardButton.node.active = !this._playerModel.DailyRewards, this.SetGiftNode(), this.SetRedDot()
                }, t.prototype.SetGiftConfigMap = function() {
                    var e = this;
                    this._giftConfigMap = {}, this._activityConfig._Packs.forEach(function(t) {
                        e._giftConfigMap[t.Id] = t
                    })
                }, t.prototype.RefreshCurrentRound = function() {
                    this._startDays = h.default.Instance.ComputeContiuousTime(this._activityConfig.Common);
                    var e = Math.floor(this._startDays / 2);
                    this._currentRound = e >= this._activityConfig.Issues.length ? this._activityConfig.Issues[this._activityConfig.Issues.length - 1] : this._activityConfig.Issues[e]
                }, t.prototype.SetRoundShow = function() {
                    var e = this;
                    if (this.RoundLabel.string = "ActivityKoi_Round".ToUILocale().Fmt(this._currentRound.Id), this.PlayerCountTip.string = "ActivityKoi_Player_Count_Tip".ToUILocale().Fmt(this._currentRound.Num), this.RewardTip.string = "ActivityKoi_Reward_Tip".ToUILocale(), this.ItemCount.string = "x" + this._currentRound.LowRewards[0].Items[1], this.SetItemIcon(), this.SetBigReward(), this.NextTimeRichText.node.active = !0, this.LeftTimeRichText.node.parent.active = this._startDays != this._activityConfig.Common.Duration, this._startDays % 2 == 1) this.PlayerNameArray[0].string = "rank_no_people".ToUILocale(), this.NextTimeTip.string = "ActivityKoi_NextTime_Tip_1".ToUILocale();
                    else {
                        var t = new u.Req_Activity_SuperKoiGetWinners;
                        t.ActivityId = this._activityConfig._id, t.Issue = this._startDays / 2, p.RpcComponent.Instance.Call(t, function(t) {
                            if (t.Winners.length > 0) {
                                for (var n = 0; n < t.Winners.length; n++) e.PlayerNameArray[n].string = t.Winners[n].Name;
                                e.NextTimeTip.string = "ActivityKoi_NextTime_Tip_2".ToUILocale()
                            } else e.PlayerNameArray[0].string = "rank_no_people".ToUILocale(), e.NextTimeRichText.node.active = !1, e.NextTimeTip.string = "ActivityKoi_NextTime_Tip_3".ToUILocale()
                        })
                    }
                }, t.prototype.SetItemIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = h.default.Instance.GetItemPathById(this._currentRound.LowRewards[0].Items[0]), [4, this.LoadDynamicAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this.ItemIcon.spriteFrame = t, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetBigReward = function() {
                    this.ItemLayoutNode.y = this._currentRound.Rewards.length > 2 ? -100 : 0, this.ItemNodeArray.forEach(function(e) {
                        e.parent.active = !1
                    });
                    for (var e = 0; e < this._currentRound.Rewards.length; e++) {
                        var t = this._itemComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.ItemNodeArray[e]), n.y = -35, n.x = -10, t = n.getComponent(f.ItemComponent), this._itemComponentArray[e] = t
                        }
                        this.ItemNodeArray[e].parent.active = !0;
                        var o = this._currentRound.Rewards[e].Items;
                        t.Init({
                            ItemId: o[0],
                            Count: o[1]
                        })
                    }
                }, t.prototype.SetGiftNode = function() {
                    for (var e = 1e3 + this._currentRound.Id, t = this._giftConfigMap[e], n = 0; n < this._giftConfigMap[e].Items.length; n++) {
                        var o = this._giftItemComponents[n];
                        if (!o) {
                            var r = cc.instantiate(this._itemPrefab);
                            r.setParent(this.GiftPackItemContainer), o = r.getComponent(f.ItemComponent), this._giftItemComponents[n] = o
                        }
                        o.node.active = !0;
                        var i = t.Items[n].Items;
                        o.Init({
                            ItemId: i[0],
                            Count: i[1]
                        })
                    }
                    if (t.Items.length < this._giftItemComponents.length)
                        for (n = t.Items.length; n < this._giftItemComponents.length; n++) this._giftItemComponents[n].node.active = !1;
                    if (null != t.Discount && t.Discount > 0 ? (this.DiscountValue.node.parent.active = !0, this.DiscountValue.string = "disCount_greatValue".ToUILocale().Fmt(t.Discount + "%")) : this.DiscountValue.node.parent.active = !1, this.SellOutTag.active = !1, this.OrangeButton.node.active = !0, this.AttainLabel.node.parent.active = !0, this._playerModel.Packs[e].Items[0] && t.LimitCount && this._playerModel.Packs[e].Items[0] >= t.LimitCount) this.SellOutTag.active = !0, this.OrangeButton.node.active = !1, this.AttainLabel.node.parent.active = !1;
                    else {
                        var a = I.default.Instance.ExchangeMoney(t.Money);
                        a <= 0 ? (this.OrangeButtonLabel.string = "shop_buyFree".ToUILocale(), this.AttainValue.string = "x" + t.VipPoint, this.AttainLabel.node.parent.active = !1, this.OrangeButton.node.y = -92) : (this.OrangeButtonLabel.string = I.default.Instance.CurrencySymbol + a, this.AttainValue.string = "x" + t.VipPoint, this.AttainLabel.node.parent.active = !0, this.OrangeButton.node.y = -117)
                    }
                }, t.prototype.SetRedDot = function() {
                    m.RedDotManager.Instance.BindInstance(this.RewardButton.node, m.RedDotManager.Instance.InstanceRedDot.KoiGiftDailyReward, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.SetLeftTime = function() {
                    if (h.default.Instance.ComputeDeadTime(this._activityConfig.Common) - p.RpcComponent.Instance.ServerTime < 0) l.UIManager.Instance.BackUIPanel();
                    else {
                        var e = h.default.Get23ClockTs(p.RpcComponent.Instance.ServerTime) + g.Etc.HourDuration - p.RpcComponent.Instance.ServerTime;
                        e <= 0 && (this.RefreshCurrentRound(), this.SetRoundShow());
                        var t = h.default.ActivityTimeLeftFormat(e);
                        this.NextTimeRichText.string = t, this._startDays % 2 == 1 ? this.LeftTimeRichText.string = "ActivityKoi_LeftTime_Tip_1".ToUILocale().Fmt(t) : this._startDays != this._activityConfig.Common.Duration && (this.LeftTimeRichText.string = "ActivityKoi_LeftTime_Tip_2".ToUILocale().Fmt(t))
                    }
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "ActivityKoi_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["ActivityKoi_Rule_Content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnRewardButtonClick = function() {
                    if (this._playerModel.DailyRewards) c.UIUtlity.ShowFloatingHint("ActivityPurchase_DailyReward_Tip".ToUILocale());
                    else {
                        var e = new u.Req_Activity_CommonDailyRewards;
                        e.ActivityId = this._activityConfig._id, p.RpcComponent.Instance.Call(e, function(e) {
                            c.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnPurchaseButtonClick = function() {
                    if (this._startDays % 2 != 0) {
                        var e = 1e3 + this._currentRound.Id,
                            t = this._giftConfigMap[e];
                        h.default.RequestBuyActivityGift(this._playerModel.Packs[t.Id].Items[0], t, this._activityConfig._id)
                    } else c.UIUtlity.ShowFloatingHint("ActivityKoi_Gift_Buy_Tip".ToUILocale())
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = t.getComponent(f.ItemComponent); - 1 == this._itemComponentArray.indexOf(n) && t.parent != this.GiftPackItemContainer || c.UIUtlity.ShowItemTip(n.ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([v(cc.Sprite)], t.prototype, "TitleIcon", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Button)], t.prototype, "RewardButton", void 0), i([v(cc.Label)], t.prototype, "RewardButtonLabel", void 0), i([v(cc.Label)], t.prototype, "RoundLabel", void 0), i([v(cc.Label)], t.prototype, "RankLabel", void 0), i([v([cc.Label])], t.prototype, "PlayerNameArray", void 0), i([v(cc.RichText)], t.prototype, "NextTimeRichText", void 0), i([v(cc.Label)], t.prototype, "NextTimeTip", void 0), i([v([cc.Node])], t.prototype, "ItemNodeArray", void 0), i([v(cc.Node)], t.prototype, "ItemLayoutNode", void 0), i([v(cc.Label)], t.prototype, "RewardLabel", void 0), i([v(cc.RichText)], t.prototype, "PlayerCountTip", void 0), i([v(cc.RichText)], t.prototype, "RewardTip", void 0), i([v(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([v(cc.Label)], t.prototype, "ItemCount", void 0), i([v(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([v(cc.Node)], t.prototype, "GiftNode", void 0), i([v(cc.Node)], t.prototype, "GiftPackItemContainer", void 0), i([v(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([v(cc.Button)], t.prototype, "OrangeButton", void 0), i([v(cc.Label)], t.prototype, "AttainLabel", void 0), i([v(cc.Label)], t.prototype, "AttainValue", void 0), i([v(cc.Node)], t.prototype, "SellOutTag", void 0), i([v(cc.Label)], t.prototype, "SellOutTagLabel", void 0), i([v(cc.Label)], t.prototype, "DiscountValue", void 0), i([v(cc.Label)], t.prototype, "LoackLabel", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([C], t)
            }(l.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityLuckyBagPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4371bw9yglA8YiTVmKp5nnt", "ActivityLuckyBagPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ItemComponent"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Components/LuckyBagComponent"),
            _ = e("../../Components/Components"),
            C = e("../../../../Proto/Static/ConfigProto"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Components/LuckyValueTip"),
            S = e("../../../Consts/Etc"),
            w = e("../Components/CustomProgressBar"),
            P = e("../Components/SectorProgressBar");
        (function(e) {
            e[e.Hero = 1] = "Hero", e[e.Skin = 2] = "Skin", e[e.Personality = 3] = "Personality"
        })(l || (l = {}));
        var A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.BottomBg = null, t.Title = null, t.LeftTime = null, t.RuleButton = null, t.RateButton = null, t.RateButtonLabel = null, t.HeroNode = null, t.TreasureBoxButton = null, t.TreasureBoxName = null, t.TreasureBoxIcon = null, t.TreasureBoxSpine = null, t.TreasureBoxLevel = null, t.TreasureBoxProgressBar = null, t.TreasureBoxProgressLabel = null, t.LuckyBagComponentContainer = [], t.LuckyBagOpenButtonsNode = [], t.AccumulatedChargeNode = null, t.AccumulatedChargeTitle = null, t.NextLevelRewardTitle = null, t.NextLevelRewardContainer = null, t.AccumulatedChargeTip = null, t.SectorProgressBar = null, t.GetButton = null, t.GetButtonLabel = null, t.UnGetButton = null, t.UnGetButtonLabel = null, t.FlyItemContainer = null, t.FlyItemEndNode = null, t.ChargeCompletedLabel = null, t.TicketGiftButton = null, t.TicketGiftButtonLabel = null, t.ReturnButton = null, t.UnTouchMaskNode = null, t.LUCKY_BAG_SPINE_NAME = ["Ani_UI_effect_FD_putongfudai", "Ani_UI_effect_FD_gaojifudai", "Ani_UI_effect_FD_jinlifudai"], t.TREASURE_BOX_SPINE_NAME = "Ani_UI_effect_FD_ruyibaoxiang", t._nextRewardComponentArray = [], t._flyItemArray = [], t._tipIndex = 0, t._tipComponentArray = [], t._isLoadAvatar = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    g.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    g.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), cc.Tween.stopAllByTag(f.PanelConfig.ActivityLuckyBagPanel.Id)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ActivityLuckyBagPanel/PNG/LuckyBagAtlas", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._luckyBagAtlas = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "Activity_LuckyBag_Title".ToUILocale(), this.RateButtonLabel.string = "showRate".ToUILocale(), this.TreasureBoxName.string = "Activity_LuckyBag_TreasureBox_Name".ToUILocale(), this.AccumulatedChargeTitle.string = "Activity_LuckyBag_AccumulatedCharge_NextReward_Title".ToUILocale(), this.NextLevelRewardTitle.string = "Activity_LuckyBag_AccumulatedCharge_Title".ToUILocale(), this.AccumulatedChargeTip.string = "Activity_LuckyBag_AccumulatedCharge_Tip".ToUILocale(), this.GetButtonLabel.string = "receive".ToUILocale(), this.UnGetButtonLabel.string = "receive".ToUILocale(), this.TicketGiftButtonLabel.string = "Activity_LuckyBag_TicketGift".ToUILocale(), this.ChargeCompletedLabel.string = "Activity_LuckyBag_AccumulatedCharge_AllReceive".ToUILocale(), this.SectorProgressBar.SetName("Activity_LuckyBag_AccumulatedCharge_Value".ToUILocale()), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.RateButton.node.on("click", this.OnRateButtonClick, this), this.TicketGiftButton.node.on("click", this.OnTicketGiftButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.TreasureBoxButton.node.on("click", this.OnTreasureBoxButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this), this.UnGetButton.node.on("click", this.OnUnGetButtonClick, this), this.SectorProgressBar.node.on(cc.Node.EventType.TOUCH_END, this.OnAccumulatedChargeButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n], this.SetSummonXpGroup()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    if (this._isLoadAvatar) return [2];
                                    switch (e = "", t = this._activityConfig.CustomPart.Person[1], this._activityConfig.CustomPart.Person[0]) {
                                        case l.Hero:
                                            n = _.ConfigDataComponent.Instance.GetConfigById(C.HeroBase_Config, t), e = n.UIAvatar + "/Avatar";
                                            break;
                                        case l.Skin:
                                            o = _.ConfigDataComponent.Instance.GetConfigById(C.HeroSkin_Config, t), e = o.UIAvatar + "/Avatar";
                                            break;
                                        case l.Personality:
                                            e = "AdultPicture" + t + "/Avatar"
                                    }
                                    return [4, this.LoadDynamicAsset(e, cc.Prefab)];
                                case 1:
                                    return r = a.sent(), this.isValid ? (this._isLoadAvatar = !0, (i = cc.instantiate(r)).setParent(this.HeroNode), n && h.default.Instance.SetHeroAvatarSkin(i, n.Id, n.StarLevel), [2]) : (c.AssetsManager.Instance.UnloadAsset(r), [2])
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)), this._playerModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), this.SetLuckyBag(), this.SetTreasureBox(), this.SetAccumulatedChargePart(), this.SetRedDot()
                }, t.prototype.SetLuckyTip = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this._tipPrefab ? [3, 2] : (o = this, [4, this.LoadDynamicAsset("ActivityLuckyBagPanel/Components/LuckyValueTip", cc.Prefab)]);
                                case 1:
                                    if (o._tipPrefab = a.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._tipPrefab), [2];
                                    a.label = 2;
                                case 2:
                                    return (r = this._tipComponentArray[this._tipIndex % 3]) || ((i = cc.instantiate(this._tipPrefab)).setParent(this.node), r = i.getComponent(b.default), this._tipComponentArray.push(r)), r.Init("Activity_LuckyBag_LuckyTip".ToUILocale().Fmt(this._summonXpGroup[e] * t), "Activity_LuckyBag_LuckyPreTip".ToUILocale()), this._tipIndex++, this.SetFlyItemArray(n), [2]
                            }
                        })
                    })
                }, t.prototype.SetUnTouchMaskNode = function() {
                    var e = this;
                    this.UnTouchMaskNode.active = !0, this.scheduleOnce(function() {
                        e.UnTouchMaskNode.active = !1
                    }, 2)
                }, t.prototype.SetRedDot = function() {
                    v.RedDotManager.Instance.BindInstance(this.LuckyBagOpenButtonsNode[0], v.RedDotManager.Instance.InstanceRedDot.CommonLuckyBagNode, {
                        Value1: this._activityConfig._id
                    }), v.RedDotManager.Instance.BindInstance(this.LuckyBagOpenButtonsNode[1], v.RedDotManager.Instance.InstanceRedDot.HighLuckyBagNode, {
                        Value1: this._activityConfig._id
                    }), v.RedDotManager.Instance.BindInstance(this.LuckyBagOpenButtonsNode[2], v.RedDotManager.Instance.InstanceRedDot.SpecialLuckyBagNode, {
                        Value1: this._activityConfig._id
                    }), v.RedDotManager.Instance.BindInstance(this.SectorProgressBar.node, v.RedDotManager.Instance.InstanceRedDot.AccumulatedChargeNode, {
                        Value1: this._activityConfig._id
                    }), v.RedDotManager.Instance.BindInstance(this.GetButton.node, v.RedDotManager.Instance.InstanceRedDot.AccumulatedGetNode, {
                        Value1: this._activityConfig._id
                    }), v.RedDotManager.Instance.BindInstance(this.TreasureBoxIcon.node, v.RedDotManager.Instance.InstanceRedDot.TreasureBoxNode, {
                        Value1: this._activityConfig._id
                    }, -25, -25)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "Activity_LuckyBag_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["Activity_LuckyBag_Rule_Content".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnRateButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(f.PanelConfig.LuckyBagRatePanel.Path, this._activityConfig)
                }, t.prototype.OnTicketGiftButtonClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: h.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[0],
                            Title: "Activity_LuckyBag_TicketGift".ToUILocale()
                        };
                    c.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnReturnButtonClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnTreasureBoxButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(f.PanelConfig.LuckyBagTreasureBoxPanel.Path, this._activityConfig, this._luckyBagAtlas, this.TreasureBoxLevel.string, this.TreasureBoxProgressLabel.string, this.TreasureBoxProgressBar.progress)
                }, t.prototype.OnAccumulatedChargeButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(f.PanelConfig.LuckyBagAccumulatedChargePanel.Path, this._activityConfig)
                }, t.prototype.OnGetButtonClick = function() {
                    var e = new u.Req_Activity_CommonTaskReward;
                    e.ActivityId = this._activityConfig._id, e.TaskIds = this._completedTaskIdArray, p.RpcComponent.Instance.Call(e, this.ResponseRewardSuccess.bind(this))
                }, t.prototype.ResponseRewardSuccess = function(e) {
                    d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.OnUnGetButtonClick = function() {
                    d.UIUtlity.ShowFloatingHint("Activity_LuckyBag_UnGetButton_Tip".ToUILocale())
                }, t.prototype.SetSummonXpGroup = function() {
                    this._summonXpGroup = {};
                    for (var e = 0; e < this._activityConfig.CustomPart.LuckyBagXp.length; e++) {
                        var t = this._activityConfig.CustomPart.LuckyBagXp[e];
                        this._summonXpGroup[t.Items[0]] = t.Items[1]
                    }
                }, t.prototype.SetDeadLine = function() {
                    var e = h.default.Instance.ComputeDeadTime(this._activityConfig.Common) - p.RpcComponent.Instance.ServerTime;
                    e < 0 ? c.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "Activity_LuckyBag_LeftTime".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetLuckyBag = function() {
                    for (var e = 0; e < this.LuckyBagComponentContainer.length; e++) this.LuckyBagComponentContainer[e].Init(this._activityConfig, this._activityConfig.__CommonSummon[e], e, this.LUCKY_BAG_SPINE_NAME[e], this)
                }, t.prototype.SetTreasureBox = function() {
                    var e = this._activityConfig.Levels[this._activityConfig.Levels.length - 1],
                        t = this._playerModel.IntArray[0],
                        n = 0;
                    if (t > e.Xp) {
                        var o = e.Xp - this._activityConfig.Levels[this._activityConfig.Levels.length - 2].Xp;
                        return this.TreasureBoxProgressLabel.string = o + "/" + o, this.TreasureBoxProgressBar.progress = 1, this.TreasureBoxLevel.string = "allianceBase_level".ToUILocale().Fmt(e.Id), this._playerModel.IntArray[1] < e.Id && (n = 1), void this.SetTreasureBoxSpine(n)
                    }
                    for (var r = this._playerModel.IntArray[1]; r < this._activityConfig.Levels.length; r++) {
                        var i = this._activityConfig.Levels[r];
                        if (t >= i.Xp && n++, t <= i.Xp) {
                            var a = 0 == r ? 0 : this._activityConfig.Levels[r - 1].Xp;
                            this.TreasureBoxProgressLabel.string = t - a + "/" + (i.Xp - a), this.TreasureBoxProgressBar.progress = (t - a) / (i.Xp - a), this.TreasureBoxLevel.string = "allianceBase_level".ToUILocale().Fmt(i.Id - 1);
                            break
                        }
                    }
                    this.SetTreasureBoxSpine(n)
                }, t.prototype.SetTreasureBoxSpine = function(e) {
                    e > 0 ? (this.TreasureBoxSpine.node.active = !0, this.TreasureBoxSpine.setAnimation(0, this.TREASURE_BOX_SPINE_NAME, !0)) : this.TreasureBoxSpine.node.active = !1
                }, t.prototype.SetAccumulatedChargePart = function() {
                    if (this.AccumulatedChargeNode.active = this._activityConfig._Tasks.length > 0, 0 != this._activityConfig._Tasks.length) {
                        this._completedTaskIdArray = [];
                        for (var e = 0, t = !1, n = 0; n < this._activityConfig._Tasks.length; n++) {
                            var o = this._activityConfig._Tasks[n],
                                r = this.GetTaskModel(o.Id),
                                i = null == r || null == r.Progress ? 0 : r.Progress;
                            (!t && i < o.TotalCount || n == this._activityConfig._Tasks.length - 1 && i == o.TotalCount) && (t = !0, this.SectorProgressBar.SetValue(i, o.TotalCount), this.SetReward(o.Rewards)), i >= o.TotalCount && !r.IsCompleted ? this._completedTaskIdArray.push(o.Id) : i < o.TotalCount && e++
                        }
                        this.GetButton.node.active = this._completedTaskIdArray.length > 0, this.UnGetButton.node.active = 0 == this._completedTaskIdArray.length && e > 0, this.ChargeCompletedLabel.node.active = 0 == this._completedTaskIdArray.length && 0 == e
                    }
                }, t.prototype.GetTaskModel = function(e) {
                    return p.DataCenter.Instance.GetDataById(u.UserTask_Model, this._activityConfig._id * S.Etc.Multiplier + e)
                }, t.prototype.SetReward = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        var n = this._nextRewardComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(this.NextLevelRewardContainer), n = o.getComponent(y.ItemComponent), this._nextRewardComponentArray[t] = n
                        }
                        n.node.active = !0;
                        var r = e[t];
                        n.node.name = r.Items[0].toString(), n.Init({
                            ItemId: r.Items[0],
                            Count: r.Items[1]
                        })
                    }
                    if (e.length < this._nextRewardComponentArray.length)
                        for (t = e.length; t < this._nextRewardComponentArray.length; t++) this._nextRewardComponentArray[t].node.active = !1
                }, t.prototype.SetFlyItemArray = function(e) {
                    for (var t = 5 * (e + 1), n = 0; n < t; n++) {
                        var o = this._flyItemArray[n];
                        o || ((o = new cc.Node).setParent(this.FlyItemContainer), o.addComponent(cc.Sprite).spriteFrame = this._luckyBagAtlas.getSpriteFrame("LuckeyCoin"), o.width = 64, o.height = 64, this._flyItemArray[n] = o, o.active = !1), o.position = this.LuckyBagComponentContainer[e].node.position.add(new cc.Vec3(Math.round(90 * (2 * Math.random() - 1)), 150 + Math.round(25 * Math.random()), 0)), this.SetFlyItemTween(o, n)
                    }
                }, t.prototype.SetFlyItemTween = function(e, t) {
                    cc.tween(e).tag(f.PanelConfig.ActivityLuckyBagPanel.Id).delay(.06 * t).call(function() {
                        e.active = !0
                    }).to(.3, {
                        position: this.FlyItemEndNode.position
                    }, {
                        easing: "sineIn"
                    }).call(function() {
                        e.active = !1
                    }).start()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.NextLevelRewardContainer.children.indexOf(t) && d.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([R(cc.Sprite)], t.prototype, "BottomBg", void 0), i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.RichText)], t.prototype, "LeftTime", void 0), i([R(cc.Button)], t.prototype, "RuleButton", void 0), i([R(cc.Button)], t.prototype, "RateButton", void 0), i([R(cc.Label)], t.prototype, "RateButtonLabel", void 0), i([R(cc.Node)], t.prototype, "HeroNode", void 0), i([R(cc.Button)], t.prototype, "TreasureBoxButton", void 0), i([R(cc.Label)], t.prototype, "TreasureBoxName", void 0), i([R(cc.Sprite)], t.prototype, "TreasureBoxIcon", void 0), i([R(sp.Skeleton)], t.prototype, "TreasureBoxSpine", void 0), i([R(cc.Label)], t.prototype, "TreasureBoxLevel", void 0), i([R(w.default)], t.prototype, "TreasureBoxProgressBar", void 0), i([R(cc.Label)], t.prototype, "TreasureBoxProgressLabel", void 0), i([R([I.default])], t.prototype, "LuckyBagComponentContainer", void 0), i([R([cc.Node])], t.prototype, "LuckyBagOpenButtonsNode", void 0), i([R(cc.Node)], t.prototype, "AccumulatedChargeNode", void 0), i([R(cc.Label)], t.prototype, "AccumulatedChargeTitle", void 0), i([R(cc.Label)], t.prototype, "NextLevelRewardTitle", void 0), i([R(cc.Node)], t.prototype, "NextLevelRewardContainer", void 0), i([R(cc.Label)], t.prototype, "AccumulatedChargeTip", void 0), i([R(P.default)], t.prototype, "SectorProgressBar", void 0), i([R(cc.Button)], t.prototype, "GetButton", void 0), i([R(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([R(cc.Button)], t.prototype, "UnGetButton", void 0), i([R(cc.Label)], t.prototype, "UnGetButtonLabel", void 0), i([R(cc.Node)], t.prototype, "FlyItemContainer", void 0), i([R(cc.Node)], t.prototype, "FlyItemEndNode", void 0), i([R(cc.Label)], t.prototype, "ChargeCompletedLabel", void 0), i([R(cc.Button)], t.prototype, "TicketGiftButton", void 0), i([R(cc.Label)], t.prototype, "TicketGiftButtonLabel", void 0), i([R(cc.Button)], t.prototype, "ReturnButton", void 0), i([R(cc.Node)], t.prototype, "UnTouchMaskNode", void 0), i([T], t)
            }(c.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyBagComponent": "LuckyBagComponent",
        "../Components/LuckyValueTip": "LuckyValueTip",
        "../Components/SectorProgressBar": "SectorProgressBar"
    }],
    ActivityLuckyCakePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7bb96hB7IlD/K01rVWPCHBt", "ActivityLuckyCakePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Components/LuckyCakeRewardItem"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../../Auxiliary/GameRecord"),
            I = e("./BuyAndSellItemPanel"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RoundTag = null, t.LeftTime = null, t.CurrencyBarItem = null, t.RuleButton = null, t.TaskButton = null, t.TaskButtonLabel = null, t.GiftButton = null, t.GiftButtonLabel = null, t.RewardButton = null, t.RewardButtonLabel = null, t.RewardPreviewButton = null, t.RewardPreviewButtonLabel = null, t.RewardLayerArray = [], t.CakeSpine = null, t.GetButton = null, t.GetButtonLabel = null, t.SelectToggle = null, t.SelectTip = null, t.ReturnButton = null, t.MaskNode = null, t._rewardComponentArray = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ActivityLuckyCakePanel/Components/LuckyCakeRewardItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._rewardPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ActivityLuckyCake_Title".ToUILocale(), this.TaskButtonLabel.string = "btn_task".ToUILocale(), this.GiftButtonLabel.string = "timeLimited_gift".ToUILocale(), this.RewardButtonLabel.string = "recharge_feedback_free".ToUILocale(), this.RewardPreviewButtonLabel.string = "rewards_preview".ToUILocale(), this.GetButtonLabel.string = "ActivityLuckyCake_Eat".ToUILocale(), this.SelectTip.string = "sail_skip".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.RewardPreviewButton.node.on("click", this.OnRewardPreviewButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this), this.SelectToggle.node.on("toggle", this.OnToggleClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n], this.SetDataMap()
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        this.SetLeftTime(), this.schedule(this.SetLeftTime, 1);
                        var n = m.default.GetItem(m.GameRecordDefine.LuckyCakeSkipAni);
                        n && (n = JSON.parse(n), this.SelectToggle.isChecked = n)
                    }
                    this._playerModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), this._currentTurn = this._playerModel.IntArray[0] ? this._playerModel.IntArray[0] : 0, this.GetButton.node.active = this._currentTurn != this._activityConfig.__Turn.length, this.RoundTag.string = this._currentTurn == this._activityConfig.__Turn.length ? "ActivityLuckyCake_Round".ToUILocale().Fmt(this._currentTurn) : "ActivityLuckyCake_Round".ToUILocale().Fmt(this._currentTurn + 1), this.CurrencyBarItem.Init(this._activityConfig.CustomPart.ItemId), this.RewardButton.node.active = !this._playerModel.DailyRewards, this.SetRewardContainer(), this.SetRedDot()
                }, t.prototype.SetDataMap = function() {
                    var e = this;
                    this._rewardConfigMap = {}, this._activityConfig.__Rewards.forEach(function(t) {
                        e._rewardConfigMap[t.Id] = t
                    })
                }, t.prototype.SetRewardContainer = function() {
                    var e, t;
                    this._remainCount = 0, this._currentTurn == this._activityConfig.__Turn.length ? t = (e = this._activityConfig.__Turn[this._currentTurn - 1].RewardId).length : (e = this._activityConfig.__Turn[this._currentTurn].RewardId, t = this._playerModel.IntArray[1] ? this._playerModel.IntArray[1] : 0);
                    for (var n = 0; n < e.length; n++) {
                        var o = this._rewardConfigMap[e[n]];
                        this._rewardComponentArray[n] || (this._rewardComponentArray[n] = []);
                        for (var r = this._playerModel.Int2DArray[n] ? this._playerModel.Int2DArray[n].Items : [], i = 0; i < o.Rewards.length; i++) {
                            var a = this._rewardComponentArray[n][i];
                            if (!a) {
                                var s = cc.instantiate(this._rewardPrefab);
                                s.setParent(this.RewardLayerArray[n]), a = s.getComponent(y.default), this._rewardComponentArray[n][i] = a
                            }
                            var l = t > n || t == n && r.includes(i);
                            a.Init(o.Rewards[i].Items, l, this._itemPrefab), l || this._remainCount++
                        }
                    }
                }, t.prototype.SetLeftTime = function() {
                    var e = f.default.Instance.ComputeDeadTime(this._activityConfig.Common) - p.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "Activity_Story_LeftTime".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetRedDot = function() {
                    g.RedDotManager.Instance.BindInstance(this.RewardButton.node, g.RedDotManager.Instance.InstanceRedDot.LuckyCakeFreeRewardNode, {
                        Value1: this._activityConfig._id
                    }), g.RedDotManager.Instance.BindInstance(this.TaskButton.node, g.RedDotManager.Instance.InstanceRedDot.LuckyCakeTaskNode, {
                        Value1: this._activityConfig._id
                    }), g.RedDotManager.Instance.BindInstance(this.GetButton.node, g.RedDotManager.Instance.InstanceRedDot.LuckyCakeEatButtonNode, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "Activity_LuckyCake_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["Activity_LuckyCake_Rule_Content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = this;
                    this._taskArray || (this._taskArray = [], this._taskArray[0] = {
                        Tasks: [],
                        IsActivity: !0,
                        Title: "task_tab_2".ToUILocale(),
                        Reddot: g.RedDotManager.Instance.InstanceRedDot.LuckyCakeTaskDailyToggle,
                        ActivityId: this._activityConfig._id
                    }, this._taskArray[1] = {
                        Tasks: [],
                        IsActivity: !0,
                        Title: "task_tab_5".ToUILocale(),
                        Reddot: g.RedDotManager.Instance.InstanceRedDot.LuckyCakeTaskTotalToggle,
                        ActivityId: this._activityConfig._id
                    }, this._activityConfig._Tasks.forEach(function(t) {
                        t.IsDaily ? e._taskArray[0].Tasks.push(t) : e._taskArray[1].Tasks.push(t)
                    })), l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonTaskPanel.Path, this._taskArray)
                }, t.prototype.OnGiftButtonClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: f.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[0],
                            Title: "timeLimited_gift".ToUILocale()
                        };
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnRewardButtonClick = function() {
                    if (this._playerModel.DailyRewards) c.UIUtlity.ShowFloatingHint("ActivityPurchase_DailyReward_Tip".ToUILocale());
                    else {
                        var e = new u.Req_Activity_CommonDailyRewards;
                        e.ActivityId = this._activityConfig._id, p.RpcComponent.Instance.Call(e, function(e) {
                            c.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnRewardPreviewButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityLuckyCakeRewardPreviewPanel.Path, this._activityConfig, this._rewardConfigMap)
                }, t.prototype.OnGetButtonClick = function() {
                    var e = p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.ItemId);
                    if (e <= 0) c.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activityConfig.CustomPart.ItemId.ToItemName()));
                    else {
                        var t = {};
                        t.UseItemId = this._activityConfig.CustomPart.ItemId, t.Title = "use".ToUILocale(), t.MaxCount = Math.min(e, this._remainCount), t.PerItemCount = 1, t.Callback = this.RequestLuckyCake.bind(this), l.UIManager.Instance.ShowUIPanel(h.PanelConfig.BuyAndSellItemPanel.Path, null, null, null, I.BuyAndSellType.Use, null, null, t)
                    }
                }, t.prototype.RequestLuckyCake = function(e) {
                    var t = this,
                        n = new u.Req_Activity_LuckyCakeDrawRewards;
                    n.ActivityId = this._activityConfig._id, n.Count = e, p.RpcComponent.Instance.Call(n, function(e) {
                        t.SelectToggle.isChecked ? c.UIUtlity.ShwDisplayRewardPanel(e.Rewards) : (t.CakeSpine.node.active = !0, t.MaskNode.active = !0, t.CakeSpine.setAnimation(0, "Ani_UI_Effect_xingyundangao", !1), t.CakeSpine.setCompleteListener(function() {
                            t.CakeSpine.node.active = !1, t.MaskNode.active = !1, c.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        }))
                    })
                }, t.prototype.OnToggleClick = function() {
                    m.default.SetItem(m.GameRecordDefine.LuckyCakeSkipAni, JSON.stringify(this.SelectToggle.isChecked))
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Label)], t.prototype, "RoundTag", void 0), i([v(cc.RichText)], t.prototype, "LeftTime", void 0), i([v(d.default)], t.prototype, "CurrencyBarItem", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Button)], t.prototype, "TaskButton", void 0), i([v(cc.Label)], t.prototype, "TaskButtonLabel", void 0), i([v(cc.Button)], t.prototype, "GiftButton", void 0), i([v(cc.Label)], t.prototype, "GiftButtonLabel", void 0), i([v(cc.Button)], t.prototype, "RewardButton", void 0), i([v(cc.Label)], t.prototype, "RewardButtonLabel", void 0), i([v(cc.Button)], t.prototype, "RewardPreviewButton", void 0), i([v(cc.Label)], t.prototype, "RewardPreviewButtonLabel", void 0), i([v([cc.Node])], t.prototype, "RewardLayerArray", void 0), i([v(sp.Skeleton)], t.prototype, "CakeSpine", void 0), i([v(cc.Button)], t.prototype, "GetButton", void 0), i([v(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([v(cc.Toggle)], t.prototype, "SelectToggle", void 0), i([v(cc.Label)], t.prototype, "SelectTip", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([v(cc.Node)], t.prototype, "MaskNode", void 0), i([C], t)
            }(l.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/LuckyCakeRewardItem": "LuckyCakeRewardItem",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel"
    }],
    ActivityLuckyCakeRewardPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5a777mcpxVMLK5ykY+V9lc2", "ActivityLuckyCakeRewardPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./LuckyCakeRewardPreviewListItem"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.PreviewListContaienr = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {}, t.prototype.onDisable = function() {}, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ActivityLuckyCakePanel/Components/LuckyCakeRewardPreviewListItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._previewPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "rewards_preview".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = t[0], this._rewardConfigMap = t[1], this.SetRewardDataArray()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetListContainer()
                }, t.prototype.SetRewardDataArray = function() {
                    this._rewardDataArray = {};
                    for (var e = 0; e < this._activityConfig.__Turn.length; e++) {
                        var t = this._activityConfig.__Turn[e];
                        this._rewardDataArray[e] = [];
                        for (var n = 0; n < t.RewardId.length; n++) {
                            var o = this._rewardConfigMap[t.RewardId[n]];
                            this._rewardDataArray[e].push(o.Rewards[0])
                        }
                        this._rewardDataArray[e].reverse()
                    }
                }, t.prototype.SetListContainer = function() {
                    for (var e = 0; e < this._activityConfig.__Turn.length; e++) {
                        var t = cc.instantiate(this._previewPrefab);
                        t.setParent(this.PreviewListContaienr), t.getComponent(u.default).Init(e + 1, this._rewardDataArray[e], this._itemPrefab)
                    }
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Node)], t.prototype, "PreviewListContaienr", void 0), i([d], t)
            }(l.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./LuckyCakeRewardPreviewListItem": "LuckyCakeRewardPreviewListItem"
    }],
    ActivityMagicComposePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d300cjf0c5EAb+wsdQxix6W", "ActivityMagicComposePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.MagicComposeSpineType = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/SliderComponent"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Components/MagicComposePotComponent"),
            m = e("../Components/ItemComponent"),
            I = e("../Components/MagicComposeMaterialComponent"),
            _ = e("../../../Consts/Etc"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../RedDot/RedDotManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.BottomPotSpine = 0] = "BottomPotSpine", e[e.TopPotSpine1 = 1] = "TopPotSpine1", e[e.TopPotSpine2 = 2] = "TopPotSpine2"
        })(n.MagicComposeSpineType || (n.MagicComposeSpineType = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.LeftTime = null, t.RuleButton = null, t.SlotContainer = null, t.ComposeGiftButton = null, t.ComposeGiftButtonLabel = null, t.ComposeTargetNode = null, t.ComposeMaterialContainer = null, t.ComposeTimeTip = null, t.SliderValueTip = null, t.SliderComponent = null, t.RecipeBagTitle = null, t.CustomLayout = null, t.ComposeButton = null, t.ComposeButtonLabel = null, t.ReturnButton = null, t._potComponentArray = [], t._composeMaterialComponentArray = [], t._reelItemComponentMap = {}, t._sliderValue = 1, t._spineDataArray = [], t._spinePathArray = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                l.Game.EventDispatcher.On(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(C.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
            }, t.prototype.onDisable = function() {
                l.Game.EventDispatcher.Off(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(C.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityMagicComposePanel/Components/MagicComposePotComponent", cc.Prefab), n = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("ActivityMagicComposePanel/Components/MagicComposeMaterialComponent", cc.Prefab), r = this.LoadDynamicAsset("ActivityMagicComposePanel/PNG/ActivityMagicComposeAtlas", cc.SpriteAtlas), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._potPrefab = e[0], i._itemPrefab = e[1], i._materialPrefab = e[2], i._atlas = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "ActivityMagicCompose_Title".ToUILocale(), this.ComposeGiftButtonLabel.string = "ActivityMagicCompose_Gift".ToUILocale(), this.RecipeBagTitle.string = "ActivityMagicCompose_RecipeBag_Title".ToUILocale(), this.ComposeButtonLabel.string = "ActivityMagicCompose_Compose".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ComposeGiftButton.node.on("click", this.OnComposeGiftButtonClick, this), this.ComposeButton.node.on("click", this.OnComposeButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this);
                var n = t[0];
                this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n], this.SetReelConfigMap(), this._spinePathArray = ["UI_Effect_hechengwancheng_2", "UI_Effect_hechengjinxingzhong", "UI_Effect_hechengwancheng"]
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._playerModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), t || (this.SetLeftTime(), this.schedule(this.SetLeftTime, 1), this.CustomLayout.Init(this._itemPrefab)), this.SetPotContainer(), this.SetComposeContainer(), this.SetBagContainer(), this.SetRedDot()
            }, t.prototype.SetReelConfigMap = function() {
                var e = this;
                this._reelConfigMap = {}, this._activityConfig.__Reel.forEach(function(t) {
                    e._reelConfigMap[t.Id] = t
                })
            }, t.prototype.SetLeftTime = function() {
                var e = y.default.Instance.ComputeDeadTime(this._activityConfig.Common) - p.RpcComponent.Instance.ServerTime;
                e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "Activity_Story_LeftTime".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(e))
            }, t.prototype.SetPotContainer = function() {
                for (var e = 0; e < this._activityConfig.__Slot.length; e++) {
                    var t = this._potComponentArray[e];
                    if (!t) {
                        var n = cc.instantiate(this._potPrefab);
                        n.setParent(this.SlotContainer), t = n.getComponent(g.default), this._potComponentArray[e] = t
                    }
                    var o = {};
                    o.slotConfig = this._activityConfig.__Slot[e], o.playerModel = this._playerModel, o.reduceValue = this._reduceValue, o.activityConfig = this._activityConfig, o.reelConfigMap = this._reelConfigMap, o.itemPrefab = this._itemPrefab, o.atlas = this._atlas, o.mainPanel = this, t.Init(o)
                }
            }, t.prototype.SetComposeContainer = function() {
                if (this.SetComposeMaterialContainer(), !this._selectReelId) return this.SliderComponent.SetUI(0, 0, 0, !0), this.SliderValueTip.string = "0", this.ComposeTimeTip.node.active = !1, void(this.ComposeTargetNode.active = !1);
                if (this.ComposeTargetNode.active = !0, !this._targetItemComponent) {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.ComposeTargetNode), this._targetItemComponent = e.getComponent(m.ItemComponent)
                }
                var t = this._reelConfigMap[this._selectReelId],
                    n = t.Product[0].Items;
                this._targetItemComponent.Init({
                    ItemId: n[0],
                    Count: n[1] * this._sliderValue
                }), this.ComposeTimeTip.node.active = !0;
                var o = t.Time * _.Etc.MinuteDuration * this._sliderValue;
                this.ComposeTimeTip.string = "ActivityMagicCompose_Compose_Time_Tip".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(o)), this.SliderComponent.SetUI(this._sliderValue, this._selectReelCount, 1, !0), this.SliderValueTip.string = this._sliderValue.toString()
            }, t.prototype.SetComposeMaterialContainer = function() {
                for (var e = this._selectReelId ? this._reelConfigMap[this._selectReelId].Cost.length : 3, t = 0; t < e; t++) {
                    var n = this._composeMaterialComponentArray[t];
                    if (!n) {
                        var o = cc.instantiate(this._materialPrefab);
                        o.setParent(this.ComposeMaterialContainer), n = o.getComponent(I.default), this._composeMaterialComponentArray[t] = n
                    }
                    if (n.node.active = !0, this._selectReelId) {
                        var r = this._reelConfigMap[this._selectReelId].Cost[t].Items;
                        n.Init(!0, r[0], r[1] * this._sliderValue, this._itemPrefab)
                    } else n.Init(!1)
                }
                if (e < this._composeMaterialComponentArray.length)
                    for (t = e; t < this._composeMaterialComponentArray.length; t++) this._composeMaterialComponentArray[t].node.active = !1
            }, t.prototype.SetBagContainer = function() {
                var e = this;
                this._showReelDataArray = [], this._activityConfig.__UncertifiedReel.forEach(function(t) {
                    var n = p.DataCenter.Instance.GetItemCount(t.Id),
                        o = [t.Id, n];
                    e._showReelDataArray.push(o)
                });
                var t = [];
                this._activityConfig.__Reel.forEach(function(e) {
                    var n = p.DataCenter.Instance.GetItemCount(e.Id);
                    if (n > 0) {
                        var o = [e.Id, n];
                        t.push(o)
                    }
                }), t.sort(this.SortReelData.bind(this)), this._showReelDataArray = this._showReelDataArray.concat(t), this.CustomLayout.RenderLayOut(this._showReelDataArray.length)
            }, t.prototype.SortReelData = function(e, t) {
                var n = this._reelConfigMap[e[0]],
                    o = this._reelConfigMap[t[0]],
                    r = this.GetReelCostEnoughState(n),
                    i = this.GetReelCostEnoughState(o);
                return r && !i ? -1 : !r && i ? 1 : n.SortId - o.SortId
            }, t.prototype.GetReelCostEnoughState = function(e) {
                for (var t = 0; t < e.Cost.length; t++) {
                    var n = e.Cost[t].Items,
                        o = n[0],
                        r = n[1] * this._sliderValue;
                    if (!p.DataCenter.Instance.IsItemEnough(o, r)) return !1
                }
                return !0
            }, t.prototype.SetRedDot = function() {
                v.RedDotManager.Instance.BindInstance(this.ComposeButton.node, v.RedDotManager.Instance.InstanceRedDot.MagicComposeCombineButton, {
                    Value1: this._activityConfig._id
                })
            }, t.prototype.GetPotSpine = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return t = this._spineDataArray[e], n = this._spinePathArray[e], t ? [3, 2] : [4, this.LoadDynamicAsset("ActivityMagicComposePanel/Spine/" + n, sp.SkeletonData)];
                            case 1:
                                if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                this._spineDataArray[e] = t, o.label = 2;
                            case 2:
                                return [2, t]
                        }
                    })
                })
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "ActivityMagicCompose_Rule_Name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["ActivityMagicCompose_Rule_Content".ToUILocale()]
                };
                c.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnComposeGiftButtonClick = function() {
                var e = this,
                    t = this._activityConfig.Common.Pictures;
                this._giftPackArray || (this._giftPackArray = [], this._activityConfig._Packs.forEach(function(t) {
                    -1 != e._activityConfig.CustomPart.CommonPackId.indexOf(t.Id) && e._giftPackArray.push(t)
                }));
                var n = {
                    ActivityId: this._activityConfig._id,
                    ActivityGiftPackData: this._giftPackArray,
                    Deadline: y.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                    BannerPath: t[0],
                    Title: "ActivityMagicCompose_Gift".ToUILocale()
                };
                l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonGiftPackPanel.Path, n)
            }, t.prototype.OnComposeButtonClick = function() {
                var e = this;
                if (this._selectReelId) {
                    for (var t, n = 0; n < this._activityConfig.__Slot.length; n++) {
                        var o = this._activityConfig.__Slot[n];
                        if ((this._playerModel.Int2DArray[o.Id - 1] ? this._playerModel.Int2DArray[o.Id - 1].Items : []).length <= 1 && (!o.UnlockPackId || this._playerModel.Packs[o.UnlockPackId] && this._playerModel.Packs[o.UnlockPackId].Items[0])) {
                            t = o.Id;
                            break
                        }
                    }
                    if (t) {
                        for (n = 0; n < this._reelConfigMap[this._selectReelId].Cost.length; n++) {
                            var r = this._reelConfigMap[this._selectReelId].Cost[n].Items,
                                i = r[0],
                                a = r[1] * this._sliderValue;
                            if (!p.DataCenter.Instance.IsItemEnough(i, a)) return void c.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(i.ToItemName()))
                        }
                        var s = new u.Req_Activity_MagicComposeStart;
                        s.ActivityId = this._activityConfig._id, s.Id = this._selectReelId, s.Count = this._sliderValue, s.SlotId = t, p.RpcComponent.Instance.Call(s, function() {
                            c.UIUtlity.ShowFloatingHint("ActivityMagicCompose_ComposeSuccess_Tip".ToUILocale()), e._selectReelId = null, e.DisPlay(!0)
                        })
                    } else c.UIUtlity.ShowFloatingHint("ActivityMagicCompose_Unpot_Tip".ToUILocale())
                } else c.UIUtlity.ShowFloatingHint("ActivityMagicCompose_Unselect_Tip".ToUILocale())
            }, t.prototype.OnReturnButtonClick = function() {
                l.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnSliderDragOver = function(e) {
                this._sliderValue = e, this.SetComposeContainer()
            }, t.prototype.OnItemClick = function(e, t) {
                if (-1 != this.CustomLayout.node.children.indexOf(t)) {
                    var n = t.getComponent(m.ItemComponent);
                    this._reelConfigMap[n.ItemId] ? (this._selectReelId && this._reelItemComponentMap[this._selectReelId].DisableItemHighLight(), n.EnableItemHighLight(), this._selectReelId = n.ItemId, this._selectReelCount = p.DataCenter.Instance.GetItemCount(this._selectReelId), this._sliderValue = 1, this.SetComposeContainer()) : p.DataCenter.Instance.GetItemCount(n.ItemId) > 0 ? l.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemInfoPanel.Path, n.ItemId, null, null, this._activityConfig._id) : y.default.ShowItemGetWay(n.ItemId)
                } else - 1 != this.ComposeTargetNode.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                t == this.CustomLayout && e.forEach(function(e, t) {
                    var o = e.getComponent(m.ItemComponent),
                        r = n._showReelDataArray[t][0],
                        i = n._showReelDataArray[t][1];
                    o.Init({
                        ItemId: r,
                        Count: i
                    }), o.SetAddFlagState(i <= 0), o.SetRedDotState(!n._reelConfigMap[r] && i > 0), i <= 0 ? o.EnableItemMask() : o.DisableItemMask(), r == n._selectReelId ? o.EnableItemHighLight() : o.DisableItemHighLight(), n._reelItemComponentMap[r] = o
                })
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks();
                for (var e = 0; e < this._spineDataArray.length; e++) this._spineDataArray[e] && l.AssetsManager.Instance.UnloadAsset(this._spineDataArray[e])
            }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.RichText)], t.prototype, "LeftTime", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.Node)], t.prototype, "SlotContainer", void 0), i([w(cc.Button)], t.prototype, "ComposeGiftButton", void 0), i([w(cc.Label)], t.prototype, "ComposeGiftButtonLabel", void 0), i([w(cc.Node)], t.prototype, "ComposeTargetNode", void 0), i([w(cc.Node)], t.prototype, "ComposeMaterialContainer", void 0), i([w(cc.RichText)], t.prototype, "ComposeTimeTip", void 0), i([w(cc.Label)], t.prototype, "SliderValueTip", void 0), i([w(d.default)], t.prototype, "SliderComponent", void 0), i([w(cc.Label)], t.prototype, "RecipeBagTitle", void 0), i([w(h.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Button)], t.prototype, "ComposeButton", void 0), i([w(cc.Label)], t.prototype, "ComposeButtonLabel", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([S], t)
        }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/MagicComposeMaterialComponent": "MagicComposeMaterialComponent",
        "../Components/MagicComposePotComponent": "MagicComposePotComponent",
        "../Components/SliderComponent": "SliderComponent"
    }],
    ActivityOpenBoxDisplayRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8ddd0q4hFhAH5MwwZzNxiYr", "ActivityOpenBoxDisplayRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !0), t.Spine = null, t.BgNode = null, t.RewardBg = null, t.RewardLotNode = null, t.RewardLotContainer = null, t.RewardLessContainer = null, t.ExtralRewardLotNode = null, t.ExtralRewardLotContainer = null, t.ExtralRewardLessContainer = null, t.ExtralTitle = null, t._rewards = [], t._extralRewards = [], t._normalRewardItems = [], t._extralRewardItems = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent != this.RewardLessContainer && t.parent != this.RewardLotContainer && t.parent != this.ExtralRewardLotContainer && t.parent != this.ExtralRewardLessContainer || p.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ExtralTitle.string = "GiftCode_extraReward".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), t && t.length > 0 && (this._rewards = t[0]), t && t.length > 1 && (this._extralRewards = t[1]), this._rewards && this._rewards.length > 5 ? this.BgNode.height = 1e3 : this.BgNode.height = 798
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetNormalReward(), this.SetExtralReward(), this.Spine.node.active = !0
                }, t.prototype.SetNormalReward = function() {
                    var e, t = 0;
                    for (this._rewards.length <= 5 ? (this.RewardLessContainer.active = !0, this.RewardLotNode.active = !1, e = this.RewardLessContainer, this.RewardBg.height = 218) : (this.RewardLessContainer.active = !1, this.RewardLotNode.active = !0, e = this.RewardLotContainer, this.RewardBg.height = 420); t < this._rewards.length; t++) {
                        var n = this._normalRewardItems[t];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(e), n = o.getComponent(d.ItemComponent), this._normalRewardItems.push(n)
                        }
                        n.node.setParent(e), n.node.active = !0, n.Init({
                            ItemId: this._rewards[t].ItemId,
                            Count: this._rewards[t].Count
                        })
                    }
                    for (; t < this._normalRewardItems.length; t++) this._normalRewardItems[t].node.active = !1
                }, t.prototype.SetExtralReward = function() {
                    var e;
                    this._extralRewards.length <= 5 ? (this.ExtralRewardLotNode.active = !1, this.ExtralRewardLessContainer.active = !0, e = this.ExtralRewardLessContainer) : (this.ExtralRewardLotNode.active = !0, this.ExtralRewardLessContainer.active = !1, e = this.ExtralRewardLotContainer);
                    for (var t = 0; t < this._extralRewards.length; t++) {
                        var n = this._extralRewardItems[t];
                        if (n) n.node.setParent(e);
                        else {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(e), n = o.getComponent(d.ItemComponent), this._extralRewardItems.push(n)
                        }
                        n.node.active = !0, n.Init({
                            ItemId: this._extralRewards[t].ItemId,
                            Count: this._extralRewards[t].Count
                        })
                    }
                    for (; t < this._extralRewardItems.length; t++) this._extralRewardItems[t].node.active = !1
                }, i([y(sp.Skeleton)], t.prototype, "Spine", void 0), i([y(cc.Node)], t.prototype, "BgNode", void 0), i([y(cc.Node)], t.prototype, "RewardBg", void 0), i([y(cc.Node)], t.prototype, "RewardLotNode", void 0), i([y(cc.Node)], t.prototype, "RewardLotContainer", void 0), i([y(cc.Node)], t.prototype, "RewardLessContainer", void 0), i([y(cc.Node)], t.prototype, "ExtralRewardLotNode", void 0), i([y(cc.Node)], t.prototype, "ExtralRewardLotContainer", void 0), i([y(cc.Node)], t.prototype, "ExtralRewardLessContainer", void 0), i([y(cc.Label)], t.prototype, "ExtralTitle", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityOpenBoxItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6f43cyCh+RNfrvEm8VmU1AP", "ActivityOpenBoxItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/ItemComponent"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemParent = null, t.TypeContainer = null, t.Bg = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "IsOpen", {
                    get: function() {
                        return this._isOpen
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e, t, n) {
                    void 0 === t && (t = !1), this._base = e, this.Bg.node.width = n[0], this.Bg.node.height = n[1], this.TypeContainer.scale = n[2] / 100, n.length > 3 ? (this.node.width = n[3], this.node.height = n[4]) : (this.node.width = n[0], this.node.height = n[1]), this._rewardItem && (this._rewardItem.node.active = !1, cc.Tween.stopAllByTarget(this._rewardItem.node)), this._isOpen = t, this.SetBg()
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._isOpen ? [3, 2] : (e = this.Bg, [4, this._base.GetBoxImageClose()]);
                                case 1:
                                    return e.spriteFrame = n.sent(), [3, 4];
                                case 2:
                                    return t = this.Bg, [4, this._base.GetBoxImageOpen()];
                                case 3:
                                    t.spriteFrame = n.sent(), n.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.PlayOpenEffect = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._openBoxEffect ? [3, 2] : [4, this._base.GetBoxTypePrefab()];
                                case 1:
                                    if (!(e = n.sent()) || !this.isValid) return [2];
                                    (t = cc.instantiate(e)).setParent(this.TypeContainer), this._openBoxEffect = t.getComponent(sp.Skeleton), n.label = 2;
                                case 2:
                                    return this._openBoxEffect.setAnimation(0, this._base.OpenBoxAnimationName, !1), [2]
                            }
                        })
                    })
                }, t.prototype.OnOpen = function(e, t) {
                    return void 0 === t && (t = .2), a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, new Promise(function(o) {
                                        return a(n, void 0, void 0, function() {
                                            var n = this;
                                            return s(this, function() {
                                                return this.scheduleOnce(function() {
                                                    return a(n, void 0, void 0, function() {
                                                        var n;
                                                        return s(this, function(r) {
                                                            switch (r.label) {
                                                                case 0:
                                                                    return this._isOpen = !0, this._rewardItem || ((n = cc.instantiate(this._base.ItemPrefab)).setParent(this.ItemParent), this._rewardItem = n.getComponent(l.ItemComponent)), this._rewardItem.node.active = !1, this._rewardItem.Init({
                                                                        ItemId: e.ItemId,
                                                                        Count: e.Count
                                                                    }), this.SetBg(), [4, this.PlayOpenEffect()];
                                                                case 1:
                                                                    return r.sent(), this.isValid ? [4, this.RewardShow()] : (o(null), [2]);
                                                                case 2:
                                                                    return r.sent(), [4, this.TimeStop(t)];
                                                                case 3:
                                                                    return r.sent(), this.isValid, o(null), [2]
                                                            }
                                                        })
                                                    })
                                                }, .05), [2]
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, o.sent()]
                            }
                        })
                    })
                }, t.prototype.TimeStop = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, new Promise(function(n) {
                                        t.scheduleOnce(function() {
                                            n(null)
                                        }, e)
                                    })];
                                case 1:
                                    return [2, n.sent()]
                            }
                        })
                    })
                }, t.prototype.RewardShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._rewardItem ? [4, new Promise(function(t) {
                                        var n = e._rewardItem.node;
                                        n.y = 0, n.opacity = 255, n.active = !0, cc.tween(n).by(.05, {
                                            y: 40
                                        }, {
                                            easing: "cubicOut"
                                        }).delay(.1).to(.05, {
                                            opacity: 0
                                        }, {
                                            easing: ""
                                        }).call(function() {
                                            n.active = !1, t(null)
                                        }).start()
                                    })] : [2];
                                case 1:
                                    return [2, t.sent()]
                            }
                        })
                    })
                }, i([p(cc.Node)], t.prototype, "ItemParent", void 0), i([p(cc.Node)], t.prototype, "TypeContainer", void 0), i([p(cc.Sprite)], t.prototype, "Bg", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityOpenBoxKeyRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0c6d5DEMlZDNZ0Oecr3rpJI", "ActivityOpenBoxKeyRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./ItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.Layer = null, t.LayerLabelOutline = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "ItemId", {
                    get: function() {
                        return this._itemId
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "State", {
                    get: function() {
                        return this._state
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.SetReward = function(e, t) {
                    if (!this._rewardItem) {
                        var n = cc.instantiate(e);
                        n.setParent(this.ItemContainer), this._rewardItem = n.getComponent(a.ItemComponent)
                    }
                    return this._itemId = t.ItemId, this._rewardItem.Init({
                        ItemId: t.ItemId,
                        Count: t.Count
                    }), this
                }, t.prototype.SetLayer = function(e) {
                    return 1 == this._state ? (this.LayerLabelOutline.enabled = !0, this.Layer.node.color = cc.color(110, 238, 167), this.Layer.string = "climbTower_canGet".ToUILocale()) : (this.LayerLabelOutline.enabled = !1, this.Layer.node.color = cc.color(98, 78, 60), this.Layer.string = "elementTrial_level".ToUILocale().Fmt(e)), this
                }, t.prototype.SetSelectFlagState = function(e) {
                    return void 0 === e && (e = 0), this._state = e, this._rewardItem && (0 == e ? (this._rewardItem.SetSelectFlagState(!1), this._rewardItem.SetRedDotState(!1), this._rewardItem.PauseGetRewardEffect()) : 1 == e ? (this._rewardItem.SetSelectFlagState(!1), this._rewardItem.SetRedDotState(!0), this._rewardItem.PlayGetRewardEffect()) : (this._rewardItem.SetSelectFlagState(!0), this._rewardItem.SetRedDotState(!1), this._rewardItem.PauseGetRewardEffect())), this
                }, t.prototype.IsOwnItemNode = function(e) {
                    return !!this._rewardItem && this._rewardItem.node == e
                }, i([c(cc.Node)], t.prototype, "ItemContainer", void 0), i([c(cc.Label)], t.prototype, "Layer", void 0), i([c(cc.LabelOutline)], t.prototype, "LayerLabelOutline", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./ItemComponent": "ItemComponent"
    }],
    ActivityOpenBoxOptionalPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "56260I0AwZDL5gT4ZD9lNzI", "ActivityOpenBoxOptionalPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/LoadAssetHelper"),
            p = e("../Components/ItemComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Desc = null, t.RewardList = null, t.Confirm = null, t.ConfirmLabel = null, t.Cancel = null, t.CancelLabel = null, t.LoadAssetHelper = null, t._rewards = [], t._rewardDatas = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._itemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    t._itemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "custom_giftPack_select".ToUILocale(), this.Desc.string = "custom_giftPack_please_select".ToUILocale(), this.ConfirmLabel.string = "ok".ToUILocale(), this.Confirm.node.on("click", this.OnConfirm, this), this.CancelLabel.string = "cancel".ToUILocale(), this.Cancel.node.on("click", this.OnBtnCancelClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rewardDatas = t[0], this._defaultReward = t[1], t.length > 2 && (this._callBack = t[2]), t[3] && (this.Title.string = t[3]), this._selectIndex = -1
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.InitRewards()
                }, t.prototype.InitRewards = function() {
                    if (!(this._rewardDatas.length <= 0))
                        for (var e = 0; e < this._rewardDatas.length; e++) {
                            var t = this._rewards[e];
                            if (!t) {
                                var n = cc.instantiate(this._itemPrefab);
                                n.setParent(this.RewardList), t = n.getComponent(p.ItemComponent), this._rewards.push(t), n.name = e.toString()
                            }
                            t.node.active = !0, t.Init({
                                ItemId: this._rewardDatas[e].Items[0],
                                Count: this._rewardDatas[e].Items[1]
                            })
                        }
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.RewardList.children.indexOf(t)) {
                        var n = t.getComponent(p.ItemComponent).ItemId;
                        d.UIUtlity.ShowItemTip(n, t), this._selectIndex >= 0 && this._rewards[this._selectIndex] && this._rewards[this._selectIndex].SetSelectFlagState(!1), this._rewards[e] && this._rewards[e].SetSelectFlagState(!0), this._selectIndex = e
                    }
                }, t.prototype.OnConfirm = function() {
                    -1 != this._selectIndex ? (this._callBack && this._callBack(this._selectIndex), this.Close()) : d.UIUtlity.ShowFloatingHint("heroJob_select_reward".ToUILocale())
                }, t.prototype.OnBtnCancelClick = function() {
                    this.Close()
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "Desc", void 0), i([g(cc.Node)], t.prototype, "RewardList", void 0), i([g(cc.Button)], t.prototype, "Confirm", void 0), i([g(cc.Label)], t.prototype, "ConfirmLabel", void 0), i([g(cc.Button)], t.prototype, "Cancel", void 0), i([g(cc.Label)], t.prototype, "CancelLabel", void 0), i([g(u.default)], t.prototype, "LoadAssetHelper", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper"
    }],
    ActivityOpenBoxPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "145dbmyxgVHr7VOxHfb4omG", "ActivityOpenBoxPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = e("../../RedDot/RedDotManager"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/ActivityOpenBoxKeyRewardItem"),
            I = e("../Components/ItemComponent"),
            _ = e("../Components/LoadAssetHelper"),
            C = e("./ActivityJumpBtnComponent"),
            v = e("./ActivityOpenBoxItem"),
            b = e("./CommonRatePanel"),
            S = e("./TimeLimitedActivityPanel"),
            w = e("../../../../Proto/Static/ConfigProto"),
            P = e("../../../ShareConsts/EnumType"),
            A = e("../../../ShareConsts/BattleConsts");
        (function(e) {
            e[e.SummonTotal = 0] = "SummonTotal", e[e.TaskRewardIndex = 1] = "TaskRewardIndex"
        })(l || (l = {}));
        var T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed, !0), t.BackGround = null, t.KeyLayerReward = null, t.KeyLayerRewardLot = null, t.KeyLayerRewardLess = null, t.ProbabilityBtn = null, t.ProbabilityBtnLabel = null, t.Layer = null, t.RuleBtn = null, t.Hint = null, t.BigReward = null, t.RefreshRewardFlag = null, t.BigRewardContainer = null, t.BigRewardHint = null, t.ConsumeItemIcon = null, t.ConsumeItemCount = null, t.BoxParent = null, t.AllOpenBtn = null, t.AllOpenBtnLabel = null, t.AllOpenBtnGray = null, t.AllOpenBtnGrayLabel = null, t.BackBtn = null, t.BlockInput = null, t.NextLayerBtn = null, t.NextLayerBtnLabel = null, t.LoadAssetHelper = null, t.TaskNode = null, t.TaskRewardParent = null, t.TaskFinishEffect = null, t.TaskDesc = null, t.PackBtn = null, t.PackBtnRedDot = null, t.PackBtnLabel = null, t.DeadLineTime = null, t.BottomBtnList = null, t.KeyRewardNode = null, t.BigRewardNull = null, t.BigRewardNullHint = null, t.BigRewardSelect = null, t.KeyRewardWidgets = [], t.KeyRewardOverView = null, t.KeyRewardSD = null, t.KeyRewardIcon = null, t.KeyRewardOverViewTag = null, t.KeyRewardOverViewTagLabel = null, t.KeyViewBtn = null, t.KeyRewardBgs = [], t.Windows = [], t.ProbabilityBtnBg = null, t._keyRewardIndexToFinalLayer = {}, t._jumpButtonNode = [], t._keyRoungRewardItem = [], t._boxItems = [], t._assets = [], t.OpenBoxAnimationName = "Ani_UI_Effect_YHSD_baoxiangkaiqi", t
                }
                return r(t, e), Object.defineProperty(t.prototype, "ItemPrefab", {
                    get: function() {
                        return this._itemPrefab
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.OnClickItem = function(e, t) {
                    var n = this;
                    if (t == this._bigRewardItem.node) {
                        if (this.NextLayerBtn.node.active) return;
                        this.OnChangeBigReward()
                    } else {
                        if (t == this._taskRewardItem.node) return 0 == this._taskState ? void g.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t) : void this.OnTask();
                        for (var o = 0; o < this._keyRoungRewardItem.length; o++)
                            if (this._keyRoungRewardItem[o].IsOwnItemNode(t)) {
                                if (1 == this._keyRoungRewardItem[o].State) {
                                    var r = new c.Req_Activity_TreasureBoxOpenGetLayersReward;
                                    r.ActivityId = this._activityId, f.RpcComponent.Instance.Call(r, function(e) {
                                        u.UIManager.Instance.ShowUIPanel(h.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), n.RefreshKeyRoundReward()
                                    })
                                } else g.UIUtlity.ShowItemTip(this._keyRoungRewardItem[o].ItemId, t);
                                return
                            }
                    }
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("ActivityOpenBoxPanel/ActivityOpenBoxItem", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._boxPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Hint.string = "activityOpenBox_hint".ToUILocale(), this.ProbabilityBtnLabel.string = "ratepanel_tittle".ToUILocale(), this.AllOpenBtnLabel.string = "petChoose_hatchQuick".ToUILocale(), this.AllOpenBtnGrayLabel.string = "petChoose_hatchQuick".ToUILocale(), this.PackBtnLabel.string = "activityOpenBox_pack".ToUILocale(), this.PackBtn.node.on("click", this.OnPack, this), this.TaskNode.on("click", this.OnTask, this), this.AllOpenBtn.node.on("click", this.OnAllOpen, this), this.AllOpenBtnGray.node.on("click", this.OnAllOpen, this), this.RuleBtn.node.on("click", this.OnRule, this), this.ProbabilityBtn.node.on("click", this.OnProbability, this), this.BackBtn.node.on("click", this.OnBack, this), this.BigReward.node.on("click", this.OnChangeBigReward, this), this.BigRewardSelect.node.on("click", this.OnChangeBigReward, this), this.KeyRewardOverViewTagLabel.string = "activityOpenBox_keyRewardTag".ToUILocale(), this.KeyViewBtn.node.on("click", this.OnKeyRewardView, this), this.NextLayerBtn.node.active = !1
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityId = t[0], this._activityConfig = f.DataCenter.Instance.ActivityConfigs[this._activityId], this._activeItemId = this._activityConfig.CustomPart.ItemId
                }, t.prototype.DisPlay = function(t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this._activityModel = f.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), this._activityModel ? (t || (this._layer = this._activityModel.IntValue && this._activityModel.IntValue > 0 ? this._activityModel.IntValue : 1, this.SetKeyRewardOverviewData(), this.LoadConsumeIcon(), this._endTime = p.default.Instance.GetActivityEndTime(this._activityId), this.SetDeadLine(), this.LoadTextureByTopic(), this.Layer.string = "elementTrial_level".ToUILocale().Fmt(Math.min(this._layer, this._activityConfig.CustomPart.MaxLayerNumber)), this.SetRealIndexToConfigIndex(), this.InitKeyRoundReward(), this.RefreshAutoOpenBtn(), this.RefreshBox(), this.RefreshBigReward(), this.ShowNextLayer(!0), this._keyRewardNeedOverView && this.OnScrolling()), this.RefreshNextLayerNode(), this.RefreshRedDot(), this.RefreshConSumeItem(), this.RefreshTask(), this.SetBottomButtonContainer(), [2]) : (this.OnBack(), [2])
                        })
                    })
                }, t.prototype.SetKeyRewardOverviewData = function() {
                    for (var e = this._activityConfig.RoundRewards, t = 0; t < e.length; t++) e[t].IsShowReward && (this._keyRewardNeedOverView || (this._keyRewardNeedOverView = []), this._keyRewardNeedOverView.push(t));
                    if (this.KeyLayerReward.node.off("scrolling"), this._keyRewardNeedOverView) {
                        var n = 0;
                        for (this.KeyLayerReward.node.on("scrolling", this.OnScrolling, this), t = 0; t < this._activityConfig.RoundRewards.length; t++)
                            if (t + 3 < this._activityConfig.RoundRewards.length) {
                                for (var o = this._activityConfig.RoundRewards[t + 3].Id; n < this._keyRewardNeedOverView.length;) {
                                    var r = this._keyRewardNeedOverView[n];
                                    if (o < this._activityConfig.RoundRewards[r].Id) {
                                        this._keyRewardIndexToFinalLayer[t] = r;
                                        break
                                    }
                                    n++
                                }
                                n >= this._keyRewardNeedOverView.length && (r = this._keyRewardNeedOverView[this._keyRewardNeedOverView.length - 1], this._keyRewardIndexToFinalLayer[t] = r)
                            } else r = this._keyRewardNeedOverView[this._keyRewardNeedOverView.length - 1], this._keyRewardIndexToFinalLayer[t] = r
                    }
                }, t.prototype.LoadConsumeIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._consumeIcon ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemIcon + "/" + this._activeItemId, cc.SpriteFrame)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._assets.push(e), this._consumeIcon = e, t.label = 2;
                                case 2:
                                    return this.ConsumeItemIcon.spriteFrame = this._consumeIcon, [2]
                            }
                        })
                    })
                }, t.prototype.SetDeadLine = function() {
                    this.RefreshTime(), this.unschedule(this.RefreshTime), this.schedule(this.RefreshTime, 1)
                }, t.prototype.RefreshTime = function() {
                    var e = this._endTime - f.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this.unschedule(this.RefreshTime), void(this.DeadLineTime.node.parent.active = !1);
                    this.DeadLineTime.string = "" + "Activity_Story_LeftTime".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetRealIndexToConfigIndex = function() {
                    this._realRoundToConfigIndex || (this._realRoundToConfigIndex = {});
                    for (var e = this._activityConfig.Rounds, t = e.length - 1, n = this._activityConfig.CustomPart.MaxLayerNumber; n >= 0; n--) {
                        for (; t >= 0 && e[t].Round > n;) t--;
                        t >= 0 && (this._realRoundToConfigIndex[n] = t)
                    }
                }, t.prototype.RefreshRedDot = function() {
                    this.PackBtnRedDot.active = !1;
                    for (var e = 0; e < this._activityConfig._Packs.length; e++) {
                        var t = this._activityConfig._Packs[e];
                        if (0 == t.Money) {
                            var n = this._activityModel.Packs[t.Id] && this._activityModel.Packs[t.Id].Items[0] && this._activityModel.Packs[t.Id].Items[0] >= t.LimitCount;
                            this.PackBtnRedDot.active = !n
                        }
                    }
                }, t.prototype.InitKeyRoundReward = function() {
                    var e;
                    if (this._keyRewardNeedOverView) {
                        e = 4, this.KeyRewardOverView.active = !0, this.KeyLayerRewardLess.x = -160, this.KeyLayerReward.node.width = 620;
                        for (var t = 0; t < this.KeyRewardWidgets.length; t++) this.KeyRewardWidgets[t].updateAlignment()
                    } else
                        for (e = 6, this.KeyRewardOverView.active = !1, this.KeyLayerRewardLess.x = 0, this.KeyLayerReward.node.width = 940, t = 0; t < this.KeyRewardWidgets.length; t++) this.KeyRewardWidgets[t].updateAlignment();
                    var n = this._activityConfig.RoundRewards,
                        o = null;
                    for (n.length < e ? (this.KeyLayerReward.node.active = !1, this.KeyLayerRewardLess.active = !0, o = this.KeyLayerRewardLess) : (this.KeyLayerReward.node.active = !0, this.KeyLayerRewardLess.active = !1, o = this.KeyLayerRewardLot.node), t = 0; t < n.length; t++) {
                        var r = this._keyRoungRewardItem[t];
                        if (!r) {
                            var i = cc.instantiate(this.KeyRewardNode);
                            i.setParent(o), r = i.getComponent(m.default), this._keyRoungRewardItem.push(r)
                        }
                        r.node.active = !0, this.SetKeyLayerReward(t)
                    }
                }, t.prototype.RefreshKeyRoundReward = function() {
                    this._activityModel = f.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId);
                    for (var e = this._activityConfig.RoundRewards, t = 0; t < e.length; t++) this.SetKeyLayerReward(t)
                }, t.prototype.SetKeyLayerReward = function(e) {
                    var t = this._keyRoungRewardItem[e],
                        n = this._activityConfig.RoundRewards[e],
                        o = 0;
                    this._activityModel.Int2DArray && this._activityModel.Int2DArray[0] && this._activityModel.Int2DArray[0].Items && this._activityModel.Int2DArray[0].Items.length >= 4 && (o = e < this._activityModel.Int2DArray[0].Items[3] ? 2 : this._activityModel.IntValue > n.Id ? 1 : 0), t.SetReward(this._itemPrefab, {
                        ItemId: n.Rewards[0].Items[0],
                        Count: n.Rewards[0].Items[1]
                    }).SetSelectFlagState(o).SetLayer(n.Id)
                }, t.prototype.RefreshConSumeItem = function() {
                    var e = f.DataCenter.Instance.GetItemCount(this._activeItemId);
                    this.ConsumeItemCount.string = "" + e.FmtCurrency()
                }, t.prototype.RefreshBigReward = function() {
                    var e = Math.min(this._layer, this._activityConfig.CustomPart.MaxLayerNumber),
                        t = this._realRoundToConfigIndex[e],
                        n = this._activityConfig.Rounds[t],
                        o = -1;
                    this._activityModel && this._activityModel.Int2DArray && this._activityModel.Int2DArray[0] && this._activityModel.Int2DArray[0].Items && this._activityModel.Int2DArray[0].Items.length >= 4 && (o = this._activityModel.Int2DArray[0].Items[2]), this._bigReward = o >= 0 ? n.FinalReward[o] : null, this.SetBigReward(), n.FinalReward.length > 1 ? (this.RefreshRewardFlag.active = !0, this.BigRewardHint.string = "starPray_selectableReward".ToUILocale()) : (this.RefreshRewardFlag.active = !1, this.BigRewardHint.string = "activityOpenBox_fixedBigReward".ToUILocale())
                }, t.prototype.SetBigReward = function() {
                    if (!this._bigRewardItem) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.BigRewardContainer), this._bigRewardItem = e.getComponent(I.ItemComponent)
                    }
                    this._bigReward ? (this._bigRewardItem.Init({
                        ItemId: this._bigReward.Items[0],
                        Count: this._bigReward.Items[1]
                    }), this._bigRewardItem.SetAddFlagState(!1)) : (this._bigRewardItem.SetItemSimpleState(), this._bigRewardItem.SetAddFlagState(!0)), this.SetBigRewardNullNode()
                }, t.prototype.SetBigRewardNullNode = function() {
                    this._bigReward ? (this.BigRewardNull.active = !1, this.BoxParent.active = !0) : (this.BoxParent.active = !1, this.BigRewardNull.active = !0, this._activityModel && this._activityModel.IntValue && this._activityModel.IntValue > 1 ? this.BigRewardNullHint.string = "activityOpenBox_selectLayerReward1".ToUILocale() : this.BigRewardNullHint.string = "activityOpenBox_selectLayerReward0".ToUILocale())
                }, t.prototype.OnChangeBigReward = function() {
                    if (!this.NextLayerBtn.node.active) {
                        var e = this._realRoundToConfigIndex[this._layer],
                            t = this._activityConfig.Rounds[e].FinalReward;
                        u.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityOpenBoxOptionalPanel.Path, t, void 0, this.ChangeBigReward.bind(this))
                    }
                }, t.prototype.ChangeBigReward = function(e) {
                    var t = this;
                    if (f.RpcComponent.Instance.ServerTime > this._endTime) g.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else {
                        var n = c.Req_Activity_TreasureBoxOpenChooseReward.create();
                        n.ActivityId = this._activityId, n.RewardIndex = e, f.RpcComponent.Instance.Call(n, function() {
                            t._activityModel = f.DataCenter.Instance.GetDataById(c.UserActivity_Model, t._activityId), t.RefreshKeyRoundReward(), t.RefreshBigReward()
                        })
                    }
                }, t.prototype.RefreshBox = function() {
                    var e = 0,
                        t = !1,
                        n = this._layer;
                    this._layer > this._activityConfig.CustomPart.MaxLayerNumber && (n = this._activityConfig.CustomPart.MaxLayerNumber, t = !0);
                    var o = this._realRoundToConfigIndex[n];
                    if (!this._activityModel.IntArray || this._activityModel.IntArray.length <= 0) {
                        this._activityModel.IntArray = [];
                        for (var r = 0; r < this._activityConfig.Rounds[0].BoxNumer; r++) this._activityModel.IntArray.push(0)
                    }
                    for (; e < this._activityModel.IntArray.length; e++) {
                        var i = this._boxItems[e];
                        if (!i) {
                            var a = cc.instantiate(this._boxPrefab);
                            a.setParent(this.BoxParent), a.on("click", this.OnOpenBox, this), a.name = "" + e, i = a.getComponent(v.default), this._boxItems.push(i)
                        }
                        i.node.active = !0;
                        var s = 0 != this._activityModel.IntArray[e] || t,
                            l = this._activityConfig.Rounds[o].BoxSize;
                        l || (l = [0, 0, 0]), i.Init(this, s, l);
                        var c = this._activityConfig.Rounds[o].BoxPostions;
                        i.node.x = c[2 * e], i.node.y = c[2 * e + 1]
                    }
                    for (; e < this._boxItems.length; e++) this._boxItems[e].node.active = !1
                }, t.prototype.RefreshTask = function() {
                    var e, t;
                    if (!this._taskRewardItem) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.TaskRewardParent), n.on("click", this.OnTask, this), this._taskRewardItem = n.getComponent(I.ItemComponent)
                    }
                    var o = !1,
                        r = 0;
                    this._activityModel.Int2DArray && this._activityModel.Int2DArray[0] && this._activityModel.Int2DArray[0].Items && (r = null !== (e = this._activityModel.Int2DArray[0].Items[l.TaskRewardIndex]) && void 0 !== e ? e : 0), r >= this._activityConfig.CustomPart.DrawTimesReward.length && (o = !0, r--);
                    var i = this._activityConfig.CustomPart.DrawTimesReward[r];
                    if (this._taskRewardItem.Init({
                            ItemId: i.Items[1],
                            Count: i.Items[2]
                        }), o) this._taskState = 0, this.TaskFinishEffect.node.active = !1, this.TaskDesc.string = "activityOpenBox_taskOver".ToUILocale();
                    else {
                        var a = 0;
                        this._activityModel.Int2DArray && this._activityModel.Int2DArray[0] && this._activityModel.Int2DArray[0].Items && (a = null !== (t = this._activityModel.Int2DArray[0].Items[l.SummonTotal]) && void 0 !== t ? t : 0), a >= i.Items[0] ? (this._taskState = 1, this.TaskFinishEffect.node.active = !0, this._taskRewardItem.PlayGetRewardEffect()) : (this._taskState = 0, this.TaskFinishEffect.node.active = !1, this._taskRewardItem.PauseGetRewardEffect()), this.TaskDesc.string = "<outline color=#202434 width=3><color=#FFFFFF>" + "activityOpenBox_taskDesc".ToUILocale().Fmt(a, i.Items[0]) + "</color></outline>"
                    }
                }, t.prototype.RefreshAutoOpenBtn = function() {
                    this._autoState || (this._layer < this._activityConfig.CustomPart.AutoOpenRound ? this._autoState = !1 : this._autoState = !0, this.AllOpenBtn.node.active = this._autoState, this.AllOpenBtnGray.node.active = !this._autoState)
                }, t.prototype.OnOpenBox = function(e) {
                    var t = this;
                    if (f.RpcComponent.Instance.ServerTime > this._endTime) g.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else if (this._bigReward) {
                        var n = parseInt(e.node.name),
                            o = this._boxItems[n];
                        if (!(o.IsOpen || this._layer > this._activityConfig.CustomPart.MaxLayerNumber)) {
                            var r = this._realRoundToConfigIndex[this._layer],
                                i = this._activityConfig.Rounds[r].CostItemCount;
                            if (!f.DataCenter.Instance.IsItemEnough(this._activeItemId, i)) return g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activeItemId.ToItemName())), void this.OnPack();
                            this.BlockInput.active = !0;
                            var l = c.Req_Activity_TreasureBoxOpenSummon.create();
                            l.ActivityId = this._activityId, l.Position = n + 1, f.RpcComponent.Instance.Call(l, function(e) {
                                return a(t, void 0, void 0, function() {
                                    var t, n, r, a, l, p, d = this;
                                    return s(this, function(s) {
                                        switch (s.label) {
                                            case 0:
                                                return t = f.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), this._activityConfig.CustomPart.Rewards[0], n = .5, this._activityConfig.CustomPart.OpenBoxTime && this._activityConfig.CustomPart.OpenBoxTime > 0 && (n = this._activityConfig.CustomPart.OpenBoxTime / 100), [4, o.OnOpen(e.Rewards[0], n)];
                                            case 1:
                                                if (s.sent(), !this.isValid) return [2];
                                                if (t && t.IntValue == this._layer) return [3, 3];
                                                for (r = [], a = 0, l = 1; l < e.Rewards.length; l++) {
                                                    for (p = this._boxItems[a++]; p && (!p.node.active || p.IsOpen);) p = this._boxItems[a++];
                                                    if (a > this._boxItems.length) break;
                                                    r.push(p.OnOpen(e.Rewards[l], n))
                                                }
                                                return [4, Promise.all(r).then(function() {
                                                    d.isValid && (u.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityOpenBoxDisPlayRewradPanel.Path, e.Rewards, d.GetExtralRewards(i)), d.ShowNextLayer(), d._layer >= d._activityConfig.CustomPart.MaxLayerNumber && (d.NextLayerBtnLabel.string = "activityOpenBox_lastLayer".ToUILocale()), d.RefreshKeyRoundReward(), d.BlockInput.active = !1)
                                                })];
                                            case 2:
                                                return s.sent(), [3, 4];
                                            case 3:
                                                u.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityOpenBoxDisPlayRewradPanel.Path, e.Rewards, this.GetExtralRewards(i)), this.BlockInput.active = !1, s.label = 4;
                                            case 4:
                                                return [2]
                                        }
                                    })
                                })
                            }, function() {
                                t.BlockInput.active = !1
                            })
                        }
                    } else g.UIUtlity.ShowFloatingHint("recharge_feedback_select_first".ToUILocale())
                }, t.prototype.OnAllOpen = function() {
                    var e = this;
                    if (f.RpcComponent.Instance.ServerTime > this._endTime) g.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else if (!this.NextLayerBtn.node.active)
                        if (this._autoState) {
                            if (!(this._layer > this._activityConfig.CustomPart.MaxLayerNumber))
                                if (this._bigReward) {
                                    var t = this._realRoundToConfigIndex[this._layer],
                                        n = this._activityConfig.Rounds[t].CostItemCount;
                                    if (!f.DataCenter.Instance.IsItemEnough(this._activeItemId, n)) return g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activeItemId.ToItemName())), void this.OnPack();
                                    this.BlockInput.active = !0;
                                    var o = c.Req_Activity_TreasureBoxOpenSummon.create();
                                    o.ActivityId = this._activityId, o.Position = 0, f.RpcComponent.Instance.Call(o, function(t) {
                                        return a(e, void 0, void 0, function() {
                                            var e, o, r, i, a, l, p, d, y = this;
                                            return s(this, function(m) {
                                                switch (m.label) {
                                                    case 0:
                                                        e = f.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), r = 0, i = .5, this._activityConfig.CustomPart.OpenBoxTime && this._activityConfig.CustomPart.OpenBoxTime > 0 && (i = this._activityConfig.CustomPart.OpenBoxTime / 100), a = function(a) {
                                                            var c, p, d, f;
                                                            return s(this, function(s) {
                                                                switch (s.label) {
                                                                    case 0:
                                                                        for (c = l._boxItems[r++]; c && (!c.node.active || c.IsOpen);) c = l._boxItems[r++];
                                                                        return r > l._boxItems.length ? [2, "break"] : [4, c.OnOpen(t.Rewards[a], i)];
                                                                    case 1:
                                                                        if (s.sent(), !l.isValid) return [2, {
                                                                            value: void 0
                                                                        }];
                                                                        if (t.Rewards[a].ItemId != l._bigReward.Items[0] || t.Rewards[a].Count != l._bigReward.Items[1] || e && l._layer == e.IntValue) return [3, 3];
                                                                        for (o = !0, p = [], d = a + 1; d < t.Rewards.length; d++) {
                                                                            for (f = l._boxItems[r++]; f && (!f.node.active || f.IsOpen);) f = l._boxItems[r++];
                                                                            if (r > l._boxItems.length) break;
                                                                            p.push(f.OnOpen(t.Rewards[d], i))
                                                                        }
                                                                        return [4, Promise.all(p).then(function() {
                                                                            if (y.isValid) {
                                                                                var e = [];
                                                                                e.push.apply(e, t.Rewards);
                                                                                var o = e.splice(a, 1)[0];
                                                                                e.unshift(o), u.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityOpenBoxDisPlayRewradPanel.Path, e, y.GetExtralRewards(n * (a + 1))), y.ShowNextLayer(), y._layer >= y._activityConfig.CustomPart.MaxLayerNumber && (y.NextLayerBtnLabel.string = "activityOpenBox_lastLayer".ToUILocale()), y.RefreshKeyRoundReward()
                                                                            }
                                                                        })];
                                                                    case 2:
                                                                        return s.sent(), l.isValid ? [2, "break"] : [2, {
                                                                            value: void 0
                                                                        }];
                                                                    case 3:
                                                                        g.UIUtlity.ShowFloatingHint("treasure_auto_reward".ToUILocale().Fmt("FFFFFF", t.Rewards[a].ItemId.ToItemName(), t.Rewards[a].Count)), s.label = 4;
                                                                    case 4:
                                                                        return [2]
                                                                }
                                                            })
                                                        }, l = this, p = 0, m.label = 1;
                                                    case 1:
                                                        return p < t.Rewards.length ? [5, a(p)] : [3, 4];
                                                    case 2:
                                                        if ("object" == typeof(d = m.sent())) return [2, d.value];
                                                        if ("break" === d) return [3, 4];
                                                        m.label = 3;
                                                    case 3:
                                                        return p++, [3, 1];
                                                    case 4:
                                                        return o || (g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activeItemId.ToItemName())), this.OnPack(), this.RefreshConSumeItem(), this.RefreshTask()), this.BlockInput.active = !1, [2]
                                                }
                                            })
                                        })
                                    }, function() {
                                        e.BlockInput.active = !1
                                    })
                                } else g.UIUtlity.ShowFloatingHint("recharge_feedback_select_first".ToUILocale())
                        } else g.UIUtlity.ShowFloatingHint("activityOpenBox_autoOpneLock".ToUILocale().Fmt(this._activityConfig.CustomPart.AutoOpenRound))
                }, t.prototype.OnProbability = function() {
                    if (!this.NextLayerBtn.node.active)
                        if (this._bigReward) {
                            var e = [],
                                t = this._realRoundToConfigIndex[this._layer],
                                n = this._activityConfig.Rounds[t];
                            e.push({
                                Items: [this._bigReward.Items[0], this._bigReward.Items[1], n.ShowProbability]
                            }), [].push([this._bigReward.Items[0], this._bigReward.Items[1]]);
                            for (var o = 1 - n.ShowProbability / 1e4, r = 0, i = 0; i < n.CommonRewards.length; i++) {
                                var a = n.CommonRewards[i].Items[0],
                                    s = n.CommonRewards[i].Items[1],
                                    l = n.CommonRewards[i].Items[2];
                                e.push({
                                    Items: [a, s, l]
                                }), r += l
                            }
                            for (i = 1; i < e.length; i++) e[i].Items[2] = Math.floor(e[i].Items[2] / r * 1e4 * o);
                            u.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonRatePanel.Path, b.ShowRateType.ActivityOpenBox, e)
                        } else g.UIUtlity.ShowFloatingHint("recharge_feedback_select_first".ToUILocale())
                }, t.prototype.OnTask = function() {
                    if (f.RpcComponent.Instance.ServerTime > this._endTime) g.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else if (0 != this._taskState) {
                        var e = c.Req_Activity_TreasureBoxOpenGetTimesReward.create();
                        e.ActivityId = this._activityId, f.RpcComponent.Instance.Call(e, function(e) {
                            u.UIManager.Instance.ShowUIPanel(h.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                        })
                    }
                }, t.prototype.OnBack = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRule = function() {
                    var e = {
                        name: "ActivityPurchase_Rule_Name".ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: ["activityOpenBox_ruleText".ToUILocale()]
                    };
                    g.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnPack = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: this._endTime,
                            BannerPath: e[3],
                            Title: "activityOpenBox_pack".ToUILocale()
                        };
                    u.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.RefreshNextLayerNode = function() {
                    this.NextLayerBtn.node.active && (this.unschedule(this.NextRefresh), this.scheduleOnce(this.NextRefresh, .5))
                }, t.prototype.ShowNextLayer = function(e) {
                    void 0 === e && (e = !1), this.NextLayerBtn.node.active = !0, this._layer > this._activityConfig.CustomPart.MaxLayerNumber ? this.NextLayerBtnLabel.string = "activityOpenBox_lastLayer".ToUILocale() : (e && (this.NextLayerBtn.node.active = !1), this.NextLayerBtnLabel.string = "activityOpenBox_nextLayer".ToUILocale())
                }, t.prototype.NextRefresh = function() {
                    this._activityModel = f.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), this._layer = this._activityModel.IntValue, this._layer > this._activityConfig.CustomPart.MaxLayerNumber || (this.NextLayerBtn.node.active = !1, this.RefreshConSumeItem(), this.RefreshAutoOpenBtn(), this.RefreshBox(), this.RefreshBigReward(), this.Layer.string = "elementTrial_level".ToUILocale().Fmt(Math.min(this._layer, this._activityConfig.CustomPart.MaxLayerNumber)))
                }, t.prototype.SetBottomButtonContainer = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this._buttonPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)]);
                                case 1:
                                    if (e._buttonPrefab = a.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._buttonPrefab), [2];
                                    a.label = 2;
                                case 2:
                                    for (t = 0; t < this._activityConfig.Common.JumpIds.length; t++) n = this._activityConfig.Common.JumpIds[t], (o = f.DataCenter.Instance.ActivityNameMap[n]) && (f.RpcComponent.Instance.ServerTime > p.default.Instance.ComputeDeadTime(o.Common) || ((r = this._jumpButtonNode[t]) || ((r = cc.instantiate(this._buttonPrefab)).setParent(this.BottomBtnList), this._jumpButtonNode[t] = r, r.getComponent(C.default).Init(n, this._activityConfig.Common.JumpIcons[t]), cc.find("Background/Label", r).y = -62), (i = S.ActivityData.GetTopicActivityTypeToRedDot(o.Common.Type)) && y.RedDotManager.Instance.BindInstance(r, i, {
                                        Value1: Number(o._id)
                                    })));
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetExtralRewards = function(e) {
                    for (var t = [], n = [], o = this._activityConfig.CustomPart.Rewards, r = 0; r < o.length; r++) {
                        var i = o[r].Items,
                            a = n.indexOf(i[0]); - 1 == a ? (n.push(i[0]), t.push({
                            ItemId: i[0],
                            Count: i[1] * e
                        })) : t[a].Count += i[1] * e
                    }
                    return t
                }, t.prototype.SetKeyRewardSD = function(e, t) {
                    var n = this;
                    if (void 0 === t && (t = !1), this.KeyRewardOverViewTag.active = t, !this._keyRewardOverViewItemId || this._keyRewardOverViewItemId != e) {
                        this._keyRewardOverViewItemId = e, this.KeyRewardSD.children.length > 0 && this.KeyRewardSD.removeAllChildren();
                        var o = f.ConfigDataComponent.Instance.GetConfigById(w.ItemBase_Config, e);
                        if (o) switch (this.KeyRewardIcon.node.active = !1, this.KeyRewardSD.active = !1, o.Type) {
                            case P.ItemType.Hero:
                                this.KeyRewardSD.active = !0;
                                var r = f.ConfigDataComponent.Instance.GetConfigById(w.ItemHeroCard_Config, e),
                                    i = f.ConfigDataComponent.Instance.GetConfigById(w.HeroBase_Config, r.HeroId);
                                this.LoadAssetHelper.LoadPrefab("Hero_" + i.Model + "/HeroAvatar", this.KeyRewardSD, this.LoadAvatarCallback.bind(this), 10);
                                break;
                            case P.ItemType.MagicCircle:
                                this.KeyRewardSD.active = !0;
                                var a = f.ConfigDataComponent.Instance.GetConfigById(w.ItemMagicCircle_Config, e),
                                    s = f.ConfigDataComponent.Instance.GetConfigById(w.MagicCircleBase_Config, a.MagicCircleId);
                                this.LoadAssetHelper.LoadPrefab(s.Model + "/HeroAvatar", this.KeyRewardSD, function(e) {
                                    e.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), e.scale = .8, e.y = -90;
                                    var t = cc.instantiate(e);
                                    t.setParent(n.KeyRewardSD), t.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), t.scale = .8, t.y = -90
                                }, 10);
                                break;
                            case P.ItemType.Consume:
                                var l = f.ConfigDataComponent.Instance.GetConfigById(w.ItemConsume_Config, e);
                                if (l.SubType == P.ConsumeItemType.HeroSkin) {
                                    this.KeyRewardSD.active = !0;
                                    var c = f.ConfigDataComponent.Instance.GetConfigById(w.HeroSkin_Config, l.Param[0].Items[0]);
                                    this.LoadAssetHelper.LoadPrefab("Hero_" + c.Model + "/HeroAvatar", this.KeyRewardSD, this.LoadAvatarCallback.bind(this), 10)
                                } else this.KeyRewardIcon.node.active = !0, this.LoadAssetHelper.LoadSpriteFrame(p.default.Instance.GetItemPathById(e), this.KeyRewardIcon, null, 1);
                                break;
                            case P.ItemType.TemplePiece:
                                var u = f.ConfigCacheComponent.Instance.GetStarPiecePieceConfigByItemId(e);
                                switch (u.QualityId) {
                                    case 7:
                                    case 6:
                                    case 5:
                                        this.KeyRewardSD.active = !0, this.LoadAssetHelper.LoadPrefab("StarPieceAvatar/" + u.Id + "/Avatar", this.KeyRewardSD, this.LoadAvatarCallback.bind(this), 10);
                                        break;
                                    default:
                                        this.KeyRewardIcon.node.active = !0;
                                        var d = "StarPieceIcons/" + u.Id;
                                        this.LoadAssetHelper.LoadSpriteFrame(d, this.KeyRewardIcon, null, 1)
                                }
                                break;
                            case P.ItemType.Pet:
                                this.KeyRewardSD.active = !0;
                                var h = f.ConfigDataComponent.Instance.GetConfigById(w.ItemPetCard_Config, e),
                                    y = f.ConfigDataComponent.Instance.GetConfigById(w.PetBase_Config, h.PetId);
                                this.LoadAssetHelper.LoadPrefab(y.Model + "/HeroAvatar", this.KeyRewardSD, this.LoadAvatarCallback.bind(this), 10);
                                break;
                            default:
                                this.KeyRewardIcon.node.active = !0, this.LoadAssetHelper.LoadSpriteFrame(p.default.Instance.GetItemPathById(e), this.KeyRewardIcon, null, 1)
                        }
                    }
                }, t.prototype.LoadAvatarCallback = function(e) {
                    var t = e.getComponent(sp.Skeleton);
                    switch (f.ConfigDataComponent.Instance.GetConfigById(w.ItemBase_Config, this._keyRewardOverViewItemId).Type) {
                        case P.ItemType.MagicCircle:
                            t.setAnimation(0, "standby2", !0), e.scale = .8, e.y = -90;
                            break;
                        case P.ItemType.Hero:
                        case P.ItemType.Pet:
                            t.setAnimation(0, A.SkillAnimationType.Standby, !0), e.scale = 246 / (0 == e.height ? 246 : e.height), e.y = -90;
                            break;
                        case P.ItemType.Consume:
                            f.ConfigDataComponent.Instance.GetConfigById(w.ItemConsume_Config, this._keyRewardOverViewItemId).SubType == P.ConsumeItemType.HeroSkin && (t.setAnimation(0, A.SkillAnimationType.Standby, !0), e.scale = 246 / (0 == e.height ? 246 : e.height), e.y = -90);
                            break;
                        default:
                            t.setAnimation(0, A.SkillAnimationType.Standby, !0), e.scale = 246 / (0 == e.height ? 246 : e.height)
                    }
                }, t.prototype.OnScrolling = function() {
                    var e = -this.KeyLayerReward.getScrollOffset().x,
                        t = Math.round(e / (this.KeyRewardNode.width + this.KeyLayerRewardLot.spacingX));
                    t = Math.max(t, 0), t = Math.min(t, this._activityConfig.RoundRewards.length - 1);
                    var n = this._keyRewardIndexToFinalLayer[t];
                    if (!(n < 0 || n >= this._activityConfig.RoundRewards.length)) {
                        var o = this._activityConfig.RoundRewards[n],
                            r = n == this._activityConfig.RoundRewards.length - 1;
                        this.SetKeyRewardSD(o.Rewards[0].Items[0], r)
                    }
                }, t.prototype.OnKeyRewardView = function(e) {
                    f.ConfigDataComponent.Instance.GetConfigById(w.ItemBase_Config, this._keyRewardOverViewItemId) && g.UIUtlity.ShowItemTip(this._keyRewardOverViewItemId, e.node)
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) u.AssetsManager.Instance.UnloadAsset(this._assets[e]);
                    this._assets = [], this.unschedule(this.RefreshTime)
                }, t.prototype.LoadTextureByTopic = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = this._activityConfig.CustomPart.ThemedId, t = this._activityConfig.Common.Type, [4, p.default.LoadActivityTexture(this._activityConfig.Common.Pictures[0])];
                                case 1:
                                    return o.sent(), [4, Promise.all([p.default.LoadActivityTexture("Common/Activity_" + t + "/" + e + "/001_BG"), p.default.LoadActivityTexture("Common/Activity_" + t + "/" + e + "/010_header"), p.default.LoadActivityTexture("Common/Activity_" + t + "/" + e + "/002_base_half"), p.default.LoadActivityTexture("Common/Activity_" + t + "/" + e + "/006_icon_gailv")]).then(function(e) {
                                        if (n.isValid)
                                            for (o = 0; o < e.length; o++) {
                                                n._assets.push(e[o]), n.BackGround.spriteFrame = e[0];
                                                for (var t = 0; t < n.Windows.length; t++) n.Windows[t].spriteFrame = e[1];
                                                for (t = 0; t < n.KeyRewardBgs.length; t++) n.KeyRewardBgs[t].spriteFrame = e[2];
                                                n.ProbabilityBtnBg.spriteFrame = e[3]
                                            } else
                                                for (var o = 0; o < e.length; o++) u.AssetsManager.Instance.UnloadAsset(e[o])
                                    })];
                                case 2:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.GetBoxImageClose = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._boxImageClose ? [3, 2] : (e = this._activityConfig.CustomPart.ThemedId, t = this._activityConfig.Common.Type, [4, p.default.LoadActivityTexture("Common/Activity_" + t + "/" + e + "/007_baoxiang")]);
                                case 1:
                                    if (n = o.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._assets.push(n), this._boxImageClose = n, o.label = 2;
                                case 2:
                                    return [2, this._boxImageClose]
                            }
                        })
                    })
                }, t.prototype.GetBoxImageOpen = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._boxImageOpen ? [3, 2] : (e = this._activityConfig.CustomPart.ThemedId, t = this._activityConfig.Common.Type, [4, p.default.LoadActivityTexture("Common/Activity_" + t + "/" + e + "/008_baoxiang")]);
                                case 1:
                                    if (n = o.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._assets.push(n), this._boxImageOpen = n, o.label = 2;
                                case 2:
                                    return [2, this._boxImageOpen]
                            }
                        })
                    })
                }, t.prototype.GetBoxTypePrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._boxType ? [2, this._boxType] : (e = this._activityConfig.CustomPart.TreasureBoxType, t = this, [4, this.LoadDynamicAsset("ActivityOpenBoxPanel/BoxType/BoxType_" + e, cc.Prefab)]);
                                case 1:
                                    return t._boxType = n.sent(), this.isValid ? [2, this._boxType] : (u.AssetsManager.Instance.UnloadAsset(this._boxType), [2])
                            }
                        })
                    })
                }, i([L(cc.Sprite)], t.prototype, "BackGround", void 0), i([L(cc.ScrollView)], t.prototype, "KeyLayerReward", void 0), i([L(cc.Layout)], t.prototype, "KeyLayerRewardLot", void 0), i([L(cc.Node)], t.prototype, "KeyLayerRewardLess", void 0), i([L(cc.Button)], t.prototype, "ProbabilityBtn", void 0), i([L(cc.Label)], t.prototype, "ProbabilityBtnLabel", void 0), i([L(cc.Label)], t.prototype, "Layer", void 0), i([L(cc.Button)], t.prototype, "RuleBtn", void 0), i([L(cc.Label)], t.prototype, "Hint", void 0), i([L(cc.Button)], t.prototype, "BigReward", void 0), i([L(cc.Node)], t.prototype, "RefreshRewardFlag", void 0), i([L(cc.Node)], t.prototype, "BigRewardContainer", void 0), i([L(cc.Label)], t.prototype, "BigRewardHint", void 0), i([L(cc.Sprite)], t.prototype, "ConsumeItemIcon", void 0), i([L(cc.Label)], t.prototype, "ConsumeItemCount", void 0), i([L(cc.Node)], t.prototype, "BoxParent", void 0), i([L(cc.Button)], t.prototype, "AllOpenBtn", void 0), i([L(cc.Label)], t.prototype, "AllOpenBtnLabel", void 0), i([L(cc.Button)], t.prototype, "AllOpenBtnGray", void 0), i([L(cc.Label)], t.prototype, "AllOpenBtnGrayLabel", void 0), i([L(cc.Button)], t.prototype, "BackBtn", void 0), i([L(cc.Node)], t.prototype, "BlockInput", void 0), i([L(cc.Button)], t.prototype, "NextLayerBtn", void 0), i([L(cc.Label)], t.prototype, "NextLayerBtnLabel", void 0), i([L(_.default)], t.prototype, "LoadAssetHelper", void 0), i([L(cc.Node)], t.prototype, "TaskNode", void 0), i([L(cc.Node)], t.prototype, "TaskRewardParent", void 0), i([L(sp.Skeleton)], t.prototype, "TaskFinishEffect", void 0), i([L(cc.RichText)], t.prototype, "TaskDesc", void 0), i([L(cc.Button)], t.prototype, "PackBtn", void 0), i([L(cc.Node)], t.prototype, "PackBtnRedDot", void 0), i([L(cc.Label)], t.prototype, "PackBtnLabel", void 0), i([L(cc.RichText)], t.prototype, "DeadLineTime", void 0), i([L(cc.Node)], t.prototype, "BottomBtnList", void 0), i([L(cc.Node)], t.prototype, "KeyRewardNode", void 0), i([L(cc.Node)], t.prototype, "BigRewardNull", void 0), i([L(cc.Label)], t.prototype, "BigRewardNullHint", void 0), i([L(cc.Button)], t.prototype, "BigRewardSelect", void 0), i([L(cc.Widget)], t.prototype, "KeyRewardWidgets", void 0), i([L(cc.Node)], t.prototype, "KeyRewardOverView", void 0), i([L(cc.Node)], t.prototype, "KeyRewardSD", void 0), i([L(cc.Sprite)], t.prototype, "KeyRewardIcon", void 0), i([L(cc.Node)], t.prototype, "KeyRewardOverViewTag", void 0), i([L(cc.Label)], t.prototype, "KeyRewardOverViewTagLabel", void 0), i([L(cc.Button)], t.prototype, "KeyViewBtn", void 0), i([L(cc.Sprite)], t.prototype, "KeyRewardBgs", void 0), i([L(cc.Sprite)], t.prototype, "Windows", void 0), i([L(cc.Sprite)], t.prototype, "ProbabilityBtnBg", void 0), i([R], t)
            }(u.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityOpenBoxKeyRewardItem": "ActivityOpenBoxKeyRewardItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent",
        "./ActivityOpenBoxItem": "ActivityOpenBoxItem",
        "./CommonRatePanel": "CommonRatePanel",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    ActivityPreviewItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3159aPxpz9OT7tAXU+FRh7t", "ActivityPreviewItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../Consts/Etc"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../Util/TimeUtil"),
            d = e("../../Auxiliary/GameRecord"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/RpcComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property;
        (function(e) {
            e[e.No = 0] = "No", e[e.Hero = 1] = "Hero", e[e.Skin = 2] = "Skin"
        })(l || (l = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LineBgNode = null, t.IconSprite = void 0, t.TitleLabel = void 0, t.TitleOutLine = void 0, t.BgLeft = null, t.BgCenter = null, t.BgRight = null, t.TitleContentNode = void 0, t.TitleContainer = void 0, t.RedDotNode = void 0, t.BubbleNode = void 0, t.BubbleBackGround = void 0, t.BubbleLabel = void 0, t.BubbleRollNode = void 0, t.BubbleArrowSprite = void 0, t.BubbleBackGroundSprite = void 0, t.ICON_SIZE = new cc.Size(78, 75), t._config = null, t._iconSpriteFrame = null, t._outLineColor = {
                    white: (new cc.Color).fromHEX("#4C3208"),
                    blue3: (new cc.Color).fromHEX("#090E3C"),
                    rainbow: (new cc.Color).fromHEX("#1E2C17"),
                    red: (new cc.Color).fromHEX("#681F30"),
                    yellow: (new cc.Color).fromHEX("#4C3208"),
                    blue: (new cc.Color).fromHEX("#090E3C"),
                    blue2: (new cc.Color).fromHEX("#090E3C"),
                    green: (new cc.Color).fromHEX("#1E2C17"),
                    green2: (new cc.Color).fromHEX("#1E2C17"),
                    purple: (new cc.Color).fromHEX("#370051")
                }, t._loadAssets = [], t._noShow = !1, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.node.on("click", this.OpenActivityShowPanel, this)
            }, t.prototype.Init = function(e, t, n, o, r, i) {
                return a(this, void 0, void 0, function() {
                    var a, d, h, g, m, I, _, C, v, b, S, w, P, A = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._config = e, this._panel = t, this._colorName = r, this.LineBgNode.active = i % 2 == 1, a = p.TimeUtil.Get0ClockTs(y.default.Instance.ComputeActivitStartTime(e)), d = p.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime), h = a + this._config.Duration * c.Etc.DayDuration, this._noShow = this._config.IsNew && a > d, this._noShow ? e.IsNew == l.Hero ? this.TitleLabel.string = "ActivityPreview_newHero".ToUILocale() : e.IsNew == l.Skin && (this.TitleLabel.string = "ActivityPreview_newSkin".ToUILocale()) : this.TitleLabel.string = this._config.Title, this.TitleOutLine.color = this._outLineColor[this._config.Color], this._activityAtlas = n, !o || this._noShow ? [3, 2] : [4, y.default.LoadActivityTexture(o)];
                            case 1:
                                return g = s.sent(), this.isValid ? [3, 3] : (u.AssetsManager.Instance.UnloadAsset(g), [2]);
                            case 2:
                                g = this._activityAtlas.getSpriteFrame("ActivityIconDefault"), s.label = 3;
                            case 3:
                                return this._loadAssets.push(g), this._iconSpriteFrame = g, this.IconSprite.spriteFrame = this._iconSpriteFrame, m = Math.max(0, this.GetDayFromTimeStamp(d, a)), I = this.GetDayFromTimeStamp(d, h), C = 142 * ((_ = I > 7 ? 7 : I) - 1 - m) + 134, v = _ - m, this.BgRight.node.active = !0, this.BgCenter.node.active = !0, "rainbow" == r && 1 == v ? (b = I < 7 ? "bg_" + r + "_6" : "bg_" + r + "_7", this.BgLeft.spriteFrame = this._activityAtlas.getSpriteFrame(b), this.BgRight.node.active = !1, this.BgCenter.node.active = !1) : (this.BgLeft.spriteFrame = this._activityAtlas.getSpriteFrame("bg_" + r + "_1"), this.BgCenter.node.active = I > 1, I > 1 && (this.BgCenter.spriteFrame = this._activityAtlas.getSpriteFrame("bg_" + r + "_2"), this.BgCenter.node.width = 142 * (_ - 1 - m)), this.BgRight.node.scaleX = I > 7 ? -1 : 1, S = I > 7 ? "bg_" + r + "_1" : "bg_" + r + "_3", "rainbow" == r && I > 7 && (S = "bg_" + r + "_4", this.BgRight.node.scaleX = 1), this.BgRight.spriteFrame = this._activityAtlas.getSpriteFrame(S)), this.TitleContainer.x = C / 2, this.node.width = C, w = p.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime) - a, P = w / c.Etc.DayDuration, (P = w > 0 ? Math.ceil(P) : Math.floor(P)) < -4 ? this.MoveBubbleToLeft() : this.MoveBubbleToRight(), this.scheduleOnce(function() {
                                    A.TitleContentNode.width = Math.min(A.TitleLabel.node.width, C - A.ICON_SIZE.width - 50), 1 == A.GetDayFromTimeStamp(Math.max(d, a), Math.min(h, d + 7 * c.Etc.DayDuration)) ? (A.TitleLabel.node.active = !1, A.RenderBubble(), A.TitleContentNode.width = 0) : (A.TitleLabel.node.active = !0, A.HiddenBubbleMassage())
                                }, 0), this.SetRedDot(), [2]
                        }
                    })
                })
            }, t.prototype.SetRedDot = function() {
                var e = this._config._id,
                    t = d.default.GetItem(d.GameRecordDefine.ActivityPreviewHaveSeen);
                if (t) {
                    var n = JSON.parse(t);
                    this.RedDotNode.active = !n || !n[e]
                } else this.RedDotNode.active = !0
            }, t.prototype.OpenActivityShowPanel = function() {
                var e = this._activityAtlas.getSpriteFrame("ActivityPreview_item_" + this._colorName);
                u.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityPreviewShowSinglePanel.Path, this._config, this._iconSpriteFrame, e), 1 == this.RedDotNode.active && (this.RedDotNode.active = !1)
            }, t.prototype.GetDayFromTimeStamp = function(e, t) {
                return Math.ceil((t - e) / c.Etc.DayDuration)
            }, t.prototype.RenderBubble = function() {
                this.BubbleNode.active = !0, this._noShow ? this._config.IsNew == l.Hero ? this.BubbleLabel.string = "ActivityPreview_newHero".ToUILocale() : this._config.IsNew == l.Skin && (this.BubbleLabel.string = "ActivityPreview_newSkin".ToUILocale()) : this.BubbleLabel.string = this._config.Title, this.BubbleArrowSprite.spriteFrame = this._panel.GetBubbleArrow(), this.BubbleBackGroundSprite.spriteFrame = this._panel.GetBubbleBG()
            }, t.prototype.HiddenBubbleMassage = function() {
                this.BubbleNode.active = !1
            }, t.prototype.MoveBubbleToLeft = function() {
                this.BubbleNode.x = 0, this.BubbleRollNode.x = -(this.BubbleArrowSprite.node.width + this.BubbleBackGroundSprite.node.width) / 2, this.BubbleBackGround.scaleX = -1
            }, t.prototype.MoveBubbleToRight = function() {
                this.BubbleNode.x = this.node.width, this.BubbleRollNode.x = this.BubbleRollNode.width / 2 + 21, this.BubbleBackGround.scaleX = 1
            }, t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    u.AssetsManager.Instance.UnloadAsset(e)
                }), this.unscheduleAllCallbacks()
            }, i([I(cc.Node)], t.prototype, "LineBgNode", void 0), i([I(cc.Sprite)], t.prototype, "IconSprite", void 0), i([I(cc.Label)], t.prototype, "TitleLabel", void 0), i([I(cc.LabelOutline)], t.prototype, "TitleOutLine", void 0), i([I(cc.Sprite)], t.prototype, "BgLeft", void 0), i([I(cc.Sprite)], t.prototype, "BgCenter", void 0), i([I(cc.Sprite)], t.prototype, "BgRight", void 0), i([I(cc.Node)], t.prototype, "TitleContentNode", void 0), i([I(cc.Node)], t.prototype, "TitleContainer", void 0), i([I(cc.Node)], t.prototype, "RedDotNode", void 0), i([I(cc.Node)], t.prototype, "BubbleNode", void 0), i([I(cc.Node)], t.prototype, "BubbleBackGround", void 0), i([I(cc.Label)], t.prototype, "BubbleLabel", void 0), i([I(cc.Node)], t.prototype, "BubbleRollNode", void 0), i([I(cc.Sprite)], t.prototype, "BubbleArrowSprite", void 0), i([I(cc.Sprite)], t.prototype, "BubbleBackGroundSprite", void 0), i([m], t)
        }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent"
    }],
    ActivityPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c7b63WJwxJGcKO9z7o0G3O9", "ActivityPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/RpcComponent"),
            u = e("./ActivityPreviewItemComponent"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/GameRecord"),
            h = e("../../Components/DataCenter"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Components/Components"),
            m = e("../../../Consts/Consts"),
            I = e("../../../Consts/Consts"),
            _ = e("../../../Util/TimeUtil"),
            C = e("../Components/CustomLayout"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../Components/CurrencyBarItem"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.BackBtnNode = void 0, t.ActivetyList = void 0, t.DateLabelList = [], t.DayLabelList = [], t.PanelTitleLabel = void 0, t.PanelDisclaimerLabel = void 0, t.CustomLayout = null, t.PanelBackGround = void 0, t.CurrencyBarItem = null, t._activityTrailerList = [], t.TrailerIdMap = {}, t._activityTagPrefab = void 0, t._itemBubbleCacheArrow = void 0, t._itemBubbleCacheBG = void 0, t._dayStringList = ["ActivetyPreview_monday", "ActivetyPreview_tuesday", "ActivetyPreview_wednesday", "ActivetyPreview_thursday", "ActivetyPreview_friday", "ActivetyPreview_saturday", "ActivetyPreview_sunday"], t._activityAtlas = null, t
                }
                var n;
                return r(t, e), n = t, Object.defineProperty(t.prototype, "ActivityTrailerList", {
                    get: function() {
                        return this._activityTrailerList
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(v.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(v.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityPreviewPanel/ActivityPreviewItemPrefab", cc.Prefab), n = this.LoadDynamicAsset("ActivityPreviewPanel/PNG/ActivityPreviewPanel", cc.SpriteAtlas), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._activityTagPrefab = o[0], this._activityAtlas = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BackBtnNode.on("click", l.UIManager.Instance.BackUIPanel, l.UIManager.Instance), this.PanelDisclaimerLabel.string = "ActivetyPreview_disclaimer".ToUILocale(), this.PanelTitleLabel.string = "ActivetyPreview_panelTittle".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    var o = this;
                    e.prototype.InitData.call(this, t), this._activityTrailerList = n.FilteringData(h.DataCenter.Instance.ActivityTrailers), this._activityTrailerList.forEach(function(e) {
                        o.TrailerIdMap[e._id] = e
                    })
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), t || (this.RenderDate(), this.CustomLayout.Init(this._activityTagPrefab), this.CustomLayout.RenderLayOut(this._activityTrailerList.length)), this.CurrencyBarItem.Init(m.CommonItemId.Currency), this.scheduleOnce(function() {
                        n.SetUserHaveSeenActivityPreviewInfo()
                    }, 0)
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), l.Game.EventDispatcher.Emit(v.EventKeys.EVENT_CLOSE_ACT_PREVIEW_PANEL), this.unscheduleAllCallbacks()
                }, t.prototype.RenderDate = function() {
                    for (var e = 0; e < 7; e++) {
                        var t = c.RpcComponent.Instance.ServerTime + e * I.Etc.DayDuration,
                            n = _.TimeUtil.GetWeekDay(t),
                            o = _.TimeUtil.Format("MM", t),
                            r = _.TimeUtil.Format("DD", t);
                        this.DateLabelList[e].string = o + "/" + r, this.DayLabelList[e].string = this._dayStringList[n - 1].ToUILocale()
                    }
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        return a(n, void 0, void 0, function() {
                            var n, o, r, i;
                            return s(this, function() {
                                return n = e.getComponent(u.default), o = this.ActivityTrailerList[t], n.Init(o, this, this._activityAtlas, o.Icon, o.Color, Number(t)), r = _.TimeUtil.Get0ClockTs(c.RpcComponent.Instance.ServerTime) - _.TimeUtil.Get0ClockTs(y.default.Instance.ComputeActivitStartTime(o)), i = r / I.Etc.DayDuration, e.x = 142 * Math.abs(Math.min(0, i)) - 495, [2]
                            })
                        })
                    })
                }, t.prototype.SetUserHaveSeenActivityPreviewInfo = function() {
                    var e = {};
                    this._activityTrailerList.forEach(function(t) {
                        return e[t._id] = !0
                    }), d.default.SetItem(d.GameRecordDefine.ActivityPreviewHaveSeen, JSON.stringify(e))
                }, t.FilteringData = function(e) {
                    if (!e || 0 == e.length) return [];
                    var t = c.RpcComponent.Instance.ServerTime;
                    return e.filter(function(e) {
                        var o = e.StartTime;
                        return e.IsZoneOpen && (o = y.default.Instance.ComputeActivitStartTime(e)), !((t - y.default.Instance.GetOpenZeroTime()) / m.Etc.DayDuration < e.RequireOpenDays) && !(t < e.ShowStartTime || t > e.ShowStartTime + e.ShowDuration * I.Etc.DayDuration || o + e.Duration * I.Etc.DayDuration < t || o >= _.TimeUtil.Get0ClockTs(t) + 7 * I.Etc.DayDuration) && n.ParsingActiveStrings(e.Condition) && n.HandleGameModule(e)
                    }).sort(function(e, t) {
                        return t.SortId - e.SortId
                    })
                }, t.HandleGameModule = function(e) {
                    if (0 == e.GameModule) return !0;
                    var t = h.DataCenter.Instance.GetDataById(f.GameModule_Model, e.GameModule);
                    return !t || t.IsUnlocked
                }, t.ParsingActiveStrings = function(e) {
                    if (void 0 === e || "" === e) return !0;
                    for (var t = e.split("|"), o = 0; o < t.length; o++)
                        if (n.ProcessingAndLogic(t[o])) return !0;
                    return !1
                }, t.ProcessingAndLogic = function(e) {
                    if (void 0 === e || "" === e) return !0;
                    var t = e.split(":");
                    if (t.length % 3 != 0) return !0;
                    for (var o = 0; o < t.length; o += 3)
                        if (!n.HandleSigleLogicString(parseInt(t[o + 1]), t[o], parseInt(t[o + 2]))) return !1;
                    return !0
                }, t.HandleSigleLogicString = function(e, t, n) {
                    var o;
                    if ("1" == t) o = g.DataCenter.Instance.GetIntData(m.UserDataKey.TotalPay);
                    else if ("2" == t) o = h.DataCenter.Instance.GetIntData(m.UserDataKey.VipLevel);
                    else {
                        if ("3" != t) return !0;
                        o = h.DataCenter.Instance.GetIntData(m.UserDataKey.PlayerLevel)
                    }
                    return 0 == n ? o >= e : o >= e && o <= n
                }, t.prototype.GetBubbleArrow = function() {
                    return this._itemBubbleCacheArrow || (this._itemBubbleCacheArrow = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("bubble_arrow_orange")), this._itemBubbleCacheArrow
                }, t.prototype.GetBubbleBG = function() {
                    return this._itemBubbleCacheBG || (this._itemBubbleCacheBG = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("bubble_bg_orange")), this._itemBubbleCacheBG
                }, i([P(cc.Node)], t.prototype, "BackBtnNode", void 0), i([P(cc.Node)], t.prototype, "ActivetyList", void 0), i([P([cc.Label])], t.prototype, "DateLabelList", void 0), i([P([cc.Label])], t.prototype, "DayLabelList", void 0), i([P(cc.Label)], t.prototype, "PanelTitleLabel", void 0), i([P(cc.Label)], t.prototype, "PanelDisclaimerLabel", void 0), i([P(C.default)], t.prototype, "CustomLayout", void 0), i([P(cc.Node)], t.prototype, "PanelBackGround", void 0), i([P(b.default)], t.prototype, "CurrencyBarItem", void 0), n = i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "./ActivityPreviewItemComponent": "ActivityPreviewItemComponent"
    }],
    ActivityPreviewShowSinglePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0f1bc4huKZLhJzn5bYJ8uIM", "ActivityPreviewShowSinglePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../../Components/RpcComponent"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../Consts/Etc"),
            y = e("../../../Util/TimeUtil"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Auxiliary/UIUtlity");
        (function(e) {
            e[e.No = 0] = "No", e[e.Hero = 1] = "Hero", e[e.Skin = 2] = "Skin"
        })(l || (l = {}));
        var I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.PanelTittleLabel = void 0, t.ActivityIconSprite = void 0, t.ActivityTitleLabel = void 0, t.ActivityTitleOutLine = void 0, t.ActivityColorSprite = void 0, t.ActivityDateLabel = void 0, t.ActivityContentRichText = void 0, t.RewardTittleLabel = void 0, t.RewardItemNode = void 0, t.JumpButtonNode = void 0, t.ConfirmButtonNode = void 0, t.JumpButtonLabel = void 0, t.ConfirmButtonLabel = void 0, t.PanelConteneNode = void 0, t.ItemScrollComponent = void 0, t.NoItemsNeedHiddenNode = [], t._itemPrefab = void 0, t._outLineColor = {
                        white: (new cc.Color).fromHEX("#4C3208"),
                        blue3: (new cc.Color).fromHEX("#090E3C"),
                        rainbow: (new cc.Color).fromHEX("#1E2C17"),
                        red: (new cc.Color).fromHEX("#681F30"),
                        yellow: (new cc.Color).fromHEX("#4C3208"),
                        blue: (new cc.Color).fromHEX("#090E3C"),
                        blue2: (new cc.Color).fromHEX("#090E3C"),
                        green: (new cc.Color).fromHEX("#1E2C17"),
                        green2: (new cc.Color).fromHEX("#1E2C17"),
                        purple: (new cc.Color).fromHEX("#370051")
                    }, t._noShow = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.JumpButtonNode.on("click", this.DoJumpToActivity, this), this.ConfirmButtonNode.on("click", c.UIManager.Instance.BackUIPanel, c.UIManager.Instance), this.PanelTittleLabel.string = "ActivetyPreview_Detail_tittle".ToUILocale(), this.RewardTittleLabel.string = "ActivetyPreview_Detail_reward".ToUILocale(), this.JumpButtonLabel.string = "ActivetyPreview_Detail_jumpButton".ToUILocale(), this.ConfirmButtonLabel.string = "ActivetyPreview_Detail_confrimButton".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._config = t[0], this._iconSpriteFrame = t[1], this._colorBackSpriteFrame = t[2]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), !0 !== t && (this.InitPanel(), this.ActivityTitleOutLine.color = this._outLineColor[this._config.Color])
                }, t.prototype.InitPanel = function() {
                    var e = this;
                    this.ActivityIconSprite.spriteFrame = this._iconSpriteFrame, this.ActivityColorSprite.spriteFrame = this._colorBackSpriteFrame;
                    var t, n = y.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime),
                        o = y.TimeUtil.Get0ClockTs(h.default.Instance.ComputeActivitStartTime(this._config));
                    t = this._config.IsZoneOpen ? h.default.Instance.GetOpenZeroTime() + (this._config.Duration - 1 + this._config.RequireOpenDays - 1) * f.Etc.DayDuration : this._config.StartTime + (this._config.Duration - 1) * f.Etc.DayDuration, this.ActivityDateLabel.string = y.TimeUtil.Format("YYYY/MM/DD", o) + "-" + y.TimeUtil.Format("YYYY/MM/DD", t), this._noShow = this._config.IsNew && o > n, this._noShow ? (this.ActivityContentRichText.string = "ActivityPreview_ lookForward".ToUILocale(), this._config.IsNew == l.Hero ? this.ActivityTitleLabel.string = "ActivityPreview_newHero".ToUILocale() : this.ActivityTitleLabel.string = "ActivityPreview_newSkin".ToUILocale()) : (this.ActivityContentRichText.string = this._config.Content, this.ActivityTitleLabel.string = this._config.Title), this._config.ItemIds && 0 != this._config.ItemIds.length && !this._noShow ? (this._config.ItemIds.forEach(function(t) {
                        e.CreateAItem(t)
                    }), this._config.ItemIds.length <= 4 && (this.ItemScrollComponent.enabled = !1, this.ItemScrollComponent.node.anchorX = .5, this.RewardItemNode.anchorX = .5, this.RewardItemNode.x = 0)) : this.NoItemsNeedHiddenNode.forEach(function(e) {
                        e.active = !1
                    }), (!this._config.JumpId || this._config.StartTime > n || h.default.Instance.ComputeDeadTime(this._config) < n || this._noShow) && (this.JumpButtonNode.active = !1)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.CreateAItem = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent)]);
                                case 1:
                                    if (t._itemPrefab = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    return (n = cc.instantiate(this._itemPrefab)).name = "" + e, n.getComponent(p.ItemComponent).Init({
                                        ItemId: e
                                    }), this.RewardItemNode.addChild(n), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardItemNode.children.indexOf(t) && m.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.DoJumpToActivity = function() {
                    h.default.ShowPanelByGetWayId(this._config.JumpId, !1)
                }, i([C(cc.Label)], t.prototype, "PanelTittleLabel", void 0), i([C(cc.Sprite)], t.prototype, "ActivityIconSprite", void 0), i([C(cc.Label)], t.prototype, "ActivityTitleLabel", void 0), i([C(cc.LabelOutline)], t.prototype, "ActivityTitleOutLine", void 0), i([C(cc.Sprite)], t.prototype, "ActivityColorSprite", void 0), i([C(cc.Label)], t.prototype, "ActivityDateLabel", void 0), i([C(cc.RichText)], t.prototype, "ActivityContentRichText", void 0), i([C(cc.Label)], t.prototype, "RewardTittleLabel", void 0), i([C(cc.Node)], t.prototype, "RewardItemNode", void 0), i([C(cc.Node)], t.prototype, "JumpButtonNode", void 0), i([C(cc.Node)], t.prototype, "ConfirmButtonNode", void 0), i([C(cc.Label)], t.prototype, "JumpButtonLabel", void 0), i([C(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([C(cc.Node)], t.prototype, "PanelConteneNode", void 0), i([C(cc.ScrollView)], t.prototype, "ItemScrollComponent", void 0), i([C([cc.Node])], t.prototype, "NoItemsNeedHiddenNode", void 0), i([_], t)
            }(c.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityRocketEndPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "32292sb9tNE65po6h56+sxr", "ActivityRocketEndPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CurrencyBarItem"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ItemComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RocketCountTip = null, t.CurrentScore = null, t.HighScore = null, t.RankTag = null, t.RankValue = null, t.RewardTag = null, t.RewardContainer = null, t.BackButton = null, t.BackButtonLabel = null, t.ChallengeButton = null, t.ChallengeButtonLabel = null, t.BuyButton = null, t.BuyButtonLabel = null, t.CurrencyBarItem = null, t._totalRocketCount = 0, t._currentScore = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BackButtonLabel.string = "SendLog_return".ToUILocale(), this.ChallengeButtonLabel.string = "common_challenge_again".ToUILocale(), this.BuyButtonLabel.string = "ActivityRocket_Buy_Button_Tag".ToUILocale(), this.RewardTag.string = "activityBoss_reward".ToUILocale(), this.RankTag.string = "activityBoss_cur_rank".ToUILocale(), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._isCompetitionGame = t[1], this._totalRocketCount = t[2], this._currentScore = t[3], this._rewadData = t[4], this._activityConfig = u.DataCenter.Instance.ActivityConfigs[n]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetCurrentTypeNodeState(!this._isCompetitionGame), this._isCompetitionGame, this.SetScoreTip(), this.SetRewardContainer()), this.CurrencyBarItem.Init(this._activityConfig.CustomPart.Tickets[0].Items[1])
                }, t.prototype.SetCurrentTypeNodeState = function(e) {
                    this.RankTag.node.parent.active = !e, this.RankValue.node.active = !e
                }, t.prototype.SetScoreTip = function() {
                    var e = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id);
                    this.RocketCountTip.string = "ActivityRocket_End_Rocket_Count_Tip".ToUILocale().Fmt(this._totalRocketCount), this.CurrentScore.string = "ActivityRocket_End_Current_Score_Tip".ToUILocale().Fmt(this._currentScore), this.HighScore.string = "ActivityRocket_End_Highest_Score_Tip".ToUILocale().Fmt(e.IntArray[2])
                }, t.prototype.SetRewardContainer = function() {
                    var e = this;
                    this._rewadData && this._rewadData.length > 0 && this._rewadData.forEach(function(t) {
                        var n = cc.instantiate(e._itemPrefab);
                        n.setParent(e.RewardContainer), n.getComponent(h.ItemComponent).Init({
                            ItemId: t.ItemId,
                            Count: t.Count
                        })
                    })
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnChallengeButtonClick = function() {
                    var e = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id);
                    (this._isCompetitionGame ? this._activityConfig.CustomPart.Tickets[0].Items[0] - e.Tickets[2] : this._activityConfig.CustomPart.LeisureFree - e.IntArray[0]) > 0 || u.DataCenter.Instance.IsItemEnough(this._activityConfig.CustomPart.Tickets[0].Items[1], 1) ? (l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ActivityRocketPlayPanel.Path, this._activityConfig._id, this._isCompetitionGame), l.UIManager.Instance.QuitPanelStack(this)) : f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activityConfig.CustomPart.Tickets[0].Items[1].ToItemName()))
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: y.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[0],
                            Title: "ActivityRocket_Gift".ToUILocale()
                        };
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonGiftPackPanel.Path, t)
                }, i([I(cc.RichText)], t.prototype, "RocketCountTip", void 0), i([I(cc.RichText)], t.prototype, "CurrentScore", void 0), i([I(cc.Label)], t.prototype, "HighScore", void 0), i([I(cc.Label)], t.prototype, "RankTag", void 0), i([I(cc.Label)], t.prototype, "RankValue", void 0), i([I(cc.Label)], t.prototype, "RewardTag", void 0), i([I(cc.Node)], t.prototype, "RewardContainer", void 0), i([I(cc.Button)], t.prototype, "BackButton", void 0), i([I(cc.Label)], t.prototype, "BackButtonLabel", void 0), i([I(cc.Button)], t.prototype, "ChallengeButton", void 0), i([I(cc.Label)], t.prototype, "ChallengeButtonLabel", void 0), i([I(cc.Button)], t.prototype, "BuyButton", void 0), i([I(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([I(p.default)], t.prototype, "CurrencyBarItem", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityRocketPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "88ae7SbSW5CKZTRyLZ5k7za", "ActivityRocketPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Components/SmallRankListComponent"),
            h = e("../Components/CurrencyBarItem"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../Components/ItemComponent"),
            C = e("../../RedDot/RedDotManager"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.LeftTime = null, t.RuleButton = null, t.SmallRankListComponent = null, t.TaskButton = null, t.TaskButtonLabel = null, t.WarTokenButton = null, t.WarTokenButtonLabel = null, t.GiftButton = null, t.GiftButtonLabel = null, t.RelaxationToggle = null, t.RelaxationToggleLabel = null, t.CompetitionToggle = null, t.CompetitionToggleLabel = null, t.TypeDesc = null, t.PlayTip = null, t.ScoreTip = null, t.DetailTitle = null, t.RelaxtionRewardContent = null, t.ScoreRewardTip = null, t.RelaxtionRewardNode = null, t.CompetitionRewardContent = null, t.MyRank = null, t.CompetitionRewardLayout = null, t.CompetitionRewardDetailButton = null, t.NoRankTip = null, t.ChallengeButton = null, t.ChallengeButtonLabel = null, t.CurrencyBarItem = null, t.ChallengeTimesTip = null, t.ReturnButton = null, t._isCompetitionGame = !1, t._isSetRelaxationReward = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ActivityRocketPanel/PNG/ActivityRocketAtlas", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._rocketAtlas = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ActivityRocket_Title".ToUILocale(), this.TaskButtonLabel.string = "btn_task".ToUILocale(), this.WarTokenButtonLabel.string = "ActivityRocket_WarToken".ToUILocale(), this.GiftButtonLabel.string = "ActivityRocket_Gift".ToUILocale(), this.RelaxationToggleLabel.string = "ActivityRocket_Relaxation_Tag".ToUILocale(), this.CompetitionToggleLabel.string = "ActivityRocket_Competition_Tag".ToUILocale(), this.PlayTip.string = "ActivityRocket_PlayTip".ToUILocale(), this.ScoreRewardTip.string = "ActivityRocket_Reward_Tip".ToUILocale(), this.NoRankTip.string = "activityBoss_no_reward".ToUILocale(), this.RelaxationToggle.node.on("toggle", this.OnRelaxationToggleClick, this), this.CompetitionToggle.node.on("toggle", this.OnCompetitionToggleClick, this), this.CompetitionRewardDetailButton.node.on("click", this.OnCompetitionRewardDetailButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.WarTokenButton.node.on("click", this.OnWarTokenButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._activityConfig = u.DataCenter.Instance.ActivityConfigs[n]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), t || (this.SetDeadLine(), this.schedule(this.SetDeadLine, 1), this.OnCompetitionToggleClick(), this.SetRankList()), this.CurrencyBarItem.Init(this._activityConfig.CustomPart.Tickets[0].Items[1])
                }, t.prototype.SetDeadLine = function() {
                    var e = g.default.Instance.ComputeDeadTime(this._activityConfig.Common) - u.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "Activity_LuckyBag_LeftTime".ToUILocale().Fmt(g.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OnRelaxationToggleClick = function() {
                    this._isCompetitionGame = !1, this.SetTogglePartNodeState(), this.DetailTitle.string = "ActivityRocket_Detail_Title".ToUILocale(), this.ScoreTip.string = "ActivityRocket_Score_Tip".ToUILocale().Fmt(this._activityModel.IntArray[2]);
                    var e = this._activityConfig.CustomPart.LeisureFree - this._activityModel.IntArray[0];
                    e = e < 0 ? 0 : e, this.ChallengeTimesTip.string = "ActivityRocket_Challenge_Times".ToUILocale().Fmt(e, this._activityConfig.CustomPart.LeisureFree), this.ChallengeButtonLabel.string = e > 0 ? "ActivityRocket_Challenge_Free".ToUILocale() : "ActivityRocket_Challenge_Consume".ToUILocale(), this._isSetRelaxationReward || (this._isSetRelaxationReward = !0, this.SetScoreRewardContainer())
                }, t.prototype.OnCompetitionToggleClick = function() {
                    this._isCompetitionGame = !0, this.SetTogglePartNodeState(), this.DetailTitle.string = "ActivityRocket_Rank_Reward_Title".ToUILocale();
                    var e = this._activityConfig.CustomPart.Tickets[0].Items[0] - this._activityModel.Tickets[2];
                    e = e < 0 ? 0 : e, this.ChallengeTimesTip.string = "ActivityRocket_Challenge_Times".ToUILocale().Fmt(e, this._activityConfig.CustomPart.Tickets[0].Items[0]), this.ChallengeButtonLabel.string = e > 0 ? "ActivityRocket_Challenge_Free".ToUILocale() : "ActivityRocket_Challenge_Consume".ToUILocale(), this.SetMyRankReward()
                }, t.prototype.SetTogglePartNodeState = function() {
                    this.SmallRankListComponent.node.active = this._isCompetitionGame, this.CompetitionRewardContent.active = this._isCompetitionGame, this.RelaxtionRewardContent.active = !this._isCompetitionGame, this.ScoreTip.node.active = !this._isCompetitionGame, this.SetRedDot()
                }, t.prototype.SetScoreRewardContainer = function() {
                    for (var e = 0; e < this._activityConfig._ScoreRewards.length; e++) {
                        var t = void 0;
                        0 == e ? t = this.RelaxtionRewardNode : (t = cc.instantiate(this.RelaxtionRewardNode)).setParent(this.RelaxtionRewardNode.parent);
                        var n = this._activityConfig._ScoreRewards[e];
                        cc.find("Score", t).getComponent(cc.Label).string = n.Score.toString();
                        var o = cc.find("ItemNode", t),
                            r = cc.instantiate(this._itemPrefab);
                        r.setParent(o), r.getComponent(_.ItemComponent).Init({
                            ItemId: n.Rewards[0].Items[0],
                            Count: n.Rewards[0].Items[1]
                        })
                    }
                }, t.prototype.SetMyRankReward = function() {
                    var e = this;
                    if (!this._rankData) {
                        var t = new c.Req_Activity_GetRank;
                        t.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(t, function(t) {
                            e._rankData = t, e.SetRankRewardByData()
                        })
                    }
                }, t.prototype.SetRankRewardByData = function() {
                    var e = this;
                    this.NoRankTip.node.active = !1, this._rankData.MyRank ? (this.MyRank.string = "activityBoss_rank_num".ToUILocale().Fmt(this._rankData.MyRank), this._activityConfig._RankRewards.forEach(function(t) {
                        e._rankData.MyRank >= t.Rank[0] && (!t.Rank[1] || e._rankData.MyRank <= t.Rank[1]) && t.Rewards.forEach(function(t) {
                            var n = cc.instantiate(e._itemPrefab);
                            n.setParent(e.CompetitionRewardLayout), n.getComponent(_.ItemComponent).Init({
                                ItemId: t.Items[0],
                                Count: t.Items[1]
                            })
                        })
                    })) : (this.MyRank.string = "rank_out_max_rank".ToUILocale(), this.NoRankTip.node.active = !0)
                }, t.prototype.SetRedDot = function() {
                    C.RedDotManager.Instance.BindInstance(this.ChallengeButton.node, C.RedDotManager.Instance.InstanceRedDot.RocketChallengeButton, {
                        Value1: this._activityConfig._id,
                        extra: this._isCompetitionGame
                    })
                }, t.prototype.SetRankList = function() {
                    var e = this;
                    this.SmallRankListComponent.InitUIForActivity(this._activityConfig._id, "ActivityRocket_Title".ToUILocale(), function() {
                        var t = new c.Req_Activity_GetRank;
                        t.ActivityId = e._activityConfig._id, u.RpcComponent.Instance.Call(t, function(t) {
                            e._rankData = t;
                            var n = {};
                            n.ActivityId = e._activityConfig._id, n.Title = "ActivityRocket_Title".ToUILocale(), n.RankDatas = [t], l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonActivityRankPanel.Path, n), e.SetRankList()
                        }.bind(this))
                    }, this._rankData)
                }, t.prototype.OnCompetitionRewardDetailButtonClick = function() {
                    var e = {},
                        t = [];
                    this._activityConfig._RankRewards.forEach(function(e) {
                        var n = {};
                        n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                    }), e.Data = t, e.IsNotShowMyRank = !0, l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonRankRewardPanel.Path, e)
                }, t.prototype.OnChallengeButtonClick = function() {
                    (this._isCompetitionGame ? this._activityConfig.CustomPart.Tickets[0].Items[0] - this._activityModel.Tickets[2] : this._activityConfig.CustomPart.LeisureFree - this._activityModel.IntArray[0]) > 0 || u.DataCenter.Instance.IsItemEnough(this._activityConfig.CustomPart.Tickets[0].Items[1], 1) ? l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ActivityRocketPlayPanel.Path, this._activityConfig._id, this._isCompetitionGame) : m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activityConfig.CustomPart.Tickets[0].Items[1].ToItemName()))
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "ActivityRocket_Rule_Name".ToUILocale(),
                        titles: ["ActivityRocket_Rule_Title".ToUILocale()],
                        contents: ["ActivityRocket_Rule_Content".ToUILocale()]
                    };
                    m.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = [],
                        t = [];
                    this._activityConfig._Tasks.forEach(function(n) {
                        n.IsDaily ? e.push(n) : t.push(n)
                    });
                    var n = {
                        IsActivity: !0
                    };
                    n.Title = "knife_daily_task".ToUILocale(), n.Tasks = e, n.ActivityId = this._activityConfig._id;
                    var o = {
                        IsActivity: !0
                    };
                    o.Title = "knife_total_task".ToUILocale(), o.Tasks = t, o.ActivityId = this._activityConfig._id, l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonTaskPanel.Path, [n, o])
                }, t.prototype.OnWarTokenButtonClick = function() {
                    var e = u.ConfigDataComponent.Instance.GetConfigById(p.ItemGetWay_Config, this._activityConfig.Common.JumpId);
                    if (e && e.PanelInfo[1]) {
                        var t = g.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(I.ActivityType.ActiveWarToken, e.PanelInfo[1]);
                        t > 0 && l.UIManager.Instance.ShowUIPanel(y.PanelConfig.WarTokenListPanel.Path, !0, t)
                    }
                }, t.prototype.OnGiftButtonClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: g.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[0],
                            Title: "ActivityRocket_Gift".ToUILocale()
                        };
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent.parent.parent == this.RelaxtionRewardNode.parent && m.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.RichText)], t.prototype, "LeftTime", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(d.default)], t.prototype, "SmallRankListComponent", void 0), i([S(cc.Button)], t.prototype, "TaskButton", void 0), i([S(cc.Label)], t.prototype, "TaskButtonLabel", void 0), i([S(cc.Button)], t.prototype, "WarTokenButton", void 0), i([S(cc.Label)], t.prototype, "WarTokenButtonLabel", void 0), i([S(cc.Button)], t.prototype, "GiftButton", void 0), i([S(cc.Label)], t.prototype, "GiftButtonLabel", void 0), i([S(cc.Toggle)], t.prototype, "RelaxationToggle", void 0), i([S(cc.Label)], t.prototype, "RelaxationToggleLabel", void 0), i([S(cc.Toggle)], t.prototype, "CompetitionToggle", void 0), i([S(cc.Label)], t.prototype, "CompetitionToggleLabel", void 0), i([S(cc.RichText)], t.prototype, "TypeDesc", void 0), i([S(cc.Label)], t.prototype, "PlayTip", void 0), i([S(cc.RichText)], t.prototype, "ScoreTip", void 0), i([S(cc.Label)], t.prototype, "DetailTitle", void 0), i([S(cc.Node)], t.prototype, "RelaxtionRewardContent", void 0), i([S(cc.Label)], t.prototype, "ScoreRewardTip", void 0), i([S(cc.Node)], t.prototype, "RelaxtionRewardNode", void 0), i([S(cc.Node)], t.prototype, "CompetitionRewardContent", void 0), i([S(cc.Label)], t.prototype, "MyRank", void 0), i([S(cc.Node)], t.prototype, "CompetitionRewardLayout", void 0), i([S(cc.Button)], t.prototype, "CompetitionRewardDetailButton", void 0), i([S(cc.Label)], t.prototype, "NoRankTip", void 0), i([S(cc.Button)], t.prototype, "ChallengeButton", void 0), i([S(cc.Label)], t.prototype, "ChallengeButtonLabel", void 0), i([S(h.default)], t.prototype, "CurrencyBarItem", void 0), i([S(cc.Label)], t.prototype, "ChallengeTimesTip", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([b], t)
            }(l.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent"
    }],
    ActivityRocketPipeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5b461ndFjpEvZ7f8BARAC/8", "ActivityRocketPipeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t._isChangeAngle = !1, t._pipeDirections = [0, 0, 0, 0], t.OverState = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._pipeType = e, this._atlas = t, this._mainPanel = n, this._isSwithType = null, cc.Tween.stopAllByTarget(this.node), this.SetPipeIcon(), this.SetDownTween()
                }, t.prototype.GetPipeDirections = function() {
                    return this._pipeDirections
                }, t.prototype.GetPipeType = function() {
                    return this._pipeType
                }, t.prototype.SetPipeColor = function(e) {
                    var t = this._isSwithType ? this._isSwithType : this._pipeType;
                    this.Icon.spriteFrame = this._atlas.getSpriteFrame("" + e + t)
                }, t.prototype.SetOverShow = function(e) {
                    var t = this;
                    cc.tween(this.node).delay(.01 * e).call(function() {
                        var e = t._isSwithType ? t._isSwithType : t._pipeType;
                        t.Icon.spriteFrame = t._atlas.getSpriteFrame("green" + e)
                    }).start()
                }, t.prototype.SetSingleDownTween = function(e) {
                    cc.tween(this.node).to(.3 * e, {
                        position: new cc.Vec3(0, 0)
                    }).start()
                }, t.prototype.SetPipeIcon = function() {
                    var e = Math.random(),
                        t = 0;
                    1 == this._pipeType ? (t = Math.floor(e / .5), this._pipeDirections = [1, 0, 1, 0]) : 2 == this._pipeType ? (t = Math.floor(e / .25), this._pipeDirections = [1, 1, 0, 0]) : 3 == this._pipeType ? (t = Math.floor(e / .25), this._pipeDirections = [1, 1, 1, 0]) : 4 == this._pipeType && (this._pipeDirections = [1, 1, 1, 1]), this.node.angle = -90 * t, this.RotatePipeDirections(t), this.Icon.spriteFrame = this._atlas.getSpriteFrame("white" + this._pipeType)
                }, t.prototype.SetDownTween = function() {
                    var e = Math.floor(Number(this.node.name) / 10),
                        t = Number(this.node.name) % 10,
                        n = new cc.Vec3(0, 133 * (e + 1));
                    this.node.position = n, this.node.opacity = 0, cc.tween(this.node).delay(.1 * (9 - e) + .05 * t).to(0, {
                        opacity: 255
                    }).to(.1 * e, {
                        position: new cc.Vec3(0, 0)
                    }).start()
                }, t.prototype.RotatePipeDirections = function(e) {
                    var t = this._pipeDirections.length;
                    if (e % t != 0) {
                        e %= t;
                        for (var n = this._pipeDirections.slice(), o = 0; o < t; o++) this._pipeDirections[(o + e) % t] = n[o]
                    }
                }, t.prototype.OnNodeClick = function() {
                    var e = this;
                    if (!this._isChangeAngle && !this.OverState) {
                        if (this._mainPanel.IsUseSwitch) return this._mainPanel.IsUseSwitch = !1, this._mainPanel.UseSwitchConsume(), this._isSwithType = 4, this._pipeDirections = [1, 1, 1, 1], this.Icon.spriteFrame = this._atlas.getSpriteFrame("white" + this._isSwithType), void this._mainPanel.OnRotateSinglePipe(Number(this.node.name));
                        this._isChangeAngle = !0;
                        var t = this.node.angle - 90;
                        cc.tween(this.node).to(.1, {
                            angle: t
                        }).call(function() {
                            e.RotatePipeDirections(1), e._mainPanel.OnRotateSinglePipe(Number(e.node.name)), e._isChangeAngle = !1
                        }).start()
                    }
                }, t.prototype.onDestroy = function() {
                    cc.Tween.stopAllByTarget(this.node)
                }, i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    ActivityRocketPlayPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8f3b6pKGOFNNYWcPWUkEPR1", "ActivityRocketPlayPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/ActivityRocketPipeComponent"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/CustomProgressBar"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.LeftTime = null, t.ScoreTip = null, t.CoinCollectionTag = null, t.CoinCollectionValue = null, t.RelaxationPartNode = null, t.CurrentScoreValue = null, t.SwitchConsumeButton = null, t.SwitchConsumeTag = null, t.SwitchConsumeValue = null, t.ProgressBar = null, t.ProgressRewardNode = null, t.PipeContainer = null, t.ReturnButton = null, t._coinIndexMap = {}, t._currentScore = 0, t._rocketLevel = 1, t._rocketCoinValue = 0, t._totalRocketCount = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityRocketPanel/Components/ActivityRocketPipeComponent", cc.Prefab), n = this.LoadDynamicAsset("ActivityRocketPanel/PNG/ActivityRocketAtlas", cc.SpriteAtlas), o = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._pipePrefab = e[0], r._rocketAtlas = e[1], r._itemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ActivityRocket_Title".ToUILocale(), this.CoinCollectionTag.string = "ActivityRocket_Collection_Coin_Tag".ToUILocale(), this.SwitchConsumeTag.string = "ActivityRocket_Consume_Switch_Tag".ToUILocale(), this.CurrentScoreValue.string = "ActivityRocket_Current_Score_Tip".ToUILocale().Fmt(0), this.SwitchConsumeButton.node.on("click", this.OnSwitchConsumeButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._isCompetitionGame = t[1], this._activityConfig = u.DataCenter.Instance.ActivityConfigs[n], this._leftTime = this._isCompetitionGame ? this._activityConfig.CustomPart.Time[1] : this._activityConfig.CustomPart.Time[0], this.SetStageConfigMap(), this.SetRocketIconTimeMap()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetCurrentStageConfig(), this.SetShowPart(), this.SetPipeNode(), this.SetLeftAndRightPipes(), this.SetPipeConnecteds(), this.schedule(this.SetDeadLine, 1), this.scheduleOnce(this.FindTotalPath, 1))
                }, t.prototype.SetStageConfigMap = function() {
                    var e = this;
                    this._stageConfigMap = {}, this._activityConfig.__Stages.forEach(function(t) {
                        e._stageConfigMap[t.Id] = t
                    })
                }, t.prototype.SetRocketIconTimeMap = function() {
                    var e = this;
                    this._rocketIconTimeMap = {}, this._activityConfig.CustomPart.RocketCoin.forEach(function(t) {
                        for (var n = [], o = 1; o < t.Items.length; o++) n.push(t.Items[o]);
                        e._rocketIconTimeMap[t.Items[0]] = n
                    })
                }, t.prototype.SetCurrentStageConfig = function() {
                    if (this._isCompetitionGame) this._currentStageConfig = this._stageConfigMap[this._activityConfig.CustomPart.ArenaStage];
                    else {
                        var e = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id),
                            t = e.IntArray[1] + 1 > this._activityConfig.__Stages.length ? this._activityConfig.__Stages.length : e.IntArray[1] + 1;
                        this._currentStageConfig = this._stageConfigMap[t]
                    }
                }, t.prototype.SetShowPart = function() {
                    if (this.RelaxationPartNode.active = !this._isCompetitionGame, !this._isCompetitionGame) {
                        for (var e = 0; e < this._activityConfig._ScoreRewards.length; e++) {
                            var t = void 0;
                            0 == e ? t = this.ProgressRewardNode : (t = cc.instantiate(this.ProgressRewardNode)).setParent(this.ProgressRewardNode.parent);
                            var n = this._activityConfig._ScoreRewards[e];
                            cc.find("Score", t).getComponent(cc.Label).string = n.Score.toString();
                            var o = cc.find("ItemNode", t),
                                r = cc.instantiate(this._itemPrefab);
                            r.setParent(o), r.getComponent(d.ItemComponent).Init({
                                ItemId: n.Rewards[0].Items[0],
                                Count: n.Rewards[0].Items[1]
                            })
                        }
                        this._swithConsumeTimes = this._activityConfig.CustomPart.Universal, this.SwitchConsumeValue.string = this._swithConsumeTimes.toString(), this._highestRewardScore = this._activityConfig._ScoreRewards[this._activityConfig._ScoreRewards.length - 1].Score, this.ProgressBar.progress = 0
                    }
                    this.SetRocketLevelData()
                }, t.prototype.SetRocketLevelData = function() {
                    var e = this._activityConfig.CustomPart.Rocket[this._rocketLevel] ? this._activityConfig.CustomPart.Rocket[this._rocketLevel].Items[0] : this._activityConfig.CustomPart.Rocket[this._rocketLevel - 1].Items[0];
                    this._rocketCoinValue > e && this._rocketLevel < this._activityConfig.CustomPart.Rocket.length && (this._rocketCoinValue -= e, this._rocketLevel++, e = this._activityConfig.CustomPart.Rocket[this._rocketLevel] ? this._activityConfig.CustomPart.Rocket[this._rocketLevel].Items[0] : this._activityConfig.CustomPart.Rocket[this._rocketLevel - 1].Items[0]), this.CoinCollectionValue.string = this._rocketCoinValue + "/" + e
                }, t.prototype.SetDeadLine = function() {
                    this._leftTime--, this._leftTime < 0 ? this.ShowPlayEndPanel() : (this._rocketIconTimeMap[this._leftTime] && this.SetRocketIcon(this._rocketIconTimeMap[this._leftTime]), this.LeftTime.string = this._leftTime.toString())
                }, t.prototype.OnSwitchConsumeButtonClick = function() {
                    this.IsUseSwitch ? this.IsUseSwitch = !1 : this._swithConsumeTimes > 0 && (this.IsUseSwitch = !0)
                }, t.prototype.UseSwitchConsume = function() {
                    this._swithConsumeTimes--, this.SwitchConsumeValue.string = this._swithConsumeTimes.toString()
                }, t.prototype.OnReturnButtonClick = function() {
                    var e = this;
                    y.UIUtlity.ShowHintPanel(null, "ActivityRocket_End_Tip".ToUILocale(), "", null, "", function() {
                        e.ShowPlayEndPanel()
                    })
                }, t.prototype.ShowPlayEndPanel = function() {
                    var e = this,
                        t = new c.Req_Activity_CommonRewards;
                    t.ActivityId = this._activityConfig._id, t.Type = this._isCompetitionGame ? 2 : 1, t.Params = [this._currentScore, this._rocketCoinValue], u.RpcComponent.Instance.Call(t, function(t) {
                        l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityRocketEndPanel.Path, e._activityConfig._id, e._isCompetitionGame, e._totalRocketCount, e._currentScore, t.Rewards), l.UIManager.Instance.QuitPanelStack(e)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent.parent.parent == this.ProgressRewardNode.parent && y.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), cc.Tween.stopAllByTarget(this.node), cc.Tween.stopAllByTarget(this.ScoreTip.node), cc.Tween.stopAllByTag(h.PanelConfig.ActivityRocketPlayPanel.Id)
                }, t.prototype.SetPipeNode = function() {
                    var e = this;
                    this._pipeParentNodeMap = {}, this._pipeComponentMap = {}, this._pipeTypeCount = [0, 0, 0, 0], this.PipeContainer.children.forEach(function(t) {
                        var n = Number(t.name);
                        e._pipeParentNodeMap[n] = t;
                        var o = cc.instantiate(e._pipePrefab);
                        o.setParent(t), o.name = t.name;
                        var r = o.getComponent(p.default),
                            i = e.GetRandomPipeType();
                        r.Init(i, e._rocketAtlas, e), e._pipeComponentMap[n] = r
                    })
                }, t.prototype.GetRandomPipeType = function() {
                    for (var e = Math.random(), t = 0, n = 0; n < this._currentStageConfig.Maxs.length; n++) this._pipeTypeCount[n] < this._currentStageConfig.Maxs[n] && (t += this._currentStageConfig.Weights[n]);
                    var o = 0;
                    for (n = 0; n < this._currentStageConfig.Maxs.length; n++)
                        if (this._pipeTypeCount[n] < this._currentStageConfig.Maxs[n] && e <= (o += this._currentStageConfig.Weights[n]) / t) return this._pipeTypeCount[n]++, n + 1
                }, t.prototype.OnRotateSinglePipe = function(e) {
                    var t = this;
                    this._isHaveAPath || (cc.Tween.stopAllByTarget(this.node), [e, e - 1, e - 10, e + 1, e + 10].forEach(function(e) {
                        t._pipeComponentMap[e] && t.SetSinglePipeConneted(e)
                    }), this._coinIndexMap[e] && (this._coinIndexMap[e].angle = -this._pipeComponentMap[e].node.angle), this.FindTotalPath())
                }, t.prototype.SetLeftAndRightPipes = function() {
                    for (var e in this._leftPipeIds = [], this._rightPipeIds = [], this._pipeComponentMap) {
                        var t = Number(e);
                        t % 10 == 1 ? this._leftPipeIds.push(t) : t % 10 == 6 && this._rightPipeIds.push(t)
                    }
                }, t.prototype.SetPipeConnecteds = function() {
                    for (var e in this._pipeConnetedMap = {}, this._pipeComponentMap) {
                        var t = Number(e);
                        this.SetSinglePipeConneted(t)
                    }
                }, t.prototype.SetSinglePipeConneted = function(e) {
                    var t = this.GetPipeDirections(e);
                    if (this._pipeConnetedMap[e] = [], 1 == t[0]) {
                        var n = e - 1;
                        n % 10 > 0 && 1 == this.GetPipeDirections(n)[2] && this._pipeConnetedMap[e].push(n)
                    }
                    if (1 == t[1]) {
                        var o = e - 10;
                        Math.floor(o / 10) > 0 && 1 == this.GetPipeDirections(o)[3] && this._pipeConnetedMap[e].push(o)
                    }
                    if (1 == t[2]) {
                        var r = e + 1;
                        r % 10 < 7 && 1 == this.GetPipeDirections(r)[0] && this._pipeConnetedMap[e].push(r)
                    }
                    if (1 == t[3]) {
                        var i = e + 10;
                        Math.floor(i / 10) < 10 && 1 == this.GetPipeDirections(i)[1] && this._pipeConnetedMap[e].push(i)
                    }
                }, t.prototype.GetPipeDirections = function(e) {
                    return this._pipeComponentMap[e].OverState ? [] : this._pipeComponentMap[e].GetPipeDirections()
                }, t.prototype.FindTotalPath = function() {
                    var e = new Set;
                    this._counterArray = [], this._finishIndexArray = [], this._totalCounter = 0;
                    for (var t = 0; t < this._leftPipeIds.length; t++) {
                        var n = this._leftPipeIds[t];
                        if (1 == this.GetPipeDirections(n)[0] && !e.has(n)) {
                            var o = [];
                            this._counterArray[t] = 1, this._totalCounter++, this.GetConneted(n, o, e, t, !0)
                        }
                    }
                    for (t = 0; t < this._rightPipeIds.length; t++) {
                        var r = this._rightPipeIds[t];
                        1 != this.GetPipeDirections(r)[2] || e.has(r) || (o = [], this._counterArray[t] = 1, this._totalCounter++, this.GetConneted(r, o, e, t, !1))
                    }
                }, t.prototype.GetConneted = function(e, t, n, o, r) {
                    n.add(e), t.push(e), t[0] % 10 == 1 ? (this._pipeComponentMap[e].SetPipeColor("yellow"), e % 10 != 6 || this._finishIndexArray[o] || 1 == this.GetPipeDirections(e)[2] && (this._finishIndexArray[o] = 1)) : t[0] % 10 == 6 && this._pipeComponentMap[e].SetPipeColor("red");
                    var i = this._pipeConnetedMap[e];
                    if (i.length > 0)
                        for (var a = 0; a < i.length; a++) {
                            var s = i[a];
                            n.has(s) || (r && this._counterArray[o]++, this._totalCounter++, this.GetConneted(s, t, n, o, r))
                        }
                    r && (this._counterArray[o]--, 0 == this._counterArray[o] && this._finishIndexArray[o] && this.SetFinishPath(t)), this._totalCounter--, 0 == this._totalCounter && this.SetWhitePipe(n)
                }, t.prototype.SetFinishPath = function(e) {
                    var t = this,
                        n = e[0],
                        o = [];
                    e.forEach(function(e) {
                        t._pipeComponentMap[e].SetPipeColor("orange")
                    });
                    var r = 0;
                    cc.tween(this.node).tag(n).delay(this._activityConfig.CustomPart.Preheat / 1e3).call(function() {
                        t._isHaveAPath ? cc.Tween.stopAllByTag(n) : (t._isHaveAPath = !0, e.forEach(function(e, n) {
                            var i = t._pipeComponentMap[e];
                            i.SetOverShow(n), i.OverState = !0;
                            var a = e % 10;
                            o[a] ? o[a].push(e) : o[a] = [e], 6 == a && 1 == t.GetPipeDirections(e)[2] && (r++, t._totalRocketCount++);
                            var s = i.GetPipeType();
                            t._pipeTypeCount[s - 1]--
                        }))
                    }).delay(.5).call(function() {
                        var n = {},
                            i = [1, 1, 1, 1, 1, 1, 1];
                        e.forEach(function(e) {
                            var o = t._coinIndexMap[e];
                            o && (t.PutCoinNode(o), t._coinIndexMap[e] = null, t._rocketCoinValue += Number(o.name));
                            var r = t._pipeComponentMap[e],
                                a = e % 10,
                                s = 10 * i[a] + a;
                            r.node.name = s.toString(), r.node.parent = t._pipeParentNodeMap[s];
                            var l = t.GetRandomPipeType();
                            r.Init(l, t._rocketAtlas, t), n[s] = r, i[a]++
                        });
                        var a = function(e) {
                            var r = t._pipeComponentMap[e];
                            if (r.OverState) r.OverState = !1;
                            else {
                                var i = Number(e),
                                    a = 0;
                                if (o[i % 10].forEach(function(e) {
                                        i < e && a++
                                    }), a > 0) {
                                    var s = i + 10 * a;
                                    r.node.name = s.toString(), r.node.parent = t._pipeParentNodeMap[s], n[s] = r, r.SetSingleDownTween(a)
                                } else n[i] = r
                            }
                        };
                        for (var s in t._pipeComponentMap) a(s);
                        t.SetFinishPathAddScore(r), t._pipeComponentMap = n, t.SetPipeConnecteds(), t._isHaveAPath = !1, t.scheduleOnce(t.FindTotalPath, 1)
                    }).start()
                }, t.prototype.SetFinishPathAddScore = function(e) {
                    var t = this._rocketLevel >= this._activityConfig.CustomPart.Rocket.length ? this._activityConfig.CustomPart.Rocket[this._activityConfig.CustomPart.Rocket.length - 1].Items[1] : this._activityConfig.CustomPart.Rocket[this._rocketLevel - 1].Items[1];
                    this._currentScore += Math.floor(t * this._activityConfig.CustomPart.Torrent[e].Items[0] / 1e3), this._rocketCoinValue += this._activityConfig.CustomPart.Torrent[e].Items[1], this.CurrentScoreValue.string = "ActivityRocket_Current_Score_Tip".ToUILocale().Fmt(this._currentScore), this._isCompetitionGame || (this.ProgressBar.progress = this._currentScore / this._highestRewardScore), this.SetRocketLevelData(), e > 1 && (this.ScoreTip.string = "ActivityRocket_Rocket_Fire_Tip".ToUILocale().Fmt(e, this._activityConfig.CustomPart.Torrent[e].Items[0] / 1e3), this.ScoreTip.node.opacity = 255, cc.Tween.stopAllByTarget(this.ScoreTip.node), cc.tween(this.ScoreTip.node).delay(1).to(0, {
                        opacity: 0
                    }).start())
                }, t.prototype.SetWhitePipe = function(e) {
                    for (var t in this._pipeComponentMap) {
                        var n = Number(t);
                        e.has(n) || this._pipeComponentMap[t].SetPipeColor("white")
                    }
                }, t.prototype.SetRocketIcon = function(e) {
                    for (var t = this, n = function(n) {
                            var r = o.GetRandomIndex(),
                                i = o.GetCoinNode();
                            i.getComponent(cc.Sprite).spriteFrame = o._rocketAtlas.getSpriteFrame("coin" + e[n]), i.setParent(o._pipeParentNodeMap[r]), i.name = e[n].toString(), o._coinIndexMap[r] = i;
                            var a = Math.floor(r / 10);
                            i.y = 133 * a, cc.tween(i).tag(h.PanelConfig.ActivityRocketPlayPanel.Id).to(.1 * a, {
                                x: 0,
                                y: 0
                            }).call(function() {
                                var e = t._pipeComponentMap[r].node;
                                i.setParent(e), i.angle = -e.angle
                            }).start()
                        }, o = this, r = 0; r < e.length; r++) n(r)
                }, t.prototype.GetRandomIndex = function() {
                    var e = 10 * Math.ceil(9 * Math.random()) + Math.ceil(6 * Math.random());
                    return this._pipeComponentMap[e].OverState || this._coinIndexMap[e] ? this.GetRandomIndex() : e
                }, t.prototype.GetCoinNode = function() {
                    var e;
                    return this._coinNodePool ? this._coinNodePool.size() > 0 ? this._coinNodePool.get() : ((e = new cc.Node).addComponent(cc.Sprite), e) : (this._coinNodePool = new cc.NodePool, (e = new cc.Node).addComponent(cc.Sprite), e)
                }, t.prototype.PutCoinNode = function(e) {
                    this._coinNodePool || (this._coinNodePool = new cc.NodePool), this._coinNodePool.put(e)
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "LeftTime", void 0), i([_(cc.Label)], t.prototype, "ScoreTip", void 0), i([_(cc.Label)], t.prototype, "CoinCollectionTag", void 0), i([_(cc.Label)], t.prototype, "CoinCollectionValue", void 0), i([_(cc.Node)], t.prototype, "RelaxationPartNode", void 0), i([_(cc.Label)], t.prototype, "CurrentScoreValue", void 0), i([_(cc.Button)], t.prototype, "SwitchConsumeButton", void 0), i([_(cc.Label)], t.prototype, "SwitchConsumeTag", void 0), i([_(cc.Label)], t.prototype, "SwitchConsumeValue", void 0), i([_(g.default)], t.prototype, "ProgressBar", void 0), i([_(cc.Node)], t.prototype, "ProgressRewardNode", void 0), i([_(cc.Node)], t.prototype, "PipeContainer", void 0), i([_(cc.Button)], t.prototype, "ReturnButton", void 0), i([I], t)
            }(l.BaseUIFullScreenPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityRocketPipeComponent": "ActivityRocketPipeComponent",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityRunningTrainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6fc80pOMjhK4p/0zGC3Tftk", "ActivityRunningTrainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RunningTrainDataIndex = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/RunningTrainProgressRewardComponent"),
            m = e("../Components/ItemComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../../../Consts/Etc"),
            v = e("../../Auxiliary/GameRecord"),
            b = e("../../RedDot/RedDotManager"),
            S = e("../Components/RunningTrainConsumeButton"),
            w = e("../Components/CustomLayout"),
            P = e("./ActivityJumpBtnComponent"),
            A = e("../Components/CustomProgressBar"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property;
        (function(e) {
            e[e.AvatarType = 0] = "AvatarType", e[e.HeroId = 1] = "HeroId", e[e.Distance = 2] = "Distance", e[e.Time = 3] = "Time", e[e.ReceiveRewardId = 4] = "ReceiveRewardId", e[e.IsExclusive = 5] = "IsExclusive"
        })(l = n.RunningTrainDataIndex || (n.RunningTrainDataIndex = {}));
        var k = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.LeftTime = null, t.ProgressBar = null, t.RuleButton = null, t.ShopButton = null, t.ShopButtonLabel = null, t.GiftButton = null, t.GiftButtonLabel = null, t.TargetButton = null, t.TargetButtonLabel = null, t.RankButton = null, t.RankButtonLabel = null, t.StoryButton = null, t.StoryButtonLabel = null, t.SwordBg = null, t.RunningBgNode = null, t.RunningBg1 = null, t.RunningBg2 = null, t.LastShowContainer = null, t.LastShowHero = null, t.LastShowTipIcon = null, t.LastRankButton = null, t.LastRankButtonLabel = null, t.HeroContainer = null, t.WoodContainer = null, t.NpcNodeArray = [], t.WoodNodeArray = [], t.PlayerHeroNode = null, t.PlayerHeroBottomSpine = null, t.PlayerHeroTopSpine = null, t.CurrentPlayerInfoNode = null, t.PlayerTopSpeedRichText = null, t.PlayerTopDistanceRichText = null, t.SelectButton = null, t.SelectButtonLabel = null, t.TrainButton = null, t.TrainButtonLabel = null, t.RewardPreviewButton = null, t.RewardPreviewButtonLabel = null, t.ConsumeButtonContainer = null, t.SpeedRichText = null, t.DistanceRichText = null, t.CommonTagLabel = null, t.ExclusiveTagLabel = null, t.RewardScrollView = null, t.RewardContainer = null, t.CustomLayout = null, t.StageTagBottomBg = null, t.StageTagValue = null, t.StageCommonItemNode = null, t.StageExclusiveItemContainer = null, t.ReceiveButton = null, t.ReceiveButtonLabel = null, t.UnlockButton = null, t.UnlockButtonLabel = null, t.VipPointTag = null, t.VipPointValue = null, t.UnlockIconNode = null, t.ReturnButton = null, t.SpineContainer = null, t.SpineHeroNode = null, t.WoodSpine = null, t.BottomSpine = null, t.TopSpine = null, t.ChangePanelSpine = null, t.UnTouchNode = null, t.LayoutNode = null, t._rewardComponentArray = [], t._stageExclusiveItemArray = [], t._isSetUnlockButton = !1, t._nextRewardId = 0, t._addSpeed = 0, t._consumeButtonComponentArray = [], t._selectHeroAniSpeed = 1, t._woodAniSpeed = .77, t._loadAssets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_RUNNINGTRAIN_SELECT_HERO, this.OnSelectHeroSuccess, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_STORY_PLAY_OVER, this.PlayLastChangePanelSpine, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_RUNNINGTRAIN_SELECT_HERO, this.OnSelectHeroSuccess, this), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_STORY_PLAY_OVER, this.PlayLastChangePanelSpine, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityRunningTrainPanel/Components/RunningTrainProgressRewardComponent", cc.Prefab), n = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("ActivityRunningTrainPanel/PNG/ActivityRunningTrainAtlas", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._progressRewardPrefab = e[0], r._itemPrefab = e[1], r._atlas = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ShopButtonLabel.string = "exchange_shop".ToUILocale(), this.GiftButtonLabel.string = "RunningTrain_Gift".ToUILocale(), this.TargetButtonLabel.string = "RunningTrain_Target".ToUILocale(), this.StoryButtonLabel.string = "RunningTrain_Story".ToUILocale(), this.LastRankButtonLabel.string = "RunningTrain_Rank".ToUILocale(), this.RankButtonLabel.string = "holyArea_rank".ToUILocale(), this.SelectButtonLabel.string = "RunningTrain_Select".ToUILocale(), this.TrainButtonLabel.string = "RunningTrain_Train".ToUILocale(), this.RewardPreviewButtonLabel.string = "rewards_preview".ToUILocale(), this.ReceiveButtonLabel.string = "mail_receiveAllReward".ToUILocale(), this.CommonTagLabel.string = "RunningTrain_Common_Tag".ToUILocale(), this.ExclusiveTagLabel.string = "RunningTrain_Common_Exclusive".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.TargetButton.node.on("click", this.OnTargetButtonClick, this), this.StoryButton.node.on("click", this.OnStoryButtonClick, this), this.SelectButton.node.on("click", this.OnSelectButtonClick, this), this.LastRankButton.node.on("click", this.OnLastRankButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.TrainButton.node.on("click", this.OnTrainButtonClick, this), this.RewardPreviewButton.node.on("click", this.OnRewardPreviewButtonClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this), this.UnlockButton.node.on("click", this.OnUnlockButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this);
                var n = t[0];
                this._activityConfig = h.DataCenter.Instance.ActivityConfigs[n], this.SetConfigMap(), this.SetGiftPackArray(), this._isShowTime = f.default.Instance.ComputeDeadTime(this._activityConfig.Common) <= h.RpcComponent.Instance.ServerTime
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), [4, f.default.LoadActivityTexture(this._activityConfig.Common.Bg)];
                            case 1:
                                return t = a.sent(), this._loadAssets.push(t), this.SwordBg.node.active = 2 == this._activityConfig.CustomPart.Type, this.RunningBgNode.active = 1 == this._activityConfig.CustomPart.Type, 1 == this._activityConfig.CustomPart.Type ? (this.RunningBg1.spriteFrame = t, this.RunningBg2.spriteFrame = t, this.StageTagBottomBg.spriteFrame = this._atlas.getSpriteFrame("green_bottom_bg1")) : (this.SwordBg.spriteFrame = t, this.StageTagBottomBg.spriteFrame = this._atlas.getSpriteFrame("yellow_bottom_bg1")), this._activityConfig.Common.JumpIds && this._activityConfig.Common.JumpIds.length > 0 ? [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)] : [3, 3];
                            case 2:
                                for (n = a.sent(), o = 0; o < this._activityConfig.Common.JumpIds.length; o++) r = this._activityConfig.Common.JumpIds[o], (i = cc.instantiate(n)).parent = this.LayoutNode, i.getComponent(P.default).Init(r, this._activityConfig.Common.JumpIcons[o]);
                                a.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._playerModel = h.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._activityConfig._id), this._currentDistance = this._playerModel.IntArray[l.Distance], t || (this.Title.string = 1 == this._activityConfig.CustomPart.Type ? "RunningTrain_Title".ToUILocale() : "RunningTrain_Title_Sword".ToUILocale(), this._isShowTime ? this.SetShowTimeContainer() : (this.SetStoryGuid(), this.SetHeroAvatar(), this.SetNextRewardId(), this.SetMoveIcon(1)), this.CustomLayout.Init(this._progressRewardPrefab), this.SetLeftTime(), this.schedule(this.SetLeftTime, 1)), this._isShowTime || this.SetSelectHeroShow(), this.SetUnlockButtonState(), this.SetRewardContainer(), this.SetStageReward(), this.SetRedDot()
            }, t.prototype.SetConfigMap = function() {
                var e = this;
                this._rewardConfigMap = {}, this._activityConfig.__Rewards.forEach(function(t) {
                    e._rewardConfigMap[t.Id] = t
                }), this._attrConfigMap = {}, this._activityConfig.__AttrLevel.forEach(function(t) {
                    e._attrConfigMap[t.Id] = t
                })
            }, t.prototype.SetGiftPackArray = function() {
                var e = this;
                this._giftPackArray = [], this._activityConfig._Packs.forEach(function(t) {
                    t.Id == e._activityConfig.CustomPart.PackId ? e._exclusivePackConfig = t : e._giftPackArray.push(t)
                })
            }, t.prototype.SetStoryGuid = function() {
                for (var e = this._playerModel.StoryProgress[this._activityConfig.CustomPart.AfterEnterFragmentId] ? this._playerModel.StoryProgress[this._activityConfig.CustomPart.AfterEnterFragmentId] : 0, t = 0, n = 0; n < this._activityConfig.__StoryFragment.length; n++)
                    if (this._activityConfig.__StoryFragment[n].Id == this._activityConfig.CustomPart.AfterEnterFragmentId) {
                        t = this._activityConfig.__StoryFragment[n].ContentIds[0].Items.length;
                        break
                    } e < t && c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonStoryGuidPanel.Path, this._activityConfig._id, this._activityConfig.CustomPart.AfterEnterFragmentId)
            }, t.prototype.SetHeroAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._totalAvatarCount = 0, this._npcIndex = 0, this._npcSkeletonArray = [], this._avatarNodeMap = {}, 2 != this._activityConfig.CustomPart.Type ? [3, 2] : [4, this.LoadWoodSpine()];
                            case 1:
                                o.sent(), this.NpcNodeArray[0].position = new cc.Vec3(this.NpcNodeArray[0].position.x - 100, this.NpcNodeArray[0].position.y, 0), this.NpcNodeArray[1].position = new cc.Vec3(this.NpcNodeArray[0].position.x, this.NpcNodeArray[1].position.y, 0), o.label = 2;
                            case 2:
                                for ((e = this._playerModel.IntArray[l.HeroId]) && this.LoadAvatar([this._playerModel.IntArray[l.AvatarType], e]), t = 0; t < this._activityConfig.CustomPart.Heros.length; t++) n = this._activityConfig.CustomPart.Heros[t].Items, e && e == n[1] || this.LoadAvatar(n);
                                return [2]
                        }
                    })
                })
            }, t.prototype.LoadAvatar = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, u, d;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._totalAvatarCount == this._activityConfig.CustomPart.Heros.length ? [2] : (this._totalAvatarCount++, 1 == e[0] ? (n = h.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, e[1]), t = "Hero_" + n.Model + "/HeroAvatar", n.Model) : 2 == e[0] && (o = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, e[1]), t = "Hero_" + o.Model + "/HeroAvatar", o.Model), [4, this.LoadDynamicAsset(t, cc.Prefab)]);
                            case 1:
                                return r = s.sent(), this.isValid ? (i = cc.instantiate(r), this._playerModel.IntArray[l.HeroId] && e[1] == this._playerModel.IntArray[l.HeroId] ? (i.setParent(this.PlayerHeroNode), this._playerHeroSkeleton = i.getComponent(sp.Skeleton), 1 == this._activityConfig.CustomPart.Type && (this._playerHeroSkeleton.setAnimation(0, "move", !0), this._playerHeroSkeleton.timeScale = this._isFastMove ? 1.5 * this._selectHeroAniSpeed : this._selectHeroAniSpeed), this._spineAvatarNode = i) : (i.setParent(this.NpcNodeArray[this._npcIndex]), this._npcSkeletonArray.push(i.getComponent(sp.Skeleton)), 1 == this._activityConfig.CustomPart.Type && i.getComponent(sp.Skeleton).setAnimation(0, "move", !0), this._npcIndex++), this._playerModel.IntArray[l.HeroId] || (this._avatarNodeMap[e[1]] = i), 2 == this._activityConfig.CustomPart.Type && (a = i.getComponent(sp.Skeleton), this._playerModel.IntArray[l.HeroId] && e[1] == this._playerModel.IntArray[l.HeroId] ? (u = this._playerModel.Int2DArray[0].Items, d = this._attrConfigMap[u[0]].Ratio[0], 11510 == e[1] && (this._selectHeroAniSpeed = .77), this.SetWoodAni(a, this._woodSkeletonArray[2], d, !0, e[1])) : (d = this._attrConfigMap[1].Ratio[0], this.SetWoodAni(a, this._woodSkeletonArray[this._npcIndex - 1], d, !1, e[1]))), [2]) : (c.AssetsManager.Instance.UnloadAsset(r), [2])
                        }
                    })
                })
            }, t.prototype.LoadWoodSpine = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = this, [4, this.LoadDynamicAsset("ActivityRunningTrainPanel/Spine/UI_Effect_JSXL_jiaren", sp.SkeletonData)];
                            case 1:
                                if (e._woodSpine = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._woodSpine), [2];
                                for (this._woodSkeletonArray = [], t = 0; t < this.WoodNodeArray.length; t++)(n = this.WoodNodeArray[t].addComponent(sp.Skeleton)).skeletonData = this._woodSpine, this._woodSkeletonArray.push(n);
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetWoodAni = function(e, t, n, o, r) {
                var i = this,
                    a = 1,
                    s = this._woodAniSpeed;
                o ? (a = this._isFastMove ? 1.5 * this._selectHeroAniSpeed : this._selectHeroAniSpeed, s = this._isFastMove ? 1.5 * this._woodAniSpeed : this._woodAniSpeed) : 11510 == r && (a = .77), e.clearTracks(), t.clearTracks(), e.setBonesToSetupPose(), t.setBonesToSetupPose(), e.setAnimation(0, "attack", !1), e.timeScale = a;
                var l = Math.round(100 * Math.random()) <= n;
                cc.tween(this.WoodContainer).tag(y.PanelConfig.ActivityRunningTrainPanel.Id).delay(.5 / a).call(function() {
                    l ? t.setAnimation(0, "dead1", !1) : t.setAnimation(0, "hurt", !1), t.timeScale = s
                }).start(), e.setCompleteListener(function() {
                    i.SetWoodAni(e, t, n, o, r)
                })
            }, t.prototype.SetMoveIcon = function(e) {
                var t = new cc.Vec3(-540, this.RunningBgNode.y, 0),
                    n = new cc.Vec3(-1914, this.RunningBgNode.y, 0);
                this.SetIconTween(this.RunningBgNode, t, n, 40 * e)
            }, t.prototype.SetIconTween = function(e, t, n, o) {
                var r = this;
                cc.Tween.stopAllByTarget(e), cc.tween(e).tag(y.PanelConfig.ActivityRunningTrainPanel.Id).to((e.x - n.x) / o, {
                    position: n
                }).call(function() {
                    e.position = t, r.SetIconTween(e, t, n, o)
                }).start()
            }, t.prototype.SetUnlockButtonState = function() {
                this.UnlockButton.node.active = !1, this.UnlockIconNode.active = !1, this._playerModel.Packs[this._activityConfig.CustomPart.PackId] && this._playerModel.Packs[this._activityConfig.CustomPart.PackId].Items[0] > 0 ? this.UnlockIconNode.active = !0 : (this._isSetUnlockButton || (this._isSetUnlockButton = !0, this.UnlockButtonLabel.string = _.default.Instance.CurrencySymbol + _.default.Instance.ExchangeMoney(this._exclusivePackConfig.Money) + "common_unlock".ToUILocale(), this.VipPointTag.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.VipPointValue.string = this._exclusivePackConfig.VipPoint.toString()), this.UnlockButton.node.active = !0)
            }, t.prototype.SetSelectHeroShow = function() {
                this.SelectButton.node.active = !1, this.ConsumeButtonContainer.active = !1, this.CurrentPlayerInfoNode.active = !1, this.ProgressBar.node.active = !1, this.TrainButton.node.active = !1, this._addSpeed = 0;
                for (var e = this._playerModel.Int2DArray[0] ? this._playerModel.Int2DArray[0].Items : [], t = 0; t < e.length; t++) e[t] > 0 && (this._addSpeed += this._attrConfigMap[e[t]].AverageSpeed);
                this._playerModel.IntArray[l.HeroId] ? (this.ConsumeButtonContainer.active = !0, this.CurrentPlayerInfoNode.active = !0, this.ProgressBar.node.active = !0, this.TrainButton.node.active = !0, this.SetConsumeButton(), this.PlayerTopDistanceRichText.string = 1 == this._activityConfig.CustomPart.Type ? "RunningTrain_PlayerTop_Distance".ToUILocale().Fmt(this._currentDistance) : "RunningTrain_PlayerTop_Distance_Sword".ToUILocale().Fmt(this._currentDistance), this.PlayerTopSpeedRichText.string = 1 == this._activityConfig.CustomPart.Type ? "RunningTrain_PlayerTop_Speed".ToUILocale().Fmt(this._activityConfig.CustomPart.InitSpeed, this._addSpeed) : "RunningTrain_PlayerTop_Speed_Sword".ToUILocale().Fmt(this._activityConfig.CustomPart.InitSpeed, this._addSpeed), this.SetProgress()) : this.SelectButton.node.active = !0, this.DistanceRichText.string = 1 == this._activityConfig.CustomPart.Type ? "RunningTrain_Current_Distance".ToUILocale().Fmt(this._currentDistance) : "RunningTrain_Current_Distance_Sword".ToUILocale().Fmt(this._currentDistance), this.SpeedRichText.string = 1 == this._activityConfig.CustomPart.Type ? "RunningTrain_Current_Speed".ToUILocale().Fmt(this._activityConfig.CustomPart.InitSpeed, this._addSpeed) : "RunningTrain_Current_Speed_Sword".ToUILocale().Fmt(this._activityConfig.CustomPart.InitSpeed, this._addSpeed)
            }, t.prototype.SetConsumeButton = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this._consumeButtonPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("ActivityRunningTrainPanel/Components/RunningTrainConsumeButton", cc.Prefab)]);
                            case 1:
                                if (e._consumeButtonPrefab = r.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._consumeButtonPrefab), [2];
                                r.label = 2;
                            case 2:
                                for (t = 0; t < this._activityConfig.__ItemConsume.length; t++)(n = this._consumeButtonComponentArray[t]) || ((o = cc.instantiate(this._consumeButtonPrefab)).setParent(this.ConsumeButtonContainer), n = o.getComponent(S.default), this._consumeButtonComponentArray[t] = n), n.Init(this._activityConfig.__ItemConsume[t].Id, t, this._atlas, this._playerModel, this);
                                return b.RedDotManager.Instance.BindInstance(this._consumeButtonComponentArray[0].node, b.RedDotManager.Instance.InstanceRedDot.RunningTrainConsume1Node, {
                                    Value1: this._activityConfig._id
                                }), b.RedDotManager.Instance.BindInstance(this._consumeButtonComponentArray[1].node, b.RedDotManager.Instance.InstanceRedDot.RunningTrainConsume2Node, {
                                    Value1: this._activityConfig._id
                                }), [2]
                        }
                    })
                })
            }, t.prototype.SetProgress = function() {
                var e, t = this._playerModel.Int2DArray[0].Items,
                    n = this._attrConfigMap[t[1]].Ratio[1],
                    o = this._attrConfigMap[t[2]].Ratio[2],
                    r = v.default.GetItem(v.GameRecordDefine.RunningTrainProgressData);
                e = r ? JSON.parse(r) : f.default.Instance.ComputeActivitStartTime(this._activityConfig.Common);
                var i = Math.floor((h.RpcComponent.Instance.ServerTime - e) % ((n + o) * C.Etc.SecondDuration) / C.Etc.SecondDuration);
                if (i < n) this.ProgressBar.progress = i / n, this._isFastMove && (this._isFastMove = !1, this.SetMoveIcon(1), this._playerHeroSkeleton && (this._playerHeroSkeleton.timeScale = this._selectHeroAniSpeed, 2 == this._activityConfig.CustomPart.Type && this._woodSkeletonArray[2] && (this._woodSkeletonArray[2].timeScale = this._woodAniSpeed)), this.SetMoveNpcHero(i / n, n - i, !1));
                else if (this.ProgressBar.progress = 1 - (i - n) / o, !this._isFastMove || null == this._isFastMove) {
                    this._isFastMove = !0;
                    var a = 1 + this._attrConfigMap[t[0]].Ratio[0] / 100;
                    this.SetMoveIcon(a), this._playerHeroSkeleton && (this._playerHeroSkeleton.timeScale = 1.5 * this._selectHeroAniSpeed, 2 == this._activityConfig.CustomPart.Type && this._woodSkeletonArray[2] && (this._woodSkeletonArray[2].timeScale = 1.5 * this._woodAniSpeed)), this.SetMoveNpcHero(1 - (i - n) / o, o - i + n, !0)
                }
                1 == this._activityConfig.CustomPart.Type ? this.SetPlayerHeroSpine(i >= n) : this.SetHeroSwordSpine(i >= n)
            }, t.prototype.SetMoveNpcHero = function(e, t, n) {
                if (1 == this._activityConfig.CustomPart.Type) {
                    var o = new cc.Vec3(-700, this.NpcNodeArray[0].y, 0),
                        r = new cc.Vec3(-700, this.NpcNodeArray[1].y, 0),
                        i = new cc.Vec3(-270, this.NpcNodeArray[0].y, 0),
                        a = new cc.Vec3(300, this.NpcNodeArray[1].y, 0);
                    this.SetNpcTween(this.NpcNodeArray[0], o, i, e, t, n), this.SetNpcTween(this.NpcNodeArray[1], r, a, e, t, n)
                }
            }, t.prototype.SetNpcTween = function(e, t, n, o, r, i) {
                cc.Tween.stopAllByTarget(e);
                var a = i ? t : n,
                    s = (n.x - t.x) * o + t.x;
                e.position = new cc.Vec3(s, e.y, 0), cc.tween(e).tag(y.PanelConfig.ActivityRunningTrainPanel.Id).to(r, {
                    position: a
                }).start()
            }, t.prototype.SetPlayerHeroSpine = function(e) {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._isSetPlayerHeroSpine ? [3, 2] : [4, Promise.all([this.LoadDynamicAsset("ActivityRunningTrainPanel/Spine/UI_Effect_baofazhuangtai", sp.SkeletonData), this.LoadDynamicAsset("ActivityRunningTrainPanel/Spine/UI_Effect_baofazhuangtai_2", sp.SkeletonData)]).then(function(e) {
                                    if (!t.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                    t.PlayerHeroTopSpine.skeletonData = e[0], t.PlayerHeroBottomSpine.skeletonData = e[1]
                                })];
                            case 1:
                                n.sent(), this._isSetPlayerHeroSpine = !0, n.label = 2;
                            case 2:
                                return this.PlayerHeroTopSpine.node.active = e, this.PlayerHeroBottomSpine.node.active = e, e && (this.PlayerHeroTopSpine.setAnimation(0, "Ani_UI_Effect_baofazhuangtai", !0), this.PlayerHeroBottomSpine.setAnimation(0, "Ani_UI_Effect_baofazhuangtai_2", !0)), [2]
                        }
                    })
                })
            }, t.prototype.SetHeroSwordSpine = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._isSetPlayerHeroSpine ? [3, 2] : [4, this.LoadDynamicAsset("ActivityRunningTrainPanel/Spine/UI_Effect_JSXL_xuli", sp.SkeletonData)];
                            case 1:
                                if (t = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                this.PlayerHeroBottomSpine.skeletonData = t, this._isSetPlayerHeroSpine = !0, n.label = 2;
                            case 2:
                                return this.PlayerHeroBottomSpine.node.active = e, e && this.PlayerHeroBottomSpine.setAnimation(0, "Ani_UI_Effect_JSXL_xuli", !0), [2]
                        }
                    })
                })
            }, t.prototype.SetRewardContainer = function() {
                for (var e = 0, t = 0; t < this._activityConfig.__Rewards.length; t++)
                    if (this._activityConfig.__Rewards[t].Id == this._playerModel.IntArray[l.ReceiveRewardId]) {
                        e = t;
                        break
                    } this.CustomLayout.RenderLayOut(this._activityConfig.__Rewards.length, e)
            }, t.prototype.SetStageReward = function() {
                var e, t = this._playerModel.IntArray[l.ReceiveRewardId];
                if (t) {
                    for (var n = 0; n < this._activityConfig.CustomPart.GrandRewardIds.length; n++)
                        if (t < this._activityConfig.CustomPart.GrandRewardIds[n]) {
                            e = this._activityConfig.CustomPart.GrandRewardIds[n];
                            break
                        }
                } else e = this._activityConfig.CustomPart.GrandRewardIds[0];
                var o = this._activityConfig.CustomPart.GrandRewardIds[this._activityConfig.CustomPart.GrandRewardIds.length - 1],
                    r = this._rewardConfigMap[e] ? this._rewardConfigMap[e] : this._rewardConfigMap[o],
                    i = 1 == this._activityConfig.CustomPart.Type ? "RunningTrain_Distance".ToUILocale() : "RunningTrain_Distance_Sword".ToUILocale();
                this.StageTagValue.string = r.Count + i, this._stageCommonItem || ((s = cc.instantiate(this._itemPrefab)).setParent(this.StageCommonItemNode), this._stageCommonItem = s.getComponent(m.ItemComponent));
                var a = r.FreeRewards[0].Items;
                for (this._stageCommonItem.Init({
                        ItemId: a[0],
                        Count: a[1]
                    }), n = 0; n < r.Rewards.length; n++) {
                    var s, c = this._stageExclusiveItemArray[n];
                    c || ((s = cc.instantiate(this._itemPrefab)).setParent(this.StageExclusiveItemContainer), c = s.getComponent(m.ItemComponent), this._stageExclusiveItemArray[n] = c), c.node.active = !0;
                    var u = r.Rewards[n].Items;
                    c.Init({
                        ItemId: u[0],
                        Count: u[1]
                    })
                }
                if (r.Rewards.length < this._stageExclusiveItemArray.length)
                    for (n = r.Rewards.length; n < this._stageExclusiveItemArray.length; n++) this._stageExclusiveItemArray[n].node.active = !1
            }, t.prototype.SetRedDot = function() {
                b.RedDotManager.Instance.BindInstance(this.ReceiveButton.node, b.RedDotManager.Instance.InstanceRedDot.RunningTrainReceiveNode, {
                    Value1: this._activityConfig._id
                }), b.RedDotManager.Instance.BindInstance(this.TargetButton.node, b.RedDotManager.Instance.InstanceRedDot.RunningTrainTaskNode, {
                    Value1: this._activityConfig._id
                })
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: ("RunningTrain_Rule_Name_" + this._activityConfig.CustomPart.Type).ToUILocale(),
                    titles: [("RunningTrain_Rule_Title_" + this._activityConfig.CustomPart.Type).ToUILocale()],
                    contents: [("RunningTrain_Rule_Content_" + this._activityConfig.CustomPart.Type).ToUILocale()]
                };
                u.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnShopButtonClick = function() {
                var e = this._activityConfig.Common.Pictures,
                    t = {
                        name: ("RunningTrain_Rule_Name_" + this._activityConfig.CustomPart.Type).ToUILocale(),
                        titles: [("RunningTrain_Rule_Title_" + this._activityConfig.CustomPart.Type).ToUILocale()],
                        contents: [("RunningTrain_Rule_Content_" + this._activityConfig.CustomPart.Type).ToUILocale()]
                    };
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.ActivityExchangeShopPanel.Path, this._activityConfig._id, 1, e[0], t)
            }, t.prototype.OnGiftButtonClick = function() {
                var e = this._activityConfig.Common.Pictures,
                    t = {
                        ActivityId: this._activityConfig._id,
                        ActivityGiftPackData: this._giftPackArray,
                        Deadline: f.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                        BannerPath: e[0],
                        Title: "RunningTrain_Gift".ToUILocale()
                    };
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonGiftPackPanel.Path, t)
            }, t.prototype.OnTargetButtonClick = function() {
                var e = this;
                this._taskArray || (this._taskArray = [], this._taskArray[0] = {
                    Tasks: [],
                    IsActivity: !0,
                    Title: "task_tab_2".ToUILocale(),
                    Reddot: b.RedDotManager.Instance.InstanceRedDot.RunningTrainTaskDailyToggle,
                    ActivityId: this._activityConfig._id,
                    TextContent: "RunningTrain_Task_Today".ToUILocale()
                }, this._taskArray[1] = {
                    Tasks: [],
                    IsActivity: !0,
                    Title: "task_tab_5".ToUILocale(),
                    Reddot: b.RedDotManager.Instance.InstanceRedDot.RunningTrainTaskTotalToggle,
                    ActivityId: this._activityConfig._id,
                    TextContent: "RunningTrain_Task_Total".ToUILocale()
                }, this._activityConfig._Tasks.forEach(function(t) {
                    t.IsDaily ? e._taskArray[0].Tasks.push(t) : e._taskArray[1].Tasks.push(t)
                })), c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonTaskPanel.Path, this._taskArray)
            }, t.prototype.OnStoryButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.StoryPlayPanel.Path, this._activityConfig._id, this._activityConfig.CustomPart.BeforeEnterFragmentId, null, !0)
            }, t.prototype.OnLastRankButtonClick = function() {
                var e = new d.Req_Activity_GetRank;
                e.ActivityId = this._activityConfig._id, h.RpcComponent.Instance.Call(e, this.RequestRankSuccess.bind(this))
            }, t.prototype.OnRankButtonClick = function() {
                var e = new d.Req_Activity_RunningTrainGetRank;
                e.ActivityId = this._activityConfig._id, h.RpcComponent.Instance.Call(e, this.RequestRankSuccess.bind(this))
            }, t.prototype.RequestRankSuccess = function(e) {
                var t = {};
                t.ActivityId = this._activityConfig._id, t.Title = "bossWar_rank_name".ToUILocale().Fmt(this._activityConfig.Common.Title), t.RankDatas = [e];
                var n = [];
                this._activityConfig._RankRewards.forEach(function(e) {
                    var t = {};
                    t.Id = e.Id, t.Ranks = e.Rank, t.Rewards = e.Rewards, n.push(t)
                }), t.RewardDatas = n, c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonActivityRankPanel.Path, t)
            }, t.prototype.OnSelectButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.RunningTrainSelectHeroPanel.Path, this._activityConfig._id)
            }, t.prototype.OnTrainButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.RunningTrainPointPanel.Path, this._activityConfig._id)
            }, t.prototype.OnRewardPreviewButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.RunningTrainRewardPreviewPanel.Path, this._activityConfig._id)
            }, t.prototype.RequestConsumeSuccess = function(e, t, n) {
                return a(this, void 0, void 0, function() {
                    var o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return 1 != this._activityConfig.CustomPart.Type ? [3, 3] : this._isLoadSpine ? [3, 2] : (this._isLoadSpine = !0, [4, Promise.all([this.LoadDynamicAsset("ActivityRunningTrainPanel/Spine/UI_Effect_changpaotexun", sp.SkeletonData), this.LoadDynamicAsset("ActivityRunningTrainPanel/Spine/UI_Effect_changpaotexun_2", sp.SkeletonData)]).then(function(e) {
                                    if (!r.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                    r.TopSpine.skeletonData = e[0], r.BottomSpine.skeletonData = e[1]
                                })]);
                            case 1:
                                i.sent(), (o = cc.instantiate(this._spineAvatarNode)).setParent(this.SpineHeroNode), o.getComponent(sp.Skeleton).setAnimation(0, "move", !0), i.label = 2;
                            case 2:
                                return this.UnTouchNode.active = !0, this.SpineContainer.active = !0, this.SpineHeroNode.position = new cc.Vec3(-600, 0, 0), this.TopSpine.setAnimation(0, "Ani_UI_Effect_changpaotexun", !1), this.BottomSpine.setAnimation(0, "Ani_UI_Effect_changpaotexun_2", !1), cc.Tween.stopAllByTarget(this.SpineHeroNode), cc.tween(this.SpineHeroNode).tag(y.PanelConfig.ActivityRunningTrainPanel.Id).to(.3, {
                                    position: new cc.Vec3(-270, 0, 0)
                                }).to(.63, {
                                    position: new cc.Vec3(-90, 0, 0)
                                }).to(.47, {
                                    position: new cc.Vec3(600, 0, 0)
                                }).start(), this.BottomSpine.setCompleteListener(function() {
                                    r.OnConsumeSpineComplete(e, t, n)
                                }), [3, 6];
                            case 3:
                                return this._isLoadSpine ? [3, 5] : (this._isLoadSpine = !0, [4, Promise.all([this.LoadDynamicAsset("ActivityRunningTrainPanel/Spine/UI_Effect_JSXL_bomb", sp.SkeletonData), this.LoadDynamicAsset("ActivityRunningTrainPanel/Spine/UI_Effect_JSXL_guangdai", sp.SkeletonData)]).then(function(e) {
                                    if (!r.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                    r.TopSpine.skeletonData = e[0], r.BottomSpine.skeletonData = e[1]
                                })]);
                            case 4:
                                i.sent(), (o = cc.instantiate(this._spineAvatarNode)).setParent(this.SpineHeroNode), this._consumeHeroSpine = o.getComponent(sp.Skeleton), this.WoodSpine.skeletonData = this._woodSpine, this.SpineHeroNode.position = new cc.Vec3(-200, 0, 0), this.TopSpine.node.position = new cc.Vec3(-200, 0, 0), i.label = 5;
                            case 5:
                                this.UnTouchNode.active = !0, this.SpineContainer.active = !0, this.BottomSpine.node.opacity = 255, this.BottomSpine.clearTracks(), this.BottomSpine.setBonesToSetupPose(), this.TopSpine.clearTracks(), this.TopSpine.setBonesToSetupPose(), this.WoodSpine.clearTracks(), this.WoodSpine.setBonesToSetupPose(), this._consumeHeroSpine.clearTracks(), this._consumeHeroSpine.setBonesToSetupPose(), this.BottomSpine.setAnimation(0, "Ani_UI_Effect_JSXL_guangdai", !1), 0 == n ? (cc.tween(this.BottomSpine.node).tag(y.PanelConfig.ActivityRunningTrainPanel.Id).delay(1.4).to(.3, {
                                    opacity: 0
                                }).call(function() {
                                    r.OnConsumeSpineComplete(e, t, n)
                                }).start(), this._consumeHeroSpine.setAnimation(0, "attack", !1), this.TopSpine.setAnimation(0, "Ani_UI_Effect_JSXL_bomb", !1), this.WoodSpine.setAnimation(0, "dead2", !1)) : (cc.tween(this.BottomSpine.node).tag(y.PanelConfig.ActivityRunningTrainPanel.Id).delay(2.5).to(.3, {
                                    opacity: 0
                                }).call(function() {
                                    r.OnConsumeSpineComplete(e, t, n)
                                }).start(), this.TopSpine.setAnimation(0, "Ani_UI_Effect_JSXL_bomb2", !1), this.WoodSpine.setAnimation(0, "dead3", !1), this._consumeHeroSpine.setAnimation(0, "standby", !1), this.scheduleOnce(function() {
                                    r._consumeHeroSpine.setAnimation(0, "attack", !1)
                                }, 1)), i.label = 6;
                            case 6:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnConsumeSpineComplete = function(e, t, n) {
                this.UnTouchNode.active = !1, this.SpineContainer.active = !1, this._playerModel = h.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._activityConfig._id), this._currentDistance = this._playerModel.IntArray[l.Distance];
                var o = this._currentDistance - t * this._activityConfig.__ItemConsume[n].Param[0];
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.RunningTrainAddDistanceSuccessPanel.Path, e.Rewards, o, this._currentDistance, this._activityConfig)
            }, t.prototype.OnReceiveButtonClick = function() {
                if (this._playerModel.IntArray[l.HeroId]) {
                    var e = this._playerModel.IntArray[l.ReceiveRewardId] + 1,
                        t = this._rewardConfigMap[e];
                    if (this._playerModel.Packs[this._activityConfig.CustomPart.PackId] && this._playerModel.Packs[this._activityConfig.CustomPart.PackId].Items[0] > 0 && !this._playerModel.IntArray[l.IsExclusive] || t && !(t.Count > this._currentDistance)) {
                        var n = new d.Req_Activity_RunningTrainGetRewards;
                        n.ActivityId = this._activityConfig._id, h.RpcComponent.Instance.Call(n, function(e) {
                            u.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else u.UIUtlity.ShowFloatingHint("RunningTrain_None_Reward_Tip".ToUILocale())
                } else u.UIUtlity.ShowFloatingHint("RunningTrain_Select".ToUILocale())
            }, t.prototype.OnUnlockButtonClick = function() {
                if (null == this._exclusivePackConfig.Money || 0 == this._exclusivePackConfig.Money) {
                    var e = new d.Req_Pay_ByDiamond;
                    e.Id = this._exclusivePackConfig.Id, e.ActivityId = this._activityConfig._id, h.RpcComponent.Instance.Call(e, function(e) {
                        u.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                } else _.default.Instance.Pay(this._exclusivePackConfig.Id, this._activityConfig._id)
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.SetShowTimeContainer = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this.ProgressBar.node.active = !1, this.StoryButton.node.active = !1, this.GiftButton.node.active = !1, this.TargetButton.node.active = !1, this.TrainButton.node.active = !1, this.RankButton.node.active = !1, this.RewardPreviewButton.node.active = !1, this.HeroContainer.active = !1, this.SelectButton.node.active = !1, this.DistanceRichText.node.parent.active = !1, this.ConsumeButtonContainer.active = !1, this.LastShowContainer.active = !0, cc.Tween.stopAllByTag(y.PanelConfig.ActivityRunningTrainPanel.Id), e = h.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, 11505), t = 1 == this._activityConfig.CustomPart.Type ? "MultilangSinglePng/runningTrain_show_title" : "MultilangSinglePng/runningTrain_show_title_sword", [4, Promise.all([this.LoadDynamicAsset(h.GlobalConfigComponent.GetMultilangKey(t), cc.SpriteFrame), this.LoadDynamicAsset(e.UIAvatar + "/Avatar", cc.Prefab)]).then(function(t) {
                                    if (!n.isValid) return c.AssetsManager.Instance.UnloadAsset(t[0]), void c.AssetsManager.Instance.UnloadAsset(t[1]);
                                    n.LastShowTipIcon.spriteFrame = t[0];
                                    var o = t[1],
                                        r = cc.instantiate(o);
                                    r.setParent(n.LastShowHero), f.default.Instance.SetHeroAvatarSkin(r, e.Id, e.StarLevel)
                                })];
                            case 1:
                                return o.sent(), [2]
                        }
                    })
                })
            }, t.prototype.SetLeftTime = function() {
                var e = f.default.Instance.ComputeDeadTime(this._activityConfig.Common) - h.RpcComponent.Instance.ServerTime;
                if (e < 0) {
                    this._isShowTime || (this._isShowTime = !0, this.SetShowTimeContainer());
                    var t = f.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - h.RpcComponent.Instance.ServerTime;
                    return t < 0 ? void c.UIManager.Instance.BackUIPanel() : void(this.LeftTime.string = "<outline color=#000000 width = 2><color=#ffffff>{0}</c><color=#00ff00>{1}</c></o>".Fmt("activityTime_show".ToUILocale(), f.default.ActivityTimeLeftFormat(t)))
                }
                if (this.LeftTime.string = "Activity_Story_LeftTime".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e)), this._playerModel.IntArray[l.HeroId] && this.SetProgress(), this._playerModel.IntArray[l.Distance]) {
                    var n = (h.RpcComponent.Instance.ServerTime - this._playerModel.IntArray[l.Time]) / C.Etc.HourDuration;
                    this._currentDistance = this._playerModel.IntArray[l.Distance] + Math.floor(n * (this._activityConfig.CustomPart.InitSpeed + this._addSpeed)), this.DistanceRichText.string = 1 == this._activityConfig.CustomPart.Type ? "RunningTrain_Current_Distance".ToUILocale().Fmt(this._currentDistance) : "RunningTrain_Current_Distance_Sword".ToUILocale().Fmt(this._currentDistance), this.PlayerTopDistanceRichText.string = 1 == this._activityConfig.CustomPart.Type ? "RunningTrain_PlayerTop_Distance".ToUILocale().Fmt(this._currentDistance) : "RunningTrain_PlayerTop_Distance_Sword".ToUILocale().Fmt(this._currentDistance), this._nextRewardId && this._currentDistance > this._rewardConfigMap[this._nextRewardId].Count && (this.SetNextRewardId(), this.SetRewardContainer(), b.RedDotManager.Instance.BindInstance(this.ReceiveButton.node, b.RedDotManager.Instance.InstanceRedDot.RunningTrainReceiveNode, {
                        Value1: this._activityConfig._id
                    }))
                }
            }, t.prototype.SetNextRewardId = function() {
                for (var e = this._nextRewardId; e < this._activityConfig.__Rewards.length; e++) {
                    var t = this._activityConfig.__Rewards[e];
                    if (t.Count > this._currentDistance) {
                        this._nextRewardId = t.Id;
                        break
                    }
                }
                this._activityConfig.__Rewards[this._activityConfig.__Rewards.length - 1].Count <= this._currentDistance && (this._nextRewardId = 0)
            }, t.prototype.OnSelectHeroSuccess = function() {
                this._playerModel = h.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._activityConfig._id), this._currentDistance = this._playerModel.IntArray[l.Distance];
                var e = 0;
                for (var t in this._npcSkeletonArray = [], this._avatarNodeMap) {
                    var n = this._avatarNodeMap[t];
                    Number(t) == this._playerModel.IntArray[l.HeroId] ? (n.setParent(this.PlayerHeroNode), this._playerHeroSkeleton = n.getComponent(sp.Skeleton), this._spineAvatarNode = n) : (n.setParent(this.NpcNodeArray[e]), this._npcSkeletonArray.push(n.getComponent(sp.Skeleton)), e++)
                }
            }, t.prototype.OnItemClick = function(e, t) {
                -1 == this.StageCommonItemNode.children.indexOf(t) && -1 == this.StageExclusiveItemContainer.children.indexOf(t) || u.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                t == this.CustomLayout && e.forEach(function(e, t) {
                    e.getComponent(g.default).Init(n._activityConfig.__Rewards[t], n._playerModel, n._activityConfig, n._atlas, n._itemPrefab)
                })
            }, t.prototype.PlayLastChangePanelSpine = function() {
                return a(this, void 0, void 0, function() {
                    var e, t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._isSetChangePanelSpine ? [3, 2] : (this._isSetChangePanelSpine = !0, [4, this.LoadDynamicAsset("ActivityStoryTaskPanel/Spine/UI_effect_heipingzhuanchang", sp.SkeletonData)]);
                            case 1:
                                if (e = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                this.ChangePanelSpine.skeletonData = e, n.label = 2;
                            case 2:
                                return this.UnTouchNode.active = !0, this.ChangePanelSpine.setAnimation(0, "Ani_UI_effect_heipingzhuanchang2", !1), this.ChangePanelSpine.setCompleteListener(function() {
                                    t.UnTouchNode.active = !1
                                }), [2]
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                this.unschedule(this.SetLeftTime), cc.Tween.stopAllByTag(y.PanelConfig.ActivityRunningTrainPanel.Id), this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([L(cc.Label)], t.prototype, "Title", void 0), i([L(cc.RichText)], t.prototype, "LeftTime", void 0), i([L(A.default)], t.prototype, "ProgressBar", void 0), i([L(cc.Button)], t.prototype, "RuleButton", void 0), i([L(cc.Button)], t.prototype, "ShopButton", void 0), i([L(cc.Label)], t.prototype, "ShopButtonLabel", void 0), i([L(cc.Button)], t.prototype, "GiftButton", void 0), i([L(cc.Label)], t.prototype, "GiftButtonLabel", void 0), i([L(cc.Button)], t.prototype, "TargetButton", void 0), i([L(cc.Label)], t.prototype, "TargetButtonLabel", void 0), i([L(cc.Button)], t.prototype, "RankButton", void 0), i([L(cc.Label)], t.prototype, "RankButtonLabel", void 0), i([L(cc.Button)], t.prototype, "StoryButton", void 0), i([L(cc.Label)], t.prototype, "StoryButtonLabel", void 0), i([L(cc.Sprite)], t.prototype, "SwordBg", void 0), i([L(cc.Node)], t.prototype, "RunningBgNode", void 0), i([L(cc.Sprite)], t.prototype, "RunningBg1", void 0), i([L(cc.Sprite)], t.prototype, "RunningBg2", void 0), i([L(cc.Node)], t.prototype, "LastShowContainer", void 0), i([L(cc.Node)], t.prototype, "LastShowHero", void 0), i([L(cc.Sprite)], t.prototype, "LastShowTipIcon", void 0), i([L(cc.Button)], t.prototype, "LastRankButton", void 0), i([L(cc.Label)], t.prototype, "LastRankButtonLabel", void 0), i([L(cc.Node)], t.prototype, "HeroContainer", void 0), i([L(cc.Node)], t.prototype, "WoodContainer", void 0), i([L([cc.Node])], t.prototype, "NpcNodeArray", void 0), i([L([cc.Node])], t.prototype, "WoodNodeArray", void 0), i([L(cc.Node)], t.prototype, "PlayerHeroNode", void 0), i([L(sp.Skeleton)], t.prototype, "PlayerHeroBottomSpine", void 0), i([L(sp.Skeleton)], t.prototype, "PlayerHeroTopSpine", void 0), i([L(cc.Node)], t.prototype, "CurrentPlayerInfoNode", void 0), i([L(cc.RichText)], t.prototype, "PlayerTopSpeedRichText", void 0), i([L(cc.RichText)], t.prototype, "PlayerTopDistanceRichText", void 0), i([L(cc.Button)], t.prototype, "SelectButton", void 0), i([L(cc.Label)], t.prototype, "SelectButtonLabel", void 0), i([L(cc.Button)], t.prototype, "TrainButton", void 0), i([L(cc.Label)], t.prototype, "TrainButtonLabel", void 0), i([L(cc.Button)], t.prototype, "RewardPreviewButton", void 0), i([L(cc.Label)], t.prototype, "RewardPreviewButtonLabel", void 0), i([L(cc.Node)], t.prototype, "ConsumeButtonContainer", void 0), i([L(cc.RichText)], t.prototype, "SpeedRichText", void 0), i([L(cc.RichText)], t.prototype, "DistanceRichText", void 0), i([L(cc.Label)], t.prototype, "CommonTagLabel", void 0), i([L(cc.Label)], t.prototype, "ExclusiveTagLabel", void 0), i([L(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([L(cc.Node)], t.prototype, "RewardContainer", void 0), i([L(w.default)], t.prototype, "CustomLayout", void 0), i([L(cc.Sprite)], t.prototype, "StageTagBottomBg", void 0), i([L(cc.Label)], t.prototype, "StageTagValue", void 0), i([L(cc.Node)], t.prototype, "StageCommonItemNode", void 0), i([L(cc.Node)], t.prototype, "StageExclusiveItemContainer", void 0), i([L(cc.Button)], t.prototype, "ReceiveButton", void 0), i([L(cc.Label)], t.prototype, "ReceiveButtonLabel", void 0), i([L(cc.Button)], t.prototype, "UnlockButton", void 0), i([L(cc.Label)], t.prototype, "UnlockButtonLabel", void 0), i([L(cc.Label)], t.prototype, "VipPointTag", void 0), i([L(cc.Label)], t.prototype, "VipPointValue", void 0), i([L(cc.Node)], t.prototype, "UnlockIconNode", void 0), i([L(cc.Button)], t.prototype, "ReturnButton", void 0), i([L(cc.Node)], t.prototype, "SpineContainer", void 0), i([L(cc.Node)], t.prototype, "SpineHeroNode", void 0), i([L(sp.Skeleton)], t.prototype, "WoodSpine", void 0), i([L(sp.Skeleton)], t.prototype, "BottomSpine", void 0), i([L(sp.Skeleton)], t.prototype, "TopSpine", void 0), i([L(sp.Skeleton)], t.prototype, "ChangePanelSpine", void 0), i([L(cc.Node)], t.prototype, "UnTouchNode", void 0), i([L(cc.Node)], t.prototype, "LayoutNode", void 0), i([R], t)
        }(c.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/RunningTrainConsumeButton": "RunningTrainConsumeButton",
        "../Components/RunningTrainProgressRewardComponent": "RunningTrainProgressRewardComponent",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent"
    }],
    ActivityRushGiftItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b0cbdIJQc9GIIvIxc3ZHdUl", "ActivityRushGiftItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./CustomLayout"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Panel/CommonGiftPackComponent"),
            d = e("../../Auxiliary/DataUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomLayout = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    s.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    s.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._activityConfig = e, this._itemPrefab = n, this._isInit || (this._isInit = !0, this.CustomLayout.Init(t), this.SetGiftPackMap()), this.SetGiftPackData(), this.CustomLayout.RenderLayOut(this._sortGiftPackData.length)
                }, t.prototype.SetGiftPackMap = function() {
                    var e = this._activityConfig._Packs;
                    this._giftPackMap = {}, this._giftPackConfig = {};
                    for (var t = 0; t < e.length; t++) this._giftPackConfig[e[t].Id] = e[t], e[t].UnlockCondition && (this._giftPackMap[e[t].UnlockCondition] = e[t].Id)
                }, t.prototype.SetGiftPackData = function() {
                    var e = this;
                    this._sortGiftPackData = [], this._model = c.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityConfig._id);
                    var t = [],
                        n = [];
                    this._activityConfig._Packs.forEach(function(o) {
                        if (e.CheckGiftPackIsAllBuy(o, e._activityConfig._id)) e._giftPackMap[o.Id] || t.push(o);
                        else if (o.UnlockCondition) {
                            var r = e._giftPackConfig[o.UnlockCondition];
                            e.CheckGiftPackIsAllBuy(r, e._activityConfig._id) && n.push(o)
                        } else n.push(o)
                    }), t.sort(function(e, t) {
                        return e.SortId - t.SortId
                    }), n.sort(function(e, t) {
                        return e.SortId - t.SortId
                    }), this._sortGiftPackData = n.concat(t)
                }, t.prototype.CheckGiftPackIsAllBuy = function(e, t) {
                    var n = !1,
                        o = 0;
                    return t ? (this._model && this._model.Packs && this._model.Packs[e.Id] && this._model.Packs[e.Id].Items && this._model.Packs[e.Id].Items[0] && (o = this._model.Packs[e.Id].Items[0]), n = o >= e.LimitCount && e.LimitType > 0) : n = (o = d.default.Instance.GetGiftBuyCount(e.Id)) >= e.LimitCount && e.LimitType > 0, n
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(p.default).Init(n._itemPrefab, n._sortGiftPackData[t], n._activityConfig._id)
                    })
                }, i([y(a.default)], t.prototype, "CustomLayout", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Panel/CommonGiftPackComponent": "CommonGiftPackComponent",
        "./CustomLayout": "CustomLayout"
    }],
    ActivityRushRankFrameEntryItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "47825tMd95CaL2KshIQm/ca", "ActivityRushRankFrameEntryItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.NameIcon = null, t.LeftTimeRichText = null, t.RuleButton = null, t.RedDotNode = null, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnEntryItemClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this)
                }, t.prototype.Init = function(e) {
                    this._activityConfig = c.DataCenter.Instance.ActivityConfigs[e], this.SetBgAndTitle(), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)
                }, t.prototype.SetBgAndTitle = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = this._activityConfig.Common.BannerImage.split("|")[0], [4, Promise.all([p.default.LoadActivityTexture(e), p.default.LoadActivityTexture(this._activityConfig.Common.Pictures[0])]).then(function(e) {
                                        if (!t.isValid) return l.AssetsManager.Instance.UnloadAsset(e[0]), void l.AssetsManager.Instance.UnloadAsset(e[1]);
                                        t._unloadAssets.push(e[0]), t._unloadAssets.push(e[1]), t.Bg.spriteFrame = e[0], t.NameIcon.spriteFrame = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetDeadLine = function() {
                    var e = p.default.Instance.ComputeDeadTime(this._activityConfig.Common) - c.RpcComponent.Instance.ServerTime;
                    if (e < 0) {
                        var t = p.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - c.RpcComponent.Instance.ServerTime;
                        return t < 0 && (this.node.active = !1), void(this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(t)))
                    }
                    this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OnEntryItemClick = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ActivityRushRankPanel.Path, this._activityConfig._id), l.UIManager.Instance.QuitPanelStack(d.PanelConfig.ActivityRushRankFramePanel.Path)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: ("ActivityRushRankFrame_Rule_Name_" + this._activityConfig.CustomPart.Type).ToUILocale(),
                        titles: [("ActivityRushRankFrame_Rule_Title_" + this._activityConfig.CustomPart.Type).ToUILocale()],
                        contents: [("ActivityRushRank_Rule_Content_" + this._activityConfig.CustomPart.Type).ToUILocale()]
                    };
                    u.UIUtlity.ShowRulePanel(e)
                }, t.prototype.SetRedDotState = function(e) {
                    this.RedDotNode.active = e
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._unloadAssets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Sprite)], t.prototype, "Bg", void 0), i([y(cc.Sprite)], t.prototype, "NameIcon", void 0), i([y(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([y(cc.Button)], t.prototype, "RuleButton", void 0), i([y(cc.Node)], t.prototype, "RedDotNode", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    ActivityRushRankFramePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c46balpW9VAMI62uH2524gX", "ActivityRushRankFramePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/ActivityRushRankFrameEntryItem"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../RedDot/RedDotManager"),
            y = e("../../RedDot/RedDotDataHandler"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleIcon = null, t.EntryContainer = null, t.RewardButton = null, t.RewardButtonLabel = null, t.ReceivedIconNode = null, t.ShopButton = null, t.ShopButtonLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/rush_rank"), cc.SpriteFrame), n = this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/ActivityRushRankFrameEntryItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._titleIcon = e[0], o._entryPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleIcon.spriteFrame = this._titleIcon, this.RewardButtonLabel.string = "recharge_feedback_free".ToUILocale(), this.ShopButtonLabel.string = "shop_mainTittle".ToUILocale(), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = u.DataCenter.Instance.ActivityConfigs[t[0]]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetEntryContainer(), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)), this._playerModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this.ReceivedIconNode.active = !!this._playerModel.DailyRewards, this.SetRedDot()
                }, t.prototype.SetEntryContainer = function() {
                    this._entryComponentArray = [];
                    for (var e = 0; e < this._activityConfig.CustomPart.SubIds.length; e++) {
                        var t = cc.instantiate(this._entryPrefab);
                        t.setParent(this.EntryContainer), t.getComponent(p.default).Init(Number(this._activityConfig.CustomPart.SubIds[e])), this._entryComponentArray[e] = t.getComponent(p.default)
                    }
                }, t.prototype.SetRedDot = function() {
                    f.RedDotManager.Instance.BindInstance(this.RewardButton.node, f.RedDotManager.Instance.InstanceRedDot.RushRankFrameDailyReward, {
                        Value1: this._activityConfig._id
                    });
                    for (var e = 0; e < this._activityConfig.CustomPart.SubIds.length; e++) this._entryComponentArray[e].SetRedDotState(y.RedDotDataHandler.Instance.RefreshRushRankEntryNode({
                        Value1: Number(this._activityConfig.CustomPart.SubIds[e])
                    }))
                }, t.prototype.SetDeadLine = function() {
                    g.default.Instance.ComputeDeadTime(this._activityConfig.Common) - u.RpcComponent.Instance.ServerTime < 0 && (this.RewardButton.node.active = !1, g.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - u.RpcComponent.Instance.ServerTime < 0 && l.UIManager.Instance.BackUIPanel())
                }, t.prototype.OnRewardButtonClick = function() {
                    if (this._playerModel.DailyRewards) h.UIUtlity.ShowFloatingHint("ActivityPurchase_DailyReward_Tip".ToUILocale());
                    else {
                        var e = new c.Req_Activity_CommonDailyRewards;
                        e.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(e, function(e) {
                            h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnShopButtonClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            name: "ActivityRushRankFrame_Rule_Name".ToUILocale(),
                            titles: ["ActivityRushRankFrame_Rule_Title".ToUILocale()],
                            contents: ["ActivityRushRankFrame_Rule_Content".ToUILocale()]
                        };
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ActivityExchangeShopPanel.Path, this._activityConfig._id, 1, e[0], t)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([_(cc.Sprite)], t.prototype, "TitleIcon", void 0), i([_(cc.Node)], t.prototype, "EntryContainer", void 0), i([_(cc.Button)], t.prototype, "RewardButton", void 0), i([_(cc.Label)], t.prototype, "RewardButtonLabel", void 0), i([_(cc.Node)], t.prototype, "ReceivedIconNode", void 0), i([_(cc.Button)], t.prototype, "ShopButton", void 0), i([_(cc.Label)], t.prototype, "ShopButtonLabel", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityRushRankFrameEntryItem": "ActivityRushRankFrameEntryItem"
    }],
    ActivityRushRankItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0a0eapY7aZN0KFcA59EjhQ1", "ActivityRushRankItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./CustomLayout"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./HeadComponent"),
            p = e("./RushRankListItem"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomLayout = null, t.MyRankIcon = null, t.MyRankLabel = null, t.MyName = null, t.MyHeadNode = null, t.MyScoreTag = null, t.MyScoreValue = null, t.MyScoreBgNode = null, t.COPPER_ORDER = 3, t._isinit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._activityConfig = e, this._rankData = t, this._headPrefab = o, this._atlas = r, this._isinit || (this._isinit = !0, this.CustomLayout.Init(n)), this.SetRankData(), this.SetMyRank()
                }, t.prototype.SetRankData = function() {
                    var e = Math.max(this._rankData.Rows.length - this.COPPER_ORDER, 0);
                    this.CustomLayout.RenderLayOut(e)
                }, t.prototype.SetMyRank = function() {
                    var e = this._rankData.MyRank ? this._rankData.MyRank : -1;
                    if (this.MyScoreTag.string = 5 == this._activityConfig.CustomPart.Type ? "common_layer".ToUILocale() : "happyTurn_score_desc".ToUILocale(), this.MyRankIcon.node.active = !1, this.MyRankLabel.node.active = !1, e < 0 ? (this.MyRankLabel.node.active = !0, this.MyRankLabel.string = "rank_out_max_rank".ToUILocale()) : e < 3 ? (this.MyRankIcon.node.active = !0, this.MyRankIcon.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e)) : (this.MyRankLabel.node.active = !0, this.MyRankLabel.string = e.toString()), this.MyScoreValue.string = this._rankData.MyRankData.Value.toString(), this.MyName.string = this._rankData.MyRankData.PlayerInfo.Name, !this._myHeadComponent) {
                        var t = cc.instantiate(this._headPrefab);
                        t.setParent(this.MyHeadNode), this._myHeadComponent = t.getComponent(u.default)
                    }
                    this._myHeadComponent.SetUI(this._rankData.MyRankData.PlayerInfo.HeadIcon, this._rankData.MyRankData.PlayerInfo.HeadFrame, this._rankData.MyRankData.PlayerInfo.Title), this._myHeadComponent.SetLevel(this._rankData.MyRankData.PlayerInfo.Level)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(p.default).Init(t + n.COPPER_ORDER, n._rankData.Rows[t + n.COPPER_ORDER], n._activityConfig.CustomPart.Type, n._headPrefab, n._atlas)
                    })
                }, i([f(s.default)], t.prototype, "CustomLayout", void 0), i([f(cc.Sprite)], t.prototype, "MyRankIcon", void 0), i([f(cc.Label)], t.prototype, "MyRankLabel", void 0), i([f(cc.Label)], t.prototype, "MyName", void 0), i([f(cc.Node)], t.prototype, "MyHeadNode", void 0), i([f(cc.Label)], t.prototype, "MyScoreTag", void 0), i([f(cc.Label)], t.prototype, "MyScoreValue", void 0), i([f(cc.Node)], t.prototype, "MyScoreBgNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomLayout": "CustomLayout",
        "./HeadComponent": "HeadComponent",
        "./RushRankListItem": "RushRankListItem"
    }],
    ActivityRushRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f5efayNxs9H6Y6iatlMQOYb", "ActivityRushRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomToggle"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ActivityRushTaskItem"),
            g = e("../Components/ActivityRushRewardItem"),
            m = e("../Components/ActivityRushRankPlayerItem"),
            I = e("../Components/ActivityRushGiftItem"),
            _ = e("../Components/ActivityRushRankItem"),
            C = e("../../RedDot/RedDotManager"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.Task = 0] = "Task", e[e.Reward = 1] = "Reward", e[e.Rank = 2] = "Rank", e[e.Gift = 3] = "Gift", e[e.TotalCount = 4] = "TotalCount"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.ToggleContainer = null, t.PlatformNode = null, t.PlayerNodeArray = [], t.TaskBanner = null, t.TaskNameIcon = null, t.TaskPartNode = null, t.RewardPartNode = null, t.RankPartNode = null, t.GiftPartNode = null, t.LeftTimeNode = null, t.LeftTimeRichText = null, t.RuleButton = null, t.ReturnButton = null, t.BgPrefabNode = null, t._loadAssets = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("Buttons/Toggle2", cc.Prefab), n = this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/ActivityRushRankPlayerItem", cc.Prefab), o = this.LoadDynamicAsset(f.BundlePath.HeadComponent, cc.Prefab), r = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), i = this.LoadDynamicAsset("RankPanel/Png/RankAtlas", cc.SpriteAtlas), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                    a._togglePrefab = e[0], a._playerPrefab = e[1], a._headPrefab = e[2], a._itemPrefab = e[3], a._atlas = e[4]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return e.prototype.PreloadByData.call(this), [2]
                    })
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._activityConfig = p.DataCenter.Instance.ActivityConfigs[t[0]], h.default.Instance.ComputeDeadTime(this._activityConfig.Common) - p.RpcComponent.Instance.ServerTime < 0 || 0 == this._activityConfig._Tasks.length ? this._toggleShowIndexs = [l.Rank, l.Reward, l.Gift] : this._toggleShowIndexs = [l.Rank, l.Reward, l.Task, l.Gift], this._currentIndex = l.Rank
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.SetToggleContainer(), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)), this._playerModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), this.SetCurrentToggleContent(), this.SetRedDot()
            }, t.prototype.SetToggleContainer = function() {
                this._toggleNodeArray = [];
                for (var e = 0; e < this._toggleShowIndexs.length; e++) {
                    var t = cc.instantiate(this._togglePrefab);
                    t.setParent(this.ToggleContainer);
                    var n = this._toggleShowIndexs[e];
                    t.name = n.toString(), t.getComponent(d.default).Init(("ActivityRushRank_Title_" + n).ToUILocale()), t.on("toggle", this.OnSwitchToggle, this), n == this._currentIndex && (t.getComponent(d.default).isChecked = !0), this._toggleNodeArray[n] = t
                }
            }, t.prototype.OnSwitchToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentIndex != t && (this._currentIndex = t, this.SetCurrentToggleContent())
            }, t.prototype.SetCurrentToggleContent = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, u = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                if (this.Title.string = ("ActivityRushRank_Title_" + this._currentIndex).ToUILocale(), this._currentIndex != l.Task && !this._rankData) return this.RequestRankData(), [2];
                                switch (this.TaskPartNode.active = !1, this.TaskBanner.node.active = !1, this.RewardPartNode.active = !1, this.RankPartNode.active = !1, this.GiftPartNode.active = !1, this.PlatformNode.active = !0, this.BgPrefabNode.height = 1200, this._currentIndex) {
                                    case l.Task:
                                        return [3, 1];
                                    case l.Reward:
                                        return [3, 6];
                                    case l.Rank:
                                        return [3, 9];
                                    case l.Gift:
                                        return [3, 12]
                                }
                                return [3, 15];
                            case 1:
                                return this.TaskPartNode.active = !0, this.TaskBanner.node.active = !0, this.PlatformNode.active = !1, this.BgPrefabNode.height = this.node.height - 490, this._taskPartComponent ? [3, 5] : [4, Promise.all([this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/ActivityRushTaskItem", cc.Prefab), this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/RushRankTaskListItem", cc.Prefab)]).then(function(t) {
                                    if (!u.isValid) return c.AssetsManager.Instance.UnloadAsset(t[0]), void c.AssetsManager.Instance.UnloadAsset(t[1]);
                                    e = t[0], u._taskPrefab = t[1]
                                })];
                            case 2:
                                return s.sent(), [4, h.default.LoadActivityTexture(this._activityConfig.Common.Pictures[0])];
                            case 3:
                                return t = s.sent(), [4, h.default.LoadActivityTexture(this._activityConfig.Common.Pictures[1])];
                            case 4:
                                if (n = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(t), c.AssetsManager.Instance.UnloadAsset(n), [2];
                                this._loadAssets.push(t), this._loadAssets.push(n), this.TaskBanner.spriteFrame = t, this.TaskNameIcon.spriteFrame = n, (a = cc.instantiate(e)).setParent(this.TaskPartNode), a.height = this.node.height, this._taskPartComponent = a.getComponent(y.default), s.label = 5;
                            case 5:
                                return this._taskPartComponent.Init(this._activityConfig, this._taskPrefab, this._itemPrefab), [3, 15];
                            case 6:
                                return this.RewardPartNode.active = !0, this._rewardPartComponent ? [3, 8] : [4, Promise.all([this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/ActivityRushRewardItem", cc.Prefab), this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/RushRankRewardListItem", cc.Prefab)]).then(function(e) {
                                    if (!u.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                    o = e[0], u._rewardPrefab = e[1]
                                })];
                            case 7:
                                s.sent(), (a = cc.instantiate(o)).setParent(this.RewardPartNode), this._rewardPartComponent = a.getComponent(g.default), s.label = 8;
                            case 8:
                                return this._rewardPartComponent.Init(this._activityConfig, this._rankData, this._rewardPrefab, this._headPrefab, this._itemPrefab, this._atlas), [3, 15];
                            case 9:
                                return this.RankPartNode.active = !0, this._rankPartComponent ? [3, 11] : [4, Promise.all([this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/ActivityRushRankItem", cc.Prefab), this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/RushRankListItem", cc.Prefab)]).then(function(e) {
                                    if (!u.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                    r = e[0], u._rankPrefab = e[1]
                                })];
                            case 10:
                                s.sent(), (a = cc.instantiate(r)).setParent(this.RankPartNode), this._rankPartComponent = a.getComponent(_.default), s.label = 11;
                            case 11:
                                return this._rankPartComponent.Init(this._activityConfig, this._rankData, this._rankPrefab, this._headPrefab, this._atlas), [3, 15];
                            case 12:
                                return this.GiftPartNode.active = !0, this._giftPartComponent ? [3, 14] : [4, Promise.all([this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/ActivityRushGiftItem", cc.Prefab), this.LoadDynamicAsset("ActivityRushRankFramePanel/Components/RushRankGiftListItem", cc.Prefab)]).then(function(e) {
                                    if (!u.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                    i = e[0], u._giftPrefab = e[1]
                                })];
                            case 13:
                                s.sent(), (a = cc.instantiate(i)).setParent(this.GiftPartNode), this._giftPartComponent = a.getComponent(I.default), s.label = 14;
                            case 14:
                                return this._giftPartComponent.Init(this._activityConfig, this._giftPrefab, this._itemPrefab), [3, 15];
                            case 15:
                                return [2]
                        }
                    })
                })
            }, t.prototype.RequestRankData = function() {
                var e = this,
                    t = new u.Req_Activity_GetRank;
                t.ActivityId = this._activityConfig._id, p.RpcComponent.Instance.Call(t, function(t) {
                    e._rankData = t, e.SetCurrentToggleContent(), e.SetAvatar()
                })
            }, t.prototype.SetAvatar = function() {
                for (var e = 0; e < this.PlayerNodeArray.length; e++) {
                    var t = cc.instantiate(this._playerPrefab);
                    t.setParent(this.PlayerNodeArray[e]), t.getComponent(m.default).Init(e, this._rankData.Rows[e], this._activityConfig.CustomPart.Type, this._atlas)
                }
            }, t.prototype.SetDeadLine = function() {
                var e = h.default.Instance.ComputeDeadTime(this._activityConfig.Common) - p.RpcComponent.Instance.ServerTime;
                if (e < 0) {
                    var t = h.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - p.RpcComponent.Instance.ServerTime;
                    return t < 0 ? void c.UIManager.Instance.BackUIPanel() : void(this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(t)))
                }
                this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
            }, t.prototype.SetRedDot = function() {
                C.RedDotManager.Instance.BindInstance(this._toggleNodeArray[l.Task], C.RedDotManager.Instance.InstanceRedDot.RushRankTaskToggle, {
                    Value1: this._activityConfig._id
                }), C.RedDotManager.Instance.BindInstance(this._toggleNodeArray[l.Gift], C.RedDotManager.Instance.InstanceRedDot.RushRankGiftToggle, {
                    Value1: this._activityConfig._id
                })
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks(), this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Node)], t.prototype, "ToggleContainer", void 0), i([S(cc.Node)], t.prototype, "PlatformNode", void 0), i([S([cc.Node])], t.prototype, "PlayerNodeArray", void 0), i([S(cc.Sprite)], t.prototype, "TaskBanner", void 0), i([S(cc.Sprite)], t.prototype, "TaskNameIcon", void 0), i([S(cc.Node)], t.prototype, "TaskPartNode", void 0), i([S(cc.Node)], t.prototype, "RewardPartNode", void 0), i([S(cc.Node)], t.prototype, "RankPartNode", void 0), i([S(cc.Node)], t.prototype, "GiftPartNode", void 0), i([S(cc.Node)], t.prototype, "LeftTimeNode", void 0), i([S(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([S(cc.Node)], t.prototype, "BgPrefabNode", void 0), i([b], t)
        }(c.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/ActivityRushGiftItem": "ActivityRushGiftItem",
        "../Components/ActivityRushRankItem": "ActivityRushRankItem",
        "../Components/ActivityRushRankPlayerItem": "ActivityRushRankPlayerItem",
        "../Components/ActivityRushRewardItem": "ActivityRushRewardItem",
        "../Components/ActivityRushTaskItem": "ActivityRushTaskItem",
        "../Components/CustomToggle": "CustomToggle"
    }],
    ActivityRushRankPlayerItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e77d3vN12tPo4v6bSjK3Sy9", "ActivityRushRankPlayerItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../ShareConsts/BattleConsts"),
            y = e("./LoadAssetHelper"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property;
        (function(e) {
            e[e.Pet = 100] = "Pet", e[e.MagicCircleBottom = 200] = "MagicCircleBottom", e[e.MagicCircleTop = 300] = "MagicCircleTop"
        })(l || (l = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.PlayerNode = null, t.Name = null, t.ScoreTag = null, t.ScoreValue = null, t.RankIcon = null, t.MagicCircleBottomNode = null, t.AvatarNode = null, t.MagicCircleTopNode = null, t.PetNode = null, t.NoneTip = null, t.Tag = null, t.PlatformIcon = null, t.TAGPOSITION = [
                    [9, -140],
                    [25, -146],
                    [-12, -145]
                ], t.AVATARPOSITION = [
                    [0, -92],
                    [15, -140],
                    [-35, -140]
                ], t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.NoneTip.string = "rank_no_people".ToUILocale(), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(y.default))
            }, t.prototype.Init = function(e, t, n, o) {
                if (this.NoneTip.node.active = !1, this.PlayerNode.active = !0, !t) return this.NoneTip.node.active = !0, void(this.PlayerNode.active = !1);
                this._rankData = t, this.Name.string = t.PlayerInfo.Name, this.ScoreValue.string = t.Value.toString(), this.RankIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + (e + 1)), this.Tag.spriteFrame = o.getSpriteFrame("title" + (e + 1)), this.PlatformIcon.spriteFrame = o.getSpriteFrame("platform" + (e + 1)), this.ScoreTag.string = 5 == n ? "common_layer".ToUILocale() : "happyTurn_score_desc".ToUILocale(), this.SetAvatar()
            }, t.prototype.SetAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e = this._rankData.PlayerInfo.HeadIcon, (t = p.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, e)) || (t = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, e)), n = "Hero_" + t.Model + "/HeroAvatar", o = this, [4, c.AssetsManager.Instance.LoadAsset(n, cc.Prefab)];
                            case 1:
                                return o._heroPrefab = s.sent(), this.isValid ? ((r = cc.instantiate(this._heroPrefab)).setParent(this.AvatarNode), r.getComponent(sp.Skeleton).setAnimation(0, f.SkillAnimationType.Standby, !0), this.MagicCircleTopNode && this.MagicCircleBottomNode && (i = this._rankData.PlayerInfo.MagicCircle, this.SetMagicCircleByItemId(i)), this.PetNode && (a = this._rankData.PlayerInfo.Pet, this.SetPetByItemId(a)), [2]) : (c.AssetsManager.Instance.UnloadAsset(this._heroPrefab), [2])
                        }
                    })
                })
            }, t.prototype.SetMagicCircleByItemId = function(e) {
                if (e) {
                    var t = p.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, e);
                    if (t) {
                        var n, o, r = t.Model + "/HeroAvatar";
                        this._loadAssetHelper.LoadPrefab(r, this.MagicCircleBottomNode, function(e) {
                            n = e, o && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleBottom), this._loadAssetHelper.LoadPrefab(r, this.MagicCircleTopNode, function(e) {
                            (o = e) && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleTop)
                    }
                }
            }, t.prototype.SetPetByItemId = function(e) {
                if (e) {
                    var t = p.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, e);
                    if (t) {
                        var n = t.Model + "/HeroAvatar";
                        this._loadAssetHelper.LoadPrefab(n, this.PetNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, d.SkillAnimationType.Standby, !0)
                        }, l.Pet)
                    }
                }
            }, t.prototype.onDestroy = function() {
                this._heroPrefab && c.AssetsManager.Instance.UnloadAsset(this._heroPrefab)
            }, i([I(cc.Node)], t.prototype, "PlayerNode", void 0), i([I(cc.Label)], t.prototype, "Name", void 0), i([I(cc.Label)], t.prototype, "ScoreTag", void 0), i([I(cc.Label)], t.prototype, "ScoreValue", void 0), i([I(cc.Sprite)], t.prototype, "RankIcon", void 0), i([I(cc.Node)], t.prototype, "MagicCircleBottomNode", void 0), i([I(cc.Node)], t.prototype, "AvatarNode", void 0), i([I(cc.Node)], t.prototype, "MagicCircleTopNode", void 0), i([I(cc.Node)], t.prototype, "PetNode", void 0), i([I(cc.Label)], t.prototype, "NoneTip", void 0), i([I(cc.Sprite)], t.prototype, "Tag", void 0), i([I(cc.Sprite)], t.prototype, "PlatformIcon", void 0), i([m], t)
        }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    ActivityRushRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "25047IROIRLMYMrt3D66FWm", "ActivityRushRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./CustomLayout"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./HeadComponent"),
            p = e("./RushRankRewardListItem"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomLayout = null, t.MyRankLabel = null, t.MyRankIcon = null, t.MyName = null, t.MyHeadNode = null, t.MyScoreTag = null, t.MyScoreValue = null, t.MyScoreBgNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    this._activityConfig = e, this._rankData = t, this._headPrefab = o, this._itemPrefab = r, this._atlas = i, this._isInit || (this._isInit = !0, this.CustomLayout.Init(n), this.CustomLayout.RenderLayOut(this._activityConfig._RankRewards.length), this.SetMyRank())
                }, t.prototype.SetMyRank = function() {
                    var e = this._rankData.MyRank ? this._rankData.MyRank : -1;
                    if (this.MyScoreTag.string = 5 == this._activityConfig.CustomPart.Type ? "common_layer".ToUILocale() : "happyTurn_score_desc".ToUILocale(), this.MyRankIcon.node.active = !1, this.MyRankLabel.node.active = !1, e < 0 ? (this.MyRankLabel.node.active = !0, this.MyRankLabel.string = "rank_out_max_rank".ToUILocale()) : e < 3 ? (this.MyRankIcon.node.active = !0, this.MyRankIcon.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e)) : (this.MyRankLabel.node.active = !0, this.MyRankLabel.string = e.toString()), this.MyScoreValue.string = this._rankData.MyRankData.Value.toString(), this.MyName.string = this._rankData.MyRankData.PlayerInfo.Name, !this._myHeadComponent) {
                        var t = cc.instantiate(this._headPrefab);
                        t.setParent(this.MyHeadNode), this._myHeadComponent = t.getComponent(u.default)
                    }
                    this._myHeadComponent.SetUI(this._rankData.MyRankData.PlayerInfo.HeadIcon, this._rankData.MyRankData.PlayerInfo.HeadFrame, this._rankData.MyRankData.PlayerInfo.Title), this._myHeadComponent.SetLevel(this._rankData.MyRankData.PlayerInfo.Level)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._activityConfig._RankRewards[t];
                        e.getComponent(p.default).Init(o, n._itemPrefab, n._atlas)
                    })
                }, i([f(s.default)], t.prototype, "CustomLayout", void 0), i([f(cc.Label)], t.prototype, "MyRankLabel", void 0), i([f(cc.Sprite)], t.prototype, "MyRankIcon", void 0), i([f(cc.Label)], t.prototype, "MyName", void 0), i([f(cc.Node)], t.prototype, "MyHeadNode", void 0), i([f(cc.Label)], t.prototype, "MyScoreTag", void 0), i([f(cc.Label)], t.prototype, "MyScoreValue", void 0), i([f(cc.Node)], t.prototype, "MyScoreBgNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomLayout": "CustomLayout",
        "./HeadComponent": "HeadComponent",
        "./RushRankRewardListItem": "RushRankRewardListItem"
    }],
    ActivityRushTaskItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "82a455uzUlOXqKVqKAc2jGA", "ActivityRushTaskItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("./CustomLayout"),
            u = e("../Panel/CommonTaskComponent"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Panel/NodePool"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("./ItemComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../RedDot/RedDotManager"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RoundLabel = null, t.CustomLayout = null, t.TotalTaskDesc = null, t.TotalTaskProgress = null, t.TotalTaskItemContainer = null, t.TotalTaskMask = null, t.ReceivedLabel = null, t.GetButton = null, t.GetButtonLabel = null, t._itemComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), a.Game.EventDispatcher.On(p.EventKeys.EVENT_COMMONTASK_RECEIVE, this.OnReceivedButtonClick, this), a.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), a.Game.EventDispatcher.Off(p.EventKeys.EVENT_COMMONTASK_RECEIVE, this.OnReceivedButtonClick, this), a.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onLoad = function() {
                    this.TotalTaskDesc.string = "ActivityRushRank_Task_Total_Desc".ToUILocale(), this.GetButtonLabel.string = "receive".ToUILocale(), this.ReceivedLabel.string = "already_receive".ToUILocale(), this.GetButton.node.on("click", this.OnGetButtonClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._activityConfig = e, this._activityModel = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._activityConfig._id), this._itemPrefab = n, this._isInit || (this._isInit = !0, this.CustomLayout.Init(t), this._pool = new d.default(n), this.SetTaskMap()), this._currentRound = this._activityModel.IntArray[1] == this._activityConfig.__TaskGroup.length ? this._activityConfig.__TaskGroup.length - 1 : this._activityModel.IntArray[1], this.SetTotalTask(), this.CustomLayout.RenderLayOut(this._activityConfig.__TaskGroup[this._currentRound].TaskIds.length), this.RoundLabel.string = this._activityModel.IntArray[1] + "/" + this._activityConfig.__TaskGroup.length, this.SetRedDot()
                }, t.prototype.SetTaskMap = function() {
                    this._taskMap = {};
                    for (var e = 0; e < this._activityConfig._Tasks.length; e++) {
                        var t = this._activityConfig._Tasks[e];
                        this._taskMap[t.Id] = t
                    }
                }, t.prototype.SetTotalTask = function() {
                    this._completeTaskCount = 0;
                    for (var e = this._activityConfig.__TaskGroup[this._currentRound].TaskIds, t = 0; t < e.length; t++) {
                        var n = l.DataCenter.Instance.GetDataById(s.UserTask_Model, e[t] + 1e4 * this._activityConfig._id);
                        n && n.IsCompleted && this._completeTaskCount++
                    }
                    for (this.GetButton.node.active = !0, this.TotalTaskMask.active = !1, this._activityModel.IntArray[1] < this._activityConfig.__TaskGroup.length && this._completeTaskCount == e.length ? y.UIUtlity.OffNodeGray(this.GetButton.node) : (y.UIUtlity.OnNodeGray(this.GetButton.node), this._activityModel.IntArray[1] == this._activityConfig.__TaskGroup.length && (this.GetButton.node.active = !1, this.TotalTaskMask.active = !0, this.GetButtonLabel.string = "already_receive".ToUILocale())), this.TotalTaskProgress.string = this._completeTaskCount + "/" + e.length, t = 0; t < this._activityConfig.__TaskGroup[this._currentRound].GroupRewards.length; t++) {
                        var o = this._itemComponentArray[t];
                        if (!o) {
                            var r = cc.instantiate(this._itemPrefab);
                            r.setParent(this.TotalTaskItemContainer), o = r.getComponent(f.ItemComponent), this._itemComponentArray[t] = o
                        }
                        o.node.active = !0;
                        var i = this._activityConfig.__TaskGroup[this._currentRound].GroupRewards[t].Items;
                        o.Init({
                            ItemId: i[0],
                            Count: i[1]
                        })
                    }
                    for (t = this._activityConfig.__TaskGroup[this._currentRound].GroupRewards.length; t < this._itemComponentArray.length; t++) this._itemComponentArray[t].node.active = !1
                }, t.prototype.SetRedDot = function() {
                    g.RedDotManager.Instance.BindInstance(this.GetButton.node, g.RedDotManager.Instance.InstanceRedDot.RushRankStageReward, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.OnGetButtonClick = function() {
                    if (this._activityModel.IntArray[1] < this._activityConfig.__TaskGroup.length && this._completeTaskCount == this._activityConfig.__TaskGroup[this._currentRound].TaskIds.length) {
                        var e = new s.Req_Activity_GetLimitTimeImpactRankGroupRewards;
                        e.ActivityId = this._activityConfig._id, l.RpcComponent.Instance.Call(e, function(e) {
                            y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnReceivedButtonClick = function() {
                    var e = this,
                        t = [];
                    this._activityConfig.__TaskGroup[this._currentRound].TaskIds.forEach(function(n) {
                        var o = l.DataCenter.Instance.GetDataById(s.UserTask_Model, n + 1e4 * e._activityConfig._id),
                            r = null == o || null == o.Progress ? 0 : o.Progress;
                        o && !o.IsCompleted && r >= e._taskMap[n].TotalCount && t.push(n)
                    });
                    var n = new s.Req_Activity_CommonTaskReward;
                    n.ActivityId = this._activityConfig._id, n.TaskIds = t, l.RpcComponent.Instance.Call(n, function(e) {
                        y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (t == this.CustomLayout) {
                        var o = this._activityConfig.__TaskGroup[this._currentRound].TaskIds;
                        e.forEach(function(e, t) {
                            var r = o[t],
                                i = l.DataCenter.Instance.GetDataById(s.UserTask_Model, r + 1e4 * n._activityConfig._id),
                                a = null == i || null == i.Progress ? 0 : i.Progress;
                            e.getComponent(u.default).SetTitle(h.default.GetTaskDesc(n._taskMap[r])).SetPurchaseLimit(a, n._taskMap[r], i.IsCompleted).SetItems(n._pool, n._taskMap[r].Rewards).SetButtonClick(r)
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.TotalTaskItemContainer.children.indexOf(t) && y.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    var e;
                    null === (e = this._pool) || void 0 === e || e.Clear()
                }, i([_(cc.Label)], t.prototype, "RoundLabel", void 0), i([_(c.default)], t.prototype, "CustomLayout", void 0), i([_(cc.Label)], t.prototype, "TotalTaskDesc", void 0), i([_(cc.RichText)], t.prototype, "TotalTaskProgress", void 0), i([_(cc.Node)], t.prototype, "TotalTaskItemContainer", void 0), i([_(cc.Node)], t.prototype, "TotalTaskMask", void 0), i([_(cc.Label)], t.prototype, "ReceivedLabel", void 0), i([_(cc.Button)], t.prototype, "GetButton", void 0), i([_(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/CommonTaskComponent": "CommonTaskComponent",
        "../Panel/NodePool": "NodePool",
        "./CustomLayout": "CustomLayout",
        "./ItemComponent": "ItemComponent"
    }],
    ActivityRushUpPackRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "25ed2PUsrlKzoLbuqRWNayF", "ActivityRushUpPackRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/ItemComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Tag = null, t.RewardNode = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t._itemPrefab = null, t._rewardNodes = [], t._selectIndex = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._itemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)]);
                                case 1:
                                    t._itemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "custom_giftPack_select".ToUILocale(), this.Tag.string = "custom_giftPack_please_select".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale(), this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._index = t[0], this._basePanel = t[1], this._baseComponent = t[2], this._selectIndex = this._basePanel.ActivityData.IntMap[this._basePanel.ActivityConfig.Rewards[this._index].Floor] ? this._basePanel.ActivityData.IntMap[this._basePanel.ActivityConfig.Rewards[this._index].Floor] : 0, this.InitNodes(), this.SetRewards()
                }, t.prototype.InitNodes = function() {
                    this._rewardNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function() {
                            return (e = this._basePanel.ActivityConfig.Rewards[this._index]) && e.Rewards.forEach(function(e, n) {
                                if (!t._rewardNodes[n]) {
                                    var o = cc.instantiate(t._itemPrefab);
                                    t._rewardNodes[n] = o, t._rewardNodes[n].parent = t.RewardNode
                                }
                                t._rewardNodes[n].name = n.toString(), t._rewardNodes[n].active = !0;
                                var r = t._rewardNodes[n].getComponent(h.ItemComponent);
                                r.Init({
                                    ItemId: e.Items[0],
                                    Count: e.Items[1]
                                }, h.ItemComponentType.ItemWithName), t._selectIndex == n + 1 ? r.SetSelectFlagState(!0) : r.SetSelectFlagState(!1), y.default.CheckHeroSkinIsMaxLevel(e.Items[0]) ? r.EnableMask() : t._selectIndex == n + 1 ? r.EnableMask() : r.DisableMask()
                            }), [2]
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = t.getComponent(h.ItemComponent).ItemId,
                        o = y.default.CheckHeroSkinIsMaxLevel(n);
                    if (f.UIUtlity.ShowItemTip(n, t), o) f.UIUtlity.ShowFloatingHint("customGift_maxLevel_cant_select".ToUILocale());
                    else {
                        if (this._selectIndex > 0 && this._rewardNodes[this._selectIndex - 1]) {
                            var r = this._rewardNodes[this._selectIndex - 1].getComponent(h.ItemComponent),
                                i = r.ItemId,
                                a = y.default.CheckHeroSkinIsMaxLevel(i);
                            r.SetSelectFlagState(!1), a ? r.EnableMask() : r.DisableMask()
                        }
                        this._rewardNodes[e] && this._rewardNodes[e].getComponent(h.ItemComponent).SetSelectFlagState(!0), this._selectIndex = e + 1
                    }
                }, t.prototype.OnBtnCancelClick = function() {
                    this.Close()
                }, t.prototype.OnBtnSureClick = function() {
                    var e = this;
                    if (this._selectIndex <= 0) f.UIUtlity.ShowFloatingHint("custom_giftPack_please_select".ToUILocale());
                    else {
                        var t = new c.Req_Activity_RushUpSetFloorReward;
                        t.ActivityId = this._basePanel.ActivityConfig._id, t.Floor = this._basePanel.ActivityConfig.Rewards[this._index].Floor, t.Index = this._selectIndex, u.RpcComponent.Instance.Call(t, function() {
                            l.UIManager.Instance.BackUIPanel(), e._baseComponent.NotInScroolView ? e._basePanel.RefreshRewardScrollView() : (e._baseComponent.Refresh(), e._basePanel.RefreshReward())
                        })
                    }
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Label)], t.prototype, "Tag", void 0), i([I(cc.Node)], t.prototype, "RewardNode", void 0), i([I(cc.Button)], t.prototype, "BtnCancel", void 0), i([I(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([I(cc.Button)], t.prototype, "BtnSure", void 0), i([I(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivityRushUpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "faf27tCDvVKKJRTFwEtqtUA", "ActivityRushUpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/StairsLoopComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/CustomLayout"),
            m = e("../Components/RushUpRewardComponent"),
            I = e("../../Components/Components"),
            _ = e("../Components/ActivityCountDownComponent"),
            C = e("../Components/CurrencyBarItem"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../Components/LoadAssetHelper"),
            S = e("../Components/CountdownLabel"),
            w = e("../../../Util/TimeUtil"),
            P = e("../../Auxiliary/DataUtlity"),
            A = e("../../../ShareConsts/EnumType"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.RuleBtn = null, t.ActivityCountDownComponent = null, t.CountdownLabel = null, t.RoundEndLabel = null, t.CurrencyBarItem = null, t.MapScrollView = null, t.MapScrollViewMask = null, t.Content = null, t.StepNode = null, t.AvatarNode = null, t.BackButton = null, t.MoveBtn = null, t.MoveStepLabel = null, t.MoveCostIcon = null, t.MoveCost = null, t.MoveTips = null, t.FinalReward = null, t.NextReward = null, t.RewardScrollView = null, t.CurrentStep = null, t.RewardCustomLayout = null, t.LoadAssetHelper = null, t.GiftPackButton = null, t.GiftPackLabel = null, t.ExchangeShopBtn = null, t.ExchangeShopBtnLabel = null, t._currentFloor = 0, t._nextRewardIndex = 0, t._stairsLoopComponentArray = [], t._minShowComponentIndex = -1, t.STAIRSLOOP_COMPONENT_HIGHT = 790, t._positionY = new Map, t.STEP_POS = [cc.v2(-138, 0), cc.v2(-329, 222), cc.v2(-139, 447), cc.v2(-45, 390.5), cc.v2(50, 334), cc.v2(142.5, 390.5), cc.v2(331, 617.5), cc.v2(139, 845), cc.v2(46.5, 789.5), cc.v2(-45, 731), cc.v2(-138, 790)], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "ActivityConfig", {
                    get: function() {
                        return this._activityConfig
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ActivityData", {
                    get: function() {
                        return I.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ItemPrefab", {
                    get: function() {
                        return this._itemPrefab
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "CurrentFloor", {
                    get: function() {
                        return this._currentFloor
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "GreatRewardMap", {
                    get: function() {
                        return this._greatRewardMap
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityRushUpPanel/StairsLoopComponent", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("ActivityRushUpPanel/RushUpRewardComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._stairsLoopComponentPrefab = e[0], r._itemPrefab = e[1], r._rushUpRewardComponentPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RoundEndLabel.string = "rushUp_roundEnd".ToUILocale(), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.MoveBtn.node.on("click", this.OnMoveBtnClick, this), this.ExchangeShopBtn.node.on("click", this.OnShopClick, this), this.GiftPackButton.node.on("click", this.OnGiftPackButtonClick, this), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.ExchangeShopBtnLabel.string = "exchange_shop".ToUILocale(), this.MapScrollView.node.on("scrolling", this.OnScrolling, this), this.RewardCustomLayout.Init(this._rushUpRewardComponentPrefab)
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = d.DataCenter.Instance.ActivityConfigs[this._activityId], !this._greatRewardMap) {
                        this._greatRewardMap = {};
                        for (var n = 0; n < this._activityConfig.Rewards.length; n++) this._greatRewardMap[this._activityConfig.Rewards[n].Floor] = this._activityConfig.Rewards[n]
                    }
                    if (null == this.MoveCostIcon.spriteFrame) {
                        var o = P.default.Instance.GetItemPathById(this._activityConfig.CustomPart.ItemId);
                        this.LoadAssetHelper.LoadSpriteFrame(o, this.MoveCostIcon)
                    }
                    this.ExchangeShopBtn.node.active = this._activityConfig._Shops && this._activityConfig._Shops.length > 0, this.GiftPackButton.node.active = this._activityConfig._Packs && this._activityConfig._Packs.length > 0, this._activityConfig._Packs && this._activityConfig._Packs.length > 0 && (this.GiftPackLabel.string = this._activityConfig._Packs[0].Name), this.Title.string = this._activityConfig.Common.Title
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.ActivityCountDownComponent.Init(this._activityConfig.Common), this.SetRoundEndTime(), this._activityData = I.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId), this._currentFloor = this._activityData.IntValue ? this._activityData.IntValue : 0, this.RefreshRewardScrollView(), this.SetContentHeight(), this.ConfigPagePosition(), this.InitMap(), this.InitAvatar()), this.RefreshPanelInfo(), this.CurrencyBarItem.Init(this._activityConfig.CustomPart.ItemId)
                }, t.prototype.InitAvatar = function() {
                    var e = I.DataCenter.Instance.GetIntData(A.UserDataKey.HeadIcon),
                        t = I.ConfigDataComponent.Instance.GetConfigById(c.HeroSkin_Config, e);
                    t || (t = I.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, e));
                    var n = "Hero_" + t.Model + "/HeroAvatar";
                    this.LoadAssetHelper.LoadPrefab(n, this.AvatarNode, this.SetAvatar.bind(this), 1)
                }, t.prototype.SetAvatar = function(e) {
                    this._avatarNode = e, this._avatarNode.parent = this.AvatarNode, this._avatarSpine = this._avatarNode.getComponent(sp.Skeleton), this._avatarSpine.setAnimation(0, p.SkillAnimationType.Standby, !0), this.AvatarNode.setPosition(this.STEP_POS[this._currentFloor % 10].x, this.STEP_POS[this._currentFloor % 10].y + Math.floor(this._currentFloor / 10) * this.STAIRSLOOP_COMPONENT_HIGHT + 400), this._avatarNode.scale = .7, this.SetAvatarToward(this._currentFloor, this._currentFloor + 1), this._currentFloor >= this._activityConfig.Floors.length && (this.MoveBtn.node.active = !1)
                }, t.prototype.SetAvatarToward = function(e, t) {
                    if (this._currentFloor >= this._activityConfig.Floors.length) this._avatarSpine.node.scaleX = .7;
                    else {
                        var n = this.STEP_POS[e % 10],
                            o = this.STEP_POS[t % 10],
                            r = n.x < o.x ? .7 : -.7;
                        this._avatarSpine.node.scaleX = r
                    }
                }, t.prototype.SetRoundEndTime = function() {
                    var e = this._activityConfig.CustomPart.ResetDay,
                        t = d.RpcComponent.Instance.ServerTime,
                        n = w.TimeUtil.GetDiffDays(this._activityConfig.Common.StartTime, t, !0) + 1,
                        o = this._activityConfig.Common.StartTime + Math.ceil(n / e) * e * p.Etc.DayDuration;
                    o = o > P.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) ? P.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) : o, this.CountdownLabel.Init(o)
                }, t.prototype.SetContentHeight = function() {
                    var e = this._activityConfig.Floors.length / 10;
                    this.Content.height = 790 * e + 800, this._pagesNumber = e
                }, t.prototype.InitMap = function() {
                    this.MapScrollView.scrollToOffset(this.GetScrollToNode([this.STEP_POS[this._currentFloor % 10].x, this.STEP_POS[this._currentFloor % 10].y + this._currentFloor / 10 * this.STAIRSLOOP_COMPONENT_HIGHT + 400]));
                    var e = this.MapScrollView.getContentPosition();
                    this._minShowComponentIndex = Math.floor(-(e.y + 400) / this.STAIRSLOOP_COMPONENT_HIGHT), this._minShowComponentIndex = this._minShowComponentIndex < 0 ? 0 : this._minShowComponentIndex;
                    for (var t = 0; t < 4; t++) {
                        var n = this._minShowComponentIndex + t;
                        this.InitMapBgComponent(this._stairsLoopComponentArray[t], n)
                    }
                    this.StepNode.children.forEach(function(e) {
                        e.zIndex = -e.y
                    })
                }, t.prototype.ConfigPagePosition = function() {
                    if (this._positionY.size < this._pagesNumber)
                        for (var e = this._positionY.size * this.STAIRSLOOP_COMPONENT_HIGHT + 400, t = this._positionY.size; t < this._pagesNumber; t++) this._positionY.set(t, e), e += this.STAIRSLOOP_COMPONENT_HIGHT
                }, t.prototype.InitMapBgComponent = function(e, t, n) {
                    if (e) 1 == n ? this._stairsLoopComponentArray.push(e) : 0 == n && this._stairsLoopComponentArray.unshift(e);
                    else {
                        var o = cc.instantiate(this._stairsLoopComponentPrefab);
                        o.parent = this.StepNode, e = o.getComponent(f.default), this._stairsLoopComponentArray.push(e)
                    }
                    t < this._pagesNumber && (e.node.y = this._positionY.get(t), e.Init(t, this)), e.node.name = t.toString()
                }, t.prototype.OnScrolling = function() {
                    var e = this.MapScrollView.getContentPosition(),
                        t = Math.floor(-(e.y + 400) / this.STAIRSLOOP_COMPONENT_HIGHT);
                    if ((t = t < 0 ? 0 : t) > this._minShowComponentIndex) {
                        var n = t + 3;
                        n < this._pagesNumber && (this.InitMapBgComponent(this._stairsLoopComponentArray.shift(), n, !0), this._minShowComponentIndex = t, this.StepNode.children.forEach(function(e) {
                            e.zIndex = -e.y
                        }))
                    } else t < this._minShowComponentIndex && (this.InitMapBgComponent(this._stairsLoopComponentArray.pop(), t, !1), this._minShowComponentIndex = t, this.StepNode.children.forEach(function(e) {
                        e.zIndex = -e.y
                    }))
                }, t.prototype.RefreshRewardScrollView = function() {
                    this._nextRewardIndex = this.GetNextRewardIndex(), this.RewardCustomLayout.RenderLayOut(this._activityConfig.Rewards.length, this._nextRewardIndex), this.FinalReward.Init(this._activityConfig.Rewards.length - 1, this, !0), this.NextReward.Init(this._nextRewardIndex, this, !0)
                }, t.prototype.RefreshReward = function() {
                    this._activityData = I.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId), this._nextRewardIndex = this.GetNextRewardIndex(), this.FinalReward.Init(this._activityConfig.Rewards.length - 1, this, !0), this.NextReward.Init(this._nextRewardIndex, this, !0)
                }, t.prototype.GetNextRewardIndex = function() {
                    for (var e = 0, t = 0; t < this._activityConfig.Rewards.length; t++) {
                        if (this._activityConfig.Rewards[t].Floor > this._currentFloor) {
                            e = t;
                            break
                        }
                        t == this._activityConfig.Rewards.length - 1 && (e = this._activityConfig.Rewards.length - 1)
                    }
                    for (t = 0; t < e; t++)
                        if (this._activityData.IntArray && !this._activityData.IntArray.includes(this._activityConfig.Rewards[t].Floor)) {
                            e = t;
                            break
                        } return e
                }, t.prototype.OnBackButtonClick = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.RewardCustomLayout == t && e.forEach(function(e, t) {
                        e.getComponent(m.default).Init(t, n), e.name = t.toString()
                    })
                }, t.prototype.RefreshPanelInfo = function() {
                    if (this.CurrentStep.string = "rushUp_Step".ToUILocale().Fmt(this._currentFloor), this._currentFloor >= this._activityConfig.Floors.length) return this.MoveBtn.node.active = !1, void(this.MoveTips.string = "rushUp_reach".ToUILocale());
                    this.MoveTips.string = "rushUp_moveTips".ToUILocale().Fmt(this.GetLeftStepToNextGreatReward(this._currentFloor)), I.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.ItemId) ? v.UIUtlity.OffNodeGray(this.MoveBtn.node) : v.UIUtlity.OnNodeGray(this.MoveBtn.node);
                    var e = this.GetMoveStep();
                    this.MoveStepLabel.string = "rushUp_moveStep".ToUILocale().Fmt(e), this.MoveCost.string = "x" + e
                }, t.prototype.OnMoveBtnClick = function() {
                    var e = this,
                        t = I.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.ItemId),
                        n = this.GetMoveStep();
                    if (n + this._currentFloor > this._activityConfig.Floors.length && (n = this._activityConfig.Floors.length - this._currentFloor), t) {
                        var o = new l.Req_Activity_RushUpMove;
                        o.ActivityId = this._activityId, I.RpcComponent.Instance.Call(o, function(t) {
                            e.PlayMoveAnimation(t.Rewards, n, e._currentFloor)
                        })
                    } else v.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activityConfig.CustomPart.ItemId.ToItemName()))
                }, t.prototype.GetMoveStep = function() {
                    var e = I.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.ItemId);
                    if (!e) return 0;
                    for (var t = 0; t < this._activityConfig.Steps.length; t++) {
                        var n = this._activityConfig.Steps[t];
                        if (!n.Range[1]) return n.Count;
                        if (e <= n.Range[1] && e >= n.Range[0]) return n.Count
                    }
                }, t.prototype.GetLeftStepToNextGreatReward = function(e) {
                    return e % 5 == 0 ? e += 5 : e = 5 * Math.ceil(e / 5), this._greatRewardMap[e] ? e - this._currentFloor : this.GetLeftStepToNextGreatReward(e)
                }, t.prototype.GetReward = function() {
                    var e = this,
                        t = new l.Req_Activity_RushUpGetFloorReward;
                    t.ActivityId = this._activityId, I.RpcComponent.Instance.Call(t, function(t) {
                        v.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.RefreshRewardScrollView()
                    })
                }, t.prototype.GetScrollToNode = function(e) {
                    var t = this.Content.width + e[0] - this.node.width / 2,
                        n = this.Content.height - e[1] - this.node.height / 2;
                    return cc.v2(t, n)
                }, t.prototype.PlayMoveAnimation = function(e, t, n) {
                    var o = this;
                    this.MapScrollViewMask.active = !0, this.InitMap(), this.MoveBtn.interactable = !1;
                    for (var r = [], i = 0; i < t; i++) {
                        var a = n + 1 + i;
                        r.push([this.STEP_POS[a % 10].x, this.STEP_POS[a % 10].y + Math.floor(a / 10) * this.STAIRSLOOP_COMPONENT_HIGHT + 400])
                    }
                    var s = cc.tween(this.AvatarNode),
                        c = function(t) {
                            s.to(.4, {
                                x: r[t][0],
                                y: r[t][1]
                            }).call(function() {
                                (n + 1 + t) % 10 == 1 && o.MapScrollView.scrollToOffset(o.GetScrollToNode([o.AvatarNode.x, o.AvatarNode.y]), .5), t + 1 < r.length ? (o.CurrentStep.string = "rushUp_Step".ToUILocale().Fmt(n + 1 + t), r[t + 1][0] < r[t][0] ? o._avatarNode.scaleX = -.7 : o._avatarNode.scaleX = .7) : (o.MoveBtn.interactable = !0, o.CurrentStep.string = "rushUp_Step".ToUILocale().Fmt(n + 1 + t), o._activityData = I.DataCenter.Instance.GetDataById(l.UserActivity_Model, o._activityId), o._currentFloor = o._activityData.IntValue ? o._activityData.IntValue : 0, o.RefreshRewardScrollView(), o.SetAvatarToward(o._currentFloor, o._currentFloor + 1), o._avatarSpine.setAnimation(0, p.SkillAnimationType.Standby, !0), v.UIUtlity.ShwDisplayRewardPanel(e), o.MapScrollViewMask.active = !1), o.PlayGetRewardAnimation(n + t)
                            }), u._avatarSpine.setAnimation(0, p.SkillAnimationType.Move, !0), s.start()
                        },
                        u = this;
                    for (i = 0; i < r.length; i++) c(i)
                }, t.prototype.PlayGetRewardAnimation = function(e) {
                    var t = this.StepNode.getChildByName(Math.floor(e / 10).toString());
                    t && t.getComponent(f.default).PlayGetRewardAnimation(e % 10)
                }, t.prototype.OnGiftPackButtonClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: P.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[0],
                            Title: this._activityConfig._Packs[0].Name
                        };
                    u.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnShopClick = function() {
                    u.UIManager.Instance.ShowUIPanel(h.PanelConfig.ActivityExchangeShopPanel.Path, this._activityConfig._id, 1)
                }, t.prototype.OnRuleBtnClick = function() {
                    var e = {
                        name: "ActivityRushUp_ruleTip".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["ActivityRushUp_ruleContent".ToUILocale()]
                    };
                    v.UIUtlity.ShowRulePanel(e)
                }, i([L(cc.Label)], t.prototype, "Title", void 0), i([L(cc.Button)], t.prototype, "RuleBtn", void 0), i([L(_.default)], t.prototype, "ActivityCountDownComponent", void 0), i([L(S.default)], t.prototype, "CountdownLabel", void 0), i([L(cc.Label)], t.prototype, "RoundEndLabel", void 0), i([L(C.default)], t.prototype, "CurrencyBarItem", void 0), i([L(cc.ScrollView)], t.prototype, "MapScrollView", void 0), i([L(cc.Node)], t.prototype, "MapScrollViewMask", void 0), i([L(cc.Node)], t.prototype, "Content", void 0), i([L(cc.Node)], t.prototype, "StepNode", void 0), i([L(cc.Node)], t.prototype, "AvatarNode", void 0), i([L(cc.Button)], t.prototype, "BackButton", void 0), i([L(cc.Button)], t.prototype, "MoveBtn", void 0), i([L(cc.Label)], t.prototype, "MoveStepLabel", void 0), i([L(cc.Sprite)], t.prototype, "MoveCostIcon", void 0), i([L(cc.Label)], t.prototype, "MoveCost", void 0), i([L(cc.RichText)], t.prototype, "MoveTips", void 0), i([L(m.default)], t.prototype, "FinalReward", void 0), i([L(m.default)], t.prototype, "NextReward", void 0), i([L(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([L(cc.Label)], t.prototype, "CurrentStep", void 0), i([L(g.default)], t.prototype, "RewardCustomLayout", void 0), i([L(b.default)], t.prototype, "LoadAssetHelper", void 0), i([L(cc.Button)], t.prototype, "GiftPackButton", void 0), i([L(cc.Label)], t.prototype, "GiftPackLabel", void 0), i([L(cc.Button)], t.prototype, "ExchangeShopBtn", void 0), i([L(cc.Label)], t.prototype, "ExchangeShopBtnLabel", void 0), i([R], t)
            }(u.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/CountdownLabel": "CountdownLabel",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/RushUpRewardComponent": "RushUpRewardComponent",
        "../Components/StairsLoopComponent": "StairsLoopComponent"
    }],
    ActivityScoreShopPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b07398+DhNH5oJ5MfBrCsk+", "ActivityScoreShopPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ActivityScoreShopCarData = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./ASSItemGood"),
            m = e("../Components/ItemComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("./BuyAndSellItemPanel"),
            C = e("../../Components/Components"),
            v = e("../Components/ASSDiscountTabComponent"),
            b = e("../Components/AssDiscountCurrencyComponent"),
            S = e("./ASSBuyCarPanel"),
            w = e("../Components/CustomProgressBar"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.TimeLabel = null, t.TimeValue = null, t.ScoreGiftButtonLabel = null, t.RuleButton = null, t.ReturnButton = null, t.ScoreGiftButton = null, t.ChestButton = null, t.HeadCurrency = null, t.GoodContainer = null, t.ConsumptionScore = null, t.ConsumptionAni = null, t.ConsumptionLabel = null, t.BottomNode = null, t.DiscountTabContainer = null, t.NeedCurrency = null, t.BottomDisInfo = null, t.BottomBuyCarNode = null, t.BottomBuyCarLabel = null, t.InCarNumber = null, t.BannerText_old = null, t.BannerText_new = null, t.RedDotNumberSprite = null, t._itemId = 47, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChanges, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_ACT_SOCRE_SHOP_ADD_TO_CAR, this.OnAddToCar, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChanges, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ACT_SOCRE_SHOP_ADD_TO_CAR, this.OnAddToCar, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ActivityScoreShopPanel/Component/ASSItemGood"), this.LoadDynamicAsset(h.BundlePath.ItemComponent), this.LoadDynamicAsset("ActivityScoreShopPanel/Component/ASSDiscountTabComponent"), this.LoadDynamicAsset("Chatting/Atlas/Chatting", cc.SpriteAtlas)]).then(function(e) {
                                        t._itemGoodPrefab = e[0], t._itemPrefab = e[1], t._discountTabPrefab = e[2], t._redDotAtlas = e[3]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ScoreGiftButtonLabel.string = "activity_scoreShop_gift".ToUILocale(), this.TimeLabel.string = "gift_remainderTime".ToUILocale(), this.BottomBuyCarLabel.string = "Ass_purchaseList".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ScoreGiftButton.node.on("click", this.OnScoreGiftButtonClick, this), this.ChestButton.node.on("click", this.OnChestButtonClick, this), this.BottomBuyCarNode.on("click", this.OnClickBuyCarBtn, this), this._goods = []
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i = this;
                        return s(this, function() {
                            for (e.prototype.InitData.call(this), this._data = y.default.ParseActivityParams(t, p.ActivityType.ScoreShop), u.DataCenter.Instance.SetTempData("ASSData", this._data), this._deadLine = y.default.Instance.ComputeDeadTime(this._data.Common), this._goodsData = [], this._data._Shops[0].Goods.forEach(function(e) {
                                    var t = e.Items[0],
                                        n = i._data._ShopItems.findIndex(function(e) {
                                            return e.Id == t
                                        });
                                    n > -1 && i._goodsData.push(i._data._ShopItems[n])
                                }), this._itemId = this._data._Shops[0].HeaderCurrencyType[0], this._buyCarData = new L(this._data._id, this._itemId), this._buyCarData.ListenLocalDataChange("OnLocalDataChange", this.OnLocalDataChange.bind(this)), n = 0; n < this._goodsData.length; n++)(o = cc.instantiate(this._itemGoodPrefab)).setParent(this.GoodContainer), this._goods[n] = o.getComponent(g.default), r = this._data._ShopItems[n], this._goods[n].SetItem(r.ItemId, r.Count, this._itemPrefab, r.Discount, this._buyCarData.InCarNumMap[r.Id], r.CurrencyType), this._goods[n].ValueLabel.string = r.Price.toString(), this._goods[n].CountLabel.string = "shop_stock".ToUILocale().Fmt(r.LimitCount), this._goods[n].Mask.on(cc.Node.EventType.TOUCH_END, this.OnMaskTouch, this), o.on(cc.Node.EventType.TOUCH_END, this.OnGoodTouch, this), o.name = n.toString(), C.DataCenter.Instance.GetItemCount(r.CurrencyType) >= r.Price || 0 != this._buyCarData.TabConfig.length ? this._goods[n].ValueLabel.node.color = cc.Color.WHITE : this._goods[n].ValueLabel.node.color = (new cc.Color).fromHEX("#ff4b4b");
                            return [2]
                        })
                    })
                }, t.prototype.DisPlay = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, p, d, f = this;
                        return s(this, function() {
                            for (e.prototype.DisPlay.call(this), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._data._id), this._goodsData.sort(function(e, t) {
                                    return e.LimitCount ? t.LimitCount ? f.GetGoodBuyCount(e.Id) >= e.LimitCount ? 1 : f.GetGoodBuyCount(t.Id) >= t.LimitCount ? -1 : e.Id - t.Id : 1 : -1
                                }), o = 0; o < this._goodsData.length; o++) t = this._goodsData[o], n = t.LimitCount - this.GetGoodBuyCount(t.Id), this._goods[o].Mask.active = t.LimitCount > 0 && n <= 0, this._goods[o].SetItem(t.ItemId, t.Count, this._itemPrefab, t.Discount, this._buyCarData.InCarNumMap[t.Id], t.CurrencyType), this._goods[o].ValueLabel.string = t.Price.toString(), this._goods[o].CountLabel.string = "shop_stock".ToUILocale().Fmt(n), this._goods[o].goodsData = t, C.DataCenter.Instance.GetItemCount(t.CurrencyType) >= t.Price || 0 != this._buyCarData.TabConfig.length ? this._goods[o].ValueLabel.node.color = cc.Color.WHITE : this._goods[o].ValueLabel.node.color = (new cc.Color).fromHEX("#ff4b4b");
                            if (this.HeadCurrency.Init(this._itemId), this.HeadCurrency.SetClickCallBack(function() {
                                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ASSGiftPanel.Path)
                                }), this._data && this._data._Tasks && this._data._Tasks.length) {
                                for (this.ConsumptionScore.node.active = !0, this.ConsumptionScore.progress = 1, this.ConsumptionLabel.node.active = !1, this.ConsumptionAni.active = !1, o = 0; o < this._data._Tasks.length && (r = this._data._Tasks[o], i = u.DataCenter.Instance.GetDataById(c.UserTask_Model, 1e4 * this._data._id + r.Id)); o++)
                                    if (a = i.Progress < r.TotalCount, p = !i.IsCompleted && i.Progress >= r.TotalCount, a || p) {
                                        this.ConsumptionScore.progress = i.Progress / r.TotalCount, this.ConsumptionAni.active = p, this.ConsumptionLabel.node.active = !0, this.ConsumptionLabel.string = y.default.GetTaskDesc(r) + "(" + i.Progress + "/" + r.TotalCount + ")";
                                        break
                                    }
                            } else this.ConsumptionScore.node.active = !1;
                            return this.BottomNode.y, this.IsReDisPlay || (0 != this._buyCarData.TabConfig.length ? (this.RedDotNumberSprite.spriteFrame = this._redDotAtlas.getSpriteFrame("unreadBg"), this.Title.string = "Ass_scoreShop_buyCart".ToUILocale(), this.RenderFullDiscountTab(), this.RenderBottomCurrency(), this.RenderRedDot(), this.BannerText_old.active = !1, this.BannerText_new.active = !0, this.ScoreGiftButton.node.x = -471, (d = this.ScoreGiftButton.node.getComponent(cc.Widget)).isAlignTop = !0, d.isAlignBottom = !1, d.top = 493, d.updateAlignment()) : (this.Title.string = "activity_scoreShop".ToUILocale(), this.BottomBuyCarNode.active = !1, this.NeedCurrency.node.active = !1, this.BannerText_old.active = !0, this.BannerText_new.active = !1, this.ScoreGiftButton.node.x = 459, this.ScoreGiftButton.node.y = -878, (d = this.ScoreGiftButton.node.getComponent(cc.Widget)).isAlignTop = !1, d.isAlignBottom = !0, d.bottom = 25, d.updateAlignment())), [2]
                        })
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e;
                    e = 0 != this._buyCarData.TabConfig.length ? {
                        name: "Ass_RuleMainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["Ass_RuleText".ToUILocale()]
                    } : {
                        name: "activity_scoreShop".ToUILocale(),
                        titles: ["aGiftDraw_RuleSubtitle".ToUILocale()],
                        contents: ["aScoreShop_RuleText".ToUILocale()]
                    }, f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel(), this._buyCarData.SendInCarNumToSever()
                }, t.prototype.OnScoreGiftButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ASSGiftPanel.Path)
                }, t.prototype.OnUserItemChanges = function(e) {
                    for (var t in e) switch (Number.parseInt(t)) {
                        case this._itemId:
                            this.HeadCurrency.Init(this._itemId)
                    }
                }, t.prototype.OnGoodTouch = function(e) {
                    if (0 == this._buyCarData.TabConfig.length) {
                        var t = (n = e.currentTarget.getComponent(g.default).goodsData).Price;
                        u.DataCenter.Instance.IsItemEnough(this._itemId, t) ? l.UIManager.Instance.ShowUIPanel(h.PanelConfig.BuyAndSellItemPanel.Path, n, this._data._id, this.GetGoodBuyCount(n.Id), _.BuyAndSellType.Buy, _.GoodsType.ActivityExchangeShop) : (f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._itemId.ToItemName())), l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ASSGiftPanel.Path))
                    } else {
                        var n = e.currentTarget.getComponent(g.default).goodsData,
                            o = this._buyCarData.Model.ShopItems[n.Id];
                        l.UIManager.Instance.ShowUIPanelWithType(h.PanelConfig.BuyAndSellItemPanel.Path, n, this._data._id, this.GetGoodBuyCount(n.Id), _.BuyAndSellType.AddToCar, _.GoodsType.ActivityExchangeShop, void 0, {
                            UseItemId: n.ItemId,
                            MaxCount: n.LimitCount - (o || 0),
                            PerItemCount: null,
                            Title: null,
                            Callback: null
                        }, this._buyCarData.InCarNumMap[n.Id])
                    }
                }, t.prototype.OnMaskTouch = function() {
                    f.UIUtlity.ShowFloatingHint("shop_goodsSoldOut".ToUILocale())
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - u.RpcComponent.Instance.ServerTime;
                    e < 0 && l.UIManager.Instance.BackUIPanel(), this.TimeValue.string = y.default.ActivityTimeLeftFormat(e)
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemContainer_xass" == t.parent.name && f.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.OnChestButtonClick = function() {
                    var e = {
                        IsActivity: !0
                    };
                    e.Title = "explore_times_reward".ToUILocale(), e.Tasks = this._data._Tasks, e.ActivityId = this._data._id, l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonTaskPanel.Path, [e])
                }, t.prototype.GetGoodBuyCount = function(e) {
                    return this._model.ShopItems[e] ? this._model.ShopItems[e] : 0
                }, t.prototype.RenderFullDiscountTab = function() {
                    var e = this;
                    this._buyCarData.TabConfig && 0 != this._buyCarData.TabConfig.length && this._buyCarData.TabConfig.forEach(function(t) {
                        var n = cc.instantiate(e._discountTabPrefab);
                        n && (e.DiscountTabContainer.addChild(n), n.getComponent(v.default).Set(t.full, t.discount))
                    })
                }, t.prototype.OnLocalDataChange = function() {
                    this.RenderBottomCurrency(), this.RenderRedDot()
                }, t.prototype.RenderBottomCurrency = function() {
                    var e = y.default.SetDiscountInfo(this.BottomDisInfo, this._buyCarData);
                    this.NeedCurrency.Set(this._itemId, this._buyCarData.Price, this._buyCarData.Price - e.reduced)
                }, t.prototype.RenderRedDot = function() {
                    var e = Object.keys(this._buyCarData.InCarNumMap).length;
                    e > 0 ? (this.InCarNumber.node.parent.active = !0, this.InCarNumber.string = e.toString()) : this.InCarNumber.node.parent.active = !1
                }, t.prototype.OnClickBuyCarBtn = function() {
                    0 != this._buyCarData.Price ? l.UIManager.Instance.ShowUIPanelWithType(h.PanelConfig.ASSBuyCarPanel.Path, this._data._id, this._buyCarData, this._itemId) : f.UIUtlity.ShowFloatingHint("Ass_BuyCartEmpty".ToUILocale())
                }, t.prototype.OnAddToCar = function(e, t) {
                    0 != t && f.UIUtlity.ShowFloatingHint("Ass_AddedToCart".ToUILocale()), this._buyCarData.ChangeGoodsNum(e, t)
                }, t.prototype.onDestroy = function() {
                    this._buyCarData.Destory(), this.unscheduleAllCallbacks()
                }, t.ENOUGH_COLOR = new cc.Color(86, 51, 51), t.NOT_ENOUGH_COLOR = new cc.Color(255, 75, 75), i([T(cc.Label)], t.prototype, "Title", void 0), i([T(cc.Label)], t.prototype, "TimeLabel", void 0), i([T(cc.Label)], t.prototype, "TimeValue", void 0), i([T(cc.Label)], t.prototype, "ScoreGiftButtonLabel", void 0), i([T(cc.Button)], t.prototype, "RuleButton", void 0), i([T(cc.Button)], t.prototype, "ReturnButton", void 0), i([T(cc.Button)], t.prototype, "ScoreGiftButton", void 0), i([T(cc.Button)], t.prototype, "ChestButton", void 0), i([T(d.default)], t.prototype, "HeadCurrency", void 0), i([T(cc.Node)], t.prototype, "GoodContainer", void 0), i([T(w.default)], t.prototype, "ConsumptionScore", void 0), i([T(cc.Node)], t.prototype, "ConsumptionAni", void 0), i([T(cc.Label)], t.prototype, "ConsumptionLabel", void 0), i([T(cc.Node)], t.prototype, "BottomNode", void 0), i([T(cc.Node)], t.prototype, "DiscountTabContainer", void 0), i([T(b.default)], t.prototype, "NeedCurrency", void 0), i([T(cc.RichText)], t.prototype, "BottomDisInfo", void 0), i([T(cc.Node)], t.prototype, "BottomBuyCarNode", void 0), i([T(cc.Label)], t.prototype, "BottomBuyCarLabel", void 0), i([T(cc.Label)], t.prototype, "InCarNumber", void 0), i([T(cc.Node)], t.prototype, "BannerText_old", void 0), i([T(cc.Node)], t.prototype, "BannerText_new", void 0), i([T(cc.Sprite)], t.prototype, "RedDotNumberSprite", void 0), i([A], t)
            }(l.BaseUIFullScreenPanel);
        n.default = R;
        var L = function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            return r(t, e), Object.defineProperty(t.prototype, "InCarNumMap", {
                get: function() {
                    return this._inCarNumMap
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "TabConfig", {
                get: function() {
                    return this._tabConfig
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Price", {
                get: function() {
                    return this._price
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "NowDiscountIndex", {
                get: function() {
                    return this._nowDiscountIndex
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "CurrencyItemId", {
                get: function() {
                    return this._currencyItemId
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ShopItemsMap", {
                get: function() {
                    return this._shopItemsMap
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Model", {
                get: function() {
                    return this._activityModel
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ActivityConfig", {
                get: function() {
                    return this._activityConfig
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Init = function(e, t) {
                var n = this;
                this._currencyItemId = t, this._activityConfig = C.DataCenter.Instance.ActivityConfigs[e], this._tabConfig = [], this._shopItemsMap = {}, this._inCarNumMap = {}, this._inCarInitFlag = !1, this._activityConfig._Discounts.forEach(function(e) {
                    n._tabConfig.push({
                        full: e.Point,
                        discount: e.Rebate
                    })
                }), this._activityConfig._ShopItems.forEach(function(e) {
                    n._shopItemsMap[e.Id] = e
                }), this.ListenEZEvt(c.UserActivity_Model)
            }, t.prototype.RefreshModel = function() {
                var e = this;
                this._activityModel = C.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this._inCarInitFlag || (this._activityModel.ShoppingCart.forEach(function(t) {
                    e._inCarNumMap[t.Items[0]] = t.Items[1]
                }), this._inCarInitFlag = !0)
            }, t.prototype.OnSeverDataChange = function(e) {
                return !(!e || !e[this._activityConfig._id])
            }, t.prototype.OnLocalDataChange = function() {
                var e = this;
                for (var t in this._price = 0, this._inCarNumMap) {
                    var n = Number(t),
                        o = this._inCarNumMap[t],
                        r = this._shopItemsMap[n].Price;
                    this._price += o * r
                }
                this._nowDiscountIndex = void 0, this._tabConfig.forEach(function(t, n) {
                    e._price >= t.full && (e._nowDiscountIndex = n)
                }), this.CacheDataChange("OnLocalDataChange")
            }, t.prototype.ChangeCarGoodsCount = function(e, t) {
                l.EZLog.Log("change goods count --\x3e", e, t), null == this._inCarNumMap[e] && (this._inCarNumMap[e] = 0), this._inCarNumMap[e] += t, this._inCarNumMap[e] && this._inCarNumMap[e] <= 0 && (this._inCarNumMap[e] = void 0), l.EZLog.Log("change result --\x3e", this._inCarNumMap), this.OnLocalDataChange()
            }, t.prototype.ChangeGoodsNum = function(e, t) {
                if (t && t > 0) {
                    var n = this._inCarNumMap[e];
                    this.ChangeCarGoodsCount(e, t - (n || 0))
                } else this._inCarNumMap[e] && (delete this._inCarNumMap[e], this.OnLocalDataChange())
            }, t.prototype.SendInCarNumToSever = function() {
                var e = new c.Req_Activity_ShoppingCart;
                e.ActivityId = this._activityConfig._id, e.ShoppingCart = this.GetInCarNumWithReqForm(), u.RpcComponent.Instance.Call(e, function() {})
            }, t.prototype.GetInCarNumWithReqForm = function() {
                var e = [];
                for (var t in this._inCarNumMap) {
                    var n = Number(t),
                        o = y.default.Instance.CreateRpcInitArray(n, this._inCarNumMap[n]);
                    e.push(o)
                }
                return e
            }, t.prototype.ClearTheCar = function() {
                this._inCarNumMap = {}, this.RefreshModel(), this.OnLocalDataChange()
            }, t
        }(S.PanelDataTool);
        n.ActivityScoreShopCarData = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ASSDiscountTabComponent": "ASSDiscountTabComponent",
        "../Components/AssDiscountCurrencyComponent": "AssDiscountCurrencyComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./ASSBuyCarPanel": "ASSBuyCarPanel",
        "./ASSItemGood": "ASSItemGood",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel"
    }],
    ActivitySeckillGiftComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "53503mkqcJD9pu/Gclo2Rm/", "ActivitySeckillGiftComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../../../Util/TimeUtil"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("./ActivitySeckillGiftListItem"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LeftTimeNode = null, t.LeftTimeRichText = null, t.Tip = null, t.ListItemContainer = null, t.MaskNode = null, t.MaskIconNode = null, t._giftComponentArray = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r, i, a, s) {
                    this._groupConfig = e, this._giftGroupData = t, this._giftCongfigMap = n, this._giftBoughtData = o, this._activityConfig = r, this._totalBuyCount = i, this._giftListItemPrefab = a, this._itemPrefab = s, this._startTime = c.TimeUtil.StrToTime(this._groupConfig.StartTime), this._endTime = c.TimeUtil.StrToTime(this._groupConfig.EndTime), this.SetTip(), this.SetGiftListItemContainer(), this.SetMaskNode(), this.unschedule(this.SetLeftTime), this.SetLeftTime(), this.schedule(this.SetLeftTime, 1)
                }, t.prototype.SetTip = function() {
                    var e = l.RpcComponent.Instance.ServerTime,
                        t = c.TimeUtil.StrToTime(this._groupConfig.ShowTime);
                    this.Tip.string = "Activity_SeckillGift_Group_Limit".ToUILocale().Fmt(this._groupConfig.Count), e > this._startTime && e < this._endTime ? (this._isCurrentGroup = !0, this._currentGroupBuyCount = this.GetCurrentGroupBuyCount()) : e > t && e < this._startTime && (this._isCurrentGroup = !1)
                }, t.prototype.GetCurrentGroupBuyCount = function() {
                    var e = 0,
                        t = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._activityConfig._id);
                    return this._giftGroupData[this._groupConfig.Id].forEach(function(n) {
                        t.Packs[n.Id] && t.Packs[n.Id].Items[0] && (e += t.Packs[n.Id].Items[0])
                    }), e
                }, t.prototype.SetMaskNode = function() {
                    this.MaskNode.active = !this._isCurrentGroup, this._isCurrentGroup || (this.ListItemContainer.getComponent(cc.Layout).updateLayout(), this.node.getComponent(cc.Layout).updateLayout(), this.MaskIconNode.y = (this.node.height - 45) / 2, this.MaskIconNode.height = this.node.height)
                }, t.prototype.SetGiftListItemContainer = function() {
                    for (var e = this._giftGroupData[this._groupConfig.Id], t = 0; t < e.length; t++) {
                        var n = this._giftComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._giftListItemPrefab);
                            o.setParent(this.ListItemContainer), n = o.getComponent(d.default), this._giftComponentArray[t] = n
                        }
                        n.node.active = !0;
                        var r = e[t].Id,
                            i = !1;
                        this._isCurrentGroup && this._currentGroupBuyCount >= this._groupConfig.Count && (i = !0), n.Init(this._giftCongfigMap[r], e[t], this._activityConfig, this._isCurrentGroup, this._giftBoughtData, i, this._totalBuyCount, this._itemPrefab)
                    }
                    if (e.length < this._giftComponentArray.length)
                        for (t = e.length; t < this._giftComponentArray.length; t++) this._giftComponentArray[t].node.active = !1
                }, t.prototype.SetLeftTime = function() {
                    var e = this._isCurrentGroup ? this._endTime - l.RpcComponent.Instance.ServerTime : this._startTime - l.RpcComponent.Instance.ServerTime;
                    e < 0 ? a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SECKILL_GIFT_GROUP_REFRESH) : this.LeftTimeRichText.string = this._isCurrentGroup ? "Activity_SeckillGift_Group_Current_LeftTime".ToUILocale().Fmt(u.default.ActivityTimeLeftFormat(e)) : "Activity_SeckillGift_Group_Next_LeftTime".ToUILocale().Fmt(u.default.ActivityTimeLeftFormat(e))
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.SetLeftTime)
                }, i([y(cc.Node)], t.prototype, "LeftTimeNode", void 0), i([y(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([y(cc.RichText)], t.prototype, "Tip", void 0), i([y(cc.Node)], t.prototype, "ListItemContainer", void 0), i([y(cc.Node)], t.prototype, "MaskNode", void 0), i([y(cc.Node)], t.prototype, "MaskIconNode", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "./ActivitySeckillGiftListItem": "ActivitySeckillGiftListItem"
    }],
    ActivitySeckillGiftListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f86ebcX6b5Fa6s7JjQNzgZg", "ActivitySeckillGiftListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("./ItemComponent"),
            p = e("../../Channel/ChannelManager"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.VipPointNode = null, t.VipPointTag = null, t.VipPointValue = null, t.MaskNode = null, t.BuyTag = null, t.BuyButton = null, t.BuyButtonLabel = null, t.BuyButtonDiamonIconNode = null, t.DisCountNode = null, t.DisCountLabel = null, t.DisCountDesc = null, t.LeftCountRichText = null, t.ReduceTagNode = null, t.ReduceTagLabel = null, t.RedDotNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), a.Game.EventDispatcher.On(d.EventKeys.EVENT_SECKILL_GIFT_DATA_REFRESH, this.RefreshGiftBoughtCount, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), a.Game.EventDispatcher.Off(d.EventKeys.EVENT_SECKILL_GIFT_DATA_REFRESH, this.RefreshGiftBoughtCount, this)
                }, t.prototype.Init = function(e, t, n, o, r, i, a, s) {
                    this._gfitConfig = e, this._extendData = t, this._activityConfig = n, this._isCurrentGroup = o, this._giftBoughtData = r, this._isGroupBuyCountMax = i, this._totalBuyCount = a, this._itemPrefab = s;
                    var l = this._giftBoughtData[this._gfitConfig.Id] ? this._giftBoughtData[this._gfitConfig.Id] : 0;
                    this._leftCount = t.LimitCount < l ? 0 : t.LimitCount - l, this.SetCurrentShow(), this.SetItemContainer()
                }, t.prototype.SetCurrentShow = function() {
                    this.SetNodeState(), this.ReduceTagNode.active = this._extendData.Discount > 0, this._gfitConfig.VipPoint > 0 && (this.VipPointTag.string = "task_get_score_tag".ToUILocale(), this.VipPointValue.string = "x" + this._gfitConfig.VipPoint), this._extendData.Discount > 0 && (this.ReduceTagLabel.string = "-" + this._extendData.Discount + "%"), this._gfitConfig.Money > 0 && this._gfitConfig.PayId ? this.BuyButtonLabel.string = p.default.Instance.CurrencySymbol + p.default.Instance.ExchangeMoney(this._gfitConfig.Money) : this._gfitConfig.Money > 0 && !this._gfitConfig.PayId ? this.BuyButtonLabel.string = this._gfitConfig.Money.toString() : this._gfitConfig.Money || (this.BuyButtonLabel.string = "shop_buyFree".ToUILocale()), this.LeftCountRichText.string = "Activity_SeckillGift_LeftCount".ToUILocale().Fmt(this._leftCount)
                }, t.prototype.SetNodeState = function() {
                    if (this.MaskNode.active = !1, this.BuyButton.node.active = !1, this.BuyButtonDiamonIconNode.active = !1, this.VipPointNode.active = !1, this.DisCountNode.active = !1, this.RedDotNode.active = !1, this._leftCount > 0)
                        if (this._gfitConfig.LimitType) {
                            var e = c.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityConfig._id),
                                t = 0;
                            e && e.Packs && e.Packs[this._gfitConfig.Id] && e.Packs[this._gfitConfig.Id].Items && e.Packs[this._gfitConfig.Id].Items[0] && (t = e.Packs[this._gfitConfig.Id].Items[0]), t < this._gfitConfig.LimitCount ? this.ShowBuyButton() : (this.MaskNode.active = !0, this.BuyTag.string = "bought".ToUILocale())
                        } else this.ShowBuyButton();
                    else this.MaskNode.active = !0, this.BuyTag.string = "soldOut".ToUILocale()
                }, t.prototype.ShowBuyButton = function() {
                    this.BuyButton.node.active = !0, this.BuyButtonDiamonIconNode.active = !this._gfitConfig.PayId && this._gfitConfig.Money > 0, this.RedDotNode.active = !this._gfitConfig.Money, this.VipPointNode.active = this._gfitConfig.VipPoint > 0, h.default.Instance.SetDisCount(this._gfitConfig.Discount, this.DisCountLabel, this.DisCountDesc)
                }, t.prototype.SetItemContainer = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemNode), this._itemComponent = e.getComponent(u.ItemComponent)
                    }
                    var t = this._gfitConfig.Items[0].Items;
                    this._itemComponent.Init({
                        ItemId: t[0],
                        Count: t[1]
                    })
                }, t.prototype.OnBuyButtonClick = function() {
                    if (this._isCurrentGroup)
                        if (this._isGroupBuyCountMax) s.UIUtlity.ShowFloatingHint("Activity_SeckillGift_BuyCount_Max_Tip".ToUILocale());
                        else if (this._totalBuyCount >= this._activityConfig.CustomPart.SumCount) s.UIUtlity.ShowFloatingHint("Activity_SeckillGift_TotalBuyCount_Max_Tip".ToUILocale());
                    else if (!this._gfitConfig.PayId && this._gfitConfig.Money > 0 && !c.DataCenter.Instance.IsItemEnough(f.CommonItemId.Diamond, this._gfitConfig.Money)) s.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(f.CommonItemId.Diamond.ToItemName()));
                    else if (this._gfitConfig.Money && this._gfitConfig.PayId) p.default.Instance.Pay(this._gfitConfig.Id, this._activityConfig._id);
                    else {
                        var e = new l.Req_Pay_ByDiamond;
                        e.Id = this._gfitConfig.Id, e.ActivityId = this._activityConfig._id, c.RpcComponent.Instance.Call(e, function(e) {
                            s.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else s.UIUtlity.ShowFloatingHint("Activity_SeckillGift_TimeOut_Tip".ToUILocale())
                }, t.prototype.RefreshGiftBoughtCount = function(e) {
                    this._isCurrentGroup && (this._giftBoughtData = e, this._giftBoughtData[this._gfitConfig.Id] && (this._leftCount = this._extendData.LimitCount < this._giftBoughtData[this._gfitConfig.Id] ? 0 : this._extendData.LimitCount - this._giftBoughtData[this._gfitConfig.Id], this.SetNodeState(), this.LeftCountRichText.string = "Activity_SeckillGift_LeftCount".ToUILocale().Fmt(this._leftCount)))
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && s.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, i([m(cc.Node)], t.prototype, "ItemNode", void 0), i([m(cc.Node)], t.prototype, "VipPointNode", void 0), i([m(cc.Label)], t.prototype, "VipPointTag", void 0), i([m(cc.Label)], t.prototype, "VipPointValue", void 0), i([m(cc.Node)], t.prototype, "MaskNode", void 0), i([m(cc.Label)], t.prototype, "BuyTag", void 0), i([m(cc.Button)], t.prototype, "BuyButton", void 0), i([m(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([m(cc.Node)], t.prototype, "BuyButtonDiamonIconNode", void 0), i([m(cc.Node)], t.prototype, "DisCountNode", void 0), i([m(cc.Label)], t.prototype, "DisCountLabel", void 0), i([m(cc.Label)], t.prototype, "DisCountDesc", void 0), i([m(cc.RichText)], t.prototype, "LeftCountRichText", void 0), i([m(cc.Node)], t.prototype, "ReduceTagNode", void 0), i([m(cc.Label)], t.prototype, "ReduceTagLabel", void 0), i([m(cc.Node)], t.prototype, "RedDotNode", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ActivitySeckillGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b2f78e0PKpHkoFz8JNxq4g9", "ActivitySeckillGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Components/CurrencyBarItem"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../RedDot/RedDotManager"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../Components/ActivitySeckillGiftComponent"),
            _ = e("../../../Util/TimeUtil"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../Auxiliary/GameRecord"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.BannerIcon = null, t.Title = null, t.RuleButton = null, t.LeftTimeRichText = null, t.CurrencyBarItem = null, t.TipRichText = null, t.DailyGiftButton = null, t.DailyGiftButtonLabel = null, t.CurrentShowNode = null, t.NextGiftTipLabel = null, t.NextShowNode = null, t.ReturnButton = null, t._nextGroupComponentArray = [], t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(C.EventKeys.EVENT_SECKILL_GIFT_GROUP_REFRESH, this.RefreshGroupContainer, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(C.EventKeys.EVENT_SECKILL_GIFT_GROUP_REFRESH, this.RefreshGroupContainer, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivitySeckillGiftPanel/Components/ActivitySeckillGiftComponent", cc.Prefab), n = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("ActivitySeckillGiftPanel/Components/ActivitySeckillGiftListItem", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._seckillGiftPrefab = e[0], r._itemPrefab = e[1], r._seckillGiftListItem = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "Activity_SeckillGift_Title".ToUILocale(), this.DailyGiftButtonLabel.string = "daysPay_daily".ToUILocale(), this.NextGiftTipLabel.string = "Activity_SeckillGift_Next_Tip".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.DailyGiftButton.node.on("click", this.OnDailyRewardButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._giftBoughtData = t[1], this._activityConfig = d.DataCenter.Instance.ActivityConfigs[n], this.SetGiftGroupData();
                    var o = d.ConfigDataComponent.Instance.GetConfigById(u.GlobalSetting_Config, "ActivitySeckillGiftDataRefreshTime");
                    this._refreshTimeConfigValue = Math.floor(o.Value / 1e3), this._refreshTimeIndex = this._refreshTimeConfigValue
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), [4, g.default.LoadActivityTexture(this._activityConfig.Common.Bg)];
                                case 1:
                                    return t = n.sent(), this._loadAssets.push(t), this.BannerIcon.spriteFrame = t, [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._playerModel = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id), t ? (this.RefreshCurrentGiftData(), this._refreshTimeIndex = this._refreshTimeConfigValue) : (this.SetLeftTime(), this.schedule(this.SetLeftTime, 1), this.SetShowGroupIdArray()), this.DailyGiftButton.node.active = !this._playerModel.DailyRewards, this.CurrencyBarItem.Init(m.CommonItemId.Diamond), this.SetTip(), this.SetGiftContainer(), this.SetRedDot()
                }, t.prototype.SetGiftGroupData = function() {
                    var e = this;
                    this._giftGroupData = {}, this._giftCongfigMap = {}, this._activityConfig.__PackExtend.forEach(function(t) {
                        e._giftGroupData[t.GroupId] ? e._giftGroupData[t.GroupId].push(t) : e._giftGroupData[t.GroupId] = [t]
                    }), this._activityConfig._Packs.forEach(function(t) {
                        e._giftCongfigMap[t.Id] = t
                    })
                }, t.prototype.SetTip = function() {
                    for (var e in this._totalBuyCount = 0, this._playerModel.Packs) this._playerModel.Packs[e] && this._playerModel.Packs[e].Items[0] && (this._totalBuyCount += this._playerModel.Packs[e].Items[0]);
                    this.TipRichText.string = "Activity_SeckillGift_BuyCount_Tip".ToUILocale().Fmt(this._totalBuyCount, this._activityConfig.CustomPart.SumCount)
                }, t.prototype.SetGiftContainer = function() {
                    for (var e = d.RpcComponent.Instance.ServerTime, t = 0, n = 0; n < this._activityConfig.__PackGroup.length; n++) {
                        var o = this._activityConfig.__PackGroup[n],
                            r = _.TimeUtil.StrToTime(o.ShowTime),
                            i = _.TimeUtil.StrToTime(o.StartTime),
                            a = _.TimeUtil.StrToTime(o.EndTime);
                        if (e > i && e < a) this._currentGroupComponent || ((s = cc.instantiate(this._seckillGiftPrefab)).setParent(this.CurrentShowNode), this._currentGroupComponent = s.getComponent(I.default)), this._currentGroupComponent.Init(o, this._giftGroupData, this._giftCongfigMap, this._giftBoughtData, this._activityConfig, this._totalBuyCount, this._seckillGiftListItem, this._itemPrefab);
                        else if (e > r && e < i) {
                            var s, l = this._nextGroupComponentArray[t];
                            l || ((s = cc.instantiate(this._seckillGiftPrefab)).setParent(this.NextShowNode), l = s.getComponent(I.default), this._nextGroupComponentArray[t] = l), l.node.active = !0, l.Init(o, this._giftGroupData, this._giftCongfigMap, this._giftBoughtData, this._activityConfig, this._totalBuyCount, this._seckillGiftListItem, this._itemPrefab), t++
                        }
                    }
                    if (t < this._nextGroupComponentArray.length)
                        for (n = t; n < this._nextGroupComponentArray.length; n++) this._nextGroupComponentArray[n].node.active = !1
                }, t.prototype.RefreshCurrentGiftData = function() {
                    var e = this,
                        t = new p.Req_Activity_SecondKillEnter;
                    t.ActivityId = this._activityConfig._id, d.RpcComponent.Instance.Call(t, function(t) {
                        t.PackMap && (e._giftBoughtData = JSON.parse(t.PackMap), l.Game.EventDispatcher.Emit(C.EventKeys.EVENT_SECKILL_GIFT_DATA_REFRESH, e._giftBoughtData))
                    })
                }, t.prototype.SetLeftTime = function() {
                    var e = g.default.Instance.ComputeDeadTime(this._activityConfig.Common) - d.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : (this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(g.default.ActivityTimeLeftFormat(e)), this._refreshTimeIndex--, this._refreshTimeIndex <= 0 && (this.RefreshCurrentGiftData(), this._refreshTimeIndex = this._refreshTimeConfigValue))
                }, t.prototype.SetRedDot = function() {
                    y.RedDotManager.Instance.BindInstance(this.DailyGiftButton.node, y.RedDotManager.Instance.InstanceRedDot.SeckillGiftDailyReward, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.RefreshGroupContainer = function() {
                    this.SetGiftContainer(), this.SetShowGroupIdArray()
                }, t.prototype.SetShowGroupIdArray = function() {
                    for (var e = [], t = 0; t < this._activityConfig.__PackGroup.length && _.TimeUtil.StrToTime(this._activityConfig.__PackGroup[t].StartTime) < d.RpcComponent.Instance.ServerTime; t++) e.push(this._activityConfig.__PackGroup[t].Id);
                    v.default.SetItem(v.GameRecordDefine.SeckillGiftShowGroupArray, JSON.stringify(e))
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "Activity_SeckillGift_Rule_Name".ToUILocale(),
                        titles: ["Activity_SeckillGift_Title".ToUILocale()],
                        contents: ["Activity_SeckillGift_Rule_Content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnDailyRewardButtonClick = function() {
                    if (this._playerModel.DailyRewards) c.UIUtlity.ShowFloatingHint("ActivityPurchase_DailyReward_Tip".ToUILocale());
                    else {
                        var e = new p.Req_Activity_CommonDailyRewards;
                        e.ActivityId = this._activityConfig._id, d.RpcComponent.Instance.Call(e, function(e) {
                            c.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([w(cc.Sprite)], t.prototype, "BannerIcon", void 0), i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([w(h.default)], t.prototype, "CurrencyBarItem", void 0), i([w(cc.RichText)], t.prototype, "TipRichText", void 0), i([w(cc.Button)], t.prototype, "DailyGiftButton", void 0), i([w(cc.Label)], t.prototype, "DailyGiftButtonLabel", void 0), i([w(cc.Node)], t.prototype, "CurrentShowNode", void 0), i([w(cc.Label)], t.prototype, "NextGiftTipLabel", void 0), i([w(cc.Node)], t.prototype, "NextShowNode", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([S], t)
            }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivitySeckillGiftComponent": "ActivitySeckillGiftComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem"
    }],
    ActivityShowOffPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6778bzjK09JopY7mMfVbUiC", "ActivityShowOffPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Components/Components"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../Components/ItemComponent"),
            _ = e("../../Auxiliary/EventKeys"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp), t.OrangeButtonLabel = null, t.OrangeButton = null, t.MainSprite = null, t.ReturnButton = null, t.LeftButton = null, t.RightButton = null, t.LeftTimeRichText = null, t.ToggleContainer = null, t.NameSprite = null, t.LimitPreferential = null, t.WeaponSprite = null, t.DescSprite = null, t.SkipToggle = null, t.SkipLabel = null, t.RewardLabel = null, t.RewardLayout = null, t.RewardScroller = null, t.RewardScrollerContent = null, t.SubNode = null, t._adShowTimes = null, t._rewardNodes = [], t._loadedAssets = [], t._sprites = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(y.BundlePath.ItemComponent), this.LoadDynamicAsset("ActivityShowOffPanel/Components/Toggle")]).then(function(e) {
                                        t._itemPrefab = e[0], t._togglePrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OrangeButtonLabel.string = "task_goto".ToUILocale(), this.SkipLabel.string = "activity_showOff_limit".ToUILocale(), this.RewardLabel.string = "activity_showoff_reward_hint".ToUILocale(), this.LeftButton.node.on("click", this.OnLeftButtonClick, this), this.RightButton.node.on("click", this.OnRightButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.SkipToggle.node.on("toggle", this.OnClickSkip, this)
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this), this._datas = t[0], this._currentIndex = 0, this.ToggleContainer.active = !1, this.ToggleContainer.active) {
                        this._toggles = [];
                        for (var n = 0; n < this._datas.length; n++) {
                            var o = cc.instantiate(this._togglePrefab);
                            o.setParent(this.ToggleContainer), this._toggles[n] = o.getComponent(cc.Toggle)
                        }
                    }
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.InitSpriteActive(), this.LoadSprite(), this.SetRewardNode(), this.SetSkipToggle(), this.SetSubNodeConfig(), this.SetSubNode();
                    var n = this._datas[this._currentIndex];
                    this._toggles && this._toggles[this._currentIndex] && (this._toggles[this._currentIndex].isChecked = !0), this.OrangeButton.node.active = n.AnnouncementConfig.JumpId > 0, this._deadLine = f.default.Instance.ComputeDeadTime(n.ActivityConfig.Common), n.AnnouncementConfig.IsShowTime ? this.LeftTimeRichText.node.parent.active = !1 : (this.LeftTimeRichText.node.parent.active = !0, this.CountDown(), this.unscheduleAllCallbacks(), this.schedule(this.CountDown, 1))
                }, t.prototype.OnReturnButtonClick = function() {
                    this._currentIndex++, this._currentIndex >= this._datas.length ? l.UIManager.Instance.BackUIPanel() : this.DisPlay()
                }, t.prototype.OnLeftButtonClick = function() {
                    this._currentIndex--, this.DisPlay()
                }, t.prototype.OnRightButtonClick = function() {
                    this._currentIndex++, this.DisPlay()
                }, t.prototype.OnOrangeButtonClick = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function() {
                            return l.UIManager.Instance.ClearPanelQueue(), e = d.ConfigDataComponent.Instance.GetConfigById(u.ItemGetWay_Config, this._datas[this._currentIndex].AnnouncementConfig.JumpId), (t = f.default.Instance.CheckItemGetWayCanShow(e))[0] ? (l.UIManager.Instance.BackUIPanel(), f.default.ShowPanelByGetWayId(e.Id), [2]) : (p.UIUtlity.ShowFloatingHint(t[1]), [2])
                        })
                    })
                }, t.prototype.OnClickSkip = function(e) {
                    var t = new c.Req_Activity_NotPrompt;
                    if (t.ActivityId = this._datas[this._currentIndex].ActivityConfig._id, e.isChecked)
                        if (null != this._datas[this._currentIndex].Index) {
                            var n = g.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._datas[this._currentIndex].ActivityConfig._id),
                                o = f.default.SetBinaryByIndex(n.NotPrompt, this._datas[this._currentIndex].Index);
                            t.NotPrompt = o
                        } else t.NotPrompt = 1;
                    else null != this._datas[this._currentIndex].Index ? (n = g.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._datas[this._currentIndex].ActivityConfig._id), o = f.default.ClearBinaryByIndex(n.NotPrompt, this._datas[this._currentIndex].Index), t.NotPrompt = o) : t.NotPrompt = 0;
                    g.RpcComponent.Instance.CallWithoutMask(t, function() {}, function() {})
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - d.RpcComponent.Instance.ServerTime;
                    e < 0 && this.OnReturnButtonClick(), this.LeftTimeRichText.string = "openServer_frameCountDown".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e))
                }, t.prototype.InitSpriteActive = function() {
                    this.NameSprite.node.active = !1, this.DescSprite.node.active = !1, this.WeaponSprite.node.active = !1, this.LimitPreferential.node.active = !1
                }, t.prototype.LoadSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = this._datas[this._currentIndex].ActivityConfig.Common.Type == h.ActivityType.Announcement ? this._datas[this._currentIndex].ActivityConfig.Common.Pictures && this._datas[this._currentIndex].ActivityConfig.Common.Pictures.length > 0 ? this._datas[this._currentIndex].ActivityConfig.Common.Pictures[0] : "" : this._datas[this._currentIndex].AnnouncementConfig.Picture, [4, f.default.LoadActivityTexture(e)];
                                case 1:
                                    if (t = s.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(t), [2];
                                    if (this._loadedAssets.push(t), this.MainSprite.spriteFrame = t, !(this._datas[this._currentIndex].AnnouncementConfig.Param && this._datas[this._currentIndex].AnnouncementConfig.Param.length > 0)) return [3, 8];
                                    switch (this._datas[this._currentIndex].AnnouncementConfig.Param[0]) {
                                        case 4:
                                            return [3, 2];
                                        case 5:
                                            return [3, 4]
                                    }
                                    return [3, 7];
                                case 2:
                                    return this.DescSprite.node.active = !0, this.WeaponSprite.node.active = !0, this.LimitPreferential.node.active = !0, n = this._datas[this._currentIndex].AnnouncementConfig.Param[1], r = g.ConfigDataComponent.Instance.GetConfigById(u.StarPiece_Config, n), i = f.default.Instance.GetItemPathById(r.ItemBaseId), [4, this.LoadDynamicAsset(i, cc.SpriteFrame)];
                                case 3:
                                    return a = s.sent(), this.isValid ? (this.LimitPreferential.spriteFrame = p.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("limitPreferential"), this.DescSprite.spriteFrame = p.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("weapon"), this.WeaponSprite.node.opacity = 20, this.WeaponSprite.spriteFrame = a, cc.tween(this.WeaponSprite.node).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start(), [3, 8]) : (m.AssetsManager.Instance.UnloadAsset(a), [2]);
                                case 4:
                                    return this.NameSprite.node.active = !0, this.DescSprite.node.active = !0, this.WeaponSprite.node.active = !0, this.LimitPreferential.node.active = !0, o = this._datas[this._currentIndex].AnnouncementConfig.Param[1], (r = g.ConfigDataComponent.Instance.GetConfigById(u.ExclusiveWeapon_Config, o)) ? (i = f.default.Instance.GetItemPathById(r.ItemBaseId), [4, this.LoadDynamicAsset(i, cc.SpriteFrame)]) : [2];
                                case 5:
                                    return a = s.sent(), this.isValid ? [4, this.LoadDynamicAsset(d.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/" + o), cc.SpriteFrame)] : (m.AssetsManager.Instance.UnloadAsset(a), [2]);
                                case 6:
                                    return l = s.sent(), this.isValid ? (this.LimitPreferential.spriteFrame = p.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("limitPreferential"), this.DescSprite.spriteFrame = p.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("newWeapon"), this.WeaponSprite.node.opacity = 20, this.WeaponSprite.spriteFrame = a, this.NameSprite.spriteFrame = l, cc.tween(this.WeaponSprite.node).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start(), [3, 8]) : (m.AssetsManager.Instance.UnloadAsset(l), [2]);
                                case 7:
                                    return [3, 8];
                                case 8:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetRewardNode = function() {
                    var e, t = this;
                    this.RewardLabel.node.active = !1, this.RewardLayout.active = !1, this.RewardScroller.active = !1, this._datas[this._currentIndex].AnnouncementConfig.ShowItems.length > 0 && (this.RewardLabel.node.active = !0, this._rewardNodes.forEach(function(e) {
                        e.active = !1
                    }), this._datas[this._currentIndex].AnnouncementConfig.ShowItems.length > 4 ? (this.RewardScroller.active = !0, e = this.RewardScrollerContent) : (this.RewardLayout.active = !0, e = this.RewardLayout), this._datas[this._currentIndex].AnnouncementConfig.ShowItems.forEach(function(n, o) {
                        if (!t._rewardNodes[o]) {
                            var r = cc.instantiate(t._itemPrefab);
                            t._rewardNodes[o] = r
                        }
                        t._rewardNodes[o].parent = e, t._rewardNodes[o].active = !0, t._rewardNodes[o].getComponent(I.ItemComponent).Init({
                            ItemId: n.Items[0],
                            Count: n.Items[1]
                        })
                    }))
                }, t.prototype.SetSkipToggle = function() {
                    var e, t = this._datas[this._currentIndex].ActivityConfig._id,
                        n = g.DataCenter.Instance.GetDataById(c.UserActivity_Model, t);
                    e = null != this._datas[this._currentIndex].Index ? n && n.NotPrompt && 1 == this.GetBit(n.NotPrompt, this._datas[this._currentIndex].Index) : n && n.NotPrompt && 1 == n.NotPrompt, this.SkipToggle.isChecked = e
                }, t.prototype.SetSubNodeConfig = function() {
                    var e = this;
                    this._subNodeConfigMap || (this._subNodeConfigMap = {}, this._datas.forEach(function(t) {
                        var n = t.ActivityConfig._id;
                        t.AnnouncementConfig.SubNode && t.AnnouncementConfig.SubNode.length > 0 && t.ActivityConfig._SubNodes.forEach(function(t) {
                            var o = n + "_" + t.Id;
                            e._subNodeConfigMap[o] = t
                        })
                    }))
                }, t.prototype.SetSubNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function() {
                            return this.SubNode.active = !1, this._sprites.forEach(function(e) {
                                e.node.active = !1
                            }), this._datas[this._currentIndex].AnnouncementConfig.SubNode && this._datas[this._currentIndex].AnnouncementConfig.SubNode.length > 0 && (this.SubNode.active = !0, this._datas[this._currentIndex].AnnouncementConfig.SubNode.forEach(function(t, n) {
                                if (!e._sprites[n]) {
                                    var o = new cc.Node;
                                    o.setParent(e.SubNode), e._sprites[n] = o.addComponent(cc.Sprite)
                                }
                                e._sprites[n].node.active = !0;
                                var r = e._datas[e._currentIndex].ActivityConfig._id + "_" + t,
                                    i = e._subNodeConfigMap[r];
                                i && (e.SetNodePos(i, e._sprites[n].node), e.SetSprite(e._sprites[n], i))
                            })), [2]
                        })
                    })
                }, t.prototype.SetSprite = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, f.default.LoadActivityTexture(t.StrParam)];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this._loadedAssets.push(n), e.spriteFrame = n, t.Size.length > 0 && e.node.setContentSize(t.Size[0], t.Size[1]), [2]) : (l.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.SetNodePos = function(e, t) {
                    var n = (e.Positions[0] || 0) - 540,
                        o = 960 - (e.Positions[1] || 0);
                    t.setPosition(cc.v2(n, o))
                }, t.prototype.GetBit = function(e, t) {
                    return e >> t & 1
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardLayout.children.indexOf(t) ? p.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t) : -1 != this.RewardScrollerContent.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t)
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this);
                    for (var t = 0; t < this._loadedAssets.length; t++) m.AssetsManager.Instance.UnloadAsset(this._loadedAssets[t]);
                    this._loadedAssets = [], this._sprites = []
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([b(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([b(cc.Button)], t.prototype, "OrangeButton", void 0), i([b(cc.Sprite)], t.prototype, "MainSprite", void 0), i([b(cc.Button)], t.prototype, "ReturnButton", void 0), i([b(cc.Button)], t.prototype, "LeftButton", void 0), i([b(cc.Button)], t.prototype, "RightButton", void 0), i([b(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([b(cc.Node)], t.prototype, "ToggleContainer", void 0), i([b(cc.Sprite)], t.prototype, "NameSprite", void 0), i([b(cc.Sprite)], t.prototype, "LimitPreferential", void 0), i([b(cc.Sprite)], t.prototype, "WeaponSprite", void 0), i([b(cc.Sprite)], t.prototype, "DescSprite", void 0), i([b(cc.Toggle)], t.prototype, "SkipToggle", void 0), i([b(cc.Label)], t.prototype, "SkipLabel", void 0), i([b(cc.Label)], t.prototype, "RewardLabel", void 0), i([b(cc.Node)], t.prototype, "RewardLayout", void 0), i([b(cc.Node)], t.prototype, "RewardScroller", void 0), i([b(cc.Node)], t.prototype, "RewardScrollerContent", void 0), i([b(cc.Node)], t.prototype, "SubNode", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActivitySinglePageGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5ffd8GKHphFUqh31GlimhiF", "ActivitySinglePageGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./NodePool"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Channel/ChannelManager"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/ItemComponent"),
            C = e("../../Components/Components"),
            v = e("./CommonTaskTipComponent"),
            b = e("../../../Consts/Consts"),
            S = e("../Components/OpenBubbleComponent"),
            w = e("./PinkToggle"),
            P = e("../Battle/BattleManager"),
            A = e("../Battle/BattleData"),
            T = e("../../Auxiliary/GameRecord"),
            R = e("../../RedDot/RedDotManager"),
            L = e("../Components/ActivityCountDownComponent"),
            k = e("../Components/ActivitySinglePageTypeThreeComponent"),
            O = e("./CommonCustomGiftPackListItem"),
            M = cc._decorator,
            D = M.ccclass,
            B = M.property,
            N = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.CommonNode = null, t.CommonActivityCountDownComponent = null, t.GiftContainer = null, t.BannerSprite = null, t.TitleSprite = null, t.SkinNode = null, t.SkinBg = null, t.SkinInfoBg = null, t.SkinPanelLeftBg = null, t.SkinPanelRightBg = null, t.HeroSkinNode = null, t.CitySkinNode = null, t.CitySkinBg = null, t.CityTitleSprite = null, t.HeroUIContainer = null, t.HeroAvatarContainer = null, t.HeroNameImage = null, t.SkinNameImage = null, t.ActivityCountDownComponent = null, t.SkinGiftContainer = null, t.GoButton = null, t.GoLabel = null, t.CommonTaskTipComponentBg = null, t.CommonTaskTipComponent = null, t.DiscountBagButton = null, t.DiscountBagLabel = null, t.DiscountBagTipLabel = null, t.AttrIconArr = [], t.AttrNameLabelArr = [], t.AttrValueLabelArr = [], t.OpenBubbleComponent = null, t.ToggleContent = null, t.TypeThreeSprite = null, t.TypeThreePageContainer = null, t.TypeThreeArrowLeft = null, t.TypeThreeArrowRight = null, t.SkinTryButton = null, t.SkinTryLabel = null, t.ElementSprite = null, t._nextGiftMap = {}, t._isNewActivity = !1, t._packDatas = [], t._assets = [], t._selectToggle = 0, t._toggleComponents = [], t._typeThreeComponents = [], t._typeThreeCurrenctPage = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyButtonClick, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyButtonClick, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("CommonPanel/SubItems/CommonCustomGiftPackListItem", cc.Prefab), this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        t._giftListItemPrefab = e[0], t._itemPrefab = e[1], t._itemPool = new y.default(e[1])
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GoLabel.string = "skinGift_go".ToUILocale(), this.SkinTryLabel.string = "trySkin_btn".ToUILocale(), this.DiscountBagButton.node.on("click", this.OnDiscountBagButtonClick, this), this.GoButton.node.on("click", this.OnGoButtonClick, this), this.SkinTryButton.node.on("click", this.OnSkinTryButtonClick, this), this.CommonTaskTipComponent.InitData(), this.CommonTaskTipComponentBg.active = this.CommonTaskTipComponent.IsUnlock, this.TypeThreeArrowLeft.node.on("click", this.OnClickTypeThreeArrowLeft, this), this.TypeThreeArrowRight.node.on("click", this.OnClickTypeThreeArrowRight, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this);
                    var o = t[0];
                    this._data = c.DataCenter.Instance.ActivityConfigs[o], this._deadLine = h.default.Instance.ComputeDeadTime(this._data.Common);
                    var r = this._giftListItemPrefab;
                    if (this._data.CustomPart.Type || (this.SetBanner(), this.CommonActivityCountDownComponent.Init(this._data.Common)), this.ActivityCountDownComponent.Init(this._data.Common), this._giftListItems = [], this._nextGiftMap = {}, this.SkinTryButton.node.active = !1, this._packDatas = [], this._model = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._data._id), this._model.IntArray && this._model.IntArray.length > 0) {
                        var i = 0;
                        this._model.IntArray.forEach(function(e) {
                            e > 0 && i++
                        }), this._model.IntArray.length == i && (this._isNewActivity = !0)
                    }
                    this._isNewActivity ? this._model.IntArray.forEach(function(e) {
                        var t = n._data.__PackExtend.findIndex(function(t) {
                            return t.Id == e
                        });
                        if (t > -1) {
                            var o = n._data.__PackExtend[t].Packs;
                            n._packDatas.push(o)
                        }
                    }) : this._packDatas = [this._data.CustomPart.Packs1, this._data.CustomPart.Packs2], this._packDatas.forEach(function(e) {
                        if (e && e.length > 0) {
                            var t = cc.instantiate(r);
                            n._data.CustomPart.Type ? (t.setParent(n.SkinGiftContainer), t.width = 933) : (t.setParent(n.GiftContainer), t.width = 912);
                            var o = t.getComponent(O.default);
                            n._giftListItems.push(o);
                            for (var i = 0; i < e.length; i++) {
                                var a = n.GetGiftData(e[i]);
                                a.UnlockCondition ? n._nextGiftMap[a.UnlockCondition] = a.Id : o.SetGiftId(a.Id)
                            }
                        }
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), 2 != this._data.CustomPart.Type ? [3, 1] : (this.SetBanner(), [3, 3]);
                                case 1:
                                    return 1 != this._data.CustomPart.Type ? [3, 3] : [4, this.SetSkinPictures()];
                                case 2:
                                    n.sent(), n.label = 3;
                                case 3:
                                    return this._data.CustomPart.Param.length > 1 ? (t = this, [4, this.LoadDynamicAsset("Buttons/PinkToggle", cc.Prefab)]) : [3, 5];
                                case 4:
                                    t._togglePrefab = n.sent(), n.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetSkinPictures = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = [], t = [], (n = this._data.Common.Pictures[0]) && (e.push(this.SkinBg), t.push(h.default.LoadActivityTexture(n))), (n = this._data.Common.Pictures[1]) && (e.push(this.SkinInfoBg), t.push(h.default.LoadActivityTexture(n))), (n = this._data.Common.Pictures[2]) && (e.push(this.SkinPanelLeftBg), t.push(h.default.LoadActivityTexture(n))), [4, Promise.all(t).then(function(t) {
                                        for (var n = 0; n < t.length; n++) e[n].spriteFrame = t[n], o._assets.push(t[n])
                                    })];
                                case 1:
                                    return r.sent(), this.SkinPanelLeftBg.spriteFrame && this.SkinPanelLeftBg.spriteFrame.name != this.SkinPanelRightBg.spriteFrame.name && (this.SkinPanelRightBg.spriteFrame = this.SkinPanelLeftBg.spriteFrame), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), t || (this._data.Common.CanDiscount ? (this.DiscountBagButton.node.active = !0, this.DiscountBagLabel.string = "DiscountTicketBag_Title".ToUILocale(), this.DiscountBagTipLabel.string = "DiscountTicketBag_Bubble_Tip".ToUILocale()) : this.DiscountBagButton.node.active = !1), this.CommonNode.active = !this._data.CustomPart.Type && 3 != this._data.CustomPart.Type, this.SkinNode.active = 0 != this._data.CustomPart.Type && 3 != this._data.CustomPart.Type, this.HeroSkinNode.active = 1 == this._data.CustomPart.Type, this.CitySkinNode.active = 2 == this._data.CustomPart.Type, this.TypeThreeSprite.node.active = 3 == this._data.CustomPart.Type, this._data.CustomPart.Type || (this.CommonTaskTipComponentBg.active = !1, this.CommonTaskTipComponent.node.active = !1), this._model = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._data._id), 3 != this._data.CustomPart.Type) {
                        for (var n = 0; n < this._giftListItems.length; n++) {
                            for (var o = this._giftListItems[n].GetGiftId(), r = this.GetGiftData(o), i = this._nextGiftMap[o]; this.GetGiftBuyCount(o) >= r.LimitCount && i;) o = i, r = this.GetGiftData(o), i = this._nextGiftMap[o];
                            var a = {};
                            if (a.ActivityId = this._data._id, a.Pack = r, a.Rewards = [], this._data.__Custom.length > 0)
                                for (var s = 0; s < this._data.__Custom.length; s++)
                                    if (this._data.__Custom[s].Id == o) {
                                        for (var u = 0; u < this._data.__Custom[s].RewardIds.length; u++) {
                                            var d = this._data.__Custom[s].RewardIds[u],
                                                h = this.GetCustomReward(d);
                                            h && a.Rewards.push(h)
                                        }
                                        break
                                    } this._giftListItems[n].initData(a), this._giftListItems[n].SetGiftId(o)
                        }
                        this.ToggleContent.active = !1, 1 == this._data.CustomPart.Type && (this.SetSkinContent(), this.SetToggles(), this.SkinTryButton.node.active = this._data.__Maps && this._data.__Maps.length > 0), this.CheckIsAllBuy() && l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, this._data._id, -1)
                    } else this.SetTypeThreeNode()
                }, t.prototype.GetCustomReward = function(e) {
                    var t = this;
                    return this._rewardMap || (this._rewardMap = {}, this._data.__Reward.forEach(function(e) {
                        t._rewardMap[e.Id] = e
                    })), this._rewardMap[e]
                }, t.prototype.SetSkinContent = function() {
                    this.SetSkinTryData(), this.SetHeroElement(), this.SetHeroName(), this.SetSkinName(), this.SetSkinAttr(), this.SetOpenBubbleComponent(), this.SetHeroAvatar(), this.RefreshSkinTryReddot()
                }, t.prototype.GetHeroData = function(e, t, n, o) {
                    var r = C.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, t),
                        i = Math.min(o, r.MaxStarLevel),
                        a = C.ConfigDataComponent.Instance.GetConfigById(d.HeroStar_Config, i),
                        s = Math.min(n, a.MaxLevel),
                        l = e < 0 ? this._skinId : 0,
                        u = {
                            Sid: e,
                            HeroId: t,
                            Level: s,
                            StarLevel: i,
                            Power: c.ConfigCacheComponent.Instance.GetHeroPowerByStarAndLevel(t, i, s),
                            SkinId: l
                        };
                    return p.UserHero_Model.create(u)
                }, t.prototype.SetSkinTryData = function() {
                    var e = this;
                    if (this._data.__Maps && this._data.__Maps.length) {
                        this._skinMapConfig || (this._skinMapConfig = {}, this._data.__Maps.forEach(function(t) {
                            e._skinMapConfig[t.SkinId] = t
                        })), this._skinId = this._data.CustomPart.Param[this._selectToggle], this._mapId = this._skinMapConfig[this._skinId].MapId;
                        var t = C.ConfigDataComponent.Instance.GetConfigById(d.MapBase_Config, this._mapId),
                            o = c.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, this._skinId),
                            r = -o.HeroId,
                            i = c.DataCenter.Instance.GetDataList(p.UserHero_Model),
                            a = [];
                        i.forEach(function(t, n, r) {
                            if (t.HeroId != o.HeroId && r.findIndex(function(e) {
                                    return e.HeroId === t.HeroId
                                }) === n) {
                                var i = e.GetHeroData(t.Sid, t.HeroId, e._data.CustomPart.HeroLevel, e._data.CustomPart.HeroStar);
                                a.push(i)
                            }
                        }), h.default.Instance.SortHeroByRule2(a);
                        var s = this.GetHeroData(r, o.HeroId, this._data.CustomPart.HeroLevel, this._data.CustomPart.HeroStar);
                        a.unshift(s), c.DataCenter.Instance.SetTempData(n.TEMP_SKIN_TRIALUSERHEROES_DATA + r, a), c.DataCenter.Instance.SetTempData(n.TEMP_MAPTYPE_SKINID + t.Type, this._skinId);
                        var l = C.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, o.HeroId),
                            u = Math.min(this._data.CustomPart.HeroStar, l.MaxStarLevel),
                            f = {
                                HeroId: o.HeroId,
                                MaxStar: u
                            },
                            y = p.HeroInfo_Model.create(f);
                        c.DataCenter.Instance.SetTempData(n.TEMP_SKIN_TRIALHERO_INFO + r, y)
                    }
                }, t.prototype.SetTypeThreeNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset("ActivitySinglePageGiftPanel/Components/ActivitySinglePageTypeThreeComponent", cc.Prefab)];
                                case 1:
                                    if (e = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (t = 0; t < this._model.IntArray.length; t++)(n = this._typeThreeComponents[t]) || ((o = cc.instantiate(e)).setParent(this.TypeThreePageContainer), n = o.getComponent(k.default), this._typeThreeComponents.push(n)), n.Init(this._data._id, t, this._itemPrefab), this._isFirstInitType3 || n.GetIsAllBuy() && (n.node.active = !1);
                                    for (this._isFirstInitType3 = !0; t < this._typeThreeComponents.length; t++) this._typeThreeComponents[t].node.active = !1;
                                    for (r = 0, i = !0, u = 0; u < this._typeThreeComponents.length; u++) this._typeThreeComponents[u].node.active && (r++, this._typeThreeComponents[u].GetIsAllBuy() || (i = !1, !a && this._typeThreeComponents[u].GetIconPath() && (a = this._typeThreeComponents[u].GetIconPath()), !c && this._typeThreeComponents[u].GetGiftName() && (c = this._typeThreeComponents[u].GetGiftName())));
                                    return a || (a = I.UIUtlity.GetIconPath(this._data.Common.Icon)), this.TypeThreeArrowLeft.node.active = r > 1 && this._typeThreeCurrenctPage > 0, this.TypeThreeArrowRight.node.active = r > 1 && this._typeThreeCurrenctPage < r - 1, i && l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, this._data._id, -1), l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_ACTIVITY_ICON_REFRESH, this._data._id, a, c), [2]
                            }
                        })
                    })
                }, t.prototype.CheckIsAllBuy = function() {
                    for (var e = 0; e < this._packDatas.length; e++)
                        for (var t = this._packDatas[e], n = 0; n < t.length; n++) {
                            var o = this.GetGiftData(t[n]);
                            if (this.GetGiftBuyCount(o.Id) < o.LimitCount) return !1
                        }
                    return !0
                }, t.prototype.SetHeroElement = function() {
                    var e = this._data.CustomPart.Param[this._selectToggle],
                        t = C.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, e),
                        n = C.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, t.HeroId),
                        o = I.UIUtlity.GetHeroElementIcon(n.ElementType);
                    this.ElementSprite.spriteFrame = o
                }, t.prototype.SetHeroName = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = this._data.CustomPart.Param[this._selectToggle], t = C.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, e), [4, this.LoadDynamicAsset(c.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/" + t.HeroId), cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this.HeroNameImage.spriteFrame = n, [2]) : (l.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.SetSkinName = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return (e = this._data.Common.ShowImage.split("|")).length > 1 ? e[this._selectToggle] && (t = e[this._selectToggle]) : t = this._data.Common.ShowImage, t ? [4, h.default.LoadActivityTexture(t)] : [3, 2];
                                case 1:
                                    if (n = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this.SkinNameImage.spriteFrame = n, this._assets.push(n), o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetSkinAttr = function() {
                    var e = C.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, this._data.CustomPart.Param[this._selectToggle]),
                        t = e.HeroAttrIds[e.HeroAttrIds.length - 1],
                        n = C.ConfigDataComponent.Instance.GetConfigById(d.HeroSkinAttrs_Config, t);
                    if (n)
                        for (var o = Math.min(this.AttrIconArr.length, n.Attrs.length), r = 0; r < o; r++) {
                            var i = n.Attrs[r].Items,
                                a = h.default.GetHeroAttribute(i[0], i[1], !0);
                            this.AttrIconArr[r].spriteFrame = a.Icon, this.AttrNameLabelArr[r].string = a.Name, this.AttrValueLabelArr[r].string = "+" + a.Value
                        }
                }, t.prototype.SetOpenBubbleComponent = function() {
                    this.OpenBubbleComponent.node.active = !1;
                    var e = C.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, this._data.CustomPart.Param[this._selectToggle]);
                    if (e) {
                        var t = e.Id.ToSkinDesc();
                        if (t) {
                            this.OpenBubbleComponent.node.active = !0;
                            var n = {};
                            n.Desc = t, this.OpenBubbleComponent.Init(n)
                        }
                    }
                }, t.prototype.SetHeroAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return n = this._data.CustomPart.Param[this._selectToggle], (o = C.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, n)) ? (r = this.LoadDynamicAsset(o.UIAvatar + "/Avatar"), i = this.LoadDynamicAsset("Hero_" + o.Model + "/HeroAvatar"), [4, Promise.all([r, i]).then(function(n) {
                                        e = n[0], t = n[1]
                                    })]) : [3, 2];
                                case 1:
                                    if (s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this.HeroUIContainer.destroyAllChildren(), this.HeroAvatarContainer.destroyAllChildren(), (a = cc.instantiate(e)).setParent(this.HeroUIContainer), (c = cc.instantiate(t)).setParent(this.HeroAvatarContainer), a.getComponent(sp.Skeleton).clearTracks(), a.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0), c.getComponent(sp.Skeleton).clearTracks(), c.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0), s.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    if (this.GoButton.node.active = this._data.CustomPart.Param.length <= 1, this.ToggleContent.active = this._data.CustomPart.Param.length > 1, this._data.CustomPart.Param.length > 1) {
                        this._data.CustomPart.Param.forEach(function(t, n) {
                            if (!e._toggleComponents[n]) {
                                var o = cc.instantiate(e._togglePrefab);
                                o.parent = e.ToggleContent, o.name = n.toString(), o.on("toggle", e.OnSwitchSkin, e), e._toggleComponents[n] = o.getComponent(w.default)
                            }
                            e._toggleComponents[n].InitDisplay(t.ToSkinName()), e._toggleComponents[n].node.active = !0
                        });
                        for (var t = this._data.CustomPart.Param.length; t < this._toggleComponents.length; t++) this._toggleComponents[t].node.active = !1
                    }
                }, t.prototype.OnSwitchSkin = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._selectToggle != t && (this._selectToggle = t, this.SetSkinContent())
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = this.TitleSprite, t = this.BannerSprite, 2 == this._data.CustomPart.Type && (e = this.CityTitleSprite, t = this.CitySkinBg), (n = this._data.Common.ShowImage.split("|")).length > 1 ? (o = n[0], r = n[1], [4, h.default.LoadActivityTexture(r)]) : [3, 3];
                                case 1:
                                    return i = s.sent(), [4, h.default.LoadActivityTexture(o)];
                                case 2:
                                    return a = s.sent(), this.isValid ? (e.node.active = !0, e.spriteFrame = i, t.spriteFrame = a, this._assets.push(i), this._assets.push(a), [3, 5]) : (l.AssetsManager.Instance.UnloadAsset(i), l.AssetsManager.Instance.UnloadAsset(a), [2]);
                                case 3:
                                    return e.node.active = !1, [4, h.default.LoadActivityTexture(this._data.Common.ShowImage)];
                                case 4:
                                    if (c = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(c), [2];
                                    t.spriteFrame = c, this._assets.push(c), s.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetGiftData = function(e) {
                    for (var t = 0; t < this._data._Packs.length; t++)
                        if (e == this._data._Packs[t].Id) return this._data._Packs[t]
                }, t.prototype.GetGiftBuyCount = function(e) {
                    var t = this._model.Packs[e];
                    return null == t || null == t.Items[0] ? 0 : t.Items[0]
                }, t.prototype.OnBuyButtonClick = function(e, t) {
                    var n = this,
                        o = !0;
                    1 == this._data.CustomPart.Type && this.GetGiftData(t).Items.forEach(function(e) {
                        var r = e.Items[0],
                            i = C.ConfigDataComponent.Instance.GetConfigById(d.ItemConsume_Config, r);
                        if (i && i.SubType == b.ConsumeItemType.HeroSkin) {
                            var a = i.Param[0].Items[0],
                                s = c.DataCenter.Instance.GetDataById(p.HeroSkin_Model, a);
                            s && s.IsPerpetual && (o = !1, I.UIUtlity.ShowHintPanel("", "skinGift_hint".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                m.default.Instance.Pay(t, n._data._id)
                            }))
                        }
                    }), o && m.default.Instance.Pay(t, this._data._id)
                }, t.prototype.OnTypeThreeBuyButtonClick = function() {
                    if (this._giftListItems.length > 0) {
                        var e = this._giftListItems[0].GetGiftId();
                        this.OnBuyButtonClick(0, e)
                    }
                }, t.prototype.OnSkinTryButtonClick = function() {
                    if (this._mapId) {
                        var e = C.ConfigDataComponent.Instance.GetConfigById(d.MapBase_Config, this._mapId);
                        if (P.BattleManager.Instance.IsInBattle(e.Type)) {
                            var t = A.BattleData.PlayingBattleDatas[e.Type];
                            this._mapId != t.Reports[0].MapId ? I.UIUtlity.ShowFloatingHint("TrialHero_Challenging".ToUILocale().Fmt(t.Reports[0].MapId.ToMapName())) : P.BattleManager.Instance.ResumePlayBattle(e.Type)
                        } else this.SetClickSkinTryData(), this.RefreshSkinTryReddot(), l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._data._id), l.Game.EventDispatcher.Emit(u.GameEventIds.StartBattle.Fmt(e.Type), this._mapId)
                    }
                }, t.prototype.RefreshSkinTryReddot = function() {
                    R.RedDotManager.Instance.BindInstance(this.SkinTryButton.node, R.RedDotManager.Instance.InstanceRedDot.SkinTryBtn, {
                        Value1: this._data._id,
                        extra: this._skinId
                    })
                }, t.prototype.SetClickSkinTryData = function() {
                    var e, t = T.default.GetItem(T.GameRecordDefine.TrySkinReddot);
                    t ? ((e = JSON.parse(t))[this._data._id] ? e[this._data._id].includes(this._skinId) || e[this._data._id].push(this._skinId) : e[this._data._id] = [this._skinId], T.default.SetItem(T.GameRecordDefine.TrySkinReddot, JSON.stringify(e))) : ((e = {})[this._data._id] = [this._skinId], T.default.SetItem(T.GameRecordDefine.TrySkinReddot, JSON.stringify(e)))
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemFather0" == t.parent.name && I.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                }, t.prototype.OnGoButtonClick = function() {
                    if (1 == this._data.CustomPart.Type) {
                        var e = this._data.CustomPart.Param[this._selectToggle],
                            t = C.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, e);
                        l.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroSkinPanel.Path, t.HeroId, 2, e)
                    } else 2 == this._data.CustomPart.Type && l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CollectionPreviewPanel.Path, this._data.CustomPart.Param[0])
                }, t.prototype.OnDiscountBagButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.DiscountTicketBagPanel.Path)
                }, t.prototype.onDestroy = function() {
                    if (this._assets.forEach(function(e) {
                            l.AssetsManager.Instance.UnloadAsset(e)
                        }), this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear(), this._skinId) {
                        var e = c.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, this._skinId);
                        c.DataCenter.Instance.DeleteTempData(n.TEMP_SKIN_TRIALUSERHEROES_DATA + -e.HeroId)
                    }
                    this._skinMapConfig = null, cc.Tween.stopAllByTarget(this.TypeThreePageContainer)
                }, t.InitBattle = function() {
                    var e = this;
                    [u.MapType.ActivitySkinTry, u.MapType.ActivitySkinTry2, u.MapType.ActivitySkinTry3, u.MapType.ActivitySkinTry4].forEach(function(t) {
                        l.Game.EventDispatcher.Only(u.GameEventIds.StartBattle.Fmt(t), n.StartBattle, e), l.Game.EventDispatcher.Only(u.GameEventIds.RestartBattle.Fmt(t), n.RestartBattle, e), l.Game.EventDispatcher.Only(u.GameEventIds.SettleBattle.Fmt(t), n.SettleBattle, e), l.Game.EventDispatcher.Only(u.GameEventIds.CancelBattle.Fmt(t), n.CancelBattle, e), l.Game.EventDispatcher.Only(u.GameEventIds.BattleSwitchToBackground.Fmt(t), n.OnBattleSwitchToBackground, e)
                    })
                }, t.RestartBattle = function(e) {
                    n.StartBattle(e.Reports[0].MapId)
                }, t.StartBattle = function(e) {
                    var t = this;
                    n.mapId = e, l.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattleFormationPanel.Path, function(e) {
                        t.RequestTrialHero(e[0])
                    }, [e])
                }, t.RequestTrialHero = function(e) {
                    var t = l.UIManager.Instance.GetUIPanel(f.PanelConfig.ActivitySinglePageGiftPanel.Path);
                    if (t) {
                        if (t._data._id > 0) {
                            var n = c.DataCenter.Instance.GetActivityConfigsByActId(t._data._id);
                            if (n && h.default.CheckActivityIsEnd(n.Common, !0)) return;
                            if (1 != t._data.CustomPart.Type || !t._data.__Maps || !t._data.__Maps.length) return
                        }
                        var o, r = e.HeroIds,
                            i = t._data.CustomPart.Param[t._selectToggle],
                            a = C.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, i);
                        a && (o = a.HeroId);
                        for (var s = 0; s < r.length; s++) {
                            var u = r[s];
                            if (u > 0) {
                                var y = c.DataCenter.Instance.GetDataById(p.UserHero_Model, u);
                                r[s] = y.HeroId
                            } else u < 0 && (r[s] = o)
                        }
                        e.HeroIds = r;
                        var g = new p.Req_Activity_SkinTryChallengeBegin;
                        g.ActivityId = t._data._id, g.Formation = e, g.MapConfigId = t._skinMapConfig[t._skinId].Id, c.RpcComponent.Instance.Call(g, function(e) {
                            P.BattleManager.Instance.StartPlay(e.Report, {
                                CanSkipPlay: !0
                            })
                        })
                    }
                }, t.SettleBattle = function(e) {
                    var t = new p.Req_Map_BattleSettlement;
                    t.MapType = e.MapType, c.RpcComponent.Instance.Call(t, function() {
                        if (h.default.CheckIsSelfBattleWin(e.Reports[0], !1)) {
                            var t = "ActivitySinglePageGiftPanel/Components/ActivitySinglePageSettlementComponent";
                            P.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementWinPanel.Path, t, e)
                        } else t = "SettlementPanel/CommonFailSettlementComponent", P.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementFailPanel.Path, t, e)
                    })
                }, t.CancelBattle = function(e) {
                    var t = new p.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, c.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(f.PanelConfig.ActivitySinglePageGiftPanel.Path)
                }, t.prototype.OnClickTypeThreeArrowLeft = function() {
                    this._typeThreeCurrenctPage--, this.TargetMove(1080 * -this._typeThreeCurrenctPage), this._typeThreeCurrenctPage <= 0 && (this.TypeThreeArrowLeft.node.active = !1), this.TypeThreeArrowRight.node.active = !0
                }, t.prototype.OnClickTypeThreeArrowRight = function() {
                    this._typeThreeCurrenctPage++, this.TargetMove(1080 * -this._typeThreeCurrenctPage), this._typeThreeCurrenctPage > 0 && (this.TypeThreeArrowRight.node.active = !1), this.TypeThreeArrowLeft.node.active = !0
                }, t.prototype.TargetMove = function(e) {
                    cc.Tween.stopAllByTarget(this.TypeThreePageContainer), cc.tween(this.TypeThreePageContainer).to(.2, {
                        x: e
                    }).start()
                }, t.TEMP_SKIN_TRIALUSERHEROES_DATA = "TrialSkinUserHeroesData", t.TEMP_SKIN_TRIALHERO_INFO = "TrialSkinHeroInfoModel", t.TEMP_MAPTYPE_SKINID = "MapTypeSkinHeroSid", t.mapId = null, i([B(cc.Node)], t.prototype, "CommonNode", void 0), i([B(L.default)], t.prototype, "CommonActivityCountDownComponent", void 0), i([B(cc.Node)], t.prototype, "GiftContainer", void 0), i([B(cc.Sprite)], t.prototype, "BannerSprite", void 0), i([B(cc.Sprite)], t.prototype, "TitleSprite", void 0), i([B(cc.Node)], t.prototype, "SkinNode", void 0), i([B(cc.Sprite)], t.prototype, "SkinBg", void 0), i([B(cc.Sprite)], t.prototype, "SkinInfoBg", void 0), i([B(cc.Sprite)], t.prototype, "SkinPanelLeftBg", void 0), i([B(cc.Sprite)], t.prototype, "SkinPanelRightBg", void 0), i([B(cc.Node)], t.prototype, "HeroSkinNode", void 0), i([B(cc.Node)], t.prototype, "CitySkinNode", void 0), i([B(cc.Sprite)], t.prototype, "CitySkinBg", void 0), i([B(cc.Sprite)], t.prototype, "CityTitleSprite", void 0), i([B(cc.Node)], t.prototype, "HeroUIContainer", void 0), i([B(cc.Node)], t.prototype, "HeroAvatarContainer", void 0), i([B(cc.Sprite)], t.prototype, "HeroNameImage", void 0), i([B(cc.Sprite)], t.prototype, "SkinNameImage", void 0), i([B(L.default)], t.prototype, "ActivityCountDownComponent", void 0), i([B(cc.Node)], t.prototype, "SkinGiftContainer", void 0), i([B(cc.Button)], t.prototype, "GoButton", void 0), i([B(cc.Label)], t.prototype, "GoLabel", void 0), i([B(cc.Node)], t.prototype, "CommonTaskTipComponentBg", void 0), i([B(v.default)], t.prototype, "CommonTaskTipComponent", void 0), i([B(cc.Button)], t.prototype, "DiscountBagButton", void 0), i([B(cc.Label)], t.prototype, "DiscountBagLabel", void 0), i([B(cc.Label)], t.prototype, "DiscountBagTipLabel", void 0), i([B(cc.Sprite)], t.prototype, "AttrIconArr", void 0), i([B(cc.Label)], t.prototype, "AttrNameLabelArr", void 0), i([B(cc.Label)], t.prototype, "AttrValueLabelArr", void 0), i([B(S.default)], t.prototype, "OpenBubbleComponent", void 0), i([B(cc.Node)], t.prototype, "ToggleContent", void 0), i([B(cc.Sprite)], t.prototype, "TypeThreeSprite", void 0), i([B(cc.Node)], t.prototype, "TypeThreePageContainer", void 0), i([B(cc.Button)], t.prototype, "TypeThreeArrowLeft", void 0), i([B(cc.Button)], t.prototype, "TypeThreeArrowRight", void 0), i([B(cc.Button)], t.prototype, "SkinTryButton", void 0), i([B(cc.Label)], t.prototype, "SkinTryLabel", void 0), i([B(cc.Sprite)], t.prototype, "ElementSprite", void 0), n = i([D], t)
            }(l.BaseUIPanel);
        n.default = N, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/ActivitySinglePageTypeThreeComponent": "ActivitySinglePageTypeThreeComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/OpenBubbleComponent": "OpenBubbleComponent",
        "./CommonCustomGiftPackListItem": "CommonCustomGiftPackListItem",
        "./CommonTaskTipComponent": "CommonTaskTipComponent",
        "./NodePool": "NodePool",
        "./PinkToggle": "PinkToggle"
    }],
    ActivitySinglePageSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d22720lXeJAvKJmGTab1pL+", "ActivitySinglePageSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./SettlementBaseComponent"),
            s = e("../../../EZFramework/UIFrame/UIManager"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BtnSure = null, t.LabelBtnSure = null, t.BattleName = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.SetUI = function(t, n) {
                    e.prototype.SetUI.call(this, t, n), this._isInit || (this._isInit = !0, this.LabelBtnSure.string = "ok".ToUILocale(), this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BattleName.string = "trySkin_settlement".ToUILocale())
                }, t.prototype.OnBtnSureClick = function() {
                    s.UIManager.Instance.BackUIPanel()
                }, i([u(cc.Button)], t.prototype, "BtnSure", void 0), i([u(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([u(cc.Label)], t.prototype, "BattleName", void 0), i([c], t)
            }(a.default);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    ActivitySinglePageTypeThreeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dc295sPjyVLeLmNggK9LgYN", "ActivitySinglePageTypeThreeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./ItemComponent"),
            f = e("../../Channel/ChannelManager"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Banner = null, t.ItemComtainer = null, t.BuyBtn = null, t.BuyBtnLabel = null, t.SoldOut = null, t.VipLeft = null, t.VipValue = null, t.VipNode = null, t._itemComponents = [], t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.SoldOut.string = "soldOut".ToUILocale(), this.BuyBtn.node.on("click", this.OnBuyButtonClick, this), this.VipLeft.string = "diamondShop_vipQuantity".ToUILocale(), l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.BuyBtn.node.off("click", this.OnBuyButtonClick, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnBuyButtonClick = function() {
                    f.default.Instance.Pay(this._gift.Id, this._activityId)
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent == this.ItemComtainer && d.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.Init = function(e, t, n) {
                    this._activityId = e, this._index = t, this._itemPrefab = n, this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId), this._activityConfig = c.DataCenter.Instance.ActivityConfigs[this._activityId], this._packExtend = this.GetExtendData(), this._gift = this.GetGiftPack(), this._gift.VipPoint && this._gift.VipPoint > 0 ? (this.VipNode.active = !0, this.VipValue.string = "x" + this._gift.VipPoint.toString()) : this.VipNode.active = !1, this.SetButtonState(), this.SetReward(), this.LoadBg()
                }, t.prototype.GetExtendData = function() {
                    for (var e, t = this._model.IntArray[this._index], n = 0; n < this._activityConfig.__PackExtend.length; n++)
                        if (t == this._activityConfig.__PackExtend[n].Id) {
                            e = this._activityConfig.__PackExtend[n];
                            break
                        } return e
                }, t.prototype.GetGiftPack = function() {
                    for (var e, t = this._packExtend.Packs, n = 0; n < t.length; n++)
                        for (var o = 0; o < this._activityConfig._Packs.length; o++)
                            if (this._activityConfig._Packs[o].Id == t[n]) {
                                var r = this.GetGiftBuyCount(this._activityConfig._Packs[o].Id),
                                    i = this._activityConfig._Packs[o].LimitCount;
                                if (!this._activityConfig._Packs[o].LimitType || r < i) {
                                    e = this._activityConfig._Packs[o];
                                    break
                                }
                                if (n == t.length - 1) {
                                    e = this._activityConfig._Packs[o];
                                    break
                                }
                            } return e
                }, t.prototype.LoadBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._packExtend && this._packExtend.Bg ? [4, y.default.LoadActivityTexture(this._packExtend.Bg)] : [3, 2];
                                case 1:
                                    return e = t.sent(), [3, 4];
                                case 2:
                                    return [4, y.default.LoadActivityTexture(this._activityConfig.Common.ShowImage)];
                                case 3:
                                    e = t.sent(), t.label = 4;
                                case 4:
                                    return this.isValid ? (this._assets.push(e), this.Banner.spriteFrame = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetButtonState = function() {
                    var e = this.GetGiftBuyCount(this._gift.Id) < this._gift.LimitCount || !this._gift.LimitType;
                    this.BuyBtnLabel.string = y.default.Instance.GetFormatPrice(this._gift.Money), this.BuyBtn.node.active = e, this.SoldOut.node.parent.active = !e
                }, t.prototype.SetReward = function() {
                    for (var e = 0; e < this._gift.Items.length; e++) {
                        var t = this._itemComponents[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.ItemComtainer), t = n.getComponent(h.ItemComponent), this._itemComponents.push(t)
                        }
                        t.node.active = !0, t.Init({
                            ItemId: this._gift.Items[e].Items[0],
                            Count: this._gift.Items[e].Items[1]
                        })
                    }
                    for (; e < this._itemComponents.length; e++) this._itemComponents[e].node.active = !1
                }, t.prototype.GetIsAllBuy = function() {
                    return this._gift = this.GetGiftPack(), !(this.GetGiftBuyCount(this._gift.Id) < this._gift.LimitCount || !this._gift.LimitType)
                }, t.prototype.GetIconPath = function() {
                    return this._packExtend && this._packExtend.Icon ? this._packExtend.Icon : null
                }, t.prototype.GetGiftName = function() {
                    return this._gift ? this._gift.Name : null
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._assets[e])
                }, t.prototype.GetGiftBuyCount = function(e) {
                    return this._model && this._model.Packs && this._model.Packs[e] ? this._model.Packs[e].Items[0] : 0
                }, i([I(cc.Sprite)], t.prototype, "Banner", void 0), i([I(cc.Node)], t.prototype, "ItemComtainer", void 0), i([I(cc.Button)], t.prototype, "BuyBtn", void 0), i([I(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([I(cc.Label)], t.prototype, "SoldOut", void 0), i([I(cc.Label)], t.prototype, "VipLeft", void 0), i([I(cc.Label)], t.prototype, "VipValue", void 0), i([I(cc.Node)], t.prototype, "VipNode", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ActivitySingleRankItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3a69anN9FpPIYfyzLiexRCP", "ActivitySingleRankItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./CustomLayout"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./HeadComponent"),
            p = e("./ActivitySingleRankListItem"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomLayout = null, t.MyRankIcon = null, t.MyRankLabel = null, t.MyName = null, t.MyHeadNode = null, t.MyScoreTag = null, t.MyScoreValue = null, t.MyScoreBgNode = null, t.COPPER_ORDER = 3, t._isinit = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.MyScoreTag.string = "happyTurn_score_desc".ToUILocale()
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._rankData = e, this._headPrefab = n, this._atlas = o, this._isinit || (this._isinit = !0, this.CustomLayout.Init(t));
                    var r = Math.max(this._rankData.Rows.length - this.COPPER_ORDER, 0);
                    this.CustomLayout.RenderLayOut(r), this.SetMyRank()
                }, t.prototype.SetMyRank = function() {
                    var e = this._rankData.MyRank ? this._rankData.MyRank : -1;
                    if (this.MyRankIcon.node.active = !1, this.MyRankLabel.node.active = !1, e < 0 ? (this.MyRankLabel.node.active = !0, this.MyRankLabel.string = "rank_out_max_rank".ToUILocale()) : e < 3 ? (this.MyRankIcon.node.active = !0, this.MyRankIcon.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e)) : (this.MyRankLabel.node.active = !0, this.MyRankLabel.string = e.toString()), this.MyScoreValue.string = this._rankData.MyRankData.Value.toString(), this.MyName.string = this._rankData.MyRankData.PlayerInfo.Name, !this._myHeadComponent) {
                        var t = cc.instantiate(this._headPrefab);
                        t.setParent(this.MyHeadNode), this._myHeadComponent = t.getComponent(u.default)
                    }
                    this._myHeadComponent.SetUI(this._rankData.MyRankData.PlayerInfo.HeadIcon, this._rankData.MyRankData.PlayerInfo.HeadFrame, this._rankData.MyRankData.PlayerInfo.Title), this._myHeadComponent.SetLevel(this._rankData.MyRankData.PlayerInfo.Level)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(p.default).Init(t + n.COPPER_ORDER, n._rankData.Rows[t + n.COPPER_ORDER], n._headPrefab, n._atlas)
                    })
                }, i([f(s.default)], t.prototype, "CustomLayout", void 0), i([f(cc.Sprite)], t.prototype, "MyRankIcon", void 0), i([f(cc.Label)], t.prototype, "MyRankLabel", void 0), i([f(cc.Label)], t.prototype, "MyName", void 0), i([f(cc.Node)], t.prototype, "MyHeadNode", void 0), i([f(cc.Label)], t.prototype, "MyScoreTag", void 0), i([f(cc.Label)], t.prototype, "MyScoreValue", void 0), i([f(cc.Node)], t.prototype, "MyScoreBgNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ActivitySingleRankListItem": "ActivitySingleRankListItem",
        "./CustomLayout": "CustomLayout",
        "./HeadComponent": "HeadComponent"
    }],
    ActivitySingleRankListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "def4cKcS7BJ9KF5fsRX3P6Y", "ActivitySingleRankListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("./HeadComponent"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Tag = null, t.RankIcon = null, t.RankLabel = null, t.HeadNode = null, t.Name = null, t.ScoreTag = null, t.ScoreValue = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ScoreTag.string = "happyTurn_score_desc".ToUILocale()
                }, t.prototype.Init = function(e, t, n, o) {
                    if (this.Name.string = t.PlayerInfo.Name, this.ScoreValue.string = t.Value.toString(), this.RankLabel.node.active = !1, this.RankIcon.node.active = !1, e < 3 ? (this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + (e + 1)), this.Bg.spriteFrame = o.getSpriteFrame("rankBg" + (e + 1)), this.Tag.spriteFrame = o.getSpriteFrame("tag" + (e + 1))) : (this.RankLabel.node.active = !0, this.RankLabel.string = (e + 1).toString(), this.Bg.spriteFrame = o.getSpriteFrame("rankBg5"), this.Tag.spriteFrame = o.getSpriteFrame("tag5")), !this._headComponent) {
                        var r = cc.instantiate(n);
                        r.setParent(this.HeadNode), this._headComponent = r.getComponent(s.default)
                    }
                    this._headComponent.SetUI(t.PlayerInfo.HeadIcon, t.PlayerInfo.HeadFrame, t.PlayerInfo.Title), this._headComponent.SetLevel(t.PlayerInfo.Level)
                }, i([u(cc.Sprite)], t.prototype, "Bg", void 0), i([u(cc.Sprite)], t.prototype, "Tag", void 0), i([u(cc.Sprite)], t.prototype, "RankIcon", void 0), i([u(cc.Label)], t.prototype, "RankLabel", void 0), i([u(cc.Node)], t.prototype, "HeadNode", void 0), i([u(cc.Label)], t.prototype, "Name", void 0), i([u(cc.Label)], t.prototype, "ScoreTag", void 0), i([u(cc.Label)], t.prototype, "ScoreValue", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeadComponent": "HeadComponent"
    }],
    ActivitySingleRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2e548gUeqFD2KfeptsTPux7", "ActivitySingleRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/DataCenter"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/CustomToggle"),
            m = e("../Components/ActivitySingleRankItem"),
            I = e("../Components/ActivitySingleRankRewardItem"),
            _ = e("../Components/CurrencyBarItem"),
            C = e("../Components/ActivitySingleRankPlayerItem"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.Rank = 0] = "Rank", e[e.Reward = 1] = "Reward", e[e.TotalCount = 2] = "TotalCount"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.ToggleContainer = null, t.PlatformNode = null, t.PlayerNodeArray = [], t.RewardPartNode = null, t.RankPartNode = null, t.LeftTimeNode = null, t.LeftTimeRichText = null, t.RuleButton = null, t.ReturnButton = null, t.CurrencyBarItem = null, t.TAB_NAME_Key = ["ActivityHeroTestTower_Rank", "AllZoneChampionShip_Reward"], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("Buttons/Toggle2", cc.Prefab), n = this.LoadDynamicAsset("ActivitySingleRankPanel/ActivitySingleRankPlayerItem", cc.Prefab), o = this.LoadDynamicAsset(y.BundlePath.HeadComponent, cc.Prefab), r = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), i = this.LoadDynamicAsset("RankPanel/Png/RankAtlas", cc.SpriteAtlas), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                    a._togglePrefab = e[0], a._playerPrefab = e[1], a._headPrefab = e[2], a._itemPrefab = e[3], a._atlas = e[4]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t);
                var n = t[0];
                this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._activityConfig.Common.Title, this._startToggleIndex = 0, this._currentIndex = this._startToggleIndex
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    return s(this, function() {
                        return e.prototype.PreloadByData.call(this), [2]
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.SetToggleContainer(), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)), this.SetCurrentToggleContent(), this.CurrencyBarItem.Init(this._activityConfig.CustomPart.ItemId)
            }, t.prototype.SetCurrentToggleContent = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                if (!this._rankData) return this.RefreshRankData(), [2];
                                switch (this.RewardPartNode.active = !1, this.RankPartNode.active = !1, this.PlatformNode.active = !0, this._currentIndex) {
                                    case l.Reward:
                                        return [3, 1];
                                    case l.Rank:
                                        return [3, 4]
                                }
                                return [3, 7];
                            case 1:
                                return this.RewardPartNode.active = !0, this._rewardPartComponent ? [3, 3] : [4, Promise.all([this.LoadDynamicAsset("ActivitySingleRankPanel/ActivitySingleRankRewardItem", cc.Prefab), this.LoadDynamicAsset("ActivitySingleRankPanel/ActivitySingleRankRewardListItem", cc.Prefab)]).then(function(t) {
                                    if (!o.isValid) return c.AssetsManager.Instance.UnloadAsset(t[0]), void c.AssetsManager.Instance.UnloadAsset(t[1]);
                                    e = t[0], o._rewardPrefab = t[1]
                                })];
                            case 2:
                                r.sent(), (n = cc.instantiate(e)).setParent(this.RewardPartNode), this._rewardPartComponent = n.getComponent(I.default), r.label = 3;
                            case 3:
                                return this._rewardPartComponent.Init(this._activityConfig, this._rankData, this._rewardPrefab, this._headPrefab, this._itemPrefab, this._atlas), [3, 7];
                            case 4:
                                return this.RankPartNode.active = !0, this._rankPartComponent ? [3, 6] : [4, Promise.all([this.LoadDynamicAsset("ActivitySingleRankPanel/ActivitySingleRankItem", cc.Prefab), this.LoadDynamicAsset("ActivitySingleRankPanel/ActivitySingleRankListItem", cc.Prefab)]).then(function(e) {
                                    if (!o.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                    t = e[0], o._rankPrefab = e[1]
                                })];
                            case 5:
                                r.sent(), (n = cc.instantiate(t)).setParent(this.RankPartNode), this._rankPartComponent = n.getComponent(m.default), r.label = 6;
                            case 6:
                                return this._rankPartComponent.Init(this._rankData, this._rankPrefab, this._headPrefab, this._atlas), [3, 7];
                            case 7:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetToggleContainer = function() {
                this._toggleNodeArray = [];
                for (var e = this._startToggleIndex; e < l.TotalCount; e++) {
                    var t = cc.instantiate(this._togglePrefab);
                    t.setParent(this.ToggleContainer), t.name = e.toString(), t.getComponent(g.default).Init(this.TAB_NAME_Key[e].ToUILocale()), t.on("toggle", this.OnSwitchToggle, this), e == this._currentIndex && (t.getComponent(g.default).isChecked = !0), this._toggleNodeArray[e] = t
                }
            }, t.prototype.OnSwitchToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentIndex != t && (this._currentIndex = t, this.SetCurrentToggleContent())
            }, t.prototype.RefreshRankData = function() {
                var e = this,
                    t = new u.Req_Activity_GetRank;
                t.ActivityId = this._activityConfig._id, f.RpcComponent.Instance.Call(t, function(t) {
                    e._rankData = t, e.SetCurrentToggleContent(), e.SetAvatar()
                })
            }, t.prototype.SetAvatar = function() {
                for (var e = 0; e < this.PlayerNodeArray.length; e++) {
                    var t = cc.instantiate(this._playerPrefab);
                    t.setParent(this.PlayerNodeArray[e]), t.getComponent(C.default).Init(e, this._rankData.Rows[e], this._atlas)
                }
            }, t.prototype.SetDeadLine = function() {
                var e = d.default.Instance.ComputeDeadTime(this._activityConfig.Common) - f.RpcComponent.Instance.ServerTime;
                if (e < 0) {
                    var t = d.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - f.RpcComponent.Instance.ServerTime;
                    return t < 0 ? void c.UIManager.Instance.BackUIPanel() : void(this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(t)))
                }
                this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(e))
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: this._activityConfig.Common.Title + "HeroTalent_Rule".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["singleRank_ruleDesc".ToUILocale()]
                };
                h.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Node)], t.prototype, "ToggleContainer", void 0), i([S(cc.Node)], t.prototype, "PlatformNode", void 0), i([S([cc.Node])], t.prototype, "PlayerNodeArray", void 0), i([S(cc.Node)], t.prototype, "RewardPartNode", void 0), i([S(cc.Node)], t.prototype, "RankPartNode", void 0), i([S(cc.Node)], t.prototype, "LeftTimeNode", void 0), i([S(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([S(_.default)], t.prototype, "CurrencyBarItem", void 0), i([b], t)
        }(c.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivitySingleRankItem": "ActivitySingleRankItem",
        "../Components/ActivitySingleRankPlayerItem": "ActivitySingleRankPlayerItem",
        "../Components/ActivitySingleRankRewardItem": "ActivitySingleRankRewardItem",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle"
    }],
    ActivitySingleRankPlayerItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0a1b54Nf5RJGISEUJbYHDSE", "ActivitySingleRankPlayerItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../ShareConsts/BattleConsts"),
            y = e("./LoadAssetHelper"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property;
        (function(e) {
            e[e.Pet = 1] = "Pet", e[e.MagicCircleBottom = 2] = "MagicCircleBottom", e[e.MagicCircleTop = 3] = "MagicCircleTop"
        })(l || (l = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.PlayerNode = null, t.Name = null, t.ScoreTag = null, t.ScoreValue = null, t.RankIcon = null, t.MagicCircleBottomNode = null, t.AvatarNode = null, t.MagicCircleTopNode = null, t.PetNode = null, t.Tag = null, t.PlatformIcon = null, t.LoadAssetHelper = null, t.TAGPOSITION = [
                    [9, -140],
                    [25, -146],
                    [-12, -145]
                ], t.AVATARPOSITION = [
                    [0, -92],
                    [15, -140],
                    [-35, -140]
                ], t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.ScoreTag.string = "happyTurn_score_desc".ToUILocale()
            }, t.prototype.Init = function(e, t, n) {
                if (this.RankIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + (e + 1)), this.Tag.spriteFrame = n.getSpriteFrame("title" + (e + 1)), this.PlatformIcon.spriteFrame = n.getSpriteFrame("platform" + (e + 1)), !t) return this.Name.string = "rank_no_people".ToUILocale(), void(this.ScoreValue.node.parent.active = !1);
                this._rankData = t, this.Name.string = t.PlayerInfo.Name, this.ScoreValue.string = t.Value.toString(), this.ScoreValue.node.parent.active = !0, this.SetAvatar()
            }, t.prototype.SetAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e = this._rankData.PlayerInfo.HeadIcon, (t = p.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, e)) || (t = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, e)), n = "Hero_" + t.Model + "/HeroAvatar", o = this, [4, c.AssetsManager.Instance.LoadAsset(n, cc.Prefab)];
                            case 1:
                                return o._heroPrefab = s.sent(), this.isValid ? ((r = cc.instantiate(this._heroPrefab)).setParent(this.AvatarNode), r.getComponent(sp.Skeleton).setAnimation(0, f.SkillAnimationType.Standby, !0), this.MagicCircleTopNode && this.MagicCircleBottomNode && (i = this._rankData.PlayerInfo.MagicCircle, this.SetMagicCircleByItemId(i)), this.PetNode && (a = this._rankData.PlayerInfo.Pet, this.SetPetByItemId(a)), [2]) : (c.AssetsManager.Instance.UnloadAsset(this._heroPrefab), [2])
                        }
                    })
                })
            }, t.prototype.SetMagicCircleByItemId = function(e) {
                if (e) {
                    var t = p.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, e);
                    if (t) {
                        var n, o, r = t.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(r, this.MagicCircleBottomNode, function(e) {
                            n = e, o && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleBottom), this.LoadAssetHelper.LoadPrefab(r, this.MagicCircleTopNode, function(e) {
                            (o = e) && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleTop)
                    }
                }
            }, t.prototype.SetPetByItemId = function(e) {
                if (e) {
                    var t = p.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, e);
                    if (t) {
                        var n = t.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(n, this.PetNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, d.SkillAnimationType.Standby, !0)
                        }, l.Pet)
                    }
                }
            }, t.prototype.onDestroy = function() {
                this._heroPrefab && c.AssetsManager.Instance.UnloadAsset(this._heroPrefab)
            }, i([I(cc.Node)], t.prototype, "PlayerNode", void 0), i([I(cc.Label)], t.prototype, "Name", void 0), i([I(cc.Label)], t.prototype, "ScoreTag", void 0), i([I(cc.Label)], t.prototype, "ScoreValue", void 0), i([I(cc.Sprite)], t.prototype, "RankIcon", void 0), i([I(cc.Node)], t.prototype, "MagicCircleBottomNode", void 0), i([I(cc.Node)], t.prototype, "AvatarNode", void 0), i([I(cc.Node)], t.prototype, "MagicCircleTopNode", void 0), i([I(cc.Node)], t.prototype, "PetNode", void 0), i([I(cc.Sprite)], t.prototype, "Tag", void 0), i([I(cc.Sprite)], t.prototype, "PlatformIcon", void 0), i([I(y.default)], t.prototype, "LoadAssetHelper", void 0), i([m], t)
        }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    ActivitySingleRankRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f0399CrhHdI/JexqaxawpnQ", "ActivitySingleRankRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./CustomLayout"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./HeadComponent"),
            p = e("./ActivitySingleRankRewardListItem"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomLayout = null, t.MyRankLabel = null, t.MyRankIcon = null, t.MyName = null, t.MyHeadNode = null, t.MyScoreTag = null, t.MyScoreValue = null, t.MyScoreBgNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    this._activityConfig = e, this._rankData = t, this._headPrefab = o, this._itemPrefab = r, this._atlas = i, this._isInit || (this._isInit = !0, this.CustomLayout.Init(n), this.CustomLayout.RenderLayOut(this._activityConfig._RankRewards.length), this.SetMyRank())
                }, t.prototype.SetMyRank = function() {
                    var e = this._rankData.MyRank ? this._rankData.MyRank : -1;
                    if (this.MyRankIcon.node.active = !1, this.MyRankLabel.node.active = !1, e < 0) return this.MyScoreBgNode.active = !1, this.MyScoreTag.node.active = !1, this.MyHeadNode.active = !1, this.MyRankLabel.node.active = !0, void(this.MyRankLabel.string = "rank_out_max_rank".ToUILocale());
                    if (e < 3 ? (this.MyRankIcon.node.active = !0, this.MyRankIcon.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e)) : (this.MyRankLabel.node.active = !0, this.MyRankLabel.string = e.toString()), this.MyScoreValue.string = this._rankData.MyRankData.Value.toString(), this.MyName.string = this._rankData.MyRankData.PlayerInfo.Name, !this._myHeadComponent) {
                        var t = cc.instantiate(this._headPrefab);
                        t.setParent(this.MyHeadNode), this._myHeadComponent = t.getComponent(u.default)
                    }
                    this._myHeadComponent.SetUI(this._rankData.MyRankData.PlayerInfo.HeadIcon, this._rankData.MyRankData.PlayerInfo.HeadFrame, this._rankData.MyRankData.PlayerInfo.Title), this._myHeadComponent.SetLevel(this._rankData.MyRankData.PlayerInfo.Level)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._activityConfig._RankRewards[t];
                        e.getComponent(p.default).Init(o, n._itemPrefab, n._atlas)
                    })
                }, i([f(s.default)], t.prototype, "CustomLayout", void 0), i([f(cc.Label)], t.prototype, "MyRankLabel", void 0), i([f(cc.Sprite)], t.prototype, "MyRankIcon", void 0), i([f(cc.Label)], t.prototype, "MyName", void 0), i([f(cc.Node)], t.prototype, "MyHeadNode", void 0), i([f(cc.Label)], t.prototype, "MyScoreTag", void 0), i([f(cc.Label)], t.prototype, "MyScoreValue", void 0), i([f(cc.Node)], t.prototype, "MyScoreBgNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ActivitySingleRankRewardListItem": "ActivitySingleRankRewardListItem",
        "./CustomLayout": "CustomLayout",
        "./HeadComponent": "HeadComponent"
    }],
    ActivitySingleRankRewardListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7c06aeOX09HR73HnKH3wH/O", "ActivitySingleRankRewardListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("./ItemComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Tag = null, t.RankIcon = null, t.RankLabel = null, t.ItemContainer = null, t.itemComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this.RankLabel.node.active = !1, this.RankIcon.node.active = !1, e.Id <= 3 ? (this.Bg.spriteFrame = n.getSpriteFrame("rankBg" + e.Id), this.Tag.spriteFrame = n.getSpriteFrame("tag" + e.Id)) : (this.Bg.spriteFrame = n.getSpriteFrame("rankBg5"), this.Tag.spriteFrame = n.getSpriteFrame("tag5")), e.Rank[0] == e.Rank[1] ? e.Rank[0] <= 3 ? (this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = l.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e.Rank[0])) : (this.RankLabel.node.active = !0, this.RankLabel.string = "" + e.Rank[0]) : e.Rank[1] ? (this.RankLabel.node.active = !0, this.RankLabel.string = e.Rank[0] + "-" + e.Rank[1]) : (this.RankLabel.node.active = !0, this.RankLabel.string = e.Rank[0] + "+"), this.SetItemContainer(e, t)
                }, t.prototype.SetItemContainer = function(e, t) {
                    for (var n = 0; n < e.Rewards.length; n++) {
                        var o = this.itemComponentArray[n];
                        if (!o) {
                            var r = cc.instantiate(t);
                            r.setParent(this.ItemContainer), o = r.getComponent(c.ItemComponent), this.itemComponentArray[n] = o
                        }
                        o.node.active = !0, o.Init({
                            ItemId: e.Rewards[n].Items[0],
                            Count: e.Rewards[n].Items[1]
                        })
                    }
                    if (e.Rewards.length < this.itemComponentArray.length)
                        for (n = e.Rewards.length; n < this.itemComponentArray.length; n++) this.itemComponentArray[n].node.active = !1
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent == this.ItemContainer && l.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t)
                }, i([d(cc.Sprite)], t.prototype, "Bg", void 0), i([d(cc.Sprite)], t.prototype, "Tag", void 0), i([d(cc.Sprite)], t.prototype, "RankIcon", void 0), i([d(cc.Label)], t.prototype, "RankLabel", void 0), i([d(cc.Node)], t.prototype, "ItemContainer", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ActivityStoryTaskPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ce4837zuXRPObMNIX5M6oXp", "ActivityStoryTaskPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Components/StoryChapterComponent"),
            m = e("../Components/BlackBgAttrComponent"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Components/StarAttrComponent"),
            C = e("../Components/ItemComponent"),
            v = e("../Components/StoryChapterTaskComponent"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("../../../Consts/Etc"),
            P = e("../../../ShareConsts/EnumType"),
            A = e("../../../Consts/Consts"),
            T = e("../Battle/BattleManager"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property;
        (function(e) {
            e[e.Story = 0] = "Story", e[e.Chapter = 1] = "Chapter"
        })(l || (l = {}));
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.DetailButton = null, t.ShopButton = null, t.ShopLabel = null, t.CrownGiftButton = null, t.CrownGiftLabel = null, t.ReturnButton = null, t.DetailBg = null, t.DetailLabel = null, t.DetailStarAttrNode = null, t.DetailStarAttrTitle = null, t.DetailStarAttrContainer = null, t.ResetNode = null, t.StarContainer = null, t.StarRewardTitle = null, t.UnStarRewardLabel = null, t.StarRewardContainer = null, t.LeftTimeRichText = null, t.StoryItemConent = null, t.StoryTitleIcon = null, t.DetailStoryPart = null, t.DetailChapterPater = null, t.ChapterDetailLabel = null, t.ChapterRewardContainer = null, t.ChapterProgressRichText = null, t.ChapterGetRewardTip = null, t.ChapterTitleIcon = null, t.ChapterTitleLabel = null, t.StoryContainer = null, t.ChapterContainer = null, t.ChapterTaskContainer = null, t.ChapterTaskScrollView = null, t.ChapterTaskTitle = null, t.LimitGiftNode = null, t.LimitGiftTitle = null, t.LimitGiftContainer = null, t.UnTouchNode = null, t.ChangePanelSpine = null, t.WarTokenButton = null, t.WarTokenLabel = null, t.TriggerGiftButton = null, t.TriggerGiftButtonLabel = null, t.CHANGE_PANEL_SPINE_NAME = ["Ani_UI_effect_heipingzhuanchang", "Ani_UI_effect_heipingzhuanchang2"], t._storyChapterComponentArray = [], t._storyStarIconArray = [], t._isSetDetailAttr = !1, t._chapterRewardComponentArray = [], t._chapterTaskComponentArray = [], t._isSetTaskArray = !1, t._currentPart = l.Story, t._totalAttrComponent = {}, t._loadAssets = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                b.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), b.Game.EventDispatcher.On(S.EventKeys.EVENT_STORY_PLAY_OVER, this.PlayLastChangePanelSpine, this)
            }, t.prototype.onDisable = function() {
                b.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), b.Game.EventDispatcher.Off(S.EventKeys.EVENT_STORY_PLAY_OVER, this.PlayLastChangePanelSpine, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityStoryTaskPanel/Components/StoryChapterComponent", cc.Prefab), n = this.LoadDynamicAsset("LabelsComponent/BlackBgAttrComponent", cc.Prefab), o = this.LoadDynamicAsset(I.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._storyChapterPrefab = e[0], r._totalAttrPrefab = e[1], r._itemPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "Activity_Story_Title".ToUILocale(), this.ShopLabel.string = "exchange_shop".ToUILocale(), this.CrownGiftLabel.string = "CollectionPavilion_Btn_CrownGift".ToUILocale(), this.StarRewardTitle.string = "Activity_Story_StarReward_Title".ToUILocale(), this.ChapterGetRewardTip.string = "Activity_Story_Chapter_GetReward_Tip".ToUILocale(), this.LimitGiftTitle.string = "triggerGift_title".ToUILocale(), this.UnStarRewardLabel.string = "Activity_Story_StarReward_Unlock".ToUILocale(), this.WarTokenLabel.string = "story_wartoken".ToUILocale(), this.TriggerGiftButtonLabel.string = "limitTIme_summon_gift".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this), this.CrownGiftButton.node.on("click", this.OnCrownGiftButtonClick, this), this.ResetNode.on(cc.Node.EventType.TOUCH_END, this.HideAddationNode, this), this.WarTokenButton.node.on("click", this.OnWarTokenButtonClick, this), this.TriggerGiftButton.node.on("click", this.OnTriggerGiftButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this);
                var n = t[0];
                n ? (this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n], this._colletConfig = f.ConfigDataComponent.Instance.GetConfigById(y.CollectionStory_Config, this._activityConfig.CustomPart.CollectId), this.SetTaskGroup(), this.SetChapterGroup(), this.SetActivityLocaleGroup(), this.SetStoryTriggerGiftIds()) : c.UIManager.Instance.BackUIPanel()
            }, t.prototype.DisPlay = function(t) {
                var n = this;
                e.prototype.DisPlay.call(this, t), this._playerModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), this.SetCurrentChapter(), t || (this.ShopButton.node.active = this._activityConfig._Shops.length > 0, this.WarTokenButton.node.active = this._activityConfig.Common.JumpId > 0, this._playerModel.Int2DArray[0].Items[0] || (this.UnTouchNode.active = !0, this.ChangePanelSpine.setAnimation(0, this.CHANGE_PANEL_SPINE_NAME[0], !1), this.ChangePanelSpine.setCompleteListener(function() {
                    c.UIManager.Instance.ShowUIPanel(I.PanelConfig.StoryPlayPanel.Path, n._activityConfig._id, n._activityConfig.CustomPart.StartStoryId, [1, 0]), n.UnTouchNode.active = !1
                })), this.DetailLabel.string = this._activityConfig.CustomPart.CollectId.ToCollectStoryDesc(), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)), this._currentPart == l.Story ? this.SetStoryPart() : this.SetChapterPart(), this.CheckTriggerGiftButton()
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "Activity_Story_Rule_Name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["Activity_Story_Rule_Content".ToUILocale()]
                };
                d.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnDetailButtonClick = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._isSetDetailAttr ? [3, 3] : (this._isSetDetailAttr = !0, this.DetailStarAttrTitle.string = "Activity_Story_StarReward_Detail".ToUILocale(), this._detailStarAttrPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("ActivityStoryTaskPanel/Components/StarAttrComponent", cc.Prefab)]));
                            case 1:
                                if (e._detailStarAttrPrefab = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._detailStarAttrPrefab), [2];
                                o.label = 2;
                            case 2:
                                for (t = 0; t < this._colletConfig.Attrs.length; t++)(n = cc.instantiate(this._detailStarAttrPrefab)).setParent(this.DetailStarAttrContainer), n.getComponent(_.default).InitData(this._colletConfig.Attrs[t].Items);
                                o.label = 3;
                            case 3:
                                return this.DetailStarAttrNode.active = !0, this.ResetNode.active = !0, [2]
                        }
                    })
                })
            }, t.prototype.OnReturnButtonClick = function() {
                this._currentPart == l.Story ? c.UIManager.Instance.BackUIPanel() : this.SetStoryPart()
            }, t.prototype.OnShopButtonClick = function() {
                this._imagePath || (this._imagePath = this._activityConfig.Common.Pictures), c.UIManager.Instance.ShowUIPanel(I.PanelConfig.ActivityExchangeShopPanel.Path, this._activityConfig._id, 1, this._imagePath[0])
            }, t.prototype.OnCrownGiftButtonClick = function() {
                this._imagePath || (this._imagePath = this._activityConfig.Common.Pictures);
                var e = {
                    ActivityId: this._activityConfig._id,
                    ActivityGiftPackData: this._activityConfig._Packs,
                    Deadline: h.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                    BannerPath: this._imagePath[1],
                    Title: "CollectionPavilion_Btn_CrownGift".ToUILocale()
                };
                c.UIManager.Instance.ShowUIPanel(I.PanelConfig.CommonGiftPackPanel.Path, e)
            }, t.prototype.HideAddationNode = function() {
                this.DetailStarAttrNode.active = !1, this.ResetNode.active = !1
            }, t.prototype.OnWarTokenButtonClick = function() {
                var e = f.ConfigDataComponent.Instance.GetConfigById(y.ItemGetWay_Config, this._activityConfig.Common.JumpId);
                if (e && e.PanelInfo[1]) {
                    var t = h.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(A.ActivityType.WarToken, e.PanelInfo[1]);
                    t > 0 && c.UIManager.Instance.ShowUIPanel(I.PanelConfig.WarTokenListPanel.Path, !0, t)
                }
            }, t.prototype.OnTriggerGiftButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(I.PanelConfig.TriggerGiftMainPanel.Path)
            }, t.prototype.SetTaskGroup = function() {
                this._taskGroupIds = {};
                for (var e = 0; e < this._activityConfig.__TaskGroup.length; e++) {
                    var t = this._activityConfig.__TaskGroup[e];
                    this._taskGroupIds[t.Id] = t
                }
            }, t.prototype.SetChapterGroup = function() {
                this._chapterGroup = {};
                for (var e = 0; e < this._activityConfig.__Chapter.length; e++) {
                    var t = this._activityConfig.__Chapter[e];
                    this._chapterGroup[t.Id] = t
                }
            }, t.prototype.SetActivityLocaleGroup = function() {
                this._activityLocaleGroup = {};
                for (var e = 0; e < this._activityConfig._Locale.length; e++) {
                    var t = this._activityConfig._Locale[e];
                    this._activityLocaleGroup[t.Id] = t
                }
            }, t.prototype.SetStoryTriggerGiftIds = function() {
                this._storyTriggerGiftIdMap = {};
                for (var e = 0; e < this._activityConfig.__Chapter.length; e++)
                    for (var t = this._activityConfig.__Chapter[e], n = 0; n < t.TriggerGiftId.length; n++) {
                        var o = t.TriggerGiftId[n];
                        this._storyTriggerGiftIdMap[o] = !0
                    }
            }, t.prototype.SetCurrentChapter = function() {
                for (var e, t = 0; t < this._activityConfig.__Chapter.length; t++) {
                    var n = this._activityConfig.__Chapter[t];
                    if (!this._playerModel.IntMap[n.Id]) {
                        e = n;
                        break
                    }
                }
                this._currentChapter = e
            }, t.prototype.SetDeadLine = function() {
                var e = h.default.Instance.ComputeDeadTime(this._activityConfig.Common) - p.RpcComponent.Instance.ServerTime;
                e < 0 ? c.UIManager.Instance.BackUIPanel() : this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
            }, t.prototype.SetStoryPart = function() {
                this._currentPart = l.Story, this.SetStoryDetailBg(), this.SetPanelPartState(), this.SetStar(), this.SetStoryChapterEntry()
            }, t.prototype.SetStar = function() {
                for (var e = p.DataCenter.Instance.GetDataById(u.UserStar_Model, this._colletConfig.StarIds[2]), t = e ? e.Count : 0, n = 0; n < this._activityConfig.CustomPart.ItemCountMax; n++) {
                    if (!this._storyStarIconArray[n]) {
                        var o = new cc.Node;
                        o.setParent(this.StarContainer), this._storyStarIconArray[n] = o.addComponent(cc.Sprite)
                    }
                    this._storyStarIconArray[n].spriteFrame = n < t ? d.UIUtlity.COMMON_ATLAS2.getSpriteFrame("Star") : d.UIUtlity.COMMON_ATLAS2.getSpriteFrame("StarBg")
                }
                this.SetTotalAttr(t)
            }, t.prototype.SetTotalAttr = function(e) {
                if (this.UnStarRewardLabel.node.active = 0 == e, 0 != e)
                    for (var t = {}, n = 0; n < e; n++)
                        for (var o = this._colletConfig.Attrs[n], r = 1; r < o.Items.length; r += 2) {
                            var i = o.Items[r];
                            if (!this._totalAttrComponent[i]) {
                                var a = cc.instantiate(this._totalAttrPrefab);
                                a.setParent(this.StarRewardContainer), this._totalAttrComponent[i] = a.getComponent(m.default)
                            }
                            t[i] = t[i] ? t[i] + o.Items[r + 1] : o.Items[r + 1];
                            var s = h.default.GetHeroAttribute(i, t[i]);
                            this._totalAttrComponent[i].Init(s.Icon, s.Name, s.Value)
                        }
            }, t.prototype.SetStoryChapterEntry = function() {
                for (var e = 0; e < this._activityConfig.__Chapter.length; e++) {
                    if (!this._storyChapterComponentArray[e]) {
                        var t = cc.instantiate(this._storyChapterPrefab);
                        t.setParent(this.StoryItemConent), this._storyChapterComponentArray[e] = t.getComponent(g.default)
                    }
                    var n = this._currentChapter ? this._currentChapter.Id : null;
                    this._storyChapterComponentArray[e].InitData(this._activityConfig.__Chapter[e], n, this._itemPrefab, this._activityConfig, this._taskGroupIds, this)
                }
            }, t.prototype.SetChapterPart = function() {
                var e = this;
                if (this._currentPart = l.Chapter, this.SetChapterDetailBg(), this._currentChapter.ChildId && (!this._playerModel.IntArray[1] || this._playerModel.IntArray[1] < this._currentChapter.ChildId) && (this.UnTouchNode.active = !0, this.ChangePanelSpine.setAnimation(0, this.CHANGE_PANEL_SPINE_NAME[0], !1), this.ChangePanelSpine.setCompleteListener(function() {
                        c.UIManager.Instance.ShowUIPanelByQueue(I.PanelConfig.StoryPlayPanel.Path, e._activityConfig._id, e._currentChapter.ChildId, [1, e._currentChapter.Id]), e.UnTouchNode.active = !1
                    })), this.SetPanelPartState(), this._currentTaskGroupIndex && this._taskGroupIds[this._currentTaskGroupIndex].FinishChildId && this._playerModel.IntArray[1] < this._taskGroupIds[this._currentTaskGroupIndex].FinishChildId) {
                    for (var t = this._taskGroupIds[this._currentTaskGroupIndex].TaskIds, n = 0, o = 0; o < t.length; o++) {
                        var r = this.GetTaskModel(t[o]);
                        r && r.IsCompleted && n++
                    }
                    if (n == t.length) {
                        var i = this._currentTaskGroupIndex;
                        d.UIUtlity.ShowForceConfirmPanel(null, "Activity_Story_Tip".ToUILocale(), "button_confirm".ToUILocale(), function() {
                            e.SetTaskGroupOverStory(i)
                        })
                    }
                }
                this.SetProgress();
                var a = this._taskGroupIds[this._currentChapter.TaskGroupIds[1]].FinishChildId;
                if (a = a || 0, this._progressCurrentIndex == this._progressTotalCount && !this._playerModel.IntMap[this._currentChapter.Id] && a <= this._playerModel.IntArray[1]) this.GetChapterReward();
                else {
                    if (this.SetChapterTask(), this.ChapterProgressRichText.string = "Activity_Story_Progress".ToUILocale().Fmt(this._progressCurrentIndex, this._progressTotalCount), this._currentChapter != this._lastChapter) {
                        this._lastChapter = this._currentChapter, this.SetChapterReward(), this.SetChapterTitle();
                        var s = 1e5 * this._activityConfig.CustomPart.CollectId + this._currentChapter.Id;
                        this.ChapterTitleLabel.string = s.ToStoryChapterTitle(), this.ChapterDetailLabel.string = s.ToStoryChapterContent()
                    }
                    if (this._currentTaskGroupIndex != this._lastTaskGroupIndex) {
                        this._lastTaskGroupIndex = this._currentTaskGroupIndex;
                        var u = this._taskGroupIds[this._currentTaskGroupIndex];
                        u.PreChildId && (!this._playerModel.IntArray[1] || this._playerModel.IntArray[1] < u.PreChildId) && (this.UnTouchNode.active = !0, this.ChangePanelSpine.setAnimation(0, this.CHANGE_PANEL_SPINE_NAME[0], !1), this.ChangePanelSpine.setCompleteListener(function() {
                            c.UIManager.Instance.ShowUIPanelByQueue(I.PanelConfig.StoryPlayPanel.Path, e._activityConfig._id, u.PreChildId, [1, e._currentChapter.Id]), e.UnTouchNode.active = !1
                        })), this.ChapterTaskTitle.string = this._activityLocaleGroup[u.Id].Content
                    }
                }
            }, t.prototype.SetStoryDetailBg = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._storyDetailBgSpriteFrame ? [3, 4] : this._activityConfig.Common.Pictures.length > 1 ? [4, Promise.all([h.default.LoadActivityTexture(this._activityConfig.Common.Pictures[0]), h.default.LoadActivityTexture(this._activityConfig.Common.Pictures[1])]).then(function(e) {
                                    if (!n.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                    n._storyDetailBgSpriteFrame = e[0], n.StoryTitleIcon.spriteFrame = e[1], n._loadAssets.push(e[0]), n._loadAssets.push(e[1])
                                })] : [3, 2];
                            case 1:
                                return o.sent(), [3, 4];
                            case 2:
                                return e = this._activityConfig.Common.Pictures[0] ? this._activityConfig.Common.Pictures[0] : this._activityConfig.Common.Pictures[1], t = this, [4, h.default.LoadActivityTexture(e)];
                            case 3:
                                if (t._storyDetailBgSpriteFrame = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._storyDetailBgSpriteFrame), [2];
                                this._loadAssets.push(this._storyDetailBgSpriteFrame), o.label = 4;
                            case 4:
                                return this.DetailBg.spriteFrame = this._storyDetailBgSpriteFrame, [2]
                        }
                    })
                })
            }, t.prototype.SetChapterDetailBg = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e = this._currentChapter.HeroRes.split("|"), [4, h.default.LoadActivityTexture(e[1])];
                            case 1:
                                return t = n.sent(), this.isValid ? (this._loadAssets.push(t), this.DetailBg.spriteFrame = t, [2]) : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.SetPanelPartState = function() {
                var e = this._currentPart == l.Story;
                this.RuleButton.node.active = e, this.DetailStoryPart.active = e, this.StoryContainer.active = e, this.DetailChapterPater.active = !e, this.ChapterContainer.active = !e
            }, t.prototype.SetProgress = function() {
                var e = this._currentChapter.TaskGroupIds;
                this._progressCurrentIndex = 0;
                for (var t = e[0]; t <= e[1]; t++) {
                    for (var n = this._taskGroupIds[t].TaskIds, o = 0, r = 0; r < n.length; r++) {
                        var i = this.GetTaskModel(n[r]);
                        i && i.IsCompleted && o++
                    }
                    if (!(o == n.length && this._playerModel.IntArray[1] >= this._taskGroupIds[t].FinishChildId)) {
                        this._currentTaskGroupIndex = t;
                        break
                    }
                    this._progressCurrentIndex++
                }
                return this._progressTotalCount = e[1] - e[0] + 1, this._progressCurrentIndex == this._progressTotalCount && (this._currentTaskGroupIndex = e[1]), [this._progressCurrentIndex, this._progressTotalCount, this._currentTaskGroupIndex]
            }, t.prototype.SetTaskGroupOverStory = function(e) {
                var t = this,
                    n = this._taskGroupIds[e];
                n.FinishChildId && (!this._playerModel.IntArray[1] || n.PreChildId <= this._playerModel.IntArray[1] && this._playerModel.IntArray[1] < n.FinishChildId) && (this.UnTouchNode.active = !0, this.ChangePanelSpine.setAnimation(0, this.CHANGE_PANEL_SPINE_NAME[0], !1), this.ChangePanelSpine.setCompleteListener(function() {
                    c.UIManager.Instance.ShowUIPanelByQueue(I.PanelConfig.StoryPlayPanel.Path, t._activityConfig._id, n.FinishChildId, [1, t._currentChapter.Id]), t.UnTouchNode.active = !1
                }))
            }, t.prototype.GetTaskModel = function(e) {
                return p.DataCenter.Instance.GetDataById(u.UserTask_Model, this._activityConfig._id * w.Etc.Multiplier + e)
            }, t.prototype.SetChapterReward = function() {
                for (var e = this._currentChapter.Rewards, t = 0; t < e.length; t++) {
                    var n = this._chapterRewardComponentArray[t];
                    if (!n) {
                        var o = cc.instantiate(this._itemPrefab);
                        o.setParent(this.ChapterRewardContainer), n = o.getComponent(C.ItemComponent), this._chapterRewardComponentArray[t] = n
                    }
                    n.node.active = !0;
                    var r = e[t].Items;
                    n.node.name = r[0].toString(), n.Init({
                        ItemId: r[0],
                        Count: r[1]
                    }, C.ItemComponentType.ItemCommon)
                }
                if (e.length < this._chapterRewardComponentArray.length)
                    for (t = e.length; t < this._chapterRewardComponentArray.length; t++) this._chapterRewardComponentArray[t].node.active = !1
            }, t.prototype.SetChapterTitle = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, h.default.LoadActivityTexture(this._currentChapter.TitleRes)];
                            case 1:
                                return e = t.sent(), this.isValid ? (this._loadAssets.push(e), this.ChapterTitleIcon.spriteFrame = e, [2]) : (c.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.SetChapterTask = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, u, d;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._chapterTaskPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("ActivityStoryTaskPanel/Components/StoryChapterTaskComponent", cc.Prefab)]);
                            case 1:
                                if (e._chapterTaskPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._chapterTaskPrefab), [2];
                                s.label = 2;
                            case 2:
                                if (!this._taskArray)
                                    for (this._taskArray = {}, i = 0; i < this._activityConfig._Tasks.length; i++) t = this._activityConfig._Tasks[i], this._taskArray[t.Id] = t;
                                for (n = this._taskGroupIds[this._currentTaskGroupIndex], i = 0; i < n.TaskIds.length; i++)(o = this._chapterTaskComponentArray[i]) || ((r = cc.instantiate(this._chapterTaskPrefab)).setParent(this.ChapterTaskContainer), o = r.getComponent(v.default), this._chapterTaskComponentArray[i] = o), o.node.active = !0, o.InitData(!0, this._itemPrefab, this._taskArray[n.TaskIds[i]], this._activityConfig);
                                if (n.TaskIds.length < this._chapterTaskComponentArray.length)
                                    for (i = n.TaskIds.length; i < this._chapterTaskComponentArray.length; i++) this._chapterTaskComponentArray[i].node.active = !1;
                                return this.LimitGiftNode.active = !1, n.TriggerGiftId && (a = this.GetTriggerGiftModel(n.TriggerGiftId)) && a.IsStart && !a.IsEnd && (l = f.ConfigDataComponent.Instance.GetConfigById(y.TriggerGift_Config, n.TriggerGiftId), u = f.ConfigDataComponent.Instance.GetConfigById(y.GiftPack_Config, l.GiftId), (d = l.Duration * w.Etc.MinuteDuration + a.Time) > p.RpcComponent.Instance.ServerTime && (this.LimitGiftNode.active = !0, this.SetLimitGift(u, d))), [2]
                        }
                    })
                })
            }, t.prototype.GetTriggerGiftModel = function(e) {
                if (f.DataCenter.Instance.TriggerGifts[e]) return f.DataCenter.Instance.TriggerGifts[e]
            }, t.prototype.SetLimitGift = function(e, t) {
                if (!this._limitGiftComponent) {
                    var n = cc.instantiate(this._chapterTaskPrefab);
                    n.setParent(this.LimitGiftContainer), this._limitGiftComponent = n.getComponent(v.default)
                }
                this._limitGiftComponent.InitData(!1, this._itemPrefab, void 0, void 0, e, t)
            }, t.prototype.GetChapterReward = function() {
                this._oldBattlePower = f.DataCenter.Instance.GetIntData(P.UserDataKey.Power);
                var e = new u.Req_Activity_CommonRewards;
                e.ActivityId = this._activityConfig._id, e.Params = [this._currentChapter.Id], p.RpcComponent.Instance.Call(e, this.OnGetChapterRewardSuccess.bind(this))
            }, t.prototype.OnGetChapterRewardSuccess = function(e) {
                for (var t, n = this, o = 0; o < this._activityConfig.__Chapter.length; o++)
                    if (this._currentChapter.Id == this._activityConfig.__Chapter[o].Id) {
                        t = o;
                        break
                    } this.SetStoryPart(), this.scheduleOnce(function() {
                    n._storyChapterComponentArray[t].SetCompleteSpine()
                }, .6), this.scheduleOnce(function() {
                    c.UIManager.Instance.ShowUIPanelByQueue(I.PanelConfig.DisplayRewardsPanel.Path, e.Rewards);
                    var t = f.DataCenter.Instance.GetIntData(P.UserDataKey.Power);
                    n._oldBattlePower != t && c.UIManager.Instance.ShowUIPanelByQueue(I.PanelConfig.BattlePowerChangePanel.Path, n._oldBattlePower, t)
                }, 1.2)
            }, t.prototype.CheckTriggerGiftButton = function() {
                for (var e in this.TriggerGiftButton.node.active = !1, f.DataCenter.Instance.TriggerGifts) {
                    var t = f.DataCenter.Instance.TriggerGifts[e];
                    if (this._storyTriggerGiftIdMap[t.Sid]) {
                        var n = f.ConfigDataComponent.Instance.GetConfigById(y.TriggerGift_Config, t.Sid);
                        if (t.Time + n.Duration * w.Etc.MinuteDuration > p.RpcComponent.Instance.ServerTime) {
                            this.TriggerGiftButton.node.active = !0;
                            break
                        }
                    }
                }
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.ChapterRewardContainer.children.indexOf(t) && d.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.PlayLastChangePanelSpine = function() {
                var e = this;
                this.UnTouchNode.active = !0, this.ChangePanelSpine.setAnimation(0, this.CHANGE_PANEL_SPINE_NAME[1], !1), this.ChangePanelSpine.setCompleteListener(function() {
                    e.UnTouchNode.active = !1
                })
            }, t.InitBattle = function() {
                var e = A.MapType.Story;
                c.Game.EventDispatcher.Only(A.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), c.Game.EventDispatcher.Only(A.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), c.Game.EventDispatcher.Only(A.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), c.Game.EventDispatcher.Only(A.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), c.Game.EventDispatcher.Only(A.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
            }, t.RestartBattle = function() {
                n.StartBattle(n.CurrentBattleMapId, n.CurrentActivityConfig)
            }, t.StartBattle = function(e, t) {
                n.CurrentBattleMapId = e, n.CurrentActivityConfig = t, c.UIManager.Instance.ShowUIPanel(I.PanelConfig.BattleFormationPanel.Path, function(e) {
                    n.RequestChallenge(e)
                }, [e], n.CurrentActivityConfig._id)
            }, t.RequestChallenge = function(e) {
                var t = new u.Req_Activity_StoryChallenge;
                t.ActivityId = n.CurrentActivityConfig._id, t.Formations = e, t.MapId = n.CurrentBattleMapId, p.RpcComponent.Instance.Call(t, function(e) {
                    T.BattleManager.Instance.StartPlay(e.Reports)
                }.bind(this))
            }, t.SettleBattle = function(e) {
                var t = new u.Req_Map_BattleSettlement;
                t.MapType = e.MapType, p.RpcComponent.Instance.Call(t, function(t) {
                    var n;
                    1 == t.Result ? (n = "TrialHeroPanel/Components/TrialHeroSettlementComponent", T.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementWinPanel.Path, n, e, t.Rewards), c.Game.EventDispatcher.Emit(S.EventKeys.EVENT_REFRESH_HERODUNGEON)) : (n = "SettlementPanel/CommonFailSettlementComponent", T.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementFailPanel.Path, n, e))
                })
            }, t.CancelBattle = function(e) {
                var t = new u.Req_Map_CancelChallenge;
                t.MapType = e.MapType, p.RpcComponent.Instance.Call(t, null)
            }, t.OnBattleSwitchToBackground = function() {
                c.UIManager.Instance.QuitPanelStack(I.PanelConfig.ActivityStoryTaskPanel.Path)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks(), this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, t.CurrentBattleMapId = 0, t.CurrentActivityConfig = null, i([k(cc.Label)], t.prototype, "Title", void 0), i([k(cc.Button)], t.prototype, "RuleButton", void 0), i([k(cc.Button)], t.prototype, "DetailButton", void 0), i([k(cc.Button)], t.prototype, "ShopButton", void 0), i([k(cc.Label)], t.prototype, "ShopLabel", void 0), i([k(cc.Button)], t.prototype, "CrownGiftButton", void 0), i([k(cc.Label)], t.prototype, "CrownGiftLabel", void 0), i([k(cc.Button)], t.prototype, "ReturnButton", void 0), i([k(cc.Sprite)], t.prototype, "DetailBg", void 0), i([k(cc.Label)], t.prototype, "DetailLabel", void 0), i([k(cc.Node)], t.prototype, "DetailStarAttrNode", void 0), i([k(cc.Label)], t.prototype, "DetailStarAttrTitle", void 0), i([k(cc.Node)], t.prototype, "DetailStarAttrContainer", void 0), i([k(cc.Node)], t.prototype, "ResetNode", void 0), i([k(cc.Node)], t.prototype, "StarContainer", void 0), i([k(cc.Label)], t.prototype, "StarRewardTitle", void 0), i([k(cc.Label)], t.prototype, "UnStarRewardLabel", void 0), i([k(cc.Node)], t.prototype, "StarRewardContainer", void 0), i([k(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([k(cc.Node)], t.prototype, "StoryItemConent", void 0), i([k(cc.Sprite)], t.prototype, "StoryTitleIcon", void 0), i([k(cc.Node)], t.prototype, "DetailStoryPart", void 0), i([k(cc.Node)], t.prototype, "DetailChapterPater", void 0), i([k(cc.Label)], t.prototype, "ChapterDetailLabel", void 0), i([k(cc.Node)], t.prototype, "ChapterRewardContainer", void 0), i([k(cc.RichText)], t.prototype, "ChapterProgressRichText", void 0), i([k(cc.Label)], t.prototype, "ChapterGetRewardTip", void 0), i([k(cc.Sprite)], t.prototype, "ChapterTitleIcon", void 0), i([k(cc.Label)], t.prototype, "ChapterTitleLabel", void 0), i([k(cc.Node)], t.prototype, "StoryContainer", void 0), i([k(cc.Node)], t.prototype, "ChapterContainer", void 0), i([k(cc.Node)], t.prototype, "ChapterTaskContainer", void 0), i([k(cc.ScrollView)], t.prototype, "ChapterTaskScrollView", void 0), i([k(cc.Label)], t.prototype, "ChapterTaskTitle", void 0), i([k(cc.Node)], t.prototype, "LimitGiftNode", void 0), i([k(cc.Label)], t.prototype, "LimitGiftTitle", void 0), i([k(cc.Node)], t.prototype, "LimitGiftContainer", void 0), i([k(cc.Node)], t.prototype, "UnTouchNode", void 0), i([k(sp.Skeleton)], t.prototype, "ChangePanelSpine", void 0), i([k(cc.Button)], t.prototype, "WarTokenButton", void 0), i([k(cc.Label)], t.prototype, "WarTokenLabel", void 0), i([k(cc.Button)], t.prototype, "TriggerGiftButton", void 0), i([k(cc.Label)], t.prototype, "TriggerGiftButtonLabel", void 0), n = i([L], t)
        }(c.BaseUIFullScreenPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/BlackBgAttrComponent": "BlackBgAttrComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/StarAttrComponent": "StarAttrComponent",
        "../Components/StoryChapterComponent": "StoryChapterComponent",
        "../Components/StoryChapterTaskComponent": "StoryChapterTaskComponent"
    }],
    ActivityTaskComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e2dd4uyxfFJw44qI6nI64XA", "ActivityTaskComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../Components/ItemComponent"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../Consts/Etc"),
            y = e("../Components/CustomProgressBar"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.Title = null, t.Desc = null, t.TaskProgress = null, t.ProgressLbl = null, t.ReceiveBtn = null, t.ReceiveLbl = null, t.GoBtn = null, t.GoLbl = null, t.ReceivedImg = null, t._activityId = 0, t._task = null, t._itemNode = null, t._itemPrefab = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.ReceiveBtn.node.on("click", this.OnReceiveBtnClick, this), this.GoBtn.node.on("click", this.OnGoBtnClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.ReceiveBtn.node.off("click", this.OnReceiveBtnClick, this), this.GoBtn.node.off("click", this.OnGoBtnClick, this)
                }, t.prototype.initData = function(e) {
                    this._activityId = e.activityId, this._task = e.task, this._itemPrefab = e.itemPrefab, this.InitNode(), this.SetInfo(), this.SetItem()
                }, t.prototype.InitNode = function() {
                    this.ReceivedImg.active = !1, this.GoBtn.node.active = !1, this.ReceiveBtn.node.active = !1
                }, t.prototype.SetInfo = function() {
                    var e = this._activityId * f.Etc.Multiplier + this._task.Id,
                        t = d.DataCenter.Instance.GetDataById(l.UserTask_Model, e);
                    this.ReceivedImg.active = t.IsCompleted, this.GoBtn.node.active = t.Progress < this._task.TotalCount, this.ReceiveBtn.node.active = t.Progress >= this._task.TotalCount && !t.IsCompleted, this.Title.string = h.default.GetTaskDesc(this._task), this.Desc.string = this.GetRemainTimes(), this.TaskProgress.progress = t.Progress / this._task.TotalCount, this.ProgressLbl.string = t.Progress + "/" + this._task.TotalCount, this.ReceiveLbl.string = "receive".ToUILocale(), this.GoLbl.string = "task_goto".ToUILocale()
                }, t.prototype.SetItem = function() {
                    this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.parent = this.ItemNode);
                    var e = this._itemNode.getComponent(p.ItemComponent),
                        t = this._activityId * f.Etc.Multiplier + this._task.Id,
                        n = d.DataCenter.Instance.GetDataById(l.UserTask_Model, t),
                        o = this._task.Rewards[0].Items[0],
                        r = this._task.Rewards[0].Items[1];
                    e.Init({
                        ItemId: o,
                        Count: r
                    }, p.ItemComponentType.ItemCommon), e.SetSelectFlagState(n.IsCompleted)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && u.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.OnReceiveBtnClick = function() {
                    var e = new l.Req_Activity_CommonTaskReward;
                    e.ActivityId = this._activityId, e.TaskIds = [this._task.Id], s.RpcComponent.Instance.Call(e, function(e) {
                        a.Game.EventDispatcher.Emit(c.EventKeys.EVENT_COMMON_TASK_REFRESH), u.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnGoBtnClick = function() {
                    h.default.ShowPanelByGetWayId(this._task.GetWayId)
                }, t.prototype.GetRemainTimes = function() {
                    var e = this._activityId * f.Etc.Multiplier + this._task.Id,
                        t = d.DataCenter.Instance.GetDataById(l.UserTask_Model, e);
                    return (1 == this._task.IsDaily ? "explore_today_receive".ToUILocale() : "explore_receive".ToUILocale()) + (t.IsCompleted ? "explore_times_white".ToUILocale().Fmt(0) : "explore_times_green".ToUILocale().Fmt(1))
                }, i([I(cc.Node)], t.prototype, "ItemNode", void 0), i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.RichText)], t.prototype, "Desc", void 0), i([I(y.default)], t.prototype, "TaskProgress", void 0), i([I(cc.Label)], t.prototype, "ProgressLbl", void 0), i([I(cc.Button)], t.prototype, "ReceiveBtn", void 0), i([I(cc.Label)], t.prototype, "ReceiveLbl", void 0), i([I(cc.Button)], t.prototype, "GoBtn", void 0), i([I(cc.Label)], t.prototype, "GoLbl", void 0), i([I(cc.Node)], t.prototype, "ReceivedImg", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ActorFrame: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b951fOOfrdJAZkkF01QHizR", "ActorFrame");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("./BattleInstance"),
            y = e("../Components/BattlePlayerCommonDefines"),
            g = e("./BattlePlayerScreen"),
            m = e("./FlyingNumber"),
            I = e("./BattleSkillSkeleton"),
            _ = e("./BattleBuffCommonEffectSkeleton"),
            C = e("../../../GamePlay/UI/Auxiliary/UIUtlity"),
            v = e("./FloatingFlyingNumberComponent"),
            b = e("../../Auxiliary/DataUtlity"),
            S = cc._decorator,
            w = S.ccclass,
            P = (S.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.avatarPrefab = null, t.avatarPrefabName = "", t.avatarNode = null, t.targetHPBarRatio = 0, t.buffIndicators = [], t.hostBattleInstance = null, t.removeDuplicationMap = new Map, t.buffIconAssets = new Map, t.shouldUpdateBuffIndicators = !1, t.shouldShowHUD = !0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.InitNodesAndComponents = function() {
                    var e = this.node;
                    this.avatarRootNode = cc.find("AvatarRoot", e), this.effectRootInner = cc.find("EffectRootInner", e), this.effectRootOuter = cc.find("EffectRootOuter", e), this.HUDRootNode = cc.find("HUDRoot", e), this.HPBarNode = cc.find("HUDRoot/HPBar", e), this.HPWhiteNode = cc.find("HUDRoot/HPBar/White", e), this.HPRedNode = cc.find("HUDRoot/HPBar/Red", e), this.HPYellowNode = cc.find("HUDRoot/HPBar/Yellow", e), this.HPGreenNode = cc.find("HUDRoot/HPBar/Green", e), n.HPBarFullSize = this.HPGreenNode.getContentSize(), this.LvLabel = cc.find("HUDRoot/LvText/Label", e).getComponent(cc.Label), this.elementSprite = cc.find("HUDRoot/ElementSprite", e).getComponent(cc.Sprite), this.buffContainerNode = cc.find("HUDRoot/BuffContainer", e);
                    for (var t = 0; t < n.maxAvailbleHUDBuffIndicatorNumber; ++t) {
                        var o = cc.find("Buff" + t.toString(), this.buffContainerNode);
                        this.buffIndicators.push({
                            index: t,
                            buffId: 0,
                            buffCount: 0,
                            baseNode: o,
                            iconNode: cc.find("Icon", o),
                            iconSprite: cc.find("Icon", o).getComponent(cc.Sprite),
                            iconStatusSprite: cc.find("StatusFrame", o).getComponent(cc.Sprite),
                            label: cc.find("Text/Label", o).getComponent(cc.Label)
                        })
                    }
                    this.damagePopRoot = cc.find("DamagePopRoot", e), this.healingPopRoot = cc.find("HealingPopRoot", e), this.statusIndicatorRoot = cc.find("StatusIndicatorRoot", e), this.FloatingFlyingNumberDamage = this.damagePopRoot.getComponent(v.default), this.FloatingFlyingNumberStatusIndicator = this.statusIndicatorRoot.getComponent(v.default)
                }, t.prototype.onLoad = function() {
                    this.InitNodesAndComponents()
                }, t.prototype.update = function(e) {
                    for (var t = .1 * e, n = 0; n < 20; ++n) this.UpdateHPBar(t);
                    this.node.zIndex = -this.node.y, this.shouldUpdateBuffIndicators && (this.shouldUpdateBuffIndicators = !1, this.UpdateBuffAppearances())
                }, t.prototype.GotoOffStagePosition = function() {
                    this.node.setPosition(this.offStagePosition)
                }, t.prototype.GotoStandByPosition = function() {
                    this.node.setPosition(this.standByPosition)
                }, t.prototype.Reset = function() {
                    this.node && this.node.cleanup(), this.avatarNode && this.avatarNode.cleanup(), this.GotoOffStagePosition(), this.ResetAllBufferIndicators()
                }, t.prototype.Load = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.hostBattleInstance = e, this.sideAndPosition = t, this.node.cleanup(), this.node.opacity = 255, this.node.active = !0, this.shouldShowHUD = !this.CharacterInstance().useBossHUD, this.CharacterInstance().useBossHUD && (n = this.CharacterInstance().heroId.ToHeroName(), g.default.ToggleBossHUD(!0, this.CharacterInstance().level, n)), e.mapId <= 0 && (this.shouldShowHUD = !1), this.HUDRootNode.active = this.shouldShowHUD, o = this.SetupIndicators(), r = this.LoadAvatar(), [4, Promise.all([o, r]).then()];
                                case 1:
                                    return i.sent(), this.isValid ? (this.CharacterInstance().HP <= 0 && (this.avatarNode.opacity = 0, this.node.active = !1), this.FloatingFlyingNumberDamage.Init(), this.FloatingFlyingNumberStatusIndicator.Init(), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.UnLoad = function() {
                    this.UnLoadAvatar(), this.UnloadAllBuffIcons()
                }, t.prototype.UnLoadAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return this.avatarSkeleton = null, null == this.avatarNode || null == this.avatarPrefab || "" == this.avatarPrefabName ? (u.EZLog.Error("ok in UnLoadAvatar...  this.avatar is not loaded yet."), [2]) : (this.avatarNode.destroy(), e = this.avatarPrefab, c.AssetsManager.Instance.UnloadAsset(e), this.avatarPrefab = null, this.avatarNode = null, this.avatarPrefabName = "", [2])
                        })
                    })
                }, t.prototype.LoadAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = this.CharacterInstance().avatarSkeletonPrefabPathName, null != this.avatarNode && null != this.avatarPrefab && (this.avatarNode.destroy(), t = this.avatarPrefab, c.AssetsManager.Instance.UnloadAsset(t), this.avatarPrefab = null, this.avatarNode = null), this.avatarPrefabName = e, o = this, [4, c.AssetsManager.Instance.LoadAsset(this.avatarPrefabName)];
                                case 1:
                                    return o.avatarPrefab = r.sent(), this.isValid ? g.default.currentOnScreenBattleInstance && g.default.currentOnScreenBattleInstance.mapId != this.hostBattleInstance.mapId ? (c.AssetsManager.Instance.UnloadAsset(this.avatarPrefab), [2]) : (this.avatarNode = cc.instantiate(this.avatarPrefab), this.avatarNode.setParent(this.avatarRootNode), this.avatarSkeleton = this.avatarNode.getComponent(sp.Skeleton), this.avatarRootNode.setScale(this.sideAndPosition.side == y.BattleTeamSide.Attacker ? n.avatarPreScale : -n.avatarPreScale, n.avatarPreScale), this.HUDRootNode.y = this.CharacterInstance().staticConfig_HeroBase.HUDOffsetY + n.gapBetweenAvatarAndHUD, this.avatarNode.opacity = this.sideAndPosition.side == y.BattleTeamSide.Defender && this.hostBattleInstance.mapId < 0 ? 0 : 255, [2]) : (c.AssetsManager.Instance.UnloadAsset(this.avatarPrefab), [2])
                            }
                        })
                    })
                }, t.prototype.SetupIndicators = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    if (e = this.CharacterInstance(), this.elementSprite.spriteFrame = g.default.multiLangAtlas.getSpriteFrame(n.elementSpriteFrameNames[e.staticConfig_HeroBase.ElementType]), this.LvLabel.string = "Lv. " + Math.abs(e.level), this.LvLabel.node.color = e.level < 0 ? C.UIUtlity.Herolevel_Label_Color_StarResonance : cc.Color.WHITE, this.SetHPBarNoAnimation(e.HP / e.HPMax), !this.CharacterInstance().buffList) return [3, 6];
                                    t = 0, o = this.CharacterInstance().buffList.length, i.label = 1;
                                case 1:
                                    return t < o ? (r = this.CharacterInstance().buffList[t], [4, this.AddOneBuff(r.BuffId, r.Count)]) : [3, 4];
                                case 2:
                                    i.sent(), i.label = 3;
                                case 3:
                                    return ++t, [3, 1];
                                case 4:
                                    return [4, this.UpdateBuffAppearances()];
                                case 5:
                                    i.sent(), i.label = 6;
                                case 6:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.UpdateHPIndicator = function() {
                    if (this.hostBattleInstance) {
                        var e = this.CharacterInstance();
                        this.SetHPBarNoAnimation(e.HP / e.HPMax)
                    }
                }, t.prototype.ResetAllBufferIndicators = function() {
                    for (var e = 0, t = n.maxAvailbleHUDBuffIndicatorNumber; e < t; ++e) this.ResetBufferIndicator(e)
                }, t.prototype.ResetBufferIndicator = function(e) {
                    this.buffIndicators[e].baseNode.cleanup(), this.buffIndicators[e].baseNode.active = !1, this.buffIndicators[e].buffCount = 0, this.buffIndicators[e].buffId = 0
                }, t.prototype.CharacterInstance = function() {
                    return this.hostBattleInstance.teams[this.sideAndPosition.side].members[this.sideAndPosition.position]
                }, t.prototype.AddOneBuff = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a, l, c, u, h, f;
                        return s(this, function() {
                            return t || (t = 1), n = d.ConfigDataComponent.Instance.GetConfigById(p.BuffBase_Config, e), o = n.DescriptionId, r = o > 0 ? d.ConfigDataComponent.Instance.GetConfigById(p.BuffDescription_Config, o) : null, i = this.CharacterInstance().buffIconMap, a = this.CharacterInstance().buffEffectMap, r && !r.NoIcon && (i.has(o) ? (l = i.get(o), i.set(o, l + t)) : i.set(o, t)), this.shouldUpdateBuffIndicators = !0, n.ShowEffectName.length > 0 && (c = n.ShowEffectName[0], a.has(c) ? ((u = a.get(c)).refCount = u.refCount + 1, a.set(c, u)) : (h = n.ShowEffectName[1], a.set(c, {
                                name: c,
                                mount: h,
                                refCount: 1,
                                skeletonNode: null
                            })), f = 0, r && (f = r.ZIndex), this.TryAddBuffEffectSkeleton(c, f)), [2]
                        })
                    })
                }, t.prototype.TryAddBuffEffectSkeleton = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return o = this.CharacterInstance().buffEffectMap, null != (r = o.get(e)).skeletonNode ? [3, 2] : [4, _.default.Get(r.name)];
                                case 1:
                                    if (i = s.sent(), !this.isValid) return _.default.Put(r.name, i), [2];
                                    i.cleanup(), t > 0 ? (i.setParent(this.effectRootOuter), this.effectRootOuter.sortAllChildren()) : (i.setParent(this.effectRootInner), this.effectRootInner.sortAllChildren()), i.y = 1 == r.mount ? this.CharacterInstance().staticConfig_HeroBase.HUDOffsetY : 0, i.angle = 0, i.active = !0, a = i.getComponent(sp.Skeleton), n.ResetSkeleton(a), a.setAnimation(0, "play", !0), n.commonEffectSkeletonTrackingMap.set(i.uuid, {
                                        index: e,
                                        skeletonInstance: a
                                    }), r.skeletonNode = i, s.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.RemoveOneBuff = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i, a, l, c, u, h, f;
                        return s(this, function() {
                            return o = d.ConfigDataComponent.Instance.GetConfigById(p.BuffBase_Config, e), null != t && null != t || (t = 1), r = this.CharacterInstance().buffIconMap, i = this.CharacterInstance().buffEffectMap, a = o.DescriptionId, r.has(a) && (l = r.get(a), (c = l - t) <= 0 ? r.delete(a) : r.set(a, c)), this.shouldUpdateBuffIndicators = !0, o.ShowEffectName.length > 0 && (u = o.ShowEffectName[0], i.has(u) && ((h = i.get(u)).refCount = h.refCount - 1, h.refCount <= 0 ? (null != h.skeletonNode && (f = h.skeletonNode.getComponent(sp.Skeleton), n.ResetSkeleton(f), f.node.active = !1, n.commonEffectSkeletonTrackingMap.delete(f.node.uuid), _.default.Put(u, h.skeletonNode)), i.delete(u)) : i.set(u, h))), [2]
                        })
                    })
                }, t.prototype.UpdateBuffAppearances = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a, l, c = this;
                        return s(this, function(u) {
                            switch (u.label) {
                                case 0:
                                    if (!this.hostBattleInstance) return [2];
                                    if (this.CharacterInstance().useBossHUD) return g.default.UpdateBuffAppearances(this.CharacterInstance().buffIconMap), [2];
                                    e = this.CharacterInstance().buffIconMap, t = Array.from(e.keys()), o = t.length, r = function(n) {
                                        var r, a, l;
                                        return s(this, function(s) {
                                            switch (s.label) {
                                                case 0:
                                                    return n < o ? (r = t[n], !(a = e.get(r)) || i.buffIndicators[n].buffId == r && i.buffIndicators[n].buffCount == a ? [3, 2] : (0 == i.buffIndicators[n].buffId && (i.buffIndicators[n].baseNode.active = !1), [4, i.LoadBuffIcon(r)])) : [3, 3];
                                                case 1:
                                                    if (!(l = s.sent())) return [2, "break"];
                                                    cc.tween(i.buffIndicators[n].baseNode).tag(f.default.BattleTweenTag).to(.1, {
                                                        scale: 0
                                                    }, {
                                                        easing: "cubicOut"
                                                    }).call(function() {
                                                        c.buffIndicators[n].baseNode.active = !0, c.buffIndicators[n].iconSprite.spriteFrame = l, c.buffIndicators[n].iconSprite.node.width = 30, c.buffIndicators[n].iconSprite.node.height = 30, c.buffIndicators[n].label.string = a.toString(), c.buffIndicators[n].buffCount = a, c.buffIndicators[n].buffId = r
                                                    }).to(.35, {
                                                        scale: 1
                                                    }, {
                                                        easing: "cubicOut"
                                                    }).start(), s.label = 2;
                                                case 2:
                                                    return [3, 4];
                                                case 3:
                                                    i.buffIndicators[n].baseNode.active && cc.tween(i.buffIndicators[n].baseNode).tag(f.default.BattleTweenTag).to(.05, {
                                                        scale: 0
                                                    }, {
                                                        easing: "cubicOut"
                                                    }).call(function() {
                                                        c.ResetBufferIndicator(n)
                                                    }).start(), s.label = 4;
                                                case 4:
                                                    return [2]
                                            }
                                        })
                                    }, i = this, a = 0, l = n.maxAvailbleHUDBuffIndicatorNumber, u.label = 1;
                                case 1:
                                    return a < l ? [5, r(a, l)] : [3, 4];
                                case 2:
                                    if ("break" === u.sent()) return [3, 4];
                                    u.label = 3;
                                case 3:
                                    return ++a, [3, 1];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetAllHPBar = function(e) {
                    this.targetHPBarRatio = e;
                    var t = cc.size(n.HPBarFullSize);
                    e && e >= 0 && e <= 1 && (t.width *= e), this.HPWhiteNode.setContentSize(t), this.HPRedNode.setContentSize(t), this.HPYellowNode.setContentSize(t), this.HPGreenNode.setContentSize(t)
                }, t.prototype.SetHPBar = function(e) {
                    var t = this;
                    cc.tween(this.node).tag(f.default.BattleTweenTag).delay(this.hostBattleInstance.ModulatedTime(n.HPBarReduceDelay)).call(function() {
                        t.targetHPBarRatio = e
                    }).start();
                    var o = cc.size(n.HPBarFullSize);
                    e >= 0 && e <= 1 && (o.width *= e), this.HPRedNode.setContentSize(o), this.HPYellowNode.setContentSize(o), this.HPGreenNode.setContentSize(o), this.HPGreenNode.active = e > n.yellowThreshold, this.HPYellowNode.active = e > n.redThreshold
                }, t.prototype.SetHPBarNoAnimation = function(e) {
                    this.targetHPBarRatio = e;
                    var t = cc.size(n.HPBarFullSize);
                    e >= 0 && e <= 1 && (t.width *= e), this.HPWhiteNode.setContentSize(t), this.HPRedNode.setContentSize(t), this.HPYellowNode.setContentSize(t), this.HPGreenNode.setContentSize(t), this.HPGreenNode.active = e > n.yellowThreshold, this.HPYellowNode.active = e > n.redThreshold
                }, t.prototype.UpdateHPBar = function(e) {
                    var t = this.HPWhiteNode.getContentSize().width / n.HPBarFullSize.width;
                    if (!(Math.abs(t - this.targetHPBarRatio) < .001)) {
                        var o = t + Math.sign(this.targetHPBarRatio - t) * e * n.HPBarSpeed * f.default.GetGlobalReplaySpeed();
                        Math.abs(o - this.targetHPBarRatio) < .001 && (o = this.targetHPBarRatio);
                        var r = cc.size(n.HPBarFullSize);
                        r.width *= o, this.HPWhiteNode.setContentSize(r)
                    }
                }, t.prototype.StandBy = function() {
                    this.GotoStandByPosition(), this.avatarSkeleton.timeScale = this.hostBattleInstance.ModulatedTimeScale(), this.avatarSkeleton.setAnimation(0, h.SkillAnimationType.Standby, !0)
                }, t.prototype.Die = function(e) {
                    var t = 1;
                    e && (t = e), this.node.cleanup(), this.avatarNode.cleanup(), cc.tween(this.node).tag(f.default.BattleTweenTag).delay(t).to(.15, {
                        opacity: 0
                    }).start(), this.sideAndPosition.side == y.BattleTeamSide.Attacker && g.default.tellWhatHappenedToFrame(this.hostBattleInstance.battleId, {
                        type: y.BattleStatusMessageType.ActorDead,
                        value: this.CharacterInstance().heroId
                    })
                }, t.prototype.CleanDamageRoot = function() {
                    this.damagePopRoot.destroyAllChildren()
                }, t.prototype.Revive = function() {
                    this.HUDRootNode.active = this.shouldShowHUD, this.node.cleanup(), this.avatarNode.cleanup(), this.node.active = !0, cc.tween(this.node).tag(f.default.BattleTweenTag).delay(.35).to(.15, {
                        opacity: 255
                    }).start(), this.sideAndPosition.side == y.BattleTeamSide.Attacker && g.default.tellWhatHappenedToFrame(this.hostBattleInstance.battleId, {
                        type: y.BattleStatusMessageType.ActorRevive,
                        value: this.CharacterInstance().heroId
                    })
                }, t.prototype.FadeIn = function() {
                    cc.tween(this.avatarNode).tag(f.default.BattleTweenTag).to(.3, {
                        opacity: 255
                    }).start()
                }, t.ResetSkeleton = function(e) {
                    e && (e.clearTracks(), e.setToSetupPose())
                }, t.GetSkillSkeletonFromPool = function(e) {
                    return a(this, void 0, Promise, function() {
                        var t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return [4, I.default.Get(e)];
                                case 1:
                                    return (t = r.sent()).cleanup(), t.setParent(g.default.battleFieldNode), t.setPosition(999999, 999999), t.angle = 0, t.active = !0, o = t.getComponent(sp.Skeleton), n.skillSkeletonTrackingMap.set(t.uuid, {
                                        prefabName: e,
                                        skeletonInstance: o
                                    }), n.ResetSkeleton(o), [2, o]
                            }
                        })
                    })
                }, t.GiveBackSkillSkeletonToPool = function(e, t) {
                    n.ResetSkeleton(t), t.node.active = !1, n.skillSkeletonTrackingMap.delete(t.node.uuid), I.default.Put(e, t.node)
                }, t.SetSkillSkeletonTimeScale = function(e) {
                    n.skillSkeletonTrackingMap.forEach(function(t) {
                        t.skeletonInstance.timeScale = e
                    })
                }, t.SetCommonEffectSkeletonTimeScale = function(e) {
                    n.commonEffectSkeletonTrackingMap.forEach(function(t) {
                        t.skeletonInstance.timeScale = e
                    })
                }, t.GiveBackAllSkillSkeletonToPool = function() {
                    n.skillSkeletonTrackingMap.forEach(function(e) {
                        n.GiveBackSkillSkeletonToPool(e.prefabName, e.skeletonInstance)
                    }), n.skillSkeletonTrackingMap.clear(), n.pendingTweeningActorFrameInstances.forEach(function(e) {
                        e.node.cleanup()
                    }), n.pendingTweeningActorFrameInstances.clear()
                }, t.GiveBackAllCommonEffectSkeletonToPool = function() {
                    n.commonEffectSkeletonTrackingMap.forEach(function(e) {
                        n.ResetSkeleton(e.skeletonInstance), e.skeletonInstance.node.active = !1, n.commonEffectSkeletonTrackingMap.delete(e.skeletonInstance.node.uuid), _.default.Put(e.index, e.skeletonInstance.node)
                    }), n.commonEffectSkeletonTrackingMap.clear()
                }, t.prototype.SetAvatarSkeletonTimeScale = function(e) {
                    this.avatarSkeleton.timeScale = e
                }, t.prototype.PerformHurtAnimation = function() {
                    var e = this;
                    n.ResetSkeleton(e.avatarSkeleton), e.avatarSkeleton.timeScale = e.hostBattleInstance.ModulatedTimeScale(), e.avatarSkeleton.setAnimation(0, h.SkillAnimationType.Hurt, !1), cc.tween(e.node).tag(f.default.BattleTweenTag).delay(e.hostBattleInstance.ModulatedTime(.4)).call(function() {
                        n.pendingTweeningActorFrameInstances.delete(e.uuid), n.ResetSkeleton(e.avatarSkeleton), e.avatarSkeleton.timeScale = e.hostBattleInstance.ModulatedTimeScale(), e.avatarSkeleton.setAnimation(0, h.SkillAnimationType.Standby, !0)
                    }).start()
                }, t.prototype.CleanNodeOfCurrentSkillPerforming = function() {
                    this.avatarNode && this.avatarNode.cleanup(), this.node && this.node.cleanup()
                }, t.prototype.GetReferencePositionBySkillTargetRefrence = function(e, t) {
                    var o;
                    switch (f.default.TeamSideToCamp(t[0].side), e.ReferenceType) {
                        case h.SkillTargetRefrence.Target:
                            o = g.default.GetActorFrame(t[0]).standByPosition;
                            break;
                        case h.SkillTargetRefrence.TargetTeam:
                        case h.SkillTargetRefrence.TargetRow:
                            o = n.GetTeamCenterPosition(t[0].side);
                            break;
                        case h.SkillTargetRefrence.TargetCol:
                            var r = t[0],
                                i = [0, 1, 2, 0, 1, 2, 0, 1, 2][r.position];
                            r.position = i, o = g.default.GetActorFrame(r).standByPosition;
                            break;
                        default:
                            o = new cc.Vec2(0, 0)
                    }
                    return o
                }, t.prototype.PerformSkill = function(e, t, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i, a, l, c, u, p, d, y;
                        return s(this, function(m) {
                            switch (m.label) {
                                case 0:
                                    r = this, i = t.Events, c = function(t) {
                                        var c, p, d, y, m, I, _, C, v, b, S, w, P, A, T, R, L, k;
                                        return s(this, function(O) {
                                            switch (O.label) {
                                                case 0:
                                                    switch (c = i[t], a = r.hostBattleInstance.ModulatedTime(.001 * c.StartTime), l = r.hostBattleInstance.ModulatedTime(.001 * c.Duration), c.EventType) {
                                                        case h.SkillEventType.ScreenEffect:
                                                            return [3, 1];
                                                        case h.SkillEventType.PlayAction:
                                                            return [3, 2];
                                                        case h.SkillEventType.MoveTo:
                                                            return [3, 3];
                                                        case h.SkillEventType.MoveBack:
                                                            return [3, 4];
                                                        case h.SkillEventType.WeaponEffect:
                                                            return [3, 5];
                                                        case h.SkillEventType.BattleEffect:
                                                            return [3, 8];
                                                        case h.SkillEventType.Bullet:
                                                            return [3, 11];
                                                        case h.SkillEventType.HitPoint:
                                                            return [3, 16]
                                                    }
                                                    return [3, 17];
                                                case 1:
                                                    return cc.tween(r.node).tag(f.default.BattleTweenTag).delay(a).call(function() {
                                                        g.default.ShowBgMask()
                                                    }).delay(l).call(function() {
                                                        g.default.HideBgMask()
                                                    }).start(), [3, 17];
                                                case 2:
                                                    return n.ResetSkeleton(r.avatarSkeleton), cc.tween(r.node).tag(f.default.BattleTweenTag).delay(a).call(function() {
                                                        r.avatarSkeleton.timeScale = r.hostBattleInstance.ModulatedTimeScale(), r.avatarSkeleton.setAnimation(0, c.ActionName, !1)
                                                    }).delay(l).call(function() {
                                                        n.ResetSkeleton(r.avatarSkeleton), r.avatarSkeleton.timeScale = r.hostBattleInstance.ModulatedTimeScale(), r.avatarSkeleton.setAnimation(0, h.SkillAnimationType.Standby, !0)
                                                    }).start(), [3, 17];
                                                case 3:
                                                    return p = u.GetReferencePositionBySkillTargetRefrence(c, e), f.default.TeamSideToCamp(e[0].side), d = p.x > r.node.position.x ? 1 : -1, r.avatarRootNode.scaleX = Math.abs(r.avatarRootNode.scaleX) * d, y = p.x - d * c.TargetDistance, m = new cc.Vec2(y, p.y), c.IsBlink ? (I = l * (1 / 3), cc.tween(r.node).tag(f.default.BattleTweenTag).delay(a).to(I, {
                                                        opacity: 0
                                                    }).to(I, {
                                                        x: m.x,
                                                        y: m.y - 3
                                                    }).to(I, {
                                                        opacity: 255
                                                    }).start()) : cc.tween(r.node).tag(f.default.BattleTweenTag).delay(a).to(l, {
                                                        x: m.x,
                                                        y: m.y - 3
                                                    }, {
                                                        easing: "cubicOut"
                                                    }).start(), [3, 17];
                                                case 4:
                                                    return c.IsBlink ? (I = l * (1 / 3), cc.tween(r.node).tag(f.default.BattleTweenTag).delay(a).to(I, {
                                                        opacity: 0
                                                    }).to(I, {
                                                        x: r.standByPosition.x,
                                                        y: r.standByPosition.y
                                                    }).to(I, {
                                                        opacity: 255
                                                    }).start()) : cc.tween(r.node).tag(f.default.BattleTweenTag).delay(a).to(l, {
                                                        x: r.standByPosition.x,
                                                        y: r.standByPosition.y
                                                    }, {
                                                        easing: "cubicOut"
                                                    }).start(), [3, 17];
                                                case 5:
                                                    return c.Duration > 0 ? (_ = c.OffsetX * Math.abs(r.avatarRootNode.scaleX), C = c.OffsetY * r.avatarRootNode.scaleY, [4, n.GetSkillSkeletonFromPool(r.CharacterInstance().skillSkeletonPrefabPathName)]) : [3, 7];
                                                case 6:
                                                    if (v = O.sent(), !u.isValid) return n.GiveBackSkillSkeletonToPool(r.CharacterInstance().skillSkeletonPrefabPathName, v), [2, {
                                                        value: void 0
                                                    }];
                                                    b = null != c.ShowAtBottom && null != c.ShowAtBottom && c.ShowAtBottom, cc.tween(v.node).tag(f.default.BattleTweenTag).delay(a).call(function() {
                                                        var e = r.node.position;
                                                        e.x += _, e.y += C, v.node.position = e, v.node.zIndex = b ? -e.y - 25 : 25 - e.y, v.node.scaleX = r.avatarRootNode.scaleX, v.node.scaleY = r.avatarRootNode.scaleY, v.timeScale = r.hostBattleInstance.ModulatedTimeScale(), v.setAnimation(0, c.ActionName, !1)
                                                    }).delay(a + l).call(function() {
                                                        n.GiveBackSkillSkeletonToPool(r.CharacterInstance().skillSkeletonPrefabPathName, v)
                                                    }).start(), O.label = 7;
                                                case 7:
                                                    return [3, 17];
                                                case 8:
                                                    return c.Duration > 0 ? (S = c.ReferenceType == h.SkillEffectRefrence.Attacker ? new cc.Vec2(r.node.position.x, r.node.position.y) : r.GetSkillEffectPos(c, e), [4, n.GetSkillSkeletonFromPool(r.CharacterInstance().skillSkeletonPrefabPathName)]) : [3, 10];
                                                case 9:
                                                    if (w = O.sent(), !u.isValid) return n.GiveBackSkillSkeletonToPool(r.CharacterInstance().skillSkeletonPrefabPathName, w), [2, {
                                                        value: void 0
                                                    }];
                                                    P = null != c.ShowAtBottom && null != c.ShowAtBottom && c.ShowAtBottom, cc.tween(w.node).tag(f.default.BattleTweenTag).delay(a).call(function() {
                                                        w.node.position = new cc.Vec3(S.x, S.y, 0), w.node.zIndex = P ? -S.y - 25 : 25 - S.y, w.node.scaleX = r.avatarRootNode.scaleX, w.node.scaleY = r.avatarRootNode.scaleY, w.timeScale = r.hostBattleInstance.ModulatedTimeScale(), w.setAnimation(0, c.ActionName, !1)
                                                    }).delay(a + l).call(function() {
                                                        n.GiveBackSkillSkeletonToPool(r.CharacterInstance().skillSkeletonPrefabPathName, w)
                                                    }).start(), O.label = 10;
                                                case 10:
                                                    return [3, 17];
                                                case 11:
                                                    if (!(c.Duration > 0)) return [3, 15];
                                                    f.default.TeamSideToCamp(e[0].side), A = [], T = function(t) {
                                                        var o, i, p, d, h, y, m, I;
                                                        return s(this, function(s) {
                                                            switch (s.label) {
                                                                case 0:
                                                                    return [4, n.GetSkillSkeletonFromPool(r.CharacterInstance().skillSkeletonPrefabPathName)];
                                                                case 1:
                                                                    return o = s.sent(), u.isValid ? (A.push(o), i = new cc.Vec3(r.node.position.x + c.OffsetX * r.node.scaleX, r.node.position.y + c.OffsetY * r.node.scaleY, 0), p = g.default.GetActorFrame(e[t]).node, d = new cc.Vec3(p.position.x, p.position.y + 150 * p.scaleY, 0), h = p.position.x - i.x, y = new cc.Vec2(Math.abs(h), p.position.y - i.y), m = y.signAngle(new cc.Vec2(1, 0)), I = m / Math.PI * -180, o.node.angle = Math.sign(h) * I, cc.tween(o.node).tag(f.default.BattleTweenTag).delay(a).call(function() {
                                                                        o.node.position = i, o.node.scaleX = r.avatarRootNode.scaleX, o.node.scaleY = r.avatarRootNode.scaleY, o.timeScale = r.hostBattleInstance.ModulatedTimeScale(), o.setAnimation(0, c.ActionName, !0)
                                                                    }).to(l, {
                                                                        position: d
                                                                    }).call(function() {
                                                                        n.GiveBackSkillSkeletonToPool(r.CharacterInstance().skillSkeletonPrefabPathName, o)
                                                                    }).start(), [2]) : (n.GiveBackSkillSkeletonToPool(r.CharacterInstance().skillSkeletonPrefabPathName, o), [2, {
                                                                        value: void 0
                                                                    }])
                                                            }
                                                        })
                                                    }, R = 0, L = e.length, O.label = 12;
                                                case 12:
                                                    return R < L ? [5, T(R, L)] : [3, 15];
                                                case 13:
                                                    if ("object" == typeof(k = O.sent())) return [2, k];
                                                    O.label = 14;
                                                case 14:
                                                    return ++R, [3, 12];
                                                case 15:
                                                    return [3, 17];
                                                case 16:
                                                    return n.DealWithHitPoints(r, c, o, a, l), [3, 17];
                                                case 17:
                                                    return [2]
                                            }
                                        })
                                    }, u = this, p = 0, d = i.length, m.label = 1;
                                case 1:
                                    return p < d ? [5, c(p, d)] : [3, 4];
                                case 2:
                                    if ("object" == typeof(y = m.sent())) return [2, y.value];
                                    m.label = 3;
                                case 3:
                                    return ++p, [3, 1];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.DealWithHitPoints = function(e, t, o, r, i, l) {
                    return a(this, void 0, void 0, function() {
                        var a, c, I, C, v, b, S, w, P, A, T, R, L;
                        return s(this, function(k) {
                            switch (k.label) {
                                case 0:
                                    if (a = null != e && null != t, c = !1, (I = null == t ? 1 : t.HitPointId) < 0 && (c = !0, I = -I), !(C = o[I - 1])) return [2];
                                    if (v = C.Events, e && t && t.ActionName) {
                                        for (e.removeDuplicationMap.clear(), T = 0, R = v.length; T < R; ++T) v[T].EventType <= 20 && (null == (b = e.hostBattleInstance.GetSideAndPosition(v[T].TargetId)) && u.EZLog.Error("ok in ActorFrame.PerformSkill Wrong TargetId(HeroUniqId)!!! i:" + T + "hitPointItems[i].TargetId:" + v[T].TargetId + " type:" + v[T].EventType + " uuid:" + e.node.uuid + " battleId:" + e.hostBattleInstance.battleId + " Ask ServerSide Programmer."), e.removeDuplicationMap.set(v[T].TargetId, b));
                                        for (S = [], e.removeDuplicationMap.forEach(function(e) {
                                                S.push(e)
                                            }), T = 0, R = S.length; T < R; ++T)
                                            if (w = g.default.GetActorFrame(S[T]), this.PlaySkillSkelon(e, w, t, r, i), !e.isValid) return [2]
                                    }
                                    if (c) return [2];
                                    null == l && (l = e.hostBattleInstance), P = function(t) {
                                        var o, i, c, I, C, b, S, w, P, T, R, L, k, O, M, D, B, N, E, U, G, x, H;
                                        return s(this, function(s) {
                                            switch (s.label) {
                                                case 0:
                                                    switch (o = v[t].TargetId, i = l.GetSideAndPosition(o), c = g.default.GetActorFrame(i), I = v[t].EventType, C = v[t].Value, null == e && (e = c), I) {
                                                        case h.BattleReportHitPointEventType.Damage:
                                                            return [3, 1];
                                                        case h.BattleReportHitPointEventType.AdvanceDamage:
                                                            return [3, 2];
                                                        case h.BattleReportHitPointEventType.Crit:
                                                            return [3, 3];
                                                        case h.BattleReportHitPointEventType.ShieldDamage:
                                                            return [3, 4];
                                                        case h.BattleReportHitPointEventType.Cure:
                                                            return [3, 5];
                                                        case h.BattleReportHitPointEventType.Dodge:
                                                            return [3, 6];
                                                        case h.BattleReportHitPointEventType.Revive:
                                                            return [3, 7];
                                                        case h.BattleReportHitPointEventType.ShareDamage:
                                                            return [3, 8];
                                                        case h.BattleReportHitPointEventType.ExtraDamage:
                                                            return [3, 9];
                                                        case h.BattleReportHitPointEventType.ExtraCure:
                                                            return [3, 10];
                                                        case h.BattleReportHitPointEventType.FloatWord:
                                                            return [3, 11];
                                                        case h.BattleReportHitPointEventType.PlayCommonEffect:
                                                            return [3, 12];
                                                        case h.BattleReportHitPointEventType.AddBuff:
                                                            return [3, 14];
                                                        case h.BattleReportHitPointEventType.RemoveBuff:
                                                            return [3, 15]
                                                    }
                                                    return [3, 16];
                                                case 1:
                                                    return cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        e.DealWithHP(c, -C), c.CharacterInstance().useBossHUD && g.default.AddBossHUDHPBar(C), a && g.default.AddTotalDMG(C), m.default.ShowNumber(c.FloatingFlyingNumberDamage, m.FlyingNumberType.Normal, C), l.battleCatergory == y.BattleCatergory.IdleFake && g.default.tellWhatHappenedOnFakeBattleToCaller && g.default.tellWhatHappenedOnFakeBattleToCaller({
                                                            type: y.BattleStatusMessageType.FlyingNumberDamage,
                                                            value: c.node.position.x,
                                                            value2: c.node.position.y
                                                        })
                                                    }).start(), [3, 16];
                                                case 2:
                                                    return cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        e.DealWithHP(c, -C), c.CharacterInstance().useBossHUD && g.default.AddBossHUDHPBar(C), a && g.default.AddTotalDMG(C), m.default.ShowNumber(c.FloatingFlyingNumberDamage, m.FlyingNumberType.Restrain, C)
                                                    }).start(), [3, 16];
                                                case 3:
                                                    return cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        e.DealWithHP(c, -C), c.CharacterInstance().useBossHUD && g.default.AddBossHUDHPBar(C), a && g.default.AddTotalDMG(C), m.default.ShowNumber(c.FloatingFlyingNumberDamage, m.FlyingNumberType.Critical, C)
                                                    }).start(), [3, 16];
                                                case 4:
                                                    return cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        m.default.ShowNumber(c.FloatingFlyingNumberDamage, m.FlyingNumberType.Absorb, C)
                                                    }).start(), [3, 16];
                                                case 5:
                                                    return cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        e.DealWithHP(c, C), c.CharacterInstance().useBossHUD && g.default.AddBossHUDHPBar(-C), m.default.ShowNumber(c.FloatingFlyingNumberDamage, m.FlyingNumberType.Healing, C)
                                                    }).start(), [3, 16];
                                                case 6:
                                                    return cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        m.default.ShowPicture(c.FloatingFlyingNumberStatusIndicator, m.FlyingPictureType.Dodge)
                                                    }).start(), [3, 16];
                                                case 7:
                                                    return cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        c.Revive()
                                                    }).start(), [3, 16];
                                                case 8:
                                                    return b = v[t].Params[0], S = l.GetSideAndPosition(b), w = g.default.GetActorFrame(S), P = c.node.position, T = w.node.position, 0 == S.side ? T.x += 60 : T.x -= 60, cc.tween(c.node).tag(f.default.BattleTweenTag).to(.08, {
                                                        position: T
                                                    }, {
                                                        easing: "cubicOut"
                                                    }).delay(r).call(function() {
                                                        e.DealWithHP(c, -C), m.default.ShowNumber(c.FloatingFlyingNumberDamage, m.FlyingNumberType.Normal, C)
                                                    }).delay(.18).to(.25, {
                                                        position: P
                                                    }, {
                                                        easing: "cubicIn"
                                                    }).start(), [3, 16];
                                                case 9:
                                                    return cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        e.DealWithHP(c, -C), c.CharacterInstance().useBossHUD && g.default.AddBossHUDHPBar(C), a && g.default.AddTotalDMG(C), m.default.ShowNumber(c.FloatingFlyingNumberDamage, m.FlyingNumberType.Additional, C)
                                                    }).start(), [3, 16];
                                                case 10:
                                                    return cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        e.DealWithHP(c, C), c.CharacterInstance().useBossHUD && g.default.AddBossHUDHPBar(-C), m.default.ShowNumber(c.FloatingFlyingNumberDamage, m.FlyingNumberType.Healing, C)
                                                    }).start(), [3, 16];
                                                case 11:
                                                    return R = C, L = d.ConfigDataComponent.Instance.GetConfigById(p.BuffBase_Config, R), k = L.DescriptionId, (O = k > 0 ? d.ConfigDataComponent.Instance.GetConfigById(p.BuffDescription_Config, k) : null) || u.EZLog.Error("ok in PerformSkill Consts.BattleReportHitPointEventType.FloatWord... Wrong buffDescId!!! buffId:" + C + " buffDescId:" + k), A.ShowBuffIcon(e, c.FloatingFlyingNumberStatusIndicator, r, O), [3, 16];
                                                case 12:
                                                    return M = C, D = v[t].Params[0], [4, _.default.Get(M)];
                                                case 13:
                                                    return B = s.sent(), e.isValid ? (B.cleanup(), B.setParent(c.avatarRootNode), N = 1 == D ? c.CharacterInstance().staticConfig_HeroBase.HUDOffsetY : 0, B.setPosition(999999, N), E = B.getComponent(sp.Skeleton), U = E.skeletonData.getRuntimeData(), G = l.ModulatedTime(.001 * (U.animations[0].duration + .1)), n.ResetSkeleton(E), n.commonEffectSkeletonTrackingMap.set(B.uuid, {
                                                        index: M,
                                                        skeletonInstance: E
                                                    }), cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        B.x = 0, B.angle = 0, B.active = !0, E.setAnimation(0, "play", !1)
                                                    }).delay(r + G).call(function() {
                                                        n.ResetSkeleton(E), E.node.active = !1, n.commonEffectSkeletonTrackingMap.delete(E.node.uuid), _.default.Put(M, E.node)
                                                    }).start(), [3, 16]) : (_.default.Put(M, B), [2, {
                                                        value: void 0
                                                    }]);
                                                case 14:
                                                    return x = C, cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        c.AddOneBuff(x)
                                                    }).start(), [3, 16];
                                                case 15:
                                                    return H = C, cc.tween(e.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                                        c.RemoveOneBuff(H)
                                                    }).start(), [3, 16];
                                                case 16:
                                                    return [2]
                                            }
                                        })
                                    }, A = this, T = 0, R = v.length, k.label = 1;
                                case 1:
                                    return T < R ? [5, P(T, R)] : [3, 4];
                                case 2:
                                    if ("object" == typeof(L = k.sent())) return [2, L.value];
                                    k.label = 3;
                                case 3:
                                    return ++T, [3, 1];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.PlaySkillSkelon = function(e, t, o, r, i) {
                    return a(this, void 0, void 0, function() {
                        var a, l, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return a = t.node, l = new cc.Vec3(o.OffsetX * a.scaleX, o.OffsetY * a.scaleY, 0), [4, n.GetSkillSkeletonFromPool(e.CharacterInstance().skillSkeletonPrefabPathName)];
                                case 1:
                                    return c = s.sent(), e.isValid ? (cc.tween(c.node).tag(f.default.BattleTweenTag).delay(r).call(function() {
                                        c.node.position = l, c.node.setParent(a), c.node.scaleX = e.avatarRootNode.scaleX, c.node.scaleY = e.avatarRootNode.scaleY, c.timeScale = e.hostBattleInstance.ModulatedTimeScale(), c.setAnimation(0, o.ActionName, !1)
                                    }).delay(r + i).call(function() {
                                        n.GiveBackSkillSkeletonToPool(e.CharacterInstance().skillSkeletonPrefabPathName, c)
                                    }).start(), [2]) : (n.GiveBackSkillSkeletonToPool(e.CharacterInstance().skillSkeletonPrefabPathName, c), [2])
                            }
                        })
                    })
                }, t.ShowBuffIcon = function(e, t, n, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return !o || o.NoIcon ? [3, 2] : [4, e.LoadBuffIcon(o.Id)];
                                case 1:
                                    return i = a.sent(), [3, 3];
                                case 2:
                                    i = null, a.label = 3;
                                case 3:
                                    return r = i, cc.tween(e.node).tag(f.default.BattleTweenTag).delay(n).call(function() {
                                        m.default.ShowBuff(t, r, o.Id.ToBuffEffectName(), o.FloatTextColor)
                                    }).start(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadBuffIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return l.EZLog.Debug("LoadBuffIcon buffDescId:" + e), this.buffIconAssets.has(e) ? [2, this.buffIconAssets.get(e)] : (t = b.default.GetBuffIconId(e), [4, c.AssetsManager.Instance.LoadAsset("BuffIcon/" + t.toString(), cc.SpriteFrame)]);
                                case 1:
                                    return n = o.sent(), this.isValid ? (l.EZLog.Debug("LoadBuffIcon buffDescId:" + e + " done."), this.buffIconAssets.set(e, n), [2, n]) : (c.AssetsManager.Instance.UnloadAsset(n), [2, null])
                            }
                        })
                    })
                }, t.prototype.UnloadAllBuffIcons = function() {
                    this.buffIconAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    }), this.buffIconAssets.clear()
                }, t.prototype.DealWithHP = function(e, t) {
                    t < 0 && (n.pendingTweeningActorFrameInstances.set(e.uuid, e), e.PerformHurtAnimation());
                    var o = e.CharacterInstance(),
                        r = o.HP,
                        i = Math.max(0, r + t);
                    i = Math.min(o.HPMax, i), o.HP = i;
                    var a = i / o.HPMax;
                    e.SetHPBar(a), e.sideAndPosition.side == y.BattleTeamSide.Attacker && g.default.tellWhatHappenedToFrame(this.hostBattleInstance.battleId, {
                        type: y.BattleStatusMessageType.ActorHPRatio,
                        value: o.heroId,
                        value2: a
                    }), this.hostBattleInstance.mapId < 0 && e.Die(.3)
                }, t.prototype.Sleep = function(e) {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return [2, new Promise(function(t) {
                                setTimeout(t, e)
                            })]
                        })
                    })
                }, t.prototype.GetSkillEffectPos = function(e, t) {
                    var o, r = f.default.TeamSideToCamp(t[0].side),
                        i = [0, 0, 0, 1, 1, 1, 2, 2, 2],
                        a = [124, 284, 444];
                    switch (e.ReferenceType) {
                        case h.SkillEffectRefrence.BattleFiled:
                            o = new cc.Vec2(0, -125);
                            break;
                        case h.SkillEffectRefrence.Target:
                            var s = t[0];
                            o = g.default.GetActorFrame(s).standByPosition;
                            break;
                        case h.SkillEffectRefrence.TargetTeam:
                            o = n.GetTeamBaryCentricCenterPosition(t[0].side);
                            break;
                        case h.SkillEffectRefrence.MultiRowCenter:
                            var l = n.GetTeamCenterPosition(t[0].side).y,
                                c = g.default.GetActorFrame(t[0]).node.position.x;
                            if (t.length > 1) {
                                for (var u = {}, p = 0, d = t.length; p < d; ++p) {
                                    var y = i[t[p].position];
                                    u[y] = a[y]
                                }
                                var m = 0,
                                    I = 0;
                                for (var _ in u) I += u[_], m++;
                                c = -r * Math.floor(I / m)
                            }
                            o = new cc.Vec2(c + e.OffsetX, l + e.OffsetY);
                            break;
                        default:
                            o = new cc.Vec2(-r * e.OffsetX, e.OffsetY)
                    }
                    return o
                }, t.GetTeamCenterPosition = function(e) {
                    var t = g.default.GetActorFrame({
                            side: e,
                            position: 0
                        }).standByPosition,
                        n = g.default.GetActorFrame({
                            side: e,
                            position: 1
                        }).standByPosition;
                    return new cc.Vec2(t.x, n.y)
                }, t.GetTeamBaryCentricCenterPosition = function(e) {
                    var t = g.default.GetActorFrame({
                        side: e,
                        position: 4
                    }).standByPosition;
                    return new cc.Vec2(t.x, t.y)
                }, t.prototype.ChangeHP = function() {}, t.elementSpriteFrameNames = ["element_all", "element_xin", "element_ti", "element_ji", "element_po", "element_dou"], t.classNameString = "ActorFrame", t.maxAvailbleHUDBuffIndicatorNumber = 16, t.avatarPreScale = .875, t.gapBetweenAvatarAndHUD = 15, t.yellowThreshold = .6, t.redThreshold = .3, t.HPBarSpeed = .25, t.HPBarReduceDelay = .675, t.skillSkeletonTrackingMap = new Map, t.commonEffectSkeletonTrackingMap = new Map, t.pendingTweeningActorFrameInstances = new Map, n = i([w], t)
            }(cc.Component));
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/UI/Auxiliary/UIUtlity": "UIUtlity",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/BattlePlayerCommonDefines": "BattlePlayerCommonDefines",
        "./BattleBuffCommonEffectSkeleton": "BattleBuffCommonEffectSkeleton",
        "./BattleInstance": "BattleInstance",
        "./BattlePlayerScreen": "BattlePlayerScreen",
        "./BattleSkillSkeleton": "BattleSkillSkeleton",
        "./FloatingFlyingNumberComponent": "FloatingFlyingNumberComponent",
        "./FlyingNumber": "FlyingNumber"
    }],
    AddRedeceComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "07a0a0R01pBa6N9PwhzL8/A", "AddRedeceComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NumLabel = null, t.ReduceNode = null, t.AddNode = null, t._num = 0, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n, o) {
                    void 0 === e && (e = 0), void 0 === o && (o = function() {}), this._callBack = o, this._num = e, t && (this._max = t), (n || 0 == n) && (this._min = n), this.NumLabel.string = this._num.toString(), this.AddNode.on("click", this.Add, this), this.ReduceNode.on("click", this.Reduce, this)
                }, t.prototype.Add = function() {
                    this.Change(this._num + 1)
                }, t.prototype.Reduce = function() {
                    this.Change(this._num - 1)
                }, t.prototype.Change = function(e) {
                    this._num = Math.min(Math.max(this.HandleNum(e), this._min), this._max), this.NumLabel.string = this._num.toString(), this._callBack(this._num)
                }, t.prototype.HandleNum = function(e) {
                    return Math.max(e, 0)
                }, i([l(cc.Label)], t.prototype, "NumLabel", void 0), i([l(cc.Node)], t.prototype, "ReduceNode", void 0), i([l(cc.Node)], t.prototype, "AddNode", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AdjustAction: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "030b4e0MKdCqYYCqB2PDG+/", "AdjustAction");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AdjustEventToken = void 0;
        var a = e("./ChannelManager"),
            s = cc._decorator,
            l = s.ccclass,
            c = (s.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.LoadAdjustSDK = function() {
                    if (!cc.sys.isNative && !document.getElementById("adjust")) {
                        var e = document.createElement("script");
                        e.id = "adjust", e.type = "application/javascript", e.textContent = '\n            !(function (t, e, a, r, n, s, d, l, o, i, u) {\n                (t.Adjust = t.Adjust || {}), (t.Adjust_q = t.Adjust_q || []);\n                for (var c = 0; c < l.length; c++) o(t.Adjust, t.Adjust_q, l[c]);\n                (i = e.createElement(a)),\n                    (u = e.getElementsByTagName(a)[0]),\n                    (i.async = !0),\n                    (i.src = "https://cdn.adjust.com/adjust-latest.min.js"),\n                    (i.onload = function () {\n                        for (var e = 0; e < t.Adjust_q.length; e++)\n                        t.Adjust[t.Adjust_q[e][0]].apply(t.Adjust, t.Adjust_q[e][1]);\n                        t.Adjust_q = [];\n                    }),\n                    u.parentNode.insertBefore(i, u);\n            })(\n                window,\n                document,\n                "script",\n                0,\n                0,\n                0,\n                0,\n                [\n                    "initSdk",\n                    "getAttribution",\n                    "getWebUUID",\n                    "setReferrer",\n                    "trackEvent",\n                    "addGlobalCallbackParameters",\n                    "addGlobalPartnerParameters",\n                    "removeGlobalCallbackParameter",\n                    "removeGlobalPartnerParameter",\n                    "clearGlobalCallbackParameters",\n                    "clearGlobalPartnerParameters",\n                    "switchToOfflineMode",\n                    "switchBackToOnlineMode",\n                    "stop",\n                    "restart",\n                    "gdprForgetMe",\n                    "disableThirdPartySharing",\n                    "initSmartBanner",\n                    "showSmartBanner",\n                    "hideSmartBanner",\n                ],\n                function (t, e, a) {\n                    t[a] = function () {\n                        e.push([a, arguments]);\n                    };\n                },\n            );', document.head.appendChild(e), this.InitAdjustSDK()
                    }
                }, t.InitAdjustSDK = function() {
                    window.Adjust.initSdk({
                        appToken: "72p84bt55zsw",
                        environment: "production",
                        logLevel: "none"
                    })
                }, t.AdjustTrackEvent = function(e) {
                    a.default.Instance.IsVNChannel() && window.Adjust.trackEvent({
                        eventToken: e
                    })
                }, i([l], t)
            }(cc.Component));
        n.default = c;
        var u = function() {
            function e() {}
            return e.FirstView = "n68k9o", e.PageView = "iv4pli", e.SignUp = "94nhcy", e.Login = "flf1ce", e.Logout = "raqqcw", e.GiftCode = "i2sem6", e.Lv3 = "8nyp8a", e.Tutorial = "tlp2ew", e.Summon = "dc7j4a", e.GuildJoined = "iyu2eh", e.Purchase = "wbot2e", e.MonthCard = "288dbi", e
        }();
        n.AdjustEventToken = u, cc._RF.pop()
    }, {
        "./ChannelManager": "ChannelManager"
    }],
    AdventureSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bf5adhzpS1IHoAIPSGTOkEE", "AdventureSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("./CustomRichText"),
            u = e("../../../EZFramework/UIFrame/UIManager"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../EZFramework/Auxiliary/EZLog"),
            f = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./DisplayRewardsComponent"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../../Util/AppUtil"),
            _ = e("../../Components/DataCenter"),
            C = e("../../../../Proto/Static/RpcProto"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../../../Consts/Consts"),
            S = e("../../Components/RpcComponent"),
            w = e("../Auxiliary/UIUtlity"),
            P = e("../../Auxiliary/EventKeys"),
            A = e("../Panel/MainUIPanel"),
            T = e("../../Components/ConfigData/ConfigCacheComponent"),
            R = e("./HeadComponent"),
            L = e("../../Auxiliary/DataUtlity"),
            k = e("../../Auxiliary/GuideManager"),
            O = e("../Battle/BattleManager"),
            M = e("./CustomProgressBar"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property,
            E = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Content = null, t.LineText = null, t.BtnReturn = null, t.BtnSure = null, t.BtnNextLevel = null, t.BtnDisable = null, t.BtnNextChapter = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t.LabelBtnNextLevel = null, t.LabelBtnDisable = null, t.LabelBtnNextChapter = null, t.BattleName = null, t.PlayerInfoNode = null, t.LevelLabel = null, t.ExpLabel = null, t.ExpProgress = null, t.HeadRoot = null, t.NextLevelToggle = null, t.NextLevelHintLabel = null, t._isNoNextChapter = !1, t._mapId = 0, t._isInit = !1, t._headItemPrefab = null, t._headItem = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t), this._mapId = t.Reports[0].MapId, this._oldPlayerLevel = t.SettleParams[0], this._oldExp = t.SettleParams[1], this._currPlayerLevel = _.DataCenter.Instance.GetIntData(b.UserDataKey.PlayerLevel), this._currExp = _.DataCenter.Instance.GetItemCount(v.CommonItemId.Xp), this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.LoadLevelConfigData(), this.LoadChapterConfig(), this.SetBattleName(), this.SetPlayerInfoUI(), this.SetBtnState(), this.LoadReward(), this.RenderContent(), this.LoadPlayerHead(), this.ShowGuide()
                }, t.prototype.SetStaticLocalText = function() {
                    this.LineText.string = "win_get_reward".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale(), this.LabelBtnNextLevel.string = "idleBattle_main_nextLevel".ToUILocale(), this.LabelBtnNextChapter.string = "idleBattle_main_nextChapter".ToUILocale(), this.NextLevelHintLabel.string = "win_auto_nextLevel".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnNextLevel.node.on("click", this.OnBtnNextClick, this), this.BtnNextChapter.node.on("click", this.OnBtnNextChapter, this), this.NextLevelToggle.node.on("toggle", this.OnNextLevelToggle, this)
                }, t.prototype.OnBtnSureClick = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    u.UIManager.Instance.BackUIPanel(), m.Game.EventDispatcher.Emit(P.EventKeys.EVENT_SWITCH_MAINPANEL_TOGGLE, A.DockTab.Battle)
                }, t.prototype.SetBattleName = function() {
                    this.ConfigBattleName()
                }, t.prototype.LoadLevelConfigData = function() {
                    this._playerLevelConfig = d.ConfigDataComponent.Instance.GetArrayConfig(p.PlayerLevel_Config)
                }, t.prototype.GetPlayerUid = function() {
                    return _.DataCenter.Instance.Uid
                }, t.prototype.GetChacheKey = function() {
                    return n.Cache_Key_Prefeix + "_" + this.GetPlayerUid()
                }, t.prototype.LoadChapterConfig = function() {
                    var e = this.GetCurrMapLevelId();
                    h.EZLog.Log("\u5f53\u524d\u5173\u5361id---\x3e" + e);
                    var t = _.DataCenter.Instance.GetIntData(v.UserDataKey.MainLineProgress),
                        n = d.ConfigDataComponent.Instance.GetArrayConfig(p.AdventureChapter_Config),
                        o = n[n.length - 1],
                        r = o.MapIds[o.MapIds.length - 1],
                        i = n.length;
                    t >= r && (this._isNoNextChapter = !0, e = r, cc.sys.localStorage.setItem(this.GetChacheKey(), r.toString()));
                    for (var a = 0; a < i; a++) {
                        var s = n[a].MapIds[0],
                            l = n[a].MapIds[n[a].MapIds.length - 1];
                        if (e >= s && e <= l) {
                            this._currChapterConfig = n[a];
                            break
                        }
                    }
                    this._currAdventureConfig = d.ConfigDataComponent.Instance.GetConfigById(p.MapAdventure_Config, t)
                }, t.prototype.GetChacheLevel = function() {
                    var e = 0,
                        t = cc.sys.localStorage.getItem(this.GetChacheKey());
                    return null != t && (e = I.AppUtil.ToInt(t)), e
                }, t.prototype.GetCurrMapLevelId = function() {
                    var e, t = this.GetChacheLevel();
                    return e = this._mapId > t && 0 != t ? t : this._mapId, h.EZLog.Log(" ---\x3e \u5f53\u524d\u5173\u5361id = ", e), e
                }, t.prototype.ResetCache = function() {
                    cc.sys.localStorage.setItem(this.GetChacheKey(), "0")
                }, t.prototype.GetLevelName = function() {
                    var e = T.ConfigCacheComponent.Instance.GetChapterIdByMapId(this._mapId),
                        t = T.ConfigCacheComponent.Instance.GetAreaIdByChapterId(e);
                    return "<outline width = 3 color = 221611>" + d.ConfigDataComponent.Instance.GetLocale("MapWorld_name_" + t) + " <color = FFE685>" + e + "-" + T.ConfigCacheComponent.Instance.GetLevelIndexByMapId(this._mapId) + "</>"
                }, t.prototype.ConfigBattleName = function() {
                    var e = this.GetLevelName();
                    this.BattleName.Init(e)
                }, t.prototype.LoadReward = function() {
                    this._rewardData = [];
                    for (var e = d.ConfigDataComponent.Instance.GetConfigById(p.MapAdventure_Config, this._mapId), t = 0; t < e.PassRewards.length; t++) {
                        var n = e.PassRewards[t].Items[0],
                            o = e.PassRewards[t].Items[1];
                        this._rewardData.push({
                            ItemId: n,
                            Count: o
                        })
                    }
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (e._displayRewardPrefab = n.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(g.DisplayRewardsComponent), this.Content.addChild(t), this._rewardComponent.Init(this._rewardData, this.Content.height), [2]
                            }
                        })
                    })
                }, t.prototype.LoadPlayerHead = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != this._headItemPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.HeadComponent, cc.Prefab)]);
                                case 1:
                                    if (e._headItemPrefab = r.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    return null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(R.default), this._headItem.node.parent = this.HeadRoot), t = _.DataCenter.Instance.GetIntData(v.UserDataKey.HeadIcon), n = _.DataCenter.Instance.GetIntData(v.UserDataKey.HeadFrame), o = _.DataCenter.Instance.GetIntData(v.UserDataKey.Title), this._headItem.SetUI(t, n, o), [2]
                            }
                        })
                    })
                }, t.prototype.SetPlayerInfoUI = function() {
                    this.SetLevelLabel(), this.SetExpShow()
                }, t.prototype.SetLevelLabel = function() {
                    this.LevelLabel.string = "Lv." + this._currPlayerLevel
                }, t.prototype.SetExpShow = function() {
                    var e = this,
                        t = this._oldPlayerLevel,
                        n = cc.director.getDeltaTime(),
                        o = this._oldExp,
                        r = this._currExp;
                    t = Math.min(t, this._playerLevelConfig.length - 1), this.schedule(function() {
                        var i = 0;
                        t > 0 && (i = e._playerLevelConfig[t - 1].Xp);
                        var a = e._playerLevelConfig[t].Xp - i;
                        if (o < r ? (o += Math.ceil((e._currExp - e._oldExp) * n * 3), o = Math.min(o, r), e.ExpProgress.progress = (o - i) / a, e.ExpLabel.string = Math.min(o - i, a) + "/" + a, e.ExpProgress.progress >= 1 && t++) : (o = Math.min(o, r), e.ExpProgress.progress = (o - i) / a, e.ExpLabel.string = o - i + "/" + a, e.unscheduleAllCallbacks()), t >= e._playerLevelConfig.length) return e.ExpProgress.progress = 1, e.ExpLabel.string = Math.min(o - i, a) + "/" + a, void e.unscheduleAllCallbacks()
                    }, n)
                }, t.prototype.SetBtnState = function() {
                    this.HideRightBtn();
                    var e = this.GetChacheLevel();
                    if (h.EZLog.Log(this._currPlayerLevel), h.EZLog.Log(this._currAdventureConfig.Level), _.DataCenter.Instance.GetDataById(C.Adventure_Model, 1), this._currPlayerLevel < this._currAdventureConfig.Level) return this.LabelBtnDisable.string = "idleBattle_main_playerLevel_limit".ToUILocale().Fmt(this._currAdventureConfig.Level), void(this.BtnDisable.node.active = !0);
                    _.DataCenter.Instance.GetIntData(v.UserDataKey.MainLineProgress) <= e || 0 == e ? this.BtnNextLevel.node.active = !0 : this._isNoNextChapter || (this.BtnNextChapter.node.active = !0), this.IsNextLevelBtnUnLock() || (this.BtnNextLevel.node.active = !1);
                    var t = u.UIManager.Instance.GetUIPanel(y.PanelConfig.IdleBattleMainPanel.Path);
                    null != t && 1 == t.node.active ? this.BtnReturn.node.active = !1 : this.BtnReturn.node.active = !0, this.SetNextLevelToggleState()
                }, t.prototype.HideRightBtn = function() {
                    this.BtnNextLevel.node.active = !1, this.BtnDisable.node.active = !1, this.BtnNextChapter.node.active = !1
                }, t.prototype.IsNextLevelBtnUnLock = function() {
                    return _.DataCenter.Instance.GetDataById(C.GameModule_Model, v.GameModuleType.NextLevelBtn).IsUnlocked
                }, t.prototype.SetNextLevelToggleState = function() {
                    this.BtnNextLevel.node.active && L.default.Instance.CheckAutoBattleUnlock(v.GameModuleType.MainLineAutoBattle, b.MapType.MainLine, !0) ? (this.NextLevelToggle.node.active = !0, this.NextLevelToggle.isChecked = !1) : this.NextLevelToggle.node.active = !1
                }, t.prototype.OnBtnNextClick = function() {
                    var e = this;
                    u.UIManager.Instance.BackUIPanel();
                    var t = !1;
                    if (this._BattleData.InBackground && (t = !0), this._BattleData.InBackground) w.UIUtlity.ShowFloatingHint("idleBattle_startNext".ToUILocale()), this.RequestAdventureChallenge(null, t);
                    else {
                        var n = _.DataCenter.Instance.GetIntData(v.UserDataKey.MainLineProgress);
                        u.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattleFormationPanel.Path, function(n) {
                            e.RequestAdventureChallenge(n, t)
                        }, [n])
                    }
                }, t.prototype.RequestAdventureChallenge = function(e, t) {
                    var n = new C.Req_Map_AdventureChallenge,
                        o = _.DataCenter.Instance.GetIntData(v.UserDataKey.MainLineProgress);
                    n.MapLevelId = o, n.Formations = e || [], S.RpcComponent.Instance.Call(n, function(e) {
                        O.BattleManager.Instance.StartPlay(e.Report, null, t), m.Game.EventDispatcher.Emit(P.EventKeys.EVENT_MAINBATTLEANI_REFRESH, b.MapType.MainLine)
                    })
                }, t.prototype.RequestAdventureSettlement = function() {
                    var e = _.DataCenter.Instance.GetIntData(b.UserDataKey.PlayerLevel),
                        t = _.DataCenter.Instance.GetItemCount(v.CommonItemId.Xp),
                        o = new C.Req_Map_BattleSettlement;
                    o.MapType = v.MapType.MainLine, S.RpcComponent.Instance.Call(o, function(o) {
                        if (h.EZLog.Log("\u6311\u6218\u5730\u56feid---\x3e" + o.MapId), h.EZLog.Log("\u65e7\u7684\u73a9\u5bb6\u7b49\u7ea7---\x3e" + o.PlayerLevel), 1 == o.Result) {
                            var i = n.settlement_win_prefab_path;
                            L.default.Instance.ShowWinPanelWrapper(i, r, [e, t])
                        } else i = n.settlement_fail_prefab_path, L.default.Instance.ShowFailPanelWrapper(i, r, [e, t])
                    }.bind(this), function() {}.bind(this)), _.DataCenter.Instance.GetDataById(C.Adventure_Model, 1);
                    var r = _.DataCenter.Instance.GetIntData(v.UserDataKey.MainLineProgress)
                }, t.prototype.OnBtnNextChapter = function() {
                    var e = T.ConfigCacheComponent.Instance.GetAreaIdByMapId(this.GetCurrMapLevelId());
                    this.ResetCache();
                    var t = _.DataCenter.Instance.GetIntData(v.UserDataKey.MainLineProgress),
                        n = T.ConfigCacheComponent.Instance.GetAreaIdByMapId(t);
                    e != n ? m.UIManager.Instance.ShowUIPanel(y.PanelConfig.WorldMapPanel.Path, n) : u.UIManager.Instance.BackUIPanel(), w.UIUtlity.ShowFloatingHint("enterNewChapter".ToUILocale())
                }, t.prototype.OnNextLevelToggle = function() {
                    u.UIManager.Instance.BackUIPanel(), this.RequestAdventureChallenge(null, !0)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._displayRewardPrefab && (m.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), this._displayRewardPrefab = null), null != this._headItemPrefab && m.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), this._headItemPrefab = null, this.unscheduleAllCallbacks()
                }, t.prototype.ShowGuide = function() {
                    if (k.default.Instance.IsInGuide) switch (k.default.Instance.CurrentStep) {
                        case 3106:
                        case 3501:
                        case 3601:
                        case 8501:
                        case 8601:
                        case 14103:
                        case 11501:
                        case 11601:
                        case 12501:
                        case 12601:
                        case 14501:
                        case 14601:
                            k.default.Instance.ShowGuide(this.BtnSure.node);
                            break;
                        case 8106:
                        case 11104:
                        case 12103:
                            k.default.Instance.ShowGuide(this.BtnReturn.node)
                    }
                }, t.settlement_win_prefab_path = "IdleBattlePanel/AdventureSettlementComponent", t.settlement_fail_prefab_path = "SettlementPanel/CommonFailSettlementComponent", t.Cache_Key_Prefeix = "ChapterLastLevel", i([N(cc.Node)], t.prototype, "Content", void 0), i([N(cc.Label)], t.prototype, "LineText", void 0), i([N(cc.Button)], t.prototype, "BtnReturn", void 0), i([N(cc.Button)], t.prototype, "BtnSure", void 0), i([N(cc.Button)], t.prototype, "BtnNextLevel", void 0), i([N(cc.Button)], t.prototype, "BtnDisable", void 0), i([N(cc.Button)], t.prototype, "BtnNextChapter", void 0), i([N(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([N(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([N(cc.Label)], t.prototype, "LabelBtnNextLevel", void 0), i([N(cc.Label)], t.prototype, "LabelBtnDisable", void 0), i([N(cc.Label)], t.prototype, "LabelBtnNextChapter", void 0), i([N(c.CustomRichText)], t.prototype, "BattleName", void 0), i([N(cc.Node)], t.prototype, "PlayerInfoNode", void 0), i([N(cc.Label)], t.prototype, "LevelLabel", void 0), i([N(cc.Label)], t.prototype, "ExpLabel", void 0), i([N(M.default)], t.prototype, "ExpProgress", void 0), i([N(cc.Node)], t.prototype, "HeadRoot", void 0), i([N(cc.Toggle)], t.prototype, "NextLevelToggle", void 0), i([N(cc.Label)], t.prototype, "NextLevelHintLabel", void 0), n = i([B], t)
            }(l.default);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Panel/MainUIPanel": "MainUIPanel",
        "./CustomProgressBar": "CustomProgressBar",
        "./CustomRichText": "CustomRichText",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./HeadComponent": "HeadComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    AgeReminderComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "32adf1CralHV7flxFvmTsVG", "AgeReminderComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Panel/AgreementPanel"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AgeReminderSprite = null, t.AgeReminderLabel = null, t
                }
                return r(t, e), t.prototype.start = function() {
                    this.AgeReminderLabel.string = "ageReminder_text".ToUILocale(), this.LoadAgeReminderSprite(), this.AgeReminderSprite.node.on(cc.Node.EventType.TOUCH_END, this.OnAgeReminderTouchEnd, this)
                }, t.prototype.LoadAgeReminderSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._ageReminderSpriteFrame ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset("MultilangSinglePng/reminderAge", cc.SpriteFrame)]);
                                case 1:
                                    if (e._ageReminderSpriteFrame = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._ageReminderSpriteFrame), [2];
                                    this.AgeReminderSprite.spriteFrame = this._ageReminderSpriteFrame, t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnAgeReminderTouchEnd = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.AgreementPanel.Path, u.AgreementType.AgeReminder)
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._ageReminderSpriteFrame)
                }, i([h(cc.Sprite)], t.prototype, "AgeReminderSprite", void 0), i([h(cc.Label)], t.prototype, "AgeReminderLabel", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Panel/AgreementPanel": "AgreementPanel"
    }],
    AgreementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b72bd2n43BN8a7GxGwmCrJt", "AgreementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../Panel/AgreementPanel"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Toggle = null, t.LabelArr = [], t
                }
                return r(t, e), t.prototype.start = function() {
                    this.Toggle.isChecked = !1, this.LabelArr[0].string = "agreement_toggleLabel_1".ToUILocale(), this.LabelArr[1].string = "agreement_toggleLabel_2".ToUILocale(), this.LabelArr[2].string = "agreement_toggleLabel_3".ToUILocale(), this.LabelArr[3].string = "agreement_toggleLabel_4".ToUILocale(), this.LabelArr[1].node.on(cc.Node.EventType.TOUCH_END, this.OnTouchUserAgreement, this), this.LabelArr[3].node.on(cc.Node.EventType.TOUCH_END, this.OnTouchPrivacyAgreement, this)
                }, t.prototype.OnTouchUserAgreement = function() {
                    a.UIManager.Instance.ShowUIPanel(s.PanelConfig.AgreementPanel.Path, l.AgreementType.UserAgreement, this.SelectToggle.bind(this))
                }, t.prototype.OnTouchPrivacyAgreement = function() {
                    a.UIManager.Instance.ShowUIPanel(s.PanelConfig.AgreementPanel.Path, l.AgreementType.PrivacyAgreement, this.SelectToggle.bind(this))
                }, t.prototype.SelectToggle = function() {
                    this.Toggle.isChecked = !0
                }, Object.defineProperty(t.prototype, "CheckState", {
                    get: function() {
                        return this.Toggle.isChecked
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([p(cc.Toggle)], t.prototype, "Toggle", void 0), i([p(cc.Label)], t.prototype, "LabelArr", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Panel/AgreementPanel": "AgreementPanel"
    }],
    AgreementPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b4bc2rMscVF8JcuTyYmT4QD", "AgreementPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AgreementType = void 0;
        var a, s = e("../../../EZFramework/EZFramework"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property;
        (function(e) {
            e[e.UserAgreement = 0] = "UserAgreement", e[e.PrivacyAgreement = 1] = "PrivacyAgreement", e[e.AgeReminder = 2] = "AgeReminder", e[e.AntiAddiction = 3] = "AntiAddiction", e[e.Over18 = 4] = "Over18", e[e.Under18 = 5] = "Under18", e[e.Under16 = 6] = "Under16", e[e.Under18NotInTime = 7] = "Under18NotInTime", e[e.Under18InTime = 8] = "Under18InTime", e[e.CostOver100 = 9] = "CostOver100", e[e.AllCostOver400 = 10] = "AllCostOver400"
        })(a = n.AgreementType || (n.AgreementType = {}));
        var p = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new s.UIPanelType(s.UINodeType.PopUp, !1), t.Title = null, t.ScrollView = null, t.UserAgreementNode = null, t.AgreementTitleLabel = null, t.TagLabel = null, t.TextLabel = null, t.OkButton = null, t.OkButtonLabel = null, t.PrivacyAgreementNode = null, t.TagLabel2 = null, t.TextLabel2 = null, t.DateLabel = null, t.AgeHint = null, t.TextLabel3 = null, t.AgreementLabel = null, t
            }
            return r(t, e), t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.OkButton.node.on("click", this.OnOkButtonClick, this), this.AgreementLabel.node.on(cc.Node.EventType.TOUCH_END, this.OnLabelTouchEnd, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._agreementType = t[0], this._callBack = t[1], this._panelStack = [], this._panelStack.push(this._agreementType)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.RefreshPanel()
            }, t.prototype.RefreshPanel = function() {
                switch (this.AgreementLabel.node.parent.active = !1, this._agreementType) {
                    case a.UserAgreement:
                        this.ScrollView.content = this.UserAgreementNode, this.UserAgreementNode.active = !0, this.Title.string = "agreement_user_title".ToUILocale(), this.AgreementTitleLabel.string = "agreement_user_title2".ToUILocale(), this.TagLabel.string = "agreement_foreword".ToUILocale(), this.TextLabel.string = "agreement_user_text".ToUILocale(), this.OkButtonLabel.string = "agreement_ok".ToUILocale();
                        break;
                    case a.PrivacyAgreement:
                        this.ScrollView.content = this.PrivacyAgreementNode, this.PrivacyAgreementNode.active = !0, this.Title.string = "agreement_privacy_title".ToUILocale(), this.TagLabel2.string = "agreement_foreword".ToUILocale(), this.TextLabel2.string = "agreement_privacy_text".ToUILocale(), this.DateLabel.string = "agreement_privacy_date".ToUILocale(), this.OkButtonLabel.string = "agreement_ok".ToUILocale();
                        break;
                    case a.AgeReminder:
                        this.ShowAgeHint("ageReminder_title", "agreement_ageReminder_text", "ok");
                        break;
                    case a.AntiAddiction:
                        this.ShowAgeHint("agreement_antiAddiction_title", "agreement_antiAddiction_text", "ok");
                        break;
                    case a.Over18:
                        this.ShowAgeHint("hint", "agreement_over18_text", "ok");
                        break;
                    case a.Under18:
                    case a.Under16:
                        this.ShowAgeHint("hint", "agreement_under18_text", "ok"), this.AgreementLabel.node.parent.active = !0, this.AgreementLabel.string = "agreement_under18Name".ToUILocale();
                        break;
                    case a.Under18NotInTime:
                        this.ShowAgeHint("hint", "agreement_under18NotInTime_text", "ok");
                        break;
                    case a.Under18InTime:
                        this.ShowAgeHint("hint", "agreement_under18InTime_text", "ok");
                        break;
                    case a.CostOver100:
                        this.ShowAgeHint("hint", "agreement_costOver_text", "ok");
                        break;
                    case a.AllCostOver400:
                        this.ShowAgeHint("hint", "agreement_allCostOver_text", "ok")
                }
            }, t.prototype.ShowAgeHint = function(e, t, n) {
                this.ScrollView.content = this.AgeHint, this.AgeHint.active = !0, this.Title.string = e.ToUILocale(), this.TextLabel3.string = t.ToUILocale(), this.OkButtonLabel.string = n.ToUILocale()
            }, t.prototype.OnOkButtonClick = function() {
                this._callBack && this._callBack(), this._panelStack.length > 1 ? (this._panelStack.pop(), this._agreementType = this._panelStack[this._panelStack.length - 1], this.RefreshPanel()) : this.Close()
            }, t.prototype.OnLabelTouchEnd = function() {
                this._agreementType = a.AntiAddiction, this._panelStack.push(this._agreementType), this.RefreshPanel()
            }, i([u(cc.Label)], t.prototype, "Title", void 0), i([u(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([u(cc.Node)], t.prototype, "UserAgreementNode", void 0), i([u(cc.Label)], t.prototype, "AgreementTitleLabel", void 0), i([u(cc.Label)], t.prototype, "TagLabel", void 0), i([u(cc.Label)], t.prototype, "TextLabel", void 0), i([u(cc.Button)], t.prototype, "OkButton", void 0), i([u(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([u(cc.Node)], t.prototype, "PrivacyAgreementNode", void 0), i([u(cc.Label)], t.prototype, "TagLabel2", void 0), i([u(cc.Label)], t.prototype, "TextLabel2", void 0), i([u(cc.Label)], t.prototype, "DateLabel", void 0), i([u(cc.Node)], t.prototype, "AgeHint", void 0), i([u(cc.Label)], t.prototype, "TextLabel3", void 0), i([u(cc.Label)], t.prototype, "AgreementLabel", void 0), i([c], t)
        }(s.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    AllUserImpactFightRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "33c406itqBAW67nJ58K2SMI", "AllUserImpactFightRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/RankDetailComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1, !1), t.Title = null, t.CenterNode = null, t.ReturnButton = null, t._rankDatas = [], t._myRankData = null, t._myRank = 0, t._activityId = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent")];
                                case 1:
                                    return t._rankPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUI()
                }, t.prototype.SetUI = function() {
                    this._rank_detail_item.SetUI(this._activityId, this._rankDatas, this._myRank, this._myRankData, !1, !0)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rankDatas = t[0], this._myRank = t[1], this._myRankData = t[2], this._activityId = t[3]
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "allUserImpactRank_fightRank".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._rankPrefab);
                    e.setParent(this.CenterNode), this._rank_detail_item = e.getComponent(c.default)
                }, t.prototype.OnEvent = function() {
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.OnReturnButtonClick = function() {
                    this.Close()
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "CenterNode", void 0), i([d(cc.Button)], t.prototype, "ReturnButton", void 0), i([p], t)
            }(l.BaseUIFullScreenPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    AllUserImpactRankListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2934dF7srRA0INd6xLYAiUo", "AllUserImpactRankListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../Components/ItemComponent"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.Title = null, t.MyReward = null, t._itemNodes = [], t._itemPrefab = null, t._rewardData = null, t._myRank = 0, t._ranks = [], t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.initData = function(e, t, n) {
                    this._rewardData = e, this._myRank = t, this._ranks = n, this.InitNode(), this.SetInfo(), this.SetItems()
                }, t.prototype.InitNode = function() {
                    this.MyReward.active = !1, this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    if (this._ranks.length > 1) {
                        if (0 == this._ranks[1]) this.Title.string = "allUserImpactRank_rank_get".ToUILocale().Fmt(this._ranks[0] - 1);
                        else {
                            var e = this._ranks[0] == this._ranks[1] ? this._ranks[0].toString() : this._ranks[0] + "-" + this._ranks[1];
                            this.Title.string = "allUserImpactRank_reveive".ToUILocale().Fmt(e)
                        }
                        this.MyReward.active = this._myRank >= this._ranks[0] && (this._myRank <= this._ranks[1] || 0 == this._ranks[1])
                    }
                }, t.prototype.SetItems = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : [4, d.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._assets.push(e), this._itemPrefab = e, n.label = 2;
                                case 2:
                                    return this._rewardData.Rewards.forEach(function(e, n) {
                                        var o = e.Items[0],
                                            r = e.Items[1];
                                        if (t._itemNodes[n]) t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(p.ItemComponent).Init({
                                            ItemId: o,
                                            Count: r
                                        }, p.ItemComponentType.ItemCommon);
                                        else {
                                            var i = cc.instantiate(t._itemPrefab);
                                            i.active = !0, t._itemNodes[n] = i, t._itemNodes[n].parent = t.ItemNode, t._itemNodes[n].getComponent(p.ItemComponent).Init({
                                                ItemId: o,
                                                Count: r
                                            }, p.ItemComponentType.ItemCommon)
                                        }
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && u.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._itemNodes = [], this._assets.forEach(function(e) {
                        d.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([g(cc.Node)], t.prototype, "ItemNode", void 0), i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Node)], t.prototype, "MyReward", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllUserImpactRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "74766c4VzlE67laGClqwJI6", "AllUserImpactRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/CustomLayout"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./AllUserImpactRankListItem"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../../Consts/Consts"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.ActivityTimeLabel = null, t.TimeLabel = null, t.GiftButton = null, t.GiftLabel = null, t.CustomLayout = null, t.MyRankLabel = null, t.RankLabel = null, t.RankButton = null, t.RankBtnLabel = null, t.RuleButton = null, t.ReturnButton = null, t.RankPowerLabel = null, t._cellPrefab = null, t._isLayoutInit = !1, t._deadLine = 0, t._rankData = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._cellPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserImpactRank/SubItems/AllUserImpactRankListItem", cc.Prefab)]);
                                case 1:
                                    e._cellPrefab = t.sent(), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    n && (this._configData = c.DataCenter.Instance.ActivityConfigs[n], this._deadLine = y.default.Instance.ComputeExtraShowDeadTime(this._configData.Common), this.TitleLabel.string = this._configData.Common.Title), t[1] && (this._rankData = t[1])
                }, t.prototype.InitUI = function() {
                    this.GiftLabel.string = "allUserImpactRank_gift".ToUILocale(), this.MyRankLabel.string = "allUserImpactRank_myRank".ToUILocale(), this.RankBtnLabel.string = "allUserImpactRank_checkRank".ToUILocale(), this.RankPowerLabel.string = "heroDungeon_rank_power".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), m.RedDotManager.Instance.BindInstance(this.GiftButton.node, m.RedDotManager.Instance.InstanceRedDot.AllUserImpactRankGiftNode, {
                        Value1: this._configData._id
                    }), m.RedDotManager.Instance.RefreshInstanceRedDotNode(m.RedDotManager.Instance.InstanceRedDot.AllUserImpactRankNode, {
                        Value1: this._configData._id
                    }), t || this.SetUIContetn()
                }, t.prototype.SetUIContetn = function() {
                    this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1), this.SetMyRank(), this.InitCustomLayout()
                }, t.prototype.CountDownActivityTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e,
                        n = 2 * I.Etc.HourDuration + I.Etc.DayDuration * this._configData.Common.ExtraShowDays;
                    t > n ? (this.ActivityTimeLabel.string = "gift_remainderTime".ToUILocale(), this.TimeLabel.string = y.default.ActivityTimeLeftFormat(t - n)) : (this.ActivityTimeLabel.string = "activityTime_show".ToUILocale(), this.TimeLabel.string = y.default.ActivityTimeLeftFormat(t)), t < 0 && l.UIManager.Instance.BackUIPanel()
                }, t.prototype.SetMyRank = function() {
                    this._rankData && this._rankData.MyRank && this._rankData.MyRank <= 100 ? this.RankLabel.string = this._rankData.MyRank.toString() : this.RankLabel.string = "100+"
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab));
                    var e = this._configData._RankRewards.length;
                    this.CustomLayout.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = e.getComponent(g.default),
                            r = n._configData._RankRewards[t],
                            i = n._configData._RankRewards[t].Rank;
                        n._rankData && n._rankData.MyRank ? o.initData(r, n._rankData.MyRank, i) : o.initData(r, 0, i)
                    })
                }, t.prototype.GetRankDesc = function(e) {
                    var t = 0,
                        n = 0,
                        o = this._configData.Rewards,
                        r = o.findIndex(function(t) {
                            return t.Id == e
                        });
                    if (-1 != r) {
                        if (r > 0) {
                            var i = o[r - 1];
                            o[r].Rank - i.Rank > 1 ? (t = i.Rank + 1, n = o[r].Rank) : (t = o[r].Rank, n = o[r].Rank)
                        } else t = 1, n = 1;
                        return [t, n]
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "allUserImpactRank_rule_main".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["allUserImpactRank_rule_content".ToUILocale()]
                    };
                    p.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnGiftButtonClick = function() {
                    h.UIManager.Instance.ShowUIPanel(f.PanelConfig.AllUserImpactRewardPanel.Path, this._configData)
                }, t.prototype.OnRankButtonClick = function() {
                    this._rankData && h.UIManager.Instance.ShowUIPanel(f.PanelConfig.AllUserImpactFightRankPanel.Path, this._rankData.Rows, this._rankData.MyRank, this._rankData.MyRankData, this._configData._id)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([v(cc.Label)], t.prototype, "TitleLabel", void 0), i([v(cc.Label)], t.prototype, "ActivityTimeLabel", void 0), i([v(cc.Label)], t.prototype, "TimeLabel", void 0), i([v(cc.Button)], t.prototype, "GiftButton", void 0), i([v(cc.Label)], t.prototype, "GiftLabel", void 0), i([v(d.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Label)], t.prototype, "MyRankLabel", void 0), i([v(cc.Label)], t.prototype, "RankLabel", void 0), i([v(cc.Button)], t.prototype, "RankButton", void 0), i([v(cc.Label)], t.prototype, "RankBtnLabel", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([v(cc.Label)], t.prototype, "RankPowerLabel", void 0), i([C], t)
            }(l.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./AllUserImpactRankListItem": "AllUserImpactRankListItem"
    }],
    AllUserImpactRewardListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1d44aGagZ9Gyp+LmlCdhs7A", "AllUserImpactRewardListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/ItemComponent"),
            f = e("../../../Consts/Etc"),
            y = e("../../Components/Components"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.TitleRichText = null, t.ValueRichText = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.CantButton = null, t.CantLabel = null, t.ReceivedImage = null, t._activityId = 0, t._itemNodes = [], t._itemPrefab = null, t._data = null, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.ReceiveButton.node.off("click", this.OnReceiveButtonClick, this)
                }, t.prototype.initData = function(e, t) {
                    this._data = e, this._activityId = t, this.InitNode(), this.SetInfo(), this.SetBtns(), this.SetItems()
                }, t.prototype.InitNode = function() {
                    this.ReceiveButton.node.active = !1, this.CantButton.node.active = !1, this.ReceivedImage.active = !1, this.ReceiveLabel.string = "receive".ToUILocale(), this.CantLabel.string = "allUserImpactRank_NoComplete".ToUILocale(), this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    this._data.Condition.length > 1 && (this.TitleRichText.string = "<outline color=#202434 width=3>" + I.default.GetTaskDesc(this._data) + "</outline>");
                    var e = this._activityId * f.Etc.Multiplier + this._data.Id,
                        t = y.DataCenter.Instance.GetDataById(u.UserTask_Model, e),
                        n = t.Progress < this._data.TotalCount ? "#ffffff" : "33ff8e";
                    this.ValueRichText.string = "<color=" + n + ">" + t.Progress + "/" + this._data.TotalCount + "</c>"
                }, t.prototype.SetItems = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : [4, g.AssetsManager.Instance.LoadAsset(m.BundlePath.ItemComponent)];
                                case 1:
                                    if (e = r.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._assets.push(e), this._itemPrefab = e, r.label = 2;
                                case 2:
                                    return t = this._activityId * f.Etc.Multiplier + this._data.Id, n = y.DataCenter.Instance.GetDataById(u.UserTask_Model, t), this._data.Rewards.forEach(function(e, t) {
                                        var r = e.Items[0],
                                            i = e.Items[1];
                                        if (!o._itemNodes[t]) {
                                            var a = cc.instantiate(o._itemPrefab);
                                            o._itemNodes[t] = a, o._itemNodes[t].parent = o.ItemNode
                                        }
                                        o._itemNodes[t].active = !0, o._itemNodes[t].getComponent(h.ItemComponent).Init({
                                            ItemId: r,
                                            Count: i
                                        }, h.ItemComponentType.ItemCommon), o._itemNodes[t].getComponent(h.ItemComponent).SetSelectFlagState(n.IsCompleted)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetBtns = function() {
                    var e = this._activityId * f.Etc.Multiplier + this._data.Id,
                        t = y.DataCenter.Instance.GetDataById(u.UserTask_Model, e);
                    this.ReceivedImage.active = t.IsCompleted, t.IsCompleted || (this.ReceiveButton.node.active = t.Progress >= this._data.TotalCount, this.CantButton.node.active = t.Progress < this._data.TotalCount)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = new u.Req_Activity_CommonTaskReward;
                    e.ActivityId = this._activityId;
                    var t = c.DataCenter.Instance.ActivityConfigs[e.ActivityId];
                    e.TaskIds = [];
                    for (var n = 0, o = t._Tasks; n < o.length; n++) {
                        var r = o[n],
                            i = c.DataCenter.Instance.GetDataById(u.UserTask_Model, t._id * f.Etc.Multiplier + r.Id);
                        if (i) {
                            if (i.IsCompleted || !i.Progress || i.Progress < r.TotalCount) continue;
                            e.TaskIds.push(r.Id)
                        }
                    }
                    c.RpcComponent.Instance.Call(e, function(e) {
                        l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_ALL_USER_TASK_REFRESH), d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        g.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemNodes = []
                }, i([v(cc.Node)], t.prototype, "ItemNode", void 0), i([v(cc.RichText)], t.prototype, "TitleRichText", void 0), i([v(cc.RichText)], t.prototype, "ValueRichText", void 0), i([v(cc.Button)], t.prototype, "ReceiveButton", void 0), i([v(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([v(cc.Button)], t.prototype, "CantButton", void 0), i([v(cc.Label)], t.prototype, "CantLabel", void 0), i([v(cc.Node)], t.prototype, "ReceivedImage", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllUserImpactRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9333atf1fJMjqM7FvLzo55J", "AllUserImpactRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/CustomLayout"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("./AllUserImpactRewardListItem"),
            h = e("../../../Consts/Etc"),
            f = e("../../Components/Components"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp), t.Tittle = null, t.CustomLayout = null, t._cellPrefab = null, t._isLayoutInit = !1, t._configData = null, t._tasks = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_ALL_USER_TASK_REFRESH, this.UpdateScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ALL_USER_TASK_REFRESH, this.UpdateScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserImpactRank/SubItems/AllUserImpactRewardListItem", cc.Prefab)];
                                case 1:
                                    return t._cellPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0]
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "allUserImpactRank_gift".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.InitCustomLayout()
                }, t.prototype.UpdateScrollView = function() {
                    this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab)), this.SortTasks();
                    var e = this._configData._Tasks.length;
                    this.CustomLayout.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o, r = e.getComponent(d.default);
                        o = n._tasks[t], r.initData(o, n._configData._id)
                    })
                }, t.prototype.SortTasks = function() {
                    var e = this;
                    this._tasks = this._configData._Tasks, this._tasks.sort(function(t, n) {
                        var o = e._configData._id * h.Etc.Multiplier + t.Id,
                            r = f.DataCenter.Instance.GetDataById(c.UserTask_Model, o),
                            i = e._configData._id * h.Etc.Multiplier + n.Id,
                            a = f.DataCenter.Instance.GetDataById(c.UserTask_Model, i);
                        if (r && a) return r.IsCompleted && !a.IsCompleted ? 1 : !r.IsCompleted && a.IsCompleted ? -1 : r.Progress >= t.TotalCount && a.Progress < n.TotalCount ? -1 : r.Progress < t.TotalCount && a.Progress >= n.TotalCount ? 1 : t.SortId - n.SortId
                    })
                }, i([m(cc.Label)], t.prototype, "Tittle", void 0), i([m(u.default)], t.prototype, "CustomLayout", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "./AllUserImpactRewardListItem": "AllUserImpactRewardListItem"
    }],
    AllUserPuzzleExchangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "89e3cFU1dNE4YTUxnEiprv6", "AllUserPuzzleExchangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("./AllUserPuzzleSetItem"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Components/Components"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Content = null, t.SelectLabel = null, t.SureButton = null, t.SureLabel = null, t._configData = null, t._setPrefab = null, t._selectIds = [], t._puzzleNodes = [], t._needPuzzles = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ALLUSERPUZZLE_EXCHANGE, this.OnSelectClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ALLUSERPUZZLE_EXCHANGE, this.OnSelectClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserPuzzle/SubItems/AllUserPuzzleSetItem", cc.Prefab)];
                                case 1:
                                    return t._setPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "puzzle_exchange".ToUILocale(), this.SureLabel.string = "ok".ToUILocale(), this.SureButton.node.on("click", this.OnSureButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._configData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.SetUIContent(), [2]
                        })
                    })
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetInfo(), this.SetExchange()
                }, t.prototype.InitNodes = function() {
                    this._puzzleNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    var e = this._selectIds.length,
                        t = f.DataCenter.Instance.GetItemCount(this._configData.CustomPart.CommonPuzzle);
                    this.SelectLabel.string = "puzzle_exchange_what".ToUILocale().Fmt(e, t)
                }, t.prototype.SetExchange = function() {
                    var e = this;
                    this._configData.__Blocks.forEach(function(t, n) {
                        if (!e._puzzleNodes[n]) {
                            var o = cc.instantiate(e._setPrefab);
                            o.parent = e.Content, e._puzzleNodes[n] = o
                        }
                        e._puzzleNodes[n].active = !0, e._puzzleNodes[n].getComponent(p.default).InitData(t, 3, e._configData._id), e._puzzleNodes[n].getComponent(p.default).SetToggle(e._selectIds.indexOf(t.Id) > -1)
                    })
                }, t.prototype.OnSelectClick = function(e) {
                    var t = this._selectIds.indexOf(e);
                    if (t > -1) this._selectIds.splice(t, 1);
                    else {
                        var n = f.DataCenter.Instance.GetItemCount(this._configData.CustomPart.CommonPuzzle);
                        if (!(this._selectIds.length < n)) return void h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._configData.CustomPart.CommonPuzzle.ToItemName()));
                        this._selectIds.push(e)
                    }
                    this.SetUIContent()
                }, t.prototype.OnSureButtonClick = function() {
                    var e = this;
                    if (this._selectIds.length > 0)
                        if (f.DataCenter.Instance.IsItemEnough(this._configData.CustomPart.CommonPuzzle, this._selectIds.length)) {
                            var t = new c.Req_Activity_AllUserPuzzleDisplace;
                            t.ActivityId = this._configData._id, t.Ids = this._selectIds, u.RpcComponent.Instance.Call(t, function(t) {
                                e.SetUIContent(), h.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                            })
                        } else h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._configData.CustomPart.CommonPuzzle.ToItemName()));
                    else h.UIUtlity.ShowFloatingHint("puzzle_exchange_which".ToUILocale())
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Node)], t.prototype, "Content", void 0), i([m(cc.Label)], t.prototype, "SelectLabel", void 0), i([m(cc.Button)], t.prototype, "SureButton", void 0), i([m(cc.Label)], t.prototype, "SureLabel", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AllUserPuzzleSetItem": "AllUserPuzzleSetItem"
    }],
    AllUserPuzzleGivingItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e0397q4XPRKGIb4TrFl0m7P", "AllUserPuzzleGivingItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.NumLabel = null, t.Toggle = null, t.ClickButton = null, t._icCheck = !1, t._data = null, t._selectIds = [], t._itemPrefab = null, t._itemNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ClickButton.node.on("click", this.OnClickSelf, this)
                }, t.prototype.onDisable = function() {
                    this.ClickButton.node.off("click", this.OnClickSelf, this)
                }, t.prototype.InitData = function(e, t) {
                    this._data = e, this._selectIds = t, this._icCheck = t.indexOf(e.Id) > -1, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.parent = this.ItemNode), t = d.DataCenter.Instance.GetItemCount(this._data.ItemId), this._itemNode.getComponent(p.ItemComponent).Init({
                                        ItemId: this._data.ItemId,
                                        Count: t
                                    }, p.ItemComponentType.ItemCommon), this.NumLabel.string = this._data.Id.toString(), this.Toggle.isChecked = this._icCheck, [2]
                            }
                        })
                    })
                }, t.prototype.OnClickSelf = function() {
                    l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_ALLUSERPUZZLE_SELECT, this._data.Id)
                }, t.prototype.onDestroy = function() {
                    this._itemPrefab && c.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, i([g(cc.Node)], t.prototype, "ItemNode", void 0), i([g(cc.Label)], t.prototype, "NumLabel", void 0), i([g(cc.Toggle)], t.prototype, "Toggle", void 0), i([g(cc.Button)], t.prototype, "ClickButton", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllUserPuzzleGivingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "006f29htV9Kb6sajeW8nHa7", "AllUserPuzzleGivingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Components/DataCenter"),
            y = e("./AllUserPuzzleGivingItem"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/CustomLayout"),
            I = e("./AllUserPuzzleNeedItem"),
            _ = e("./AllUserPuzzleNumItem"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../Components/ItemComponent"),
            b = e("../../Components/Components"),
            S = e("../../../../Proto/Static/ConfigProto"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.SelectLabel = null, t.GetLabel = null, t.GetButton = null, t.SelectFriendLabel = null, t.Content1 = null, t.EmptyLabel = null, t.CustomLayout = null, t.EmptyFriendLabel = null, t.MyNeedRichText = null, t.NumsNode = null, t.SetLabel = null, t.SetButton = null, t.DailyTitle = null, t.ItemContent = null, t.FriendNumRichText = null, t.CantLabel = null, t.CantButton = null, t.ReceiveLabel = null, t.ReceiveButton = null, t.HasReceiveNode = null, t._itemPrefab = null, t._puzzlePrefab = null, t._puzzleGivePrefab = null, t._puzzleNumPrefab = null, t._configData = null, t._itemNodes = [], t._puzzleNodes = [], t._puzzleNumNodes = [], t._selectIds = [], t._data = null, t._isInit = !1, t._targetUid = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ALLUSERPUZZLE_SELECT, this.OnSelcetPuzzle, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_ALLUSERPUZZLE_GIVE, this.OnGivePuzzle, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ALLUSERPUZZLE_SELECT, this.OnSelcetPuzzle, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ALLUSERPUZZLE_GIVE, this.OnGivePuzzle, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserPuzzle/SubItems/AllUserPuzzleGivingItem", cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserPuzzle/SubItems/AllUserPuzzleNeedItem", cc.Prefab), this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserPuzzle/SubItems/AllUserPuzzleNumItem", cc.Prefab)]).then(function(e) {
                                        t._puzzlePrefab = e[0], t._puzzleGivePrefab = e[1], t._itemPrefab = e[2], t._puzzleNumPrefab = e[3]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "puzzle_give".ToUILocale(), this.GetLabel.string = "puzzle_get_item".ToUILocale(), this.SelectFriendLabel.string = "puzzle_select_friend".ToUILocale(), this.MyNeedRichText.string = "puzzle_my_send".ToUILocale(), this.SetLabel.string = "puzzle_set".ToUILocale(), this.CantLabel.string = "allUserImpactRank_NoComplete".ToUILocale(), this.ReceiveLabel.string = "receive".ToUILocale(), this.EmptyLabel.string = "puzzle_empty_item".ToUILocale(), this.EmptyFriendLabel.string = "puzzle_no_friend".ToUILocale(), this.GetButton.node.on("click", this.OnGetButtonClick, this), this.SetButton.node.on("click", this.OnSetButtonClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._configData = t[0], this._data = t[1]
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.SetUIContent(), [2]
                        })
                    })
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.CheckSelectIds(), this.SetPuzzles(), this.SetSelectPuzzleLabel(), this.InitGiveFrienfLayout(), this.SetMyNeed(), this.SetTaskNode()
                }, t.prototype.InitNodes = function() {
                    this._puzzleNodes.forEach(function(e) {
                        e.active = !1
                    }), this._puzzleNumNodes.forEach(function(e) {
                        e.active = !1
                    }), this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetSelectPuzzleLabel = function() {
                    this.SelectLabel.string = "puzzle_select_item".ToUILocale().Fmt(this._selectIds.length, this._selectIds.length)
                }, t.prototype.CheckSelectIds = function() {
                    if (this._selectIds.length)
                        for (var e = this._selectIds.length - 1; e >= 0; e--) {
                            var t = this.GetItemIdById(this._selectIds[e]);
                            t && (f.DataCenter.Instance.GetItemCount(t) || this._selectIds.splice(e, 1))
                        }
                }, t.prototype.SetPuzzles = function() {
                    var e = this,
                        t = [];
                    this._configData.__Blocks.forEach(function(e) {
                        f.DataCenter.Instance.GetItemCount(e.ItemId) > 0 && t.push(e)
                    }), this.EmptyLabel.node.active = 0 == t.length, t.forEach(function(t, n) {
                        if (!e._puzzleNodes[n]) {
                            var o = cc.instantiate(e._puzzlePrefab);
                            o.parent = e.Content1, e._puzzleNodes[n] = o
                        }
                        e._puzzleNodes[n].active = !0, e._puzzleNodes[n].getComponent(y.default).InitData(t, e._selectIds)
                    })
                }, t.prototype.InitGiveFrienfLayout = function() {
                    this._isInit || (this._isInit = !0, this.CustomLayout.Init(this._puzzleGivePrefab));
                    var e = this._data.Users.length;
                    this.EmptyFriendLabel.node.active = 0 == e;
                    var t = this.GetTargetIndex();
                    e && this.CustomLayout.RenderLayOut(e, t)
                }, t.prototype.GetTargetIndex = function() {
                    var e = this,
                        t = this._data.Users.findIndex(function(t) {
                            return t.Uid == e._targetUid
                        });
                    return t > -1 && t - 2 > 0 ? t - 2 : 0
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = n._data.Users[t];
                        o && e.getComponent(I.default).InitData(o)
                    })
                }, t.prototype.SetMyNeed = function() {
                    var e = this,
                        t = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id);
                    t && t.IntArray && t.IntArray.forEach(function(t, n) {
                        if (!e._puzzleNumNodes[n]) {
                            var o = cc.instantiate(e._puzzleNumPrefab);
                            o.parent = e.NumsNode, e._puzzleNumNodes[n] = o, e._puzzleNumNodes[n].active = !1
                        }
                        t && (e._puzzleNumNodes[n].active = !0, e._puzzleNumNodes[n].getComponent(_.default).InitUI(t))
                    })
                }, t.prototype.SetTaskNode = function() {
                    var e = this,
                        t = this.GetPuzzleTasks();
                    if (t.length) {
                        var n = t[0],
                            o = f.DataCenter.Instance.GetDataById(c.UserTask_Model, 1e4 * this._configData._id + n.Id),
                            r = o && o.IsCompleted,
                            i = 0 | (o && o.Progress),
                            a = i >= n.TotalCount ? "#ffffff" : "#ff0000";
                        this.DailyTitle.string = C.default.GetTaskDesc(n), this.FriendNumRichText.string = "<color={0}>{1}</c><color=#ffffff>/{2}</c>".Fmt(a, i, n.TotalCount), this.CantButton.node.active = i < n.TotalCount && !r, this.ReceiveButton.node.active = i >= n.TotalCount && !r, this.HasReceiveNode.active = r, n.Rewards.forEach(function(t, n) {
                            if (!e._itemNodes[n]) {
                                var o = cc.instantiate(e._itemPrefab);
                                o.parent = e.ItemContent, e._itemNodes[n] = o
                            }
                            e._itemNodes[n].active = !0;
                            var i = e._itemNodes[n].getComponent(v.ItemComponent);
                            i.Init({
                                ItemId: t.Items[0],
                                Count: t.Items[1]
                            }, v.ItemComponentType.ItemCommon), i.SetSelectFlagState(r)
                        })
                    }
                }, t.prototype.GetPuzzleTasks = function() {
                    var e = [];
                    return this._configData._Tasks.forEach(function(t) {
                        t.Condition[0] == p.TaskConditionType.AllUserPuzzleGiveBlock && e.push(t)
                    }), e
                }, t.prototype.GetItemIdById = function(e) {
                    var t = 0,
                        n = this._configData.__Blocks.findIndex(function(t) {
                            return t.Id == e
                        });
                    return n > -1 && (t = this._configData.__Blocks[n].ItemId), t
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContent.children.indexOf(t) && g.UIUtlity.ShowItemTip(t.getComponent(v.ItemComponent).ItemId, t)
                }, t.prototype.OnGetButtonClick = function() {
                    if (this._configData.Common.JumpId) {
                        var e = b.ConfigDataComponent.Instance.GetConfigById(S.ItemGetWay_Config, this._configData.Common.JumpId);
                        C.default.Instance.ShowActivityPanel(e.PanelInfo[0], e.PanelInfo[1])
                    }
                }, t.prototype.OnSetButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllUserPuzzleSetPanel.Path, this._configData)
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = this.GetPuzzleTasks();
                    if (e.length) {
                        var t = e[0],
                            n = new c.Req_Activity_CommonTaskReward;
                        n.ActivityId = this._configData._id, n.TaskIds = [t.Id], u.RpcComponent.Instance.Call(n, function(e) {
                            g.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnSelcetPuzzle = function(e) {
                    var t = this._selectIds.indexOf(e);
                    t > -1 ? this._selectIds.splice(t, 1) : this._selectIds.push(e), this.SetSelectPuzzleLabel(), this.SetPuzzles()
                }, t.prototype.OnGivePuzzle = function(e) {
                    var t = this;
                    if (this._selectIds.length) {
                        this._targetUid = e;
                        for (var n = 0; n < this._selectIds.length; n++) {
                            var o = this.GetItemIdById(this._selectIds[n]);
                            if (o && !f.DataCenter.Instance.GetItemCount(o)) return void g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._selectIds[n].ToItemName()))
                        }
                        var r = new c.Req_Activity_AllUserPuzzleGive;
                        r.ActivityId = this._configData._id, r.TargetUid = e, r.Blocks = this._selectIds, u.RpcComponent.Instance.Call(r, function() {
                            g.UIUtlity.ShowFloatingHint("puzzle_success".ToUILocale()), t._selectIds = [], t.SetUIContent()
                        })
                    } else g.UIUtlity.ShowFloatingHint("puzzle_select_first".ToUILocale())
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Label)], t.prototype, "SelectLabel", void 0), i([A(cc.Label)], t.prototype, "GetLabel", void 0), i([A(cc.Button)], t.prototype, "GetButton", void 0), i([A(cc.Label)], t.prototype, "SelectFriendLabel", void 0), i([A(cc.Node)], t.prototype, "Content1", void 0), i([A(cc.Label)], t.prototype, "EmptyLabel", void 0), i([A(m.default)], t.prototype, "CustomLayout", void 0), i([A(cc.Label)], t.prototype, "EmptyFriendLabel", void 0), i([A(cc.RichText)], t.prototype, "MyNeedRichText", void 0), i([A(cc.Node)], t.prototype, "NumsNode", void 0), i([A(cc.Label)], t.prototype, "SetLabel", void 0), i([A(cc.Button)], t.prototype, "SetButton", void 0), i([A(cc.Label)], t.prototype, "DailyTitle", void 0), i([A(cc.Node)], t.prototype, "ItemContent", void 0), i([A(cc.RichText)], t.prototype, "FriendNumRichText", void 0), i([A(cc.Label)], t.prototype, "CantLabel", void 0), i([A(cc.Button)], t.prototype, "CantButton", void 0), i([A(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([A(cc.Button)], t.prototype, "ReceiveButton", void 0), i([A(cc.Node)], t.prototype, "HasReceiveNode", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./AllUserPuzzleGivingItem": "AllUserPuzzleGivingItem",
        "./AllUserPuzzleNeedItem": "AllUserPuzzleNeedItem",
        "./AllUserPuzzleNumItem": "AllUserPuzzleNumItem"
    }],
    AllUserPuzzleItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "84a63JJP4ZPfrMQR7uy2fOX", "AllUserPuzzleItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("./AllUserPuzzlePanel"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.NumNode = null, t.NumLabel = null, t.PuzzleNode = null, t.CanLightLabel = null, t.PuzzleSprite = null, t._data = null, t._sprite = null, t._configData = null, t._totalCount = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnClickSelf, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnClickSelf, this)
                }, t.prototype.InitData = function(e, t, n) {
                    this._data = e, this._configData = t, this._totalCount = n, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = u.DataCenter.Instance.IsItemEnough(this._data.ItemId, 1), this.CanLightLabel.string = "puzzle_can_light".ToUILocale(), this.NumNode.active = !e, this.PuzzleNode.active = e, this.Bg.spriteFrame = p.default.Altas.getSpriteFrame("mask" + this._data.Shadow[0]), this.Bg.node.scaleX = 1 == this._data.Shadow[1] ? -1 : 1, this.Bg.node.angle = -this._data.Shadow[2], e ? (t = y.default.Instance.GetItemPathById(this._data.ItemId), [4, d.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    return n = o.sent(), this.isValid && n.name == t ? (this._sprite = n, this.PuzzleSprite.spriteFrame = this._sprite, [3, 3]) : (d.AssetsManager.Instance.UnloadAsset(n), [2]);
                                case 2:
                                    this.NumLabel.string = this._data.Id.toString(), o.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnClickSelf = function() {
                    if (u.DataCenter.Instance.IsItemEnough(this._data.ItemId, 1)) {
                        var e = new c.Req_Activity_AllUserPuzzleActivate;
                        e.ActivityId = this._configData._id, e.Id = this._data.Id, u.RpcComponent.Instance.Call(e, this.RequestSuccessFunc.bind(this))
                    }
                }, t.prototype.RequestSuccessFunc = function(e) {
                    var t = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id);
                    for (var n in t.IntMap) t.IntMap[n];
                    if (e.IsAll) {
                        l.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.DisplayRewardsPanel.Path, e.Rewards);
                        var o = y.default.ConverIIntArraysToUserItems(this._configData.CustomPart.Rewards);
                        l.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.DisplayRewardsPanel.Path, o, 1)
                    } else f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.onDestroy = function() {
                    this._sprite && d.AssetsManager.Instance.UnloadAsset(this._sprite)
                }, i([I(cc.Sprite)], t.prototype, "Bg", void 0), i([I(cc.Node)], t.prototype, "NumNode", void 0), i([I(cc.Label)], t.prototype, "NumLabel", void 0), i([I(cc.Node)], t.prototype, "PuzzleNode", void 0), i([I(cc.Label)], t.prototype, "CanLightLabel", void 0), i([I(cc.Sprite)], t.prototype, "PuzzleSprite", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AllUserPuzzlePanel": "AllUserPuzzlePanel"
    }],
    AllUserPuzzleNeedItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "acee4gKBadFTYKBqjF0fUId", "AllUserPuzzleNeedItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/HeadComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Etc"),
            h = e("./AllUserPuzzleNumItem"),
            f = e("../../Auxiliary/EventKeys"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Head = null, t.Name = null, t.OnLine = null, t.NeedLabel = null, t.Layout = null, t.NoNums = null, t.GiveButton = null, t.GiveLabel = null, t._data = null, t._numPrefab = null, t._numNodes = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.GiveButton.node.on("click", this.OnClickGive, this)
                }, t.prototype.onDisable = function() {
                    this.GiveButton.node.off("click", this.OnClickGive, this)
                }, t.prototype.InitData = function(e) {
                    this._data = e, this.NeedLabel.string = "puzzle_need_item".ToUILocale(), this.NoNums.string = "PlayerSetting_noAlliance".ToUILocale(), this.GiveLabel.string = "puzzle_send".ToUILocale(), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetActive(), this.SetHead(), this.SetNameAndOnline(), this.SetNums()
                }, t.prototype.InitNodes = function() {
                    this._numNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetActive = function() {
                    var e = !1;
                    this._data.Blocks.forEach(function(t) {
                        t && (e = !0)
                    }), this.NoNums.node.active = !e, this.Layout.active = e
                }, t.prototype.SetHead = function() {
                    this._data && (this.Head.SetHeadIcon(this._data.HeadIcon), this.Head.SetHeadFrame(this._data.HeadFrame), this.Head.SetCountry(this._data.Country))
                }, t.prototype.SetNameAndOnline = function() {
                    this.Name.string = this._data.Name;
                    var e = p.RpcComponent.Instance.ServerTime,
                        t = this._data.LastActiveTime,
                        o = e - t; - 1 == t ? (this.OnLine.node.color = n._green, this.OnLine.string = "friends_state_online".ToUILocale()) : (this.OnLine.node.color = n._yellow, o < d.Etc.MinuteDuration ? this.OnLine.string = "last".ToUILocale() : o < 7 * d.Etc.DayDuration ? this.OnLine.string = "time_duration_ago".ToUILocale().Fmt(o.FmtSimpleRemainTime()) : this.OnLine.string = "more_than_week".ToUILocale())
                }, t.prototype.SetNums = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._numPrefab ? [3, 2] : (e = this, [4, u.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/ModuleAllUserPuzzle/SubItems/AllUserPuzzleNumItem", cc.Prefab)]);
                                case 1:
                                    if (e._numPrefab = n.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._numPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._data.Blocks.forEach(function(e, n) {
                                        if (!t._numNodes[n]) {
                                            var o = cc.instantiate(t._numPrefab);
                                            o.parent = t.Layout, t._numNodes[n] = o
                                        }
                                        e ? (t._numNodes[n].active = !0, t._numNodes[n].getComponent(h.default).InitUI(e)) : t._numNodes[n].active = !1
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickGive = function() {
                    l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_ALLUSERPUZZLE_GIVE, this._data.Uid)
                }, t.prototype.onDestroy = function() {
                    u.AssetsManager.Instance.UnloadAsset(this._numPrefab)
                }, t._yellow = new cc.Color(178, 136, 80), t._green = new cc.Color(86, 143, 0), i([m(c.default)], t.prototype, "Head", void 0), i([m(cc.Label)], t.prototype, "Name", void 0), i([m(cc.RichText)], t.prototype, "OnLine", void 0), i([m(cc.RichText)], t.prototype, "NeedLabel", void 0), i([m(cc.Node)], t.prototype, "Layout", void 0), i([m(cc.Label)], t.prototype, "NoNums", void 0), i([m(cc.Button)], t.prototype, "GiveButton", void 0), i([m(cc.Label)], t.prototype, "GiveLabel", void 0), n = i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/HeadComponent": "HeadComponent",
        "./AllUserPuzzleNumItem": "AllUserPuzzleNumItem"
    }],
    AllUserPuzzleNumItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "03e75BBCrdLU5FXdK9GRqBX", "AllUserPuzzleNumItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Num = null, t
                }
                return r(t, e), t.prototype.InitUI = function(e) {
                    this.Num.string = e.toString()
                }, i([l(cc.Label)], t.prototype, "Num", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AllUserPuzzlePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8ed8bqUyk9JYr4idutmAY6R", "AllUserPuzzlePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./AllUserPuzzleItem"),
            m = e("../../Components/Components"),
            I = e("../../../../Proto/Static/ConfigProto"),
            _ = e("../../RedDot/RedDotManager"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.Time = null, t.Bg = null, t.Layout = null, t.LightNum = null, t.RewardTitle = null, t.RewardsNode = null, t.PreviewButton = null, t.PreviewLabel = null, t.GiveButton = null, t.GiveLabel = null, t.GetButton = null, t.GetLabel = null, t.ExchangeButton = null, t.ExchangeLabel = null, t.ReturnButton = null, t._itemPrefab = null, t._itemNodes = [], t._puzzlePrefab = null, t._puzzleNodes = [], t._configData = null, t._model = null, t._isReDisplay = !1, t._deadLine = 0, t._bgSprite = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserPuzzle/SubItems/AllUserPuzzleItem", cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserPuzzle/PNG/AllUserPuzzle", cc.SpriteAtlas)]).then(function(e) {
                                        t._itemPrefab = e[0], t._puzzlePrefab = e[1], n.Altas = e[2]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RewardTitle.string = "puzzle_final".ToUILocale(), this.PreviewLabel.string = "explore_preview".ToUILocale(), this.GiveLabel.string = "puzzle_give".ToUILocale(), this.GetLabel.string = "puzzle_get".ToUILocale(), this.ExchangeLabel.string = "puzzle_exchange".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnBtnClick, this), this.PreviewButton.node.on("click", this.OnPreviewButton, this), this.GiveButton.node.on("click", this.OnGiveButton, this), this.GetButton.node.on("click", this.OnGetButton, this), this.ExchangeButton.node.on("click", this.OnExchangeButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._configData = u.DataCenter.Instance.ActivityConfigs[n], this._deadLine = y.default.Instance.ComputeDeadTime(this._configData.Common), this.Title.string = this._configData.Common.Title
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this._configData.Common.Pictures && this._configData.Common.Pictures.length > 0 ? this._configData.Common.Pictures[0] : "", n = this, [4, y.default.LoadActivityTexture(t)];
                                case 1:
                                    return n._bgSprite = o.sent(), this.Bg.spriteFrame = this._bgSprite, [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id), _.RedDotManager.Instance.BindInstance(this.GiveButton.node, _.RedDotManager.Instance.InstanceRedDot.AllUserPuzzleGiveNode, {
                        Value1: this._configData._id
                    }), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._isReDisplay || (this.CountDown(), this.schedule(this.CountDown, 1)), this.SetPuzzles(), this.SetLightNum(), this.SetRewards()
                }, t.prototype.SetPuzzles = function() {
                    for (var e = this._configData.__Blocks.length, t = 0; t < e; t++) {
                        var o = this._configData.__Blocks[t],
                            r = Math.floor((o.Id - 1) / 5),
                            i = o.Id % 5 == 0 ? 4 : o.Id % 5 - 1;
                        if (this._model.IntMap && this._model.IntMap[o.Id]) this._puzzleNodes[t] && this._puzzleNodes[t].destroy(), this._puzzleNodes[t] = null;
                        else {
                            if (!this._puzzleNodes[t]) {
                                var a = cc.instantiate(this._puzzlePrefab);
                                a.parent = this.Layout, a.x = 200 * i + n.firsrNodePos.x, a.y = n.firsrNodePos.y - 200 * r, this._puzzleNodes[t] = a
                            }
                            this._puzzleNodes[t].getComponent(g.default).InitData(o, this._configData, e)
                        }
                    }
                    var s = [];
                    this._puzzleNodes.forEach(function(e) {
                        e && s.push(e)
                    });
                    var l = s.length;
                    s.forEach(function(e, t) {
                        e.setSiblingIndex(l - 1 - t)
                    })
                }, t.prototype.SetLightNum = function() {
                    var e = this.GetLightNum();
                    this.LightNum.string = "puzzle_has_light".ToUILocale().Fmt(e, this._configData.__Blocks.length)
                }, t.prototype.SetRewards = function() {
                    var e = this;
                    this._configData.CustomPart.Rewards.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.RewardsNode, e._itemNodes[n] = o
                        }
                        var r = t.Items[0],
                            i = t.Items[1];
                        e._itemNodes[n].getComponent(f.ItemComponent).Init({
                            ItemId: r,
                            Count: i
                        }, f.ItemComponentType.ItemCommon)
                    })
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - u.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this.unschedule(this.CountDown), void l.UIManager.Instance.BackUIPanel();
                    this.Time.string = "puzzle_remain_time".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(e))
                }, t.prototype.GetLightNum = function() {
                    var e = 0;
                    for (var t in this._model.IntMap) this._model.IntMap[t] && e++;
                    return e
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsNode.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, t.prototype.OnPreviewButton = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllUserPuzzlePreviewPanel.Path, this._configData)
                }, t.prototype.OnGiveButton = function() {
                    var e = this,
                        t = new c.Req_Activity_AllUserPuzzleGiveList;
                    t.ActivityId = this._configData._id, u.RpcComponent.Instance.Call(t, function(t) {
                        l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllUserPuzzleGivingPanel.Path, e._configData, t)
                    })
                }, t.prototype.OnGetButton = function() {
                    if (this._configData.Common.JumpId) {
                        var e = m.ConfigDataComponent.Instance.GetConfigById(I.ItemGetWay_Config, this._configData.Common.JumpId);
                        y.default.Instance.ShowActivityPanel(e.PanelInfo[0], e.PanelInfo[1])
                    }
                }, t.prototype.OnExchangeButtonClick = function() {
                    m.DataCenter.Instance.IsItemEnough(this._configData.CustomPart.CommonPuzzle, 1) ? l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllUserPuzzleExchangePanel.Path, this._configData) : h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._configData.CustomPart.CommonPuzzle.ToItemName()))
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "HeroTalent_Rule".ToUILocale(),
                        titles: ["puzzle_rule_sub".ToUILocale()],
                        contents: ["puzzle_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnBtnClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._bgSprite)
                }, t.firsrNodePos = new cc.Vec2(-400, -100), t.Altas = null, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Button)], t.prototype, "RuleButton", void 0), i([b(cc.RichText)], t.prototype, "Time", void 0), i([b(cc.Sprite)], t.prototype, "Bg", void 0), i([b(cc.Node)], t.prototype, "Layout", void 0), i([b(cc.RichText)], t.prototype, "LightNum", void 0), i([b(cc.Label)], t.prototype, "RewardTitle", void 0), i([b(cc.Node)], t.prototype, "RewardsNode", void 0), i([b(cc.Button)], t.prototype, "PreviewButton", void 0), i([b(cc.Label)], t.prototype, "PreviewLabel", void 0), i([b(cc.Button)], t.prototype, "GiveButton", void 0), i([b(cc.Label)], t.prototype, "GiveLabel", void 0), i([b(cc.Button)], t.prototype, "GetButton", void 0), i([b(cc.Label)], t.prototype, "GetLabel", void 0), i([b(cc.Button)], t.prototype, "ExchangeButton", void 0), i([b(cc.Label)], t.prototype, "ExchangeLabel", void 0), i([b(cc.Button)], t.prototype, "ReturnButton", void 0), n = i([v], t)
            }(l.BaseUIFullScreenPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./AllUserPuzzleItem": "AllUserPuzzleItem"
    }],
    AllUserPuzzlePreviewItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "463e3cykv9NpbzjIOeDcloE", "AllUserPuzzlePreviewItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Times = null, t.ItemsNode = null, t._itemPrefab = null, t._itemNodes = [], t._reward = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.initData = function(e, t) {
                    this._reward = e, this.Times.string = t ? "puzzle_light_number".ToUILocale().Fmt(t) : "puzzle_final_reward".ToUILocale(), this.SetRewards()
                }, t.prototype.SetRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, u.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._reward.forEach(function(e, n) {
                                        if (!t._itemNodes[n]) {
                                            var o = cc.instantiate(t._itemPrefab);
                                            o.parent = t.ItemsNode, t._itemNodes[n] = o
                                        }
                                        var r = e.Items[0],
                                            i = e.Items[1];
                                        t._itemNodes[n].name = r.toString(), t._itemNodes[n].getComponent(d.ItemComponent).Init({
                                            ItemId: r,
                                            Count: i
                                        }, d.ItemComponentType.ItemCommon)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemsNode.children.indexOf(t) && h.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.onDestroy = function() {
                    u.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, i([g(cc.Label)], t.prototype, "Times", void 0), i([g(cc.Node)], t.prototype, "ItemsNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllUserPuzzlePreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06007wXM75PuJ7ZaOnuTHQ4", "AllUserPuzzlePreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./AllUserPuzzlePreviewItem"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.View = null, t._previewPrefab = null, t._configData = null, t._previewNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserPuzzle/SubItems/AllUserPuzzlePreviewItem", cc.Prefab)];
                                case 1:
                                    return t._previewPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "explore_preview".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._configData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.SetUIContent(), [2]
                        })
                    })
                }, t.prototype.SetUIContent = function() {
                    var e = this,
                        t = [];
                    t.push(this._configData.CustomPart.Rewards), this._configData.__Blocks.forEach(function(e) {
                        var n = e.Rewards;
                        t.push(n)
                    }), t.forEach(function(t, n) {
                        if (!e._previewNodes[n]) {
                            var o = cc.instantiate(e._previewPrefab);
                            o.parent = e.View, e._previewNodes[n] = o
                        }
                        e._previewNodes[n].getComponent(c.default).initData(t, n)
                    })
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "View", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./AllUserPuzzlePreviewItem": "AllUserPuzzlePreviewItem"
    }],
    AllUserPuzzleSetItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3269b4H/mlCVramUMhz4yap", "AllUserPuzzleSetItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Num = null, t.Sprite = null, t.NeedButton = null, t.NeedLabel = null, t.HasGive = null, t.HasGiveLabel = null, t.CancleButton = null, t.CancleLabel = null, t.SelectNode = null, t.Toggle = null, t._data = null, t._type = 0, t._activityId = 0, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.NeedButton.node.on("click", this.OnClickNeedButton, this), this.CancleButton.node.on("click", this.OnClickCancleButton, this), this.Toggle.node.on("toggle", this.OnClickToggle, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnClickSelf, this)
                }, t.prototype.onDisable = function() {
                    this.NeedButton.node.off("click", this.OnClickNeedButton, this), this.CancleButton.node.off("click", this.OnClickCancleButton, this), this.Toggle.node.off("toggle", this.OnClickToggle, this), this.node.off(cc.Node.EventType.TOUCH_END, this.OnClickSelf, this)
                }, t.prototype.InitData = function(e, t, n) {
                    this._data = e, this._type = t, this._activityId = n, this.InitUI()
                }, t.prototype.InitUI = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this.NeedLabel.string = "puzzle_need_help".ToUILocale(), this.CancleLabel.string = "puzzle_cancle".ToUILocale(), this.HasGiveLabel.string = "puzzle_has_help".ToUILocale(), this.NeedButton.node.active = !1, this.HasGive.active = !1, this.CancleButton.node.active = !1, this.SelectNode.active = !1, this.Toggle.node.active = !1, this.Num.string = this._data.Id.toString(), e = h.default.Instance.GetItemPathById(this._data.ItemId), [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    if (t = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    switch (this._assets.push(t), this.Sprite.spriteFrame = t, n = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), this._type) {
                                        case 1:
                                            o = d.DataCenter.Instance.IsItemEnough(this._data.ItemId, 1), n.IntMap && n.IntMap[this._data.Id] || o ? this.SelectNode.active = !0 : n.IntArray && n.IntArray.indexOf(this._data.Id) > -1 ? this.HasGive.active = !0 : this.NeedButton.node.active = !0;
                                            break;
                                        case 2:
                                            this.CancleButton.node.active = !0;
                                            break;
                                        case 3:
                                            this.Toggle.node.active = !0
                                    }
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetToggle = function(e) {
                    this.Toggle.isChecked = e
                }, t.prototype.OnClickNeedButton = function() {
                    l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_ALLUSERPUZZLE_SELECT_NEED, this._data.Id)
                }, t.prototype.OnClickCancleButton = function() {
                    l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_ALLUSERPUZZLE_CANCLE_NEED, this._data.Id)
                }, t.prototype.OnClickToggle = function() {
                    l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_ALLUSERPUZZLE_EXCHANGE, this._data.Id)
                }, t.prototype.OnClickSelf = function() {
                    3 == this._type && l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_ALLUSERPUZZLE_EXCHANGE, this._data.Id)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([g(cc.Label)], t.prototype, "Num", void 0), i([g(cc.Sprite)], t.prototype, "Sprite", void 0), i([g(cc.Button)], t.prototype, "NeedButton", void 0), i([g(cc.Label)], t.prototype, "NeedLabel", void 0), i([g(cc.Node)], t.prototype, "HasGive", void 0), i([g(cc.Label)], t.prototype, "HasGiveLabel", void 0), i([g(cc.Button)], t.prototype, "CancleButton", void 0), i([g(cc.Label)], t.prototype, "CancleLabel", void 0), i([g(cc.Node)], t.prototype, "SelectNode", void 0), i([g(cc.Toggle)], t.prototype, "Toggle", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components"
    }],
    AllUserPuzzleSetPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3e21ak0TglE0KA4eiddVfBF", "AllUserPuzzleSetPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("./AllUserPuzzleSetItem"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.ContentAll = null, t.MyNeed = null, t.SelectNodes = [], t.NoSelectLabel = [], t.ShowLabel = null, t.SaveButton = null, t.SaveLabel = null, t._configData = null, t._setPrefab = null, t._puzzleNodes = [], t._selectNodes = [], t._selectIds = [0, 0, 0], t._model = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ALLUSERPUZZLE_SELECT_NEED, this.OnSelectClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ALLUSERPUZZLE_CANCLE_NEED, this.OnCancleClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ALLUSERPUZZLE_SELECT_NEED, this.OnSelectClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ALLUSERPUZZLE_CANCLE_NEED, this.OnCancleClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleAllUserPuzzle/SubItems/AllUserPuzzleSetItem", cc.Prefab)];
                                case 1:
                                    return t._setPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "puzzle_set_item".ToUILocale(), this.MyNeed.string = "puzzle_my_send".ToUILocale(), this.ShowLabel.string = "puzzle_show".ToUILocale(), this.SaveLabel.string = "puzzle_save".ToUILocale(), this.NoSelectLabel.forEach(function(e) {
                        e.string = "puzzle_select_lisit".ToUILocale()
                    }), this.SaveButton.node.on("click", this.OnSaveButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._configData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id), this.SetUIContent(), [2]
                        })
                    })
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetAllBlocks(), this.SetSelectNode()
                }, t.prototype.InitNodes = function() {
                    if (this._puzzleNodes.forEach(function(e) {
                            e.active = !1
                        }), this._selectNodes.forEach(function(e) {
                            e.active = !1
                        }), this._selectIds = [0, 0, 0], this._model && this._model.IntArray)
                        for (var e = 0; e < 3; e++) this._model.IntArray[e] && (this._selectIds[e] = this._model.IntArray[e])
                }, t.prototype.SetAllBlocks = function() {
                    var e = this;
                    this._configData.__Blocks.forEach(function(t, n) {
                        if (!e._puzzleNodes[n]) {
                            var o = cc.instantiate(e._setPrefab);
                            o.parent = e.ContentAll, e._puzzleNodes[n] = o
                        }
                        e._puzzleNodes[n].active = !0, e._puzzleNodes[n].getComponent(p.default).InitData(t, 1, e._configData._id)
                    })
                }, t.prototype.SetSelectNode = function() {
                    for (var e = function(e) {
                            var n = 0 | t._selectIds[e];
                            if (!t._selectNodes[e]) {
                                var o = cc.instantiate(t._setPrefab);
                                o.parent = t.SelectNodes[e], t._selectNodes[e] = o
                            }
                            if (n) {
                                t._selectNodes[e].active = !0;
                                var r = t._configData.__Blocks.findIndex(function(e) {
                                    return e.Id == n
                                });
                                if (r > -1) {
                                    var i = t._configData.__Blocks[r];
                                    t._selectNodes[e].getComponent(p.default).InitData(i, 2, t._configData._id)
                                }
                            } else t._selectNodes[e].active = !1
                        }, t = this, n = 0; n < 3; n++) e(n)
                }, t.prototype.OnSaveButtonClick = function() {
                    var e = this,
                        t = new c.Req_Activity_AllUserPuzzleDemand;
                    t.ActivityId = this._configData._id, t.Blocks = this._selectIds, u.RpcComponent.Instance.Call(t, function() {
                        e._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, e._configData._id), e.SetUIContent()
                    })
                }, t.prototype.OnSelectClick = function(e) {
                    var t = 0;
                    if (this._selectIds.forEach(function(e) {
                            e && t++
                        }), t >= 3) h.UIUtlity.ShowFloatingHint("puzzle_num_limit".ToUILocale());
                    else if (this._selectIds.indexOf(e) > -1) h.UIUtlity.ShowFloatingHint("puzzle_select_num".ToUILocale().Fmt(e));
                    else {
                        for (var n = 0; n < 3; n++)
                            if (!this._selectIds[n]) {
                                this._selectIds[n] = e;
                                break
                            } this.SetSelectNode()
                    }
                }, t.prototype.OnCancleClick = function(e) {
                    var t = this._selectIds.indexOf(e);
                    t > -1 && (this._selectIds[t] = 0), this.SetSelectNode()
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Node)], t.prototype, "ContentAll", void 0), i([g(cc.Label)], t.prototype, "MyNeed", void 0), i([g(cc.Node)], t.prototype, "SelectNodes", void 0), i([g(cc.Label)], t.prototype, "NoSelectLabel", void 0), i([g(cc.Label)], t.prototype, "ShowLabel", void 0), i([g(cc.Button)], t.prototype, "SaveButton", void 0), i([g(cc.Label)], t.prototype, "SaveLabel", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AllUserPuzzleSetItem": "AllUserPuzzleSetItem"
    }],
    AllianceApplicationItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "aa504/NrFlBdZv49YbOTkvU", "AllianceApplicationItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pName = null, t.pPower = null, t.pStatus = null, t.pHeadIcon = null, t.pHeadFrame = null, t.pAcceptButton = null, t.pRefuseButton = null, t.LevelNode = null, t.LevelLabel = null, t.Country = null, t.index = -1, t.sid = -1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.pHeadIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnHeadIconTouch, this)
                }, t.prototype.onDisable = function() {
                    this.pHeadIcon.node.off(cc.Node.EventType.TOUCH_END, this.OnHeadIconTouch, this)
                }, t.prototype.OnHeadIconTouch = function() {
                    l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_ALLIANCE_HEROHEADCLICK, this.sid)
                }, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = o.sent(), o.label = 3;
                                case 3:
                                    return (t = e.getComponent(n)).InitNodesAndComponents(), [2, t]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.UnloadAsset = function() {
                    c.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null;
                    for (var e = 0; e < n.LoadedAssets.length; e++) c.AssetsManager.Instance.UnloadAsset(n.LoadedAssets[e])
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, c.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = t.sent(), t.label = 2;
                                case 2:
                                    return n.prefabAsset ? [2, cc.instantiate(n.prefabAsset)] : (u.EZLog.Debug("ok in AllianceListItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {
                    this.node
                }, t.prototype.SetPlayerHeadAndFrame = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return o = l.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadIcon + "/" + e, cc.SpriteFrame), r = l.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadFrame + "/" + t, cc.SpriteFrame), [4, Promise.all([o, r]).then(function(e) {
                                        i.isValid ? (i.pHeadIcon.spriteFrame = e[0], i.pHeadFrame.spriteFrame = e[1], n.LoadedAssets.push(e[0]), n.LoadedAssets.push(e[1])) : e.forEach(function(e) {
                                            l.AssetsManager.Instance.UnloadAsset(e)
                                        })
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetHeadComponentParam = function(e, t) {
                    this.LevelNode.active = !1, this.Country.node.active = !1, e > 0 && (this.LevelNode.active = !0, this.LevelLabel.string = e.toString()), t && (this.Country.node.active = !0, d.UIUtlity.SetCountrySpriteFrame(this.Country, t))
                }, t.classNameString = "AllianceApplicationItem", t.prefabPathName = "AllianceBasePanel/Private/ApplicationItem", t.prefabAsset = null, t.pool = new cc.NodePool, t.LoadedAssets = [], i([g(cc.Label)], t.prototype, "pName", void 0), i([g(cc.Label)], t.prototype, "pPower", void 0), i([g(cc.Label)], t.prototype, "pStatus", void 0), i([g(cc.Sprite)], t.prototype, "pHeadIcon", void 0), i([g(cc.Sprite)], t.prototype, "pHeadFrame", void 0), i([g(cc.Button)], t.prototype, "pAcceptButton", void 0), i([g(cc.Button)], t.prototype, "pRefuseButton", void 0), i([g(cc.Node)], t.prototype, "LevelNode", void 0), i([g(cc.Label)], t.prototype, "LevelLabel", void 0), i([g(cc.Sprite)], t.prototype, "Country", void 0), n = i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AllianceApplicationListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "938cdCvftBMT5Fadu9zRlnm", "AllianceApplicationListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./AllianceBaseMainPanel"),
            f = e("./AllianceApplicationItem"),
            y = e("../../Channel/ChannelManager"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.pTitleText = null, t.pMembers = null, t.pEmptyListText = null, t.pRefuseAllButtonText = null, t.pRefuseAllButton = null, t.pListScrollView = null, t.pListContent = null, t.mainAtlas = null, t.multiLangAtlas = null, t.applicationListData = [], t.maxMember = 0, t.currentMember = 0, t.allianceApplicationItemsInAction = [], t
                }
                return r(t, e), t.prototype.InitNodesAndComponents = function() {}, t.prototype.update = function() {}, t.prototype.DisPlay = function() {
                    l.EZLog.Debug("ok in AllianceApplicationListPanel DisPlay..."), e.prototype.DisPlay.call(this), this.node.active = !0, this.RefreshPanelData()
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InitNodesAndComponents(), this.pRefuseAllButton.node.on("click", this.OnClickRefuseAllButton.bind(this), this), this.pTitleText.string = "allianceBase_appPanelTitle".ToUILocale(), this.pEmptyListText.string = "allianceBase_appPanelEmptyDesc".ToUILocale(), this.pRefuseAllButtonText.string = "allianceBase_appPanelRefuseAll".ToUILocale();
                    var t = y.default.Instance.IsHighSchoolChannel();
                    this.pEmptyListText.node.color = t ? new cc.Color(98, 78, 60) : new cc.Color(230, 223, 179)
                }, t.prototype.RefreshApplicationList = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    for (n = this.allianceApplicationItemsInAction.length - 1; n >= 0; n--)(t = this.allianceApplicationItemsInAction[n]).pAcceptButton.node.off("click"), t.pRefuseButton.node.off("click"), f.default.Put(t);
                                    this.allianceApplicationItemsInAction = [], l.EZLog.Debug("ok in AllianceApplicationListPanel RefreshApplicationList ...count:" + e.DataList.length), this.applicationListData = e.DataList, n = this.applicationListData.length - 1, a.label = 1;
                                case 1:
                                    return n >= 0 ? (o = this.applicationListData[n], c.EZLog.Log("DATA = ", o), [4, f.default.Get()]) : [3, 4];
                                case 2:
                                    r = a.sent(), this.allianceApplicationItemsInAction.push(r), r.node.setParent(this.pListContent), r.index = n, r.sid = o.Uid, r.pName.string = o.Name, r.pPower.string = o.Power.toString(), r.SetPlayerHeadAndFrame(o.HeadIcon, o.HeadFrame), r.SetHeadComponentParam(o.Level, o.Country), h.default.LastActiveTimeForHumanReading(o.LastActiveTime, r.pStatus), r.pAcceptButton.node.on("click", this.OnClickAccept.bind(this), this), r.pRefuseButton.node.on("click", this.OnClickRefuse.bind(this), this), a.label = 3;
                                case 3:
                                    return n--, [3, 1];
                                case 4:
                                    return i = this.applicationListData.length <= 0, this.pEmptyListText.node.active = i, this.pRefuseAllButton.node.active = !i, [2]
                            }
                        })
                    })
                }, t.prototype.OnClickAccept = function(e) {
                    if (this.currentMember >= this.maxMember) d.UIUtlity.ShowFloatingHint("allianceBase_full".ToUILocale());
                    else {
                        var t = e.node.parent.getComponent(f.default).index,
                            n = this.applicationListData[t].Uid,
                            o = new u.Req_Alliance_AgreeRequest;
                        o.TargetUid = n, p.RpcComponent.Instance.Call(o, this.RefreshApplicationListAndMemberList.bind(this))
                    }
                }, t.prototype.OnClickRefuse = function(e) {
                    var t = e.node.parent.getComponent(f.default).index,
                        n = this.applicationListData[t].Uid,
                        o = new u.Req_Alliance_RejectRequest;
                    o.TargetUid = n, p.RpcComponent.Instance.Call(o, this.RefreshApplicationListAndMemberList.bind(this))
                }, t.prototype.OnClickRefuseAllButton = function() {
                    var e = new u.Req_Alliance_RejectRequest;
                    e.TargetUid = 0, p.RpcComponent.Instance.Call(e, this.RefreshApplicationListAndMemberList.bind(this))
                }, t.prototype.RefreshApplicationListAndMemberList = function() {
                    this.RefreshPanelData(), this.panelFrom && this.panelFrom.RefreshProfileMemberSubPage()
                }, t.prototype.InitData = function(e) {
                    l.EZLog.Debug("ok in AllianceApplicationListPanel InitData ..."), this.currentMember = e[0], this.maxMember = e[1], e.length > 2 && (this.panelFrom = e[2])
                }, t.prototype.RefreshPanelData = function() {
                    this.GetMyAllianceInfo(), this.GetApplicationList()
                }, t.prototype.GetApplicationList = function() {
                    var e = new u.Req_Alliance_GetRequestList;
                    p.RpcComponent.Instance.Call(e, this.RefreshApplicationList.bind(this))
                }, t.prototype.GetMyAllianceInfo = function() {
                    var e = new u.Req_Alliance_GetMyAlliance;
                    p.RpcComponent.Instance.Call(e, this.OnCallBackFromGetMyAllianceInfo.bind(this))
                }, t.prototype.OnCallBackFromGetMyAllianceInfo = function(e) {
                    var t = h.default.allianceLevelConfig[e.Level - 1].MemberCount,
                        n = e.MemberCount;
                    this.pMembers.string = "allianceBase_memberCountRatio".ToUILocale().Fmt(n.toString(), t.toString())
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), f.default.UnloadAsset()
                }, i([I(cc.Label)], t.prototype, "pTitleText", void 0), i([I(cc.Label)], t.prototype, "pMembers", void 0), i([I(cc.Label)], t.prototype, "pEmptyListText", void 0), i([I(cc.Label)], t.prototype, "pRefuseAllButtonText", void 0), i([I(cc.Button)], t.prototype, "pRefuseAllButton", void 0), i([I(cc.ScrollView)], t.prototype, "pListScrollView", void 0), i([I(cc.Node)], t.prototype, "pListContent", void 0), i([I(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([I(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Channel/ChannelManager": "ChannelManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AllianceApplicationItem": "AllianceApplicationItem",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel"
    }],
    AllianceBaseMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "22320eWdFhM8oDPbNvCmGyi", "AllianceBaseMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../../Consts/Consts"),
            y = e("../../../GamePlay/Components/Components"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../../../Consts/Consts"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../Components/CustomToggle"),
            S = e("../../../Util/TimeUtil"),
            w = e("./AllianceCommonDefines"),
            P = e("../../../ShareConsts/EnumType"),
            A = e("../../RedDot/RedDotManager"),
            T = e("../../Auxiliary/GameEventsListener"),
            R = e("../Battle/BattleManager"),
            L = e("../../Auxiliary/DataUtlity"),
            k = e("../Battle/BattleData"),
            O = e("../../Auxiliary/ModuleGuideManager"),
            M = e("../../Auxiliary/GameRecord"),
            D = e("./TimeLimitedActivityPanel"),
            B = e("../Components/LoadAssetHelper"),
            N = e("../../Auxiliary/GuideManager"),
            E = e("../Components/GameUnlockFingerListener");
        (function(e) {
            e[e.All = 0] = "All", e[e.AllianceTest = 1] = "AllianceTest", e[e.AllianceWar = 2] = "AllianceWar", e[e.CityWar = 3] = "CityWar", e[e.None = 4] = "None"
        })(l || (l = {})),
        function(e) {
            e[e.Profiles = 0] = "Profiles", e[e.Shop = 1] = "Shop", e[e.Test = 2] = "Test", e[e.Talent = 3] = "Talent", e[e.AllianceWar = 4] = "AllianceWar", e[e.Maze = 5] = "Maze", e[e.AllianceBoss = 6] = "AllianceBoss", e[e.AssaultOperation = 7] = "AssaultOperation", e[e.AllianceInsignia = 8] = "AllianceInsignia"
        }(c || (c = {}));
        var U = cc._decorator,
            G = U.ccclass,
            x = U.property,
            H = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.pTitleText = null, t.pMemberText = null, t.pSettingButtonText = null, t.pMainPageProfileButtonText = null, t.pMainPageShopButtonText = null, t.pMainPageLibButtonText = null, t.pMainPageTalentButtonText = null, t.pMainPageTestButtonText = null, t.pMemberSubPageHeaderMemberText = null, t.pMemberSubPageHeaderContributeText = null, t.pMemberSubPageHeaderStatusText = null, t.pSettingSearchButtonText = null, t.pSettingQuitButtonText = null, t.pSettingReviewButtonText = null, t.pSettingSetupButtonText = null, t.pSettingRecruitButtonText = null, t.pSettingImpeachButtonText = null, t.pSettingHandOverButtonText = null, t.pSettingRemoveButtonText = null, t.pSettingAssignButtonText = null, t.pSettingRecallButtonText = null, t.pBackButton = null, t.pProfileBackButton = null, t.pAllianceName = null, t.pLevel = null, t.pFlagBg = null, t.pFlagFg = null, t.pLevelProgressBar = null, t.pLevelProgressBarExpText = null, t.pSloganRichText = null, t.pSettingsButton = null, t.pMainPageProfileButton = null, t.pMainPageShopButton = null, t.pMainPageLibButton = null, t.pMainPageTalentButton = null, t.AllianceWarButton = null, t.StrongholdWarButton = null, t.AllianceBossButton = null, t.pMainPageTestButton = null, t.pMemberScrollView = null, t.pMemberScrollViewContent = null, t.pLogScrollView = null, t.pLogScrollViewContent = null, t.pMainPageRoot = null, t.pProfilePageRoot = null, t.pProfileMemberToggle = null, t.pProfileLogToggle = null, t.pSettingMenuRoot = null, t.pSettingSearchButton = null, t.pSettingQuitButton = null, t.pSettingReviewButton = null, t.pSettingSetupButton = null, t.pSettingRecruitButton = null, t.pOperationMenuRoot = null, t.pOperationMenuButtonLayout = null, t.pOperationImpeachButton = null, t.pOperationHandOverButton = null, t.pOperationRemoveButton = null, t.pOperationAssignViceButton = null, t.pOperationRecallViceButton = null, t.pProfileMemberSubPage = null, t.pProfileLogSubPage = null, t.pRedPackButton = null, t.pRedPackButtonBg = null, t.pRedPackLock = null, t.pRedPackButtonLabel = null, t.mainAtlas = null, t.multiLangAtlas = null, t.LogSelectTitle = null, t.LogToggles = [], t.LogToggleLabels = [], t.AllianceTestLabel = null, t.AllianceTreasureLabel = null, t.AllianceShopLabel = null, t.AllianceTalentLabel = null, t.AllianceBattleLabel = null, t.AllianceProfileLabel = null, t.AllianceBossLabel = null, t.AllianceBossTipNode = null, t.AllianceBossTipLabel = null, t.AllianceMazeButton = null, t.AllianceMazeButtonLabel = null, t.AllianceTraderButton = null, t.AllianceTraderIcon = null, t.AllianceTraderSpine = null, t.AllianceTraderButtonLabel = null, t.AssaultOperationButton = null, t.AssaultOperationButtonLabel = null, t.AllianceInsigniaButton = null, t.AllianceInsigniaButtonBg = null, t.AllianceInsigniaLock = null, t.AllianceInsigniaLabel = null, t.LoadAssetHelper = null, t.seperators = [], t.events = [], t.myAllianceViceLeaderCount = 0, t.levelProgressBarFullWidth = 594, t.memberListItemHeight = 190, t._clickMemberIndex = 0, t.currentSelectedMemberIndex = -1, t._logs = [], t._logSelectIndex = 0, t._loadedAssests = [], t.eventTextKeys = ["", "AllianceEventText_Join", "AllianceEventText_Quit", "AllianceEventText_Promotion", "AllianceEventText_Demotion", "AllianceEventText_Kick", "AllianceEventText_AppointLeader", "AllianceEventText_ImpeachLeader", "AllianceEventText_TestReport", "AllianceEventText_CityWarOccupyCity", "AllianceEventText_CityWarLoseCity", "AllianceEventText_War_Main", "AllianceEventText_War_Sneak"], t._moudleEnters = {}, t.GameUnlockSteps = {
                        0: [],
                        1: [],
                        2: [],
                        3: [],
                        4: [],
                        5: [],
                        6: [27],
                        8: [29]
                    }, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(f.GameEventIds.SpecialRedDotChange.Fmt(f.SpecialRedDotType.AllianceId), this.OnAllianceIdChange, this), p.Game.EventDispatcher.On(I.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this), p.Game.EventDispatcher.On(f.GameEventIds.ChangeDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.On(f.GameEventIds.AddDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.On(f.GameEventIds.RemoveDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(f.GameEventIds.SpecialRedDotChange.Fmt(f.SpecialRedDotType.AllianceId), this.OnAllianceIdChange, this), p.Game.EventDispatcher.Off(I.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this), p.Game.EventDispatcher.Off(f.GameEventIds.ChangeDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.Off(f.GameEventIds.AddDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.Off(f.GameEventIds.RemoveDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
                }, t.prototype.OnAllianceIdChange = function(e) {
                    0 != e || T.default.Instance._allianceQuit || (g.UIUtlity.ShowFloatingHint("allianceBase_bekicked".ToUILocale()), T.default.Instance._allianceQuit = !1, p.UIManager.Instance.CloseAllPanels(!0))
                }, t.prototype.InitNodesAndComponents = function() {}, t.prototype.DisPlay = function(t) {
                    u.EZLog.Debug("ok in AllianceBaseMainPanel DisPlay..."), e.prototype.DisPlay.call(this, t), t || (this.SetMoudelEnters(), this.ShowAllGameUnlockFinger(!1)), this.node.active = !0, this.PanelStart(), this.ShowModuleGuide()
                }, t.prototype.SetMoudelEnters = function() {
                    this._moudleEnters[c.Profiles] = this.pMainPageProfileButton.node, this._moudleEnters[c.Shop] = this.pMainPageShopButton.node, this._moudleEnters[c.Test] = this.pMainPageTestButton.node, this._moudleEnters[c.Talent] = this.AllianceTraderButton.node, this._moudleEnters[c.AllianceWar] = this.AllianceWarButton.node, this._moudleEnters[c.Maze] = this.AllianceMazeButton.node, this._moudleEnters[c.AllianceBoss] = this.AllianceBossButton.node, this._moudleEnters[c.AssaultOperation] = this.AssaultOperationButton.node, this._moudleEnters[c.AllianceInsignia] = this.AllianceInsigniaButton.node
                }, t.prototype.BindRedDot = function() {
                    A.RedDotManager.Instance.Bind(this.pMainPageTalentButton.node, A.RedDotManager.Instance.RedDot.AllianceTalentBtnNode, -60, -18), A.RedDotManager.Instance.Bind(this.pMainPageTestButton.node, A.RedDotManager.Instance.RedDot.AllianceTestBtnNode, -60, -18), A.RedDotManager.Instance.Bind(this.pSettingsButton.node, A.RedDotManager.Instance.RedDot.AllianceSettingBtnNode, 0, 0), A.RedDotManager.Instance.Bind(this.pSettingReviewButton.node, A.RedDotManager.Instance.RedDot.AllianceApplicationBtnNode, 0, 0), A.RedDotManager.Instance.Bind(this.AllianceWarButton.node, A.RedDotManager.Instance.RedDot.AllianceWarBtnNode, -60, -18), A.RedDotManager.Instance.Bind(this.StrongholdWarButton.node, A.RedDotManager.Instance.RedDot.AllianceStrongholdWarBtnNode, 0, 0), A.RedDotManager.Instance.Bind(this.pRedPackButton.node, A.RedDotManager.Instance.RedDot.AllianceRedPacketNode), A.RedDotManager.Instance.Bind(this.AllianceMazeButton.node, A.RedDotManager.Instance.RedDot.AllianceMazeBtnNode, -60, -18), A.RedDotManager.Instance.Bind(this.AllianceBossButton.node, A.RedDotManager.Instance.RedDot.AllianceBossBtnNode, -60, -18), A.RedDotManager.Instance.Bind(this.AllianceTraderButton.node, A.RedDotManager.Instance.RedDot.AllianceTraderBtnNode, 0, 0), A.RedDotManager.Instance.Bind(this.AssaultOperationButton.node, A.RedDotManager.Instance.RedDot.AllianceAssaultOpertionNode, -60, -18), A.RedDotManager.Instance.Bind(this.AllianceInsigniaButton.node, A.RedDotManager.Instance.RedDot.AllianceInsigniaNode, -60, -18), A.RedDotManager.Instance.RefreshRedDotNode(A.RedDotManager.Instance.RedDot.AllianceTestBtnNode), A.RedDotManager.Instance.RefreshRedDotNode(A.RedDotManager.Instance.RedDot.AllianceTalentBtnNode)
                }, t.prototype.PanelStart = function() {
                    if (y.DataCenter.Instance.AllianceId > 0) {
                        var e;
                        if (this.GetMyAllianceInfo(), this.BindRedDot(), this.StrongholdWarButton.node.active = L.default.Instance.IsGameModuleOpen(f.GameModuleType.AllianceCityWar), this.AllianceWarButton.node.active = L.default.Instance.IsGameModuleOpen(f.GameModuleType.AllianceWar), this.AllianceBossButton.node.active = L.default.Instance.IsGameModuleOpen(f.GameModuleType.AllianceBOSSBattle), this.SetAllianceBossTipNode(), L.default.Instance.IsGameModuleOpen(f.GameModuleType.AllianceRedPacket) ? (this.pRedPackButton.node.active = !0, L.default.Instance.IsGameModuleUnlock(f.GameModuleType.AllianceRedPacket)[0] ? (g.UIUtlity.OffSpriteGray(this.pRedPackButtonBg), this.pRedPackLock.active = !1) : (g.UIUtlity.OnSpriteGray(this.pRedPackButtonBg), this.pRedPackLock.active = !0)) : this.pRedPackButton.node.active = !1, L.default.Instance.ActivityAllianceMazeIds.length > 0 && (e = y.DataCenter.Instance.ActivityConfigs[L.default.Instance.ActivityAllianceMazeIds[0]]) ? (this.AllianceMazeButton.node.active = !0, this.AllianceMazeButtonLabel.string = e.Common.Title) : this.AllianceMazeButton.node.active = !1, L.default.Instance.ActivityAllianceTraderIds.length > 0)
                            if (e = y.DataCenter.Instance.ActivityConfigs[L.default.Instance.ActivityAllianceTraderIds[0]]) {
                                this.AllianceTraderButton.node.active = !0, this.AllianceTraderButtonLabel.string = e.Common.Title;
                                var t = g.UIUtlity.GetIconPath(e.Common.Icon);
                                this.LoadAssetHelper.LoadSpriteFrame(t, this.AllianceTraderIcon, null, null, !0), e.Common.SpineEffect && this.SetAllianceTraderBtnSpine(e.Common.SpineEffect)
                            } else this.AllianceTraderButton.node.active = !1;
                        else this.AllianceTraderButton.node.active = !1;
                        if (this.AssaultOperationButton.node.active = !1, L.default.Instance.ActivityAssaultOpeationId && (e = y.DataCenter.Instance.ActivityConfigs[L.default.Instance.ActivityAssaultOpeationId])) {
                            var n = e.Common.GameModule;
                            (!n || n && L.default.Instance.IsGameModuleUnlock(n)[0]) && (this.AssaultOperationButton.node.active = !0, this.AssaultOperationButtonLabel.string = e.Common.Title)
                        }
                        L.default.Instance.IsGameModuleOpen(f.GameModuleType.AllianceBadge) ? (this.AllianceInsigniaButton.node.active = !0, L.default.Instance.IsGameModuleUnlock(f.GameModuleType.AllianceBadge)[0] ? (g.UIUtlity.OffSpriteGray(this.AllianceInsigniaButtonBg), this.AllianceInsigniaLock.active = !1) : (g.UIUtlity.OnSpriteGray(this.AllianceInsigniaButtonBg), this.AllianceInsigniaLock.active = !1)) : this.AllianceInsigniaButton.node.active = !1
                    }
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InitNodesAndComponents(), n.GetStaticConfig(), n.memberTitleText = "allianceBase_member".ToUILocale(), n.viceTitleText = "allianceBase_memberTitleVice".ToUILocale(), n.leaderTitleText = "allianceBase_memberTitleLeader".ToUILocale(), n.memberOnlineText = "friends_state_online".ToUILocale(), this.pBackButton.node.on("click", this.LeavePanel.bind(this), this), this.pSettingsButton.node.on("click", this.OnClickSettingsButton.bind(this), this), this.pMainPageProfileButton.node.on("click", this.OnClickMainPageProfileButton.bind(this), this), this.pMainPageShopButton.node.on("click", this.OnClickMainPageShopButton.bind(this), this), this.pMainPageLibButton.node.on("click", this.OnClickMainPageLibButton.bind(this), this), this.pMainPageTalentButton.node.on("click", this.OnClickMainPageTalentButton.bind(this), this), this.StrongholdWarButton.node.on("click", this.OnClickStrongholdWarButton, this), this.AllianceBossButton.node.on("click", this.OnClickAllianceBossButton.bind(this), this), this.pMainPageTestButton.node.on("click", this.OnClickMainPageTestButton.bind(this), this), this.pSettingSearchButton.node.on("click", this.OnClickSettingSearchButton.bind(this), this), this.pSettingQuitButton.node.on("click", this.OnClickSettingQuitButton.bind(this), this), this.pSettingReviewButton.node.on("click", this.OnClickSettingReviewButton.bind(this), this), this.pSettingSetupButton.node.on("click", this.OnClickSettingSetupButton.bind(this), this), this.pSettingRecruitButton.node.on("click", this.OnClickSettingRecruitButton.bind(this), this), this.AllianceWarButton.node.on("click", this.OnClickAllianceWarButton.bind(this), this), this.pSettingImpeachButtonText.string = "allianceBase_mainPageImpeach".ToUILocale(), this.pSettingHandOverButtonText.string = "allianceBase_mainPageHandOver".ToUILocale(), this.pSettingRemoveButtonText.string = "allianceBase_mainPageRemove".ToUILocale(), this.pSettingAssignButtonText.string = "allianceBase_mainPageAssign".ToUILocale(), this.pSettingRecallButtonText.string = "allianceBase_mainPageRecall".ToUILocale(), this.pMemberSubPageHeaderMemberText.string = "allianceBase_member".ToUILocale(), this.pMemberSubPageHeaderContributeText.string = "allianceBase_7daysContribution".ToUILocale(), this.pMemberSubPageHeaderStatusText.string = "allianceBase_status".ToUILocale(), this.pSettingSearchButtonText.string = "allianceBase_settingMenuSearch".ToUILocale(), this.pSettingQuitButtonText.string = "allianceBase_settingMenuQuit".ToUILocale(), this.pSettingReviewButtonText.string = "allianceBase_settingMenuReview".ToUILocale(), this.pSettingSetupButtonText.string = "allianceBase_settingMenuSetup".ToUILocale(), this.pSettingRecruitButtonText.string = "allianceBase_recruit".ToUILocale(), "allianceLog_all".ToUILocale(), "allianceLog_test".ToUILocale(), "allianceLog_war".ToUILocale(), "allianceLog_cityWar".ToUILocale(), this.LogSelectTitle.string = "allianceLog_select".ToUILocale(), this.AllianceBattleLabel.string = "AllianceBattle".ToUILocale(), this.AllianceTestLabel.string = "AllianceTest".ToUILocale(), this.AllianceTreasureLabel.string = "AllianceTreasure".ToUILocale(), this.AllianceShopLabel.string = "AllianceShop".ToUILocale(), this.AllianceTalentLabel.string = "AllianceTalent".ToUILocale(), this.AllianceProfileLabel.string = "AllianceProfile".ToUILocale(), this.AllianceBossLabel.string = "AllianceBoss".ToUILocale(), this.AllianceInsigniaLabel.string = "allianceInsignia_title".ToUILocale(), this.pRedPackButtonLabel.string = "allianceBase_redPack".ToUILocale(), this.pRedPackButton.node.on("click", this.OnClickRedPackButton.bind(this), this), this.AllianceMazeButton.node.on("click", this.OnClickAllianceMazeButton.bind(this), this), this.AllianceTraderButton.node.on("click", this.OnClickAllianceTraderButton.bind(this), this), this.AssaultOperationButton.node.on("click", this.OnClickAssaultOperationButton.bind(this), this), this.AllianceInsigniaButton.node.on("click", this.OnClickAllianceInsigniaButton.bind(this), this), this.ShowMainPage()
                }, t.prototype.OnClickSettingsButton = function() {
                    this.ShowSettingsMenu()
                }, t.prototype.OnClickMainPageProfileButton = function() {
                    u.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceProfilePanel.Path)
                }, t.prototype.OnClickMainPageShopButton = function() {
                    p.UIManager.Instance.ShowUIPanel(m.PanelConfig.ShopPanel.Path, 2, 6, null, this.myAllianceData.Level)
                }, t.prototype.OnClickMainPageLibButton = function() {
                    p.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceTreasurePanel.Path)
                }, t.prototype.OnClickRedPackButton = function() {
                    var e = L.default.Instance.IsGameModuleUnlock(f.GameModuleType.AllianceRedPacket);
                    e[0] ? p.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceRedPacketPanel.Path) : g.UIUtlity.ShowFloatingHint(e[1])
                }, t.prototype.OnClickAllianceMazeButton = function() {
                    if (!L.default.Instance.ActivityAllianceMazeIds.length) return g.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale()), void this.PanelStart();
                    var e = y.DataCenter.Instance.ActivityConfigs[L.default.Instance.ActivityAllianceMazeIds[0]];
                    if (!e) return g.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale()), void this.PanelStart();
                    p.UIManager.Instance.ShowUIPanel(D.ActivityData.GetActivityTypeToPath(f.ActivityType.AllianceMaze), e._id)
                }, t.prototype.OnClickAllianceTraderButton = function() {
                    if (!L.default.Instance.ActivityAllianceTraderIds.length) return g.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale()), void this.PanelStart();
                    var e = y.DataCenter.Instance.ActivityConfigs[L.default.Instance.ActivityAllianceTraderIds[0]];
                    if (!e) return g.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale()), void this.PanelStart();
                    p.UIManager.Instance.ShowUIPanel(D.ActivityData.GetActivityTypeToPath(f.ActivityType.AllianceTrader), e._id)
                }, t.prototype.OnClickAssaultOperationButton = function() {
                    if (!L.default.Instance.ActivityAssaultOpeationId) return g.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale()), void this.PanelStart();
                    var e = y.DataCenter.Instance.ActivityConfigs[L.default.Instance.ActivityAssaultOpeationId];
                    return e ? y.RpcComponent.Instance.ServerTime >= L.default.Instance.ComputeExtraShowDeadTime(e.Common) ? (g.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale()), void this.PanelStart()) : void p.UIManager.Instance.ShowUIPanel(D.ActivityData.GetActivityTypeToPath(f.ActivityType.AssaultOperation), e._id) : (g.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale()), void this.PanelStart())
                }, t.prototype.OnClickAllianceInsigniaButton = function() {
                    var e = L.default.Instance.IsGameModuleUnlock(v.GameModuleType.AllianceBadge);
                    e[0] ? p.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceInsigniaPanel.Path) : g.UIUtlity.ShowFloatingHint(e[1])
                }, t.prototype.OnClickMainPageTalentButton = function() {
                    p.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceTalentPanel.Path)
                }, t.prototype.OnClickMainPageTestButton = function() {
                    if (R.BattleManager.Instance.IsInBattle(f.MapType.AllianceTest)) {
                        var e = k.BattleData.PlayingBattleDatas[f.MapType.AllianceTest];
                        if (e.ExtraParam ? e.ExtraParam.CanSkipPlay = !0 : e.ExtraParam = {
                                CanSkipPlay: !0
                            }, R.BattleManager.Instance.ResumePlayBattle(f.MapType.AllianceTest)) return
                    }
                    p.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceTestPanel.Path)
                }, t.prototype.ShowSettingsMenu = function() {
                    this.pSettingMenuRoot.active = !0
                }, t.prototype.RefreshHeader = function() {
                    var e = h.ConfigDataComponent.Instance.GetConfigById(_.AllianceIcon_Config, this.myAllianceData.Icon),
                        t = e.LogoID,
                        o = e.FlagID;
                    this.pFlagFg.spriteFrame = this.mainAtlas.getSpriteFrame("flagLogo" + t), this.pFlagBg.spriteFrame = this.mainAtlas.getSpriteFrame("flagBg" + o), this.pAllianceName.string = this.myAllianceData.Name;
                    var r = this.myAllianceData.MemberCount,
                        i = n.allianceLevelConfig[this.myAllianceData.Level - 1],
                        a = n.allianceLevelConfig[this.myAllianceData.Level],
                        s = i.MemberCount;
                    if (this.pMemberText.string = "allianceBase_membersRatio".ToUILocale().Fmt(r.toString(), s.toString()), this.pLevel.string = "allianceBase_level".ToUILocale().Fmt(this.myAllianceData.Level.toString()), a) {
                        var l = i.Xp,
                            c = a.Xp,
                            u = this.myAllianceData.Xp - l,
                            p = c - l;
                        this.pLevelProgressBar.width = this.levelProgressBarFullWidth * Math.min(1, u / p), this.pLevelProgressBarExpText.string = u.toString() + "/" + p.toString()
                    } else l = n.allianceLevelConfig[this.myAllianceData.Level - 2].Xp, p = (c = i.Xp) - l, this.pLevelProgressBar.width = this.levelProgressBarFullWidth, this.pLevelProgressBarExpText.string = p.toString() + "/" + p.toString();
                    this.pSloganRichText.string = this.myAllianceData.Notice
                }, t.prototype.LeavePanel = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.ShowMainPage = function() {
                    this.pTitleText.string = "guild".ToUILocale(), this.pMainPageRoot.active = !0
                }, t.prototype.OnClickSettingSearchButton = function() {
                    this.pSettingMenuRoot.active = !1, u.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceListPanel.Path, !0)
                }, t.prototype.OnClickSettingQuitButton = function() {
                    return this.pSettingMenuRoot.active = !1, this.myAllianceData.MyPost == v.AlliancePostType.Leader ? void(this.myAllianceData.MemberCount > 1 ? g.UIUtlity.ShowHintPanel("", "alliance_quit_hint".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "ok".ToUILocale(), null) : g.UIUtlity.ShowHintPanel("", "allianceBase_dismissAndQuitHint".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "allianceBase_dismissAndQuit".ToUILocale(), this.OnDismissAlliance.bind(this))) : void g.UIUtlity.ShowHintPanel("", "allianceBase_quitHint".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "allianceBase_quit".ToUILocale(), this.OnQuitAlliance.bind(this))
                }, t.prototype.OnDismissAlliance = function() {
                    var e = new d.Req_Alliance_DismissAlliance;
                    T.default.Instance._allianceQuit = !0, y.RpcComponent.Instance.Call(e, this.OnCallBackFromDismissAlliance.bind(this), this.OnCallFallFromDismissAlliance.bind(this))
                }, t.prototype.OnCallBackFromDismissAlliance = function() {
                    y.DataCenter.Instance.AllianceId = 0, T.default.Instance._allianceQuit = !1, this.BindRedDot(), u.UIManager.Instance.QuitPanelStack(this), u.UIManager.Instance.ShowUIPanel(m.PanelConfig.MainScenePanel.Path)
                }, t.prototype.OnCallFallFromDismissAlliance = function() {
                    T.default.Instance._allianceQuit = !1
                }, t.prototype.OnQuitAlliance = function() {
                    var e = new d.Req_Alliance_QuitAlliance;
                    T.default.Instance._allianceQuit = !0, y.RpcComponent.Instance.Call(e, this.OnCallBackFromQuitAlliance.bind(this), this.OnCallFallFromQuitAlliance.bind(this))
                }, t.prototype.OnCallBackFromQuitAlliance = function() {
                    y.DataCenter.Instance.AllianceId = 0, g.UIUtlity.ShowFloatingHint("allianceBase_quitResult".ToUILocale()), T.default.Instance._allianceQuit = !1, this.BindRedDot(), u.UIManager.Instance.QuitPanelStack(this), u.UIManager.Instance.ShowUIPanel(m.PanelConfig.MainScenePanel.Path)
                }, t.prototype.OnCallFallFromQuitAlliance = function() {
                    T.default.Instance._allianceQuit = !1
                }, t.prototype.OnClickSettingReviewButton = function() {
                    this.pSettingMenuRoot.active = !1;
                    var e = n.allianceLevelConfig[this.myAllianceData.Level - 1].MemberCount;
                    u.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceApplicationListPanel.Path, this.myAllianceData.MemberCount, e)
                }, t.prototype.OnClickSettingSetupButton = function() {
                    this.pSettingMenuRoot.active = !1, u.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceSetupPanel.Path, w.AllianceSetupPanelMode.Modifying, this.myAllianceData)
                }, t.prototype.OnClickSettingRecruitButton = function() {
                    this.pSettingMenuRoot.active = !1;
                    var e = n.recruitMaxTimesPerDay - y.DataCenter.Instance.GetIntData(C.UserDataKey.AllianceAdvertiseCount);
                    e <= 0 ? g.UIUtlity.ShowFloatingHint("allianceBase_noMoreRecruitToday".ToUILocale()) : y.DataCenter.Instance.GetItemCount(P.CommonItemId.Diamond) < n.recruitDiamondCost ? p.UIManager.Instance.ShowUIPanel(m.PanelConfig.MallNewPanel.Path, [f.MallPageType.DiamondShop, f.GiftPackType.BuyDiamond]) : g.UIUtlity.ShowHintPanel("", "allianceBase_recruitHint".ToUILocale().Fmt(n.recruitDiamondCost, e.toString()), "Answer_QuitNo".ToUILocale(), null, "allianceBase_recruit".ToUILocale(), this.BroadCaseRecruit.bind(this))
                }, t.prototype.BroadCaseRecruit = function() {
                    var e = new d.Req_Alliance_Advertise;
                    y.RpcComponent.Instance.Call(e, this.OnCallBackFromBroadCaseRecruit.bind(this))
                }, t.prototype.OnCallBackFromBroadCaseRecruit = function(e) {
                    g.UIUtlity.ShowFloatingHint("allianceBase_recruitResult".ToUILocale()), y.DataCenter.Instance.AddPublicChatMessage(e.Msg)
                }, t.prototype.InitData = function() {
                    u.EZLog.Debug("ok in AllianceBaseMainPanel InitData ...")
                }, t.GetStaticConfig = function() {
                    n.allianceLevelConfig = y.ConfigDataComponent.Instance.GetArrayConfig(_.AllianceLevel_Config), n.allianceIconConfig = y.ConfigDataComponent.Instance.GetArrayConfig(_.AllianceIcon_Config), n.createAllianceVipLevelRequirement = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceCreateRequireVipLevel"), n.recruitDiamondCost = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceAdvertiseCostDiamond"), n.recruitMaxTimesPerDay = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceDailyAdvertiseCount"), n.impeachLeaderDuration = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceImpeachLeaderDuration")
                }, t.prototype.GetMyAllianceInfo = function() {
                    var e = new d.Req_Alliance_GetMyAlliance;
                    y.RpcComponent.Instance.Call(e, this.OnCallBackFromGetMyAllianceInfo.bind(this), this.OnAllianceGetError.bind(this))
                }, t.prototype.OnCallBackFromGetMyAllianceInfo = function(e) {
                    switch (u.EZLog.Debug("ok in AllianceBaseMainPanel OnCallBackFromGetMyAllianceInfo ...res is null ?" + (null == e)), this.myAllianceData = e, L.default.Instance.SetAllianceInfo(e), A.RedDotManager.Instance.Bind(this.pMainPageShopButton.node, A.RedDotManager.Instance.RedDot.AllianceShopBtnNode, -60, -18), this.myAllianceData.MyPost) {
                        case v.AlliancePostType.Leader:
                            this.pSettingSearchButton.node.active = !0, this.pSettingQuitButton.node.active = !0, this.pSettingReviewButton.node.active = !0, this.pSettingSetupButton.node.active = !0, this.pSettingRecruitButton.node.active = !0, this.GetAppliactionList();
                            break;
                        case v.AlliancePostType.ViceLeader:
                            this.pSettingSearchButton.node.active = !0, this.pSettingQuitButton.node.active = !0, this.pSettingReviewButton.node.active = !0, this.pSettingSetupButton.node.active = !1, this.pSettingRecruitButton.node.active = !0, this.GetAppliactionList();
                            break;
                        case v.AlliancePostType.Member:
                            this.pSettingSearchButton.node.active = !0, this.pSettingQuitButton.node.active = !0, this.pSettingReviewButton.node.active = !1, this.pSettingSetupButton.node.active = !1, this.pSettingRecruitButton.node.active = !1
                    }
                    this.RefreshHeader()
                }, t.prototype.OnAllianceGetError = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.GetAppliactionList = function() {
                    var e = new d.Req_Alliance_GetRequestList;
                    h.RpcComponent.Instance.Call(e, function(e) {
                        y.DataCenter.Instance.SetTempData("AllianceData_RequestList", e), A.RedDotManager.Instance.RefreshRedDotNode(A.RedDotManager.Instance.RedDot.AllianceApplicationBtnNode)
                    })
                }, t.ToTitleName = function(e) {
                    switch (e) {
                        case v.AlliancePostType.Member:
                            return n.memberTitleText;
                        case v.AlliancePostType.ViceLeader:
                            return n.viceTitleText;
                        case v.AlliancePostType.Leader:
                            return n.leaderTitleText
                    }
                }, t.LastActiveTimeForHumanReading = function(e, t) {
                    if (null == e || e <= 0) t.string = n.memberOnlineText;
                    else {
                        var o = y.RpcComponent.Instance.ServerTime - e;
                        t.string = o.FmtSimpleRemainTime()
                    }
                }, t.prototype.OnHeroHeadClick = function(e) {
                    p.UIManager.Instance.ShowUIPanel(m.PanelConfig.PlayerInfoPanel.Path, e)
                }, t.prototype.OnClickAllianceWarButton = function() {
                    n.ShowAllianceWarPanel()
                }, t.ShowAllianceWarPanel = function() {
                    var e = L.default.Instance.IsGameModuleUnlock(f.GameModuleType.AllianceWar);
                    if (e[0]) {
                        if (3 == n.GetCrossServerAllianceTimeType()) {
                            var t = S.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime),
                                o = t + 1 * C.Etc.HourDuration;
                            if (y.RpcComponent.Instance.ServerTime >= t && y.RpcComponent.Instance.ServerTime < o) return g.UIUtlity.ShowFloatingHint("allianceWar_end".ToUILocale())
                        }
                        if (R.BattleManager.Instance.IsInBattle(f.MapType.CrossZoneAllianceChallenge)) R.BattleManager.Instance.ResumePlayBattle(f.MapType.CrossZoneAllianceChallenge);
                        else {
                            var r = new d.Req_Alliance_ChallengeEnter;
                            y.RpcComponent.Instance.Call(r, function(e) {
                                e.MyAlliance ? (y.DataCenter.Instance.SetTempData("AllianceChallengeData_Model", e.MyAlliance), p.UIManager.Instance.ShowUIPanel(m.PanelConfig.CrossServerAllianceWarPanel.Path, e)) : p.UIManager.Instance.ShowUIPanel(m.PanelConfig.CrossServerAllianceWarPanel.Path, e)
                            })
                        }
                    } else g.UIUtlity.ShowFloatingHint(e[1])
                }, t.GetCrossServerAllianceTimeType = function() {
                    var e = S.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime),
                        t = e + 1 * C.Etc.HourDuration,
                        n = e + 12 * C.Etc.HourDuration,
                        o = e + 23 * C.Etc.HourDuration;
                    return y.RpcComponent.Instance.ServerTime >= t && y.RpcComponent.Instance.ServerTime < n ? 1 : y.RpcComponent.Instance.ServerTime >= n && y.RpcComponent.Instance.ServerTime < o ? 2 : 3
                }, t.prototype.OnClickStrongholdWarButton = function() {
                    var e = L.default.Instance.IsGameModuleUnlock(f.GameModuleType.AllianceCityWar);
                    if (!e[0]) return g.UIUtlity.ShowFloatingHint(e[1]);
                    L.default.Instance.EnterStrongholdWarPanel()
                }, t.prototype.OnClickAllianceBossButton = function() {
                    var e = L.default.Instance.IsGameModuleUnlock(f.GameModuleType.AllianceBOSSBattle);
                    if (!e[0]) return g.UIUtlity.ShowFloatingHint(e[1]);
                    var t = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceBossLevel");
                    if (!this.myAllianceData || this.myAllianceData.Level < t) return g.UIUtlity.ShowFloatingHint("allianceBoss_levelLimit".ToUILocale().Fmt(t));
                    var n = new d.Req_Alliance_GetMemeberList;
                    y.RpcComponent.Instance.Call(n, function(e) {
                        var t, n = [];
                        e.MemberList.forEach(function(e) {
                            e.AlliancePost == v.AlliancePostType.Leader ? t = e.Uid : e.AlliancePost == v.AlliancePostType.ViceLeader && n.push(e.Uid)
                        }), p.UIManager.Instance.ShowUIPanel(m.PanelConfig.AllianceBossPanel.Path, t, n)
                    })
                }, t.prototype.SetAllianceBossTipNode = function() {
                    this.AllianceBossTipNode.active = !1;
                    var e = L.default.Instance.IsGameModuleUnlock(f.GameModuleType.AllianceBOSSBattle),
                        t = L.default.Instance.IsGameModuleOpen(f.GameModuleType.AllianceBOSSBattle);
                    if (e[0] && t && 1 == y.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.AllianceBOSSLevel)) {
                        var n = h.ConfigDataComponent.Instance.GetConfigById(_.LevelParam_Config, f.LevelParamType.AllianceBOSSBattleTime),
                            o = S.TimeUtil.Get0ClockTs(h.RpcComponent.Instance.ServerTime) + f.Etc.HourDuration * n.Data[0] + f.Etc.MinuteDuration * n.Data[1],
                            r = S.TimeUtil.Get0ClockTs(h.RpcComponent.Instance.ServerTime) + f.Etc.HourDuration * n.Data[2] + f.Etc.MinuteDuration * n.Data[3];
                        o < h.RpcComponent.Instance.ServerTime && h.RpcComponent.Instance.ServerTime < r && (this.AllianceBossTipNode.active = !0, this.AllianceBossTipLabel.string = "allianceBoss_entry_tip".ToUILocale())
                    }
                }, t.prototype.ShowModuleGuide = function() {
                    if (O.default.instance.CheckGameModeuleGuideNeedShow(v.GameModuleType.Alliance) && (O.default.instance.ShowNPCDialogs([1025]), O.default.instance.CompleteGameModuleWeakGuide(v.GameModuleType.Alliance)), L.default.Instance.IsGameModuleUnlock(f.GameModuleType.AllianceCityWar)[0]) {
                        var e = y.DataCenter.Instance.GetArrayData(C.UserDataKey.CityWarGuide); - 1 == (M.default.GetItem(M.GameRecordDefine.StrongholdWarGuide) ? JSON.parse(M.default.GetItem(M.GameRecordDefine.StrongholdWarGuide)) : []).indexOf(v.StrongholdWarGuideArray.Entry) && -1 == e.indexOf(v.StrongholdWarGuideArray.Entry) ? O.default.instance.AddFingerNode(this.StrongholdWarButton.node) : O.default.instance.RemoveFingerNode(this.StrongholdWarButton.node)
                    }
                }, t.prototype.SetAllianceTraderBtnSpine = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._allianceTradeSpine ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("Buttons/Spine/" + e[0], sp.SkeletonData)];
                                case 1:
                                    if (t = n.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._loadedAssests.push(t), this._allianceTradeSpine = this.AllianceTraderSpine.getComponent(sp.Skeleton), this._allianceTradeSpine.skeletonData = t, this._allianceTradeSpine.setAnimation(0, e[1], !0), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._loadedAssests.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssests = []
                }, t.prototype.OnSimpleDataChage = function(e) {
                    var t;
                    for (var n in e)
                        if (parseInt(n) == C.UserDataKey.GameModulePopGuide) {
                            t = !0;
                            break
                        } t && this.ShowAllGameUnlockFinger()
                }, t.prototype.ShowAllGameUnlockFinger = function(e) {
                    if (void 0 === e && (e = !0), !N.default.Instance.IsInGuide) {
                        var t = E.default.Instance.CurrencyMoudleId;
                        if (!t || t < 0)
                            for (var n in this._moudleEnters) E.default.Instance.RemoveFinger(this._moudleEnters[n]);
                        else {
                            var o = y.ConfigDataComponent.Instance.GetConfigById(_.GameModuleUnlockPop_Config, t);
                            if (o) {
                                var r = e ? 2 : 0;
                                for (var i in this.GameUnlockSteps) {
                                    var a = parseInt(i);
                                    if (-1 != this.GameUnlockSteps[i].indexOf(t)) {
                                        switch (t) {
                                            case 27:
                                            case 29:
                                                E.default.Instance.SetFinger(this._moudleEnters[a], o.Id, 0, 0, r)
                                        }
                                        return
                                    }
                                }
                            } else
                                for (var n in this._moudleEnters) E.default.Instance.RemoveFinger(this._moudleEnters[n])
                        }
                    }
                }, t.createAllianceVipLevelRequirement = 0, t.recruitDiamondCost = 99999, t.recruitMaxTimesPerDay = 0, t.impeachLeaderDuration = 0, t.memberTitleText = "", t.viceTitleText = "", t.leaderTitleText = "", t.memberOnlineText = "", i([x(cc.Label)], t.prototype, "pTitleText", void 0), i([x(cc.RichText)], t.prototype, "pMemberText", void 0), i([x(cc.Label)], t.prototype, "pSettingButtonText", void 0), i([x(cc.Label)], t.prototype, "pMainPageProfileButtonText", void 0), i([x(cc.Label)], t.prototype, "pMainPageShopButtonText", void 0), i([x(cc.Label)], t.prototype, "pMainPageLibButtonText", void 0), i([x(cc.Label)], t.prototype, "pMainPageTalentButtonText", void 0), i([x(cc.Label)], t.prototype, "pMainPageTestButtonText", void 0), i([x(cc.Label)], t.prototype, "pMemberSubPageHeaderMemberText", void 0), i([x(cc.Label)], t.prototype, "pMemberSubPageHeaderContributeText", void 0), i([x(cc.Label)], t.prototype, "pMemberSubPageHeaderStatusText", void 0), i([x(cc.Label)], t.prototype, "pSettingSearchButtonText", void 0), i([x(cc.Label)], t.prototype, "pSettingQuitButtonText", void 0), i([x(cc.Label)], t.prototype, "pSettingReviewButtonText", void 0), i([x(cc.Label)], t.prototype, "pSettingSetupButtonText", void 0), i([x(cc.Label)], t.prototype, "pSettingRecruitButtonText", void 0), i([x(cc.Label)], t.prototype, "pSettingImpeachButtonText", void 0), i([x(cc.Label)], t.prototype, "pSettingHandOverButtonText", void 0), i([x(cc.Label)], t.prototype, "pSettingRemoveButtonText", void 0), i([x(cc.Label)], t.prototype, "pSettingAssignButtonText", void 0), i([x(cc.Label)], t.prototype, "pSettingRecallButtonText", void 0), i([x(cc.Button)], t.prototype, "pBackButton", void 0), i([x(cc.Button)], t.prototype, "pProfileBackButton", void 0), i([x(cc.Label)], t.prototype, "pAllianceName", void 0), i([x(cc.Label)], t.prototype, "pLevel", void 0), i([x(cc.Sprite)], t.prototype, "pFlagBg", void 0), i([x(cc.Sprite)], t.prototype, "pFlagFg", void 0), i([x(cc.Node)], t.prototype, "pLevelProgressBar", void 0), i([x(cc.Label)], t.prototype, "pLevelProgressBarExpText", void 0), i([x(cc.RichText)], t.prototype, "pSloganRichText", void 0), i([x(cc.Button)], t.prototype, "pSettingsButton", void 0), i([x(cc.Button)], t.prototype, "pMainPageProfileButton", void 0), i([x(cc.Button)], t.prototype, "pMainPageShopButton", void 0), i([x(cc.Button)], t.prototype, "pMainPageLibButton", void 0), i([x(cc.Button)], t.prototype, "pMainPageTalentButton", void 0), i([x(cc.Button)], t.prototype, "AllianceWarButton", void 0), i([x(cc.Button)], t.prototype, "StrongholdWarButton", void 0), i([x(cc.Button)], t.prototype, "AllianceBossButton", void 0), i([x(cc.Button)], t.prototype, "pMainPageTestButton", void 0), i([x(cc.ScrollView)], t.prototype, "pMemberScrollView", void 0), i([x(cc.Node)], t.prototype, "pMemberScrollViewContent", void 0), i([x(cc.ScrollView)], t.prototype, "pLogScrollView", void 0), i([x(cc.Node)], t.prototype, "pLogScrollViewContent", void 0), i([x(cc.Node)], t.prototype, "pMainPageRoot", void 0), i([x(cc.Node)], t.prototype, "pProfilePageRoot", void 0), i([x(b.default)], t.prototype, "pProfileMemberToggle", void 0), i([x(b.default)], t.prototype, "pProfileLogToggle", void 0), i([x(cc.Node)], t.prototype, "pSettingMenuRoot", void 0), i([x(cc.Button)], t.prototype, "pSettingSearchButton", void 0), i([x(cc.Button)], t.prototype, "pSettingQuitButton", void 0), i([x(cc.Button)], t.prototype, "pSettingReviewButton", void 0), i([x(cc.Button)], t.prototype, "pSettingSetupButton", void 0), i([x(cc.Button)], t.prototype, "pSettingRecruitButton", void 0), i([x(cc.Node)], t.prototype, "pOperationMenuRoot", void 0), i([x(cc.Layout)], t.prototype, "pOperationMenuButtonLayout", void 0), i([x(cc.Button)], t.prototype, "pOperationImpeachButton", void 0), i([x(cc.Button)], t.prototype, "pOperationHandOverButton", void 0), i([x(cc.Button)], t.prototype, "pOperationRemoveButton", void 0), i([x(cc.Button)], t.prototype, "pOperationAssignViceButton", void 0), i([x(cc.Button)], t.prototype, "pOperationRecallViceButton", void 0), i([x(cc.Node)], t.prototype, "pProfileMemberSubPage", void 0), i([x(cc.Node)], t.prototype, "pProfileLogSubPage", void 0), i([x(cc.Button)], t.prototype, "pRedPackButton", void 0), i([x(cc.Sprite)], t.prototype, "pRedPackButtonBg", void 0), i([x(cc.Node)], t.prototype, "pRedPackLock", void 0), i([x(cc.Label)], t.prototype, "pRedPackButtonLabel", void 0), i([x(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([x(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), i([x(cc.Label)], t.prototype, "LogSelectTitle", void 0), i([x(cc.Toggle)], t.prototype, "LogToggles", void 0), i([x(cc.Label)], t.prototype, "LogToggleLabels", void 0), i([x(cc.Label)], t.prototype, "AllianceTestLabel", void 0), i([x(cc.Label)], t.prototype, "AllianceTreasureLabel", void 0), i([x(cc.Label)], t.prototype, "AllianceShopLabel", void 0), i([x(cc.Label)], t.prototype, "AllianceTalentLabel", void 0), i([x(cc.Label)], t.prototype, "AllianceBattleLabel", void 0), i([x(cc.Label)], t.prototype, "AllianceProfileLabel", void 0), i([x(cc.Label)], t.prototype, "AllianceBossLabel", void 0), i([x(cc.Node)], t.prototype, "AllianceBossTipNode", void 0), i([x(cc.Label)], t.prototype, "AllianceBossTipLabel", void 0), i([x(cc.Button)], t.prototype, "AllianceMazeButton", void 0), i([x(cc.Label)], t.prototype, "AllianceMazeButtonLabel", void 0), i([x(cc.Button)], t.prototype, "AllianceTraderButton", void 0), i([x(cc.Sprite)], t.prototype, "AllianceTraderIcon", void 0), i([x(sp.Skeleton)], t.prototype, "AllianceTraderSpine", void 0), i([x(cc.Label)], t.prototype, "AllianceTraderButtonLabel", void 0), i([x(cc.Button)], t.prototype, "AssaultOperationButton", void 0), i([x(cc.Label)], t.prototype, "AssaultOperationButtonLabel", void 0), i([x(cc.Button)], t.prototype, "AllianceInsigniaButton", void 0), i([x(cc.Sprite)], t.prototype, "AllianceInsigniaButtonBg", void 0), i([x(cc.Node)], t.prototype, "AllianceInsigniaLock", void 0), i([x(cc.Label)], t.prototype, "AllianceInsigniaLabel", void 0), i([x(B.default)], t.prototype, "LoadAssetHelper", void 0), n = i([G], t)
            }(p.BaseUIFullScreenPanel);
        n.default = H, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GameUnlockFingerListener": "GameUnlockFingerListener",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./AllianceCommonDefines": "AllianceCommonDefines",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    AllianceBossEntryBattleTipNode: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f0adaMEZgFOfo6cT8AcoYmc", "AllianceBossEntryBattleTipNode");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Tip = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.Tip.string = e || "allianceBoss_entry_tip".ToUILocale()
                }, i([l(cc.Label)], t.prototype, "Tip", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AllianceBossPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1602ezrvkpMz7qOy6qYoUpT", "AllianceBossPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/AllianceBossSkillItem"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../../Util/TimeUtil"),
            I = e("../../../Consts/Consts"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../Components/CustomProgressBar"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../../../ShareBattle/BattleHelper"),
            w = e("../Components/GameModuleGuideManager"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.Apply = 1] = "Apply", e[e.Battle = 2] = "Battle", e[e.Result = 3] = "Result"
        })(l || (l = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.LeftTime = null, t.RuleButton = null, t.ServerButton = null, t.ServerLabel = null, t.SmallRankList = null, t.RankTitle = null, t.ThreeRankName = [], t.ThreeRankValue = [], t.MyAllianceRankTag = null, t.RankDetailButton = null, t.ApplyButton = null, t.ApplyButtonLabel = null, t.RewardPreviewButton = null, t.RewardPreviewButtonLabel = null, t.PlayerAvatarNodeArray = [], t.PlayerFrameContainer = null, t.PlayerFrameNode = null, t.PlayerAttackContainer = null, t.MyAvatarAddSpine = null, t.AddSpeedSpine = null, t.MyPlayerDamageLabel = null, t.BossInfoNode = null, t.BossAvatarNode = null, t.BossShowSpine = null, t.BossComingSpine = null, t.BossComingSpine2 = null, t.BossBottomSpine = null, t.BossTopSpine = null, t.BossDefendSpine = null, t.BossAttackSpine = null, t.BossSKillSpine1 = null, t.BossSkillSpine2 = null, t.BossName = null, t.BossLevel = null, t.BossHpProgress = null, t.BossDamageSecond = null, t.ChallengePlayerCount = null, t.BossHpProgressBar = null, t.BossHpProgressMaskNode = null, t.SkillContainer = null, t.SkillNodeArray = [], t.SkillUseTipNode = null, t.SkillUseTipTitle = null, t.SkillUseTipContent = null, t.SkillUseTipCount = null, t.SkillUseTipAllianceName = [], t.SkillUseTipButton = [], t.SkillUseTipButtonLabel = [], t.SkillEffectScreenNode = null, t.TargetBossAvatar = null, t.TargetHeroAvatars = [], t.TargetBossBottomSpine = null, t.TargetBossTopSpine = null, t.TargetAllianceName = null, t.TargetAllianceDesc = null, t.TouchMask = null, t.GiftButtons = [], t.GiftContainer = null, t.DefeatTipNode = null, t.DefeatBgNode = null, t.DefeatTipContent = null, t.DefeatBottomSpine = null, t.DefeatTopSpine = null, t.DefeatLevel = null, t.ReturnButton = null, t.DEFAULT_TARGET_HERO_ID = 12402, t.BOSSHP_MASK_WIDTH = 588, t.BOSS_HURT_POINTS = [
                    [350, 150],
                    [250, 150],
                    [250, 250]
                ], t.ATTACK_SPINE_NAMES = ["Hero_Effect_Boss_attack", "Hero_Effect_Boss_attack2", "Hero_Effect_Boss_attack3", "Hero_Effect_Boss_attack4"], t._skillPrefab = null, t._bossAtlas = null, t._skillComponentsArray = [], t._intervalIndex = 0, t._heroNodePoolList = {}, t._heroPrefabList = {}, t._attackSpineNodePoolList = {}, t._attackSpineDtaList = {}, t._avatarLoadIdList = [], t._avatarSkeletonArray = [], t._isSetBossBaseInfo = !1, t._useSkillAllianceArray = [], t._useAllianceSkillConfigId = 0, t._isShowBossComing = !1, t._isShowBossBack = !1, t._bossSpineComponent = null, t._spineMapList = {}, t._isUseAllianceSkill = !1, t._isSetTargetHero = !1, t._isSetTargetBoss = !1, t._isPlayHeroAttacks = [], t._currentBossLevel = 0, t._isShowDefeatTip = !1, t._attackBossTimes = 0, t._isBossPlaySkill = !1, t._loadHeroCount = 0, t._playerFrameNodeArray = [], t._playerNameLabelArray = [], t._isMyHeroAddSpine = !1, t._guideStepIndex = 0, t._guideGroupId = 0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(b.EventKeys.EVENT_ALLIANCEBOSS_SKILL_PUSH, this.OnOthersUseSkill, this), c.Game.EventDispatcher.On(b.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(b.EventKeys.EVENT_ALLIANCEBOSS_SKILL_PUSH, this.OnOthersUseSkill, this), c.Game.EventDispatcher.Off(b.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AllianceBossPanel/Components/AllianceBossSkillItem", cc.Prefab), n = this.LoadDynamicAsset("AllianceBossPanel/PNG/AllianceBossAtlas", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                    o._skillPrefab = e[0], o._bossAtlas = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.Title.string = "AllianceBoss".ToUILocale(), this.ServerLabel.string = "crossServerSpaceTime".ToUILocale(), this.RankTitle.string = "allianceBoss_rank_toggle1".ToUILocale(), this.RewardPreviewButtonLabel.string = "allianceBoss_previewButton".ToUILocale(), this.ApplyButtonLabel.string = "application".ToUILocale(), this.ThreeRankName.forEach(function(e) {
                    e.string = "rank_no_people".ToUILocale()
                }), this.SkillUseTipButtonLabel.forEach(function(e) {
                    e.string = "use".ToUILocale()
                }), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ServerButton.node.on("click", this.OnServerButtonClick, this), this.RewardPreviewButton.node.on("click", this.OnRewardPreviewButtonClick, this), this.RankDetailButton.node.on("click", this.OnRankDetailButtonClick, this), this.ApplyButton.node.on("click", this.OnApplyButtonClick, this), this.TouchMask.on(cc.Node.EventType.TOUCH_END, this.OnTouchMaskNodeClick, this), this.SkillUseTipButton.forEach(function(e, n) {
                    e.node.on("click", function() {
                        t.OnSkillUseTipButtonClick(n)
                    }, t)
                }), this.GiftButtons.forEach(function(e) {
                    e.node.on("click", t.OnGiftButtonClick, t)
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._leaderUid = t[0], this._viceLeaderUids = t[1], this._refreshInterval = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceBossInterval"), this._heroAvatarCount = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceBossShowNumber"), this._applyTimeConfig = d.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, g.LevelParamType.AllianceBOSSPrepareTime), this._battleTimeConfig = d.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, g.LevelParamType.AllianceBOSSBattleTime), this._bossConfigArray = d.ConfigDataComponent.Instance.GetArrayConfig(y.AllianceBossBox_Config), this.SetCurrentStage(), this._intervalIndex = this._refreshInterval
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.SetDeadLine(), this.schedule(this.SetDeadLine, 1), this.ServerButton.node.active = _.default.IsCrossServerConditonsEnable(), v.RedDotManager.Instance.Bind(this.ApplyButton.node, v.RedDotManager.Instance.RedDot.AllianceBossApplyBtnNode), this.ShowGameGuid()), this.SetCurrentShow()
            }, t.prototype.SetCurrentStage = function() {
                var e = d.RpcComponent.Instance.ServerTime;
                this._todayEndTime = m.TimeUtil.Get0ClockTs(e) + I.Etc.DayDuration;
                var t = m.TimeUtil.Get0ClockTs(e) + I.Etc.HourDuration * this._applyTimeConfig.Data[0] + I.Etc.MinuteDuration * this._applyTimeConfig.Data[1],
                    n = m.TimeUtil.Get0ClockTs(e) + I.Etc.HourDuration * this._applyTimeConfig.Data[2] + I.Etc.MinuteDuration * this._applyTimeConfig.Data[3];
                this._battleStartTime = m.TimeUtil.Get0ClockTs(e) + I.Etc.HourDuration * this._battleTimeConfig.Data[0] + I.Etc.MinuteDuration * this._battleTimeConfig.Data[1], this._battleEndTime = m.TimeUtil.Get0ClockTs(e) + I.Etc.HourDuration * this._battleTimeConfig.Data[2] + I.Etc.MinuteDuration * this._battleTimeConfig.Data[3], e >= t && e < n ? this._currentStage = l.Apply : e >= this._battleStartTime && e < this._battleEndTime ? this._currentStage = l.Battle : this._currentStage = l.Result
            }, t.prototype.RefreshPanelInfo = function() {
                var e = this,
                    t = new p.Req_Alliance_GetAllianceBossInfo;
                d.RpcComponent.Instance.CallWithoutMask(t, function(t) {
                    t && t.Players && 0 != t.Players.length && (e._currentStage == l.Battle && (e.BossDamageSecond.string = t.DamagePerSecond.FmtCurrency() + "/S", e.ChallengePlayerCount.string = t.MyAllianceCount.toString(), e.SetBossHpProgress(t.SumDamage)), t.MyRank > 0 && (e.MyAllianceRankTag.string = "allianceBoss_rank_myAlliacne_tip".ToUILocale().Fmt(t.MyRank)), e.ThreeRankName.forEach(function(e, n) {
                        t.ThreeName[n] ? e.string = t.ThreeName[n] : e.string = "rank_no_people".ToUILocale()
                    }), e.ThreeRankValue.forEach(function(e, n) {
                        t.ThreeSumDamage[n] ? e.string = t.ThreeSumDamage[n].FmtCurrency() : e.string = ""
                    }), e.SetPlayerAvatarContainer(t.Players))
                })
            }, t.prototype.SetBossHpProgress = function(e) {
                var t = this;
                if (!(this._currentBossLevel >= 6)) {
                    for (var n, o = 0; o < this._bossConfigArray.length; o++) {
                        var r = this._bossConfigArray[o];
                        if (e < r.SumDamage) {
                            n = r;
                            break
                        }
                    }
                    if (n) {
                        var i;
                        if (this.BossLevel.string = "Lv." + n.Id, 1 == n.Id) this.BossHpProgress.string = Math.floor(1e3 - e / n.SumDamage * 1e3) / 10 + "%", i = 1 - e / n.SumDamage;
                        else {
                            var a = this._bossConfigArray[n.Id - 2].SumDamage;
                            this.BossHpProgress.string = Math.floor(1e3 - (e - a) / (n.SumDamage - a) * 1e3) / 10 + "%", i = 1 - (e - a) / (n.SumDamage - a)
                        }
                        cc.Tween.stopAllByTarget(this.BossHpProgressMaskNode), cc.tween(this.BossHpProgressMaskNode).tag(h.PanelConfig.AllianceBossPanel.Id).to(this._refreshInterval - 2, {
                            width: this.BOSSHP_MASK_WIDTH * i
                        }).call(function() {
                            t.BossHpProgressBar.progress = i
                        }).start(), this._currentBossLevel < n.Id && (this._currentBossLevel = n.Id, this.SetGiftAndDefeat())
                    } else this.BossLevel.string = "Lv.6", this.BossHpProgress.string = "\u221e", this.BossHpProgressBar.progress = 1, this._currentBossLevel = 6, this.SetGiftAndDefeat()
                }
            }, t.prototype.SetCurrentShow = function() {
                var e = this;
                this.ApplyButton.node.active = !1, this.BossInfoNode.active = !1, this.SkillContainer.active = !1, this.BossAvatarNode.active = !1, this.BossAvatarNode.opacity = 255, this.BossShowSpine.node.active = !0, this.SmallRankList.y = this.ServerButton.node.active ? -457 : -272;
                var t = d.DataCenter.Instance.GetIntData(I.UserDataKey.AllianceBossApply);
                switch (this._currentStage) {
                    case l.Apply:
                        this.ApplyButton.node.active = !0, this.ApplyButtonLabel.string = t > 0 && t == d.DataCenter.Instance.AllianceId ? "RankMatchArena_signed".ToUILocale() : "application".ToUILocale(), this.BossShowSpine.setAnimation(0, "Ani_UI_Effect_Boss_liefeng", !0);
                        break;
                    case l.Battle:
                        this.BossInfoNode.active = !0, this.BossAvatarNode.active = !0, this.BossShowSpine.node.active = this._isShowBossComing, this.SmallRankList.y = -457, this.SetBossBaseInfo(), t > 0 && t == d.DataCenter.Instance.AllianceId ? (this.SkillContainer.active = !0, this.SetSkillContainer()) : this.ApplyButton.node.active = !0;
                        break;
                    case l.Result:
                        this.BossAvatarNode.active = this._isShowBossBack, this._isShowBossBack && (cc.Tween.stopAllByTarget(this.BossAvatarNode), cc.tween(this.BossAvatarNode).tag(h.PanelConfig.AllianceBossPanel.Id).to(2, {
                            opacity: 0
                        }).call(function() {
                            e.BossAvatarNode.active = !1, e._isShowBossBack = !1
                        }).start()), this.BossShowSpine.setAnimation(0, "Ani_UI_Effect_Boss_liefeng", !0)
                }
            }, t.prototype.SetGiftAndDefeat = function() {
                this.SetGiftShow(), this._isShowDefeatTip ? this.ShowDefeatTip() : this._isShowDefeatTip = !0
            }, t.prototype.SetGiftShow = function() {
                var e = this,
                    t = d.DataCenter.Instance.GetIntData(I.UserDataKey.AllianceBossReward);
                t || (t = 0);
                var n = this._currentBossLevel - 1 - t;
                this.GiftContainer.active = n > 0, n > 0 && this.GiftButtons.forEach(function(n, o) {
                    cc.Tween.stopAllByTarget(n.node);
                    var r = new cc.Vec3(n.node.x, n.node.y, 0),
                        i = new cc.Vec3(n.node.x, n.node.y + 20, 0);
                    o >= t && o < e._currentBossLevel - 1 ? (n.node.active = !0, cc.tween(n.node).tag(h.PanelConfig.AllianceBossPanel.Id).repeatForever(cc.tween().to(1.5, {
                        position: i
                    }).to(1.5, {
                        position: r
                    })).start()) : n.node.active = !1
                })
            }, t.prototype.ShowDefeatTip = function() {
                var e = this;
                cc.Tween.stopAllByTarget(this.DefeatBgNode), cc.Tween.stopAllByTarget(this.DefeatTipContent), this.DefeatTipNode.active = !0, this.DefeatBgNode.x = -1080, this.DefeatTipContent.x = -1080, this.DefeatLevel.string = this._currentBossLevel >= 6 ? "6" : this._currentBossLevel.toString(), this.DefeatBottomSpine.setAnimation(0, "Ani_UI_Effect_Boss_jibai_2", !1), this.DefeatTopSpine.setAnimation(0, "Ani_UI_Effect_Boss_jibai", !1), cc.tween(this.DefeatBgNode).tag(h.PanelConfig.AllianceBossPanel.Id).to(.1, {
                    x: 0
                }).delay(.9).to(.1, {
                    x: 1080
                }).start(), cc.tween(this.DefeatTipContent).tag(h.PanelConfig.AllianceBossPanel.Id).to(.1, {
                    x: 0
                }).delay(.9).to(.1, {
                    x: 1080
                }).call(function() {
                    e.DefeatTipNode.active = !1
                }).start()
            }, t.prototype.SetSkillContainer = function() {
                for (var e = 0; e < this.SkillNodeArray.length; e++) {
                    var t = this._skillComponentsArray[e];
                    if (!t) {
                        var n = cc.instantiate(this._skillPrefab);
                        n.parent = this.SkillNodeArray[e], n.zIndex = -1, t = n.getComponent(f.default), this._skillComponentsArray[e] = t
                    }
                    t.Init(e + 1, this._bossAtlas, this)
                }
            }, t.prototype.SetBossBaseInfo = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._isSetBossBaseInfo ? [2] : (this._isSetBossBaseInfo = !0, e = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceBossHeroId"), t = d.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, e), this.BossName.string = t.Id.ToHeroName(), this.BossAvatarNode.active = !1, [4, this.LoadDynamicAsset("Hero_" + t.Model + "/HeroAvatar", cc.Prefab)]);
                            case 1:
                                return n = s.sent(), this.isValid ? (o = cc.instantiate(n), this._bossPrefab = n, o.setParent(this.BossAvatarNode), this._bossSpineComponent = o.getComponent(sp.Skeleton), this._isShowBossComing ? (r = this.LoadDynamicAsset("AllianceBossPanel/Spine/UI_Effect_Boss_chuchang", sp.SkeletonData), i = this.LoadDynamicAsset("AllianceBossPanel/Spine/UI_Effect_Boss_chuchang_40001", sp.SkeletonData), [4, Promise.all([r, i]).then(function(e) {
                                    if (!a.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                    a.BossComingSpine.skeletonData = e[0], a.BossComingSpine2.skeletonData = e[1]
                                })]) : [3, 3]) : (c.AssetsManager.Instance.UnloadAsset(n), [2]);
                            case 2:
                                return s.sent(), this.BossAvatarNode.active = !0, this._isShowBossComing = !1, this._bossSpineComponent.setAnimation(0, "show", !0), this._bossSpineComponent.setCompleteListener(function() {
                                    a._bossSpineComponent.setAnimation(0, "standby", !0)
                                }), this.BossShowSpine.setAnimation(0, "Ani_UI_Effect_Boss_liefeng_2", !1), this.BossShowSpine.setCompleteListener(function() {
                                    a.BossShowSpine.node.active = !1
                                }), this.BossComingSpine.setAnimation(0, "Ani_UI_Effect_Boss_chuchang", !1), this.BossComingSpine2.setAnimation(0, "Ani_UI_Effect_Boss_chuchang_40001", !1), [3, 4];
                            case 3:
                                this.BossAvatarNode.active = !0, this._bossSpineComponent.setAnimation(0, "standby", !0), s.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetPlayerAvatarContainer = function(e) {
                var t = d.DataCenter.Instance.GetIntData(I.UserDataKey.AllianceBossApply);
                t > 0 && t == d.DataCenter.Instance.AllianceId && (this._myAttackPower = e[0].Power, this.SetHeroAvatar(0, e[0], e.length));
                for (var n = 1; n < this._heroAvatarCount; n++) {
                    var o = e[t > 0 && t == d.DataCenter.Instance.AllianceId ? n : n - 1];
                    o && this.SetHeroAvatar(n, o, e.length)
                }
            }, t.prototype.SetHeroAvatar = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return !this._avatarLoadIdList[e] || this._avatarLoadIdList[e] != t.HeadIcon && t.Uid > 0 ? (this._avatarLoadIdList[e] && this.PutHeroAvatar(this._avatarLoadIdList[e], this.PlayerAvatarNodeArray[e].children[0]), this._avatarLoadIdList[e] = t.HeadIcon, [4, this.GetHeroAvatar(t.HeadIcon)]) : [3, 2];
                            case 1:
                                return (n = r.sent()).setParent(this.PlayerAvatarNodeArray[e]), (o = n.getComponent(sp.Skeleton)).setAnimation(0, "standby", !0), this._avatarSkeletonArray[e] = o, this.SetPlayerFrameNode(n, t, e), this._isPlayHeroAttacks[e] || this._currentStage != l.Battle || (this._isPlayHeroAttacks[e] = !0, this.SetPlayersAttack(e)), [3, 3];
                            case 2:
                                this._avatarLoadIdList[e] && !this._isPlayHeroAttacks[e] && this._currentStage == l.Battle && (this._isPlayHeroAttacks[e] = !0, this.SetPlayersAttack(e)), r.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetPlayerFrameNode = function(e, t, n) {
                if (this._playerFrameNodeArray[n] && (this._playerFrameNodeArray[n].active = !1), this._playerNameLabelArray[n] && (this._playerNameLabelArray[n].node.active = !1), t.Uid == d.DataCenter.Instance.Uid || t.Uid == this._leaderUid || this._viceLeaderUids.includes(t.Uid)) {
                    var o = this._playerFrameNodeArray[n];
                    o || ((o = cc.instantiate(this.PlayerFrameNode)).setParent(this.PlayerFrameContainer), this._playerFrameNodeArray[n] = o), o.active = !0, o.position = new cc.Vec3(.875 * e.parent.x, .875 * e.parent.y + 240);
                    var r = o.children[0].getComponent(cc.Label),
                        i = t.Uid == d.DataCenter.Instance.Uid;
                    i ? r.string = t.Name : t.Uid == this._leaderUid ? r.string = "[" + "allianceBase_memberTitleLeader".ToUILocale() + "]" + t.Name : r.string = "[" + "allianceBase_memberTitleVice".ToUILocale() + "]" + t.Name, r.node.color = i ? (new cc.Color).fromHEX("#6EEEA7") : (new cc.Color).fromHEX("FFFFFF")
                } else {
                    if (!(r = this._playerNameLabelArray[n])) {
                        var a = cc.instantiate(this.PlayerFrameNode.children[0]);
                        a.setParent(this.PlayerFrameContainer), r = a.getComponent(cc.Label), this._playerNameLabelArray[n] = r, r.node.color = (new cc.Color).fromHEX("#999999")
                    }
                    r.node.active = !0, r.node.position = new cc.Vec3(.875 * e.parent.x, .875 * e.parent.y + 240), r.string = t.Uid > 0 ? t.Name : "allianceBoss_defence_default_name".ToUILocale()
                }
            }, t.prototype.SetPlayersAttack = function(e) {
                var t = this,
                    n = this._avatarSkeletonArray[e],
                    o = d.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, this._avatarLoadIdList[e]);
                if (!o && this._avatarLoadIdList[e]) {
                    var r = Math.floor(this._avatarLoadIdList[e] / 100);
                    o = d.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, r)
                }
                if (o) {
                    var i = 1 == (o.AvatarAttackType ? o.AvatarAttackType : o.Id % 2 + 1) ? 0 : 2,
                        a = this.GetAttackStartTime(o.Model);
                    this.scheduleOnce(function() {
                        t.SetPlayerAttackSpine(i, n, a, 0 == e)
                    }, .2 * e)
                }
            }, t.prototype.GetAttackStartTime = function(e) {
                for (var t = d.ConfigDataComponent.Instance.GetHeroSkillConfig(e), n = 0; n < t.Skills[0].Events.length; n++) {
                    var o = t.Skills[0].Events[n];
                    if (o.EventType == I.SkillEventType.HitPoint) return o.StartTime
                }
            }, t.prototype.SetPlayerAttackSpine = function(e, t, n, o) {
                return a(this, void 0, void 0, function() {
                    var r, i, a, c, u, p, d = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return [4, this.GetSpineNode(e)];
                            case 1:
                                return (r = s.sent()).setParent(this.PlayerAttackContainer), r.active = !1, i = new cc.Vec3(.875 * t.node.parent.x + 80, .875 * t.node.parent.y + 120, 0), a = Math.floor(Math.random() * this.BOSS_HURT_POINTS.length), c = this.BOSS_HURT_POINTS[a], u = new cc.Vec3(c[0], c[1], 0), r.position = i, r.angle = S.BattleHelper.GetBulletAngle(u, i), p = r.getComponent(sp.Skeleton), t.setAnimation(0, "attack", !1), t.setCompleteListener(function() {
                                    t.setAnimation(0, "standby", !0)
                                }), cc.Tween.stopAllByTarget(r), cc.tween(r).tag(h.PanelConfig.AllianceBossPanel.Id).delay(n / 1e3 - .2).call(function() {
                                    r.active = !0, p.setAnimation(0, "attack_bullet_effect", !0)
                                }).to(.2, {
                                    position: u
                                }).call(function() {
                                    p.setAnimation(0, "attack_bomb_effect", !1), p.setCompleteListener(function() {
                                        d.PutSpineNode(e, r), o && d.SetPlayerDamageLabel(), d._currentStage == l.Battle && (o && d._isMyHeroAddSpine ? d.scheduleOnce(function() {
                                            var r = 0 == e || 2 == e ? e + 1 : e;
                                            d.SetPlayerAttackSpine(r, t, n, o)
                                        }, .1) : d.scheduleOnce(function() {
                                            var r = 0 == e || 2 == e ? e : e - 1;
                                            d.SetPlayerAttackSpine(r, t, n, o)
                                        }, 2))
                                    }), d.SetBossPlaySkill()
                                }).start(), [2]
                        }
                    })
                })
            }, t.prototype.SetPlayerDamageLabel = function() {
                this._myAttackDamage || (this._myAttackDamage = this.GetPlayerCurrentPowerDamage());
                var e = this._myAttackDamage;
                this._isMyHeroAddSpine && (e += e), this._isOthersUseSkill4 && (e *= .7), this._isOthersUseSkill5 && (e *= .7), this.MyPlayerDamageLabel.node.active = !1, cc.Tween.stopAllByTarget(this.MyPlayerDamageLabel.node);
                var t = new cc.Vec3(170, 390, 0),
                    n = new cc.Vec3(170, 490, 0);
                this.MyPlayerDamageLabel.node.setPosition(t), this.MyPlayerDamageLabel.string = Math.floor(e).toString(), this.MyPlayerDamageLabel.node.active = !0, this.MyPlayerDamageLabel.node.opacity = 255, cc.tween(this.MyPlayerDamageLabel.node).tag(h.PanelConfig.AllianceBossPanel.Id).to(1, {
                    position: n,
                    opacity: 0
                }).start()
            }, t.prototype.GetPlayerCurrentPowerDamage = function() {
                var e, t, n = d.ConfigDataComponent.Instance.GetArrayConfig(y.AllianceBOSSPowerDamage_Config);
                for (var o in n) {
                    if (this._myAttackPower < n[o].Power) {
                        t = n[o];
                        break
                    }
                    e = n[o]
                }
                var r = 0;
                e && (r = e.Damage);
                var i = 0;
                return t && e ? i = (this._myAttackPower - e.Power) / (t.Power - e.Power) * (t.Damage - e.Damage) : t && (i = this._myAttackPower / t.Power * t.Damage), r + i
            }, t.prototype.SetBossPlaySkill = function() {
                this._attackBossTimes++, 5 == this._attackBossTimes ? (this.PlayAnimation(this._bossSpineComponent, "attack", "standby"), this.BossSKillSpine1.setAnimation(0, "attack_weapon_effect", !1), this.BossSkillSpine2.setAnimation(0, "attack_weapon_effect_2", !1)) : 20 == this._attackBossTimes ? this.PlayAnimation(this._bossSpineComponent, "attack", "standby") : 35 == this._attackBossTimes ? this.PlayAnimation(this._bossSpineComponent, "hurt", "standby") : 45 == this._attackBossTimes ? (this.PlayAnimation(this._bossSpineComponent, "burstattack", "standby"), this.BossSKillSpine1.setAnimation(0, "burstattack_weapon_effect", !1), this.BossSkillSpine2.setAnimation(0, "burstattack_weapon_effect_2", !1)) : 55 == this._attackBossTimes && (this._attackBossTimes = 0, this.PlayAnimation(this._bossSpineComponent, "hurt", "standby"))
            }, t.prototype.PlayAnimation = function(e, t, n) {
                var o = this;
                if (e && !this._isBossPlaySkill) {
                    this._isBossPlaySkill = !0, e.clearTracks(), e.setMix(n, t, .1);
                    var r = e.setAnimation(0, t, !1);
                    this.scheduleOnce(function() {
                        e.setAnimation(0, n, !0), o._isBossPlaySkill = !1
                    }, r.animationEnd - .1)
                }
            }, t.prototype.SetDeadLine = function() {
                var e = d.RpcComponent.Instance.ServerTime;
                if (e < this._battleStartTime) {
                    var t = this._battleStartTime - e;
                    this.LeftTime.string = "allianceBoss_nextBattle_timeTip".ToUILocale().Fmt(_.default.ActivityTimeLeftFormat(t)), this._currentStage != l.Apply && (this._currentStage = l.Apply, this.SetCurrentShow())
                } else e < this._battleEndTime ? (t = this._battleEndTime - e, this.LeftTime.string = "allianceBoss_currentBattle_timeTip".ToUILocale().Fmt(_.default.ActivityTimeLeftFormat(t)), this._intervalIndex++, this._currentStage != l.Battle && (this._currentStage = l.Battle, this._isShowBossComing = !0, this.SetCurrentShow())) : e < this._todayEndTime ? (t = this._battleStartTime + I.Etc.DayDuration - e, this.LeftTime.string = "allianceBoss_nextBattle_timeTip".ToUILocale().Fmt(_.default.ActivityTimeLeftFormat(t)), this._currentStage != l.Result && (this._currentStage = l.Result, this._isShowBossBack = !0, this.SetCurrentShow())) : (this.SetCurrentStage(), this.SetCurrentShow());
                this._intervalIndex >= this._refreshInterval && (this._intervalIndex = 0, this.RefreshPanelInfo())
            }, t.prototype.OnUseSkill = function(e) {
                switch (d.ConfigDataComponent.Instance.GetConfigById(y.AllianceBOSSSkill_Config, e).Effect[0]) {
                    case 1:
                    case 2:
                        this.RequestUseSkill(e);
                        break;
                    case 3:
                        if (this._isUseAllianceSkill) return void u.UIUtlity.ShowFloatingHint("allianceBoss_skill_allianceUse".ToUILocale());
                        this.OnUseAllianceSkill(e)
                }
            }, t.prototype.RequestUseSkill = function(e, t) {
                var n = this,
                    o = new p.Req_Alliance_AllianceBossSkill;
                o.BuffType = e, t && (o.AllianceId = t), d.RpcComponent.Instance.Call(o, function() {
                    n.PlaySkillEffect(e)
                })
            }, t.prototype.OnUseAllianceSkill = function(e) {
                var t = this,
                    n = new p.Req_Alliance_GetAllianceBossRank;
                n.Type = 1, d.RpcComponent.Instance.Call(n, function(n) {
                    if (n.Rank.length <= 1) u.UIUtlity.ShowFloatingHint("allianceBoss_rank_alliance_notData".ToUILocale());
                    else {
                        t._useSkillAllianceArray = [];
                        for (var o = n.MyRank - 1, r = o - 2 < 0 ? 0 : o - 2, i = o + 2 > n.Rank.length - 1 ? n.Rank.length - 1 : o + 2, a = r; a <= i && (n.Rank[a] && a != o && t._useSkillAllianceArray.push(n.Rank[a]), !(t._useSkillAllianceArray.length >= 3)); a++);
                        t._useAllianceSkillConfigId = e, 5 == e ? (t._useSkillAlliacneIndex = 0, t.RequestUseSkill(t._useAllianceSkillConfigId, t._useSkillAllianceArray[0].AllianceInfo.Id)) : t.SetTipNodeShow(e)
                    }
                })
            }, t.prototype.SetTipNodeShow = function(e) {
                var t = this;
                this.SkillUseTipNode.active = !0, this.TouchMask.active = !0;
                var n = d.ConfigDataComponent.Instance.GetConfigById(y.AllianceBOSSSkill_Config, e).Items[0].Items[0];
                this.SkillUseTipTitle.string = n.ToItemName(), this.SkillUseTipContent.string = n.ToItemDesc(), this.SkillUseTipCount.string = d.DataCenter.Instance.GetItemCount(n).toString(), this.SkillUseTipAllianceName.forEach(function(e, n) {
                    t._useSkillAllianceArray[n] ? (e.node.parent.active = !0, e.string = t._useSkillAllianceArray[n].AllianceInfo.Name) : e.node.parent.active = !1
                })
            }, t.prototype.OnSkillUseTipButtonClick = function(e) {
                this._useSkillAlliacneIndex = e, this.RequestUseSkill(this._useAllianceSkillConfigId, this._useSkillAllianceArray[e].AllianceInfo.Id)
            }, t.prototype.PlaySkillEffect = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                switch (t = d.ConfigDataComponent.Instance.GetConfigById(y.AllianceBOSSSkill_Config, e), n = ("allianceBoss_skill_useTip_" + e).ToUILocale().Fmt(d.DataCenter.Instance.GetStringData(I.UserDataKey.RoleName), t.Items[0].Items[0].ToItemName()), u.UIUtlity.ShowFloatingHint(n), e) {
                                    case 1:
                                        return [3, 1];
                                    case 2:
                                        return [3, 5];
                                    case 3:
                                    case 4:
                                    case 5:
                                        return [3, 9]
                                }
                                return [3, 10];
                            case 1:
                                return o = "Buff_Effect_Boss_zengshang", this._spineMapList[o] ? (this.PlayType1Spine(t, o, this.MyAvatarAddSpine, !0), [3, 4]) : [3, 2];
                            case 2:
                                return [4, this.LoadSpineAsset(o).then(function(e) {
                                    a.MyAvatarAddSpine.skeletonData = e, a._spineMapList[o] = e, a.PlayType1Spine(t, o, a.MyAvatarAddSpine, !0)
                                })];
                            case 3:
                                s.sent(), s.label = 4;
                            case 4:
                                return [3, 11];
                            case 5:
                                return r = "Buff_Effect_Boss_jiasu", this._spineMapList[r] ? (this.PlayType1Spine(t, r, this.AddSpeedSpine, !0), [3, 8]) : [3, 6];
                            case 6:
                                return [4, this.LoadSpineAsset(r).then(function(e) {
                                    a.AddSpeedSpine.skeletonData = e, a._spineMapList[r] = e, a.PlayType1Spine(t, r, a.AddSpeedSpine, !0)
                                })];
                            case 7:
                                s.sent(), s.label = 8;
                            case 8:
                                return [3, 11];
                            case 9:
                                return this.SkillUseTipNode.active = !1, this.TouchMask.active = !1, this.TargetBossTopSpine.node.active = !1, this.TargetBossBottomSpine.node.active = !1, this.TargetBossAvatar.active = !1, this.TargetHeroAvatars.forEach(function(e) {
                                    e.active = !1
                                }), this._isUseAllianceSkill = !0, this.SkillEffectScreenNode.scale = 0, this.SkillEffectScreenNode.active = !0, i = this._useSkillAllianceArray[this._useSkillAlliacneIndex].AllianceInfo.Name, this.TargetAllianceName.string = "allianceBase_allianceMainTitle".ToUILocale() + ":" + i, this.TargetAllianceDesc.string = ("allianceBoss_skill_useTip_desc_" + t.Id).ToUILocale().Fmt(i), cc.tween(this.SkillEffectScreenNode).tag(h.PanelConfig.AllianceBossPanel.Id).to(.1, {
                                    scale: 1.2
                                }).to(.1, {
                                    scale: 1
                                }).call(function() {
                                    a.SetAllianceSkill(t)
                                }).delay(2.6).to(.1, {
                                    scale: 1.2
                                }).to(.1, {
                                    scale: 0
                                }).call(function() {
                                    a.SkillEffectScreenNode.active = !1, a._isUseAllianceSkill = !1
                                }).start(), [3, 11];
                            case 10:
                                return [3, 11];
                            case 11:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetAllianceSkill = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return 3 != e.Id ? [3, 4] : (this.TargetBossTopSpine.node.active = !0, t = "UI_Effect_Boss_jinengkuang_baoxue", this._spineMapList[t] ? (this.SetTargetHero(), this.TargetBossTopSpine.skeletonData = this._spineMapList[t], this.PlayType1Spine(e, t, this.TargetBossTopSpine, !1), [3, 3]) : [3, 1]);
                            case 1:
                                return [4, this.LoadSpineAsset(t).then(function(n) {
                                    l.TargetBossTopSpine.skeletonData = n, l._spineMapList[t] = n, l.SetTargetHero(), l.PlayType1Spine(e, t, l.TargetBossTopSpine, !1)
                                })];
                            case 2:
                                s.sent(), s.label = 3;
                            case 3:
                                return [3, 11];
                            case 4:
                                return 4 != e.Id ? [3, 8] : (this.TargetBossTopSpine.node.active = !0, n = "UI_Effect_Boss_jinengkuang_dun", this._spineMapList[n] ? (this.SetTargetBoss(), this.TargetBossTopSpine.skeletonData = this._spineMapList[n], this.PlayType1Spine(e, n, this.TargetBossTopSpine, !1), [3, 7]) : [3, 5]);
                            case 5:
                                return [4, this.LoadSpineAsset(n).then(function(t) {
                                    l.TargetBossTopSpine.skeletonData = t, l._spineMapList[n] = t, l.SetTargetBoss(), l.PlayType1Spine(e, n, l.TargetBossTopSpine, !1)
                                })];
                            case 6:
                                s.sent(), s.label = 7;
                            case 7:
                                return [3, 11];
                            case 8:
                                return 5 != e.Id ? [3, 11] : (this.TargetBossTopSpine.node.active = !0, this.TargetBossBottomSpine.node.active = !0, o = "UI_Effect_Boss_jinengkuang_miwu", r = "UI_Effect_Boss_jinengkuang_miwu_2", this._spineMapList[o] ? (this.SetTargetBoss(), this.TargetBossTopSpine.skeletonData = this._spineMapList[o], this.TargetBossBottomSpine.skeletonData = this._spineMapList[r], this.PlayType1Spine(e, o, this.TargetBossTopSpine, !1), this.PlayType1Spine(e, r, this.TargetBossBottomSpine, !1), [3, 11]) : [3, 9]);
                            case 9:
                                return i = this.LoadSpineAsset(o), a = this.LoadSpineAsset(r), [4, Promise.all([i, a]).then(function(t) {
                                    l.TargetBossTopSpine.skeletonData = t[0], l._spineMapList[o] = t[0], l.TargetBossBottomSpine.skeletonData = t[1], l._spineMapList[r] = t[1], l.SetTargetBoss(), l.PlayType1Spine(e, o, l.TargetBossTopSpine, !1), l.PlayType1Spine(e, r, l.TargetBossBottomSpine, !1)
                                })];
                            case 10:
                                s.sent(), s.label = 11;
                            case 11:
                                return [2]
                        }
                    })
                })
            }, t.prototype.LoadSpineAsset = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return [4, this.LoadDynamicAsset("AllianceBossPanel/Spine/" + e, sp.SkeletonData)];
                            case 1:
                                return t = n.sent(), this.isValid ? [2, t] : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.PlayType1Spine = function(e, t, n, o) {
                var r = this;
                cc.Tween.stopAllByTarget(n.node), 1 == e.Id && (this._isMyHeroAddSpine = !0), n.node.active = !0, n.setAnimation(0, "Ani_" + t, o), o && (4 == e.Id ? this._isOthersUseSkill4 = !0 : 5 == e.Id && (this._isOthersUseSkill5 = !0), cc.tween(n.node).tag(h.PanelConfig.AllianceBossPanel.Id).delay(e.Time).call(function() {
                    n.node.active = !1, 1 == e.Id ? r._isMyHeroAddSpine = !1 : 4 == e.Id ? r._isOthersUseSkill4 = !1 : 5 == e.Id && (r._isOthersUseSkill5 = !1)
                }).start())
            }, t.prototype.SetTargetHero = function() {
                var e = this;
                this._isSetTargetHero || (this._isSetTargetHero = !0, this.TargetHeroAvatars.forEach(function(t) {
                    e.LoadTargetHero(t)
                })), this.TargetHeroAvatars.forEach(function(e) {
                    e.active = !0
                })
            }, t.prototype.LoadTargetHero = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return [4, this.GetHeroNode(this.DEFAULT_TARGET_HERO_ID)];
                            case 1:
                                return (t = n.sent()).parent = e, t.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), [2]
                        }
                    })
                })
            }, t.prototype.SetTargetBoss = function() {
                if (!this._isSetTargetBoss) {
                    this._isSetTargetBoss = !0;
                    var e = cc.instantiate(this._bossPrefab);
                    e.setParent(this.TargetBossAvatar), e.getComponent(sp.Skeleton).setAnimation(0, "standby", !0)
                }
                this.TargetBossAvatar.active = !0
            }, t.prototype.OnOthersUseSkill = function(e) {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function() {
                        return this.scheduleOnce(function() {
                            t.DelaySetOthersUseSkill(e)
                        }, 1), [2]
                    })
                })
            }, t.prototype.DelaySetOthersUseSkill = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, c, p = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return 1 == e.Id || 2 == e.Id ? [2] : (t = d.ConfigDataComponent.Instance.GetConfigById(y.AllianceBOSSSkill_Config, e.Id), n = ("allianceBoss_skill_useTip_others_" + t.Id).ToUILocale().Fmt(e.From), u.UIUtlity.ShowFloatingHint(n), 3 != t.Id ? [3, 4] : (o = "Buff_Effect_Boss_baoxue", this._spineMapList[o] ? (this.PlayType1Spine(t, o, this.BossAttackSpine, !0), [3, 3]) : [3, 1]));
                            case 1:
                                return [4, this.LoadSpineAsset(o).then(function(e) {
                                    p.BossAttackSpine.skeletonData = e, p._spineMapList[o] = e, p.PlayType1Spine(t, o, p.BossAttackSpine, !0)
                                })];
                            case 2:
                                s.sent(), s.label = 3;
                            case 3:
                                return [3, 11];
                            case 4:
                                return 4 != t.Id ? [3, 8] : (r = "Buff_Effect_Boss_dun", this._spineMapList[r] ? (this.PlayType1Spine(t, r, this.BossDefendSpine, !0), [3, 7]) : [3, 5]);
                            case 5:
                                return [4, this.LoadSpineAsset(r).then(function(e) {
                                    p.BossDefendSpine.skeletonData = e, p._spineMapList[r] = e, p.PlayType1Spine(t, r, p.BossDefendSpine, !0)
                                })];
                            case 6:
                                s.sent(), s.label = 7;
                            case 7:
                                return [3, 11];
                            case 8:
                                return 5 != t.Id ? [3, 11] : (i = "Buff_Effect_Boss_miwu", a = "Buff_Effect_Boss_miwu_2", this._spineMapList[i] ? (this.PlayType1Spine(t, i, this.BossTopSpine, !0), this.PlayType1Spine(t, a, this.BossBottomSpine, !0), [3, 11]) : [3, 9]);
                            case 9:
                                return l = this.LoadSpineAsset(i), c = this.LoadSpineAsset(a), [4, Promise.all([l, c]).then(function(e) {
                                    p.BossTopSpine.skeletonData = e[0], p._spineMapList[i] = e[0], p.BossBottomSpine.skeletonData = e[1], p._spineMapList[a] = e[1], p.PlayType1Spine(t, i, p.BossTopSpine, !0), p.PlayType1Spine(t, a, p.BossBottomSpine, !0)
                                })];
                            case 10:
                                s.sent(), s.label = 11;
                            case 11:
                                return [2]
                        }
                    })
                })
            }, t.prototype.GetHeroAvatar = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return (t = this._heroNodePoolList[e]) ? t.size() > 0 ? [2, t.get()] : [3, 1] : [3, 4];
                            case 1:
                                return [4, this.GetHeroNode(e)];
                            case 2:
                                return [2, n.sent()];
                            case 3:
                                return [3, 6];
                            case 4:
                                return t = new cc.NodePool, this._heroNodePoolList[e] = t, [4, this.GetHeroNode(e)];
                            case 5:
                                return [2, n.sent()];
                            case 6:
                                return [2]
                        }
                    })
                })
            }, t.prototype.GetHeroNode = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this._heroPrefabList[e] ? [3, 2] : (t = d.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, e), n = void 0, t ? n = "Hero_" + t.Model + "/HeroAvatar" : (o = d.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, e), n = "Hero_" + o.Model + "/HeroAvatar"), [4, this.LoadDynamicAsset(n, cc.Prefab)]);
                            case 1:
                                if (r = i.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(r), [2];
                                this._heroPrefabList[e] = r, i.label = 2;
                            case 2:
                                return [2, cc.instantiate(this._heroPrefabList[e])]
                        }
                    })
                })
            }, t.prototype.PutHeroAvatar = function(e, t) {
                this._heroNodePoolList[e] || (this._heroNodePoolList[e] = new cc.NodePool), this._heroNodePoolList[e].put(t)
            }, t.prototype.GetSpineNode = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return (t = this._attackSpineNodePoolList[e]) ? t.size() > 0 ? [2, t.get()] : [3, 1] : [3, 4];
                            case 1:
                                return [4, this.GetNewSpine(e)];
                            case 2:
                                return [2, n.sent()];
                            case 3:
                                return [3, 6];
                            case 4:
                                return t = new cc.NodePool, this._attackSpineNodePoolList[e] = t, [4, this.GetNewSpine(e)];
                            case 5:
                                return [2, n.sent()];
                            case 6:
                                return [2]
                        }
                    })
                })
            }, t.prototype.GetNewSpine = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this._attackSpineDtaList[e] ? [3, 2] : (t = "AllianceBossPanel/Spine/" + this.ATTACK_SPINE_NAMES[e], [4, this.LoadDynamicAsset(t, sp.SkeletonData)]);
                            case 1:
                                if (n = r.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(n), [2];
                                this._attackSpineDtaList[e] = n, r.label = 2;
                            case 2:
                                return (o = new cc.Node).addComponent(sp.Skeleton).skeletonData = this._attackSpineDtaList[e], [2, o]
                        }
                    })
                })
            }, t.prototype.PutSpineNode = function(e, t) {
                this._attackSpineNodePoolList[e] || (this._attackSpineNodePoolList[e] = new cc.NodePool), this._attackSpineNodePoolList[e].put(t)
            }, t.prototype.OnTouchMaskNodeClick = function() {
                this.SkillUseTipNode.active = !1, this.TouchMask.active = !1
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "allianceBoss_rule_name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["allianceBoss_rule_content".ToUILocale()]
                };
                u.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnServerButtonClick = function() {
                var e = new p.Req_CrossZone_GetGroupInfo;
                d.RpcComponent.Instance.Call(e, this.OnGetServerGroupInfo.bind(this))
            }, t.prototype.OnGetServerGroupInfo = function(e) {
                e.Zones.length > 0 ? c.UIManager.Instance.ShowUIPanel(h.PanelConfig.CrossServerSpaceTimePanel.Path, e) : u.UIUtlity.ShowFloatingHint("CrossServerLimitHint".ToUILocale())
            }, t.prototype.OnRewardPreviewButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AllianceBossRankRewardPanel.Path)
            }, t.prototype.OnRankDetailButtonClick = function() {
                if (this._currentStage != l.Apply) {
                    var e = new p.Req_Player_GetRank;
                    e.RankType = I.RankTypeId.AllianceBoss, e.Params = [d.RpcComponent.Instance.ServerTime], d.RpcComponent.Instance.Call(e, function(e) {
                        var t = e.MyRankData;
                        e.MyRankData && (t.Id = e.MyRank ? e.MyRank : 0);
                        var n = e.Data && e.Data.Rows ? e.Data.Rows : [];
                        c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AllianceBossRankPanel.Path, n, t)
                    })
                } else u.UIUtlity.ShowFloatingHint("allianceBoss_rank_applyStage_tip".ToUILocale())
            }, t.prototype.OnApplyButtonClick = function() {
                var e = this,
                    t = d.DataCenter.Instance.GetIntData(I.UserDataKey.AllianceBossApply);
                if (t > 0 && t == d.DataCenter.Instance.AllianceId) u.UIUtlity.ShowFloatingHint("allianceBoss_alreadyApply".ToUILocale());
                else {
                    var n = new p.Req_Alliance_AllianceBossApply;
                    d.RpcComponent.Instance.Call(n, function(t) {
                        e.ChallengePlayerCount.string = t.Players.length.toString(), e.SetPlayerAvatarContainer(t.Players), v.RedDotManager.Instance.Bind(e.ApplyButton.node, v.RedDotManager.Instance.RedDot.AllianceBossApplyBtnNode), e.SetCurrentShow()
                    })
                }
            }, t.prototype.OnGiftButtonClick = function() {
                var e = this,
                    t = d.DataCenter.Instance.GetIntData(I.UserDataKey.AllianceBossReward);
                if (t || (t = 0), this._currentBossLevel - 1 - t <= 0) this.SetGiftShow();
                else {
                    var n = new p.Req_Alliance_AllianceBossReward;
                    d.RpcComponent.Instance.Call(n, function(t) {
                        u.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.SetGiftShow()
                    })
                }
            }, t.prototype.ShowGameGuid = function(e) {
                if (!e || e == this._guideGroupId) {
                    var t = d.DataCenter.Instance.GetIntData(I.UserDataKey.AllianceBossApply),
                        n = this._currentStage == l.Battle && t > 0 && t == d.DataCenter.Instance.AllianceId ? [10026, 10027] : [10026],
                        o = w.default.Instance.GetCurrentGroupId(n);
                    if (!(o <= 0)) {
                        this._guideGroupId && this._guideGroupId == o || (this._guideGroupId = o, this._guideStepIndex = 0);
                        var r = d.ConfigDataComponent.Instance.GetConfigById(y.GameModuleGuideGroup_Config, this._guideGroupId);
                        if (r)
                            for (var i = 0; i < r.GameModuleGuideStepIds.length; i++) {
                                var a = !0;
                                switch (r.GameModuleGuideStepIds[this._guideStepIndex]) {
                                    case 68:
                                    case 69:
                                    case 70:
                                    case 71:
                                        w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                        break;
                                    case 72:
                                        w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.SkillNodeArray[0]);
                                        break;
                                    default:
                                        a = !1
                                }
                                if (this._guideStepIndex++, a) break
                            }
                    }
                }
            }, t.prototype.onDestroy = function() {
                if (this.unscheduleAllCallbacks(), cc.Tween.stopAllByTag(h.PanelConfig.AllianceBossPanel.Id), this._heroNodePoolList)
                    for (var e in this._heroNodePoolList) this._heroNodePoolList[e].clear()
            }, i([T(cc.Label)], t.prototype, "Title", void 0), i([T(cc.RichText)], t.prototype, "LeftTime", void 0), i([T(cc.Button)], t.prototype, "RuleButton", void 0), i([T(cc.Button)], t.prototype, "ServerButton", void 0), i([T(cc.Label)], t.prototype, "ServerLabel", void 0), i([T(cc.Node)], t.prototype, "SmallRankList", void 0), i([T(cc.Label)], t.prototype, "RankTitle", void 0), i([T([cc.Label])], t.prototype, "ThreeRankName", void 0), i([T([cc.Label])], t.prototype, "ThreeRankValue", void 0), i([T(cc.RichText)], t.prototype, "MyAllianceRankTag", void 0), i([T(cc.Button)], t.prototype, "RankDetailButton", void 0), i([T(cc.Button)], t.prototype, "ApplyButton", void 0), i([T(cc.Label)], t.prototype, "ApplyButtonLabel", void 0), i([T(cc.Button)], t.prototype, "RewardPreviewButton", void 0), i([T(cc.Label)], t.prototype, "RewardPreviewButtonLabel", void 0), i([T([cc.Node])], t.prototype, "PlayerAvatarNodeArray", void 0), i([T(cc.Node)], t.prototype, "PlayerFrameContainer", void 0), i([T(cc.Node)], t.prototype, "PlayerFrameNode", void 0), i([T(cc.Node)], t.prototype, "PlayerAttackContainer", void 0), i([T(sp.Skeleton)], t.prototype, "MyAvatarAddSpine", void 0), i([T(sp.Skeleton)], t.prototype, "AddSpeedSpine", void 0), i([T(cc.Label)], t.prototype, "MyPlayerDamageLabel", void 0), i([T(cc.Node)], t.prototype, "BossInfoNode", void 0), i([T(cc.Node)], t.prototype, "BossAvatarNode", void 0), i([T(sp.Skeleton)], t.prototype, "BossShowSpine", void 0), i([T(sp.Skeleton)], t.prototype, "BossComingSpine", void 0), i([T(sp.Skeleton)], t.prototype, "BossComingSpine2", void 0), i([T(sp.Skeleton)], t.prototype, "BossBottomSpine", void 0), i([T(sp.Skeleton)], t.prototype, "BossTopSpine", void 0), i([T(sp.Skeleton)], t.prototype, "BossDefendSpine", void 0), i([T(sp.Skeleton)], t.prototype, "BossAttackSpine", void 0), i([T(sp.Skeleton)], t.prototype, "BossSKillSpine1", void 0), i([T(sp.Skeleton)], t.prototype, "BossSkillSpine2", void 0), i([T(cc.Label)], t.prototype, "BossName", void 0), i([T(cc.Label)], t.prototype, "BossLevel", void 0), i([T(cc.Label)], t.prototype, "BossHpProgress", void 0), i([T(cc.Label)], t.prototype, "BossDamageSecond", void 0), i([T(cc.Label)], t.prototype, "ChallengePlayerCount", void 0), i([T(C.default)], t.prototype, "BossHpProgressBar", void 0), i([T(cc.Node)], t.prototype, "BossHpProgressMaskNode", void 0), i([T(cc.Node)], t.prototype, "SkillContainer", void 0), i([T([cc.Node])], t.prototype, "SkillNodeArray", void 0), i([T(cc.Node)], t.prototype, "SkillUseTipNode", void 0), i([T(cc.Label)], t.prototype, "SkillUseTipTitle", void 0), i([T(cc.Label)], t.prototype, "SkillUseTipContent", void 0), i([T(cc.Label)], t.prototype, "SkillUseTipCount", void 0), i([T([cc.Label])], t.prototype, "SkillUseTipAllianceName", void 0), i([T([cc.Button])], t.prototype, "SkillUseTipButton", void 0), i([T([cc.Label])], t.prototype, "SkillUseTipButtonLabel", void 0), i([T(cc.Node)], t.prototype, "SkillEffectScreenNode", void 0), i([T(cc.Node)], t.prototype, "TargetBossAvatar", void 0), i([T([cc.Node])], t.prototype, "TargetHeroAvatars", void 0), i([T(sp.Skeleton)], t.prototype, "TargetBossBottomSpine", void 0), i([T(sp.Skeleton)], t.prototype, "TargetBossTopSpine", void 0), i([T(cc.Label)], t.prototype, "TargetAllianceName", void 0), i([T(cc.Label)], t.prototype, "TargetAllianceDesc", void 0), i([T(cc.Node)], t.prototype, "TouchMask", void 0), i([T([cc.Button])], t.prototype, "GiftButtons", void 0), i([T(cc.Node)], t.prototype, "GiftContainer", void 0), i([T(cc.Node)], t.prototype, "DefeatTipNode", void 0), i([T(cc.Node)], t.prototype, "DefeatBgNode", void 0), i([T(cc.Node)], t.prototype, "DefeatTipContent", void 0), i([T(sp.Skeleton)], t.prototype, "DefeatBottomSpine", void 0), i([T(sp.Skeleton)], t.prototype, "DefeatTopSpine", void 0), i([T(cc.Label)], t.prototype, "DefeatLevel", void 0), i([T(cc.Button)], t.prototype, "ReturnButton", void 0), i([A], t)
        }(c.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareBattle/BattleHelper": "BattleHelper",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AllianceBossSkillItem": "AllianceBossSkillItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager"
    }],
    AllianceBossRankListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9b29dzaLZhMIom4Z5EDp2al", "AllianceBossRankListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("./HeadComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BottomBg = null, t.Border = null, t.Tag = null, t.RankIcon = null, t.RankLabel = null, t.PlayerInfoNode = null, t.AllianceInfoNode = null, t.PlayerInfoScoreTag = null, t.PlayerInfoScoreValue = null, t.PlayerInfoName = null, t.PlayerInfoPlayerLevel = null, t.PlayerInfoHeadNode = null, t.AllianceInfoName = null, t.AllianceInfoNumTag = null, t.AllianceInfoNumValue = null, t.AllianceInfoFlag = null, t.AllianceInfoIcon = null, t.AllianceInfoLevel = null, t.AllianceInfoDamage = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.AllianceInfoNumTag.string = "allianceBoss_rank_tag_allianceNum".ToUILocale(), this.PlayerInfoScoreTag.string = "activityBoss_score".ToUILocale()
                }, t.prototype.Init = function(e, t, n, o, r) {
                    if (this._rankData = e, this._headPrefab = o, this.RankLabel.node.active = !1, this.RankIcon.node.active = !1, e.Id <= 3 ? (this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e.Id), this.BottomBg.spriteFrame = t.getSpriteFrame("rankBottomBg" + e.Id), this.Border.spriteFrame = t.getSpriteFrame("rankBorder" + e.Id), this.Tag.spriteFrame = t.getSpriteFrame("tag" + e.Id)) : (this.RankLabel.node.active = !0, this.RankLabel.string = "" + e.Id, this.BottomBg.spriteFrame = a.UIUtlity.COMMON_ATLAS5.getSpriteFrame("commonPanelBg16"), this.Border.spriteFrame = a.UIUtlity.COMMON_ATLAS5.getSpriteFrame("commonPanelBorder4"), this.Tag.spriteFrame = t.getSpriteFrame("tag5")), this.PlayerInfoNode.active = !1, this.AllianceInfoNode.active = !1, 0 == r) {
                        this.AllianceInfoNode.active = !0, this.AllianceInfoName.string = e.AllianceInfo.Name, this.AllianceInfoLevel.string = "Lv." + e.AllianceInfo.Level, this.AllianceInfoDamage.string = e.Value.toString(), this.AllianceInfoNumValue.string = e.AllianceInfo.MemberCount.toString();
                        var i = e.AllianceInfo.Icon,
                            c = s.ConfigDataComponent.Instance.GetConfigById(l.AllianceIcon_Config, i),
                            u = c.LogoID,
                            p = c.FlagID;
                        this.AllianceInfoFlag.spriteFrame = n.getSpriteFrame("flagBg" + p), this.AllianceInfoIcon.spriteFrame = n.getSpriteFrame("flagLogo" + u)
                    } else this.PlayerInfoNode.active = !0, this.PlayerInfoScoreValue.string = e.Value.toString(), this.PlayerInfoName.string = e.PlayerInfo.Name, this.PlayerInfoPlayerLevel.string = e.PlayerInfo.Level.toString(), this.SetHeadNode()
                }, t.prototype.SetHeadNode = function() {
                    if (!this._headComponent) {
                        var e = cc.instantiate(this._headPrefab);
                        e.parent = this.PlayerInfoHeadNode, this._headComponent = e.getComponent(c.default)
                    }
                    this._headComponent.SetUI(this._rankData.PlayerInfo.HeadIcon, this._rankData.PlayerInfo.HeadFrame), this._headComponent.SetCountry(this._rankData.PlayerInfo.Country)
                }, i([d(cc.Sprite)], t.prototype, "BottomBg", void 0), i([d(cc.Sprite)], t.prototype, "Border", void 0), i([d(cc.Sprite)], t.prototype, "Tag", void 0), i([d(cc.Sprite)], t.prototype, "RankIcon", void 0), i([d(cc.Label)], t.prototype, "RankLabel", void 0), i([d(cc.Node)], t.prototype, "PlayerInfoNode", void 0), i([d(cc.Node)], t.prototype, "AllianceInfoNode", void 0), i([d(cc.Label)], t.prototype, "PlayerInfoScoreTag", void 0), i([d(cc.Label)], t.prototype, "PlayerInfoScoreValue", void 0), i([d(cc.Label)], t.prototype, "PlayerInfoName", void 0), i([d(cc.Label)], t.prototype, "PlayerInfoPlayerLevel", void 0), i([d(cc.Node)], t.prototype, "PlayerInfoHeadNode", void 0), i([d(cc.Label)], t.prototype, "AllianceInfoName", void 0), i([d(cc.Label)], t.prototype, "AllianceInfoNumTag", void 0), i([d(cc.Label)], t.prototype, "AllianceInfoNumValue", void 0), i([d(cc.Sprite)], t.prototype, "AllianceInfoFlag", void 0), i([d(cc.Sprite)], t.prototype, "AllianceInfoIcon", void 0), i([d(cc.Label)], t.prototype, "AllianceInfoLevel", void 0), i([d(cc.Label)], t.prototype, "AllianceInfoDamage", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeadComponent": "HeadComponent"
    }],
    AllianceBossRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d67db3RWD9P/KpdSDIbO2bs", "AllianceBossRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../Components/CustomLayout"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Components/CustomToggle"),
            I = e("../Components/AllianceBossRankListItem"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../Components/HeadComponent"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../../Channel/ChannelManager"),
            S = e("../../../Util/TimeUtil"),
            w = e("../../../Consts/Etc"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.Alliance = 0] = "Alliance", e[e.Personality = 1] = "Personality", e[e.length = 2] = "length"
        })(l || (l = {})),
        function(e) {
            e[e.Today = 0] = "Today", e[e.Last1 = 1] = "Last1", e[e.Last2 = 2] = "Last2", e[e.Last3 = 3] = "Last3", e[e.length = 4] = "length"
        }(c || (c = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.RankTag = null, t.AllianceTagContent = null, t.PlayerTagContent = null, t.AllianceNameTag = null, t.BossLevelTag = null, t.BossDamageTag = null, t.PlayerNameTag = null, t.PlayerScoreTag = null, t.CustomLayout = null, t.NoneTip = null, t.RankIcon = null, t.RankLabel = null, t.PlayerInfoNode = null, t.AllianceInfoNode = null, t.PlayerInfoScoreTag = null, t.PlayerInfoScoreValue = null, t.PlayerInfoName = null, t.PlayerInfoPlayerLevel = null, t.PlayerInfoHeadNode = null, t.AllianceInfoName = null, t.AllianceInfoNumTag = null, t.AllianceInfoNumValue = null, t.AllianceInfoFlag = null, t.AllianceInfoIcon = null, t.AllianceInfoLevel = null, t.AllianceInfoDamage = null, t.ToggleContainer = null, t.DaysButton = null, t.DaysButtonLabel = null, t.DaysToggleContainer = null, t.DaysToggleNode = null, t.ResetNode = null, t._currentTab = l.Alliance, t._allianceRankList = [], t._playerRankList = [], t._myPlyerRankData = [], t._myAllianceRankData = [], t._isSetAllianceInfo = !1, t._isSetPlayerInfo = !1, t._isSetDaysToggle = !1, t._currentDays = c.Today, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AllianceBossPanel/Components/AllianceBossRankListItem", cc.Prefab), n = this.LoadDynamicAsset("Buttons/Toggle1", cc.Prefab), o = this.LoadDynamicAsset("RankPanel/Png/RankAtlas", cc.SpriteAtlas), r = this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas), i = this.LoadDynamicAsset(_.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                    a._rankListPrefab = e[0], a._togglePrefab = e[1], a._rankAtlas = e[2], a._allianceAtlas = e[3], a._headPrefab = e[4]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.RankTag.string = "ActivityHeroTestTower_Rank".ToUILocale(), this.AllianceNameTag.string = "allianceBoss_rank_tag_allianceName".ToUILocale(), this.BossLevelTag.string = "allianceBoss_reward_tag_boss".ToUILocale(), this.BossDamageTag.string = "allianceBoss_rank_tag_damage".ToUILocale(), this.PlayerNameTag.string = "allianceBoss_rank_tag_playerName".ToUILocale(), this.PlayerScoreTag.string = "allianceBoss_rank_tag_playerScore".ToUILocale(), this.PlayerInfoScoreTag.string = "activityBoss_score".ToUILocale(), this.AllianceInfoNumTag.string = "allianceBoss_rank_tag_allianceNum".ToUILocale(), this.NoneTip.string = "openServer_heroTest_noRatingYet".ToUILocale(), this.DaysButton.node.on("click", this.OnDaysButtonClick, this), this.ResetNode.on(cc.Node.EventType.TOUCH_END, this.OnResetNodeClick, this), this.CustomLayout.Init(this._rankListPrefab)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._allianceRankList[this._currentDays] = t[0], this._myAllianceRankData[this._currentDays] = t[1], this._enterTime = h.RpcComponent.Instance.ServerTime
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.SetToggle(), this._toggleGroup[this._currentTab].isChecked = !0, this.SetCurrentToggleInfo(), this.DaysButtonLabel.string = "allianceBoss_history_rank_tag".ToUILocale().Fmt(S.TimeUtil.Format("MM/DD", this._enterTime)))
            }, t.prototype.SetToggle = function() {
                this._toggleGroup = [];
                for (var e = 0; e < l.length; e++) {
                    var t = cc.instantiate(this._togglePrefab);
                    t.getComponent(m.default).Init(("allianceBoss_rank_toggle" + (e + 1)).ToUILocale()), t.parent = this.ToggleContainer, t.name = e.toString(), t.on("toggle", this.OnSwitchTab, this), this._toggleGroup.push(t.getComponent(m.default))
                }
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.node.name);
                t != this._currentTab && (this._currentTab = t, this.SetCurrentToggleInfo())
            }, t.prototype.SetCurrentToggleInfo = function() {
                var e = this;
                if (this.AllianceTagContent.active = !1, this.AllianceInfoNode.active = !1, this.PlayerTagContent.active = !1, this.PlayerInfoNode.active = !1, this.RankLabel.node.active = !1, this.RankIcon.node.active = !1, this.Title.string = ("allianceBoss_rank_toggle" + (this._currentTab + 1)).ToUILocale(), this._currentTab == l.Alliance) this.AllianceTagContent.active = !0, this.AllianceInfoNode.active = !0, this._allianceRankList[this._currentDays] ? this.SetAllianceShow() : ((t = new d.Req_Player_GetRank).RankType = v.RankTypeId.AllianceBoss, t.Params = [this._enterTime - this._currentDays * w.Etc.DayDuration], h.RpcComponent.Instance.Call(t, function(t) {
                    e._allianceRankList[e._currentDays] = [], t.Data && t.Data.Rows && t.Data.Rows.length > 0 && (e._allianceRankList[e._currentDays] = t.Data.Rows), e._myAllianceRankData[e._currentDays] = t.MyRankData, t.MyRankData && (e._myAllianceRankData[e._currentDays].Id = t.MyRank ? t.MyRank : 0), e.SetAllianceShow()
                }));
                else if (this._currentTab == l.Personality) {
                    var t;
                    this.PlayerTagContent.active = !0, this.PlayerInfoNode.active = !0, this._playerRankList[this._currentDays] ? this.SetPlayerShow() : ((t = new d.Req_Player_GetRank).RankType = v.RankTypeId.AllianceBossPoint, t.Params = [this._enterTime - this._currentDays * w.Etc.DayDuration], h.RpcComponent.Instance.Call(t, function(t) {
                        e._playerRankList[e._currentDays] = [], t.Data && t.Data.Rows && t.Data.Rows.length > 0 && (e._playerRankList[e._currentDays] = t.Data.Rows), e._myPlyerRankData[e._currentDays] = t.MyRankData, t.MyRankData && (e._myPlyerRankData[e._currentDays].Id = t.MyRank ? t.MyRank : 0), e.SetPlayerShow()
                    }))
                }
            }, t.prototype.SetMyAllianceInfo = function() {
                if (!this._isSetAllianceInfo) {
                    this._isSetAllianceInfo = !0;
                    var e = this._myAllianceRankData[this._currentDays];
                    e ? (this.AllianceInfoLevel.string = "Lv." + e.AllianceInfo.Level, this.AllianceInfoDamage.string = e.Value.toString(), this.AllianceInfoNumValue.string = e.AllianceInfo.MemberCount.toString()) : (this.AllianceInfoLevel.string = "Lv.0", this.AllianceInfoDamage.string = "0", this.AllianceInfoNumValue.string = "0"), this.AllianceInfoName.string = h.DataCenter.Instance.AllianceInfo.Name;
                    var t = h.DataCenter.Instance.AllianceInfo.Icon,
                        n = h.ConfigDataComponent.Instance.GetConfigById(f.AllianceIcon_Config, t),
                        o = n.LogoID,
                        r = n.FlagID;
                    this.AllianceInfoFlag.spriteFrame = this._allianceAtlas.getSpriteFrame("flagBg" + r), this.AllianceInfoIcon.spriteFrame = this._allianceAtlas.getSpriteFrame("flagLogo" + o)
                }
            }, t.prototype.SetMayPlayerInfo = function() {
                if (!this._isSetPlayerInfo) {
                    this._isSetPlayerInfo = !0;
                    var e = this._myPlyerRankData[this._currentDays];
                    this.PlayerInfoScoreValue.string = e ? e.Value.toString() : "0", this.PlayerInfoName.string = h.DataCenter.Instance.GetStringData(v.UserDataKey.RoleName), this.PlayerInfoPlayerLevel.string = h.DataCenter.Instance.GetIntData(v.UserDataKey.PlayerLevel).toString();
                    var t = cc.instantiate(this._headPrefab);
                    t.parent = this.PlayerInfoHeadNode;
                    var n, o = t.getComponent(C.default),
                        r = h.DataCenter.Instance.GetIntData(v.UserDataKey.HeadIcon),
                        i = h.DataCenter.Instance.GetIntData(v.UserDataKey.HeadFrame);
                    o.SetUI(r, i), (n = h.DataCenter.Instance.GetStringData(v.UserDataKey.Country)) || (n = b.default.Instance.Localization_Country), n = 0 == h.DataCenter.Instance.GetIntData(v.UserDataKey.CountryShowState) ? n : "", o.SetCountry(n)
                }
            }, t.prototype.SetAllianceShow = function() {
                this.SetMyAllianceInfo(), this.CustomLayout.RenderLayOut(this._allianceRankList[this._currentDays].length), this.NoneTip.node.active = 0 == this._allianceRankList[this._currentDays].length;
                var e = this._myAllianceRankData[this._currentDays];
                e && e.Id <= 3 ? (this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e.Id)) : (this.RankLabel.node.active = !0, this.RankLabel.string = e ? "" + this._myAllianceRankData[this._currentDays].Id : "rank_out_max_rank".ToUILocale())
            }, t.prototype.SetPlayerShow = function() {
                this.SetMayPlayerInfo(), this.CustomLayout.RenderLayOut(this._playerRankList[this._currentDays].length), this.NoneTip.node.active = 0 == this._playerRankList[this._currentDays].length;
                var e = this._myPlyerRankData[this._currentDays];
                e && e.Id <= 3 ? (this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e.Id)) : (this.RankLabel.node.active = !0, this.RankLabel.string = e ? "" + e.Id : "rank_out_max_rank".ToUILocale())
            }, t.prototype.OnDaysButtonClick = function() {
                if (this.ResetNode.active = !0, this.DaysToggleContainer.active = !0, !this._isSetDaysToggle) {
                    this._isSetDaysToggle = !0, this._daysToggleArray = [];
                    for (var e = c.Today; e < c.length; e++) {
                        var t = e == c.Today ? this.DaysToggleNode : cc.instantiate(this.DaysToggleNode);
                        t.parent = this.DaysToggleContainer, t.name = e.toString(), t.getComponent(m.default).Init("allianceBoss_history_rank_tag".ToUILocale().Fmt(S.TimeUtil.Format("MM/DD", this._enterTime - e * w.Etc.DayDuration))), t.on("toggle", this.OnSwithDaysToggle, this), this._daysToggleArray.push(t.getComponent(m.default)), e == c.length - 1 && (t.getChildByName("line").active = !1)
                    }
                }
            }, t.prototype.OnSwithDaysToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                t != this._currentDays && (this._currentDays = t, this.SetDaysShow())
            }, t.prototype.SetDaysShow = function() {
                this.DaysButtonLabel.string = "allianceBoss_history_rank_tag".ToUILocale().Fmt(S.TimeUtil.Format("MM/DD", this._enterTime - this._currentDays * w.Etc.DayDuration)), this.ResetNode.active = !1, this.DaysToggleContainer.active = !1, this.SetCurrentToggleInfo()
            }, t.prototype.OnResetNodeClick = function() {
                this.ResetNode.active = !1, this.DaysToggleContainer.active = !1
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (t == this.CustomLayout) {
                    var o = this._currentTab == l.Alliance ? this._allianceRankList[this._currentDays] : this._playerRankList[this._currentDays];
                    e.forEach(function(e, t) {
                        o[t].Id = t + 1, e.getComponent(I.default).Init(o[t], n._rankAtlas, n._allianceAtlas, n._headPrefab, n._currentTab)
                    })
                }
            }, i([T(cc.Label)], t.prototype, "Title", void 0), i([T(cc.Label)], t.prototype, "RankTag", void 0), i([T(cc.Node)], t.prototype, "AllianceTagContent", void 0), i([T(cc.Node)], t.prototype, "PlayerTagContent", void 0), i([T(cc.Label)], t.prototype, "AllianceNameTag", void 0), i([T(cc.Label)], t.prototype, "BossLevelTag", void 0), i([T(cc.Label)], t.prototype, "BossDamageTag", void 0), i([T(cc.Label)], t.prototype, "PlayerNameTag", void 0), i([T(cc.Label)], t.prototype, "PlayerScoreTag", void 0), i([T(y.default)], t.prototype, "CustomLayout", void 0), i([T(cc.Label)], t.prototype, "NoneTip", void 0), i([T(cc.Sprite)], t.prototype, "RankIcon", void 0), i([T(cc.Label)], t.prototype, "RankLabel", void 0), i([T(cc.Node)], t.prototype, "PlayerInfoNode", void 0), i([T(cc.Node)], t.prototype, "AllianceInfoNode", void 0), i([T(cc.Label)], t.prototype, "PlayerInfoScoreTag", void 0), i([T(cc.Label)], t.prototype, "PlayerInfoScoreValue", void 0), i([T(cc.Label)], t.prototype, "PlayerInfoName", void 0), i([T(cc.Label)], t.prototype, "PlayerInfoPlayerLevel", void 0), i([T(cc.Node)], t.prototype, "PlayerInfoHeadNode", void 0), i([T(cc.Label)], t.prototype, "AllianceInfoName", void 0), i([T(cc.Label)], t.prototype, "AllianceInfoNumTag", void 0), i([T(cc.Label)], t.prototype, "AllianceInfoNumValue", void 0), i([T(cc.Sprite)], t.prototype, "AllianceInfoFlag", void 0), i([T(cc.Sprite)], t.prototype, "AllianceInfoIcon", void 0), i([T(cc.Label)], t.prototype, "AllianceInfoLevel", void 0), i([T(cc.Label)], t.prototype, "AllianceInfoDamage", void 0), i([T(cc.Node)], t.prototype, "ToggleContainer", void 0), i([T(cc.Button)], t.prototype, "DaysButton", void 0), i([T(cc.Label)], t.prototype, "DaysButtonLabel", void 0), i([T(cc.Node)], t.prototype, "DaysToggleContainer", void 0), i([T(cc.Node)], t.prototype, "DaysToggleNode", void 0), i([T(cc.Node)], t.prototype, "ResetNode", void 0), i([A], t)
        }(u.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AllianceBossRankListItem": "AllianceBossRankListItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HeadComponent": "HeadComponent"
    }],
    AllianceBossRankRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ff426zFdJdKIJIv4vUh2vM/", "AllianceBossRankRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/CustomToggle"),
            f = e("../Components/AllianceBossRewardListItem"),
            y = e("../Components/AsyncLayout"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property;
        (function(e) {
            e[e.BossDemage = 0] = "BossDemage", e[e.Alliance = 1] = "Alliance", e[e.Personality = 2] = "Personality", e[e.length = 3] = "length"
        })(l || (l = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.RankTag = null, t.RewardTag = null, t.TipLabel = null, t.AsyncLayout = null, t.ToggleContainer = null, t._currentTab = l.Alliance, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AllianceBossPanel/Components/AllianceBossRewardListItem", cc.Prefab), n = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("Buttons/Toggle1", cc.Prefab), r = this.LoadDynamicAsset("RankPanel/Png/RankAtlas", cc.SpriteAtlas), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._rewardPrefab = e[0], i._itemPrefab = e[1], i._togglePrefab = e[2], i._atlas = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.AsyncLayout.Init(this._rewardPrefab, this.OnInitializeItem.bind(this))
            }, t.prototype.InitData = function() {
                e.prototype.InitData.call(this)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.SetToggle(), this._toggleGroup[this._currentTab].isChecked = !0, this.SetCurrentToggleInfo())
            }, t.prototype.SetToggle = function() {
                this._toggleGroup = [];
                for (var e = 0; e < l.length; e++) {
                    var t = cc.instantiate(this._togglePrefab);
                    t.getComponent(h.default).Init(("allianceBoss_reward_toggle" + (e + 1)).ToUILocale()), t.parent = this.ToggleContainer, t.name = e.toString(), t.on("toggle", this.OnSwitchTab, this), this._toggleGroup.push(t.getComponent(h.default))
                }
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.node.name);
                t != this._currentTab && (this._currentTab = t, this.SetCurrentToggleInfo())
            }, t.prototype.SetCurrentToggleInfo = function() {
                var e = this;
                switch (this.RewardTag.string = ("allianceBoss_reward_tag_reward" + (this._currentTab + 1)).ToUILocale(), this.TipLabel.string = ("allianceBoss_reward_tip" + (this._currentTab + 1)).ToUILocale(), this.RankTag.string = this._currentTab == l.BossDemage ? "allianceBoss_reward_tag_boss".ToUILocale() : "ActivityHeroTestTower_Rank".ToUILocale(), this._currentTab) {
                    case l.BossDemage:
                        this._bossRewards || (this._bossRewards = u.ConfigDataComponent.Instance.GetArrayConfig(p.AllianceBossBox_Config)), this.AsyncLayout.RenderLayout(this._bossRewards.length);
                        break;
                    case l.Alliance:
                        this._allianceRewards || (this._allianceRewards = [], u.ConfigDataComponent.Instance.GetArrayConfig(p.AllianceBOSSRankReward_Config).forEach(function(t) {
                            1 == t.Type && e._allianceRewards.push(t)
                        })), this.AsyncLayout.RenderLayout(this._allianceRewards.length);
                        break;
                    case l.Personality:
                        this._personalityRewards || (this._personalityRewards = [], u.ConfigDataComponent.Instance.GetArrayConfig(p.AllianceBOSSRankReward_Config).forEach(function(t) {
                            2 == t.Type && e._personalityRewards.push(t)
                        })), this.AsyncLayout.RenderLayout(this._personalityRewards.length)
                }
            }, t.prototype.OnInitializeItem = function(e, t) {
                var n;
                switch (this._currentTab) {
                    case l.BossDemage:
                        n = this._bossRewards;
                        break;
                    case l.Alliance:
                        n = this._allianceRewards;
                        break;
                    case l.Personality:
                        n = this._personalityRewards
                }
                var o = n[t];
                e.getComponent(f.default).Init(o, this._itemPrefab, this._atlas)
            }, i([I(cc.Label)], t.prototype, "RankTag", void 0), i([I(cc.Label)], t.prototype, "RewardTag", void 0), i([I(cc.Label)], t.prototype, "TipLabel", void 0), i([I(y.default)], t.prototype, "AsyncLayout", void 0), i([I(cc.Node)], t.prototype, "ToggleContainer", void 0), i([m], t)
        }(c.BaseUIFullScreenPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/AllianceBossRewardListItem": "AllianceBossRewardListItem",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CustomToggle": "CustomToggle"
    }],
    AllianceBossRewardListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8ba69L/MYlOroUN9YAM2Xjv", "AllianceBossRewardListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("./ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BottomBg = null, t.Border = null, t.Tag = null, t.RankIcon = null, t.RankLabel = null, t.ItemContainer = null, t.itemComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this.RankLabel.node.active = !1, this.RankIcon.node.active = !1, this.BottomBg.spriteFrame = s.UIUtlity.COMMON_ATLAS5.getSpriteFrame("commonPanelBg16"), this.Border.spriteFrame = s.UIUtlity.COMMON_ATLAS5.getSpriteFrame("commonPanelBorder4"), this.Tag.spriteFrame = n.getSpriteFrame("tag5"), e instanceof l.AllianceBossBox_Config ? (this.RankLabel.node.active = !0, this.RankLabel.string = "Lv." + e.Id) : e.Rank[0] == e.Rank[1] ? e.Rank[0] <= 3 ? (this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e.Rank[0]), this.BottomBg.spriteFrame = n.getSpriteFrame("rankBottomBg" + e.Rank[0]), this.Border.spriteFrame = n.getSpriteFrame("rankBorder" + e.Rank[0]), this.Tag.spriteFrame = n.getSpriteFrame("tag" + e.Rank[0])) : (this.RankLabel.node.active = !0, this.RankLabel.string = "" + e.Rank[0]) : e.Rank[1] ? (this.RankLabel.node.active = !0, this.RankLabel.string = e.Rank[0] + "-" + e.Rank[1]) : (this.RankLabel.node.active = !0, this.RankLabel.string = e.Rank[0] + "+"), this.SetItemContainer(e.Reward, t)
                }, t.prototype.SetItemContainer = function(e, t) {
                    for (var n = 0; n < e.length; n++) {
                        var o = this.itemComponentArray[n];
                        if (!o) {
                            var r = cc.instantiate(t);
                            r.setParent(this.ItemContainer), o = r.getComponent(u.ItemComponent), this.itemComponentArray[n] = o
                        }
                        o.node.active = !0, o.Init({
                            ItemId: e[n].Items[0],
                            Count: e[n].Items[1]
                        })
                    }
                    if (e.length < this.itemComponentArray.length)
                        for (n = e.length; n < this.itemComponentArray.length; n++) this.itemComponentArray[n].node.active = !1
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent == this.ItemContainer && s.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, i([h(cc.Sprite)], t.prototype, "BottomBg", void 0), i([h(cc.Sprite)], t.prototype, "Border", void 0), i([h(cc.Sprite)], t.prototype, "Tag", void 0), i([h(cc.Sprite)], t.prototype, "RankIcon", void 0), i([h(cc.Label)], t.prototype, "RankLabel", void 0), i([h(cc.Node)], t.prototype, "ItemContainer", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    AllianceBossSkillItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8f333Yz3+pGobdIv/Tkzqzr", "AllianceBossSkillItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("./LoadAssetHelper"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../Consts/GameEventIds"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SkillBg = null, t.SkillIcon = null, t.SkillBorder = null, t.AddButton = null, t.SkillName = null, t.SkillCount = null, t.LoadAssetHelper = null, t._mainPanel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.AddButton.node.on("click", this.OnAddButtonClick, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnSkillItemClick, this)
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(f.GameEventIds.AddDataDetail.Fmt(l.UserItem_Model._n_), this.OnUserItemChange, this), a.Game.EventDispatcher.On(f.GameEventIds.ChangeDataDetail.Fmt(l.UserItem_Model._n_), this.OnUserItemChange, this), a.Game.EventDispatcher.On(f.GameEventIds.RemoveDataDetail.Fmt(l.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(f.GameEventIds.AddDataDetail.Fmt(l.UserItem_Model._n_), this.OnUserItemChange, this), a.Game.EventDispatcher.Off(f.GameEventIds.ChangeDataDetail.Fmt(l.UserItem_Model._n_), this.OnUserItemChange, this), a.Game.EventDispatcher.Off(f.GameEventIds.RemoveDataDetail.Fmt(l.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._configId = e, this._mainPanel = n, 1 == e ? (this.SkillBg.spriteFrame = t.getSpriteFrame("skillBg1"), this.SkillBorder.spriteFrame = t.getSpriteFrame("skillBorder2"), this.AddButton.node.width = 79, this.AddButton.node.height = 78) : (this.SkillBg.spriteFrame = t.getSpriteFrame("skillBg2"), this.SkillBorder.spriteFrame = t.getSpriteFrame("skillBorder1"), this.AddButton.node.width = 71, this.AddButton.node.height = 71);
                    var o = c.ConfigDataComponent.Instance.GetConfigById(u.AllianceBOSSSkill_Config, e);
                    this._itemId = o.Items[0].Items[0], this.SkillName.string = this._itemId.ToItemName(), this.LoadAssetHelper.LoadSpriteFrame(d.default.Instance.GetItemPathById(this._itemId), this.SkillIcon, null, 1), this.SetCurrentShow()
                }, t.prototype.SetCurrentShow = function() {
                    var e = c.DataCenter.Instance.GetItemCount(this._itemId);
                    this.SkillCount.string = e > 0 ? "x" + e : "x0", this.SkillCount.node.color = e > 0 ? (new cc.Color).fromHEX("#6EEEA7") : (new cc.Color).fromHEX("#FF403E"), e > 0 ? (this.AddButton.node.active = !1, s.UIUtlity.SetGray(this.SkillIcon, !1)) : (this.AddButton.node.active = !0, s.UIUtlity.SetGray(this.SkillIcon, !0))
                }, t.prototype.OnAddButtonClick = function() {
                    a.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, this._itemId)
                }, t.prototype.OnSkillItemClick = function() {
                    c.DataCenter.Instance.GetItemCount(this._itemId) > 0 && this._mainPanel.OnUseSkill(this._configId)
                }, t.prototype.OnUserItemChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == this._itemId) return void this.SetCurrentShow()
                }, i([m(cc.Sprite)], t.prototype, "SkillBg", void 0), i([m(cc.Sprite)], t.prototype, "SkillIcon", void 0), i([m(cc.Sprite)], t.prototype, "SkillBorder", void 0), i([m(cc.Button)], t.prototype, "AddButton", void 0), i([m(cc.Label)], t.prototype, "SkillName", void 0), i([m(cc.Label)], t.prototype, "SkillCount", void 0), i([m(p.default)], t.prototype, "LoadAssetHelper", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    AllianceCityWarEntryComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a9521gMtC9LwrsHgEP67bUp", "AllianceCityWarEntryComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ContentLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnEntryNodeClick, this), this.ContentLabel.string = "StrongholdWar_Main_TitleName".ToUILocale()
                }, t.prototype.OnEntryNodeClick = function() {
                    a.default.Instance.EnterStrongholdWarPanel()
                }, i([c(cc.Label)], t.prototype, "ContentLabel", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    AllianceCommonDefines: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2f555jo9fVIkYGIQr/ITo1N", "AllianceCommonDefines"), Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.AllianceFontColor = n.AllianceNamingPanelMode = n.AllianceSetupPanelMode = void 0,
            function(e) {
                e[e.Creating = 0] = "Creating", e[e.Modifying = 1] = "Modifying"
            }(n.AllianceSetupPanelMode || (n.AllianceSetupPanelMode = {})),
            function(e) {
                e[e.Creating = 0] = "Creating", e[e.Changing = 1] = "Changing"
            }(n.AllianceNamingPanelMode || (n.AllianceNamingPanelMode = {}));
        var o = function() {
            function e() {}
            return e.red = new cc.Color(255, 91, 91), e.green = new cc.Color(51, 255, 142), e.white = new cc.Color(255, 255, 255), e.lightBrown = new cc.Color(98, 78, 60), e.deepblue = new cc.Color(32, 36, 52), e.OrangeOutlne = new cc.Color(104, 76, 27), e
        }();
        n.AllianceFontColor = o, cc._RF.pop()
    }, {}],
    AllianceDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e0646Ft9y5HL4xagSF6EyHL", "AllianceDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../Consts/Consts"),
            g = e("./AllianceBaseMainPanel"),
            m = e("./AllianceMemberItem"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../Channel/AdjustAction"),
            b = e("../../Channel/ChannelManager"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.pTitleText = null, t.pLevelPromptText = null, t.pMemberCountPromptText = null, t.pRequirementPromptText = null, t.pMemberListPromptText = null, t.pJoinButtonText = null, t.pGrayJoinButtonText = null, t.pGrayRequestedButtonText = null, t.pGrayFullMemberButtonText = null, t.pName = null, t.pLevel = null, t.pMember = null, t.pRequirement = null, t.pSlogan = null, t.pListScrollView = null, t.pListContent = null, t.pJoinButton = null, t.pGrayJoinButton = null, t.pGrayRequestedButton = null, t.pGrayFullMemberButton = null, t.pFlagBottom = null, t.pFlagPattern = null, t.mainAtlas = null, t.multiLangAtlas = null, t.allianceData = null, t.panelBefore = null, t.disableJoining = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(C.EventKeys.EVENT_ALLIANCE_HEROHEADCLICK, this.OnPlayerHeadClick), c.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(C.EventKeys.EVENT_ALLIANCE_HEROHEADCLICK, this.OnPlayerHeadClick), c.Game.EventDispatcher.Off(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.SetAllianceCityWarEntry = function() {
                    d.DataCenter.Instance.GetSpecialRedDot(p.SpecialRedDotType.AllianceId) > 0 && l.UIManager.Instance.QuitPanelStack(this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas)];
                                case 1:
                                    return t.mainAtlas = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function() {
                    l.EZLog.Debug("ok in AllianceDetailPanel DisPlay..."), e.prototype.DisPlay.call(this), this.node.active = !0, this.GetAllianceDetailInfo(this._alliancId)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.pJoinButton.node.on("click", this.OnClickJoinButton.bind(this), this), this.pGrayJoinButton.node.on("click", this.OnClickGrayJoinButton.bind(this), this), this.pTitleText.string = "allianceBase_detailInfoTitle".ToUILocale(), this.pLevelPromptText.string = "allianceBase_detailInfoLevel".ToUILocale(), this.pMemberCountPromptText.string = "allianceBase_detailInfoMember".ToUILocale(), this.pRequirementPromptText.string = "allianceBase_detailInfoRequirement".ToUILocale(), this.pMemberListPromptText.string = "allianceBase_detailInfoMemberList".ToUILocale(), this.pJoinButtonText.string = "allianceBase_detailInfoJoinBtnText".ToUILocale(), this.pGrayJoinButtonText.string = "allianceBase_detailInfoGrayJoinBtnText".ToUILocale(), this.pGrayRequestedButtonText.string = "allianceBase_detailInfoRequestedBtnText".ToUILocale(), this.pGrayFullMemberButtonText.string = "allianceBase_detailInfoFullMemberBtnText".ToUILocale()
                }, t.prototype.LeavePanel = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.GetAllianceDetailInfo = function(e) {
                    var t = new u.Req_Alliance_GetAllianceDetail;
                    t.Id = e, t.Zone = this._zone, d.RpcComponent.Instance.Call(t, this.RefreshUI.bind(this), this.OnAllianceInfoError.bind(this))
                }, t.prototype.RefreshUI = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l, c, u, p, h, f, I, C, v;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    this.allianceData = e, this.pName.string = e.Name, this.pLevel.string = "allianceBase_level".ToUILocale().Fmt(e.Level.toString()), t = e.MemberList.length, n = this._allianceLevelConfigs[e.Level - 1].MemberCount, this.pMember.string = t.toString() + " / " + n.toString(), o = t < n, r = "", i = "", e.RequirePower > 0 && (r = r + i + "allianceBase_power".ToUILocale().Fmt(e.RequirePower.toString()), i = "  "), e.RequireLevel > 0 && (r = r + i + "allianceBase_lv".ToUILocale().Fmt(e.RequireLevel.toString())), e.RequirePower <= 0 && e.RequireLevel <= 0 && (r = "allianceBase_unconditional".ToUILocale()), this.pRequirement.string = r, this.pSlogan.string = e.Notice, a = b.default.Instance.IsHighSchoolChannel(), this.pSlogan.node.color = a ? new cc.Color(32, 36, 52) : new cc.Color(255, 255, 255), l = d.ConfigDataComponent.Instance.GetConfigById(_.AllianceIcon_Config, e.Icon), this.pFlagBottom.spriteFrame = this.mainAtlas.getSpriteFrame("flagBg" + l.FlagID), this.pFlagPattern.spriteFrame = this.mainAtlas.getSpriteFrame("flagLogo" + l.LogoID), c = d.DataCenter.Instance.GetIntData(y.UserDataKey.Power), u = d.DataCenter.Instance.GetIntData(y.UserDataKey.PlayerLevel), p = c >= e.RequirePower, h = u >= e.RequireLevel, (f = [])[1] = "allianceBase_member", f[8] = "allianceBase_memberTitleVice", f[10] = "allianceBase_memberTitleLeader", m.default.PutNodes(this.pListContent.children), I = 0, s.label = 1;
                                case 1:
                                    return I < t ? [4, m.default.Get()] : [3, 4];
                                case 2:
                                    (C = s.sent()).node.setParent(this.pListContent), C.pName.string = e.MemberList[I].Name, C.pTitle.string = f[e.MemberList[I].AlliancePost].ToUILocale(), C.sid = e.MemberList[I].Uid, C.SetPlayerHeadAndFrame(e.MemberList[I].HeadIcon, e.MemberList[I].HeadFrame), C.SetHeadComponentParam(e.MemberList[I].Level, e.MemberList[I].Country), g.default.LastActiveTimeForHumanReading(e.MemberList[I].LastActiveTime, C.pStatus), s.label = 3;
                                case 3:
                                    return ++I, [3, 1];
                                case 4:
                                    return this.pListScrollView.scrollToTop(), this.disableJoining ? (this.pGrayRequestedButton.node.active = !1, this.pJoinButton.node.active = !1, this.pGrayJoinButton.node.active = !1, this.pGrayFullMemberButton.node.active = !1) : e.IsRequested ? (this.pGrayRequestedButton.node.active = !0, this.pJoinButton.node.active = !1, this.pGrayJoinButton.node.active = !1, this.pGrayFullMemberButton.node.active = !1) : (this.pGrayRequestedButton.node.active = !1, this.pGrayFullMemberButton.node.active = !o, o ? (v = p && h, this.pJoinButton.node.active = v, this.pGrayJoinButton.node.active = !v) : (this.pJoinButton.node.active = !1, this.pGrayJoinButton.node.active = !1)), [2]
                            }
                        })
                    })
                }, t.prototype.OnAllianceInfoError = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickJoinButton = function() {
                    var e = new u.Req_Alliance_ApplyJoin;
                    e.Id = this.allianceData.Id, d.RpcComponent.Instance.Call(e, this.OnCallBackFromApplyJoin.bind(this))
                }, t.prototype.OnCallBackFromApplyJoin = function(e) {
                    if (v.default.AdjustTrackEvent(v.AdjustEventToken.GuildJoined), e.AllianceId && e.AllianceId > 0) {
                        d.DataCenter.Instance.AllianceId = e.AllianceId, h.UIUtlity.ShowFloatingHint("allianceBase_joinSuccess".ToUILocale()), l.UIManager.Instance.QuitPanelStack(this.panelBefore), l.UIManager.Instance.QuitPanelStack(this);
                        var t = l.UIManager.Instance.GetUIPanel(f.PanelConfig.AllianceBaseMainPanel.Path);
                        null != t && I.RedDotManager.Instance.Bind(t.pMainPageTalentButton.node, I.RedDotManager.Instance.RedDot.AllianceTalentBtnNode, 0, 0)
                    } else c.Game.EventDispatcher.Emit(C.EventKeys.EVENT_JOINALLIANCE_SENT), h.UIUtlity.ShowFloatingHint("allianceBase_applicationSent".ToUILocale()), this.GetAllianceDetailInfo(this.allianceData.Id)
                }, t.prototype.OnClickGrayJoinButton = function() {
                    var e = d.DataCenter.Instance.GetIntData(y.UserDataKey.Power),
                        t = d.DataCenter.Instance.GetIntData(y.UserDataKey.PlayerLevel),
                        n = e >= this.allianceData.RequirePower,
                        o = t >= this.allianceData.RequireLevel;
                    n ? o || h.UIUtlity.ShowFloatingHint("allianceBase_levelRequirementOnJoining".ToUILocale().Fmt(this.allianceData.RequireLevel)) : h.UIUtlity.ShowFloatingHint("allianceBase_powerRequirementOnJoining".ToUILocale().Fmt(this.allianceData.RequirePower))
                }, t.prototype.OnPlayerHeadClick = function(e) {
                    c.UIManager.Instance.ShowUIPanel(f.PanelConfig.PlayerInfoPanel.Path, e)
                }, t.prototype.InitData = function(e) {
                    l.EZLog.Debug("ok in AllianceDetailPanel InitData ..."), this._alliancId = e[0], this.panelBefore = e[1], this.disableJoining = e[2], e.length > 3 ? this._zone = e[3] : this._zone = d.DataCenter.Zone, this._allianceLevelConfigs = d.ConfigDataComponent.Instance.GetArrayConfig(_.AllianceLevel_Config)
                }, i([P(cc.Label)], t.prototype, "pTitleText", void 0), i([P(cc.Label)], t.prototype, "pLevelPromptText", void 0), i([P(cc.Label)], t.prototype, "pMemberCountPromptText", void 0), i([P(cc.Label)], t.prototype, "pRequirementPromptText", void 0), i([P(cc.Label)], t.prototype, "pMemberListPromptText", void 0), i([P(cc.Label)], t.prototype, "pJoinButtonText", void 0), i([P(cc.Label)], t.prototype, "pGrayJoinButtonText", void 0), i([P(cc.Label)], t.prototype, "pGrayRequestedButtonText", void 0), i([P(cc.Label)], t.prototype, "pGrayFullMemberButtonText", void 0), i([P(cc.Label)], t.prototype, "pName", void 0), i([P(cc.Label)], t.prototype, "pLevel", void 0), i([P(cc.Label)], t.prototype, "pMember", void 0), i([P(cc.Label)], t.prototype, "pRequirement", void 0), i([P(cc.RichText)], t.prototype, "pSlogan", void 0), i([P(cc.ScrollView)], t.prototype, "pListScrollView", void 0), i([P(cc.Node)], t.prototype, "pListContent", void 0), i([P(cc.Button)], t.prototype, "pJoinButton", void 0), i([P(cc.Button)], t.prototype, "pGrayJoinButton", void 0), i([P(cc.Button)], t.prototype, "pGrayRequestedButton", void 0), i([P(cc.Button)], t.prototype, "pGrayFullMemberButton", void 0), i([P(cc.Sprite)], t.prototype, "pFlagBottom", void 0), i([P(cc.Sprite)], t.prototype, "pFlagPattern", void 0), i([P(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([P(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/AdjustAction": "AdjustAction",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel",
        "./AllianceMemberItem": "AllianceMemberItem"
    }],
    AllianceEventItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "21495avCBhEz67wwR43GFaZ", "AllianceEventItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pTime = null, t.pEventContent = null, t.index = -1, t.memberNotFull = !1, t.enoughPower = !1, t.enoughLevel = !1, t
                }
                var n;
                return r(t, e), n = t, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = o.sent(), o.label = 3;
                                case 3:
                                    return (t = e.getComponent(n)).InitNodesAndComponents(), [2, t]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    l.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, l.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = t.sent(), t.label = 2;
                                case 2:
                                    return n.prefabAsset ? [2, cc.instantiate(n.prefabAsset)] : (c.EZLog.Debug("ok in AllianceListItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {
                    this.node
                }, t.classNameString = "AllianceEventItem", t.prefabPathName = "AllianceBasePanel/Private/EventItem", t.prefabAsset = null, t.pool = new cc.NodePool, i([d(cc.Label)], t.prototype, "pTime", void 0), i([d(cc.RichText)], t.prototype, "pEventContent", void 0), n = i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    AllianceEventSeperator: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bac34U4cl5FYJ1JEXkK0wEs", "AllianceEventSeperator");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pDate = null, t.index = -1, t.memberNotFull = !1, t.enoughPower = !1, t.enoughLevel = !1, t
                }
                var n;
                return r(t, e), n = t, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = t.sent(), t.label = 3;
                                case 3:
                                    return [2, e.getComponent(n)]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    l.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, l.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = t.sent(), t.label = 2;
                                case 2:
                                    return n.prefabAsset ? [2, cc.instantiate(n.prefabAsset)] : (c.EZLog.Debug("ok in AllianceListItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.classNameString = "AllianceEventSeperator", t.prefabPathName = "AllianceBasePanel/Private/EventSeperator", t.prefabAsset = null, t.pool = new cc.NodePool, i([d(cc.Label)], t.prototype, "pDate", void 0), n = i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    AllianceFlagComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f07712TMvNOna2+S32YqZUl", "AllianceFlagComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FlagBg = null, t.FlagIcon = null, t.Atlas = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    var t = s.ConfigDataComponent.Instance.GetConfigById(a.AllianceIcon_Config, e),
                        n = t.LogoID,
                        o = t.FlagID;
                    this.FlagIcon.spriteFrame = this.Atlas.getSpriteFrame("flagLogo" + n), this.FlagBg.spriteFrame = this.Atlas.getSpriteFrame("flagBg" + o)
                }, i([u(cc.Sprite)], t.prototype, "FlagBg", void 0), i([u(cc.Sprite)], t.prototype, "FlagIcon", void 0), i([u(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components"
    }],
    AllianceFlagItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e4e9eNsfX1HJbh4KAFBJQ7o", "AllianceFlagItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pButton = null, t.pLogoSprite = null, t.pFlagSprite = null, t.pSelected = null, t.pMask = null, t.pDesc = null, t.Now = null, t.index = -1, t.itemID = 0, t.logoID = 1, t.flagID = 1, t
                }
                return r(t, e), i([l(cc.Button)], t.prototype, "pButton", void 0), i([l(cc.Sprite)], t.prototype, "pLogoSprite", void 0), i([l(cc.Sprite)], t.prototype, "pFlagSprite", void 0), i([l(cc.Node)], t.prototype, "pSelected", void 0), i([l(cc.Node)], t.prototype, "pMask", void 0), i([l(cc.Label)], t.prototype, "pDesc", void 0), i([l(cc.Label)], t.prototype, "Now", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AllianceFlagSelectionPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5c993FEI5CtIKkk3AWjPqM", "AllianceFlagSelectionPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("./AllianceFlagItem"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.pTitleText = null, t.pCancelButtonText = null, t.pChangeButtonText = null, t.pCancelButton = null, t.pChangeButton = null, t.pFlagScrollView = null, t.pFlagScrollViewContent = null, t.mainAtlas = null, t.multiLangAtlas = null, t.oldFlagLogoID = 1, t.oldFlagBgID = 1, t.allianceLevel = 0, t.allianceFlagItems = [], t.selectedallianceFlagItemIndex = -1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.InitNodesAndComponents = function() {}, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.SetAllianceCityWarEntry = function() {
                    u.DataCenter.Instance.GetSpecialRedDot(p.SpecialRedDotType.AllianceId) > 0 && l.UIManager.Instance.QuitPanelStack(this)
                }, t.prototype.DisPlay = function() {
                    l.EZLog.Debug("ok in AllianceFlagSelectionPanel DisPlay..."), e.prototype.DisPlay.call(this), this.node.active = !0
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InitNodesAndComponents(), this.pCancelButton.node.on("click", this.LeavePanel.bind(this), this), this.pChangeButton.node.on("click", this.OnClickpChangeButton.bind(this), this), this.pTitleText.string = "allianceBase_flagTitle".ToUILocale(), this.pCancelButtonText.string = "Answer_QuitNo".ToUILocale(), this.pChangeButtonText.string = "equip_change".ToUILocale()
                }, t.prototype.ShowFlagGrid = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != n.flagPrefabAsset ? [3, 2] : (e = n, [4, this.LoadDynamicAsset(n.flagPrefabPathName)]);
                                case 1:
                                    e.flagPrefabAsset = s.sent(), s.label = 2;
                                case 2:
                                    if (!n.flagPrefabAsset) return l.EZLog.Debug("ok in AllianceFlagSelectionPanel.ShowFlagGrid ... loading " + n.flagPrefabPathName + " failed."), [2, null];
                                    for (this.pFlagScrollViewContent.destroyAllChildren(), this.flagConfigs = d.ConfigDataComponent.Instance.GetArrayConfig(f.AllianceIcon_Config), c.EZLog.Log("flag Config = ", this.flagConfigs), t = 0, o = this.flagConfigs.length; t < o; ++t)(r = cc.instantiate(n.flagPrefabAsset)).setParent(this.pFlagScrollViewContent), i = r.getComponent(y.default), a = this.flagConfigs[t].LogoID, u = this.flagConfigs[t].FlagID, i.index = t, i.itemID = this.flagConfigs[t].Id, i.logoID = a, i.flagID = u, i.pLogoSprite.spriteFrame = this.mainAtlas.getSpriteFrame("flagLogo" + a), i.pFlagSprite.spriteFrame = this.mainAtlas.getSpriteFrame("flagBg" + u), i.pButton.node.on("click", this.OnClickFlagItemButton.bind(this)), this.allianceFlagItems.push(i), a == this.oldFlagLogoID && u == this.oldFlagBgID ? (this.selectedallianceFlagItemIndex = t, this.SelectFlagItem(i), i.Now.node.parent.active = !0, i.Now.string = "PlayerCountrySelection_SelectTip".ToUILocale()) : (i.Now.node.parent.active = !1, this.allianceLevel >= this.flagConfigs[t].RequireLevel ? this.EnableFlagItem(i) : this.DisableFlagItem(i, this.flagConfigs[t].RequireLevel));
                                    return this.pFlagScrollView.scrollToTop(), [2]
                            }
                        })
                    })
                }, t.prototype.LeavePanel = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickpChangeButton = function() {
                    this.LeavePanel();
                    var e = this.allianceFlagItems[this.selectedallianceFlagItemIndex];
                    this.callerPanelEventCallBack(e.itemID, e.logoID, e.flagID)
                }, t.prototype.EnableFlagItem = function(e) {
                    e.pButton.enabled = !0, e.pMask.active = !1, e.pSelected.active = !1
                }, t.prototype.DisableFlagItem = function(e, t) {
                    e.pButton.enabled = !0, e.pMask.active = !0, e.pSelected.active = !1, e.pDesc.string = "allianceBase_flagUnlock".ToUILocale().Fmt(t.toString())
                }, t.prototype.SelectFlagItem = function(e) {
                    this.EnableFlagItem(e), e.pSelected.active = !0
                }, t.prototype.OnClickFlagItemButton = function(e) {
                    var t = e.node.getComponent(y.default).index,
                        n = this.flagConfigs[t].RequireLevel;
                    this.allianceLevel < n ? h.UIUtlity.ShowFloatingHint("allianceBase_flaglockedHint".ToUILocale().Fmt(n.toString())) : (l.EZLog.Debug("ok in AllianceFlagSelectionPanel OnClickFlagItemButton ...allianceFlagItem index:" + t), this.EnableFlagItem(this.allianceFlagItems[this.selectedallianceFlagItemIndex]), this.selectedallianceFlagItemIndex = t, this.SelectFlagItem(this.allianceFlagItems[this.selectedallianceFlagItemIndex]))
                }, t.prototype.InitData = function(e) {
                    l.EZLog.Debug("ok in AllianceFlagSelectionPanel InitData ..."), this.oldFlagLogoID = e[0], this.oldFlagBgID = e[1], this.allianceLevel = e[2], this.callerPanelEventCallBack = e[3], this.ShowFlagGrid()
                }, t.prototype.onDestroy = function() {
                    c.EZLog.Log("On Destroy ... "), n.flagPrefabAsset = null
                }, t.flagPrefabPathName = "AllianceBasePanel/Private/FlagItem", t.flagPrefabAsset = null, i([I(cc.Label)], t.prototype, "pTitleText", void 0), i([I(cc.Label)], t.prototype, "pCancelButtonText", void 0), i([I(cc.Label)], t.prototype, "pChangeButtonText", void 0), i([I(cc.Button)], t.prototype, "pCancelButton", void 0), i([I(cc.Button)], t.prototype, "pChangeButton", void 0), i([I(cc.ScrollView)], t.prototype, "pFlagScrollView", void 0), i([I(cc.Node)], t.prototype, "pFlagScrollViewContent", void 0), i([I(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([I(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), n = i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AllianceFlagItem": "AllianceFlagItem"
    }],
    AllianceInsigniaItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9e1a4ZD2aZK8IAulUStRyRR", "AllianceInsigniaItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Auxiliary/UIUtlity"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Components/RpcComponent"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/DataCenter"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelectFlag = null, t.NameBg = null, t.BaseBg = null, t.InsigniaIcon = null, t.Name = null, t.RedDot = null, t.DeadLine = null, t.DeadLineLabel = null, t
                }
                var n;
                return r(t, e), n = t, Object.defineProperty(t.prototype, "Config", {
                    get: function() {
                        return this._config
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    this.node.on("click", this.OnClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off("click", this.OnClick, this)
                }, t.prototype.Init = function(e, t) {
                    this._config = t, this._base = e, this.SetIcon(), n.CurrentItem && n.Flag === this._config.Id ? this.SelectFlag.active = !0 : this.SelectFlag.active = !1, e.GetInsigniaData(t.Id) && e.GetInsigniaData(t.Id).Level > 0 ? this.SetNormalState() : this.SetGrayState(), e.GetInsigniaData(t.Id) && e.GetInsigniaData(t.Id).UpLevel > 0 && c.default.Instance.CheckAllianceInsigniaCanUp(t.Id) ? this.RedDot.active = !0 : this.RedDot.active = !1, this.Name.string = e.GetInsiginaName(t.Id), this.SetDeadLine()
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this._base.GetInsigniaIcon(this._config.Icon)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.InsigniaIcon.spriteFrame = e, [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.SetSelectBg = function() {
                    n.CurrentItem ? n.CurrentItem !== this && (n.CurrentItem.SelectFlag.active = !1, n.CurrentItem = this) : n.CurrentItem = this, this.SelectFlag.active = !0, n.Flag = this._config.Id, n.CurrentItem.SelectFlag.active = !0
                }, t.prototype.SetNormalState = function() {
                    this.BaseBg.spriteFrame = this._base.Atlas.getSpriteFrame("base1"), this.NameBg.spriteFrame = this._base.Atlas.getSpriteFrame("nameBg1"), l.UIUtlity.OffSpriteGray(this.InsigniaIcon)
                }, t.prototype.SetGrayState = function() {
                    this.BaseBg.spriteFrame = this._base.Atlas.getSpriteFrame("base0"), this.NameBg.spriteFrame = this._base.Atlas.getSpriteFrame("nameBg0"), l.UIUtlity.OnSpriteGray(this.InsigniaIcon)
                }, t.prototype.OnClick = function() {
                    n.CurrentItem && n.CurrentItem === this || (this.SetSelectBg(), this._base.InsigniaItemCall(this))
                }, t.prototype.SetDeadLine = function() {
                    this.unschedule(this.RefreshTime);
                    var e = d.DataCenter.Instance.GetDataById(p.AllianceBadge_Model, this._config.Id);
                    !e || e.Level <= 0 ? this.DeadLine.active = !1 : (this._deadLine = c.default.Instance.GetAllianceInsigniaDeadLineById(this._config.Id), this.DeadLine.active = this._deadLine >= 0, this.RefreshTime(), this.schedule(this.RefreshTime, 1))
                }, t.prototype.RefreshTime = function() {
                    var e = u.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t > 0 ? this.DeadLineLabel.string = "<outline color=#202434 width=3><color=#FFFFFF>" + "activityGetWayTime".ToUILocale().Fmt("<color=#6EEEA7>" + c.default.ActivityTimeLeftFormat(t) + "</color>") + "</color></outline>" : this.DeadLine.active = !1
                }, t.prototype.onDestroy = function() {
                    n.CurrentItem == this && (n.CurrentItem = null)
                }, i([y(cc.Node)], t.prototype, "SelectFlag", void 0), i([y(cc.Sprite)], t.prototype, "NameBg", void 0), i([y(cc.Sprite)], t.prototype, "BaseBg", void 0), i([y(cc.Sprite)], t.prototype, "InsigniaIcon", void 0), i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Node)], t.prototype, "RedDot", void 0), i([y(cc.Node)], t.prototype, "DeadLine", void 0), i([y(cc.RichText)], t.prototype, "DeadLineLabel", void 0), n = i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AllianceInsigniaOverViewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8a5e0VcVJBF/rnF4cITLBzu", "AllianceInsigniaOverViewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Title = null, t.SmallTitle = null, t.AttrLessList = null, t.AttrLotScroview = null, t.AttrLotList = null, t.AttrNode = null, t.NullAttr = null, t.NullAttrLabel = null, t._attrItems = [], t._data = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ChaosTemple_TotalAttr".ToUILocale(), this.SmallTitle.string = "allianceInsignia_attr_smallTitle".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetAttrs()
                }, t.prototype.SetAttrs = function() {
                    var e, t = 0;
                    if (this._data.length <= 0) return this.NullAttr.active = !0, this.AttrLotScroview.active = !1, this.AttrLessList.active = !1, void(this.NullAttrLabel.string = "ActivityHeroTestTower_Battle_None_Addtion".ToUILocale());
                    for (this.NullAttr.active = !1, this._data.length <= 6 ? (this.AttrLotScroview.active = !1, this.AttrLessList.active = !0, e = this.AttrLessList) : (this.AttrLotScroview.active = !0, this.AttrLessList.active = !1, e = this.AttrLotList); t < this._data.length; t++) {
                        var n = this._attrItems[t];
                        if (!n) {
                            var o = cc.instantiate(this.AttrNode);
                            o.setParent(e), n = {
                                Node: o,
                                Title: cc.find("Title", o).getComponent(cc.Label),
                                Value: cc.find("Value", o).getComponent(cc.Label)
                            }, this._attrItems.push(n)
                        }
                        n.Node.active = !0, n.Title.string = this._data[t][0], n.Value.string = this._data[t][1]
                    }
                    for (; t < this._attrItems.length; t++) this._attrItems[t].Node.active = !1
                }, i([c(cc.Label)], t.prototype, "Title", void 0), i([c(cc.Label)], t.prototype, "SmallTitle", void 0), i([c(cc.Node)], t.prototype, "AttrLessList", void 0), i([c(cc.Node)], t.prototype, "AttrLotScroview", void 0), i([c(cc.Node)], t.prototype, "AttrLotList", void 0), i([c(cc.Node)], t.prototype, "AttrNode", void 0), i([c(cc.Node)], t.prototype, "NullAttr", void 0), i([c(cc.Label)], t.prototype, "NullAttrLabel", void 0), i([l], t)
            }(a.BaseUIPanel);
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    AllianceInsigniaPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "01676TA+bxFVZaebqs3u2x6", "AllianceInsigniaPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Components/DataCenter"),
            f = e("../../Components/RpcComponent"),
            y = e("../../Components/Components"),
            g = e("../Components/AsyncLayout"),
            m = e("../Components/AllianceInsigniaItem"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../Components/GameModuleGuideManager"),
            b = e("../../RedDot/RedDotManager"),
            S = e("../../../ShareConsts/EnumType"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.ForbidUnLock = 0] = "ForbidUnLock", e[e.CanUnlock = 1] = "CanUnlock", e[e.ForbidUp = 2] = "ForbidUp", e[e.CanUp = 3] = "CanUp", e[e.MaxUp = 4] = "MaxUp"
        })(l || (l = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.RuleBtn = null, t.InsigniaList = null, t.InsigniaName = null, t.AttrLabel = null, t.AttrBeforeValue = null, t.AttrAfterValue = null, t.MaxAttrValue = null, t.NoMaxAttrValueNode = null, t.Condition = null, t.ConditionInfo = null, t.UpBtn = null, t.UpBtnLabel = null, t.NoUpBtn = null, t.NoUpBtnLabel = null, t.GrayUpBtn = null, t.GrayUpBtnLabel = null, t.OverviewBtn = null, t.OverviewBtnLabel = null, t.ReturnBtn = null, t.InsigniaNode = null, t.AutoBtn = null, t.AutoBtnLabel = null, t.MaxLv = null, t.MaxLvLabel = null, t._insigniaConfigs = [], t._showInsigniaIds = [], t.notDevideArray = [4, 5, 7, 9, 10, 11, 12, 18, 19, 20, 21], t.ConditionValueNeedNegative = [10001, 10002, 10003], t._moduleGuideGroupIds = [10037], t._guideStepIndex = 0, t._guideGroupId = 0, t._insigniaIconByPath = {}, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "Atlas", {
                get: function() {
                    return this._atlas
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(C.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(C.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return e = this, [4, this.LoadDynamicAsset("AllianceInsigniaPanel/Png/AllianceInsigniaPanel", cc.SpriteAtlas)];
                            case 1:
                                return e._atlas = t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "allianceInsignia_title".ToUILocale(), this.NoUpBtnLabel.string = "LoverArrow_Start_Go".ToUILocale(), this.OverviewBtnLabel.string = "ChaosTemple_TotalAttr".ToUILocale(), this.AutoBtnLabel.string = "SoulRecord_oneBtn".ToUILocale(), this.MaxLvLabel.string = "exclusive_weapon_gallery_max_level_tips".ToUILocale(), this.AutoBtn.node.on("click", this.OnAuto, this), this.RuleBtn.node.on("click", this.OnRule, this), this.UpBtn.node.on("click", this.OnUpBtnClick, this), this.NoUpBtn.node.on("click", this.OnGoto, this), this.OverviewBtn.node.on("click", this.OnOverview, this), this.ReturnBtn.node.on("click", this.OnReturn, this), this.GrayUpBtn.node.on("click", this.OnGray, this), this.InsigniaList.Init(this.InsigniaNode, this.OnInitializeItem.bind(this)), this._autoUpLevelLimit = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceInsigniaUpLevelLimit"), this._autoActiveLimit = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceInsigniaActiveLimit")
            }, t.prototype.OnInitializeItem = function(e, t) {
                var n = e.getComponent(m.default);
                n.Init(this, this._insigniaDatas[this._showInsigniaIds[t]].Config), void 0 !== this._defaultSelect && this._defaultSelect == t && (n.SetSelectBg(), this._defaultSelect = void 0), this._guideInsignia && this._guideInsignia.Node && this._guideInsignia.Node.isValid && this._guideInsignia.Node === e && (this._guideInsignia.Node.getComponent(m.default).Config.Id != this._guideInsignia.Sid ? v.default.Instance.HideFinger(this._guideInsignia.Node, !0) : v.default.Instance.HideFinger(this._guideInsignia.Node, !1))
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this._insigniaConfigs = y.ConfigDataComponent.Instance.GetArrayConfig(u.AllianceBadge_Config), this.InitInsigniaData(), this.RefreshList(), this.InsigniaChange(), this.ShowGameGuid())
            }, t.prototype.InitInsigniaData = function() {
                this._insigniaDatas || (this._insigniaDatas = {});
                for (var e = 0; e < this._insigniaConfigs.length; e++) {
                    var t = this._insigniaConfigs[e];
                    this._showInsigniaIds.push(t.Id);
                    var n, o = h.DataCenter.Instance.GetDataById(p.AllianceBadge_Model, t.Id);
                    n = o && o.Level ? o.Level : 0;
                    var r = I.default.Instance.GetAllianceInsigniaUpLevel(t.Id);
                    this._insigniaDatas[t.Id] = {
                        Sid: t.Id,
                        Level: n,
                        Config: t,
                        UpLevel: r,
                        Desc: ("allianceInsignia_desc_" + t.Privilege[0].Items[0]).ToUILocale()
                    }
                }
            }, t.prototype.RefreshList = function() {
                this._isRenderLayout ? this.InsigniaList.ReRender() : (this.SortShowInsigniaIds(), this._defaultSelect = 0, this._isRenderLayout = !0, this.InsigniaList.RenderLayout(this._showInsigniaIds.length))
            }, t.prototype.SortShowInsigniaIds = function() {
                var e = this;
                this._showInsigniaIds.sort(function(t, n) {
                    var o = e._insigniaDatas[t],
                        r = e._insigniaDatas[n],
                        i = I.default.Instance.CheckAllianceInsigniaCanUp(o.Sid),
                        a = I.default.Instance.CheckAllianceInsigniaCanUp(r.Sid);
                    return o.UpLevel > 0 && r.UpLevel > 0 ? i && !a ? -1 : !i && a ? 1 : 0 == o.Level && 0 != r.Level ? -1 : 0 != o.Level && 0 == r.Level ? 1 : o.Sid - r.Sid : o.UpLevel > 0 && r.UpLevel <= 0 ? !i && 0 == o.Level && r.Level > 0 ? 1 : -1 : o.UpLevel <= 0 && r.UpLevel > 0 ? !a && 0 == r.Level && o.Level > 0 ? -1 : 1 : o.Level > 0 && r.Level <= 0 ? -1 : o.Level <= 0 && r.Level > 0 ? 1 : o.Sid - r.Sid
                })
            }, t.prototype.RefreshInsigniaDataById = function(e) {
                var t = h.DataCenter.Instance.GetDataById(p.AllianceBadge_Model, e);
                t && t.Level && t.Level;
                var n = I.default.Instance.GetAllianceInsigniaUpLevel(e);
                this._insigniaDatas[e].Level = t.Level, this._insigniaDatas[e].UpLevel = n
            }, t.prototype.GetInsiginatoryData = function() {
                return m.default.CurrentItem && m.default.CurrentItem.Config ? this._insigniaDatas[m.default.CurrentItem.Config.Id] : this._insigniaDatas[this._showInsigniaIds[0]]
            }, t.prototype.InsigniaItemCall = function(e) {
                this._guideInsignia && this._guideInsignia.Node && this._guideInsignia.Node.isValid && this._guideInsignia.Node.getComponent(m.default).Config.Id !== e.Config.Id && this.RemoveFinger(), this.InsigniaChange()
            }, t.prototype.InsigniaChange = function() {
                this.RefreshBtnState(), this.ChangeAttrInfo(), this.HideAutoButton()
            }, t.prototype.RefreshBtnState = function() {
                var e = this.GetInsiginatoryData();
                this.UpBtnLabel.string = 0 == e.Level ? "allianceTalent_active".ToUILocale() : "CollectionPavilion_HeroFetter_UpLevel".ToUILocale(), this.GrayUpBtnLabel.string = 0 == e.Level ? "allianceTalent_active".ToUILocale() : "CollectionPavilion_HeroFetter_UpLevel".ToUILocale(), 0 == e.Level ? e.UpLevel > 0 ? this._btnState = l.CanUnlock : this._btnState = l.ForbidUnLock : e.UpLevel > 0 ? (this._btnState = l.CanUp, this._autoUpLevelLimit && e.UpLevel >= this._autoUpLevelLimit ? this.UpBtnLabel.string = "allianceInsignia_auto_upLevel".ToUILocale() : this.UpBtnLabel.string = "CollectionPavilion_HeroFetter_UpLevel".ToUILocale()) : e.Level >= e.Config.Task.length - 1 ? this._btnState = l.MaxUp : this._btnState = l.ForbidUp, this._btnState == l.MaxUp ? (this.UpBtn.node.active = !1, this.NoUpBtn.node.active = !1, this.MaxLv.active = !0, this.GrayUpBtn.node.active = !1) : (e.UpLevel > 0 ? (this.NoUpBtn.node.active = !1, I.default.Instance.CheckAllianceInsigniaCanUp(e.Sid) ? (this.GrayUpBtn.node.active = !1, this.UpBtn.node.active = !0) : (this.GrayUpBtn.node.active = !0, this.UpBtn.node.active = !1)) : (this.UpBtn.node.active = !1, this.NoUpBtn.node.active = !0, this.GrayUpBtn.node.active = !1), this.MaxLv.active = !1)
            }, t.prototype.ChangeAttrInfo = function() {
                var e = this.GetInsiginatoryData();
                this.InsigniaName.string = this.GetInsiginaName(e.Config.Id), this.SetAtrAddInfo(e.Sid), this.Condition.string = this._btnState > l.CanUnlock ? "TreasureHouse_Building_NextLevel_Condition".ToUILocale() : "allianceInsignia_active_condition".ToUILocale();
                var t, n, o, r = 0;
                switch (r = this._btnState == l.MaxUp ? e.Config.Task[e.Config.Task.length - 1] : e.Config.Task[e.Level + 1], this.ConditionValueNeedNegative.includes(e.Config.Task[0]) && (r = -r), e.Config.Task[0]) {
                    case S.AllianceTaskType.AllianceChallengeRank:
                    case S.AllianceTaskType.AllianceBossRank:
                    case S.AllianceTaskType.AllianceMazeRank:
                        n = 1 == r ? "allianceInsignia_upDesc_one_" : "allianceInsignia_upDesc_";
                        break;
                    default:
                        n = "allianceInsignia_upDesc_"
                }
                switch (o = this.GetAllianceTaskProgress(e.Config.Task[0]) + "/" + r, this._btnState) {
                    case l.ForbidUnLock:
                    case l.ForbidUp:
                        t = "<outline color=#202434 width=3><color=#FF403E>(" + o + ")</color></outline>";
                        break;
                    case l.CanUnlock:
                    case l.CanUp:
                    case l.MaxUp:
                        t = "<outline color=#202434 width=3><color=#6EEEA7>(" + o + ")</color></outline>"
                }
                var i = "" + n + e.Config.Task[0];
                this.ConditionInfo.string = "<color=#624E3C>" + i.ToUILocale().Fmt(t) + "</color>"
            }, t.prototype.SetAtrAddInfo = function(e) {
                var t = this._insigniaDatas[e];
                this.AttrLabel.string = t.Desc;
                var n = t.Level;
                this.MaxAttrValue.node.active = !1, this.NoMaxAttrValueNode.active = !1, n >= t.Config.Privilege.length ? (this.MaxAttrValue.node.active = !0, this.notDevideArray.includes(t.Config.Privilege[t.Config.Privilege.length - 1].Items[0]) ? this.MaxAttrValue.string = t.Config.Privilege[t.Config.Privilege.length - 1].Items[1].toString() : this.MaxAttrValue.string = t.Config.Privilege[t.Config.Privilege.length - 1].Items[1] / 10 + "%") : 0 == n ? (this.NoMaxAttrValueNode.active = !0, this.notDevideArray.includes(t.Config.Privilege[0].Items[0]) ? (this.AttrBeforeValue.string = "+0", this.AttrAfterValue.string = "+" + t.Config.Privilege[0].Items[1]) : (this.AttrBeforeValue.string = "0%", this.AttrAfterValue.string = t.Config.Privilege[0].Items[1] / 10 + "%")) : (this.NoMaxAttrValueNode.active = !0, this.notDevideArray.includes(t.Config.Privilege[0].Items[0]) ? (this.AttrBeforeValue.string = "+" + t.Config.Privilege[n - 1].Items[1], this.AttrAfterValue.string = "+" + t.Config.Privilege[n].Items[1]) : (this.AttrBeforeValue.string = t.Config.Privilege[n - 1].Items[1] / 10 + "%", this.AttrAfterValue.string = t.Config.Privilege[n].Items[1] / 10 + "%"))
            }, t.prototype.OnUpBtnClick = function() {
                var e = this,
                    t = this.GetInsiginatoryData(),
                    n = new p.Req_Alliance_BadgeUpgrade,
                    o = t.Level;
                I.default.Instance.CheckAllianceInsigniaCanUp(t.Sid) ? (this._autoUpLevelLimit && t.UpLevel >= this._autoUpLevelLimit ? o += t.UpLevel : o += 1, n.Params = [{
                    Items: [t.Config.Id, o]
                }], f.RpcComponent.Instance.Call(n, function() {
                    e.RefreshInsigniaDataById(t.Config.Id), e.InsigniaChange(), e.RefreshList(), e.UpSucessFloat(t)
                })) : d.UIUtlity.ShowFloatingHint(("allianceInsignia_forbidUp_" + t.Config.Task[0]).ToUILocale())
            }, t.prototype.UpSucessFloat = function(e) {
                var t = this.GetInsiginaName(e.Sid),
                    n = e.Level;
                d.UIUtlity.ShowFloatingHint("allianceInsignia_upHInt_one".ToUILocale().Fmt(t, n))
            }, t.prototype.OnAuto = function() {
                for (var e = this, t = [], n = 0; n < this._showInsigniaIds.length; n++) {
                    var o = this._insigniaDatas[this._showInsigniaIds[n]];
                    if (I.default.Instance.CheckAllianceInsigniaCanUp(o.Sid)) {
                        if (!(o.UpLevel > 0)) break;
                        t.push({
                            Items: [o.Sid, o.UpLevel + o.Level]
                        })
                    }
                }
                var r = new p.Req_Alliance_BadgeUpgrade;
                r.Params = t, f.RpcComponent.Instance.Call(r, function() {
                    d.UIUtlity.ShowFloatingHint("allianceInsignia_upHInt_auto".ToUILocale());
                    for (var t = 0; t < e._showInsigniaIds.length; t++) {
                        var n = e._insigniaDatas[e._showInsigniaIds[t]];
                        if (!(n.UpLevel > 0)) break;
                        e.RefreshInsigniaDataById(n.Config.Id)
                    }
                    e.InsigniaChange(), e.RefreshList()
                })
            }, t.prototype.OnRule = function() {
                var e = {
                    name: "allianceInsignia_title".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["allianceInsignia_ruleInfo".ToUILocale()]
                };
                d.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnOverview = function() {
                for (var e = [], t = 0; t < this._showInsigniaIds.length; t++) {
                    var n = this._insigniaDatas[this._showInsigniaIds[t]];
                    if (0 != n.Level) {
                        var o = n.Config.Privilege[n.Level - 1].Items[1],
                            r = n.Config.Privilege[n.Level - 1].Items[0];
                        if (o && r) {
                            var i = [n.Desc, ""];
                            this.notDevideArray.includes(r) ? i[1] = "+" + o : i[1] = o / 10 + "%", e.push(i)
                        }
                    }
                }
                c.UIManager.Instance.ShowUIPanel(_.PanelConfig.AllianceInsigniaOverViewPanel.Path, e)
            }, t.prototype.OnGoto = function() {
                var e = this.GetInsiginatoryData();
                e && e.Config && e.Config.GetWay && I.default.ShowPanelByGetWayId(e.Config.GetWay)
            }, t.prototype.OnReturn = function() {
                this.Close()
            }, t.prototype.GetInsigniaData = function(e) {
                return this._insigniaDatas && this._insigniaDatas[e] ? this._insigniaDatas[e] : null
            }, t.prototype.GetInsiginaName = function(e) {
                var t = this._insigniaDatas[e];
                if (!t) return "";
                var n = t.Config.Id.ToAllianceBadgeName();
                return t && t.Level > 0 && (n += I.default.Instance.GetLess100RomanNumerals(t.Level)), n
            }, t.prototype.GetPriviledgeDescInfos = function(e) {
                var t, n, o = this._insigniaDatas[e],
                    r = o.Level;
                return t = 0 == r ? 0 : !o.Config.Privilege || o.Config.Privilege.length < r ? 0 : o.Config.Privilege[r - 1].Items[1], n = o.Config.Privilege.length < r + 1 ? 0 : o.Config.Privilege[r].Items[1], this.notDevideArray.includes(o.Config.Privilege[0].Items[0]) ? [t.toString(), n.toString()] : [t / 10 + "%", n / 10 + "%"]
            }, t.prototype.ShowGameGuid = function(e) {
                if (!e || e == this._guideGroupId) {
                    var t = v.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                    if (!(t <= 0)) {
                        this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                        var n = y.ConfigDataComponent.Instance.GetConfigById(u.GameModuleGuideGroup_Config, this._guideGroupId);
                        if (n)
                            for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                var r = !0;
                                switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                    case 93:
                                        v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                        break;
                                    case 94:
                                        var i = this.GetNoSelectInsignia();
                                        i && (this._guideInsignia = {
                                            Node: i,
                                            Sid: i.getComponent(m.default).Config.Id
                                        }, v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, i));
                                        break;
                                    default:
                                        r = !1
                                }
                                if (this._guideStepIndex++, r) break
                            }
                    }
                }
            }, t.prototype.RemoveFinger = function() {
                if (this._guideInsignia && this._guideInsignia.Node && this._guideInsignia.Node.isValid) {
                    var e = v.default.Instance.GetFingerComponent(this._guideInsignia.Node);
                    e && (e.ManualClick(), this._guideInsignia = null)
                }
            }, t.prototype.GetNoSelectInsignia = function() {
                for (var e = 0; e < this.InsigniaList.node.children.length; e++) {
                    if (!m.default.CurrentItem) return this.InsigniaList.node.children[e];
                    if (m.default.CurrentItem.node !== this.InsigniaList.node.children[e]) return this.InsigniaList.node.children[e]
                }
                return null
            }, t.prototype.HideAutoButton = function() {
                var e = 0;
                for (var t in this._insigniaDatas) {
                    var n = this._insigniaDatas[t];
                    0 == n.Level && n.UpLevel > 0 && I.default.Instance.CheckAllianceInsigniaCanUp(n.Sid) && e++
                }
                this._autoActiveLimit && e <= this._autoActiveLimit ? this.AutoBtn.node.active = !1 : this.AutoBtn.node.active = !0
            }, t.prototype.GetAllianceTaskProgress = function(e) {
                return h.DataCenter.Instance.AllianceInfo && h.DataCenter.Instance.AllianceInfo.Tasks && h.DataCenter.Instance.AllianceInfo.Tasks[e] ? this.ConditionValueNeedNegative.includes(e) ? -h.DataCenter.Instance.AllianceInfo.Tasks[e] : h.DataCenter.Instance.AllianceInfo.Tasks[e] : h.DataCenter.Instance.AllianceInfo && h.DataCenter.Instance.AllianceInfo.Level && e == S.AllianceTaskType.AllianceLevel ? h.DataCenter.Instance.AllianceInfo.Level : 0
            }, t.prototype.GetInsigniaIcon = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._insigniaIconByPath || (this._insigniaIconByPath = {}), t = "AllianceInsigniaPanel/Icon/" + e, this._insigniaIconByPath[t] ? [3, 2] : [4, this.LoadDynamicAsset(t, cc.SpriteFrame)];
                            case 1:
                                if (n = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(n), [2];
                                this._insigniaIconByPath[t] = n, o.label = 2;
                            case 2:
                                return [2, this._insigniaIconByPath[t]]
                        }
                    })
                })
            }, t.prototype.OnGray = function() {
                var e = this.GetInsiginatoryData();
                d.UIUtlity.ShowFloatingHint(("allianceInsignia_forbidUp_" + e.Config.Task[0]).ToUILocale())
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), b.RedDotManager.Instance.RefreshRedDotNode(b.RedDotManager.Instance.RedDot.AllianceInsigniaNode)
            }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "RuleBtn", void 0), i([A(g.default)], t.prototype, "InsigniaList", void 0), i([A(cc.Label)], t.prototype, "InsigniaName", void 0), i([A(cc.Label)], t.prototype, "AttrLabel", void 0), i([A(cc.Label)], t.prototype, "AttrBeforeValue", void 0), i([A(cc.Label)], t.prototype, "AttrAfterValue", void 0), i([A(cc.Label)], t.prototype, "MaxAttrValue", void 0), i([A(cc.Node)], t.prototype, "NoMaxAttrValueNode", void 0), i([A(cc.Label)], t.prototype, "Condition", void 0), i([A(cc.RichText)], t.prototype, "ConditionInfo", void 0), i([A(cc.Button)], t.prototype, "UpBtn", void 0), i([A(cc.Label)], t.prototype, "UpBtnLabel", void 0), i([A(cc.Button)], t.prototype, "NoUpBtn", void 0), i([A(cc.Label)], t.prototype, "NoUpBtnLabel", void 0), i([A(cc.Button)], t.prototype, "GrayUpBtn", void 0), i([A(cc.Label)], t.prototype, "GrayUpBtnLabel", void 0), i([A(cc.Button)], t.prototype, "OverviewBtn", void 0), i([A(cc.Label)], t.prototype, "OverviewBtnLabel", void 0), i([A(cc.Button)], t.prototype, "ReturnBtn", void 0), i([A(cc.Node)], t.prototype, "InsigniaNode", void 0), i([A(cc.Button)], t.prototype, "AutoBtn", void 0), i([A(cc.Label)], t.prototype, "AutoBtnLabel", void 0), i([A(cc.Node)], t.prototype, "MaxLv", void 0), i([A(cc.Label)], t.prototype, "MaxLvLabel", void 0), i([P], t)
        }(c.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AllianceInsigniaItem": "AllianceInsigniaItem",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager"
    }],
    AllianceListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "44fc7KKwXFN1rCz8pbQfpgb", "AllianceListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pChiefPromptText = null, t.pMemberPromptText = null, t.pRequirementPromptText = null, t.pPowerPromptText = null, t.pLevelPromptText = null, t.pJoinButtonText = null, t.pGrayJoinButtonText = null, t.pGrayRequestedButtonText = null, t.pGrayFullMemberButtonText = null, t.pInspectButtonText = null, t.pItemButton = null, t.pJoinButton = null, t.pGrayJoinButton = null, t.pGrayRequestedButton = null, t.pGrayFullMemberButton = null, t.pInspectButton = null, t.pName = null, t.pLevel = null, t.pChief = null, t.pMember = null, t.pPowerRequirement = null, t.pLevelRequirement = null, t.pFlagLogo = null, t.pFlagBg = null, t.pChiefNameParent = null, t.pPowerRequirementParent = null, t.pAllianNameParent = null, t.memberNotFull = !1, t.enoughPower = !1, t.enoughLevel = !1, t._data = null, t
                }
                var n;
                return r(t, e), n = t, Object.defineProperty(t.prototype, "ChiefName", {
                    set: function(e) {
                        var t = this.pChiefPromptText.node.width;
                        this.pChiefNameParent.width = 240 - t, this.pChief.string = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "PowerRequirement", {
                    set: function(e) {
                        var t = this.pPowerPromptText.node.width;
                        this.pPowerRequirementParent.width = 240 - t, this.pPowerRequirement.string = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Name", {
                    set: function(e) {
                        var t = this;
                        this.pName.string = e, this.scheduleOnce(function() {
                            var e = t.pName.node.width;
                            t.pLevel.node.x = e <= 154 ? e + 4 : 158
                        }, 0)
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onLoad = function() {
                    this.InitNodesAndComponents()
                }, t.prototype.InitData = function(e) {
                    this._data = e
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    a.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null
                }, t.prototype.InitNodesAndComponents = function() {
                    this.pChiefPromptText.string = "allianceBase_memberTitleLeader".ToUILocale() + ":", this.pMemberPromptText.string = "allianceBase_detailInfoMember".ToUILocale() + ":", this.pRequirementPromptText.string = "allianceBase_detailInfoRequirement".ToUILocale() + ":", this.pPowerPromptText.string = "allianceBase_powerSimple".ToUILocale() + ":", this.pLevelPromptText.string = "screen_lv".ToUILocale() + ":", this.pJoinButtonText.string = "allianceBase_detailInfoJoinBtnText".ToUILocale(), this.pGrayJoinButtonText.string = "allianceBase_detailInfoGrayJoinBtnText".ToUILocale(), this.pGrayRequestedButtonText.string = "allianceBase_detailInfoRequestedBtnText".ToUILocale(), this.pGrayFullMemberButtonText.string = "allianceBase_detailInfoFullMemberBtnText".ToUILocale(), this.pInspectButtonText.string = "allianceBase_inspect".ToUILocale()
                }, Object.defineProperty(t.prototype, "data", {
                    get: function() {
                        return this._data
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.classNameString = "AllianceListItem", t.prefabPathName = "AllianceBasePanel/Private/AllianceListItem", t.prefabAsset = null, t.pool = new cc.NodePool, i([c(cc.Label)], t.prototype, "pChiefPromptText", void 0), i([c(cc.Label)], t.prototype, "pMemberPromptText", void 0), i([c(cc.Label)], t.prototype, "pRequirementPromptText", void 0), i([c(cc.Label)], t.prototype, "pPowerPromptText", void 0), i([c(cc.Label)], t.prototype, "pLevelPromptText", void 0), i([c(cc.Label)], t.prototype, "pJoinButtonText", void 0), i([c(cc.Label)], t.prototype, "pGrayJoinButtonText", void 0), i([c(cc.Label)], t.prototype, "pGrayRequestedButtonText", void 0), i([c(cc.Label)], t.prototype, "pGrayFullMemberButtonText", void 0), i([c(cc.Label)], t.prototype, "pInspectButtonText", void 0), i([c(cc.Button)], t.prototype, "pItemButton", void 0), i([c(cc.Button)], t.prototype, "pJoinButton", void 0), i([c(cc.Button)], t.prototype, "pGrayJoinButton", void 0), i([c(cc.Button)], t.prototype, "pGrayRequestedButton", void 0), i([c(cc.Button)], t.prototype, "pGrayFullMemberButton", void 0), i([c(cc.Button)], t.prototype, "pInspectButton", void 0), i([c(cc.Label)], t.prototype, "pName", void 0), i([c(cc.Label)], t.prototype, "pLevel", void 0), i([c(cc.Label)], t.prototype, "pChief", void 0), i([c(cc.Label)], t.prototype, "pMember", void 0), i([c(cc.Label)], t.prototype, "pPowerRequirement", void 0), i([c(cc.Label)], t.prototype, "pLevelRequirement", void 0), i([c(cc.Sprite)], t.prototype, "pFlagLogo", void 0), i([c(cc.Sprite)], t.prototype, "pFlagBg", void 0), i([c(cc.Node)], t.prototype, "pChiefNameParent", void 0), i([c(cc.Node)], t.prototype, "pPowerRequirementParent", void 0), i([c(cc.Node)], t.prototype, "pAllianNameParent", void 0), n = i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    AllianceListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "125b4rgAYFKF5JNT3iMHjIw", "AllianceListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../../Consts/Consts"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("./AllianceCommonDefines"),
            _ = e("./AllianceListItem"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../../Auxiliary/ModuleGuideManager"),
            b = e("../../Channel/AdjustAction"),
            S = e("../Components/AsyncLayout"),
            w = e("../../Auxiliary/EventKeys"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.pTitleText = null, t.pSearchBarDefaultText = null, t.pEmptyListText = null, t.pCreateButtonText = null, t.pVipDescText = null, t.pShowAvailableOnlyText = null, t.pBackButton = null, t.pSearchButton = null, t.pCancelSearchButton = null, t.pSearchBar = null, t.pCreateButton = null, t.pShowAvailableOnlyButton = null, t.pShowAvailableOnlyTip = null, t.pListScrollView = null, t.pListContent = null, t.mainAtlas = null, t.multiLangAtlas = null, t.allianceListData = [], t.matchAllianceNameWithSearchBarText = !1, t.disableJoining = !1, t._customLayout = null, t._listItemPrefab = null, t._realAllianceListData = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(_.default.prefabPathName, cc.Prefab)];
                                case 1:
                                    return t._listItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(g.GameEventIds.SpecialRedDotChange.Fmt(m.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this), c.Game.EventDispatcher.On(w.EventKeys.EVENT_JOINALLIANCE_SENT, this.RefreshPanelData, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(g.GameEventIds.SpecialRedDotChange.Fmt(m.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this), c.Game.EventDispatcher.Off(w.EventKeys.EVENT_JOINALLIANCE_SENT, this.RefreshPanelData, this)
                }, t.prototype.SetAllianceCityWarEntry = function() {
                    if (p.DataCenter.Instance.GetSpecialRedDot(m.SpecialRedDotType.AllianceId) > 0) return l.UIManager.Instance.QuitPanelStack(this), void l.UIManager.Instance.ShowUIPanel(f.PanelConfig.AllianceBaseMainPanel.Path)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.pBackButton.node.on("click", this.LeavePanel.bind(this), this), this.pCreateButton.node.on("click", this.OnClickCreateButton.bind(this), this), this.pShowAvailableOnlyButton.node.on("click", this.OnClickShowAvailableOnlyButton.bind(this), this), this.pShowAvailableOnlyTip.active = !1, this.pCancelSearchButton.node.active = !1, this.pCancelSearchButton.node.on("click", this.OnClickCancelSearchButton.bind(this), this), this.pSearchButton.node.on("click", this.OnClickSearchButton.bind(this), this), this.pSearchBar.node.on("text-changed", this.OnSearchBarTextChanged.bind(this), this), this.pSearchBarDefaultText.string = "allianceBase_searchDefaultText".ToUILocale(), this.pEmptyListText.string = "allianceBase_emptyList".ToUILocale(), this.pCreateButtonText.string = "allianceBase_createBtnText".ToUILocale(), this.pVipDescText.string = "allianceBase_vipDest".ToUILocale().Fmt(p.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceCreateRequireVipLevel")), this.pShowAvailableOnlyText.string = "allianceBase_showAvailOnly".ToUILocale(), this._customLayout = this.pListContent.getComponent(S.default), this._customLayout.Init(this._listItemPrefab, this.OnRenderAllianceItem.bind(this), !1, 2)
                }, t.prototype.DisPlay = function(t) {
                    l.EZLog.Debug("ok in AllianceListPanel DisPlay..."), e.prototype.DisPlay.call(this, t), this.node.active = !0, t || this.RefreshPanelData(), this.ShowModuleGuide()
                }, t.prototype.LeavePanel = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickSearchButton = function() {
                    this.matchAllianceNameWithSearchBarText = !0, this.GetAllianceList()
                }, t.prototype.OnClickCancelSearchButton = function() {
                    this.matchAllianceNameWithSearchBarText = !1, this.pSearchBar.string = "", this.pCancelSearchButton.node.active = !1, this.GetAllianceList()
                }, t.prototype.OnSearchBarTextChanged = function() {
                    this.pCancelSearchButton.node.active = this.pSearchBar.string.length > 0
                }, t.prototype.OnClickShowAvailableOnlyButton = function() {
                    var e = this.pShowAvailableOnlyTip.active;
                    this.pShowAvailableOnlyTip.active = !e, this.GetAllianceList()
                }, t.prototype.OnClickCreateButton = function() {
                    var e = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceCreateRequireVipLevel");
                    d.DataCenter.Instance.GetIntData(g.UserDataKey.VipLevel) < e ? h.UIUtlity.ShowFloatingHint("allianceBase_vipRequirementOnCreating".ToUILocale().Fmt(e.toString())) : this.ShowCreatingAlliancePanel()
                }, t.prototype.ShowCreatingAlliancePanel = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.AllianceSetupPanel.Path, I.AllianceSetupPanelMode.Creating, this)
                }, t.prototype.DealWithListData = function() {
                    this._realAllianceListData = [];
                    for (var e = 0; e < this.allianceListData.length; e++) {
                        var t = this.allianceListData[e];
                        if (!this.matchAllianceNameWithSearchBarText || t.Name.includes(this.pSearchBar.string)) {
                            var n = t.MemberCount < d.ConfigDataComponent.Instance.GetArrayConfig(y.AllianceLevel_Config)[t.Level - 1].MemberCount;
                            1 == this.pShowAvailableOnlyTip.active && 0 == n || this._realAllianceListData.push(t)
                        }
                    }
                }, t.prototype.SetListView = function() {
                    this.DealWithListData(), this._lastListCount != this._realAllianceListData.length ? this._customLayout.RenderLayout(this._realAllianceListData.length, this._customLayout.GetViewStartRowOrColumIndex()) : this._customLayout.ReRender(), this.pEmptyListText.node.active = this._realAllianceListData.length <= 0, this._lastListCount = this._realAllianceListData.length
                }, t.prototype.OnRenderAllianceItem = function(e, t) {
                    var n = e.getComponent(_.default),
                        o = this._realAllianceListData[t];
                    n.InitData(o), n.pInspectButton.node.off("click"), n.pJoinButton.node.off("click"), n.pGrayJoinButton.node.off("click"), n.pItemButton.node.off("click"), n.Name = o.Name, n.pLevel.string = "allianceBase_level".ToUILocale().Fmt(o.Level.toString()), n.ChiefName = o.LeaderName ? o.LeaderName : "";
                    var r = o.MemberCount,
                        i = d.ConfigDataComponent.Instance.GetConfigById(y.AllianceLevel_Config, o.Level).MemberCount,
                        a = r < i;
                    n.pMember.string = r.toString() + "/" + i.toString(), n.pMember.node.color = a ? cc.color().fromHEX("#33FF8E") : cc.color().fromHEX("#FF5B5B");
                    var s = d.ConfigDataComponent.Instance.GetConfigById(y.AllianceIcon_Config, o.Icon),
                        l = s.LogoID,
                        c = s.FlagID;
                    n.pFlagLogo.spriteFrame = this.mainAtlas.getSpriteFrame("flagLogo" + l), n.pFlagBg.spriteFrame = this.mainAtlas.getSpriteFrame("flagBg" + c);
                    var u = d.DataCenter.Instance.GetIntData(g.UserDataKey.Power),
                        p = d.DataCenter.Instance.GetIntData(g.UserDataKey.PlayerLevel),
                        h = u >= o.RequirePower,
                        f = p >= o.RequireLevel;
                    n.PowerRequirement = o.RequirePower.toString(), n.pLevelRequirement.string = o.RequireLevel.toString(), n.pPowerRequirement.node.color = h ? I.AllianceFontColor.green : I.AllianceFontColor.red, n.pLevelRequirement.node.color = f ? I.AllianceFontColor.green : I.AllianceFontColor.red;
                    var m = o.RequirePower >= 0,
                        C = o.RequireLevel >= 0;
                    if (n.pPowerPromptText.node.parent.active = m, n.pLevelPromptText.node.parent.active = C, n.pRequirementPromptText.node.active = m || C, n.memberNotFull = a, n.enoughPower = h, n.enoughLevel = f, this.disableJoining) n.pInspectButton.node.active = !0, n.pGrayRequestedButton.node.active = !1, n.pJoinButton.node.active = !1, n.pGrayJoinButton.node.active = !1, n.pGrayFullMemberButton.node.active = !1, n.pInspectButton.node.on("click", this.OnClickInspectButton.bind(this), this);
                    else if (o.IsRequested) n.pGrayRequestedButton.node.active = !0, n.pJoinButton.node.active = !1, n.pGrayJoinButton.node.active = !1, n.pGrayFullMemberButton.node.active = !1;
                    else if (a) {
                        n.pGrayRequestedButton.node.active = !1;
                        var v = h && f;
                        n.pJoinButton.node.active = v, n.pGrayJoinButton.node.active = !v, n.pGrayFullMemberButton.node.active = !1, v ? n.pJoinButton.node.on("click", this.OnClickJoinButton.bind(this), this) : n.pGrayJoinButton.node.on("click", this.OnClickGrayJoinButton.bind(this), this)
                    } else n.pGrayRequestedButton.node.active = !1, n.pJoinButton.node.active = !1, n.pGrayJoinButton.node.active = !1, n.pGrayFullMemberButton.node.active = !0;
                    n.pItemButton.node.on("click", this.OnClickItemButton.bind(this), this)
                }, t.prototype.RefreshAllianceList = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.allianceListData = e.DataList, this.SetListView(), [2]
                        })
                    })
                }, t.prototype.OnClickItemButton = function(e) {
                    var t = e.node.getComponent(_.default).data;
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.AllianceDetailPanel.Path, t.Id, this, this.disableJoining)
                }, t.prototype.OnClickInspectButton = function(e) {
                    var t = e.node.parent.getComponent(_.default).data;
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.AllianceDetailPanel.Path, t.Id, this, this.disableJoining)
                }, t.prototype.OnClickJoinButton = function(e) {
                    var t = e.node.parent.getComponent(_.default).data,
                        n = new u.Req_Alliance_ApplyJoin;
                    n.Id = t.Id, d.RpcComponent.Instance.Call(n, this.OnCallBackFromApplyJoin.bind(this), this.RefreshPanelData.bind(this))
                }, t.prototype.OnCallBackFromApplyJoin = function(e) {
                    if (b.default.AdjustTrackEvent(b.AdjustEventToken.GuildJoined), e.AllianceId && e.AllianceId > 0) {
                        d.DataCenter.Instance.AllianceId = e.AllianceId, l.UIManager.Instance.QuitPanelStack(this), h.UIUtlity.ShowFloatingHint("allianceBase_joinSuccess".ToUILocale());
                        var t = l.UIManager.Instance.GetUIPanel(f.PanelConfig.AllianceBaseMainPanel.Path);
                        null != t && C.RedDotManager.Instance.Bind(t.pMainPageTalentButton.node, C.RedDotManager.Instance.RedDot.AllianceTalentBtnNode, 0, 0)
                    } else h.UIUtlity.ShowFloatingHint("allianceBase_applicationSent".ToUILocale()), this.RefreshPanelData()
                }, t.prototype.OnClickGrayJoinButton = function(e) {
                    var t = e.node.parent.getComponent(_.default).data,
                        n = d.DataCenter.Instance.GetIntData(g.UserDataKey.Power),
                        o = d.DataCenter.Instance.GetIntData(g.UserDataKey.PlayerLevel),
                        r = n >= t.RequirePower,
                        i = o >= t.RequireLevel;
                    r ? i || h.UIUtlity.ShowFloatingHint("allianceBase_levelRequirementOnJoining".ToUILocale().Fmt(t.RequireLevel)) : h.UIUtlity.ShowFloatingHint("allianceBase_powerRequirementOnJoining".ToUILocale().Fmt(t.RequirePower))
                }, t.prototype.InitData = function(e) {
                    l.EZLog.Debug("ok in AllianceListPanel InitData ..."), this.disableJoining = e[0], this.pTitleText.string = this.disableJoining ? "allianceBase_list".ToUILocale() : "allianceBase_joining".ToUILocale(), this.pCreateButton.node.active = !this.disableJoining, this.pShowAvailableOnlyButton.node.active = !this.disableJoining
                }, t.prototype.RefreshPanelData = function() {
                    var e = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceCreateRequireVipLevel");
                    this.pVipDescText.node.active = e > 0 && 0 == this.disableJoining, this.GetAllianceList()
                }, t.prototype.GetAllianceList = function() {
                    var e = new u.Req_Alliance_GetAllianceList;
                    d.RpcComponent.Instance.Call(e, this.RefreshAllianceList.bind(this))
                }, t.prototype.ShowModuleGuide = function() {
                    v.default.instance.CheckGameModeuleGuideNeedShow(m.GameModuleType.Alliance) && (v.default.instance.ShowNPCDialogs([1025]), v.default.instance.CompleteGameModuleWeakGuide(m.GameModuleType.Alliance))
                }, i([T(cc.Label)], t.prototype, "pTitleText", void 0), i([T(cc.Label)], t.prototype, "pSearchBarDefaultText", void 0), i([T(cc.Label)], t.prototype, "pEmptyListText", void 0), i([T(cc.Label)], t.prototype, "pCreateButtonText", void 0), i([T(cc.Label)], t.prototype, "pVipDescText", void 0), i([T(cc.Label)], t.prototype, "pShowAvailableOnlyText", void 0), i([T(cc.Button)], t.prototype, "pBackButton", void 0), i([T(cc.Button)], t.prototype, "pSearchButton", void 0), i([T(cc.Button)], t.prototype, "pCancelSearchButton", void 0), i([T(cc.EditBox)], t.prototype, "pSearchBar", void 0), i([T(cc.Button)], t.prototype, "pCreateButton", void 0), i([T(cc.Button)], t.prototype, "pShowAvailableOnlyButton", void 0), i([T(cc.Node)], t.prototype, "pShowAvailableOnlyTip", void 0), i([T(cc.ScrollView)], t.prototype, "pListScrollView", void 0), i([T(cc.Node)], t.prototype, "pListContent", void 0), i([T(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([T(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), i([A], t)
            }(c.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/AdjustAction": "AdjustAction",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AllianceCommonDefines": "AllianceCommonDefines",
        "./AllianceListItem": "AllianceListItem"
    }],
    AllianceMazeBattleFailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5cb9dfHAkBF/K5RZgmqi8Rb", "AllianceMazeBattleFailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/Mask"),
            u = e("../Components/CustomProgressBar"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Mask = null, t.PanelNode = null, t.DamgeLabel = null, t.ProgressBar = null, t.Progress = null, t.SmallTitleLabel = null, t.CustomLayout = null, t.ItemContainer = null, t.PanelSpineNode = null, t.TitleSpineNode = null, t._rewardItems = [], t._isCustomLayoutInit = !1, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SmallTitleLabel.string = "rewardTitle".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rewards = t[0], this._intParams = t[1]
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this), this.ConfigRewards(), this.ConfigProgress(), this.PlayPanelAnimation(), [2]
                        })
                    })
                }, t.prototype.ConfigRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    return this._rewards.length <= 5 ? (this.CustomLayout.ScrollView.node.active = !1, this.ItemContainer.active = !0, this.ConfigItemContainer()) : this.InitCustomLayout(), [2]
                            }
                        })
                    })
                }, t.prototype.ConfigProgress = function() {
                    this.DamgeLabel.string = "allianceMaze_winTips".ToUILocale().Fmt(this._intParams[0]);
                    var e = this._intParams[1] > this._intParams[0] ? this._intParams[1] - this._intParams[0] : 0;
                    this.ProgressBar.progress = e / this._intParams[2], this.Progress.string = e + "/" + this._intParams[2]
                }, t.prototype.ConfigItemContainer = function() {
                    for (var e = 0; e < this._rewards.length; e++) {
                        if (this._rewardItems.length < this._rewards.length) {
                            var t = cc.instantiate(this._itemPrefab);
                            t.parent = this.ItemContainer, this._rewardItems.push(t.getComponent(h.ItemComponent))
                        }
                        this._rewardItems[e].Init({
                            ItemId: this._rewards[e].ItemId,
                            Count: this._rewards[e].Count
                        }, h.ItemComponentType.ItemCommon)
                    }
                }, t.prototype.InitCustomLayout = function() {
                    this._isCustomLayoutInit || (this._isCustomLayoutInit = !0, this.CustomLayout.Init(this._itemPrefab)), this.CustomLayout.RenderLayOut(this._rewards.length)
                }, t.prototype.PlayPanelAnimation = function() {
                    var e = this;
                    this.Mask.DisableClickEvent(), this.PanelNode.scale = 1.5, this.PanelNode.opacity = 0, this.PanelSpineNode.active = !1, this.TitleSpineNode.active = !1, cc.tween(this.PanelNode).to(.2, {
                        scale: 1,
                        opacity: 255
                    }, {
                        easing: "sineOut"
                    }).call(function() {
                        e.Mask.EnableClickEvent(), e.TitleSpineNode.active = !0
                    }).start()
                }, t.prototype.onDestroy = function() {
                    this._itemPrefab && l.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this._intParams[1], this._intParams[0]
                }, i([g(c.default)], t.prototype, "Mask", void 0), i([g(cc.Node)], t.prototype, "PanelNode", void 0), i([g(cc.RichText)], t.prototype, "DamgeLabel", void 0), i([g(u.default)], t.prototype, "ProgressBar", void 0), i([g(cc.Label)], t.prototype, "Progress", void 0), i([g(cc.Label)], t.prototype, "SmallTitleLabel", void 0), i([g(p.default)], t.prototype, "CustomLayout", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Node)], t.prototype, "PanelSpineNode", void 0), i([g(cc.Node)], t.prototype, "TitleSpineNode", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/Mask": "Mask",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllianceMazeBattlePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a3025WqrSZDo4tLxHd7YLiT", "AllianceMazeBattlePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/CustomProgressBar"),
            f = e("../../../Consts/Consts"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Battle/BattleManager"),
            C = e("../Components/GameModuleGuideManager"),
            v = e("./NodePool"),
            b = e("../Components/AllianceMazeStrengthBar"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.BattlePower = null, t.BattlePowerLabel = null, t.BattlePowerValue = null, t.EnemyHeroContainer = null, t.ProgressBar = null, t.Progress = null, t.RewardpreviewLabel = null, t.RewardContainer = null, t.CurrencyBar = null, t.BattleButton = null, t.BattleButtonLabel = null, t.GrayBattleButton = null, t.GrayBattleButtonLabel = null, t.ConcentrateFireBtn = null, t.ConcentrateFireBtnLabel = null, t.UnConcentrateFireBtn = null, t.UnConcentrateFireBtnLabel = null, t.Tips = null, t.TipsNode = null, t.BlockEvent = null, t.Hint = null, t.MessageContainer = null, t.ChallengeInfoLabel = null, t.Layout = null, t.isAllianceLeader = !1, t._moduleGuideGroupIds = {
                        103: 10022,
                        104: 10023,
                        105: 10024,
                        109: 10022
                    }, t._guideStepIndex = 0, t._guideGroupId = 0, t._messageLimit = 2, t._messageGap = 50, t._messageTimeCost = .5, t._messageInterval = 1, t._messageArray = [], t._tweens = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AllianceTestPanel/Component/Message", cc.Prefab), n = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._messagePrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.BattlePowerLabel.string = "allianceMaze_battlePower".ToUILocale(), this.RewardpreviewLabel.string = "allianceMaze_winReward".ToUILocale(), this.BattleButtonLabel.string = "HolyRelic_challenge".ToUILocale(), this.GrayBattleButtonLabel.string = "HolyRelic_challenge".ToUILocale(), this.ConcentrateFireBtnLabel.string = "StrongholdWar_Tip_GatherFire".ToUILocale(), this.UnConcentrateFireBtnLabel.string = "StrongholdWar_Tip_CancelGatherFire".ToUILocale(), this.Tips.string = "allianceMaze_battleTips".ToUILocale(), this.scheduleOnce(function() {
                        t.TipsNode.y = -t.Tips.node.height / 2
                    }), this.ChallengeInfoLabel.string = "allianceMaze_challengeInfo".ToUILocale(), this.BattleButton.node.on("click", this.OnBattleButtonClick, this), this.GrayBattleButton.node.on("click", this.OnBattleButtonClick, this), this.ConcentrateFireBtn.node.on("click", this.OnConcentrateFireBtnClick, this), this.UnConcentrateFireBtn.node.on("click", this.OnUnConcentrateFireBtnClick, this), this._messagePool = new v.default(this._messagePrefab)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], n._AlliaceMazeBattlePanelParams = t[1], n.BasePanel = t[2]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.node.opacity = 0, this.SetTitle(), this.SetBattleInfo(), this.SetConcentrateFireBtn(), this.ShowGameGuid(), this.GetMessage(), this.SetChallengeMode())
                }, t.prototype.SetChallengeMode = function() {
                    n._AlliaceMazeBattlePanelParams.EventParma.Type == f.AllianceMazeEventType.Challenge && (this.ChallengeInfoLabel.node.active = !0, this.Tips.node.parent.active = !1, this.ProgressBar.node.active = !1, this.Layout.updateLayout(), this.node.opacity = 255)
                }, t.prototype.SetTitle = function() {
                    switch (n._AlliaceMazeBattlePanelParams.EventParma.Type) {
                        case f.AllianceMazeEventType.Monster1:
                        case f.AllianceMazeEventType.Monster3:
                            this.Title.string = "allianceMaze_battle1".ToUILocale();
                            break;
                        case f.AllianceMazeEventType.Monster2:
                            this.Title.string = "allianceMaze_battle2".ToUILocale();
                            break;
                        case f.AllianceMazeEventType.BossCenter:
                            this.Title.string = "allianceMaze_battle3".ToUILocale();
                            break;
                        case f.AllianceMazeEventType.Challenge:
                            this.Title.string = "allianceMaze_battle4".ToUILocale()
                    }
                }, t.prototype.SetBattleInfo = function() {
                    var e = n._AlliaceMazeBattlePanelParams.EventParma.Param[0],
                        t = u.ConfigDataComponent.Instance.GetConfigById(y.MapBase_Config, e);
                    t.BattlePower ? (this.BattlePower.active = !0, this.BattlePowerValue.string = g.default.Instance.FormatNumber(t.BattlePower, 0)) : this.BattlePower.active = !1;
                    for (var o = 0; o < t.Heros.length; o++) {
                        var r = t.Heros[o].Items[1];
                        (p = cc.instantiate(this._itemPrefab)).setParent(this.EnemyHeroContainer);
                        var i = p.getComponent(m.ItemComponent),
                            a = {
                                ItemId: r,
                                Level: t.Strength[1],
                                StarLevel: t.Strength[0]
                            };
                        i.Init(a, m.ItemComponentType.HeroInfo)
                    }
                    n._totalPregress = n._AlliaceMazeBattlePanelParams.EventParma.Param[1], n._AlliaceMazeBattlePanelParams.CellData && null != n._AlliaceMazeBattlePanelParams.CellData.Items[1] ? n._progress = n._AlliaceMazeBattlePanelParams.CellData.Items[1] : n._progress = n._totalPregress, this.ProgressBar.progress = n._progress / n._totalPregress, this.Progress.string = n._progress + "/" + n._totalPregress;
                    var s, l = [],
                        c = n.GetHolyAddition();
                    for (c && (l = c.RewardAddon), o = 0; o < n._AlliaceMazeBattlePanelParams.EventParma.WinRewards.length; o++) {
                        var p;
                        (p = cc.instantiate(this._itemPrefab)).setParent(this.RewardContainer), i = p.getComponent(m.ItemComponent);
                        for (var d = n._AlliaceMazeBattlePanelParams.EventParma.WinRewards[o].Items[0], h = n._AlliaceMazeBattlePanelParams.EventParma.WinRewards[o].Items[1], I = 0; I < l.length; I++) {
                            l[I].Items[0] == d && (h = Math.floor(h * (1 + l[I].Items[1] / 1e3)));
                            break
                        }
                        i.Init({
                            ItemId: d,
                            Count: h
                        }, m.ItemComponentType.ItemCommon)
                    }
                    s = n._AlliaceMazeBattlePanelParams.EventParma.Type == f.AllianceMazeEventType.Challenge ? n._AlliaceMazeBattlePanelParams.EventParma.Param[1] : n._AlliaceMazeBattlePanelParams.EventParma.Param[2], this.CurrencyBar.Init(f.CommonItemId.AllianceMazeStrength, g.default.Instance.GetCurrentAllianceMazeStrength(n.BasePanel.ActivityConfig._id, n.BasePanel.AllianceMazeInfoData.Data.HolyExp), s), n._AlliaceMazeBattlePanelParams.CellData ? (this.BattleButton.node.active = !0, this.GrayBattleButton.node.active = !1) : (this.BattleButton.node.active = !1, this.GrayBattleButton.node.active = !0)
                }, t.prototype.SetConcentrateFireBtn = function() {
                    var e = this,
                        t = new c.Req_Alliance_GetMyAlliance;
                    u.RpcComponent.Instance.Call(t, function(t) {
                        var o = n.BasePanel,
                            r = n._AlliaceMazeBattlePanelParams,
                            i = o.ConcentrateFireInfo || [],
                            a = i[0],
                            s = i[1];
                        if (e.isAllianceLeader = t.MyPost === f.AlliancePostType.Leader, !e.isAllianceLeader) return e.ConcentrateFireBtn.node.active = !1, void(e.UnConcentrateFireBtn.node.active = !1);
                        var l = a && o.SelectedLayer === a && r.CellNum === s;
                        e.ConcentrateFireBtn.node.active = !l, e.UnConcentrateFireBtn.node.active = l
                    })
                }, t.prototype.OnConcentrateFireBtnClick = function() {
                    var e = this;
                    if (this.isAllianceLeader) {
                        this.BlockEvent.active = !0;
                        var t = new c.Req_Alliance_SetAllianceMazeFire;
                        t.ActivityId = this._activityId, t.Level = n._AlliaceMazeBattlePanelParams.Layer, t.BlockId = n._AlliaceMazeBattlePanelParams.CellNum, u.RpcComponent.Instance.Call(t, function() {
                            I.UIUtlity.ShowFloatingHint("allianceBase_settingUpAllianceSuccess".ToUILocale()), e.ConcentrateFireBtn.node.active = !1, e.UnConcentrateFireBtn.node.active = !0, e.BlockEvent.active = !1, n.BasePanel.RequestNewData()
                        })
                    }
                }, t.prototype.OnUnConcentrateFireBtnClick = function() {
                    var e = this;
                    if (this.isAllianceLeader) {
                        this.BlockEvent.active = !0;
                        var t = new c.Req_Alliance_SetAllianceMazeFire;
                        t.ActivityId = this._activityId, t.Level = 0, t.BlockId = 0, u.RpcComponent.Instance.Call(t, function() {
                            I.UIUtlity.ShowFloatingHint("allianceBase_settingUpAllianceSuccess".ToUILocale()), e.ConcentrateFireBtn.node.active = !0, e.UnConcentrateFireBtn.node.active = !1, e.BlockEvent.active = !1, n.BasePanel.RequestNewData()
                        })
                    }
                }, t.prototype.OnBattleButtonClick = function() {
                    n._AlliaceMazeBattlePanelParams.CellData ? g.default.Instance.GetCurrentAllianceMazeStrength(this._activityId, n.BasePanel.AllianceMazeInfoData.Data.HolyExp) < n._AlliaceMazeBattlePanelParams.EventParma.Param[2] ? l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemGetWayPanel.Path, f.CommonItemId.AllianceMazeStrength, !1) : n.StartBattle() : I.UIUtlity.ShowFloatingHint("allianceMaze_needLink".ToUILocale())
                }, t.GetHolyAddition = function() {
                    for (var e = n.BasePanel.AllianceMazeInfoData.Data.HolyExp, t = null, o = 0; o < n.BasePanel.ActivityConfig.Holy.length && !(e < n.BasePanel.ActivityConfig.Holy[o].Exp); o++) t = n.BasePanel.ActivityConfig.Holy[o];
                    return t
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContainer.children.indexOf(t) && I.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = C.default.Instance.GetCurrentGroupId([this._moduleGuideGroupIds[n._AlliaceMazeBattlePanelParams.EventParma.Type]], e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var o = u.ConfigDataComponent.Instance.GetConfigById(y.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (o)
                                for (var r = 0; r < o.GameModuleGuideStepIds.length; r++) {
                                    var i = !0;
                                    switch (o.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 55:
                                        case 58:
                                        case 61:
                                            C.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 56:
                                        case 59:
                                        case 62:
                                            C.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.Hint);
                                            break;
                                        default:
                                            i = !1
                                    }
                                    if (this._guideStepIndex++, i) break
                                }
                        }
                    }
                }, t.prototype.SetBroadCast = function() {
                    var e = this,
                        t = 0;
                    this.schedule(function() {
                        var n = e._notice[t],
                            o = n.IntParams[0],
                            r = e._messagePool.Get();
                        r.setParent(e.MessageContainer), r.opacity = 255, r.getComponent(cc.RichText).string = "<outline width=3 color=#202434>" + "allianceTest_broadCast".ToUILocale().Fmt("<color = #6EEEA7>" + n.StringParams + "</c>", "<color = #fed94a>" + e.Title.string + "</c>", "<img src = 'flag' width = 67 height = 59 align = center/><color = #FFE685>x" + o) + "</c></o>", e.PushACast(r), ++t >= e._notice.length && e.unscheduleAllCallbacks()
                    }, this._messageInterval)
                }, t.prototype.GetMessage = function() {
                    var e = this;
                    switch (n._AlliaceMazeBattlePanelParams.EventParma.Type) {
                        case f.AllianceMazeEventType.Monster2:
                        case f.AllianceMazeEventType.BossCenter:
                            this._messageArray = [null];
                            for (var t = 1; t <= this._messageLimit; t++) this._messageArray[t] = this._messagePool.Get();
                            this._messageArray[1].position = cc.v3(0, 25);
                            var o = new c.Req_Alliance_GetAllianceMazeChallengeNotice;
                            o.ActivityId = n._AlliaceMazeBattlePanelParams.ActivityId, o.Level = n._AlliaceMazeBattlePanelParams.Layer, o.BlockId = n._AlliaceMazeBattlePanelParams.CellNum, u.RpcComponent.Instance.Call(o, function(t) {
                                e._notice = t.Reports, e._notice && 0 != e._notice.length ? (e.MessageContainer.active = !0, e.Layout.updateLayout(), e.node.opacity = 255, e.SetBroadCast()) : e.node.opacity = 255
                            });
                            break;
                        default:
                            this.Layout.updateLayout(), this.node.opacity = 255
                    }
                }, t.prototype.PushACast = function(e) {
                    var t = this;
                    if (this._messageArray[0] = e, null != this._messageArray[1]) {
                        e.setPosition(cc.v3(0, 25 - this._messageGap));
                        for (var n = 0; n < this._messageLimit - 1; n++) {
                            if (null == this._messageArray[n]) return;
                            var o = cc.tween(this._messageArray[n]).by(this._messageTimeCost, {
                                position: cc.v3(0, this._messageGap)
                            }).start();
                            this._tweens.push(o)
                        }
                        var r = function(e) {
                                if (null == i._messageArray[e]) return {
                                    value: void 0
                                };
                                var n = cc.tween(i._messageArray[e]).by(i._messageTimeCost, {
                                    position: cc.v3(0, i._messageGap),
                                    opacity: -150
                                }).call(function() {
                                    if (e == t._messageLimit) {
                                        t._messagePool.Put(t._messageArray[t._messageLimit]);
                                        for (var n = t._messageLimit; n > 0; n--) t._messageArray[n] = t._messageArray[n - 1];
                                        t._messageArray[0] = null
                                    }
                                }).start();
                                i._tweens.push(n)
                            },
                            i = this;
                        for (n = this._messageLimit - 1; n <= this._messageLimit; n++) {
                            var a = r(n);
                            if ("object" == typeof a) return a.value
                        }
                    }
                }, t.InitBattle = function() {
                    var e = f.MapType.AllianceMaze;
                    l.Game.EventDispatcher.Only(f.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(f.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n)
                }, t.StartBattle = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.RequestChallenge(e)
                    }, [n._AlliaceMazeBattlePanelParams.EventParma.Param[0]], n.BasePanel.ActivityConfig._id)
                }, t.RequestChallenge = function(e) {
                    if (n._AlliaceMazeBattlePanelParams.EventParma.Type == f.AllianceMazeEventType.Challenge) {
                        var t = c.Req_Alliance_AllianceMazeSingleChallenge.create();
                        return t.ActivityId = n.BasePanel.ActivityConfig._id, t.Level = n._AlliaceMazeBattlePanelParams.Layer, t.BlockId = n._AlliaceMazeBattlePanelParams.CellNum, t.Formation = e[0], void u.RpcComponent.Instance.Call(t, function(e) {
                            n.ChallengeBattleRes = e, _.BattleManager.Instance.StartPlay(e.Report, {
                                CanPlayInBackground: !1,
                                CanSkipPlay: !0
                            })
                        })
                    }
                    var o = c.Req_Alliance_AllianceMazeChallenge.create();
                    o.ActivityId = n.BasePanel.ActivityConfig._id, o.Level = n._AlliaceMazeBattlePanelParams.Layer, o.BlockId = n._AlliaceMazeBattlePanelParams.CellNum, o.Formation = e[0], u.RpcComponent.Instance.Call(o, function(e) {
                        n.BattleRes = e, _.BattleManager.Instance.StartPlay(e.Report, {
                            CanPlayInBackground: !1,
                            CanSkipPlay: !0
                        })
                    }, function(e) {
                        e == f.ErrCode.AllianceMazeDataChanged && (n.BasePanel.RequestNewData(), I.UIUtlity.ShowFloatingHint("monopoly_mapRefreshed".ToUILocale()), l.UIManager.Instance.QuitPanelStack(d.PanelConfig.AllianceMazeBattlePanel.Path))
                    })
                }, t.SettleBattle = function(e) {
                    if (n._AlliaceMazeBattlePanelParams.EventParma.Type != f.AllianceMazeEventType.Challenge) n.BattleRes.Result == f.BattleResult.AttackerWin ? (t = "AllianceMazePanel/Component/AllianceMazeWinSettleComponent", _.BattleManager.Instance.ShowSettlePanel(d.PanelConfig.SettlementWinPanel.Path, t, e, n.BattleRes.Rewards, null, [n.BattleRes.DamageHp, this._progress, this._totalPregress])) : (t = "AllianceMazePanel/Component/AllianceMazeWinSettleComponent", _.BattleManager.Instance.ShowSettlePanel(d.PanelConfig.SettlementFailPanel.Path, t, e, n.BattleRes.Rewards, null, [n.BattleRes.DamageHp, this._progress, this._totalPregress])), l.UIManager.Instance.CloseUIPanel(d.PanelConfig.AllianceMazeBattlePanel.Path);
                    else {
                        var t = void 0;
                        n.ChallengeBattleRes.Result == f.BattleResult.AttackerWin ? _.BattleManager.Instance.ShowSettlePanel(d.PanelConfig.SettlementWinPanel.Path, "AllianceMazePanel/Component/AllianceMazeChallengeWinSettleComponent", e, n.ChallengeBattleRes.Rewards) : (t = "SettlementPanel/CommonFailSettlementComponent", _.BattleManager.Instance.ShowSettlePanel(d.PanelConfig.SettlementFailPanel.Path, t, e)), l.UIManager.Instance.CloseUIPanel(d.PanelConfig.AllianceMazeBattlePanel.Path)
                    }
                }, t.prototype.onDestroy = function() {
                    var e;
                    this._tweens.forEach(function(e) {
                        e.stop()
                    }), this.unscheduleAllCallbacks(), null === (e = this._messagePool) || void 0 === e || e.Clear()
                }, t.settlement_win_prefab_path = "NoviceTrainingPanel/NoviceTrainingSettlementComponent", t.settlement_fail_prefab_path = "NoviceTrainingPanel/NoviceTrainingSettlementComponent", i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Node)], t.prototype, "BattlePower", void 0), i([P(cc.Label)], t.prototype, "BattlePowerLabel", void 0), i([P(cc.Label)], t.prototype, "BattlePowerValue", void 0), i([P(cc.Node)], t.prototype, "EnemyHeroContainer", void 0), i([P(h.default)], t.prototype, "ProgressBar", void 0), i([P(cc.Label)], t.prototype, "Progress", void 0), i([P(cc.Label)], t.prototype, "RewardpreviewLabel", void 0), i([P(cc.Node)], t.prototype, "RewardContainer", void 0), i([P(b.default)], t.prototype, "CurrencyBar", void 0), i([P(cc.Button)], t.prototype, "BattleButton", void 0), i([P(cc.Label)], t.prototype, "BattleButtonLabel", void 0), i([P(cc.Button)], t.prototype, "GrayBattleButton", void 0), i([P(cc.Label)], t.prototype, "GrayBattleButtonLabel", void 0), i([P(cc.Button)], t.prototype, "ConcentrateFireBtn", void 0), i([P(cc.Label)], t.prototype, "ConcentrateFireBtnLabel", void 0), i([P(cc.Button)], t.prototype, "UnConcentrateFireBtn", void 0), i([P(cc.Label)], t.prototype, "UnConcentrateFireBtnLabel", void 0), i([P(cc.RichText)], t.prototype, "Tips", void 0), i([P(cc.Node)], t.prototype, "TipsNode", void 0), i([P(cc.Node)], t.prototype, "BlockEvent", void 0), i([P(cc.Node)], t.prototype, "Hint", void 0), i([P(cc.Node)], t.prototype, "MessageContainer", void 0), i([P(cc.Label)], t.prototype, "ChallengeInfoLabel", void 0), i([P(cc.Layout)], t.prototype, "Layout", void 0), n = i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/AllianceMazeStrengthBar": "AllianceMazeStrengthBar",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/ItemComponent": "ItemComponent",
        "./NodePool": "NodePool"
    }],
    AllianceMazeCell: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a4d5aETZKhFs5eOKe1bqV+G", "AllianceMazeCell");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("./CustomProgressBar"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../Panel/AllianceMazePanel"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property;
        (function(e) {
            e[e.Monster1 = 0] = "Monster1", e[e.Monster2 = 1] = "Monster2", e[e.Obstacle = 2] = "Obstacle", e[e.ShowItem = 3] = "ShowItem", e[e.ShowHero = 4] = "ShowHero"
        })(a || (a = {}));
        var I = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.BlackMask = null, t.RedMask = null, t.BlueMask = null, t.ProgressBar = null, t.RedDot = null, t.Icon = null, t.IconAtlas = null, t.InBattleEffect = null, t.InCollectEffect = null, t.LightEffect = null, t._needInit = !0, t._cellIsDark = !1, t.MASK_OPACITY = 128, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "BasePanel", {
                get: function() {
                    return this._basePanel
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "CellNum", {
                get: function() {
                    return this._cellNum
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "EventType", {
                get: function() {
                    return this._eventType
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "EventParma", {
                get: function() {
                    return this._eventParma
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "CellData", {
                get: function() {
                    return this._cellData
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Init = function(e, t) {
                var n = this;
                this._needInit && (this._needInit = !1, this._basePanel = t, this._cellNum = e), this._eventParma = this.GetEventParmaByCellNum(e), this._eventType = this._eventParma.Type, this._cellData = this._basePanel.DataMap[this._cellNum], this.SetBossIcon(), this.SetStartPoint(), this.SetTarget(), c.default.NeedPlayLightEffect && this._cellIsDark && this._cellData ? (this.LightEffect.setAnimation(0, "Ani_UI_Effect_GHMG_dikuai", !1), this.RefreshCell(), this.scheduleOnce(function() {
                    n.BlackMask.active = !0, cc.tween(n.BlackMask).to(.1, {
                        opacity: 0
                    }).call(function() {
                        n.BlackMask.opacity = n.MASK_OPACITY, n.BlackMask.active = !1, n._cellIsDark = !1
                    }).start()
                }, .2)) : (this.BlackMask.active = !1, this.RefreshCell())
            }, t.prototype.SetBossIcon = function() {
                if (this._eventType == u.AllianceMazeEventType.BossCenter)
                    if (this._cellData && this._cellData.Items[0] == u.AllianceMazeStateType.Finished) this._basePanel.SetBossIcon(this.node, !0, 0);
                    else {
                        var e = 1;
                        if (this._cellData && null != this._cellData.Items[1]) {
                            var t = this._eventParma.Param[1];
                            e = this._cellData.Items[1], e /= t
                        }
                        var n = this._eventParma.Param[0],
                            o = h.ConfigDataComponent.Instance.GetConfigById(f.MapBase_Config, n);
                        this._basePanel.SetBossIcon(this.node, !!this._cellData, e, o.Heros[0].Items[1])
                    }
            }, t.prototype.SetStartPoint = function() {
                this._eventType == u.AllianceMazeEventType.Start && this._basePanel.SetStartPoint(this.node)
            }, t.prototype.SetTarget = function() {
                switch (this._eventType) {
                    case u.AllianceMazeEventType.BossCenter:
                    case u.AllianceMazeEventType.Monster1:
                    case u.AllianceMazeEventType.Monster2:
                    case u.AllianceMazeEventType.Monster3:
                        if (this._cellData && this._cellData.Items[0] == u.AllianceMazeStateType.Finished) return;
                        this._basePanel.CheckTarget(this._cellNum) && this._basePanel.SetTarget(this.node)
                }
            }, t.prototype.RefreshCell = function() {
                switch (this.ProgressBar.node.active = !1, this.RedDot.active = !1, this.Icon.node.active = !1, this.BlackMask.active = !1, this.RedMask.active = !1, this.BlueMask.active = !1, this.InCollectEffect.active = !1, this.node.off(cc.Node.EventType.TOUCH_END, this.OnCellClick, this), this.InBattleEffect.active = !1, this._cellIsDark = !1, this._eventType) {
                    case u.AllianceMazeEventType.Start:
                        break;
                    case u.AllianceMazeEventType.Normal:
                        this._cellData || this.ActiveBlackMask();
                        break;
                    case u.AllianceMazeEventType.Monster1:
                    case u.AllianceMazeEventType.Monster3:
                        if (this._cellData) {
                            if (this._cellData.Items[0] == u.AllianceMazeStateType.Finished) break;
                            this._basePanel.MonsterGuideNode || (this._basePanel.MonsterGuideNode = this.node, this._basePanel.BindGuideClickNode(this.node, this.OnCellClick.bind(this), this._basePanel.MonsterGuideClickNode, this), this._basePanel.MonsterGuideCell = this), this.Icon.node.active = !0, this.Icon.spriteFrame = this.IconAtlas.getSpriteFrame("icon" + a.Monster1), this.node.on(cc.Node.EventType.TOUCH_END, this.OnCellClick, this), this._cellData.Items[1] && (this.ProgressBar.node.active = !0, this.InBattleEffect.active = !0, this.ProgressBar.progress = this._cellData.Items[1] / this._eventParma.Param[1])
                        } else this.ActiveBlackMask();
                        break;
                    case u.AllianceMazeEventType.Monster2:
                        if (this._cellData && this._cellData.Items[0] == u.AllianceMazeStateType.Finished) break;
                        this._basePanel.Monster2GuideNode || (this._basePanel.Monster2GuideNode = this.node, this._basePanel.BindGuideClickNode(this.node, this.OnCellClick.bind(this), this._basePanel.Monster2GuideClickNode, this), this._basePanel.Monster2GuideCell = this), this.Icon.node.active = !0, this.Icon.spriteFrame = this.IconAtlas.getSpriteFrame("icon" + a.Monster2), this.node.on(cc.Node.EventType.TOUCH_END, this.OnCellClick, this), this._cellData && (this.ProgressBar.node.active = !0, this.InBattleEffect.active = !0, this._cellData.Items[1] ? this.ProgressBar.progress = this._cellData.Items[1] / this._eventParma.Param[1] : this.ProgressBar.progress = 1);
                        break;
                    case u.AllianceMazeEventType.BossCenter:
                        if (this.node.on(cc.Node.EventType.TOUCH_END, this.OnCellClick, this), this._cellData && this._cellData.Items[0] == u.AllianceMazeStateType.Finished) {
                            this._basePanel.SelectedLayer < this._basePanel.MaxLevel && (this.BlueMask.active = !0);
                            break
                        }
                        this._basePanel.BossGuideNode || (this._basePanel.BossGuideNode = this.node, this._basePanel.BindGuideClickNode(this.node, this.OnCellClick.bind(this), this._basePanel.BossGuideClickNode, this), this._basePanel.BossGuideCell = this), this.RedMask.active = !0;
                        break;
                    case u.AllianceMazeEventType.BossAround:
                        this.node.on(cc.Node.EventType.TOUCH_END, this.OnCellClick, this);
                        var e = this._eventParma.Param[0],
                            t = this._basePanel.DataMap[e];
                        if (t && t.Items[0] == u.AllianceMazeStateType.Finished) {
                            this._basePanel.SelectedLayer < this._basePanel.MaxLevel && (this.BlueMask.active = !0);
                            break
                        }
                        t && (this.InBattleEffect.active = !0), this.RedMask.active = !0;
                        break;
                    case u.AllianceMazeEventType.ShowItem:
                        this._cellData ? (this.Icon.node.active = !0, this.Icon.spriteFrame = this.IconAtlas.getSpriteFrame("icon" + a.ShowItem), this.node.on(cc.Node.EventType.TOUCH_END, this.OnCellClick, this), this.RedDot.active = this.SetShowItemRedDot()) : this.ActiveBlackMask();
                        break;
                    case u.AllianceMazeEventType.ShowHero:
                        this._cellData ? (this.Icon.node.active = !0, this.Icon.spriteFrame = this.IconAtlas.getSpriteFrame("icon" + a.ShowHero), this.node.on(cc.Node.EventType.TOUCH_END, this.OnCellClick, this), this.RedDot.active = this.SetShowItemRedDot()) : this.ActiveBlackMask();
                        break;
                    case u.AllianceMazeEventType.Obstacle:
                        this.Icon.node.active = !0, this.Icon.spriteFrame = this.IconAtlas.getSpriteFrame("icon" + a.Obstacle), this._cellData || this.ActiveBlackMask();
                        break;
                    case u.AllianceMazeEventType.Resource:
                        this._cellData ? ((-1 == this._cellData.Items[1] || this._cellData.Items[1] > 0 || this._cellData.Items.includes(h.DataCenter.Instance.Uid)) && this._updateResourceDisplay(), this.RedDot.active = this.SetResourceRedDot()) : this.ActiveBlackMask();
                        break;
                    case u.AllianceMazeEventType.Challenge:
                        if (this._cellData) {
                            if (this._basePanel.ActivityData.IntMap[-1e4 * this._basePanel.SelectedLayer - this.CellNum]) break;
                            this.node.on(cc.Node.EventType.TOUCH_END, this.OnCellClick, this), this.Icon.node.active = !0, this.Icon.spriteFrame = this.IconAtlas.getSpriteFrame("boss")
                        } else this.ActiveBlackMask()
                }
            }, t.prototype.SetShowItemRedDot = function() {
                var e = this._basePanel.ActivityData.Int2DArray[this._basePanel.SelectedLayer - 1],
                    t = e && -1 != e.Items.indexOf(this.CellNum);
                if (t) return !1;
                if (Math.floor(this._cellData.Items.length / 2) >= this._eventParma.Param.length && !t) return !0;
                for (var n = !1, o = 1; o < this._cellData.Items.length; o += 2)
                    if (this._cellData.Items[o + 1] == h.DataCenter.Instance.Uid) {
                        n = !0;
                        break
                    } if (n) return !1;
                if (this._eventType == u.AllianceMazeEventType.ShowItem)
                    for (var r = 0; r < this._eventParma.Param.length; r++) {
                        var i = !1;
                        for (o = 1; o < this._cellData.Items.length; o += 2) this._cellData.Items[o] != r || (i = !0);
                        if (!i)
                            if (this._eventType == u.AllianceMazeEventType.ShowItem) {
                                if (h.DataCenter.Instance.GetItemCount(this._eventParma.Param[r]) > 0) return !0
                            } else if (h.DataCenter.Instance.GetDataById(p.UserHero_Model, this._eventParma.Param[r])) return !0
                    }
                return !1
            }, t.prototype.SetResourceRedDot = function() {
                for (var e = h.DataCenter.Instance.Uid, t = 4; t < this._cellData.Items.length; t++)
                    if (this._cellData.Items[t] == e) {
                        if (this._cellData.Items[3] <= h.RpcComponent.Instance.ServerTime) return !0;
                        this.InCollectEffect.active = !0
                    } return !1
            }, t.prototype.ActiveBlackMask = function() {
                this.BlackMask.opacity = this.MASK_OPACITY, this.BlackMask.active = !0, this._cellIsDark = !0
            }, t.prototype.OnCellClick = function() {
                switch (this._eventType) {
                    case u.AllianceMazeEventType.Monster1:
                    case u.AllianceMazeEventType.Monster2:
                    case u.AllianceMazeEventType.Monster3:
                        if (this._cellData && this._cellData.Items[0] == u.AllianceMazeStateType.Finished) return;
                        var e = {
                            ActivityId: this._basePanel.ActivityId,
                            CellNum: this._cellNum,
                            EventParma: this._eventParma,
                            Layer: this._basePanel.SelectedLayer,
                            CellData: this._cellData
                        };
                        l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllianceMazeBattlePanel.Path, this._basePanel.ActivityId, e, this._basePanel);
                        break;
                    case u.AllianceMazeEventType.BossCenter:
                        if (this._cellData && this._cellData.Items[0] == u.AllianceMazeStateType.Finished) {
                            if (this._basePanel.SelectedLayer >= this._basePanel.MaxLevel) return;
                            return void this._basePanel.ToNextLayer()
                        }
                        var t = {
                            ActivityId: this._basePanel.ActivityId,
                            CellNum: this._cellNum,
                            EventParma: this._eventParma,
                            Layer: this._basePanel.SelectedLayer,
                            CellData: this._cellData
                        };
                        l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllianceMazeBattlePanel.Path, this._basePanel.ActivityId, t, this._basePanel);
                        break;
                    case u.AllianceMazeEventType.BossAround:
                        if (this._cellData && this._cellData.Items[0] == u.AllianceMazeStateType.Finished) {
                            if (this._basePanel.SelectedLayer >= this._basePanel.MaxLevel) return;
                            return void this._basePanel.ToNextLayer()
                        }
                        var n = this._eventParma.Param[0],
                            o = this.GetEventParmaByCellNum(n),
                            r = {
                                ActivityId: this._basePanel.ActivityId,
                                CellNum: this._eventParma.Param[0],
                                EventParma: o,
                                Layer: this._basePanel.SelectedLayer,
                                CellData: this._basePanel.DataMap[this._eventParma.Param[0]]
                            };
                        l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllianceMazeBattlePanel.Path, this._basePanel.ActivityId, r, this._basePanel);
                        break;
                    case u.AllianceMazeEventType.ShowItem:
                    case u.AllianceMazeEventType.ShowHero:
                        l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllianceMazeShowItemPanel.Path, this);
                        break;
                    case u.AllianceMazeEventType.Resource:
                        var i = this._basePanel.ResourceInfoMap[this._eventParma.Param[0]];
                        l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllianceMazeResourcePanel.Path, this._basePanel.ActivityId, i, this._basePanel.SelectedLayer, this._cellNum, this._basePanel);
                        break;
                    case u.AllianceMazeEventType.Challenge:
                        if (this._basePanel.ActivityData.IntMap[-1e4 * this._basePanel.SelectedLayer - this.CellNum]) return;
                        var a = {
                            ActivityId: this._basePanel.ActivityId,
                            CellNum: this._cellNum,
                            EventParma: this._eventParma,
                            Layer: this._basePanel.SelectedLayer,
                            CellData: this._cellData
                        };
                        l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AllianceMazeBattlePanel.Path, this._basePanel.ActivityId, a, this._basePanel)
                }
            }, t.prototype.GetEventParmaByCellNum = function(e) {
                var t = Math.floor((e - 1) / this._basePanel.LINE_NUM),
                    n = (e - 1) % this._basePanel.LINE_NUM;
                return this._basePanel.AllianceMazeEventIdMap[this._basePanel.ConfigMap[t].Items[n]]
            }, t.prototype._updateResourceDisplay = function() {
                this._basePanel.ResourceGuideNode || (this._basePanel.ResourceGuideNode = this.node, this._basePanel.BindGuideClickNode(this.node, this.OnCellClick.bind(this), this._basePanel.ResourceGuideClickNode, this), this._basePanel.ResourceGuideCell = this), this.Icon.node.active = !0;
                var e = this._basePanel.ResourceInfoMap[this._eventParma.Param[0]];
                this.Icon.spriteFrame = this.IconAtlas.getSpriteFrame("resource_" + e.Level), this.node.on(cc.Node.EventType.TOUCH_END, this.OnCellClick, this);
                var t = this._cellData.Items.length - 4 > 0 ? this._cellData.Items.length - 4 : 0;
                t && this._basePanel.CreateCollectPeopleNode(this.node, t + "/" + e.Num)
            }, i([m(cc.Node)], t.prototype, "BlackMask", void 0), i([m(cc.Node)], t.prototype, "RedMask", void 0), i([m(cc.Node)], t.prototype, "BlueMask", void 0), i([m(s.default)], t.prototype, "ProgressBar", void 0), i([m(cc.Node)], t.prototype, "RedDot", void 0), i([m(cc.Sprite)], t.prototype, "Icon", void 0), i([m(cc.SpriteAtlas)], t.prototype, "IconAtlas", void 0), i([m(cc.Node)], t.prototype, "InBattleEffect", void 0), i([m(cc.Node)], t.prototype, "InCollectEffect", void 0), i([m(sp.Skeleton)], t.prototype, "LightEffect", void 0), i([g], t)
        }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Panel/AllianceMazePanel": "AllianceMazePanel",
        "./CustomProgressBar": "CustomProgressBar"
    }],
    AllianceMazeChallengeWinSettleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "51207R+7C9Pk7jNYpuCJRFt", "AllianceMazeChallengeWinSettleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./SettlementBaseComponent"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("./DisplayRewardsComponent"),
            h = e("../Panel/AllianceMazeBattlePanel"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SmallTitleLabel = null, t.ItemContainer = null, t.OkButton = null, t.OkButtonLabel = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.SetUI = function(t, n, o, r) {
                    e.prototype.SetUI.call(this, t, n, o, r), this._isInit || (this._isInit = !0, this.SmallTitleLabel.string = "StrongholdWar_Battle_Result_GetReward".ToUILocale(), this.OkButtonLabel.string = "ok".ToUILocale(), this.OkButton.node.on("click", this.OnOkButtonClick, this)), this.RenderContent(n)
                }, t.prototype.RenderContent = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : (t = this, [4, p.AssetsManager.Instance.LoadAsset(u.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (t._displayRewardPrefab = o.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    return n = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = n.getComponent(d.DisplayRewardsComponent), this.ItemContainer.addChild(n), this._rewardComponent.Init(e, this.ItemContainer.height), [2]
                            }
                        })
                    })
                }, t.prototype.OnOkButtonClick = function() {
                    h.default.BasePanel.RequestNewData(), l.UIManager.Instance.QuitPanelStack(u.PanelConfig.AllianceMazeBattlePanel.Path), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._displayRewardPrefab && l.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab)
                }, i([g(cc.Label)], t.prototype, "SmallTitleLabel", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Button)], t.prototype, "OkButton", void 0), i([g(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([y], t)
            }(c.default);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Panel/AllianceMazeBattlePanel": "AllianceMazeBattlePanel",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    AllianceMazeHolyAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "baa7fln+WpNW48cs1oEiGtZ", "AllianceMazeHolyAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.GrowUpNode = null, t.OldValue = null, t.NewValue = null, t.FinalValue = null, t._needInit = !0, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._needInit && (this._needInit = !1, this.Name.string = ("allianceMaze_holyAttr_" + this.node.name).ToUILocale()), null != t ? (this.GrowUpNode.active = !0, this.FinalValue.node.active = !1, this.OldValue.string = (e / 10 + "%").toString(), this.NewValue.string = (t / 10 + "%").toString()) : (this.GrowUpNode.active = !1, this.FinalValue.node.active = !0, this.FinalValue.string = (e / 10 + "%").toString())
                }, i([l(cc.Label)], t.prototype, "Name", void 0), i([l(cc.Node)], t.prototype, "GrowUpNode", void 0), i([l(cc.Label)], t.prototype, "OldValue", void 0), i([l(cc.Label)], t.prototype, "NewValue", void 0), i([l(cc.Label)], t.prototype, "FinalValue", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AllianceMazeHolyPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ec903r35LZE76vlHiIRIw5/", "AllianceMazeHolyPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/Components"),
            p = e("../Components/AllianceMazeHolyAttrComponent"),
            d = e("../Components/CustomProgressBar"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/GameModuleGuideManager"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../Components/CurrencyBarItem"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Level = null, t.ProgressBar = null, t.ProgressBarLabel = null, t.AttrLabel = null, t.AttrComponents = [], t.CurrencyBar = null, t.DonateBtn = null, t.DonateBtnLabel = null, t.Hint = null, t.RED = new cc.Color(255, 75, 75), t._moduleGuideGroupIds = [10016], t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "allianceMaze_holy".ToUILocale(), this.AttrLabel.string = "allianceMaze_holyAttr".ToUILocale(), this.DonateBtnLabel.string = "allianceMaze_donate".ToUILocale(), this.DonateBtn.node.on("click", this.OnDonateBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._basePanel = t[0], this._costItemId = this._basePanel.ActivityConfig.CustomPart.HolyItemId
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this._holyExp = 0, this._holyExp = this._basePanel.AllianceMazeInfoData.Data.HolyExp, this.Refresh(), this.ShowGameGuid(), [2]
                        })
                    })
                }, t.prototype.Refresh = function() {
                    this.CurrencyBar.Init(this._costItemId), this.SetCurrentLevel(), this.SetProgressBar(), this.SetAttrComponents()
                }, t.prototype.SetCurrentLevel = function() {
                    this._currentLevelIndex = -1, this._nextLevelIndex = 0;
                    for (var e = 0; e < this._basePanel.ActivityConfig.Holy.length && this._holyExp >= this._basePanel.ActivityConfig.Holy[e].Exp; e++) this._currentLevelIndex = e, this._basePanel.ActivityConfig.Holy[e + 1] ? this._nextLevelIndex = e + 1 : this._nextLevelIndex = void 0;
                    this.Level.string = "Lv." + (-1 == this._currentLevelIndex ? "0" : (this._currentLevelIndex + 1).toString())
                }, t.prototype.SetProgressBar = function() {
                    if (null == this._nextLevelIndex) return this.ProgressBar.progress = 1, void(this.ProgressBarLabel.string = "holyWeapon_maxLevel".ToUILocale());
                    var e = this._basePanel.ActivityConfig.Holy[this._nextLevelIndex].Exp,
                        t = this._holyExp,
                        n = this._basePanel.ActivityConfig.Holy[this._nextLevelIndex - 1] ? this._basePanel.ActivityConfig.Holy[this._nextLevelIndex - 1].Exp : 0;
                    e -= n, t -= n, this.ProgressBar.progress = t / e, this.ProgressBarLabel.string = t + "/" + e
                }, t.prototype.SetAttrComponents = function() {
                    if (-1 == this._currentLevelIndex) this.AttrComponents[0].Init(0, this._basePanel.ActivityConfig.Holy[0].EnergyResumeAddon), this.AttrComponents[1].Init(0, this._basePanel.ActivityConfig.Holy[0].BossHpAddon), this.AttrComponents[2].Init(0, this._basePanel.ActivityConfig.Holy[0].RewardAddon[0].Items[1]);
                    else if (null == this._nextLevelIndex) {
                        var e = this._basePanel.ActivityConfig.Holy.length;
                        this.AttrComponents[0].Init(this._basePanel.ActivityConfig.Holy[e - 1].EnergyResumeAddon), this.AttrComponents[1].Init(this._basePanel.ActivityConfig.Holy[e - 1].BossHpAddon), this.AttrComponents[2].Init(this._basePanel.ActivityConfig.Holy[e - 1].RewardAddon[0].Items[1])
                    } else this.AttrComponents[0].Init(this._basePanel.ActivityConfig.Holy[this._currentLevelIndex].EnergyResumeAddon, this._basePanel.ActivityConfig.Holy[this._nextLevelIndex].EnergyResumeAddon), this.AttrComponents[1].Init(this._basePanel.ActivityConfig.Holy[this._currentLevelIndex].BossHpAddon, this._basePanel.ActivityConfig.Holy[this._nextLevelIndex].BossHpAddon), this.AttrComponents[2].Init(this._basePanel.ActivityConfig.Holy[this._currentLevelIndex].RewardAddon[0].Items[1], this._basePanel.ActivityConfig.Holy[this._nextLevelIndex].RewardAddon[0].Items[1])
                }, t.prototype.OnDonateBtnClick = function() {
                    var e = this;
                    if (u.DataCenter.Instance.GetItemCount(this._costItemId)) {
                        var t = h.Req_Alliance_AddAllianceMazeHolyExp.create();
                        t.ActivityId = this._basePanel.ActivityId, u.RpcComponent.Instance.Call(t, function(t) {
                            f.UIUtlity.ShowFloatingHint("allianceMaze_donateSuccess".ToUILocale()), e._holyExp = t.HolyExp, e.Refresh(), e._basePanel.RequestNewData()
                        })
                    } else l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._costItemId)
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = g.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = u.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 49:
                                            g.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 50:
                                            g.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.Hint);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Label)], t.prototype, "Level", void 0), i([v(d.default)], t.prototype, "ProgressBar", void 0), i([v(cc.Label)], t.prototype, "ProgressBarLabel", void 0), i([v(cc.Label)], t.prototype, "AttrLabel", void 0), i([v(p.default)], t.prototype, "AttrComponents", void 0), i([v(I.default)], t.prototype, "CurrencyBar", void 0), i([v(cc.Button)], t.prototype, "DonateBtn", void 0), i([v(cc.Label)], t.prototype, "DonateBtnLabel", void 0), i([v(cc.Node)], t.prototype, "Hint", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AllianceMazeHolyAttrComponent": "AllianceMazeHolyAttrComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager"
    }],
    AllianceMazeLayerBtn: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f7051oKLaBEaZ6m/PGr7qww", "AllianceMazeLayerBtn");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./CustomProgressBar"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LayerLabel = null, t.Lock = null, t.SelectBg = null, t.RedDot = null, t.CustomProgressBar = null, t
                }
                return r(t, e), t.prototype.SetBtnLockState = function(e) {
                    this.Lock.active = e
                }, t.prototype.IsSelectedLayer = function(e) {
                    this.SelectBg.active = e
                }, t.prototype.SetCustomProgressBar = function(e, t) {
                    this.CustomProgressBar.node.active = e, e && (this.CustomProgressBar.progress = t)
                }, t.prototype.SetRedDotState = function(e) {
                    this.RedDot.active = e
                }, i([c(cc.Label)], t.prototype, "LayerLabel", void 0), i([c(cc.Node)], t.prototype, "Lock", void 0), i([c(cc.Node)], t.prototype, "SelectBg", void 0), i([c(cc.Node)], t.prototype, "RedDot", void 0), i([c(a.default)], t.prototype, "CustomProgressBar", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./CustomProgressBar": "CustomProgressBar"
    }],
    AllianceMazeLevelRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2962b8wMi5B3b3b4HJHVslQ", "AllianceMazeLevelRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./ItemComponent"),
            s = e("../../../EZFramework/Base/Game"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Auxiliary/UIUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleLabel = null, t.ItemContainer = null, t.MultilangTag = null, t.GetRewardBtn = null, t.GetRewardBtnLabel = null, t.NotAchievedBtn = null, t.NotAchievedBtnLabel = null, t.Received = null, t.itemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    s.Game.EventDispatcher.On(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    s.Game.EventDispatcher.Off(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this.TitleLabel.string = "allianceMaze_levelReward".ToUILocale().Fmt(n.Id), this.GetRewardBtnLabel.string = "GiftCode_receive".ToUILocale(), this.Received.string = "already_receive".ToUILocale(), this.NotAchievedBtnLabel.string = "mall_notReach".ToUILocale(), this._base = t;
                    for (var r = 0; r < n.Rewards.length; r++) {
                        var i = this.itemComponents[r];
                        if (!i) {
                            var s = cc.instantiate(o);
                            i = s.getComponent(a.ItemComponent), this.ItemContainer.addChild(s), this.itemComponents.push(i)
                        }
                        i.node.active = !0, i.Init({
                            ItemId: n.Rewards[r].Items[0],
                            Count: n.Rewards[r].Items[1]
                        })
                    }
                    for (var l = n.Rewards.length; l < this.itemComponents.length; l++) this.itemComponents[l].node.active = !1;
                    this.GetRewardBtn.node.on("click", this.OnGetRewardBtnClick, this), this._base.BasePanel.ActivityData.IntValue >= n.Id ? (this.GetRewardBtn.node.active = !1, this.MultilangTag.active = !0, this.NotAchievedBtn.node.active = !1) : this._base.BasePanel.NowMaxLevel > n.Id ? (this.GetRewardBtn.node.active = !0, this.MultilangTag.active = !1, this.NotAchievedBtn.node.active = !1) : (this.GetRewardBtn.node.active = !1, this.MultilangTag.active = !1, this.NotAchievedBtn.node.active = !0)
                }, t.prototype.OnGetRewardBtnClick = function() {
                    this._base.GetLevelReward()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(a.ItemComponent).ItemId, t)
                }, i([d(cc.Label)], t.prototype, "TitleLabel", void 0), i([d(cc.Node)], t.prototype, "ItemContainer", void 0), i([d(cc.Node)], t.prototype, "MultilangTag", void 0), i([d(cc.Button)], t.prototype, "GetRewardBtn", void 0), i([d(cc.Label)], t.prototype, "GetRewardBtnLabel", void 0), i([d(cc.Button)], t.prototype, "NotAchievedBtn", void 0), i([d(cc.Label)], t.prototype, "NotAchievedBtnLabel", void 0), i([d(cc.Label)], t.prototype, "Received", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/Base/Game": "Game",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    AllianceMazePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "58247+ejwxJxrcJNSpb55VX", "AllianceMazePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/AllianceMazeLayerBtn"),
            f = e("../Components/AllianceMazeCell"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../RedDot/RedDotDataHandler"),
            m = e("../../Auxiliary/GameRecord"),
            I = e("../Components/ActivityCountDownComponent"),
            _ = e("../Components/LoadAssetHelper"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../../Util/TimeUtil"),
            b = e("./ActivityJumpBtnComponent"),
            S = e("../../RedDot/RedDotManager"),
            w = e("../Components/GameModuleGuideManager"),
            P = e("../../../../Proto/Static/ConfigProto"),
            A = e("../Components/CustomProgressBar"),
            T = e("../Components/AllianceMazeStrengthBar"),
            R = e("../../Auxiliary/DataUtlity"),
            L = cc._decorator,
            k = L.ccclass,
            O = L.property,
            M = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleBtn = null, t.CountDownComponent = null, t.CurrencyBar = null, t.LayerBtnContainer = null, t.BtnLayoutNode = null, t.RankBtn = null, t.RankBtnLabel = null, t.HolyBtn = null, t.HolyLabel = null, t.HolyRedDot = null, t.RewardBtn = null, t.RewardLabel = null, t.RewardRedDot = null, t.MapLines = [], t.BossNode = null, t.BossIcon = null, t.BossHpBar = null, t.ReturnBtn = null, t.Mask = null, t.CloudEffect = null, t.StartNode = null, t.NextLayerNode = null, t.TargetNode = null, t.CollectPeopleNode = null, t.CollectPeopleParentPrefabNode = null, t.MonsterGuideClickNode = null, t.Monster2GuideClickNode = null, t.BossGuideClickNode = null, t.ResourceGuideClickNode = null, t._needInit = !0, t._layerBtns = [], t.LINE_NUM = 12, t._allianceMazeEventIdMap = {}, t._cellsComponent = [], t.CloudStartName = "UI_effect_yunwuzhuanchang_star", t.CloudEndName = "UI_effect_yunwuzhuanchang_end", t._moduleGuideGroupIds = [10012, 10022, 10023, 10024, 10025, 10013, 10014, 10015, 10016], t._activeGuideIds = [], t._guideStepIndex = 0, t._guideGroupId = 0, t.MONSTER_GUIDE_ID = 10022, t.MONSTER2_GUIDE_ID = 10023, t.BOSS_GUIDE_ID = 10024, t.RESOURCE_GUIDE_ID = 10025, t._collectPeopleInfoNodePool = new cc.NodePool, t
                }
                var n;
                return r(t, e), n = t, Object.defineProperty(t.prototype, "ActivityId", {
                    get: function() {
                        return this._activityId
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ActivityConfig", {
                    get: function() {
                        return this._activityConfig
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "SelectedLayer", {
                    get: function() {
                        return this._selectedLayer
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "AllianceMazeEventIdMap", {
                    get: function() {
                        return this._allianceMazeEventIdMap
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ActivityData", {
                    get: function() {
                        return u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "DataMap", {
                    get: function() {
                        return this._dataMap
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ConfigMap", {
                    get: function() {
                        return this._configMap
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "AllianceMazeInfoData", {
                    get: function() {
                        return this._allianceMazeInfoData
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AllianceMazePanel/Component/AllianceMazeLayerBtn", cc.Prefab), n = this.LoadDynamicAsset("AllianceMazePanel/Component/AllianceMazeCell", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._layerBtnPrefab = e[0], o._cellPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(_.default)), this.RankBtnLabel.string = "AllZoneChampionShip_RankButton".ToUILocale(), this.HolyLabel.string = "allianceMaze_holy".ToUILocale(), this.RewardLabel.string = "ActivetyPreview_Detail_reward".ToUILocale(), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.RankBtn.node.on("click", this.OnRankBtnClick, this), this.HolyBtn.node.on("click", this.OnHolyBtnClick, this), this.RewardBtn.node.on("click", this.OnRewardBtnClick, this), this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    if (e.prototype.InitData.call(this), this._activityId = t[0], this._activityConfig = u.DataCenter.Instance.ActivityConfigs[this._activityId], Object.keys(this._allianceMazeEventIdMap).length < 1)
                        for (var o = 0; o < this._activityConfig.Event.length; o++) this._allianceMazeEventIdMap[this._activityConfig.Event[o].Id] = this._activityConfig.Event[o];
                    if (this.Title.string = this._activityConfig.Common.Title, this.MaxLevel = this._activityConfig.Level.length, !this.ResourceInfoMap)
                        for (this.ResourceInfoMap = {}, o = 0; o < this._activityConfig.Resource.length; o++) this.ResourceInfoMap[this._activityConfig.Resource[o].Id] = this._activityConfig.Resource[o];
                    this._LocaleMap || (this._LocaleMap = {}, this._activityConfig._Locale.forEach(function(e) {
                        n._LocaleMap[e.Id] = e
                    }));
                    var r = v.TimeUtil.Get0ClockTs(u.RpcComponent.Instance.ServerTime),
                        i = !0,
                        a = JSON.parse(m.default.GetItem(m.GameRecordDefine.AllianceMazeRedDotByFirstLogin));
                    if (null == a) m.default.SetItem(m.GameRecordDefine.AllianceMazeRedDotByFirstLogin, JSON.stringify(r)), i = !0;
                    else {
                        var s = v.TimeUtil.Get0ClockTs(u.RpcComponent.Instance.ServerTime);
                        a < s && (m.default.SetItem(m.GameRecordDefine.AllianceMazeRedDotByFirstLogin, JSON.stringify(s)), i = !0)
                    }
                    i && (S.RedDotManager.Instance.InstanceRedDot.AllianceMazeNode.NeedRefresh = !0, l.Game.EventDispatcher.Emit(y.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this.ActivityConfig._id))
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._activityConfig.Common.JumpIds && this._activityConfig.Common.JumpIds.length > 0 ? [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)] : [3, 2];
                                case 1:
                                    for (e = r.sent(), t = 0; t < this._activityConfig.Common.JumpIds.length; t++) n = this._activityConfig.Common.JumpIds[t], (o = cc.instantiate(e)).parent = this.BtnLayoutNode, o.getComponent(b.default).Init(n, this._activityConfig.Common.JumpIcons[t]);
                                    r.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), t || (this.CountDownComponent.Init(this._activityConfig.Common), this.RequestNewData()), this._allianceMazeInfoData && this.CurrencyBar.Init(d.CommonItemId.AllianceMazeStrength, R.default.Instance.GetCurrentAllianceMazeStrength(this._activityId, this._allianceMazeInfoData.Data.HolyExp)), this.BindRedDot(), [2]
                        })
                    })
                }, t.prototype.RequestNewData = function() {
                    var e = this;
                    return new Promise(function(t) {
                        var o = c.Req_Alliance_GetAllianceMazeInfo.create();
                        o.ActivityId = e._activityId, u.RpcComponent.Instance.Call(o, function(o) {
                            e._allianceMazeInfoData = o, e.NowMaxLevel = e._allianceMazeInfoData.Data.Level;
                            var r = e._allianceMazeInfoData.Data.Level > e._activityConfig.Level.length ? e._activityConfig.Level.length : e._allianceMazeInfoData.Data.Level;
                            e._selectedLayer = e._selectedLayer ? e._selectedLayer : r, e._maxUnlockLayer = r, e._dataMap = o.Data.Map[e._selectedLayer - 1].Map, e._configMap = e._activityConfig.Level[e._selectedLayer - 1].Map, e.TargetNode.active = !1, e.ConcentrateFireInfo = o.Data.SetFire, e.SetCurrentCollectPos(), e.InitLayerBtns(), e.InitMaps(), n.NeedPlayLightEffect = !1, t(void 0), e.CheckActiveGuideIds(), e.ShowGameGuid(), e._needInit && (e._needInit = !1), e.CurrencyBar.Init(d.CommonItemId.AllianceMazeStrength, R.default.Instance.GetCurrentAllianceMazeStrength(e._activityId, e._allianceMazeInfoData.Data.HolyExp))
                        })
                    })
                }, t.prototype.SetCurrentCollectPos = function() {
                    this.CurrentCollectPos = [];
                    for (var e = u.DataCenter.Instance.Uid, t = 0; t < this._allianceMazeInfoData.Data.Map.length; t++)
                        for (var n in this._allianceMazeInfoData.Data.Map[t].Map)
                            if (this.GetEventParmaByCellNum(Number.parseInt(n), t + 1).Type == d.AllianceMazeEventType.Resource)
                                for (var o = this._allianceMazeInfoData.Data.Map[t].Map[n], r = 4; r < o.Items.length; r++) o.Items[r] == e && (this.CurrentCollectPos = [t + 1, Number.parseInt(n)])
                }, t.prototype.InitLayerBtns = function() {
                    if (this._needInit)
                        for (var e = 0; e < this._activityConfig.Level.length; e++) {
                            if (!this._layerBtns[e]) {
                                var t = cc.instantiate(this._layerBtnPrefab);
                                t.setParent(this.LayerBtnContainer), this._layerBtns[e] = t.getComponent(h.default)
                            }
                            this._layerBtns[e].LayerLabel.string = "allianceMaze_layer".ToUILocale().Fmt(e + 1), this._layerBtns[e].node.name = e.toString(), this._layerBtns[e].node.on("click", this.OnLayerBtnClick, this), this._layerBtns[e].SetBtnLockState(e >= this._maxUnlockLayer), this._layerBtns[e].IsSelectedLayer(e + 1 == this._selectedLayer), this._layerBtns[e].SetRedDotState(this.SetLayerRedDotState(e + 1)), this._layerBtns[e].SetCustomProgressBar(e + 1 < this._activityConfig.Level.length, e + 1 >= this._maxUnlockLayer ? 0 : 1)
                        } else
                            for (e = 0; e < this._activityConfig.Level.length; e++) this._layerBtns[e].SetBtnLockState(e >= this._maxUnlockLayer), this._layerBtns[e].IsSelectedLayer(e + 1 == this._selectedLayer), this._layerBtns[e].SetRedDotState(this.SetLayerRedDotState(e + 1)), this._layerBtns[e].SetCustomProgressBar(e + 1 < this._activityConfig.Level.length, e + 1 >= this._maxUnlockLayer ? 0 : 1)
                }, t.prototype.InitMaps = function() {
                    this.MonsterGuideNode = null, this.Monster2GuideNode = null, this.BossGuideNode = null, this.ResourceGuideNode = null, this.MonsterGuideClickNode.active = !1, this.Monster2GuideClickNode.active = !1, this.BossGuideClickNode.active = !1, this.ResourceGuideClickNode.active = !1, this.MonsterGuideClickNode.targetOff(this.MonsterGuideCell), this.Monster2GuideClickNode.targetOff(this.Monster2GuideCell), this.BossGuideClickNode.targetOff(this.BossGuideCell), this.ResourceGuideClickNode.targetOff(this.ResourceGuideCell);
                    for (var e = this.CollectPeopleNode.children.length, t = 0; t < e; t++) {
                        var n = this.CollectPeopleNode.children[0];
                        n.active = !1, this._collectPeopleInfoNodePool.put(n)
                    }
                    if (this._needInit) {
                        var o = 1;
                        for (t = 0; t < this.MapLines.length; t++)
                            for (var r = 0; r < this.LINE_NUM; r++) {
                                var i = cc.instantiate(this._cellPrefab);
                                i.setParent(this.MapLines[t]), i.name = o.toString();
                                var a = i.getComponent(f.default);
                                this._cellsComponent.push(a), o++
                            }
                        for (t = 0; t < this.MapLines.length; t++) this.MapLines[t].getComponent(cc.Layout).updateLayout();
                        for (t = 0; t < this._cellsComponent.length; t++) this._cellsComponent[t].Init(t + 1, this)
                    } else
                        for (t = 0; t < this._cellsComponent.length; t++) this._cellsComponent[t].Init(t + 1, this)
                }, t.prototype.BindGuideClickNode = function(e, t, n, o) {
                    var r = e.convertToWorldSpaceAR(cc.v2(0, 0)),
                        i = this.node.convertToNodeSpaceAR(r);
                    n.setPosition(i), n.on("click", t, o), n.height = e.height, n.width = e.width, n.active = !0, n.targetOff(n)
                }, t.prototype.BindRedDot = function() {
                    this.HolyRedDot.active = g.RedDotDataHandler.Instance.RefreshAllianceMazeDonateState({
                        Value1: this._activityId
                    }), this.RewardRedDot.active = g.RedDotDataHandler.Instance.RefreshAllianceMazeLevelRewardState({
                        Value1: this._activityId
                    }), S.RedDotManager.Instance.RefreshRedDotNode(S.RedDotManager.Instance.RedDot.AllianceMazeBtnNode), S.RedDotManager.Instance.RefreshRedDotNode(S.RedDotManager.Instance.InstanceRedDot.AllianceMazeNode)
                }, t.prototype.SetLayerRedDotState = function(e) {
                    for (var t in this._allianceMazeInfoData.Data.Map[e - 1].Map) {
                        var n = this._allianceMazeInfoData.Data.Map[e - 1].Map[t],
                            o = this.GetEventParmaByCellNum(Number.parseInt(t), e);
                        if ((o.Type == d.AllianceMazeEventType.ShowItem || o.Type == d.AllianceMazeEventType.ShowHero || o.Type == d.AllianceMazeEventType.Resource) && o.Type == d.AllianceMazeEventType.Resource)
                            for (var r = u.DataCenter.Instance.Uid, i = 4; i < n.Items.length; i++)
                                if (n.Items[i] == r && n.Items[3] <= u.RpcComponent.Instance.ServerTime) return !0
                    }
                    return !1
                }, t.prototype.GetEventParmaByCellNum = function(e, t) {
                    var n = Math.floor((e - 1) / this.LINE_NUM),
                        o = (e - 1) % this.LINE_NUM;
                    return null != t ? this.AllianceMazeEventIdMap[this._activityConfig.Level[t - 1].Map[n].Items[o]] : this.AllianceMazeEventIdMap[this.ConfigMap[n].Items[o]]
                }, t.prototype.OnReturnBtnClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnLayerBtnClick = function(e) {
                    var t = Number.parseInt(e.name);
                    t + 1 != this._selectedLayer && (this._layerBtns[t].Lock.active ? C.UIUtlity.ShowFloatingHint("allianceMaze_layerUnlockCondition".ToUILocale()) : (this._selectedLayer = t + 1, n.NeedPlayLightEffect = !1, this.PlayCloudEffect()))
                }, t.prototype.PlayCloudEffect = function() {
                    var e = this;
                    this.CloudEffect.node.active = !0, this.Mask.active = !0, this.CloudEffect.setAnimation(0, this.CloudStartName, !1), this.CloudEffect.setCompleteListener(function(t) {
                        t.animation.name == e.CloudStartName && (e.RequestNewData(), e.CloudEffect.setAnimation(0, e.CloudEndName, !1), e.Mask.active = !1)
                    })
                }, t.prototype.OnRuleBtnClick = function() {
                    var e = {
                        name: "allianceMaze_ruleTitle1".ToUILocale(),
                        titles: ["payGuide_rule_sub".ToUILocale()],
                        contents: ["allianceMaze_rule1".ToUILocale()]
                    };
                    C.UIUtlity.ShowRulePanel(e)
                }, t.prototype.SetBossIcon = function(e, t, n, o) {
                    if (t && n <= 0)
                        if (this.BossNode.active = !1, this._selectedLayer < this.MaxLevel) {
                            var r = e.convertToWorldSpaceAR(cc.v2(0, 0)),
                                i = this.node.convertToNodeSpaceAR(r);
                            this.NextLayerNode.setPosition(i), this.NextLayerNode.active = !0
                        } else this.NextLayerNode.active = !1;
                    else this.BossNode.active = !0, this.NextLayerNode.active = !1, r = e.convertToWorldSpaceAR(cc.v2(0, 0)), i = this.node.convertToNodeSpaceAR(r), this.BossNode.setPosition(i), this._loadAssetHelper.LoadSpriteFrame("UserInfo/Icon/" + o, this.BossIcon, null, -1);
                    t ? (this.BossHpBar.node.active = !0, this.BossHpBar.progress = n) : this.BossHpBar.node.active = !1
                }, t.prototype.SetStartPoint = function(e) {
                    var t = e.convertToWorldSpaceAR(cc.v2(0, 0)),
                        n = this.node.convertToNodeSpaceAR(t);
                    this.StartNode.setPosition(n), this.StartNode.active = !0
                }, t.prototype.SetTarget = function(e) {
                    var t = e.convertToWorldSpaceAR(cc.v2(0, 0)),
                        n = this.node.convertToNodeSpaceAR(t);
                    this.TargetNode.setPosition(n), this.TargetNode.active = !0
                }, t.prototype.OnRankBtnClick = function() {
                    var e = this,
                        t = new c.Req_Alliance_GetAllianceMazeAllianceRank;
                    t.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(t, function(t) {
                        var n = {};
                        n.ActivityId = e._activityConfig._id, n.Title = e._activityConfig.Common.Title;
                        var o = {};
                        o.Rows = t.DataList, o.MyRankData = t.MyRankData, o.MyRank = t.MyRank, n.RankDatas = [o, null], n.CallBacks = [null, function() {
                            return e.ClickRankToggleCallBack()
                        }], n.ToggleDatas = [{
                            ToggleLabel: "bossWar_alliance_rank".ToUILocale(),
                            ToggleIcon: ""
                        }, {
                            ToggleLabel: "bossWar_member_rank".ToUILocale(),
                            ToggleIcon: ""
                        }], n.ExtraData = {
                            AllianceRankIndex: [0],
                            IsAlliance: !0
                        }, l.UIManager.Instance.ShowUIPanel(p.PanelConfig.CommonActivityRankPanel.Path, n)
                    })
                }, t.prototype.ClickRankToggleCallBack = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function() {
                            return [2, new Promise(function(t) {
                                var n = new c.Req_Alliance_GetAllianceMazeMemberRank;
                                n.ActivityId = e._activityConfig._id, u.RpcComponent.Instance.Call(n, function(e) {
                                    var n = {};
                                    n.Rows = e.DataList, n.MyRankData = e.MyRankData, n.MyRank = e.MyRank, t(n)
                                })
                            })]
                        })
                    })
                }, t.prototype.OnHolyBtnClick = function() {
                    var e = this,
                        t = c.Req_Alliance_GetAllianceMazeInfo.create();
                    t.ActivityId = this._activityId, u.RpcComponent.Instance.Call(t, function(t) {
                        e._allianceMazeInfoData = t, l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceMazeHolyPanel.Path, e)
                    })
                }, t.prototype.OnRewardBtnClick = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceMazeRewardPanel.Path, this)
                }, t.prototype.ToNextLayer = function() {
                    this._selectedLayer < this.MaxLevel && (this._selectedLayer++, n.NeedPlayLightEffect = !1, this.PlayCloudEffect())
                }, t.prototype.CheckActiveGuideIds = function() {
                    var e = this;
                    this._activeGuideIds = this._moduleGuideGroupIds, this.MonsterGuideNode || (this._activeGuideIds = this._activeGuideIds.filter(function(t) {
                        return t != e.MONSTER_GUIDE_ID
                    })), this.Monster2GuideNode || (this._activeGuideIds = this._activeGuideIds.filter(function(t) {
                        return t != e.MONSTER2_GUIDE_ID
                    })), this.BossGuideNode || (this._activeGuideIds = this._activeGuideIds.filter(function(t) {
                        return t != e.BOSS_GUIDE_ID
                    })), this.ResourceGuideNode || (this._activeGuideIds = this._activeGuideIds.filter(function(t) {
                        return t != e.RESOURCE_GUIDE_ID
                    }))
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = w.default.Instance.GetCurrentGroupId(this._activeGuideIds);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = u.ConfigDataComponent.Instance.GetConfigById(P.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 36:
                                            w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 37:
                                            w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.CurrencyBar.node);
                                            break;
                                        case 40:
                                            w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.BtnLayoutNode.children[3]);
                                            break;
                                        case 43:
                                            w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.RewardBtn.node);
                                            break;
                                        case 48:
                                            w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.HolyBtn.node);
                                            break;
                                        case 54:
                                            w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.MonsterGuideClickNode);
                                            break;
                                        case 57:
                                            w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.Monster2GuideClickNode);
                                            break;
                                        case 60:
                                            w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.BossGuideClickNode);
                                            break;
                                        case 63:
                                            w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.ResourceGuideClickNode);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, t.prototype.CheckTarget = function(e) {
                    return !(!this.ConcentrateFireInfo || !this.ConcentrateFireInfo[0]) && this.ConcentrateFireInfo[0] == this._selectedLayer && this.ConcentrateFireInfo[1] == e
                }, t.prototype.CreateCollectPeopleNode = function(e, t) {
                    var n;
                    (n = this._collectPeopleInfoNodePool.size() > 0 ? this._collectPeopleInfoNodePool.get() : cc.instantiate(this.CollectPeopleParentPrefabNode)).parent = this.CollectPeopleNode, n.active = !0;
                    var o = e.convertToWorldSpaceAR(cc.v2(0, 50)),
                        r = this.node.convertToNodeSpaceAR(o);
                    n.setPosition(r), cc.find("Label", n).getComponent(cc.Label).string = t
                }, t.prototype.OnDestroy = function() {
                    this._collectPeopleInfoNodePool.clear()
                }, t.NeedPlayLightEffect = !1, i([O(cc.Label)], t.prototype, "Title", void 0), i([O(cc.Button)], t.prototype, "RuleBtn", void 0), i([O(I.default)], t.prototype, "CountDownComponent", void 0), i([O(T.default)], t.prototype, "CurrencyBar", void 0), i([O(cc.Node)], t.prototype, "LayerBtnContainer", void 0), i([O(cc.Node)], t.prototype, "BtnLayoutNode", void 0), i([O(cc.Button)], t.prototype, "RankBtn", void 0), i([O(cc.Label)], t.prototype, "RankBtnLabel", void 0), i([O(cc.Button)], t.prototype, "HolyBtn", void 0), i([O(cc.Label)], t.prototype, "HolyLabel", void 0), i([O(cc.Node)], t.prototype, "HolyRedDot", void 0), i([O(cc.Button)], t.prototype, "RewardBtn", void 0), i([O(cc.Label)], t.prototype, "RewardLabel", void 0), i([O(cc.Node)], t.prototype, "RewardRedDot", void 0), i([O(cc.Node)], t.prototype, "MapLines", void 0), i([O(cc.Node)], t.prototype, "BossNode", void 0), i([O(cc.Sprite)], t.prototype, "BossIcon", void 0), i([O(A.default)], t.prototype, "BossHpBar", void 0), i([O(cc.Button)], t.prototype, "ReturnBtn", void 0), i([O(cc.Node)], t.prototype, "Mask", void 0), i([O(sp.Skeleton)], t.prototype, "CloudEffect", void 0), i([O(cc.Node)], t.prototype, "StartNode", void 0), i([O(cc.Node)], t.prototype, "NextLayerNode", void 0), i([O(cc.Node)], t.prototype, "TargetNode", void 0), i([O(cc.Node)], t.prototype, "CollectPeopleNode", void 0), i([O(cc.Node)], t.prototype, "CollectPeopleParentPrefabNode", void 0), i([O(cc.Node)], t.prototype, "MonsterGuideClickNode", void 0), i([O(cc.Node)], t.prototype, "Monster2GuideClickNode", void 0), i([O(cc.Node)], t.prototype, "BossGuideClickNode", void 0), i([O(cc.Node)], t.prototype, "ResourceGuideClickNode", void 0), n = i([k], t)
            }(l.BaseUIFullScreenPanel);
        n.default = M, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/AllianceMazeCell": "AllianceMazeCell",
        "../Components/AllianceMazeLayerBtn": "AllianceMazeLayerBtn",
        "../Components/AllianceMazeStrengthBar": "AllianceMazeStrengthBar",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent"
    }],
    AllianceMazeRankRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5955cYQ3N5KX44NhGjagy47", "AllianceMazeRankRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("./ItemComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Tag = null, t.RankIcon = null, t.RankLabel = null, t.ItemContainer = null, t.itemComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this.RankLabel.node.active = !1, this.RankIcon.node.active = !1, e.Rank[0] <= 3 ? (this.Bg.spriteFrame = n.getSpriteFrame("rankBg" + e.Rank[0]), this.Tag.spriteFrame = n.getSpriteFrame("tag" + e.Rank[0])) : (this.Bg.spriteFrame = n.getSpriteFrame("rankBg5"), this.Tag.spriteFrame = n.getSpriteFrame("tag5")), e.Rank[0] == e.Rank[1] ? e.Rank[0] <= 3 ? (this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = l.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e.Rank[0])) : (this.RankLabel.node.active = !0, this.RankLabel.string = "" + e.Rank[0]) : e.Rank[1] ? (this.RankLabel.node.active = !0, this.RankLabel.string = e.Rank[0] + "-" + e.Rank[1]) : (this.RankLabel.node.active = !0, this.RankLabel.string = e.Rank[0] + "+"), this.SetItemContainer(e, t)
                }, t.prototype.SetItemContainer = function(e, t) {
                    for (var n = 0; n < e.Rewards.length; n++) {
                        var o = this.itemComponentArray[n];
                        if (!o) {
                            var r = cc.instantiate(t);
                            r.setParent(this.ItemContainer), o = r.getComponent(c.ItemComponent), this.itemComponentArray[n] = o
                        }
                        o.node.active = !0, o.Init({
                            ItemId: e.Rewards[n].Items[0],
                            Count: e.Rewards[n].Items[1]
                        })
                    }
                    if (e.Rewards.length < this.itemComponentArray.length)
                        for (n = e.Rewards.length; n < this.itemComponentArray.length; n++) this.itemComponentArray[n].node.active = !1
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent == this.ItemContainer && l.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t)
                }, i([d(cc.Sprite)], t.prototype, "Bg", void 0), i([d(cc.Sprite)], t.prototype, "Tag", void 0), i([d(cc.Sprite)], t.prototype, "RankIcon", void 0), i([d(cc.Label)], t.prototype, "RankLabel", void 0), i([d(cc.Node)], t.prototype, "ItemContainer", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    AllianceMazeResourcePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9d1b1kMEqZIDYMwLqra1yvU", "AllianceMazeResourcePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../Components/CustomLayout"),
            f = e("../Components/CustomProgressBar"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/ItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Components/Components"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../Components/GameModuleGuideManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.RewardPreviewLabel = null, t.RewardPreviewLayout = null, t.RewardPreviewScrollView = null, t.RewardPreviewScrollViewLayout = null, t.StockLabel = null, t.CustomProgressBar = null, t.Progress = null, t.RewardNode = null, t.RewardLabel = null, t.CollectTime = null, t.RewardCustomLayout = null, t.EmptyRewardLabel = null, t.PeopleLabel = null, t.PeopleCount = null, t.PeopleDetailBtn = null, t.LeftCollectTime = null, t.InCollectionLabel = null, t.CollectBtn = null, t.CollectBtnLabel = null, t.GetRewardBtn = null, t.GetRewardBtnLabel = null, t.Hint = null, t.Layout = null, t._isCollecting = !1, t._moduleGuideGroupIds = [10025], t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), u.Game.EventDispatcher.On(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), u.Game.EventDispatcher.On(I.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), u.Game.EventDispatcher.Off(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), u.Game.EventDispatcher.Off(I.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RewardPreviewLabel.string = "allianceMaze_collectSpeed".ToUILocale(), this.StockLabel.string = "allianceMaze_stock".ToUILocale(), this.RewardLabel.string = "allianceMaze_rewardPreview".ToUILocale(), this.InCollectionLabel.string = "allianceMaze_inCollection".ToUILocale(), this.PeopleLabel.string = "allianceMaze_people".ToUILocale(), this.CollectBtnLabel.string = "allianceMaze_collect".ToUILocale(), this.GetRewardBtnLabel.string = "allianceMaze_getReward".ToUILocale(), this.EmptyRewardLabel.string = "allianceMaze_emptyReward".ToUILocale(), this.PeopleDetailBtn.node.on("click", this.OnPeopleDetailBtnClick, this), this.CollectBtn.node.on("click", this.OnCollectBtnClick, this), this.GetRewardBtn.node.on("click", this.OnGetRewardBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._resoureConfig = t[1], this._level = t[2], this._cellNum = t[3], this._basePanel = t[4], this.Title.string = this._basePanel._LocaleMap[this._resoureConfig.Id].Content
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.node.opacity = 0, t || (this.RewardPreviewNode(), this.RewardCustomLayout.Init(this._itemPrefab), this.ShowGameGuid()), this.RefreshUI()
                }, t.prototype.RewardPreviewNode = function() {
                    for (var e, t = [], n = 0; n < this._resoureConfig.FixedRewards.length; n++) {
                        var o = [this._resoureConfig.FixedRewards[n].Items[0], Math.floor(this._resoureConfig.FixedRewards[n].Items[1] / 1e5 * 60)];
                        t.push(o)
                    }
                    for (n = 0; n < this._resoureConfig.RandomRewards.length; n++) o = [this._resoureConfig.RandomRewards[n].Items[0], -1], t.push(o);
                    for (t.length > 5 ? (e = this.RewardPreviewScrollViewLayout, this.RewardPreviewLayout.active = !1) : (e = this.RewardPreviewLayout, this.RewardPreviewScrollView.active = !1), n = 0; n < t.length; n++) {
                        var r = cc.instantiate(this._itemPrefab);
                        r.parent = e, r.active = !0;
                        var i = r.getComponent(g.ItemComponent);
                        i.Init({
                            ItemId: t[n][0]
                        });
                        var a;
                        a = t[n][1] > 0 ? t[n][1] + "/h" : "allianceMaze_probability".ToUILocale(), i.SetNameAndActive(a, !0), i.SetLabelFontSize(i.Name, 32, 150)
                    }
                }, t.prototype.RefreshUI = function() {
                    var e = this,
                        t = new l.Req_Alliance_GetAllianceMazeResourceInfo;
                    t.ActivityId = this._activityId, t.Level = this._level, t.BlockId = this._cellNum, d.RpcComponent.Instance.Call(t, function(t) {
                        e._cellData = t, e._peopleNum = e._cellData.Info.length - 4, e.PeopleCount.string = e._peopleNum + "/" + e._resoureConfig.Num;
                        var n = d.RpcComponent.Instance.ServerTime,
                            o = e._cellData.Info[2],
                            r = e._cellData.Info[3];
                        e._leftTime = r - n, e._passedTime = n - o, e.CheckIsCollecting(), e.SetProgress(), e.SetRewardNode(), e.SetButtonState(), e.Layout.updateLayout(), e.node.opacity = 255
                    })
                }, t.prototype.SetProgress = function() {
                    if (-1 == this._cellData.Info[1]) return this.CustomProgressBar.progress = 1, void(this.Progress.string = "allianceMaze_progress".ToUILocale().Fmt(this._resoureConfig.TotalValue + "/" + this._resoureConfig.TotalValue));
                    if (this._leftTime <= 0) this.CustomProgressBar.progress = 0, this.Progress.string = "allianceMaze_progress".ToUILocale().Fmt("0/" + this._resoureConfig.TotalValue);
                    else {
                        var e = this._cellData.Info[1];
                        e -= Math.floor(this._passedTime / p.Etc.MinuteDuration * this._peopleNum * this._resoureConfig.MinuteValue), this.CustomProgressBar.progress = e / this._resoureConfig.TotalValue, this.Progress.string = "allianceMaze_progressWithSpeed".ToUILocale().Fmt(e + "/" + this._resoureConfig.TotalValue, this._peopleNum * this._resoureConfig.MinuteValue + "/m")
                    }
                }, t.prototype.SetRewardNode = function() {
                    if (!this._isCollecting) return this.RewardNode.active = !1, void(this.InCollectionLabel.node.parent.active = !1);
                    this.RewardNode.active = !0, this.InCollectionLabel.node.parent.active = !0, this._cellData.Rewards && this._cellData.Rewards.length ? (this.RewardCustomLayout.RenderLayOut(this._cellData.Rewards.length), this.EmptyRewardLabel.node.active = !1, this.RewardCustomLayout.node.active = !0) : (this.EmptyRewardLabel.node.active = !0, this.RewardCustomLayout.node.active = !1)
                }, t.prototype.SetButtonState = function() {
                    if (this.LeftCollectTime.node.parent.active = !0, this._isCollecting) this.CollectBtn.node.active = !1, this.GetRewardBtn.node.active = !0, this.SetDeadLine(this._cellData.Info[3]);
                    else {
                        if (-1 != this._cellData.Info[1] && this._leftTime <= 0) return this.CollectBtn.node.parent.active = !1, void(this.LeftCollectTime.node.parent.active = !1);
                        this.CollectBtn.node.active = !0, this.GetRewardBtn.node.active = !1, this.unschedule(this.RefreshLeftTime), this.LeftCollectTime.string = "allianceMaze_collectSpeedTips".ToUILocale().Fmt(this._resoureConfig.MinuteValue)
                    }
                }, t.prototype.SetDeadLine = function(e) {
                    if (this._deadLineTime = e, !(this._deadLineTime - d.RpcComponent.Instance.ServerTime <= 0)) {
                        var t = _.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId);
                        if (t.IntMap && t.IntMap[-3]) {
                            this.CollectTime.node.active = !0;
                            var n;
                            n = this._leftTime <= 0 ? this._cellData.Info[3] - this._cellData.Info[2] : _.RpcComponent.Instance.ServerTime - this._cellData.Info[2], this._collectTime = n
                        } else this.CollectTime.node.active = !1;
                        this.SetTimeValue()
                    }
                }, t.prototype.CheckIsCollecting = function() {
                    this._isCollecting = !1;
                    for (var e = d.DataCenter.Instance.Uid, t = 4; t < this._cellData.Info.length; t++)
                        if (this._cellData.Info[t] == e) {
                            this._isCollecting = !0;
                            break
                        }
                }, t.prototype.SetTimeValue = function() {
                    this.RefreshLeftTime(), this.unschedule(this.RefreshLeftTime), this.schedule(this.RefreshLeftTime, 1)
                }, t.prototype.RefreshLeftTime = function() {
                    var e = this._deadLineTime - d.RpcComponent.Instance.ServerTime;
                    if (e <= 0) return e = 0, this.unschedule(this.RefreshLeftTime), void this.RefreshUI();
                    var t = C.default.ActivityTimeLeftFormat(e);
                    this.LeftCollectTime.string = "allianceMaze_leftTime".ToUILocale().Fmt(t);
                    var n = C.default.ActivityTimeLeftFormat(this._collectTime);
                    this.CollectTime.string = "allianceMaze_collectTime".ToUILocale().Fmt(n), this._collectTime = this._collectTime + 1e3
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.RewardCustomLayout && e.forEach(function(e, t) {
                        e.getComponent(g.ItemComponent).Init({
                            ItemId: n._cellData.Rewards[t].ItemId,
                            Count: n._cellData.Rewards[t].Count
                        })
                    })
                }, t.prototype.OnPeopleDetailBtnClick = function() {
                    if (this._peopleNum <= 0) m.UIUtlity.ShowFloatingHint("allianceMaze_peopleNotEnough".ToUILocale());
                    else {
                        var e = l.Req_Alliance_GetAllianceMazeResourcePlayers.create();
                        e.ActivityId = this._activityId, e.Level = this._level, e.BlockId = this._cellNum, _.RpcComponent.Instance.Call(e, function(e) {
                            u.UIManager.Instance.ShowUIPanel(y.PanelConfig.AllianceMazeResourcePlayerInfoPanel.Path, e.PlayerInfos)
                        })
                    }
                }, t.prototype.OnCollectBtnClick = function() {
                    var e = this;
                    if (this._basePanel.CurrentCollectPos.length > 0) u.UIManager.Instance.ShowUIPanel(y.PanelConfig.HintPanel.Path, null, "allianceMaze_move".ToUILocale(), null, null, null, this.OnHitPanelCallBack.bind(this));
                    else if (this._peopleNum >= this._resoureConfig.Num) m.UIUtlity.ShowFloatingHint("allianceMaze_peopleMax".ToUILocale());
                    else {
                        var t = l.Req_Alliance_JoinAllianceMazeResource.create();
                        t.ActivityId = this._activityId, t.Level = this._level, t.BlockId = this._cellNum, _.RpcComponent.Instance.Call(t, function() {
                            e.RefreshUI(), e._basePanel.RequestNewData()
                        }, function(t) {
                            t == p.ErrCode.AllianceMazeDataChanged && (e._basePanel.RequestNewData(), u.UIManager.Instance.QuitPanelStack(y.PanelConfig.AllianceMazeResourcePanel.Path), m.UIUtlity.ShowFloatingHint("allianceMaze_peopleMax".ToUILocale()))
                        })
                    }
                }, t.prototype.OnGetRewardBtnClick = function() {
                    var e = this,
                        t = l.Req_Alliance_QuitAllianceMazeResource.create();
                    t.ActivityId = this._activityId, t.Level = this._level, t.BlockId = this._cellNum, _.RpcComponent.Instance.Call(t, function(t) {
                        t.Rewards && t.Rewards.length > 0 ? u.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, t.Rewards) : m.UIUtlity.ShowFloatingHint("allianceMaze_emptyReward".ToUILocale()), e._basePanel.RequestNewData(), u.UIManager.Instance.QuitPanelStack(y.PanelConfig.AllianceMazeResourcePanel.Path)
                    }, function(t) {
                        t == p.ErrCode.AllianceMazeDataChanged && (e._basePanel.RequestNewData(), u.UIManager.Instance.QuitPanelStack(y.PanelConfig.AllianceMazeResourcePanel.Path), m.UIUtlity.ShowFloatingHint("monopoly_mapRefreshed".ToUILocale()))
                    })
                }, t.prototype.OnHitPanelCallBack = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function() {
                            return (e = l.Req_Alliance_QuitAllianceMazeResource.create()).ActivityId = this._activityId, e.Level = this._basePanel.CurrentCollectPos[0], e.BlockId = this._basePanel.CurrentCollectPos[1], _.RpcComponent.Instance.Call(e, function(e) {
                                return a(t, void 0, void 0, function() {
                                    return s(this, function(t) {
                                        switch (t.label) {
                                            case 0:
                                                return [4, this._basePanel.RequestNewData()];
                                            case 1:
                                                return t.sent(), this.OnCollectBtnClick(), e.Rewards && e.Rewards.length > 0 ? u.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards) : m.UIUtlity.ShowFloatingHint("allianceMaze_emptyReward".ToUILocale()), [2]
                                        }
                                    })
                                })
                            }, function(e) {
                                e == p.ErrCode.AllianceMazeDataChanged && (t._basePanel.RequestNewData(), u.UIManager.Instance.QuitPanelStack(y.PanelConfig.AllianceMazeResourcePanel.Path), m.UIUtlity.ShowFloatingHint("monopoly_mapRefreshed".ToUILocale()))
                            }), [2]
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 == this.RewardPreviewScrollViewLayout.children.indexOf(t) && -1 == this.RewardPreviewLayout.children.indexOf(t) && -1 == this.RewardCustomLayout.node.children.indexOf(t) || m.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = v.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = _.ConfigDataComponent.Instance.GetConfigById(c.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 64:
                                        case 65:
                                        case 66:
                                            v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 67:
                                            v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.Hint);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Label)], t.prototype, "RewardPreviewLabel", void 0), i([w(cc.Node)], t.prototype, "RewardPreviewLayout", void 0), i([w(cc.Node)], t.prototype, "RewardPreviewScrollView", void 0), i([w(cc.Node)], t.prototype, "RewardPreviewScrollViewLayout", void 0), i([w(cc.Label)], t.prototype, "StockLabel", void 0), i([w(f.default)], t.prototype, "CustomProgressBar", void 0), i([w(cc.RichText)], t.prototype, "Progress", void 0), i([w(cc.Node)], t.prototype, "RewardNode", void 0), i([w(cc.Label)], t.prototype, "RewardLabel", void 0), i([w(cc.RichText)], t.prototype, "CollectTime", void 0), i([w(h.default)], t.prototype, "RewardCustomLayout", void 0), i([w(cc.Label)], t.prototype, "EmptyRewardLabel", void 0), i([w(cc.Label)], t.prototype, "PeopleLabel", void 0), i([w(cc.Label)], t.prototype, "PeopleCount", void 0), i([w(cc.Button)], t.prototype, "PeopleDetailBtn", void 0), i([w(cc.RichText)], t.prototype, "LeftCollectTime", void 0), i([w(cc.Label)], t.prototype, "InCollectionLabel", void 0), i([w(cc.Button)], t.prototype, "CollectBtn", void 0), i([w(cc.Label)], t.prototype, "CollectBtnLabel", void 0), i([w(cc.Button)], t.prototype, "GetRewardBtn", void 0), i([w(cc.Label)], t.prototype, "GetRewardBtnLabel", void 0), i([w(cc.Node)], t.prototype, "Hint", void 0), i([w(cc.Layout)], t.prototype, "Layout", void 0), i([S], t)
            }(u.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllianceMazeResourcePlayerInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "71d64M96I1PBr7JiVbmhSOa", "AllianceMazeResourcePlayerInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./HeadComponent"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadComponentNode = null, t.InfoPanelBtn = null, t.Name = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    if (this._data = e, !this._headComponent) {
                        var n = cc.instantiate(t);
                        this.HeadComponentNode.addChild(n), this._headComponent = n.getComponent(s.default)
                    }
                    this._headComponent.SetUI(this._data.HeadIcon, this._data.HeadFrame, this._data.Title), this.Name.string = this._data.Name, this.InfoPanelBtn.node.on(cc.Node.EventType.TOUCH_END, this.OnInfoPanelBtnClick, this)
                }, t.prototype.OnInfoPanelBtnClick = function() {
                    a.UIManager.Instance.ShowUIPanel(l.PanelConfig.PlayerInfoPanel.Path, this._data.Uid)
                }, i([p(cc.Node)], t.prototype, "HeadComponentNode", void 0), i([p(cc.Button)], t.prototype, "InfoPanelBtn", void 0), i([p(cc.Label)], t.prototype, "Name", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./HeadComponent": "HeadComponent"
    }],
    AllianceMazeResourcePlayerInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6e1a73jUJFGnow068hpuuj8", "AllianceMazeResourcePlayerInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CustomLayout"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/AllianceMazeResourcePlayerInfoComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.CustomLayout = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AllianceMazePanel/Component/AllianceMazeResourcePlayerInfoComponent", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._headComponentPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._datas = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.CustomLayout.Init(this._itemPrefab), this.CustomLayout.RenderLayOut(this._datas.length))
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(d.default).Init(n._datas[t], n._headComponentPrefab)
                    })
                }, i([y(c.default)], t.prototype, "CustomLayout", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/AllianceMazeResourcePlayerInfoComponent": "AllianceMazeResourcePlayerInfoComponent",
        "../Components/CustomLayout": "CustomLayout"
    }],
    AllianceMazeRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "78315A/7j9MdoHG6ZmDFcjB", "AllianceMazeRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CustomLayout"),
            p = e("../Components/CustomToggle"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Components/Components"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../Components/AllianceMazeLevelRewardComponent"),
            m = e("../Components/AllianceMazeRankRewardComponent"),
            I = e("../../RedDot/RedDotDataHandler"),
            _ = e("../Components/GameModuleGuideManager"),
            C = e("../../../../Proto/Static/ConfigProto"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.Level = 0] = "Level", e[e.Alliance = 1] = "Alliance"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !0), t.Title = null, t.Tab0 = null, t.Tab1 = null, t.CustomLayout = [], t.HintLabel = null, t.BottomTab = [], t.LevelRewardRedDot = null, t.Hint = null, t.NameKey = ["allianceMaze_layerReward", "allianceMaze_rankReward"], t._moduleGuideGroupIds = [10015], t._guideStepIndex = 0, t._guideGroupId = 0, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "BasePanel", {
                get: function() {
                    return this._basePanel
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(h.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(h.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("AllianceMazePanel/Component/AllianceMazeRankRewardComponent", cc.Prefab), this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("RankPanel/Png/RankAtlas", cc.SpriteAtlas), this.LoadDynamicAsset("AllianceMazePanel/Component/AllianceMazeLevelRewardComponent", cc.Prefab)]).then(function(e) {
                                    t._rewardPrefab = e[0], t._itemPrefab = e[1], t._warAtlas = e[2], t._levelrewardPrefab = e[3]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this);
                for (var t = 0; t < this.NameKey.length; t++) {
                    var n = this.NameKey[t];
                    this.BottomTab[t].Init(n.ToUILocale());
                    var o = this.BottomTab[t].node;
                    o.on("toggle", this.OnSwitchTab, this), o.name = t.toString()
                }
                this.InitCustomLayout()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._basePanel = t[0], this._currentTab = l.Level
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.DoSwitchTab(), this.BindRedDot(), this.ShowGameGuid()
            }, t.prototype.BindRedDot = function() {
                this.LevelRewardRedDot.active = I.RedDotDataHandler.Instance.RefreshAllianceMazeLevelRewardState({
                    Value1: this._basePanel.ActivityId
                })
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number(e.node.name);
                this._currentTab != t && (this._currentTab = t, this.DoSwitchTab())
            }, t.prototype.DoSwitchTab = function() {
                this._currentTab == l.Alliance ? (this.Tab0.active = !1, this.Tab1.active = !0, this.Title.string = "allianceMaze_rankReward".ToUILocale(), this.HintLabel.string = "allianceMaze_allianceRewardTips".ToUILocale()) : (this.Tab0.active = !0, this.Tab1.active = !1, this.Title.string = "allianceMaze_layerReward".ToUILocale(), this.HintLabel.string = "allianceMaze_levelRewardTips".ToUILocale()), this.RenderCustomLayout()
            }, t.prototype.InitCustomLayout = function() {
                this.CustomLayout[0].Init(this._levelrewardPrefab), this.CustomLayout[1].Init(this._rewardPrefab)
            }, t.prototype.RenderCustomLayout = function() {
                this._currentTab == l.Alliance ? this.CustomLayout[1].RenderLayOut(this._basePanel.ActivityConfig.AllianceRank.length) : this.CustomLayout[0].RenderLayOut(this._basePanel.ActivityConfig.Level.length)
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                this.CustomLayout[1] == t ? e.forEach(function(e, t) {
                    t < n._basePanel.ActivityConfig.AllianceRank.length ? (e.active = !0, e.getComponent(m.default).Init(n._basePanel.ActivityConfig.AllianceRank[t], n._itemPrefab, n._warAtlas)) : e.active = !1
                }) : this.CustomLayout[0] == t && e.forEach(function(e, t) {
                    e.getComponent(g.default).Init(t, n, n._basePanel.ActivityConfig.Level[t], n._itemPrefab)
                })
            }, t.prototype.GetLevelReward = function() {
                var e = y.Req_Alliance_GetAllianceMazeLevelReward.create();
                e.ActivityId = this._basePanel.ActivityId, f.RpcComponent.Instance.Call(e, function(e) {
                    c.UIManager.Instance.ShowUIPanel(d.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                })
            }, t.prototype.ShowGameGuid = function(e) {
                if (!e || e == this._guideGroupId) {
                    var t = _.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                    if (!(t <= 0)) {
                        this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                        var n = f.ConfigDataComponent.Instance.GetConfigById(C.GameModuleGuideGroup_Config, this._guideGroupId);
                        if (n)
                            for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                var r = !0;
                                switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                    case 44:
                                        _.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                        break;
                                    case 45:
                                        _.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.BottomTab[1].node);
                                        break;
                                    case 46:
                                        _.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                        break;
                                    case 47:
                                        _.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.Hint);
                                        break;
                                    default:
                                        r = !1
                                }
                                if (this._guideStepIndex++, r) break
                            }
                    }
                }
            }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Node)], t.prototype, "Tab0", void 0), i([S(cc.Node)], t.prototype, "Tab1", void 0), i([S(u.default)], t.prototype, "CustomLayout", void 0), i([S(cc.Label)], t.prototype, "HintLabel", void 0), i([S(p.default)], t.prototype, "BottomTab", void 0), i([S(cc.Node)], t.prototype, "LevelRewardRedDot", void 0), i([S(cc.Node)], t.prototype, "Hint", void 0), i([b], t)
        }(c.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Components/AllianceMazeLevelRewardComponent": "AllianceMazeLevelRewardComponent",
        "../Components/AllianceMazeRankRewardComponent": "AllianceMazeRankRewardComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager"
    }],
    AllianceMazeShowItemPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "59cdbkHPLtEB65f6IshZTxG", "AllianceMazeShowItemPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AllianceMazeShowItemPanelType = void 0;
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Components/CustomProgressBar"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property;
        (function(e) {
            e[e.ShowItem = 107] = "ShowItem", e[e.ShowHero = 108] = "ShowHero"
        })(n.AllianceMazeShowItemPanelType || (n.AllianceMazeShowItemPanelType = {}));
        var p = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.Title = null, t.Banner = null, t.RewardBtn = null, t.RedDot = null, t.CompleteTips = null, t.ProgressBar = null, t.ProgressBarLabel = null, t.ItemContent = null, t.Tips = null, t.SpriteAtlas = null, t
            }
            return r(t, e), i([u(cc.Label)], t.prototype, "Title", void 0), i([u(cc.Sprite)], t.prototype, "Banner", void 0), i([u(cc.Button)], t.prototype, "RewardBtn", void 0), i([u(cc.Node)], t.prototype, "RedDot", void 0), i([u(cc.Label)], t.prototype, "CompleteTips", void 0), i([u(s.default)], t.prototype, "ProgressBar", void 0), i([u(cc.Label)], t.prototype, "ProgressBarLabel", void 0), i([u(cc.Node)], t.prototype, "ItemContent", void 0), i([u(cc.Label)], t.prototype, "Tips", void 0), i([u(cc.SpriteAtlas)], t.prototype, "SpriteAtlas", void 0), i([c], t)
        }(a.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/CustomProgressBar": "CustomProgressBar"
    }],
    AllianceMazeStrengthBar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1961fDsQR9Fm4mzkmh5W7jh", "AllianceMazeStrengthBar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./CustomRichText"),
            c = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CurrencyIcon = null, t.BtnAdd = null, t.CountLabel = null, t.bgNode = null, t.IconWidget = null, t.BtnAddWidget = null, t.TitleBarWidth = 0, t._isInit = !1, t._currencyType = null, t._tempValue = 0, t._lastCount = -1, t._loadedAssets = [], t._clickCallBack = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    n && (this._max = n), this._currencyType = e, this.ConfigCurrencyCount(t), null != this.IconWidget && this.IconWidget.updateAlignment(), null != this.BtnAddWidget && this.BtnAddWidget.updateAlignment(), this.UpdateCountWidget(), this._isInit || (this._isInit = !0, this.BtnAdd.node.on("click", this.OnBtnAddClick, this)), this.LoadIcon()
                }, t.prototype.UpdateCountWidget = function() {
                    var e = this.CountLabel.node.getComponent(cc.Widget);
                    e && e.updateAlignment()
                }, t.prototype.SetFixedColor = function(e) {
                    this.CountLabel.node.color = e
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.CurrencyIcon.spriteFrame = null, this._iconpath = h.default.Instance.GetItemPathById(this._currencyType), [4, c.AssetsManager.Instance.LoadAsset(this._iconpath, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid && e.name == this._iconpath ? (this._loadedAssets.push(e), this.CurrencyIcon.spriteFrame = e, [2]) : (p.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.HideBtnAdd = function() {
                    this.BtnAdd.node.active = !1, this.BtnAdd.target && (this.BtnAdd.target.active = !1)
                }, t.prototype.HideIcon = function() {
                    this.CurrencyIcon.node.active = !1
                }, t.prototype.ConfigCurrencyCount = function(e) {
                    this._tempValue = this._lastCount, this._lastCount = e, this._tempValue == e && this._needTween || (null == this._max ? this.CountLabel.Init("<outline color=#202434 width=3>" + e.FmtCurrency() + "</outline>") : "string" == typeof this._max ? this.CountLabel.Init("item_count_enough".ToUILocale().Fmt(e, this._max)) : e >= this._max ? this.CountLabel.Init("item_count_enough".ToUILocale().Fmt(e.FmtCurrency(), this._max.FmtCurrency())) : this.CountLabel.Init("item_count_not_enough".ToUILocale().Fmt(e.FmtCurrency(), this._max.FmtCurrency())))
                }, t.prototype.SetClickCallBack = function(e) {
                    this._clickCallBack = e
                }, t.prototype.OnBtnAddClick = function() {
                    null != this._clickCallBack ? this._clickCallBack() : d.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, this._currencyType, !1)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) p.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([g(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([g(cc.Button)], t.prototype, "BtnAdd", void 0), i([g(l.CustomRichText)], t.prototype, "CountLabel", void 0), i([g(cc.Node)], t.prototype, "bgNode", void 0), i([g(cc.Widget)], t.prototype, "IconWidget", void 0), i([g(cc.Widget)], t.prototype, "BtnAddWidget", void 0), i([g], t.prototype, "TitleBarWidth", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./CustomRichText": "CustomRichText"
    }],
    AllianceMazeStrengthHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d5537rL6t5ASr21snWPleVi", "AllianceMazeStrengthHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../Consts/Consts"),
            p = e("../../Components/DataCenter"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.ItemName = null, t.ItemDesc = null, t.ItemNode = null, t.ItemCount = null, t.OkBtn = null, t.OkBtnLabel = null, t._itemId = u.CommonItemId.AllianceMazeStrength, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "holyWeapon_getWay".ToUILocale(), this.ItemName.string = this._itemId.ToItemName(), this.OkBtnLabel.string = "ok".ToUILocale(), this.OkBtn.node.on("click", this.OnOkBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = p.DataCenter.Instance.ActivityConfigs[this._activityId], this.ItemDesc.string = "allianceMaze_allianceMazeStrengthDesc".ToUILocale().Fmt(this._activityConfig.CustomPart.InitEnergyResume / (u.Etc.MinuteDuration / u.Etc.SecondDuration), this._activityConfig.CustomPart.EnergyCap), this.ItemCount.string = "" + "shop_buyGoods_ownedCount".ToUILocale() + h.default.Instance.GetCurrentAllianceMazeStrength(this._activityId)
                }, t.prototype.DisPlay = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this._itemComponent || ((n = cc.instantiate(this._itemPrefab)).setParent(this.ItemNode), this._itemComponent = n.getComponent(d.ItemComponent)), this._itemComponent.Init({
                                ItemId: this._itemId
                            }), [2]
                        })
                    })
                }, t.prototype.OnOkBtnClick = function() {
                    this.Close()
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "ItemName", void 0), i([g(cc.RichText)], t.prototype, "ItemDesc", void 0), i([g(cc.Node)], t.prototype, "ItemNode", void 0), i([g(cc.Label)], t.prototype, "ItemCount", void 0), i([g(cc.Button)], t.prototype, "OkBtn", void 0), i([g(cc.Label)], t.prototype, "OkBtnLabel", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllianceMazeWinSettleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "867c9P0ns1J3ppWD0O+iIms", "AllianceMazeWinSettleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./SettlementBaseComponent"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("./CustomProgressBar"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("./DisplayRewardsComponent"),
            f = e("../Panel/AllianceMazePanel"),
            y = e("../../../ShareConsts/BattleConsts"),
            g = e("../Panel/AllianceMazeBattlePanel"),
            m = e("../../../Consts/Consts"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BgNode = null, t.DamgePrecentLabel = null, t.DamgeLabel = null, t.ProgressBar = null, t.Progress = null, t.SmallTitleLabel = null, t.ItemContainer = null, t.OkButton = null, t.OkButtonLabel = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.SetUI = function(t, n, o, r) {
                    e.prototype.SetUI.call(this, t, n, o, r), t.Reports[0].Result == y.BattleResult.DefenderWin ? this.BgNode.y = -50 : this.BgNode.y = 0, this._isInit || (this._isInit = !0, this.SmallTitleLabel.string = "StrongholdWar_Battle_Result_GetReward".ToUILocale(), this.OkButtonLabel.string = "ok".ToUILocale(), this.OkButton.node.on("click", this.OnOkButtonClick, this)), this.RenderContent(n), this.ConfigProgress(this._params)
                }, t.prototype.RenderContent = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : (t = this, [4, d.AssetsManager.Instance.LoadAsset(u.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (t._displayRewardPrefab = o.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    return n = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = n.getComponent(h.DisplayRewardsComponent), this.ItemContainer.addChild(n), this._rewardComponent.Init(e, this.ItemContainer.height), [2]
                            }
                        })
                    })
                }, t.prototype.ConfigProgress = function(e) {
                    this.DamgeLabel.string = "allianceMaze_winTips".ToUILocale().Fmt(e[0]);
                    var t = e[1] > e[0] ? e[1] - e[0] : 0;
                    this.ProgressBar.progress = t / e[2], this.Progress.string = t + "/" + e[2];
                    for (var n = 0, o = 0, r = this._BattleData.Reports[0].Heros, i = 0; i < r.length; i++) {
                        var a = r[i];
                        a.Camp == m.CampType.Defender && (n += a.StatHp, o += a.StatHpMax)
                    }
                    var s = Math.floor((o - n) / o * 100);
                    this.DamgePrecentLabel.string = "allianceMaze_battleDamage".ToUILocale().Fmt(s)
                }, t.prototype.OnOkButtonClick = function() {
                    var e = this._params[1] <= this._params[0];
                    f.default.NeedPlayLightEffect = e, g.default.BasePanel.RequestNewData(), l.UIManager.Instance.QuitPanelStack(u.PanelConfig.AllianceMazeBattlePanel.Path), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._displayRewardPrefab && l.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab)
                }, i([C(cc.Node)], t.prototype, "BgNode", void 0), i([C(cc.RichText)], t.prototype, "DamgePrecentLabel", void 0), i([C(cc.RichText)], t.prototype, "DamgeLabel", void 0), i([C(p.default)], t.prototype, "ProgressBar", void 0), i([C(cc.Label)], t.prototype, "Progress", void 0), i([C(cc.Label)], t.prototype, "SmallTitleLabel", void 0), i([C(cc.Node)], t.prototype, "ItemContainer", void 0), i([C(cc.Button)], t.prototype, "OkButton", void 0), i([C(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([_], t)
            }(c.default);
        n.default = v, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Panel/AllianceMazeBattlePanel": "AllianceMazeBattlePanel",
        "../Panel/AllianceMazePanel": "AllianceMazePanel",
        "./CustomProgressBar": "CustomProgressBar",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    AllianceMemberItemPlus: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f7238FtZ2REOq1RPffeULZ5", "AllianceMemberItemPlus");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pTitlePromptText = null, t.pContributionPromptText = null, t.pOperation = null, t.pName = null, t.pTitle = null, t.pContribution = null, t.p7DaysContribution = null, t.pStatus = null, t.pLevel = null, t.pHeadIcon = null, t.pHeadFrame = null, t.LevelNode = null, t.Country = null, t.BubbleNode = null, t.BubbleLabel = null, t.sid = -1, t._loadedAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.pHeadIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnHeadIconTouch, this)
                }, t.prototype.onDisable = function() {
                    this.pHeadIcon.node.off(cc.Node.EventType.TOUCH_END, this.OnHeadIconTouch, this)
                }, t.prototype.OnHeadIconTouch = function() {
                    l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_ALLIANCE_HEROHEADCLICK, this.sid)
                }, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = o.sent(), o.label = 3;
                                case 3:
                                    return (t = e.getComponent(n)).InitNodesAndComponents(), [2, t]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = [], n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    c.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, c.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = t.sent(), t.label = 2;
                                case 2:
                                    return n.prefabAsset ? [2, cc.instantiate(n.prefabAsset)] : (u.EZLog.Debug("ok in AllianceListItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {
                    this.pTitlePromptText.string = "allianceBase_position".ToUILocale(), this.pContributionPromptText.string = "allianceBase_totalContribution".ToUILocale()
                }, t.prototype.SetPlayerHeadAndFrame = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return n = l.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadIcon + "/" + e, cc.SpriteFrame), o = l.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadFrame + "/" + t, cc.SpriteFrame), [4, Promise.all([n, o]).then(function(e) {
                                        r.isValid ? (r.pHeadIcon.spriteFrame = e[0], r.pHeadFrame.spriteFrame = e[1], r._loadedAssets.push(e[0]), r._loadedAssets.push(e[1])) : e.forEach(function(e) {
                                            l.AssetsManager.Instance.UnloadAsset(e)
                                        })
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetHeadComponentParam = function(e, t) {
                    this.LevelNode.active = !1, this.Country.node.active = !1, e > 0 && (this.LevelNode.active = !0, this.pLevel.string = e.toString()), t && (this.Country.node.active = !0, d.UIUtlity.SetCountrySpriteFrame(this.Country, t))
                }, t.classNameString = "AllianceMemberItemPlus", t.prefabPathName = "AllianceBasePanel/Private/MemberItemPlus", t.prefabAsset = null, t.pool = new cc.NodePool, i([g(cc.Label)], t.prototype, "pTitlePromptText", void 0), i([g(cc.Label)], t.prototype, "pContributionPromptText", void 0), i([g(cc.Button)], t.prototype, "pOperation", void 0), i([g(cc.Label)], t.prototype, "pName", void 0), i([g(cc.Label)], t.prototype, "pTitle", void 0), i([g(cc.Label)], t.prototype, "pContribution", void 0), i([g(cc.Label)], t.prototype, "p7DaysContribution", void 0), i([g(cc.Label)], t.prototype, "pStatus", void 0), i([g(cc.Label)], t.prototype, "pLevel", void 0), i([g(cc.Sprite)], t.prototype, "pHeadIcon", void 0), i([g(cc.Sprite)], t.prototype, "pHeadFrame", void 0), i([g(cc.Node)], t.prototype, "LevelNode", void 0), i([g(cc.Sprite)], t.prototype, "Country", void 0), i([g(cc.Node)], t.prototype, "BubbleNode", void 0), i([g(cc.Label)], t.prototype, "BubbleLabel", void 0), n = i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AllianceMemberItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "621d9iWXgRM2awL5yJITcnw", "AllianceMemberItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pTitlePromptText = null, t.pName = null, t.pTitle = null, t.pStatus = null, t.pHeadIcon = null, t.pHeadFrame = null, t.LevelNode = null, t.LevelLabel = null, t.Country = null, t.index = -1, t.sid = -1, t.memberNotFull = !1, t.enoughPower = !1, t.enoughLevel = !1, t._loadedAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.pHeadIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnHeadIconTouch, this)
                }, t.prototype.onDisable = function() {
                    this.pHeadIcon.node.off(cc.Node.EventType.TOUCH_END, this.OnHeadIconTouch, this)
                }, t.prototype.OnHeadIconTouch = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.PlayerInfoPanel.Path, this.sid)
                }, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = o.sent(), o.label = 3;
                                case 3:
                                    return (t = e.getComponent(n)).InitNodesAndComponents(), [2, t]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = [], n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    c.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, c.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = t.sent(), t.label = 2;
                                case 2:
                                    return n.prefabAsset ? [2, cc.instantiate(n.prefabAsset)] : (u.EZLog.Debug("ok in AllianceListItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {
                    this.pTitlePromptText.string = "allianceBase_position".ToUILocale()
                }, t.prototype.SetPlayerHeadAndFrame = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return n = l.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadIcon + "/" + e, cc.SpriteFrame), o = l.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadFrame + "/" + t, cc.SpriteFrame), [4, Promise.all([n, o]).then(function(e) {
                                        r.isValid ? (r.pHeadIcon.spriteFrame = e[0], r.pHeadFrame.spriteFrame = e[1], r._loadedAssets.push(e[0]), r._loadedAssets.push(e[1])) : e.forEach(function(e) {
                                            l.AssetsManager.Instance.UnloadAsset(e)
                                        })
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetHeadComponentParam = function(e, t) {
                    this.LevelNode.active = !1, this.Country.node.active = !1, e > 0 && (this.LevelNode.active = !0, this.LevelLabel.string = e.toString()), t && (this.Country.node.active = !0, d.UIUtlity.SetCountrySpriteFrame(this.Country, t))
                }, t.classNameString = "AllianceMemberItem", t.prefabPathName = "AllianceBasePanel/Private/MemberItem", t.prefabAsset = null, t.pool = new cc.NodePool, i([y(cc.Label)], t.prototype, "pTitlePromptText", void 0), i([y(cc.Label)], t.prototype, "pName", void 0), i([y(cc.Label)], t.prototype, "pTitle", void 0), i([y(cc.Label)], t.prototype, "pStatus", void 0), i([y(cc.Sprite)], t.prototype, "pHeadIcon", void 0), i([y(cc.Sprite)], t.prototype, "pHeadFrame", void 0), i([y(cc.Node)], t.prototype, "LevelNode", void 0), i([y(cc.Label)], t.prototype, "LevelLabel", void 0), i([y(cc.Sprite)], t.prototype, "Country", void 0), n = i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AllianceNamingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b12dbfM8lRKJo3gHyBa/iJP", "AllianceNamingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./AllianceCommonDefines"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Fixed), t.pTitleText = null, t.pPromptText = null, t.pNameEditorBox = null, t.pCancelButtonText = null, t.pChangeButtonText = null, t.pCreateButtonText = null, t.pCancelButton = null, t.pChangeButton = null, t.pCreateButton = null, t.pDiamondCostText = null, t.mainAtlas = null, t.multiLangAtlas = null, t.panelMode = h.AllianceNamingPanelMode.Creating, t.oldName = "", t
                }
                return r(t, e), t.prototype.InitNodesAndComponents = function() {}, t.prototype.onEnable = function() {
                    s.Game.EventDispatcher.On(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.onDisable = function() {
                    s.Game.EventDispatcher.Off(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.SetAllianceCityWarEntry = function() {
                    c.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.AllianceId) > 0 && a.UIManager.Instance.QuitPanelStack(this)
                }, t.prototype.DisPlay = function() {
                    a.EZLog.Debug("ok in AllianceNamingPanel DisPlay..."), e.prototype.DisPlay.call(this), this.node.active = !0
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InitNodesAndComponents(), this.GetStaticConfig(), this.pCancelButton.node.on("click", this.LeavePanel.bind(this), this), this.pChangeButton.node.on("click", this.OnClickChangeButton.bind(this), this), this.pCreateButton.node.on("click", this.OnClickCreateButton.bind(this), this), this.pPromptText.string = "allianceBase_namingDesc".ToUILocale(), this.pCancelButtonText.string = "Answer_QuitNo".ToUILocale(), this.pChangeButtonText.string = "allianceBase_namingChange".ToUILocale(), this.pCreateButtonText.string = "ok".ToUILocale()
                }, t.prototype.GetStaticConfig = function() {
                    this.renameCostDiamond = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceRenameCostDiamond"), this.pNameEditorBox.maxLength = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceNameMaxLength")
                }, t.prototype.RefreshUI = function() {
                    if (this.panelMode == h.AllianceNamingPanelMode.Creating) this.pTitleText.string = "allianceBase_naming".ToUILocale(), this.pCreateButton.node.active = !0, this.pChangeButton.node.active = !1;
                    else if (this.panelMode == h.AllianceNamingPanelMode.Changing) {
                        this.pTitleText.string = "allianceBase_renaming".ToUILocale();
                        var e = p.DataCenter.Instance.GetItemCount(f.CommonItemId.Diamond);
                        this.pDiamondCostText.string = this.renameCostDiamond.toString(), this.pDiamondCostText.node.color = e >= this.renameCostDiamond ? h.AllianceFontColor.white : h.AllianceFontColor.red, this.pCreateButton.node.active = !1, this.pChangeButton.node.active = !0
                    } else a.EZLog.Error("ok in AllianceNamingPanel.RefreshUI...wrong panel mode:" + this.panelMode)
                }, t.prototype.LeavePanel = function() {
                    a.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickChangeButton = function() {
                    if (p.DataCenter.Instance.GetItemCount(f.CommonItemId.Diamond) < this.renameCostDiamond) d.UIUtlity.ShowFloatingHint("allianceBase_notEnoughDiamond".ToUILocale());
                    else if (this.oldName != this.pNameEditorBox.string) {
                        var e = new l.Req_Alliance_AllianceRename;
                        e.Name = this.pNameEditorBox.string, p.RpcComponent.Instance.Call(e, this.OnCallBackAllianceRename.bind(this))
                    } else d.UIUtlity.ShowFloatingHint("allianceBase_sameName".ToUILocale())
                }, t.prototype.OnCallBackAllianceRename = function() {
                    this.oldName = this.pNameEditorBox.string, d.UIUtlity.ShowFloatingHint("allianceBase_renamingSuccess".ToUILocale()), this.LeavePanel(), this.callerPanelEventCallBack(this.pNameEditorBox.string)
                }, t.prototype.OnClickCreateButton = function() {
                    this.LeavePanel(), this.callerPanelEventCallBack(this.pNameEditorBox.string)
                }, t.prototype.InitData = function(e) {
                    a.EZLog.Debug("ok in AllianceNamingPanel InitData ..."), this.panelMode = e[0], this.pNameEditorBox.string = e[1], this.oldName = e[1], this.callerPanelEventCallBack = e[2], this.RefreshUI(), s.EZLog.Log(" --- \u4f20\u6765\u7684\u53c2\u6570 = ", e), this.pNameEditorBox.placeholder = "" == e[1] ? "allianceBase_clickToRename".ToUILocale() : e[1]
                }, i([m(cc.Label)], t.prototype, "pTitleText", void 0), i([m(cc.Label)], t.prototype, "pPromptText", void 0), i([m(cc.EditBox)], t.prototype, "pNameEditorBox", void 0), i([m(cc.Label)], t.prototype, "pCancelButtonText", void 0), i([m(cc.Label)], t.prototype, "pChangeButtonText", void 0), i([m(cc.Label)], t.prototype, "pCreateButtonText", void 0), i([m(cc.Button)], t.prototype, "pCancelButton", void 0), i([m(cc.Button)], t.prototype, "pChangeButton", void 0), i([m(cc.Button)], t.prototype, "pCreateButton", void 0), i([m(cc.Label)], t.prototype, "pDiamondCostText", void 0), i([m(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([m(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), i([g], t)
            }(a.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AllianceCommonDefines": "AllianceCommonDefines"
    }],
    AllianceProfilePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a2d984pZFhNoYp1p3t2CJk1", "AllianceProfilePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../RedDot/RedDotManager"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/GameEventsListener"),
            m = e("../../Components/RpcComponent"),
            I = e("../../Components/DataCenter"),
            _ = e("./AllianceBaseMainPanel"),
            C = e("./AllianceCommonDefines"),
            v = e("./AllianceEventSeperator"),
            b = e("./AllianceEventItem"),
            S = e("../../../Util/TimeUtil"),
            w = e("./AllianceMemberItemPlus"),
            P = e("../../Components/Components"),
            A = e("../../../../Proto/Static/ConfigProto"),
            T = e("../Components/CustomToggle"),
            R = e("../../Auxiliary/DataUtlity"),
            L = cc._decorator,
            k = L.ccclass,
            O = L.property;
        (function(e) {
            e[e.All = 0] = "All", e[e.AllianceTest = 1] = "AllianceTest", e[e.AllianceWar = 2] = "AllianceWar", e[e.CityWar = 3] = "CityWar", e[e.None = 4] = "None"
        })(l || (l = {}));
        var M = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.SettingButton = null, t.SettingMenu = null, t.SearchButton = null, t.QuitButton = null, t.ReviewButton = null, t.SetupButton = null, t.RecruitButton = null, t.Flag = null, t.FlagIcon = null, t.Name = null, t.MemberText = null, t.Level = null, t.Exp = null, t.SloganRichText = null, t.ProfileMemberSubPage = null, t.MemberTitle = null, t.SevenDayTitle = null, t.StatueTitle = null, t.MemberScrollView = null, t.MemberScrollViewContent = null, t.ProfileLogSubPage = null, t.EmptyLogListPrompt = null, t.LogScrollView = null, t.LogScrollViewContent = null, t.pProfileMemberToggle = null, t.pProfileLogToggle = null, t.ReturnBtn = null, t.pOperationMenuRoot = null, t.pOperationMenuButtonLayout = null, t.pOperationImpeachButton = null, t.pOperationHandOverButton = null, t.pOperationRemoveButton = null, t.pOperationAssignViceButton = null, t.pOperationRecallViceButton = null, t.pSettingSearchButtonText = null, t.pSettingQuitButtonText = null, t.pSettingReviewButtonText = null, t.pSettingSetupButtonText = null, t.pSettingRecruitButtonText = null, t.LogToggles = [], t.LogToggleLabels = [], t.LevelProgressShow = null, t.pOperationLabels = [], t._logs = [], t._logSelectIndex = 0, t._seperators = [], t._events = [], t._mainAtlas = null, t.LevelProgressBarFullWidth = 588, t.MemberListItemHeight = 190, t.eventTextKeys = ["", "AllianceEventText_Join", "AllianceEventText_Quit", "AllianceEventText_Promotion", "AllianceEventText_Demotion", "AllianceEventText_Kick", "AllianceEventText_AppointLeader", "AllianceEventText_ImpeachLeader", "AllianceEventText_TestReport", "AllianceEventText_CityWarOccupyCity", "AllianceEventText_CityWarLoseCity", "AllianceEventText_War_Main", "AllianceEventText_War_Sneak"], t.allianceMemberItemPlusInAction = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(u.EventKeys.EVENT_ALLIANCE_HEROHEADCLICK, this.OnHeroHeadClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ALLIANCE_HEROHEADCLICK, this.OnHeroHeadClick, this)
            }, t.prototype.OnHeroHeadClick = function(e) {
                c.UIManager.Instance.ShowUIPanel(p.PanelConfig.PlayerInfoPanel.Path, e)
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas)]).then(function(e) {
                                    t._mainAtlas = e[0]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.SearchButton.node.on("click", this.OnClickSettingSearchButton.bind(this), this), this.QuitButton.node.on("click", this.OnClickSettingQuitButton.bind(this), this), this.ReviewButton.node.on("click", this.OnClickSettingReviewButton.bind(this), this), this.SetupButton.node.on("click", this.OnClickSettingSetupButton.bind(this), this), this.RecruitButton.node.on("click", this.OnClickSettingRecruitButton.bind(this), this), this.ReturnBtn.node.on("click", this.OnReturn, this), this.pOperationImpeachButton.node.on("click", this.OnClickOperationImpeachButton.bind(this), this), this.pOperationHandOverButton.node.on("click", this.OnClickOperationHandOverButton.bind(this), this), this.pOperationRemoveButton.node.on("click", this.OnClickOperationRemoveButton.bind(this), this), this.pOperationAssignViceButton.node.on("click", this.OnClickOperationAssignViceButton.bind(this), this), this.pOperationRecallViceButton.node.on("click", this.OnClickOperationRecallViceButton.bind(this), this), this.pProfileMemberToggle.node.on("click", this.RefreshProfileMemberSubPage.bind(this), this), this.pProfileLogToggle.node.on("click", this.RefreshProfileLogSubPage.bind(this), this), this.SettingButton.node.on("click", this.OnClickSettingsButton.bind(this), this), this.EmptyLogListPrompt.string = "allianceBase_emptyLogList".ToUILocale(), this.MemberTitle.string = "allianceBase_member".ToUILocale(), this.SevenDayTitle.string = "allianceBase_7daysContribution".ToUILocale(), this.StatueTitle.string = "allianceBase_status".ToUILocale(), this.pSettingSearchButtonText.string = "allianceBase_settingMenuSearch".ToUILocale(), this.pSettingQuitButtonText.string = "allianceBase_settingMenuQuit".ToUILocale(), this.pSettingReviewButtonText.string = "allianceBase_settingMenuReview".ToUILocale(), this.pSettingSetupButtonText.string = "allianceBase_settingMenuSetup".ToUILocale(), this.pSettingRecruitButtonText.string = "allianceBase_recruit".ToUILocale(), this.pProfileMemberToggle.Init("allianceBase_members".ToUILocale()), this.pProfileLogToggle.Init("allianceBase_log".ToUILocale());
                var n = ["allianceLog_all".ToUILocale(), "allianceLog_test".ToUILocale(), "allianceLog_war".ToUILocale(), "allianceLog_cityWar".ToUILocale()];
                this.LogToggleLabels.forEach(function(e, t) {
                    n[t] && (e.string = n[t])
                });
                for (var o = ["allianceBase_mainPageImpeach".ToUILocale(), "allianceBase_mainPageHandOver".ToUILocale(), "allianceBase_mainPageRemove".ToUILocale(), "allianceBase_mainPageAssign".ToUILocale(), "allianceBase_mainPageRecall".ToUILocale()], r = 0; r < this.pOperationLabels.length; r++) this.pOperationLabels[r].string = o[r];
                this.LogToggles.forEach(function(e) {
                    e.node.on("toggle", t.ClickLogToggle, t)
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t)
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.SetCommonUI(), this.RefreshProfileMemberSubPage(), this.pProfileMemberToggle.check()
            }, t.prototype.SetCommonUI = function() {
                I.DataCenter.Instance.AllianceId > 0 && (this.SetLogWarToggleHide(), this.GetMyAllianceInfo(), this.BindRedDot())
            }, t.prototype.SetLogWarToggleHide = function() {
                this.LogToggles[3].node.active = R.default.Instance.IsGameModuleOpen(f.GameModuleType.AllianceCityWar)
            }, t.prototype.BindRedDot = function() {
                d.RedDotManager.Instance.Bind(this.SettingButton.node, d.RedDotManager.Instance.RedDot.AllianceSettingBtnNode, 0, 0), d.RedDotManager.Instance.Bind(this.ReviewButton.node, d.RedDotManager.Instance.RedDot.AllianceApplicationBtnNode, 0, 0)
            }, t.prototype.RefreshProfileMemberSubPage = function() {
                this.Title.string = "allianceBase_members".ToUILocale(), this.ProfileMemberSubPage.active = !0, this.ProfileLogSubPage.active = !1;
                var e = new h.Req_Alliance_GetMemeberList;
                m.RpcComponent.Instance.Call(e, this.OnCallBackFromGetMemeberList.bind(this))
            }, t.prototype.OnCallBackFromGetMemeberList = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, c, u;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                for (n = this.allianceMemberItemPlusInAction.length - 1; n >= 0; n--)(t = this.allianceMemberItemPlusInAction[n]).pOperation.node.off("click"), w.default.Put(t);
                                this.allianceMemberItemPlusInAction = [], this._myAllianceMemberData = e.MemberList, this._myAllianceViceLeaderCount = 0, this.GetMyAllianceInfo(), n = 0, o = this._myAllianceMemberData.length, s.label = 1;
                            case 1:
                                return n < o ? ((r = this._myAllianceMemberData[n]).AlliancePost == f.AlliancePostType.ViceLeader && this._myAllianceViceLeaderCount++, [4, w.default.Get()]) : [3, 4];
                            case 2:
                                i = s.sent(), this.allianceMemberItemPlusInAction.push(i), i.index = n, i.sid = r.Uid, i.node.setParent(this.MemberScrollViewContent), i.pName.string = r.Name, i.pTitle.string = _.default.ToTitleName(r.AlliancePost), i.pContribution.string = r.TotalScore.toString(), i.p7DaysContribution.string = r.Day7Score.toString(), i.pLevel.string = r.Level.toString(), i.SetPlayerHeadAndFrame(r.HeadIcon, r.HeadFrame), i.SetHeadComponentParam(r.Level, r.Country), _.default.LastActiveTimeForHumanReading(r.LastActiveTime, i.pStatus), i.BubbleNode.active = !1, i.BubbleLabel.string = "alliance_canImpeach".ToUILocale(), i.pOperation.node.active = !1, r.AlliancePost == f.AlliancePostType.Leader && (a = S.TimeUtil.GetDiffDays(r.LastActiveTime, m.RpcComponent.Instance.ServerTime), this._myAllianceData.CanImpeachLeader = a > _.default.impeachLeaderDuration), this._myAllianceData.MyPost == f.AlliancePostType.Member ? (i.pOperation.node.active = r.AlliancePost == f.AlliancePostType.Leader && this._myAllianceData.CanImpeachLeader, i.BubbleNode.active = r.AlliancePost == f.AlliancePostType.Leader && this._myAllianceData.CanImpeachLeader) : this._myAllianceData.MyPost == f.AlliancePostType.ViceLeader ? r.AlliancePost == f.AlliancePostType.Leader ? (i.pOperation.node.active = this._myAllianceData.CanImpeachLeader, i.BubbleNode.active = this._myAllianceData.CanImpeachLeader) : r.AlliancePost == f.AlliancePostType.Member && (i.pOperation.node.active = !0) : this._myAllianceData.MyPost == f.AlliancePostType.Leader && r.AlliancePost != f.AlliancePostType.Leader && (i.pOperation.node.active = !0), i.pOperation.node.on("click", this.OnClickMemberOperationButton.bind(this), this), s.label = 3;
                            case 3:
                                return ++n, [3, 1];
                            case 4:
                                return l = this.MemberScrollViewContent.getComponent(cc.Layout).spacingY, c = this.MemberScrollViewContent.getComponent(cc.Layout).paddingTop, u = this._clickMemberIndex - 2 > 0 ? this._clickMemberIndex - 2 : 0, this.MemberScrollView.scrollToOffset(cc.v2(0, u * (l + this.MemberListItemHeight) + c)), [2]
                        }
                    })
                })
            }, t.prototype.GetMyAllianceInfo = function() {
                var e = new h.Req_Alliance_GetMyAlliance;
                m.RpcComponent.Instance.Call(e, this.OnCallBackFromGetMyAllianceInfo.bind(this), this.SetCommonUI.bind(this))
            }, t.prototype.OnClickMemberOperationButton = function(e) {
                var t = e.node.parent.getComponent(w.default).index;
                this._clickMemberIndex = t;
                var n = this._myAllianceMemberData[t];
                this._currentSelectedMemberIndex = t, this._myAllianceData.MyPost == f.AlliancePostType.Member ? (this.pOperationImpeachButton.node.active = this._myAllianceData.CanImpeachLeader, this.pOperationHandOverButton.node.active = !1, this.pOperationRemoveButton.node.active = !1, this.pOperationAssignViceButton.node.active = !1, this.pOperationRecallViceButton.node.active = !1) : this._myAllianceData.MyPost == f.AlliancePostType.ViceLeader ? (this.pOperationImpeachButton.node.active = n.AlliancePost == f.AlliancePostType.Leader && this._myAllianceData.CanImpeachLeader, this.pOperationHandOverButton.node.active = !1, this.pOperationRemoveButton.node.active = n.AlliancePost < f.AlliancePostType.ViceLeader, this.pOperationAssignViceButton.node.active = !1, this.pOperationRecallViceButton.node.active = !1) : this._myAllianceData.MyPost == f.AlliancePostType.Leader && (this.pOperationImpeachButton.node.active = !1, this.pOperationHandOverButton.node.active = n.AlliancePost != f.AlliancePostType.Leader, this.pOperationRemoveButton.node.active = n.AlliancePost != f.AlliancePostType.Leader, this.pOperationAssignViceButton.node.active = n.AlliancePost == f.AlliancePostType.Member, this.pOperationRecallViceButton.node.active = n.AlliancePost == f.AlliancePostType.ViceLeader);
                var o = this.pOperationMenuRoot.parent.convertToNodeSpaceAR(e.node.convertToWorldSpaceAR(cc.v3()));
                this.pOperationMenuRoot.y = o.y, this.pOperationMenuRoot.active = this.pOperationImpeachButton.node.active || this.pOperationHandOverButton.node.active || this.pOperationRemoveButton.node.active || this.pOperationAssignViceButton.node.active || this.pOperationRecallViceButton.node.active
            }, t.prototype.OnCallBackFromGetMyAllianceInfo = function(e) {
                switch (c.EZLog.Debug("ok in AllianceBaseMainPanel OnCallBackFromGetMyAllianceInfo ...res is null ?" + (null == e)), this._myAllianceData = e, R.default.Instance.SetAllianceInfo(e), this._myAllianceData.MyPost) {
                    case f.AlliancePostType.Leader:
                        this.SearchButton.node.active = !0, this.QuitButton.node.active = !0, this.ReviewButton.node.active = !0, this.SetupButton.node.active = !0, this.RecruitButton.node.active = !0, this.GetAppliactionList();
                        break;
                    case f.AlliancePostType.ViceLeader:
                        this.SearchButton.node.active = !0, this.QuitButton.node.active = !0, this.ReviewButton.node.active = !0, this.SetupButton.node.active = !1, this.RecruitButton.node.active = !0, this.GetAppliactionList();
                        break;
                    case f.AlliancePostType.Member:
                        this.SearchButton.node.active = !0, this.QuitButton.node.active = !0, this.ReviewButton.node.active = !1, this.SetupButton.node.active = !1, this.RecruitButton.node.active = !1
                }
                this.RefreshHeader()
            }, t.prototype.GetAppliactionList = function() {
                var e = new h.Req_Alliance_GetRequestList;
                m.RpcComponent.Instance.Call(e, function(e) {
                    I.DataCenter.Instance.SetTempData("AllianceData_RequestList", e), d.RedDotManager.Instance.RefreshRedDotNode(d.RedDotManager.Instance.RedDot.AllianceApplicationBtnNode)
                })
            }, t.prototype.RefreshHeader = function() {
                var e = P.ConfigDataComponent.Instance.GetConfigById(A.AllianceIcon_Config, this._myAllianceData.Icon),
                    t = e.LogoID,
                    n = e.FlagID;
                this.FlagIcon.spriteFrame = this._mainAtlas.getSpriteFrame("flagLogo" + t), this.Flag.spriteFrame = this._mainAtlas.getSpriteFrame("flagBg" + n), this.Name.string = this._myAllianceData.Name;
                var o = this._myAllianceData.MemberCount,
                    r = _.default.allianceLevelConfig[this._myAllianceData.Level - 1],
                    i = _.default.allianceLevelConfig[this._myAllianceData.Level],
                    a = r.MemberCount;
                if (this.MemberText.string = "allianceBase_membersRatio".ToUILocale().Fmt(o.toString(), a.toString()), this.Level.string = "allianceBase_level".ToUILocale().Fmt(this._myAllianceData.Level.toString()), i) {
                    var s = r.Xp,
                        l = i.Xp,
                        c = this._myAllianceData.Xp - s,
                        u = l - s;
                    this.LevelProgressShow.width = this.LevelProgressBarFullWidth * Math.min(1, c / u), this.Exp.string = c.toString() + "/" + u.toString()
                } else s = _.default.allianceLevelConfig[this._myAllianceData.Level - 2].Xp, u = (l = r.Xp) - s, this.LevelProgressShow.width = this.LevelProgressBarFullWidth, this.Exp.string = u.toString() + "/" + u.toString();
                this.SloganRichText.string = this._myAllianceData.Notice
            }, t.prototype.RefreshProfileLogSubPage = function() {
                this.Title.string = "allianceBase_log".ToUILocale(), this.ProfileMemberSubPage.active = !1, this.ProfileLogSubPage.active = !0, this.SetLogIndexToType();
                var e = new h.Req_Alliance_GetAllianceLog;
                m.RpcComponent.Instance.Call(e, this.OnCallBackFromGetAllianceLog.bind(this))
            }, t.prototype.SetLogIndexToType = function() {
                if (!this._logIndexToType) {
                    this._logIndexToType = {};
                    for (var e = 0; e < l.None; e++) switch (e) {
                        case l.All:
                            this._logIndexToType[e] = [];
                            break;
                        case l.AllianceTest:
                            this._logIndexToType[e] = [f.AllianceLogType.AllianceTest];
                            break;
                        case l.AllianceWar:
                            this._logIndexToType[e] = [f.AllianceLogType.ChallengeMain, f.AllianceLogType.ChallengeRaid];
                            break;
                        case l.CityWar:
                            this._logIndexToType[e] = [f.AllianceLogType.CityWarOccupyCity, f.AllianceLogType.CityWarLoseCity]
                    }
                }
            }, t.prototype.OnCallBackFromGetAllianceLog = function(e) {
                this._logs = e.Data, this.SetLogs()
            }, t.prototype.SetLogs = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                for (n = this._seperators.length - 1; n >= 0; n--) v.default.Put(this._seperators[n]);
                                for (n = this._events.length - 1; n >= 0; n--) b.default.Put(this._events[n]);
                                this._seperators = [], this._events = [], e = this.GetLogDatas(), t = "", this.EmptyLogListPrompt.node.active = e.length <= 0, n = e.length - 1, s.label = 1;
                            case 1:
                                return n >= 0 ? (o = e[n], c.EZLog.Log("log = ", o), c.EZLog.Debug("ok in OnCallBackFromGetAllianceLog... i:" + n + " log.Ts:" + o.Ts), r = S.TimeUtil.Format("MM-DD", o.Ts), i = S.TimeUtil.Format("HH:mm", o.Ts), t == r ? [3, 3] : (t = r, [4, v.default.Get()])) : [3, 6];
                            case 2:
                                a = s.sent(), this._seperators.push(a), a.node.setParent(this.LogScrollViewContent), a.pDate.string = t, s.label = 3;
                            case 3:
                                return [4, b.default.Get()];
                            case 4:
                                switch (l = s.sent(), this._events.push(l), l.node.setParent(this.LogScrollViewContent), l.pTime.string = "[" + i + "]", o.Type) {
                                    case f.AllianceLogType.Join:
                                    case f.AllianceLogType.Quit:
                                        l.pEventContent.string = this.eventTextKeys[o.Type].ToUILocale().Fmt(o.StringParam[0]);
                                        break;
                                    case f.AllianceLogType.Promotion:
                                    case f.AllianceLogType.Demotion:
                                        l.pEventContent.string = this.eventTextKeys[o.Type].ToUILocale().Fmt(o.StringParam[0], "allianceBase_memberTitleVice".ToUILocale());
                                        break;
                                    case f.AllianceLogType.Kick:
                                    case f.AllianceLogType.AppointLeader:
                                    case f.AllianceLogType.ImpeachLeader:
                                        l.pEventContent.string = this.eventTextKeys[o.Type].ToUILocale().Fmt(o.StringParam[0], o.StringParam[1]);
                                        break;
                                    case f.AllianceLogType.AllianceTest:
                                        l.pEventContent.string = this.eventTextKeys[o.Type].ToUILocale().Fmt(o.StringParam[0], o.IntParam[0]);
                                        break;
                                    case f.AllianceLogType.CityWarOccupyCity:
                                        l.pEventContent.string = this.eventTextKeys[o.Type].ToUILocale().Fmt(o.IntParam[0].ToStrongholdName());
                                        break;
                                    case f.AllianceLogType.CityWarLoseCity:
                                        l.pEventContent.string = this.eventTextKeys[o.Type].ToUILocale().Fmt(o.IntParam[0].ToStrongholdName(), o.StringParam[0]);
                                        break;
                                    case f.AllianceLogType.ChallengeMain:
                                        l.pEventContent.string = this.eventTextKeys[o.Type].ToUILocale().Fmt(o.StringParam[0], o.IntParam[1], this.GetLogIsSuccess(o.IntParam[0]));
                                        break;
                                    case f.AllianceLogType.ChallengeRaid:
                                        l.pEventContent.string = this.eventTextKeys[o.Type].ToUILocale().Fmt(o.StringParam[0], this.GetLogIsSuccess(o.IntParam[0]))
                                }
                                s.label = 5;
                            case 5:
                                return --n, [3, 1];
                            case 6:
                                return this.LogScrollView.scrollToTop(), [2]
                        }
                    })
                })
            }, t.prototype.ClickLogToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                t != this._logSelectIndex && (this._logSelectIndex = t, this.SetLogs())
            }, t.prototype.GetLogDatas = function() {
                var e = [];
                if (this._logSelectIndex == l.All) e = this._logs;
                else {
                    var t = this._logIndexToType[this._logSelectIndex];
                    this._logs.forEach(function(n) {
                        t.includes(n.Type) && e.push(n)
                    })
                }
                return e
            }, t.prototype.GetLogIsSuccess = function(e) {
                return 1 == e ? "allianceLog_success".ToUILocale() : "allianceLog_fail".ToUILocale()
            }, t.prototype.OnClickSettingSearchButton = function() {
                this.SettingMenu.active = !1, c.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceListPanel.Path, !0)
            }, t.prototype.OnClickSettingQuitButton = function() {
                return this.SettingMenu.active = !1, this._myAllianceData.MyPost == f.AlliancePostType.Leader ? void(this._myAllianceData.MemberCount > 1 ? y.UIUtlity.ShowHintPanel("", "alliance_quit_hint".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "ok".ToUILocale(), null) : y.UIUtlity.ShowHintPanel("", "allianceBase_dismissAndQuitHint".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "allianceBase_dismissAndQuit".ToUILocale(), this.OnDismissAlliance.bind(this))) : void y.UIUtlity.ShowHintPanel("", "allianceBase_quitHint".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "allianceBase_quit".ToUILocale(), this.OnQuitAlliance.bind(this))
            }, t.prototype.OnDismissAlliance = function() {
                var e = new h.Req_Alliance_DismissAlliance;
                g.default.Instance._allianceQuit = !0, m.RpcComponent.Instance.Call(e, this.OnCallBackFromDismissAlliance.bind(this), this.OnCallFallFromDismissAlliance.bind(this))
            }, t.prototype.OnCallBackFromDismissAlliance = function() {
                I.DataCenter.Instance.AllianceId = 0, g.default.Instance._allianceQuit = !1, this.BindRedDot(), c.UIManager.Instance.QuitPanelStack(this), c.UIManager.Instance.QuitPanelStack("AllianceBaseMainPanel"), c.UIManager.Instance.ShowUIPanel(p.PanelConfig.MainScenePanel.Path)
            }, t.prototype.OnCallFallFromDismissAlliance = function() {
                g.default.Instance._allianceQuit = !1
            }, t.prototype.OnQuitAlliance = function() {
                var e = new h.Req_Alliance_QuitAlliance;
                g.default.Instance._allianceQuit = !0, m.RpcComponent.Instance.Call(e, this.OnCallBackFromQuitAlliance.bind(this), this.OnCallFallFromQuitAlliance.bind(this))
            }, t.prototype.OnCallBackFromQuitAlliance = function() {
                I.DataCenter.Instance.AllianceId = 0, y.UIUtlity.ShowFloatingHint("allianceBase_quitResult".ToUILocale()), g.default.Instance._allianceQuit = !1, this.BindRedDot(), c.UIManager.Instance.QuitPanelStack(this), c.UIManager.Instance.QuitPanelStack("AllianceBaseMainPanel"), c.UIManager.Instance.ShowUIPanel(p.PanelConfig.MainScenePanel.Path)
            }, t.prototype.OnCallFallFromQuitAlliance = function() {
                g.default.Instance._allianceQuit = !1
            }, t.prototype.OnClickSettingReviewButton = function() {
                this.SettingMenu.active = !1;
                var e = _.default.allianceLevelConfig[this._myAllianceData.Level - 1].MemberCount;
                c.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceApplicationListPanel.Path, this._myAllianceData.MemberCount, e, this)
            }, t.prototype.OnClickSettingSetupButton = function() {
                this.SettingMenu.active = !1, c.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceSetupPanel.Path, C.AllianceSetupPanelMode.Modifying, this._myAllianceData)
            }, t.prototype.OnClickSettingRecruitButton = function() {
                this.SettingMenu.active = !1;
                var e = _.default.recruitMaxTimesPerDay - I.DataCenter.Instance.GetIntData(f.UserDataKey.AllianceAdvertiseCount);
                e <= 0 ? y.UIUtlity.ShowFloatingHint("allianceBase_noMoreRecruitToday".ToUILocale()) : I.DataCenter.Instance.GetItemCount(f.CommonItemId.Diamond) < _.default.recruitDiamondCost ? c.UIManager.Instance.ShowUIPanel(p.PanelConfig.MallNewPanel.Path, [f.MallPageType.DiamondShop, f.GiftPackType.BuyDiamond]) : y.UIUtlity.ShowHintPanel("", "allianceBase_recruitHint".ToUILocale().Fmt(_.default.recruitDiamondCost, e.toString()), "Answer_QuitNo".ToUILocale(), null, "allianceBase_recruit".ToUILocale(), this.BroadCaseRecruit.bind(this))
            }, t.prototype.BroadCaseRecruit = function() {
                var e = new h.Req_Alliance_Advertise;
                m.RpcComponent.Instance.Call(e, this.OnCallBackFromBroadCaseRecruit.bind(this))
            }, t.prototype.OnCallBackFromBroadCaseRecruit = function(e) {
                y.UIUtlity.ShowFloatingHint("allianceBase_recruitResult".ToUILocale()), I.DataCenter.Instance.AddPublicChatMessage(e.Msg)
            }, t.prototype.OnReturn = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnClickOperationImpeachButton = function() {
                this.pOperationMenuRoot.active = !1;
                var e = this._myAllianceMemberData[this._currentSelectedMemberIndex];
                y.UIUtlity.ShowHintPanel("", "allianceBase_impeachHint".ToUILocale().Fmt(e.Name, _.default.impeachLeaderDuration), "Answer_QuitNo".ToUILocale(), null, "allianceBase_impeach".ToUILocale(), this.TryImpeachLeader.bind(this))
            }, t.prototype.TryImpeachLeader = function() {
                var e = this._myAllianceMemberData[this._currentSelectedMemberIndex],
                    t = new h.Req_Alliance_ImpeachLeader;
                t.LeaderUid = e.Uid, m.RpcComponent.Instance.Call(t, this.OnCallBackFromImpeachLeader.bind(this))
            }, t.prototype.OnCallBackFromImpeachLeader = function(e) {
                this._myAllianceData.MyPost = e.MyPost, this.RefreshProfileMemberSubPage(), y.UIUtlity.ShowFloatingHint("allianceBase_impeachResult".ToUILocale().Fmt(e.NewLeaderName))
            }, t.prototype.OnClickOperationHandOverButton = function() {
                this.pOperationMenuRoot.active = !1;
                var e = this._myAllianceMemberData[this._currentSelectedMemberIndex];
                y.UIUtlity.ShowHintPanel("", "allianceBase_handoverHint".ToUILocale().Fmt(e.Name), "Answer_QuitNo".ToUILocale(), null, "allianceBase_handover".ToUILocale(), this.TryHandOver.bind(this))
            }, t.prototype.TryHandOver = function() {
                var e = this._myAllianceMemberData[this._currentSelectedMemberIndex],
                    t = new h.Req_Alliance_AppointLeader;
                t.TargetUid = e.Uid, m.RpcComponent.Instance.Call(t, this.OnCallBackFromAppointLeader.bind(this))
            }, t.prototype.OnCallBackFromAppointLeader = function() {
                this._myAllianceData.MyPost = f.AlliancePostType.Member, this.RefreshProfileMemberSubPage(), y.UIUtlity.ShowFloatingHint("allianceBase_handoverResult".ToUILocale().Fmt(this._myAllianceMemberData[this._currentSelectedMemberIndex].Name))
            }, t.prototype.OnClickOperationRemoveButton = function() {
                this.pOperationMenuRoot.active = !1;
                var e = this._myAllianceMemberData[this._currentSelectedMemberIndex];
                if (this._myAllianceData.MyPost <= e.AlliancePost) return y.UIUtlity.ShowFloatingHint("allianceBase_cant_remove".ToUILocale());
                var t = new h.Req_Alliance_KickMember;
                t.TargetUid = e.Uid, m.RpcComponent.Instance.Call(t, this.OnCallBackFromKickMember.bind(this))
            }, t.prototype.OnCallBackFromKickMember = function() {
                this.RefreshProfileMemberSubPage(), y.UIUtlity.ShowFloatingHint("allianceBase_kickResult".ToUILocale().Fmt(this._myAllianceMemberData[this._currentSelectedMemberIndex].Name))
            }, t.prototype.OnClickOperationAssignViceButton = function() {
                this.pOperationMenuRoot.active = !1;
                var e = _.default.allianceLevelConfig[this._myAllianceData.Level - 1].ViceLeaderCount;
                if (this._myAllianceViceLeaderCount >= e) y.UIUtlity.ShowFloatingHint("allianceBase_tooManyViceLeaders".ToUILocale());
                else {
                    var t = this._myAllianceMemberData[this._currentSelectedMemberIndex],
                        n = new h.Req_Alliance_ChangePost;
                    n.TargetUid = t.Uid, n.Post = f.AlliancePostType.ViceLeader, m.RpcComponent.Instance.Call(n, this.OnCallBackFromAssignVice.bind(this))
                }
            }, t.prototype.OnCallBackFromAssignVice = function() {
                this.RefreshProfileMemberSubPage(), y.UIUtlity.ShowFloatingHint("allianceBase_assignViceLeaderResult".ToUILocale().Fmt(this._myAllianceMemberData[this._currentSelectedMemberIndex].Name))
            }, t.prototype.OnClickOperationRecallViceButton = function() {
                this.pOperationMenuRoot.active = !1;
                var e = this._myAllianceMemberData[this._currentSelectedMemberIndex],
                    t = new h.Req_Alliance_ChangePost;
                t.TargetUid = e.Uid, t.Post = f.AlliancePostType.Member, m.RpcComponent.Instance.Call(t, this.OnCallBackFromRecallVice.bind(this))
            }, t.prototype.OnCallBackFromRecallVice = function() {
                this.RefreshProfileMemberSubPage(), y.UIUtlity.ShowFloatingHint("allianceBase_recallViceLeaderResult".ToUILocale().Fmt(this._myAllianceMemberData[this._currentSelectedMemberIndex].Name))
            }, t.prototype.OnClickSettingsButton = function() {
                this.SettingMenu.active = !0
            }, i([O(cc.Label)], t.prototype, "Title", void 0), i([O(cc.Button)], t.prototype, "SettingButton", void 0), i([O(cc.Node)], t.prototype, "SettingMenu", void 0), i([O(cc.Button)], t.prototype, "SearchButton", void 0), i([O(cc.Button)], t.prototype, "QuitButton", void 0), i([O(cc.Button)], t.prototype, "ReviewButton", void 0), i([O(cc.Button)], t.prototype, "SetupButton", void 0), i([O(cc.Button)], t.prototype, "RecruitButton", void 0), i([O(cc.Sprite)], t.prototype, "Flag", void 0), i([O(cc.Sprite)], t.prototype, "FlagIcon", void 0), i([O(cc.Label)], t.prototype, "Name", void 0), i([O(cc.RichText)], t.prototype, "MemberText", void 0), i([O(cc.Label)], t.prototype, "Level", void 0), i([O(cc.Label)], t.prototype, "Exp", void 0), i([O(cc.RichText)], t.prototype, "SloganRichText", void 0), i([O(cc.Node)], t.prototype, "ProfileMemberSubPage", void 0), i([O(cc.Label)], t.prototype, "MemberTitle", void 0), i([O(cc.Label)], t.prototype, "SevenDayTitle", void 0), i([O(cc.Label)], t.prototype, "StatueTitle", void 0), i([O(cc.ScrollView)], t.prototype, "MemberScrollView", void 0), i([O(cc.Node)], t.prototype, "MemberScrollViewContent", void 0), i([O(cc.Node)], t.prototype, "ProfileLogSubPage", void 0), i([O(cc.Label)], t.prototype, "EmptyLogListPrompt", void 0), i([O(cc.ScrollView)], t.prototype, "LogScrollView", void 0), i([O(cc.Node)], t.prototype, "LogScrollViewContent", void 0), i([O(T.default)], t.prototype, "pProfileMemberToggle", void 0), i([O(T.default)], t.prototype, "pProfileLogToggle", void 0), i([O(cc.Button)], t.prototype, "ReturnBtn", void 0), i([O(cc.Node)], t.prototype, "pOperationMenuRoot", void 0), i([O(cc.Layout)], t.prototype, "pOperationMenuButtonLayout", void 0), i([O(cc.Button)], t.prototype, "pOperationImpeachButton", void 0), i([O(cc.Button)], t.prototype, "pOperationHandOverButton", void 0), i([O(cc.Button)], t.prototype, "pOperationRemoveButton", void 0), i([O(cc.Button)], t.prototype, "pOperationAssignViceButton", void 0), i([O(cc.Button)], t.prototype, "pOperationRecallViceButton", void 0), i([O(cc.Label)], t.prototype, "pSettingSearchButtonText", void 0), i([O(cc.Label)], t.prototype, "pSettingQuitButtonText", void 0), i([O(cc.Label)], t.prototype, "pSettingReviewButtonText", void 0), i([O(cc.Label)], t.prototype, "pSettingSetupButtonText", void 0), i([O(cc.Label)], t.prototype, "pSettingRecruitButtonText", void 0), i([O(cc.Toggle)], t.prototype, "LogToggles", void 0), i([O(cc.Label)], t.prototype, "LogToggleLabels", void 0), i([O(cc.Node)], t.prototype, "LevelProgressShow", void 0), i([O(cc.Label)], t.prototype, "pOperationLabels", void 0), i([k], t)
        }(c.BaseUIFullScreenPanel);
        n.default = M, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel",
        "./AllianceCommonDefines": "AllianceCommonDefines",
        "./AllianceEventItem": "AllianceEventItem",
        "./AllianceEventSeperator": "AllianceEventSeperator",
        "./AllianceMemberItemPlus": "AllianceMemberItemPlus"
    }],
    AllianceRedPacketInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9c22d4uO+hGsJ70dK1hHl+I", "AllianceRedPacketInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AllianceRedPacketOpenMode = void 0;
        var l, c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../Components/AsyncLayout"),
            d = e("../Components/HeadComponent"),
            h = e("../Components/ItemComponent"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/Components"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../Auxiliary/Mask"),
            v = e("../Auxiliary/UIUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.View = 0] = "View", e[e.Open = 1] = "Open", e[e.AutoOpen = 2] = "AutoOpen", e[e.AutoOpenEnd = 3] = "AutoOpenEnd"
        })(l = n.AllianceRedPacketOpenMode || (n.AllianceRedPacketOpenMode = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(u.UINodeType.Fixed, !1), t.OpenTitle = null, t.ViewTitle = null, t.Mask = null, t.BgNode = null, t.HeadPos = null, t.PlayerName = null, t.Desc = null, t.RewardScrollView = null, t.RewardAsyncLayout = null, t.GetCount = null, t.PlayerScrollView = null, t.PlayerAsyncLayout = null, t.PlayerPrefab = null, t.Spine = null, t.EmptyReward = null, t._playerInfoItemDic = {}, t._playersDic = {}, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                f.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
            }, t.prototype.onDisable = function() {
                f.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.HeadComponent), n = this.LoadDynamicAsset(y.BundlePath.ItemComponent), [4, Promise.all([t, n]).then(function(e) {
                                    o._headPrefab = e[0], o._itemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                this.RewardAsyncLayout.Init(this._itemPrefab, this.OnRewardInitializeItem.bind(this)), this.PlayerAsyncLayout.Init(this.PlayerPrefab, this.OnPlayerInitializeItem.bind(this)), this._headeComponent = cc.instantiate(this._headPrefab).getComponent(d.default), this._headeComponent.node.parent = this.HeadPos, this.EmptyReward.string = "allianceRedPacketPanel_emptyReward".ToUILocale()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._redPacketData = t[0], this._openMode = t[1];
                var n = t[2];
                this._autoOpenCallback = t[3], this._redPacketConfig = I.ConfigDataComponent.Instance.GetConfigById(m.AllianceRedPacket_Config, this._redPacketData.Type), this._rewardDatas = [];
                for (var o = 0; o < this._redPacketConfig.Rewards.length; o++) {
                    for (var r = this._redPacketConfig.Rewards[o], i = !1, a = 0; a < this._rewardDatas.length; a++) {
                        var s = this._rewardDatas[a];
                        if (s.ItemId == r.Items[0]) {
                            s.Count += r.Items[1], i = !0;
                            break
                        }
                    }
                    i || this._rewardDatas.push({
                        ItemId: r.Items[0],
                        Count: r.Items[1]
                    })
                }
                for (this._receiversIds = Object.keys(this._redPacketData.Receivers), this._receiversIds.sort(this.SortPlayer.bind(this)), o = 0; o < n.length; o++) r = n[o], this._playersDic[r.Uid.toString()] = r
            }, t.prototype.SortPlayer = function(e, t) {
                return e == I.DataCenter.Instance.Uid.toString() ? -1 : t == I.DataCenter.Instance.Uid.toString() ? 1 : this._redPacketData.Receivers[t].Items[1] - this._redPacketData.Receivers[e].Items[1]
            }, t.prototype.DisPlay = function() {
                var t = this;
                e.prototype.DisPlay.call(this), this.BgNode.scale = 0, cc.tween(this.BgNode).to(.2, {
                    scale: 1
                }, {
                    easing: "backOut"
                }).start(), this.Desc.string = this._redPacketConfig.Id.ToAllianceRedPacketDesc();
                var n = 0;
                switch (this.OpenTitle.active = !1, this.ViewTitle.active = !1, this._openMode) {
                    case l.Open:
                        this.OpenTitle.active = !0, this.Mask.EnableClickEvent(), this.SetOpenUI(), n = this._redPacketData.Receivers[I.DataCenter.Instance.Uid.toString()] ? 1 : 0;
                        break;
                    case l.AutoOpen:
                        this.OpenTitle.active = !0, this.Mask.DisableClickEvent(), this.SetOpenUI(), n = this._redPacketData.Receivers[I.DataCenter.Instance.Uid.toString()] ? 1 : 0, this.scheduleOnce(function() {
                            t._autoOpenCallback()
                        }, .4);
                        break;
                    case l.AutoOpenEnd:
                        this.OpenTitle.active = !0, this.Mask.DisableClickEvent(), this.SetOpenUI(), n = this._redPacketData.Receivers[I.DataCenter.Instance.Uid.toString()] ? 1 : 0, this.scheduleOnce(function() {
                            t.Close(), t._autoOpenCallback()
                        }, .4);
                        break;
                    default:
                        this.ViewTitle.active = !0, this.Mask.EnableClickEvent();
                        var o = this._playersDic[this._redPacketData.OwnerId];
                        this.PlayerName.string = o.Name, n = this._rewardDatas.length, this._headeComponent.SetUI(o.HeadIcon, o.HeadFrame)
                }
                this.RewardAsyncLayout.RenderLayout(n), n <= 5 && (this.RewardScrollView.enabled = !1, this.RewardAsyncLayout.node.x = -this.RewardAsyncLayout.node.width / 2), this.EmptyReward.node.parent.active = 0 == n, this.PlayerAsyncLayout.RenderLayout(this._receiversIds.length), this.GetCount.string = "allianceRedPacketPanel_getCount".ToUILocale().Fmt(this._receiversIds.length, this._redPacketConfig.Rewards.length)
            }, t.prototype.SetOpenUI = function() {
                this.PlayOpenEffect(), this.PlayerName.string = I.DataCenter.Instance.GetStringData(_.UserDataKey.RoleName), this._headeComponent.AutoSetUI()
            }, t.prototype.OnRewardInitializeItem = function(e, t) {
                var n = e.getComponent(h.ItemComponent);
                if (this._openMode == l.View) n.Init({
                    ItemId: this._rewardDatas[t].ItemId,
                    Count: this._rewardDatas[t].Count
                });
                else {
                    var o = this._redPacketData.Receivers[I.DataCenter.Instance.Uid.toString()].Items[0];
                    n.Init({
                        ItemId: this._redPacketConfig.Rewards[o].Items[0],
                        Count: this._redPacketConfig.Rewards[o].Items[1]
                    })
                }
                n.SetCountFontSize(28, 139)
            }, t.prototype.OnPlayerInitializeItem = function(e, t, n) {
                var o = this._playerInfoItemDic[n];
                o || ((o = {
                    Header: null,
                    Name: e.getChildByName("Name").getComponent(cc.Label),
                    ItemComponent: null,
                    SelfBg: e.getChildByName("SelfBg"),
                    NormalBg: e.getChildByName("NormalBg")
                }).Header = cc.instantiate(this._headPrefab).getComponent(d.default), o.Header.node.parent = e.getChildByName("HeadPos"), o.ItemComponent = cc.instantiate(this._itemPrefab).getComponent(h.ItemComponent), o.ItemComponent.node.parent = e.getChildByName("ItemPos"), e.on("click", this.OnClickPlayerItem, this), this._playerInfoItemDic[n] = o), e.name = t.toString();
                var r = this._receiversIds[t];
                r == I.DataCenter.Instance.Uid.toString() ? (o.SelfBg.active = !0, o.NormalBg.active = !1) : (o.SelfBg.active = !1, o.NormalBg.active = !0);
                var i = this._redPacketData.Receivers[r].Items[0];
                o.ItemComponent.Init({
                    ItemId: this._redPacketConfig.Rewards[i].Items[0],
                    Count: this._redPacketConfig.Rewards[i].Items[1]
                }), o.ItemComponent.SetCountFontSize(28, 130);
                var a = this._playersDic[r];
                o.Name.string = a.Name, o.Header.SetUI(a.HeadIcon, a.HeadFrame)
            }, t.prototype.OnClickItem = function(e, t) {
                for (var n in this.RewardAsyncLayout.node.children.includes(t) && t.getComponent(h.ItemComponent).ShowItemTip(), this._playerInfoItemDic) {
                    var o = this._playerInfoItemDic[n];
                    o.ItemComponent.node == t && o.ItemComponent.ShowItemTip()
                }
            }, t.prototype.OnClickPlayerItem = function(e) {
                var t = parseInt(e.node.name),
                    n = parseInt(this._receiversIds[t]);
                this._playersDic[this._receiversIds[t]], n <= 0 ? v.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale()) : n != I.DataCenter.Instance.Uid && f.UIManager.Instance.ShowUIPanel(y.PanelConfig.PlayerInfoPanel.Path, n, I.DataCenter.Zone)
            }, t.prototype.PlayOpenEffect = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return void 0 !== this._skeletonData ? [3, 2] : (this._skeletonData = null, e = this, [4, this.LoadDynamicAsset("AllianceRedPacketPanel/Spine/UI_effect_zhanlipin", sp.SkeletonData)]);
                            case 1:
                                return e._skeletonData = t.sent(), this.isValid ? (this.Spine.skeletonData = this._skeletonData, this.Spine.setAnimation(0, "Ani_UI_effect_zhanlipin", !1), [3, 3]) : (f.AssetsManager.Instance.UnloadAsset(this._skeletonData), this._skeletonData = void 0, [2]);
                            case 2:
                                this._skeletonData && this.Spine.setAnimation(0, "Ani_UI_effect_zhanlipin", !1), t.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, i([w(cc.Node)], t.prototype, "OpenTitle", void 0), i([w(cc.Node)], t.prototype, "ViewTitle", void 0), i([w(C.default)], t.prototype, "Mask", void 0), i([w(cc.Node)], t.prototype, "BgNode", void 0), i([w(cc.Node)], t.prototype, "HeadPos", void 0), i([w(cc.Label)], t.prototype, "PlayerName", void 0), i([w(cc.Label)], t.prototype, "Desc", void 0), i([w(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([w(p.default)], t.prototype, "RewardAsyncLayout", void 0), i([w(cc.Label)], t.prototype, "GetCount", void 0), i([w(cc.ScrollView)], t.prototype, "PlayerScrollView", void 0), i([w(p.default)], t.prototype, "PlayerAsyncLayout", void 0), i([w(cc.Node)], t.prototype, "PlayerPrefab", void 0), i([w(sp.Skeleton)], t.prototype, "Spine", void 0), i([w(cc.Label)], t.prototype, "EmptyReward", void 0), i([S], t)
        }(f.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/Mask": "Mask",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllianceRedPacketItem1: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "da5bdOjdU1DzrrX6pgLXC7f", "AllianceRedPacketItem1");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/LoadAssetHelper"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Name = null, t.SendBtn = null, t.SendBtnLabel = null, t.Condition = null, t.LoadAssetHelper = null, t._data = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.SendBtnLabel.string = "chatting_sendBtn".ToUILocale()
                }, t.prototype.Init = function(e, t, n, o) {
                    this._data = e, this.Condition.string = e.Type.ToAllianceRedPacketDesc(), this.Condition.node.parent.active = "" != this.Condition.string, this.SendBtn.active = !!t, n ? (this.Name.node.parent.active = !0, this.Name.string = e.Type.ToItemName()) : this.Name.node.parent.active = !1, this.SetIcon(o)
                }, t.prototype.SetIcon = function(e) {
                    var t = l.ConfigDataComponent.Instance.GetConfigById(s.AllianceRedPacket_Config, this._data.Type);
                    e ? this.LoadAssetHelper.LoadSpriteFrame("AllianceRedPacketPanel/PNG/Icon/" + t.Icon + "_1", this.Icon) : this.LoadAssetHelper.LoadSpriteFrame("AllianceRedPacketPanel/PNG/Icon/" + t.Icon + "_0", this.Icon)
                }, i([p(cc.Sprite)], t.prototype, "Icon", void 0), i([p(cc.Label)], t.prototype, "Name", void 0), i([p(cc.Node)], t.prototype, "SendBtn", void 0), i([p(cc.Label)], t.prototype, "SendBtnLabel", void 0), i([p(cc.Label)], t.prototype, "Condition", void 0), i([p(a.default)], t.prototype, "LoadAssetHelper", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "../Components/LoadAssetHelper": "LoadAssetHelper"
    }],
    AllianceRedPacketItem2: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4e57d3S7NZBwLoiEY+7J6x4", "AllianceRedPacketItem2");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/LoadAssetHelper"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("./AllianceRedPacketInfoPanel"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Name = null, t.GetBtn = null, t.GetBtnLabel = null, t.ViewBtn = null, t.ViewBtnLabel = null, t.Condition = null, t.GotFlag = null, t.GotFlagLabel = null, t.LoadAssetHelper = null, t._data = null, t._getCallback = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.GetBtn.on("click", this.OnGetBtnClick, this), this.GetBtnLabel.string = "GiftCode_receive".ToUILocale(), this.ViewBtn.on("click", this.OnViewBtnClick, this), this.ViewBtnLabel.string = "allianceBase_inspect".ToUILocale(), this.GotFlagLabel.string = "allianceRedPacketPanel_got".ToUILocale()
                }, t.prototype.Init = function(e, t, n) {
                    this._data = e, this._getCallback = n, this.Condition.string = e.Type.ToAllianceRedPacketDesc(), this.Condition.node.parent.active = "" != this.Condition.string, this.Name.string = e.Type.ToItemName(), this.SetIcon(t), t ? (this.GotFlag.active = !0, this.GetBtn.active = !1, this.ViewBtn.active = !0) : (this.GotFlag.active = !1, this.GetBtn.active = !0, this.ViewBtn.active = !1)
                }, t.prototype.SetIcon = function(e) {
                    var t = l.ConfigDataComponent.Instance.GetConfigById(s.AllianceRedPacket_Config, this._data.Type);
                    e ? this.LoadAssetHelper.LoadSpriteFrame("AllianceRedPacketPanel/PNG/Icon/" + t.Icon + "_1", this.Icon) : this.LoadAssetHelper.LoadSpriteFrame("AllianceRedPacketPanel/PNG/Icon/" + t.Icon + "_0", this.Icon)
                }, t.prototype.OnGetBtnClick = function(e) {
                    this._getCallback(e)
                }, t.prototype.OnViewBtnClick = function() {
                    var e = this,
                        t = new c.Req_Alliance_GetRedPacketInfo;
                    t.RedPacketId = this._data._id, l.RpcComponent.Instance.Call(t, function(t) {
                        e._data.Receivers = t.RedPacket.Receivers, u.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceRedPacketInfoPanel.Path, t.RedPacket, d.AllianceRedPacketOpenMode.View, t.Players)
                    })
                }, i([y(cc.Sprite)], t.prototype, "Icon", void 0), i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Node)], t.prototype, "GetBtn", void 0), i([y(cc.Label)], t.prototype, "GetBtnLabel", void 0), i([y(cc.Node)], t.prototype, "ViewBtn", void 0), i([y(cc.Label)], t.prototype, "ViewBtnLabel", void 0), i([y(cc.Label)], t.prototype, "Condition", void 0), i([y(cc.Node)], t.prototype, "GotFlag", void 0), i([y(cc.Label)], t.prototype, "GotFlagLabel", void 0), i([y(a.default)], t.prototype, "LoadAssetHelper", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./AllianceRedPacketInfoPanel": "AllianceRedPacketInfoPanel"
    }],
    AllianceRedPacketPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "21f2cZu7YJDwJGn6Dkq7p5o", "AllianceRedPacketPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s, l = e("../../../EZFramework/UIFrame/UIPanelType"),
            c = e("../../../EZFramework/EZDefine/SysDefine"),
            u = e("../../../Util/AppUtil"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/RpcComponent"),
            y = e("../Components/CustomToggle"),
            g = e("../../Components/DataCenter"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("../../../EZFramework/UIFrame/UIManager"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../Auxiliary/GlobalDefine"),
            S = e("../../../Consts/Consts"),
            w = e("../../../EZFramework/EZFramework"),
            P = e("../Components/AsyncLayout"),
            A = e("./AllianceRedPacketItem1"),
            T = e("./AllianceRedPacketItem2"),
            R = e("./AllianceRedPacketInfoPanel"),
            L = e("../Components/GameModuleGuideManager"),
            k = cc._decorator,
            O = k.ccclass,
            M = k.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.My = 1] = "My", e[e.Advance = 2] = "Advance"
        })(a || (a = {})),
        function(e) {
            e[e.Normal = 0] = "Normal", e[e.Auto = 1] = "Auto"
        }(s || (s = {}));
        var D = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new l.UIPanelType(c.UINodeType.Fixed), t.TabToggles = [], t.Group1 = null, t.ScrollView1 = null, t.AsyncLayout1 = null, t.Empty1 = null, t.Jump1 = null, t.GotCount = null, t.AutoGetButton = null, t.AutoGetLabel = null, t.AutoGetGrayButton = null, t.AutoGetGrayLabel = null, t.Group2 = null, t.ScrollView2 = null, t.AsyncLayout2 = null, t.Tip2 = null, t.Empty2 = null, t.Jump2 = null, t.Group3 = null, t.ScrollView3 = null, t.AsyncLayout3 = null, t.Tip3 = null, t.Empty3 = null, t.Jump3 = null, t.BtnReturn = null, t.AllianceRedPacketItem1Prefab = null, t.AllianceRedPacketItem2Prefab = null, t._tabKeys = ["allianceRedPacketPanel_tab0", "allianceRedPacketPanel_tab1", "allianceRedPacketPanel_tab2"], t._normalListDataDic = {}, t._autoOpenIndex = 0, t._autoOpenRewardDic = {}, t._moduleGuidGroupIds = [10008, 10009], t._guideSendStepIndex = 0, t._guideGetStepIndex = 0, t._guideGroupId = 0, t._paramsTab = 0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                _.Game.EventDispatcher.On(C.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuide, this)
            }, t.prototype.onDisable = function() {
                _.Game.EventDispatcher.Off(C.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuide, this)
            }, t.prototype.InitUI = function() {
                for (var e = 0; e < this.TabToggles.length; e++) this.TabToggles[e].Init(this._tabKeys[e].ToUILocale()), this.TabToggles[e].node.on("toggle", this.OnTabToggleClick, this);
                this.AsyncLayout1.Init(this.AllianceRedPacketItem1Prefab, this.OnInitializeItem1.bind(this)), this.AsyncLayout2.Init(this.AllianceRedPacketItem1Prefab, this.OnInitializeItem2.bind(this)), this.AsyncLayout3.Init(this.AllianceRedPacketItem2Prefab, this.OnInitializeItem3.bind(this)), this.Tip2.string = "allianceRedPacketPanel_tip2".ToUILocale(), this.Tip3.string = "allianceRedPacketPanel_tip3".ToUILocale(), this.AutoGetLabel.string = "StrongholdWar_GetBtn".ToUILocale(), this.AutoGetGrayLabel.string = "StrongholdWar_GetBtn".ToUILocale(), this.Empty1.string = "allianceRedPacketPanel_empty1".ToUILocale(), this.Empty2.string = "allianceRedPacketPanel_empty2".ToUILocale(), this.Empty3.string = "allianceRedPacketPanel_empty3".ToUILocale(), this.Jump1.string = "goAndGet".ToUILocale(), this.Jump2.string = "goAndGet".ToUILocale(), this.Jump3.string = "goAndGet".ToUILocale(), this.Jump1.node.parent.on("click", this.OnJumpClick, this), this.Jump2.node.parent.on("click", this.OnJumpClick, this), this.Jump3.node.parent.on("click", this.OnJumpClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.AutoGetButton.node.on("click", this.OnAutoGetClick, this), this.AutoGetGrayButton.node.on("click", this.OnAutoGetClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._paramsTab = t[0]
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this), t || (this._getLimitCount = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceRedPacketOpenCountLimit"), this.SetGotCount(), null != this._paramsTab ? (this.TabToggles[this._paramsTab].isChecked = !0, this.SetTab(this._paramsTab), this._paramsTab = null) : (this.TabToggles[a.Normal].isChecked = !0, this.SetTab(a.Normal)), this.BindRedDot())
            }, t.prototype.BindRedDot = function() {
                v.RedDotManager.Instance.Bind(this.TabToggles[a.Normal].node, v.RedDotManager.Instance.RedDot.AllianceRedPacketNormal), v.RedDotManager.Instance.Bind(this.TabToggles[a.My].node, v.RedDotManager.Instance.RedDot.AllianceRedPacketSend), v.RedDotManager.Instance.Bind(this.TabToggles[a.Advance].node, v.RedDotManager.Instance.RedDot.AllianceRedPacketAdvance)
            }, t.prototype.SetGotCount = function() {
                this._gotCount = g.DataCenter.Instance.GetIntData(S.UserDataKey.AllianceRedPacketOpenCount), this.GotCount.string = "allianceRedPacketPanel_getCount".ToUILocale().Fmt(this._gotCount, this._getLimitCount);
                var e = this._getLimitCount - this._gotCount;
                this.AutoGetButton.node.active = e > 0, this.AutoGetGrayButton.node.active = e <= 0
            }, t.prototype.OnTabToggleClick = function(e) {
                var t = u.AppUtil.ToInt(e.name);
                if (this._currentTab != t) {
                    switch (this._currentTab) {
                        case a.Normal:
                            this._guideGroupId && L.default.Instance.ReMoveFinger(this._guideGetNode, !1);
                            break;
                        case a.My:
                            this._guideGroupId && L.default.Instance.ReMoveFinger(this._guideSendNode, !1)
                    }
                    this.SetTab(t)
                }
            }, t.prototype.SetTab = function(e) {
                var t = this;
                switch (this._currentTab = e, this._currentTab) {
                    case a.Normal:
                        (n = new m.Req_Alliance_GetRedPacketList).Type = S.AllianceRedPacket.Normal, f.RpcComponent.Instance.Call(n, function(e) {
                            t.RefreshNormalDatas(e.RedPackets), t.RefreshContent()
                        });
                        break;
                    case a.My:
                        var n = new m.Req_Alliance_GetMyRedPackets;
                        f.RpcComponent.Instance.Call(n, function(e) {
                            t._myListData = e.RedPacket, t._myListData.sort(t.SortMyListData.bind(t)), t.RefreshContent()
                        });
                        break;
                    case a.Advance:
                        (n = new m.Req_Alliance_GetRedPacketList).Type = S.AllianceRedPacket.Higher, f.RpcComponent.Instance.Call(n, function(e) {
                            t._advancedListData = e.RedPackets, t._advancedListData.sort(t.SortList.bind(t)), t.RefreshContent()
                        })
                }
            }, t.prototype.RefreshNormalDatas = function(e) {
                this._normalListData = e, this._normalListData.sort(this.SortList.bind(this)), this._normalListDataDic = {};
                for (var t = 0; t < this._normalListData.length; t++) {
                    var n = this._normalListData[t];
                    this._normalListDataDic[n._id] = n
                }
            }, t.prototype.SortMyListData = function(e, t) {
                return t.Ts - e.Ts
            }, t.prototype.SortList = function(e, t) {
                var n = this.IsGot(e);
                if (n != this.IsGot(t)) return n ? 1 : -1;
                var o = d.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, e.Type),
                    r = d.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, t.Type);
                return o.Quality != r.Quality ? r.Quality - o.Quality : t.Ts - e.Ts
            }, t.prototype.IsGot = function(e) {
                var t = d.ConfigDataComponent.Instance.GetConfigById(h.AllianceRedPacket_Config, e.Type),
                    n = Object.keys(e.Receivers);
                return !!n.includes(g.DataCenter.Instance.Uid.toString()) || t.Rewards.length <= n.length
            }, t.prototype.RefreshContent = function() {
                this.ShowGameGuide();
                var e, t = 0;
                switch (this._currentTab) {
                    case a.Normal:
                        this.Group1.active = !0, this.Group2.active = !1, this.Group3.active = !1, t = this._normalListData.length, e = this.AsyncLayout1, this.Empty1.node.active = 0 == t, this.Jump1.node.parent.active = 0 == t;
                        break;
                    case a.My:
                        this.Group1.active = !1, this.Group2.active = !0, this.Group3.active = !1, t = this._myListData.length, e = this.AsyncLayout2, this.Empty2.node.active = 0 == t, this.Jump2.node.parent.active = 0 == t;
                        break;
                    case a.Advance:
                        this.Group1.active = !1, this.Group2.active = !1, this.Group3.active = !0, t = this._advancedListData.length, e = this.AsyncLayout3, this.Empty3.node.active = 0 == t, this.Jump3.node.parent.active = 0 == t
                }
                this._guideGroupId ? e.RenderLayout(t, 0, !0) : e.RenderLayout(t)
            }, t.prototype.OnInitializeItem1 = function(e, t) {
                var n = e.getComponent(A.default),
                    o = this._normalListData[t];
                n.Init(o, !1, !0, this.IsGot(o)), n.node.name = t.toString(), n.node.on("click", this.OnClickItem, this)
            }, t.prototype.OnClickItem = function(e) {
                var t = this,
                    n = this._normalListData[parseInt(e.node.name)];
                if (this.IsGot(n))(o = new m.Req_Alliance_GetRedPacketInfo).RedPacketId = n._id, f.RpcComponent.Instance.Call(o, function(e) {
                    n.Receivers = e.RedPacket.Receivers, _.UIManager.Instance.ShowUIPanel(b.PanelConfig.AllianceRedPacketInfoPanel.Path, e.RedPacket, R.AllianceRedPacketOpenMode.View, e.Players)
                });
                else {
                    if (this._gotCount >= this._getLimitCount) return void p.UIUtlity.ShowFloatingHint("allianceRedPacketPanel_getCountLimit".ToUILocale());
                    var o;
                    (o = new m.Req_Alliance_OpenRedPacket).OpenType = s.Normal, o.RedPacketIds = [n._id], f.RpcComponent.Instance.Call(o, function(e) {
                        n.Receivers = e.RedPackets[0].Receivers, t.SetGotCount(), t.AsyncLayout1.ReRender(), _.UIManager.Instance.ShowUIPanel(b.PanelConfig.AllianceRedPacketInfoPanel.Path, e.RedPackets[0], R.AllianceRedPacketOpenMode.Open, e.Players), t._guideGroupId && (t.AddGuideIndex(), L.default.Instance.ReMoveFinger(t._guideGetNode, !0))
                    }, null, this._guideGroupId)
                }
            }, t.prototype.OnInitializeItem2 = function(e, t) {
                var n = e.getComponent(A.default);
                n.Init(this._myListData[t], !0, !1, !1), n.SendBtn.name = t.toString(), n.SendBtn.on("click", this.OnClickSendBtn, this), n.node.name = t.toString(), n.node.on("click", this.OnClickItem2, this)
            }, t.prototype.OnClickItem2 = function(e) {
                var t = u.AppUtil.ToInt(e.node.name),
                    n = this._myListData[t];
                I.UIManager.Instance.ShowUIPanel(b.PanelConfig.AllianceRedPacketTip.Path, n.Type)
            }, t.prototype.OnClickSendBtn = function(e) {
                var t = this,
                    n = u.AppUtil.ToInt(e.node.name),
                    o = this._myListData[n],
                    r = new m.Req_Alliance_SendRedPacket;
                r.Ids = [o._id], f.RpcComponent.Instance.Call(r, function() {
                    t._myListData.splice(n, 1), t.AsyncLayout2.RenderLayout(t._myListData.length, Math.floor((n - 1) / 3)), p.UIUtlity.ShowFloatingHint("allianceRedPacketPanel_sendSuccess".ToUILocale()), t._guideGroupId && (t.AddGuideIndex(), L.default.Instance.ReMoveFinger(t._guideSendNode, !0))
                }, null, this._guideGroupId)
            }, t.prototype.OnInitializeItem3 = function(e, t) {
                var n = e.getComponent(T.default),
                    o = this._advancedListData[t];
                n.Init(o, this.IsGot(o), this.GetCallBack.bind(this)), n.GetBtn.name = t.toString()
            }, t.prototype.GetCallBack = function(e) {
                var t = this,
                    n = parseInt(e.node.name),
                    o = this._advancedListData[n],
                    r = new m.Req_Alliance_OpenRedPacket;
                r.OpenType = s.Normal, r.RedPacketIds = [o._id], f.RpcComponent.Instance.Call(r, function(e) {
                    o.Receivers = e.RedPackets[0].Receivers, t.AsyncLayout3.ReRender(), _.UIManager.Instance.ShowUIPanel(b.PanelConfig.AllianceRedPacketInfoPanel.Path, e.RedPackets[0], R.AllianceRedPacketOpenMode.Open, e.Players)
                })
            }, t.prototype.OnBtnReturnClick = function() {
                I.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnAutoGetClick = function() {
                if (this._autoOpenIndex = 0, this._autoOpenIds = [], this._autoOpenRewards = [], 0 != this._getLimitCount - this._gotCount) {
                    for (var e = this._autoOpenIndex; e < this._normalListData.length; e++) {
                        var t = this._normalListData[e];
                        this.IsGot(t) || this._autoOpenIds.push(t._id)
                    }
                    0 != this._autoOpenIds.length ? this.AutoGet() : p.UIUtlity.ShowFloatingHint("allianceRedPacketPanel_empty1".ToUILocale())
                } else p.UIUtlity.ShowFloatingHint("allianceRedPacketPanel_getCountLimit".ToUILocale())
            }, t.prototype.AutoGet = function() {
                var e = this,
                    t = new m.Req_Alliance_OpenRedPacket;
                t.RedPacketIds = this._autoOpenIds, t.OpenType = s.Auto, f.RpcComponent.Instance.Call(t, function(t) {
                    e._autoOpenResult = t, e._autoOpenRewardDic = {};
                    for (var n = 0; n < e._autoOpenResult.Rewards.length; n++) {
                        var o = e._autoOpenResult.Rewards[n];
                        o.Items.length > 1 && (e._autoOpenRewardDic[o.Items[0]] = o.Items)
                    }
                    for (e.RefreshNormalDatas(t.RedPackets), e.RefreshContent(), e._needShowOpenIds = [], n = 0; n < e._autoOpenIds.length; n++) {
                        var r = e._autoOpenIds[n];
                        null != e._autoOpenRewardDic[r] && e._needShowOpenIds.push(r)
                    }
                    0 == e._needShowOpenIds.length && e._needShowOpenIds.push(e._autoOpenIds[e._autoOpenIds.length - 1]), e.ShowGetRedPackets(), e.SetGotCount(), e.AsyncLayout1.RenderLayout(e._normalListData.length, 0, !0)
                })
            }, t.prototype.ShowGetRedPackets = function() {
                if (this._autoOpenIndex < this._needShowOpenIds.length) {
                    var e = this._needShowOpenIds[this._autoOpenIndex],
                        t = R.AllianceRedPacketOpenMode.AutoOpen,
                        n = this._autoOpenRewardDic[e];
                    this._autoOpenIndex++;
                    var o = null != n;
                    if (o && this._autoOpenRewards.push({
                            ItemId: n[1],
                            Count: n[2]
                        }), this._needShowOpenIds.length == this._autoOpenIndex)
                        if (0 == this._autoOpenRewards.length) t = R.AllianceRedPacketOpenMode.Open;
                        else {
                            if (!o) return void this.ShowGetRedPackets();
                            t = R.AllianceRedPacketOpenMode.AutoOpenEnd
                        }
                    else {
                        if (!o) return void this.ShowGetRedPackets();
                        t = R.AllianceRedPacketOpenMode.AutoOpen
                    }
                    I.UIManager.Instance.ShowUIPanel(b.PanelConfig.AllianceRedPacketInfoPanel.Path, this._normalListDataDic[e], t, this._autoOpenResult.Players, this.ShowGetRedPackets.bind(this))
                } else I.UIManager.Instance.ShowUIPanel(b.PanelConfig.BattleDisplayRewardsPanel.Path, this._autoOpenRewards, "allianceRedPacketPanel_autoOpenEnd".ToUILocale().Fmt(this._autoOpenIndex))
            }, t.prototype.GetGuideIndex = function() {
                switch (this._currentTab) {
                    case a.Normal:
                        return this._guideGetStepIndex;
                    case a.My:
                        return this._guideSendStepIndex
                }
                return 0
            }, t.prototype.AddGuideIndex = function() {
                switch (this._currentTab) {
                    case a.Normal:
                        return this._guideGetStepIndex++;
                    case a.My:
                        return this._guideSendStepIndex++
                }
            }, t.prototype.ShowGameGuide = function() {
                var e = this.GetCanTriggerGuideGroupId();
                if (e) {
                    var t = L.default.Instance.GetCurrentGroupId([e]);
                    if (t <= 0) this._guideGroupId = null;
                    else {
                        this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t);
                        var n = d.ConfigDataComponent.Instance.GetConfigById(h.GameModuleGuideGroup_Config, this._guideGroupId);
                        if (n) switch (n.GameModuleGuideStepIds[this.GetGuideIndex()]) {
                            case 29:
                            case 30:
                                L.default.Instance.DoGuideJob(this._guideGroupId, this.GetGuideIndex()), this.AddGuideIndex();
                                break;
                            case 28:
                                for (var o = null, r = this.AsyncLayout1.node.children, i = 0; i < r.length; i++)
                                    if ((s = r[i]).active) {
                                        o = s;
                                        break
                                    } var a = o.getComponent(A.default);
                                this._guideGetNode = a.node, L.default.Instance.DoGuideJob(this._guideGroupId, this.GetGuideIndex(), a.node, !0);
                                break;
                            case 31:
                                for (o = null, r = this.AsyncLayout2.node.children, i = 0; i < r.length; i++) {
                                    var s;
                                    if ((s = r[i]).active) {
                                        o = s;
                                        break
                                    }
                                }
                                a = o.getComponent(A.default), this._guideSendNode = a.SendBtn, L.default.Instance.DoGuideJob(this._guideGroupId, this.GetGuideIndex(), a.SendBtn, !0)
                        }
                    }
                } else this._guideGroupId = null
            }, t.prototype.GetCanTriggerGuideGroupId = function() {
                switch (this._currentTab) {
                    case a.Normal:
                        return 10009;
                    case a.My:
                        return 10008
                }
                return 0
            }, t.prototype.OnJumpClick = function() {
                I.UIManager.Instance.ShowUIPanel(b.PanelConfig.ItemGetWayPanel.Path, S.CommonItemId.AllianceRedPacket)
            }, i([M(y.default)], t.prototype, "TabToggles", void 0), i([M(cc.Node)], t.prototype, "Group1", void 0), i([M(cc.ScrollView)], t.prototype, "ScrollView1", void 0), i([M(P.default)], t.prototype, "AsyncLayout1", void 0), i([M(cc.Label)], t.prototype, "Empty1", void 0), i([M(cc.Label)], t.prototype, "Jump1", void 0), i([M(cc.Label)], t.prototype, "GotCount", void 0), i([M(cc.Button)], t.prototype, "AutoGetButton", void 0), i([M(cc.Label)], t.prototype, "AutoGetLabel", void 0), i([M(cc.Button)], t.prototype, "AutoGetGrayButton", void 0), i([M(cc.Label)], t.prototype, "AutoGetGrayLabel", void 0), i([M(cc.Node)], t.prototype, "Group2", void 0), i([M(cc.ScrollView)], t.prototype, "ScrollView2", void 0), i([M(P.default)], t.prototype, "AsyncLayout2", void 0), i([M(cc.Label)], t.prototype, "Tip2", void 0), i([M(cc.Label)], t.prototype, "Empty2", void 0), i([M(cc.Label)], t.prototype, "Jump2", void 0), i([M(cc.Node)], t.prototype, "Group3", void 0), i([M(cc.ScrollView)], t.prototype, "ScrollView3", void 0), i([M(P.default)], t.prototype, "AsyncLayout3", void 0), i([M(cc.Label)], t.prototype, "Tip3", void 0), i([M(cc.Label)], t.prototype, "Empty3", void 0), i([M(cc.Label)], t.prototype, "Jump3", void 0), i([M(cc.Button)], t.prototype, "BtnReturn", void 0), i([M(cc.Node)], t.prototype, "AllianceRedPacketItem1Prefab", void 0), i([M(cc.Node)], t.prototype, "AllianceRedPacketItem2Prefab", void 0), i([O], t)
        }(w.BaseUIFullScreenPanel);
        n.default = D, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "./AllianceRedPacketInfoPanel": "AllianceRedPacketInfoPanel",
        "./AllianceRedPacketItem1": "AllianceRedPacketItem1",
        "./AllianceRedPacketItem2": "AllianceRedPacketItem2"
    }],
    AllianceRedPacketTip: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06f8dNBKupCWrLlNQ0geRqo", "AllianceRedPacketTip");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/UIPanelType"),
            c = e("../../../EZFramework/EZDefine/SysDefine"),
            u = e("../../Components/ConfigData/ConfigDataComponent"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../EZFramework/UIFrame/UIManager"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/AsyncLayout"),
            m = e("../Components/ItemComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(c.UINodeType.PopUp, !1), t.ItemPos = null, t.Name = null, t.Desc = null, t.ItemGetWayLabel = null, t.ItemGetWayButton = null, t.DescText = null, t.Tip = null, t.ScrollView = null, t.AsyncLayout = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    h.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    h.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.AsyncLayout.Init(this._itemPrefab, this.OnInitializeItem.bind(this)), this.ItemGetWayButton.node.on("click", this.OnItemGetWayButtonClick, this), this.DescText.string = "itemDesc".ToUILocale(), this.ItemGetWayLabel.string = "CollectionPavilion_Btn_get".ToUILocale(), this._itemComponent = cc.instantiate(this._itemPrefab).getComponent(m.ItemComponent), this._itemComponent.node.parent = this.ItemPos
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._itemId = t[0], this._redPacketConfig = u.ConfigDataComponent.Instance.GetConfigById(p.AllianceRedPacket_Config, this._itemId)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.Name.string = this._itemId.ToItemName(), this.Desc.string = this._itemId.ToAllianceRedPacketDesc(), this.Tip.string = this._itemId.ToItemDesc(), this.AsyncLayout.RenderLayout(this._redPacketConfig.Rewards.length), this._itemComponent.Init({
                        ItemId: this._itemId
                    })
                }, t.prototype.OnInitializeItem = function(e, t) {
                    e.getComponent(m.ItemComponent).Init({
                        ItemId: this._redPacketConfig.Rewards[t].Items[0],
                        Count: this._redPacketConfig.Rewards[t].Items[1]
                    })
                }, t.prototype.OnItemGetWayButtonClick = function() {
                    d.UIManager.Instance.ShowUIPanel(y.PanelConfig.ItemGetWayPanel.Path, this._itemId)
                }, t.prototype.OnClickItem = function(e, t) {
                    this.AsyncLayout.node.children.includes(t) && t.getComponent(m.ItemComponent).ShowItemTip()
                }, i([C(cc.Node)], t.prototype, "ItemPos", void 0), i([C(cc.Label)], t.prototype, "Name", void 0), i([C(cc.Label)], t.prototype, "Desc", void 0), i([C(cc.Label)], t.prototype, "ItemGetWayLabel", void 0), i([C(cc.Button)], t.prototype, "ItemGetWayButton", void 0), i([C(cc.Label)], t.prototype, "DescText", void 0), i([C(cc.Label)], t.prototype, "Tip", void 0), i([C(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([C(g.default)], t.prototype, "AsyncLayout", void 0), i([_], t)
            }(h.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllianceResetHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7e52dQzBDRICK/0yoX1mJxx", "AllianceResetHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ItemComponent"),
            g = e("../../Components/DataCenter"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Components/RpcComponent"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../Auxiliary/DataUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1), t.Tittle = null, t.FunctionTag = null, t.MaterialLayout = null, t.CostIcon = null, t.CostCount = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t.ATTR_COUNT = 6, t._commonItemPrefab = null, t._itemArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.MaterialLayout.node.children.indexOf(t) && m.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._commonItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(f.BundlePath.ItemComponent)]);
                                case 1:
                                    t._commonItemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "hint".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnCancel.node.on("click", this.Close, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._currElement = t[0]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadGlobalSetting()
                }, t.prototype.LoadGlobalSetting = function() {
                    this._allianceTalentResetCoinReturnRate = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceTalentResetCoinReturnRate"), this._allianceTalentResetCostDiamond = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceTalentResetCostDiamond"), this._allianceTalentResetMedalReturnRate = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceTalentResetMedalReturnRate")
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetCostInfo(), this.SetFunctionTag(), this.LoadMaterialItem()
                }, t.prototype.SetCostInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = C.default.Instance.GetItemPathById(h.CommonItemId.Diamond), t = this.CostIcon, [4, this.LoadDynamicAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t.spriteFrame = n.sent(), this.CostCount.string = this._allianceTalentResetCostDiamond.toString(), [2]
                            }
                        })
                    })
                }, t.prototype.SetFunctionTag = function() {
                    var e = "allianceTalent_reset_tag".ToUILocale(),
                        t = h.CommonItemId.Diamond.ToItemName(),
                        n = this._allianceTalentResetCostDiamond,
                        o = this._currElement.ToHeroElementName(),
                        r = 100 * this._allianceTalentResetCoinReturnRate,
                        i = h.CommonItemId.Coin.ToItemName(),
                        a = 100 * this._allianceTalentResetMedalReturnRate,
                        s = h.CommonItemId.AllianceMedal.ToItemName(),
                        l = e.Fmt(t, n, o, r, i, a, s);
                    this.FunctionTag.string = l
                }, t.prototype.LoadMaterialItem = function() {
                    for (var e = 0; e < 2; e++)
                        if (null == this._itemArray[e]) {
                            var t = cc.instantiate(this._commonItemPrefab).getComponent(y.ItemComponent);
                            t.node.parent = this.MaterialLayout.node, this._itemArray[e] = t
                        } var n = g.DataCenter.Instance.GetIntData(this._currElement + 1e3),
                        o = 0,
                        r = 0;
                    for (e = 1; e <= n; e++) {
                        var i = d.ConfigDataComponent.Instance.GetConfigById(u.AllianceTalentLevel_Config, e);
                        o += i.ElementNodeCostCoin, r += i.ElementNodeCostMedal
                    }
                    var a = this._allianceTalentResetCoinReturnRate,
                        s = this._allianceTalentResetMedalReturnRate;
                    o = Math.floor(o * a), r = Math.floor(r * s), this._itemArray[0].node.name = h.CommonItemId.Coin.toString(), this._itemArray[1].node.name = h.CommonItemId.AllianceMedal.toString(), this._itemArray[0].Init({
                        ItemId: h.CommonItemId.Coin,
                        Count: o
                    }, y.ItemComponentType.ItemCommon), this._itemArray[1].Init({
                        ItemId: h.CommonItemId.AllianceMedal,
                        Count: r
                    }, y.ItemComponentType.ItemCommon)
                }, t.prototype.OnBtnSureClick = function() {
                    g.DataCenter.Instance.IsItemEnough(h.CommonItemId.Diamond, this._allianceTalentResetCostDiamond) ? this.RequestReset() : m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(h.CommonItemId.Diamond.ToItemName()))
                }, t.prototype.RequestReset = function() {
                    var e = new p.Req_Alliance_ResetTalent;
                    e.Type = this._currElement, I.RpcComponent.Instance.Call(e, this.ResponseResetSuccess.bind(this))
                }, t.prototype.ResponseResetSuccess = function(e) {
                    e.Rewards.length > 0 && m.UIUtlity.ShwDisplayRewardPanel(e.Rewards), m.UIUtlity.ShowFloatingHint("alliance_rest_hint".ToUILocale()), this.Close()
                }, i([S(cc.Label)], t.prototype, "Tittle", void 0), i([S(cc.RichText)], t.prototype, "FunctionTag", void 0), i([S(cc.Layout)], t.prototype, "MaterialLayout", void 0), i([S(cc.Sprite)], t.prototype, "CostIcon", void 0), i([S(cc.Label)], t.prototype, "CostCount", void 0), i([S(cc.Button)], t.prototype, "BtnCancel", void 0), i([S(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([S(cc.Button)], t.prototype, "BtnSure", void 0), i([S(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllianceSetupPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5adekEDN5H8blHvOjGBYx1", "AllianceSetupPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../../GamePlay/Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("./AllianceCommonDefines"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../../Channel/ChannelManager"),
            v = e("../Components/CurrencyBarItem"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.pTitleText = null, t.pNameTitleText = null, t.pApplicationTitleText = null, t.pPowerTitleText = null, t.pLevelTitleText = null, t.pChangeFlagText = null, t.pDefaultSloganText = null, t.pCancelButtonText = null, t.pCreateButtonText = null, t.pModifyButtonText = null, t.pTipsText = null, t.pCancelButton = null, t.CurrencyBarItem = null, t.BtnAdd = null, t.pCreateButton = null, t.pModifyButton = null, t.pChangeFlagButton = null, t.pFlagBg = null, t.pFlagFg = null, t.pNameText = null, t.pNameEditButton = null, t.pApplicationBtnPrev = null, t.pApplicationBtnNext = null, t.pApplicationText = null, t.pPowerBtnPrev = null, t.pPowerBtnNext = null, t.pPowerText = null, t.pLevelBtnPrev = null, t.pLevelBtnNext = null, t.pLevelText = null, t.pSloganEditorBoxTitle = null, t.pSloganEditorBox = null, t.applicationTextsKeys = [], t.panelMode = m.AllianceSetupPanelMode.Creating, t.panelBefore = null, t.applicationModeIndex = 0, t.levelOptionsIndex = 0, t.powerOptionsIndex = 0, t.flagItemID = 1, t.flagLogoID = 1, t.flagBgID = 1, t.allianceName = "", t.allianceSlogan = "", t
                }
                return r(t, e), t.prototype.InitNodesAndComponents = function() {}, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas)];
                                case 1:
                                    return t._mainAtlas = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(d.GameEventIds.SpecialRedDotChange.Fmt(d.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(d.GameEventIds.SpecialRedDotChange.Fmt(d.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.SetAllianceCityWarEntry = function() {
                    p.DataCenter.Instance.GetSpecialRedDot(d.SpecialRedDotType.AllianceId) > 0 && l.UIManager.Instance.QuitPanelStack(this)
                }, t.prototype.DisPlay = function() {
                    l.EZLog.Debug("ok in AllianceSetupPanel DisPlay..."), e.prototype.DisPlay.call(this), this.node.active = !0, this.pCreateButton.node.active && (this.CurrencyBarItem.Init(I.CommonItemId.Diamond, !1, void 0, this.creatingCostDiamond), this.CurrencyBarItem.SetFixedWidth(239), this.CurrencyBarItem.SetClickCallBack(function() {
                        l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [d.MallPageType.DiamondShop, d.GiftPackType.BuyDiamond])
                    }))
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InitNodesAndComponents(), this.GetStaticConfig(), this.pCancelButton.node.on("click", this.LeavePanel.bind(this), this), this.pCreateButton.node.on("click", this.OnClickCreateButton.bind(this), this), this.pModifyButton.node.on("click", this.OnClickModifyButton.bind(this), this), this.pChangeFlagButton.node.on("click", this.OnClickChangeFlagButton.bind(this), this), this.pNameEditButton.node.on("click", this.OnClickNameEditButton.bind(this), this), this.pApplicationBtnPrev.node.on("click", this.OnClickApplicationBtnPrev.bind(this), this), this.pApplicationBtnNext.node.on("click", this.OnClickApplicationBtnNext.bind(this), this), this.pPowerBtnPrev.node.on("click", this.OnClickPowerBtnPrev.bind(this), this), this.pPowerBtnNext.node.on("click", this.OnClickPowerBtnNext.bind(this), this), this.pLevelBtnPrev.node.on("click", this.OnClickLevelBtnPrev.bind(this), this), this.pLevelBtnNext.node.on("click", this.OnClickLevelBtnNext.bind(this), this), this.BtnAdd.node.on("click", this.OnAdd, this), this.pNameTitleText.string = "allianceBase_creatingName".ToUILocale(), this.pApplicationTitleText.string = "allianceBase_creatingApp".ToUILocale(), this.pPowerTitleText.string = "allianceBase_creatingPower".ToUILocale(), this.pLevelTitleText.string = "allianceBase_creatingLevel".ToUILocale(), this.pChangeFlagText.string = "equip_change".ToUILocale(), this.pDefaultSloganText.string = "allianceBase_creatingDefaultSlogan".ToUILocale(), this.pCancelButtonText.string = "Answer_QuitNo".ToUILocale(), this.pCreateButtonText.string = "allianceBase_creating".ToUILocale(), this.pModifyButtonText.string = "allianceBase_modify".ToUILocale(), this.pTipsText.string = "allianceBase_creatingTip".ToUILocale(), this.pSloganEditorBoxTitle.string = "allianceBase_slogan".ToUILocale(), this.allianceSlogan = this.pDefaultSloganText.string;
                    var t = C.default.Instance.IsHighSchoolChannel();
                    this.pSloganEditorBox.textLabel.node.color = t ? new cc.Color(32, 36, 52) : new cc.Color(255, 255, 255), this.pLevelText.node.color = t ? new cc.Color(32, 36, 52) : new cc.Color(255, 255, 255), this.pPowerText.node.color = t ? new cc.Color(32, 36, 52) : new cc.Color(255, 255, 255), this.pApplicationText.node.color = t ? new cc.Color(32, 36, 52) : new cc.Color(255, 255, 255), this.pNameText.node.color = t ? new cc.Color(32, 36, 52) : new cc.Color(255, 255, 255)
                }, t.prototype.GetStaticConfig = function() {
                    this.applicationTextsKeys[0] = "allianceBase_applicationFreeJoinIn", this.applicationTextsKeys[1] = "allianceBase_applicationNeedToBeReviewed", this.levelOptions = h.ConfigDataComponent.Instance.GetConfigById(g.LevelParam_Config, I.LevelParamType.AllianceLevelRequirementOptions).Data, this.powerOptions = h.ConfigDataComponent.Instance.GetConfigById(g.LevelParam_Config, I.LevelParamType.AlliancePowerRequirementOptions).Data, this.creatingCostDiamond = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceCreateCostDiamond"), this.sloganMaxLength = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceNoticeMaxLength")
                }, t.prototype.LeavePanel = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.RefreshUI = function() {
                    this.SetName(), this.SetFlag(), this.pApplicationText.string = this.applicationTextsKeys[this.applicationModeIndex].ToUILocale(), this.pPowerText.string = this.powerOptions[this.powerOptionsIndex].toString(), this.pLevelText.string = this.levelOptions[this.levelOptionsIndex].toString(), this.pSloganEditorBox.string = this.allianceSlogan, h.DataCenter.Instance.GetItemCount(I.CommonItemId.Diamond), this.panelMode == m.AllianceSetupPanelMode.Creating ? (this.pTitleText.string = "allianceBase_creatingAlliance".ToUILocale(), this.pCreateButton.node.active = !0, this.pModifyButton.node.active = !1) : this.panelMode == m.AllianceSetupPanelMode.Modifying ? (this.pTitleText.string = "allianceBase_settingUpAlliance".ToUILocale(), this.pCreateButton.node.active = !1, this.pModifyButton.node.active = !0) : l.EZLog.Error("ok in AllianceSetupPanel.RefreshUI...wrong panel mode:" + this.panelMode)
                }, t.prototype.OnClickCreateButton = function() {
                    var e = this;
                    this.panelMode == m.AllianceSetupPanelMode.Creating && (this.creatingCostDiamond > h.DataCenter.Instance.GetItemCount(I.CommonItemId.Diamond) ? c.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [d.MallPageType.DiamondShop, d.GiftPackType.BuyDiamond]) : "" != this.allianceName ? f.UIUtlity.ShowHintPanel(null, "allianceBase_createAllianceCost".ToUILocale().Fmt(this.creatingCostDiamond), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        var t = new u.Req_Alliance_CreateAlliance;
                        t.Name = e.allianceName, t.Notice = e.pSloganEditorBox.string, t.NeedVerify = e.applicationModeIndex, t.RequireLevel = e.levelOptions[e.levelOptionsIndex], t.RequirePower = e.powerOptions[e.powerOptionsIndex], t.Icon = e.flagItemID, h.RpcComponent.Instance.Call(t, e.OnCreateAllianceSuccess.bind(e))
                    }) : f.UIUtlity.ShowFloatingHint("allianceBase_searchDefaultText".ToUILocale()))
                }, t.prototype.OnCreateAllianceSuccess = function(e) {
                    e.AllianceId && (h.DataCenter.Instance.AllianceId = e.AllianceId), l.UIManager.Instance.QuitPanelStack(this.panelBefore), l.UIManager.Instance.QuitPanelStack(this), f.UIUtlity.ShowFloatingHint("allianceBase_createSuccess".ToUILocale());
                    var t = l.UIManager.Instance.GetUIPanel(y.PanelConfig.AllianceBaseMainPanel.Path);
                    null != t && _.RedDotManager.Instance.Bind(t.pMainPageTalentButton.node, _.RedDotManager.Instance.RedDot.AllianceTalentBtnNode, 0, 0)
                }, t.prototype.OnClickModifyButton = function() {
                    if (this.panelMode == m.AllianceSetupPanelMode.Modifying) {
                        var e = new u.Req_Alliance_AllianceSetting;
                        e.Notice = this.pSloganEditorBox.string, e.NeedVerify = this.applicationModeIndex, e.RequireLevel = this.levelOptions[this.levelOptionsIndex], e.RequirePower = this.powerOptions[this.powerOptionsIndex], e.Icon = this.flagItemID, h.RpcComponent.Instance.Call(e, this.OnCallBackFromAllianceSetting.bind(this))
                    }
                }, t.prototype.OnCallBackFromAllianceSetting = function() {
                    f.UIUtlity.ShowFloatingHint("allianceBase_settingUpAllianceSuccess".ToUILocale()), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickNameEditButton = function() {
                    var e = this.panelMode == m.AllianceSetupPanelMode.Creating ? m.AllianceNamingPanelMode.Creating : m.AllianceNamingPanelMode.Changing;
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.AllianceNamingPanel.Path, e, this.allianceName, this.SetName.bind(this))
                }, t.prototype.SetName = function(e) {
                    e && l.EZLog.Debug("ok in AllianceSetupPanel SetFlag ...newName:[" + e + "]"), this.panelMode == m.AllianceSetupPanelMode.Creating ? e ? (this.allianceName = e, this.pNameText.string = e) : (this.allianceName = "", this.pNameText.string = "allianceBase_clickToRename".ToUILocale()) : this.panelMode == m.AllianceSetupPanelMode.Modifying && (e && (this.allianceName = e), this.pNameText.string = this.allianceName)
                }, t.prototype.OnClickApplicationBtnPrev = function() {
                    this.applicationModeIndex--, this.applicationModeIndex < 0 && (this.applicationModeIndex = this.applicationTextsKeys.length - 1), this.pApplicationText.string = this.applicationTextsKeys[this.applicationModeIndex].ToUILocale()
                }, t.prototype.OnClickApplicationBtnNext = function() {
                    this.applicationModeIndex++, this.applicationModeIndex >= this.applicationTextsKeys.length && (this.applicationModeIndex = 0), this.pApplicationText.string = this.applicationTextsKeys[this.applicationModeIndex].ToUILocale()
                }, t.prototype.OnClickPowerBtnPrev = function() {
                    this.powerOptionsIndex--, this.powerOptionsIndex < 0 && (this.powerOptionsIndex = this.powerOptions.length - 1), this.pPowerText.string = this.powerOptions[this.powerOptionsIndex].toString()
                }, t.prototype.OnClickPowerBtnNext = function() {
                    this.powerOptionsIndex++, this.powerOptionsIndex >= this.powerOptions.length && (this.powerOptionsIndex = 0), this.pPowerText.string = this.powerOptions[this.powerOptionsIndex].toString()
                }, t.prototype.OnClickLevelBtnPrev = function() {
                    this.levelOptionsIndex--, this.levelOptionsIndex < 0 && (this.levelOptionsIndex = this.levelOptions.length - 1), this.pLevelText.string = this.levelOptions[this.levelOptionsIndex].toString()
                }, t.prototype.OnClickLevelBtnNext = function() {
                    this.levelOptionsIndex++, this.levelOptionsIndex >= this.levelOptions.length && (this.levelOptionsIndex = 0), this.pLevelText.string = this.levelOptions[this.levelOptionsIndex].toString()
                }, t.prototype.OnClickChangeFlagButton = function() {
                    var e = this.panelMode == m.AllianceSetupPanelMode.Creating ? 1 : this.allianceLevel;
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.AllianceFlagSelectionPanel.Path, this.flagLogoID, this.flagBgID, e, this.SetFlag.bind(this))
                }, t.prototype.SetFlag = function(e, t, n) {
                    l.EZLog.Debug("ok in AllianceSetupPanel SetFlag ..."), e && (l.EZLog.Debug("ok in AllianceSetupPanel SetFlag ...itemID:" + e), this.flagItemID = e), t && n && (l.EZLog.Debug("ok in AllianceSetupPanel SetFlag ...logoID:" + t + " flagID:" + n), this.flagLogoID = t, this.flagBgID = n), this.pFlagFg.spriteFrame = this._mainAtlas.getSpriteFrame("flagLogo" + this.flagLogoID), this.pFlagBg.spriteFrame = this._mainAtlas.getSpriteFrame("flagBg" + this.flagBgID)
                }, t.prototype.InitData = function(e) {
                    if (l.EZLog.Debug("ok in AllianceSetupPanel InitData ...  params[0]:" + e[0]), this.panelMode = e[0], this.panelMode == m.AllianceSetupPanelMode.Creating) this.panelBefore = e[1] ? e[1] : null;
                    else if (this.panelMode == m.AllianceSetupPanelMode.Modifying) {
                        var t = e[1];
                        this.applicationModeIndex = t.NeedVerify, this.levelOptionsIndex = this.LevelToLevelOptionsIndex(t.RequireLevel), this.powerOptionsIndex = this.PowerToPowerOptionsIndex(t.RequirePower);
                        var n = p.ConfigDataComponent.Instance.GetConfigById(g.AllianceIcon_Config, t.Icon);
                        this.flagItemID = t.Icon, this.flagLogoID = n.LogoID, this.flagBgID = n.FlagID, this.allianceLevel = t.Level, this.allianceName = t.Name, this.allianceSlogan = t.Notice
                    }
                    this.RefreshUI()
                }, t.prototype.PowerToPowerOptionsIndex = function(e) {
                    for (var t = 0, n = this.powerOptions.length; t < n; ++t)
                        if (this.powerOptions[t] == e) return t;
                    return 0
                }, t.prototype.LevelToLevelOptionsIndex = function(e) {
                    for (var t = 0, n = this.levelOptions.length; t < n; ++t)
                        if (this.levelOptions[t] == e) return t;
                    return 0
                }, t.prototype.OnAdd = function() {
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [d.MallPageType.DiamondShop, d.GiftPackType.BuyDiamond])
                }, i([w(cc.Label)], t.prototype, "pTitleText", void 0), i([w(cc.Label)], t.prototype, "pNameTitleText", void 0), i([w(cc.Label)], t.prototype, "pApplicationTitleText", void 0), i([w(cc.Label)], t.prototype, "pPowerTitleText", void 0), i([w(cc.Label)], t.prototype, "pLevelTitleText", void 0), i([w(cc.Label)], t.prototype, "pChangeFlagText", void 0), i([w(cc.Label)], t.prototype, "pDefaultSloganText", void 0), i([w(cc.Label)], t.prototype, "pCancelButtonText", void 0), i([w(cc.Label)], t.prototype, "pCreateButtonText", void 0), i([w(cc.Label)], t.prototype, "pModifyButtonText", void 0), i([w(cc.Label)], t.prototype, "pTipsText", void 0), i([w(cc.Button)], t.prototype, "pCancelButton", void 0), i([w(v.default)], t.prototype, "CurrencyBarItem", void 0), i([w(cc.Button)], t.prototype, "BtnAdd", void 0), i([w(cc.Button)], t.prototype, "pCreateButton", void 0), i([w(cc.Button)], t.prototype, "pModifyButton", void 0), i([w(cc.Button)], t.prototype, "pChangeFlagButton", void 0), i([w(cc.Sprite)], t.prototype, "pFlagBg", void 0), i([w(cc.Sprite)], t.prototype, "pFlagFg", void 0), i([w(cc.Label)], t.prototype, "pNameText", void 0), i([w(cc.Button)], t.prototype, "pNameEditButton", void 0), i([w(cc.Button)], t.prototype, "pApplicationBtnPrev", void 0), i([w(cc.Button)], t.prototype, "pApplicationBtnNext", void 0), i([w(cc.Label)], t.prototype, "pApplicationText", void 0), i([w(cc.Button)], t.prototype, "pPowerBtnPrev", void 0), i([w(cc.Button)], t.prototype, "pPowerBtnNext", void 0), i([w(cc.Label)], t.prototype, "pPowerText", void 0), i([w(cc.Button)], t.prototype, "pLevelBtnPrev", void 0), i([w(cc.Button)], t.prototype, "pLevelBtnNext", void 0), i([w(cc.Label)], t.prototype, "pLevelText", void 0), i([w(cc.Label)], t.prototype, "pSloganEditorBoxTitle", void 0), i([w(cc.EditBox)], t.prototype, "pSloganEditorBox", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "./AllianceCommonDefines": "AllianceCommonDefines"
    }],
    AllianceTalentBranchItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dd9cbrliiZKE6azDJia3Jm1", "AllianceTalentBranchItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../ShareConsts/EnumType"),
            s = e("../../Components/DataCenter"),
            l = e("../../Components/ConfigData/ConfigDataComponent"),
            c = e("../../Components/ConfigData/ConfigCacheComponent"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../RedDot/RedDotManager"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LockIcon = null, t.LevelLabel = null, t.StageProgress = null, t.FrameNode = null, t.UnlockAnim = null, t.RedDot = null, t.ATTR_COUNT = 6, t._allianceTalentElementNodeUnlock = 0, t._isPlayedAnim = !1, t
                }
                return r(t, e), t.prototype.SetUI = function(e) {
                    this._currElement = e, this.LoadGlobalSetting(), this.LoadUserData(), this.SetLockState(), this.SetLevel(), this.SetProgress(), this.SetRedDot()
                }, t.prototype.LoadUserData = function() {
                    var e = s.DataCenter.Instance.GetIntData(a.UserDataKey.AllianceTalentAll);
                    this._rootLevel = Math.floor(e / this.ATTR_COUNT);
                    var t = s.DataCenter.Instance.GetIntData(this._currElement + 1e3);
                    this._level = Math.floor(t / this.ATTR_COUNT), this._stage = t % this.ATTR_COUNT
                }, t.prototype.LoadGlobalSetting = function() {
                    this._allianceTalentElementNodeUnlock = l.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceTalentElementNodeUnlock");
                    var e = c.ConfigCacheComponent.Instance.GetAllianceTalentConfig();
                    this._maxLevel = e.length / this.ATTR_COUNT
                }, t.prototype.SetLockState = function() {
                    var e = this;
                    this._currElement != a.HeroElementType.All ? this._rootLevel < this._allianceTalentElementNodeUnlock ? this.LockIcon.node.active = !0 : this.LockIcon.node.active && null != this.UnlockAnim && !this._isPlayedAnim ? (u.UIUtlity.ShowFloatingHint("allianceTalent_unlock_other".ToUILocale()), this.UnlockAnim.node.active = !0, this._isPlayedAnim = !0, this.UnlockAnim.setAnimation(0, this.UnlockAnim.defaultAnimation, !1), this.UnlockAnim.setCompleteListener(function() {
                        e.LockIcon.node.active = !1
                    })) : this.LockIcon.node.active = !1 : this.LockIcon.node.active = !1
                }, t.prototype.SetLevel = function() {
                    this.LevelLabel.string = this._level + "/" + this._maxLevel
                }, t.prototype.SetProgress = function() {
                    0 == this._level ? 0 == this._stage ? this.StageProgress.progress = 0 : this.StageProgress.progress = .1667 * this._stage : 0 == this._stage ? this.StageProgress.progress = 1 : this.StageProgress.progress = .1667 * this._stage
                }, t.prototype.SetRedDot = function() {
                    var e = p.RedDotManager.DataHandler.RefresAllianceTalentBranchNode(this._currElement + 1e3);
                    this.RedDot.active = e
                }, i([f(cc.Sprite)], t.prototype, "LockIcon", void 0), i([f(cc.Label)], t.prototype, "LevelLabel", void 0), i([f(cc.ProgressBar)], t.prototype, "StageProgress", void 0), i([f(cc.Node)], t.prototype, "FrameNode", void 0), i([f(sp.Skeleton)], t.prototype, "UnlockAnim", void 0), i([f(cc.Node)], t.prototype, "RedDot", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AllianceTalentPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "de3dfZpGMBONL1nv1gijYQ3", "AllianceTalentPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Components/DataCenter"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../Components/AllianceTalentBranchItem"),
            y = e("../../Components/ConfigData/ConfigDataComponent"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/ConfigData/ConfigCacheComponent"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../Components/CurrencyBarItem"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../Components/RpcComponent"),
            w = e("../../Auxiliary/GameRecord"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Tittle = null, t.AttrTitle = null, t.BranchHighLight = null, t.BranchItemGroups = [], t.CurrencyGrid = null, t.AttrIcons = [], t.AttrTypes = [], t.AttrValues = [], t.ActiveAnims = [], t.BtnReset = null, t.ResetBtnLabel = null, t.BtnActive = null, t.ActiveBtnLabel = null, t.BtnActiveDisable = null, t.ActiveDisableBtnLabel = null, t.LimitTag = null, t.BtnRule = null, t.BtnDetail = null, t.DetailBtnLabel = null, t.BtnReturn = null, t.ElementBtn = null, t.ElementBtnLabel = null, t.BubbleNode = null, t.BubbleInfo = null, t.ATTR_COUNT = 6, t._allianceTalentElementNodeUnlock = 0, t._allianceTalentNodeLevelMaxOffset = 0, t._currencyPrefab = null, t._currencyItemArray = [], t._allianceTalentMap = new Map, t._currElement = h.HeroElementType.All, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(C.BundlePath.CurrencyBarComponent, cc.Prefab)];
                                case 1:
                                    return t._currencyPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent();
                    var t = _.default.Instance.IsGameModuleOpen(u.GameModuleType.ChaosSummon);
                    this.ElementBtn.node.active = t
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "allianceTalent_mainTitle".ToUILocale(), this.ResetBtnLabel.string = "allianceTalent_reset".ToUILocale(), this.ActiveBtnLabel.string = "allianceTalent_active".ToUILocale(), this.ActiveDisableBtnLabel.string = "allianceTalent_max".ToUILocale(), this.DetailBtnLabel.string = "handbook_attr_total".ToUILocale(), this.BubbleInfo.string = "chaos_allianceTalent_effect".ToUILocale(), this.ElementBtnLabel.string = h.HeroElementType.Chaos.ToElementEffectName()
                }, t.prototype.SetClickEvent = function() {
                    var e = this;
                    this.BtnActive.node.on("click", this.OnBtnActiveClick, this), this.BtnActiveDisable.node.on("click", this.OnBtnActiveDisableClick, this), this.BtnReset.node.on("click", this.OnBtnResetClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnDetail.node.on("click", this.OnBtnDetailClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BranchItemGroups.forEach(function(t) {
                        t.node.on(cc.Node.EventType.TOUCH_END, e.OnBranchItemClick, e)
                    }), this.ElementBtn.node.on("click", this.OnElementBtnClick, this), this.node.on(cc.Node.EventType.TOUCH_START, this.OnCloseBubble, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadConfig(), this.LoadGlobalSetting(), this.BubbleNode.active = !1
                }, t.prototype.LoadConfig = function() {
                    this._levelConfigArray = I.ConfigCacheComponent.Instance.GetAllianceTalentConfig()
                }, t.prototype.LoadGlobalSetting = function() {
                    this._allianceTalentElementNodeUnlock = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceTalentElementNodeUnlock"), this._allianceTalentNodeLevelMaxOffset = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceTalentNodeLevelMaxOffset");
                    var e = I.ConfigCacheComponent.Instance.GetAllianceTalentConfig();
                    this._maxLevel = e.length / this.ATTR_COUNT - 1
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), w.default.SetItem(w.GameRecordDefine.AllianceTalentRedDot, c.RpcComponent.Instance.ServerTime), this.LoadUserData(), t || this.SetDefaultSelect(), this.SetBranchItem(), this.RefreshView()
                }, t.prototype.RefreshView = function() {
                    this.SetHighLight(), this.SetAttrTitle(), this.SetAttrInfo(), this.SetCurrencyItem(), this.SetBtnState()
                }, t.prototype.LoadUserData = function() {
                    for (var e = h.UserDataKey.AllianceTalentAll; e <= h.UserDataKey.AllianceTalentFight; e++) {
                        var t = d.DataCenter.Instance.GetIntData(e),
                            n = Math.floor(t / this.ATTR_COUNT),
                            o = t % this.ATTR_COUNT;
                        this._allianceTalentMap.set(e % 1e3, [t, n, o])
                    }
                    this._rootLevel = this.GetRootLevel()
                }, t.prototype.TalentMapToList = function() {
                    var e = [];
                    return this._allianceTalentMap.forEach(function(t, n) {
                        e.push([n, t[0], t[1], t[2]])
                    }), e
                }, t.prototype.SetDefaultSelect = function() {
                    if (this._rootLevel < this._allianceTalentElementNodeUnlock) this._currElement = h.HeroElementType.All;
                    else {
                        var e = this.TalentMapToList();
                        e.sort(function(e, t) {
                            return e[1] > t[1] ? -1 : e[1] < t[1] ? 1 : e[2] > t[2] ? -1 : e[2] < t[2] ? 1 : e[0] == h.HeroElementType.All && t[0] != h.HeroElementType.All ? 1 : e[0] != h.HeroElementType.All && t[0] == h.HeroElementType.All ? -1 : 0
                        }), this._currElement = e[0][0]
                    }
                }, t.prototype.GetRootLevel = function() {
                    return this._allianceTalentMap.get(h.HeroElementType.All)[1]
                }, t.prototype.GetConfigByLevelAndStage = function(e) {
                    void 0 === e && (e = void 0);
                    var t = (null == e ? this._allianceTalentMap.get(this._currElement) : this._allianceTalentMap.get(e))[0];
                    return y.ConfigDataComponent.Instance.GetConfigById(m.AllianceTalentLevel_Config, t)
                }, t.prototype.GetNextConfigByLevelAndStage = function(e) {
                    void 0 === e && (e = void 0);
                    var t = (null == e ? this._allianceTalentMap.get(this._currElement) : this._allianceTalentMap.get(e))[0];
                    return y.ConfigDataComponent.Instance.GetConfigById(m.AllianceTalentLevel_Config, t + 1)
                }, t.prototype.SetBranchItem = function() {
                    for (var e = 0; e < this.BranchItemGroups.length; e++) this.BranchItemGroups[e].SetUI(e)
                }, t.prototype.SetHighLight = function() {
                    this._currElement == h.HeroElementType.All ? (this.BranchHighLight.setParent(this.BranchItemGroups[this._currElement].FrameNode), this.BranchHighLight.setPosition(cc.Vec2.ZERO), this.BranchHighLight.scale = 1, this.BranchHighLight.active = !0) : this._rootLevel < this._allianceTalentElementNodeUnlock ? this.BranchHighLight.active = !1 : (this.BranchHighLight.setParent(this.BranchItemGroups[this._currElement].FrameNode), this.BranchHighLight.setPosition(cc.Vec2.ZERO), this.BranchHighLight.scale = .97, this.BranchHighLight.active = !0)
                }, t.prototype.SetAttrTitle = function() {
                    var e, t;
                    this._currElement == h.HeroElementType.All ? (e = this._rootLevel, t = "allianceTalent_root_addation".ToUILocale()) : (e = this._allianceTalentMap.get(this._currElement)[1], t = "allianceTalent_element_addation".ToUILocale().Fmt(this._currElement.ToHeroElementName())), this.AttrTitle.string = t + " Lv." + e
                }, t.prototype.OnBranchItemClick = function(e) {
                    var t = Number.parseInt(e.target.name);
                    this._currElement != t && (this._rootLevel < this._allianceTalentElementNodeUnlock ? b.UIUtlity.ShowFloatingHint("allianceTalent_hint_root_limit".ToUILocale().Fmt(this._allianceTalentElementNodeUnlock)) : (this._currElement = t, this.RefreshView()))
                }, t.prototype.OnBtnDetailClick = function() {
                    p.UIManager.Instance.ShowUIPanel(C.PanelConfig.TalentAddationShowPanel.Path)
                }, t.prototype.OnBtnReturnClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.SetAttrInfo = function() {
                    for (var e = 0; e < this.AttrIcons.length; e++) {
                        var t = void 0,
                            n = void 0,
                            o = 0,
                            r = 0;
                        this._currElement == h.HeroElementType.All ? (t = this._levelConfigArray[e].BaseNodeAttr[0].Items[0], n = this._levelConfigArray[e].BaseNodeAttr[0].Items[1]) : (t = this._levelConfigArray[e].ElementNodeAttr[0].Items[0], n = this._levelConfigArray[e].ElementNodeAttr[0].Items[1]);
                        var i = _.default.GetHeroAttribute(t, n);
                        this.AttrIcons[e].spriteFrame = i.Icon, this.AttrTypes[e].string = i.Name;
                        var a = this.GetRootBaseValue(t),
                            s = this.GetConfigByLevelAndStage();
                        if (this._currElement == h.HeroElementType.All) o = a;
                        else if (null != s)
                            for (var l = 1; l <= s.Id; l++) {
                                var c = y.ConfigDataComponent.Instance.GetConfigById(m.AllianceTalentLevel_Config, l);
                                c.ElementNodeAttr[0].Items[0] == t && (o += c.ElementNodeAttr[0].Items[1])
                            }
                        var u = this.GetNextConfigByLevelAndStage();
                        null != u && (this._currElement == h.HeroElementType.All ? u.BaseNodeAttr[0].Items[0] == t && (r += u.BaseNodeAttr[0].Items[1]) : u.ElementNodeAttr[0].Items[0] == t && (r += u.ElementNodeAttr[0].Items[1])), i = _.default.GetHeroAttribute(t, o);
                        var p = "";
                        r > 0 && (p = "<outline color=#202434 width=3><color=#6eeea7>+" + _.default.GetHeroAttribute(t, r).Value + "</c></outline>"), this.AttrValues[e].string = i.Value + p
                    }
                }, t.prototype.GetRootBaseValue = function(e) {
                    var t = this.GetConfigByLevelAndStage(h.HeroElementType.All),
                        n = 0;
                    if (null != t)
                        for (var o = 1; o <= t.Id; o++) {
                            var r = y.ConfigDataComponent.Instance.GetConfigById(m.AllianceTalentLevel_Config, o);
                            r.BaseNodeAttr[0].Items[0] == e && (n += r.BaseNodeAttr[0].Items[1])
                        }
                    return n
                }, t.prototype.SetCurrencyItem = function() {
                    for (var e = 0; e < 2; e++) {
                        if (null == this._currencyItemArray[e]) {
                            var t = cc.instantiate(this._currencyPrefab).getComponent(v.default);
                            t.node.parent = this.CurrencyGrid.node, this._currencyItemArray[e] = t
                        }
                        this._currencyItemArray[e].node.active = !0
                    }
                    var n = this.GetNextConfigByLevelAndStage();
                    null != n ? (this.CurrencyGrid.node.active = !0, this._currElement == h.HeroElementType.All ? (this._currencyItemArray[0].Init(h.CommonItemId.Coin, !1, void 0, n.BaseNodeCostCoin), this._currencyItemArray[1].Init(h.CommonItemId.AllianceMedal, !1, void 0, n.BaseNodeCostMedal)) : (this._currencyItemArray[0].Init(h.CommonItemId.Coin, !1, void 0, n.ElementNodeCostCoin), this._currencyItemArray[1].Init(h.CommonItemId.AllianceMedal, !1, void 0, n.ElementNodeCostMedal)), this._currencyItemArray[0].SetFixedWidth(257), this._currencyItemArray[1].SetFixedWidth(257)) : this.CurrencyGrid.node.active = !1
                }, t.prototype.SetBtnState = function() {
                    this._currElement == h.HeroElementType.All ? this.BtnReset.node.active = !1 : this.BtnReset.node.active = !0;
                    var e = this._allianceTalentMap.get(this._currElement)[1],
                        t = this.GetNextConfigByLevelAndStage();
                    if (this.BtnActive.node.active = !1, this.BtnActiveDisable.node.active = !1, this.LimitTag.node.active = !1, e - this._rootLevel >= this._allianceTalentNodeLevelMaxOffset) return this.BtnActiveDisable.node.active = !0, this.LimitTag.node.active = !0, void(this.LimitTag.string = "allianceTalent_tag_root_limit".ToUILocale().Fmt(this._rootLevel + 1));
                    null != t ? this.BtnActive.node.active = !0 : this.BtnActiveDisable.node.active = !0
                }, t.prototype.OnBtnActiveClick = function() {
                    if (this._allianceTalentMap.get(this._currElement)[1] - this._rootLevel >= this._allianceTalentNodeLevelMaxOffset) b.UIUtlity.ShowFloatingHint("allianceTalent_hint_need_root".ToUILocale());
                    else {
                        var e = this.GetNextConfigByLevelAndStage(),
                            t = !1,
                            n = !1;
                        if (this._currElement == h.HeroElementType.All ? (t = d.DataCenter.Instance.IsItemEnough(h.CommonItemId.Coin, e.BaseNodeCostCoin), n = d.DataCenter.Instance.IsItemEnough(h.CommonItemId.AllianceMedal, e.BaseNodeCostMedal)) : (t = d.DataCenter.Instance.IsItemEnough(h.CommonItemId.Coin, e.ElementNodeCostCoin), n = d.DataCenter.Instance.IsItemEnough(h.CommonItemId.AllianceMedal, e.ElementNodeCostMedal)), t)
                            if (n) this.RequestActiveTalent();
                            else {
                                var o = h.CommonItemId.AllianceMedal.ToItemName();
                                b.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o))
                            }
                        else {
                            var r = h.CommonItemId.Coin.ToItemName();
                            b.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(r))
                        }
                    }
                }, t.prototype.OnBtnActiveDisableClick = function() {
                    this._allianceTalentMap.get(this._currElement)[1] - this._rootLevel >= this._allianceTalentNodeLevelMaxOffset ? b.UIUtlity.ShowFloatingHint("allianceTalent_hint_need_root".ToUILocale()) : null != this.GetNextConfigByLevelAndStage() || b.UIUtlity.ShowFloatingHint("allianceTalent_hint_max_level".ToUILocale())
                }, t.prototype.RequestActiveTalent = function() {
                    this.SetBranchItem(), this.LoadUserData(), this.RefreshView(), this._oldBp = d.DataCenter.Instance.GetIntData(h.UserDataKey.Power);
                    var e = new g.Req_Alliance_UpgradeTalent;
                    e.Type = this._currElement, S.RpcComponent.Instance.Call(e, this.ResponseActiveTalentSuccess.bind(this))
                }, t.prototype.ResponseActiveTalentSuccess = function() {
                    var e = this,
                        t = d.DataCenter.Instance.GetIntData(h.UserDataKey.Power) - this._oldBp;
                    p.EZLog.Log("\u5f53\u524d\u6218\u529b\u63d0\u5347---\x3e" + t);
                    var n, o, r = this.GetNextConfigByLevelAndStage();
                    this._currElement == h.HeroElementType.All ? (n = r.BaseNodeAttr[0].Items[0], o = r.BaseNodeAttr[0].Items[1]) : (n = r.ElementNodeAttr[0].Items[0], o = r.ElementNodeAttr[0].Items[1]), p.UIManager.Instance.ShowUIPanel(C.PanelConfig.TalentActiveSuccessPanel.Path, this._oldBp, t, n, o), this.LoadUserData(), this.SetBtnState(), this.ActiveAnims[this._currElement].node.active = !0, this.ActiveAnims[this._currElement].setAnimation(0, this.ActiveAnims[this._currElement].defaultAnimation, !1), this.ActiveAnims[this._currElement].setCompleteListener(function() {
                        e.SetBranchItem(), e.RefreshView()
                    }), b.UIUtlity.CloseMaskPanel()
                }, t.prototype.OnBtnResetClick = function() {
                    var e = this._allianceTalentMap.get(this._currElement)[1],
                        t = this._allianceTalentMap.get(this._currElement)[2];
                    e <= 0 && t <= 0 ? b.UIUtlity.ShowFloatingHint("allianceTalent_not_need_reset".ToUILocale()) : p.UIManager.Instance.ShowUIPanel(C.PanelConfig.AllianceResetHintPanel.Path, this._currElement)
                }, t.prototype.OnBtnRuleClick = function() {
                    var e = {
                        name: "allianceTalent_mainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["allianceTalent_rule_text".ToUILocale()]
                    };
                    b.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnElementBtnClick = function() {
                    this.BubbleNode.active = !this.BubbleNode.active
                }, t.prototype.OnCloseBubble = function() {
                    this.BubbleNode.active && (this.BubbleNode.active = !1)
                }, i([T(cc.Label)], t.prototype, "Tittle", void 0), i([T(cc.Label)], t.prototype, "AttrTitle", void 0), i([T(cc.Node)], t.prototype, "BranchHighLight", void 0), i([T(f.default)], t.prototype, "BranchItemGroups", void 0), i([T(cc.Layout)], t.prototype, "CurrencyGrid", void 0), i([T(cc.Sprite)], t.prototype, "AttrIcons", void 0), i([T(cc.Label)], t.prototype, "AttrTypes", void 0), i([T(cc.RichText)], t.prototype, "AttrValues", void 0), i([T(sp.Skeleton)], t.prototype, "ActiveAnims", void 0), i([T(cc.Button)], t.prototype, "BtnReset", void 0), i([T(cc.Label)], t.prototype, "ResetBtnLabel", void 0), i([T(cc.Button)], t.prototype, "BtnActive", void 0), i([T(cc.Label)], t.prototype, "ActiveBtnLabel", void 0), i([T(cc.Button)], t.prototype, "BtnActiveDisable", void 0), i([T(cc.Label)], t.prototype, "ActiveDisableBtnLabel", void 0), i([T(cc.Label)], t.prototype, "LimitTag", void 0), i([T(cc.Button)], t.prototype, "BtnRule", void 0), i([T(cc.Button)], t.prototype, "BtnDetail", void 0), i([T(cc.Label)], t.prototype, "DetailBtnLabel", void 0), i([T(cc.Button)], t.prototype, "BtnReturn", void 0), i([T(cc.Button)], t.prototype, "ElementBtn", void 0), i([T(cc.Label)], t.prototype, "ElementBtnLabel", void 0), i([T(cc.Node)], t.prototype, "BubbleNode", void 0), i([T(cc.RichText)], t.prototype, "BubbleInfo", void 0), i([A], t)
            }(l.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AllianceTalentBranchItem": "AllianceTalentBranchItem",
        "../Components/CurrencyBarItem": "CurrencyBarItem"
    }],
    AllianceTestAfterChallengePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3bec9z71ERFR6/wBv/KYOlI", "AllianceTestAfterChallengePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/ItemComponent"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../Components/CustomProgressBar"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.LevelRichText = null, t.DamageLabel = null, t.DamageValueLabel = null, t.RewardLabel = null, t.BossLevelAndName = null, t.BossHPValue = null, t.DataButtonLabel = null, t.IwSButtonLabel = null, t.DataButton = null, t.IwantStrongButton = null, t.BossHPProgressBar = null, t.BossHeadContainer = null, t.RewardScrollView = null, t.RewardViewLayout = null, t.SpAni = null, t._initLayout = !1, t._rewardItemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                        n._itemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.DataButton.node.on("click", this.OnDataButtonClick, this), this.IwantStrongButton.node.on("click", this.OnIwantStrongButtonClick, this)
                }, t.prototype.MultiLanguageAssign = function() {
                    this.DamageLabel.string = "bossWar_take_damage".ToUILocale(), this.RewardLabel.string = "allianceTest_killingReward".ToUILocale(), this.DataButtonLabel.string = "settlement_statistics".ToUILocale(), this.IwSButtonLabel.string = "idleBattle_main_beStrong".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.BossHeadContainer), this._bossHeadItemComponent = e.getComponent(p.ItemComponent)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._testId = t[0];
                    var n = d.ConfigDataComponent.Instance.GetConfigById(f.AllianceTest_Config, this._testId);
                    this._mapLevel = n.Type, this._damageBloodTubeNumber = t[1];
                    var o = d.ConfigDataComponent.Instance.GetConfigById(f.MapBase_Config, t[2]);
                    this._bossLevel = o.Strength[1], this._bossHeroId = o.Heros[0].Items[1], this._bossName = this._bossHeroId.ToHeroName(), this._bossMaxHPCount = d.ConfigDataComponent.Instance.GetConfigById(f.AllianceTestType_Config, this._mapLevel).HpCount, this._bossCurHPCount = t[3], this._rewardItems = t[4], this._report = t[5]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.VariedValueAssign(), this.InitLayout(), this.SpAni.setAnimation(0, "UI_effect_gonghuishilian_shilianwancheng", !1)
                }, t.prototype.VariedValueAssign = function() {
                    this.LevelRichText.string = "EndlessTest".ToUILocale().Fmt(this._mapLevel), this.DamageValueLabel.string = "x" + this._damageBloodTubeNumber, this.BossLevelAndName.string = "allianceTest_BossLevelAndName".ToUILocale().Fmt(this._bossLevel, this._bossName), this._bossCurHPCount = this._bossCurHPCount < 0 ? 0 : this._bossCurHPCount, this.BossHPValue.string = this._bossCurHPCount + "/" + this._bossMaxHPCount, this.BossHPProgressBar.progress = this._bossCurHPCount / this._bossMaxHPCount, this.BossHPProgressBar.progress < d.ConfigDataComponent.Instance.GetGlobalSettingByKey("HPBarColorRedThreshold") ? this.BossHPProgressBar.barSprite.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("progress_7") : this.BossHPProgressBar.progress < d.ConfigDataComponent.Instance.GetGlobalSettingByKey("HPBarColorYellowThreshold") ? this.BossHPProgressBar.barSprite.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("progress_8") : this.BossHPProgressBar.barSprite.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("progress_6"), this._bossHeadItemComponent.Init({
                        ItemId: this._bossHeroId
                    }, p.ItemComponentType.HeroInfo)
                }, t.prototype.InitLayout = function() {
                    for (var e = 0; e < this._rewardItems.length; e++) {
                        var t = this._rewardItemComponents[e];
                        t || ((t = cc.instantiate(this._itemPrefab).getComponent(p.ItemComponent)).node.parent = this.RewardViewLayout), t.node.active = !0;
                        var n = d.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, this._rewardItems[e][0]);
                        t.Init({
                            ItemId: this._rewardItems[e][0],
                            Count: this._rewardItems[e][1]
                        }, n.Star ? p.ItemComponentType.ItemWithStar : p.ItemComponentType.ItemCommon), t.SetCountFontSize(26, 130)
                    }
                    for (e = this._rewardItems.length; e < this._rewardItemComponents.length; e++) this._rewardItemComponents[e].node.active = !1;
                    this._rewardItems.length > 5 ? (this.RewardScrollView.enabled = !0, this.RewardScrollView.scrollToLeft()) : (this.RewardScrollView.enabled = !1, this.RewardViewLayout.x = 0)
                }, t.prototype.OnItemClick = function(e, t) {
                    "content9f" == t.parent.name && h.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.OnDataButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.BattleStatisticsPanel.Path, [this._report])
                }, t.prototype.OnIwantStrongButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.IWantStrongPanel.Path)
                }, i([I(cc.RichText)], t.prototype, "LevelRichText", void 0), i([I(cc.Label)], t.prototype, "DamageLabel", void 0), i([I(cc.Label)], t.prototype, "DamageValueLabel", void 0), i([I(cc.Label)], t.prototype, "RewardLabel", void 0), i([I(cc.Label)], t.prototype, "BossLevelAndName", void 0), i([I(cc.Label)], t.prototype, "BossHPValue", void 0), i([I(cc.Label)], t.prototype, "DataButtonLabel", void 0), i([I(cc.Label)], t.prototype, "IwSButtonLabel", void 0), i([I(cc.Button)], t.prototype, "DataButton", void 0), i([I(cc.Button)], t.prototype, "IwantStrongButton", void 0), i([I(y.default)], t.prototype, "BossHPProgressBar", void 0), i([I(cc.Node)], t.prototype, "BossHeadContainer", void 0), i([I(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([I(cc.Node)], t.prototype, "RewardViewLayout", void 0), i([I(sp.Skeleton)], t.prototype, "SpAni", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllianceTestBossCard: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "989f7iwhTlKUYguxQWYHU/+", "AllianceTestBossCard");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Auxiliary/UIUtlity"),
            c = e("../../Components/Components"),
            u = e("./CustomProgressBar"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroAttrIcon = null, t.HeroCard = null, t.HeroBG = null, t.HeroFrame = null, t.HeroHPProgress = null, t.DeadTag = null, t.DeadTagLabel = null, t.BarValueLabel = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.SetHP = function(e, t, n) {
                    var o;
                    void 0 === n && (n = !1);
                    var r = t / e;
                    return o = r > c.ConfigDataComponent.Instance.GetGlobalSettingByKey("HPBarColorYellowThreshold") ? l.UIUtlity.COMMON_ATLAS4.getSpriteFrame("progress_6") : r > c.ConfigDataComponent.Instance.GetGlobalSettingByKey("HPBarColorRedThreshold") ? l.UIUtlity.COMMON_ATLAS4.getSpriteFrame("progress_8") : l.UIUtlity.COMMON_ATLAS4.getSpriteFrame("progress_7"), this.HeroHPProgress.barSprite.spriteFrame = o, this.HeroHPProgress.progress = r, this.BarValueLabel.node.active = n, t <= 0 ? (l.UIUtlity.OnSpriteGray(this.HeroAttrIcon), l.UIUtlity.OnSpriteGray(this.HeroCard), l.UIUtlity.OnSpriteGray(this.HeroBG), l.UIUtlity.OnSpriteGray(this.HeroFrame), this.DeadTag.active = !0, this.DeadTagLabel.string = "allianceTestPanel_killed".ToUILocale(), t = 0) : (l.UIUtlity.OffSpriteGray(this.HeroAttrIcon), l.UIUtlity.OffSpriteGray(this.HeroCard), l.UIUtlity.OffSpriteGray(this.HeroBG), l.UIUtlity.OffSpriteGray(this.HeroFrame), this.DeadTag.active = !1), this.BarValueLabel.string = t + "/" + e, this
                }, t.prototype.SetAttr = function(e) {
                    return this.HeroAttrIcon.spriteFrame = l.UIUtlity.COMMON_ATLAS4.getSpriteFrame(e), this
                }, t.prototype.SetCard = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a, u, y;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return n = c.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e), t || (t = n.StarLevel), o = (o = t = t > 6 ? 6 : t) > l.UIUtlity.Max_Quality_Level ? l.UIUtlity.Max_Quality_Level : o, l.UIUtlity.HeroQualityConfig[n.CoreHero] ? (r = l.UIUtlity.HeroQualityConfig[n.CoreHero].CardBorder || "card_border_" + o, i = l.UIUtlity.HeroQualityConfig[n.CoreHero].CardBg || "card_bg_" + o) : n.ElementType == f.HeroElementType.Chaos || n.CoreHero == f.CoreHeroTag.SP ? (r = "card_border_7", i = "card_bg_7") : (r = "card_border_" + o, i = "card_bg_" + o), a = l.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(r), u = l.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(i), this.HeroFrame.spriteFrame = a, this.HeroBG.spriteFrame = u, [4, p.AssetsManager.Instance.LoadAsset(d.BundlePath.HeroCardIcon + "/" + e, cc.SpriteFrame)];
                                case 1:
                                    return y = s.sent(), this.isValid ? (this.HeroCard.spriteFrame = y, [2]) : (p.AssetsManager.Instance.UnloadAsset(y), [2])
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) p.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = null
                }, i([m(cc.Sprite)], t.prototype, "HeroAttrIcon", void 0), i([m(cc.Sprite)], t.prototype, "HeroCard", void 0), i([m(cc.Sprite)], t.prototype, "HeroBG", void 0), i([m(cc.Sprite)], t.prototype, "HeroFrame", void 0), i([m(u.default)], t.prototype, "HeroHPProgress", void 0), i([m(cc.Node)], t.prototype, "DeadTag", void 0), i([m(cc.Label)], t.prototype, "DeadTagLabel", void 0), i([m(cc.Label)], t.prototype, "BarValueLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomProgressBar": "CustomProgressBar"
    }],
    AllianceTestDetailHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "baffe7f7tNOGIJRrb5Fzb2t", "AllianceTestDetailHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/SkillItemComponent"),
            f = e("./AllianceTestBossCard"),
            y = e("../../Components/Components"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.TitleLabel = null, t.BossLevelAndNameLabel = null, t.BossWeaknessLabel = null, t.BossSkillLabel = null, t.DamageRankLabel = null, t.HollowLabel = [], t.RankNameLabel = [], t.RankDamageValueLabel = [], t.RemainChallengeTagTime = null, t.ChallengeButtonLabel = null, t.DetailButton = null, t.ChallengeButton = null, t.BossWeaknessAttr = null, t.BossWeaknessDesc = null, t.SkillContainer = null, t.BossCardContainer = null, t.ChaseAndAttackTag = null, t.ChaseAndAttackLabel = null, t._enemyElement = [0, 3, 1, 2, 5, 4], t._enemyElementSpriteName = ["", "tech", "heart", "power", "fight", "break"], t._elementSpriteName = ["", "heart", "power", "tech", "break", "fight"], t._skillComponentArray = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AllianceTestPanel/Component/AllianceTestBossCard")];
                                case 1:
                                    return t._cardPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.OnEvent(), this.FixedValueAssign()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.ChallengeButtonLabel.string = "dailyInstance_challenge".ToUILocale(), this.HollowLabel.forEach(function(e) {
                        e.string = "rank_no_people".ToUILocale()
                    }), this.TitleLabel.string = "allianceTest_HeroesDetails".ToUILocale(), this.BossWeaknessLabel.string = "allianceTest_damageAdditionToBoss".ToUILocale(), this.BossSkillLabel.string = "allianceTest_BossSkill".ToUILocale(), this.DamageRankLabel.string = "allianceTest_bossDamageRank".ToUILocale(), this.ChaseAndAttackLabel.string = "allianceTestPanel_canAttack".ToUILocale()
                }, t.prototype.OnEvent = function() {
                    this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this)
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = this,
                        t = new u.Req_Alliance_TestRank;
                    y.RpcComponent.Instance.Call(t, function(t) {
                        0 != [t.Rank, t.Rank1, t.Rank2, t.Rank3][e._index + 1].length ? (e.Close(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.AllianceTestRankPanel.Path, e._bossNameArray, [t.Rank, t.Rank1, t.Rank2, t.Rank3], t.MyRank, e._index + 1)) : p.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())
                    })
                }, t.prototype.OnChallengeButtonClick = function() {
                    l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_ALLIANCE_CHALLENGE), this.Close()
                }, t.prototype.OnSkillNodeTouch = function(e) {
                    var t = Number.parseInt(e.target.name);
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.SkillTipsPanel.Path, t, e.target)
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._cardPrefab);
                    e.setParent(this.BossCardContainer), this._bossCard = e.getComponent(f.default)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._bossLevel = t[0], this._bossName = t[1], this._remainChallengeTimes = t[2], this._skillPrefab = t[3], this._bossHeroBase = t[4], this._bossRankData = t[5], this._maxHPCount = t[6][0], this._curHPCount = t[6][1], this._bossNameArray = t[7], this._index = t[8], this._heroStar = t[9]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.VariedValueAssign()
                }, t.prototype.VariedValueAssign = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function() {
                            if (this.BossWeaknessAttr.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_" + this._enemyElementSpriteName[this._bossHeroBase.ElementType]), this.BossWeaknessDesc.string = "allianceTest_bossWeaknessDesc".ToUILocale().Fmt(("hero_element_" + this._enemyElement[this._bossHeroBase.ElementType]).ToUILocale(), y.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceTestRestrain") / 10), this.BossLevelAndNameLabel.string = "allianceTest_BossLevelAndName".ToUILocale().Fmt(this._bossLevel, this._bossName), this.RemainChallengeTagTime.string = "allianceTest_remainChallengeTime".ToUILocale().Fmt(this._remainChallengeTimes), this.ChaseAndAttackTag.active = this._curHPCount <= 0, this._skillComponentArray.length < this._bossHeroBase.Skills.length) {
                                for (n = 0; n < this._skillComponentArray.length; n++) this._skillComponentArray[n].node.active = !0, this._skillComponentArray[n].Init(this._bossHeroBase.Skills[n].Items[0]), this._skillComponentArray[n].name = this._bossHeroBase.Skills[n].Items[0].toString();
                                for (n = this._skillComponentArray.length; n < this._bossHeroBase.Skills.length; n++)(e = cc.instantiate(this._skillPrefab)).setParent(this.SkillContainer), t = e.getComponent(h.default), this._skillComponentArray.push(t), t.Init(this._bossHeroBase.Skills[n].Items[0]), e.name = this._bossHeroBase.Skills[n].Items[0].toString()
                            } else {
                                for (n = 0; n < this._bossHeroBase.Skills.length; n++) this._skillComponentArray[n].node.active = !0, this._skillComponentArray[n].Init(this._bossHeroBase.Skills[n].Items[0]), this._skillComponentArray[n].name = this._bossHeroBase.Skills[n].Items[0].toString();
                                for (n = this._bossHeroBase.Skills.length; n < this._skillComponentArray.length; n++) this._skillComponentArray[n].node.active = !1
                            }
                            for (n = 0; n < this._bossRankData.length; n++) this.HollowLabel[n].node.active = !1, this.RankNameLabel[n].node.parent.active = !0, this.RankNameLabel[n].string = this._bossRankData[n].PlayerInfo.Name, this.RankDamageValueLabel[n].string = "x" + this._bossRankData[n].Value;
                            for (n = this._bossRankData.length; n < this.RankNameLabel.length; n++) this.RankNameLabel[n].node.parent.active = !1, this.HollowLabel[n].node.active = !0;
                            return this._bossCard.SetHP(this._maxHPCount, this._curHPCount, !0).SetAttr("element_" + this._elementSpriteName[this._bossHeroBase.ElementType]).SetCard(this._bossHeroBase.Id, this._heroStar), [2]
                        })
                    })
                }, i([I(cc.Label)], t.prototype, "TitleLabel", void 0), i([I(cc.Label)], t.prototype, "BossLevelAndNameLabel", void 0), i([I(cc.Label)], t.prototype, "BossWeaknessLabel", void 0), i([I(cc.Label)], t.prototype, "BossSkillLabel", void 0), i([I(cc.Label)], t.prototype, "DamageRankLabel", void 0), i([I({
                    type: [cc.Label]
                })], t.prototype, "HollowLabel", void 0), i([I({
                    type: [cc.Label]
                })], t.prototype, "RankNameLabel", void 0), i([I({
                    type: [cc.Label]
                })], t.prototype, "RankDamageValueLabel", void 0), i([I(cc.Label)], t.prototype, "RemainChallengeTagTime", void 0), i([I(cc.Label)], t.prototype, "ChallengeButtonLabel", void 0), i([I(cc.Button)], t.prototype, "DetailButton", void 0), i([I(cc.Button)], t.prototype, "ChallengeButton", void 0), i([I(cc.Sprite)], t.prototype, "BossWeaknessAttr", void 0), i([I(cc.Label)], t.prototype, "BossWeaknessDesc", void 0), i([I(cc.Node)], t.prototype, "SkillContainer", void 0), i([I(cc.Node)], t.prototype, "BossCardContainer", void 0), i([I(cc.Node)], t.prototype, "ChaseAndAttackTag", void 0), i([I(cc.Label)], t.prototype, "ChaseAndAttackLabel", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./AllianceTestBossCard": "AllianceTestBossCard"
    }],
    AllianceTestPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a9b053csNtIIrdFoC1bgtw0", "AllianceTestPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../ShareConsts/BattleConsts"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/Components"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("./NodePool"),
            I = e("../Battle/BattleManager"),
            _ = e("../../../Util/TimeUtil"),
            C = e("../../Components/Components"),
            v = e("./CommonPriviledgeTipComponent"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../Components/CustomProgressBar"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RedPacketButton = null, t.RankButton = null, t.TestPassButton = null, t.ReturnButton = null, t.RuleButton = null, t.TitleLabel = null, t.LevelRichText = null, t.ChooseHeroTag = null, t.RemainderTimesRichText = null, t.RedRewardButtonLabel = null, t.DamageRankButtonLabel = null, t.PassRewardButtonLabel = null, t.BossContainerArray = [], t.CoverContainerArray = [], t.BossLevelLabelArray = [], t.BossAttrSpriteArray = [], t.BossNameLabelArray = [], t.BossHPProgressArray = [], t.BossBattleStateSpriteArray = [], t.BossHitStateSpriteArray = [], t.BossHitStateLabel = [], t.MessageContainer = null, t.BossArray = [], t.PassRedDot = null, t.PriviledgeNode = null, t._bossLevelArray = [], t._bossNameArray = [], t._bossHeroBaseArray = [], t._bossHeroIdArray = [], t._bossHeroStarLevelArray = [], t._bossAttrStringArray = [], t._bossRankDataArray = [], t._displayRedArray = [], t._tweens = [], t._numberToAttrSpriteName = ["", "element_heart", "element_power", "element_tech", "element_break", "element_fight"], t._messageLimit = 3, t._messageGap = 50, t._messageTimeCost = .5, t._messageInterval = 2, t._messageArray = [], t._firstCast = !0, t._lastLength = 0, t._bossHPBarCapacityArray = [], t._yellowColor = new cc.Color(255, 230, 133), t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_ALLIANCE_CHALLENGE, this.OnChallengeButtonClick, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_ALLIANCE_TEST_GET_PACK, this.OnGetPack, this)
                }, t.prototype.onDisable = function() {
                    this.BossContainerArray.forEach(function(e) {
                        e.destroyAllChildren()
                    }), this.MessageContainer.removeAllChildren(), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ALLIANCE_CHALLENGE, this.OnChallengeButtonClick), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ALLIANCE_TEST_GET_PACK, this.OnGetPack, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e = this.LoadDynamicAsset("AllianceTestPanel/Component/Message", cc.Prefab), t = this.LoadDynamicAsset(p.BundlePath.SkillItemComponent, cc.Prefab), n = this.LoadDynamicAsset("AllianceTestPanel/Component/BossCover", cc.Prefab), o = this.LoadDynamicAsset("CommonPanel/SubItems/CommonPriviledgeTipComponent", cc.Prefab), [4, Promise.all([e, t, n, o]).then(function(e) {
                                        r._messagePrefab = e[0], r._skillComponentPrefab = e[1], r._coverPrefab = e[2], r._priviledgePrefab = e[3]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OnEvent(), this.MultiLanguageAssign(), this._messagePool = new m.default(this._messagePrefab), this._coverPool = new m.default(this._coverPrefab), this._priviledgeNode || (this._priviledgeNode = cc.instantiate(this._priviledgePrefab), this._priviledgeNode.parent = this.PriviledgeNode), this._priviledgeNode.getComponent(v.default).InitData(8, 730)
                }, t.prototype.SetData = function(e) {
                    if (this._testEnter = e[0], this._testConfig = f.ConfigDataComponent.Instance.GetConfigById(h.AllianceTest_Config, this._testEnter.TestId), this._testTypeConfig = f.ConfigDataComponent.Instance.GetConfigById(h.AllianceTestType_Config, this._testConfig.Type), f.DataCenter.Instance.SetTempData("AllianceTest_testTypeConfig_Id", this._testTypeConfig.Id), f.DataCenter.Instance.SetTempData("AllianceTest_testTypeConfig_HpCount", this._testTypeConfig.HpCount), this._bossHPBarCapacityArray = this._testTypeConfig.Hp, this._bossHPBarCapacityArray.length < this._testTypeConfig.HpCount)
                        for (var t = this._bossHPBarCapacityArray[this._bossHPBarCapacityArray.length - 1], n = this._bossHPBarCapacityArray.length; n < this._testTypeConfig.HpCount; n++) this._bossHPBarCapacityArray[n] = t;
                    for (n = 0; n < 3; n++) this._testEnter.RedPacketCount[n] <= 0 && this.OnGetPack(n);
                    this._noticeModel = this._testEnter.Notice
                }, t.prototype.OnEvent = function() {
                    var e = this;
                    this.RedPacketButton.node.on("click", this.OnRedPacketButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.TestPassButton.node.on("click", this.OnTestPassButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.BossArray.forEach(function(t) {
                        t.on(cc.Node.EventType.TOUCH_END, e.OnBossTouch, e)
                    })
                }, t.prototype.MultiLanguageAssign = function() {
                    this.TitleLabel.string = "AllianceTest".ToUILocale(), this.RedRewardButtonLabel.string = "allianceTest_redReward".ToUILocale(), this.PassRewardButtonLabel.string = "allianceTest_passReward".ToUILocale(), this.DamageRankButtonLabel.string = "allianceTest_damageRank".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this._isRedisplay = t;
                    var o = new d.Req_Alliance_TestEnter;
                    f.RpcComponent.Instance.Call(o, function(e) {
                        n.SetData([e]), n.VariedValueAssign(), n.SetRedDot(), n.SetBosses(), n.SetRedButton()
                    }, function() {
                        y.UIUtlity.ShowHintPanel("hint".ToUILocale(), "error_internet".ToUILocale(), null, null, "ok".ToUILocale(), function() {
                            l.UIManager.Instance.BackUIPanel()
                        })
                    })
                }, t.prototype.VariedValueAssign = function() {
                    var e, t = this;
                    this._remainChallengeTimes = this._testTypeConfig.Count - f.DataCenter.Instance.GetIntData(c.UserDataKey.AllianceTestCount), this._remainChallengeTimes > 0 ? (e = "<color=#6EEEA7>" + this._remainChallengeTimes + "</c>", this.ChooseHeroTag.string = "allianceTest_chooseYourHero".ToUILocale()) : (e = "<color=#FF403E>0</c>", this.ChooseHeroTag.string = "allianceTest_chanceRunOut".ToUILocale()), this.RemainderTimesRichText.string = "allianceTest_remainderTime".ToUILocale().Fmt(e), this.LevelRichText.string = "EndlessTest".ToUILocale().Fmt(this._testTypeConfig.Id), this._bossRankDataArray = [this._testEnter.Rank1, this._testEnter.Rank2, this._testEnter.Rank3], this._isChaseMode = !0;
                    for (var n = 0; n < this._testEnter.Hp.length; n++)
                        if (this._testEnter.Hp[n] > 0) {
                            this._isChaseMode = !1;
                            break
                        } if (this._isChaseMode) this.CoverContainerArray.forEach(function(e) {
                        e.childrenCount > 0 && t._coverPool.Put(e.children[0])
                    });
                    else
                        for (n = 0; n < this._testEnter.Hp.length; n++) this._testEnter.Hp[n] <= 0 ? 0 == this.CoverContainerArray[n].childrenCount && this._coverPool.Get().setParent(this.CoverContainerArray[n]) : this.CoverContainerArray[n].childrenCount > 0 && this._coverPool.Put(this.CoverContainerArray[n].children[0]);
                    if (!this._isRedisplay) {
                        for (this._messageArray = [null], n = 1; n <= this._messageLimit; n++) this._messageArray[n] = this._messagePool.Get();
                        this._messageArray[1].position = cc.v3(0, 25)
                    }
                }, t.prototype.SetRedDot = function() {
                    if (!_.TimeUtil.GetHour(C.RpcComponent.Instance.ServerTime)) return this.PassRedDot.active = !1, void f.DataCenter.Instance.SetTempData("AllianceTest_PassRedDot", this.PassRedDot.active);
                    this.PassRedDot.active = this._isChaseMode && 0 == f.DataCenter.Instance.GetIntData(c.UserDataKey.AllianceTestPass), f.DataCenter.Instance.SetTempData("AllianceTest_PassRedDot", this.PassRedDot.active)
                }, t.prototype.SetBosses = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, p, d, g, m, I, _ = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    for (e = !1, t = [], I = 0; I < this.BossContainerArray.length; I++) this.BossHPProgressArray[I].progress = this._testEnter.Hp[I] / this._testTypeConfig.HpCount, this.BossBattleStateSpriteArray[I].enabled = this._testEnter.Hp[I] > 0, this._testEnter.Hp[I] > 0 && (e = !0), n = f.ConfigDataComponent.Instance.GetConfigById(h.MapBase_Config, this._testConfig.Monsters[I]), o = n.Heros[0].Items[1], this._bossLevelArray[I] = n.Strength[1], this._bossHeroIdArray[I] = o, this._bossHeroStarLevelArray[I] = n.Strength[0], this.BossLevelLabelArray[I].string = "Lv." + n.Strength[1], r = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, o), this._bossHeroBaseArray[I] = r, this._bossAttrStringArray[I] = this._numberToAttrSpriteName[r.ElementType], this.BossAttrSpriteArray[I].spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this._numberToAttrSpriteName[r.ElementType]), this._bossNameArray[I] = f.ConfigDataComponent.Instance.GetLocale("HeroBase_name_" + r.Id), this.BossNameLabelArray[I].string = this._bossNameArray[I], t[I] = this.LoadDynamicAsset("Hero_" + r.Model + "/HeroAvatar"), this._testEnter.PreviousTestId && (i = f.ConfigDataComponent.Instance.GetConfigById(h.AllianceTest_Config, this._testEnter.PreviousTestId), a = f.ConfigDataComponent.Instance.GetConfigById(h.MapBase_Config, i.Monsters[I]), c = a.Heros[0].Items[1], this._bossLevelArray[I + 3] = a.Strength[1], this._bossHeroIdArray[I + 3] = c, this._bossHeroStarLevelArray[I + 3] = a.Strength[0], p = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, c), this._bossHeroBaseArray[I + 3] = p, this._bossAttrStringArray[I + 3] = this._numberToAttrSpriteName[p.ElementType], this._bossNameArray[I + 3] = f.ConfigDataComponent.Instance.GetLocale("HeroBase_name_" + p.Id), this._testEnter.PreviousRank.forEach(function(e, t) {
                                        _._bossRankDataArray[t + 3] || (_._bossRankDataArray[t + 3] = [e])
                                    }));
                                    return [4, Promise.all(t).then(function(e) {
                                        if (_.isValid)
                                            for (var t = 0; t < e.length; t++) {
                                                var n = cc.instantiate(e[t]);
                                                _.BossContainerArray[t].destroyAllChildren(), n.setParent(_.BossContainerArray[t]);
                                                var o = n.getComponent(sp.Skeleton),
                                                    r = b.default.Instance.GetHeroDefaultStarLevelSkinName(_._bossHeroIdArray[t], _._bossHeroStarLevelArray[t]);
                                                o.setSkin(r), o.setAnimation(0, u.SkillAnimationType.Standby, !0)
                                            } else e.forEach(function(e) {
                                                l.AssetsManager.Instance.UnloadAsset(e)
                                            })
                                    })];
                                case 1:
                                    if (s.sent(), !this.isValid) return [2];
                                    for (d = e ? "allianceTestPanel_killed" : "allianceTestPanel_canAttack", g = e ? "tagBg1" : "tagBg4", m = e ? this._yellowColor : cc.Color.WHITE, I = 0; I < this.BossHitStateSpriteArray.length; I++) this.BossHitStateSpriteArray[I].node.active = this._testEnter.Hp[I] <= 0, this.BossHitStateSpriteArray[I].spriteFrame = y.UIUtlity.COMMON_ATLAS5.getSpriteFrame(g), this.BossHitStateLabel[I].string = d.ToUILocale(), this.BossHitStateLabel[I].node.color = m;
                                    return this._isRedisplay || this.SetBroadCast(), [2]
                            }
                        })
                    })
                }, t.prototype.SetBroadCast = function() {
                    var e = this;
                    this.unscheduleAllCallbacks();
                    var t = 0;
                    !this._firstCast && this._noticeModel.Normal.length < this._messageLimit && this._noticeModel.Normal.length == this._lastLength || 0 == this._noticeModel.Normal.length ? this.schedule(function() {
                        e.GetMessage()
                    }, 30 * this._messageInterval) : (this._firstCast = !1, this.schedule(function() {
                        if (null != e._testEnter) {
                            var n = e._noticeModel.Normal[t],
                                o = n.IntParams[1],
                                r = n.IntParams[0],
                                i = e._messagePool.Get();
                            i.setParent(e.MessageContainer), i.opacity = 255, i.getComponent(cc.RichText).string = "<outline width=3 color=#202434>" + "allianceTest_broadCast".ToUILocale().Fmt("<color = #6EEEA7>" + n.StringParams + "</c>", "<color = #fed94a>" + e.BossNameLabelArray[o].string + "</c>", "<img src = 'flag' width = 67 height = 59 align = center/><color = #FFE685>x" + r) + "</c></o>", e.PushACast(i), ++t >= e._noticeModel.Normal.length && (e.unscheduleAllCallbacks(), e._lastLength = e._noticeModel.Normal.length, e.GetMessage())
                        } else e.unscheduleAllCallbacks()
                    }, this._messageInterval))
                }, t.prototype.GetMessage = function() {
                    var e = this,
                        t = new d.Req_Alliance_TestEnter;
                    f.RpcComponent.Instance.Call(t, function(t) {
                        e.SetData([t]), e.SetBroadCast()
                    })
                }, t.prototype.PushACast = function(e) {
                    var t = this;
                    if (this._messageArray[0] = e, null != this._messageArray[1]) {
                        e.setPosition(cc.v3(0, 25 - this._messageGap));
                        for (var n = 0; n < this._messageLimit - 1; n++) {
                            if (null == this._messageArray[n]) return;
                            var o = cc.tween(this._messageArray[n]).by(this._messageTimeCost, {
                                position: cc.v3(0, this._messageGap)
                            }).start();
                            this._tweens.push(o)
                        }
                        var r = function(e) {
                                if (null == i._messageArray[e]) return {
                                    value: void 0
                                };
                                var n = cc.tween(i._messageArray[e]).by(i._messageTimeCost, {
                                    position: cc.v3(0, i._messageGap),
                                    opacity: -150
                                }).call(function() {
                                    if (e == t._messageLimit) {
                                        t._messagePool.Put(t._messageArray[t._messageLimit]);
                                        for (var n = t._messageLimit; n > 0; n--) t._messageArray[n] = t._messageArray[n - 1];
                                        t._messageArray[0] = null
                                    }
                                }).start();
                                i._tweens.push(n)
                            },
                            i = this;
                        for (n = this._messageLimit - 1; n <= this._messageLimit; n++) {
                            var a = r(n);
                            if ("object" == typeof a) return a.value
                        }
                    }
                }, t.prototype.SetRedButton = function() {
                    this._displayRedArray = [];
                    for (var e = 0; e < 6; e++)
                        if (e < 3) this._testEnter.Hp[e] <= 0 && !this.IsGetStar(this._testEnter.RedPacket, e) && this._testEnter.RedPacketCount[e] && this._displayRedArray.push(e);
                        else {
                            var t = 0;
                            this._testEnter.PreviousRank[e - 3] && (t = this._testEnter.PreviousRank[e - 3].PlayerInfo.Uid), this._testEnter.PreviousTestId && this._testEnter.RedPacketCount[e] && !this.IsGetStar(this._testEnter.RedPacket, e) && t > 0 && this._displayRedArray.push(e)
                        } var n = f.DataCenter.Instance.GetIntData(c.UserDataKey.AllianceTestRedPacket);
                    this.RedPacketButton.node.active = this._displayRedArray.length > 0 && (0 == n || n == f.DataCenter.Instance.AllianceId), f.DataCenter.Instance.SetTempData("AllianceTest_ChestRedDot", this.RedPacketButton.node.active)
                }, t.prototype.OnGetPack = function(e) {
                    0 == (this._testEnter.RedPacket >> e & 1) && (this._testEnter.RedPacket += 1 << e)
                }, t.prototype.OnChallengeButtonClick = function() {
                    n.CanChallengeBoss() ? n.StartBattle(this._testConfig, this._bossIndex) : y.UIUtlity.ShowFloatingHint("allianceTest_limit_challenge".ToUILocale())
                }, t.prototype.OnRedPacketButtonClick = function() {
                    for (var e = [], t = [], n = [], o = [], r = [], i = [0, 0, 0, 0, 0, 0], a = [], s = 0; s < this._displayRedArray.length; s++) {
                        var c = this._displayRedArray[s];
                        i[c] = 1, e[c] = this._bossNameArray[c], t[c] = this._bossRankDataArray[c][0].PlayerInfo.Name, n[c] = this._bossRankDataArray[c][0].PlayerInfo.Level, o[c] = this._bossRankDataArray[c][0].PlayerInfo.HeadIcon, r[c] = this._bossRankDataArray[c][0].PlayerInfo.HeadFrame
                    }
                    var u = 0;
                    this._testTypeConfig.RedPacket.forEach(function(e) {
                        u += e.Items[1]
                    });
                    for (var d = 0; d < 3; d++) a.push(u);
                    if (this._testEnter.PreviousTestId) {
                        var y = f.ConfigDataComponent.Instance.GetConfigById(h.AllianceTest_Config, this._testEnter.PreviousTestId),
                            g = f.ConfigDataComponent.Instance.GetConfigById(h.AllianceTestType_Config, y.Type),
                            m = 0;
                        for (g.RedPacket.forEach(function(e) {
                                m += e.Items[1]
                            }), d = 3; d < 6; d++) a.push(m)
                    }
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceTestRedPacketPanel.Path, e, t, n, i, a, this._testTypeConfig.ItemId, this.IIntArrayToArray(this._testTypeConfig.RedPacket), o, r)
                }, t.prototype.OnRankButtonClick = function() {
                    var e = this,
                        t = new d.Req_Alliance_TestRank;
                    f.RpcComponent.Instance.Call(t, function(t) {
                        0 != t.Rank.length ? l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceTestRankPanel.Path, e._bossNameArray, [t.Rank, t.Rank1, t.Rank2, t.Rank3], t.MyRank, 0) : y.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())
                    })
                }, t.CanChallengeBoss = function() {
                    return !(23 == _.TimeUtil.GetHour(C.RpcComponent.Instance.ServerTime) && _.TimeUtil.GetMinute(C.RpcComponent.Instance.ServerTime) >= 30)
                }, t.prototype.OnTestPassButtonClick = function() {
                    n.CanChallengeBoss() ? l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceTestPassRewardHint.Path, this._testTypeConfig.Id, this._testTypeConfig.HpCount, this._testEnter.Hp, this._bossHeroIdArray, this._bossAttrStringArray, f.DataCenter.Instance.GetIntData(c.UserDataKey.AllianceTestPass) > 0, this.IIntArrayToArray(this._testTypeConfig.Rewards), this._bossHeroStarLevelArray) : y.UIUtlity.ShowFloatingHint("allianceTest_limit_challenge".ToUILocale())
                }, t.prototype.OnSettleButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceTestAfterChallengePanel.Path, this._testTypeConfig.Id, 10, this._bossLevelArray[this._bossIndex], this._bossNameArray[this._bossIndex], this._testTypeConfig.HpCount, this._testTypeConfig.HpCount - 10, [
                        [1, 1e3],
                        [3, 200],
                        [22, 3e3]
                    ])
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "AllianceTest".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["allianceTest_RuleText".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBossTouch = function(e) {
                    n.CanChallengeBoss() ? this._remainChallengeTimes <= 0 ? y.UIUtlity.ShowFloatingHint("allianceTest_todayRunoutWaitForTomorrow".ToUILocale()) : (this._bossIndex = Number.parseInt(e.target.name), !this._isChaseMode && this._testEnter.Hp[this._bossIndex] <= 0 ? y.UIUtlity.ShowFloatingHint("allianceTest_killOthersFirst".ToUILocale()) : l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceTestDetailHint.Path, this._bossLevelArray[this._bossIndex], this.BossNameLabelArray[this._bossIndex].string, this._remainChallengeTimes, this._skillComponentPrefab, this._bossHeroBaseArray[this._bossIndex], this._bossRankDataArray[this._bossIndex], [this._testTypeConfig.HpCount, this._testEnter.Hp[this._bossIndex]], this._bossNameArray, this._bossIndex, this._bossHeroStarLevelArray[this._bossIndex])) : y.UIUtlity.ShowFloatingHint("allianceTest_limit_challenge".ToUILocale())
                }, t.prototype.IsGetStar = function(e, t) {
                    return !!((e & Math.pow(2, t)) / Math.pow(2, t))
                }, t.prototype.IIntArrayToArray = function(e) {
                    for (var t = [], n = 0; n < e.length; n++) t[n] = e[n].Items;
                    return t
                }, t.IUserItemModelToArray = function(e) {
                    for (var t = [], n = 0; n < e.length; n++) t[n] = [e[n].ItemId, e[n].Count];
                    return t
                }, t.prototype.GetRedPacketItemId = function() {
                    return this._testTypeConfig.ItemId
                }, t.prototype.GetRedPacketItemPortion = function() {
                    return this.IIntArrayToArray(this._testTypeConfig.RedPacket)
                }, t.prototype.onDestroy = function() {
                    var e, t;
                    this._tweens.forEach(function(e) {
                        e.stop()
                    }), this.unscheduleAllCallbacks(), null === (e = this._messagePool) || void 0 === e || e.Clear(), null === (t = this._coverPool) || void 0 === t || t.Clear()
                }, t.InitBattle = function() {
                    var e = c.MapType.AllianceTest;
                    l.Game.EventDispatcher.Only(c.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(c.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(c.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(c.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(c.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.RestartBattle = function() {
                    n.StartBattle(n.CurrentTestConfig, n.CurrentBossIndex)
                }, t.StartBattle = function(e, t) {
                    n.CurrentTestConfig = e, n.CurrentBossIndex = t, l.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattleFormationPanel.Path, function(e) {
                        if (n.CanChallengeBoss()) {
                            var t = new d.Req_Alliance_TestChallenge;
                            t.Index = n.CurrentBossIndex, t.Formations = [e[0]], f.RpcComponent.Instance.Call(t, function(e) {
                                var t = {
                                    BossHPBarCapacityArray: f.ConfigDataComponent.Instance.GetConfigById(h.AllianceTestType_Config, n.CurrentTestConfig.Type).Hp,
                                    ShowBossHPBarCount: !0,
                                    CanSkipPlay: !0,
                                    CanPlayInBackground: !1
                                };
                                I.BattleManager.Instance.StartPlay(e.Report, t)
                            })
                        } else y.UIUtlity.ShowFloatingHint("allianceTest_limit_challenge".ToUILocale())
                    }, [n.CurrentTestConfig.Monsters[n.CurrentBossIndex]])
                }, t.SettleBattle = function(e) {
                    var t = new d.Req_Map_BattleSettlement;
                    t.MapType = c.MapType.AllianceTest, f.RpcComponent.Instance.Call(t, function(t) {
                        I.BattleManager.Instance.ShowSettlePanel(p.PanelConfig.AllianceTestAfterChallengePanel.Path, t.ExtraParam[1].Items[0], t.ExtraParam[0].Items[1], t.ExtraParam[0].Items[2], t.ExtraParam[0].Items[0], n.IUserItemModelToArray(t.Rewards), e.Reports[0])
                    })
                }, t.CancelBattle = function() {
                    var e = new d.Req_Map_CancelChallenge;
                    e.MapType = c.MapType.AllianceTest, f.RpcComponent.Instance.Call(e, null)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(p.PanelConfig.AllianceTestPanel.Path)
                }, t.CurrentBossIndex = 0, t.CurrentTestConfig = null, i([A(cc.Button)], t.prototype, "RedPacketButton", void 0), i([A(cc.Button)], t.prototype, "RankButton", void 0), i([A(cc.Button)], t.prototype, "TestPassButton", void 0), i([A(cc.Button)], t.prototype, "ReturnButton", void 0), i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.Label)], t.prototype, "TitleLabel", void 0), i([A(cc.RichText)], t.prototype, "LevelRichText", void 0), i([A(cc.Label)], t.prototype, "ChooseHeroTag", void 0), i([A(cc.RichText)], t.prototype, "RemainderTimesRichText", void 0), i([A(cc.Label)], t.prototype, "RedRewardButtonLabel", void 0), i([A(cc.Label)], t.prototype, "DamageRankButtonLabel", void 0), i([A(cc.Label)], t.prototype, "PassRewardButtonLabel", void 0), i([A({
                    type: [cc.Node]
                })], t.prototype, "BossContainerArray", void 0), i([A({
                    type: [cc.Node]
                })], t.prototype, "CoverContainerArray", void 0), i([A({
                    type: [cc.Label]
                })], t.prototype, "BossLevelLabelArray", void 0), i([A({
                    type: [cc.Sprite]
                })], t.prototype, "BossAttrSpriteArray", void 0), i([A({
                    type: [cc.Label]
                })], t.prototype, "BossNameLabelArray", void 0), i([A({
                    type: [S.default]
                })], t.prototype, "BossHPProgressArray", void 0), i([A({
                    type: [cc.Sprite]
                })], t.prototype, "BossBattleStateSpriteArray", void 0), i([A({
                    type: [cc.Sprite]
                })], t.prototype, "BossHitStateSpriteArray", void 0), i([A({
                    type: [cc.Label]
                })], t.prototype, "BossHitStateLabel", void 0), i([A(cc.Node)], t.prototype, "MessageContainer", void 0), i([A({
                    type: [cc.Node]
                })], t.prototype, "BossArray", void 0), i([A(cc.Node)], t.prototype, "PassRedDot", void 0), i([A(cc.Node)], t.prototype, "PriviledgeNode", void 0), n = i([P], t)
            }(l.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "./CommonPriviledgeTipComponent": "CommonPriviledgeTipComponent",
        "./NodePool": "NodePool"
    }],
    AllianceTestPassRewardHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "97e814vPYtEb5ISY70oGHTu", "AllianceTestPassRewardHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/AllianceTestBossCard"),
            y = e("../Components/ItemComponent"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../../ShareConsts/EnumType"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.Title = null, t.LevelName = null, t.PassRewardLabel = null, t.KillingRewardTip = null, t.BattleLabel = null, t.GetLabel = null, t.AlreadyGotLabel = null, t.BossCardContainerArray = [], t.BattlingNode = null, t.GetButton = null, t.AlreadyGetButton = null, t.RewardLayout = null, t.RewardScrollView = null, t._initCustomLayout = !0, t._bossCardArray = [], t._itemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    "content91" == t.parent.name && d.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("AllianceTestPanel/Component/AllianceTestBossCard"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._cardPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.GetButton.node.on("click", this.OnGetButtonClick, this)
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "allianceTest_passReward".ToUILocale(), this.PassRewardLabel.string = "allianceTest_passReward".ToUILocale(), this.KillingRewardTip.string = "allianceTest_killingAllBossGetReward".ToUILocale(), this.BattleLabel.string = "allianceTest_battling".ToUILocale(), this.AlreadyGotLabel.string = "already_receive".ToUILocale(), this.GetLabel.string = "receive".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    for (var e = 0; e < this.BossCardContainerArray.length; e++) {
                        var t = cc.instantiate(this._cardPrefab);
                        t.setParent(this.BossCardContainerArray[e]), this._bossCardArray[e] = t.getComponent(f.default)
                    }
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._mapLevel = t[0], this._maxBloodTubeNumber = t[1], this._curBloodTubeNumberArray = t[2], this._bossHeroIdArray = t[3], this._bossAttrStringArray = t[4], this._hasGotReward = t[5] || 1 == p.DataCenter.Instance.GetIntData(m.UserDataKey.AllianceTestPass), this._rewardsArray = t[6], this._bossHeroStarArray = t[7]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.VariedValueAssign(), this.InitCustomLayout())
                }, t.prototype.VariedValueAssign = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            for (this.LevelName.string = "allianceTest_endlessTest".ToUILocale().Fmt(this._mapLevel), this.BattlingNode.active = !this.CanGetReward(), this.GetButton.node.active = this.CanGetReward() && !this._hasGotReward, this.AlreadyGetButton.node.active = this.CanGetReward() && this._hasGotReward, e = 0; e < this._bossCardArray.length; e++) this._bossCardArray[e].SetHP(this._maxBloodTubeNumber, this._curBloodTubeNumberArray[e], !0).SetAttr(this._bossAttrStringArray[e]).SetCard(this._bossHeroIdArray[e], this._bossHeroStarArray[e]);
                            return [2]
                        })
                    })
                }, t.prototype.InitCustomLayout = function() {
                    for (var e = this._rewardsArray.length, t = 0; t < e; t++) {
                        var n = this._itemComponents[t];
                        null == n && ((n = cc.instantiate(this._itemPrefab).getComponent(y.ItemComponent)).node.setParent(this.RewardLayout), this._itemComponents.push(n)), n.node.active = !0;
                        var o = this._rewardsArray[t][0],
                            r = this._rewardsArray[t][1],
                            i = p.ConfigDataComponent.Instance.GetConfigById(g.ItemBase_Config, this._rewardsArray[t][0]),
                            a = {
                                ItemId: o,
                                Count: r
                            };
                        n.Init(a, i.Star ? y.ItemComponentType.ItemWithStar : y.ItemComponentType.ItemCommon), n.node.name = a.ItemId.toString()
                    }
                    for (var s = e; s < this._itemComponents.length; s++) this._itemComponents[s].node.active = !1;
                    this._rewardsArray.length < 6 ? (this.RewardScrollView.enabled = !1, this.RewardLayout.x = 0) : this.RewardScrollView.enabled = !0
                }, t.prototype.CanGetReward = function() {
                    for (var e = 0; e < this._curBloodTubeNumberArray.length; e++)
                        if (this._curBloodTubeNumberArray[e] > 0) return !1;
                    return !0
                }, t.prototype.OnGetButtonClick = function() {
                    var e = this,
                        t = new u.Req_Alliance_TestPass;
                    p.RpcComponent.Instance.Call(t, function(t) {
                        d.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.AlreadyGetButton.node.active = !0, e.GetButton.node.active = !1, e.BattlingNode.active = !1
                    })
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Label)], t.prototype, "LevelName", void 0), i([C(cc.Label)], t.prototype, "PassRewardLabel", void 0), i([C(cc.Label)], t.prototype, "KillingRewardTip", void 0), i([C(cc.Label)], t.prototype, "BattleLabel", void 0), i([C(cc.Label)], t.prototype, "GetLabel", void 0), i([C(cc.Label)], t.prototype, "AlreadyGotLabel", void 0), i([C({
                    type: [cc.Node]
                })], t.prototype, "BossCardContainerArray", void 0), i([C(cc.Node)], t.prototype, "BattlingNode", void 0), i([C(cc.Button)], t.prototype, "GetButton", void 0), i([C(cc.Button)], t.prototype, "AlreadyGetButton", void 0), i([C(cc.Node)], t.prototype, "RewardLayout", void 0), i([C(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AllianceTestBossCard": "AllianceTestBossCard",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AllianceTestRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "814f44W4uxPq40Iy3tJhLTa", "AllianceTestRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../Components/CustomToggle"),
            p = e("../Components/RankDetailComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1, !1), t.Title = null, t.Toggles = [], t.CenterNode = null, t.ReturnButton = null, t._bossNameArray = [], t._repeatNumber = 2, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent"), [4, Promise.all([t]).then(function(e) {
                                        n._rankPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "allianceTest_titleDamageRank".ToUILocale(), this.Toggles[0].Init("allianceTest_damageTotalRank".ToUILocale())
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._rankPrefab);
                    e.setParent(this.CenterNode), this._rank_detail_item = e.getComponent(p.default)
                }, t.prototype.OnEvent = function() {
                    var e = this;
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.Toggles.forEach(function(t) {
                        t.node.on("toggle", e.OnToggleSwitch, e)
                    })
                }, t.prototype.OnReturnButtonClick = function() {
                    this.Close()
                }, t.prototype.OnToggleSwitch = function(e) {
                    var t = Number.parseInt(e.name);
                    this.SetUI(t)
                }, t.prototype.SetUI = function(e) {
                    this._rank_detail_item.SetUI(c.RankTypeId.AllianceTest, this._rankDatas[e], null, this._myRanks[e]), this._rank_detail_item.SetMyRankNodeY()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._bossNameArray = t[0], this._rankDatas = t[1], this._myRanks = t[2], this._showIndex = t[3]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.VariedValueAssign()
                }, t.prototype.VariedValueAssign = function() {
                    for (var e = 1; e < this.Toggles.length; e++) {
                        var t = this._bossNameArray[e - 1];
                        this.Toggles[e].Init(t)
                    }
                    for (e = 0; e < this.Toggles.length; e++) this.Toggles[e].SetInteractable(this._rankDatas[e].length > 0, "rank_empty_list".ToUILocale());
                    this.Toggles[this._showIndex].isChecked = !0, this.SetUI(this._showIndex)
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f({
                    type: [u.default]
                })], t.prototype, "Toggles", void 0), i([f(cc.Node)], t.prototype, "CenterNode", void 0), i([f(cc.Button)], t.prototype, "ReturnButton", void 0), i([h], t)
            }(l.BaseUIFullScreenPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    AllianceTestRedPacketPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bebc5yPJ4BN/Y2nNo65UDv4", "AllianceTestRedPacketPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../ShareConsts/ErrCode"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Desc = null, t.TestBigGod = null, t.SplitRedReward = null, t.PlayerHead = null, t.PlayerHeadFrame = null, t.PlayerName = null, t.PlayerLevel = null, t.GetButtonLabel = null, t.GetButton = null, t.MainNode = null, t.ChestEffect = null, t.ScrollView = null, t.BossToggles = [], t.ToggleLabels = [], t._toggleLabelNumber = 2, t._redPacketItemNumber = [], t._chosenIndexToArrayIndex = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    for (var e = 0; e < this.BossToggles.length; e++) this.BossToggles[e].node.on("toggle", this.OnToggleSwitch, this);
                    this.GetButton.node.on("click", this.OnGetButtonClick, this)
                }, t.prototype.onDisable = function() {
                    for (var e = 0; e < this.BossToggles.length; e++) this.BossToggles[e].node.off("toggle", this.OnToggleSwitch, this);
                    this.GetButton.node.off("click", this.OnGetButtonClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TestBigGod.string = "allianceTest_testBigGod".ToUILocale(), this.SplitRedReward.string = "allianceTest_redReward".ToUILocale(), this.GetButtonLabel.string = "allianceTest_clickAndGet".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._bossNames = t[0], this._playerNames = t[1], this._playerLevels = t[2], this._redPacketExistArray = t[3], this._redPacketItemNumber = t[4], this._rewardItemId = t[5], this._rewardItemPortion = t[6], this._playerHeads = t[7], this._playerHeadFrames = t[8]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.MainNode.active = !0;
                    var n = 0;
                    this._chosenIndexToArrayIndex = [];
                    for (var o = 0; o < this.BossToggles.length; o++)
                        if (this.BossToggles[o].node.active = 1 == this._redPacketExistArray[o], this.BossToggles[o].node.active) {
                            for (var r = 0; r < this._toggleLabelNumber; r++) this.ToggleLabels[o * this._toggleLabelNumber + r].string = this._bossNames[o];
                            this._chosenIndexToArrayIndex[n] = o, this.BossToggles[o].node.name = n.toString(), n++
                        } for (n <= 2 ? (this.ScrollView.enabled = !1, this.ScrollView.content.x = 0) : this.ScrollView.enabled = !0, n = 0; 1 != this._redPacketExistArray[n];) n++;
                    this.BossToggles[n].isChecked = !0, this.OnToggleSwitch(this.BossToggles[n])
                }, t.prototype.OnToggleSwitch = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._chosenIndex = Number.parseInt(e.name), t = this._chosenIndexToArrayIndex[this._chosenIndex], this.Desc.string = "allianceTest_congratulationDesc".ToUILocale().Fmt(this._bossNames[t]), this.PlayerName.string = this._playerNames[t], this.PlayerLevel.string = this._playerLevels[t].toString(), n = this.LoadDynamicAsset("UserInfo/Icon/" + this._playerHeads[t], cc.SpriteFrame), o = this.LoadDynamicAsset("UserInfo/Frame/" + this._playerHeadFrames[t], cc.SpriteFrame), [4, Promise.all([n, o]).then(function(e) {
                                        if (!r.isValid) return l.AssetsManager.Instance.UnloadAsset(e[0]), void l.AssetsManager.Instance.UnloadAsset(e[1]);
                                        r.PlayerHead.spriteFrame = e[0], r.PlayerHeadFrame.spriteFrame = e[1]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.OnGetButtonClick = function() {
                    var e = this,
                        t = new u.Req_Alliance_TestRedPacket;
                    t.Index = this._chosenIndexToArrayIndex[this._chosenIndex];
                    var n = this._chosenIndexToArrayIndex[this._chosenIndex],
                        o = 0;
                    this._redPacketItemNumber[n] && (o = this._redPacketItemNumber[n]), p.RpcComponent.Instance.Call(t, function(n) {
                        l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_ALLIANCE_TEST_GET_PACK, t.Index), null == n.Rewards || 0 == n.Rewards.length ? l.UIManager.Instance.ShowUIPanel(c.PanelConfig.SplitRedRewardHint.Path, e.PlayerName.string, o, 0, null, n.Rank, e._rewardItemId, e._bossNames[t.Index], e._rewardItemPortion, e._playerHeads[t.Index], e._playerHeadFrames[t.Index]) : (e.MainNode.active = !1, e._redPacketExistArray[t.Index] = 0, e.ChestEffect.node.parent.active = !0, e.ChestEffect.setAnimation(0, "UI_effect_gonghuishilian_baoxiang", !1), e.ChestEffect.setCompleteListener(function() {
                            e.ChestEffect.node.parent.active = !1, e.IsAllZero() && l.UIManager.Instance.BackUIPanel(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.SplitRedRewardHint.Path, e.PlayerName.string, o, n.Count, [n.Rewards[0].ItemId, n.Rewards[0].Count], n.Rank, e._rewardItemId, e._bossNames[t.Index], e._rewardItemPortion, e._playerHeads[t.Index], e._playerHeadFrames[t.Index])
                        }))
                    }, function(n) {
                        e._redPacketExistArray[t.Index] = 0, n == d.ErrCode.AllianceReceivedNoRedPacket && (e.IsAllZero() && l.UIManager.Instance.BackUIPanel(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.SplitRedRewardHint.Path, e.PlayerName.string, o, 0, null, null, e._rewardItemId, e._bossNames[e._chosenIndex], e._rewardItemPortion, e._playerHeads[e._chosenIndex], e._playerHeadFrames[e._chosenIndex]))
                    })
                }, t.prototype.IsAllZero = function() {
                    for (var e = this._redPacketExistArray, t = 0; t < e.length; t++)
                        if (e[t] > 0) return !1;
                    return !0
                }, i([g(cc.RichText)], t.prototype, "Desc", void 0), i([g(cc.Label)], t.prototype, "TestBigGod", void 0), i([g(cc.Label)], t.prototype, "SplitRedReward", void 0), i([g(cc.Sprite)], t.prototype, "PlayerHead", void 0), i([g(cc.Sprite)], t.prototype, "PlayerHeadFrame", void 0), i([g(cc.Label)], t.prototype, "PlayerName", void 0), i([g(cc.Label)], t.prototype, "PlayerLevel", void 0), i([g(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([g(cc.Button)], t.prototype, "GetButton", void 0), i([g(cc.Node)], t.prototype, "MainNode", void 0), i([g(sp.Skeleton)], t.prototype, "ChestEffect", void 0), i([g(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([g({
                    type: [cc.Toggle]
                })], t.prototype, "BossToggles", void 0), i([g({
                    type: [cc.Label]
                })], t.prototype, "ToggleLabels", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/ErrCode": "ErrCode",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components"
    }],
    AllianceTestRewardShell: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0365cbRQ85NNpIxl5akib8+", "AllianceTestRewardShell");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Label = null, t.ItemContainer = null, t
                }
                return r(t, e), i([l(cc.Label)], t.prototype, "Label", void 0), i([l(cc.Node)], t.prototype, "ItemContainer", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AllianceTestSplitRedListTip: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e4956Wo9PVGJYrHQMfMgg9A", "AllianceTestSplitRedListTip");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../Components/AllianceTestRewardShell"),
            d = e("../Components/ItemComponent"),
            h = e("./NodePool"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1, !1), t.PlayerHead = null, t.PlayerFrame = null, t.PlayerName = null, t.RewardTag = null, t.Desc = null, t.RewardsContainer = null, t._shells = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AllianceTestPanel/Component/RewardShell", cc.Prefab)];
                                case 1:
                                    return t._shellPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RewardTag.string = "allianceTest_splitReward".ToUILocale(), this._pool = new h.default(this._shellPrefab)
                }, t.prototype.InitData = function(e) {
                    this._playerName = e[0], this._bossName = e[1], this._itemPrefab = e[2], this._rewardId = e[3], this._rewardData = e[4], this._playerIcon = e[5], this._playerFrame = e[6]
                }, t.prototype.DisPlay = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, h = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (e.prototype.DisPlay.call(this), this.Desc.string = "allianceTest_splitRewardDesc".ToUILocale().Fmt(this._playerName, this._bossName), this.PlayerName.string = this._playerName, this._shells.length > this._rewardData.length) {
                                        for (n = 0; n < this._rewardData.length; n++) this._shells[n].Label.string = "allianceTest_potion".ToUILocale().Fmt(this._rewardData[n][1]), t = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, this._rewardId), this._shells[n].ItemContainer.getComponentInChildren(d.ItemComponent).Init({
                                            ItemId: this._rewardId,
                                            Count: this._rewardData[n][0]
                                        }, t.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon);
                                        for (n = this._rewardData.length; n < this._shells.length; n++) this._shells[n].node.active = !1, this._pool.Put(this._shells[n].node);
                                        this._shells.length = this._rewardData.length
                                    } else {
                                        for (n = 0; n < this._shells.length; n++) this._shells[n].Label.string = "allianceTest_potion".ToUILocale().Fmt(this._rewardData[n][1]), t = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, this._rewardId), this._shells[n].ItemContainer.getComponentInChildren(d.ItemComponent).Init({
                                            ItemId: this._rewardId,
                                            Count: this._rewardData[n][0]
                                        }, t.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon);
                                        for (n = this._shells.length; n < this._rewardData.length; n++)(o = this._pool.Get()).active = !0, o.setParent(this.RewardsContainer), this._shells[n] = o.getComponent(p.default), this._shells[n].Label.string = "allianceTest_potion".ToUILocale().Fmt(this._rewardData[n][1]), (r = cc.instantiate(this._itemPrefab)).setParent(this._shells[n].ItemContainer), t = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, this._rewardId), r.getComponent(d.ItemComponent).Init({
                                            ItemId: this._rewardId,
                                            Count: this._rewardData[n][0]
                                        }, t.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon)
                                    }
                                    return i = this.LoadDynamicAsset("UserInfo/Icon/" + this._playerIcon, cc.SpriteFrame), a = this.LoadDynamicAsset("UserInfo/Frame/" + this._playerFrame, cc.SpriteFrame), [4, Promise.all([i, a]).then(function(e) {
                                        if (!h.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                        h.PlayerHead.spriteFrame = e[0], h.PlayerFrame.spriteFrame = e[1]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    var e;
                    null === (e = this._pool) || void 0 === e || e.Clear()
                }, i([g(cc.Sprite)], t.prototype, "PlayerHead", void 0), i([g(cc.Sprite)], t.prototype, "PlayerFrame", void 0), i([g(cc.Label)], t.prototype, "PlayerName", void 0), i([g(cc.Label)], t.prototype, "RewardTag", void 0), i([g(cc.RichText)], t.prototype, "Desc", void 0), i([g(cc.Node)], t.prototype, "RewardsContainer", void 0), i([y], t)
            }(c.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Components/AllianceTestRewardShell": "AllianceTestRewardShell",
        "../Components/ItemComponent": "ItemComponent",
        "./NodePool": "NodePool"
    }],
    AllianceTraderGiftPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4b991ijVMFMZbrnzQbDxx4S", "AllianceTraderGiftPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.PackInfo = void 0;
        var a, s = e("./CustomProgressBar"),
            l = e("../../../Consts/Consts"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./ItemComponent"),
            m = e("../../Channel/ChannelManager"),
            I = e("./AllianceTraderProgressNode"),
            _ = e("./LoadAssetHelper"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property;
        (function(e) {
            e[e.NewPrice = 1] = "NewPrice", e[e.PriceSubtraction = 2] = "PriceSubtraction", e[e.Discount = 3] = "Discount"
        })(a = n.PackInfo || (n.PackInfo = {}));
        var S = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Title = null, t.PurchaseLimit = null, t.ItemLayout = null, t.PriceNode = null, t.OriginalNode = null, t.OriginalLabel = null, t.OriginalPrice = null, t.BuyBtn = null, t.CurrentPrice = null, t.VipNode = null, t.VipLabel = null, t.VipValue = null, t.CountLabel = null, t.ProgressBar = null, t.ProgressNodeContainer = null, t.SellOutNode = null, t.SellOutLabel = null, t.LoadAssetHelper = null, t.OriginalIcon = null, t.PriceIcon = null, t._needInit = !0, t._itemComponents = [], t._progressNodeComponents = [], t._itemPrefab = null, t._progressNodePrefab = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                h.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                h.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Init = function(e, t, n, o, r, i) {
                this._needInit && (this._needInit = !1, this._activityId = o, this.BuyBtn.node.on("click", this.OnBuyBtnClick, this), this.OriginalLabel.string = "firstCharge_originalPrice".ToUILocale(), this.VipLabel.string = "allianceTrader_vipGet".ToUILocale(), this.CountLabel.string = "allianceTrader_countLabel".ToUILocale(), this.SellOutLabel.string = "soldOut".ToUILocale(), this._itemPrefab = r, this._progressNodePrefab = i), this._packConfig = e, this._packInfo = t, this._progress = n, this.Title.string = e.Name, this.SetItem(), this.SetProgress(), this.SetBuyBtn()
            }, t.prototype.SetItem = function() {
                for (var e = 0; e < this._packConfig.Items.length; e++) {
                    var t = this._itemComponents[e];
                    if (!t) {
                        var n = cc.instantiate(this._itemPrefab);
                        this.ItemLayout.addChild(n), t = n.getComponent(g.ItemComponent), this._itemComponents.push(t)
                    }
                    t.node.active = !0, t.Init({
                        ItemId: this._packConfig.Items[e].Items[0],
                        Count: this._packConfig.Items[e].Items[1]
                    })
                }
                for (e = this._packConfig.Items.length; e < this._itemComponents.length; e++) this._itemComponents[e].node.active = !1
            }, t.prototype.SetBuyBtn = function() {
                var e = 0,
                    t = p.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId);
                t && t.Packs && t.Packs[this._packConfig.Id] && t.Packs[this._packConfig.Id].Items && t.Packs[this._packConfig.Id].Items[0] && (e = t.Packs[this._packConfig.Id].Items[0]);
                var n, o, r = this._packConfig.LimitCount - e;
                if (n = r > 0 ? "<color = #6eeea7>" + r : "<color = #33f8e>0", this.PurchaseLimit.string = ("mall_buyLimit_" + this._packConfig.LimitType).ToUILocale().Fmt(n, this._packConfig.LimitCount + "</c>"), r <= 0) return this.SellOutNode.active = !0, void(this.PriceNode.active = !1);
                this.PriceNode.active = !0, this.SellOutNode.active = !1, this._packConfig.PayId ? (this.VipNode.active = !0, this._currentIndex < 0 ? this.VipValue.string = "x" + this._packInfo.VipPoint : this.VipValue.string = "x" + this._packInfo.PackInfo[this._currentIndex].Items[2]) : this.VipNode.active = !1, this._currentPrice = this.GetCurrentPrice(), this.CurrentPrice.string = this._currentPrice.toString(), this._packConfig.PayId ? (o = u.BundlePath.ItemIcon + "/" + l.CommonItemId.Currency.toString(), this.LoadAssetHelper.LoadSpriteFrame(o, this.OriginalIcon, null, 1), this.LoadAssetHelper.LoadSpriteFrame(o, this.PriceIcon, null, 2), this.OriginalPrice.string = m.default.Instance.ExchangeMoney(this._packConfig.Money).toString()) : (o = u.BundlePath.ItemIcon + "/" + l.CommonItemId.Diamond.toString(), this.LoadAssetHelper.LoadSpriteFrame(o, this.OriginalIcon, null, 1), this.LoadAssetHelper.LoadSpriteFrame(o, this.PriceIcon, null, 2), this.OriginalPrice.string = this._packConfig.Money.toString()), this._currentIndex < 0 ? this.OriginalNode.active = !1 : this.OriginalNode.active = !0
            }, t.prototype.SetProgress = function() {
                for (var e = -1, t = this._packInfo.PackInfo.length, n = 0; n < this._packInfo.PackInfo.length; n++) {
                    var o = this._progressNodeComponents[n];
                    if (!o) {
                        var r = cc.instantiate(this._progressNodePrefab);
                        this.ProgressNodeContainer.addChild(r), o = r.getComponent(I.default), this._progressNodeComponents.push(o)
                    }
                    o.node.active = !0;
                    var i = this._packInfo.PackInfo[n].Items[0],
                        a = this._progress >= i,
                        s = this.GetShowNum(n);
                    o.Init(a, i, s), o.node.x = (n + 1) * this.ProgressNodeContainer.width / t, a && (e = n)
                }
                for (this._currentIndex = e, this._packInfo.PackInfo[this._currentIndex + 1] && this._packInfo.PackInfo[this._currentIndex] ? this.ProgressBar.progress = (this._currentIndex + 1 + (this._progress - this._packInfo.PackInfo[this._currentIndex].Items[0]) / (this._packInfo.PackInfo[this._currentIndex + 1].Items[0] - this._packInfo.PackInfo[this._currentIndex].Items[0])) / t : this._packInfo.PackInfo[this._currentIndex] ? this.ProgressBar.progress = 1 : this.ProgressBar.progress = this._progress / this._packInfo.PackInfo[0].Items[0] / t, n = this._packInfo.PackInfo.length; n < this._progressNodeComponents.length; n++) this._progressNodeComponents[n].node.active = !1
            }, t.prototype.GetCurrentPrice = function() {
                if (this._currentIndex < 0) return this._packConfig.PayId ? m.default.Instance.ExchangeMoney(this._packConfig.Money) : this._packConfig.Money;
                var e, t = void 0,
                    n = p.ConfigDataComponent.Instance.GetConfigById(d.CurrencySymbol_Config, m.default.Instance.Localization_Currency).ToFixed;
                switch (e = this._packConfig.PayId ? this.ExchangeMoney(this._packConfig.Money) : this._packConfig.Money, this._packInfo.Type) {
                    case a.NewPrice:
                        t = this._packInfo.PackInfo[this._currentIndex].Items[1];
                        break;
                    case a.PriceSubtraction:
                        t = this._packConfig.Money - this._packInfo.PackInfo[this._currentIndex].Items[1];
                        break;
                    case a.Discount:
                        t = this._packConfig.Money * (this._packInfo.PackInfo[this._currentIndex].Items[1] / 1e3)
                }
                return this._packConfig.PayId ? Math.ceil(t / this._packConfig.Money * e * Math.pow(10, n)) / Math.pow(10, n) : Math.ceil(t / this._packConfig.Money * e)
            }, t.prototype.ExchangeMoney = function(e) {
                var t;
                if ("JPY" == m.default.Instance.Localization_Currency || "ColorDiamond" == m.default.Instance.Localization_Currency) t = e;
                else {
                    if (e <= 0) return 0;
                    var n = p.ConfigDataComponent.Instance.GetConfigById(d.CurrencyMapping_Config, e);
                    if (!n) return e;
                    t = n[m.default.Instance.Localization_Currency]
                }
                return t
            }, t.prototype.GetShowNum = function(e) {
                var t;
                switch (this._packInfo.Type) {
                    case a.NewPrice:
                        t = this._packInfo.PackInfo[e].Items[1];
                        break;
                    case a.PriceSubtraction:
                        t = this._packConfig.Money - this._packInfo.PackInfo[e].Items[1];
                        break;
                    case a.Discount:
                        return (1e3 - this._packInfo.PackInfo[e].Items[1]) / 10
                }
                return Math.floor(100 * (1 - t / this._packConfig.Money))
            }, t.prototype.OnBuyBtnClick = function() {
                if (this._packConfig.PayId) {
                    var e = p.DataCenter.Instance.GetItemCount(m.default.Instance.CurrencyItemID);
                    if ((e /= 100) < this._currentPrice) return void h.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, l.CommonItemId.Currency, !1);
                    m.default.Instance.BuyCurrencyPack(this._packConfig.Id, this._activityId)
                } else {
                    if ((e = p.DataCenter.Instance.GetItemCount(l.CommonItemId.Diamond)) < this._currentPrice) return void h.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, l.CommonItemId.Diamond, !1);
                    var t = new c.Req_Pay_ByDiamond;
                    t.Id = this._packConfig.Id, t.ActivityId = this._activityId, p.RpcComponent.Instance.Call(t, function(e) {
                        y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.ItemLayout.children.indexOf(t) && y.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
            }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([b(cc.Node)], t.prototype, "ItemLayout", void 0), i([b(cc.Node)], t.prototype, "PriceNode", void 0), i([b(cc.Node)], t.prototype, "OriginalNode", void 0), i([b(cc.Label)], t.prototype, "OriginalLabel", void 0), i([b(cc.Label)], t.prototype, "OriginalPrice", void 0), i([b(cc.Button)], t.prototype, "BuyBtn", void 0), i([b(cc.Label)], t.prototype, "CurrentPrice", void 0), i([b(cc.Node)], t.prototype, "VipNode", void 0), i([b(cc.Label)], t.prototype, "VipLabel", void 0), i([b(cc.Label)], t.prototype, "VipValue", void 0), i([b(cc.Label)], t.prototype, "CountLabel", void 0), i([b(s.default)], t.prototype, "ProgressBar", void 0), i([b(cc.Node)], t.prototype, "ProgressNodeContainer", void 0), i([b(cc.Node)], t.prototype, "SellOutNode", void 0), i([b(cc.Label)], t.prototype, "SellOutLabel", void 0), i([b(_.default)], t.prototype, "LoadAssetHelper", void 0), i([b(cc.Sprite)], t.prototype, "OriginalIcon", void 0), i([b(cc.Sprite)], t.prototype, "PriceIcon", void 0), i([v], t)
        }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AllianceTraderProgressNode": "AllianceTraderProgressNode",
        "./CustomProgressBar": "CustomProgressBar",
        "./ItemComponent": "ItemComponent",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    AllianceTraderPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7af48MtjupObpiJxnCepVLm", "AllianceTraderPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../Components/Components"),
            d = e("../Components/AsyncLayout"),
            h = e("../Components/ActivityCountDownComponent"),
            f = e("../Components/CurrencyBarItem"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Components/Components"),
            I = e("../Components/AllianceTraderGiftPackComponent"),
            _ = e("../../Auxiliary/GameRecord"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../../../Util/TimeUtil"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleBtn = null, t.CountDown = null, t.CurrencyBarItem = null, t.CurrencyBarItem2 = null, t.Info1 = null, t.Content = null, t.Info2 = null, t.ReturnBtn = null, t._giftPackPrefab = null, t._itemPrefab = null, t._progressNodePrefab = null, t._packIds = [], t._hasDiamondPack = !1, t._hasColorDiamondPack = !1, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AllianceTraderPanel/AllianceTraderGiftPackComponent", cc.Prefab), n = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("AllianceTraderPanel/AllianceTraderProgressNode", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._giftPackPrefab = e[0], r._itemPrefab = e[1], r._progressNodePrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Info1.string = "allianceTrader_info1".ToUILocale(), this.Info2.string = "allianceTrader_info2".ToUILocale(), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this), this.Content.Init(this._giftPackPrefab, this.SetGiftPackData.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    if (this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._activityConfig.Common.Title, !this._packInfoMap) {
                        this._packInfoMap = {};
                        for (var o = 0; o < this._activityConfig.__PackInfo.length; o++) this._packInfoMap[this._activityConfig.__PackInfo[o].Id] = this._activityConfig.__PackInfo[o]
                    }
                    if (!this._packConfigMap)
                        for (this._packConfigMap = {}, o = 0; o < this._activityConfig._Packs.length; o++) this._packConfigMap[this._activityConfig._Packs[o].Id] = this._activityConfig._Packs[o], this._packIds.push(this._activityConfig._Packs[o].Id);
                    var r = b.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime),
                        i = !0,
                        a = JSON.parse(_.default.GetItem(_.GameRecordDefine.AllianceTrader));
                    if (null == a) _.default.SetItem(_.GameRecordDefine.AllianceTrader, JSON.stringify(r)), i = !0;
                    else {
                        var s = b.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime);
                        a < s && (_.default.SetItem(_.GameRecordDefine.AllianceTrader, JSON.stringify(s)), i = !0)
                    }
                    i && (C.RedDotManager.Instance.RefreshRedDotNode(C.RedDotManager.Instance.RedDot.AllianceTraderBtnNode), C.RedDotManager.Instance.RefreshInstanceRedDotNode(C.RedDotManager.Instance.InstanceRedDot.AllianceTradeNode), c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._activityConfig._id))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.CountDown.Init(this._activityConfig.Common), this.CheckCurrencyType()), this.RefreshUI(t), this.SetCurrencyBarItem()
                }, t.prototype.CheckCurrencyType = function() {
                    if (!this._hasColorDiamondPack && !this._hasDiamondPack)
                        for (var e = 0; e < this._activityConfig._Packs.length && (!this._hasColorDiamondPack || !this._hasDiamondPack); e++) this._activityConfig._Packs[e].PayId ? this._hasColorDiamondPack = !0 : this._hasDiamondPack = !0
                }, t.prototype.SetCurrencyBarItem = function() {
                    this.CurrencyBarItem.node.active = !1, this.CurrencyBarItem2.node.active = !1, this._hasColorDiamondPack && (this.CurrencyBarItem.node.active = !0, this.CurrencyBarItem.SetCurrencyItem()), this._hasDiamondPack && (this.CurrencyBarItem2.node.active = !0, this.CurrencyBarItem2.Init(u.CommonItemId.Diamond))
                }, t.prototype.RefreshUI = function(e) {
                    var t = this,
                        n = new l.Req_Activity_AllianceTraderGetInfo;
                    n.ActivityId = this._activityConfig._id, n.AllianceId = m.DataCenter.Instance.AllianceId, p.RpcComponent.Instance.Call(n, function(n) {
                        t._resTraderGetInfo = n, t._model = m.DataCenter.Instance.GetDataById(l.UserActivity_Model, t._activityConfig._id), t._packIds.sort(t.SortList.bind(t)), e ? t.Content.ReRender() : t.Content.RenderLayout(t._activityConfig._Packs.length)
                    })
                }, t.prototype.SortList = function(e, t) {
                    var n = this._packConfigMap[e],
                        o = this._packConfigMap[t],
                        r = 0,
                        i = 0;
                    this._model.Packs[e] && this._model.Packs[e].Items && this._model.Packs[e].Items[0] && (r = this._model.Packs[e].Items[0]), this._model.Packs[t] && this._model.Packs[t].Items && this._model.Packs[t].Items[0] && (i = this._model.Packs[t].Items[0]);
                    var a = n.LimitCount - r,
                        s = o.LimitCount - i;
                    return a && !s ? -1 : !a && s ? 1 : n.SortId > o.SortId ? 1 : -1
                }, t.prototype.SetGiftPackData = function(e, t) {
                    var n = e.getComponent(I.default),
                        o = this._packConfigMap[this._packIds[t]],
                        r = 0;
                    this._resTraderGetInfo && (r = this._resTraderGetInfo.Map[o.Id]), n.Init(o, this._packInfoMap[o.Id], r, this._activityConfig._id, this._itemPrefab, this._progressNodePrefab)
                }, t.prototype.OnRuleBtnClick = function() {
                    var e = {
                        name: this._activityConfig.Common.Title,
                        titles: ["payGuide_rule_sub".ToUILocale()],
                        contents: ["allianceTrader_rule1".ToUILocale()]
                    };
                    g.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnBtnClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Button)], t.prototype, "RuleBtn", void 0), i([P(h.default)], t.prototype, "CountDown", void 0), i([P(f.default)], t.prototype, "CurrencyBarItem", void 0), i([P(f.default)], t.prototype, "CurrencyBarItem2", void 0), i([P(cc.Label)], t.prototype, "Info1", void 0), i([P(d.default)], t.prototype, "Content", void 0), i([P(cc.Label)], t.prototype, "Info2", void 0), i([P(cc.Button)], t.prototype, "ReturnBtn", void 0), i([w], t)
            }(c.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/AllianceTraderGiftPackComponent": "AllianceTraderGiftPackComponent",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CurrencyBarItem": "CurrencyBarItem"
    }],
    AllianceTraderProgressNode: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "52436Z/6x1ITb0L5SHhI4US", "AllianceTraderProgressNode");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NodeSprite = null, t.Count = null, t.Num0 = null, t.Num10 = null, t.Num100 = null, t.SpriteAtlas = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.Count.string = "allianceTrader_count".ToUILocale().Fmt(t), this.NodeSprite.spriteFrame = e ? a.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_on") : a.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_off"), this.Num10.node.active = !1, this.Num100.node.active = !1;
                    var o = n.toString().split("");
                    1 == o.length ? this.Num0.spriteFrame = this.SpriteAtlas.getSpriteFrame(o[0]) : 2 == o.length ? (this.Num0.spriteFrame = this.SpriteAtlas.getSpriteFrame(o[1]), this.Num10.spriteFrame = this.SpriteAtlas.getSpriteFrame(o[0]), this.Num10.node.active = !0) : (this.Num0.spriteFrame = this.SpriteAtlas.getSpriteFrame(o[2]), this.Num10.spriteFrame = this.SpriteAtlas.getSpriteFrame(o[1]), this.Num100.spriteFrame = this.SpriteAtlas.getSpriteFrame(o[0]), this.Num10.node.active = !0, this.Num100.node.active = !0)
                }, i([c(cc.Sprite)], t.prototype, "NodeSprite", void 0), i([c(cc.Label)], t.prototype, "Count", void 0), i([c(cc.Sprite)], t.prototype, "Num0", void 0), i([c(cc.Sprite)], t.prototype, "Num10", void 0), i([c(cc.Sprite)], t.prototype, "Num100", void 0), i([c(cc.SpriteAtlas)], t.prototype, "SpriteAtlas", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AllianceTreasureItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ff3d3HBok5KULA0Z6pMljJI", "AllianceTreasureItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./ItemComponent"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Auxiliary/UIUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagLabel = null, t.CountRichText = null, t.ItemContainer = null, t.CurrencySprite = null, t.PriceLabel = null, t.CoverMask = null, t.CoverMaskLabel = null, t.Discount = null, t.Btn = null, t._unloadAssets = [], t.WorldColor = [new cc.Color(255, 105, 0), new cc.Color(98, 78, 60)], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.Btn.node.on("click", this.OnTouchEnd, this), this.CoverMaskLabel.string = "sellout".ToUILocale(), c.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.Btn.node.off("click", this.OnTouchEnd, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    t == this._itemComponent.node && f.UIUtlity.ShowItemTip(this._itemId, t)
                }, t.prototype.OnTouchEnd = function() {
                    c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_ALLIANCE_TREASURE_TOUCH, this._index, [this._currencyId, this._isEnough], this.CoverMask.active, this._requireLevel)
                }, t.prototype.SetLevelLimit = function(e, t) {
                    return e > t ? (this.TagLabel.string = "<outline color = #202434 width = 3>" + "allianceBase_goodlocked".ToUILocale().Fmt("<color = #FF403E>" + "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(e) + "</color>") + "</outline>", this._requireLevel = e) : (this.TagLabel.string = "<outline color = #202434 width = 3>" + "allianceBase_goodlocked".ToUILocale().Fmt("<color = #6EEEA7>" + "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(e) + "</color>") + "</outline>", this._requireLevel = -1), this
                }, t.prototype.SetIndex = function(e) {
                    return this._index = e, this
                }, t.prototype.SetCount = function(e, t) {
                    this.SetMask(e <= 0);
                    var n = e.toString();
                    return n = this.CoverMask.active ? "<color = #FF403E>" + e + "/" + t + "</c>" : this._requireLevel >= 0 ? "<color = #6EEEA7>" + e + "/" + t + "</c>" : "--", this.CountRichText.string = "<outline color = #202434 width = 3>" + "activityScoreShop_remainderCount".ToUILocale().Fmt(n) + "</outline>", this
                }, t.prototype.SetItem = function(e, t, n, o) {
                    if (void 0 === o && (o = null), this._itemId = t, null == this._itemComponent) {
                        var r = cc.instantiate(e);
                        r.setParent(this.ItemContainer), this._itemComponent = r.getComponent(l.ItemComponent)
                    }
                    if (this._itemComponent.ItemId != t) {
                        var i = p.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, t);
                        this._itemComponent.Init({
                            ItemId: t,
                            Count: n
                        }, i.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon)
                    }
                    return this._itemComponent.node.name = t.toString(), null != o && o > 0 ? (this.Discount.node.parent.active = !0, this.Discount.string = "-" + o + "%") : this.Discount.node.parent.active = !1, this
                }, t.prototype.SetMask = function(e) {
                    void 0 === e && (e = !1), this.CoverMask.active = e
                }, t.prototype.SetPrice = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return t <= 0 ? (this.PriceLabel.node.color = cc.color().fromHEX("#6EEEA7"), this.PriceLabel.string = "shop_buyFree".ToUILocale()) : (this.PriceLabel.string = t.toString(), this.PriceLabel.node.color = n ? cc.Color.WHITE : cc.color().fromHEX("#FF403E")), this._isEnough = n, this._currencyId = e, o = h.default.Instance.GetItemPathById(e), [4, c.AssetsManager.Instance.LoadAsset(o, cc.SpriteFrame)];
                                case 1:
                                    return r = i.sent(), this.isValid ? (this._unloadAssets.push(r), this.CurrencySprite.spriteFrame = r, [2]) : (c.AssetsManager.Instance.UnloadAsset(r), [2])
                            }
                        })
                    })
                }, t.prototype.GetIndex = function() {
                    return this._index
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && c.AssetsManager.Instance.UnloadAsset(e)
                    }), this._unloadAssets = []
                }, i([m(cc.RichText)], t.prototype, "TagLabel", void 0), i([m(cc.RichText)], t.prototype, "CountRichText", void 0), i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([m(cc.Sprite)], t.prototype, "CurrencySprite", void 0), i([m(cc.Label)], t.prototype, "PriceLabel", void 0), i([m(cc.Node)], t.prototype, "CoverMask", void 0), i([m(cc.Label)], t.prototype, "CoverMaskLabel", void 0), i([m(cc.Label)], t.prototype, "Discount", void 0), i([m(cc.Button)], t.prototype, "Btn", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    AllianceTreasurePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e29d4CEsJBKhJDZh9ydAUQH", "AllianceTreasurePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Components/Components"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../Components/AllianceTreasureItem"),
            m = e("./BuyAndSellItemPanel"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../../Components/Components"),
            C = e("../../../Consts/GameEventIds"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../Components/AsyncLayout"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.ReturnButton = null, t.AsyncLayout = null, t.CurrencyItem = null, t.Dialogue = null, t._shopId = 1002, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_ALLIANCE_TREASURE_TOUCH, this.OnTreasureTouch, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnBuySuccess, this), l.Game.EventDispatcher.On(C.GameEventIds.SpecialRedDotChange.Fmt(v.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ALLIANCE_TREASURE_TOUCH, this.OnTreasureTouch), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnBuySuccess, this), l.Game.EventDispatcher.Off(C.GameEventIds.SpecialRedDotChange.Fmt(v.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this)
                }, t.prototype.SetAllianceCityWarEntry = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return f.DataCenter.Instance.GetSpecialRedDot(v.SpecialRedDotType.AllianceId) <= 0 ? (l.UIManager.Instance.BackUIPanel(), d.UIUtlity.ShowFloatingHint("allianceBase_bekicked".ToUILocale()), [2]) : [2]
                        })
                    })
                }, t.prototype.OnTreasureTouch = function(e, t, n, o) {
                    if (n) d.UIUtlity.ShowFloatingHint("shop_goodsSoldOut".ToUILocale());
                    else if (o > this._myAllianceLevel) d.UIUtlity.ShowFloatingHint("allianceBase_goodlockedHint".ToUILocale().Fmt(o));
                    else if (t[1]) {
                        var r = this._shopConfig.Goods[e].Items[0];
                        if (f.ConfigDataComponent.Instance.GetConfigById(p.ShopItem_Config, r).Price > 0) l.UIManager.Instance.ShowUIPanel(c.PanelConfig.BuyAndSellItemPanel.Path, r, e, this.GetAlreadyBuyCount(e), m.BuyAndSellType.Buy);
                        else {
                            var i = new u.Req_Shop_BuyItem;
                            i.Type = Math.floor(r / 1e5), i.Type = Math.max(i.Type, 1), i.Id = r, i.Count = 1, f.RpcComponent.Instance.Call(i, this.OnBuySuccess)
                        }
                    } else d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t[0].ToItemName()))
                }, t.prototype.GetAlreadyBuyCount = function(e) {
                    e = this._shopConfig.Goods[e].Items[0];
                    var t = f.DataCenter.Instance.GetDataById(u.UserShop_Model, this._shopId),
                        n = 0;
                    return t.Goods[e] && (n = t.Goods[e].Items[1]), n
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemContaineri3" == t.parent.name && d.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("AllianceTreasurePanel/Component/AllianceTreasureItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._goodPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "AllianceTreasure".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.Dialogue.string = "AllianceTreasure_dialogue".ToUILocale(), this.AsyncLayout.Init(this._goodPrefab, this.OnRenderHeroItem.bind(this))
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "AllianceTreasure".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["allianceTreasure_RuleText".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBuySuccess = function(e) {
                    e && d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.DisPlay = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this), this._myAllianceLevel ? [3, 2] : [4, this.RequestAllianceInfo()];
                                case 1:
                                    t.sent(), t.label = 2;
                                case 2:
                                    return this._shopConfig = f.ConfigDataComponent.Instance.GetConfigById(p.ShopBase_Config, this._shopId), this.AsyncLayout.RenderLayout(this._shopConfig.Goods.length), this.CurrencyItem.Init(this._shopConfig.HeaderCurrencyType[0]), I.default.SetItem(I.GameRecordDefine.ATReddot, JSON.stringify(_.RpcComponent.Instance.ServerTime)), [2]
                            }
                        })
                    })
                }, t.prototype.RequestAllianceInfo = function() {
                    var e = this;
                    return new Promise(function(t) {
                        var n = new u.Req_Alliance_GetMyAlliance;
                        _.RpcComponent.Instance.Call(n, function(n) {
                            e._myAllianceLevel = n.Level, t(void 0)
                        })
                    })
                }, t.prototype.OnRenderHeroItem = function(e, t) {
                    e.name = t.toString();
                    var n = e.getComponent(g.default),
                        o = this._shopConfig.Goods[t].Items[0],
                        r = f.ConfigDataComponent.Instance.GetConfigById(p.ShopItem_Config, o),
                        i = f.DataCenter.Instance.GetItemCount(r.CurrencyType) >= r.Price,
                        a = r.RequireAllianceLevel;
                    n.SetLevelLimit(a, this._myAllianceLevel).SetIndex(t).SetCount(r.LimitCount - this.GetAlreadyBuyCount(t), r.LimitCount).SetItem(this._itemPrefab, r.ItemId, r.Count, r.Discount).SetPrice(r.CurrencyType, r.Price, i)
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([P(b.default)], t.prototype, "AsyncLayout", void 0), i([P(y.default)], t.prototype, "CurrencyItem", void 0), i([P(cc.RichText)], t.prototype, "Dialogue", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AllianceTreasureItem": "AllianceTreasureItem",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel"
    }],
    AngelAttrInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c7734L9TuRIwZSE1E1GYJob", "AngelAttrInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("./AngelSelectSkillPanel"),
            f = e("../Components/HeroAttributeItem"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./AngelDestinyLabelComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.Title = null, t.AngelAttrLabel = null, t.AngelAttrNode = null, t.GlobalAttrLabel = null, t.GlobalAttrContent = null, t.GlobalNoAttrLabel = null, t.SpecialAttrTitleNode = null, t.SpecailAttrsNode = null, t.SpecailAttrsContent = null, t.SpecialAttrsLabel = null, t.SpecialNoAttrsLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelAttributeComponent", cc.Prefab), n = this.LoadDynamicAsset("AngelDestinyPanel/Component/AngelDestinyLabelComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._attrItemPrefab = e[0], o._attrLabelPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AngelAttrLabel.string = "angel_attr".ToUILocale(), this.GlobalAttrLabel.string = "angel_global_attr".ToUILocale(), this.SpecialAttrsLabel.string = "angel_specialEffect".ToUILocale(), this.SpecialNoAttrsLabel.string = "angel_noSpecialEffect".ToUILocale(), this.GlobalNoAttrLabel.string = "CollectionPavilion_Tip_UnAttr".ToUILocale(), this._fixAttrs = [d.HeroAttributeType.AngelAttack, d.HeroAttributeType.AngelCritChance, d.HeroAttributeType.AngelCritDamageAddon, d.HeroAttributeType.AngelDamageAddon]
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._angelId = t[0], this._type = t[1], this._angelModel = p.DataCenter.Instance.GetDataById(u.UserAngel_Model, this._angelId), this._angelBaseConfig = p.ConfigDataComponent.Instance.GetConfigById(c.AngelBase_Config, this._angelId)
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisPlay = t, !this._isReDisPlay) {
                        this.Title.string = 0 == this._type ? "angel_attr_info".ToUILocale() : "angel_destiny_attr_info".ToUILocale();
                        var o = void 0;
                        for (var r in 0 == this._type ? o = this.GetAngelAttrDatas() : 1 == this._type && (o = this.GetAngelDestinyAddAttrs()), o) {
                            (l = cc.instantiate(this._attrItemPrefab)).parent = this.AngelAttrNode, l.getComponent(f.default).Init(Number(r), o[r], !0);
                            var i = y.default.GetHeroAttribute(Number(r), o[r]);
                            l.getComponent(f.default).Value.string = i.Value
                        }
                        var a = this.GetTotalAngelGlobalAttrDatas(),
                            s = 0;
                        for (var r in a) {
                            var l;
                            (l = cc.instantiate(this._attrItemPrefab)).parent = this.GlobalAttrContent.node;
                            var c = l.getComponent(f.default);
                            c.Init(Number(r), a[r]), c.SetTagName("angel_global".ToUILocale()), s++
                        }
                        if (this.GlobalNoAttrLabel.node.active = 0 == s, 0 == s && (this.GlobalAttrContent.enabled = !1, this.GlobalNoAttrLabel.node.x = 0, this.GlobalNoAttrLabel.node.y = -this.GlobalAttrContent.node.height / 2), this.SpecialAttrTitleNode.active = 1 == this._type, this.SpecailAttrsNode.active = 1 == this._type, 1 == this._type) {
                            var u = this.GetAngelSpecialAttrDatas();
                            this.SpecialNoAttrsLabel.node.active = 0 == u.length, u.length > 0 ? u.forEach(function(e) {
                                var t = cc.instantiate(n._attrLabelPrefab);
                                t.parent = n.SpecailAttrsContent.node, t.getComponent(g.default).Init(e, null, !0, null, null, !1)
                            }) : (this.SpecailAttrsContent.enabled = !1, this.SpecialNoAttrsLabel.node.x = 0, this.SpecialNoAttrsLabel.node.y = -this.SpecailAttrsNode.height / 2)
                        }
                    }
                }, t.prototype.GetAngelAttrDatas = function() {
                    var e = {};
                    for (var t in this._fixAttrs.forEach(function(t) {
                            e[t] || (e[t] = 0)
                        }), this._angelModel.Attrs)
                        if (e[Number(t)] >= 0)
                            if (Number(t) == d.HeroAttributeType.AngelAttack) {
                                var n = y.default.GetAngelAttack(this._angelId);
                                e[Number(t)] += n
                            } else e[Number(t)] += this._angelModel.Attrs[t];
                    return e
                }, t.prototype.GetAngelDestinyAddAttrs = function() {
                    var e = {};
                    return this._fixAttrs.forEach(function(t) {
                        e[t] || (e[t] = 0)
                    }), this._angelModel.FatePoints.forEach(function(t) {
                        var n = p.ConfigDataComponent.Instance.GetConfigById(c.AngelFate_Config, t);
                        n && n.Attrs.forEach(function(t) {
                            e[t.Items[0]] >= 0 && (e[t.Items[0]] += t.Items[1])
                        })
                    }), e
                }, t.prototype.GetTotalAngelGlobalAttrDatas = function() {
                    var e = {};
                    return 0 == this._type ? p.ConfigDataComponent.Instance.GetArrayConfig(c.AngelBase_Config).forEach(function(t) {
                        var n = p.DataCenter.Instance.GetDataById(u.UserAngel_Model, t.Id);
                        if (n) {
                            t.GodAvatar.forEach(function(t) {
                                var n = p.DataCenter.Instance.GetDataById(u.AngelSkin_Model, t),
                                    o = h.default.CheckSkinIsUnlock(t);
                                n && o && p.ConfigDataComponent.Instance.GetConfigById(c.AngelGodAvatar_Config, t).GlobalAttrs.forEach(function(t) {
                                    e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1]
                                })
                            });
                            var o = p.DataCenter.Instance.GetDataList(u.UserGodSoul_Model),
                                r = [];
                            o.forEach(function(e) {
                                e.OwnerId == t.Id && r.push(e)
                            }), r.forEach(function(t) {
                                p.ConfigDataComponent.Instance.GetConfigById(c.AngelGodSoul_Config, t.ItemId).Attr.forEach(function(t) {
                                    e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1]
                                })
                            });
                            var i = p.ConfigDataComponent.Instance.GetConfigById(c.AngelStar_Config, 1e3 * t.Id + n.StarLevel);
                            i && i && (i.Attrs.length > 0 && i.Attrs.forEach(function(t) {
                                e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1]
                            }), n.SubStarLevel > 0 && i.PointAttrs.length > 0 && i.PointAttrs.forEach(function(t, o) {
                                o < n.SubStarLevel && t.Items.length > 1 && (e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1])
                            })), n.FatePoints.forEach(function(t) {
                                var n = p.ConfigDataComponent.Instance.GetConfigById(c.AngelFate_Config, t);
                                n && n.GlobalAttrs.forEach(function(t) {
                                    e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1]
                                })
                            })
                        }
                    }) : 1 == this._type && this._angelModel.FatePoints.forEach(function(t) {
                        var n = p.ConfigDataComponent.Instance.GetConfigById(c.AngelFate_Config, t);
                        n && n.GlobalAttrs.forEach(function(t) {
                            e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1]
                        })
                    }), e
                }, t.prototype.GetAngelSpecialAttrDatas = function() {
                    var e = this,
                        t = [],
                        n = [],
                        o = 0;
                    if (p.ConfigDataComponent.Instance.GetArrayConfig(c.AngelFatePage_Config).forEach(function(t) {
                            if (t.Angel == e._angelId && e._angelModel.FatePoints.length > 0 && y.default.BinarySearch(e._angelModel.FatePoints, t.FateIds[1]) > -1) {
                                var r = p.ConfigDataComponent.Instance.GetConfigById(c.AngelFate_Config, t.FateIds[1]);
                                o = Math.max(o, r.UnlockPos), r.GlobalSkills.forEach(function(t) {
                                    if (t.Items[0] == e._angelId)
                                        for (var o = function(o) {
                                                for (var r = !1, i = t.Items[o], a = y.default.GetAngelSkillUnlockLevel(e._angelId, i, 1), s = function(e) {
                                                        var t = n.findIndex(function(t) {
                                                            return t.SkillId == a.skillIds[e]
                                                        });
                                                        t > -1 && (r = !0, a.level > n[t].SkillLevel && (n[t].SkillId = i, n[t].SkillLevel = a.level))
                                                    }, l = 0; l < a.skillIds.length; l++) s(l);
                                                if (!r) {
                                                    var c = {};
                                                    c.SkillId = i, c.SkillLevel = a.level, n.push(c)
                                                }
                                            }, r = 1; r < t.Items.length; r++) o(r)
                                })
                            }
                        }), o > 0) {
                        var r = "angel_unlock_soul".ToUILocale().Fmt("#624e3c", "#eb6100", o);
                        t.push(r)
                    }
                    return n.length > 0 && n.forEach(function(e) {
                        var n = e.SkillId.ToHeroSkillName(),
                            o = "angel_skill_level_up".ToUILocale().Fmt("#624e3c", n, "#eb6100", e.SkillLevel);
                        t.push(o)
                    }), t
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "AngelAttrLabel", void 0), i([_(cc.Node)], t.prototype, "AngelAttrNode", void 0), i([_(cc.Label)], t.prototype, "GlobalAttrLabel", void 0), i([_(cc.Layout)], t.prototype, "GlobalAttrContent", void 0), i([_(cc.Label)], t.prototype, "GlobalNoAttrLabel", void 0), i([_(cc.Node)], t.prototype, "SpecialAttrTitleNode", void 0), i([_(cc.Node)], t.prototype, "SpecailAttrsNode", void 0), i([_(cc.Layout)], t.prototype, "SpecailAttrsContent", void 0), i([_(cc.Label)], t.prototype, "SpecialAttrsLabel", void 0), i([_(cc.Label)], t.prototype, "SpecialNoAttrsLabel", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/HeroAttributeItem": "HeroAttributeItem",
        "./AngelDestinyLabelComponent": "AngelDestinyLabelComponent",
        "./AngelSelectSkillPanel": "AngelSelectSkillPanel"
    }],
    AngelBtnComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5d1f32XW99Ih4XnxtAK+aJs", "AngelBtnComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ScaleNode = null, t.AddNode = null, t.AngelIcon = null, t.AngelLabel = null, t.ChangeNode = null, t
                }
                return r(t, e), t.prototype.start = function() {
                    this.AngelLabel.string = "angel_formation_set".ToUILocale()
                }, t.prototype.Init = function(e, t, n, o) {
                    void 0 === t && (t = !0), void 0 === n && (n = !1), this._angelModel = o, this.AngelIcon.node.active = e > 0, this.AddNode.active = !e && t, this.ChangeNode.active = n && e > 0, e > 0 && this.SetAngelIcon(e)
                }, t.prototype.SetAngelIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._angelIcon && (l.AssetsManager.Instance.UnloadAsset(this._angelIcon), this.AngelIcon.node.active = !1, this._angelIcon = null), t = this.GetAngelGodAvatar(e), [4, l.AssetsManager.Instance.LoadAsset("AngelIcon/AngelCircleHeader/" + t, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.isValid && n.name == "AngelIcon/AngelCircleHeader/" + t ? (this._angelIcon = n, this.AngelIcon.node.active = !0, this.AngelIcon.spriteFrame = this._angelIcon, [2]) : (l.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.GetAngelGodAvatar = function(e) {
                    var t = this._angelModel ? this._angelModel : p.DataCenter.Instance.GetDataById(c.UserAngel_Model, e),
                        n = p.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * t.AngelId + t.StarLevel);
                    return t.SkinId > 0 ? t.SkinId : n.AngelShape
                }, t.prototype.SetBtnScale = function(e) {
                    this.ScaleNode.scale = e
                }, t.prototype.SetAngelLabelActive = function(e) {
                    this.AngelLabel.node.active = e
                }, t.prototype.onDestroy = function() {
                    this._angelIcon && l.AssetsManager.Instance.UnloadAsset(this._angelIcon)
                }, i([f(cc.Node)], t.prototype, "ScaleNode", void 0), i([f(cc.Node)], t.prototype, "AddNode", void 0), i([f(cc.Sprite)], t.prototype, "AngelIcon", void 0), i([f(cc.Label)], t.prototype, "AngelLabel", void 0), i([f(cc.Node)], t.prototype, "ChangeNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components"
    }],
    AngelCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ae93aCt5EhJ6JXUkWr2OsRh", "AngelCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("./LevelComponent"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HighLightBg = null, t.Bg = null, t.Icon = null, t.Border = null, t.AngelLevel = null, t.LevelComponent = null, t.RedDot = null, t.AngelLevelBgNode = null, t.TextParentNode = null, t.MaskNode = null, t.SelectNode = null, t.LockNode = null, t.NotGetLabel = null, t._starLevel = 0, t._level = 0, t._skinId = 0, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.HideAllNode(), this._angelData = null, e instanceof l.UserAngel_Model ? (this._angelData = e, this._itemId = e.AngelId, this._starLevel = e.StarLevel, this._level = e.Level, this._skinId = e.SkinId) : (this._itemId = e.ItemId, this._starLevel = e.StarLevel, this._level = e.Level, this._skinId = e.SkinId), this.ConfigAngelInfo()
                }, t.prototype.HideAllNode = function() {
                    this.node.children.forEach(function(e) {
                        e.active = !1
                    }), this.TextParentNode.children.forEach(function(e) {
                        e.active = !1
                    }), this.Bg.node.active = !0, this.Icon.node.active = !0, this.Border.node.active = !0, this.TextParentNode.active = !0, this.IsGrayIcon(!1)
                }, t.prototype.ConfigAngelInfo = function() {
                    this.SetAngelBorderAndBg(), this.SetIcon(), this.SetStarLevel(), this.SetLevel()
                }, t.prototype.SetAngelBorderAndBg = function() {
                    var e = f.ConfigDataComponent.Instance.GetConfigById(c.AngelBase_Config, this._itemId).Quality,
                        t = "card_border_" + (e = e > p.UIUtlity.Max_Quality_Level ? p.UIUtlity.Max_Quality_Level : e),
                        n = "card_bg_" + e,
                        o = p.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(t),
                        r = p.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(n);
                    this.Border.spriteFrame = o, this.Bg.spriteFrame = r
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e = this._itemId, this._angelData && this._angelData.SkinId > 0 || this._skinId > 0 ? (void 0, n = this._angelData && this._angelData.SkinId > 0 ? this._angelData.SkinId : this._skinId, r = f.ConfigDataComponent.Instance.GetConfigById(c.AngelGodAvatar_Config, n), t = r.AngelCard) : (o = f.ConfigDataComponent.Instance.GetConfigById(c.AngelStar_Config, 1e3 * e + this._starLevel), r = f.ConfigDataComponent.Instance.GetConfigById(c.AngelGodAvatar_Config, o.AngelShape), t = r.AngelCard), [4, d.AssetsManager.Instance.LoadAsset(h.BundlePath.AngelCardIcon + "/" + t, cc.SpriteFrame)];
                                case 1:
                                    return i = a.sent(), this.isValid && e == this._itemId ? (this._loadedAssets.push(i), this.Icon.spriteFrame = i, [2]) : (d.AssetsManager.Instance.UnloadAsset(i), [2])
                            }
                        })
                    })
                }, t.prototype.SetStarLevel = function() {
                    this.LevelComponent.node.active = !0, this.LevelComponent.Init(this._starLevel, 0, u.StarLayoutMode.Left)
                }, t.prototype.SetLevel = function() {
                    this._level > 0 ? (this.AngelLevelBgNode.active = !0, this.AngelLevel.node.active = !0, this.AngelLevel.string = "Lv." + this._level) : (this.AngelLevelBgNode.active = !1, this.AngelLevel.node.active = !1)
                }, t.prototype.SetRedDotState = function(e, t) {
                    this.RedDot.active = e, t && (this.RedDot.scale = t)
                }, t.prototype.SetSelect = function(e) {
                    this.SelectNode.active = e
                }, t.prototype.SetHighLightBg = function(e) {
                    e && !this.HighLightBg.spriteFrame && (this.HighLightBg.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("select_border2")), this.HighLightBg.node.active = e
                }, t.prototype.SetMask = function(e) {
                    this.MaskNode.active = e
                }, t.prototype.SetLock = function(e) {
                    this.LockNode.active = e
                }, t.prototype.SetNotGetLabel = function(e) {
                    e ? (this.NotGetLabel.node.active = !0, this.NotGetLabel.string = e) : this.NotGetLabel.node.active = !1
                }, t.prototype.IsGrayIcon = function(e) {
                    e ? p.UIUtlity.OnSpriteGray(this.Icon) : p.UIUtlity.OffSpriteGray(this.Icon)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) d.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([m(cc.Sprite)], t.prototype, "HighLightBg", void 0), i([m(cc.Sprite)], t.prototype, "Bg", void 0), i([m(cc.Sprite)], t.prototype, "Icon", void 0), i([m(cc.Sprite)], t.prototype, "Border", void 0), i([m(cc.Label)], t.prototype, "AngelLevel", void 0), i([m(u.LevelComponent)], t.prototype, "LevelComponent", void 0), i([m(cc.Node)], t.prototype, "RedDot", void 0), i([m(cc.Node)], t.prototype, "AngelLevelBgNode", void 0), i([m(cc.Node)], t.prototype, "TextParentNode", void 0), i([m(cc.Node)], t.prototype, "MaskNode", void 0), i([m(cc.Node)], t.prototype, "SelectNode", void 0), i([m(cc.Node)], t.prototype, "LockNode", void 0), i([m(cc.Label)], t.prototype, "NotGetLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LevelComponent": "LevelComponent"
    }],
    AngelCollectionHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "385a8fEz6tLVqoRxXmwp20V", "AngelCollectionHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Components/LevelComponent"),
            f = e("../Components/CustomToggleRollingLabel"),
            y = e("../Components/AttrComponent2"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/AngelCardComponent"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("./CollectionHandbookPanel"),
            b = e("../Components/FetterSkillMaterialComponent"),
            S = e("./HeroSublimingGoBackPanel"),
            w = e("../../RedDot/RedDotManager"),
            P = e("../../RedDot/RedDotDataHandler"),
            A = e("./AngelGuardInfoPanel"),
            T = e("../../../Util/TimeUtil"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property;
        (function(e) {
            e[e.Unlock = 0] = "Unlock", e[e.Subliming = 1] = "Subliming"
        })(l || (l = {}));
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.LevelComponent = null, t.RuleButton = null, t.HideButton = null, t.HideLabel = null, t.AvatarNode = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.ToggleContainer = null, t.ToggleArray = [], t.InfoContainer = null, t.HeroScrollView = null, t.HeroContainer = null, t.AttrTitleLabel = null, t.AttrContainer = null, t.MaterialContainer = null, t.DescLabel = null, t.MaxLevelTip = null, t.UnlockButton = null, t.UnlockLabel = null, t.LockButton = null, t.LockLabel = null, t.TotalButton = null, t.TotalLabel = null, t.SublimingGoBackButton = null, t.SublimingGoBackLabel = null, t.ReturnButton = null, t.LeftRedNode = null, t.RightRedNode = null, t.ANGEL_HANDBOOK_MAX_LEVEL = 1105, t._angelConfigArray = [], t._currentToggleIndex = 0, t._angelCardComponentArray = [], t._selectIndex = 0, t._attrComponentArray = [], t._isCanSubliming = !1, t._isHidePanel = !1, t._loadCount = 0, t.ShowItemCount = 10, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnClickAngelCard, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnClickAngelCard, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemsComponent/AttrComponent2", cc.Prefab), n = this.LoadDynamicAsset("CollectionPavilionPanel/Components/FetterSkillMaterialComponent", cc.Prefab), o = this.LoadDynamicAsset(m.BundlePath.AngelCardComponent, cc.Prefab), r = this.LoadDynamicAsset(m.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._attrPrefab = e[0], i._materialItemPrefab = e[1], i._angelCardPrefab = e[2], i._itemPrefab = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.HideLabel.string = "personalityCall_hide".ToUILocale(), this.TotalLabel.string = "handbook_attr_total".ToUILocale(), this.SublimingGoBackLabel.string = "HeroHandbook_Subliming_Go_Back".ToUILocale(), this.AttrTitleLabel.string = "HeroHandbook_Attr_Title".ToUILocale(), this.LockLabel.string = "common_unlock".ToUILocale(), this.UnlockLabel.string = "common_upgrade_level".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.UnlockButton.node.on("click", this.OnUnlockButtonClick, this), this.TotalButton.node.on("click", this.OnTotalButtonClick, this), this.SublimingGoBackButton.node.on("click", this.OnSublimingGoBackButtonClick, this);
                var t = this.HeroScrollView.node.getBoundingBoxToWorld();
                this._scrollViewRect = new cc.Rect(t.x, t.y, this.HeroScrollView.node.width, this.HeroScrollView.node.height), this.HeroScrollView.node.on("scrolling", this.OnScrolling, this)
            }, t.prototype.OnScrolling = function() {
                c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_HERO_HANDBOOK_SCROLLVIEW, this._scrollViewRect)
            }, t.prototype.InitData = function(t) {
                var n = this;
                e.prototype.InitData.call(this, t), d.ConfigDataComponent.Instance.GetArrayConfig(u.AngelBase_Config).forEach(function(e) {
                    (!e.AvailableStartTime || T.TimeUtil.StrToTime(e.AvailableStartTime) <= d.RpcComponent.Instance.ServerTime) && n._angelConfigArray.push(e)
                });
                for (var o = 0; o < this._angelConfigArray.length; o++) {
                    var r = d.DataCenter.Instance.GetDataById(p.UserAngel_Model, this._angelConfigArray[o].Id);
                    if (r && r.HandBookStar == this.ANGEL_HANDBOOK_MAX_LEVEL) {
                        this._isCanSubliming = !0;
                        break
                    }
                }
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || this._isCanSubliming && (this.ToggleContainer.active = !0, this.SetToggle()), this.SetAngelCardList(), this.MoveList(), this.SetUIContent()
            }, t.prototype.SetToggle = function() {
                for (var e = 0; e < this.ToggleArray.length; e++) {
                    var t = this.ToggleArray[e];
                    t.Init(("HeroHandbook_Toggle_" + e).ToUILocale()), t.node.name = e.toString(), t.node.on("toggle", this.OnSwithToggle, this)
                }
            }, t.prototype.OnSwithToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentToggleIndex != t && (this._currentToggleIndex = t, this.SetCurrentToggleShow())
            }, t.prototype.SetCurrentToggleShow = function() {
                this.SetAngelCardList(), this.MoveList(), this.SetAttrContainer(), this.SetCurrentShow(), this.SetRedDot()
            }, t.prototype.SetUIContent = function() {
                this.SetTopInfoAndAvatar(), this.SetArrowButtonState(), this.SetAttrContainer(), this.SetCurrentShow(), this.SetRedDot()
            }, t.prototype.SetAngelCardList = function() {
                for (var e = 0; e < this._angelConfigArray.length; e++) {
                    var t = this._angelCardComponentArray[e];
                    if (!t) {
                        var n = cc.instantiate(this._angelCardPrefab);
                        n.setParent(this.HeroContainer), n.name = e.toString(), t = n.getComponent(_.default), this._angelCardComponentArray[e] = t
                    }
                    t.SetRedDotState(!1);
                    var o = this._angelConfigArray[e],
                        r = d.DataCenter.Instance.GetDataById(p.UserAngel_Model, o.Id);
                    if (r) {
                        t.Init(r);
                        var i, a = {
                            Value1: o.Id
                        };
                        i = this._currentToggleIndex == l.Unlock ? P.RedDotDataHandler.Instance.RefreshAngelHandbookUpLevelButton(a) : P.RedDotDataHandler.Instance.RefreshAngelHandbookSublimingButton(a), t.SetRedDotState(i)
                    } else t.Init({
                        ItemId: o.Id,
                        StarLevel: 0
                    });
                    r && r.HandBookStar ? t.IsGrayIcon(!1) : t.IsGrayIcon(!0), this._selectIndex == e && t.SetHighLightBg(!0)
                }
            }, t.prototype.SetTopInfoAndAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e = this._angelConfigArray[this._selectIndex], this.Title.string = e.Id.ToAngelTitle(), (t = d.DataCenter.Instance.GetDataById(p.UserAngel_Model, e.Id)) ? this.LevelComponent.Init(t.StarLevel) : this.LevelComponent.Init(e.StarLevel), this.AvatarNode.destroyAllChildren(), this._avatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), t ? (o = d.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * e.Id + t.StarLevel), r = d.ConfigDataComponent.Instance.GetConfigById(u.AngelGodAvatar_Config, o.AngelShape), n = r.UIAvatar + "/Avatar") : n = e.UIAvatar + "/Avatar", i = e.Id, a = this, [4, c.AssetsManager.Instance.LoadAsset(n, cc.Prefab)];
                            case 1:
                                return a._avatarPrefab = s.sent(), this.isValid ? (i == this._angelConfigArray[this._selectIndex].Id ? cc.instantiate(this._avatarPrefab).setParent(this.AvatarNode) : c.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), [2]) : (c.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), [2])
                        }
                    })
                })
            }, t.prototype.SetArrowButtonState = function() {
                this.LeftArrowButton.node.active = 0 != this._selectIndex, this.RightArrowButton.node.active = this._selectIndex != this._angelConfigArray.length - 1
            }, t.prototype.SetAttrContainer = function() {
                var e, t, n = this._angelConfigArray[this._selectIndex],
                    o = d.DataCenter.Instance.GetDataById(p.UserAngel_Model, n.Id);
                if (this._currentToggleIndex == l.Unlock)
                    if (o && o.HandBookStar) {
                        var r = Math.floor(o.HandBookStar / 100),
                            i = o.HandBookStar % 100,
                            a = d.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * n.Id + r);
                        if (e = d.ConfigDataComponent.Instance.GetConfigById(u.CommonAttrs_Config, a.AngelBookPointAttrs[i - 1]).Attrs, i == a.AngelBookPointAttrs.length) {
                            if (r < n.MaxStarLevel - 1) {
                                var s = r + 1,
                                    c = d.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * n.Id + s);
                                t = d.ConfigDataComponent.Instance.GetConfigById(u.CommonAttrs_Config, c.AngelBookPointAttrs[0]).Attrs
                            }
                        } else t = d.ConfigDataComponent.Instance.GetConfigById(u.CommonAttrs_Config, a.AngelBookPointAttrs[i]).Attrs
                    } else c = d.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * n.Id), e = t = d.ConfigDataComponent.Instance.GetConfigById(u.CommonAttrs_Config, c.AngelBookPointAttrs[0]).Attrs;
                else if (this._currentToggleIndex == l.Subliming) {
                    var h = d.ConfigDataComponent.Instance.GetConfigById(u.AngelHandBookSublimate_Config, n.Id),
                        f = 0,
                        g = h.Attr[0],
                        m = h.Attr[0];
                    o && o.HandBookSublimate > 0 && (f = o.HandBookSublimate, g = h.Attr[f - 1]), e = d.ConfigDataComponent.Instance.GetConfigById(u.CommonAttrs_Config, g).Attrs, f < h.Attr.length && (m = h.Attr[f], t = d.ConfigDataComponent.Instance.GetConfigById(u.CommonAttrs_Config, m).Attrs, this._sublimingMaterialNeedCount = f > 0 ? h.Cost[f] - h.Cost[f - 1] : h.Cost[0])
                }
                this._upLevelAddAttrData = [];
                for (var I = 0; I < e.length; I++) {
                    var _ = this._attrComponentArray[I];
                    if (!_) {
                        var C = cc.instantiate(this._attrPrefab);
                        C.setParent(this.AttrContainer), _ = C.getComponent(y.default), this._attrComponentArray[I] = _
                    }
                    _.node.active = !0;
                    var v = e[I].Items[0],
                        b = void 0,
                        S = void 0;
                    this._currentToggleIndex == l.Unlock ? (b = o && o.HandBookStar ? e[I].Items[1] : 0, S = o && o.HandBookStar ? t ? t[I].Items[1] - b : 0 : e[I].Items[1]) : this._currentToggleIndex == l.Subliming && (b = o && o.HandBookSublimate ? e[I].Items[1] : 0, S = t ? t[I].Items[1] - b : 0), S ? (_.Init(v, b, S), this._upLevelAddAttrData.push(v), this._upLevelAddAttrData.push(S)) : _.Init(v, b), _.SetPrefix("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()), _.SetAttrValueStyle(488, 0, y.AttrComponent2Style.Right, y.AttrComponent2Style.Right)
                }
                if (e.length < this._attrComponentArray.length)
                    for (I = e.length; I < this._attrComponentArray.length; I++) this._attrComponentArray[I].node.active = !1
            }, t.prototype.SetCurrentShow = function() {
                var e = this._angelConfigArray[this._selectIndex],
                    t = d.DataCenter.Instance.GetDataById(p.UserAngel_Model, e.Id);
                switch (this.LockButton.node.active = !1, this.UnlockButton.node.active = !1, this.MaxLevelTip.node.active = !1, this.DescLabel.node.active = !1, this.MaterialContainer.active = !1, this.SublimingGoBackButton.node.active = !1, this._currentToggleIndex) {
                    case l.Unlock:
                        if (this.AttrTitleLabel.string = "HeroHandbook_Attr_Title".ToUILocale(), t && t.HandBookStar == this.ANGEL_HANDBOOK_MAX_LEVEL) return this.MaxLevelTip.string = "common_max_level".ToUILocale(), void(this.MaxLevelTip.node.active = !0);
                        if (t) {
                            this.UnlockButton.node.active = !0, this.UnlockButton.node.x = 0;
                            var n;
                            n = 0 == t.StarLevel && 0 == t.SubStarLevel ? 0 : 0 == t.SubStarLevel ? 100 * (t.StarLevel - 1) + 5 : 100 * t.StarLevel + t.SubStarLevel, t.HandBookStar == n ? (this.UnlockLabel.string = "task_goto".ToUILocale(), this.DescLabel.node.active = !0, this.DescLabel.string = "AngelHandbook_Up_Level_Tip".ToUILocale().Fmt()) : 0 == t.HandBookStar ? this.UnlockLabel.string = "common_unlock".ToUILocale() : this.UnlockLabel.string = "common_upgrade_level".ToUILocale()
                        } else this.LockButton.node.active = !0, this.DescLabel.node.active = !0, this.DescLabel.string = "AngelHandbook_Unlock_Tip".ToUILocale();
                        break;
                    case l.Subliming:
                        if (this.SublimingGoBackButton.node.active = t && t.HandBookSublimate > 0, !t || t.HandBookStar < this.ANGEL_HANDBOOK_MAX_LEVEL) return t && t.HandBookSublimate > 0 ? this.AttrTitleLabel.string = "HeroHandbook_Subliming_Attr_Title_Up".ToUILocale().Fmt(t.HandBookSublimate, t.HandBookSublimate + 1) : this.AttrTitleLabel.string = "HeroHandbook_Subliming_Attr_Title_Up".ToUILocale().Fmt(0, 1), this.MaxLevelTip.string = "AngelHandbook_Subliming_Unlock_Tip".ToUILocale(), void(this.MaxLevelTip.node.active = !0);
                        var o = d.ConfigDataComponent.Instance.GetConfigById(u.AngelHandBookSublimate_Config, e.Id);
                        t.HandBookSublimate < o.Attr.length ? (this.UnlockButton.node.active = !0, this.MaterialContainer.active = !0, this.UnlockLabel.string = "HeroHandbook_Toggle_1".ToUILocale(), this.UnlockButton.node.x = 300, this.AttrTitleLabel.string = "HeroHandbook_Subliming_Attr_Title_Up".ToUILocale().Fmt(t.HandBookSublimate, t.HandBookSublimate + 1), this.SetMaterialContainer()) : (this.MaxLevelTip.node.active = !0, this.MaxLevelTip.string = "common_max_level".ToUILocale(), this.AttrTitleLabel.string = "HeroHandbook_Subliming_Attr_Title".ToUILocale().Fmt(t.HandBookSublimate))
                }
            }, t.prototype.SetMaterialContainer = function() {
                if (!this._materialComponent) {
                    var e = cc.instantiate(this._materialItemPrefab);
                    e.setParent(this.MaterialContainer), this._materialComponent = e.getComponent(b.default)
                }
                var t = this._angelConfigArray[this._selectIndex];
                this._materialComponent.Init(this._itemPrefab, t.AngelSoulId, this._sublimingMaterialNeedCount)
            }, t.prototype.OnUnlockButtonClick = function() {
                var e = this._angelConfigArray[this._selectIndex],
                    t = d.DataCenter.Instance.GetDataById(p.UserAngel_Model, e.Id);
                switch (this._currentToggleIndex) {
                    case l.Unlock:
                        var n;
                        if (n = 0 == t.StarLevel && 0 == t.SubStarLevel ? 0 : 0 == t.SubStarLevel ? 100 * (t.StarLevel - 1) + 5 : 100 * t.StarLevel + t.SubStarLevel, t.HandBookStar == n) return I.UIUtlity.ShowFloatingHint("AngelHandbook_Up_Level_Tip".ToUILocale()), void c.UIManager.Instance.ShowUIPanel(m.PanelConfig.AngelGuardInfoPanel.Path, e.Id, null, A.Tab.UpStar);
                        this._oldBattlePower = d.DataCenter.Instance.GetIntData(C.UserDataKey.Power);
                        var o = new p.Req_Item_AngelHandBookUpdate;
                        o.Id = e.Id, d.RpcComponent.Instance.Call(o, this.OnUpLevelSuccess.bind(this));
                        break;
                    case l.Subliming:
                        if (!d.DataCenter.Instance.IsItemEnough(e.AngelSoulId, this._sublimingMaterialNeedCount)) return void I.UIUtlity.ShowFloatingHint("HeroHandbook_Material_Not_Enough".ToUILocale());
                        this._oldBattlePower = d.DataCenter.Instance.GetIntData(C.UserDataKey.Power);
                        var r = new p.Req_Item_AngelHandbookDeposit;
                        r.Id = e.Id, r.Level = t.HandBookSublimate + 1, d.RpcComponent.Instance.Call(r, this.OnUpLevelSuccess.bind(this))
                }
            }, t.prototype.OnUpLevelSuccess = function() {
                var e, t = this._angelConfigArray[this._selectIndex];
                if (this._currentToggleIndex == l.Unlock) {
                    if (e = v.CollectionHandbookType.Hero, !this._isCanSubliming) {
                        var n = d.DataCenter.Instance.GetDataById(p.UserAngel_Model, t.Id);
                        n && n.HandBookStar == this.ANGEL_HANDBOOK_MAX_LEVEL && (this._isCanSubliming = !0, this.ToggleContainer.active = !0, this.SetToggle())
                    }
                } else this._currentToggleIndex == l.Subliming && (e = v.CollectionHandbookType.HeroSubliming);
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.CollectionHandbookSuccessPanel.Path, e, null, null, this._upLevelAddAttrData);
                var o = d.DataCenter.Instance.GetIntData(C.UserDataKey.Power);
                this._oldBattlePower != o && c.UIManager.Instance.ShowUIPanel(m.PanelConfig.BattlePowerChangePanel.Path, this._oldBattlePower, o), this.SetAttrContainer(), this.SetCurrentShow(), this.SetRedDot(), this._angelCardComponentArray[this._selectIndex].IsGrayIcon(!1);
                var r, i = {
                    Value1: t.Id
                };
                this._currentToggleIndex == l.Unlock ? r = P.RedDotDataHandler.Instance.RefreshAngelHandbookUpLevelButton(i) : this._currentToggleIndex == l.Subliming && (r = P.RedDotDataHandler.Instance.RefreshAngelHandbookSublimingButton(i)), this._angelCardComponentArray[this._selectIndex].SetRedDotState(r)
            }, t.prototype.OnTotalButtonClick = function() {
                var e = {};
                this._angelConfigArray.forEach(function(t) {
                    var n = d.DataCenter.Instance.GetDataById(p.UserAngel_Model, t.Id);
                    if (n && n.HandBookStar > 0)
                        for (var o = Math.floor(n.HandBookStar / 100), r = n.HandBookStar % 100, i = d.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * t.Id + o), a = d.ConfigDataComponent.Instance.GetConfigById(u.CommonAttrs_Config, i.AngelBookPointAttrs[r - 1]), s = 0; s < a.Attrs.length; s++) {
                            var l = a.Attrs[s].Items[0],
                                c = a.Attrs[s].Items[1];
                            e[l] ? e[l] += c : e[l] = c
                        }
                    if (n && n.HandBookSublimate > 0)
                        for (var h = d.ConfigDataComponent.Instance.GetConfigById(u.AngelHandBookSublimate_Config, t.Id), f = (a = d.ConfigDataComponent.Instance.GetConfigById(u.CommonAttrs_Config, h.Attr[n.HandBookSublimate - 1]), 0); f < a.Attrs.length; f++) l = a.Attrs[f].Items[0], c = a.Attrs[f].Items[1], e[l] ? e[l] += c : e[l] = c
                }), c.UIManager.Instance.ShowUIPanel(m.PanelConfig.CollectionHandbookAttributePanel.Path, e)
            }, t.prototype.OnSublimingGoBackButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.HeroSublimingGoBackPanel.Path, S.SublimingGoBackType.Angel, this._angelConfigArray[this._selectIndex].Id)
            }, t.prototype.SetRedDot = function() {
                var e = this._angelConfigArray[this._selectIndex];
                switch (this._isCanSubliming && (w.RedDotManager.Instance.BindInstance(this.ToggleArray[0].node, w.RedDotManager.Instance.InstanceRedDot.AngelHandbookUpLevelToggle, {}, 0, -70, -1), w.RedDotManager.Instance.BindInstance(this.ToggleArray[1].node, w.RedDotManager.Instance.InstanceRedDot.AngelHandbookSublimingToggle, {}, 0, -70, -1)), this._currentToggleIndex) {
                    case l.Unlock:
                        w.RedDotManager.Instance.BindInstance(this.UnlockButton.node, w.RedDotManager.Instance.InstanceRedDot.AngelHandbookUpLevelButton, {
                            Value1: e.Id
                        });
                        break;
                    case l.Subliming:
                        w.RedDotManager.Instance.BindInstance(this.UnlockButton.node, w.RedDotManager.Instance.InstanceRedDot.AngelHandbookSublimingButton, {
                            Value1: e.Id
                        })
                }
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "AngelHandbook_Rule_Name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["AngelHandbook_Rule_Content".ToUILocale()]
                };
                I.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnHideButtonClick = function() {
                this._isHidePanel ? this._isHidePanel = !1 : this._isHidePanel = !0, this.SetHideUI()
            }, t.prototype.SetHideUI = function() {
                this.HideLabel.string = this._isHidePanel ? "personalityCall_show".ToUILocale() : "personalityCall_hide".ToUILocale(), this._isHidePanel ? (this.InfoContainer.active = !1, this._isCanSubliming && (this.ToggleContainer.active = !1)) : (this.InfoContainer.active = !0, this._isCanSubliming && (this.ToggleContainer.active = !0))
            }, t.prototype.OnLeftArrowButtonClick = function() {
                var e = this._selectIndex - 1,
                    t = this._selectIndex - 1;
                null != t && (e = t), this.ClickChangeAngel(e), this.MoveList(), this.SetHideUI()
            }, t.prototype.OnRightArrowButtonClick = function() {
                var e = this._selectIndex + 1,
                    t = this._selectIndex + 1;
                null != t && (e = t), this.ClickChangeAngel(e), this.MoveList(), this.SetHideUI()
            }, t.prototype.OnClickAngelCard = function(e, t) {
                -1 == this.MaterialContainer.children.indexOf(t) && -1 != this.HeroContainer.children.indexOf(t) && e != this._selectIndex && this.ClickChangeAngel(e)
            }, t.prototype.ClickChangeAngel = function(e) {
                this._angelCardComponentArray[e] && this._angelCardComponentArray[e].SetHighLightBg(!0), this._angelCardComponentArray[this._selectIndex] && this._angelCardComponentArray[this._selectIndex].SetHighLightBg(!1), this._selectIndex = e, this.SetUIContent()
            }, t.prototype.MoveList = function() {
                var e = this._selectIndex - 2 >= 0 ? this._selectIndex - 2 : 0;
                this.HeroScrollView.scrollToOffset(new cc.Vec2(230 * e, 0), .2)
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, i([k(cc.Label)], t.prototype, "Title", void 0), i([k(h.LevelComponent)], t.prototype, "LevelComponent", void 0), i([k(cc.Button)], t.prototype, "RuleButton", void 0), i([k(cc.Button)], t.prototype, "HideButton", void 0), i([k(cc.Label)], t.prototype, "HideLabel", void 0), i([k(cc.Node)], t.prototype, "AvatarNode", void 0), i([k(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([k(cc.Button)], t.prototype, "RightArrowButton", void 0), i([k(cc.Node)], t.prototype, "ToggleContainer", void 0), i([k([f.default])], t.prototype, "ToggleArray", void 0), i([k(cc.Node)], t.prototype, "InfoContainer", void 0), i([k(cc.ScrollView)], t.prototype, "HeroScrollView", void 0), i([k(cc.Node)], t.prototype, "HeroContainer", void 0), i([k(cc.Label)], t.prototype, "AttrTitleLabel", void 0), i([k(cc.Node)], t.prototype, "AttrContainer", void 0), i([k(cc.Node)], t.prototype, "MaterialContainer", void 0), i([k(cc.Label)], t.prototype, "DescLabel", void 0), i([k(cc.Label)], t.prototype, "MaxLevelTip", void 0), i([k(cc.Button)], t.prototype, "UnlockButton", void 0), i([k(cc.Label)], t.prototype, "UnlockLabel", void 0), i([k(cc.Button)], t.prototype, "LockButton", void 0), i([k(cc.Label)], t.prototype, "LockLabel", void 0), i([k(cc.Button)], t.prototype, "TotalButton", void 0), i([k(cc.Label)], t.prototype, "TotalLabel", void 0), i([k(cc.Button)], t.prototype, "SublimingGoBackButton", void 0), i([k(cc.Label)], t.prototype, "SublimingGoBackLabel", void 0), i([k(cc.Button)], t.prototype, "ReturnButton", void 0), i([k(cc.Node)], t.prototype, "LeftRedNode", void 0), i([k(cc.Node)], t.prototype, "RightRedNode", void 0), i([L], t)
        }(c.BaseUIFullScreenPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AngelCardComponent": "AngelCardComponent",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/CustomToggleRollingLabel": "CustomToggleRollingLabel",
        "../Components/FetterSkillMaterialComponent": "FetterSkillMaterialComponent",
        "../Components/LevelComponent": "LevelComponent",
        "./AngelGuardInfoPanel": "AngelGuardInfoPanel",
        "./CollectionHandbookPanel": "CollectionHandbookPanel",
        "./HeroSublimingGoBackPanel": "HeroSublimingGoBackPanel"
    }],
    AngelDestinyActivePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a98fbr9mWtKvaYmgxrVejtf", "AngelDestinyActivePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("./AngelInfoDestinyComponent"),
            h = e("./AngelDestinyPointComponent"),
            f = e("../Components/ItemComponent"),
            y = e("../../Components/Components"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("./AngelDestinyLabelComponent"),
            I = e("../Components/TipsLocationComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../../ShareConsts/EnumType"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.MaskBGNode = null, t.ActiveNode = null, t.ActiveButton = null, t.ActiveLabel = null, t.ProgressLabel = null, t.ConsumeNode = null, t.ConsumeNodes = [], t.Content = null, t._isActive = !1, t._itemNodes = [], t._labelNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AngelDestinyPanel/Component/AngelDestinyLabelComponent", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("AngelDestinyPanel/PNG/AngelDestiny", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._activeLabelPrefab = e[0], r._itemPrefab = e[1], r._angelAtlas = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ActiveLabel.string = "ChaosTemple_Active".ToUILocale(), this.ActiveButton.node.on("click", this.ClickActiveButton, this), this.MaskBGNode.on(cc.Node.EventType.TOUCH_END, this.ActiveFail, this), this.MaskBGNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._fateConfig = t[0], this._fatePageConfig = t[1], this._angelId = t[2], this._clickNode = t[3]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.node.opacity = 0, this._angelModel = c.DataCenter.Instance.GetDataById(u.UserAngel_Model, this._angelId), this._isActive = this._angelModel.FatePoints.includes(this._fateConfig.Id), this._size = d.default.GetPointSize(this._fateConfig), this.SetActiveNode(), this.SetConsumeNode(), this.SetActiveLabels()
                }, t.prototype.SetActiveNode = function() {
                    this.ActiveNode.active = !this._isActive
                }, t.prototype.SetConsumeNode = function() {
                    var e = this;
                    if (this.ConsumeNode.active = !this._isActive, !this._isActive) {
                        if (this.ProgressLabel.node.active = this._size == h.AngelDestinyPointSize.Big, this._size == h.AngelDestinyPointSize.Big) {
                            var t = this.GetCurrentPageActiveCount(),
                                n = this._fatePageConfig.FateIds[1] - this._fatePageConfig.FateIds[0];
                            this.ProgressLabel.string = "angel_destiny_progress".ToUILocale().Fmt(t, n)
                        }
                        this.ConsumeNodes.forEach(function(e) {
                            e.active = !1
                        }), this._fateConfig.Materials.forEach(function(t, n) {
                            if (e.ConsumeNodes[n]) {
                                e.ConsumeNodes[n].active = !0;
                                var o = e.ConsumeNodes[n].getChildByName("ItemNode"),
                                    r = e.ConsumeNodes[n].getChildByName("Count").getComponent(cc.RichText);
                                if (!e._itemNodes[n]) {
                                    var i = cc.instantiate(e._itemPrefab);
                                    i.parent = o, i.y = -20, e._itemNodes[n] = i
                                }
                                e._itemNodes[n].getComponent(f.ItemComponent).Init({
                                    ItemId: t.Items[0]
                                });
                                var a = y.DataCenter.Instance.GetItemCount(t.Items[0]),
                                    s = a >= t.Items[1];
                                r.string = s ? "<outline color=#000000><color=#ffffff>{0}/{1}</c></o>".Fmt(a, t.Items[1]) : "<outline color=#000000><color=#ff0000>{0}</c><color=#ffffff>/{1}</c></o>".Fmt(a, t.Items[1])
                            }
                        })
                    }
                }, t.prototype.SetActiveLabels = function() {
                    var e = this,
                        t = [];
                    switch (this._size) {
                        case h.AngelDestinyPointSize.Big:
                            if (this._fateConfig.UnlockPos > 0) {
                                var n = this._isActive ? "#ffffff" : "#afbfe7",
                                    o = this._isActive ? "#eb6100" : "#afbfe7",
                                    r = "angel_unlock_soul".ToUILocale().Fmt(n, o, this._fateConfig.UnlockPos);
                                t.push(r)
                            }
                            this._fateConfig.GlobalSkills.length > 0 && this._fateConfig.GlobalSkills.forEach(function(n) {
                                if (n.Items[0] == e._angelId)
                                    for (var o = 1; o < n.Items.length; o++) {
                                        var r = e._isActive ? "#ffffff" : "#afbfe7",
                                            i = e._isActive ? "#eb6100" : "#afbfe7",
                                            a = n.Items[o].ToHeroSkillName(),
                                            s = g.default.GetAngelSkillLevelBySkillId(n.Items[0], n.Items[o], 1),
                                            l = "angel_skill_level_up".ToUILocale().Fmt(r, a, i, s);
                                        t.push(l)
                                    }
                            });
                            break;
                        case h.AngelDestinyPointSize.Mid:
                        case h.AngelDestinyPointSize.Small:
                            t = this.GetLabelString()
                    }
                    t.push("angel_destiny_effect".ToUILocale());
                    var i = this._size == h.AngelDestinyPointSize.Small ? this.GetSmallPointAttrId() : 0;
                    this._labelNodes.forEach(function(e) {
                        e.active = !1
                    }), t.forEach(function(n, o) {
                        if (!e._labelNodes[o]) {
                            var r = cc.instantiate(e._activeLabelPrefab);
                            r.parent = e.Content, e._labelNodes[o] = r
                        }
                        e._labelNodes[o].active = !0, e._labelNodes[o].getComponent(m.default).Init(n, e._size, e._isActive, e._angelAtlas, i, o == t.length - 1)
                    }), this.Content.getComponent(cc.Layout).updateLayout(), setTimeout(function() {
                        e.isValid && (e.node.getComponent(I.default).RepositionPanel(e._clickNode), e.node.opacity = 255)
                    }, 1e3 * cc.director.getDeltaTime())
                }, t.prototype.GetLabelString = function() {
                    var e = [];
                    if (this._fateConfig.GlobalAttrs.length > 0)
                        for (var t = this._fateConfig.GlobalAttrs.length - 1; t >= 0; t--) {
                            var n = this._fateConfig.GlobalAttrs[t],
                                o = g.default.GetHeroAttribute(n.Items[0], n.Items[1], !0),
                                r = "angel_all_hero".ToUILocale().Fmt(o.Name, o.Value);
                            e.push(r)
                        }
                    if (this._fateConfig.Attrs.length > 0)
                        for (t = this._fateConfig.Attrs.length - 1; t >= 0; t--) n = this._fateConfig.Attrs[t], o = g.default.GetHeroAttribute(n.Items[0], n.Items[1], !0), r = "<color=#ffffff>{0}</c> <color=#00ff00>+{1}</c>".Fmt(o.Name, o.Value), e.push(r);
                    return e
                }, t.prototype.GetSmallPointAttrId = function() {
                    var e = 0;
                    return this._fateConfig.Attrs.length > 0 ? e = this._fateConfig.Attrs[0].Items[0] : this._fateConfig.GlobalAttrs.length > 0 && (e = this._fateConfig.GlobalAttrs[0].Items[0]), e
                }, t.prototype.GetCurrentPageActiveCount = function() {
                    var e = this,
                        t = 0;
                    return this._angelModel.FatePoints.forEach(function(n) {
                        n >= e._fatePageConfig.FateIds[0] && n <= e._fatePageConfig.FateIds[1] && t++
                    }), t
                }, t.prototype.CheckItemIsEnough = function() {
                    for (var e = 0; e < this._fateConfig.Materials.length; e++) {
                        var t = this._fateConfig.Materials[e];
                        if (!y.DataCenter.Instance.IsItemEnough(t.Items[0], t.Items[1])) return _.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t.Items[0].ToItemName())), l.UIManager.Instance.QuitPanelStack(this), l.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, t.Items[0]), !1
                    }
                    return !0
                }, t.prototype.ClickActiveButton = function() {
                    var e = this;
                    if (this.CheckItemIsEnough()) {
                        if (this._size == h.AngelDestinyPointSize.Big && this.GetCurrentPageActiveCount() < this._fatePageConfig.FateIds[1] - this._fatePageConfig.FateIds[0]) return void _.UIUtlity.ShowFloatingHint("angel_progress_not_get".ToUILocale());
                        var t = y.DataCenter.Instance.GetIntData(v.UserDataKey.Power),
                            n = g.default.GetAngelPower(this._angelModel.AngelId),
                            o = g.default.GetAngelAttack(this._angelModel.AngelId),
                            r = this._angelModel.Attrs[v.HeroAttributeType.AngelCritChance],
                            i = this._angelModel.Attrs[v.HeroAttributeType.AngelCritDamageAddon],
                            a = this._angelModel.Attrs[v.HeroAttributeType.AngelDamageAddon],
                            s = new u.Req_Item_AngelActiveFatePoint;
                        s.AngelId = this._angelId, s.PointIds = [this._fateConfig.Id], c.RpcComponent.Instance.Call(s, function() {
                            l.Game.EventDispatcher.Emit(C.EventKeys.EVENT_UNLOCK_PAGE_EFFECT, e._fateConfig.Id), l.UIManager.Instance.BackUIPanel();
                            var s = y.DataCenter.Instance.GetIntData(v.UserDataKey.Power);
                            e._angelModel = c.DataCenter.Instance.GetDataById(u.UserAngel_Model, e._angelId), t != s && l.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattlePowerChangePanel.Path, t, s);
                            var d = g.default.GetAngelPower(e._angelModel.AngelId);
                            if (n != d) {
                                var h = d - n,
                                    f = g.default.GetAngelAttack(e._angelModel.AngelId) - o,
                                    m = e._angelModel.Attrs[v.HeroAttributeType.AngelCritChance] - r,
                                    I = e._angelModel.Attrs[v.HeroAttributeType.AngelCritDamageAddon] - i,
                                    _ = e._angelModel.Attrs[v.HeroAttributeType.AngelDamageAddon] - a,
                                    b = {};
                                b[v.HeroAttributeType.AngelAttack] = f, b[v.HeroAttributeType.AngelCritChance] = m, b[v.HeroAttributeType.AngelCritDamageAddon] = I, b[v.HeroAttributeType.AngelDamageAddon] = _, l.UIManager.Instance.ShowUIPanel(p.PanelConfig.LevelUpHintPanel.Path, d, h, 0, 0, 0, b)
                            }
                        }, this.ActiveFail.bind(this))
                    }
                }, t.prototype.ActiveFail = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    for (var n = 0; n < this.ConsumeNodes.length; n++) - 1 != this.ConsumeNodes[n].getChildByName("ItemNode").children.indexOf(t) && (l.UIManager.Instance.QuitPanelStack(this), l.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, t.getComponent(f.ItemComponent).ItemId))
                }, i([w(cc.Node)], t.prototype, "MaskBGNode", void 0), i([w(cc.Node)], t.prototype, "ActiveNode", void 0), i([w(cc.Button)], t.prototype, "ActiveButton", void 0), i([w(cc.Label)], t.prototype, "ActiveLabel", void 0), i([w(cc.Label)], t.prototype, "ProgressLabel", void 0), i([w(cc.Node)], t.prototype, "ConsumeNode", void 0), i([w(cc.Node)], t.prototype, "ConsumeNodes", void 0), i([w(cc.Node)], t.prototype, "Content", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent",
        "./AngelDestinyLabelComponent": "AngelDestinyLabelComponent",
        "./AngelDestinyPointComponent": "AngelDestinyPointComponent",
        "./AngelInfoDestinyComponent": "AngelInfoDestinyComponent"
    }],
    AngelDestinyLabelComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c0e4bFgrB5BhpmKGhQJqoNj", "AngelDestinyLabelComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = e("./AngelDestinyPointComponent"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.ActiveIconNode = null, t.UnActiveIconNode = null, t.Desc = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r, i) {
                    if (this.Icon.node.active = i, this.ActiveIconNode.active = !i && n, this.UnActiveIconNode.active = !i && !n, i) switch (t) {
                        case s.AngelDestinyPointSize.Big:
                            this.Icon.spriteFrame = o.getSpriteFrame("ponit1");
                            break;
                        case s.AngelDestinyPointSize.Mid:
                            this.Icon.spriteFrame = o.getSpriteFrame("point2");
                            break;
                        case s.AngelDestinyPointSize.Small:
                            this.Icon.spriteFrame = a.default.GetHeroAttributeIcon(r)
                    }
                    this.Desc.string = e
                }, i([u(cc.Sprite)], t.prototype, "Icon", void 0), i([u(cc.Node)], t.prototype, "ActiveIconNode", void 0), i([u(cc.Node)], t.prototype, "UnActiveIconNode", void 0), i([u(cc.RichText)], t.prototype, "Desc", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "./AngelDestinyPointComponent": "AngelDestinyPointComponent"
    }],
    AngelDestinyLineComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "213b7io34tGY7y90l8cW33w", "AngelDestinyLineComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Line = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.Line.width = e
                }, i([l(cc.Node)], t.prototype, "Line", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AngelDestinyPageComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fd255ciJApEaYOmmTy5Qpw4", "AngelDestinyPageComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RightNode = null, t.PageButton = null, t.Page = null, t.UnLockNode = null, t.LockNode = null, t.SelectedNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.PageButton.node.on("click", this.ClickPageButton, this)
                }, t.prototype.onDisable = function() {
                    this.PageButton.node.off("click", this.ClickPageButton, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._curIndex = e;
                    var i = e + 1 <= n;
                    this.RightNode.active = e < t - 1 && i;
                    var a = e <= n;
                    this.Page.node.active = a, this.UnLockNode.active = a, this.LockNode.active = !a, this._basePanel = o, a && (this.Page.string = (e + 1).toString()), this.SelectedNode.active = e == r
                }, t.prototype.ClickPageButton = function() {
                    this._basePanel.ClickPageButton(this._curIndex)
                }, i([l(cc.Node)], t.prototype, "RightNode", void 0), i([l(cc.Button)], t.prototype, "PageButton", void 0), i([l(cc.Label)], t.prototype, "Page", void 0), i([l(cc.Node)], t.prototype, "UnLockNode", void 0), i([l(cc.Node)], t.prototype, "LockNode", void 0), i([l(cc.Node)], t.prototype, "SelectedNode", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AngelDestinyPointComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8c748urrGpLuJ47R3SCiIi5", "AngelDestinyPointComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AngelDestinyPointSize = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property;
        (function(e) {
            e[e.Small = 0] = "Small", e[e.Mid = 1] = "Mid", e[e.Big = 2] = "Big"
        })(l = n.AngelDestinyPointSize || (n.AngelDestinyPointSize = {}));
        var I = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.StatusSprite = null, t.AttrIcon = null, t.MaskNode = null, t.MaskSpriteNode = null, t.ActiveEffect = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
            }, t.prototype.Init = function(e, t, n, o, r) {
                this._config = e, this._pageConfig = t, this._type = n, this._angelId = o, this._isActive = !1, this._atlas = r, this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                this.SetPonitStatus(), this.SetStatusSprite(), this.SetAttrIcon(), this.SetActiveEffect()
            }, t.prototype.SetPonitStatus = function() {
                this._angelModel = p.DataCenter.Instance.GetDataById(u.UserAngel_Model, this._angelId), this._isActive = this._angelModel.FatePoints && this._angelModel.FatePoints.length > 0 && this._angelModel.FatePoints.includes(this._config.Id)
            }, t.prototype.SetStatusSprite = function() {
                switch (this.StatusSprite.node.active = !1, this.MaskNode.active = !this._isActive, this._type) {
                    case l.Small:
                        this._isActive && (this.StatusSprite.spriteFrame = this._atlas.getSpriteFrame("point3_light"), this.StatusSprite.node.active = !0);
                        break;
                    case l.Big:
                        this._isActive ? this.StatusSprite.spriteFrame = this._atlas.getSpriteFrame("point1_bg_light") : this.StatusSprite.spriteFrame = this._atlas.getSpriteFrame("ponit1_bg_black"), this.StatusSprite.node.active = !0
                }
            }, t.prototype.SetAttrIcon = function() {
                var e = !1;
                switch (this._type) {
                    case l.Small:
                        var t = void 0;
                        if (this._config.Attrs.length > 0) {
                            var n = this._config.Attrs[0].Items[0];
                            t = d.default.GetAttrIcon(n)
                        } else this._config.GlobalAttrs.length > 0 && (n = this._config.GlobalAttrs[0].Items[0], t = d.default.GetAttrIcon(n));
                        var o = new cc.Node;
                        o.addComponent(cc.Sprite).spriteFrame = t, this._iconHeight = o.height, this._iconWidth = o.width, this.AttrIcon.spriteFrame = t, this.node.width != this._iconWidth && this.node.height != this._iconHeight && (this._iconHeight = o.height, this._iconWidth = o.width, e = !0), o.destroy();
                        break;
                    case l.Mid:
                        var r = this._atlas.getSpriteFrame("point2"),
                            i = new cc.Node;
                        i.addComponent(cc.Sprite).spriteFrame = r, this.AttrIcon.spriteFrame = r, this.node.width != this._iconWidth && this.node.height != this._iconHeight && (this._iconHeight = i.height, this._iconWidth = i.width, e = !0), i.destroy();
                        break;
                    case l.Big:
                        var a = this._atlas.getSpriteFrame("ponit1"),
                            s = new cc.Node;
                        s.addComponent(cc.Sprite).spriteFrame = a, this.AttrIcon.spriteFrame = a, this.node.width != this._iconWidth && this.node.height != this._iconHeight && (this._iconHeight = s.height, this._iconWidth = s.width, e = !0), s.destroy()
                }
                this.SetNodeSize(e)
            }, t.prototype.SetActiveEffect = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return !this._isActive && this.CheckItemIsEnough() ? this.ActiveEffect.node.opacity = 255 : this.ActiveEffect.node.opacity = 0, [2]
                    })
                })
            }, t.prototype.SetNodeSize = function(e) {
                e && (this.node.setContentSize(this._iconWidth, this._iconHeight), this.MaskNode.setContentSize(this._iconWidth, this._iconHeight), this.MaskSpriteNode.setContentSize(this._iconWidth, this._iconHeight))
            }, t.prototype.CheckItemIsEnough = function() {
                for (var e = 0; e < this._config.Materials.length; e++) {
                    var t = this._config.Materials[e];
                    if (!f.DataCenter.Instance.IsItemEnough(t.Items[0], t.Items[1])) return !1
                }
                return !0
            }, t.prototype.OnTouch = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelDestinyActivePanel.Path, this._config, this._pageConfig, this._angelId, this.node)
            }, i([m(cc.Sprite)], t.prototype, "StatusSprite", void 0), i([m(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([m(cc.Node)], t.prototype, "MaskNode", void 0), i([m(cc.Node)], t.prototype, "MaskSpriteNode", void 0), i([m(sp.Skeleton)], t.prototype, "ActiveEffect", void 0), i([g], t)
        }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components"
    }],
    AngelDestinyPointModeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9d3a5h54D1OUrI9SeWffLe6", "AngelDestinyPointModeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PointNodes = [], t.LineNode = null, t.AngelPointsComponents = [], t
                }
                return r(t, e), t.prototype.SetPointAngel = function() {
                    this.AngelPointsComponents.forEach(function(e) {
                        e.children.forEach(function(t) {
                            t.angle = -e.angle
                        })
                    })
                }, t.prototype.SetPointParent = function(e, t) {
                    this.PointNodes[t] && (e.parent = this.PointNodes[t])
                }, t.prototype.SetLineParent = function(e) {
                    e.parent = this.LineNode
                }, i([l(cc.Node)], t.prototype, "PointNodes", void 0), i([l(cc.Node)], t.prototype, "LineNode", void 0), i([l(cc.Node)], t.prototype, "AngelPointsComponents", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AngelDestinyQuickActivePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "777ec1nKRJKFIA8bgBfaACN", "AngelDestinyQuickActivePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Components/Components"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.HintRichText = null, t.ScrollView = null, t.Content = null, t.CancelButton = null, t.CancelLabel = null, t.SureButton = null, t.SureLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "angel_quick_active".ToUILocale(), this.CancelLabel.string = "cancel".ToUILocale(), this.SureLabel.string = "ok".ToUILocale(), this.CancelButton.node.on("click", this.ClickCancelButton, this), this.SureButton.node.on("click", this.ClickSureButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0], this._callback = t[1], this._angelId = t[2]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisPlay = t, this._isReDisPlay || (this.SetHint(), this.SetConsumeNodes())
                }, t.prototype.SetHint = function() {
                    this.HintRichText.string = "angel_item_check".ToUILocale().Fmt(this._data[0])
                }, t.prototype.SetConsumeNodes = function() {
                    var e = 0;
                    for (var t in this._data[2]) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.y = -20, n.parent = this.Content, n.getComponent(d.ItemComponent).Init({
                            ItemId: Number(t),
                            Count: this._data[2][t]
                        }), e++
                    }
                    this.ScrollView.enabled = e >= 5
                }, t.prototype.ClickCancelButton = function() {
                    this._callback && (this._callback(), this.Close())
                }, t.prototype.CheckItemIsEnough = function() {
                    for (var e in this._data[2])
                        if (!y.DataCenter.Instance.IsItemEnough(Number(e), this._data[2][e])) return f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(Number(e).ToItemName())), l.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, Number(e)), !1;
                    return !0
                }, t.prototype.ClickSureButton = function() {
                    var e = this;
                    if (this.CheckItemIsEnough()) {
                        var t = y.DataCenter.Instance.GetIntData(g.UserDataKey.Power),
                            n = c.DataCenter.Instance.GetDataById(u.UserAngel_Model, this._angelId),
                            o = m.default.GetAngelPower(n.AngelId),
                            r = m.default.GetAngelAttack(n.AngelId),
                            i = n.Attrs[g.HeroAttributeType.AngelCritChance],
                            a = n.Attrs[g.HeroAttributeType.AngelCritDamageAddon],
                            s = n.Attrs[g.HeroAttributeType.AngelDamageAddon],
                            d = new u.Req_Item_AngelActiveFatePoint;
                        d.AngelId = this._angelId, d.PointIds = this._data[1], c.RpcComponent.Instance.Call(d, function() {
                            if (e._callback) {
                                var d = 0;
                                e._data[1].forEach(function(e) {
                                    d = Math.max(d, e)
                                }), d > 0 && l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_UNLOCK_PAGE_EFFECT, d);
                                var f = y.DataCenter.Instance.GetIntData(g.UserDataKey.Power);
                                n = c.DataCenter.Instance.GetDataById(u.UserAngel_Model, e._angelId), n = c.DataCenter.Instance.GetDataById(u.UserAngel_Model, e._angelId), t != f && l.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattlePowerChangePanel.Path, t, f);
                                var I = m.default.GetAngelPower(n.AngelId);
                                if (o != I) {
                                    var _ = I - o,
                                        C = m.default.GetAngelAttack(n.AngelId) - r,
                                        v = n.Attrs[g.HeroAttributeType.AngelCritChance] - i,
                                        b = n.Attrs[g.HeroAttributeType.AngelCritDamageAddon] - a,
                                        S = n.Attrs[g.HeroAttributeType.AngelDamageAddon] - s,
                                        w = {};
                                    w[g.HeroAttributeType.AngelAttack] = C, w[g.HeroAttributeType.AngelCritChance] = v, w[g.HeroAttributeType.AngelCritDamageAddon] = b, w[g.HeroAttributeType.AngelDamageAddon] = S, l.UIManager.Instance.ShowUIPanel(p.PanelConfig.LevelUpHintPanel.Path, I, _, 0, 0, 0, w)
                                }
                                e._callback(), e.Close()
                            }
                        })
                    } else this.ClickCancelButton()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.Content.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.RichText)], t.prototype, "HintRichText", void 0), i([C(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([C(cc.Node)], t.prototype, "Content", void 0), i([C(cc.Button)], t.prototype, "CancelButton", void 0), i([C(cc.Label)], t.prototype, "CancelLabel", void 0), i([C(cc.Button)], t.prototype, "SureButton", void 0), i([C(cc.Label)], t.prototype, "SureLabel", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AngelDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "163eaGjKApERIiKjQBGL4gr", "AngelDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AngelDetailShowType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/Components"),
            g = e("../Components/AngelCardComponent"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("./AngelSelectSkillPanel"),
            C = e("../Components/SkillItemComponent"),
            v = e("../Components/ItemComponent"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../Auxiliary/EventKeys"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.Common = 0] = "Common", e[e.Pvp = 1] = "Pvp"
        })(l = n.AngelDetailShowType || (n.AngelDetailShowType = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.TitleNode = null, t.Title = null, t.AngelName = null, t.AngelCardNode = null, t.Power = null, t.BaseAttrNodes = [], t.GLobalAttr = null, t.GlobalAttrNodes = [], t.SkillTitle = null, t.SkillNode = null, t.SoulTitle = null, t.SoulNode = null, t.Layout = null, t.BaseAttrContent = null, t.GlobalAttrContent = null, t.DetailButton = null, t.DetailLabel = null, t._angelConfig = null, t._souls = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.AngelCardComponent, cc.Prefab), n = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset(f.BundlePath.SkillItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._angelCardPrefab = e[0], r._itemPrefab = e[1], r._skillItemPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.GLobalAttr.string = "angel_global_attr".ToUILocale(), this.SkillTitle.string = "HeroDetail_skill".ToUILocale(), this.SoulTitle.string = "angel_toggle_3".ToUILocale(), this.Title.string = "AngelSummon_Detail_Tip".ToUILocale(), this.DetailLabel.string = "HeroDetail_moreInfo".ToUILocale(), this.DetailButton.node.on("click", this.OnDetailButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._angelId = t[0], this._formationSid = t[1], this._formationSid < h.FormationIdType.SingleAngelStart ? this._showType = l.Common : this._formationSid < h.FormationIdType.MultipleAngelsStart ? this._showType = l.Pvp : this._showType = l.Common, t[2] && (this._playerUid = t[2]), t[3] && (this._zone = t[3])
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisPlay = t, this._isReDisPlay || (this.SetNodeAdapt(), this._angelId > 0 ? this.SetSelfAngelInfo() : this.SetOtherAngelInfo())
            }, t.prototype.SetNodeAdapt = function() {
                var e = this;
                this.TitleNode.active = this._showType == l.Pvp, this.DetailButton.node.active = this._showType == l.Pvp, this.GlobalAttrContent.active = this._showType == l.Common, this.Layout.paddingTop = this._showType == l.Common ? 30 : -40, this.Layout.updateLayout(), this.AngelCardNode.scale = this._showType == l.Common ? 1.6 : 1.1;
                var t = this._showType == l.Common ? new cc.Vec2(-483, -250) : new cc.Vec2(-553, -150);
                this.AngelCardNode.setPosition(t), this.AngelName.node.x = this._showType == l.Common ? -187 : -410, this.AngelName.node.anchorX = this._showType == l.Common ? .5 : 0, this.BaseAttrContent.x = this._showType == l.Common ? 205 : 128, this.BaseAttrContent.width = this._showType == l.Common ? 562 : 680, this.BaseAttrNodes.forEach(function(t) {
                    t.width = e.BaseAttrContent.width - 20, t.children.forEach(function(e) {
                        var t = e.getComponent(cc.Widget);
                        t && t.updateAlignment()
                    })
                })
            }, t.prototype.SetSelfAngelInfo = function() {
                this._angelConfig = p.ConfigDataComponent.Instance.GetConfigById(u.AngelBase_Config, this._angelId);
                var e = y.DataCenter.Instance.GetDataById(d.UserAngel_Model, this._angelId);
                this._personalWarAttr = e.PersonalWarAttr;
                var t = this._showType == l.Common ? I.default.GetAngelPower(this._angelId) : e.PersonalBattlePower,
                    n = this._showType == l.Common ? e.Attrs : e.PersonalWarAttr,
                    o = this._showType == l.Common ? e.Skills : e.PersonalBattleSkills;
                if (this.SetNameAngPower(this._angelId.ToAngelTitle(), t), this.SetAngelCard(e.StarLevel, e.Level), this.SetBaseAttr(n, !0), this._showType == l.Common) {
                    var r = this.GetAngelGlobalAttrDatas(e);
                    this.SetGlobalAttr(r), this.SetSkills(o)
                } else this.SetSkills(o, e.Level, e.StarLevel);
                var i = y.DataCenter.Instance.GetAngelSoul(this._angelId),
                    a = [];
                i.forEach(function(e) {
                    var t = p.DataCenter.Instance.GetDataById(d.UserGodSoul_Model, e);
                    a.push(t.ItemId)
                }), this.SetSouls(a)
            }, t.prototype.SetOtherAngelInfo = function() {
                this.RequestAngelDetailInfo()
            }, t.prototype.RequestAngelDetailInfo = function() {
                var e = new d.Req_Item_GetTargetAngel;
                e.TargetUid = this._playerUid, e.Zone = this._zone, e.FormationIdType = this._formationSid, p.RpcComponent.Instance.Call(e, this.ResponseAngelDetailInfo.bind(this))
            }, t.prototype.ResponseAngelDetailInfo = function(e) {
                this._angelId = e.Info.AngelId, this._angelConfig = p.ConfigDataComponent.Instance.GetConfigById(u.AngelBase_Config, this._angelId), this._personalWarAttr = e.Info.PersonalWarAttr;
                var t = this._showType == l.Common ? e.Info.Power : e.Info.PersonalBattlePower,
                    n = this._showType == l.Common ? e.Info.Attrs : e.Info.PersonalWarAttr,
                    o = this._showType == l.Common ? e.Info.Skills : e.Info.PersonalBattleSkills;
                this.SetNameAngPower(this._angelId.ToAngelTitle(), t), this.SetAngelCard(e.Info.StarLevel, e.Info.Level), this.SetBaseAttr(n, !1), this._showType == l.Common ? (this.SetGlobalAttr(e.Info.GlobalAttrs), this.SetSkills(o)) : this.SetSkills(o, e.Info.Level, e.Info.StarLevel), this.SetSouls(e.Info.GodSoulIds)
            }, t.prototype.SetNameAngPower = function(e, t) {
                this.AngelName.string = e, this.Power.string = t.toString()
            }, t.prototype.SetAngelCard = function(e, t) {
                var n = cc.instantiate(this._angelCardPrefab);
                n.parent = this.AngelCardNode, n.getComponent(g.default).Init({
                    ItemId: this._angelId,
                    StarLevel: e,
                    Level: t
                })
            }, t.prototype.SetBaseAttr = function(e, t) {
                var n = this,
                    o = [m.HeroAttributeType.AngelAttack, m.HeroAttributeType.AngelCritChance, m.HeroAttributeType.AngelCritDamageAddon, m.HeroAttributeType.AngelDamageAddon],
                    r = [m.HeroAttributeType.Attack, m.HeroAttributeType.Hp, m.HeroAttributeType.Defense, m.HeroAttributeType.Speed];
                (this._showType == l.Common ? o : r).forEach(function(o, r) {
                    var i = 0;
                    if (t)
                        if (o == m.HeroAttributeType.AngelAttack) {
                            var a = p.DataCenter.Instance.GetDataById(d.UserFormation_Model, n._formationSid);
                            a && a.Angel && a.Angel.Attrs && (i = a.Angel.Attrs[o.toString()])
                        } else e[o.toString()] && (i = e[o.toString()]);
                    else e[o.toString()] && (i = e[o.toString()]);
                    if (n.BaseAttrNodes[r]) {
                        var s = I.default.GetHeroAttribute(o, i);
                        n.BaseAttrNodes[r].getChildByName("Icon").getComponent(cc.Sprite).spriteFrame = s.Icon, n.BaseAttrNodes[r].getChildByName("TypeName").getComponent(cc.Label).string = s.Name, n.BaseAttrNodes[r].getChildByName("Value").getComponent(cc.Label).string = "+" + s.Value
                    }
                })
            }, t.prototype.SetGlobalAttr = function(e) {
                var t = this;
                [m.HeroAttributeType.Attack, m.HeroAttributeType.Hp].forEach(function(n, o) {
                    var r = 0;
                    if (e[n.toString()] && (r = e[n.toString()]), t.GlobalAttrNodes[o]) {
                        var i = I.default.GetHeroAttribute(n, r);
                        t.GlobalAttrNodes[o].getChildByName("Icon").getComponent(cc.Sprite).spriteFrame = i.Icon, t.GlobalAttrNodes[o].getChildByName("TypeName").getComponent(cc.Label).string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + i.Name, t.GlobalAttrNodes[o].getChildByName("Value").getComponent(cc.Label).string = "+" + i.Value
                    }
                })
            }, t.prototype.SetSkills = function(e, t, n) {
                var o = this._showType == l.Common ? 3 : e.length,
                    r = [];
                this._showType == l.Pvp && (r = I.default.GetAngelPersonalSkills(this._angelConfig.HeroId, t, n));
                for (var i = function(t) {
                        var n = cc.instantiate(a._skillItemPrefab);
                        n.parent = a.SkillNode;
                        var o = n.getComponent(C.default);
                        if (e[t]) {
                            var i = void 0;
                            if (a._showType == l.Common) i = I.default.GetAngelSkillLevelBySkillId(a._angelId, e[t], 1), o.Init(e[t], i);
                            else {
                                var s = r.find(function(n) {
                                    return n.SkillId == e[t]
                                });
                                s ? o.Init(e[t], s.Level) : (o.Init(null, null, null, null, C.ShowSkillItemTipType.Add), o.CanClick = !1)
                            }
                        } else o.Init(null, null, null, null, C.ShowSkillItemTipType.Add), o.CanClick = !1
                    }, a = this, s = 0; s < o; s++) i(s)
            }, t.prototype.SetSouls = function(e) {
                for (var t = 0; t < 5; t++) {
                    var n = cc.instantiate(this._itemPrefab);
                    n.parent = this.SoulNode;
                    var o = n.getComponent(v.ItemComponent);
                    if (e[t]) {
                        o.Init({
                            ItemId: e[t]
                        }), n.name = String(e[t]);
                        var r = e[t];
                        if (r && p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, r).Type == m.ItemType.GodSoul) {
                            var i = p.ConfigDataComponent.Instance.GetConfigById(u.AngelGodSoul_Config, r);
                            o.SetLeftTopTag(!0, b.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg6"), i.Level)
                        }
                    } else o.SetItemSimpleState()
                }
            }, t.prototype.GetAngelGlobalAttrDatas = function(e) {
                var t = {};
                return this._angelConfig.GodAvatar.forEach(function(e) {
                    var n = p.DataCenter.Instance.GetDataById(d.AngelSkin_Model, e),
                        o = _.default.CheckSkinIsUnlock(e);
                    n && o && p.ConfigDataComponent.Instance.GetConfigById(u.AngelGodAvatar_Config, e).GlobalAttrs.forEach(function(e) {
                        t[e.Items[0].toString()] ? t[e.Items[0].toString()] += e.Items[1] : t[e.Items[0].toString()] = e.Items[1]
                    })
                }), e.FatePoints.forEach(function(e) {
                    var n = p.ConfigDataComponent.Instance.GetConfigById(u.AngelFate_Config, e);
                    n && n.GlobalAttrs.forEach(function(e) {
                        t[e.Items[0].toString()] ? t[e.Items[0].toString()] += e.Items[1] : t[e.Items[0].toString()] = e.Items[1]
                    })
                }), t
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.SoulNode.children.indexOf(t) && c.UIManager.Instance.ShowUIPanel(f.PanelConfig.GodSoulTipsPanel.Path, e, t)
            }, t.prototype.OnDetailButtonClick = function() {
                var e = this,
                    t = [],
                    n = {};
                n.Title = "hero_attr_base".ToUILocale(), n.IsShowAddAttr = !0;
                var o = [];
                [m.HeroAttributeType.Attack, m.HeroAttributeType.Hp, m.HeroAttributeType.Defense, m.HeroAttributeType.Speed].forEach(function(t) {
                    var n = e._personalWarAttr[t] || 0;
                    o.push({
                        attrId: t,
                        attrvalue: n
                    })
                }), n.AttrArray = o, t.push(n);
                var r = {};
                r.Title = "hero_attr_special".ToUILocale(), r.IsShowAddAttr = !0;
                var i = [];
                p.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.HeroDetailAttrShowIds).Data.forEach(function(t) {
                    var n = p.ConfigDataComponent.Instance.GetConfigById(u.HeroAttribute_Config, t);
                    if (n) {
                        var o = n.Id,
                            r = e._personalWarAttr[o] || 0;
                        i.push({
                            attrId: o,
                            attrvalue: r
                        })
                    }
                }), r.AttrArray = i, t.push(r), c.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonTotalAttrPanel.Path, t)
            }, i([A(cc.Node)], t.prototype, "TitleNode", void 0), i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Label)], t.prototype, "AngelName", void 0), i([A(cc.Node)], t.prototype, "AngelCardNode", void 0), i([A(cc.Label)], t.prototype, "Power", void 0), i([A(cc.Node)], t.prototype, "BaseAttrNodes", void 0), i([A(cc.Label)], t.prototype, "GLobalAttr", void 0), i([A(cc.Node)], t.prototype, "GlobalAttrNodes", void 0), i([A(cc.Label)], t.prototype, "SkillTitle", void 0), i([A(cc.Node)], t.prototype, "SkillNode", void 0), i([A(cc.Label)], t.prototype, "SoulTitle", void 0), i([A(cc.Node)], t.prototype, "SoulNode", void 0), i([A(cc.Layout)], t.prototype, "Layout", void 0), i([A(cc.Node)], t.prototype, "BaseAttrContent", void 0), i([A(cc.Node)], t.prototype, "GlobalAttrContent", void 0), i([A(cc.Button)], t.prototype, "DetailButton", void 0), i([A(cc.Label)], t.prototype, "DetailLabel", void 0), i([P], t)
        }(c.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AngelCardComponent": "AngelCardComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./AngelSelectSkillPanel": "AngelSelectSkillPanel"
    }],
    AngelFavorRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b16163A31FJvpBre7rJhuws", "AngelFavorRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RankLabel = null, t.LevelLabel = null, t.RewardContent = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked, this)
                }, t.prototype.Init = function(e) {
                    this._favorData = e, this.RankLabel.string = "angel_favor_level".ToUILocale().Fmt(e.Id), this.LevelLabel.string = e.Id.toString(), this.SetReward()
                }, t.prototype.SetReward = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab)), this._itemNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._favorData.Rewards.forEach(function(e, n) {
                                        if (!t._itemNodes[n]) {
                                            var o = cc.instantiate(t._itemPrefab);
                                            o.parent = t.RewardContent, o.name = e.Items[0].toString(), o.y = -20, t._itemNodes[n] = o
                                        }
                                        t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(p.ItemComponent).Init({
                                            ItemId: e.Items[0],
                                            Count: e.Items[1]
                                        })
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClicked = function(e, t) {
                    this.RewardContent.children.indexOf(t) > -1 && h.UIUtlity.ShowItemTip(Number(e), t)
                }, i([g(cc.Label)], t.prototype, "RankLabel", void 0), i([g(cc.Label)], t.prototype, "LevelLabel", void 0), i([g(cc.Node)], t.prototype, "RewardContent", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AngelFavorRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "19e2bq/ELpBoLoN0+y7YjiF", "AngelFavorRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("./AngelFavorRewardComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.RewardContent = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HeroInfoPanel/Components/AngelFavorRewardComponent", cc.Prefab)];
                                case 1:
                                    return t._rewardItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "angel_favor_reward".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || u.ConfigDataComponent.Instance.GetArrayConfig(c.AngelFavorLevel_Config).forEach(function(e) {
                        var t = cc.instantiate(n._rewardItemPrefab);
                        t.parent = n.RewardContent, t.getComponent(p.default).Init(e)
                    })
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Node)], t.prototype, "RewardContent", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "./AngelFavorRewardComponent": "AngelFavorRewardComponent"
    }],
    AngelGodSoulCombinePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "09defQ3vaRHk54Jl1RATLox", "AngelGodSoulCombinePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/GodSoulItemComponent"),
            f = e("../../Components/RpcComponent"),
            y = e("../../Components/DataCenter"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../Components/Components"),
            I = e("./AngelGodSoulCombinePreviewPanel"),
            _ = e("../Components/CurrencyBarItem"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.PanelTitlelabel = null, t.TopTipLabel = null, t.ConsumLabel = null, t.AddOneBtnNode = null, t.CombineNode = null, t.AddOneBtnLabel = null, t.CombineLabel = null, t.EventNodeList = [], t.ItemContainerList = [], t.BackBtnNode = null, t.RuleNode = null, t.PutOffBtnNode = null, t.PutOffLabel = null, t.CurrencyComponent = null, t.EffectContainer = null, t.SkeletonList = [], t.LastAddNode = null, t.LastAddImg = null, t.LastAddBackSprite = null, t.LastBtn = null, t.PreviewNode = null, t.PreviewLabel = null, t.CombineOneButton = null, t.CombineOneButtonLabel = null, t.Lock = null, t.EventBlockNode = null, t._chosenGodSoul = [], t._itemComponent = [null, null, null, null], t._SoulLevelMap = {}, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_GODSOUL_SELECT, this.OnChoseSoul, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_GODSOUL_SELECT, this.OnChoseSoul, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AngelGodSoul/Components/GodSoulItemComponent", cc.Prefab), n = this.LoadDynamicAsset("Gems/Spine/UI_effect_baoshi_hecheng", sp.SkeletonData), o = this.LoadDynamicAsset("Gems/Spine/UI_effect_baoshi_chenggong", sp.SkeletonData), [4, Promise.all([t, n, o])];
                                case 1:
                                    return r = i.sent(), this._itemPrefab = r[0], this.SkeletonList[0].skeletonData = r[1], this.SkeletonList[1].skeletonData = r[1], this.SkeletonList[2].skeletonData = r[1], this.SkeletonList[3].skeletonData = r[2], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.PanelTitlelabel.string = "godSoul_combine".ToUILocale(), this.TopTipLabel.string = "godSoul_combine_tip".ToUILocale(), this.ConsumLabel.string = "luckycharm_consume".ToUILocale(), this.AddOneBtnLabel.string = "luckycharm_addAllIngredients".ToUILocale(), this.CombineLabel.string = "compose".ToUILocale(), this.PutOffLabel.string = "gem_auto_unload".ToUILocale(), this.PreviewLabel.string = "GodSoul_CombinePreView".ToUILocale(), this.CombineOneButtonLabel.string = "compose_auto".ToUILocale(), this.RuleNode.on("click", this.ShowRulePanel, this), this.EventNodeList.forEach(function(e) {
                        e.on("click", t.OnClickSoulContainer, t)
                    }), this.AddOneBtnNode.on("click", this.OnClickAddOneBtn, this), this.CombineNode.on("click", this.OnClickCombinebtn, this), this.BackBtnNode.on("click", this.OnClickBackBtn, this), this.PutOffBtnNode.on("click", this.OnClickPutOffBtn, this), this.PreviewNode.on("click", this.OnClickPreviewBtn, this), this.CombineOneButton.on("click", this.OnClickCombineOneButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var o = m.ConfigDataComponent.Instance.GetConfigById(g.AngelGodSoulLevel_Config, n.START_LEVEL_NUMBER);
                    this._materialsTypeId = o.ComposeData[1];
                    var r = m.ConfigDataComponent.Instance.GetArrayConfig(g.AngelGodSoulLevel_Config);
                    for (var i in r) {
                        var a = r[i].ComposeData[0];
                        0 == Number(i) ? this._lowLevelNeedNum = a : this._lowLevelNeedNum && a != this._lowLevelNeedNum && (this._firstHightLevelSoul || (this._firstHightLevelSoul = Number(i) + 1, this._heighLevelNeedNum = a))
                    }
                    this.RefreshData()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.RefreshData(), t ? this.RefreshCurrencyCount() : this.CurrencyComponent.Init(this._materialsTypeId, !1, void 0, 0)
                }, t.prototype.ShowRulePanel = function() {
                    var e = {
                        name: "godSoul_combine_ruleTip".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["godSoul_combine_ruleContent".ToUILocale()]
                    };
                    u.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnClickSoulContainer = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.AngelGodSoulSelectPanel.Path, this._chosenGodSoul)
                }, t.prototype.OnClickAddOneBtn = function() {
                    var e = !1;
                    for (var t in this._SoulLevelMap) {
                        if (Number(t) >= n.MAX_LEVEL) break;
                        var o = this._SoulLevelMap[t];
                        if (Number(t) < this._firstHightLevelSoul) {
                            if (o.length >= this._lowLevelNeedNum) {
                                this._chosenGodSoul = o.slice(0, this._lowLevelNeedNum), e = !0;
                                break
                            }
                        } else if (o.length >= this._heighLevelNeedNum) {
                            this._chosenGodSoul = o.slice(0, this._heighLevelNeedNum), e = !0;
                            break
                        }
                    }
                    e ? (this._needNum = this._chosenGodSoul.length, this.ReRenderItem(), this.RefreshCurrencyCount()) : u.UIUtlity.ShowFloatingHint("godSoul_combine_noCanUse".ToUILocale()), 2 == this._needNum ? (this.Lock.active = !0, this.LastBtn.enabled = !1, this.LastAddImg.active = !1, u.UIUtlity.OnSpriteGray(this.LastAddBackSprite)) : 3 == this._needNum && (this.Lock.active = !1, this.LastBtn.enabled = !0, this.LastAddImg.active = !0, u.UIUtlity.OffSpriteGray(this.LastAddBackSprite))
                }, t.prototype.OnClickCombinebtn = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return !this._needNum || this._chosenGodSoul.length < this._needNum ? [2] : y.DataCenter.Instance.GetItemCount(this._needCoin.itemId) < this._needCoin.count ? (u.UIUtlity.ShowFloatingHint("ChaosSummon_TicketNotEngough".ToUILocale().Fmt(this._needCoin.itemId.ToItemName())), [2]) : this._chosenGodSoul.length >= this._needNum ? [4, this.PlayCombineEffect()] : [3, 2];
                                case 1:
                                    return e.sent(), this.DoCombineCall(), [3, 3];
                                case 2:
                                    u.UIUtlity.ShowFloatingHint("godSoul_combine_addSoul".ToUILocale()), e.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnClickPutOffBtn = function() {
                    this._chosenGodSoul = [], this.Lock.active = !1, this.LastBtn.enabled = !0, this.LastAddImg.active = !0, u.UIUtlity.OffSpriteGray(this.LastAddBackSprite), this.ReRenderItem()
                }, t.prototype.OnClickBackBtn = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnChoseSoul = function(e) {
                    if (e) {
                        if (this._chosenGodSoul = e, 0 == this._chosenGodSoul.length) this._needNum = 3;
                        else {
                            var t = this._chosenGodSoul[0],
                                n = y.DataCenter.Instance.GetDataById(p.UserGodSoul_Model, t),
                                o = m.ConfigDataComponent.Instance.GetConfigById(g.AngelGodSoul_Config, n.ItemId),
                                r = m.ConfigDataComponent.Instance.GetConfigById(g.AngelGodSoulLevel_Config, o.Level);
                            this._needNum = r.ComposeData[0]
                        }
                        this.ReRenderItem(), 2 == this._needNum ? (this.Lock.active = !0, this.LastBtn.enabled = !1, this.LastAddImg.active = !1, u.UIUtlity.OnSpriteGray(this.LastAddBackSprite)) : 3 == this._needNum && (this.Lock.active = !1, this.LastBtn.enabled = !0, this.LastAddImg.active = !0, u.UIUtlity.OffSpriteGray(this.LastAddBackSprite))
                    }
                }, t.prototype.ReRenderItem = function() {
                    var e = this;
                    this._itemComponent.forEach(function(e) {
                        e && (e.node.active = !1)
                    }), this._chosenGodSoul.forEach(function(t, n) {
                        var o = e._itemComponent[n];
                        o ? (o.node.active = !0, o.Init(t)) : e.AddItem(t, n)
                    })
                }, t.prototype.DoCombineCall = function() {
                    var e = this,
                        t = new p.Req_Item_GodSoulCompose;
                    t.Materials = this._chosenGodSoul, f.RpcComponent.Instance.Call(t, function(t) {
                        u.UIUtlity.ShwDisplayRewardPanel(t.Rewards.concat(t.ExtraRewards)), e.isValid && (e.RefreshData(), e._chosenGodSoul = [], e.ReRenderItem(), e.RefreshCurrencyCount())
                    })
                }, t.prototype.AddItem = function(e, t) {
                    var n = cc.instantiate(this._itemPrefab);
                    n.scaleX = .7, n.scaleY = .7, n.y = -10;
                    var o = n.getComponent(h.default);
                    o.Init(e), this.ItemContainerList[t].addChild(n), this._itemComponent[t] = o
                }, t.prototype.RefreshData = function() {
                    var e = this;
                    this._SoulLevelMap = {}, y.DataCenter.Instance.GetDataList(p.UserGodSoul_Model).forEach(function(t) {
                        var n = m.ConfigDataComponent.Instance.GetConfigById(g.AngelGodSoul_Config, t.ItemId);
                        e._SoulLevelMap[n.Level] || (e._SoulLevelMap[n.Level] = []), t.Locked || t.OwnerId || e._SoulLevelMap[n.Level].push(t.Sid)
                    })
                }, t.prototype.RefreshCurrencyCount = function() {
                    if (this._chosenGodSoul.length > 1) {
                        var e = this._chosenGodSoul[0],
                            t = y.DataCenter.Instance.GetDataById(p.UserGodSoul_Model, e),
                            n = m.ConfigDataComponent.Instance.GetConfigById(g.AngelGodSoul_Config, t.ItemId),
                            o = m.ConfigDataComponent.Instance.GetConfigById(g.AngelGodSoulLevel_Config, n.Level);
                        this.CurrencyComponent.Init(this._materialsTypeId, !1, void 0, o.ComposeData[2]), this._needCoin = {
                            itemId: o.ComposeData[1],
                            count: o.ComposeData[2]
                        }, this._chosenLevel = n.Level
                    } else this.CurrencyComponent.Init(this._materialsTypeId, !1, void 0, 0)
                }, t.prototype.PlayCombineEffect = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.EffectContainer.active = !0, this.EventBlockNode.active = !0, [4, this.PlaySingelEffect()];
                                case 1:
                                    return e.sent(), [4, this.PlayFinalEffect()];
                                case 2:
                                    return e.sent(), this.EventBlockNode.active = !1, this.isValid ? (this.EffectContainer.active = !1, [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.PlaySingelEffect = function() {
                    for (var e = function(e) {
                            var n = t.SkeletonList[e];
                            if (n.setAnimation(0, "Ani_UI_effect_baoshi_hecheng", !1), e == t._needNum - 1) return {
                                value: new Promise(function(e) {
                                    n.setCompleteListener(function() {
                                        e()
                                    })
                                })
                            }
                        }, t = this, n = 0; n < this._needNum; n++) {
                        var o = e(n);
                        if ("object" == typeof o) return o.value
                    }
                }, t.prototype.PlayFinalEffect = function() {
                    var e = this.SkeletonList[this.SkeletonList.length - 1];
                    return new Promise(function(t) {
                        e.setAnimation(0, "Ani_UI_effect_baoshi_chenggong", !1), e.setCompleteListener(function() {
                            t()
                        })
                    })
                }, t.prototype.OnClickPreviewBtn = function() {
                    0 != this._chosenGodSoul.length ? this._chosenLevel && l.UIManager.Instance.ShowUIPanel(c.PanelConfig.AngelGodSoulCombinePreviewPanel.Path, I.GodSoulCombinePreviewModel.itemId, this._chosenLevel + 1) : u.UIUtlity.ShowFloatingHint("GodSoul_noSelectSoul".ToUILocale())
                }, t.prototype.OnClickCombineOneButton = function() {
                    this.OnClickPutOffBtn(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.GodSoulCombineOneButtonPanel.Path)
                }, t.MAX_SOUL_NUMBER = 3, t.START_LEVEL_NUMBER = 1, t.MAX_LEVEL = 10, i([b(cc.Label)], t.prototype, "PanelTitlelabel", void 0), i([b(cc.Label)], t.prototype, "TopTipLabel", void 0), i([b(cc.Label)], t.prototype, "ConsumLabel", void 0), i([b(cc.Node)], t.prototype, "AddOneBtnNode", void 0), i([b(cc.Node)], t.prototype, "CombineNode", void 0), i([b(cc.Label)], t.prototype, "AddOneBtnLabel", void 0), i([b(cc.Label)], t.prototype, "CombineLabel", void 0), i([b([cc.Node])], t.prototype, "EventNodeList", void 0), i([b([cc.Node])], t.prototype, "ItemContainerList", void 0), i([b(cc.Node)], t.prototype, "BackBtnNode", void 0), i([b(cc.Node)], t.prototype, "RuleNode", void 0), i([b(cc.Node)], t.prototype, "PutOffBtnNode", void 0), i([b(cc.Label)], t.prototype, "PutOffLabel", void 0), i([b(_.default)], t.prototype, "CurrencyComponent", void 0), i([b(cc.Node)], t.prototype, "EffectContainer", void 0), i([b([sp.Skeleton])], t.prototype, "SkeletonList", void 0), i([b(cc.Node)], t.prototype, "LastAddNode", void 0), i([b(cc.Node)], t.prototype, "LastAddImg", void 0), i([b(cc.Sprite)], t.prototype, "LastAddBackSprite", void 0), i([b(cc.Button)], t.prototype, "LastBtn", void 0), i([b(cc.Node)], t.prototype, "PreviewNode", void 0), i([b(cc.Label)], t.prototype, "PreviewLabel", void 0), i([b(cc.Node)], t.prototype, "CombineOneButton", void 0), i([b(cc.Label)], t.prototype, "CombineOneButtonLabel", void 0), i([b(cc.Node)], t.prototype, "Lock", void 0), i([b(cc.Node)], t.prototype, "EventBlockNode", void 0), n = i([v], t)
            }(l.BaseUIFullScreenPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/GodSoulItemComponent": "GodSoulItemComponent",
        "./AngelGodSoulCombinePreviewPanel": "AngelGodSoulCombinePreviewPanel"
    }],
    AngelGodSoulCombinePreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "59971EigkdN16GhIG0/5YGk", "AngelGodSoulCombinePreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GodSoulCombinePreviewModel = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../Components/ItemComponent"),
            y = e("../Components/CustomLayout"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/CurrencyBarItem"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property;
        (function(e) {
            e[e.itemId = 0] = "itemId", e[e.itemSid = 1] = "itemSid"
        })(l = n.GodSoulCombinePreviewModel || (n.GodSoulCombinePreviewModel = {}));
        var b = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.Desc = null, t.CustomLayout = null, t.CurrencyBar = null, t.OkNode = null, t.OkNodeLabel = null, t.ReSizeNodeList = [], t.ItemContainer = null, t._itemComponents = {}, t._contentNormalSize = new cc.Vec2(948, 1218), t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, c.AssetsManager.Instance.LoadAsset(I.BundlePath.ItemComponent, cc.Prefab)];
                            case 1:
                                return t._itemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._showModel = t[0], this._showModel == l.itemId ? this._data = new S(t[1]) : this._data = new w(t[1])
            }, t.prototype.DisPlay = function(t) {
                var n = this;
                e.prototype.DisPlay.call(this, t), t || (this.Title.string = this._data.Title, this.Desc.string = this._data.Desc, this._data.Button ? (this.OkNodeLabel.string = this._data.Button.Desc, this.OkNode.active = !0, this.OkNode.on("click", this._data.Button.Call, this._data)) : this.OkNode.active = !1, this._data.Materials ? (this.CurrencyBar.node.active = !0, this.CurrencyBar.Init(this._data.Materials.ItemId, !1, void 0, this._data.Materials.Count)) : this.CurrencyBar.node.active = !1, this._data.ContentSize && this.ReSizeNodeList.forEach(function(e) {
                    var t = new cc.Vec2(n._data.ContentSize.x / n._contentNormalSize.x, n._data.ContentSize.y / n._contentNormalSize.y);
                    e.width = e.width * t.x, e.height = e.height * t.y
                }), this.CustomLayout.Init(this._itemPrefab), this.CustomLayout.RenderLayOut(this._data.Items.length))
            }, t.prototype.RefreshCustomLayout = function(e, t) {
                var n = this;
                this.CustomLayout == t && e.forEach(function(e, t) {
                    if (!n._itemComponents[t]) {
                        var o = e.getComponent(f.ItemComponent);
                        n._itemComponents[t] = o
                    }
                    var r = n._data.Items[t];
                    n._itemComponents[t].Init(r), n._itemComponents[t].SetLeftTopTag(!0, g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg6"), r.SoulLevel)
                })
            }, t.prototype.OnItemClick = function(e, t) {
                t.parent == this.ItemContainer && g.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
            }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.RichText)], t.prototype, "Desc", void 0), i([v(y.default)], t.prototype, "CustomLayout", void 0), i([v(m.default)], t.prototype, "CurrencyBar", void 0), i([v(cc.Node)], t.prototype, "OkNode", void 0), i([v(cc.Label)], t.prototype, "OkNodeLabel", void 0), i([v([cc.Node])], t.prototype, "ReSizeNodeList", void 0), i([v(cc.Node)], t.prototype, "ItemContainer", void 0), i([C], t)
        }(c.BaseUIPanel);
        n.default = b;
        var S = function() {
                function e(e) {
                    this._title = "GodSoul_CombinePreView".ToUILocale(), this._desc = "GodSoul_CombinePreViewDesc".ToUILocale();
                    var t = h.ConfigDataComponent.Instance.GetArrayConfig(d.AngelGodSoul_Config);
                    this._items = t.filter(function(t) {
                        return t.Level == e
                    }).map(function(e) {
                        return {
                            ItemId: e.Id,
                            SoulLevel: e.Level
                        }
                    })
                }
                return Object.defineProperty(e.prototype, "Title", {
                    get: function() {
                        return this._title
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "Desc", {
                    get: function() {
                        return this._desc
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "Items", {
                    get: function() {
                        return this._items
                    },
                    enumerable: !1,
                    configurable: !0
                }), e
            }(),
            w = function() {
                function e(e) {
                    var t;
                    this._title = "GodSoul_CombineTip".ToUILocale(), this._sids = e;
                    var n = e.map(function(e) {
                        return h.DataCenter.Instance.GetDataById(p.UserGodSoul_Model, e)
                    });
                    this._items = n.map(function(e) {
                        var n = h.ConfigDataComponent.Instance.GetConfigById(d.AngelGodSoul_Config, e.ItemId);
                        return t || (t = n.Level), {
                            ItemId: e.ItemId,
                            SoulLevel: n.Level
                        }
                    });
                    var o = h.ConfigDataComponent.Instance.GetConfigById(d.AngelGodSoulLevel_Config, t).ComposeData,
                        r = o[0],
                        i = o[1],
                        a = o[2];
                    this._materials = {
                        ItemId: i,
                        Count: Math.floor(e.length / r) * a
                    }, this._desc = "GodSoul_CombineTip2".ToUILocale().Fmt(e.length, t)
                }
                return Object.defineProperty(e.prototype, "Title", {
                    get: function() {
                        return this._title
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "Desc", {
                    get: function() {
                        return this._desc
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "Items", {
                    get: function() {
                        return this._items
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "Materials", {
                    get: function() {
                        return this._materials
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "Button", {
                    get: function() {
                        var e = this;
                        return {
                            Desc: "ok".ToUILocale(),
                            Call: function() {
                                if (h.DataCenter.Instance.GetItemCount(e._materials.ItemId) < e._materials.Count) g.UIUtlity.ShowFloatingHint("arena_notEnoughTickets".ToUILocale().Fmt(e._materials.ItemId.ToItemName()));
                                else {
                                    var t = new p.Req_Item_GodSoulCompose;
                                    t.Materials = e._sids, h.RpcComponent.Instance.Call(t, function(e) {
                                        c.UIManager.Instance.BackUIPanel(), g.UIUtlity.ShwDisplayRewardPanel(e.Rewards.concat(e.ExtraRewards))
                                    })
                                }
                            }
                        }
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "ContentSize", {
                    get: function() {
                        return new cc.Vec2(948, 480)
                    },
                    enumerable: !1,
                    configurable: !0
                }), e
            }();
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AngelGodSoulListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "236581GJ+ZD2J7/Z/hmCmOG", "AngelGodSoulListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("./CustomLayout"),
            y = e("./ItemComponent"),
            g = e("./LuckyCharmTabComponent"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("../../Components/Components"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("./AngelSoulListItemComponent"),
            v = e("../../../ShareConsts/EnumType"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.UnwearNode = null, t.WearNode = null, t.ItemContainer = null, t.NowWearLabel = null, t.CustomLayout = null, t.GetWayButtonLabel = null, t.GetWayButton = null, t.ResetButton = null, t.SelectButtons = [], t.HintNode = null, t.HintLayout = null, t.SoulDetialRichText = null, t.NoWearDetailLabel = null, t._tabPrefab = null, t._soulModelMap = {}, t._soulConfigs = {}, t._skillBaseMap = {}, t._soulLevelMap = {}, t._soulLevelList = [], t._soulTypeMap = {}, t._soulTypeList = [], t._soulLevelModelMap = {}, t._selectIndex = -1, t._selectTabs = [-1, -1, -1], t._tabNodes = [], t._staticDesc = [], t._itemsComponent = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "SlotId", {
                    get: function() {
                        return this._nowWearData.slotId
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "AngelId", {
                    get: function() {
                        return this._nowWearData.angelId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(u.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(u.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("AngelGodSoul/Components/AngelSoulListItemComponent", cc.Prefab), o = this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmTabComponent", cc.Prefab), r = this.LoadDynamicAsset("AngelGodSoul/Components/GodSoulItemComponent", cc.Prefab), [4, Promise.all([t, n, o, r])];
                                case 1:
                                    return i = a.sent(), this._itemPrefab = i[0], this._listItemPrefab = i[1], this._tabPrefab = i[2], this._godSoulItemPrefab = i[3], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.NowWearLabel.string = "equip_current_wear".ToUILocale(), this.GetWayButtonLabel.string = "Personalise_getway".ToUILocale(), this._staticDesc = ["screen_isDress".ToUILocale(), "screen_lv".ToUILocale(), "equip_type_tag".ToUILocale()], this.NoWearDetailLabel.string = "PlayerSetting_noAlliance".ToUILocale(), this.GetWayButton.node.on("click", this.OnGetWayButtonClick, this), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.SelectButtons.forEach(function(e) {
                        e.node.on("click", t.OnSelectButtonClick, t)
                    })
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this), this._soulConfigs = d.ConfigDataComponent.Instance.GetConfig(_.AngelGodSoul_Config), this._skillBaseMap = d.ConfigDataComponent.Instance.GetConfig(_.SkillBase_Config), this._soulTypeMap = d.ConfigDataComponent.Instance.GetConfig(_.AngelGodSoulType_Config), this._soulTypeList = Object.values(this._soulTypeMap), this._soulLevelMap = d.ConfigDataComponent.Instance.GetConfig(_.AngelGodSoulLevel_Config), this._soulLevelList = Object.values(this._soulLevelMap), this._soulModels = d.DataCenter.Instance.GetDataList(m.UserGodSoul_Model), this.RefreshModels(), t && t[0])
                        if (this._nowWearData = t[0], this._nowWearData.godSoulSid) {
                            this.NoWearDetailLabel.node.active = !1, this.SoulDetialRichText.node.active = !0;
                            var n = this.GetModelBySid(this._nowWearData.godSoulSid).ItemId,
                                o = this.GetSoulConfigById(n);
                            this.NowWearLabel.string = n.ToItemName(), this.NowWearLabel.node.color = h.UIUtlity.GetLabelColorByQuality(o.Quality);
                            var r = "";
                            o.Skills.forEach(function(e) {
                                r += e.ToHeroSkillDesc(), r += "<br/>"
                            });
                            var i = o.Attr;
                            i && i.length > 0 && i.forEach(function(e) {
                                var t = c.default.GetHeroAttribute(e.Items[0], e.Items[1]);
                                r += "angelGodSoul_AttrAdd".ToUILocale().Fmt(t.Name, t.Value), r += "<br/>"
                            }), this.SoulDetialRichText.string = r;
                            var a = cc.instantiate(this._itemPrefab);
                            a.y = -20;
                            var s = a.getComponent(y.ItemComponent);
                            s.Init({
                                ItemId: n
                            }), s.SetLeftTopTag(!0, h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg6"), o.Level), this.ItemContainer.addChild(a)
                        } else this.NoWearDetailLabel.node.active = !0, this.SoulDetialRichText.node.active = !1, this.NowWearLabel.string = "godSoul_List_unEquip".ToUILocale();
                    this.RefreshModels()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.CustomLayout.Init(this._listItemPrefab), this.CustomLayout.RenderLayOut(this._soulShowModels.length), this.SetSelectNode(t)
                }, t.prototype.RenderCustomLayout = function() {
                    this._soulShowModels.length || -1 == this._selectIndex || h.UIUtlity.ShowFloatingHint("godSoul_List_noMatch".ToUILocale()), this.CustomLayout.RenderLayOut(this._soulShowModels.length)
                }, t.prototype.OnGetWayButtonClick = function() {
                    this._nowWearData.godSoulSid ? l.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, this._soulModelMap[this._nowWearData.godSoulSid].ItemId) : l.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, 1601001)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        n._itemsComponent[t] ? n._itemsComponent[t].Set(n, n._soulShowModels[t].Sid) : e.getComponent(C.default).Set(n, n._soulShowModels[t].Sid)
                    })
                }, t.prototype.InitTabNodes = function() {
                    this._tabNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetSelectNode = function(e) {
                    var t = this;
                    this.SelectButtons.forEach(function(n, o) {
                        var r = cc.find("Background/SelectLabel", n.node).getComponent(cc.Label);
                        if (cc.find("ArrowSprite", n.node).scaleY = t._selectIndex == o ? 1 : -1, e) {
                            var i = t.GetPropertyList(o),
                                a = i[0];
                            if (o < t._selectTabs.length) {
                                var s = t._selectTabs[o];
                                s < i.length && s >= 0 && (a = i[s], r.string = t.GetDesc(o, a))
                            }
                        } else r.string = t._staticDesc[o]
                    })
                }, t.prototype.SetSelectTabHint = function() {
                    var e = this;
                    if (this.HintNode.active = this._selectIndex > -1, this._selectIndex > -1 && this._selectIndex < this._selectTabs.length) {
                        var t = this.GetPropertyList(this._selectIndex),
                            n = t.length;
                        t.forEach(function(t, o) {
                            if (!e._tabNodes[o]) {
                                var r = cc.instantiate(e._tabPrefab);
                                r.parent = e.HintLayout, e._tabNodes[o] = r
                            }
                            e._tabNodes[o].active = !0, e._tabNodes[o].getComponent(g.default).InitUI(e._selectTabs[e._selectIndex], o, e.GetDesc(e._selectIndex, t), n)
                        })
                    }
                }, t.prototype.GetPropertyList = function(e) {
                    var t = [];
                    switch (e) {
                        case 0:
                            t = [-1, 1, 0];
                            break;
                        case 1:
                            t = [-1], this._soulLevelList.forEach(function(e) {
                                t.push(e.Id)
                            });
                            break;
                        case 2:
                            t = [-1], this._soulTypeList.forEach(function(e) {
                                t.push(e.Id)
                            })
                    }
                    return t
                }, t.prototype.GetDesc = function(e, t) {
                    var n = "";
                    switch (e) {
                        case 0:
                            n = t >= 0 ? t > 0 ? "screen_dress".ToUILocale() : "screen_undress".ToUILocale() : "screen_all".ToUILocale();
                            break;
                        case 1:
                            if (t < 0) n = "screen_all".ToUILocale();
                            else {
                                var o = this._soulLevelMap[t];
                                o && (n = "screen_level".ToUILocale().Fmt(o.Id))
                            }
                            break;
                        case 2:
                            t < 0 ? n = "screen_all".ToUILocale() : this._soulTypeMap && (n = this._soulTypeMap[t].Id.ToAngelSoulTypeName())
                    }
                    return n
                }, t.prototype.SetHintNodePosition = function() {
                    if (this.SelectButtons[this._selectIndex]) {
                        var e = this.SelectButtons[this._selectIndex].node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            t = this.node.convertToNodeSpaceAR(e);
                        this.HintNode.x = t.x, this.HintNode.y = t.y + 40
                    }
                }, t.prototype.OnResetButtonClick = function() {
                    this._selectTabs = [-1, -1, -1], this._selectIndex = -1, this.HintNode.active = !1, this.SetSelectNode(!1), this.FilterArray(), this.RenderCustomLayout()
                }, t.prototype.OnSelectButtonClick = function(e) {
                    var t = Number(e.node.name);
                    t == this._selectIndex ? (this._selectIndex = -1, this.HintNode.active = !1) : (this._selectIndex = t, this.HintNode.active = !0, this.InitTabNodes(), this.SetSelectTabHint(), this.SetHintNodePosition()), this.SetSelectNode(!0)
                }, t.prototype.OnSelectTab = function(e) {
                    if (this._selectIndex < this._selectTabs.length) {
                        if (this._selectTabs[this._selectIndex] == e) return this.HintNode.active = !1, this._selectIndex = -1, void this.SetSelectNode(!0);
                        this._selectTabs[this._selectIndex] = e, this.SetSelectTabHint(), this.FilterArray(), this.RenderCustomLayout(), this._selectIndex = -1, this.HintNode.active = !1, this.SetSelectNode(!0)
                    }
                }, t.prototype.FilterArray = function() {
                    var e = this,
                        t = this._selectTabs[0],
                        n = this._selectTabs[1],
                        o = this._selectTabs[2],
                        r = this._soulModels;
                    if (!(n > 0) || (r = this._soulLevelModelMap[n]) && 0 != r.length) {
                        var i = r.filter(function(n) {
                            var r = n.ItemId,
                                i = e._soulConfigs[r],
                                a = t <= 0 || 1 == t && n.OwnerId || 2 == t && !n.OwnerId,
                                s = o <= 0 || i.Type == o;
                            return a && s
                        });
                        this.SortModels(i), this._soulShowModels = i
                    } else this._soulShowModels = []
                }, t.prototype.SortModels = function(e) {
                    var t = this;
                    e.sort(function(e, n) {
                        var o = t._soulConfigs[e.ItemId],
                            r = t._soulConfigs[n.ItemId];
                        return e.OwnerId && !n.OwnerId ? 1 : !e.OwnerId && n.OwnerId ? -1 : o.Level > r.Level ? -1 : o.Level < r.Level ? 1 : o.Quality > r.Quality ? -1 : (o.Quality, r.Quality, 1)
                    })
                }, t.prototype.GetModelBySid = function(e) {
                    return this._soulModelMap[e]
                }, t.prototype.GetSoulConfigById = function(e) {
                    return this._soulConfigs[e]
                }, t.prototype.GetSoulItemPrefab = function() {
                    return this._godSoulItemPrefab
                }, t.prototype.GetSkillConfigById = function(e) {
                    return this._skillBaseMap[e]
                }, t.prototype.GetItemPrefab = function() {
                    return this._itemPrefab
                }, t.prototype.OnItemComponentClick = function(e) {
                    if (this._soulModelMap[e]) {
                        for (var t = c.default.GetAngelGodSoulData(this._nowWearData.angelId), n = 0; n < t.length; n++) {
                            var o = t[n];
                            if ((this._soulModelMap && this._soulModelMap[o.soulSid] && this._soulConfigs[this._soulModelMap[o.soulSid].ItemId] ? this._soulConfigs[this._soulModelMap[o.soulSid].ItemId].Type : 0) == this._soulConfigs[this._soulModelMap[e].ItemId].Type) return void h.UIUtlity.ShowFloatingHint("godSoul_List_typeConflict".ToUILocale())
                        }
                        this.DoPutOnCall(e)
                    }
                }, t.prototype.DoPutOnCall = function(e) {
                    var t = this,
                        n = new m.Req_Item_GodSoulPutOn;
                    n.OwnerId = this._nowWearData.angelId, n.Sid = e, n.SlotId = this._nowWearData.slotId;
                    var o = d.DataCenter.Instance.GetIntData(v.UserDataKey.Power);
                    d.RpcComponent.Instance.Call(n, function() {
                        if (t.isValid) {
                            var n = d.DataCenter.Instance.GetIntData(v.UserDataKey.Power);
                            l.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattlePowerChangePanel.Path, o, n), l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_GODSOUL_EQU, e), h.UIUtlity.ShowFloatingHint("godSoul_List_Euq".ToUILocale()), l.UIManager.Instance.BackUIPanel()
                        }
                    })
                }, t.prototype.RefreshModels = function() {
                    var e = this;
                    this._soulModels = I.DataCenter.Instance.GetDataList(m.UserGodSoul_Model), this._soulModelMap = {}, this._soulLevelModelMap = {}, this._soulModels.forEach(function(t) {
                        var n = e._soulConfigs[t.ItemId];
                        e._soulModelMap[t.Sid] = t, e._soulLevelModelMap[n.Level] || (e._soulLevelModelMap[n.Level] = []), e._soulLevelModelMap[n.Level].push(t)
                    }), this.FilterArray(), this.SortModels(this._soulShowModels)
                }, i([w(cc.Node)], t.prototype, "UnwearNode", void 0), i([w(cc.Node)], t.prototype, "WearNode", void 0), i([w(cc.Node)], t.prototype, "ItemContainer", void 0), i([w(cc.Label)], t.prototype, "NowWearLabel", void 0), i([w(f.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Label)], t.prototype, "GetWayButtonLabel", void 0), i([w(cc.Button)], t.prototype, "GetWayButton", void 0), i([w(cc.Button)], t.prototype, "ResetButton", void 0), i([w(cc.Button)], t.prototype, "SelectButtons", void 0), i([w(cc.Node)], t.prototype, "HintNode", void 0), i([w(cc.Node)], t.prototype, "HintLayout", void 0), i([w(cc.RichText)], t.prototype, "SoulDetialRichText", void 0), i([w(cc.Label)], t.prototype, "NoWearDetailLabel", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AngelSoulListItemComponent": "AngelSoulListItemComponent",
        "./CustomLayout": "CustomLayout",
        "./ItemComponent": "ItemComponent",
        "./LuckyCharmTabComponent": "LuckyCharmTabComponent"
    }],
    AngelGodSoulOverviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "95677XW+jtGZph0TJq4dOeU", "AngelGodSoulOverviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CustomLayout"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/DataCenter"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/GodSoulDetialComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.PanelLabel = null, t.Tip = null, t.TipNum = null, t.CustomLayout = null, t.NoInfoTip = null, t._components = {}, t._maxEquSoulNum = 5, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AngelGodSoul/Components/GodSoulDetialComponent", cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelLabel.string = "godSoul_overView_title".ToUILocale(), this.Tip.string = "godSoul_overView_tip".ToUILocale(), this.NoInfoTip.string = "godSoul_overView_noInfoTip".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._angelId = t[0];
                    var o = p.DataCenter.Instance.GetDataList(u.UserGodSoul_Model);
                    this._souls = o.filter(function(e) {
                        return e.OwnerId == n._angelId
                    }), 0 == this._souls.length ? this.NoInfoTip.node.active = !0 : this.NoInfoTip.node.active = !1
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.CustomLayout.Init(this._itemPrefab), this.CustomLayout.RenderLayOut(this._souls.length), this.TipNum.string = this._souls.length + "/" + this._maxEquSoulNum)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        n._components[t] || (n._components[t] = e.getComponent(h.default)), n._components[t].Init(n._souls[t].ItemId)
                    })
                }, i([g(cc.Label)], t.prototype, "PanelLabel", void 0), i([g(cc.Label)], t.prototype, "Tip", void 0), i([g(cc.Label)], t.prototype, "TipNum", void 0), i([g(c.default)], t.prototype, "CustomLayout", void 0), i([g(cc.Label)], t.prototype, "NoInfoTip", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/GodSoulDetialComponent": "GodSoulDetialComponent"
    }],
    AngelGodSoulPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b0540B97IBFsZ3mofpflOPF", "AngelGodSoulPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/GodSoulDetialComponent"),
            f = e("../Components/LuckyCharmTabComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.CustomLayout = null, t.ResetButton = null, t.SelectButton = null, t.SelectButtonLabel = null, t.SelectButtonArrowIconNode = null, t.HintNode = null, t.HintLayout = null, t.ScrollBarEventNode = null, t.ScrollBarBgNode = null, t.ScrollBarNode = null, t._isClickedSelectButton = !1, t._selectTabComponentArray = [], t._isStartMove = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AngelGodSoul/Components/GodSoulDetialComponent", cc.Prefab)];
                                case 1:
                                    return t._detailPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "GodSoul_Preview".ToUILocale(), this.SelectButtonLabel.string = "screen_all".ToUILocale(), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.SelectButton.node.on("click", this.OnSelectButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._soulConfigArray = u.ConfigDataComponent.Instance.GetArrayConfig(c.AngelGodSoul_Config), this._soulConfigArray.sort(this.SortSoulConfigArray.bind(this)), this.SetSoulLevelConfigMap()
                }, t.prototype.DisPlay = function(t) {
                    if (void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), !t) {
                        this._selectIndex = 0, this.CustomLayout.Init(this._detailPrefab), this.CustomLayout.RenderLayOut(this._soulConfigArray.length);
                        var n = this.CustomLayout.ScrollView.node.height / this.CustomLayout.node.height;
                        this.ScrollBarNode.y = 0, this.ScrollBarNode.height = this._soulLevelConfigMap[this._selectIndex].length > 0 ? n * this.ScrollBarBgNode.height : this.ScrollBarBgNode.height, this.CustomLayout.ScrollView.node.on("scrolling", this.OnScrolling, this)
                    }
                }, t.prototype.SortSoulConfigArray = function(e, t) {
                    return e.Level > t.Level ? -1 : e.Level < t.Level ? 1 : t.Id - e.Id
                }, t.prototype.SetSoulLevelConfigMap = function() {
                    var e = this;
                    this._soulLevelConfigMap = {}, this._levelConfigCount = 0, this._soulLevelConfigMap[0] = this._soulConfigArray, this._soulConfigArray.forEach(function(t) {
                        e._soulLevelConfigMap[t.Level] ? e._soulLevelConfigMap[t.Level].push(t) : (e._soulLevelConfigMap[t.Level] = [t], e._levelConfigCount++)
                    })
                }, t.prototype.StarTouchEvent = function() {
                    this._isStartMove = !0, this.CustomLayout.ScrollView.node.off("scrolling", this.OnScrolling, this)
                }, t.prototype.StarMoveEvent = function(e) {
                    if (this._isStartMove) {
                        var t = e.getDelta(),
                            n = this.ScrollBarNode.y + t.y;
                        if (n < -this.ScrollBarBgNode.height + this.ScrollBarNode.height) {
                            this.ScrollBarNode.y = -this.ScrollBarBgNode.height + this.ScrollBarNode.height;
                            var o = new cc.Vec2(0, 0);
                            this.CustomLayout.ScrollView.scrollTo(o)
                        } else n >= 0 ? (this.ScrollBarNode.y = 0, o = new cc.Vec2(0, 1), this.CustomLayout.ScrollView.scrollTo(o)) : (this.ScrollBarNode.y = n, o = new cc.Vec2(0, 1 - n / (-this.ScrollBarBgNode.height + this.ScrollBarNode.height)), this.CustomLayout.ScrollView.scrollTo(o));
                        this.CustomLayout.OnScrolling()
                    }
                }, t.prototype.TouchEndEvent = function() {
                    this._isStartMove = !1, this.CustomLayout.ScrollView.node.on("scrolling", this.OnScrolling, this)
                }, t.prototype.OnScrolling = function() {
                    var e = this.CustomLayout.ScrollView.getScrollOffset().y / this.CustomLayout.node.height,
                        t = 1 - this.ScrollBarNode.height / this.ScrollBarBgNode.height;
                    e < 0 ? e = 0 : e > t && (e = t), this.ScrollBarNode.y = -e * this.ScrollBarBgNode.height
                }, t.prototype.OnSelectTab = function(e) {
                    this._selectIndex = e, this._isClickedSelectButton = !1, this.SetSeletNodeState(), this.SelectButtonLabel.string = 0 == e ? "screen_all".ToUILocale() : "screen_level".ToUILocale().Fmt(e), this.CustomLayout.RenderLayOut(this._soulLevelConfigMap[this._selectIndex].length);
                    var t = this.CustomLayout.ScrollView.node.height / this.CustomLayout.node.height;
                    this.ScrollBarNode.y = 0, this.ScrollBarNode.height = this._soulLevelConfigMap[this._selectIndex].length > 0 ? t * this.ScrollBarBgNode.height : this.ScrollBarBgNode.height
                }, t.prototype.OnResetButtonClick = function() {
                    this._isClickedSelectButton = !1, this.SetSeletNodeState(), this._selectIndex = 0, this.SelectButtonLabel.string = "screen_all".ToUILocale(), this.CustomLayout.RenderLayOut(this._soulConfigArray.length)
                }, t.prototype.OnSelectButtonClick = function() {
                    this._isClickedSelectButton ? this._isClickedSelectButton = !1 : (this._isClickedSelectButton = !0, this.SetSelectContainer()), this.SetSeletNodeState()
                }, t.prototype.SetSeletNodeState = function() {
                    this.HintNode.active = this._isClickedSelectButton, this.SelectButtonArrowIconNode.scaleY = this._isClickedSelectButton ? 1 : -1
                }, t.prototype.SetSelectContainer = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this._selectTabPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmTabComponent", cc.Prefab)]);
                                case 1:
                                    if (e._selectTabPrefab = a.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._selectTabPrefab), [2];
                                    a.label = 2;
                                case 2:
                                    for (n in t = 0, this._soulLevelConfigMap)(o = this._selectTabComponentArray[t]) || ((r = cc.instantiate(this._selectTabPrefab)).setParent(this.HintLayout), o = r.getComponent(f.default), this._selectTabComponentArray[t] = o), void 0, i = 0 == Number(n) ? "screen_all".ToUILocale() : "screen_level".ToUILocale().Fmt(n), o.InitUI(this._selectIndex, Number(n), i, this._levelConfigCount + 1), t++;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        e.getComponent(h.default).Init(n._soulLevelConfigMap[n._selectIndex][t].Id)
                    })
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(p.default)], t.prototype, "CustomLayout", void 0), i([m(cc.Button)], t.prototype, "ResetButton", void 0), i([m(cc.Button)], t.prototype, "SelectButton", void 0), i([m(cc.Label)], t.prototype, "SelectButtonLabel", void 0), i([m(cc.Node)], t.prototype, "SelectButtonArrowIconNode", void 0), i([m(cc.Node)], t.prototype, "HintNode", void 0), i([m(cc.Node)], t.prototype, "HintLayout", void 0), i([m(cc.Node)], t.prototype, "ScrollBarEventNode", void 0), i([m(cc.Node)], t.prototype, "ScrollBarBgNode", void 0), i([m(cc.Node)], t.prototype, "ScrollBarNode", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/GodSoulDetialComponent": "GodSoulDetialComponent",
        "../Components/LuckyCharmTabComponent": "LuckyCharmTabComponent"
    }],
    AngelGodSoulReCastPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f08cb3Wur1DZYsDv0mdlcCo", "AngelGodSoulReCastPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/CurrencyBarItem"),
            d = e("../Components/GodSoulItemComponent"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/Components"),
            m = e("../Components/GodSoulCastItem"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Components/AngelGodSoulSelectPanel"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../../Auxiliary/DataUtlity"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property;
        (function(e) {
            e[e.NotSelect = 0] = "NotSelect", e[e.Select = 1] = "Select", e[e.NotCast = 2] = "NotCast", e[e.Cast = 3] = "Cast"
        })(l || (l = {})),
        function(e) {
            e[e.Left = 0] = "Left", e[e.Right = 1] = "Right"
        }(c || (c = {}));
        var A = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.Tip = null, t.LeftName = null, t.RightName = null, t.BeforCast = null, t.AfterCast = null, t.RecastLabel = null, t.AddEventNode = null, t.LeftDescContainer = null, t.RightDescContainer = null, t.RecastNode = null, t.NoSelectTip = null, t.NoSelectNode = null, t.AddBackNode = null, t.RuleNode = null, t.CurrencyContainer = null, t.LeftItemContainer = null, t.RightItemContainer = null, t.ReSelectBtnNode = null, t._state = l.NotSelect, t._LeftDescComponents = [], t._RightDescComponents = [], t._metrialsComponents = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(v.EventKeys.EVENT_GODSOUL_SELECT, this.OnSelectComplete, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(v.EventKeys.EVENT_GODSOUL_SELECT, this.OnSelectComplete, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AngelGodSoul/Components/GodSoulItemComponent", cc.Prefab), n = this.LoadDynamicAsset("AngelGodSoul/Components/GodSoulCastItem", cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/CurrencyBarItem", cc.Prefab), [4, Promise.all([t, n, o])];
                            case 1:
                                return r = i.sent(), this._itemPrefab = r[0], this._skillDescPrefab = r[1], this._metrialsPrefab = r[2], [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "godSoul_recast_title".ToUILocale(), this.Tip.string = "godSoul_recast_tip".ToUILocale(), this.BeforCast.string = "luckycharm_beforeRecast".ToUILocale(), this.AfterCast.string = "luckycharm_afterRecast".ToUILocale(), this.NoSelectTip.string = "godSoul_recast_noSelect".ToUILocale(), this.AddEventNode.on("click", this.OnClickAddBtn, this), this.RecastNode.on("click", this.OnClickReCastBtn, this), this.RuleNode.on("click", this.OnClickRuleBtn, this), this.ReSelectBtnNode.on("click", this.OnClickAddBtn, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._chosenSoul = t[0], this._model = y.DataCenter.Instance.GetDataById(f.UserGodSoul_Model, this._chosenSoul)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this._state = l.NotSelect, this.RenderItem(), this.RenderSkill(), this.RenderMetrials(), this.RenderButton(), this.ReSelectBtnNode.active = !1)
            }, t.prototype.OnClickAddBtn = function() {
                var e = g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, this._model.ItemId),
                    t = g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoulLevel_Config, e.Level).CastRewards.filter(function(t) {
                        return t != e.Id
                    });
                u.UIManager.Instance.ShowUIPanel(I.PanelConfig.AngelGodSoulSelectPanel.Path, [], 1, _.GodSoulSelectType.ItemIdList, t), this._state = l.Select
            }, t.prototype.OnClickReCastBtn = function() {
                this.JudgeMetialsEnough(!0) && this._wantCastTo && this.DoCastCall()
            }, t.prototype.OnClickRuleBtn = function() {
                var e = {
                    name: "godSoul_recast_ruleTitle".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["godSoul_recast_ruleContent".ToUILocale()]
                };
                C.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnSelectComplete = function(e) {
                e && 0 != e.length && (e && 1 == e.length && (this._wantCastTo = e[0]), this.ReSelectBtnNode.active = !0, this._state = l.Select, this.RightItemContainer.active = !0, this.RenderSingleItem(c.Right), this.RenderSkill(), this.RenderButton())
            }, t.prototype.DoCastCall = function() {
                var e = this,
                    t = new f.Req_Item_GodSoulCast;
                t.Sid = this._model.Sid, t.SelectId = this._wantCastTo, g.RpcComponent.Instance.Call(t, function() {
                    e.isValid && (e._state = l.Cast, e.NoSelectTip.node.active = !1, e.RenderMetrials(), e.RenderSingleItem(c.Right), e.RenderSkillList(c.Right), e.RenderButton(), u.UIManager.Instance.BackUIPanel(), C.UIUtlity.ShowFloatingHint("luckycharm_recastSuccess".ToUILocale()))
                })
            }, t.prototype.RenderItem = function() {
                this.RenderSingleItem(c.Left), this._state >= l.Select ? (this.RightItemContainer.active = !0, this.RenderSingleItem(c.Right)) : (this.RightItemContainer.active = !1, this.RightName.node.active = !1)
            }, t.prototype.RenderSingleItem = function(e) {
                var t = c[e],
                    n = this["_" + t + "ItemComponent"],
                    o = this[t + "ItemContainer"],
                    r = this[t + "Name"];
                if (!n) {
                    var i = cc.instantiate(this._itemPrefab);
                    o.addChild(i), n = i.getComponent(d.default), this["_" + t + "ItemComponent"] = n
                }
                if (e == c.Left) {
                    n.Init(this._chosenSoul);
                    var a = g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, this._model.ItemId);
                    r.string = this._model.ItemId.ToItemName(), r.node.color = C.UIUtlity.GetLabelColorByQuality(a.Quality)
                } else {
                    if (e != c.Right) return;
                    n.Init(this._wantCastTo, d.GodSoulItemType.ItemId), a = g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, this._model.ItemId), r.string = this._wantCastTo.ToItemName(), r.node.active = !0, r.node.color = C.UIUtlity.GetLabelColorByQuality(a.Quality)
                }
            }, t.prototype.RenderSkill = function() {
                this.RenderSkillList(c.Left), this._state == l.Select ? (this.NoSelectTip.node.active = !1, this.RenderSkillList(c.Right)) : (this.NoSelectTip.node.active = !0, this.HiddenRightSkill())
            }, t.prototype.HiddenRightSkill = function() {
                this._RightDescComponents.forEach(function(e) {
                    return e.node.active = !1
                })
            }, t.prototype.RenderSkillList = function(e) {
                var t, n = this,
                    o = c[e],
                    r = this[o + "DescContainer"],
                    i = this["_" + o + "DescComponents"];
                if (t = e == c.Left ? g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, this._model.ItemId) : g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, this._wantCastTo)) {
                    var a = t.Skills,
                        s = t.Attr;
                    a.forEach(function(e, t) {
                        if (!i[t]) {
                            var o = cc.instantiate(n._skillDescPrefab),
                                a = o.getComponent(m.default);
                            r.addChild(o), i.push(a)
                        }
                        i[t].Set(e.ToHeroSkillName(), e.ToHeroSkillDesc()), i[t].node.active = !0
                    }), s && s.length > 0 && s.forEach(function(e, t) {
                        if (!i[t + a.length]) {
                            var o = cc.instantiate(n._skillDescPrefab),
                                s = o.getComponent(m.default);
                            r.addChild(o), i.push(s)
                        }
                        var l = b.default.GetHeroAttribute(e.Items[0], e.Items[1]);
                        i[t + a.length].Set("godSoul_castSkill".ToUILocale().Fmt(l.Name), "angelGodSoul_AttrAdd".ToUILocale().Fmt(l.Name, l.Value)), i[t + a.length].node.active = !0
                    });
                    for (var l = a.length + s.length; l < i.length; l++) i[l].node.active = !1
                }
            }, t.prototype.RenderMetrials = function() {
                var e = this,
                    t = g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, this._model.ItemId),
                    n = g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoulLevel_Config, t.Level).CastMaterials;
                n.forEach(function(t, n) {
                    if (!e._metrialsComponents[n]) {
                        var o = cc.instantiate(e._metrialsPrefab);
                        e._metrialsComponents[n] = o.getComponent(p.default), e.CurrencyContainer.addChild(o)
                    }
                    e._metrialsComponents[n].Init(t.Items[0], !1, void 0, t.Items[1]), e._metrialsComponents[n].node.active = !0
                });
                for (var o = n.length; o < this._metrialsComponents.length; o++) this._metrialsComponents[o].node.active = !1
            }, t.prototype.JudgeMetialsEnough = function(e) {
                for (var t = g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, this._model.ItemId), n = g.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoulLevel_Config, t.Level).CastMaterials, o = 0; o < n.length; o++) {
                    var r = n[o].Items;
                    if (y.DataCenter.Instance.GetItemCount(r[0]) < r[1]) return e && C.UIUtlity.ShowFloatingHint("BadgeCollect_ItemNotEnough".ToUILocale().Fmt(r[0].ToItemName())), !1
                }
                return !0
            }, t.prototype.RenderButton = function() {
                switch (C.UIUtlity.OffNodeGray(this.RecastNode), this.RecastLabel.string = "luckycharm_recast".ToUILocale(), this._state) {
                    case l.NotSelect:
                        C.UIUtlity.OnNodeGray(this.RecastNode);
                        break;
                    case l.Select:
                    case l.NotCast:
                        break;
                    case l.Cast:
                        this.RecastLabel.string = "luckycharm_recastAgain".ToUILocale()
                }
            }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Label)], t.prototype, "Tip", void 0), i([P(cc.Label)], t.prototype, "LeftName", void 0), i([P(cc.Label)], t.prototype, "RightName", void 0), i([P(cc.Label)], t.prototype, "BeforCast", void 0), i([P(cc.Label)], t.prototype, "AfterCast", void 0), i([P(cc.Label)], t.prototype, "RecastLabel", void 0), i([P(cc.Node)], t.prototype, "AddEventNode", void 0), i([P(cc.Node)], t.prototype, "LeftDescContainer", void 0), i([P(cc.Node)], t.prototype, "RightDescContainer", void 0), i([P(cc.Node)], t.prototype, "RecastNode", void 0), i([P(cc.Label)], t.prototype, "NoSelectTip", void 0), i([P(cc.Node)], t.prototype, "NoSelectNode", void 0), i([P(cc.Node)], t.prototype, "AddBackNode", void 0), i([P(cc.Node)], t.prototype, "RuleNode", void 0), i([P(cc.Node)], t.prototype, "CurrencyContainer", void 0), i([P(cc.Node)], t.prototype, "LeftItemContainer", void 0), i([P(cc.Node)], t.prototype, "RightItemContainer", void 0), i([P(cc.Node)], t.prototype, "ReSelectBtnNode", void 0), i([w], t)
        }(u.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AngelGodSoulSelectPanel": "AngelGodSoulSelectPanel",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/GodSoulCastItem": "GodSoulCastItem",
        "../Components/GodSoulItemComponent": "GodSoulItemComponent"
    }],
    AngelGodSoulSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "18086LmLEZHMI99xE79hU6c", "AngelGodSoulSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GodSoulSelectType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Components/DataCenter"),
            d = e("./CustomLayout"),
            h = e("./GodSoulItemComponent"),
            f = e("./ToggleItemComponent"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/Components");
        (function(e) {
            e[e.UserHave = 0] = "UserHave", e[e.ItemIdList = 1] = "ItemIdList"
        })(l = n.GodSoulSelectType || (n.GodSoulSelectType = {}));
        var _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.PanelTitleLabel = void 0, t.ChosenNum = void 0, t.NeedNum = void 0, t.BtnNode = void 0, t.BtnLabel = void 0, t.CustomLayout = null, t.ItemContainer = void 0, t.EmptyTipLabel = void 0, t.NumberTips = void 0, t._selected = [], t._godSoulList = [], t._nodeEventState = [], t._type = l.UserHave, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, c.AssetsManager.Instance.LoadAsset("SummonBoxPanel/Components/ToggleItemComponent", cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelTitleLabel.string = "godSoul_select_title".ToUILocale(), this.BtnLabel.string = "ok".ToUILocale(), this.EmptyTipLabel.string = "PlayerSetting_noAlliance".ToUILocale(), this.NumberTips.string = "GodSoul_CombineSelectTips".ToUILocale(), this.BtnNode.on("click", this.OnClickOKBtn, this)
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this, t), t[0] && t[0].length && (this._selected = this._selected.concat(t[0])), this._needSelectNum = t[1], t[2] && (this._type = t[2]), this._godSoulList = p.DataCenter.Instance.GetDataList(y.UserGodSoul_Model).filter(function(e) {
                            return !e.OwnerId
                        }), this._godSoulList.sort(function(e, t) {
                            var n = I.ConfigDataComponent.Instance.GetConfigById(m.AngelGodSoul_Config, e.ItemId),
                                o = I.ConfigDataComponent.Instance.GetConfigById(m.AngelGodSoul_Config, t.ItemId);
                            return n.Level - o.Level
                        }), this._type == l.ItemIdList) this._selected = [], this._needSelectNum = 1, t[3] ? this._itemIdList = t[3] : this._itemIdList = [], this.NeedNum.node.active = !1, this.ChosenNum.node.active = !1, this.EmptyTipLabel.node.active = 0 == this._itemIdList.length;
                    else if (this._type == l.UserHave) {
                        if (this._needSelectNum && (this.NeedNum.string = "/" + this._needSelectNum), this._selected && 0 != this._selected.length) {
                            var n = this.GetConfigBysid(this._selected[0]);
                            this._chosenState = {
                                level: n.Level,
                                quality: n.Quality,
                                type: n.Type
                            }
                        }
                        this.EmptyTipLabel.node.active = 0 == this._godSoulList.length
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.NumberTips.node.active = this._type == l.UserHave, this.CustomLayout.Init(this._itemPrefab), this._type == l.UserHave ? this.CustomLayout.RenderLayOut(this._godSoulList.length) : this.CustomLayout.RenderLayOut(this._itemIdList.length), this._type == l.UserHave && (this.ChosenNum.string = "" + this._selected.length))
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = e.getComponent(f.ToggleItemComponent);
                        n._type == l.UserHave ? o.Init(void 0, t, f.ToggleItemType.GodSoul, n._godSoulList[t].Sid) : n._type == l.ItemIdList && o.Init(void 0, t, f.ToggleItemType.GodSoul, n._itemIdList[t], h.GodSoulItemType.ItemId), n._type == l.UserHave && (-1 != n._selected.indexOf(n._godSoulList[t].Sid) ? o.SetState(!0) : o.SetState(!1)), -1 == n._nodeEventState.indexOf(t) && (n._nodeEventState.push(t), e.on(f.ToggleItemComponent.Event.checkToggle, n.ClickToggle, n))
                    })
                }, t.prototype.ClickToggle = function(e, t, n) {
                    if (0 == t) {
                        var o = void 0;
                        if (this._type == l.UserHave) o = this._selected.indexOf(this._godSoulList[e].Sid);
                        else {
                            if (this._type != l.ItemIdList) return;
                            o = this._selected.indexOf(this._itemIdList[e])
                        }
                        return -1 != o && (this._selected.splice(o, 1), this.ChosenNum.string = "" + this._selected.length), void(0 == this._selected.length && (this._chosenState = void 0))
                    }
                    if (this._type == l.UserHave) {
                        var r = this.GetConfigBysid(this._godSoulList[e].Sid);
                        if (this._chosenState && r.Level != this._chosenState.level) return g.UIUtlity.ShowFloatingHint("godSoul_select_levelConflict".ToUILocale()), void n.SetState(!1);
                        if (p.DataCenter.Instance.GetDataById(y.UserGodSoul_Model, this._godSoulList[e].Sid).Locked && this._type == l.UserHave) return void g.UIUtlity.ShowFloatingHint("godSoul_select_locked".ToUILocale())
                    }
                    if (!this._needSelectNum || this._selected.length < this._needSelectNum)
                        if (this._type == l.UserHave) {
                            r = this.GetConfigBysid(this._godSoulList[e].Sid), this._selected.push(this._godSoulList[e].Sid), this._chosenState = {
                                level: r.Level,
                                quality: r.Quality,
                                type: r.Type
                            };
                            var i = I.ConfigDataComponent.Instance.GetConfigById(m.AngelGodSoulLevel_Config, r.Level);
                            this._needSelectNum = i.ComposeData[0], this._needSelectNum && (this.NeedNum.string = "/" + this._needSelectNum)
                        } else this._type == l.ItemIdList && this._selected.push(this._itemIdList[e]);
                    else g.UIUtlity.ShowFloatingHint("godSoul_select_max".ToUILocale()), n.SetState(!1);
                    this.ChosenNum.string = "" + this._selected.length
                }, t.prototype.OnClickOKBtn = function() {
                    c.UIManager.Instance.BackUIPanel(), c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_GODSOUL_SELECT, this._selected, this)
                }, t.prototype.GetConfigBysid = function(e) {
                    var t = p.DataCenter.Instance.GetDataById(y.UserGodSoul_Model, e);
                    return I.ConfigDataComponent.Instance.GetConfigById(m.AngelGodSoul_Config, t.ItemId)
                }, i([v(cc.Label)], t.prototype, "PanelTitleLabel", void 0), i([v(cc.Label)], t.prototype, "ChosenNum", void 0), i([v(cc.Label)], t.prototype, "NeedNum", void 0), i([v(cc.Node)], t.prototype, "BtnNode", void 0), i([v(cc.Label)], t.prototype, "BtnLabel", void 0), i([v(d.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Node)], t.prototype, "ItemContainer", void 0), i([v(cc.Label)], t.prototype, "EmptyTipLabel", void 0), i([v(cc.Label)], t.prototype, "NumberTips", void 0), i([C], t)
            }(c.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomLayout": "CustomLayout",
        "./GodSoulItemComponent": "GodSoulItemComponent",
        "./ToggleItemComponent": "ToggleItemComponent"
    }],
    AngelGodSoulinfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d0403UXd1ZLsJyWAJKJq0hd", "AngelGodSoulinfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AngelGodSoulinfoPanelType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/GodSoulItemComponent"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Components/GodSoulInfoSkillDetialComponent"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../Consts/GameEventIds");
        (function(e) {
            e[e.FromGodSoul = 0] = "FromGodSoul", e[e.FromBag = 1] = "FromBag"
        })(l = n.AngelGodSoulinfoPanelType || (n.AngelGodSoulinfoPanelType = {}));
        var v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Name = null, t.Type = null, t.TypeName = null, t.GetWayLabel = null, t.RuleBtn = null, t.LockBtn = null, t.GetWayBtn = null, t.TeakOffBtn = null, t.ChangeBtn = null, t.ReCastBtn = null, t.CombineBtn = null, t.TeakOffLabel = null, t.ChangeLabel = null, t.ReCastLabel = null, t.CombineLabel = null, t.LockSprite = null, t.ItemContainer = null, t.SkillDescContainer = null, t.SingleAttrContainer = null, t.ItemDescRichText = null, t.SkillTitleLabel = null, t.SingleAttrTitleLabel = null, t.ItemTitleLabel = null, t.SingleAttrNode = null, t._fromPanel = l.FromGodSoul, t._skillDescs = [], t._singleAttrs = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(C.GameEventIds.AddDataDetail.Fmt(d.UserGodSoul_Model._n_), this.OnDataChange, this), c.Game.EventDispatcher.On(C.GameEventIds.ChangeDataDetail.Fmt(d.UserGodSoul_Model._n_), this.OnDataChange, this), c.Game.EventDispatcher.On(C.GameEventIds.RemoveDataDetail.Fmt(d.UserGodSoul_Model._n_), this.OnDataChange, this), c.Game.EventDispatcher.On(m.EventKeys.EVENT_GODSOUL_EQU, this.OnEquipChange, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(C.GameEventIds.AddDataDetail.Fmt(d.UserGodSoul_Model._n_), this.OnDataChange, this), c.Game.EventDispatcher.Off(C.GameEventIds.ChangeDataDetail.Fmt(d.UserGodSoul_Model._n_), this.OnDataChange, this), c.Game.EventDispatcher.Off(C.GameEventIds.RemoveDataDetail.Fmt(d.UserGodSoul_Model._n_), this.OnDataChange, this), c.Game.EventDispatcher.Off(m.EventKeys.EVENT_GODSOUL_EQU, this.OnEquipChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AngelGodSoul/Components/GodSoulItemComponent", cc.Prefab), n = this.LoadDynamicAsset("AngelGodSoul/Components/GodSoulInfoSkillDetialComponent", cc.Prefab), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._itemPrefab = o[0], this._skillDescPrefab = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetWayLabel.string = "Personalise_getway".ToUILocale(), this.TeakOffLabel.string = "PowerCore_Remove".ToUILocale(), this.ChangeLabel.string = "equip_change".ToUILocale(), this.ReCastLabel.string = "luckycharm_recast".ToUILocale(), this.CombineLabel.string = "compose".ToUILocale(), this.Type.string = "equip_type_tag".ToUILocale(), this.SkillTitleLabel.string = "skill_description".ToUILocale(), this.ItemTitleLabel.string = "itemDesc".ToUILocale(), this.SingleAttrTitleLabel.string = "angel_personal".ToUILocale(), this.RuleBtn.node.on("click", this.OnClickRuleBtn, this), this.LockBtn.node.on("click", this.OnClickLockBtn, this), this.GetWayBtn.node.on("click", this.OnClickGetWayBtn, this), this.TeakOffBtn.node.on("click", this.OnClickTeakOffBtn, this), this.ChangeBtn.node.on("click", this.OnClickChangeBtn, this), this.ReCastBtn.node.on("click", this.OnClickReCastBtn, this), this.CombineBtn.node.on("click", this.OnClickCombineBtn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._soulSid = t[0], this._model = h.DataCenter.Instance.GetDataById(d.UserGodSoul_Model, this._soulSid), t[1] && (this._fromPanel = t[1])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._model = h.DataCenter.Instance.GetDataById(d.UserGodSoul_Model, this._soulSid), t || (this.RefreshLockSprite(), this._fromPanel == l.FromBag && (this.TeakOffBtn.node.active = !1, this.ChangeBtn.node.active = !1)), this.RenderSoul(), this.RenderButton()
                }, t.prototype.OnEquipChange = function(e) {
                    this._soulSid = e, this._model = h.DataCenter.Instance.GetDataById(d.UserGodSoul_Model, this._soulSid), this.RenderSoul(), this.RenderButton()
                }, t.prototype.RenderSoul = function() {
                    var e = this;
                    if (!this._component) {
                        var t = cc.instantiate(this._itemPrefab),
                            n = t.getComponent(u.default);
                        this.ItemContainer.addChild(t), this._component = n
                    }
                    this._component.Init(this._soulSid);
                    var o = h.ConfigDataComponent.Instance.GetConfigById(p.AngelGodSoul_Config, this._model.ItemId);
                    this.Name.string = this._model.ItemId.ToItemName(), this.Name.node.color = f.UIUtlity.GetLabelColorByQuality(o.Quality), this.TypeName.string = o.Type.ToAngelSoulTypeName();
                    var r = o.Skills,
                        i = o.Attr;
                    this.ItemDescRichText.string = o.Id.ToItemDesc(), this._skillDescs.forEach(function(e) {
                        e.node.active = !1
                    }), r.forEach(function(t, n) {
                        if (!e._skillDescs[n]) {
                            var o = cc.instantiate(e._skillDescPrefab);
                            o.parent = e.SkillDescContainer, e._skillDescs[n] = o.getComponent(I.default)
                        }
                        e._skillDescs[n].node.active = !0, e._skillDescs[n].Set(t.ToHeroSkillDesc())
                    }), i && 0 != i.length && i.forEach(function(t, n) {
                        var o = n + r.length;
                        if (!e._skillDescs[o]) {
                            var i = cc.instantiate(e._skillDescPrefab);
                            i.parent = e.SkillDescContainer, e._skillDescs[o] = i.getComponent(I.default)
                        }
                        var a = _.default.GetHeroAttribute(t.Items[0], t.Items[1]);
                        e._skillDescs[o].node.active = !0, e._skillDescs[o].Set("angelGodSoul_AttrAdd".ToUILocale().Fmt(a.Name, a.Value))
                    });
                    var a = _.default.Instance.IsGameModuleOpen(y.GameModuleType.AngelPvp),
                        s = _.default.Instance.IsGameModuleUnlock(y.GameModuleType.AngelPvp);
                    if (this.SingleAttrNode.active = a && s[0], a) {
                        this._singleAttrs.forEach(function(e) {
                            e.node.active = !1
                        });
                        var l = [];
                        o.PersonalAttrs.forEach(function(e) {
                            var t = e.Items[0],
                                n = e.Items[1],
                                o = _.default.GetHeroAttribute(t, n);
                            l.push(o.Name + " +" + o.Value)
                        }), l.forEach(function(t, n) {
                            if (!e._singleAttrs[n]) {
                                var o = cc.instantiate(e._skillDescPrefab);
                                o.parent = e.SingleAttrContainer, e._singleAttrs[n] = o.getComponent(I.default)
                            }
                            e._singleAttrs[n].node.active = !0, e._singleAttrs[n].Set(t)
                        })
                    }
                }, t.prototype.OnDataChange = function() {
                    this._model = h.DataCenter.Instance.GetDataById(d.UserGodSoul_Model, this._soulSid), this.RenderSoul()
                }, t.prototype.OnClickRuleBtn = function() {
                    var e = {
                        name: "godSoul_infoTip".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["godSoul_infoContent".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnClickLockBtn = function() {
                    this.SetLockState(!this._model.Locked)
                }, t.prototype.OnClickGetWayBtn = function() {
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.ItemGetWayPanel.Path, this._model.ItemId, !1)
                }, t.prototype.OnClickTeakOffBtn = function() {
                    this.DoPutOffCall()
                }, t.prototype.OnClickChangeBtn = function() {
                    var e = {
                        angelId: this._model.OwnerId,
                        slotId: this._model.SlotId,
                        godSoulSid: this._soulSid
                    };
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.AngelGodSoulListPanel.Path, e)
                }, t.prototype.OnClickReCastBtn = function() {
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.AngelGodSoulReCastPanel.Path, this._soulSid)
                }, t.prototype.OnClickCombineBtn = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, c.UIManager.Instance.ShowUIPanel(g.PanelConfig.AngelGodSoulCombinePanel.Path)];
                                case 1:
                                    return e.sent(), this.isValid && this.Close(), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshLockSprite = function() {
                    1 == this._model.Locked ? this.LockSprite.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("smallBtn_lock") : this.LockSprite.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("smallBtn_unlock")
                }, t.prototype.DoPutOffCall = function() {
                    var e = this,
                        t = new d.Req_Item_GodSoulPutOff;
                    t.OwnerId = this._model.OwnerId, t.SlotId = this._model.SlotId, h.RpcComponent.Instance.Call(t, function() {
                        e.isValid && (e._model = h.DataCenter.Instance.GetDataById(d.UserGodSoul_Model, e._soulSid), c.Game.EventDispatcher.Emit(m.EventKeys.EVENT_GODSOUL_TAKE_OFF), e.Close())
                    })
                }, t.prototype.SetLockState = function(e) {
                    var t = this,
                        n = new d.Req_Item_GodSoulLock;
                    n.Locked = e, n.Sid = this._model.Sid, h.RpcComponent.Instance.Call(n, function() {
                        t.isValid && (t._model = h.DataCenter.Instance.GetDataById(d.UserGodSoul_Model, t._soulSid), t.RefreshLockSprite())
                    })
                }, t.prototype.RenderButton = function() {
                    var e = h.ConfigDataComponent.Instance.GetConfigById(p.AngelGodSoul_Config, this._model.ItemId),
                        t = h.ConfigDataComponent.Instance.GetConfigById(p.AngelGodSoulLevel_Config, e.Level);
                    t.CastRewards && 0 != t.CastRewards.length ? (this.ReCastBtn.enabled = !0, f.UIUtlity.OffNodeGray(this.ReCastBtn.node)) : (this.ReCastBtn.enabled = !1, f.UIUtlity.OnNodeGray(this.ReCastBtn.node))
                }, i([S(cc.Label)], t.prototype, "Name", void 0), i([S(cc.Label)], t.prototype, "Type", void 0), i([S(cc.Label)], t.prototype, "TypeName", void 0), i([S(cc.Label)], t.prototype, "GetWayLabel", void 0), i([S(cc.Button)], t.prototype, "RuleBtn", void 0), i([S(cc.Button)], t.prototype, "LockBtn", void 0), i([S(cc.Button)], t.prototype, "GetWayBtn", void 0), i([S(cc.Button)], t.prototype, "TeakOffBtn", void 0), i([S(cc.Button)], t.prototype, "ChangeBtn", void 0), i([S(cc.Button)], t.prototype, "ReCastBtn", void 0), i([S(cc.Button)], t.prototype, "CombineBtn", void 0), i([S(cc.Label)], t.prototype, "TeakOffLabel", void 0), i([S(cc.Label)], t.prototype, "ChangeLabel", void 0), i([S(cc.Label)], t.prototype, "ReCastLabel", void 0), i([S(cc.Label)], t.prototype, "CombineLabel", void 0), i([S(cc.Sprite)], t.prototype, "LockSprite", void 0), i([S(cc.Node)], t.prototype, "ItemContainer", void 0), i([S(cc.Node)], t.prototype, "SkillDescContainer", void 0), i([S(cc.Node)], t.prototype, "SingleAttrContainer", void 0), i([S(cc.RichText)], t.prototype, "ItemDescRichText", void 0), i([S(cc.Label)], t.prototype, "SkillTitleLabel", void 0), i([S(cc.Label)], t.prototype, "SingleAttrTitleLabel", void 0), i([S(cc.Label)], t.prototype, "ItemTitleLabel", void 0), i([S(cc.Node)], t.prototype, "SingleAttrNode", void 0), i([b], t)
            }(c.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/GodSoulInfoSkillDetialComponent": "GodSoulInfoSkillDetialComponent",
        "../Components/GodSoulItemComponent": "GodSoulItemComponent"
    }],
    AngelGuardInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7f0dbHUPjVCpKxWZaCqqI2F", "AngelGuardInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Tab = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/CustomToggle"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/HeroFavorItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("./AngelInfoAttrComponent"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("./AngelInfoDestinyComponent"),
            b = e("../Components/AngelInfoStarComponent"),
            S = e("../Components/AngelSoulComponent"),
            w = e("../../../Consts/GameEventIds"),
            P = e("../Components/LevelComponent"),
            A = e("../../../ShareConsts/EnumType"),
            T = e("../../Auxiliary/DataUtlity"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property;
        (function(e) {
            e[e.Attr = 0] = "Attr", e[e.UpStar = 1] = "UpStar", e[e.Destiny = 2] = "Destiny", e[e.Soul = 3] = "Soul", e[e.None = 4] = "None"
        })(l = n.Tab || (n.Tab = {}));
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Bg = null, t.Bgs = [], t.LeftLayoutNode = null, t.RightLayoutNode = null, t.AngelTitle = null, t.Toggles = [], t.InfoContainer = null, t.AttrModeContainer = null, t.SoulModeContainer = null, t.DestinyModeContainer = null, t.UpStarModeContainer = null, t.LeftArrowBtn = null, t.RightArrowBtn = null, t.ReturnBtn = null, t.AvatarContainer = null, t.FavorItemContainer = null, t.RuleButton = null, t.RebornBtn = null, t.RebornBtnLabel = null, t.SkinButton = null, t.SkinLabel = null, t.AngelDescButton = null, t.AngelDescLabel = null, t.UnTouchNode = null, t.HideButton = null, t.HideLabel = null, t.LevelComponent = null, t.AngelSummonBtn = null, t.AngelSummonSprite = null, t.AngelSummonLabel = null, t.AngelHandbookButton = null, t.AngelHandbookButtonLabel = null, t.FormBtn = null, t.FormBtnLabel = null, t.ToggleNode = null, t.FormToggleNodeBg = null, t.SliderNode = null, t.CountSlider = null, t.BtnAdd = null, t.BtnReduce = null, t._angelArray = [], t._isHide = !1, t._isShowForm = !1, t._formToggles = [], t._selectFormIndex = 0, t._isStartMove = !1, t._formScale = 1, t._loadAssets = [], t.InitScale = 1, t.InitAngelFormY = 470, t.MaxMoveDistance = 2500, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(C.EventKeys.EVENT_REFRESH_ANGELATTRNODE, this.RefreshAngelAttrNode, this), c.Game.EventDispatcher.On(w.GameEventIds.AddDataDetail.Fmt(u.UserGodSoul_Model._n_), this.BindGodSoulButton, this), c.Game.EventDispatcher.On(w.GameEventIds.ChangeDataDetail.Fmt(u.UserGodSoul_Model._n_), this.BindGodSoulButton, this), c.Game.EventDispatcher.On(w.GameEventIds.RemoveDataDetail.Fmt(u.UserGodSoul_Model._n_), this.BindGodSoulButton, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(C.EventKeys.EVENT_REFRESH_ANGELATTRNODE, this.RefreshAngelAttrNode, this), c.Game.EventDispatcher.Off(w.GameEventIds.AddDataDetail.Fmt(u.UserGodSoul_Model._n_), this.BindGodSoulButton, this), c.Game.EventDispatcher.Off(w.GameEventIds.ChangeDataDetail.Fmt(u.UserGodSoul_Model._n_), this.BindGodSoulButton, this), c.Game.EventDispatcher.Off(w.GameEventIds.RemoveDataDetail.Fmt(u.UserGodSoul_Model._n_), this.BindGodSoulButton, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CollectionPavilionPanel/Components/ChaosHeroTempleToggle", cc.Prefab), n = this.LoadDynamicAsset(y.BundlePath.HeroFavorItemComponent), o = this.LoadDynamicAsset("CollectionPavilionPanel/Png/CollectionPavilionIcon", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._togglePrefab = e[0], r._favorItemPrefab = e[1], r._atlas = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this), this.RuleButton.node.on("click", this.OnRuleBtnClick, this), this.LeftArrowBtn.node.on("click", this.OnClickLeftArrow, this), this.RightArrowBtn.node.on("click", this.OnClickRightArrow, this), this.RebornBtn.node.on("click", this.OnClickReborn, this), this.SkinButton.node.on("click", this.OnClickSkin, this), this.AngelDescButton.node.on("click", this.OnClickAngelDesc, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.AngelSummonBtn.node.on("click", this.OnAngelSummonBtnClick, this), this.AngelHandbookButton.node.on("click", this.OnAngelHandbookButtonClick, this), this.FormBtn.node.on("click", this.OnFormBtnClick, this), this.Bg.node.on(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.Bg.node.on(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.Bg.node.on(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.Bg.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this), this.BtnAdd.node.on("click", this.OnBtnAddClick, this), this.BtnReduce.node.on("click", this.OnBtnReduceClick, this), this.CountSlider.node.on("slide", this.OnDragOver, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this), this.RebornBtnLabel.string = "hero_reborn_btn".ToUILocale(), this.SkinLabel.string = "angel_skin".ToUILocale(), this.AngelDescLabel.string = "angel_introduce".ToUILocale(), this.FormBtnLabel.string = "angel_form_preview".ToUILocale(), this.AngelHandbookButtonLabel.string = "AngelHandbook_Rule_Name".ToUILocale(), this.InitToggles(), this.FavorItemContainer.active = !1, this.AngelSummonBtn.node.active = !1, this.FormToggleNodeBg.spriteFrame = this._atlas.getSpriteFrame("chaos_toggle_bg")
            }, t.prototype.InitToggles = function() {
                for (var e = this.Toggles.length, t = 0; t < e; t++) {
                    var n = this.Toggles[t];
                    n.node.on("toggle", this.OnSwitchTab, this), n.Init("angel_toggle_{0}".Fmt(t).ToUILocale())
                }
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._angelId = t[0], t[1] ? this._angelArray = t[1] : this._angelArray = [], t[2] ? this._defaultTab = t[2] : this._defaultTab = l.Attr, this._angelFormScaleParam = d.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, A.LevelParamType.AngelFormScaleParam)
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._currentTab = l.None, this.SetData(), this.SetHideNode(), this.SetAngelFormToggles(), this.ConfigArrowBtn(), this.SetTopInfo(), this.SetAngelFavorItem(), this.SetAngelDesc(), this.SetAvatar(), t || this.SetAngelSummonBtn();
                var n = this.Toggles[this._defaultTab];
                n.isChecked = !0, this.OnSwitchTab(n)
            }, t.prototype.SetData = function() {
                this._selectAngel = d.DataCenter.Instance.GetDataById(u.UserAngel_Model, this._angelId), this._selectIndex = this._angelArray.indexOf(this._angelId), this._selectAngel ? (this.AngelBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(p.AngelBase_Config, this._selectAngel.AngelId), this.CurrentStarConfig = d.ConfigDataComponent.Instance.GetConfigById(p.AngelStar_Config, 1e3 * this._selectAngel.AngelId + this._selectAngel.StarLevel), this.CurrentLevelConfig = d.ConfigDataComponent.Instance.GetConfigById(p.AngelLevel_Config, this._selectAngel.Level)) : c.UIManager.Instance.BackUIPanel()
            }, t.prototype.SetHideNode = function() {
                this.AvatarContainer.active = this._defaultTab != l.Destiny, this.RuleButton.node.active = !0, this.ToggleNode.active = !this._isShowForm, this.FormToggleNodeBg.node.active = this._isShowForm;
                var e = T.default.Instance.IsGameModuleOpen(A.GameModuleType.AngelFormScale);
                this.SliderNode.active = this._isShowForm && e, this._isShowForm ? (this.LeftArrowBtn.node.active = !1, this.RightArrowBtn.node.active = !1) : this.ConfigArrowBtn(), this.SetHideLabel()
            }, t.prototype.SetHideLabel = function() {
                this.HideLabel.string = this._isHide ? "personalityCall_show".ToUILocale() : "personalityCall_hide".ToUILocale(), this.HideButton.node.active = this._defaultTab != l.Destiny && !this._isShowForm, this.LeftLayoutNode.active = this._defaultTab != l.Destiny && !this._isHide && !this._isShowForm, this.RightLayoutNode.active = this._defaultTab != l.Destiny && !this._isHide && !this._isShowForm, this.InfoContainer.active = this._defaultTab != l.Destiny && !this._isHide && !this._isShowForm, this.LevelComponent.node.active = this._defaultTab != l.Destiny && !this._isHide && !this._isShowForm
            }, t.prototype.GetAngelAllForm = function(e) {
                var t = this;
                return this._angelAllForms || (this._angelAllForms = {}, d.ConfigDataComponent.Instance.GetArrayConfig(p.AngelStar_Config).forEach(function(e) {
                    var n, o = Math.floor(e.Id / 1e3);
                    t._angelAllForms[o] ? -1 == t._angelAllForms[o].findIndex(function(t) {
                        return t.Shape == e.AngelShape
                    }) && ((n = {}).Star = e.Id % (1e3 * o), n.Shape = e.AngelShape, t._angelAllForms[o].push(n)) : ((n = {}).Star = e.Id % (1e3 * o), n.Shape = e.AngelShape, t._angelAllForms[o] = [n])
                })), this._angelAllForms[e]
            }, t.prototype.SetAngelFormToggles = function() {
                var e = this;
                this._formToggles.forEach(function(e) {
                    e.active = !1
                }), this._isShowForm && (this.GetAngelAllForm(this._selectAngel.AngelId).forEach(function(t, n) {
                    if (!e._formToggles[n]) {
                        var o = cc.instantiate(e._togglePrefab);
                        o.parent = e.FormToggleNodeBg.node, o.on("toggle", e.OnSwitchFormToggle, e), e._formToggles[n] = o
                    }
                    e._formToggles[n].active = !0, e._formToggles[n].getComponent(f.default).Init("Activity_Story_Attr_LevelStar".ToUILocale().Fmt(t.Star)), e._formToggles[n].name = n.toString()
                }), this._formToggles[this._selectFormIndex] && (this._formToggles[this._selectFormIndex].getComponent(f.default).isChecked = !0))
            }, t.prototype.OnSwitchFormToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._selectFormIndex != t && (this._selectFormIndex = t, this.SetAvatar())
            }, t.prototype.SetTopInfo = function() {
                this.AngelTitle.node.active = !0, this.AngelTitle.string = this._selectAngel.AngelId.ToAngelTitle(), this.LevelComponent.Init(this._selectAngel.StarLevel)
            }, t.prototype.SetAngelFavorItem = function() {
                if (this.FavorItemContainer.active) {
                    if (!this._favorItemComponent) {
                        var e = cc.instantiate(this._favorItemPrefab);
                        e.setParent(this.FavorItemContainer), this._favorItemComponent = e.getComponent(g.default)
                    }
                    this._favorItemComponent.Init(this._selectAngel.AngelId, "angel_favor".ToUILocale(), g.HeroFavorItemType.Angel), this._favorItemComponent.node.on(cc.Node.EventType.TOUCH_END, this.OnClickFavorItem, this)
                }
            }, t.prototype.SetAngelDesc = function() {
                this.AngelBaseConfig.AngelIntroduce ? this.AngelDescButton.node.active = !0 : this.AngelDescButton.node.active = !1
            }, t.prototype.SetAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this._isShowForm || (this.AvatarContainer.setPosition(0, this.InitAngelFormY), this.AvatarContainer.scale = this._formScale), this.AvatarContainer.destroyAllChildren(), this.ClaerAvatarPrefab(), this._isShowForm ? (t = this.GetAngelAllForm(this._selectAngel.AngelId), e = d.ConfigDataComponent.Instance.GetConfigById(p.AngelGodAvatar_Config, t[this._selectFormIndex].Shape)) : e = this._selectAngel.SkinId > 0 ? d.ConfigDataComponent.Instance.GetConfigById(p.AngelGodAvatar_Config, this._selectAngel.SkinId) : d.ConfigDataComponent.Instance.GetConfigById(p.AngelGodAvatar_Config, this.CurrentStarConfig.AngelShape), n = e.UIAvatar + "/Avatar", [4, c.AssetsManager.Instance.LoadAsset(n, cc.Prefab)];
                            case 1:
                                return o = i.sent(), this.isValid ? (n == o.name ? (this._currentAvatarPrefab = o, (r = cc.instantiate(o)).setParent(this.AvatarContainer), this._avatarAlphaTween && this._avatarAlphaTween.stop(), r.opacity = 20, this._avatarAlphaTween = cc.tween(r).to(.25, {
                                    opacity: 255
                                }, {
                                    easing: "cubicIn"
                                }).start()) : c.AssetsManager.Instance.UnloadAsset(o), [2]) : (c.AssetsManager.Instance.UnloadAsset(o), [2])
                        }
                    })
                })
            }, t.prototype.SetAngelSummonBtn = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                for (t in this.AngelSummonBtn.node.active = !1, e = [], d.DataCenter.Instance.ActivityConfigs) e.push(t);
                                n = 0, s.label = 1;
                            case 1:
                                return n < e.length ? (o = e[n], d.DataCenter.Instance.ActivityConfigs[o].Common.Type != A.ActivityType.AngelSummon ? [3, 3] : (r = d.DataCenter.Instance.ActivityConfigs[o], i = T.default.Instance.ComputeDeadTime(r.Common), d.RpcComponent.Instance.ServerTime < i ? (this._activityConfig = r, this.AngelSummonBtn.node.active = !0, this.AngelSummonLabel.string = r.Common.Title, a = m.UIUtlity.GetIconPath(r.Common.Icon), [4, T.default.LoadActivityTexture(a)]) : [3, 3])) : [3, 4];
                            case 2:
                                return l = s.sent(), this.isValid ? (this._loadAssets.push(l), this.AngelSummonSprite.spriteFrame = l, [2]) : (c.AssetsManager.Instance.UnloadAsset(l), [2]);
                            case 3:
                                return n++, [3, 1];
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                this._selectAngel = d.DataCenter.Instance.GetDataById(u.UserAngel_Model, this._angelId), this.SetPanelTab(t), this.BindRedDot()
            }, t.prototype.SetPanelTab = function(e) {
                this._currentTab != e && (this._currentTab = e, this._defaultTab = e, this.Toggles[this._currentTab].isChecked = !0, this.AttrModeContainer.active = !1, this.SoulModeContainer.active = !1, this.UpStarModeContainer.active = !1, this.DestinyModeContainer.active = !1, this.Bg.spriteFrame = this._defaultTab == l.Destiny ? this.Bgs[1] : this.Bgs[0], this.LevelComponent.node.active = this._defaultTab != l.Destiny, this.SetHideNode(), this.SetTopInfo(), this.DoSwitchTabJob())
            }, t.prototype.DoSwitchTabJob = function() {
                switch (this._currentTab) {
                    case l.Attr:
                        this.ConfigAttrMode();
                        break;
                    case l.Soul:
                        this.ConfigSoulMode();
                        break;
                    case l.UpStar:
                        this.ConfigUpStarMode();
                        break;
                    case l.Destiny:
                        this.ConfigDestinyMode()
                }
            }, t.prototype.SwitchAngel = function(e) {
                this._angelId = this._angelArray[e], c.Game.EventDispatcher.Emit(C.EventKeys.EVENT_ANGEL_DESTINY_AUTO_STATUS, !0), this.SetData(), this.DoSwitchTabJob(), this.SetTopInfo(), this.SetAngelFavorItem(), this.SetAngelDesc(), this.SetAvatar(), this.BindRedDot()
            }, t.prototype.ConfigAttrMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.AttrModeContainer.active = !0, null != this._attrTabPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroInfoPanel/Components/AngelInfoAttrComponent")]);
                            case 1:
                                if (e._attrTabPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._attrTabPrefab), [2];
                                (t = cc.instantiate(this._attrTabPrefab)).setParent(this.AttrModeContainer), this._attrTabComponent = t.getComponent(I.default), n.label = 2;
                            case 2:
                                return this._attrTabComponent.Init(this._selectAngel, this), [2]
                        }
                    })
                })
            }, t.prototype.ConfigSoulMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.SoulModeContainer.active = !0, null != this._SoulPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroInfoPanel/Components/AngelSoulComponent")]);
                            case 1:
                                if (e._SoulPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._SoulPrefab), [2];
                                (t = cc.instantiate(this._SoulPrefab)).setParent(this.SoulModeContainer), this._soulComponent = t.getComponent(S.default), n.label = 2;
                            case 2:
                                return this._soulComponent.Init(this._selectAngel), [2]
                        }
                    })
                })
            }, t.prototype.ConfigUpStarMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.UpStarModeContainer.active = !0, this._starItemComponent ? [3, 2] : [4, this.LoadDynamicAsset("HeroInfoPanel/Components/AngelInfoStarComponent", cc.Prefab)];
                            case 1:
                                if (e = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                (t = cc.instantiate(e)).setParent(this.UpStarModeContainer), this._starItemComponent = t.getComponent(b.default), n.label = 2;
                            case 2:
                                return this._starItemComponent.Init(this._selectAngel, this), [2]
                        }
                    })
                })
            }, t.prototype.ConfigDestinyMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.DestinyModeContainer.active = !0, null != this._destinyTabPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("AngelDestinyPanel/AngelInfoDestinyComponent")]);
                            case 1:
                                if (e._destinyTabPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._destinyTabPrefab), [2];
                                (t = cc.instantiate(this._destinyTabPrefab)).setParent(this.DestinyModeContainer), this._destinyTabComponent = t.getComponent(v.default), n.label = 2;
                            case 2:
                                return this._destinyTabComponent.Init(this._angelId), [2]
                        }
                    })
                })
            }, t.prototype.BindRedDot = function() {
                this.BindAttrToggle(), this.BindUpStarToggle(), this.BindAngelDescButton(), this.BindAngelSkinButton(), this.BindFavorButton(), this.BindGodSoulButton()
            }, t.prototype.BindAttrToggle = function() {
                var e = this.Toggles[l.Attr].node;
                _.RedDotManager.Instance.BindInstance(e, _.RedDotManager.Instance.InstanceRedDot.AngelInfoAttrToggle, {
                    Value1: this._angelId
                }, -30, 70), _.RedDotManager.Instance.Bind(this.AngelHandbookButton.node, _.RedDotManager.Instance.RedDot.AngelHandbookEntryNode)
            }, t.prototype.BindUpStarToggle = function() {
                var e = this.Toggles[l.UpStar].node;
                _.RedDotManager.Instance.BindInstance(e, _.RedDotManager.Instance.InstanceRedDot.AngelUpStarToggle, {
                    Value1: this._angelId
                }, -30, 70)
            }, t.prototype.BindAngelDescButton = function() {
                _.RedDotManager.Instance.BindInstance(this.AngelDescButton.node, _.RedDotManager.Instance.InstanceRedDot.AngelDescButton, {
                    Value1: this._angelId
                })
            }, t.prototype.BindAngelSkinButton = function() {
                _.RedDotManager.Instance.BindInstance(this.SkinButton.node, _.RedDotManager.Instance.InstanceRedDot.AngelSkinButton, {
                    Value1: this._angelId
                })
            }, t.prototype.BindFavorButton = function() {
                this.FavorItemContainer.active && _.RedDotManager.Instance.BindInstance(this.FavorItemContainer, _.RedDotManager.Instance.InstanceRedDot.AngelFavorButton, {
                    Value1: this._angelId
                })
            }, t.prototype.BindGodSoulButton = function() {
                var e = this.Toggles[l.Soul].node;
                _.RedDotManager.Instance.BindInstance(e, _.RedDotManager.Instance.InstanceRedDot.AngelGodSoulButton, {
                    Value1: this._angelId
                }, -30, 70)
            }, t.prototype.OnClickLeftArrow = function() {
                var e = this._selectIndex - 1;
                this._selectIndex = e >= 0 ? e : 0, this.ConfigArrowBtn(), this.SwitchAngel(this._selectIndex)
            }, t.prototype.OnClickRightArrow = function() {
                var e = this._selectIndex + 1,
                    t = this._angelArray.length - 1;
                this._selectIndex = e <= t ? e : t, this.ConfigArrowBtn(), this.SwitchAngel(this._selectIndex)
            }, t.prototype.ConfigArrowBtn = function() {
                this._angelArray.length > 1 ? this._selectIndex <= 0 ? (this.LeftArrowBtn.node.active = !1, this.RightArrowBtn.node.active = !0) : this._selectIndex >= this._angelArray.length - 1 ? (this.LeftArrowBtn.node.active = !0, this.RightArrowBtn.node.active = !1) : (this.LeftArrowBtn.node.active = !0, this.RightArrowBtn.node.active = !0) : (this.LeftArrowBtn.node.active = !1, this.RightArrowBtn.node.active = !1)
            }, t.prototype.OnClickFavorItem = function() {
                h.UIManager.Instance.ShowUIPanel(y.PanelConfig.FavorUpgradePanel.Path, this._selectAngel.AngelId, 1)
            }, t.prototype.OnReturnBtnClick = function() {
                this._isShowForm ? (this._isShowForm = !1, this._formScale = 1, this.SetHideNode(), this.SetAngelFormToggles(), this.SetAvatar()) : h.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRuleBtnClick = function() {
                var e = {};
                switch (this._defaultTab) {
                    case l.Attr:
                        e.name = "angel_attr_rule_title".ToUILocale(), e.titles = ["HeroTalent_Rule".ToUILocale()], e.contents = ["angel_attr_rule_content".ToUILocale()];
                        break;
                    case l.UpStar:
                        e.name = "angel_star_rule_title".ToUILocale(), e.titles = ["HeroTalent_Rule".ToUILocale()], e.contents = ["angel_star_rule_content".ToUILocale()];
                        break;
                    case l.Destiny:
                        e.name = "angel_destiny_rule_title".ToUILocale(), e.titles = ["HeroTalent_Rule".ToUILocale()], e.contents = ["angel_destiny_rule_content".ToUILocale()];
                        break;
                    case l.Soul:
                        e.name = "angel_soul_rule_title".ToUILocale(), e.titles = ["HeroTalent_Rule".ToUILocale()], e.contents = ["angel_soul_rule_content".ToUILocale()]
                }
                m.UIUtlity.ShowRulePanel(e)
            }, t.prototype.RefreshAngelAttrMode = function() {
                this.RefreshAngelAttrNode()
            }, t.prototype.RefreshAngelAttrNode = function() {
                this._selectAngel = d.DataCenter.Instance.GetDataById(u.UserAngel_Model, this._angelId), this.CurrentLevelConfig = d.ConfigDataComponent.Instance.GetConfigById(p.AngelLevel_Config, this._selectAngel.Level), this._attrTabComponent.Init(this._selectAngel, this, !0)
            }, t.prototype.OnClickReborn = function() {
                this._selectAngel.Level <= 1 && 0 == this._selectAngel.FatePoints.length ? m.UIUtlity.ShowFloatingHint("angel_reborn_limit".ToUILocale()) : h.UIManager.Instance.ShowUIPanel(y.PanelConfig.AngelRebornPanel.Path, this._selectAngel)
            }, t.prototype.OnClickSkin = function() {
                h.UIManager.Instance.ShowUIPanel(y.PanelConfig.AngelSkinPanel.Path, this._angelId)
            }, t.prototype.ClaerAvatarPrefab = function() {
                this._currentAvatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), this.AvatarContainer.destroyAllChildren(), this.ClaerAvatarPrefab()
            }, t.prototype.OnClickAngelDesc = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroDescPanel.Path, this._angelId, 1)
            }, t.prototype.OnHideButtonClick = function() {
                this._isHide ? this._isHide = !1 : this._isHide = !0, this.SetHideLabel()
            }, t.prototype.OnAngelSummonBtnClick = function() {
                this._activityConfig && c.UIManager.Instance.ShowUIPanel(y.PanelConfig.SummonActivityListPanel.Path, this._activityConfig.Common.GetWayId)
            }, t.prototype.OnAngelHandbookButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AngelCollectionHandbookPanel.Path)
            }, t.prototype.OnFormBtnClick = function() {
                this._isShowForm = !0, this._selectFormIndex = 0, this._formScale = 1, this.CountSlider.progress = .5, this.SetHideNode(), this.SetAngelFormToggles(), this.SetAvatar()
            }, t.prototype.SetUpStarBlackSpine = function() {
                return a(this, void 0, void 0, function() {
                    var e, t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return [4, Promise.all([this.LoadDynamicAsset("HeroInfoPanel/Spine/UI_effect_tianshi_shengxing_2", sp.SkeletonData), this.LoadDynamicAsset("HeroInfoPanel/Spine/UI_effect_tianshi_shengxing_1", sp.SkeletonData)]).then(function(n) {
                                    if (!t.isValid) return c.AssetsManager.Instance.UnloadAsset(n[0]), void c.AssetsManager.Instance.UnloadAsset(n[1]);
                                    e = n[0], t._starSpine = n[1]
                                })];
                            case 1:
                                return n.sent(), this.SetSpine(this.AvatarContainer, e, "Ani_UI_effect_tianshi_shengxing_2"), [2]
                        }
                    })
                })
            }, t.prototype.SetStarSpine = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this.SetSpine(this.node, this._starSpine, "Ani_UI_effect_tianshi_shengxing_1"), [2]
                    })
                })
            }, t.prototype.SetSpine = function(e, t, n) {
                var o = new cc.Node;
                o.setParent(e);
                var r = o.addComponent(sp.Skeleton);
                r.skeletonData = t, r.setAnimation(0, n, !1)
            }, t.prototype.StarTouchEvent = function() {
                this._isStartMove = !0
            }, t.prototype.StarMoveEvent = function(e) {
                if (this._isStartMove && this._isShowForm) {
                    var t = e.getDelta(),
                        n = this.AvatarContainer.y + t.y,
                        o = this.AvatarContainer.x + t.x;
                    if (o > this.MaxMoveDistance || n > this.InitAngelFormY + this.MaxMoveDistance) return;
                    if (o < -this.MaxMoveDistance || n < this.InitAngelFormY - this.MaxMoveDistance) return;
                    this.AvatarContainer.setPosition(o, n)
                }
            }, t.prototype.TouchEndEvent = function() {
                this._isStartMove = !1
            }, t.prototype.OnDragOver = function() {
                if (this._isShowForm) {
                    var e = 1 + this._angelFormScaleParam.Data[0],
                        t = 1 / (1 + this._angelFormScaleParam.Data[1]),
                        n = e - 1,
                        o = 1 - t,
                        r = this.CountSlider.progress;
                    this._formScale = r > .5 ? 1 + n * (r - .5) / .5 : t + o * r / .5, this.AvatarContainer.scale = this._formScale
                }
            }, t.prototype.OnBtnAddClick = function() {
                var e = 1 + this._angelFormScaleParam.Data[0],
                    t = 1 / (1 + this._angelFormScaleParam.Data[1]),
                    n = e - 1,
                    o = 1 - t,
                    r = this.CountSlider.progress + .05;
                this.CountSlider.progress < .5 ? r >= .5 ? (this.CountSlider.progress = .5, this._formScale = 1) : (this.CountSlider.progress = r, this._formScale = t + o * r / .5) : r > 1 ? (this.CountSlider.progress = 1, this._formScale = e) : (this.CountSlider.progress = r, this._formScale = 1 + n * ((r - .5) / .5)), this.AvatarContainer.scale = this._formScale
            }, t.prototype.OnBtnReduceClick = function() {
                var e = 1 + this._angelFormScaleParam.Data[0],
                    t = 1 / (1 + this._angelFormScaleParam.Data[1]),
                    n = e - 1,
                    o = 1 - t,
                    r = this.CountSlider.progress - .05;
                this.CountSlider.progress > .5 ? r <= .5 ? (this.CountSlider.progress = .5, this._formScale = 1) : (this.CountSlider.progress = r, this._formScale = 1 + n * ((r - .5) / .5)) : r <= 0 ? (this.CountSlider.progress = 0, this._formScale = t) : (this.CountSlider.progress = r, this._formScale = t + o * r / .5), this.AvatarContainer.scale = this._formScale
            }, t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([k(cc.Sprite)], t.prototype, "Bg", void 0), i([k(cc.SpriteFrame)], t.prototype, "Bgs", void 0), i([k(cc.Node)], t.prototype, "LeftLayoutNode", void 0), i([k(cc.Node)], t.prototype, "RightLayoutNode", void 0), i([k(cc.Label)], t.prototype, "AngelTitle", void 0), i([k(f.default)], t.prototype, "Toggles", void 0), i([k(cc.Node)], t.prototype, "InfoContainer", void 0), i([k(cc.Node)], t.prototype, "AttrModeContainer", void 0), i([k(cc.Node)], t.prototype, "SoulModeContainer", void 0), i([k(cc.Node)], t.prototype, "DestinyModeContainer", void 0), i([k(cc.Node)], t.prototype, "UpStarModeContainer", void 0), i([k(cc.Button)], t.prototype, "LeftArrowBtn", void 0), i([k(cc.Button)], t.prototype, "RightArrowBtn", void 0), i([k(cc.Button)], t.prototype, "ReturnBtn", void 0), i([k(cc.Node)], t.prototype, "AvatarContainer", void 0), i([k(cc.Node)], t.prototype, "FavorItemContainer", void 0), i([k(cc.Button)], t.prototype, "RuleButton", void 0), i([k(cc.Button)], t.prototype, "RebornBtn", void 0), i([k(cc.Label)], t.prototype, "RebornBtnLabel", void 0), i([k(cc.Button)], t.prototype, "SkinButton", void 0), i([k(cc.Label)], t.prototype, "SkinLabel", void 0), i([k(cc.Button)], t.prototype, "AngelDescButton", void 0), i([k(cc.Label)], t.prototype, "AngelDescLabel", void 0), i([k(cc.Node)], t.prototype, "UnTouchNode", void 0), i([k(cc.Button)], t.prototype, "HideButton", void 0), i([k(cc.Label)], t.prototype, "HideLabel", void 0), i([k(P.LevelComponent)], t.prototype, "LevelComponent", void 0), i([k(cc.Button)], t.prototype, "AngelSummonBtn", void 0), i([k(cc.Sprite)], t.prototype, "AngelSummonSprite", void 0), i([k(cc.Label)], t.prototype, "AngelSummonLabel", void 0), i([k(cc.Button)], t.prototype, "AngelHandbookButton", void 0), i([k(cc.Label)], t.prototype, "AngelHandbookButtonLabel", void 0), i([k(cc.Button)], t.prototype, "FormBtn", void 0), i([k(cc.Label)], t.prototype, "FormBtnLabel", void 0), i([k(cc.Node)], t.prototype, "ToggleNode", void 0), i([k(cc.Sprite)], t.prototype, "FormToggleNodeBg", void 0), i([k(cc.Node)], t.prototype, "SliderNode", void 0), i([k(cc.Slider)], t.prototype, "CountSlider", void 0), i([k(cc.Button)], t.prototype, "BtnAdd", void 0), i([k(cc.Button)], t.prototype, "BtnReduce", void 0), i([L], t)
        }(c.BaseUIFullScreenPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AngelInfoStarComponent": "AngelInfoStarComponent",
        "../Components/AngelSoulComponent": "AngelSoulComponent",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HeroFavorItemComponent": "HeroFavorItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "./AngelInfoAttrComponent": "AngelInfoAttrComponent",
        "./AngelInfoDestinyComponent": "AngelInfoDestinyComponent"
    }],
    AngelHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bec11NHxx5Ns77NUUGBQT8o", "AngelHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomToggle"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Components/SkillItemComponent"),
            m = e("./AngelInfoAttrComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Bg = null, t.LeftLayoutNode = null, t.AngelTitle = null, t.InfoContainer = null, t.ReturnBtn = null, t.AvatarContainer = null, t.HideButton = null, t.HideLabel = null, t.FormBtn = null, t.FormBtnLabel = null, t.FormToggleNodeBg = null, t.SliderNode = null, t.CountSlider = null, t.BtnAdd = null, t.BtnReduce = null, t.AngelLevelLabel = null, t.AttackValue = null, t.CriticalValue = null, t.SkillLayout = null, t.SkillLayout2 = null, t.AngelPower = null, t.GetWayButton = null, t.GetWayLabel = null, t.TipsLabel = null, t._isHide = !1, t._isShowForm = !1, t._formToggles = [], t._selectFormIndex = 0, t._isStartMove = !1, t._formScale = 1, t.InitScale = 1, t.InitAngelFormY = 470, t.MaxMoveDistance = 2500, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CollectionPavilionPanel/Components/ChaosHeroTempleToggle", cc.Prefab), n = this.LoadDynamicAsset("CollectionPavilionPanel/Png/CollectionPavilionIcon", cc.SpriteAtlas), o = this.LoadDynamicAsset(d.BundlePath.SkillItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._togglePrefab = e[0], r._atlas = e[1], r._skillItemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.FormBtn.node.on("click", this.OnFormBtnClick, this), this.BtnAdd.node.on("click", this.OnBtnAddClick, this), this.BtnReduce.node.on("click", this.OnBtnReduceClick, this), this.CountSlider.node.on("slide", this.OnDragOver, this), this.GetWayButton.node.on("click", this.OnGetWayButtonClick, this), this.Bg.node.on(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.Bg.node.on(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.Bg.node.on(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.Bg.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this), this.FormBtnLabel.string = "angel_form_preview".ToUILocale(), this.FormToggleNodeBg.spriteFrame = this._atlas.getSpriteFrame("chaos_toggle_bg"), this.GetWayLabel.string = "angel_getway_btn".ToUILocale(), this.TipsLabel.string = "angel_tips".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._angelId = t[0], this._angelFormScaleParam = u.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, f.LevelParamType.AngelFormScaleParam), this._angelBaseConfig = u.ConfigDataComponent.Instance.GetConfigById(c.AngelBase_Config, this._angelId)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetHideNode(), this.SetAngelFormToggles(), this.SetTopInfo(), this.SetAvatar(), this.SetAngelSummonData(), this.ConfigHeroInfo(), this.ConfigSkills()
                }, t.prototype.SetHideNode = function() {
                    this.FormToggleNodeBg.node.active = this._isShowForm;
                    var e = y.default.Instance.IsGameModuleOpen(f.GameModuleType.AngelFormScale);
                    this.SliderNode.active = this._isShowForm && e, this.SetHideLabel()
                }, t.prototype.SetHideLabel = function() {
                    this.HideLabel.string = this._isHide ? "personalityCall_show".ToUILocale() : "personalityCall_hide".ToUILocale(), this.HideButton.node.active = !this._isShowForm, this.LeftLayoutNode.active = !this._isHide && !this._isShowForm, this.InfoContainer.active = !this._isHide && !this._isShowForm
                }, t.prototype.GetAngelAllForm = function(e) {
                    var t = this;
                    return this._angelAllForms || (this._angelAllForms = {}, u.ConfigDataComponent.Instance.GetArrayConfig(c.AngelStar_Config).forEach(function(e) {
                        var n, o = Math.floor(e.Id / 1e3);
                        t._angelAllForms[o] ? -1 == t._angelAllForms[o].findIndex(function(t) {
                            return t.Shape == e.AngelShape
                        }) && ((n = {}).Star = e.Id % (1e3 * o), n.Shape = e.AngelShape, t._angelAllForms[o].push(n)) : ((n = {}).Star = e.Id % (1e3 * o), n.Shape = e.AngelShape, t._angelAllForms[o] = [n])
                    })), this._angelAllForms[e]
                }, t.prototype.SetAngelFormToggles = function() {
                    var e = this;
                    this._formToggles.forEach(function(e) {
                        e.active = !1
                    }), this._isShowForm && (this.GetAngelAllForm(this._angelId).forEach(function(t, n) {
                        if (!e._formToggles[n]) {
                            var o = cc.instantiate(e._togglePrefab);
                            o.parent = e.FormToggleNodeBg.node, o.on("toggle", e.OnSwitchFormToggle, e), e._formToggles[n] = o
                        }
                        e._formToggles[n].active = !0, e._formToggles[n].getComponent(p.default).Init("Activity_Story_Attr_LevelStar".ToUILocale().Fmt(t.Star)), e._formToggles[n].name = n.toString()
                    }), this._formToggles[this._selectFormIndex] && (this._formToggles[this._selectFormIndex].getComponent(p.default).isChecked = !0))
                }, t.prototype.OnSwitchFormToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._selectFormIndex != t && (this._selectFormIndex = t, this.SetAvatar())
                }, t.prototype.SetTopInfo = function() {
                    this.AngelTitle.node.active = !0, this.AngelTitle.string = this._angelId.ToAngelTitle()
                }, t.prototype.SetAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this._isShowForm || (this.AvatarContainer.setPosition(0, this.InitAngelFormY), this.AvatarContainer.scale = this._formScale), this.AvatarContainer.destroyAllChildren(), this.ClaerAvatarPrefab(), this._isShowForm ? (t = this.GetAngelAllForm(this._angelId), e = u.ConfigDataComponent.Instance.GetConfigById(c.AngelGodAvatar_Config, t[this._selectFormIndex].Shape)) : (n = u.ConfigDataComponent.Instance.GetConfigById(c.AngelStar_Config, 1e3 * this._angelId), e = u.ConfigDataComponent.Instance.GetConfigById(c.AngelGodAvatar_Config, n.AngelShape)), o = e.UIAvatar + "/Avatar", [4, l.AssetsManager.Instance.LoadAsset(o, cc.Prefab)];
                                case 1:
                                    return r = a.sent(), this.isValid ? (o == r.name ? (this._currentAvatarPrefab = r, (i = cc.instantiate(r)).setParent(this.AvatarContainer), this._avatarAlphaTween && this._avatarAlphaTween.stop(), i.opacity = 20, this._avatarAlphaTween = cc.tween(i).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start()) : l.AssetsManager.Instance.UnloadAsset(r), [2]) : (l.AssetsManager.Instance.UnloadAsset(r), [2])
                            }
                        })
                    })
                }, t.prototype.SetAngelSummonData = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function() {
                            for (e in u.DataCenter.Instance.ActivityConfigs)
                                if (u.DataCenter.Instance.ActivityConfigs[e].Common.Type == f.ActivityType.AngelSummon && (t = u.DataCenter.Instance.ActivityConfigs[e], n = y.default.Instance.ComputeDeadTime(t.Common), u.RpcComponent.Instance.ServerTime < n)) return this._activityConfig = t, [2];
                            return [2]
                        })
                    })
                }, t.prototype.OnReturnBtnClick = function() {
                    this._isShowForm ? (this._isShowForm = !1, this._formScale = 1, this.SetHideNode(), this.SetAngelFormToggles(), this.SetAvatar()) : this.Close()
                }, t.prototype.ClaerAvatarPrefab = function() {
                    this._currentAvatarPrefab && l.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.AvatarContainer.destroyAllChildren(), this.ClaerAvatarPrefab()
                }, t.prototype.OnHideButtonClick = function() {
                    this._isHide ? this._isHide = !1 : this._isHide = !0, this.SetHideLabel()
                }, t.prototype.OnFormBtnClick = function() {
                    this._isShowForm = !0, this._selectFormIndex = 0, this._formScale = 1, this.CountSlider.progress = .5, this.SetHideNode(), this.SetAngelFormToggles(), this.SetAvatar()
                }, t.prototype.StarTouchEvent = function() {
                    this._isStartMove = !0
                }, t.prototype.StarMoveEvent = function(e) {
                    if (this._isStartMove && this._isShowForm) {
                        var t = e.getDelta(),
                            n = this.AvatarContainer.y + t.y,
                            o = this.AvatarContainer.x + t.x;
                        if (o > this.MaxMoveDistance || n > this.InitAngelFormY + this.MaxMoveDistance) return;
                        if (o < -this.MaxMoveDistance || n < this.InitAngelFormY - this.MaxMoveDistance) return;
                        this.AvatarContainer.setPosition(o, n)
                    }
                }, t.prototype.TouchEndEvent = function() {
                    this._isStartMove = !1
                }, t.prototype.OnDragOver = function() {
                    if (this._isShowForm) {
                        var e = 1 + this._angelFormScaleParam.Data[0],
                            t = 1 / (1 + this._angelFormScaleParam.Data[1]),
                            n = e - 1,
                            o = 1 - t,
                            r = this.CountSlider.progress;
                        this._formScale = r > .5 ? 1 + n * (r - .5) / .5 : t + o * r / .5, this.AvatarContainer.scale = this._formScale
                    }
                }, t.prototype.OnBtnAddClick = function() {
                    var e = 1 + this._angelFormScaleParam.Data[0],
                        t = 1 / (1 + this._angelFormScaleParam.Data[1]),
                        n = e - 1,
                        o = 1 - t,
                        r = this.CountSlider.progress + .05;
                    this.CountSlider.progress < .5 ? r >= .5 ? (this.CountSlider.progress = .5, this._formScale = 1) : (this.CountSlider.progress = r, this._formScale = t + o * r / .5) : r > 1 ? (this.CountSlider.progress = 1, this._formScale = e) : (this.CountSlider.progress = r, this._formScale = 1 + n * ((r - .5) / .5)), this.AvatarContainer.scale = this._formScale
                }, t.prototype.OnBtnReduceClick = function() {
                    var e = 1 + this._angelFormScaleParam.Data[0],
                        t = 1 / (1 + this._angelFormScaleParam.Data[1]),
                        n = e - 1,
                        o = 1 - t,
                        r = this.CountSlider.progress - .05;
                    this.CountSlider.progress > .5 ? r <= .5 ? (this.CountSlider.progress = .5, this._formScale = 1) : (this.CountSlider.progress = r, this._formScale = 1 + n * ((r - .5) / .5)) : r <= 0 ? (this.CountSlider.progress = 0, this._formScale = t) : (this.CountSlider.progress = r, this._formScale = t + o * r / .5), this.AvatarContainer.scale = this._formScale
                }, t.prototype.OnGetWayButtonClick = function() {
                    this._activityConfig ? l.UIManager.Instance.ShowUIPanel(d.PanelConfig.SummonActivityListPanel.Path, this._activityConfig.Common.GetWayId) : h.UIUtlity.ShowFloatingHint("obtainWay_none".ToUILocale())
                }, t.prototype.ConfigHeroInfo = function() {
                    var e = u.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, f.LevelParamType.AngelHandbookData);
                    this.AngelLevelLabel.string = "Lv.1";
                    var t = e && e.Data && e.Data[0] ? e.Data[0] : 0,
                        n = e && e.Data && e.Data[1] ? e.Data[1] : 0,
                        o = e && e.Data && e.Data[2] ? e.Data[2] : 0;
                    this.AngelPower.string = t.toString();
                    var r = y.default.GetHeroAttribute(f.HeroAttributeType.AngelAttack, n),
                        i = y.default.GetHeroAttribute(f.HeroAttributeType.AngelCritChance, o);
                    this.AttackValue.string = r.Value, this.CriticalValue.string = i.Value
                }, t.prototype.ConfigSkills = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function() {
                            for (this._curAngelSkills = y.default.GetAngelActiveSkills(this._angelId, 1), e = 0; e < this._curAngelSkills.length; e++) t = this._curAngelSkills[e], void 0 === (n = this.SkillLayout.children[e]) && ((n = cc.instantiate(this._skillItemPrefab)).setParent(this.SkillLayout), n.name = e.toString()), o = n.getComponent(g.default), t.SkillId > 0 ? o.Init(t.SkillId, t.Level) : t.Active ? o.Init(t.SkillId, t.Level, null, null, g.ShowSkillItemTipType.Add) : (o.Init(t.SkillId, t.Level, null, null, g.ShowSkillItemTipType.Lock), o.SetDescLabel("angel_skill_limit".ToUILocale().Fmt(t.Level), 10)), o.SetCallback(this.ClickSkillItemComponent.bind(this));
                            return this._globalSkills = y.default.GetAngelGlobalSkills(this._angelId, 0), this._globalSkills.forEach(function(e, t) {
                                var n = r.SkillLayout2.children[t];
                                void 0 === n && ((n = cc.instantiate(r._skillItemPrefab)).setParent(r.SkillLayout2), n.name = (3 + t).toString());
                                var o = n.getComponent(g.default);
                                if (e.SkillId > 0) o.Init(e.SkillId, e.Level);
                                else {
                                    var i = u.ConfigDataComponent.Instance.GetConfigById(c.AngelStar_Config, 1e3 * r._angelId + e.Level);
                                    o.Init(i.GlobalSkills[t]), o.OnIconGray(), o.SetDescLabel("angel_skill_limit_star".ToUILocale().Fmt(e.Level), 10)
                                }
                                o.SetCallback(r.ClickSkillItemComponent.bind(r))
                            }), [2]
                        })
                    })
                }, t.prototype.ClickSkillItemComponent = function(e) {
                    var t = Number(e.name);
                    if (t < 3) this._curAngelSkills[t] && (this._curAngelSkills[t].Active ? l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AngelSelectSkillPanel.Path, this._angelId, t, !0) : h.UIUtlity.ShowFloatingHint("angel_skill_limit".ToUILocale().Fmt(this._curAngelSkills[t].Level)));
                    else if (this._globalSkills[t - 3])
                        if (this._globalSkills[t - 3].Active) {
                            var n = m.default.GetAngelSkillTipDatas(this._angelId, this._globalSkills[t - 3].SkillId, 2);
                            l.UIManager.Instance.ShowUIPanel(d.PanelConfig.AngelSkillTipsPanel.Path, n, e)
                        } else {
                            h.UIUtlity.ShowFloatingHint("angel_skill_limit_star".ToUILocale().Fmt(this._globalSkills[t - 3].Level));
                            var o = t - 3;
                            this._angelBaseConfig && this._angelBaseConfig.GlobalSkills[o] && l.UIManager.Instance.ShowUIPanel(d.PanelConfig.SkillTipsPanel.Path, this._angelBaseConfig.GlobalSkills[o].Items[0], e)
                        }
                }, i([C(cc.Sprite)], t.prototype, "Bg", void 0), i([C(cc.Node)], t.prototype, "LeftLayoutNode", void 0), i([C(cc.Label)], t.prototype, "AngelTitle", void 0), i([C(cc.Node)], t.prototype, "InfoContainer", void 0), i([C(cc.Button)], t.prototype, "ReturnBtn", void 0), i([C(cc.Node)], t.prototype, "AvatarContainer", void 0), i([C(cc.Button)], t.prototype, "HideButton", void 0), i([C(cc.Label)], t.prototype, "HideLabel", void 0), i([C(cc.Button)], t.prototype, "FormBtn", void 0), i([C(cc.Label)], t.prototype, "FormBtnLabel", void 0), i([C(cc.Sprite)], t.prototype, "FormToggleNodeBg", void 0), i([C(cc.Node)], t.prototype, "SliderNode", void 0), i([C(cc.Slider)], t.prototype, "CountSlider", void 0), i([C(cc.Button)], t.prototype, "BtnAdd", void 0), i([C(cc.Button)], t.prototype, "BtnReduce", void 0), i([C(cc.Label)], t.prototype, "AngelLevelLabel", void 0), i([C(cc.Label)], t.prototype, "AttackValue", void 0), i([C(cc.Label)], t.prototype, "CriticalValue", void 0), i([C(cc.Node)], t.prototype, "SkillLayout", void 0), i([C(cc.Node)], t.prototype, "SkillLayout2", void 0), i([C(cc.Label)], t.prototype, "AngelPower", void 0), i([C(cc.Button)], t.prototype, "GetWayButton", void 0), i([C(cc.Label)], t.prototype, "GetWayLabel", void 0), i([C(cc.Label)], t.prototype, "TipsLabel", void 0), i([_], t)
            }(l.BaseUIFullScreenPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./AngelInfoAttrComponent": "AngelInfoAttrComponent"
    }],
    AngelInfoAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7a5043OsRNGV5TmbOLCSco3", "AngelInfoAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../../GamePlay/Components/Components"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../Components/SkillItemComponent"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../Components/CurrencyBarItem"),
            S = e("../../Auxiliary/GuideManager"),
            w = e("../../RedDot/RedDotManager"),
            P = e("../Components/CustomToggle"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.MaxLevelLimit = 1] = "MaxLevelLimit", e[e.StarLevelLimit = 2] = "StarLevelLimit", e[e.LevelUpToMax = 3] = "LevelUpToMax", e[e.LevelUpNormal = 4] = "LevelUpNormal"
        })(l || (l = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.CurLv = null, t.MaxLv = null, t.BattlePointLabel = null, t.TeamLabel = null, t.SingleLabel = null, t.AttackValue = null, t.CriticalValue = null, t.SingleHpkValue = null, t.SingleAtkValue = null, t.DetailBtn = null, t.SingleDetailBtn = null, t.SkillLayout = null, t.SkillLayout2 = null, t.UpLevelBtn = null, t.MaxUpLevelBtn = null, t.UpLevelIconBtn = null, t.UpLevelIconSprite = null, t.UpLevelLabel = null, t.MaxUpLevelLabel = null, t.UpLevelIconLabel = null, t.CurencyBarContainer = null, t.CurencyBars = [], t.MaxLevelHint = null, t.ToggleParent = null, t.CustomToggles = [], t.TeamAttrNode = null, t.SingleAttrNode = null, t.TeamSkillNode = null, t.SingleSkillNode = null, t._isInitial = !1, t._upLevelRequestTimes = 0, t._isRequestingLevelUp = !1, t._selectIndex = 0, t._singleSkillComp = [], t.UPLEVEL_MODE_CHANGE = 80, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(f.EventKeys.EVENT_UPHERO_TO_MAX, this.UpAngelToMax, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(f.EventKeys.EVENT_UPHERO_TO_MAX, this.UpAngelToMax, this)
            }, t.prototype.Init = function(e, t, n) {
                void 0 === n && (n = !1), this._isInitial || (this.InitUI(), this._isInitial = !0), n || (this._isRequestingLevelUp = !1, this._upLevelRequestTimes = 0), this._angel = e, this._baseUIPanel = t, this._levelUpMode = l.None, this._upToLevel = 0, this._angelBaseConfig = t.AngelBaseConfig, this._currentStarConfig = t.CurrentStarConfig, this._currentLevelConfig = t.CurrentLevelConfig, this.SetUIActive(), this.CofigLevelUpMode(), this.ConfigHeroInfo(), this.ConfigSkills(), this.ConfigPanelByMode()
            }, t.prototype.InitUI = function() {
                var e = this;
                this.DetailBtn.node.on("click", this.OnCheckDetail, this), this.SingleDetailBtn.node.on("click", this.OnCheckSingleDetailBtn, this), this.UpLevelBtn.node.on("click", this.OnLevelUp, this), this.UpLevelIconBtn.node.on("click", this.OnLevelUp, this), this.MaxUpLevelBtn.node.on("click", this.OnMaxLevelUp, this);
                var t = ["angel_team".ToUILocale(), "angel_personal".ToUILocale()];
                this.TeamLabel.string = t[0], this.SingleLabel.string = t[1], this.CustomToggles.forEach(function(n, o) {
                    n.Init(t[o]), n.node.on("toggle", e.OnSwitchToggle, e)
                })
            }, t.prototype.OnSwitchToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._selectIndex != t && (this._selectIndex = t, this.SetUIActive(), this.ConfigHeroInfo(), this.ConfigSkills())
            }, t.prototype.SetUIActive = function() {
                var e = _.default.Instance.IsGameModuleOpen(h.GameModuleType.AngelPvp),
                    t = _.default.Instance.IsGameModuleUnlock(h.GameModuleType.AngelPvp);
                this.ToggleParent.active = e && t[0], this.TeamAttrNode.active = 0 == this._selectIndex, this.TeamSkillNode.active = 0 == this._selectIndex, this.SingleAttrNode.active = 1 == this._selectIndex, this.SingleSkillNode.active = 1 == this._selectIndex
            }, t.prototype.CofigLevelUpMode = function() {
                var e = m.ConfigDataComponent.Instance.GetConfigById(d.AngelStar_Config, 1e3 * this._angel.AngelId + this._angelBaseConfig.MaxStarLevel);
                this._currentAngelLevel = this._angel.Level, this._maxLevel = e.LevelLimit, this._currentAngelLevel >= e.LevelLimit && (this._levelUpMode = l.MaxLevelLimit)
            }, t.prototype.ConfigHeroInfo = function() {
                if (this.CurLv.string = "Lv." + this._currentAngelLevel + "/", this.MaxLv.string = this._currentStarConfig.LevelLimit.toString(), 0 == this._selectIndex) {
                    this.BattlePointLabel.string = _.default.GetAngelPower(this._angel.AngelId).toString();
                    var e = _.default.GetAngelAttack(this._angel.AngelId);
                    this.AttackValue.string = e.toString();
                    var t = _.default.GetHeroAttribute(v.HeroAttributeType.AngelCritChance, this._angel.Attrs[v.HeroAttributeType.AngelCritChance]);
                    this.CriticalValue.string = t.Value
                } else if (1 == this._selectIndex) {
                    this.BattlePointLabel.string = this._angel.PersonalBattlePower.toString();
                    var n = this._angel.PersonalWarAttr[v.HeroAttributeType.Hp] || 0,
                        o = _.default.GetHeroAttribute(v.HeroAttributeType.Hp, n);
                    this.SingleHpkValue.string = o.Value;
                    var r = this._angel.PersonalWarAttr[v.HeroAttributeType.Attack] || 0,
                        i = _.default.GetHeroAttribute(v.HeroAttributeType.Attack, r);
                    this.SingleAtkValue.string = i.Value
                }
            }, t.prototype.ConfigSkills = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return null != this._skillItemPrefab ? [3, 2] : (e = this, [4, this._baseUIPanel.LoadDynamicAsset(y.BundlePath.SkillItemComponent, cc.Prefab)]);
                            case 1:
                                e._skillItemPrefab = a.sent(), a.label = 2;
                            case 2:
                                if (0 == this._selectIndex) {
                                    for (this._curAngelSkills = _.default.GetAngelActiveSkills(this._angel.AngelId, this._angel.Level), t = 0; t < this._curAngelSkills.length; t++) n = this._curAngelSkills[t], void 0 === (o = this.SkillLayout.children[t]) && ((o = cc.instantiate(this._skillItemPrefab)).setParent(this.SkillLayout), o.name = t.toString()), r = o.getComponent(C.default), n.SkillId > 0 ? r.Init(n.SkillId, n.Level) : n.Active ? r.Init(n.SkillId, n.Level, null, null, C.ShowSkillItemTipType.Add) : (r.Init(n.SkillId, n.Level, null, null, C.ShowSkillItemTipType.Lock), r.SetDescLabel("angel_skill_limit".ToUILocale().Fmt(n.Level), 10)), r.SetCallback(this.ClickSkillItemComponent.bind(this));
                                    this._globalSkills = _.default.GetAngelGlobalSkills(this._angel.AngelId, this._angel.StarLevel), this._globalSkills.forEach(function(e, t) {
                                        var n = i.SkillLayout2.children[t];
                                        void 0 === n && ((n = cc.instantiate(i._skillItemPrefab)).setParent(i.SkillLayout2), n.name = (3 + t).toString());
                                        var o = n.getComponent(C.default);
                                        e.SkillId > 0 ? o.Init(e.SkillId, e.Level) : (o.Init(e.SkillId, e.Level, null, null, C.ShowSkillItemTipType.Lock), o.SetDescLabel("angel_skill_limit_star".ToUILocale().Fmt(e.Level), 10)), o.SetCallback(i.ClickSkillItemComponent.bind(i))
                                    })
                                } else 1 == this._selectIndex && (this._singleSkillComp.forEach(function(e) {
                                    e.node.active = !1
                                }), _.default.GetAngelPersonalSkills(this._angelBaseConfig.HeroId, this._angel.Level, this._angel.StarLevel).forEach(function(e, t) {
                                    if (!i._singleSkillComp[t]) {
                                        var n = cc.instantiate(i._skillItemPrefab);
                                        n.parent = i.SingleSkillNode, i._singleSkillComp[t] = n.getComponent(C.default)
                                    }
                                    i._singleSkillComp[t].node.active = !0, i._singleSkillComp[t].Init(e.SkillId, e.Level)
                                }));
                                return [2]
                        }
                    })
                })
            }, t.prototype.ClickSkillItemComponent = function(e) {
                var t = Number(e.name);
                if (t < 3) this._curAngelSkills[t] && (this._curAngelSkills[t].Active ? c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AngelSelectSkillPanel.Path, this._angel.AngelId, t) : g.UIUtlity.ShowFloatingHint("angel_skill_limit".ToUILocale().Fmt(this._curAngelSkills[t].Level)));
                else if (this._globalSkills[t - 3])
                    if (this._globalSkills[t - 3].Active) {
                        var o = n.GetAngelSkillTipDatas(this._angel.AngelId, this._globalSkills[t - 3].SkillId, 2);
                        c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AngelSkillTipsPanel.Path, o, e)
                    } else {
                        g.UIUtlity.ShowFloatingHint("angel_skill_limit_star".ToUILocale().Fmt(this._globalSkills[t - 3].Level));
                        var r = t - 3,
                            i = p.ConfigDataComponent.Instance.GetConfigById(d.AngelBase_Config, this._angel.AngelId);
                        i && i.GlobalSkills[r] && c.UIManager.Instance.ShowUIPanel(y.PanelConfig.SkillTipsPanel.Path, i.GlobalSkills[r].Items[0], e)
                    }
            }, t.prototype.ConfigPanelByMode = function() {
                this.CurencyBarContainer.active = !1, this.ConfigLevelUpMaterials(), this.ConfigLevelUpCost(), this.ConfigMaxLevelHint(), this.ConfigLevelUpButton()
            }, t.prototype.ConfigLevelUpMaterials = function() {
                var e = m.ConfigDataComponent.Instance.GetConfigById(d.AngelStar_Config, 1e3 * this._angel.AngelId + this._angelBaseConfig.MaxStarLevel);
                if (this._angelTotalLevel = e.LevelLimit, this._currentAngelLevel >= this._angelTotalLevel) this._levelUpMode = l.MaxLevelLimit;
                else if (this._currentAngelLevel >= this._currentStarConfig.LevelLimit) this._levelUpMode = l.StarLevelLimit;
                else {
                    var t = m.ConfigCacheComponent.Instance.GetAngelMaxLevelPerStar(this._angel.AngelId),
                        n = t[this._angelBaseConfig.StarLevel];
                    this._nearStarMaxLevel = n;
                    for (var o = 0; o < t.length; o++) {
                        var r = t[o];
                        if (this._currentAngelLevel < r && r >= n) {
                            this._nearStarMaxLevel = r;
                            break
                        }
                    }
                    this.CheckLevelMaterials()
                }
            }, t.prototype.GetLevelUpMaterials = function(e) {
                for (var t = new Map, n = new Map, o = this._currentLevelConfig.Materials, r = 0; r < o.length; r++) {
                    var i = o[r].Items;
                    n.set(i[0], i[1])
                }
                var a = new Map,
                    s = m.ConfigDataComponent.Instance.GetConfigById(d.AngelLevel_Config, e).Materials;
                for (r = 0; r < s.length; r++) i = s[r].Items, a.set(i[0], i[1]);
                return a.forEach(function(e, o) {
                    var r = 0;
                    n.has(o) && (r = n.get(o)), t.set(o, e - r)
                }), t
            }, t.prototype.CheckLevelMaterials = function() {
                var e = this._nearStarMaxLevel,
                    t = this._currentAngelLevel,
                    n = !1;
                if (e - this._currentAngelLevel > 5) {
                    n = !0;
                    for (var o = (p = this.GetLevelUpMaterials(e)).keys(), r = void 0; !(r = o.next()).done;) {
                        var i = r.value,
                            a = p.get(i);
                        if (!m.DataCenter.Instance.IsItemEnough(i, a)) {
                            n = !1;
                            break
                        }
                    }
                }
                this._levelUpMode = n ? l.LevelUpToMax : l.LevelUpNormal;
                var s = this._currentAngelLevel + 1;
                this._currentAngelLevel >= this.UPLEVEL_MODE_CHANGE && (e = s);
                for (var c = Math.min(this._currentAngelLevel + 5, e), u = s; u <= c; u++) {
                    var p, d = !0;
                    for (o = (p = this.GetLevelUpMaterials(u)).keys(), r = void 0; !(r = o.next()).done;)
                        if (i = r.value, a = p.get(i), !m.DataCenter.Instance.IsItemEnough(i, a)) {
                            this._notEnoughId = i, d = !1;
                            break
                        } if (!d) break;
                    t = u
                }
                this._upToLevel = t
            }, t.prototype.ConfigLevelUpButton = function() {
                switch (this.UpLevelBtn.node.active = !1, this.MaxUpLevelBtn.node.active = !1, this.UpLevelIconBtn.node.active = !1, this._levelUpMode) {
                    case l.StarLevelLimit:
                        this.UpLevelBtn.node.active = !0;
                        break;
                    case l.LevelUpToMax:
                        g.UIUtlity.OffSpriteGray(this.UpLevelIconSprite), this.UpLevelIconBtn.node.active = !0, this.MaxUpLevelBtn.node.active = !0, this.MaxUpLevelLabel.string = "up_to_max_level".ToUILocale().Fmt("Lv." + this._nearStarMaxLevel);
                        break;
                    case l.MaxLevelLimit:
                        break;
                    default:
                        g.UIUtlity.OffSpriteGray(this.UpLevelIconSprite), this.UpLevelIconBtn.node.active = !0
                }
                var e = this._upToLevel - this._currentAngelLevel;
                e > 0 ? (this.UpLevelIconLabel.string = e.toString(), w.RedDotManager.Instance.BindNodeByResult(this.UpLevelIconBtn.node, w.RedDotManager.Instance.InstanceRedDot.AngelInfoAttrLevelBtn, !0)) : (this.UpLevelLabel.string = "up_level".ToUILocale().Fmt(""), this.UpLevelIconLabel.string = "", g.UIUtlity.OnSpriteGray(this.UpLevelIconSprite), w.RedDotManager.Instance.BindNodeByResult(this.UpLevelIconBtn.node, w.RedDotManager.Instance.InstanceRedDot.AngelInfoAttrLevelBtn, !1))
            }, t.prototype.ConfigLevelUpCost = function() {
                switch (this._levelUpMode) {
                    case l.MaxLevelLimit:
                    case l.StarLevelLimit:
                        return void(this.CurencyBarContainer.active = !1)
                }
                var e;
                this.CurencyBarContainer.active = !0, e = this._upToLevel == this._currentAngelLevel ? this._currentAngelLevel + 1 : this._upToLevel;
                for (var t, n = this.GetLevelUpMaterials(e), o = n.keys(), r = 0; !(t = o.next()).done;) {
                    var i = t.value,
                        a = n.get(i),
                        s = this.CurencyBars[r];
                    a > 0 ? (s.node.active = !0, s.Init(i, !1, void 0, a), r++) : s.node.active = !1
                }
                for (var c = r; c < this.CurencyBars.length; c++) this.CurencyBars[c].node.active = !1
            }, t.prototype.ConfigMaxLevelHint = function() {
                switch (this._levelUpMode) {
                    case l.MaxLevelLimit:
                        this.MaxLevelHint.node.active = !0, this.MaxLevelHint.string = "level_limit_reach".ToUILocale();
                        break;
                    default:
                        this.MaxLevelHint.node.active = !1
                }
            }, t.prototype.OnLevelUp = function() {
                var e = this;
                switch (this._levelUpMode) {
                    case l.StarLevelLimit:
                        g.UIUtlity.ShowHintPanel("", "starLevel_limit".ToUILocale(), "", null, "", function() {
                            e._baseUIPanel.SetPanelTab(1)
                        });
                        break;
                    default:
                        this._upToLevel > this._currentAngelLevel ? this._isRequestingLevelUp || (this._upLevelRequestTimes++, this._isRequestingLevelUp = !0, this.RequestUpgradeLevel(this._upToLevel)) : g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughId.ToItemName()))
                }
            }, t.prototype.OnMaxLevelUp = function() {
                var e = this.GetLevelUpMaterials(this._nearStarMaxLevel);
                I.UIManager.Instance.ShowUIPanel(y.PanelConfig.LevelUpConfirmPanel.Path, this._currentAngelLevel, this._nearStarMaxLevel, e)
            }, t.prototype.RequestUpgradeLevel = function(e) {
                var t = this,
                    n = new u.Req_Item_AngelUpgradeLevel;
                n.AngelId = this._angel.AngelId, n.NewLevel = e;
                var o = _.default.GetAngelPower(this._angel.AngelId),
                    r = _.default.GetAngelAttack(this._angel.AngelId),
                    i = this._angel.Attrs[v.HeroAttributeType.AngelCritChance],
                    a = this._angel.Attrs[v.HeroAttributeType.AngelCritDamageAddon],
                    s = this._angel.Attrs[v.HeroAttributeType.AngelDamageAddon];
                this._lastBattlePower = o, m.RpcComponent.Instance.CallWithoutMask(n, function() {
                    if (t._upLevelRequestTimes--, t._isRequestingLevelUp = !1, t.node.active && n.AngelId == t._angel.AngelId) {
                        t._baseUIPanel.RefreshAngelAttrMode(), t.RefreshBattlePower();
                        var e = _.default.GetAngelPower(t._angel.AngelId),
                            l = e - o,
                            c = _.default.GetAngelAttack(t._angel.AngelId) - r,
                            u = t._angel.Attrs[v.HeroAttributeType.AngelCritChance] - i,
                            p = t._angel.Attrs[v.HeroAttributeType.AngelCritDamageAddon] - a,
                            d = t._angel.Attrs[v.HeroAttributeType.AngelDamageAddon] - s,
                            h = {};
                        h[v.HeroAttributeType.AngelAttack] = c, h[v.HeroAttributeType.AngelCritChance] = u, h[v.HeroAttributeType.AngelCritDamageAddon] = p, h[v.HeroAttributeType.AngelDamageAddon] = d, I.UIManager.Instance.ShowUIPanel(y.PanelConfig.LevelUpHintPanel.Path, e, l, 0, 0, 0, h), t._upLevelRequestTimes > 0 && t.UpLevelBtn.node.active && t.OnLevelUp(), t._baseUIPanel.BindAttrToggle()
                    }
                }, function() {
                    t._isRequestingLevelUp = !1, t._upLevelRequestTimes = 0
                }, S.default.Instance.CurrentGroup)
            }, t.prototype.RefreshBattlePower = function() {
                var e = this;
                this._battlePowerTween && this._battlePowerTween.stop();
                var t = {};
                t._lastBattlePower = _.default.GetAngelPower(this._angel.AngelId);
                var n = this._lastBattlePower;
                this._battlePowerTween = cc.tween().to(.4, t, {
                    progress: function(t, o, r, i) {
                        var a = _.default.GetAngelPower(e._angel.AngelId),
                            s = i >= 1 ? a : n + Math.floor((a - n) * i);
                        e.BattlePointLabel.string = s.toString()
                    },
                    easing: "cubicOut"
                }).call(function() {
                    e._lastBattlePower = _.default.GetAngelPower(e._angel.AngelId)
                }).start()
            }, t.prototype.UpAngelToMax = function() {
                this.RequestUpgradeLevel(this._nearStarMaxLevel)
            }, t.prototype.OnCheckDetail = function() {
                I.UIManager.Instance.ShowUIPanel(y.PanelConfig.AngelAttrInfoPanel.Path, this._angel.AngelId, 0)
            }, t.prototype.OnCheckSingleDetailBtn = function() {
                var e = this,
                    t = [],
                    n = {};
                n.Title = "hero_attr_base".ToUILocale(), n.IsShowAddAttr = !0;
                var o = [];
                [v.HeroAttributeType.Attack, v.HeroAttributeType.Hp, v.HeroAttributeType.Defense, v.HeroAttributeType.Speed].forEach(function(t) {
                    var n = e._angel.PersonalWarAttr[t] || 0;
                    o.push({
                        attrId: t,
                        attrvalue: n
                    })
                }), n.AttrArray = o, t.push(n);
                var r = {};
                r.Title = "hero_attr_special".ToUILocale(), r.IsShowAddAttr = !0;
                var i = [];
                m.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, h.LevelParamType.HeroDetailAttrShowIds).Data.forEach(function(t) {
                    var n = m.ConfigDataComponent.Instance.GetConfigById(d.HeroAttribute_Config, t);
                    if (n) {
                        var o = n.Id,
                            r = e._angel.PersonalWarAttr[o] || 0;
                        i.push({
                            attrId: o,
                            attrvalue: r
                        })
                    }
                }), r.AttrArray = i, t.push(r), c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonTotalAttrPanel.Path, t)
            }, t.GetAngelSkillTipDatas = function(e, t, n) {
                var o = [],
                    r = _.default.GetAngelSkillUnlockLevel(e, t, n);
                return r && r.level && r.skillIds.forEach(function(t, i) {
                    var a = {};
                    a.SkillId = t, a.SkillLevel = i + 1, a.AngelId = e, a.IsUnlock = i + 1 <= r.level, a.IsCurrentSkill = i + 1 == r.level, a.Type = n, i + 1 > r.level && (a.Condition = _.default.GetAngelSkillUnlockCondition(e, t, n)), o.push(a)
                }), o
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, i([R(cc.Label)], t.prototype, "CurLv", void 0), i([R(cc.Label)], t.prototype, "MaxLv", void 0), i([R(cc.Label)], t.prototype, "BattlePointLabel", void 0), i([R(cc.Label)], t.prototype, "TeamLabel", void 0), i([R(cc.Label)], t.prototype, "SingleLabel", void 0), i([R(cc.Label)], t.prototype, "AttackValue", void 0), i([R(cc.Label)], t.prototype, "CriticalValue", void 0), i([R(cc.Label)], t.prototype, "SingleHpkValue", void 0), i([R(cc.Label)], t.prototype, "SingleAtkValue", void 0), i([R(cc.Button)], t.prototype, "DetailBtn", void 0), i([R(cc.Button)], t.prototype, "SingleDetailBtn", void 0), i([R(cc.Node)], t.prototype, "SkillLayout", void 0), i([R(cc.Node)], t.prototype, "SkillLayout2", void 0), i([R(cc.Button)], t.prototype, "UpLevelBtn", void 0), i([R(cc.Button)], t.prototype, "MaxUpLevelBtn", void 0), i([R(cc.Button)], t.prototype, "UpLevelIconBtn", void 0), i([R(cc.Sprite)], t.prototype, "UpLevelIconSprite", void 0), i([R(cc.Label)], t.prototype, "UpLevelLabel", void 0), i([R(cc.Label)], t.prototype, "MaxUpLevelLabel", void 0), i([R(cc.Label)], t.prototype, "UpLevelIconLabel", void 0), i([R(cc.Node)], t.prototype, "CurencyBarContainer", void 0), i([R(b.default)], t.prototype, "CurencyBars", void 0), i([R(cc.Label)], t.prototype, "MaxLevelHint", void 0), i([R(cc.Node)], t.prototype, "ToggleParent", void 0), i([R(P.default)], t.prototype, "CustomToggles", void 0), i([R(cc.Node)], t.prototype, "TeamAttrNode", void 0), i([R(cc.Node)], t.prototype, "SingleAttrNode", void 0), i([R(cc.Node)], t.prototype, "TeamSkillNode", void 0), i([R(cc.Node)], t.prototype, "SingleSkillNode", void 0), n = i([T], t)
        }(cc.Component);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/SkillItemComponent": "SkillItemComponent"
    }],
    AngelInfoDestinyComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "58efa+uhpRJvqeU+eDUucg2", "AngelInfoDestinyComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("./AngelDestinyPointModeComponent"),
            y = e("./AngelDestinyPointComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("./AngelDestinyPageComponent"),
            _ = e("./AngelDestinyLineComponent"),
            C = e("../../Components/Components"),
            v = e("../../Auxiliary/EventKeys"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TouchNode = null, t.DestinyNode = null, t.ModeBg = null, t.ModeNode = null, t.ReSetButton = null, t.RebornButtonLabel = null, t.ScaleUpButton = null, t.ScaleDownButton = null, t.LayoutNode = null, t.MapUnlockEffect = null, t.PageUnlockEffect = null, t.MaskNode = null, t.PreviewButton = null, t.PreviewLabel = null, t._isScaleUp = !0, t._selectIndex = 0, t._angelId = 0, t._angelFageConfigs = [], t._pointNodes = [], t._lineNodes = [], t._pageNodes = [], t._unlockPageId = 0, t._unlockMapId = 0, t._mapUnlockEffect = null, t._pageUnlockEffect = null, t._assest = [], t._isShowAuto = !0, t._isScaling = !1, t._isOtherAngel = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.TouchNode.on(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this.ReSetButton.node.on("click", this.ClickReSetButton, this), this.ScaleUpButton.node.on("click", this.ClickScaleUpButton, this), this.ScaleDownButton.node.on("click", this.ClickScaleDownButton, this), this.PreviewButton.node.on("click", this.OnClickPreview, this), l.Game.EventDispatcher.On(v.EventKeys.EVENT_UNLOCK_PAGE_EFFECT, this.OnSetUnlockPage, this), l.Game.EventDispatcher.On(v.EventKeys.EVENT_ANGEL_DESTINY_REBORN, this.OnSetReborn, this), l.Game.EventDispatcher.On(v.EventKeys.EVENT_ANGEL_DESTINY_AUTO_STATUS, this.OnSetAutoShow, this)
                }, t.prototype.onDisable = function() {
                    this.TouchNode.off(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this.ReSetButton.node.off("click", this.ClickReSetButton, this), this.ScaleUpButton.node.off("click", this.ClickScaleUpButton, this), this.ScaleDownButton.node.off("click", this.ClickScaleDownButton, this), l.Game.EventDispatcher.Off(v.EventKeys.EVENT_UNLOCK_PAGE_EFFECT, this.OnSetUnlockPage, this), l.Game.EventDispatcher.Off(v.EventKeys.EVENT_ANGEL_DESTINY_REBORN, this.OnSetReborn, this), l.Game.EventDispatcher.Off(v.EventKeys.EVENT_ANGEL_DESTINY_AUTO_STATUS, this.OnSetAutoShow, this)
                }, t.prototype.Init = function(e) {
                    if (this._angelModel = u.DataCenter.Instance.GetDataById(c.UserAngel_Model, e), this._isOtherAngel = !1, this._angelId != e && (this._isOtherAngel = !0, this._angelId = e, this._angelFageConfigs = n.GetAngelFatePages(e), this._angelModel && this._angelFageConfigs.length > 0)) {
                        var t = this.GetCurrentPage();
                        this._selectIndex = t
                    }
                    this.RebornButtonLabel.string = "angel_reborn_label".ToUILocale(), this.PreviewLabel.string = "PetGalleryListPanel_Total_Addtion".ToUILocale(), this.MapUnlockEffect.node.active = !1, this.PageUnlockEffect.node.active = !1, this.MaskNode.active = !1, this.SetActivePointIds(), this.SetModeBg(), this.LoadAssest(), this.SetPageNode();
                    var o = this.GetPageCanActiveData(this._angelFageConfigs[this._selectIndex].Id);
                    o[0] >= 2 && this._isShowAuto && (this._isShowAuto = !1, l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AngelDestinyQuickActivePanel.Path, o, this.RefreshDestiny.bind(this), this._angelId)), this._isOtherAngel && (this._isScaleUp = !0, this.SetScaleStatus())
                }, t.prototype.SetActivePointIds = function() {
                    var e = this;
                    this._activePointIds = {}, this._angelModel.FatePoints.forEach(function(t) {
                        t >= e._angelFageConfigs[e._selectIndex].FateIds[0] && t <= e._angelFageConfigs[e._selectIndex].FateIds[1] && (e._activePointIds[t] = !0)
                    }), this._lineIdsSet ? this._lineIdsSet.clear() : this._lineIdsSet = new Set
                }, t.prototype.SetModeBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = "AngelDestinyPanel/PNG/DestinyModeBg/" + this._angelFageConfigs[this._selectIndex].BackRes, this._bgSprite ? this._bgSprite.name == e ? [3, 2] : (l.AssetsManager.Instance.UnloadAsset(this._bgSprite), this._bgSprite = null, t = this, [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)]) : [3, 3];
                                case 1:
                                    if (t._bgSprite = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._bgSprite), [2];
                                    o.label = 2;
                                case 2:
                                    return this.ModeBg.spriteFrame = this._bgSprite, [3, 5];
                                case 3:
                                    return n = this, [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 4:
                                    if (n._bgSprite = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._bgSprite), [2];
                                    this.ModeBg.spriteFrame = this._bgSprite, o.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.LoadAssest = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._pointPrefab && this._linePrefab && this._angelAtlas ? [3, 2] : (e = l.AssetsManager.Instance.LoadAsset("AngelDestinyPanel/Component/AngelDestinyPointComponent", cc.Prefab), t = l.AssetsManager.Instance.LoadAsset("AngelDestinyPanel/Component/AngelDestinyLineComponent", cc.Prefab), n = l.AssetsManager.Instance.LoadAsset("AngelDestinyPanel/PNG/AngelDestiny", cc.SpriteAtlas), [4, Promise.all([e, t, n]).then(function(e) {
                                        o._pointPrefab = e[0], o._linePrefab = e[1], o._angelAtlas = e[2]
                                    })]);
                                case 1:
                                    if (r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._pointPrefab), l.AssetsManager.Instance.UnloadAsset(this._linePrefab), l.AssetsManager.Instance.UnloadAsset(this._angelAtlas), [2];
                                    this._assest.push(this._pointPrefab), this._assest.push(this._linePrefab), this._assest.push(this._angelAtlas), r.label = 2;
                                case 2:
                                    return this.SetModeNode(), [2]
                            }
                        })
                    })
                }, t.prototype.SetModeNode = function() {
                    var e = "AngelDestinyPanel/AngelDestinyPonitMode/AngelDestinyPointMode" + this._angelFageConfigs[this._selectIndex].FateMode;
                    this.ModeNode.children.length > 0 ? this._curModePrefab && this._curModePrefab.name == e ? this.SetPointAndLine(this.ModeNode.children[0]) : (this.ModeNode.children[0].removeAllChildren(), this.ModeNode.destroyAllChildren(), this.ClaerModePrefab(), this.LoadAngelDestinyMode(e)) : this.LoadAngelDestinyMode(e)
                }, t.prototype.LoadAngelDestinyMode = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset(e, cc.Prefab)];
                                case 1:
                                    return t = o.sent(), this.isValid ? (t.name == e ? (this._curModePrefab = t, (n = cc.instantiate(t)).parent = this.ModeNode, this.SetPointAndLine(n)) : l.AssetsManager.Instance.UnloadAsset(t), [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetPointAndLine = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, o, r, i, a, c, g, m, I, C, v, b, S, w, P = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    for (t = this._angelFageConfigs[this._selectIndex], o = e.getComponent(f.default), this._pointNodes.forEach(function(e) {
                                            e.opacity = 0
                                        }), this._lineNodes.forEach(function(e) {
                                            e.opacity = 0
                                        }), r = 0, S = t.FateIds[0]; S <= t.FateIds[1]; S++) i = u.ConfigDataComponent.Instance.GetConfigById(p.AngelFate_Config, S), this._pointNodes[r] || (a = cc.instantiate(this._pointPrefab), this._pointNodes[r] = a), this._pointNodes[r].opacity = 255, c = n.GetPointSize(i), this._pointNodes[r].getComponent(y.default).Init(i, t, c, this._angelId, this._angelAtlas), o.SetPointParent(this._pointNodes[r], r), o.SetPointAngel(), r++;
                                    if (g = 0, m = this._activePointIds[t.FateIds[1]], I = function(e, n) {
                                            var r = P.GetLineIds(e, n);
                                            if (!P._lineIdsSet.has(r)) {
                                                if (P._lineIdsSet.add(r), !P._lineNodes[g]) {
                                                    var i = cc.instantiate(P._linePrefab);
                                                    P._lineNodes[g] = i
                                                }
                                                P._lineNodes[g].parent = o.LineNode, P._lineNodes[g].opacity = 255;
                                                var a = P._lineNodes[g].getComponent(_.default);
                                                if (P._pointNodes[e - t.FateIds[0]] && P._pointNodes[n - t.FateIds[0]]) {
                                                    var s = P._pointNodes[e - t.FateIds[0]],
                                                        l = P._pointNodes[n - t.FateIds[0]],
                                                        c = s.getParent().convertToWorldSpaceAR(s.getPosition()),
                                                        u = l.getParent().convertToWorldSpaceAR(l.getPosition()),
                                                        p = o.LineNode.convertToNodeSpaceAR(c),
                                                        h = o.LineNode.convertToNodeSpaceAR(u),
                                                        f = d.default.GetDistance(p, h),
                                                        y = d.default.GetAngle(p, h),
                                                        m = cc.v2((p.x + h.x) / 2, (p.y + h.y) / 2);
                                                    a.Init(f), P._lineNodes[g].setPosition(m), P._lineNodes[g].angle = y
                                                }
                                                g++
                                            }
                                        }, m)
                                        for (C = function(e) {
                                                var t = u.ConfigDataComponent.Instance.GetConfigById(p.AngelFate_Config, e);
                                                t.AssociatedPoint.forEach(function(e) {
                                                    I(t.Id, e)
                                                })
                                            }, S = t.FateIds[0]; S <= t.FateIds[1]; S++) C(S);
                                    else
                                        for (v = function(e) {
                                                var t = u.ConfigDataComponent.Instance.GetConfigById(p.AngelFate_Config, e);
                                                b._activePointIds[t.Id] && t.AssociatedPoint.forEach(function(e) {
                                                    P._activePointIds[e] && I(t.Id, e)
                                                })
                                            }, b = this, S = t.FateIds[0]; S <= t.FateIds[1]; S++) v(S);
                                    return this._unlockMapId > 0 && this._unlockPageId == this._angelFageConfigs[this._selectIndex].FateIds[1] ? (this.MaskNode.active = !0, this._mapUnlockEffect ? [3, 2] : (w = this, [4, h.AssetsManager.Instance.LoadAsset("AngelDestinyPanel/Spine/UI_effect_mingyun_xinzhangjie", sp.SkeletonData)])) : [3, 3];
                                case 1:
                                    if (w._mapUnlockEffect = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._mapUnlockEffect), [2];
                                    this.MapUnlockEffect.skeletonData = this._mapUnlockEffect, this._assest.push(this._mapUnlockEffect), s.label = 2;
                                case 2:
                                    this.MapUnlockEffect.node.active = !0, this.MapUnlockEffect.node.scale = 1.8, this.MapUnlockEffect.setAnimation(0, "Ani_UI_effect_mingyun_xinzhangjie", !1), this.MapUnlockEffect.setCompleteListener(function() {
                                        P.MapUnlockEffect.node.active = !1, P.MaskNode.active = !1
                                    }), this._unlockMapId = 0, s.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetLineIds = function(e, t) {
                    return e > t ? t + "_" + e : e + "_" + t
                }, t.prototype.SetPageNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._pagePrefab ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset("AngelDestinyPanel/Component/AngelDestinyPageComponent")]);
                                case 1:
                                    if (e._pagePrefab = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._pagePrefab), [2];
                                    this._assest.push(this._pagePrefab), s.label = 2;
                                case 2:
                                    return this._pageNodes.forEach(function(e) {
                                        e.active = !1
                                    }), t = this._angelFageConfigs.length, n = this.GetCurrentPage(), this._angelFageConfigs.forEach(function(e, o) {
                                        if (!a._pageNodes[o]) {
                                            var r = cc.instantiate(a._pagePrefab);
                                            r.parent = a.LayoutNode, a._pageNodes[o] = r
                                        }
                                        a._pageNodes[o].active = !0, a._pageNodes[o].getComponent(I.default).Init(o, t, n, a, a._selectIndex)
                                    }), this._unlockPageId > 0 && this._unlockPageId == this._angelFageConfigs[this._selectIndex].FateIds[1] && this._angelFageConfigs[this._angelFageConfigs.length - 1].FateIds[1] != this._unlockPageId ? this._pageUnlockEffect ? [3, 4] : (o = this, [4, h.AssetsManager.Instance.LoadAsset("AngelDestinyPanel/Spine/UI_effect_mingyun_jiesuo", sp.SkeletonData)]) : [3, 5];
                                case 3:
                                    if (o._pageUnlockEffect = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._pageUnlockEffect), [2];
                                    this.PageUnlockEffect.skeletonData = this._pageUnlockEffect, this._assest.push(this._pageUnlockEffect), s.label = 4;
                                case 4:
                                    r = this._pageNodes[n].parent.convertToWorldSpaceAR(this._pageNodes[n].getPosition()), i = this.node.convertToNodeSpaceAR(r), this.PageUnlockEffect.node.active = !0, this.PageUnlockEffect.node.setPosition(i), this.PageUnlockEffect.setAnimation(0, "Ani_UI_effect_mingyun_jiesuo", !1), this.PageUnlockEffect.setCompleteListener(function() {
                                        a.PageUnlockEffect.node.active = !1
                                    }), this._unlockPageId = 0, s.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.GetAngelFatePages = function(e) {
                    var t = [],
                        n = {};
                    u.ConfigDataComponent.Instance.GetArrayConfig(p.AngelFatePage_Config).forEach(function(t) {
                        t.Angel == e && (n[t.NextPage] = t)
                    });
                    for (var o = 0; n[o];) t.push(n[o]), o = n[o].Id;
                    return t.reverse(), t
                }, t.prototype.GetCurrentPage = function() {
                    for (var e = this._angelFageConfigs.length - 1, t = this._angelFageConfigs.length - 1; t >= 0; t--) {
                        var n = this._angelFageConfigs[t];
                        if (this._angelModel.FatePoints.includes(n.FateIds[1])) return e;
                        e = t
                    }
                    return e
                }, t.GetPointSize = function(e) {
                    var t;
                    switch (e.Type) {
                        case 1:
                            t = y.AngelDestinyPointSize.Small;
                            break;
                        case 2:
                            t = y.AngelDestinyPointSize.Mid;
                            break;
                        case 3:
                            t = y.AngelDestinyPointSize.Big
                    }
                    return t
                }, t.prototype.ClaerModePrefab = function() {
                    this._curModePrefab && l.AssetsManager.Instance.UnloadAsset(this._curModePrefab), this._curModePrefab = null
                }, t.prototype.ClickReSetButton = function() {
                    this._angelModel && (this._angelModel.Level <= 1 && 0 == this._angelModel.FatePoints.length ? g.UIUtlity.ShowFloatingHint("angel_reborn_limit".ToUILocale()) : l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AngelRebornPanel.Path, this._angelModel))
                }, t.prototype.ClickScaleUpButton = function() {
                    this._isScaling || (this._isScaleUp = !0, this.SetScaleStatus())
                }, t.prototype.ClickScaleDownButton = function() {
                    this._isScaling || (this._isScaleUp = !1, this.SetScaleStatus(), this.DestinyNode.setPosition(0, 0))
                }, t.prototype.SetScaleStatus = function() {
                    this.ScaleUpButton.node.active = !this._isScaleUp, this.ScaleDownButton.node.active = this._isScaleUp, this.SetMapScaleTween()
                }, t.prototype.SetMapScaleTween = function() {
                    var e = this,
                        t = this._isScaleUp ? .55 : 1,
                        n = this._isScaleUp ? 1 : .55,
                        o = this._isScaleUp ? 1.2 : .55 * .8;
                    this._isScaling = !0, cc.tween(this.DestinyNode).call(function() {
                        e.DestinyNode.scale = t
                    }).to(.6, {
                        scale: o
                    }).to(.1, {
                        scale: n
                    }).call(function() {
                        e._isScaling = !1
                    }).start()
                }, t.prototype.OnSetUnlockPage = function(e) {
                    this._unlockPageId = e, this._unlockMapId = e
                }, t.prototype.OnSetReborn = function(e) {
                    this._isShowAuto = e, this._selectIndex = 0
                }, t.prototype.OnSetAutoShow = function(e) {
                    this._isShowAuto = e
                }, t.prototype.OnTouchMove = function(e) {
                    if (this._isScaleUp) {
                        var t = e.getDelta(),
                            n = this.DestinyNode.position.add(cc.v3(t));
                        n.x < -this.DestinyNode.width / 2 ? this.DestinyNode.x = -this.DestinyNode.width / 2 : n.x > this.DestinyNode.width / 2 ? this.DestinyNode.x = this.DestinyNode.width / 2 : this.DestinyNode.x = n.x, n.y > this.DestinyNode.height / 2 ? this.DestinyNode.y = this.DestinyNode.height / 2 : n.y < -this.DestinyNode.height / 2 ? this.DestinyNode.y = -this.DestinyNode.height / 2 : this.DestinyNode.y = n.y
                    }
                }, t.prototype.GetPageCanActiveData = function(e) {
                    var t = u.ConfigDataComponent.Instance.GetConfigById(p.AngelFatePage_Config, e);
                    if (this._angelModel.FatePoints.includes(t.FateIds[1])) return [0, [], {}];
                    for (var n = 0, o = 0, r = {}, i = [], a = {}, s = 0; s < this._angelModel.FatePoints.length; s++) this._angelModel.FatePoints[s] >= t.FateIds[0] && this._angelModel.FatePoints[s] <= t.FateIds[1] && (a[this._angelModel.FatePoints[s]] = !0, o++);
                    for (var l = function(e) {
                            var t = u.ConfigDataComponent.Instance.GetConfigById(p.AngelFate_Config, e);
                            if (!a[t.Id]) {
                                var o = !0;
                                t.Materials.forEach(function(e) {
                                    var t;
                                    t = r[e.Items[0]] ? r[e.Items[0]] + e.Items[1] : e.Items[1], C.DataCenter.Instance.IsItemEnough(e.Items[0], t) || (o = !1)
                                }), o && (n++, i.push(t.Id), t.Materials.forEach(function(e) {
                                    r[e.Items[0]] ? r[e.Items[0]] += e.Items[1] : r[e.Items[0]] = e.Items[1]
                                }))
                            }
                        }, c = t.FateIds[0]; c <= t.FateIds[1]; c++) l(c);
                    var d = i.indexOf(t.FateIds[1]);
                    if (d > -1 && n + o < t.FateIds[1] - t.FateIds[0] + 1) {
                        var h = u.ConfigDataComponent.Instance.GetConfigById(p.AngelFate_Config, t.FateIds[1]);
                        n -= 1, i.splice(d, 1), h.Materials.forEach(function(e) {
                            r[e.Items[0]] -= e.Items[1]
                        })
                    }
                    return [n, i, r]
                }, t.prototype.ClickPageButton = function(e) {
                    if (this._selectIndex != e)
                        if (e > 0 && !this._angelModel.FatePoints.includes(this._angelFageConfigs[e - 1].FateIds[1])) g.UIUtlity.ShowFloatingHint("angel_destiny_lock".ToUILocale());
                        else {
                            this._selectIndex = e;
                            var t = this.GetPageCanActiveData(this._angelFageConfigs[e].Id);
                            t[0] >= 2 ? l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AngelDestinyQuickActivePanel.Path, t, this.RefreshDestiny.bind(this), this._angelId) : this.RefreshDestiny()
                        }
                }, t.prototype.RefreshDestiny = function() {
                    this._angelModel = u.DataCenter.Instance.GetDataById(c.UserAngel_Model, this._angelId), this.SetActivePointIds(), this.SetModeBg(), this.LoadAssest(), this.SetPageNode()
                }, t.prototype.onDestroy = function() {
                    this._bgSprite && l.AssetsManager.Instance.UnloadAsset(this._bgSprite), this._assest.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this.ClaerModePrefab()
                }, t.prototype.OnClickPreview = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AngelAttrInfoPanel.Path, this._angelId, 1)
                }, i([w(cc.Node)], t.prototype, "TouchNode", void 0), i([w(cc.Node)], t.prototype, "DestinyNode", void 0), i([w(cc.Sprite)], t.prototype, "ModeBg", void 0), i([w(cc.Node)], t.prototype, "ModeNode", void 0), i([w(cc.Button)], t.prototype, "ReSetButton", void 0), i([w(cc.Label)], t.prototype, "RebornButtonLabel", void 0), i([w(cc.Button)], t.prototype, "ScaleUpButton", void 0), i([w(cc.Button)], t.prototype, "ScaleDownButton", void 0), i([w(cc.Node)], t.prototype, "LayoutNode", void 0), i([w(sp.Skeleton)], t.prototype, "MapUnlockEffect", void 0), i([w(sp.Skeleton)], t.prototype, "PageUnlockEffect", void 0), i([w(cc.Node)], t.prototype, "MaskNode", void 0), i([w(cc.Button)], t.prototype, "PreviewButton", void 0), i([w(cc.Label)], t.prototype, "PreviewLabel", void 0), n = i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AngelDestinyLineComponent": "AngelDestinyLineComponent",
        "./AngelDestinyPageComponent": "AngelDestinyPageComponent",
        "./AngelDestinyPointComponent": "AngelDestinyPointComponent",
        "./AngelDestinyPointModeComponent": "AngelDestinyPointModeComponent"
    }],
    AngelInfoStarComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "74581sO+DhJkq5G75Yxmu9p", "AngelInfoStarComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AngelConsumeHeroType = void 0;
        var l = e("./CurrencyBarItem"),
            c = e("./LevelComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("./ItemComponent"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("./CustomProgressBar"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Fixed = 1] = "Fixed", e[e.Any = 2] = "Any", e[e.Heart = 3] = "Heart", e[e.Power = 4] = "Power", e[e.Tech = 5] = "Tech", e[e.Break = 6] = "Break", e[e.Fight = 7] = "Fight"
        })(n.AngelConsumeHeroType || (n.AngelConsumeHeroType = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.PowerValue = null, t.ZeroStarIcon = null, t.CurrentLevelComponemt = null, t.NextLevelComponemt = null, t.ArrowNode = null, t.UnMaxLevelContainer = null, t.StarProgressBar = null, t.PreviewProgressBar = null, t.PointContainerLayout = null, t.LastPointIcon = null, t.InfoButton = null, t.MaterialItemContainer = null, t.CurrencyBarItem = null, t.UpStarButton = null, t.UpStarButtonLabel = null, t.TipLabel = null, t.MaxLevelHint = null, t.PROGRESS_BAR_WIDTH = 800, t._pointIconArray = [], t._previewPointArray = [], t._itemComponentArray = [], t._haveHeroSidArray = [], t._selectHeroSidArray = [], t._needHeroCountArray = [], t._needHeroStarLevelArray = [], t._consumeHeroCount = 0, t._assets = [], t._isSetPreviewIcon = !1, t._selectIndex = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.UpStarButtonLabel.string = "angel_toggle_1".ToUILocale(), this.TipLabel.string = "angel_star_tip".ToUILocale(), this.InfoButton.node.on("click", this.OnInfoButtonClick, this), this.UpStarButton.node.on("click", this.OnUpStarButtonClick, this)
            }, t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnMaterialItemClick, this), u.Game.EventDispatcher.On(p.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnMaterialItemClick), u.Game.EventDispatcher.Off(p.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback)
            }, t.prototype.Init = function(e, t) {
                this._angelModel = e, this._mainPanel = t, this._angelConfig = h.ConfigDataComponent.Instance.GetConfigById(f.AngelBase_Config, e.AngelId), this._starConfig = h.ConfigDataComponent.Instance.GetConfigById(f.AngelStar_Config, 1e3 * e.AngelId + e.StarLevel), this.PowerValue.string = I.default.GetAngelPower(e.AngelId).toString(), this.ZeroStarIcon.node.active = 0 == e.StarLevel, this.CurrentLevelComponemt.node.active = 0 != e.StarLevel, 0 == e.StarLevel ? this.ZeroStarIcon.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_orange_bg") : this.CurrentLevelComponemt.Init(e.StarLevel), this.NextLevelComponemt.node.active = e.StarLevel < this._angelConfig.MaxStarLevel, this.ArrowNode.active = e.StarLevel < this._angelConfig.MaxStarLevel, this.UnMaxLevelContainer.active = e.StarLevel < this._angelConfig.MaxStarLevel, this.MaxLevelHint.node.active = e.StarLevel == this._angelConfig.MaxStarLevel, e.StarLevel == this._angelConfig.MaxStarLevel ? this.MaxLevelHint.string = "angel_star_maxLevel_tip".ToUILocale() : (this.NextLevelComponemt.Init(e.StarLevel + 1), this.SetPoint(), this.SetMaterialItem(), this.SetRedDot())
            }, t.prototype.SetPoint = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, c;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e = this._starConfig.PointAttrs.length - 1, t = Math.floor(this.PROGRESS_BAR_WIDTH / e) - 55, n = this._angelModel.SubStarLevel > 0 ? this._angelModel.SubStarLevel - 1 : 0, this.StarProgressBar.progress = n / e, this.PointContainerLayout.spacingX = t, this._angelAtlas ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("HeroInfoPanel/PNG/AngelicGuard", cc.SpriteAtlas)];
                            case 1:
                                if (o = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(o), [2];
                                this._angelAtlas = o, this._assets.push(o), s.label = 2;
                            case 2:
                                for (r = 0; r < e; r++)(i = this._pointIconArray[r]) || ((a = new cc.Node).setParent(this.PointContainerLayout.node), i = a.addComponent(cc.Sprite), this._pointIconArray[r] = i, a.name = r.toString(), a.on(cc.Node.EventType.TOUCH_END, this.OnPointNodeClick, this), (l = new cc.Node).setParent(a), l.addComponent(cc.Sprite).spriteFrame = this._angelAtlas.getSpriteFrame("yellow_point"), this._previewPointArray[r] = l, l.active = !1), r < this._angelModel.SubStarLevel ? i.spriteFrame = this._angelAtlas.getSpriteFrame("yellow_point") : i.spriteFrame = this._angelAtlas.getSpriteFrame("little_point");
                                return this._isSetPreviewIcon || (this._isSetPreviewIcon = !0, this.LastPointIcon.spriteFrame = this._angelAtlas.getSpriteFrame("big_point"), this.LastPointIcon.node.name = e.toString(), this.LastPointIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnPointNodeClick, this), (c = new cc.Node).setParent(this.LastPointIcon.node), c.scale = 1.5, c.addComponent(cc.Sprite).spriteFrame = this._angelAtlas.getSpriteFrame("yellow_point"), this._previewPointArray[e] = c, c.active = !1), [2]
                        }
                    })
                })
            }, t.prototype.OnPointNodeClick = function(e) {
                var t = Number(e.target.name);
                if (!(t < this._angelModel.SubStarLevel)) {
                    this._selectIndex = t, this.PreviewProgressBar.progress = t / (this._starConfig.PointAttrs.length - 1), this.SetMaterialItem(), this._previewPointArray.forEach(function(e) {
                        cc.Tween.stopAllByTarget(e), e.active = !1
                    }), cc.tween(this.PreviewProgressBar.node).repeatForever(cc.tween(this.PreviewProgressBar.node).to(1, {
                        opacity: 150
                    }).to(1, {
                        opacity: 0
                    })).start();
                    for (var n = this._angelModel.SubStarLevel; n <= t; n++) {
                        var o = this._previewPointArray[n];
                        o.active = !0, cc.tween(o).repeatForever(cc.tween(o).to(1, {
                            opacity: 255
                        }).to(1, {
                            opacity: 0
                        })).start()
                    }
                }
            }, t.prototype.SetMaterialItem = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, c, p, d;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._itemPrefab ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset(g.BundlePath.ItemComponent, cc.Prefab)];
                            case 1:
                                if (e = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._itemPrefab = e, this._assets.push(e), s.label = 2;
                            case 2:
                                for (this._notEnoughId = null, t = {}, this._selectIndex = null == this._selectIndex ? this._angelModel.SubStarLevel : this._selectIndex, d = this._angelModel.SubStarLevel; d <= this._selectIndex; d++)
                                    if (this._starConfig.ConsumeFragment[d])
                                        for (n = this._starConfig.ConsumeFragment[d].Items, o = 0; o < n.length; o += 2) c = n[o], p = n[o + 1], t[c] ? t[c] += p : t[c] = p;
                                for (i in r = this._consumeHeroCount, t)(a = this._itemComponentArray[r]) || ((l = cc.instantiate(this._itemPrefab)).parent = this.MaterialItemContainer, a = l.getComponent(y.ItemComponent), this._itemComponentArray[r] = a), a.node.name = r.toString(), r++, a.node.active = !0, c = Number(i), p = t[i], a.Init({
                                    ItemId: c,
                                    Count: h.DataCenter.Instance.GetItemCount(c)
                                }, y.ItemComponentType.ItemCommon), h.DataCenter.Instance.IsItemEnough(c, p) ? (a.OffIconGray(), a.SetProgressBar(p, p)) : (this._notEnoughId = c, a.OnIconGray(), a.SetProgressBar(h.DataCenter.Instance.GetItemCount(c), p));
                                if (r < this._itemComponentArray.length)
                                    for (d = r; d < this._itemComponentArray.length; d++) this._itemComponentArray[d].node.active = !1;
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetRedDot = function() {
                _.RedDotManager.Instance.BindInstance(this.UpStarButton.node, _.RedDotManager.Instance.InstanceRedDot.AngelUpStarButton, {
                    Value1: this._angelModel.AngelId
                })
            }, t.prototype.OnMaterialItemClick = function(e, t) {
                -1 != this.MaterialItemContainer.children.indexOf(t) && (e < this._consumeHeroCount ? (this._clickMaterialIndex = e, u.UIManager.Instance.ShowUIPanel(g.PanelConfig.SelectMaterialHeroPanel.Path, this._haveHeroSidArray[e], this._selectHeroSidArray[e], this._needHeroCountArray[e], void 0, void 0, this._needHeroStarLevelArray[e])) : I.default.ShowItemGetWay(t.getComponent(y.ItemComponent).ItemId))
            }, t.prototype.OnSelectCallback = function(e) {
                this._selectHeroSidArray[this._clickMaterialIndex] = e;
                var t = this._itemComponentArray[this._clickMaterialIndex];
                t.SetProgressBar(e.length, this._needHeroCountArray[this._clickMaterialIndex]), e.length > 0 ? t.OffIconGray() : t.OnIconGray()
            }, t.prototype.OnInfoButtonClick = function() {
                u.UIManager.Instance.ShowUIPanel(g.PanelConfig.AngelUpStarAttrInfoPanel.Path, this._angelModel)
            }, t.prototype.OnUpStarButtonClick = function() {
                if (this._consumeHeroCount > 0)
                    for (var e = 0; e < this._consumeHeroCount; e++)
                        if (this._selectHeroSidArray[e].length < this._needHeroCountArray[e]) return void m.UIUtlity.ShowFloatingHint("heroPalace_replace_material_not_enough".ToUILocale());
                if (this._notEnoughId) m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughId.ToItemName()));
                else {
                    var t = this._starConfig.ConsumeItems[this._angelModel.SubStarLevel].Items;
                    if (0 == t[0] || h.DataCenter.Instance.IsItemEnough(t[0], t[1])) {
                        this._oldPower = h.DataCenter.Instance.GetIntData(C.UserDataKey.Power);
                        var n = new d.Req_Item_AngelUpgradeStar;
                        n.AngelId = this._angelModel.AngelId, n.StarLevel = this._angelModel.StarLevel, n.SubStarLevel = this._selectIndex + 1;
                        var o = [];
                        for (e = 0; e < this._selectHeroSidArray.length; e++) o[e] = new d.IntArray, o[e].Items = this._selectHeroSidArray[e];
                        n.Materials = o, h.RpcComponent.Instance.Call(n, this.UpgradeStarSucess.bind(this))
                    } else m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t[0].ToItemName()))
                }
            }, t.prototype.UpgradeStarSucess = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, c, p, d, h = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._mainPanel.UnTouchNode.active = !0, this._itemSpine ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("HeroInfoPanel/Spine/UI_effect_tianshi_wupin", sp.SkeletonData)];
                            case 1:
                                if (e = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._itemSpine = e, this._assets.push(e), s.label = 2;
                            case 2:
                                for (t = 0; t < this._itemComponentArray.length; t++)(n = this._itemComponentArray[t].node).active && ((o = new cc.Node).setParent(n), o.scale = 5 / 3, (r = o.addComponent(sp.Skeleton)).skeletonData = this._itemSpine, r.setAnimation(0, "Ani_UI_effect_tianshi_wupin", !1));
                                return this._selectIndex < this._starConfig.PointAttrs.length - 1 && !this._pointSpine ? [4, u.AssetsManager.Instance.LoadAsset("HeroInfoPanel/Spine/UI_effect_tianshi_xiao", sp.SkeletonData)] : [3, 4];
                            case 3:
                                return i = s.sent(), this.isValid ? (this._pointSpine = i, this._assets.push(i), [3, 6]) : (u.AssetsManager.Instance.UnloadAsset(i), [2]);
                            case 4:
                                return this._selectIndex != this._starConfig.PointAttrs.length - 1 || this._lastPointSpine ? [3, 6] : [4, u.AssetsManager.Instance.LoadAsset("HeroInfoPanel/Spine/UI_effect_tianshi_shengxing", sp.SkeletonData)];
                            case 5:
                                if (a = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(a), [2];
                                this._lastPointSpine = a, this._assets.push(a), s.label = 6;
                            case 6:
                                return l = cc.director.getDeltaTime(), c = this._starConfig.PointAttrs.length - 1, p = this._angelModel.SubStarLevel > 0 ? this._angelModel.SubStarLevel - 1 : 0, d = this._selectIndex, 0 == this._selectIndex ? this.SetAnimation(this._pointIconArray[0], this._pointSpine, "Ani_UI_effect_tianshi_xiao") : this.schedule(function() {
                                    p < d ? (p += 3 * l, h.StarProgressBar.progress = p / c) : (h.unscheduleAllCallbacks(), h._selectIndex < h._starConfig.PointAttrs.length - 1 ? h.SetAnimation(h._pointIconArray[h._selectIndex], h._pointSpine, "Ani_UI_effect_tianshi_xiao") : (h.SetAnimation(h.LastPointIcon, h._lastPointSpine, "Ani_UI_effect_tianshi_shengxing"), h._mainPanel.SetUpStarBlackSpine()))
                                }, l), [2]
                        }
                    })
                })
            }, t.prototype.SetAnimation = function(e, t, n) {
                var o = this,
                    r = new cc.Node;
                r.setParent(e.node), e.spriteFrame = this._angelAtlas.getSpriteFrame("yellow_point");
                var i = r.addComponent(sp.Skeleton);
                i.skeletonData = t, i.setAnimation(0, n, !1), i.setCompleteListener(function() {
                    t == o._lastPointSpine && o._mainPanel.SetStarSpine(), o._previewPointArray.forEach(function(e) {
                        cc.Tween.stopAllByTarget(e), e.active = !1
                    }), cc.Tween.stopAllByTarget(o.PreviewProgressBar.node), o.PreviewProgressBar.node.opacity = 0, o.LastPointIcon.spriteFrame = o._angelAtlas.getSpriteFrame("big_point");
                    var e = I.default.GetAngelPower(o._angelModel.AngelId);
                    u.UIManager.Instance.ShowUIPanel(g.PanelConfig.AngelUpStarSucessPanel.Path, o._angelModel, o._selectIndex), o._selectIndex = null, o._notEnoughId = null;
                    var n = e;
                    o._angelModel = h.DataCenter.Instance.GetDataById(d.UserAngel_Model, o._angelModel.AngelId);
                    var r = e - n;
                    r > 0 && u.UIManager.Instance.ShowUIPanel(g.PanelConfig.LevelUpHintPanel.Path, e, r, 0, 0, 0, {}), u.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattlePowerChangePanel.Path, o._oldPower, h.DataCenter.Instance.GetIntData(C.UserDataKey.Power)), o._mainPanel.UnTouchNode.active = !1
                })
            }, t.prototype.onDestroy = function() {
                this._assets.forEach(function(e) {
                    u.AssetsManager.Instance.UnloadAsset(e)
                }), cc.Tween.stopAll()
            }, i([w(cc.Label)], t.prototype, "PowerValue", void 0), i([w(cc.Sprite)], t.prototype, "ZeroStarIcon", void 0), i([w(c.LevelComponent)], t.prototype, "CurrentLevelComponemt", void 0), i([w(c.LevelComponent)], t.prototype, "NextLevelComponemt", void 0), i([w(cc.Node)], t.prototype, "ArrowNode", void 0), i([w(cc.Node)], t.prototype, "UnMaxLevelContainer", void 0), i([w(v.default)], t.prototype, "StarProgressBar", void 0), i([w(v.default)], t.prototype, "PreviewProgressBar", void 0), i([w(cc.Layout)], t.prototype, "PointContainerLayout", void 0), i([w(cc.Sprite)], t.prototype, "LastPointIcon", void 0), i([w(cc.Button)], t.prototype, "InfoButton", void 0), i([w(cc.Node)], t.prototype, "MaterialItemContainer", void 0), i([w(l.default)], t.prototype, "CurrencyBarItem", void 0), i([w(cc.Button)], t.prototype, "UpStarButton", void 0), i([w(cc.Label)], t.prototype, "UpStarButtonLabel", void 0), i([w(cc.Label)], t.prototype, "TipLabel", void 0), i([w(cc.Label)], t.prototype, "MaxLevelHint", void 0), i([S], t)
        }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CurrencyBarItem": "CurrencyBarItem",
        "./CustomProgressBar": "CustomProgressBar",
        "./ItemComponent": "ItemComponent",
        "./LevelComponent": "LevelComponent"
    }],
    AngelListComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d9983RG3O5PkKAyoTzgiwCZ", "AngelListComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AngelListComponentShowType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/SkillItemComponent"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("./AngelInfoAttrComponent"),
            C = e("../../Components/Components"),
            v = e("../Components/LevelComponent"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.ShowAngel = 0] = "ShowAngel", e[e.GrayAngel = 1] = "GrayAngel", e[e.CommoningSoon = 2] = "CommoningSoon"
        })(l = n.AngelListComponentShowType || (n.AngelListComponentShowType = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.AngelNode = null, t.GrayNode = null, t.MaskNode = null, t.AngelAvatar = null, t.InfoNode = null, t.Name = null, t.Power = null, t.CurLv = null, t.MaxLv = null, t.AttrDetailButton = null, t.SkillLayoutNode = null, t.SoulLayoutNode = null, t.DetailButton = null, t.DetailLabel = null, t.LockLabel = null, t.CommonSoonNode = null, t.CommonSoonLabel = null, t.ReddotNode = null, t.UnlockButton = null, t.UnlockLabel = null, t.LevelComponent = null, t._skillNodes = [], t._soulNodes = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.AttrDetailButton.node.on("click", this.ClikcAttrDetailButton, this), this.DetailButton.node.on("click", this.ClikcDetailButton, this), this.UnlockButton.node.on("click", this.ClikcUnlockButton, this), this.node.on("click", this.ClickSelf, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.AttrDetailButton.node.off("click", this.ClikcAttrDetailButton, this), this.DetailButton.node.off("click", this.ClikcDetailButton, this), this.UnlockButton.node.off("click", this.ClikcUnlockButton, this), this.node.on("click", this.ClickSelf, this)
            }, t.prototype.Init = function(e, t, n) {
                switch (this._angelId = e, this._type = t, this._instance = n, this.AngelNode.active = !1, this.CommonSoonNode.active = !1, this.InfoNode.active = !1, this.LockLabel.node.active = !1, this.ReddotNode.active = !1, this.UnlockButton.node.active = !1, this._type) {
                    case l.ShowAngel:
                        this._angelModel = u.DataCenter.Instance.GetDataById(d.UserAngel_Model, this._angelId), this._angelBaseConfig = u.ConfigDataComponent.Instance.GetConfigById(p.AngelBase_Config, this._angelModel.AngelId), this._angelStarConfig = u.ConfigDataComponent.Instance.GetConfigById(p.AngelStar_Config, 1e3 * this._angelModel.AngelId + this._angelModel.StarLevel), this.SetShowAngelNode();
                        break;
                    case l.GrayAngel:
                        this.SetShowGrayAngelNode();
                        break;
                    case l.CommoningSoon:
                        this.SetShowCommingSoonNode()
                }
            }, t.prototype.SetShowAngelNode = function() {
                this.AngelNode.active = !0, this.InfoNode.active = !0, this.DetailLabel.string = "angel_detail".ToUILocale();
                var e = u.ConfigDataComponent.Instance.GetConfigById(p.AngelGodAvatar_Config, this._angelStarConfig.AngelShape);
                this.SetAvatar(e.UIAvatar, !1), this.SetGrayNode(!1), this.SetAngelInfo(), this.SetSkillNodes(), this.SetSoulNodes()
            }, t.prototype.SetShowGrayAngelNode = function() {
                this.AngelNode.active = !0, this.LockLabel.node.active = !0, this.UnlockLabel.string = "common_unlock".ToUILocale();
                var e = u.ConfigDataComponent.Instance.GetConfigById(p.AngelBase_Config, this._angelId);
                if (e.Unlock.length > 0) switch (e.Unlock[0]) {
                    case 1:
                        this.LockLabel.string = "angel_unlock_module".ToUILocale();
                        break;
                    case 2:
                        this.LockLabel.string = "angel_unlock_hero".ToUILocale().Fmt(e.Unlock[1], e.Unlock[2]);
                        break;
                    case 3:
                        var t = this.GetUnlockData();
                        t[0] && (this.UnlockButton.node.active = !0), this.LockLabel.string = "angel_unlock_item".ToUILocale().Fmt(t[1])
                } else this.LockLabel.string = "angel_not_get".ToUILocale().Fmt(this._angelId.ToAngelTitle());
                this.SetAvatar(e.UIAvatar, !0), this.SetGrayNode(!0)
            }, t.prototype.GetUnlockData = function() {
                for (var e = !0, t = "", n = u.ConfigDataComponent.Instance.GetConfigById(p.AngelBase_Config, this._angelId), o = 1; o < n.Unlock.length; o += 2) C.DataCenter.Instance.IsItemEnough(n.Unlock[o], n.Unlock[o + 1]) || (e = !1), o == n.Unlock.length - 2 ? t += "{0}*{1}".Fmt(n.Unlock[o + 1], n.Unlock[o].ToItemName()) : t += "{0}*{1}\u3001".Fmt(n.Unlock[o + 1], n.Unlock[o].ToItemName());
                return [e, t]
            }, t.prototype.SetShowCommingSoonNode = function() {
                this.CommonSoonNode.active = !0, this.CommonSoonLabel.string = "angel_wait".ToUILocale()
            }, t.prototype.SetAngelInfo = function() {
                var e = u.ConfigDataComponent.Instance.GetConfigById(p.AngelStar_Config, 1e3 * this._angelModel.AngelId + this._angelBaseConfig.MaxStarLevel);
                this.Name.string = this._angelModel.AngelId.ToAngelTitle(), this.Power.string = g.default.GetAngelPower(this._angelModel.AngelId).toString(), this.CurLv.string = "Lv." + this._angelModel.Level, this.MaxLv.string = "/" + e.LevelLimit, this.LevelComponent.Init(this._angelModel.StarLevel, 0, v.StarLayoutMode.Custom)
            }, t.prototype.SetSkillNodes = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this._skillItemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(h.BundlePath.SkillItemComponent, cc.Prefab)]);
                            case 1:
                                if (e._skillItemPrefab = i.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._skillItemPrefab), [2];
                                i.label = 2;
                            case 2:
                                for (t = 0; t < 3; t++) this._skillNodes[t] || ((n = cc.instantiate(this._skillItemPrefab)).name = t.toString(), n.parent = this.SkillLayoutNode, this._skillNodes[t] = n), o = this._skillNodes[t].getComponent(y.default), (r = g.default.GetAngelActiveSkills(this._angelModel.AngelId, this._angelModel.Level))[t] && (r[t].SkillId > 0 ? o.Init(r[t].SkillId, r[t].Level) : r[t].Active ? o.Init(r[t].SkillId, r[t].Level, null, null, y.ShowSkillItemTipType.Add) : (o.Init(r[t].SkillId, r[t].Level, null, null, y.ShowSkillItemTipType.Lock), o.SetDescLabel("angel_skill_limit".ToUILocale().Fmt(r[t].Level), 10)), o.SetCallback(this.ClickSkill.bind(this)));
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetSoulNodes = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)]);
                            case 1:
                                if (e._itemPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                s.label = 2;
                            case 2:
                                for (t = g.default.GetAngelSouls(this._angelId), n = 0; n < 5; n++) this._soulNodes[n] || ((o = cc.instantiate(this._itemPrefab)).name = n.toString(), o.parent = this.SoulLayoutNode, this._soulNodes[n] = o), r = this._soulNodes[n].getComponent(m.ItemComponent), t[n] && (t[n].Active ? t[n].SkillId > 0 ? (i = u.DataCenter.Instance.GetDataById(d.UserGodSoul_Model, t[n].SkillId), r.Init({
                                    ItemId: i.ItemId
                                }, m.ItemComponentType.ItemCommon), a = C.ConfigDataComponent.Instance.GetConfigById(p.AngelGodSoul_Config, i.ItemId), r.SetLeftTopTag(!0, f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg6"), a.Level)) : (r.SetItemSimpleState(), r.SetAddFlagState(!0)) : (r.SetItemSimpleState(), r.SetLockFlag(!0, "lock_gold")));
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetAvatar = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this.AngelAvatar.destroyAllChildren(), this.ClaerAvatarPrefab(), n = e + "/Avatar", [4, c.AssetsManager.Instance.LoadAsset(n, cc.Prefab)];
                            case 1:
                                return o = i.sent(), this.isValid ? n != o.name ? [3, 6] : (this._currentAvatarPrefab = o, (r = cc.instantiate(o)).opacity = 0, r.setParent(this.AngelAvatar), t ? (r.getComponent(sp.Skeleton).clearTracks(), [4, f.UIUtlity.OnSpineGray(this.AngelAvatar)]) : [3, 3]) : (c.AssetsManager.Instance.UnloadAsset(o), [2]);
                            case 2:
                                return i.sent(), r.opacity = 255, [3, 5];
                            case 3:
                                return r.getComponent(sp.Skeleton).clearTracks(), r.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), [4, f.UIUtlity.OffSpineGray(this.AngelAvatar)];
                            case 4:
                                i.sent(), r.opacity = 255, i.label = 5;
                            case 5:
                                return [3, 7];
                            case 6:
                                c.AssetsManager.Instance.UnloadAsset(o), i.label = 7;
                            case 7:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetGrayNode = function(e) {
                e ? f.UIUtlity.OnNodeGray(this.GrayNode) : f.UIUtlity.OffNodeGray(this.GrayNode)
            }, t.prototype.ClaerAvatarPrefab = function() {
                this._currentAvatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
            }, t.prototype.SetReddot = function(e) {
                this.ReddotNode.active = e
            }, t.prototype.ClikcAttrDetailButton = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelAttrInfoPanel.Path, this._angelId, 0)
            }, t.prototype.ClikcDetailButton = function() {
                var e = this.GetUnlockAngelIds();
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelGuardInfoPanel.Path, this._angelId, e)
            }, t.prototype.ClikcUnlockButton = function() {
                var e = this,
                    t = this.GetUnlockData(),
                    n = "angel_unlock_hint".ToUILocale().Fmt(t[1]);
                f.UIUtlity.ShowHintPanel("", n, "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                    var t = new d.Req_Item_AngelUnlock;
                    t.AngelId = e._angelId, u.RpcComponent.Instance.Call(t, function() {
                        f.UIUtlity.ShowFloatingHint("angel_unlocked".ToUILocale().Fmt(e._angelId.ToAngelTitle())), e._instance.SetAngelList()
                    })
                })
            }, t.prototype.ClickSelf = function() {
                this._type == l.ShowAngel ? this.ClikcDetailButton() : this._type == l.GrayAngel && c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelHandbookPanel.Path, this._angelId)
            }, t.prototype.ClickSkill = function(e) {
                var t = Number(e.name),
                    n = g.default.GetAngelActiveSkills(this._angelModel.AngelId, this._angelModel.Level);
                if (n[t])
                    if (n[t].SkillId > 0) {
                        var o = _.default.GetAngelSkillTipDatas(this._angelId, n[t].SkillId, 1);
                        c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelSkillTipsPanel.Path, o, e)
                    } else if (n[t].Active) {
                    var r = this.GetUnlockAngelIds();
                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelGuardInfoPanel.Path, this._angelId, r)
                } else f.UIUtlity.ShowFloatingHint("angel_skill_limit".ToUILocale().Fmt(n[t].Level))
            }, t.prototype.OnItemClick = function(e, t) {
                if (-1 != this.SoulLayoutNode.children.indexOf(t)) {
                    var n = g.default.GetAngelSouls(this._angelId);
                    if (n[e])
                        if (n[e].Active)
                            if (n[e].SkillId > 0) f.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t);
                            else {
                                var o = this.GetUnlockAngelIds();
                                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelGuardInfoPanel.Path, this._angelId, o)
                            }
                    else f.UIUtlity.ShowFloatingHint("angel_destiny_unlock".ToUILocale().Fmt(n[e].Level))
                }
            }, t.prototype.GetUnlockAngelIds = function() {
                var e = [];
                return u.ConfigDataComponent.Instance.GetArrayConfig(p.AngelBase_Config).forEach(function(t) {
                    u.DataCenter.Instance.GetDataById(d.UserAngel_Model, t.Id) && e.push(t.Id)
                }), e
            }, t.prototype.onDestroy = function() {
                this.ClaerAvatarPrefab(), this._skillItemPrefab && c.AssetsManager.Instance.UnloadAsset(this._skillItemPrefab), this._itemPrefab && c.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
            }, i([w(cc.Node)], t.prototype, "AngelNode", void 0), i([w(cc.Node)], t.prototype, "GrayNode", void 0), i([w(cc.Node)], t.prototype, "MaskNode", void 0), i([w(cc.Node)], t.prototype, "AngelAvatar", void 0), i([w(cc.Node)], t.prototype, "InfoNode", void 0), i([w(cc.Label)], t.prototype, "Name", void 0), i([w(cc.Label)], t.prototype, "Power", void 0), i([w(cc.Label)], t.prototype, "CurLv", void 0), i([w(cc.Label)], t.prototype, "MaxLv", void 0), i([w(cc.Button)], t.prototype, "AttrDetailButton", void 0), i([w(cc.Node)], t.prototype, "SkillLayoutNode", void 0), i([w(cc.Node)], t.prototype, "SoulLayoutNode", void 0), i([w(cc.Button)], t.prototype, "DetailButton", void 0), i([w(cc.Label)], t.prototype, "DetailLabel", void 0), i([w(cc.Label)], t.prototype, "LockLabel", void 0), i([w(cc.Node)], t.prototype, "CommonSoonNode", void 0), i([w(cc.Label)], t.prototype, "CommonSoonLabel", void 0), i([w(cc.Node)], t.prototype, "ReddotNode", void 0), i([w(cc.Button)], t.prototype, "UnlockButton", void 0), i([w(cc.Label)], t.prototype, "UnlockLabel", void 0), i([w(v.LevelComponent)], t.prototype, "LevelComponent", void 0), i([S], t)
        }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./AngelInfoAttrComponent": "AngelInfoAttrComponent"
    }],
    AngelListPanelComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e34ccebxTxA6LBd9vKfBom7", "AngelListPanelComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./AngelListComponent"),
            f = e("../../RedDot/RedDotDataHandler"),
            y = e("../../../Util/TimeUtil"),
            g = e("../Components/AsyncLayout"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Rule = null, t.AsyncLayout = null, t._angelListNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.Rule.node.on("click", this.ClickRule, this)
                }, t.prototype.onDisable = function() {
                    this.Rule.node.off("click", this.ClickRule, this)
                }, t.prototype.Init = function() {
                    this.Title.string = "angel_toggle_name1".ToUILocale(), this.SetAngelList()
                }, t.prototype.SetAngelList = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._angelDatas = this.GetAngelListData(), this._angelListNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._angelDatas.length > 0 ? this._angelItemPrefab ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset("HeroInfoPanel/Components/AngelListComponent", cc.Prefab)]) : [3, 3];
                                case 1:
                                    if (e._angelItemPrefab = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._angelItemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    this._isInit || (this.AsyncLayout.Init(this._angelItemPrefab, this.UpdateListItem.bind(this), !1, 1), this._isInit = !0), this.AsyncLayout.RenderLayout(this._angelDatas.length), t.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.UpdateListItem = function(e, t) {
                    var n = e.getComponent(h.default),
                        o = this._angelDatas[t];
                    if (n.Init(o.AngelId, o.Type, this), o.Type == h.AngelListComponentShowType.ShowAngel) {
                        var r = f.RedDotDataHandler.Instance.RefreshAngel({
                            Value1: o.AngelId
                        });
                        n.SetReddot(r)
                    }
                }, t.prototype.ClickRule = function() {
                    var e = {
                        name: "angel_list_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["angel_list_rule_content".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.GetAngelListData = function() {
                    var e = [];
                    return c.ConfigDataComponent.Instance.GetArrayConfig(u.AngelBase_Config).forEach(function(t) {
                        if (!t.AvailableStartTime || y.TimeUtil.StrToTime(t.AvailableStartTime) <= c.RpcComponent.Instance.ServerTime) {
                            var n = c.DataCenter.Instance.GetDataById(p.UserAngel_Model, t.Id),
                                o = {};
                            o.AngelId = t.Id, o.Type = n ? h.AngelListComponentShowType.ShowAngel : h.AngelListComponentShowType.GrayAngel, e.push(o)
                        }
                    }), e.push({
                        AngelId: 0,
                        Type: h.AngelListComponentShowType.CommoningSoon
                    }), e.sort(function(e, t) {
                        return e.Type == t.Type ? e.AngelId - t.AngelId : e.Type - t.Type
                    }), e
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._angelItemPrefab)
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Button)], t.prototype, "Rule", void 0), i([_(g.default)], t.prototype, "AsyncLayout", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AngelListComponent": "AngelListComponent"
    }],
    AngelPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1c6adtJdSVFKLpj90jxeu4/", "AngelPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AngelPanelPageType = n.AngelPanelComponentType = void 0;
        var l, c, u, p = e("../../../EZFramework/EZFramework"),
            d = e("../../../Consts/Consts"),
            h = e("../../Components/Components"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../RedDot/RedDotManager"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Components/CustomToggle"),
            I = e("./AngelListPanelComponent"),
            _ = e("../../Auxiliary/GuideManager"),
            C = e("../../Auxiliary/ModuleGuideManager"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../Components/PanelBottomToggles");
        (function(e) {
            e[e.Pet = 0] = "Pet", e[e.AngelList = 1] = "AngelList"
        })(l || (l = {})),
        function(e) {
            e[e.AngelList = 1] = "AngelList"
        }(c = n.AngelPanelComponentType || (n.AngelPanelComponentType = {})),
        function(e) {
            e[e.Pet = 0] = "Pet"
        }(u = n.AngelPanelPageType || (n.AngelPanelPageType = {}));
        var w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.MidNode = null, t.RuleButton = null, t.TitleLabel = null, t.ToggleContent = null, t.ReturnButton = null, t.PanelBottomToggles = null, t._toggles = [], t._customToggles = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(v.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(v.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("Buttons/Toggle2", cc.Prefab)];
                                case 1:
                                    return t._togglePrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function() {
                    var t;
                    for (var n in e.prototype.InitData.call(this), this._allPageDatas = ((t = {})[u.Pet] = {
                            PageType: u.Pet,
                            GameModule: d.GameModuleType.Pet,
                            PrefabPath: "HeroPetPanel/PetListPage",
                            Name: "pet",
                            RuleDescKey: "pet_ruleDesc",
                            RedDotNode: y.RedDotManager.Instance.RedDot.PetToggleNode
                        }, t), this._openPageDatas = [], this._allPageDatas) g.default.Instance.IsGameModuleOpen(this._allPageDatas[n].GameModule) && this._openPageDatas.push(this._allPageDatas[n]);
                    this._curPageIndex = 0
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetToggles(), this._customToggles[this._curPageIndex].isChecked = !0), this.SetPage(this._curPageIndex), this.BindToggleRedDot()
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this._openPageDatas.forEach(function(t, n) {
                        var o = e._customToggles[n];
                        o || ((o = cc.instantiate(e._togglePrefab).getComponent(m.default)).node.parent = e.ToggleContent, o.node.on("toggle", e.OnSwitchToggle, e), e._customToggles[n] = o), o.node.active = !0, o.node.name = n.toString();
                        var r = g.default.Instance.IsGameModuleUnlock(t.GameModule);
                        o.Init(t.Name.ToUILocale()), r[0] ? o.SetInteractable(!0) : o.SetInteractable(!1, r[1])
                    });
                    for (var t = this._openPageDatas.length; t < this._customToggles.length; t++) this._customToggles[t].node.active = !1;
                    this.PanelBottomToggles.RefreshUIStyle()
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number(e.node.name);
                    this._curPageIndex != t && (this._curPageIndex = t, this.SetPage(t))
                }, t.prototype.SetPage = function(e) {
                    this.TitleLabel.string = this._openPageDatas[e].Name.ToUILocale(), this.ShowPage(this._openPageDatas[e].PrefabPath)
                }, t.prototype.BindToggleRedDot = function() {
                    var e = this;
                    this._openPageDatas.forEach(function(t, n) {
                        y.RedDotManager.Instance.Bind(e._customToggles[n].node, t.RedDotNode)
                    })
                }, t.prototype.InitNodes = function() {
                    this._angelListPanel.node.active = !1
                }, t.prototype.SetMidNode = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    if (this._isFirstSet) return this._isFirstSet = !1, [2];
                                    switch (this._selectType) {
                                        case c.AngelList:
                                            return [3, 1]
                                    }
                                    return [3, 3];
                                case 1:
                                    return [4, this.SetAngelListNode()];
                                case 2:
                                    return e.sent(), this.SetAngelGuide(), [3, 4];
                                case 3:
                                    return [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetAngelListNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._angelListPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroInfoPanel/AngelGuardPanel/AngelListPanelComponent", cc.Prefab)]);
                                case 1:
                                    if (e._angelListPrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._angelListPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._angelListPanel || ((t = cc.instantiate(this._angelListPrefab)).setParent(this.MidNode), this._angelListPanel = t.getComponent(I.default)), this.InitNodes(), this._angelListPanel.node.active = !0, this._angelListPanel.Init(), [2]
                            }
                        })
                    })
                }, t.prototype.OnToggleClick = function(e) {
                    var t = Number(e.node.name);
                    this._selectType != t && (this._selectType = t, this.SetMidNode())
                }, t.prototype.BindRedDotUI = function() {
                    this._toggles.forEach(function(e) {
                        var t = e.GetData();
                        if (t) switch (t.Type) {
                            case c.AngelList:
                                y.RedDotManager.Instance.Bind(e.node, y.RedDotManager.Instance.RedDot.AngelToggleNode, -30, 70)
                        }
                    })
                }, t.prototype.ShowModuleGuide = function() {
                    _.default.Instance.IsInGuide || this._toggles.forEach(function(e) {
                        var t = e.GetData();
                        if (t) switch (t.Type) {
                            case c.AngelList:
                                var n = C.default.instance.GetNextGuideModule();
                                n > 0 && n == d.GameModuleType.Angel ? C.default.instance.AddFingerNode(e.node, 80) : C.default.instance.RemoveFingerNode(e.node)
                        }
                    })
                }, t.prototype.SetAngelGuide = function() {
                    if (C.default.instance.CheckNeedRequestGameModule(d.GameModuleType.Angel)) {
                        var e = new f.Req_Player_CompleteGameModuleGuide;
                        e.Id = d.GameModuleType.Angel, h.RpcComponent.Instance.Call(e, function() {
                            p.Game.EventDispatcher.Emit(v.EventKeys.EVENT_REFRESH_GUIDE_MODULE)
                        })
                    }
                }, t.prototype.OnRuleButtonClick = function() {
                    b.UIUtlity.ShowRulePanel({
                        name: "ActivityBeatWatermelon_Rule_Title".ToUILocale(),
                        titles: ["ActivityBeatWatermelon_Rule_Title".ToUILocale()],
                        contents: [this._openPageDatas[this._curPageIndex].RuleDescKey.ToUILocale()]
                    })
                }, t.prototype.OnReturnButtonClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, i([A(cc.Node)], t.prototype, "MidNode", void 0), i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.Label)], t.prototype, "TitleLabel", void 0), i([A(cc.Node)], t.prototype, "ToggleContent", void 0), i([A(cc.Button)], t.prototype, "ReturnButton", void 0), i([A(S.default)], t.prototype, "PanelBottomToggles", void 0), i([P], t)
            }(p.BaseUIFullScreenFrame);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/PanelBottomToggles": "PanelBottomToggles",
        "./AngelListPanelComponent": "AngelListPanelComponent"
    }],
    AngelPveComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e690fyzzlhAL4nJ9OhqdskY", "AngelPveComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../Components/ItemComponent"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("./AngelPvePanel"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Floor = null, t.Title = null, t.Recommended = null, t.Power = null, t.RewardContent = null, t.ChallengeButton = null, t.ChallengeLabel = null, t.SweepButton = null, t.SweepLabel = null, t.CloseButton = null, t.CloseLabel = null, t.MaskNode = null, t._itemComponents = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Recommended.string = "elementTrial_recommond".ToUILocale(), this.ChallengeLabel.string = "HolyRelic_challenge".ToUILocale(), this.SweepLabel.string = "dailyInstance_mop".ToUILocale(), this.CloseLabel.string = "dailyInstance_unopen".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.SweepButton.node.on("click", this.OnSweepButtonClick, this), a.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.ChallengeButton.node.off("click", this.OnChallengeButtonClick, this), this.SweepButton.node.off("click", this.OnSweepButtonClick, this), a.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t) {
                    this._config = e, this._itemPrefab = t, this.SetLevelInfo(), this.SetRewards(), this.SetButtons()
                }, t.prototype.SetLevelInfo = function() {
                    this.Floor.string = "stage_index".ToUILocale().Fmt(this._config.Id), this.Power.string = this._config.Power.toString(), this._levelId = s.DataCenter.Instance.GetIntData(u.UserDataKey.StarLightSecretProgress), this.Title.string = this._levelId >= this._config.Id ? "angelPve_get_way".ToUILocale() : "angelPve_first_get".ToUILocale(), this.MaskNode.active = this._levelId + 1 < this._config.Id
                }, t.prototype.SetRewards = function() {
                    var e = this,
                        t = this._levelId >= this._config.Id ? this._config.SweepRewards : this._config.FirstRewards;
                    if (t.forEach(function(t, n) {
                            if (!e._itemComponents[n]) {
                                var o = cc.instantiate(e._itemPrefab);
                                o.parent = e.RewardContent, o.y = -20, e._itemComponents[n] = o.getComponent(c.ItemComponent)
                            }
                            e._itemComponents[n].node.active = !0, e._itemComponents[n].Init({
                                ItemId: t.Items[0],
                                Count: t.Items[1]
                            })
                        }), t.length < this._itemComponents.length)
                        for (var n = t.length; n < this._itemComponents.length; n++) this._itemComponents[n].node.active = !1
                }, t.prototype.SetButtons = function() {
                    this.ChallengeButton.node.active = this._levelId + 1 == this._config.Id, this.SweepButton.node.active = this._levelId >= this._config.Id, this.CloseButton.node.active = this._levelId + 1 < this._config.Id
                }, t.prototype.OnChallengeButtonClick = function() {
                    s.DataCenter.Instance.GetIntData(u.UserDataKey.StarLightSecretTodayCount) >= s.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarLightSecretLandDailyCount") ? p.UIUtlity.ShowFloatingHint("angelPve_today_no_count".ToUILocale()) : d.default.StartBattle(this._config.Id)
                }, t.prototype.OnSweepButtonClick = function() {
                    if (s.DataCenter.Instance.GetIntData(u.UserDataKey.StarLightSecretTodayCount) >= s.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarLightSecretLandDailyCount")) p.UIUtlity.ShowFloatingHint("angelPve_today_no_count".ToUILocale());
                    else {
                        var e = new l.Req_Map_StarLightSecretLandSweep;
                        e.Id = this._config.Id, e.Count = 1, s.RpcComponent.Instance.Call(e, function(e) {
                            p.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContent.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t)
                }, i([g(cc.Label)], t.prototype, "Floor", void 0), i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "Recommended", void 0), i([g(cc.Label)], t.prototype, "Power", void 0), i([g(cc.Node)], t.prototype, "RewardContent", void 0), i([g(cc.Button)], t.prototype, "ChallengeButton", void 0), i([g(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([g(cc.Button)], t.prototype, "SweepButton", void 0), i([g(cc.Label)], t.prototype, "SweepLabel", void 0), i([g(cc.Button)], t.prototype, "CloseButton", void 0), i([g(cc.Label)], t.prototype, "CloseLabel", void 0), i([g(cc.Node)], t.prototype, "MaskNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./AngelPvePanel": "AngelPvePanel"
    }],
    AngelPvePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ff52a/iindKtoN7WMqfCxkM", "AngelPvePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("./AngelPveComponent"),
            _ = e("../Battle/BattleData"),
            C = e("../Battle/BattleManager"),
            v = e("./ShopUIPanel"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.CountRichText = null, t.CustomLayout = null, t.RankButton = null, t.RankLabel = null, t.ShopButton = null, t.ShopLabel = null, t.ReturnButton = null, t._initCustomLayout = !0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("AngelPvePanel/Components/AngelPveComponent"), this.LoadDynamicAsset(y.BundlePath.ItemComponent)]).then(function(e) {
                                        t._listItemPrefab = e[0], t._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "angelPve_title".ToUILocale(), this.RankLabel.string = "holyArea_rank".ToUILocale(), this.ShopLabel.string = "exchange_shop".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetCount(), this.SetList()
                }, t.prototype.SetCount = function() {
                    var e = c.DataCenter.Instance.GetIntData(m.UserDataKey.StarLightSecretTodayCount),
                        t = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarLightSecretLandDailyCount"),
                        n = t - e > 0 ? t - e : 0,
                        o = n > 0 ? "#00ff00" : "#ff0000";
                    this.CountRichText.string = "angelPve_today_count".ToUILocale().Fmt(o, n, t)
                }, t.prototype.SetList = function() {
                    this._initCustomLayout && (this.CustomLayout.Init(this._listItemPrefab), this._initCustomLayout = !1), this._configs = c.ConfigDataComponent.Instance.GetArrayConfig(u.StarLightSecretLandMap_Config);
                    var e = c.DataCenter.Instance.GetIntData(m.UserDataKey.StarLightSecretProgress),
                        t = this._configs.findIndex(function(t) {
                            return t.Id == e
                        }),
                        n = t > -1 ? t : 0;
                    this.CustomLayout.RenderLayOut(this._configs.length, n)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(I.default).Init(n._configs[t], n._itemPrefab)
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "angelPve_rule_title".ToUILocale(),
                        titles: ["angelPve_rule_sub_title".ToUILocale()],
                        contents: ["angelPve_rule_content".ToUILocale()]
                    };
                    g.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnRankButtonClick = function() {
                    var e = new p.Req_Player_GetRank;
                    e.RankType = d.RankTypeId.CrossZoneAngelPve, c.RpcComponent.Instance.Call(e, function(e) {
                        l.UIManager.Instance.ShowUIPanel(y.PanelConfig.RankDetailPanel.Path, d.RankTypeId.CrossZoneAngelPve, e.Data.Rows, e.Data.Achievements, e.MyRank, e.MyRankData)
                    })
                }, t.prototype.OnShopButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ShopPanel.Path, 2, v.ShopType.AngelPveShop)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.InitBattle = function() {
                    var e = d.MapType.StarLightSecretLand;
                    l.Game.EventDispatcher.Only(d.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.RestartBattle = function() {
                    n.StartBattle(n.CurrentBattleMapId)
                }, t.StartBattle = function(e, t) {
                    if (void 0 === t && (t = !1), n.CurrentBattleMapId = e, t) {
                        var o = [];
                        c.ConfigDataComponent.Instance.GetConfigById(u.MapType_Config, d.MapType.StarLightSecretLand).AttackerFormation.forEach(function(e) {
                            var t = c.DataCenter.Instance.GetDataById(p.UserFormation_Model, e);
                            o.push(t)
                        }), n.RequestChallenge(o, t)
                    } else {
                        var r = c.ConfigDataComponent.Instance.GetConfigById(u.StarLightSecretLandMap_Config, e);
                        l.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattleFormationPanel.Path, function(e) {
                            n.RequestChallenge(e)
                        }, r.MapIds)
                    }
                }, t.RequestChallenge = function(e, t) {
                    void 0 === t && (t = !1);
                    var o = new p.Req_Map_StarLightSecretLandChallenge;
                    o.Id = n.CurrentBattleMapId, o.Formations = e, c.RpcComponent.Instance.Call(o, function(e) {
                        n.BattleInfo = e, n.BattleReports = e.Reports, n.NextBattleIndex = 0;
                        var o, r = n.GetNextBattleReport(),
                            i = {
                                Reports: [r],
                                Players: [],
                                ExtraParam: o = {
                                    DontCloseOnEnd: !0,
                                    CanSwitchSpeed: !0,
                                    CanSkipPlay: !0,
                                    CanPlayInBackground: !0,
                                    CanCanel: !1,
                                    CanRestart: !1
                                },
                                IsDouble: !1,
                                ActiveIndex: 0,
                                ViewPortIds: [],
                                InBackground: t,
                                SettleParams: null
                            },
                            a = c.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, i.Reports[0].MapId);
                        i.MapType = a.Type, C.BattleManager.Instance.StartPlay(r, o, t)
                    }.bind(this))
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.BattleInfo && n.NextBattleIndex < n.BattleReports.length && (e = n.BattleReports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.SettleBattle = function(e) {
                    var t = n.GetNextBattleReport();
                    if (t) e.Reports[0] = t, C.BattleManager.Instance.NextWave(e);
                    else {
                        e.InBackground || l.Game.EventDispatcher.Emit(d.GameEventIds.DelayCloseBattlePanel), delete _.BattleData.PlayingBattleDatas[d.MapType.StarLightSecretLand];
                        var o = new p.Req_Map_BattleSettlement;
                        o.MapType = e.MapType, c.RpcComponent.Instance.Call(o, function(t) {
                            var n;
                            e.SettleParams = [t.ExtraParam[0].Items[0], t.Result], 1 == t.Result ? (n = "AngelPvePanel/Components/AngelPveSettlementComponent", C.BattleManager.Instance.ShowSettlePanel(y.PanelConfig.SettlementWinPanel.Path, n, e, t.Rewards)) : (n = "AngelPvePanel/Components/AngelPveSettlementComponent", C.BattleManager.Instance.ShowSettlePanel(y.PanelConfig.SettlementFailPanel.Path, n, e))
                        })
                    }
                }, t.CancelBattle = function(e) {
                    var t = new p.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, c.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(y.PanelConfig.AngelPvePanel.Path)
                }, t.CurrentBattleMapId = 0, t.BattleInfo = null, t.BattleReports = null, t.NextBattleIndex = 0, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.RichText)], t.prototype, "CountRichText", void 0), i([w(h.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Button)], t.prototype, "RankButton", void 0), i([w(cc.Label)], t.prototype, "RankLabel", void 0), i([w(cc.Button)], t.prototype, "ShopButton", void 0), i([w(cc.Label)], t.prototype, "ShopLabel", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), n = i([S], t)
            }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomLayout": "CustomLayout",
        "./AngelPveComponent": "AngelPveComponent",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    AngelPveSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ea3d4rp+qZOvLYDJ3m/DXsu", "AngelPveSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("./SettlementBaseComponent"),
            d = e("./CustomRichText"),
            h = e("../../../EZFramework/UIFrame/UIManager"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./DisplayRewardsComponent"),
            g = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../Panel/AngelPvePanel"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BattleName = null, t.Content = null, t.LineText = null, t.BtnSure = null, t.LabelBtnSure = null, t.BtnNextLevel = null, t.LabelBtnNextLevel = null, t.AngelButton = null, t.AngelLabel = null, t._isInit = !1, t._levelId = 0, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t), this._levelId = t.SettleParams[0], this._result = t.SettleParams[1], this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.SetBattleName(), this.AngelButton.node.active = 1 != this._result, 1 == this._result && (this.LoadReward(), this.RenderContent())
                }, t.prototype.SetStaticLocalText = function() {
                    this.LineText.string = 1 == this._result ? "abyss_firstPassAward".ToUILocale() : "fail_upgrade".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale(), this.LabelBtnNextLevel.string = 1 == this._result ? "idleBattle_main_nextLevel".ToUILocale() : "common_challenge_again".ToUILocale(), this.AngelLabel.string = "angel_cultivation".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnNextLevel.node.on("click", this.OnBtnNextClick, this), this.AngelButton.node.on("click", this.OnAngelButtonClick, this)
                }, t.prototype.OnBtnSureClick = function() {
                    h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnNextClick = function() {
                    if (c.UIManager.Instance.BackUIPanel(), 1 == this._result) {
                        if (!this.CheckCanNextLevel()) return;
                        this._BattleData.InBackground && m.UIUtlity.ShowFloatingHint("idleBattle_startNext".ToUILocale()), this.RequestAngelPveChallenge(this._levelId + 1, this._BattleData.InBackground)
                    } else this.RequestAngelPveChallenge(this._levelId, this._BattleData.InBackground)
                }, t.prototype.OnAngelButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(f.PanelConfig.AngelPanel.Path)
                }, t.prototype.RequestAngelPveChallenge = function(e, t) {
                    var n = u.ConfigDataComponent.Instance.GetConfigById(l.StarLightSecretLandMap_Config, e);
                    _.default.StartBattle(n.Id, t)
                }, t.prototype.CheckCanNextLevel = function() {
                    return u.DataCenter.Instance.GetIntData(I.UserDataKey.StarLightSecretTodayCount) >= u.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarLightSecretLandDailyCount") ? (m.UIUtlity.ShowFloatingHint("angelPve_today_no_count".ToUILocale()), !1) : !!u.ConfigDataComponent.Instance.GetConfigById(l.StarLightSecretLandMap_Config, this._levelId + 1) || (m.UIUtlity.ShowFloatingHint("angelPve_all_pass".ToUILocale()), !1)
                }, t.prototype.SetBattleName = function() {
                    var e = "angelPve_settle_title".ToUILocale().Fmt(this._levelId);
                    this.BattleName.Init(e)
                }, t.prototype.LoadReward = function() {
                    var e = this;
                    this._rewardDatas = [], u.ConfigDataComponent.Instance.GetConfigById(l.StarLightSecretLandMap_Config, this._levelId).FirstRewards.forEach(function(t) {
                        e._rewardDatas.push({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        })
                    })
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._displayRewardPrefab ? [3, 2] : [4, g.AssetsManager.Instance.LoadAsset(f.BundlePath.DisplayRewardsComponent)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._loadAssets.push(e), this._displayRewardPrefab = e, n.label = 2;
                                case 2:
                                    return this._rewardComponent || (t = cc.instantiate(this._displayRewardPrefab), this.Content.addChild(t), this._rewardComponent = t.getComponent(y.DisplayRewardsComponent)), this._rewardComponent.Init(this._rewardDatas, this.Content.height), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    }), this._displayRewardPrefab && (this._displayRewardPrefab = null)
                }, i([b(d.CustomRichText)], t.prototype, "BattleName", void 0), i([b(cc.Node)], t.prototype, "Content", void 0), i([b(cc.Label)], t.prototype, "LineText", void 0), i([b(cc.Button)], t.prototype, "BtnSure", void 0), i([b(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([b(cc.Button)], t.prototype, "BtnNextLevel", void 0), i([b(cc.Label)], t.prototype, "LabelBtnNextLevel", void 0), i([b(cc.Button)], t.prototype, "AngelButton", void 0), i([b(cc.Label)], t.prototype, "AngelLabel", void 0), i([v], t)
            }(p.default);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/AngelPvePanel": "AngelPvePanel",
        "./CustomRichText": "CustomRichText",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    AngelPvpComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8d3aev+Jg5BDrgYtziNMTJ7", "AngelPvpComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("./ContinuousFightPanel"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GradeSprite = null, t.Zone = null, t.Name = null, t.ScoreDesc = null, t.Score = null, t.AngelNode = null, t.InfoNode = null, t._loadedAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    this.ScoreDesc.string = "angelPvp_score".ToUILocale()
                }, t.prototype.Init = function(e) {
                    if (e) {
                        this._rankData = e, this.InfoNode.active = !0, this.Zone.string = "S" + e.Zone, this.Name.string = e.PlayerInfo.Name, this.Score.string = e.Value.toString();
                        var t = n.GetStageConfig(e.Value);
                        this.GradeSprite.spriteFrame = d.default.CrossServerRankAtlas.getSpriteFrame("grade_" + t.Id), this.SetAngelAvatar()
                    } else this.InfoNode.active = !1
                }, t.GetStageConfig = function(e) {
                    var t, n = c.ConfigDataComponent.Instance.GetArrayConfig(u.GodLandDuelRankStage_Config);
                    if (e < n[0].Score) t = n[0];
                    else
                        for (var o = n.length - 1; o >= 0; o--)
                            if (e >= n[o].Score) {
                                t = n[o];
                                break
                            } return t
                }, t.prototype.SetAngelAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._avatarId == this._rankData.PlayerInfo.HeadIcon ? [2] : (this.AngelNode.destroyAllChildren(), this._avatarId = this._rankData.PlayerInfo.HeadIcon, (e = c.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, this._avatarId)) || (e = c.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._avatarId)), this._avatarPath = "Hero_" + e.Model + "/HeroAvatar", [4, l.AssetsManager.Instance.LoadAsset(this._avatarPath)]);
                                case 1:
                                    return t = o.sent(), this.isValid ? (t.name == this._avatarPath ? (this._loadedAssets.push(t), (n = cc.instantiate(t)).setParent(this.AngelNode), n.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0)) : l.AssetsManager.Instance.UnloadAsset(t), [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Sprite)], t.prototype, "GradeSprite", void 0), i([y(cc.Label)], t.prototype, "Zone", void 0), i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Label)], t.prototype, "ScoreDesc", void 0), i([y(cc.Label)], t.prototype, "Score", void 0), i([y(cc.Node)], t.prototype, "AngelNode", void 0), i([y(cc.Node)], t.prototype, "InfoNode", void 0), n = i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "./ContinuousFightPanel": "ContinuousFightPanel"
    }],
    AngelPvpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "158b1XvLChKUIhL4DyGESCv", "AngelPvpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../Util/TimeUtil"),
            g = e("../Components/CustomProgressBar"),
            m = e("./AngelPvpComponent"),
            I = e("../Components/ItemComponent"),
            _ = e("../Battle/BattleManager"),
            C = e("../Battle/BattleData"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("./ShopUIPanel"),
            S = e("../../RedDot/RedDotManager"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("./ContinuousFightPanel"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.TimeRichText = null, t.TipLabel = null, t.RankButton = null, t.RankLabel = null, t.DailyButton = null, t.DailyLabel = null, t.WeeklyButton = null, t.WeeklyLabel = null, t.SettleLabel = null, t.RewardContent = null, t.NoRewardLabel = null, t.DetailButton = null, t.DetailLabel = null, t.GradeSprite = null, t.GradeLabel = null, t.ScoreLabel = null, t.ScoreProgressBar = null, t.ScoreProgressLabel = null, t.ShopButton = null, t.ShopLabel = null, t.ReportButton = null, t.ReportLabel = null, t.FormationButton = null, t.FormationLabel = null, t.MatchingButton = null, t.MatchingLabel = null, t.MatchTimesLabel = null, t.ReturnButton = null, t.TopThree = [], t._rewards = [], t._isMatching = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(v.EventKeys.EVENT_VS_COMPLETE, this.MatchingSuccess, this), l.Game.EventDispatcher.On(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(v.EventKeys.EVENT_VS_COMPLETE, this.MatchingSuccess, this), l.Game.EventDispatcher.Off(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent), this.LoadDynamicAsset("CrossServerRankPanel/PNG/CrossServerRank", cc.SpriteAtlas)]).then(function(e) {
                                        t._itemPrefab = e[0], P.default.CrossServerRankAtlas = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "angelPvp_title".ToUILocale(), this.ShopLabel.string = "exchange_shop".ToUILocale(), this.DetailLabel.string = "explore_preview".ToUILocale(), this.DailyLabel.string = "crossServerRank_daily_reward".ToUILocale(), this.WeeklyLabel.string = "crossServerRank_weekly_reward".ToUILocale(), this.MatchingLabel.string = "crossServerRank_matching".ToUILocale(), this.ReportLabel.string = "allianceWar_report".ToUILocale(), this.FormationLabel.string = "formation_title".ToUILocale(), this.RankLabel.string = "holyArea_rank".ToUILocale(), this.NoRewardLabel.string = "temporaryNoReward".ToUILocale(), this.TipLabel.string = "continuousFight_rank_delay".ToUILocale(), this.SettleLabel.string = "continuousFight_settle_reward".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this), this.DailyButton.node.on("click", this.OnDailyButtonClick, this), this.WeeklyButton.node.on("click", this.OnWeeklyButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.MatchingButton.node.on("click", this.OnMatchingButtonClick, this), this.ReportButton.node.on("click", this.OnReportButtonClick, this), this.FormationButton.node.on("click", this.OnFormationButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._res = t[0], this._myScore = this._res.MyScore, this._isMatching = !1
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._isReDisplay || (this.SetTime(), this.SetTopThree()), this.SetRewards(), this.SetRankInfo(), this.SetButton(), this.BindReddot()
                }, t.prototype.SetTime = function() {
                    this._deadLine = y.TimeUtil.GetMondayClock0Ts(c.RpcComponent.Instance.ServerTime) + 7 * u.Etc.DayDuration - 3 * u.Etc.HourDuration, this.CountDownTime(), this.schedule(this.CountDownTime, 1)
                }, t.prototype.CountDownTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    if (t < 0) return this.TimeRichText.string = "angelPvp_rank_end".ToUILocale(), void this.unschedule(this.CountDownTime);
                    this.TimeRichText.string = "angelPvp_rank_time".ToUILocale().Fmt(w.default.ActivityTimeLeftFormat(t))
                }, t.prototype.SetTopThree = function() {
                    var e = this;
                    this.TopThree.forEach(function(t, n) {
                        e._res.Rank[n] ? t.Init(e._res.Rank[n]) : t.Init(null)
                    })
                }, t.prototype.SetRewards = function() {
                    var e = this;
                    this._curStageConfig = m.default.GetStageConfig(this._myScore);
                    var t = n.GetRewardConfigByRank(this._curStageConfig.Id, this._res.MyTierRank);
                    t ? (this.RewardContent.active = !0, this.NoRewardLabel.node.active = !1, t.Rewards.forEach(function(t, n) {
                        if (!e._rewards[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.RewardContent, o.y = -20, e._rewards[n] = o.getComponent(I.ItemComponent)
                        }
                        e._rewards[n].node.active = !0, e._rewards[n].Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        })
                    })) : (this.RewardContent.active = !1, this.NoRewardLabel.node.active = !0)
                }, t.GetRewardsByGradeId = function(e) {
                    var t = [];
                    return c.ConfigDataComponent.Instance.GetArrayConfig(p.GodLandDuelRankRewards_Config).forEach(function(n) {
                        n.DuanId == e && t.push(n)
                    }), t
                }, t.GetRewardConfigByRank = function(e, t) {
                    var o = n.GetRewardsByGradeId(e);
                    return t ? o.find(function(e) {
                        return t >= e.RankRange[0] && t <= e.RankRange[1] || t >= e.RankRange[0] && 0 == e.RankRange[1]
                    }) : o.find(function(e) {
                        return 0 == e.RankRange[1]
                    })
                }, t.prototype.GetProgressData = function() {
                    var e = this,
                        t = [],
                        n = c.ConfigDataComponent.Instance.GetArrayConfig(p.GodLandDuelRankStage_Config),
                        o = 0,
                        r = 0,
                        i = n[0].Score,
                        a = n[0].Score;
                    n.forEach(function(t) {
                        e._myScore >= t.Score && (o = t.Score), i = Math.min(i, t.Score), a = Math.max(a, t.Score)
                    });
                    for (var s = 0; s < n.length; s++)
                        if (this._myScore < n[s].Score) {
                            r = n[s].Score;
                            break
                        } return o ? r ? o && r && (t = [this._myScore - o, r - o]) : t = [this._myScore, a] : t = [this._myScore, r], t
                }, t.prototype.SetRankInfo = function() {
                    this.GradeSprite.spriteFrame = P.default.CrossServerRankAtlas.getSpriteFrame("grade_" + this._curStageConfig.Id), this.GradeLabel.string = "angelPvp_current_grade".ToUILocale().Fmt(this._curStageConfig.Id.ToAngelPvpRankStageName()), this.ScoreLabel.string = "angelPvp_score_num".ToUILocale().Fmt(this._myScore);
                    var e = this.GetProgressData();
                    this.ScoreProgressLabel.string = "{0}/{1}".Fmt(e[0], e[1]), this.ScoreProgressBar.progress = e[0] / e[1]
                }, t.prototype.SetButton = function() {
                    var e = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("GodLandDuelDailyCount"),
                        t = c.DataCenter.Instance.GetIntData(u.UserDataKey.GodLandDuelDailyCount),
                        n = e - t > 0 ? e - t : 0;
                    this.MatchTimesLabel.string = "crossServerRank_challengeTimes".ToUILocale().Fmt(n, e)
                }, t.prototype.BindReddot = function() {
                    S.RedDotManager.Instance.Bind(this.MatchingButton.node, S.RedDotManager.Instance.RedDot.AngelPvpMatchBtn), S.RedDotManager.Instance.Bind(this.DailyButton.node, S.RedDotManager.Instance.RedDot.AngelPvpDailyRewardBtn), S.RedDotManager.Instance.Bind(this.WeeklyButton.node, S.RedDotManager.Instance.RedDot.AngelPvpWeeklyRewardBtn)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "angelPvp_rule_title".ToUILocale(),
                        titles: ["angelPvp_rule_sub_title".ToUILocale()],
                        contents: ["angelPvp_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.GetRankDatas = function(e) {
                    var t = {},
                        n = {};
                    n.MyRank = e.MyRank, n.MyRankData = e.MyRankData, n.RankConfigId = u.RankTypeId.GodLandDuel, n.RankRowDataList = e.Data.Rows, n.Title = u.RankTypeId.GodLandDuel.ToRankName(), t[0] = n;
                    var o = {};
                    if (o.MyRank = this._res.MyTierRank, o.MyRankData = this._res.MyRankData, o.RankConfigId = u.RankTypeId.GodLandDuel, o.Title = "continuousFight_curGrade_rank".ToUILocale(), this._res.TierRank.length > 100) {
                        for (var r = [], i = 0; i < 100; i++) r.push(this._res.TierRank[i]);
                        o.RankRowDataList = r
                    } else o.RankRowDataList = this._res.TierRank;
                    return t[1] = o, t
                }, t.prototype.OnRankButtonClick = function() {
                    var e = this;
                    if (7 == y.TimeUtil.GetWeekDay(c.RpcComponent.Instance.ServerTime)) {
                        var t = y.TimeUtil.Get0ClockTs(c.RpcComponent.Instance.ServerTime),
                            n = t + 21 * u.Etc.HourDuration,
                            o = t + 24 * u.Etc.HourDuration;
                        if (c.RpcComponent.Instance.ServerTime >= n && c.RpcComponent.Instance.ServerTime < o) return f.UIUtlity.ShowFloatingHint("allianceWar_settleing".ToUILocale())
                    }
                    var r = new d.Req_Player_GetRank;
                    r.RankType = u.RankTypeId.GodLandDuel, c.RpcComponent.Instance.Call(r, function(t) {
                        if (t.Data.Rows.length > 0) {
                            var n = e.GetRankDatas(t);
                            l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ContinuousFightRankPanel.Path, n)
                        } else f.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())
                    })
                }, t.prototype.OnShopButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ShopPanel.Path, 2, b.ShopType.AngelPvpShop)
                }, t.prototype.OnDailyButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CrossServerRankTaskRewardPanel.Path, u.TaskType.GodLandDuelDaily, u.GameModuleType.AngelPvp)
                }, t.prototype.OnWeeklyButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CrossServerRankTaskRewardPanel.Path, u.TaskType.GodLandDuelWeekly, u.GameModuleType.AngelPvp)
                }, t.prototype.OnDetailButtonClick = function() {}, t.prototype.SetRewardsData = function() {
                    var e = this,
                        t = c.ConfigDataComponent.Instance.GetArrayConfig(p.GodLandDuelRankRewards_Config);
                    this._rewardConfigs = {}, t.forEach(function(t) {
                        if (e._rewardConfigs[t.DuanId]) e._rewardConfigs[t.DuanId].push(t);
                        else {
                            var n = [];
                            n.push(t), e._rewardConfigs[t.DuanId] = n
                        }
                    })
                }, t.prototype.CheckHasAngelInFormation = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        var n = c.DataCenter.Instance.GetDataById(d.UserFormation_Model, e[t]);
                        if (n && n.Angel && n.Angel.AngelId > 0) return !0
                    }
                    return !1
                }, t.prototype.OnMatchingButtonClick = function() {
                    if (7 == y.TimeUtil.GetWeekDay(c.RpcComponent.Instance.ServerTime)) {
                        var e = y.TimeUtil.Get0ClockTs(c.RpcComponent.Instance.ServerTime),
                            t = e + 21 * u.Etc.HourDuration,
                            o = e + 24 * u.Etc.HourDuration;
                        if (c.RpcComponent.Instance.ServerTime >= t && c.RpcComponent.Instance.ServerTime < o) return f.UIUtlity.ShowFloatingHint("allianceWar_settleing".ToUILocale())
                    }
                    var r = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("GodLandDuelDailyCount");
                    if (c.DataCenter.Instance.GetIntData(u.UserDataKey.GodLandDuelDailyCount) >= r) f.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale());
                    else {
                        if (!this.CheckHasAngelInFormation(n.formationTypes)) return f.UIUtlity.ShowFloatingHint("continuousFight_set_first_team".ToUILocale());
                        if (!this._isMatching)
                            if (_.BattleManager.Instance.IsInBattle(u.MapType.GodLandDuel)) f.UIUtlity.ShowFloatingHint("wait_fight_stop".ToUILocale());
                            else {
                                this._isMatching = !0;
                                var i = new d.Req_Map_GodLandDuelBattle;
                                c.RpcComponent.Instance.Call(i, this.OnRequestMatchingSuccess.bind(this), this.OnRequestMatchingFail.bind(this))
                            }
                    }
                }, t.prototype.OnRequestMatchingSuccess = function(e) {
                    var t;
                    this._myScore = e.Params[0], n.BattleInfo = e, n.BattleReports = e.Reports, _.BattleManager.Instance.CanShowBattleSettlePanel = !1, e.TargetInfo && ((t = {}).Country = e.TargetInfo.Country, t.HeadFrame = e.TargetInfo.HeadFrame, t.HeadIcon = e.TargetInfo.HeadIcon, t.Level = e.TargetInfo.Level, t.Name = e.TargetInfo.Name), l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonVSPanel.Path, t)
                }, t.prototype.OnRequestMatchingFail = function() {
                    this._isMatching = !1;
                    var e = new d.Req_Map_GodLandDuelEnter;
                    c.RpcComponent.Instance.Call(e, this.RefreshData.bind(this))
                }, t.prototype.MatchingSuccess = function() {
                    n.StartBattle(), this._isMatching = !1
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContent.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t)
                }, t.prototype.RefreshData = function(e) {
                    this._res = e, this.SetUIContent()
                }, t.prototype.OnReportButtonClick = function() {
                    var e = new d.Req_Player_GetBattleMessages;
                    e.Type = u.BattleMessageType.GodLandDuel, c.RpcComponent.Instance.Call(e, function(e) {
                        l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CrossServerRankReportPanel.Path, e, u.GameModuleType.GodLandDuel)
                    })
                }, t.prototype.OnFormationButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), [n.AngelPvpMapId], {
                        IsSaveFormationState: !0
                    })
                }, t.prototype.OnSetFormation = function(e) {
                    var t = new d.Req_Hero_SetFormation;
                    t.Formations = e, c.RpcComponent.Instance.Call(t, function() {
                        f.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale())
                    })
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.InitBattle = function() {
                    var e = u.MapType.GodLandDuel;
                    l.Game.EventDispatcher.Only(u.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(u.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(u.GameEventIds.SettleAllBattle.Fmt(e), n.SettleFunction, n), l.Game.EventDispatcher.Only(u.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.StartBattle = function(e) {
                    void 0 === e && (e = !1), n.NextBattleIndex = 0;
                    var t, o = n.GetNextBattleReport(),
                        r = {
                            Reports: [o],
                            Players: [],
                            ExtraParam: t = e ? {
                                DontCloseOnEnd: !0,
                                CanSwitchSpeed: !0,
                                CanSkipPlay: !0,
                                CanPlayInBackground: !1,
                                CanCanel: !1,
                                CanRestart: !1,
                                CanSkipAllPlay: !0
                            } : {
                                DontCloseOnEnd: !0,
                                CanSwitchSpeed: !0,
                                CanSkipPlay: !0,
                                CanPlayInBackground: !0,
                                CanCanel: !1,
                                CanRestart: !1,
                                CanSkipAllPlay: !0
                            },
                            IsDouble: !1,
                            ActiveIndex: 0,
                            ViewPortIds: [],
                            InBackground: !1,
                            SettleParams: null
                        },
                        i = c.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, r.Reports[0].MapId);
                    r.MapType = i.Type, n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                        e.Uid == c.DataCenter.Instance.Uid && e.Camp
                    });
                    var a = _.BattleManager.Instance.StartPlay(o, t);
                    e && (a.SettleParams = [n.BattleInfo, n.BattleReports])
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.BattleInfo && n.NextBattleIndex < n.BattleReports.length && (e = n.BattleReports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.SettleBattle = function(e) {
                    var t = n.GetNextBattleReport();
                    t ? (e.Reports[0] = t, _.BattleManager.Instance.NextWave(e)) : n.SettleFunction(e)
                }, t.SettleFunction = function(e) {
                    if (e.InBackground || l.Game.EventDispatcher.Emit(u.GameEventIds.DelayCloseBattlePanel), delete C.BattleData.PlayingBattleDatas[u.MapType.GodLandDuel], e.SettleParams) {
                        var t = "AngelPvpPanel/Components/AngelPvpSettlementComponent",
                            o = e.SettleParams[0];
                        c.DataCenter.Instance.Uid == o.AttackerInfo.Uid == !!o.Result ? e.InBackground ? _.BattleManager.Instance.ShowSettlePanel(h.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : l.UIManager.Instance.ShowUIPanel(h.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : e.InBackground ? _.BattleManager.Instance.ShowSettlePanel(h.PanelConfig.SettlementFailPanel.Path, t, e) : l.UIManager.Instance.ShowUIPanel(h.PanelConfig.SettlementFailPanel.Path, t, e)
                    } else n.RequestAngelPvpSettlement(n.BattleReports, !1, e.InBackground);
                    _.BattleManager.Instance.CanShowBattleSettlePanel = !0
                }, t.RequestAngelPvpSettlement = function(e, t, n) {
                    void 0 === n && (n = !0);
                    var o = {
                            Reports: e,
                            MapType: u.MapType.GodLandDuel
                        },
                        r = new d.Req_Map_BattleSettlement;
                    r.MapType = u.MapType.GodLandDuel, c.RpcComponent.Instance.Call(r, function(r) {
                        o.SettleParams = [JSON.parse(r.StringParam)], o.SettleParams[0].Reports = e;
                        var i = "AngelPvpPanel/Components/AngelPvpSettlementComponent";
                        1 == r.Result ? n ? _.BattleManager.Instance.ShowSettlePanel(h.PanelConfig.SettlementWinPanel.Path, i, o, null, r.Result) : l.UIManager.Instance.ShowUIPanel(h.PanelConfig.SettlementWinPanel.Path, i, o, null, r.Result) : n ? _.BattleManager.Instance.ShowSettlePanel(h.PanelConfig.SettlementFailPanel.Path, i, o, null) : l.UIManager.Instance.ShowUIPanel(h.PanelConfig.SettlementFailPanel.Path, i, o, null), t && delete C.BattleData.PlayingBattleDatas[u.MapType.GodLandDuel]
                    }, null)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(h.PanelConfig.AngelPvpPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.CountDownTime), _.BattleManager.Instance.CanShowBattleSettlePanel = !0
                }, t.formationTypes = [u.FormationIdType.GodLandDuel1, u.FormationIdType.GodLandDuel2, u.FormationIdType.GodLandDuel3], t.AngelPvpMapId = 21, t.BattleInfo = null, t.BattleReports = null, t.NextBattleIndex = 0, i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.Button)], t.prototype, "RuleButton", void 0), i([R(cc.RichText)], t.prototype, "TimeRichText", void 0), i([R(cc.Label)], t.prototype, "TipLabel", void 0), i([R(cc.Button)], t.prototype, "RankButton", void 0), i([R(cc.Label)], t.prototype, "RankLabel", void 0), i([R(cc.Button)], t.prototype, "DailyButton", void 0), i([R(cc.Label)], t.prototype, "DailyLabel", void 0), i([R(cc.Button)], t.prototype, "WeeklyButton", void 0), i([R(cc.Label)], t.prototype, "WeeklyLabel", void 0), i([R(cc.Label)], t.prototype, "SettleLabel", void 0), i([R(cc.Node)], t.prototype, "RewardContent", void 0), i([R(cc.Label)], t.prototype, "NoRewardLabel", void 0), i([R(cc.Button)], t.prototype, "DetailButton", void 0), i([R(cc.Label)], t.prototype, "DetailLabel", void 0), i([R(cc.Sprite)], t.prototype, "GradeSprite", void 0), i([R(cc.Label)], t.prototype, "GradeLabel", void 0), i([R(cc.Label)], t.prototype, "ScoreLabel", void 0), i([R(g.default)], t.prototype, "ScoreProgressBar", void 0), i([R(cc.Label)], t.prototype, "ScoreProgressLabel", void 0), i([R(cc.Button)], t.prototype, "ShopButton", void 0), i([R(cc.Label)], t.prototype, "ShopLabel", void 0), i([R(cc.Button)], t.prototype, "ReportButton", void 0), i([R(cc.Label)], t.prototype, "ReportLabel", void 0), i([R(cc.Button)], t.prototype, "FormationButton", void 0), i([R(cc.Label)], t.prototype, "FormationLabel", void 0), i([R(cc.Button)], t.prototype, "MatchingButton", void 0), i([R(cc.Label)], t.prototype, "MatchingLabel", void 0), i([R(cc.Label)], t.prototype, "MatchTimesLabel", void 0), i([R(cc.Button)], t.prototype, "ReturnButton", void 0), i([R(m.default)], t.prototype, "TopThree", void 0), n = i([T], t)
            }(l.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./AngelPvpComponent": "AngelPvpComponent",
        "./ContinuousFightPanel": "ContinuousFightPanel",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    AngelPvpSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "471f6GhjjRPobViAG6m1L7z", "AngelPvpSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = e("../../Components/DataCenter"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/HeadComponent"),
            I = e("../Components/ItemComponent"),
            _ = e("../Components/SettlementBaseComponent"),
            C = e("../../Channel/ChannelManager"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("./AngelPvpComponent"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ReportPartTitleLabel = null, t.MyHeaderNode = null, t.MyGrade = null, t.MyNameLabel = null, t.MyCurrentScoreLabel = null, t.MyScoreChangedLabel = null, t.MyScoreChangedTag = null, t.VSResultLacel = null, t.OpponentGrade = null, t.OpponentNameLabel = null, t.OpponentCurrentScoreLabel = null, t.OpponentScoreChangedLabel = null, t.OpponentHeaderNode = null, t.OpponentScoreChangedTag = null, t.RewardsPartTitleLabel = null, t.RewardsContainer = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t.LeftUserDesignation = null, t.RightUserDesignation = null, t._loadedAssets = [], t._TargetInfo = null, t._MyScore = 0, t._MyScoreChange = 0, t._TargetScoreChange = 0, t._Reports = null, t._isAttack = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ReportPartTitleLabel.string = "SeniorArenaSettlement_ReportPartTitle".ToUILocale(), this.RewardsPartTitleLabel.string = "reward".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this)
                }, t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsContainer.children.indexOf(t) && g.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.SetUI = function(t, n) {
                    e.prototype.SetUI.call(this, t, n);
                    var o = t.SettleParams[0];
                    if (o.TargetInfo) {
                        var r = o;
                        this._TargetInfo = r.TargetInfo, this._MyScore = r.Params[0], this._MyScoreChange = r.Params[1], this._TargetScoreChange = r.Params[2], this._Reports = r.Reports, this._isAttack = !0
                    } else {
                        var i = o;
                        this._isAttack = y.DataCenter.Instance.Uid == i.AttackerInfo.Uid, this._TargetInfo = this._isAttack ? i.DefenderInfo : i.AttackerInfo, this._MyScore = i.IntParams[0], this._MyScoreChange = i.IntParams[1], this._TargetScoreChange = i.IntParams[2], this._Reports = t.SettleParams[1]
                    }
                    this.SetPlayerInfoView(), this.SetGradeInfo(), this.SetRewardsView()
                }, t.prototype.SetGradeInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset("CrossServerRankPanel/PNG/CrossServerRank", cc.SpriteAtlas)];
                                case 1:
                                    return e = o.sent(), this.isValid ? (this._loadedAssets.push(e), t = b.default.GetStageConfig(this._MyScore), n = b.default.GetStageConfig(this._TargetInfo.Value1), this.MyGrade.spriteFrame = e.getSpriteFrame("grade_" + t.Id), this.OpponentGrade.spriteFrame = e.getSpriteFrame("grade_" + n.Id), [2]) : (u.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetPlayerInfoView = function() {
                    var e;
                    this.MyNameLabel.string = y.DataCenter.Instance.GetStringData(p.UserDataKey.RoleName), this.MyCurrentScoreLabel.string = this._MyScore.toString(), this.OpponentNameLabel.string = this._TargetInfo.Name, this.OpponentCurrentScoreLabel.string = this._TargetInfo.Value1.toString(), v.default.SetDesignationIcon(null === (e = y.DataCenter.Instance.GetSimpleData(p.UserDataKey.Designation)) || void 0 === e ? void 0 : e.V, this.LeftUserDesignation), v.default.SetDesignationIcon(this._TargetInfo.Designation, this.RightUserDesignation);
                    var t = this._MyScoreChange > 0;
                    t ? (this.MyScoreChangedLabel.string = "+" + this._MyScoreChange.toString(), this.MyScoreChangedLabel.node.color = cc.Color.GREEN, this.MyScoreChangedTag.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green"), this.MyScoreChangedTag.node.scaleY = -1) : (this.MyScoreChangedLabel.string = "-" + Math.abs(this._MyScoreChange), this.MyScoreChangedLabel.node.color = cc.Color.RED, this.MyScoreChangedTag.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red"), this.MyScoreChangedTag.node.scaleY = -1), t ? (this.OpponentScoreChangedLabel.string = "-" + Math.abs(this._TargetScoreChange), this.OpponentScoreChangedLabel.node.color = cc.Color.RED, this.OpponentScoreChangedTag.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red"), this.OpponentScoreChangedTag.node.scaleY = -1) : (this.OpponentScoreChangedLabel.node.color = cc.Color.GREEN, this.OpponentScoreChangedTag.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green"), this.OpponentScoreChangedTag.node.scaleY = -1, this.OpponentScoreChangedLabel.string = "+" + this._TargetScoreChange.toString()), this.VSResultLacel.node.active = !1, this.SetHeaderView()
                }, t.prototype.SetHeaderView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return [4, u.AssetsManager.Instance.LoadAsset(h.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    return e = a.sent(), this.isValid ? (this._loadedAssets.push(e), t = cc.instantiate(e), (n = t.getComponent(m.default)).SetHeadIcon(y.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon)), n.SetHeadFrame(y.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame)), n.LevelNode.active = !1, t.parent = this.MyHeaderNode, n.SetLevel(y.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel)), (o = y.DataCenter.Instance.GetStringData(p.UserDataKey.Country)) || (o = C.default.Instance.Localization_Country), o = 0 == y.DataCenter.Instance.GetIntData(p.UserDataKey.CountryShowState) ? o : "", n.SetCountry(o), r = cc.instantiate(e), (i = r.getComponent(m.default)).SetHeadIcon(this._TargetInfo.HeadIcon), i.SetHeadFrame(this._TargetInfo.HeadFrame), i.LevelNode.active = !1, r.parent = this.OpponentHeaderNode, i.SetLevel(this._TargetInfo.Level), i.SetCountry(this._TargetInfo.Country), [2]) : (u.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetRewardsView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._isAttack ? [4, u.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)] : [2];
                                case 1:
                                    return e = n.sent(), this.isValid ? (this._loadedAssets.push(e), f.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, p.LevelParamType.GodLandDuelBattleRewrds).Data2.forEach(function(n) {
                                        var o = n.Items[0],
                                            r = n.Items[1],
                                            i = cc.instantiate(e).getComponent(I.ItemComponent);
                                        i.Init({
                                            ItemId: o,
                                            Count: r
                                        }, I.ItemComponentType.ItemCommon), i.node.name = o.toString(), i.node.parent = t.RewardsContainer
                                    }), [2]) : (u.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.OnConfirmButtonClicked = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets && (this._loadedAssets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssets = [])
                }, i([P(cc.Label)], t.prototype, "ReportPartTitleLabel", void 0), i([P(cc.Node)], t.prototype, "MyHeaderNode", void 0), i([P(cc.Sprite)], t.prototype, "MyGrade", void 0), i([P(cc.Label)], t.prototype, "MyNameLabel", void 0), i([P(cc.Label)], t.prototype, "MyCurrentScoreLabel", void 0), i([P(cc.Label)], t.prototype, "MyScoreChangedLabel", void 0), i([P(cc.Sprite)], t.prototype, "MyScoreChangedTag", void 0), i([P(cc.Label)], t.prototype, "VSResultLacel", void 0), i([P(cc.Sprite)], t.prototype, "OpponentGrade", void 0), i([P(cc.Label)], t.prototype, "OpponentNameLabel", void 0), i([P(cc.Label)], t.prototype, "OpponentCurrentScoreLabel", void 0), i([P(cc.Label)], t.prototype, "OpponentScoreChangedLabel", void 0), i([P(cc.Node)], t.prototype, "OpponentHeaderNode", void 0), i([P(cc.Sprite)], t.prototype, "OpponentScoreChangedTag", void 0), i([P(cc.Label)], t.prototype, "RewardsPartTitleLabel", void 0), i([P(cc.Node)], t.prototype, "RewardsContainer", void 0), i([P(cc.Button)], t.prototype, "ConfirmButton", void 0), i([P(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([P(cc.Sprite)], t.prototype, "LeftUserDesignation", void 0), i([P(cc.Sprite)], t.prototype, "RightUserDesignation", void 0), i([w], t)
            }(_.default);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent",
        "./AngelPvpComponent": "AngelPvpComponent"
    }],
    AngelPvpSettlementItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d8a58TeUJxBArxzI7uY0LJ0", "AngelPvpSettlementItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/BattleConsts"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("./ItemComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MyWinIcon = null, t.MyLoseIcon = null, t.MyHeroContainer = null, t.StatisticButton = null, t.StatisticButtonLabel = null, t.OpponentWinIcon = null, t.OpponentLoseIcon = null, t.OpponentHeroContainer = null, t._itemPrefab = null, t._myHeroesData = [], t._opponentHeroesData = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.StatisticButton.node.on("click", this.OnStatisticButtonClicked, this)
                }, t.prototype.Init = function(e, t, n) {
                    return void 0 === n && (n = !1), a(this, void 0, void 0, function() {
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._reportData = e, this._needCheckTimeOut = n, this._myCamp = this.IsAttacker(e) ? c.CampType.Attacker : c.CampType.Defender, this.StatisticButtonLabel.string = "SeniorArena_BattleRound".ToUILocale().Fmt((t + 1).toString()), [4, this.LoadAsset()];
                                case 1:
                                    return o.sent(), this.ConfigHeroesData(e.Heros), this.SetMyHeroListView(), this.SetResultTagView(), this.SetOpponentHeroListView(), [2]
                            }
                        })
                    })
                }, t.prototype.IsAttacker = function(e) {
                    return e.Players[0].Uid == d.DataCenter.Instance.Uid && e.Players[0].Camp == c.CampType.Attacker || e.Players[1].Uid == d.DataCenter.Instance.Uid && e.Players[1].Camp == c.CampType.Attacker
                }, t.prototype.LoadAsset = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ConfigHeroesData = function(e) {
                    var t = this;
                    e.forEach(function(e) {
                        e.Id > 0 && (e.Camp == t._myCamp ? t._myHeroesData.push(e) : t._opponentHeroesData.push(e))
                    })
                }, t.prototype.SetResultTagView = function() {
                    var e = u.default.CheckIsSelfBattleWin(this._reportData, this._needCheckTimeOut);
                    this.MyWinIcon.node.active = e, this.OpponentLoseIcon.node.active = e, this.MyLoseIcon.node.active = !e, this.OpponentWinIcon.node.active = !e
                }, t.prototype.SetMyHeroListView = function() {
                    for (var e = 0; e < this._myHeroesData.length; e++) {
                        var t = this.RenderItem(this._myHeroesData[e]);
                        this.MyHeroContainer.addChild(t)
                    }
                }, t.prototype.SetOpponentHeroListView = function() {
                    for (var e = 0; e < this._opponentHeroesData.length; e++) {
                        var t = this.RenderItem(this._opponentHeroesData[e]);
                        this.OpponentHeroContainer.addChild(t)
                    }
                }, t.prototype.RenderItem = function(e) {
                    var t = cc.instantiate(this._itemPrefab),
                        n = t.getComponent(f.ItemComponent);
                    if (e) {
                        var o = Math.abs(e.Level),
                            r = u.default.Instance.GetHeroIdToAngelId(e.HeroId);
                        if (r > 0) {
                            var i = {
                                ItemId: r,
                                StarLevel: e.StarLevel,
                                Level: o,
                                SkinId: e.SkinId
                            };
                            n.Init(i, f.ItemComponentType.Angel)
                        } else i = {
                            ItemId: e.HeroId,
                            StarLevel: e.StarLevel,
                            Level: o,
                            SkinId: e.SkinId
                        }, n.Init(i, f.ItemComponentType.HeroInfo), e.Level < 0 && n.SetHeroLevelColor(h.UIUtlity.Herolevel_Label_Color_StarResonance);
                        0 == e.StatHp && n.OnIconGray(!0)
                    } else n.SetHeroSimpleState(), n.SetCustomIcon(h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180);
                    return t
                }, t.prototype.OnStatisticButtonClicked = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattleStatisticsPanel.Path, [this._reportData])
                }, t.prototype.isWin = function(e, t) {
                    var n = !1;
                    return e == c.CampType.Attacker && t == c.BattleResult.AttackerWin && (n = !0), e != c.CampType.Defender || t != c.BattleResult.DefenderWin && t != c.BattleResult.Timeout || (n = !0), n
                }, t.prototype.onDestroy = function() {
                    this._itemPrefab && (l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemPrefab = null)
                }, i([m(cc.Sprite)], t.prototype, "MyWinIcon", void 0), i([m(cc.Sprite)], t.prototype, "MyLoseIcon", void 0), i([m(cc.Node)], t.prototype, "MyHeroContainer", void 0), i([m(cc.Button)], t.prototype, "StatisticButton", void 0), i([m(cc.Label)], t.prototype, "StatisticButtonLabel", void 0), i([m(cc.Sprite)], t.prototype, "OpponentWinIcon", void 0), i([m(cc.Sprite)], t.prototype, "OpponentLoseIcon", void 0), i([m(cc.Node)], t.prototype, "OpponentHeroContainer", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    AngelRebornPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b9b3cTUjrFG5ZaqC90jSp1+", "AngelRebornPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/EventKeys"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Hint = null, t.Tip = null, t.LeftAngelContainer = null, t.LeftAngelLevel = null, t.RightAngelContainer = null, t.RightAngelLevel = null, t.MaterialContainer = null, t.CancelBtn = null, t.CancelBtnLabel = null, t.ConfirmBtn = null, t.ConfirmBtnLabel = null, t.DiamondCount = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._freeLevelLimit = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("AngelRebornLevelLimit"), this._diamondCost = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("AngelRebornDiamondCost"), this.Hint.string = "angel_reborn_back".ToUILocale(), this.Title.string = "angel_reborn".ToUILocale(), this.Tip.string = "angel_reborn_free".ToUILocale().Fmt(this._freeLevelLimit), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.ConfirmBtnLabel.string = "ok".ToUILocale(), this.CancelBtn.node.on("click", this.OnClose, this), this.ConfirmBtn.node.on("click", this.OnReborn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectAngel = t[0]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.ConfigHeroItem(), this.ConfigMaterials(), this.ConfigDiamondCost())
                }, t.prototype.ConfigHeroItem = function() {
                    var e;
                    this._leftHeroComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.LeftAngelContainer), this._leftHeroComponent = e.getComponent(f.ItemComponent)), this._rightHeroComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.RightAngelContainer), this._rightHeroComponent = e.getComponent(f.ItemComponent)), this._leftHeroComponent.Init({
                        ItemId: this._selectAngel.AngelId,
                        StarLevel: this._selectAngel.StarLevel,
                        SkinId: this._selectAngel.SkinId
                    }, f.ItemComponentType.Angel), this._rightHeroComponent.Init({
                        ItemId: this._selectAngel.AngelId,
                        StarLevel: this._selectAngel.StarLevel,
                        SkinId: this._selectAngel.SkinId
                    }, f.ItemComponentType.Angel), this.LeftAngelLevel.string = "Lv." + this._selectAngel.Level, this.RightAngelLevel.string = "Lv.1"
                }, t.prototype.ConfigMaterials = function() {
                    for (var e = p.ConfigDataComponent.Instance.GetConfigById(d.AngelLevel_Config, this._selectAngel.Level), t = {}, n = 0; n < e.Materials.length; n++) {
                        var o = e.Materials[n].Items;
                        t[o[0]] ? t[o[0]] += o[1] : t[o[0]] = o[1]
                    }
                    for (var r in this._selectAngel.FatePoints.forEach(function(e) {
                            for (var n = p.ConfigDataComponent.Instance.GetConfigById(d.AngelFate_Config, e), o = 0; o < n.Materials.length; o++) {
                                var r = n.Materials[o].Items;
                                t[r[0]] ? t[r[0]] += r[1] : t[r[0]] = r[1]
                            }
                        }), t) {
                        var i = cc.instantiate(this._itemPrefab);
                        i.setParent(this.MaterialContainer), i.getComponent(f.ItemComponent).Init({
                            ItemId: Number(r),
                            Count: t[r]
                        })
                    }
                }, t.prototype.ConfigDiamondCost = function() {
                    this._selectAngel.Level <= this._freeLevelLimit ? this.DiamondCount.string = "0" : this.DiamondCount.string = this._diamondCost.toString()
                }, t.prototype.OnClose = function() {
                    h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnReborn = function() {
                    if (this._selectAngel.Level <= this._freeLevelLimit) this.DoRebornJob();
                    else {
                        if (p.DataCenter.Instance.GetItemCount(g.CommonItemId.Diamond) < this._diamondCost) return h.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [g.MallPageType.DiamondShop, g.GiftPackType.BuyDiamond]);
                        this.DoRebornJob()
                    }
                }, t.prototype.DoRebornJob = function() {
                    var e = new c.Req_Item_AngelReborn;
                    e.AngelId = this._selectAngel.AngelId, p.RpcComponent.Instance.Call(e, this.OnRebornSucces.bind(this))
                }, t.prototype.OnRebornSucces = function() {
                    u.UIUtlity.ShowFloatingHint("angel_reborn_success".ToUILocale()), l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_ANGEL_DESTINY_REBORN, !1), h.UIManager.Instance.BackUIPanel()
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Label)], t.prototype, "Hint", void 0), i([C(cc.Label)], t.prototype, "Tip", void 0), i([C(cc.Node)], t.prototype, "LeftAngelContainer", void 0), i([C(cc.Label)], t.prototype, "LeftAngelLevel", void 0), i([C(cc.Node)], t.prototype, "RightAngelContainer", void 0), i([C(cc.Label)], t.prototype, "RightAngelLevel", void 0), i([C(cc.Node)], t.prototype, "MaterialContainer", void 0), i([C(cc.Button)], t.prototype, "CancelBtn", void 0), i([C(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([C(cc.Button)], t.prototype, "ConfirmBtn", void 0), i([C(cc.Label)], t.prototype, "ConfirmBtnLabel", void 0), i([C(cc.Label)], t.prototype, "DiamondCount", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AngelSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "13f6a04Ok9MsqVyMoq4E7Kj", "AngelSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/Components"),
            g = e("../Components/AngelCardComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../Util/TimeUtil"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.AngelCustomLayout = null, t.SetFornmationButton = null, t.SetFornmationLabel = null, t._isLayoutInit = !1, t._configs = [], t._selectIndex = -1, t._setFormationStatus = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickAngel, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickAngel, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(f.BundlePath.AngelCardComponent, cc.Prefab)];
                                case 1:
                                    return t._angelCardPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "angel_select_formation".ToUILocale(), this.SetFornmationButton.node.on("click", this.ClickSetFornmationButton, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._formationSids = t[0], this._angelIds = t[1], this._teamIndex = t[2], y.ConfigDataComponent.Instance.GetArrayConfig(p.AngelBase_Config).forEach(function(e) {
                        (!e.AvailableStartTime || I.TimeUtil.StrToTime(e.AvailableStartTime) <= c.RpcComponent.Instance.ServerTime) && n._configs.push(e)
                    }), this._selectIndex = this._configs.findIndex(function(e) {
                        return e.Id == n._angelIds[n._teamIndex]
                    }), this._selectIndex >= 0 && (this._setFormationStatus = this._angelIds[this._teamIndex] > 0 ? 1 : 0)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitCustomLayout(), this.SetFormationLabel()
                }, t.prototype.SetFormationLabel = function() {
                    this.SetFornmationLabel.string = 0 == this._setFormationStatus ? "angel_up_formation".ToUILocale() : "angel_down_formation".ToUILocale()
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.AngelCustomLayout.Init(this._angelCardPrefab)), this.AngelCustomLayout.RenderLayOut(this._configs.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.AngelCustomLayout == t && e.forEach(function(e, t) {
                        var o = c.DataCenter.Instance.GetDataById(u.UserAngel_Model, n._configs[t].Id);
                        if (o) {
                            (a = e.getComponent(g.default)).Init(o);
                            var r = !1,
                                i = n._angelIds.findIndex(function(e) {
                                    return e == n._configs[t].Id
                                });
                            i > -1 && i != n._teamIndex && (a.SetMask(!0), a.SetLock(!0), r = !0), r || t != n._selectIndex || (a.SetMask(!0), a.SetSelect(!0))
                        } else {
                            var a, s = {};
                            s.ItemId = n._configs[t].Id, s.StarLevel = n._configs[t].StarLevel, (a = e.getComponent(g.default)).Init(s), a.IsGrayIcon(!0), a.SetNotGetLabel("angel_unGet".ToUILocale())
                        }
                        e.name = n._configs[t].Id.toString()
                    })
                }, t.prototype.OnClickAngel = function(e, t) {
                    if (-1 != this.AngelCustomLayout.node.children.indexOf(t))
                        if (c.DataCenter.Instance.GetDataById(u.UserAngel_Model, e)) {
                            var n = this._angelIds.findIndex(function(t) {
                                return t == e
                            });
                            if (n > -1 && n != this._teamIndex) m.UIUtlity.ShowFloatingHint("angel_has_on_formation".ToUILocale());
                            else {
                                var o = this._configs.findIndex(function(t) {
                                    return t.Id == e
                                });
                                if (o > -1) {
                                    this._setFormationStatus = this._angelIds.includes(e) ? 1 : 0, this.SetFormationLabel();
                                    for (var r = this._selectIndex > -1 ? this._configs[this._selectIndex].Id : 0, i = this.AngelCustomLayout.node.children, a = 0; a < i.length; a++) {
                                        var s = i[a],
                                            l = Number.parseInt(s.name),
                                            p = s.getComponent(g.default);
                                        if (r > 0 && l == r) {
                                            p.SetMask(!1), p.SetSelect(!1);
                                            break
                                        }
                                    }
                                    this._selectIndex = o;
                                    var d = t.getComponent(g.default);
                                    d.SetMask(!0), d.SetSelect(!0)
                                }
                            }
                        } else m.UIUtlity.ShowFloatingHint("angel_formation_not_get".ToUILocale())
                }, t.prototype.ClickSetFornmationButton = function() {
                    if (this._configs[this._selectIndex]) {
                        var e;
                        e = 0 == this._setFormationStatus ? this._configs[this._selectIndex].Id : 0, l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_SET_FORMATION_ANGEL, this._formationSids[this._teamIndex], e), this.Close()
                    } else m.UIUtlity.ShowFloatingHint("angel_select_angel".ToUILocale())
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(h.default)], t.prototype, "AngelCustomLayout", void 0), i([v(cc.Button)], t.prototype, "SetFornmationButton", void 0), i([v(cc.Label)], t.prototype, "SetFornmationLabel", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AngelCardComponent": "AngelCardComponent",
        "../Components/CustomLayout": "CustomLayout"
    }],
    AngelSelectSkillPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3a6a6SinGVNraSRqxtDhv0K", "AngelSelectSkillPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./AngelSkillComponent"),
            m = e("../Components/SkillItemComponent"),
            I = e("./BuffDescComponent"),
            _ = e("../../Auxiliary/EventKeys"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property;
        (function(e) {
            e[e.Select = 0] = "Select", e[e.Change = 1] = "Change", e[e.Unload = 2] = "Unload", e[e.Lock = 3] = "Lock"
        })(l || (l = {}));
        var S = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.SkillContent = null, t.SkillNode = null, t.SkillName = null, t.TypeLabel = null, t.SkillTypeLabel = null, t.CoolDownLabel = null, t.CoolDownRichText = null, t.SkillDescContent = null, t.SkillDescLabel = null, t.SkillDescRichText = null, t.SetButton = null, t.SetLabel = null, t.LockButton = null, t.LockLabel = null, t._skillItemNodes = [], t._buffDescNodes = [], t._isHandbook = !1, t
            }
            var n;
            return r(t, e), n = t, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelSkillComponent", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.SkillItemComponent, cc.Prefab), o = this.LoadDynamicAsset("HeroInfoPanel/Components/BuffDescComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._angelSkillPrefab = e[0], r._skillItemPrefab = e[1], r._buffDescItemPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "angel_skill_select".ToUILocale(), this.TypeLabel.string = "equip_type_tag".ToUILocale(), this.CoolDownLabel.string = "cooldown".ToUILocale(), this.SkillDescLabel.string = "skill_description".ToUILocale(), this.LockLabel.string = "CollectionPavilion_Item_Lock".ToUILocale(), this.SetButton.node.on("click", this.ClickSetButton, this), this.LockButton.node.on("click", this.ClickLockButton, this)
            }, t.prototype.InitData = function(t) {
                var o = this;
                e.prototype.InitData.call(this), this._angelId = t[0], this._slot = t[1], t[2] && (this._isHandbook = t[2]), this._isHandbook ? this._skillDatas = this.GetHandbookSkillDatas() : (this._selectAngel = d.DataCenter.Instance.GetDataById(u.UserAngel_Model, this._angelId), this._slotSkillId = this._selectAngel.Skills[this._slot], this._skillDatas = n.GetAngelAllSkills(this._angelId));
                var r = this._skillDatas.findIndex(function(e) {
                    return e.SkillId == o._slotSkillId
                });
                this._selectIndex = r > -1 ? r : 0
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetSkillNodes(), this.SetSkillInfo(), this.SetSkillDesc(), this.SetButtons()
            }, t.prototype.RefreshUIContent = function() {
                this.SetSkillInfo(), this.SetSkillDesc(), this.SetButtons()
            }, t.prototype.GetHandbookSkillDatas = function() {
                var e = [];
                return d.ConfigDataComponent.Instance.GetConfigById(p.AngelBase_Config, this._angelId).Skills.forEach(function(t) {
                    var n = {};
                    n.SkillId = t.Items[0], n.Level = 1, n.Active = !0, e.push(n)
                }), e
            }, t.prototype.SetSkillNodes = function() {
                var e = this;
                this._skillDatas.forEach(function(t, n) {
                    if (!e._skillItemNodes[n]) {
                        var o = cc.instantiate(e._angelSkillPrefab);
                        o.y = -20, o.parent = e.SkillContent, e._skillItemNodes[n] = o
                    }
                    var r, i = e._skillItemNodes[n].getComponent(g.default);
                    r = t.SkillId == e._slotSkillId ? g.AngelSkillState.Dressed : t.Active ? g.AngelSkillState.Normal : g.AngelSkillState.Lock, i.Init(t.SkillId, t.Level, n, e._selectIndex, r, e), i.SetNameActive(!1)
                })
            }, t.prototype.SetSkillInfo = function() {
                if (!this._skillNode) {
                    var e = cc.instantiate(this._skillItemPrefab);
                    e.parent = this.SkillNode, this._skillNode = e
                }
                this._curSkill = this._skillDatas[this._selectIndex], this._curSkillConfig = d.ConfigDataComponent.Instance.GetConfigById(p.SkillBase_Config, this._curSkill.SkillId), this._skillNode.getComponent(m.default).Init(this._curSkill.SkillId, this._curSkill.Level), this.SkillName.string = this._curSkill.SkillId.ToHeroSkillName(), this.SkillTypeLabel.string = y.default.GetSkillTypeStr(this._curSkillConfig.Type), this._curSkillConfig.Cooldown <= 1 ? this.CoolDownRichText.string = "<color=#B28850>" + "noCoolDown".ToUILocale() + "</c>" : this._curSkillConfig.StartCooldown > 0 ? this.CoolDownRichText.string = "<color=#B28850>" + "CoolDownAfters".ToUILocale().Fmt("<color=#568f00>" + this._curSkillConfig.Cooldown + "</c>", "<color=#568f00>" + this._curSkillConfig.StartCooldown + "</c>") + "</c>" : this.CoolDownRichText.string = "<color=#B28850>" + "CoolDown_Count".ToUILocale().Fmt("<color=#568f00>" + this._curSkillConfig.Cooldown + "</c>") + "</c>"
            }, t.prototype.SetSkillDesc = function() {
                var e = this;
                this.SkillDescRichText.string = "<color=#624e3c>" + this._curSkillConfig.Id.ToHeroSkillDesc() + "</c>", this._buffDescNodes.forEach(function(e) {
                    e.active = !1
                }), this._curSkillConfig.BuffDescription.length > 0 && (this._curSkillConfig.BuffDescription.forEach(function(t, n) {
                    if (!e._buffDescNodes[n]) {
                        var o = cc.instantiate(e._buffDescItemPrefab);
                        o.parent = e.SkillDescContent.node, e._buffDescNodes[n] = o
                    }
                    e._buffDescNodes[n].active = !0, e._buffDescNodes[n].getComponent(I.default).Init(t)
                }), this.SkillDescContent.updateLayout())
            }, t.prototype.SetButtons = function() {
                switch (this.LockButton.node.active = !1, this.SetButton.node.active = !1, this.GetSkillState()) {
                    case l.Change:
                        this.SetButton.node.active = !this._isHandbook, this.SetLabel.string = "LuckyCharm_ChangeSkill".ToUILocale();
                        break;
                    case l.Lock:
                        this.LockButton.node.active = !this._isHandbook;
                        break;
                    case l.Select:
                        this.SetButton.node.active = !this._isHandbook, this.SetLabel.string = "LuckyCharm_SelecteSkill".ToUILocale();
                        break;
                    case l.Unload:
                        this.SetButton.node.active = !this._isHandbook, this.SetLabel.string = "PowerCore_Remove".ToUILocale()
                }
            }, t.prototype.GetSkillState = function() {
                var e = l.Select;
                if (!this._isHandbook)
                    if (this._curSkill.Active)
                        if (this._slotSkillId > 0) e = this._curSkill.SkillId == this._slotSkillId ? l.Unload : l.Change;
                        else {
                            for (var t = !1, n = 0; n < this._selectAngel.Skills.length; n++)
                                if (n != this._slot && this._selectAngel.Skills[n] == this._curSkill.SkillId) {
                                    t = !0;
                                    break
                                } e = t ? l.Change : l.Select
                        }
                else e = l.Lock;
                return e
            }, t.prototype.ClickSkillItem = function(e) {
                if (e != this._selectIndex) {
                    var t = this._skillItemNodes[e].getComponent(g.default),
                        n = this._skillItemNodes[this._selectIndex].getComponent(g.default);
                    t.SetSelectState(!0), n.SetSelectState(!1), this._selectIndex = e, this.RefreshUIContent()
                }
            }, t.GetAngelAllSkills = function(e) {
                for (var t = [], o = [], r = [], i = d.DataCenter.Instance.GetDataById(u.UserAngel_Model, e), a = d.ConfigDataComponent.Instance.GetArrayConfig(p.AngelFatePage_Config), s = d.ConfigDataComponent.Instance.GetConfigById(p.AngelBase_Config, e), l = 0; l < s.Skills.length; l++)
                    if (!o[l] && s.Skills[l]) {
                        var c = {};
                        c.SkillId = s.Skills[l].Items[0], c.Level = 1, c.Active = !0, o[l] = c
                    } return s.GodAvatar.forEach(function(e) {
                    var t = d.ConfigDataComponent.Instance.GetConfigById(p.AngelGodAvatar_Config, e),
                        o = n.CheckSkinIsUnlock(e),
                        i = [];
                    t.Skills.forEach(function(e, n) {
                        if (!i[n]) {
                            var r = {};
                            r.SkillId = e.Items[0], r.Level = 1, r.Active = o, o || (r.Param = t.Id.ToAngelSkinName()), i[n] = r
                        }
                    }), r.push(i)
                }), i && (a.forEach(function(t) {
                    var n = t.FateIds[1];
                    if (i.FatePoints && i.FatePoints.length > 0 && i.FatePoints.includes(n))
                        for (var a = d.ConfigDataComponent.Instance.GetConfigById(p.AngelFate_Config, n), l = 0; l < a.GlobalSkills.length; l++) {
                            var c = a.GlobalSkills[l];
                            if (c.Items[0] == e) {
                                for (var u = function(e) {
                                        for (var t = c.Items[e], n = !1, i = 0; i < s.Skills.length; i++)
                                            if ((f = s.Skills[i].Items.findIndex(function(e) {
                                                    return e == t
                                                })) > -1) {
                                                t > o[i].SkillId && (o[i].SkillId = t, o[i].Level = f + 1), n = !0;
                                                break
                                            } if (!n)
                                            for (var a = 0; a < s.GodAvatar.length; a++)
                                                for (var l = s.GodAvatar[a], u = d.ConfigDataComponent.Instance.GetConfigById(p.AngelGodAvatar_Config, l), h = 0; h < u.Skills.length; h++) {
                                                    var f;
                                                    (f = u.Skills[h].Items.findIndex(function(e) {
                                                        return e == t
                                                    })) > -1 && t > r[a][h].SkillId && (r[a][h].SkillId = t, r[a][h].Level = f + 1)
                                                }
                                    }, h = 1; h < c.Items.length; h++) u(h);
                                break
                            }
                        }
                }), t = o, r.forEach(function(e) {
                    e.forEach(function(e) {
                        t.push(e)
                    })
                })), t
            }, t.CheckSkinIsUnlock = function(e) {
                var t = d.DataCenter.Instance.GetDataById(u.AngelSkin_Model, e);
                return !!t && (!!t.IsPerpetual || d.RpcComponent.Instance.ServerTime < t.Time)
            }, t.prototype.ClickSetButton = function() {
                var e, t = this,
                    n = this.GetSkillState(),
                    o = new u.Req_Item_AngelSetSkill;
                switch (o.Pos = this._slot, o.AngelId = this._angelId, n) {
                    case l.Change:
                        for (var r = 0; r < this._selectAngel.Skills.length; r++) {
                            var i = this._selectAngel.Skills[r];
                            if (r != this._slot && i == this._curSkill.SkillId) return void f.UIUtlity.ShowFloatingHint("angel_has_skill".ToUILocale())
                        }
                        o.SkillId = this._curSkill.SkillId, e = "change_success".ToUILocale();
                        break;
                    case l.Select:
                        for (r = 0; r < this._selectAngel.Skills.length; r++)
                            if (i = this._selectAngel.Skills[r], r != this._slot && i == this._curSkill.SkillId) return void f.UIUtlity.ShowFloatingHint("angel_has_skill".ToUILocale());
                        o.SkillId = this._curSkill.SkillId, e = "select_success".ToUILocale();
                        break;
                    case l.Unload:
                        o.SkillId = 0, e = "remove_success".ToUILocale()
                }
                d.RpcComponent.Instance.Call(o, function() {
                    f.UIUtlity.ShowFloatingHint(e), c.Game.EventDispatcher.Emit(_.EventKeys.EVENT_REFRESH_ANGELATTRNODE), t.Close()
                })
            }, t.prototype.ClickLockButton = function() {
                this._curSkill.Param && f.UIUtlity.ShowFloatingHint("angel_skill_unlock_condition".ToUILocale().Fmt(this._curSkill.Param))
            }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Node)], t.prototype, "SkillContent", void 0), i([b(cc.Node)], t.prototype, "SkillNode", void 0), i([b(cc.Label)], t.prototype, "SkillName", void 0), i([b(cc.Label)], t.prototype, "TypeLabel", void 0), i([b(cc.Label)], t.prototype, "SkillTypeLabel", void 0), i([b(cc.Label)], t.prototype, "CoolDownLabel", void 0), i([b(cc.RichText)], t.prototype, "CoolDownRichText", void 0), i([b(cc.Layout)], t.prototype, "SkillDescContent", void 0), i([b(cc.Label)], t.prototype, "SkillDescLabel", void 0), i([b(cc.RichText)], t.prototype, "SkillDescRichText", void 0), i([b(cc.Button)], t.prototype, "SetButton", void 0), i([b(cc.Label)], t.prototype, "SetLabel", void 0), i([b(cc.Button)], t.prototype, "LockButton", void 0), i([b(cc.Label)], t.prototype, "LockLabel", void 0), n = i([v], t)
        }(c.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./AngelSkillComponent": "AngelSkillComponent",
        "./BuffDescComponent": "BuffDescComponent"
    }],
    AngelSkillComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4df76yizxBFQZ1JfJMSQaTY", "AngelSkillComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AngelSkillState = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property;
        (function(e) {
            e[e.Dressed = 0] = "Dressed", e[e.Lock = 1] = "Lock", e[e.Normal = 2] = "Normal"
        })(l = n.AngelSkillState || (n.AngelSkillState = {}));
        var y = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.SkillIcon = null, t.SkillStatusNode = null, t.DressedNode = null, t.LockNode = null, t.SelectNode = null, t.LevelNode = null, t.LevelLabel = null, t.SkillName = null, t._loadedAssets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnClickItem, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.OnClickItem, this)
            }, t.prototype.Init = function(e, t, n, o, r, i) {
                this._skillId = e, this._index = n, this._baseUIPanel = i, this.SelectNode.active = n == o, this.LevelNode.active = t > 0, this.SkillName.string = e.ToHeroSkillName(), t > 0 && (this.LevelLabel.string = t.toString()), this.SkillStatusNode.active = r != l.Normal, this.DressedNode.active = r == l.Dressed, this.LockNode.active = r == l.Lock, this.SetIcon()
            }, t.prototype.SetIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = this._skillId, t = u.default.GetSkillIconId(this._skillId), [4, c.AssetsManager.Instance.LoadAsset(p.BundlePath.SkillIcon + "/" + t, cc.SpriteFrame)];
                            case 1:
                                return n = o.sent(), this.isValid && e == this._skillId ? (this.SkillIcon.spriteFrame = n, this._loadedAssets.push(n), [2]) : (c.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.SetSelectState = function(e) {
                this.SelectNode.active = e
            }, t.prototype.SetNameActive = function(e) {
                this.SkillName.node.active = e
            }, t.prototype.OnClickItem = function() {
                this._baseUIPanel.ClickSkillItem(this._index)
            }, t.prototype.onDestroy = function() {
                this._loadedAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([f(cc.Sprite)], t.prototype, "SkillIcon", void 0), i([f(cc.Node)], t.prototype, "SkillStatusNode", void 0), i([f(cc.Node)], t.prototype, "DressedNode", void 0), i([f(cc.Node)], t.prototype, "LockNode", void 0), i([f(cc.Node)], t.prototype, "SelectNode", void 0), i([f(cc.Node)], t.prototype, "LevelNode", void 0), i([f(cc.Label)], t.prototype, "LevelLabel", void 0), i([f(cc.Label)], t.prototype, "SkillName", void 0), i([h], t)
        }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine"
    }],
    AngelSkillTipsComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6a1c7a/xqlL96s02vstulKt", "AngelSkillTipsComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelRichText = null, t.UnlockRichText = null, t.DescRichText = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    e.IsUnlock ? (this.LevelRichText.string = "<outline color=#000000 width=2><color=#ffffff>Lv.{0}</c></o>".Fmt(e.SkillLevel), this.DescRichText.string = "<outline color=#000000 width=2><color=#ffffff>{0}</c></o>".Fmt(e.SkillId.ToHeroSkillDesc()), this.UnlockRichText.string = "<outline color=#000000 width=2><color=#00ff00>{0}</c></o>".Fmt("unlocked".ToUILocale()), this.UnlockRichText.node.active = !0) : (this.LevelRichText.string = "<outline color=#000000 width=2><color=#afbfe7>Lv.{0}</c></o>".Fmt(e.SkillLevel), this.DescRichText.string = "<outline color=#000000 width=2><color=#828b99>{0}</c></o>".Fmt(e.SkillId.ToHeroSkillDesc()), e.Condition > 0 ? (this.UnlockRichText.node.active = !0, 1 == e.Type ? this.UnlockRichText.string = "angel_destiny_light_page".ToUILocale().Fmt(e.Condition) : 2 == e.Type ? this.UnlockRichText.string = "angel_destiny_unlock_star".ToUILocale().Fmt(e.AngelId.ToAngelTitle(), e.Condition) : 3 == e.Type && (this.UnlockRichText.string = "TreasureHouse_WishTree_Skill_Unlock_Tip".ToUILocale().Fmt(e.Condition))) : this.UnlockRichText.node.active = !1)
                }, i([l(cc.RichText)], t.prototype, "LevelRichText", void 0), i([l(cc.RichText)], t.prototype, "UnlockRichText", void 0), i([l(cc.RichText)], t.prototype, "DescRichText", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AngelSkillTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "912ecNZWj1JyrhH58gA0d5/", "AngelSkillTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/SkillItemComponent"),
            h = e("../Components/TipsLocationComponent"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("./AngelSkillTipsComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.MainNode = null, t.MaskBGNode = null, t.SkillItemContainer = null, t.Name = null, t.TypeRichText = null, t._angelSkillTipNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.SkillItemComponent), n = this.LoadDynamicAsset("ItemTipsPanel/Private/AngelSkillTipsComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._skillPrefab = e[0], o._angelSkillTipsPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.FixedValueAssign(), this.MaskBGNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskBGNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._skillPrefab);
                    e.setParent(this.SkillItemContainer), this._skillComponent = e.getComponent(d.default)
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this), this._skillTipDatas = t[0], this._clickNode = t[1], this._skillTipDatas.length > 0)
                        for (var n = 0; n < this._skillTipDatas.length; n++) {
                            var o = this._skillTipDatas[n];
                            if (o.IsCurrentSkill) {
                                this._skillId = o.SkillId, this._skillLevel = o.SkillLevel;
                                break
                            }
                        }
                    this._skillConfig = u.ConfigDataComponent.Instance.GetConfigById(c.SkillBase_Config, this._skillId)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.node.opacity = 0, this._skillId > 0 && this.SetValues()
                }, t.prototype.SetValues = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function() {
                            return this._skillComponent.Init(this._skillId, this._skillLevel), this.Name.string = u.ConfigDataComponent.Instance.GetLocale("SkillBase_name_" + this._skillId), this.TypeRichText.string = "<outline width=3 color=#000000>" + "miraculousEquipTipType".ToUILocale().Fmt("<color = #ffffff>" + f.default.GetSkillTypeStr(this._skillConfig.Type) + "</c>") + "</>", this._angelSkillTipNodes.forEach(function(e) {
                                e.active = !1
                            }), this._skillTipDatas.forEach(function(t, n) {
                                if (!e._angelSkillTipNodes[n]) {
                                    var o = cc.instantiate(e._angelSkillTipsPrefab);
                                    o.parent = e.MainNode.node, e._angelSkillTipNodes[n] = o
                                }
                                e._angelSkillTipNodes[n].active = !0, e._angelSkillTipNodes[n].getComponent(y.default).Init(t)
                            }), this.MainNode.updateLayout(), setTimeout(function() {
                                e.isValid && (e.node.getComponent(h.default).RepositionPanel(e._clickNode), e.node.opacity = 255)
                            }, 1e3 * cc.director.getDeltaTime()), [2]
                        })
                    })
                }, i([I(cc.Layout)], t.prototype, "MainNode", void 0), i([I(cc.Node)], t.prototype, "MaskBGNode", void 0), i([I(cc.Node)], t.prototype, "SkillItemContainer", void 0), i([I(cc.Label)], t.prototype, "Name", void 0), i([I(cc.RichText)], t.prototype, "TypeRichText", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent",
        "./AngelSkillTipsComponent": "AngelSkillTipsComponent"
    }],
    AngelSkinActivePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fc8af+eCItGtbIA1AY2LdqS", "AngelSkinActivePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/HeroAttributeItem"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/SkillItemComponent"),
            y = e("../Components/ItemComponent"),
            g = e("../../Components/Components"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../Components/ConsumeComponent"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.SkillLabel = null, t.SkillNode = null, t.SkillEffectLabel = null, t.AttrNode = null, t.ConsumeLabel = null, t.ConsumeContent = null, t.CancleButton = null, t.CancleLabel = null, t.ActiveButton = null, t.ActiveLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemsComponent/ConsumeComponent", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.SkillItemComponent, cc.Prefab), o = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelSkinAttrComponent", cc.Prefab), r = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._consumePrefab = e[0], i._skillItemPrefab = e[1], i._attrItemPrefab = e[2], i._itemPrefab = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "angel_skin_active".ToUILocale(), this.SkillLabel.string = "angel_skill_active".ToUILocale(), this.SkillEffectLabel.string = "angel_skin_attr".ToUILocale(), this.ConsumeLabel.string = "CollectionPavilion_HeroFetter_Up_Material_Title".ToUILocale(), this.CancleLabel.string = "cancel".ToUILocale(), this.ActiveLabel.string = "active".ToUILocale(), this.CancleButton.node.on("click", this.ClickCancleButton, this), this.ActiveButton.node.on("click", this.ClickActiveButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._skinId = t[0], this._skinConfig = p.ConfigDataComponent.Instance.GetConfigById(c.AngelGodAvatar_Config, this._skinId)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetSkillNode(), this.SetAttrNode(), this.SetConsumeNode()
                }, t.prototype.SetSkillNode = function() {
                    var e = this;
                    this._skinConfig.Skills.forEach(function(t) {
                        var n = cc.instantiate(e._skillItemPrefab);
                        n.y = 15, n.parent = e.SkillNode;
                        var o = n.getComponent(f.default);
                        o.Init(t.Items[0], 1), o.SetName(t.Items[0].ToHeroSkillName())
                    })
                }, t.prototype.SetAttrNode = function() {
                    var e = this;
                    this._skinConfig.GlobalAttrs.forEach(function(t) {
                        var n = cc.instantiate(e._attrItemPrefab);
                        n.parent = e.AttrNode;
                        var o = n.getComponent(d.default),
                            r = {};
                        r.AttrId = t.Items[0], r.AddValue = t.Items[1], r.CurValue = 0, o.InitDoubleValue(r), o.SetTagName("angel_global".ToUILocale())
                    })
                }, t.prototype.SetConsumeNode = function() {
                    var e = this;
                    this._skinConfig.UpdateMaterial.forEach(function(t) {
                        var n = cc.instantiate(e._consumePrefab);
                        n.parent = e.ConsumeContent;
                        var o = n.getComponent(_.default);
                        o.Init(e._itemPrefab, t.Items[0], t.Items[1]), o.SetFixedWidth(250)
                    })
                }, t.prototype.ClickCancleButton = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.CheckConsumeIsEnough = function() {
                    for (var e = 0; e < this._skinConfig.UpdateMaterial.length; e++) {
                        var t = this._skinConfig.UpdateMaterial[e];
                        if (!g.DataCenter.Instance.IsItemEnough(t.Items[0], t.Items[1])) return m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t.Items[0].ToItemName())), !1
                    }
                    return !0
                }, t.prototype.ClickActiveButton = function() {
                    if (this.CheckConsumeIsEnough()) {
                        var e = new u.Req_Item_AngelActiveSkin;
                        e.SkinId = this._skinId, g.RpcComponent.Instance.Call(e, this.SkinActiveSuccess.bind(this))
                    }
                }, t.prototype.SkinActiveSuccess = function() {
                    m.UIUtlity.ShowFloatingHint("active_success".ToUILocale()), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    this.ConsumeContent.children.forEach(function(e) {
                        -1 != e.getChildByName("ItemNode").children.indexOf(t) && m.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                    })
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Label)], t.prototype, "SkillLabel", void 0), i([b(cc.Node)], t.prototype, "SkillNode", void 0), i([b(cc.Label)], t.prototype, "SkillEffectLabel", void 0), i([b(cc.Node)], t.prototype, "AttrNode", void 0), i([b(cc.Label)], t.prototype, "ConsumeLabel", void 0), i([b(cc.Node)], t.prototype, "ConsumeContent", void 0), i([b(cc.Button)], t.prototype, "CancleButton", void 0), i([b(cc.Label)], t.prototype, "CancleLabel", void 0), i([b(cc.Button)], t.prototype, "ActiveButton", void 0), i([b(cc.Label)], t.prototype, "ActiveLabel", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ConsumeComponent": "ConsumeComponent",
        "../Components/HeroAttributeItem": "HeroAttributeItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SkillItemComponent": "SkillItemComponent"
    }],
    AngelSkinPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "65a31RdLxFAkLD1KxNxUOfP", "AngelSkinPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../../Components/Components"),
            f = e("../Components/HeroSkinCardComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("./AngelSelectSkillPanel"),
            _ = e("../Components/SkillItemComponent"),
            C = e("../Components/HeroAttributeItem"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.AngelTitle = null, t.AngelUIContainer = null, t.AngelAvatarContainer = null, t.RuleButton = null, t.LeftButton = null, t.RightButton = null, t.SkinMoreNode = null, t.SkinOneNode = null, t.SelfNode = null, t.OtherNode = null, t.SKillsNode = null, t.AttrsNode = null, t.ActiveRewardLabel = null, t.DressButton = null, t.DressLabel = null, t.HasDressButton = null, t.HasDressLabel = null, t.ActiveButton = null, t.ActiveLabel = null, t.ReturnButton = null, t.ActiveReddot = null, t._angelId = 0, t._isMoving = !1, t._skinIds = [], t._selectIdx = 0, t._skinNodes = [], t._skillNodes = [], t._selfSkillNodes = [], t._attrNodes = [], t._skinNode = null, t.InitPosX = -307, t.Offset = 216.8, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ANGEL_SKIN_REFRESH, this.OnRefreshSkin, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ANGEL_SKIN_REFRESH, this.OnRefreshSkin)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HeroInfoPanel/HeroSkinCardComponent", cc.Prefab), n = this.LoadDynamicAsset(m.BundlePath.SkillItemComponent, cc.Prefab), o = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelAttributeComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._skinCardPrefab = e[0], r._skillItemPrefab = e[1], r._attrItemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.DressLabel.string = "heroSkin_dress".ToUILocale(), this.HasDressLabel.string = "heroSkin_hasDress".ToUILocale(), this.ActiveRewardLabel.string = "angel_active_skin_get".ToUILocale(), this.ActiveLabel.string = "active".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.LeftButton.node.on("click", this.OnLeftButtonClick, this), this.RightButton.node.on("click", this.OnRightButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnBtnClick, this), this.DressButton.node.on("click", this.OnDressButtonClick, this), this.ActiveButton.node.on("click", this.OnActiveButtonClick, this), this.SkinMoreNode.x = this.InitPosX
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._angelId = t[0], this._angelModel = d.DataCenter.Instance.GetDataById(c.UserAngel_Model, this._angelId), this._angelBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(u.AngelBase_Config, this._angelId), this._skinIds = this.GetAngelSkinIds(), this.SortSkins(), this._angelModel.SkinId > 0 ? this._selectIdx = this._skinIds.indexOf(this._angelModel.SkinId) > -1 ? this._skinIds.indexOf(this._angelModel.SkinId) : 0 : this._selectIdx = 0
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.SetUIContent(), [2]
                        })
                    })
                }, t.prototype.SetUIContent = function() {
                    this.InitSkinNodes(), this.SetNameAndTitle(), this.SetSkillNode(), this.SetSkinCards(), this.SetButtons(), this.SetSkinNodesPostion(), this.SetAngelAvatar(), this.SetReddot()
                }, t.prototype.UpdateContent = function() {
                    this.SetNameAndTitle(), this.SetSkillNode(), this.SetSkinCards(), this.SetButtons(), this.SetAngelAvatar(), this.SetReddot()
                }, t.prototype.GetAngelSkinIds = function() {
                    var e = [],
                        t = d.ConfigDataComponent.Instance.GetConfigById(u.AngelBase_Config, this._angelId),
                        n = d.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * this._angelId + this._angelModel.StarLevel);
                    return this._selfSkinId = n.AngelShape, e.push(n.AngelShape), t.GodAvatar.forEach(function(t) {
                        e.push(t)
                    }), e
                }, t.prototype.SortSkins = function() {
                    var e = this;
                    this._skinIds.length > 1 && this._skinIds.sort(function(t, n) {
                        if (t == e._selfSkinId && n != e._selfSkinId) return -1;
                        if (t != e._selfSkinId && n == e._selfSkinId) return 1;
                        var o = I.default.CheckSkinIsUnlock(t),
                            r = I.default.CheckSkinIsUnlock(n);
                        return o && !r ? -1 : !o && r ? 1 : t - n
                    })
                }, t.prototype.InitSkinNodes = function() {
                    this._skinNodes.forEach(function(e) {
                        e.active = !1
                    }), this.SkinMoreNode.active = !1, this.SkinOneNode.active = !1
                }, t.prototype.SetNameAndTitle = function() {
                    this.AngelTitle.string = this._angelId.ToAngelTitle(), this._curAngelSkinConfig = h.ConfigDataComponent.Instance.GetConfigById(u.AngelGodAvatar_Config, this._skinIds[this._selectIdx])
                }, t.prototype.SetSkillNode = function() {
                    this._skinIds[this._selectIdx] == this._selfSkinId ? (this.SelfNode.active = !0, this.OtherNode.active = !1, this.SetSelfSkillNodes()) : (this.SelfNode.active = !1, this.OtherNode.active = !0, this.SetSkinSkillNodes(), this.SetAttrNodes())
                }, t.prototype.SetSelfSkillNodes = function() {
                    var e = this;
                    this._selfSkillNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var t = I.default.GetAngelAllSkills(this._angelId);
                    this._angelBaseConfig.Skills.forEach(function(n, o) {
                        if (!e._selfSkillNodes[o]) {
                            var r = cc.instantiate(e._skillItemPrefab);
                            r.parent = e.SelfNode, e._selfSkillNodes[o] = r
                        }
                        var i = e.GetSkillLevel(n.Items, t);
                        e._selfSkillNodes[o].active = !0, e._selfSkillNodes[o].getComponent(_.default).Init(i.SkillId, i.Level)
                    })
                }, t.prototype.SetSkinSkillNodes = function() {
                    var e = this;
                    this._skillNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var t = I.default.GetAngelAllSkills(this._angelId);
                    this._curAngelSkinConfig.Skills.forEach(function(n, o) {
                        if (!e._skillNodes[o]) {
                            var r = cc.instantiate(e._skillItemPrefab);
                            r.parent = e.SKillsNode, e._skillNodes[o] = r
                        }
                        var i = e.GetSkillLevel(n.Items, t);
                        e._skillNodes[o].active = !0, e._skillNodes[o].getComponent(_.default).Init(i.SkillId, i.Level)
                    })
                }, t.prototype.SetAttrNodes = function() {
                    var e = this;
                    this._attrNodes.forEach(function(e) {
                        e.active = !1
                    }), this._curAngelSkinConfig.GlobalAttrs.forEach(function(t, n) {
                        if (!e._attrNodes[n]) {
                            var o = cc.instantiate(e._attrItemPrefab);
                            o.parent = e.AttrsNode, e._attrNodes[n] = o
                        }
                        e._attrNodes[n].active = !0;
                        var r = e._attrNodes[n].getComponent(C.default);
                        r.Init(t.Items[0], t.Items[1], !0), r.SetTagName("angel_global".ToUILocale())
                    })
                }, t.prototype.GetSkillLevel = function(e, t) {
                    for (var n, o = !1, r = 0; r < e.length && !o; r++)
                        for (var i = 0; i < t.length; i++)
                            if (e[r] == t[i].SkillId) {
                                (n = {}).SkillId = e[r], n.Active = !0, n.Level = r + 1, o = !0;
                                break
                            } return n || ((n = {}).SkillId = e[0], n.Active = !0, n.Level = 1), n
                }, t.prototype.SetSkinCards = function() {
                    var e = this;
                    if (this._skinIds.length > 1) this.SkinMoreNode.active = !0, this._skinIds.forEach(function(t, n) {
                        if (!e._skinNodes[n]) {
                            var o = cc.instantiate(e._skinCardPrefab);
                            o.parent = e.SkinMoreNode, e._skinNodes[n] = o
                        }
                        e._skinNodes[n].active = !0;
                        var r = e._skinNodes[n].getComponent(f.default);
                        r.Init(t, n, 1);
                        var i = h.DataCenter.Instance.GetDataById(c.AngelSkin_Model, t),
                            a = h.DataCenter.Instance.GetDataById(c.UserAngel_Model, e._angelId);
                        a && a.SkinId ? r.SetCurrent(a.SkinId == t) : r.SetCurrent(e._selfSkinId == t), i ? i.IsPerpetual || i.Time > h.RpcComponent.Instance.ServerTime ? r.SetLock(!0) : r.SetLock(!1) : e._selfSkinId == t ? r.SetLock(!0) : r.SetLock(!1)
                    });
                    else if (1 == this._skinIds.length) {
                        if (this.SkinOneNode.active = !0, !this._skinNode) {
                            var t = cc.instantiate(this._skinCardPrefab);
                            t.parent = this.SkinOneNode, this._skinNode = t
                        }
                        var n = this._skinNode.getComponent(f.default);
                        n.Init(this._skinIds[0], 0, 1), n.SetCurrent(!0), n.SetLock(!0)
                    }
                }, t.prototype.SetButtons = function() {
                    if (this.DressButton.node.active = !1, this.HasDressButton.node.active = !1, this.ActiveButton.node.active = !1, this._skinIds[this._selectIdx] == this._selfSkinId) this.ActiveRewardLabel.node.active = !1, this._angelModel.SkinId > 0 ? this.DressButton.node.active = !0 : this.HasDressButton.node.active = !0;
                    else {
                        this.ActiveRewardLabel.node.active = !0;
                        var e = h.DataCenter.Instance.GetDataById(c.AngelSkin_Model, this._skinIds[this._selectIdx]);
                        e && e.IsPerpetual ? e.Sid == this._angelModel.SkinId ? this.HasDressButton.node.active = !0 : this.DressButton.node.active = !0 : this.ActiveButton.node.active = !0
                    }
                }, t.prototype.SetAngelAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, d, f, y;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return n = 0, o = [], n = this._selectIdx, o = this._skinIds, r = "", i = "", this._curAngelSkinConfig ? (r = this._curAngelSkinConfig.UIAvatar, i = this._curAngelSkinConfig.Model) : (a = h.ConfigDataComponent.Instance.GetConfigById(u.AngelGodAvatar_Config, this._selfSkinId), r = a.UIAvatar, i = a.Model), c = this.LoadDynamicAsset(r + "/Avatar"), d = this.LoadDynamicAsset("Angels_" + i + "/HeroAvatar"), [4, Promise.all([c, d]).then(function(n) {
                                        e = n[0], t = n[1]
                                    })];
                                case 1:
                                    return s.sent(), n != this._selectIdx && o != this._skinIds ? (l.AssetsManager.Instance.UnloadAsset(e), l.AssetsManager.Instance.UnloadAsset(t), [2]) : this.isValid ? (this.AngelUIContainer.destroyAllChildren(), this.AngelAvatarContainer.destroyAllChildren(), (f = cc.instantiate(e)).opacity = 0, f.setParent(this.AngelUIContainer), (y = cc.instantiate(t)).opacity = 0, y.setParent(this.AngelAvatarContainer), f.getComponent(sp.Skeleton).clearTracks(), f.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0), cc.tween(f).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start(), y.getComponent(sp.Skeleton).clearTracks(), y.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0), cc.tween(y).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start(), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetReddot = function() {
                    this.ActiveReddot.active = !1, h.DataCenter.Instance.GetDataById(c.AngelSkin_Model, this._skinIds[this._selectIdx]) || this.CheckConsumeIsEnough() && (this.ActiveReddot.active = !0)
                }, t.prototype.SetSkinNodesPostion = function() {
                    if (this._skinIds.length > 1) {
                        var e = this._skinIds.length;
                        this.LeftButton.node.active = this._selectIdx > 0, this.RightButton.node.active = this._selectIdx < e - 1, this.SkinMoreNode.x = this.InitPosX + this.Offset - this._selectIdx * this.Offset, this._skinNodes[this._selectIdx].scale = 1.25
                    } else 1 == this._skinIds.length && (this.LeftButton.node.active = !1, this.RightButton.node.active = !1)
                }, t.prototype.MoveSkinCard = function(e) {
                    var t = this,
                        n = this.SkinMoreNode.x,
                        o = 1 == e ? n + this.Offset : n - this.Offset;
                    e ? (cc.tween(this._skinNodes[this._selectIdx + 1]).to(.25, {
                        scale: 1
                    }).start(), cc.tween(this._skinNodes[this._selectIdx]).to(.25, {
                        scale: 1.25
                    }).start()) : (cc.tween(this._skinNodes[this._selectIdx - 1]).to(.25, {
                        scale: 1
                    }).start(), cc.tween(this._skinNodes[this._selectIdx]).to(.25, {
                        scale: 1.25
                    }).start()), cc.tween(this.SkinMoreNode).to(.25, {
                        x: o
                    }).call(function() {
                        if (t._skinIds.length > 1) {
                            var e = t._skinIds.length;
                            t.LeftButton.node.active = t._selectIdx > 0, t.RightButton.node.active = t._selectIdx < e - 1
                        } else 1 == t._skinIds.length && (t.LeftButton.node.active = !1, t.RightButton.node.active = !1);
                        t._isMoving = !1
                    }).start()
                }, t.prototype.CheckConsumeIsEnough = function() {
                    for (var e = 0; e < this._curAngelSkinConfig.UpdateMaterial.length; e++) {
                        var t = this._curAngelSkinConfig.UpdateMaterial[e];
                        if (!h.DataCenter.Instance.IsItemEnough(t.Items[0], t.Items[1])) return !1
                    }
                    return !0
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "angel_skin_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["angel_skin_rule_content".ToUILocale()]
                    };
                    g.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnLeftButtonClick = function() {
                    var e = this._selectIdx - 1;
                    e < 0 || this._isMoving || (this._selectIdx = Math.max(e, 0), this._isMoving = !0, this.MoveSkinCard(!0), this.UpdateContent())
                }, t.prototype.OnRightButtonClick = function() {
                    var e = this._selectIdx + 1,
                        t = this._skinIds.length;
                    e >= t || this._isMoving || (this._selectIdx = Math.min(e, t - 1), this._isMoving = !0, this.MoveSkinCard(!1), this.UpdateContent())
                }, t.prototype.OnReturnBtnClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnDressButtonClick = function() {
                    var e = this,
                        t = new c.Req_Item_AngelSetSkin,
                        n = this._skinIds[this._selectIdx] == this._selfSkinId ? 0 : this._skinIds[this._selectIdx];
                    t.SkinId = n, t.AngelId = this._angelId, h.RpcComponent.Instance.Call(t, function() {
                        e._angelModel = d.DataCenter.Instance.GetDataById(c.UserAngel_Model, e._angelId), e.SetButtons(), e.SetSkinCards(), g.UIUtlity.ShowFloatingHint("angel_skin_dress_success".ToUILocale())
                    })
                }, t.prototype.OnActiveButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AngelSkinActivePanel.Path, this._skinIds[this._selectIdx])
                }, t.prototype.OnRefreshSkin = function(e) {
                    e > this._selectIdx ? this.OnRightButtonClick() : e < this._selectIdx && this.OnLeftButtonClick()
                }, i([S(cc.Label)], t.prototype, "AngelTitle", void 0), i([S(cc.Node)], t.prototype, "AngelUIContainer", void 0), i([S(cc.Node)], t.prototype, "AngelAvatarContainer", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.Button)], t.prototype, "LeftButton", void 0), i([S(cc.Button)], t.prototype, "RightButton", void 0), i([S(cc.Node)], t.prototype, "SkinMoreNode", void 0), i([S(cc.Node)], t.prototype, "SkinOneNode", void 0), i([S(cc.Node)], t.prototype, "SelfNode", void 0), i([S(cc.Node)], t.prototype, "OtherNode", void 0), i([S(cc.Node)], t.prototype, "SKillsNode", void 0), i([S(cc.Node)], t.prototype, "AttrsNode", void 0), i([S(cc.Label)], t.prototype, "ActiveRewardLabel", void 0), i([S(cc.Button)], t.prototype, "DressButton", void 0), i([S(cc.Label)], t.prototype, "DressLabel", void 0), i([S(cc.Button)], t.prototype, "HasDressButton", void 0), i([S(cc.Label)], t.prototype, "HasDressLabel", void 0), i([S(cc.Button)], t.prototype, "ActiveButton", void 0), i([S(cc.Label)], t.prototype, "ActiveLabel", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([S(cc.Node)], t.prototype, "ActiveReddot", void 0), i([b], t)
            }(l.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeroAttributeItem": "HeroAttributeItem",
        "../Components/HeroSkinCardComponent": "HeroSkinCardComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./AngelSelectSkillPanel": "AngelSelectSkillPanel"
    }],
    AngelSoulComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "59710gmTCtCjol/RX7CZU0I", "AngelSoulComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./AngelSoulGrooveComponent"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Auxiliary/EventKeys"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CombineNode = void 0, t.OverViewNode = void 0, t.Container = void 0, t.CombineLabel = null, t.OverViewLabel = null, t.PreviewButton = null, t.PreviewButtonLabel = null, t._grooveNum = 5, t._GodSoulIdList = [], t._componentList = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.CombineLabel.string = "compose".ToUILocale(), this.OverViewLabel.string = "godSoul_OverView".ToUILocale(), this.PreviewButtonLabel.string = "GodSoul_Preview".ToUILocale(), this.CombineNode.on("click", this.OnClickCombine, this), this.OverViewNode.on("click", this.OnClickOverView, this), this.PreviewButton.node.on("click", this.OnPreviewButtonClick, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_GODSOUL_EQU, this.RenderSoul, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_GODSOUL_TAKE_OFF, this.RenderSoul, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_GODSOUL_CAST_SAVE, this.RenderSoul, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_GODSOUL_EQU, this.RenderSoul, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_GODSOUL_TAKE_OFF, this.RenderSoul, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_GODSOUL_CAST_SAVE, this.RenderSoul, this)
                }, t.prototype.Init = function(e) {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e && (this._selectAngel = e), this._groovePrefab ? [3, 2] : (t = this, [4, l.AssetsManager.Instance.LoadAsset("HeroInfoPanel/Components/AngelSoulGrooveComponent", cc.Prefab)]);
                                case 1:
                                    if (t._groovePrefab = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._groovePrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this.RenderSoul(), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._groovePrefab)
                }, t.prototype.OnClickCombine = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.AngelGodSoulCombinePanel.Path)
                }, t.prototype.OnClickOverView = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.AngelGodSoulOverviewPanel.Path, this._selectAngel.AngelId)
                }, t.prototype.OnPreviewButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.AngelGodSoulPreviewPanel.Path)
                }, t.prototype.RenderSoul = function() {
                    for (var e = 0; e < this._grooveNum; e++)
                        if (this._componentList[e]) this._componentList[e].SetState(this._selectAngel.AngelId, e + 1);
                        else {
                            var t = cc.instantiate(this._groovePrefab),
                                n = t.getComponent(c.default);
                            this.Container.addChild(t), this._componentList.push(n), this._componentList[e].SetState(this._selectAngel.AngelId, e + 1)
                        }
                }, i([f(cc.Node)], t.prototype, "CombineNode", void 0), i([f(cc.Node)], t.prototype, "OverViewNode", void 0), i([f(cc.Node)], t.prototype, "Container", void 0), i([f(cc.Label)], t.prototype, "CombineLabel", void 0), i([f(cc.Label)], t.prototype, "OverViewLabel", void 0), i([f(cc.Button)], t.prototype, "PreviewButton", void 0), i([f(cc.Label)], t.prototype, "PreviewButtonLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./AngelSoulGrooveComponent": "AngelSoulGrooveComponent"
    }],
    AngelSoulGrooveComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "df8862t0B1DAoKgrtNrNvpB", "AngelSoulGrooveComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AngelSoulGrooveState = void 0;
        var l, c = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("./ItemComponent"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/Components"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("./ItemClickComponent"),
            _ = e("../../../Consts/GameEventIds"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property;
        (function(e) {
            e[e.Lock = 0] = "Lock", e[e.Empty = 1] = "Empty", e[e.Have = 2] = "Have"
        })(l = n.AngelSoulGrooveState || (n.AngelSoulGrooveState = {}));
        var S = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LockNode = void 0, t.EmptyNode = void 0, t.BackNode = void 0, t.BackSprite = void 0, t.ItemContainer = void 0, t.BtnNode = void 0, t.RedDot = void 0, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "ItemId", {
                get: function() {
                    return this._itemId
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onLoad = function() {
                this.BtnNode.on("click", this.OnClick, this)
            }, t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(_.GameEventIds.AddDataDetail.Fmt(m.UserAngel_Model._n_), this.Refresh, this), u.Game.EventDispatcher.On(_.GameEventIds.ChangeDataDetail.Fmt(m.UserAngel_Model._n_), this.Refresh, this), u.Game.EventDispatcher.On(_.GameEventIds.RemoveDataDetail.Fmt(m.UserAngel_Model._n_), this.Refresh, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(_.GameEventIds.AddDataDetail.Fmt(m.UserAngel_Model._n_), this.Refresh, this), u.Game.EventDispatcher.Off(_.GameEventIds.ChangeDataDetail.Fmt(m.UserAngel_Model._n_), this.Refresh, this), u.Game.EventDispatcher.Off(_.GameEventIds.RemoveDataDetail.Fmt(m.UserAngel_Model._n_), this.Refresh, this)
            }, t.prototype.SetState = function(e, t) {
                this._angelId = e, this._slotId = t, this.Refresh()
            }, t.prototype.Refresh = function() {
                switch (this.CalculateState(), this.LockNode.active = !1, this.BackNode.active = !1, this.EmptyNode.active = !1, this.ItemContainer.active = !1, h.UIUtlity.OffSpriteGray(this.BackSprite), this._state) {
                    case l.Lock:
                        this.LockNode.active = !0, this.BackNode.active = !0, h.UIUtlity.OnSpriteDark(this.BackSprite, .6);
                        break;
                    case l.Empty:
                        this.BackNode.active = !0, this.EmptyNode.active = !0;
                        break;
                    case l.Have:
                        this.ItemContainer.active = !0;
                        var e = g.DataCenter.Instance.GetDataById(m.UserGodSoul_Model, this._soulSid);
                        this._itemId = e.ItemId, this.RenderSoul(), this.ShouSoulInfoPanel
                }
                this.SetRedDot()
            }, t.prototype.OnClick = function() {
                switch (this._state) {
                    case l.Lock:
                        this.ShowUnlockCondition();
                        break;
                    case l.Empty:
                        this.ShowSoulListPanel();
                        break;
                    case l.Have:
                        this.ShouSoulInfoPanel()
                }
            }, t.prototype.ShowSoulListPanel = function() {
                this.CalculateState();
                var e = {
                    angelId: this._angelId,
                    slotId: this._slotId,
                    godSoulSid: this._soulSid
                };
                u.UIManager.Instance.ShowUIPanel(d.PanelConfig.AngelGodSoulListPanel.Path, e)
            }, t.prototype.ShowUnlockCondition = function() {
                var e = p.default.GetAngelSouls(this._angelId);
                h.UIUtlity.ShowFloatingHint("angel_destiny_unlock".ToUILocale().Fmt(e[this._slotId - 1].Level))
            }, t.prototype.ShouSoulInfoPanel = function() {
                this._soulSid && u.UIManager.Instance.ShowUIPanel(d.PanelConfig.AngelGodSoulinfoPanel.Path, this._soulSid)
            }, t.prototype.RenderSoul = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent, cc.Prefab)]);
                            case 1:
                                if (e._itemPrefab = r.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                r.label = 2;
                            case 2:
                                return (t = cc.instantiate(this._itemPrefab)).getComponent(I.default).enabled = !1, (n = t.getComponent(f.ItemComponent)).Init({
                                    ItemId: this._itemId
                                }), this.ItemId && (o = g.ConfigDataComponent.Instance.GetConfigById(y.AngelGodSoul_Config, this._itemId), n.SetLeftTopTag(!0, h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg6"), o.Level)), t.scaleX = .7, t.scaleY = .7, t.y = -15, this.ItemContainer.destroyAllChildren(), this.ItemContainer.addChild(t), [2]
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                this._itemPrefab && c.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
            }, t.prototype.CalculateState = function() {
                var e = p.default.GetAngelGodSoulData(this._angelId),
                    t = g.ConfigDataComponent.Instance.GetConfigById(y.AngelGodSoulPos_Config, this._slotId),
                    n = t.FatePoint ? t.FatePoint : 0,
                    o = g.DataCenter.Instance.GetDataById(m.UserAngel_Model, this._angelId),
                    r = [];
                if (o && (r = o.FatePoints), n && -1 == r.indexOf(n)) this._state = l.Lock;
                else {
                    for (var i = 0; i < e.length; i++) {
                        var a = e[i];
                        if (a.slotId == this._slotId) return this._soulSid = a.soulSid, void(this._state = l.Have)
                    }
                    this._soulSid = void 0, this._state = l.Empty
                }
            }, t.prototype.SetRedDot = function() {
                var e = this,
                    t = g.DataCenter.Instance.GetDataList(m.UserGodSoul_Model);
                if (t = t.filter(function(e) {
                        return !e.OwnerId
                    }), this._state == l.Empty && 0 != t.length) this.RedDot.active = !0;
                else {
                    if (this._state == l.Have) {
                        var n = g.DataCenter.Instance.GetDataById(m.UserGodSoul_Model, this._soulSid),
                            o = g.ConfigDataComponent.Instance.GetConfig(y.AngelGodSoul_Config),
                            r = g.DataCenter.Instance.GetDataList(m.UserGodSoul_Model),
                            i = o[n.ItemId].Level,
                            a = {},
                            s = {};
                        r.forEach(function(t) {
                            t.OwnerId == e._angelId && (a[o[t.ItemId].Type] = !0);
                            var n = o[t.ItemId];
                            !t.OwnerId && n.Level > i && (s[n.Type] = !0)
                        });
                        for (var c = Object.keys(s), u = 0; u < c.length; u++) {
                            var p = c[u];
                            if (!a[p]) return void(this.RedDot.active = !0)
                        }
                        return void(this.RedDot.active = !1)
                    }
                    this.RedDot.active = !1
                }
            }, i([b(cc.Node)], t.prototype, "LockNode", void 0), i([b(cc.Node)], t.prototype, "EmptyNode", void 0), i([b(cc.Node)], t.prototype, "BackNode", void 0), i([b(cc.Sprite)], t.prototype, "BackSprite", void 0), i([b(cc.Node)], t.prototype, "ItemContainer", void 0), i([b(cc.Node)], t.prototype, "BtnNode", void 0), i([b(cc.Node)], t.prototype, "RedDot", void 0), i([v], t)
        }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent"
    }],
    AngelSoulListItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f94deUpXalPf4vEolTWuwO+", "AngelSoulListItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/DataCenter"),
            s = e("./ItemClickComponent"),
            l = e("./ItemComponent"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("./GodSoulItemComponent"),
            p = e("../../Auxiliary/DataUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SoulName = null, t.SoulContainer = null, t.OwnerName = null, t.OwnerContainer = null, t.BlueButton = null, t.OrangeButton = null, t.BlueButtonLabel = null, t.OrangeButtonLabel = null, t.SoulDetialLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.BlueButton.node.on("click", this.OnOrangeButtonClick, this), this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.BlueButton.node.off("click", this.OnOrangeButtonClick, this), this.OrangeButton.node.off("click", this.OnOrangeButtonClick, this)
                }, t.prototype.Set = function(e, t) {
                    if (this._panel = e, this._model = this._panel.GetModelBySid(t), this._config = this._panel.GetSoulConfigById(this._model.ItemId), this._soulItemPrefab = this._panel.GetSoulItemPrefab(), this._itemPrefab = this._panel.GetItemPrefab(), this.SoulName.string = this._model.ItemId.ToItemName(), null == this._soulItem && ((n = cc.instantiate(this._soulItemPrefab)).setParent(this.SoulContainer), this._soulItem = n.getComponent(u.default)), this._soulItem.Init(t), this.OwnerName.node.active = !1, this.OwnerContainer.active = !1, this.BlueButton.node.active = !1, this.BlueButtonLabel.string = "equip_replace".ToUILocale(), this.OrangeButtonLabel.string = "equip_wear".ToUILocale(), this._model.OwnerId) {
                        this.OwnerName.node.active = !0, this.OwnerContainer.active = !0;
                        var n, o = a.DataCenter.Instance.GetDataById(c.UserAngel_Model, this._model.OwnerId);
                        this.OwnerName.string = "runeOwner".ToUILocale(), null == this._heroItem && ((n = cc.instantiate(this._itemPrefab)).setParent(this.OwnerContainer), this._heroItem = n.getComponent(l.ItemComponent), this._heroItem.getComponent(s.default).enabled = !1), this._heroItem.Init({
                            ItemId: o.AngelId,
                            StarLevel: o.StarLevel,
                            SkinId: o.SkinId
                        }, l.ItemComponentType.Angel), this.BlueButton.node.active = !0
                    }
                    this.OrangeButton.node.active = !this.BlueButton.node.active, this.RenderSkillDes()
                }, t.prototype.OnOrangeButtonClick = function() {
                    this._panel.OnItemComponentClick(this._model.Sid)
                }, t.prototype.RenderSkillDes = function() {
                    var e = this._config.Skills,
                        t = "";
                    e.forEach(function(e) {
                        t += e.ToHeroSkillDesc(), t += "<br/>"
                    });
                    var n = this._config.Attr;
                    n && n.length > 0 && n.forEach(function(e) {
                        var n = p.default.GetHeroAttribute(e.Items[0], e.Items[1]);
                        t += "angelGodSoul_AttrAdd".ToUILocale().Fmt(n.Name, n.Value), t += "<br/>"
                    }), this.SoulDetialLabel.string = t
                }, i([f(cc.Label)], t.prototype, "SoulName", void 0), i([f(cc.Node)], t.prototype, "SoulContainer", void 0), i([f(cc.Label)], t.prototype, "OwnerName", void 0), i([f(cc.Node)], t.prototype, "OwnerContainer", void 0), i([f(cc.Button)], t.prototype, "BlueButton", void 0), i([f(cc.Button)], t.prototype, "OrangeButton", void 0), i([f(cc.Label)], t.prototype, "BlueButtonLabel", void 0), i([f(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([f(cc.RichText)], t.prototype, "SoulDetialLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/DataCenter": "DataCenter",
        "./GodSoulItemComponent": "GodSoulItemComponent",
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent"
    }],
    AngelToggleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "783f2kZ0ThCpp37XqKtTkTL", "AngelToggleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icons = [], t._loadAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._data = e, this.SetIcon()
                }, t.prototype.GetData = function() {
                    return this._data
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset("AngelPanel/PNG/toggle_" + this._data.Type, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._loadAssets.push(e), this.Icons.forEach(function(t) {
                                        t.spriteFrame = e
                                    }), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([p(cc.Sprite)], t.prototype, "Icons", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    AngelUpStarAddtionComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "42046a8b2BPhLggPtAyMpz/", "AngelUpStarAddtionComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PointIcon = null, t.RollText = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.PointIcon.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeUnlock"), this.RollText.string = e + " " + t
                }, i([c(cc.Sprite)], t.prototype, "PointIcon", void 0), i([c(cc.RichText)], t.prototype, "RollText", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AngelUpStarAttrInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b5329ybJDFM5aoLvKRytrkG", "AngelUpStarAttrInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../Components/AttributeItemComponent"),
            h = e("../Components/AngelUpStarAddtionComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.PointAttrTitle = null, t.PointAttrContainer = null, t.StarAttrTitle = null, t.StarAttrContainer = null, t.AddtionTitle = null, t.AddtionContainer = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HeroInfoPanel/Components/AttributeItemComponent", cc.Prefab), n = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelUpStarAddtionComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._attrPrefab = e[0], o._addtionPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "angel_star_attr_info".ToUILocale(), this.PointAttrTitle.string = "angel_star_attr_point".ToUILocale(), this.StarAttrTitle.string = "angel_star_attr_upStar".ToUILocale(), this.AddtionTitle.string = "angel_star_up_effect".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._angelModel = t[0], this._starConfig = c.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * this._angelModel.AngelId + this._angelModel.StarLevel), this._nextStarConfig = c.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * this._angelModel.AngelId + this._angelModel.StarLevel + 1)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetAttrDataArray(), this.SetPointAttrContainer(), this.SetStarAttrContainer(), this.SetAddtion()
                }, t.prototype.SetAttrDataArray = function() {
                    this._currentAttrArray = {}, this.SetStarAttrData(this._starConfig.Attrs), this.SetStarAttrData(this._starConfig.AngelAttrs);
                    for (var e = 0; e < this._angelModel.SubStarLevel; e++) this.SetPointAttrData(this._starConfig.PointAttrs[e].Items), this.SetPointAttrData(this._starConfig.AngelPointAttrs[e].Items)
                }, t.prototype.SetStarAttrData = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        var n = e[t].Items;
                        this._currentAttrArray[n[0]] = n[1]
                    }
                }, t.prototype.SetPointAttrData = function(e) {
                    if (e.length > 1)
                        for (var t = 0; t < e.length; t += 2) {
                            var n = e[t],
                                o = e[t + 1];
                            this._currentAttrArray[n] ? this._currentAttrArray[n] += o : this._currentAttrArray[n] = o
                        }
                }, t.prototype.SetPointAttrContainer = function() {
                    this.SetPointContainer(this._starConfig.PointAttrs[this._angelModel.SubStarLevel].Items, !0), this.SetPointContainer(this._starConfig.AngelPointAttrs[this._angelModel.SubStarLevel].Items, !1)
                }, t.prototype.SetPointContainer = function(e, t) {
                    if (e.length > 1)
                        for (var n = 0; n < e.length; n += 2) {
                            var o = cc.instantiate(this._attrPrefab);
                            o.setParent(this.PointAttrContainer);
                            var r = e[n],
                                i = this._currentAttrArray[r] ? this._currentAttrArray[r] : 0,
                                a = i + e[n + 1],
                                s = p.default.GetHeroAttribute(r, i),
                                l = p.default.GetHeroAttribute(r, a),
                                c = {
                                    Name: t ? "angel_global".ToUILocale() + l.Name : l.Name,
                                    Icon: l.Icon,
                                    OldValue: "+" + s.Value,
                                    NewValue: "+" + l.Value
                                };
                            o.getComponent(d.default).Init(c)
                        }
                }, t.prototype.SetStarAttrContainer = function() {
                    this.SetAttrContainer(this._nextStarConfig.Attrs, !0), this.SetAttrContainer(this._nextStarConfig.AngelAttrs, !1)
                }, t.prototype.SetAttrContainer = function(e, t) {
                    for (var n = 0; n < e.length; n++) {
                        var o = cc.instantiate(this._attrPrefab);
                        o.setParent(this.StarAttrContainer);
                        var r = e[n].Items[0],
                            i = this._currentAttrArray[r] ? this._currentAttrArray[r] : 0,
                            a = e[n].Items[1],
                            s = p.default.GetHeroAttribute(r, i),
                            l = p.default.GetHeroAttribute(r, a),
                            c = {
                                Name: t ? "angel_global".ToUILocale() + l.Name : l.Name,
                                Icon: l.Icon,
                                OldValue: "+" + s.Value,
                                NewValue: "+" + l.Value
                            };
                        o.getComponent(d.default).Init(c)
                    }
                }, t.prototype.SetAddtion = function() {
                    var e = {};
                    e["angel_star_up_effect_tag_level".ToUILocale()] = "angel_star_up_effect_value_level".ToUILocale().Fmt(this._nextStarConfig.LevelLimit), this._starConfig.AngelShape != this._nextStarConfig.AngelShape && (e["angel_star_up_effect_tag_shape".ToUILocale()] = "angel_star_up_effect_value_shape".ToUILocale());
                    for (var t = 0; t < this._nextStarConfig.GlobalSkills.length; t++) {
                        var n = this._nextStarConfig.GlobalSkills[t];
                        e["angel_star_up_effect_tag_skill".ToUILocale().Fmt(n.ToHeroSkillName())] = "angel_star_up_effect_value_level".ToUILocale().Fmt(p.default.GetAngelSkillLevelBySkillId(this._angelModel.AngelId, n, 2))
                    }
                    for (var o in e["angel_star_up_effect_tag_attack".ToUILocale()] = "angel_star_up_effect_value_attack".ToUILocale().Fmt(this._nextStarConfig.PercentAttr / 10), e) {
                        var r = cc.instantiate(this._addtionPrefab);
                        r.setParent(this.AddtionContainer), r.getComponent(h.default).Init(o, e[o])
                    }
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "PointAttrTitle", void 0), i([g(cc.Node)], t.prototype, "PointAttrContainer", void 0), i([g(cc.Label)], t.prototype, "StarAttrTitle", void 0), i([g(cc.Node)], t.prototype, "StarAttrContainer", void 0), i([g(cc.Label)], t.prototype, "AddtionTitle", void 0), i([g(cc.Node)], t.prototype, "AddtionContainer", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/AngelUpStarAddtionComponent": "AngelUpStarAddtionComponent",
        "../Components/AttributeItemComponent": "AttributeItemComponent"
    }],
    AngelUpStarSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "db914vJngBEZooZUAUgyfId", "AngelUpStarSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/ItemComponent"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemClickComponent"),
            y = e("../Components/AttributeItemComponent"),
            g = e("../Components/AngelUpStarAddtionComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Auxiliary/UIUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.StarUpSpine = null, t.ItemContainer = null, t.OldItemNode = null, t.NewItemNode = null, t.AttrTitle = null, t.AttrContainer = null, t.AddtionTotalNode = null, t.AddtionTitle = null, t.AddtionContainer = null, t.UpStarSuccessIconNode = null, t.UpPointSuccessIconNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("HeroInfoPanel/Components/AttributeItemComponent", cc.Prefab), o = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelUpStarAddtionComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._attrPrefab = e[1], r._addtionPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrTitle.string = "upgrade_attr".ToUILocale(), this.AddtionTitle.string = "angel_star_up_effect".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._angelModel = t[0], this._endSublevel = t[1], this._starConfig = u.ConfigDataComponent.Instance.GetConfigById(p.AngelStar_Config, 1e3 * this._angelModel.AngelId + this._angelModel.StarLevel)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._endSublevel == this._starConfig.PointAttrs.length - 1 ? (this.UpStarSuccessIconNode.active = !0, this.SetAngelItem(), this.SetAddtionContainer()) : (this.UpPointSuccessIconNode.active = !0, this.ItemContainer.active = !1, this.AddtionTotalNode.active = !1), this.SetAttrDataArray(), this.SetAttrContainer(), this.StarUpSpine.setAnimation(0, this.StarUpSpine.animation, !1)
                }, t.prototype.SetAngelItem = function() {
                    var e;
                    this._oldItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.OldItemNode), e.getComponent(f.default).enabled = !1, this._oldItemComponent = e.getComponent(c.ItemComponent)), this._newItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.NewItemNode), e.getComponent(f.default).enabled = !1, this._newItemComponent = e.getComponent(c.ItemComponent)), this._oldItemComponent.Init({
                        ItemId: this._angelModel.AngelId,
                        StarLevel: this._angelModel.StarLevel,
                        SkinId: this._angelModel.SkinId
                    }, c.ItemComponentType.Angel), this._newItemComponent.Init({
                        ItemId: this._angelModel.AngelId,
                        StarLevel: this._angelModel.StarLevel + 1,
                        SkinId: this._angelModel.SkinId
                    }, c.ItemComponentType.Angel)
                }, t.prototype.SetAddtionContainer = function() {
                    var e = u.ConfigDataComponent.Instance.GetConfigById(p.AngelStar_Config, 1e3 * this._angelModel.AngelId + this._angelModel.StarLevel + 1),
                        t = {};
                    t["angel_star_up_effect_tag_level".ToUILocale()] = "angel_star_up_effect_value_level".ToUILocale().Fmt(e.LevelLimit), this._starConfig.AngelShape != e.AngelShape && (t["angel_star_up_effect_tag_shape".ToUILocale()] = "angel_star_up_effect_value_shape".ToUILocale());
                    for (var n = 0; n < e.GlobalSkills.length; n++) {
                        var o = e.GlobalSkills[n];
                        t["angel_star_up_effect_tag_skill".ToUILocale().Fmt(o.ToHeroSkillName())] = "angel_star_up_effect_value_level".ToUILocale().Fmt(d.default.GetAngelSkillLevelBySkillId(this._angelModel.AngelId, o, 2))
                    }
                    for (var r in t["angel_star_up_effect_tag_attack".ToUILocale()] = "angel_star_up_effect_value_attack".ToUILocale().Fmt(e.PercentAttr / 10), t) {
                        var i = cc.instantiate(this._addtionPrefab);
                        i.setParent(this.AddtionContainer), i.getComponent(g.default).Init(r, t[r])
                    }
                }, t.prototype.SetAttrDataArray = function() {
                    this._currentAttrArray = {}, this.SetStarAttrData(this._starConfig.Attrs), this.SetStarAttrData(this._starConfig.AngelAttrs);
                    for (var e = 0; e < this._angelModel.SubStarLevel; e++) this.SetPointAttrData(this._starConfig.PointAttrs[e].Items), this.SetPointAttrData(this._starConfig.AngelPointAttrs[e].Items)
                }, t.prototype.SetStarAttrData = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        var n = e[t].Items;
                        this._currentAttrArray[n[0]] = n[1]
                    }
                }, t.prototype.SetPointAttrData = function(e) {
                    if (e.length > 1)
                        for (var t = 0; t < e.length; t += 2) {
                            var n = e[t],
                                o = e[t + 1];
                            this._currentAttrArray[n] ? this._currentAttrArray[n] += o : this._currentAttrArray[n] = o
                        }
                }, t.prototype.SetAttrContainer = function() {
                    this._newAttrArray = {};
                    for (var e = this._angelModel.SubStarLevel; e <= this._endSublevel; e++) this.SetNewAttrData(this._starConfig.PointAttrs[e].Items, !0), this.SetNewAttrData(this._starConfig.AngelPointAttrs[e].Items, !1);
                    this.SetPointContainer()
                }, t.prototype.SetNewAttrData = function(e, t) {
                    if (e.length > 1)
                        for (var n = 0; n < e.length; n += 2) {
                            var o = e[n],
                                r = e[n + 1];
                            this._newAttrArray[o] ? this._newAttrArray[o][0] += r : this._newAttrArray[o] = [r, t]
                        }
                }, t.prototype.SetPointContainer = function() {
                    for (var e in this._newAttrArray) {
                        var t = cc.instantiate(this._attrPrefab);
                        t.setParent(this.AttrContainer);
                        var n = Number(e),
                            o = this._currentAttrArray[n] ? this._currentAttrArray[n] : 0,
                            r = o + this._newAttrArray[n][0],
                            i = d.default.GetHeroAttribute(n, o),
                            a = d.default.GetHeroAttribute(n, r),
                            s = {
                                Name: this._newAttrArray[n][1] ? "angel_global".ToUILocale() + a.Name : a.Name,
                                Icon: a.Icon,
                                OldValue: "+" + i.Value,
                                NewValue: "+" + a.Value
                            };
                        t.getComponent(y.default).Init(s)
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent != this.OldItemNode && t.parent != this.NewItemNode || I.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t)
                }, i([v(sp.Skeleton)], t.prototype, "StarUpSpine", void 0), i([v(cc.Node)], t.prototype, "ItemContainer", void 0), i([v(cc.Node)], t.prototype, "OldItemNode", void 0), i([v(cc.Node)], t.prototype, "NewItemNode", void 0), i([v(cc.Label)], t.prototype, "AttrTitle", void 0), i([v(cc.Node)], t.prototype, "AttrContainer", void 0), i([v(cc.Node)], t.prototype, "AddtionTotalNode", void 0), i([v(cc.Label)], t.prototype, "AddtionTitle", void 0), i([v(cc.Node)], t.prototype, "AddtionContainer", void 0), i([v(cc.Node)], t.prototype, "UpStarSuccessIconNode", void 0), i([v(cc.Node)], t.prototype, "UpPointSuccessIconNode", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AngelUpStarAddtionComponent": "AngelUpStarAddtionComponent",
        "../Components/AttributeItemComponent": "AttributeItemComponent",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AnswerActivityPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bf86dZJzxRN35mSsl6YrgVW", "AnswerActivityPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/RpcComponent"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Components/ItemComponent"),
            m = e("../../../Util/index"),
            I = e("../Components/PlayerComponent"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../Components/Components"),
            v = e("../../../../Proto/Static/ConfigProto"),
            b = e("../../../Util/index"),
            S = e("../Battle/BattleManager"),
            w = e("./MainUIPanel"),
            P = e("../../../Consts/Etc"),
            A = e("../../../ShareConsts/EnumType"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.AnswerActivityTitle = null, t.AnswerActivityTime = null, t.AnswerRewardTitle = null, t.RewardsDetailBtn = null, t.RewardsDetailBtnLabel = null, t.RewardsContent = null, t.SimpleRuletTitle = null, t.SimpleRuleRichText = null, t.BeginBtn = null, t.BeginBtnLabel = null, t.RemainCount = null, t.Area = null, t.CurrentPeople = null, t.WhichSubject = null, t.SubjectDetail = null, t.SubjectDetailNode = null, t.YesBtn = null, t.YesBtnSprite = null, t.YesBtnLabel = null, t.NoBtn = null, t.NoBtnSprite = null, t.NoBtnLabel = null, t.CountDown = null, t.BackBtn = null, t.Warning = null, t.RewardPreviewNode = null, t.SimpleRuleNode = null, t.AreaNode = null, t.SubjectDetailedInformationNode = null, t.CountDownImg = [], t.JoinCompeteCountDown = null, t.Spine1 = null, t.OpenTimeNode = null, t.OpenTimeText = null, t.UTCTime = null, t._heroSpineSpecial = "special01", t._heroSpineStandBy = "standby01", t._spine1 = "Ani_UI_effect_datidasai", t._disappearSpinestring = "Ani_UI_effect_datidasai2", t._activityOpenPointArray = [], t._userInfo = [], t._getrewards = [], t._playerMap = new Map, t._roomAnswerTime = 0, t._selectAnswer = -1, t._prepareFinished = !1, t._playerHeadIconHalfWidth = 80, t._timeLength = 36e5, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BeginBtn.node.on("click", this.OnClickStart, this), this.BackBtn.node.on("click", this.OnClickBackBtn, this), this.RewardsDetailBtn.node.on("click", this.OnClickRewardsDetailBtn, this), this.YesBtn.node.on("click", this.OnClickYesBtn, this), this.NoBtn.node.on("click", this.OnClickNoBtn, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BeginBtn.node.off("click", this.OnClickStart, this), this.BackBtn.node.off("click", this.OnClickBackBtn, this), this.RewardsDetailBtn.node.off("click", this.OnClickRewardsDetailBtn, this), this.YesBtn.node.off("click", this.OnClickYesBtn, this), this.NoBtn.node.off("click", this.OnClickNoBtn, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AnswerActivityPanel/Components/HeroSpine", cc.Prefab), n = this.LoadDynamicAsset("AnswerActivityPanel/Components/Tag", cc.Prefab), o = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), r = this.LoadDynamicAsset("AnswerActivityPanel/Components/PlayerIcon", cc.Prefab), i = this.LoadDynamicAsset("AnswerActivityPanel/Components/DisappearSpine", cc.Prefab), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._heroSpinePrefab = e[0], a._tagPrefab = e[1], a._rewardsItemPrefab = e[2], a._playerPrefab = e[3], a._disappearSpinePrefab = e[4], a._playerPool = new cc.NodePool
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._playerPool.clear()
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AnswerActivityTitle.string = "Answer_Title".ToUILocale(), this.AnswerRewardTitle.string = "Answer_Reward".ToUILocale(), this.RewardsDetailBtnLabel.string = "AccumulateRecharge_rewardPreview".ToUILocale(), this.SimpleRuletTitle.string = "Answer_Title".ToUILocale(), this.BeginBtnLabel.string = "Answer_Start".ToUILocale(), this.YesBtnLabel.string = "Answer_SelectYes".ToUILocale(), this.NoBtnLabel.string = "Answer_SelectNo".ToUILocale(), this.Warning.string = "Answer_Hint".ToUILocale(), this.SimpleRuleRichText.string = "Answer_RuleText".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function() {
                            for (e.prototype.InitData.call(this, t), this._answerActivityId = t[0], this._activityConfig = f.DataCenter.Instance.ActivityConfigs[this._answerActivityId], this._customPart = this._activityConfig.CustomPart, this._activityOpenScope = this._customPart.Hours, this._answeringTime = this._customPart.Answer - 2, this._userAnswerModel = f.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._answerActivityId), n = 0; n < this._activityOpenScope.length; n++)
                                for (o = 0; o < this._activityOpenScope[n].Items.length; o++) 1 == o ? this._activityOpenPointArray.push(this._activityOpenScope[n].Items[o] + 1) : this._activityOpenPointArray.push(this._activityOpenScope[n].Items[o]);
                            return [2]
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitHeroSpine(), this.InitDisappearSpine(), this.SetRewads(), this.SetActivityRemainderTime(), this.SetUTCTime(), this.SetRemainderCount(), this.RequestEnterCompete(), this.ShowActivityIsOpen(), this.schedule(this.ShowActivityIsOpen, .5), S.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !1, l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, S.BattleManager.Instance.ActivityCanShowBattleSettlePanel && S.BattleManager.Instance.CanShowBattleSettlePanel)
                }, t.prototype.SetUTCTime = function() {
                    var e = this;
                    this.UTCTime.string = "(UTC+" + b.TimeUtil.GetTimeZoneInfo().offset / 3600 + ") " + w.default.UTCTimeStr, this.schedule(function() {
                        e.UTCTime.string = "(UTC+" + b.TimeUtil.GetTimeZoneInfo().offset / 3600 + ") " + w.default.UTCTimeStr
                    }, 1)
                }, t.prototype.ShowActivityIsOpen = function() {
                    var e = f.RpcComponent.Instance.ServerTime,
                        t = b.TimeUtil.Get0ClockTs(e);
                    e >= t + this._activityOpenPointArray[0] * this._timeLength && e <= t + this._activityOpenPointArray[1] * this._timeLength ? (this.OpenTimeText.string = "Answer_OpenCountDown".ToUILocale().Fmt((t + this._activityOpenPointArray[1] * this._timeLength - e).FmtRemainTime()), this.BeginBtn.interactable = !0, this.BeginBtn.node.getChildByName("Background").getComponent(cc.Sprite).spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_orange")) : e >= t + this._activityOpenPointArray[2] * this._timeLength && e <= t + this._activityOpenPointArray[3] * this._timeLength ? (this.OpenTimeText.string = "Answer_OpenCountDown".ToUILocale().Fmt((t + this._activityOpenPointArray[3] * this._timeLength - e).FmtRemainTime()), this.BeginBtn.interactable = !0, this.BeginBtn.node.getChildByName("Background").getComponent(cc.Sprite).spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_orange")) : e >= t + this._activityOpenPointArray[4] * this._timeLength && e <= t + this._activityOpenPointArray[5] * this._timeLength ? (this.OpenTimeText.string = "Answer_OpenCountDown".ToUILocale().Fmt((t + this._activityOpenPointArray[5] * this._timeLength - e).FmtRemainTime()), this.BeginBtn.interactable = !0, this.BeginBtn.node.getChildByName("Background").getComponent(cc.Sprite).spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_orange")) : (this.OpenTimeText.string = "Answer_Unopen".ToUILocale(), this.BeginBtn.interactable = !1, this.BeginBtn.node.getChildByName("Background").getComponent(cc.Sprite).spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_gray"))
                }, t.prototype.InitHeroSpine = function() {
                    this._heroSpine = cc.instantiate(this._heroSpinePrefab), this._heroSpine.parent = this.Bg
                }, t.prototype.InitDisappearSpine = function() {
                    this._disappearSpine = cc.instantiate(this._disappearSpinePrefab), this._disappearSpine.parent = this.AreaNode, this._disappearSpine.active = !0
                }, t.prototype.SetRewads = function() {
                    for (var e = 0; e < this._customPart.ShowRewards.length; e++) {
                        var t = cc.instantiate(this._rewardsItemPrefab);
                        t.getComponent(g.ItemComponent).Init({
                            ItemId: this._customPart.ShowRewards[e]
                        }), t.parent = this.RewardsContent.node
                    }
                }, t.prototype.SetActivityRemainderTime = function() {
                    this._deadLine = y.default.Instance.ComputeDeadTime(this._activityConfig.Common);
                    var e = this._deadLine - f.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.AnswerActivityTime.string = "Answer_ActivityTime".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetRemainderCount = function() {
                    this._userAnswerModel = f.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._answerActivityId), this.RemainCount.string = "Answer_RemainCount".ToUILocale().Fmt(this._customPart.Count - this._userAnswerModel.IntArray[0], this._customPart.Count)
                }, t.prototype.OnItemClick = function(e, t) {
                    p.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.OnClickStart = function() {
                    this._deadLine - f.RpcComponent.Instance.ServerTime < 0 ? p.UIUtlity.ShowFloatingHint("Answer_Unopen".ToUILocale()) : this._customPart.Count - this._userAnswerModel.IntArray[0] <= 0 ? p.UIUtlity.ShowFloatingHint("Answer_RemainderCountUseUp".ToUILocale()) : (this.UTCTime.node.active = !1, this.RewardPreviewNode.active = !1, this.SimpleRuleNode.active = !1, this.AreaNode.active = !0, this.SubjectDetailedInformationNode.active = !0, this.YesBtn.node.active = !1, this.NoBtn.node.active = !1, this.Warning.node.active = !1, this.WhichSubject.string = "Answer_PrepareTime".ToUILocale(), this.SubjectDetail.string = "Answer_PrepareText".ToUILocale(), this.RequestJoinCompete())
                }, t.prototype.OnClickBackBtn = function() {
                    var e = this;
                    1 == this.AreaNode.active ? (this._currentRoomStartTime + 1e3 * this._customPart.Prepare - m.TimeUtil.Now() >= 0 ? this.RequestQuitCompete() : p.UIUtlity.ShowHintPanel("", "Answer_QuitHint".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "Answer_QuitYes".ToUILocale(), function() {
                        1 == e.AreaNode.active ? e.RequestQuitCompete() : p.UIUtlity.ShowFloatingHint("Answer_HintCompeted".ToUILocale())
                    }), this.SetRemainderCount()) : (S.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !0, l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, S.BattleManager.Instance.ActivityCanShowBattleSettlePanel && S.BattleManager.Instance.CanShowBattleSettlePanel), l.UIManager.Instance.BackUIPanel())
                }, t.prototype.OnClickYesBtn = function() {
                    this.YesBtnSprite.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_orange"), this.NoBtnSprite.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_blue"), this._selectAnswer = 1, this.RequestAnswer(), this.YesBtn.interactable = !1, this.NoBtn.interactable = !0
                }, t.prototype.OnClickNoBtn = function() {
                    this.YesBtnSprite.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_blue"), this.NoBtnSprite.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_orange"), this._selectAnswer = 0, this.RequestAnswer(), this.NoBtn.interactable = !1, this.YesBtn.interactable = !0
                }, t.prototype.OnClickRewardsDetailBtn = function() {
                    c.UIManager.Instance.ShowUIPanel(u.PanelConfig.AnswerRewardsDetailPanel.Path, this._activityConfig.__Rewards)
                }, t.prototype.RequestEnterCompete = function() {
                    var e = new d.Req_Activity_AnswerCompetitionEnter;
                    e.ActivityId = this._answerActivityId, h.RpcComponent.Instance.Call(e, this.ResponseEnterCompete.bind(this))
                }, t.prototype.ResponseEnterCompete = function(e) {
                    c.EZLog.Log("Enter ResponseEnterCompete"), this._roomModel = e.Info, this._userInfo = e.UsersInfo, null != this._roomModel && (this._questionArray = e.Info.Questions, this._currentQuestionIndex = e.Info.Index, c.EZLog.Log("ResponseEnterCompete this._currentQuestionIndex \uff1a" + this._currentQuestionIndex), this._roomAnswerTime = e.Info.Answer, this._roomUserState = e.Info.Users, this._roomUserBeforeState = this._roomUserState, this._currentRoomStartTime = e.Info.Start, this.IsExistThisPlayer(), this.RequestCompeteInfo(), this.schedule(this.RequestCompeteInfo, 1))
                }, t.prototype.RequestCompeteInfo = function() {
                    c.EZLog.Log("Enter RequestCompeteInfo server time\uff1a" + f.RpcComponent.Instance.ServerTime);
                    var e = new d.Req_Activity_AnswerCompetitionInfo;
                    e.ActivityId = this._answerActivityId, h.RpcComponent.Instance.Call(e, this.ResponseCompeteInfo.bind(this))
                }, t.prototype.ResponseCompeteInfo = function(e) {
                    if (this._userInfo = this._userInfo.concat(e.UsersInfo), this._roomUserState = e.Users, null != e.Count && 0 != e.Count) return c.EZLog.Log("ResponseCompeteInfo +++++++++++++++" + e.Count), this.unscheduleAllCallbacks(), this.schedule(this.ShowActivityIsOpen, .5), this.SetUTCTime(), this._getrewards = e.Rewards, this._answerCorrectCount = 1e4 == e.Count ? 0 : e.Count, void this.ReturnStartState();
                    0 != e.Answer && (this._roomAnswerTime = e.Answer), 0 != e.Rewards.length && (this._getrewards = e.Rewards, this._answerCorrectCount = e.Count), this.UpdatePlayer(), this.SetCurrentPlayerCount(), this.UpdatePlayerPosition()
                }, t.prototype.RequestJoinCompete = function() {
                    var e = new d.Req_Activity_AnswerCompetitionCompete;
                    e.ActivityId = this._answerActivityId, h.RpcComponent.Instance.Call(e, this.ResponseJoinCompete.bind(this))
                }, t.prototype.ResponseJoinCompete = function(e) {
                    c.EZLog.Log("Enter ResponseJoinCompete"), this._roomModel = e.Info, this._userInfo = e.UsersInfo, this._questionArray = e.Info.Questions, this._currentRoomStartTime = e.Info.Start, this._roomUserState = e.Info.Users, this._roomUserBeforeState = this._roomUserState, this._currentQuestionIndex = e.Info.Index + 1, c.EZLog.Log("ResponseJoinCompete this._currentQuestionIndex : " + this._currentQuestionIndex), this.UpdatePlayer(), this.SetCountDown(), this.schedule(this.SetCountDown, .5), this.SetCurrentPlayerCount(), this.RequestCompeteInfo(), this.schedule(this.RequestCompeteInfo, 1), this.OpenTimeNode.active = !1
                }, t.prototype.RequestQuitCompete = function() {
                    c.EZLog.Log("Enter RequestQuitCompete ");
                    var e = new d.Req_Activity_AnswerCompetitionQuit;
                    e.ActivityId = this._answerActivityId, h.RpcComponent.Instance.Call(e, this.ResponseQuitCompete.bind(this))
                }, t.prototype.ResponseQuitCompete = function(e) {
                    this._getrewards = e.Rewards, this._answerCorrectCount = e.Count, this.ReturnStartState()
                }, t.prototype.RequestAnswer = function() {
                    var e = new d.Req_Activity_AnswerCompetitionAnswer;
                    e.ActivityId = this._answerActivityId, e.Answer = this._selectAnswer, h.RpcComponent.Instance.Call(e, this.ResponseAnswer.bind(this))
                }, t.prototype.ResponseAnswer = function() {
                    this.RequestCompeteInfo(), this.SetPlayerPositionTween(C.DataCenter.Instance.Uid, this._playerMap.get(C.DataCenter.Instance.Uid))
                }, t.prototype.IsExistThisPlayer = function() {
                    c.EZLog.Log("Enter IsExistThisPlayer"), this.RewardPreviewNode.active = !1, this.UTCTime.node.active = !1, this.SimpleRuleNode.active = !1, this.AreaNode.active = !0, this.SubjectDetailedInformationNode.active = !0, this.OpenTimeNode.active = !1, h.RpcComponent.Instance.ServerTime <= this._currentRoomStartTime + this._customPart.Prepare * P.Etc.SecondDuration ? (this._currentQuestionIndex++, c.EZLog.Log("Enter this._currentQuestionIndex\uff1a" + this._currentQuestionIndex), this.YesBtn.node.active = !1, this.NoBtn.node.active = !1, this.Warning.node.active = !1, this.WhichSubject.string = "Answer_PrepareTime".ToUILocale(), this.SubjectDetail.string = "Answer_PrepareText".ToUILocale(), this.SetCountDown(), this.schedule(this.SetCountDown, .5), this.RequestCompeteInfo(), this.schedule(this.RequestCompeteInfo, 1)) : (this.SetQuestionAndBtnState(), this.schedule(this.SetQuestionAndBtnState, this._customPart.Answer + this._customPart.Interval), this.RequestCompeteInfo(), this.schedule(this.RequestCompeteInfo, 1), this._prepareFinished = !0)
                }, t.prototype.SetCurrentPlayerCount = function() {
                    null != this._roomUserState ? this.CurrentPeople.string = "Answer_CurrentPeople".ToUILocale().Fmt(Object.keys(this._roomUserState).length, this._customPart.UserCount) : this.CurrentPeople.string = "Answer_CurrentPeople".ToUILocale().Fmt(0, this._customPart.UserCount)
                }, t.prototype.GetPlayerNode = function() {
                    var e = this._playerPool.get();
                    return e || (e = cc.instantiate(this._playerPrefab)), e
                }, t.prototype.PutPlayerNode = function(e) {
                    e && this._playerPool.put(e)
                }, t.prototype.UpdatePlayer = function() {
                    var e = this;
                    if (this._playerMap.forEach(function(t, n) {
                            null == e._roomUserState[n] && (e.PutPlayerNode(t), e._playerMap.delete(n))
                        }), !this._prepareFinished)
                        for (var t = 0; t < Object.keys(this._roomUserState).length; t++)
                            if (this._playerMap.has(Number(Object.keys(this._roomUserState)[t])));
                            else
                                for (var n = 0; n < this._userInfo.length; n++) this._userInfo[n].Uid == Number(Object.keys(this._roomUserState)[t]) && this.InitOnePlayer(n)
                }, t.prototype.UpdatePlayerPosition = function() {
                    var e = this;
                    this._playerMap.forEach(function(t, n) {
                        n != C.DataCenter.Instance.Uid && (e._roomUserState[n] % 10 != A.AnswerType.False && e._roomUserState[n] % 10 != A.AnswerType.True || e._roomUserState[n] != e._roomUserBeforeState[n] && (e.SetPlayerPositionTween(n, t), e._roomUserBeforeState[n] = e._roomUserState[n]))
                    })
                }, t.prototype.InitOnePlayer = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return t = e, n = this.GetPlayerNode(), i = this.LoadDynamicAsset(u.BundlePath.HeadIcon + "/" + this._userInfo[t].HeadIcon, cc.SpriteFrame), a = this.LoadDynamicAsset(u.BundlePath.HeadFrame + "/" + this._userInfo[t].HeadFrame, cc.SpriteFrame), [4, Promise.all([i, a]).then(function(e) {
                                        o = e[0], r = e[1]
                                    })];
                                case 1:
                                    return s.sent(), n.getComponent(I.default).Init(o, r, this._userInfo[t].Name), this.SetPlayerPosition(this._userInfo[t].Uid, n), n.parent = this.AreaNode, this._playerMap.set(this._userInfo[t].Uid, n), [2]
                            }
                        })
                    })
                }, t.prototype.SetPlayerPositionTween = function(e, t) {
                    var n = this;
                    cc.tween(t).to(.2, {
                        scale: 0
                    }).call(function() {
                        n.SetPlayerPosition(e, t), cc.tween(t).to(.2, {
                            scale: 1
                        }).start()
                    }).start()
                }, t.prototype.SetPlayerPosition = function(e, t) {
                    Math.random(), this.AreaNode.width, this._playerHeadIconHalfWidth, this._playerHeadIconHalfWidth, this._playerHeadIconHalfWidth, Math.random(), this._playerHeadIconHalfWidth, this.AreaNode.width, this._playerHeadIconHalfWidth, this.AreaNode.width, this._playerHeadIconHalfWidth;
                    var n = new cc.Vec3;
                    if (this._roomUserState[e] % 10 == A.AnswerType.False) n.x = this.GetPositionXByPlayerState(A.AnswerType.False), n.y = Math.random() * (this.AreaNode.height / 2 - this._playerHeadIconHalfWidth - (-this.AreaNode.height / 2 + this._playerHeadIconHalfWidth) + 1) + (-this.AreaNode.height / 2 + this._playerHeadIconHalfWidth);
                    else if (this._roomUserState[e] % 10 == A.AnswerType.True) n.x = this.GetPositionXByPlayerState(A.AnswerType.True), n.y = Math.random() * (this.AreaNode.height / 2 - this._playerHeadIconHalfWidth - (-this.AreaNode.height / 2 + this._playerHeadIconHalfWidth) + 1) + (-this.AreaNode.height / 2 + this._playerHeadIconHalfWidth);
                    else {
                        var o = [A.AnswerType.True, A.AnswerType.False];
                        n.x = this.GetPositionXByPlayerState(o[Math.floor(Math.random() * o.length)]), n.y = Math.random() * (this.AreaNode.height / 2 - this._playerHeadIconHalfWidth - (-this.AreaNode.height / 2 + this._playerHeadIconHalfWidth) + 1) + (-this.AreaNode.height / 2 + this._playerHeadIconHalfWidth)
                    }
                    n.z = 0, t.position = n
                }, t.prototype.GetPositionXByPlayerState = function(e) {
                    var t;
                    switch (e) {
                        case A.AnswerType.False:
                            t = Math.random() * (this.AreaNode.width / 2 - this._playerHeadIconHalfWidth - this._playerHeadIconHalfWidth + 1) + this._playerHeadIconHalfWidth;
                            break;
                        case A.AnswerType.True:
                            t = Math.random() * (-this._playerHeadIconHalfWidth - (-this.AreaNode.width / 2 + this._playerHeadIconHalfWidth) + 1) + (-this.AreaNode.width / 2 + this._playerHeadIconHalfWidth);
                            break;
                        default:
                            t = 0
                    }
                    return t
                }, t.prototype.SetCountDown = function() {
                    c.EZLog.Log("Enter SetCountDown ");
                    var e = h.RpcComponent.Instance.ServerTime - this._currentRoomStartTime;
                    c.EZLog.Log("Enter SetCountDown timePassed : " + e);
                    var t = this._customPart.Prepare * P.Etc.SecondDuration - e;
                    c.EZLog.Log("Enter SetCountDown timeLeft : " + t), t < 0 ? (this._prepareFinished = !0, this.unschedule(this.SetCountDown), this.StartJoinCompeteCountDown(), this.schedule(this.StartJoinCompeteCountDown, .5)) : this.CountDown.string = y.default.Instance.GetSecondTime(Math.floor(t / P.Etc.SecondDuration))
                }, t.prototype.StartJoinCompeteCountDown = function() {
                    c.EZLog.Log("Enter StartJoinCompeteCountDown");
                    var e = this.GetQuestionIndex();
                    if (this._currentQuestionIndex != e) return c.EZLog.Log("StartJoinCompeteCountDown quenstionIndex: " + e), c.EZLog.Log("StartJoinCompeteCountDown this._currentQuestionIndex " + this._currentQuestionIndex), void this.RefreshQuestionState();
                    var t = Math.floor((h.RpcComponent.Instance.ServerTime - this.GetQuestionStartTime()) / P.Etc.SecondDuration);
                    c.EZLog.Log(" StartJoinCompeteCountDown timePassed : " + t);
                    var n = this._customPart.Interval - t;
                    c.EZLog.Log(" StartJoinCompeteCountDown timeleft : " + n), n > 0 ? (this.JoinCompeteCountDown.spriteFrame = this.CountDownImg[n - 1], this.JoinCompeteCountDown.node.active = !0) : (this.JoinCompeteCountDown.node.active = !1, this.unschedule(this.StartJoinCompeteCountDown), this.SetQuestionAndBtnState(), this.schedule(this.SetQuestionAndBtnState, this._customPart.Answer + this._customPart.Interval))
                }, t.prototype.SetQuestionAndBtnState = function() {
                    null != this._roomUserState[C.DataCenter.Instance.Uid] && this._currentQuestionIndex < this._questionArray.length ? (c.EZLog.Log("SetQuestionAndBtnState this._currentQuestionIndex \uff1a " + this._currentQuestionIndex), this.WhichSubject.string = "Answer_CurrentSubject".ToUILocale().Fmt(this._currentQuestionIndex, this._questionArray.length), this.SubjectDetail.string = this._questionArray[this._currentQuestionIndex - 1].ToAnswerCompetitionQuestion(), this.YesBtn.node.active = !0, this.YesBtn.interactable = !0, this.NoBtn.node.active = !0, this.NoBtn.interactable = !0, this.Warning.node.active = !0, this.YesBtnSprite.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_blue"), this.NoBtnSprite.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_blue"), this._selectAnswer = -1, this._tagNode && (this._tagNode.removeFromParent(), this._tagNode.destroy()), this.SetAnsweringTime(), this.schedule(this.SetAnsweringTime, .5)) : this.unschedule(this.SetQuestionAndBtnState)
                }, t.prototype.SetAnsweringTime = function() {
                    c.EZLog.Log("Enter SetAnsweringTime ");
                    var e = this.GetQuestionIndex();
                    if (this._currentQuestionIndex == e) {
                        var t = Math.floor((h.RpcComponent.Instance.ServerTime - this.GetQuestionStartTime() - this._customPart.Interval * P.Etc.SecondDuration) / P.Etc.SecondDuration);
                        c.EZLog.Log("Enter SetAnsweringTime timePassed : " + t);
                        var n = this._answeringTime - t;
                        c.EZLog.Log("Enter SetAnsweringTime timeLeft : " + n), n >= 0 ? this.CountDown.string = "Answer_ThisSubject".ToUILocale().Fmt(n) : -1 == this._selectAnswer ? (this.RequestCompeteInfo(), this.scheduleOnce(this.SetHeroSpineAnimation, 1)) : (c.EZLog.Log("Enter SetAnsweringTime unschedule"), this.unschedule(this.SetAnsweringTime), this.UpdatePlayerPosition(), this._currentQuestionStandardAnswer = C.ConfigDataComponent.Instance.GetConfigById(v.AnswerCompetitionQuestion_Config, this._questionArray[this._currentQuestionIndex - 1]), this.ShowCorrectAnswer(), this._currentQuestionIndex++, this.schedule(this.StartIntervalCountDown, .5, cc.macro.REPEAT_FOREVER, this._customPart.Answer - this._answeringTime - 1), this.scheduleOnce(this.SetHeroSpineAnimation, 1))
                    } else this.RefreshQuestionState()
                }, t.prototype.StartIntervalCountDown = function() {
                    var e = Math.floor((h.RpcComponent.Instance.ServerTime - this.GetQuestionStartTime()) / P.Etc.SecondDuration),
                        t = this._customPart.Interval - e;
                    t > 0 ? this.CountDown.string = "Answer_NextSubject".ToUILocale().Fmt(t) : (this.SetQuestionAndBtnState(), this.unschedule(this.StartIntervalCountDown))
                }, t.prototype.ShowCorrectAnswer = function() {
                    var e;
                    (e = cc.instantiate(this._tagPrefab)).children[0].getComponent(cc.Label).string = "Answer_SelectCorrect".ToUILocale(), c.EZLog.Log("this._currentQuestionStandardAnswer.Answer " + this._currentQuestionStandardAnswer.Answer), c.EZLog.Log("this._currentQuestionStandardAnswer.ID " + this._currentQuestionStandardAnswer.Id), 1 == this._currentQuestionStandardAnswer.Answer ? e.parent = this.YesBtn.node : e.parent = this.NoBtn.node, this._tagNode = e, this.BanAnswerBtn()
                }, t.prototype.BanAnswerBtn = function() {
                    this.YesBtn.interactable = !1, this.NoBtn.interactable = !1
                }, t.prototype.SetHeroSpineAnimation = function() {
                    var e = this,
                        t = this._heroSpine.getComponent(sp.Skeleton),
                        n = this.Spine1.getComponent(sp.Skeleton),
                        o = this._disappearSpine.getComponent(sp.Skeleton);
                    this.Spine1.active = !0, 0 == this._currentQuestionStandardAnswer.Answer ? this._disappearSpine.x = -this.AreaNode.width / 4 : this._disappearSpine.x = this.AreaNode.width / 4, this._disappearSpine.y = 0, this._disappearSpine.z = 0, n.setAnimation(0, this._spine1, !1), o.setAnimation(0, this._disappearSpinestring, !1) && this._playerMap.forEach(function(t, n) {
                        e._disappearSpine.x < 0 ? t.x < 0 && (e.PutPlayerNode(t), e._playerMap.delete(n)) : t.x > 0 && (e.PutPlayerNode(t), e._playerMap.delete(n))
                    }), t.setAnimation(0, this._heroSpineSpecial, !1) && t.setCompleteListener(function() {
                        t.setAnimation(0, e._heroSpineStandBy, !0)
                    })
                }, t.prototype.ReturnStartState = function() {
                    var e = this;
                    this.SetRemainderCount(), this.UTCTime.node.active = !0, this.RewardPreviewNode.active = !0, this.SimpleRuleNode.active = !0, this.AreaNode.active = !1, this.SubjectDetailedInformationNode.active = !1, this.OpenTimeNode.active = !0, this._currentRoomStartTime + this._customPart.Prepare * P.Etc.SecondDuration - h.RpcComponent.Instance.ServerTime < 0 && -1 != this._answerCorrectCount && c.UIManager.Instance.ShowUIPanel(u.PanelConfig.AnswerEndPanel.Path, this._answerCorrectCount, this._getrewards), this.StopScheduleAll(), this._currentRoomStartTime = null, this._roomAnswerTime = 0, this._prepareFinished = !1, this._selectAnswer = -1, this._currentQuestionIndex = null, this._questionArray = null, this._currentQuestionStandardAnswer = null, this._roomModel = null, this._userInfo = null, this._getrewards = [], this._answerCorrectCount = null, this._roomUserState = null, this._roomUserBeforeState = null, this._playerMap.forEach(function(t) {
                        e.PutPlayerNode(t)
                    }), this._playerMap.clear(), this.JoinCompeteCountDown.node.active = !1
                }, t.prototype.StopScheduleAll = function() {
                    this.unscheduleAllCallbacks(), this.schedule(this.ShowActivityIsOpen, .5), this.SetUTCTime()
                }, t.prototype.GetQuestionIndex = function() {
                    var e = h.RpcComponent.Instance.ServerTime - this._currentRoomStartTime;
                    return e < this._customPart.Prepare * P.Etc.SecondDuration ? 1 : Math.ceil((e / P.Etc.SecondDuration - this._customPart.Prepare) / (this._customPart.Interval + this._customPart.Answer))
                }, t.prototype.GetQuestionStartTime = function() {
                    return this._currentRoomStartTime + (this._customPart.Prepare + (this._currentQuestionIndex - 1) * (this._customPart.Interval + this._customPart.Answer)) * P.Etc.SecondDuration
                }, t.prototype.RefreshQuestionState = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return c.EZLog.Log("Enter RefreshQuestionState"), this.StopScheduleAll(), this.RequestCompeteInfo(), this._currentQuestionIndex = this.GetQuestionIndex(), this._currentQuestionIndex <= this._customPart.QuestionCount && (h.RpcComponent.Instance.ServerTime - this._currentRoomStartTime - this._customPart.Prepare * P.Etc.SecondDuration - this._currentQuestionIndex * (this._customPart.Interval + this._customPart.Answer) * P.Etc.SecondDuration <= this._customPart.Interval * P.Etc.SecondDuration ? (this.YesBtn.node.active = !1, this.NoBtn.node.active = !1, this.Warning.node.active = !1, this.schedule(this.StartJoinCompeteCountDown, .5)) : (this.SetQuestionAndBtnState(), this.schedule(this.SetQuestionAndBtnState, this._customPart.Answer + this._customPart.Interval), this._prepareFinished = !0), this.schedule(this.RequestCompeteInfo, 1)), [2]
                        })
                    })
                }, i([L(cc.Node)], t.prototype, "Bg", void 0), i([L(cc.Label)], t.prototype, "AnswerActivityTitle", void 0), i([L(cc.RichText)], t.prototype, "AnswerActivityTime", void 0), i([L(cc.Label)], t.prototype, "AnswerRewardTitle", void 0), i([L(cc.Button)], t.prototype, "RewardsDetailBtn", void 0), i([L(cc.Label)], t.prototype, "RewardsDetailBtnLabel", void 0), i([L(cc.Layout)], t.prototype, "RewardsContent", void 0), i([L(cc.Label)], t.prototype, "SimpleRuletTitle", void 0), i([L(cc.RichText)], t.prototype, "SimpleRuleRichText", void 0), i([L(cc.Button)], t.prototype, "BeginBtn", void 0), i([L(cc.Label)], t.prototype, "BeginBtnLabel", void 0), i([L(cc.Label)], t.prototype, "RemainCount", void 0), i([L(cc.Sprite)], t.prototype, "Area", void 0), i([L(cc.Label)], t.prototype, "CurrentPeople", void 0), i([L(cc.RichText)], t.prototype, "WhichSubject", void 0), i([L(cc.RichText)], t.prototype, "SubjectDetail", void 0), i([L(cc.Node)], t.prototype, "SubjectDetailNode", void 0), i([L(cc.Button)], t.prototype, "YesBtn", void 0), i([L(cc.Sprite)], t.prototype, "YesBtnSprite", void 0), i([L(cc.Label)], t.prototype, "YesBtnLabel", void 0), i([L(cc.Button)], t.prototype, "NoBtn", void 0), i([L(cc.Sprite)], t.prototype, "NoBtnSprite", void 0), i([L(cc.Label)], t.prototype, "NoBtnLabel", void 0), i([L(cc.Label)], t.prototype, "CountDown", void 0), i([L(cc.Button)], t.prototype, "BackBtn", void 0), i([L(cc.Label)], t.prototype, "Warning", void 0), i([L(cc.Node)], t.prototype, "RewardPreviewNode", void 0), i([L(cc.Node)], t.prototype, "SimpleRuleNode", void 0), i([L(cc.Node)], t.prototype, "AreaNode", void 0), i([L(cc.Node)], t.prototype, "SubjectDetailedInformationNode", void 0), i([L(cc.SpriteFrame)], t.prototype, "CountDownImg", void 0), i([L(cc.Sprite)], t.prototype, "JoinCompeteCountDown", void 0), i([L(cc.Node)], t.prototype, "Spine1", void 0), i([L(cc.Node)], t.prototype, "OpenTimeNode", void 0), i([L(cc.RichText)], t.prototype, "OpenTimeText", void 0), i([L(cc.Label)], t.prototype, "UTCTime", void 0), i([R], t)
            }(l.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/index": "index",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PlayerComponent": "PlayerComponent",
        "./MainUIPanel": "MainUIPanel"
    }],
    AnswerEndPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1d21edMDaxOQa5NIXNaSpKR", "AnswerEndPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Tip, !1), t.GradeText = null, t.RewardText = null, t.CorrectCount = null, t.Content = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                        n._rewardsItemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GradeText.string = "Answer_Grade".ToUILocale(), this.RewardText.string = "Answer_Reward".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._correctCount = t[0], this._rewards = t[1], this.CorrectCount.string = "Answer_CorrectSubject".ToUILocale().Fmt(this._correctCount)
                }, t.prototype.DisPlay = function(t) {
                    var n;
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t);
                    for (var o = 0; o < this._rewards.length; o++)(n = cc.instantiate(this._rewardsItemPrefab)).getComponent(d.ItemComponent).Init({
                        ItemId: this._rewards[o].ItemId,
                        Count: this._rewards[o].Count
                    }), n.parent = this.Content.node
                }, i([y(cc.Label)], t.prototype, "GradeText", void 0), i([y(cc.Label)], t.prototype, "RewardText", void 0), i([y(cc.RichText)], t.prototype, "CorrectCount", void 0), i([y(cc.Layout)], t.prototype, "Content", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AnswerRewardsDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0fd28h1uqtFnJbxjWUYns8e", "AnswerRewardsDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Tip, !1), t.Tittle = null, t.Scroll = null, t.GroupGrid = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                        n._rewardsItemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "AccumulateRecharge_rewardPreview".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._rewardsLength = t[0].length, this._rewardsArray = t[0], this._rewardsArraySort = Object.assign([], this._rewardsArray);
                    var n = this._rewardsArraySort.pop();
                    this._rewardsArraySort.unshift(n)
                }, t.prototype.DisPlay = function(t) {
                    var n, o, r, i;
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t);
                    for (var a = 0; a < this._rewardsLength; a++) {
                        (o = new cc.Node).addComponent(cc.Label).string = 0 == a ? "Answer_RewardDetailText".ToUILocale().Fmt(0) : "Answer_RewardDetailText".ToUILocale().Fmt(this._rewardsArraySort[a].Id), o.parent = this.GroupGrid.node, (i = (r = new cc.Node).addComponent(cc.Layout)).type = cc.Layout.Type.HORIZONTAL, i.resizeMode = cc.Layout.ResizeMode.CONTAINER;
                        for (var s = 0; s < this._rewardsArraySort[a].Rewards.length; s++)(n = cc.instantiate(this._rewardsItemPrefab)).getComponent(d.ItemComponent).Init({
                            ItemId: this._rewardsArraySort[a].Rewards[s].Items[0],
                            Count: this._rewardsArraySort[a].Rewards[s].Items[1]
                        }), n.parent = i.node;
                        r.parent = this.GroupGrid.node
                    }
                }, i([y(cc.Label)], t.prototype, "Tittle", void 0), i([y(cc.ScrollView)], t.prototype, "Scroll", void 0), i([y(cc.Layout)], t.prototype, "GroupGrid", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AppUtil: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "27747gA4FZJaqAV7u2Epwi5", "AppUtil");
        var o = this && this.__spreadArrays || function() {
            for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
            var o = Array(e),
                r = 0;
            for (t = 0; t < n; t++)
                for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
            return o
        };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AppUtil = void 0;
        var r = function() {
            function e() {}
            return e.ToInt = function(e, t) {
                if (void 0 === t && (t = void 0), "number" == typeof e) return isNaN(e) ? t || 0 : Math.floor(e);
                var n = parseInt(e, 10);
                return isNaN(n) && (n = t || 0), n
            }, e.ToFloat = function(e, t) {
                if (void 0 === t && (t = void 0), "number" == typeof e) return e;
                var n = parseFloat(e);
                return isNaN(n) && (n = void 0 !== t ? t : 0), n
            }, e.Clamp = function(e, t, n) {
                return Math.max(Math.min(e, n), t)
            }, e.Shuffle = function(e) {
                for (var t, n = 1; n < e.length; n++) {
                    var o = Math.floor(Math.random() * (n + 1));
                    t = [e[o], e[n]], e[n] = t[0], e[o] = t[1]
                }
            }, e.ExtendObj = function() {
                for (var e, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
                e = "object" == typeof t[0] ? t[0] : {};
                for (var o = 1; o < t.length; o++)
                    if ("object" == typeof t[o])
                        for (var r in t[o]) e[r] = t[o][r];
                return e
            }, e.GetClientIp = function(e) {
                var t = e.headers["x-forwarded-for"] || e.connection.remoteAddress || e.socket.remoteAddress || e.connection.socket.remoteAddress,
                    n = t.lastIndexOf("ffff:");
                return -1 !== n && (t = t.slice(n + 5)), t
            }, e.CloneObj = function(e) {
                if ("object" != typeof e || null === e) return e;
                var t;
                for (var n in t = e instanceof Array ? [] : {}, e) t[n] = e[n];
                return t
            }, e.FullCloneObj = function(t) {
                if ("object" != typeof t || null === t) return t;
                var n;
                for (var o in n = t instanceof Array ? [] : {}, t) n[o] = e.FullCloneObj(t[o]);
                return n
            }, e.ConvertTableToObject = function(e) {
                var t = {};
                if (e.length < 1) return t;
                var n = e.shift();
                if (!(n instanceof Array)) return t;
                var o, r, i, a, s = n.length,
                    l = n[0];
                for (o = 0, i = e.length; o < i; o++)
                    if (e[o] instanceof Array && e[o].length == s) {
                        for (a = {}, r = 0; r < s; r++) a[n[r]] = e[o][r];
                        t[a[l]] = a
                    } return t
            }, e.ConvertObjectToTable = function(e, t, n) {
                if (void 0 === t && (t = void 0), void 0 === n && (n = void 0), "object" != typeof e) return e;
                var o, r, i, a = [];
                if (!(t instanceof Array) || t.length <= 0)
                    for (o in t = [], e) {
                        for (r in e[o]) t.push(r);
                        break
                    }
                if (t.length < 1) return a;
                for (o in e) "object" == typeof e[o] && (i = [], t.forEach(function(t) {
                    void 0 !== e[o][t] ? i.push(e[o][t]) : n && void 0 !== n[t] ? i.push(n[t]) : i.push(null)
                }), a.push(i));
                return a.length > 0 && a.unshift(t), a
            }, e.ConvertArrayToTable = function(e, t) {
                void 0 === t && (t = []);
                var n, o, r, i = [];
                if (e.length <= 0) return i;
                if (t.length <= 0) {
                    if (t = [], "object" != typeof e[0]) return i;
                    for (var a in e[0]) t.push(a)
                }
                for (n = 0, o = e.length; n < o; n++) "object" == typeof e[n] && (r = [], t.forEach(function(t) {
                    void 0 !== e[n][t] ? r.push(e[n][t]) : r.push("")
                }), i.push(r));
                return i.length > 0 && i.unshift(t), i
            }, e.Dispatch = function(e, t) {
                return void 0 === t && (t = 0), e.length < 1 ? null : 1 == e.length ? e[0] : (0 == t && (t = Math.floor(Math.random() * e.length)), e[t % e.length])
            }, e.DispatchObject = function(e, t) {
                void 0 === t && (t = 1);
                var n = Object.keys(e),
                    o = [];
                if (n.length < t) return null;
                if (n.length == t) {
                    for (var r = 0, i = Object.keys(e); r < i.length; r++) {
                        var a = i[r];
                        o.push(e[a])
                    }
                    return o
                }
                for (a = 0; a < t; a++) {
                    var s = Math.floor(Math.random() * n.length),
                        l = n.splice(s, 1)[0];
                    o.push(e[l])
                }
                return o
            }, e.DispatchArray = function(e, t, n) {
                void 0 === t && (t = 1), void 0 === n && (n = !1);
                var r = [];
                if (e.length <= t) return e;
                for (var i = o(e), a = 0; a < t; a++) {
                    var s = Math.floor(Math.random() * i.length),
                        l = i[s];
                    n || (l = i.splice(s, 1)[0]), r.push(l)
                }
                return r
            }, e.GetRandomItemAndIndex = function(e, t, n, o) {
                void 0 === t && (t = 1);
                var r = {};
                if (!(e instanceof Array) || e.length < 1) return r;
                if (1 == e.length) return r.Index = 0, r.Item = e[0], r;
                for (var i = [], a = 0, s = 0; s < e.length; s++)
                    if (null == o || !o.includes(s)) {
                        var l = 0,
                            c = 0;
                        if (e[s] instanceof Array && e[s].length > t) c = e[s][0], l = e[s][t];
                        else {
                            if (!(e[s].Items instanceof Array && e[s].Items.length > t)) continue;
                            c = e[s].Items[0], l = e[s].Items[t]
                        }
                        null != n && n.includes(c) || (a += l, i.push({
                            index: s,
                            item: e[s],
                            range: a
                        }))
                    } var u = Math.random() * a;
                for (s = 0; s < i.length; s++)
                    if (u < i[s].range) return r.Index = i[s].index, r.Item = i[s].item, r;
                return r
            }, e.GetRandomItem = function(t, n, o, r) {
                return void 0 === n && (n = 1), void 0 === o && (o = []), void 0 === r && (r = []), e.GetRandomItemAndIndex(t, n, o, r).Item
            }, e.GetRandom = function(e, t, n) {
                void 0 === t && (t = []), void 0 === n && (n = []);
                for (var o = [], r = 0; r < e.length; r++) t.includes(e[r]) || n.includes(r) || o.push(e[r]);
                return o[Math.floor(Math.random() * o.length)]
            }, e.GetRandomObjItemAndIndex = function(t, n, o, r) {
                var i;
                void 0 === n && (n = ""), void 0 === o && (o = {}), void 0 === r && (r = []);
                for (var a = [], s = 0, l = 0; l < t.length; l++)
                    if (!r.includes(l)) {
                        var c = !1;
                        for (var u in o) {
                            var p = e.GetValueByKey(t[l], u) || 1;
                            if (o[u] instanceof Array) - 1 != o[u].indexOf(p) && (c = !0);
                            else
                                for (var d in o[u]) {
                                    if ("$elemMatch" == d)
                                        for (var h = 0, f = p; h < f.length; h++) {
                                            var y = f[h];
                                            if (-1 != o[u][d].indexOf(y)) {
                                                c = !0;
                                                break
                                            }
                                        }
                                    if (c) break
                                }
                        }
                        c || (s += e.GetValueByKey(t[l], n) || 1, a.push({
                            index: l,
                            item: t[l],
                            range: s
                        }))
                    } var g = Math.random() * s;
                for (l = 0; l < a.length; l++)
                    if (g < a[l].range) return {
                        Index: a[l].index,
                        Item: a[l].item
                    };
                return i
            }, e.GetValueByKey = function(e, t) {
                for (var n = e, o = 0, r = t.split("."); o < r.length; o++) {
                    var i = r[o];
                    if (null == n) break;
                    n = n[i]
                }
                return n
            }, e.ValidateChance = function(e) {
                return e >= 1e3 || !(e <= 0) && 1e3 * Math.random() < e
            }, e.SelectMaterials = function(e, t) {
                for (var n = [], o = 0, r = 0, i = t = t.sort(function(e, t) {
                        return e.Items[2] == t.Items[2] ? e.Items[0] > t.Items[0] ? -1 : 1 : e.Items[2] > t.Items[2] ? 1 : -1
                    }); r < i.length; r++) {
                    var a = i[r];
                    switch (a.Items[0]) {
                        case 1:
                            var s = a.Items[3];
                            if (o + a.Items[2] * s > e && (s = Math.ceil((e - o) / a.Items[2])), o += a.Items[2] * s, n.push({
                                    Items: [1, a.Items[1], s]
                                }), o >= e) return n;
                            break;
                        case 2:
                            if (o += a.Items[2], n.push(a), o >= e) return n
                    }
                }
                return o < e ? [] : n
            }, e.GetBinaryDigitCount = function(e, t) {
                void 0 === t && (t = 1);
                var n = 0;
                if (e <= 0) return 0 == t ? 1 : 0;
                for (; e > 0;)(1 & e) == t && (n += 1), e >>= 1;
                return n
            }, e.GetBinaryValueByIndex = function(e, t) {
                return void 0 === t && (t = 0), (e & Math.pow(2, t)) >> t
            }, e.IsAnyBlank = function() {
                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                for (var n = 0, o = e; n < o.length; n++) {
                    var r = o[n];
                    if (!r) return !0
                }
                return !1
            }, e.CharCodes = function(e) {
                for (var t = [], n = 0; n < e.length; n++) t.push(e.charCodeAt(n));
                return t
            }, e.ReplaceContent = function(t, n, o) {
                var r, i = typeof t;
                if ("number" == i) {
                    if (t == n) return parseInt(o)
                } else {
                    if ("string" == i) {
                        var a = new RegExp(n.toString(), "g");
                        return t.replace(a, o)
                    }
                    if (null === (r = null == t ? void 0 : t.Items) || void 0 === r ? void 0 : r.length)
                        for (var s = 0; s < t.Items.length; s++) t.Items[s] = e.ReplaceContent(t.Items[s], n, o);
                    else if (Array.isArray(t) || "object" == i)
                        for (var s in t) t[s] = e.ReplaceContent(t[s], n, o)
                }
                return t
            }, e
        }();
        n.AppUtil = r, cc._RF.pop()
    }, {}],
    ArenaEntranceItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "89162C0nlZK44/tx3R/yC53", "ArenaEntranceItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../Components/DataCenter"),
            f = e("../../RedDot/RedDotManager"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Battle/BattleManager"),
            m = e("../Panel/ArenaPanel"),
            I = e("../../../Util/TimeUtil"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../../Components/Components"),
            v = e("../../../Consts/Etc"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ChellengeCountTitleLabel = null, t.ChellengeCountLabel = null, t.ChallengeCountNode = null, t.RuleLabel = null, t.LockNode = null, t.UnlockConditionLabel = null, t.SetGrayNode = null, t.BattleSpineNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnComponnentClicked, this), this.ChellengeCountTitleLabel.string = "ArenaEntrance_CountTitle".ToUILocale()
                }, t.prototype.Init = function() {
                    if (this._unlockStatus = u.default.Instance.IsGameModuleUnlock(c.GameModuleType.Arena), 1 != this._unlockStatus[0]) return y.UIUtlity.OnNodeGray(this.SetGrayNode), this.LockNode.active = !0, this.ChallengeCountNode.active = !1, void(this.UnlockConditionLabel.string = this._unlockStatus[1]);
                    y.UIUtlity.OffNodeGray(this.SetGrayNode), this.LockNode.active = !1, this.ChallengeCountNode.active = !0;
                    var e = I.TimeUtil.GetWeekDay(C.RpcComponent.Instance.ServerTime),
                        t = C.ConfigDataComponent.Instance.GetConfigById(_.LevelParam_Config, c.LevelParamType.ArenaSettlementTime);
                    if (this.RuleLabel.string = "ArenaEntrance_Rule".ToUILocale(), e == t.Data2[0].Items[0]) {
                        var n = I.TimeUtil.Get0ClockTs(C.RpcComponent.Instance.ServerTime) + v.Etc.HourDuration * t.Data2[0].Items[1] + v.Etc.MinuteDuration * t.Data2[0].Items[2];
                        C.RpcComponent.Instance.ServerTime >= n && (this.RuleLabel.string = "ArenaEntrance_Rule_Settlement".ToUILocale())
                    } else if (e == t.Data2[1].Items[0]) {
                        var o = I.TimeUtil.Get0ClockTs(C.RpcComponent.Instance.ServerTime) + v.Etc.HourDuration * t.Data2[1].Items[1] + v.Etc.MinuteDuration * t.Data2[1].Items[2];
                        C.RpcComponent.Instance.ServerTime < o && (this.RuleLabel.string = "ArenaEntrance_Rule_Settlement".ToUILocale())
                    }
                    for (var r = h.DataCenter.Instance.GetDataById(s.TaskPointReward_Model, m.default.arenaTaskPointRewardID), i = r ? r.Point : 0, l = d.ConfigDataComponent.Instance.GetConfigById(a.PointRewardType_Config, m.default.arenaTaskPointRewardID), p = 0, f = 0, b = l.Nodes.length; f < b; ++f) {
                        var S = d.ConfigDataComponent.Instance.GetConfigById(a.TaskPointReward_Config, l.Nodes[f]);
                        S.Point > p && (p = S.Point)
                    }
                    this.ChellengeCountLabel.string = i + "/" + p, this.BattleSpineNode.active = g.BattleManager.Instance.IsInBattle(c.MapType.Arena), this.BindRedDot()
                }, t.prototype.BindRedDot = function() {
                    f.RedDotManager.Instance.Bind(this.node, f.RedDotManager.Instance.RedDot.ArenaNode, -47, -35)
                }, t.prototype.IsLocked = function() {
                    return !1
                }, t.prototype.OnComponnentClicked = function() {
                    this._unlockStatus[0] ? l.UIManager.Instance.ShowUIPanel(p.PanelConfig.ArenaPanel.Path) : y.UIUtlity.ShowFloatingHint(this._unlockStatus[1])
                }, t.prototype.Refresh = function() {}, i([w(cc.Label)], t.prototype, "ChellengeCountTitleLabel", void 0), i([w(cc.Label)], t.prototype, "ChellengeCountLabel", void 0), i([w(cc.Node)], t.prototype, "ChallengeCountNode", void 0), i([w(cc.Label)], t.prototype, "RuleLabel", void 0), i([w(cc.Node)], t.prototype, "LockNode", void 0), i([w(cc.Label)], t.prototype, "UnlockConditionLabel", void 0), i([w(cc.Node)], t.prototype, "SetGrayNode", void 0), i([w(cc.Node)], t.prototype, "BattleSpineNode", void 0), i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Panel/ArenaPanel": "ArenaPanel"
    }],
    ArenaPalaceTable: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4fcdcHm0WtHQ4W8LRrins/D", "ArenaPalaceTable");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../GamePlay/Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("./LoadAssetHelper"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property;
        (function(e) {
            e[e.Pet = 100] = "Pet", e[e.MagicCircleBottom = 200] = "MagicCircleBottom", e[e.MagicCircleTop = 300] = "MagicCircleTop"
        })(l || (l = {}));
        var I = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.MagicCircleBottomNode = null, t.HeroContainer = null, t.MagicCircleTopNode = null, t.PetNode = null, t.RankIcon = null, t.NameBg = null, t.PlayerName = null, t.ServerNode = null, t.ServerName = null, t.LoadAssetHelper = null, t._loadedAssets = [], t
            }
            return r(t, e), t.prototype.Init = function(e, t, n) {
                this._rankData = e, this._rank = t, this._crossServerState = n, this.ConfigAvatar(), this.ConfigPlayerInfo()
            }, t.prototype.ConfigAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this._avatarId == this._rankData.PlayerInfo.HeadIcon ? [2] : (this.HeroContainer.destroyAllChildren(), this._avatarId = this._rankData.PlayerInfo.HeadIcon, (e = c.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, this._avatarId)) || (e = c.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._avatarId)), this._avatarPath = "Hero_" + e.Model + "/HeroAvatar", [4, d.AssetsManager.Instance.LoadAsset(this._avatarPath)]);
                            case 1:
                                return t = i.sent(), this.isValid ? (t.name == this._avatarPath ? (this._loadedAssets.push(t), (n = cc.instantiate(t)).setParent(this.HeroContainer), n.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0)) : d.AssetsManager.Instance.UnloadAsset(t), this.MagicCircleTopNode && this.MagicCircleBottomNode && (o = this._rankData.PlayerInfo.MagicCircle, this.SetMagicCircleByItemId(o)), this.PetNode && (r = this._rankData.PlayerInfo.Pet, this.SetPetByItemId(r)), [2]) : (d.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.SetMagicCircleByItemId = function(e) {
                if (e) {
                    var t = c.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, e);
                    if (t) {
                        var n, o, r = t.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(r, this.MagicCircleBottomNode, function(e) {
                            n = e, o && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleBottom), this.LoadAssetHelper.LoadPrefab(r, this.MagicCircleTopNode, function(e) {
                            (o = e) && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleTop)
                    }
                }
            }, t.prototype.SetPetByItemId = function(e) {
                if (e) {
                    var t = c.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, e);
                    if (t) {
                        var n = t.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(n, this.PetNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0)
                        }, l.Pet)
                    }
                }
            }, t.prototype.ConfigPlayerInfo = function() {
                this.ServerNode.active = this._crossServerState, this._crossServerState && (this.ServerName.string = this._rankData.Zone ? "S" + this._rankData.Zone : "..."), this.PlayerName.string = this._rankData.PlayerInfo.Name, this.RankIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + this._rank), this.NameBg.spriteFrame = h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("rankNameBg" + this._rank)
            }, t.prototype.onDestroy = function() {
                for (var e = 0; e < this._loadedAssets.length; e++) d.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                this._loadedAssets = []
            }, i([m(cc.Node)], t.prototype, "MagicCircleBottomNode", void 0), i([m(cc.Node)], t.prototype, "HeroContainer", void 0), i([m(cc.Node)], t.prototype, "MagicCircleTopNode", void 0), i([m(cc.Node)], t.prototype, "PetNode", void 0), i([m(cc.Sprite)], t.prototype, "RankIcon", void 0), i([m(cc.Sprite)], t.prototype, "NameBg", void 0), i([m(cc.Label)], t.prototype, "PlayerName", void 0), i([m(cc.Node)], t.prototype, "ServerNode", void 0), i([m(cc.Label)], t.prototype, "ServerName", void 0), i([m(f.default)], t.prototype, "LoadAssetHelper", void 0), i([g], t)
        }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    ArenaPanelBattleReportItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0194bJZ4S1CqL0u9LaiY3lP", "ArenaPanelBattleReportItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../Util/TimeUtil"),
            d = e("../../Components/DataCenter"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../UI/Components/HeadComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = (y.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.index = -1, t.headComponent = null, t
                }
                var n;
                return r(t, e), n = t, t.Get = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i, a, l, c, u, f;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (o = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    o = s.sent(), s.label = 3;
                                case 3:
                                    return (r = o.getComponent(n)).index = e, r.replayButton.node.on("click", r.OnReplayButtonClicked, r), i = d.DataCenter.Instance.Uid == t.AttackerInfo.Uid, a = i && !!t.Result || !i && !t.Result, l = t.IntParams[1].toString(), c = p.TimeUtil.Format("YYYY/MM/DD", t.Ts), u = p.TimeUtil.Format("HH:mm:ss", t.Ts), f = i ? t.DefenderInfo : t.AttackerInfo, r.attackIcon.active = i, r.defendIcon.active = !i, r.winIcon.active = a, r.loseIcon.active = !a, r.upIcon.active = a, r.upValue.node.active = a, r.upValue.string = l, r.downIcon.active = !a, r.downValue.node.active = !a, r.downValue.string = l, r.rivalName.string = f.Name, r.date.string = c, r.time.string = u, r.levelNode.active = !0, r.level.string = f.Level.toString(), f.Country ? (r.country.node.active = !0, h.UIUtlity.SetCountrySpriteFrame(r.country, f.Country)) : r.country.node.active = !1, [2, r]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    e.replayButton.node.off("click"), n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t]);
                    n.pool.clear
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    l.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null, l.AssetsManager.Instance.UnloadAsset(n.headComponentPrefab), n.headComponentPrefab = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, l.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = i.sent(), i.label = 2;
                                case 2:
                                    return null != n.headComponentPrefab ? [3, 4] : (t = n, [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.HeadComponent, cc.Prefab)]);
                                case 3:
                                    t.headComponentPrefab = i.sent(), i.label = 4;
                                case 4:
                                    return n.prefabAsset ? (o = cc.instantiate(n.prefabAsset), (r = o.getComponent(n)).InitNodesAndComponents(), r.headComponent = cc.instantiate(n.headComponentPrefab).getComponent(f.default), r.headComponent.node.setParent(r.headIcon.node), r.headComponent.node.setScale(.96), [2, o]) : (c.EZLog.Debug("ok in ArenaPanelBattleReportItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {
                    var e = this.node;
                    this.attackIcon = cc.find("Attack", e), this.defendIcon = cc.find("Defend", e), this.winIcon = cc.find("Win", e), this.loseIcon = cc.find("Lose", e), this.upIcon = cc.find("Up", e), this.upValue = cc.find("UpValue", e).getComponent(cc.Label), this.downIcon = cc.find("Down", e), this.downValue = cc.find("DownValue", e).getComponent(cc.Label), this.headIcon = cc.find("HeadIcon", e).getComponent(cc.Sprite), this.levelNode = cc.find("LevelNode", e), this.level = cc.find("LevelNode/Level", e).getComponent(cc.Label), this.country = cc.find("Country", e).getComponent(cc.Sprite), this.replayButton = cc.find("ReplayButton", e).getComponent(cc.Button), this.rivalName = cc.find("InfoContainer/Name", e).getComponent(cc.Label), this.date = cc.find("InfoContainer/Date", e).getComponent(cc.Label), this.time = cc.find("InfoContainer/Time", e).getComponent(cc.Label)
                }, t.prototype.OnReplayButtonClicked = function() {
                    c.EZLog.Debug("ok in ArenaPanelBattleReportItem.OnReplayButtonClicked... button Index : " + this.index), n.arenaPanel.OnReplayReportButtonClicked(this.index)
                }, t.prototype.SetHeadComponent = function(e, t, n) {
                    n ? this.headComponent.SetUI(e, t, n) : this.headComponent.SetUI(e, t)
                }, t.classNameString = "ArenaPanelBattleReportItem", t.prefabPathName = "Arena/Private/BattleReportItem", t.headComponentPrefab = null, t.prefabAsset = null, t.pool = new cc.NodePool, t.arenaPanel = null, n = i([g], t)
            }(cc.Component));
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../UI/Components/HeadComponent": "HeadComponent",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    ArenaPanelRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3bb5aIiVqpB5p3kcTNZrTey", "ArenaPanelRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = (h.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.functionArray = [t.OnTouchedItemContainer0, t.OnTouchedItemContainer1, t.OnTouchedItemContainer2, t.OnTouchedItemContainer3], t.rewardSlots = [], t
                }
                var n;
                return r(t, e), n = t, t.Get = function(e, t, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i, a, c, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (r = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    r = s.sent(), s.label = 3;
                                case 3:
                                    if ((i = r.getComponent(n)).InitNodesAndComponents(), i.rankIcon1.active = !1, i.rankIcon2.active = !1, i.rankIcon3.active = !1, e == t) switch (i.rankBg.spriteFrame = n.mainAtlas.getSpriteFrame(n.rankItemBGNames[e]), i.rankLabelRT.node.active = !1, e) {
                                        case 1:
                                            i.rankIcon1.active = !0;
                                            break;
                                        case 2:
                                            i.rankIcon2.active = !0;
                                            break;
                                        case 3:
                                            i.rankIcon3.active = !0;
                                            break;
                                        default:
                                            i.rankLabelRT.node.active = !0
                                    } else i.rankBg.spriteFrame = n.mainAtlas.getSpriteFrame(n.rankItemBGNames[4]), i.rankLabelRT.string = e + (0 == t ? "+" : "~" + t), i.rankLabelRT.node.active = !0;
                                    for (i.rewardSlots[0].node.active = !1, i.rewardSlots[1].node.active = !1, i.rewardSlots[2].node.active = !1, i.rewardSlots[3].node.active = !1, a = 0, c = o.length; a < c; ++a)(u = new l.UserItem_Model).ItemId = o[a].Items[0], u.Count = o[a].Items[1], i.rewardSlots[a].Init(u, d.ItemComponentType.ItemCommon), i.rewardSlots[a].node.active = !0;
                                    return [2, i]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    c.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null, c.AssetsManager.Instance.UnloadAsset(n.itemComponentPrefabAsset), n.itemComponentPrefabAsset = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a, l, h;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != n.mainAtlas ? [3, 2] : (e = n, [4, c.AssetsManager.Instance.LoadAsset(n.mainAtlasPathName, cc.SpriteAtlas)]);
                                case 1:
                                    e.mainAtlas = s.sent(), s.label = 2;
                                case 2:
                                    return null != n.prefabAsset ? [3, 4] : (t = n, [4, c.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 3:
                                    t.prefabAsset = s.sent(), s.label = 4;
                                case 4:
                                    return n.prefabAsset ? null != n.itemComponentPrefabAsset ? [3, 6] : (o = n, [4, c.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent)]) : [3, 7];
                                case 5:
                                    o.itemComponentPrefabAsset = s.sent(), s.label = 6;
                                case 6:
                                    for (r = cc.instantiate(n.prefabAsset), (i = r.getComponent(n)).rankIcon1 = cc.find("RankIcon1", r), i.rankIcon2 = cc.find("RankIcon2", r), i.rankIcon3 = cc.find("RankIcon3", r), i.rankLabelRT = cc.find("RankLabelRT", r).getComponent(cc.RichText), i.rankBg = r.getComponent(cc.Sprite), a = cc.find("ItemContainer", r), l = 0; l < n.maxRewardSlots; ++l)(h = cc.instantiate(n.itemComponentPrefabAsset)).setParent(a), h.setPosition(n.xArray[l], -11), h.setScale(.5871), i.rewardSlots.push(h.getComponent(d.ItemComponent)), h.on(cc.Node.EventType.TOUCH_END, i.functionArray[l], i);
                                    return [2, r];
                                case 7:
                                    return u.EZLog.Debug("ok in ArenaPanelRewardItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null]
                            }
                        })
                    })
                }, t.prototype.OnTouchedItemContainer0 = function() {
                    this.rewardSlots[0].ShowItemTip()
                }, t.prototype.OnTouchedItemContainer1 = function() {
                    this.rewardSlots[1].ShowItemTip()
                }, t.prototype.OnTouchedItemContainer2 = function() {
                    this.rewardSlots[2].ShowItemTip()
                }, t.prototype.OnTouchedItemContainer3 = function() {
                    this.rewardSlots[3].ShowItemTip()
                }, t.prototype.InitNodesAndComponents = function() {}, t.classNameString = "ArenaPanelRewardItem", t.prefabPathName = "Arena/Private/RewardItem", t.mainAtlasPathName = "Arena/Atlas/Main", t.maxRewardSlots = 4, t.rankItemBGNames = ["", "menu1", "menu2", "menu3", "menu4"], t.xArray = [-222, -74, 74, 222], t.prefabAsset = null, t.itemComponentPrefabAsset = null, t.pool = new cc.NodePool, t.mainAtlas = null, n = i([f], t)
            }(cc.Component));
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ArenaPanelRivalInfoItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1bc3cSuxohK/rwawItPeRWS", "ArenaPanelRivalInfoItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./ArenaPanel"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../UI/Components/HeadComponent"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../Components/Components"),
            C = e("../../../Util/TimeUtil"),
            v = e("../../../Consts/Etc"),
            b = e("../Battle/BattleManager"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("../../../ShareConsts/BattleConsts"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FriendSprite = null, t.AllianceSprite = null, t.UserDesignation = null, t.ZoneLabel = null, t.UnChallengeButton = null, t.UnChallengeButtonText = null, t.battlePower = null, t.rivalName = null, t.score = null, t.headIcon = null, t.itemButton = null, t.challengeButton = null, t.challengeButtonText = null, t.challengeButtonCard = null, t.challengeButtonFreeText = null, t.challengeButtonCardWhiteNumber = null, t.challengeButtonCardRedNumber = null, t.index = -1, t.headComponent = null, t.headIconAsset = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(S.EventKeys.EVENT_ARENABATTLE_REFRESH, this.RefreshButtonState, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(S.EventKeys.EVENT_ARENABATTLE_REFRESH, this.RefreshButtonState, this)
                }, t.Get = function(e, t, o, r, i, l, c, u, p, d) {
                    return a(this, void 0, void 0, function() {
                        var i, a, f;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (i = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    i = s.sent(), s.label = 3;
                                case 3:
                                    return (a = i.getComponent(n)).InitNodesAndComponents(), a.headComponent.node.setParent(a.headIcon.node), a.index = e, a.rivalName.string = t, g.default.SetDesignationIcon(d, a.UserDesignation), a.battlePower.string = o.toString(), a.score.string = r.toString(), a.challengeButton.node.on("click", a.OnChallengeButtonClicked, a), a.itemButton.node.on("click", a.OnItemBodyClicked, a), a.UnChallengeButton.node.on("click", a.OnUnChallengeButtonClicked, a), a.challengeButtonText.node.active = !l, a.challengeButtonCard.active = !l, a.challengeButtonFreeText.node.active = l, a.challengeButtonCardWhiteNumber.active = !l && c, a.challengeButtonCardRedNumber.active = !l && !c, a.FriendSprite.node.active = u, a.AllianceSprite.node.active = p, f = b.BattleManager.Instance.IsInBattle(I.MapType.Arena), a.challengeButton.node.active = !f || h.default.ChallengIndex == e, a.UnChallengeButton.node.active = f && h.default.ChallengIndex != e, f && h.default.ChallengIndex == e ? a.challengeButtonText.string = "idlebattle_inBattle".ToUILocale() : a.challengeButtonText.string = "SeniorArenaChallenge".ToUILocale(), a.challengeButtonFreeText.string = "arena_freeChallengeBtnText".ToUILocale(), a.UnChallengeButtonText.string = "SeniorArenaChallenge".ToUILocale(), [2, a]
                            }
                        })
                    })
                }, t.prototype.RefreshButtonState = function() {
                    var e = b.BattleManager.Instance.IsInBattle(I.MapType.Arena);
                    this.challengeButton.node.active = !e || h.default.ChallengIndex == this.index, this.UnChallengeButton.node.active = e && h.default.ChallengIndex != this.index, e && h.default.ChallengIndex == this.index ? this.challengeButtonText.string = "idlebattle_inBattle".ToUILocale() : this.challengeButtonText.string = "SeniorArenaChallenge".ToUILocale()
                }, t.Put = function(e) {
                    e.challengeButton.node.off("click"), e.itemButton.node.off("click"), n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    u.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null, u.AssetsManager.Instance.UnloadAsset(n.headComponentPrefab), n.headComponentPrefab = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, u.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = r.sent(), r.label = 2;
                                case 2:
                                    return null != n.headComponentPrefab ? [3, 4] : (t = n, [4, u.AssetsManager.Instance.LoadAsset(d.BundlePath.HeadComponent, cc.Prefab)]);
                                case 3:
                                    t.headComponentPrefab = r.sent(), r.label = 4;
                                case 4:
                                    return n.prefabAsset ? ((o = cc.instantiate(n.prefabAsset)).getComponent(n).headComponent = cc.instantiate(n.headComponentPrefab).getComponent(y.default), [2, o]) : (p.EZLog.Debug("ok in ArenaPanelRivalInfoItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {
                    var e = this.node;
                    this.battlePower = cc.find("BattlePower/LabelContainer/Label", e).getComponent(cc.Label), this.rivalName = cc.find("NameContainer/Label", e).getComponent(cc.Label), this.score = cc.find("Score/LabelContainer/Label", e).getComponent(cc.Label), this.headIcon = cc.find("HeadIcon", e).getComponent(cc.Sprite), this.itemButton = this.node.getComponent(cc.Button), this.challengeButton = cc.find("ButtonLayout/ChallengeButton", e).getComponent(cc.Button), this.challengeButtonText = cc.find("ButtonLayout/ChallengeButton/Label", e).getComponent(cc.Label), this.challengeButtonFreeText = cc.find("ButtonLayout/ChallengeButton/LabelFree", e).getComponent(cc.Label), this.challengeButtonCard = cc.find("ButtonLayout/TicketNode", e), this.challengeButtonCardWhiteNumber = cc.find("ButtonLayout/TicketNode/WhiteNumber", e), this.challengeButtonCardRedNumber = cc.find("ButtonLayout/TicketNode/RedNumber", e)
                }, t.prototype.OnChallengeButtonClicked = function() {
                    if (b.BattleManager.Instance.IsInBattle(I.MapType.Arena)) b.BattleManager.Instance.ResumePlayBattle(I.MapType.Arena);
                    else {
                        p.EZLog.Debug("ok in ArenaPanelRivalInfoItem.OnChallengeButtonClicked... button Index : " + this.index);
                        var e = C.TimeUtil.GetWeekDay(_.RpcComponent.Instance.ServerTime),
                            t = _.ConfigDataComponent.Instance.GetConfigById(m.LevelParam_Config, I.LevelParamType.ArenaSettlementTime);
                        if (e == t.Data2[0].Items[0]) {
                            var o = C.TimeUtil.Get0ClockTs(_.RpcComponent.Instance.ServerTime) + v.Etc.HourDuration * t.Data2[0].Items[1] + v.Etc.MinuteDuration * t.Data2[0].Items[2];
                            if (_.RpcComponent.Instance.ServerTime >= o) return void f.UIUtlity.ShowFloatingHint("arena_limit_challenge".ToUILocale())
                        } else if (e == t.Data2[1].Items[0]) {
                            var r = C.TimeUtil.Get0ClockTs(_.RpcComponent.Instance.ServerTime) + v.Etc.HourDuration * t.Data2[1].Items[1] + v.Etc.MinuteDuration * t.Data2[1].Items[2];
                            if (_.RpcComponent.Instance.ServerTime < r) return void f.UIUtlity.ShowFloatingHint("arena_limit_challenge".ToUILocale())
                        }
                        n.arenaPanel.OnChallengeButtonClicked(this.index)
                    }
                }, t.prototype.OnUnChallengeButtonClicked = function() {
                    f.UIUtlity.ShowFloatingHint("inBattle".ToUILocale())
                }, t.prototype.OnItemBodyClicked = function() {
                    p.EZLog.Debug("ok in ArenaPanelRivalInfoItem.OnItemBodyClicked... button Index : " + this.index), n.arenaPanel.OnRivalItemClicked(this.index)
                }, t.prototype.SetHeadComponent = function(e, t, n) {
                    n ? this.headComponent.SetUI(e, t, n) : this.headComponent.SetUI(e, t)
                }, t.prototype.SetHeadComponentParam = function(e, t, n) {
                    this.headComponent.SetLevel(e), this.headComponent.SetCountry(t), this.ZoneLabel.node.parent.active = !!n, n && (this.ZoneLabel.string = "S" + n.toString())
                }, t.prototype.ResetPlayerPower = function(e) {
                    var t = this,
                        n = new c.Req_Player_GetPlayerDetailInfo;
                    n.Uid = e.Uid, n.FormationIds = [w.FormationIdType.MainLine], n.Zone = e.Zone, e.Uid < 0 && (n.PlayerType = I.PlayerInfoType.Robot), _.RpcComponent.Instance.Call(n, function(e) {
                        t.battlePower.string = e.Info.Power.toString()
                    })
                }, t.classNameString = "ArenaPanelRivalInfoItem", t.prefabPathName = "Arena/Private/RivalInfoItem", t.headComponentPrefab = null, t.prefabAsset = null, t.pool = new cc.NodePool, t.arenaPanel = null, i([T(cc.Sprite)], t.prototype, "FriendSprite", void 0), i([T(cc.Sprite)], t.prototype, "AllianceSprite", void 0), i([T(cc.Sprite)], t.prototype, "UserDesignation", void 0), i([T(cc.Label)], t.prototype, "ZoneLabel", void 0), i([T(cc.Button)], t.prototype, "UnChallengeButton", void 0), i([T(cc.Label)], t.prototype, "UnChallengeButtonText", void 0), n = i([A], t)
            }(cc.Component);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../UI/Components/HeadComponent": "HeadComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./ArenaPanel": "ArenaPanel"
    }],
    ArenaPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6aaceG4yblFH7e0qAt/YAx8", "ArenaPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../../Util/TimeUtil"),
            f = e("../../../GamePlay/Components/Components"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/BattlePlayerFrame"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("./ArenaPanelRivalInfoItem"),
            v = e("./ArenaPanelRewardItem"),
            b = e("./ArenaPanelBattleReportItem"),
            S = e("../../../Consts/Consts"),
            w = e("../../../ShareConsts/EnumType"),
            P = e("../Components/CurrencyBarItem"),
            A = e("../Components/NodeJiggling"),
            T = e("../Components/ItemComponent"),
            R = e("../../UI/Components/HeadComponent"),
            L = e("../../Auxiliary/DataUtlity"),
            k = e("../Battle/BattleManager"),
            O = e("./BuyAndSellItemPanel"),
            M = e("../../Channel/ChannelManager"),
            D = e("./AngelBtnComponent"),
            B = e("../../Auxiliary/ModuleGuideManager"),
            N = e("../Components/CustomProgressBar"),
            E = e("../Components/ArenaPalaceTable"),
            U = cc._decorator,
            G = U.ccclass,
            x = U.property,
            H = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.battlePlayerFrame = null, t.mainAtlas = null, t.multiLangAtlas = null, t.SpaceTimeButton = null, t.SpaceTimeLabel = null, t.LeftTime = null, t.UserDesignationIcon = null, t.Bg = null, t.ChallengeTimesTag = null, t.progressBar = null, t.mainPanel = null, t.dock = null, t.rewardPanel = null, t.reportPanel = null, t.rivalInfoPanel = null, t.rivalData = null, t.reportData = null, t.dailyChallengedCount = 0, t.myRank = 0, t.progressBarIsTweening = !1, t.currentSelectedRivalUid = 0, t.leavePanelFlag = !1, t.currentOffScreenBattleId = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(I.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnBuySuccess, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(I.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnBuySuccess, this)
                }, t.prototype.InitNodesAndComponents = function() {
                    this.progressBar = new F(this, cc.find("ProgressBar", this.node)), this.mainPanel = new j(this, cc.find("MainPanel", this.node)), this.dock = new W(this, cc.find("Dock", this.node)), this.rewardPanel = new z(this, cc.find("ArenaBattleRewardPanel", this.node)), this.reportPanel = new q(this, cc.find("ArenaBattleReportListPanel", this.node)), this.rivalInfoPanel = new V(this, cc.find("ArenaRivalInfoPanel", this.node)), C.default.arenaPanel = this, b.default.arenaPanel = this
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.node.active = !0;
                    var o = cc.sys.localStorage.getItem(n.skipChallengeLocalStorageKey);
                    if (o) {
                        var r = "TRUE" == o;
                        this.mainPanel.skipBattleReplayTip.active = r
                    }
                    this.progressBar.baseNode.active = !0, this.mainPanel.baseNode.active = !0, t || (this.RefreshMainPanelData(), this.RefreshTopPlayerData(), this.SpaceTimeButton.node.active = n.GetSpaceTimeButtonState(), this._raceEndTime = h.TimeUtil.GetMondayClock0Ts(f.RpcComponent.Instance.ServerTime) + 7 * d.Etc.DayDuration, this.SetLeftTime());
                    var i = f.DataCenter.Instance.GetSimpleData(S.UserDataKey.Designation);
                    i && L.default.SetDesignationIcon(i.V, this.UserDesignationIcon), this.ShowGuide()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, o, r, i, a, l, c, u = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = M.default.Instance.IsHighSchoolChannel(), o = t ? "BattleBg/ArenaDay" : "CommonBg/PanelBg23", r = this.LoadDynamicAsset(g.BundlePath.HeadComponent), i = this.LoadDynamicAsset(g.BundlePath.ItemComponent), a = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelBtnComponent", cc.Prefab), l = this.LoadDynamicAsset(o, cc.SpriteFrame), c = this.LoadDynamicAsset("Arena/Private/ArenaPalaceTable", cc.Prefab), [4, Promise.all([r, i, a, l, c]).then(function(e) {
                                        n.headComponentPrefab = e[0], n.itemComponentPrefabAsset = e[1], n.angelBtnPrefab = e[2], u.Bg.spriteFrame = e[3], n.playerPrefab = e[4]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InitNodesAndComponents(), this.progressBar.InitUI(), this.mainPanel.InitUI(), this.dock.InitUI(), this.rewardPanel.InitUI(), this.reportPanel.InitUI(), this.rivalInfoPanel.InitUI(), this.SpaceTimeButton.node.on("click", this.OnSpaceTimeBtnClicked, this), this.RuleButton.node.on("click", this.OnClickRulesButton.bind(this), this), this.Title.string = "arena_mainTitle".ToUILocale(), this.ChallengeTimesTag.string = "challenge_times_tag".ToUILocale(), this.SpaceTimeLabel.string = "crossServerSpaceTime".ToUILocale(), n.GetStaticConfig()
                }, t.prototype.ResetUI = function() {}, t.prototype.LeavePanel = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.ShowRankingRewards = function() {
                    this.rewardPanel.Show()
                }, t.prototype.OnReportButtonClicked = function() {
                    this.reportPanel.Show(), this.GetBattleReportData()
                }, t.prototype.OnReplayReportButtonClicked = function(e) {
                    var t = this,
                        n = new u.Req_Player_GetCommonReport;
                    n.Id = this.reportData.Data[e].Report, f.RpcComponent.Instance.Call(n, function(n) {
                        k.BattleManager.Instance.StartPlay(n.Reports[0], {
                            CanCanel: !1,
                            CanRestart: !1,
                            CanPlayInBackground: !1,
                            CanSkipPlay: !0,
                            SkipPlayRound: 1
                        }).SettleParams = [t.reportData.Data[e]]
                    })
                }, t.prototype.OnBuySuccess = function() {
                    this.mainPanel.currencyBarItem.Init(n.arenaTicketItemID), this.mainPanel.RefreshTicketState()
                }, t.prototype.SetProgressBarIsTweeningFlag = function(e) {
                    this.progressBarIsTweening = e
                }, t.GetSpaceTimeButtonState = function() {
                    return !!L.default.IsCrossServerConditonsEnable() && !!L.default.IsCrossServerTimeEnable()
                }, t.prototype.OnClickRulesButton = function() {
                    var e = {
                        name: "arena_mainTitle".ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: ["arena_rules_content".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnSpaceTimeBtnClicked = function() {
                    var e = new u.Req_CrossZone_GetGroupInfo;
                    f.RpcComponent.Instance.Call(e, this.OnGetServerGroupInfo.bind(this))
                }, t.prototype.OnGetServerGroupInfo = function(e) {
                    e.Zones.length > 0 ? l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerSpaceTimePanel.Path, e) : y.UIUtlity.ShowFloatingHint("CrossServerLimitHint".ToUILocale())
                }, t.prototype.SetLeftTime = function() {
                    var e = h.TimeUtil.GetWeekDay(p.RpcComponent.Instance.ServerTime),
                        t = p.ConfigDataComponent.Instance.GetConfigById(_.LevelParam_Config, d.LevelParamType.ArenaSettlementTime);
                    if (e == t.Data2[0].Items[0]) {
                        var n = h.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime) + d.Etc.HourDuration * t.Data2[0].Items[1] + d.Etc.MinuteDuration * t.Data2[0].Items[2];
                        if (p.RpcComponent.Instance.ServerTime >= n) {
                            this.LeftTime.string = "ArenaEntrance_Rule_Settlement".ToUILocale();
                            var o = h.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime) + d.Etc.DayDuration - p.RpcComponent.Instance.ServerTime;
                            return void this.scheduleOnce(this.SetLeftTime, o / 1e3)
                        }
                    } else if (e == t.Data2[1].Items[0]) {
                        var r = h.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime) + d.Etc.HourDuration * t.Data2[1].Items[1] + d.Etc.MinuteDuration * t.Data2[1].Items[2];
                        if (p.RpcComponent.Instance.ServerTime < r) return this.LeftTime.string = "ArenaEntrance_Rule_Settlement".ToUILocale(), void this.scheduleOnce(this.SetLeftTime, (r - p.RpcComponent.Instance.ServerTime) / 1e3)
                    }
                    this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)
                }, t.prototype.SetDeadLine = function() {
                    var e = this._raceEndTime - p.RpcComponent.Instance.ServerTime;
                    e < 0 ? c.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "arena_leftTime".ToUILocale().Fmt(L.default.ActivityTimeLeftFormat(e))
                }, t.GetStaticConfig = function() {
                    n.skipReplayEnableState = L.default.Instance.IsGameModuleUnlock(d.GameModuleType.ArenaSkipBattle)[0], n.dailyFreeChallengeCountLimit = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("ArenaDailyFreeChallengeCount"), n.redIndicatorForHigherScoreRatio = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("ArenaRedIndicatorForHigherScoreRatio"), n.ticketPriceInDiamond = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("ArenaTicketPriceInDiamond"), n.challengeTicketName = n.arenaTicketItemID.ToItemName();
                    var e = f.ConfigDataComponent.Instance.GetConfigById(_.PointRewardType_Config, n.arenaTaskPointRewardID);
                    n.pointRewardIDArray = e.Nodes, n.pointRewardArray = [];
                    for (var t = 0, o = e.Nodes.length; t < o; ++t) {
                        var r = f.ConfigDataComponent.Instance.GetConfigById(_.TaskPointReward_Config, e.Nodes[t]);
                        n.pointRewardArray.push(r), r.Point > n.pointRewardArrayMaxPoint && (n.pointRewardArrayMaxPoint = r.Point)
                    }
                }, t.prototype.GetBattleReportData = function() {
                    var e = new u.Req_Player_GetBattleMessages;
                    e.Type = d.BattleMessageType.Arena, f.RpcComponent.Instance.Call(e, this.OnBattleReportDataRecieved.bind(this))
                }, t.prototype.OnBattleReportDataRecieved = function(e) {
                    this.reportData = e, this.reportPanel.RefreshUIByData(e)
                }, t.prototype.OnRefreshButtonClicked = function() {
                    k.BattleManager.Instance.IsInBattle(S.MapType.Arena) ? y.UIUtlity.ShowFloatingHint("inBattle".ToUILocale()) : this.RefreshMainPanelData()
                }, t.prototype.RefreshMainPanelData = function() {
                    this.weeklyChallengedData = f.DataCenter.Instance.GetDataById(u.TaskPointReward_Model, n.arenaTaskPointRewardID), this.dailyChallengedCount = f.DataCenter.Instance.GetIntData(S.UserDataKey.ArenaChallengeCount), this.progressBar.RefreshUIByData(this.weeklyChallengedData);
                    var e = new u.Req_Map_RefreshArenaInfo;
                    f.RpcComponent.Instance.Call(e, this.OnMainPanelDataRecieved.bind(this))
                }, t.prototype.OnMainPanelDataRecieved = function(e) {
                    this.rivalData = e.Targets, this.myRank = e.MyRank, this.mainPanel.RefreshUIByData(e, this.dailyChallengedCount, n.skipReplayEnableState)
                }, t.prototype.RefreshTopPlayerData = function() {
                    var e = L.default.IsCrossServerConditonsZoneEnable(),
                        t = new u.Req_Player_GetRank;
                    t.RankType = e ? d.RankTypeId.CrossArena : d.RankTypeId.ZoneArena, t.CustomCount = 3, f.RpcComponent.Instance.Call(t, this.OnRequestTopPlayerSuccess.bind(this))
                }, t.prototype.OnRequestTopPlayerSuccess = function(e) {
                    this.mainPanel.RefreshPlayerData(e.Data)
                }, t.prototype.OnChallengeButtonClicked = function(e) {
                    var t = n.dailyFreeChallengeCountLimit - this.dailyChallengedCount,
                        o = f.DataCenter.Instance.GetItemCount(n.arenaTicketItemID) >= j.ticketCostPerChallenge;
                    if (t <= 0 && 0 == o) c.UIManager.Instance.ShowUIPanel(g.PanelConfig.BuyAndSellItemPanel.Path, w.CommonItemId.ArenaChallengeTicket, 0, 0, O.BuyAndSellType.Buy, O.GoodsType.ArenaTicket, 1);
                    else {
                        var r, i = this.rivalData[e].Uid;
                        1 == this.mainPanel.skipBattleReplayButton.node.active && 1 == this.mainPanel.skipBattleReplayTip.active ? ((r = new u.Req_Map_ArenaChallenge).TargetUid = i, r.SkipPlay = !0, f.RpcComponent.Instance.Call(r, this.OnChallengeDataRecieved.bind(this))) : (n.ChallengIndex = e, this.currentSelectedRivalUid = i, (r = new u.Req_Player_GetPlayerDetailInfo).Uid = i, r.FormationIds = [S.FormationIdType.ArenaDefense], r.Zone = this.rivalData[e].Zone, i < 0 && (r.PlayerType = d.PlayerInfoType.Robot), f.RpcComponent.Instance.Call(r, this.OnRivalChallengeClickRequestReturned.bind(this)))
                    }
                }, t.prototype.SetDefendingFormation = function() {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattleFormationPanel.Path, this.OnReturnedFromBattleFormationPanelChangingDefendingFormation.bind(this), [n.arenaMapBaseID])
                }, t.prototype.OnReturnedFromBattleFormationPanelChangingDefendingFormation = function(e) {
                    var t = new u.Req_Hero_SetFormation;
                    t.Formations = e, f.RpcComponent.Instance.Call(t, this.OnReturnedFromSetFormation.bind(this))
                }, t.prototype.OnReturnedFromSetFormation = function() {
                    y.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale())
                }, t.prototype.OnRivalChallengeClickRequestReturned = function(e) {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattleFormationPanel.Path, this.OnReturnedFromBattleFormationPanelBeforeChallenge.bind(this), [n.arenaMapBaseID], e)
                }, t.prototype.OnReturnedFromBattleFormationPanelBeforeChallenge = function(e) {
                    var t = new u.Req_Map_ArenaChallenge;
                    t.TargetUid = this.currentSelectedRivalUid, t.Formations = e, t.SkipPlay = !1, this.currentSelectedRivalUid = 0, f.RpcComponent.Instance.Call(t, this.OnChallengeDataRecieved.bind(this))
                }, t.prototype.OnRivalItemClicked = function(e) {
                    var t = this.rivalData[e],
                        n = new u.Req_Player_GetPlayerDetailInfo;
                    n.Uid = t.Uid, n.FormationIds = [S.FormationIdType.ArenaDefense], n.Zone = t.Zone, t.Uid < 0 && (n.PlayerType = d.PlayerInfoType.Robot), f.RpcComponent.Instance.Call(n, this.OnRivalItemClickRequestReturned.bind(this))
                }, t.prototype.OnRivalItemClickRequestReturned = function(e) {
                    this.rivalInfoPanel.Show(e)
                }, t.prototype.OnChallengeDataRecieved = function(e) {
                    if (n.battleResData = e, 1 == this.mainPanel.skipBattleReplayButton.node.active && 1 == this.mainPanel.skipBattleReplayTip.active) {
                        var t = {
                                Reports: e.Reports,
                                MapType: d.MapType.Arena,
                                SettleParams: [n.battleResData]
                            },
                            o = n.settlement_win_prefab_path;
                        return 1 == e.Result ? k.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementWinPanel.Path, o, t) : k.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementFailPanel.Path, o, t), void this.RefreshMainPanelData()
                    }
                    var r = L.default.Instance.IsGameModuleOpen(w.GameModuleType.ArenaSkip) && L.default.Instance.IsGameModuleUnlock(w.GameModuleType.ArenaSkip)[0];
                    k.BattleManager.Instance.StartPlay(e.Reports, {
                        CanCanel: !1,
                        CanRestart: !1,
                        CanSkipPlay: r,
                        CanPlayInBackground: !1
                    })
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), n.headComponentPrefab = null, n.itemComponentPrefabAsset = null
                }, t.InitBattle = function() {
                    var e = d.MapType.Arena;
                    c.Game.EventDispatcher.Only(d.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, this), c.Game.EventDispatcher.Only(d.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.SettleBattle = function(e) {
                    if (e.SettleParams && e.SettleParams.length > 0) {
                        var t = n.settlement_win_prefab_path,
                            o = e.SettleParams[0];
                        o.AttackerInfo.Uid == p.DataCenter.Instance.Uid == !!o.Result ? k.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementWinPanel.Path, t, e) : k.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementFailPanel.Path, t, e)
                    } else {
                        var r = l.UIManager.Instance.GetUIPanel(g.PanelConfig.ArenaPanel.Path);
                        r && (r.RefreshMainPanelData(), r.RefreshTopPlayerData());
                        var i = new u.Req_Map_BattleSettlement;
                        i.MapType = S.MapType.Arena, f.RpcComponent.Instance.Call(i, function(t) {
                            e.SettleParams = [JSON.parse(t.StringParam)];
                            var o = n.settlement_win_prefab_path;
                            1 == t.Result ? k.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementWinPanel.Path, o, e) : k.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementFailPanel.Path, o, e)
                        }, null)
                    }
                }, t.OnBattleSwitchToBackground = function() {
                    c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_ARENABATTLE_REFRESH)
                }, t.prototype.ShowGuide = function() {
                    B.default.instance.CheckGameModeuleGuideNeedShow(w.GameModuleType.Arena) && (B.default.instance.ShowNPCDialogs([1024]), B.default.instance.CompleteGameModuleWeakGuide(w.GameModuleType.Arena))
                }, t.arenaTicketItemID = 10103, t.arenaTaskPointRewardID = 4, t.arenaMapBaseID = 2, t.arenaShopParentID = 2, t.arenaShopID = 5, t.skipChallengeLocalStorageKey = "ArenaSkipChallengeBattleReplay", t.currentOffScreenBattleIDKey = "ArenaCurrentOffScreenBattleID", t.checkPointsCount = 6, t.checkPointsWidth = 36, t.maxWidthOfProgressBar = 834, t.progressingComparisonEpsilon = .05, t.pointRewardTypeId = 4, t.pointRewardIDArray = null, t.pointRewardArray = null, t.pointRewardArrayMaxPoint = 0, t.dailyFreeChallengeCountLimit = 0, t.redIndicatorForHigherScoreRatio = .8, t.ticketPriceInDiamond = 5, t.challengeTicketName = "", t.tempBattleReportMap = new Map, t.headComponentPrefab = null, t.itemComponentPrefabAsset = null, t.playerPrefab = null, t.battleResData = null, t.settlement_win_prefab_path = "Arena/Private/ArenaSuccessSettlementComponent", t.ChallengIndex = 0, i([x(cc.Label)], t.prototype, "Title", void 0), i([x(cc.Button)], t.prototype, "RuleButton", void 0), i([x(m.default)], t.prototype, "battlePlayerFrame", void 0), i([x(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([x(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), i([x(cc.Button)], t.prototype, "SpaceTimeButton", void 0), i([x(cc.Label)], t.prototype, "SpaceTimeLabel", void 0), i([x(cc.RichText)], t.prototype, "LeftTime", void 0), i([x(cc.Sprite)], t.prototype, "UserDesignationIcon", void 0), i([x(cc.Sprite)], t.prototype, "Bg", void 0), i([x(cc.Label)], t.prototype, "ChallengeTimesTag", void 0), n = i([G], t)
            }(c.BaseUIFullScreenPanel);
        n.default = H;
        var F = function() {
                function e(e, t) {
                    this.checkPoints = [], this.nextCheckPointIndex = 0, this.hostPanelInstance = e, this.baseNode = t, this.progressNode = cc.find("Progress", t), this.customProgressBarNode = cc.find("CustomProgressBar", t), this.progressValue = cc.find("ProgressValue", t).getComponent(cc.Label), this.progressTag = cc.find("ProgressTag", t).getComponent(cc.Label), this.progressBarComponent = this.customProgressBarNode.getComponent(N.default);
                    for (var n = 0; n < H.checkPointsCount; ++n) {
                        var o = cc.find(n.toString(), t),
                            r = cc.find("Box/Fg", o),
                            i = cc.find("Box/Fg/Tip", o),
                            a = cc.find("Box", o).getComponent(cc.Button),
                            s = cc.find("Label", o),
                            l = cc.find("LabelOn", o),
                            c = cc.find("Point", o),
                            u = cc.find("PointOn", o),
                            p = cc.find("Box/BoxSprite", o).getComponent(A.default);
                        this.checkPoints.push({
                            baseNode: o,
                            positionX: o.x,
                            mask: r,
                            tip: i,
                            reached: !1,
                            button: a,
                            boxJiggling: p,
                            label: s,
                            labelOn: l,
                            point: c,
                            pointOn: u
                        })
                    }
                }
                return e.prototype.InitUI = function() {
                    for (var e = 0; e < H.checkPointsCount; ++e) this.checkPoints[e].button.node.on("click", this.OnTreasureBoxClicked, this), this.DisableTreasureBox(e);
                    this.progressTag.string = "challege_times_tag".ToUILocale(), this.progressNode.active = !1, this.progressNode.width = 0, this.nextCheckPointIndex = 0, this.progressBarComponent.progress = 0, this.ConfigProgressValue()
                }, e.prototype.ConfigProgressValue = function() {
                    this.checkPointsPercenScores = [];
                    for (var e = f.ConfigDataComponent.Instance.GetConfigById(_.PointRewardType_Config, H.pointRewardTypeId), t = 0; t < e.Nodes.length; t++) {
                        var n = e.Nodes[t],
                            o = f.ConfigDataComponent.Instance.GetConfigById(_.TaskPointReward_Config, n);
                        this.checkPointsPercenScores.push(o.Point)
                    }
                    for (t = 0; t < H.checkPointsCount; ++t) {
                        var r = this.checkPoints[t].label,
                            i = this.checkPoints[t].labelOn;
                        i.active = !1, r.getComponent(cc.Label).string = this.checkPointsPercenScores[t].toString(), i.getComponent(cc.Label).string = this.checkPointsPercenScores[t].toString()
                    }
                }, e.prototype.OnTreasureBoxClicked = function(e) {
                    var t = Number(e.node.parent.name);
                    if (!isNaN(t))
                        if (this.openedTreasureBoxIndices.indexOf(t) >= 0 || 0 == this.checkPoints[t].reached) {
                            for (var n = [], o = 0, r = H.pointRewardArray[t].Rewards.length; o < r; ++o) {
                                var i = H.pointRewardArray[t].Rewards[o].Items[0],
                                    a = H.pointRewardArray[t].Rewards[o].Items[1];
                                n.push(new u.UserItem_Model({
                                    ItemId: i,
                                    Count: a
                                }))
                            }
                            y.UIUtlity.ShowHintPanel("reward".ToUILocale(), n)
                        } else {
                            var s = new u.Req_Task_DrawPointReward;
                            s.RewardType = H.arenaTaskPointRewardID, s.RewardIndex = t, f.RpcComponent.Instance.Call(s, this.OnTreasureBoxDrawRewardSuccess.bind(this), this.OnTreasureBoxDrawRewardFailed.bind(this))
                        }
                }, e.prototype.OnTreasureBoxDrawRewardSuccess = function(e) {
                    this.hostPanelInstance.weeklyChallengedData = f.DataCenter.Instance.GetDataById(u.TaskPointReward_Model, H.arenaTaskPointRewardID), this.RefreshTreasureBox(this.hostPanelInstance.weeklyChallengedData.DrawRewardIds), y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, e.prototype.OnTreasureBoxDrawRewardFailed = function(e, t) {
                    y.UIUtlity.ShowFloatingHint(t + ", Code:" + e)
                }, e.prototype.RefreshTreasureBox = function(e) {
                    this.openedTreasureBoxIndices = e;
                    for (var t = 0, n = this.checkPoints.length; t < n; ++t) this.openedTreasureBoxIndices.indexOf(t) >= 0 ? this.OpenedTreasureBox(t) : 1 == this.checkPoints[t].reached ? this.EnableTreasureBox(t) : this.DisableTreasureBox(t)
                }, e.prototype.RefreshUIByData = function(e) {
                    this.openedTreasureBoxIndices = e ? e.DrawRewardIds : [];
                    var t = e ? e.Point : 0,
                        n = (t = Math.min(t, H.pointRewardArrayMaxPoint)) / H.pointRewardArrayMaxPoint,
                        o = this.ProgressPercentageToPositionX(n);
                    o = Math.min(o, H.maxWidthOfProgressBar), this.progressNode.width = o, this.progressBarComponent.progress = o / H.maxWidthOfProgressBar, this.progressValue.string = t.toString();
                    for (var r = 0, i = this.checkPoints.length; r < i; ++r) this.progressNode.width >= this.checkPoints[r].positionX || Math.abs(this.progressNode.width - this.checkPoints[r].positionX) <= H.progressingComparisonEpsilon ? this.openedTreasureBoxIndices.indexOf(r) >= 0 ? this.OpenedTreasureBox(r) : this.EnableTreasureBox(r) : this.DisableTreasureBox(r)
                }, e.prototype.DisableTreasureBox = function(e) {
                    this.checkPoints[e].mask.active = !1, this.checkPoints[e].tip.active = !1, this.checkPoints[e].reached = !1, this.checkPoints[e].boxJiggling.Disable(), this.checkPoints[e].label.active = !0, this.checkPoints[e].labelOn.active = !1, this.checkPoints[e].point.active = !0, this.checkPoints[e].pointOn.active = !1
                }, e.prototype.EnableTreasureBox = function(e) {
                    this.checkPoints[e].mask.active = !1, this.checkPoints[e].tip.active = !1, this.checkPoints[e].reached = !0, this.checkPoints[e].boxJiggling.Enable(.05 * e), this.checkPoints[e].label.active = !1, this.checkPoints[e].labelOn.active = !0, this.checkPoints[e].point.active = !1, this.checkPoints[e].pointOn.active = !0
                }, e.prototype.OpenedTreasureBox = function(e) {
                    this.checkPoints[e].mask.active = !0, this.checkPoints[e].tip.active = !0, this.checkPoints[e].reached = !0, this.checkPoints[e].boxJiggling.Disable(), this.checkPoints[e].label.active = !1, this.checkPoints[e].labelOn.active = !0, this.checkPoints[e].point.active = !1, this.checkPoints[e].pointOn.active = !0
                }, e.prototype.ProgressPercentageToPositionX = function(e) {
                    for (var t, n, o = 0, r = 0, i = 0; i < H.checkPointsCount; ++i) {
                        if (t = this.checkPoints[i].positionX, e <= (n = this.checkPointsPercenScores[i] / 100)) return this.checkPoints[i].reached = e == n, o + (e - r) / (n - r) * (t - o);
                        this.checkPoints[i].reached = !0, o = t, r = n
                    }
                    return 0
                }, e
            }(),
            j = function() {
                function e(e, t) {
                    this.arenaPanelRivalInfoItemsInAction = [], this.playerNodeArray = [], this._playerComponents = [], this.hostPanelInstance = e, this.baseNode = t, this.container = cc.find("ScrollContainer", t).getComponent(cc.ScrollView), this.challengeCount = cc.find("LeftChallengeCount", t).getComponent(cc.RichText), this.selfName = cc.find("SelfInfo/Name", t).getComponent(cc.Label), this.selfIcon = cc.find("SelfInfo/HeroIcon", t), this.selfBattlePower = cc.find("SelfInfo/BattlePower/LabelContainer/Label", t).getComponent(cc.Label), this.selfRank = cc.find("SelfInfo/RankContainer/Label", t).getComponent(cc.Label), this.selfScore = cc.find("SelfInfo/Score/LabelContainer/Label", t).getComponent(cc.Label), this.rivalScrollView = cc.find("ScrollContainer", t).getComponent(cc.ScrollView), this.rivalScrollViewContent = cc.find("ScrollContainer/ViewPort/Content", t), this.refreshButton = cc.find("RefreshButton", t).getComponent(cc.Button), this.refreshButtonText = cc.find("RefreshButton/Background/Label", t).getComponent(cc.Label), this.skipBattleReplayButton = cc.find("SkipBattleReplay", t).getComponent(cc.Button), this.skipBattleReplayTip = cc.find("SkipBattleReplay/Tip/Select", t), this.currencyBarItem = cc.find("Card", t).getComponent(P.default), this.playerNodeArray = cc.find("HeroContainer", t).children, this.skipBattleReplayTip.active = !1
                }
                return e.prototype.InitUI = function() {
                    this.refreshButton.node.on("click", this.hostPanelInstance.OnRefreshButtonClicked.bind(this.hostPanelInstance), this), this.skipBattleReplayButton.node.on("click", this.OnSkipReplayButtonClicked.bind(this), this), cc.find("SkipBattleReplay/Label", this.baseNode).getComponent(cc.Label).string = "secretArea_skipBattle".ToUILocale(), this.refreshButtonText.string = "refresh".ToUILocale(), this.headComponent = cc.instantiate(H.headComponentPrefab).getComponent(R.default), this.headComponent.node.setParent(this.selfIcon);
                    var e, t = f.DataCenter.Instance.GetIntData(S.UserDataKey.HeadIcon),
                        n = f.DataCenter.Instance.GetIntData(S.UserDataKey.HeadFrame),
                        o = f.DataCenter.Instance.GetIntData(S.UserDataKey.Title);
                    this.headComponent.SetUI(t, n, o), this.headComponent.SetLevel(f.DataCenter.Instance.GetIntData(S.UserDataKey.PlayerLevel)), (e = f.DataCenter.Instance.GetStringData(S.UserDataKey.Country)) || (e = M.default.Instance.Localization_Country), e = 0 == f.DataCenter.Instance.GetIntData(S.UserDataKey.CountryShowState) ? e : "", this.headComponent.SetCountry(e)
                }, e.prototype.ResetUI = function() {
                    for (var e = this.arenaPanelRivalInfoItemsInAction.length - 1; e >= 0; e--) C.default.Put(this.arenaPanelRivalInfoItemsInAction[e]);
                    this.arenaPanelRivalInfoItemsInAction = []
                }, e.prototype.RefreshUIByData = function(t, n, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i, a, l, c, p, d, h, y, g, m, I;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    this.ResetUI(), this.selfName.string = f.DataCenter.Instance.GetStringData(S.UserDataKey.RoleName), (r = f.DataCenter.Instance.GetDataById(u.UserFormation_Model, S.FormationIdType.ArenaAttack)) ? i = r.HeroIds : (r = f.DataCenter.Instance.GetDataById(u.UserFormation_Model, S.FormationIdType.MainLine), i = r.HeroIds), this.selfBattlePower.string = L.default.Instance.GetTeamPowerByHeroIds(i).toString(), this.selfRank.string = t.MyRank.toString(), this.selfScore.string = t.MyScore.toString(), a = f.DataCenter.Instance.GetItemCount(H.arenaTicketItemID), this.currencyBarItem.Init(H.arenaTicketItemID, !1, a), this.currencyBarItem.SetClickCallBack(this.OnBtnAddClick), l = H.dailyFreeChallengeCountLimit - n, c = l > 0, this.challengeCount.string = "arena_freeChallengesToday".ToUILocale().Fmt(c ? "<color=#568f00>" + l + "/" + H.dailyFreeChallengeCountLimit + "</color>" : "<color=#ff4b4b>0/" + H.dailyFreeChallengeCountLimit + "</color>"), p = a >= e.ticketCostPerChallenge, d = t.Targets.length, h = L.default.IsCrossServerConditonsZoneEnable(), y = 0, s.label = 1;
                                case 1:
                                    return y < d ? (g = t.Targets[y], [4, C.default.Get(y, g.Name, g.Power, g.Value1, g.HeadIcon, c, p, g.IsFriend, g.SameAlliance, g.Designation)]) : [3, 4];
                                case 2:
                                    (m = s.sent()).SetHeadComponent(g.HeadIcon, g.HeadFrame), I = h ? g.Zone : null, m.SetHeadComponentParam(g.Level, g.Country, I), this.arenaPanelRivalInfoItemsInAction.push(m), m.node.setParent(this.rivalScrollViewContent), g.Power <= 0 && m.ResetPlayerPower(g), s.label = 3;
                                case 3:
                                    return ++y, [3, 1];
                                case 4:
                                    return this.skipBattleReplayButton.node.active = o, [2]
                            }
                        })
                    })
                }, e.prototype.RefreshPlayerData = function(e) {
                    for (var t = L.default.IsCrossServerConditonsZoneEnable(), n = 0; n < 3; n++)
                        if (e.Rows[n]) {
                            var o = this._playerComponents[n];
                            if (!o) {
                                var r = cc.instantiate(H.playerPrefab);
                                r.setParent(this.playerNodeArray[n]), o = r.getComponent(E.default), this._playerComponents[n] = o
                            }
                            this._playerComponents[n].node.active = !0, o.Init(e.Rows[n], n + 1, t)
                        } else this._playerComponents[n].node.active = !1
                }, e.prototype.OnSkipReplayButtonClicked = function() {
                    var e = !this.skipBattleReplayTip.active;
                    cc.sys.localStorage.setItem(H.skipChallengeLocalStorageKey, e ? "TRUE" : "FALSE"), this.skipBattleReplayTip.active = e
                }, e.prototype.RefreshTicketState = function() {
                    this.arenaPanelRivalInfoItemsInAction.forEach(function(e) {
                        e.challengeButtonCardWhiteNumber.active = e.challengeButtonCard.active, e.challengeButtonCardRedNumber.active = !1
                    })
                }, e.prototype.OnBtnAddClick = function() {
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.BuyAndSellItemPanel.Path, w.CommonItemId.ArenaChallengeTicket, 0, 0, O.BuyAndSellType.Buy, O.GoodsType.ArenaTicket, 1)
                }, e.rivalItemHeight = 208, e.rivalItemGap = 5, e.ticketCostPerChallenge = 1, e
            }(),
            W = function() {
                function e(e, t) {
                    this.hostPanelInstance = e, this.baseNode = t, this.backButton = cc.find("BtnReturn", t).getComponent(cc.Button), this.selfFormation = cc.find("DefenderFormationButton", t).getComponent(cc.Button), this.selfFormationText = cc.find("DefenderFormationButton/Label", t).getComponent(cc.Label), this.report = cc.find("ReportButton", t).getComponent(cc.Button), this.reportText = cc.find("ReportButton/Label", t).getComponent(cc.Label), this.rankButton = cc.find("RankButton", t).getComponent(cc.Button), this.rankButtonText = cc.find("RankButton/Label", t).getComponent(cc.Label), this.rewardButton = cc.find("RewardButton", t).getComponent(cc.Button), this.rewardButtonText = cc.find("RewardButton/Label", t).getComponent(cc.Label), this.shopButton = cc.find("ShopButton", t).getComponent(cc.Button), this.shopButtonText = cc.find("ShopButton/Label", t).getComponent(cc.Label)
                }
                return e.prototype.InitUI = function() {
                    this.backButton.node.on("click", this.hostPanelInstance.LeavePanel, this), this.rewardButton.node.on("click", this.hostPanelInstance.ShowRankingRewards.bind(this.hostPanelInstance), this), this.selfFormation.node.on("click", this.hostPanelInstance.SetDefendingFormation.bind(this.hostPanelInstance), this), this.report.node.on("click", this.hostPanelInstance.OnReportButtonClicked.bind(this.hostPanelInstance), this), this.shopButton.node.on("click", this.OnClickShopButton, this), this.rankButton.node.on("click", this.OnClickRankButton, this), this.selfFormationText.string = "arena_selfInfoDefendFormationBtnText".ToUILocale(), this.reportText.string = "allianceWar_report".ToUILocale(), this.rankButtonText.string = "holyArea_rank".ToUILocale(), this.rewardButtonText.string = "reward".ToUILocale(), this.shopButtonText.string = "allianceBase_mainPageShop".ToUILocale()
                }, e.prototype.OnClickShopButton = function() {
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.ShopPanel.Path, H.arenaShopParentID, H.arenaShopID)
                }, e.prototype.OnClickRankButton = function() {
                    this.RequestRankDataByType()
                }, e.prototype.RequestRankDataByType = function() {
                    var e = L.default.IsCrossServerConditonsZoneEnable(),
                        t = new u.Req_Player_GetRank;
                    t.RankType = e ? d.RankTypeId.CrossArena : d.RankTypeId.ZoneArena, f.RpcComponent.Instance.Call(t, this.ResponseRankDataSuccess.bind(this))
                }, e.prototype.ResponseRankDataSuccess = function(e) {
                    e.Data.Rows.length > 0 ? l.UIManager.Instance.ShowUIPanel(g.PanelConfig.RankDetailPanel.Path, d.RankTypeId.ZoneArena, e.Data.Rows, e.Data.Achievements, e.MyRank, e.MyRankData) : y.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())
                }, e
            }(),
            z = function() {
                function e(e, t) {
                    this.rewardSlots = [], this.contentsLoaded = !1, this.functionArray = [this.OnTouchedItemContainer0, this.OnTouchedItemContainer1, this.OnTouchedItemContainer2, this.OnTouchedItemContainer3], this.hostPanelInstance = e, this.baseNode = t, this.mask = cc.find("Mask", t), this.toggleContainer = cc.find("ToggleContainer", t), this.dailyToggle = cc.find("ToggleContainer/Daily", t), this.dailyToggleCheck = cc.find("ToggleContainer/Daily/Check", t), this.weeklyToggle = cc.find("ToggleContainer/Weekly", t), this.weeklyToggleCheck = cc.find("ToggleContainer/Weekly/Check", t), this.rewardDesc = cc.find("Desc", t).getComponent(cc.Label), this.titleText = cc.find("TitleBar/Title", t).getComponent(cc.Label), this.rewardScrollView = cc.find("ScrollContainer", t).getComponent(cc.ScrollView), this.rewardScrollViewContent = cc.find("ScrollContainer/ViewPort/Content", t), this.selfRankingBadge1 = cc.find("MyRank/RankIcon1", t), this.selfRankingBadge2 = cc.find("MyRank/RankIcon2", t), this.selfRankingBadge3 = cc.find("MyRank/RankIcon3", t), this.selfRanking = cc.find("MyRank/RankingNumber", t).getComponent(cc.Label), this.currentRewardItemContainer = cc.find("MyRank/ItemContainer", t)
                }
                return e.prototype.OnTouchedItemContainer0 = function() {
                    this.rewardSlots[0].ShowItemTip()
                }, e.prototype.OnTouchedItemContainer1 = function() {
                    this.rewardSlots[1].ShowItemTip()
                }, e.prototype.OnTouchedItemContainer2 = function() {
                    this.rewardSlots[2].ShowItemTip()
                }, e.prototype.OnTouchedItemContainer3 = function() {
                    this.rewardSlots[3].ShowItemTip()
                }, e.prototype.InitUI = function() {
                    this.mask.on(cc.Node.EventType.TOUCH_END, this.Hide, this), this.dailyToggle.on("click", this.LoadDailyContent, this), this.weeklyToggle.on("click", this.LoadWeeklyContent, this), cc.find("Check/CommonLongLabelRollComponent/Label", this.dailyToggle).getComponent(cc.Label).string = "arena_rewardPanelTitleDaily".ToUILocale(), cc.find("UnCheck/CommonLongLabelRollComponent/Label", this.dailyToggle).getComponent(cc.Label).string = "arena_rewardPanelTitleDaily".ToUILocale(), cc.find("Disable/CommonLongLabelRollComponent/Label", this.dailyToggle).getComponent(cc.Label).string = "arena_rewardPanelTitleDaily".ToUILocale(), cc.find("Check/CommonLongLabelRollComponent/Label", this.weeklyToggle).getComponent(cc.Label).string = "arena_rewardPanelTitleWeekly".ToUILocale(), cc.find("UnCheck/CommonLongLabelRollComponent/Label", this.weeklyToggle).getComponent(cc.Label).string = "arena_rewardPanelTitleWeekly".ToUILocale(), cc.find("Disable/CommonLongLabelRollComponent/Label", this.weeklyToggle).getComponent(cc.Label).string = "arena_rewardPanelTitleWeekly".ToUILocale(), cc.find("Separator/Label", this.baseNode).getComponent(cc.Label).string = "arena_myRankingText".ToUILocale(), this.rewardSlots = [];
                    for (var t = 0; t < e.maxRewardSlots; ++t) {
                        var n = cc.instantiate(H.itemComponentPrefabAsset);
                        n.setParent(this.currentRewardItemContainer), n.setPosition(e.xArray[t], -11), n.setScale(.5871), n.active = !1, this.rewardSlots.push(n.getComponent(T.ItemComponent)), n.on(cc.Node.EventType.TOUCH_END, this.functionArray[t], this)
                    }
                }, e.prototype.LoadDailyContent = function() {
                    this.LoadContent(!0)
                }, e.prototype.LoadWeeklyContent = function() {
                    this.LoadContent(!1)
                }, e.prototype.ResetUI = function() {
                    v.default.PutNodes(this.rewardScrollViewContent.children)
                }, e.prototype.LoadContent = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l, c, p, d, h;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    this.ResetUI(), this.titleText.string = e ? "arena_rewardPanelTitleDaily".ToUILocale() : "arena_rewardPanelTitleWeekly".ToUILocale(), this.rewardDesc.string = e ? "arena_rewardPanelDescText".ToUILocale() : "arena_rewardPanelDescTextWeekly".ToUILocale(), t = f.ConfigDataComponent.Instance.GetArrayConfig(_.ArenaRankReward_Config), n = [], o = this.hostPanelInstance.myRank, r = L.default.IsCrossServerConditonsZoneEnable(), p = 0, d = t.length, s.label = 1;
                                case 1:
                                    return p < d ? (i = void 0, i = r ? e ? t[p].CrossZoneDailyRewards : t[p].CrossZoneWeeklyRewards : e ? t[p].DailyRewards : t[p].WeeklyRewards, a = t[p].Id, l = t[p + 1] ? t[p + 1].Id - 1 : 0, [4, v.default.Get(a, l, i)]) : [3, 4];
                                case 2:
                                    c = s.sent(), a <= o && (n = i), c.node.setParent(this.rewardScrollViewContent), s.label = 3;
                                case 3:
                                    return ++p, [3, 1];
                                case 4:
                                    switch (this.rewardScrollView.scrollToTop(), this.selfRankingBadge1.active = !1, this.selfRankingBadge2.active = !1, this.selfRankingBadge3.active = !1, this.selfRanking.node.active = !1, o) {
                                        case 1:
                                            this.selfRankingBadge1.active = !0;
                                            break;
                                        case 2:
                                            this.selfRankingBadge2.active = !0;
                                            break;
                                        case 3:
                                            this.selfRankingBadge3.active = !0;
                                            break;
                                        default:
                                            this.selfRanking.node.active = !0, this.selfRanking.string = o.toString()
                                    }
                                    for (this.rewardSlots[0].node.active = !1, this.rewardSlots[1].node.active = !1, this.rewardSlots[2].node.active = !1, this.rewardSlots[3].node.active = !1, p = 0, d = n.length; p < d; ++p)(h = new u.UserItem_Model).ItemId = n[p].Items[0], h.Count = n[p].Items[1], this.rewardSlots[p].Init(h, T.ItemComponentType.ItemCommon), this.rewardSlots[p].node.active = !0;
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.Show = function() {
                    this.baseNode.active = !0, this.baseNode.opacity = 0, cc.tween(this.baseNode).to(.2, {
                        opacity: 255
                    }).start(), this.LoadContent(this.dailyToggleCheck.active)
                }, e.prototype.Hide = function() {}, e.itemHeight = 190, e.itemGap = 5, e.maxRewardSlots = 4, e.xArray = [-222, -74, 74, 222], e
            }(),
            q = function() {
                function e(e, t) {
                    this.arenaPanelBattleReportItemsInAction = [], this.hostPanelInstance = e, this.baseNode = t, this.titleText = cc.find("HintBgPrefab/TitleBar/Title", t).getComponent(cc.Label), this.reportScrollView = cc.find("ScrollContainer", t).getComponent(cc.ScrollView), this.reportScrollViewContent = cc.find("ScrollContainer/ViewPort/Content", t), this.emptyText = cc.find("EmptyListPrompt", t).getComponent(cc.Label), this.mask = cc.find("Mask", t)
                }
                return e.prototype.InitUI = function() {
                    this.mask.on(cc.Node.EventType.TOUCH_END, this.Hide, this), this.titleText.string = "allianceWar_report".ToUILocale(), this.emptyText.string = "arena_reportPanelEmptyDesc".ToUILocale()
                }, e.prototype.ResetUI = function() {
                    for (var e = this.arenaPanelBattleReportItemsInAction.length - 1; e >= 0; e--) b.default.Put(this.arenaPanelBattleReportItemsInAction[e]);
                    this.arenaPanelBattleReportItemsInAction = []
                }, e.prototype.RefreshUIByData = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    this.ResetUI(), t = e.Data.length, this.emptyText.node.active = 0 == t, n = t - 1, s.label = 1;
                                case 1:
                                    return n >= 0 ? (o = e.Data[n], [4, b.default.Get(n, o)]) : [3, 4];
                                case 2:
                                    r = s.sent(), i = f.DataCenter.Instance.Uid == o.AttackerInfo.Uid, a = i ? o.DefenderInfo : o.AttackerInfo, r.SetHeadComponent(a.HeadIcon, a.HeadFrame), this.arenaPanelBattleReportItemsInAction.push(r), r.node.setParent(this.reportScrollViewContent), s.label = 3;
                                case 3:
                                    return --n, [3, 1];
                                case 4:
                                    return this.reportScrollView.scrollToTop(), [2]
                            }
                        })
                    })
                }, e.prototype.Show = function() {
                    this.baseNode.active = !0, this.baseNode.opacity = 0, cc.tween(this.baseNode).to(.2, {
                        opacity: 255
                    }).start()
                }, e.prototype.Hide = function() {}, e.reportItemHeight = 190, e.reportItemGap = 5, e
            }(),
            V = function() {
                function e(e, t) {
                    this.targetUid = -1, this.heroSlots = [], this.headComponent = null, this.formationContainer = null, this.SelfDesignationIcon = null, this.hostPanelInstance = e, this.baseNode = t, this.titleText = cc.find("TitleBar/Title", t).getComponent(cc.Label), this.rivalIcon = cc.find("HeroIcon", t).getComponent(cc.Sprite), this.rivalIconFrame = cc.find("HeroIconFrame", t).getComponent(cc.Sprite), this.nameText = cc.find("NameContainer/Label", t).getComponent(cc.Label), this.SelfDesignationIcon = cc.find("NameContainer/DesignationIcon", t).getComponent(cc.Sprite), this.serverText = cc.find("ServerInfo/NameBg/TypeName", t).getComponent(cc.Label), this.serverNameText = cc.find("ServerInfo/ValueBg/Value", t).getComponent(cc.Label), this.guildText = cc.find("GuildInfo/NameBg/TypeName", t).getComponent(cc.Label), this.guildNameText = cc.find("GuildInfo/ValueBg/Value", t).getComponent(cc.Label), this.battlePowerText = cc.find("BattlePower/Label", t).getComponent(cc.Label), this.mask = cc.find("Mask", t), this.formationContainer = cc.find("Formation/Container", t), this.angelButton = cc.find("Formation/AngelBtn", t), this.formationContainerTitleText = cc.find("Formation/Title/Text", t).getComponent(cc.Label)
                }
                return e.prototype.InitUI = function() {
                    this.mask.on(cc.Node.EventType.TOUCH_END, this.Hide, this), this.titleText.string = "arena_rivalInfoText".ToUILocale(), this.serverText.string = "server".ToUILocale(), this.guildText.string = "guild".ToUILocale(), this.formationContainerTitleText.string = "arena_selfInfoDefendFormationBtnText".ToUILocale(), this.headComponent = cc.instantiate(H.headComponentPrefab).getComponent(R.default), this.headComponent.node.setParent(this.rivalIcon.node), this.heroSlots = [];
                    for (var t = 0; t < e.maxHeroSlots; ++t) {
                        var n = cc.instantiate(H.itemComponentPrefabAsset);
                        n.setParent(this.formationContainer), n.setPosition(e.xArray[t], -15), n.active = !1, this.heroSlots.push(n.getComponent(T.ItemComponent))
                    }
                    this.angelButton.active = L.default.Instance.IsGameModuleOpen(d.GameModuleType.Angel)
                }, e.prototype.Show = function(e) {
                    e.Info.Formations[0] && e.Info.Formations[0].Angel && e.Info.Formations[0].Angel.AngelId > 0 ? this._angelId = e.Info.Formations[0].Angel.AngelId : this._angelId = 0, this._playerDeatilInfo = e.Info, this.headComponent.SetUI(e.Info.HeadIcon, e.Info.HeadFrame, e.Info.Title), this.headComponent.SetLevel(e.Info.Level), this.headComponent.SetCountry(e.Info.Country), this.nameText.string = e.Info.Name, L.default.SetDesignationIcon(e.Info.Designation, this.SelfDesignationIcon), e.Info.Zone > 0 && (this.serverNameText.string = f.DataCenter.Instance.Zones[e.Info.Zone].Name), "" == e.Info.AllianceName ? this.guildNameText.string = "PlayerSetting_noAlliance".ToUILocale() : this.guildNameText.string = e.Info.AllianceName, this.battlePowerText.string = e.Info.Power.toString(), this.targetUid = e.Info.Uid;
                    for (var t = 0, n = e.Info.Formations[0].Heros.length; t < n; ++t) {
                        var o, r = new u.UserHero_Model(e.Info.Formations[0].Heros[t]);
                        if (0 != r.Sid) this.heroSlots[t].node.active = !0, o = e.Info.HeroPersonality[r.HeroId.toString()] || 0, this.heroSlots[t].Init(r, T.ItemComponentType.HeroInfo), this.heroSlots[t].SetPersonalityParam(!1, o), this.heroSlots[t].node.name = r.Sid.toString();
                        else this.heroSlots[t].node.active = !1
                    }
                    for (t = e.Info.Formations[0].Heros.length; t < this.heroSlots.length; t++) this.heroSlots[t].node.active = !1;
                    this.baseNode.active = !0, this.baseNode.opacity = 0, cc.tween(this.baseNode).to(.2, {
                        opacity: 255
                    }).start(), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.SetAngelButton()
                }, e.prototype.SetAngelButton = function() {
                    this._angelBtnNode || (this._angelBtnNode = cc.instantiate(H.angelBtnPrefab), this._angelBtnNode.parent = this.angelButton, this._angelBtnNode.on("click", this.ClickAngelButton, this));
                    var e = this._angelBtnNode.getComponent(D.default);
                    e.Init(this._angelId, !1), e.SetBtnScale(.82), e.SetAngelLabelActive(!1)
                }, e.prototype.Hide = function() {
                    c.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, e.prototype.ClickAngelButton = function() {
                    this._angelId > 0 ? this._playerDeatilInfo.Uid == f.DataCenter.Instance.Uid ? c.UIManager.Instance.ShowUIPanel(g.PanelConfig.AngelDetailPanel.Path, this._angelId, S.FormationIdType.ArenaDefense) : c.UIManager.Instance.ShowUIPanel(g.PanelConfig.AngelDetailPanel.Path, null, S.FormationIdType.ArenaDefense, this._playerDeatilInfo.Uid, this._playerDeatilInfo.Zone) : y.UIUtlity.ShowFloatingHint("angel_not_on_formation".ToUILocale())
                }, e.prototype.OnItemClick = function(e, t) {
                    l.EZLog.Error("Arena: OnItemClick currNode Name:" + t + " id:" + e + "  this.targetUid:" + this.targetUid), -1 != this.formationContainer.children.indexOf(t) && (this.targetUid > 0 ? l.UIManager.Instance.ShowUIPanel(g.PanelConfig.HeroDetailPanel.Path, e, this.targetUid, null, this._playerDeatilInfo.NotShow) : y.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale()))
                }, e.maxHeroSlots = 5, e.xArray = [109, 337, 565, 793, 1021], e
            }();
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../UI/Components/HeadComponent": "HeadComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ArenaPalaceTable": "ArenaPalaceTable",
        "../Components/BattlePlayerFrame": "BattlePlayerFrame",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/NodeJiggling": "NodeJiggling",
        "./AngelBtnComponent": "AngelBtnComponent",
        "./ArenaPanelBattleReportItem": "ArenaPanelBattleReportItem",
        "./ArenaPanelRewardItem": "ArenaPanelRewardItem",
        "./ArenaPanelRivalInfoItem": "ArenaPanelRivalInfoItem",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel"
    }],
    ArenaPortPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "641abzleThC4LQAahtxLHU9", "ArenaPortPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Components/DataCenter"),
            g = e("../Components/ArenaEntranceItem"),
            m = e("../Components/ChampionShipEntranceItem"),
            I = e("../Components/SeniorArenaEntranceItem"),
            _ = e("../Components/BreakOutMatchEntranceItem"),
            C = e("../Components/RankMatchArenaEntranceItem"),
            v = e("../Components/CrossServerChampionShipEntranceItem"),
            b = e("../Components/ContinuousWarEntranceItem"),
            S = e("../../Auxiliary/GuideManager"),
            w = e("../Components/GameUnlockFingerListener"),
            P = e("../../../../Proto/Static/ConfigProto"),
            A = e("../../Components/Components");
        (function(e) {
            e[e.BreakouActivity = 0] = "BreakouActivity", e[e.ChampionshipActivity = 1] = "ChampionshipActivity", e[e.ArenaEntrance = 2] = "ArenaEntrance", e[e.SeniorArenaEntrance = 3] = "SeniorArenaEntrance", e[e.RankMatchArena = 4] = "RankMatchArena", e[e.Champion = 5] = "Champion", e[e.ContinuousWar = 6] = "ContinuousWar"
        })(l || (l = {}));
        var T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !0), t.PanelNameLabel = null, t.PortContainer = null, t.ReturnButton = null, t.Scroview = null, t.GameUnlockSteps = {
                        0: [],
                        1: [],
                        2: [11],
                        3: [],
                        4: [21],
                        5: [20],
                        6: [23]
                    }, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), c.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), c.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(p.GameEventIds.AddDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), c.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), c.Game.EventDispatcher.Off(p.GameEventIds.RemoveDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
                }, t.prototype.OnSimpleDataChage = function(e) {
                    var t;
                    for (var n in e)
                        if (parseInt(n) == p.UserDataKey.GameModulePopGuide) {
                            t = !0;
                            break
                        } t && this.ShowAllGameUnlockFinger()
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelNameLabel.string = "arena_mainTitle".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClicked, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetListView()
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, u, d, S, w, P, A, T, R, L, k = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    for (r in this._enterNodes = {}, this.PortContainer.destroyAllChildren(), y.DataCenter.Instance.ActivityConfigs)
                                        if (y.DataCenter.Instance.ActivityConfigs[r].Common.Type == p.ActivityType.Breakou) {
                                            e = y.DataCenter.Instance.ActivityConfigs[r];
                                            break
                                        } return e ? [4, this.LoadDynamicAsset("ArenaPort/SubItems/BreakOutMatchEntranceItem", cc.Prefab)] : [3, 2];
                                case 1:
                                    t = s.sent(), (n = cc.instantiate(t)).getComponent(_.default).Init(), this.PortContainer.addChild(n), this._enterNodes[l.BreakouActivity] = n, s.label = 2;
                                case 2:
                                    for (r in y.DataCenter.Instance.ActivityConfigs)
                                        if (y.DataCenter.Instance.ActivityConfigs[r].Common.Type == p.ActivityType.Championship) {
                                            o = y.DataCenter.Instance.ActivityConfigs[r];
                                            break
                                        } return o ? [4, this.LoadDynamicAsset("ArenaPort/SubItems/ChampionShipEntranceItem", cc.Prefab)] : [3, 4];
                                case 3:
                                    i = s.sent(), (a = cc.instantiate(i)).getComponent(m.default).Init(), this.PortContainer.addChild(a), this._enterNodes[l.ChampionshipActivity] = a, s.label = 4;
                                case 4:
                                    return [4, this.LoadDynamicAsset("ArenaPort/SubItems/ArenaEntranceItem", cc.Prefab)];
                                case 5:
                                    return c = s.sent(), (u = cc.instantiate(c)).getComponent(g.default).Init(), this.PortContainer.addChild(u), this._enterNodes[l.ArenaEntrance] = u, f.default.Instance.IsGameModuleOpen(h.GameModuleType.SeniorArena) ? [4, this.LoadDynamicAsset("ArenaPort/SubItems/SeniorArenaEntranceItem", cc.Prefab)] : [3, 7];
                                case 6:
                                    d = s.sent(), (S = cc.instantiate(d)).getComponent(I.default).Init(), this.PortContainer.addChild(S), this._enterNodes[l.SeniorArenaEntrance] = S, s.label = 7;
                                case 7:
                                    return f.default.Instance.IsGameModuleOpen(h.GameModuleType.RankMatch) ? [4, this.LoadDynamicAsset("ArenaPort/SubItems/RankMatchArenaEntranceItem", cc.Prefab)] : [3, 9];
                                case 8:
                                    w = s.sent(), (P = cc.instantiate(w)).getComponent(C.default).Init(), this.PortContainer.addChild(P), this._enterNodes[l.RankMatchArena] = P, s.label = 9;
                                case 9:
                                    return f.default.Instance.IsGameModuleOpen(h.GameModuleType.CrossZoneChampionRace) ? [4, this.LoadDynamicAsset("ArenaPort/SubItems/CrossServerChampionShipEntranceItem", cc.Prefab)] : [3, 11];
                                case 10:
                                    A = s.sent(), (T = cc.instantiate(A)).getComponent(v.default).Init(), this.PortContainer.addChild(T), this._enterNodes[l.Champion] = T, s.label = 11;
                                case 11:
                                    return f.default.Instance.IsGameModuleOpen(h.GameModuleType.ContinuousFight) ? [4, this.LoadDynamicAsset("ArenaPort/SubItems/ContinuousWarEntranceItem", cc.Prefab)] : [3, 13];
                                case 12:
                                    R = s.sent(), (L = cc.instantiate(R)).getComponent(b.default).Init(), this.PortContainer.addChild(L), this._enterNodes[l.ContinuousWar] = L, s.label = 13;
                                case 13:
                                    return this.scheduleOnce(function() {
                                        k.ShowAllGameUnlockFinger(!1)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.ShowAllGameUnlockFinger = function(e) {
                    if (void 0 === e && (e = !0), this.isValid && !S.default.Instance.IsInGuide) {
                        this.Scroview.stopAutoScroll();
                        var t = w.default.Instance.CurrencyMoudleId;
                        if (!t || t < 0)
                            for (var n = 0; n < this.PortContainer.children.length; n++) w.default.Instance.RemoveFinger(this.PortContainer.children[n]);
                        var o = A.ConfigDataComponent.Instance.GetConfigById(P.GameModuleUnlockPop_Config, t);
                        if (!o)
                            for (n = 0; n < this.PortContainer.children.length; n++) w.default.Instance.RemoveFinger(this.PortContainer.children[n]);
                        var r = e ? 2 : 0;
                        for (var i in this.GameUnlockSteps) {
                            var a = parseInt(i);
                            if (-1 != this.GameUnlockSteps[i].indexOf(t)) {
                                this.Scroview.scrollToOffset(this.ComputeScroviewOffset(a), .2);
                                var s = this._enterNodes[a];
                                return void(s && w.default.Instance.SetFinger(s, o.Id, 0, 0, r))
                            }
                        }
                    }
                }, t.prototype.ComputeScroviewOffset = function(e) {
                    for (var t = cc.Vec2.ZERO, n = this._enterNodes[e], o = 0; o < this.PortContainer.children.length; o++) {
                        var r = this.PortContainer.children[o];
                        if (r === n) break;
                        t.y += r.height + 20
                    }
                    return t
                }, t.prototype.IsSeniorArenaOpenned = function() {
                    return !0
                }, t.prototype.OnReturnButtonClicked = function() {
                    d.UIManager.Instance.BackUIPanel()
                }, i([L(cc.Label)], t.prototype, "PanelNameLabel", void 0), i([L(cc.Node)], t.prototype, "PortContainer", void 0), i([L(cc.Button)], t.prototype, "ReturnButton", void 0), i([L(cc.ScrollView)], t.prototype, "Scroview", void 0), i([R], t)
            }(d.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/ArenaEntranceItem": "ArenaEntranceItem",
        "../Components/BreakOutMatchEntranceItem": "BreakOutMatchEntranceItem",
        "../Components/ChampionShipEntranceItem": "ChampionShipEntranceItem",
        "../Components/ContinuousWarEntranceItem": "ContinuousWarEntranceItem",
        "../Components/CrossServerChampionShipEntranceItem": "CrossServerChampionShipEntranceItem",
        "../Components/GameUnlockFingerListener": "GameUnlockFingerListener",
        "../Components/RankMatchArenaEntranceItem": "RankMatchArenaEntranceItem",
        "../Components/SeniorArenaEntranceItem": "SeniorArenaEntranceItem"
    }],
    ArenaSuccessSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5a3477mw/VB2Iyp2bIck406", "ArenaSuccessSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("../../../EZFramework/UIFrame/UIManager"),
            u = e("../../Components/DataCenter"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("./HeadComponent"),
            h = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("./ItemComponent"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../Channel/ChannelManager"),
            b = e("../../Auxiliary/DataUtlity"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LeftPlayerName = null, t.RightPlayerName = null, t.MyScore = null, t.EnemyScore = null, t.MyScoreChange = null, t.EnemyScoreChange = null, t.MyGreenArrow = null, t.MyRedArrow = null, t.EnemyGreenArrow = null, t.EnemyRedArrow = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnSure = null, t.LabelBtnReturn = null, t.LeftHeadRoot = null, t.RightHeadRoot = null, t.RewardGrid = null, t.LineTitle = null, t.LeftDesignationIcon = null, t.RightDesignationIcon = null, t._isInit = !1, t._TargetPlayerInfo = null, t._MyScore = 0, t._MyScoreChange = 0, t._TargetScoreChange = 0, t.color_green = new cc.Color(35, 225, 35), t.color_red = new cc.Color(255, 75, 75), t.color_green_2 = new cc.Color(51, 255, 142), t.color_red_2 = new cc.Color(255, 91, 91), t._headItemPrefab = null, t._commonItemPrefab = null, t._itemArray = [], t._leftHeadItem = null, t._rightHeadItem = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    I.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    I.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardGrid.children.indexOf(t) && C.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t);
                    var n = t.SettleParams[0];
                    if (this.LoadLevelParam(), n.TargetInfo) {
                        var o = n;
                        this._TargetPlayerInfo = o.TargetInfo, this._MyScore = o.Params[0], this._MyScoreChange = o.Params[1], this._TargetScoreChange = o.Params[2], this.LoadRewardItem()
                    } else {
                        var r = n,
                            i = u.DataCenter.Instance.Uid == r.AttackerInfo.Uid;
                        this._TargetPlayerInfo = i ? r.DefenderInfo : r.AttackerInfo, this._MyScore = r.IntParams[0], this._MyScoreChange = r.IntParams[1], this._TargetScoreChange = r.IntParams[2], i && this.LoadRewardItem()
                    }
                    this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.SetPlayerInfo(), this.LoadPlayerHead(), this.SetBtnState()
                }, t.prototype.LoadLevelParam = function() {
                    var e = g.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, p.LevelParamType.ArenaChallengeReward);
                    this._rewardData = e.Data2
                }, t.prototype.SetStaticLocalText = function() {
                    this.LabelBtnSure.string = "ok".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LineTitle.string = "has_got_reward".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this)
                }, t.prototype.SetPlayerInfo = function() {
                    var e = u.DataCenter.Instance.GetStringData(p.UserDataKey.RoleName),
                        t = this._TargetPlayerInfo.Name;
                    this.LeftPlayerName.string = e, this.RightPlayerName.string = t;
                    var n = u.DataCenter.Instance.GetSimpleData(p.UserDataKey.Designation);
                    n && b.default.SetDesignationIcon(n.V, this.LeftDesignationIcon), b.default.SetDesignationIcon(this._TargetPlayerInfo.Designation, this.RightDesignationIcon), this.MyScore.string = this._MyScore.toString(), this.EnemyScore.string = this._TargetPlayerInfo.Value1.toString(), this._MyScoreChange > 0 ? (this.MyGreenArrow.active = !0, this.MyRedArrow.active = !1, this.MyScoreChange.string = "+" + this._MyScoreChange, this.MyScoreChange.node.color = this.color_green_2) : (this.MyGreenArrow.active = !1, this.MyRedArrow.active = !0, this.MyScoreChange.string = this._MyScoreChange.toString(), this.MyScoreChange.node.color = this.color_red_2), this._TargetScoreChange > 0 ? (this.EnemyGreenArrow.active = !0, this.EnemyRedArrow.active = !1, this.EnemyScoreChange.string = "+" + this._TargetScoreChange, this.EnemyScoreChange.node.color = this.color_green_2) : (this.EnemyGreenArrow.active = !1, this.EnemyRedArrow.active = !0, this.EnemyScoreChange.string = this._TargetScoreChange.toString(), this.EnemyScoreChange.node.color = this.color_red_2)
                }, t.prototype.LoadPlayerHead = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != this._headItemPrefab ? [3, 2] : (e = this, [4, h.AssetsManager.Instance.LoadAsset(f.BundlePath.HeadComponent, cc.Prefab)]);
                                case 1:
                                    if (e._headItemPrefab = s.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    return null == this._leftHeadItem && (this._leftHeadItem = cc.instantiate(this._headItemPrefab).getComponent(d.default), this._leftHeadItem.node.parent = this.LeftHeadRoot), null == this._rightHeadItem && (this._rightHeadItem = cc.instantiate(this._headItemPrefab).getComponent(d.default), this._rightHeadItem.node.parent = this.RightHeadRoot), t = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon), n = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame), o = u.DataCenter.Instance.GetIntData(p.UserDataKey.Title), this._leftHeadItem.SetUI(t, n, o), this._leftHeadItem.SetLevel(u.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel)), (r = u.DataCenter.Instance.GetStringData(p.UserDataKey.Country)) || (r = v.default.Instance.Localization_Country), r = 0 == u.DataCenter.Instance.GetIntData(p.UserDataKey.CountryShowState) ? r : "", this._leftHeadItem.SetCountry(r), i = this._TargetPlayerInfo.HeadIcon, a = this._TargetPlayerInfo.HeadFrame, this._rightHeadItem.SetUI(i, a), this._rightHeadItem.SetLevel(this._TargetPlayerInfo.Level), this._rightHeadItem.SetCountry(this._TargetPlayerInfo.Country), [2]
                            }
                        })
                    })
                }, t.prototype.LoadRewardItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : (e = this, [4, h.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._commonItemPrefab = i.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                    i.label = 2;
                                case 2:
                                    for (t = 0; t < this._itemArray.length; t++) this._itemArray[t].node.active = !1;
                                    for (t = 0; t < this._rewardData.length; t++) n = this._rewardData[t].Items[0], o = this._rewardData[t].Items[1], null == this._itemArray[t] && ((r = cc.instantiate(this._commonItemPrefab).getComponent(m.ItemComponent)).node.parent = this.RewardGrid, r.node.name = n.toString(), this._itemArray[t] = r), this._itemArray[t].Init({
                                        ItemId: n,
                                        Count: o
                                    }, m.ItemComponentType.ItemCommon);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetBtnState = function() {
                    var e = c.UIManager.Instance.GetUIPanel(f.PanelConfig.ArenaPanel.Path);
                    this.BtnReturn.node.active = null == e
                }, t.prototype.OnBtnSureClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    c.UIManager.Instance.BackUIPanel(), c.UIManager.Instance.ShowUIPanel(f.PanelConfig.ArenaPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._headItemPrefab && h.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), null != this._commonItemPrefab && h.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), this._headItemPrefab = null, this._commonItemPrefab = null
                }, i([P(cc.Label)], t.prototype, "LeftPlayerName", void 0), i([P(cc.Label)], t.prototype, "RightPlayerName", void 0), i([P(cc.Label)], t.prototype, "MyScore", void 0), i([P(cc.Label)], t.prototype, "EnemyScore", void 0), i([P(cc.Label)], t.prototype, "MyScoreChange", void 0), i([P(cc.Label)], t.prototype, "EnemyScoreChange", void 0), i([P(cc.Node)], t.prototype, "MyGreenArrow", void 0), i([P(cc.Node)], t.prototype, "MyRedArrow", void 0), i([P(cc.Node)], t.prototype, "EnemyGreenArrow", void 0), i([P(cc.Node)], t.prototype, "EnemyRedArrow", void 0), i([P(cc.Button)], t.prototype, "BtnReturn", void 0), i([P(cc.Button)], t.prototype, "BtnSure", void 0), i([P(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([P(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([P(cc.Node)], t.prototype, "LeftHeadRoot", void 0), i([P(cc.Node)], t.prototype, "RightHeadRoot", void 0), i([P(cc.Node)], t.prototype, "RewardGrid", void 0), i([P(cc.Label)], t.prototype, "LineTitle", void 0), i([P(cc.Sprite)], t.prototype, "LeftDesignationIcon", void 0), i([P(cc.Sprite)], t.prototype, "RightDesignationIcon", void 0), i([w], t)
            }(l.default);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeadComponent": "HeadComponent",
        "./ItemComponent": "ItemComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    ArrowFloating: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c2c704v9YdBNY+Z49lMpNuv", "ArrowFloating");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Arrow = null, t.Bottom = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.Arrow.position = new cc.Vec3(0, 150, 0), this._tween = cc.tween(this.Arrow).repeat(3, cc.tween(this.Arrow).by(.5, {
                        position: cc.v3(0, -40, 0)
                    }).by(.5, {
                        position: cc.v3(0, 40, 0)
                    }).start()).repeatForever().start()
                }, t.prototype.onDisable = function() {
                    this._tween.stop(), this._tween = null
                }, i([l(cc.Node)], t.prototype, "Arrow", void 0), i([l(cc.Node)], t.prototype, "Bottom", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    ArrowMove: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b37edphBe1BI5KC0kbXc/2d", "ArrowMove");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.speedX = 1, t.continousTime = .5, t._counter = 0, t
                }
                return r(t, e), t.prototype.start = function() {
                    this._firstX = this.node.x
                }, t.prototype.update = function(e) {
                    this._counter > this.continousTime ? (this.node.x = this._firstX, this._counter = 0) : (this.node.x = this.node.x + e * this.speedX, this._counter += e)
                }, i([l], t.prototype, "speedX", void 0), i([l], t.prototype, "continousTime", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    ArtifactChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b530fa+uilPiLWenbxGrSHr", "ArtifactChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ItemComponent"),
            f = e("./ArtifactHeroSelectPanel"),
            y = e("../Auxiliary/UIUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Title = null, t.HeroNode = null, t.CurArtifactNode = null, t.NextArtifactNode = null, t.Desc = null, t.CancleButton = null, t.CancleLabel = null, t.SureButton = null, t.SureLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "artifact_change_item".ToUILocale(), this.Desc.string = "artifact_change_hero_item".ToUILocale(), this.CancleLabel.string = "cancel".ToUILocale(), this.SureLabel.string = "ok".ToUILocale(), this.CancleButton.node.on("click", this.ClickCancleButton, this), this.SureButton.node.on("click", this.ClickSureButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroModel = t[0], this._curArtifactId = t[1], this._nextArtifactId = t[2], this._slotIndex = t[3]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetHeroNode(), this.SetArtifactNodes())
                }, t.prototype.SetHeroNode = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.parent = this.HeroNode, e.y = -20, e.getComponent(h.ItemComponent).Init(this._heroModel, h.ItemComponentType.HeroInfo)
                }, t.prototype.SetArtifactNodes = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.y = -20, e.parent = this.CurArtifactNode;
                    var t = f.default.GetArtifactItemId(this._curArtifactId),
                        n = u.DataCenter.Instance.GetDataById(c.Artefact_Model, this._curArtifactId),
                        o = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, n.Star),
                        r = e.getComponent(h.ItemComponent);
                    r.Init({
                        ItemId: t,
                        Star: o.Star
                    }, h.ItemComponentType.ItemWithStar), r.CustomItemBgAndBorder(o.Quality);
                    var i = cc.instantiate(this._itemPrefab);
                    i.y = -20, i.parent = this.NextArtifactNode;
                    var a = f.default.GetArtifactItemId(this._nextArtifactId),
                        s = u.DataCenter.Instance.GetDataById(c.Artefact_Model, this._nextArtifactId),
                        p = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, s.Star),
                        d = i.getComponent(h.ItemComponent);
                    d.Init({
                        ItemId: a,
                        Star: p.Star
                    }, h.ItemComponentType.ItemWithStar), d.CustomItemBgAndBorder(p.Quality)
                }, t.prototype.ClickCancleButton = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.ClickSureButton = function() {
                    var e = new c.Req_Team2_ArtefactPutOn;
                    e.Sid = this._nextArtifactId, e.Slot = this._slotIndex, e.Owner = this._heroModel.Sid, u.RpcComponent.Instance.Call(e, function() {
                        y.UIUtlity.ShowFloatingHint("artifact_change_success".ToUILocale()), p.UIManager.Instance.BackUIPanel()
                    })
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Node)], t.prototype, "HeroNode", void 0), i([I(cc.Node)], t.prototype, "CurArtifactNode", void 0), i([I(cc.Node)], t.prototype, "NextArtifactNode", void 0), i([I(cc.Label)], t.prototype, "Desc", void 0), i([I(cc.Button)], t.prototype, "CancleButton", void 0), i([I(cc.Label)], t.prototype, "CancleLabel", void 0), i([I(cc.Button)], t.prototype, "SureButton", void 0), i([I(cc.Label)], t.prototype, "SureLabel", void 0), i([m], t)
            }(p.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./ArtifactHeroSelectPanel": "ArtifactHeroSelectPanel"
    }],
    ArtifactDetailInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "69c47T2rMhOyrv7BctOw//o", "ArtifactDetailInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/LevelComponent"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../Components/AttrComponent5"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title1 = null, t.Title2 = null, t.Title3 = null, t.AttrContent = null, t.SkillName = null, t.SkillDesc = null, t.SkillLevelNode = null, t.HeroContent = null, t.SkillInfoBtn = null, t.GuideNode = null, t._attrNodes = [], t._heroNodes = [], t._assets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    this.Title1.string = "artifact_attr".ToUILocale(), this.Title2.string = "artifact_skill".ToUILocale(), this.Title3.string = "artifact_hero".ToUILocale(), this.SkillInfoBtn.node.on("click", this.OnSkillInfo, this)
                }, t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
                }, t.prototype.Init = function(e, t) {
                    this._artifactId = e, this._config = t, this._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e), this._model && (this.SetAttrContent(), this.SetSkillContent(), this.SetHeroContent())
                }, t.GetAttrDatas = function(e, t) {
                    var n = {},
                        o = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, e.Star);
                    o.Attrs.forEach(function(e) {
                        var o = t.AttrIds[e.Items[0]];
                        o >= 0 && (n[o] ? n[o] += e.Items[1] : n[o] = e.Items[1])
                    }), 2 == o.Type && e.NodeLevel > 0 && o.NodeAttrs.forEach(function(o, r) {
                        var i = t.AttrIds[o.Items[0]];
                        i >= 0 && r < e.NodeLevel && (n[i] ? n[i] += o.Items[1] : n[i] = o.Items[1])
                    });
                    for (var r = [], i = 0, a = t.ArtefactForge; i < a.length; i++) {
                        var s = a[i],
                            c = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, s);
                        if (e.ArtefactForge >= s) {
                            c.Attrs.forEach(function(e) {
                                n[e.Items[0]] ? n[e.Items[0]] += e.Items[1] : n[e.Items[0]] = e.Items[1]
                            });
                            for (var p = 0; p < c.ForgeAttrs.length; p++) {
                                var d = c.ForgeAttrs[p].Items[0],
                                    h = c.ForgeAttrs[p].Items[2],
                                    f = c.ForgeAttrs[p].Items[3];
                                n[h] ? n[h] += f * d : n[h] = f * d
                            }
                        } else {
                            var y = 0;
                            for (p = 0; p < c.ForgeAttrs.length; p++) {
                                d = c.ForgeAttrs[p].Items[0], h = c.ForgeAttrs[p].Items[2], f = c.ForgeAttrs[p].Items[3], r[p] = r[p] || 0;
                                var g = e.ForgeProgress[p] || 0,
                                    m = Math.min(g - r[p], d);
                                0 != m ? (n[h] ? n[h] += f * m : n[h] = f * m, r[p] += m) : y++
                            }
                            if (y == c.ForgeAttrs.length) break
                        }
                    }
                    return n
                }, t.prototype.SetAttrContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this._attrPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ItemsComponent/AttrComponent5", cc.Prefab)];
                                case 1:
                                    if (e = a.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._attrPrefab = e, this._assets.push(e), a.label = 2;
                                case 2:
                                    for (r in this._attrNodes.forEach(function(e) {
                                            e.active = !1
                                        }), t = n.GetAttrDatas(this._model, this._config), o = 0, t) this._attrNodes[o] || ((i = cc.instantiate(this._attrPrefab)).parent = this.AttrContent, this._attrNodes[o] = i), this._attrNodes[o].active = !0, this._attrNodes[o].getComponent(I.default).Init(Number(r), t[r], {
                                        AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(),
                                        NodeWidth: 488,
                                        ValueNodeWidth: 231
                                    }), o++;
                                    return [2]
                            }
                        })
                    })
                }, t.GetArtifactSkillConfig = function(e, t) {
                    for (var n = u.ConfigDataComponent.Instance.GetConfigById(l.Artefact_Config, e), o = 0, r = 0; r < n.Skills.length; r++)
                        if (n.Skills[r].Items[0] > 0) {
                            o = r + 1;
                            break
                        } return t > o ? n.Skills[t - 1] : n.Skills[o - 1]
                }, t.GetArtifactSkillDatas = function(e) {
                    var t = [],
                        n = 0,
                        o = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e),
                        r = u.ConfigDataComponent.Instance.GetConfigById(l.Artefact_Config, e);
                    if (o) {
                        var i = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, o.Star);
                        n = i.Star
                    }
                    var a = -1;
                    return r.Skills.forEach(function(e) {
                        if (e.Items[1] > 0 && a != e.Items[2]) {
                            var o = {};
                            o.CurStar = n, o.SkillId = e.Items[0], o.Desc = e.Items[0].ToHeroSkillDesc(), o.Star = e.Items[2], t.push(o), a = e.Items[2]
                        }
                    }), t
                }, t.prototype.SetSkillContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._model.Star), t = n.GetArtifactSkillConfig(this._artifactId, e.Star), o = t.Items[0], r = t.Items[2], this.SkillName.string = o.ToHeroSkillName(), this.SkillDesc.string = "<color=#624e3c>" + o.ToHeroSkillDesc() + "</c>", this._levelPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(d.BundlePath.LevelComponent, cc.Prefab)];
                                case 1:
                                    if (i = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(i), [2];
                                    this._levelPrefab = i, this._assets.push(i), s.label = 2;
                                case 2:
                                    return this._levelNode || (this._levelNode = cc.instantiate(this._levelPrefab), this._levelNode.parent = this.SkillLevelNode), (a = this._levelNode.getComponent(h.LevelComponent)).Init(r), a.SetStarSize(46, 44), [2]
                            }
                        })
                    })
                }, t.prototype.SetHeroContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._heroNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._heroPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._heroPrefab = e, this._assets.push(e), o.label = 2;
                                case 2:
                                    return t = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._model.Star), this._config.Slots.length > 0 && this._config.Slots.forEach(function(e, o) {
                                        if (!n._heroNodes[o]) {
                                            var r = cc.instantiate(n._heroPrefab);
                                            r.parent = n.HeroContent, r.y = -20, r.name = o.toString(), n._heroNodes[o] = r
                                        }
                                        n._heroNodes[o].active = !0;
                                        var i = n._heroNodes[o].getComponent(f.ItemComponent);
                                        if (t.Star >= e)
                                            if (n._model.Owners[o] > 0) {
                                                var a = u.DataCenter.Instance.GetDataById(c.UserHero_Model, n._model.Owners[o]);
                                                i.Init(a, f.ItemComponentType.HeroInfo)
                                            } else i.SetItemSimpleState(), i.SetAddFlagState(!0);
                                        else i.SetItemSimpleState(), i.SetLockFlag(!0, "lock_yellow");
                                        var s = m.RedDotManager.DataHandler.RefreshArtifactHeroSlot({
                                            Value1: n._artifactId,
                                            extra: o
                                        });
                                        i.SetRedDotState(s)
                                    }), this.HeroContent.children.length > 0 ? (this.GuideNode.active = !0, this.GuideNode.setParent(this.HeroContent.children[0])) : this.GuideNode.active = !1, [2]
                            }
                        })
                    })
                }, t.prototype.OnClickHero = function(e, t) {
                    var n = this;
                    if (-1 != this.HeroContent.children.indexOf(t) && this._model) {
                        if (u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._model.Star).Star < this._config.Slots[e]) return void g.UIUtlity.ShowFloatingHint("artifact_unlock_star".ToUILocale().Fmt(this._config.Slots[e]));
                        this._model.Owners[e] > 0 ? g.UIUtlity.ShowHintPanel("", "artifact_remove_check".ToUILocale().Fmt(this._artifactId.ToArtifactName()), "", null, "", function() {
                            var t = new c.Req_Team2_ArtefactPutOff;
                            t.Sid = n._config.Id, t.Slot = e, u.RpcComponent.Instance.Call(t, function() {
                                g.UIUtlity.ShowFloatingHint("artifact_remove_success".ToUILocale()), n._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, n._artifactId), n.SetHeroContent(), p.Game.EventDispatcher.Emit(y.EventKeys.EVENT_ARTIFACT_REDDOT)
                            })
                        }) : p.UIManager.Instance.ShowUIPanel(d.PanelConfig.ArtifactHeroSelectPanel.Path, this._config, e)
                    }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    }), this._attrPrefab = null, this._heroPrefab = null, this._levelPrefab = null
                }, t.prototype.OnSkillInfo = function() {
                    var e = n.GetArtifactSkillDatas(this._artifactId);
                    p.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonSkillStarDescPanel.Path, e)
                }, i([v(cc.Label)], t.prototype, "Title1", void 0), i([v(cc.Label)], t.prototype, "Title2", void 0), i([v(cc.Label)], t.prototype, "Title3", void 0), i([v(cc.Node)], t.prototype, "AttrContent", void 0), i([v(cc.Label)], t.prototype, "SkillName", void 0), i([v(cc.RichText)], t.prototype, "SkillDesc", void 0), i([v(cc.Node)], t.prototype, "SkillLevelNode", void 0), i([v(cc.Node)], t.prototype, "HeroContent", void 0), i([v(cc.Button)], t.prototype, "SkillInfoBtn", void 0), i([v(cc.Node)], t.prototype, "GuideNode", void 0), n = i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent5": "AttrComponent5",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent"
    }],
    ArtifactForgeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bd0fbkvPmhGzoRTDaeBjwfL", "ArtifactForgeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("./ArtifactPanel"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelectBgNode = null, t.ProgressBar = null, t.ProgressBarSprite = null, t.ItemSprite = null, t.InfoNode = null, t.ProgressLabel = null, t.TypeLabel = null, t.TopSprite = null, t._assets = [], t._typeLabels = [], t._isMax = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._typeLabels = ["artifact_forge1".ToUILocale(), "artifact_forge2".ToUILocale(), "artifact_forge3".ToUILocale()]
                }, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.ClickSelf, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.ClickSelf, this)
                }, t.prototype.Init = function(e, t) {
                    this._type = e, this._config = u.ConfigDataComponent.Instance.GetConfigById(l.Artefact_Config, t), this._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, t), this._model && (this._isMax = h.default.GetRemainItemCount(e, t)[1] <= 0, this.SetItemSprite(), this.SetProgressBarSprite(), this.SetProgressBar())
                }, t.prototype.SetItemSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._model.ArtefactForge > 0 ? (t = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._model.ArtefactForge), e = t.ForgeAttrs[this._type].Items[1]) : (t = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._config.ArtefactForge[0]), e = t.ForgeAttrs[this._type].Items[1]), this._itemId == e ? [3, 2] : (n = f.default.Instance.GetItemPathById(e), [4, p.AssetsManager.Instance.LoadAsset(n, cc.SpriteFrame)]);
                                case 1:
                                    if (o = r.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this._itemId = e, this._assets.push(o), this.ItemSprite.spriteFrame = o, r.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetProgressBarSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._spriteAtlas ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ArtifactPanel/PNG/Artifact", cc.SpriteAtlas)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._spriteAtlas = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return this.ProgressBarSprite.spriteFrame = this._spriteAtlas.getSpriteFrame("forgeProgress" + (this._type + 1)), this.TopSprite.spriteFrame = this._spriteAtlas.getSpriteFrame("forgeProgressTop" + (this._type + 1)), [2]
                            }
                        })
                    })
                }, t.prototype.SetProgressBar = function() {
                    var e = this._model.ForgeProgress[this._type] || 0,
                        t = 0;
                    if (this._model.ArtefactForge > 0) {
                        var n = this._config.ArtefactForge.indexOf(this._model.ArtefactForge);
                        t = n < this._config.ArtefactForge.length - 1 ? u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._config.ArtefactForge[n + 1]).ForgeAttrs[this._type].Items[0] : u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._model.ArtefactForge).ForgeAttrs[this._type].Items[0]
                    } else t = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._config.ArtefactForge[0]).ForgeAttrs[this._type].Items[0];
                    this.TypeLabel.string = this._typeLabels[this._type], this._isMax ? (this.ProgressBar.progress = 1, this.ProgressLabel.string = "artifact_max_level".ToUILocale()) : (this.ProgressBar.progress = e / t, this.ProgressLabel.string = e >= t ? "<outline color=#202434 width=2><color=#6eeea7>{0}</color><color=#ffffff>/{1}</color></outline>".Fmt(e, t) : "<outline color=#202434 width=2><color=#ff403e>{0}</color><color=#ffffff>/{1}</color></outline>".Fmt(e, t))
                }, t.prototype.SetSelectState = function(e) {
                    this.SelectBgNode.active = e
                }, t.prototype.ClickSelf = function() {
                    this._model.ArtefactForge != this._config.ArtefactForge[this._config.ArtefactForge.length - 1] && p.Game.EventDispatcher.Emit(d.EventKeys.EVENT_ARTIFACT_FORGE_SELECT, this._type)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    }), this._spriteAtlas = null
                }, i([m(cc.Node)], t.prototype, "SelectBgNode", void 0), i([m(cc.ProgressBar)], t.prototype, "ProgressBar", void 0), i([m(cc.Sprite)], t.prototype, "ProgressBarSprite", void 0), i([m(cc.Sprite)], t.prototype, "ItemSprite", void 0), i([m(cc.Node)], t.prototype, "InfoNode", void 0), i([m(cc.RichText)], t.prototype, "ProgressLabel", void 0), i([m(cc.Label)], t.prototype, "TypeLabel", void 0), i([m(cc.Sprite)], t.prototype, "TopSprite", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "./ArtifactPanel": "ArtifactPanel"
    }],
    ArtifactForgeInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3a7d3XWLNlPco4ggJdW7+7H", "ArtifactForgeInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ForgeType = void 0;
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("./ArtifactForgeSelectComponent"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("./ArtifactPanel"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("./ArtifactSuccessTipPanel"),
            C = e("./ArtifactDetailInfoComponent"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Components/AttrComponent5");
        (function(e) {
            e[e.Beginner = 0] = "Beginner", e[e.Intermediate = 1] = "Intermediate", e[e.Advanced = 2] = "Advanced"
        })(n.ForgeType || (n.ForgeType = {}));
        var S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title1 = null, t.Title2 = null, t.Title3 = null, t.AttrContent = null, t.TalentScrollView = null, t.TalentContent = null, t.SelectComponents = [], t.ForgeButton = null, t.ForgeLabel = null, t.AutoForgeButton = null, t.AutoForgeLabel = null, t.MaxLabel = null, t._selectIndex = -1, t._attrNodes = [], t._talentNodes = [], t._assets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Title1.string = "artifact_attr".ToUILocale(), this.Title2.string = "artifact_forge_talent".ToUILocale(), this.Title3.string = "artifact_forge_consume".ToUILocale(), this.MaxLabel.string = "artifact_forge_max".ToUILocale(), this.ForgeLabel.string = "artifact_forge".ToUILocale(), this.AutoForgeLabel.string = "artifact_forge_auto".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.ForgeButton.node.on("click", this.ClickForgeButton, this), this.AutoForgeButton.node.on("click", this.ClickAutoForgeButton, this)
                }, t.prototype.onDisable = function() {
                    this.ForgeButton.node.off("click", this.ClickForgeButton, this), this.AutoForgeButton.node.off("click", this.ClickAutoForgeButton, this)
                }, t.prototype.Init = function(e, t) {
                    this._artifactId = e, this._config = t, this._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e), this._model && (this.SetAttrContent(), this.SetTalentContent(), this.SetSelectComponents(), this.SetButtons())
                }, t.prototype.SetAttrContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._attrPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ItemsComponent/AttrComponent5", cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._attrPrefab = e, this._assets.push(e), i.label = 2;
                                case 2:
                                    for (o in this._attrNodes.forEach(function(e) {
                                            e.active = !1
                                        }), t = C.default.GetAttrDatas(this._model, this._config), n = 0, t) this._attrNodes[n] || ((r = cc.instantiate(this._attrPrefab)).parent = this.AttrContent, this._attrNodes[n] = r), this._attrNodes[n].active = !0, this._attrNodes[n].getComponent(b.default).Init(Number(o), t[o], {
                                        AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(),
                                        NodeWidth: 488,
                                        ValueNodeWidth: 231
                                    }), n++;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetTalentContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._talentPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ArtifactPanel/Components/ArtifactForgeRichText", cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._talentPrefab = e, this._assets.push(e), i.label = 2;
                                case 2:
                                    return this._talentNodes.forEach(function(e) {
                                        e.active = !1
                                    }), t = [], this._config.ArtefactForge.forEach(function(e, n) {
                                        var o = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, e),
                                            i = {};
                                        i.stage = n + 1, i.isUnlock = r._model.ArtefactForge >= e;
                                        var a = "";
                                        o.Attrs.forEach(function(e, t) {
                                            var n = ("hero_attr_" + e.Items[0]).ToUILocale(),
                                                r = h.default.GetAttrText(e.Items[0], e.Items[1]);
                                            t == o.Attrs.length - 1 ? a += "" + ("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + n) + r : a += "" + ("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + n) + r + " "
                                        }), i.desc = a, t.push(i)
                                    }), t.forEach(function(e, t) {
                                        if (!r._talentNodes[t]) {
                                            var n = cc.instantiate(r._talentPrefab);
                                            n.parent = r.TalentContent, r._talentNodes[t] = n
                                        }
                                        r._talentNodes[t].active = !0;
                                        var o = r._talentNodes[t].getComponent(cc.RichText);
                                        r._talentNodes[t].opacity = e.isUnlock ? 255 : 127, e.isUnlock ? o.string = "artifact_forge_talent_stage1".ToUILocale().Fmt(e.stage, e.desc) : o.string = "artifact_forge_talent_stage2".ToUILocale().Fmt(e.stage, e.desc)
                                    }), n = this._config.ArtefactForge.indexOf(this._model.ArtefactForge), o = n - 1 > 0 ? n - 1 : 0, this.scheduleOnce(function() {
                                        if (o > 0 && r.TalentContent.children[o]) {
                                            var e = r.TalentContent.children[o].y;
                                            r.TalentScrollView.scrollToOffset(cc.v2(0, -e))
                                        }
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetSelectComponents = function() {
                    var e = this;
                    this.SelectComponents.forEach(function(t, n) {
                        t.Init(n, e._artifactId), t.SetSelectState(e._selectIndex == n)
                    }), v.RedDotManager.Instance.BindInstance(this.SelectComponents[0].node, v.RedDotManager.Instance.InstanceRedDot.ArtifactForge1, {
                        Value1: this._artifactId,
                        extra: 0
                    }), v.RedDotManager.Instance.BindInstance(this.SelectComponents[1].node, v.RedDotManager.Instance.InstanceRedDot.ArtifactForge2, {
                        Value1: this._artifactId,
                        extra: 1
                    }), v.RedDotManager.Instance.BindInstance(this.SelectComponents[2].node, v.RedDotManager.Instance.InstanceRedDot.ArtifactForge3, {
                        Value1: this._artifactId,
                        extra: 2
                    })
                }, t.prototype.SetButtons = function() {
                    this.ForgeButton.node.active = !1, this.AutoForgeButton.node.active = !1, this.MaxLabel.node.active = !1, this._model.ArtefactForge == this._config.ArtefactForge[this._config.ArtefactForge.length - 1] ? this.MaxLabel.node.active = !0 : (this.ForgeButton.node.active = !0, this.AutoForgeButton.node.active = !0)
                }, t.prototype.SetSelectIndex = function(e) {
                    this._selectIndex = e
                }, t.prototype.RequestForge = function(e) {
                    var t = this,
                        n = this._model.ArtefactForge,
                        o = this._model.ForgeProgress[this._selectIndex] || 0,
                        r = u.DataCenter.Instance.GetIntData(g.UserDataKey.Power),
                        i = new c.Req_Team2_ArtefactForge,
                        a = C.default.GetAttrDatas(this._model, this._config);
                    i.Sid = this._artifactId, i.Type = this._selectIndex + 1, i.NewProgress = o + e, u.RpcComponent.Instance.Call(i, function() {
                        if (p.UIManager.Instance.ShowUIPanel(m.PanelConfig.BattlePowerChangePanel.Path, r, u.DataCenter.Instance.GetIntData(g.UserDataKey.Power)), p.Game.EventDispatcher.Emit(I.EventKeys.EVENT_ARTIFACT_PANEL_REFRESH), t._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, t._artifactId), n != t._model.ArtefactForge) {
                            var e = {},
                                o = C.default.GetAttrDatas(t._model, t._config),
                                i = [],
                                s = [];
                            for (var l in o)(d = {}).AttrId = Number(l), d.AttrValue = o[l], i.push(d);
                            for (var l in a) {
                                var d;
                                (d = {}).AttrId = Number(l), d.AttrValue = a[l], s.push(d)
                            }
                            e.CurAttrDatas = i, e.LastAttrDatas = s, p.UIManager.Instance.ShowUIPanel(m.PanelConfig.ArtifactSuccessTipPanel.Path, t._config.Id, _.ArtifactSuccessTipType.UpStage, e)
                        }
                    })
                }, t.prototype.ClickForgeButton = function() {
                    this.ClickForgeEvent(1)
                }, t.prototype.ClickAutoForgeButton = function() {
                    this.ClickForgeEvent(2)
                }, t.prototype.ClickForgeEvent = function(e) {
                    var t, n = this;
                    if (this._model.ArtefactForge != this._config.ArtefactForge[this._config.ArtefactForge.length - 1])
                        if (this._selectIndex < 0) y.UIUtlity.ShowFloatingHint("artifact_forge_select".ToUILocale());
                        else {
                            var o = f.default.GetRemainItemCount(this._selectIndex, this._artifactId);
                            if (o[1] <= 0) y.UIUtlity.ShowFloatingHint("artifact_forge_progress_max".ToUILocale());
                            else {
                                var r = this._config.ArtefactForge.indexOf(this._model.ArtefactForge) + 1,
                                    i = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._config.ArtefactForge[r]),
                                    a = i.ForgeAttrs[this._selectIndex].Items[1],
                                    s = this._model.ForgeProgress[this._selectIndex] || 0,
                                    c = u.DataCenter.Instance.GetItemCount(a);
                                if (0 != c)
                                    if (s >= i.ForgeAttrs[this._selectIndex].Items[0]) {
                                        var p = c >= o[1] ? o[1] : c;
                                        t = 1 == e ? 1 : p, y.UIUtlity.ShowHintPanel("", "artifact_forge_contiune_check".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                            n.RequestForge(t)
                                        })
                                    } else {
                                        var d = i.ForgeAttrs[this._selectIndex].Items[0] - s;
                                        p = c >= d ? d : c, t = 1 == e ? 1 : p, this.RequestForge(t)
                                    }
                                else y.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(a.ToItemName()))
                            }
                        }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    }), this._attrPrefab = null
                }, i([P(cc.Label)], t.prototype, "Title1", void 0), i([P(cc.Label)], t.prototype, "Title2", void 0), i([P(cc.Label)], t.prototype, "Title3", void 0), i([P(cc.Node)], t.prototype, "AttrContent", void 0), i([P(cc.ScrollView)], t.prototype, "TalentScrollView", void 0), i([P(cc.Node)], t.prototype, "TalentContent", void 0), i([P(d.default)], t.prototype, "SelectComponents", void 0), i([P(cc.Button)], t.prototype, "ForgeButton", void 0), i([P(cc.Label)], t.prototype, "ForgeLabel", void 0), i([P(cc.Button)], t.prototype, "AutoForgeButton", void 0), i([P(cc.Label)], t.prototype, "AutoForgeLabel", void 0), i([P(cc.Label)], t.prototype, "MaxLabel", void 0), i([w], t)
            }(cc.Component);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent5": "AttrComponent5",
        "./ArtifactDetailInfoComponent": "ArtifactDetailInfoComponent",
        "./ArtifactForgeSelectComponent": "ArtifactForgeSelectComponent",
        "./ArtifactPanel": "ArtifactPanel",
        "./ArtifactSuccessTipPanel": "ArtifactSuccessTipPanel"
    }],
    ArtifactForgeSelectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7abf3QDABhKEY2Q1SQzACNy", "ArtifactForgeSelectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ItemComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./ArtifactPanel"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Components/CustomProgressBar"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelectNode = null, t.ItemName = null, t.ItemNode = null, t.EffectName = null, t.CustomProgressBar = null, t.EffectLabel = null, t.ProgressRichText = null, t.ProgressNode = null, t.Toggle = null, t.GetButton = null, t.GetLabel = null, t.MaxLabel = null, t._assets = [], t._isMax = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.MaxLabel.string = "common_max_level".ToUILocale(), this.GetLabel.string = "Personalise_getway".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.ClickSelf, this), this.Toggle.node.on("toggle", this.ClickSelf, this), this.GetButton.node.on("click", this.ClickGetButton, this), p.Game.EventDispatcher.On(m.EventKeys.EVENT_ARTIFACT_FORGE_SELECT, this.OnRefreshForgeSelect, this), p.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.ClickSelf, this), this.Toggle.node.off("toggle", this.ClickSelf, this), this.GetButton.node.off("click", this.ClickGetButton, this), p.Game.EventDispatcher.Off(m.EventKeys.EVENT_ARTIFACT_FORGE_SELECT, this.OnRefreshForgeSelect, this), p.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t) {
                    this._artifactId = t, this._type = e, this._config = u.ConfigDataComponent.Instance.GetConfigById(l.Artefact_Config, t), this._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, t);
                    var n = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._config.ArtefactForge[0]);
                    this._itemId = n.ForgeAttrs[e].Items[1], this._model && (this._isMax = g.default.GetRemainItemCount(e, t)[1] <= 0, this.SetItemNode(), this.SetInfo())
                }, t.prototype.SetItemNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._assets.push(e), o.label = 2;
                                case 2:
                                    return this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.parent = this.ItemNode, this._itemNode.y = -20), t = u.DataCenter.Instance.GetItemCount(this._itemId), (n = this._itemNode.getComponent(h.ItemComponent)).Init({
                                        ItemId: this._itemId,
                                        Count: t
                                    }), t > 0 ? n.SetCountColor(cc.Color.WHITE) : n.SetCountColor(cc.Color.RED), t > 0 ? n.OffIconGray() : n.OnIconGray(!0), [2]
                            }
                        })
                    })
                }, t.prototype.GetRealForgeConfig = function() {
                    var e;
                    if (this._isMax) e = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._config.ArtefactForge[this._config.ArtefactForge.length - 1]);
                    else {
                        for (var t = this._config.ArtefactForge.indexOf(this._model.ArtefactForge) + 1, n = this._model.ForgeProgress[this._type] || 0, o = t; o < this._config.ArtefactForge.length; o++) {
                            var r = this._config.ArtefactForge[o],
                                i = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, r);
                            if ((n -= i.ForgeAttrs[this._type].Items[0]) < 0) {
                                e = i;
                                break
                            }
                        }
                        e || (e = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._config.ArtefactForge[this._config.ArtefactForge.length - 1]))
                    }
                    return e
                }, t.prototype.SetInfo = function() {
                    this.ItemName.string = this._itemId.ToItemName();
                    var e = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, this._itemId);
                    this.ItemName.node.color = f.UIUtlity.GetLabelColorByQuality(e.Quality);
                    var t = this.GetRealForgeConfig(),
                        n = t.ForgeAttrs[this._type].Items[2],
                        o = t.ForgeAttrs[this._type].Items[3],
                        r = ("hero_attr_" + n).ToUILocale(),
                        i = y.default.GetAttrText(n, o);
                    if (this.EffectName.string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + r + ":", this.EffectLabel.string = i, this.ProgressNode.active = !this._isMax, !this._isMax) {
                        var a = this._config.ArtefactForge.indexOf(this._model.ArtefactForge) + 1,
                            s = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactForge_Config, this._config.ArtefactForge[a]),
                            c = this._model.ForgeProgress[this._type],
                            p = s.ForgeAttrs[this._type].Items[0];
                        this.ProgressRichText.string = c >= p ? "<outline color=#202434 width=3><color=#6eeea7>{0}</c><color=#ffffff>/{1}</c></outline>".Fmt(c, p) : "<outline color=#202434 width=3><color=#ff403e>{0}</c><color=#ffffff>/{1}</c></outline>".Fmt(c, p), this.CustomProgressBar.progress = c / p
                    }
                    var d = u.DataCenter.Instance.GetItemCount(this._itemId);
                    this.MaxLabel.node.active = this._isMax, this.GetButton.node.active = !this._isMax && 0 == d, this.Toggle.node.active = !this._isMax && d > 0
                }, t.prototype.OnRefreshForgeSelect = function(e) {
                    g.default.GetRemainItemCount(e, this._config.Id)[1] <= 0 || this.SetSelectState(e == this._type)
                }, t.prototype.OnClickItem = function(e, t) {
                    this.node && this.isValid && -1 == this.ItemNode.children.indexOf(t) || (f.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t), this._model.ArtefactForge != this._config.ArtefactForge[this._config.ArtefactForge.length - 1] && p.Game.EventDispatcher.Emit(m.EventKeys.EVENT_ARTIFACT_FORGE_SELECT, this._type))
                }, t.prototype.SetSelectState = function(e) {
                    this.SelectNode.active = e, this.Toggle.isChecked = e
                }, t.prototype.ClickSelf = function() {
                    this._model.ArtefactForge != this._config.ArtefactForge[this._config.ArtefactForge.length - 1] && p.Game.EventDispatcher.Emit(m.EventKeys.EVENT_ARTIFACT_FORGE_SELECT, this._type)
                }, t.prototype.ClickGetButton = function() {
                    this._itemId && y.default.ShowItemGetWay(this._itemId)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemPrefab = null
                }, i([v(cc.Node)], t.prototype, "SelectNode", void 0), i([v(cc.Label)], t.prototype, "ItemName", void 0), i([v(cc.Node)], t.prototype, "ItemNode", void 0), i([v(cc.Label)], t.prototype, "EffectName", void 0), i([v(I.default)], t.prototype, "CustomProgressBar", void 0), i([v(cc.Label)], t.prototype, "EffectLabel", void 0), i([v(cc.RichText)], t.prototype, "ProgressRichText", void 0), i([v(cc.Node)], t.prototype, "ProgressNode", void 0), i([v(cc.Toggle)], t.prototype, "Toggle", void 0), i([v(cc.Button)], t.prototype, "GetButton", void 0), i([v(cc.Label)], t.prototype, "GetLabel", void 0), i([v(cc.Label)], t.prototype, "MaxLabel", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./ArtifactPanel": "ArtifactPanel"
    }],
    ArtifactHeroChangeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ce256zj/BZHYp+edhg7KMQo", "ArtifactHeroChangeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../ShareConsts/EnumType"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./ItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroNode = null, t.NameLabel = null, t.Power = null, t.ChangeButton = null, t.ChangeLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ChangeLabel.string = "artifact_change".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.ChangeButton.node.on("click", this.ClickChangeButton, this)
                }, t.prototype.onDisable = function() {
                    this.ChangeButton.node.off("click", this.ClickChangeButton, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._artifactId = e, this._data = n, this._curHeroSid = t, this._heroNode || (this._heroNode = cc.instantiate(o), this._heroNode.y = -20, this._heroNode.parent = this.HeroNode), this._heroNode.getComponent(h.ItemComponent).Init(n.heroModel, h.ItemComponentType.HeroInfo), this.NameLabel.string = n.heroModel.HeroId.ToHeroName(), this.Power.string = n.heroModel.Power.toString()
                }, t.prototype.ClickChangeButton = function() {
                    var e = p.DataCenter.Instance.GetIntData(l.UserDataKey.Power),
                        t = new a.Req_Team2_ArtefactPutOn;
                    t.Sid = this._artifactId, t.Slot = this._data.Slot, t.Owner = this._curHeroSid, p.RpcComponent.Instance.Call(t, function() {
                        d.UIUtlity.ShowFloatingHint("artifact_change_success".ToUILocale()), s.Game.EventDispatcher.Emit(c.EventKeys.EVENT_CLOSE_HERO_CHANGE_PANEL);
                        var t = p.DataCenter.Instance.GetIntData(l.UserDataKey.Power);
                        s.UIManager.Instance.ShowUIPanel(u.PanelConfig.BattlePowerChangePanel.Path, e, t)
                    })
                }, i([g(cc.Node)], t.prototype, "HeroNode", void 0), i([g(cc.Label)], t.prototype, "NameLabel", void 0), i([g(cc.Label)], t.prototype, "Power", void 0), i([g(cc.Button)], t.prototype, "ChangeButton", void 0), i([g(cc.Label)], t.prototype, "ChangeLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ArtifactHeroChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "66b34pRmAlEPLY0NtwPuAj+", "ArtifactHeroChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ItemComponent"),
            g = e("./ArtifactHeroSelectPanel"),
            m = e("../Components/ArtifactHeroChangeComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Title = null, t.ItemNode = null, t.HeroCount = null, t.CustomLayout = null, t._initLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_CLOSE_HERO_CHANGE_PANEL, this.ClosePanel, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CLOSE_HERO_CHANGE_PANEL, this.ClosePanel, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent), n = this.LoadDynamicAsset("ArtifactPanel/Components/ArtifactHeroChangeComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._changeItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "artifact_hero".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroSid = t[0], this._artifactId = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._artifactConfig = u.ConfigDataComponent.Instance.GetConfigById(l.Artefact_Config, this._artifactId), this._artifactModel = u.DataCenter.Instance.GetDataById(c.Artefact_Model, this._artifactId), this.SetArtifactNode(), this.SetHeroList()
                }, t.prototype.SetArtifactNode = function() {
                    var e = this;
                    if (this._artifactModel) {
                        this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.y = -20, this._itemNode.parent = this.ItemNode);
                        var t = g.default.GetArtifactItemId(this._artifactId),
                            n = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._artifactModel.Star),
                            o = this._itemNode.getComponent(y.ItemComponent);
                        o.Init({
                            ItemId: t,
                            StarLevel: n.Star
                        }, y.ItemComponentType.ItemWithStar), o.CustomItemBgAndBorder(n.Quality);
                        var r = 0,
                            i = 0;
                        this._data = [];
                        for (var a = 0; a < this._artifactConfig.Slots.length; a++) {
                            var s = this._artifactConfig.Slots[a];
                            n.Star >= s && r++
                        }
                        this._artifactModel.Owners.forEach(function(t, n) {
                            if (t > 0) {
                                i++;
                                var o = u.DataCenter.Instance.GetDataById(c.UserHero_Model, t),
                                    r = {};
                                r.Slot = n, r.heroModel = o, e._data.push(r)
                            }
                        }), this.HeroCount.string = "artifact_hero_count".ToUILocale().Fmt(i, r), this._data.sort(function(e, t) {
                            return t.heroModel.Power - e.heroModel.Power
                        })
                    }
                }, t.prototype.SetHeroList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._changeItemPrefab), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._data.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(m.default).Init(n._artifactId, n._heroSid, n._data[t], n._itemPrefab)
                    })
                }, t.prototype.ClosePanel = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Node)], t.prototype, "ItemNode", void 0), i([C(cc.Label)], t.prototype, "HeroCount", void 0), i([C(d.default)], t.prototype, "CustomLayout", void 0), i([_], t)
            }(p.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ArtifactHeroChangeComponent": "ArtifactHeroChangeComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./ArtifactHeroSelectPanel": "ArtifactHeroSelectPanel"
    }],
    ArtifactHeroSelectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "28aefJXyG5B5padkDpHZOrc", "ArtifactHeroSelectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("./ArtifactHeroSelectPanel"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroNode = null, t.ArtifactNode = null, t.SelectNode = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._heroModel = e, this._artifactId = t, this._itemPrefab = n, this.SetItemNode()
                }, t.prototype.SetItemNode = function() {
                    if (this._itemNodes.forEach(function(e) {
                            e.active = !1
                        }), !this._itemNodes[0]) {
                        var e = cc.instantiate(this._itemPrefab);
                        this._itemNodes[0] = e
                    }
                    if (this._itemNodes[0].name = this._heroModel.Sid.toString(), this._itemNodes[0].parent = this.HeroNode, this._itemNodes[0].active = !0, this._itemNodes[0].getComponent(l.ItemComponent).Init(this._heroModel, l.ItemComponentType.HeroInfo), this._artifactId > 0) {
                        this._itemNodes[1] || (e = cc.instantiate(this._itemPrefab), this._itemNodes[1] = e);
                        var t = c.default.GetArtifactItemId(this._artifactId);
                        this._itemNodes[1].name = this._heroModel.Sid.toString(), this._itemNodes[1].parent = this.ArtifactNode, this._itemNodes[1].active = !0, this._itemNodes[1].getComponent(l.ItemComponent).Init({
                            ItemId: t
                        })
                    }
                }, t.prototype.SetSelectNode = function(e) {
                    this.SelectNode.active = e
                }, t.prototype.OnClickHero = function(e, t) {
                    -1 == this.HeroNode.children.indexOf(t) && -1 == this.ArtifactNode.children.indexOf(t) || a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_ARTIFACT_HERO_REFRESH, this._heroModel.Sid)
                }, i([d(cc.Node)], t.prototype, "HeroNode", void 0), i([d(cc.Node)], t.prototype, "ArtifactNode", void 0), i([d(cc.Node)], t.prototype, "SelectNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/ItemComponent": "ItemComponent",
        "./ArtifactHeroSelectPanel": "ArtifactHeroSelectPanel"
    }],
    ArtifactHeroSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "140cfEEzRlPnI4eWRGW7Xt+", "ArtifactHeroSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/HeroElementGroup"),
            f = e("../Components/CustomLayout"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("./ArtifactHeroSelectComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/GameModuleGuideManager"),
            C = e("./ArtifactListComponent"),
            v = e("./ArtifactPanel"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Title = null, t.CustomLayout = null, t.HeroElementGroup = null, t.SureButton = null, t.SureLabel = null, t.NoHeroLabel = null, t._currentElement = 0, t._initLayout = !0, t._heroSid = -1, t._moduleGuideGroupIds = [10029], t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.On(g.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.On(g.EventKeys.EVENT_ARTIFACT_HERO_REFRESH, this.OnHeroSelectRefresh, this), p.Game.EventDispatcher.On(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuide, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.Off(g.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.Off(g.EventKeys.EVENT_ARTIFACT_HERO_REFRESH, this.OnHeroSelectRefresh, this), p.Game.EventDispatcher.Off(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuide, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ArtifactPanel/Components/ArtifactHeroSelectComponent", cc.Prefab), n = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._cellPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "artifact_select_hero".ToUILocale(), this.SureLabel.string = "ok".ToUILocale(), this.NoHeroLabel.string = "artifact_no_herosCondition".ToUILocale(), this.SureButton.node.on("click", this.ClickSureButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._config = t[0], this._slotIndex = t[1], this.HeroElementGroup.SetElementModeByIndex(y.HeroElementType.All)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent(), t || this.ShowGameGuide()
                }, t.prototype.SetUIContent = function() {
                    this.SetHeroDatas(), this.SetHeroList()
                }, t.prototype.SetHeroDatas = function() {
                    var e = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroPutOnArtefactStar"),
                        t = u.DataCenter.Instance.GetDataList(c.UserHero_Model);
                    this._heroDatas = [];
                    for (var n = 0, o = t; n < o.length; n++) {
                        var r = o[n],
                            i = u.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, r.HeroId);
                        r.StarLevel >= e && (this._currentElement == i.ElementType || this._currentElement == y.HeroElementType.All) && this._heroDatas.push(r)
                    }
                    this._heroDatas.sort(function(e, t) {
                        return t.Power - e.Power
                    })
                }, t.prototype.SetHeroList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._cellPrefab), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._heroDatas.length), this.NoHeroLabel.node.active = 0 == this._heroDatas.length
                }, t.prototype.GetHeroWearArtifactId = function(e) {
                    for (var t = 0, n = u.DataCenter.Instance.GetDataList(c.Artefact_Model), o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (r.Owners.includes(e.Sid)) {
                            t = r.Sid;
                            break
                        }
                    }
                    return t
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.name = n._heroDatas[t].Sid.toString();
                        var o = n.GetHeroWearArtifactId(n._heroDatas[t]),
                            r = e.getComponent(m.default);
                        r.Init(n._heroDatas[t], o, n._itemPrefab), r.SetSelectNode(n._heroDatas[t].Sid == n._heroSid)
                    })
                }, t.GetArtifactItemId = function(e) {
                    var t = this;
                    return this.ItemArtifactId || (this.ItemArtifactId = {}, u.ConfigDataComponent.Instance.GetArrayConfig(l.ItemArtefactCard_Config).forEach(function(e) {
                        t.ItemArtifactId[e.ArtefactId] = e.Id
                    })), this.ItemArtifactId[e]
                }, t.prototype.OnSwitchHeroElement = function(e, t) {
                    t == this.HeroElementGroup.node && this._currentElement != e && (this._currentElement = e, this.SetHeroDatas(), this.SetHeroList())
                }, t.prototype.OnHeroSelectRefresh = function(e) {
                    var t = this;
                    this._heroSid != e && (this.CustomLayout.node.children.forEach(function(n) {
                        Number(n.name) == e ? n.getComponent(m.default).SetSelectNode(!0) : Number(n.name) == t._heroSid && n.getComponent(m.default).SetSelectNode(!1)
                    }), this._heroSid = e)
                }, t.prototype.ClickSureButton = function() {
                    if (this._heroSid <= 0) I.UIUtlity.ShowFloatingHint("artifact_please_select_hero".ToUILocale());
                    else {
                        var e = u.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid),
                            t = this.GetHeroWearArtifactId(e);
                        if (t > 0) p.UIManager.Instance.QuitPanelStack(this), p.UIManager.Instance.ShowUIPanel(d.PanelConfig.ArtifactChangePanel.Path, e, t, this._config.Id, this._slotIndex);
                        else {
                            var n = new c.Req_Team2_ArtefactPutOn;
                            n.Sid = this._config.Id, n.Slot = this._slotIndex, n.Owner = e.Sid, u.RpcComponent.Instance.Call(n, function() {
                                I.UIUtlity.ShowFloatingHint("artifact_wear_success".ToUILocale()), p.UIManager.Instance.BackUIPanel()
                            })
                        }
                    }
                }, t.prototype.ShowGameGuide = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = _.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = u.ConfigDataComponent.Instance.GetConfigById(l.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n && v.default.CheckHasTenStarHero() && !C.default.CheckArtifactHasWear())
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 77:
                                            if (!this.CustomLayout.node.children[0]) return;
                                            var i = this.CustomLayout.node.children[0].getComponent(m.default);
                                            if (!i.HeroNode.children[0]) return;
                                            _.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, i.HeroNode.children[0]);
                                            break;
                                        case 78:
                                            _.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.SureButton.node);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(f.default)], t.prototype, "CustomLayout", void 0), i([w(h.default)], t.prototype, "HeroElementGroup", void 0), i([w(cc.Button)], t.prototype, "SureButton", void 0), i([w(cc.Label)], t.prototype, "SureLabel", void 0), i([w(cc.Label)], t.prototype, "NoHeroLabel", void 0), i([S], t)
            }(p.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "./ArtifactHeroSelectComponent": "ArtifactHeroSelectComponent",
        "./ArtifactListComponent": "ArtifactListComponent",
        "./ArtifactPanel": "ArtifactPanel"
    }],
    ArtifactListComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d94e4NOm7NCCr/pCZebIrsR", "ArtifactListComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/HeroElementGroup"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("./ArtifactListItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("./ArtifactDetailInfoComponent"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/GameModuleGuideManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.RuleButton = null, t.ScrollView = null, t.CustomLayout = null, t.ResonaceButton = null, t.ResonaceLabel = null, t.PreviewButton = null, t.PreviewLabel = null, t.HeroElementGroup = null, t._isInit = !1, t._initLayout = !0, t._assets = [], t._loadSpriteCount = 0, t._moduleGuideGroupIds = [10028, 10029], t._guideStepIndex = 0, t._guideGroupId = 0, t._guideParam = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_ARTIFACT_LIST_REFRESH, this.RefreshList, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_ARTIFACT_LIST_REFRESH, this.RefreshList, this), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Init = function() {
                    this.InitButtons(), this._sortConfigs = n.GetArtifactDatas(), this._guideNodeName = void 0, this.SetArtifactList(), this.SetRedDot(), this.ShowGameGuid()
                }, t.prototype.RefreshList = function() {
                    this._sortConfigs = n.GetArtifactDatas(), this.SetArtifactList(), this.SetRedDot()
                }, t.prototype.InitButtons = function() {
                    this._isInit || (this.Title.string = "artifact_rule_title".ToUILocale(), this.ResonaceLabel.string = "artifact_resonance".ToUILocale(), this.PreviewLabel.string = "artifact_preview".ToUILocale(), this.ResonaceButton.node.on("click", this.ClickResonaceButton, this), this.PreviewButton.node.on("click", this.ClickPreviewButton, this), this.RuleButton.node.on("click", this.ClickRuleButton, this), this._loadSpriteCount = 0, this.HeroElementGroup.SetElementModeByIndex(y.HeroElementType.All), this._isInit = !0)
                }, t.GetArtifactDatas = function() {
                    var e = [];
                    return u.ConfigDataComponent.Instance.GetArrayConfig(l.Artefact_Config).forEach(function(t) {
                        n.CurrentElement != y.HeroElementType.All && n.CurrentElement != t.Element || e.push(t)
                    }), e.sort(function(e, t) {
                        var n = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e.Id),
                            o = u.DataCenter.Instance.GetDataById(c.Artefact_Model, t.Id);
                        if (n && !o) return -1;
                        if (o && !n) return 1;
                        if (n && o) {
                            var r = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, n.Star),
                                i = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, o.Star);
                            return r.Quality != i.Quality ? i.Quality - r.Quality : t.Star - e.Star
                        }
                        if (!n && !o) {
                            r = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, e.Star), i = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, t.Star);
                            var a = u.DataCenter.Instance.GetItemCount(e.PieceId),
                                s = u.DataCenter.Instance.GetItemCount(t.PieceId),
                                p = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, e.Star);
                            if (r.NextId > 0) {
                                var d = p.Quality;
                                u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, r.NextId).Materials[d - 1]
                            }
                            var h = 0,
                                f = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, t.Star);
                            return r.NextId > 0 ? (d = f.Quality, h = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, i.NextId).Materials[d - 1]) : h = -1, a >= h && s < h ? -1 : a < h && s >= h ? 1 : r.Quality != i.Quality ? i.Quality - r.Quality : t.Star - e.Star
                        }
                    }), e
                }, t.prototype.SetArtifactList = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._listItemPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ArtifactPanel/Components/ArtifactListItemComponent", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._assets.push(e), this._listItemPrefab = e, t.label = 2;
                                case 2:
                                    return this._initLayout && (this.CustomLayout.Init(this._listItemPrefab), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._sortConfigs.length), [2]
                            }
                        })
                    })
                }, t.prototype.SetRedDot = function() {
                    C.RedDotManager.Instance.Bind(this.ResonaceButton.node, C.RedDotManager.Instance.RedDot.StarArtifactResonanceNode)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.name = n._sortConfigs[t].Id.toString(), e.getComponent(g.default).Init(n._sortConfigs[t], n._sortConfigs), n._guideNodeName && e.name === n._guideNodeName ? !v.default.Instance.HideFinger(e, !1) && n._guideParam && n._guideParam.length >= 2 && v.default.Instance.DoGuideJob(n._guideParam[0], n._guideParam[1], e) : v.default.Instance.HideFinger(e, !0)
                    })
                }, t.prototype.OnSwitchHeroElement = function(e, t) {
                    t == this.HeroElementGroup.node && n.CurrentElement != e && (n.CurrentElement = e, this._sortConfigs = n.GetArtifactDatas(), this.SetArtifactList())
                }, t.prototype.ClickPreviewButton = function() {
                    var e = [],
                        t = {};
                    t.Title = "artifact_total_attr".ToUILocale(), t.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale();
                    var n = [];
                    this._sortConfigs.forEach(function(e) {
                        var t = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e.Id);
                        if (t) {
                            var o = _.default.GetAttrDatas(t, e),
                                r = function(e) {
                                    var t = n.findIndex(function(t) {
                                        return t.attrId == Number(e)
                                    }); - 1 == t ? n.push({
                                        attrId: Number(e),
                                        attrvalue: o[e]
                                    }) : n[t].attrvalue += o[e]
                                };
                            for (var i in o) r(i)
                        }
                    }), t.AttrArray = n, e.push(t), p.UIManager.Instance.ShowUIPanel(I.PanelConfig.CommonTotalAttrPanel.Path, e)
                }, t.prototype.ClickResonaceButton = function() {
                    p.UIManager.Instance.ShowUIPanel(I.PanelConfig.ArtifactResonancePanel.Path)
                }, t.prototype.ClickRuleButton = function() {
                    var e = {
                        name: "artifact_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["artifact_rule_content".ToUILocale()]
                    };
                    m.UIUtlity.ShowRulePanel(e)
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = v.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = u.ConfigDataComponent.Instance.GetConfigById(l.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (this._guideNodeName = void 0, this._guideParam = [], n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 73:
                                        case 74:
                                            v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 75:
                                            if (this.SetGuideNode(), this._guideNodeName) {
                                                this._guideParam = [this._guideGroupId, this._guideStepIndex];
                                                for (var i = 0; i < this.CustomLayout.node.children.length; i++) {
                                                    var a = this.CustomLayout.node.children[i];
                                                    a.name == this._guideNodeName && v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, a)
                                                }
                                            }
                                            break;
                                        case 111:
                                            v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.CustomLayout.node.children[0].getComponent(g.default).ActiveButton.node), this._guideGroupId = 10045;
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, t.CheckArtifactHasWear = function() {
                    for (var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.Artefact_Config), t = 0; t < e.length; t++) {
                        var n = e[t],
                            o = u.DataCenter.Instance.GetDataById(c.Artefact_Model, n.Id);
                        if (o && o.Owners && o.Owners.length > 0)
                            for (var r = 0; r < o.Owners.length; r++)
                                if (o.Owners[r]) return !0
                    }
                    return !1
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    }), this._listItemPrefab = null
                }, t.prototype.SetGuideNode = function() {
                    if (this._sortConfigs && this._sortConfigs.length > 0) return u.DataCenter.Instance.GetDataById(c.Artefact_Model, this._sortConfigs[0].Id) ? void(this._guideNodeName = this._sortConfigs[0].Id.toString()) : void(this._guideNodeName = void 0);
                    this._guideNodeName = void 0
                }, t.CurrentElement = 0, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([w(d.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Button)], t.prototype, "ResonaceButton", void 0), i([w(cc.Label)], t.prototype, "ResonaceLabel", void 0), i([w(cc.Button)], t.prototype, "PreviewButton", void 0), i([w(cc.Label)], t.prototype, "PreviewLabel", void 0), i([w(f.default)], t.prototype, "HeroElementGroup", void 0), n = i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "./ArtifactDetailInfoComponent": "ArtifactDetailInfoComponent",
        "./ArtifactListItemComponent": "ArtifactListItemComponent"
    }],
    ArtifactListItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "35233IQEVNI0rum3eLOGDpC", "ArtifactListItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/LevelComponent"),
            y = e("./ArtifactSuccessTipPanel"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../Components/CustomProgressBar"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Element = null, t.Artifact = null, t.LevelNode = null, t.StageLabel = null, t.ProgressBar = null, t.ProgressBarLabel = null, t.Name = null, t.ActiveButton = null, t.ActiveLabel = null, t.ArtifactAtlas = null, t.RedDotNode = null, t.MaskSprite = null, t._isUnlock = !1, t._assets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._rareLabels = ["artifact_rare".ToUILocale()], this.ActiveLabel.string = "ChaosTemple_Active".ToUILocale(), this.ActiveButton.node.on("click", this.ClickActiveButton, this), this.node.on("click", this.ClickSelf, this)
                }, t.prototype.Init = function(e, t) {
                    this._config = e, this._sortConfigs = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, this._config.Id), this.SetBg(), this.SetElement(), this.SetArtifact(), this.SetInfo(), this.SetRedDot()
                }, t.prototype.SetBg = function() {
                    this._isUnlock = !1;
                    var e = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._config.Star).Quality;
                    this._model && (this._isUnlock = !0, e = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._model.Star).Quality), this.Bg.spriteFrame = this.ArtifactAtlas.getSpriteFrame("bg" + e), this.MaskSprite.spriteFrame = this.ArtifactAtlas.getSpriteFrame("bg" + e)
                }, t.prototype.SetElement = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.Element.spriteFrame = d.UIUtlity.GetHeroElementIcon(this._config.Element), [2]
                        })
                    })
                }, t.prototype.SetArtifact = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemAtrifactConfigs || (this._itemAtrifactConfigs = {}, u.ConfigDataComponent.Instance.GetArrayConfig(l.ItemArtefactCard_Config).forEach(function(e) {
                                        n._itemAtrifactConfigs[e.ArtefactId] = e
                                    })), this._itemAtrifactConfigs[this._config.Id].Id, this._artifactSprite && (p.AssetsManager.Instance.UnloadAsset(this._artifactSprite), this._artifactSprite = null), e = "ArtifactPanel/ArtifactIcon/" + this._itemAtrifactConfigs[this._config.Id].ArtefactId, [4, p.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = o.sent(), this.isValid ? (this._artifactSprite = t, this.Artifact.spriteFrame = this._artifactSprite, [2]) : (p.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, d, y, g;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = 0, this._isUnlock && (t = this._config.ArtefactForge.indexOf(this._model.ArtefactForge), e = t + 1), this.StageLabel.string = "artifact_stage".ToUILocale().Fmt(e), this.Name.string = this._config.Id.ToArtifactName(), this._isUnlock ? (y = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._model.Star), o = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._config.Star), y.NextId > 0 ? (r = o.Quality, i = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, y.NextId), n = i.Materials[r - 1]) : n = -1) : (y = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._config.Star), n = y.Materials[y.Quality - 1]), a = u.DataCenter.Instance.GetItemCount(this._config.PieceId), this.ProgressBar.progress = n > 0 ? a / n : 1, this.ProgressBarLabel.string = n >= 0 ? a + "/" + n : "max", this.ActiveButton.node.active = !this._isUnlock && a >= n, this.MaskSprite.node.parent.active = !this._isUnlock && a < n, this._levelPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(h.BundlePath.LevelComponent, cc.Prefab)];
                                case 1:
                                    if (c = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(c), [2];
                                    this._assets.push(c), this._levelPrefab = c, s.label = 2;
                                case 2:
                                    return this._levelNode || (this._levelNode = cc.instantiate(this._levelPrefab), this._levelNode.parent = this.LevelNode), d = 0, this._isUnlock && (y = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._model.Star), d = y.Star), (g = this._levelNode.getComponent(f.LevelComponent)).SetStarSize(46, 44), g.Init(d), 0 == d && g.SetZeroNode(), [2]
                            }
                        })
                    })
                }, t.prototype.SetRedDot = function() {
                    this.RedDotNode.active = m.RedDotManager.DataHandler.RefreshArtifactNode({
                        Value1: this._config.Id
                    })
                }, t.prototype.ClickActiveButton = function() {
                    var e = this;
                    if (this._model) d.UIUtlity.ShowFloatingHint("artifact_has_active".ToUILocale());
                    else {
                        var t = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._config.Star),
                            n = t.Materials[t.Quality - 1];
                        if (u.DataCenter.Instance.GetItemCount(this._config.PieceId) < n) d.UIUtlity.ShowFloatingHint("artifact_piece_not_enough".ToUILocale());
                        else {
                            var o = new c.Req_Team2_ArtefactUpgradeStar;
                            o.Sid = this._config.Id, o.NewStar = this._config.Star, o.NewNodeLevel = 0, u.RpcComponent.Instance.Call(o, function() {
                                var n = {},
                                    o = [];
                                t.Attrs.forEach(function(t) {
                                    if (e._config.AttrIds[t.Items[0]] >= 0) {
                                        var n = {};
                                        n.AttrId = e._config.AttrIds[t.Items[0]], n.AttrValue = t.Items[1], o.push(n)
                                    }
                                }), n.CurAttrDatas = o, p.UIManager.Instance.ShowUIPanel(h.PanelConfig.ArtifactSuccessTipPanel.Path, e._config.Id, y.ArtifactSuccessTipType.Active, n), p.Game.EventDispatcher.Emit(g.EventKeys.EVENT_ARTIFACT_LIST_REFRESH)
                            })
                        }
                    }
                }, t.prototype.ClickSelf = function() {
                    var e = this,
                        t = [];
                    this._sortConfigs.forEach(function(n) {
                        var o = !1;
                        u.DataCenter.Instance.GetDataById(c.Artefact_Model, n.Id) && (o = !0), o == e._isUnlock && t.push(n.Id)
                    }), p.UIManager.Instance.ShowUIPanel(h.PanelConfig.ArtifactPanel.Path, t, this._config.Id)
                }, t.GetArtifactState = function(e) {
                    var t, n = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e);
                    if (n) {
                        var o = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, n.Star);
                        t = o.NextId > 0 ? 1 == o.Type ? 2 : 3 : 2
                    } else t = 1;
                    return t
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        e && p.AssetsManager.Instance.UnloadAsset(e)
                    }), p.AssetsManager.Instance.UnloadAsset(this._artifactSprite), this._artifactSprite = null
                }, i([v(cc.Sprite)], t.prototype, "Bg", void 0), i([v(cc.Sprite)], t.prototype, "Element", void 0), i([v(cc.Sprite)], t.prototype, "Artifact", void 0), i([v(cc.Node)], t.prototype, "LevelNode", void 0), i([v(cc.Label)], t.prototype, "StageLabel", void 0), i([v(I.default)], t.prototype, "ProgressBar", void 0), i([v(cc.Label)], t.prototype, "ProgressBarLabel", void 0), i([v(cc.Label)], t.prototype, "Name", void 0), i([v(cc.Button)], t.prototype, "ActiveButton", void 0), i([v(cc.Label)], t.prototype, "ActiveLabel", void 0), i([v(cc.SpriteAtlas)], t.prototype, "ArtifactAtlas", void 0), i([v(cc.Node)], t.prototype, "RedDotNode", void 0), i([v(cc.Sprite)], t.prototype, "MaskSprite", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/LevelComponent": "LevelComponent",
        "./ArtifactSuccessTipPanel": "ArtifactSuccessTipPanel"
    }],
    ArtifactNoticePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3dd1byb+AxIMbFI5yoOs6XA", "ArtifactNoticePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../../../Consts/Etc"),
            u = e("../../Auxiliary/GameRecord"),
            p = e("../../Auxiliary/EventKeys"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Fixed, !1), t.RuleButton = null, t.CloseButton = null, t.TimeRichText = null, t.Toggle = null, t.ToggleLabel = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ToggleLabel.string = "hint_panel_checkToggle_type_2".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.Toggle.node.on("toggle", this.OnToggleClick, this), this.CloseButton.node.on("click", this.OnCloseButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._endTime = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("ArtifactOpenTime")
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetToggle(), this.SetRemainTime()
                }, t.prototype.SetToggle = function() {
                    var e = this.GetShowState();
                    this.Toggle.isChecked = e > 0
                }, t.prototype.SetRemainTime = function() {
                    this.CountDown(), this.schedule(this.CountDown, 1)
                }, t.prototype.CountDown = function() {
                    a.RpcComponent.Instance.ServerTime >= this._endTime && (this.unschedule(this.CountDown), this.Close(), s.Game.EventDispatcher.Emit(p.EventKeys.EVENT_DESTORY_ARTIFACT_NOTICE));
                    var e = this._endTime - a.RpcComponent.Instance.ServerTime;
                    this.TimeRichText.string = this.TimeLeftFormat(e)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "artifact_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["artifact_rule_content".ToUILocale()]
                    };
                    l.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnToggleClick = function(e) {
                    var t = e.isChecked ? 1 : 0;
                    u.default.SetItem(u.GameRecordDefine.ArtifactNotice, t.toString())
                }, t.prototype.GetShowState = function() {
                    var e = u.default.GetItem(u.GameRecordDefine.ArtifactNotice);
                    return e ? Number(e) : 0
                }, t.prototype.OnCloseButtonClick = function() {
                    this.Close()
                }, t.prototype.TimeLeftFormat = function(e) {
                    var t = e,
                        n = 0,
                        o = 0,
                        r = 0,
                        i = 0;
                    return t > c.Etc.DayDuration ? (n = Math.floor(t / c.Etc.DayDuration), o = Math.floor(t % c.Etc.DayDuration / c.Etc.HourDuration), "artifact_time1".ToUILocale().Fmt(n, o)) : (o = Math.floor(t / c.Etc.HourDuration), r = Math.floor(t % c.Etc.HourDuration / c.Etc.MinuteDuration), i = Math.floor(t % c.Etc.MinuteDuration / 1e3), o > 0 ? "artifact_time2".ToUILocale().Fmt(o, r) : "artifact_time3".ToUILocale().Fmt(r, i))
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([f(cc.Button)], t.prototype, "RuleButton", void 0), i([f(cc.Button)], t.prototype, "CloseButton", void 0), i([f(cc.RichText)], t.prototype, "TimeRichText", void 0), i([f(cc.Toggle)], t.prototype, "Toggle", void 0), i([f(cc.Label)], t.prototype, "ToggleLabel", void 0), i([h], t)
            }(s.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    ArtifactPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7dbebeEQQlNm6S3NPBn6bPy", "ArtifactPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ArtifactType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../Components/CustomToggle"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/LevelComponent"),
            m = e("./ArtifactDetailInfoComponent"),
            I = e("./ArtifactForgeInfoComponent"),
            _ = e("./ArtifactUpStarInfoComponent"),
            C = e("./ArtifactForgeComponent"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("./ArtifactListComponent"),
            S = e("./ArtifactListItemComponent"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../../RedDot/RedDotManager"),
            A = e("../Components/GameModuleGuideManager");
        (function(e) {
            e[e.Detail = 0] = "Detail", e[e.Forge = 1] = "Forge", e[e.UpStar = 2] = "UpStar"
        })(l = n.ArtifactType || (n.ArtifactType = {}));
        var T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.AvatarContainer = null, t.AvatarBottomSpine = null, t.AvatarNode = null, t.AvatarTopSpine = null, t.AvatarSpriteNode = null, t.AvatarBottom = null, t.LevelNode = null, t.StageLabel = null, t.Name = null, t.ForgeNodes = [], t.StageButton = null, t.StageButtonLabel = null, t.StarInfoNode = null, t.PhantomNode = null, t.PhantomMaxLevelDesc = null, t.PhantomLightLine = null, t.PhantomPointNodes = [], t.PhantomSelectNode = null, t.PhantomAttrBgNode = null, t.PhantomAttrLabel = null, t.PhantomLevelNode = null, t.PhantomStageLabel = null, t.LeftButton = null, t.RightButton = null, t.Toggles = [], t.ReturnButton = null, t.DetailContent = null, t.ForgeContent = null, t.UpStarContent = null, t.InfoBgNode = null, t.GuideNode = null, t._forgeItemNodes = [], t._selectToggle = -1, t._selectForge = -1, t._phantomSelectIndex = -1, t._moduleGuideGroupIds = [10029, 10030], t._guideStepIndex = 0, t._guideGroupId = 0, t.Ranges = [-.08, -.16, -.24, -.35, -.43, -.54, -.62, -.71, -.78], t.PhantomAttrBgDirection = [0, 1, 1, 0, 0, 1, 1, 0, 0], t._waitLoad = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(v.EventKeys.EVENT_ARTIFACT_FORGE_SELECT, this.OnRefreshForgeSelect, this), c.Game.EventDispatcher.On(v.EventKeys.EVENT_ARTIFACT_PANEL_REFRESH, this.RefreshUIContent, this), c.Game.EventDispatcher.On(v.EventKeys.EVENT_ARTIFACT_REFRESH_SHOW_LIST, this.RefreshDataList, this), c.Game.EventDispatcher.On(v.EventKeys.EVENT_ARTIFACT_REDDOT, this.SetReddot, this), c.Game.EventDispatcher.On(v.EventKeys.EVENT_ARTIFACT_REFRESH_ACTIVE, this.ActiveRefreshDataList, this), c.Game.EventDispatcher.On(v.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuide, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(v.EventKeys.EVENT_ARTIFACT_FORGE_SELECT, this.OnRefreshForgeSelect, this), c.Game.EventDispatcher.Off(v.EventKeys.EVENT_ARTIFACT_PANEL_REFRESH, this.RefreshUIContent, this), c.Game.EventDispatcher.Off(v.EventKeys.EVENT_ARTIFACT_REFRESH_SHOW_LIST, this.RefreshDataList, this), c.Game.EventDispatcher.Off(v.EventKeys.EVENT_ARTIFACT_REDDOT, this.SetReddot, this), c.Game.EventDispatcher.Off(v.EventKeys.EVENT_ARTIFACT_REFRESH_ACTIVE, this.ActiveRefreshDataList, this), c.Game.EventDispatcher.Off(v.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuide, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.LevelComponent, cc.Prefab), n = this.LoadDynamicAsset("ArtifactPanel/Components/ArtifactForgeComponent", cc.Prefab), o = this.LoadDynamicAsset("ArtifactPanel/PNG/Artifact", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._levelPrefab = e[0], r._forgeItemPrefab = e[1], r._atlas = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.StageButtonLabel.string = "artifact_stage_effect".ToUILocale(), this._toggleLabels = ["detail".ToUILocale(), "artifact_forge".ToUILocale(), "angel_toggle_1".ToUILocale()], this.LeftButton.node.on("click", this.ClickLeftButton, this), this.RightButton.node.on("click", this.ClickRightButton, this), this.ReturnButton.node.on("click", this.ClickReturnButton, this), this.RuleButton.node.on("click", this.ClickRuleButton, this), this.StageButton.node.on("click", this.ClickStageButton, this), this.Toggles.forEach(function(e, n) {
                        e.Init(t._toggleLabels[n]), e.node.on("toggle", t.ClickToggle, t)
                    }), this.PhantomPointNodes.forEach(function(e) {
                        e.on("click", t.ClickPhantomPoint, t)
                    })
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this), this._artifacts = t[0], this._curArtifactId = t[1], t[2] >= 0 && (this._selectToggle = t[2]), this._curSelectIdIndex = this._artifacts.indexOf(this._curArtifactId) > -1 ? this._artifacts.indexOf(this._curArtifactId) : 0, this._itemAtrifactConfigs || (this._itemAtrifactConfigs = {}, p.ConfigDataComponent.Instance.GetArrayConfig(d.ItemArtefactCard_Config).forEach(function(e) {
                        n._itemAtrifactConfigs[e.ArtefactId] = e
                    })), this._qualitySpine = {}
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.SetUIContent(), t || this.ShowGameGuide()
                }, t.prototype.SetUIContent = function() {
                    this._config = p.ConfigDataComponent.Instance.GetConfigById(d.Artefact_Config, this._curArtifactId), this._model = p.DataCenter.Instance.GetDataById(h.Artefact_Model, this._curArtifactId), this.SetArtifactState(), this.SetForgeNode(), this.SetPhantomNode(), this.SetToggleLabel(), this.SetArtifactInfo(), this.SetArtifactPhantomInfo(), this.SetArtifact(), this.SetButtons(), this.SetContentNode(), this.SetReddot()
                }, t.prototype.RefreshUIContent = function() {
                    this._config = p.ConfigDataComponent.Instance.GetConfigById(d.Artefact_Config, this._curArtifactId), this._model = p.DataCenter.Instance.GetDataById(h.Artefact_Model, this._curArtifactId), this.SetArtifactState(), this.SetForgeNode(), this.SetPhantomNode(), this.SetToggleLabel(), this.SetArtifactInfo(), this.SetArtifactPhantomInfo(), this.SetButtons(), this.SetContentNode(), this.SetReddot()
                }, t.prototype.RefreshDataList = function() {
                    this.UpdateArtifactIds(), this.SetArtifactState(), this.SetForgeNode(), this.SetPhantomNode(), this.SetToggleLabel(), this.SetArtifactInfo(), this.SetArtifactPhantomInfo(), this.SetButtons(), this.SetContentNode(), this.SetReddot()
                }, t.prototype.ActiveRefreshDataList = function() {
                    this.RefreshDataList(), this.SetArtifact()
                }, t.prototype.SetReddot = function() {
                    this.BindDetailToggle(), this.BindForgeToggle(), this.BindUpStarToggle()
                }, t.prototype.BindDetailToggle = function() {
                    var e = this.Toggles[l.Detail].node;
                    P.RedDotManager.Instance.BindInstance(e, P.RedDotManager.Instance.InstanceRedDot.ArtifactDetailToggle, {
                        Value1: this._curArtifactId
                    })
                }, t.prototype.BindForgeToggle = function() {
                    var e = this.Toggles[l.Forge].node;
                    P.RedDotManager.Instance.BindInstance(e, P.RedDotManager.Instance.InstanceRedDot.ArtifactForgeToggle, {
                        Value1: this._curArtifactId
                    })
                }, t.prototype.BindUpStarToggle = function() {
                    var e = this.Toggles[l.UpStar].node;
                    P.RedDotManager.Instance.BindInstance(e, P.RedDotManager.Instance.InstanceRedDot.ArtifactUpStarToggle, {
                        Value1: this._curArtifactId
                    })
                }, t.prototype.UpdateArtifactIds = function() {
                    var e = this;
                    this._model = p.DataCenter.Instance.GetDataById(h.Artefact_Model, this._curArtifactId), this._artifacts = [];
                    var t = S.default.GetArtifactState(this._curArtifactId);
                    b.default.GetArtifactDatas().forEach(function(n) {
                        var o = S.default.GetArtifactState(n.Id);
                        switch (e._selectToggle) {
                            case 0:
                            case 1:
                                1 == t && 1 == o ? e._artifacts.push(n.Id) : 1 != t && 1 != o && e._artifacts.push(n.Id);
                                break;
                            case 2:
                                t == o && 1 != t && e._artifacts.push(n.Id)
                        }
                    }), this._curSelectIdIndex = this._artifacts.indexOf(this._config.Id)
                }, t.prototype.SetArtifactState = function() {
                    this._model ? this._isUnlock = !0 : this._isUnlock = !1, -1 == this._selectToggle && (this._selectToggle = this._isUnlock ? l.Detail : l.UpStar), this.Toggles[this._selectToggle].isChecked = !0
                }, t.prototype.SetForgeNode = function() {
                    var e = this;
                    this.ForgeNodes.forEach(function(t, n) {
                        if (t.active = e._selectToggle == l.Forge && e._isUnlock, e._selectToggle == l.Forge && e._isUnlock) {
                            if (!e._forgeItemNodes[n]) {
                                var o = cc.instantiate(e._forgeItemPrefab);
                                o.parent = t, e._forgeItemNodes[n] = o
                            }
                            e._forgeItemNodes[n].getComponent(C.default).Init(n, e._curArtifactId)
                        }
                    }), this.SetForgeItemSelect()
                }, t.prototype.SetForgeItemSelect = function() {
                    var e = this;
                    this._selectToggle == l.Forge && this._isUnlock && (-1 == this._selectForge ? this._selectForge = this.GetForgeIndex() : n.GetRemainItemCount(this._selectForge, this._config.Id)[1] <= 0 && (this._selectForge = this.GetForgeIndex()), this._forgeItemNodes.forEach(function(t, n) {
                        t.getComponent(C.default).SetSelectState(n == e._selectForge)
                    }))
                }, t.prototype.SetPhantomNode = function() {
                    var e = this;
                    if (this.PhantomNode.active = !1, this.StageButton.node.active = !1, this._selectToggle == l.UpStar && this._isUnlock) {
                        var t = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, this._model.Star);
                        2 == t.Type && t.NextId > 0 && (this.PhantomNode.active = !0, this.StageButton.node.active = !0, this.PhantomLightLine.fillRange = this._model.NodeLevel > 0 ? this.Ranges[this._model.NodeLevel - 1] : 0, this.PhantomPointNodes.forEach(function(n, o) {
                            o == t.NodeMaterials.length - 1 ? n.getComponent(cc.Sprite).spriteFrame = o < e._model.NodeLevel ? e._atlas.getSpriteFrame("light2") : e._atlas.getSpriteFrame("lightBg2") : n.getComponent(cc.Sprite).spriteFrame = o < e._model.NodeLevel ? e._atlas.getSpriteFrame("light1") : e._atlas.getSpriteFrame("lightBg1")
                        }), this._phantomSelectIndex = this._model.NodeLevel, this.SetPhantomSelect())
                    }
                }, t.prototype.SetPhantomSelect = function() {
                    var e = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, this._model.Star);
                    if (this.PhantomSelectNode.active = this._phantomSelectIndex >= 0, this.PhantomAttrBgNode.active = this._phantomSelectIndex >= 0 && this._phantomSelectIndex != e.NodeMaterials.length - 1, this.PhantomMaxLevelDesc.node.active = !0, this.PhantomMaxLevelDesc.string = e.Id.ToArtifactPhantomDesc(), this._phantomSelectIndex >= 0) {
                        var t = this.PhantomPointNodes[this._phantomSelectIndex].position;
                        if (this.PhantomSelectNode.setPosition(t.x, t.y - 41), this._phantomSelectIndex < e.NodeMaterials.length - 1) {
                            var n = 0 == this.PhantomAttrBgDirection[this._phantomSelectIndex] ? t.x - 156 : t.x + 156;
                            this.PhantomAttrBgNode.setPosition(n, t.y - 41);
                            var o = e.NodeAttrs[this._phantomSelectIndex].Items[0],
                                r = e.NodeAttrs[this._phantomSelectIndex].Items[1],
                                i = w.default.GetHeroAttribute(o, r);
                            this.PhantomAttrLabel.string = "{0}+{1}".Fmt("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + i.Name, i.Value)
                        }
                    }
                }, t.GetRemainItemCount = function(e, t) {
                    var n, o, r = p.ConfigDataComponent.Instance.GetConfigById(d.Artefact_Config, t),
                        i = p.DataCenter.Instance.GetDataById(h.Artefact_Model, t);
                    if (o = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactForge_Config, r.ArtefactForge[0]).ForgeAttrs[e].Items[1], i.ArtefactForge == r.ArtefactForge[r.ArtefactForge.length - 1]) n = 0;
                    else {
                        n = 0;
                        for (var a = r.ArtefactForge.indexOf(i.ArtefactForge) + 1; a < r.ArtefactForge.length; a++) {
                            var s = r.ArtefactForge[a];
                            n += p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactForge_Config, s).ForgeAttrs[e].Items[0]
                        }
                        n -= i.ForgeProgress[e] || 0
                    }
                    return [o, n]
                }, t.prototype.GetForgeIndex = function() {
                    var e = -1;
                    if (this._model.ArtefactForge == this._config.ArtefactForge[this._config.ArtefactForge.length - 1]) e = -1;
                    else
                        for (var t = 0; t < 3; t++)
                            if (!(n.GetRemainItemCount(t, this._config.Id)[1] <= 0)) {
                                var o = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactForge_Config, this._config.ArtefactForge[0]).ForgeAttrs[t].Items[1];
                                if (p.DataCenter.Instance.IsItemEnough(o, 1)) {
                                    e = t;
                                    break
                                }
                            } return e
                }, t.prototype.SetToggleLabel = function() {
                    var e = this,
                        t = "angel_toggle_1".ToUILocale();
                    this.Toggles.forEach(function(n, o) {
                        if (o == l.UpStar) {
                            if (e._isUnlock) {
                                var r = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, e._model.Star);
                                r && 2 == r.Type && e._model.NodeLevel < r.NodeAttrs.length && r.NextId > 0 && (t = "artifact_phantom".ToUILocale())
                            }
                            n.Init(t)
                        } else n.SetInteractable(e._isUnlock, "artifact_not_unlock".ToUILocale())
                    })
                }, t.prototype.SetArtifactInfo = function() {
                    var e = 0;
                    this._isUnlock && (e = this._config.ArtefactForge.indexOf(this._model.ArtefactForge) + 1), this.StageLabel.string = "artifact_stage".ToUILocale().Fmt(e), this.Name.string = this._config.Id.ToArtifactName(), this._levelNode || (this._levelNode = cc.instantiate(this._levelPrefab), this._levelNode.parent = this.LevelNode);
                    var t = 0;
                    this._isUnlock && (t = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, this._model.Star).Star);
                    var n = this._levelNode.getComponent(g.LevelComponent);
                    n.SetStarSize(46, 44), n.Init(t), 0 == t && n.SetZeroNode()
                }, t.prototype.SetArtifactPhantomInfo = function() {
                    var e = 0;
                    this._isUnlock && (e = this._config.ArtefactForge.indexOf(this._model.ArtefactForge) + 1), this.PhantomStageLabel.string = "artifact_stage".ToUILocale().Fmt(e), this._phantomLevelNode || (this._phantomLevelNode = cc.instantiate(this._levelPrefab), this._phantomLevelNode.parent = this.PhantomLevelNode);
                    var t = 0;
                    this._isUnlock && (t = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, this._model.Star).Star);
                    var n = this._phantomLevelNode.getComponent(g.LevelComponent);
                    n.SetStarSize(46, 44), n.Init(t), 0 == t && n.SetZeroNode()
                }, t.prototype.SetArtifact = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this.AvatarBottomSpine.node.active = !1, this.AvatarTopSpine.node.active = !1, this._config.Model ? (this.AvatarNode.destroyAllChildren(), this.AvatarNode.active = !1, this.ClaerAvatarPrefab(), this.AvatarNode.active = !0, n = this._curArtifactId, [4, c.AssetsManager.Instance.LoadAsset(this._config.Model + "/Avatar")]) : [3, 8];
                                case 1:
                                    return e = a.sent(), this.isValid ? n != this._curArtifactId ? [3, 6] : (this._currentAvatarPrefab = e, (t = cc.instantiate(e)).setParent(this.AvatarNode), t.opacity = 0, this._isUnlock ? [3, 3] : (t.getComponent(sp.Skeleton).clearTracks(), [4, y.UIUtlity.OnSpineGray(this.AvatarNode)])) : (c.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    return a.sent(), t.opacity = 255, [3, 5];
                                case 3:
                                    return t.getComponent(sp.Skeleton).clearTracks(), t.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), [4, y.UIUtlity.OffSpineGray(this.AvatarNode)];
                                case 4:
                                    a.sent(), t.opacity = 255, a.label = 5;
                                case 5:
                                    return this._avatarAlphaTween && this._avatarAlphaTween.stop(), this._isReDisplay || (t.opacity = 20, this._avatarAlphaTween = cc.tween(t).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start()), this._isReDisplay = !1, [3, 7];
                                case 6:
                                    c.AssetsManager.Instance.UnloadAsset(e), a.label = 7;
                                case 7:
                                    return [3, 10];
                                case 8:
                                    return this.AvatarSpriteNode.destroyAllChildren(), this.AvatarSpriteNode.active = !1, this.ClaerAvatarSprite(), this.AvatarSpriteNode.active = !0, n = this._curArtifactId, [4, c.AssetsManager.Instance.LoadAsset("ArtifactPanel/ArtifactIcon/" + n, cc.SpriteFrame)];
                                case 9:
                                    if (o = a.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(o), [2];
                                    n == this._curArtifactId ? (this._currentAvatarSprite = o, r = new cc.Node, (i = r.addComponent(cc.Sprite)).spriteFrame = o, r.setParent(this.AvatarSpriteNode), r.opacity = 255, this._avatarSpriteTween && this._avatarSpriteTween.stop(), this._isUnlock ? (y.UIUtlity.OffSpriteGray(i), this._avatarSpriteTween = cc.tween(r).repeatForever(cc.tween(r).to(1, {
                                        y: 40
                                    }, {
                                        easing: "easeInOutSine"
                                    }).to(1, {
                                        y: 0
                                    }, {
                                        easing: "easeInOutSine"
                                    })).start()) : y.UIUtlity.OnSpriteGray(i)) : c.AssetsManager.Instance.UnloadAsset(o), a.label = 10;
                                case 10:
                                    return this.SetCommonSpine(), [2]
                            }
                        })
                    })
                }, t.prototype.SetCommonSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    switch (e = p.DataCenter.Instance.GetDataById(h.Artefact_Model, this._curArtifactId), (e ? p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, e.Star) : p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, this._config.Star)).Quality) {
                                        case 5:
                                            return [3, 1];
                                        case 6:
                                            return [3, 4]
                                    }
                                    return [3, 7];
                                case 1:
                                    return this._qualitySpine[5] ? [3, 3] : (this._qualitySpine[5] = [], [4, this.LoadDynamicAsset("ArtifactPanel/Spine/UI_Effect_shenqi_cheng", sp.SkeletonData)]);
                                case 2:
                                    if (t = a.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._qualitySpine[5][0] = t, a.label = 3;
                                case 3:
                                    return this.AvatarBottomSpine.skeletonData = this._qualitySpine[5][0], this.AvatarBottomSpine.node.active = !0, this.AvatarBottomSpine.setAnimation(0, "UI_Effect_shenqi_cheng", !0), [3, 8];
                                case 4:
                                    return this._qualitySpine[6] ? [3, 6] : (this._qualitySpine[6] = [], n = ["ArtifactPanel/Spine/UI_Effect_shenqi_hong_2", "ArtifactPanel/Spine/UI_Effect_shenqi_hong"], o = this.LoadDynamicAsset(n[0], sp.SkeletonData), r = this.LoadDynamicAsset(n[1], sp.SkeletonData), [4, Promise.all([o, r]).then(function(e) {
                                        if (!i.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                        i._qualitySpine[6][0] = e[0], i._qualitySpine[6][1] = e[1]
                                    })]);
                                case 5:
                                    a.sent(), a.label = 6;
                                case 6:
                                    return this.AvatarBottomSpine.skeletonData = this._qualitySpine[6][0], this.AvatarBottomSpine.node.active = !0, this.AvatarBottomSpine.setAnimation(0, "Ani_UI_Effect_shenqi_hong_2", !0), this.AvatarTopSpine.skeletonData = this._qualitySpine[6][1], this.AvatarTopSpine.node.active = !0, this.AvatarTopSpine.setAnimation(0, "Ani_UI_Effect_shenqi_hong", !0), [3, 8];
                                case 7:
                                    return [3, 8];
                                case 8:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetButtons = function() {
                    this.LeftButton.node.active = this._curSelectIdIndex > 0, this.RightButton.node.active = this._curSelectIdIndex < this._artifacts.length - 1
                }, t.prototype.SetContentNode = function() {
                    switch (this.DetailContent.active = !1, this.ForgeContent.active = !1, this.UpStarContent.active = !1, this.StarInfoNode.active = !0, this.AvatarBottom.scale = this._selectToggle == l.Detail ? 1 : .85, this.Title.string = this._toggleLabels[this._selectToggle], this._selectToggle) {
                        case l.Detail:
                            this.SetDetailComponent(), this.InfoBgNode.height = 1006, this.LeftButton.node.y = 407, this.RightButton.node.y = 407, this.AvatarContainer.scale = 1, this.AvatarBottom.setPosition(0, 142), this.AvatarContainer.setPosition(0, 405), this.UpdateAllWidgets(this.InfoBgNode);
                            break;
                        case l.Forge:
                            this.SetForgeComponent(), this.InfoBgNode.height = 1107, this.LeftButton.node.y = 485, this.RightButton.node.y = 485, this.AvatarContainer.scale = .85, this.UpdateAllWidgets(this.InfoBgNode), this.AvatarBottom.setPosition(-202, 237), this.AvatarContainer.setPosition(-202, 482);
                            break;
                        case l.UpStar:
                            this.AvatarContainer.scale = .93, this.AvatarBottom.setPosition(0, 246), this.AvatarContainer.setPosition(0, 495), this.SetUpStarComponent(), this.SetUpStarInfoBgHeight(), this.LeftButton.node.y = 407, this.RightButton.node.y = 407, this.UpdateAllWidgets(this.InfoBgNode)
                    }
                }, t.prototype.SetUpStarInfoBgHeight = function() {
                    if (this.InfoBgNode.height = 1107, this._selectToggle == l.UpStar && this._isUnlock) {
                        var e = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, this._model.Star);
                        2 == e.Type && e.NextId > 0 && (this.StarInfoNode.active = !1, this.InfoBgNode.height = 930, this.AvatarBottom.setPosition(0, 127), this.AvatarContainer.setPosition(0, 375), this.Title.string = "artifact_phantom".ToUILocale())
                    }
                }, t.prototype.UpdateAllWidgets = function(e) {
                    (function e(t) {
                        var n = t.getComponent(cc.Widget);
                        n && n.updateAlignment(), t.children.forEach(function(t) {
                            return e(t)
                        })
                    })(e)
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    t != this._selectToggle && (this._selectToggle = t, this.UpdateArtifactIds(), this.SetContentNode(), this.SetForgeNode(), this.SetPhantomNode(), this.SetButtons())
                }, t.prototype.SetDetailComponent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.DetailContent.active = !0, null != this._detailPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("ArtifactPanel/Components/ArtifactDetailInfoComponent", cc.Prefab)]);
                                case 1:
                                    if (e._detailPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._detailPrefab), [2];
                                    (t = cc.instantiate(this._detailPrefab)).setParent(this.DetailContent), this._detailComponent = t.getComponent(m.default), n.label = 2;
                                case 2:
                                    return this.GuideNode.setParent(this._detailComponent.GuideNode), this.GuideNode.width = this._detailComponent.GuideNode.width, this.GuideNode.height = this._detailComponent.GuideNode.height, this.GuideNode.children.length > 0 && this.GuideNode.children[0].isValid && (this.GuideNode.children[0].width = this._detailComponent.GuideNode.width, this.GuideNode.children[0].height = this._detailComponent.GuideNode.height), this._detailComponent.Init(this._curArtifactId, this._config), [2]
                            }
                        })
                    })
                }, t.prototype.SetForgeComponent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.ForgeContent.active = !0, null != this._forgePrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("ArtifactPanel/Components/ArtifactForgeInfoComponent", cc.Prefab)]);
                                case 1:
                                    if (e._forgePrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._forgePrefab), [2];
                                    (t = cc.instantiate(this._forgePrefab)).setParent(this.ForgeContent), this._forgeComponent = t.getComponent(I.default), n.label = 2;
                                case 2:
                                    return this._forgeComponent.SetSelectIndex(this._selectForge), this._forgeComponent.Init(this._curArtifactId, this._config), [2]
                            }
                        })
                    })
                }, t.prototype.SetUpStarComponent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.UpStarContent.active = !0, null != this._upStarPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("ArtifactPanel/Components/ArtifactUpStarInfoComponent", cc.Prefab)]);
                                case 1:
                                    if (e._upStarPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._upStarPrefab), [2];
                                    (t = cc.instantiate(this._upStarPrefab)).setParent(this.UpStarContent), this._upStarComponent = t.getComponent(_.default), n.label = 2;
                                case 2:
                                    return this._upStarComponent.Init(this._curArtifactId, this._config), [2]
                            }
                        })
                    })
                }, t.prototype.ClickRuleButton = function() {
                    var e = {
                        name: "artifact_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["artifact_rule_content".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.prototype.ClickLeftButton = function() {
                    var e = this._curSelectIdIndex - 1;
                    e >= 0 && (this._curSelectIdIndex = e, this._selectForge = -1, this._curArtifactId = this._artifacts[e], this.SetUIContent())
                }, t.prototype.ClickRightButton = function() {
                    var e = this._curSelectIdIndex + 1;
                    e < this._artifacts.length && (this._curSelectIdIndex = e, this._selectForge = -1, this._curArtifactId = this._artifacts[e], this.SetUIContent())
                }, t.prototype.GetStageEffectDatas = function(e) {
                    var t = [],
                        n = 0,
                        o = 0,
                        r = p.DataCenter.Instance.GetDataById(h.Artefact_Model, e),
                        i = p.ConfigDataComponent.Instance.GetConfigById(d.Artefact_Config, e),
                        a = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, i.Star).Id;
                    if (r && (n = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, r.Star).Star, o = r.Star), 0 != a)
                        for (; 0 != a;) {
                            var s = p.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, a);
                            if (2 == s.Type) {
                                var l = {};
                                l.CurStar = n, l.Star = s.Star, l.CurStarId = o, l.StarId = s.Id, l.Type = 1, l.Desc = "<color=#624e3c>{0}</c>".Fmt(s.Id.ToArtifactPhantomDesc()), t.push(l)
                            }
                            a = s.NextId > 0 ? s.NextId : 0
                        }
                    return t
                }, t.prototype.ClickStageButton = function() {
                    var e = this.GetStageEffectDatas(this._curArtifactId);
                    c.UIManager.Instance.ShowUIPanel(u.PanelConfig.ArtifactStageEffectPanel.Path, e)
                }, t.prototype.ClickPhantomPoint = function(e) {
                    var t = Number.parseInt(e.node.name);
                    t != this._phantomSelectIndex && (this._phantomSelectIndex = t), this.SetPhantomSelect()
                }, t.prototype.OnRefreshForgeSelect = function(e) {
                    this._selectForge != e && (this._selectForge = e, this.SetForgeItemSelect(), this._forgeComponent && this._forgeComponent.SetSelectIndex(this._selectForge))
                }, t.prototype.ClickReturnButton = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this.ClaerAvatarPrefab()
                }, t.prototype.ClaerAvatarPrefab = function() {
                    this._currentAvatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
                }, t.prototype.ClaerAvatarSprite = function() {
                    this._currentAvatarSprite && c.AssetsManager.Instance.UnloadAsset(this._currentAvatarSprite), this._currentAvatarSprite = null
                }, t.CheckHasTenStarHero = function() {
                    for (var e = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroPutOnArtefactStar"), t = p.DataCenter.Instance.GetDataList(h.UserHero_Model), n = 0; n < t.length; n++)
                        if (t[n].StarLevel >= e) return !0;
                    return !1
                }, t.prototype.ShowGameGuide = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = A.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var o = p.ConfigDataComponent.Instance.GetConfigById(d.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (o && n.CheckHasTenStarHero() && (!b.default.CheckArtifactHasWear() || 10030 == t) && this._isUnlock)
                                for (var r = 0; r < o.GameModuleGuideStepIds.length; r++) {
                                    var i = !0;
                                    switch (o.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 76:
                                            A.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.GuideNode);
                                            break;
                                        case 79:
                                            A.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        default:
                                            i = !1
                                    }
                                    if (this._guideStepIndex++, i) break
                                }
                        }
                    }
                }, i([L(cc.Label)], t.prototype, "Title", void 0), i([L(cc.Button)], t.prototype, "RuleButton", void 0), i([L(cc.Node)], t.prototype, "AvatarContainer", void 0), i([L(sp.Skeleton)], t.prototype, "AvatarBottomSpine", void 0), i([L(cc.Node)], t.prototype, "AvatarNode", void 0), i([L(sp.Skeleton)], t.prototype, "AvatarTopSpine", void 0), i([L(cc.Node)], t.prototype, "AvatarSpriteNode", void 0), i([L(cc.Node)], t.prototype, "AvatarBottom", void 0), i([L(cc.Node)], t.prototype, "LevelNode", void 0), i([L(cc.Label)], t.prototype, "StageLabel", void 0), i([L(cc.Label)], t.prototype, "Name", void 0), i([L(cc.Node)], t.prototype, "ForgeNodes", void 0), i([L(cc.Button)], t.prototype, "StageButton", void 0), i([L(cc.Label)], t.prototype, "StageButtonLabel", void 0), i([L(cc.Node)], t.prototype, "StarInfoNode", void 0), i([L(cc.Node)], t.prototype, "PhantomNode", void 0), i([L(cc.Label)], t.prototype, "PhantomMaxLevelDesc", void 0), i([L(cc.Sprite)], t.prototype, "PhantomLightLine", void 0), i([L(cc.Node)], t.prototype, "PhantomPointNodes", void 0), i([L(cc.Node)], t.prototype, "PhantomSelectNode", void 0), i([L(cc.Node)], t.prototype, "PhantomAttrBgNode", void 0), i([L(cc.Label)], t.prototype, "PhantomAttrLabel", void 0), i([L(cc.Node)], t.prototype, "PhantomLevelNode", void 0), i([L(cc.Label)], t.prototype, "PhantomStageLabel", void 0), i([L(cc.Button)], t.prototype, "LeftButton", void 0), i([L(cc.Button)], t.prototype, "RightButton", void 0), i([L(f.default)], t.prototype, "Toggles", void 0), i([L(cc.Button)], t.prototype, "ReturnButton", void 0), i([L(cc.Node)], t.prototype, "DetailContent", void 0), i([L(cc.Node)], t.prototype, "ForgeContent", void 0), i([L(cc.Node)], t.prototype, "UpStarContent", void 0), i([L(cc.Node)], t.prototype, "InfoBgNode", void 0), i([L(cc.Node)], t.prototype, "GuideNode", void 0), n = i([R], t)
            }(c.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/LevelComponent": "LevelComponent",
        "./ArtifactDetailInfoComponent": "ArtifactDetailInfoComponent",
        "./ArtifactForgeComponent": "ArtifactForgeComponent",
        "./ArtifactForgeInfoComponent": "ArtifactForgeInfoComponent",
        "./ArtifactListComponent": "ArtifactListComponent",
        "./ArtifactListItemComponent": "ArtifactListItemComponent",
        "./ArtifactUpStarInfoComponent": "ArtifactUpStarInfoComponent"
    }],
    ArtifactResonanceComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0f7c1uM6UFMkZVWQcPvVFlD", "ArtifactResonanceComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("../../Components/DataCenter"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Panel/ArtifactHeroSelectPanel"),
            y = e("../Panel/ArtifactSuccessTipPanel"),
            g = e("../Panel/CommonItemInfoPanel"),
            m = e("./HeroAttributeItem2"),
            I = e("./ItemComponent"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NameLabel = null, t.ItemsContainer = null, t.LevelUpNode = null, t.CurrentLevelLabel = null, t.NewLevelLabel = null, t.MaxLevel = null, t.AttributeComponents = [], t.TipsLabel = null, t.UpgradeButton = null, t.UpgradeButtonLabel = null, t.GreyButton = null, t.GreyButtonLabel = null, t.MaxLevelNode = null, t.MaxLevelLabel = null, t._currentConfig = null, t._currentLevel = 0, t._maxLevel = 0, t._isAllStarPieceReachedLevel = !0, t._itemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onLoad = function() {
                    this.MaxLevelLabel.string = "level_limit_reach".ToUILocale(), this.UpgradeButton.node.on("click", this.OnButtonClicked, this), this.GreyButton.node.on("click", this.OnButtonClicked, this)
                }, t.prototype.Init = function(e, t) {
                    this._currentConfig = e, this._currentLevel = 0, this._isAllStarPieceReachedLevel = !0, this._maxLevel = this._currentConfig.AttrIds.length;
                    var n = d.DataCenter.Instance.GetDataById(s.ArtefactResonance_Model, e.Id);
                    n && (this._currentLevel = n.Star), this.NameLabel.string = this._currentConfig.Id.ToArtifactResonanceName(), this.SetItemView(t), this.SetLevelView(), this.SetAttrView(), this.SetTipsAndButtonView()
                }, t.prototype.SetItemView = function(e) {
                    for (var t = this._currentConfig.Artefact, n = 0; n < t.length; n++) {
                        var o = t[n],
                            r = p.ConfigDataComponent.Instance.GetConfigById(a.Artefact_Config, o),
                            i = d.DataCenter.Instance.GetDataById(s.Artefact_Model, o);
                        if (!this._itemComponents[n]) {
                            var l = cc.instantiate(e);
                            this.ItemsContainer.node.addChild(l), this._itemComponents.push(l.getComponent(I.ItemComponent))
                        }
                        var c = this._itemComponents[n];
                        c.node.name = r.Id.toString(), c.node.active = !0;
                        var u = f.default.GetArtifactItemId(o);
                        if (i) {
                            g = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactStar_Config, i.Star), c.Init({
                                ItemId: u,
                                StarLevel: g.Star
                            }, I.ItemComponentType.ItemWithStar), c.CustomItemBgAndBorder(g.Quality);
                            var h = this._currentLevel + 1 > this._maxLevel ? this._maxLevel : this._currentLevel + 1,
                                y = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactResonanceAttrs_Config, this._currentConfig.AttrIds[h - 1]);
                            c.DisableMask(), g.Star < y.Star && (this._isAllStarPieceReachedLevel = !1)
                        } else {
                            var g = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactStar_Config, r.Star);
                            c.Init({
                                ItemId: u
                            }), c.CustomItemBgAndBorder(g.Quality), c.EnableMask(), this._isAllStarPieceReachedLevel = !1
                        }
                    }
                    for (; n < this._itemComponents.length; n++) this._itemComponents[n].node.active = !1
                }, t.prototype.SetLevelView = function() {
                    this.LevelUpNode.active = this._currentLevel < this._maxLevel, this.MaxLevel.node.active = this._currentLevel == this._maxLevel, this._currentLevel == this._maxLevel ? this.MaxLevel.string = "allianceBase_level".ToUILocale().Fmt(this._currentLevel.toString()) : (this.CurrentLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(this._currentLevel.toString()), this.NewLevelLabel.string = "allianceBase_level".ToUILocale().Fmt((this._currentLevel + 1).toString()))
                }, t.prototype.SetAttrView = function() {
                    if (this._currentLevel < this._maxLevel) {
                        var e, t = this._currentConfig.AttrIds[this._currentLevel - 1],
                            n = this._currentConfig.AttrIds[this._currentLevel],
                            o = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactResonanceAttrs_Config, t),
                            r = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactResonanceAttrs_Config, n);
                        e = o ? o.Attrs : null;
                        var i = r.Attrs;
                        this.AttributeComponents.forEach(function(t, n) {
                            if (i[n]) {
                                t.node.active = !0;
                                var o = 0;
                                if (e) {
                                    var r = e.find(function(e) {
                                        return e.Items[0] == i[n].Items[0]
                                    });
                                    r && (o = r.Items[1])
                                }
                                var a = {};
                                a.AttrId = i[n].Items[0], a.IsMaxLevel = !1, a.CurValue = o, a.AddValue = i[n].Items[1], a.PreTag = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(), t.Init(a)
                            } else t.node.active = !1
                        })
                    } else {
                        var s = this._currentConfig.AttrIds[this._currentLevel - 1],
                            l = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactResonanceAttrs_Config, s);
                        this.AttributeComponents.forEach(function(e, t) {
                            if (l.Attrs[t]) {
                                e.node.active = !0;
                                var n = {};
                                n.AttrId = l.Attrs[t].Items[0], n.IsMaxLevel = !0, n.MaxValue = l.Attrs[t].Items[1], n.PreTag = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(), e.Init(n)
                            } else e.node.active = !1
                        })
                    }
                }, t.prototype.SetTipsAndButtonView = function() {
                    if (this.TipsLabel.node.active = this._currentLevel < this._maxLevel, this.MaxLevelNode.active = this._currentLevel == this._maxLevel, 0 == this._currentLevel) {
                        var e = this._currentConfig.AttrIds[this._currentLevel],
                            t = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactResonanceAttrs_Config, e);
                        this.TipsLabel.string = "artifact_resonance_active".ToUILocale().Fmt(t.Star), this._isAllStarPieceReachedLevel ? (this.UpgradeButtonLabel.string = "starPiece_Info_active".ToUILocale(), this.UpgradeButton.node.active = !0, this.GreyButton.node.active = !1) : (this.GreyButtonLabel.string = "starPiece_Info_active".ToUILocale(), this.GreyButton.node.active = !0, this.UpgradeButton.node.active = !1)
                    } else this._currentLevel < this._maxLevel ? (e = this._currentConfig.AttrIds[this._currentLevel], t = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactResonanceAttrs_Config, e), this.TipsLabel.string = "artifact_resonance_active".ToUILocale().Fmt(t.Star), this._isAllStarPieceReachedLevel ? (this.UpgradeButtonLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), this.UpgradeButton.node.active = !0, this.GreyButton.node.active = !1) : (this.GreyButtonLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), this.GreyButton.node.active = !0, this.UpgradeButton.node.active = !1)) : (this.UpgradeButton.node.active = !1, this.GreyButton.node.active = !1)
                }, t.prototype.OnButtonClicked = function() {
                    this._isAllStarPieceReachedLevel ? this.RequestUpgrade() : h.UIUtlity.ShowFloatingHint("artifact_star_not_enough".ToUILocale())
                }, t.prototype.RequestUpgrade = function() {
                    var e = this,
                        t = this._currentConfig.AttrIds[this._currentLevel],
                        n = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactResonanceAttrs_Config, t),
                        o = {},
                        r = this._currentConfig.AttrIds[this._currentLevel - 1],
                        i = p.ConfigDataComponent.Instance.GetConfigById(a.ArtefactResonanceAttrs_Config, r),
                        d = [];
                    if (i)
                        for (var h = 0, f = i.Attrs; h < f.length; h++) {
                            var g = f[h];
                            (b = {}).AttrId = g.Items[0], b.AttrValue = g.Items[1], d.push(b)
                        } else
                            for (var m = 0, I = n.Attrs; m < I.length; m++) g = I[m], (b = {}).AttrId = g.Items[0], b.AttrValue = 0, d.push(b);
                    for (var _ = [], C = 0, v = n.Attrs; C < v.length; C++) {
                        var b;
                        g = v[C], (b = {}).AttrId = g.Items[0], b.AttrValue = g.Items[1], _.push(b)
                    }
                    o.CurAttrDatas = _, o.LastAttrDatas = d;
                    var S = new s.Req_Team2_ArtefactResonanceUpgradeStar;
                    S.Sid = this._currentConfig.Id, S.NewStar = n.Star, p.RpcComponent.Instance.Call(S, function() {
                        l.UIManager.Instance.ShowUIPanel(u.PanelConfig.ArtifactSuccessTipPanel.Path, e._currentConfig.Id, y.ArtifactSuccessTipType.Resonance, o), l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_ARTIFACT_RESONANCE_REFRESH, e._currentConfig)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    if (t.parent == this.ItemsContainer.node) {
                        var n = {};
                        n.Type = g.CommonItemInfoType.Artifact, n.IsSelf = !0, n.IsShowButtons = !1, n.ItemId = e, l.UIManager.Instance.ShowUIPanel(u.PanelConfig.CommonItemInfoPanel.Path, n)
                    }
                }, i([v(cc.Label)], t.prototype, "NameLabel", void 0), i([v(cc.Layout)], t.prototype, "ItemsContainer", void 0), i([v(cc.Node)], t.prototype, "LevelUpNode", void 0), i([v(cc.Label)], t.prototype, "CurrentLevelLabel", void 0), i([v(cc.Label)], t.prototype, "NewLevelLabel", void 0), i([v(cc.Label)], t.prototype, "MaxLevel", void 0), i([v([m.default])], t.prototype, "AttributeComponents", void 0), i([v(cc.Label)], t.prototype, "TipsLabel", void 0), i([v(cc.Button)], t.prototype, "UpgradeButton", void 0), i([v(cc.Label)], t.prototype, "UpgradeButtonLabel", void 0), i([v(cc.Button)], t.prototype, "GreyButton", void 0), i([v(cc.Label)], t.prototype, "GreyButtonLabel", void 0), i([v(cc.Node)], t.prototype, "MaxLevelNode", void 0), i([v(cc.Label)], t.prototype, "MaxLevelLabel", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ArtifactHeroSelectPanel": "ArtifactHeroSelectPanel",
        "../Panel/ArtifactSuccessTipPanel": "ArtifactSuccessTipPanel",
        "../Panel/CommonItemInfoPanel": "CommonItemInfoPanel",
        "./HeroAttributeItem2": "HeroAttributeItem2",
        "./ItemComponent": "ItemComponent"
    }],
    ArtifactResonancePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4b26bejyyNCPpO1EfMRMi87", "ArtifactResonancePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/CustomLayout"),
            f = e("../Components/ArtifactResonanceComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.CustomLayout = null, t.ReturnButton = null, t._initLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_ARTIFACT_RESONANCE_REFRESH, this.OnRefreshList, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ARTIFACT_RESONANCE_REFRESH, this.OnRefreshList, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ArtifactPanel/Components/ArtifactResonanceComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._resonancePrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "artifact_resonance".ToUILocale(), this.RuleButton.node.on("click", this.ClickRuleButton, this), this.ReturnButton.node.on("click", this.ClickReturnButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configs = c.ConfigDataComponent.Instance.GetArrayConfig(u.ArtefactResonance_Config)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetResonanceList()
                }, t.prototype.SetResonanceList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._resonancePrefab), this._initLayout = !1);
                    var e = this.CheckFirstCanActive();
                    this.CustomLayout.RenderLayOut(this._configs.length, e)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.name = n._configs[t].Id.toString(), e.getComponent(f.default).Init(n._configs[t], n._itemPrefab)
                    })
                }, t.prototype.OnRefreshList = function(e) {
                    var t = this;
                    this.CustomLayout.node.children.forEach(function(n) {
                        n.name == e.Id.toString() && n.getComponent(f.default).Init(e, t._itemPrefab)
                    })
                }, t.prototype.ClickRuleButton = function() {
                    var e = {
                        name: "artifact_resonance".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["artifact_resonance_rule_content".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.ClickReturnButton = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.CheckFirstCanActive = function() {
                    for (var e = 0, t = 0; t < this._configs.length; t++) {
                        for (var n = this._configs[t].Artefact, o = 0; o < n.length; o++) {
                            var r = n[o],
                                i = c.ConfigDataComponent.Instance.GetConfigById(u.Artefact_Config, r),
                                a = c.DataCenter.Instance.GetDataById(g.Artefact_Model, r);
                            if (!a) break;
                            var s = i.AttrIds.length,
                                l = 0,
                                p = c.DataCenter.Instance.GetDataById(g.ArtefactResonance_Model, i.Id);
                            p && (l = p.Star);
                            var d = c.ConfigDataComponent.Instance.GetConfigById(u.ArtefactStar_Config, a.Star),
                                h = l + 1 > s ? s : l + 1,
                                f = c.ConfigDataComponent.Instance.GetConfigById(u.ArtefactResonanceAttrs_Config, this._configs[t].AttrIds[h - 1]);
                            if (d.Star < f.Star) break
                        }
                        if (o >= n.length) {
                            e = t;
                            break
                        }
                    }
                    return e
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Button)], t.prototype, "RuleButton", void 0), i([_(h.default)], t.prototype, "CustomLayout", void 0), i([_(cc.Button)], t.prototype, "ReturnButton", void 0), i([I], t)
            }(l.BaseUIFullScreenPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ArtifactResonanceComponent": "ArtifactResonanceComponent",
        "../Components/CustomLayout": "CustomLayout"
    }],
    ArtifactSkillStarDescComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3216581SrNHLbGH/U9s7IN7", "ArtifactSkillStarDescComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/LevelComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BgWidgets = [], t.LevelNode = null, t.Desc = null, t.LayoutNode = null, t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._levelPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.LevelComponent, cc.Prefab)];
                                case 1:
                                    if (t = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._levelPrefab = t, this._assets.push(t), r.label = 2;
                                case 2:
                                    return this._levelNode || (this._levelNode = cc.instantiate(this._levelPrefab), this._levelNode.parent = this.LevelNode), (n = this._levelNode.getComponent(u.LevelComponent)).Init(e.Star), n.SetStarSize(46, 44), this.Desc.string = "<color=#624e3c>" + e.Desc + "</c>", 1 == e.Type ? this.Desc.node.opacity = e.CurStarId >= e.StarId ? 255 : 127 : this.Desc.node.opacity = e.CurStar >= e.Star ? 255 : 127, this.scheduleOnce(function() {
                                        o.node.height = o.LayoutNode.height + 30, o.BgWidgets.forEach(function(e) {
                                            e.updateAlignment()
                                        })
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._levelPrefab = null
                }, i([h(cc.Widget)], t.prototype, "BgWidgets", void 0), i([h(cc.Node)], t.prototype, "LevelNode", void 0), i([h(cc.RichText)], t.prototype, "Desc", void 0), i([h(cc.Node)], t.prototype, "LayoutNode", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/LevelComponent": "LevelComponent"
    }],
    ArtifactStageEffectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6e4a9O7oqtAzLej7rtnL0Uo", "ArtifactStageEffectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./CommonSkillStarDescComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.ScrollView = null, t.DescContent = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("CommonPanel/SubItems/CommonSkillStarDescComponent", cc.Prefab)];
                                case 1:
                                    return t._descItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.Title.string = "artifact_stage_effect".ToUILocale(), e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._datas = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetStageEffectList()
                }, t.prototype.SetStageEffectList = function() {
                    var e = this;
                    this._datas.forEach(function(t) {
                        var n = cc.instantiate(e._descItemPrefab);
                        n.parent = e.DescContent, n.getComponent(c.default).Init(t)
                    });
                    for (var t = 0, n = this._datas.length - 1; n >= 0; n--)
                        if (this._datas[n].CurStarId >= this._datas[n].StarId) {
                            t = n;
                            break
                        } this.scheduleOnce(function() {
                        var n = e.DescContent.children[t].y;
                        e.ScrollView.scrollToOffset(cc.v2(0, -n - e.ScrollView.node.height / 2))
                    }, .1)
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([d(cc.Node)], t.prototype, "DescContent", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./CommonSkillStarDescComponent": "CommonSkillStarDescComponent"
    }],
    ArtifactSuccessTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "230288by71MjasgnQmEATND", "ArtifactSuccessTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ArtifactSuccessTipType = void 0;
        var l, c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/LevelComponent"),
            y = e("./ArtifactTipsAttrComponent"),
            g = e("../Components/ItemComponent"),
            m = e("./ArtifactHeroSelectPanel"),
            I = e("../Components/GameModuleGuideManager");
        (function(e) {
            e[e.Active = 0] = "Active", e[e.Upstar = 1] = "Upstar", e[e.UpStage = 2] = "UpStage", e[e.Resonance = 3] = "Resonance", e[e.Phantom = 4] = "Phantom"
        })(l = n.ArtifactSuccessTipType || (n.ArtifactSuccessTipType = {}));
        var _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !1), t.TopNode = null, t.AttrTitleNode = null, t.AttrLayoutNode = null, t.SkillTitleNode = null, t.SkillDescNode = null, t.ArtifactScrollView = null, t.ArtifactNode = null, t.Name = null, t.LevelNode = null, t.UpStarLevelNode = null, t.CurLevelNode = null, t.NextLevelNode = null, t.AttrTitle = null, t.SkillTitle = null, t.SkillDesc = null, t.TitleSprite = null, t.PhantomDesc = null, t.CloseHint = null, t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.LevelComponent, cc.Prefab), n = this.LoadDynamicAsset("ArtifactPanel/Components/ArtifactTipsAttrComponent", cc.Prefab), o = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._levelPrefab = e[0], r._attrPrefab = e[1], r._itemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SkillTitle.string = "artifact_skill".ToUILocale(), this._titlePath = ["MultilangSinglePng2/active_success", "Multilang/Multilang6|upgrade_star", "MultilangSinglePng2/upGrade_success", "MultilangSinglePng2/resonanceSuccess"]
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._artifactId = t[0], this._type = t[1], t[2] && (this._attrData = t[2]), t[3] && (this._phantomDesc = t[3]), this.AttrTitle.string = this._type == l.Resonance ? "artifact_resonance_attr".ToUILocale() : "artifact_attr".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetUIContent(), this._type == l.Active && this.ShowGameGuid())
                }, t.prototype.SetUIContent = function() {
                    this._type != l.Resonance && (this._model = p.DataCenter.Instance.GetDataById(u.Artefact_Model, this._artifactId)), this.SetNodeActive(), this.SetArtifactInfo(), this.SetAttrContent(), this.SetArtifactContent(), this.SetTitleSprite()
                }, t.prototype.SetNodeActive = function() {
                    this.TopNode.active = this._type != l.Resonance, this.AttrTitleNode.active = !0, this.AttrLayoutNode.active = !0, this.SkillTitleNode.active = this._type != l.Resonance, this.SkillDescNode.active = this._type != l.Resonance, this.LevelNode.active = this._type == l.Active || this._type == l.UpStage, this.UpStarLevelNode.active = this._type == l.Upstar, this.PhantomDesc.node.active = this._type == l.Phantom, this.ArtifactScrollView.node.active = this._type == l.Resonance
                }, t.prototype.SetArtifactInfo = function() {
                    var e;
                    if (this.Name.string = this._artifactId.ToArtifactName(), this._type != l.Resonance) {
                        e = p.ConfigDataComponent.Instance.GetConfigById(c.ArtefactStar_Config, this._model.Star);
                        var t = p.ConfigDataComponent.Instance.GetConfigById(c.Artefact_Config, this._artifactId).Skills[e.Star - 1].Items[0];
                        t > 0 && (this.SkillDesc.string = t.ToHeroSkillDesc())
                    }
                    if (this._type == l.Upstar) {
                        var n = 0,
                            o = p.ConfigDataComponent.Instance.GetConfigById(c.ArtefactStar_Config, this._attrData.CurStar);
                        o && (n = o.Star);
                        var r = cc.instantiate(this._levelPrefab);
                        r.parent = this.CurLevelNode;
                        var i = r.getComponent(f.LevelComponent);
                        i.SetStarSize(46, 44), 0 == n ? i.SetZeroNode() : i.Init(n);
                        var a = cc.instantiate(this._levelPrefab);
                        a.parent = this.NextLevelNode;
                        var s = a.getComponent(f.LevelComponent);
                        s.Init(e.Star), s.SetStarSize(46, 44)
                    } else if (this._type == l.Active || this._type == l.UpStage) {
                        var u = cc.instantiate(this._levelPrefab);
                        u.parent = this.LevelNode;
                        var d = u.getComponent(f.LevelComponent);
                        d.Init(e.Star), d.SetStarSize(46, 44)
                    }
                    this._type == l.Phantom && (this.PhantomDesc.string = this._phantomDesc)
                }, t.prototype.SetAttrContent = function() {
                    var e = this;
                    this._attrData && this._attrData.CurAttrDatas.forEach(function(t) {
                        if (e._type != l.Active) {
                            var n = e._attrData.LastAttrDatas.find(function(e) {
                                return e.AttrId == t.AttrId
                            });
                            n ? t.AttrValue != n.AttrValue && ((o = cc.instantiate(e._attrPrefab)).parent = e.AttrLayoutNode, n = {
                                AttrId: t.AttrId,
                                AttrValue: n.AttrValue
                            }, o.getComponent(y.default).Init(e._type, t, n)) : ((o = cc.instantiate(e._attrPrefab)).parent = e.AttrLayoutNode, n = {
                                AttrId: t.AttrId,
                                AttrValue: 0
                            }, o.getComponent(y.default).Init(e._type, t, n))
                        } else {
                            var o;
                            (o = cc.instantiate(e._attrPrefab)).parent = e.AttrLayoutNode, o.getComponent(y.default).Init(e._type, t)
                        }
                    })
                }, t.prototype.SetTitleSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return 1 != (e = this._type == l.Phantom ? 2 : this._type) ? [3, 2] : (t = this._titlePath[e].split("|"), [4, this.LoadDynamicAsset(p.GlobalConfigComponent.GetMultilangKey(t[0]), cc.SpriteAtlas)]);
                                case 1:
                                    return n = r.sent(), this.isValid ? (this.TitleSprite.spriteFrame = n.getSpriteFrame(t[1]), [3, 4]) : (d.AssetsManager.Instance.UnloadAsset(n), [2]);
                                case 2:
                                    return [4, this.LoadDynamicAsset(p.GlobalConfigComponent.GetMultilangKey(this._titlePath[e]), cc.SpriteFrame)];
                                case 3:
                                    if (o = r.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this.TitleSprite.spriteFrame = o, r.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetArtifactContent = function() {
                    var e = this;
                    if (this._type == l.Resonance) {
                        var t = p.ConfigDataComponent.Instance.GetConfigById(c.ArtefactResonance_Config, this._artifactId);
                        this.ArtifactScrollView.enabled = t.Artefact.length > 4, t.Artefact.forEach(function(t) {
                            var n = cc.instantiate(e._itemPrefab);
                            n.y = -20, n.parent = e.ArtifactNode;
                            var o = m.default.GetArtifactItemId(t),
                                r = 0,
                                i = 0,
                                a = p.DataCenter.Instance.GetDataById(u.Artefact_Model, t);
                            if (a) r = (s = p.ConfigDataComponent.Instance.GetConfigById(c.ArtefactStar_Config, a.Star)).Star, i = s.Quality;
                            else {
                                var s, l = p.ConfigDataComponent.Instance.GetConfigById(c.Artefact_Config, t);
                                i = (s = p.ConfigDataComponent.Instance.GetConfigById(c.ArtefactStar_Config, l.Star)).Quality
                            }
                            var d = n.getComponent(g.ItemComponent);
                            d.Init({
                                ItemId: o,
                                StarLevel: r
                            }, g.ItemComponentType.ItemWithStar), d.CustomItemBgAndBorder(i)
                        })
                    }
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = I.default.Instance.GetCurrentGroupId([10045]);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = p.ConfigDataComponent.Instance.GetConfigById(c.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 112:
                                            I.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.CloseHint);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([v(cc.Node)], t.prototype, "TopNode", void 0), i([v(cc.Node)], t.prototype, "AttrTitleNode", void 0), i([v(cc.Node)], t.prototype, "AttrLayoutNode", void 0), i([v(cc.Node)], t.prototype, "SkillTitleNode", void 0), i([v(cc.Node)], t.prototype, "SkillDescNode", void 0), i([v(cc.ScrollView)], t.prototype, "ArtifactScrollView", void 0), i([v(cc.Node)], t.prototype, "ArtifactNode", void 0), i([v(cc.Label)], t.prototype, "Name", void 0), i([v(cc.Node)], t.prototype, "LevelNode", void 0), i([v(cc.Node)], t.prototype, "UpStarLevelNode", void 0), i([v(cc.Node)], t.prototype, "CurLevelNode", void 0), i([v(cc.Node)], t.prototype, "NextLevelNode", void 0), i([v(cc.Label)], t.prototype, "AttrTitle", void 0), i([v(cc.Label)], t.prototype, "SkillTitle", void 0), i([v(cc.Label)], t.prototype, "SkillDesc", void 0), i([v(cc.Sprite)], t.prototype, "TitleSprite", void 0), i([v(cc.Label)], t.prototype, "PhantomDesc", void 0), i([v(cc.Node)], t.prototype, "CloseHint", void 0), i([C], t)
            }(d.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "./ArtifactHeroSelectPanel": "ArtifactHeroSelectPanel",
        "./ArtifactTipsAttrComponent": "ArtifactTipsAttrComponent"
    }],
    ArtifactTipsAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "63132sndFlL0LNrCF0/B1/Z", "ArtifactTipsAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./ArtifactSuccessTipPanel"),
            s = e("../../Auxiliary/DataUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Name = null, t.Value = null, t.UpStarNode = null, t.CurValue = null, t.NextValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.Value.node.active = !1, this.UpStarNode.active = !1;
                    var o = s.default.GetHeroAttribute(t.AttrId, t.AttrValue);
                    if (this.Icon.spriteFrame = o.Icon, this.Name.string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + o.Name, e != a.ArtifactSuccessTipType.Active) {
                        var r = s.default.GetHeroAttribute(n.AttrId, n.AttrValue);
                        this.UpStarNode.active = !0, this.CurValue.string = r.Value, this.NextValue.string = o.Value
                    } else this.Value.node.active = !0, this.Value.string = o.Value
                }, i([u(cc.Sprite)], t.prototype, "Icon", void 0), i([u(cc.Label)], t.prototype, "Name", void 0), i([u(cc.Label)], t.prototype, "Value", void 0), i([u(cc.Node)], t.prototype, "UpStarNode", void 0), i([u(cc.Label)], t.prototype, "CurValue", void 0), i([u(cc.Label)], t.prototype, "NextValue", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "./ArtifactSuccessTipPanel": "ArtifactSuccessTipPanel"
    }],
    ArtifactUpStarAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca42fMhjolAaKg8NNSb88Qe", "ArtifactUpStarAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/LevelComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Name = null, t.ArrowNode = null, t.AttrValueNode = null, t.StarNode = null, t.CurValue = null, t.NextValue = null, t.CurStarNode = null, t.NextStarNode = null, t.MaxValue = null, t.MaxStarNode = null, t.TagBg = null, t._levelNodes = [], t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.Icon.node.active = e.AttrId > -1, this.ArrowNode.active = !e.IsMax, this.AttrValueNode.active = !e.IsMax && e.AttrId > -1, this.StarNode.active = !e.IsMax && -1 == e.AttrId, this.MaxValue.node.active = e.IsMax && e.AttrId > -1, this.MaxStarNode.active = e.IsMax && -1 == e.AttrId, this.TagBg.node.width = -1 == e.AttrId ? 940 : 548, e.AttrId > -1 ? (t = c.default.GetHeroAttribute(e.AttrId, e.CurValue), this.Icon.spriteFrame = t.Icon, this.Name.string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + t.Name, e.IsMax ? this.MaxValue.string = t.Value : (n = c.default.GetHeroAttribute(e.AttrId, e.NextValue), this.CurValue.string = t.Value, this.NextValue.string = n.Value), [3, 4]) : [3, 1];
                                case 1:
                                    return this._levelPrefab ? [3, 3] : [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.LevelComponent, cc.Prefab)];
                                case 2:
                                    if (o = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this._levelPrefab = o, this._assets.push(o), i.label = 3;
                                case 3:
                                    this._levelNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this.Name.string = "artifact_star".ToUILocale(), this._levelNodes[0] || (r = cc.instantiate(this._levelPrefab), this._levelNodes[0] = r, this._levelNodes[0].getComponent(p.LevelComponent).SetStarSize(46, 44)), this._levelNodes[0].active = !0, e.IsMax ? (this._levelNodes[0].parent = this.MaxStarNode, this._levelNodes[0].getComponent(p.LevelComponent).Init(e.CurStar)) : (this._levelNodes[0].parent = this.CurStarNode, e.CurStar > 0 ? this._levelNodes[0].getComponent(p.LevelComponent).Init(e.CurStar) : this._levelNodes[0].getComponent(p.LevelComponent).SetZeroNode(), this._levelNodes[1] || (r = cc.instantiate(this._levelPrefab), this._levelNodes[1] = r, this._levelNodes[1].getComponent(p.LevelComponent).SetStarSize(46, 44)), this._levelNodes[1].active = !0, this._levelNodes[1].parent = this.NextStarNode, this._levelNodes[1].getComponent(p.LevelComponent).Init(e.NextStar)), i.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._levelPrefab = null
                }, i([f(cc.Sprite)], t.prototype, "Icon", void 0), i([f(cc.Label)], t.prototype, "Name", void 0), i([f(cc.Node)], t.prototype, "ArrowNode", void 0), i([f(cc.Node)], t.prototype, "AttrValueNode", void 0), i([f(cc.Node)], t.prototype, "StarNode", void 0), i([f(cc.Label)], t.prototype, "CurValue", void 0), i([f(cc.Label)], t.prototype, "NextValue", void 0), i([f(cc.Node)], t.prototype, "CurStarNode", void 0), i([f(cc.Node)], t.prototype, "NextStarNode", void 0), i([f(cc.Label)], t.prototype, "MaxValue", void 0), i([f(cc.Node)], t.prototype, "MaxStarNode", void 0), i([f(cc.Sprite)], t.prototype, "TagBg", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/LevelComponent": "LevelComponent"
    }],
    ArtifactUpStarInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "576e8PTxYpMaLIvwK943zgc", "ArtifactUpStarInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("./ArtifactDetailInfoComponent"),
            h = e("./ArtifactUpStarAttrComponent"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/LevelComponent"),
            g = e("../Components/ItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("./ArtifactSuccessTipPanel"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../../RedDot/RedDotManager"),
            S = e("./CommonItemInfoPanel"),
            w = e("../Components/CurrencyBarItem"),
            P = e("../Components/AttrComponent5"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrTitleNode = null, t.TitleAttr = null, t.TitleSkill = null, t.UpStarAttrNode = null, t.UpStarAttrContent = null, t.PhantomAttrNode = null, t.PhantomAttrContent = null, t.SkillName = null, t.SkillDesc = null, t.SkillLevelNode = null, t.UpStarNode = null, t.ItemNode = null, t.CurrencyBarItem = null, t.UpStarActiveButton = null, t.UpStarActiveLabel = null, t.UpStarButton = null, t.UpStarLabel = null, t.PhantomNode = null, t.ConsumeNode = null, t.PhantomActiveButton = null, t.PhantomActiveLabel = null, t.MaxNode = null, t.MaxLabel = null, t.SkillInfoBtn = null, t._upStarAttrNodes = [], t._phantomAttrNodes = [], t._itemNodes = [], t._assets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    this.TitleAttr.string = "artifact_attr".ToUILocale(), this.TitleSkill.string = "artifact_skill".ToUILocale(), this.UpStarActiveLabel.string = "ChaosTemple_Active".ToUILocale(), this.UpStarLabel.string = "angel_toggle_1".ToUILocale(), this.PhantomActiveLabel.string = "ChaosTemple_Active".ToUILocale(), this.MaxLabel.string = "artifact_max_star".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.UpStarActiveButton.node.on("click", this.ClickUpStarActiveButton, this), this.UpStarButton.node.on("click", this.ClickUpStarButton, this), this.PhantomActiveButton.node.on("click", this.ClickPhantomActiveButton, this), this.SkillInfoBtn.node.on("click", this.OnSkillInfo, this), p.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    this.UpStarActiveButton.node.off("click", this.ClickUpStarActiveButton, this), this.UpStarButton.node.on("click", this.ClickUpStarButton, this), this.PhantomActiveButton.node.on("click", this.ClickPhantomActiveButton, this), this.SkillInfoBtn.node.off("click", this.OnSkillInfo, this), p.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._artifactId = e, this._config = t, this._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e), this.SetArtifactState(), this.SetAttrContent(), this.SetSkillNode(), this.SetBottomActive(), [4, this.LoadItemPrefab()];
                                case 1:
                                    return n.sent(), this.SetUpStarItemNode(), this.SetPhantomConsume(), this.SetRedDot(), [2]
                            }
                        })
                    })
                }, t.prototype.SetArtifactState = function() {
                    this._isUnlock = !1, this._isMaxStar = !1, this._starConfig = null, this._model ? (this._isUnlock = !0, this._starConfig = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._model.Star), this._starConfig.NextId || (this._isMaxStar = !0)) : this._starConfig = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._config.Star)
                }, t.prototype.SetAttrContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, f, y, g, m, I, _, C, v, b, S, w = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return t = {}, n = {}, this._isUnlock ? (o = d.default.GetAttrDatas(this._model, this._config), t = o, e = 1 == this._starConfig.Type ? 1 : this._isMaxStar ? 1 : 2, this._isMaxStar ? n = null : 1 == this._starConfig.Type ? (r = {}, this._starConfig.Attrs.forEach(function(e) {
                                        var t = w._config.AttrIds[e.Items[0]];
                                        t >= 0 && (r[t] = e.Items[1])
                                    }), u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._starConfig.NextId).Attrs.forEach(function(e) {
                                        var o = e.Items[1],
                                            i = w._config.AttrIds[e.Items[0]];
                                        i >= 0 && (r[i] && (o -= r[i]), t[i] ? n[i] = o + t[i] : n[i] = o)
                                    })) : this._model.NodeLevel == this._starConfig.NodeAttrs.length - 1 && 0 == this._starConfig.NodeAttrs[this._model.NodeLevel].Items[1] ? (i = {}, this._starConfig.Attrs.forEach(function(e) {
                                        var t = w._config.AttrIds[e.Items[0]];
                                        t >= 0 && (i[t] = e.Items[1])
                                    }), this._starConfig.NodeAttrs.forEach(function(e) {
                                        var t = w._config.AttrIds[e.Items[0]];
                                        t >= 0 && (i[t] ? i[t] += e.Items[1] : i[t] = e.Items[1])
                                    }), u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._starConfig.NextId).Attrs.forEach(function(e) {
                                        var t = e.Items[1],
                                            o = w._config.AttrIds[e.Items[0]];
                                        o >= 0 && (i[o] && (t -= i[o]), n[o] = t)
                                    })) : (a = this._starConfig.NodeAttrs[this._model.NodeLevel], (c = this._config.AttrIds[a.Items[0]]) >= 0 && (n[c] = a.Items[1]))) : (e = this._starConfig.Type, 1 == this._starConfig.Type ? this._starConfig.Attrs.forEach(function(e) {
                                        w._config.AttrIds[e.Items[0]] >= 0 && (t[w._config.AttrIds[e.Items[0]]] = 0, n[w._config.AttrIds[e.Items[0]]] = e.Items[1])
                                    }) : (this._config.AttrIds.forEach(function(e) {
                                        e >= 0 && (t[e] = 0)
                                    }), this._starConfig.Attrs.forEach(function(e) {
                                        w._config.AttrIds[e.Items[0]] >= 0 && (n[w._config.AttrIds[e.Items[0]]] = e.Items[1])
                                    }))), this.UpStarAttrNode.active = 1 == e, this.PhantomAttrNode.active = 2 == e, this.AttrTitleNode.y = 1 == e ? 519 : 340, 1 != e ? [3, 3] : this._upStarAttrPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ArtifactPanel/Components/ArtifactUpStarAttrComponent", cc.Prefab)];
                                case 1:
                                    if (f = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(f), [2];
                                    this._upStarAttrPrefab = f, this._assets.push(f), s.label = 2;
                                case 2:
                                    if (this._upStarAttrNodes.forEach(function(e) {
                                            e.active = !1
                                        }), y = [], (g = {}).AttrId = -1, g.IsMax = this._isMaxStar, g.CurStar = this._isUnlock ? this._starConfig.Star : 0, this._isMaxStar || (this._isUnlock ? (m = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._starConfig.NextId), g.NextStar = m.Star) : (m = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._config.Star), g.NextStar = m.Star)), y.push(g), this._isMaxStar)
                                        for (v in t)(I = {}).AttrId = Number(v), I.CurValue = t[Number(v)], I.IsMax = this._isMaxStar, y.push(I);
                                    else
                                        for (v in n)(I = {}).AttrId = Number(v), I.CurValue = t[Number(v)] || 0, I.NextValue = n[Number(v)], I.IsMax = this._isMaxStar, y.push(I);
                                    return y.forEach(function(e, t) {
                                        if (t < 5) {
                                            if (!w._upStarAttrNodes[t]) {
                                                var n = cc.instantiate(w._upStarAttrPrefab);
                                                n.parent = w.UpStarAttrContent, w._upStarAttrNodes[t] = n
                                            }
                                            w._upStarAttrNodes[t].active = !0, w._upStarAttrNodes[t].getComponent(h.default).Init(e)
                                        }
                                    }), [3, 6];
                                case 3:
                                    return this._phantomAttrPrefab ? [3, 5] : [4, p.AssetsManager.Instance.LoadAsset("ItemsComponent/AttrComponent5", cc.Prefab)];
                                case 4:
                                    if (_ = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(_), [2];
                                    this._phantomAttrPrefab = _, this._assets.push(_), s.label = 5;
                                case 5:
                                    for (v in this._phantomAttrNodes.forEach(function(e) {
                                            e.active = !1
                                        }), C = 0, n) t[Number(v)] || (t[Number(v)] = 0);
                                    for (v in t) this._phantomAttrNodes[C] || ((b = cc.instantiate(this._phantomAttrPrefab)).parent = this.PhantomAttrContent, this._phantomAttrNodes[C] = b), this._phantomAttrNodes[C].active = !0, S = this._phantomAttrNodes[C].getComponent(P.default), n[v] ? S.Init(Number(v), t[v], {
                                        AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(),
                                        NodeWidth: 488,
                                        ValueNodeWidth: 231,
                                        AddValue: n[v]
                                    }) : S.Init(Number(v), t[v], {
                                        AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(),
                                        NodeWidth: 488,
                                        ValueNodeWidth: 231
                                    }), C++;
                                    s.label = 6;
                                case 6:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetSkillNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e = this._isUnlock ? u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._model.Star) : u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._config.Star), t = d.default.GetArtifactSkillConfig(this._artifactId, e.Star), n = t.Items[0], o = t.Items[2], this.SkillName.string = n.ToHeroSkillName(), this.SkillDesc.string = "<color=#624e3c>" + n.ToHeroSkillDesc() + "</c>", this._levelPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(f.BundlePath.LevelComponent, cc.Prefab)];
                                case 1:
                                    if (r = a.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(r), [2];
                                    this._levelPrefab = r, this._assets.push(r), a.label = 2;
                                case 2:
                                    return this._levelNode || (this._levelNode = cc.instantiate(this._levelPrefab), this._levelNode.parent = this.SkillLevelNode), (i = this._levelNode.getComponent(y.LevelComponent)).Init(o), i.SetStarSize(46, 44), [2]
                            }
                        })
                    })
                }, t.prototype.SetBottomActive = function() {
                    this.UpStarNode.active = !(this._isMaxStar || 1 != this._starConfig.Type && this._isUnlock), this.PhantomNode.active = !this._isMaxStar && 2 == this._starConfig.Type && this._isUnlock, this.MaxNode.active = this._isMaxStar
                }, t.prototype.LoadItemPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetUpStarItemNode = function() {
                    if (!(this._isMaxStar || 1 != this._starConfig.Type && this._isUnlock)) {
                        if (this._itemNodes.forEach(function(e) {
                                e.active = !1
                            }), !this._itemNodes[0]) {
                            var e = cc.instantiate(this._itemPrefab);
                            e.y = -20, this._itemNodes[0] = e
                        }
                        this._itemNodes[0].parent = this.ItemNode, this._itemNodes[0].active = !0, this._itemNodes[0].getComponent(g.ItemComponent).Init({
                            ItemId: this._config.PieceId
                        }, g.ItemComponentType.ItemCommon);
                        var t = this.GetUpStarPieceData(),
                            n = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPiece_Config, this._config.PieceId);
                        this.CurrencyBarItem.Init(n.CardId, !1, t[0], t[1]), this.UpStarActiveButton.node.active = !this._isUnlock, this.UpStarButton.node.active = this._isUnlock
                    }
                }, t.prototype.GetUpStarPieceData = function() {
                    var e;
                    if (this._isUnlock) {
                        var t = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._config.Star);
                        e = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._starConfig.NextId).Materials[t.Quality - 1]
                    } else e = this._starConfig.Materials[this._starConfig.Quality - 1];
                    return [u.DataCenter.Instance.GetItemCount(this._config.PieceId), e]
                }, t.GetPhantomConsumeData = function(e) {
                    var t = u.ConfigDataComponent.Instance.GetConfigById(l.Artefact_Config, e),
                        n = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e),
                        o = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, n.Star),
                        r = [],
                        i = o.NodeMaterials[n.NodeLevel],
                        a = {};
                    if (a.ItemId = i.Items[0], a.ItemValue = i.Items[1], r.push(a), n.NodeLevel == o.NodeMaterials.length - 1) {
                        var s = {},
                            p = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, t.Star),
                            d = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, o.NextId).Materials[p.Quality - 1];
                        s.ItemId = t.PieceId, s.ItemValue = d, r.push(s)
                    }
                    return r
                }, t.prototype.SetPhantomConsume = function() {
                    var e = this;
                    if (!this._isMaxStar && 2 == this._starConfig.Type && this._isUnlock) {
                        var t = n.GetPhantomConsumeData(this._artifactId);
                        this._itemNodes.forEach(function(e) {
                            e.active = !1
                        }), t.forEach(function(t, n) {
                            if (!e._itemNodes[n]) {
                                var o = cc.instantiate(e._itemPrefab);
                                o.y = -20, e._itemNodes[n] = o
                            }
                            e._itemNodes[n].active = !0, e._itemNodes[n].parent = e.ConsumeNode;
                            var r = u.DataCenter.Instance.GetItemCount(t.ItemId),
                                i = e._itemNodes[n].getComponent(g.ItemComponent);
                            i.Init({
                                ItemId: t.ItemId
                            }, g.ItemComponentType.ItemCommon), i.SetProgressBar(r, t.ItemValue, !0)
                        })
                    }
                }, t.prototype.SetRedDot = function() {
                    b.RedDotManager.Instance.BindInstance(this.UpStarActiveButton.node, b.RedDotManager.Instance.InstanceRedDot.ArtifactUpStarActiveBtn, {
                        Value1: this._artifactId
                    }), b.RedDotManager.Instance.BindInstance(this.UpStarButton.node, b.RedDotManager.Instance.InstanceRedDot.ArtifactUpStarBtn, {
                        Value1: this._artifactId
                    }), b.RedDotManager.Instance.BindInstance(this.PhantomActiveButton.node, b.RedDotManager.Instance.InstanceRedDot.ArtifactPhantomActiveBtn, {
                        Value1: this._artifactId
                    })
                }, t.prototype.ClickItemGetButton = function() {
                    I.default.ShowItemGetWay(this._config.PieceId)
                }, t.prototype.ClickUpStarActiveButton = function() {
                    var e = this;
                    if (this._isUnlock) m.UIUtlity.ShowFloatingHint("unlocked".ToUILocale());
                    else if (this._isMaxStar) m.UIUtlity.ShowFloatingHint("artifact_max_star".ToUILocale());
                    else {
                        var t = this.GetUpStarPieceData();
                        if (t[0] < t[1]) I.default.ShowItemGetWay(this._config.PieceId);
                        else {
                            var n = new c.Req_Team2_ArtefactUpgradeStar;
                            n.Sid = this._config.Id, n.NewStar = this._config.Star, n.NewNodeLevel = 0, u.RpcComponent.Instance.Call(n, function() {
                                var t = {},
                                    n = [];
                                e._starConfig.Attrs.forEach(function(t) {
                                    if (e._config.AttrIds[t.Items[0]] >= 0) {
                                        var o = {};
                                        o.AttrId = e._config.AttrIds[t.Items[0]], o.AttrValue = t.Items[1], n.push(o)
                                    }
                                }), t.CurAttrDatas = n, p.UIManager.Instance.ShowUIPanel(f.PanelConfig.ArtifactSuccessTipPanel.Path, e._config.Id, _.ArtifactSuccessTipType.Active, t), p.Game.EventDispatcher.Emit(C.EventKeys.EVENT_ARTIFACT_REFRESH_ACTIVE)
                            })
                        }
                    }
                }, t.prototype.ClickUpStarButton = function() {
                    var e = this;
                    if (this._isUnlock) {
                        if (this._isMaxStar) m.UIUtlity.ShowFloatingHint("artifact_max_star".ToUILocale());
                        else if (2 != this._starConfig.Type) {
                            var t = this.GetUpStarPieceData();
                            if (t[0] < t[1]) I.default.ShowItemGetWay(this._config.PieceId);
                            else {
                                var n = d.default.GetAttrDatas(this._model, this._config),
                                    o = this._starConfig.Id,
                                    r = new c.Req_Team2_ArtefactUpgradeStar;
                                r.Sid = this._config.Id, r.NewStar = this._starConfig.NextId, r.NewNodeLevel = 0, u.RpcComponent.Instance.Call(r, function() {
                                    e._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e._artifactId);
                                    var t = {},
                                        r = d.default.GetAttrDatas(e._model, e._config),
                                        i = [],
                                        a = [];
                                    for (var s in r)(l = {}).AttrId = Number(s), l.AttrValue = r[s], i.push(l);
                                    for (var s in n) {
                                        var l;
                                        (l = {}).AttrId = Number(s), l.AttrValue = n[s], a.push(l)
                                    }
                                    t.CurAttrDatas = i, t.LastAttrDatas = a, t.CurStar = o, p.UIManager.Instance.ShowUIPanel(f.PanelConfig.ArtifactSuccessTipPanel.Path, e._config.Id, _.ArtifactSuccessTipType.Upstar, t), p.Game.EventDispatcher.Emit(C.EventKeys.EVENT_ARTIFACT_REFRESH_SHOW_LIST)
                                })
                            }
                        }
                    } else m.UIUtlity.ShowFloatingHint("artifact_not_unlock".ToUILocale())
                }, t.prototype.ClickPhantomActiveButton = function() {
                    var e = this;
                    if (this._isUnlock) {
                        if (this._isMaxStar) m.UIUtlity.ShowFloatingHint("artifact_max_star".ToUILocale());
                        else if (1 != this._starConfig.Type) {
                            for (var t = n.GetPhantomConsumeData(this._artifactId), o = 0; o < t.length; o++) {
                                var r = t[o];
                                if (!u.DataCenter.Instance.IsItemEnough(r.ItemId, r.ItemValue)) return void I.default.ShowItemGetWay(r.ItemId)
                            }
                            var i = d.default.GetAttrDatas(this._model, this._config),
                                a = this._starConfig.Id,
                                s = u.DataCenter.Instance.GetIntData(v.UserDataKey.Power);
                            if (this._model.NodeLevel == this._starConfig.NodeMaterials.length - 1 && this._starConfig.NextId > 0) {
                                var h = u.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._starConfig.NextId),
                                    y = this._starConfig.Star != h.Star,
                                    g = this._starConfig.Id.ToArtifactPhantomDesc();
                                (b = new c.Req_Team2_ArtefactUpgradeStar).Sid = this._config.Id, b.NewStar = this._starConfig.NextId, b.NewNodeLevel = 0, u.RpcComponent.Instance.Call(b, function() {
                                    e._model = u.DataCenter.Instance.GetDataById(c.Artefact_Model, e._artifactId);
                                    var t = {},
                                        n = d.default.GetAttrDatas(e._model, e._config),
                                        o = [],
                                        r = [];
                                    for (var l in n)(h = {}).AttrId = Number(l), h.AttrValue = n[l], o.push(h);
                                    for (var l in i) {
                                        var h;
                                        (h = {}).AttrId = Number(l), h.AttrValue = i[l], r.push(h)
                                    }
                                    t.CurAttrDatas = o, t.LastAttrDatas = r, t.CurStar = a, y ? p.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.ArtifactSuccessTipPanel.Path, e._config.Id, _.ArtifactSuccessTipType.Upstar, t) : p.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.ArtifactSuccessTipPanel.Path, e._config.Id, _.ArtifactSuccessTipType.Phantom, t, g), p.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.BattlePowerChangePanel.Path, s, u.DataCenter.Instance.GetIntData(v.UserDataKey.Power)), p.Game.EventDispatcher.Emit(C.EventKeys.EVENT_ARTIFACT_REFRESH_SHOW_LIST)
                                })
                            } else {
                                var b;
                                (b = new c.Req_Team2_ArtefactUpgradeStar).Sid = this._config.Id, b.NewStar = this._starConfig.Id, b.NewNodeLevel = this._model.NodeLevel + 1, u.RpcComponent.Instance.Call(b, function() {
                                    p.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattlePowerChangePanel.Path, s, u.DataCenter.Instance.GetIntData(v.UserDataKey.Power)), p.Game.EventDispatcher.Emit(C.EventKeys.EVENT_ARTIFACT_REFRESH_SHOW_LIST)
                                })
                            }
                        }
                    } else m.UIUtlity.ShowFloatingHint("artifact_not_unlock".ToUILocale())
                }, t.prototype.OnClickItem = function(e, t) {
                    if (-1 != this.ItemNode.children.indexOf(t) || -1 != this.ConsumeNode.children.indexOf(t)) {
                        var n = t.getComponent(g.ItemComponent).ItemId,
                            o = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPiece_Config, n);
                        if (o && o.SubType == v.ItemPieceType.ArtefactPiece) {
                            var r = u.ConfigDataComponent.Instance.GetConfigById(l.ItemArtefactCard_Config, o.CardId),
                                i = {};
                            i.Type = S.CommonItemInfoType.Artifact, i.IsSelf = !0, i.IsShowButtons = !1, i.ItemId = r.ArtefactId, p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonItemInfoPanel.Path, i)
                        } else m.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                    }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    }), this._levelPrefab = null, this._upStarAttrPrefab = null, this._phantomAttrPrefab = null, this._itemPrefab = null
                }, t.prototype.OnSkillInfo = function() {
                    var e = d.default.GetArtifactSkillDatas(this._artifactId);
                    p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonSkillStarDescPanel.Path, e)
                }, i([R(cc.Node)], t.prototype, "AttrTitleNode", void 0), i([R(cc.Label)], t.prototype, "TitleAttr", void 0), i([R(cc.Label)], t.prototype, "TitleSkill", void 0), i([R(cc.Node)], t.prototype, "UpStarAttrNode", void 0), i([R(cc.Node)], t.prototype, "UpStarAttrContent", void 0), i([R(cc.Node)], t.prototype, "PhantomAttrNode", void 0), i([R(cc.Node)], t.prototype, "PhantomAttrContent", void 0), i([R(cc.Label)], t.prototype, "SkillName", void 0), i([R(cc.RichText)], t.prototype, "SkillDesc", void 0), i([R(cc.Node)], t.prototype, "SkillLevelNode", void 0), i([R(cc.Node)], t.prototype, "UpStarNode", void 0), i([R(cc.Node)], t.prototype, "ItemNode", void 0), i([R(w.default)], t.prototype, "CurrencyBarItem", void 0), i([R(cc.Button)], t.prototype, "UpStarActiveButton", void 0), i([R(cc.Label)], t.prototype, "UpStarActiveLabel", void 0), i([R(cc.Button)], t.prototype, "UpStarButton", void 0), i([R(cc.Label)], t.prototype, "UpStarLabel", void 0), i([R(cc.Node)], t.prototype, "PhantomNode", void 0), i([R(cc.Node)], t.prototype, "ConsumeNode", void 0), i([R(cc.Button)], t.prototype, "PhantomActiveButton", void 0), i([R(cc.Label)], t.prototype, "PhantomActiveLabel", void 0), i([R(cc.Node)], t.prototype, "MaxNode", void 0), i([R(cc.Label)], t.prototype, "MaxLabel", void 0), i([R(cc.Button)], t.prototype, "SkillInfoBtn", void 0), n = i([T], t)
            }(cc.Component);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent5": "AttrComponent5",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "./ArtifactDetailInfoComponent": "ArtifactDetailInfoComponent",
        "./ArtifactSuccessTipPanel": "ArtifactSuccessTipPanel",
        "./ArtifactUpStarAttrComponent": "ArtifactUpStarAttrComponent",
        "./CommonItemInfoPanel": "CommonItemInfoPanel"
    }],
    AssDiscountCurrencyComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f0483rpsa1FUqDoYraH5K50", "AssDiscountCurrencyComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/DataCenter"),
            s = e("./CurrencyBarItem"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DeleLine = null, t.PriceTip = null, t.PriceLabel = null, t.CurrencyComponent = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n) {
                    this.DeleLine.scaleX = ("" + n).split("").length / 4, this.PriceLabel.string = "totalPrice".ToUILocale(), this.CurrencyComponent.Init(e, !1, n), this.PriceTip.string = t.toString(), this.PriceTip.node.active = !(0 == t) && n != t, a.DataCenter.Instance.GetItemCount(e) < n ? this.CurrencyComponent.SetFixedColor((new cc.Color).fromHEX("#ff0000")) : this.CurrencyComponent.SetFixedColor((new cc.Color).fromHEX("#ffffff"))
                }, i([u(cc.Node)], t.prototype, "DeleLine", void 0), i([u(cc.Label)], t.prototype, "PriceTip", void 0), i([u(cc.Label)], t.prototype, "PriceLabel", void 0), i([u(s.default)], t.prototype, "CurrencyComponent", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Components/DataCenter": "DataCenter",
        "./CurrencyBarItem": "CurrencyBarItem"
    }],
    AssaultOperationAchievTaskItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5fd8amRNZFHKKxHK9C3gwHy", "AssaultOperationAchievTaskItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./LayoutRewards"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TaskName = null, t.ProgressValue = null, t.RuleBtn = null, t.GetRewardBtn = null, t.GetRewardBtnLabel = null, t.GoToBtn = null, t.GoToBtnLabel = null, t.UndoneBtn = null, t.UndoneBtnLabel = null, t.HasGot = null, t.HasGotLabel = null, t.LayoutRewards = null, t.Widgets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.HasGotLabel.string = "already_receive".ToUILocale(), this.GoToBtnLabel.string = "LoverArrow_Start_Go".ToUILocale(), this.GetRewardBtnLabel.string = "GiftCode_receive".ToUILocale(), this.UndoneBtnLabel.string = "allUserImpactRank_NoComplete".ToUILocale(), this.GoToBtn.node.on("click", this.GoToFunctionPanel, this), this.GetRewardBtn.node.on("click", this.OnGetRewards, this), this.RuleBtn.node.on("click", this.OnRule, this)
                }, t.prototype.Init = function(e, t) {
                    this._index = t, this._achievTaskItemParam = e, this._itemPrefab = e.ItemPrefab, this._getRewardCallBack = e.GetRewardCallback, e.GotoCallBack && (this._gotoCallBack = e.GotoCallBack), e.Width && this.SetWidth(e.Width), e.Rule ? this.RuleBtn.node.active = !0 : this.RuleBtn.node.active = !1, this.TaskName.string = e.TaskTitle, this.SetLimit(), this.LayoutRewards.InitWithIntArray(e.Rewards, this._itemPrefab), this.SetButtons()
                }, t.prototype.SetLimit = function() {
                    var e = this._achievTaskItemParam.Progress;
                    e >= this._achievTaskItemParam.Limit ? this.ProgressValue.string = "<outline color=#202434 width=3><color=#6EEEA>" + e.FmtCurrency() + "/" + this._achievTaskItemParam.Limit.FmtCurrency() + "</color></outline>" : this.ProgressValue.string = "<outline color=#202434 width=3><color=#FF403E>" + e.FmtCurrency() + "/" + this._achievTaskItemParam.Limit.FmtCurrency() + "</color></outline>"
                }, t.prototype.SetButtons = function() {
                    this.HasGot.active = !1, this.GetRewardBtn.node.active = !1, this.GoToBtn.node.active = !1, this.UndoneBtn.node.active = !1, this._achievTaskItemParam.IsCompleted ? this.HasGot.active = !0 : this._achievTaskItemParam.Progress >= this._achievTaskItemParam.Limit ? this.GetRewardBtn.node.active = !0 : this._gotoCallBack ? this.GoToBtn.node.active = !0 : this.UndoneBtn.node.active = !0
                }, t.prototype.SetWidth = function(e) {
                    this.node.width = e;
                    for (var t = 0; t < this.Widgets.length; t++) this.Widgets[t].updateAlignment()
                }, t.prototype.GoToFunctionPanel = function() {
                    this._gotoCallBack && this._gotoCallBack()
                }, t.prototype.OnGetRewards = function() {
                    this._getRewardCallBack(this._achievTaskItemParam.TaskId)
                }, t.prototype.OnRule = function() {
                    this._achievTaskItemParam.Rule && this._achievTaskItemParam.Rule(this._achievTaskItemParam.TaskId)
                }, i([c(cc.Label)], t.prototype, "TaskName", void 0), i([c(cc.RichText)], t.prototype, "ProgressValue", void 0), i([c(cc.Button)], t.prototype, "RuleBtn", void 0), i([c(cc.Button)], t.prototype, "GetRewardBtn", void 0), i([c(cc.Label)], t.prototype, "GetRewardBtnLabel", void 0), i([c(cc.Button)], t.prototype, "GoToBtn", void 0), i([c(cc.Label)], t.prototype, "GoToBtnLabel", void 0), i([c(cc.Button)], t.prototype, "UndoneBtn", void 0), i([c(cc.Label)], t.prototype, "UndoneBtnLabel", void 0), i([c(cc.Node)], t.prototype, "HasGot", void 0), i([c(cc.Label)], t.prototype, "HasGotLabel", void 0), i([c(a.default)], t.prototype, "LayoutRewards", void 0), i([c(cc.Widget)], t.prototype, "Widgets", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./LayoutRewards": "LayoutRewards"
    }],
    AssaultOperationAchieveRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d3e16zm/xdAorH+C3PuXirl", "AssaultOperationAchieveRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = e("../../Components/RpcComponent"),
            f = e("../../RedDot/RedDotManager"),
            y = e("../Components/AsyncLayout"),
            g = e("./AssaultOperationAchievTaskItem"),
            m = e("./AssaultOperationPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !0), t.Title = null, t.AsyncLayout = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("AssaultOperation/AssaultOperationAchievTaskItem"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemComponentPrefab = e[0], o._activityTaskItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "assaultOperation_achieveReward_title".ToUILocale(), this.AsyncLayout.Init(this._activityTaskItemPrefab, this.OnInitializeItem.bind(this))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    e.getComponent(g.default).Init({
                        ActivityId: this._activityId,
                        TaskId: n.AchieveTaskConfigs[t].Id,
                        Rewards: n.AchieveTaskConfigs[t].Rewards,
                        Progress: this._showAchieveRewardData.Num,
                        Limit: n.AchieveTaskConfigs[t].Limit,
                        TaskTitle: "assaultOperation_getExploits".ToUILocale().Fmt(n.AchieveTaskConfigs[t].Limit),
                        IsCompleted: 1 == this._showAchieveRewardData.Got[n.AchieveTaskConfigs[t].Id],
                        ItemPrefab: this._itemComponentPrefab,
                        GetRewardCallback: this.OnGetTaskRewards.bind(this)
                    }, t)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = m.default.ActivityId, this._activityConfig = d.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.DisPlay = function(t) {
                    var o = this;
                    if (e.prototype.DisPlay.call(this, t), t) n.AchieveTaskConfigs.sort(this.SortModel.bind(this)), this.AsyncLayout.ReRender();
                    else {
                        n.AchieveTaskConfigs.length <= 0 && (n.AchieveTaskConfigs = u.default.Instance.AssaultOperationSetTaskConfig(this._activityConfig.GrassPart.AchieveItems));
                        var r = new l.Req_AssaultOperation_ShowAchieveReward;
                        r.ActivityId = this._activityId, h.RpcComponent.Instance.Call(r, function(e) {
                            o._showAchieveRewardData = e, n.AchieveTaskConfigs.sort(o.SortModel.bind(o)), o.AsyncLayout.RenderLayout(n.AchieveTaskConfigs.length)
                        })
                    }
                }, t.prototype.SortModel = function(e, t) {
                    return 1 == this._showAchieveRewardData.Got[e.Id] && 1 != this._showAchieveRewardData.Got[t.Id] ? 1 : 1 != this._showAchieveRewardData.Got[e.Id] && 1 == this._showAchieveRewardData.Got[t.Id] ? -1 : e.Limit <= this._showAchieveRewardData.Num && t.Limit > this._showAchieveRewardData.Num ? -1 : e.Limit > this._showAchieveRewardData.Num && t.Limit <= this._showAchieveRewardData.Num ? 1 : e.Id - t.Id
                }, t.prototype.OnGetTaskRewards = function(e) {
                    var t = this,
                        n = l.Req_AssaultOperation_SLGReceiveAchieveReward.create();
                    n.ActivityId = m.default.ActivityId, n.Type = e, h.RpcComponent.Instance.Call(n, function(n) {
                        t._showAchieveRewardData.Got[e] = 1, c.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, n.Rewards)
                    })
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), f.RedDotManager.Instance.RefreshInstanceRedDotNode(f.RedDotManager.Instance.InstanceRedDot.AssaultAchieveRewardsNode, {
                        Value1: m.default.ActivityId
                    })
                }, t.AchieveTaskConfigs = [], i([C(cc.Label)], t.prototype, "Title", void 0), i([C(y.default)], t.prototype, "AsyncLayout", void 0), n = i([_], t)
            }(c.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AssaultOperationAchievTaskItem": "AssaultOperationAchievTaskItem",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationAssaultTargetItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d9f1ceyCINKYJmxXdzNwKw+", "AssaultOperationAssaultTargetItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../Panel/AssaultOperationModel"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MapName = null, t.MapImage = null, t.Toggle = null, t.HintBtn = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.HintBtn.node.on("click", function() {
                        a.UIUtlity.ShowFloatingHint("assault_commandTargrtHasSelected".ToUILocale())
                    })
                }, t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = !0), this._isInit || (this._isInit = !0, this._basePanel = e);
                    var o = t.Id;
                    this.MapName.string = this._basePanel.IdToName[o];
                    var r = "building_" + s.AssaultOperationModel.GetResourceTypeIcon(t.Type);
                    this.MapImage.spriteFrame = this._basePanel.ResourceImages.getSpriteFrame(r), this.Toggle.enabled = n, this.HintBtn.node.active = !n
                }, i([u(cc.Label)], t.prototype, "MapName", void 0), i([u(cc.Sprite)], t.prototype, "MapImage", void 0), i([u(cc.Toggle)], t.prototype, "Toggle", void 0), i([u(cc.Button)], t.prototype, "HintBtn", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationAttackTargetPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "31026sqZsVBFoRtTULcLbeB", "AssaultOperationAttackTargetPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("./AssaultOperationModel"),
            h = e("../../../Consts/Consts"),
            f = e("../Components/AssaultOperationAssaultTargetItem"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed, !1), t.Title = null, t.ResourceNode = null, t.MapList = null, t._toggles = [], t._resourceConfigs = [], t._allResourcePoints = [], t._idToName = {}, t._currencyTargets = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "IdToName", {
                    get: function() {
                        return this._idToName
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ResourceImages", {
                    get: function() {
                        return this._resourceImages
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset("AssaultOperation/Png/AssaultOperationPanel", cc.SpriteAtlas)];
                                case 1:
                                    return e._resourceImages = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._allResourcePoints = d.AssaultOperationModel.GetAllSimpleResourceInfos(), this._targetSortId = t[0], this._currencyTargets = t[1], t.length > 2 && (this._callBack = t[2]), this._selectIndex = -1
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.Title.string = ("assault_target_" + (this._targetSortId + 1)).ToUILocale(), this.SetResourceIdToAllianceName(), this.SetToggles())
                }, t.prototype.SetResourceIdToAllianceName = function() {
                    for (var e = 0; e < this._allResourcePoints.length; e++) {
                        var t = this._allResourcePoints[e].Id,
                            n = c.ConfigDataComponent.Instance.GetConfigById(p.AssaultOperationResourceItem_Config, t);
                        if (this._resourceConfigs.push(n), n.Type == h.AssaultOperationResourceType.Headquarters) {
                            var o = d.AssaultOperationModel.GetAllianceInfo(this._allResourcePoints[e].OccupyAllianceId, d.AssaultOperationGetAllianceTypeBy.AllianceId)[0];
                            d.AssaultOperationModel.GetAllianceInfo(t), this._idToName[t] = o
                        } else this._idToName[t] = t.ToAssualtOperationResourceName()
                    }
                    this._resourceConfigs.sort(function(e, t) {
                        return e.Type - t.Type
                    })
                }, t.prototype.SetToggles = function() {
                    var e = 0;
                    for (this._resourceConfigs.sort; e < this._resourceConfigs.length; e++) {
                        var t = this._toggles[e];
                        if (!t) {
                            var n = cc.instantiate(this.ResourceNode);
                            n.setParent(this.MapList), t = n.getComponent(f.default), this._toggles.push(t), t.Toggle.node.name = e.toString(), n.on("toggle", this.OnSelectResource, this)
                        }
                        t.node.active = !0, t.Toggle.isChecked = !1;
                        for (var o = !0, r = 0; r < this._currencyTargets.length; r++) this._currencyTargets[r] && this._currencyTargets[r].Id == this._resourceConfigs[e].Id && (o = !1);
                        t.Init(this, this._resourceConfigs[e], o)
                    }
                    for (; e < this._toggles.length; e++) this._toggles[e].node.active = !1
                }, t.prototype.OnSelectResource = function(e) {
                    var t = parseInt(e.node.name);
                    this._selectIndex = t
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), -1 !== this._selectIndex && this._callBack && this._callBack(this._resourceConfigs[this._selectIndex])
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Node)], t.prototype, "ResourceNode", void 0), i([m(cc.Node)], t.prototype, "MapList", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Components/AssaultOperationAssaultTargetItem": "AssaultOperationAssaultTargetItem",
        "./AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationBattleItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ad4247HKnZJgrqg3loILU5v", "AssaultOperationBattleItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/CustomProgressBar"),
            s = e("./AssaultOperationModel"),
            l = e("../../../Consts/Consts"),
            c = e("../../Components/Components"),
            u = e("../Components/CountdownLabel"),
            p = e("../Components/HeadComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttackerHeaderNode = null, t.DefenderHeaderNode = null, t.AttackerName = null, t.DefenderName = null, t.TimeCountDown = null, t.AttackerProgressBar = null, t.DefenderProgressBar = null, t.AttackerProgressBarValue = null, t.DefenderProgressBarValue = null, t.SelfTag = null, t.SelfTagLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    var n;
                    this._basePanel = e, this._battleInfo = t, this._isInit || (this.SelfTagLabel.string = "assaultOperation_self".ToUILocale(), this._isInit = !0), this._totalBattleTime = this._basePanel.BattleDuration, this._attackerHeader || ((n = cc.instantiate(e.HeaderPrefab)).setParent(this.AttackerHeaderNode), this._attackerHeader = n.getComponent(p.default)), this._defenderHeader || ((n = cc.instantiate(e.HeaderPrefab)).setParent(this.DefenderHeaderNode), this._defenderHeader = n.getComponent(p.default)), this.ConfigPlayerInfo(t[s.AssaultOperationBattleInfo.AttackUid], !0), this.ConfigPlayerInfo(t[s.AssaultOperationBattleInfo.DefenderUid], !1), this.TimeCountDown.Init(this._battleInfo[s.AssaultOperationBattleInfo.BattleEndTime], ""), this.GetPlayerCurEnergy(), this.SetSelfTag()
                }, t.prototype.SetSelfTag = function() {
                    var e = c.DataCenter.Instance.Uid;
                    this._battleInfo[s.AssaultOperationBattleInfo.AttackUid] == e ? (this.SelfTag.active = !0, this.SelfTag.x = -429, this.SelfTag.scaleX = 1, this.SelfTagLabel.node.scaleX = 1) : this._battleInfo[s.AssaultOperationBattleInfo.DefenderUid] == e ? (this.SelfTag.active = !0, this.SelfTag.x = 429, this.SelfTag.scaleX = -1, this.SelfTagLabel.node.scaleX = -1) : this.SelfTag.active = !1
                }, t.prototype.OnUpdate = function(e) {
                    this._attackerDecreaseSpeed && (this.AttackerProgressBar.progress = this._attackerCurValue / this._attackerLimit, this.AttackerProgressBarValue.string = Math.floor(this._attackerCurValue) + "/" + Math.floor(this._attackerLimit), this._attackerCurValue <= this._battleInfo[s.AssaultOperationBattleInfo.AttackerLeftEnergyValue] ? (this._attackerCurValue = Math.max(0, this._battleInfo[s.AssaultOperationBattleInfo.AttackerLeftEnergyValue]), this._attackerDecreaseSpeed = null) : (this._attackerCurValue -= this._attackerDecreaseSpeed * e, this._attackerCurValue < 0 && (this._attackerCurValue = 0))), this._defenderDecreaseSpeed && (this.DefenderProgressBar.progress = this._defenderCurValue / this._defenderLimit, this.DefenderProgressBarValue.string = Math.floor(this._defenderCurValue) + "/" + Math.floor(this._defenderLimit), this._defenderCurValue <= this._battleInfo[s.AssaultOperationBattleInfo.DefenderLeftEnergyValue] ? (this._defenderCurValue = Math.max(0, this._battleInfo[s.AssaultOperationBattleInfo.DefenderLeftEnergyValue]), this._defenderDecreaseSpeed = null) : (this._defenderCurValue -= this._defenderDecreaseSpeed * e, this._defenderCurValue < 0 && (this._defenderCurValue = 0)))
                }, t.prototype.GetPlayerCurEnergy = function() {
                    var e, t, n, o = c.RpcComponent.Instance.ServerTime,
                        r = this._battleInfo[s.AssaultOperationBattleInfo.BattleEndTime] - o,
                        i = this._totalBattleTime * l.Etc.SecondDuration - r,
                        a = this._battleInfo[s.AssaultOperationBattleInfo.AttackUid];
                    n = (e = this.GetPlayerBeforeEnergy(a))[0], this._attackerLimit = e[1];
                    var u = this._battleInfo[s.AssaultOperationBattleInfo.AttackerLeftEnergyValue];
                    this._attackerDecreaseSpeed = (n - u) / this._totalBattleTime, this._attackerCurValue = n - i / 1e3 * this._attackerDecreaseSpeed, a = this._battleInfo[s.AssaultOperationBattleInfo.DefenderUid], n = (t = this.GetPlayerBeforeEnergy(a))[0], this._defenderLimit = t[1], u = this._battleInfo[s.AssaultOperationBattleInfo.DefenderLeftEnergyValue], this._defenderDecreaseSpeed = (n - u) / this._totalBattleTime, this._defenderCurValue = n - i / 1e3 * this._defenderDecreaseSpeed
                }, t.prototype.GetPlayerBeforeEnergy = function(e) {
                    var t, n;
                    if (e <= 0) t = s.AssaultOperationModel.GetMonsterEnergy(this._basePanel.ResourceItemConfig.Id, e), n = this._basePanel.ResourceItemConfig.Monster[1];
                    else {
                        var o = s.AssaultOperationModel.GetPlayerInfo(e);
                        o && (t = o.ArrayParam[0], n = o.ArrayParam[1])
                    }
                    return [t, n]
                }, t.prototype.ConfigPlayerInfo = function(e, t) {
                    if (e > 0) {
                        var n = s.AssaultOperationModel.GetPlayerInfo(e);
                        n && (t ? (this.AttackerName.string = n.Name, this._attackerHeader.SetUI(n.HeadIcon, n.HeadFrame)) : (this.DefenderName.string = n.Name, this._defenderHeader.SetUI(n.HeadIcon, n.HeadFrame)))
                    } else {
                        this.DefenderName.string = "assaultOperation_monsterName".ToUILocale();
                        var o = s.AssaultOperationModel.GetMonsterHeaderId(this._basePanel.ResourceItemConfig.Type);
                        t ? (this._attackerHeader.SetCustomHeadIcon(this._basePanel.Atlas.getSpriteFrame("monsterHeader_" + o)), this._attackerHeader.SetHeadFrame(-1)) : (this._defenderHeader.SetCustomHeadIcon(this._basePanel.Atlas.getSpriteFrame("monsterHeader_" + o)), this._defenderHeader.SetHeadFrame(-1))
                    }
                }, i([f(cc.Node)], t.prototype, "AttackerHeaderNode", void 0), i([f(cc.Node)], t.prototype, "DefenderHeaderNode", void 0), i([f(cc.Label)], t.prototype, "AttackerName", void 0), i([f(cc.Label)], t.prototype, "DefenderName", void 0), i([f(u.default)], t.prototype, "TimeCountDown", void 0), i([f(a.default)], t.prototype, "AttackerProgressBar", void 0), i([f(a.default)], t.prototype, "DefenderProgressBar", void 0), i([f(cc.Label)], t.prototype, "AttackerProgressBarValue", void 0), i([f(cc.Label)], t.prototype, "DefenderProgressBarValue", void 0), i([f(cc.Node)], t.prototype, "SelfTag", void 0), i([f(cc.Label)], t.prototype, "SelfTagLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../Components/Components": "Components",
        "../Components/CountdownLabel": "CountdownLabel",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/HeadComponent": "HeadComponent",
        "./AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationBattleRecordComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ec3c8WV3ndH+p0ZLuaVv/tW", "AssaultOperationBattleRecordComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = e("../../../Consts/Consts"),
            c = e("./AssaultOperationModel"),
            u = e("../Components/HeadComponent"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.ResourceName = null, t.SelfHeaderNode = null, t.OtherHeaderNode = null, t.SelfName = null, t.SelfEnergyTitleLabel = null, t.SelfEnergyLabel = null, t.SelfGetLabel = null, t.OtherName = null, t.OtherEnergyTitleLabel = null, t.OtherEnergyLabel = null, t.OtherGetLabel = null, t.ResultIconBg = null, t.ResultIcon = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._basePanel = e, this._battleMessage = t;
                    var n = s.ConfigDataComponent.Instance.GetConfigById(a.AssaultOperationResourceItem_Config, t.ResourcePonintId);
                    n.Type == l.AssaultOperationResourceType.Headquarters ? this.ResourceName.string = "[" + c.AssaultOperationModel.GetAllianceInfo(t.AllianceId, c.AssaultOperationGetAllianceTypeBy.AllianceId)[0] + "] " + "assaultOperation_resourceName_99".ToUILocale() : this.ResourceName.string = "" + n.Id.ToAssualtOperationResourceName(), this.ConfigResultIcon(), this.SelfName.string = s.DataCenter.Instance.GetStringData(l.UserDataKey.RoleName), this.SelfEnergyTitleLabel.string = "assaultOperation_getContribute".ToUILocale(), this.OtherEnergyTitleLabel.string = "assaultOperation_consumeEnemy".ToUILocale(), this.SelfEnergyLabel.string = "<outline width=3 color=#202434>" + "assault_force_power".ToUILocale().Fmt("<color=#6eeeA7>" + t.MyEnergyValue + "</color>") + "</outline>", this.SelfGetLabel.string = t.MyCostEnergyValue.toString(), this.OtherEnergyLabel.string = "<outline width=3 color=#202434>" + "assault_force_power".ToUILocale().Fmt("<color=#6eeeA7>" + t.TargetEnergyValue + "</color>") + "</outline>", this.OtherGetLabel.string = t.TargetCostEnergyValue.toString(), this.ConfigHeaderComponents(n)
                }, t.prototype.ConfigResultIcon = function() {
                    var e, t;
                    this._battleMessage.MyCostEnergyValue < this._battleMessage.MyEnergyValue ? (e = "Win", t = "winBg", this.Bg.scaleX = 1) : (e = "Lose", t = "loseBg", this.Bg.scaleX = -1), this.ResultIcon.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame(e), this.ResultIconBg.spriteFrame = this._basePanel.Atlas.getSpriteFrame(t)
                }, t.prototype.ConfigHeaderComponents = function(e) {
                    var t;
                    if (this._selfHeader || ((t = cc.instantiate(this._basePanel.HeaderPrefab)).setParent(this.SelfHeaderNode), this._selfHeader = t.getComponent(u.default)), this._selfHeader.AutoSetUI(), this._otherHeader || ((t = cc.instantiate(this._basePanel.HeaderPrefab)).setParent(this.OtherHeaderNode), this._otherHeader = t.getComponent(u.default)), this._battleMessage.TargetUid <= 0) {
                        this.OtherName.string = "assaultOperation_monsterName".ToUILocale();
                        var n = c.AssaultOperationModel.GetMonsterHeaderId(e.Type);
                        this._otherHeader.SetCustomHeadIcon(this._basePanel.Atlas.getSpriteFrame("monsterHeader_" + n)), this._otherHeader.SetHeadFrame(-1)
                    } else {
                        var o = this._basePanel.PlayerInfoMap[this._battleMessage.TargetUid];
                        this.OtherName.string = o.Name, this._otherHeader.SetUI(o.HeadIcon, o.HeadFrame)
                    }
                }, i([f(cc.Node)], t.prototype, "Bg", void 0), i([f(cc.Label)], t.prototype, "ResourceName", void 0), i([f(cc.Node)], t.prototype, "SelfHeaderNode", void 0), i([f(cc.Node)], t.prototype, "OtherHeaderNode", void 0), i([f(cc.Label)], t.prototype, "SelfName", void 0), i([f(cc.Label)], t.prototype, "SelfEnergyTitleLabel", void 0), i([f(cc.RichText)], t.prototype, "SelfEnergyLabel", void 0), i([f(cc.Label)], t.prototype, "SelfGetLabel", void 0), i([f(cc.Label)], t.prototype, "OtherName", void 0), i([f(cc.Label)], t.prototype, "OtherEnergyTitleLabel", void 0), i([f(cc.RichText)], t.prototype, "OtherEnergyLabel", void 0), i([f(cc.Label)], t.prototype, "OtherGetLabel", void 0), i([f(cc.Sprite)], t.prototype, "ResultIconBg", void 0), i([f(cc.Sprite)], t.prototype, "ResultIcon", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "./AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationBattleRecordPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c1489eRk55KJJ7h/SNs/vDc", "AssaultOperationBattleRecordPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Components/CustomToggle"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./AssaultOperationPanel"),
            g = e("../../Components/RpcComponent"),
            m = e("./AssaultOperationBattleRecordComponent"),
            I = e("./AssaultOperationBuildingRecordComponent"),
            _ = e("../../Components/Components"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/AsyncLayout"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Player = 0] = "Player", e[e.Building = 1] = "Building"
        })(l || (l = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !1), t.PanelTitle = null, t.EmptyNode = null, t.EmptyNodeLabel = null, t.BottomTip = null, t.BattleRecordScrollView = null, t.BuildingRecordScrollView = null, t.BattleRecordAsyncLayout = null, t.BuildingRecordAsyncLayout = null, t.Tabs = [], t.TabLangKeys = ["battleReport_self", "battleReport_building"], t._selfRecordRedDot = {}, t._buildingRecordRedDot = {}, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "Atlas", {
                get: function() {
                    return this._atlas
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "HeaderPrefab", {
                get: function() {
                    return this._headerComponentPrefab
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "PlayerInfoMap", {
                get: function() {
                    return this._playerInfoMap
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.SlgPersonalBattleMessage), this.BindRedDot, this), c.Game.EventDispatcher.On(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.SlgAllianceBattleMessage), this.BindRedDot, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.SlgPersonalBattleMessage), this.BindRedDot, this), c.Game.EventDispatcher.Off(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.SlgAllianceBattleMessage), this.BindRedDot, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AssaultOperation/AssaultOperationBattleRecordComponent", cc.Prefab), n = this.LoadDynamicAsset("AssaultOperation/AssaultOperationBuildingRecordComponent", cc.Prefab), o = this.LoadDynamicAsset("AssaultOperation/Png/AssaultOperationPanel", cc.SpriteAtlas), r = this.LoadDynamicAsset(f.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._battleRecordPrefab = e[0], i._buildingRecordPrefab = e[1], i._atlas = e[2], i._headerComponentPrefab = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.EmptyNodeLabel.string = "ActivityChampion_None_Report_Tip".ToUILocale(), this.BattleRecordAsyncLayout.Init(this._battleRecordPrefab, this.OnRenderBattleRecordItem.bind(this)), this.BuildingRecordAsyncLayout.Init(this._buildingRecordPrefab, this.OnRenderBuildingRecordItem.bind(this));
                for (var t = 0; t < this.Tabs.length; t++) {
                    var n = this.Tabs[t];
                    n.name = t.toString(), n.Init(this.TabLangKeys[t].ToUILocale()), n.node.on("toggle", this.OnSwitchTab, this)
                }
                this.BottomTip.string = "maxLogSaveCount".ToUILocale()
            }, t.prototype.InitData = function() {
                e.prototype.InitData.call(this)
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.BindRedDot(), this.SetPanelTab())
            }, t.prototype.BindRedDot = function() {
                var e = !1;
                _.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgPersonalBattleMessage) > 0 && (e = !0), C.RedDotManager.Instance.BindNodeByResult(this.Tabs[l.Player].node, this._selfRecordRedDot, e), e = !1, _.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgAllianceBattleMessage) > 0 && (e = !0), C.RedDotManager.Instance.BindNodeByResult(this.Tabs[l.Building].node, this._buildingRecordRedDot, e)
            }, t.prototype.SetPanelTab = function() {
                this.Tabs[l.Player].isChecked = !0, this.RefreshPanelInfo(l.Player)
            }, t.prototype.RefreshPanelInfo = function(e) {
                switch (this._curTab = e, this.PanelTitle.string = this.TabLangKeys[this._curTab].ToUILocale(), this.BattleRecordScrollView.node.active = !1, this.BuildingRecordScrollView.node.active = !1, this.EmptyNode.active = !1, this._curTab) {
                    case l.Player:
                        this.ConfigSelfBattleRecordInfo();
                        break;
                    case l.Building:
                        this.ConfigBuildingBattleRecordInfo()
                }
            }, t.prototype.ConfigSelfBattleRecordInfo = function() {
                var e = this;
                if (this.BattleRecordScrollView.node.active = !0, this._selfBattleRecord) this._selfBattleRecord.BattleMessages.length <= 0 && (this.EmptyNode.active = !0);
                else {
                    var t = p.Req_AssaultOperation_GetPlayerBattleMessage.create();
                    t.ActivityId = y.default.ActivityId, g.RpcComponent.Instance.Call(t, function(t) {
                        e._selfBattleRecord = t, e._playerInfoMap = {};
                        for (var n = 0; n < t.playerInfos.length; n++) e._playerInfoMap[t.playerInfos[n].Uid] = t.playerInfos[n];
                        e._selfBattleRecord.BattleMessages.length <= 0 && (e.EmptyNode.active = !0), e.BattleRecordAsyncLayout.RenderLayout(e._selfBattleRecord.BattleMessages.length)
                    })
                }
            }, t.prototype.ConfigBuildingBattleRecordInfo = function() {
                var e = this;
                if (this.BuildingRecordScrollView.node.active = !0, this._buildingBattleRecord) this._buildingBattleRecord.BattleMessage.length <= 0 && (this.EmptyNode.active = !0);
                else {
                    var t = p.Req_AssaultOperation_GetAllianceBattleMessage.create();
                    t.ActivityId = y.default.ActivityId, g.RpcComponent.Instance.Call(t, function(t) {
                        e._buildingBattleRecord = t, e.BuildingRecordAsyncLayout.RenderLayout(e._buildingBattleRecord.BattleMessage.length), e._buildingBattleRecord.BattleMessage.length <= 0 && (e.EmptyNode.active = !0)
                    })
                }
            }, t.prototype.OnRenderBattleRecordItem = function(e, t) {
                e.getComponent(m.default).Init(this, this._selfBattleRecord.BattleMessages[this._selfBattleRecord.BattleMessages.length - t - 1])
            }, t.prototype.OnRenderBuildingRecordItem = function(e, t) {
                e.getComponent(I.default).Init(this, this._buildingBattleRecord.BattleMessage[this._buildingBattleRecord.BattleMessage.length - t - 1])
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                if (t != this._curTab) {
                    switch (this._curTab) {
                        case l.Player:
                            C.RedDotManager.Instance.BindNodeByResult(this.Tabs[l.Player].node, this._selfRecordRedDot, !1);
                            break;
                        case l.Building:
                            C.RedDotManager.Instance.BindNodeByResult(this.Tabs[l.Building].node, this._buildingRecordRedDot, !1)
                    }
                    this.RefreshPanelInfo(t)
                }
            }, i([w(cc.Label)], t.prototype, "PanelTitle", void 0), i([w(cc.Node)], t.prototype, "EmptyNode", void 0), i([w(cc.Label)], t.prototype, "EmptyNodeLabel", void 0), i([w(cc.Label)], t.prototype, "BottomTip", void 0), i([w(cc.ScrollView)], t.prototype, "BattleRecordScrollView", void 0), i([w(cc.ScrollView)], t.prototype, "BuildingRecordScrollView", void 0), i([w(v.default)], t.prototype, "BattleRecordAsyncLayout", void 0), i([w(v.default)], t.prototype, "BuildingRecordAsyncLayout", void 0), i([w(h.default)], t.prototype, "Tabs", void 0), i([S], t)
        }(d.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./AssaultOperationBattleRecordComponent": "AssaultOperationBattleRecordComponent",
        "./AssaultOperationBuildingRecordComponent": "AssaultOperationBuildingRecordComponent",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationBuildingRecordComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4ac80wxpFNMw62S9dhfq1WZ", "AssaultOperationBuildingRecordComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("./AssaultOperationModel"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../Util/TimeUtil"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.OccupyOther = 1] = "OccupyOther", e[e.OccupiedByOther = 2] = "OccupiedByOther"
        })(a || (a = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.WinBgNode = null, t.LoseBgNode = null, t.TimeLabel = null, t.BuildingIcon = null, t.RecordDesc = null, t.ResultBg = null, t.ResultIcon = null, t
            }
            return r(t, e), t.prototype.Init = function(e, t) {
                this._basePanel = e;
                var n, o, r = t.Items[0],
                    i = t.Items[1],
                    h = t.Items[2],
                    f = t.Items[3],
                    y = c.ConfigDataComponent.Instance.GetConfigById(l.AssaultOperationResourceItem_Config, h);
                this.BuildingIcon.spriteFrame = this._basePanel.Atlas.getSpriteFrame("building_" + s.AssaultOperationModel.GetResourceTypeIcon(y.Type));
                var g, m, I = s.AssaultOperationModel.GetAllianceInfo(r, s.AssaultOperationGetAllianceTypeBy.AllianceId),
                    _ = I[0],
                    C = (I[1], s.AssaultOperationModel.GetAllianceInfo(i, s.AssaultOperationGetAllianceTypeBy.AllianceId)),
                    v = C[0];
                C[1], o = y.Type != u.AssaultOperationResourceType.Headquarters ? "" + h.ToAssualtOperationResourceName() : "[" + v + "] " + "assaultOperation_resourceName_99".ToUILocale(), r == s.AssaultOperationModel.GetSelfAllianceId() ? (n = "Win", m = "winBg", this.WinBgNode.active = !0, g = a.OccupyOther) : (n = "Lose", m = "loseBg", this.WinBgNode.active = !1, g = a.OccupiedByOther), this.LoseBgNode.active = !this.WinBgNode.active, this.RecordDesc.string = ("assaultOperation_buildingRecordType" + g).ToUILocale().Fmt(_, "<color=#3D9F34>" + o + "</color>"), this.ResultIcon.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame(n), this.ResultBg.spriteFrame = this._basePanel.Atlas.getSpriteFrame(m), this.TimeLabel.string = p.TimeUtil.Format("YYYY/MM/DD HH:mm:ss", f)
            }, i([y(cc.Node)], t.prototype, "WinBgNode", void 0), i([y(cc.Node)], t.prototype, "LoseBgNode", void 0), i([y(cc.Label)], t.prototype, "TimeLabel", void 0), i([y(cc.Sprite)], t.prototype, "BuildingIcon", void 0), i([y(cc.RichText)], t.prototype, "RecordDesc", void 0), i([y(cc.Sprite)], t.prototype, "ResultBg", void 0), i([y(cc.Sprite)], t.prototype, "ResultIcon", void 0), i([f], t)
        }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationChattingMiniPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "42953wZFklPIpXgbVK+V37m", "AssaultOperationChattingMiniPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../GamePlay/Components/Components"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ChattingUnreadCounter"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("./ChattingMainPanel"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("./ChattingMiniNodeId"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pMainButtons = null, t.pMessageNodes = [], t.pMessageTagNodes = [], t.pMessageTagLabels = [], t.pMessageRichTexts = [], t.pMessageRichTextForTest = null, t.pIGB = null, t.pAuxLabel = null, t.mainAtlas = null, t.emojiAtlas = null, t.headMessageIndex = 1, t.nextMessageIndex = 2, t._tweenEndY = [20, -20, -60], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(f.EventKeys.EVENT_BLACK_LIST_CHANGE, this.OnBlackListChange, this), a.Game.EventDispatcher.On(f.EventKeys.EVENT_CLOSE_CHATPANEL_REFRESH, this.RefreshMessageOnClose, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(f.EventKeys.EVENT_BLACK_LIST_CHANGE, this.OnBlackListChange, this), a.Game.EventDispatcher.Off(f.EventKeys.EVENT_CLOSE_CHATPANEL_REFRESH, this.RefreshMessageOnClose, this), n.singleton = null
                }, t.prototype.InitNodesAndComponents = function() {
                    this.headMessageIndex = 1, this.pMessageNodes[1].active = !0, this.pMessageRichTexts[1].string = "", this.nextMessageIndex = 2
                }, t.prototype.onLoad = function() {
                    a.EZLog.Debug("#####IGBIGBIGB AssaultOperationChattingMiniPanel onLoad..."), this.InitUI()
                }, t.prototype.start = function() {
                    this.RefreshMessageBuffer()
                }, t.prototype.update = function(e) {
                    n.unreadUpdateIntervalCounter += e, n.unreadUpdateIntervalCounter > n.unreadUpdateInterval && (n.unreadUpdateIntervalCounter = 0, this.UpdateUnreadCount()), n.messageUpdateIntervalCounter += e, n.messageUpdateIntervalCounter > n.messageUpdateInterval && (n.messageUpdateCounter++ > 3 && (n.messageUpdateInterval = n.messageUpdateIntervalNormal), n.messageUpdateIntervalCounter = 0, this.InsertNewMessage(!0))
                }, t.prototype.InitUI = function() {
                    this.InitNodesAndComponents(), n.singleton = this, d.default.InitEmojiCodePoint();
                    for (var e = 0; e < 3; ++e) this.pMessageNodes[e].active = !1, this.pMessageRichTexts[e].imageAtlas = this.emojiAtlas, this.pMessageTagLabels[e].string = "chatting_activity".ToUILocale();
                    this.pMessageRichTextForTest.imageAtlas = this.emojiAtlas, null == n.messageRichTextForTest && (this.pMessageRichTextForTest.node.active = !0, this.pMessageRichTextForTest.node.setParent(s.UIManager.Instance.node), this.pMessageRichTextForTest.node.setPosition(999999, 999999), n.messageRichTextForTest = this.pMessageRichTextForTest), this.pMainButtons.node.on("click", this.GotoChattingMainPanel.bind(this), this)
                }, t.prototype.GotoChattingMainPanel = function() {
                    a.UIManager.Instance.ShowUIPanel(c.PanelConfig.ChattingMainPanel.Path, null, this._defaultChannel, this._activityChannelData)
                }, t.prototype.UpdateUnreadCount = function() {
                    var e = this.GetAllUnreadMessageCount();
                    this.pIGB.Set(e)
                }, t.prototype.GetAllUnreadMessageCount = function() {
                    var e = 0;
                    return e += l.DataCenter.Instance.GetUnreadMessageCountByChannel(p.ChatChannelType.System), (e += l.DataCenter.Instance.GetUnreadMessageCountByChannel(p.ChatChannelType.Alliance)) + l.DataCenter.Instance.GetUnreadMessageCountByChannel(p.ChatChannelType.AssaultOperation)
                }, t.OnPublicMessagesComing = function(e) {
                    e && (e.Tag < 0 ? p.ChatChannelType.Alliance : e.Tag) == p.ChatChannelType.AssaultOperation && (e.Sender && l.DataCenter.Instance.InMyBlackList(e.Sender.Uid) || n.messagesBuffer.push(e))
                }, t.TranslateEmojiCodePointToRichTextBBCodeAndClampAtWidth = function(e, t, o, r) {
                    if (null != n.singleton && !n.messageClampedContentMap.has(e)) {
                        n.messageRichTextForTest.imageAtlas = null == n.singleton ? r : n.singleton.emojiAtlas, n.messageRichTextForTest.string = t;
                        for (var i = n.messageRichTextForTest.node.width, a = t, s = 0, l = o.length; s < l; ++s) {
                            var c = o[s].codePointAt(0),
                                u = d.default.GetEmojiRichTextString(c);
                            if (null != u) {
                                var p = u;
                                o[s] = p
                            }
                            if (n.messageRichTextForTest.string = o[s], a += o[s], (i += n.messageRichTextForTest.node.width) > n.maxMessageWidth) {
                                a += "...";
                                break
                            }
                        }
                        return n.messageClampedContentMap.set(e, a), a
                    }
                }, t.prototype.InsertNewMessage = function() {
                    if (0 != n.messagesBuffer.length) {
                        var e = n.messagesBuffer.shift();
                        this.pMessageTagNodes[this.nextMessageIndex].active = !0, this.pMessageNodes[this.nextMessageIndex].active = !0;
                        var t, o = this.pMessageNodes[this.nextMessageIndex].getComponent(y.default);
                        if (o && (o.messageSid = e._id), e.Type == p.ChatMessageType.EmojiImage) {
                            var r = e.IntParams[0],
                                i = l.ConfigDataComponent.Instance.GetConfigById(h.EmojiImage_Config, r);
                            t = (a = "<color=#fed94a>[" + e.Sender.Name + "]</color>") + "[" + i.Id.ToEmojiImageName() + "]"
                        } else if (n.messageClampedContentMap.has(e._id)) t = n.messageClampedContentMap.get(e._id);
                        else {
                            var a = "<color=#fed94a>[" + e.Sender.Name + "]</color>",
                                s = void 0;
                            switch (e.Type) {
                                case p.ChatMessageType.Text:
                                    s = e.Content;
                                    break;
                                case p.ChatMessageType.AllianceAdvertise:
                                    var c = e.IntParams[0],
                                        u = e.StringParams[0];
                                    s = "chatting_sysBroadcastAllianceAdvertise".ToUILocale().Fmt(c, u);
                                    break;
                                case p.ChatMessageType.CutPriceGift:
                                    s = "cutPrice_chatBubble".ToUILocale().replace(/<[^>]*>/g, "");
                                    break;
                                case p.ChatMessageType.AssaultOperationSupport:
                                    s = "assaultOperation_chatHelp".ToUILocale()
                            }
                            var f = d.default.SplitStringToArrayByCodePoint(s);
                            t = n.TranslateEmojiCodePointToRichTextBBCodeAndClampAtWidth(e._id, a, f, this.emojiAtlas), n.messageClampedContentMap.set(e._id, t)
                        }
                        null == this.pMessageRichTexts[this.nextMessageIndex].imageAtlas && (this.pMessageRichTexts[this.nextMessageIndex].imageAtlas = this.emojiAtlas), this.pMessageRichTexts[this.nextMessageIndex].string = t, this.headMessageIndex = this.nextMessageIndex;
                        for (var g = this.headMessageIndex, m = 0; m < 3; ++m) {
                            this._tweenEndY[g] > 20 && (this._tweenEndY[g] = n.positionY[3]), this.pMessageNodes[g].y > 22 && (this.pMessageNodes[g].y = n.positionY[3]);
                            var I = this._tweenEndY[g] + 40;
                            this._tweenEndY[g] = I, cc.tween(this.pMessageNodes[g]).to(n.messageShifeDuration, {
                                y: I
                            }).start(), g = (g + 1) % 3
                        }
                        this.nextMessageIndex = (this.nextMessageIndex + 1) % 3
                    }
                }, t.prototype.RefreshMessageBuffer = function() {
                    this.UpdateUnreadCount();
                    for (var e = l.DataCenter.Instance.GetChatMessagesByChannel(p.ChatChannelType.AssaultOperation), t = e.length - 1; t >= 0; t--) {
                        var o = e[t];
                        if ((!o.Sender || !l.DataCenter.Instance.InMyBlackList(o.Sender.Uid)) && (n.messagesBuffer.unshift(o), n.messagesBuffer.length >= 3)) break
                    }
                }, t.prototype.RefreshMessageOnClose = function() {
                    this.UpdateUnreadCount();
                    var e = l.DataCenter.Instance.GetChatMessagesByChannel(p.ChatChannelType.AssaultOperation);
                    if (e.length > 0) {
                        for (var t = void 0, o = e.length - 1; o >= 0; o--)
                            if (!e[o].Sender || !l.DataCenter.Instance.InMyBlackList(e[o].Sender.Uid)) {
                                t = e[o];
                                break
                            } if (!t) return;
                        var r = !1;
                        for (o = 0; o < this.pMessageNodes.length; o++) {
                            var i = this.pMessageNodes[o].getComponent(y.default);
                            if (i && i.messageSid == t._id) {
                                r = !0;
                                break
                            }
                        }
                        if (!r)
                            for (o = e.length - 1; o >= 0; o--) {
                                var a = e[o];
                                if ((!a.Sender || !l.DataCenter.Instance.InMyBlackList(a.Sender.Uid)) && (n.messagesBuffer.unshift(a), n.messagesBuffer.length >= 3)) break
                            }
                    }
                }, t.prototype.OnBlackListChange = function() {
                    for (var e = 0, t = this.pMessageTagNodes; e < t.length; e++) t[e].active = !1;
                    for (var n = 0, o = this.pMessageNodes; n < o.length; n++) o[n].active = !1;
                    this.RefreshMessageBuffer()
                }, t.prototype.SetDefalutChannel = function(e) {
                    this._defaultChannel = e
                }, t.prototype.SetActivityChannelData = function(e) {
                    this._activityChannelData = e
                }, t.singleton = null, t.messageRichTextForTest = null, t.unreadUpdateInterval = 3, t.unreadUpdateIntervalCounter = 0, t.messageShifeDuration = .5, t.messageUpdateIntervalNormal = 1, t.messageUpdateInterval = .3, t.messageUpdateIntervalCounter = 0, t.messageUpdateCounter = 0, t.positionY = [60, 20, -20, -60], t.maxMessageWidth = 300, t.messagesBuffer = [], t.messageClampedContentMap = new Map, i([I(cc.Button)], t.prototype, "pMainButtons", void 0), i([I([cc.Node])], t.prototype, "pMessageNodes", void 0), i([I([cc.Node])], t.prototype, "pMessageTagNodes", void 0), i([I([cc.Label])], t.prototype, "pMessageTagLabels", void 0), i([I([cc.RichText])], t.prototype, "pMessageRichTexts", void 0), i([I(cc.RichText)], t.prototype, "pMessageRichTextForTest", void 0), i([I(u.default)], t.prototype, "pIGB", void 0), i([I(cc.Label)], t.prototype, "pAuxLabel", void 0), i([I(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([I(cc.SpriteAtlas)], t.prototype, "emojiAtlas", void 0), n = i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./ChattingMainPanel": "ChattingMainPanel",
        "./ChattingMiniNodeId": "ChattingMiniNodeId",
        "./ChattingUnreadCounter": "ChattingUnreadCounter"
    }],
    AssaultOperationCommandItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "79af9uSAxtJXoTZECck50Wt", "AssaultOperationCommandItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./HeadComponent"),
            s = e("../../../ShareConsts/EnumType"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadContainer = null, t.Tag = null, t.TagLabel = null, t.Name = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.TagLabel.string = "allianceBase_memberTitleLeader".ToUILocale()
                }, t.prototype.Init = function(e, t) {
                    if (this.Tag.active = e.ArrayParam && e.ArrayParam.length >= 4 && e.ArrayParam[3] == s.AlliancePostType.Leader, this.Name.string = e.Name, !this._headItem) {
                        var n = cc.instantiate(t);
                        n.setParent(this.HeadContainer), this._headItem = n.getComponent(a.default)
                    }
                    this._headItem.SetUI(e.HeadIcon, e.HeadFrame)
                }, i([u(cc.Node)], t.prototype, "HeadContainer", void 0), i([u(cc.Node)], t.prototype, "Tag", void 0), i([u(cc.Label)], t.prototype, "TagLabel", void 0), i([u(cc.Label)], t.prototype, "Name", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../ShareConsts/EnumType": "EnumType",
        "./HeadComponent": "HeadComponent"
    }],
    AssaultOperationDaySettlementPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e3364dmPOlBtqUYj4iTGH1d", "AssaultOperationDaySettlementPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property;
        (function(e) {
            e[e.Win = 1] = "Win", e[e.Lose = 2] = "Lose"
        })(l || (l = {}));
        var h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.WinBgNode = null, t.LoseBgNode = null, t.NextLayerLabel = null, t.Tip = null, t.CongratulationInfo = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    return s(this, function() {
                        return e.prototype.Preload.call(this), [2]
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this);
                var n = t[0],
                    o = t[1],
                    r = t[2],
                    i = t[3];
                this.Tip.string = "assaultOperation_nextLayerRequirement".ToUILocale().Fmt(n), r <= n ? (this.WinBgNode.active = !0, this.NextLayerLabel.string = "assaultOperation_nextLayerHint".ToUILocale().Fmt(o), this.CongratulationInfo.string = "assaultOperation_congratulateNextLayer".ToUILocale().Fmt(r, i, o)) : (this.LoseBgNode.active = !0, this.NextLayerLabel.string = "assaultOperation_nextLayerFailHint".ToUILocale().Fmt(o), this.CongratulationInfo.string = "assaultOperation_failNextLayer".ToUILocale().Fmt(r, i, o))
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t)
            }, i([d(cc.Node)], t.prototype, "WinBgNode", void 0), i([d(cc.Node)], t.prototype, "LoseBgNode", void 0), i([d(cc.RichText)], t.prototype, "NextLayerLabel", void 0), i([d(cc.Label)], t.prototype, "Tip", void 0), i([d(cc.RichText)], t.prototype, "CongratulationInfo", void 0), i([p], t)
        }(c.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    AssaultOperationDeadHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a3b85w6Kv1PE47S4A2ixQHB", "AssaultOperationDeadHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.DeadHint = null, t.GoSpriteBallBtn = null, t.GoSpriteBallBtnLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GoSpriteBallBtnLabel.string = "add_force".ToUILocale(), this.GoSpriteBallBtn.node.on("click", this.OnGoSpriteBallBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0],
                        o = t[1];
                    this.DeadHint.string = "assaultOperation_deadHint".ToUILocale().Fmt(n, o)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t)
                }, t.prototype.OnGoSpriteBallBtnClick = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.AssaultOperationSpritePowerBallPanel.Path), this.Close()
                }, i([h(cc.Label)], t.prototype, "DeadHint", void 0), i([h(cc.Button)], t.prototype, "GoSpriteBallBtn", void 0), i([h(cc.Label)], t.prototype, "GoSpriteBallBtnLabel", void 0), i([d], t)
            }(c.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine"
    }],
    AssaultOperationExploitsDetailPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7cc540GMVdBxajV+hAbOpuS", "AssaultOperationExploitsDetailPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Components/AsyncLayout"),
            l = e("../Components/AssaultOperationMatchFamilyItem"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Rank = null, t.Family = null, t.Exploits = null, t.AsyncLayout = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Rank.string = "ActivityHeroTestTower_Rank".ToUILocale(), this.Family.string = "assaultOperation_familyInfo".ToUILocale(), this.Exploits.string = "assaultOperation_familyAllPower".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._allianceInfo = t[0], this._allianceFlagAtlas = t[1], this._matchFamilyPrefab = t[2]
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(l.default),
                        o = !1;
                    t == this._allianceInfo.Alliances.length - 1 && (o = !0), n.Init({
                        AllianceInfo: this._allianceInfo.Alliances[t],
                        Score: this._allianceInfo.Alliances[t].ArrayParam[1],
                        Rank: t + 1,
                        AllianceFlagAtals: this._allianceFlagAtlas
                    }, o, -100)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._init || (this._init = !0, this.AsyncLayout.Init(this._matchFamilyPrefab, this.OnInitializeItem.bind(this))), this.AsyncLayout.RenderLayout(this._allianceInfo.Alliances.length)
                }, i([p(cc.Label)], t.prototype, "Rank", void 0), i([p(cc.Label)], t.prototype, "Family", void 0), i([p(cc.Label)], t.prototype, "Exploits", void 0), i([p(s.default)], t.prototype, "AsyncLayout", void 0), i([u], t)
            }(a.BaseUIPage);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/AssaultOperationMatchFamilyItem": "AssaultOperationMatchFamilyItem",
        "../Components/AsyncLayout": "AsyncLayout"
    }],
    AssaultOperationFamilyMutualAidGotResultPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "01165Rhl3VOA70oMml72VVv", "AssaultOperationFamilyMutualAidGotResultPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Components/AsyncLayout"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Title = null, t.AsyncLayout = null, t.Progress = null, t.NameNode = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "assault_getDetail".ToUILocale(), this.AsyncLayout.Init(this.NameNode, this.OnInitializeItem.bind(this))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    cc.find("Name", e).getComponent(cc.Label).string = this._data.GotUsername[t]
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        var n = "<color=#FFE685>" + this._data.GotUsername.length + "/" + this._data.JoinedCount + "</color>";
                        this.Progress.string = "<outline color=#684C1B width=3><color=#FFFFFF>" + "assault_getDetailPalyers".ToUILocale().Fmt(n) + "</color></outline>", this.AsyncLayout.RenderLayout(this._data.GotUsername.length)
                    }
                }, i([u(cc.Label)], t.prototype, "Title", void 0), i([u(s.default)], t.prototype, "AsyncLayout", void 0), i([u(cc.RichText)], t.prototype, "Progress", void 0), i([u(cc.Node)], t.prototype, "NameNode", void 0), i([c], t)
            }(a.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/AsyncLayout": "AsyncLayout"
    }],
    AssaultOperationFamilyMutualAidPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "541015eI4tIaa0FN3JuHBqu", "AssaultOperationFamilyMutualAidPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = e("../../Components/RpcComponent"),
            f = e("../../RedDot/RedDotManager"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/AsyncLayout"),
            m = e("./AssaultOperationAchievTaskItem"),
            I = e("./AssaultOperationPanel"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !0), t.Title = null, t.Time = null, t.GoToRechargeBtn = null, t.GoToRechargeBtnLabel = null, t.RuleBtn = null, t.AsyncLayout = null, t.HelpHint = null, t.PlayerNames = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("AssaultOperation/AssaultOperationAchievTaskItem"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemComponentPrefab = e[0], o._activityTaskItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "assaultOperation_familyHelp".ToUILocale(), this.HelpHint.string = "assault_familyRechargeHitnt".ToUILocale(), this.GoToRechargeBtnLabel.string = "mall_luckyStar_goCharge".ToUILocale(), this.GoToRechargeBtn.node.on("click", this.OnGotoRecharge, this), this.RuleBtn.node.on("click", this.OnRule, this), this.AsyncLayout.Init(this._activityTaskItemPrefab, this.OnInitializeItem.bind(this))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    e.getComponent(m.default).Init({
                        ActivityId: this._activityId,
                        TaskId: n.MutualAidTask[t].Id,
                        Rewards: n.MutualAidTask[t].Rewards,
                        Limit: n.MutualAidTask[t].Limit,
                        TaskTitle: "assaultOperation_familyRecharge".ToUILocale().Fmt(n.MutualAidTask[t].Limit),
                        Progress: this._helpData.Count,
                        IsCompleted: 1 == this._helpData.Got[n.MutualAidTask[t].Id],
                        ItemPrefab: this._itemComponentPrefab,
                        GetRewardCallback: this.OnGetTaskRewards.bind(this),
                        Rule: this.OnTaskGotResult.bind(this)
                    }, t)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = I.default.ActivityId, this._activityConfig = d.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.DisPlay = function(t) {
                    var o = this;
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        this._endTime = u.default.Instance.GetActivityEndTime(this._activityId), this.SetDeadLine(), 0 == n.MutualAidTask.length && (n.MutualAidTask = u.default.Instance.AssaultOperationSetTaskConfig(this._activityConfig.GrassPart.HelpItems));
                        var r = l.Req_AssaultOperation_SLGGetAllianceHelpCount.create();
                        r.ActivityId = this._activityId, h.RpcComponent.Instance.Call(r, function(e) {
                            o._helpData = e, n.MutualAidTask.sort(o.SortModel.bind(o)), o.AsyncLayout.RenderLayout(n.MutualAidTask.length), o.SetHelpPlayerNames()
                        })
                    }
                }, t.prototype.SetDeadLine = function() {
                    this.RefreshDeadLine(), this.unschedule(this.RefreshDeadLine), this.scheduleOnce(this.RefreshDeadLine, 1)
                }, t.prototype.RefreshDeadLine = function() {
                    var e = h.RpcComponent.Instance.ServerTime - this._endTime;
                    if (e < 0) this.Time.node.parent.active = !1;
                    else {
                        var t = "<outline color=#202434 width=3><color=#6EEEA7>" + u.default.ActivityTimeLeftFormat(e) + "</color></outline>";
                        this.Time.string = "<outline color=#202434 width=3><color=#FFFFFF>" + "activityGetWayTime".ToUILocale().Fmt(t) + "</color></outline>"
                    }
                }, t.prototype.SortModel = function(e, t) {
                    return 1 == this._helpData.Got[e.Id] && 1 != this._helpData.Got[t.Id] ? 1 : 1 != this._helpData.Got[e.Id] && 1 == this._helpData.Got[t.Id] ? -1 : e.Limit <= this._helpData.Count && t.Limit > this._helpData.Count ? -1 : e.Limit > this._helpData.Count && t.Limit <= this._helpData.Count ? 1 : e.Id - t.Id
                }, t.prototype.SetHelpPlayerNames = function() {
                    for (var e = this._helpData.Username, t = "", n = 0; n < e.length && (t += e[n], n != e.length - 1); n++) t += "\u3001";
                    this.PlayerNames.string = t
                }, t.prototype.OnGetTaskRewards = function(e) {
                    var t = this,
                        o = l.Req_AssaultOperation_SLGReceiveAllianceHelpLiquid.create();
                    o.ActivityId = this._activityId, o.Type = e, h.RpcComponent.Instance.Call(o, function() {
                        t._helpData.Got[e] = 1, y.UIUtlity.ShowFloatingHint("assaultOperation_getSprite_count".ToUILocale()), n.MutualAidTask.sort(t.SortModel.bind(t)), t.AsyncLayout.ReRender()
                    })
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), f.RedDotManager.Instance.RefreshInstanceRedDotNode(f.RedDotManager.Instance.InstanceRedDot.FamilyMutualAidNode, {
                        Value1: I.default.ActivityId
                    })
                }, t.prototype.OnGotoRecharge = function() {
                    c.UIManager.Instance.BackUIPanel();
                    var e = {
                        ActivityId: this._activityConfig._id,
                        ActivityGiftPackData: this._activityConfig._Packs,
                        Deadline: u.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                        BannerPath: this._activityConfig.Common.Pictures[0],
                        Title: this._activityConfig._Packs[0].Name
                    };
                    c.UIManager.Instance.ShowUIPanel(p.PanelConfig.CommonGiftPackPanel.Path, e)
                }, t.prototype.OnRule = function() {
                    c.UIManager.Instance.ShowUIPanel(p.PanelConfig.RulePanel.Path, {
                        name: "assaultOperation_familyHelp".ToUILocale(),
                        titles: ["assaultOperation_familyHelp".ToUILocale()],
                        contents: ["assaultOperation_helpRule".ToUILocale()]
                    })
                }, t.prototype.OnTaskGotResult = function(e) {
                    var t = l.Req_AssaultOperation_SLGGetAllianceHelpGotCount.create();
                    t.ActivityId = this._activityId, t.Type = e, h.RpcComponent.Instance.Call(t, function(e) {
                        c.UIManager.Instance.ShowUIPanel(p.PanelConfig.AssaultOperationFamilyMutualAidGotResultPanel.Path, e)
                    })
                }, t.MutualAidTask = [], i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.RichText)], t.prototype, "Time", void 0), i([v(cc.Button)], t.prototype, "GoToRechargeBtn", void 0), i([v(cc.Label)], t.prototype, "GoToRechargeBtnLabel", void 0), i([v(cc.Button)], t.prototype, "RuleBtn", void 0), i([v(g.default)], t.prototype, "AsyncLayout", void 0), i([v(cc.Label)], t.prototype, "HelpHint", void 0), i([v(cc.Label)], t.prototype, "PlayerNames", void 0), n = i([C], t)
            }(c.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AssaultOperationAchievTaskItem": "AssaultOperationAchievTaskItem",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationFamilyPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "59edcNehZxOUo2IrNN7iJm8", "AssaultOperationFamilyPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./AssaultOperationPanel"),
            u = e("../Components/CustomToggle"),
            p = e("../../RedDot/RedDotManager"),
            d = e("../../RedDot/RedDotDataHandler"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0), t.Title = null, t.PageBtnToggles = [], t.PagePrefabPath = ["AssaultOperation/AssaultOperationFamilyWelfarePage", "AssaultOperation/AssaultOperationSpiritCrystalGatherPage", "AssaultOperation/AssaultOperationStrategicCommandPage"], t.BottomToggleLangKeys = ["assault_familyWelfare", "assault_getResource", "assault_command"], t.TabType = {
                        AssaultOperationFamilyWelfarePage: 0,
                        AssaultOperationSpiritCrystalGatherPage: 1,
                        AssaultOperationStrategicCommandPage: 2
                    }, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "RefreshOutFamilyRedDotFunc", {
                    get: function() {
                        return this._refreshOutFamilyRedDotFunc
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AssaultOperation/Png/AssaultOperationPanel", cc.SpriteAtlas), n = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset(h.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._resourceImages = e[0], r._itemPrefab = e[1], r._heroPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._refreshOutFamilyRedDotFunc = t[0]
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this);
                    for (var t = 0; t < this.PageBtnToggles.length; t++) {
                        var n = this.PageBtnToggles[t];
                        n.Init(this.BottomToggleLangKeys[t].ToUILocale()), n.node.on("toggle", this.OnSwitchTab, this)
                    }
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        this.BindRedDot();
                        var n = this.TabType.AssaultOperationFamilyWelfarePage;
                        this.SetTab(n), this.PageBtnToggles[n].isChecked = !0
                    }
                }, t.prototype.BindRedDot = function() {
                    this._familyReddotState = d.RedDotDataHandler.Instance.RefreshAssaultOperationFamilyWelfareNodeState({
                        Value1: c.default.ActivityId
                    }), this._spiritCrystalState = d.RedDotDataHandler.Instance.RefreshAssaultOperationSpiritCrystalGatherSate({
                        Value1: c.default.ActivityId
                    }), p.RedDotManager.Instance.BindInstance(this.PageBtnToggles[0].node, p.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyWelfareNode, {
                        Value1: c.default.ActivityId
                    }), p.RedDotManager.Instance.BindInstance(this.PageBtnToggles[1].node, p.RedDotManager.Instance.InstanceRedDot.AssaultOperationSpiritCrystalGatherNode, {
                        Value1: c.default.ActivityId
                    })
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = parseInt(e.node.name);
                    this._nowPage !== t && this.SetTab(t)
                }, t.prototype.SetTab = function(e) {
                    switch (this._nowPage = e, this.Title.string = this.BottomToggleLangKeys[e].ToUILocale(), e) {
                        case this.TabType.AssaultOperationFamilyWelfarePage:
                            this.ShowPage(this.PagePrefabPath[e], this._itemPrefab);
                            break;
                        case this.TabType.AssaultOperationSpiritCrystalGatherPage:
                            this.ShowPage(this.PagePrefabPath[e], this._resourceImages, this._itemPrefab, this._refreshOutFamilyRedDotFunc);
                            break;
                        case this.TabType.AssaultOperationStrategicCommandPage:
                            this.ShowPage(this.PagePrefabPath[e], this._resourceImages, this._heroPrefab)
                    }
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), p.RedDotManager.Instance.RefreshInstanceRedDotNode(p.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyNode, {
                        Value1: c.default.ActivityId
                    })
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(u.default)], t.prototype, "PageBtnToggles", void 0), i([y], t)
            }(l.BaseUIFrame);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/CustomToggle": "CustomToggle",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationFamilyWelfarePage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f688de0ZFpPx41xsdSyy9I0", "AssaultOperationFamilyWelfarePage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../Components/CustomProgressBar"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./AssaultOperationPanel"),
            f = e("../../Components/Components"),
            y = e("../../RedDot/RedDotManager"),
            g = e("./AssaultOperationModel"),
            m = e("../../RedDot/RedDotDataHandler"),
            I = e("../Components/AsyncLayout"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../Components/AssaultOperationGetSpriteWaterItem"),
            v = e("../../../../Proto/Static/ConfigProto"),
            b = e("../Components/GameModuleGuideManager"),
            S = e("../../Auxiliary/EventKeys"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SendLogBtn = null, t.Image = null, t.SendLogBtnLabel = null, t.CustomProgressBar = null, t.ProgressLabel = null, t.RuleBtn = null, t.Hint = null, t.GetSpriteWaterNode = null, t.AsyncLayout = null, t.SendBtn = null, t.SendBtnLabel = null, t.GetAllBtn = null, t.GetAllBtnLabel = null, t.NotSpriteWater = null, t.NotSpriteWaterLabel = null, t.FairyGrassBtn = null, t.Icon = null, t._sendSpriteRedDot = {}, t._fairyGrassRedDot = {}, t._getSpriteRedDot = {}, t._moduleGuideGroupIds = [10034], t._guideStepIndex = 0, t._guideGroupId = 0, t._assets = [], t.GrassSpineName = ["Ani_UI_Effect_QXZZ_ZNS", "Ani_UI_Effect_QXZZ_ZNS2"], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.SlgGrassExperienceMessage), this.RefreshGrassState, this), c.Game.EventDispatcher.On(S.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.SlgGrassExperienceMessage), this.RefreshGrassState, this), c.Game.EventDispatcher.Off(S.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SendLogBtnLabel.string = "assault_sendLog".ToUILocale(), this.SendBtnLabel.string = "assault_sendSpriteWater".ToUILocale(), this.GetAllBtnLabel.string = "StrongholdWar_GetBtn".ToUILocale(), this.Hint.string = "fairyGrassLevel".ToUILocale().Fmt(), this.NotSpriteWaterLabel.string = "assault_empty".ToUILocale(), this.SendBtn.node.on("click", this.OnSend, this), this.GetAllBtn.node.on("click", this.OnGetAll, this), this.SendLogBtn.node.on("click", this.OnSendLog, this), this.RuleBtn.node.on("click", this.OnRule, this), this.FairyGrassBtn.node.on("click", this.OnFairyGrass, this), this.AsyncLayout.Init(this.GetSpriteWaterNode, this.OnInitializeItem.bind(this))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = this._sLGCanGetLiquidData.Info;
                    e.getComponent(C.default).Init({
                        ItemId: n[t].Items[1],
                        Count: n[t].Items[2],
                        UserId: n[t].Items[0],
                        UserName: this._sLGCanGetLiquidData.Username[n[t].Items[0]],
                        ItemPrefab: this._itemPrefab
                    }, this.OnGetSpriteWater.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._itemPrefab = t[0], this._callFlag = !0, this._level = 1, this._activityId = h.default.ActivityId, this._activityConfig = f.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this._endTime = g.AssaultOperationModel.GetTodayEndTime(), this._maxLevel = this._activityConfig.GrassPart.GrassLevel.length, this._activityData = f.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId), this.LoadIcon()), this._isShowGuide || (this._isShowGuide = !0, this.ShowGameGuid()), this.BindRedDot(), this.RefreshSLGCanGetLiquidData()
                }, t.prototype.BindRedDot = function() {
                    this.RefreshGetSpriteRedDot(), this.RefreshSendSpriteRedDot()
                }, t.prototype.RefreshGetSpriteRedDot = function() {
                    var e = m.RedDotDataHandler.Instance.RefreshGetSpriteNodeState({
                        Value1: h.default.ActivityId
                    });
                    y.RedDotManager.Instance.BindNodeByResult(this.GetAllBtn.node, this._getSpriteRedDot, e)
                }, t.prototype.RefreshSendSpriteRedDot = function() {
                    var e = m.RedDotDataHandler.Instance.RefreshAssaultFamilySpriteSend({
                        Value1: h.default.ActivityId
                    });
                    y.RedDotManager.Instance.BindNodeByResult(this.SendBtn.node, this._sendSpriteRedDot, e)
                }, t.prototype.RefreshSLGCanGetLiquidData = function() {
                    var e = this;
                    if (this._callFlag) {
                        var t = l.Req_AssaultOperation_SLGCanGetLiquid.create();
                        t.ActivityId = this._activityId, f.RpcComponent.Instance.Call(t, function(t) {
                            e._sLGCanGetLiquidData = t, e.SetNotSpriteWaterState(), e._experience = t.Experience, e.SetGrassSatte(), e._callFlag = !1
                        }, function() {
                            c.UIManager.Instance.BackUIPanel()
                        })
                    }
                }, t.prototype.RefreshGrassState = function() {
                    this.SetGrassSatte()
                }, t.prototype.SetGrassSatte = function() {
                    this._experience = f.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgGrassExperienceMessage), this.ComputeLevel(), this.SetProgress(), this.SetGrassImage()
                }, t.prototype.ComputeLevel = function() {
                    for (var e = this._level - 1; e < this._activityConfig.GrassPart.GrassLevel.length && this._level != this._maxLevel; e++) this._experience >= this._activityConfig.GrassPart.GrassLevel[e] && (this._level = e + 2);
                    this.Hint.string = "fairyGrassLevel".ToUILocale().Fmt(this._level)
                }, t.prototype.SetProgress = function() {
                    var e, t;
                    1 == this._level ? (t = this._activityConfig.GrassPart.GrassLevel[this._level - 1], this.CustomProgressBar.progress = this._experience / t, this.ProgressLabel.string = this._experience + "/" + t) : this._level == this._maxLevel ? (e = this._activityConfig.GrassPart.GrassLevel[this._level - 2], this.CustomProgressBar.progress = 1, this.ProgressLabel.string = this._experience - e + "/MAX") : (e = this._activityConfig.GrassPart.GrassLevel[this._level - 2], t = this._activityConfig.GrassPart.GrassLevel[this._level - 1], this.CustomProgressBar.progress = (this._experience - e) / (t - e), this.ProgressLabel.string = this._experience - e + "/" + (t - e))
                }, t.prototype.SetGrassImage = function() {
                    this._level > this._activityData.Int2DArray[0].Items[0] ? this.Image.setAnimation(0, this.GrassSpineName[1], !0) : this.Image.setAnimation(0, this.GrassSpineName[0], !0)
                }, t.prototype.SetNotSpriteWaterState = function() {
                    this._sLGCanGetLiquidData.Info.length > 0 ? this.NotSpriteWater.active = !1 : this.NotSpriteWater.active = !0, this.AsyncLayout.RenderLayout(this._sLGCanGetLiquidData.Info.length)
                }, t.prototype.OnFairyGrass = function() {
                    var e = this;
                    if (this._endTime < f.RpcComponent.Instance.ServerTime) _.UIUtlity.ShowFloatingHint("Activity_end".ToUILocale());
                    else if (!(this._level <= this._activityData.Int2DArray[0].Items[0])) {
                        var t = l.Req_AssaultOperation_SLGReceiveGrassReward.create();
                        t.ActivityId = this._activityId, f.RpcComponent.Instance.Call(t, function(t) {
                            e._activityData = f.DataCenter.Instance.GetDataById(l.UserActivity_Model, e._activityId), c.UIManager.Instance.ShowUIPanel(d.PanelConfig.DisplayRewardsPanel.Path, t.Rewards), e.SetGrassImage(), y.RedDotManager.Instance.RefreshInstanceRedDotNode(y.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyWelfareNode, {
                                Value1: h.default.ActivityId
                            })
                        })
                    }
                }, t.prototype.OnGetSpriteWater = function(e, t) {
                    var n = this;
                    if (this._endTime < f.RpcComponent.Instance.ServerTime) _.UIUtlity.ShowFloatingHint("Activity_end".ToUILocale());
                    else {
                        var o = l.Req_AssaultOperation_SLGReceiveLiquid.create();
                        o.ActivityId = this._activityId, o.Type = e, o.From = t, f.RpcComponent.Instance.Call(o, function() {
                            n.RefreshGetSpriteRedDot(), y.RedDotManager.Instance.RefreshInstanceRedDotNode(y.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyWelfareNode, {
                                Value1: h.default.ActivityId
                            });
                            for (var e = 0; e < n._sLGCanGetLiquidData.Info.length; e++)
                                if (o.From == n._sLGCanGetLiquidData.Info[e].Items[0] && o.Type == n._sLGCanGetLiquidData.Info[e].Items[1]) {
                                    n._sLGCanGetLiquidData.Info.splice(e, 1);
                                    break
                                } n.SetNotSpriteWaterState()
                        })
                    }
                }, t.prototype.OnGetAll = function() {
                    var e = this;
                    if (this._endTime < f.RpcComponent.Instance.ServerTime) _.UIUtlity.ShowFloatingHint("Activity_end".ToUILocale());
                    else if (!(this._sLGCanGetLiquidData.Info.length <= 0)) {
                        var t = l.Req_AssaultOperation_SLGReceiveLiquid.create();
                        t.ActivityId = this._activityId, t.Type = -1, t.From = -1, t.ActivityId = this._activityId, f.RpcComponent.Instance.Call(t, function() {
                            e.RefreshGetSpriteRedDot(), y.RedDotManager.Instance.RefreshInstanceRedDotNode(y.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyWelfareNode, {
                                Value1: h.default.ActivityId
                            }), e._sLGCanGetLiquidData.Info = [], e._sLGCanGetLiquidData.Username = {}, e.SetNotSpriteWaterState()
                        })
                    }
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._iconSprite ? [3, 2] : (e = this._activityConfig.GrassPart.Liquid[0].Items[0], [4, c.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemIcon + "/" + e, cc.SpriteFrame)]);
                                case 1:
                                    if (t = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._assets.push(t), this._iconSprite = t, n.label = 2;
                                case 2:
                                    return this.Icon.spriteFrame = this._iconSprite, [2]
                            }
                        })
                    })
                }, t.prototype.OnSend = function() {
                    this._endTime < f.RpcComponent.Instance.ServerTime ? _.UIUtlity.ShowFloatingHint("Activity_end".ToUILocale()) : (this._callFlag = !0, c.UIManager.Instance.ShowUIPanel(d.PanelConfig.AssaultOperationSendSpriteWaterPanel.Path))
                }, t.prototype.OnSendLog = function() {
                    c.UIManager.Instance.ShowUIPanel(d.PanelConfig.AssaultOperationSendSpriteWaterLogPanel.Path)
                }, t.prototype.OnRule = function() {
                    c.UIManager.Instance.ShowUIPanel(d.PanelConfig.AssaultOperationSpriteStoneRewardsRulePanel.Path)
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = b.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = f.ConfigDataComponent.Instance.GetConfigById(v.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 84:
                                            b.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 85:
                                            b.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.RuleBtn.node);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([A(cc.Button)], t.prototype, "SendLogBtn", void 0), i([A(sp.Skeleton)], t.prototype, "Image", void 0), i([A(cc.Label)], t.prototype, "SendLogBtnLabel", void 0), i([A(p.default)], t.prototype, "CustomProgressBar", void 0), i([A(cc.Label)], t.prototype, "ProgressLabel", void 0), i([A(cc.Button)], t.prototype, "RuleBtn", void 0), i([A(cc.Label)], t.prototype, "Hint", void 0), i([A(cc.Node)], t.prototype, "GetSpriteWaterNode", void 0), i([A(I.default)], t.prototype, "AsyncLayout", void 0), i([A(cc.Button)], t.prototype, "SendBtn", void 0), i([A(cc.Label)], t.prototype, "SendBtnLabel", void 0), i([A(cc.Button)], t.prototype, "GetAllBtn", void 0), i([A(cc.Label)], t.prototype, "GetAllBtnLabel", void 0), i([A(cc.Node)], t.prototype, "NotSpriteWater", void 0), i([A(cc.Label)], t.prototype, "NotSpriteWaterLabel", void 0), i([A(cc.Button)], t.prototype, "FairyGrassBtn", void 0), i([A(cc.Sprite)], t.prototype, "Icon", void 0), i([P], t)
            }(c.BaseUIPage);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AssaultOperationGetSpriteWaterItem": "AssaultOperationGetSpriteWaterItem",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "./AssaultOperationModel": "AssaultOperationModel",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationForbidSyncPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f0e21uvN8VMzbPr3Tk5bujB", "AssaultOperationForbidSyncPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.ForbidRule = null, t.SyncTitle = null, t.BattlePower = null, t.NowPower = null, t.ConfirmBtn = null, t.ConfirmBtnLabel = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "assault_forbid".ToUILocale(), this.ForbidRule.string = "assault_forbidRule".ToUILocale(), this.ConfirmBtnLabel.string = "Answer_QuitYes".ToUILocale(), this.SyncTitle.string = "assaultOperation_sync_title".ToUILocale(), this.ConfirmBtn.on("click", this.Close, this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.BattlePower.string = "" + s.DataCenter.Instance.GetIntData(c.UserDataKey.Power), this.NowPower.string = "" + "assault_force_power".ToUILocale().Fmt(this.GetAfterSyncPower()))
                }, t.prototype.GetAfterSyncPower = function() {
                    var e = s.DataCenter.Instance.GetIntData(c.UserDataKey.Power),
                        t = s.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, c.LevelParamType.AssaultOperationEnergyLimit);
                    return Math.floor(Math.pow(e, t.FloatData[0]) + Math.floor(t.FloatData[1]))
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Label)], t.prototype, "ForbidRule", void 0), i([h(cc.Label)], t.prototype, "SyncTitle", void 0), i([h(cc.Label)], t.prototype, "BattlePower", void 0), i([h(cc.Label)], t.prototype, "NowPower", void 0), i([h(cc.Node)], t.prototype, "ConfirmBtn", void 0), i([h(cc.Label)], t.prototype, "ConfirmBtnLabel", void 0), i([d], t)
            }(a.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components"
    }],
    AssaultOperationGetSpriteWaterItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3ff39Kpd+NOOZ2veX+GeTj2", "AssaultOperationGetSpriteWaterItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TanksPlayer = null, t.ItemParent = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    if (this._data = e, t && (this._callback = t), this.TanksPlayer.string = "assault_thankPlayer".ToUILocale().Fmt(e.UserName), !this._itemComponent) {
                        var n = cc.instantiate(e.ItemPrefab);
                        n.setParent(this.ItemParent), this._itemComponent = n.getComponent(a.ItemComponent), n.on("click", this.OnClick, this), this.node.on("click", this.OnClick, this)
                    }
                    this._itemComponent.Init({
                        ItemId: this._data.ItemId,
                        Count: this._data.Count
                    })
                }, t.prototype.OnClick = function() {
                    this._callback && this._callback(this._data.ItemId, this._data.UserId)
                }, i([c(cc.Label)], t.prototype, "TanksPlayer", void 0), i([c(cc.Node)], t.prototype, "ItemParent", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Components/ItemComponent": "ItemComponent"
    }],
    AssaultOperationGridItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e6e4aCKMnlEIJV/68ZLVSvO", "AssaultOperationGridItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = e("../../SLGMapEditor/SLGGridItem"),
            c = cc._decorator,
            u = c.ccclass,
            p = (c.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), Object.defineProperty(t.prototype, "OwnerAllianceId", {
                    get: function() {
                        return this._owenerAllianceId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.PreInitTerrain = function(e, t) {
                    if (this._basePanel = e, t) {
                        var n = s.ConfigDataComponent.Instance.GetConfigById(a.AssaultOperationGrid_Config, t);
                        if (n) {
                            var o = new cc.Node("TerrainNode");
                            o.setParent(this.node), o.y += n.OffsetY, o.x += n.OffsetX, n.Scale && (o.scale = n.Scale / 1e3), o.setSiblingIndex(1), o.addComponent(cc.Sprite).spriteFrame = this._basePanel.MapAtlas.getSpriteFrame(n.Icon)
                        }
                    }
                }, t.prototype.InitNormalMapGrid = function(e) {
                    if (!this._ownerColorSprite) {
                        var t = new cc.Node("OwnerColor");
                        t.setParent(this.node), t.y += 12, t.setSiblingIndex(0), this._ownerColorSprite = t.addComponent(cc.Sprite), this._ownerColorSprite.type = cc.Sprite.Type.SLICED
                    }
                    this._ownerColorSprite.spriteFrame = this._basePanel.MapAtlas.getSpriteFrame("grid_" + e)
                }, t.prototype.InitMiniMapGrid = function(e, t) {
                    var n;
                    this._basePanel = e, this._gridSprite || (this._gridSprite = this.node.getComponent(cc.Sprite)), n = null != t ? "block_mini_" + t : "block_mini_default", this._gridSprite.spriteFrame = this._basePanel.MapAtlas.getSpriteFrame(n)
                }, i([u], t)
            }(l.default));
        n.default = p, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "../../SLGMapEditor/SLGGridItem": "SLGGridItem"
    }],
    AssaultOperationGroupingDetailPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cd7e1b1j5xLpIO5DqRpL0ZY", "AssaultOperationGroupingDetailPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../Components/CustomToggle"),
            c = e("./AssaultOperationPanel"),
            u = e("../Components/AsyncLayout"),
            p = e("../../../Consts/Consts"),
            d = e("../../../Util/TimeUtil"),
            h = e("../Components/AssaultOperationMatchFamilyItem"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Stage = null, t.GroupBtn = null, t.GroupBtnLabel = null, t.GroupNode = null, t.GroupToggle = null, t.RankLabel = null, t.FamilyLabel = null, t.Exploits = null, t.AsyncLayout = null, t.GroupList = null, t._groupToggles = [], t._idToAlliance = {}, t._groupToAlliances = {}, t._mapIds = [], t.GroupToggleLabels = ["A", "B", "C", "D", "E", "F", "J", "H", "I"], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RankLabel.string = "ActivityHeroTestTower_Rank".ToUILocale(), this.FamilyLabel.string = "PlayerSetting_alliance".ToUILocale(), this.Exploits.string = "assaultOperation_groupDetail_score".ToUILocale(), this.GroupBtn.node.on("click", this.OnGroupBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._allianceTotalScore = t[0], this._allianceAtlas = t[1], this._matchFamilyPrefab = t[2], this._gropCount = 0, this._myGroup = -1, this._activityId = c.default.ActivityId, this._activityConfig = s.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isInit || (this._isInit = !0, this.AsyncLayout.Init(this._matchFamilyPrefab, this.OnInitializeItem.bind(this))), this._currencyDay = this.GetActivityDay(), this._dayIndex = Math.min(this._currencyDay, this._activityConfig.CustomPart.DailyPromotionCount.length - 1), this._dayIndex = Math.max(this._currencyDay, 1), this.SetHideArrow(this._allianceTotalScore.MapType);
                    for (var n = 0; n < this._allianceTotalScore.Alliances.length; n++) this._idToAlliance[this._allianceTotalScore.Alliances[n].Id] = this._allianceTotalScore.Alliances[n];
                    if (this.Stage.string = "payGuide_stage".ToUILocale().Fmt(this._allianceTotalScore.MapType), this._allianceTotalScore.Alliances.sort(function(e, t) {
                            return e.ArrayParam[2] == t.ArrayParam[2] ? t.ArrayParam[1] - e.ArrayParam[1] : e.ArrayParam[2] - t.ArrayParam[2]
                        }), this.SetGroupAlliance(), this._gropCount > 0) {
                        var o = 0; - 1 != this._myGroup && (o = this._myGroup), this.SetTab(o)
                    }
                }, t.prototype.SetHideArrow = function(e) {
                    this._currencyDay < 1 || this._currencyDay >= this._activityConfig.CustomPart.DailyPromotionCount.length || this._currencyDay != e ? this._hideArrow = !0 : this._hideArrow = !1
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = this._groupToAlliances[this._groupType][t].Id,
                        o = e.getComponent(h.default),
                        r = this._groupToAlliances[this._groupType].length <= t + 1;
                    o.Init({
                        AllianceInfo: this._groupToAlliances[this._groupType][t],
                        Rank: t + 1,
                        Score: this._idToAlliance[n].ArrayParam[1],
                        AllianceFlagAtals: this._allianceAtlas,
                        Arrowhead: this._hideArrow,
                        Promotion: this._activityConfig.CustomPart.DailyPromotionCount[this._dayIndex],
                        ScorePosX: 280
                    }, r)
                }, t.prototype.GetActivityDay = function() {
                    var e = this._activityConfig.Common.StartTime + this._activityConfig.CustomPart.PreparationPeriodTime * p.Etc.HourDuration,
                        t = d.TimeUtil.Get0ClockTs(e);
                    return d.TimeUtil.GetDiffDays(t, s.RpcComponent.Instance.ServerTime, !0) + 1
                }, t.prototype.SetGroupAlliance = function() {
                    this._mapIds = [];
                    for (var e = 0; e < this._allianceTotalScore.Alliances.length; e++) {
                        var t = this._allianceTotalScore.Alliances[e].ArrayParam[2],
                            n = this._mapIds.indexOf(t); - 1 == n && (n = this._gropCount, this._mapIds.push(t), this._groupToAlliances[this._gropCount] = [], this._gropCount++), this._groupToAlliances[n].push(this._allianceTotalScore.Alliances[e]);
                        var o = s.DataCenter.Instance.GetSpecialRedDot(p.SpecialRedDotType.SlgSignUp);
                        o && o > 0 && this._allianceTotalScore.Alliances[e].Id == o && (this._myGroup = n)
                    }
                }, t.prototype.OnGroupBtnClick = function() {
                    var e = this.GroupNode.active;
                    if (this.GroupNode.active = !e, !e) {
                        if (this._gropCount <= 0) return void(this._isInitGroup = !1);
                        this.GroupNode.active = !0, this._isInitGroup || (this.SetGroupToggle(), this._isInitGroup = !0, this._groupToggles[this._myGroup].isChecked = !0)
                    }
                }, t.prototype.SetGroupToggle = function() {
                    for (var e = 0; e < this._gropCount; e++) {
                        var t = this._groupToggles[e];
                        if (!t) {
                            var n = cc.instantiate(this.GroupToggle);
                            n.setParent(this.GroupList), n.on("click", this.OnGroupToggle, this), t = n.getComponent(l.default), this._groupToggles.push(t)
                        }
                        t.node.name = e.toString(), t.node.active = !0, t.Init("assaultOperation_match_groupBtn".ToUILocale().Fmt(this.GroupToggleLabels[e]))
                    }
                    for (; e < this._groupToggles.length; e++) this._groupToggles[e].node.active = !1
                }, t.prototype.OnGroupToggle = function(e) {
                    var t = parseInt(e.name);
                    this._groupType != t && this.SetTab(t)
                }, t.prototype.SetTab = function(e) {
                    this._groupType = e, this.GroupBtnLabel.string = "assaultOperation_match_groupBtn".ToUILocale().Fmt(this.GroupToggleLabels[e]), this.AsyncLayout.RenderLayout(this._groupToAlliances[this._groupType].length)
                }, i([g(cc.Label)], t.prototype, "Stage", void 0), i([g(cc.Button)], t.prototype, "GroupBtn", void 0), i([g(cc.Label)], t.prototype, "GroupBtnLabel", void 0), i([g(cc.Node)], t.prototype, "GroupNode", void 0), i([g(cc.Node)], t.prototype, "GroupToggle", void 0), i([g(cc.Label)], t.prototype, "RankLabel", void 0), i([g(cc.Label)], t.prototype, "FamilyLabel", void 0), i([g(cc.Label)], t.prototype, "Exploits", void 0), i([g(u.default)], t.prototype, "AsyncLayout", void 0), i([g(cc.Node)], t.prototype, "GroupList", void 0), i([y], t)
            }(a.BaseUIPage);
        n.default = m, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Components/Components": "Components",
        "../Components/AssaultOperationMatchFamilyItem": "AssaultOperationMatchFamilyItem",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationIntelligenceComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8c694pEks1NMpUHsFJcTFRd", "AssaultOperationIntelligenceComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("./AssaultOperationModel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/CountdownLabel"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ResourceName = null, t.ResourceLevel = null, t.ResourceSprite = null, t.OwnerLabel = null, t.ServerNode = null, t.ServerLabel = null, t.EffectLabel = null, t.CountDownHint = null, t.CountDownComponent = null, t.GoMapBtn = null, t.GoMapBtnLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this._isInit || (this.GoMapBtn.node.on("click", this.OnGoMapBtnClick, this), this.GoMapBtnLabel.string = "LoverArrow_Start_Go".ToUILocale(), this._isInit = !0), this.ResourceSprite.spriteFrame = o, this._resourceId = e;
                    var r = s.ConfigDataComponent.Instance.GetConfigById(l.AssaultOperationResourceItem_Config, e);
                    this.ResourceName.string = e.ToAssualtOperationResourceName(), this.ResourceLevel.string = "Lv." + r.Type;
                    var i = c.AssaultOperationModel.GetAllianceInfo(e),
                        a = i[0],
                        u = i[1];
                    u ? (this.ServerNode.active = !0, this.ServerLabel.string = u.toString(), this.OwnerLabel.string = a) : (this.ServerNode.active = !1, this.OwnerLabel.string = a), this.EffectLabel.string = "assaultOperation_occupiedEffect".ToUILocale() + " " + f.default.Instance.GetAssaultOperationSpecialEffectDesc(t, n)
                }, t.prototype.OnGoMapBtnClick = function() {
                    u.UIManager.Instance.CloseUIPanel(p.PanelConfig.AssaultOperationIntelligencePanel.Path), a.Game.EventDispatcher.Emit(d.EventKeys.EVENT_ASSAULT_OPERATION_MAP, this._resourceId)
                }, i([m(cc.Label)], t.prototype, "ResourceName", void 0), i([m(cc.Label)], t.prototype, "ResourceLevel", void 0), i([m(cc.Sprite)], t.prototype, "ResourceSprite", void 0), i([m(cc.Label)], t.prototype, "OwnerLabel", void 0), i([m(cc.Node)], t.prototype, "ServerNode", void 0), i([m(cc.Label)], t.prototype, "ServerLabel", void 0), i([m(cc.Label)], t.prototype, "EffectLabel", void 0), i([m(cc.Label)], t.prototype, "CountDownHint", void 0), i([m(h.default)], t.prototype, "CountDownComponent", void 0), i([m(cc.Button)], t.prototype, "GoMapBtn", void 0), i([m(cc.Label)], t.prototype, "GoMapBtnLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CountdownLabel": "CountdownLabel",
        "./AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationIntelligencePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fb93a60rFZC0pM40YhMBlEy", "AssaultOperationIntelligencePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("./AssaultOperationModel"),
            h = e("../../Components/Components"),
            f = e("./AssaultOperationIntelligenceComponent"),
            y = e("../Components/AsyncLayout"),
            g = e("../Components/CountdownLabel"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed, !1), t.PanelTitle = null, t.CountDownComponent = null, t.EmptyNode = null, t.EmptyNodeLabel = null, t.AsyncLayout = null, t.Atlas = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.RefreshPanelInfo, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.OnModelDataRefresh, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.RefreshPanelInfo, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.OnModelDataRefresh, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AssaultOperation/AssaultOperationIntelligenceComponent", cc.Prefab)];
                                case 1:
                                    return t._intelligenceComponetPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelTitle.string = "assaultOperation_intelligence".ToUILocale(), this.AsyncLayout.Init(this._intelligenceComponetPrefab, this.OnRenderIntelligenceComponent.bind(this))
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this);
                    var t = d.AssaultOperationModel.GetMapId();
                    this._mapConfig = h.ConfigDataComponent.Instance.GetConfigById(c.AssaultOperationMap_Config, t)
                }, t.prototype.RefreshPanelInfo = function(e, t) {
                    if (t)
                        for (var n = 0; n < this._mapConfig.SpecialResource.length; n++) {
                            var o = this._mapConfig.SpecialResource[n].Items[0];
                            if (t.includes(o)) {
                                this.AsyncLayout.ReRender();
                                break
                            }
                        } else this.AsyncLayout.RenderLayout(this._mapConfig.SpecialResource.length)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.RefreshPanelInfo()
                }, t.prototype.OnModelDataRefresh = function(e) {
                    e ? this.Close() : this.RefreshPanelInfo()
                }, t.prototype.OnRenderIntelligenceComponent = function(e, t) {
                    var n = e.getComponent(f.default),
                        o = this._mapConfig.SpecialResource[t].Items[0],
                        r = h.ConfigDataComponent.Instance.GetConfigById(c.AssaultOperationResourceItem_Config, o),
                        i = this.Atlas.getSpriteFrame("building_" + d.AssaultOperationModel.GetResourceTypeIcon(r.Type));
                    n.Init(o, this._mapConfig.SpecialResource[t].Items[1], this._mapConfig.SpecialResource[t].Items[2], i)
                }, i([_(cc.Label)], t.prototype, "PanelTitle", void 0), i([_(g.default)], t.prototype, "CountDownComponent", void 0), i([_(cc.Node)], t.prototype, "EmptyNode", void 0), i([_(cc.Label)], t.prototype, "EmptyNodeLabel", void 0), i([_(y.default)], t.prototype, "AsyncLayout", void 0), i([_(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([I], t)
            }(u.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CountdownLabel": "CountdownLabel",
        "./AssaultOperationIntelligenceComponent": "AssaultOperationIntelligenceComponent",
        "./AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationMapBuildItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c8023sY5wdE9YuEEz9vKIfS", "AssaultOperationMapBuildItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BuildingIcon = null, t.HightLight1 = null, t.HightLight2 = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.BuildingIcon.spriteFrame = this.HightLight1.spriteFrame = this.HightLight2.spriteFrame = e
                }, t.prototype.SetHighlight = function(e) {
                    void 0 === e && (e = !1), this.HightLight1.node.active = e
                }, i([l(cc.Sprite)], t.prototype, "BuildingIcon", void 0), i([l(cc.Sprite)], t.prototype, "HightLight1", void 0), i([l(cc.Sprite)], t.prototype, "HightLight2", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AssaultOperationMapIconComponnet: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "78e3biYPoxMe65ai7I0qNqX", "AssaultOperationMapIconComponnet");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = e("../../../Consts/Consts"),
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadQuaterNode = null, t.NormalTypeNode = null, t.MiniTypeNode = null, t.InfoNode = null, t.AllianceName = null, t.ServerName = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                    this.ResetState(), this.InfoNode.active = !1, e ? this.MiniTypeNode.active = !0 : t == c.AssaultOperationResourceType.Headquarters ? (this.InfoNode.active = !0, this.HeadQuaterNode.active = !0, this.AllianceName.string = n, o ? (this.ServerName.node.active = !0, this.ServerName.string = o) : this.ServerName.node.active = !1, this.InfoNode.y = r ? 245 : 5) : this.NormalTypeNode.active = !0
                }, t.prototype.ResetState = function() {
                    this.HeadQuaterNode.active = !1, this.NormalTypeNode.active = !1, this.MiniTypeNode.active = !1, this.InfoNode.active = !1
                }, i([l(cc.Node)], t.prototype, "HeadQuaterNode", void 0), i([l(cc.Node)], t.prototype, "NormalTypeNode", void 0), i([l(cc.Node)], t.prototype, "MiniTypeNode", void 0), i([l(cc.Node)], t.prototype, "InfoNode", void 0), i([l(cc.Label)], t.prototype, "AllianceName", void 0), i([l(cc.Label)], t.prototype, "ServerName", void 0), i([s], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts"
    }],
    AssaultOperationMapLineComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "edfb60AiZZJ9Z3P0np1YhIU", "AssaultOperationMapLineComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ArrowSprites = [], t.SPEED = 120, t.SINGLE_IMG_HEIGHT = 29, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._targetPos = t;
                    var o = cc.Vec3.distance(t, e);
                    this.node.height = o, this.node.setPosition(t), this.node.zIndex = -t.y;
                    var r = t.sub(e),
                        i = -cc.v2(r.x, r.y).signAngle(cc.v2(0, 1)) / Math.PI * 180;
                    this.node.angle = i;
                    for (var a = Math.ceil(o / this.SINGLE_IMG_HEIGHT) * this.SINGLE_IMG_HEIGHT, s = 0; s < this.ArrowSprites.length; s++) this.ArrowSprites[s].node.height = a, this.ArrowSprites[s].spriteFrame = n, this.ArrowSprites[s].node.y = -a * s;
                    this.node.setContentSize(this.ArrowSprites[0].node.width, a), this.MovingSprites(), this.node.opacity = 255
                }, t.prototype.MovingSprites = function() {
                    for (var e = 0; e < this.ArrowSprites.length; e++) {
                        var t = this.ArrowSprites[e].node;
                        this.PlayLineMoveAni(t)
                    }
                }, t.prototype.PlayLineMoveAni = function(e) {
                    var t = this;
                    cc.Tween.stopAllByTarget(e), cc.tween(e).to(e.height / this.SPEED, {
                        y: e.y + e.height
                    }).call(function() {
                        e.y >= e.height && (e.y -= 2 * e.height), t.PlayLineMoveAni(e)
                    }).start()
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, i([u(cc.Sprite)], t.prototype, "ArrowSprites", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    AssaultOperationMapPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "17ea4KN/qRGA5SA29D6yNSd", "AssaultOperationMapPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Components/RpcComponent"),
            f = e("../../Components/Components"),
            y = e("./AssaultOperationMapLineComponent"),
            g = e("../Components/CustomProgressBar"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("./AssaultOperationPanel"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("./AssaultOperationSimpleQueueItem"),
            v = e("./AssaultOperationResourceItem"),
            b = e("./AssaultOperationModel"),
            S = e("./AssaultOperationMapPlayerItem"),
            w = e("./AssaultOperationMiniMapComponent"),
            P = e("../../Auxiliary/GameRecord"),
            A = e("../../RedDot/RedDotManager"),
            T = e("../../../Util/TimeUtil"),
            R = e("../../SLGMapEditor/SLGMap"),
            L = e("../Components/AssaultOperationGridItem"),
            k = e("../Components/CountdownLabel"),
            O = e("../../Auxiliary/DataUtlity"),
            M = e("../Components/HeadComponent"),
            D = e("../Auxiliary/UIUtlity"),
            B = e("../Components/GameModuleGuideManager"),
            N = e("./AssaultOperationChattingMiniPanel"),
            E = e("./AssaultOperationMapBuildItem"),
            U = cc._decorator,
            G = U.ccclass,
            x = U.property,
            H = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !1), t.MapScrollView = null, t.MapLayer = null, t.MovingLineLayer = null, t.BuildingLayer = null, t.PlayerLayer = null, t.PanelTitle = null, t.RuleBtn = null, t.CloseBtn = null, t.SelfInfoNode = null, t.SelfHeaderNode = null, t.SelfName = null, t.SelfLocation = null, t.SpiritValueTitle = null, t.SelfSpiritValueBar = null, t.SelfSpiritValue = null, t.SelfLocationBtn = null, t.SelfBuffContainer = null, t.SelfBuffIcons = [], t.SelfLocationHintNode = null, t.SelfLocationHintHeadNode = null, t.SelfLocationHintArrow = null, t.NoEnergyHint = null, t.NoEnergyHintLabel = null, t.WiningStreakNode = null, t.WiningStreakHeaderNode = null, t.WiningStreakLabelNode = null, t.WiningStreakPlayerName = null, t.WiningStreakCount = null, t.MiniMapNode = null, t.HideEnemyMovingLine = null, t.HideEnemyMovingLineLabel = null, t.RoundCountDownNode = null, t.RoundCountDownHint = null, t.RoundCountDown = null, t.ResourceItemQueueNode = null, t.ResouceItemActionBtn = null, t.ResouceItemActionBtnLabel = null, t.ResouceItemActionGrayBtn = null, t.ResouceItemActionGrayBtnLabel = null, t.AutoAttack = null, t.AutoAttackLabel = null, t.QueueRuleBtn = null, t.ResourceItemScore = null, t.ResourceItemTravelTime = null, t.SimpleQueueItemContainer = null, t.SimpleQueueItems = [], t.QueueBackBtn = null, t.BottomNode = null, t.AllianceInfoBtn = null, t.AllianceInfoBtnLabel = null, t.RankBtn = null, t.RankBtnLabel = null, t.SpriteBallBtn = null, t.SpriteBallBtnLabel = null, t.RescourceInformationBtn = null, t.RescourceInformationBtnLabel = null, t.BattleRecordBtn = null, t.BattleRecordBtnLabel = null, t.MiniChatNode = null, t.MapAtlas = null, t.PanelAtlas = null, t.TopCountDownHint = null, t.TopCountDown = null, t.MiniMapBottomNode = null, t.MiniMapExitButton = null, t.BuffTipNode = null, t.BuffTip = null, t.BuffTipGotoBtn = null, t.CountDownClickNode = null, t.ScoreClickNode = null, t.HintTipNode = null, t.HintTip = null, t.BlockNode = null, t._nextColorId = 1, t._allianceColorMap = {}, t._buildingItemMap = {}, t._mapLineItemNodePool = new cc.NodePool, t._playerItemNodePool = new cc.NodePool, t._playerItemMap = {}, t._mapLineItemMap = {}, t._curSelectBlockIndex = null, t.TIME_RED = new cc.Color(255, 64, 62), t.TIME_GREEN = new cc.Color(110, 238, 167), t._battleRecordRedDot = {}, t._guideStepIndex = 0, t._guideGroupId = 0, t._spriteBallRedDot = {}, t._curShowBuffIndex = -1, t._delayActions = {}, t._minTime = 0, t._autoBattleCoolDown = 0, t._resourceInfoItems = {}, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "PlayerHeaderPrefab", {
                    get: function() {
                        return this._playerHeaderPrefab
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "PvpHeaderPrefab", {
                    get: function() {
                        return this._pvpHeaderPrefab
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ResouceInfoItemPrefab", {
                    get: function() {
                        return this._mapResouceInfoItemPrefab
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.GetAllianceColor = function(e) {
                    return this._allianceColorMap[e]
                }, Object.defineProperty(t.prototype, "HqProtectEndTime", {
                    get: function() {
                        return this._hqProtectEndTime
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Level4ProtectEndTime", {
                    get: function() {
                        return this._level4ProtectEndTime
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_ASSAULT_OPERATION_MOVE, this.RefreshMapPlayers, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.OnResourceItemChange, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE, this.OnPlayerEnergyChange, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_ASSAULT_OPERATION_MAP, this.MoveCameraToLocation, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_ASSAULT_OPERATION_WIN_STEAK, this.PlayWinStreakInfo, this), l.Game.EventDispatcher.On(c.GameEventIds.SpecialRedDotChange.Fmt(c.SpecialRedDotType.SlgPersonalBattleMessage), this.BindBattleRecordRedDot, this), l.Game.EventDispatcher.On(c.GameEventIds.SpecialRedDotChange.Fmt(c.SpecialRedDotType.SlgAllianceBattleMessage), this.BindBattleRecordRedDot, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), l.Game.EventDispatcher.On(c.GameEventIds.ServerConnected, this.OnServerReConnect, this), l.Game.EventDispatcher.On(c.GameEventIds.DailyResetDataComplete, this.OnDailyResetData, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ASSAULT_OPERATION_MOVE, this.RefreshMapPlayers, this), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.OnResourceItemChange, this), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE, this.OnPlayerEnergyChange, this), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ASSAULT_OPERATION_MAP, this.MoveCameraToLocation, this), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ASSAULT_OPERATION_WIN_STEAK, this.PlayWinStreakInfo, this), l.Game.EventDispatcher.Off(c.GameEventIds.SpecialRedDotChange.Fmt(c.SpecialRedDotType.SlgPersonalBattleMessage), this.BindBattleRecordRedDot, this), l.Game.EventDispatcher.Off(c.GameEventIds.SpecialRedDotChange.Fmt(c.SpecialRedDotType.SlgAllianceBattleMessage), this.BindBattleRecordRedDot, this), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), l.Game.EventDispatcher.Off(c.GameEventIds.ServerConnected, this.OnServerReConnect, this), l.Game.EventDispatcher.Off(c.GameEventIds.DailyResetDataComplete, this.OnDailyResetData, this)
                }, t.prototype.OnServerReConnect = function() {
                    l.EZLog.Debug("====RefreshMapData ServerReconnect====="), this._dayEndTime - c.Etc.MinuteDuration >= h.RpcComponent.Instance.ServerTime && this.RefreshMapData()
                }, t.prototype.OnDailyResetData = function() {
                    l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH), this.Close()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r, i, a, l, c, u = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AssaultOperation/AssaultOperationMapLineComponent", cc.Prefab), n = this.LoadDynamicAsset(m.BundlePath.HeadComponent, cc.Prefab), o = this.LoadDynamicAsset("AssaultOperation/AssaultOperationResourceItem", cc.Prefab), r = this.LoadDynamicAsset("AssaultOperation/AssaultOperationMapPlayerItem", cc.Prefab), i = this.LoadDynamicAsset("AssaultOperation/AssaultOperationPvpHeaderComponent", cc.Prefab), a = this.LoadDynamicAsset("Chatting/AssaultOperationChattingMiniPanel", cc.Prefab), l = this.LoadDynamicAsset("AssaultOperation/AssaultOperationMiniMapComponent", cc.Prefab), c = this.LoadDynamicAsset("AssaultOperation/AssaultOperationMapBuildItem", cc.Prefab), [4, Promise.all([t, n, o, r, i, a, l, c]).then(function(e) {
                                        u._lineComponentPrefab = e[0], u._playerHeaderPrefab = e[1], u._mapResouceInfoItemPrefab = e[2], u._mapPlayerItemPrefab = e[3], u._pvpHeaderPrefab = e[4], u._chatMiniPrefab = e[5], u._miniMapPrefab = e[6], u._mapBuildItemPrefab = e[7]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CloseBtn.node.on("click", this.OnCloseBtnClick, this), this.MiniMapExitButton.node.on("click", this.OnMiniMapExitBtnClick, this), this.QueueBackBtn.node.on("click", this.OnQueueBackBtnClick, this), this.AllianceInfoBtn.node.on("click", this.OnAllianceInfoBtnClick, this), this.RankBtn.node.on("click", this.OnRankBtnClick, this), this.SpriteBallBtn.node.on("click", this.OnSpriteBallBtnClick, this), this.RescourceInformationBtn.node.on("click", this.OnRescourceInformationBtnClick, this), this.BattleRecordBtn.node.on("click", this.OnBattleRecordBtnClick, this), this.SelfLocationBtn.node.on("click", this.OnSelfLocationBtnClick, this), this.SelfLocationHintNode.on(cc.Node.EventType.TOUCH_END, this.OnSelfLocationBtnClick, this), this.ResouceItemActionBtn.node.on("click", this.OnResouceItemActionBtnClick, this), this.ResouceItemActionGrayBtn.node.on("click", this.OnResouceItemActionBtnClick, this), this.AutoAttack.node.on("toggle", this.OnAutoAttackToggleClick, this), this.HideEnemyMovingLine.node.on("toggle", this.OnHideEnemyLineToggleClick, this), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.QueueRuleBtn.node.on("click", this.OnQueueRuleBtnClick, this), this.BuffTipGotoBtn.node.on("click", this.OnBuffTipGotoBtnClick, this), this.BlockNode.on(cc.Node.EventType.TOUCH_END, this.HideBuffTipNode, this), this.CountDownClickNode.on(cc.Node.EventType.TOUCH_END, this.OnTimeCostNodeClick, this), this.ScoreClickNode.on(cc.Node.EventType.TOUCH_END, this.OnScoreNodeClick, this), this.AllianceInfoBtnLabel.string = "PlayerSetting_alliance".ToUILocale(), this.RankBtnLabel.string = "AllZoneChampionShip_RankButton".ToUILocale(), this.SpriteBallBtnLabel.string = "tactics_book".ToUILocale(), this.RescourceInformationBtnLabel.string = "assaultOperation_intelligence".ToUILocale(), this.BattleRecordBtnLabel.string = "CrossServerChampionReportPanel_BattleReportTitle".ToUILocale(), this.SpiritValueTitle.string = "assaultOperation_power".ToUILocale(), this.TopCountDownHint.string = "assault_roundEndCountDown".ToUILocale(), this.NoEnergyHintLabel.string = "assaultOperation_noEnergy".ToUILocale();
                    for (var t = 0; t < this.SimpleQueueItems.length; t++) this.SimpleQueueItems[t].SetTitle(("assaultOperation_queueType" + t).ToUILocale()), this.SimpleQueueItems[t].node.name = t.toString(), this.SimpleQueueItems[t].node.on(cc.Node.EventType.TOUCH_END, this.OnQueueBtnClick, this);
                    this.HideEnemyMovingLineLabel.string = "assaultOperation_hideEnemyLine".ToUILocale(), this.AutoAttackLabel.string = "assaultOperation_autoAttack".ToUILocale(), this.MapScrollView.node.on("scrolling", this.OnScrolling, this)
                }, t.prototype.OnScrolling = function() {
                    l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_CHECK_BUNDINGBOX, this._rateScrollViewRect)
                }, t.prototype.OnRuleBtnClick = function() {
                    var e = {
                        name: this._activityConfig.Common.Title,
                        titles: ["Activity_EmaPray_Rule_Title".ToUILocale()],
                        contents: ["assaultOperation_ruleContent".ToUILocale()]
                    };
                    D.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnQueueRuleBtnClick = function() {
                    D.UIUtlity.ShowHintPanel("assaultOperation".ToUILocale(), "assaultOperation_autoAttackRuleContent".ToUILocale())
                }, t.prototype.OnAutoAttackToggleClick = function() {
                    this._needFindTarget = this.AutoAttack.isChecked, this._needFindTarget && this.CheckIsSelfBattling()
                }, t.prototype.OnHideEnemyLineToggleClick = function() {
                    for (var e in this._mapLineItemMap) {
                        var t = Number.parseInt(e),
                            n = b.AssaultOperationModel.GetPlayerMoveInfo(t);
                        n && n.AllianceId == b.AssaultOperationModel.GetSelfAllianceId() || this._mapLineItemMap[t] && (this._mapLineItemMap[t].node.active = !this.HideEnemyMovingLine.isChecked)
                    }
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._assualtOperationInfo = t[0], this._activityConfig = f.DataCenter.Instance.ActivityConfigs[I.default.ActivityId], this.PanelTitle.string = this._activityConfig.Common.Title, this._dayEndTime = T.TimeUtil.GetIndexClockTs(h.RpcComponent.Instance.ServerTime, this._activityConfig.CustomPart.BattlePeriodTime[1]), this._mapConfig = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationMap_Config, this._assualtOperationInfo.MapType);
                    var n = h.RpcComponent.Instance.ServerTime;
                    this._hqProtectEndTime = T.TimeUtil.GetIndexClockTs(n, this._activityConfig.CustomPart.UnlockAttackAllianceTime), n >= this._hqProtectEndTime && (this._isHqProtectEnd = !0), this._level4ProtectEndTime = T.TimeUtil.GetIndexClockTs(n, this._activityConfig.CustomPart.UnlockAttackFourLevelResourceTime), n >= this._level4ProtectEndTime && (this._isLevel4ProtectEnd = !0), this._battleDuration = this._activityConfig.CustomPart.BattleDuration * c.Etc.SecondDuration, this.ArrangementAllianceColor()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset("SLGMap/Map/" + this._mapConfig.Map, cc.Prefab)];
                                case 1:
                                    return e._mapPrefab = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InstantiateMap = function() {
                    var e = cc.instantiate(this._mapPrefab);
                    e.setParent(this.MapLayer), this.MapScrollView.content.setContentSize(e.getContentSize()), this._mapComponent = e.getComponent(R.default)
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        this.SetDayCountDown();
                        var o = this.MapScrollView.node.getBoundingBoxToWorld();
                        this._rateScrollViewRect = new cc.Rect(o.x, o.y, this.MapScrollView.node.width, this.MapScrollView.node.height), this.InstantiateMap(), b.AssaultOperationModel.Init(this, this._assualtOperationInfo, this._dayEndTime - c.Etc.MinuteDuration), this.CheckIsSelfBattling(), this.SetSelfLocationHeader(), this.InitChatMiniItem(), this.InitMiniMapItem(), this.ArrangementTerrain(), this.InitialGrids(), this.ConfigMapData(), this.RefreshSelfInfo(), this.SetDayActivityCountDown(), this.RefreshSelfPlayerItem(), this.RefreshSpriteBallBtnState(), this.scheduleOnce(function() {
                            n.OnMoveCameraToSelfHeader(!1)
                        }), this.RefreshSelfBuffIcon(), this.BindRedDot(), this.ShowGameGuid()
                    }
                }, t.prototype.ArrangementAllianceColor = function() {
                    for (var e in this._allianceColorMap[f.DataCenter.Instance.GetSpecialRedDot(c.SpecialRedDotType.SlgSignUp)] = 0, this._assualtOperationInfo.AllianceInfo) null == this._allianceColorMap[this._assualtOperationInfo.AllianceInfo[e].Id] && (this._allianceColorMap[this._assualtOperationInfo.AllianceInfo[e].Id] = this._nextColorId, this._nextColorId += 1)
                }, t.prototype.RefreshSelfBuffIcon = function() {
                    for (var e = 0; e < this._mapConfig.SpecialResource.length; e++) {
                        var t = this.SelfBuffIcons[e];
                        if (!t) {
                            var n = cc.instantiate(this.SelfBuffIcons[0].node);
                            n.setParent(this.SelfBuffContainer.node), t = n.getComponent(cc.Sprite), this.SelfBuffIcons.push(t)
                        }
                        this._isBuffIconInit || t.node.on(cc.Node.EventType.TOUCH_END, this.OnBuffIconClick, this);
                        var o = this._mapConfig.SpecialResource[e].Items[1],
                            r = this._mapConfig.SpecialResource[e].Items[0];
                        t.node.name = e.toString(), t.spriteFrame = this.PanelAtlas.getSpriteFrame("buff_" + o), b.AssaultOperationModel.GetResourceSimpleInfo(r).OccupyAllianceId == b.AssaultOperationModel.GetSelfAllianceId() ? D.UIUtlity.OffSpriteGray(t) : D.UIUtlity.OnSpriteGray(t)
                    }
                }, t.prototype.OnBuffIconClick = function(e) {
                    var t = Number.parseInt(e.target.name);
                    if (t != this._curShowBuffIndex) {
                        this.BlockNode.active = !0, this._curShowBuffIndex = t;
                        var n = this._mapConfig.SpecialResource[t].Items[1],
                            o = this._mapConfig.SpecialResource[t].Items[2];
                        this.BuffTip.string = "<outline width=3 color=#202434>" + O.default.Instance.GetAssaultOperationSpecialEffectDesc(n, o) + "</outline>", this.BuffTipNode.active = !0;
                        var r = this.SelfBuffIcons[t].node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            i = this.BuffTipNode.parent.convertToNodeSpaceAR(r);
                        this.BuffTipNode.setPosition(Math.max(-90, i.x), i.y - 45)
                    } else this.HideBuffTipNode()
                }, t.prototype.HideBuffTipNode = function() {
                    this.BlockNode.active = !1, this.HintTipNode.active = !1, 0 != this.BuffTipNode.active && (this._curShowBuffIndex = -1, this.BuffTipNode.active = !1)
                }, t.prototype.OnBuffTipGotoBtnClick = function() {
                    var e = this._mapConfig.SpecialResource[this._curShowBuffIndex].Items[0];
                    l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_ASSAULT_OPERATION_MAP, e), this.HideBuffTipNode()
                }, t.prototype.OnScoreNodeClick = function() {
                    this.BlockNode.active = !0, this.HintTipNode.active = !0, this.HintTipNode.x = Math.max(this.ScoreClickNode.x, -333), this.HintTip.string = "assaultOperation_scoreTip".ToUILocale()
                }, t.prototype.OnTimeCostNodeClick = function() {
                    this.BlockNode.active = !0, this.HintTipNode.active = !0, this.HintTipNode.x = Math.max(this.CountDownClickNode.x, -333), this.HintTip.string = "assaultOperation_timeCostTip".ToUILocale()
                }, t.prototype.BindRedDot = function() {
                    A.RedDotManager.Instance.BindInstance(this.AllianceInfoBtn.node, A.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyNode, {
                        Value1: I.default.ActivityId
                    }), this.BindBattleRecordRedDot(), this.BindCanReviveRedDot()
                }, t.prototype.BindCanReviveRedDot = function() {
                    var e = !1,
                        t = this._activityConfig.CustomPart.LowestBattleEnergyValue;
                    this._assualtOperationInfo.EnergyValue < t && this._assualtOperationInfo.StoredEnergyValue >= t && (e = !0), A.RedDotManager.Instance.BindNodeByResult(this.SpriteBallBtn.node, this._spriteBallRedDot, e)
                }, t.prototype.BindBattleRecordRedDot = function() {
                    var e = !1;
                    f.DataCenter.Instance.GetSpecialRedDot(c.SpecialRedDotType.SlgPersonalBattleMessage) ? e = !0 : f.DataCenter.Instance.GetSpecialRedDot(c.SpecialRedDotType.SlgAllianceBattleMessage) && (e = !0), A.RedDotManager.Instance.BindNodeByResult(this.BattleRecordBtn.node, this._battleRecordRedDot, e)
                }, t.prototype.GetDayPromotionCount = function() {
                    var e = f.DataCenter.Instance.ActivityConfigs[I.default.ActivityId],
                        t = e.Common.StartTime + e.CustomPart.PreparationPeriodTime * c.Etc.HourDuration,
                        n = T.TimeUtil.GetIndexClockTs(e.Common.StartTime, e.CustomPart.BattlePeriodTime[0]);
                    n < t && (n = T.TimeUtil.GetOffsetDayTs(1, n));
                    var o = T.TimeUtil.GetDiffDays(n, h.RpcComponent.Instance.ServerTime),
                        r = e.CustomPart.DailyPromotionCount[o];
                    return r || (r = e.CustomPart.DailyPromotionCount[e.CustomPart.DailyPromotionCount.length - 1]), r
                }, t.prototype.SetSelfLocationHeader = function() {
                    if (!this._selfLocationHeadComponent) {
                        var e = cc.instantiate(this._playerHeaderPrefab);
                        e.setParent(this.SelfLocationHintHeadNode), this._selfLocationHeadComponent = e.getComponent(M.default), this._selfLocationHeadComponent.AutoSetUI()
                    }
                }, t.prototype.InitChatMiniItem = function() {
                    var e;
                    if (!this._chatMiniItem) {
                        var t = cc.instantiate(this._chatMiniPrefab);
                        t.setParent(this.MiniChatNode), this._chatMiniItem = t.getComponent(N.default), this._chatMiniItem.SetDefalutChannel(c.ChatChannelType.AssaultOperation), this._chatMiniItem.SetActivityChannelData({
                            ChannelTypeShowMap: (e = {}, e[c.ChatChannelType.System] = !0, e[c.ChatChannelType.Alliance] = !0, e[c.ChatChannelType.AssaultOperation] = !0, e),
                            OpenStateMap: null
                        })
                    }
                }, t.prototype.InitMiniMapItem = function() {
                    if (!this._miniMapItem) {
                        var e = cc.instantiate(this._miniMapPrefab);
                        e.setParent(this.MiniMapNode), this._miniMapItem = e.getComponent(w.default), this._miniMapItem.Init([this])
                    }
                }, t.prototype.ArrangementTerrain = function() {
                    this._terrainData = {}, this._resouceMainBlockMap = {}, this._level4ResouceIds = [];
                    for (var e = 0; e < this._mapConfig.Terrain.length; e++)
                        for (var t = this._mapConfig.Terrain[e].Items, n = 1; n < t.length; n++) this._terrainData[t[n]] = t[0];
                    for (this._blockResourceMap = {}, e = 0; e < this._mapConfig.ResourceIds.length; e++) {
                        var o = this._mapConfig.ResourceIds[e],
                            r = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, o);
                        r.Type == c.AssaultOperationResourceType.Spiritvein4 && this._level4ResouceIds.push(o);
                        for (var i = 0; i < r.BlockIds.length; i++) {
                            var a = r.BlockIds[i];
                            0 == i && (this._resouceMainBlockMap[a] = o), this._blockResourceMap[a] = o
                        }
                    }
                }, t.prototype.InitialGrids = function() {
                    var e, t;
                    this._gridComponents = [];
                    for (var n = 0; n < this._mapComponent.NodesInstance.length; n++) {
                        var o = this._mapComponent.NodesInstance[n];
                        if (o) {
                            o.on(cc.Node.EventType.TOUCH_END, this.OnResourceGridClick, this);
                            var r = o.getComponent(L.default);
                            if (this._gridComponents.push(r), this._resouceMainBlockMap[n]) {
                                r.PreInitTerrain(this);
                                var i = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationGrid_Config, this._terrainData[n]);
                                if (!i) continue;
                                var a = cc.instantiate(this._mapBuildItemPrefab);
                                a.setParent(this.BuildingLayer), a.on("click", this.OnBuildItemClick, this);
                                var s = a.getComponent(E.default);
                                a.name = n.toString(), a.position = r.node.position, a.x += null !== (e = i.OffsetX) && void 0 !== e ? e : 0, a.y += null !== (t = i.OffsetY) && void 0 !== t ? t : 0, i.Scale && (a.scale = i.Scale / 1e3), this._buildingItemMap[n] = s, this._buildingItemMap[n].Init(this.MapAtlas.getSpriteFrame(i.Icon))
                            } else r.PreInitTerrain(this, this._terrainData[n])
                        }
                    }
                }, t.prototype.ConfigMapData = function() {
                    for (var e in b.AssaultOperationModel.Data.SimpleResourceInfos) {
                        var t = b.AssaultOperationModel.Data.SimpleResourceInfos[e],
                            n = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t.Id),
                            o = n.BlockIds[0];
                        this.ConfigResourceBlock(o, t, n)
                    }
                }, t.prototype.update = function(e) {
                    var t = h.RpcComponent.Instance.ServerTime;
                    this.CheckDaySettlement(t), this.RefreshAutoBattle(t, e), this.RefreshSelfLocationHint(), this.CheckIsHqResourceUnlock(t), this.RefreshTimer(t)
                }, t.prototype.CheckDaySettlement = function(e) {
                    this._isCheckedSettlement ? this.HideResourceItemInfoNode() : e >= this._dayEndTime && this.ShowDaySettlement()
                }, t.prototype.RefreshAutoBattle = function(e, t) {
                    if (this._selfPlayerComponent && this._selfPlayerComponent.SetProgress(0), e < this._dayEndTime - c.Etc.MinuteDuration && (this._autoBattleCoolDown > 0 ? this._autoBattleCoolDown -= t : !this._isCurBattling && this._needFindTarget && this.StartAutoBattle()), this._isCurBattling) {
                        var n = this._delayActions[f.DataCenter.Instance.Uid];
                        n && this._selfPlayerComponent && this._selfPlayerComponent.SetProgress((n.EndTsTime - e) / this._battleDuration)
                    }
                }, t.prototype.CheckIsHqResourceUnlock = function(e) {
                    this._isHqProtectEnd || e >= this._hqProtectEndTime && (this.SetDayActivityCountDown(), this._isHqProtectEnd = !0), this._isLevel4ProtectEnd || e >= this._level4ProtectEndTime && (this.RefreshLv4Block(), this._isLevel4ProtectEnd = !0)
                }, t.prototype.RefreshTimer = function(e) {
                    if (!(this._minTime <= 0 || e < this._minTime))
                        for (var t in this._minTime = 0, this._delayActions)
                            if (this._delayActions[t]) {
                                var n = this._delayActions[t].EndTsTime;
                                if (n <= e) {
                                    var o = this._delayActions[t].ActionCallBack;
                                    delete this._delayActions[t], o && o()
                                } else(0 == this._minTime || n < this._minTime) && (this._minTime = n)
                            }
                }, t.prototype.AddDelayAction = function(e, t, n) {
                    this._delayActions[e] = {
                        EndTsTime: t,
                        ActionCallBack: n
                    }, (0 == this._minTime || t < this._minTime) && (this._minTime = t)
                }, t.prototype.RemoveDelayAction = function(e) {
                    this._delayActions[e] && delete this._delayActions[e]
                }, t.prototype.ClearTimer = function() {
                    for (var e in this._delayActions = {}, this._playerItemMap)(t = this._playerItemMap[e]) && (this._playerItemNodePool.put(t.node), this._playerItemMap[e] = null);
                    for (var e in this._mapLineItemMap) {
                        var t;
                        (t = this._mapLineItemMap[e]) && (this._mapLineItemNodePool.put(t.node), this._mapLineItemMap[e] = null)
                    }
                }, t.prototype.RefreshMapData = function() {
                    var e = this,
                        t = p.Req_AssaultOperation_EnterMap.create();
                    t.ActivityId = I.default.ActivityId, h.RpcComponent.Instance.Call(t, function(t) {
                        if (b.AssaultOperationModel.RefreshData(t), b.AssaultOperationModel.IsSelfAllianceLose()) return D.UIUtlity.ShowFloatingHint("assaultOperation_allianceEliminate".ToUILocale()), l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, !0), void e.Close();
                        e.ConfigMapData(), e.RefreshResourceItemSubPanelInfo(), e.CheckIsSelfBattling(), e.RefreshSelfPlayerItem(), e.AutoAttack.isChecked && (e._needFindTarget = !0), l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH)
                    })
                }, t.prototype.ShowDaySettlement = function() {
                    var e = this;
                    this._isCheckedSettlement = !0;
                    var t = p.Req_AssaultOperation_GetRank.create();
                    t.ActivityId = I.default.ActivityId, t.Type = c.AssaultOperationRankType.DailyScore, h.RpcComponent.Instance.Call(t, function(t) {
                        var n = e.GetDayPromotionCount(),
                            o = e.GetSelfAllianceRankInfo(t),
                            r = o[0],
                            i = o[1],
                            a = o[2],
                            s = o[3];
                        if (a) {
                            if (i <= n) {
                                for (var c = void 0, u = 0; u < e._activityConfig.AllianceRankSocre.length; u++) {
                                    var p = e._activityConfig.AllianceRankSocre[u].Rank,
                                        d = p[0],
                                        f = p[1];
                                    f ? i >= d && i >= f && (c = e._activityConfig.AllianceRankSocre[u].RewardScore[t.MapType - 1]) : i >= d && (c = e._activityConfig.AllianceRankSocre[u].RewardScore[t.MapType - 1])
                                }
                                T.TimeUtil.GetDiffDays(h.RpcComponent.Instance.ServerTime, O.default.Instance.GetActivityEndTime(I.default.ActivityId)) >= 1 && l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AssaultOperationDaySettlementPanel.Path, n, t.MapType + 1, i, c)
                            }
                            l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AssaultOperationWinnerPanel.Path, t.MapType, r, s)
                        }
                    })
                }, t.prototype.GetSelfAllianceRankInfo = function(e) {
                    for (var t, n, o, r, i = [], a = b.AssaultOperationModel.GetSelfAllianceId(), s = {}, l = 0, c = 0; c < e.Alliances.length; c++) {
                        var u = e.Alliances[c].ArrayParam[1],
                            p = i.indexOf(u);
                        if (-1 == p && (p = l, i.push(u), s[l] = [], l++), s[p].push(e.Alliances[c]), e.Alliances[c].Id == a) {
                            o = p, r = s[p].length, t = e.Alliances[c], n = s[p][0];
                            break
                        }
                    }
                    return [o, r, t, n]
                }, t.prototype.RefreshSelfLocationHint = function() {
                    var e;
                    if (this._selfPlayerComponent && this._selfPlayerComponent.node.active) {
                        var t = this._selfPlayerComponent.node.convertToWorldSpaceAR(cc.v2(0, 0));
                        e = this.MapScrollView.node.convertToNodeSpaceAR(t)
                    } else {
                        var n = this._playerItemMap[f.DataCenter.Instance.Uid];
                        n && (t = n.node.convertToWorldSpaceAR(cc.v2(0, 0)), e = this.MapScrollView.node.convertToNodeSpaceAR(t))
                    }
                    e ? e.x < -this.MapScrollView.node.width / 2 ? (this.SelfLocationHintNode.active = !0, this.SelfLocationHintNode.x = -Math.abs(this.SelfLocationHintNode.x), this.SelfLocationHintArrow.x = -Math.abs(this.SelfLocationHintArrow.x), this.SelfLocationHintArrow.scaleX = 1) : e.x > this.MapScrollView.node.width / 2 ? (this.SelfLocationHintNode.active = !0, this.SelfLocationHintNode.x = Math.abs(this.SelfLocationHintNode.x), this.SelfLocationHintArrow.x = Math.abs(this.SelfLocationHintArrow.x), this.SelfLocationHintArrow.scaleX = -1) : this.SelfLocationHintNode.active = !1 : this.SelfLocationHintNode.active = !1
                }, t.prototype.PlayWinStreakInfo = function(e) {
                    var t = this;
                    if (e)
                        if (!this._winStreakQueue || this._winStreakQueue.length <= 0) this._winStreakQueue = e;
                        else
                            for (var n = 0; n < e.length; n++) this._winStreakQueue.push(e[n]);
                    if (!this._isPlayingWinStreak && this._winStreakQueue && this._winStreakQueue.length > 0) {
                        if (this._isPlayingWinStreak = !0, this.WiningStreakNode.active = !0, !this._winStreakHeaderComponent) {
                            var o = cc.instantiate(this._playerHeaderPrefab);
                            o.setParent(this.WiningStreakHeaderNode), this._winStreakHeaderComponent = o.getComponent(M.default)
                        }
                        cc.Tween.stopAllByTarget(this.WiningStreakNode);
                        var r = this._winStreakQueue.shift(),
                            i = (r.Uid, r.WinCount);
                        this._winStreakHeaderComponent.SetUI(r.HeadIcon, r.HeadFrame), this.WiningStreakPlayerName.string = r.Name, this.WiningStreakCount.string = "<outline width=3 color=#202434>" + "assaultOperation_winStreak".ToUILocale().Fmt(i) + "</outline>", this.WiningStreakNode.x = 0, cc.tween(this.WiningStreakNode).to(.5, {
                            x: this.WiningStreakNode.width - 10
                        }).delay(2).call(function() {
                            t._isPlayingWinStreak = !1, t.WiningStreakNode.active = !1, t.PlayWinStreakInfo()
                        }).start()
                    }
                }, t.prototype.StartAutoBattle = function() {
                    var e = this;
                    if (!b.AssaultOperationModel.IsSelfDead())
                        if (b.AssaultOperationModel.GetPlayerMoveInfo(f.DataCenter.Instance.Uid)) this.StopAutoAttack();
                        else {
                            var t = b.AssaultOperationModel.GetSelfLocateResourceInfo();
                            if (t) {
                                for (var n, o = {}, r = 0; r < t.BattleQueue.length; r++) {
                                    var i = t.BattleQueue[r].Items;
                                    o[i[b.AssaultOperationBattleInfo.AttackUid]] = !0, o[i[b.AssaultOperationBattleInfo.DefenderUid]] = !0
                                }
                                var a, s = b.AssaultOperationModel.GetSelfAllianceId();
                                for (r = 0; r < t.Attackers.length; r++) {
                                    var l = t.Attackers[r];
                                    if (!(c = b.AssaultOperationModel.GetPlayerSimpleInfo(l))) return;
                                    if (c[b.AssaultPlayerSimpleInfo.AllianceId] != s)
                                        if (o[l]) a = !0;
                                        else if (!b.AssaultOperationModel.GetPlayerMoveInfo(l)) {
                                        n = l;
                                        break
                                    }
                                }
                                if (a && null == n) this.StopAutoAttack();
                                else {
                                    if (a = !1, null == n && t.OccupyAllianceId != s) {
                                        for (r = 0; r < t.Defenders.length; r++) {
                                            var c;
                                            if (l = t.Defenders[r], !(c = b.AssaultOperationModel.GetPlayerInfo(l))) return;
                                            if (c.ArrayParam[2] != s && !b.AssaultOperationModel.GetPlayerMoveInfo(l)) {
                                                if (!o[l]) {
                                                    n = l;
                                                    break
                                                }
                                                a = !0
                                            }
                                        }
                                        if (a && null == n) return void this.StopAutoAttack();
                                        if (!n)
                                            for (var u in t.Monsters) {
                                                var d = Number.parseInt(u);
                                                if (t.Monsters[d] && !o[d]) {
                                                    n = d;
                                                    break
                                                }
                                            }
                                    }
                                    if (null != n) {
                                        this._isCurBattling = !0, this._needFindTarget = !1;
                                        var y = p.Req_AssaultOperation_ChallengeResourcePoint.create();
                                        y.ActivityId = I.default.ActivityId, h.RpcComponent.Instance.Call(y, function(t) {
                                            0 == t.Code ? (e._isCurBattling = !1, e.StopAutoAttack(), e.AutoAttack.isChecked = !1, D.UIUtlity.ShowFloatingHint("AssaultOperation_stopAutoHint".ToUILocale())) : t.BattleInfo && t.BattleInfo.length > 0 ? b.AssaultOperationModel.OnBattleStart([{
                                                Items: t.BattleInfo
                                            }]) : (e._isCurBattling = !1, e._autoBattleCoolDown = 1)
                                        })
                                    } else this.StopAutoAttack()
                                }
                            }
                        }
                }, t.prototype.StopAutoAttack = function() {
                    this._needFindTarget = !1
                }, t.prototype.CheckIsSelfBattling = function() {
                    if (b.AssaultOperationModel.GetPlayerMoveInfo(f.DataCenter.Instance.Uid)) return this._isCurBattling = !1, void(this._autoBattleCoolDown = 1);
                    var e = this._delayActions[f.DataCenter.Instance.Uid];
                    if (!e) return this._isCurBattling = !1, void(this._autoBattleCoolDown = 1);
                    e.EndTsTime > h.RpcComponent.Instance.ServerTime ? this._isCurBattling = !0 : (this._isCurBattling = !1, this._autoBattleCoolDown = 1)
                }, t.prototype.OnResourceItemChange = function(e, t, n) {
                    if (t && t.length > 0) {
                        if (b.AssaultOperationModel.IsSelfAllianceLose()) return D.UIUtlity.ShowFloatingHint("assaultOperation_allianceEliminate".ToUILocale()), l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, !0), void this.Close();
                        this.RefreshSelfBuffIcon()
                    }
                    for (var o, r, i = this._blockResourceMap[this._curSelectBlockIndex], a = 0; a < e.length; a++) {
                        var s = b.AssaultOperationModel.GetResourceSimpleInfo(e[a]),
                            c = (p = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, s.Id)).BlockIds[0];
                        this.ConfigResourceBlock(c, s, p), (e[a] == i || p.NeighborIds.includes(i)) && (o = !0), this.AutoAttack.isChecked && b.AssaultOperationModel.GetSelfLocation() == s.Id && (this._needFindTarget = !0)
                    }
                    if (t)
                        for (a = 0; a < t.length; a++) {
                            c = (p = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t[a])).BlockIds[0];
                            var p, d = this._resourceInfoItems[c];
                            d && d.ShowTakeOverEffect(), (t[a] == i || p.NeighborIds.includes(i)) && (o = !0, r = !0)
                        }
                    o && this.RefreshResourceItemSubPanelInfo(r), n && (this._isCurBattling = !1, this._autoBattleCoolDown = 1, !this._isCurBattling && this.AutoAttack.isChecked && (this._needFindTarget = !0))
                }, t.prototype.ConfigResourceBlock = function(e, t, n) {
                    var o, r, i = this._mapComponent.NodesInstance[e].getComponent(L.default);
                    i.InitNormalMapGrid(this._allianceColorMap[t.OccupyAllianceId], t);
                    var a = this._resourceInfoItems[e];
                    if (!a) {
                        var s = void 0,
                            l = void 0;
                        if (this._terrainData[e]) {
                            var p = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationGrid_Config, this._terrainData[e]);
                            s = null !== (o = p.OffsetX) && void 0 !== o ? o : 0, l = null !== (r = p.OffsetY) && void 0 !== r ? r : 0
                        }
                        var d = cc.instantiate(this._mapResouceInfoItemPrefab);
                        d.setParent(this.BuildingLayer), d.setPosition(i.node.position.x + s, i.node.position.y - this.GetResourceItemOffsetY(n.Type) + l), a = d.getComponent(v.default), this._resourceInfoItems[e] = a
                    }
                    if (n || (n = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t.Id)), a.Init(this, t, f.DataCenter.Instance.GetSpecialRedDot(c.SpecialRedDotType.SlgSignUp)), i.OwnerAllianceId != t.OccupyAllianceId)
                        for (var h = 1; h < n.BlockIds.length; h++) this._mapComponent.NodesInstance[n.BlockIds[h]].getComponent(L.default).InitNormalMapGrid(this._allianceColorMap[t.OccupyAllianceId]);
                    this._curSelectBlockIndex == e && this._buildingItemMap[e].SetHighlight(!0)
                }, t.prototype.GetResourceItemOffsetY = function(e) {
                    switch (e) {
                        case c.AssaultOperationResourceType.Spiritvein2:
                            return 190;
                        case c.AssaultOperationResourceType.Spiritvein3:
                        case c.AssaultOperationResourceType.Headquarters:
                            return 200;
                        case c.AssaultOperationResourceType.Spiritvein4:
                            return 240;
                        default:
                            return 140
                    }
                }, t.prototype.RefreshSelfInfo = function() {
                    if (!this._selfHeaderComponent) {
                        var e = cc.instantiate(this._playerHeaderPrefab);
                        e.setParent(this.SelfHeaderNode), this._selfHeaderComponent = e.getComponent(M.default), this._selfHeaderComponent.AutoSetUI(), this.SelfName.string = f.DataCenter.Instance.GetStringData(c.UserDataKey.RoleName)
                    }
                    var t = b.AssaultOperationModel.GetSelfLocation();
                    f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t).Type == c.AssaultOperationResourceType.Headquarters ? this.SelfLocation.string = "[" + b.AssaultOperationModel.GetAllianceInfo(t, b.AssaultOperationGetAllianceTypeBy.ResourceId)[0] + "] " + "assaultOperation_resourceName_99".ToUILocale() : this.SelfLocation.string = t.ToAssualtOperationResourceName();
                    var n = b.AssaultOperationModel.GetPlayerInfo(f.DataCenter.Instance.Uid),
                        o = n.ArrayParam[0],
                        r = n.ArrayParam[1];
                    this.SelfSpiritValueBar.progress = o / r, this.SelfSpiritValue.string = o + "/" + r, o <= 0 ? this.NoEnergyHint.active || (D.UIUtlity.OnNodeGray(this._selfHeaderComponent.node), this.NoEnergyHint.active = !0) : this.NoEnergyHint.active && (D.UIUtlity.OffNodeGray(this._selfHeaderComponent.node), this.NoEnergyHint.active = !1)
                }, t.prototype.RefreshSelfPlayerItem = function() {
                    if (!this._selfPlayerComponent) {
                        var e = cc.instantiate(this._mapPlayerItemPrefab);
                        e.setParent(this.PlayerLayer), this._selfPlayerComponent = e.getComponent(S.default), this._selfPlayerComponent.Init(this._playerHeaderPrefab, f.DataCenter.Instance.GetIntData(c.UserDataKey.HeadIcon), f.DataCenter.Instance.GetIntData(c.UserDataKey.HeadFrame))
                    }
                    if (b.AssaultOperationModel.GetPlayerMoveInfo(f.DataCenter.Instance.Uid)) this._selfPlayerComponent.node.active = !1;
                    else {
                        var t = b.AssaultOperationModel.GetSelfLocation(),
                            n = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t),
                            o = this._resourceInfoItems[n.BlockIds[0]];
                        this._selfPlayerComponent.node.setPosition(o.node.x, o.node.y + 230), this._selfPlayerComponent.node.active = !0
                    }
                }, t.prototype.SetDayActivityCountDown = function() {
                    var e = h.RpcComponent.Instance.ServerTime;
                    this._hqProtectEndTime > e ? (this.RoundCountDownNode.active = !0, this.RoundCountDownHint.string = "assaultOperation_hqProtectCountDown".ToUILocale(), this.RoundCountDown.Init(this._hqProtectEndTime, "Activity_HeroPK_Round_Tag_End".ToUILocale())) : (this.RoundCountDownNode.active = !1, this.RefreshAllHqBlock())
                }, t.prototype.RefreshAllHqBlock = function() {
                    if (b.AssaultOperationModel.Data.AllianceInfoMap)
                        for (var e in b.AssaultOperationModel.Data.AllianceInfoMap) {
                            var t = b.AssaultOperationModel.GetAllianceHeadQuartersId(Number.parseInt(e)),
                                n = b.AssaultOperationModel.GetResourceSimpleInfo(t),
                                o = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, n.Id).BlockIds[0];
                            this._resourceInfoItems[o].Init(this, n, f.DataCenter.Instance.GetSpecialRedDot(c.SpecialRedDotType.SlgSignUp))
                        }
                }, t.prototype.RefreshLv4Block = function() {
                    if (this._level4ResouceIds)
                        for (var e = 0; e < this._level4ResouceIds.length; e++) {
                            var t = b.AssaultOperationModel.GetResourceSimpleInfo(this._level4ResouceIds[e]),
                                n = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t.Id).BlockIds[0];
                            this._resourceInfoItems[n].Init(this, t, f.DataCenter.Instance.GetSpecialRedDot(c.SpecialRedDotType.SlgSignUp))
                        }
                }, t.prototype.SetDayCountDown = function() {
                    var e = h.RpcComponent.Instance.ServerTime,
                        t = T.TimeUtil.GetIndexClockTs(e, this._activityConfig.CustomPart.BattlePeriodTime[1]);
                    this.TopCountDown.Init(t, "Activity_HeroPK_Round_Tag_End".ToUILocale())
                }, t.prototype.RefreshResourceItemSubPanelInfo = function(e) {
                    if (void 0 === e && (e = !1), this.unschedule(this.RefreshArriveCountDown), null != this._curSelectBlockIndex) {
                        var t = this._blockResourceMap[this._curSelectBlockIndex],
                            n = b.AssaultOperationModel.GetResourceSimpleInfo(t),
                            o = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t);
                        this.ResouceItemActionBtn.node.active = !0;
                        var r = b.AssaultOperationModel.GetPlayerMoveInfo(f.DataCenter.Instance.Uid);
                        if (this.ResourceItemTravelTime.node.color = this.TIME_GREEN, this.ResourceItemTravelTime.node.active = !0, this.ResourceItemTravelTime.fontSize = 30, this.ResourceItemScore.string = o.Score.toString(), r) t == r.EndResourcePoint ? (this.SetArriveTimeCountDown(), this.ResouceItemActionBtnLabel.string = "ActivityMagicCompose_Quick".ToUILocale()) : (this.ResouceItemActionBtnLabel.string = "assaultOperation_startMove".ToUILocale(), this.SetResourceActionBtnGrey(!0), this.ResourceItemTravelTime.string = "-", this.ResourceItemTravelTime.fontSize = 60);
                        else if (b.AssaultOperationModel.GetSelfLocation() == t) this.ResourceItemTravelTime.fontSize = 60, this.ResourceItemTravelTime.string = "-", n.OccupyAllianceId != b.AssaultOperationModel.GetSelfAllianceId() ? (this.ResouceItemActionBtnLabel.string = "assaultOperation_challengeMonster".ToUILocale(), this.SetResourceActionBtnGrey(!1)) : this.ResouceItemActionBtn.node.active = !1;
                        else {
                            this.ResouceItemActionBtnLabel.string = "assaultOperation_startMove".ToUILocale();
                            var i = b.AssaultOperationModel.GetPlayerInfo(f.DataCenter.Instance.Uid),
                                a = this._activityConfig.CustomPart.LowestBattleEnergyValue;
                            if (i.ArrayParam[0] < a && b.AssaultOperationModel.GetSelfLocation() == b.AssaultOperationModel.GetAllianceHeadQuartersId()) this.ResourceItemTravelTime.string = "assaultOperation_lowEnergyTip".ToUILocale(), this.ResourceItemTravelTime.node.color = this.TIME_RED, this.SetResourceActionBtnGrey(!0);
                            else if (this.IsResourceItemCanTravel(t, o)) {
                                var s = b.AssaultOperationModel.GetSelfLocation(),
                                    l = t;
                                this.ResourceItemTravelTime.string = this.CalculateTotalTravelTime(s, l).toString(), this.SetResourceActionBtnGrey(!1)
                            } else this.ResourceItemTravelTime.string = "assaultOperation_cantTravel".ToUILocale(), this.ResourceItemTravelTime.node.color = this.TIME_RED, this.SetResourceActionBtnGrey(!0)
                        }
                        this.IsResourceTravelUnlock(t, e) || (this.ResouceItemActionBtn.node.active = !1), e ? b.AssaultOperationModel.ReqLookingResourceDetailInfo(o.Id, this.RefreshResourceItemQueueInfo.bind(this, o)) : this.RefreshResourceItemQueueInfo(o)
                    }
                }, t.prototype.IsResourceItemCanTravel = function(e, t) {
                    if (b.AssaultOperationModel.GetResourceSimpleInfo(e).OccupyAllianceId == b.AssaultOperationModel.GetSelfAllianceId()) return !0;
                    t || (t = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, e));
                    for (var n = 0; n < t.NeighborIds.length; n++)
                        if (b.AssaultOperationModel.GetResourceSimpleInfo(t.NeighborIds[n]).OccupyAllianceId == b.AssaultOperationModel.GetSelfAllianceId()) return !0;
                    return !1
                }, t.prototype.CalculateTotalTravelTime = function(e, t) {
                    var n = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, e),
                        o = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t),
                        r = n.BlockIds[0],
                        i = o.BlockIds[0],
                        a = this._mapComponent.GetDistance(r, i),
                        s = this._activityConfig.MoveConfig.Speed / 1e4;
                    return Math.round(a / s * (1 - b.AssaultOperationModel.GetSpecialBuffAddOnValue(c.AssaultOperationSpecialResourceType.AddMoveSpeed) / 1e4))
                }, t.prototype.CalculateLeftDistance = function(e) {
                    for (var t = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, e.StartResourcePoint), n = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, e.EndResourcePoint), o = t.BlockIds[0], r = n.BlockIds[0], i = this._mapComponent.GetDistance(o, r), a = i, s = this._activityConfig.MoveConfig.Speed / 1e4, l = e.StartTime, p = 0; p < e.AccelerationTime.length; p++) {
                        var d = (e.AccelerationTime[p] - l) / c.Etc.SecondDuration;
                        l = e.AccelerationTime[p], a -= d * s, s *= 2
                    }
                    return [i, a -= (h.RpcComponent.Instance.ServerTime - l) / c.Etc.SecondDuration * s]
                }, t.prototype.RefreshResourceItemQueueInfo = function(e) {
                    var t = this._blockResourceMap[this._curSelectBlockIndex],
                        n = b.AssaultOperationModel.Data.CurLookingResourceInfo;
                    this.SimpleQueueItems[b.AssaultOperationQueueType.Attack].Init(this, {
                        SpriteFrame: this.PanelAtlas.getSpriteFrame("memberIcon"),
                        UidArray: n.Attackers,
                        ResourceId: t,
                        ResourceType: e.Type
                    }), this.SimpleQueueItems[b.AssaultOperationQueueType.Defend].Init(this, {
                        UidArray: n.Defenders,
                        MonsterMap: n.Monsters,
                        SpriteFrame: this.PanelAtlas.getSpriteFrame("memberIcon"),
                        ResourceId: t,
                        ResourceType: e.Type
                    }), this.SimpleQueueItems[b.AssaultOperationQueueType.Battling].Init(this, {
                        BattleArray: n.BattleQueue,
                        SpriteFrame: this.PanelAtlas.getSpriteFrame("battleIcon3"),
                        ResourceId: t,
                        ResourceType: e.Type
                    })
                }, t.prototype.SetResourceActionBtnGrey = function(e) {
                    !this.ResouceItemActionGrayBtn.node.active && e ? (this.ResouceItemActionGrayBtn.node.active = !0, this.ResouceItemActionGrayBtnLabel.string = this.ResouceItemActionBtnLabel.string) : this.ResouceItemActionGrayBtn.node.active && !e && (this.ResouceItemActionGrayBtn.node.active = !1), this.ResouceItemActionBtn.node.active = !this.ResouceItemActionGrayBtn.node.active
                }, t.prototype.SetArriveTimeCountDown = function() {
                    this.unschedule(this.RefreshArriveCountDown), this.RefreshArriveCountDown(), this.schedule(this.RefreshArriveCountDown, 1)
                }, t.prototype.RefreshArriveCountDown = function() {
                    var e = h.RpcComponent.Instance.ServerTime,
                        t = b.AssaultOperationModel.GetPlayerMoveInfo(f.DataCenter.Instance.Uid);
                    if (!t) return this.ResourceItemTravelTime.string = "--", void this.unschedule(this.RefreshArriveCountDown);
                    var n = t.MoveEndTime,
                        o = Math.round((n - e) / 1e3);
                    if (o <= 0) return this.ResourceItemTravelTime.string = "--", void this.unschedule(this.RefreshArriveCountDown);
                    o > this._activityConfig.MoveConfig.AccelerateLimitTs ? this.SetResourceActionBtnGrey(!1) : this.SetResourceActionBtnGrey(!0), this.ResourceItemTravelTime.string = o.toString()
                }, t.prototype.RefreshMapPlayers = function(e, t) {
                    var n = b.AssaultOperationModel.GetPlayerMoveInfo(e);
                    this.ConfigPlayerMove(e, n), e == f.DataCenter.Instance.Uid && (this.RefreshSelfPlayerItem(), null != this._curSelectBlockIndex && this.RefreshResourceItemSubPanelInfo(), this.RefreshSpriteBallBtnState(), n || (this.RefreshSelfInfo(), this.AutoAttack.isChecked && t && (this._needFindTarget = !0))), this.AutoAttack.isChecked && t && b.AssaultOperationModel.GetPlayerSimpleInfo(e)[b.AssaultPlayerSimpleInfo.AllianceId] != b.AssaultOperationModel.GetSelfAllianceId() && t == b.AssaultOperationModel.GetSelfLocation() && (this._needFindTarget = !0)
                }, t.prototype.ConfigPlayerMove = function(e, t) {
                    if (!t) return this.PutMapLineItem(e), void this.PutPlayerItem(e);
                    var n = h.RpcComponent.Instance.ServerTime;
                    if (n > t.MoveEndTime) return this.PutMapLineItem(e), void this.PutPlayerItem(e);
                    var o, r, i = this.GetMapPlayerItem(e),
                        a = this.GetMapLineItem(e),
                        s = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t.StartResourcePoint),
                        l = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t.EndResourcePoint),
                        p = s.BlockIds[0],
                        d = l.BlockIds[0],
                        y = this._mapComponent.NodesInstance[p],
                        g = this._mapComponent.NodesInstance[d],
                        m = this._resourceInfoItems[d];
                    i.Init(this._playerHeaderPrefab, t.HeadIcon, t.HeadFrame, t.Uid == f.DataCenter.Instance.Uid), r = m ? new cc.Vec3(m.node.position.x, m.node.position.y + this.GetResourceItemOffsetY(l.Type)) : g.position;
                    var I = this._resourceInfoItems[p];
                    o = I ? new cc.Vec3(I.node.position.x, I.node.position.y + this.GetResourceItemOffsetY(l.Type)) : y.position;
                    var _ = this.CalculateLeftDistance(t),
                        C = _[0],
                        v = _[1] / C,
                        b = cc.Vec3.distance(o, r) * v,
                        S = r.add(o.sub(r).normalize().mul(b)),
                        w = (t.MoveEndTime - n) / c.Etc.SecondDuration;
                    if (i.SetMovePosition(S, r, w), a) {
                        var P = this._allianceColorMap[t.AllianceId];
                        a.Init(o, r, this.PanelAtlas.getSpriteFrame("arrow_" + P), this._rateScrollViewRect)
                    }
                }, t.prototype.RefreshSpriteBallBtnState = function() {
                    var e = b.AssaultOperationModel.GetPlayerMoveInfo(f.DataCenter.Instance.Uid);
                    e || !e && b.AssaultOperationModel.GetSelfLocation() != b.AssaultOperationModel.GetAllianceHeadQuartersId() ? this.SpriteBallBtn.node.active = !1 : this.SpriteBallBtn.node.active = !0
                }, t.prototype.GetMapPlayerItem = function(e) {
                    var t = this._playerItemMap[e];
                    if (t) return this._playerItemMap[e];
                    var n = void 0;
                    return (n = this._playerItemNodePool.size() > 0 ? this._playerItemNodePool.get() : cc.instantiate(this._mapPlayerItemPrefab)).setParent(this.PlayerLayer), t = n.getComponent(S.default), this._playerItemMap[e] = t, t.node.active = !0, t
                }, t.prototype.PutPlayerItem = function(e) {
                    var t = this._playerItemMap[e];
                    t && (this._playerItemMap[e] = null, delete this._playerItemMap[e], this._playerItemNodePool.put(t.node))
                }, t.prototype.GetMapLineItem = function(e) {
                    var t = this._mapLineItemMap[e];
                    if (t) return null;
                    var n = void 0;
                    return (n = this._mapLineItemNodePool.size() > 0 ? this._mapLineItemNodePool.get() : cc.instantiate(this._lineComponentPrefab)).setParent(this.MovingLineLayer), t = n.getComponent(y.default), this._mapLineItemMap[e] = t, t.node.active = !0, t
                }, t.prototype.PutMapLineItem = function(e) {
                    var t = this._mapLineItemMap[e];
                    t && (this._mapLineItemMap[e] = null, delete this._mapLineItemMap[e], this._mapLineItemNodePool.put(t.node))
                }, t.prototype.HideResourceItemInfoNode = function() {
                    this.ResourceItemQueueNode.active = !1, null != this._curSelectBlockIndex && this._buildingItemMap[this._curSelectBlockIndex].SetHighlight(!1), this._curSelectBlockIndex = null
                }, t.prototype.OnQueueBtnClick = function(e) {
                    var t = Number.parseInt(e.target.name),
                        n = this._blockResourceMap[this._curSelectBlockIndex];
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AssaultOperationQueuePanel.Path, n, t)
                }, t.prototype.OnResourceGridClick = function() {
                    this.HideResourceItemInfoNode()
                }, t.prototype.OnBuildItemClick = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._curSelectBlockIndex != t && this.SelectResourceBlock(t)
                }, t.prototype.SelectResourceBlock = function(e) {
                    this._dayEndTime - c.Etc.MinuteDuration <= h.RpcComponent.Instance.ServerTime ? D.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()) : this._curSelectBlockIndex != e && (null != this._curSelectBlockIndex && this._buildingItemMap[this._curSelectBlockIndex].SetHighlight(!1), this._curSelectBlockIndex = e, this._buildingItemMap[this._curSelectBlockIndex].SetHighlight(!0), this.ResourceItemQueueNode.active = !0, this.RefreshResourceItemSubPanelInfo(!0))
                }, t.prototype.IsResourceTravelUnlock = function(e, t) {
                    var n, o;
                    switch (void 0 === t && (t = !0), f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, e).Type) {
                        case c.AssaultOperationResourceType.Headquarters:
                            e != b.AssaultOperationModel.GetAllianceHeadQuartersId() && (o = "assaultOperation_resourceName_99".ToUILocale(), n = this._activityConfig.CustomPart.UnlockAttackAllianceTime);
                            break;
                        case c.AssaultOperationResourceType.Spiritvein4:
                            n = this._activityConfig.CustomPart.UnlockAttackFourLevelResourceTime, o = e.ToAssualtOperationResourceName()
                    }
                    if (null != n) {
                        var r = h.RpcComponent.Instance.ServerTime,
                            i = T.TimeUtil.GetIndexClockTs(r, n) - r;
                        if (i > 0) return t && D.UIUtlity.ShowFloatingHint("assaultOperation_resourceUnlockTime".ToUILocale().Fmt(i.FmtSimpleRemainTime(), o)), !1
                    }
                    return !0
                }, t.prototype.OnResouceItemActionBtnClick = function() {
                    var e = this;
                    if (b.AssaultOperationModel.GetTodayEndTime() <= h.RpcComponent.Instance.ServerTime) D.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else {
                        var t = b.AssaultOperationModel.GetPlayerInfo(f.DataCenter.Instance.Uid),
                            n = this._activityConfig.CustomPart.LowestBattleEnergyValue;
                        this.ResourceItemQueueNode.active = !0;
                        var o = this._blockResourceMap[this._curSelectBlockIndex],
                            r = b.AssaultOperationModel.GetResourceSimpleInfo(o);
                        if (b.AssaultOperationModel.GetSelfLocation() == o && r.OccupyAllianceId != b.AssaultOperationModel.GetSelfAllianceId()) {
                            if (t.ArrayParam[0] < n && b.AssaultOperationModel.GetSelfLocation() == b.AssaultOperationModel.GetAllianceHeadQuartersId()) return void D.UIUtlity.ShowFloatingHint("assaultOperation_lowEnergyHint1".ToUILocale().Fmt(n));
                            if (this.ResouceItemActionGrayBtn.node.active) return;
                            this.AutoAttack.isChecked = !0, B.default.Instance.HideFinger(this.AutoAttack.node), this.OnAutoAttackToggleClick(), l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AssaultOperationQueuePanel.Path, o, b.AssaultOperationQueueType.Battling)
                        } else {
                            var i = b.AssaultOperationModel.GetPlayerMoveInfo(f.DataCenter.Instance.Uid);
                            if (i && o == i.EndResourcePoint) {
                                if ((i.MoveEndTime - h.RpcComponent.Instance.ServerTime) / 1e3 <= this._activityConfig.MoveConfig.AccelerateLimitTs) return void D.UIUtlity.ShowFloatingHint("assaultOperation_accelerateFail".ToUILocale().Fmt(this._activityConfig.MoveConfig.AccelerateLimitTs));
                                var a = P.default.GetItem(P.GameRecordDefine.AssaultOperationAccelerateHint),
                                    s = this._activityConfig.MoveConfig.AccelerateRationCost[0],
                                    c = this._activityConfig.MoveConfig.AccelerateRationCost[1];
                                if (!f.DataCenter.Instance.IsItemEnough(s, c)) return void D.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(s.ToItemName()));
                                if (a) this.AccelerateReq();
                                else {
                                    var u = "assaultOperation_accelerateHint".ToUILocale();
                                    D.UIUtlity.ShowHintPanel(null, u, "Answer_QuitNo".ToUILocale(), null, "Answer_QuitYes".ToUILocale(), function() {
                                        e.AccelerateReq()
                                    }, null, P.GameRecordDefine.AssaultOperationAccelerateHint, !1, s, c)
                                }
                            } else {
                                if (this._isCurBattling && (this.CheckIsSelfBattling(), this._isCurBattling)) return void D.UIUtlity.ShowFloatingHint("inBattle".ToUILocale());
                                if (t.ArrayParam[0] < n && b.AssaultOperationModel.GetSelfLocation() == b.AssaultOperationModel.GetAllianceHeadQuartersId()) return void D.UIUtlity.ShowFloatingHint("assaultOperation_lowEnergyHint".ToUILocale().Fmt(n));
                                if (!this.IsResourceItemCanTravel(o)) return void D.UIUtlity.ShowFloatingHint("assaultOperation_cantTravelHint".ToUILocale().Fmt(n));
                                if (this.ResouceItemActionGrayBtn.node.active) return void D.UIUtlity.ShowFloatingHint("assaultOperation_moving".ToUILocale());
                                this.StartMoveReq()
                            }
                        }
                        this.ShowGameGuid(this._guideGroupId)
                    }
                }, t.prototype.StartMoveReq = function() {
                    var e = p.Req_AssaultOperation_LeaderMove.create();
                    e.ActivityId = I.default.ActivityId, e.ResourcePointId = this._blockResourceMap[this._curSelectBlockIndex], h.RpcComponent.Instance.Call(e, null)
                }, t.prototype.AccelerateReq = function() {
                    var e = p.Req_AssaultOperation_LeaderAccelerateMove.create();
                    e.ActivityId = I.default.ActivityId, h.RpcComponent.Instance.Call(e, function() {
                        D.UIUtlity.ShowFloatingHint("assaultOperation_SpeedUpSuccess".ToUILocale())
                    })
                }, t.prototype.OnPlayerEnergyChange = function(e) {
                    e.includes(f.DataCenter.Instance.Uid) && (this.RefreshSelfInfo(), b.AssaultOperationModel.GetPlayerInfo(f.DataCenter.Instance.Uid).ArrayParam[0] <= 0 && (this.RefreshSpriteBallBtnState(), this.HandleSuddenDeath(), this.RefreshSelfPlayerItem(), this.ShowGameGuid(this._guideGroupId)), A.RedDotManager.Instance.BindNodeByResult(this.SpriteBallBtn.node, this._spriteBallRedDot, !1))
                }, t.prototype.HandleSuddenDeath = function() {
                    var e = f.DataCenter.Instance.Uid;
                    this.RemoveDelayAction(e);
                    var t = this._playerItemMap[e];
                    t && (this._playerItemNodePool.put(t.node), this._playerItemMap[e] = null), this._mapLineItemMap[e] && (this._mapLineItemNodePool.put(t.node), this._mapLineItemMap[e] = null)
                }, t.prototype.OnCloseBtnClick = function() {
                    this.Close()
                }, t.prototype.OnQueueBackBtnClick = function() {
                    this.HideResourceItemInfoNode()
                }, t.prototype.OnMiniMapExitBtnClick = function() {
                    this._miniMapItem.IsFullScreenMode && this._miniMapItem.ExitFullScreenMode()
                }, t.prototype.OnAllianceInfoBtnClick = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AssaultOperationFamilyPanel.Path, this.RefreshFamilyRedDotByTime.bind(this))
                }, t.prototype.OnRankBtnClick = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AssaultOperationMatchSchedulePanel.Path, 2)
                }, t.prototype.OnSpriteBallBtnClick = function() {
                    b.AssaultOperationModel.GetTodayEndTime() <= h.RpcComponent.Instance.ServerTime ? D.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()) : l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AssaultOperationSpritePowerBallPanel.Path)
                }, t.prototype.OnRescourceInformationBtnClick = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AssaultOperationIntelligencePanel.Path)
                }, t.prototype.OnBattleRecordBtnClick = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.AssaultOperationBattleRecordPanel.Path), A.RedDotManager.Instance.BindNodeByResult(this.BattleRecordBtn.node, this._battleRecordRedDot, !1)
                }, t.prototype.OnSelfLocationBtnClick = function() {
                    this.OnMoveCameraToSelfHeader()
                }, t.prototype.OnMoveCameraToSelfHeader = function(e) {
                    void 0 === e && (e = !0);
                    var t = b.AssaultOperationModel.GetPlayerMoveInfo(f.DataCenter.Instance.Uid);
                    if (t) {
                        var n = t.EndResourcePoint;
                        if (this._selfPlayerComponent && this._selfPlayerComponent.node.active) {
                            if (this.MoveCameraToPosition(this._selfPlayerComponent.node.position), n && e) {
                                var o = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, n);
                                this.SelectResourceBlock(o.BlockIds[0])
                            }
                        } else {
                            var r = this._playerItemMap[f.DataCenter.Instance.Uid];
                            r ? (this.MoveCameraToPosition(r.node.position), n && e && (o = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, n), this.SelectResourceBlock(o.BlockIds[0]))) : this.MoveCameraToLocation(n, e)
                        }
                    } else {
                        var i = b.AssaultOperationModel.GetSelfLocation();
                        this.MoveCameraToLocation(i, e)
                    }
                }, t.prototype.MoveCameraToLocation = function(e, t) {
                    void 0 === t && (t = !0), this._maxScrollOffset || (this._maxScrollOffset = this.MapScrollView.getMaxScrollOffset());
                    var n = f.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, e),
                        o = this._mapComponent.NodesInstance[n.BlockIds[0]];
                    t && this.SelectResourceBlock(n.BlockIds[0]), this.MoveCameraToPosition(o.position)
                }, t.prototype.MoveCameraToPosition = function(e) {
                    this._maxScrollOffset || (this._maxScrollOffset = this.MapScrollView.getMaxScrollOffset()), this.MapScrollView.scrollToOffset(cc.v2(this._maxScrollOffset.x / 2 + e.x, this._maxScrollOffset.y / 2 - e.y)), l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_CHECK_BUNDINGBOX, this._rateScrollViewRect)
                }, t.prototype.onDestroy = function() {
                    b.AssaultOperationModel.Clear(), this._playerItemNodePool.clear(), this._playerItemNodePool = null, this._mapLineItemNodePool.clear(), this._mapLineItemNodePool = null, this.unschedule(this.RefreshFamilyRedDotBy)
                }, t.prototype.RefreshFamilyRedDotByTime = function() {
                    this.unschedule(this.RefreshFamilyRedDotBy), this.scheduleOnce(this.RefreshFamilyRedDotBy, 90)
                }, t.prototype.RefreshFamilyRedDotBy = function() {
                    A.RedDotManager.Instance.RefreshInstanceRedDotNode(A.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyNode, {
                        Value1: I.default.ActivityId
                    })
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = this.GetGuideGroupIds(),
                            n = B.default.Instance.GetCurrentGroupId(t);
                        if (n <= 0) this._guideGroupId = 0;
                        else {
                            this._guideGroupId && this._guideGroupId == n || (this._guideGroupId = n, this._guideStepIndex = 0);
                            var o = f.ConfigDataComponent.Instance.GetConfigById(u.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (o)
                                for (var r = 0; r < o.GameModuleGuideStepIds.length; r++) {
                                    var i = !0;
                                    switch (o.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 86:
                                            B.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.AllianceInfoBtn.node, !1, !0);
                                            break;
                                        case 87:
                                            B.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.SpriteBallBtn.node, !1, !0);
                                            break;
                                        case 90:
                                            if (1 == this.AutoAttack.isChecked) return;
                                            B.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.AutoAttack.node, !1, !0);
                                            break;
                                        default:
                                            i = !1
                                    }
                                    if (this._guideStepIndex++, i) break
                                }
                        }
                    }
                }, t.prototype.GetGuideGroupIds = function() {
                    var e = [10034];
                    return b.AssaultOperationModel.IsSelfDead() && e.push(10035), this.ResourceItemQueueNode.active && e.push(10036), e
                }, t.prototype.Close = function(t) {
                    var n = p.Req_AssaultOperation_LeavaMap.create();
                    n.ActivityId = I.default.ActivityId, h.RpcComponent.Instance.Call(n, function() {}), e.prototype.Close.call(this, t)
                }, i([x(cc.ScrollView)], t.prototype, "MapScrollView", void 0), i([x(cc.Node)], t.prototype, "MapLayer", void 0), i([x(cc.Node)], t.prototype, "MovingLineLayer", void 0), i([x(cc.Node)], t.prototype, "BuildingLayer", void 0), i([x(cc.Node)], t.prototype, "PlayerLayer", void 0), i([x(cc.Label)], t.prototype, "PanelTitle", void 0), i([x(cc.Button)], t.prototype, "RuleBtn", void 0), i([x(cc.Button)], t.prototype, "CloseBtn", void 0), i([x(cc.Node)], t.prototype, "SelfInfoNode", void 0), i([x(cc.Node)], t.prototype, "SelfHeaderNode", void 0), i([x(cc.Label)], t.prototype, "SelfName", void 0), i([x(cc.Label)], t.prototype, "SelfLocation", void 0), i([x(cc.Label)], t.prototype, "SpiritValueTitle", void 0), i([x(g.default)], t.prototype, "SelfSpiritValueBar", void 0), i([x(cc.Label)], t.prototype, "SelfSpiritValue", void 0), i([x(cc.Button)], t.prototype, "SelfLocationBtn", void 0), i([x(cc.Layout)], t.prototype, "SelfBuffContainer", void 0), i([x(cc.Sprite)], t.prototype, "SelfBuffIcons", void 0), i([x(cc.Node)], t.prototype, "SelfLocationHintNode", void 0), i([x(cc.Node)], t.prototype, "SelfLocationHintHeadNode", void 0), i([x(cc.Node)], t.prototype, "SelfLocationHintArrow", void 0), i([x(cc.Node)], t.prototype, "NoEnergyHint", void 0), i([x(cc.Label)], t.prototype, "NoEnergyHintLabel", void 0), i([x(cc.Node)], t.prototype, "WiningStreakNode", void 0), i([x(cc.Node)], t.prototype, "WiningStreakHeaderNode", void 0), i([x(cc.Node)], t.prototype, "WiningStreakLabelNode", void 0), i([x(cc.Label)], t.prototype, "WiningStreakPlayerName", void 0), i([x(cc.RichText)], t.prototype, "WiningStreakCount", void 0), i([x(cc.Node)], t.prototype, "MiniMapNode", void 0), i([x(cc.Toggle)], t.prototype, "HideEnemyMovingLine", void 0), i([x(cc.Label)], t.prototype, "HideEnemyMovingLineLabel", void 0), i([x(cc.Node)], t.prototype, "RoundCountDownNode", void 0), i([x(cc.Label)], t.prototype, "RoundCountDownHint", void 0), i([x(k.default)], t.prototype, "RoundCountDown", void 0), i([x(cc.Node)], t.prototype, "ResourceItemQueueNode", void 0), i([x(cc.Button)], t.prototype, "ResouceItemActionBtn", void 0), i([x(cc.Label)], t.prototype, "ResouceItemActionBtnLabel", void 0), i([x(cc.Button)], t.prototype, "ResouceItemActionGrayBtn", void 0), i([x(cc.Label)], t.prototype, "ResouceItemActionGrayBtnLabel", void 0), i([x(cc.Toggle)], t.prototype, "AutoAttack", void 0), i([x(cc.Label)], t.prototype, "AutoAttackLabel", void 0), i([x(cc.Button)], t.prototype, "QueueRuleBtn", void 0), i([x(cc.Label)], t.prototype, "ResourceItemScore", void 0), i([x(cc.Label)], t.prototype, "ResourceItemTravelTime", void 0), i([x(cc.Node)], t.prototype, "SimpleQueueItemContainer", void 0), i([x(C.default)], t.prototype, "SimpleQueueItems", void 0), i([x(cc.Button)], t.prototype, "QueueBackBtn", void 0), i([x(cc.Node)], t.prototype, "BottomNode", void 0), i([x(cc.Button)], t.prototype, "AllianceInfoBtn", void 0), i([x(cc.Label)], t.prototype, "AllianceInfoBtnLabel", void 0), i([x(cc.Button)], t.prototype, "RankBtn", void 0), i([x(cc.Label)], t.prototype, "RankBtnLabel", void 0), i([x(cc.Button)], t.prototype, "SpriteBallBtn", void 0), i([x(cc.Label)], t.prototype, "SpriteBallBtnLabel", void 0), i([x(cc.Button)], t.prototype, "RescourceInformationBtn", void 0), i([x(cc.Label)], t.prototype, "RescourceInformationBtnLabel", void 0), i([x(cc.Button)], t.prototype, "BattleRecordBtn", void 0), i([x(cc.Label)], t.prototype, "BattleRecordBtnLabel", void 0), i([x(cc.Node)], t.prototype, "MiniChatNode", void 0), i([x(cc.SpriteAtlas)], t.prototype, "MapAtlas", void 0), i([x(cc.SpriteAtlas)], t.prototype, "PanelAtlas", void 0), i([x(cc.Label)], t.prototype, "TopCountDownHint", void 0), i([x(k.default)], t.prototype, "TopCountDown", void 0), i([x(cc.Node)], t.prototype, "MiniMapBottomNode", void 0), i([x(cc.Button)], t.prototype, "MiniMapExitButton", void 0), i([x(cc.Node)], t.prototype, "BuffTipNode", void 0), i([x(cc.RichText)], t.prototype, "BuffTip", void 0), i([x(cc.Button)], t.prototype, "BuffTipGotoBtn", void 0), i([x(cc.Node)], t.prototype, "CountDownClickNode", void 0), i([x(cc.Node)], t.prototype, "ScoreClickNode", void 0), i([x(cc.Node)], t.prototype, "HintTipNode", void 0), i([x(cc.RichText)], t.prototype, "HintTip", void 0), i([x(cc.Node)], t.prototype, "BlockNode", void 0), i([G], t)
            }(d.BaseUIFullScreenPanel);
        n.default = H, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../../SLGMapEditor/SLGMap": "SLGMap",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AssaultOperationGridItem": "AssaultOperationGridItem",
        "../Components/CountdownLabel": "CountdownLabel",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/HeadComponent": "HeadComponent",
        "./AssaultOperationChattingMiniPanel": "AssaultOperationChattingMiniPanel",
        "./AssaultOperationMapBuildItem": "AssaultOperationMapBuildItem",
        "./AssaultOperationMapLineComponent": "AssaultOperationMapLineComponent",
        "./AssaultOperationMapPlayerItem": "AssaultOperationMapPlayerItem",
        "./AssaultOperationMiniMapComponent": "AssaultOperationMiniMapComponent",
        "./AssaultOperationModel": "AssaultOperationModel",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./AssaultOperationResourceItem": "AssaultOperationResourceItem",
        "./AssaultOperationSimpleQueueItem": "AssaultOperationSimpleQueueItem"
    }],
    AssaultOperationMapPlayerItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e6edcM97GVCxa9ATcO3bMA6", "AssaultOperationMapPlayerItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/HeadComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeaderNode = null, t.SelfArrowNode = null, t.ProgressNode = null, t.ProgressImg = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    if (!this._headComponent) {
                        var r = cc.instantiate(e);
                        r.setParent(this.HeaderNode), this._headComponent = r.getComponent(c.default)
                    }
                    t && this._headComponent.SetUI(t, n), this.SelfArrowNode.active = o
                }, t.prototype.SetMovePosition = function(e, t, n) {
                    var o = this,
                        r = t.y + 80;
                    this.node.setPosition(e.x, e.y + 80), this.node.zIndex = -r, cc.Tween.stopAllByTarget(this.node), cc.tween(this.node).to(n, {
                        position: cc.v3(t.x, r)
                    }).call(function() {
                        o.node.active = !1
                    }).start()
                }, t.prototype.SetProgress = function(e) {
                    e > 0 ? (this.ProgressNode.active = !0, this.ProgressImg.fillRange = e) : this.ProgressNode.active = !1
                }, t.prototype.SetItemIcon = function(e, t) {
                    return void 0 === t && (t = null), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return [2]
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = null
                }, i([d(cc.Node)], t.prototype, "HeaderNode", void 0), i([d(cc.Node)], t.prototype, "SelfArrowNode", void 0), i([d(cc.Node)], t.prototype, "ProgressNode", void 0), i([d(cc.Sprite)], t.prototype, "ProgressImg", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/HeadComponent": "HeadComponent"
    }],
    AssaultOperationMatchFamilyItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7f7331g3FpPfK8zyPotp+T6", "AssaultOperationMatchFamilyItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../ShareConsts/EnumType"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RankIcon = null, t.Rank = null, t.AllianceFlag = null, t.AllianceLogo = null, t.FamilyName = null, t.FamilyBossName = null, t.Power = null, t.Arrowhead = null, t.Line = null, t.FamilyTag = null, t.FamilyTagLAbel = null, t.AlliancePos = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    void 0 === t && (t = !1), void 0 === n && (n = -192), this.Line.active = !t, this._param = e, this.SetFlagPos(n), this.SetFlag(), this.FamilyName.string = e.AllianceInfo.Name, this.FamilyBossName.string = "assault_leaderTitle".ToUILocale().Fmt(e.AllianceInfo.LeaderName), this.Power.string = e.Score.FmtCurrency(), e.ScorePosX && (this.Power.node.x = e.ScorePosX);
                    var o = a.DataCenter.Instance.GetSpecialRedDot(c.SpecialRedDotType.SlgSignUp);
                    o && o > 0 && e.AllianceInfo.Id == o ? (this.FamilyTag.active = !0, this.FamilyTagLAbel.string = "assault_Myalliance".ToUILocale()) : this.FamilyTag.active = !1, this.SetRank(e.Rank), e.Arrowhead ? this.Arrowhead.node.active = !1 : this.SetArrowhead()
                }, t.prototype.SetFlagPos = function(e) {
                    this.AlliancePos.x = e
                }, t.prototype.SetFlag = function() {
                    var e = this._param.AllianceInfo.Icon,
                        t = a.ConfigDataComponent.Instance.GetConfigById(l.AllianceIcon_Config, e),
                        n = t.LogoID,
                        o = t.FlagID;
                    this.AllianceFlag.spriteFrame = this._param.AllianceFlagAtals.getSpriteFrame("flagBg" + o), this.AllianceLogo.spriteFrame = this._param.AllianceFlagAtals.getSpriteFrame("flagLogo" + n)
                }, t.prototype.SetRank = function(e) {
                    e <= 0 || (e <= 3 ? (this.Rank.node.active = !1, this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e)) : (this.Rank.node.active = !0, this.RankIcon.node.active = !1, this.Rank.string = e.toString()))
                }, t.prototype.SetArrowhead = function() {
                    this._param.Promotion && (this.Arrowhead.node.active = !0, this._param.Rank <= this._param.Promotion ? this.Arrowhead.spriteFrame = s.UIUtlity.COMMON_ATLAS.getSpriteFrame("arrowGreen") : this.Arrowhead.node.active = !1)
                }, i([d(cc.Sprite)], t.prototype, "RankIcon", void 0), i([d(cc.Label)], t.prototype, "Rank", void 0), i([d(cc.Sprite)], t.prototype, "AllianceFlag", void 0), i([d(cc.Sprite)], t.prototype, "AllianceLogo", void 0), i([d(cc.Label)], t.prototype, "FamilyName", void 0), i([d(cc.Label)], t.prototype, "FamilyBossName", void 0), i([d(cc.Label)], t.prototype, "Power", void 0), i([d(cc.Sprite)], t.prototype, "Arrowhead", void 0), i([d(cc.Node)], t.prototype, "Line", void 0), i([d(cc.Node)], t.prototype, "FamilyTag", void 0), i([d(cc.Label)], t.prototype, "FamilyTagLAbel", void 0), i([d(cc.Node)], t.prototype, "AlliancePos", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AssaultOperationMatchScheduleDetailPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "75adfvdqshETpRqEWxu9ywq", "AssaultOperationMatchScheduleDetailPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./AssaultOperationPanel"),
            l = e("../../Components/Components"),
            c = e("./AssaultOperationStaicRecordItem"),
            u = e("../../../Util/TimeUtil"),
            p = e("./AssaultOperationMatchSchedulePanel"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MatchScheduleTitle = null, t.RankTitle = null, t.RoundLabel = null, t.ActivityTime = null, t.Stage = null, t.RankGroup = null, t.Layer1 = null, t.Layer2 = null, t.Layer3 = null, t.MatchScheduleList = null, t.RankList = null, t.MatchScheduleNode = null, t.RankNode = null, t._rankReward = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MatchScheduleTitle.string = "assaultOperation_scheduleTitle".ToUILocale(), this.RankTitle.string = "assaultOperation_rankCountTitle".ToUILocale(), this.RoundLabel.string = "assaultOperation_match_round".ToUILocale(), this.ActivityTime.string = "assaultOperation_match_activityTime".ToUILocale(), this.Stage.string = "puzzle_stage".ToUILocale(), this.RankGroup.string = "ActivityHeroTestTower_Rank".ToUILocale(), this.Layer1.string = "payGuide_stage".ToUILocale().Fmt(1), this.Layer2.string = "payGuide_stage".ToUILocale().Fmt(2), this.Layer3.string = "payGuide_stage".ToUILocale().Fmt(3)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = s.default.ActivityId, this._activityConfig = l.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._pageInit || (this._pageInit = !0, this.SetStage(), this.SetMatchScheduleNode(), this.SetRankReward(), this.SetRankNode())
                }, t.prototype.SetRankReward = function() {
                    for (var e = 0; e < this._activityConfig.AllianceRankSocre.length; e++) {
                        for (var t = {
                                Rank: this._activityConfig.AllianceRankSocre[e].Rank[0] == this._activityConfig.AllianceRankSocre[e].Rank[1] ? this._activityConfig.AllianceRankSocre[e].Rank[0] : null == this._activityConfig.AllianceRankSocre[e].Rank[1] ? this._activityConfig.AllianceRankSocre[e].Rank[0] + "+" : this._activityConfig.AllianceRankSocre[e].Rank[0] + "-" + this._activityConfig.AllianceRankSocre[e].Rank[1],
                                Params: []
                            }, n = 0; n < this._activityConfig.AllianceRankSocre[e].RewardScore.length; n++) t.Params.push("" + this._activityConfig.AllianceRankSocre[e].RewardScore[n]);
                        this._rankReward.push(t)
                    }
                }, t.prototype.SetMatchScheduleNode = function() {
                    for (var e = 0; e < 3; e++) {
                        var t = [];
                        t.push("" + (e + 1)), t.push(this.GetTime(e)), t.push("payGuide_stage".ToUILocale().Fmt(e + 1));
                        var n = cc.instantiate(this.MatchScheduleNode).getComponent(c.default);
                        n.node.setParent(this.MatchScheduleList);
                        var o = this._stage == e + 1,
                            r = !1;
                        2 == e && (r = !0), n.node.active = !0, n.Init(t, r, o)
                    }
                }, t.prototype.GetTime = function(e) {
                    var t = u.TimeUtil.GetOffsetDayTs(e, p.default.StartTime);
                    return u.TimeUtil.Format("MM/DD", t) + " " + this._activityConfig.CustomPart.BattlePeriodTime[0] + ":00:00- " + this._activityConfig.CustomPart.BattlePeriodTime[1] + ":00:00"
                }, t.prototype.SetStage = function() {
                    var e = u.TimeUtil.GetDiffDays(p.default.StartTime, l.RpcComponent.Instance.ServerTime, !0) + 1;
                    this._stage = e < 1 || e > 3 ? -1 : e
                }, t.prototype.SetRankNode = function() {
                    var e = Math.min(3, this._stage);
                    e = Math.max(e, 1);
                    for (var t = 0; t < this._rankReward.length; t++) {
                        var n = cc.instantiate(this.RankNode).getComponent(c.default);
                        n.node.setParent(this.RankList);
                        var o = !1;
                        t == this._rankReward.length - 1 && (o = !0), n.node.active = !0, n.Init(this._rankReward[t].Params, o).SetRank(this._rankReward[t].Rank).SetLabelNormalColor().SetLabelColor(n.StaticDataLAbel[e - 1], cc.color(254, 217, 74), cc.color(32, 36, 52))
                    }
                }, i([f(cc.Label)], t.prototype, "MatchScheduleTitle", void 0), i([f(cc.Label)], t.prototype, "RankTitle", void 0), i([f(cc.Label)], t.prototype, "RoundLabel", void 0), i([f(cc.Label)], t.prototype, "ActivityTime", void 0), i([f(cc.Label)], t.prototype, "Stage", void 0), i([f(cc.Label)], t.prototype, "RankGroup", void 0), i([f(cc.Label)], t.prototype, "Layer1", void 0), i([f(cc.Label)], t.prototype, "Layer2", void 0), i([f(cc.Label)], t.prototype, "Layer3", void 0), i([f(cc.Node)], t.prototype, "MatchScheduleList", void 0), i([f(cc.Node)], t.prototype, "RankList", void 0), i([f(cc.Node)], t.prototype, "MatchScheduleNode", void 0), i([f(cc.Node)], t.prototype, "RankNode", void 0), i([h], t)
            }(a.BaseUIPage);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Components/Components": "Components",
        "./AssaultOperationMatchSchedulePanel": "AssaultOperationMatchSchedulePanel",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./AssaultOperationStaicRecordItem": "AssaultOperationStaicRecordItem"
    }],
    AssaultOperationMatchSchedulePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "281bccrITRPE7zbIrpqFuCb", "AssaultOperationMatchSchedulePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomToggle"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("./AssaultOperationPanel"),
            f = e("../../../Util/TimeUtil"),
            y = e("../../../ShareConsts/EnumType"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !0), t.Title = null, t.PageBtnToggles = [], t.BottomHintLabel = null, t._pageBtns = [], t.MatchSchedulePagePath = ["AssaultOperation/AssaultOperationExploitsDetailPage", "AssaultOperation/AssaultOperationMatchScheduleDetailPage", "AssaultOperation/AssaultOperationGroupingDetailPage"], t.ToggleLangKeys = ["assaultOperation_exploitsDetail_toggle", "assaultOperation_scheduleDetail", "assaultOperation_groupDetail"], t.TitleKeys = ["assaultOperation_exploitsDetail", "assaultOperation_scheduleDetail", "assaultOperation_groupDetail"], t.BottomHint = ["", "assaultOperation_getReputation", "assaultOperation_getRankScore"], t.PageType = {
                        Exploits: 0,
                        MatchSchedule: 1,
                        Grouping: 2
                    }, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas), n = this.LoadDynamicAsset("AssaultOperation/AssaultOperationMatchFamilyItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._allianceAtlas = e[0], o._matchFamilyPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this);
                    for (var t = 0; t < this.PageBtnToggles.length; t++) {
                        var n = this.PageBtnToggles[t];
                        n.Init(this.ToggleLangKeys[t].ToUILocale()), this._pageBtns.push(n), n.node.on("toggle", this.OnSwitchTab, this)
                    }
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._nowPage = this.PageType.MatchSchedule, t && t.length > 0 && (this._nowPage = t[0]), this._activityConfig = u.DataCenter.Instance.ActivityConfigs[h.default.ActivityId]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetStartTime(), this.SetPageLock(), this.PageBtnToggles[this._nowPage].isChecked = !0, this.SetTab(this._nowPage))
                }, t.prototype.SetStartTime = function() {
                    n.StartTime = f.TimeUtil.GetOffsetHourTs(this._activityConfig.CustomPart.PreparationPeriodTime, this._activityConfig.Common.StartTime)
                }, t.prototype.SetPageLock = function() {
                    if (n.StartTime > u.RpcComponent.Instance.ServerTime) this._pageBtns[2].SetInteractable(!1);
                    else {
                        var e = f.TimeUtil.GetHour(n.StartTime);
                        f.TimeUtil.GetHour(u.RpcComponent.Instance.ServerTime) < e ? this._pageBtns[2].SetInteractable(!1) : this._pageBtns[2].SetInteractable(!0)
                    }
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = parseInt(e.node.name);
                    this._nowPage !== t && this.SetTab(t)
                }, t.prototype.SetTab = function(e) {
                    var t = this;
                    switch (this._nowPage = e, this.Title.string = this.TitleKeys[this._nowPage].ToUILocale(), this.BottomHintLabel.string = this.BottomHint[e].ToUILocale(), e) {
                        case this.PageType.MatchSchedule:
                            this.ShowPage(this.MatchSchedulePagePath[this._nowPage]);
                            break;
                        case this.PageType.Grouping:
                            this._groupData ? this.ShowPage(this.MatchSchedulePagePath[this._nowPage], this._groupData, this._allianceAtlas, this._matchFamilyPrefab) : ((n = c.Req_AssaultOperation_GetRank.create()).ActivityId = h.default.ActivityId, n.Type = y.AssaultOperationRankType.DailyScore, u.RpcComponent.Instance.Call(n, function(e) {
                                t._groupData = e, t.ShowPage(t.MatchSchedulePagePath[t._nowPage], t._groupData, t._allianceAtlas, t._matchFamilyPrefab)
                            }));
                            break;
                        default:
                            var n;
                            this._exploitsData ? this.ShowPage(this.MatchSchedulePagePath[this._nowPage], this._exploitsData, this._allianceAtlas, this._matchFamilyPrefab) : ((n = c.Req_AssaultOperation_GetRank.create()).ActivityId = h.default.ActivityId, n.Type = y.AssaultOperationRankType.TotalContinue, u.RpcComponent.Instance.Call(n, function(e) {
                                t._exploitsData = e, t.ShowPage(t.MatchSchedulePagePath[t._nowPage], t._exploitsData, t._allianceAtlas, t._matchFamilyPrefab)
                            }))
                    }
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(p.default)], t.prototype, "PageBtnToggles", void 0), i([I(cc.Label)], t.prototype, "BottomHintLabel", void 0), n = i([m], t)
            }(l.BaseUIFrame);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Components/Components": "Components",
        "../Components/CustomToggle": "CustomToggle",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationMiniMapComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ace36J0YJ5I/o0Db44kzgE3", "AssaultOperationMiniMapComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../SLGMapEditor/SLGMap"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("./AssaultOperationModel"),
            f = e("../Components/AssaultOperationGridItem"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("./AssaultOperationMapIconComponnet"),
            I = e("./AssaultOperationMapPlayerItem"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.BorderNode = null, t.MapScrollView = null, t.MapScrollViewViewNode = null, t.MapScrollViewViewWidgets = [], t.ViewNode = null, t.ClickAreaNode = null, t.GotoBtnMask = null, t.GotoBtn = null, t.GotoBtnLabel = null, t._loadedAssets = [], t._isInitial = !1, t._iconComponents = {}, t._figureLegendsItems = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "IsFullScreenMode", {
                    get: function() {
                        return this._isFullScreenMode
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    y.Game.EventDispatcher.On(g.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.RefreshResourceChange, this), y.Game.EventDispatcher.On(g.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.RefreshAllBlock, this)
                }, t.prototype.onDisable = function() {
                    y.Game.EventDispatcher.Off(g.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.RefreshResourceChange, this), y.Game.EventDispatcher.Off(g.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.RefreshAllBlock, this)
                }, t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._basePanel = e[0], this._mapConfig = d.ConfigDataComponent.Instance.GetConfigById(p.AssaultOperationMap_Config, h.AssaultOperationModel.GetMapId()), this._isInitial ? [3, 2] : (this.InitUI(), [4, this.PreloadByData()]);
                                case 1:
                                    if (t.sent(), !this.isValid) return [2];
                                    this.ConfigFigureLegends(), t.label = 2;
                                case 2:
                                    return this.InitData(e), this.Display(), [2]
                            }
                        })
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = l.AssetsManager.Instance.LoadAsset("SLGMap/Map/Mini_" + this._mapConfig.Map, cc.Prefab), t = l.AssetsManager.Instance.LoadAsset("AssaultOperation/AssaultOperationMapIconComponnet", cc.Prefab), n = l.AssetsManager.Instance.LoadAsset("AssaultOperation/AssaultOperationMapPlayerItem", cc.Prefab), [4, Promise.all([e, t, n]).then(function(e) {
                                        o._mapPrefab = e[0], o._mapIconPrefab = e[1], o._mapPlayerPrefab = e[2]
                                    })];
                                case 1:
                                    return r.sent(), this._loadedAssets.push(this._mapPrefab), this._loadedAssets.push(this._mapIconPrefab), this._loadedAssets.push(this._mapPlayerPrefab), this._isInitial = !0, this.isValid || this.Dispose(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.GotoBtnLabel.string = "task_goto".ToUILocale(), this.ClickAreaNode.on("click", this.OnMiniMapClick, this), this._basePanel.MapScrollView.node.on("scrolling", this.OnMainMapScrolling, this), this.GotoBtnMask.on(cc.Node.EventType.TOUCH_END, this.OnGotoBtnMaskClick, this), this.GotoBtn.node.on("click", this.OnGotoBtnClick, this)
                }, t.prototype.OnMiniMapClick = function() {
                    this._isFullScreenMode || this.OnScreenModeChange()
                }, t.prototype.ExitFullScreenMode = function() {
                    this._isFullScreenMode && this.OnScreenModeChange()
                }, t.prototype.OnGotoBtnMaskClick = function() {
                    this.GotoBtnMask.active = !1, this.GotoBtn.node.active = !1, this._curSelectResourceId = null
                }, t.prototype.InitData = function() {
                    this.MapScrollView.enabled = !1, this.InstantiateMap(), this.RefreshAllBlock(), this.OnMainMapScrolling()
                }, t.prototype.ConfigFigureLegends = function() {}, t.prototype.NewFigureLegendItem = function(e) {
                    return {
                        Icon: cc.find("Icon", e).getComponent(cc.Sprite),
                        Name: cc.find("Label", e).getComponent(cc.Label)
                    }
                }, t.prototype.Display = function() {}, t.prototype.OnMainMapScrolling = function() {
                    var e = this._basePanel.MapScrollView.content.position;
                    this.MapScrollView.content.setPosition(cc.v2(e.x * this._mapScaleX * .8, e.y * this._mapScaleY * .8)), e = this.MapScrollView.content.position, this.ViewNode.setPosition(cc.v2(-e.x / .8, -e.y / .8))
                }, t.prototype.InstantiateMap = function() {
                    var e = cc.instantiate(this._mapPrefab);
                    e.setParent(this.MapScrollView.content), e.setSiblingIndex(0);
                    var t = e.getContentSize();
                    this.MapScrollView.content.setContentSize(Math.max(this.MapScrollView.node.width, t.width), Math.max(this.MapScrollView.node.height, t.height)), this._mapComponent = e.getComponent(u.default), this.GotoBtnMask.setContentSize(Math.max(this.MapScrollView.node.width, t.width), Math.max(this.MapScrollView.node.height, t.height)), this.GotoBtnMask.setSiblingIndex(1), this._mapScaleX = this.MapScrollView.content.width / this._basePanel.MapScrollView.content.width, this._mapScaleY = this.MapScrollView.content.height / this._basePanel.MapScrollView.content.height;
                    var n = c.GlobalSetting.DESIGN_SCREEN_WIDTH / this._basePanel.MapScrollView.content.width,
                        o = cc.winSize.height / this._basePanel.MapScrollView.content.height;
                    this.ViewNode.width = this.MapScrollView.content.width * n * this.MapScrollView.node.scaleX, this.ViewNode.height = this.MapScrollView.content.height * o * this.MapScrollView.node.scaleY
                }, t.prototype.RefreshAllBlock = function(e) {
                    if (!e)
                        for (var t in h.AssaultOperationModel.Data.SimpleResourceInfos) this.RefreshResourceChange(null, [Number.parseInt(t)])
                }, t.prototype.RefreshResourceChange = function(e, t) {
                    if (this._mapComponent && t)
                        for (var n = 0; n < t.length; n++) {
                            var o = d.ConfigDataComponent.Instance.GetConfigById(p.AssaultOperationResourceItem_Config, t[n]),
                                r = h.AssaultOperationModel.Data.SimpleResourceInfos[t[n]],
                                i = void 0;
                            r.OccupyAllianceId && (i = this._basePanel.GetAllianceColor(r.OccupyAllianceId));
                            for (var a = 0; a < o.BlockIds.length; a++) {
                                var s = o.BlockIds[a],
                                    l = this._mapComponent.NodesInstance[s];
                                0 == a && this.ConfigGridIconComponent(s, r.OccupyAllianceId, o, l), l.getComponent(f.default).InitMiniMapGrid(this._basePanel, i)
                            }
                        }
                }, t.prototype.RefreshMapIcons = function() {
                    for (var e in h.AssaultOperationModel.Data.SimpleResourceInfos) {
                        var t = d.ConfigDataComponent.Instance.GetConfigById(p.AssaultOperationResourceItem_Config, e),
                            n = h.AssaultOperationModel.GetResourceSimpleInfo(t.Id),
                            o = this._mapComponent.NodesInstance[t.BlockIds[0]];
                        this.ConfigGridIconComponent(t.BlockIds[0], n.OccupyAllianceId, t, o)
                    }
                }, t.prototype.ConfigGridIconComponent = function(e, t, n, o) {
                    var r = this._iconComponents[e];
                    if (!r) {
                        var i = cc.instantiate(this._mapIconPrefab);
                        i.setParent(this.MapScrollView.content), r = i.getComponent(m.default), this._iconComponents[e] = r, r.node.on("click", this.OnResourceIconClick, this), r.node.name = n.Id.toString()
                    }
                    r.node.setPosition(o.position);
                    var a = o.position.y > 0,
                        s = h.AssaultOperationModel.GetAllianceInfo(n.Id, h.AssaultOperationGetAllianceTypeBy.ResourceId),
                        l = s[0],
                        c = s[1];
                    r.Init(!this._isFullScreenMode, n.Type, l, c, a)
                }, t.prototype.RefreshSelfLocationHeader = function() {
                    if (this._isFullScreenMode) {
                        if (!this._selfLocationHeader) {
                            var e = cc.instantiate(this._mapPlayerPrefab);
                            e.scale = .5, e.setParent(this.node), this._selfLocationHeader = e.getComponent(I.default), this._selfLocationHeader.Init(this._basePanel.PlayerHeaderPrefab, d.DataCenter.Instance.GetIntData(c.UserDataKey.HeadIcon), d.DataCenter.Instance.GetIntData(c.UserDataKey.HeadFrame), !1)
                        }
                        this._selfLocationHeader.node.active = !0;
                        var t = d.ConfigDataComponent.Instance.GetConfigById(p.AssaultOperationResourceItem_Config, h.AssaultOperationModel.GetSelfLocation()).BlockIds[0],
                            n = this._iconComponents[t];
                        this._selfLocationHeader.node.setParent(n.node), this._selfLocationHeader.node.y = 140
                    } else this._selfLocationHeader.node.active = !1
                }, t.prototype.OnResourceIconClick = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._curSelectResourceId != t && (this.GotoBtnMask.active = !0, this.GotoBtn.node.active = !0, this.GotoBtn.node.setParent(this.MapScrollView.content), this.GotoBtn.node.setPosition(e.node.position.x, e.node.position.y - 35), this._curSelectResourceId = t)
                }, t.prototype.OnGotoBtnClick = function() {
                    this.ExitFullScreenMode(), y.Game.EventDispatcher.Emit(g.EventKeys.EVENT_ASSAULT_OPERATION_MAP, this._curSelectResourceId), this.GotoBtn.node.active = !1, this._curSelectResourceId = null
                }, t.prototype.OnScreenModeChange = function() {
                    if (this._isFullScreenMode) this._isFullScreenMode = !1, this.BorderNode.active = !0, this.ViewNode.active = !0, this.MapScrollView.enabled = !1, this.ClickAreaNode.active = !0, this.MapScrollView.node.setPosition(0, 0), this.Bg.node.setPosition(0, 0), this.MapScrollView.node.setContentSize(650, 650), this.MapScrollView.node.scale = .5, this.Bg.node.setContentSize(346, 346), this.Bg.spriteFrame = this._basePanel.PanelAtlas.getSpriteFrame("miniMapBg"), this.OnMainMapScrolling(), this._basePanel.MiniMapBottomNode.active = !1;
                    else {
                        this._isFullScreenMode = !0, this.BorderNode.active = !1, this.ViewNode.active = !1, this.MapScrollView.enabled = !0, this.ClickAreaNode.active = !1;
                        var e = this._basePanel.node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            t = this.node.convertToNodeSpaceAR(e);
                        this.MapScrollView.node.setPosition(t), this.Bg.node.setPosition(t), this.Bg.node.setContentSize(cc.winSize.width, cc.winSize.height), this.MapScrollView.node.setContentSize(Math.min(c.GlobalSetting.DESIGN_SCREEN_WIDTH, this.MapScrollView.content.width), Math.min(cc.winSize.height, this.MapScrollView.content.height)), this.MapScrollView.node.scale = 1, this.Bg.spriteFrame = this._basePanel.PanelAtlas.getSpriteFrame("miniMapBg1"), this._basePanel.MiniMapBottomNode.active = !0
                    }
                    for (var n = 0; n < this.MapScrollViewViewWidgets.length; n++) this.MapScrollViewViewWidgets[n].updateAlignment();
                    this.RefreshMapIcons(), this.RefreshSelfLocationHeader()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = null
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, i([v(cc.Sprite)], t.prototype, "Bg", void 0), i([v(cc.Node)], t.prototype, "BorderNode", void 0), i([v(cc.ScrollView)], t.prototype, "MapScrollView", void 0), i([v(cc.Node)], t.prototype, "MapScrollViewViewNode", void 0), i([v(cc.Widget)], t.prototype, "MapScrollViewViewWidgets", void 0), i([v(cc.Node)], t.prototype, "ViewNode", void 0), i([v(cc.Node)], t.prototype, "ClickAreaNode", void 0), i([v(cc.Node)], t.prototype, "GotoBtnMask", void 0), i([v(cc.Button)], t.prototype, "GotoBtn", void 0), i([v(cc.Label)], t.prototype, "GotoBtnLabel", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../SLGMapEditor/SLGMap": "SLGMap",
        "../Components/AssaultOperationGridItem": "AssaultOperationGridItem",
        "./AssaultOperationMapIconComponnet": "AssaultOperationMapIconComponnet",
        "./AssaultOperationMapPlayerItem": "AssaultOperationMapPlayerItem",
        "./AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationModel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06cf78e12FBlK1wdcM70xBj", "AssaultOperationModel"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AssaultOperationModel = n.AssaultPlayerSimpleInfo = n.AssaultOperationBattleInfo = n.AssaultOperationGetAllianceTypeBy = n.AssaultOperationPlayerState = n.AssaultOperationQueueType = void 0;
        var o, r, i, a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("./AssaultOperationPanel"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./ScrollMessagePanel"),
            m = e("./AssaultOperationChattingMiniPanel");
        (function(e) {
            e[e.Attack = 0] = "Attack", e[e.Defend = 1] = "Defend", e[e.Battling = 2] = "Battling"
        })(o = n.AssaultOperationQueueType || (n.AssaultOperationQueueType = {})),
        function(e) {
            e[e.Idle = 1] = "Idle", e[e.Battling = 2] = "Battling", e[e.Moving = 3] = "Moving"
        }(n.AssaultOperationPlayerState || (n.AssaultOperationPlayerState = {})),
        function(e) {
            e[e.ResourceId = 1] = "ResourceId", e[e.PlayerUid = 2] = "PlayerUid", e[e.AllianceId = 3] = "AllianceId"
        }(r = n.AssaultOperationGetAllianceTypeBy || (n.AssaultOperationGetAllianceTypeBy = {})),
        function(e) {
            e[e.AttackUid = 0] = "AttackUid", e[e.DefenderUid = 1] = "DefenderUid", e[e.BattleEndTime = 2] = "BattleEndTime", e[e.AttackerLeftEnergyValue = 3] = "AttackerLeftEnergyValue", e[e.DefenderLeftEnergyValue = 4] = "DefenderLeftEnergyValue", e[e.ResourceId = 5] = "ResourceId"
        }(i = n.AssaultOperationBattleInfo || (n.AssaultOperationBattleInfo = {})),
        function(e) {
            e[e.Uid = 0] = "Uid", e[e.HeaderIcon = 1] = "HeaderIcon", e[e.headerFrame = 2] = "headerFrame", e[e.AllianceId = 3] = "AllianceId"
        }(a = n.AssaultPlayerSimpleInfo || (n.AssaultPlayerSimpleInfo = {}));
        var I = function() {
            function e() {}
            return e.Init = function(e, t, n) {
                this._basePanel = e, this.Data = {
                    MapId: t.MapType,
                    AllPlayerInfoMap: {},
                    AllianceInfoMap: {},
                    SimpleResourceInfos: {},
                    ResourceReceiveMap: t.ReceiveTsMap,
                    AliianceCommandPlayerInfo: {},
                    DayEndTime: n
                };
                var o = p.DataCenter.Instance.GetIntData(d.UserDataKey.HeadIcon),
                    r = p.DataCenter.Instance.GetIntData(d.UserDataKey.HeadFrame),
                    i = p.DataCenter.Instance.GetSpecialRedDot(d.SpecialRedDotType.SlgSignUp);
                this.Data.AllPlayerInfoMap[p.DataCenter.Instance.Uid] = {
                    PlayerInfo: {
                        Uid: p.DataCenter.Instance.Uid,
                        Name: p.DataCenter.Instance.GetStringData(d.UserDataKey.RoleName),
                        HeadIcon: o,
                        HeadFrame: r,
                        ArrayParam: [t.EnergyValue, t.EnergyValueLimit, i]
                    },
                    PlayerSimpleInfo: [p.DataCenter.Instance.Uid, o, r, i]
                }, this.RefreshData(t);
                for (var a = 0; a < t.AllianceInfo.length; a++) {
                    var s = t.AllianceInfo[a];
                    this.Data.AllianceInfoMap[s.Id] = s
                }
                for (a = 0; a < t.ResourcePoints.length; a++) {
                    var l = t.ResourcePoints[a];
                    this.Data.SimpleResourceInfos[l.Id] = l
                }
                for (a = 0; a < t.PlayerInfos.length; a++) {
                    var c = t.PlayerInfos[a];
                    c.ArrayParam && 1 == c.ArrayParam.length && (this.Data.AliianceCommandPlayerInfo[c.ArrayParam[0]] = c)
                }
            }, e.RefreshData = function(e) {
                var t, n, o, r = this;
                this._basePanel.ClearTimer(), this.Data.SelfLocation = void 0;
                var a = [];
                if (this.Data.AllPlayerInfoMap[p.DataCenter.Instance.Uid].PlayerInfo.ArrayParam[0] != e.EnergyValue && (this.Data.AllPlayerInfoMap[p.DataCenter.Instance.Uid].PlayerInfo.ArrayParam[0] = e.EnergyValue, a.push(p.DataCenter.Instance.Uid)), a.length > 0 && s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE, a), this.Data.CurLocateResourceInfo = e.ResourcePointDetailInfo, e.ResourcePointDetailInfo) {
                    this.Data.SelfLocation = e.ResourcePointDetailInfo.Id;
                    for (var c = 0; c < this.Data.CurLocateResourceInfo.BattleQueue.length; c++) {
                        var u = this.Data.CurLocateResourceInfo.BattleQueue[c].Items;
                        if (u[i.AttackUid] == p.DataCenter.Instance.Uid || u[i.DefenderUid] == p.DataCenter.Instance.Uid) {
                            this._basePanel.AddDelayAction(p.DataCenter.Instance.Uid, u[i.BattleEndTime], function() {
                                r.CheckBattleEnd(e.ResourcePointDetailInfo.Id)
                            });
                            break
                        }
                    }
                }
                var d = function(i) {
                        var a = e.ResourcePoints[i];
                        if (h.Data.SimpleResourceInfos[a.Id] = a, !a.DefenderDeadTs) return "continue";
                        for (var s = 0; s < a.DefenderDeadTs.length; s++) {
                            var l = a.DefenderDeadTs[s].Items[1],
                                c = a.DefenderDeadTs[s].Items[0];
                            h._basePanel.AddDelayAction(c, l, function() {
                                r.CheckBattleEnd(a.Id)
                            })
                        }
                        for (s = 0; s < a.PlayerInfo.length; s++) {
                            var u = null === (t = a.PlayerInfo[s]) || void 0 === t ? void 0 : t.Items[0];
                            u && !h.Data.AllPlayerInfoMap[u] && (h.Data.AllPlayerInfoMap[u] = {
                                PlayerSimpleInfo: null !== (o = null === (n = a.PlayerInfo[s]) || void 0 === n ? void 0 : n.Items) && void 0 !== o ? o : []
                            })
                        }
                    },
                    h = this;
                for (c = 0; c < e.ResourcePoints.length; c++) d(c);
                for (c = 0; c < e.ActionPlayers.length; c++) {
                    var f = e.ActionPlayers[c].Uid;
                    f == p.DataCenter.Instance.Uid && (this.Data.SelfLocation = e.ActionPlayers[c].StartResourcePoint), this.Data.AllPlayerInfoMap[f] && this.Data.AllPlayerInfoMap[f].PlayerInfo || (this.Data.AllPlayerInfoMap[f] = {
                        PlayerSimpleInfo: [e.ActionPlayers[c].Uid, e.ActionPlayers[c].HeadIcon, e.ActionPlayers[c].HeadFrame, e.ActionPlayers[c].AllianceId]
                    }), this.Data.AllPlayerInfoMap[f].PlayerMoveInfo = e.ActionPlayers[c], this.HandlePlayerMove(this.Data.AllPlayerInfoMap[f].PlayerMoveInfo)
                }
            }, e.OnPlayerEnergyChange = function(e) {
                for (var t = [], n = 0; n < e.length; n++) {
                    if (!this.Data.AllPlayerInfoMap[e[n].Uid] && e[n].HomeId) {
                        var r = this.GetResourceSimpleInfo(e[n].HomeId).OccupyAllianceId;
                        this.Data.AllPlayerInfoMap[e[n].Uid] = {
                            PlayerSimpleInfo: [e[n].Uid, e[n].HeadIcon, e[n].HeadFrame, r]
                        }
                    }
                    if (this.Data.AllPlayerInfoMap[e[n].Uid]) {
                        if (this.Data.AllPlayerInfoMap[e[n].Uid].PlayerInfo) {
                            var i = this.Data.AllPlayerInfoMap[e[n].Uid].PlayerInfo;
                            i.ArrayParam[0] = e[n].EnergyValue, i.ArrayParam[1] = e[n].EnergyValueLimit
                        } else this.Data.AllPlayerInfoMap[e[n].Uid].PlayerInfo = {
                            Uid: e[n].Uid,
                            HeadIcon: e[n].HeadIcon,
                            HeadFrame: e[n].HeadFrame,
                            ArrayParam: [e[n].EnergyValue, e[n].EnergyValueLimit]
                        };
                        t.push(e[n].Uid), e[n].HomeId && (this.GetResourceSimpleInfo(e[n].HomeId).DefenderCount += 1, this.MovePlayer(e[n].Uid, null, null, void 0, e[n].HomeId, o.Defend))
                    } else s.EZLog.Error(t[n] + " \u73a9\u5bb6\u4fe1\u606f\u7f3a\u5931")
                }
                s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE, t)
            }, e.OnPlayerMove = function(t) {
                for (var n, r = 0; r < t.length; r++) {
                    var i = t[r],
                        a = i.Uid;
                    if (!(null === (n = this.Data.AllPlayerInfoMap[a]) || void 0 === n ? void 0 : n.PlayerMoveInfo)) {
                        var s = i.AllianceId;
                        e.Data.SimpleResourceInfos[i.EndResourcePoint].OccupyAllianceId == s ? e.MovePlayer(i.Uid, i.HeadIcon, i.HeadFrame, i.StartResourcePoint, i.EndResourcePoint, o.Defend) : e.MovePlayer(i.Uid, i.HeadIcon, i.HeadFrame, i.StartResourcePoint, i.EndResourcePoint, o.Attack)
                    }
                    this.Data.AllPlayerInfoMap[a] ? this.Data.AllPlayerInfoMap[a].PlayerMoveInfo = i : this.Data.AllPlayerInfoMap[a] = {
                        PlayerSimpleInfo: [i.Uid, i.HeadIcon, i.HeadFrame, i.AllianceId],
                        PlayerMoveInfo: i
                    }, i.PlayerInfo && (this.Data.AllPlayerInfoMap[a].PlayerInfo = i.PlayerInfo), i.Uid == p.DataCenter.Instance.Uid && (e.Data.CurLocateResourceInfo = null), this.HandlePlayerMove(this.Data.AllPlayerInfoMap[a].PlayerMoveInfo)
                }
            }, e.HandlePlayerMove = function(t) {
                var n = this;
                e._basePanel.AddDelayAction(t.Uid, t.MoveEndTime, function() {
                    e.Data.AllPlayerInfoMap[t.Uid].PlayerMoveInfo = null, t.Uid == p.DataCenter.Instance.Uid && (n.Data.SelfLocation = t.EndResourcePoint);
                    var o = n.Data.SimpleResourceInfos[t.EndResourcePoint],
                        r = n.GetPlayerSimpleInfo(t.Uid)[a.AllianceId];
                    o.OccupyAllianceId == r && (o.DefenderCount += 1, s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, [t.EndResourcePoint])), s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_MOVE, t.Uid, t.EndResourcePoint)
                }), s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_MOVE, t.Uid)
            }, e.RemoveUidHeader = function(e, t) {
                var n = this.Data.SimpleResourceInfos[t],
                    o = !1;
                if (!n) return o;
                if (e > 0) {
                    for (var r = this.GetPlayerSimpleInfo(e)[a.AllianceId], i = 0; i < n.PlayerInfo.length; i++)
                        if (e == n.PlayerInfo[i].Items[0]) {
                            n.PlayerInfo.splice(i, 1), o = !0, n.OccupyAllianceId == r && (n.DefenderCount -= 1);
                            break
                        }
                } else n.DefenderCount -= 1;
                return o
            }, e.MovePlayer = function(e, t, n, o, r, i, a) {
                var c, u = [];
                null != o && (a || (c = this.RemoveUidHeader(e, o)), (this.MoveUidFromStartDetail(e, o) || c) && u.push(o));
                var p = !0;
                if (null != r) {
                    for (var d = this.Data.SimpleResourceInfos[r], h = 0; h < d.PlayerInfo.length; h++)
                        if (e == d.PlayerInfo[h].Items[0]) {
                            p = !1;
                            break
                        } p && d.PlayerInfo.push({
                        Items: [e, t, n]
                    })
                }(this.MoveUidToTargetDetail(e, r, i) || p) && u.push(r), u.length > 0 && (a || s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, u))
            }, e.MoveUidFromStartDetail = function(e, t) {
                var n, o = !1;
                if (this.Data.CurLookingResourceInfo && this.Data.CurLookingResourceInfo.Id == t ? n = this.Data.CurLookingResourceInfo : this.Data.CurLocateResourceInfo && this.Data.CurLocateResourceInfo.Id == t && (n = this.Data.CurLocateResourceInfo), n)
                    if (e <= 0) n.Monsters[e] = null, delete n.Monsters[e], o = !0;
                    else {
                        var r = n.Attackers.indexOf(e); - 1 != r && (n.Attackers.splice(r, 1), o = !0), o || -1 != (r = n.Defenders.indexOf(e)) && (n.Defenders.splice(r, 1), o = !0)
                    } return o
            }, e.MoveUidToTargetDetail = function(e, t, n) {
                var r, i = !1;
                if (this.Data.CurLookingResourceInfo && this.Data.CurLookingResourceInfo.Id == t ? r = this.Data.CurLookingResourceInfo : this.Data.CurLocateResourceInfo && this.Data.CurLocateResourceInfo.Id == t && (r = this.Data.CurLocateResourceInfo), r) switch (n) {
                    case o.Attack:
                        r.Attackers.includes(e) || r.Attackers.push(e), i = !0;
                        break;
                    case o.Defend:
                        r.Defenders.includes(e) || r.Defenders.push(e), i = !0
                }
                return i
            }, e.CheckBattleEnd = function(e) {
                var t, n, o, r, a, c = p.RpcComponent.Instance.ServerTime,
                    u = this.Data.SimpleResourceInfos[e],
                    d = [];
                if (u && u.DefenderDeadTs)
                    for (var h = 0; h < u.DefenderDeadTs.length; h++)
                        if (u.DefenderDeadTs[h].Items) {
                            var g = null === (t = u.DefenderDeadTs[h]) || void 0 === t ? void 0 : t.Items[1],
                                m = null === (n = u.DefenderDeadTs[h]) || void 0 === n ? void 0 : n.Items[0];
                            g <= c ? this.RemoveUidHeader(m, u.Id) : d.push(u.DefenderDeadTs[h])
                        } if (u.DefenderDeadTs = d, this.Data.CurLookingResourceInfo && this.Data.CurLookingResourceInfo.Id == e && (r = this.Data.CurLookingResourceInfo), !r && this.Data.CurLocateResourceInfo && this.Data.CurLocateResourceInfo.Id == e && (r = this.Data.CurLocateResourceInfo), r) {
                    var I = [],
                        _ = [],
                        C = void 0,
                        v = p.DataCenter.Instance.Uid;
                    for (h = 0; h < r.BattleQueue.length; h++) {
                        var b = r.BattleQueue[h];
                        if (c < b.Items[i.BattleEndTime]) I.push(b);
                        else {
                            var S = b.Items[i.AttackUid],
                                w = b.Items[i.DefenderUid];
                            S != v && w != v || (a = !0);
                            var P = b.Items[i.AttackerLeftEnergyValue];
                            P <= 0 && (this.MovePlayer(b.Items[i.AttackUid], null, null, e, void 0, void 0, !0), S == p.DataCenter.Instance.Uid && (this.Data.SelfLocation = null, C = w, y.UIUtlity.ShowFloatingHint("assaultOperation_isDead".ToUILocale())));
                            var A = b.Items[i.DefenderLeftEnergyValue];
                            A <= 0 && (this.MovePlayer(b.Items[i.DefenderUid], null, null, e, void 0, void 0, !0), w == p.DataCenter.Instance.Uid && (this.Data.SelfLocation = null, C = S, y.UIUtlity.ShowFloatingHint("assaultOperation_isDead".ToUILocale()))), S > 0 && (this.Data.AllPlayerInfoMap[S].PlayerInfo && (this.Data.AllPlayerInfoMap[S].PlayerInfo.ArrayParam[0] = P), _.push(S)), w > 0 ? (this.Data.AllPlayerInfoMap[w].PlayerInfo && (this.Data.AllPlayerInfoMap[w].PlayerInfo.ArrayParam[0] = A), _.push(w)) : r.Monsters[w] && (r.Monsters[w] = A)
                        }
                    }
                    if (null == this.Data.SelfLocation && C) {
                        this.Data.AllPlayerInfoMap[p.DataCenter.Instance.Uid] && this.Data.AllPlayerInfoMap[p.DataCenter.Instance.Uid].PlayerMoveInfo && (this.Data.AllPlayerInfoMap[p.DataCenter.Instance.Uid].PlayerMoveInfo = null);
                        var T;
                        T = C < 0 ? "assaultOperation_monsterName".ToUILocale() : null === (o = this.GetPlayerInfo(C)) || void 0 === o ? void 0 : o.Name, s.UIManager.Instance.CloseUIPanel(f.PanelConfig.AssaultOperationQueuePanel.Path), s.UIManager.Instance.ShowUIPanel(f.PanelConfig.AssaultOperationDeadHintPanel.Path, this.GetResouceCurrentName(e), T)
                    }
                    r.BattleQueue = I, s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE, _)
                }
                s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, [e], null, a)
            }, e.OnBattleStart = function(e, t) {
                for (var n = this, o = [], r = function(r) {
                        var s = e[r].Items[i.AttackUid];
                        if (t && s == p.DataCenter.Instance.Uid) return "continue";
                        var l = e[r].Items[i.DefenderUid],
                            c = e[r].Items[i.AttackerLeftEnergyValue],
                            u = e[r].Items[i.DefenderLeftEnergyValue],
                            d = s == p.DataCenter.Instance.Uid || l == p.DataCenter.Instance.Uid,
                            h = e[r].Items[i.BattleEndTime],
                            f = e[r].Items[i.ResourceId];
                        a._basePanel.AddDelayAction(d ? p.DataCenter.Instance.Uid : s, h, function() {
                            n.CheckBattleEnd(f)
                        }), a.Data.CurLookingResourceInfo && a.Data.CurLookingResourceInfo.Id == f ? a.AddBattleQueue(a.Data.CurLookingResourceInfo, e[r]) : a.Data.CurLocateResourceInfo && a.Data.CurLocateResourceInfo.Id == f && a.AddBattleQueue(a.Data.CurLocateResourceInfo, e[r]);
                        var y = void 0,
                            g = a.Data.SimpleResourceInfos[f];
                        u <= 0 && (y = l), !y && c <= 0 && (y = s), y && g.DefenderDeadTs.push({
                            Items: [y, h]
                        }), h > g.BattleOverTs && (a.Data.SimpleResourceInfos[f].BattleOverTs = h), o.includes(f) || o.push(f)
                    }, a = this, c = 0; c < e.length; c++) r(c);
                s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, o, null)
            }, e.AddBattleQueue = function(e, t) {
                for (var n, o = t.Items[i.AttackUid], r = t.Items[i.BattleEndTime], a = 0; a < e.BattleQueue.length; a++)
                    if (o == e.BattleQueue[a].Items[i.AttackUid] && (n = !0, e.BattleQueue[a].Items[i.BattleEndTime] < r)) return void(e.BattleQueue[a] = t);
                n || e.BattleQueue.push(t)
            }, e.OnResourceInfoChange = function(t) {
                for (var n, o = [], i = [], a = 0; a < t.length; a++) {
                    var c = t[a];
                    if (this.Data.SimpleResourceInfos[c.Id].OccupyAllianceId != c.OccupyAllianceId) {
                        var h = void 0,
                            f = p.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, c.Id);
                        if (f.Type == d.AssaultOperationResourceType.Headquarters) {
                            n = !0;
                            var y = e.GetAllianceInfo(c.Id, r.ResourceId),
                                m = y[0];
                            y[1], h = "[" + m + "] " + "assaultOperation_resourceName_99".ToUILocale()
                        } else h = "" + c.Id.ToAssualtOperationResourceName();
                        var I = e.GetAllianceInfo(c.OccupyAllianceId, r.AllianceId),
                            _ = I[0];
                        I[1], g.default.AddMessage({
                            Content: "assaultOperation_occupiedMessage".ToUILocale().Fmt(_, h, f.Score)
                        }), i.push(c.Id)
                    }
                    o.push(c.Id), this.Data.SimpleResourceInfos[c.Id] = c
                }
                s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, o, i, null, n)
            }, e.GetResouceCurrentName = function(t) {
                var n;
                if (p.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationResourceItem_Config, t).Type == d.AssaultOperationResourceType.Headquarters) {
                    var o = e.GetAllianceInfo(t, r.ResourceId),
                        i = o[0];
                    o[1], n = "[" + i + "] " + "assaultOperation_resourceName_99".ToUILocale()
                } else n = "" + t.ToAssualtOperationResourceName();
                return n
            }, e.GetTodayEndTime = function() {
                return this.Data ? this.Data.DayEndTime : 0
            }, e.GetMapId = function() {
                return this.Data.MapId
            }, e.GetSelfLocation = function() {
                return e.IsSelfDead() || !this.Data.SelfLocation ? this.GetAllianceHeadQuartersId() : this.Data.SelfLocation
            }, e.GetAllianceHeadQuartersId = function(e) {
                return e || (e = this.GetSelfAllianceId()), this.Data.AllianceInfoMap[e].ArrayParam[1]
            }, e.GetSelfAllianceId = function() {
                return this.Data.AllPlayerInfoMap[p.DataCenter.Instance.Uid].PlayerSimpleInfo[a.AllianceId]
            }, e.GetPlayerInfo = function(e) {
                var t = this.Data.AllPlayerInfoMap[e];
                return t ? t.PlayerInfo : null
            }, e.GetPlayerSimpleInfo = function(e) {
                var t = this.Data.AllPlayerInfoMap[e];
                return t ? t.PlayerSimpleInfo : (s.EZLog.Error(e + "\u73a9\u5bb6\u7b80\u7565\u4fe1\u606f\u672a\u627e\u5230\uff0c " + this.Data.AllPlayerInfoMap[e]), null)
            }, e.GetMonsterEnergy = function(e, t) {
                var n;
                return this.Data.CurLookingResourceInfo && this.Data.CurLookingResourceInfo.Id == e && null !== (n = this.Data.CurLookingResourceInfo.Monsters[t]) && void 0 !== n ? n : 0
            }, e.GetPlayerMoveInfo = function(e) {
                var t = this.Data.AllPlayerInfoMap[e];
                return t ? t.PlayerMoveInfo : null
            }, e.GetResourceSimpleInfo = function(e) {
                return this.Data.SimpleResourceInfos[e]
            }, e.GetAllSimpleResourceInfos = function() {
                var t = [];
                for (var n in e.Data.SimpleResourceInfos) t.push(e.Data.SimpleResourceInfos[n]);
                return t
            }, e.GetAllianceInfo = function(e, t) {
                var n;
                switch (void 0 === t && (t = r.ResourceId), t) {
                    case r.PlayerUid:
                        n = this.Data.AllPlayerInfoMap[e].PlayerSimpleInfo[a.AllianceId];
                        break;
                    case r.AllianceId:
                        n = e;
                        break;
                    case r.ResourceId:
                        n = this.Data.SimpleResourceInfos[e].OccupyAllianceId
                }
                if (!n) return ["assaultOperation_notOccupied".ToUILocale(), null, null];
                var o = this.Data.AllianceInfoMap[n],
                    i = this.Data.AllianceInfoMap[n].ArrayParam[0],
                    s = this.Data.AllianceInfoMap[n].ArrayParam[1];
                return [o.Name, p.DataCenter.Instance.Zones[i].Name, s]
            }, e.IsPlayerBattling = function(e) {
                if (!this.Data.CurLookingResourceInfo) return !1;
                e || (e = p.DataCenter.Instance.Uid, this.Data.SelfLocation);
                for (var t = this.Data.CurLookingResourceInfo, n = 0; n < t.BattleQueue.length; n++) {
                    var o = t.BattleQueue[n].Items;
                    if (o[i.AttackUid] == e || o[i.DefenderUid] == e) return !0
                }
                return !1
            }, e.RefreshResourceGetTime = function(t) {
                var n = c.Req_AssaultOperation_GetResourcePointReward.create();
                n.ActivityId = h.default.ActivityId, p.RpcComponent.Instance.Call(n, function(n) {
                    for (var o in e.Data.ResourceReceiveMap = {}, e.Data.SimpleResourceInfos) {
                        var r = p.DataCenter.Instance.GetSpecialRedDot(d.SpecialRedDotType.SlgSignUp);
                        if (r && r > 0 && e.Data.SimpleResourceInfos[o].OccupyAllianceId == r) {
                            var i = e.Data.SimpleResourceInfos[o].Id;
                            e.Data.ResourceReceiveMap[o] = n.SettleTimes[i]
                        }
                    }
                    t && t(n.Count)
                })
            }, e.IsSelfDead = function() {
                return !this.Data.SelfLocation
            }, e.IsSelfAllianceLose = function() {
                var t = e.GetAllianceHeadQuartersId();
                return this.Data.SimpleResourceInfos[t].OccupyAllianceId != this.GetSelfAllianceId()
            }, e.GetSpecialBuffAddOnValue = function(t, n) {
                var o, r = 0,
                    i = p.ConfigDataComponent.Instance.GetConfigById(u.AssaultOperationMap_Config, e.GetMapId());
                o = n || this.GetSelfAllianceId();
                for (var a = 0; a < i.SpecialResource.length; a++)
                    if (i.SpecialResource[a].Items[1] == t) {
                        var s = i.SpecialResource[a].Items[0];
                        this.Data.SimpleResourceInfos[s].OccupyAllianceId == o && (r += i.SpecialResource[a].Items[2])
                    } return r
            }, e.ReqSupportMessage = function(e) {
                var t = this;
                if (e)
                    if (p.RpcComponent.Instance.ServerTime - this._lastMessageReqTime < 2e3) y.UIUtlity.ShowFloatingHint("error_hint_content_code_1215".ToUILocale());
                    else {
                        var n = new c.Req_Chat_PublicChat;
                        n.Type = d.ChatChannelType.Alliance, n.MessageType = d.ChatMessageType.AssaultOperationSupport, n.Params = [e], p.RpcComponent.Instance.Call(n, function(e) {
                            y.UIUtlity.ShowFloatingHint("assaultOperation_helpSent".ToUILocale()), t._lastMessageReqTime = p.RpcComponent.Instance.ServerTime, p.DataCenter.Instance.AddPublicChatMessage(e.Msg), m.default.OnPublicMessagesComing(e.Msg)
                        })
                    }
            }, e.GetMonsterHeaderId = function(e) {
                switch (e) {
                    case d.AssaultOperationResourceType.Spiritvein4:
                    case d.AssaultOperationResourceType.Headquarters:
                        return d.AssaultOperationResourceType.Spiritvein3;
                    default:
                        return e
                }
            }, e.GetResourceTypeIcon = function(e) {
                switch (e) {
                    case d.AssaultOperationResourceType.Headquarters:
                        return d.AssaultOperationResourceType.Spiritvein3;
                    default:
                        return e
                }
            }, e.ReqLookingResourceDetailInfo = function(e, t) {
                var n = this,
                    o = c.Req_AssaultOperation_GetResourcePointInfo.create();
                o.ActivityId = h.default.ActivityId, o.Id = e, p.RpcComponent.Instance.Call(o, function(e) {
                    n.Data.CurLocateResourceInfo && n.Data.CurLookingResourceInfo && n.Data.CurLookingResourceInfo.Id == n.Data.CurLocateResourceInfo.Id && (n.Data.CurLocateResourceInfo = n.Data.CurLookingResourceInfo), n.Data.CurLookingResourceInfo = e.ResourcePoint, n.StorePlayerInfo(e), t && t()
                })
            }, e.GetSelfLocateResourceInfo = function() {
                var e = this,
                    t = this.GetSelfLocation();
                if (t) {
                    if (this.Data.CurLookingResourceInfo && t == this.Data.CurLookingResourceInfo.Id) return this.Data.CurLocateResourceInfo = this.Data.CurLookingResourceInfo, this.Data.CurLocateResourceInfo;
                    if (!this.Data.CurLocateResourceInfo || this.Data.CurLocateResourceInfo && this.Data.CurLocateResourceInfo.Id != t) {
                        if (!this._isReqSent) {
                            this.Data.CurLocateResourceInfo = null;
                            var n = c.Req_AssaultOperation_GetResourcePointInfo.create();
                            n.ActivityId = h.default.ActivityId, n.Id = t, this._isReqSent = !0, p.RpcComponent.Instance.Call(n, function(t) {
                                e.Data.CurLocateResourceInfo = t.ResourcePoint, e.StorePlayerInfo(t), e._isReqSent = !1
                            }, function() {
                                e._isReqSent = !1
                            })
                        }
                        return null
                    }
                    return this.Data.CurLocateResourceInfo
                }
                s.EZLog.Error("==\u5730\u56fe\u4e0a\u627e\u4e0d\u5230\u81ea\u5df1\u4f4d\u7f6e!==")
            }, e.StorePlayerInfo = function(e) {
                for (var t = 0; t < e.Players.length; t++) this.Data.AllPlayerInfoMap[e.Players[t].Uid] ? this.Data.AllPlayerInfoMap[e.Players[t].Uid].PlayerInfo = e.Players[t] : this.Data.AllPlayerInfoMap[e.Players[t].Uid] = {
                    PlayerInfo: e.Players[t],
                    PlayerSimpleInfo: [e.Players[t].Uid, e.Players[t].HeadIcon, e.Players[t].HeadFrame, e.Players[t].ArrayParam[2]]
                }
            }, e.Clear = function() {
                this.Data = null, this._basePanel = null
            }, e
        }();
        n.AssaultOperationModel = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AssaultOperationChattingMiniPanel": "AssaultOperationChattingMiniPanel",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./ScrollMessagePanel": "ScrollMessagePanel"
    }],
    AssaultOperationPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "985c2I3MVhE5rILskmA7wlm", "AssaultOperationPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../../../Util/TimeUtil"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../Components/CountdownLabel"),
            v = e("../Components/LoadAssetHelper"),
            b = e("./ActivityBaseContent"),
            S = e("./AllianceFlagComponent"),
            w = e("../Components/GameModuleGuideManager"),
            P = e("../../Auxiliary/EventKeys"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.SignUp = 1] = "SignUp", e[e.Preparing = 2] = "Preparing", e[e.Opening = 3] = "Opening", e[e.GetReward = 4] = "GetReward"
        })(l || (l = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new h.UIPanelType(h.UINodeType.Fixed), t.BackBtn = null, t.RuleBtn = null, t.TopNode = null, t.DurationLabel = null, t.ActivityLeftTime = null, t.ServerInfoBtn = null, t.BottomBtnContainer = null, t.BottomRightBtnContainer = null, t.AccomplishmentBtn = null, t.AccomplishmentBtnLabel = null, t.ActivityShopBtn = null, t.ActivityShopBtnLabel = null, t.AllianceChargeBtn = null, t.AllianceChargeBtnLabel = null, t.RankRewardBtn = null, t.RankRewardBtnLabel = null, t.RankBtn = null, t.RankBtnLabel = null, t.GiftPackBtn = null, t.GiftPackBtnLabel = null, t.BetBtn = null, t.BetBtnLabel = null, t.ScheduleBtn = null, t.ScheduleBtnLabel = null, t.GuideBtn = null, t.GuideBtnLabel = null, t.SignUpNode = null, t.SignUpCountDownHint = null, t.SignUpCountDown = null, t.AllianceRankNum = null, t.SignUpTip = null, t.SignUpHint = null, t.AllianceRankBtn = null, t.AllianceRankBtnLabel = null, t.EnterNode = null, t.EnterBtn = null, t.EnterBtnLabel = null, t.EnterGrayBtn = null, t.EnterGrayBtnLabel = null, t.StateCountDownHint = null, t.StateCountDown = null, t.GetRewardNode = null, t.GetRewardTitle = null, t.GetRewardCountDownHint = null, t.GetRewardCountDownLabel = null, t.TopPlayerAvatarNode = null, t.TopPlayerLevel = null, t.TopPlayerName = null, t.TopPlayerAllianceName = null, t.TopPlayerTitleIcon = null, t.TopAllianceFlagNodes = [], t.TopAllianceNames = [], t.LoadAssetHelper = null, t.NoBetaTag = null, t.HasBetaTag = null, t._giftPackRedDot = {}, t._allianceFlagComponents = [], t._moduleGuideGroupIds = [10033], t._guideStepIndex = 0, t._guideGroupId = 0, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(p.UserActivity_Model._n_), this.OnUserActivityModelChange, this), c.Game.EventDispatcher.On(u.GameEventIds.ServerConnected, this.RefreshStateInfo, this), c.Game.EventDispatcher.On(P.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), c.Game.EventDispatcher.On(P.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.OnAssaultModelRefresh, this), c.Game.EventDispatcher.On(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.SlgAllianceHelpMessage), this.RefreshAssaultAchieveRewardsNode, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(p.UserActivity_Model._n_), this.OnUserActivityModelChange, this), c.Game.EventDispatcher.Off(u.GameEventIds.ServerConnected, this.RefreshStateInfo, this), c.Game.EventDispatcher.Off(P.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), c.Game.EventDispatcher.Off(P.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.OnAssaultModelRefresh, this), c.Game.EventDispatcher.Off(u.GameEventIds.SpecialRedDotChange.Fmt(u.SpecialRedDotType.SlgAllianceHelpMessage), this.RefreshAssaultAchieveRewardsNode, this)
            }, t.prototype.OnAssaultModelRefresh = function(e) {
                e && (this._isSelfAllianceLose = !0, this.SetEnterBtnGrey(!0, "assaultOperation_allianceEliminate".ToUILocale()))
            }, t.prototype.OnUserActivityModelChange = function(e) {
                for (var t in e)
                    if (Number.parseInt(t) == n.ActivityId) return void this.BindGiftPackRedDot()
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AllianceBasePanel/Private/AllianceFlagComponent", cc.Prefab)];
                            case 1:
                                return t._allianceFlagPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.EnterBtn.node.on("click", this.OnEnterBtnClick, this), this.EnterGrayBtn.node.on("click", this.OnGrayBtnClick, this), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.BackBtn.node.on("click", this.OnCloseBtnClick, this), this.ServerInfoBtn.node.on("click", this.OnServerInfoBtnClick, this), this.ActivityShopBtn.node.on("click", this.OnShopBtnClick, this), this.AllianceChargeBtn.node.on("click", this.OnAllianceChargeBtnClick, this), this.RankRewardBtn.node.on("click", this.OnRankRewardBtnClick, this), this.RankBtn.node.on("click", this.OnRankBtnBtnClick, this), this.GiftPackBtn.node.on("click", this.OnGiftPackBtnClick, this), this.BetBtn.node.on("click", this.OnBetBtnClick, this), this.ScheduleBtn.node.on("click", this.OnScheduleBtnClick, this), this.GuideBtn.node.on("click", this.OnGuideBtnClick, this), this.AccomplishmentBtn.node.on("click", this.OnAccomplishmentBtnClick, this), this.AllianceChargeBtnLabel.string = "assaultOperation_allianceCharge".ToUILocale(), this.RankRewardBtnLabel.string = "ActivityRushRank_Title_1".ToUILocale(), this.RankBtnLabel.string = "holyArea_rank".ToUILocale(), this.GiftPackBtnLabel.string = "LuckyDraw_pack".ToUILocale(), this.BetBtnLabel.string = "assaultOperation_bet".ToUILocale(), this.ScheduleBtnLabel.string = "assaultOperation_schedule".ToUILocale(), this.GuideBtnLabel.string = "finghting_guide".ToUILocale(), this.AccomplishmentBtnLabel.string = "achievement".ToUILocale(), this.EnterBtnLabel.string = "ActivityHeroTestTower_Entry".ToUILocale(), this.DurationLabel.string = "activity_remain_time".ToUILocale(), this.TopPlayerAvatarNode.on(cc.Node.EventType.TOUCH_END, this.OnTopPlayerClick, this);
                for (var t = 0; t < this.TopAllianceFlagNodes.length; t++) this.TopAllianceFlagNodes[t].on(cc.Node.EventType.TOUCH_END, this.OnTopAllianceClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), n.ActivityId = t[0], this._activityConfig = f.DataCenter.Instance.ActivityConfigs[n.ActivityId], this.HasBetaTag.active = 1 == this._activityConfig.CustomPart.isBeta, this.NoBetaTag.active = !this.HasBetaTag.active;
                var o = this._activityConfig.Common.JumpIds[0];
                if (o) {
                    var r = f.DataCenter.Instance.ActivityNameMap[o];
                    r ? (this.ActivityShopBtn.node.active = !0, this.ActivityShopBtnLabel.string = r.Common.Title) : this.ActivityShopBtn.node.active = !1
                } else this.ActivityShopBtn.node.active = !1;
                this.SignUpTip.string = "assaultOperation_rankCondition".ToUILocale().Fmt(this._activityConfig.CustomPart.AllianceCount)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.ComputerActivityEndTime(), this.RefreshStateInfo(), this.BindRedDot(), this.ShowGameGuid())
            }, t.prototype.BindRedDot = function() {
                g.RedDotManager.Instance.BindInstance(this.AllianceChargeBtn.node, g.RedDotManager.Instance.InstanceRedDot.FamilyMutualAidNode, {
                    Value1: n.ActivityId
                }), g.RedDotManager.Instance.BindInstance(this.RankRewardBtn.node, g.RedDotManager.Instance.InstanceRedDot.AssaultOperationRankRewardNode, {
                    Value1: n.ActivityId
                }), g.RedDotManager.Instance.BindInstance(this.BetBtn.node, g.RedDotManager.Instance.InstanceRedDot.AssaultOperationRankingGuessNode, {
                    Value1: n.ActivityId
                }), g.RedDotManager.Instance.BindInstance(this.AccomplishmentBtn.node, g.RedDotManager.Instance.InstanceRedDot.AssaultAchieveRewardsNode, {
                    Value1: n.ActivityId
                }), this.BindGiftPackRedDot()
            }, t.prototype.BindGiftPackRedDot = function() {
                var e = f.DataCenter.Instance.GetDataById(p.UserActivity_Model, n.ActivityId),
                    t = !1;
                if (f.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgSignUp))
                    for (var o = 0; o < this._activityConfig._Packs.length; o++) {
                        var r = this._activityConfig._Packs[o];
                        0 == r.Money && (e.Packs[r.Id] && e.Packs[r.Id].Items[0] || (t = !0))
                    }
                g.RedDotManager.Instance.BindNodeByResult(this.GiftPackBtn.node, this._giftPackRedDot, t)
            }, t.prototype.RefreshStateInfo = function() {
                var e;
                switch (this._isSelfAllianceLose = !1, e = this.GetAssaultOperationState(), this._curState = e[0], this._nextRefreshTime = e[1], this.ResetPanel(), this._curState) {
                    case l.SignUp:
                        this.ShowSignUpState();
                        break;
                    case l.Preparing:
                        this.ShowPreparingState();
                        break;
                    case l.Opening:
                        this.ShowOpeningState();
                        break;
                    case l.GetReward:
                        this.ShowGetRewardState()
                }
                this.unschedule(this.RefreshStateInfo), Math.ceil((this._nextRefreshTime - f.RpcComponent.Instance.ServerTime) / u.Etc.SecondDuration) > 0 && this.ScheduleOnceAtRealTime(this.RefreshStateInfo, this._nextRefreshTime)
            }, t.prototype.ResetPanel = function() {
                this.TopNode.active = !1, this.EnterNode.active = !1, this.GetRewardNode.active = !1, this.SignUpNode.active = !1, this.BottomRightBtnContainer.active = !1;
                for (var e = 0; e < this.BottomBtnContainer.childrenCount; e++) this.BottomBtnContainer.children[e].active = !1;
                this.SetEnterBtnGrey(!1)
            }, t.prototype.SetEnterBtnGrey = function(e, t) {
                !this._isEnterBtnGray && e ? this._isEnterBtnGray = !0 : this._isEnterBtnGray && !e && (this._isEnterBtnGray = !1), this.EnterGrayBtnLabel.string = t || this.EnterBtnLabel.string, this.EnterGrayBtn.node.active = this._isEnterBtnGray, this.EnterBtn.node.active = !this.EnterGrayBtn.node.active
            }, t.prototype.ShowSignUpState = function() {
                this.ConfigTopNodeInfo(), this.SignUpNode.active = !0, this.SignUpCountDownHint.string = "assaultOperation_signUpCountDown".ToUILocale(), this.SignUpCountDown.Init(this._nextRefreshTime, "Activity_HeroPK_Round_Tag_End".ToUILocale()), this.DoGetAllianceRankReq(), this.BottomRightBtnContainer.active = !0, this.RankRewardBtn.node.active = !0, this.RankBtn.node.active = !0, this.ScheduleBtn.node.active = !0, this.GiftPackBtn.node.active = !0, this.GuideBtn.node.active = !0, this.BetBtn.node.active = !0, this.NotJoinActivityBtnHide()
            }, t.prototype.DoGetAllianceRankReq = function() {
                var e = this;
                if (f.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.AllianceId)) {
                    var t = p.Req_AssaultOperation_EnterGameModule.create();
                    t.ActivityId = this._activityConfig._id, f.RpcComponent.Instance.Call(t, function(t) {
                        e._allianceRankInfo = t, t.AllianceRank > 0 && t.AllianceRank <= e._activityConfig.CustomPart.AllianceCount ? e.SignUpHint.string = "RankMatchArena_signed".ToUILocale() : e.SignUpHint.string = "notSigned".ToUILocale();
                        var n = t.AllianceRank <= 0 ? "100+" : t.AllianceRank.toString();
                        e.AllianceRankNum.string = "myAllianceRank".ToUILocale() + ": <color=#6eeea7>" + n + "</c>"
                    })
                } else this.AllianceRankNum.string = "myAllianceRank".ToUILocale() + ": <color=#6eeea7>" + "chatting_privateNotInAnyAlliance".ToUILocale() + "</c>", this.SignUpHint.string = "notSigned".ToUILocale()
            }, t.prototype.ShowPreparingState = function() {
                this.ConfigTopNodeInfo(), this.EnterNode.active = !0, this.BottomRightBtnContainer.active = !0, this.RankRewardBtn.node.active = !0, this.RankBtn.node.active = !0, this.ScheduleBtn.node.active = !0, this.GiftPackBtn.node.active = !0, this.GuideBtn.node.active = !0, this.BetBtn.node.active = !0, this.StateCountDownHint.string = "assaultOperation_prepare".ToUILocale() + ":", this.StateCountDown.Init(this._nextRefreshTime, "Activity_HeroPK_Round_Tag_End".ToUILocale()), this.SetEnterBtnGrey(!0), this.NotJoinActivityBtnHide()
            }, t.prototype.ShowOpeningState = function() {
                this.ConfigTopNodeInfo(), this.EnterNode.active = !0, f.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgSignUp) ? (this.EnterBtn.node.active = !1, this.GetIsEliminateState()) : this.SetEnterBtnGrey(!0), this.BottomRightBtnContainer.active = !0, this.RankRewardBtn.node.active = !0, this.RankBtn.node.active = !0, this.ScheduleBtn.node.active = !0, this.GiftPackBtn.node.active = !0, this.GuideBtn.node.active = !0, this.BetBtn.node.active = !0, this.StateCountDownHint.string = "assaultOperation_open".ToUILocale(), this.StateCountDown.Init(this._nextRefreshTime, "Activity_HeroPK_Round_Tag_End".ToUILocale()), this.NotJoinActivityBtnHide()
            }, t.prototype.GetIsEliminateState = function() {
                var e = this,
                    t = p.Req_AssaultOperation_EnterGameModule.create();
                t.ActivityId = this._activityConfig._id, f.RpcComponent.Instance.Call(t, function(t) {
                    e._allianceRankInfo = t, e._allianceRankInfo.IsEliminate ? (e._isSelfAllianceLose = !0, e.SetEnterBtnGrey(!0, "assaultOperation_allianceEliminate".ToUILocale())) : e.SetEnterBtnGrey(!1)
                })
            }, t.prototype.ShowGetRewardState = function() {
                this.GetRewardNode.active = !0, this.GetRewardTitle.string = this._activityConfig.Common.Title, this.GetRewardCountDownHint.string = "assaultOperation_getReward".ToUILocale(), this.RankRewardBtn.node.active = !0, this.RankBtn.node.active = !0, this.ActivityShopBtn.node.setParent(this.BottomBtnContainer), this.ActivityShopBtn.node.y = 0, this.ActivityShopBtn.node.active = !0, this.AccomplishmentBtn.node.setParent(this.BottomBtnContainer), this.AccomplishmentBtn.node.y = 0, this.AccomplishmentBtn.node.active = !0, this.BetBtn.node.active = !0, this.ConfigTopPlayerInfo(), this.ConfigTopAllianceInfo();
                var e = I.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common);
                this.GetRewardCountDownLabel.Init(e, "activity_end".ToUILocale())
            }, t.prototype.ConfigTopPlayerInfo = function() {
                var e = this;
                if (!this._topPlayerInfo) {
                    var t = p.Req_AssaultOperation_GetPlayerRank.create();
                    t.ActivityId = n.ActivityId, f.RpcComponent.Instance.Call(t, function(t) {
                        t.Players && t.Players[0] ? (e._topPlayerInfo = t.Players[0], e.TopPlayerName.string = e._topPlayerInfo.PlayerInfo.Name, e.TopPlayerLevel.string = "Lv." + e._topPlayerInfo.PlayerInfo.Level, e.LoadTopPlayerAvatar(), e.TopPlayerAllianceName.string = "[" + f.DataCenter.Instance.Zones[e._topPlayerInfo.Zone].Name + "] " + e._topPlayerInfo.AllianceInfo.Name) : e.TopPlayerName.string = "climbTower_rankList_no_player".ToUILocale()
                    })
                }
            }, t.prototype.LoadTopPlayerAvatar = function() {
                var e = this._topPlayerInfo.PlayerInfo.HeadIcon,
                    t = f.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, e);
                t || (t = f.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e));
                var n = "Hero_" + t.Model + "/HeroAvatar";
                this.LoadAssetHelper.LoadPrefab(n, this.TopPlayerAvatarNode, function(e) {
                    e.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0)
                }), this.LoadAssetHelper.LoadSpriteFrame(f.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + this._topPlayerInfo.PlayerInfo.Title), this.TopPlayerTitleIcon)
            }, t.prototype.OnTopPlayerClick = function() {
                this._topPlayerInfo && c.UIManager.Instance.ShowUIPanel(y.PanelConfig.PlayerInfoPanel.Path, this._topPlayerInfo.PlayerInfo.Uid, this._topPlayerInfo.Zone)
            }, t.prototype.ConfigTopAllianceInfo = function() {
                var e = this;
                if (!this._topAllianceInfo) {
                    var t = p.Req_AssaultOperation_GetRank.create();
                    t.ActivityId = n.ActivityId, t.Type = u.AssaultOperationRankType.TotalScore, f.RpcComponent.Instance.Call(t, function(t) {
                        e._topAllianceInfo = t;
                        for (var n = 0; n < e.TopAllianceFlagNodes.length; n++)
                            if (e._topAllianceInfo.Alliances && e._topAllianceInfo.Alliances[n]) {
                                var o = e._topAllianceInfo.Alliances[n],
                                    r = e._allianceFlagComponents[n];
                                if (!r) {
                                    var i = cc.instantiate(e._allianceFlagPrefab);
                                    i.setParent(e.TopAllianceFlagNodes[n]), r = i.getComponent(S.default), e._allianceFlagComponents[n] = r
                                }
                                r.Init(o.Icon), e.TopAllianceNames[n].string = o.Name
                            } else e.TopAllianceFlagNodes[n].active = !1, e.TopAllianceNames[n].string = "rank_no_people".ToUILocale()
                    })
                }
            }, t.prototype.OnTopAllianceClick = function(e) {
                var t = Number.parseInt(e.target.name);
                if (this._topAllianceInfo) {
                    var n = this._topAllianceInfo.Alliances[t];
                    n && h.UIManager.Instance.ShowUIPanel(y.PanelConfig.AllianceDetailPanel.Path, n.Id, this, !0)
                }
            }, t.prototype.ConfigTopNodeInfo = function() {
                if (!this.TopNode.active) {
                    this.TopNode.active = !0;
                    var e = I.default.Instance.GetActivityEndTime(n.ActivityId);
                    this.ActivityLeftTime.Init(e, "activity_end".ToUILocale())
                }
            }, t.prototype.OnEnterBtnClick = function() {
                var e = this.GetAssaultOperationState(),
                    t = e[0];
                if (e[1], t != l.SignUp)
                    if (t != l.Preparing)
                        if (f.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgSignUp))
                            if (t == l.Opening)
                                if (this._isSelfAllianceLose) _.UIUtlity.ShowFloatingHint("assaultOperation_allianceEliminate".ToUILocale());
                                else {
                                    var o = p.Req_AssaultOperation_EnterMap.create();
                                    o.ActivityId = n.ActivityId, f.RpcComponent.Instance.Call(o, function(e) {
                                        for (var t, n = f.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgSignUp), o = 0; o < e.AllianceInfo.length; o++)
                                            if (n == e.AllianceInfo[o].Id) {
                                                t = e.AllianceInfo[o].ArrayParam[1];
                                                break
                                            } t ? c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationMapPanel.Path, e) : _.UIUtlity.ShowFloatingHint("assaultOperation_allianceEliminate".ToUILocale())
                                    })
                                }
                else _.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale());
                else _.UIUtlity.ShowFloatingHint("assaultOperation_notJoin".ToUILocale());
                else _.UIUtlity.ShowFloatingHint("assaultOperation_prepare".ToUILocale())
            }, t.prototype.OnGrayBtnClick = function() {
                var e = this.GetAssaultOperationState(),
                    t = e[0];
                e[1], t != l.SignUp && (t != l.Preparing ? f.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgSignUp) ? t == l.Opening ? this._isSelfAllianceLose && _.UIUtlity.ShowFloatingHint("assaultOperation_allianceEliminate".ToUILocale()) : _.UIUtlity.ShowFloatingHint("ActiveCollection_Passed".ToUILocale()) : _.UIUtlity.ShowFloatingHint("assaultOperation_notJoin".ToUILocale()) : _.UIUtlity.ShowFloatingHint("assaultOperation_prepare".ToUILocale()))
            }, t.prototype.GetAssaultOperationState = function() {
                var e, t = f.RpcComponent.Instance.ServerTime;
                if (I.default.Instance.GetActivityEndTime(n.ActivityId) <= t) return [l.GetReward, null];
                var o = this._activityConfig.Common.StartTime + this._activityConfig.CustomPart.PreparationPeriodTime * u.Etc.HourDuration;
                if (t < o) e = l.SignUp;
                else {
                    var r = m.TimeUtil.GetIndexClockTs(t, this._activityConfig.CustomPart.BattlePeriodTime[0]),
                        i = m.TimeUtil.GetIndexClockTs(t, this._activityConfig.CustomPart.BattlePeriodTime[1]) - u.Etc.MinuteDuration;
                    t < r ? (e = l.Preparing, o = r) : t < i ? (e = l.Opening, o = i) : m.TimeUtil.GetDiffDays(t, I.default.Instance.GetActivityEndTime(n.ActivityId)) < 1 ? (e = l.GetReward, o = I.default.Instance.GetActivityEndTime(n.ActivityId) + this._activityConfig.Common.ExtraShowDays * u.Etc.DayDuration) : (e = l.Preparing, o = m.TimeUtil.GetOffsetDayTs(1, r))
                }
                return [e, o]
            }, t.prototype.OnRuleBtnClick = function() {
                var e = {
                    name: this._activityConfig.Common.Title,
                    titles: ["Activity_EmaPray_Rule_Title".ToUILocale()],
                    contents: ["assaultOperation_ruleContent".ToUILocale()]
                };
                _.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnAllianceChargeBtnClick = function() {
                f.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgSignUp) || _.UIUtlity.ShowFloatingHint("assaultOperation_notJoin".ToUILocale()), c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationFamilyMutualAidPanel.Path)
            }, t.prototype.OnRankRewardBtnClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationRankRewardsPanel.Path)
            }, t.prototype.OnRankBtnBtnClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationRankPanel.Path)
            }, t.prototype.OnGiftPackBtnClick = function() {
                var e = {
                    ActivityId: this._activityConfig._id,
                    ActivityGiftPackData: this._activityConfig._Packs,
                    Deadline: I.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                    BannerPath: this._activityConfig.Common.Pictures[0],
                    Title: this._activityConfig._Packs[0].Name
                };
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonGiftPackPanel.Path, e)
            }, t.prototype.OnBetBtnClick = function() {
                var e, t = m.TimeUtil.Get0ClockTs(n.ActivityEndSettlementTime);
                f.RpcComponent.Instance.ServerTime < t ? _.UIUtlity.ShowFloatingHint("assault_guessOpenHint".ToUILocale()) : n.ActivityEndSettlementTime > f.RpcComponent.Instance.ServerTime ? ((e = p.Req_AssaultOperation_GetRank.create()).ActivityId = n.ActivityId, e.Type = u.AssaultOperationRankType.TotalScore, f.RpcComponent.Instance.Call(e, function(e) {
                    c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationRankingGuessPanel.Path, e)
                })) : ((e = p.Req_AssaultOperation_RefreshGuessResult.create()).ActivityId = n.ActivityId, f.RpcComponent.Instance.Call(e, function(e) {
                    c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationRankingGuessRewardsPanel.Path, e)
                }))
            }, t.prototype.OnShopBtnClick = function() {
                var e = this._activityConfig.Common.JumpIds[0];
                if (e) {
                    var t = f.DataCenter.Instance.ActivityNameMap[e];
                    t ? b.default.OpenActivityPanel(t._id) : _.UIUtlity.ShowFloatingHint("Answer_Unopen".ToUILocale())
                } else _.UIUtlity.ShowFloatingHint("Answer_Unopen".ToUILocale())
            }, t.prototype.OnScheduleBtnClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationMatchSchedulePanel.Path)
            }, t.prototype.OnGuideBtnClick = function() {
                if (!this._guidleSpritePaths) {
                    this._guidleSpritePaths = [], this._guidleTipIds = [];
                    for (var e = 0; e < this._activityConfig.Tutorial.length; e++) this._guidleSpritePaths.push(this._activityConfig.Tutorial[e].Picture), this._guidleTipIds.push(this._activityConfig.Tutorial[e].LocaleId)
                }
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.RhythmTutorialPanel.Path, {
                    GuideSpritePaths: this._guidleSpritePaths,
                    TipIds: this._guidleTipIds,
                    ActivityLocale: this._activityConfig._Locale,
                    ActivityId: this._activityConfig._id
                })
            }, t.prototype.OnAccomplishmentBtnClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationAchieveRewardsPanel.Path)
            }, t.prototype.OnServerInfoBtnClick = function() {
                var e = this;
                if (this._allianceRankInfo) c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationServerInfoPanel.Path, n.ActivityId, this._allianceRankInfo.AllianceNames);
                else {
                    var t = p.Req_AssaultOperation_EnterGameModule.create();
                    t.ActivityId = this._activityConfig._id, f.RpcComponent.Instance.Call(t, function(t) {
                        e._allianceRankInfo = t, c.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationServerInfoPanel.Path, n.ActivityId, e._allianceRankInfo.AllianceNames)
                    })
                }
            }, t.prototype.OnCloseBtnClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.ComputerActivityEndTime = function() {
                n.ActivityEndSettlementTime = I.default.Instance.ComputeAssaultOperationLastSettlementTime(n.ActivityId)
            }, t.prototype.NotJoinActivityBtnHide = function() {
                if (!f.DataCenter.Instance.GetSpecialRedDot(u.SpecialRedDotType.SlgSignUp)) return this.AllianceChargeBtn.node.active = !1, this.AccomplishmentBtn.node.active = !1, void(this.ScheduleBtn.node.active = !1);
                this.AllianceChargeBtn.node.active = !0, this.AccomplishmentBtn.node.active = !0, this.ScheduleBtn.node.active = !0
            }, t.prototype.ShowGameGuid = function(e) {
                if (this._curState != l.GetReward && (!e || e == this._guideGroupId)) {
                    var t = w.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds);
                    if (!(t <= 0)) {
                        this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                        var n = f.ConfigDataComponent.Instance.GetConfigById(d.GameModuleGuideGroup_Config, this._guideGroupId);
                        if (n)
                            for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                var r = !0;
                                switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                    case 82:
                                        w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                        break;
                                    case 92:
                                        w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.GuideBtn.node);
                                        break;
                                    default:
                                        r = !1
                                }
                                if (this._guideStepIndex++, r) break
                            }
                    }
                }
            }, t.prototype.RefreshAssaultAchieveRewardsNode = function() {
                g.RedDotManager.Instance.RefreshInstanceRedDotNode(g.RedDotManager.Instance.InstanceRedDot.FamilyMutualAidNode, {
                    Value1: n.ActivityId
                })
            }, i([R(cc.Button)], t.prototype, "BackBtn", void 0), i([R(cc.Button)], t.prototype, "RuleBtn", void 0), i([R(cc.Node)], t.prototype, "TopNode", void 0), i([R(cc.Label)], t.prototype, "DurationLabel", void 0), i([R(C.default)], t.prototype, "ActivityLeftTime", void 0), i([R(cc.Button)], t.prototype, "ServerInfoBtn", void 0), i([R(cc.Node)], t.prototype, "BottomBtnContainer", void 0), i([R(cc.Node)], t.prototype, "BottomRightBtnContainer", void 0), i([R(cc.Button)], t.prototype, "AccomplishmentBtn", void 0), i([R(cc.Label)], t.prototype, "AccomplishmentBtnLabel", void 0), i([R(cc.Button)], t.prototype, "ActivityShopBtn", void 0), i([R(cc.Label)], t.prototype, "ActivityShopBtnLabel", void 0), i([R(cc.Button)], t.prototype, "AllianceChargeBtn", void 0), i([R(cc.Label)], t.prototype, "AllianceChargeBtnLabel", void 0), i([R(cc.Button)], t.prototype, "RankRewardBtn", void 0), i([R(cc.Label)], t.prototype, "RankRewardBtnLabel", void 0), i([R(cc.Button)], t.prototype, "RankBtn", void 0), i([R(cc.Label)], t.prototype, "RankBtnLabel", void 0), i([R(cc.Button)], t.prototype, "GiftPackBtn", void 0), i([R(cc.Label)], t.prototype, "GiftPackBtnLabel", void 0), i([R(cc.Button)], t.prototype, "BetBtn", void 0), i([R(cc.Label)], t.prototype, "BetBtnLabel", void 0), i([R(cc.Button)], t.prototype, "ScheduleBtn", void 0), i([R(cc.Label)], t.prototype, "ScheduleBtnLabel", void 0), i([R(cc.Button)], t.prototype, "GuideBtn", void 0), i([R(cc.Label)], t.prototype, "GuideBtnLabel", void 0), i([R(cc.Node)], t.prototype, "SignUpNode", void 0), i([R(cc.Label)], t.prototype, "SignUpCountDownHint", void 0), i([R(C.default)], t.prototype, "SignUpCountDown", void 0), i([R(cc.RichText)], t.prototype, "AllianceRankNum", void 0), i([R(cc.Label)], t.prototype, "SignUpTip", void 0), i([R(cc.Label)], t.prototype, "SignUpHint", void 0), i([R(cc.Button)], t.prototype, "AllianceRankBtn", void 0), i([R(cc.Label)], t.prototype, "AllianceRankBtnLabel", void 0), i([R(cc.Node)], t.prototype, "EnterNode", void 0), i([R(cc.Button)], t.prototype, "EnterBtn", void 0), i([R(cc.Label)], t.prototype, "EnterBtnLabel", void 0), i([R(cc.Button)], t.prototype, "EnterGrayBtn", void 0), i([R(cc.Label)], t.prototype, "EnterGrayBtnLabel", void 0), i([R(cc.Label)], t.prototype, "StateCountDownHint", void 0), i([R(C.default)], t.prototype, "StateCountDown", void 0), i([R(cc.Node)], t.prototype, "GetRewardNode", void 0), i([R(cc.Label)], t.prototype, "GetRewardTitle", void 0), i([R(cc.Label)], t.prototype, "GetRewardCountDownHint", void 0), i([R(C.default)], t.prototype, "GetRewardCountDownLabel", void 0), i([R(cc.Node)], t.prototype, "TopPlayerAvatarNode", void 0), i([R(cc.Label)], t.prototype, "TopPlayerLevel", void 0), i([R(cc.Label)], t.prototype, "TopPlayerName", void 0), i([R(cc.Label)], t.prototype, "TopPlayerAllianceName", void 0), i([R(cc.Sprite)], t.prototype, "TopPlayerTitleIcon", void 0), i([R(cc.Node)], t.prototype, "TopAllianceFlagNodes", void 0), i([R(cc.Label)], t.prototype, "TopAllianceNames", void 0), i([R(v.default)], t.prototype, "LoadAssetHelper", void 0), i([R(cc.Node)], t.prototype, "NoBetaTag", void 0), i([R(cc.Node)], t.prototype, "HasBetaTag", void 0), n = i([T], t)
        }(h.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CountdownLabel": "CountdownLabel",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./ActivityBaseContent": "ActivityBaseContent",
        "./AllianceFlagComponent": "AllianceFlagComponent"
    }],
    AssaultOperationPlayerInfoItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fdcb6Q49JlGhaGAOvvQdSEL", "AssaultOperationPlayerInfoItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/CustomProgressBar"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("./AssaultOperationModel"),
            c = e("../../Components/Components"),
            u = e("./AssaultOperationPanel"),
            p = e("../Components/HeadComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PlayerHeaderNode = null, t.PlayerName = null, t.AllianceName = null, t.StateNode = null, t.StateIcon = null, t.StateLabelBg = null, t.StateLabel = null, t.ProgressBar = null, t.ProgressBarValue = null, t.ChallengeBtn = null, t.ChallengeBtnLabel = null, t.SelfTag = null, t.SelfTagLabel = null, t.SelfAllianceTag = null, t.SelfAllianceTagLabel = null, t.Atlas = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    var t, n;
                    if (this._isInit || (this.ChallengeBtnLabel.string = "assaultOperation_challenge".ToUILocale(), this.ChallengeBtn.node.on("click", this.OnChallengeBtnClick, this), this.SelfTagLabel.string = "assaultOperation_self".ToUILocale(), this.SelfAllianceTagLabel.string = "assaultOperation_sameAlliance".ToUILocale(), this._isInit = !0), this._customData = e, this.SelfTag.active = !1, this._customData.PlayerState) switch (this._customData.PlayerState) {
                        case l.AssaultOperationPlayerState.Moving:
                            this.StateNode.active = !0, this.StateLabel.string = "assaultOperation_moving".ToUILocale(), this.StateIcon.spriteFrame = this.Atlas.getSpriteFrame("queueIcon2"), this.StateLabelBg.spriteFrame = this.Atlas.getSpriteFrame("floor2"), this.ChallengeBtn.node.active = !1;
                            break;
                        case l.AssaultOperationPlayerState.Battling:
                            this.StateNode.active = !0, this.StateLabel.string = "assaultOperation_battling".ToUILocale(), this.StateIcon.spriteFrame = this.Atlas.getSpriteFrame("queueIcon1"), this.StateLabelBg.spriteFrame = this.Atlas.getSpriteFrame("floor1"), this.ChallengeBtn.node.active = !1;
                            break;
                        default:
                            this.ChallengeBtn.node.active = !0, this.StateNode.active = !1
                    }
                    if (this._customData.PlayerInfo) {
                        this.PlayerName.string = this._customData.PlayerInfo.Name, this._customData.PlayerInfo.Uid == c.DataCenter.Instance.Uid ? (this.ChallengeBtn.node.active = !1, this.SelfAllianceTag.active = !1, this.SelfTag.active = !0) : this._customData.PlayerInfo.ArrayParam[2] == this._customData.SelfAllianceId ? (this.SelfAllianceTag.active = !0, this.ChallengeBtn.node.active = !1) : this.SelfAllianceTag.active = !1, this.PlayerName.string = this._customData.PlayerInfo.Name, t = this._customData.PlayerInfo.ArrayParam[0], n = this._customData.PlayerInfo.ArrayParam[1], this.AllianceName.node.active = !0;
                        var o = l.AssaultOperationModel.GetAllianceInfo(this._customData.PlayerInfo.Uid, l.AssaultOperationGetAllianceTypeBy.PlayerUid);
                        this.AllianceName.string = "[" + o[1] + "] " + o[0]
                    } else this._customData.MonsterId <= 0 && (this.AllianceName.node.active = !1, this.PlayerName.string = "assaultOperation_monsterName".ToUILocale(), this.SelfAllianceTag.active = !1, t = this._customData.MonsterEnergyValue, n = this._customData.MonsterEnergyValueLimit);
                    this.ConfigChallengeBtnState(), this.ConfigHeader(), this.RefreshProgressBar(t, n)
                }, t.prototype.ConfigChallengeBtnState = function() {
                    l.AssaultOperationModel.GetSelfLocation() != this._customData.ResourceId && (this.ChallengeBtn.node.active = !1);
                    var e = l.AssaultOperationModel.GetResourceSimpleInfo(this._customData.ResourceId);
                    this._customData.QueueType != l.AssaultOperationQueueType.Defend || e.OccupyAllianceId != this._customData.SelfAllianceId || (this.ChallengeBtn.node.active = !1)
                }, t.prototype.ConfigHeader = function() {
                    if (!this._headerComponent) {
                        var e = cc.instantiate(this._customData.HeaderPrefab);
                        e.setParent(this.PlayerHeaderNode), this._headerComponent = e.getComponent(p.default)
                    }
                    this._customData.PlayerInfo ? this._headerComponent.SetUI(this._customData.PlayerInfo.HeadIcon, this._customData.PlayerInfo.HeadFrame) : (this._headerComponent.SetCustomHeadIcon(this._customData.MonsterIcon), this._headerComponent.SetHeadFrame(-1))
                }, t.prototype.RefreshProgressBar = function(e, t) {
                    var n = e,
                        o = t;
                    this.ProgressBar.progress = n / o, this.ProgressBarValue.string = n + "/" + o
                }, t.prototype.OnChallengeBtnClick = function() {
                    var e, t = this;
                    if (!l.AssaultOperationModel.IsSelfDead())
                        if (l.AssaultOperationModel.GetTodayEndTime() <= c.RpcComponent.Instance.ServerTime) d.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                        else if (l.AssaultOperationModel.IsPlayerBattling()) d.UIUtlity.ShowFloatingHint("inBattle".ToUILocale());
                    else {
                        var n = l.AssaultOperationModel.GetPlayerInfo(c.DataCenter.Instance.Uid);
                        if ((null !== (e = null == n ? void 0 : n.ArrayParam[0]) && void 0 !== e ? e : 0) < this._customData.MinBattleEnergyValue && l.AssaultOperationModel.GetSelfLocation() == l.AssaultOperationModel.GetAllianceHeadQuartersId()) d.UIUtlity.ShowFloatingHint("assaultOperation_lowEnergyHint1".ToUILocale().Fmt(this._customData.MinBattleEnergyValue));
                        else {
                            var o = l.AssaultOperationModel.Data.CurLookingResourceInfo;
                            if (this._customData.QueueType == l.AssaultOperationQueueType.Defend) {
                                for (var r = 0; r < o.Attackers.length; r++) {
                                    var i = o.Attackers[r];
                                    if (!l.AssaultOperationModel.GetPlayerMoveInfo(i)) {
                                        var a = l.AssaultOperationModel.GetPlayerInfo(i);
                                        if ((null == a ? void 0 : a.ArrayParam[2]) != l.AssaultOperationModel.GetSelfAllianceId()) return void d.UIUtlity.ShowFloatingHint("assaultOperation_cantAttackHin1".ToUILocale())
                                    }
                                }
                                if (this._customData.MonsterId <= 0 && o.Defenders.length > 0) return void d.UIUtlity.ShowFloatingHint("assaultOperation_cantAttackHin2".ToUILocale())
                            }
                            if (!this._customData.PlayerState || this._customData.PlayerState == l.AssaultOperationPlayerState.Idle) {
                                var p, h = s.Req_AssaultOperation_ChallengeResourcePoint.create();
                                h.ActivityId = u.default.ActivityId, p = this._customData.PlayerInfo ? this._customData.PlayerInfo.Uid : this._customData.MonsterId, h.Uid = p, c.RpcComponent.Instance.Call(h, function(e) {
                                    0 == e.Code ? d.UIUtlity.ShowFloatingHint("championShip_data_change".ToUILocale()) : e.BattleInfo && e.BattleInfo.length > 0 && (l.AssaultOperationModel.OnBattleStart([{
                                        Items: e.BattleInfo
                                    }]), t._customData.OnStartBattleCallBack && t._customData.OnStartBattleCallBack())
                                })
                            }
                        }
                    }
                }, i([y(cc.Node)], t.prototype, "PlayerHeaderNode", void 0), i([y(cc.Label)], t.prototype, "PlayerName", void 0), i([y(cc.Label)], t.prototype, "AllianceName", void 0), i([y(cc.Node)], t.prototype, "StateNode", void 0), i([y(cc.Sprite)], t.prototype, "StateIcon", void 0), i([y(cc.Sprite)], t.prototype, "StateLabelBg", void 0), i([y(cc.Label)], t.prototype, "StateLabel", void 0), i([y(a.default)], t.prototype, "ProgressBar", void 0), i([y(cc.Label)], t.prototype, "ProgressBarValue", void 0), i([y(cc.Button)], t.prototype, "ChallengeBtn", void 0), i([y(cc.Label)], t.prototype, "ChallengeBtnLabel", void 0), i([y(cc.Node)], t.prototype, "SelfTag", void 0), i([y(cc.Label)], t.prototype, "SelfTagLabel", void 0), i([y(cc.Node)], t.prototype, "SelfAllianceTag", void 0), i([y(cc.Label)], t.prototype, "SelfAllianceTagLabel", void 0), i([y(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/HeadComponent": "HeadComponent",
        "./AssaultOperationModel": "AssaultOperationModel",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationPlotPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "18667d/mopLYpKKvvvUQHHt", "AssaultOperationPlotPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Info = null, t
                }
                return r(t, e), t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.Info.string = "assaultOperationPlot_info".ToUILocale()
                }, i([u(cc.RichText)], t.prototype, "Info", void 0), i([c], t)
            }(s.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    AssaultOperationPvpHeaderComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c713dSI3ZVO1bj3GVikdNyE", "AssaultOperationPvpHeaderComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/HeadComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeaderNode1 = null, t.HeaderNode2 = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    var r;
                    this._player1Header || ((r = cc.instantiate(e)).setParent(this.HeaderNode1), this._player1Header = r.getComponent(a.default)), t && this._player1Header.SetUI(t.HeadIcon, t.HeadFrame), this._player2Header || ((r = cc.instantiate(e)).setParent(this.HeaderNode2), this._player2Header = r.getComponent(a.default)), n ? this._player2Header.SetUI(n.HeadIcon, n.HeadFrame) : (this._player2Header.SetCustomHeadIcon(o), this._player2Header.SetHeadFrame(-1))
                }, i([c(cc.Node)], t.prototype, "HeaderNode1", void 0), i([c(cc.Node)], t.prototype, "HeaderNode2", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Components/HeadComponent": "HeadComponent"
    }],
    AssaultOperationQueuePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d5a41ozyrZEq5NMfidmuJRw", "AssaultOperationQueuePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Components/CustomToggle"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("./AssaultOperationModel"),
            g = e("./AssaultOperationPlayerInfoItem"),
            m = e("./AssaultOperationBattleItem"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Components/Components"),
            C = e("./AssaultOperationPanel"),
            v = e("../Components/AsyncLayout"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.AttackQueue = 0] = "AttackQueue", e[e.DefenderQueue = 1] = "DefenderQueue", e[e.BattleQueue = 2] = "BattleQueue"
        })(l || (l = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !1), t.PanelTitle = null, t.ResourceName = null, t.BottomTipLabel = null, t.PlayerQueueScrollView = null, t.BattleScrollView = null, t.PlayerQueueAsyncLayout = null, t.BattleAsyncLayout = null, t.Tabs = [], t.NoQueueHintLabel = null, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "Atlas", {
                get: function() {
                    return this._atlas
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "HeaderPrefab", {
                get: function() {
                    return this._playerHeaderPrefab
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ResourceItemConfig", {
                get: function() {
                    return this._curResourceConfig
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "BattleDuration", {
                get: function() {
                    return this._activityConfig.CustomPart.BattleDuration
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(f.EventKeys.EVENT_ASSAULT_OPERATION_MOVE, this.OnPlayerMoveEnd, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.OnResourceDataChange, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE, this.OnPlayerEnergyChange, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.OnModelDataRefresh, this), cc.game.on(cc.game.EVENT_SHOW, this.RefreshPanelInfo, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(f.EventKeys.EVENT_ASSAULT_OPERATION_MOVE, this.OnPlayerMoveEnd, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.OnResourceDataChange, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE, this.OnPlayerEnergyChange, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.OnModelDataRefresh, this), cc.game.off(cc.game.EVENT_SHOW, this.RefreshPanelInfo, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AssaultOperation/AssaultOperationPlayerInfoItem", cc.Prefab), n = this.LoadDynamicAsset("AssaultOperation/AssaultOperationBattleItem", cc.Prefab), o = this.LoadDynamicAsset(I.BundlePath.HeadComponent, cc.Prefab), r = this.LoadDynamicAsset("AssaultOperation/Png/AssaultOperationPanel", cc.SpriteAtlas), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._playerInfoPrefab = e[0], i._playerBattlePrefab = e[1], i._playerHeaderPrefab = e[2], i._atlas = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this);
                for (var t = 0; t < this.Tabs.length; t++) this.Tabs[t].node.name = t.toString(), this.Tabs[t].Init(("assaultOperation_queueType" + t).ToUILocale()), this.Tabs[t].node.on("toggle", this.OnTabToggleClick, this);
                this.PlayerQueueAsyncLayout.Init(this._playerInfoPrefab, this.OnRenderPlayerItem.bind(this)), this.BattleAsyncLayout.Init(this._playerBattlePrefab, this.OnRenderBattlingItem.bind(this))
            }, t.prototype.InitData = function(t) {
                var n;
                e.prototype.InitData.call(this), this._curResourceId = t[0], this._curQueueLength = 0, this._curTab = null !== (n = t[1]) && void 0 !== n ? n : y.AssaultOperationQueueType.Attack, this._activityConfig = _.DataCenter.Instance.ActivityConfigs[C.default.ActivityId], this._curResourceConfig = _.ConfigDataComponent.Instance.GetConfigById(p.AssaultOperationResourceItem_Config, this._curResourceId)
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), !t) {
                    if (this._curResourceConfig.Type == u.AssaultOperationResourceType.Headquarters) {
                        var n = y.AssaultOperationModel.GetAllianceInfo(this._curResourceId, y.AssaultOperationGetAllianceTypeBy.ResourceId),
                            o = n[0];
                        n[1], this.ResourceName.string = "[" + o + "] " + "assaultOperation_resourceName_99".ToUILocale()
                    } else this.ResourceName.string = "" + this._curResourceId.ToAssualtOperationResourceName();
                    this.Tabs[this._curTab].isChecked = !0, this.RefreshPanelInfo()
                }
            }, t.prototype.update = function(e) {
                var t;
                if (this.BattleScrollView.node.active)
                    for (var n = 0; n < this.BattleAsyncLayout.node.childrenCount; n++) null === (t = this.BattleAsyncLayout.node.children[n].getComponent(m.default)) || void 0 === t || t.OnUpdate(e)
            }, t.prototype.OnResourceDataChange = function(e) {
                e.includes(this._curResourceId) && this.RefreshPanelInfo()
            }, t.prototype.OnModelDataRefresh = function(e) {
                e ? this.Close() : this.DisPlay()
            }, t.prototype.OnPlayerEnergyChange = function() {
                this.RefreshPanelInfo()
            }, t.prototype.OnPlayerMoveEnd = function(e, t) {
                t == this._curResourceId && this.RefreshPanelInfo()
            }, t.prototype.RefreshPanelInfo = function() {
                if (this.BattleScrollView.node.active = !1, this.PlayerQueueScrollView.node.active = !1, this._curResourceInfo = y.AssaultOperationModel.Data.CurLookingResourceInfo, this._curResourceInfo) {
                    var e;
                    this.RefreshBattlingUids();
                    var t = 0;
                    switch (this.NoQueueHintLabel.node.active = !1, this._curTab) {
                        case y.AssaultOperationQueueType.Attack:
                            this.PlayerQueueScrollView.node.active = !0, e = this.PlayerQueueAsyncLayout, t = this._curResourceInfo.Attackers.length, this._curResourceInfo.Attackers.sort(this.Sort.bind(this)), t <= 0 && (this.NoQueueHintLabel.node.active = !0, this.NoQueueHintLabel.string = "assaultOperation_noAttackQueue".ToUILocale());
                            break;
                        case y.AssaultOperationQueueType.Defend:
                            this.PlayerQueueScrollView.node.active = !0, e = this.PlayerQueueAsyncLayout, t = this._curResourceInfo.Defenders.length + Object.keys(this._curResourceInfo.Monsters).length, this._curResourceInfo.Defenders.sort(this.Sort.bind(this));
                            break;
                        case y.AssaultOperationQueueType.Battling:
                            this.BattleScrollView.node.active = !0, e = this.BattleAsyncLayout, (t = this._curResourceInfo.BattleQueue.length) <= 0 && (this.NoQueueHintLabel.node.active = !0, this.NoQueueHintLabel.string = "assaultOperation_noBattleQueue".ToUILocale())
                    }
                    if (t == this._curQueueLength) e.ReRender();
                    else {
                        this._curQueueLength = t;
                        var n = Math.min(t, e.GetViewStartRowOrColumIndex());
                        e.RenderLayout(t, n)
                    }
                }
            }, t.prototype.RefreshBattlingUids = function() {
                this._battlingUids = {};
                for (var e = 0; e < this._curResourceInfo.BattleQueue.length; e++) {
                    var t = this._curResourceInfo.BattleQueue[e].Items[0],
                        n = this._curResourceInfo.BattleQueue[e].Items[1];
                    this._battlingUids[t] = !0, this._battlingUids[n] = !0
                }
            }, t.prototype.Sort = function(e, t) {
                var n = this.GetPlayerInfo(e),
                    o = n[0],
                    r = n[1],
                    i = this.GetPlayerInfo(t),
                    a = i[0],
                    s = i[1];
                return r != s ? r - s : o && a && o.ArrayParam[1] != a.ArrayParam[1] ? a.ArrayParam[1] - o.ArrayParam[1] : 0
            }, t.prototype.OnRenderPlayerItem = function(e, t) {
                var n, o, r = this;
                switch (this._curTab) {
                    case y.AssaultOperationQueueType.Attack:
                        o = this._curResourceInfo.Attackers[t];
                        break;
                    case y.AssaultOperationQueueType.Defend:
                        o = this._curResourceInfo.Defenders[t]
                }
                var i = e.getComponent(g.default),
                    a = {
                        ResourceId: this._curResourceId,
                        SelfAllianceId: y.AssaultOperationModel.GetSelfAllianceId(),
                        HeaderPrefab: this._playerHeaderPrefab,
                        MinBattleEnergyValue: this._activityConfig.CustomPart.LowestBattleEnergyValue,
                        QueueType: this._curTab,
                        OnStartBattleCallBack: function() {
                            r.Tabs[l.BattleQueue].isChecked = !0, r.OnTabToggleClick(r.Tabs[l.BattleQueue])
                        }
                    };
                if (o > 0) {
                    if (n = this.GetPlayerInfo(o), a.PlayerInfo = n[0], a.PlayerState = n[1], !a.PlayerInfo) return
                } else {
                    var s = void 0;
                    if (this._curTab == y.AssaultOperationQueueType.Defend && (s = Object.keys(this._curResourceInfo.Monsters)), !s) return void(i.node.active = !1);
                    var c = Number.parseInt(s[t - this._curResourceInfo.Defenders.length]);
                    if (null == c) return void(i.node.active = !1);
                    a.PlayerState = this.IsPlayerBattling(c) ? y.AssaultOperationPlayerState.Battling : y.AssaultOperationPlayerState.Idle, a.MonsterId = c, a.MonsterEnergyValue = this._curResourceInfo.Monsters[c];
                    var u = _.ConfigDataComponent.Instance.GetConfigById(p.AssaultOperationResourceItem_Config, this._curResourceId);
                    a.MonsterEnergyValueLimit = u.Monster[1];
                    var d = y.AssaultOperationModel.GetMonsterHeaderId(u.Type);
                    a.MonsterIcon = this._atlas.getSpriteFrame("monsterHeader_" + d)
                }
                i.Init(a)
            }, t.prototype.OnRenderBattlingItem = function(e, t) {
                var n = this._curResourceInfo.BattleQueue[t],
                    o = e.getComponent(m.default);
                if (n) {
                    var r = n.Items;
                    o.Init(this, r)
                } else o.node.active = !1
            }, t.prototype.GetPlayerInfo = function(e) {
                return [y.AssaultOperationModel.GetPlayerInfo(e), y.AssaultOperationModel.GetPlayerMoveInfo(e) ? y.AssaultOperationPlayerState.Moving : this.IsPlayerBattling(e) ? y.AssaultOperationPlayerState.Battling : y.AssaultOperationPlayerState.Idle]
            }, t.prototype.IsPlayerBattling = function(e) {
                return !!this._battlingUids[e]
            }, t.prototype.OnTabToggleClick = function(e) {
                var t = Number.parseInt(e.node.name);
                this._curTab != t && (this._curQueueLength = 0, this._curTab = t, this.PanelTitle.string = ("assaultOperation_queueType" + this._curTab).ToUILocale(), this.BottomTipLabel.string = ("assaultOperation_queueTip" + this._curTab).ToUILocale(), this.RefreshPanelInfo())
            }, i([w(cc.Label)], t.prototype, "PanelTitle", void 0), i([w(cc.Label)], t.prototype, "ResourceName", void 0), i([w(cc.RichText)], t.prototype, "BottomTipLabel", void 0), i([w(cc.ScrollView)], t.prototype, "PlayerQueueScrollView", void 0), i([w(cc.ScrollView)], t.prototype, "BattleScrollView", void 0), i([w(v.default)], t.prototype, "PlayerQueueAsyncLayout", void 0), i([w(v.default)], t.prototype, "BattleAsyncLayout", void 0), i([w(h.default)], t.prototype, "Tabs", void 0), i([w(cc.Label)], t.prototype, "NoQueueHintLabel", void 0), i([S], t)
        }(d.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./AssaultOperationBattleItem": "AssaultOperationBattleItem",
        "./AssaultOperationModel": "AssaultOperationModel",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./AssaultOperationPlayerInfoItem": "AssaultOperationPlayerInfoItem"
    }],
    AssaultOperationRankDetailComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7488dxJCahC/KusnS6wm7Ma", "AssaultOperationRankDetailComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/AsyncLayout"),
            s = e("./AssaultOperationRankListItem"),
            l = e("./AssaultOperationRankTopItem"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AssaultOperationRankTopItems = [], t.AsyncLayout = null, t.ScrollView = null, t.SelfPos = null, t.EmptyLabel = null, t._rankDatas = [], t
                }
                return r(t, e), t.prototype.PreInit = function(e, t) {
                    this._isInit || (this._isInit = !0, this._normalRankItemPrefab = e, this._allianceFlagAtlas = t, this.AsyncLayout.Init(this._normalRankItemPrefab, this.OnInitializeItem.bind(this)))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(s.default),
                        o = this._rankDatas[t + 3];
                    n.SetUI(this._type, o)
                }, t.prototype.Init = function(e, t, n) {
                    this._type = e, this._rankDatas = t, this.AsyncLayout.RenderLayout(this._rankDatas.length - 3), !this._rankDatas || this._rankDatas.length <= 0 ? (this.EmptyLabel.node.active = !0, this.EmptyLabel.string = "strengthRank_none".ToUILocale()) : this.EmptyLabel.node.active = !0, n && (this.SelfPos.active = !0, this.SetMySelfUI(n)), this.SetTop3UI()
                }, t.prototype.SetTop3UI = function() {
                    for (var e = 0; e < this.AssaultOperationRankTopItems.length; e++) e < this._rankDatas.length ? this.AssaultOperationRankTopItems[e].SetUI(this._type, this._rankDatas[e], this._allianceFlagAtlas) : this.AssaultOperationRankTopItems[e].SetUI(this._type, null, this._allianceFlagAtlas)
                }, t.prototype.SetMySelfUI = function(e) {
                    if (!this._myselfItem) {
                        var t = cc.instantiate(this._normalRankItemPrefab);
                        t.setParent(this.SelfPos), this._myselfItem = t.getComponent(s.default)
                    }
                    this._myselfItem.SetUI(this._type, e, !0)
                }, i([p(l.default)], t.prototype, "AssaultOperationRankTopItems", void 0), i([p(a.default)], t.prototype, "AsyncLayout", void 0), i([p(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([p(cc.Node)], t.prototype, "SelfPos", void 0), i([p(cc.Label)], t.prototype, "EmptyLabel", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../Components/AsyncLayout": "AsyncLayout",
        "./AssaultOperationRankListItem": "AssaultOperationRankListItem",
        "./AssaultOperationRankTopItem": "AssaultOperationRankTopItem"
    }],
    AssaultOperationRankListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f0478SZGIFMIYXO8Mj5E0NS", "AssaultOperationRankListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Components/DataCenter"),
            y = e("./HeadComponent"),
            g = e("../../Channel/ChannelManager"),
            m = e("../Panel/AssaultOperationRankPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BgNode = null, t.Rank = null, t.MySelfBgNode = null, t.SelfRank = null, t.AllianceFlag = null, t.AllianceLogo = null, t.HeadRoot = null, t.ZoneNode = null, t.ZoneValue = null, t.Name = null, t.NameOutline = null, t.BattlePowerBg = null, t.BattlePowerValue = null, t.RANK_ALLIANCE_ATLAS_PATH = "AllianceBasePanel/PNG/allianceBase", t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on("click", this.OnNodeClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off("click", this.OnNodeClick, this)
                }, t.prototype.OnNodeClick = function() {
                    var e = f.DataCenter.Instance.Uid;
                    null != this._data && !this._data.IsSelf && this._data.PlayerData.PlayerInfo.Uid && this._data.PlayerData.PlayerInfo.Uid != e && d.UIManager.Instance.ShowUIPanel(u.PanelConfig.PlayerInfoPanel.Path, this._data.PlayerData.PlayerInfo.Uid, this._data.PlayerData.Zone)
                }, t.prototype.SetUI = function(e, t, n, o, r) {
                    void 0 === n && (n = !1), this._data = t, this._rankAllianceAtlas = o, this._headItemPrefab = r, this._isMyself = n, this.SetBg(), this.SetNameColor(), e == m.AssaultOperationRankPageType.Own ? this.SetUIByType1() : e == m.AssaultOperationRankPageType.Alliance && this.SetUIByType2(), n ? !t.Rank || t.Rank <= 0 ? this.SelfRank.string = "AllZoneChampion_Start_UnRanking".ToUILocale() : this.SelfRank.string = t.Rank.toString() : this.Rank.string = t.Rank.toString()
                }, t.prototype.SetBg = function() {
                    this._isMyself ? (this.BgNode.active = !1, this.MySelfBgNode.active = !0) : (this.BgNode.active = !0, this.MySelfBgNode.active = !1)
                }, t.prototype.SetUIByType1 = function() {
                    this.HindeAllInfo(), this.Name.node.active = !0, this.BattlePowerBg.active = !1, void 0 !== this._data.PlayerData.Zone && (this.ZoneNode.active = !0, this.ZoneValue.string = "S" + this._data.PlayerData.Zone.toString()), void 0 !== this._data.PlayerData.Value && (this.BattlePowerBg.active = !0, this.BattlePowerValue.string = this._data.PlayerData.Value.toString()), this.Name.string = this._data.PlayerData.PlayerInfo.Name, this.SetHead()
                }, t.prototype.SetUIByType2 = function() {
                    this.HindeAllInfo(), this.Name.node.active = !0, this.Name.string = this._data.AllianceData.Name, this._data.AllianceData.ArrayParam && this._data.AllianceData.ArrayParam.length >= 1 && this._data.AllianceData.ArrayParam[0] > 0 && (this.ZoneNode.active = !0, this.ZoneValue.string = "S" + this._data.AllianceData.ArrayParam[0].toString()), this._data.AllianceData.ArrayParam && this._data.AllianceData.ArrayParam.length >= 2 && this._data.AllianceData.ArrayParam[1] >= 0 && (this.BattlePowerBg.active = !0, this.BattlePowerValue.string = this._data.AllianceData.ArrayParam[1].toString()), this.SetFlag()
                }, t.prototype.SetFlag = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.HeadRoot.active = !1, this.AllianceFlag.node.active = !0, null != this._rankAllianceAtlas ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(this.RANK_ALLIANCE_ATLAS_PATH, cc.SpriteAtlas)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._rankAllianceAtlas = e, this._assets.push(e), i.label = 2;
                                case 2:
                                    return t = this._data.AllianceData.Icon, (n = c.ConfigDataComponent.Instance.GetConfigById(l.AllianceIcon_Config, t)) ? (o = n.LogoID, r = n.FlagID, this.AllianceFlag.spriteFrame = this._rankAllianceAtlas.getSpriteFrame("flagBg" + r), this.AllianceLogo.spriteFrame = this._rankAllianceAtlas.getSpriteFrame("flagLogo" + o), [2]) : (this.AllianceFlag.spriteFrame = null, this.AllianceLogo.spriteFrame = null, [2])
                            }
                        })
                    })
                }, t.prototype.SetHead = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this.HeadRoot.active = !0, this.AllianceFlag.node.active = !1, null != this._headItemPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(u.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    if (e = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._headItemPrefab = e, this._assets.push(e), s.label = 2;
                                case 2:
                                    return null == this._headItem && ((t = cc.instantiate(this._headItemPrefab)).setParent(this.HeadRoot), this._headItem = t.getComponent(y.default)), this._data.IsSelf ? (r = f.DataCenter.Instance.GetIntData(h.UserDataKey.HeadIcon), i = f.DataCenter.Instance.GetIntData(h.UserDataKey.HeadFrame), a = f.DataCenter.Instance.GetIntData(h.UserDataKey.Title), this._headItem.SetUI(r, i, a), this._headItem.SetLevel(f.DataCenter.Instance.GetIntData(h.UserDataKey.PlayerLevel)), l = void 0, (l = f.DataCenter.Instance.GetStringData(h.UserDataKey.Country)) || (l = g.default.Instance.Localization_Country), l = 0 == f.DataCenter.Instance.GetIntData(h.UserDataKey.CountryShowState) ? l : "", this._headItem.SetCountry(l)) : (n = this._data.PlayerData.PlayerInfo.HeadIcon, o = this._data.PlayerData.PlayerInfo.HeadFrame, a = this._data.PlayerData.PlayerInfo.Title, this._headItem.SetUI(n, o, a), this._headItem.SetLevel(this._data.PlayerData.PlayerInfo.Level), this._headItem.SetCountry(this._data.PlayerData.PlayerInfo.Country)), [2]
                            }
                        })
                    })
                }, t.prototype.SetNameColor = function() {
                    this._data.IsSelf ? (this.Name.node.color = cc.color(255, 255, 255), this.NameOutline.enabled = !0) : (this.Name.node.color = cc.color(98, 78, 60), this.NameOutline.enabled = !1)
                }, t.prototype.HindeAllInfo = function() {
                    this.ZoneNode.active = !1, this.Name.node.active = !1, this.BattlePowerBg.active = !1
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) p.AssetsManager.Instance.UnloadAsset(this._assets[e]);
                    this._assets = []
                }, i([C(cc.Node)], t.prototype, "BgNode", void 0), i([C(cc.Label)], t.prototype, "Rank", void 0), i([C(cc.Node)], t.prototype, "MySelfBgNode", void 0), i([C(cc.Label)], t.prototype, "SelfRank", void 0), i([C(cc.Sprite)], t.prototype, "AllianceFlag", void 0), i([C(cc.Sprite)], t.prototype, "AllianceLogo", void 0), i([C(cc.Node)], t.prototype, "HeadRoot", void 0), i([C(cc.Node)], t.prototype, "ZoneNode", void 0), i([C(cc.Label)], t.prototype, "ZoneValue", void 0), i([C(cc.Label)], t.prototype, "Name", void 0), i([C(cc.LabelOutline)], t.prototype, "NameOutline", void 0), i([C(cc.Node)], t.prototype, "BattlePowerBg", void 0), i([C(cc.Label)], t.prototype, "BattlePowerValue", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Panel/AssaultOperationRankPanel": "AssaultOperationRankPanel",
        "./HeadComponent": "HeadComponent"
    }],
    AssaultOperationRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0343aaOrp5D675EErl15dVf", "AssaultOperationRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AssaultOperationRankPageType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CustomToggle"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("./AssaultOperationPanel"),
            h = e("../../Components/RpcComponent"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Components/DataCenter"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../Components/AssaultOperationRankDetailComponent");
        (function(e) {
            e[e.Own = 0] = "Own", e[e.Alliance = 1] = "Alliance"
        })(l = n.AssaultOperationRankPageType || (n.AssaultOperationRankPageType = {}));
        var I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.PanelTitle = null, t.AssaultOperationRankDetailComponentNode = null, t.PageList = null, t.CustomToggles = [], t.ReturnBtn = null, t._rankDataMap = {}, t._rankItemPrefab = null, t.ToggleKeys = ["allianceWar_personal_rank", "StrongholdWar_Battle_Rank_Title"], t.TitleKeys = ["allianceWar_personal_rank", "StrongholdWar_Battle_Rank_Title"], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AssaultOperation/Components/AssaultOperationRankListItem", cc.Prefab), n = this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o._rankItemPrefab = e[0], o._allianceFlagAtlas = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._rankDetailComponent = this.AssaultOperationRankDetailComponentNode.getComponent(m.default), this._rankDetailComponent.PreInit(this._rankItemPrefab), this.ReturnBtn.node.on("click", this.Close, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this._nowPage = 0
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetPage(), this.SetTab(this._nowPage))
                }, t.prototype.SetPage = function() {
                    for (var e = 0; e < this.CustomToggles.length; e++) this.CustomToggles[e].node.name = e.toString(), this.CustomToggles[e].node.on("click", this.OnswitchTab, this), this.CustomToggles[e].Init(this.ToggleKeys[e].ToUILocale())
                }, t.prototype.DoShowRankResult = function() {
                    var e, t = this;
                    this._rankDataMap || (this._rankDataMap = {}), this._nowPage == l.Own ? this._rankDataMap[this._nowPage] ? this._rankDetailComponent.Init(l.Own, this._rankDataMap[this._nowPage].AllRankData, this._rankDataMap[this._nowPage].MyselfRankData) : ((e = p.Req_AssaultOperation_GetPlayerRank.create()).ActivityId = d.default.ActivityId, h.RpcComponent.Instance.Call(e, function(e) {
                        t.SetPlayerRankData(e), t._rankDetailComponent.Init(l.Own, t._rankDataMap[t._nowPage].AllRankData, t._rankDataMap[t._nowPage].MyselfRankData)
                    })) : this._rankDataMap[this._nowPage] ? this._rankDetailComponent.Init(l.Alliance, this._rankDataMap[this._nowPage].AllRankData, this._rankDataMap[this._nowPage].MyselfRankData) : ((e = p.Req_AssaultOperation_GetRank.create()).ActivityId = d.default.ActivityId, e.Type = f.AssaultOperationRankType.TotalScore, h.RpcComponent.Instance.Call(e, function(e) {
                        t.SetAllianceRankData(e), t._rankDetailComponent.Init(l.Alliance, t._rankDataMap[t._nowPage].AllRankData, t._rankDataMap[t._nowPage].MyselfRankData)
                    }))
                }, t.prototype.SetPlayerRankData = function(e) {
                    for (var t, n = [], o = 0; o < e.Players.length; o++) e.Players[o].PlayerInfo.Zone = e.Players[o].Zone, n.push({
                        Rank: o + 1,
                        PlayerData: e.Players[o]
                    }), e.Players[o].PlayerInfo.Uid == y.DataCenter.Instance.Uid && (t = {
                        Rank: o + 1,
                        IsSelf: !0,
                        PlayerData: e.Players[o]
                    });
                    t || (t = {
                        Rank: 0,
                        IsSelf: !0,
                        PlayerData: {
                            Value: 0,
                            Zone: y.DataCenter.Zone,
                            PlayerInfo: {
                                HeadIcon: y.DataCenter.Instance.GetIntData(f.UserDataKey.HeadIcon),
                                HeadFrame: y.DataCenter.Instance.GetIntData(f.UserDataKey.HeadFrame),
                                Name: y.DataCenter.Instance.GetStringData(f.UserDataKey.RoleName),
                                Country: y.DataCenter.Instance.GetStringData(f.UserDataKey.Country),
                                Level: y.DataCenter.Instance.GetIntData(f.UserDataKey.PlayerLevel),
                                Uid: y.DataCenter.Instance.Uid
                            }
                        }
                    }), this._rankDataMap[this._nowPage] = {
                        AllRankData: n,
                        MyselfRankData: t
                    }
                }, t.prototype.SetAllianceRankData = function(e) {
                    for (var t, n, o = [], r = y.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.SlgSignUp), i = 0; i < e.Alliances.length; i++) o.push({
                        Rank: i + 1,
                        AllianceData: e.Alliances[i]
                    }), e.Alliances[i].Id == r && (n = !0, t = {
                        Rank: i + 1,
                        IsSelf: !0,
                        AllianceData: e.Alliances[i]
                    });
                    n || (t = {
                        Rank: 0,
                        IsSelf: !0,
                        AllianceData: {
                            Name: "",
                            ArrayParam: [0, -1]
                        }
                    }), this._rankDataMap[this._nowPage] = {
                        AllRankData: o,
                        MyselfRankData: t
                    }
                }, t.prototype.OnswitchTab = function(e) {
                    var t = parseInt(e.name);
                    t != this._nowPage && this.SetTab(t)
                }, t.prototype.SetTab = function(e) {
                    this._nowPage = e, this.PanelTitle.string = this.TitleKeys[this._nowPage].ToUILocale(), this.DoShowRankResult()
                }, i([C(cc.Label)], t.prototype, "PanelTitle", void 0), i([C(cc.Node)], t.prototype, "AssaultOperationRankDetailComponentNode", void 0), i([C(cc.Node)], t.prototype, "PageList", void 0), i([C(u.default)], t.prototype, "CustomToggles", void 0), i([C(cc.Button)], t.prototype, "ReturnBtn", void 0), i([_], t)
            }(g.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/AssaultOperationRankDetailComponent": "AssaultOperationRankDetailComponent",
        "../Components/CustomToggle": "CustomToggle",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationRankRewardFamilyItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0c828uKiR1CCb0rn3BC0D+h", "AssaultOperationRankRewardFamilyItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Panel/LayoutRewards"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.LeaderTitle = null, t.ElderTitle = null, t.OwnTitle = null, t.LeaderLayoutRewards = null, t.ElderLayoutRewards = null, t.OwnLayoutRewards = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._isInit || (this._isInit = !0, this.LeaderTitle.string = "assaultOperation_ranReward_Leader".ToUILocale(), this.ElderTitle.string = "assaultOperation_ranReward_ViceLeader".ToUILocale(), this.OwnTitle.string = "assaultOperation_ranReward_Member".ToUILocale()), e.Rank[0] == e.Rank[1] ? this.Title.string = "SeniorArena_MyRank".ToUILocale().Fmt(e.Rank[0]) : this.Title.string = "SeniorArena_MyRank".ToUILocale().Fmt(e.Rank[0] + "-" + e.Rank[1]), this.LeaderLayoutRewards.InitWithIntArray(e.LeaderRewards, t), this.ElderLayoutRewards.InitWithIntArray(e.ViceLeaderRewards, t), this.OwnLayoutRewards.InitWithIntArray(e.CommonRewards, t)
                }, i([c(cc.Label)], t.prototype, "Title", void 0), i([c(cc.Label)], t.prototype, "LeaderTitle", void 0), i([c(cc.Label)], t.prototype, "ElderTitle", void 0), i([c(cc.Label)], t.prototype, "OwnTitle", void 0), i([c(a.default)], t.prototype, "LeaderLayoutRewards", void 0), i([c(a.default)], t.prototype, "ElderLayoutRewards", void 0), i([c(a.default)], t.prototype, "OwnLayoutRewards", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Panel/LayoutRewards": "LayoutRewards"
    }],
    AssaultOperationRankRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4e5838WLNlF070ObtX97F1c", "AssaultOperationRankRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Panel/LayoutRewards"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../ShareConsts/EnumType"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.RankTitle = null, t.Epithet = null, t.LayoutReward = null, t.LayoutRewards = null, t.Widgets = [], t.TitlePatterns = [], t._assets = [], t
                }
                return r(t, e), t.prototype.SetBg = function(e, t) {
                    this.Bg.spriteFrame = e;
                    for (var n = 0; n < this.TitlePatterns.length; n++) this.TitlePatterns[n].spriteFrame = t;
                    return this
                }, t.prototype.SetRank = function(e, t) {
                    return e <= 0 ? this : (this.RankTitle.string = t && e != t ? "SeniorArena_MyRank".ToUILocale().Fmt(e + "-" + t) : "SeniorArena_MyRank".ToUILocale().Fmt(e), this)
                }, t.prototype.SetReward = function(e, t) {
                    return this.LayoutRewards.InitWithIntArray(e, t), this.SetEpithet(e), this
                }, t.prototype.SetEpithet = function(e) {
                    for (var t, n = 0; n < e.length; n++) {
                        var o = e[n].Items[0],
                            r = u.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, o);
                        if (r && r.Type == d.ItemType.Consume) {
                            var i = u.ConfigDataComponent.Instance.GetConfigById(p.ItemConsume_Config, o);
                            if (i && i.SubType == d.ConsumeItemType.Title) {
                                t = o;
                                break
                            }
                        }
                    }
                    t ? (this.Epithet.node.active = !0, this.LoadTitle(t)) : this.Epithet.node.active = !1
                }, t.prototype.LoadTitle = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, c.AssetsManager.Instance.LoadAsset(u.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + e), cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._assets.push(t), this.Epithet.spriteFrame = t, [2]) : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.RefreshHeight = function() {
                    var e = 74;
                    this.Epithet.node.active && (e += 132), this.LayoutReward.updateLayout(), e += this.LayoutReward.node.scaleX * this.LayoutReward.node.height, this.node.height = e;
                    for (var t = 0; t < this.Widgets.length; t++) this.Widgets[t].updateAlignment()
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) c.AssetsManager.Instance.UnloadAsset(this._assets[e]);
                    this._assets = []
                }, i([y(cc.Sprite)], t.prototype, "Bg", void 0), i([y(cc.Label)], t.prototype, "RankTitle", void 0), i([y(cc.Sprite)], t.prototype, "Epithet", void 0), i([y(cc.Layout)], t.prototype, "LayoutReward", void 0), i([y(l.default)], t.prototype, "LayoutRewards", void 0), i([y(cc.Widget)], t.prototype, "Widgets", void 0), i([y(cc.Sprite)], t.prototype, "TitlePatterns", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../Panel/LayoutRewards": "LayoutRewards"
    }],
    AssaultOperationRankRewardsFamilyPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "be06db3sF9L7KaLJ2bNAe65", "AssaultOperationRankRewardsFamilyPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./AssaultOperationPanel"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/AsyncLayout"),
            h = e("../Components/AssaultOperationRankRewardFamilyItem"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RewardNode = null, t.AsyncLayout = null, t._familyRnakRewards = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return e._itemPrefab = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AsyncLayout.Init(this.RewardNode, this.OnInitializeItem.bind(this))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    e.getComponent(h.default).Init(this._familyRnakRewards[t], this._itemPrefab)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = c.default.ActivityId, this._activiConfig = u.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this._familyRnakRewards = this._activiConfig.AllianceRankRewards, this.AsyncLayout.RenderLayout(this._familyRnakRewards.length))
                }, i([g(cc.Node)], t.prototype, "RewardNode", void 0), i([g(d.default)], t.prototype, "AsyncLayout", void 0), i([y], t)
            }(l.BaseUIPage);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/AssaultOperationRankRewardFamilyItem": "AssaultOperationRankRewardFamilyItem",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationRankRewardsOwnPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "71dc5eaLUJIjoyWYcOc7tWf", "AssaultOperationRankRewardsOwnPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./AssaultOperationPanel"),
            u = e("../../Components/Components"),
            p = e("../Components/AssaultOperationRankRewardItem"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Hint = null, t.RankRewardList = null, t._ownRnakRewards = [], t._rankItemBgs = [], t._rankRewardItems = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._rankRewardPrefab ? [3, 2] : [4, Promise.all([this.LoadDynamicAsset("AssaultOperation/Components/AssaultOperationRankRewardItem", cc.Prefab), this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("CommonPng/002_001_mingci", cc.SpriteFrame), this.LoadDynamicAsset("CommonPng/002_002_mingci", cc.SpriteFrame), this.LoadDynamicAsset("CommonPng/002_003_mingci", cc.SpriteFrame), this.LoadDynamicAsset("CommonPng/002_004_mingci", cc.SpriteFrame)]).then(function(t) {
                                        e._rankRewardPrefab = t[0], e._itemPrefab = t[1], e._rankItemBgs.push(t[2]), e._rankItemBgs.push(t[3]), e._rankItemBgs.push(t[4]), e._rankItemBgs.push(t[5])
                                    })];
                                case 1:
                                    t.sent(), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = c.default.ActivityId, this._activiConfig = u.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this._ownRnakRewards = this._activiConfig.PlayerRank, this.SetRankRewardItems())
                }, t.prototype.SetRankRewardItems = function() {
                    for (var e = 0; e < this._ownRnakRewards.length; e++) {
                        var t = this._rankRewardItems[e];
                        if (!t) {
                            var n = cc.instantiate(this._rankRewardPrefab);
                            n.setParent(this.RankRewardList.node), t = n.getComponent(p.default), this._rankRewardItems.push(t)
                        }
                        t.node.active = !0;
                        var o = void 0,
                            r = void 0;
                        this._ownRnakRewards[e].Rank[0] <= 3 ? (o = this._rankItemBgs[this._ownRnakRewards[e].Rank[0] - 1], r = h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("titlePattern_" + this._ownRnakRewards[e].Rank[0])) : (o = this._rankItemBgs[3], r = h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("titlePattern_4")), t.SetBg(o, r).SetRank(this._ownRnakRewards[e].Rank[0], this._ownRnakRewards[e].Rank[1]).SetReward(this._ownRnakRewards[e].Rewards, this._itemPrefab).RefreshHeight()
                    }
                }, i([g(cc.Label)], t.prototype, "Hint", void 0), i([g(cc.Layout)], t.prototype, "RankRewardList", void 0), i([y], t)
            }(l.BaseUIPage);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AssaultOperationRankRewardItem": "AssaultOperationRankRewardItem",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationRankRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ee089RWb75FuZi30bWnE2q6", "AssaultOperationRankRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomToggle"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./AssaultOperationPanel"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../RedDot/RedDotDataHandler"),
            _ = e("../../../Consts/Consts"),
            C = e("../Auxiliary/UIUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.NotTime = 0] = "NotTime", e[e.NotJoin = 1] = "NotJoin", e[e.NotRank = 2] = "NotRank", e[e.HasGot = 3] = "HasGot", e[e.CanGet = 4] = "CanGet"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new h.UIPanelType(h.UINodeType.Fixed, !0), t.Title = null, t.PageBtnToggles = [], t.GetBtn = null, t.GetBtnLabel = null, t.NoGetBtn = null, t.NoGetBtnLabel = null, t.RankLabel = null, t._myRank = [], t._progress = [], t.MatchSchedulePagePath = ["AssaultOperation/AssaultOperationRankRewardsOwnPage", "AssaultOperation/AssaultOperationRankRewardsFamilyPage"], t.ToggleLangKeys = ["assaultOperation_rankReward_toggle0", "PlayerSetting_alliance"], t.TitleKeys = ["campSupport_reward_personal", "assaultOperation_rankReward_title1"], t.GetProgressKeys = ["assaultOperation_rankReward_ownMedal", "assaultOperation_rankReward_allianceMedal"], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, Promise.all([this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab)]).then(function(t) {
                                    e._itemPrefab = t[0]
                                })];
                            case 1:
                                return t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this);
                for (var t = 0; t < this.PageBtnToggles.length; t++) {
                    var n = this.PageBtnToggles[t];
                    n.Init(this.ToggleLangKeys[t].ToUILocale()), n.node.on("toggle", this.OnSwitchTab, this)
                }
                this.GetBtn.node.on("click", this.OnGet, this), this.GetBtnLabel.string = "GiftCode_receive".ToUILocale(), this.NoGetBtn.node.on("click", this.OnGrayGet, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._myRank = [-1, -1], this._progress = [0, 0], this._activityId = g.default.ActivityId, this._activityConfig = p.DataCenter.Instance.ActivityConfigs[this._activityId]
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), !t) {
                    this._nowPage = 0;
                    var n = p.DataCenter.Instance.GetSpecialRedDot(_.SpecialRedDotType.SlgSignUp);
                    this._isJoinActivity = !(n <= 0), this.PageBtnToggles[this._nowPage].isChecked = !0, this.BindRedDot(), 1 == this._ownState ? this._nowPage = 0 : 1 == this._familyState ? this._nowPage = 1 : this._nowPage = 0, this.PageBtnToggles[this._nowPage].isChecked = !0, this.SetTab(this._nowPage)
                }
            }, t.prototype.BindRedDot = function() {
                this._ownState = I.RedDotDataHandler.Instance.RefreshAssaultOperationOwnRankRewardNodeSate({
                    Value1: g.default.ActivityId
                }), this._familyState = I.RedDotDataHandler.Instance.RefreshAssaultOperationFamilyRankRewardNodeSate({
                    Value1: g.default.ActivityId
                }), m.RedDotManager.Instance.BindInstance(this.PageBtnToggles[0].node, m.RedDotManager.Instance.InstanceRedDot.AssaultOperationOwnRankRewardNode, {
                    Value1: g.default.ActivityId
                }), m.RedDotManager.Instance.BindInstance(this.PageBtnToggles[1].node, m.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyRankRewardNode, {
                    Value1: g.default.ActivityId
                })
            }, t.prototype.SetGetNode = function(e) {
                var t, n = this;
                this.SetMyRank(), 0 == e ? -1 == this._myRank[e] ? ((t = u.Req_AssaultOperation_GetPlayerRank.create()).ActivityId = this._activityId, p.RpcComponent.Instance.Call(t, function(t) {
                    n._myRank[e] = t.MyRank, n.SetGetNodeUI(), m.RedDotManager.Instance.RefreshInstanceRedDotNode(m.RedDotManager.Instance.InstanceRedDot.AssaultOperationOwnRankRewardNode, {
                        Value1: g.default.ActivityId
                    })
                })) : this.SetGetNodeUI() : -1 == this._myRank[e] ? ((t = u.Req_AssaultOperation_GetRank.create()).ActivityId = this._activityId, t.Type = _.AssaultOperationRankType.TotalScore, p.RpcComponent.Instance.Call(t, function(t) {
                    for (var o = 0, r = 0; r < t.Alliances.length; r++)
                        if (t.Alliances[r].Id == p.DataCenter.Instance.GetSpecialRedDot(_.SpecialRedDotType.SlgSignUp)) {
                            o = r + 1, n._progress[1] = t.Alliances[r].ArrayParam[1];
                            break
                        } n._myRank[e] = o, n.SetGetNodeUI()
                }), m.RedDotManager.Instance.RefreshInstanceRedDotNode(m.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyRankRewardNode, {
                    Value1: g.default.ActivityId
                })) : this.SetGetNodeUI()
            }, t.prototype.SetMyRank = function() {
                var e = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, g.default.ActivityId);
                return p.DataCenter.Instance.GetSpecialRedDot(_.SpecialRedDotType.SlgSignUp) ? e && e.Int2DArray && e.Int2DArray.length >= 5 && e.Int2DArray[4].Items && e.Int2DArray[4].Items.length >= 3 ? (e.Int2DArray[4].Items[1] > 0 && (this._myRank[0] = e.Int2DArray[4].Items[1]), void(e.Int2DArray[4].Items[2] > 0 && (this._myRank[1] = e.Int2DArray[4].Items[2]))) : void 0 : (this._myRank[0] = 0, void(this._myRank[1] = 0))
            }, t.prototype.SetGetNodeUI = function() {
                var e;
                if (this.SetBtnState(), 0 == this._nowPage ? 0 != this._activityConfig.PlayerRank[this._activityConfig.PlayerRank.length - 1].Rank[1] && this._myRank[this._nowPage] > this._activityConfig.PlayerRank[this._activityConfig.PlayerRank.length - 1].Rank[1] && (e = !0) : 0 != this._activityConfig.AllianceRankRewards[this._activityConfig.AllianceRankRewards.length - 1].Rank[1] && this._myRank[this._nowPage] > this._activityConfig.AllianceRankRewards[this._activityConfig.AllianceRankRewards.length - 1].Rank[1] && (e = !0), e || this._myRank[this._nowPage] <= 0) {
                    var t = p.DataCenter.Instance.GetSpecialRedDot(_.SpecialRedDotType.SlgSignUp);
                    this.RankLabel.string = !t || t <= 0 ? "assaultOperation_rankReward_rankTitle2".ToUILocale() : "AllZoneChampion_Start_UnRanking".ToUILocale()
                } else this.RankLabel.string = ("assaultOperation_rankReward_rankTitle" + this._nowPage).ToUILocale().Fmt(this._myRank[this._nowPage])
            }, t.prototype.OnSwitchTab = function(e) {
                var t = parseInt(e.node.name);
                this._nowPage !== t && this.SetTab(t)
            }, t.prototype.SetTab = function(e) {
                this._nowPage = e, this.Title.string = this.TitleKeys[this._nowPage].ToUILocale(), this.SetGetNode(this._nowPage), this.ShowPage(this.MatchSchedulePagePath[this._nowPage])
            }, t.prototype.OnGet = function() {
                var e, t = this;
                this._btnState == l.CanGet && (0 == this._nowPage ? ((e = u.Req_AssaultOperation_GetPlayerRankRewards.create()).ActivityId = this._activityId, p.RpcComponent.Instance.Call(e, function(e) {
                    f.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), t.SetBtnState(), m.RedDotManager.Instance.RefreshInstanceRedDotNode(m.RedDotManager.Instance.InstanceRedDot.AssaultOperationOwnRankRewardNode, {
                        Value1: g.default.ActivityId
                    }), m.RedDotManager.Instance.RefreshInstanceRedDotNode(m.RedDotManager.Instance.InstanceRedDot.AssaultOperationRankRewardNode, {
                        Value1: g.default.ActivityId
                    })
                })) : ((e = u.Req_AssaultOperation_GetAllianceRankRewards.create()).ActivityId = this._activityId, p.RpcComponent.Instance.Call(e, function(e) {
                    f.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), t.SetBtnState(), m.RedDotManager.Instance.RefreshInstanceRedDotNode(m.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyRankRewardNode, {
                        Value1: g.default.ActivityId
                    }), m.RedDotManager.Instance.RefreshInstanceRedDotNode(m.RedDotManager.Instance.InstanceRedDot.AssaultOperationRankRewardNode, {
                        Value1: g.default.ActivityId
                    })
                })))
            }, t.prototype.OnGrayGet = function() {
                switch (this._btnState) {
                    case l.NotTime:
                        C.UIUtlity.ShowFloatingHint("not_receive_time".ToUILocale());
                        break;
                    case l.NotJoin:
                        C.UIUtlity.ShowFloatingHint("assaultOperation_rankReward_rankTitle2".ToUILocale());
                        break;
                    case l.NotRank:
                        C.UIUtlity.ShowFloatingHint("AllZoneChampion_Start_UnRanking".ToUILocale());
                        break;
                    case l.HasGot:
                        C.UIUtlity.ShowFloatingHint("heroIntrodice_has_receive".ToUILocale())
                }
            }, t.prototype.SetBtnState = function() {
                if (this.GetBtn.node.active = !1, this.NoGetBtn.node.active = !1, p.RpcComponent.Instance.ServerTime < g.default.ActivityEndSettlementTime) return this.NoGetBtn.node.active = !0, this._btnState = l.NotTime, void(this.NoGetBtnLabel.string = "GiftCode_receive".ToUILocale());
                if (!this._isJoinActivity) return this.NoGetBtn.node.active = !0, this._btnState = l.NotJoin, void(this.NoGetBtnLabel.string = "GiftCode_receive".ToUILocale());
                var e;
                if (0 == this._nowPage ? 0 != this._activityConfig.PlayerRank[this._activityConfig.PlayerRank.length - 1].Rank[1] && this._myRank[this._nowPage] > this._activityConfig.PlayerRank[this._activityConfig.PlayerRank.length - 1].Rank[1] && (e = !0) : 0 != this._activityConfig.AllianceRankRewards[this._activityConfig.AllianceRankRewards.length - 1].Rank[1] && this._myRank[this._nowPage] > this._activityConfig.AllianceRankRewards[this._activityConfig.AllianceRankRewards.length - 1].Rank[1] && (e = !0), e || this._myRank[this._nowPage] <= 0) return this.NoGetBtn.node.active = !0, this._btnState = l.NotRank, void(this.NoGetBtnLabel.string = "GiftCode_receive".ToUILocale());
                var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, g.default.ActivityId);
                return !t || !t.Int2DArray || t.Int2DArray.length < 4 || !t.Int2DArray[3].Items ? (this.NoGetBtn.node.active = !0, this._btnState = l.HasGot, void(this.NoGetBtnLabel.string = "already_receive".ToUILocale())) : 0 != t.Int2DArray[3].Items[this._nowPage] ? (this.NoGetBtn.node.active = !0, this._btnState = l.HasGot, void(this.NoGetBtnLabel.string = "already_receive".ToUILocale())) : (this.GetBtn.node.active = !0, void(this._btnState = l.CanGet))
            }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(d.default)], t.prototype, "PageBtnToggles", void 0), i([S(cc.Button)], t.prototype, "GetBtn", void 0), i([S(cc.Label)], t.prototype, "GetBtnLabel", void 0), i([S(cc.Button)], t.prototype, "NoGetBtn", void 0), i([S(cc.Label)], t.prototype, "NoGetBtnLabel", void 0), i([S(cc.RichText)], t.prototype, "RankLabel", void 0), i([b], t)
        }(c.BaseUIFrame);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationRankTopItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4e7a4qiYBlKhrPrJ9jOBy4k", "AssaultOperationRankTopItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/DataCenter"),
            c = e("../Panel/AssaultOperationRankPanel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../../ShareConsts/BattleConsts"),
            g = e("./_MultilangSprite"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AllianceFlagBg = null, t.AllianceFlagLogo = null, t.AvatarContainer = null, t.Name = null, t.ZoneNode = null, t.ZoneLabel = null, t.BattlePowerNode = null, t.BattlePowerLabel = null, t.PlayerTitle = null, t.RANK_ALLIANCE_ATLAS_PATH = "AllianceBasePanel/PNG/allianceBase", t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on("click", this.OnNodeClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off("click", this.OnNodeClick, this)
                }, t.prototype.OnNodeClick = function() {
                    var e = l.DataCenter.Instance.Uid;
                    null != this._data && !this._data.IsSelf && this._data.PlayerData.PlayerInfo.Uid && this._data.PlayerData.PlayerInfo.Uid != e && u.UIManager.Instance.ShowUIPanel(p.PanelConfig.PlayerInfoPanel.Path, this._data.PlayerData.PlayerInfo.Uid, this._data.PlayerData.Zone)
                }, t.prototype.SetUI = function(e, t, n) {
                    this._data = t, this._rankAllianceAtlas = n, e == c.AssaultOperationRankPageType.Own ? this.SetUIByType1() : e == c.AssaultOperationRankPageType.Alliance && this.SetUIByType2()
                }, t.prototype.SetUIByType1 = function() {
                    this.HindeAllInfo(), this._data ? (this.Name.node.active = !0, this.AvatarContainer.active = !0, void 0 !== this._data.PlayerData.Zone ? (this.ZoneNode.active = !0, this.ZoneLabel.string = "S" + this._data.PlayerData.Zone.toString()) : this.ZoneNode.active = !1, void 0 !== this._data.PlayerData.Value ? (this.BattlePowerNode.active = !0, this.BattlePowerLabel.string = this._data.PlayerData.Value.toString()) : this.ZoneNode.active = !1, this.Name.string = this._data.PlayerData.PlayerInfo.Name, this.SetAvatar()) : (this.Name.node.active = !0, this.Name.string = "climbTower_rankList_no_player".ToUILocale())
                }, t.prototype.SetAvatar = function() {
                    var e;
                    this.AvatarContainer.children.length > 0 && this.AvatarContainer.removeAllChildren(), this.AvatarContainer.active = !0, e = this._data.IsSelf ? l.DataCenter.Instance.GetIntData(f.UserDataKey.HeadIcon) : this._data.PlayerData.PlayerInfo.HeadIcon;
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, e);
                    t || (t = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e));
                    var n = "Hero_" + t.Model + "/HeroAvatar";
                    this.LoadAvatar(n)
                }, t.prototype.LoadAvatar = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, u.AssetsManager.Instance.LoadAsset(e, cc.Prefab)];
                                case 1:
                                    return t = o.sent(), this.isValid ? (this._assets.push(t), (n = cc.instantiate(t)).setParent(this.AvatarContainer), n.getComponent(sp.Skeleton).setAnimation(0, y.SkillAnimationType.Standby, !0), [2]) : (u.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetUIByType2 = function() {
                    this.HindeAllInfo(), this._data ? (this.Name.node.active = !0, this.Name.string = this._data.AllianceData.Name, this._data.AllianceData.ArrayParam && this._data.AllianceData.ArrayParam.length >= 1 && this._data.AllianceData.ArrayParam[0] > 0 && (this.ZoneNode.active = !0, this.ZoneLabel.string = "S" + this._data.AllianceData.ArrayParam[0].toString()), this._data.AllianceData.ArrayParam && this._data.AllianceData.ArrayParam.length >= 2 && this._data.AllianceData.ArrayParam[1] >= 0 && (this.BattlePowerNode.active = !0, this.BattlePowerLabel.string = this._data.AllianceData.ArrayParam[1].toString()), this.SetFlag()) : (this.Name.node.active = !0, this.Name.string = "climbTower_rankList_no_player".ToUILocale())
                }, t.prototype.SetFlag = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != this._rankAllianceAtlas ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset(this.RANK_ALLIANCE_ATLAS_PATH, cc.SpriteAtlas)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._rankAllianceAtlas = e, this._assets.push(e), i.label = 2;
                                case 2:
                                    return this.AllianceFlagBg.node.active = !0, t = this._data.AllianceData.Icon, n = h.ConfigDataComponent.Instance.GetConfigById(d.AllianceIcon_Config, t), o = n.LogoID, r = n.FlagID, this.AllianceFlagBg.spriteFrame = this._rankAllianceAtlas.getSpriteFrame("flagBg" + r), this.AllianceFlagLogo.spriteFrame = this._rankAllianceAtlas.getSpriteFrame("flagLogo" + o), [2]
                            }
                        })
                    })
                }, t.prototype.HindeAllInfo = function() {
                    this.AvatarContainer.active = !1, this.AllianceFlagBg.node.active = !1, this.ZoneNode.active = !1, this.Name.node.active = !1, this.BattlePowerNode.active = !1, this.PlayerTitle.node.active = !1
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) u.AssetsManager.Instance.UnloadAsset(this._assets[e]);
                    this._assets = []
                }, i([_(cc.Sprite)], t.prototype, "AllianceFlagBg", void 0), i([_(cc.Sprite)], t.prototype, "AllianceFlagLogo", void 0), i([_(cc.Node)], t.prototype, "AvatarContainer", void 0), i([_(cc.Label)], t.prototype, "Name", void 0), i([_(cc.Node)], t.prototype, "ZoneNode", void 0), i([_(cc.Label)], t.prototype, "ZoneLabel", void 0), i([_(cc.Node)], t.prototype, "BattlePowerNode", void 0), i([_(cc.Label)], t.prototype, "BattlePowerLabel", void 0), i([_(g.default)], t.prototype, "PlayerTitle", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Panel/AssaultOperationRankPanel": "AssaultOperationRankPanel",
        "./_MultilangSprite": "_MultilangSprite"
    }],
    AssaultOperationRankingGuessItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "42775cxxjpN/JQGdFAv0R7t", "AssaultOperationRankingGuessItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FlagBg = null, t.FlagIcon = null, t.Name = null, t.SupportCount = null, t.Toggle = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = !1), this._isInit || (this._isInit = !0, this._basePanel = e, this.Toggle.node.on("click", e.OnToggle.bind(e, this.Toggle))), this.Toggle.name = this.node.name, this.Name.string = e.RankAllianceInfos[t].Name;
                    var o = e.RankAllianceInfos[t].Id;
                    this.SupportCount.string = "" + e.IdToAllianceInfo[o].ArrayParam[1], n ? this.Toggle.isChecked = !1 : -1 != e.SelectResults.indexOf(o) ? this.Toggle.isChecked = !0 : this.Toggle.isChecked = !1;
                    var r = s.ConfigDataComponent.Instance.GetConfigById(a.AllianceIcon_Config, e.RankAllianceInfos[t].Icon),
                        i = r.LogoID,
                        l = r.FlagID;
                    this.FlagBg.spriteFrame = this._basePanel.AllianceAtlas.getSpriteFrame("flagBg" + l), this.FlagIcon.spriteFrame = this._basePanel.AllianceAtlas.getSpriteFrame("flagLogo" + i)
                }, i([u(cc.Sprite)], t.prototype, "FlagBg", void 0), i([u(cc.Sprite)], t.prototype, "FlagIcon", void 0), i([u(cc.Label)], t.prototype, "Name", void 0), i([u(cc.Label)], t.prototype, "SupportCount", void 0), i([u(cc.Toggle)], t.prototype, "Toggle", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components"
    }],
    AssaultOperationRankingGuessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f414aylj69OtI3776OYENIw", "AssaultOperationRankingGuessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = e("../../Components/RpcComponent"),
            f = e("../../RedDot/RedDotManager"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/AssaultOperationRankingGuessTopItem"),
            m = e("../Components/AsyncLayout"),
            I = e("./AssaultOperationPanel"),
            _ = e("./AssaultOperationRankingGuessItem"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.DeadLine = null, t.SelectNode = null, t.RewardBtn = null, t.SaveBtn = null, t.SaveBtnLabel = null, t.CanNotSaveBtn = null, t.CanNotSaveBtnLabel = null, t.AsyncLayout = null, t.RedDot = null, t.BlockIntput = null, t.GuessTopItems = [], t._selectResults = [], t._selectIndex = 0, t._rankAllianceInfos = [], t._alliancesExtraInfos = {}, t._idToAllianceInfo = {}, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "SelectResults", {
                    get: function() {
                        return this._selectResults
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "RankAllianceInfos", {
                    get: function() {
                        return this._rankAllianceInfos
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "AlliancesExtraInfos", {
                    get: function() {
                        return this._alliancesExtraInfos
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "IdToAllianceInfo", {
                    get: function() {
                        return this._idToAllianceInfo
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "AllianceAtlas", {
                    get: function() {
                        return this._allianceAtlas
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas)];
                                case 1:
                                    return t._allianceAtlas = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "AllZoneChampionShip_ToggleGuess".ToUILocale(), this.SaveBtn.node.on("click", this.OnSave, this), this.RewardBtn.node.on("click", this.OnReward, this), this.AsyncLayout.Init(this.SelectNode, this.OnInitializeItem.bind(this)), this.SaveBtnLabel.string = "chatting_settingsSave".ToUILocale(), this.CanNotSaveBtnLabel.string = "assault_saved".ToUILocale()
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(_.default);
                    n.node.name = t.toString(), n.Init(this, t, this._guessSave)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._allanceRankInfo = t[0], this._activityId = I.default.ActivityId, this._activityConfig = d.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetDeadLine(), this.SetFamilyList())
                }, t.prototype.SetDeadLine = function() {
                    this.RefreshDeadLine(), this.unschedule(this.RefreshDeadLine), this.schedule(this.RefreshDeadLine, 1)
                }, t.prototype.RefreshDeadLine = function() {
                    var e = I.default.ActivityEndSettlementTime - h.RpcComponent.Instance.ServerTime;
                    if (e <= 0) this.DeadLine.string = "<outline color=#202434 width=3><color=#FF403E>" + "assault_guess_end".ToUILocale() + "</color></outline>";
                    else {
                        var t = "<color=#FFFFFF>" + u.default.ActivityTimeLeftFormat(e) + "</color>";
                        this.DeadLine.string = "<outline color=#202434 width=3><color=#FFFFFF>" + "rankingGuess_endtime".ToUILocale().Fmt(t) + "</color></outline>"
                    }
                }, t.prototype.SetFamilyList = function() {
                    this._rankAllianceInfos = this._allanceRankInfo.Alliances, this._rankAllianceInfos.sort(function(e, t) {
                        return e.ArrayParam[1] == t.ArrayParam[1] ? t.ArrayParam[0] - e.ArrayParam[0] : t.ArrayParam[1] - e.ArrayParam[1]
                    });
                    for (var e = 0; e < this._rankAllianceInfos.length; e++) this._idToAllianceInfo[this._rankAllianceInfos[e].Id] = this._rankAllianceInfos[e];
                    this.RefreshUI(), this.AsyncLayout.RenderLayout(this._rankAllianceInfos.length)
                }, t.prototype.RefreshUI = function() {
                    if (this._model = d.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId), this._model && 0 != this._model.IntArray[0]) {
                        for (this.CanNotSaveBtn.node.active = !0, this.SaveBtn.node.active = !1, this._guessSave = !0, this._selectNumber = 3, this._selectIndex = 0, e = 0; e < this.GuessTopItems.length; e++) this.GuessTopItems[e].Init(this._allianceAtlas, this._idToAllianceInfo[this._model.IntArray[e]]);
                        this._isCanSave = !1, this.RedDot.active = !1
                    } else {
                        this._guessSave = !1;
                        for (var e = 0; e < this.GuessTopItems.length; e++) this.GuessTopItems[e].Init(this._allianceAtlas);
                        this._selectNumber = 0, this._selectIndex = 0, this._selectResults = [-1, -1, -1], this._isCanSave = !0, this.RedDot.active = !0, this.CanNotSaveBtn.node.active = !1, this.SaveBtn.node.active = !0
                    }
                    this.BlockIntput.active = !this._isCanSave
                }, t.prototype.OnToggle = function(e) {
                    var t = parseInt(e.name),
                        n = this._rankAllianceInfos[t].Id,
                        o = this._selectResults.indexOf(n);
                    if (this._selectNumber >= 3 && -1 == o) e.isChecked = !1;
                    else {
                        -1 == o ? (this._selectNumber++, this._selectResults[this._selectIndex] = n, this.GuessTopItems[this._selectIndex].Init(this._allianceAtlas, this._idToAllianceInfo[n])) : (this._selectNumber--, this._selectResults[o] = -1, this.GuessTopItems[o].SetFlag());
                        var r = this._selectResults.indexOf(-1);
                        this._selectIndex = -1 == r ? 0 : r
                    }
                }, t.prototype.OnSave = function() {
                    var e = this;
                    if (this._isCanSave)
                        if (this._selectNumber < 3) y.UIUtlity.ShowFloatingHint("rankingGuess_selectAllince".ToUILocale());
                        else if (h.RpcComponent.Instance.ServerTime > I.default.ActivityEndSettlementTime) y.UIUtlity.ShowFloatingHint("assault_guess_end ".ToUILocale());
                    else {
                        var t = l.Req_AssaultOperation_Guess.create();
                        t.ActivityId = this._activityId, t.Type = this._selectResults, h.RpcComponent.Instance.Call(t, function(t) {
                            y.UIUtlity.ShowFloatingHint("elementArena_save_success".ToUILocale()), f.RedDotManager.Instance.RefreshInstanceRedDotNode(f.RedDotManager.Instance.InstanceRedDot.AssaultOperationRankingGuessNode, {
                                Value1: I.default.ActivityId
                            }), e.RefreshUI(), e._rankAllianceInfos = t.Alliances, e._rankAllianceInfos.sort(function(e, t) {
                                return e.ArrayParam[1] == t.ArrayParam[1] ? t.ArrayParam[0] - e.ArrayParam[0] : t.ArrayParam[1] - e.ArrayParam[1]
                            });
                            for (var n = 0; n < e._rankAllianceInfos.length; n++) e._idToAllianceInfo[e._rankAllianceInfos[n].Id] = e._rankAllianceInfos[n];
                            e.AsyncLayout.ReRender()
                        })
                    }
                }, t.prototype.OnReward = function() {
                    var e = l.Req_AssaultOperation_RefreshGuessResult.create();
                    e.ActivityId = this._activityId, h.RpcComponent.Instance.Call(e, function(e) {
                        c.UIManager.Instance.ShowUIPanel(p.PanelConfig.AssaultOperationRankingGuessRewardsPanel.Path, e)
                    })
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.RichText)], t.prototype, "DeadLine", void 0), i([b(cc.Node)], t.prototype, "SelectNode", void 0), i([b(cc.Button)], t.prototype, "RewardBtn", void 0), i([b(cc.Button)], t.prototype, "SaveBtn", void 0), i([b(cc.Label)], t.prototype, "SaveBtnLabel", void 0), i([b(cc.Button)], t.prototype, "CanNotSaveBtn", void 0), i([b(cc.Label)], t.prototype, "CanNotSaveBtnLabel", void 0), i([b(m.default)], t.prototype, "AsyncLayout", void 0), i([b(cc.Node)], t.prototype, "RedDot", void 0), i([b(cc.Node)], t.prototype, "BlockIntput", void 0), i([b(g.default)], t.prototype, "GuessTopItems", void 0), i([v], t)
            }(c.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AssaultOperationRankingGuessTopItem": "AssaultOperationRankingGuessTopItem",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./AssaultOperationRankingGuessItem": "AssaultOperationRankingGuessItem"
    }],
    AssaultOperationRankingGuessRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c0439VUE4lPkZDbhxRdC6wP", "AssaultOperationRankingGuessRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/RpcComponent"),
            s = e("./LayoutRewards"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.SucessCount = null, t.LayoutRewards = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.Title.string = e.Rewards[t].Name, e.EndTime < a.RpcComponent.Instance.ServerTime ? (this.SucessCount.node.parent.active = !0, this.SucessCount.string = "<color=FFFFFF>" + "assaultOperation_guessRank_count".ToUILocale().Fmt("<color=#6EEEA7>" + e.GuessResult.Result[t] + "</color>") + "</color>") : this.SucessCount.node.parent.active = !1, this.LayoutRewards.InitWithIntArray(e.Rewards[t].Rewards, e.ItemPrefab)
                }, i([u(cc.Label)], t.prototype, "Title", void 0), i([u(cc.RichText)], t.prototype, "SucessCount", void 0), i([u(s.default)], t.prototype, "LayoutRewards", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Components/RpcComponent": "RpcComponent",
        "./LayoutRewards": "LayoutRewards"
    }],
    AssaultOperationRankingGuessRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "505dedI/epFGKQ3wl08Riva", "AssaultOperationRankingGuessRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("./AssaultOperationPanel"),
            h = e("../../Components/Components"),
            f = e("../Components/AsyncLayout"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./AssaultOperationRankingGuessRewardItem"),
            m = e("../../RedDot/RedDotManager"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property;
        (function(e) {
            e[e.AllWrong = 0] = "AllWrong", e[e.Third = 1] = "Third", e[e.Second = 10] = "Second", e[e.SecondAndThird = 11] = "SecondAndThird", e[e.First = 100] = "First", e[e.FirstAndThird = 101] = "FirstAndThird", e[e.FirstAndSecond = 110] = "FirstAndSecond", e[e.AllRight = 111] = "AllRight"
        })(l || (l = {}));
        var v = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed, !0), t.Title = null, t.GuessRewardsNode = null, t.AsyncLayout = null, t.GetBtn = null, t.GetBtnLabel = null, t.HasGotBtn = null, t.HasGotBtnLabel = null, t._rewards = [], t
            }
            return r(t, e), Object.defineProperty(t.prototype, "EndTime", {
                get: function() {
                    return this._endTime
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Model", {
                get: function() {
                    return this._model
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "BtnState", {
                get: function() {
                    return this._btnState
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Rewards", {
                get: function() {
                    return this._rewards
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ItemPrefab", {
                get: function() {
                    return this._itemPrefab
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "RewadIndex", {
                get: function() {
                    return this._rewadIndex
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "GuessResult", {
                get: function() {
                    return this._res
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return e = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                            case 1:
                                return e._itemPrefab = t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "AllZoneChampionShipGuessResult_RewardTitle".ToUILocale(), this.HasGotBtn.node.on("click", this.OnGetReward, this), this.GetBtn.node.on("click", this.OnGetReward, this), this.GetBtnLabel.string = "GiftCode_receive".ToUILocale(), this.HasGotBtnLabel.string = "already_receive".ToUILocale(), this.AsyncLayout.Init(this.GuessRewardsNode, this.OnInitializeItem.bind(this))
            }, t.prototype.OnInitializeItem = function(e, t) {
                e.getComponent(g.default).Init(this, t)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._model = h.DataCenter.Instance.GetDataById(c.UserActivity_Model, d.default.ActivityId), this._res = t[0], this._btnState = 0, this._activityId = d.default.ActivityId, this._activityConfig = h.DataCenter.Instance.ActivityConfigs[this._activityId]
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.SetRewards(), this._endTime = y.default.Instance.ComputeAssaultOperationLastSettlementTime(this._activityId), this.SetButtonState())
            }, t.prototype.SetRewards = function() {
                for (var e = 0; e < this._activityConfig.GuessPart.GuessItems.length; e++) {
                    var t = {
                            Name: "",
                            Rewards: []
                        },
                        n = "",
                        o = "";
                    switch (e) {
                        case 0:
                            n = "[" + "rankingGuess_NO1".ToUILocale() + "] [" + "rankingGuess_NO2".ToUILocale() + "] [" + "rankingGuess_NO3".ToUILocale() + "]";
                            break;
                        case 1:
                            n = "[" + "rankingGuess_NO1".ToUILocale() + "] [" + "rankingGuess_NO2".ToUILocale() + "]";
                            break;
                        case 2:
                            n = "[" + "rankingGuess_NO1".ToUILocale() + "] [" + "rankingGuess_NO3".ToUILocale() + "]";
                            break;
                        case 3:
                            n = "[" + "rankingGuess_NO2".ToUILocale() + "] [" + "rankingGuess_NO3".ToUILocale() + "]";
                            break;
                        case 4:
                            n = "" + "rankingGuess_NO1".ToUILocale();
                            break;
                        case 5:
                            n = "" + "rankingGuess_NO2".ToUILocale();
                            break;
                        case 6:
                            n = "" + "rankingGuess_NO3".ToUILocale();
                            break;
                        default:
                            o = "rankingGuess_allWrong".ToUILocale()
                    }
                    n ? t.Name = "rankingGuess_guessSucess".ToUILocale().Fmt(n) : o && (t.Name = o);
                    for (var r = this._activityConfig.GuessPart.GuessItems, i = 0; i < r[e].Items.length; i += 2) {
                        var a = {
                            Items: [r[e].Items[i], r[e].Items[i + 1]]
                        };
                        t.Rewards.push(a)
                    }
                    this._rewards.push(t)
                }
            }, t.prototype.SetButtonState = function() {
                if (this._isCanGet = !1, this.GetBtn.node.active = !0, this._endTime > h.RpcComponent.Instance.ServerTime || 0 == this._model.IntArray[0]) return this._rewadIndex = -1, this.GetBtn.node.active = !1, void this.AsyncLayout.RenderLayout(this._rewards.length);
                this._rewadIndex = 0, this._btnState = 0;
                for (var e = 0; e < 3; e++) this._model.IntArray[e] == this._res.Rank[e] ? this._btnState = 10 * this._btnState + 1 : this._btnState = 10 * this._btnState;
                this.ComputeRewardIndex(), this._rewadIndex >= this._rewards.length ? (this.GetBtn.node.active = !1, this.HasGotBtn.node.active = !1) : 1 == this._model.IntArray[3] ? (this.GetBtn.node.active = !1, this.HasGotBtn.node.active = !0) : (this.GetBtn.node.active = !0, this.HasGotBtn.node.active = !1, this._isCanGet = !0), this.ComputeRewardIndex(), this.AsyncLayout.RenderLayout(this._rewards.length)
            }, t.prototype.ComputeRewardIndex = function() {
                switch (this._btnState) {
                    case l.AllRight:
                        this._rewadIndex = 0;
                        break;
                    case l.FirstAndSecond:
                        this._rewadIndex = 1;
                        break;
                    case l.FirstAndThird:
                        this._rewadIndex = 2;
                        break;
                    case l.SecondAndThird:
                        this._rewadIndex = 3;
                        break;
                    case l.First:
                        this._rewadIndex = 4;
                        break;
                    case l.Second:
                        this._rewadIndex = 5;
                        break;
                    case l.Third:
                        this._rewadIndex = 6;
                        break;
                    case l.AllWrong:
                        this._rewadIndex = 7;
                        break;
                    default:
                        this._rewadIndex = -1
                }
            }, t.prototype.OnGetReward = function() {
                var e = this;
                if (0 != this._isCanGet) {
                    var t = c.Req_AssaultOperation_ReceiveGuessReward.create();
                    t.ActivityId = this._activityId, h.RpcComponent.Instance.Call(t, function(t) {
                        e._isCanGet = !1, e.GetBtn.node.active = !1, e.HasGotBtn.node.active = !0, u.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, t.Rewards), m.RedDotManager.Instance.RefreshInstanceRedDotNode(m.RedDotManager.Instance.InstanceRedDot.AssaultOperationRankingGuessNode, {
                            Value1: d.default.ActivityId
                        })
                    })
                }
            }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Node)], t.prototype, "GuessRewardsNode", void 0), i([C(f.default)], t.prototype, "AsyncLayout", void 0), i([C(cc.Button)], t.prototype, "GetBtn", void 0), i([C(cc.Label)], t.prototype, "GetBtnLabel", void 0), i([C(cc.Button)], t.prototype, "HasGotBtn", void 0), i([C(cc.Label)], t.prototype, "HasGotBtnLabel", void 0), i([_], t)
        }(u.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./AssaultOperationRankingGuessRewardItem": "AssaultOperationRankingGuessRewardItem"
    }],
    AssaultOperationRankingGuessTopItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3d95d1tpxBIjIt/UYoTt578", "AssaultOperationRankingGuessTopItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FlagNode = null, t.FlagBg = null, t.FlagIcon = null, t.AddIcon = null, t.Name = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._allianceFlagAtlas = e, this.SetFlag(t)
                }, t.prototype.SetFlag = function(e) {
                    if (e) {
                        this.FlagNode.active = !0, this.AddIcon.node.active = !1;
                        var t = s.ConfigDataComponent.Instance.GetConfigById(a.AllianceIcon_Config, e.Icon),
                            n = t.LogoID,
                            o = t.FlagID;
                        this.FlagBg.spriteFrame = this._allianceFlagAtlas.getSpriteFrame("flagBg" + o), this.FlagIcon.spriteFrame = this._allianceFlagAtlas.getSpriteFrame("flagLogo" + n), this.Name.string = e.Name
                    } else this.FlagNode.active = !1, this.AddIcon.node.active = !0, this.Name.string = "LuckyCharm_NotSelectSkillYet".ToUILocale();
                    return this
                }, i([u(cc.Node)], t.prototype, "FlagNode", void 0), i([u(cc.Sprite)], t.prototype, "FlagBg", void 0), i([u(cc.Sprite)], t.prototype, "FlagIcon", void 0), i([u(cc.Sprite)], t.prototype, "AddIcon", void 0), i([u(cc.Label)], t.prototype, "Name", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components"
    }],
    AssaultOperationResourceItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2b7c4a0mU5In5xWiK2hks24", "AssaultOperationResourceItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../Components/CustomProgressBar"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("./AssaultOperationModel"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/HeadComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.EffectNode = null, t.HeaderContainer = null, t.HpBar = null, t.HpValue = null, t.OwnerNode = null, t.OwnerNodeBg = null, t.CenterResourceName = null, t.CenterOwnerName = null, t.LeftResourceNameNode = null, t.LeftOwnerNameNode = null, t.LeftResourceName = null, t.LeftOwnerName = null, t.BattleIcon = null, t.TakeOverEffectNode = null, t.MAX_HEADER_NUM = 3, t._roundHeaderItems = [], t._loadedAssets = [], t.TEXT_LIMIT_WIDTH = 220, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._basePanel = e;
                    var o, r, i = d.ConfigDataComponent.Instance.GetConfigById(p.AssaultOperationResourceItem_Config, t.Id);
                    if (this._resourceType = i.Type, null == this._occupyAllianceId || this._occupyAllianceId != t.OccupyAllianceId) {
                        if (this.CenterOwnerName.node.active = !0, this.CenterResourceName.node.active = !0, t.OccupyAllianceId) {
                            this._occupyAllianceId = t.OccupyAllianceId;
                            var a = h.AssaultOperationModel.GetAllianceInfo(this._occupyAllianceId, h.AssaultOperationGetAllianceTypeBy.AllianceId),
                                s = a[0],
                                l = a[1];
                            this.CenterOwnerName.string = s, i.Type == c.AssaultOperationResourceType.Headquarters ? this.CenterResourceName.string = l : this.CenterResourceName.string = "" + t.Id.ToAssualtOperationResourceName(), t.OccupyAllianceId == n ? (o = "progressBar6", r = "infoBg14") : (o = "progressBar5", r = "infoBg13")
                        } else this._occupyAllianceId = 0, o = "progressBar1", r = "infoBg6", this.CenterOwnerName.string = "assaultOperation_notOccupied".ToUILocale(), i.Type == c.AssaultOperationResourceType.Headquarters ? this.CenterResourceName.string = "assaultOperation_resourceName_99".ToUILocale() : this.CenterResourceName.string = "" + t.Id.ToAssualtOperationResourceName();
                        this.HpBar.barSprite.spriteFrame = this._basePanel.PanelAtlas.getSpriteFrame(o), this.OwnerNodeBg.spriteFrame = this._basePanel.PanelAtlas.getSpriteFrame(r)
                    }
                    this.RefreshHpBar(t, i), this.RefreshPlayerHeaders(t), this.ConfigBattleEffect(t), this.ConfigShieldEffect(i), this.ConfigTextAlign(!0), this._needCheckTextAlign = !0
                }, t.prototype.ConfigTextAlign = function(e) {
                    var t = this;
                    (this._needCheckTextAlign || e) && (this._needCheckTextAlign = !1, this.scheduleOnce(function() {
                        t.CenterOwnerName.node.width >= t.TEXT_LIMIT_WIDTH ? (t.LeftOwnerNameNode.active = !0, t.LeftOwnerName.string = t.CenterOwnerName.string, t.CenterOwnerName.node.active = !1) : (t.LeftOwnerNameNode.active = !1, t.CenterOwnerName.node.active = !0), t.CenterResourceName.node.width >= t.TEXT_LIMIT_WIDTH ? (t.LeftResourceNameNode.active = !0, t.LeftResourceName.string = t.CenterResourceName.string, t.CenterResourceName.node.active = !1) : (t.LeftResourceNameNode.active = !1, t.CenterResourceName.node.active = !0)
                    }, 0))
                }, t.prototype.RefreshPlayerHeaders = function(e) {
                    var t;
                    for (t = 0; t < e.PlayerInfo.length && !(t >= this.MAX_HEADER_NUM); t++) {
                        var n = e.PlayerInfo[t].Items,
                            o = this._roundHeaderItems[t];
                        if (!o) {
                            var r = cc.instantiate(this._basePanel.PlayerHeaderPrefab);
                            r.setParent(this.HeaderContainer), o = r.getComponent(y.default), this._roundHeaderItems.push(o)
                        }
                        o.node.active = !0, o.SetUI(n[1], n[2])
                    }
                    for (var i = t; i < this._roundHeaderItems.length; i++) this._roundHeaderItems[i].node.active = !1
                }, t.prototype.RefreshHpBar = function(e, t) {
                    var n = t.Monster[0];
                    e.OccupyAllianceId && (n += h.AssaultOperationModel.GetSpecialBuffAddOnValue(c.AssaultOperationSpecialResourceType.AddMonsterCount, e.OccupyAllianceId));
                    var o = e.DefenderCount;
                    this.HpBar.progress = o / n, this.HpValue.string = o + "/" + n
                }, t.prototype.ConfigBattleEffect = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e ? d.RpcComponent.Instance.ServerTime < e.BattleOverTs ? this._battlingEffectPrefab ? [3, 2] : (t = this, [4, l.AssetsManager.Instance.LoadAsset("AssaultOperation/Effect/MapBattlingEffect", cc.Prefab)]) : [3, 3] : [2];
                                case 1:
                                    if (t._battlingEffectPrefab = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._battlingEffectPrefab), [2];
                                    this._loadedAssets.push(this._battlingEffectPrefab), this._battlingEffect || (this._battlingEffect = cc.instantiate(this._battlingEffectPrefab), this._battlingEffect.setParent(this.EffectNode), this._battlingEffect.y = 130), n.label = 2;
                                case 2:
                                    return this._battlingEffect && (this._battlingEffect.active = !0), [3, 4];
                                case 3:
                                    this._battlingEffect && (this._battlingEffect.active = !1), n.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ConfigShieldEffect = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    if (!e) return [2];
                                    if (e.Type < c.AssaultOperationResourceType.Spiritvein4) return [2];
                                    switch (t = d.RpcComponent.Instance.ServerTime, e.Type) {
                                        case c.AssaultOperationResourceType.Spiritvein4:
                                            n = this._basePanel.Level4ProtectEndTime - t;
                                            break;
                                        case c.AssaultOperationResourceType.Headquarters:
                                            n = this._basePanel.HqProtectEndTime - t
                                    }
                                    return n > 0 ? this._shieldEffectPrefab ? [3, 2] : (o = this, [4, l.AssetsManager.Instance.LoadAsset("AssaultOperation/Effect/MapShieldEffect", cc.Prefab)]) : [3, 3];
                                case 1:
                                    if (o._shieldEffectPrefab = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._shieldEffectPrefab), [2];
                                    this._loadedAssets.push(this._shieldEffectPrefab), this._shieldEffect || (this._shieldEffect = cc.instantiate(this._shieldEffectPrefab), this._shieldEffect.setParent(this.EffectNode), this._shieldEffect.y = 20, this._shieldEffect.scale = this.GetShieldEffectScale(e.Type)), r.label = 2;
                                case 2:
                                    return this._shieldEffect && (this._shieldEffect.active = !0), [3, 4];
                                case 3:
                                    this._shieldEffect && (this._shieldEffect.active = !1), r.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ShowTakeOverEffect = function() {
                    var e;
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._takeEffectPrefab ? [3, 2] : (t = this, [4, l.AssetsManager.Instance.LoadAsset("AssaultOperation/Effect/MapTakeOverEffect", cc.Prefab)]);
                                case 1:
                                    if (t._takeEffectPrefab = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._takeEffectPrefab), [2];
                                    this._loadedAssets.push(this._takeEffectPrefab), this._takeEffect || (n = cc.instantiate(this._takeEffectPrefab), o = this.ConfigTakeEffectScale(null !== (e = this._resourceType) && void 0 !== e ? e : c.AssaultOperationResourceType.Spiritvein1), r = o[0], i = o[1], n.setParent(this.TakeOverEffectNode), this.TakeOverEffectNode.scale = r, this.TakeOverEffectNode.y += i, this._takeEffect = n.getComponent(sp.Skeleton), this._takeEffect.setCompleteListener(function() {
                                        a.TakeOverEffectNode.active = !1
                                    })), s.label = 2;
                                case 2:
                                    return this.TakeOverEffectNode.active || (this.TakeOverEffectNode.active = !0, this._takeEffect.setAnimation(0, this._takeEffect.defaultAnimation, !1)), [2]
                            }
                        })
                    })
                }, t.prototype.ConfigTakeEffectScale = function(e) {
                    switch (e) {
                        case c.AssaultOperationResourceType.Spiritvein2:
                            return [1.4, 0];
                        case c.AssaultOperationResourceType.Spiritvein3:
                        case c.AssaultOperationResourceType.Headquarters:
                            return [1.9, 0];
                        case c.AssaultOperationResourceType.Spiritvein4:
                            return [2.4, 80];
                        default:
                            return [1, 0]
                    }
                }, t.prototype.GetShieldEffectScale = function(e) {
                    switch (e) {
                        case c.AssaultOperationResourceType.Spiritvein2:
                        case c.AssaultOperationResourceType.Spiritvein3:
                        case c.AssaultOperationResourceType.Headquarters:
                            return 1.5;
                        case c.AssaultOperationResourceType.Spiritvein4:
                            return 1.8;
                        default:
                            return 1
                    }
                }, t.prototype.CheckVisible = function(e) {
                    this.node.getBoundingBoxToWorld().intersects(e) ? (this.node.opacity = 255, this.ConfigTextAlign()) : this.node.opacity = 0
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = null
                }, i([I(cc.Node)], t.prototype, "EffectNode", void 0), i([I(cc.Node)], t.prototype, "HeaderContainer", void 0), i([I(u.default)], t.prototype, "HpBar", void 0), i([I(cc.Label)], t.prototype, "HpValue", void 0), i([I(cc.Node)], t.prototype, "OwnerNode", void 0), i([I(cc.Sprite)], t.prototype, "OwnerNodeBg", void 0), i([I(cc.Label)], t.prototype, "CenterResourceName", void 0), i([I(cc.Label)], t.prototype, "CenterOwnerName", void 0), i([I(cc.Node)], t.prototype, "LeftResourceNameNode", void 0), i([I(cc.Node)], t.prototype, "LeftOwnerNameNode", void 0), i([I(cc.Label)], t.prototype, "LeftResourceName", void 0), i([I(cc.Label)], t.prototype, "LeftOwnerName", void 0), i([I(cc.Node)], t.prototype, "BattleIcon", void 0), i([I(cc.Node)], t.prototype, "TakeOverEffectNode", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/HeadComponent": "HeadComponent",
        "./AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationSendSpriteWaterItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e3febUi8/JB8r+/gnB5PqE4", "AssaultOperationSendSpriteWaterItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../Components/Components"),
            l = e("../Components/ItemComponent"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../Panel/AssaultOperationModel"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemParent = null, t.ItemName = null, t.SendBtn = null, t.SendBtnLabel = null, t.GraySendBtn = null, t.GraySendBtnLabel = null, t.SendHint = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    if (!this._isInit) {
                        this._isInit = !0, this._basePanel = e;
                        var n = cc.instantiate(e.ItemPrefab);
                        n.setParent(this.ItemParent), this._itemComponent = n.getComponent(l.ItemComponent), this.SendBtn.node.on("click", this.OnSendSpriteWater, this), this.SendBtnLabel.string = "chatting_sendBtn".ToUILocale(), this.GraySendBtnLabel.string = "chatting_sendBtn".ToUILocale(), this.GraySendBtn.node.on("click", this.OnGraySend, this)
                    }
                    this._endTime = u.AssaultOperationModel.GetTodayEndTime();
                    var o = this._basePanel.ActivityConfig.GrassPart.Liquid[t];
                    this.ItemName.string = o.Items[0].ToItemName();
                    var r = s.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceSLGItemAddExp" + (t + 1));
                    this.SendHint.string = "assault_spriteWarterHint".ToUILocale().Fmt(r), this._itemId = o.Items[0], this._userCount = s.DataCenter.Instance.GetItemCount(this._itemId), this._itemComponent.Init({
                        ItemId: this._itemId,
                        Count: this._userCount
                    }), this._itemComponent.SetCount(this._userCount, void 0, !0), this.SendBtn.node.active = this._userCount > 0, this.GraySendBtn.node.active = this._userCount <= 0
                }, t.prototype.OnSendSpriteWater = function() {
                    var e = this;
                    if (this._endTime < s.RpcComponent.Instance.ServerTime) c.UIUtlity.ShowFloatingHint("Activity_end".ToUILocale());
                    else if (!(this._userCount <= 0)) {
                        var t = a.Req_AssaultOperation_SLGSendLiquid.create();
                        t.ActivityId = this._basePanel.ActivityId, t.Type = this._itemId, s.RpcComponent.Instance.Call(t, function() {
                            c.UIUtlity.ShowFloatingHint("allianceRedPacketPanel_sendSuccess".ToUILocale()), e._userCount = s.DataCenter.Instance.GetItemCount(e._itemId), e._itemComponent.Init({
                                ItemId: e._itemId,
                                Count: e._userCount
                            }), e.SendBtn.node.active = e._userCount > 0, e.GraySendBtn.node.active = e._userCount <= 0
                        })
                    }
                }, t.prototype.OnGraySend = function() {
                    p.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemGetWayPanel.Path, this._itemId, !1)
                }, i([y(cc.Node)], t.prototype, "ItemParent", void 0), i([y(cc.Label)], t.prototype, "ItemName", void 0), i([y(cc.Button)], t.prototype, "SendBtn", void 0), i([y(cc.Label)], t.prototype, "SendBtnLabel", void 0), i([y(cc.Button)], t.prototype, "GraySendBtn", void 0), i([y(cc.Label)], t.prototype, "GraySendBtnLabel", void 0), i([y(cc.Label)], t.prototype, "SendHint", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Panel/AssaultOperationModel": "AssaultOperationModel"
    }],
    AssaultOperationSendSpriteWaterLogPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "94d3c8RoUxMXpYTFicDYzvX", "AssaultOperationSendSpriteWaterLogPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("./AssaultOperationPanel"),
            h = e("./AssaultOperationStaicRecordItem"),
            f = e("../Components/AsyncLayout"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !1), t.Title = null, t.Rank = null, t.PlayerName = null, t.RankNode = null, t.AsyncLayout = null, t.Icons = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "assaultOperation_sendSprite_rankLog".ToUILocale(), this.Rank.string = "ActivityHeroTestTower_Rank".ToUILocale(), this.PlayerName.string = "assaultOperation_sendSprite_nameTitle".ToUILocale(), this.AsyncLayout.Init(this.RankNode, this.OnInitializeItem.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = d.default.ActivityId, this._activityConfig = u.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = this._sLGLiquidGetRankData.Players,
                        o = e.getComponent(h.default),
                        r = [],
                        i = !1;
                    r.push(n[t].Name), r.push(n[t].ArrayParam[0].toString()), r.push(n[t].ArrayParam[1].toString()), r.push(n[t].ArrayParam[2].toString()), t == n.length - 1 && (i = !0), o.Init(r, i).SetRank(t + 1)
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this.SetIcons();
                    var o = c.Req_AssaultOperation_SLGLiquidGetRank.create();
                    o.ActivityId = d.default.ActivityId, u.RpcComponent.Instance.Call(o, function(e) {
                        n._sLGLiquidGetRankData = e, n.AsyncLayout.RenderLayout(n._sLGLiquidGetRankData.Players.length)
                    })
                }, t.prototype.SetIcons = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    for (e = [], t = this._activityConfig.GrassPart.Liquid, n = 0; n < t.length; n++) e.push(this.LoadDynamicAsset(y.BundlePath.ItemIcon + "/" + t[n].Items[0], cc.SpriteFrame));
                                    return [4, Promise.all(e).then(function(e) {
                                        if (o.isValid)
                                            for (t = 0; t < e.length; t++) o.Icons[t] && (o.Icons[t].spriteFrame = e[t]);
                                        else
                                            for (var t = 0; t < e.length; t++) l.AssetsManager.Instance.UnloadAsset(e[t])
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Label)], t.prototype, "Rank", void 0), i([I(cc.Label)], t.prototype, "PlayerName", void 0), i([I(cc.Node)], t.prototype, "RankNode", void 0), i([I(f.default)], t.prototype, "AsyncLayout", void 0), i([I(cc.Sprite)], t.prototype, "Icons", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./AssaultOperationStaicRecordItem": "AssaultOperationStaicRecordItem"
    }],
    AssaultOperationSendSpriteWaterPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6618dDvxQ5PTJf9z5b7J9ku", "AssaultOperationSendSpriteWaterPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/DataCenter"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("./AssaultOperationSendSpriteWaterItem"),
            d = e("../Panel/AssaultOperationPanel"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !0), t.Title = null, t.Layout = null, t.SpriteWaterNode = null, t._sendSpriteWaterItem = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "ItemPrefab", {
                    get: function() {
                        return this._itemPrefab
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ActivityId", {
                    get: function() {
                        return this._activityId
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ActivityConfig", {
                    get: function() {
                        return this._activityConfig
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "assault_sendSpriteWater".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = d.default.ActivityId, this._activityConfig = c.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetSpriteWaterNode()
                }, t.prototype.SetSpriteWaterNode = function() {
                    for (var e = 0; e < this._activityConfig.GrassPart.Liquid.length; e++) {
                        var t = this._sendSpriteWaterItem[e];
                        if (!t) {
                            var n = cc.instantiate(this.SpriteWaterNode);
                            t = n.getComponent(p.default), n.setParent(this.Layout), this._sendSpriteWaterItem.push(t)
                        }
                        t.node.active = !0, t.Init(this, e)
                    }
                    for (; e < this._sendSpriteWaterItem.length; e++) this._sendSpriteWaterItem[e].node.active = !1
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Node)], t.prototype, "Layout", void 0), i([y(cc.Node)], t.prototype, "SpriteWaterNode", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Panel/AssaultOperationPanel": "AssaultOperationPanel",
        "./AssaultOperationSendSpriteWaterItem": "AssaultOperationSendSpriteWaterItem"
    }],
    AssaultOperationServerInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "48cbcFvnXhGfK7+LL2rfJOE", "AssaultOperationServerInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../Components/ActivityCountDownComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.PanelTitle = null, t.SubTitle1 = null, t.SubTitle2 = null, t.AllianceNode = null, t.ServerItemScrollView = null, t.ServerItemContainer = null, t.ServerContainerViewWidget = null, t.AllianceItemContainer = null, t.ServerItemPrefab = null, t.AllianceItemPrefab = null, t.ActivityCountDownComponent = null, t._serverItems = [], t._allianceItems = [], t
                }
                return r(t, e), t.prototype.NewLabelItem = function(e) {
                    return {
                        Node: e,
                        Name: cc.find("Label", e).getComponent(cc.Label)
                    }
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelTitle.string = "assaultOperation_ruleTitle".ToUILocale(), this.SubTitle1.string = "assaultOperation_joinServer".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityId = t[0], this._allianceNames = t[1];
                    var n = c.DataCenter.Instance.ActivityConfigs[this._activityId];
                    this._maxAllianceCount = n.CustomPart.AllianceCount, this.ActivityCountDownComponent.Init(n.Common), this._allianceNames ? (this.ServerItemScrollView.node.height = 163, this.AllianceNode.active = !0, this.SubTitle2.string = "<outline width=3 color=#202434>" + "assaultOperation_joinAlliance".ToUILocale().Fmt(Math.min(this._maxAllianceCount, this._allianceNames.length), this._maxAllianceCount) + "</outline>") : (this.ServerItemScrollView.node.height = 536, this.AllianceNode.active = !1), this.ServerContainerViewWidget.updateAlignment()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.ConfigServerItems(), this.ConfigAllianceItems())
                }, t.prototype.ConfigServerItems = function() {
                    var e = [],
                        t = c.DataCenter.Instance.Zones[c.DataCenter.Zone].Region;
                    for (var n in c.DataCenter.Instance.Zones) c.DataCenter.Instance.Zones[n].Region == t && e.push(c.DataCenter.Instance.Zones[n].Name);
                    for (var o = 0; o < e.length; o++) {
                        var r = this._serverItems[o];
                        if (!r) {
                            var i = cc.instantiate(this.ServerItemPrefab);
                            i.setParent(this.ServerItemContainer), i.active = !0, r = this.NewLabelItem(i), this._serverItems.push(r)
                        }
                        r.Name.string = e[o]
                    }
                }, t.prototype.ConfigAllianceItems = function() {
                    if (this._allianceNames)
                        for (var e = 0; e < this._maxAllianceCount; e++) {
                            var t = this._allianceNames[e];
                            if (!t) return;
                            var n = this._allianceItems[e];
                            if (!n) {
                                var o = cc.instantiate(this.AllianceItemPrefab);
                                o.setParent(this.AllianceItemContainer), o.active = !0, n = this.NewLabelItem(o), this._allianceItems.push(n)
                            }
                            n.Name.string = t
                        }
                }, i([h(cc.Label)], t.prototype, "PanelTitle", void 0), i([h(cc.Label)], t.prototype, "SubTitle1", void 0), i([h(cc.RichText)], t.prototype, "SubTitle2", void 0), i([h(cc.Node)], t.prototype, "AllianceNode", void 0), i([h(cc.ScrollView)], t.prototype, "ServerItemScrollView", void 0), i([h(cc.Node)], t.prototype, "ServerItemContainer", void 0), i([h(cc.Widget)], t.prototype, "ServerContainerViewWidget", void 0), i([h(cc.Node)], t.prototype, "AllianceItemContainer", void 0), i([h(cc.Node)], t.prototype, "ServerItemPrefab", void 0), i([h(cc.Node)], t.prototype, "AllianceItemPrefab", void 0), i([h(u.default)], t.prototype, "ActivityCountDownComponent", void 0), i([d], t)
            }(l.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent"
    }],
    AssaultOperationSimpleQueueItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ac8964PrO9IOKpQycS/bYPD", "AssaultOperationSimpleQueueItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/RpcComponent"),
            s = e("../Components/HeadComponent"),
            l = e("./AssaultOperationModel"),
            c = e("./AssaultOperationPvpHeaderComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.HeaderContainer = null, t.TypeIcon = null, t.PlayerCount = null, t.EllipsisNode = null, t._headerComponents = [], t._pvpHeaderComponents = [], t.MAX_HEADER_COUNT = 5, t.MAX_PVP_HEADER_COUNT = 2, t
                }
                return r(t, e), t.prototype.SetTitle = function(e) {
                    this.Title.string = e
                }, t.prototype.Init = function(e, t) {
                    this._basePanel = e, this._customData = t, this.TypeIcon.spriteFrame = t.SpriteFrame, this.EllipsisNode.active = !1;
                    var n = 0,
                        o = 0;
                    if (t.BattleArray) {
                        n += t.BattleArray.length;
                        for (var r = o = this.ConfigBattleQueue(t.BattleArray, o); r < this._pvpHeaderComponents.length; r++) this._pvpHeaderComponents[r].node.active = !1
                    } else
                        for (t.UidArray && (n += t.UidArray.length, o = this.ConfigQueueHeaders(t.UidArray, null, o)), t.MonsterMap && (n += Object.keys(t.MonsterMap).length, o = this.ConfigQueueHeaders(null, t.MonsterMap, o)), r = o; r < this._headerComponents.length; r++) this._headerComponents[r].node.active = !1;
                    this.PlayerCount.string = n.toString()
                }, t.prototype.ConfigQueueHeaders = function(e, t, n) {
                    var o, r, i;
                    r = e ? e.length : (i = Object.keys(t)).length;
                    for (var a = 0; a < r; a++) {
                        if (n >= this.MAX_HEADER_COUNT) {
                            this.EllipsisNode.active = !0;
                            break
                        }
                        var c = void 0,
                            u = void 0,
                            p = void 0,
                            d = void 0;
                        if (e) {
                            var h = e[a],
                                f = l.AssaultOperationModel.GetPlayerInfo(h);
                            if (!f) continue;
                            c = null !== (o = f.ArrayParam[0]) && void 0 !== o ? o : 0, u = f.HeadIcon, p = f.HeadFrame
                        } else {
                            c = t[i[a]];
                            var y = l.AssaultOperationModel.GetMonsterHeaderId(this._customData.ResourceType);
                            d = this._basePanel.PanelAtlas.getSpriteFrame("monsterHeader_" + y)
                        }
                        if (!(c <= 0)) {
                            var g = this._headerComponents[n];
                            if (!g) {
                                var m = cc.instantiate(this._basePanel.PlayerHeaderPrefab);
                                m.setParent(this.HeaderContainer), g = m.getComponent(s.default), this._headerComponents.push(g)
                            }
                            g.node.active = !0, e ? g.SetUI(u, p) : (g.SetCustomHeadIcon(d), g.SetHeadFrame(-1)), n += 1
                        }
                    }
                    return n
                }, t.prototype.ConfigBattleQueue = function(e, t) {
                    for (var n = a.RpcComponent.Instance.ServerTime, o = 0; o < e.length && !(t >= this.MAX_PVP_HEADER_COUNT); o++)
                        if (!(n >= e[o].Items[2])) {
                            var r = e[o].Items[0],
                                i = e[o].Items[1],
                                s = void 0,
                                u = l.AssaultOperationModel.GetPlayerInfo(r),
                                p = void 0;
                            if (i <= 0) {
                                var d = l.AssaultOperationModel.GetMonsterHeaderId(this._customData.ResourceType);
                                p = this._basePanel.PanelAtlas.getSpriteFrame("monsterHeader_" + d)
                            } else s = l.AssaultOperationModel.GetPlayerInfo(i);
                            var h = this._pvpHeaderComponents[t];
                            if (!h) {
                                var f = cc.instantiate(this._basePanel.PvpHeaderPrefab);
                                f.setParent(this.HeaderContainer), h = f.getComponent(c.default), this._pvpHeaderComponents.push(h)
                            }
                            h.node.active = !0, h.Init(this._basePanel.PlayerHeaderPrefab, u, s, p), t += 1
                        } return t
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "HeaderContainer", void 0), i([d(cc.Sprite)], t.prototype, "TypeIcon", void 0), i([d(cc.Label)], t.prototype, "PlayerCount", void 0), i([d(cc.Node)], t.prototype, "EllipsisNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/HeadComponent": "HeadComponent",
        "./AssaultOperationModel": "AssaultOperationModel",
        "./AssaultOperationPvpHeaderComponent": "AssaultOperationPvpHeaderComponent"
    }],
    AssaultOperationSpiritCrystalGatherPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5bd2xmRGFLt5bGJy8/I1OG", "AssaultOperationSpiritCrystalGatherPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("./AssaultOperationPanel"),
            u = e("../../Components/Components"),
            p = e("./AssaultOperationModel"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../Consts/Consts"),
            f = e("../../RedDot/RedDotManager"),
            y = e("../../RedDot/RedDotDataHandler"),
            g = e("../Components/AsyncLayout"),
            m = e("./SpiritualVeinsItem"),
            I = e("../../../Util/TimeUtil"),
            _ = e("../Auxiliary/UIUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ProduceTime = null, t.GetAllBtn = null, t.GetAllBtnLabel = null, t.SpiritualVeinsNode = null, t.AsyncLayout = null, t._resourcePoints = [], t._reddot = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    s.Game.EventDispatcher.On(h.GameEventIds.SpecialRedDotChange.Fmt(h.SpecialRedDotType.AssaultOperationNotGetReward), this.RefreshPage, this), s.Game.EventDispatcher.On(l.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.RefreshPage, this)
                }, t.prototype.onDisable = function() {
                    s.Game.EventDispatcher.Off(h.GameEventIds.SpecialRedDotChange.Fmt(h.SpecialRedDotType.AssaultOperationNotGetReward), this.RefreshPage, this), s.Game.EventDispatcher.Off(l.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.RefreshPage, this)
                }, t.prototype.RefreshPage = function(e, t) {
                    t && t.length > 0 && (this.SetResourcePoint(), this.AsyncLayout.RenderLayout(this._resourcePoints.length))
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetAllBtn.node.on("click", this.OnGetRewards, this), this.GetAllBtnLabel.string = "assault_getAll".ToUILocale(), this.AsyncLayout.Init(this.SpiritualVeinsNode, this.OnInitializeItem.bind(this))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    e.getComponent(m.default).Init(this._resourcePoints[t])
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._resourceImages = t[0], this._itemPrefab = t[1], this._refreshOutFamilyRedDotFunc = t[2], this._activityConfig = u.DataCenter.Instance.ActivityConfigs[c.default.ActivityId]
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        this._endTime = p.AssaultOperationModel.GetTodayEndTime();
                        var n = y.RedDotDataHandler.Instance.RefreshAssaultOperationSpiritCrystalGatherSate({
                            Value1: c.default.ActivityId
                        });
                        this._isCanGet = !!n, f.RedDotManager.Instance.BindNodeByResult(this.GetAllBtn.node, this._reddot, n);
                        var o = "<color=#6EEEA7>" + this._activityConfig.CustomPart.BattlePeriodTime[0] + ":00:00 \u2014 " + this._activityConfig.CustomPart.BattlePeriodTime[1] + ":00:00</color>";
                        this.ProduceTime.string = "<outline color=#202434 width=3><color=#FFFFFF>" + "assault_stoneProduceTime".ToUILocale() + " " + o + " </color></outline>", this.SetResourcePoint(), this.AsyncLayout.RenderLayout(this._resourcePoints.length)
                    }
                }, t.prototype.SetResourcePoint = function() {
                    var e = p.AssaultOperationModel.GetAllSimpleResourceInfos(),
                        t = u.DataCenter.Instance.GetSpecialRedDot(h.SpecialRedDotType.SlgSignUp);
                    this._resourcePoints = [];
                    for (var n = 0; n < e.length; n++)
                        if (e[n].OccupyAllianceId == t) {
                            var o = u.ConfigDataComponent.Instance.GetConfigById(a.AssaultOperationResourceItem_Config, e[n].Id),
                                r = {
                                    ResourcePoint: e[n],
                                    Config: o,
                                    Count: this.ComputeSpiritCrystal(o.RewardCount, e[n]),
                                    ItemPrefab: this._itemPrefab,
                                    Atlas: this._resourceImages
                                };
                            this._resourcePoints.push(r)
                        } var i = u.DataCenter.Instance.GetSpecialRedDot(h.SpecialRedDotType.AssaultOperationNotGetReward);
                    this._resourcePoints.sort(this.SortModel.bind(this)), i > 0 && (r = {
                        ResourcePoint: null,
                        Config: null,
                        Count: i,
                        ItemPrefab: this._itemPrefab,
                        Atlas: this._resourceImages,
                        IsGetAll: !0
                    }, this._resourcePoints.unshift(r))
                }, t.prototype.ComputeSpiritCrystal = function(e, t) {
                    var n = p.AssaultOperationModel.Data.ResourceReceiveMap[t.Id];
                    n || (n = 0 == t.OccupyStartTime ? I.TimeUtil.GetOffsetHourTs(this._activityConfig.CustomPart.BattlePeriodTime[0], I.TimeUtil.Get0ClockTs()) : Math.max(I.TimeUtil.GetOffsetHourTs(this._activityConfig.CustomPart.BattlePeriodTime[0], I.TimeUtil.Get0ClockTs()), t.OccupyStartTime));
                    var o = u.RpcComponent.Instance.ServerTime - n > 0 ? u.RpcComponent.Instance.ServerTime - n : 0;
                    return Math.floor(o / h.Etc.MinuteDuration) * e
                }, t.prototype.SortModel = function(e, t) {
                    return e.Count > t.Count ? -1 : e.Count < t.Count ? 1 : e.Config.Type > t.Config.Type ? -1 : e.Config.Type < t.Config.Type ? 1 : e.ResourcePoint.Id - t.ResourcePoint.Id
                }, t.prototype.OnGetRewards = function() {
                    var e = this;
                    this._endTime < u.RpcComponent.Instance.ServerTime ? _.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()) : this._isCanGet && p.AssaultOperationModel.RefreshResourceGetTime(function(t) {
                        e._resourcePoints[0].IsGetAll && e._resourcePoints.shift();
                        for (var n = 0; n < e._resourcePoints.length; n++) e._resourcePoints[n].Count = 0;
                        e._isCanGet = !1, e.AsyncLayout.RenderLayout(e._resourcePoints.length);
                        var o = {
                            ItemId: h.CommonItemId.AssaultOperationSpiritCrystal,
                            Count: t
                        };
                        f.RedDotManager.Instance.BindNodeByResult(e.GetAllBtn.node, e._reddot, !1), e._refreshOutFamilyRedDotFunc && e._refreshOutFamilyRedDotFunc(), f.RedDotManager.Instance.RefreshInstanceRedDotNode(f.RedDotManager.Instance.InstanceRedDot.AssaultOperationSpiritCrystalGatherNode, {
                            Value1: c.default.ActivityId
                        }), f.RedDotManager.Instance.RefreshInstanceRedDotNode(f.RedDotManager.Instance.InstanceRedDot.AssaultOperationFamilyNode, {
                            Value1: c.default.ActivityId
                        }), s.UIManager.Instance.ShowUIPanel(d.PanelConfig.DisplayRewardsPanel.Path, [o])
                    })
                }, i([b(cc.RichText)], t.prototype, "ProduceTime", void 0), i([b(cc.Button)], t.prototype, "GetAllBtn", void 0), i([b(cc.Label)], t.prototype, "GetAllBtnLabel", void 0), i([b(cc.Node)], t.prototype, "SpiritualVeinsNode", void 0), i([b(g.default)], t.prototype, "AsyncLayout", void 0), i([v], t)
            }(s.BaseUIPage);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AssaultOperationModel": "AssaultOperationModel",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./SpiritualVeinsItem": "SpiritualVeinsItem"
    }],
    AssaultOperationSpritePowerBallPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d6357+NA8FCvZSTJc6bRKDo", "AssaultOperationSpritePowerBallPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../Consts/Consts"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("./AssaultOperationPanel"),
            I = e("./AssaultOperationModel"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("./BuyAndSellItemPanel"),
            v = e("../Components/GameModuleGuideManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !0), t.Title = null, t.ReplyProgressMask = null, t.ReplyProgressBar = null, t.ReplyProgressLabel = null, t.AddBookPower = null, t.ReplyVelocity = null, t.Image = null, t.SpritePowerMask = null, t.SpritePowerBar = null, t.SpritePowerLabel = null, t.Rule = null, t.PowerSync = null, t.PowerSyncLabel = null, t.AddPower = null, t.AddPowerLabel = null, t.BattleHint = null, t.QuitBtn = null, t.SpritePowerIcon = null, t.ChatBtnContainer = null, t.BookSpin = null, t._assets = [], t._moduleGuideGroupIds = [10035], t._guideStepIndex = 0, t._guideGroupId = 0, t.BookSpineName = ["Ani_effect_shenzhuang_zhuhun2", "Ani_effect_shenzhuang_zhuhun"], t
                }
                return r(t, e), t.prototype.update = function(e) {
                    this._startUpdata && (this._timer >= this._refreshTime ? (this.TimeRefreshBallCallBack(), this._timer = 0, this._refreshTime = 60) : this._timer += e)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE, this.GetSpritePower, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.ResourceChange, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.OnModelDataRefresh, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE, this.GetSpritePower, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE, this.ResourceChange, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ASSAULT_OPERATION_REFRESH, this.OnModelDataRefresh, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AssaultOperation/Png/AssaultOperationPanel", cc.SpriteAtlas)];
                                case 1:
                                    return t._assaultAtlas = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._addPowerItemId = h.CommonItemId.AssaultOperationFruit, this.Title.string = "tactics_book".ToUILocale(), this.PowerSyncLabel.string = "force_sync".ToUILocale(), this.AddPowerLabel.string = "add_force".ToUILocale(), this.QuitBtn.node.on("click", this.OnQuit, this), this.PowerSync.node.on("click", this.OnPowerSync, this), this.AddBookPower.node.on("click", this.OnAddBookPower, this), this.Rule.node.on("click", this.OnRule, this), this.AddPower.node.on("click", this.OnAddSpritePower, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = m.default.ActivityId, this._activityConfig = u.DataCenter.Instance.ActivityConfigs[this._activityId], this._refreshTime = 60, this._uid = u.DataCenter.Instance.Uid
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        this._paramConfigPower = u.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, h.LevelParamType.AssaultOperationEnergyLimit), this._paramConfigSprite = u.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, h.LevelParamType.AssaultOperationEnergyBollLimit), this.BattleHint.string = "afterAddForce_Battle".ToUILocale().Fmt(this._activityConfig.CustomPart.LowestBattleEnergyValue), this._endTime = I.AssaultOperationModel.GetTodayEndTime(), this.LoadActer();
                        var n = I.AssaultOperationModel.GetPlayerInfo(this._uid);
                        n ? (this._spritePowerCount = n.ArrayParam[0], this._spritePowerBaseLimit = n.ArrayParam[1], this._spritePowerLimit = Math.floor(this._spritePowerBaseLimit * (1 + I.AssaultOperationModel.GetSpecialBuffAddOnValue(h.AssaultOperationSpecialResourceType.AddEnergyLimit) / 1e4))) : (this._spritePowerCount = 0, this._spritePowerBaseLimit = 0, this._spritePowerLimit = Math.floor(this._spritePowerBaseLimit * (1 + I.AssaultOperationModel.GetSpecialBuffAddOnValue(h.AssaultOperationSpecialResourceType.AddEnergyLimit) / 1e4))), this.RefreshSpriteBall(), this.PlayBookSpine(), this.ShowGameGuid()
                    }
                }, t.prototype.LoadActer = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._ownActer ? [3, 2] : (e = u.DataCenter.Instance.GetIntData(h.UserDataKey.HeadIcon), (t = u.ConfigDataComponent.Instance.GetConfigById(f.HeroSkin_Config, e)) || (t = u.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, e)), n = "Hero_" + t.Model + "/HeroAvatar", [4, this.LoadDynamicAsset(n, cc.Prefab)]);
                                case 1:
                                    if (o = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this._ownActer = o, i.label = 2;
                                case 2:
                                    return this.Image.removeAllChildren(), (r = cc.instantiate(this._ownActer)).setParent(this.Image), r.getComponent(sp.Skeleton).setAnimation(0, h.SkillAnimationType.Standby, !0), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshSpriteBall = function() {
                    var e = this,
                        t = c.Req_AssaultOperation_RefreshStoredEnergyValue.create();
                    t.ActivityId = this._activityId, u.RpcComponent.Instance.Call(t, function(t) {
                        e._spriteBallCount = t.StoredEnergyValue, e._spriteBallLimit = t.StoredEnergyValueLimit, e._startTime = t.SettleTime, e.SetReplyVelocity(t.RecoverySpeed), e._startUpdata || (e._refreshTime = 60 - Math.floor((u.RpcComponent.Instance.ServerTime - e._startTime) / h.Etc.SecondDuration), e._refreshTime = e._refreshTime > 60 ? 60 : e._refreshTime, e._refreshTime = e._refreshTime <= 0 ? 60 : e._refreshTime, e._startUpdata = !0, e._timer = 0, e.RefreshBallPowerProgress(), e.RefreshOwnPowerProgress())
                    })
                }, t.prototype.SetReplyVelocity = function(e) {
                    this._replyVelocity = e * (1 + I.AssaultOperationModel.GetSpecialBuffAddOnValue(h.AssaultOperationSpecialResourceType.AddEnergyRecoverySpeed) / 1e4), this._replyVelocity = Math.floor(this._replyVelocity), this.ReplyVelocity.string = "tactics_replyVelocity".ToUILocale().Fmt(this._replyVelocity)
                }, t.prototype.TimeRefreshBallCallBack = function() {
                    this._spriteBallCount >= this._spriteBallLimit || this._endTime < u.RpcComponent.Instance.ServerTime || this.ComputeSpriteBall()
                }, t.prototype.ComputeSpriteBall = function() {
                    this._spriteBallCount >= this._spriteBallLimit || (this._spriteBallCount += this._replyVelocity, this._spriteBallCount > this._spriteBallLimit && (this._spriteBallCount = this._spriteBallLimit), this.RefreshBallPowerProgress())
                }, t.prototype.RefreshBallPowerProgress = function() {
                    this._spriteBallCount >= this._spriteBallLimit ? this.ReplyProgressMask.width = this.ReplyProgressBar.width : this.ReplyProgressMask.width = this._spriteBallCount / this._spriteBallLimit * this.ReplyProgressBar.width, this.ReplyProgressLabel.string = this._spriteBallCount + "/" + this._spriteBallLimit
                }, t.prototype.RefreshOwnPowerProgress = function() {
                    var e = this._spritePowerCount / this._spritePowerBaseLimit;
                    e = Math.min(e, 1), this.SpritePowerMask.width = e * this.SpritePowerBar.width, this.SpritePowerLabel.string = this._spritePowerCount + "/" + this._spritePowerBaseLimit, this._spritePowerCount < this._activityConfig.CustomPart.LowestBattleEnergyValue ? this.SpritePowerIcon.spriteFrame = this._assaultAtlas.getSpriteFrame("powerIcon0") : this.SpritePowerIcon.spriteFrame = this._assaultAtlas.getSpriteFrame("powerIcon1")
                }, t.prototype.OnAddSpritePower = function() {
                    if (this._endTime < u.RpcComponent.Instance.ServerTime) _.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else {
                        var e = Math.min(this._spriteBallCount, this._spritePowerLimit - this._spritePowerCount);
                        this._spriteBallCount <= 0 ? _.UIUtlity.ShowFloatingHint("assaultOperation_bookPower_notEnough".ToUILocale()) : this._spritePowerLimit - this._spritePowerCount <= 0 ? _.UIUtlity.ShowFloatingHint("assaultOperation_power_full".ToUILocale()) : d.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationSupplementPowerPanel.Path, e, this.AddSpritePower.bind(this))
                    }
                }, t.prototype.AddSpritePower = function(e) {
                    var t = this;
                    if (this._endTime < u.RpcComponent.Instance.ServerTime) _.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else {
                        var n = c.Req_AssaultOperation_GetEnergyValue.create();
                        n.ActivityId = this._activityId, n.Count = e, u.RpcComponent.Instance.Call(n, function() {
                            _.UIUtlity.ShowFloatingHint("assaultOperation_spiritePower_addSucess".ToUILocale()), t._spriteBallCount = t._spriteBallCount - e, t.RefreshBallPowerProgress()
                        })
                    }
                }, t.prototype.OnAddBookPower = function() {
                    if (this._endTime < u.RpcComponent.Instance.ServerTime) _.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else {
                        var e = u.DataCenter.Instance.GetItemCount(this._addPowerItemId);
                        if (e <= 0) l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ItemGetWayPanel.Path, this._addPowerItemId);
                        else {
                            this.PlayBookSpine(!0);
                            var t = {};
                            t.UseItemId = this._addPowerItemId, t.Title = "use".ToUILocale(), t.MaxCount = e, t.PerItemCount = 1, t.Callback = this.OnUseMaterial.bind(this), l.UIManager.Instance.ShowUIPanel(y.PanelConfig.BuyAndSellItemPanel.Path, null, null, null, C.BuyAndSellType.Use, null, null, t)
                        }
                    }
                }, t.prototype.OnUseMaterial = function(e) {
                    var t = this;
                    if (this._endTime < u.RpcComponent.Instance.ServerTime) _.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else {
                        var n = c.Req_AssaultOperation_AddStoredEnergyValue.create();
                        n.ActivityId = this._activityId, n.Count = e, u.RpcComponent.Instance.Call(n, function(e) {
                            t._spriteBallCount = e.StoredEnergyValue, t.RefreshBallPowerProgress()
                        })
                    }
                }, t.prototype.GetSpritePower = function(e) {
                    for (var t, n, o, r = !1, i = 0; i < e.length; i++)
                        if (this._uid == e[i]) {
                            r = !0;
                            break
                        } r && (n = (t = I.AssaultOperationModel.GetPlayerInfo(this._uid).ArrayParam)[0], o = t[1], this._spritePowerCount = n, this._spritePowerBaseLimit = o, this._spritePowerLimit = Math.floor(this._spritePowerBaseLimit * (1 + I.AssaultOperationModel.GetSpecialBuffAddOnValue(h.AssaultOperationSpecialResourceType.AddEnergyLimit) / 1e4)), this.RefreshOwnPowerProgress())
                }, t.prototype.ResourceChange = function(e, t) {
                    if (t) {
                        for (var n = !1, o = !1, r = u.ConfigDataComponent.Instance.GetConfigById(f.AssaultOperationMap_Config, I.AssaultOperationModel.GetMapId()), i = 0; i < r.SpecialResource.length; i++) {
                            var a = r.SpecialResource[i].Items[0];
                            if (t.includes(a)) {
                                var s = r.SpecialResource[i].Items[1];
                                s == h.AssaultOperationSpecialResourceType.AddEnergyLimit ? n = !0 : s == h.AssaultOperationSpecialResourceType.AddEnergyRecoverySpeed && (o = !0)
                            }
                        }
                        n && (this._spritePowerLimit = Math.floor(this._spritePowerBaseLimit * (1 + I.AssaultOperationModel.GetSpecialBuffAddOnValue(h.AssaultOperationSpecialResourceType.AddEnergyLimit) / 1e4)), this.RefreshOwnPowerProgress()), o && this.RefreshSpriteBall()
                    }
                }, t.prototype.OnPowerSync = function() {
                    var e = this;
                    if (this._endTime < u.RpcComponent.Instance.ServerTime) _.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else {
                        _.UIUtlity.ShowFloatingHint("assaultOperation_energySync".ToUILocale());
                        var t = !0,
                            n = u.DataCenter.Instance.GetIntData(h.UserDataKey.Power),
                            o = Math.floor(n * this._paramConfigPower.FloatData[0]) + this._paramConfigSprite.FloatData[1],
                            r = u.DataCenter.Instance.GetIntData(h.UserDataKey.PlayerLevel);
                        if (Math.floor(r * this._paramConfigSprite.FloatData[0]) + this._paramConfigSprite.FloatData[1] > this._spriteBallLimit ? t = !1 : o > this._spritePowerBaseLimit && (t = !1), !t) {
                            var i = c.Req_AssaultOperation_RefreshEnergyValueLimit.create();
                            i.ActivityId = this._activityId, u.RpcComponent.Instance.Call(i, function(t) {
                                e._spriteBallLimit = t.StoredEnergyValueLimit, e._spritePowerBaseLimit = t.EnergyValueLimit, e._spritePowerLimit = Math.floor(e._spritePowerBaseLimit * (1 + I.AssaultOperationModel.GetSpecialBuffAddOnValue(h.AssaultOperationSpecialResourceType.AddEnergyLimit) / 1e4)), e.RefreshBallPowerProgress(), e.RefreshOwnPowerProgress()
                            })
                        }
                    }
                }, t.prototype.PlayBookSpine = function(e) {
                    var t = this;
                    void 0 === e && (e = !1), e ? (this.BookSpin.setAnimation(0, this.BookSpineName[1], !1), this.scheduleOnce(function() {
                        t.BookSpin.setAnimation(0, t.BookSpineName[0], !0)
                    }, .4)) : this.BookSpin.setAnimation(0, this.BookSpineName[0], !0)
                }, t.prototype.OnRule = function() {
                    d.UIManager.Instance.ShowUIPanel(y.PanelConfig.AssaultOperationForbidSyncPanel.Path)
                }, t.prototype.OnQuit = function() {
                    d.UIManager.Instance.BackUIPanel()
                }, t.prototype.ShowGameGuid = function(e) {
                    if ((!e || e == this._guideGroupId) && I.AssaultOperationModel.IsSelfDead()) {
                        var t = v.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = u.ConfigDataComponent.Instance.GetConfigById(f.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 88:
                                            v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 89:
                                            v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.AddPower.node);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, t.prototype.OnModelDataRefresh = function(e) {
                    e && d.UIManager.Instance.QuitPanelStack(y.PanelConfig.AssaultOperationSpritePowerBallPanel.Path)
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Node)], t.prototype, "ReplyProgressMask", void 0), i([w(cc.Node)], t.prototype, "ReplyProgressBar", void 0), i([w(cc.Label)], t.prototype, "ReplyProgressLabel", void 0), i([w(cc.Button)], t.prototype, "AddBookPower", void 0), i([w(cc.RichText)], t.prototype, "ReplyVelocity", void 0), i([w(cc.Node)], t.prototype, "Image", void 0), i([w(cc.Node)], t.prototype, "SpritePowerMask", void 0), i([w(cc.Node)], t.prototype, "SpritePowerBar", void 0), i([w(cc.Label)], t.prototype, "SpritePowerLabel", void 0), i([w(cc.Button)], t.prototype, "Rule", void 0), i([w(cc.Button)], t.prototype, "PowerSync", void 0), i([w(cc.Label)], t.prototype, "PowerSyncLabel", void 0), i([w(cc.Button)], t.prototype, "AddPower", void 0), i([w(cc.Label)], t.prototype, "AddPowerLabel", void 0), i([w(cc.RichText)], t.prototype, "BattleHint", void 0), i([w(cc.Button)], t.prototype, "QuitBtn", void 0), i([w(cc.Sprite)], t.prototype, "SpritePowerIcon", void 0), i([w(cc.Node)], t.prototype, "ChatBtnContainer", void 0), i([w(sp.Skeleton)], t.prototype, "BookSpin", void 0), i([S], t)
            }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "./AssaultOperationModel": "AssaultOperationModel",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel"
    }],
    AssaultOperationSpriteStoneRewardsRulePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "766c0NgneZIEYXSYNMvUlM5", "AssaultOperationSpriteStoneRewardsRulePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("./AssaultOperationPanel"),
            u = e("./AssaultOperationStaicRecordItem"),
            p = e("../Components/AsyncLayout"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.SpriteStoneLevel = null, t.SpriteStoneCount = null, t.GrowthCount = null, t.AsyncLayout = null, t.RecordNode = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "spiritStone_rewards".ToUILocale(), this.SpriteStoneLevel.string = "spiritStone_level".ToUILocale(), this.SpriteStoneCount.string = "spiritStone_count".ToUILocale(), this.GrowthCount.string = "spiritStone_growth".ToUILocale(), this.AsyncLayout.Init(this.RecordNode, this.OnInitializeItem.bind(this))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(u.default),
                        o = [],
                        r = !1;
                    o.push((t + 1).toString()), o.push(this._activityConfig.GrassPart.GrassItems[t].Items[1].toString()), o.push(this._activityConfig.GrassPart.GrassLevel[t].toString()), t == this._activityConfig.GrassPart.GrassLevel.length - 1 && (r = !0), n.Init(o, r)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._activityConfig = s.DataCenter.Instance.ActivityConfigs[c.default.ActivityId], this.AsyncLayout.RenderLayout(this._activityConfig.GrassPart.GrassLevel.length)
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Label)], t.prototype, "SpriteStoneLevel", void 0), i([f(cc.Label)], t.prototype, "SpriteStoneCount", void 0), i([f(cc.Label)], t.prototype, "GrowthCount", void 0), i([f(p.default)], t.prototype, "AsyncLayout", void 0), i([f(cc.Node)], t.prototype, "RecordNode", void 0), i([h], t)
            }(a.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Components/AsyncLayout": "AsyncLayout",
        "./AssaultOperationPanel": "AssaultOperationPanel",
        "./AssaultOperationStaicRecordItem": "AssaultOperationStaicRecordItem"
    }],
    AssaultOperationStaicRecordItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4dd9bUtkltPEqxunsvb7jWn", "AssaultOperationStaicRecordItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Rank = null, t.RankIcon = null, t.StaticDataLAbel = [], t.Line = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    void 0 === t && (t = !1), void 0 === n && (n = !1), this.Icon && (this.Icon.active = n);
                    for (var o = 0; o < this.StaticDataLAbel.length && o < e.length; o++) this.StaticDataLAbel[o].string = e[o];
                    return this.Line.active = !t, this
                }, t.prototype.SetRank = function(e, t) {
                    if (void 0 === t && (t = !0), "number" == typeof e) {
                        if (e <= 0 || !this.Rank || !this.RankIcon) return this;
                        e <= 3 && t ? (this.Rank.node.active = !1, this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e)) : (this.Rank.node.active = !0, this.RankIcon.node.active = !1, this.Rank.string = e.toString())
                    } else this.Rank.node.active = !0, this.RankIcon.node.active = !1, this.Rank.string = e;
                    return this
                }, t.prototype.SetLabelNormalColor = function(e, t) {
                    void 0 === e && (e = cc.color(98, 78, 60));
                    for (var n = 0; n < this.StaticDataLAbel.length; n++) this.SetLabelColor(this.StaticDataLAbel[n], e, t);
                    return this
                }, t.prototype.SetLabelColor = function(e, t, n) {
                    void 0 === t && (t = cc.color(98, 78, 60)), e.node.color = t;
                    var o = e.node.getComponent(cc.LabelOutline);
                    return o && (n ? (o.enabled = !0, o.color = n) : o.enabled = !1), this
                }, i([c(cc.Node)], t.prototype, "Icon", void 0), i([c(cc.Label)], t.prototype, "Rank", void 0), i([c(cc.Sprite)], t.prototype, "RankIcon", void 0), i([c(cc.Label)], t.prototype, "StaticDataLAbel", void 0), i([c(cc.Node)], t.prototype, "Line", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AssaultOperationStrategicCommandItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "04412pEE1JNBpfBGbo9bVAm", "AssaultOperationStrategicCommandItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../../../Consts/Consts"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Panel/AssaultOperationModel"),
            y = e("../Panel/AssaultOperationPanel"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagLabel = null, t.TargetImage = null, t.TargetName = null, t.ProceedingBtn = null, t.ProceedingLabel = null, t.NoProceedingBtn = null, t.NoProceedingLabel = null, t.SupportBtn = null, t.SupportLabel = null, t.NoSupportBtn = null, t.NoSupportLabel = null, t.RefreshTargetBtn = null, t.SetTargetBtn = null, t.NotNull = null, t._isInit = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._isInit || (this._isInit = !0, this._endTime = f.AssaultOperationModel.GetTodayEndTime(), this.ProceedingLabel.string = "assaultOperation_go".ToUILocale(), this.SupportLabel.string = "assaultOperation_support".ToUILocale(), this.NoProceedingLabel.string = "assaultOperation_go".ToUILocale(), this.NoSupportLabel.string = "assaultOperation_support".ToUILocale(), this.ProceedingBtn.node.on("click", this.OnProceeding, this), this.SupportBtn.node.on("click", this.OnSupport, this), this.NoProceedingBtn.node.on("click", this.OnNoSelectTarget, this), this.NoSupportBtn.node.on("click", this.OnNoSelectTarget, this), this.RefreshTargetBtn.node.on("click", this.OnRefreshTarget, this), this.SetTargetBtn.node.on("click", this.OnRefreshTarget, this), this.TagLabel.string = ("assault_target_" + (e + 1)).ToUILocale()), this._rank = e, this._basePage = t, this.RefreshUI()
                }, t.prototype.RefreshUI = function() {
                    this.NotNull.active = !1, this.SetTargetBtn.node.active = !1;
                    var e = this._basePage.TargetConfigs[this._rank];
                    if (e) {
                        this.NotNull.active = !0;
                        var t = "building_" + f.AssaultOperationModel.GetResourceTypeIcon(e.Type);
                        if (this.TargetImage.spriteFrame = this._basePage.ResourceImages.getSpriteFrame(t), e.Type == l.AssaultOperationResourceType.Headquarters) {
                            var n = f.AssaultOperationModel.GetAllianceInfo(e.Id)[0];
                            this.TargetName.string = n
                        } else this.TargetName.string = e.Id.ToAssualtOperationResourceName()
                    } else this.SetTargetBtn.node.active = !0
                }, t.prototype.OnNoSelectTarget = function() {
                    this._endTime < p.RpcComponent.Instance.ServerTime ? h.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()) : h.UIUtlity.ShowFloatingHint("assaultOperation_noSelect_target".ToUILocale())
                }, t.prototype.OnProceeding = function() {
                    this._endTime < p.RpcComponent.Instance.ServerTime ? h.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()) : (this._basePage.TargetConfigs[this._rank] || h.UIUtlity.ShowFloatingHint("assaultOperation_noSelect_target".ToUILocale()), a.UIManager.Instance.BackUIPanel(), c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_ASSAULT_OPERATION_MAP, this._basePage.TargetConfigs[this._rank].Id))
                }, t.prototype.OnSupport = function() {
                    if (this._endTime < p.RpcComponent.Instance.ServerTime) h.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else if (this._basePage.TargetConfigs[this._rank]) {
                        var e = this._basePage.TargetConfigs[this._rank].Id;
                        f.AssaultOperationModel.ReqSupportMessage(e)
                    } else h.UIUtlity.ShowFloatingHint("assaultOperation_noSelect_target".ToUILocale())
                }, t.prototype.OnRefreshTarget = function() {
                    this._endTime < p.RpcComponent.Instance.ServerTime ? h.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()) : this._basePage.MyJob == l.AlliancePostType.Leader || this._basePage.MyJob == l.AlliancePostType.ViceLeader ? a.UIManager.Instance.ShowUIPanel(s.PanelConfig.AssaultOperationAttackTargetPanel.Path, this._rank, this._basePage.TargetConfigs, this.RefreshTarget.bind(this)) : h.UIUtlity.ShowFloatingHint("assaultOperation_forbidChangeTarget".ToUILocale())
                }, t.prototype.RefreshTarget = function(e) {
                    var t = this,
                        n = this._basePage.TargetConfigs[0],
                        o = this._basePage.TargetConfigs[1];
                    0 == this._rank ? n = e : o = e, this._basePage.TargetConfigs = [n, o];
                    var r = n ? n.Id : 0,
                        i = o ? o.Id : 0;
                    this._basePage.TargetConfigs[0];
                    var a = d.Req_AssaultOperation_ChangeAttackResourcePointInfo.create();
                    a.ActivityId = y.default.ActivityId, a.ResourcePointIds = [r, i], p.RpcComponent.Instance.Call(a, function() {
                        t.RefreshUI()
                    })
                }, i([I(cc.Label)], t.prototype, "TagLabel", void 0), i([I(cc.Sprite)], t.prototype, "TargetImage", void 0), i([I(cc.Label)], t.prototype, "TargetName", void 0), i([I(cc.Button)], t.prototype, "ProceedingBtn", void 0), i([I(cc.Label)], t.prototype, "ProceedingLabel", void 0), i([I(cc.Button)], t.prototype, "NoProceedingBtn", void 0), i([I(cc.Label)], t.prototype, "NoProceedingLabel", void 0), i([I(cc.Button)], t.prototype, "SupportBtn", void 0), i([I(cc.Label)], t.prototype, "SupportLabel", void 0), i([I(cc.Button)], t.prototype, "NoSupportBtn", void 0), i([I(cc.Label)], t.prototype, "NoSupportLabel", void 0), i([I(cc.Button)], t.prototype, "RefreshTargetBtn", void 0), i([I(cc.Button)], t.prototype, "SetTargetBtn", void 0), i([I(cc.Node)], t.prototype, "NotNull", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/AssaultOperationModel": "AssaultOperationModel",
        "../Panel/AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationStrategicCommandPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "32deabJy1tAnLxE0bh6WoT8", "AssaultOperationStrategicCommandPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../Consts/Consts"),
            d = e("./AssaultOperationPanel"),
            h = e("../../Components/Components"),
            f = e("./AssaultOperationModel"),
            y = e("../Components/AssaultOperationStrategicCommandItem"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/AssaultOperationCommandItem"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ResourceTitle = null, t.CommanderTitle = null, t.TargetTitle = null, t.Leader = null, t.ResourceSmall = null, t.ResourceSmallCount = null, t.ResourceMedium = null, t.ResourceMediumCount = null, t.ResourceLarge = null, t.ResourceLargeCount = null, t.ResourceCenter = null, t.ResourceCenterCount = null, t.TargetItem = [], t.CommandNode = null, t.CommandView = null, t.CommandLayout = null, t._commandItems = [], t._memberList = [], t._heroItems = [], t._resourceConfigs = [], t._targetConfigs = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "MyJob", {
                    get: function() {
                        return this._myJob
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "TargetConfigs", {
                    get: function() {
                        return this._targetConfigs
                    },
                    set: function(e) {
                        this._targetConfigs = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ResourceImages", {
                    get: function() {
                        return this._resourceImages
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(g.BundlePath.HeadComponent)];
                                case 1:
                                    return t._headPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ResourceTitle.string = "assault_titleOccupied".ToUILocale(), this.CommanderTitle.string = "assault_commander".ToUILocale(), this.TargetTitle.string = "assault_titleTarget".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._resourceImages = t[0], this._heroPrefab = t[1], this._activityId = d.default.ActivityId, this._targetConfigs = [null, null]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        this.SetMyAlliance(), this.SetMyResource(), this.RefreshResourceCount();
                        var o = l.Req_AssaultOperation_GetAttackResourcePointInfo.create();
                        o.ActivityId = this._activityId, h.RpcComponent.Instance.Call(o, function(e) {
                            for (var t = 0; t < e.ResourcePointIds.length; t++)
                                if (0 == e.ResourcePointIds[t]) n._targetConfigs[t] = null;
                                else {
                                    var o = h.ConfigDataComponent.Instance.GetConfigById(c.AssaultOperationResourceItem_Config, e.ResourcePointIds[t]);
                                    n._targetConfigs[t] = o
                                } n.SetTargetNode()
                        }, function() {
                            n._targetConfigs = [null, null]
                        })
                    }
                }, t.prototype.SetMyAlliance = function() {
                    for (var e in this._memberList = [], this._myJob = p.AlliancePostType.Member, f.AssaultOperationModel.Data.AliianceCommandPlayerInfo) {
                        var t = f.AssaultOperationModel.Data.AliianceCommandPlayerInfo[e];
                        this._memberList.push(t), t.Uid == h.DataCenter.Instance.Uid && (this._myJob = parseInt(e))
                    }
                    this.SetCommander()
                }, t.prototype.SetMyResource = function() {
                    var e = f.AssaultOperationModel.GetAllSimpleResourceInfos(),
                        t = h.DataCenter.Instance.GetSpecialRedDot(p.SpecialRedDotType.SlgSignUp);
                    this._resourceConfigs = [];
                    for (var n = 0; n < e.length; n++)
                        if (t && t > 0 && e[n].OccupyAllianceId == t) {
                            var o = h.ConfigDataComponent.Instance.GetConfigById(c.AssaultOperationResourceItem_Config, e[n].Id);
                            this._resourceConfigs.push(o)
                        }
                }, t.prototype.RefreshResourceCount = function() {
                    for (var e = [0, 0, 0, 0], t = 0; t < this._resourceConfigs.length; t++) e[this._resourceConfigs[t].Type - 1]++;
                    this.ResourceSmall.string = "assault_resourceSmall".ToUILocale().Fmt(e[0]), this.ResourceMedium.string = "assault_resourceMedium".ToUILocale().Fmt(e[1]), this.ResourceLarge.string = "assault_resourceLarge".ToUILocale().Fmt(e[2]), this.ResourceCenter.string = "assault_resourceCenter".ToUILocale().Fmt(e[3]), this.ResourceSmallCount.string = e[0].toString(), this.ResourceMediumCount.string = e[1].toString(), this.ResourceLargeCount.string = e[2].toString(), this.ResourceCenterCount.string = e[3].toString()
                }, t.prototype.GetCommandItem = function(e) {
                    var t = this._commandItems[e];
                    if (!t) {
                        var n = cc.instantiate(this.CommandNode);
                        n.setParent(this.CommandLayout.node), t = n.getComponent(m.default), this._commandItems.push(t)
                    }
                    return t.node.active = !0, t
                }, t.prototype.SetCommander = function() {
                    for (var e = 0, t = 0; t < this._memberList.length; t++) {
                        var n = this._memberList[t],
                            o = n.ArrayParam[0];
                        if (o == p.AlliancePostType.Leader) {
                            var r = this.GetCommandItem(e);
                            e++, r.Init(n, this._headPrefab), r.node.setSiblingIndex(0)
                        } else o == p.AlliancePostType.ViceLeader && (r = this.GetCommandItem(e), e++, r.Init(n, this._headPrefab))
                    }
                    for (var i = e; e < this._commandItems.length; e++) this._commandItems[e].node.active = !1;
                    i <= 3 ? (this.CommandView.enabled = !1, this.CommandLayout.node.anchorX = .5, this.CommandLayout.node.x = this.CommandView.node.width / 2) : (this.CommandView.enabled = !0, this.CommandLayout.node.anchorX = 0, this.CommandLayout.node.x = 0)
                }, t.prototype.SetTargetNode = function() {
                    for (var e = 0; e < this.TargetItem.length; e++) this.TargetItem[e].Init(e, this)
                }, i([C(cc.Label)], t.prototype, "ResourceTitle", void 0), i([C(cc.Label)], t.prototype, "CommanderTitle", void 0), i([C(cc.Label)], t.prototype, "TargetTitle", void 0), i([C(cc.Label)], t.prototype, "Leader", void 0), i([C(cc.Label)], t.prototype, "ResourceSmall", void 0), i([C(cc.Label)], t.prototype, "ResourceSmallCount", void 0), i([C(cc.Label)], t.prototype, "ResourceMedium", void 0), i([C(cc.Label)], t.prototype, "ResourceMediumCount", void 0), i([C(cc.Label)], t.prototype, "ResourceLarge", void 0), i([C(cc.Label)], t.prototype, "ResourceLargeCount", void 0), i([C(cc.Label)], t.prototype, "ResourceCenter", void 0), i([C(cc.Label)], t.prototype, "ResourceCenterCount", void 0), i([C(y.default)], t.prototype, "TargetItem", void 0), i([C(cc.Node)], t.prototype, "CommandNode", void 0), i([C(cc.ScrollView)], t.prototype, "CommandView", void 0), i([C(cc.Layout)], t.prototype, "CommandLayout", void 0), i([_], t)
            }(u.BaseUIPage);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/AssaultOperationCommandItem": "AssaultOperationCommandItem",
        "../Components/AssaultOperationStrategicCommandItem": "AssaultOperationStrategicCommandItem",
        "./AssaultOperationModel": "AssaultOperationModel",
        "./AssaultOperationPanel": "AssaultOperationPanel"
    }],
    AssaultOperationSupplementPowerPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6dd09jxKX5PyozMdqk+JA6y", "AssaultOperationSupplementPowerPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Components/SliderComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Fixed, !0), t.Title = null, t.UseBtn = null, t.UseBtnLabel = null, t.Hint = null, t.SliderComponent = null, t.Slider = null, t.Count = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(c.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(c.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "add_force".ToUILocale(), this.Hint.string = "assault_adjustPowerCount".ToUILocale(), this.UseBtnLabel.string = "CollectionPavilion_Btn_use".ToUILocale(), this.UseBtn.node.on("click", this.OnUseClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._spriteBallCount = t[0], t.length > 1 && (this._useCallback = t[1])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.Count.string = this._spriteBallCount.toString(), this._useCount = this._spriteBallCount, this.SliderComponent.SetUI(this._spriteBallCount, this._spriteBallCount, 0, !0))
                }, t.prototype.OnSliderDragOver = function(e) {
                    this.Count.string = e.toString(), this._useCount = e
                }, t.prototype.OnUseClick = function() {
                    this._useCallback && (l.UIManager.Instance.BackUIPanel(), this._useCallback(this._useCount))
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Button)], t.prototype, "UseBtn", void 0), i([h(cc.Label)], t.prototype, "UseBtnLabel", void 0), i([h(cc.Label)], t.prototype, "Hint", void 0), i([h(u.default)], t.prototype, "SliderComponent", void 0), i([h(cc.Node)], t.prototype, "Slider", void 0), i([h(cc.Label)], t.prototype, "Count", void 0), i([d], t)
            }(a.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/SliderComponent": "SliderComponent"
    }],
    AssaultOperationWinnerPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "49e3aHjGTxOQqGG+ec642Li", "AssaultOperationWinnerPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("./AllianceFlagComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.WinLabel = null, t.ServerName = null, t.AllianceName = null, t.AllianceFlagNode = null, t.GroupToggleLabels = ["A", "B", "C", "D", "E", "F", "J", "H", "I"], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AllianceBasePanel/Private/AllianceFlagComponent", cc.Prefab)];
                                case 1:
                                    return t._allianceFlagPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0],
                        o = t[1];
                    this._allianceInfo = t[2], this.WinLabel.string = "assaultOperation_winnerHint".ToUILocale().Fmt(n, this.GroupToggleLabels[o]), this.ServerName.string = "[" + c.DataCenter.Instance.Zones[this._allianceInfo.ArrayParam[0]].Name + "]", this.AllianceName.string = this._allianceInfo.Name
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetAllianceFlag()
                }, t.prototype.SetAllianceFlag = function() {
                    if (!this._flagComponent) {
                        var e = cc.instantiate(this._allianceFlagPrefab);
                        e.setParent(this.AllianceFlagNode), this._flagComponent = e.getComponent(u.default)
                    }
                    this._flagComponent.Init(this._allianceInfo.Icon)
                }, i([h(cc.Label)], t.prototype, "WinLabel", void 0), i([h(cc.Label)], t.prototype, "ServerName", void 0), i([h(cc.Label)], t.prototype, "AllianceName", void 0), i([h(cc.Node)], t.prototype, "AllianceFlagNode", void 0), i([d], t)
            }(l.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "./AllianceFlagComponent": "AllianceFlagComponent"
    }],
    AssetsManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ce55584Lg1IB6Tna0lQrG8D", "AssetsManager");
        var o = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            r = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            i = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AssetsManager = void 0, cc.assetManager.downloader.maxConcurrency = 300, cc.assetManager.downloader.maxRequestsPerFrame = 300, cc.macro.CLEANUP_IMAGE_CACHE = !0, cc.macro.ALLOW_IMAGE_BITMAP = !1;
        var a = e("../Auxiliary/EZLog"),
            s = cc._decorator,
            l = s.ccclass,
            c = (s.property, function() {
                function e() {
                    this._statisticBundleDepends = {}, this.MANIFEST_PATH = "ABManifest", this._assetBundleMap = new Map, this._allLoadedAssets = new Map, this.UseAssetBundle = !0
                }
                var t;
                return t = e, Object.defineProperty(e, "Instance", {
                    get: function() {
                        return null === this._instance && (this._instance = new t), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.prototype.InitManifest = function() {
                    return r(this, void 0, void 0, function() {
                        var e, t = this;
                        return i(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._assetBundleMap.clear(), this._allLoadedAssets.clear(), [4, this.LoadBundle(this.MANIFEST_PATH)];
                                case 1:
                                    return e = n.sent(), [2, new Promise(function(n) {
                                        e.load(t.MANIFEST_PATH, cc.JsonAsset, function(e, o) {
                                            if (o) {
                                                for (var r in o.json) t._assetBundleMap.set(r, o.json[r]);
                                                n(o)
                                            } else a.EZLog.Error(t.MANIFEST_PATH + " is not exist!!!")
                                        })
                                    })]
                            }
                        })
                    })
                }, e.prototype.LoadAsset = function(e, t) {
                    return r(this, void 0, void 0, function() {
                        var n, o, r, s;
                        return i(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return i.trys.push([0, 3, , 4]), (n = this._assetBundleMap.get(e)) || (n = e.split("/")[0], this._assetBundleMap.set(e, n)), [4, this.LoadBundle(n)];
                                case 1:
                                    return o = i.sent(), [4, this.DoLoadAssetJob(o, e, t)];
                                case 2:
                                    return (r = i.sent()).addRef(), [2, r];
                                case 3:
                                    return s = i.sent(), a.EZLog.Error(s.message), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.LoadAssetDir = function(e, t) {
                    return r(this, void 0, void 0, function() {
                        var n, o, r, s, l, c;
                        return i(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return i.trys.push([0, 3, , 4]), (n = this._assetBundleMap.get(e)) || (n = e.split("/")[0]), [4, this.LoadBundle(n)];
                                case 1:
                                    return o = i.sent(), [4, this.DoLoadAssetDirJob(o, e, t)];
                                case 2:
                                    for (r = i.sent(), s = 0; s < r.length; s++) l = e.concat("/" + r[s].name), this._allLoadedAssets.has(l) || this._allLoadedAssets.set(l, r[s]), this._assetBundleMap.has(l) || this._assetBundleMap.set(l, o.name), r[s].name = l, r[s].addRef();
                                    return [2, r];
                                case 3:
                                    return c = i.sent(), a.EZLog.Error(c.message), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.LoadBundle = function(e) {
                    return r(this, void 0, void 0, function() {
                        var t;
                        return i(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return (t = cc.assetManager.getBundle(e)) ? [3, 3] : [4, this.LoadSingleBundle(e)];
                                case 1:
                                    return t = n.sent(), [4, this.LoadDependentBundles(t.deps)];
                                case 2:
                                    return n.sent(), [3, 5];
                                case 3:
                                    return this.AddSingleBundleStatistic(t.name), [4, this.LoadDependentBundles(t.deps)];
                                case 4:
                                    n.sent(), n.label = 5;
                                case 5:
                                    return [2, t]
                            }
                        })
                    })
                }, e.prototype.LoadDependentBundles = function(e) {
                    return r(this, void 0, void 0, function() {
                        var t, n;
                        return i(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    for (t = [], n = 0; n < e.length; n++) t.push(this.LoadSingleBundle(e[n]));
                                    return [4, Promise.all(t)];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, e.prototype.LoadSingleBundle = function(e) {
                    return r(this, void 0, void 0, function() {
                        var t, n = this;
                        return i(this, function() {
                            try {
                                return (t = cc.assetManager.getBundle(e)) ? (this.AddSingleBundleStatistic(t.name), [2, t]) : [2, new Promise(function(t) {
                                    cc.assetManager.loadBundle(e, function(e, o) {
                                        e || (n.AddSingleBundleStatistic(o.name), t(o))
                                    })
                                })]
                            } catch (o) {
                                a.EZLog.Error(o.message)
                            }
                            return [2]
                        })
                    })
                }, e.prototype.LoadRemoteTexture = function(e) {
                    return r(this, void 0, void 0, function() {
                        return i(this, function() {
                            try {
                                return [2, new Promise(function(t) {
                                    cc.assetManager.loadRemote(e, function(n, o) {
                                        if (!n) {
                                            o.addRef();
                                            var r = new cc.SpriteFrame(o);
                                            r.name = e, r.isRemoteAsset = !0, t(r)
                                        }
                                    })
                                })]
                            } catch (t) {
                                a.EZLog.Error(t.message)
                            }
                            return [2]
                        })
                    })
                }, e.prototype.DoLoadAssetJob = function(e, t, n) {
                    return r(this, void 0, void 0, function() {
                        var o, r = this;
                        return i(this, function() {
                            try {
                                return (o = this._allLoadedAssets.get(t)) && o.isValid ? [2, o] : [2, new Promise(function(o, i) {
                                    var a = t.substring(e.name.length + 1);
                                    e.load(a, n, function(e, n) {
                                        e ? i(e) : (n.name = t, r._allLoadedAssets.set(t, n), o(n))
                                    })
                                })]
                            } catch (i) {
                                a.EZLog.Error(i.message)
                            }
                            return [2]
                        })
                    })
                }, e.prototype.DoLoadAssetDirJob = function(e, t, n) {
                    return r(this, void 0, void 0, function() {
                        return i(this, function() {
                            try {
                                return [2, new Promise(function(o) {
                                    var r = t.substring(e.name.length + 1);
                                    e.loadDir(r, n, function(e, t) {
                                        o(t)
                                    })
                                })]
                            } catch (o) {
                                a.EZLog.Error(o.message)
                            }
                            return [2]
                        })
                    })
                }, e.prototype.LoadStaticConfigs = function(e, t) {
                    return r(this, void 0, void 0, function() {
                        var n, o;
                        return i(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return r.trys.push([0, 3, , 4]), [4, this.LoadBundle(e)];
                                case 1:
                                    return n = r.sent(), [4, this.DoLoadAssetDirJob(n, e, t)];
                                case 2:
                                    return [2, r.sent()];
                                case 3:
                                    return o = r.sent(), a.EZLog.Error(o.message), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.UnloadAsset = function(e) {
                    null != e && (e.refCount > 0 && e.decRef(), e.refCount <= 0 && cc.isValid(e) && (this._allLoadedAssets.delete(e.name), e instanceof cc.SpriteFrame && e.getTexture() && e.isRemoteAsset && e.getTexture().decRef()), this.UnloadBundle(this._assetBundleMap.get(e.name)))
                }, e.prototype.UnloadBundle = function(e) {
                    var t;
                    "string" == typeof e ? t = cc.assetManager.getBundle(e) : "object" == typeof e && (t = e), t && this.RemoveStatisticDepends(t)
                }, e.prototype.AddStatisticDepends = function(e, t) {
                    void 0 === t && (t = 1);
                    for (var n = e.deps.concat(e.name), o = 0; o < n.length; o++) {
                        var r = n[o];
                        this.AddSingleBundleStatistic(r)
                    }
                }, e.prototype.AddSingleBundleStatistic = function(e) {
                    this._statisticBundleDepends[e] ? this._statisticBundleDepends[e] += 1 : this._statisticBundleDepends[e] = 1
                }, e.prototype.RemoveStatisticDepends = function(e) {
                    for (var t = e.deps.concat(e.name), n = 0; n < t.length; n++) {
                        var o = t[n];
                        this._statisticBundleDepends[o] && (this._statisticBundleDepends[o]--, this._statisticBundleDepends[o] <= 0 && (this.DestroyBundle(o), delete this._statisticBundleDepends[o]))
                    }
                }, e.prototype.DestroyBundle = function(e) {
                    if (this.UseAssetBundle) {
                        var t = cc.assetManager.getBundle(e);
                        t && (t.releaseAll(), cc.assetManager.removeBundle(t))
                    }
                }, e.prototype.LoadABScene = function(e, t) {
                    try {
                        cc.assetManager.loadBundle("scene", function(n, o) {
                            o.loadScene(e, function(e, n) {
                                cc.director.runScene(n), null != t && t()
                            })
                        })
                    } catch (n) {
                        a.EZLog.Error(n.message)
                    }
                }, e.prototype.StatisticBundle = function() {
                    cc.sys.localStorage.setItem("StatisticBundle", JSON.stringify(this._statisticBundleDepends));
                    var e = {};
                    this._allLoadedAssets.forEach(function(t, n) {
                        e[n] = t.refCount
                    }), cc.sys.localStorage.setItem("AllAssets", JSON.stringify(e))
                }, e._instance = null, t = o([l], e)
            }());
        n.AssetsManager = c, cc._RF.pop()
    }, {
        "../Auxiliary/EZLog": "EZLog"
    }],
    AssistantComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a1762yw/a5Aco/oQV7T0mnO", "AssistantComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../ShareConsts/EnumType"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("./AssistantDescItemType1"),
            h = e("./AssistantDescItemType2"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.TitleBg = null, t.LockIconNode = null, t.UnLockTip = null, t.ItemType3Node = null, t.ItemType3Toggle1 = null, t.ItemType3Desc1 = null, t.ItemType3Toggle2 = null, t.ItemType3Desc2 = null, t.ItemType4Node = null, t.ItemType4Toggle1 = null, t.ItemType4Desc1 = null, t.ItemType4Toggle2 = null, t.ItemType4Desc2 = null, t._descType1ComponentArray = [], t._descType2ComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ItemType3Toggle1.node.on("toggle", this.OnItemType3Toggle1Click, this), this.ItemType3Toggle2.node.on("toggle", this.OnItemType3Toggle2Click, this), this.ItemType4Toggle1.node.on("toggle", this.OnItemType4Toggle1Click, this), this.ItemType4Toggle2.node.on("toggle", this.OnItemType4Toggle2Click, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    this._currentAssistantType = e, this._allAssistantData = t, this._descType1Prefab = n, this._descType2Prefab = o, this._mainPanel = r, this._index = i, this._currentAssistantData = this._allAssistantData[this._currentAssistantType] ? this._allAssistantData[this._currentAssistantType] : [], this.SetUI()
                }, t.prototype.SetUI = function() {
                    switch (this.LockIconNode.active = !1, this.UnLockTip.node.active = !1, this._descType1ComponentArray.length > 0 && this._descType1ComponentArray.forEach(function(e) {
                            e.node.active = !1
                        }), this._descType2ComponentArray.length > 0 && this._descType2ComponentArray.forEach(function(e) {
                            e.node.active = !1
                        }), this.ItemType3Node.active = !1, this.ItemType4Node.active = !1, this._currentTypeIsUnlock = null, this._nodeZIndex = 1, this._currentAssistantType) {
                        case a.HelperOperationType.AdventureQuickBattle:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.QuickBattle), this.Title.string = "assistant_quick_battle".ToUILocale(), this.SetDescItemType1(1), this.SetDescItemType2(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel), this._descType2ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.DailyInstanceQuickBattle:
                            switch (this._index) {
                                case 1:
                                    this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.DailyInstanceCoin);
                                    break;
                                case 2:
                                    this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.DailyInstanceExp);
                                    break;
                                case 3:
                                    this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.DailyInstanceFighter);
                                    break;
                                case 4:
                                    this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.DailyInstanceRune);
                                    break;
                                case 5:
                                    this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.DailyInstanceAngel);
                                    break;
                                case 6:
                                    this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.DailyInstanceGem)
                            }
                            var e = 3 * (this._index - 1);
                            this.Title.string = ("dailyInstance_type_" + this._index).ToUILocale(), this.SetDescItemType1(1), this.SetDescItemType2(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel, [e]), this._descType2ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel, [e, this._index]);
                            break;
                        case a.HelperOperationType.AdventureReceiveHangUpReward:
                            this.Title.string = "assistant_idle_reward".ToUILocale(), this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.GiveAndReceiveGifts:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperGiveAndReceiveGifts), this.Title.string = "assistant_friend".ToUILocale(), this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.Intelligence:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.IntelligenceTask), this.ItemType3Node.active = !0, this.ItemType4Node.active = !0, this.ItemType3Toggle1.isChecked = !!this._currentAssistantData[0], this.ItemType3Toggle2.isChecked = !!this._currentAssistantData[1], this.ItemType4Toggle1.isChecked = !!this._currentAssistantData[2], this.ItemType4Toggle2.isChecked = 2 == this._currentAssistantData[2], this.Title.string = "intelligence_tittle".ToUILocale(), this.ItemType3Desc1.string = "assistant_intelligence_receive_auto".ToUILocale(), this.ItemType3Desc2.string = "assistant_intelligence_dispatch_auto".ToUILocale(), this.ItemType4Desc1.string = "assistant_intelligence_refresh_auto".ToUILocale(), this.ItemType4Desc2.string = "assistant_intelligence_refresh_consume_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.AdventureAutoBattle:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperAdventureChallenge), this.Title.string = "assistant_adventure_auto".ToUILocale(), this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.CrossZoneContinueWarRank:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.ContinuousFight), this.Title.string = "assistant_continuousFight".ToUILocale(), this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.CrossZoneRank:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.CrossZoneRank), this.Title.string = "assistant_crossServerRank".ToUILocale(), this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.GodLandDuel:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperGodLandDuel), this.Title.string = "angelPvp_title".ToUILocale(), this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.EndlessAbyssSingle:
                        case a.HelperOperationType.EndlessAbyssMulti:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperEndlessAbyss);
                            var t = void 0;
                            switch (this._currentAssistantType) {
                                case a.HelperOperationType.EndlessAbyssMulti:
                                    this.Title.string = "assistant_abyss_multi".ToUILocale(), t = a.EndlessAbyssType.MultiMode;
                                    break;
                                case a.HelperOperationType.EndlessAbyssSingle:
                                    this.Title.string = "assistant_abyss_single".ToUILocale(), t = a.EndlessAbyssType.SingleMode
                            }
                            if (this._currentTypeIsUnlock && this._currentTypeIsUnlock[0]) {
                                var n = l.ConfigDataComponent.Instance.GetConfigById(u.EndlessAbyssType_Config, t);
                                this.UnLockTip.node.active = !0, this.UnLockTip.node.color = (new cc.Color).fromHEX("#568F00"), this.UnLockTip.string = l.ConfigDataComponent.Instance.GetLocale("EndlessAbyssType_desc_" + n.Id)
                            }
                            this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.TestTowerChallenge:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperTestTower), this.Title.string = "assistant_tower_name_99".ToUILocale(), this.SetDescItemType1(2), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel), this._descType1ComponentArray[1].Init(a.HelperOperationType.TestTowerRewards, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.TowerHeartChallenge:
                        case a.HelperOperationType.TowerPowerChallenge:
                        case a.HelperOperationType.TowerTechChallenge:
                        case a.HelperOperationType.TowerBreakChallenge:
                        case a.HelperOperationType.TowerFightChallenge:
                            var o = void 0;
                            switch (this._currentAssistantType) {
                                case a.HelperOperationType.TowerHeartChallenge:
                                    o = 1;
                                    break;
                                case a.HelperOperationType.TowerPowerChallenge:
                                    o = 2;
                                    break;
                                case a.HelperOperationType.TowerTechChallenge:
                                    o = 3;
                                    break;
                                case a.HelperOperationType.TowerBreakChallenge:
                                    o = 4;
                                    break;
                                case a.HelperOperationType.TowerFightChallenge:
                                    o = 5
                            }
                            if (this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperElementTower), this._currentTypeIsUnlock && this._currentTypeIsUnlock[0]) {
                                var r = l.ConfigDataComponent.Instance.GetConfigById(u.TestTowerType_Config, o);
                                this.UnLockTip.node.active = !0, this.UnLockTip.node.color = (new cc.Color).fromHEX("#568F00"), this.UnLockTip.string = r.Id.ToTowerOpenTimeDesc()
                            }
                            this.Title.string = ("assistant_tower_name_" + o).ToUILocale(), this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.AllianceTest:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperAlliance), this.Title.string = "AllianceTest".ToUILocale(), this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.CityWarKillRewards:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperAllianceCityWar), this.Title.string = "assistant_alliance_cityWar_title".ToUILocale(), this.SetDescItemType1(5), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel), this._descType1ComponentArray[1].Init(a.HelperOperationType.CityWarAllianceRewards, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel), this._descType1ComponentArray[2].Init(a.HelperOperationType.CityWarTaskRewards, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel), this._descType1ComponentArray[3].Init(a.HelperOperationType.CityWarHang, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel), this._descType1ComponentArray[4].Init(a.HelperOperationType.CityWarBattlePoint, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel), this.SetDescItemType2(2), this._descType2ComponentArray[0].Init(a.HelperOperationType.CityWarBattlePoint, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel, [1]), this._descType2ComponentArray[1].Init(a.HelperOperationType.CityWarBattlePoint, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel, [2]);
                            break;
                        case a.HelperOperationType.ArtefactRelicBuyCount:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperArtefactRelic), this.Title.string = "assistant__artefactRelic_buyCount".ToUILocale(), this.SetDescItemType2(1), this._descType2ComponentArray[0].Init(a.HelperOperationType.ArtefactRelicBuyCount, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.ArtefactRelicWater:
                        case a.HelperOperationType.ArtefactRelicFire:
                        case a.HelperOperationType.ArtefactRelicWind:
                        case a.HelperOperationType.ArtefactRelicLight:
                        case a.HelperOperationType.ArtefactRelicDark:
                        case a.HelperOperationType.ArtefactRelicChaos:
                            var i = 0;
                            l.DataCenter.Instance.GetDataList(s.ArtefactRelic_Model).forEach(function(e) {
                                i += 10 * e.Index + e.MapIndex + 1
                            });
                            var d = void 0;
                            switch (this._currentAssistantType) {
                                case a.HelperOperationType.ArtefactRelicWater:
                                    d = l.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 1), this.Title.string = "assistant__artefactRelic_water".ToUILocale();
                                    break;
                                case a.HelperOperationType.ArtefactRelicFire:
                                    d = l.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 2), this.Title.string = "assistant__artefactRelic_fire".ToUILocale();
                                    break;
                                case a.HelperOperationType.ArtefactRelicWind:
                                    d = l.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 3), this.Title.string = "assistant__artefactRelic_wind".ToUILocale();
                                    break;
                                case a.HelperOperationType.ArtefactRelicLight:
                                    d = l.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 4), this.Title.string = "assistant__artefactRelic_light".ToUILocale();
                                    break;
                                case a.HelperOperationType.ArtefactRelicDark:
                                    d = l.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 5), this.Title.string = "assistant__artefactRelic_dark".ToUILocale();
                                    break;
                                case a.HelperOperationType.ArtefactRelicChaos:
                                    d = l.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 6), this.Title.string = "assistant__artefactRelic_chaos".ToUILocale()
                            }
                            this._currentTypeIsUnlock = [i >= d.Unlock, "HolyRelic_CheckPointNotUnlock".ToUILocale()], this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.SecretAreaExplore:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperSecretAreaExplore), this.Title.string = "secretAreaExplore".ToUILocale(), this.SetDescItemType1(2), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel, [0]), this._descType1ComponentArray[1].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel, [1]);
                            break;
                        case a.HelperOperationType.HolyArea:
                            c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperHolyArea)[0] ? (this._currentTypeIsUnlock = [!1, ""], this._currentTypeIsUnlock[0] = c.default.Instance.IsHolyAreaCompleteMaxStar(), this._currentTypeIsUnlock[1] = "assistant_holyArea_complete_all_tip".ToUILocale()) : this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperHolyArea), this.Title.string = "holyArea_main_title".ToUILocale(), this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel);
                            break;
                        case a.HelperOperationType.StarLightSecret:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperStarLightSecretLand), this.Title.string = "angelPve_title".ToUILocale(), this.SetDescItemType1(2), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel, [0]), this._descType1ComponentArray[1].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel, [1]);
                            break;
                        case a.HelperOperationType.SaintsWar:
                            this._currentTypeIsUnlock = c.default.Instance.IsGameModuleUnlock(a.GameModuleType.HelperStarLightSecretLand), this.Title.string = "\u4e09\u5723\u4e4b\u6218", this.SetDescItemType1(1), this._descType1ComponentArray[0].Init(this._currentAssistantType, this._allAssistantData, this._currentTypeIsUnlock, this._mainPanel)
                    }
                    this.ItemType3Toggle1.interactable = !(this._currentTypeIsUnlock && !this._currentTypeIsUnlock[0]), this.ItemType3Toggle2.interactable = !(this._currentTypeIsUnlock && !this._currentTypeIsUnlock[0]), this.ItemType4Toggle1.interactable = !(this._currentTypeIsUnlock && !this._currentTypeIsUnlock[0]), this.ItemType4Toggle2.interactable = !(this._currentTypeIsUnlock && !this._currentTypeIsUnlock[0]), p.UIUtlity.OffSpriteGray(this.TitleBg), this._currentTypeIsUnlock && !this._currentTypeIsUnlock[0] && (this.LockIconNode.active = !0, p.UIUtlity.OnSpriteGray(this.TitleBg), this._currentTypeIsUnlock[1] && (this.UnLockTip.node.active = !0, this.UnLockTip.node.color = (new cc.Color).fromHEX("#624E3C"), this.UnLockTip.string = this._currentTypeIsUnlock[1]))
                }, t.prototype.SetDescItemType1 = function(e) {
                    for (var t = 0; t < e; t++) {
                        var n = this._descType1ComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._descType1Prefab);
                            o.setParent(this.node), n = o.getComponent(d.default), this._descType1ComponentArray[t] = n
                        }
                        n.node.active = !0, n.node.zIndex = this._nodeZIndex, this._nodeZIndex++
                    }
                }, t.prototype.SetDescItemType2 = function(e) {
                    for (var t = 0; t < e; t++) {
                        var n = this._descType2ComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._descType2Prefab);
                            o.setParent(this.node), n = o.getComponent(h.default), this._descType2ComponentArray[t] = n
                        }
                        n.node.active = !0, n.node.zIndex = this._nodeZIndex, this._nodeZIndex++
                    }
                }, t.prototype.OnItemType3Toggle1Click = function() {
                    switch (this._currentAssistantType) {
                        case a.HelperOperationType.Intelligence:
                            this._currentAssistantData[0] = this.ItemType3Toggle1.isChecked ? 1 : 0
                    }
                    this._mainPanel.SetAllAssistantData(this._currentAssistantType, this._currentAssistantData)
                }, t.prototype.OnItemType3Toggle2Click = function() {
                    switch (this._currentAssistantType) {
                        case a.HelperOperationType.Intelligence:
                            if (!this._intelligenceQuality) {
                                var e = l.DataCenter.Instance.GetStringData(a.UserDataKey.Intelligence);
                                this._intelligenceQuality = e ? Number.parseInt(e) : 4
                            }
                            this._currentAssistantData[1] = this.ItemType3Toggle2.isChecked ? this._intelligenceQuality : 0
                    }
                    this._mainPanel.SetAllAssistantData(this._currentAssistantType, this._currentAssistantData)
                }, t.prototype.OnItemType4Toggle1Click = function() {
                    switch (this._currentAssistantType) {
                        case a.HelperOperationType.Intelligence:
                            this.ItemType4Toggle1.isChecked || (this.ItemType4Toggle2.isChecked = !1), this._currentAssistantData[2] = this.ItemType4Toggle1.isChecked ? 1 : 0
                    }
                    this._mainPanel.SetAllAssistantData(this._currentAssistantType, this._currentAssistantData)
                }, t.prototype.OnItemType4Toggle2Click = function() {
                    switch (this._currentAssistantType) {
                        case a.HelperOperationType.Intelligence:
                            this.ItemType4Toggle2.isChecked ? (this.ItemType4Toggle1.isChecked = !0, this._currentAssistantData[2] = 2) : this._currentAssistantData[2] = this.ItemType4Toggle1.isChecked ? 1 : 0
                    }
                    this._mainPanel.SetAllAssistantData(this._currentAssistantType, this._currentAssistantData)
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Sprite)], t.prototype, "TitleBg", void 0), i([g(cc.Node)], t.prototype, "LockIconNode", void 0), i([g(cc.Label)], t.prototype, "UnLockTip", void 0), i([g(cc.Node)], t.prototype, "ItemType3Node", void 0), i([g(cc.Toggle)], t.prototype, "ItemType3Toggle1", void 0), i([g(cc.Label)], t.prototype, "ItemType3Desc1", void 0), i([g(cc.Toggle)], t.prototype, "ItemType3Toggle2", void 0), i([g(cc.Label)], t.prototype, "ItemType3Desc2", void 0), i([g(cc.Node)], t.prototype, "ItemType4Node", void 0), i([g(cc.Toggle)], t.prototype, "ItemType4Toggle1", void 0), i([g(cc.Label)], t.prototype, "ItemType4Desc1", void 0), i([g(cc.Toggle)], t.prototype, "ItemType4Toggle2", void 0), i([g(cc.Label)], t.prototype, "ItemType4Desc2", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AssistantDescItemType1": "AssistantDescItemType1",
        "./AssistantDescItemType2": "AssistantDescItemType2"
    }],
    AssistantDescItemType1: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "81eb4xy/uVAwY2oouoqPUIb", "AssistantDescItemType1");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../ShareConsts/EnumType"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Toggle = null, t.Desc = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Toggle.node.on("toggle", this.OnToggleClick, this)
                }, t.prototype.onEnable = function() {
                    s.Game.EventDispatcher.On(l.EventKeys.EVENT_ASSISTANT_TOGGLE_1_REFRESH, this.OnToggeleStateChange, this)
                }, t.prototype.onDisable = function() {
                    s.Game.EventDispatcher.Off(l.EventKeys.EVENT_ASSISTANT_TOGGLE_1_REFRESH, this.OnToggeleStateChange, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._currentAssistantType = e, this._allAssistantData = t, this._isUnlockData = n, this._mainPanel = o, this._extraParam = r, this._currentAssistantData = this._allAssistantData[this._currentAssistantType] ? this._allAssistantData[this._currentAssistantType] : [], this.SetUI()
                }, t.prototype.SetUI = function() {
                    var e = this;
                    switch (this._currentAssistantType) {
                        case a.HelperOperationType.AdventureQuickBattle:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_quickBattle_free_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.DailyInstanceQuickBattle:
                            var t = this._extraParam[0];
                            this.Toggle.isChecked = !!this._currentAssistantData[t + 1], this.Desc.string = "assiatant_daily_free_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.AdventureReceiveHangUpReward:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_idle_reward_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.GiveAndReceiveGifts:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_friend_receive_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.AdventureAutoBattle:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_adventure_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.CrossZoneContinueWarRank:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_continuousFight_match_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.CrossZoneRank:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_crossServerRank_match_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.GodLandDuel:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_godLandDuel_match_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.EndlessAbyssSingle:
                        case a.HelperOperationType.EndlessAbyssMulti:
                        case a.HelperOperationType.ArtefactRelicWater:
                        case a.HelperOperationType.ArtefactRelicFire:
                        case a.HelperOperationType.ArtefactRelicWind:
                        case a.HelperOperationType.ArtefactRelicLight:
                        case a.HelperOperationType.ArtefactRelicDark:
                        case a.HelperOperationType.ArtefactRelicChaos:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_battle_auto".ToUILocale();
                            break;
                        case a.HelperOperationType.TestTowerChallenge:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_tower_battle".ToUILocale();
                            break;
                        case a.HelperOperationType.TestTowerRewards:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_tower_daily_reward".ToUILocale();
                            break;
                        case a.HelperOperationType.TowerHeartChallenge:
                        case a.HelperOperationType.TowerPowerChallenge:
                        case a.HelperOperationType.TowerTechChallenge:
                        case a.HelperOperationType.TowerBreakChallenge:
                        case a.HelperOperationType.TowerFightChallenge:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_tower_battle".ToUILocale();
                            break;
                        case a.HelperOperationType.AllianceTest:
                            this.Toggle.isChecked = !!this._currentAssistantData[0];
                            var n = new p.Req_Alliance_TestEnter;
                            c.RpcComponent.Instance.Call(n, function(t) {
                                var n = c.ConfigDataComponent.Instance.GetConfigById(u.AllianceTest_Config, t.TestId),
                                    o = c.ConfigDataComponent.Instance.GetConfigById(u.AllianceTestType_Config, n.Type);
                                e.Desc.string = "assistant_alliance_test_battle".ToUILocale().Fmt(o.Count)
                            });
                            break;
                        case a.HelperOperationType.CityWarKillRewards:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_alliance_cityWar_kill_reward".ToUILocale();
                            break;
                        case a.HelperOperationType.CityWarAllianceRewards:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_alliance_cityWar_city_reward".ToUILocale();
                            break;
                        case a.HelperOperationType.CityWarTaskRewards:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_alliance_cityWar_task_reward".ToUILocale();
                            break;
                        case a.HelperOperationType.CityWarHang:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_alliance_cityWar_hang".ToUILocale();
                            break;
                        case a.HelperOperationType.CityWarBattlePoint:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_alliance_cityWar_buy_point_free".ToUILocale();
                            break;
                        case a.HelperOperationType.SecretAreaExplore:
                            0 == this._extraParam[0] ? (this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_battle_auto".ToUILocale()) : (this.Toggle.isChecked = !!this._currentAssistantData[1], this.Desc.string = "secretArea_auto_set_desc0".ToUILocale());
                            break;
                        case a.HelperOperationType.HolyArea:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_tower_battle".ToUILocale();
                            break;
                        case a.HelperOperationType.StarLightSecret:
                            0 == this._extraParam[0] ? (this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_battle_auto".ToUILocale()) : (this.Toggle.isChecked = !!this._currentAssistantData[1], this.Desc.string = "assistant_godLandDuel_match_max".ToUILocale());
                            break;
                        case a.HelperOperationType.SaintsWar:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant_battle_auto".ToUILocale()
                    }
                    this.Toggle.interactable = !(this._isUnlockData && !this._isUnlockData[0])
                }, t.prototype.OnToggleClick = function() {
                    switch (this._currentAssistantType) {
                        case a.HelperOperationType.AdventureQuickBattle:
                            this.Toggle.isChecked ? this._currentAssistantData[0] = 1 : (this._currentAssistantData[0] = 0, this._currentAssistantData[1] = 0, s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSISTANT_TOGGLE_2_REFRESH, this._currentAssistantType, !1));
                            break;
                        case a.HelperOperationType.DailyInstanceQuickBattle:
                            var e = this._extraParam[0];
                            this.Toggle.isChecked ? this._currentAssistantData[e + 1] = 1 : (this._currentAssistantData[e + 1] = 0, s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSISTANT_TOGGLE_2_REFRESH, this._currentAssistantType, !1, e));
                            break;
                        case a.HelperOperationType.SecretAreaExplore:
                            var t = this._extraParam[0];
                            this._currentAssistantData[t] = this.Toggle.isChecked ? 1 : 0;
                            break;
                        case a.HelperOperationType.StarLightSecret:
                            if (t = this._extraParam[0], this.Toggle.isChecked) {
                                s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ASSISTANT_TOGGLE_1_REFRESH, this._currentAssistantType, !1, t);
                                for (var n = 0; n < this._currentAssistantData.length; n++) n != t && (this._currentAssistantData[n] = 0)
                            }
                            this._currentAssistantData[t] = this.Toggle.isChecked ? 1 : 0;
                            break;
                        default:
                            this._currentAssistantData[0] = this.Toggle.isChecked ? 1 : 0
                    }
                    this._mainPanel.SetAllAssistantData(this._currentAssistantType, this._currentAssistantData)
                }, t.prototype.OnToggeleStateChange = function(e, t, n) {
                    this._currentAssistantType == e && (this._currentAssistantType != a.HelperOperationType.DailyInstanceQuickBattle ? this._currentAssistantType != a.HelperOperationType.StarLightSecret ? this.Toggle.isChecked = t : n != this._extraParam[0] && (this.Toggle.isChecked = !1) : n == this._extraParam[0] && (this.Toggle.isChecked = !!this._currentAssistantData[n + 1]))
                }, i([f(cc.Toggle)], t.prototype, "Toggle", void 0), i([f(cc.Label)], t.prototype, "Desc", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components"
    }],
    AssistantDescItemType2: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d1eb0eQwbtEEZ4QgEHX/1nj", "AssistantDescItemType2");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SliderComponent"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Toggle = null, t.Desc = null, t.SliderComponent = null, t.CountSlider = null, t.TimesLabel = null, t.ConsumeTag = null, t.ConsumeItemIcon = null, t.ConsumeItemCount = null, t._unloadAssets = [], t._adventureSliderValue = 0, t._dailyInstanceSliderValueArray = [], t._dailyInstanceCurrentSliderValue = 0, t._dailyInstanceMaxTimesArray = [], t._cityWarCurrentSliderValue = 0, t._artefactRelicSliderValue = 0, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Toggle.node.on("toggle", this.OnToggleClick, this)
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_ASSISTANT_TOGGLE_2_REFRESH, this.OnToggeleStateChange, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ASSISTANT_TOGGLE_2_REFRESH, this.OnToggeleStateChange, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._currentAssistantType = e, this._allAssistantData = t, this._isUnlockData = n, this._mainPanel = o, this._extraParam = r, this._currentAssistantData = this._allAssistantData[this._currentAssistantType] ? this._allAssistantData[this._currentAssistantType] : [], this.SetUI()
                }, t.prototype.SetUI = function() {
                    switch (this._currentAssistantType) {
                        case f.HelperOperationType.AdventureQuickBattle:
                            if (this.Toggle.isChecked = !!this._currentAssistantData[1], this.Desc.string = "assistant_quickBattle_diamond_auto".ToUILocale(), !this._adventureQuikBattleConfig) {
                                var e = d.default.GetModuleBonus(),
                                    t = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureQuickBattleDailyDiamondCount");
                                this._adventureQuikBattleConfig = p.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, f.LevelParamType.AdventureQuickBattleDiamond);
                                var n = 0 | e[f.ModuleBonusType.QuickBattleDiamond];
                                this._adventureTotalDiamondTimes = n + t
                            }
                            this._currentAssistantData[1] && (this._adventureSliderValue = this._currentAssistantData[1] <= this._adventureTotalDiamondTimes ? this._currentAssistantData[1] : this._adventureTotalDiamondTimes), this.SliderComponent.SetUI(this._adventureSliderValue, this._adventureTotalDiamondTimes, 0, !0), this.SetDiamonCost(this._adventureSliderValue), this.CountSlider.name = [f.HelperOperationType.AdventureQuickBattle].toString();
                            break;
                        case f.HelperOperationType.DailyInstanceQuickBattle:
                            this._dailyInstanceIndex = this._extraParam[0];
                            var o = this._extraParam[1];
                            if (this.Toggle.isChecked = !!this._currentAssistantData[this._dailyInstanceIndex + 2], this.Desc.string = "assistant_daily_diamond_auto".ToUILocale(), !this._dailyInstanceMaxTimesArray[o]) {
                                var r = d.default.GetModuleBonus(),
                                    i = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("DailyInstanceFreeBattleCountDaily"),
                                    a = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("DailyInstanceMaxBattleCountDaily"),
                                    s = 0 | r[f.ModuleBonusType.DailyInstance];
                                this._dailyInstanceMaxTimesArray[o] = a - i + s
                            }
                            this._currentAssistantData[this._dailyInstanceIndex] = o, this._dailyInstanceSliderValueArray[o] || (this._dailyInstanceSliderValueArray[o] = this._currentAssistantData[this._dailyInstanceIndex + 2]), this._dailyInstanceCurrentSliderValue = this._dailyInstanceSliderValueArray[o] ? this._dailyInstanceSliderValueArray[o] : 0, this.SliderComponent.SetUI(this._dailyInstanceCurrentSliderValue, this._dailyInstanceMaxTimesArray[o], 0, !0), this.CountSlider.name = [f.HelperOperationType.DailyInstanceQuickBattle, o].toString(), this.SetDiamonCost(this._dailyInstanceCurrentSliderValue);
                            break;
                        case f.HelperOperationType.CityWarBattlePoint:
                            var l = this._extraParam[0];
                            this.Toggle.isChecked = !!this._currentAssistantData[l];
                            var c = p.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, f.LevelParamType.BuyAllianceCityWarBattlePointPrice),
                                u = p.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, f.LevelParamType.BuyAllianceCityWarBattlePoint);
                            this._citywarBuyPrice = c.Data2[l].Items[0], this.Desc.string = "assistant_alliance_cityWar_buy_point_diamon".ToUILocale().Fmt(this._citywarBuyPrice);
                            var y = u.Data2[l].Items[1];
                            this._cityWarCurrentSliderValue = this._currentAssistantData[l] ? this._currentAssistantData[l] : 0, this.SliderComponent.SetUI(this._cityWarCurrentSliderValue, y, 0, !0), this.SetDiamonCost(this._cityWarCurrentSliderValue), this.CountSlider.name = [f.HelperOperationType.CityWarBattlePoint, l].toString();
                            break;
                        case f.HelperOperationType.ArtefactRelicBuyCount:
                            this.Toggle.isChecked = !!this._currentAssistantData[0], this.Desc.string = "assistant__artefactRelic_buyCount_desc".ToUILocale(), y = p.ConfigDataComponent.Instance.GetConfigById(h.GlobalSetting_Config, "ArtefactRelicDailyPayCount").Value, this._artefactRelicSliderValue = this._currentAssistantData[0] ? this._currentAssistantData[0] : 0, this.SliderComponent.SetUI(this._artefactRelicSliderValue, y, 0, !0), this.SetDiamonCost(this._artefactRelicSliderValue), this.CountSlider.name = [f.HelperOperationType.ArtefactRelicBuyCount].toString()
                    }
                    this.Toggle.interactable = !(this._isUnlockData && !this._isUnlockData[0])
                }, t.prototype.SetDiamonCost = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    switch (this.TimesLabel.string = "assistant_consume_times".ToUILocale().Fmt(e), t = 0, this._currentAssistantType) {
                                        case f.HelperOperationType.AdventureQuickBattle:
                                            for (o = 1; o <= e; o++) o > this._adventureQuikBattleConfig.Data.length ? t += this._adventureQuikBattleConfig.Data[this._adventureQuikBattleConfig.Data.length - 1] : t += this._adventureQuikBattleConfig.Data[o - 1];
                                            n = f.CommonItemId.Diamond;
                                            break;
                                        case f.HelperOperationType.DailyInstanceQuickBattle:
                                            r = p.ConfigDataComponent.Instance.GetConfigById(h.DailyInstance_Config, this._extraParam[1]), t = e * r.BattlePrice, n = f.CommonItemId.Diamond;
                                            break;
                                        case f.HelperOperationType.CityWarBattlePoint:
                                            t = e * this._citywarBuyPrice, n = f.CommonItemId.Diamond;
                                            break;
                                        case f.HelperOperationType.ArtefactRelicBuyCount:
                                            i = p.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, f.LevelParamType.ArtefactRelicBuyCount), t = e * i.Data2[0].Items[1], n = i.Data2[0].Items[0]
                                    }
                                    return this.ConsumeItemCount.string = t.toString(), this._diamondIcon ? [3, 2] : (a = d.default.Instance.GetItemPathById(n), [4, c.AssetsManager.Instance.LoadAsset(a, cc.SpriteFrame)]);
                                case 1:
                                    if (l = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(l), [2];
                                    this._unloadAssets.push(l), this._diamondIcon = l, s.label = 2;
                                case 2:
                                    return this.ConsumeItemIcon.spriteFrame = this._diamondIcon, [2]
                            }
                        })
                    })
                }, t.prototype.OnToggleClick = function() {
                    switch (this._currentAssistantType) {
                        case f.HelperOperationType.AdventureQuickBattle:
                            this.Toggle.isChecked ? (this._currentAssistantData[0] = 1, this._currentAssistantData[1] = this._adventureSliderValue, c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_ASSISTANT_TOGGLE_1_REFRESH, this._currentAssistantType, !0)) : this._currentAssistantData[1] = 0;
                            break;
                        case f.HelperOperationType.DailyInstanceQuickBattle:
                            var e = this._extraParam[0];
                            this.Toggle.isChecked ? (this._currentAssistantData[e + 1] = 1, this._currentAssistantData[e + 2] = this._dailyInstanceCurrentSliderValue, c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_ASSISTANT_TOGGLE_1_REFRESH, this._currentAssistantType, !0, e)) : this._currentAssistantData[e + 2] = 0;
                            break;
                        case f.HelperOperationType.CityWarBattlePoint:
                            var t = this._extraParam[0];
                            this.Toggle.isChecked ? this._currentAssistantData[t] = this._cityWarCurrentSliderValue : this._currentAssistantData[t] = 0;
                            break;
                        case f.HelperOperationType.ArtefactRelicBuyCount:
                            this.Toggle.isChecked ? this._currentAssistantData[0] = this._artefactRelicSliderValue : this._currentAssistantData[0] = 0
                    }
                    this._mainPanel.SetAllAssistantData(this._currentAssistantType, this._currentAssistantData)
                }, t.prototype.OnSliderDragOver = function(e, t) {
                    if (!this._isUnlockData || this._isUnlockData[0]) {
                        var n = t.split(",");
                        if (Number(n[0]) == this._currentAssistantType) {
                            switch (this._currentAssistantType) {
                                case f.HelperOperationType.AdventureQuickBattle:
                                    this._adventureSliderValue = e, this.Toggle.isChecked && (this._currentAssistantData[1] = this._adventureSliderValue);
                                    break;
                                case f.HelperOperationType.DailyInstanceQuickBattle:
                                    if (Number(n[1]) != this._extraParam[1]) return;
                                    this._dailyInstanceSliderValueArray[this._extraParam[1]] = e, this._dailyInstanceCurrentSliderValue = e, this.Toggle.isChecked && (this._currentAssistantData[this._dailyInstanceIndex + 2] = this._dailyInstanceCurrentSliderValue);
                                    break;
                                case f.HelperOperationType.CityWarBattlePoint:
                                    var o = this._extraParam[0];
                                    if (Number(n[1]) != o) return;
                                    this._cityWarCurrentSliderValue = e, this.Toggle.isChecked && (this._currentAssistantData[o] = this._cityWarCurrentSliderValue);
                                    break;
                                case f.HelperOperationType.ArtefactRelicBuyCount:
                                    this._artefactRelicSliderValue = e, this.Toggle.isChecked && (this._currentAssistantData[0] = this._artefactRelicSliderValue)
                            }
                            this.SetDiamonCost(e), this.Toggle.isChecked && this._mainPanel.SetAllAssistantData(this._currentAssistantType, this._currentAssistantData)
                        }
                    }
                }, t.prototype.OnToggeleStateChange = function(e, t, n) {
                    this._currentAssistantType == e && (this._currentAssistantType != f.HelperOperationType.DailyInstanceQuickBattle ? this.Toggle.isChecked = t : n == this._extraParam[0] && (this.Toggle.isChecked = !!this._currentAssistantData[n + 2]))
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([m(cc.Toggle)], t.prototype, "Toggle", void 0), i([m(cc.RichText)], t.prototype, "Desc", void 0), i([m(l.default)], t.prototype, "SliderComponent", void 0), i([m(cc.Slider)], t.prototype, "CountSlider", void 0), i([m(cc.Label)], t.prototype, "TimesLabel", void 0), i([m(cc.Label)], t.prototype, "ConsumeTag", void 0), i([m(cc.Sprite)], t.prototype, "ConsumeItemIcon", void 0), i([m(cc.RichText)], t.prototype, "ConsumeItemCount", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "./SliderComponent": "SliderComponent"
    }],
    AssistantDescItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "69f80ke9YRGB7ohiFY2fpey", "AssistantDescItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../ShareConsts/EnumType"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Components/Components"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DescToggle = null, t.Desc = null, t.TimesNode = null, t.Times = null, t.CompleteNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.DescToggle.node.on("toggle", this.ClickDescToggle, this)
                }, t.prototype.initData = function(e) {
                    this._data = e, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetToggle(), this.SetDesc(), this.SetTimes()
                }, t.prototype.SetToggle = function() {
                    var e, t = s.DataCenter.Instance.GetStringData(a.UserDataKey.Helper);
                    t ? (e = JSON.parse(t))[this._data.DescKey] ? this.DescToggle.isChecked = !0 : 0 == e[this._data.DescKey] ? this.DescToggle.isChecked = !1 : this.DescToggle.isChecked = this._data.DefaultSelect : this.DescToggle.isChecked = this._data.DefaultSelect
                }, t.prototype.SetDesc = function() {
                    this.Desc.string = this._data.Desc
                }, t.prototype.SetTimes = function() {
                    this._data.Time || this._data.MaxTime ? (this.CompleteNode.active = !1, this.TimesNode.active = !0, this._data.Time >= this._data.MaxTime ? this.Times.string = this._data.MaxTime.FmtRemainTime() : (this._startTime = s.RpcComponent.Instance.ServerTime, this._endTime = s.RpcComponent.Instance.ServerTime + (this._data.MaxTime - this._data.Time), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1))) : this._data.RemainTimes > 0 ? (this.CompleteNode.active = !1, this.TimesNode.active = !0, this.Times.string = this._data.RemainTimes + "/" + this._data.TotalTimes) : (this.CompleteNode.active = !0, this.TimesNode.active = !1)
                }, t.prototype.CountDown = function() {
                    s.RpcComponent.Instance.ServerTime >= this._endTime ? (this.Times.string = this._data.MaxTime.FmtRemainTime(), this.unschedule(this.CountDown)) : this.Times.string = (s.RpcComponent.Instance.ServerTime - this._startTime + this._data.Time).FmtRemainTime()
                }, t.prototype.ClickDescToggle = function(e) {
                    if (e.isChecked) switch (this._data.DescKey) {
                        case a.HelperOperationType.AdventureQuickBattle + "_2":
                            var t = "assistant_tip_auto_buy".ToUILocale().Fmt(this._data.Cost);
                            this.SetFirstClickHint(t);
                            break;
                        case a.HelperOperationType.DailyInstanceQuickBattle + "_2":
                            t = "assistant_tip_daily_auto_buy".ToUILocale().Fmt(this._data.Cost), this.SetFirstClickHint(t);
                            break;
                        case a.HelperOperationType.CrossZoneContinueWarRank + "_1":
                        case a.HelperOperationType.CrossZoneRank + "_1":
                            t = "assistant_tip_auto_match".ToUILocale().Fmt(), this.SetFirstClickHint(t);
                            break;
                        case a.HelperOperationType.RelicTreasureHunt + "_2":
                            t = "assistant_tip_dice_auto_buy".ToUILocale().Fmt(this._data.Cost), this.SetFirstClickHint(t);
                            break;
                        default:
                            this.SetSelectToggle(!0)
                    } else this.SetSelectToggle(!1);
                    this.SetToggle()
                }, t.prototype.SetSelectToggle = function(e) {
                    var t, n = this,
                        o = s.DataCenter.Instance.GetStringData(a.UserDataKey.Helper);
                    (t = o ? JSON.parse(o) : {})[this._data.DescKey] = e;
                    var r = new l.Req_Game_SetFrontStatusData;
                    r.Type = a.UserDataKey.Helper, r.Value = JSON.stringify(t), u.RpcComponent.Instance.Call(r, function() {
                        n.SetToggle()
                    })
                }, t.prototype.ShowHint = function(e) {
                    var t = this;
                    c.UIUtlity.ShowHintPanel("", e, "", function() {
                        t.SetSelectToggle(!1)
                    }, "", function() {
                        t.SetSelectToggle(!0)
                    })
                }, t.prototype.SetFirstClickHint = function(e) {
                    var t, n = s.DataCenter.Instance.GetStringData(a.UserDataKey.Helper);
                    n ? null == (t = JSON.parse(n))[this._data.DescKey] || null == t[this._data.DescKey] ? this.ShowHint(e) : this.SetSelectToggle(!0) : this.ShowHint(e)
                }, i([h(cc.Toggle)], t.prototype, "DescToggle", void 0), i([h(cc.Label)], t.prototype, "Desc", void 0), i([h(cc.Node)], t.prototype, "TimesNode", void 0), i([h(cc.Label)], t.prototype, "Times", void 0), i([h(cc.Node)], t.prototype, "CompleteNode", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    AssistantListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3b358dQZt5Lp40vlnHsZJre", "AssistantListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../Consts/Consts"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("./AssistantDescItem"),
            h = e("../../Components/Components"),
            f = e("../../../Util/AppUtil"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Content = null, t._descItemNodes = [], t._cost = 0, t.dailyInstanceType = [l.ModuleBonusType.DailyInstanceCoinCount, l.ModuleBonusType.DailyInstanceXpCount, l.ModuleBonusType.DailyInstanceHeroCount, l.ModuleBonusType.DailyInstanceCharmCount], t
                }
                return r(t, e), t.prototype.initData = function(e, t) {
                    this._type = e, this._descItemPrefab = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetDescNode()
                }, t.prototype.InitNodes = function() {
                    this._descItemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetDescNode = function() {
                    var e = this,
                        t = "";
                    this._assistantDescItemDatas = [];
                    var n = p.default.GetModuleBonus();
                    switch (this._type) {
                        case u.HelperOperationType.AdventureQuickBattle:
                            t = "assistant_quick_battle".ToUILocale();
                            var o = {},
                                r = {},
                                i = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureQuickBattleDailyCount"),
                                y = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureQuickBattleDailyDiamondCount"),
                                g = a.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, u.LevelParamType.AdventureQuickBattleDiamond),
                                m = a.DataCenter.Instance.GetDataById(s.Adventure_Model, 1),
                                I = (0 | n[u.ModuleBonusType.QuickBattleFree]) + i,
                                _ = (0 | n[u.ModuleBonusType.QuickBattleDiamond]) + y;
                            this._cost = 0;
                            for (var C = 1; C <= _; C++) C > m.DailyQuickCount && (C > g.Data.length ? this._cost += g.Data[g.Data.length - 1] : this._cost += g.Data[C - 1]);
                            o.DescKey = u.HelperOperationType.AdventureQuickBattle + "_1", o.DefaultSelect = !0, o.Desc = "assistant_quickBattle_free_auto".ToUILocale(), o.RemainTimes = I - m.DailyCount > 0 ? I - m.DailyCount : 0, o.TotalTimes = I, r.DescKey = u.HelperOperationType.AdventureQuickBattle + "_2", r.DefaultSelect = !1, r.Desc = "assistant_quickBattle_diamond_auto".ToUILocale(), r.RemainTimes = _ - m.DailyQuickCount > 0 ? _ - m.DailyQuickCount : 0, r.TotalTimes = _, r.Cost = this._cost, this._assistantDescItemDatas.push(o), this._assistantDescItemDatas.push(r);
                            break;
                        case u.HelperOperationType.DailyInstanceQuickBattle:
                            t = "assistant_daily_battle".ToUILocale(), o = {}, r = {};
                            var v = p.default.GetModuleBonus(),
                                b = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("DailyInstanceFreeBattleCountDaily"),
                                S = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("DailyInstanceMaxBattleCountDaily"),
                                w = 0,
                                P = (I = 0, 0);
                            _ = 0, this._cost = 0;
                            for (var A = 0; A < this.dailyInstanceType.length; A++) {
                                var T = a.DataCenter.Instance.GetDataById(s.DailyInstance_Model, A + 1),
                                    R = a.ConfigDataComponent.Instance.GetConfigById(c.DailyInstance_Config, A + 1),
                                    L = 0 | v[this.dailyInstanceType[A]],
                                    k = 0 | v[l.ModuleBonusType.DailyInstance],
                                    O = T && T.FreeBattleCount ? T.FreeBattleCount : 0,
                                    M = T && T.BattleCount ? T.BattleCount : 0,
                                    D = b + L;
                                w += D - O > 0 ? D - O : 0, I += D;
                                var B = S - b + k,
                                    N = B - M > 0 ? B - M : 0;
                                P += N, _ += B, this._cost += N * R.BattlePrice
                            }
                            o.DescKey = u.HelperOperationType.DailyInstanceQuickBattle + "_1", o.DefaultSelect = !0, o.Desc = "assiatant_daily_free_auto".ToUILocale(), o.RemainTimes = w, o.TotalTimes = I, r.DescKey = u.HelperOperationType.DailyInstanceQuickBattle + "_2", r.DefaultSelect = !1, r.Desc = "assistant_daily_diamond_auto".ToUILocale(), r.RemainTimes = P, r.TotalTimes = _, r.Cost = this._cost, this._assistantDescItemDatas.push(o), this._assistantDescItemDatas.push(r);
                            break;
                        case u.HelperOperationType.AdventureReceiveHangUpReward:
                            t = "assistant_idle_reward".ToUILocale(), o = {};
                            var E = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureHangUpRewardTimeUpperLimit"),
                                U = 0 | n[u.ModuleBonusType.HangUpRewardTime],
                                G = (m = a.DataCenter.Instance.GetDataById(s.Adventure_Model, 1), (E + 60 * U) * l.Etc.MinuteDuration),
                                x = m && m.ReceiveTime ? m.ReceiveTime : 0,
                                H = a.RpcComponent.Instance.ServerTime,
                                F = H - x > G ? G : H - x;
                            o.DescKey = u.HelperOperationType.AdventureReceiveHangUpReward + "_1", o.DefaultSelect = !0, o.Desc = "assistant_idle_reward_auto".ToUILocale(), o.Time = F, o.MaxTime = G, this._assistantDescItemDatas.push(o);
                            break;
                        case u.HelperOperationType.GiveAndReceiveGifts:
                            t = "assistant_friend".ToUILocale(), o = {};
                            var j = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendAcceptGiftCountLimit"),
                                W = a.DataCenter.Instance.GetIntData(u.UserDataKey.AcceptGiftCount);
                            o.DescKey = u.HelperOperationType.GiveAndReceiveGifts + "_1", o.DefaultSelect = !0, o.Desc = "assistant_friend_receive_auto".ToUILocale(), o.RemainTimes = j - W, o.TotalTimes = j, this._assistantDescItemDatas.push(o);
                            break;
                        case u.HelperOperationType.CrossZoneContinueWarRank:
                            t = "assistant_continuousFight".ToUILocale(), o = {};
                            var z = (q = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneContinueWarRankDailyFreeChallengeCount")) - (V = a.DataCenter.Instance.GetIntData(l.UserDataKey.CrossZoneContinueWarRankChallengeCount)) > 0 ? q - V : 0;
                            o.DescKey = u.HelperOperationType.CrossZoneContinueWarRank + "_1", o.DefaultSelect = !1, o.Desc = "assistant_continuousFight_match_auto".ToUILocale(), o.RemainTimes = z, o.TotalTimes = q, this._assistantDescItemDatas.push(o);
                            break;
                        case u.HelperOperationType.CrossZoneRank:
                            var q, V;
                            t = "assistant_crossServerRank".ToUILocale(), o = {}, z = (q = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankDailyFreeChallengeCount")) - (V = a.DataCenter.Instance.GetIntData(l.UserDataKey.CrossZoneRankChallengeCount)) > 0 ? q - V : 0, o.DescKey = u.HelperOperationType.CrossZoneRank + "_1", o.DefaultSelect = !1, o.Desc = "assistant_crossServerRank_match_auto".ToUILocale(), o.RemainTimes = z, o.TotalTimes = q, this._assistantDescItemDatas.push(o);
                            break;
                        case u.HelperOperationType.RelicTreasureHunt:
                            t = "assistant_relicTreasure".ToUILocale(), o = {}, r = {};
                            var Z = a.DataCenter.Instance.GetDataById(s.RelicTreasureHunt_Model, 1),
                                K = a.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("RelicTreasureHuntBuyDiceLimit"),
                                J = f.AppUtil.ToInt(a.ConfigDataComponent.Instance.GetGlobalSettingByKey("RelicTreasureHuntDicePrice")),
                                X = 0 | p.default.GetModuleBonusByType(l.ModuleBonusType.RelicBuyDice),
                                Q = h.DataCenter.Instance.GetItemCount(l.CommonItemId.DiceId),
                                Y = Z && Z.PurchasedDiceCount ? Z.PurchasedDiceCount : 0;
                            this._cost = (K + X - Y) * J, o.DescKey = u.HelperOperationType.RelicTreasureHunt + "_1", o.DefaultSelect = !0, o.Desc = "assistant_dice_free_auto".ToUILocale(), o.RemainTimes = Q, o.TotalTimes = Q, r.DescKey = u.HelperOperationType.RelicTreasureHunt + "_2", r.DefaultSelect = !1, r.Desc = "assistant_dice_diamond_auto".ToUILocale(), r.RemainTimes = K + X - Y, r.TotalTimes = K + X, r.Cost = this._cost, this._assistantDescItemDatas.push(o), this._assistantDescItemDatas.push(r)
                    }
                    this.Title.string = t, this._assistantDescItemDatas.forEach(function(t, n) {
                        if (!e._descItemNodes[n]) {
                            var o = cc.instantiate(e._descItemPrefab);
                            o.parent = e.Content, e._descItemNodes[n] = o
                        }
                        e._descItemNodes[n].active = !0, e._descItemNodes[n].getComponent(d.default).initData(t)
                    })
                }, Object.defineProperty(t.prototype, "type", {
                    get: function() {
                        return this._type
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "cost", {
                    get: function() {
                        return this._cost
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "assistantDescItemDatas", {
                    get: function() {
                        return this._assistantDescItemDatas
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Node)], t.prototype, "Content", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "./AssistantDescItem": "AssistantDescItem"
    }],
    AssistantPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7103bFduOFM+buXXxBUJOWt", "AssistantPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("./AssistantListItem"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Components/Components"),
            _ = e("../../../Consts/Consts"),
            C = e("../../Auxiliary/GameRecord"),
            v = e("../../RedDot/RedDotManager"),
            b = e("./ContinuousFightPanel"),
            S = e("./CrossServerRankPanel"),
            w = e("../../../Util/TimeUtil"),
            P = e("../Battle/BattleManager"),
            A = e("./MallPrivilegeMainPanel"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RuleButton = null, t.ListContent = null, t.AutoCompleteButton = null, t.AutoCompleteLabel = null, t.LockButton = null, t.LockLabel = null, t.GiftPackButton = null, t.GiftPackLabel = null, t._listItemNodes = [], t._assistantFunctions = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("AssistantPanel/SubItems/AssistantListItem", cc.Prefab), this.LoadDynamicAsset("AssistantPanel/SubItems/AssistantDescItem", cc.Prefab)]).then(function(e) {
                                        t._listItemPrefab = e[0], t._descItemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AutoCompleteLabel.string = "assistant_auto_complete".ToUILocale(), this.GiftPackLabel.string = "assistant_gift".ToUILocale(), this.LockLabel.string = "assistant_auto_complete".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.AutoCompleteButton.node.on("click", this.OnAutoCompleteButtonClick, this), this.LockButton.node.on("click", this.OnLockButtonClick, this), this.GiftPackButton.node.on("click", this.OnGiftPackButtonClick, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this);
                    var t = u.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, f.LevelParamType.HelperOperations);
                    this._assistantFunctions = t.Data
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent(), C.default.SetItem(C.GameRecordDefine.AssistantDailyReddot, u.RpcComponent.Instance.ServerTime), v.RedDotManager.Instance.RefreshRedDotNode(v.RedDotManager.Instance.RedDot.AssistantNode)
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetListContent(), this.SetAutoButton()
                }, t.prototype.InitNodes = function() {
                    this._listItemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetListContent = function() {
                    var e = this,
                        t = [];
                    this._assistantFunctions.forEach(function(n) {
                        e.GetFunctionDataByType(n).isUnlock && t.push(n)
                    }), t.forEach(function(t, n) {
                        if (!e._listItemNodes[n]) {
                            var o = cc.instantiate(e._listItemPrefab);
                            o.parent = e.ListContent, e._listItemNodes[n] = o
                        }
                        e._listItemNodes[n].active = !0, e._listItemNodes[n].getComponent(y.default).initData(t, e._descItemPrefab)
                    })
                }, t.prototype.SetAutoButton = function() {
                    var e = g.default.Instance.IsGameModuleUnlock(p.GameModuleType.Helper)[0],
                        t = !0,
                        n = g.default.GetModuleBonus();
                    n[p.ModuleBonusType.Helper] && 0 != n[p.ModuleBonusType.Helper].length || (t = !1), this.AutoCompleteButton.node.active = e && t, this.LockButton.node.active = !(e && t)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "assistant_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["assistant_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.CheckIntelligenceFunction = function() {
                    var e = this.CheckIsSelect(!0, f.HelperOperationType.AdventureQuickBattle + "_1"),
                        t = this.CheckIsSelect(!1, f.HelperOperationType.AdventureQuickBattle + "_2"),
                        n = this.CheckIsSelect(!0, f.HelperOperationType.AdventureReceiveHangUpReward + "_1");
                    return e || t || n
                }, t.prototype.OnAutoCompleteButtonClick = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.IsIntelligenceOverFlow() && this.CheckIntelligenceFunction() ? (e = f.CommonItemId.Intelligence.ToItemName(), t = "assistant_auto_complete".ToUILocale(), n = "intelligence_tittle".ToUILocale(), o = "intelligence_hint_overflow".ToUILocale().Fmt(t, e, n, e), [4, h.UIUtlity.ShowHintPanel("", o, "", function() {
                                        r.AutoComplete(!1)
                                    }, "", function() {
                                        r.AutoComplete(!0)
                                    })]) : [3, 2];
                                case 1:
                                    return i.sent().DisableMaskClose(), [3, 3];
                                case 2:
                                    this.AutoComplete(!0), i.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.AutoComplete = function(e) {
                    var t, o = this,
                        r = 0,
                        i = [];
                    this._listItemNodes.forEach(function(e) {
                        if (e.active) {
                            var t = e.getComponent(y.default);
                            switch (t.type) {
                                case f.HelperOperationType.AdventureQuickBattle:
                                case f.HelperOperationType.DailyInstanceQuickBattle:
                                case f.HelperOperationType.RelicTreasureHunt:
                                    t.assistantDescItemDatas.length > 1 && o.CheckIsSelect(t.assistantDescItemDatas[1].DefaultSelect, t.assistantDescItemDatas[1].DescKey) && (r += t.cost)
                            }
                        }
                    }), t = I.DataCenter.Instance.IsItemEnough(f.CommonItemId.Diamond, r), this._listItemNodes.forEach(function(n) {
                        if (n.active) {
                            var r = n.getComponent(y.default),
                                a = new d.IntArray;
                            switch (r.type) {
                                case f.HelperOperationType.AdventureReceiveHangUpReward:
                                    if (o.CheckIsSelect(r.assistantDescItemDatas[0].DefaultSelect, r.assistantDescItemDatas[0].DescKey) && e) {
                                        var s = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureHangUpRewardTimeLowerLimit"),
                                            l = u.DataCenter.Instance.GetDataById(d.Adventure_Model, 1),
                                            c = l && l.ReceiveTime ? l.ReceiveTime : 0;
                                        u.RpcComponent.Instance.ServerTime - c > s * _.Etc.SecondDuration && (a.Items = [f.HelperOperationType.AdventureReceiveHangUpReward, 1], i.push(a))
                                    }
                                    break;
                                case f.HelperOperationType.AdventureQuickBattle:
                                    (p = o.GetRequestParams(r.type, r.assistantDescItemDatas, t)).length > 0 && e && (a.Items = p, i.push(a));
                                    break;
                                default:
                                    var p;
                                    (p = o.GetRequestParams(r.type, r.assistantDescItemDatas, t)).length > 0 && (a.Items = p, i.push(a))
                            }
                        }
                    });
                    var a = [];
                    if (0 != i.length) {
                        i.forEach(function(e) {
                            var t = e.Items[0];
                            if (t == f.HelperOperationType.CrossZoneContinueWarRank) {
                                var o = !0;
                                if (7 == w.TimeUtil.GetWeekDay(u.RpcComponent.Instance.ServerTime)) {
                                    var r = w.TimeUtil.Get0ClockTs(u.RpcComponent.Instance.ServerTime),
                                        i = r + 756e5,
                                        s = r + 864e5;
                                    u.RpcComponent.Instance.ServerTime >= i && u.RpcComponent.Instance.ServerTime < s && (o = !1)
                                }
                                o ? n.SetContinuousFightAutoComplete() : a.push("assistant_continuousFight_limit".ToUILocale())
                            } else t == f.HelperOperationType.CrossZoneRank && (g.default.IsCrossServerLadderChallengeEnable() ? n.SetCrossServerRankAutoComplete() : a.push("assistant_crossServerRank_limit".ToUILocale()))
                        });
                        var s = new d.Req_Game_HelperOneClick;
                        s.Params = i, u.RpcComponent.Instance.Call(s, function(e) {
                            if (!t || e.Failed.length > 0 || !g.default.IsCrossServerLadderChallengeEnable()) {
                                var n = "";
                                t || a.push("assistant_diamond_not_enough".ToUILocale()), e.Failed.length > 0 && e.Failed.forEach(function(e) {
                                    var t = e.Items[0],
                                        n = (e.Items[1], o.GetFunctionDataByType(t).name);
                                    a.push("assistant_tip".ToUILocale().Fmt(n))
                                }), a.forEach(function(e, t) {
                                    t != a.length - 1 ? n += e + "\u3001" : n += e
                                }), n.length > 0 ? h.UIUtlity.ShowForceConfirmPanel("", n, "ok".ToUILocale(), function() {
                                    e.Rewards.length > 0 && h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                                }) : e.Rewards.length > 0 && h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            } else e.Rewards.length > 0 && h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else t ? h.UIUtlity.ShowFloatingHint("assistant_all_complete".ToUILocale()) : h.UIUtlity.ShowFloatingHint("assistant_diamond_not_enough".ToUILocale())
                }, t.prototype.GetRequestParams = function(e, t, n) {
                    var o = this,
                        r = 0,
                        i = 0,
                        a = [];
                    return t.length > 1 ? (t.forEach(function(e, t) {
                        o.CheckIsSelect(e.DefaultSelect, e.DescKey) && (0 == t ? r = e.RemainTimes > 0 ? 1 : 0 : i = e.RemainTimes > 0 && n ? 1 : 0)
                    }), 1 != r && 1 != i || (a = [e, r, i])) : this.CheckIsSelect(t[0].DefaultSelect, t[0].DescKey) && 1 == (r = t[0].RemainTimes > 0 ? 1 : 0) && (a = [e, r]), a
                }, t.prototype.OnLockButtonClick = function() {
                    if (!g.default.Instance.IsGameModuleUnlock(p.GameModuleType.Helper)[0]) {
                        var e = g.default.Instance.IsGameModuleUnlock(p.GameModuleType.Helper)[1];
                        h.UIUtlity.ShowFloatingHint(e)
                    }
                    var t = g.default.GetModuleBonus();
                    t[p.ModuleBonusType.Helper] && 0 != t[p.ModuleBonusType.Helper].length || l.UIManager.Instance.ShowUIPanel(m.PanelConfig.MallPrivilegeGiftPanel.Path, A.MallPrivilegeBasePageType.Subscribe)
                }, t.prototype.OnGiftPackButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.MallPrivilegeGiftPanel.Path, A.MallPrivilegeBasePageType.Subscribe)
                }, t.prototype.CheckIsSelect = function(e, t) {
                    var n, o = u.DataCenter.Instance.GetStringData(f.UserDataKey.Helper);
                    return o ? !!(n = JSON.parse(o))[t] || 0 != n[t] && e : e
                }, t.prototype.GetFunctionDataByType = function(e) {
                    var t, n = !0,
                        o = {};
                    switch (e) {
                        case f.HelperOperationType.AdventureQuickBattle:
                            t = "assistant_quick_battle".ToUILocale(), n = g.default.Instance.IsGameModuleUnlock(p.GameModuleType.QuickBattle)[0];
                            break;
                        case f.HelperOperationType.DailyInstanceQuickBattle:
                            t = "assistant_daily_battle".ToUILocale(), n = g.default.Instance.IsGameModuleUnlock(p.GameModuleType.DailyInstanceCoin)[0];
                            break;
                        case f.HelperOperationType.AdventureReceiveHangUpReward:
                            t = "assistant_idle_reward".ToUILocale();
                            break;
                        case f.HelperOperationType.GiveAndReceiveGifts:
                            t = "assistant_friend".ToUILocale(), n = g.default.Instance.IsGameModuleUnlock(p.GameModuleType.Friends)[0];
                            break;
                        case f.HelperOperationType.CrossZoneContinueWarRank:
                            t = "assistant_continuousFight".ToUILocale(), n = g.default.Instance.IsGameModuleUnlock(p.GameModuleType.ContinuousFight)[0];
                            break;
                        case f.HelperOperationType.CrossZoneRank:
                            t = "assistant_crossServerRank".ToUILocale(), n = g.default.Instance.IsGameModuleUnlock(p.GameModuleType.CrossZoneRank)[0];
                            break;
                        case f.HelperOperationType.RelicTreasureHunt:
                            t = "assistant_relicTreasure".ToUILocale(), n = g.default.Instance.IsGameModuleUnlock(p.GameModuleType.RelicTreasureHunt)[0]
                    }
                    return o.isUnlock = n, o.name = t, o
                }, t.SetContinuousFightAutoComplete = function() {
                    var e = I.DataCenter.Instance.GetDataById(d.UserFormation_Model, _.FormationIdType.CrossZoneContinueWarRankAttack1),
                        t = !1;
                    if (e && e.HeroIds && e.HeroIds.forEach(function(e) {
                            e > 0 && (t = !0)
                        }), !P.BattleManager.Instance.IsInBattle(p.MapType.CrossZoneContinueWarRank) && n.CheckContinuousFight())
                        if (b.default.IsAssistantComplete = !0, t) o = new d.Req_Map_CrossZoneContinueWarRankChallenge, u.RpcComponent.Instance.Call(o, n.OnContinuousFightRequestMatchingSuccess, n.OnContinuousFightRequestMatchingFail);
                        else {
                            var o = new d.Req_Map_CrossZoneContinueWarRankEnter;
                            u.RpcComponent.Instance.Call(o, function() {
                                var e = new d.Req_Map_CrossZoneContinueWarRankChallenge;
                                u.RpcComponent.Instance.Call(e, n.OnContinuousFightRequestMatchingSuccess, n.OnContinuousFightRequestMatchingFail)
                            })
                        }
                }, t.OnContinuousFightRequestMatchingSuccess = function(e) {
                    b.default.BattleInfo = e, b.default.BattleReports = e.Reports, b.default.StartBattle()
                }, t.OnContinuousFightRequestMatchingFail = function() {
                    b.default.IsAssistantComplete = !1;
                    var e = "assistant_continuousFight".ToUILocale();
                    h.UIUtlity.ShowFloatingHint("assistant_tip".ToUILocale().Fmt(e))
                }, t.CheckContinuousFight = function() {
                    if (7 == w.TimeUtil.GetWeekDay(u.RpcComponent.Instance.ServerTime)) {
                        var e = w.TimeUtil.Get0ClockTs(u.RpcComponent.Instance.ServerTime),
                            t = e + 756e5,
                            n = e + 864e5;
                        if (u.RpcComponent.Instance.ServerTime >= t && u.RpcComponent.Instance.ServerTime < n) return b.default.IsAssistantComplete = !1, h.UIUtlity.ShowFloatingHint("assistant_continuousFight_settlement".ToUILocale()), !1
                    }
                    var o = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneContinueWarRankDailyFreeChallengeCount");
                    return !(I.DataCenter.Instance.GetIntData(p.UserDataKey.CrossZoneContinueWarRankChallengeCount) >= o && (b.default.IsAssistantComplete = !1, 1))
                }, t.SetCrossServerRankAutoComplete = function() {
                    var e = I.DataCenter.Instance.GetDataById(d.UserFormation_Model, _.FormationIdType.CrossZoneRankAttack1),
                        t = !1;
                    if (e && e.HeroIds && e.HeroIds.forEach(function(e) {
                            e > 0 && (t = !0)
                        }), !P.BattleManager.Instance.IsInBattle(p.MapType.CrossZoneRank) && n.CheckCrossServerRank())
                        if (S.default.IsAssistantComplete = !0, t) o = new d.Req_Map_CrossZoneRankChallenge, u.RpcComponent.Instance.Call(o, n.OnCrossZoneRankRequestMatchingSuccess, n.OnCrossZoneRankRequestMatchingFail);
                        else {
                            var o = new d.Req_Map_CrossZoneRankEnter;
                            u.RpcComponent.Instance.Call(o, function() {
                                var e = new d.Req_Map_CrossZoneRankChallenge;
                                u.RpcComponent.Instance.Call(e, n.OnCrossZoneRankRequestMatchingSuccess, n.OnCrossZoneRankRequestMatchingFail)
                            })
                        }
                }, t.OnCrossZoneRankRequestMatchingSuccess = function(e) {
                    S.default.BattleInfo = e, S.default.BattleReports = e.Reports, S.default.StartBattle()
                }, t.OnCrossZoneRankRequestMatchingFail = function() {
                    if (n.CheckCrossServerRank()) {
                        var e = new d.Req_Map_CrossZoneRankEnter;
                        u.RpcComponent.Instance.Call(e, function() {
                            var e = new d.Req_Map_CrossZoneRankChallenge;
                            u.RpcComponent.Instance.Call(e, n.OnCrossZoneRankRequestMatchingSuccess, n.OnCrossZoneRankRequestMatchingFail)
                        })
                    }
                }, t.CheckCrossServerRank = function() {
                    if (I.DataCenter.Instance.Zones[I.DataCenter.Zone].Group <= 0) return S.default.IsAssistantComplete = !1, h.UIUtlity.ShowFloatingHint("CrossServerLimitHint".ToUILocale()), !1;
                    if (!g.default.IsCrossServerLadderChallengeEnable()) return S.default.IsAssistantComplete = !1, h.UIUtlity.ShowFloatingHint("assistant_crossServer_limit".ToUILocale()), !1;
                    var e = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankDailyFreeChallengeCount");
                    return !(I.DataCenter.Instance.GetIntData(p.UserDataKey.CrossZoneRankChallengeCount) >= e && (S.default.IsAssistantComplete = !1, 1))
                }, t.prototype.IsIntelligenceOverFlow = function() {
                    for (var e = 0, t = I.DataCenter.Instance.GetIntData(f.UserDataKey.MainLineProgress), n = I.DataCenter.Instance.GetDataById(d.Adventure_Model, 1), o = u.ConfigDataComponent.Instance.GetConfigById(c.MapAdventure_Config, t), r = 0; r < o.Rewards.length; r++) o.Rewards[r].Items[0] == f.CommonItemId.Intelligence && (e = Math.floor(o.Rewards[r].Items[1] / 1e5));
                    var i = n.ReceiveTime,
                        a = u.RpcComponent.Instance.ServerTime,
                        s = Math.floor((a - i) / _.Etc.MinuteDuration),
                        l = (s = Math.min(s, 600)) * e;
                    return !!g.default.Instance.IsIntelligencePropOverFlow(l)
                }, i([L(cc.Button)], t.prototype, "RuleButton", void 0), i([L(cc.Node)], t.prototype, "ListContent", void 0), i([L(cc.Button)], t.prototype, "AutoCompleteButton", void 0), i([L(cc.Label)], t.prototype, "AutoCompleteLabel", void 0), i([L(cc.Button)], t.prototype, "LockButton", void 0), i([L(cc.Label)], t.prototype, "LockLabel", void 0), i([L(cc.Button)], t.prototype, "GiftPackButton", void 0), i([L(cc.Label)], t.prototype, "GiftPackLabel", void 0), n = i([R], t)
            }(l.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./AssistantListItem": "AssistantListItem",
        "./ContinuousFightPanel": "ContinuousFightPanel",
        "./CrossServerRankPanel": "CrossServerRankPanel",
        "./MallPrivilegeMainPanel": "MallPrivilegeMainPanel"
    }],
    AssistantResultItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fd1e3JY9TtMiZb9bDaIv/tf", "AssistantResultItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../ShareConsts/EnumType"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("./IntelligenceListItem"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./ItemComponent"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.TitleContainer = null, t.RewardContainer = null, t.ConsumeNode = null, t.ConsumeItemIcon = null, t.ConsumeItemCostRichText = null, t.CompleteIconNode = null, t.ExecuteTip = null, t.RewardTipNode = null, t.RewardTip = null, t.IntelligenceContainer = null, t.IntelligenceTitleBg = null, t.IntelligenceTitle = null, t.IntelligenceTitleOutline = null, t.IntelligenceQualityDesc = null, t.IntelligenceTip = null, t.IntelligenceHeroContainer = null, t.INTELLIGENCE_COLOR_QUALITYS = [new cc.Color(129, 81, 28), new cc.Color(30, 129, 28), new cc.Color(28, 80, 129), new cc.Color(87, 28, 129), new cc.Color(129, 81, 28), new cc.Color(129, 28, 28)], t._rewardItemComponentArray = [], t._intelligenceHeroComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_NEW_ASSISTANT_SCROLLVIEW, this.CheckVisible, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDestroy = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_NEW_ASSISTANT_SCROLLVIEW, this.CheckVisible, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._resultData = e, this._itemPrefab = t, n && (this._intelligenceTaskModel = h.DataCenter.Instance.GetDataById(p.IntelligenceTask_Model, n)), this.SetUI()
                }, t.prototype.SetUI = function() {
                    switch (this.TitleContainer.active = !0, this.CompleteIconNode.active = !1, this.ConsumeNode.active = !1, this.ExecuteTip.node.active = !1, this.RewardTipNode.active = !1, this.IntelligenceContainer.active = !1, this._resultData.Type) {
                        case l.HelperOperationType.AdventureQuickBattle:
                            this.Title.string = "assistant_quick_battle".ToUILocale(), this._resultData.Costs.length > 0 ? (this.ConsumeNode.active = !0, this.SetDiamonCost(this._resultData.Costs[0].Count)) : this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.DailyInstanceQuickBattle:
                            this.Title.string = ("dailyInstance_type_" + this._resultData.ExtraParam[0].Items[0]).ToUILocale(), 1 == this._resultData.ExtraParam[0].Items[1] ? this.CompleteIconNode.active = !0 : 2 == this._resultData.ExtraParam[0].Items[1] && (this.ConsumeNode.active = !0, this.SetDiamonCost(this._resultData.Costs[0].Count));
                            break;
                        case l.HelperOperationType.AdventureReceiveHangUpReward:
                            this.Title.string = "assistant_idle_reward".ToUILocale(), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.GiveAndReceiveGifts:
                            this.Title.string = "assistant_friend".ToUILocale(), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.Intelligence:
                            return this.TitleContainer.active = !1, this.IntelligenceContainer.active = !0, this.IntelligenceTip.string = "assistant_intelligence_dispatch".ToUILocale(), this.IntelligenceTitle.string = this._intelligenceTaskModel.TaskId.ToIntelligenceDesc(), this._intelligenceTaskConfig = h.ConfigDataComponent.Instance.GetConfigById(d.IntelligenceTask_Config, this._intelligenceTaskModel.TaskId), this.IntelligenceTitleOutline.color = this.INTELLIGENCE_COLOR_QUALITYS[this._intelligenceTaskConfig.QualityId - 1], this.IntelligenceQualityDesc.string = this._intelligenceTaskConfig.QualityId.ToIntelligenceQualityName(), this.SetIntelligenceTitleBg(), this.SetIntelligenceHeros(), void this.SetRewardContainer(this.GetIntelligenceReward());
                        case l.HelperOperationType.AdventureAutoBattle:
                            this.Title.string = "assistant_adventure_tip".ToUILocale().Fmt(this._resultData.ExtraParam[0].Items[0].ToMapName()), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.CrossZoneContinueWarRank:
                            this.Title.string = "assistant_continuousFight".ToUILocale(), this.RewardTipNode.active = !0;
                            var e = this._resultData.ExtraParam[0].Items[0],
                                t = e > 0 ? "+" + e : e.toString();
                            this.RewardTip.string = "assistant_continueFight_point".ToUILocale().Fmt(t);
                            break;
                        case l.HelperOperationType.CrossZoneRank:
                            this.Title.string = "assistant_crossServerRank".ToUILocale(), this.RewardTipNode.active = !0;
                            var n = this._resultData.ExtraParam[0].Items[0],
                                o = n > 0 ? "+" + n : n.toString();
                            this.RewardTip.string = "assistant_crossServerRank_point".ToUILocale().Fmt(o);
                            break;
                        case l.HelperOperationType.GodLandDuel:
                            this.Title.string = "angelPvp_title".ToUILocale(), this.RewardTipNode.active = !0;
                            var r = this._resultData.ExtraParam[0].Items[0],
                                i = r > 0 ? "+" + r : r.toString();
                            this.RewardTip.string = "assistant_godLandDuel_point".ToUILocale().Fmt(i);
                            break;
                        case l.HelperOperationType.EndlessAbyssSingle:
                            return this.Title.string = "assistant_abyss_single_result_title".ToUILocale(), this.ExecuteTip.node.active = !0, void(this.ExecuteTip.string = "assistant_result_execute".ToUILocale());
                        case l.HelperOperationType.EndlessAbyssMulti:
                            return this.Title.string = "assistant_abyss_multi_result_title".ToUILocale(), this.ExecuteTip.node.active = !0, void(this.ExecuteTip.string = "assistant_result_execute".ToUILocale());
                        case l.HelperOperationType.TestTowerChallenge:
                            var a = this._resultData.ExtraParam[0].Items;
                            if (a[2]) {
                                var s = ("assistant_tower_name_" + a[0]).ToUILocale();
                                this.Title.string = "assistant_tower_battle_success_reward".ToUILocale().Fmt(s)
                            } else a[1] ? this.Title.string = "assistant_tower_result_title_multi".ToUILocale().Fmt(a[0].ToMapName(), a[1].ToMapName()) : this.Title.string = "assistant_tower_result_title_single".ToUILocale().Fmt(a[0].ToMapName());
                            this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.TestTowerRewards:
                            this.Title.string = "assistant_tower_result_daily_reward".ToUILocale(), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.AllianceTest:
                            this.Title.string = "assistant_alliance_test_battle_result".ToUILocale().Fmt(1), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.CityWarKillRewards:
                            this.Title.string = "StrongholdWar_Main_TitleName".ToUILocale() + "assistant_alliance_cityWar_kill_reward".ToUILocale(), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.CityWarAllianceRewards:
                            this.Title.string = "StrongholdWar_Main_TitleName".ToUILocale() + "assistant_alliance_cityWar_city_reward".ToUILocale(), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.CityWarTaskRewards:
                            this.Title.string = "StrongholdWar_Main_TitleName".ToUILocale() + "assistant_alliance_cityWar_task_reward".ToUILocale(), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.CityWarHang:
                            return this.Title.string = "StrongholdWar_Main_TitleName".ToUILocale() + "assistant_alliance_cityWar_hang".ToUILocale(), this.ExecuteTip.node.active = !0, void(this.ExecuteTip.string = "StrongholdWar_HangUp_Start".ToUILocale());
                        case l.HelperOperationType.CityWarDailyRewards:
                            this.Title.string = "StrongholdWar_Main_TitleName".ToUILocale() + "assistant_alliance_cityWar_point_send".ToUILocale();
                            break;
                        case l.HelperOperationType.CityWarBattlePoint:
                            this.Title.string = "assistant_alliance_cityWar_buy_point_result".ToUILocale(), this._resultData.Costs.length > 0 ? (this.ConsumeNode.active = !0, this.SetDiamonCost(this._resultData.Costs[0].Count)) : this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.ArtefactRelicBuyCount:
                            this.Title.string = "assistant__artefactRelic_buyCount".ToUILocale(), this.ExecuteTip.node.active = !0, this.ExecuteTip.string = "assistant_artefactRelic_buyCount_result".ToUILocale().Fmt(this._resultData.ExtraParam[0].Items[0]), this.ConsumeNode.active = !0;
                            var c = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, l.LevelParamType.ArtefactRelicBuyCount).Data2[0].Items[1] * this._resultData.ExtraParam[0].Items[0];
                            return void this.SetDiamonCost(c);
                        case l.HelperOperationType.ArtefactRelicWater:
                            this.Title.string = this._resultData.ExtraParam[0].Items[0].ToMapName(), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.HolyArea:
                            this.Title.string = "holyArea_main_title".ToUILocale(), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.StarLightSecret:
                            this.Title.string = this._resultData.ExtraParam[0].Items[0].ToMapName(), this.CompleteIconNode.active = !0;
                            break;
                        case l.HelperOperationType.SecretAreaExplore:
                            return this.Title.string = "secretAreaExplore".ToUILocale(), this.ExecuteTip.node.active = !0, void(this.ExecuteTip.string = this._resultData.ExtraParam[0].Items[0] ? "assistant_secretAreaExplore_complete".ToUILocale() : "assistant_secretAreaExplore_stop".ToUILocale())
                    }
                    this.SetRewardContainer(this._resultData.Rewards)
                }, t.prototype.SetDiamonCost = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._diamondIcon ? [3, 2] : (t = m.default.Instance.GetItemPathById(l.CommonItemId.Diamond), n = this, [4, c.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)]);
                                case 1:
                                    if (n._diamondIcon = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._diamondIcon), [2];
                                    o.label = 2;
                                case 2:
                                    return this.ConsumeItemIcon.spriteFrame = this._diamondIcon, this.ConsumeItemCostRichText.string = e.toString(), [2]
                            }
                        })
                    })
                }, t.prototype.SetIntelligenceTitleBg = function() {
                    var e;
                    switch (this._intelligenceTaskConfig.QualityId) {
                        case f.IntelligenceQualityType.D:
                            e = "white";
                            break;
                        case f.IntelligenceQualityType.C:
                            e = "green";
                            break;
                        case f.IntelligenceQualityType.B:
                            e = "blue";
                            break;
                        case f.IntelligenceQualityType.A:
                            e = "purple";
                            break;
                        case f.IntelligenceQualityType.S:
                            e = "orange";
                            break;
                        case f.IntelligenceQualityType.SS:
                            e = "red"
                    }
                    this.IntelligenceTitleBg.spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_" + e)
                }, t.prototype.SetIntelligenceHeros = function() {
                    for (var e = 0; e < this._intelligenceTaskModel.HeroIds.length; e++) {
                        var t = this._intelligenceHeroComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.IntelligenceHeroContainer), t = n.getComponent(g.ItemComponent), this._intelligenceHeroComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o = h.DataCenter.Instance.GetDataById(p.UserHero_Model, this._intelligenceTaskModel.HeroIds[e]);
                        t.Init({
                            ItemId: o.HeroId,
                            StarLevel: o.StarLevel
                        }, g.ItemComponentType.HeroInfo)
                    }
                    if (this._intelligenceTaskModel.HeroIds.length < this._intelligenceHeroComponentArray.length)
                        for (e = this._intelligenceTaskModel.HeroIds.length; e < this._intelligenceHeroComponentArray.length; e++) this._intelligenceHeroComponentArray[e].node.active = !1
                }, t.prototype.GetIntelligenceReward = function() {
                    for (var e = [], t = 0; t < this._intelligenceTaskConfig.Rewards.length; t++) {
                        var n = this._intelligenceTaskConfig.Rewards[t].Items,
                            o = {
                                ItemId: n[0],
                                Count: n[1]
                            };
                        e[t] = o
                    }
                    return e
                }, t.prototype.SetRewardContainer = function(e) {
                    var t = {};
                    e.forEach(function(e) {
                        e.Count < 0 ? t[e.ItemId] = e.Count : t[e.ItemId] ? t[e.ItemId] += e.Count : t[e.ItemId] = e.Count
                    });
                    var n = 0;
                    for (var o in t) {
                        var r = this._rewardItemComponentArray[n];
                        if (!r) {
                            var i = cc.instantiate(this._itemPrefab);
                            i.setParent(this.RewardContainer), r = i.getComponent(g.ItemComponent), this._rewardItemComponentArray[n] = r
                        }
                        r.node.active = !0, r.Init({
                            ItemId: Number(o),
                            Count: t[o]
                        }), n++
                    }
                    if (n < this._rewardItemComponentArray.length)
                        for (var a = n; a < this._rewardItemComponentArray.length; a++) this._rewardItemComponentArray[a].node.active = !1
                }, t.prototype.CheckVisible = function(e) {
                    if (this.node) {
                        var t = this.node.getBoundingBoxToWorld().intersects(e);
                        this.node.opacity = t ? 255 : 0
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent == this.RewardContainer && y.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Node)], t.prototype, "TitleContainer", void 0), i([C(cc.Node)], t.prototype, "RewardContainer", void 0), i([C(cc.Node)], t.prototype, "ConsumeNode", void 0), i([C(cc.Sprite)], t.prototype, "ConsumeItemIcon", void 0), i([C(cc.RichText)], t.prototype, "ConsumeItemCostRichText", void 0), i([C(cc.Node)], t.prototype, "CompleteIconNode", void 0), i([C(cc.Label)], t.prototype, "ExecuteTip", void 0), i([C(cc.Node)], t.prototype, "RewardTipNode", void 0), i([C(cc.Label)], t.prototype, "RewardTip", void 0), i([C(cc.Node)], t.prototype, "IntelligenceContainer", void 0), i([C(cc.Sprite)], t.prototype, "IntelligenceTitleBg", void 0), i([C(cc.Label)], t.prototype, "IntelligenceTitle", void 0), i([C(cc.LabelOutline)], t.prototype, "IntelligenceTitleOutline", void 0), i([C(cc.Label)], t.prototype, "IntelligenceQualityDesc", void 0), i([C(cc.Label)], t.prototype, "IntelligenceTip", void 0), i([C(cc.Node)], t.prototype, "IntelligenceHeroContainer", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./IntelligenceListItem": "IntelligenceListItem",
        "./ItemComponent": "ItemComponent"
    }],
    AssistantShowResultPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e4b9fdvN+lK9K1pQfsyGfqP", "AssistantShowResultPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Components/AssistantResultItemComponent"),
            g = e("../Battle/BattleManager"),
            m = e("../../../ShareConsts/BattleConsts"),
            I = e("../../../Util/AppUtil"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../Components/TowerLayerItem"),
            v = e("../../../Util/TimeUtil"),
            b = e("./HolyRelicsPanel"),
            S = e("../../Auxiliary/DataUtlity"),
            w = e("../../../Consts/Etc"),
            P = e("./ContinuousFightPanel"),
            A = e("./SecretAreaAutoSetPanel"),
            T = e("../../Auxiliary/GameRecord"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property,
            O = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.ScrollView = null, t.ResultItemContainer = null, t.UnResultTip = null, t.OkButton = null, t.OkButtonLabel = null, t.ExecuteTip = null, t._allAssistantData = {}, t._isAdventureFail = !1, t._isArtefactRelicBuyCount = !1, t._holyAreaIsCanChallenge = !0, t._isSecretAreaExploreStop = !1, t._towerFailArray = {}, t._allianceTestIsCanChallenge = !0, t._artefactFailArray = {}, t._isStarLightSecretFail = !1, t._isSaintsWarFail = !1, t._saintsWarNotFightArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_ASSISTANT_AUTO_DATA, this.OnSkipOtherPanelOver, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ASSISTANT_AUTO_DATA, this.OnSkipOtherPanelOver, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("AssistantPanel/SubItems/AssistantResultItemComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._resultItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "assistant_rule_title".ToUILocale(), this.UnResultTip.string = "assistant_result_unExecute".ToUILocale(), this.OkButton.node.on("click", this.Close, this);
                    var t = this.ScrollView.node.getBoundingBoxToWorld();
                    this._assistantScrollViewRect = new cc.Rect(t.x, t.y, this.ScrollView.node.width, this.ScrollView.node.height), this.ScrollView.node.on("scrolling", this.OnScrolling, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._resultData = t[0], this._allAssistantData = t[1], this._needCompleteAutoBattle = t[2];
                    var n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("AssistantResultIntervalTime");
                    this._autoBattleInterval = n / 1e3, this._elementTowerMaxBattleCountDaily = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("ElementTowerMaxBattleCountDaily")
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetTip(), this.SetResultContainer()
                }, t.prototype.OnScrolling = function() {
                    l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_NEW_ASSISTANT_SCROLLVIEW, this._assistantScrollViewRect)
                }, t.prototype.SetTip = function() {
                    this.UnResultTip.node.active = !1, this.OkButton.node.active = !1, this.ExecuteTip.node.active = !0, this.ExecuteTip.string = "assistant_result_execute".ToUILocale()
                }, t.prototype.SetOverTipState = function() {
                    this.ExecuteTip.node.active = !1, this.OkButton.node.active = !0, this.OkButtonLabel.string = "button_confirm".ToUILocale()
                }, t.prototype.SetResultContainer = function() {
                    if (0 != this._resultData.length) {
                        for (var e = 0; e < this._resultData.length; e++) {
                            if (this._resultData[e].Type == f.HelperOperationType.Intelligence) {
                                if (this._resultData[e].ExtraParam[0].Items.length > 0)
                                    for (var t = 0; t < this._resultData[e].ExtraParam.length; t++) {
                                        var n;
                                        (n = cc.instantiate(this._resultItemPrefab)).setParent(this.ResultItemContainer), n.getComponent(y.default).Init(this._resultData[e], this._itemPrefab, this._resultData[e].ExtraParam[0].Items[t])
                                    }
                            } else(n = cc.instantiate(this._resultItemPrefab)).setParent(this.ResultItemContainer), n.getComponent(y.default).Init(this._resultData[e], this._itemPrefab);
                            this.ScrollView.scrollToBottom(.1)
                        }
                        this.SetAutoBattle()
                    } else this.SetAutoBattle()
                }, t.prototype.SetAutoBattle = function() {
                    this.UnResultTip.node.active = !1, !this._isAdventureFail && this._needCompleteAutoBattle[f.HelperOperationType.AdventureAutoBattle] && this.CheckMainLineBattle() ? this.SetMainLineAutoBattle() : !this._towerFailArray[f.MapType.TestTower] && this._needCompleteAutoBattle[f.HelperOperationType.TestTowerChallenge] && (this.CheckTestTowerBattle(C.TestTowerType.Normal) || this.CheckTestTowerBattle(C.TestTowerType.HardNormal)) ? this.SetTestTowerAutoBattle() : !this._towerFailArray[f.MapType.TowerHeart] && this._needCompleteAutoBattle[f.HelperOperationType.TowerHeartChallenge] && (this.CheckTestTowerBattle(C.TestTowerType.Heart) || this.CheckTestTowerBattle(C.TestTowerType.HardHeart)) ? this.SetTestTowerAutoBattle() : !this._towerFailArray[f.MapType.TowerPower] && this._needCompleteAutoBattle[f.HelperOperationType.TowerPowerChallenge] && (this.CheckTestTowerBattle(C.TestTowerType.Power) || this.CheckTestTowerBattle(C.TestTowerType.HardPower)) ? this.SetTestTowerAutoBattle() : !this._towerFailArray[f.MapType.TowerTech] && this._needCompleteAutoBattle[f.HelperOperationType.TowerTechChallenge] && (this.CheckTestTowerBattle(C.TestTowerType.Tech) || this.CheckTestTowerBattle(C.TestTowerType.HardTech)) ? this.SetTestTowerAutoBattle() : !this._towerFailArray[f.MapType.TowerBreak] && this._needCompleteAutoBattle[f.HelperOperationType.TowerBreakChallenge] && (this.CheckTestTowerBattle(C.TestTowerType.Break) || this.CheckTestTowerBattle(C.TestTowerType.HardBreak)) ? this.SetTestTowerAutoBattle() : !this._towerFailArray[f.MapType.TowerFight] && this._needCompleteAutoBattle[f.HelperOperationType.TowerFightChallenge] && (this.CheckTestTowerBattle(C.TestTowerType.Fight) || this.CheckTestTowerBattle(C.TestTowerType.HardFight)) ? this.SetTestTowerAutoBattle() : this._needCompleteAutoBattle[f.HelperOperationType.AllianceTest] && this._allianceTestIsCanChallenge ? this.CheckAllianceTestBattle() : this._needCompleteAutoBattle[f.HelperOperationType.CrossZoneContinueWarRank] && this.CheckCrossZoneContinueWarRank() ? this.CrossZoneContinueWarRankAutoBattle() : this._needCompleteAutoBattle[f.HelperOperationType.CrossZoneRank] && this.CheckCrossServerRank() ? this.CrossZoneRankAutoBattle() : this._needCompleteAutoBattle[f.HelperOperationType.GodLandDuel] && this.CheckGodLandDuel() ? this.GodLandDuelAutoBattle() : !this._isArtefactRelicBuyCount && this._needCompleteAutoBattle[f.HelperOperationType.ArtefactRelicBuyCount] && this.CheckArtefactRelicBuyChallengeTimes() ? this.OnRequestArtefactRelicBuyChallengeTimes() : !this._artefactFailArray[1] && this._needCompleteAutoBattle[f.HelperOperationType.ArtefactRelicWater] && this.CheckArtefactRelicBattle(1) ? (this._currentArtefactRelicId = 1, this.ArtefactRelicAutoBattle()) : !this._artefactFailArray[2] && this._needCompleteAutoBattle[f.HelperOperationType.ArtefactRelicFire] && this.CheckArtefactRelicBattle(2) ? (this._currentArtefactRelicId = 2, this.ArtefactRelicAutoBattle()) : !this._artefactFailArray[3] && this._needCompleteAutoBattle[f.HelperOperationType.ArtefactRelicWind] && this.CheckArtefactRelicBattle(3) ? (this._currentArtefactRelicId = 3, this.ArtefactRelicAutoBattle()) : !this._artefactFailArray[4] && this._needCompleteAutoBattle[f.HelperOperationType.ArtefactRelicLight] && this.CheckArtefactRelicBattle(4) ? (this._currentArtefactRelicId = 4, this.ArtefactRelicAutoBattle()) : !this._artefactFailArray[5] && this._needCompleteAutoBattle[f.HelperOperationType.ArtefactRelicDark] && this.CheckArtefactRelicBattle(5) ? (this._currentArtefactRelicId = 5, this.ArtefactRelicAutoBattle()) : !this._artefactFailArray[6] && this._needCompleteAutoBattle[f.HelperOperationType.ArtefactRelicChaos] && this.CheckArtefactRelicBattle(6) ? (this._currentArtefactRelicId = 6, this.ArtefactRelicAutoBattle()) : this._holyAreaIsCanChallenge && this._needCompleteAutoBattle[f.HelperOperationType.HolyArea] ? this.HolyAreaAutoChallenge() : !this._isStarLightSecretFail && this._needCompleteAutoBattle[f.HelperOperationType.StarLightSecret] && this.CheckStarLightSecretAuto() ? this.StarLightSecretAutoBattle() : !this._isSecretAreaExploreStop && this._needCompleteAutoBattle[f.HelperOperationType.SecretAreaExplore] && this.CheckSecretAreaExploreAuto() ? this.SecretAreaExploreAutoBattle() : (this.SetOverTipState(), this.UnResultTip.node.active = 0 == this.ResultItemContainer.childrenCount)
                }, t.prototype.SetMainLineAutoBattle = function() {
                    var e = this;
                    this.SetMainLineCache();
                    var t = new u.Req_Map_AdventureChallenge;
                    t.MapLevelId = h.DataCenter.Instance.GetIntData(f.UserDataKey.MainLineProgress), t.Formations = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.MainLine), p.RpcComponent.Instance.Call(t, function(t) {
                        var n = new u.Req_Map_BattleSettlement;
                        n.MapType = f.MapType.MainLine, p.RpcComponent.Instance.Call(n, function(n) {
                            if (t.Report.Result == m.BattleResult.AttackerWin) {
                                var o = [t.Report.MapId];
                                e.SetResultItem(f.HelperOperationType.AdventureAutoBattle, n.Rewards, o), e.scheduleOnce(function() {
                                    e.SetAutoBattle()
                                }, e._autoBattleInterval)
                            } else e._isAdventureFail = !0, e.SetAutoBattle()
                        })
                    }, this.Close.bind(this))
                }, t.prototype.SetResultItem = function(e, t, n) {
                    var o = cc.instantiate(this._resultItemPrefab);
                    o.setParent(this.ResultItemContainer);
                    var r = [],
                        i = new u.IntArray;
                    i.Items = n, r.push(i);
                    var a = {
                        Type: e,
                        Rewards: t,
                        ExtraParam: r
                    };
                    o.getComponent(y.default).Init(a, this._itemPrefab), this.ScrollView.scrollToBottom(.1)
                }, t.prototype.SetMainLineCache = function() {
                    var e, t = this.GetCurrMapLevelId(),
                        n = h.DataCenter.Instance.GetIntData(f.UserDataKey.MainLineProgress),
                        o = h.ConfigDataComponent.Instance.GetArrayConfig(c.AdventureChapter_Config),
                        r = o[o.length - 1],
                        i = r.MapIds[r.MapIds.length - 1],
                        a = o.length;
                    if (n >= i) return t = i, void cc.sys.localStorage.setItem(this.GetMainLineCacheKey(), i.toString());
                    for (var s = 0; s < a; s++) {
                        var l = o[s].MapIds[0],
                            u = o[s].MapIds[o[s].MapIds.length - 1];
                        if (t >= l && t <= u) {
                            e = o[s];
                            break
                        }
                    }
                    var p = e.MapIds[e.MapIds.length - 1];
                    cc.sys.localStorage.setItem(this.GetMainLineCacheKey(), p.toString())
                }, t.prototype.GetCurrMapLevelId = function() {
                    var e = h.DataCenter.Instance.GetIntData(f.UserDataKey.MainLineProgress),
                        t = this.GetCacheLevel();
                    return e > t && 0 != t ? t : e
                }, t.prototype.GetCacheLevel = function() {
                    var e = 0,
                        t = cc.sys.localStorage.getItem(this.GetMainLineCacheKey());
                    return null != t && (e = I.AppUtil.ToInt(t)), e
                }, t.prototype.CheckMainLineBattle = function() {
                    if (this._isAdventureFail = !0, g.BattleManager.Instance.IsInBattle(f.MapType.MainLine)) return !1;
                    var e = this.GetMainLineCacheLevel(),
                        t = h.DataCenter.Instance.GetIntData(f.UserDataKey.MainLineProgress),
                        n = h.DataCenter.Instance.GetIntData(f.UserDataKey.PlayerLevel),
                        o = h.ConfigDataComponent.Instance.GetConfigById(c.MapAdventure_Config, t);
                    return !(t > e && 0 != e || n < o.Level || (this._isAdventureFail = !1, 0))
                }, t.prototype.GetMainLineCacheLevel = function() {
                    var e = 0,
                        t = cc.sys.localStorage.getItem(this.GetMainLineCacheKey());
                    return null != t && (e = I.AppUtil.ToInt(t)), e
                }, t.prototype.GetMainLineCacheKey = function() {
                    return "ChapterLastLevel_" + h.DataCenter.Instance.Uid
                }, t.prototype.SetTestTowerAutoBattle = function() {
                    var e, t = h.DataCenter.Instance.GetDataById(u.TestTower_Model, this._towerType),
                        n = h.ConfigDataComponent.Instance.GetConfigById(c.TestTowerType_Config, this._towerType);
                    e = t.MapIndex > 0 ? n.MapIdPrefix + t.MapIndex + 1 : n.MapIdPrefix + 1;
                    var o = 0;
                    if (this._towerType == C.TestTowerType.Normal) {
                        var r = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("TestTowerQuickBattleNeedPowerAbove"),
                            i = h.DataCenter.Instance.GetIntData(f.UserDataKey.Power),
                            a = h.ConfigDataComponent.Instance.GetConfigById(c.MapTestTower_Config, n.MapIdPrefix + t.MapIndex + r);
                        if (a && i >= a.QuickBattlePower)
                            for (var s = t.MapIndex + r + 1; s <= n.MaxCount && !(i <= h.ConfigDataComponent.Instance.GetConfigById(c.MapTestTower_Config, n.MapIdPrefix + s).QuickBattlePower); s++) o = s
                    }
                    0 == o ? this.RequestTowerBattle(e) : this.RequestTowerQuickBattle(t.MapIndex + 1, o)
                }, t.prototype.RequestTowerBattle = function(e) {
                    var t = this,
                        n = h.ConfigDataComponent.Instance.GetConfigById(c.MapBase_Config, e),
                        o = h.ConfigDataComponent.Instance.GetConfigById(c.TestTowerType_Config, this._towerType),
                        r = new u.Req_Map_TestTowerChallenge;
                    r.Type = o.Id, r.MapIndex = e - o.MapIdPrefix, p.RpcComponent.Instance.Call(r, function(e) {
                        var r = new u.Req_Map_BattleSettlement;
                        r.MapType = f.MapType.TestTower, p.RpcComponent.Instance.Call(r, function(r) {
                            if (e.Report.Result == m.BattleResult.AttackerWin) {
                                var i = [e.Report.MapId];
                                t.SetResultItem(f.HelperOperationType.TestTowerChallenge, r.Rewards, i);
                                var a = 0,
                                    s = h.DataCenter.Instance.GetDataById(u.TestTower_Model, o.Id);
                                if (s.MapIndex >= 5 && s.MapIndex > s.ExtraRewardIndex)
                                    for (var l = s.MapIndex; l > s.ExtraRewardIndex; l--) {
                                        var d = h.ConfigDataComponent.Instance.GetConfigById(c.MapTestTower_Config, l + o.MapIdPrefix);
                                        if (l <= o.MaxRewardCount && 0 == d.Distance) {
                                            a = l;
                                            break
                                        }
                                    }
                                if (0 != a) {
                                    var y = new u.Req_Map_TestTowerExtraReward;
                                    y.Type = o.Id, y.MapIndex = a, p.RpcComponent.Instance.Call(y, function(e) {
                                        var n = [o.Id, 0, 1];
                                        t.SetResultItem(f.HelperOperationType.TestTowerChallenge, e.Rewards, n), t.scheduleOnce(function() {
                                            t.SetAutoBattle()
                                        }, t._autoBattleInterval)
                                    }, t.Close.bind(t))
                                } else t.scheduleOnce(function() {
                                    t.SetAutoBattle()
                                }, t._autoBattleInterval)
                            } else t._towerFailArray[n.Type] = !0, t.SetAutoBattle()
                        })
                    }, this.Close.bind(this))
                }, t.prototype.RequestTowerQuickBattle = function(e, t) {
                    var n = this,
                        o = new u.Req_Map_TestTowerQuickBattle;
                    o.MapIndex = e, o.EndMapIndex = t, p.RpcComponent.Instance.Call(o, function(o) {
                        var r = [e + 2e5, t + 2e5];
                        n.SetResultItem(f.HelperOperationType.TestTowerChallenge, o.Rewards, r);
                        var i = 0,
                            a = h.DataCenter.Instance.GetDataById(u.TestTower_Model, C.TestTowerType.Normal),
                            s = h.ConfigDataComponent.Instance.GetConfigById(c.TestTowerType_Config, C.TestTowerType.Normal);
                        if (a.MapIndex >= 5 && a.MapIndex > a.ExtraRewardIndex)
                            for (var l = a.MapIndex; l > a.ExtraRewardIndex; l--) {
                                var d = h.ConfigDataComponent.Instance.GetConfigById(c.MapTestTower_Config, l + s.MapIdPrefix);
                                if (l <= s.MaxRewardCount && 0 == d.Distance) {
                                    i = l;
                                    break
                                }
                            }
                        if (0 != i) {
                            var y = new u.Req_Map_TestTowerExtraReward;
                            y.Type = s.Id, y.MapIndex = i, p.RpcComponent.Instance.Call(y, function(e) {
                                var t = [s.Id, 0, 1];
                                n.SetResultItem(f.HelperOperationType.TestTowerChallenge, e.Rewards, t), n.scheduleOnce(function() {
                                    n.SetAutoBattle()
                                }, n._autoBattleInterval)
                            }, n.Close.bind(n))
                        } else n.scheduleOnce(function() {
                            n.SetAutoBattle()
                        }, n._autoBattleInterval);
                        n.SetAutoBattle()
                    })
                }, t.prototype.CheckTestTowerBattle = function(e) {
                    this._towerMapTypeArray || (this._towerMapTypeArray = {}, this._towerMapTypeArray[C.TestTowerType.Normal] = f.MapType.TestTower, this._towerMapTypeArray[C.TestTowerType.Heart] = f.MapType.TowerHeart, this._towerMapTypeArray[C.TestTowerType.Power] = f.MapType.TowerPower, this._towerMapTypeArray[C.TestTowerType.Tech] = f.MapType.TowerTech, this._towerMapTypeArray[C.TestTowerType.Break] = f.MapType.TowerBreak, this._towerMapTypeArray[C.TestTowerType.Fight] = f.MapType.TowerFight, this._towerMapTypeArray[C.TestTowerType.HardNormal] = f.MapType.TestTower, this._towerMapTypeArray[C.TestTowerType.HardHeart] = f.MapType.TowerHeart, this._towerMapTypeArray[C.TestTowerType.HardPower] = f.MapType.TowerPower, this._towerMapTypeArray[C.TestTowerType.HardTech] = f.MapType.TowerTech, this._towerMapTypeArray[C.TestTowerType.HardBreak] = f.MapType.TowerBreak, this._towerMapTypeArray[C.TestTowerType.HardFight] = f.MapType.TowerFight);
                    var t = this._towerMapTypeArray[e];
                    if (g.BattleManager.Instance.IsInBattle(t)) return !1;
                    if (this._towerFailArray[t] = !0, e >= C.TestTowerType.HardHeart && e <= C.TestTowerType.HardNormal) {
                        if (!S.default.Instance.IsGameModuleUnlock(f.GameModuleType.HelperHardTestTower)[0]) return !1;
                        if (!S.default.Instance.IsGameModuleUnlock(f.GameModuleType.ClimbTowerHard)[0]) return !1;
                        if (this._towerHardModuleArray || (this._towerHardModuleArray = {}, this._towerHardModuleArray[C.TestTowerType.HardNormal] = f.GameModuleType.MainHardTower, this._towerHardModuleArray[C.TestTowerType.HardHeart] = f.GameModuleType.HeartHardTower, this._towerHardModuleArray[C.TestTowerType.HardPower] = f.GameModuleType.PowerHardTower, this._towerHardModuleArray[C.TestTowerType.HardTech] = f.GameModuleType.TechHardTower, this._towerHardModuleArray[C.TestTowerType.HardBreak] = f.GameModuleType.BreakHardTower, this._towerHardModuleArray[C.TestTowerType.HardFight] = f.GameModuleType.FightHardTower), !S.default.Instance.IsGameModuleUnlock(this._towerHardModuleArray[e])[0]) return !1
                    }
                    var n = p.ConfigDataComponent.Instance.GetConfigById(c.TestTowerType_Config, e);
                    if (n.OpenTime && n.OpenTime.length > 0) {
                        for (var o = v.TimeUtil.GetWeekDay(p.RpcComponent.Instance.ServerTime), r = !1, i = 0; i < n.OpenTime.length; i++)
                            if (o == n.OpenTime[i]) {
                                r = !0;
                                break
                            } if (!r) return !1
                    }
                    var a = h.DataCenter.Instance.GetDataById(u.TestTower_Model, e);
                    if (e != C.TestTowerType.Normal && e != C.TestTowerType.HardNormal && a.BattleCount >= this._elementTowerMaxBattleCountDaily && 0 == a.Count) return !1;
                    if (a.MapIndex == n.MaxCount) return !1;
                    var s = !1;
                    this._towerTeamModelArray || (this._towerTeamModelArray = {}, this._towerTeamModelArray[f.MapType.TestTower] = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.MainLine), this._towerTeamModelArray[f.MapType.TowerHeart] = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.TowerHeart), this._towerTeamModelArray[f.MapType.TowerPower] = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.TowerPower), this._towerTeamModelArray[f.MapType.TowerTech] = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.TowerTech), this._towerTeamModelArray[f.MapType.TowerBreak] = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.TowerBreak), this._towerTeamModelArray[f.MapType.TowerFight] = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.TowerFight));
                    var l = this._towerTeamModelArray[t];
                    return l && l.HeroIds && l.HeroIds.forEach(function(e) {
                        e > 0 && (s = !0)
                    }), !!s && (this._towerFailArray[t] = !1, this._towerType = e, !0)
                }, t.prototype.SetAllianceTestAutoBattle = function() {
                    var e = this,
                        t = new u.Req_Alliance_TestChallenge;
                    t.Index = this._allianceTestChallengeBossIndex, t.Formations = [this._allianceTestTeamModel], p.RpcComponent.Instance.Call(t, function() {
                        var t = new u.Req_Map_BattleSettlement;
                        t.MapType = f.MapType.AllianceTest, p.RpcComponent.Instance.Call(t, function(t) {
                            e.SetResultItem(f.HelperOperationType.AllianceTest, t.Rewards, []), e.scheduleOnce(function() {
                                e.SetAutoBattle()
                            }, e._autoBattleInterval)
                        })
                    }, this.Close.bind(this))
                }, t.prototype.CheckAllianceTestBattle = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function() {
                            return g.BattleManager.Instance.IsInBattle(f.MapType.AllianceTest) ? (this._allianceTestIsCanChallenge = !1, this.SetAutoBattle(), [2]) : v.TimeUtil.GetHour(p.RpcComponent.Instance.ServerTime) ? (e = new u.Req_Alliance_TestEnter, p.RpcComponent.Instance.Call(e, function(e) {
                                var n = p.ConfigDataComponent.Instance.GetConfigById(c.AllianceTest_Config, e.TestId),
                                    o = p.ConfigDataComponent.Instance.GetConfigById(c.AllianceTestType_Config, n.Type),
                                    r = p.DataCenter.Instance.GetIntData(f.UserDataKey.AllianceTestCount);
                                if (o.Count - r <= 0) return t._allianceTestIsCanChallenge = !1, void t.SetAutoBattle();
                                var i = 0;
                                e.Hp.forEach(function(e) {
                                    e <= 0 && i++
                                }), t._allianceTestChallengeTeamArray || (t._allianceTestChallengeTeamArray = [h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.AllianceTest1), h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.AllianceTest2), h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.AllianceTest3)]);
                                var a = t._allianceTestChallengeTeamArray[r],
                                    s = p.DataCenter.Instance.GetArrayData(f.UserDataKey.AllianceTestOwners),
                                    l = new u.UserFormation_Model;
                                if (l.Angel = a.Angel, l.FormationType = a.FormationType, l.Sid = a.Sid, l.HeroIds = [0, 0, 0, 0, 0], a && a.HeroIds)
                                    for (var d = 0; d < a.HeroIds.length; d++) a.HeroIds[d] > 0 && -1 == s.indexOf(a.HeroIds[d]) && (l.HeroIds[d] = a.HeroIds[d]);
                                if (l && l.HeroIds)
                                    for (var y = 0; y < l.HeroIds.length; y++)
                                        if (l.HeroIds[y] > 0)
                                            for (d = 0; d < e.Hp.length; d++)
                                                if (e.Hp[d] > 0 || i == e.Hp.length) return t._allianceTestChallengeBossIndex = d, t._allianceTestTeamModel = l, void t.SetAllianceTestAutoBattle();
                                t._allianceTestIsCanChallenge = !1, t.SetAutoBattle()
                            }, this.Close.bind(this)), [2]) : (this._allianceTestIsCanChallenge = !1, this.SetAutoBattle(), [2])
                        })
                    })
                }, t.prototype.CheckCrossZoneContinueWarRank = function() {
                    if (g.BattleManager.Instance.IsInBattle(f.MapType.CrossZoneContinueWarRank)) return !1;
                    if (7 == v.TimeUtil.GetWeekDay(p.RpcComponent.Instance.ServerTime)) {
                        var e = v.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime) + 21 * w.Etc.HourDuration;
                        if (p.RpcComponent.Instance.ServerTime >= e) return !1
                    }
                    var t = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneContinueWarRankDailyFreeChallengeCount");
                    if (h.DataCenter.Instance.GetIntData(f.UserDataKey.CrossZoneContinueWarRankChallengeCount) >= t) return !1;
                    var n = !1,
                        o = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.CrossZoneContinueWarRankAttack1);
                    if (o && o.HeroIds)
                        for (var r = 0; r < o.HeroIds.length; r++)
                            if (o.HeroIds[r] > 0) {
                                n = !0;
                                break
                            } return !!n
                }, t.prototype.CrossZoneContinueWarRankAutoBattle = function() {
                    var e = this,
                        t = new u.Req_Map_CrossZoneContinueWarRankEnter;
                    p.RpcComponent.Instance.Call(t, function(t) {
                        var n = e.GetGradeByScore(t.MyScore);
                        if (!e._continueFightTeamData) {
                            e._continueFightTeamData = [];
                            for (var o = 0; o < n.FormationNum; o++) {
                                var r = P.default.formationTypes[o],
                                    i = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, r);
                                e._continueFightTeamData.push(i)
                            }
                            e._continueFightTeamData.forEach(function(e) {
                                if (e)
                                    for (var t = 0; t < 5; t++) e.HeroIds[t] || (e.HeroIds[t] = 0)
                            })
                        }
                        var a = new u.Req_Map_CrossZoneContinueWarRankChallenge;
                        a.Formations = e._continueFightTeamData, p.RpcComponent.Instance.Call(a, function(t) {
                            var n = new u.Req_Map_BattleSettlement;
                            n.MapType = f.MapType.CrossZoneContinueWarRank, p.RpcComponent.Instance.Call(n, function() {
                                e.SetResultItem(f.HelperOperationType.CrossZoneContinueWarRank, t.Rewards, [t.Params[1]]), e.scheduleOnce(function() {
                                    e.SetAutoBattle()
                                }, e._autoBattleInterval)
                            })
                        })
                    })
                }, t.prototype.GetGradeByScore = function(e) {
                    var t = null,
                        n = h.ConfigDataComponent.Instance.GetArrayConfig(c.CrossZoneContinueWarRankStage_Config);
                    if (e < n[0].Score) t = n[0];
                    else
                        for (var o = 0; o < n.length; o++) e >= n[o].Score && (t = n[o]);
                    return t
                }, t.prototype.CheckCrossServerRank = function() {
                    if (g.BattleManager.Instance.IsInBattle(f.MapType.CrossZoneRank)) return !1;
                    if (h.DataCenter.Instance.Zones[h.DataCenter.Zone].Group <= 0) return !1;
                    if (!S.default.IsCrossServerLadderChallengeEnable()) return !1;
                    var e = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankDailyFreeChallengeCount");
                    if (h.DataCenter.Instance.GetIntData(f.UserDataKey.CrossZoneRankChallengeCount) >= e) return !1;
                    var t = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.CrossZoneRankAttack1),
                        n = !1;
                    return t && t.HeroIds && t.HeroIds.forEach(function(e) {
                        e > 0 && (n = !0)
                    }), !!n
                }, t.prototype.CrossZoneRankAutoBattle = function() {
                    var e = this,
                        t = new u.Req_Map_CrossZoneRankEnter;
                    p.RpcComponent.Instance.Call(t, function(t) {
                        if (!e._crossZoneRankTeamData) {
                            e._crossZoneRankTeamData = [];
                            var n = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.CrossZoneRankAttack1),
                                o = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.CrossZoneRankAttack2),
                                r = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, m.FormationIdType.CrossZoneRankAttack3);
                            n && e._crossZoneRankTeamData.push(n), o && e._crossZoneRankTeamData.push(o), r && e._crossZoneRankTeamData.push(r), e._crossZoneRankTeamData.forEach(function(e) {
                                for (var t = 0; t < 5; t++) e.HeroIds[t] || (e.HeroIds[t] = 0)
                            })
                        }
                        var i, a = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankAdvanceStage");
                        i = e.GetCrossZoneRankGradeByScore(t.MyScore).Id >= a ? e._crossZoneRankTeamData : [e._crossZoneRankTeamData[0]];
                        var s = new u.Req_Map_CrossZoneRankChallenge;
                        s.Formations = i, p.RpcComponent.Instance.Call(s, function(t) {
                            var n = new u.Req_Map_BattleSettlement;
                            n.MapType = f.MapType.CrossZoneRank, p.RpcComponent.Instance.Call(n, function() {
                                if (!e._crossZoneRankReward) {
                                    for (var n = [], o = h.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, f.LevelParamType.CrossZoneRankChallengeReward), r = 0; r < o.Data2.length; r++) {
                                        var i = new u.UserItem_Model;
                                        i.ItemId = o.Data2[r].Items[0], i.Count = o.Data2[r].Items[1], n[r] = i
                                    }
                                    e._crossZoneRankReward = n
                                }
                                e.SetResultItem(f.HelperOperationType.CrossZoneRank, e._crossZoneRankReward, [t.Params[1]]), e.scheduleOnce(function() {
                                    e.SetAutoBattle()
                                }, e._autoBattleInterval)
                            })
                        })
                    })
                }, t.prototype.GetCrossZoneRankGradeByScore = function(e) {
                    var t = null,
                        n = h.ConfigDataComponent.Instance.GetArrayConfig(c.CrossZoneRankStage_Config);
                    if (e < n[0].Score) t = n[0];
                    else
                        for (var o = 0; o < n.length; o++) e >= n[o].Score && (t = n[o]);
                    return t
                }, t.prototype.CheckGodLandDuel = function() {
                    if (g.BattleManager.Instance.IsInBattle(f.MapType.GodLandDuel)) return !1;
                    if (!S.default.IsCrossServerTimeEnable()) return !1;
                    if (7 == v.TimeUtil.GetWeekDay(p.RpcComponent.Instance.ServerTime)) {
                        var e = v.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime),
                            t = e + 21 * w.Etc.HourDuration,
                            n = e + 24 * w.Etc.HourDuration;
                        if (p.RpcComponent.Instance.ServerTime >= t && p.RpcComponent.Instance.ServerTime < n) return !1
                    }
                    var o = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("GodLandDuelDailyCount");
                    if (p.DataCenter.Instance.GetIntData(f.UserDataKey.GodLandDuelDailyCount) >= o) return !1;
                    for (var r = !1, i = [m.FormationIdType.GodLandDuel1, m.FormationIdType.GodLandDuel2, m.FormationIdType.GodLandDuel3], a = 0; a < i.length; a++) {
                        var s = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, i[a]);
                        s && s.Angel && s.Angel.AngelId > 0 && (r = !0)
                    }
                    return !!r
                }, t.prototype.GodLandDuelAutoBattle = function() {
                    var e = this,
                        t = new u.Req_Map_GodLandDuelEnter;
                    p.RpcComponent.Instance.Call(t, function() {
                        var t = new u.Req_Map_GodLandDuelBattle;
                        p.RpcComponent.Instance.Call(t, function(t) {
                            var n = new u.Req_Map_BattleSettlement;
                            n.MapType = f.MapType.GodLandDuel, p.RpcComponent.Instance.Call(n, function() {
                                e.SetResultItem(f.HelperOperationType.GodLandDuel, t.Rewards, [t.Params[1]]), e.scheduleOnce(function() {
                                    e.SetAutoBattle()
                                }, e._autoBattleInterval)
                            })
                        })
                    })
                }, t.prototype.CheckArtefactRelicBuyChallengeTimes = function() {
                    var e = this._allAssistantData[f.HelperOperationType.ArtefactRelicBuyCount][0],
                        t = p.DataCenter.Instance.GetSimpleData(f.UserDataKey.ArtefactRelicPayCount),
                        n = 0;
                    return t && t.V && (n = t.V), this._artefactRelicBuyChallengeTimes = e - n, this._artefactRelicBuyChallengeTimes > 0
                }, t.prototype.OnRequestArtefactRelicBuyChallengeTimes = function() {
                    var e = this,
                        t = new u.Req_Team2_ArtefactRelicBuyCount;
                    t.Count = this._artefactRelicBuyChallengeTimes, p.RpcComponent.Instance.Call(t, function() {
                        e.SetResultItem(f.HelperOperationType.ArtefactRelicBuyCount, null, [e._artefactRelicBuyChallengeTimes]), e._isArtefactRelicBuyCount = !0, e.scheduleOnce(function() {
                            e.SetAutoBattle()
                        }, e._autoBattleInterval)
                    })
                }, t.prototype.CheckArtefactRelicBattle = function(e) {
                    if (this._artefactFailArray[e] = !0, g.BattleManager.Instance.IsInBattle(f.MapType.ArtefactRelic)) return !1;
                    if (b.HolyRelicsData.GetLeftTimes().residueTimes <= 0) return !1;
                    for (var t, n = h.DataCenter.Instance.GetDataById(u.ArtefactRelic_Model, e), o = n ? 10 * n.Index + n.MapIndex + 1 : 0, r = p.ConfigDataComponent.Instance.GetConfigById(c.ArtefactRelic_Config, e), i = 0, a = 0; a < r.Maps.length; a++) i += r.Maps[a].Items.length;
                    return o != i && (t = n ? r.Maps[n.Index].Items[n.MapIndex + 1] ? r.Maps[n.Index].Items[n.MapIndex + 1] : r.Maps[n.Index + 1].Items[0] : r.Maps[0].Items[0], this._artefactRelicMapData = S.default.Instance.HolyRelicPickHero(t), !!this._artefactRelicMapData.success && (this._artefactFailArray[e] = !1, !0))
                }, t.prototype.ArtefactRelicAutoBattle = function() {
                    var e = this,
                        t = [];
                    this._artefactRelicMapData.result.forEach(function(e) {
                        var n = new u.UserFormation_Model;
                        n.Sid = 0, n.Angel = null, n.FormationType = 101, n.HeroIds = e, t.push(n)
                    });
                    var n = new u.Req_Team2_ArtefactRelicChallenge;
                    n.Sid = this._currentArtefactRelicId, n.Formations = t, p.RpcComponent.Instance.Call(n, function(t) {
                        for (var n = 0, o = 0; o < t.Reports.length; o++) t.Reports[o].Result == m.BattleResult.AttackerWin && n++;
                        var r = new u.Req_Map_BattleSettlement;
                        r.MapType = f.MapType.ArtefactRelic, p.RpcComponent.Instance.Call(r, function(o) {
                            if (n == t.Reports.length) {
                                var r = [t.Reports[0].MapId];
                                e.SetResultItem(f.HelperOperationType.ArtefactRelicWater, o.Rewards, r), e.scheduleOnce(function() {
                                    e.SetAutoBattle()
                                }, e._autoBattleInterval)
                            } else e._artefactFailArray[e._currentArtefactRelicId] = !0, e.SetAutoBattle()
                        })
                    })
                }, t.prototype.HolyAreaAutoChallenge = function() {
                    var e = this,
                        t = new u.Req_Ancient_Enter;
                    t.Type = 1, p.RpcComponent.Instance.Call(t, function() {
                        var t = !1,
                            n = h.DataCenter.Instance.GetDataById(u.AncientSacred_Model, 1),
                            o = h.ConfigDataComponent.Instance.GetArrayConfig(c.AncientSacredMap_Config),
                            r = 0;
                        if (o.forEach(function(e) {
                                r = Math.max(r, e.Id)
                            }), n.HighestMap) {
                            var i = h.ConfigDataComponent.Instance.GetConfigById(c.AncientSacredMap_Config, r),
                                a = i.MonsterType[i.MonsterType.length - 1].Items[0],
                                s = Math.floor(n.HighestMap / 100),
                                l = n.HighestMap % 100;
                            if (s == r && l == 3 * a)
                                if (n.Maps.length < a) t = !0;
                                else
                                    for (var d = 0; d < n.Maps.length; d++)
                                        if (7 != n.Maps[d]) {
                                            t = !0;
                                            break
                                        }
                        }
                        if (t) {
                            var y = new u.Req_Ancient_OneClickChallenge;
                            p.RpcComponent.Instance.Call(y, function(t) {
                                e.SetResultItem(f.HelperOperationType.HolyArea, t.Rewards, []), e._holyAreaIsCanChallenge = !1, e.scheduleOnce(function() {
                                    e.SetAutoBattle()
                                }, e._autoBattleInterval)
                            })
                        } else e._holyAreaIsCanChallenge = !1, e.SetAutoBattle()
                    })
                }, t.prototype.CheckStarLightSecretAuto = function() {
                    if (g.BattleManager.Instance.IsInBattle(f.MapType.StarLightSecretLand)) return !1;
                    var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.StarLightSecretTodayCount),
                        t = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarLightSecretLandDailyCount");
                    if (0 == (t - e > 0 ? t - e : 0)) return !1;
                    var n = !1;
                    return p.ConfigDataComponent.Instance.GetConfigById(c.MapType_Config, f.MapType.StarLightSecretLand).AttackerFormation.forEach(function(e) {
                        var t = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, e);
                        t && t.Angel && t.Angel.AngelId > 0 && (n = !0)
                    }), !!n
                }, t.prototype.StarLightSecretAutoBattle = function() {
                    var e, t = this,
                        n = p.DataCenter.Instance.GetIntData(f.UserDataKey.StarLightSecretProgress);
                    if (this._allAssistantData[f.HelperOperationType.StarLightSecret][1]) e = n;
                    else
                        for (var o = p.ConfigDataComponent.Instance.GetArrayConfig(c.StarLightSecretLandMap_Config), r = 0; r < o.length; r++)
                            if (o[r].Id > n || r == o.length - 1) {
                                e = o[r].Id;
                                break
                            } var i = [];
                    p.ConfigDataComponent.Instance.GetConfigById(c.MapType_Config, f.MapType.StarLightSecretLand).AttackerFormation.forEach(function(e) {
                        var t = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, e);
                        i.push(t)
                    });
                    var a = new u.Req_Map_StarLightSecretLandChallenge;
                    a.Id = e, a.Formations = i, p.RpcComponent.Instance.Call(a, function() {
                        var n = new u.Req_Map_BattleSettlement;
                        n.MapType = f.MapType.StarLightSecretLand, p.RpcComponent.Instance.Call(n, function(n) {
                            if (1 == n.Result) {
                                var o = [p.ConfigDataComponent.Instance.GetConfigById(c.StarLightSecretLandMap_Config, e).MapIds[0]];
                                t.SetResultItem(f.HelperOperationType.StarLightSecret, n.Rewards, o), t.scheduleOnce(function() {
                                    t.SetAutoBattle()
                                }, t._autoBattleInterval)
                            } else t._isStarLightSecretFail = !0, t.SetAutoBattle()
                        })
                    })
                }, t.prototype.CheckSaintsWarAuto = function() {
                    if (g.BattleManager.Instance.IsInBattle(f.MapType.SaintsWar1) || g.BattleManager.Instance.IsInBattle(f.MapType.SaintsWar2) || g.BattleManager.Instance.IsInBattle(f.MapType.SaintsWar3)) return !1
                }, t.prototype.CheckSecretAreaExploreAuto = function() {
                    var e = p.DataCenter.Instance.GetDataById(u.SecretAreaExplore_Model, 1);
                    return null != p.ConfigDataComponent.Instance.GetConfigById(c.SecretAreaMap_Config, e.Index)
                }, t.prototype.SecretAreaExploreAutoBattle = function() {
                    for (var e = [0], t = 0; t < A.SecretAreaSetType.None; t++) e[t + 1] = this._allAssistantData[f.HelperOperationType.SecretAreaExplore][t + 1];
                    T.default.SetItem(T.GameRecordDefine.SecretAreaAutoSet, JSON.stringify(e));
                    var n = p.DataCenter.Instance.GetDataById(u.SecretAreaExplore_Model, 1),
                        o = p.ConfigDataComponent.Instance.GetConfigById(c.SecretAreaMap_Config, n.Index),
                        r = new u.Req_Secret_GetMap;
                    p.RpcComponent.Instance.Call(r, function(e) {
                        l.UIManager.Instance.ShowUIPanel(d.PanelConfig.CloudsTurnPanel.Path, function() {
                            l.UIManager.Instance.ShowUIPanel(d.PanelConfig.SecretAreaExplorePanel.Path, e, o.Type == f.SecretAreaMapType.Reward, !0)
                        })
                    })
                }, t.prototype.OnSkipOtherPanelOver = function(e, t) {
                    switch (e) {
                        case f.HelperOperationType.SecretAreaExplore:
                            var n = t ? 1 : 0;
                            this.SetResultItem(f.HelperOperationType.SecretAreaExplore, null, [n]), this._isSecretAreaExploreStop = !0
                    }
                    t ? this.SetAutoBattle() : (this.SetOverTipState(), this.UnResultTip.node.active = 0 == this.ResultItemContainer.childrenCount)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([k(cc.Label)], t.prototype, "Title", void 0), i([k(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([k(cc.Node)], t.prototype, "ResultItemContainer", void 0), i([k(cc.Label)], t.prototype, "UnResultTip", void 0), i([k(cc.Button)], t.prototype, "OkButton", void 0), i([k(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([k(cc.Label)], t.prototype, "ExecuteTip", void 0), i([L], t)
            }(l.BaseUIPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Battle/BattleManager": "BattleManager",
        "../Components/AssistantResultItemComponent": "AssistantResultItemComponent",
        "../Components/TowerLayerItem": "TowerLayerItem",
        "./ContinuousFightPanel": "ContinuousFightPanel",
        "./HolyRelicsPanel": "HolyRelicsPanel",
        "./SecretAreaAutoSetPanel": "SecretAreaAutoSetPanel"
    }],
    AsyncLayout: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c1891KWKBNGqJia8Tlaw2fZ", "AsyncLayout");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TopPadding = 0, t.ScrollView = null, t.CellWidth = 0, t.CellHeight = 0, t.SpaceX = 0, t.SpaceY = 0, t._dataCount = 13, t._needFill = !1, t._isUpdateDone = !0, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.ScrollView.node.on("scrolling", this.OnScrolling, this), this._cellPrefab = e, this._onInitializeItem = t, this._frameMaxUpdateNum = o || 2, this._frameRenderTime = r || 2, this._virtualCellItems = [], this._unusedVirtualCellItems = [], this._needFill = n, this._isUpdateDone = !0, [2]
                        })
                    })
                }, t.prototype.RenderLayout = function(e, t, n) {
                    void 0 === t && (t = 0), void 0 === n && (n = !1), this.ScrollView.stopAutoScroll(), this._dataCount = e, this._forceRenderAllOnce = n, this.ResetAssets(), this.CalculateVirtualCellItems(t)
                }, t.prototype.CalculateVirtualCellItems = function(e) {
                    var t, n, o = cc.Vec2.ZERO;
                    this.ScrollView.horizontal ? (this._displayColum = Math.ceil(this.ScrollView.node.width / (this.CellWidth + this.SpaceX)), t = this.CellWidth / 2 + this.TopPadding, this._displayRow = Math.floor((this.ScrollView.node.height + this.SpaceY) / (this.CellHeight + this.SpaceY)), n = (this._displayRow * this.CellHeight + (this._displayRow - 1) * this.SpaceY - this.CellHeight) / 2, this.node.width = (this.CellWidth + this.SpaceX) * Math.ceil(this._dataCount / this._displayRow) - this.SpaceX + this.TopPadding, 0 != e && (o.x = this.TopPadding + (this.CellWidth + this.SpaceX) * e - this.SpaceX)) : (this._displayRow = Math.ceil(this.ScrollView.node.height / (this.CellHeight + this.SpaceY)), n = -this.CellHeight / 2 - this.TopPadding, this._displayColum = Math.floor((this.ScrollView.node.width + this.SpaceX) / (this.CellWidth + this.SpaceX)), t = -(this._displayColum * this.CellWidth + (this._displayColum - 1) * this.SpaceX - this.CellWidth) / 2, this.node.height = (this.CellHeight + this.SpaceY) * Math.ceil(this._dataCount / this._displayColum) - this.SpaceY + this.TopPadding, 0 != e && (o.y = this.TopPadding + (this.CellHeight + this.SpaceY) * e - this.SpaceY)), this._startPosX = t, this._startPosY = n, this._isUpdateDone = !1, this._updateIndex = 0, this.ScrollView.scrollToOffset(o), this.OnScrolling()
                }, t.prototype.GetPosX = function(e) {
                    return this._startPosX + e * (this.CellWidth + this.SpaceX)
                }, t.prototype.GetPosY = function(e) {
                    return this._startPosY - e * (this.CellHeight + this.SpaceY)
                }, t.prototype.CreateVirtualCellItem = function() {
                    var e;
                    return this._unusedVirtualCellItems.length > 0 ? ((e = this._unusedVirtualCellItems.pop()).Node && (e.Node.active = !0), e) : e = {
                        IsInit: !1,
                        DataIndex: 0,
                        NodeIndex: 0,
                        X: 0,
                        Y: 0,
                        Node: null
                    }
                }, t.prototype.RecyclVirtualCellItem = function(e) {
                    this._unusedVirtualCellItems.push(e), e.IsInit = !1, e.Node && (e.Node.active = !1)
                }, t.prototype.update = function() {
                    if (!this._isUpdateDone) {
                        for (var e = cc.director.getTotalTime(), t = 0, n = 0; this._updateIndex < this._virtualCellItems.length && (this._forceRenderAllOnce || t < this._frameRenderTime && n < this._frameMaxUpdateNum); this._updateIndex++) {
                            var o = this._virtualCellItems[this._updateIndex];
                            o.IsInit || (o.Node || (o.Node = cc.instantiate(this._cellPrefab), o.Node.parent = this.node, o.NodeIndex = this.node.childrenCount - 1, o.Node.setPosition(o.X, o.Y), n++), o.Node.active = !0, o.IsInit = !0, this.UpdateItem(o), t = cc.director.getTotalTime() - e)
                        }
                        this._updateIndex >= this._virtualCellItems.length && (this._isUpdateDone = !0, this._forceRenderAllOnce = !1)
                    }
                }, t.prototype.UpdateItem = function(e) {
                    null != this._onInitializeItem && this._onInitializeItem(e.Node, e.DataIndex, e.NodeIndex)
                }, t.prototype.ResetAssets = function() {
                    for (var e = this._virtualCellItems.length - 1; e >= 0; e--) {
                        var t = this._virtualCellItems[e];
                        this.RecyclVirtualCellItem(t)
                    }
                    this._virtualCellItems = []
                }, t.prototype.ReRender = function() {
                    for (var e = 0; e < this._virtualCellItems.length; e++) {
                        var t = this._virtualCellItems[e];
                        (t.IsInit || this._forceRenderAllOnce) && this.UpdateItem(t)
                    }
                }, t.prototype.OnScrolling = function() {
                    if (this.ScrollView.vertical) {
                        var e = this.ScrollView.getScrollOffset().y,
                            t = this.GetViewStartRowOrColumIndex(e) * this._displayColum,
                            n = (Math.ceil((e + this.ScrollView.node.height - this.TopPadding) / (this.CellHeight + this.SpaceY)) - 1 + 1) * this._displayColum - 1;
                        this.AdjustCellItem(t, n, this._displayColum, !0)
                    } else if (this.ScrollView.horizontal) {
                        var o = -this.ScrollView.getScrollOffset().x;
                        t = this.GetViewStartRowOrColumIndex(o) * this._displayRow, n = (Math.ceil((o + this.ScrollView.node.width + this.TopPadding) / (this.CellWidth + this.SpaceX)) - 1 + 1) * this._displayRow - 1, this.AdjustCellItem(t, n, this._displayRow, !1)
                    }
                }, t.prototype.GetViewStartRowOrColumIndex = function(e) {
                    if (this.ScrollView.vertical) {
                        var t = null == e ? this.ScrollView.getScrollOffset().y : e,
                            n = Math.floor((t - this.TopPadding + this.SpaceY) / (this.CellHeight + this.SpaceY));
                        return Math.max(n, 0)
                    }
                    if (this.ScrollView.horizontal) {
                        var o = null == e ? this.ScrollView.getScrollOffset().x : e,
                            r = Math.floor((o + this.TopPadding + this.SpaceX) / (this.CellWidth + this.SpaceX));
                        return Math.max(r, 0)
                    }
                }, t.prototype.AdjustCellItem = function(e, t, n, o) {
                    for (var r = [], i = {}, a = this._virtualCellItems.length - 1; a >= 0; a--) {
                        var s = this._virtualCellItems[a];
                        s.DataIndex < e || s.DataIndex > t ? r.push(s) : i[s.DataIndex] = !0
                    }
                    t >= this._dataCount && !this._needFill && (t = this._dataCount - 1);
                    for (var l = e; l <= t; l++)
                        if (!i[l]) {
                            var c = void 0;
                            r.length > 0 ? c = r.shift() : (c = this.CreateVirtualCellItem(), this._virtualCellItems.push(c)), c.DataIndex = l, c.IsInit = !1;
                            var u = l % n,
                                p = Math.floor(l / n);
                            c.X = this.GetPosX(o ? u : p), c.Y = this.GetPosY(o ? p : u), c.Node && c.Node.setPosition(c.X, c.Y), this._forceRenderAllOnce || (this._isUpdateDone = !1, this._updateIndex = 0)
                        } this._virtualCellItems.sort(this.SortCellItems), this._forceRenderAllOnce && (this.ReRender(), this._forceRenderAllOnce = !1)
                }, t.prototype.SortCellItems = function(e, t) {
                    return e.DataIndex - t.DataIndex
                }, i([u({
                    type: cc.Integer,
                    displayName: "Top Padding"
                })], t.prototype, "TopPadding", void 0), i([u(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([u], t.prototype, "CellWidth", void 0), i([u], t.prototype, "CellHeight", void 0), i([u], t.prototype, "SpaceX", void 0), i([u], t.prototype, "SpaceY", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {}],
    AttentionGiftPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d06c5buWNtGYZD5lZymJGd6", "AttentionGiftPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../../Components/RpcComponent"),
            I = e("../Components/ItemComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../RedDot/RedDotManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RuleTitle = null, t.RuleContent = null, t.RewardTitle = null, t.RewardNode = null, t.LineButton = null, t.LineLabel = null, t.LineGetNode = null, t.TwitterButton = null, t.TwitterLabel = null, t.TwitterGetNode = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.RuleTitle.string = "hangUpDropRuleTitle".ToUILocale(), this.RuleContent.string = "attentionGift_desc".ToUILocale(), this.RewardTitle.string = "hangUpDropRewardsTitle".ToUILocale(), this.LineLabel.string = "task_goto".ToUILocale(), this.TwitterLabel.string = "task_goto".ToUILocale(), this.LineButton.node.on("click", this.OnClickLineButton, this), this.TwitterButton.node.on("click", this.OnTwitterButton, this), l.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.LineButton.node.off("click", this.OnClickLineButton, this), this.TwitterButton.node.off("click", this.OnTwitterButton, this), l.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.start = function() {
                    this.InitNodes(), this.SetInfo(), this.SetRewards()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    var e = d.DataCenter.Instance.GetArrayData(u.UserDataKey.DrawedOuterRewards);
                    e && e.length > 0 ? (this.LineGetNode.active = -1 != e.indexOf(h.OuterRewardType.Line), this.TwitterGetNode.active = -1 != e.indexOf(h.OuterRewardType.Twitter)) : (this.LineGetNode.active = !1, this.TwitterGetNode.active = !1), v.RedDotManager.Instance.Bind(this.LineButton.node, v.RedDotManager.Instance.RedDot.AttentionLineNode), v.RedDotManager.Instance.Bind(this.TwitterButton.node, v.RedDotManager.Instance.RedDot.AttentionTwitterNode)
                }, t.prototype.SetRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = o.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    return (t = g.ConfigDataComponent.Instance.GetConfigById(c.OuterReward_Config, h.OuterRewardType.Twitter)) && t.Rewards.forEach(function(e, t) {
                                        if (!n._itemNodes[t]) {
                                            var o = cc.instantiate(n._itemPrefab);
                                            o.parent = n.RewardNode, n._itemNodes[t] = o
                                        }
                                        n._itemNodes[t].active = !0, n._itemNodes[t].getComponent(I.ItemComponent).Init({
                                            ItemId: e.Items[0],
                                            Count: e.Items[1]
                                        }, I.ItemComponentType.ItemCommon)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && _.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t)
                }, t.prototype.OnClickLineButton = function() {
                    this.DealWithAttention(h.OuterRewardType.Line), cc.sys.openURL("https://lin.ee/ivBy52n")
                }, t.prototype.OnTwitterButton = function() {
                    this.DealWithAttention(h.OuterRewardType.Twitter), cc.sys.openURL("https://twitter.com/queensbladeLB")
                }, t.prototype.DealWithAttention = function(e) {
                    var t = d.DataCenter.Instance.GetArrayData(u.UserDataKey.DrawedOuterRewards);
                    if (!(t && t.length > 0 && -1 != t.indexOf(e))) {
                        var n = new p.Req_Player_ReceiveOuterRewards;
                        n.Id = e, m.RpcComponent.Instance.Call(n, function(e) {
                            _.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this.SetInfo()
                        }.bind(this))
                    }
                }, t.prototype.onDestroy = function() {
                    f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemPrefab = null
                }, i([w(cc.Label)], t.prototype, "RuleTitle", void 0), i([w(cc.Label)], t.prototype, "RuleContent", void 0), i([w(cc.Label)], t.prototype, "RewardTitle", void 0), i([w(cc.Node)], t.prototype, "RewardNode", void 0), i([w(cc.Button)], t.prototype, "LineButton", void 0), i([w(cc.Label)], t.prototype, "LineLabel", void 0), i([w(cc.Node)], t.prototype, "LineGetNode", void 0), i([w(cc.Button)], t.prototype, "TwitterButton", void 0), i([w(cc.Label)], t.prototype, "TwitterLabel", void 0), i([w(cc.Node)], t.prototype, "TwitterGetNode", void 0), i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    AttrComponent2: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "970cfv+Au9F/Ih1PAUN6wD4", "AttrComponent2");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AttrComponent2Style = void 0;
        var a, s = e("../../Auxiliary/DataUtlity");
        (function(e) {
            e[e.Left = 0] = "Left", e[e.Mid = 1] = "Mid", e[e.Right = 2] = "Right"
        })(a = n.AttrComponent2Style || (n.AttrComponent2Style = {}));
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagBg = null, t.AttrName = null, t.ValueLayout = null, t.AttrCurrentValue = null, t.AttrAddValue = null, t.AttrIcon = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this._nodeWidth && this.SetAttrValueStyle(this._nodeWidth, this._tagBgwidth, this._curValueStyle, this._addValueStyle)
                }, t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = null), this.AttrName.string = ("hero_attr_" + e).ToUILocale(), this.AttrIcon.spriteFrame = s.default.GetAttrIcon(e), this.AttrCurrentValue.string = s.default.GetAttrText(e, t), null === n ? this.AttrAddValue.node.active = !1 : (this.AttrAddValue.node.active = !0, this.AttrAddValue.string = s.default.GetAttrText(e, n))
                }, t.prototype.SetPrefix = function(e) {
                    this.AttrName.string = e + this.AttrName.string
                }, t.prototype.SetAttrValueStyle = function(e, t, n, o) {
                    var r = this;
                    void 0 === n && (n = a.Mid), void 0 === o && (o = a.Mid), this._nodeWidth = e, this._tagBgwidth = t, this._curValueStyle = n, this._addValueStyle = o, e > 0 && (this.node.width = e), t > 0 && (this.TagBg.node.width = t), this.SetAttrOpacity(0), this.ValueLayout.enabled = !1, this.ValueLayout.node.width = this.node.width - this.TagBg.node.width - 17;
                    var i = n == a.Mid ? .5 : n == a.Left ? 0 : 1,
                        s = o == a.Mid ? .5 : o == a.Left ? 0 : 1,
                        l = n == a.Mid ? 0 : n == a.Left ? -this.ValueLayout.node.width / 2 : this.ValueLayout.node.width / 2,
                        c = o == a.Mid ? 0 : o == a.Left ? -this.ValueLayout.node.width / 2 : this.ValueLayout.node.width / 2;
                    n == o ? (this.ValueLayout.node.anchorX = i, this.ValueLayout.enabled = !0, this.SetAttrOpacity(255)) : (n == a.Mid || a.Mid, this.ValueLayout.node.anchorX = .5, this.scheduleOnce(function() {
                        r.AttrCurrentValue.node.anchorX = i, r.AttrCurrentValue.node.x = l, r.AttrAddValue.node.anchorX = s, r.AttrAddValue.node.x = c, r.SetAttrOpacity(255)
                    }, 0))
                }, t.prototype.SetAttrOpacity = function(e) {
                    this.AttrCurrentValue.node.opacity = e, this.AttrAddValue.node.opacity = e
                }, t.prototype.SetCurAttrX = function(e) {
                    this.AttrCurrentValue.node.x = e
                }, t.prototype.SetCurAttrFontSize = function(e) {
                    this.AttrCurrentValue.fontSize = e
                }, t.prototype.SetCurAttrColor = function(e) {
                    this.AttrCurrentValue.node.color = e
                }, t.prototype.SetCurAttrOutline = function(e, t) {
                    var n = this.AttrCurrentValue.node.getComponent(cc.LabelOutline);
                    n || (n = this.AttrCurrentValue.node.addComponent(cc.LabelOutline)), n.color = e, n.width = t
                }, t.prototype.SetAttrNameFontSize = function(e) {
                    this.AttrName.fontSize = e
                }, t.prototype.SetAttrNameColor = function(e) {
                    this.AttrName.node.color = e
                }, t.prototype.SetAttrNameOutline = function(e, t) {
                    var n = this.AttrName.node.getComponent(cc.LabelOutline);
                    n || (n = this.AttrName.node.addComponent(cc.LabelOutline)), n.color = e, n.width = t
                }, i([u(cc.Sprite)], t.prototype, "TagBg", void 0), i([u(cc.Label)], t.prototype, "AttrName", void 0), i([u(cc.Layout)], t.prototype, "ValueLayout", void 0), i([u(cc.Label)], t.prototype, "AttrCurrentValue", void 0), i([u(cc.Label)], t.prototype, "AttrAddValue", void 0), i([u(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    AttrComponent3: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3ba71c1mhxPI6n1rljea42x", "AttrComponent3");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrValue = null, t.AttrIcon = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.AttrValue.string = a.default.GetAttrText(e, t), this.AttrIcon.spriteFrame = a.default.GetAttrIcon(e)
                }, i([c(cc.Label)], t.prototype, "AttrValue", void 0), i([c(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    AttrComponent4: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ced0dzQtJpNeZ5lyCrZq3px", "AttrComponent4");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AttrComponent4Align = void 0;
        var a, s = e("../../Auxiliary/DataUtlity");
        (function(e) {
            e[e.Left = 0] = "Left", e[e.Mid = 1] = "Mid", e[e.Right = 2] = "Right"
        })(a = n.AttrComponent4Align || (n.AttrComponent4Align = {}));
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RightBg = null, t.TagNode = null, t.AttrName = null, t.ValueLayout = null, t.AttrCurrentValue = null, t.AttrAddValue = null, t.AttrIcon = null, t.Widgets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = null);
                    var o = !0;
                    if (n ? (n.AttrNamePrefix ? this.AttrName.string = "" + n.AttrNamePrefix + ("hero_attr_" + e).ToUILocale() : n.AttrName ? this.AttrName.string = n.AttrName : this.AttrName.string = ("hero_attr_" + e).ToUILocale(), n.AttrValue && (this.AttrCurrentValue.string = n.AttrValue), n.NotChangeTagNodeWidth && (o = !1)) : (this.AttrName.string = ("hero_attr_" + e).ToUILocale(), this.AttrCurrentValue.string = s.default.GetAttrText(e, t)), this.AttrIcon.spriteFrame = s.default.GetAttrIcon(e), n && n.AttrValue ? this.AttrCurrentValue.string = n.AttrValue : this.AttrCurrentValue.string = s.default.GetAttrText(e, t), n) {
                        var r = !1;
                        if (n.NodeWidth && (this.node.width = n.NodeWidth, r = !0), null == n.AddValue ? this.AttrAddValue.node.active = !1 : (this.AttrAddValue.node.active = !0, this.AttrAddValue.string = s.default.GetAttrText(e, n.AddValue)), n.ValueNodeWidth && (this.RightBg.width = n.ValueNodeWidth / this.RightBg.scale), r)
                            for (var i = 0; i < this.Widgets.length; i++) this.Widgets[i].updateAlignment();
                        switch (n.ValueAlign) {
                            case a.Left:
                                this.ValueLayout.node.anchorX = 0, this.ValueLayout.node.x = this.RightBg.x - this.RightBg.width * this.RightBg.scale + 10;
                                break;
                            case a.Right:
                                this.ValueLayout.node.anchorX = 1, this.ValueLayout.node.x = this.RightBg.x - 10;
                                break;
                            default:
                                this.ValueLayout.node.anchorX = .5, this.ValueLayout.node.x = this.RightBg.x - this.RightBg.width * this.RightBg.scale / 2
                        }
                    } else this.AttrAddValue.node.active = !1;
                    o && (this.TagNode.width = this.node.width - this.RightBg.width * this.RightBg.scale)
                }, i([u(cc.Node)], t.prototype, "RightBg", void 0), i([u(cc.Node)], t.prototype, "TagNode", void 0), i([u(cc.Label)], t.prototype, "AttrName", void 0), i([u(cc.Layout)], t.prototype, "ValueLayout", void 0), i([u(cc.Label)], t.prototype, "AttrCurrentValue", void 0), i([u(cc.Label)], t.prototype, "AttrAddValue", void 0), i([u(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([u(cc.Widget)], t.prototype, "Widgets", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    AttrComponent5: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e2af89zXElOSa27EcIT7Yc3", "AttrComponent5");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AttrComponent5Align = void 0;
        var a, s = e("../../Auxiliary/DataUtlity");
        (function(e) {
            e[e.Left = 0] = "Left", e[e.Mid = 1] = "Mid", e[e.Right = 2] = "Right"
        })(a = n.AttrComponent5Align || (n.AttrComponent5Align = {}));
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RightBg = null, t.TagNode = null, t.AttrName = null, t.ValueLayout = null, t.AttrCurrentValue = null, t.AttrAddValue = null, t.AttrIcon = null, t.Widgets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    if (void 0 === n && (n = null), n ? n.AttrNamePrefix ? this.AttrName.string = "" + n.AttrNamePrefix + ("hero_attr_" + e).ToUILocale() : n.AttrName ? this.AttrName.string = n.AttrName : this.AttrName.string = ("hero_attr_" + e).ToUILocale() : this.AttrName.string = ("hero_attr_" + e).ToUILocale(), this.AttrIcon.spriteFrame = s.default.GetAttrIcon(e), n && n.AttrValue ? this.AttrCurrentValue.string = n.AttrValue : this.AttrCurrentValue.string = s.default.GetAttrText(e, t), n) {
                        var o = !1;
                        if (n.NodeWidth && (this.node.width = n.NodeWidth, o = !0), null == n.AddValue ? this.AttrAddValue.node.active = !1 : (this.AttrAddValue.node.active = !0, this.AttrAddValue.string = s.default.GetAttrText(e, n.AddValue)), n.ValueNodeWidth && (this.RightBg.width = n.ValueNodeWidth / this.RightBg.scale), o)
                            for (var r = 0; r < this.Widgets.length; r++) this.Widgets[r].updateAlignment();
                        switch (n.ValueAlign) {
                            case a.Left:
                                this.ValueLayout.node.anchorX = 0, this.ValueLayout.node.x = this.RightBg.x - this.RightBg.width * this.RightBg.scale + 10;
                                break;
                            case a.Right:
                                this.ValueLayout.node.anchorX = 1, this.ValueLayout.node.x = this.RightBg.x - 10;
                                break;
                            default:
                                this.ValueLayout.node.anchorX = .5, this.ValueLayout.node.x = this.RightBg.x - this.RightBg.width * this.RightBg.scale / 2
                        }
                    } else this.AttrAddValue.node.active = !1;
                    this.TagNode.width = this.node.width - this.RightBg.width * this.RightBg.scale
                }, t.prototype.SetCurValueColor = function(e) {
                    this.AttrCurrentValue.node.color = e
                }, i([u(cc.Node)], t.prototype, "RightBg", void 0), i([u(cc.Node)], t.prototype, "TagNode", void 0), i([u(cc.Label)], t.prototype, "AttrName", void 0), i([u(cc.Layout)], t.prototype, "ValueLayout", void 0), i([u(cc.Label)], t.prototype, "AttrCurrentValue", void 0), i([u(cc.Label)], t.prototype, "AttrAddValue", void 0), i([u(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([u(cc.Widget)], t.prototype, "Widgets", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    AttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d2572roe5xGepBaQD80/nlh", "AttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagLabel = null, t.ValueLabel = null, t.UpArrow = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = !1), this.TagLabel.string = e, this.ValueLabel.string = t, this.UpArrow.active = n
                }, i([l(cc.Label)], t.prototype, "TagLabel", void 0), i([l(cc.Label)], t.prototype, "ValueLabel", void 0), i([l(cc.Node)], t.prototype, "UpArrow", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AttrNull: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "71f50ggySdMYqrrS691Wygm", "AttrNull");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DescLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.DescLabel.string = e
                }, i([l(cc.Label)], t.prototype, "DescLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AttrTotalComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3c1558fRplOw5I7fAt+TbzO", "AttrTotalComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/CollectionTotalAttrComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NoAttrNode = null, t.NoAttrLabel = null, t.AttrTitleLabel = null, t.AttrLayout = null, t.ClickNode = null, t._totalAttrNodes = [], t
                }
                return r(t, e), t.prototype.start = function() {
                    this.ClickNode.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
                }, t.prototype.Init = function(e, t) {
                    this._data = e, this._targetNode = t, this.NoAttrLabel.string = "CollectionPavilion_Tip_UnAttr".ToUILocale(), this.NoAttrNode.active = 0 == e.Attrs.length, this.AttrLayout.node.active = e.Attrs.length > 0, e.Attrs.length > 0 && this.SetAttrs(), this.SetClickNodePosition()
                }, t.prototype.SetAttrs = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._totalAttrItem ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset("CollectionPavilionPanel/Components/CollectionTotalAttrComponent", cc.Prefab)]);
                                case 1:
                                    if (e._totalAttrItem = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._totalAttrItem), [2];
                                    n.label = 2;
                                case 2:
                                    return this.AttrTitleLabel.string = this._data.Title, this._totalAttrNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._data.Attrs.forEach(function(e, n) {
                                        if (!t._totalAttrNodes[n]) {
                                            var o = cc.instantiate(t._totalAttrItem);
                                            o.parent = t.AttrLayout.node, t._totalAttrNodes[n] = o
                                        }
                                        var r = c.default.GetHeroAttribute(e.AttrId, e.AttrValue),
                                            i = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + r.Name;
                                        t._totalAttrNodes[n].active = !0, t._totalAttrNodes[n].getComponent(p.default).Init(r.Icon, i, r.Value)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetNodeWidth = function(e) {
                    this.node.width = e
                }, t.prototype.SetClickNodePosition = function() {
                    var e = this._targetNode.convertToWorldSpaceAR(cc.v2(0, 0)),
                        t = this.node.convertToNodeSpaceAR(e);
                    this.ClickNode.setPosition(t)
                }, t.prototype.OnTouch = function() {
                    l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CLOSE_ATTRTOTAL_COMPONENT, this)
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._totalAttrItem), this._totalAttrItem = null
                }, i([f(cc.Node)], t.prototype, "NoAttrNode", void 0), i([f(cc.Label)], t.prototype, "NoAttrLabel", void 0), i([f(cc.Label)], t.prototype, "AttrTitleLabel", void 0), i([f(cc.Layout)], t.prototype, "AttrLayout", void 0), i([f(cc.Node)], t.prototype, "ClickNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/CollectionTotalAttrComponent": "CollectionTotalAttrComponent"
    }],
    AttributeItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "94547JBvBFCI7ZHWA4Yqiyb", "AttributeItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.Icon = null, t.CurrentValue = null, t.Value1 = null, t.Value2 = null, t.Arrow = null, t.MaxFlag = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._itemData = e, this.Name.string = e.Name, e.Icon ? (this.Icon.node.active = !0, this.Icon.spriteFrame = e.Icon, this.Name.node.parent.x = -this.node.width / 2) : (this.Icon.node.active = !1, this.Name.node.parent.x = -this.node.width / 2 + 20), e.NewValue ? (this.Value1.node.active = !0, this.Value2.node.active = !0, this.Arrow.active = !0, this.CurrentValue.node.active = !1, this.Value1.string = e.OldValue, this.Value2.string = e.NewValue) : (this.Value1.node.active = !1, this.Value2.node.active = !1, this.Arrow.active = !1, this.CurrentValue.node.active = !0, this.CurrentValue.string = e.OldValue), e.IsMax ? this.MaxFlag.active = !0 : this.MaxFlag.active = !1
                }, i([l(cc.Label)], t.prototype, "Name", void 0), i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([l(cc.Label)], t.prototype, "CurrentValue", void 0), i([l(cc.Label)], t.prototype, "Value1", void 0), i([l(cc.Label)], t.prototype, "Value2", void 0), i([l(cc.Node)], t.prototype, "Arrow", void 0), i([l(cc.Node)], t.prototype, "MaxFlag", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    AudioManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6397dtSg7ZGH5HMk3mPHtr0", "AudioManager");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AudioManager = void 0;
        var l = e("../EZFramework"),
            c = e("../AssetsLoader/AssetsManager"),
            u = e("../../../Proto/Static/ConfigProto"),
            p = e("../../GamePlay/Components/Components"),
            d = e("../../GamePlay/Auxiliary/EventKeys"),
            h = e("../../EZFramework/EZFramework"),
            f = e("../../GamePlay/Auxiliary/DataUtlity"),
            y = e("../../ShareConsts/EnumType"),
            g = e("../../../Proto/Static/RpcProto"),
            m = cc._decorator,
            I = m.ccclass,
            _ = (m.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.QUEEN_MUSIC_VOLUME = "queen_music_volume", t.QUEEN_EFFECT_VOLUME = "queen_effect_volume", t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return null === this._instance && (this._instance = cc.find(l.SysDefine.SYS_SCRIPTNODE).addComponent(this)), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function() {
                    this.SetMusicVolume(this.MusicVolume), this.SetEffectVolume(this.EffectVolume)
                }, t.prototype.PlayMusic = function(e, t) {
                    return void 0 === t && (t = !0), a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    if (!(n = p.ConfigDataComponent.Instance.GetConfigById(u.Audio_Config, e))) return [2];
                                    if (this._currentMusicPath = n.Path, this._playingMusic) {
                                        if (this._playingMusic.name == this._currentMusicPath) return cc.audioEngine.isMusicPlaying() ? this.ResumeMusic() : cc.audioEngine.playMusic(this._playingMusic, t), [2];
                                        c.AssetsManager.Instance.UnloadAsset(this._playingMusic), this._playingMusic = null
                                    }
                                    return cc.audioEngine.stopMusic(), [4, c.AssetsManager.Instance.LoadAsset(this._currentMusicPath)];
                                case 1:
                                    return (o = r.sent()).name != this._currentMusicPath ? (c.AssetsManager.Instance.UnloadAsset(o), [2]) : (this._playingMusic = o, cc.audioEngine.playMusic(o, t), [2])
                            }
                        })
                    })
                }, t.prototype.PauseMusic = function() {
                    cc.audioEngine.pauseMusic()
                }, t.prototype.ResumeMusic = function() {
                    cc.audioEngine.resumeMusic()
                }, t.prototype.StopMusic = function() {
                    cc.audioEngine.stopMusic()
                }, t.prototype.SetMusicVolume = function(e) {
                    l.EZLog.Log("SetMusicVolume volume : " + e), cc.audioEngine.setMusicVolume(e);
                    var t = p.DataCenter.Instance.GetSimpleData(y.UserDataKey.RadioMusic);
                    t && e == Number(t.Str) || this.RequestChangeRadio(y.RadioType.Music, e)
                }, Object.defineProperty(t.prototype, "MusicVolume", {
                    get: function() {
                        var e = p.DataCenter.Instance.GetSimpleData(y.UserDataKey.RadioMusic);
                        return e ? Number(e.Str) : cc.audioEngine.getMusicVolume()
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.RequestChangeRadio = function(e, t) {
                    var n = new g.Req_Player_ChangeRadio;
                    n.Type = e, n.Value = t.toString(), p.RpcComponent.Instance.CallWithoutMask(n, function() {})
                }, t.prototype.PlayMainSceneMusic = function() {
                    var e = 1001,
                        t = f.default.GetCurrentSelctedMainSceneInfo();
                    if (t) {
                        var n = t[0];
                        if (t[1] == y.CustomizeMainSceneType.Scene) {
                            var o = p.ConfigDataComponent.Instance.GetConfigById(u.ItemMainSceneBackground_Config, n);
                            o.AudioId && (e = o.AudioId)
                        }
                    }
                    this.PlayMusic(e)
                }, t.prototype.PlayNormalBattleMusic = function() {
                    this.PlayMusic(1002)
                }, t.prototype.PlayBossBattleMusic = function() {
                    this.PlayMusic(1003)
                }, t.prototype.PlayEffect = function(e, t, n) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        var o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return r = 0, e instanceof cc.AudioClip ? (o = e, [3, 3]) : [3, 1];
                                case 1:
                                    return r = e, (i = p.ConfigDataComponent.Instance.GetConfigById(u.Audio_Config, e)) ? [4, c.AssetsManager.Instance.LoadAsset(i.Path)] : [2];
                                case 2:
                                    o = s.sent(), s.label = 3;
                                case 3:
                                    return a = cc.audioEngine.playEffect(o, t), cc.audioEngine.setFinishCallback(a, function() {
                                        n && n(), t || c.AssetsManager.Instance.UnloadAsset(o)
                                    }), [2, {
                                        ConfigId: r,
                                        AudioClip: o,
                                        EffectId: a
                                    }]
                            }
                        })
                    })
                }, t.prototype.PauseEffect = function(e) {
                    cc.audioEngine.pauseEffect(e)
                }, t.prototype.PauseAllEffects = function() {
                    cc.audioEngine.pauseAllEffects()
                }, t.prototype.ResumeEffect = function(e) {
                    cc.audioEngine.resumeEffect(e)
                }, t.prototype.ResumeAllEffects = function() {
                    cc.audioEngine.resumeAllEffects()
                }, t.prototype.StopEffect = function(e) {
                    cc.audioEngine.stopEffect(e)
                }, t.prototype.StopAllEffects = function() {
                    cc.audioEngine.stopAllEffects()
                }, t.prototype.SetEffectVolume = function(e) {
                    cc.audioEngine.setEffectsVolume(e), h.Game.EventDispatcher.Emit(d.EventKeys.EVENT_AUDIOEFFECT_VOLUME);
                    var t = p.DataCenter.Instance.GetSimpleData(y.UserDataKey.RadioSound);
                    t && e == Number(t.Str) || this.RequestChangeRadio(y.RadioType.Sound, e)
                }, Object.defineProperty(t.prototype, "EffectVolume", {
                    get: function() {
                        var e = p.DataCenter.Instance.GetSimpleData(y.UserDataKey.RadioSound);
                        return e ? Number(e.Str) : cc.audioEngine.getEffectsVolume()
                    },
                    enumerable: !1,
                    configurable: !0
                }), t._instance = null, i([I], t)
            }(cc.Component));
        n.AudioManager = _, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../EZFramework/EZFramework": "EZFramework",
        "../../GamePlay/Auxiliary/DataUtlity": "DataUtlity",
        "../../GamePlay/Auxiliary/EventKeys": "EventKeys",
        "../../GamePlay/Components/Components": "Components",
        "../../ShareConsts/EnumType": "EnumType",
        "../AssetsLoader/AssetsManager": "AssetsManager",
        "../EZFramework": "EZFramework"
    }],
    AutoSetHeroHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "49cc3m/7PpIBoqLx/rqdp8/", "AutoSetHeroHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/DataCenter"),
            y = e("../../Components/Components"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/LevelComponent"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.Title = null, t.ScrollView = null, t.CustomLayout = null, t.CancelBtn = null, t.SureBtn = null, t.CancelBtnLabel = null, t.SureBtnLabel = null, t.SelectTitle = null, t.TipLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "hint".ToUILocale(), this.CancelBtnLabel.string = "Answer_QuitNo".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale(), this.SelectTitle.string = "auto_setHero_title".ToUILocale(), this.TipLabel.string = "auto_setHero_hint".ToUILocale(), this.CancelBtn.node.on("click", this.OnCancelBtnClick, this), this.SureBtn.node.on("click", this.OnSureBtnClick, this), this.CustomLayout.Init(this._itemPrefab)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectMaterials = t[0], this._okCallback = t[1]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetData(), this.ConfigLayout()
                }, t.CheckNeedShowAutoShetHero = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        var n = e[t];
                        switch (n.Type) {
                            case m.UpStarHeroMaterialType.Hero:
                                var o = f.DataCenter.Instance.GetDataById(c.UserHero_Model, n.Id);
                                if (o) {
                                    var r = y.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, o.HeroId);
                                    if (r.CoreHero > 0 || r.MaxStarLevel > 9) return !0
                                }
                                break;
                            case m.UpStarHeroMaterialType.Compose:
                                return !0
                        }
                    }
                    return !1
                }, t.prototype.SetData = function() {
                    this._showMaterials = [];
                    for (var e = 0; e < this._selectMaterials.length; e++) {
                        var t = this._selectMaterials[e];
                        switch (t.Type) {
                            case m.UpStarHeroMaterialType.Hero:
                                var n = f.DataCenter.Instance.GetDataById(c.UserHero_Model, t.Id);
                                if (n) {
                                    var o = y.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, n.HeroId);
                                    (o.CoreHero > 0 || o.MaxStarLevel > 9) && this._showMaterials.push(t)
                                }
                                break;
                            case m.UpStarHeroMaterialType.Compose:
                                for (var r = 0; r < t.Param.length; r++) this._showMaterials.push(t.Param[r])
                        }
                    }
                    this._showMaterials.sort(this.SortShowingMaterials.bind(this))
                }, t.prototype.SortShowingMaterials = function(e, t) {
                    if (e.Type == m.UpStarHeroMaterialType.Hero && t.Type != m.UpStarHeroMaterialType.Hero) return -1;
                    if (e.Type != m.UpStarHeroMaterialType.Hero && t.Type == m.UpStarHeroMaterialType.Hero) return 1;
                    if (e.Type == m.UpStarHeroMaterialType.Hero && t.Type == m.UpStarHeroMaterialType.Hero) {
                        var n = f.DataCenter.Instance.GetDataById(c.UserHero_Model, e.Id),
                            o = f.DataCenter.Instance.GetDataById(c.UserHero_Model, t.Id),
                            r = y.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, n.HeroId),
                            i = y.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, o.HeroId);
                        if (r.CoreHero && !i.CoreHero) return -1;
                        if (!r.CoreHero && i.CoreHero) return 1
                    }
                    return 0
                }, t.prototype.ConfigLayout = function() {
                    this.CustomLayout.RenderLayOut(this._showMaterials.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = e.getComponent(g.ItemComponent),
                            r = n._showMaterials[t];
                        switch (r.Type) {
                            case m.UpStarHeroMaterialType.Hero:
                                var i = f.DataCenter.Instance.GetDataById(c.UserHero_Model, r.Id);
                                o.Init(i, g.ItemComponentType.HeroInfo);
                                break;
                            case m.UpStarHeroMaterialType.Item:
                                var a = Math.abs(r.Id),
                                    s = y.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, a);
                                o.Init({
                                    ItemId: a,
                                    StarLevel: s.Star
                                }), r.Count && (o.SetCount(r.Count), o.SetStar(s.Star, s.Type, I.StarLayoutMode.Left))
                        }
                    })
                }, t.prototype.OnCancelBtnClick = function() {
                    this.Close()
                }, t.prototype.OnSureBtnClick = function() {
                    this._okCallback(), this.Close()
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([v(p.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Button)], t.prototype, "CancelBtn", void 0), i([v(cc.Button)], t.prototype, "SureBtn", void 0), i([v(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([v(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([v(cc.Label)], t.prototype, "SelectTitle", void 0), i([v(cc.RichText)], t.prototype, "TipLabel", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent"
    }],
    BadgeCollectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8f56aTB5YZNHodfyd7NLwpY", "BadgeCollectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Components/BadgeComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/CustomLayout"),
            I = e("../Components/ItemComponent"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../Components/BadgeCollectTaskComponent"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../../Consts/Consts"),
            S = e("../../Auxiliary/GameRecord"),
            w = e("../../Components/Components"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.BadgeIconOne = 269] = "BadgeIconOne", e[e.BadgeIconTwo = 270] = "BadgeIconTwo", e[e.BadgeIconThree = 271] = "BadgeIconThree", e[e.BadgeIconFour = 272] = "BadgeIconFour", e[e.BadgeIconFive = 273] = "BadgeIconFive"
        })(l || (l = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.RuleBtn = null, t.Tittle = null, t.TimeLabel = null, t.TimeValue = null, t.InfoRichText = null, t.TaskTittleLab = null, t.FinalRewardLab = null, t.BadgeLayout = null, t.BadgeCountLayout = null, t.ReturnBtn = null, t.BadgeGiftBagBtn = null, t.BadgeGiftBagBtnLab = null, t.TaskViewContent = null, t.FinalReward = null, t.FinalTaskProgress = null, t.GreyReceiveBtn = null, t.GreyReceiveBtnlab = null, t.OrangeBtn = null, t.OrangeBtnlab = null, t.ReceivedNode = null, t._initLayout = !1, t._squareNodeArr = [], t._badgeMaxLineNumber = 5, t._badgeSquareQuantity = 25, t._isLightingSquareQuantity = 0, t._badgeCountComponentArr = [], t._effectNodeArr = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(f.EventKeys.EVENT_BADGECOLLECT_LIGHTINGBADGE, this.LightingBadgeRequest, this), u.Game.EventDispatcher.On(b.GameEventIds.ChangeDataDetail.Fmt(p.UserTask_Model._n_), this.SortTask, this), u.Game.EventDispatcher.On(b.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.RefreshBadgeCount, this), u.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(f.EventKeys.EVENT_BADGECOLLECT_LIGHTINGBADGE, this.LightingBadgeRequest, this), u.Game.EventDispatcher.Off(b.GameEventIds.ChangeDataDetail.Fmt(p.UserTask_Model._n_), this.SortTask, this), u.Game.EventDispatcher.Off(b.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.RefreshBadgeCount, this), u.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, c, u, p, d, h, f, g, m, I, C = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = _.default.Instance.GetItemPathById(l.BadgeIconOne), n = _.default.Instance.GetItemPathById(l.BadgeIconTwo), o = _.default.Instance.GetItemPathById(l.BadgeIconThree), r = _.default.Instance.GetItemPathById(l.BadgeIconFour), i = _.default.Instance.GetItemPathById(l.BadgeIconFive), a = this.LoadDynamicAsset("BadgeCollectPanel/Component/SquareComponent", cc.Prefab), c = this.LoadDynamicAsset("BadgeCollectPanel/PNG/gifticon", cc.SpriteFrame), u = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), p = this.LoadDynamicAsset("BadgeCollectPanel/Component/badgeCollectTaskComponent", cc.Prefab), d = this.LoadDynamicAsset(t, cc.SpriteFrame), h = this.LoadDynamicAsset(n, cc.SpriteFrame), f = this.LoadDynamicAsset(o, cc.SpriteFrame), g = this.LoadDynamicAsset(r, cc.SpriteFrame), m = this.LoadDynamicAsset(i, cc.SpriteFrame), I = this.LoadDynamicAsset("BadgeCollectPanel/Spine/Effect", cc.Prefab), [4, Promise.all([a, c, u, p, d, h, f, g, m, I]).then(function(e) {
                                    C._badgePrefab = e[0], C._rewardIcon = e[1], C._itemPrefab = e[2], C._taskPrefab = e[3], C._badgeIconOne = e[4], C._badgeIconTwo = e[5], C._badgeIconThree = e[6], C._badgeIconFour = e[7], C._badgeIconFive = e[8], C._effectPrefab = e[9]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                this.Tittle.string = "BadgeCollect_Tittle".ToUILocale(), this.TimeLabel.string = "gift_remainderTime".ToUILocale(), this.BadgeGiftBagBtnLab.string = "BadgeCollect_GiftBag".ToUILocale(), this.TaskTittleLab.string = "BadgeCollect_TaskTip".ToUILocale(), this.FinalRewardLab.string = "BadgeCollect_FinalTask".ToUILocale(), this.InfoRichText.string = "BadgeCollect_Tip".ToUILocale(), this.GreyReceiveBtnlab.string = "receive".ToUILocale(), this.OrangeBtnlab.string = "receive".ToUILocale(), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.BadgeGiftBagBtn.node.on("click", this.OnGiftBagBthClick, this), this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this), this.OrangeBtn.node.on("click", this.OnFinalOrangeBtnClick, this)
            }, t.prototype.InitData = function(e) {
                this._activityId = e[0], this._activityConfig = d.DataCenter.Instance.ActivityConfigs[this._activityId], this._deadLine = _.default.Instance.ComputeDeadTime(this._activityConfig.Common)
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), this.ShowBadgeCount(), this.SortTask(), !t) {
                    S.default.SetItem(S.GameRecordDefine.BadgeCollectRedDot, w.RpcComponent.Instance.ServerTime), this.BadgeCollectCountDown(), this.schedule(this.BadgeCollectCountDown, 1), this.SetGiftBagBtn(), this._matrixIdArr = new Array(6), this._squareNodeArr = new Array(6);
                    for (var n = 0; n < this._badgeMaxLineNumber + 1; n++) this._matrixIdArr[n] = new Array(6), this._squareNodeArr[n] = new Array(6);
                    this.SetSquareId(), this.ShowBadgeMatrix(), this.ShowFinalRewardTask()
                }
                this.SetSquareEffect()
            }, t.prototype.ShowBadgeCount = function() {
                var e = this._activityConfig.CustomPart.ShowIds;
                if (0 == this._badgeCountComponentArr.length)
                    for (var t = 0; t < e.length; t++) {
                        var n = cc.instantiate(this._badgePrefab),
                            o = this.GetBadgeIcon(e[t]);
                        this._badgeCountComponentArr[t] = n.getComponent(h.default), this._badgeCountComponentArr[t].Init({
                            ItemId: e[t],
                            SquareIcon: o
                        }), n.parent = this.BadgeCountLayout.node
                    } else
                        for (t = 0; t < e.length; t++) this._badgeCountComponentArr[t].RefreshCount()
            }, t.prototype.BadgeCollectCountDown = function() {
                var e = this._deadLine - d.RpcComponent.Instance.ServerTime;
                e < 0 && u.UIManager.Instance.BackUIPanel(), this.TimeValue.string = _.default.ActivityTimeLeftFormat(e)
            }, t.prototype.SetGiftBagBtn = function() {
                null == this._activityConfig._Packs && (this.BadgeGiftBagBtn.node.active = !1)
            }, t.prototype.SetSquareId = function() {
                for (var e = 0; e <= this._badgeMaxLineNumber; e++) {
                    if (e < this._badgeMaxLineNumber) {
                        for (var t = 0; t < this._badgeMaxLineNumber; t++) this._matrixIdArr[e][t] = this._activityConfig.__Sites[e * this._badgeMaxLineNumber + t].Id;
                        this._matrixIdArr[e][this._badgeMaxLineNumber] = this._activityConfig.__Rewards[e].Id
                    }
                    this._matrixIdArr[this._badgeMaxLineNumber][e] = this._activityConfig.__Rewards[e + this._badgeMaxLineNumber].Id
                }
            }, t.prototype.ShowBadgeMatrix = function() {
                for (var e, t = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), n = 0; n <= this._badgeMaxLineNumber; n++)
                    for (var o = 0; o <= this._badgeMaxLineNumber; o++)
                        if (n < this._badgeMaxLineNumber && o < this._badgeMaxLineNumber) {
                            var r = cc.instantiate(this._badgePrefab),
                                i = this._activityConfig.__Sites[this._matrixIdArr[n][o] - 1].BadgeId,
                                a = this.GetBadgeIcon(i),
                                s = this._activityConfig.__Sites[this._matrixIdArr[n][o] - 1].Count,
                                l = void 0;
                            1 != t.IntMap[this._matrixIdArr[n][o]] ? l = !1 : (l = !0, this._isLightingSquareQuantity++), r.parent = this.BadgeLayout.node, r.getComponent(h.default).Init({
                                ItemId: i,
                                SquareIcon: a,
                                SquareId: this._matrixIdArr[n][o],
                                NeedQuantity: s,
                                IsLighting: l
                            }), this._squareNodeArr[n][o] = r
                        } else {
                            var c = cc.instantiate(this._badgePrefab);
                            c.parent = this.BadgeLayout.node, this._squareNodeArr[n][o] = c
                        } for (n = 0; n < this._badgeMaxLineNumber; n++) {
                    var u = !0;
                    if (0 == t.IntArray[this._matrixIdArr[n][this._badgeMaxLineNumber] - 1])
                        for (e = !1, o = 0; o < this._badgeMaxLineNumber; o++) 1 != t.IntMap[this._matrixIdArr[n][o]] && (u = !1);
                    else e = !0;
                    this.SetRewardSquare(n, this._badgeMaxLineNumber, u, e, h.RewardType.LineReward);
                    var f = !0;
                    if (0 == t.IntArray[this._matrixIdArr[this._badgeMaxLineNumber][n] - 1])
                        for (e = !1, o = 0; o < this._badgeMaxLineNumber; o++) 1 != t.IntMap[this._matrixIdArr[o][n]] && (f = !1);
                    else e = !0;
                    this.SetRewardSquare(this._badgeMaxLineNumber, n, f, e, h.RewardType.RowReward)
                }
                var y = !0;
                if (0 == t.IntArray[this._matrixIdArr[this._badgeMaxLineNumber][this._badgeMaxLineNumber] - 1])
                    for (e = !1, n = 0; n < this._badgeMaxLineNumber; n++) 1 != t.IntMap[this._matrixIdArr[n][n]] && (y = !1);
                else e = !0;
                this.SetRewardSquare(this._badgeMaxLineNumber, this._badgeMaxLineNumber, y, e, h.RewardType.CornerReward)
            }, t.prototype.SetRewardSquare = function(e, t, n, o, r) {
                this._squareNodeArr[e][t].getComponent(h.default).Init({
                    ItemId: this._matrixIdArr[e][t],
                    SquareIcon: this._rewardIcon,
                    ActivityId: this._activityId,
                    IsLighting: n,
                    IsReceived: o
                }, r)
            }, t.prototype.GetBadgeIcon = function(e) {
                var t;
                switch (e) {
                    case l.BadgeIconOne:
                        t = this._badgeIconOne;
                        break;
                    case l.BadgeIconTwo:
                        t = this._badgeIconTwo;
                        break;
                    case l.BadgeIconThree:
                        t = this._badgeIconThree;
                        break;
                    case l.BadgeIconFour:
                        t = this._badgeIconFour;
                        break;
                    case l.BadgeIconFive:
                        t = this._badgeIconFive
                }
                return t
            }, t.prototype.LightingBadgeRequest = function(e) {
                var t = this,
                    n = new p.Req_Activity_BadgeCollectLighten;
                n.ActivityId = this._activityId, n.SiteId = e, d.RpcComponent.Instance.Call(n, function() {
                    t.ResponseLightingSuccess(e)
                })
            }, t.prototype.ResponseLightingSuccess = function(e) {
                this.RefreshBadgeCount(e), this.JudgeLightingReward(e), this._isLightingSquareQuantity++, this.RefreshFinalTaskProgress()
            }, t.prototype.RefreshBadgeCount = function(e) {
                if ("number" != typeof e)
                    for (var t = 0; t < this._badgeCountComponentArr.length; t++) this._badgeCountComponentArr[t].RefreshCount();
                else {
                    var n = this._activityConfig.__Sites[e - 1].BadgeId;
                    this._badgeCountComponentArr[this._activityConfig.CustomPart.ShowIds.indexOf(n)].RefreshCount()
                }
                this.SetSquareEffect()
            }, t.prototype.JudgeLightingReward = function(e) {
                for (var t, n, o = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), r = !0, i = 0; i < this._badgeMaxLineNumber; i++)
                    for (var a = 0; a < this._badgeMaxLineNumber; a++)
                        if (this._matrixIdArr[i][a] == e) {
                            t = i, n = a;
                            break
                        } if (t == n) {
                    for (i = 0; i < this._badgeMaxLineNumber; i++) 1 != o.IntMap[this._matrixIdArr[i][i]] && (r = !1);
                    1 == r && this._squareNodeArr[this._badgeMaxLineNumber][this._badgeMaxLineNumber].getComponent(h.default).LightingSquare()
                }
                var s = !0,
                    l = !0;
                for (i = 0; i < this._badgeMaxLineNumber; i++) 1 != o.IntMap[this._matrixIdArr[t][i]] && (s = !1), 1 != o.IntMap[this._matrixIdArr[i][n]] && (l = !1);
                1 == s && this._squareNodeArr[t][this._badgeMaxLineNumber].getComponent(h.default).LightingSquare(), 1 == l && this._squareNodeArr[this._badgeMaxLineNumber][n].getComponent(h.default).LightingSquare()
            }, t.prototype.SortTask = function() {
                var e = this;
                this._initLayout || (this.TaskViewContent.Init(this._taskPrefab), this._initLayout = !0), this._activityConfig._Tasks.sort(function(t, n) {
                    var o = d.DataCenter.Instance.GetDataById(p.UserTask_Model, t.Id + 1e4 * e._activityId),
                        r = d.DataCenter.Instance.GetDataById(p.UserTask_Model, n.Id + 1e4 * e._activityId);
                    return o.IsCompleted && !r.IsCompleted ? 1 : !o.IsCompleted && r.IsCompleted ? -1 : o.Progress >= t.TotalCount && r.Progress < n.TotalCount ? -1 : o.Progress < t.TotalCount && r.Progress >= n.TotalCount ? 1 : t.Id < n.Id ? -1 : t.Id > n.Id ? 1 : 0
                }), this.TaskViewContent.RenderLayOut(this._activityConfig._Tasks.length)
            }, t.prototype.RefreshCustomLayout = function(e, t) {
                var n = this;
                t == this.TaskViewContent && e.forEach(function(e, t) {
                    var o = n._activityConfig._Tasks[t].Id + 1e4 * n._activityId;
                    e.getComponent(C.default).Init(n._activityId, n._activityConfig._Tasks[t], o, n._itemPrefab)
                })
            }, t.prototype.OnRuleBtnClick = function() {
                var e = {
                    name: "BadgeCollect_Tittle".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["BadgeCollect_RuleText".ToUILocale()]
                };
                g.UIUtlity.ShowRulePanel(e)
            }, t.prototype.ShowFinalRewardTask = function() {
                for (var e = this._activityConfig.__Rewards.length, t = function(t) {
                        var o = n._activityConfig.__Rewards[e - 1].Rewards[t].Items[0],
                            r = n._activityConfig.__Rewards[e - 1].Rewards[t].Items[1],
                            i = cc.instantiate(n._itemPrefab),
                            a = i.getComponent(I.ItemComponent);
                        a.Init({
                            ItemId: o,
                            Count: r
                        }, I.ItemComponentType.ItemCommon), i.on(cc.Node.EventType.TOUCH_END, function() {
                            a.ShowItemTip()
                        }, n), i.parent = n.FinalReward
                    }, n = this, o = 0; o < this._activityConfig.__Rewards[e - 1].Rewards.length; o++) t(o);
                this.RefreshFinalTaskProgress()
            }, t.prototype.RefreshFinalTaskProgress = function() {
                var e = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId).IntArray[this._activityConfig.__Rewards[this._activityConfig.__Rewards.length - 1].Id - 1];
                this._isLightingSquareQuantity < this._badgeSquareQuantity ? (this.FinalTaskProgress.string = "BadgeCollect_FinalTask_UnComplete".ToUILocale().Fmt(this._isLightingSquareQuantity, this._badgeSquareQuantity), this.GreyReceiveBtn.node.active = !0, this.OrangeBtn.node.active = !1, this.ReceivedNode.active = !1) : this._isLightingSquareQuantity == this._badgeSquareQuantity && 0 == e ? (this.FinalTaskProgress.string = "BadgeCollect_FinalTask_Complete".ToUILocale().Fmt(this._isLightingSquareQuantity, this._badgeSquareQuantity), this.GreyReceiveBtn.node.active = !1, this.OrangeBtn.node.active = !0, v.RedDotManager.Instance.BindInstance(this.OrangeBtn.node, v.RedDotManager.Instance.InstanceRedDot.BadgeCollectFinalRewardNode, {
                    Value1: this._activityId
                }), this.ReceivedNode.active = !1) : (this.FinalTaskProgress.string = "BadgeCollect_FinalTask_Complete".ToUILocale().Fmt(this._isLightingSquareQuantity, this._badgeSquareQuantity), this.GreyReceiveBtn.node.active = !1, this.OrangeBtn.node.active = !1, this.ReceivedNode.active = !0)
            }, t.prototype.OnFinalOrangeBtnClick = function() {
                var e = this,
                    t = new p.Req_Activity_BadgeCollectReward;
                t.ActivityId = this._activityId, t.RewardId = this._activityConfig.__Rewards[this._activityConfig.__Rewards.length - 1].Id, d.RpcComponent.Instance.Call(t, function(t) {
                    g.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.RefreshFinalTaskProgress()
                })
            }, t.prototype.OnGiftBagBthClick = function() {
                var e = {
                    ActivityId: this._activityConfig._id,
                    ActivityGiftPackData: this._activityConfig._Packs,
                    Deadline: _.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                    BannerPath: "BadgeCollectPanel/PNG/activitePng",
                    Title: "BadgeCollect_GiftBag".ToUILocale()
                };
                u.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonGiftPackPanel.Path, e)
            }, t.prototype.OnReturnBtnClick = function() {
                u.UIManager.Instance.BackUIPanel()
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, t.prototype.SetSquareEffect = function() {
                for (var e = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), t = 0; t < this._badgeMaxLineNumber; t++)
                    for (var n = 0; n < this._badgeMaxLineNumber; n++) {
                        var o = this._activityConfig.__Sites[this._matrixIdArr[t][n] - 1].BadgeId;
                        1 != e.IntMap[this._matrixIdArr[t][n]] && this._badgeCountComponentArr[this._activityConfig.CustomPart.ShowIds.indexOf(o)].Count >= this._activityConfig.__Sites[this._matrixIdArr[t][n] - 1].Count ? (this._effectNodeArr[this._matrixIdArr[t][n]] || (this._effectNodeArr[this._matrixIdArr[t][n]] = cc.instantiate(this._effectPrefab), this._effectNodeArr[this._matrixIdArr[t][n]].scale = .7), this._effectNodeArr[this._matrixIdArr[t][n]].parent = this._squareNodeArr[t][n], this._effectNodeArr[this._matrixIdArr[t][n]].active = !0) : this._effectNodeArr[this._matrixIdArr[t][n]] && (this._effectNodeArr[this._matrixIdArr[t][n]].parent = null, this._effectNodeArr[this._matrixIdArr[t][n]].active = !1)
                    }
            }, i([T(cc.Button)], t.prototype, "RuleBtn", void 0), i([T(cc.Label)], t.prototype, "Tittle", void 0), i([T(cc.Label)], t.prototype, "TimeLabel", void 0), i([T(cc.Label)], t.prototype, "TimeValue", void 0), i([T(cc.RichText)], t.prototype, "InfoRichText", void 0), i([T(cc.Label)], t.prototype, "TaskTittleLab", void 0), i([T(cc.Label)], t.prototype, "FinalRewardLab", void 0), i([T(cc.Layout)], t.prototype, "BadgeLayout", void 0), i([T(cc.Layout)], t.prototype, "BadgeCountLayout", void 0), i([T(cc.Button)], t.prototype, "ReturnBtn", void 0), i([T(cc.Button)], t.prototype, "BadgeGiftBagBtn", void 0), i([T(cc.Label)], t.prototype, "BadgeGiftBagBtnLab", void 0), i([T(m.default)], t.prototype, "TaskViewContent", void 0), i([T(cc.Node)], t.prototype, "FinalReward", void 0), i([T(cc.RichText)], t.prototype, "FinalTaskProgress", void 0), i([T(cc.Button)], t.prototype, "GreyReceiveBtn", void 0), i([T(cc.Label)], t.prototype, "GreyReceiveBtnlab", void 0), i([T(cc.Button)], t.prototype, "OrangeBtn", void 0), i([T(cc.Label)], t.prototype, "OrangeBtnlab", void 0), i([T(cc.Node)], t.prototype, "ReceivedNode", void 0), i([A], t)
        }(c.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/BadgeCollectTaskComponent": "BadgeCollectTaskComponent",
        "../Components/BadgeComponent": "BadgeComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    BadgeCollectTaskComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9248cMcKjZNzYEDhWCxnOhc", "BadgeCollectTaskComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.TaskProgress = null, t.GetButton = null, t.GetButtonLabel = null, t.GoButton = null, t.GoButtonLabel = null, t.ReceivedNode = null, t.ItemContainer = null, t.NoGetWayButton = null, t.NoGetWayLabel = null, t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.GoButton.node.on("click", this.OnGoButtonClick, this), this.GetButton.node.on("click", this.OnReceiveButtonClick, this), a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.GetButton.node.off("click", this.OnReceiveButtonClick, this), this.GoButton.node.off("click", this.OnGoButtonClick, this), a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._activityId = e, this._task = t;
                    var r = p.DataCenter.Instance.GetDataById(c.UserTask_Model, n),
                        i = null == r || null == r.Progress ? 0 : r.Progress;
                    this.Title.string = f.default.GetTaskDesc(t), this.SetTaskLimit(i, r.IsCompleted), this.SetItems(o, t.Rewards)
                }, t.prototype.SetTaskLimit = function(e, t) {
                    e < this._task.TotalCount ? this.TaskProgress.string = "BadgeCollect_TaskProgress_UnCompleted".ToUILocale().Fmt(e, this._task.TotalCount) : this.TaskProgress.string = "BadgeCollect_TaskProgress_Completed".ToUILocale().Fmt(this._task.TotalCount, this._task.TotalCount), this.GoButton.node.active = e < this._task.TotalCount && this._task.GetWayId && this._task.GetWayId > 0, this.GetButton.node.active = e >= this._task.TotalCount && !t, this.ReceivedNode.active = e >= this._task.TotalCount && t, this.NoGetWayButton.node.active = e < this._task.TotalCount && !this._task.GetWayId, this.GetButtonLabel.string = "receive".ToUILocale(), this.GoButtonLabel.string = "task_goto".ToUILocale(), this.NoGetWayLabel.string = "receive".ToUILocale()
                }, t.prototype.SetItems = function(e, t) {
                    if (t.length > this._items.length)
                        for (var n = this._items.length; n < t.length; n++) {
                            var o = cc.instantiate(e);
                            o.active = !0, o.setParent(this.ItemContainer), this._items[n] = o.getComponent(l.ItemComponent), d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, t[n].Items[0]), this._items[n].Init({
                                ItemId: t[n].Items[0],
                                Count: t[n].Items[1]
                            })
                        } else {
                            for (n = 0; n < t.length; n++) d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, t[n].Items[0]), this._items[n].Init({
                                ItemId: t[n].Items[0],
                                Count: t[n].Items[1]
                            });
                            this._items.length = t.length
                        }
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = new c.Req_Activity_CommonTaskReward;
                    e.ActivityId = this._activityId, e.TaskIds = [this._task.Id], p.RpcComponent.Instance.Call(e, function(e) {
                        h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnGoButtonClick = function() {
                    this._task && this._task.GetWayId ? f.default.ShowPanelByGetWayId(this._task.GetWayId) : a.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(l.ItemComponent).ItemId, t)
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.RichText)], t.prototype, "TaskProgress", void 0), i([m(cc.Button)], t.prototype, "GetButton", void 0), i([m(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([m(cc.Button)], t.prototype, "GoButton", void 0), i([m(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([m(cc.Node)], t.prototype, "ReceivedNode", void 0), i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([m(cc.Button)], t.prototype, "NoGetWayButton", void 0), i([m(cc.Label)], t.prototype, "NoGetWayLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    BadgeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8bd20JxvPlKCYRijBW8nDwu", "BadgeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RewardType = void 0;
        var a, s = e("../../Components/Components"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.LineReward = 0] = "LineReward", e[e.RowReward = 1] = "RowReward", e[e.CornerReward = 2] = "CornerReward"
        })(a = n.RewardType || (n.RewardType = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.SquareBg = null, t.SquareIcon = null, t.SquareLabel = null, t.ReceivedNode = null, t.SquareMask = null, t.RedDotNode = null, t.EffectSpine = null, t
            }
            return r(t, e), t.prototype.Init = function(e, t) {
                this._itemId = e.ItemId, this._squareIcon = e.SquareIcon, this._isLighting = e.IsLighting, null == t ? e.SquareId ? (this.ReceivedNode.active = !1, this._squareId = e.SquareId, this._needQuality = e.NeedQuantity, this.ReceivedNode.active = !1, this.SquareIcon.spriteFrame = this._squareIcon, this.SquareLabel.string = this._needQuality.toString(), this.SquareLabel.node.active = !0, 0 == this._isLighting ? (this.SquareMask.active = !0, this.SquareLabel.node.active = !0) : (this.SquareMask.active = !1, this.SquareLabel.node.active = !1), this.node.on(cc.Node.EventType.TOUCH_END, this.OnBadgeSquareClick, this)) : (this.SquareBg.active = !1, this.SquareMask.active = !1, this.ReceivedNode.active = !1, this._squareIcon && (this.SquareIcon.spriteFrame = this._squareIcon), this.RefreshCount(), this.node.on(cc.Node.EventType.TOUCH_END, this.OnBadgeCountBtnClick, this)) : (this.SquareLabel.node.active = !1, this._activityId = e.ActivityId, this._activityConfig = s.DataCenter.Instance.ActivityConfigs[this._activityId], this.SquareIcon.spriteFrame = this._squareIcon, this._rewardType = t, 0 == this._isLighting ? this.SquareMask.active = !0 : this.SquareMask.active = !1, this._isReceived = e.IsReceived, this.ReceivedNode.active = this._isReceived, this.SetRedDot(), this.node.on(cc.Node.EventType.TOUCH_END, this.OnRewardSquareClick, this))
            }, t.prototype.OnBadgeSquareClick = function() {
                0 == this._isLighting && (s.DataCenter.Instance.GetItemCount(this._itemId) < this._needQuality ? (d.UIUtlity.ShowFloatingHint("BadgeCollect_ItemNotEnough".ToUILocale().Fmt(this._itemId.ToItemName())), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._itemId, !1)) : (l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_BADGECOLLECT_LIGHTINGBADGE, this._squareId), this._isLighting = !0, this.SquareMask.active = !1, this.SquareLabel.node.active = !1, this.ShowBadgeEffect()))
            }, t.prototype.OnRewardSquareClick = function() {
                var e = "reward".ToUILocale(),
                    t = this.GetPointRewardDataArray();
                if (this._isLighting)
                    if (this._isLighting && !this._isReceived) {
                        this._isReceived = !0, this.ReceivedNode.active = !0, this.SetRedDot();
                        var n = new u.Req_Activity_BadgeCollectReward;
                        n.ActivityId = this._activityId, n.RewardId = this._itemId, s.RpcComponent.Instance.Call(n, function(e) {
                            d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else this._isReceived && d.UIUtlity.ShowHintPanel(e, t);
                else switch (d.UIUtlity.ShowHintPanel(e, t), this._rewardType) {
                    case a.LineReward:
                        d.UIUtlity.ShowFloatingHint("BadgeCollect_Need_LightingLine".ToUILocale());
                        break;
                    case a.RowReward:
                        d.UIUtlity.ShowFloatingHint("BadgeCollect_Need_LightingRow".ToUILocale());
                        break;
                    case a.CornerReward:
                        d.UIUtlity.ShowFloatingHint("BadgeCollect_Need_LightingCorner".ToUILocale())
                }
            }, t.prototype.GetPointRewardDataArray = function() {
                for (var e = [], t = 0; t < this._activityConfig.__Rewards[this._itemId - 1].Rewards.length; t++) {
                    var n = this._activityConfig.__Rewards[this._itemId - 1].Rewards[t].Items[0],
                        o = this._activityConfig.__Rewards[this._itemId - 1].Rewards[t].Items[1];
                    e.push({
                        ItemId: n,
                        Count: o
                    })
                }
                return e
            }, t.prototype.RefreshCount = function() {
                this.Count = s.DataCenter.Instance.GetItemCount(this._itemId), this.SquareLabel.string = this.Count.toString()
            }, t.prototype.OnBadgeCountBtnClick = function() {
                l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._itemId, !1)
            }, t.prototype.LightingSquare = function() {
                this.SquareMask.active = !1, this._isLighting = !0, this.ShowBadgeEffect(), this.SetRedDot()
            }, t.prototype.SetRedDot = function() {
                this._isLighting && !this._isReceived ? this.RedDotNode.active = !0 : this.RedDotNode.active = !1
            }, t.prototype.ShowBadgeEffect = function() {
                var e = this;
                this.EffectSpine.node.active = !0, this.EffectSpine.setCompleteListener(function() {
                    e.EffectSpine.node.active = !1
                })
            }, i([y(cc.Node)], t.prototype, "SquareBg", void 0), i([y(cc.Sprite)], t.prototype, "SquareIcon", void 0), i([y(cc.Label)], t.prototype, "SquareLabel", void 0), i([y(cc.Node)], t.prototype, "ReceivedNode", void 0), i([y(cc.Node)], t.prototype, "SquareMask", void 0), i([y(cc.Node)], t.prototype, "RedDotNode", void 0), i([y(sp.Skeleton)], t.prototype, "EffectSpine", void 0), i([f], t)
        }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    BagPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "38b08tHSMhK/rQkf16F+VlP", "BagPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Tab = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/CustomLayout"),
            y = e("../Components/ItemComponent"),
            g = e("../../../GamePlay/Components/Components"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../Components/CustomToggle"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("../../../Consts/Consts"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../Auxiliary/GuideManager"),
            S = e("../../Auxiliary/DataUtlity"),
            w = e("../../Auxiliary/GameRecord"),
            P = e("../../RedDot/RedDotDataHandler"),
            A = e("./AngelGodSoulinfoPanel"),
            T = e("./CoreUpSelectMaterialPanel"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property;
        (function(e) {
            e[e.Equip = 0] = "Equip", e[e.Prop = 1] = "Prop", e[e.Fragment = 2] = "Fragment", e[e.Rune = 3] = "Rune", e[e.Personality = 4] = "Personality", e[e.Gem = 5] = "Gem", e[e.FitSoul = 6] = "FitSoul", e[e.PowerCore = 7] = "PowerCore", e[e.Voucher = 8] = "Voucher", e[e.GodSoul = 9] = "GodSoul", e[e.HeroJob = 10] = "HeroJob", e[e.None = 11] = "None"
        })(l = n.Tab || (n.Tab = {}));
        var O = function(e) {
            function t() {
                var t, n = null !== e && e.apply(this, arguments) || this;
                return n.UIType = new c.UIPanelType(c.UINodeType.Normal), n.TabScrollview = null, n.ToggleContainer = null, n.ItemScrollview = null, n.TabLayout = null, n.AvatarContainer = null, n.BubbleInfo = null, n.BubbleContainer = null, n.AvatarClickNode = null, n.CustomLayout = null, n.LeftArrow = null, n.RightArrow = null, n.FunctionBtn = null, n.FunctionBtnLabel = null, n.FunctionBtn2 = null, n.FunctionBtn2Label = null, n.FunctionGrayBtn = null, n.FunctioGraynBtnLabel = null, n.ReturnBtn = null, n.HintNode = null, n.SkipAnimationToggle = null, n.SkipHint = null, n._isLayoutInit = !1, n._dataMap = new Map, n._bubbleIndex = 0, n._tabItemTypeMap = ((t = {})[l.Equip] = C.ItemType.Equip, t[l.Prop] = C.ItemType.Consume, t[l.Fragment] = C.ItemType.ItemPiece, t[l.Rune] = C.ItemType.LuckyCharm, t[l.Personality] = C.ItemType.Personality, t[l.Gem] = C.ItemType.Gem, t[l.PowerCore] = C.ItemType.PowerCore, t[l.Voucher] = C.ItemType.CurrencyDiscountTicket, t[l.GodSoul] = C.ItemType.GodSoul, t[l.FitSoul] = C.ItemType.FighterSpirit, t[l.HeroJob] = C.ItemType.HeroJob, t), n
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), c.Game.EventDispatcher.On(p.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), c.Game.EventDispatcher.On(p.EventKeys.EVENT_REFRESH_BAGPANEL, this.RefreshBagPanel, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), c.Game.EventDispatcher.Off(p.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), c.Game.EventDispatcher.Off(p.EventKeys.EVENT_REFRESH_BAGPANEL, this.RefreshBagPanel, this), this.unscheduleAllCallbacks()
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent)];
                            case 1:
                                return t._itemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ReturnBtn.node.on("click", this.OnClickReturn, this), this.FunctionBtn.node.on("click", this.OnClickFunctionBtn, this), this.FunctionBtn2.node.on("click", this.OnClickFunctionBtn2, this), this.FunctionGrayBtn.node.on("click", this.OnClickFunctionGrayBtn, this), this.SkipAnimationToggle.node.on("toggle", this.OnClickSkip, this), this.AvatarClickNode.on(cc.Node.EventType.TOUCH_END, this.OnClickAvatar, this), this.SkipHint.string = "bagpanel_none_redDot".ToUILocale(), this._tabGameModuleStatus = {};
                for (var t = 0; t < l.None; t++) this._tabGameModuleStatus[t] = !0;
                this.ConfigTabContainer(), this.ConfigDialogContainer()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), null != t[0] && (this._defaultTab = t[0])
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), null == this._defaultTab && (this._defaultTab = l.Prop)
            }, t.prototype.RefreshBagPanel = function() {
                this.DisPlay(!0)
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.BindReddot(), this._isReDisplay = t, c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_HIDE_MAINUIPANEL), this._currentTabType = l.None, this.InitBubbleState(), this.ConfigDataMap(), this.InitCustomLayout(), this.ShowGuide()
            }, t.prototype.BindReddot = function() {
                var e = this.TabLayout.node.children[l.Rune];
                v.RedDotManager.Instance.Bind(e, v.RedDotManager.Instance.RedDot.BagLuckyCharmNode);
                var t = this.TabLayout.node.children[l.Fragment];
                v.RedDotManager.Instance.Bind(t, v.RedDotManager.Instance.RedDot.BagFragmentNode);
                var n = this.TabLayout.node.children[l.Prop];
                v.RedDotManager.Instance.Bind(n, v.RedDotManager.Instance.RedDot.BagPropNode)
            }, t.prototype.InitBubbleState = function() {
                this.BubbleContainer.active = !1, this.scheduleOnce(this.RefreshBubbleInfo, 1)
            }, t.prototype.ConfigDataMap = function() {
                this._dataMap.clear();
                for (var e = g.DataCenter.Instance.GetDataList(u.UserItem_Model), t = 0; t < e.length; t++) {
                    var n = e[t];
                    if (!(n.Count <= 0)) {
                        var o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, n.ItemId).Type,
                            r = this._dataMap.get(o);
                        if (o == C.ItemType.ItemPiece) {
                            var i = g.ConfigDataComponent.Instance.GetConfigById(m.ItemPiece_Config, n.ItemId);
                            if (i && (i.SubType == C.ItemPieceType.ArtefactPiece || i.SubType == C.ItemPieceType.SuperWeaponPiece || i.SubType == C.ItemPieceType.NewPersonality)) continue
                        } else if (o == C.ItemType.Consume) {
                            var a = g.ConfigDataComponent.Instance.GetConfigById(m.ItemConsume_Config, n.ItemId);
                            if (a && (a.SubType == C.ConsumeItemType.UncertifiedReel || a.SubType == C.ConsumeItemType.UsableReel)) continue
                        }
                        r ? r.push(n) : ((r = []).push(n), this._dataMap.set(o, r))
                    }
                }
                this.ConfigUserEquips(), this.ConfigUserRunes(), this.ConfigUserGems(), this.ConfigUserPowerCore(), this.ConfigVoucherTickets(), this.ConfigGodSoul();
                var s = this._dataMap.get(C.ItemType.Consume);
                s && s.sort(this.SortConsume.bind(this));
                var l = this._dataMap.get(C.ItemType.ItemPiece);
                l && l.sort(this.SortItemPiece.bind(this));
                var c = this._dataMap.get(C.ItemType.Personality);
                c && c.sort(this.SortPersonal.bind(this));
                var p = this._dataMap.get(C.ItemType.FighterSpirit);
                p && p.sort(this.SortFitSoul.bind(this));
                var d = this._dataMap.get(C.ItemType.PowerCore);
                d && d.sort(function(e, t) {
                    return t.ItemId - e.ItemId
                });
                var h = this._dataMap.get(C.ItemType.HeroJob);
                h && h.sort(this.SortheroJob.bind(this))
            }, t.prototype.ConfigUserEquips = function() {
                var e = g.DataCenter.Instance.GetDataList(u.Equipment_Model);
                if (e.length > 0) {
                    var t = C.ItemType.Equip;
                    (o = this._dataMap.get(t)) || (o = [], this._dataMap.set(t, o));
                    for (var n = 0; n < e.length; n++) 0 == (i = e[n]).OwnerId && o.push({
                        ItemId: i.ItemId
                    })
                }
                var o, r = g.DataCenter.Instance.GetDataList(u.HolyEquipment_Model);
                if (r.length > 0)
                    for (t = C.ItemType.Equip, (o = this._dataMap.get(t)) || (o = [], this._dataMap.set(t, o)), n = 0; n < r.length; n++) {
                        var i;
                        0 == (i = r[n]).OwnerId && o.push({
                            ItemId: i.ItemId,
                            Sid: i.Sid,
                            StarLevel: i.Star,
                            URStarLevel: i.Step
                        })
                    }
                var a = this._dataMap.get(C.ItemType.Equip);
                a && a.sort(this.SortEquips.bind(this))
            }, t.prototype.SortEquips = function(e, t) {
                var n = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e.ItemId),
                    o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, t.ItemId);
                if (n.Quality > o.Quality) return -1;
                if (n.Quality < o.Quality) return 1;
                var r = void 0,
                    i = void 0,
                    a = void 0,
                    s = void 0;
                switch (n.Type) {
                    case C.ItemType.Equip:
                        r = (c = g.ConfigDataComponent.Instance.GetConfigById(m.ItemEquipment_Config, e.ItemId)).Star, a = c.Type;
                        break;
                    case C.ItemType.HolyEquip:
                        var l = g.ConfigDataComponent.Instance.GetConfigById(m.HolyEquipment_Config, e.ItemId);
                        r = t.StarLevel, a = l.Type
                }
                switch (o.Type) {
                    case C.ItemType.Equip:
                        var c;
                        i = (c = g.ConfigDataComponent.Instance.GetConfigById(m.ItemEquipment_Config, t.ItemId)).Star, s = c.Type;
                        break;
                    case C.ItemType.HolyEquip:
                        l = g.ConfigDataComponent.Instance.GetConfigById(m.HolyEquipment_Config, t.ItemId), i = t.StarLevel, s = l.Type
                }
                return r > i ? -1 : r < i ? 1 : a > s ? 1 : a < s ? -1 : 0
            }, t.prototype.ConfigUserRunes = function() {
                var e, t = g.DataCenter.Instance.GetDataList(u.LuckyCharmEquip_Model);
                if (t.length > 0) {
                    var n = C.ItemType.LuckyCharm;
                    (e = this._dataMap.get(n)) || (e = [], this._dataMap.set(n, e));
                    for (var o = 0; o < t.length; o++) {
                        var r = t[o];
                        0 == r.OwnerId && e.push({
                            ItemId: r.ItemId,
                            Sid: r.Sid
                        })
                    }
                }
                e && e.sort(this.SortRunes.bind(this))
            }, t.prototype.ConfigUserGems = function() {
                var e, t = g.DataCenter.Instance.GetDataList(u.GemEquip_Model);
                if (t.length > 0) {
                    var n = C.ItemType.Gem;
                    (e = this._dataMap.get(n)) || (e = [], this._dataMap.set(n, e));
                    for (var o = 0; o < t.length; o++) {
                        var r = t[o];
                        0 == r.OwnerId && e.push({
                            ItemId: r.ItemId,
                            Sid: r.Sid
                        })
                    }
                }
                e && e.sort(this.SortGems.bind(this))
            }, t.prototype.ConfigUserPowerCore = function() {
                var e, t = g.DataCenter.Instance.GetDataList(u.PowerCore_Model);
                if (t.length > 0) {
                    var n = C.ItemType.PowerCore;
                    (e = this._dataMap.get(n)) || (e = [], this._dataMap.set(n, e));
                    for (var o = 0; o < t.length; o++) {
                        var r = t[o];
                        0 == r.OwnerId && e.push({
                            ItemId: r.ItemId,
                            Sid: r.Sid,
                            Level: r.Level
                        })
                    }
                }
            }, t.prototype.ConfigVoucherTickets = function() {
                for (var e = [], t = g.DataCenter.Instance.GetDataList(u.CurrencyDiscountTicket_Model), n = C.ItemType.CurrencyDiscountTicket, o = 0; o < t.length; o++) t[o].Time <= g.RpcComponent.Instance.ServerTime || 0 == g.ConfigDataComponent.Instance.GetConfigById(m.ItemCurrencyDiscount_Config, t[o].ItemId).NewPrice && e.push(t[o]);
                for (e.sort(S.default.SortVoucherTickets.bind(this)), o = 0; o < e.length; o++) {
                    var r = this._dataMap.get(n);
                    r ? r.push({
                        ItemId: e[o].ItemId,
                        Sid: e[o].Sid
                    }) : ((r = []).push({
                        ItemId: e[o].ItemId,
                        Sid: e[o].Sid
                    }), this._dataMap.set(n, r))
                }
            }, t.prototype.ConfigGodSoul = function() {
                var e, t = g.DataCenter.Instance.GetDataList(u.UserGodSoul_Model);
                if (S.default.SortGodSoul(t), t.length > 0) {
                    var n = C.ItemType.GodSoul;
                    (e = this._dataMap.get(n)) || (e = [], this._dataMap.set(n, e));
                    for (var o = 0; o < t.length; o++) {
                        var r = t[o];
                        0 == r.OwnerId && e.push({
                            ItemId: r.ItemId,
                            Sid: r.Sid
                        })
                    }
                }
            }, t.prototype.SortRunes = function(e, t) {
                var n = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e.ItemId),
                    o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, t.ItemId);
                return n.Quality > o.Quality ? -1 : n.Quality < o.Quality ? 1 : 0
            }, t.prototype.SortConsume = function(e, t) {
                var n = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e.ItemId),
                    o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, t.ItemId);
                if (n.Quality > o.Quality) return -1;
                if (n.Quality < o.Quality) return 1;
                var r = g.ConfigDataComponent.Instance.GetConfigById(m.ItemConsume_Config, e.ItemId),
                    i = g.ConfigDataComponent.Instance.GetConfigById(m.ItemConsume_Config, t.ItemId),
                    a = n.ElementType == C.HeroElementType.Chaos,
                    s = o.ElementType == C.HeroElementType.Chaos,
                    l = 0,
                    c = 0,
                    u = !1,
                    p = !1;
                return r && (u = (l = r.SubType) == C.ConsumeItemType.Coupon), i && (p = (c = i.SubType) == C.ConsumeItemType.Coupon), u && !p ? -1 : !u && p ? 1 : a && !s ? -1 : !a && s ? 1 : l < c ? -1 : l > c ? 1 : n.Quality > o.Quality ? -1 : n.Quality < o.Quality ? 1 : n.Id > o.Id ? -1 : n.Id < o.Id ? 1 : 0
            }, t.prototype.SortItemPiece = function(e, t) {
                var n = g.ConfigDataComponent.Instance.GetConfigById(m.ItemPiece_Config, e.ItemId),
                    o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemPiece_Config, t.ItemId),
                    r = e.Count >= n.RequireCount,
                    i = t.Count >= o.RequireCount;
                if (r && i) {
                    var a = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e.ItemId),
                        s = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, t.ItemId),
                        l = a.ElementType == C.HeroElementType.Chaos,
                        c = s.ElementType == C.HeroElementType.Chaos;
                    if (l && !c) return -1;
                    if (!l && c) return 1;
                    if (a.Quality > s.Quality) return -1;
                    if (a.Quality < s.Quality) return 1;
                    if (0 != n.CardId && 0 != o.CardId) return 0;
                    if (0 != n.CardId) return -1;
                    if (0 != o.CardId) return 1
                } else {
                    if (r) return -1;
                    if (i) return 1
                }
                return 0
            }, t.prototype.SortGems = function(e, t) {
                var n = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e.ItemId),
                    o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, t.ItemId);
                if (n.Quality > o.Quality) return -1;
                if (n.Quality < o.Quality) return 1;
                var r = g.ConfigDataComponent.Instance.GetConfigById(m.GemEquip_Config, e.ItemId),
                    i = g.ConfigDataComponent.Instance.GetConfigById(m.GemEquip_Config, t.ItemId);
                return r.Type < i.Type ? -1 : r.Type > i.Type ? 1 : 0
            }, t.prototype.SortPersonal = function(e, t) {
                var n = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e.ItemId),
                    o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, t.ItemId),
                    r = n.ElementType == C.HeroElementType.Chaos,
                    i = o.ElementType == C.HeroElementType.Chaos;
                return r && !i ? -1 : !r && i ? 1 : n.ElementType < o.ElementType ? -1 : n.ElementType > o.ElementType ? 1 : 0
            }, t.prototype.SortFitSoul = function(e, t) {
                var n = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e.ItemId),
                    o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, t.ItemId);
                return n.Quality > o.Quality ? -1 : n.Quality < o.Quality ? 1 : e.ItemId > t.ItemId ? -1 : (e.ItemId, t.ItemId, 1)
            }, t.prototype.SortheroJob = function(e, t) {
                var n = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e.ItemId),
                    o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, t.ItemId);
                return n.Quality == o.Quality ? e.ItemId - t.ItemId : o.Quality - n.Quality
            }, t.prototype.ConfigTabContainer = function() {
                this._toggleGroup = [];
                for (var e = this.TabLayout.node.childrenCount, t = 0; t < e; t++) {
                    var n = this.TabLayout.node.children[t];
                    n.name = t.toString(), n.on("toggle", this.OnSwitchTab, this);
                    var o = n.getComponent(I.default);
                    this._toggleGroup.push(o), o.Init(("bagPanel_tab_" + (t + 1)).ToUILocale())
                }
                var r = S.default.Instance.IsGameModuleOpen(C.GameModuleType.Angel),
                    i = S.default.Instance.IsGameModuleUnlock(C.GameModuleType.Angel);
                this.TabLayout.node.children[l.GodSoul].active = r && i[0], this._tabGameModuleStatus[l.GodSoul] = r && i[0];
                var a = S.default.Instance.IsGameModuleOpen(C.GameModuleType.FighterSpirit),
                    s = S.default.Instance.IsGameModuleUnlock(C.GameModuleType.FighterSpirit);
                this.TabLayout.node.children[l.FitSoul].active = a && s[0], this._tabGameModuleStatus[l.FitSoul] = a && s[0];
                var c = S.default.Instance.IsGameModuleOpen(C.GameModuleType.HeroJob),
                    u = S.default.Instance.IsGameModuleUnlock(C.GameModuleType.HeroJob);
                this.TabLayout.node.children[l.HeroJob].active = c && u[0], this._tabGameModuleStatus[l.HeroJob] = c && u[0];
                var p = S.default.Instance.IsGameModuleOpen(C.GameModuleType.Personality),
                    d = S.default.Instance.IsGameModuleUnlock(C.GameModuleType.Personality);
                this.TabLayout.node.children[l.Personality].active = p && d[0], this._tabGameModuleStatus[l.Personality] = p && d[0];
                var h = S.default.Instance.IsGameModuleOpen(C.GameModuleType.PowerCore),
                    f = S.default.Instance.IsGameModuleUnlock(C.GameModuleType.PowerCore);
                this.TabLayout.node.children[l.PowerCore].active = h && f[0], this._tabGameModuleStatus[l.PowerCore] = h && f[0];
                var y = S.default.Instance.IsGameModuleOpen(C.GameModuleType.BagVoucherTab),
                    g = S.default.Instance.IsGameModuleUnlock(C.GameModuleType.BagVoucherTab);
                this.TabLayout.node.children[l.Voucher].active = y && g[0], this._tabGameModuleStatus[l.Voucher] = y && g[0]
            }, t.prototype.ConfigDialogContainer = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_Bag_HeroId"), t = g.ConfigDataComponent.Instance.GetConfigById(m.HeroBase_Config, e), [4, this.LoadDynamicAsset(t.UIAvatar + "/Avatar")];
                            case 1:
                                return n = r.sent(), this.isValid ? ((o = cc.instantiate(n)).setParent(this.AvatarContainer), S.default.Instance.SetHeroAvatarSkin(o, t.Id, t.StarLevel), [2]) : (c.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.InitCustomLayout = function() {
                this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._itemPrefab, !0)), this.SwitchTabByType(this._defaultTab), this.TabScrollview.horizontal = !b.default.Instance.IsInGuide
            }, t.prototype.SwitchTabByType = function(e) {
                var t = this._toggleGroup[e];
                return t.isChecked = !0, this.OnSwitchTab(t, !this._isReDisplay), t
            }, t.prototype.OnSwitchTab = function(e, t) {
                void 0 === t && (t = !0);
                var n = Number.parseInt(e.node.name);
                this._currentTabType != n && (this._currentTabType = n, this._defaultTab = this._currentTabType, this.ConfigItemsByType(t), this.ConfigFunctionBtn(), this.ConfigTabRedDotState())
            }, t.prototype.ConfigItemsByType = function(e) {
                void 0 === e && (e = !0), this._currentDataCount = 0, this.ItemScrollview.stopAutoScroll();
                var t = this._currentTabType === l.Fragment,
                    n = this._tabItemTypeMap[this._currentTabType];
                this._currentDataArr = void 0 !== n ? this._dataMap.get(n) : void 0, this._currentDataCount = this._currentDataArr ? this._currentDataArr.length : 0;
                var o = !e;
                t ? (o ? this.CustomLayout.ReRender() : this.CustomLayout.RenderLayOut(this._currentDataCount, 0, 40), this.ShowGuide()) : o ? this.CustomLayout.ReRender() : this.CustomLayout.RenderLayOut(this._currentDataCount), this._isReDisplay || h.UIUtlity.AnimationItemsByType1(this.CustomLayout.node.children)
            }, t.prototype.ConfigFunctionBtn = function() {
                switch (this.FunctionGrayBtn.node.active = !1, v.RedDotManager.Instance.UnBind(v.RedDotManager.Instance.RedDot.BagRuneFunctionBtnNode), this._currentTabType) {
                    case l.Fragment:
                        this.FunctionBtn2.node.active = !0, this.FunctionBtn2Label.string = "pieceResolve_title".ToUILocale(), P.RedDotDataHandler.Instance.RefreshBagFragmentToggle(!0) ? (this.FunctionBtn.node.active = !0, this.FunctionBtnLabel.string = "compose_auto".ToUILocale()) : (this.FunctionGrayBtn.node.active = !0, this.FunctionBtn.node.active = !1, this.FunctioGraynBtnLabel.string = "compose_auto".ToUILocale());
                        break;
                    case l.Rune:
                        this.FunctionBtn.node.active = !0, this.FunctionBtnLabel.string = "luckycharm_RuleMainTitle".ToUILocale(), this.FunctionBtn2.node.active = !1, v.RedDotManager.Instance.Bind(this.FunctionBtn.node, v.RedDotManager.Instance.RedDot.BagRuneFunctionBtnNode, 0, 0, 1);
                        break;
                    case l.Personality:
                        this.FunctionBtn.node.active = !1, this.FunctionBtn2.node.active = !0, this.FunctionBtn2Label.string = "personality_decompose".ToUILocale();
                        break;
                    case l.Gem:
                        this.FunctionBtn.node.active = !0, this.FunctionBtn2.node.active = !1, this.FunctionBtnLabel.string = "gem_compose_RuleMainTitle".ToUILocale(), this.FunctionBtn2Label.string = "gem_summon".ToUILocale();
                        break;
                    case l.PowerCore:
                        this.FunctionBtn.node.active = !0, this.FunctionBtn2.node.active = !0, this.FunctionBtnLabel.string = "quick_upgrade_star_title".ToUILocale(), this.FunctionBtn2Label.string = "PowerCore_Resolve_Title".ToUILocale();
                        break;
                    case l.Prop:
                        this.FunctionBtn2.node.active = !1, this.FunctionBtn.node.active = this.GetCanQuickOpeBoxItems().length > 0, this.FunctionBtnLabel.string = "auto_summon".ToUILocale();
                        break;
                    default:
                        this.FunctionBtn.node.active = !1, this.FunctionBtn2.node.active = !1
                }
            }, t.prototype.GetCanQuickOpeBoxItems = function() {
                var e = [];
                if (this._currentDataArr)
                    for (var t = 0; t < this._currentDataArr.length; t++) {
                        var n = this._currentDataArr[t],
                            o = g.ConfigDataComponent.Instance.GetConfigById(m.ItemConsume_Config, n.ItemId);
                        o.SubType != C.ConsumeItemType.FixedBox && o.SubType != C.ConsumeItemType.RandomBox || (o.GameModule ? S.default.Instance.IsGameModuleUnlock(o.GameModule)[0] && e.push(n) : e.push(n))
                    }
                return e
            }, t.prototype.ConfigTabRedDotState = function() {
                switch (this._currentTabType) {
                    case l.Prop:
                    case l.Fragment:
                    case l.Rune:
                        this.HintNode.active = !0;
                        var e = this.ShowBagPanelTabRedDotStates[this._currentTabType - 1];
                        this.SkipAnimationToggle.isChecked = !!e;
                        break;
                    default:
                        this.HintNode.active = !1
                }
            }, t.prototype.OnClickFunctionBtn = function() {
                var e = this;
                switch (this._currentTabType) {
                    case l.Fragment:
                        h.UIUtlity.ShowHintPanel("", "compose_auto_hint".ToUILocale(), "", null, "", function() {
                            e.RequestAutoComposePiece()
                        });
                        break;
                    case l.Rune:
                        c.UIManager.Instance.ShowUIPanel(d.PanelConfig.LuckyCharmComposePanel.Path);
                        break;
                    case l.Gem:
                        c.UIManager.Instance.ShowUIPanel(d.PanelConfig.GemComposePanel.Path);
                        break;
                    case l.PowerCore:
                        c.UIManager.Instance.ShowUIPanel(d.PanelConfig.CoreQuickUpgradeStarPanel.Path);
                        break;
                    case l.Prop:
                        var t = {
                            Rewards: this.GetCanQuickOpeBoxItems(),
                            OkCallback: this.RequestQuickUseBox.bind(this)
                        };
                        c.UIManager.Instance.ShowUIPanel(d.PanelConfig.BagViewRewardPanel.Path, t)
                }
            }, t.prototype.RequestQuickUseBox = function() {
                var e = new u.Req_Item_UseItems,
                    t = this.GetCanQuickOpeBoxItems();
                e.Items = [];
                for (var n = 0; n < t.length; n++) {
                    var o = t[n];
                    e.Items.push({
                        Items: [o.ItemId, o.Count]
                    })
                }
                g.RpcComponent.Instance.Call(e, function(e) {
                    e.Rewards.length > 0 && h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                })
            }, t.prototype.OnClickFunctionBtn2 = function() {
                switch (this._currentTabType) {
                    case l.Fragment:
                        c.UIManager.Instance.ShowUIPanel(d.PanelConfig.PieceResolvePanel.Path);
                        break;
                    case l.Personality:
                        c.UIManager.Instance.ShowUIPanel(d.PanelConfig.PieceResolvePanel.Path, C.ItemType.Personality);
                        break;
                    case l.Gem:
                        c.UIManager.Instance.ShowUIPanel(d.PanelConfig.HolyFurnacePanel.Path, 1);
                        break;
                    case l.PowerCore:
                        c.UIManager.Instance.ShowUIPanel(d.PanelConfig.CoreUpSelectMaterialPanel.Path, T.CoreSelectMaterialPanelType.Resolve, this._currentDataArr);
                        break;
                    case l.FitSoul:
                        c.UIManager.Instance.ShowUIPanel(d.PanelConfig.SoulRecordResolvePanel.Path, this._currentDataArr)
                }
            }, t.prototype.RequestAutoComposePiece = function() {
                var e = new u.Req_Item_OneClickComposePiece;
                g.RpcComponent.Instance.Call(e, this.OnAutoComposeSucces.bind(this))
            }, t.prototype.OnAutoComposeSucces = function(e) {
                var t = this;
                if (e.Rewards.length <= 0) {
                    var n = S.default.Instance.GetHeroCountLimit();
                    if (g.DataCenter.Instance.GetDataList(u.UserHero_Model).length >= n) {
                        var o = "compose_heroCount_limit".ToUILocale().Fmt(n);
                        h.UIUtlity.ShowHintPanel("", o, "", null, "go_to_treat".ToUILocale(), function() {
                            t.Close(), _.UIManager.Instance.CloseUIPanel(d.PanelConfig.BagPanel.Path), c.UIManager.Instance.ShowUIPanel(d.PanelConfig.HeroPalacePanel.Path, 1)
                        })
                    }
                } else h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.OnClickFunctionGrayBtn = function() {
                h.UIUtlity.ShowFloatingHint("compose_none_hint".ToUILocale())
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (t == this.CustomLayout) {
                    var o = !(this.ShowBagPanelTabRedDotStates[this._currentTabType - 1] > 0);
                    e.forEach(function(e, t) {
                        var r = e.getComponent(y.ItemComponent);
                        r.SetRedDotState(!1), t >= n._currentDataCount ? (r.SetItemSimpleState(), r.DisableLeftTimeSchedule(), r.node.name = "0") : (n.RenderItemComponent(t, r, o), r.ItemSid ? r.node.name = r.ItemSid.toString() : r.node.name = n._currentDataArr[t].ItemId.toString())
                    })
                }
            }, t.prototype.RenderItemComponent = function(e, t, n) {
                switch (this._currentTabType) {
                    case l.Equip:
                        t.Init(this._dataMap.get(C.ItemType.Equip)[e], y.ItemComponentType.ItemWithStar);
                        break;
                    case l.Prop:
                        var o = this._dataMap.get(C.ItemType.Consume)[e];
                        t.Init(o, y.ItemComponentType.ItemCommon);
                        var r = !0,
                            i = g.ConfigDataComponent.Instance.GetConfigById(m.ItemConsume_Config, o.ItemId);
                        if (i.GameModule && (S.default.Instance.IsGameModuleUnlock(i.GameModule)[0] || (r = !1)), (i.SubType <= 4 || i.SubType == C.ConsumeItemType.Coupon) && n && r && t.SetRedDotState(!0), null != i && i.SubType == C.ConsumeItemType.DynamicBox) {
                            var a = i.Param[0].Items[1];
                            t.SetCustomDesc(!0, "" + a + "hour".ToUILocale(), "Top", !0)
                        }
                        break;
                    case l.Fragment:
                        var s = this._dataMap.get(C.ItemType.ItemPiece)[e];
                        t.Init(s, y.ItemComponentType.Fragment);
                        var c = g.ConfigDataComponent.Instance.GetConfigById(m.ItemPiece_Config, s.ItemId);
                        s.Count >= c.RequireCount && n && t.SetRedDotState(!0);
                        break;
                    case l.Rune:
                        var p = this._dataMap.get(C.ItemType.LuckyCharm)[e],
                            d = {};
                        d.ItemId = p.ItemId, d.Sid = p.Sid, t.Init(d, y.ItemComponentType.ItemCommon);
                        break;
                    case l.Personality:
                        t.Init(this._dataMap.get(C.ItemType.Personality)[e], y.ItemComponentType.ItemCommon);
                        break;
                    case l.Gem:
                        var f = this._dataMap.get(C.ItemType.Gem)[e];
                        if (f.Sid) {
                            var I = g.DataCenter.Instance.GetDataById(u.GemEquip_Model, f.Sid);
                            if (I) {
                                t.Init(I, y.ItemComponentType.Gem), t.SetGemSelect(I.GallerySlot > 0, "gemGallery_show".ToUILocale());
                                break
                            }
                        }
                        t.Init(this._dataMap.get(C.ItemType.Gem)[e], y.ItemComponentType.ItemCommon);
                        break;
                    case l.PowerCore:
                        var _ = this._dataMap.get(C.ItemType.PowerCore)[e];
                        if (_.ItemId) {
                            var v = g.ConfigDataComponent.Instance.GetConfigById(m.PowerCore_Config, _.ItemId);
                            t.Init({
                                ItemId: _.ItemId,
                                StarLevel: v.Star,
                                Sid: _.Sid
                            }, y.ItemComponentType.ItemWithStar);
                            break
                        }
                        t.Init(this._dataMap.get(C.ItemType.PowerCore)[e], y.ItemComponentType.ItemCommon);
                        break;
                    case l.Voucher:
                        var b = this._dataMap.get(C.ItemType.CurrencyDiscountTicket)[e];
                        t.Init(b, y.ItemComponentType.ItemCommon);
                        var w = g.DataCenter.Instance.GetDataById(u.CurrencyDiscountTicket_Model, b.Sid);
                        t.EnableLeftTimeSchedule(w.Time);
                        break;
                    case l.GodSoul:
                        var P = this._dataMap.get(C.ItemType.GodSoul)[e],
                            A = g.ConfigDataComponent.Instance.GetConfigById(m.AngelGodSoul_Config, P.ItemId);
                        t.Init(P, y.ItemComponentType.ItemCommon), t.SetLeftTopTag(!0, h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg6"), A.Level);
                        break;
                    case l.FitSoul:
                        var T = this._dataMap.get(C.ItemType.FighterSpirit)[e];
                        t.Init(T, y.ItemComponentType.ItemCommon);
                        break;
                    case l.HeroJob:
                        t.Init(this._dataMap.get(C.ItemType.HeroJob)[e], y.ItemComponentType.ItemCommon);
                        break;
                    default:
                        t.SetItemSimpleState()
                }
                t.SetCountFontSize(32, 182)
            }, t.prototype.GetNextTabType = function(e) {
                var t = this._currentTabType;
                if (1 == e) {
                    if (this._currentTabType == l.None - 1) return this._currentTabType;
                    for (var n = this._currentTabType + 1; n < l.None; n++)
                        if (this._tabGameModuleStatus[n]) {
                            t = n;
                            break
                        }
                } else if (-1 == e) {
                    if (this._currentTabType == l.Equip) return this._currentTabType;
                    for (n = this._currentTabType - 1; n >= 0; n--)
                        if (this._tabGameModuleStatus[n]) {
                            t = n;
                            break
                        }
                }
                return t
            }, t.prototype.OnClickLeftArrow = function() {
                if (this._currentTabType != l.Equip) {
                    var e = this.GetNextTabType(-1);
                    if (e == this._currentTabType) return;
                    this.SwitchTabByType(e), this.TabScrollview.scrollTo(cc.v2(this._currentTabType / (l.None - 1), 0), .8)
                } else this.TabScrollview.scrollToLeft()
            }, t.prototype.OnClickRightArrow = function() {
                if (this._currentTabType != l.None - 1) {
                    var e = this.GetNextTabType(1);
                    if (e == this._currentTabType) return;
                    this.SwitchTabByType(e), this.TabScrollview.scrollTo(cc.v2(cc.v2(this._currentTabType / (l.None - 1), 0)), .8)
                } else this.TabScrollview.scrollToRight()
            }, t.prototype.OnClickItem = function(e, t) {
                if (-1 != this.CustomLayout.node.children.indexOf(t) && !(e <= 0)) switch (this._currentTabType) {
                    case l.Prop:
                        _.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemInfoPanel.Path, e);
                        break;
                    case l.Equip:
                        var n = g.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e);
                        if (n && n.Type == C.ItemType.Equip) _.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemInfoPanel.Path, e);
                        else {
                            var o = g.DataCenter.Instance.GetDataById(u.HolyEquipment_Model, e);
                            o ? _.UIManager.Instance.ShowUIPanel(d.PanelConfig.HolyEquipmentInfoPanel.Path, {
                                Sid: e,
                                HideButton: !0,
                                ItemId: o.ItemId
                            }) : _.UIManager.Instance.ShowUIPanel(d.PanelConfig.HolyEquipmentInfoPanel.Path, {
                                Sid: e,
                                HideButton: !0
                            })
                        }
                        break;
                    case l.Rune:
                        _.UIManager.Instance.ShowUIPanel(d.PanelConfig.LuckyCharmBagPanel.Path, e);
                        break;
                    case l.Gem:
                        _.UIManager.Instance.ShowUIPanel(d.PanelConfig.GemInfoPanel.Path, e);
                        break;
                    case l.PowerCore:
                        _.UIManager.Instance.ShowUIPanel(d.PanelConfig.PowerCoreDetailsPanel.Path, e);
                        break;
                    case l.Voucher:
                        var r = g.DataCenter.Instance.GetDataById(u.CurrencyDiscountTicket_Model, e);
                        _.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemInfoPanel.Path, r.ItemId);
                        break;
                    case l.GodSoul:
                        var i = g.DataCenter.Instance.GetDataById(u.UserGodSoul_Model, e);
                        _.UIManager.Instance.ShowUIPanel(d.PanelConfig.AngelGodSoulinfoPanel.Path, i.Sid, A.AngelGodSoulinfoPanelType.FromBag);
                        break;
                    case l.FitSoul:
                        _.UIManager.Instance.ShowUIPanel(d.PanelConfig.SoulRecordDetialPanel.Path, e);
                        break;
                    default:
                        _.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemInfoPanel.Path, e)
                }
            }, t.prototype.OnClickReturn = function() {
                _.UIManager.Instance.BackUIPanel()
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SHOW_MAINUIPANEL)
            }, t.prototype.RefreshBubbleInfo = function() {
                this.ConfigBubbleInfo(), this.schedule(this.ConfigBubbleInfo, 8)
            }, t.prototype.ConfigBubbleInfo = function() {
                this.BubbleContainer.active = !0, this.BubbleInfo.string = ("bagpanel_bubble_info_" + this._bubbleIndex).ToUILocale(), this._bubbleIndex++, this._bubbleIndex = this._bubbleIndex > 1 ? 0 : this._bubbleIndex, this.BubbleContainer.height = this.BubbleInfo.node.height + 40, this.scheduleOnce(this.ResetBubbleState, 4)
            }, t.prototype.ResetBubbleState = function() {
                this.BubbleInfo.string = "", this.BubbleContainer.active = !1
            }, t.prototype.OnClickAvatar = function() {
                this.unschedule(this.RefreshBubbleInfo), this.unschedule(this.ConfigBubbleInfo), this.unschedule(this.ResetBubbleState), this.RefreshBubbleInfo()
            }, Object.defineProperty(t.prototype, "ShowBagPanelTabRedDotStates", {
                get: function() {
                    for (var e, t = w.default.GetItem(w.GameRecordDefine.ShowBagPanelTabRedDot), n = (e = t ? JSON.parse(t) : []).length; n < l.None - 1; n++) e[n] = 0;
                    return e
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.OnClickSkip = function(e) {
                var t = this.ShowBagPanelTabRedDotStates;
                switch (t[this._currentTabType - 1] = e.isChecked ? 1 : 0, e.isChecked, w.default.SetItem(w.GameRecordDefine.ShowBagPanelTabRedDot, JSON.stringify(t)), this._currentTabType) {
                    case l.Prop:
                        v.RedDotManager.Instance.RefreshRedDotNode(v.RedDotManager.Instance.RedDot.BagPropNode);
                        break;
                    case l.Fragment:
                        v.RedDotManager.Instance.RefreshRedDotNode(v.RedDotManager.Instance.RedDot.BagFragmentNode);
                        break;
                    case l.Rune:
                        v.RedDotManager.Instance.RefreshRedDotNode(v.RedDotManager.Instance.RedDot.BagLuckyCharmNode), v.RedDotManager.Instance.RefreshRedDotNode(v.RedDotManager.Instance.RedDot.BagRuneFunctionBtnNode)
                }
                this.ConfigItemsByType()
            }, t.prototype.ShowGuide = function() {
                if (b.default.Instance.IsInGuide) switch (b.default.Instance.CurrentStep) {
                    case 5103:
                        b.default.Instance.ShowGuide(this.TabLayout.node.children[l.Fragment]);
                        break;
                    case 5104:
                        this.ItemScrollview.enabled = !1, b.default.Instance.ShowGuide(this.CustomLayout.node.children[0]);
                        break;
                    case 5107:
                        b.default.Instance.ShowGuide(this.ReturnBtn.node)
                }
            }, i([k(cc.ScrollView)], t.prototype, "TabScrollview", void 0), i([k(cc.ToggleContainer)], t.prototype, "ToggleContainer", void 0), i([k(cc.ScrollView)], t.prototype, "ItemScrollview", void 0), i([k(cc.Layout)], t.prototype, "TabLayout", void 0), i([k(cc.Node)], t.prototype, "AvatarContainer", void 0), i([k(cc.RichText)], t.prototype, "BubbleInfo", void 0), i([k(cc.Node)], t.prototype, "BubbleContainer", void 0), i([k(cc.Node)], t.prototype, "AvatarClickNode", void 0), i([k(f.default)], t.prototype, "CustomLayout", void 0), i([k(cc.Node)], t.prototype, "LeftArrow", void 0), i([k(cc.Node)], t.prototype, "RightArrow", void 0), i([k(cc.Button)], t.prototype, "FunctionBtn", void 0), i([k(cc.Label)], t.prototype, "FunctionBtnLabel", void 0), i([k(cc.Button)], t.prototype, "FunctionBtn2", void 0), i([k(cc.Label)], t.prototype, "FunctionBtn2Label", void 0), i([k(cc.Button)], t.prototype, "FunctionGrayBtn", void 0), i([k(cc.Label)], t.prototype, "FunctioGraynBtnLabel", void 0), i([k(cc.Button)], t.prototype, "ReturnBtn", void 0), i([k(cc.Node)], t.prototype, "HintNode", void 0), i([k(cc.Toggle)], t.prototype, "SkipAnimationToggle", void 0), i([k(cc.Label)], t.prototype, "SkipHint", void 0), i([L], t)
        }(c.BaseUIFullScreenPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "./AngelGodSoulinfoPanel": "AngelGodSoulinfoPanel",
        "./CoreUpSelectMaterialPanel": "CoreUpSelectMaterialPanel"
    }],
    BagViewRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0e9caMp84VLJLwGMDccWcXd", "BagViewRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/ItemComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Tag = null, t.RewardNode = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t._itemPrefab = null, t._rewardNodes = [], t._color624d3c = new cc.Color(98, 78, 60), t._paramData = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._itemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent)]);
                                case 1:
                                    t._itemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "bagViewRewardPanel_quickOpen".ToUILocale(), this.Tag.string = "bagViewRewardPanel_quickOpenTip".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale(), this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._paramData = t[0]
                }, t.prototype.InitNodes = function() {
                    this._rewardNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.InitNodes(), this.RewardNode.active = !1;
                    for (var n = 0; n < this._paramData.Rewards.length; n++) {
                        var o = this._paramData.Rewards[n];
                        if (!this._rewardNodes[n]) {
                            var r = cc.instantiate(this._itemPrefab),
                                i = r.getComponent(p.ItemComponent);
                            i.Name.node.color = this._color624d3c, i.Name.getComponent(cc.LabelOutline).enabled = !1, this._rewardNodes[n] = r, this._rewardNodes[n].parent = this.RewardNode, r.scale = .807
                        }
                        this._rewardNodes[n].name = n.toString(), this._rewardNodes[n].active = !0, this._rewardNodes[n].getComponent(p.ItemComponent).Init(o, p.ItemComponentType.ItemWithName)
                    }
                    this.RewardNode.active = !0
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = t.getComponent(p.ItemComponent).ItemId;
                    d.UIUtlity.ShowItemTip(n, t)
                }, t.prototype.OnBtnCancelClick = function() {
                    this.Close()
                }, t.prototype.OnBtnSureClick = function() {
                    this._paramData.OkCallback && this._paramData.OkCallback(), this.Close()
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "Tag", void 0), i([y(cc.Node)], t.prototype, "RewardNode", void 0), i([y(cc.Button)], t.prototype, "BtnCancel", void 0), i([y(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([y(cc.Button)], t.prototype, "BtnSure", void 0), i([y(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    BarRewardsComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "911a6s8fdhDvLBpMLphOEiT", "BarRewardsComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BarRewardsColor = void 0;
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomProgressBar"),
            h = e("../Components/ProgressRewardItem");
        (function(e) {
            e[e.blue = 0] = "blue", e[e.orange = 1] = "orange"
        })(n.BarRewardsColor || (n.BarRewardsColor = {}));
        var f = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.RewardComponentList = [], t.ProgressBar = null, t.MaskNode = null, t.RewardContainer = null, t._progress = 0, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "Progress", {
                get: function() {
                    return this._progress
                },
                set: function(e) {
                    this._progress = e
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Init = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._rewardPrefab ? [3, 2] : (t = this, [4, p.AssetsManager.Instance.LoadAsset("ItemsComponent/ProgressRewardItem", cc.Prefab)]);
                            case 1:
                                if (t._rewardPrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._rewardPrefab), [2];
                                n.label = 2;
                            case 2:
                                return this._barConfig = e, this._progress = this._barConfig.progress, this.InitStyle(), [2]
                        }
                    })
                })
            }, t.prototype.InitStyle = function() {
                var e = this,
                    t = this._barConfig.rewards.length * this._barConfig.interval;
                this.ProgressBar.TotalLength = t, this.ProgressBar.node.width = t, this.ProgressBar.Container.x = t / 2, this.ProgressBar.progress = this._barConfig.barProgress ? this._barConfig.barProgress / this._barConfig.totalProgress : this._progress / this._barConfig.totalProgress, this._barConfig.rewards.forEach(function(t, n) {
                    var o = e.InitRewardPoint(t);
                    o.node.x = (n + 1) * e._barConfig.interval, e.RewardContainer.addChild(o.node), e.RewardComponentList.push(o), void 0 !== e._barConfig.EnlargeLast && n == e._barConfig.rewards.length - 1 && (0 == e._barConfig.EnlargeLast && (o.node.active = !1), o.ScaleItem(e._barConfig.EnlargeLast))
                })
            }, t.prototype.InitRewardPoint = function(e) {
                if (0 != e.Rewards.length) {
                    var t, n, o = cc.instantiate(this._rewardPrefab).getComponent(h.default),
                        r = !1;
                    this._barConfig && (r = this._barConfig.isReceivedContral(e.Id));
                    var i = this._barConfig.RewardShowType;
                    return i == h.ProgressRewardShowType.Box && e.Rewards.length <= 1 && (i = h.ProgressRewardShowType.Item), i && i != h.ProgressRewardShowType.Item ? (t = e.Rewards.map(function(e) {
                        return e.Items[0]
                    }), n = e.Rewards.map(function(e) {
                        return e.Items[1]
                    })) : (t = e.Rewards[0].Items[0], n = e.Rewards[0].Items[1]), o.InitUI({
                        Id: e.Id,
                        Type: this._barConfig.type,
                        ItemId: t,
                        ItemNum: n,
                        Point: e.Progress,
                        CurProgress: this._progress,
                        IsReceive: r,
                        Callback: this._barConfig.callBack,
                        RewardShowType: i,
                        BoxSprite: this._barConfig.BoxSprite
                    }), o
                }
            }, t.prototype.RefreshBar = function(e, t) {
                var n = this;
                this._progress = e, this.ProgressBar.progress = t ? t / this._barConfig.totalProgress : this._progress / this._barConfig.totalProgress, this.RewardComponentList.forEach(function(e) {
                    var t = !1;
                    n._barConfig && (t = n._barConfig.isReceivedContral(e.PackId)), e.RefreshStyle(n._progress, t)
                })
            }, t.prototype.onDestroy = function() {
                p.AssetsManager.Instance.UnloadAsset(this._rewardPrefab)
            }, t.prototype.HiddenAllBottomText = function() {
                this.RewardComponentList.forEach(function(e) {
                    e.Point.node.active = !1
                })
            }, i([u(d.default)], t.prototype, "ProgressBar", void 0), i([u(cc.Node)], t.prototype, "MaskNode", void 0), i([u(cc.Node)], t.prototype, "RewardContainer", void 0), i([c], t)
        }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ProgressRewardItem": "ProgressRewardItem"
    }],
    BaseUIFrame: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dd2a0n3c0ZDKqSzKVr6kYGF", "BaseUIFrame");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            l = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BaseUIFrame = void 0;
        var c = e("../../EZFramework/EZFramework"),
            u = e("./FrameComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PageParentNode = null, t.MaxPageCount = 0, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "frameComponent", {
                    get: function() {
                        return this._frameComponent || (this._frameComponent = new u.FrameComponent(this.PageParentNode, this.MaxPageCount)), this._frameComponent
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.ShowPage = function(e) {
                    for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, (n = this.frameComponent).ShowPage.apply(n, l([e], t))];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.ClosePage = function(e) {
                    this.frameComponent.ClosePage(e)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t && this.frameComponent.ReShowPage()
                }, t.prototype.Dispose = function() {
                    e.prototype.Dispose.call(this), this.frameComponent.Dispose()
                }, i([h(cc.Node)], t.prototype, "PageParentNode", void 0), i([d], t)
            }(c.BaseUIPanel);
        n.BaseUIFrame = f, cc._RF.pop()
    }, {
        "../../EZFramework/EZFramework": "EZFramework",
        "./FrameComponent": "FrameComponent"
    }],
    BaseUIFullScreenFrame: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "65780TdK79JPpRceONiMlAr", "BaseUIFullScreenFrame");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            l = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BaseUIFullScreenFrame = void 0;
        var c = e("./BaseUIFullScreenPanel"),
            u = e("./FrameComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PageParentNode = null, t.MaxPageCount = 0, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "frameComponent", {
                    get: function() {
                        return this._frameComponent || (this._frameComponent = new u.FrameComponent(this.PageParentNode, this.MaxPageCount)), this._frameComponent
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.ShowPage = function(e) {
                    for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, (n = this.frameComponent).ShowPage.apply(n, l([e], t))];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.ClosePage = function(e) {
                    this.frameComponent.ClosePage(e)
                }, t.prototype.Dispose = function() {
                    e.prototype.Dispose.call(this), this.frameComponent.Dispose()
                }, i([h(cc.Node)], t.prototype, "PageParentNode", void 0), i([d], t)
            }(c.BaseUIFullScreenPanel);
        n.BaseUIFullScreenFrame = f, cc._RF.pop()
    }, {
        "./BaseUIFullScreenPanel": "BaseUIFullScreenPanel",
        "./FrameComponent": "FrameComponent"
    }],
    BaseUIFullScreenPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c40d5fLCVBPdKCbLxhWxo/o", "BaseUIFullScreenPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BaseUIFullScreenPanel = void 0;
        var a = e("../../EZFramework/EZFramework"),
            s = e("../../EZFramework/EZFramework"),
            l = cc._decorator,
            c = l.ccclass,
            u = (l.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), this.UIType.IsFullScreen = !0, e.prototype.DisPlay.call(this, t), this.HideLowLayer()
                }, t.prototype.HideLowLayer = function() {
                    var e = s.UIManager.Instance.UINodeLayers[this.UIType.UINode_Type];
                    this._panelIndex = e.children.indexOf(this.node), s.UIManager.Instance.HideLowLayer(this.UIType.UINode_Type, this._panelIndex)
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t), this.ShowLowLayer()
                }, t.prototype.ShowLowLayer = function() {
                    s.UIManager.Instance.ShowLowLayer(this.UIType.UINode_Type, this._panelIndex)
                }, i([c], t)
            }(a.BaseUIPanel));
        n.BaseUIFullScreenPanel = u, cc._RF.pop()
    }, {
        "../../EZFramework/EZFramework": "EZFramework"
    }],
    BaseUIPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "149eefWNgNJ4ZEn81s40hgT", "BaseUIPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            l = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BaseUIPage = void 0;
        var c = e("../../GamePlay/UI/Auxiliary/UIUtlity"),
            u = e("../AssetsLoader/AssetsManager"),
            p = e("../Components/RealTimeScheduler"),
            d = e("../EZFramework"),
            h = e("./FrameComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TweenTop = [], t.TweenMiddle = [], t.TweenFromLeft = [], t.TweenFromRight = [], t.TweenBottom = [], t.PageParentNode = null, t.MaxPageCount = 0, t.SplitLine = "****************************************************************", t.TweenDelay = .3, t.TweenDelay2 = .35, t.TweenDelay_TopAndBottom = .2, t._hasDisPlayed = !1, t._needPreInit = !0, t._originalNodePositions = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "frameComponent", {
                    get: function() {
                        return this._frameComponent || (this._frameComponent = new h.FrameComponent(this.PageParentNode, this.MaxPageCount)), this._frameComponent
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ParentFrameComponent", {
                    set: function(e) {
                        this._parentFrameComponent = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onLoad = function() {}, t.prototype.__PreInit = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._needPreInit ? (this._needPreInit = !1, this._dynamicAssets = [], this.__SetWidget(), [4, this.Preload()]) : [3, 2];
                                case 1:
                                    t.sent(), this.InitUI(), t.label = 2;
                                case 2:
                                    return this.InitData(e), [4, this.PreloadByData()];
                                case 3:
                                    return t.sent(), this.ResetPanelState(), [2]
                            }
                        })
                    })
                }, t.prototype.__SetWidget = function() {
                    var e = this.node.addComponent(cc.Widget);
                    e.isAlignTop = !0, e.isAlignBottom = !0
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return [2]
                        })
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return [2]
                        })
                    })
                }, t.prototype.InitUI = function() {}, t.prototype.InitData = function() {}, t.prototype.ResetPanelState = function() {}, t.prototype.__PreDisplay = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.node.active || (this.node.active = !0, this.node.opacity = 0), this._hasDisPlayed ? (this.DisPlay(!1), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, this.delay(0)];
                                case 2:
                                    e.sent(), this.DisPlay(!1), e.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.delay = function(e) {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function() {
                            return [2, new Promise(function(n) {
                                t.scheduleOnce(function() {
                                    n()
                                }, e)
                            })]
                        })
                    })
                }, t.prototype.__ReDisplay = function(e) {
                    void 0 === e && (e = !0), this._needPreInit || (d.EZLog.Log("ReDisplay " + this.node.name), this.node.active = !0, this.DisPlay(e))
                }, t.prototype.DisPlay = function(e) {
                    void 0 === e && (e = !1), d.EZLog.Log("DisPlay Page " + this.node.name), this.node.opacity = 255, e || this.PlayPanelTween(), this._hasDisPlayed = !0
                }, t.prototype.OnClose = function() {}, t.prototype.LoadDynamicAsset = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, u.AssetsManager.Instance.LoadAsset(e, t)];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this._dynamicAssets.push(n), [2, n]) : [2, n]
                            }
                        })
                    })
                }, t.prototype.ShowPage = function(e) {
                    for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, (n = this.frameComponent).ShowPage.apply(n, l([e], t))];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.ClosePage = function(e) {
                    this.frameComponent.ClosePage(e)
                }, t.prototype.CloseSelf = function() {
                    this._parentFrameComponent.ClosePage(this.UIPageName)
                }, t.prototype.PlayPanelTween = function() {
                    this.PlayMiddleDisplayTween(), this.PlayFromLeftTween(), this.PlayFromRightTween(), this.PlayTopTween(), this.PlayBottomTween()
                }, t.prototype.GetOriginalPosition = function(e) {
                    if (this._originalNodePositions || (this._originalNodePositions = new Map), this._originalNodePositions.has(e)) return this._originalNodePositions.get(e);
                    var t = e.position;
                    return this._originalNodePositions.set(e, t), t
                }, t.prototype.PlayMiddleDisplayTween = function() {
                    for (var e = 0; e < this.TweenMiddle.length; e++) {
                        var t = this.TweenMiddle[e];
                        t.position = cc.v3(-c.UIUtlity.DESIGN_SCREEN_WIDTH / 2, t.position.y, 0), cc.tween(t).to(this.TweenDelay, {
                            position: cc.v3(0, t.position.y, 0)
                        }, {
                            easing: "backOut"
                        }).start()
                    }
                }, t.prototype.PlayFromLeftTween = function(e) {
                    void 0 === e && (e = !1);
                    for (var t = function(t) {
                            var o = n.TweenFromLeft[t],
                                r = n.GetOriginalPosition(o),
                                i = o.parent;
                            if (i) {
                                var a = i.getComponent(cc.Layout);
                                a && (a.enabled = !1, setTimeout(function() {
                                    a.enabled = !0
                                }, 1e3 * n.TweenDelay2))
                            }
                            e ? cc.tween(o).to(n.TweenDelay2, {
                                position: cc.v3(-c.UIUtlity.DESIGN_SCREEN_WIDTH / 2, r.y, 0)
                            }, {
                                easing: "smooth"
                            }).start() : (o.position = cc.v3(-c.UIUtlity.DESIGN_SCREEN_WIDTH / 2, r.y, 0), cc.tween(o).to(n.TweenDelay2, {
                                position: cc.v3(r.x, r.y, 0)
                            }, {
                                easing: "backOut"
                            }).start())
                        }, n = this, o = 0; o < this.TweenFromLeft.length; o++) t(o)
                }, t.prototype.PlayFromRightTween = function(e) {
                    void 0 === e && (e = !1);
                    for (var t = function(t) {
                            var o = n.TweenFromRight[t],
                                r = n.GetOriginalPosition(o),
                                i = o.parent;
                            if (i) {
                                var a = i.getComponent(cc.Layout);
                                a && (a.enabled = !1, setTimeout(function() {
                                    a.enabled = !0
                                }, 1e3 * n.TweenDelay2))
                            }
                            e ? cc.tween(o).to(n.TweenDelay2, {
                                position: cc.v3(c.UIUtlity.DESIGN_SCREEN_WIDTH / 2, r.y, 0)
                            }, {
                                easing: "smooth"
                            }).start() : (o.position = cc.v3(c.UIUtlity.DESIGN_SCREEN_WIDTH / 2, r.y, 0), cc.tween(o).to(n.TweenDelay2, {
                                position: cc.v3(r.x, r.y, 0)
                            }, {
                                easing: "backOut"
                            }).start())
                        }, n = this, o = 0; o < this.TweenFromRight.length; o++) t(o)
                }, t.prototype.PlayTopTween = function(e) {
                    void 0 === e && (e = !1);
                    for (var t = function(e) {
                            var t = n.TweenTop[e],
                                o = n.GetOriginalPosition(t),
                                r = t.parent;
                            if (r) {
                                var i = r.getComponent(cc.Layout);
                                i && (i.enabled = !1, setTimeout(function() {
                                    i.enabled = !0
                                }, 1e3 * n.TweenDelay_TopAndBottom))
                            }
                            t.position = cc.v3(o.x, c.UIUtlity.DESIGN_SCREEN_HEIGHT / 2, 0), cc.tween(t).to(n.TweenDelay_TopAndBottom, {
                                position: cc.v3(o.x, o.y, 0)
                            }, {
                                easing: "smooth"
                            }).start()
                        }, n = this, o = 0; o < this.TweenTop.length; o++) t(o)
                }, t.prototype.PlayBottomTween = function(e) {
                    void 0 === e && (e = !1);
                    for (var t = function(e) {
                            var t = n.TweenBottom[e],
                                o = t.position,
                                r = t.parent;
                            if (r) {
                                var i = r.getComponent(cc.Layout);
                                i && (i.enabled = !1, setTimeout(function() {
                                    i.enabled = !0
                                }, 1e3 * n.TweenDelay_TopAndBottom))
                            }
                            t.position = cc.v3(o.x, -c.UIUtlity.DESIGN_SCREEN_HEIGHT / 2, 0), cc.tween(t).to(n.TweenDelay_TopAndBottom, {
                                position: cc.v3(o.x, o.y, 0)
                            }, {
                                easing: "smooth"
                            }).start()
                        }, n = this, o = 0; o < this.TweenBottom.length; o++) t(o)
                }, Object.defineProperty(t.prototype, "realTimeScheduler", {
                    get: function() {
                        return this._realTimeScheduler || (this._realTimeScheduler = this.node.addComponent(p.RealTimeScheduler)), this._realTimeScheduler
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.ScheduleOnceAtRealTime = function(e, t) {
                    this.realTimeScheduler.ScheduleOnceAtRealTime(e, this, t)
                }, t.prototype.UnscheduleAtRealTime = function(e) {
                    this.realTimeScheduler.UnscheduleAtRealTime(e)
                }, t.prototype.UnscheduleAllAtRealTime = function() {
                    this.realTimeScheduler.UnscheduleAllAtRealTime()
                }, t.prototype.Dispose = function() {
                    if (this._dynamicAssets) {
                        for (var e = 0; e < this._dynamicAssets.length; e++) u.AssetsManager.Instance.UnloadAsset(this._dynamicAssets[e]);
                        this._dynamicAssets = []
                    }
                    this._frameComponent && this._frameComponent.Dispose()
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, i([g(cc.Node)], t.prototype, "TweenTop", void 0), i([g(cc.Node)], t.prototype, "TweenMiddle", void 0), i([g(cc.Node)], t.prototype, "TweenFromLeft", void 0), i([g(cc.Node)], t.prototype, "TweenFromRight", void 0), i([g(cc.Node)], t.prototype, "TweenBottom", void 0), i([g(cc.Node)], t.prototype, "PageParentNode", void 0), i([g({
                    readonly: !0,
                    displayName: "[This is split line]"
                })], t.prototype, "SplitLine", void 0), i([y], t)
            }(cc.Component);
        n.BaseUIPage = m, cc._RF.pop()
    }, {
        "../../GamePlay/UI/Auxiliary/UIUtlity": "UIUtlity",
        "../AssetsLoader/AssetsManager": "AssetsManager",
        "../Components/RealTimeScheduler": "RealTimeScheduler",
        "../EZFramework": "EZFramework",
        "./FrameComponent": "FrameComponent"
    }],
    BaseUIPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2a306Z0lGBJn479kHkJ38em", "BaseUIPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BaseUIPanel = void 0;
        var l = e("./UIPanelType"),
            c = e("./UIMaskType"),
            u = e("../AssetsLoader/AssetsManager"),
            p = e("./UIManager"),
            d = e("../Auxiliary/EZLog"),
            h = e("../../GamePlay/UI/Auxiliary/UIUtlity"),
            f = e("../../GamePlay/Auxiliary/EventKeys"),
            y = e("../../EZFramework/EZFramework"),
            g = e("../Components/RealTimeScheduler"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TweenTop = [], t.TweenMiddle = [], t.TweenBottom = [], t.SplitLine = "****************************************************************", t.MaskType = new c.default, t._needPreInit = !0, t.TweenDelay = .3, t
                }
                return r(t, e), t.prototype.onLoad = function() {}, t.prototype.__PreInit = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._needPreInit ? (this._needPreInit = !1, this._dynamicAssets = [], this.__SetWidget(), [4, this.Preload()]) : [3, 2];
                                case 1:
                                    t.sent(), this.InitUI(), t.label = 2;
                                case 2:
                                    return y.EZLog.Log(e), this.InitData(e), [4, this.PreloadByData()];
                                case 3:
                                    return t.sent(), this.ResetPanelState(), [2]
                            }
                        })
                    })
                }, t.prototype.__SetWidget = function() {
                    var e = this.node.addComponent(cc.Widget);
                    e.isAlignTop = !0, e.isAlignBottom = !0
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return [2]
                        })
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return [2]
                        })
                    })
                }, t.prototype.InitUI = function() {}, t.prototype.InitData = function() {}, t.prototype.ResetPanelState = function() {}, t.prototype.__PreDisplay = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function() {
                            return this.node.active || (this.node.active = !0, this.node.opacity = 0), this.IsReDisPlay = !1, [2, new Promise(function(t) {
                                t(void 0), e.scheduleOnce(function() {
                                    e.DisPlay()
                                }, 0)
                            })]
                        })
                    })
                }, t.prototype.DisPlay = function(e) {
                    void 0 === e && (e = !1), d.EZLog.Log("DisPlay " + this.UIPanelName), this.CloseLock = !1, this.node.opacity = 255, e || (this.PlayMiddleDisplayTween(), this.TweenMiddle.length > 0 ? setTimeout(function() {
                        h.UIUtlity.CloseMaskPanel()
                    }, 1e3 * this.TweenDelay) : h.UIUtlity.CloseMaskPanel()), y.Game.EventDispatcher.Emit(f.EventKeys.EVENT_DELAY_CLOSE_PANEL)
                }, t.prototype.__ReDisplay = function(e) {
                    void 0 === e && (e = !0), d.EZLog.Log("ReDisplay " + this.UIPanelName), this.node.active = !0, this.IsReDisPlay = e, this.DisPlay(e)
                }, t.prototype.PlayMiddleDisplayTween = function() {
                    for (var e = 0; e < this.TweenMiddle.length; e++) {
                        var t = this.TweenMiddle[e];
                        t.position = cc.v3(-h.UIUtlity.DESIGN_SCREEN_WIDTH / 2, t.position.y, 0), cc.tween(t).to(this.TweenDelay, {
                            position: cc.v3(0, t.position.y, 0)
                        }, {
                            easing: "backOut"
                        }).start()
                    }
                }, t.prototype.LoadDynamicAsset = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, u.AssetsManager.Instance.LoadAsset(e, t)];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this._dynamicAssets.push(n), [2, n]) : [2, n]
                            }
                        })
                    })
                }, t.prototype.Close = function(e) {
                    d.EZLog.Log("close " + this.UIPanelName), this.CloseLock || (this.node.active = !1, y.Game.EventDispatcher.Off(f.EventKeys.EVENT_DELAY_CLOSE_PANEL, this.Close, this), y.Game.EventDispatcher.Emit(f.EventKeys.EVENT_PANEL_CLOSE, this), this.UIType.PopStackOnClose && p.UIManager.Instance.QuitPanelStack(this, !0), e || this._noMainSceneWaitongPanel || p.UIManager.Instance.RefreshMainSceneWaitingPane(), this.IsInQueue && (this.IsInQueue = !1, p.UIManager.Instance.QuitPanelQueue()), this._noMainSceneWaitongPanel = void 0, this.UIType.IsStackPanel || this.UIType.UnloadMode == l.AssetUnloadMode.Normal && p.UIManager.Instance.UnloadPanel(this), y.Game.EventDispatcher.Emit(f.EventKeys.EVENT_PANEL_FINALCLOSE, this))
                }, t.prototype.DelayClose = function(e) {
                    this._noMainSceneWaitongPanel = e, y.Game.EventDispatcher.On(f.EventKeys.EVENT_DELAY_CLOSE_PANEL, this.Close, this)
                }, Object.defineProperty(t.prototype, "realTimeScheduler", {
                    get: function() {
                        return this._realTimeScheduler || (this._realTimeScheduler = this.node.addComponent(g.RealTimeScheduler)), this._realTimeScheduler
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.ScheduleOnceAtRealTime = function(e, t) {
                    this.realTimeScheduler.ScheduleOnceAtRealTime(e, this, t)
                }, t.prototype.UnscheduleAtRealTime = function(e) {
                    this.realTimeScheduler.UnscheduleAtRealTime(e)
                }, t.prototype.UnscheduleAllAtRealTime = function() {
                    this.realTimeScheduler.UnscheduleAllAtRealTime()
                }, t.prototype.Dispose = function() {
                    d.EZLog.Log("Dispose " + this.UIPanelName);
                    for (var e = 0; e < this._dynamicAssets.length; e++) u.AssetsManager.Instance.UnloadAsset(this._dynamicAssets[e]);
                    this._dynamicAssets = [], u.AssetsManager.Instance.UnloadAsset(this.UIPanelPrefab)
                }, i([_(cc.Node)], t.prototype, "TweenTop", void 0), i([_(cc.Node)], t.prototype, "TweenMiddle", void 0), i([_(cc.Node)], t.prototype, "TweenBottom", void 0), i([_({
                    readonly: !0,
                    displayName: "[This is split line]"
                })], t.prototype, "SplitLine", void 0), i([I], t)
            }(cc.Component);
        n.BaseUIPanel = C, cc._RF.pop()
    }, {
        "../../EZFramework/EZFramework": "EZFramework",
        "../../GamePlay/Auxiliary/EventKeys": "EventKeys",
        "../../GamePlay/UI/Auxiliary/UIUtlity": "UIUtlity",
        "../AssetsLoader/AssetsManager": "AssetsManager",
        "../Auxiliary/EZLog": "EZLog",
        "../Components/RealTimeScheduler": "RealTimeScheduler",
        "./UIManager": "UIManager",
        "./UIMaskType": "UIMaskType",
        "./UIPanelType": "UIPanelType"
    }],
    BattleActor: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fedbcAcYFFN9ZKViPClm9jy", "BattleActor");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.AvatarType = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/HeroSkillSound"),
            g = e("../../../ShareBattle/BattleHelper"),
            m = e("./Misc/BattleBuffIcon"),
            I = e("./BattleData"),
            _ = e("./Misc/BattleFloatText"),
            C = e("./Misc/BattleFloatText"),
            v = cc._decorator,
            b = v.ccclass;
        v.property,
            function(e) {
                e[e.DefaultAvatar = 0] = "DefaultAvatar", e[e.ChangeAvatar = 1] = "ChangeAvatar"
            }(n.AvatarType || (n.AvatarType = {}));
        var S = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.AvatarPrefab = null, t.AvatarNode = null, t.EffectPrefab = null, t.SoundPrefab = null, t.HeadIcon = null, t.SoundMap = null, t._TargetHPBarRatio = 0, t.StandByPosition = null, t.ZIndex = 0, t.AvatarScale = 1, t.AvatarOpacity = 0, t.HeroData = null, t.IsPet = !1, t.BattleField = null, t._NewAnimation = null, t._PendingFloatDamage = null, t._PendingFloatHealing = null, t._PendingFloatStatus = null, t._ShowFloatHealingCd = 0, t._ShowFloatStatusCd = 0, t._DefaultSkinId = 0, t._NewSkinName = null, t._IsReady = !1, t
            }
            var n;
            return r(t, e), n = t, t.prototype.Init = function() {
                if (!this._IsReady) {
                    this._IsReady = !0;
                    var e = this.node;
                    this.NormalRootNode = cc.find("Normal", e), this.AvatarRootNode = cc.find("AvatarRoot", this.NormalRootNode), this.EffectRootInner = cc.find("EffectRootInner", this.NormalRootNode), this.EffectRootOuter = cc.find("EffectRootOuter", this.NormalRootNode), this.EffectRootDead = cc.find("Dead/EffectRoot", e), this.HUDRootNode = cc.find("HUDRoot", this.NormalRootNode), this.HPBarNode = cc.find("HUDRoot/HPBar", this.NormalRootNode), this.HPMaskNode = cc.find("HUDRoot/HPBar/Mask", this.NormalRootNode), this.HPWhiteNode = cc.find("HUDRoot/HPBar/White", this.NormalRootNode), this.HPRedNode = cc.find("HUDRoot/HPBar/Mask/Red", this.NormalRootNode), this.HPYellowNode = cc.find("HUDRoot/HPBar/Mask/Yellow", this.NormalRootNode), this.HPGreenNode = cc.find("HUDRoot/HPBar/Mask/Green", this.NormalRootNode), this.HPGrayNode = cc.find("HUDRoot/HPBar/Gray", this.NormalRootNode), n.HPBarFullSize = this.HPGreenNode.getContentSize(), this.LvLabel = cc.find("HUDRoot/LvText/Label", this.NormalRootNode).getComponent(cc.Label), this.ElementSprite = cc.find("HUDRoot/ElementSprite", this.NormalRootNode).getComponent(cc.Sprite), this.BuffContainerNode = cc.find("HUDRoot/BuffContainer", this.NormalRootNode), this.DamagePopRoot = cc.find("DamagePopRoot", this.NormalRootNode), this.HealingPopRoot = cc.find("HealingPopRoot", this.NormalRootNode), this.StatusIndicatorRoot = cc.find("StatusIndicatorRoot", this.NormalRootNode)
                }
            }, t.prototype.onLoad = function() {
                this.Init()
            }, t.prototype.update = function(e) {
                var t = this;
                if (this.AvatarSkeleton) {
                    if (null != this._NewAnimation) {
                        if (!this._NewAnimation.includes(p.SkillAnimationType.Standby) || this.AvatarSkeleton.animation != this._NewAnimation) {
                            var o = !1;
                            (this._NewAnimation.includes(p.SkillAnimationType.Standby) || this._NewAnimation == p.SkillAnimationType.Standby_JC) && (o = !0), this.AvatarSkeleton.clearTracks(), this.AvatarSkeleton.setToSetupPose(), this.AvatarSkeleton.setAnimation(0, this._NewAnimation, o), this._NewAnimation == p.SkillAnimationType.BurstAttack_JC && this.AvatarSkeleton.setCompleteListener(function() {
                                t.PlayAction(p.SkillAnimationType.Standby), t.BattleField.SetEntranceAnimationComplete(), t.AvatarSkeleton.setCompleteListener(null)
                            })
                        }
                        this._NewAnimation = null
                    }
                    if (this.AvatarSkeleton.timeScale != this.BattleField.ViewPort.BattlePlaySpeed)
                        for (var r in this.AvatarSkeleton.timeScale = this.BattleField.ViewPort.BattlePlaySpeed, this.BuffEffectMap) this.BuffEffectMap[r].timeScale = this.BattleField.ViewPort.BattlePlaySpeed
                }
                for (var i = 0, a = function() {
                        var e = s._PendingFloatDamage.pop();
                        if (!e || !e.node) return "continue";
                        var t = i;
                        e.node.x = 0, e.node.y = t, e.node.parent = s.DamagePopRoot, e.node.scale = 0, e.node.opacity = 255, e.node.zIndex = 1e3 - t;
                        var n = Math.max(150, e.NumberContainerNode.width);
                        s.BattleField.ViewPort.TweenManager.Tween(e.node).OnEnd(function() {
                            e.Reset(), I.BattleData.PutBattleFloatText(e.node)
                        }).CustomChange(.2, function(o) {
                            e.node.x = n * o, e.node.y = t + 60 * o, e.node.scale = 2.5 * o
                        }, {
                            Easing: cc.easeOut(3)
                        }).CustomChange(.15, function(o) {
                            e.node.x = n * (1 - o), e.node.y = t + 60 * (1 - o), e.node.scale = 1 + 1.5 * (1 - o)
                        }, {
                            Easing: cc.easeIn(2)
                        }).CustomChange(1, function(n) {
                            e.node.y = t + 140 * n, n > .8 && (e.node.opacity = 255 * (1 - n) / .2)
                        }).Start(), i += 30
                    }, s = this; this._PendingFloatDamage.length > 0;) a();
                if (this._ShowFloatHealingCd > 0 && (this._ShowFloatHealingCd = Math.max(0, this._ShowFloatHealingCd - e * I.BattleData.BattlePlaySpeed)), this._ShowFloatHealingCd <= 0 && this._PendingFloatHealing.length > 0) {
                    var l = this._PendingFloatHealing.shift();
                    l && l.node && (this._ShowFloatHealingCd = n.ShowFloatTextCd, l.node.x = 0, l.node.y = 0, l.node.parent = this.HealingPopRoot, l.node.scale = 1, l.node.opacity = 100, this.BattleField.ViewPort.TweenManager.Tween(l.node).OnEnd(function() {
                        l.Reset(), I.BattleData.PutBattleFloatText(l.node)
                    }).CustomChange(.5, function(e) {
                        l.node.y = 100 * e, l.node.opacity = 100 + 155 * e
                    }, {
                        Easing: cc.easeOut(3)
                    }).CustomChange(.6, function(e) {
                        l.node.y = 100 + 50 * e, l.node.opacity = 100 + 155 * (1 - e)
                    }).To(.1, {
                        opacity: 0
                    }).Start())
                }
                if (this._ShowFloatStatusCd > 0 && (this._ShowFloatStatusCd = Math.max(0, this._ShowFloatStatusCd - e * I.BattleData.BattlePlaySpeed)), this._ShowFloatStatusCd <= 0 && this._PendingFloatStatus.length > 0) {
                    var c = this._PendingFloatStatus.shift();
                    c && c.node && (this._ShowFloatStatusCd = n.ShowFloatTextCd, c.node.x = 0, c.node.y = 0, c.node.parent = this.HealingPopRoot, c.node.scale = .5, c.node.opacity = 255, c.IconSprite.node.width = 32, c.IconSprite.node.height = 32, this.BattleField.ViewPort.TweenManager.Tween(c.node).OnEnd(function() {
                        c.Reset(), I.BattleData.PutBattleFloatText(c.node)
                    }).CustomChange(.2, function(e) {
                        c.node.y = 30 * e, c.node.scale = .5 + .5 * e
                    }).CustomChange(.8, function(e) {
                        c.node.y = 30 + 110 * e, c.node.scale = e <= .5 ? 1 + .2 * e : 1 + .2 * (1 - e)
                    }).CustomChange(.2, function(e) {
                        c.node.y = 140 + 30 * e, c.node.opacity = 255 * (1 - e)
                    }, {
                        Easing: cc.easeIn(2)
                    }).Start())
                }
                if (this.BuffEffectMap)
                    for (var r in this.BuffEffectMap) this.BuffEffectDelayMap && void 0 !== this.BuffEffectDelayMap[r] && (this.BuffEffectDelayMap[r] -= e * I.BattleData.BattlePlaySpeed * 1e3, this.BuffEffectDelayMap[r] <= 0 && delete this.BuffEffectDelayMap[r]), this.BuffEffectDelayMap[r] || "play" == this.BuffEffectMap[r].animation || this.BuffEffectMap[r].setAnimation(0, "play", !0), this.BuffEffectMap[r].timeScale != this.BattleField.ViewPort.BattlePlaySpeed && (this.BuffEffectMap[r].timeScale = this.BattleField.ViewPort.BattlePlaySpeed);
                this.AvatarNode && this.AvatarNode.opacity != this.AvatarOpacity && (this.AvatarNode.opacity = this.AvatarOpacity), this.UpdateShowAvatar(), this.UpdateMagicCirclePosToActor()
            }, t.prototype.GotoOffStagePosition = function() {
                this.node.setPosition(999999, 999999, 0)
            }, t.prototype.Reset = function() {}, t.prototype.Load = function(e, t, o) {
                if (void 0 === o && (o = !1), this.Init(), this.BattleField = e, this.HeroData = t, this.IsPet = o, this.AvatarScale = p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR, this.AvatarOpacity = 255, this._PendingFloatDamage = [], this._PendingFloatHealing = [], this._PendingFloatStatus = [], this._ShowFloatHealingCd = 0, this._ShowFloatStatusCd = 0, this._curAvatar = 0, this.node.opacity = 255, this.node.active = !0, t.UseBossHUD) {
                    var r = t.HeroInfo.HeroId.ToHeroName();
                    this.BattleField.ToggleBossHUD(!0, t.HeroInfo.Level, r, t.HeroInfo.HpMax)
                }
                if (t.HeroInfo.ElementShield)
                    for (var i in this.BattleField.BossElementShieldNode.active = !0, t.HeroInfo.ElementShield) this.BattleField.SetElementShieldNode(t.HeroInfo.Id, Number(i), t.HeroInfo.ElementShield[i]);
                this.StandByPosition = g.BattleHelper.GetBattleFieldPositionByStationId(t.HeroInfo.StationId, t.Camp), this.IsPet && (this.StandByPosition.x -= 72 * t.Camp);
                var a = g.BattleHelper.GetColIndex(t.HeroInfo.StationId),
                    s = g.BattleHelper.GetRowIndex(t.HeroInfo.StationId);
                this.ZIndex = 100 * a + (10 - s) - (t.Camp == p.CampType.Attacker ? 0 : 5), t.HeroInfo.StationId < 0 && (this.ZIndex = 1e3), this.node.zIndex = this.ZIndex, this.HeroData.HeroConfig ? (this.HUDRootNode.active = !t.UseBossHUD, this.HUDRootNode.y = this.HeroData.HeroConfig.HUDOffsetY + n.GapBetweenAvatarAndHUD, this.HeroData.HeroAngelId > 0 ? this.ElementSprite.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_angel") : this.ElementSprite.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame(n.ElementSpriteFrameNames[this.HeroData.HeroConfig.ElementType]), this._DefaultSkinId = this.GetDefaultSkinId(), this.SwitchToDefaultAvatar(), this.LvLabel.string = "Lv. " + Math.abs(this.HeroData.HeroInfo.Level), this.LvLabel.node.color = this.HeroData.HeroInfo.Level < 0 ? d.UIUtlity.Herolevel_Label_Color_StarResonance : cc.Color.WHITE) : this.IsPet && (this.HUDRootNode.active = !1), this.SetAvatarOrientation(this.HeroData.Camp), this.UnloadAllBuffIndicators(), this.LoadAvatar(), this.SetCurrentStatus()
            }, t.prototype.UnLoad = function() {
                this.UnLoadAvatar(), this.UnloadAllBuffIndicators();
                var e = [].concat(this._PendingFloatDamage, this._PendingFloatHealing, this._PendingFloatStatus);
                this._PendingFloatDamage = null, this._PendingFloatHealing = null, this._PendingFloatStatus = null;
                for (var t = 0; t < e.length; t++) e[t] && e[t].node && I.BattleData.PutBattleFloatText(e[t].node)
            }, t.prototype.UnLoadAvatar = function() {
                var e, t, n, o, r;
                this.SoundMap = null, this.AvatarSkeleton = null, null === (e = this.AvatarNode) || void 0 === e || e.destroy(), null === (n = null === (t = this.MagicCircleBottonSkeleton) || void 0 === t ? void 0 : t.node) || void 0 === n || n.destroy(), null === (r = null === (o = this.MagicCircleTopSkeleton) || void 0 === o ? void 0 : o.node) || void 0 === r || r.destroy(), l.AssetsManager.Instance.UnloadAsset(this.AvatarPrefab), l.AssetsManager.Instance.UnloadAsset(this.MagicCirclePrefab), this.AvatarPrefab = null, this.AvatarNode = null, this.MagicCircleBottonSkeleton = null, this.MagicCircleTopSkeleton = null, this.MagicCirclePrefab = null, l.AssetsManager.Instance.UnloadAsset(this.EffectPrefab), this.EffectPrefab = null, l.AssetsManager.Instance.UnloadAsset(this.SoundPrefab), this.SoundPrefab = null, l.AssetsManager.Instance.UnloadAsset(this.HeadIcon), this.HeadIcon = null
            }, t.prototype.LoadAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, p, d, g, m, I, _, C, v, b;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this.UnLoadAvatar(), e = this.BattleField.ViewPort.Id, t = "", this.HeroData.HeroInfo.SkinId ? this.HeroData.HeroAngelId > 0 ? (r = u.ConfigDataComponent.Instance.GetConfigById(c.AngelGodAvatar_Config, this.HeroData.HeroInfo.SkinId), t = r ? "Angels_" + r.Model : this.HeroData.SkillConfig.BundleName) : (n = u.ConfigDataComponent.Instance.GetConfigById(c.HeroSkin_Config, this.HeroData.HeroInfo.SkinId), t = n ? "Hero_" + n.Model : this.HeroData.SkillConfig.BundleName) : this.HeroData.HeroAngelId > 0 && (o = u.ConfigDataComponent.Instance.GetConfigById(c.AngelStar_Config, 1e3 * this.HeroData.HeroAngelId + this.HeroData.HeroInfo.StarLevel)) ? (r = u.ConfigDataComponent.Instance.GetConfigById(c.AngelGodAvatar_Config, o.AngelShape), t = "Angels_" + r.Model) : t = this.HeroData.SkillConfig.BundleName, [4, l.AssetsManager.Instance.LoadAsset(t + "/HeroAvatar", cc.Prefab)];
                            case 1:
                                return i = s.sent(), e != this.BattleField.ViewPort.Id ? (l.AssetsManager.Instance.UnloadAsset(i), [2]) : (this.AvatarPrefab = i, this.AvatarNode = cc.instantiate(this.AvatarPrefab), this.AvatarNode.setParent(this.AvatarRootNode), this.AvatarSkeleton = this.AvatarNode.getComponent(sp.Skeleton), this.UpdateShowAvatar(), this.HeroData.HeroInfo.MagicCircle ? (a = u.ConfigDataComponent.Instance.GetConfigById(c.MagicCircleBase_Config, this.HeroData.HeroInfo.MagicCircle.Sid), [4, l.AssetsManager.Instance.LoadAsset(a.Model + "/HeroAvatar", cc.Prefab)]) : [3, 3]);
                            case 2:
                                if (p = s.sent(), e != this.BattleField.ViewPort.Id) return l.AssetsManager.Instance.UnloadAsset(p), [2];
                                this.MagicCirclePrefab = p, this.MagicCircleBottonSkeleton || (d = cc.instantiate(this.MagicCirclePrefab), this.BattleField.EffectBottomLayer.addChild(d), this.MagicCircleBottonSkeleton = d.getComponent(sp.Skeleton)), this.MagicCircleBottonSkeleton.node.position = this.node.position, this.MagicCircleBottonSkeleton.setAnimation(0, "standby2", !0), this.MagicCircleBottonSkeleton.findAnimation("standby") && (this.MagicCircleTopSkeleton || (d = cc.instantiate(this.MagicCirclePrefab), this.BattleField.EffectTopLayer.addChild(d), this.MagicCircleTopSkeleton = d.getComponent(sp.Skeleton)), this.MagicCircleTopSkeleton.node.position = this.node.position, this.MagicCircleTopSkeleton.setAnimation(0, "standby", !0)), this.SetMagicCircleActive(this.NormalRootNode.active), s.label = 3;
                            case 3:
                                return [4, l.AssetsManager.Instance.LoadAsset(t + "/SkillEffect", cc.Prefab)];
                            case 4:
                                return g = s.sent(), e != this.BattleField.ViewPort.Id ? (l.AssetsManager.Instance.UnloadAsset(g), [2]) : (this.EffectPrefab = g, this.HeroData.HeroConfig ? (m = void 0, this.HeroData.HeroAngelId ? [4, l.AssetsManager.Instance.LoadAsset("AngelIcon/AngelHeader/" + this.HeroData.HeroAngelId, cc.SpriteFrame)] : [3, 6]) : [3, 9]);
                            case 5:
                                return (m = s.sent()) ? [3, 8] : [2];
                            case 6:
                                return [4, l.AssetsManager.Instance.LoadAsset(h.BundlePath.HeroHeadIcon + "/" + this.HeroData.HeroInfo.HeroId, cc.SpriteFrame)];
                            case 7:
                                if (!(m = s.sent())) return [2];
                                s.label = 8;
                            case 8:
                                this.HeadIcon = m, s.label = 9;
                            case 9:
                                return f.AudioManager.Instance.EffectVolume <= 0 ? [2] : [4, l.AssetsManager.Instance.LoadAsset(t + "/Sounds", cc.Prefab)];
                            case 10:
                                if (I = s.sent(), e != this.BattleField.ViewPort.Id) return l.AssetsManager.Instance.UnloadAsset(I), [2];
                                for (this.SoundPrefab = I, _ = cc.instantiate(this.SoundPrefab), C = _.getComponent(y.default), this.SoundMap = {}, v = 0; v < C.Sounds.length; v++) C.Sounds[v] && (b = C.Sounds[v].name, this.SoundMap[b] = C.Sounds[v]);
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetCurrentStatus = function() {
                if (this.HeroData.HeroInfo.Id < 0 && !this.IsPet) return this.EffectRootInner.active = !1, this.EffectRootOuter.active = !1, this.EffectRootDead.active = !1, this.HUDRootNode.active = !1, void(this.node.active = !1);
                this.SetHPBarNoAnimation(), this.SetPetMpBarNoAnimation(), this.BattleField.ViewPort.TweenManager.ClearTargetTweens(this.AvatarRootNode), this.BattleField.ViewPort.TweenManager.ClearTargetTweens(this.NormalRootNode), this.HeroData.IsDead ? (this.NormalRootNode.opacity = 255, this.NormalRootNode.active = !1, this.AvatarRootNode.opacity = 255, this.SetMagicCircleActive(!1), this.BattleField.ViewPort.DealWithActorDead(this.HeroData.HeroInfo.Id)) : (this.NormalRootNode.opacity = 255, this.NormalRootNode.active = !0, this.AvatarRootNode.opacity = 255, this.SetMagicCircleActive(!0), this.BattleField.ViewPort.DealWithActorRevive(this.HeroData.HeroInfo.Id)), this.RefreshBuffIndicator()
            }, t.prototype.SetAvatarOrientation = function(e) {
                var t = this.AvatarScale * (p.CampType.Attacker, 1),
                    n = this.AvatarScale * (e == p.CampType.Attacker ? 1 : -1);
                this.AvatarRootNode.setScale(t * p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X, this.AvatarScale), this.EffectRootOuter.setScale(n, this.AvatarScale), this.EffectRootInner.setScale(n, this.AvatarScale), this.MagicCircleBottonSkeleton && this.MagicCircleBottonSkeleton.node.setScale(this.AvatarRootNode.scaleX, this.AvatarRootNode.scaleY), this.MagicCircleTopSkeleton && this.MagicCircleTopSkeleton.node.setScale(this.AvatarRootNode.scaleX, this.AvatarRootNode.scaleY)
            }, t.prototype.UpdateMagicCirclePosToActor = function() {
                this.MagicCircleBottonSkeleton && this.MagicCircleBottonSkeleton.node.position != this.node.position && (this.MagicCircleBottonSkeleton.node.position = this.node.position), this.MagicCircleTopSkeleton && this.MagicCircleTopSkeleton.node.position != this.node.position && (this.MagicCircleTopSkeleton.node.position = this.node.position)
            }, t.prototype.SetMagicCircleActive = function(e) {
                this.MagicCircleBottonSkeleton && (this.MagicCircleBottonSkeleton.node.active = e), this.MagicCircleTopSkeleton && (this.MagicCircleTopSkeleton.node.active = e)
            }, t.prototype.AddBuff = function(e, t) {
                return void 0 === t && (t = 1), a(this, void 0, void 0, function() {
                    var n, o;
                    return s(this, function() {
                        if (!this.HeroData.BuffMap[e]) {
                            if (n = u.ConfigDataComponent.Instance.GetConfigById(c.BuffBase_Config, e), !(o = u.ConfigDataComponent.Instance.GetConfigById(c.BuffDescription_Config, n.DescriptionId))) return [2];
                            this.HeroData.BuffMap[e] = {
                                BuffId: e,
                                Count: 0,
                                Config: n,
                                Desc: o
                            }
                        }
                        return this.HeroData.BuffMap[e].Count += t, this.AddBuffIndicator(this.HeroData.BuffMap[e]), [2]
                    })
                })
            }, t.prototype.RemoveBuff = function(e, t) {
                if (void 0 === t && (t = 1), this.HeroData.BuffMap[e]) {
                    this.HeroData.BuffMap[e].Count -= t;
                    var n = this.HeroData.BuffMap[e];
                    this.HeroData.BuffMap[e].Count > 0 ? this.AddBuffIndicator(n) : (delete this.HeroData.BuffMap[e], this.RemoveBuffIndicator(n))
                }
            }, t.prototype.RefreshBuffIndicator = function() {
                if (!this.IsPet) {
                    var e = {},
                        t = {};
                    for (var o in this.HeroData.BuffMap) {
                        var r = this.HeroData.BuffMap[o];
                        r.Desc && (this.AddBuffIndicator(r), r.Desc.NoIcon || (e[r.BuffId] = 1), 1 == r.Desc.EffectType && (t[r.BuffId] = 1))
                    }
                    for (var o in this.BuffIconMap) e[o] || (this.RemoveBuffIcon(this.BuffIconMap[o]), delete this.BuffIconMap[o]);
                    for (var o in this.BuffEffectMap)
                        if (!t[o]) {
                            var i = u.ConfigDataComponent.Instance.GetConfigById(c.BuffBase_Config, o);
                            n.RemoveCommonBuffEffect(this.BuffEffectMap[o], i.DescriptionId), delete this.BuffEffectMap[o], delete this.BuffEffectDelayMap[o]
                        } this.HeroData.SpEffectMap[2] ? this.AvatarOpacity = 120 : this.AvatarOpacity = 255
                }
            }, t.prototype.AddBuffIndicator = function(e) {
                var t, n;
                if (e.Desc && !e.Desc.NoIcon)
                    if (this.BuffIconMap[e.BuffId]) this.BuffIconMap[e.BuffId].Label.string = e.Count.toString();
                    else {
                        var o = I.BattleData.BuffAtlas.getSpriteFrame(e.Desc.Id.toString());
                        if (o) {
                            var r = I.BattleData.GetBuffIcon().getComponent(m.default);
                            this.HeroData.UseBossHUD ? (r.node.parent = this.BattleField.BossHUDBuffContainerNode, r.Icon.node.scale = 50 / 70) : (r.node.parent = this.BuffContainerNode, r.Icon.node.scale = 30 / 70), r.node.active = !0, r.node.scale = 0, r.Icon.spriteFrame = o, r.Label.string = e.Count.toString(), this.BuffIconMap[e.BuffId] = r, this.BattleField.ViewPort.TweenManager.Tween(r.node).Delay(.1).To(.35, {
                                scale: 1
                            }, {
                                Easing: cc.easeOut(3)
                            }).Start()
                        }
                    } if (1 == e.Desc.EffectType && !this.BuffEffectMap[e.BuffId]) {
                    var i = e.Desc.Id,
                        a = I.BattleData.GetCommonBuffEffect(i);
                    if (a) {
                        var s = a.getComponent(sp.Skeleton);
                        switch (this.BuffEffectMap[e.BuffId] = s, e.Desc.EffectPosition == p.BuffEffectPositionType.Dead ? a.parent = this.EffectRootDead : e.Desc.ZIndex > 0 ? a.parent = this.EffectRootOuter : a.parent = this.EffectRootInner, a.zIndex = e.Desc.ZIndex, e.Desc.EffectPosition) {
                            case p.BuffEffectPositionType.Head:
                                a.y = (null === (t = this.HeroData.HeroConfig) || void 0 === t ? void 0 : t.HUDOffsetY) || 0;
                                break;
                            case p.BuffEffectPositionType.Foot:
                                a.y = 0;
                                break;
                            case p.BuffEffectPositionType.Body:
                                a.y = Math.floor((null === (n = this.HeroData.HeroConfig) || void 0 === n ? void 0 : n.HUDOffsetY) / 2 || 0)
                        }
                        var l = 1;
                        this.HeroData.HeroConfig && (l += this.HeroData.HeroConfig.EffectScale), a.scale = l, a.active = !0, s.clearTracks(), s.setToSetupPose(), e.Desc.EffectDealy > 0 && (this.BuffEffectDelayMap[e.BuffId] = e.Desc.EffectDealy)
                    }
                }
            }, t.prototype.RemoveBuffIndicator = function(e) {
                var t = this;
                if (e.Desc && !e.Desc.NoIcon && this.BuffIconMap[e.BuffId]) {
                    var o = this.BuffIconMap[e.BuffId];
                    delete this.BuffIconMap[e.BuffId], this.BattleField.ViewPort.TweenManager.Tween(o.node).To(.05, {
                        scale: 0
                    }, {
                        Easing: cc.easeOut(3)
                    }).Call(function() {
                        t.RemoveBuffIcon(o)
                    }).Start()
                }
                1 == e.Desc.EffectType && this.BuffEffectMap[e.BuffId] && (n.RemoveCommonBuffEffect(this.BuffEffectMap[e.BuffId], e.Desc.Id), delete this.BuffEffectMap[e.BuffId])
            }, t.prototype.RemoveBuffIcon = function(e) {
                e && e.node && (this.BattleField.ViewPort.TweenManager.ClearTargetTweens(e.node), e.node.active = !1, e.Icon.spriteFrame = null, I.BattleData.PutBuffIcon(e.node))
            }, t.RemoveCommonBuffEffect = function(e, t) {
                e && e.node && (e.clearTracks(), e.node.active = !1, I.BattleData.PutCommonBuffEffect(e.node, t))
            }, t.prototype.SetHPBar = function(e) {
                if (e != this._TargetHPBarRatio) {
                    var t = this;
                    this.BattleField.ViewPort.TweenManager.ClearTargetTweens(this.HPBarNode);
                    var o = n.HPBarFullSize.width * e,
                        r = this._TargetHPBarRatio,
                        i = this.BattleField.ViewPort.TweenManager.Tween(this.HPBarNode).OnEnd(function() {
                            t.GetActiveHpBar(e).width = o, t.HPWhiteNode.width = o, t.BattleField.ViewPort.SetHeroSlotHp(t.HeroData.HeroInfo.Id, e), t._TargetHPBarRatio = e
                        });
                    e > this._TargetHPBarRatio ? i.CustomChange(n.HPBarSpeed, function(o) {
                        var i = r + (e - r) * o,
                            a = n.HPBarFullSize.width * i;
                        t.GetActiveHpBar(i).width = a, t.HPWhiteNode.width = a, t.BattleField.ViewPort.SetHeroSlotHp(t.HeroData.HeroInfo.Id, i)
                    }) : (t.GetActiveHpBar(e).width = o, t.BattleField.ViewPort.SetHeroSlotHp(t.HeroData.HeroInfo.Id, e), i.CustomChange(n.HPBarSpeed, function(o) {
                        var i = r + (e - r) * o,
                            a = n.HPBarFullSize.width * i;
                        t.HPWhiteNode.width = a, t.BattleField.ViewPort.SetHeroSlotWhiteBar(t.HeroData.HeroInfo.Id, i)
                    })), i.Start()
                }
            }, t.prototype.SetHPBarNoAnimation = function() {
                if (!this.IsPet)
                    if (this.HeroData.UseBossHUD) this.BattleField.IsShowRemainBossHp ? this.BattleField.SetBossRemainHPBarNoAnimation(this.HeroData.HpMax, this.HeroData.Hp) : this.BattleField.SetBossHPBarNoAnimation(this.HeroData.HpMax - this.HeroData.Hp);
                    else {
                        var e = this.HeroData.Hp / this.HeroData.HpMax;
                        this._TargetHPBarRatio = Math.max(0, Math.min(1, e));
                        var t = n.HPBarFullSize.width * this._TargetHPBarRatio;
                        this.GetActiveHpBar(e).width = t, this.HPWhiteNode.width = t, this.BattleField.ViewPort.SetHeroSlotHp(this.HeroData.HeroInfo.Id, e), this.SetHpBarBlock()
                    }
            }, t.prototype.SetPetMpBarNoAnimation = function() {
                if (!this.IsPet && this.HeroData.HeroInfo.PetId) {
                    var e = Math.max(0, Math.min(this.HeroData.Mp / this.HeroData.MpMax));
                    this.BattleField.ViewPort.SetHeroSlotPetMpBar(this.HeroData.HeroInfo.Id, e)
                }
            }, t.prototype.SetHpBarBlock = function() {
                if (!this.HeroData.UseBossHUD) {
                    var e = this.HeroData.BlockedHpMax;
                    e || (e = this.HeroData.HpMax);
                    var t = (this.HeroData.HpMax - e) / this.HeroData.HpMax;
                    t = Math.max(0, Math.min(1, t));
                    var o = n.HPBarFullSize.width * t;
                    this.HPGrayNode.width = o, this.BattleField.ViewPort.SetHeroSlotGrayBar(this.HeroData.HeroInfo.Id, t)
                }
            }, t.prototype.GetActiveHpBar = function(e) {
                return e > n.YellowThreshold ? (this.HPGreenNode.active = !0, this.HPYellowNode.active = !1, this.HPRedNode.active = !1, this.HPMaskNode) : e > n.RedThreshold ? (this.HPGreenNode.active = !1, this.HPYellowNode.active = !0, this.HPRedNode.active = !1, this.HPMaskNode) : (this.HPGreenNode.active = !1, this.HPYellowNode.active = !1, this.HPRedNode.active = !0, this.HPMaskNode)
            }, t.prototype.StandBy = function() {
                this.node.setPosition(this.StandByPosition.x, this.StandByPosition.y, 0), this.SetAvatarOrientation(this.HeroData.Camp), this.PlayAction(p.SkillAnimationType.Standby)
            }, t.prototype.StandByJC = function() {
                this.node.setPosition(this.StandByPosition.x, this.StandByPosition.y, 0), this.SetAvatarOrientation(this.HeroData.Camp), this.PlayAction(p.SkillAnimationType.Standby_JC)
            }, t.prototype.Die = function() {
                var e = this;
                this.HeroData.IsDead = !0, this.BattleField.ViewPort.TweenManager.ClearTargetTweens(this.AvatarRootNode);
                var t = this;
                this.BattleField.ViewPort.TweenManager.Tween(this.AvatarRootNode).OnEnd(function() {
                    t.NormalRootNode.opacity = 255, t.NormalRootNode.active = !1, t.AvatarRootNode.opacity = 255, t.BattleField.ViewPort.DealWithActorDead(e.HeroData.HeroInfo.Id)
                }).To(.5, {
                    opacity: 0
                }, {
                    Easing: cc.easeIn(2)
                }).To(.15, {
                    opacity: 230
                }, {
                    Easing: cc.easeOut(2)
                }).To(.15, {
                    opacity: 0
                }, {
                    Easing: cc.easeIn(2)
                }).To(.1, {
                    opacity: 200
                }, {
                    Easing: cc.easeOut(2)
                }).To(.1, {
                    opacity: 0
                }, {
                    Easing: cc.easeIn(2)
                }).Start(), this.SetMagicCircleActive(!1)
            }, t.prototype.Revive = function() {
                this.IsPet ? (this.HUDRootNode.active = !1, this.BattleField.ViewPort.TweenManager.ClearTargetTweens(this.AvatarRootNode)) : this.HUDRootNode.active = !this.HeroData.UseBossHUD, this.SetHPBarNoAnimation(), this.BattleField.ViewPort.TweenManager.ClearTargetTweens(this.NormalRootNode), this.NormalRootNode.active = !0;
                var e = this;
                e.BattleField.ViewPort.DealWithActorRevive(this.HeroData.HeroInfo.Id), this.BattleField.ViewPort.TweenManager.Tween(this.NormalRootNode).OnEnd(function() {
                    e.StandBy()
                }).Delay(.35).To(.15, {
                    opacity: 255
                }).Start(), this.SetMagicCircleActive(!0)
            }, t.prototype.PlayAction = function(e) {
                var t;
                t = this._curAvatar > 0 ? String.fromCharCode(65 + this._curAvatar) + "_" + e : e, this.HeroData.Camp == p.CampType.Defender && (t = "rev_" + t), this._NewAnimation = t
            }, t.prototype.PerformHurtAnimation = function() {
                if (this.AvatarSkeleton) {
                    this.BattleField.ViewPort.TweenManager.ClearTargetTweens(this.node);
                    var e = this;
                    this.PlayAction(p.SkillAnimationType.Hurt), this.BattleField.ViewPort.TweenManager.Tween(this.node).Delay(.2).OnEnd(function() {
                        e.PlayAction(p.SkillAnimationType.Standby)
                    }).Start()
                }
            }, t.prototype.UnloadAllBuffIndicators = function() {
                var e = this.BuffIconMap;
                if (this.BuffIconMap = {}, e)
                    for (var t in e) e[t] && this.RemoveBuffIcon(e[t]);
                var o = this.BuffEffectMap;
                if (this.BuffEffectMap = {}, this.BuffEffectDelayMap = {}, o)
                    for (var t in o)
                        if (o[t]) {
                            var r = u.ConfigDataComponent.Instance.GetConfigById(c.BuffBase_Config, t);
                            n.RemoveCommonBuffEffect(o[t], r.DescriptionId)
                        }
            }, t.prototype.ShowFloatNumber = function(e, t) {
                void 0 === t && (t = 0);
                var n = _.default.GetNumberText(e, t);
                e == C.FloatNumberType.Dodge || e == C.FloatNumberType.Absorb ? this._PendingFloatHealing.push(n) : this._PendingFloatDamage.push(n)
            }, t.prototype.ShowFloatBuff = function(e) {
                if (e) {
                    var t = e && !e.NoIcon ? I.BattleData.BuffAtlas.getSpriteFrame(e.Id.toString()) : null,
                        n = _.default.GetBuffText(t, e.Id.ToBuffEffectName(), e.FloatTextColor);
                    this._PendingFloatStatus.push(n)
                }
            }, t.prototype.DealWithHP = function(e) {
                var t = this.HeroData.Hp,
                    n = Math.min(this.HeroData.HpMax, Math.max(0, t + e));
                if (this.HeroData.Hp = n, this.HeroData.UseBossHUD) this.BattleField.IsShowRemainBossHp ? this.BattleField.SetBossRemainHPBar(this.HeroData.HpMax, this.HeroData.Hp) : this.BattleField.SetBossHPBar(this.HeroData.HpMax - this.HeroData.Hp);
                else {
                    var o = n / this.HeroData.HpMax;
                    this.SetHPBar(o)
                }
            }, t.prototype.SwitchToSpecialAvatar = function(e) {
                var t = this._DefaultSkinId;
                this._NewSkinName = e ? "skin" + t + "_" + (e + 1) : "skin" + t
            }, t.prototype.SwitchToDefaultAvatar = function() {
                this._NewSkinName = "skin" + this._DefaultSkinId
            }, t.prototype.UpdateShowAvatar = function() {
                this.AvatarSkeleton && this._NewSkinName && (this.AvatarSkeleton.setSkin(this._NewSkinName), this._NewSkinName = null)
            }, t.prototype.GetDefaultSkinId = function() {
                if (this.HeroData && this.HeroData.HeroConfig && this.HeroData.HeroConfig.StarShape && this.HeroData.HeroConfig.StarShape.length > 0 && this.HeroData.HeroInfo)
                    for (var e = this.HeroData.HeroConfig.StarShape.length - 1; e >= 0; e--) {
                        var t = this.HeroData.HeroConfig.StarShape[e];
                        if (this.HeroData.HeroInfo.StarLevel >= t) return e + 2
                    }
                return 1
            }, t.prototype.DealWithElementShield = function(e, t) {
                this.BattleField.ChangeElementShieldValue(this.HeroData.HeroInfo.Id, e, t)
            }, Object.defineProperty(t.prototype, "CurAvatar", {
                get: function() {
                    return this._curAvatar
                },
                set: function(e) {
                    this._curAvatar = e
                },
                enumerable: !1,
                configurable: !0
            }), t.ElementSpriteFrameNames = ["element_all", "element_heart", "element_power", "element_tech", "element_break", "element_fight", "element_chaos"], t.GapBetweenAvatarAndHUD = 15, t.YellowThreshold = .6, t.RedThreshold = .3, t.HPBarSpeed = .25, t.HPBarReduceDelay = .675, t.ShowFloatTextCd = .25, t.PlayReviveCdAfterDie = .5, n = i([b], t)
        }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareBattle/BattleHelper": "BattleHelper",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/HeroSkillSound": "HeroSkillSound",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./BattleData": "BattleData",
        "./Misc/BattleBuffIcon": "BattleBuffIcon",
        "./Misc/BattleFloatText": "BattleFloatText"
    }],
    BattleArrowComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ae4e1Y/SLFBAaaME45vxq6N", "BattleArrowComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._arrowIconHeight = 22, t.Arrow1 = null, t.Arrow2 = null, t
                }
                return r(t, e), t.prototype.onDisable = function() {
                    cc.Tween.stopAllByTarget(this.Arrow1.node), cc.Tween.stopAllByTarget(this.Arrow2.node)
                }, t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = 22), this.node.height = e, this.Arrow1.spriteFrame = t, this.Arrow2.spriteFrame = t;
                    var o = Math.ceil(e / this._arrowIconHeight) * this._arrowIconHeight;
                    this.node.children.forEach(function(e) {
                        e.height = o
                    }), this.Arrow1.node.y = 0, this.Arrow2.node.y = -o;
                    var r = o / n,
                        i = cc.tween(this.Arrow1.node).by(r, {
                            y: o
                        }).to(0, {
                            y: -o
                        }).by(r, {
                            y: o
                        }),
                        a = cc.tween(this.Arrow2.node).by(r, {
                            y: o
                        }).by(r, {
                            y: o
                        }).to(0, {
                            y: -o
                        });
                    cc.tween(this.Arrow1.node).repeatForever(i).start(), cc.tween(this.Arrow2.node).repeatForever(a).start()
                }, i([l(cc.Sprite)], t.prototype, "Arrow1", void 0), i([l(cc.Sprite)], t.prototype, "Arrow2", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    BattleBuffCommonEffectSkeleton: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "afa29lMnZ9KeqkXmtVHraQC", "BattleBuffCommonEffectSkeleton");
        var o = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            r = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            i = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = cc._decorator,
            c = l.ccclass,
            u = (l.property, function() {
                function e() {}
                var t;
                return t = e, e.Reserve = function(e, n) {
                    return r(this, void 0, void 0, function() {
                        var o, r, l, c, u, p, d;
                        return i(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return t.poolStorage.has(e) ? [3, 2] : (o = t.prefabPathName1 + e.toString() + t.prefabPathName2, [4, a.AssetsManager.Instance.LoadAsset(o)]);
                                case 1:
                                    (r = i.sent()) || s.EZLog.Error("ok in BattleBuffCommonEffectSkeleton. loading " + o + " failed."), t.poolStorage.set(e, {
                                        prefabAsset: r,
                                        pool: new cc.NodePool
                                    }), i.label = 2;
                                case 2:
                                    l = t.poolStorage.get(e), c = l.pool, u = n - c.size(), p = 0, i.label = 3;
                                case 3:
                                    return p < u ? [4, t.InstantiateSkillSkeleton(l.prefabAsset)] : [3, 6];
                                case 4:
                                    d = i.sent(), c.put(d), i.label = 5;
                                case 5:
                                    return ++p, [3, 3];
                                case 6:
                                    return [2]
                            }
                        })
                    })
                }, e.Get = function(e) {
                    return r(this, void 0, void 0, function() {
                        var n, o, r, l;
                        return i(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return t.poolStorage.has(e) ? (n = t.poolStorage.get(e), (o = n.pool).size() > 0 ? [2, o.get()] : [3, 1]) : [3, 4];
                                case 1:
                                    return [4, t.InstantiateSkillSkeleton(n.prefabAsset)];
                                case 2:
                                    return [2, i.sent()];
                                case 3:
                                    return [3, 7];
                                case 4:
                                    return r = t.prefabPathName1 + e.toString() + t.prefabPathName2, [4, a.AssetsManager.Instance.LoadAsset(r)];
                                case 5:
                                    return (l = i.sent()) || s.EZLog.Error("ok in BattleBuffCommonEffectSkeleton. loading " + r + " failed."), t.poolStorage.set(e, {
                                        prefabAsset: l,
                                        pool: new cc.NodePool
                                    }), [4, t.InstantiateSkillSkeleton(l)];
                                case 6:
                                    return [2, i.sent()];
                                case 7:
                                    return [2]
                            }
                        })
                    })
                }, e.Put = function(e, n) {
                    t.poolStorage.get(e).pool.put(n)
                }, e.InstantiateSkillSkeleton = function(e) {
                    return r(this, void 0, void 0, function() {
                        return i(this, function() {
                            return [2, cc.instantiate(e)]
                        })
                    })
                }, e.UnLoadAll = function() {
                    t.poolStorage.forEach(function(e) {
                        e.pool.clear(), a.AssetsManager.Instance.UnloadAsset(e.prefabAsset)
                    }), t.poolStorage.clear()
                }, e.UnLoad = function(e) {
                    if (t.poolStorage.has(e)) {
                        var n = t.poolStorage.get(e);
                        n.pool.clear(), a.AssetsManager.Instance.UnloadAsset(n.prefabAsset), t.poolStorage.delete(e)
                    }
                }, e.classNameString = "BattleBuffCommonEffectSkeleton", e.prefabPathName1 = "BattleGeneralEffect/", e.prefabPathName2 = "/BuffEffect", e.poolStorage = new Map, t = o([c], e)
            }());
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    BattleBuffIcon: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "42ff4spMlNERr1jVl4zVlP9", "BattleBuffIcon");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Label = null, t
                }
                return r(t, e), i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([l(cc.Label)], t.prototype, "Label", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    BattleConsts: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e9f47qsTudOa6g32QoznH2X", "BattleConsts"), Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.SkillAnimationType = n.BuffEffectPositionType = n.QualityStrengthType = n.ChangeType = n.DamageElementType = n.BuffEffectType = n.SpecialAttrId = n.BuffParamType = n.BuffTagType = n.BuffTriggerConditionType = n.BuffTriggerWorkConditionType = n.BuffStartWorkConditionType = n.EffectWorkConditionType = n.SkillExtraParamType = n.SkillAttackType = n.SkillEffectType = n.SkillTargetSortType = n.SkillTargetType = n.SkillScreenEffectType = n.SkillEffectRefrence = n.SkillTargetRefrence = n.CommonBuffDescriptionId = n.BattleReportHitPointEventType = n.BattleReportDataType = n.BattleResult = n.CampType = n.SkillEventType = n.SkillType = n.FormationIdType = n.FormationType = n.BattleType = void 0,
            function(e) {
                e[e.TeamMatch = 1] = "TeamMatch", e[e.RelayRace = 2] = "RelayRace", e[e.ScoreTeamMatch = 3] = "ScoreTeamMatch"
            }(n.BattleType || (n.BattleType = {})),
            function(e) {
                e[e.EndlessAbyssSingle = 901] = "EndlessAbyssSingle"
            }(n.FormationType || (n.FormationType = {}));
        var o = function() {
            function e() {}
            return e.MainLine = 1, e.ArenaAttack = 2, e.ArenaDefense = 3, e.SecretArea = 6, e.EnelessAbyssMulti = 7, e.LadderRaceDefense = 10, e.EnelessAbyssSingle1 = 101, e.EnelessAbyssSingle2 = 102, e.EnelessAbyssSingle3 = 103, e.AncientSacred1 = 121, e.AncientSacred2 = 122, e.SaintsWar1 = 123, e.SaintsWar2 = 124, e.SaintsWar3 = 125, e.AllianceTest1 = 131, e.AllianceTest2 = 132, e.AllianceTest3 = 133, e.TowerHeart = 141, e.TowerPower = 142, e.TowerTech = 143, e.TowerBreak = 144, e.TowerFight = 145, e.SeniorArenaAttack1 = 151, e.SeniorArenaAttack2 = 152, e.SeniorArenaAttack3 = 153, e.SeniorArenaDefense1 = 161, e.SeniorArenaDefense2 = 162, e.SeniorArenaDefense3 = 163, e.SecretAreaReward = 171, e.MoonTemple = 181, e.CrossZoneRankAttack1 = 191, e.CrossZoneRankAttack2 = 192, e.CrossZoneRankAttack3 = 193, e.AllianceChallengeAttack1 = 201, e.AllianceChallengeAttack2 = 202, e.AllianceChallengeDefend1 = 203, e.AllianceChallengeDefend2 = 204, e.CrossZoneContinueWarRankAttack1 = 211, e.CrossZoneContinueWarRankAttack2 = 212, e.CrossZoneContinueWarRankAttack3 = 213, e.CrossZoneContinueWarRankAttack4 = 214, e.CrossZoneContinueWarRankAttack5 = 215, e.ChampionShip1 = 220, e.ChampionShip2 = 221, e.ChampionShip3 = 222, e.AllZoneChampion1 = 223, e.AllZoneChampion2 = 224, e.AllZoneChampion3 = 225, e.War1 = 231, e.War2 = 232, e.War3 = 233, e.War4 = 234, e.War5 = 235, e.RankMatch1 = 250, e.RankMatch2 = 251, e.RankMatch3 = 252, e.TestTowerHard1 = 260, e.TestTowerHard2 = 261, e.TestTowerHard3 = 262, e.ElementTestHeart = 1001, e.ElementTestPower = 1002, e.ElementTestTech = 1003, e.ElementTestBreak = 1004, e.ElementTestFight = 1005, e.HeroDungeon = 1006, e.HeroDungeon2 = 1007, e.HeroDungeon3 = 1008, e.HeroDungeon4 = 1009, e.HeroDungeon5 = 1010, e.HeroDungeon6 = 1011, e.HeroDungeon7 = 1012, e.HeroDungeon8 = 1013, e.HeroDungeon9 = 1014, e.Story = 1015, e.ActivitySecret = 1020, e.ActivitySecret1 = 1021, e.ActivitySecret2 = 1022, e.ActivitySecret3 = 1023, e.ActivitySecret4 = 1024, e.ActivitySecret5 = 1025, e.WorldBossZone = 1031, e.WorldBossCrossZone = 1032, e.WorldBossAlliance = 1033, e.ActivityBoss = 1034, e.ActivityBoss2 = 1035, e.ActivityBoss3 = 1036, e.ActivityBossSecond = 1037, e.ActivityBossSecond2 = 1038, e.ActivityBossSecond3 = 1039, e.ActivitySecretUser1 = 1041, e.ActivitySecretUser2 = 1042, e.ActivitySecretUser3 = 1043, e.ActivityElementArena = 1061, e.ActHeroPK1 = 1071, e.ActHeroPK2 = 1072, e.ActHeroPK3 = 1073, e.ActChampion11 = 1074, e.ActChampion31 = 1075, e.ActChampion32 = 1076, e.ActChampion33 = 1077, e.ActChampion12 = 1078, e.ActChampion34 = 1079, e.ActChampion35 = 1080, e.ActChampion36 = 1081, e.ActChampionship1 = 1091, e.ActChampionship2 = 1092, e.ActChampionship3 = 1093, e.ActChampionship4 = 1094, e.ActChampionship5 = 1095, e.ActChampionship6 = 1096, e.ActChampionship7 = 1097, e.ActBreakou1 = 1101, e.ActBreakou2 = 1102, e.ActBreakou3 = 1103, e.ActBreakou4 = 1104, e.ActBreakou5 = 1105, e.ActBreakou6 = 1106, e.ActBreakou7 = 1107, e.NoviceTraining = 1111, e.BossHunt = 1112, e.SingleAngelStart = 1e5, e.StarLightSecretLand1 = 100001, e.StarLightSecretLand2 = 100002, e.StarLightSecretLand3 = 100003, e.GodLandDuel1 = 100011, e.GodLandDuel2 = 100012, e.GodLandDuel3 = 100013, e.MultipleAngelsStart = 2e5, e.WarAngel = 200001, e.TypeGroupMap = {
                2: 10001,
                3: 10001
            }, e
        }();
        n.FormationIdType = o,
            function(e) {
                e[e.NormalAttack = 1] = "NormalAttack", e[e.BurstAttack = 2] = "BurstAttack", e[e.Passive = 3] = "Passive", e[e.Core = 4] = "Core", e[e.Pet = 5] = "Pet", e[e.Angel = 6] = "Angel", e[e.UR = 7] = "UR", e[e.Element = 8] = "Element", e[e.LR = 9] = "LR", e[e.MagicCircle = 10] = "MagicCircle"
            }(n.SkillType || (n.SkillType = {})),
            function(e) {
                e[e.PlayAction = 1] = "PlayAction", e[e.BattleEffect = 2] = "BattleEffect", e[e.MoveTo = 3] = "MoveTo", e[e.MoveBack = 4] = "MoveBack", e[e.PlaySound = 5] = "PlaySound", e[e.HitPoint = 6] = "HitPoint", e[e.Bullet = 7] = "Bullet", e[e.WeaponEffect = 8] = "WeaponEffect", e[e.ScreenEffect = 9] = "ScreenEffect", e[e.EndEvent = 99] = "EndEvent"
            }(n.SkillEventType || (n.SkillEventType = {})),
            function(e) {
                e[e.Attacker = 1] = "Attacker", e[e.Defender = -1] = "Defender"
            }(n.CampType || (n.CampType = {})),
            function(e) {
                e[e.Process = 1] = "Process", e[e.AttackerWin = 2] = "AttackerWin", e[e.DefenderWin = 3] = "DefenderWin", e[e.Timeout = 4] = "Timeout"
            }(n.BattleResult || (n.BattleResult = {})),
            function(e) {
                e[e.NewRound = 1] = "NewRound", e[e.HeroAction = 2] = "HeroAction", e[e.RoundEnd = 3] = "RoundEnd", e[e.BattleResult = 99] = "BattleResult"
            }(n.BattleReportDataType || (n.BattleReportDataType = {})),
            function(e) {
                e[e.Damage = 1] = "Damage", e[e.AdvanceDamage = 2] = "AdvanceDamage", e[e.Crit = 3] = "Crit", e[e.ShieldDamage = 4] = "ShieldDamage", e[e.Cure = 5] = "Cure", e[e.Dodge = 6] = "Dodge", e[e.Revive = 7] = "Revive", e[e.ShareDamage = 8] = "ShareDamage", e[e.PlayEffect = 11] = "PlayEffect", e[e.ExtraDamage = 21] = "ExtraDamage", e[e.ExtraCure = 22] = "ExtraCure", e[e.FloatWord = 23] = "FloatWord", e[e.PlayCommonEffect = 24] = "PlayCommonEffect", e[e.AddBuff = 25] = "AddBuff", e[e.RemoveBuff = 26] = "RemoveBuff", e[e.Die = 27] = "Die", e[e.ShieldSpDamage = 28] = "ShieldSpDamage", e[e.SwitchBattleSkin = 29] = "SwitchBattleSkin", e[e.ElementShield = 30] = "ElementShield"
            }(n.BattleReportHitPointEventType || (n.BattleReportHitPointEventType = {})),
            function(e) {
                e[e.LookBack = 34401] = "LookBack"
            }(n.CommonBuffDescriptionId || (n.CommonBuffDescriptionId = {})),
            function(e) {
                e[e.Target = 2] = "Target", e[e.TargetTeam = 3] = "TargetTeam", e[e.TargetRow = 4] = "TargetRow", e[e.TargetCol = 5] = "TargetCol"
            }(n.SkillTargetRefrence || (n.SkillTargetRefrence = {})),
            function(e) {
                e[e.Attacker = 1] = "Attacker", e[e.BattleFiled = 2] = "BattleFiled", e[e.Target = 3] = "Target", e[e.TargetTeam = 4] = "TargetTeam", e[e.MultiRowCenter = 5] = "MultiRowCenter"
            }(n.SkillEffectRefrence || (n.SkillEffectRefrence = {})),
            function(e) {
                e.DarkScreen = "dark_screen", e.ShockScreen = "shock_screen"
            }(n.SkillScreenEffectType || (n.SkillScreenEffectType = {})),
            function(e) {
                e[e.Me = 1] = "Me", e[e.Target = 2] = "Target", e[e.SkillTarget = 3] = "SkillTarget", e[e.ExceptSkillTarget = 4] = "ExceptSkillTarget", e[e.Team = 5] = "Team", e[e.SkillTargetNeighbor = 6] = "SkillTargetNeighbor", e[e.Trigger = 7] = "Trigger", e[e.Monitor = 8] = "Monitor", e[e.All = 11] = "All", e[e.ExcludeMe = 12] = "ExcludeMe", e[e.DeadHero = 13] = "DeadHero", e[e.IncludeDead = 14] = "IncludeDead", e[e.Neighbor = 15] = "Neighbor", e[e.FrontRowSingle = 21] = "FrontRowSingle", e[e.FrontRow = 22] = "FrontRow", e[e.FrontMiddleRow = 23] = "FrontMiddleRow", e[e.BackRow = 24] = "BackRow", e[e.BackMiddleRow = 25] = "BackMiddleRow", e[e.OppositeCol = 26] = "OppositeCol", e[e.CrowdCol = 27] = "CrowdCol", e[e.FrontRow2 = 31] = "FrontRow2", e[e.MiddleRow2 = 32] = "MiddleRow2", e[e.BackRow2 = 33] = "BackRow2", e[e.FrontMiddleRow2 = 34] = "FrontMiddleRow2", e[e.BackMiddleRow2 = 35] = "BackMiddleRow2"
            }(n.SkillTargetType || (n.SkillTargetType = {})),
            function(e) {
                e[e.Random = 1] = "Random", e[e.Attack = 2] = "Attack", e[e.HpPercent = 3] = "HpPercent", e[e.CareerType = 4] = "CareerType", e[e.BuffTag = 6] = "BuffTag", e[e.Speed = 7] = "Speed", e[e.BuffNum = 8] = "BuffNum", e[e.SumDamageMax = 9] = "SumDamageMax", e[e.Attrs = 10] = "Attrs", e[e.IsDead = 11] = "IsDead"
            }(n.SkillTargetSortType || (n.SkillTargetSortType = {})),
            function(e) {
                e[e.PhysicAttack = 1] = "PhysicAttack", e[e.MagicAttack = 2] = "MagicAttack", e[e.Attack = 3] = "Attack", e[e.Cure = 4] = "Cure", e[e.Revive = 5] = "Revive"
            }(n.SkillEffectType || (n.SkillEffectType = {})),
            function(e) {
                e[e.Round = 1] = "Round", e[e.Additional = 2] = "Additional", e[e.AttackBack = 3] = "AttackBack", e[e.DoubleAttack = 4] = "DoubleAttack", e[e.CoreAttack = 5] = "CoreAttack"
            }(n.SkillAttackType || (n.SkillAttackType = {})),
            function(e) {
                e[e.IgnoreControl = 1] = "IgnoreControl", e[e.FirstAction = 2] = "FirstAction", e[e.DelayPerform = 3] = "DelayPerform"
            }(n.SkillExtraParamType || (n.SkillExtraParamType = {})),
            function(e) {
                e[e.HasTag = 1] = "HasTag", e[e.CampFirstAction = 2] = "CampFirstAction", e[e.BuffLayer = 3] = "BuffLayer", e[e.TagCount = 4] = "TagCount", e[e.HpPercent = 5] = "HpPercent", e[e.Field = 101] = "Field"
            }(n.EffectWorkConditionType || (n.EffectWorkConditionType = {})),
            function(e) {
                e[e.ElementType = 1] = "ElementType", e[e.HpPercent = 2] = "HpPercent", e[e.TagCount = 3] = "TagCount", e[e.CareerType = 5] = "CareerType", e[e.IsDead = 6] = "IsDead", e[e.TargetSpeed = 7] = "TargetSpeed", e[e.MemberElementCount = 8] = "MemberElementCount", e[e.PossessionTargetElementType = 9] = "PossessionTargetElementType", e[e.CureOverflow = 10] = "CureOverflow", e[e.SameCamp = 11] = "SameCamp"
            }(n.BuffStartWorkConditionType || (n.BuffStartWorkConditionType = {})),
            function(e) {
                e[e.TriggerBuffTag = 1] = "TriggerBuffTag", e[e.TargetBuffTag = 2] = "TargetBuffTag", e[e.TriggerSkillEffectType = 3] = "TriggerSkillEffectType", e[e.TriggerSkillAttackType = 4] = "TriggerSkillAttackType", e[e.TriggerIsDead = 5] = "TriggerIsDead", e[e.TargetIsDead = 6] = "TargetIsDead", e[e.TargetQuicklyThanTrigger = 7] = "TargetQuicklyThanTrigger", e[e.TriggerHpPercent = 8] = "TriggerHpPercent", e[e.TriggerSkillType = 9] = "TriggerSkillType", e[e.TriggerHurtPercent = 10] = "TriggerHurtPercent", e[e.TargetCampSpecialHurt = 11] = "TargetCampSpecialHurt", e[e.TriggerCareerType = 12] = "TriggerCareerType", e[e.TargetCareerType = 13] = "TargetCareerType", e[e.TriggerElementType = 14] = "TriggerElementType", e[e.TargetElementType = 15] = "TargetElementType", e[e.HaveDeadHeros = 16] = "HaveDeadHeros", e[e.TeamHpPercent = 17] = "TeamHpPercent", e[e.TriggerAndTargetSameCamp = 18] = "TriggerAndTargetSameCamp", e[e.TriggerCampControlNum = 19] = "TriggerCampControlNum", e[e.TargetBuffHasTag = 20] = "TargetBuffHasTag", e[e.TriggerBuffHasTag = 21] = "TriggerBuffHasTag", e[e.HeroAttrMeetsRequirement = 22] = "HeroAttrMeetsRequirement", e[e.HeroAttrCampSort = 23] = "HeroAttrCampSort", e[e.MonitorHeroRelationship = 24] = "MonitorHeroRelationship", e[e.HeroIsDead = 25] = "HeroIsDead", e[e.CampNotDeadCount = 26] = "CampNotDeadCount", e[e.TriggerBuffEffect = 27] = "TriggerBuffEffect", e[e.HeroBuffTag = 28] = "HeroBuffTag", e[e.SkillField = 29] = "SkillField", e[e.HeroField = 30] = "HeroField", e[e.TwoHeroAttr = 31] = "TwoHeroAttr", e[e.HpMax = 32] = "HpMax", e[e.HeroType = 33] = "HeroType", e[e.CurrentRound = 34] = "CurrentRound", e[e.CampAttr = 35] = "CampAttr"
            }(n.BuffTriggerWorkConditionType || (n.BuffTriggerWorkConditionType = {})),
            function(e) {
                e[e.BeforeBuffExpired = 1] = "BeforeBuffExpired", e[e.BeforeBeDispeled = 2] = "BeforeBeDispeled", e[e.AfterUseSkill = 101] = "AfterUseSkill", e[e.AfterCritAttack = 102] = "AfterCritAttack", e[e.AfterPhysicHitPoint = 121] = "AfterPhysicHitPoint", e[e.AfterMagicHitPoint = 122] = "AfterMagicHitPoint", e[e.AfterSkillCure = 123] = "AfterSkillCure", e[e.AfterControlTarget = 124] = "AfterControlTarget", e[e.AfterKillTarget = 125] = "AfterKillTarget", e[e.AfterPhysicKillTarget = 126] = "AfterPhysicKillTarget", e[e.AfterMagicKillTarget = 127] = "AfterMagicKillTarget", e[e.AfterCritHitPoint = 128] = "AfterCritHitPoint", e[e.AfterAllHitPoint = 129] = "AfterAllHitPoint", e[e.AfterUseWorkCount = 140] = "AfterUseWorkCount", e[e.AfterBeAttackHitPoint = 143] = "AfterBeAttackHitPoint", e[e.AfterBeCureHitPoint = 144] = "AfterBeCureHitPoint", e[e.AfterBeCritAttack = 145] = "AfterBeCritAttack", e[e.AfterBeControl = 146] = "AfterBeControl", e[e.AfterBeSpecialHurt = 147] = "AfterBeSpecialHurt", e[e.BeforeBeSkillKilled = 148] = "BeforeBeSkillKilled", e[e.AfterBeSkillKilled = 149] = "AfterBeSkillKilled", e[e.BeforeBeKilled = 150] = "BeforeBeKilled", e[e.AfterBeKilled = 151] = "AfterBeKilled", e[e.AfterRevive = 152] = "AfterRevive", e[e.BeforeBeAttack = 153] = "BeforeBeAttack", e[e.AfterBeAttack = 154] = "AfterBeAttack", e[e.AfterBeAttackEffectType = 155] = "AfterBeAttackEffectType", e[e.AfterBeControlByTagIds = 156] = "AfterBeControlByTagIds", e[e.AfterAddBuff = 157] = "AfterAddBuff", e[e.AfterDodged = 158] = "AfterDodged", e[e.AfterAddBuffEffect = 159] = "AfterAddBuffEffect", e[e.AfterHpMaxChange = 160] = "AfterHpMaxChange", e[e.AfterLookBack = 181] = "AfterLookBack", e[e.AfterMyRoundEnd = 161] = "AfterMyRoundEnd", e[e.AfterRoundAction = 162] = "AfterRoundAction", e[e.BeforeRoundAction = 163] = "BeforeRoundAction", e[e.AfterSpeedUp = 171] = "AfterSpeedUp", e[e.AfterHpAdd = 172] = "AfterHpAdd", e[e.AfterHpReduce = 173] = "AfterHpReduce", e[e.RoundStart = 501] = "RoundStart", e[e.RoundEnd = 502] = "RoundEnd", e[e.AfterActionEnd = 503] = "AfterActionEnd"
            }(n.BuffTriggerConditionType || (n.BuffTriggerConditionType = {})),
            function(e) {
                e[e.CanNotDispel = 1] = "CanNotDispel", e[e.HoldAfterDie = 2] = "HoldAfterDie", e[e.UseControlChance = 3] = "UseControlChance", e[e.CanNotAction = 4] = "CanNotAction", e[e.BanRevive = 5] = "BanRevive", e[e.Skill2NormalAttack = 6] = "Skill2NormalAttack", e[e.BanActiveSkill = 7] = "BanActiveSkill", e[e.BanPassiveSkill = 8] = "BanPassiveSkill", e[e.BanCrit = 9] = "BanCrit", e[e.BanBeCure = 10] = "BanBeCure", e[e.Control = 13] = "Control", e[e.Target2BuffOwner = 15] = "Target2BuffOwner", e[e.Target2AnyHero = 16] = "Target2AnyHero", e[e.Target2MyHero = 17] = "Target2MyHero", e[e.DelayedDeath = 19] = "DelayedDeath", e[e.SpeedUp = 20] = "SpeedUp", e[e.Possession = 21] = "Possession", e[e.LinkType = 22] = "LinkType", e[e.CanNotBeShareDamage = 23] = "CanNotBeShareDamage", e[e.ShareDamageIgnoreControl = 24] = "ShareDamageIgnoreControl", e[e.IgnoreImmune = 25] = "IgnoreImmune", e[e.PreventHpRestoreOnDead = 26] = "PreventHpRestoreOnDead", e[e.PreventDamageImmunity = 27] = "PreventDamageImmunity"
            }(n.BuffTagType || (n.BuffTagType = {})),
            function(e) {
                e[e.AttackerAttack = 101] = "AttackerAttack", e[e.AttackerHpMax = 102] = "AttackerHpMax", e[e.TargetBlockedHpMax = 103] = "TargetBlockedHpMax", e[e.AttackerSpeedMulLevel = 104] = "AttackerSpeedMulLevel", e[e.AttackerDefense = 105] = "AttackerDefense", e[e.AttackerSpeed = 106] = "AttackerSpeed", e[e.PossessionTargetAttack = 107] = "PossessionTargetAttack", e[e.AttackerHp = 108] = "AttackerHp", e[e.AngelAttack = 109] = "AngelAttack", e[e.AttackerHurt = 110] = "AttackerHurt", e[e.TargetHpMax = 111] = "TargetHpMax", e[e.AttackerStealAttack = 112] = "AttackerStealAttack", e[e.TargetStolenAttack = 113] = "TargetStolenAttack", e[e.AttackerBaseAttack = 114] = "AttackerBaseAttack", e[e.TargetAttack = 115] = "TargetAttack", e[e.StatDamage = 116] = "StatDamage", e[e.TargetStatDamage = 117] = "TargetStatDamage", e[e.BattleParamStart = 200] = "BattleParamStart", e[e.HitPointPhysicDamage = 201] = "HitPointPhysicDamage", e[e.HitPointMagicDamage = 202] = "HitPointMagicDamage", e[e.CureOverflow = 203] = "CureOverflow", e[e.HitPointCure = 204] = "HitPointCure", e[e.HitPointDamage = 205] = "HitPointDamage", e[e.MyCampSpecialHurt = 206] = "MyCampSpecialHurt", e[e.TargetCampSpecialHurt = 207] = "TargetCampSpecialHurt", e[e.TargetHurtHpPercent = 208] = "TargetHurtHpPercent", e[e.AttackerHitPointHurt = 209] = "AttackerHitPointHurt", e[e.DefenderHitPointHurt = 210] = "DefenderHitPointHurt", e[e.HitPointCritDamage = 211] = "HitPointCritDamage", e[e.TargetLeftHp = 212] = "TargetLeftHp", e[e.TargetLossHp = 213] = "TargetLossHp", e[e.AttackerHitPointSingleHurt = 214] = "AttackerHitPointSingleHurt", e[e.HitPointSpecialDamage = 215] = "HitPointSpecialDamage", e[e.DamageOverflow = 216] = "DamageOverflow", e[e.HeroParamStart = 300] = "HeroParamStart", e[e.DecreaseHurt = 301] = "DecreaseHurt", e[e.HpCount = 302] = "HpCount", e[e.ElementShieldHp = 303] = "ElementShieldHp", e[e.QualityStrength = 304] = "QualityStrength", e[e.ContinuousUpdateStart = 1e3] = "ContinuousUpdateStart", e[e.SumHurtPercent = 1001] = "SumHurtPercent", e[e.SumHurt = 1002] = "SumHurt", e[e.SumStolenAttack = 1003] = "SumStolenAttack", e[e.SumStealAttack = 1004] = "SumStealAttack", e[e.ActionHeroId = 501] = "ActionHeroId", e[e.CurrentSkillId = 502] = "CurrentSkillId", e[e.HitPointIndex = 503] = "HitPointIndex", e[e.HitPointReport = 504] = "HitPointReport", e[e.ActualTargetCount = 505] = "ActualTargetCount", e[e.TotalPhysicDamage = 506] = "TotalPhysicDamage", e[e.TotalMagicDamage = 507] = "TotalMagicDamage", e[e.TotalSpecailHurt = 508] = "TotalSpecailHurt", e[e.TotalHurt = 509] = "TotalHurt", e[e.TotalBeCure = 510] = "TotalBeCure", e[e.TotalCureOverflow = 511] = "TotalCureOverflow", e[e.SkillCritTargets = 512] = "SkillCritTargets", e[e.SkillControlTargets = 513] = "SkillControlTargets", e[e.PhysicDamage = 514] = "PhysicDamage", e[e.MagicDamage = 515] = "MagicDamage", e[e.RemovedBuff = 516] = "RemovedBuff", e[e.RelatedHeroIds = 517] = "RelatedHeroIds", e[e.CurrentActionReport = 518] = "CurrentActionReport", e[e.SkillKillTargetCount = 519] = "SkillKillTargetCount", e[e.ExtraBeAttackTargets = 520] = "ExtraBeAttackTargets", e[e.CampTotalSpecailHurt = 521] = "CampTotalSpecailHurt", e[e.HeroHitPointHurt = 522] = "HeroHitPointHurt", e[e.PetEnergyAddedHeroIds = 523] = "PetEnergyAddedHeroIds", e[e.SkillControlTargetsByTagIds = 524] = "SkillControlTargetsByTagIds", e[e.TotalSpecailHurtTimes = 525] = "TotalSpecailHurtTimes", e[e.HeroHitPointSingleHurt = 526] = "HeroHitPointSingleHurt", e[e.TotalDamageOverflow = 527] = "TotalDamageOverflow", e[e.CurrentBuffTags = 529] = "CurrentBuffTags", e[e.AlreadyDead = 530] = "AlreadyDead", e[e.KVParamStart = 600] = "KVParamStart", e[e.ShieldHp = 601] = "ShieldHp", e[e.ShieldCount = 602] = "ShieldCount", e[e.ShieldBuffMap = 603] = "ShieldBuffMap", e[e.ShieldHpAddHp = 604] = "ShieldHpAddHp", e[e.CureAbsorb = 606] = "CureAbsorb", e[e.DelayDamage = 607] = "DelayDamage", e[e.WorkCount = 608] = "WorkCount", e[e.KVParamEnd = 609] = "KVParamEnd"
            }(n.BuffParamType || (n.BuffParamType = {})),
            function(e) {
                e[e.CurrentHp = -1] = "CurrentHp", e[e.CurrentHpRatio = -2] = "CurrentHpRatio", e[e.Hurt = -3] = "Hurt", e[e.HurtRatio = -4] = "HurtRatio", e[e.HpMax = -5] = "HpMax", e[e.BlockedHpMax = -6] = "BlockedHpMax"
            }(n.SpecialAttrId || (n.SpecialAttrId = {})),
            function(e) {
                e[e.PhysicDamage = 101] = "PhysicDamage", e[e.MagicDamage = 102] = "MagicDamage", e[e.AttackCure = 103] = "AttackCure", e[e.HpMaxCure = 104] = "HpMaxCure", e[e.AttackRealDamage = 105] = "AttackRealDamage", e[e.HpMaxRealDamage = 106] = "HpMaxRealDamage", e[e.TempAttributeBonus = 111] = "TempAttributeBonus", e[e.Revive = 112] = "Revive", e[e.DispelByTag = 113] = "DispelByTag", e[e.DispelById = 114] = "DispelById", e[e.RemoveBuffByTag = 115] = "RemoveBuffByTag", e[e.RemoveBuffById = 116] = "RemoveBuffById", e[e.ClearSkillCd = 117] = "ClearSkillCd", e[e.SpecialDamage = 118] = "SpecialDamage", e[e.SpecialCure = 119] = "SpecialCure", e[e.UseSkillById = 120] = "UseSkillById", e[e.EmitTriggerEvent = 121] = "EmitTriggerEvent", e[e.ChangeToNewBuff = 122] = "ChangeToNewBuff", e[e.TransferBuff = 123] = "TransferBuff", e[e.PlayHitpointEffect = 124] = "PlayHitpointEffect", e[e.PlayFloatWord = 125] = "PlayFloatWord", e[e.UseHitChance = 126] = "UseHitChance", e[e.RemveSelf = 127] = "RemveSelf", e[e.PlayCommonEffect = 128] = "PlayCommonEffect", e[e.AddNewBuffByTagBuffCount = 129] = "AddNewBuffByTagBuffCount", e[e.SuckBlood = 130] = "SuckBlood", e[e.RemoveBuffIdByTag = 131] = "RemoveBuffIdByTag", e[e.SwitchBattleSkin = 132] = "SwitchBattleSkin", e[e.ExtendBuffRoundByBuffIds = 133] = "ExtendBuffRoundByBuffIds", e[e.ExtendBuffRoundByBuffTags = 134] = "ExtendBuffRoundByBuffTags", e[e.AngelDamage = 135] = "AngelDamage", e[e.InstantDeath = 136] = "InstantDeath", e[e.ElementDamage = 137] = "ElementDamage", e[e.ChangeHeroBuffParam = 138] = "ChangeHeroBuffParam", e[e.ChangeHerosBuffParam = 139] = "ChangeHerosBuffParam", e[e.ChangePetCooldown = 140] = "ChangePetCooldown", e[e.MagicDamageRange = 341] = "MagicDamageRange", e[e.HpReduceDamageAddon = 342] = "HpReduceDamageAddon", e[e.HpReduceHurtReduceAddon = 343] = "HpReduceHurtReduceAddon", e[e.DreamResistControlAddon = 344] = "DreamResistControlAddon", e[e.HpReduceAttrAddon = 345] = "HpReduceAttrAddon", e[e.ImmuneByTag = 371] = "ImmuneByTag", e[e.BanByTag = 372] = "BanByTag", e[e.AddEffectAtSkillHead = 373] = "AddEffectAtSkillHead", e[e.AddEffectAtSkillTail = 374] = "AddEffectAtSkillTail", e[e.ExtendNewBuffRoundByBuffTag = 375] = "ExtendNewBuffRoundByBuffTag", e[e.CanNotDispelByTag = 376] = "CanNotDispelByTag", e[e.AdditionalAttackAddEffect = 377] = "AdditionalAttackAddEffect", e[e.ShareDamageEqually = 401] = "ShareDamageEqually", e[e.ShareDamage = 402] = "ShareDamage", e[e.Tempt = 403] = "Tempt", e[e.ChanceDamageReduce = 404] = "ChanceDamageReduce", e[e.SingleHurtLimit = 405] = "SingleHurtLimit", e[e.ReboundDamage = 406] = "ReboundDamage", e[e.ShareCure = 407] = "ShareCure", e[e.SoulLink = 408] = "SoulLink", e[e.Hide = 409] = "Hide", e[e.SpiritGunDamageReduce = 410] = "SpiritGunDamageReduce", e[e.HpRestoreOnDead = 411] = "HpRestoreOnDead", e[e.DecreaseDamage = 412] = "DecreaseDamage", e[e.DecreaseRatioDamage = 413] = "DecreaseRatioDamage", e[e.HeroSuppression = 414] = "HeroSuppression", e[e.HpShield = 501] = "HpShield", e[e.CountShield = 502] = "CountShield", e[e.BuffShield = 503] = "BuffShield", e[e.DamageImmunity = 504] = "DamageImmunity", e[e.HpShieldEnhance = 505] = "HpShieldEnhance", e[e.CureAbsorb = 506] = "CureAbsorb", e[e.ElementShield = 507] = "ElementShield", e[e.DeathHpShield = 508] = "DeathHpShield", e[e.SemiInvincibleShield = 509] = "SemiInvincibleShield", e[e.AttributeBonus = 601] = "AttributeBonus", e[e.SpecialDamageAddon = 602] = "SpecialDamageAddon", e[e.SpecialHurtAddon = 603] = "SpecialHurtAddon", e[e.BossHpAppendBuff = 604] = "BossHpAppendBuff", e[e.CompanionSpecialDamageAddon = 605] = "CompanionSpecialDamageAddon", e[e.AttackerAttributeBonus = 606] = "AttackerAttributeBonus", e[e.BlockHpMax = 607] = "BlockHpMax", e[e.SpecialDamageBlockHpMax = 608] = "SpecialDamageBlockHpMax", e[e.OwnerAttributeBonus = 609] = "OwnerAttributeBonus", e[e.ConvertDelayedDamage = 610] = "ConvertDelayedDamage", e[e.CheckAttrBonus = 611] = "CheckAttrBonus", e[e.DamageToCure = 612] = "DamageToCure", e[e.LookBack = 613] = "LookBack", e[e.UseSkillBySumHurt = 614] = "UseSkillBySumHurt", e[e.ParamBlockHpMax = 615] = "ParamBlockHpMax", e[e.BuffParamBonus = 616] = "BuffParamBonus", e[e.ParamBlockHpMaxForce = 617] = "ParamBlockHpMaxForce"
            }(n.BuffEffectType || (n.BuffEffectType = {})),
            function(e) {
                e[e.All = 0] = "All", e[e.Water = 1] = "Water", e[e.Fire = 2] = "Fire", e[e.Wind = 3] = "Wind", e[e.Light = 4] = "Light", e[e.Dark = 5] = "Dark", e[e.ChaosElement = 6] = "ChaosElement"
            }(n.DamageElementType || (n.DamageElementType = {})),
            function(e) {
                e[e.Set = 1] = "Set", e[e.Add = 2] = "Add", e[e.SetKV = 11] = "SetKV", e[e.AddKV = 12] = "AddKV"
            }(n.ChangeType || (n.ChangeType = {})),
            function(e) {
                e[e.Hero = 1] = "Hero", e[e.Angel = 2] = "Angel", e[e.Pet = 3] = "Pet", e[e.None = 4] = "None"
            }(n.QualityStrengthType || (n.QualityStrengthType = {})),
            function(e) {
                e[e.Head = 1] = "Head", e[e.Foot = 2] = "Foot", e[e.Dead = 3] = "Dead", e[e.Body = 4] = "Body"
            }(n.BuffEffectPositionType || (n.BuffEffectPositionType = {}));
        var r = function() {
            function e() {}
            return e.Standby = "standby", e.Standby_JC = "standby_jc", e.Attack = "attack", e.BurstAttack = "burstattack", e.BurstAttack2 = "burstattack2", e.BurstAttack_JC = "burstattack_jc", e.Hurt = "hurt", e.Dead = "dead", e.Move = "move", e.IdleAttack = "idle_attack", e.IdleAttackEffect = "idle_attack_effect", e.AttackEffect = "attack_effect", e.BurstAttackEffect = "burstattack_effect", e.AttackWeapon = "attack_weapon_effect", e.BurstAttackWeapon = "burstattack_weapon_effect", e.AttackBomb = "attack_bomb_effect", e.BurstAttackBomb = "burstattack_bomb_effect", e.AttackBullet = "attack_bullet_effect", e.BurstAttackBullet = "burstattack_bullet_effect", e
        }();
        n.SkillAnimationType = r, cc._RF.pop()
    }, {}],
    BattleData: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "728bf3NZ85HqL7kPqbdHGpV", "BattleData");
        var o, r, i = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            a = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.MapType2ElemengTrialType = n.MapType2TowerType = n.CloseBattleType = n.BattleData = void 0;
        var s = e("../../../EZFramework/EZFramework"),
            l = e("../../../Consts/Consts"),
            c = e("../../Components/GlobalConfigComponent"),
            u = e("../../Channel/ChannelManager"),
            p = function() {
                function e() {}
                return e.GetBattleIndex = function() {
                    return ++e._BattleIndex
                }, Object.defineProperty(e, "BattlePlaySpeed", {
                    get: function() {
                        return u.default.Instance.IsVNChannel() ? e.VNBattlePlaySpeedList[e.BattlePlaySpeedIndex] || 1 : e.BattlePlaySpeedList[e.BattlePlaySpeedIndex] || 1
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.GetMapTypeKey = function(e) {
                    return n.MapType2ElemengTrialType[e] ? l.MapType.ActivityElementHeart : e
                }, e.InitBattleAsset = function() {
                    return i(this, void 0, Promise, function() {
                        var t;
                        return a(this, function() {
                            return e.MultiLangAtlasPathName = c.GlobalConfigComponent.GetMultilangKey("Multilang/battlePlayer_MultiLang"), e._InitBattleAssetPromise || (t = null, e._InitBattleAssetPromise = new Promise(function(e) {
                                t = function() {
                                    e()
                                }
                            }), e._DoInitBattleAsset(t)), [2, e._InitBattleAssetPromise]
                        })
                    })
                }, e._DoInitBattleAsset = function(t) {
                    return i(this, void 0, void 0, function() {
                        var n, o, r, i, l, c, u, p;
                        return a(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.InitAssetPool(), n = e, [4, s.AssetsManager.Instance.LoadAsset(e.BattleActorPrefabPathName, cc.Prefab)];
                                case 1:
                                    return n.BattleActorPrefab = a.sent(), o = e, [4, s.AssetsManager.Instance.LoadAsset(e.BuffIconPrefabPathName, cc.Prefab)];
                                case 2:
                                    return o.BuffIconPrefab = a.sent(), r = e, [4, s.AssetsManager.Instance.LoadAsset(e.MultiLangAtlasPathName, cc.SpriteAtlas)];
                                case 3:
                                    return r.MultiLangAtlas = a.sent(), i = e, [4, s.AssetsManager.Instance.LoadAsset(e.MainAtlasPathName, cc.SpriteAtlas)];
                                case 4:
                                    return i.MainAtlas = a.sent(), l = e, [4, s.AssetsManager.Instance.LoadAsset(e.PlayerAtlasPathName, cc.SpriteAtlas)];
                                case 5:
                                    return l.PlayerAtlas = a.sent(), c = e, [4, s.AssetsManager.Instance.LoadAsset(e.BuffAtlasPathName, cc.SpriteAtlas)];
                                case 6:
                                    return c.BuffAtlas = a.sent(), u = e, [4, s.AssetsManager.Instance.LoadAsset(e.BattleFloatTextPrefabPathName, cc.Prefab)];
                                case 7:
                                    return u.BattleFloatTextPrefab = a.sent(), p = e, [4, s.AssetsManager.Instance.LoadAsset(e.MainAtlas2PathName, cc.SpriteAtlas)];
                                case 8:
                                    return p.MainAtlas2 = a.sent(), t(), [2]
                            }
                        })
                    })
                }, e.ResetBattleAsset = function() {
                    if (e.InitAssetPool(), s.AssetsManager.Instance.UnloadAsset(e.BattleActorPrefab), s.AssetsManager.Instance.UnloadAsset(e.BuffIconPrefab), s.AssetsManager.Instance.UnloadAsset(e.MultiLangAtlas), s.AssetsManager.Instance.UnloadAsset(e.MainAtlas), s.AssetsManager.Instance.UnloadAsset(e.PlayerAtlas), s.AssetsManager.Instance.UnloadAsset(e.BuffAtlas), s.AssetsManager.Instance.UnloadAsset(e.BattleFloatTextPrefab), s.AssetsManager.Instance.UnloadAsset(e.MainAtlas2), e.BattleActorPrefab = null, e.BuffIconPrefab = null, e.MultiLangAtlas = null, e.MainAtlas = null, e.PlayerAtlas = null, e.BuffAtlas = null, e.BattleFloatTextPrefab = null, e.MainAtlas2 = null, e.CommonBuffEffectPrefabs)
                        for (var t in e.CommonBuffEffectPrefabs) s.AssetsManager.Instance.UnloadAsset(e.CommonBuffEffectPrefabs[t]);
                    e.CommonBuffEffectPrefabs = {}, e._InitBattleAssetPromise = null
                }, e.InitAssetPool = function() {
                    e._BattleActorPool || (e._BattleActorPool = new cc.NodePool("BattleActor")), e._BattleActorPool.clear(), e._BuffIconPool || (e._BuffIconPool = new cc.NodePool("BuffIcon")), e._BuffIconPool.clear(), e._BattleFloatTextPool || (e._BattleFloatTextPool = new cc.NodePool("BattleFloatText")), e._BattleFloatTextPool.clear(), e.CommonBuffEffectPrefabs || (e.CommonBuffEffectPrefabs = {}), e._CommonBuffEffectPools || (e._CommonBuffEffectPools = {}), e.ClearCommonBuffEffect()
                }, e.LoadCommonBuffEffect = function(t) {
                    return i(this, void 0, void 0, function() {
                        var n, o, r, i, l;
                        return a(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    for (n = [], o = [], r = 0; r < t.length; r++)
                                        for (i = 0; i < t[r].CommonEffectAssets.length; i++) l = t[r].CommonEffectAssets[i], e.CommonBuffEffectPrefabs[l] || (o.push(l), n.push(s.AssetsManager.Instance.LoadAsset("BattleGeneralEffect/" + l + "/BuffEffect", cc.Prefab)));
                                    return n.length > 0 ? [4, Promise.all(n).then(function(t) {
                                        for (var r = 0; r < t.length; r++)
                                            if (n[r]) {
                                                var i = o[r];
                                                e.CommonBuffEffectPrefabs[i] = t[r]
                                            }
                                    })] : [3, 2];
                                case 1:
                                    a.sent(), a.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, e.ClearCommonBuffEffect = function() {
                    for (var t in e._CommonBuffEffectPools) e._CommonBuffEffectPools[t].clear();
                    for (var t in e.CommonBuffEffectPrefabs) s.AssetsManager.Instance.UnloadAsset(e.CommonBuffEffectPrefabs[t]);
                    e.CommonBuffEffectPrefabs = {}
                }, e.GetBattleActor = function() {
                    var t = e._BattleActorPool.get();
                    return t || (t = cc.instantiate(e.BattleActorPrefab)), t
                }, e.PutBattleActor = function(t) {
                    t && e._BattleActorPool.put(t)
                }, e.GetBuffIcon = function() {
                    var t = e._BuffIconPool.get();
                    return t || (t = cc.instantiate(e.BuffIconPrefab)), t
                }, e.PutBuffIcon = function(t) {
                    t && e._BuffIconPool.put(t)
                }, e.GetBattleFloatText = function() {
                    var t = e._BattleFloatTextPool.get();
                    return t || (t = cc.instantiate(e.BattleFloatTextPrefab)), t
                }, e.PutBattleFloatText = function(t) {
                    t && e._BattleFloatTextPool.put(t)
                }, e.GetCommonBuffEffect = function(t) {
                    if (!e.CommonBuffEffectPrefabs[t]) return null;
                    e._CommonBuffEffectPools[t] || (e._CommonBuffEffectPools[t] = new cc.NodePool);
                    var n = e._CommonBuffEffectPools[t].get();
                    return n || (n = cc.instantiate(e.CommonBuffEffectPrefabs[t])), n
                }, e.PutCommonBuffEffect = function(t, n) {
                    if (t) return e._CommonBuffEffectPools[n] ? void e._CommonBuffEffectPools[n].put(t) : (t.parent = null, void t.destroy())
                }, e.ElementSpriteFrameNames = ["element_all", "element_heart", "element_power", "element_tech", "element_break", "element_fight", "element_chaos"], e.PortraitFrameSpriteFrameNames = ["slotFrame_gray", "slotFrame_green", "slotFrame_blue", "slotFrame_purple", "slotFrame_orange", "slotFrame_red"], e.PortraitBgSpriteFrameNames = ["slotBg_gray", "slotBg_green", "slotBg_blue", "slotBg_purple", "slotBg_orange", "slotBg_red", "slotBg_chaos", "", "slotBg_red_ur"], e.CastingSkillMaskSpriteFrameNames = ["castingSkillMask_xin", "castingSkillMask_ti", "castingSkillMask_ji", "castingSkillMask_po", "castingSkillMask_dou", "castingSkillMask_chaos"], e.CastingSkillBgSpriteFrameNames = ["castingSkillBg_xin", "castingSkillBg_ti", "castingSkillBg_ji", "castingSkillBg_po", "castingSkillBg_dou", "castingSkillBg_chaos"], e.BattleActorPrefabPathName = "BattleUI/BattleActor", e.BuffIconPrefabPathName = "BattleUI/BuffIcon", e.MainAtlasPathName = "BattleUI/Atlas/BattlePanelMain", e.PlayerAtlasPathName = "BattleUI/Atlas/BattlePlayer", e.BuffAtlasPathName = "BattleUI/Atlas/BattleBuffList", e.BattleFloatTextPrefabPathName = "BattleUI/BattleFloatText", e.MultiLangAtlasPathName = "Multilang/battlePlayer_MultiLang", e.MainAtlas2PathName = "BattleUI/Atlas/BattlePanelMain2", e.BattleFieldBgBundlePathName = "BattleBg/", e.BattlePlaySpeedList = [1.3, 1.7, 2.4], e.VNBattlePlaySpeedList = [1, 1.7, 2.4], e.BattleBgHeight = 2520, e.ScreenWidth = 1080, e.CharacterSlotWidth = 200, e.CharacterSlotGapX = 12, e.CharacterSlotsNum = 5, e.MaxAvailbleBossHUDBuffIndicatorNumber = 10, e.ReportEventInterval = 200, e.ReportEventExtraDuration = 500, e.BattlePlaySpeedIndex = 0, e.BattleActorPrefab = null, e.BuffIconPrefab = null, e.BattleFloatTextPrefab = null, e.MainAtlas = null, e.MultiLangAtlas = null, e.PlayerAtlas = null, e.BuffAtlas = null, e.CommonBuffEffectPrefabs = null, e.PlayingBattleDatas = null, e.CurrentControlConfig = null, e.MainAtlas2 = null, e._BattleIndex = 0, e._BattleActorPool = null, e._BuffIconPool = null, e._BattleFloatTextPool = null, e._CommonBuffEffectPools = null, e._InitBattleAssetPromise = null, e
            }();
        n.BattleData = p,
            function(e) {
                e[e.Settle = 1] = "Settle", e[e.Cancel = 2] = "Cancel", e[e.Restart = 3] = "Restart", e[e.SettleAll = 4] = "SettleAll"
            }(n.CloseBattleType || (n.CloseBattleType = {})), n.MapType2TowerType = ((o = {})[l.MapType.TestTower] = 99, o[l.MapType.TowerHeart] = 1, o[l.MapType.TowerPower] = 2, o[l.MapType.TowerTech] = 3, o[l.MapType.TowerBreak] = 4, o[l.MapType.TowerFight] = 5, o), n.MapType2ElemengTrialType = ((r = {})[l.MapType.ActivityElementHeart] = 111, r[l.MapType.ActivityElementPower] = 111, r[l.MapType.ActivityElementTech] = 111, r[l.MapType.ActivityElementBreak] = 111, r[l.MapType.ActivityElementFight] = 111, r), cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent"
    }],
    BattleDisplayRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bc1abyFdEpDE74hfB7ful6Q", "BattleDisplayRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../Components/AsyncLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.HintLabel = null, t.AsyncLayout = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AsyncLayout.Init(this._itemPrefab, this.OnInitializeItem.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._rewardData ? this._rewardData = this._rewardData.concat(t[0]) : this._rewardData = t[0], this.HintLabel.string = t[1];
                    for (var n = [], o = {}, r = 0, i = this._rewardData; r < i.length; r++)(a = i[r]) instanceof c.UserHero_Model || a.Count <= 0 ? n.push(a) : (null == o[a.ItemId] && (o[a.ItemId] = 0), o[a.ItemId] += a.Count);
                    for (var a in o) {
                        var s = new c.UserItem_Model;
                        s.ItemId = parseInt(a), s.Count = o[a], n.unshift(s)
                    }
                    this._rewardData = n
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.AsyncLayout.RenderLayout(this._rewardData.length)
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(p.ItemComponent),
                        o = this._rewardData[t];
                    n.Init(o, p.ItemComponentType.ItemCommon)
                }, t.prototype.OnClickItem = function(e, t) {
                    this.AsyncLayout.node == t.parent && t.getComponent(p.ItemComponent).ShowItemTip()
                }, i([g(cc.Label)], t.prototype, "HintLabel", void 0), i([g(d.default)], t.prototype, "AsyncLayout", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    BattleDoubleProgressBarGroup: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "566c2ORoQ1NZaVQCScCDZP6", "BattleDoubleProgressBarGroup");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../Consts/Consts"),
            c = e("./DoubleProgressBar"),
            u = e("./PrefabListContainerComp"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.progressContainer = null, t.BattleIcon = null, t._initFlag = !1, t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    var n;
                    return void 0 === t && (t = 0), a(this, void 0, void 0, function() {
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._battleData = e, this._chosenGroupIdx = t, this._initFlag ? [3, 2] : [4, this.progressContainer.Init("ProgressBarComponents/DoubleProgressBar", c.default, this.ConfigProgress.bind(this))];
                                case 1:
                                    o.sent(), this._initFlag = !0, o.label = 2;
                                case 2:
                                    return this.progressContainer.Set(null === (n = e.Reports) || void 0 === n ? void 0 : n.length), this.BattleIcon.y = 64 * (e.Reports.length - (t + 1)), [2]
                            }
                        })
                    })
                }, t.prototype.ConfigProgress = function(e, t) {
                    var n = [];
                    this._battleData.Players.forEach(function(e) {
                        var t = 0,
                            o = 0,
                            r = 0,
                            i = 0;
                        for (var a in e.HeroDatas) {
                            var s = e.HeroDatas[a];
                            s.Camp == l.CampType.Attacker ? (t += s.Hp, o += s.HpMax) : (r += s.Hp, i += s.HpMax)
                        }
                        n.push({
                            left: t / o,
                            right: r / i
                        })
                    }), e.Set(n[t].left, n[t].right, "HolyRelic_HeroPosition".ToUILocale().Fmt(t + 1), t == this._chosenGroupIdx ? 1 : 0)
                }, i([h(u.default)], t.prototype, "progressContainer", void 0), i([h(cc.Node)], t.prototype, "BattleIcon", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "./DoubleProgressBar": "DoubleProgressBar",
        "./PrefabListContainerComp": "PrefabListContainerComp"
    }],
    BattleFloatText: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b4109GMXW9DYpyODnNzobfP", "BattleFloatText");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FloatNumberType = void 0;
        var a = e("../BattleData"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Restrain = 1] = "Restrain", e[e.Critical = 2] = "Critical", e[e.Additional = 3] = "Additional", e[e.Healing = 4] = "Healing", e[e.Absorb = 5] = "Absorb", e[e.Dodge = 6] = "Dodge", e[e.Block = 7] = "Block"
        })(n.FloatNumberType || (n.FloatNumberType = {}));
        var u = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.DicorationSprite = null, t.SignSprite = null, t.NumberContainerNode = null, t.IconSprite = null, t.TextLabel = null, t.BuffContainerNode = null, t.PicSprite = null, t.PictureContainerNode = null, t.Type = 0, t.Value = 0, t._digitSprites = [], t
            }
            var n;
            return r(t, e), n = t, t.GetNumberText = function(e, t) {
                var o = a.BattleData.GetBattleFloatText(),
                    r = o.getComponent(n);
                return r.Reset(), r.Type = e, r.Value = t, r.PrepareSprites(), o.active = !0, r
            }, t.GetBuffText = function(e, t, o) {
                var r = a.BattleData.GetBattleFloatText(),
                    i = r.getComponent(n);
                i.Reset(), i.BuffContainerNode.active = !0, e ? (i.IconSprite.node.active = !0, i.IconSprite.spriteFrame = e, i.IconSprite.node.opacity = 255, i.IconSprite.node.width = 32, i.IconSprite.node.height = 32) : i.IconSprite.node.active = !1, i.TextLabel.string = t;
                var s = n.buffEffectNameColors.get(o);
                return s && (i.TextLabel.node.color = s), r.active = !0, i
            }, t.prototype.EnableSprite = function(e, t, n, o, r) {
                e.spriteFrame = t, e.node.opacity = 255, e.node.setContentSize(n), e.node.setPosition(o, r)
            }, t.prototype.DisableSprite = function(e) {
                e.node.opacity = 0
            }, t.prototype.Reset = function() {
                this.DisableSprite(this.DicorationSprite), this.DisableSprite(this.SignSprite);
                for (var e = 0; e < this._digitSprites.length; ++e) this.DisableSprite(this._digitSprites[e]);
                this.node.opacity = 0, this.node.active = !1, this.NumberContainerNode.active = !1, this.BuffContainerNode.active = !1, this.PictureContainerNode.active = !1
            }, t.prototype.GetDigitSprite = function(e) {
                if (!this._digitSprites[e]) {
                    var t = new cc.Node;
                    t.setAnchorPoint(1, 1), t.setParent(this.NumberContainerNode);
                    var n = t.addComponent(cc.Sprite);
                    this._digitSprites[e] = n
                }
                return this._digitSprites[e]
            }, t.prototype.PrepareSprites = function() {
                var e = n.flyingNumberStyleInfo[this.Type],
                    t = 0,
                    o = e.dimension.width + e.gap,
                    r = 0,
                    i = Math.abs(this.Value);
                if (0 == i) this.EnableSprite(this.GetDigitSprite(0), a.BattleData.PlayerAtlas.getSpriteFrame(e.digits[0]), e.dimension, -t, 0), t += o, r = 1;
                else
                    for (var s; i > 0;) s = Math.floor(i % 10), this.EnableSprite(this.GetDigitSprite(r), a.BattleData.PlayerAtlas.getSpriteFrame(e.digits[s]), e.dimension, -t, 0), t += o, i = Math.floor(i / 10), ++r;
                this.EnableSprite(this.SignSprite, a.BattleData.PlayerAtlas.getSpriteFrame(e.sign), e.dimension, -t, 0);
                var l = (r + 1) * e.dimension.width + r * e.gap;
                e.dicoration.length > 0 && (t += o, this.EnableSprite(this.DicorationSprite, a.BattleData.MultiLangAtlas.getSpriteFrame(e.dicoration), e.dicorationDimension, -t, e.dicorationDimension.height - e.dimension.height), l += e.dicorationDimension.width + e.gap), this.NumberContainerNode.setContentSize(l, e.dimension.height), this.NumberContainerNode.setPosition(.5 * l, .5 * e.dimension.height), this.NumberContainerNode.active = !0
            }, t.ClassNameString = "BattleFloatText", t.buffEffectNameColors = new Map([
                [0, new cc.Color(255, 255, 255)],
                [1, new cc.Color(112, 255, 255)],
                [2, new cc.Color(215, 145, 255)],
                [3, new cc.Color(255, 108, 108)]
            ]), t.nodeMap = new Map, t.flyingNumberStyleInfo = [{
                dimension: new cc.Size(28, 34),
                gap: -5,
                positive: "num_normal_+",
                negtive: "num_normal_-",
                sign: "num_normal_-",
                percentage: "num_normal_%",
                digits: ["num_normal_0", "num_normal_1", "num_normal_2", "num_normal_3", "num_normal_4", "num_normal_5", "num_normal_6", "num_normal_7", "num_normal_8", "num_normal_9"],
                dicoration: "",
                dicorationDimension: new cc.Size(0, 0),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(28, 34),
                gap: -5,
                positive: "num_restrain_+",
                negtive: "num_restrain_-",
                sign: "num_restrain_-",
                percentage: "num_restrain_%",
                digits: ["num_restrain_0", "num_restrain_1", "num_restrain_2", "num_restrain_3", "num_restrain_4", "num_restrain_5", "num_restrain_6", "num_restrain_7", "num_restrain_8", "num_restrain_9"],
                dicoration: "label_Restrain",
                dicorationDimension: new cc.Size(129, 49),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(28, 34),
                gap: -5,
                positive: "num_critical_+",
                negtive: "num_critical_-",
                sign: "num_critical_-",
                percentage: "num_critical_%",
                digits: ["num_critical_0", "num_critical_1", "num_critical_2", "num_critical_3", "num_critical_4", "num_critical_5", "num_critical_6", "num_critical_7", "num_critical_8", "num_critical_9"],
                dicoration: "label_Critical",
                dicorationDimension: new cc.Size(131, 57),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(24, 30),
                gap: -5,
                positive: "num_persist_+",
                negtive: "num_persist_-",
                sign: "num_persist_-",
                percentage: "num_persist_%",
                digits: ["num_persist_0", "num_persist_1", "num_persist_2", "num_persist_3", "num_persist_4", "num_persist_5", "num_persist_6", "num_persist_7", "num_persist_8", "num_persist_9"],
                dicoration: "",
                dicorationDimension: new cc.Size(0, 0),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(24, 30),
                gap: -5,
                positive: "num_cure_+",
                negtive: "num_cure_-",
                sign: "num_cure_+",
                percentage: "num_cure_%",
                digits: ["num_cure_0", "num_cure_1", "num_cure_2", "num_cure_3", "num_cure_4", "num_cure_5", "num_cure_6", "num_cure_7", "num_cure_8", "num_cure_9"],
                dicoration: "",
                dicorationDimension: new cc.Size(0, 0),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(24, 30),
                gap: -5,
                positive: "num_absorb_+",
                negtive: "num_absorb_-",
                sign: "num_absorb_+",
                percentage: "num_absorb_%",
                digits: ["num_absorb_0", "num_absorb_1", "num_absorb_2", "num_absorb_3", "num_absorb_4", "num_absorb_5", "num_absorb_6", "num_absorb_7", "num_absorb_8", "num_absorb_9"],
                dicoration: "label_Absorb",
                dicorationDimension: new cc.Size(103, 40),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(24, 30),
                gap: -5,
                positive: "",
                negtive: "",
                sign: "",
                percentage: "",
                digits: ["", "", "", "", "", "", "", "", "", ""],
                dicoration: "status_Miss",
                dicorationDimension: new cc.Size(72, 38),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(24, 30),
                gap: -5,
                positive: "num_absorb_+",
                negtive: "num_absorb_-",
                sign: "num_absorb_-",
                percentage: "num_absorb_%",
                digits: ["num_absorb_0", "num_absorb_1", "num_absorb_2", "num_absorb_3", "num_absorb_4", "num_absorb_5", "num_absorb_6", "num_absorb_7", "num_absorb_8", "num_absorb_9"],
                dicoration: "label_Block",
                dicorationDimension: new cc.Size(103, 40),
                duration: .5,
                speed: 230
            }], t.flyingPictureStyleInfo = [{
                dimension: new cc.Size(72, 38),
                spriteName: "status_Miss",
                duration: .5,
                speed: 230
            }], i([c(cc.Sprite)], t.prototype, "DicorationSprite", void 0), i([c(cc.Sprite)], t.prototype, "SignSprite", void 0), i([c(cc.Node)], t.prototype, "NumberContainerNode", void 0), i([c(cc.Sprite)], t.prototype, "IconSprite", void 0), i([c(cc.Label)], t.prototype, "TextLabel", void 0), i([c(cc.Node)], t.prototype, "BuffContainerNode", void 0), i([c(cc.Sprite)], t.prototype, "PicSprite", void 0), i([c(cc.Node)], t.prototype, "PictureContainerNode", void 0), n = i([l], t)
        }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../BattleData": "BattleData"
    }],
    BattleFormationItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0e15dBUjplP853FAusUJ9Bc", "BattleFormationItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ShowFormationItemType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../../Components/DataCenter"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Components/Components"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../../Consts/Consts"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../Consts/Consts"),
            C = e("./TrialHeroPanel"),
            v = e("./ActivityHeroTestTowerEntryPanel"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../../Channel/ChannelManager"),
            w = e("./ActivitySinglePageGiftPanel"),
            P = e("../Components/LoadAssetHelper");
        (function(e) {
            e[e.Hero = 0] = "Hero", e[e.Angel = 1] = "Angel"
        })(l = n.ShowFormationItemType || (n.ShowFormationItemType = {}));
        var A, T = cc._decorator,
            R = T.ccclass,
            L = T.property;
        (function(e) {
            e[e.Pet = 1] = "Pet", e[e.MagicCircleBottom = 2] = "MagicCircleBottom", e[e.MagicCircleTop = 3] = "MagicCircleTop"
        })(A || (A = {}));
        var k = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.FormationOn = null, t.FormationOff = null, t.FormationBlue = null, t.FormationNum = null, t.AvatarNode = null, t.PetNode = null, t.InfoBarContainer = null, t.LevelContainer = null, t.ElementIcon = null, t.Level = null, t.RoleReplacement = null, t.RoleVanguard = null, t.ReplacementLabel = null, t.VanguardLabel = null, t.LoadAssetHelper = null, t._loadedAssets = [], t.BattlePower = 0, t._level = 0, t._barOffsetY = 0, t.CAN_CHANGE_DISTANCE = 80, t
            }
            return r(t, e), t.prototype.OnEvent = function() {
                this.AvatarNode.on(cc.Node.EventType.TOUCH_START, this.OnMoveStart, this), this.AvatarNode.on(cc.Node.EventType.TOUCH_MOVE, this.OnMoving, this), this.AvatarNode.on(cc.Node.EventType.TOUCH_CANCEL, this.OnMoveCancel, this), this.AvatarNode.on(cc.Node.EventType.TOUCH_END, this.OnMoveEnd, this)
            }, t.prototype.OffEvent = function() {
                this.AvatarNode.off(cc.Node.EventType.TOUCH_START, this.OnMoveStart, this), this.AvatarNode.off(cc.Node.EventType.TOUCH_MOVE, this.OnMoving, this), this.AvatarNode.off(cc.Node.EventType.TOUCH_CANCEL, this.OnMoveCancel, this), this.AvatarNode.off(cc.Node.EventType.TOUCH_END, this.OnMoveEnd, this)
            }, t.prototype.SetBasePanel = function(e) {
                if (this._battleFormationPanel = e, !this._formationLightNode) {
                    this._formationLightNode = new cc.Node("FormationLight"), this._formationLightNode.parent = this._battleFormationPanel.HeroBottomContainer;
                    var t = this.node.convertToWorldSpaceAR(cc.v2(0, 0));
                    this._formationLightNode.setPosition(this._formationLightNode.parent.convertToNodeSpaceAR(t)), this.FormationOn.parent = this._formationLightNode, this.FormationOff.parent = this._formationLightNode, this.FormationBlue.parent = this._formationLightNode, this.FormationNum.node.parent = this._formationLightNode
                }
            }, t.prototype.Init = function(e, t, n, o) {
                if (void 0 === n && (n = 0), this._sort = e, this.FormationIndex = t, this._totalFormationNum = n, this._mapType = o, this.FormationOn.active = !1, this.FormationOff.active = !1, this.FormationBlue.active = !1, this._worldPos = this.AvatarNode.convertToWorldSpaceAR(cc.v2(0, 0)), this._showItemType = l.Hero, c.Game.EventDispatcher.Off(f.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this.OnDragMove, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, this.OnDragMoveConfirm, this), e > 0) {
                    switch (this.IsActive = !0, this.FormationNum.string = e.toString(), o) {
                        case m.MapType.EndlessAbyssSingle:
                            e > 1 ? this.FormationBlue.active = !0 : this.FormationOn.active = !0;
                            break;
                        default:
                            this.FormationOn.active = !0
                    }
                    o && (c.Game.EventDispatcher.On(f.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this.OnDragMove, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, this.OnDragMoveConfirm, this))
                } else switch (this.IsActive = !1, this.FormationNum.string = "", o) {
                    case m.MapType.EndlessAbyssSingle:
                    case m.MapType.StarLightSecretLand:
                    case m.MapType.GodLandDuel:
                        break;
                    default:
                        this.FormationOff.active = !0
                }
            }, t.prototype.SetShowItemType = function(e) {
                this._showItemType = e
            }, t.prototype.SetHeroAvatarBySid = function(e, t) {
                if (t && (this._dragContainer = t), 0 != e) {
                    var n = void 0;
                    switch (this._mapType) {
                        case m.MapType.ActivityHeroTry:
                        case m.MapType.ActivityHeroTry2:
                        case m.MapType.ActivityHeroTry3:
                        case m.MapType.ActivityHeroTry4:
                        case m.MapType.ActivityHeroTry5:
                        case m.MapType.ActivityHeroTry6:
                        case m.MapType.ActivityHeroTry7:
                        case m.MapType.ActivityHeroTry8:
                        case m.MapType.ActivityHeroTry9:
                        case m.MapType.ActivityHeroTry10:
                            var o = h.DataCenter.Instance.GetTempData(C.default.TEMP_MAPTYPE_HEROSID + this._mapType);
                            if (i = h.DataCenter.Instance.GetTempData(C.default.TEMP_TRIALUSERHEROES_DATA + o))
                                for (var r = 0; r < i.length; r++)
                                    if (i[r].Sid == e) {
                                        this._heroData = i[r];
                                        break
                                    } break;
                        case m.MapType.ActivitySkinTry:
                        case m.MapType.ActivitySkinTry2:
                        case m.MapType.ActivitySkinTry3:
                        case m.MapType.ActivitySkinTry4:
                            var i, a = h.DataCenter.Instance.GetTempData(w.default.TEMP_MAPTYPE_SKINID + this._mapType),
                                s = d.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, a);
                            if (i = h.DataCenter.Instance.GetTempData(w.default.TEMP_SKIN_TRIALUSERHEROES_DATA + -s.HeroId))
                                for (r = 0; r < i.length; r++)
                                    if (i[r].Sid == e) {
                                        this._heroData = i[r], n = i[r].SkinId;
                                        break
                                    } break;
                        case m.MapType.HeroTestTower1:
                        case m.MapType.HeroTestTower2:
                        case m.MapType.HeroTestTower3:
                        case m.MapType.HeroTestTower4:
                        case m.MapType.HeroTestTower5:
                        case m.MapType.HeroTestTower6:
                        case m.MapType.HeroTestTower7:
                        case m.MapType.HeroTestTower8:
                        case m.MapType.HeroTestTower9:
                            var c = h.DataCenter.Instance.GetTempData(v.default.TEMP_HEROTESTTOWER_HEROSID + this._mapType),
                                f = h.DataCenter.Instance.GetTempData(v.default.TEMP_HEROTESTTOWER_HERODATAS + c);
                            if (f)
                                for (r = 0; r < f.length; r++)
                                    if (f[r].Sid == e) {
                                        this._heroData = f[r];
                                        break
                                    } break;
                        case m.MapType.HeroPK:
                            e < 0 ? (this._heroData = new u.UserHero_Model, this._heroData.HeroId = -e, this._heroData.Power = d.ConfigCacheComponent.Instance.GetHandbookHeroAttr(-e, 5)[999], this._heroData.Level = 100) : this._heroData = h.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                            break;
                        default:
                            this._heroData = h.DataCenter.Instance.GetDataById(u.UserHero_Model, e)
                    }
                    if (this.HeroSid = e, this._showItemType == l.Angel) {
                        var y = d.DataCenter.Instance.GetDataById(u.UserAngel_Model, e);
                        this.BattlePower = y.Power;
                        var g = b.default.Instance.GetAngelGodAvatarConfig(e, y);
                        this.SetHeroAvatarByItemId(y.AngelId, !1, y.Level, 0, g.Id)
                    } else this.BattlePower = this._heroData.Power, this.SetHeroAvatarByItemId(this._heroData.HeroId, !1, 0, 0, n), this.SetPetAvatarByHero(), this.SetMagicCircleByHero()
                } else this.HeroId = 0, this.HeroSid = 0, this.BattlePower = 0, this.RemoveHeroAvatar(), this.RemovePetAvatar(), this.RemoveMagicCircle()
            }, t.prototype.SetHeroAvatarByItemId = function(e, t, n, o, r) {
                return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                    var i, a, f, I, C, v, w, P, A, T, R, L, k, O;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                if (this.HeroId = e, n && (this._level = n), this._templeLevel = o, this.RemoveHeroAvatar(), 0 == e) return [2];
                                switch (this._showItemType == l.Hero && (i = y.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, e), this.ElementType = i.ElementType), this._mapType) {
                                    case m.MapType.ActivityHeroTry:
                                    case m.MapType.ActivityHeroTry2:
                                    case m.MapType.ActivityHeroTry3:
                                    case m.MapType.ActivityHeroTry4:
                                    case m.MapType.ActivityHeroTry5:
                                    case m.MapType.ActivityHeroTry6:
                                    case m.MapType.ActivityHeroTry7:
                                    case m.MapType.ActivityHeroTry8:
                                    case m.MapType.ActivityHeroTry9:
                                    case m.MapType.ActivityHeroTry10:
                                    case m.MapType.HeroTestTower1:
                                    case m.MapType.HeroTestTower2:
                                    case m.MapType.HeroTestTower3:
                                    case m.MapType.HeroTestTower4:
                                    case m.MapType.HeroTestTower5:
                                    case m.MapType.HeroTestTower6:
                                    case m.MapType.HeroTestTower7:
                                    case m.MapType.HeroTestTower8:
                                    case m.MapType.HeroTestTower9:
                                    case m.MapType.HeroPK:
                                        this._avatarPath = "Hero_" + i.Model + "/HeroAvatar";
                                        break;
                                    default:
                                        this._showItemType == l.Angel ? (a = r || e, f = d.ConfigDataComponent.Instance.GetConfigById(p.AngelGodAvatar_Config, a), this._avatarPath = "Angels_" + f.Model + "/HeroAvatar") : (I = null, r ? I = d.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, r) : this.HeroSid > 0 && (C = this.HeroId, (v = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this.HeroSid)) && (w = 0 | v.SkinId, C = 0 == w ? this.HeroId : w), I = d.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, C)), this._avatarPath = I ? "Hero_" + I.Model + "/HeroAvatar" : "Hero_" + i.Model + "/HeroAvatar")
                                }
                                return [4, g.AssetsManager.Instance.LoadAsset(this._avatarPath)];
                            case 1:
                                if (P = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(P), [2];
                                if (P.name == this._avatarPath) {
                                    switch (this.RemoveHeroAvatar(), this._loadedAssets.push(P), this.HeroAvatar = cc.instantiate(P), this.HeroAvatar.setParent(this.AvatarNode), this.HeroAvatar.setPosition(cc.v2(0, 0)), A = this.HeroAvatar.getComponent(sp.Skeleton), this._showItemType == l.Hero && this._heroData && this._heroData.Sid > 0 && (T = b.default.Instance.GetHeroDefaultStarLevelSkinName(this._heroData.HeroId, this._heroData.StarLevel), A.setSkin(T)), R = S.default.Instance.IsVNChannel(), this._barOffsetY = R && i ? i.HUDOffsetY + 15 : .85 * this.HeroAvatar.height, this._mapType) {
                                        case m.MapType.SeasonExpedition:
                                        case m.MapType.SeasonExpedition1:
                                        case m.MapType.SeasonExpedition2:
                                        case m.MapType.SeasonExpedition3:
                                        case m.MapType.SeasonExpedition4:
                                        case m.MapType.SeasonExpedition5:
                                            this.RefreshHeroInfoBar(!1);
                                            break;
                                        default:
                                            this.RefreshHeroInfoBar(!0)
                                    }
                                    L = S.default.Instance.IsHighSchoolChannel(), k = m.SkillAnimationType.Standby, t ? (O = L ? 1 : -1, this.HeroAvatar.setScale(O * _.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X, 1), k = L ? "rev_" + m.SkillAnimationType.Standby : m.SkillAnimationType.Standby) : (this.OnEvent(), this.HeroAvatar.setScale(_.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X, 1)), A.setAnimation(0, k, !0)
                                } else c.AssetsManager.Instance.UnloadAsset(P);
                                return this._mapType != m.MapType.War && this._mapType != m.MapType.WarAngel || this.OffEvent(), [2]
                        }
                    })
                })
            }, t.prototype.RemoveHeroAvatar = function() {
                this.OffEvent(), this.AvatarNode.destroyAllChildren(), this.HeroAvatar = null, this.RefreshHeroInfoBar(!1)
            }, t.prototype.RemovePetAvatar = function() {
                this.LoadAssetHelper.RemoveAsset(A.Pet)
            }, t.prototype.RemoveMagicCircle = function() {
                this.LoadAssetHelper.RemoveAsset(A.MagicCircleBottom), this.LoadAssetHelper.RemoveAsset(A.MagicCircleTop), this._magicCircleBottomNode = null, this._magicCircleTopNode = null
            }, t.prototype.OnMoveStart = function() {
                this._dragMoveCounter = 0
            }, t.prototype.OnMoving = function(e) {
                if (!this._isMoving) {
                    this._isMoving = !0;
                    var t = this.HeroAvatar.convertToWorldSpaceAR(cc.v2(0, 0)),
                        n = this._dragContainer.convertToNodeSpaceAR(t);
                    this._magicCircleBottomNode && (this._magicCircleBottomNode.setParent(this._dragContainer), this._magicCircleBottomNode.setPosition(n)), this.HeroAvatar.setParent(this._dragContainer), this._magicCircleTopNode && (this._magicCircleTopNode.setParent(this._dragContainer), this._magicCircleTopNode.setPosition(n)), this.HeroAvatar.setPosition(n)
                }
                var o = e.getDelta();
                this.HeroAvatar.setPosition(cc.v2(this.HeroAvatar.x + o.x, this.HeroAvatar.y + o.y)), this.RefreshInfoBarPos(), this.RefreshMagicCirclePos()
            }, t.prototype.OnMoveEnd = function() {
                this._isMoving ? (this._isMoving = !1, c.Game.EventDispatcher.Emit(f.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this)) : c.Game.EventDispatcher.Emit(f.EventKeys.EVENT_FORMATIONITEM_OFFTEAM, this.HeroSid)
            }, t.prototype.OnMoveCancel = function() {
                this.OnMoveEnd()
            }, t.prototype.OnDragMove = function(e) {
                if (this.IsActive && this.FormationIndex != e.FormationIndex && e.HeroAvatar) {
                    var t = e.HeroAvatar.convertToWorldSpaceAR(cc.v2(0, 0)),
                        n = this._worldPos.sub(t).mag();
                    c.Game.EventDispatcher.Emit(f.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, e, this, n)
                }
            }, t.prototype.OnDragMoveConfirm = function(e, t, n) {
                if (this.IsActive && e.FormationIndex == this.FormationIndex) {
                    if (n <= this.CAN_CHANGE_DISTANCE) {
                        var o = e.HeroSid,
                            r = t.HeroSid;
                        return this._dragContainer.removeAllChildren(), e.SetHeroAvatarBySid(r), t.SetHeroAvatarBySid(o), void c.Game.EventDispatcher.Emit(f.EventKeys.EVENT_FORMATIONDATA_CHANGED)
                    }
                    this._dragMoveCounter++, this._dragMoveCounter >= this._totalFormationNum - 1 && this.ResetHeroNode()
                }
            }, t.prototype.ResetHeroNode = function() {
                this.HeroAvatar && (this.HeroAvatar.setParent(this.AvatarNode), this.HeroAvatar.setPosition(cc.v2(0, 0)), this.InfoBarContainer.position = cc.v3(0, this._barOffsetY, 0)), this.ResetMagicCircleParent()
            }, t.prototype.RefreshHeroInfoBar = function(e) {
                e ? (this.LevelContainer.active = !0, this.ElementIcon.node.active = this._showItemType == l.Hero, this._showItemType == l.Hero && (this.ElementIcon.spriteFrame = I.UIUtlity.GetHeroElementIcon(this.ElementType)), this._heroData ? I.UIUtlity.SetHeroLevel(this._heroData, this.Level) : this._templeLevel ? (this.Level.string = "Lv." + this._templeLevel, this.Level.node.color = I.UIUtlity.Herolevel_Label_Color_StarResonance) : (this.Level.string = "Lv." + this._level, this.Level.node.color = cc.Color.WHITE), this.InfoBarContainer.position = cc.v3(0, this._barOffsetY, 0), this._mapType == m.MapType.EndlessAbyssSingle && (this._sort > 1 ? (this.RoleVanguard.active = !1, this.RoleReplacement.active = !0, this.ReplacementLabel.string = "formation_replacement".ToUILocale().Fmt(this._sort - 1)) : (this.RoleVanguard.active = !0, this.RoleReplacement.active = !1, this.VanguardLabel.string = "formation_vanguard".ToUILocale())), this._mapType != m.MapType.War && this._mapType != m.MapType.WarAngel || (this.RoleVanguard.active = !0, this.RoleReplacement.active = !1, this.VanguardLabel.string = "StrongholdWar_Team_Captain".ToUILocale())) : (this.LevelContainer.active = !1, this.RoleReplacement.active = !1, this.RoleVanguard.active = !1)
            }, t.prototype.RefreshInfoBarPos = function() {
                var e = this.HeroAvatar.convertToWorldSpaceAR(cc.v2(0, 0)),
                    t = this.node.convertToNodeSpaceAR(e);
                this.InfoBarContainer.position = cc.v3(t.x, t.y + this._barOffsetY, 0)
            }, t.prototype.RefreshMagicCirclePos = function() {
                this._magicCircleBottomNode && (this._magicCircleBottomNode.position = this.HeroAvatar.position), this._magicCircleTopNode && (this._magicCircleTopNode.position = this.HeroAvatar.position)
            }, t.prototype.ResetMagicCircleParent = function() {
                var e = this.HeroAvatar.convertToWorldSpaceAR(cc.v2(0, 0)),
                    t = this._battleFormationPanel.HeroBottomContainer.convertToNodeSpaceAR(e);
                this._magicCircleBottomNode && (this._magicCircleBottomNode.setParent(this._battleFormationPanel.HeroBottomContainer), this._magicCircleBottomNode.setPosition(t)), this._magicCircleTopNode && (this._magicCircleTopNode.setParent(this._battleFormationPanel.HeroTopContainer), this._magicCircleTopNode.setPosition(t))
            }, t.prototype.SetPetAvatarByHero = function() {
                if (this.RemovePetAvatar(), this._heroData) {
                    var e = h.DataCenter.Instance.GetHeroPet(this._heroData.Sid);
                    if (!(e.length <= 0)) {
                        var t = h.DataCenter.Instance.GetDataById(u.UserPet_Model, e[0]);
                        t && this.SetPetAvatarByItemId(t.Sid)
                    }
                }
            }, t.prototype.SetPetAvatarByItemId = function(e, t) {
                if (void 0 === t && (t = !1), e) {
                    var n = y.ConfigDataComponent.Instance.GetConfigById(p.PetBase_Config, e);
                    if (n) {
                        var o = n.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(o, this.PetNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, m.SkillAnimationType.Standby, !0), e.scaleX = t ? -1 : 1, e.x = t ? 75 : -75
                        }, A.Pet)
                    }
                } else this.RemovePetAvatar()
            }, t.prototype.SetMagicCircleByHero = function() {
                if (this.RemoveMagicCircle(), this._heroData) {
                    var e = h.DataCenter.Instance.GetHeroMagicCircle(this._heroData.Sid);
                    if (e) {
                        var t = h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, e);
                        t && this.SetMagicCircleByItemId(t.Sid)
                    }
                }
            }, t.prototype.SetMagicCircleByItemId = function(e, t) {
                var n = this;
                if (void 0 === t && (t = !1), e) {
                    var o = y.ConfigDataComponent.Instance.GetConfigById(p.MagicCircleBase_Config, e);
                    if (o) {
                        var r, i, a = o.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(a, this._battleFormationPanel.HeroBottomContainer, function(e) {
                            r = e, n._magicCircleBottomNode = e, e.position = n._formationLightNode.position, e.setScale((t ? -_.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X : _.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X) * n.AvatarNode.scaleX, 1 * n.AvatarNode.scaleY), i && r && (r.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), i.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, A.MagicCircleBottom), this.LoadAssetHelper.LoadPrefab(a, this._battleFormationPanel.HeroTopContainer, function(e) {
                            i = e, n._magicCircleTopNode = e, e.position = n._formationLightNode.position, e.setScale((t ? -_.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X : _.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X) * n.AvatarNode.scaleX, 1 * n.AvatarNode.scaleY), i && r && (r.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), i.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, A.MagicCircleTop)
                    }
                } else this.RemoveMagicCircle()
            }, t.prototype.onDestroy = function() {
                this.Dispose(), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this.OnDragMove), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, this.OnDragMoveConfirm)
            }, t.prototype.Dispose = function() {
                for (var e = 0; e < this._loadedAssets.length; e++) c.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                this._loadedAssets = []
            }, i([L(cc.Node)], t.prototype, "FormationOn", void 0), i([L(cc.Node)], t.prototype, "FormationOff", void 0), i([L(cc.Node)], t.prototype, "FormationBlue", void 0), i([L(cc.Label)], t.prototype, "FormationNum", void 0), i([L(cc.Node)], t.prototype, "AvatarNode", void 0), i([L(cc.Node)], t.prototype, "PetNode", void 0), i([L(cc.Node)], t.prototype, "InfoBarContainer", void 0), i([L(cc.Node)], t.prototype, "LevelContainer", void 0), i([L(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([L(cc.Label)], t.prototype, "Level", void 0), i([L(cc.Node)], t.prototype, "RoleReplacement", void 0), i([L(cc.Node)], t.prototype, "RoleVanguard", void 0), i([L(cc.Label)], t.prototype, "ReplacementLabel", void 0), i([L(cc.Label)], t.prototype, "VanguardLabel", void 0), i([L(P.default)], t.prototype, "LoadAssetHelper", void 0), i([R], t)
        }(cc.Component);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./ActivityHeroTestTowerEntryPanel": "ActivityHeroTestTowerEntryPanel",
        "./ActivitySinglePageGiftPanel": "ActivitySinglePageGiftPanel",
        "./TrialHeroPanel": "TrialHeroPanel"
    }],
    BattleFormationMaterialConponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6637coo145DfKdwcc19CFJx", "BattleFormationMaterialConponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../ShareConsts/EnumType"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../Consts/Consts"),
            h = e("../Panel/StrongholdWarTeamPanel"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SingleMaterialIcon = null, t.SingleMaterialTag = null, t.SingleMaterialValue = null, t.TotalMaterialIcon = null, t.TotalMaterialTag = null, t.TotalMaterialValue = null, t.MaterialAddButton = null, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.MaterialAddButton.node.on("click", this.OnMaterialAddButtonClick, this)
                }, t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    switch (this._mapConfigType = e, this._mapConfigType) {
                                        case d.MapType.War:
                                        case d.MapType.WarAngel:
                                            return [3, 1]
                                    }
                                    return [3, 3];
                                case 1:
                                    return this.SingleMaterialTag.string = "StrongholdWar_Team_Single_Material_Tag".ToUILocale(), this.SingleMaterialValue.string = "StrongholdWar_Team_Single_Material_Times".ToUILocale().Fmt(c.ConfigDataComponent.Instance.GetGlobalSettingByKey("War_PointUnit")), this.TotalMaterialTag.string = "StrongholdWar_Team_Total_Material".ToUILocale(), t = c.DataCenter.Instance.GetTempData(h.default.TEMPDATA_STRONGHOLDPOINTVALUE), this.TotalMaterialValue.string = t.toString(), n = f.default.Instance.GetItemPathById(l.CommonItemId.WarPoint), [4, u.AssetsManager.Instance.LoadAsset(n, cc.SpriteFrame)];
                                case 2:
                                    return o = r.sent(), this.isValid ? (this._unloadAssets.push(o), this.SingleMaterialIcon.spriteFrame = o, this.TotalMaterialIcon.spriteFrame = o, [3, 4]) : (u.AssetsManager.Instance.UnloadAsset(o), [2]);
                                case 3:
                                    return [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnMaterialAddButtonClick = function() {
                    switch (this._mapConfigType) {
                        case d.MapType.War:
                        case d.MapType.WarAngel:
                            u.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, l.CommonItemId.WarPoint, !1)
                    }
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && u.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([m(cc.Sprite)], t.prototype, "SingleMaterialIcon", void 0), i([m(cc.Label)], t.prototype, "SingleMaterialTag", void 0), i([m(cc.Label)], t.prototype, "SingleMaterialValue", void 0), i([m(cc.Sprite)], t.prototype, "TotalMaterialIcon", void 0), i([m(cc.Label)], t.prototype, "TotalMaterialTag", void 0), i([m(cc.Label)], t.prototype, "TotalMaterialValue", void 0), i([m(cc.Button)], t.prototype, "MaterialAddButton", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Panel/StrongholdWarTeamPanel": "StrongholdWarTeamPanel"
    }],
    BattleFormationPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4c25etCjnxB6Iu5MorjFALc", "BattleFormationPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../GamePlay/Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Components/CustomToggle"),
            m = e("../Components/HeroListComponent"),
            I = e("../Components/ItemComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../Components/ElementEffectItem"),
            b = e("./BattleFormationItem"),
            S = e("./StarConditionComponent"),
            w = e("../../../Consts/Consts"),
            P = e("../../Auxiliary/DataUtlity"),
            A = e("../../Auxiliary/GuideManager"),
            T = e("../Components/FormationSwitchBtn"),
            R = e("./TrialHeroPanel"),
            L = e("./FutureMapLevelInfo"),
            k = e("../../../Util/TimeUtil"),
            O = e("../Components/StarConditionItem"),
            M = e("../Components/StrongholdWarBattleFormationComponent"),
            D = e("../Components/BattleFormationMaterialConponent"),
            B = e("../../Auxiliary/GameRecord"),
            N = e("../../Auxiliary/ModuleGuideManager"),
            E = e("./AngelBtnComponent"),
            U = e("../Components/TestTowerBattleHeroAddtionComponent"),
            G = e("../Components/HolyRelicCondictionGroupComponent"),
            x = e("../Components/ItemCountComponent"),
            H = e("./ActivityHeroTestTowerEntryPanel"),
            F = e("../Components/SkillItemComponent"),
            j = e("./ActivityBossPanel"),
            W = e("./ActivityHeroPKPanel"),
            z = e("./ActivityChampionPanel"),
            q = e("./ActivitySinglePageGiftPanel"),
            V = e("../Components/GameModuleGuideManager"),
            Z = e("../Components/ElementStrengthenComponent"),
            K = cc._decorator,
            J = K.ccclass,
            X = K.property,
            Q = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0, !1, !0, l.AssetUnloadMode.Normal, !1), t.Bg = null, t.TitleNode = null, t.TitleContainer = null, t.Title = null, t.TitleContainer2 = null, t.Title2 = null, t.PanelName = null, t.DescNode = null, t.Desc = null, t.AttackPower = null, t.DefensePower = null, t.AttackElement = null, t.AttackElementBtn = null, t.DefenseElement = null, t.DefenseElementBtn = null, t.ElementStrengthenNode = null, t.HeroBottomContainer = null, t.AttackContainer = null, t.AttackContainerChilds = [], t.DefenseContainer = null, t.HeroTopContainer = null, t.HeroListComponent = null, t.Toggles = [], t.ReturnBtn = null, t.BattleBtn = null, t.BattleBtnLabel = null, t.FormationBtn = null, t.FormationIcon = null, t.FormationLabel = null, t.FormationOffBtn = null, t.FormationOffBtnLabel = null, t.FormationUpBtn = null, t.FormationUpBtnLabel = null, t.VSNode = null, t.BattleInfoContainer = null, t.AdjustFormationBtn = null, t.NodeMoveContainer = null, t.RuleBtn = null, t.LevelStarBtn = null, t.StarConditionComponent = null, t.AllianceTrainingHint = null, t.ElementTrialHint = null, t.AllianceElementTip = null, t.HeroDungeonNode = null, t.HeroDungeonUpHeroNode = null, t.BattleFormationSwitchNode = null, t.FutureMapInfoNode = null, t.AttrBounsNode = null, t.AttrBounsTitle = null, t.AttrBounsIcon = null, t.AttrBounsName = null, t.AttrBounsValue = null, t.StarConditionComponent2 = null, t.Tag2 = null, t.ConditionLayout2 = null, t.TeamComponentNode = null, t.MaterialComponent = null, t.AngelButtonNode = null, t.AttackAngelNode = null, t.DefenseAngelNode = null, t.HeroElementGroupNode = null, t.GuidTipNode = null, t.GuidTipRichText = null, t.GuidTipCloseNode = null, t.HeroTestTowerAddtionNode = null, t.HolyRelicConfigBtn = null, t.HolyRelicConfigLabel = null, t.RewardNode = null, t.RewardTitle = null, t.RewardContent = null, t.ActivityBossNode = null, t.ActivityBossBuffNode = null, t.ActivityBossReduce = null, t.BossSkillInfoButton = null, t.BossSkillInfoButtonLabel = null, t.ToggleScrollView = null, t.ToggleItem = null, t.FormationContainer = null, t.AttackPowerIcon = null, t.AttackPowerPattern = null, t.AttackPowerBg = null, t._teamIndex = 0, t._excludeMonsterIds = [], t._starConditionNodes = [], t._angelIds = [], t._isAngelDataInit = !1, t._itemCountNodes = [], t._tempMapTypes = [], t.EndlessAbyssEditorId = 902, t.EndlessAbyssSId = 901, t.CONDITION_ITEM_PATH = "ItemsComponent/StarConditionItem", t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_FORMATIONITEM_OFFTEAM, this.HeroOffFormation, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_FORMATIONTYPE_CHANGED, this.OnFormationChanged, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_FORMATIONDATA_CHANGED, this.OnFormationDataChanged, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_SET_FORMATION_ANGEL, this.SetFormationAngel, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_FORMATIONITEM_OFFTEAM, this.HeroOffFormation), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_FORMATIONTYPE_CHANGED, this.OnFormationChanged), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_FORMATIONDATA_CHANGED, this.OnFormationDataChanged), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_SET_FORMATION_ANGEL, this.SetFormationAngel, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("BattleFormationPanel/BattleFormationItem", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelBtnComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._formationItemPrefab = e[0], r._itemPrefab = e[1], r._angelBtnPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.ReturnBtn.node.on("click", this.OnReturnClick, this), this.AttackElementBtn.node.on("click", this.OnClickAttackElement, this), this.DefenseElementBtn.node.on("click", this.OnClickDefenseElement, this), this.FormationBtn.node.on("click", this.OnFormationBtnClick, this), this.FormationOffBtn.node.on("click", this.OnFomationOff, this), this.FormationUpBtn.node.on("click", this.OnFormationUpButtonClick, this), this.BattleBtn.node.on("click", this.OnBattleClick, this), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.HolyRelicConfigBtn.node.on("click", this.OnHolyRelicConfigBtn, this), this.BossSkillInfoButton.node.on("click", this.OnBossSkillInfoButtonClick, this), this.FormationLabel.string = "formation_change".ToUILocale(), this.FormationUpBtnLabel.string = "formation_auto".ToUILocale(), this.HolyRelicConfigLabel.string = "HolyRelic_config".ToUILocale(), this.RewardTitle.string = "elementArena_win_get".ToUILocale(), this.BossSkillInfoButtonLabel.string = "allianceTest_BossSkill".ToUILocale(), this.GuidTipCloseNode.on(cc.Node.EventType.TOUCH_END, function() {
                        t.GuidTipNode.active = !1
                    }, this), this._elementOriginalPoxY = this.ElementTrialHint.position.y, this.ToggleScrollView.enabled = !1, this.InitAttackFormations(), this.InitDefenseFormations()
                }, t.prototype.InitAttackFormations = function() {
                    this._attackFormationItems = [];
                    for (var e = 0; e < this.AttackContainer.childrenCount; e++) {
                        var t = this.AttackContainerChilds[e],
                            n = cc.instantiate(this._formationItemPrefab);
                        n.setParent(t), this._attackFormationItems.push(n.getComponent(b.default)), this._attackFormationItems[e].SetBasePanel(this)
                    }
                }, t.prototype.InitDefenseFormations = function() {
                    this._defenseFormationItems = [];
                    for (var e = 0; e < this.DefenseContainer.childrenCount; e++) {
                        var t = this.DefenseContainer.children[e],
                            n = Number.parseInt(t.name) - 1,
                            o = cc.instantiate(this._formationItemPrefab);
                        o.setParent(t), this._defenseFormationItems[n] = o.getComponent(b.default), this._defenseFormationItems[n].SetBasePanel(this)
                    }
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this), this._battleCallback = t[0], this._mapIdArr = t[1], this._teamIndex = 0, this._activityId = 0, t.length > 2 && t[2]) {
                        var n = t[2];
                        n instanceof u.Res_Player_GetPlayerDetailInfo ? this._arenaDefenseData = n : "number" == typeof n ? this._activityId = n : (this._panelData = n, this._panelData.ExcludeMonsterIds && (this._excludeMonsterIds = this._panelData.ExcludeMonsterIds), this._panelData.TeamIndex && (this._teamIndex = this._panelData.TeamIndex), this._panelData.ActivityId && (this._activityId = this._panelData.ActivityId))
                    }
                    this._panelData && this._panelData.HasLockedAllHeroes && (this.FormationOffBtn.node.active = !1), this._tempMapTypes = [c.MapType.ArtefactRelic], this._atkShowType = b.ShowFormationItemType.Hero
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this._mapIdArr[0], n = f.ConfigDataComponent.Instance.GetConfigById(y.MapBase_Config, t), o = "BattleBg/" + n.Bg, [4, this.LoadDynamicAsset(o, cc.SpriteFrame)];
                                case 1:
                                    return r = i.sent(), this.Bg.spriteFrame = r, [2]
                            }
                        })
                    })
                }, t.prototype.ResetPanelState = function() {
                    for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].node.active = !1;
                    this._isGoingBattle = !0
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ConfigMapData(), this.SetLeftPowerState(), this.SetFormationContainerPos(), this.SetTitleNodePos(), this.InitAngelData(), this.InitSwitchFormation(), this.ConfigAttackFormationData(), this.ConfigHeroList(), this.RefreshAttackHeroes(), this.ConfigPanelState(), this.RefreshAttackAngel(), this.SetButtons(), this.SetHolyRelicCondiction(), this.SetActivityBossNode(), this.SetElementStrengthenComponent(), this.ShowGameGuid()
                }, t.prototype.SetTitleNodePos = function() {
                    switch (this._mapConfig.Type) {
                        case c.MapType.EndlessAbyssSingle:
                        case c.MapType.EndlessAbyssMulti:
                            this.TitleNode.y = -17;
                            break;
                        default:
                            this.TitleNode.y = -151
                    }
                }, t.prototype.SetLeftPowerState = function() {
                    switch (this._mapConfig.Type) {
                        case c.MapType.SaintsWar1:
                        case c.MapType.SaintsWar2:
                        case c.MapType.SaintsWar3:
                            this.AttackPower.node.x = -52, this.AttackPowerIcon.x = -91, this.AttackPowerPattern.active = !1, this.AttackPowerBg.scale = -1, this.AttackPowerBg.x = 65;
                            break;
                        default:
                            this.AttackPower.node.x = -115, this.AttackPowerIcon.x = 139, this.AttackPowerPattern.active = !0, this.AttackPowerBg.scale = 1, this.AttackPowerBg.x = 0
                    }
                }, t.prototype.SetFormationContainerPos = function() {
                    switch (this._mapConfig.Type) {
                        case c.MapType.AncientSacred:
                        case c.MapType.SaintsWar1:
                        case c.MapType.SaintsWar2:
                        case c.MapType.SaintsWar3:
                        case c.MapType.CrossZoneContinueWarRank:
                            this.FormationContainer.y = 160;
                            break;
                        default:
                            this.FormationContainer.y = 69
                    }
                }, t.prototype.ConfigMapData = function() {
                    this._mapConfig = f.ConfigDataComponent.Instance.GetConfigById(y.MapBase_Config, this._mapIdArr[this._teamIndex]);
                    var e = f.ConfigDataComponent.Instance.GetConfigById(y.MapType_Config, this._mapConfig.Type);
                    switch (this.TitleContainer.active = !0, this._mapConfig.Type) {
                        case c.MapType.Arena:
                            this._arenaDefenseData ? this._formationSids = e.AttackerFormation : this._formationSids = e.DefenderFormation;
                            break;
                        case c.MapType.CrossServerArena:
                            this._panelData.IsDefense ? this._formationSids = e.DefenderFormation : this._formationSids = e.AttackerFormation;
                            break;
                        case c.MapType.AllianceTest:
                            var t = f.DataCenter.Instance.GetIntData(c.UserDataKey.AllianceTestCount);
                            this._formationSids = [e.AttackerFormation[t]];
                            break;
                        case c.MapType.RankMatch:
                            this._panelData.SeniorReport ? this._panelData.CanSwitchFormation ? this._formationSids = e.AttackerFormation : this._formationSids = [e.AttackerFormation[0]] : this._panelData.CanSwitchFormation ? this._formationSids = e.DefenderFormation : this._formationSids = [e.DefenderFormation[0]];
                            break;
                        case c.MapType.SeniorArena:
                            this._panelData.SeniorReport ? this._formationSids = e.AttackerFormation : this._formationSids = e.DefenderFormation;
                            break;
                        case c.MapType.CrossZoneRank:
                        case c.MapType.CrossZoneContinueWarRank:
                        case c.MapType.ActChampionship:
                        case c.MapType.ActBreakou:
                            if (this._panelData && this._panelData.TeamNum) {
                                for (var n = [], o = 0; o < this._panelData.TeamNum; o++) n.push(e.AttackerFormation[o]);
                                this._formationSids = n
                            } else this._formationSids = e.AttackerFormation;
                            break;
                        case c.MapType.CrossZoneAllianceChallenge:
                            this._panelData.IsDefense ? this._formationSids = e.DefenderFormation : this._formationSids = e.AttackerFormation;
                            break;
                        case c.MapType.SaintsWar1:
                        case c.MapType.SaintsWar2:
                        case c.MapType.SaintsWar3:
                            this._mapIdArr.length > 1 ? (this._formationSids = [c.FormationIdType.SaintsWar1, c.FormationIdType.SaintsWar2, c.FormationIdType.SaintsWar3], this.TitleContainer.active = !1) : this._formationSids = e.AttackerFormation;
                            break;
                        case c.MapType.ActivityHeroTry:
                        case c.MapType.ActivityHeroTry2:
                        case c.MapType.ActivityHeroTry3:
                        case c.MapType.ActivityHeroTry4:
                        case c.MapType.ActivityHeroTry5:
                        case c.MapType.ActivityHeroTry6:
                        case c.MapType.ActivityHeroTry7:
                        case c.MapType.ActivityHeroTry8:
                        case c.MapType.ActivityHeroTry9:
                        case c.MapType.ActivityHeroTry10:
                            var r = f.DataCenter.Instance.GetTempData(R.default.TEMP_MAPTYPE_HEROSID + this._mapConfig.Type);
                            this._formationSids = [r];
                            break;
                        case c.MapType.ActivitySkinTry:
                        case c.MapType.ActivitySkinTry2:
                        case c.MapType.ActivitySkinTry3:
                        case c.MapType.ActivitySkinTry4:
                            var i = f.DataCenter.Instance.GetTempData(q.default.TEMP_MAPTYPE_SKINID + this._mapConfig.Type);
                            this._formationSids = [i];
                            break;
                        case c.MapType.HeroTestTower1:
                        case c.MapType.HeroTestTower2:
                        case c.MapType.HeroTestTower3:
                        case c.MapType.HeroTestTower4:
                        case c.MapType.HeroTestTower5:
                        case c.MapType.HeroTestTower6:
                        case c.MapType.HeroTestTower7:
                        case c.MapType.HeroTestTower8:
                        case c.MapType.HeroTestTower9:
                            var a = f.DataCenter.Instance.GetTempData(H.default.TEMP_HEROTESTTOWER_HEROSID + this._mapConfig.Type);
                            this._formationSids = [a];
                            break;
                        case c.MapType.ArtefactRelic:
                        case c.MapType.AncientSacred:
                            var s = e.AttackerFormation;
                            for (this._formationSids = [], o = 0; o < this._mapIdArr.length; o++) s[o] && this._formationSids.push(s[o]);
                            this.TitleContainer.active = !1;
                            break;
                        case c.MapType.StarLightSecretLand:
                        case c.MapType.GodLandDuel:
                        case c.MapType.WarAngel:
                            this._atkShowType = b.ShowFormationItemType.Angel, this._formationSids = e.AttackerFormation;
                            break;
                        default:
                            this._formationSids = e.AttackerFormation
                    }
                    if (this.TitleContainer.active) {
                        var l = "";
                        if (this._mapConfig.Type == c.MapType.MainLine) {
                            var u = P.default.Instance.GetMapChapterInfo(this._mapIdArr[this._teamIndex]);
                            l = "<outline color=#202434 width=3>" + "assistant_toggle_0".ToUILocale() + "<color=#FED94A>" + u[0] + "-" + u[1] + "</color></outline>"
                        } else l = this._mapIdArr[this._teamIndex].ToMapName();
                        this._panelData && (this._panelData.PanelTitle ? l = this._panelData.PanelTitle : this._panelData.MapIndex && (l = "<outline color=#202434 width=3><color=#FFFFFF>" + this._mapIdArr[this._teamIndex].ToMapName() + "</color>" + "mapLevel_index".ToUILocale().Fmt(this._panelData.MapIndex) + "</outline>")), this.Title.string = l
                    }
                }, t.prototype.InitAngelData = function() {
                    var e = this;
                    if (this._mapConfig.Type != c.MapType.StarLightSecretLand && this._mapConfig.Type != c.MapType.GodLandDuel && !this._isAngelDataInit) {
                        if (this._angelIds = [], this._isAngelDataInit = !0, this._tempMapTypes.includes(this._mapConfig.Type)) return;
                        var t = {};
                        if (this._formationSids.forEach(function(n) {
                                var o, r = f.DataCenter.Instance.GetDataById(u.UserFormation_Model, n);
                                o = r && r.Angel && r.Angel.AngelId > 0 ? r.Angel.AngelId : 0, e._angelIds.push(o), t[n] = o
                            }), this._mapConfig.Type == c.MapType.CrossZoneAllianceChallenge) {
                            if (t[c.FormationIdType.AllianceChallengeDefend1] && t[c.FormationIdType.AllianceChallengeDefend2] && t[c.FormationIdType.AllianceChallengeDefend1] > 0) return void _.UIUtlity.ShowFloatingHint("same_angel_hint".ToUILocale());
                            if (t[c.FormationIdType.AllianceChallengeAttack1] && t[c.FormationIdType.AllianceChallengeAttack2] && t[c.FormationIdType.AllianceChallengeAttack1] > 0) return void _.UIUtlity.ShowFloatingHint("same_angel_hint".ToUILocale())
                        }
                    }
                }, t.prototype.InitToggles = function() {
                    if (!this._isInitToggle) {
                        if (this._formationSids.length > 1) {
                            this.ToggleScrollView.enabled = this._formationSids.length >= 5;
                            for (var e = 0; e < this._formationSids.length; e++) {
                                if (!(o = this.Toggles[e])) {
                                    var t = cc.instantiate(this.ToggleItem);
                                    t.parent = this.ToggleScrollView.content, t.name = e.toString(), o = t.getComponent(g.default), this.Toggles[e] = o
                                }
                                switch (o.node.active = !0, o.node.on("toggle", this.OnSwitchTab, this), this._mapConfig.Type) {
                                    case c.MapType.SaintsWar1:
                                    case c.MapType.SaintsWar2:
                                    case c.MapType.SaintsWar3:
                                        var n = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, this._panelData.LuckyHeroIds[e]);
                                        o.Init(("saintsWar_mapName_" + n.ElementType).ToUILocale());
                                        break;
                                    case c.MapType.War:
                                        o.Init("formation_index".ToUILocale().Fmt(e + 1));
                                        break;
                                    default:
                                        o.Init("formation_index".ToUILocale().Fmt(e + 1))
                                }
                                o.isChecked = this._teamIndex == e
                            }
                            this._formationSids.length >= 5 && this.ToggleScrollView.scrollToLeft()
                        }
                        if (this._mapConfig.Type == c.MapType.ArtefactRelic)
                            for (e = 0; e < this._mapIdArr.length; e++) {
                                var o;
                                (o = this.Toggles[e]).node.active = !0, o.node.on("toggle", this.OnSwitchTab, this), o.Init("formation_index".ToUILocale().Fmt(e + 1))
                            }
                        this._isInitToggle = !0
                    }
                }, t.prototype.SetAllianceWarToggles = function() {
                    var e = ["allianceWar_defense".ToUILocale(), "allianceWar_logistics".ToUILocale()],
                        t = ["allianceWar_attack".ToUILocale(), "allianceWar_spy".ToUILocale()];
                    if (this._formationSids.length > 1)
                        for (var n = 0; n < this._formationSids.length; n++) {
                            var o = this.Toggles[n];
                            o.node.active = !0, o.node.on("toggle", this.OnSwitchTab, this), o.isChecked = this._teamIndex == n, this._panelData.IsDefense ? o.Init(e[n]) : o.Init(t[n])
                        }
                }, t.prototype.InitSwitchFormation = function() {
                    switch (this._mapConfig.Type) {
                        case c.MapType.SeniorArena:
                            this.BattleFormationSwitchNode.active = !0;
                            break;
                        case c.MapType.RankMatch:
                            if (this.BattleFormationSwitchNode.active = !!this._panelData.CanSwitchFormation, !this._panelData.CanSwitchFormation) {
                                var e = this._panelData.SeniorReport;
                                return this._defenseTeamIndex = 0, void(this._defenseTeamInfo = e ? [{
                                    Heroes: e.Formations[0].Heros,
                                    FormationType: e.Formations[0].FormationType,
                                    Power: e.Formations[0].Power,
                                    AngelModel: e.Formations[0].Angel,
                                    Pets: e.Formations[0].Pets,
                                    MagicCircles: e.MagicCircles
                                }] : [])
                            }
                            break;
                        default:
                            return void(this.BattleFormationSwitchNode.active = !1)
                    }
                    var t = cc.find("Attack", this.BattleFormationSwitchNode);
                    this._attackSwitchFormation = t.getComponent(T.default), this._attackSwitchFormation.Init(1, this._teamIndex, this.OnSwitchAttackFormation.bind(this)), this._defenseTeamIndex = 0;
                    var n = cc.find("Defense", this.BattleFormationSwitchNode);
                    this._defenseSwitchFormation = n.getComponent(T.default), this._defenseSwitchFormation.Init(2, this._defenseTeamIndex, this.OnSiwchDefenseFormation.bind(this));
                    var o = this._panelData.SeniorReport;
                    if (!o) return n.active = !1, void(this._defenseTeamInfo = []);
                    n.active = !0, this._defenseTeamInfo = [{
                        Heroes: o.Formations[0].Heros,
                        FormationType: o.Formations[0].FormationType,
                        Power: o.Formations[0].Power,
                        AngelModel: o.Formations[0].Angel,
                        Pets: o.Formations[0].Pets
                    }, {
                        Heroes: o.Formations[1].Heros,
                        FormationType: o.Formations[1].FormationType,
                        Power: o.Formations[1].Power,
                        AngelModel: o.Formations[1].Angel,
                        Pets: o.Formations[1].Pets
                    }, {
                        Heroes: o.Formations[2].Heros,
                        FormationType: o.Formations[2].FormationType,
                        Power: o.Formations[2].Power,
                        AngelModel: o.Formations[2].Angel,
                        Pets: o.Formations[2].Pets
                    }]
                }, t.prototype.OnSwitchAttackFormation = function(e) {
                    this._teamIndex = e, this.ConfigMapData(), this.RefreshFormationInfo(), this.ConfigHeroList(), this.RefreshAttackHeroes(), this.RefreshAttackAngel(), this.SetAngelButton()
                }, t.prototype.OnSiwchDefenseFormation = function(e) {
                    this._defenseTeamIndex = e, this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.RefreshDefenseAngel()
                }, t.prototype.SortDefenseTeamByPower = function(e, t) {
                    return e.Power < t.Power ? -1 : e.Power > t.Power ? 1 : 0
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.name);
                    this._teamIndex != t && (this._teamIndex = t, this.ConfigMapData(), this.RefreshFormationInfo(), this.ConfigHeroList(), this.RefreshAttackHeroes(), this.RefreshAttackAngel(), this.ConfigPanelState(), this.ResetStarCondition(), this.SetStarCondition2(), this.SetAngelButton())
                }, t.prototype.ConfigPanelState = function() {
                    var e = !1;
                    switch (this.AllianceTrainingHint.active = !1, this.ElementTrialHint.active = !1, this.HeroDungeonNode.active = !1, this.HeroDungeonUpHeroNode.active = !1, this.DescNode.active = !1, this.RewardNode.active = !1, this._mapConfig.Type) {
                        case c.MapType.EndlessAbyssSingle:
                            this.DefenseContainer.active = !1, this.BattleInfoContainer.active = !1, e = !0;
                            break;
                        case c.MapType.EndlessAbyssMulti:
                            this.DefenseContainer.active = !1, this.BattleInfoContainer.active = !1;
                            break;
                        case c.MapType.Arena:
                            this._arenaDefenseData ? (this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.RefreshDefenseAngel(), this.InitToggles()) : (this.DefenseContainer.active = !1, this.DefenseElementBtn.node.active = !1, this.DefensePower.node.parent.active = !1, this.VSNode.active = !1, this._isGoingBattle = !1);
                            break;
                        case c.MapType.CrossServerArena:
                            this._panelData.IsDefense ? (this.DefenseContainer.active = !1, this.DefenseElementBtn.node.active = !1, this.DefensePower.node.parent.active = !1, this.VSNode.active = !1, this._isGoingBattle = !1) : (this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.RefreshDefenseAngel(), this.InitToggles());
                            break;
                        case c.MapType.AllianceTest:
                            this.AllianceTrainingHint.active = !0, this.ConfigAllianceTrainingHint(), this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles();
                            break;
                        case c.MapType.ActivityElementHeart:
                        case c.MapType.ActivityElementPower:
                        case c.MapType.ActivityElementTech:
                        case c.MapType.ActivityElementBreak:
                        case c.MapType.ActivityElementFight:
                            this.ElementTrialHint.active = !0, this.ConfigElementTrialHint(), this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles();
                            break;
                        case c.MapType.HeroDungeon:
                        case c.MapType.HeroDungeon2:
                        case c.MapType.HeroDungeon3:
                        case c.MapType.HeroDungeon4:
                        case c.MapType.HeroDungeon5:
                        case c.MapType.HeroDungeon6:
                        case c.MapType.HeroDungeon7:
                        case c.MapType.HeroDungeon8:
                        case c.MapType.HeroDungeon9:
                            this.HeroDungeonNode.active = !0, this.HeroDungeonUpHeroNode.active = !0, this.ConfigHeroDungeonHit(), this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles();
                            break;
                        case c.MapType.SeniorArena:
                        case c.MapType.RankMatch:
                            this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.RefreshDefenseAngel(), this.DescNode.active = !0, this.Desc.string = "SeniorArenaFormationHint".ToUILocale();
                            break;
                        case c.MapType.WorldBossZone:
                        case c.MapType.WorldBossCrossZone:
                        case c.MapType.WorldBossAlliance:
                            this.ConfigBossWarHint(), this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles();
                            break;
                        case c.MapType.ActivitySecret1:
                        case c.MapType.ActivitySecret2:
                        case c.MapType.ActivitySecret3:
                        case c.MapType.ActivitySecret4:
                        case c.MapType.ActivitySecret5:
                        case c.MapType.ActivitySecretUser1:
                        case c.MapType.ActivitySecretUser2:
                        case c.MapType.ActivitySecretUser3:
                        case c.MapType.ActivitySecretUser4:
                        case c.MapType.ActivitySecretUser5:
                        case c.MapType.SeasonExpedition:
                        case c.MapType.SeasonExpedition1:
                        case c.MapType.SeasonExpedition2:
                        case c.MapType.SeasonExpedition3:
                        case c.MapType.SeasonExpedition4:
                        case c.MapType.SeasonExpedition5:
                            this.ConfigSecretElementNode(), this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles();
                            break;
                        case c.MapType.CrossZoneAllianceChallenge:
                            this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.SetAllianceWarToggles();
                            break;
                        case c.MapType.SaintsWar1:
                        case c.MapType.SaintsWar2:
                        case c.MapType.SaintsWar3:
                            this._panelData && this._panelData.IsSaveFormationState ? (this.DefenseContainer.active = !1, this.DefenseElementBtn.node.active = !1, this.DefensePower.node.parent.active = !1, this.VSNode.active = !1, this.InitToggles(), this.RefreshFutureMapLevelInfo(), this.RefreshAttrBouns()) : (this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes());
                            break;
                        case c.MapType.War:
                        case c.MapType.WarAngel:
                            this.DescNode.active = !0, this.Title.string = "formation_index".ToUILocale().Fmt(this._teamIndex + 1), this.ConfigAllianceCityWarHint(), this.InitToggles();
                            break;
                        case c.MapType.HeroTestTower1:
                        case c.MapType.HeroTestTower2:
                        case c.MapType.HeroTestTower3:
                        case c.MapType.HeroTestTower4:
                        case c.MapType.HeroTestTower5:
                        case c.MapType.HeroTestTower6:
                        case c.MapType.HeroTestTower7:
                        case c.MapType.HeroTestTower8:
                        case c.MapType.HeroTestTower9:
                            this.ConfigHeroTestTowerHeroAddtionHint(), this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes();
                            break;
                        case c.MapType.HeroPK:
                            this.ConfigHeroTestTowerHeroAddtionHint(), this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles(), this._isGoingBattle = !1;
                            break;
                        case c.MapType.ActChampion11:
                        case c.MapType.ActChampion12:
                        case c.MapType.ActChampion31:
                        case c.MapType.ActChampion32:
                            this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles();
                            break;
                        case c.MapType.ElementArena:
                            this.RewardNode.active = !0, this.HolyRelicConfigBtn.node.active = !0, this.TitleContainer.active = !1, this.ConfigRewardNode(), this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles();
                            break;
                        case c.MapType.StarLightSecretLand:
                        case c.MapType.GodLandDuel:
                            this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.FormationUpBtn.node.active = !1, this.FormationOffBtn.node.active = !1;
                            break;
                        case c.MapType.AncientSacred:
                        case c.MapType.TestTower:
                        case c.MapType.TowerHeart:
                        case c.MapType.TowerPower:
                        case c.MapType.TowerTech:
                        case c.MapType.TowerBreak:
                        case c.MapType.TowerFight:
                            this.BossSkillInfoButton.node.active = !!this._mapConfig.IsBossBattle, this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles();
                            break;
                        default:
                            this.ConfigDefenseFormationData(), this.RefreshDefenseHeroes(), this.InitToggles()
                    }
                    this._panelData && this._panelData.IsSaveFormationState && (this._isGoingBattle = !1), this._isGoingBattle ? this.BattleBtnLabel.string = "battle_btn".ToUILocale() : this.BattleBtnLabel.string = "formation_save".ToUILocale(), e && (this.RuleBtn.node.active = !0)
                }, t.prototype.ConfigAllianceCityWarHint = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._cityWarTeamComponent ? [3, 2] : (this.BattleInfoContainer.active = !1, this.FormationBtn.node.active = !1, this.AttackContainer.active = !1, this.DefenseContainer.active = !1, this.FormationUpBtn.node.active = !0, this.MaterialComponent.node.active = !0, this.BattleBtn.node.x = 350, this.PanelName.string = this._mapIdArr[this._teamIndex].ToMapName(), this.FormationOffBtnLabel.string = "formation_off_auto".ToUILocale(), [4, this.LoadDynamicAsset("StrongholdWarPanel/Components/StrongholdWarBattleFormationComponent", cc.Prefab)]);
                                case 1:
                                    if (e = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    (t = cc.instantiate(e)).setParent(this.TeamComponentNode), this._cityWarTeamComponent = t.getComponent(M.default), i.label = 2;
                                case 2:
                                    for (this._cityWarFormationInfo[this._formationSids[this._teamIndex]] && 0 != this._cityWarFormationInfo[this._formationSids[this._teamIndex]].Items[0] ? (this.Desc.string = "StrongholdWar_Team_State_Fight".ToUILocale(), n = !0, this.Desc.node.color = cc.Color.YELLOW) : (this.Desc.string = "StrongholdWar_Team_State_Free".ToUILocale(), this.Desc.node.color = cc.Color.GREEN, n = !1), o = [], r = 0; r < this._formationHeroSids[this._teamIndex].length; r++) o.push(this._formationHeroSids[this._teamIndex][r]);
                                    return this._cityWarTeamComponent.Init(o, this._mapConfig.Type, n, this._itemPrefab), this.MaterialComponent.Init(this._mapConfig.Type), this.ShowCityWarModuleGuide(), [2]
                            }
                        })
                    })
                }, t.prototype.ConfigAllianceTrainingHint = function() {
                    var e = this._mapConfig.Heros[0].Items[1],
                        t = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, e),
                        n = P.default.Instance.GetElementNatureEnemy(t.ElementType);
                    cc.find("ElementNode", this.AllianceTrainingHint).on(cc.Node.EventType.TOUCH_END, this.OnClickAllianceElement, this), cc.find("ElementNode/Element", this.AllianceTrainingHint).getComponent(cc.Sprite).spriteFrame = _.UIUtlity.GetHeroElementIcon(n), cc.find("ElementNode/ElementInfo", this.AllianceTrainingHint).getComponent(cc.Label).string = "hero_attr_14".ToUILocale(), cc.find("Hint/HintInfo", this.AllianceTrainingHint).getComponent(cc.RichText).string = "hero_battle_times_limit".ToUILocale(), cc.find("ElemtTip/ClickArea", this.AllianceTrainingHint).on(cc.Node.EventType.TOUCH_END, this.OnClickAllianceMouseArea, this), cc.find("ElemtTip/Content/Title", this.AllianceTrainingHint).getComponent(cc.RichText).string = "<outline color=#202434 width=3>" + n.ToElementEffectName() + "</outline>";
                    var o = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceTestRestrain");
                    cc.find("ElemtTip/Content/Info", this.AllianceTrainingHint).getComponent(cc.RichText).string = "<outline color=#202434 width=3>" + "allianceTest_bossWeaknessDesc".ToUILocale().Fmt(("hero_element_" + n).ToUILocale(), "" + o / 10) + "</outline>"
                }, t.prototype.ConfigElementTrialHint = function() {
                    if (this._activityId) {
                        var e = p.DataCenter.Instance.ActivityConfigs[this._activityId],
                            t = e.CustomPart.Element;
                        cc.find("ElementNode/Element", this.ElementTrialHint).getComponent(cc.Sprite).spriteFrame = _.UIUtlity.GetHeroElementIcon(t), cc.find("ElementNode/ElementInfo", this.ElementTrialHint).getComponent(cc.Label).string = "elementTrial_element".ToUILocale(), cc.find("Hint/HintInfo", this.ElementTrialHint).getComponent(cc.RichText).string = "<outline color=#202434 width=3>" + "elementTrial_other_weaken".ToUILocale().Fmt(Math.round(e.CustomPart.AttrWeaken / 10) + "%") + "</outline>"
                    } else this.ElementTrialHint.active = !1
                }, t.prototype.ConfigSecretElementNode = function() {
                    this.ElementTrialHint.active = !0;
                    var e = f.ConfigDataComponent.Instance.GetConfigById(y.SecretActivityMap_Config, this._panelData.SecretMapId);
                    cc.find("ElementNode/Element", this.ElementTrialHint).getComponent(cc.Sprite).spriteFrame = _.UIUtlity.GetHeroElementIcon(e.ElementType), cc.find("ElementNode/ElementInfo", this.ElementTrialHint).getComponent(cc.Label).string = "element_advantage".ToUILocale(), cc.find("Hint/HintInfo", this.ElementTrialHint).getComponent(cc.RichText).string = "<outline color=#202434 width=3>" + "elementTrial_other_weaken".ToUILocale().Fmt(Math.round(e.AttrWeaken / 10) + "%") + "</outline>", this.ElementTrialHint.setPosition(this.ElementTrialHint.x, this._elementOriginalPoxY + 880)
                }, t.prototype.ConfigHeroTestTowerHeroAddtionHint = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.HeroTestTowerAddtionNode.active = !0, this._activityId ? this._heroTestTowerAddtionPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("ActivityHeroTestTowerPanel/Components/TestTowerBattleHeroAddtionComponent", cc.Prefab)]) : [2];
                                case 1:
                                    if (e._heroTestTowerAddtionPrefab = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._heroTestTowerAddtionPrefab), [2];
                                    (t = cc.instantiate(this._heroTestTowerAddtionPrefab)).setParent(this.HeroTestTowerAddtionNode), t.getComponent(U.default).Init(this._activityId, this._itemPrefab), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ConfigRewardNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._activityId ? (e = p.DataCenter.Instance.ActivityConfigs[this._activityId]).Common.Type != w.ActivityType.ElementArena ? [2] : this._itemCountPrefab ? [3, 2] : [4, this.LoadDynamicAsset("ItemsComponent/ItemCountComponent", cc.Prefab)] : (this.RewardNode.active = !1, [2]);
                                case 1:
                                    if (t = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._itemCountPrefab = t, r.label = 2;
                                case 2:
                                    return n = [], this._formationHeroSids[0].forEach(function(e) {
                                        if (e > 0) {
                                            var t = f.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                                            n.push(t.HeroId)
                                        }
                                    }), this._itemCountNodes.forEach(function(e) {
                                        e.active = !1
                                    }), n.forEach(function(t, n) {
                                        if (!o._itemCountNodes[n]) {
                                            var r = cc.instantiate(o._itemCountPrefab);
                                            r.parent = o.RewardContent, r.y = -18, o._itemCountNodes[n] = r
                                        }
                                        var i = p.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, t);
                                        o._itemCountNodes[n].active = !0;
                                        var a = o._itemCountNodes[n].getComponent(x.default),
                                            s = e.CustomPart.BadgeRewards.find(function(e) {
                                                return e.Items[0] == i.ElementType
                                            });
                                        if (s) {
                                            var l = "<outline color=#202434 width=3><color=#ffffff>{0}</c></o>".Fmt(s.Items[2]);
                                            a.Init(s.Items[1], l, .24, -8), a.SetCountBg(!1), a.SetCountInfo(20)
                                        }
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshFutureMapLevelInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, p, d;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._futureMapLevelInfo ? [3, 2] : [4, this.LoadDynamicAsset("BattleFormationPanel/FutureMapLevelInfo")];
                                case 1:
                                    e = s.sent(), t = cc.instantiate(e), this.FutureMapInfoNode.destroyAllChildren(), t.setParent(this.FutureMapInfoNode), this._futureMapLevelInfo = t.getComponent(L.default), s.label = 2;
                                case 2:
                                    switch (n = [], this._mapConfig.Type) {
                                        case c.MapType.SaintsWar1:
                                        case c.MapType.SaintsWar2:
                                        case c.MapType.SaintsWar3:
                                            if (o = f.DataCenter.Instance.GetIntData(c.UserDataKey.SaintsWarDifficultyLevel) || 1, r = f.ConfigDataComponent.Instance.GetConfigById(y.SaintsWarDifficultLevel_Config, o), i = this._teamIndex + 1, a = f.DataCenter.Instance.GetDataById(u.SaintsWar_Model, i), (l = r.MapIds[this._teamIndex].Items).length >= a.MapIndex + 3)
                                                for (p = 0; p < 3; p++) n.push(l[a.MapIndex + p]);
                                            else
                                                for (p = l.length - 3; p < l.length; p++) n.push(l[p])
                                    }
                                    return d = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, this._panelData.LuckyHeroIds[this._teamIndex]), this._futureMapLevelInfo.Init(n, d.ElementType), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshAttrBouns = function() {
                    this.AttrBounsNode.active = !0, this.AttrBounsTitle.string = "saintsWarAttrBonus".ToUILocale();
                    var e = this._panelData.AttrBouns[this._teamIndex].Items;
                    if (e) {
                        var t = P.default.GetHeroAttribute(e[0], e[1], !0);
                        this.AttrBounsIcon.spriteFrame = t.Icon, this.AttrBounsName.string = t.Name, this.AttrBounsValue.string = "+" + t.Value
                    }
                }, t.prototype.ConfigHeroDungeonHit = function() {
                    if (this._activityId) {
                        var e = p.DataCenter.Instance.ActivityConfigs[this._activityId];
                        if (e.Common.Type == w.ActivityType.HeroDungeon) {
                            var t = e.CustomPart.HeroId,
                                n = !1,
                                o = 0;
                            this.HeroListComponent.SelectSIds.forEach(function(e) {
                                var r = f.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                                r.HeroId == t && (n = !0, o = Math.max(o, r.StarLevel))
                            });
                            var r = this.HeroDungeonNode.getChildByName("DropHint"),
                                i = r.getChildByName("DropHintInfo").getComponent(cc.RichText),
                                a = r.getChildByName("UpNode"),
                                s = r.getChildByName("DownNode"),
                                l = this.HeroDungeonNode.getChildByName("AttrHint"),
                                c = l.getChildByName("AttrHintInfo").getComponent(cc.RichText),
                                d = l.getChildByName("UpNode"),
                                h = l.getChildByName("DownNode"),
                                y = "",
                                g = "",
                                m = "";
                            if (n && o >= 5)
                                if (e.CustomPart.Bonus[o - 5]) y = Math.round(e.CustomPart.Bonus[o - 5].Items[0] / 10) + "%", g = Math.round(e.CustomPart.Bonus[o - 5].Items[1] / 10) + "%", m = "#00ff00";
                                else if (o - 5 >= e.CustomPart.Bonus.length) {
                                var _ = e.CustomPart.Bonus.length - 1;
                                y = Math.round(e.CustomPart.Bonus[_].Items[0] / 10) + "%", g = Math.round(e.CustomPart.Bonus[_].Items[1] / 10) + "%", m = "#00ff00"
                            } else y = "0%", g = Math.round(e.CustomPart.AttrWeaken / 10) + "%", m = "#ff4b4b";
                            else y = "0%", g = Math.round(e.CustomPart.AttrWeaken / 10) + "%", m = "#ff4b4b";
                            i.string = "heroDungeon_cur_drop".ToUILocale().Fmt(m, y), c.string = "heroDungeon_cur_attr".ToUILocale().Fmt(m, g), a.active = n && o >= 5, s.active = !1, d.active = n && o >= 5, h.active = !n || o < 5;
                            var C = this.HeroDungeonUpHeroNode.getChildByName("UpHeroNode"),
                                v = this.HeroDungeonUpHeroNode.getChildByName("UpHintInfo").getComponent(cc.Label);
                            C.destroyAllChildren();
                            var b = cc.instantiate(this._itemPrefab);
                            b.parent = C, b.getComponent(I.ItemComponent).Init({
                                ItemId: t,
                                Count: 1
                            }, I.ItemComponentType.HeroInfo), v.string = "heroDungeon_upHreo".ToUILocale()
                        }
                    } else this.HeroDungeonNode.active = !1
                }, t.prototype.ConfigBossWarHint = function() {
                    if (this._activityId) {
                        var e = p.DataCenter.Instance.ActivityConfigs[this._activityId];
                        if (e.Common.Type == w.ActivityType.WorldBoss) {
                            var t = e.CustomPart.Bonus[0];
                            if (1 == t) {
                                this.HeroDungeonNode.active = !0, this.HeroDungeonUpHeroNode.active = !0;
                                var n = e.CustomPart.Bonus[1],
                                    o = e.CustomPart.Bonus[2],
                                    r = !1,
                                    i = 0;
                                this.HeroListComponent.SelectSIds.forEach(function(e) {
                                    var t = f.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                                    t.HeroId == n && (r = !0, i = Math.max(i, t.StarLevel))
                                }), this.HeroDungeonNode.getChildByName("DropHint").active = !1;
                                var a = this.HeroDungeonNode.getChildByName("AttrHint"),
                                    s = a.getChildByName("AttrHintInfo").getComponent(cc.RichText),
                                    l = a.getChildByName("UpNode"),
                                    c = a.getChildByName("DownNode"),
                                    d = "",
                                    h = "",
                                    y = 0;
                                if (r && i >= 5) {
                                    if (e.CustomPart.Bonus[i - 5 + 3]) d = Math.round(e.CustomPart.Bonus[i - 5 + 3] / 10) + "%", y = Math.round(e.CustomPart.Bonus[i - 5 + 3] / 10), h = "#00ff00";
                                    else if (i - 5 >= e.CustomPart.Bonus.length - 3) {
                                        var g = e.CustomPart.Bonus.length - 1;
                                        d = Math.round(e.CustomPart.Bonus[g] / 10) + "%", y = Math.round(e.CustomPart.Bonus[g] / 10), h = "#00ff00"
                                    }
                                } else d = Math.round(o / 10) + "%", y = Math.round(o / 10), h = "#ff4b4b";
                                s.string = "heroDungeon_cur_attr".ToUILocale().Fmt(h, d), l.active = r && i >= 5 && y > 0, c.active = (!r || i < 5) && y > 0;
                                var m = this.HeroDungeonUpHeroNode.getChildByName("UpHeroNode"),
                                    C = this.HeroDungeonUpHeroNode.getChildByName("UpHintInfo").getComponent(cc.Label);
                                m.destroyAllChildren();
                                var v = cc.instantiate(this._itemPrefab);
                                v.parent = m, v.getComponent(I.ItemComponent).Init({
                                    ItemId: n,
                                    Count: 1
                                }, I.ItemComponentType.HeroInfo), C.string = "heroDungeon_upHreo".ToUILocale()
                            } else if (2 == t) {
                                this.ElementTrialHint.active = !0;
                                var b = e.CustomPart.Bonus[1];
                                cc.find("ElementNode/Element", this.ElementTrialHint).getComponent(cc.Sprite).spriteFrame = _.UIUtlity.GetHeroElementIcon(b), cc.find("ElementNode/ElementInfo", this.ElementTrialHint).getComponent(cc.Label).string = "elementTrial_element".ToUILocale(), cc.find("Hint/HintInfo", this.ElementTrialHint).getComponent(cc.RichText).string = "elementTrial_other_weaken".ToUILocale().Fmt(Math.round(e.CustomPart.Bonus[2] / 10) + "%")
                            }
                        }
                    }
                }, t.prototype.ResetStarCondition = function() {
                    this._mapConfig.Type == w.MapType.AncientSacred ? (this.StarConditionComponent.node.active = !0, this.StarConditionComponent.SetElementIconSize(57, 62, 47, 30), this.StarConditionComponent.SetUI(this._panelData.MapIndex - 1, !0, this._teamIndex, this._formationHeroSids)) : this.StarConditionComponent.node.active = !1
                }, t.prototype.SetStarCondition2 = function() {
                    if (this._activityId) switch (this._mapConfig.Type) {
                        case w.MapType.ActivityBoss:
                        case w.MapType.ActivityBoss2:
                        case w.MapType.ActivityBoss3:
                            this.SetActivityBossCondition();
                            break;
                        case w.MapType.ActBreakou:
                            this.SetBreakOutMatch();
                            break;
                        default:
                            this.StarConditionComponent2.active = !1
                    } else this.StarConditionComponent2.active = !1
                }, t.prototype.SetActivityBossCondition = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    if (this.Tag2.string = "activityBoss_condition".ToUILocale(), !(e = f.DataCenter.Instance.ActivityConfigs[this._activityId])) return [3, 5];
                                    if (!(e.Conditions.length > 0)) return [3, 4];
                                    for (t = k.TimeUtil.GetDiffDays(e.Common.StartTime, p.RpcComponent.Instance.ServerTime, !0) + 1, n = [], this.StarConditionComponent2.active = !1, o = 0; o < e.Conditions.length; o++) {
                                        if (t == e.Conditions[o].Id) {
                                            0 == this._teamIndex ? e.Conditions[o].Condition1.length > 0 && (n = this.GetActivityBossConditionData(e.Conditions[o].Condition1, this._teamIndex)) : 1 == this._teamIndex && e.Conditions[o].Condition2.length > 0 && (n = this.GetActivityBossConditionData(e.Conditions[o].Condition2, this._teamIndex));
                                            break
                                        }
                                        o == e.Conditions.length - 1 && (0 == this._teamIndex ? e.Conditions[o].Condition1.length > 0 && (n = this.GetActivityBossConditionData(e.Conditions[o].Condition1, this._teamIndex)) : 1 == this._teamIndex && e.Conditions[o].Condition2.length > 0 && (n = this.GetActivityBossConditionData(e.Conditions[o].Condition2, this._teamIndex)))
                                    }
                                    return n.length > 0 ? (this.StarConditionComponent2.active = !0, this._starConditionPrefab ? [3, 2] : (r = this, [4, this.LoadDynamicAsset(this.CONDITION_ITEM_PATH, cc.Prefab)])) : [3, 3];
                                case 1:
                                    r._starConditionPrefab = a.sent(), a.label = 2;
                                case 2:
                                    this._starConditionNodes.forEach(function(e) {
                                        e.active = !1
                                    }), n.forEach(function(e, t) {
                                        if (!i._starConditionNodes[t]) {
                                            var n = cc.instantiate(i._starConditionPrefab);
                                            n.parent = i.ConditionLayout2, i._starConditionNodes[t] = n
                                        }
                                        i._starConditionNodes[t].active = !0;
                                        var o = e.IsSatisfy ? 0 : 1;
                                        i._starConditionNodes[t].getComponent(O.default).SetUI(o, e.Desc)
                                    }), a.label = 3;
                                case 3:
                                    return [3, 5];
                                case 4:
                                    this.StarConditionComponent2.active = !1, a.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetBreakOutMatch = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this.Tag2.string = "activityBoss_condition".ToUILocale(), (e = f.DataCenter.Instance.ActivityConfigs[this._activityId]) ? e.CustomPart.Condition.length > 0 && e.CustomPart.Condition[this._teamIndex] ? (this.StarConditionComponent2.active = !0, this._starConditionPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(this.CONDITION_ITEM_PATH, cc.Prefab)])) : [3, 3] : [3, 4];
                                case 1:
                                    if (t._starConditionPrefab = r.sent(), !this.isValid) return [2];
                                    r.label = 2;
                                case 2:
                                    return this._starConditionNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._starConditionNodes[0] || ((n = cc.instantiate(this._starConditionPrefab)).parent = this.ConditionLayout2, this._starConditionNodes[0] = n), this._starConditionNodes[0].active = !0, o = "breakOutMatch_heroCount_limit".ToUILocale().Fmt(e.CustomPart.Condition[this._teamIndex].Items[0]), this._starConditionNodes[0].getComponent(O.default).SetUI(2, o), [3, 4];
                                case 3:
                                    this.StarConditionComponent2.active = !1, r.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetActivityBossConditionData = function(e, t) {
                    var n = this,
                        o = [];
                    return e.forEach(function(e) {
                        var r = n.GetActivityBossConditionDesc(e),
                            i = {};
                        i.IsSatisfy = n.CheckActivityBossConditionIsSatisfy(e, t), i.Desc = i.IsSatisfy ? "<outline color=#202434 width=3><color=#33ff8e>" + r + "</c></outline>" : "<outline color=#202434 width=3><color=#ffffff>" + r + "</c></outline>", i.Condition = e, i.Element = n.GetActivityBossConditionShowElement(e), o.push(i)
                    }), o
                }, t.prototype.GetActivityBossConditionShowElement = function(e) {
                    var t = -1;
                    switch (e.Items[0]) {
                        case w.FormationConditionType.MustUseElementCount:
                        case w.FormationConditionType.CannotUseElement:
                        case w.FormationConditionType.CannotUseElementCount:
                            t = e.Items[1]
                    }
                    return t
                }, t.prototype.CheckActivityBossConditionIsSatisfy = function(e, t) {
                    if (!this._formationHeroSids[t]) return !1;
                    var n = !1;
                    switch (e.Items[0]) {
                        case w.FormationConditionType.MustUseElementCount:
                            for (var o = 0, r = 0; r < this._formationHeroSids[t].length; r++)
                                if ((a = this._formationHeroSids[t][r]) > 0) {
                                    var i = f.DataCenter.Instance.GetDataById(u.UserHero_Model, a);
                                    if (((s = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, i.HeroId)).ElementType == e.Items[1] || s.ElementType == c.HeroElementType.Chaos && P.default.ChaosHeroCanReplaceElement(i.StarLevel, e.Items[1])) && ++o >= e.Items[2]) {
                                        n = !0;
                                        break
                                    }
                                } break;
                        case w.FormationConditionType.CannotUseElement:
                            for (n = !0, r = 0; r < this._formationHeroSids[t].length; r++)
                                if ((a = this._formationHeroSids[t][r]) > 0 && (i = f.DataCenter.Instance.GetDataById(u.UserHero_Model, a), (s = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, i.HeroId)).ElementType == e.Items[1])) {
                                    n = !1;
                                    break
                                } break;
                        case w.FormationConditionType.CannotUseElementCount:
                            for (o = 0, n = !0, r = 0; r < this._formationHeroSids[t].length; r++) {
                                var a, s;
                                if ((a = this._formationHeroSids[t][r]) > 0)
                                    if (i = f.DataCenter.Instance.GetDataById(u.UserHero_Model, a), (s = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, i.HeroId)).ElementType == e.Items[1] && ++o > e.Items[2]) {
                                        n = !1;
                                        break
                                    }
                            }
                    }
                    return n
                }, t.prototype.GetActivityBossConditionDesc = function(e) {
                    var t;
                    switch (e.Items[0]) {
                        case w.FormationConditionType.MustUseElementCount:
                            t = "activityBoss_condition1".ToUILocale().Fmt(("hero_element_" + e.Items[1]).ToUILocale(), e.Items[2], '<img src="' + P.default.Instance.GetElementName(e.Items[1]) + '" width=36 height=39  align = center/>');
                            break;
                        case w.FormationConditionType.CannotUseElement:
                            t = "activityBoss_condition2".ToUILocale().Fmt(("hero_element_" + e.Items[1]).ToUILocale(), '<img src="' + P.default.Instance.GetElementName(e.Items[1]) + '" width=36 height=39  align = center/>');
                            break;
                        case w.FormationConditionType.CannotUseElementCount:
                            t = "activityBoss_condition3".ToUILocale().Fmt(("hero_element_" + e.Items[1]).ToUILocale(), e.Items[2], '<img src="' + P.default.Instance.GetElementName(e.Items[1]) + '" width=36 height=39  align = center/>')
                    }
                    return t
                }, t.prototype.ConfigAttackFormationData = function() {
                    var e = this;
                    switch (this._formationHeroSids || (this._formationHeroSids = [], this._formationsType = []), this._mapConfig.Type) {
                        case c.MapType.ActivityHeroTry:
                        case c.MapType.ActivityHeroTry2:
                        case c.MapType.ActivityHeroTry3:
                        case c.MapType.ActivityHeroTry4:
                        case c.MapType.ActivityHeroTry5:
                        case c.MapType.ActivityHeroTry6:
                        case c.MapType.ActivityHeroTry7:
                        case c.MapType.ActivityHeroTry8:
                        case c.MapType.ActivityHeroTry9:
                        case c.MapType.ActivityHeroTry10:
                            var t = f.DataCenter.Instance.GetTempData(R.default.TEMP_MAPTYPE_HEROSID + this._mapConfig.Type),
                                n = f.DataCenter.Instance.GetDataById(u.HeroTryFormation_Model, t);
                            if (n) {
                                this._formationHeroSids[0] = [];
                                var o = f.DataCenter.Instance.GetTempData(R.default.TEMP_TRIALUSERHEROES_DATA + t);
                                n.HeroIds.forEach(function(t) {
                                    if (0 != t)
                                        for (var n = 0; n < o.length; n++) {
                                            var r = o[n];
                                            if (t == r.HeroId) {
                                                e._formationHeroSids[0].push(r.Sid);
                                                break
                                            }
                                        } else e._formationHeroSids[0].push(0)
                                }), this._formationsType[0] = n.FormationType
                            } else this._formationHeroSids[0] = [t, 0, 0, 0, 0], this._formationsType[0] = 101;
                            break;
                        case c.MapType.ActivitySkinTry:
                        case c.MapType.ActivitySkinTry2:
                        case c.MapType.ActivitySkinTry3:
                        case c.MapType.ActivitySkinTry4:
                            var r = p.DataCenter.Instance.GetTempData(q.default.TEMP_MAPTYPE_SKINID + this._mapConfig.Type),
                                i = -p.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, r).HeroId,
                                a = f.DataCenter.Instance.GetDataById(u.HeroTryFormation_Model, r);
                            if (a) {
                                this._formationHeroSids[0] = [];
                                var s = f.DataCenter.Instance.GetTempData(q.default.TEMP_SKIN_TRIALUSERHEROES_DATA + i);
                                a.HeroIds.forEach(function(t) {
                                    if (0 != t)
                                        for (var n = 0; n < s.length; n++) {
                                            var o = s[n];
                                            if (t == o.HeroId) {
                                                e._formationHeroSids[0].push(o.Sid);
                                                break
                                            }
                                        } else e._formationHeroSids[0].push(0)
                                }), this._formationsType[0] = a.FormationType
                            } else this._formationHeroSids[0] = [i, 0, 0, 0, 0], this._formationsType[0] = 101;
                            break;
                        case c.MapType.ArtefactRelic:
                            this._formationsType && 0 != this._formationsType.length || this._mapIdArr.forEach(function(t, n) {
                                e._formationsType[n] = 101, e._formationHeroSids[n] = [0, 0, 0, 0, 0]
                            });
                            break;
                        case c.MapType.HeroTestTower1:
                        case c.MapType.HeroTestTower2:
                        case c.MapType.HeroTestTower3:
                        case c.MapType.HeroTestTower4:
                        case c.MapType.HeroTestTower5:
                        case c.MapType.HeroTestTower6:
                        case c.MapType.HeroTestTower7:
                        case c.MapType.HeroTestTower8:
                        case c.MapType.HeroTestTower9:
                            var l = f.DataCenter.Instance.GetTempData(H.default.TEMP_HEROTESTTOWER_HEROSID + this._mapConfig.Type),
                                d = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId);
                            if (d && d.Int2DArray[0] && d.Int2DArray[0].Items.length > 1) {
                                for (var h = d.Int2DArray[0].Items, g = !0, m = 0; m < h.length; m++)
                                    if (0 != h[m]) {
                                        g = !1;
                                        break
                                    } this._formationsType[0] = g ? 101 : h[0], this._formationHeroSids[0] = g ? [l, 0, 0, 0, 0] : [-h[1], -h[2], -h[3], -h[4], -h[5]]
                            } else this._formationHeroSids[0] = [l, 0, 0, 0, 0], this._formationsType[0] = 101;
                            break;
                        case c.MapType.StarLightSecretLand:
                        case c.MapType.GodLandDuel:
                            for (m = 0; m < this._formationSids.length; m++) {
                                var I = this._formationSids[m],
                                    _ = f.DataCenter.Instance.GetDataById(u.UserFormation_Model, I);
                                this._formationsType[m] = this.EndlessAbyssEditorId, this._formationHeroSids[m] || (_ && _.Angel ? this._formationHeroSids[m] = [_.Angel.AngelId] : this._formationHeroSids[m] = [0])
                            }
                            break;
                        case c.MapType.ActChampion11:
                        case c.MapType.ActChampion12:
                        case c.MapType.ActChampion31:
                        case c.MapType.ActChampion32:
                            var C = f.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId);
                            for (m = 0; m < this._formationSids.length; m++) I = this._formationSids[m], _ = f.DataCenter.Instance.GetDataById(u.UserFormation_Model, I), this._formationsType[m] = _ ? _.FormationType : 101, this._formationHeroSids[m] || (_ && C.IntArray[z.default.ACTIVITY_CHAMPION_ROUND] ? this._formationHeroSids[m] = _.HeroIds : this._formationHeroSids[m] = [0, 0, 0, 0, 0]);
                            break;
                        default:
                            for (m = 0; m < this._formationSids.length; m++) {
                                switch (I = this._formationSids[m], !(_ = f.DataCenter.Instance.GetDataById(u.UserFormation_Model, I)) && I < 100 && (_ = f.DataCenter.Instance.GetDataById(u.UserFormation_Model, c.FormationIdType.MainLine)), this._mapConfig.Type) {
                                    case c.MapType.EndlessAbyssSingle:
                                        this._formationsType[m] = this.EndlessAbyssEditorId;
                                        break;
                                    default:
                                        this._formationHeroSids[m] || (this._formationsType[m] = _ ? _.FormationType : 101)
                                }
                                if (this._mapConfig.Type == c.MapType.HeroPK && f.DataCenter.Instance.GetTempData(W.default.TEMP_HEROPK_IS_JOIN)) {
                                    var v = f.DataCenter.Instance.GetTempData(W.default.TEMP_HEROPK_SELECT_HEROID);
                                    this._formationHeroSids[m] = [-v, 0, 0, 0, 0]
                                }
                                if (!this._formationHeroSids[m])
                                    if (_)
                                        if (this._mapConfig.Type == c.MapType.AllianceTest) {
                                            this._formationHeroSids[m] = [], this._lockedHeroes = f.DataCenter.Instance.GetArrayData(c.UserDataKey.AllianceTestOwners);
                                            for (var b = 0; b < _.HeroIds.length; b++) {
                                                var S = _.HeroIds[b];
                                                this._lockedHeroes.indexOf(S) > -1 ? this._formationHeroSids[m].push(0) : this._formationHeroSids[m].push(S)
                                            }
                                        } else this._formationHeroSids[m] = _.HeroIds;
                                else this._formationHeroSids[m] = [0, 0, 0, 0, 0]
                            }
                    }
                    for (m = 0; m < this._formationHeroSids.length; m++) {
                        var w = this._formationHeroSids[m];
                        for (b = 0; b < w.length; b++)(i = w[b]) > 0 && (f.DataCenter.Instance.GetDataById(u.UserHero_Model, i) || (this._formationHeroSids[m][b] = 0))
                    }
                    this.RefreshFormationInfo()
                }, t.prototype.OnClickAllianceElement = function() {
                    this.AllianceElementTip.active = !0
                }, t.prototype.OnClickAllianceMouseArea = function() {
                    this.AllianceElementTip.active = !1
                }, t.prototype.RefreshFormationInfo = function() {
                    this._formationConfig = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, this._formationsType[this._teamIndex]), this.SetFormationIcon()
                }, t.prototype.ConfigDefenseFormationData = function() {
                    var e = this;
                    switch (this._defenseHeroIds = [], this._defenseFormationTypeData = [], this._defenseAngelModel = null, this._defensePetsInfo = {}, this._mapConfig.Type) {
                        case c.MapType.Arena:
                            this._defenseArenaHeroes = [];
                            var t = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, this._arenaDefenseData.Info.Formations[0].FormationType);
                            this._defenseFormationTypeData = t.Data;
                            for (var n = 0; n < this._arenaDefenseData.Info.Formations[0].Heros.length; n++) {
                                var o = this._arenaDefenseData.Info.Formations[0].Heros[n];
                                this._defenseArenaHeroes.push(o), this._defenseHeroIds.push({
                                    HeroId: o.HeroId,
                                    StarLevel: o.StarLevel
                                })
                            }
                            this.DefensePower.string = this._arenaDefenseData.Info.Power.toString(), this._arenaDefenseData.Info.Formations[0] && this._arenaDefenseData.Info.Formations[0].Angel && (this._defenseAngelModel = this._arenaDefenseData.Info.Formations[0].Angel), this.ConfigDefensePetInfos(this._arenaDefenseData.Info.Formations[0].Pets), this.ConfigDefinseMagicCircle(this._arenaDefenseData.Info.MagicCircles);
                            break;
                        case c.MapType.SeniorArena:
                        case c.MapType.RankMatch:
                            if (this._defenseArenaHeroes = [], this._defenseTeamInfo.length <= 0) break;
                            var r = this._defenseTeamInfo[this._defenseTeamIndex],
                                i = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, r.FormationType);
                            this._defenseFormationTypeData = i ? i.Data : [2, 4, 6, 7, 9];
                            var a = r.Heroes;
                            if (a)
                                for (n = 0; n < a.length; n++) o = a[n], this._defenseArenaHeroes.push(o), this._defenseHeroIds.push({
                                    HeroId: o.HeroId,
                                    StarLevel: o.StarLevel
                                });
                            this.DefensePower.string = r.Power.toString(), r.AngelModel && (this._defenseAngelModel = r.AngelModel), this.ConfigDefensePetInfos(r.Pets), this.ConfigDefinseMagicCircle(r.MagicCircles);
                            break;
                        case c.MapType.CrossServerArena:
                            this._defenseArenaHeroes = [];
                            var s = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, this._panelData.SeniorReport.Formations[0].FormationType);
                            for (this._defenseFormationTypeData = s.Data, n = 0; n < this._panelData.SeniorReport.Formations[0].Heros.length; n++) o = this._panelData.SeniorReport.Formations[0].Heros[n], this._defenseArenaHeroes.push(o), this._defenseHeroIds.push({
                                HeroId: o.HeroId,
                                StarLevel: o.StarLevel
                            });
                            this.DefensePower.string = this._panelData.SeniorReport.Power.toString(), this._panelData.SeniorReport.Formations[0] && this._panelData.SeniorReport.Formations[0].Angel && (this._defenseAngelModel = this._panelData.SeniorReport.Formations[0].Angel), this.ConfigDefensePetInfos(this._panelData.SeniorReport.Formations[0].Pets), this.ConfigDefinseMagicCircle(this._panelData.SeniorReport.MagicCircles);
                            break;
                        case c.MapType.ActivitySecretUser:
                        case c.MapType.ActivitySecretUser1:
                        case c.MapType.ActivitySecretUser2:
                        case c.MapType.ActivitySecretUser3:
                        case c.MapType.ActivitySecretUser4:
                        case c.MapType.ActivitySecretUser5:
                        case c.MapType.FriendPK:
                            this._defenseArenaHeroes = [];
                            var l = this._panelData.PlayerDetailInfos[this._teamIndex],
                                d = l.Formations[0].FormationType,
                                h = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, d);
                            for (this._defenseFormationTypeData = h.Data, n = 0; n < l.Formations[0].Heros.length; n++) o = l.Formations[0].Heros[n], this._defenseArenaHeroes.push(o), this._defenseHeroIds.push({
                                HeroId: o.HeroId,
                                StarLevel: o.StarLevel
                            });
                            this.DefensePower.string = l.Power.toString(), this.ConfigDefensePetInfos(l.Formations[0].Pets), this.ConfigDefinseMagicCircle(l.MagicCircles);
                            break;
                        case c.MapType.MoonTemple:
                            for (this._defenseMonsterHeroIds = [], n = 0; n < this._mapConfig.Heros.length; n++) {
                                o = this._mapConfig.Heros[n].Items, this._defenseFormationTypeData.push(o[0]);
                                var g = o[1];
                                this._defenseHeroIds.push({
                                    HeroId: g,
                                    StarLevel: this._mapConfig.Strength[0]
                                }), this._excludeMonsterIds.indexOf(g) > -1 && (g = 0), this._defenseMonsterHeroIds.push(g)
                            }
                            var m = this._panelData.MoonTempleLevel,
                                I = this._mapConfig.BattlePower;
                            if (m) {
                                var _ = f.ConfigDataComponent.Instance.GetArrayConfig(y.MoonIntensify_Config);
                                for (n = 0; n < _.length; n++) {
                                    var C = _[n];
                                    if (n < _.length - 1) {
                                        var v = _[n + 1];
                                        if (!(m >= v.Id)) {
                                            I += (m - C.Id + 1) * C.Power;
                                            break
                                        }
                                        I += (v.Id - C.Id) * C.Power
                                    } else I += (m - C.Id + 1) * C.Power
                                }
                            }
                            this.DefensePower.string = I.toString();
                            break;
                        case c.MapType.SecretArea:
                            this.SetDefenseMonsterIds();
                            var b = p.DataCenter.Instance.GetDataById(u.SecretAreaExplore_Model, 1),
                                S = p.ConfigDataComponent.Instance.GetConfigById(y.MapPowerLevel_Config, b.PowerLevel),
                                w = p.ConfigDataComponent.Instance.GetConfigById(y.MapBase_Config, this._mapIdArr[0]),
                                P = p.ConfigDataComponent.Instance.GetArrayConfig(y.SecretAreaMonsterType_Config),
                                A = null;
                            for (n = 0; n < P.length; n++)
                                if (P[n].Id < 1e3 && P[n].Monsters.findIndex(function(t) {
                                        return t == e._mapIdArr[0]
                                    }) > -1) {
                                    A = P[n];
                                    break
                                } var T = 0;
                            if (A && (T = Math.ceil((w.BattlePower + S.Power) * A.Ratio / 1e3), this._panelData.WeakAttrValue)) {
                                var R = p.ConfigDataComponent.Instance.GetConfigById(y.SecretAreaBuff_Config, 3);
                                T = Math.ceil(T * (1 + .01 * R.PowerUp))
                            }
                            this.DefensePower.string = T.toString();
                            break;
                        case c.MapType.ElementArena:
                            this._defenseArenaHeroes = [];
                            var L = this._panelData.PlayerDetailInfos[this._teamIndex],
                                k = L.Formations[0].FormationType,
                                O = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, k);
                            for (this._defenseFormationTypeData = O.Data, n = 0; n < L.Formations[0].Heros.length; n++) o = L.Formations[0].Heros[n], this._defenseArenaHeroes.push(o), this._defenseHeroIds.push({
                                HeroId: o.HeroId,
                                StarLevel: o.StarLevel
                            });
                            this.DefensePower.string = L.Power.toString(), this.ConfigDefensePetInfos(L.Formations[0].Pets), this.ConfigDefinseMagicCircle(L.MagicCircles);
                            break;
                        case c.MapType.GodLandDuel:
                            this._defenseAngels = [];
                            var M = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, this.EndlessAbyssEditorId);
                            this._defenseFormationTypeData = M.Data;
                            break;
                        default:
                            this.SetDefenseMonsterIds(), this._panelData && this._panelData.CustomBP ? this.DefensePower.string = this._panelData.CustomBP.toString() : this.DefensePower.string = this._mapConfig.BattlePower.toString()
                    }
                    this.DefenseElement.InitByHeroId(this._defenseHeroIds)
                }, t.prototype.SetDefenseMonsterIds = function() {
                    if (this._defenseMonsterHeroIds = [], 0 != this.DefenseContainer.active)
                        for (var e = 0; e < this._mapConfig.Heros.length; e++) {
                            var t = this._mapConfig.Heros[e].Items;
                            this._defenseFormationTypeData.push(t[0]);
                            var n = t[1];
                            this._defenseHeroIds.push({
                                HeroId: n,
                                StarLevel: this._mapConfig.Strength[0]
                            }), this._excludeMonsterIds.indexOf(n) > -1 && (n = 0), this._defenseMonsterHeroIds.push(n)
                        }
                }, t.prototype.ConfigDefensePetInfos = function(e) {
                    if (e)
                        for (var t = 0; t < e.length; t++) {
                            var n = e[t].Owners[0];
                            n && (this._defensePetsInfo[n] = e[t].Sid)
                        }
                }, t.prototype.ConfigDefinseMagicCircle = function(e) {
                    this._defenseMagicCircleInfo = e || {}
                }, t.prototype.ConfigHeroList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, d, h, g, I, C, v, b, S, A, T, L, k, O, M, D, B, N, E, U, G, x, F, j, V, Z, K, J, X, Q, Y, $ = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    switch (_.UIUtlity.ShowMaskPanel(), this.HeroListComponent.SetItemClickNeedHold(!0), this._mapConfig.Type) {
                                        case c.MapType.SecretArea:
                                            return [3, 1];
                                        case c.MapType.ActivitySecret:
                                        case c.MapType.ActivitySecret1:
                                        case c.MapType.ActivitySecret2:
                                        case c.MapType.ActivitySecret3:
                                        case c.MapType.ActivitySecret4:
                                        case c.MapType.ActivitySecret5:
                                        case c.MapType.SeasonExpedition:
                                        case c.MapType.SeasonExpedition1:
                                        case c.MapType.SeasonExpedition2:
                                        case c.MapType.SeasonExpedition3:
                                        case c.MapType.SeasonExpedition4:
                                        case c.MapType.SeasonExpedition5:
                                            return [3, 3];
                                        case c.MapType.ActivitySecretUser:
                                        case c.MapType.ActivitySecretUser1:
                                        case c.MapType.ActivitySecretUser2:
                                        case c.MapType.ActivitySecretUser3:
                                        case c.MapType.ActivitySecretUser4:
                                        case c.MapType.ActivitySecretUser5:
                                            return [3, 5];
                                        case c.MapType.EndlessAbyssSingle:
                                            return [3, 7];
                                        case c.MapType.AncientSacred:
                                        case c.MapType.SeniorArena:
                                        case c.MapType.TestTowerHard:
                                        case c.MapType.RankMatch:
                                        case c.MapType.ArtefactRelic:
                                            return [3, 9];
                                        case c.MapType.SaintsWar1:
                                        case c.MapType.SaintsWar2:
                                        case c.MapType.SaintsWar3:
                                            return [3, 11];
                                        case c.MapType.AllianceTest:
                                            return [3, 13];
                                        case c.MapType.TowerHeart:
                                            return [3, 15];
                                        case c.MapType.TowerPower:
                                            return [3, 17];
                                        case c.MapType.TowerTech:
                                            return [3, 19];
                                        case c.MapType.TowerBreak:
                                            return [3, 21];
                                        case c.MapType.TowerFight:
                                            return [3, 23];
                                        case c.MapType.SecretAreaReward:
                                            return [3, 25];
                                        case c.MapType.ActivityElementHeart:
                                        case c.MapType.ActivityElementPower:
                                        case c.MapType.ActivityElementTech:
                                        case c.MapType.ActivityElementBreak:
                                        case c.MapType.ActivityElementFight:
                                        case c.MapType.HeroDungeon:
                                        case c.MapType.HeroDungeon2:
                                        case c.MapType.HeroDungeon3:
                                        case c.MapType.HeroDungeon4:
                                        case c.MapType.HeroDungeon5:
                                        case c.MapType.HeroDungeon6:
                                        case c.MapType.HeroDungeon7:
                                        case c.MapType.HeroDungeon8:
                                        case c.MapType.HeroDungeon9:
                                            return [3, 27];
                                        case c.MapType.CrossZoneRank:
                                            return [3, 32];
                                        case c.MapType.WorldBossZone:
                                        case c.MapType.WorldBossAlliance:
                                        case c.MapType.WorldBossCrossZone:
                                            return [3, 34];
                                        case c.MapType.CrossZoneContinueWarRank:
                                        case c.MapType.CrossServerChampionShip:
                                        case c.MapType.AllZoneChampionRace:
                                        case c.MapType.ActivityBoss:
                                        case c.MapType.ActivityBoss2:
                                        case c.MapType.ActivityBoss3:
                                            return [3, 39];
                                        case c.MapType.CrossZoneAllianceChallenge:
                                            return [3, 41];
                                        case c.MapType.ActChampion11:
                                        case c.MapType.ActChampion12:
                                        case c.MapType.ActChampion31:
                                        case c.MapType.ActChampion32:
                                            return [3, 43];
                                        case c.MapType.War:
                                        case c.MapType.WarAngel:
                                            return [3, 45];
                                        case c.MapType.ActivityHeroTry:
                                        case c.MapType.ActivityHeroTry2:
                                        case c.MapType.ActivityHeroTry3:
                                        case c.MapType.ActivityHeroTry4:
                                        case c.MapType.ActivityHeroTry5:
                                        case c.MapType.ActivityHeroTry6:
                                        case c.MapType.ActivityHeroTry7:
                                        case c.MapType.ActivityHeroTry8:
                                        case c.MapType.ActivityHeroTry9:
                                        case c.MapType.ActivityHeroTry10:
                                            return [3, 50];
                                        case c.MapType.ActivitySkinTry:
                                        case c.MapType.ActivitySkinTry2:
                                        case c.MapType.ActivitySkinTry3:
                                        case c.MapType.ActivitySkinTry4:
                                            return [3, 52];
                                        case c.MapType.HeroTestTower1:
                                        case c.MapType.HeroTestTower2:
                                        case c.MapType.HeroTestTower3:
                                        case c.MapType.HeroTestTower4:
                                        case c.MapType.HeroTestTower5:
                                        case c.MapType.HeroTestTower6:
                                        case c.MapType.HeroTestTower7:
                                        case c.MapType.HeroTestTower8:
                                        case c.MapType.HeroTestTower9:
                                            return [3, 54];
                                        case c.MapType.HeroPK:
                                            return [3, 56];
                                        case c.MapType.StarLightSecretLand:
                                        case c.MapType.GodLandDuel:
                                            return [3, 58];
                                        case c.MapType.ActChampionship:
                                        case c.MapType.ActBreakou:
                                            return [3, 60];
                                        case c.MapType.NoviceTraining:
                                            return [3, 62]
                                    }
                                    return [3, 64];
                                case 1:
                                    for (e = f.DataCenter.Instance.GetDataById(u.SecretAreaExplore_Model, 1), this._heroesHPMap = new Map, X = 0; X < e.Hp.length; X++) n = e.Hp[X].Items, this._heroesHPMap.set(n[0], n[1]);
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationHP, {
                                        HeroesHP: this._heroesHPMap
                                    }, this._formationSids[this._teamIndex])];
                                case 2:
                                    return s.sent(), [3, 66];
                                case 3:
                                    for (t = f.DataCenter.Instance.GetDataById(u.SecretAreaExplore_Model, this._panelData.SecretMapId), this._heroesHPMap = new Map, X = 0; X < t.Hp.length; X++) n = t.Hp[X].Items, this._heroesHPMap.set(Math.abs(n[0]), n[1]);
                                    return this.ElementTrialHint.active = !0, o = f.ConfigDataComponent.Instance.GetConfigById(y.SecretActivityMap_Config, this._panelData.SecretMapId), [4, this.HeroListComponent.Init(m.HeroListType.FormationHP, {
                                        HeroesHP: this._heroesHPMap
                                    }, this._formationSids[this._teamIndex], this._activityId, o.ElementType)];
                                case 4:
                                    return s.sent(), [3, 66];
                                case 5:
                                    for (this._lockedHeroes = [], X = 0; X < this._formationHeroSids.length; X++) X != this._teamIndex && (this._lockedHeroes = this._lockedHeroes.concat(this._formationHeroSids[X]));
                                    return r = f.ConfigDataComponent.Instance.GetConfigById(y.SecretActivityMap_Config, this._panelData.SecretMapId), [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        LockedHeroes: this._lockedHeroes
                                    }, this._formationSids[this._teamIndex], void 0, r.ElementType)];
                                case 6:
                                    return s.sent(), [3, 66];
                                case 7:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, {
                                        HeroesData: P.default.Instance.SortHeroByLotFormations([c.FormationIdType.EnelessAbyssSingle1, c.FormationIdType.EnelessAbyssSingle2, c.FormationIdType.EnelessAbyssSingle3])
                                    }, this.EndlessAbyssSId)];
                                case 8:
                                    return s.sent(), [3, 66];
                                case 9:
                                    for (this._lockedHeroes = [], X = 0; X < this._formationHeroSids.length; X++) X != this._teamIndex && (this._lockedHeroes = this._lockedHeroes.concat(this._formationHeroSids[X]));
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        LockedHeroes: this._lockedHeroes
                                    }, this._formationSids[this._teamIndex], void 0, void 0, 28, 171)];
                                case 10:
                                    return s.sent(), [3, 66];
                                case 11:
                                    for (this._lockedHeroes = [], X = 0; X < this._formationHeroSids.length; X++) X != this._teamIndex && (this._lockedHeroes = this._lockedHeroes.concat(this._formationHeroSids[X]));
                                    if (i = {
                                            LockedHeroes: this._lockedHeroes
                                        }, this._panelData && this._panelData.HasLockedAllHeroes && (i.HeroesData = [], Q = f.DataCenter.Instance.GetDataById(u.UserFormation_Model, this._formationSids[this._teamIndex])))
                                        for (X = 0; X < Q.HeroIds.length; X++) Q.HeroIds[X] > 0 && i.HeroesData.push(f.DataCenter.Instance.GetDataById(u.UserHero_Model, Q.HeroIds[X]));
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, i, this._formationSids[this._teamIndex])];
                                case 12:
                                    return s.sent(), [3, 66];
                                case 13:
                                    return this._lockedHeroes = f.DataCenter.Instance.GetArrayData(c.UserDataKey.AllianceTestOwners), [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        LockedHeroes: this._lockedHeroes
                                    }, this._formationSids[this._teamIndex])];
                                case 14:
                                    return s.sent(), [3, 66];
                                case 15:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, {
                                        LimitElement: c.HeroElementType.Heart
                                    }, this._formationSids[this._teamIndex])];
                                case 16:
                                    return s.sent(), [3, 66];
                                case 17:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, {
                                        LimitElement: c.HeroElementType.Power
                                    }, this._formationSids[this._teamIndex])];
                                case 18:
                                    return s.sent(), [3, 66];
                                case 19:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, {
                                        LimitElement: c.HeroElementType.Tech
                                    }, this._formationSids[this._teamIndex])];
                                case 20:
                                    return s.sent(), [3, 66];
                                case 21:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, {
                                        LimitElement: c.HeroElementType.Break
                                    }, this._formationSids[this._teamIndex])];
                                case 22:
                                    return s.sent(), [3, 66];
                                case 23:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, {
                                        LimitElement: c.HeroElementType.Fight
                                    }, this._formationSids[this._teamIndex])];
                                case 24:
                                    return s.sent(), [3, 66];
                                case 25:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, {
                                        LimitElement: this._panelData.LimitElement
                                    }, this._formationSids[this._teamIndex])];
                                case 26:
                                    return s.sent(), [3, 66];
                                case 27:
                                    return this._activityId ? [4, this.HeroListComponent.Init(m.HeroListType.FormationUpDown, null, this._formationSids[this._teamIndex], this._activityId)] : [3, 29];
                                case 28:
                                    return s.sent(), [3, 31];
                                case 29:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, void 0, this._formationSids[this._teamIndex])];
                                case 30:
                                    s.sent(), s.label = 31;
                                case 31:
                                    return [3, 66];
                                case 32:
                                    for (this._lockedHeroes = [], X = 0; X < this._formationHeroSids.length; X++) X != this._teamIndex && (this._lockedHeroes = this._lockedHeroes.concat(this._formationHeroSids[X]));
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        LockedHeroes: this._lockedHeroes
                                    }, this._formationSids[this._teamIndex])];
                                case 33:
                                    return s.sent(), [3, 66];
                                case 34:
                                    return this._activityId ? [4, this.HeroListComponent.Init(m.HeroListType.FormationUpDown, null, this._formationSids[this._teamIndex], this._activityId)] : [3, 36];
                                case 35:
                                    return s.sent(), [3, 38];
                                case 36:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, void 0, this._formationSids[this._teamIndex])];
                                case 37:
                                    s.sent(), s.label = 38;
                                case 38:
                                    return [3, 66];
                                case 39:
                                    for (this._lockedHeroes = [], X = 0; X < this._formationHeroSids.length; X++) X != this._teamIndex && (this._lockedHeroes = this._lockedHeroes.concat(this._formationHeroSids[X]));
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        LockedHeroes: this._lockedHeroes
                                    }, this._formationSids[this._teamIndex])];
                                case 40:
                                    return s.sent(), [3, 66];
                                case 41:
                                    for (this._lockedHeroes = [], a = f.DataCenter.Instance.GetArrayData(w.UserDataKey.AllianceChallengeOwners), X = 0; X < this._formationHeroSids.length; X++) X != this._teamIndex && (this._lockedHeroes = this._lockedHeroes.concat(this._formationHeroSids[X]));
                                    return l = f.DataCenter.Instance.GetIntData(c.UserDataKey.AllianceChallengeStatus), d = P.default.GetBit(l, 0), h = P.default.GetBit(l, 2), g = P.default.GetBit(l, 3), I = P.default.GetBit(l, 4), ((h && g || I ? 0 : 1) > 0 || !d) && !this._panelData.IsDefense && a.length > 0 && a.forEach(function(e) {
                                        $._lockedHeroes.includes(e) || $._lockedHeroes.push(e)
                                    }), [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        LockedHeroes: this._lockedHeroes
                                    }, this._formationSids[this._teamIndex])];
                                case 42:
                                    return s.sent(), [3, 66];
                                case 43:
                                    for (this._lockedHeroes = [], X = 0; X < this._formationHeroSids.length; X++) X != this._teamIndex && (this._lockedHeroes = this._lockedHeroes.concat(this._formationHeroSids[X]));
                                    for (C = f.DataCenter.Instance.ActivityConfigs[this._activityId], v = C.__Rounds[z.default.ACTIVITY_CHAMPION_ROUND], b = [], S = [], this._limitHeroCount = this._formationConfig.Data.length, X = 0; X < v.Condition.length; X++)
                                        if (A = v.Condition[X].Items[0], T = v.Condition[X].Items, 1 == A || 2 == A)
                                            for (L = 1; L < T.length; L++) 1 == A ? b.push(T[L]) : 2 == A && S.push(T[L]);
                                        else 3 == A && (this._limitHeroCount = T[1]);
                                    return k = [], O = f.DataCenter.Instance.GetDataList(u.UserHero_Model), S.length > 0 ? O.forEach(function(e) {
                                        var t = p.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, e.HeroId); - 1 != S.indexOf(t.Career) && k.push(e)
                                    }) : k = O, P.default.Instance.SortData(c.SortDataType.Hero, k, [{
                                        Items: [c.SortType.Power, -1]
                                    }]), [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        HeroesData: k,
                                        LockedHeroes: this._lockedHeroes,
                                        LimitElementArray: b,
                                        IsSingleElement: !0
                                    }, this._formationSids[this._teamIndex])];
                                case 44:
                                    return s.sent(), [3, 66];
                                case 45:
                                    if (this._lockedHeroes = [], this._cityWarFormationInfo || (this._cityWarFormationInfo = {}, (M = new u.Req_War_Action).Type = c.WarActionType.GetUInfo, f.RpcComponent.Instance.Call(M, function(e) {
                                            $._cityWarFormationInfo = e.UserData.FormationInfo
                                        })), this._mapConfig.Type != c.MapType.War) return [3, 47];
                                    for (X = 0; X < this._formationHeroSids.length; X++)(X != this._teamIndex || this._cityWarFormationInfo[this._formationSids[X]] && 0 != this._cityWarFormationInfo[this._formationSids[X]].Items[0]) && (this._lockedHeroes = this._lockedHeroes.concat(this._formationHeroSids[X]));
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        LockedHeroes: this._lockedHeroes
                                    }, this._formationSids[this._teamIndex])];
                                case 46:
                                    return s.sent(), [3, 49];
                                case 47:
                                    return K = f.DataCenter.Instance.GetDataList(u.UserAngel_Model), this.HeroListComponent.IsHideElementContent(!0), [4, this.HeroListComponent.Init(m.HeroListType.FormationAngel, {
                                        AngelsData: K
                                    })];
                                case 48:
                                    s.sent(), s.label = 49;
                                case 49:
                                    return [3, 66];
                                case 50:
                                    return D = f.DataCenter.Instance.GetTempData(R.default.TEMP_MAPTYPE_HEROSID + this._mapConfig.Type), E = f.DataCenter.Instance.GetTempData(R.default.TEMP_TRIALUSERHEROES_DATA + D), [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        HeroesData: E,
                                        LockedHeroes: [D]
                                    })];
                                case 51:
                                    return s.sent(), [3, 66];
                                case 52:
                                    return B = f.DataCenter.Instance.GetTempData(q.default.TEMP_MAPTYPE_SKINID + this._mapConfig.Type), N = p.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, B), j = -N.HeroId, E = f.DataCenter.Instance.GetTempData(q.default.TEMP_SKIN_TRIALUSERHEROES_DATA + j), [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        HeroesData: E,
                                        LockedHeroes: [j]
                                    })];
                                case 53:
                                    return s.sent(), [3, 66];
                                case 54:
                                    return U = f.DataCenter.Instance.GetTempData(H.default.TEMP_HEROTESTTOWER_HEROSID + this._mapConfig.Type), G = f.DataCenter.Instance.GetTempData(H.default.TEMP_HEROTESTTOWER_HERODATAS + U), [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        HeroesData: G,
                                        LockedHeroes: [U]
                                    })];
                                case 55:
                                    return s.sent(), [3, 66];
                                case 56:
                                    for (x = f.DataCenter.Instance.GetTempData(W.default.TEMP_HEROPK_SELECT_HEROID), this._lockedHeroes = [], X = 0; X < this._formationHeroSids.length; X++)
                                        if (X != this._teamIndex)
                                            for (F = 0; F < this._formationHeroSids[X].length; F++)(j = this._formationHeroSids[X][F]) > 0 && f.DataCenter.Instance.GetDataById(u.UserHero_Model, j).HeroId != x && this._lockedHeroes.push(j);
                                    return V = f.DataCenter.Instance.GetDataList(u.UserHero_Model), (Z = new u.UserHero_Model).Sid = -x, Z.HeroId = x, Z.StarLevel = 5, Z.Level = 100, V.push(Z), P.default.Instance.SortData(c.SortDataType.Hero, V, [{
                                        Items: [c.SortType.AppointHeroId, -1, x]
                                    }, {
                                        Items: [c.SortType.Power, -1]
                                    }]), [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        HeroesData: V,
                                        LockedHeroes: this._lockedHeroes
                                    }, this._formationSids[this._teamIndex])];
                                case 57:
                                    return s.sent(), [3, 66];
                                case 58:
                                    return K = f.DataCenter.Instance.GetDataList(u.UserAngel_Model), this.HeroListComponent.IsHideElementContent(!0), [4, this.HeroListComponent.Init(m.HeroListType.FormationAngel, {
                                        AngelsData: K
                                    })];
                                case 59:
                                    return s.sent(), [3, 66];
                                case 60:
                                    for (this._lockedHeroes = [], this._limitHeroCount = 5, J = f.ConfigDataComponent.Instance.GetConfigById(y.MapType_Config, this._mapConfig.Type), X = 0; X < J.AttackerFormation.length; X++) X != this._teamIndex && (this._formationHeroSids[X] ? this._lockedHeroes = this._lockedHeroes.concat(this._formationHeroSids[X]) : (Q = f.DataCenter.Instance.GetDataById(u.UserFormation_Model, J.AttackerFormation[X])) && Q.HeroIds.forEach(function(e) {
                                        e > 0 && $._lockedHeroes.push(e)
                                    }));
                                    return this._mapConfig.Type == c.MapType.ActBreakou && (Y = p.DataCenter.Instance.ActivityConfigs[this._activityId]) && Y.CustomPart.Condition[this._teamIndex] && (this._limitHeroCount = Y.CustomPart.Condition[this._teamIndex].Items[0]), [4, this.HeroListComponent.Init(m.HeroListType.FormationLocked, {
                                        LockedHeroes: this._lockedHeroes
                                    }, this._formationSids[this._teamIndex])];
                                case 61:
                                    return s.sent(), [3, 66];
                                case 62:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationUpDown, null, null, this._activityId)];
                                case 63:
                                    return s.sent(), [3, 66];
                                case 64:
                                    return [4, this.HeroListComponent.Init(m.HeroListType.FormationNormal, void 0)];
                                case 65:
                                    return s.sent(), [3, 66];
                                case 66:
                                    return this.HeroListComponent.SetItemClickCallback(this.OnClickHerolistComponent.bind(this)), this.HeroListComponent.SetItemHoldCallback(this.OnHoldHerolistComponent.bind(this)), _.UIUtlity.CloseMaskPanel(), this.ShowGuide(), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickHerolistComponent = function(e, t) {
                    switch (this._mapConfig.Type) {
                        case c.MapType.ActivityHeroTry:
                        case c.MapType.ActivityHeroTry2:
                        case c.MapType.ActivityHeroTry3:
                        case c.MapType.ActivityHeroTry4:
                        case c.MapType.ActivityHeroTry5:
                        case c.MapType.ActivityHeroTry6:
                        case c.MapType.ActivityHeroTry7:
                        case c.MapType.ActivityHeroTry8:
                        case c.MapType.ActivityHeroTry9:
                        case c.MapType.ActivityHeroTry10:
                            if (e < 0) return _.UIUtlity.ShowFloatingHint("trainingHero_offFormation_hint".ToUILocale());
                            break;
                        case c.MapType.NoviceTraining:
                            if (e < 0) return _.UIUtlity.ShowFloatingHint("noviceTraining_haventOwnedHero".ToUILocale());
                            break;
                        case c.MapType.SaintsWar1:
                        case c.MapType.SaintsWar2:
                        case c.MapType.SaintsWar3:
                            if (this._panelData && this._panelData.HasLockedAllHeroes) return _.UIUtlity.ShowFloatingHint("saintsWarHeroLockHint".ToUILocale());
                            break;
                        case c.MapType.War:
                            if (this._cityWarFormationInfo[this._formationSids[this._teamIndex]] && 0 != this._cityWarFormationInfo[this._formationSids[this._teamIndex]].Items[0]) return void _.UIUtlity.ShowFloatingHint("StrongholdWar_Battle_Fromation_Unchange".ToUILocale())
                    }
                    var n = t.getComponent(I.ItemComponent);
                    if (this.HeroListComponent.SelectSIds.indexOf(e) > -1) {
                        if (this.IsHeroOrAngelLocked(e)) switch (this._mapConfig.Type) {
                            case c.MapType.War:
                            case c.MapType.WarAngel:
                                return void _.UIUtlity.ShowFloatingHint("StrongholdWar_Battle_Fromation_Unchange".ToUILocale())
                        }
                        n.SetSelectFlagState(!1), this.HeroOffFormation(e)
                    } else {
                        var o = this._formationConfig.Data.length;
                        if (this._mapConfig.Type == c.MapType.ActBreakou) {
                            var r = p.DataCenter.Instance.ActivityConfigs[this._activityId];
                            r && r.CustomPart.Condition[this._teamIndex] && (o = r.CustomPart.Condition[this._teamIndex].Items[0])
                        }
                        if (this.HeroListComponent.SelectSIds.length >= o) return void(this._atkShowType == b.ShowFormationItemType.Angel ? _.UIUtlity.ShowFloatingHint("angel_formation_full".ToUILocale()) : _.UIUtlity.ShowFloatingHint("select_teamMember_enough".ToUILocale()));
                        switch (this._mapConfig.Type) {
                            case c.MapType.SecretArea:
                            case c.MapType.ActivitySecret:
                            case c.MapType.ActivitySecret1:
                            case c.MapType.ActivitySecret2:
                            case c.MapType.ActivitySecret3:
                            case c.MapType.ActivitySecret4:
                            case c.MapType.ActivitySecret5:
                            case c.MapType.SeasonExpedition:
                            case c.MapType.SeasonExpedition1:
                            case c.MapType.SeasonExpedition2:
                            case c.MapType.SeasonExpedition3:
                            case c.MapType.SeasonExpedition4:
                            case c.MapType.SeasonExpedition5:
                                if (0 == this._heroesHPMap.get(e)) return void _.UIUtlity.ShowFloatingHint("formation_hero_dead".ToUILocale());
                                break;
                            case c.MapType.ActChampion11:
                            case c.MapType.ActChampion12:
                            case c.MapType.ActChampion31:
                            case c.MapType.ActChampion32:
                                if (this.HeroListComponent.SelectSIds.length >= this._limitHeroCount) return void _.UIUtlity.ShowFloatingHint("select_teamMember_enough".ToUILocale())
                        }
                        if (this._atkShowType == b.ShowFormationItemType.Hero) {
                            var i = this.IsSelectSameHero(e);
                            if (1 == i) return _.UIUtlity.ShowFloatingHint("formation_forbiddon_sameHero".ToUILocale());
                            if (2 == i) return _.UIUtlity.ShowFloatingHint("formation_forbiddon_teamsSameHero".ToUILocale())
                        }
                        if (this.IsHeroOrAngelLocked(e)) {
                            switch (this._mapConfig.Type) {
                                case c.MapType.AllianceTest:
                                    _.UIUtlity.ShowFloatingHint("hero_has_allready_battled".ToUILocale());
                                    break;
                                default:
                                    this._atkShowType == b.ShowFormationItemType.Angel ? _.UIUtlity.ShowFloatingHint("angel_formation_other".ToUILocale()) : _.UIUtlity.ShowFloatingHint("formation_hero_locked".ToUILocale())
                            }
                            return
                        }
                        switch (this._mapConfig.Type) {
                            case c.MapType.War:
                            case c.MapType.WarAngel:
                                return this._formationHeroSids[this._teamIndex][0] || this._cityWarHeroComponent.SetHeroAvatarBySid(e), this._cityWarTeamComponent.OnHeroFormation(e), n.SetSelectFlagState(!0), this.HeroListComponent.SelectSIds.push(e), void(this._formationHeroSids[this._teamIndex] = this._cityWarTeamComponent.HeroSidsArray)
                        }
                        n.SetSelectFlagState(!0), this.HeroListComponent.SelectSIds.push(e), this.HeroOnFormation(e)
                    }
                }, t.prototype.OnHoldHerolistComponent = function(e) {
                    f.DataCenter.Instance.GetDataById(u.UserHero_Model, e) && l.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroInfoPanel.Path, e)
                }, t.prototype.IsSelectSameHero = function(e) {
                    var t;
                    switch (this._mapConfig.Type) {
                        case c.MapType.War:
                            t = f.DataCenter.Instance.GetDataById(u.UserHero_Model, e).HeroId;
                            for (var n = this._cityWarTeamComponent.HeroSidsArray, o = 0; o < n.length; o++)
                                if ((r = f.DataCenter.Instance.GetDataById(u.UserHero_Model, n[o])) && t == r.HeroId) return 1;
                            break;
                        case c.MapType.ActivityHeroTry:
                        case c.MapType.ActivityHeroTry2:
                        case c.MapType.ActivityHeroTry3:
                        case c.MapType.ActivityHeroTry4:
                        case c.MapType.ActivityHeroTry5:
                        case c.MapType.ActivityHeroTry6:
                        case c.MapType.ActivityHeroTry7:
                        case c.MapType.ActivityHeroTry8:
                        case c.MapType.ActivityHeroTry9:
                        case c.MapType.ActivityHeroTry10:
                            if (e < 0)
                                for (t = f.DataCenter.Instance.GetTempData(R.default.TEMP_TRIALUSERHEROES_DATA + e)[0].HeroId, o = 0; o < this._attackFormationItems.length; o++)
                                    if (this._attackFormationItems[o].HeroId == t) return 1;
                            break;
                        case c.MapType.ActivitySkinTry:
                        case c.MapType.ActivitySkinTry2:
                        case c.MapType.ActivitySkinTry3:
                        case c.MapType.ActivitySkinTry4:
                            if (e < 0)
                                for (t = f.DataCenter.Instance.GetTempData(q.default.TEMP_SKIN_TRIALUSERHEROES_DATA + e)[0].HeroId, o = 0; o < this._attackFormationItems.length; o++)
                                    if (this._attackFormationItems[o].HeroId == t) return 1;
                            break;
                        case c.MapType.HeroTestTower1:
                        case c.MapType.HeroTestTower2:
                        case c.MapType.HeroTestTower3:
                        case c.MapType.HeroTestTower4:
                        case c.MapType.HeroTestTower5:
                        case c.MapType.HeroTestTower6:
                        case c.MapType.HeroTestTower7:
                        case c.MapType.HeroTestTower8:
                        case c.MapType.HeroTestTower9:
                            return 0;
                        case c.MapType.HeroPK:
                            for (t = e < 0 ? -e : f.DataCenter.Instance.GetDataById(u.UserHero_Model, e).HeroId, o = 0; o < this._attackFormationItems.length; o++)
                                if (this._attackFormationItems[o].HeroId == t) return 1;
                            break;
                        default:
                            for (t = f.DataCenter.Instance.GetDataById(u.UserHero_Model, e).HeroId, o = 0; o < this._attackFormationItems.length; o++)
                                if (this._attackFormationItems[o].HeroId == t) return 1
                    }
                    if (this._lockedHeroes)
                        for (o = 0; o < this._lockedHeroes.length; o++) {
                            var r, i = this._lockedHeroes[o];
                            if (i && (r = f.DataCenter.Instance.GetDataById(u.UserHero_Model, i)).HeroId == t) return 2
                        }
                    return 0
                }, t.prototype.IsHeroOrAngelLocked = function(e) {
                    var t;
                    return !!(t = this._atkShowType == b.ShowFormationItemType.Angel ? this._lockedAngels : this._lockedHeroes) && t.indexOf(e) > -1
                }, t.prototype.HeroOnFormation = function(e) {
                    var t = this.GetHeroSlot(e);
                    t && (t.SetHeroAvatarBySid(e), this.RefreshAttackInfo())
                }, t.prototype.HeroOffFormation = function(e) {
                    switch (this._mapConfig.Type) {
                        case c.MapType.War:
                        case c.MapType.WarAngel:
                            return e == this._formationHeroSids[this._teamIndex][0] && this._cityWarHeroComponent.SetHeroAvatarBySid(0), this._cityWarTeamComponent.OffHeroState(e), this.HeroListComponent.UnselectHeroItemNode(e), void(this._formationHeroSids[this._teamIndex] = this._cityWarTeamComponent.HeroSidsArray)
                    }
                    var t = this.GetFormationItem(e);
                    if (t) {
                        switch (this._mapConfig.Type) {
                            case c.MapType.ActivityHeroTry:
                            case c.MapType.ActivityHeroTry2:
                            case c.MapType.ActivityHeroTry3:
                            case c.MapType.ActivityHeroTry4:
                            case c.MapType.ActivityHeroTry5:
                            case c.MapType.ActivityHeroTry6:
                            case c.MapType.ActivityHeroTry7:
                            case c.MapType.ActivityHeroTry8:
                            case c.MapType.ActivityHeroTry9:
                            case c.MapType.ActivityHeroTry10:
                            case c.MapType.ActivitySkinTry:
                            case c.MapType.ActivitySkinTry2:
                            case c.MapType.ActivitySkinTry3:
                            case c.MapType.ActivitySkinTry4:
                                if (e < 0) return _.UIUtlity.ShowFloatingHint("trainingHero_offFormation_hint".ToUILocale());
                                break;
                            case c.MapType.HeroTestTower1:
                            case c.MapType.HeroTestTower2:
                            case c.MapType.HeroTestTower3:
                            case c.MapType.HeroTestTower4:
                            case c.MapType.HeroTestTower5:
                            case c.MapType.HeroTestTower6:
                            case c.MapType.HeroTestTower7:
                            case c.MapType.HeroTestTower8:
                            case c.MapType.HeroTestTower9:
                                if (f.DataCenter.Instance.GetTempData(H.default.TEMP_HEROTESTTOWER_HEROSID + this._mapConfig.Type) == e) return _.UIUtlity.ShowFloatingHint("trainingHero_offFormation_hint".ToUILocale());
                                break;
                            case c.MapType.SaintsWar1:
                            case c.MapType.SaintsWar2:
                            case c.MapType.SaintsWar3:
                                if (this._panelData && this._panelData.HasLockedAllHeroes) return _.UIUtlity.ShowFloatingHint("saintsWarHeroLockHint".ToUILocale())
                        }
                        t.SetHeroAvatarBySid(0), this.HeroListComponent.UnselectHeroItemNode(e), this.RefreshAttackInfo()
                    }
                }, t.prototype.GetHeroSlot = function(e) {
                    var t;
                    if (this._atkShowType == b.ShowFormationItemType.Hero)
                        if (e < 0) switch (this._mapConfig.Type) {
                            case c.MapType.ActivityHeroTry:
                            case c.MapType.ActivityHeroTry2:
                            case c.MapType.ActivityHeroTry3:
                            case c.MapType.ActivityHeroTry4:
                            case c.MapType.ActivityHeroTry5:
                            case c.MapType.ActivityHeroTry6:
                            case c.MapType.ActivityHeroTry7:
                            case c.MapType.ActivityHeroTry8:
                            case c.MapType.ActivityHeroTry9:
                            case c.MapType.ActivityHeroTry10:
                                var n = f.DataCenter.Instance.GetTempData(R.default.TEMP_TRIALUSERHEROES_DATA + e);
                                t = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, n[0].HeroId);
                                break;
                            case c.MapType.ActivitySkinTry:
                            case c.MapType.ActivitySkinTry2:
                            case c.MapType.ActivitySkinTry3:
                            case c.MapType.ActivitySkinTry4:
                                n = f.DataCenter.Instance.GetTempData(q.default.TEMP_SKIN_TRIALUSERHEROES_DATA + e), t = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, n[0].HeroId);
                                break;
                            case c.MapType.HeroTestTower1:
                            case c.MapType.HeroTestTower2:
                            case c.MapType.HeroTestTower3:
                            case c.MapType.HeroTestTower4:
                            case c.MapType.HeroTestTower5:
                            case c.MapType.HeroTestTower6:
                            case c.MapType.HeroTestTower7:
                            case c.MapType.HeroTestTower8:
                            case c.MapType.HeroTestTower9:
                            case c.MapType.HeroPK:
                                t = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, -e)
                        } else {
                            var o = f.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                            t = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, o.HeroId)
                        }
                    var r = [];
                    switch (this._mapConfig.Type) {
                        case c.MapType.EndlessAbyssSingle:
                        case c.MapType.StarLightSecretLand:
                        case c.MapType.GodLandDuel:
                            r = this._formationConfig.Data;
                            break;
                        default:
                            switch (t.Career) {
                                case c.CareerType.Master:
                                case c.CareerType.Support:
                                    r = [9, 8, 7, 6, 5, 4, 3, 2, 1];
                                    break;
                                case c.CareerType.Tank:
                                    r = [1, 2, 3, 4, 5, 6, 7, 8, 9];
                                    break;
                                case c.CareerType.Warrior:
                                    r = [6, 5, 4, 3, 2, 1, 9, 8, 7]
                            }
                    }
                    for (var i = 0; i < r.length; i++) {
                        var a = r[i] - 1,
                            s = this._attackFormationItems[a];
                        if (s.IsActive && 0 == s.HeroSid) return s
                    }
                    return null
                }, t.prototype.GetFormationItem = function(e) {
                    for (var t = 0; t < this._attackFormationItems.length; t++) {
                        var n = this._attackFormationItems[t];
                        if (n.IsActive && n.HeroSid == e) return n
                    }
                }, t.prototype.RefreshAttackHeroes = function() {
                    var e;
                    switch (this._mapConfig.Type) {
                        case c.MapType.EndlessAbyssSingle:
                        case c.MapType.StarLightSecretLand:
                        case c.MapType.GodLandDuel:
                            e = [];
                            for (var t = 0; t < this._formationHeroSids.length; t++) e.push(this._formationHeroSids[t][0]);
                            break;
                        case c.MapType.SecretArea:
                        case c.MapType.ActivitySecret:
                        case c.MapType.ActivitySecret1:
                        case c.MapType.ActivitySecret2:
                        case c.MapType.ActivitySecret3:
                        case c.MapType.ActivitySecret4:
                        case c.MapType.ActivitySecret5:
                        case c.MapType.SeasonExpedition:
                        case c.MapType.SeasonExpedition1:
                        case c.MapType.SeasonExpedition2:
                        case c.MapType.SeasonExpedition3:
                        case c.MapType.SeasonExpedition4:
                        case c.MapType.SeasonExpedition5:
                            for (e = [], t = 0; t < this._formationHeroSids[this._teamIndex].length; t++) {
                                var n = this._formationHeroSids[this._teamIndex][t];
                                0 == this._heroesHPMap.get(n) && (n = 0), e.push(n)
                            }
                            break;
                        case c.MapType.War:
                        case c.MapType.WarAngel:
                            if (e = this._formationHeroSids[this._teamIndex], this.HeroListComponent.RefreshScrollViewBySIds(e), !this._cityWarHeroComponent) {
                                var o = cc.instantiate(this._formationItemPrefab);
                                o.setParent(this.node), o.position = new cc.Vec3(-200, 200, 0), this._cityWarHeroComponent = o.getComponent(b.default), this._cityWarHeroComponent.SetBasePanel(this), this._cityWarHeroComponent.Init(1, 1, 0, this._mapConfig.Type), this._cityWarHeroComponent.SetShowItemType(this._atkShowType)
                            }
                            var r = e[0] ? e[0] : 0;
                            return void this._cityWarHeroComponent.SetHeroAvatarBySid(r);
                        default:
                            e = this._formationHeroSids[this._teamIndex]
                    }
                    var i = 0;
                    for (this.HeroListComponent.RefreshScrollViewBySIds(e), t = 0; t < this._attackFormationItems.length; t++) {
                        var a = this._attackFormationItems[t],
                            s = t + 1;
                        if (this._formationConfig.Data.indexOf(s) > -1) {
                            var l = e[i];
                            l || (l = 0), i++, a.Init(i, t, this._formationConfig.Data.length, this._mapConfig.Type), a.SetShowItemType(this._atkShowType), a.SetHeroAvatarBySid(l, this.NodeMoveContainer)
                        } else a.Init(0, t, this._formationConfig.Data.length, this._mapConfig.Type), a.SetShowItemType(this._atkShowType), a.SetHeroAvatarBySid(0)
                    }
                    this.RefreshAttackInfo()
                }, t.prototype.RefreshAttackAngel = function() {
                    P.default.Instance.IsGameModuleOpen(c.GameModuleType.Angel) ? (this.AttackAngelNode.active = !1, this._angelIds[this._teamIndex] > 0 && (this.SetAttackAngel(this._angelIds[this._teamIndex]), this.AttackAngelNode.active = !0)) : this.AttackAngelNode.active = !1
                }, t.prototype.SetButtons = function() {
                    return this._mapConfig.Type == c.MapType.War ? (this.FormationOffBtn.node.setContentSize(72, 72), this.FormationOffBtn.node.children[0].setContentSize(72, 72), this.FormationOffBtn.node.setPosition(371, 580), this.FormationOffBtnLabel.fontSize = 20, this.FormationUpBtn.node.setContentSize(72, 72), this.FormationUpBtn.node.children[0].setContentSize(72, 72), this.FormationUpBtn.node.setPosition(465, 580), this.FormationUpBtnLabel.fontSize = 20, void this.HeroElementGroupNode.setScale(.8)) : this._mapConfig.Type == c.MapType.WarAngel ? (this.FormationOffBtn.node.active = !1, void(this.FormationUpBtn.node.active = !1)) : (this.FormationOffBtn.node.setContentSize(120, 120), this.FormationOffBtn.node.children[0].setContentSize(120, 120), this.FormationOffBtn.node.setPosition(444, -8), this.FormationOffBtnLabel.fontSize = 26, this.FormationUpBtn.node.setContentSize(90, 90), this.FormationUpBtn.node.children[0].setContentSize(90, 90), this.FormationUpBtn.node.setPosition(-445, 585), this.FormationUpBtnLabel.fontSize = 30, this.HeroElementGroupNode.setScale(1), void this.SetAngelButton())
                }, t.prototype.SetAngelButton = function() {
                    if (P.default.Instance.IsGameModuleOpen(c.GameModuleType.Angel))
                        if (this._mapConfig.Type >= c.MapType.ActivityHeroTry && this._mapConfig.Type <= c.MapType.ActivityHeroTry10 || this._mapConfig.Type >= c.MapType.HeroTestTower1 && this._mapConfig.Type <= c.MapType.HeroTestTower9 || this._mapConfig.Type == c.MapType.StarLightSecretLand || this._mapConfig.Type == c.MapType.GodLandDuel || this._mapConfig.Type == c.MapType.War || this._mapConfig.Type == c.MapType.SeasonExpedition || this._mapConfig.Type == c.MapType.SeasonExpedition1 || this._mapConfig.Type == c.MapType.SeasonExpedition2 || this._mapConfig.Type == c.MapType.SeasonExpedition3 || this._mapConfig.Type == c.MapType.SeasonExpedition4 || this._mapConfig.Type == c.MapType.SeasonExpedition5) this.AngelButtonNode.active = !1;
                        else {
                            this.AngelButtonNode.active = !0, this._angelBtnNode || (this._angelBtnNode = cc.instantiate(this._angelBtnPrefab), this._angelBtnNode.parent = this.AngelButtonNode, this._angelBtnNode.on("click", this.OnAngelButton, this));
                            var e = this._angelBtnNode.getComponent(E.default);
                            e.Init(this._angelIds[this._teamIndex], !0, !0), e.SetBtnScale(.96), e.SetAngelLabelActive(!1)
                        }
                    else this.AngelButtonNode.active = !1
                }, t.prototype.SetAttackAngel = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return (t = p.DataCenter.Instance.GetDataById(u.UserAngel_Model, e)) ? t.SkinId > 0 ? n = p.ConfigDataComponent.Instance.GetConfigById(y.AngelGodAvatar_Config, t.SkinId) : (o = p.ConfigDataComponent.Instance.GetConfigById(y.AngelStar_Config, 1e3 * t.AngelId + t.StarLevel), n = p.ConfigDataComponent.Instance.GetConfigById(y.AngelGodAvatar_Config, o.AngelShape)) : n = f.ConfigDataComponent.Instance.GetConfigById(y.AngelGodAvatar_Config, e), this.AttackAngelNode.destroyAllChildren(), this._attackAngelPrefab && (l.AssetsManager.Instance.UnloadAsset(this._attackAngelPrefab), this._attackAngelPrefab = null), r = this, [4, l.AssetsManager.Instance.LoadAsset("Angels_" + n.Model + "/HeroAvatar", cc.Prefab)];
                                case 1:
                                    return r._attackAngelPrefab = a.sent(), this.isValid ? ((i = cc.instantiate(this._attackAngelPrefab)).opacity = 0, i.setParent(this.AttackAngelNode), i.getComponent(sp.Skeleton).setAnimation(0, c.SkillAnimationType.Standby, !0), cc.tween(i).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start(), [2]) : (l.AssetsManager.Instance.UnloadAsset(this._attackAngelPrefab), [2])
                            }
                        })
                    })
                }, t.prototype.SortAttackTeamByPower = function(e, t) {
                    return e.Power < t.Power ? -1 : e.Power > t.Power ? 1 : 0
                }, t.prototype.RefreshDefenseHeroes = function() {
                    var e;
                    if (0 != this.DefenseContainer.active)
                        for (var t = 0, n = 0; n < this._defenseFormationItems.length; n++) {
                            var o = this._defenseFormationItems[n],
                                r = n + 1;
                            if (this._defenseFormationTypeData.indexOf(r) > -1) switch (this._mapConfig.Type) {
                                case c.MapType.Arena:
                                case c.MapType.SeniorArena:
                                case c.MapType.RankMatch:
                                case c.MapType.CrossServerArena:
                                case c.MapType.ActivitySecretUser:
                                case c.MapType.ActivitySecretUser1:
                                case c.MapType.ActivitySecretUser2:
                                case c.MapType.ActivitySecretUser3:
                                case c.MapType.ActivitySecretUser4:
                                case c.MapType.ActivitySecretUser5:
                                case c.MapType.FriendPK:
                                case c.MapType.ElementArena:
                                    var i = this._defenseArenaHeroes[t];
                                    if (t++, o.Init(t, n), i) {
                                        var a = void 0;
                                        i.TemplePosition > 0 && (a = i.TempleLevel), o.SetHeroAvatarByItemId(i.HeroId, !0, i.Level, a, i.SkinId), o.SetPetAvatarByItemId(this._defensePetsInfo[i.Sid], !0), o.SetMagicCircleByItemId(null === (e = this._defenseMagicCircleInfo[i.Sid]) || void 0 === e ? void 0 : e.Sid, !0)
                                    } else o.SetHeroAvatarByItemId(0), o.SetPetAvatarByItemId(0), o.SetMagicCircleByItemId(0);
                                    break;
                                case c.MapType.GodLandDuel:
                                    var s = this._defenseAngels[t];
                                    if (t++, o.Init(t, n), s) {
                                        o.SetShowItemType(b.ShowFormationItemType.Angel);
                                        var l = P.default.Instance.GetAngelGodAvatarConfig(s.AngelId, s);
                                        o.SetHeroAvatarByItemId(s.AngelId, !0, s.Level, 0, l.Id)
                                    } else o.SetHeroAvatarByItemId(0);
                                    break;
                                default:
                                    var u = this._defenseMonsterHeroIds[t];
                                    switch (u || (u = 0), t++, this._mapConfig.Type) {
                                        case c.MapType.SecretArea:
                                        case c.MapType.ActivitySecret:
                                        case c.MapType.ActivitySecret1:
                                        case c.MapType.ActivitySecret2:
                                        case c.MapType.ActivitySecret3:
                                        case c.MapType.ActivitySecret4:
                                        case c.MapType.ActivitySecret5:
                                            o.Init(t, n), o.SetHeroAvatarByItemId(u, !0, this._panelData.SecretAreaMosterLevel);
                                            break;
                                        case c.MapType.SeasonExpedition:
                                        case c.MapType.SeasonExpedition1:
                                        case c.MapType.SeasonExpedition2:
                                        case c.MapType.SeasonExpedition3:
                                        case c.MapType.SeasonExpedition4:
                                        case c.MapType.SeasonExpedition5:
                                            o.Init(t, n, void 0, this._mapConfig.Type), o.SetHeroAvatarByItemId(u, !0, -1);
                                            break;
                                        default:
                                            o.Init(t, n);
                                            var p = P.default.Instance.GetHeroIdToAngelId(u);
                                            p > 0 ? (o.SetShowItemType(b.ShowFormationItemType.Angel), o.SetHeroAvatarByItemId(p, !0, this._mapConfig.Strength[1])) : (o.SetShowItemType(b.ShowFormationItemType.Hero), o.SetHeroAvatarByItemId(u, !0, this._mapConfig.Strength[1]))
                                    }
                            } else o.Init(0, n), o.SetHeroAvatarByItemId(0)
                        }
                }, t.prototype.RefreshDefenseAngel = function() {
                    P.default.Instance.IsGameModuleOpen(c.GameModuleType.Angel) ? (this.DefenseAngelNode.active = !1, this._defenseAngelModel && (this.SetDefenseAngel(this._defenseAngelModel), this.DefenseAngelNode.active = !0)) : this.DefenseAngelNode.active = !1
                }, t.prototype.SetDefenseAngel = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.SkinId > 0 ? t = p.ConfigDataComponent.Instance.GetConfigById(y.AngelGodAvatar_Config, e.SkinId) : (n = p.ConfigDataComponent.Instance.GetConfigById(y.AngelStar_Config, 1e3 * e.AngelId + e.StarLevel), t = p.ConfigDataComponent.Instance.GetConfigById(y.AngelGodAvatar_Config, n.AngelShape)), this.DefenseAngelNode.destroyAllChildren(), this._defenseAngelPrefab && (l.AssetsManager.Instance.UnloadAsset(this._defenseAngelPrefab), this._defenseAngelPrefab = null), o = this, [4, l.AssetsManager.Instance.LoadAsset("Angels_" + t.Model + "/HeroAvatar", cc.Prefab)];
                                case 1:
                                    return o._defenseAngelPrefab = i.sent(), this.isValid ? ((r = cc.instantiate(this._defenseAngelPrefab)).opacity = 0, r.setParent(this.DefenseAngelNode), r.scaleX = -1, r.getComponent(sp.Skeleton).setAnimation(0, c.SkillAnimationType.Standby, !0), cc.tween(r).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start(), [2]) : (l.AssetsManager.Instance.UnloadAsset(this._defenseAngelPrefab), [2])
                            }
                        })
                    })
                }, t.prototype.RefreshAttackInfo = function() {
                    this.AttackElement.InitBySid(this.HeroListComponent.SelectSIds, this._mapConfig.Type), this._formationHeroSids[this._teamIndex] = [];
                    var e = 0,
                        t = 0,
                        n = !1,
                        o = 0,
                        r = 0;
                    if (this._activityId && this._activityId > 0 && (d = p.DataCenter.Instance.ActivityConfigs[this._activityId])) switch (r = d.Common.Type) {
                        case w.ActivityType.ElementTest:
                            t = d.CustomPart.Element;
                            break;
                        case w.ActivityType.HeroDungeon:
                            var i = d.CustomPart.HeroId;
                            this.HeroListComponent.SelectSIds.forEach(function(e) {
                                var t = f.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                                t.HeroId == i && (n = !0, o = t.StarLevel)
                            });
                            break;
                        case w.ActivityType.WorldBoss:
                            if (1 == (I = d.CustomPart.Bonus[0])) {
                                var a = d.CustomPart.Bonus[1];
                                this.HeroListComponent.SelectSIds.forEach(function(e) {
                                    var t = f.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                                    t.HeroId == a && (n = !0, o = t.StarLevel)
                                })
                            } else 2 == I && (t = d.CustomPart.Bonus[1])
                    }
                    for (var s = 0; s < this._attackFormationItems.length; s++) {
                        var l = this._attackFormationItems[s];
                        if (l.IsActive) {
                            var c = 1;
                            if (t)
                                if (r == w.ActivityType.ElementTest) {
                                    var d = p.DataCenter.Instance.ActivityConfigs[this._activityId];
                                    (h = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, l.HeroId)) && t != h.ElementType && (c = 1 - d.CustomPart.PowerWeaken / 1e3)
                                } else if (r == w.ActivityType.WorldBoss) {
                                var h;
                                d = p.DataCenter.Instance.ActivityConfigs[this._activityId], (h = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, l.HeroId)) && t != h.ElementType && (c = 1 - d.CustomPart.Bonus[2] / 1e3)
                            }
                            if (r == w.ActivityType.HeroDungeon)
                                if (d = p.DataCenter.Instance.ActivityConfigs[this._activityId], n) {
                                    var g = d.CustomPart.Bonus.length - 1,
                                        m = o - 5 >= d.CustomPart.Bonus.length ? d.CustomPart.Bonus[g] : d.CustomPart.Bonus[o - 5];
                                    c = m && m.Items[1] ? 1 + m.Items[1] / 1e3 : 1 - d.CustomPart.PowerWeaken / 1e3
                                } else c = 1 - d.CustomPart.PowerWeaken / 1e3;
                            else if (r == w.ActivityType.WorldBoss) {
                                var I;
                                if (d = p.DataCenter.Instance.ActivityConfigs[this._activityId], n) g = d.CustomPart.Bonus.length - 1, c = 1 + (o - 5 >= d.CustomPart.Bonus.length - 3 ? d.CustomPart.Bonus[g] : d.CustomPart.Bonus[o - 5 + 3]) / 1e3;
                                else 1 == (I = d.CustomPart.Bonus[0]) && (c = 1 - d.CustomPart.Bonus[2] / 1e3)
                            }
                            this._panelData && null != this._panelData.AdvantageElement && l.ElementType != this._panelData.AdvantageElement && (c = 1 - this._panelData.WeakAttrValue / 1e3), e += l.BattlePower * c, this._formationHeroSids[this._teamIndex].push(l.HeroSid)
                        }
                    }
                    this.AttackPower.string = Math.floor(e).toString(), this.ResetStarCondition(), this.SetStarCondition2(), this.ConfigHeroDungeonHit(), this.ConfigRewardNode(), this.ConfigBossWarHint(), this.SortHeroByPower(), this.UpdateFormationOffBtnLabel(), this.SetHolyRelicCondiction()
                }, t.prototype.SortHeroByPower = function() {}, t.prototype.OnClickAttackElement = function() {
                    C.UIManager.Instance.ShowUIPanel(h.PanelConfig.ElementPanel.Path, this.AttackElement.ElementMap, this.AttackElement.SPHeroCount, this.AttackElement.URHeroCount, this.AttackElement.LRHeroCount)
                }, t.prototype.OnClickDefenseElement = function() {
                    C.UIManager.Instance.ShowUIPanel(h.PanelConfig.ElementPanel.Path, this.DefenseElement.ElementMap, this.DefenseElement.SPHeroCount, this.DefenseElement.URHeroCount, this.DefenseElement.LRHeroCount)
                }, t.prototype.OnFormationBtnClick = function() {
                    C.UIManager.Instance.ShowUIPanel(h.PanelConfig.SelectFormationTypePanel.Path, this._formationsType[this._teamIndex])
                }, t.prototype.OnFormationChanged = function(e) {
                    this._formationsType[this._teamIndex] = e, this._formationConfig = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, e), this.SetFormationIcon(), this.RefreshAttackHeroes()
                }, t.prototype.SetFormationIcon = function() {
                    "" == this._formationConfig.Icon ? this.FormationBtn.node.active = !1 : this._mapConfig.Type != c.MapType.SaintsWar1 && this._mapConfig.Type != c.MapType.SaintsWar2 && this._mapConfig.Type != c.MapType.SaintsWar3 || this.HasFormationEmpty() || !f.DataCenter.Instance.GetIntData(c.UserDataKey.SaintsWarDaySetFormation) ? (this.FormationBtn.node.active = !0, this.FormationIcon.spriteFrame = _.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this._formationConfig.Icon)) : this.FormationBtn.node.active = !1
                }, t.prototype.OnFormationDataChanged = function() {
                    this.RefreshAttackInfo()
                }, t.prototype.OnFomationOff = function() {
                    var e, t = this;
                    switch (this._mapConfig.Type) {
                        case c.MapType.War:
                            return this._cityWarFormationInfo[this._formationSids[this._teamIndex]] && 0 != this._cityWarFormationInfo[this._formationSids[this._teamIndex]].Items[0] ? void _.UIUtlity.ShowFloatingHint("StrongholdWar_Battle_Fromation_Unchange".ToUILocale()) : (this._formationHeroSids[this._teamIndex] = [0, 0, 0, 0, 0], this._cityWarTeamComponent.Init([0, 0, 0, 0, 0], this._mapConfig.Type), void this.RefreshAttackHeroes())
                    }
                    var n = this._formationSids[this._teamIndex];
                    if (this.IsFullHero(n, this._formationHeroSids[this._teamIndex])) {
                        switch (this._mapConfig.Type) {
                            case c.MapType.ActivityHeroTry:
                            case c.MapType.ActivityHeroTry2:
                            case c.MapType.ActivityHeroTry3:
                            case c.MapType.ActivityHeroTry4:
                            case c.MapType.ActivityHeroTry5:
                            case c.MapType.ActivityHeroTry6:
                            case c.MapType.ActivityHeroTry7:
                            case c.MapType.ActivityHeroTry8:
                            case c.MapType.ActivityHeroTry9:
                            case c.MapType.ActivityHeroTry10:
                                this._formationsType[0] = 101;
                                var o = f.DataCenter.Instance.GetTempData(R.default.TEMP_MAPTYPE_HEROSID + this._mapConfig.Type);
                                this._formationHeroSids[0] = [o, 0, 0, 0, 0];
                                break;
                            case c.MapType.ActivitySkinTry:
                            case c.MapType.ActivitySkinTry2:
                            case c.MapType.ActivitySkinTry3:
                            case c.MapType.ActivitySkinTry4:
                                this._formationsType[0] = 101;
                                var r = f.DataCenter.Instance.GetTempData(q.default.TEMP_MAPTYPE_SKINID + this._mapConfig.Type),
                                    i = -p.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, r).HeroId;
                                this._formationHeroSids[0] = [i, 0, 0, 0, 0];
                                break;
                            case c.MapType.HeroTestTower1:
                            case c.MapType.HeroTestTower2:
                            case c.MapType.HeroTestTower3:
                            case c.MapType.HeroTestTower4:
                            case c.MapType.HeroTestTower5:
                            case c.MapType.HeroTestTower6:
                            case c.MapType.HeroTestTower7:
                            case c.MapType.HeroTestTower8:
                            case c.MapType.HeroTestTower9:
                                this._formationsType[0] = 101;
                                var a = f.DataCenter.Instance.GetTempData(H.default.TEMP_HEROTESTTOWER_HEROSID + this._mapConfig.Type);
                                this._formationHeroSids[0] = [a, 0, 0, 0, 0];
                                break;
                            case c.MapType.HeroPK:
                                var s = f.DataCenter.Instance.GetTempData(W.default.TEMP_HEROPK_SELECT_HEROID);
                                this._formationHeroSids[this._teamIndex] = [-s, 0, 0, 0, 0];
                                break;
                            case c.MapType.ArtefactRelic:
                                this._formationHeroSids = this._formationHeroSids.map(function() {
                                    return [0, 0, 0, 0, 0]
                                });
                                break;
                            case c.MapType.EndlessAbyssSingle:
                                this._formationHeroSids[0] = [0], this._formationHeroSids[1] = [0], this._formationHeroSids[2] = [0];
                                break;
                            default:
                                this._formationHeroSids[this._teamIndex] = [0, 0, 0, 0, 0]
                        }
                        this.RefreshAttackHeroes()
                    } else {
                        var l = [];
                        if (this._mapConfig.Type >= c.MapType.ActivityHeroTry && this._mapConfig.Type <= c.MapType.ActivityHeroTry10) o = f.DataCenter.Instance.GetTempData(R.default.TEMP_MAPTYPE_HEROSID + this._mapConfig.Type), l = f.DataCenter.Instance.GetTempData(R.default.TEMP_TRIALUSERHEROES_DATA + o), P.default.Instance.SortData(c.SortDataType.Hero, l, [{
                            Items: [c.SortType.AppointHeroId, -1, Math.abs(o)]
                        }]);
                        else if (this._mapConfig.Type >= c.MapType.ActivitySkinTry && this._mapConfig.Type <= c.MapType.ActivitySkinTry4) r = f.DataCenter.Instance.GetTempData(q.default.TEMP_MAPTYPE_SKINID + this._mapConfig.Type), i = -p.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, r).HeroId, l = f.DataCenter.Instance.GetTempData(q.default.TEMP_SKIN_TRIALUSERHEROES_DATA + i), P.default.Instance.SortData(c.SortDataType.Hero, l, [{
                            Items: [c.SortType.AppointHeroId, -1, Math.abs(i)]
                        }]);
                        else if (this._mapConfig.Type >= c.MapType.HeroTestTower1 && this._mapConfig.Type <= c.MapType.HeroTestTower9) a = f.DataCenter.Instance.GetTempData(H.default.TEMP_HEROTESTTOWER_HEROSID + this._mapConfig.Type), l = f.DataCenter.Instance.GetTempData(H.default.TEMP_HEROTESTTOWER_HERODATAS + a), P.default.Instance.SortData(c.SortDataType.Hero, l, [{
                            Items: [c.SortType.AppointHeroId, -1, Math.abs(a)]
                        }]);
                        else if (this._mapConfig.Type >= c.MapType.ActChampion11 && this._mapConfig.Type <= c.MapType.ActChampion32) {
                            for (var d = f.DataCenter.Instance.ActivityConfigs[this._activityId].__Rounds[z.default.ACTIVITY_CHAMPION_ROUND], h = [], g = [], m = 0; m < d.Condition.length; m++) {
                                var I = d.Condition[m].Items[0],
                                    C = d.Condition[m].Items;
                                if (1 == I || 2 == I)
                                    for (var v = 1; v < C.length; v++) 1 == I ? h.push(C[v]) : 2 == I && g.push(C[v])
                            }
                            f.DataCenter.Instance.GetDataList(u.UserHero_Model).forEach(function(e) {
                                if (-1 == t._lockedHeroes.indexOf(e.Sid)) {
                                    var n = p.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, e.HeroId);
                                    h.length > 0 && g.length > 0 ? -1 != h.indexOf(n.ElementType) && -1 != g.indexOf(n.Career) && l.push(e) : h.length > 0 && 0 == g.length ? -1 != h.indexOf(n.ElementType) && l.push(e) : 0 == h.length && g.length > 0 ? -1 != g.indexOf(n.Career) && l.push(e) : l.push(e)
                                }
                            }), P.default.Instance.SortData(c.SortDataType.Hero, l, [{
                                Items: [c.SortType.Power, -1]
                            }])
                        } else if (this._mapConfig.Type >= c.MapType.SeasonExpedition && this._mapConfig.Type <= c.MapType.SeasonExpedition5) l = this.HeroListComponent.HeroDatas;
                        else {
                            var b = {};
                            if (this._lockedHeroes)
                                for (var S = 0, A = this._lockedHeroes; S < A.length; S++) {
                                    var T = A[S];
                                    T && (b[f.DataCenter.Instance.GetDataById(u.UserHero_Model, T).HeroId] = !0)
                                }
                            var L = ((e = {})[c.FormationIdType.TowerHeart] = c.HeroElementType.Heart, e[c.FormationIdType.TowerPower] = c.HeroElementType.Power, e[c.FormationIdType.TowerTech] = c.HeroElementType.Tech, e[c.FormationIdType.TowerBreak] = c.HeroElementType.Break, e[c.FormationIdType.TowerFight] = c.HeroElementType.Fight, e),
                                k = f.DataCenter.Instance.GetUserData(u.UserHero_Model);
                            for (var m in k)
                                if (!b[(F = k[m]).HeroId]) {
                                    if (this._heroesHPMap && 0 == this._heroesHPMap.get(F.Sid)) continue;
                                    if (L[n]) {
                                        var O = f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, F.HeroId);
                                        if (O.ElementType != L[n] && (O.ElementType != c.HeroElementType.Chaos || !P.default.ChaosHeroCanReplaceElement(F.StarLevel, L[n]))) continue
                                    }
                                    l.push(F)
                                } switch (n) {
                                case c.FormationIdType.HeroDungeon:
                                case c.FormationIdType.HeroDungeon2:
                                case c.FormationIdType.HeroDungeon3:
                                case c.FormationIdType.HeroDungeon4:
                                case c.FormationIdType.HeroDungeon5:
                                case c.FormationIdType.HeroDungeon6:
                                case c.FormationIdType.HeroDungeon7:
                                case c.FormationIdType.HeroDungeon8:
                                case c.FormationIdType.HeroDungeon9:
                                    var M = p.DataCenter.Instance.ActivityConfigs[this._activityId];
                                    M.Common.Type == w.ActivityType.HeroDungeon ? P.default.Instance.SortData(c.SortDataType.Hero, l, [{
                                        Items: [c.SortType.AppointHeroId, -1, M.CustomPart.HeroId]
                                    }, {
                                        Items: [c.SortType.Power, -1]
                                    }, {
                                        Items: [c.SortType.StarLevel, -1]
                                    }, {
                                        Items: [c.SortType.Level, -1]
                                    }]) : P.default.Instance.SortData(c.SortDataType.Hero, l, [{
                                        Items: [c.SortType.Power, -1]
                                    }, {
                                        Items: [c.SortType.Level, -1]
                                    }, {
                                        Items: [c.SortType.StarLevel, -1]
                                    }]);
                                    break;
                                case c.FormationIdType.ActHeroPK1:
                                case c.FormationIdType.ActHeroPK2:
                                case c.FormationIdType.ActHeroPK3:
                                    var D = f.DataCenter.Instance.GetTempData(W.default.TEMP_HEROPK_SELECT_HEROID),
                                        B = new u.UserHero_Model;
                                    B.Sid = -D, B.HeroId = D, B.StarLevel = 5, B.Level = 100, l.push(B), P.default.Instance.SortData(c.SortDataType.Hero, l, [{
                                        Items: [c.SortType.AppointHeroId, -1, D]
                                    }, {
                                        Items: [c.SortType.Power, -1]
                                    }]);
                                    break;
                                default:
                                    P.default.Instance.SortData(c.SortDataType.Hero, l, [{
                                        Items: [c.SortType.Power, -1]
                                    }, {
                                        Items: [c.SortType.Level, -1]
                                    }, {
                                        Items: [c.SortType.StarLevel, -1]
                                    }])
                            }
                        }
                        var N = this._formationHeroSids[this._teamIndex];
                        this._formationHeroSids[this._teamIndex] = [];
                        var E = 5;
                        if ([c.FormationIdType.EnelessAbyssSingle1, c.FormationIdType.EnelessAbyssSingle2, c.FormationIdType.EnelessAbyssSingle3].includes(n) && (E = 1), this._limitHeroCount && (E = this._limitHeroCount), this._mapConfig.Type == c.MapType.ArtefactRelic) {
                            var U = P.default.Instance.HolyRelicPickHero(this._panelData.HolyRelicCheckPointId, this._formationHeroSids.length);
                            U.success ? this._formationHeroSids = U.result : _.UIUtlity.ShowFloatingHint(U.failMsg)
                        } else if (this._mapConfig.Type == c.MapType.EndlessAbyssSingle) {
                            var G = {},
                                x = 0;
                            for (m = 0; m < this._formationHeroSids.length; m++) {
                                for (this._formationHeroSids[m] = []; this._formationHeroSids[m].length < 1;)(F = l[x]) && this._formationHeroSids[m].length < E ? G[F.HeroId] || (this._formationHeroSids[m].push(F.Sid), G[F.HeroId] = !0) : this._formationHeroSids[m].push(0), x++;
                                P.default.Instance.SortHeroByCareer(this._formationHeroSids[m])
                            }
                        } else {
                            for (G = {}, x = 0; this._formationHeroSids[this._teamIndex].length < 5;) {
                                var F;
                                (F = l[x]) && this._formationHeroSids[this._teamIndex].length < E ? G[F.HeroId] || (this._formationHeroSids[this._teamIndex].push(F.Sid), G[F.HeroId] = !0) : this._formationHeroSids[this._teamIndex].push(0), x++
                            }
                            P.default.Instance.SortHeroByCareer(this._formationHeroSids[this._teamIndex])
                        }
                        if (this.RefreshAttackHeroes(), !this.IsFullHero(n, this._formationHeroSids[this._teamIndex])) {
                            var j = !0;
                            for (m = 0; m < N.length; m++)
                                if (N[m] != this._formationHeroSids[this._teamIndex][m]) {
                                    j = !1;
                                    break
                                } j && _.UIUtlity.ShowFloatingHint("formation_no_more_on_formation".ToUILocale())
                        }
                    }
                }, t.prototype.IsFullHero = function(e, t) {
                    switch (e) {
                        case c.FormationIdType.EnelessAbyssSingle1:
                        case c.FormationIdType.EnelessAbyssSingle2:
                        case c.FormationIdType.EnelessAbyssSingle3:
                            return t[0] > 0;
                        case c.FormationIdType.ActChampion11:
                        case c.FormationIdType.ActChampion12:
                        case c.FormationIdType.ActChampion31:
                        case c.FormationIdType.ActChampion32:
                        case c.FormationIdType.ActChampion33:
                        case c.FormationIdType.ActChampion34:
                        case c.FormationIdType.ActChampion35:
                        case c.FormationIdType.ActChampion36:
                            for (var n = 0, o = 0; o < this._limitHeroCount; o++) t[o] && n++;
                            return n == this._limitHeroCount;
                        case c.FormationIdType.ActBreakou1:
                        case c.FormationIdType.ActBreakou2:
                        case c.FormationIdType.ActBreakou3:
                        case c.FormationIdType.ActBreakou4:
                        case c.FormationIdType.ActBreakou5:
                        case c.FormationIdType.ActBreakou6:
                        case c.FormationIdType.ActBreakou7:
                            var r = e - c.FormationIdType.ActBreakou1,
                                i = p.DataCenter.Instance.ActivityConfigs[this._activityId],
                                a = 5,
                                s = 0;
                            return i && i.CustomPart.Condition[r] && (a = i.CustomPart.Condition[r].Items[0]), t.forEach(function(e) {
                                e > 0 && s++
                            }), s >= a;
                        default:
                            for (o = 0; o < 5; o++) {
                                var l = t[o];
                                if (0 == l) return !1;
                                if (this._heroesHPMap && 0 == this._heroesHPMap.get(l)) return !1
                            }
                    }
                    return !0
                }, t.prototype.UpdateFormationOffBtnLabel = function() {
                    var e = this._formationSids[this._teamIndex];
                    this.IsFullHero(e, this._formationHeroSids[this._teamIndex]) ? this.FormationOffBtnLabel.string = "formation_off_auto".ToUILocale() : this.FormationOffBtnLabel.string = "formation_auto".ToUILocale()
                }, t.prototype.OnFormationUpButtonClick = function() {
                    var e = this;
                    switch (this._mapConfig.Type) {
                        case c.MapType.War:
                            if (this._cityWarFormationInfo[this._formationSids[this._teamIndex]] && 0 != this._cityWarFormationInfo[this._formationSids[this._teamIndex]].Items[0]) return void _.UIUtlity.ShowFloatingHint("StrongholdWar_Battle_Fromation_Unchange".ToUILocale());
                            var t = [0, 0, 0, 0, 0],
                                n = 0,
                                o = f.DataCenter.Instance.GetDataList(u.UserHero_Model);
                            P.default.Instance.SortHeroByRule2(o);
                            for (var r = 0; r < o.length; r++) {
                                for (var i = o[r], a = !1, s = 0; s < t.length; s++) {
                                    var l = f.DataCenter.Instance.GetDataById(u.UserHero_Model, t[s]);
                                    if (l && l.HeroId == i.HeroId) {
                                        a = !0;
                                        break
                                    }
                                }
                                if (!a && (-1 == this._lockedHeroes.indexOf(i.Sid) || this._formationHeroSids[this._teamIndex].includes(i.Sid)) && (t[n] = i.Sid, 5 == ++n)) break
                            }
                            if (this._formationHeroSids[this._teamIndex] = t, this._cityWarTeamComponent.Init(t, this._mapConfig.Type), this._cityWarHeroComponent.SetHeroAvatarBySid(t[0]), this.HeroListComponent.RefreshScrollViewBySIds(t), -1 == f.DataCenter.Instance.GetArrayData(w.UserDataKey.CityWarGuide).indexOf(w.StrongholdWarGuideArray.OnFormationUpButton)) {
                                var d = new u.Req_AllianceCityWar_UpdateGuide;
                                d.Id = w.StrongholdWarGuideArray.OnFormationUpButton, p.RpcComponent.Instance.Call(d, function() {
                                    e.ShowCityWarModuleGuide(), e.GuidTipNode.active = !0, e.GuidTipRichText.string = "StrongholdWar_Battle_Fromation_Guide_Tip".ToUILocale()
                                })
                            }
                    }
                }, t.prototype.OnReturnClick = function() {
                    this.Close()
                }, t.prototype.HasFormationEmpty = function() {
                    for (var e = 0; e < this._formationHeroSids.length; e++) {
                        for (var t = !0, n = this._formationHeroSids[e], o = 0; o < n.length; o++)
                            if (0 != n[o]) {
                                t = !1;
                                break
                            } if (t && (this._mapConfig.Type != c.MapType.CrossZoneContinueWarRank || 0 == e)) return _.UIUtlity.ShowFloatingHint("formation_hero_empty".ToUILocale().Fmt(e + 1)), !0
                    }
                    return !1
                }, t.prototype.OnBattleClick = function() {
                    var e = this;
                    switch (this._mapConfig.Type) {
                        case c.MapType.War:
                            for (var t = 0; t < this._formationHeroSids.length; t++) {
                                if (!this._formationHeroSids[t][0]) return void _.UIUtlity.ShowFloatingHint("StrongholdWar_Battle_Fromation_Unsave_Tip".ToUILocale().Fmt(t + 1));
                                if (-1 == f.DataCenter.Instance.GetArrayData(w.UserDataKey.CityWarGuide).indexOf(w.StrongholdWarGuideArray.SaveFormationButton)) {
                                    var n = new u.Req_AllianceCityWar_UpdateGuide;
                                    n.Id = w.StrongholdWarGuideArray.SaveFormationButton, p.RpcComponent.Instance.Call(n, function() {})
                                }
                            }
                            return void this.DoBattleJob();
                        case c.MapType.EndlessAbyssSingle:
                            var o = this._formationHeroSids[this._teamIndex];
                            if (0 == o[0]) return void _.UIUtlity.ShowFloatingHint("formation_vanguard_hero_empty".ToUILocale());
                            if (0 == o[1] || 0 == o[2]) return void _.UIUtlity.ShowHintPanel("", "formation_replacement_hero_empty".ToUILocale(), "", null, "", function() {
                                e.DoBattleJob()
                            });
                            break;
                        case c.MapType.StarLightSecretLand:
                        case c.MapType.GodLandDuel:
                            var r = this._formationHeroSids[this._teamIndex],
                                i = !1;
                            for (t = 0; t < r.length; t++)
                                if (r[t] > 0) {
                                    i = !0;
                                    break
                                } return i ? void this.DoBattleJob() : void _.UIUtlity.ShowFloatingHint("angel_formation_limit".ToUILocale());
                        case c.MapType.ActivityHeroTry:
                        case c.MapType.ActivityHeroTry2:
                        case c.MapType.ActivityHeroTry3:
                        case c.MapType.ActivityHeroTry4:
                        case c.MapType.ActivityHeroTry5:
                        case c.MapType.ActivityHeroTry6:
                        case c.MapType.ActivityHeroTry7:
                        case c.MapType.ActivityHeroTry8:
                        case c.MapType.ActivityHeroTry9:
                        case c.MapType.ActivityHeroTry10:
                            var a = this._formationHeroSids[this._teamIndex],
                                s = !0;
                            for (t = 0; t < a.length; t++) 0 == a[t] && (s = !1);
                            if (!s) return void _.UIUtlity.ShowHintPanel("", "formation_replacement_hero_empty".ToUILocale(), "", null, "", function() {
                                e.DoBattleJob()
                            });
                            break;
                        case c.MapType.SaintsWar1:
                        case c.MapType.SaintsWar2:
                        case c.MapType.SaintsWar3:
                            if (this.HasFormationEmpty()) return;
                            return void(f.DataCenter.Instance.GetIntData(c.UserDataKey.SaintsWarDaySetFormation) ? this.DoBattleJob() : _.UIUtlity.ShowHintPanel("", "saintsWarFormatonConfirmHint".ToUILocale(), "", null, "", function() {
                                e.DoBattleJob()
                            }));
                        case c.MapType.HeroPK:
                            if (this.HasFormationEmpty()) return;
                            var l = f.DataCenter.Instance.GetTempData(W.default.TEMP_HEROPK_SELECT_HEROID);
                            for (t = 0; t < this._formationHeroSids.length; t++) {
                                for (var d = !1, h = this._formationHeroSids[t], y = 0; y < h.length; y++) {
                                    var g = h[y],
                                        m = void 0;
                                    if (g < 0 ? m = -g : g > 0 && (m = f.DataCenter.Instance.GetDataById(u.UserHero_Model, g).HeroId), m == l) {
                                        d = !0;
                                        break
                                    }
                                }
                                if (!d) return _.UIUtlity.ShowFloatingHint("Activity_HeroPK_BattleFormation_Tip".ToUILocale().Fmt(t + 1)), !0
                            }
                            break;
                        case c.MapType.ActivityBoss:
                        case c.MapType.ActivityBoss2:
                        case c.MapType.ActivityBoss3:
                            var I = f.DataCenter.Instance.ActivityConfigs[this._activityId];
                            if (I && I.Conditions.length > 0) {
                                var C = k.TimeUtil.GetDiffDays(I.Common.StartTime, p.RpcComponent.Instance.ServerTime, !0) + 1,
                                    v = [],
                                    b = [];
                                for (t = 0; t < I.Conditions.length; t++) {
                                    if (C == I.Conditions[t].Id) {
                                        I.Conditions[t].Condition1.length > 0 && (v = this.GetActivityBossConditionData(I.Conditions[t].Condition1, 0)), I.Conditions[t].Condition2.length > 0 && (b = this.GetActivityBossConditionData(I.Conditions[t].Condition2, 1));
                                        break
                                    }
                                    t == I.Conditions.length - 1 && (I.Conditions[t].Condition1.length > 0 && (v = this.GetActivityBossConditionData(I.Conditions[t].Condition1, 0)), I.Conditions[t].Condition2.length > 0 && (b = this.GetActivityBossConditionData(I.Conditions[t].Condition2, 1)))
                                }
                                if (v.length > 0)
                                    for (t = 0; t < v.length; t++)
                                        if (!v[t].IsSatisfy) return void _.UIUtlity.ShowFloatingHint("activityBoss_reset_formation".ToUILocale().Fmt(1));
                                if (b.length > 0)
                                    for (t = 0; t < b.length; t++)
                                        if (!b[t].IsSatisfy) return void _.UIUtlity.ShowFloatingHint("activityBoss_reset_formation".ToUILocale().Fmt(2))
                            }
                            if (this.HasFormationEmpty()) return;
                            break;
                        case c.MapType.ActBreakou:
                            if (this.HasFormationEmpty()) return;
                            var S = f.DataCenter.Instance.ActivityConfigs[this._activityId];
                            if (S) {
                                var P = function(e) {
                                        var t = S.CustomPart.Condition[e].Items[0];
                                        if (!A._formationHeroSids[e]) return _.UIUtlity.ShowFloatingHint("formation_hero_empty".ToUILocale().Fmt(e + 1)), {
                                            value: void 0
                                        };
                                        var n = 0;
                                        return A._formationHeroSids[e].forEach(function(e) {
                                            e > 0 && n++
                                        }), n > t ? (_.UIUtlity.ShowFloatingHint("breakOutMatch_team_heroCount_limt".ToUILocale().Fmt(e + 1, t)), {
                                            value: void 0
                                        }) : void 0
                                    },
                                    A = this;
                                for (t = 0; t < S.CustomPart.Condition.length; t++) {
                                    var T = P(t);
                                    if ("object" == typeof T) return T.value
                                }
                            }
                            break;
                        default:
                            if (this.HasFormationEmpty()) return
                    }
                    this.DoBattleJob()
                }, t.prototype.DoBattleJob = function() {
                    for (var e = [], t = 0; t < this._formationHeroSids.length; t++) {
                        var n = new u.UserFormation_Model;
                        if (n.Sid = this._formationSids[t], this._mapConfig.Type == c.MapType.StarLightSecretLand || this._mapConfig.Type == c.MapType.GodLandDuel) n.FormationType = this.EndlessAbyssSId, n.HeroIds = [0], this._formationHeroSids[0][t] > 0 ? (n.Angel = new u.UserAngel_Model, n.Angel.AngelId = this._formationHeroSids[0][t]) : n.Angel = null;
                        else {
                            var o = this._angelIds[t] > 0 ? this._angelIds[t] : 0;
                            switch (o > 0 && (n.Angel = new u.UserAngel_Model, n.Angel.AngelId = o), this._mapConfig.Type) {
                                case c.MapType.EndlessAbyssSingle:
                                    n.FormationType = this.EndlessAbyssSId, n.HeroIds = [this._formationHeroSids[0][t]];
                                    break;
                                case c.MapType.War:
                                    n.FormationType = this._formationsType[t], n.HeroIds = this._formationHeroSids[t];
                                    break;
                                case c.MapType.ActivityHeroTry:
                                case c.MapType.ActivityHeroTry2:
                                case c.MapType.ActivityHeroTry3:
                                case c.MapType.ActivityHeroTry4:
                                case c.MapType.ActivityHeroTry5:
                                case c.MapType.ActivityHeroTry6:
                                case c.MapType.ActivityHeroTry7:
                                case c.MapType.ActivityHeroTry8:
                                case c.MapType.ActivityHeroTry9:
                                case c.MapType.ActivityHeroTry10:
                                    n.Angel = null, n.FormationType = this._formationsType[t], n.HeroIds = this._formationHeroSids[t];
                                    break;
                                default:
                                    n.FormationType = this._formationsType[t], n.HeroIds = this._formationHeroSids[t]
                            }
                        }
                        e.push(n)
                    }
                    this._mapConfig.Type != c.MapType.ArtefactRelic || P.default.Instance.HolyRelicCanFight(this._panelData.HolyRelicCheckPointId, e) ? (this._battleCallback && (this._mapConfig.Type == c.MapType.ActChampionship ? this._battleCallback(e, this._panelData.ActivityId) : this._battleCallback(e)), this._panelData && this._panelData.IsSaveFormationState ? this.Close() : this.DelayClose()) : _.UIUtlity.ShowFloatingHint("HolyRelic_cannotFight".ToUILocale())
                }, t.prototype.OnRuleBtnClick = function() {
                    var e = ("formation_map_rule_" + this._mapConfig.Type + "_name").ToUILocale(),
                        t = [("formation_map_rule_" + this._mapConfig.Type + "_title").ToUILocale()],
                        n = [("formation_map_rule_" + this._mapConfig.Type + "_info").ToUILocale()];
                    _.UIUtlity.ShowRulePanel({
                        name: e,
                        titles: t,
                        contents: n
                    })
                }, t.prototype.OnAngelButton = function() {
                    this._panelData && this._panelData.HasLockedAllHeroes ? _.UIUtlity.ShowFloatingHint("setAngel_formation_lock".ToUILocale()) : l.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelSelectPanel.Path, this._formationSids, this._angelIds, this._teamIndex)
                }, t.prototype.ShowGuide = function() {
                    if (A.default.Instance.IsInGuide) switch (A.default.Instance.CurrentStep) {
                        case 3104:
                            this.HeroListComponent.ScrollView.enabled = !1, A.default.Instance.ShowGuide(this.HeroListComponent.HeroCustomLayout.node.children[2]);
                            break;
                        case 8104:
                            this.HeroListComponent.ScrollView.enabled = !1, A.default.Instance.ShowGuide(this.HeroListComponent.HeroCustomLayout.node.children[3]);
                            break;
                        case 3105:
                        case 8105:
                        case 11103:
                        case 12102:
                        case 14102:
                            A.default.Instance.ShowGuide(this.BattleBtn.node);
                            break;
                        case 11102:
                            this.HeroListComponent.ScrollView.enabled = !1, A.default.Instance.ShowGuide(this.HeroListComponent.HeroCustomLayout.node.children[4])
                    }
                }, t.prototype.ShowCityWarModuleGuide = function() {
                    var e = B.default.GetItem(B.GameRecordDefine.StrongholdWarGuide) ? JSON.parse(B.default.GetItem(B.GameRecordDefine.StrongholdWarGuide)) : [],
                        t = f.DataCenter.Instance.GetArrayData(w.UserDataKey.CityWarGuide); - 1 == e.indexOf(w.StrongholdWarGuideArray.OnFormationUpButton) && -1 == t.indexOf(w.StrongholdWarGuideArray.OnFormationUpButton) ? N.default.instance.AddFingerNode(this.FormationUpBtn.node) : N.default.instance.RemoveFingerNode(this.FormationUpBtn.node)
                }, t.prototype.SetFormationAngel = function(e, t) {
                    var n = this._formationSids.findIndex(function(t) {
                        return t == e
                    });
                    n > -1 && (this._angelIds[n] = t), this.RefreshAttackAngel(), this.SetAngelButton()
                }, t.prototype.onDestroy = function() {
                    this._attackAngelPrefab && l.AssetsManager.Instance.UnloadAsset(this._attackAngelPrefab), this._defenseAngelPrefab && l.AssetsManager.Instance.UnloadAsset(this._defenseAngelPrefab)
                }, t.prototype.SetHolyRelicCondiction = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._panelData && this._panelData.HolyRelicCheckPointId ? (this.TitleContainer2.active = !0, e = [{
                                        name: "HolyRelicElementType_blue",
                                        color: "#91dcff"
                                    }, {
                                        name: "HolyRelicElementType_red",
                                        color: "#ff40e3"
                                    }, {
                                        name: "HolyRelicElementType_green",
                                        color: "#6eeea7"
                                    }, {
                                        name: "HolyRelicElementType_yellow",
                                        color: "#ffa14d"
                                    }, {
                                        name: "HolyRelicElementType_purple",
                                        color: "#9a7dfa"
                                    }, {
                                        name: "HolyRelicElementType_chaos",
                                        color: "#b440f8"
                                    }], t = this._panelData.HolyRelicElementType - 1, n = P.default.Instance.GetHolyRelicCheckPointProgress(this._panelData.HolyRelicElementType), o = e[t].name.ToUILocale().RichTextColor(e[t].color), r = (n[0] + 1).toString().RichTextColor("#FFE685"), this.Title2.string = "HolyRelic_settlement".ToUILocale().Fmt(o, r).RichTextOutLine("#202434", 3), this._mapConfig.Type != c.MapType.ArtefactRelic ? [2] : this._holyRelicCondictionPrefab ? [3, 2] : (i = this, [4, this.LoadDynamicAsset("HolyRelicsPanel/Component/HolyRelicCondictionGroupComponent", cc.Prefab)])) : [2];
                                case 1:
                                    if (i._holyRelicCondictionPrefab = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._holyRelicCondictionPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    return this._holyRelicCondictionComp || (a = cc.instantiate(this._holyRelicCondictionPrefab), this.TitleContainer2.addChild(a), this._holyRelicCondictionComp = a.getComponent(G.default)), this._holyRelicCondictionComp.Set(this._panelData.HolyRelicCheckPointId, this._formationHeroSids, this._teamIndex), [2]
                            }
                        })
                    })
                }, t.prototype.OnHolyRelicConfigBtn = function() {
                    switch (this._mapConfig.Type) {
                        case c.MapType.ArtefactRelic:
                            l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonEquipmentSetPanel.Path, this._formationHeroSids, c.StandaloneEquipType.ArtefactRelic);
                            break;
                        case c.MapType.ElementArena:
                            l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonEquipmentSetPanel.Path, this._formationHeroSids, c.StandaloneEquipType.ElementArena)
                    }
                }, t.prototype.SetActivityBossNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this.ActivityBossNode.active = !1, this._activityId && (e = p.DataCenter.Instance.ActivityConfigs[this._activityId]) && e.CustomPart.Skill && e.CustomPart.Skill.length > 1 ? this._skillPrefab ? [3, 2] : [4, this.LoadDynamicAsset(h.BundlePath.SkillItemComponent, cc.Prefab)] : [3, 3];
                                case 1:
                                    if (t = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._skillPrefab = t, r.label = 2;
                                case 2:
                                    this._skillNode || (this._skillNode = cc.instantiate(this._skillPrefab), this._skillNode.parent = this.ActivityBossBuffNode), n = e.CustomPart.Skill[0], this._skillNode.getComponent(F.default).Init(n), o = j.default.GetReduceCount(e), this.ActivityBossReduce.string = "x{0}".Fmt(o), this.ActivityBossNode.active = !0, r.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnBossSkillInfoButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.BossWarPreviewPanel.Path, this._mapConfig.Id)
                }, t.prototype.SetElementStrengthenComponent = function() {
                    var e;
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    switch (this._mapConfig.Type) {
                                        case w.MapType.TowerHeart:
                                        case w.MapType.TowerPower:
                                        case w.MapType.TowerTech:
                                        case w.MapType.TowerBreak:
                                        case w.MapType.TowerFight:
                                            return [3, 1]
                                    }
                                    return [3, 6];
                                case 1:
                                    return (t = Z.default.GetElementStrengthenUnlockInfo(this._mapConfig.Type, Z.ElementStrengthenParamType.MapType))[0] && t[1] ? this._elementStrengthenPrefab ? [3, 3] : [4, this.LoadDynamicAsset("ClimbTowerPanel/ElementStrengthenComponent", cc.Prefab)] : [3, 4];
                                case 2:
                                    if (n = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._elementStrengthenPrefab = n, o = cc.instantiate(this._elementStrengthenPrefab), this.ElementStrengthenNode.addChild(o), r.label = 3;
                                case 3:
                                    return this.ElementStrengthenNode.active = !0, null === (e = this.ElementStrengthenNode.children[0]) || void 0 === e || e.getComponent(Z.default).Init(this._mapConfig.Type, Z.ElementStrengthenParamType.MapType), [3, 5];
                                case 4:
                                    this.ElementStrengthenNode.active = !1, r.label = 5;
                                case 5:
                                    return [3, 7];
                                case 6:
                                    return this.ElementStrengthenNode.active = !1, [3, 7];
                                case 7:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t;
                        switch (this._mapConfig.Type) {
                            case c.MapType.TestTowerHard:
                                t = V.default.Instance.GetCurrentGroupId([10011]);
                                break;
                            case c.MapType.ArtefactRelic:
                                t = V.default.Instance.GetCurrentGroupId([10043]);
                                break;
                            default:
                                return
                        }
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = p.ConfigDataComponent.Instance.GetConfigById(y.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 35:
                                        case 108:
                                            V.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([X(cc.Sprite)], t.prototype, "Bg", void 0), i([X(cc.Node)], t.prototype, "TitleNode", void 0), i([X(cc.Node)], t.prototype, "TitleContainer", void 0), i([X(cc.RichText)], t.prototype, "Title", void 0), i([X(cc.Node)], t.prototype, "TitleContainer2", void 0), i([X(cc.RichText)], t.prototype, "Title2", void 0), i([X(cc.Label)], t.prototype, "PanelName", void 0), i([X(cc.Node)], t.prototype, "DescNode", void 0), i([X(cc.Label)], t.prototype, "Desc", void 0), i([X(cc.Label)], t.prototype, "AttackPower", void 0), i([X(cc.Label)], t.prototype, "DefensePower", void 0), i([X(v.default)], t.prototype, "AttackElement", void 0), i([X(cc.Button)], t.prototype, "AttackElementBtn", void 0), i([X(v.default)], t.prototype, "DefenseElement", void 0), i([X(cc.Button)], t.prototype, "DefenseElementBtn", void 0), i([X(cc.Node)], t.prototype, "ElementStrengthenNode", void 0), i([X(cc.Node)], t.prototype, "HeroBottomContainer", void 0), i([X(cc.Node)], t.prototype, "AttackContainer", void 0), i([X(cc.Node)], t.prototype, "AttackContainerChilds", void 0), i([X(cc.Node)], t.prototype, "DefenseContainer", void 0), i([X(cc.Node)], t.prototype, "HeroTopContainer", void 0), i([X(m.default)], t.prototype, "HeroListComponent", void 0), i([X(g.default)], t.prototype, "Toggles", void 0), i([X(cc.Button)], t.prototype, "ReturnBtn", void 0), i([X(cc.Button)], t.prototype, "BattleBtn", void 0), i([X(cc.Label)], t.prototype, "BattleBtnLabel", void 0), i([X(cc.Button)], t.prototype, "FormationBtn", void 0), i([X(cc.Sprite)], t.prototype, "FormationIcon", void 0), i([X(cc.Label)], t.prototype, "FormationLabel", void 0), i([X(cc.Button)], t.prototype, "FormationOffBtn", void 0), i([X(cc.Label)], t.prototype, "FormationOffBtnLabel", void 0), i([X(cc.Button)], t.prototype, "FormationUpBtn", void 0), i([X(cc.Label)], t.prototype, "FormationUpBtnLabel", void 0), i([X(cc.Node)], t.prototype, "VSNode", void 0), i([X(cc.Node)], t.prototype, "BattleInfoContainer", void 0), i([X(cc.Button)], t.prototype, "AdjustFormationBtn", void 0), i([X(cc.Node)], t.prototype, "NodeMoveContainer", void 0), i([X(cc.Button)], t.prototype, "RuleBtn", void 0), i([X(cc.Button)], t.prototype, "LevelStarBtn", void 0), i([X(S.default)], t.prototype, "StarConditionComponent", void 0), i([X(cc.Node)], t.prototype, "AllianceTrainingHint", void 0), i([X(cc.Node)], t.prototype, "ElementTrialHint", void 0), i([X(cc.Node)], t.prototype, "AllianceElementTip", void 0), i([X(cc.Node)], t.prototype, "HeroDungeonNode", void 0), i([X(cc.Node)], t.prototype, "HeroDungeonUpHeroNode", void 0), i([X(cc.Node)], t.prototype, "BattleFormationSwitchNode", void 0), i([X(cc.Node)], t.prototype, "FutureMapInfoNode", void 0), i([X(cc.Node)], t.prototype, "AttrBounsNode", void 0), i([X(cc.Label)], t.prototype, "AttrBounsTitle", void 0), i([X(cc.Sprite)], t.prototype, "AttrBounsIcon", void 0), i([X(cc.Label)], t.prototype, "AttrBounsName", void 0), i([X(cc.Label)], t.prototype, "AttrBounsValue", void 0), i([X(cc.Node)], t.prototype, "StarConditionComponent2", void 0), i([X(cc.Label)], t.prototype, "Tag2", void 0), i([X(cc.Node)], t.prototype, "ConditionLayout2", void 0), i([X(cc.Node)], t.prototype, "TeamComponentNode", void 0), i([X(D.default)], t.prototype, "MaterialComponent", void 0), i([X(cc.Node)], t.prototype, "AngelButtonNode", void 0), i([X(cc.Node)], t.prototype, "AttackAngelNode", void 0), i([X(cc.Node)], t.prototype, "DefenseAngelNode", void 0), i([X(cc.Node)], t.prototype, "HeroElementGroupNode", void 0), i([X(cc.Node)], t.prototype, "GuidTipNode", void 0), i([X(cc.RichText)], t.prototype, "GuidTipRichText", void 0), i([X(cc.Node)], t.prototype, "GuidTipCloseNode", void 0), i([X(cc.Node)], t.prototype, "HeroTestTowerAddtionNode", void 0), i([X(cc.Button)], t.prototype, "HolyRelicConfigBtn", void 0), i([X(cc.Label)], t.prototype, "HolyRelicConfigLabel", void 0), i([X(cc.Node)], t.prototype, "RewardNode", void 0), i([X(cc.Label)], t.prototype, "RewardTitle", void 0), i([X(cc.Node)], t.prototype, "RewardContent", void 0), i([X(cc.Node)], t.prototype, "ActivityBossNode", void 0), i([X(cc.Node)], t.prototype, "ActivityBossBuffNode", void 0), i([X(cc.Label)], t.prototype, "ActivityBossReduce", void 0), i([X(cc.Button)], t.prototype, "BossSkillInfoButton", void 0), i([X(cc.Label)], t.prototype, "BossSkillInfoButtonLabel", void 0), i([X(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([X(cc.Node)], t.prototype, "ToggleItem", void 0), i([X(cc.Node)], t.prototype, "FormationContainer", void 0), i([X(cc.Node)], t.prototype, "AttackPowerIcon", void 0), i([X(cc.Node)], t.prototype, "AttackPowerPattern", void 0), i([X(cc.Node)], t.prototype, "AttackPowerBg", void 0), i([J], t)
            }(l.BaseUIFullScreenPanel);
        n.default = Q, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/BattleFormationMaterialConponent": "BattleFormationMaterialConponent",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ElementEffectItem": "ElementEffectItem",
        "../Components/ElementStrengthenComponent": "ElementStrengthenComponent",
        "../Components/FormationSwitchBtn": "FormationSwitchBtn",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/HeroListComponent": "HeroListComponent",
        "../Components/HolyRelicCondictionGroupComponent": "HolyRelicCondictionGroupComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/ItemCountComponent": "ItemCountComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "../Components/StarConditionItem": "StarConditionItem",
        "../Components/StrongholdWarBattleFormationComponent": "StrongholdWarBattleFormationComponent",
        "../Components/TestTowerBattleHeroAddtionComponent": "TestTowerBattleHeroAddtionComponent",
        "./ActivityBossPanel": "ActivityBossPanel",
        "./ActivityChampionPanel": "ActivityChampionPanel",
        "./ActivityHeroPKPanel": "ActivityHeroPKPanel",
        "./ActivityHeroTestTowerEntryPanel": "ActivityHeroTestTowerEntryPanel",
        "./ActivitySinglePageGiftPanel": "ActivitySinglePageGiftPanel",
        "./AngelBtnComponent": "AngelBtnComponent",
        "./BattleFormationItem": "BattleFormationItem",
        "./FutureMapLevelInfo": "FutureMapLevelInfo",
        "./StarConditionComponent": "StarConditionComponent",
        "./TrialHeroPanel": "TrialHeroPanel"
    }],
    BattleHelper: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "13fb2syfXVJwKy3NHr9+H7T", "BattleHelper"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BattleHelper = void 0;
        var o = function() {
            function e() {}
            return e.GetStationId = function(t, n) {
                return t = Math.min(Math.max(0, t), e.FORMATION_ROW_COUNT - 1), n = Math.min(Math.max(0, n), e.FORMATION_COL_COUNT - 1), t * e.FORMATION_COL_COUNT + n
            }, e.GetColIndex = function(t) {
                return t % e.FORMATION_COL_COUNT
            }, e.GetRowIndex = function(t) {
                return Math.floor(t / e.FORMATION_COL_COUNT)
            }, e.GetBattleFieldPositionByStationId = function(t, n) {
                if (t < 0) return {
                    x: 280 * -n,
                    y: 565
                };
                var o = e.GetRowIndex(t),
                    r = e.GetColIndex(t);
                return e.GetBattleFieldPosition(o, r, n)
            }, e.GetBattleFieldPosition = function(t, n, o) {
                t = Math.min(Math.max(0, t), e.FORMATION_ROW_COUNT - 1), n = Math.min(Math.max(0, n), e.FORMATION_COL_COUNT - 1);
                var r = e.HERO_POSITION_MAP[n][t];
                return {
                    x: -o * r[0],
                    y: r[1]
                }
            }, e.IsNeighbor = function(t, n) {
                var o = e.GetRowIndex(t),
                    r = e.GetRowIndex(n);
                if (Math.abs(o - r) > 1) return !1;
                var i = e.GetColIndex(t),
                    a = e.GetColIndex(n);
                return !(Math.abs(i - a) > 1)
            }, e.GetTeamCenterPosition = function(t) {
                var n = e.HERO_POSITION_MAP[1][1];
                return {
                    x: -t * n[0],
                    y: n[1]
                }
            }, e.GetOppositeCamp = function(e) {
                return -e
            }, e.GetBulletAngle = function(e, t) {
                return Math.atan2(e.y - t.y, e.x - t.x) / (Math.PI / 180)
            }, e.FORMATION_COL_COUNT = 3, e.FORMATION_ROW_COUNT = 3, e.HERO_POSITION_ROW_SEQUENCE = [375, 240, 105], e.HERO_POSITION_COL_SEQUENCE = [165, 0, -195], e.HERO_POSITION_MAP = [
                [
                    [124, 165],
                    [272, 165],
                    [420, 165]
                ],
                [
                    [124, 0],
                    [284, 0],
                    [444, 0]
                ],
                [
                    [124, -195],
                    [298, -195],
                    [472, -195]
                ]
            ], e.HERO_POSITION_ROW_X_OFFSET = 10, e
        }();
        n.BattleHelper = o, cc._RF.pop()
    }, {}],
    BattleInitialize: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "87649ikXYFCqoh9y80Z+AWy", "BattleInitialize"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BattleInitialize = void 0;
        var o = e("../../../EZFramework/EZFramework"),
            r = e("../Panel/ActivityBossBattlePanel"),
            i = e("../Panel/ActivityBossPanel"),
            a = e("../Panel/ActivityChampionPanel"),
            s = e("../Panel/ActivityHeroPKPanel"),
            l = e("../Panel/ActivityHeroTestTowerPanel"),
            c = e("../Panel/ActivitySinglePageGiftPanel"),
            u = e("../Panel/ActivityStoryTaskPanel"),
            p = e("../Panel/AllianceMazeBattlePanel"),
            d = e("../Panel/AllianceTestPanel"),
            h = e("../Panel/AngelPvePanel"),
            f = e("../Panel/AngelPvpPanel"),
            y = e("../Panel/ArenaPanel"),
            g = e("../Panel/BossWarPanel"),
            m = e("../Panel/BreakOutMatchPanel"),
            I = e("../Panel/ChalengePlayerInfoPanel"),
            _ = e("../Panel/ChanceTestPanel"),
            C = e("../Panel/ClimbTowerPanel"),
            v = e("../Panel/ContinuousFightPanel"),
            b = e("../Panel/CrossServerAllianceWarPanel"),
            S = e("../Panel/CrossServerChampionShipPanel"),
            w = e("../Panel/CrossServerRankPanel"),
            P = e("../Panel/DailyInstancePanel"),
            A = e("../Panel/ElementArenaEnemyPanel"),
            T = e("../Panel/ElementTrialPanel"),
            R = e("../Panel/EndlessAbyssUIPanel"),
            L = e("../Panel/GlobalChampionShipPanel"),
            k = e("../Panel/HeroDungeonPanel"),
            O = e("../Panel/HeroTestPanel"),
            M = e("../Panel/HolyAreaMainPanel"),
            D = e("../Panel/HolyRelicsPanel"),
            B = e("../Panel/IdleBattleMainPanel"),
            N = e("../Panel/MonthTakenTemplePanel"),
            E = e("../Panel/NoviceTrainingPanel"),
            U = e("../Panel/PlayerInfoPanel"),
            G = e("../Panel/RankMatchChallengeConfirmPanel"),
            x = e("../Panel/SAEChestPanel"),
            H = e("../Panel/SaintsWarChallengePanel"),
            F = e("../Panel/SecretAreaExplorePanel"),
            j = e("../Panel/SecretJourneyPanel"),
            W = e("../Panel/SeniorArenaChallengeConfirmPanel"),
            z = e("../Panel/TrialHeroPanel"),
            q = e("../Panel/WorldBossPanel"),
            V = e("./BattleManager"),
            Z = function() {
                function e() {}
                return e.Init = function() {
                    C.default.InitBattle(), B.default.InitBattle(), P.default.InitBattle(), y.default.InitBattle(), R.default.InitBattle(), F.default.InitBattle(), M.default.InitBattle(), d.default.InitBattle(), O.default.InitBattle(), T.default.InitBattle(), k.default.InitBattle(), W.default.InitBattle(), x.default.InitBattle(), I.default.InitBattle(), N.default.InitBattle(), w.default.InitBattle(), j.default.InitBattle(), H.default.InitBattle(), g.default.InitBattle(), q.default.InitBattle(), _.default.InitBattle(), b.default.InitBattle(), v.default.InitBattle(), z.default.InitBattle(), i.default.InitBattle(), S.default.InitBattle(), u.default.InitBattle(), l.default.InitBattle(), D.default.InitBattle(), A.default.InitBattle(), U.default.InitBattle(), s.default.InitBattle(), a.default.InitBattle(), h.default.InitBattle(), f.default.InitBattle(), L.default.InitBattle(), m.default.InitBattle(), E.default.InitBattle(), c.default.InitBattle(), r.default.InitBattle(), G.default.InitBattle(), p.default.InitBattle(), o.Game.Scene.AddComponent(V.BattleManager)
                }, e
            }();
        n.BattleInitialize = Z, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Panel/ActivityBossBattlePanel": "ActivityBossBattlePanel",
        "../Panel/ActivityBossPanel": "ActivityBossPanel",
        "../Panel/ActivityChampionPanel": "ActivityChampionPanel",
        "../Panel/ActivityHeroPKPanel": "ActivityHeroPKPanel",
        "../Panel/ActivityHeroTestTowerPanel": "ActivityHeroTestTowerPanel",
        "../Panel/ActivitySinglePageGiftPanel": "ActivitySinglePageGiftPanel",
        "../Panel/ActivityStoryTaskPanel": "ActivityStoryTaskPanel",
        "../Panel/AllianceMazeBattlePanel": "AllianceMazeBattlePanel",
        "../Panel/AllianceTestPanel": "AllianceTestPanel",
        "../Panel/AngelPvePanel": "AngelPvePanel",
        "../Panel/AngelPvpPanel": "AngelPvpPanel",
        "../Panel/ArenaPanel": "ArenaPanel",
        "../Panel/BossWarPanel": "BossWarPanel",
        "../Panel/BreakOutMatchPanel": "BreakOutMatchPanel",
        "../Panel/ChalengePlayerInfoPanel": "ChalengePlayerInfoPanel",
        "../Panel/ChanceTestPanel": "ChanceTestPanel",
        "../Panel/ClimbTowerPanel": "ClimbTowerPanel",
        "../Panel/ContinuousFightPanel": "ContinuousFightPanel",
        "../Panel/CrossServerAllianceWarPanel": "CrossServerAllianceWarPanel",
        "../Panel/CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "../Panel/CrossServerRankPanel": "CrossServerRankPanel",
        "../Panel/DailyInstancePanel": "DailyInstancePanel",
        "../Panel/ElementArenaEnemyPanel": "ElementArenaEnemyPanel",
        "../Panel/ElementTrialPanel": "ElementTrialPanel",
        "../Panel/EndlessAbyssUIPanel": "EndlessAbyssUIPanel",
        "../Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "../Panel/HeroDungeonPanel": "HeroDungeonPanel",
        "../Panel/HeroTestPanel": "HeroTestPanel",
        "../Panel/HolyAreaMainPanel": "HolyAreaMainPanel",
        "../Panel/HolyRelicsPanel": "HolyRelicsPanel",
        "../Panel/IdleBattleMainPanel": "IdleBattleMainPanel",
        "../Panel/MonthTakenTemplePanel": "MonthTakenTemplePanel",
        "../Panel/NoviceTrainingPanel": "NoviceTrainingPanel",
        "../Panel/PlayerInfoPanel": "PlayerInfoPanel",
        "../Panel/RankMatchChallengeConfirmPanel": "RankMatchChallengeConfirmPanel",
        "../Panel/SAEChestPanel": "SAEChestPanel",
        "../Panel/SaintsWarChallengePanel": "SaintsWarChallengePanel",
        "../Panel/SecretAreaExplorePanel": "SecretAreaExplorePanel",
        "../Panel/SecretJourneyPanel": "SecretJourneyPanel",
        "../Panel/SeniorArenaChallengeConfirmPanel": "SeniorArenaChallengeConfirmPanel",
        "../Panel/TrialHeroPanel": "TrialHeroPanel",
        "../Panel/WorldBossPanel": "WorldBossPanel",
        "./BattleManager": "BattleManager"
    }],
    BattleInstanceFake: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a910bNOZ15KDoYccIqSauHR", "BattleInstanceFake");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            a = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("./BattlePlayerScreen"),
            u = e("../Components/BattlePlayerCommonDefines"),
            p = e("../../../Consts/Consts"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../../../GamePlay/Components/Components"),
            y = e("./BattleInstance"),
            g = e("../../../Util/AppUtil"),
            m = e("../../Components/DataCenter"),
            I = e("../../../Consts/Consts"),
            _ = cc._decorator,
            C = (_.ccclass, _.property, function(e) {
                function t(n, o, r) {
                    var i = e.call(this, null, 1) || this;
                    i.playerLevel = 1, i.teams = [], i.positionToIdMapper = [], i.allPossibleHeroInfoIndices = [];
                    var a = i;
                    a.battleFieldBackground = n, a.battleCatergory = u.BattleCatergory.IdleFake, a.playerLevel = m.DataCenter.Instance.GetIntData(I.UserDataKey.PlayerLevel), i.rawBattleReport = new s.BattleReport, i.rawBattleReport.Id = 0, i.rawBattleReport.MapId = -1, i.rawBattleReport.Result = 0, i.rawBattleReport.Round = 0, i.rawBattleReport.Players = [], i.rawBattleReport.Heros = [], i.rawBattleReport.Data = [], i.reportPages = i.rawBattleReport.Data, i.mapId = i.rawBattleReport.MapId, a.teams.push({
                        UID: 0,
                        name: null,
                        level: 0,
                        power: 0,
                        members: []
                    }), a.teams.push({
                        UID: 0,
                        name: null,
                        level: 0,
                        power: 0,
                        members: []
                    }), a.positionToIdMapper.push([]), a.positionToIdMapper.push([]);
                    for (var l = 0; l < t.maxTeamMembers; ++l) a.positionToIdMapper[u.BattleTeamSide.Attacker].push(-1), a.positionToIdMapper[u.BattleTeamSide.Defender].push(-1), a.teams[u.BattleTeamSide.Attacker].members.push(null), a.teams[u.BattleTeamSide.Defender].members.push(null);
                    a.allPossibleDefenderHeroInfo = [], l = 0;
                    for (var c = r.length; l < c; ++l) {
                        var p = {
                            id: 1e3 + l,
                            heroId: r[l],
                            hp: 9999,
                            maxHp: 9999,
                            staticConfig_HeroBase: null,
                            staticConfig_Skill: null,
                            avatarSkeletonPrefabPathName: null,
                            skillSkeletonPrefabPathName: null
                        };
                        a.allPossibleDefenderHeroInfo.push(p), a.allPossibleHeroInfoIndices.push(l)
                    }
                    for (l = 0, c = o.length; l < c; ++l) {
                        var d = o[l];
                        if (d > 0) {
                            var h = {
                                id: l,
                                heroId: d,
                                positionId: l,
                                HPMax: 99999,
                                HP: 99999,
                                starLevel: 1,
                                level: 1,
                                buffIconMap: new Map,
                                buffEffectMap: new Map,
                                buffList: [],
                                staticConfig_HeroBase: null,
                                staticConfig_Skill: null,
                                avatarSkeletonPrefabPathName: null,
                                skillSkeletonPrefabPathName: null,
                                useBossHUD: !1
                            };
                            a.positionToIdMapper[u.BattleTeamSide.Attacker][l] = l, a.teams[u.BattleTeamSide.Attacker].members[l] = h
                        }
                    }
                    return a.attacker = i.teams[u.BattleTeamSide.Attacker], a.defender = i.teams[u.BattleTeamSide.Defender], i
                }
                return r(t, e), t.prototype.Update = function(e) {
                    if (this.state != this.stateBuffer && (this.state = this.stateBuffer), this.needCleanEverythingOfCurrentReportPage && (this.needCleanEverythingOfCurrentReportPage = !1, l.EZLog.Debug("ok in BattleInstanceFake update ... !!!!CleanEverythingOfCurrentReportPage"), this.CleanEverythingOfCurrentReportPage()), this.state != u.BattleReplayState.Stopped && this.state != u.BattleReplayState.Ended && this.state == u.BattleReplayState.PlayingOnScreen)
                        if (0 != this.rawBattleReport.Data.length) {
                            if (null == this.currentPageData) switch (this.currentPageData = this.rawBattleReport.Data[this.reportPageIndex], this.currentPageData.DataType) {
                                case p.BattleReportDataType.NewRound:
                                    if (this.currentPageTimeLeft = 2e3, this.state == u.BattleReplayState.PlayingOnScreen)
                                        for (var t = 0, n = this.emenyActorFramesInOneWave.length; t < n; ++t) this.emenyActorFramesInOneWave[t].FadeIn();
                                    break;
                                case p.BattleReportDataType.HeroAction:
                                    if (this.state == u.BattleReplayState.PlayingOnScreen) {
                                        this.currentPageActorSideAndPos = this.GetSideAndPosition(this.currentPageData.HeroId), this.currentPageActorFrameInstance = c.default.GetActorFrame(this.currentPageActorSideAndPos), this.currentPageSkillConfig = h.ConfigDataComponent.Instance.GetConfigById(d.SkillBase_Config, this.currentPageData.SkillId), this.currentPageSkill = this.teams[this.currentPageActorSideAndPos.side].members[this.currentPageActorSideAndPos.position].staticConfig_Skill.Skills[this.currentPageSkillConfig.ActionIndex - 1], this.currentPageTimeLeft = this.currentPageSkill.Duration;
                                        var o = [];
                                        for (t = 0, n = this.currentPageData.SkillTargets.length; t < n; ++t) {
                                            var r = this.GetSideAndPosition(this.currentPageData.SkillTargets[t]);
                                            o.push(r)
                                        }
                                        this.currentPageActorFrameInstance.PerformSkill(o, this.currentPageSkill, this.currentPageData.HitPoints)
                                    }
                                    break;
                                case p.BattleReportDataType.RoundEnd:
                                    this.currentPageTimeLeft = y.default.roundEndNotificationDuration;
                                    break;
                                case p.BattleReportDataType.BattleResult:
                                    this.currentPageTimeLeft = y.default.battleEndingDelayDuration
                            } else if (this.currentPageTimeLeft -= 1e3 * e, this.currentPageTimeLeft <= 0) return this.currentPageTimeLeft = 0, this.reportPageIndex += 1, this.reportPageIndex >= this.reportPages.length ? void this.RestartNewWave() : void(this.currentPageData = null)
                        } else this.GenerateNewWave()
                }, t.prototype.RestartNewWave = function() {
                    this.rawBattleReport.Data = [], this.currentPageData = null, this.reportPageIndex = 0
                }, t.prototype.PlayOnScreen = function() {
                    l.EZLog.Debug("ok in battleInstanceFake PlayOnScreen...this.state:" + this.state), this.state != u.BattleReplayState.PlayingOnScreen && this.state != u.BattleReplayState.PlayingOffScreen && (l.EZLog.Debug("ok in battleInstanceFake PlayOnScreen..."), this.RestartNewWave(), this.needSyncInfoWithPanel = !1, this.stateBuffer = u.BattleReplayState.PlayingOnScreen)
                }, t.prototype.IsPlaying = function() {
                    return this.state == u.BattleReplayState.PlayingOnScreen
                }, t.prototype.GetRandomNum = function(e, t) {
                    var n = t - e,
                        o = Math.random();
                    return Math.floor(e + Math.round(o * n))
                }, t.prototype.ModulatedTime = function(e) {
                    return e
                }, t.prototype.ModulatedTimeScale = function() {
                    return 1
                }, t.prototype.LoadStaticConfig = function() {
                    return i(this, void 0, void 0, function() {
                        var e, n, o, r, i, s;
                        return a(this, function() {
                            for (n = 0, o = t.maxTeamMembers; n < o; ++n)
                                if (null != this.attacker.members[n]) {
                                    if ((e = this.attacker.members[n].heroId) <= 0) return [2];
                                    i = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e), s = i.Model, this.attacker.members[n].staticConfig_HeroBase = i, this.attacker.members[n].avatarSkeletonPrefabPathName = y.default.avatarSkeletonPrefabPathName1 + s + t.avatarSkeletonPrefabPathName2, this.attacker.members[n].skillSkeletonPrefabPathName = y.default.skillSkeletonPrefabPathName1 + s + t.skillSkeletonPrefabPathName2, this.attacker.members[n].staticConfig_Skill = f.ConfigDataComponent.Instance.GetHeroSkillConfig(s), this.attacker.members[n].staticConfig_Skill || l.EZLog.Error("ok in BattleInstance.LoadStaticConfig attacker i:" + n + " heroId:" + e + "!!!!! staticConfig_Skill loading failed")
                                } for (n = 0, o = this.allPossibleDefenderHeroInfo.length; n < o; ++n) r = this.allPossibleDefenderHeroInfo[n], i = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, r.heroId), s = i.Model, r.staticConfig_HeroBase = i, r.avatarSkeletonPrefabPathName = t.avatarSkeletonPrefabPathName1 + s + t.avatarSkeletonPrefabPathName2, r.skillSkeletonPrefabPathName = t.skillSkeletonPrefabPathName1 + s + t.skillSkeletonPrefabPathName2, r.staticConfig_Skill = f.ConfigDataComponent.Instance.GetHeroSkillConfig(s);
                            return [2]
                        })
                    })
                }, t.prototype.GenerateNewWave = function() {
                    return i(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, s, d, h, f, m, I, _, C, v, b, S, w, P, A, T, R;
                        return a(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    for (l.EZLog.Debug("ok in GenerateNewWave..."), e = this.state, this.stateBuffer = u.BattleReplayState.Stopped, t = this.allPossibleDefenderHeroInfo.length, n = this.teams[u.BattleTeamSide.Attacker].members.length, o = this.GetRandomNum(1, Math.min(n, t)), g.AppUtil.Shuffle(this.allPossibleHeroInfoIndices), r = [-1, -1, -1, -1, -1, -1, -1, -1, -1], i = [], f = 0; f < o; ++f) s = this.allPossibleHeroInfoIndices[f], r[f] = s, i.push(s);
                                    return g.AppUtil.Shuffle(r), this.ReconstructDefenderTeam(r), [4, c.default.LoadDefendersForFakeBattle(this)];
                                case 1:
                                    if (a.sent(), this.state == u.BattleReplayState.Stopped) return this.rawBattleReport.Data = [], this.stateBuffer = e, [2];
                                    for (this.emenyActorFramesInOneWave = [], d = 0, this.rawBattleReport.Data = [], h = {
                                            DataType: p.BattleReportDataType.NewRound
                                        }, this.rawBattleReport.Data.push(h), f = 0, m = y.default.maxTeamMembers; f < m; ++f)
                                        if (I = this.teams[u.BattleTeamSide.Attacker].members[f]) {
                                            if (d >= i.length) break;
                                            _ = i[d], C = this.allPossibleDefenderHeroInfo[_].id, ++d, v = [], b = 100 * (this.playerLevel + 1) + this.GetRandomNum(1, 99), S = 100 * Math.max(0, this.playerLevel - 2) + this.GetRandomNum(1, 99), w = {
                                                TargetId: C,
                                                EventType: p.BattleReportHitPointEventType.Damage,
                                                Value: this.GetRandomNum(S, b)
                                            }, v.push(w), P = {
                                                Events: v
                                            }, A = {
                                                DataType: p.BattleReportDataType.HeroAction,
                                                HeroId: I.id,
                                                SkillId: I.staticConfig_HeroBase.IdleSkillId,
                                                SkillTargets: [C],
                                                HitPoints: [P]
                                            }, this.rawBattleReport.Data.push(A), this.emenyActorFramesInOneWave.push(c.default.GetActorFrame(this.GetSideAndPosition(C)))
                                        } return T = {
                                        DataType: p.BattleReportDataType.RoundEnd
                                    }, this.rawBattleReport.Data.push(T), R = {
                                        DataType: p.BattleReportDataType.BattleResult
                                    }, this.rawBattleReport.Data.push(R), this.reportPages = this.rawBattleReport.Data, this.reportPageIndex = 0, this.stateBuffer = e, [2]
                            }
                        })
                    })
                }, t.prototype.ReconstructDefenderTeam = function(e) {
                    if (e.length == t.maxTeamMembers) {
                        this.positionToIdMapper[u.BattleTeamSide.Defender] = [], this.teams[u.BattleTeamSide.Defender].members = [];
                        for (var n = 0; n < t.maxTeamMembers; ++n) this.positionToIdMapper[u.BattleTeamSide.Defender].push(-1), this.teams[u.BattleTeamSide.Defender].members.push(null);
                        n = 0;
                        for (var o = e.length; n < o; ++n) {
                            var r = e[n];
                            if (r >= 0) {
                                var i = this.allPossibleDefenderHeroInfo[r],
                                    a = {
                                        id: this.allPossibleDefenderHeroInfo[r].id,
                                        heroId: i.heroId,
                                        positionId: n,
                                        HPMax: i.maxHp,
                                        HP: i.hp,
                                        starLevel: 1,
                                        level: 1,
                                        buffIconMap: new Map,
                                        buffEffectMap: new Map,
                                        buffList: [],
                                        staticConfig_HeroBase: i.staticConfig_HeroBase,
                                        staticConfig_Skill: i.staticConfig_Skill,
                                        avatarSkeletonPrefabPathName: i.avatarSkeletonPrefabPathName,
                                        skillSkeletonPrefabPathName: i.skillSkeletonPrefabPathName,
                                        useBossHUD: !1
                                    };
                                this.positionToIdMapper[u.BattleTeamSide.Defender][n] = n, this.teams[u.BattleTeamSide.Defender].members[n] = a
                            }
                        }
                    } else l.EZLog.Error("ok in BattleInstanceFake.ReconstructDefenderTeam.... defenderHeroIndices' length is not valid:" + e.length.toString())
                }, t.maxTeamMembers = 9, t
            }(y.default));
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../Util/AppUtil": "AppUtil",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/BattlePlayerCommonDefines": "BattlePlayerCommonDefines",
        "./BattleInstance": "BattleInstance",
        "./BattlePlayerScreen": "BattlePlayerScreen"
    }],
    BattleInstance: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eacd2S/CtRCbaUXGul9QV/D", "BattleInstance");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var i = e("../../../EZFramework/EZFramework"),
            a = e("./BattlePlayerScreen"),
            s = e("../Components/BattlePlayerCommonDefines"),
            l = e("../../../Consts/Consts"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("./ActorFrame"),
            h = e("./FlyingNumber"),
            f = e("./BattleBuffCommonEffectSkeleton"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = cc._decorator,
            m = (g.ccclass, g.property, function() {
                function e(t, n) {
                    if (this.teams = [], this.positionToIdMapper = [], this.attackerUniqIdToHeroBaseIdMapper = {}, this.speedLimit = s.BattleReplaySpeed.X3, this.speedLimitFactor = .33333, this.stateBuffer = s.BattleReplayState.Stopped, this.state = s.BattleReplayState.Stopped, this.currentRound = 0, this.reportPageIndex = 0, this.currentPageData = null, this.currentBattleResult = 0, this.currentPageTimeLeft = 0, this.currentPageActorFrameInstance = null, this.needCleanEverythingOfCurrentReportPage = !1, this.needSyncInfoWithPanel = !1, this.battleCatergory = s.BattleCatergory.Normal, null != t) {
                        this.rawBattleReport = t, this.battleId = t.Id, this.mapId = t.MapId, this.speedLimit = n, this.speedLimitFactor = 1 / n, this.teams.push(null), this.teams.push(null);
                        for (var o = 0, r = t.Players.length; o < r; ++o) {
                            var a = t.Players[o],
                                l = {
                                    UID: a.Uid,
                                    name: a.RoleName,
                                    level: a.Level,
                                    power: a.Power,
                                    members: []
                                };
                            i.EZLog.Debug("ok in BattleInstance... constructor battleID:" + this.rawBattleReport.Id + " player.Camp:" + a.Camp);
                            var c = e.CampToTeamSide(a.Camp);
                            i.EZLog.Debug("ok in BattleInstance... constructor battleID:" + this.rawBattleReport.Id + " side:" + c), this.teams[c] = l
                        }
                        for (this.positionToIdMapper.push([]), this.positionToIdMapper.push([]), o = 0; o < e.maxTeamMembers; ++o) this.positionToIdMapper[s.BattleTeamSide.Attacker].push(-1), this.positionToIdMapper[s.BattleTeamSide.Defender].push(-1), this.teams[s.BattleTeamSide.Attacker].members.push(null), this.teams[s.BattleTeamSide.Defender].members.push(null);
                        for (this.attackerUniqIdToHeroBaseIdMapper = {}, o = 0, r = t.Heros.length; o < r; ++o) {
                            var u = t.Heros[o];
                            if (u.Id > 0 && u.HeroId > 0) {
                                i.EZLog.Debug("ok in BattleInstance... constructor battleID:" + this.rawBattleReport.Id + " heroUniqid:" + u.Id + " heroId:" + u.HeroId + " hero.StationId:" + u.StationId + " hpmax:" + u.HpMax + " hp:" + u.Hp + " Camp:" + u.Camp);
                                var p = {
                                    id: u.Id,
                                    heroId: u.HeroId,
                                    positionId: u.StationId,
                                    HPMax: u.HpMax,
                                    HP: u.Hp,
                                    starLevel: u.StarLevel,
                                    level: u.Level,
                                    buffIconMap: new Map,
                                    buffEffectMap: new Map,
                                    buffList: u.BuffList,
                                    staticConfig_HeroBase: null,
                                    staticConfig_Skill: null,
                                    avatarSkeletonPrefabPathName: null,
                                    skillSkeletonPrefabPathName: null,
                                    useBossHUD: u.IsBoss > 0
                                };
                                c = e.CampToTeamSide(u.Camp), i.EZLog.Debug("ok in BattleInstance... constructor side:" + c), this.positionToIdMapper[c][u.StationId] = u.Id, this.teams[c].members[u.StationId] = p, c == s.BattleTeamSide.Attacker && (this.attackerUniqIdToHeroBaseIdMapper[u.Id] = u.HeroId)
                            }
                        }
                        if (this.attacker = this.teams[s.BattleTeamSide.Attacker], this.defender = this.teams[s.BattleTeamSide.Defender], this.reportPages = t.Data, this.currentRound = 0, t.CommonEffectAssets)
                            for (o = 0, r = t.CommonEffectAssets.length; o < r; ++o) f.default.Reserve(t.CommonEffectAssets[o], 3)
                    }
                }
                return e.prototype.CleanEverythingOfCurrentReportPage = function() {
                    i.EZLog.Debug("ok in battleInstance CleanEverythingOfCurrentReportPage ..."), this.currentPageData && this.currentPageData.HeroStatus && this.UpdateCharactorInstanceStatus(this.currentPageData.HeroStatus), this.currentPageActorFrameInstance && (this.currentPageActorFrameInstance.CleanNodeOfCurrentSkillPerforming(), this.currentPageActorFrameInstance.node.cleanup()), d.default.GiveBackAllSkillSkeletonToPool(), d.default.GiveBackAllCommonEffectSkeletonToPool(), h.default.ClearAll()
                }, e.prototype.Update = function(t) {
                    if (this.state != this.stateBuffer && (this.state = this.stateBuffer), this.needCleanEverythingOfCurrentReportPage && (this.needCleanEverythingOfCurrentReportPage = !1, i.EZLog.Debug("ok in BattleInstance update ... !!!!CleanEverythingOfCurrentReportPage"), this.CleanEverythingOfCurrentReportPage()), this.state != s.BattleReplayState.Stopped && this.state != s.BattleReplayState.Ended)
                        if (this.needSyncInfoWithPanel && (this.needSyncInfoWithPanel = !1, this.SyncInfoWithPanel()), null == this.currentPageData) {
                            if (this.state == s.BattleReplayState.GettingStopped) return i.EZLog.Debug("ok in battleInstance Update this.state == BattleReplayState.GettingStopped, stop now, and returned."), this.needCleanEverythingOfCurrentReportPage = !0, void(this.stateBuffer = s.BattleReplayState.Stopped);
                            switch (this.ReportBattleStatistics(), this.currentPageData = this.reportPages[this.reportPageIndex], i.EZLog.Debug("###########BattleInstance:" + this.battleId.toString() + " update... this.reportPageIndex:" + this.reportPageIndex + "/" + (this.reportPages.length - 1)), i.EZLog.Debug(this.currentPageData), this.currentPageData.DataType) {
                                case l.BattleReportDataType.NewRound:
                                    this.currentPageTimeLeft = e.newRoundNotificationDuration, this.OnRoundStartEvent();
                                    break;
                                case l.BattleReportDataType.HeroAction:
                                    i.EZLog.Debug("###########BattleInstance:" + this.battleId.toString() + " Consts.BattleReportDataType.HeroAction this.currentPageData.HeroUniqId:" + this.currentPageData.HeroId), this.currentPageActorSideAndPos = this.GetSideAndPosition(this.currentPageData.HeroId), i.EZLog.Debug("###########BattleInstance:" + this.battleId.toString() + " Consts.BattleReportDataType.HeroAction AAA this.currentPageActorSide:" + this.currentPageActorSideAndPos.side + " pos:" + this.currentPageActorSideAndPos.position), this.currentPageActorFrameInstance = a.default.GetActorFrame(this.currentPageActorSideAndPos), this.currentPageSkillConfig = u.ConfigDataComponent.Instance.GetConfigById(c.SkillBase_Config, this.currentPageData.SkillId), i.EZLog.Debug("###########BattleInstance:" + this.battleId.toString() + " this.currentPageData.SkillId:" + this.currentPageData.SkillId), i.EZLog.Debug("###########BattleInstance:" + this.battleId.toString() + " this.currentPageSkillConfig.ActionIndex:" + this.currentPageSkillConfig.ActionIndex), this.currentPageSkill = this.currentPageSkillConfig.ActionIndex > 0 ? this.teams[this.currentPageActorSideAndPos.side].members[this.currentPageActorSideAndPos.position].staticConfig_Skill.Skills[this.currentPageSkillConfig.ActionIndex - 1] : null, this.currentPageTimeLeft = null == this.currentPageSkill ? .1 : this.currentPageSkill.Duration, this.OnActorActionEvent(null != this.currentPageSkill);
                                    break;
                                case l.BattleReportDataType.RoundEnd:
                                    this.currentPageTimeLeft = e.roundEndNotificationDuration, this.OnRoundEndEvent();
                                    break;
                                case l.BattleReportDataType.BattleResult:
                                    this.currentPageTimeLeft = e.battleEndingDelayDuration, this.OnBattleConcludedEvent()
                            }
                        } else if (this.currentPageTimeLeft -= 1e3 * t * this.ModulatedTimeScale(), this.currentPageTimeLeft <= 0) {
                        if (a.default.ClearTotalDMG(), this.currentPageTimeLeft = 0, this.reportPageIndex += 1, this.reportPageIndex >= this.reportPages.length) {
                            var n = this.state;
                            this.needCleanEverythingOfCurrentReportPage = !0, this.stateBuffer = s.BattleReplayState.Ended, this.OnBattleEnded(n);
                            var o = {
                                battleId: this.battleId,
                                battleResult: this.currentBattleResult
                            };
                            return void a.default.OnBattleInstanceStatisticsComing(o)
                        }
                        return this.currentPageData.HeroStatus && (this.UpdateCharactorInstanceStatus(this.currentPageData.HeroStatus), this.state == s.BattleReplayState.PlayingOnScreen && this.UpdateActorStatus(this.currentPageData.HeroStatus)), void(this.currentPageData = null)
                    }
                }, e.prototype.ReportBattleStatistics = function() {
                    for (var t = {
                            battleId: this.battleId,
                            heroHpArray: [],
                            attackersTotalHP: 0,
                            attackersTotalHPMax: 0,
                            defendersTotalHP: 0,
                            defendersTotalHPMax: 0
                        }, n = 0; n < e.maxTeamMembers; ++n) {
                        var o = this.teams[s.BattleTeamSide.Attacker].members[n];
                        o ? (t.attackersTotalHP += o.HP, t.attackersTotalHPMax += o.HPMax, t.heroHpArray[n] = o.HP) : t.heroHpArray[n] = -1;
                        var r = this.teams[s.BattleTeamSide.Defender].members[n];
                        r && (t.defendersTotalHP += r.HP, t.defendersTotalHPMax += r.HPMax)
                    }
                    a.default.OnBattleInstanceStatisticsComing(t)
                }, e.prototype.SyncInfoWithPanel = function() {
                    a.default.TellWhatHappenedToFrame(this.battleId, {
                        type: s.BattleStatusMessageType.RoundStart,
                        value: this.currentRound
                    });
                    for (var t = 0; t < e.maxTeamMembers; ++t) {
                        var n = this.teams[s.BattleTeamSide.Attacker].members[t];
                        if (n) {
                            var o = n.HP / n.HPMax;
                            a.default.TellWhatHappenedToFrame(this.battleId, {
                                type: s.BattleStatusMessageType.ActorHPRatioNoAnimation,
                                value: n.heroId,
                                value2: o
                            })
                        }
                    }
                }, e.prototype.OnBattleEnded = function(t) {
                    t == s.BattleReplayState.PlayingOnScreen ? (a.default.TellWhatHappenedToFrame(this.battleId, {
                        type: s.BattleStatusMessageType.BattleReplayState,
                        value: s.BattleReplayState.Ended
                    }), cc.Tween.stopAllByTag(e.BattleTweenTag)) : t == s.BattleReplayState.PlayingOffScreen && a.default.OffScreenBattleReplayStateEvent(this.battleId, s.BattleReplayState.Ended)
                }, e.prototype.OnRoundStartEvent = function() {
                    if (i.EZLog.Debug("ok in BattleInstance.NewRound..."), this.currentRound = this.currentPageData.Round, this.state == s.BattleReplayState.PlayingOnScreen) {
                        var e = null;
                        if (this.currentPageData.RoundSkills)
                            for (var t in e = {}, this.currentPageData.RoundSkills) {
                                var n = Number.parseInt(t),
                                    o = this.attackerUniqIdToHeroBaseIdMapper[n];
                                o && (e[o] = this.currentPageData.RoundSkills[t])
                            }
                        a.default.TellWhatHappenedToFrame(this.battleId, {
                            type: s.BattleStatusMessageType.RoundStart,
                            value: this.currentPageData.Round,
                            skillDict: e
                        })
                    }
                    this.currentPageData.HitPoints && this.state == s.BattleReplayState.PlayingOnScreen && this.PlayRoundHitPoints(this.currentPageData.HitPoints)
                }, e.prototype.OnActorActionEvent = function(e) {
                    return o(this, void 0, void 0, function() {
                        var t, n, o, i, c;
                        return r(this, function() {
                            if ((t = this).state == s.BattleReplayState.PlayingOnScreen) {
                                for (t.currentPageSkillConfig.Type == l.SkillType.BurstAttack && (t.currentPageActorFrameInstance.sideAndPosition.side == s.BattleTeamSide.Attacker && a.default.TellWhatHappenedToFrame(t.battleId, {
                                        type: s.BattleStatusMessageType.ActorSkillCasting,
                                        value: t.currentPageActorFrameInstance.CharacterInstance().heroId
                                    }), a.default.ShowSkillIndicator(t.currentPageActorFrameInstance.sideAndPosition.side, t.currentPageActorFrameInstance.CharacterInstance().heroId, t.currentPageSkillConfig.Id.ToHeroSkillName())), n = [], o = 0, i = t.currentPageData.SkillTargets.length; o < i; ++o) c = t.GetSideAndPosition(t.currentPageData.SkillTargets[o]), n.push(c);
                                e && t.currentPageActorFrameInstance.PerformSkill(n, t.currentPageSkill, t.currentPageData.HitPoints)
                            } else t.state == s.BattleReplayState.PlayingOffScreen && t.currentPageData.HeroStatus && t.UpdateCharactorInstanceStatus(t.currentPageData.HeroStatus);
                            return [2]
                        })
                    })
                }, e.prototype.OnRoundEndEvent = function() {
                    this.currentPageData.HitPoints && this.state == s.BattleReplayState.PlayingOnScreen && this.PlayRoundHitPoints(this.currentPageData.HitPoints)
                }, e.prototype.OnBattleConcludedEvent = function() {
                    this.currentBattleResult = this.currentPageData.BattleResult
                }, e.prototype.UpdateCharactorInstanceStatus = function(e) {
                    for (var t = 0, n = e.length; t < n; ++t) {
                        var o = this.GetSideAndPosition(e[t].Id);
                        this.teams[o.side].members[o.position].HPMax = e[t].HpMax, this.teams[o.side].members[o.position].HP = e[t].Hp, this.teams[o.side].members[o.position].buffList = e[t].BuffList
                    }
                }, e.prototype.UpdateActorStatus = function(e) {
                    for (var t = 0, n = e.length; t < n; ++t) {
                        var o = e[t],
                            r = this.GetSideAndPosition(o.Id),
                            i = a.default.GetActorFrame(r);
                        o.IsDead ? i.Die() : (i.UpdateHPIndicator(), i.UpdateBuffAppearances())
                    }
                }, e.prototype.PlayRoundHitPoints = function(e) {
                    d.default.DealWithHitPoints(null, null, e, 0, 0, this)
                }, e.prototype.PlayOnScreen = function(e) {
                    i.EZLog.Debug("ok in battleInstance PlayOnScreen... current this.state:" + this.state), this.needSyncInfoWithPanel = !0, this.stateBuffer = null != e && null != e && 1 == e ? s.BattleReplayState.Stopped : s.BattleReplayState.PlayingOnScreen, a.default.TellWhatHappenedToFrame(this.battleId, {
                        type: s.BattleStatusMessageType.BattleStarted
                    })
                }, e.prototype.PlayOffScreen = function() {
                    i.EZLog.Debug("ok in battleInstance PlayOffScreen...this.state:" + this.state + " battleId:" + this.battleId), this.stateBuffer = s.BattleReplayState.PlayingOffScreen
                }, e.prototype.Stop = function() {
                    i.EZLog.Debug("ok in battleInstance Stop... id:" + this.battleId), this.needCleanEverythingOfCurrentReportPage = !0, this.stateBuffer = s.BattleReplayState.Stopped
                }, e.prototype.AwaitStop = function() {
                    return o(this, void 0, void 0, function() {
                        return r(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.needCleanEverythingOfCurrentReportPage = !0, this.stateBuffer = s.BattleReplayState.Stopped, [4, this.WaitForGettingStopped()];
                                case 1:
                                    return e.sent(), [2]
                            }
                        })
                    })
                }, e.prototype.AwaitStopAfterCurrentPage = function() {
                    return o(this, void 0, void 0, function() {
                        return r(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.stateBuffer = s.BattleReplayState.GettingStopped, [4, this.WaitForGettingStopped()];
                                case 1:
                                    return e.sent(), [2]
                            }
                        })
                    })
                }, e.prototype.WaitForGettingStopped = function() {
                    return o(this, void 0, void 0, function() {
                        return r(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.state == s.BattleReplayState.Stopped || this.state == s.BattleReplayState.Ended ? [2] : [4, this.Sleep(30)];
                                case 1:
                                    return e.sent(), [3, 0];
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, e.SetGlobalReplaySpeed = function(t) {
                    e.globalReplaySpeed = t, e.globalReplaySpeedFactor = 1 / t
                }, e.prototype.SetSkeletonAnimatingTimeScale = function(t) {
                    for (var n = 0, o = e.maxTeamMembers; n < o; ++n) null != this.attacker.members[n] && a.default.GetActorFrame({
                        side: s.BattleTeamSide.Attacker,
                        position: n
                    }).SetAvatarSkeletonTimeScale(t), null != this.defender.members[n] && a.default.GetActorFrame({
                        side: s.BattleTeamSide.Defender,
                        position: n
                    }).SetAvatarSkeletonTimeScale(t);
                    d.default.SetSkillSkeletonTimeScale(t), d.default.SetCommonEffectSkeletonTimeScale(t)
                }, e.GetGlobalReplaySpeed = function() {
                    return e.globalReplaySpeed
                }, e.prototype.GetPlayingState = function() {
                    return this.state
                }, e.prototype.CheckPageDataPropertiesExistances = function(e) {
                    i.EZLog.Debug("ok in CheckPageDataPropertiesExistances DataType:" + e.DataType), i.EZLog.Debug("ok in CheckPageDataPropertiesExistances Round:" + e.Round), i.EZLog.Debug("ok in CheckPageDataPropertiesExistances HeroId:" + e.HeroId), i.EZLog.Debug("ok in CheckPageDataPropertiesExistances SkillId:" + e.SkillId), i.EZLog.Debug("ok in CheckPageDataPropertiesExistances SkillTargets:" + e.SkillTargets), i.EZLog.Debug("ok in CheckPageDataPropertiesExistances HitPoints:" + e.HitPoints), i.EZLog.Debug("ok in CheckPageDataPropertiesExistances HeroStatus:" + e.HeroStatus), i.EZLog.Debug("ok in CheckPageDataPropertiesExistances RoundEvents:" + e.RoundEvents), i.EZLog.Debug("ok in CheckPageDataPropertiesExistances BattleResult:" + e.BattleResult)
                }, e.prototype.Sleep = function(e) {
                    return o(this, void 0, Promise, function() {
                        return r(this, function() {
                            return [2, new Promise(function(t) {
                                setTimeout(t, e)
                            })]
                        })
                    })
                }, e.CampToTeamSide = function(e) {
                    return e === l.CampType.Attacker ? 0 : 1
                }, e.TeamSideToCamp = function(e) {
                    return e === s.BattleTeamSide.Attacker ? 1 : -1
                }, e.prototype.GetHeroIdByPositionID = function(e, t) {
                    return this.positionToIdMapper[e][t]
                }, e.prototype.GetSideAndPosition = function(t) {
                    for (var n = 0; n < e.maxTeamMembers; ++n) {
                        if (null != this.attacker.members[n] && this.attacker.members[n].id == t) return {
                            side: s.BattleTeamSide.Attacker,
                            position: n
                        };
                        if (null != this.defender.members[n] && this.defender.members[n].id == t) return {
                            side: s.BattleTeamSide.Defender,
                            position: n
                        }
                    }
                    return null
                }, e.prototype.ModulatedTime = function(t) {
                    return t * (this.speedLimitFactor > e.globalReplaySpeedFactor ? this.speedLimitFactor : e.globalReplaySpeedFactor)
                }, e.prototype.ModulatedTimeScale = function() {
                    return this.speedLimit < e.globalReplaySpeed ? this.speedLimit : e.globalReplaySpeed
                }, e.prototype.LoadStaticConfig = function() {
                    return o(this, void 0, void 0, function() {
                        var t, n, o, a, s;
                        return r(this, function() {
                            for (t = 0, n = e.maxTeamMembers; t < n; ++t) {
                                if (null != this.attacker.members[t]) {
                                    if ((o = this.attacker.members[t].heroId) <= 0) return [2];
                                    a = u.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, o), s = a.Model, i.EZLog.Debug("ok in BattleInstance.LoadStaticConfig attacker i:" + t + " heroId:" + o + " model:" + s), this.attacker.members[t].staticConfig_HeroBase = a, this.attacker.members[t].avatarSkeletonPrefabPathName = e.avatarSkeletonPrefabPathName1 + s + e.avatarSkeletonPrefabPathName2, this.attacker.members[t].skillSkeletonPrefabPathName = e.skillSkeletonPrefabPathName1 + s + e.skillSkeletonPrefabPathName2, this.attacker.members[t].staticConfig_Skill = p.ConfigDataComponent.Instance.GetHeroSkillConfig(s), this.attacker.members[t].staticConfig_Skill || i.EZLog.Error("ok in BattleInstance.LoadStaticConfig attacker i:" + t + " heroId:" + o + "!!!!! staticConfig_Skill loading failed")
                                }
                                if (null != this.defender.members[t]) {
                                    if ((o = this.defender.members[t].heroId) <= 0) return [2];
                                    a = u.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, o), s = a.Model, i.EZLog.Debug("ok in BattleInstance.LoadStaticConfig defender i:" + t + " heroId:" + o + " model:" + s), this.defender.members[t].staticConfig_HeroBase = a, this.defender.members[t].avatarSkeletonPrefabPathName = e.avatarSkeletonPrefabPathName1 + s + e.avatarSkeletonPrefabPathName2, this.defender.members[t].skillSkeletonPrefabPathName = e.skillSkeletonPrefabPathName1 + s + e.skillSkeletonPrefabPathName2, this.defender.members[t].staticConfig_Skill = p.ConfigDataComponent.Instance.GetHeroSkillConfig(s), this.defender.members[t].staticConfig_Skill || i.EZLog.Error("ok in BattleInstance.LoadStaticConfig defender i:" + t + " heroId:" + o + "!!!!! staticConfig_Skill loading failed")
                                }
                            }
                            return [2]
                        })
                    })
                }, e.avatarSkeletonPrefabPathName1 = "Hero_", e.avatarSkeletonPrefabPathName2 = "/HeroAvatar", e.skillSkeletonPrefabPathName1 = "Hero_", e.skillSkeletonPrefabPathName2 = "/SkillEffect", e.maxTeamMembers = 9, e.globalReplaySpeed = s.BattleReplaySpeed.X1, e.globalReplaySpeedFactor = 1, e.actorActionStateSyncTimeOffset = -800, e.newRoundNotificationDuration = 500, e.roundEndNotificationDuration = 500, e.battleEndingDelayDuration = 1200, e.BattleTweenTag = y.PanelConfig.BattlePanel.Id, e
            }());
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/BattlePlayerCommonDefines": "BattlePlayerCommonDefines",
        "./ActorFrame": "ActorFrame",
        "./BattleBuffCommonEffectSkeleton": "BattleBuffCommonEffectSkeleton",
        "./BattlePlayerScreen": "BattlePlayerScreen",
        "./FlyingNumber": "FlyingNumber"
    }],
    BattleManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6ffb0w4/aJMkZkpg8TKJMrY", "BattleManager");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            a = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            s = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BattleManager = void 0;
        var l = e("../../../Consts/Consts"),
            c = e("../../../Util/index"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../UI/Auxiliary/UIUtlity"),
            g = e("./BattleData"),
            m = e("./BattlePlayer"),
            I = e("../ManualBattle/ManualBattlePlayer"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._PendingSettlePanels = null, t.CanShowBattleSettlePanel = !0, t.ActivityCanShowBattleSettlePanel = !0, t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return this._Instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function() {
                    var n = this;
                    t._Instance = this, this._PendingSettlePanels = [], g.BattleData.PlayingBattleDatas = {}, g.BattleData.BattlePlaySpeedIndex = 0, u.Game.EventDispatcher.Once(l.GameEventIds.ServerConnected, this.Preload, this), u.Game.EventDispatcher.On(d.EventKeys.EVENT_PANEL_CLOSE, this._ShowSettlePanel, this), u.UIManager.Instance.AddCanShowPanelCb(function(e) {
                        var t = y.UIUtlity.PanelPathMap[e];
                        if (t && t.MapType) {
                            var o = t.MapType;
                            if (n.ResumePlayBattle(o)) return !1
                        }
                        return !0
                    }), e.prototype.Init.call(this)
                }, t.prototype.Dispose = function() {
                    this.IsDisposed || (g.BattleData.ResetBattleAsset(), u.Game.EventDispatcher.Off(l.GameEventIds.ServerConnected, this.Preload), u.Game.EventDispatcher.Off(d.EventKeys.EVENT_PANEL_CLOSE, this._ShowSettlePanel), t._Instance = null, e.prototype.Dispose.call(this))
                }, t.prototype.OnUpdate = function(e) {
                    for (var t in g.BattleData.PlayingBattleDatas)
                        for (var n = g.BattleData.PlayingBattleDatas[t], o = 0; o < n.Players.length; o++) n.Players[o].Update(e)
                }, t.prototype.LoadBattlePlaySpeed = function() {
                    return g.BattleData.BattlePlaySpeedIndex = _.default.GetServerRecordNumber(l.FunctionSkipKey.BattlePlaySpeed), (!g.BattleData.BattlePlaySpeedIndex || g.BattleData.BattlePlaySpeedIndex < 0) && (g.BattleData.BattlePlaySpeedIndex = 0), g.BattleData.BattlePlaySpeedIndex = Math.min(g.BattleData.BattlePlaySpeedIndex, g.BattleData.BattlePlaySpeedList.length - 1), _.default.SetServerRecordNumber(l.FunctionSkipKey.BattlePlaySpeed, g.BattleData.BattlePlaySpeedIndex), g.BattleData.BattlePlaySpeedIndex
                }, t.prototype.ShowSettlePanel = function(e) {
                    for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                    this._PendingSettlePanels.push({
                        Name: e,
                        Params: t
                    }), this._ShowSettlePanel()
                }, t.prototype._ShowSettlePanel = function() {
                    var e;
                    if (!(this._PendingSettlePanels.length < 1) && this.CanShowBattleSettlePanel && this.ActivityCanShowBattleSettlePanel) {
                        for (var t in g.BattleData.PlayingBattleDatas)
                            if (!g.BattleData.PlayingBattleDatas[t].InBackground) return;
                        var n = this._PendingSettlePanels.shift();
                        (e = u.UIManager.Instance).ShowUIPanelByQueue.apply(e, s([n.Name], n.Params))
                    }
                }, t.prototype.StopBattle = function(e, t) {
                    var n = g.BattleData.GetMapTypeKey(e),
                        o = g.BattleData.PlayingBattleDatas[n];
                    if (!o) return u.EZLog.Warn("selttle battle failure. not have this map type data:" + n), null;
                    if (t == g.CloseBattleType.Settle) {
                        var r = !1;
                        if (o.ExtraParam.SettleAllWhenOneFailed)
                            for (var i = 0; i < o.Players.length; i++)
                                if ((s = o.Players[i]).FinalResult == l.BattleResult.DefenderWin) {
                                    r = !0;
                                    break
                                } var a = !0;
                        for (i = 0; i < o.Players.length; i++) {
                            var s = o.Players[i];
                            if (o.ExtraParam.SettleAllWhenOneFailed && r && s.ForceStop(), !s.IsEnd) {
                                a = !1;
                                break
                            }
                        }
                        if (!a) return;
                        o.ExtraParam.DontCloseOnEnd || (delete g.BattleData.PlayingBattleDatas[n], o.InBackground || u.Game.EventDispatcher.Emit(l.GameEventIds.DelayCloseBattlePanel))
                    } else t == g.CloseBattleType.SettleAll ? o.ExtraParam.DontCloseOnEnd || (delete g.BattleData.PlayingBattleDatas[n], o.InBackground || u.Game.EventDispatcher.Emit(l.GameEventIds.DelayCloseBattlePanel)) : (delete g.BattleData.PlayingBattleDatas[n], u.UIManager.Instance.CloseUIPanel(f.PanelConfig.BattlePanel.Path));
                    switch (t) {
                        case g.CloseBattleType.Settle:
                            u.Game.EventDispatcher.Emit(l.GameEventIds.SettleBattle.Fmt(n), o);
                            break;
                        case g.CloseBattleType.Restart:
                            u.Game.EventDispatcher.Emit(l.GameEventIds.CancelBattle.Fmt(n), o), u.Game.EventDispatcher.Emit(l.GameEventIds.RestartBattle.Fmt(n), o);
                            break;
                        case g.CloseBattleType.Cancel:
                            u.Game.EventDispatcher.Emit(l.GameEventIds.CancelBattle.Fmt(n), o);
                            break;
                        case g.CloseBattleType.SettleAll:
                            u.Game.EventDispatcher.Emit(l.GameEventIds.SettleAllBattle.Fmt(n), o)
                    }
                    return u.Game.EventDispatcher.Emit(d.EventKeys.EVENT_BATTLECHANGE, o), o
                }, t.prototype.ResumePlayBattle = function(e) {
                    if (!g.BattleData.PlayingBattleDatas[e]) return !1;
                    var t = g.BattleData.PlayingBattleDatas[e];
                    return t.InBackground = !1, g.BattleData.CurrentControlConfig = t.ExtraParam, u.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattlePanel.Path, e, !1), !0
                }, t.prototype.IsInBattle = function(e) {
                    return !!g.BattleData.PlayingBattleDatas[e]
                }, t.prototype.StartPlay = function(e, t, n) {
                    void 0 === t && (t = null), void 0 === n && (n = !1);
                    var o = {
                        CanPause: !0,
                        CanCanel: !0,
                        CanRestart: !0,
                        CanSwitchSpeed: _.default.Instance.IsGameModuleUnlock(l.GameModuleType.BattleSpeed)[0],
                        CanSkipPlay: !1,
                        CanPlayInBackground: !0,
                        ShowHaloBtn: !1,
                        StartTime: 0,
                        BattleWaveNumber: 0,
                        BossHPBarCapacityArray: null,
                        ShowBossHPBarCount: !1,
                        DontCloseOnEnd: !1,
                        UserParams: null,
                        SettleAllWhenOneFailed: !1,
                        StartBattleDelay: 300
                    };
                    for (var r in t) o[r] = t[r];
                    var i = {
                        Players: [],
                        ExtraParam: o,
                        IsDouble: !1,
                        ActiveIndex: 0,
                        ViewPortIds: [],
                        InBackground: n,
                        SettleParams: null
                    };
                    if (e instanceof Array ? i.Reports = e : i.Reports = [e], i.ExtraParam.MapType) i.MapType = i.ExtraParam.MapType;
                    else {
                        var a = p.ConfigDataComponent.Instance.GetConfigById(h.MapBase_Config, i.Reports[0].MapId);
                        i.MapType = a.Type
                    }
                    return (i.MapType == l.MapType.AncientSacred || i.MapType == l.MapType.ArtefactRelic) && i.Reports.length > 1 && (i.IsDouble = !0), this._StartPlay(i), u.Game.EventDispatcher.Emit(d.EventKeys.EVENT_BATTLECHANGE, i), i
                }, t.prototype._StartPlay = function(e) {
                    var t = g.BattleData.GetMapTypeKey(e.MapType);
                    if (!g.BattleData.PlayingBattleDatas[t]) {
                        g.BattleData.PlayingBattleDatas[t] = e;
                        for (var n = 0; n < e.Reports.length; n++) {
                            var o = null;
                            (o = e.ExtraParam.CanManual ? new I.ManualBattlePlayer : new m.BattlePlayer).Init(e, n), e.Players[n] = o
                        }
                        if (e.InBackground) {
                            for (n = 0; n < e.Players.length; n++) e.Players[n].StartPlay();
                            if (e.ExtraParam.StartTime > 0) {
                                var r = c.TimeUtil.Now(),
                                    i = Math.floor((r - e.ExtraParam.StartTime) / m.BattlePlayer.FastForwardInterval);
                                if (i > 0) {
                                    for (n = 0; n < e.Players.length; n++) e.Players[n].IsFastForward = !0;
                                    for (var a = 0; a < i; a++) {
                                        var s = !0;
                                        for (n = 0; n < e.Players.length; n++) e.Players[n].FastForwardUpdate(), e.Players[n].IsEnd || (s = !1);
                                        if (s) break
                                    }
                                    for (n = 0; n < e.Players.length; n++) e.Players[n].IsFastForward = !1
                                }
                            }
                        } else g.BattleData.CurrentControlConfig = e.ExtraParam, u.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattlePanel.Path, t, !0)
                    }
                }, t.prototype.NextWave = function(e) {
                    return i(this, void 0, void 0, function() {
                        var t, n;
                        return a(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return t = g.BattleData.GetMapTypeKey(e.MapType), g.BattleData.PlayingBattleDatas[t] ? [4, (n = new m.BattlePlayer).Init(e, 0)] : [2];
                                case 1:
                                    return o.sent(), e.Players[0] = n, e.InBackground || u.Game.EventDispatcher.Emit(l.GameEventIds.StartNextWave), [2]
                            }
                        })
                    })
                }, t.prototype.Preload = function() {
                    return i(this, void 0, Promise, function() {
                        var e, t, n, o, r;
                        return a(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e = this.InstanceId, t = c.TimeUtil.Now(), [4, g.BattleData.InitBattleAsset()];
                                case 1:
                                    if (i.sent(), 0 == e || e != this.InstanceId) return [2];
                                    for (o in f.PanelConfig.BattlePanel.Path, cc.Prefab, cc.Prefab, n = p.ConfigDataComponent.Instance.GetConfig(h.HeroBase_Config)) {
                                        if (0 == e || e != this.InstanceId) return [2];
                                        if ((r = n[o]).Model && (p.ConfigDataComponent.Instance.GetHeroSkillConfig(r.Model), 0 == e || e != this.InstanceId)) return [2]
                                    }
                                    return u.EZLog.Log("preload battle asset complete. time use: " + (c.TimeUtil.Now() - t)), [2]
                            }
                        })
                    })
                }, t.CompName = "BattleManager", t._Instance = null, t
            }(u.Component);
        n.BattleManager = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/index": "index",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../UI/Auxiliary/UIUtlity": "UIUtlity",
        "../ManualBattle/ManualBattlePlayer": "ManualBattlePlayer",
        "./BattleData": "BattleData",
        "./BattlePlayer": "BattlePlayer"
    }],
    BattlePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "470bakVCzRDGarR6OhCScAr", "BattlePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BattlePanelDefaultEvent = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/GuideManager"),
            g = e("./BattleData"),
            m = e("./BattleManager"),
            I = e("./BattleViewPort"),
            _ = e("../Panel/StarConditionComponent"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../Components/CustomToggle"),
            S = e("../../../Consts/Consts"),
            w = e("../../Auxiliary/ModuleGuideManager"),
            P = e("../Components/ElementStrengthenComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.BattleEnded = 0] = "BattleEnded", e[e.BattleSkipped = 1] = "BattleSkipped", e[e.BattleCancelled = 2] = "BattleCancelled", e[e.BattlePlayingOffScreen = 3] = "BattlePlayingOffScreen", e[e.BattleCancelledToRestart = 4] = "BattleCancelledToRestart", e[e.PanelOverlayIsShown = 5] = "PanelOverlayIsShown", e[e.PanelOverlayIsHidden = 6] = "PanelOverlayIsHidden", e[e.BattleStarted = 7] = "BattleStarted", e[e.BattlePaused = 8] = "BattlePaused", e[e.BattleResumed = 9] = "BattleResumed"
        })(n.BattlePanelDefaultEvent || (n.BattlePanelDefaultEvent = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !0, !1, !0, l.AssetUnloadMode.Normal), t.ViewPortContainer = null, t.ElementStrengthenNode = null, t.ControlToolbar = null, t.Overlay = null, t.DoubleBattleNode = null, t.BattleSwitchToggles = [], t._ViewPortPrefab = null, t._ViewPorts = [], t._Toolbar = null, t._Overly = null, t._DoubleBattle = null, t._ElementStrengthenPrefab = null, t._BgSpriteFrame = null, t._NeedStartBattle = !1, t._currentRound = 0, t._BattleData = null, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "BattleData", {
                get: function() {
                    return this._BattleData
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return e = this, [4, this.LoadDynamicAsset("BattleUI/BattleViewPort", cc.Prefab)];
                            case 1:
                                return e._ViewPortPrefab = t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this._Toolbar = new k(this, this.ControlToolbar), this._Overly = new O(this, this.Overlay), this._DoubleBattle = new M(this, this.DoubleBattleNode), this._Overly.Hide(), this._DoubleBattle.Hide(), c.Game.EventDispatcher.Only(p.GameEventIds.DelayCloseBattlePanel, function() {
                    t.DelayClose()
                }), this._Toolbar.InitUI(), this._Overly.InitUI()
            }, t.prototype.InitData = function(e) {
                var t = e[0];
                if (this._mapType = t, this._BattleData = g.BattleData.PlayingBattleDatas[t], this._BattleData) {
                    this._NeedStartBattle = e[1] || !1, this._BattleData.IsDouble && (this._DoubleBattle.InitUI(), this._DoubleBattle.Show());
                    var n = u.ConfigDataComponent.Instance.GetConfigById(h.MapType_Config, this._BattleData.MapType);
                    !this._BattleData.ExtraParam.SkipPlayRound && n.SkipRound && (this._BattleData.ExtraParam.SkipPlayRound = n.SkipRound), g.BattleData.CurrentControlConfig = this._BattleData.ExtraParam, this._Toolbar.SetLayout(this._BattleData.ExtraParam), this._Overly.SetLayout(this._BattleData.ExtraParam)
                }
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._BattleData ? (this.LoadElementStrengthenComponent(), [4, g.BattleData.InitBattleAsset()]) : [2];
                            case 1:
                                return o.sent(), [4, g.BattleData.LoadCommonBuffEffect(this._BattleData.Reports)];
                            case 2:
                                for (o.sent(), this._BattleData.ViewPortIds = this._BattleData.ViewPortIds || []; this._BattleData.ViewPortIds.length > 0;) this._BattleData.ViewPortIds.pop();
                                if (this._BattleData.IsDouble && this._BattleData.ActiveIndex > 0) this._BattleData.ViewPortIds[0] = 1, this._BattleData.ViewPortIds[1] = 0;
                                else
                                    for (e = 0; e < this._BattleData.Reports.length; e++) this._BattleData.ViewPortIds[e] = e;
                                return (t = u.ConfigDataComponent.Instance.GetConfigById(h.MapBase_Config, this._BattleData.Reports[this._BattleData.ActiveIndex].MapId)) ? (n = this, [4, c.AssetsManager.Instance.LoadAsset("BattleBg/" + t.Bg, cc.SpriteFrame)]) : [3, 4];
                            case 3:
                                n._BgSpriteFrame = o.sent(), o.label = 4;
                            case 4:
                                return this.InitViewPort().node.opacity = 255, [2]
                        }
                    })
                })
            }, t.prototype.update = function() {
                this._DoubleBattle.UpdateHpBar()
            }, t.prototype.DisPlay = function(t) {
                var n = this;
                if (void 0 === t && (t = !1), this._BattleData) {
                    e.prototype.DisPlay.call(this, t), c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, !1), c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_FLOATICON_ACTIVE, !1), c.UIManager.Instance.ClearPanelQueue();
                    for (var o = !0, r = 0; r < this._BattleData.Players.length; r++)
                        if (!this._BattleData.Players[r].IsEnd) {
                            o = !1;
                            break
                        } if (o) c.UIManager.Instance.QuitPanelStack(d.PanelConfig.BattlePanel.Path);
                    else {
                        this._Toolbar.UINode.cleanup(), this._Toolbar.UINode.active = !1, this._Toolbar.UINode.opacity = 0, this._Toolbar.ChangeSpeedButtonIcon(), this.CheckBattleSpeedNeedFingerEffect(), c.Game.EventDispatcher.Only(p.GameEventIds.StartNextWave, this.StartNextWave, this), this.PlayBGMusic();
                        var i = this;
                        setTimeout(function() {
                            if (n._NeedStartBattle)
                                for (var e = 0; e < i._BattleData.Reports.length; e++) n._BattleData.Players[e].StartPlay();
                            y.default.Instance.IsInGuide && n._Toolbar.SetInGuideBtn(), i._Toolbar.UINode.active = !0, cc.tween(n._Toolbar.UINode).delay(.5).to(.5, {
                                opacity: 255
                            }).start()
                        }, this._NeedStartBattle ? this._BattleData.ExtraParam.StartBattleDelay : 50)
                    }
                }
            }, t.prototype.LoadElementStrengthenComponent = function() {
                var e;
                return a(this, void 0, void 0, function() {
                    var t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                switch (this._BattleData.MapType) {
                                    case S.MapType.TowerHeart:
                                    case S.MapType.TowerPower:
                                    case S.MapType.TowerTech:
                                    case S.MapType.TowerBreak:
                                    case S.MapType.TowerFight:
                                        return [3, 1]
                                }
                                return [3, 6];
                            case 1:
                                return (t = P.default.GetElementStrengthenUnlockInfo(this._BattleData.MapType, P.ElementStrengthenParamType.MapType))[0] && t[1] ? this._ElementStrengthenPrefab ? [3, 3] : (this.ElementStrengthenNode.destroyAllChildren(), [4, c.AssetsManager.Instance.LoadAsset("ClimbTowerPanel/ElementStrengthenComponent", cc.Prefab)]) : [3, 4];
                            case 2:
                                if (n = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                this._ElementStrengthenPrefab = n, o = cc.instantiate(this._ElementStrengthenPrefab), this.ElementStrengthenNode.addChild(o), r.label = 3;
                            case 3:
                                return this.ElementStrengthenNode.active = !0, null === (e = this.ElementStrengthenNode.children[0]) || void 0 === e || e.getComponent(P.default).Init(this._BattleData.MapType, P.ElementStrengthenParamType.MapType, !1), [3, 5];
                            case 4:
                                this.ElementStrengthenNode.active = !1, r.label = 5;
                            case 5:
                                return [3, 7];
                            case 6:
                                return this.ElementStrengthenNode.active = !1, [3, 7];
                            case 7:
                                return [2]
                        }
                    })
                })
            }, t.prototype.ShowModuleGuide = function() {
                var e = w.default.instance.GetNextGuideModule();
                e > 0 && e == p.GameModuleType.BattleSpeed ? w.default.instance.AddFingerNode(this._Toolbar.SpeedButton.node) : w.default.instance.RemoveFingerNode(this._Toolbar.SpeedButton.node)
            }, t.prototype.CheckBattleSpeedNeedFingerEffect = function() {
                g.BattleData.BattlePlaySpeedIndex < this._Toolbar.MaxBattleSpeed - 1 ? w.default.instance.AddFingerNode(this._Toolbar.SpeedButton.node) : w.default.instance.RemoveFingerNode(this._Toolbar.SpeedButton.node)
            }, t.prototype.PlayBGMusic = function() {
                var e = this._BattleData.Reports[0].MapId;
                1 == u.ConfigDataComponent.Instance.GetConfigById(h.MapBase_Config, e).IsBossBattle ? l.AudioManager.Instance.PlayBossBattleMusic() : l.AudioManager.Instance.PlayNormalBattleMusic()
            }, t.prototype.Close = function() {
                c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, !0), c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_FLOATICON_ACTIVE, !0);
                var t = this._BattleData.Reports[0].MapId;
                u.ConfigDataComponent.Instance.GetConfigById(h.MapBase_Config, t).Type != p.MapType.MainLine && l.AudioManager.Instance.PlayMainSceneMusic(), e.prototype.Close.call(this), c.Game.EventDispatcher.Off(p.GameEventIds.StartNextWave), c.AssetsManager.Instance.UnloadAsset(this._ElementStrengthenPrefab), this._ElementStrengthenPrefab = null, c.AssetsManager.Instance.UnloadAsset(this._BgSpriteFrame), this._BgSpriteFrame = null, this._Overly.Hide(), this._DoubleBattle.Hide();
                for (var n = null, o = this._ViewPorts.length - 1; o >= 0; o--)(n = this._ViewPorts[o]) && (n.Dispose(), o > 0 && (n.node.parent = null, n.node.destroy()));
                this._ViewPorts.length > 1 && this._ViewPorts.splice(1, this._ViewPorts.length - 1), g.BattleData.ClearCommonBuffEffect()
            }, t.prototype.StartNextWave = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                if (!this._BattleData) return [2];
                                for (e = null, t = this._ViewPorts.length - 1; t >= 0; t--)(e = this._ViewPorts[t]) && e.Dispose();
                                return g.BattleData.ClearCommonBuffEffect(), [4, g.BattleData.LoadCommonBuffEffect(this._BattleData.Reports)];
                            case 1:
                                return r.sent(), (e = this.InitViewPort()).node.opacity = 255, n = this, setTimeout(function() {
                                    for (var e = 0; e < n._BattleData.Reports.length; e++) o._BattleData.Players[e].StartPlay();
                                    n._Overly.Hide()
                                }, 200), [2]
                        }
                    })
                })
            }, t.prototype.SwitchViewPort = function() {
                if (!this._BattleData.IsDouble || this._BattleData.Reports.length <= 1) this.HideOverly();
                else {
                    this._BattleData.ActiveIndex = (this._BattleData.ActiveIndex + 1) % 2, this.InitViewPort();
                    for (var e = 0; e < this._ViewPorts.length; e++) this._ViewPorts[e] && (e == this._BattleData.ViewPortIds[this._BattleData.ActiveIndex] ? this._ViewPorts[e].node.opacity = 255 : (this._ViewPorts[e].node.opacity = 0, this._ViewPorts[e].node.setSiblingIndex(0)))
                }
            }, t.prototype.InitViewPort = function() {
                var e, t = this._BattleData.ViewPortIds[this._BattleData.ActiveIndex];
                if (!this._ViewPorts[t]) {
                    var n = cc.instantiate(this._ViewPortPrefab);
                    this.ViewPortContainer.addChild(n), n.position = cc.v3(0, 0, 0), n.scale = 1, this._ViewPorts[t] = n.getComponent(I.default)
                }
                e = this._ViewPorts[t];
                var o = this._BattleData.Players[this._BattleData.ActiveIndex];
                return e.Init(o, this._BgSpriteFrame, this), e
            }, t.prototype.ShowOverly = function() {
                this._Overly.FadeIn(!1)
            }, t.prototype.HideOverly = function() {
                this._Overly.Hide()
            }, t.prototype.ProcessNewRound = function(e) {
                this._currentRound = e.Round, this._Toolbar.SetSkipBtnActiveByRound(e.Round)
            }, t.prototype.OnClickOverlayRefuseButton = function() {
                this._Overly.Hide(), m.BattleManager.Instance.StopBattle(this._BattleData.MapType, g.CloseBattleType.Cancel)
            }, t.prototype.OnClickOverlayRestartButton = function() {
                this._Overly.Hide(), m.BattleManager.Instance.StopBattle(this._BattleData.MapType, g.CloseBattleType.Restart)
            }, t.prototype.OnClickOverlayResumeButton = function() {
                this._Overly.Hide(), this.ResumeBattle()
            }, t.prototype.OnClickControlToolbarPauseButton = function() {
                this._Overly.FadeIn(!0), this.PauseBattle()
            }, t.prototype.OnClickControlToolbarSkipButton = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function() {
                        return (e = this.BattleData.ExtraParam.SkipPlayRound) >= 1 && this._currentRound < e ? (C.UIUtlity.ShowFloatingHint("battle_control_skipCondition".ToUILocale().Fmt(e)), [2]) : (this._Overly.FadeIn(!1), this._BattleData.Players.forEach(function(e) {
                            e.Settle()
                        }), [2])
                    })
                })
            }, t.prototype.OnClickControlToolbarSkipAllButton = function() {
                this._Overly.FadeIn(!1), this._BattleData.Players.forEach(function(e) {
                    e.SettleAll()
                })
            }, t.prototype.OnClickControlToolbarBackButton = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._Toolbar.BackButtonTipInfo ? (C.UIUtlity.ShowFloatingHint(this._Toolbar.BackButtonTipInfo), [2]) : (this._Overly.FadeIn(!1), c.UIManager.Instance.BackUIPanel(), this._BattleData.InBackground = !0, c.Game.EventDispatcher.Emit(p.GameEventIds.BattleSwitchToBackground.Fmt(g.BattleData.GetMapTypeKey(this._BattleData.MapType)), this._BattleData), [2])
                    })
                })
            }, t.prototype.OnClickControlToolbarSpeedButton = function() {
                if (this._Toolbar.MaxBattleSpeed <= 1) C.UIUtlity.ShowFloatingHint(this._Toolbar.SpeedButtonTipInfo);
                else {
                    g.BattleData.BattlePlaySpeedIndex++, g.BattleData.BattlePlaySpeedIndex >= this._Toolbar.MaxBattleSpeed && (g.BattleData.BattlePlaySpeedIndex = 0), f.default.SetServerRecordNumber(p.FunctionSkipKey.BattlePlaySpeed, g.BattleData.BattlePlaySpeedIndex), this._Toolbar.ChangeSpeedButtonIcon();
                    for (var e = 0; e < this._ViewPorts.length; e++) this._ViewPorts[e].ChangeBattlePlaySpeed(g.BattleData.BattlePlaySpeed);
                    this.CheckBattleSpeedNeedFingerEffect()
                }
            }, t.prototype.OnClickControlToolbarHaloButton = function() {
                var e = p.EndlessAbyssType.SingleMode;
                this._BattleData.MapType == p.MapType.EndlessAbyssMulti && (e = p.EndlessAbyssType.MultiMode), c.UIManager.Instance.ShowUIPanel(d.PanelConfig.EndlessAbyssMyBuffHint.Path, e)
            }, t.prototype.PauseBattle = function() {
                for (var e, t = 0; t < this._BattleData.Reports.length; t++) this._BattleData.Players[t].IsPause = !0, null === (e = this._ViewPorts[t]) || void 0 === e || e.ChangeBattlePlaySpeed(0)
            }, t.prototype.ResumeBattle = function() {
                for (var e, t = 0; t < this._BattleData.Reports.length; t++) this._BattleData.Players[t].IsPause = !1, null === (e = this._ViewPorts[t]) || void 0 === e || e.ChangeBattlePlaySpeed(g.BattleData.BattlePlaySpeed)
            }, t.prototype.OnBattleSwitchToggle = function(e) {
                var t = this.BattleSwitchToggles.indexOf(e);
                t >= 0 && t < this._BattleData.Reports.length && (this._BattleData.ActiveIndex = t), this.InitViewPort();
                for (var n = 0; n < this._ViewPorts.length; n++) this._ViewPorts[n] && (n == this._BattleData.ViewPortIds[this._BattleData.ActiveIndex] ? this._ViewPorts[n].node.opacity = 255 : (this._ViewPorts[n].node.opacity = 0, this._ViewPorts[n].node.setSiblingIndex(0)));
                this._holyRelicShowGroupHp.Set(this.BattleData, t)
            }, i([R(cc.Node)], t.prototype, "ViewPortContainer", void 0), i([R(cc.Node)], t.prototype, "ElementStrengthenNode", void 0), i([R(cc.Node)], t.prototype, "ControlToolbar", void 0), i([R(cc.Node)], t.prototype, "Overlay", void 0), i([R(cc.Node)], t.prototype, "DoubleBattleNode", void 0), i([R([b.default])], t.prototype, "BattleSwitchToggles", void 0), i([T], t)
        }(c.BaseUIFullScreenPanel);
        n.default = L;
        var k = function() {
                function e(e, t) {
                    this.BattlePanelInst = e, this.UINode = t, this.BackButton = cc.find("BackButton", t).getComponent(cc.Button), this.SkipButton = cc.find("Layout/SkipButton", t).getComponent(cc.Button), this.PauseButton = cc.find("Layout/PauseButton", t).getComponent(cc.Button), this.SpeedButton = cc.find("Layout/SpeedButton", t).getComponent(cc.Button), this.HaloButton = cc.find("Layout/HaloButton", t).getComponent(cc.Button), this.SpeedButtonEffect = cc.find("Layout/SpeedButton/Effect", t).getComponent(sp.Skeleton), this.SpeedButtonIcons = [], this.SpeedButtonIcons[0] = cc.find("Layout/SpeedButton/IconContainer/Icon_1", t), this.SpeedButtonIcons[1] = cc.find("Layout/SpeedButton/IconContainer/Icon_2", t), this.SpeedButtonIcons[2] = cc.find("Layout/SpeedButton/IconContainer/Icon_3", t), this.SkipAllButton = cc.find("Layout/SkipAllButton", t).getComponent(cc.Button), cc.find("LabelContainer/Label", this.BackButton.node).active = !1, cc.find("LabelContainer/Label", this.SkipButton.node).active = !1, cc.find("LabelContainer/Label", this.HaloButton.node).active = !1, cc.find("LabelContainer/Label", this.PauseButton.node).active = !1, cc.find("LabelContainer/Label", this.SpeedButton.node).active = !1, cc.find("LabelContainer/Label", this.SkipAllButton.node).active = !1, this.ChangeSpeedButtonIcon()
                }
                return e.prototype.SetLayout = function(e) {
                    this.BackButton.node.active = e.CanPlayInBackground, this.SkipButton.node.active = e.CanSkipPlay, this.PauseButton.node.active = e.CanPause, this.HaloButton.node.active = e.ShowHaloBtn, this.SkipAllButton.node.active = e.CanSkipAllPlay;
                    var t = f.default.Instance.IsGameModuleUnlock(p.GameModuleType.BattleSpeed);
                    t[0] ? this.MaxBattleSpeed = 3 : (this.MaxBattleSpeed = 1, this.SpeedButtonTipInfo = t[1]), this.MaxBattleSpeed > 1 ? C.UIUtlity.OffNodeGray(this.SpeedButton.node) : C.UIUtlity.OnNodeGray(this.SpeedButton.node), this.BackButtonTipInfo = null, (t = f.default.Instance.IsGameModuleUnlock(p.GameModuleType.BackgroundBattle))[0] || (this.BackButtonTipInfo = t[1] || " "), this.BackButton.node.active && (this.BackButtonTipInfo ? C.UIUtlity.OnNodeGray(this.BackButton.node) : C.UIUtlity.OffNodeGray(this.BackButton.node)), this.SetBackButtonGuide()
                }, e.prototype.InitUI = function() {
                    this.BackButton.node.on("click", this.BattlePanelInst.OnClickControlToolbarBackButton, this.BattlePanelInst), this.SkipButton.node.on("click", this.BattlePanelInst.OnClickControlToolbarSkipButton, this.BattlePanelInst), this.PauseButton.node.on("click", this.BattlePanelInst.OnClickControlToolbarPauseButton, this.BattlePanelInst), this.SpeedButton.node.on("click", this.BattlePanelInst.OnClickControlToolbarSpeedButton, this.BattlePanelInst), this.HaloButton.node.on("click", this.BattlePanelInst.OnClickControlToolbarHaloButton, this.BattlePanelInst), this.SkipAllButton.node.on("click", this.BattlePanelInst.OnClickControlToolbarSkipAllButton, this.BattlePanelInst)
                }, e.prototype.ChangeSpeedButtonIcon = function() {
                    for (var e = 0; e < this.SpeedButtonIcons.length; e++) this.SpeedButtonIcons[e].active = g.BattleData.BattlePlaySpeedIndex == e
                }, e.prototype.SetInGuideBtn = function() {
                    this.BackButton.node.active = !1, this.SkipButton.node.active = !1, this.PauseButton.node.active = !1, this.SpeedButton.node.active = !0, this.HaloButton.node.active = !1, this.SkipAllButton.node.active = !1
                }, e.prototype.SetSkipBtnActiveByRound = function(e) {
                    if (this.BattlePanelInst.BattleData.ExtraParam.CanSkipPlay) {
                        var t = this.BattlePanelInst.BattleData.ExtraParam.SkipPlayRound;
                        t >= 1 && (e >= t ? C.UIUtlity.OffNodeGray(this.SkipButton.node) : C.UIUtlity.OnNodeGray(this.SkipButton.node))
                    }
                }, e.prototype.SetBackButtonGuide = function() {
                    var e = this.BattlePanelInst.BattleData.MapType;
                    e != S.MapType.MainLine && e != S.MapType.EndlessAbyssSingle && e != S.MapType.EndlessAbyssMulti && e != S.MapType.TestTower || w.default.instance.CheckGameModeuleGuideNeedShow(p.GameModuleType.BackgroundBattle) && w.default.instance.CheckGameModeuleGuideNeedShow(p.GameModuleType.FloatIcon) && w.default.instance.AddFingerNode(this.BackButton.node, -60, 50)
                }, e
            }(),
            O = function() {
                function e(e, t) {
                    this.BattlePanelInst = e, this.UINode = t, this.RefuseButtonNode = cc.find("Controls/RefuseButton", t), this.RefuseButtonIconNode = cc.find("Controls/RefuseButton/IconContainer/Icon", t), this.RefuseButtonLabel = cc.find("Controls/RefuseButton/LabelContainer/Label", t).getComponent(cc.Label), this.RestartButtonNode = cc.find("Controls/RestartButton", t), this.RestartButtonIconNode = cc.find("Controls/RestartButton/IconContainer/Icon", t), this.RestartButtonLabel = cc.find("Controls/RestartButton/LabelContainer/Label", t).getComponent(cc.Label), this.ResumeButtonNode = cc.find("Controls/ResumeButton", t), this.ResumeButtonIconNode = cc.find("Controls/ResumeButton/IconContainer/Icon", t), this.ResumeButtonLabel = cc.find("Controls/ResumeButton/LabelContainer/Label", t).getComponent(cc.Label), this.RefuseButtonLabel.string = "battle_control_refuse".ToUILocale(), this.RestartButtonLabel.string = "battle_control_restart".ToUILocale(), this.ResumeButtonLabel.string = "battle_control_resume".ToUILocale()
                }
                return e.prototype.InitUI = function() {
                    this.ResumeButtonNode.on("click", this.BattlePanelInst.OnClickOverlayResumeButton, this.BattlePanelInst), this.RestartButtonNode.on("click", this.BattlePanelInst.OnClickOverlayRestartButton, this.BattlePanelInst), this.RefuseButtonNode.on("click", this.BattlePanelInst.OnClickOverlayRefuseButton, this.BattlePanelInst)
                }, e.prototype.SetLayout = function(t) {
                    var n = t.CanCanel,
                        o = t.CanRestart;
                    this.RefuseButtonNode.active = n, this.RestartButtonNode.active = o, this.ResumeButtonNode.active = !0, this.ActiveNodeArray = [], this.ActiveIconNodeArray = [], this.ActivePositionArray = [], n && (this.ActiveNodeArray.push(this.RefuseButtonNode), this.ActiveIconNodeArray.push(this.RefuseButtonIconNode)), o && (this.ActiveNodeArray.push(this.RestartButtonNode), this.ActiveIconNodeArray.push(this.RestartButtonIconNode)), this.ActiveNodeArray.push(this.ResumeButtonNode), this.ActiveIconNodeArray.push(this.ResumeButtonIconNode);
                    for (var r = this.ActiveNodeArray.length, i = r * e.ButtonNodeWidth + (r - 1) * e.ButtonNodeGap, a = .5 * (e.ParentNodeWidth - i), s = 0; s < r; ++s) this.ActivePositionArray.push(a + s * (e.ButtonNodeWidth + e.ButtonNodeGap))
                }, e.prototype.FadeIn = function(t) {
                    if (this.UINode.opacity = 0, this.UINode.active = !0, cc.tween(this.UINode).to(.15, {
                            opacity: 255
                        }).start(), t) this.ShowButtons(!0);
                    else
                        for (var n = 0, o = this.ActiveNodeArray.length; n < o; ++n) this.ActiveNodeArray[n].x = e.ButtonTweenStartPos
                }, e.prototype.ShowButtons = function(t) {
                    if (t)
                        for (var n = 0, o = this.ActiveNodeArray.length - 1; o >= 0; o--) {
                            var r = this.ActiveNodeArray[o];
                            r.x = e.ButtonTweenStartPos, cc.tween(r).to(n, {
                                x: this.ActivePositionArray[o]
                            }, {
                                easing: "cubicOut"
                            }).start();
                            var i = this.ActivePositionArray[o] + Math.abs(e.ButtonTweenStartPos),
                                a = this.ActiveIconNodeArray[o];
                            a.angle = i / e.IconCircumference * 360, cc.tween(a).to(n, {
                                angle: 0
                            }, {
                                easing: "cubicOut"
                            }).start(), n -= 0
                        } else {
                            o = 0;
                            for (var s = this.ActiveNodeArray.length; o < s; ++o) this.ActiveNodeArray[o].x = this.ActivePositionArray[o]
                        }
                }, e.prototype.Show = function() {
                    this.UINode.active = !0, this.UINode.opacity = 255, this.ShowButtons(!1)
                }, e.prototype.Hide = function() {
                    this.UINode.active = !1
                }, e.ButtonNodeWidth = 180, e.ButtonNodeGap = 118, e.ParentNodeWidth = 776, e.IconCircumference = e.ButtonNodeWidth * Math.PI, e.ButtonTweenStartPos = -500, e
            }(),
            M = function() {
                function e(e, t) {
                    this._IsReady = !1, this.LeftArrow = null, this.RightArrow = null, this.BattleInfoNode = null, this.BattleInfoWidget = null, this.ProgressNode = null, this.PlayerProgress = null, this.EnemyProgress = null, this.WinSign = null, this.LoseSign = null, this.SwordSign = null, this.WinBoard = null, this.BtnCondition = null, this.StarConditionComponent = null, this.WaitingAnotherBattleHint = null, this._UpdateCounter = 0, this.BattlePanelInst = e, this.UINode = t, this._IsReady = !1
                }
                return e.prototype.InitUI = function() {
                    this._IsReady || (this._IsReady = !0, this.LeftArrow = cc.find("LeftArrow", this.UINode), this.RightArrow = cc.find("RightArrow", this.UINode), this.BattleInfoNode = cc.find("BattleInfoNode", this.UINode), this.BattleInfoWidget = this.BattleInfoNode.getComponent(cc.Widget), this.ProgressNode = cc.find("ProgressNode", this.BattleInfoNode), this.WinSign = cc.find("Win", this.BattleInfoNode), this.LoseSign = cc.find("Lose", this.BattleInfoNode), this.SwordSign = cc.find("InnerBottom/Sword", this.ProgressNode), this.PlayerProgress = cc.find("PlayerHp", this.ProgressNode).getComponent(cc.ProgressBar), this.EnemyProgress = cc.find("EnemyHp", this.ProgressNode).getComponent(cc.ProgressBar), this.BtnCondition = cc.find("BtnCondition", this.UINode).getComponent(cc.Button), this.StarConditionComponent = cc.find("StarConditionIComponent", this.UINode).getComponent(_.default), this.WinBoard = cc.find("WinBoard", this.UINode), this.WaitingAnotherBattleHint = cc.find("Content/Tag", this.WinBoard).getComponent(cc.RichText), this.WaitingAnotherBattleHint.string = "waitingAnotherBattle".ToUILocale(), this.BattlePanelInst.BattleData.MapType == p.MapType.ArtefactRelic ? this.BtnCondition.node.active = !1 : this.BtnCondition.node.active = !0, this.StarConditionComponent.node.opacity = 255, this.BtnCondition.node.on("click", this.OnBtnConditionClick, this), this.BattleInfoNode.on(cc.Node.EventType.TOUCH_END, this.OnSwitchBattle, this))
                }, e.prototype.OnBtnConditionClick = function() {
                    this.StarConditionComponent.node.active = !this.StarConditionComponent.node.active
                }, e.prototype.OnSwitchBattle = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return this.BattlePanelInst.ShowOverly(), this.BattlePanelInst.SwitchViewPort(), e = this, cc.tween(this.BattleInfoNode).to(.2, {
                                opacity: 0
                            }).call(function() {
                                e.SetLayout(), e.BattleInfoNode.opacity = 100, e.BattlePanelInst.HideOverly()
                            }).to(.2, {
                                opacity: 255
                            }).start(), [2]
                        })
                    })
                }, e.prototype.SetLayout = function() {
                    var e = 0 == this.BattlePanelInst.BattleData.ActiveIndex;
                    this.LeftArrow.active = !e, this.RightArrow.active = e, this.BattleInfoWidget.isAlignLeft = !e, this.BattleInfoWidget.isAlignRight = e, this.BattleInfoWidget.right = 64, this.BattleInfoWidget.left = 64, this.BattleInfoWidget.updateAlignment(), this.SetWinBoardState(this.BattlePanelInst.BattleData.ActiveIndex);
                    var t = (this.BattlePanelInst.BattleData.ActiveIndex + 1) % 2;
                    this.SetSignState(t)
                }, e.prototype.ChangeToSecondBattle = function(e) {
                    var t = this.BattlePanelInst.BattleData.Players[e].FinalResult;
                    if ((t == p.BattleResult.AttackerWin || t == p.BattleResult.DefenderWin) && this.BattlePanelInst.BattleData.Players.length > 1)
                        for (var n = 0; n < this.BattlePanelInst.BattleData.Players.length; n++) {
                            var o = this.BattlePanelInst.BattleData.Players[n];
                            e != n && o.FinalResult == p.BattleResult.Process && this.OnSwitchBattle()
                        }
                }, e.prototype.SetWinBoardState = function(e) {
                    this.BattlePanelInst.BattleData.Players[e].FinalResult == p.BattleResult.AttackerWin ? this.WinBoard.active = !0 : this.WinBoard.active = !1
                }, e.prototype.SetSignState = function(e) {
                    this.BattlePanelInst.BattleData.Players[e].FinalResult == p.BattleResult.AttackerWin ? (this.WinSign.active = !0, this.LoseSign.active = !1, this.SwordSign.active = !1) : this.BattlePanelInst.BattleData.Players[e].FinalResult == p.BattleResult.DefenderWin ? (this.WinSign.active = !1, this.LoseSign.active = !0, this.SwordSign.active = !1) : (this.WinSign.active = !1, this.LoseSign.active = !1, this.SwordSign.active = !0)
                }, e.prototype.UpdateHpBar = function() {
                    if (this._IsReady && this.UINode.active && (this._UpdateCounter++, !(this._UpdateCounter < 30))) {
                        this._UpdateCounter = 0, this.SetWinBoardState(this.BattlePanelInst.BattleData.ActiveIndex), this.ChangeToSecondBattle(this.BattlePanelInst.BattleData.ActiveIndex);
                        var e = (this.BattlePanelInst.BattleData.ActiveIndex + 1) % 2;
                        this.SetSignState(e);
                        var t = this.BattlePanelInst.BattleData.Players[e],
                            n = 0,
                            o = 0,
                            r = 0,
                            i = 0;
                        for (var a in t.HeroDatas) {
                            var s = t.HeroDatas[a];
                            s.Camp == p.CampType.Attacker ? (n += s.Hp, o += s.HpMax) : (r += s.Hp, i += s.HpMax)
                        }
                        this.PlayerProgress.progress = n / o, this.EnemyProgress.progress = r / i
                    }
                }, e.prototype.Show = function() {
                    switch (this.UINode.active = !0, this.BattlePanelInst.BattleData.MapType) {
                        case p.MapType.ArtefactRelic:
                            break;
                        default:
                            this.StarConditionComponent.SetUI(this.BattlePanelInst.BattleData.ExtraParam.UserParams.LevelId)
                    }
                    this.SetLayout()
                }, e.prototype.Hide = function() {
                    this.UINode.active = !1
                }, e
            }();
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ElementStrengthenComponent": "ElementStrengthenComponent",
        "../Panel/StarConditionComponent": "StarConditionComponent",
        "./BattleData": "BattleData",
        "./BattleManager": "BattleManager",
        "./BattleViewPort": "BattleViewPort"
    }],
    BattlePlayerCommonDefines: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6d92cJDdK1MsbaUR7lc8B10", "BattlePlayerCommonDefines"), Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.BattleCatergory = n.BattleTeamSide = n.BattleReplayState = n.BattleReplaySpeed = n.BattleStatusMessageType = void 0,
            function(e) {
                e[e.BattleReplayState = 0] = "BattleReplayState", e[e.RoundStart = 1] = "RoundStart", e[e.ActorHPRatio = 2] = "ActorHPRatio", e[e.ActorSkillCasting = 3] = "ActorSkillCasting", e[e.ActorHPRatioNoAnimation = 4] = "ActorHPRatioNoAnimation", e[e.UpdateUIForBattleReport = 5] = "UpdateUIForBattleReport", e[e.BattleStarted = 6] = "BattleStarted", e[e.FlyingNumberDamage = 7] = "FlyingNumberDamage", e[e.ActorDead = 8] = "ActorDead", e[e.ActorRevive = 9] = "ActorRevive"
            }(n.BattleStatusMessageType || (n.BattleStatusMessageType = {})),
            function(e) {
                e[e.X1 = 1] = "X1", e[e.X2 = 2] = "X2", e[e.X3 = 3] = "X3"
            }(n.BattleReplaySpeed || (n.BattleReplaySpeed = {})),
            function(e) {
                e[e.Ended = 0] = "Ended", e[e.GettingStopped = 1] = "GettingStopped", e[e.Stopped = 2] = "Stopped", e[e.PlayingOnScreen = 3] = "PlayingOnScreen", e[e.PlayingOffScreen = 4] = "PlayingOffScreen", e[e.FailedToPlay_WrongBattleId = 91] = "FailedToPlay_WrongBattleId"
            }(n.BattleReplayState || (n.BattleReplayState = {})),
            function(e) {
                e[e.Attacker = 0] = "Attacker", e[e.Defender = 1] = "Defender"
            }(n.BattleTeamSide || (n.BattleTeamSide = {})),
            function(e) {
                e[e.Normal = 0] = "Normal", e[e.IdleFake = 1] = "IdleFake"
            }(n.BattleCatergory || (n.BattleCatergory = {})), cc._RF.pop()
    }, {}],
    BattlePlayerFrame: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d18b8VJbHhNEoODCcAxJF/X", "BattlePlayerFrame");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/BattlePlayerScreen"),
            u = e("../../../EZFramework/EZFramework"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.frameName = "What's my name?", t
                }
                var n;
                return r(t, e), n = t, t.Register = function(e, t) {
                    n.frameDict.set(e, t)
                }, t.UnRegister = function(e) {
                    n.frameDict.delete(e)
                }, t.RegisterBattlePlayerScreen = function(e) {
                    n.battlePlayerScreen = e
                }, t.SetActiveFrame = function(e) {
                    if (null === e) return n.currentActivatedFrameName = null, !0;
                    var t = this.frameDict.get(e).node;
                    return !!t.activeInHierarchy && (n.currentActivatedFrameName = e, n.MountBattleScreenNode(t), !0)
                }, t.MountBattleScreenNode = function(e) {
                    u.EZLog.Debug("ok in BattlePlayerFrame.MountBattleScreenNode frameNode:" + e.name), n.battlePlayerScreen.node.active = !0, n.battlePlayerScreen.node.setParent(e), n.battlePlayerScreen.node.setPosition(0, 0)
                }, t.UnmountBattleScreenNode = function() {
                    u.EZLog.Debug("ok in BattlePlayerFrame.UnmountBattleScreenNode XXXXXXX"), n.battlePlayerScreen.node.active = !1, n.battlePlayerScreen.node.setParent(l.UIManager.Instance.node), n.battlePlayerScreen.node.setPosition(999999, 999999)
                }, t.prototype.onLoad = function() {
                    u.EZLog.Debug("ok in BattlePlayerFrame's onLoad. name:" + this.frameName), n.Register(this.frameName, {
                        name: this.frameName,
                        node: this.node,
                        frame: this
                    })
                }, t.prototype.onDestroy = function() {
                    n.UnRegister(this.frameName)
                }, t.prototype.ShowBattleFrame = function() {
                    u.EZLog.Debug("ok in BattlePlayerFrame.ShowBattleFrame"), n.SetActiveFrame(this.frameName)
                }, t.AddBattle = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return u.EZLog.Debug("ok in BattlePlayerFrame.AddBattle rawBattleReport id:" + e.Id), [4, c.default.AddBattle(e)];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.DelBattle = function(e) {
                    u.EZLog.Debug("ok in BattlePlayerFrame.DelBattle  id:" + e), c.default.DelBattle(e)
                }, t.PlayBattleOnScreen = function(e, t, n) {
                    u.EZLog.Debug("ok in BattlePlayerFrame.PlayBattleOnScreen...this.battleReportID:" + e), null == n || null == n ? c.default.PlayBattleOnScreen(e, t) : c.default.PlayBattleOnScreen(e, t, n)
                }, t.StopBattle = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return u.EZLog.Debug("ok in BattlePlayerFrame.StopBattle...battleId:" + e), [4, c.default.StopBattle(e)];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.StopBattleAfterCurrentPage = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return u.EZLog.Debug("ok in BattlePlayerFrame.StopBattleAfterCurrentPage...battleId:" + e), [4, c.default.StopBattleAfterCurrentPage(e)];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayFakeBattleOnScreen = function(e) {
                    u.EZLog.Debug("ok in BattlePlayerFrame.PlayFakeBattleOnScreen..."), n.SetActiveFrame(this.frameName), c.default.PlayFakeBattle(e)
                }, t.StopFakeBattle = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return u.EZLog.Debug("ok in BattlePlayerFrame.StopFakeBattle..."), n.UnmountBattleScreenNode(), [4, c.default.StopFakeBattle()];
                                case 1:
                                    return e.sent(), [2]
                            }
                        })
                    })
                }, t.classNameString = "BattlePlayerFrame", t.frameDict = new Map, t.battlePlayerScreen = null, t.currentActivatedFrameName = null, i([h({
                    visible: !0,
                    displayName: "Frame Name"
                })], t.prototype, "frameName", void 0), n = i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/BattlePlayerScreen": "BattlePlayerScreen"
    }],
    BattlePlayerScreen: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1cef5iEYKJJqoieCUWW3z/N", "BattlePlayerScreen");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("./FlyingNumber"),
            d = e("../Components/BattlePlayerFrame"),
            h = e("./BattleInstance"),
            f = e("../Components/BattlePlayerCommonDefines"),
            y = e("./ActorFrame"),
            g = e("../../../EZFramework/Auxiliary/LinkedList"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/Components"),
            _ = e("./BattleInstanceFake"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../../Auxiliary/DataUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = (b.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                var n;
                return r(t, e), n = t, t.InitNodesAndComponents = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a, p, m, I, _, C, v, b;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return n.initialized ? [2] : (n.initialized = !0, u.EZLog.Debug("ok in BattlePlayerScreen.InitNodesAndComponents ...begin"), [4, c.AssetsManager.Instance.LoadAsset(n.screenPrefabPathName)]);
                                case 1:
                                    return e = s.sent(), (t = cc.instantiate(e)).setPosition(999999, 999999), t.setParent(l.UIManager.Instance.node), t.active = !0, d.default.RegisterBattlePlayerScreen(t.getComponent("BattlePlayerScreen")), n.staticBgSprite = cc.find("StaticBg", t).getComponent(cc.Sprite), n.staticBgMaskNode = cc.find("BgMask", t), n.battleFieldNode = cc.find("BattleField", t), o = [], r = [], [4, c.AssetsManager.Instance.LoadAsset(n.actorFramePrefabPathName)];
                                case 2:
                                    for ((i = s.sent()) || u.EZLog.Debug("ok in BattlePlayerScreen.InitNodesAndComponents ... loading " + n.actorFramePrefabPathName + " failed."), (m = cc.find(n.PlayerSidePositionNodeNames[7], n.battleFieldNode).getPosition()).x -= n.offScreenPositionOffset, (I = cc.find(n.EnemySidePositionNodeNames[7], n.battleFieldNode).getPosition()).x += n.offScreenPositionOffset, v = 0, _ = h.default.maxTeamMembers; v < _; ++v)(a = cc.instantiate(i)).setParent(n.battleFieldNode), a.active = !1, a.name = "ActorFrame" + n.PlayerSidePositionNodeNames[v], o[v] = a.getComponent(y.default.classNameString), o[v].standByPosition = cc.find(n.PlayerSidePositionNodeNames[v], n.battleFieldNode).getPosition(), o[v].offStagePosition = m, (p = cc.instantiate(i)).setParent(n.battleFieldNode), p.active = !1, p.name = "ActorFrame" + n.EnemySidePositionNodeNames[v], r[v] = p.getComponent(y.default.classNameString), r[v].standByPosition = cc.find(n.EnemySidePositionNodeNames[v], n.battleFieldNode).getPosition(), r[v].offStagePosition = I;
                                    for (this.dataBlock.push({
                                            side: f.BattleTeamSide.Attacker,
                                            actorFrames: o,
                                            skillCastingIndicatorNode: cc.find("Overlay/PlayerSideSkillName", t),
                                            skillCastingIndicatorIconSprite: cc.find("Overlay/PlayerSideSkillName/Bg/Container/IconSprite", t).getComponent(cc.Sprite),
                                            skillCastingIndicatorNameLabel: cc.find("Overlay/PlayerSideSkillName/Bg/Container/NameLabel", t).getComponent(cc.Label)
                                        }), this.dataBlock.push({
                                            side: f.BattleTeamSide.Defender,
                                            actorFrames: r,
                                            skillCastingIndicatorNode: cc.find("Overlay/EnemySideSkillName", t),
                                            skillCastingIndicatorIconSprite: cc.find("Overlay/EnemySideSkillName/Bg/Container/IconSprite", t).getComponent(cc.Sprite),
                                            skillCastingIndicatorNameLabel: cc.find("Overlay/EnemySideSkillName/Bg/Container/NameLabel", t).getComponent(cc.Label)
                                        }), t.active = !1, t.setPosition(0, 0), n.avatarNodeLRUCache = new g.LinkedList, n.skillIndicatorNodeOriginalX = this.dataBlock[f.BattleTeamSide.Attacker].skillCastingIndicatorNode.x, n.totalDMGBaseNode = cc.find("Overlay/TotalDMG", t), n.totalDMGDigitsBaseNode = cc.find("Overlay/TotalDMG/Digits", t), n.totalDMGDigitsContainerNode = cc.find("Overlay/TotalDMG/Digits/Container", t), n.totalDMGDigitSprites = [], v = 0; v < 8; v++) C = cc.find("Overlay/TotalDMG/Digits/Container/Digit" + v.toString(), t).getComponent(cc.Sprite), n.totalDMGDigitSprites.push(C);
                                    for (n.bossHUDBaseNode = cc.find("Overlay/BossHUD", t), n.bossHUDName = cc.find("Overlay/BossHUD/Name", t).getComponent(cc.Label), n.bossHUDHPBar = cc.find("Overlay/BossHUD/HPBar/Mask/HP", t), n.bossHUDHPBarMask = cc.find("Overlay/BossHUD/HPBar/Mask", t), n.bossHUDCounterNode = cc.find("Overlay/BossHUD/Counter", t), n.bossHUDCounterTitle = cc.find("Overlay/BossHUD/Counter/NumberFg/Title", t).getComponent(cc.Label), n.bossHUDCounterTitle.string = "tag_damage".ToUILocale(), n.bossHUDCounterNumber = cc.find("Overlay/BossHUD/Counter/NumberFg/Number", t).getComponent(cc.Label), n.bossHUDBuffContainerNode = cc.find("Overlay/BossHUD/BuffContainer", t), n.bossHUDBuffIndicators = [], v = 0; v < n.maxAvailbleBossHUDBuffIndicatorNumber; ++v) b = cc.find("Buff" + v.toString(), n.bossHUDBuffContainerNode), n.bossHUDBuffIndicators.push({
                                        index: v,
                                        buffId: 0,
                                        buffCount: 0,
                                        baseNode: b,
                                        iconNode: cc.find("Icon", b),
                                        iconSprite: cc.find("Icon", b).getComponent(cc.Sprite),
                                        iconStatusSprite: cc.find("StatusFrame", b).getComponent(cc.Sprite),
                                        label: cc.find("Text/Label", b).getComponent(cc.Label)
                                    });
                                    return [2]
                            }
                        })
                    })
                }, t.ShowBgMask = function() {
                    n.staticBgMaskNode.cleanup(), n.staticBgMaskNode.active = !0, n.staticBgMaskNode.opacity = 0, cc.tween(n.staticBgMaskNode).to(.2, {
                        opacity: 190
                    }).start()
                }, t.HideBgMask = function() {
                    n.staticBgMaskNode.cleanup(), cc.tween(n.staticBgMaskNode).to(.2, {
                        opacity: 0
                    }).call(function() {
                        n.staticBgMaskNode.active = !1
                    }).start()
                }, t.PreloadAndInitDependencies = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = l.AssetsManager.Instance.LoadAsset(n.mainAtlasPathName, cc.SpriteAtlas), t = l.AssetsManager.Instance.LoadAsset(n.multiLangAtlasPathName, cc.SpriteAtlas), o = l.AssetsManager.Instance.LoadAsset(n.buffAtlasPathName, cc.SpriteAtlas), [4, Promise.all([e, t, o]).then(function(e) {
                                        n.mainAtlas = e[0], n.multiLangAtlas = e[1], n.buffAtlas = e[2]
                                    })];
                                case 1:
                                    return r.sent(), [4, this.InitNodesAndComponents()];
                                case 2:
                                    return r.sent(), [4, p.default.Init(this.mainAtlas, this.multiLangAtlas)];
                                case 3:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.LoadBattleFieldForFakeBattle = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return u.EZLog.Debug("ok in BattlePlayerScreen.LoadBattleFieldForFakeBattle..."), [4, c.AssetsManager.Instance.LoadAsset(n.battleFieldBgBundlePathName + e.battleFieldBackground, cc.SpriteFrame)];
                                case 1:
                                    return t = o.sent(), n.currentOnScreenBattleInstance.mapId != e.mapId ? (c.AssetsManager.Instance.UnloadAsset(t), [2]) : (n.ClearTotalDMG(), n.ToggleBossHUD(!1), n.ResetAllBufferIndicators(), n.battleFieldBg = t, n.staticBgSprite.spriteFrame = n.battleFieldBg, [4, n.LoadAttackersForFakeBattle(e)]);
                                case 2:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.LoadAttackersForFakeBattle = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    u.EZLog.Debug("ok in BattlePlayerScreen.LoadAttackersForFakeBattle..."), t = 0, o = h.default.maxTeamMembers, i.label = 1;
                                case 1:
                                    return t < o ? ((r = n.dataBlock[f.BattleTeamSide.Attacker].actorFrames[t]).Reset(), null == e.attacker.members[t] ? [3, 3] : [4, r.Load(e, {
                                        side: f.BattleTeamSide.Attacker,
                                        position: t
                                    })]) : [3, 4];
                                case 2:
                                    if (i.sent(), n.currentOnScreenBattleInstance.mapId != e.mapId) return [2];
                                    r.StandBy(), i.label = 3;
                                case 3:
                                    return ++t, [3, 1];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.LoadDefendersForFakeBattle = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    u.EZLog.Debug("ok in BattlePlayerScreen.LoadDefendersForFakeBattle..."), t = 0, o = h.default.maxTeamMembers, i.label = 1;
                                case 1:
                                    return t < o ? ((r = n.dataBlock[f.BattleTeamSide.Defender].actorFrames[t]).Reset(), null == e.defender.members[t] ? [3, 3] : [4, r.Load(e, {
                                        side: f.BattleTeamSide.Defender,
                                        position: t
                                    })]) : [3, 4];
                                case 2:
                                    if (i.sent(), n.currentOnScreenBattleInstance.mapId != e.mapId) return [2];
                                    r.StandBy(), i.label = 3;
                                case 3:
                                    return ++t, [3, 1];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.LoadBattleField = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return u.EZLog.Debug("ok in BattlePlayerScreen.LoadBattleField..."), (e = I.ConfigDataComponent.Instance.GetConfigById(m.MapBase_Config, n.currentOnScreenBattleInstance.mapId)).Bg.length > 0 ? (t = n, [4, c.AssetsManager.Instance.LoadAsset(n.battleFieldBgBundlePathName + e.Bg, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    return t.battleFieldBg = s.sent(), n.staticBgSprite.spriteFrame = n.battleFieldBg, [3, 3];
                                case 2:
                                    u.EZLog.Debug("ok in BattlePlayerScreen.LoadBattleField... load mapBase.Bg : " + e.Bg + " failed. mapId is " + n.currentOnScreenBattleInstance.mapId), s.label = 3;
                                case 3:
                                    n.ClearTotalDMG(), n.ToggleBossHUD(!1), n.ResetAllBufferIndicators(), o = 0, r = h.default.maxTeamMembers, s.label = 4;
                                case 4:
                                    return o < r ? (i = n.dataBlock[f.BattleTeamSide.Attacker].actorFrames[o], a = n.dataBlock[f.BattleTeamSide.Defender].actorFrames[o], i.Reset(), a.Reset(), null == n.currentOnScreenBattleInstance.attacker.members[o] ? [3, 6] : [4, i.Load(n.currentOnScreenBattleInstance, {
                                        side: f.BattleTeamSide.Attacker,
                                        position: o
                                    })]) : [3, 9];
                                case 5:
                                    s.sent(), i.StandBy(), s.label = 6;
                                case 6:
                                    return null == n.currentOnScreenBattleInstance.defender.members[o] ? [3, 8] : [4, a.Load(n.currentOnScreenBattleInstance, {
                                        side: f.BattleTeamSide.Defender,
                                        position: o
                                    })];
                                case 7:
                                    s.sent(), a.StandBy(), s.label = 8;
                                case 8:
                                    return ++o, [3, 4];
                                case 9:
                                    return [2]
                            }
                        })
                    })
                }, t.UnloadBattleField = function() {
                    u.EZLog.Debug("ok in BattlePlayerScreen.UnloadBattleField...");
                    for (var e = 0, t = h.default.maxTeamMembers; e < t; ++e) null != n.dataBlock[f.BattleTeamSide.Attacker].actorFrames[e].avatarPrefab && n.dataBlock[f.BattleTeamSide.Attacker].actorFrames[e].UnLoad(), null != n.dataBlock[f.BattleTeamSide.Defender].actorFrames[e].avatarPrefab && n.dataBlock[f.BattleTeamSide.Defender].actorFrames[e].UnLoad();
                    null != this.staticBgSprite.spriteFrame && (this.staticBgSprite.spriteFrame = null, c.AssetsManager.Instance.UnloadAsset(this.battleFieldBg)), n.UnloadAllBuffIcons()
                }, t.AddBattle = function(e, t) {
                    return void 0 === t && (t = f.BattleReplaySpeed.X3), a(this, void 0, void 0, function() {
                        var o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return u.EZLog.Debug("ok in BattlePlayerScreen.AddBattle rawBattleReport:" + e.Id), n.battleInstanceStorage.has(e.Id) ? (u.EZLog.Debug("ok in BattlePlayerScreen.AddBattle battle:" + e.Id + " exists. Returned."), [2]) : (u.EZLog.Debug("ok in BattlePlayerScreen.AddBattle set new battleinstance"), [4, (o = new h.default(e, t)).LoadStaticConfig()]);
                                case 1:
                                    return r.sent(), n.battleInstanceStorage.set(e.Id, o), u.EZLog.Debug("ok in BattlePlayerScreen.AddBattle battleInstanceStorage size:" + n.battleInstanceStorage.size), [2]
                            }
                        })
                    })
                }, t.GetBattleReport = function(e) {
                    if (u.EZLog.Debug("ok in BattlePlayerScreen.GetBattleReport battleId:" + e), u.EZLog.Debug("ok in BattlePlayerScreen.GetBattleReport battleInstanceStorage size:" + n.battleInstanceStorage.size), n.battleInstanceStorage.has(e)) {
                        u.EZLog.Debug("ok in BattlePlayerScreen.GetBattleReport battleId:" + e + " exists.");
                        var t = n.battleInstanceStorage.get(e);
                        u.EZLog.Debug("ok in BattlePlayerScreen.GetBattleReport battleId:" + e + " got battle Instance null?" + (null == t));
                        var o = t.rawBattleReport;
                        return u.EZLog.Debug("ok in BattlePlayerScreen.GetBattleReport battleId:" + e + " got battle report null?" + (null == o)), o
                    }
                    return u.EZLog.Debug("ok in BattlePlayerScreen.GetBattleReport battleId:" + e + " does not exist."), null
                }, t.DelBattle = function(e) {
                    if (u.EZLog.Debug("ok in BattlePlayerScreen.DelBattle battleID:" + e), 0 == n.battleInstanceStorage.has(e)) return u.EZLog.Debug("ok in BattlePlayerScreen.DelBattle cannot find battle:" + e), !1;
                    var t = -1;
                    if (n.currentOnScreenBattleInstance && (t = n.currentOnScreenBattleInstance.battleId), u.EZLog.Debug("ok in BattlePlayerScreen.DelBattle currentOnScreenBattleId:" + t), t != e) {
                        var o = n.battleInstanceStorage.get(e);
                        if (u.EZLog.Debug("ok in BattlePlayerScreen.DelBattle battle:" + e + " state:" + o.GetPlayingState().toString()), o.GetPlayingState() == f.BattleReplayState.Stopped || o.GetPlayingState() == f.BattleReplayState.Ended) return u.EZLog.Debug("ok in BattlePlayerScreen.DelBattle battleID:" + e + " acturally deleted."), n.battleInstanceStorage.delete(e), !0
                    }
                    return !1
                }, t.InitFakeBattleInstance = function(e, t, o) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return n.fakeBattleInstance && n.fakeBattleInstance.IsPlaying() ? [4, n.fakeBattleInstance.AwaitStop()] : [3, 2];
                                case 1:
                                    r.sent(), r.label = 2;
                                case 2:
                                    return n.fakeBattleInstance = new _.default(e, t, o), [4, n.fakeBattleInstance.LoadStaticConfig()];
                                case 3:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.PlayFakeBattle = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return n.fakeBattleInstance ? n.fakeBattleInstance.IsPlaying() ? [2] : (e && (n.tellWhatHappenedOnFakeBattleToCaller = e), n.currentOnScreenBattleInstance = n.fakeBattleInstance, [4, n.LoadBattleFieldForFakeBattle(n.fakeBattleInstance)]) : [3, 2];
                                case 1:
                                    t.sent(), n.currentOnScreenBattleInstance.mapId == n.fakeBattleInstance.mapId && n.fakeBattleInstance.PlayOnScreen(), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.StopFakeBattle = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return n.fakeBattleInstance ? [4, n.fakeBattleInstance.AwaitStop()] : [3, 2];
                                case 1:
                                    e.sent(), e.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.PlayBattleOffScreen = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return u.EZLog.Debug("ok in BattlePlayerScreen.PlayBattleOffScreens battleID:" + e), n.battleInstanceStorage.forEach(function() {}), n.battleInstanceStorage.has(e) ? (t && (n.offScreenReplayCallBack = t), n.battleInstanceStorage.get(e).PlayOffScreen(), [2]) : (t(e, f.BattleReplayState.FailedToPlay_WrongBattleId), [2])
                        })
                    })
                }, t.SwitchOnScreenBattle = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return u.EZLog.Debug("ok in BattlePlayerScreen.SwitchOnScreenBattle battleID:" + e), null == n.currentOnScreenBattleInstance ? [3, 2] : (u.EZLog.Debug("ok in BattlePlayerScreen.SwitchOnScreenBattle battleID:" + e + " 111"), [4, n.currentOnScreenBattleInstance.AwaitStop()]);
                                case 1:
                                    o.sent(), o.label = 2;
                                case 2:
                                    return u.EZLog.Debug("ok in BattlePlayerScreen.SwitchOnScreenBattle battleID:" + e + " 333"), n.battleInstanceStorage.has(e) && (t = n.currentOnScreenBattleInstance.battleId, this.TellWhatHappenedToFrame(e, {
                                        type: f.BattleStatusMessageType.UpdateUIForBattleReport
                                    }), u.EZLog.Debug("ok in BattlePlayerScreen.SwitchOnScreenBattle battleID:" + e + " 444"), n.PlayBattleOnScreen(e), n.PlayBattleOffScreen(t)), u.EZLog.Debug("ok in BattlePlayerScreen.SwitchOnScreenBattle battleID:" + e + " 555"), [2]
                            }
                        })
                    })
                }, t.SetBattleStatisticCallBack = function(e) {
                    n.battleStatisticsCallBack = e
                }, t.PlayBattleOnScreen = function(e, t, o) {
                    return a(this, void 0, void 0, function() {
                        var r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return u.EZLog.Debug("ok in BattlePlayerScreen.PlayBattleOnScreen battleID:" + e), n.fakeBattleInstance && n.fakeBattleInstance.IsPlaying() ? [4, n.StopFakeBattle()] : [3, 2];
                                case 1:
                                    i.sent(), i.label = 2;
                                case 2:
                                    return r = !0, null != n.currentOnScreenBattleInstance && n.currentOnScreenBattleInstance.rawBattleReport.Id == e && (r = !1, n.currentOnScreenBattleInstance.GetPlayingState() == f.BattleReplayState.PlayingOnScreen) ? (u.EZLog.Debug("ok in BattlePlayerScreen.PlayBattleOnScreen battleID:" + e + " is currently playing...."), [2]) : n.battleInstanceStorage.has(e) ? (n.currentOnScreenBattleInstance = n.battleInstanceStorage.get(e), r ? [4, n.LoadBattleField()] : [3, 4]) : [3, 5];
                                case 3:
                                    i.sent(), i.label = 4;
                                case 4:
                                    t && (n.tellWhatHappenedToFrame = t), n.currentOnScreenBattleInstance.PlayOnScreen(o), i.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.ResumeBattleOnScreen = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return u.EZLog.Debug("ok in BattlePlayerScreen.PlayBattleOnScreen battleID:" + e), n.battleInstanceStorage.has(e) && null != n.currentOnScreenBattleInstance && n.currentOnScreenBattleInstance.battleId == e && n.currentOnScreenBattleInstance.PlayOnScreen(!1), [2]
                        })
                    })
                }, t.StopBattle = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return u.EZLog.Debug("ok  in BattlePlayerScreen StopBattle:" + e.toString()), n.battleInstanceStorage.has(e) ? (u.EZLog.Debug("ok  in BattlePlayerScreen StopBattle:" + e.toString() + "  111"), t = n.battleInstanceStorage.get(e), u.EZLog.Debug("ok  in BattlePlayerScreen StopBattle:" + e.toString() + "  222"), [4, t.Stop()]) : [3, 2];
                                case 1:
                                    o.sent(), u.EZLog.Debug("ok  in BattlePlayerScreen StopBattle:" + e.toString() + "  333"), o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.StopBattleAfterCurrentPage = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return u.EZLog.Debug("ok  in BattlePlayerScreen StopBattleAfterCurrentAction:" + e.toString()), n.battleInstanceStorage.has(e) ? (u.EZLog.Debug("ok  in BattlePlayerScreen StopBattleAfterCurrentAction:" + e.toString() + " ...1"), [4, n.battleInstanceStorage.get(e).AwaitStopAfterCurrentPage()]) : [3, 2];
                                case 1:
                                    t.sent(), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.OnBattleInstanceStatisticsComing = function(e) {
                    n.battleStatisticsCallBack && n.battleStatisticsCallBack(e)
                }, t.UnloadBattleOnScreen = function() {
                    n.currentOnScreenBattleInstance = null, n.UnloadBattleField()
                }, t.SetGlobalBattleSpeed = function(e) {
                    h.default.SetGlobalReplaySpeed(e), this.currentOnScreenBattleInstance && this.currentOnScreenBattleInstance.SetSkeletonAnimatingTimeScale(e)
                }, t.GetGlobalBattleSpeed = function() {
                    return h.default.GetGlobalReplaySpeed()
                }, t.GetActorFrame = function(e) {
                    return n.dataBlock[e.side].actorFrames[e.position]
                }, t.TriggerBattleInstanceUpdate = function(e) {
                    n.battleInstanceStorage.forEach(function(t) {
                        t.Update(e)
                    }), n.fakeBattleInstance && n.fakeBattleInstance.Update(e)
                }, t.TellWhatHappenedToFrame = function(e, t) {
                    n.tellWhatHappenedToFrame && n.tellWhatHappenedToFrame(e, t)
                }, t.ShowSkillIndicator = function(e, t, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset(C.BundlePath.HeroHeadIcon + "/" + t, cc.SpriteFrame)];
                                case 1:
                                    return r = s.sent(), e == f.BattleTeamSide.Attacker ? ((i = this.dataBlock[f.BattleTeamSide.Attacker].skillCastingIndicatorNode).active = !0, this.dataBlock[f.BattleTeamSide.Attacker].skillCastingIndicatorIconSprite.spriteFrame = r, this.dataBlock[f.BattleTeamSide.Attacker].skillCastingIndicatorNameLabel.string = o, this.dataBlock[f.BattleTeamSide.Attacker].skillCastingIndicatorIconSprite.node.setContentSize(64, 64), this.dataBlock[f.BattleTeamSide.Defender].skillCastingIndicatorNode.active = !1, i.x = -100, i.opacity = 255, cc.tween(i).to(.2, {
                                        x: n.skillIndicatorNodeOriginalX + 35
                                    }, {
                                        easing: "cubicOut"
                                    }).to(.08, {
                                        x: n.skillIndicatorNodeOriginalX
                                    }, {
                                        easing: "cubicIn"
                                    }).delay(.4).to(.1, {
                                        opacity: 0
                                    }, {
                                        easing: "cubicOut"
                                    }).call(function() {
                                        i.active = !1
                                    }).start()) : ((a = this.dataBlock[f.BattleTeamSide.Defender].skillCastingIndicatorNode).active = !0, this.dataBlock[f.BattleTeamSide.Defender].skillCastingIndicatorIconSprite.spriteFrame = r, this.dataBlock[f.BattleTeamSide.Defender].skillCastingIndicatorNameLabel.string = o, this.dataBlock[f.BattleTeamSide.Defender].skillCastingIndicatorIconSprite.node.setContentSize(64, 64), this.dataBlock[f.BattleTeamSide.Attacker].skillCastingIndicatorNode.active = !1, a.x = 1200, a.opacity = 255, cc.tween(a).to(.2, {
                                        x: n.skillIndicatorNodeOriginalX - 35
                                    }, {
                                        easing: "cubicOut"
                                    }).to(.08, {
                                        x: n.skillIndicatorNodeOriginalX
                                    }, {
                                        easing: "cubicIn"
                                    }).delay(.4).to(.1, {
                                        opacity: 0
                                    }, {
                                        easing: "cubicOut"
                                    }).call(function() {
                                        a.active = !1
                                    }).start()), [2]
                            }
                        })
                    })
                }, t.OffScreenBattleReplayStateEvent = function(e, t) {
                    n.offScreenReplayCallBack && n.offScreenReplayCallBack(e, t)
                }, t.ActorRootChildrenCount = function() {
                    for (var e = 0, t = h.default.maxTeamMembers; e < t; ++e) u.EZLog.Debug("Attacker" + e + "'s subNode : " + n.dataBlock[f.BattleTeamSide.Attacker].actorFrames[e].avatarRootNode.childrenCount), u.EZLog.Debug("Defender" + e + "'s subNode : " + n.dataBlock[f.BattleTeamSide.Defender].actorFrames[e].avatarRootNode.childrenCount)
                }, t.prototype.update = function(e) {
                    n.currentOnScreenBattleInstance && n.currentOnScreenBattleInstance.mapId > 0 && (n.ShowTotalDamageCalledByUpdate(), n.RefreshBossHUDCalledByUpdate(e))
                }, t.prototype.lateUpdate = function() {
                    n.battleFieldNode.sortAllChildren()
                }, t.AddTotalDMG = function(e) {
                    n.newSkillTotalDMG += e
                }, t.ClearTotalDMG = function() {
                    n.currentSkillTotalDMG = 0, n.newSkillTotalDMG = 0, n.FadeOutTotalDamage()
                }, t.PopUpTotalDamage = function() {
                    n.totalDMGBaseNode.cleanup(), n.totalDMGBaseNode.active = !0, n.totalDMGBaseNode.opacity = 255, n.totalDMGBaseNode.scale = .8, cc.tween(n.totalDMGBaseNode).to(.1, {
                        scale: 1.5
                    }, {
                        easing: "cubicOut"
                    }).to(.05, {
                        scale: 1
                    }, {
                        easing: "cubicIn"
                    }).start()
                }, t.FadeOutTotalDamage = function() {
                    n.totalDMGBaseNode.cleanup(), cc.tween(n.totalDMGBaseNode).to(.2, {
                        opacity: 0
                    }, {
                        easing: "cubicIn"
                    }).call(function() {
                        n.totalDMGBaseNode.active = !1
                    }).start()
                }, t.ShowTotalDamageCalledByUpdate = function() {
                    if (!(n.currentSkillTotalDMG >= n.newSkillTotalDMG))
                        if (n.currentSkillTotalDMG = n.newSkillTotalDMG, n.currentSkillTotalDMG <= 0) n.FadeOutTotalDamage();
                        else {
                            n.currentSkillTotalDMG > 0 && n.PopUpTotalDamage();
                            for (var e = 0, t = n.totalDMGDigitSprites.length; e < t; ++e) n.DisableDigitSprite(n.totalDMGDigitSprites[e]);
                            var o = 0,
                                r = n.skillTotalDMGDigitDimension.width + n.skillTotalDMGDigitGap,
                                i = 0,
                                a = Math.abs(n.currentSkillTotalDMG);
                            if (0 == a) n.EnableDigitSprite(n.totalDMGDigitSprites[0], n.mainAtlas.getSpriteFrame(n.skillTotalDMGDigitsSpriteNames[0]), n.skillTotalDMGDigitDimension, -o, 0), o += r, i = 1;
                            else
                                for (var s; a > 0;) s = Math.floor(a % 10), n.EnableDigitSprite(n.totalDMGDigitSprites[i], n.mainAtlas.getSpriteFrame(n.skillTotalDMGDigitsSpriteNames[s]), n.skillTotalDMGDigitDimension, -o, 0), o += r, a = Math.floor(a / 10), ++i;
                            var l = i * n.skillTotalDMGDigitDimension.width + (i - 1) * n.skillTotalDMGDigitGap;
                            n.totalDMGDigitsContainerNode.x = .5 * -(n.totalDMGDigitsBaseNode.width - l)
                        }
                }, t.EnableDigitSprite = function(e, t, n, o, r) {
                    e.node.active = !0, e.spriteFrame = t, e.node.setContentSize(n), e.node.setPosition(o, r)
                }, t.DisableDigitSprite = function(e) {
                    e.node.active = !1
                }, t.SetBossHUDHPBarCapacityArray = function(e) {
                    if (null == e || null == e || e.length <= 0) return u.EZLog.Error("ok BattlePlayerScreen.SetBossHUDHPBarCapacityArray... invalid array."), void(n.bossHUDHPBarCapacityArray = null);
                    n.bossHUDHPBarCapacityArray = e
                }, t.ToggleBossHUD = function(e, t, o) {
                    0 == n.bossHUDBaseNode.active && 1 == e && n.ResetBossHUD(0, 0, n.GetBossHUDHPCapacity(0)), n.bossHUDBaseNode.active = e, t && o && (n.bossHUDName.string = "Lv." + t.toString() + " " + o)
                }, t.AddBossHUDHPBar = function(e) {
                    n.bossHUDHPBarTargetValue += e, n.bossHUDHPBarTargetValue < 0 && (n.bossHUDHPBarTargetValue = 0)
                }, t.ResetBossHUD = function(e, t, o) {
                    n.bossHUDHPBarNewCounter = e, n.bossHUDCounterNumber.string = e.toString(), n.bossHUDHPBarTargetValue = t, o < 1 && (o = 1), n.bossHUDHPBarCapacity = o
                }, t.GetBossHUDHPCapacity = function(e) {
                    return null == n.bossHUDHPBarCapacityArray ? 999999999 : (e < 0 && (e = 0), e >= n.bossHUDHPBarCapacityArray.length && (e = n.bossHUDHPBarCapacityArray.length - 1), n.bossHUDHPBarCapacityArray[e])
                }, t.RefreshBossHUDCalledByUpdate = function(e) {
                    n.bossHUDHPBarCurrentCounter != n.bossHUDHPBarNewCounter && (n.bossHUDHPBarCurrentCounter = n.bossHUDHPBarNewCounter, n.bossHUDCounterNumber.string = n.bossHUDHPBarCurrentCounter.toString());
                    var t = n.bossHUDHPBarCurrentValue - n.bossHUDHPBarTargetValue;
                    if (!(Math.abs(t) < .001)) {
                        var o = t < 0 ? 1 : -1,
                            r = 3 * h.default.GetGlobalReplaySpeed() * e * o,
                            i = n.GetBossHUDHPCapacity(n.bossHUDHPBarCurrentCounter),
                            a = (n.bossHUDHPBarMaxWidth - n.bossHUDHPBarMask.width) / n.bossHUDHPBarMaxWidth,
                            s = a + r;
                        s < 0 ? (n.bossHUDHPBarCurrentValue -= i * a, n.bossHUDHPBarCurrentValue < n.bossHUDHPBarTargetValue && (n.bossHUDHPBarCurrentValue = n.bossHUDHPBarTargetValue), s = 1, n.bossHUDHPBarNewCounter--, n.bossHUDHPBarNewCounter < 0 && (s = 0, n.bossHUDHPBarNewCounter = 0)) : s > 1 ? (n.bossHUDHPBarCurrentValue += i * (1 - a), n.bossHUDHPBarCurrentValue > n.bossHUDHPBarTargetValue && (n.bossHUDHPBarCurrentValue = n.bossHUDHPBarTargetValue), s = 0, n.bossHUDHPBarNewCounter++, n.bossHUDHPBarNewCounter > 99 && (n.bossHUDHPBarNewCounter = 99)) : (n.bossHUDHPBarCurrentValue += i * r, n.bossHUDHPBarCurrentValue < n.bossHUDHPBarTargetValue && (n.bossHUDHPBarCurrentValue = n.bossHUDHPBarTargetValue), n.bossHUDHPBarCurrentValue > n.bossHUDHPBarTargetValue && (n.bossHUDHPBarCurrentValue = n.bossHUDHPBarTargetValue)), n.bossHUDHPBarMask.width = n.bossHUDHPBarMaxWidth * (1 - s)
                    }
                }, t.UpdateBuffAppearances = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, o, r, i, a;
                        return s(this, function(l) {
                            switch (l.label) {
                                case 0:
                                    t = Array.from(e.keys()), o = t.length, r = function(r) {
                                        var i, a, l;
                                        return s(this, function(s) {
                                            switch (s.label) {
                                                case 0:
                                                    return r < o ? (i = t[r], !(a = e.get(i)) || n.bossHUDBuffIndicators[r].buffId == i && n.bossHUDBuffIndicators[r].buffCount == a ? [3, 2] : (0 == n.bossHUDBuffIndicators[r].buffId && (n.bossHUDBuffIndicators[r].baseNode.active = !1), [4, n.LoadBuffIcon(i)])) : [3, 3];
                                                case 1:
                                                    if (!(l = s.sent())) return [2, "break"];
                                                    cc.tween(n.bossHUDBuffIndicators[r].baseNode).to(.1, {
                                                        scale: 0
                                                    }, {
                                                        easing: "cubicOut"
                                                    }).call(function() {
                                                        n.bossHUDBuffIndicators[r].baseNode.active = !0, n.bossHUDBuffIndicators[r].iconSprite.spriteFrame = l, n.bossHUDBuffIndicators[r].iconSprite.node.width = 50, n.bossHUDBuffIndicators[r].iconSprite.node.height = 50, n.bossHUDBuffIndicators[r].label.string = a.toString(), n.bossHUDBuffIndicators[r].buffCount = a, n.bossHUDBuffIndicators[r].buffId = i
                                                    }).to(.35, {
                                                        scale: 1
                                                    }, {
                                                        easing: "cubicOut"
                                                    }).start(), s.label = 2;
                                                case 2:
                                                    return [3, 4];
                                                case 3:
                                                    n.bossHUDBuffIndicators[r].baseNode.active && cc.tween(n.bossHUDBuffIndicators[r].baseNode).to(.05, {
                                                        scale: 0
                                                    }, {
                                                        easing: "cubicOut"
                                                    }).call(function() {
                                                        n.ResetBufferIndicator(r)
                                                    }).start(), s.label = 4;
                                                case 4:
                                                    return [2]
                                            }
                                        })
                                    }, i = 0, a = n.maxAvailbleBossHUDBuffIndicatorNumber, l.label = 1;
                                case 1:
                                    return i < a ? [5, r(i, a)] : [3, 4];
                                case 2:
                                    if ("break" === l.sent()) return [3, 4];
                                    l.label = 3;
                                case 3:
                                    return ++i, [3, 1];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.ResetAllBufferIndicators = function() {
                    for (var e = 0, t = n.maxAvailbleBossHUDBuffIndicatorNumber; e < t; ++e) n.ResetBufferIndicator(e)
                }, t.ResetBufferIndicator = function(e) {
                    n.bossHUDBuffIndicators[e].baseNode.cleanup(), n.bossHUDBuffIndicators[e].baseNode.active = !1, n.bossHUDBuffIndicators[e].buffCount = 0, n.bossHUDBuffIndicators[e].buffId = 0
                }, t.LoadBuffIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return l.EZLog.Debug("BattlePlayerScreen LoadBuffIcon buffDescId:" + e), n.bossHUDBuffIconAssets.has(e) ? [2, n.bossHUDBuffIconAssets.get(e)] : (t = v.default.GetBuffIconId(e), [4, c.AssetsManager.Instance.LoadAsset("BuffIcon/" + t.toString(), cc.SpriteFrame)]);
                                case 1:
                                    return o = r.sent(), l.EZLog.Debug("BattlePlayerScreen LoadBuffIcon buffDescId:" + e + " done."), n.bossHUDBuffIconAssets.set(e, o), [2, o]
                            }
                        })
                    })
                }, t.UnloadAllBuffIcons = function() {
                    n.bossHUDBuffIconAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    }), n.bossHUDBuffIconAssets.clear()
                }, t.mainAtlas = null, t.buffAtlas = null, t.multiLangAtlas = null, t.classNameString = "BattlePlayerScreen", t.screenPrefabPathName = "BattlePlayer/Private/BattlePlayerScreen", t.actorFramePrefabPathName = "BattlePlayer/Private/ActorFrame", t.mainAtlasPathName = "BattlePlayer/Atlas/battlePlayer", t.multiLangAtlasPathName = "Multilang/battlePlayer_MultiLang", t.buffAtlasPathName = "BattlePlayer/Atlas/battlePlayer_BUFF", t.battleFieldBgBundlePathName = "BattleBg/", t.avatarPreScale = .875, t.offScreenPositionOffset = 300, t.maxAvatarNodeLRUCacheCapacity = 20, t.maxAvailbleBossHUDBuffIndicatorNumber = 10, t.skillIndicatorNodeOriginalX = 0, t.battleInstanceStorage = new Map, t.dataBlock = [], t.initialized = !1, t.battleFieldBg = null, t.totalDMGBaseNode = null, t.totalDMGDigitsBaseNode = null, t.totalDMGDigitsContainerNode = null, t.totalDMGDigitSprites = [], t.bossHUDBaseNode = null, t.bossHUDName = null, t.bossHUDHPBar = null, t.bossHUDHPBarMask = null, t.bossHUDCounterNode = null, t.bossHUDCounterTitle = null, t.bossHUDCounterNumber = null, t.bossHUDBuffContainerNode = null, t.bossHUDBuffIndicators = [], t.bossHUDBuffIconAssets = new Map, t.PlayerSidePositionNodeNames = ["PlayerSide0", "PlayerSide1", "PlayerSide2", "PlayerSide3", "PlayerSide4", "PlayerSide5", "PlayerSide6", "PlayerSide7", "PlayerSide8", "PlayerSide9"], t.EnemySidePositionNodeNames = ["EnemySide0", "EnemySide1", "EnemySide2", "EnemySide3", "EnemySide4", "EnemySide5", "EnemySide6", "EnemySide7", "EnemySide8", "EnemySide9"], t.currentSkillTotalDMG = 0, t.newSkillTotalDMG = 0, t.skillTotalDMGDigitsSpriteNames = ["num_total_0", "num_total_1", "num_total_2", "num_total_3", "num_total_4", "num_total_5", "num_total_6", "num_total_7", "num_total_8", "num_total_9"], t.skillTotalDMGDigitDimension = new cc.Size(37, 45), t.skillTotalDMGDigitGap = -4, t.bossHUDHPBarCurrentCounter = 0, t.bossHUDHPBarNewCounter = 0, t.bossHUDHPBarCurrentValue = 0, t.bossHUDHPBarTargetValue = 0, t.bossHUDHPBarCapacity = 100, t.bossHUDHPBarMaxWidth = 760, t.bossHUDHPBarCapacityArray = null, n = i([S], t)
            }(cc.Component));
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/Auxiliary/LinkedList": "LinkedList",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/BattlePlayerCommonDefines": "BattlePlayerCommonDefines",
        "../Components/BattlePlayerFrame": "BattlePlayerFrame",
        "./ActorFrame": "ActorFrame",
        "./BattleInstance": "BattleInstance",
        "./BattleInstanceFake": "BattleInstanceFake",
        "./FlyingNumber": "FlyingNumber"
    }],
    BattlePlayer: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "578b2Lw71pFbaLaeEkKR3TZ", "BattlePlayer"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BattlePlayer = void 0;
        var o = e("../../../../Proto/Static/RpcProto"),
            r = e("../../../../Proto/Static/ConfigProto"),
            i = e("../../../Consts/Consts"),
            a = e("../../Components/Components"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("./BattleData"),
            c = e("./BattleManager"),
            u = function() {
                function e() {
                    this._CurrentDataIndex = 0, this._CurrentDataDuration = 0, this._CurrentDataPlayTime = 0, this._CurrentDataVerifyStage = !1, this._PendingStartDuration = 0, this._BattleData = null, this._ReportIndex = 0, this._FinalResult = 1, this.Report = null, this.HeroDatas = null, this.NewestRoundStartEvent = null, this.IsPause = !1, this.IsEnd = !1, this.IsStart = !1, this.IsFastForward = !1, this._IsPauseTime = !1, this._EntranceAniStartTime = 0
                }
                return Object.defineProperty(e.prototype, "BattleData", {
                    get: function() {
                        return this._BattleData
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "FinalResult", {
                    get: function() {
                        return this._FinalResult
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.prototype.Init = function(e, t) {
                    void 0 === t && (t = 0), this._ReportIndex = t, this._BattleData = e, this.Report = e.Reports[t], this.IsPause = !1, this.IsEnd = !1, this.IsStart = !1, this.HeroDatas = {}, this._FinalResult = i.BattleResult.Process;
                    for (var n = [], l = i.CampType.Attacker, c = 0; c < this.Report.Players.length; c++)
                        if (this.Report.Players[c].Uid == a.DataCenter.Instance.Uid) {
                            l = this.Report.Players[c].Camp;
                            break
                        } for (c = 0; c < this.Report.Heros.length; c++) {
                        if ((h = {}).HeroInfo = this.Report.Heros[c], h.HeroConfig = a.ConfigDataComponent.Instance.GetConfigById(r.HeroBase_Config, h.HeroInfo.HeroId), h.HpMax = h.HeroInfo.HpMax, h.Hp = h.HeroInfo.Hp, h.BlockedHpMax = h.HeroInfo.BlockedHpMax, h.IsDead = !1, h.UseBossHUD = h.HeroInfo.IsBoss > 0, h.ElementShield = h.HeroInfo.ElementShield, h.HeroInfo.PetId > 0 && (h.MpMax = h.HeroInfo.PetEnergyMax, h.Mp = h.HeroInfo.PetEnergy), h.HeroInfo.Camp == l) {
                            h.Camp = i.CampType.Attacker;
                            var u = [];
                            h.HeroConfig && (u = (p = s.default.Instance.GetHeroIdToAngelId(h.HeroConfig.Id)) > 0 ? s.default.GetAngelPersonalSkills(h.HeroInfo.HeroId, Math.abs(h.HeroInfo.Level), h.HeroInfo.StarLevel) : s.default.GetHeroSkills(h.HeroInfo.HeroId, Math.abs(h.HeroInfo.Level), h.HeroInfo.StarLevel)), u.length >= 1 ? h.Skill1 = {
                                SkillId: u[0].SkillId,
                                Active: u[0].Active,
                                IsReady: !1
                            } : h.Skill1 = {
                                SkillId: 0,
                                Active: !1,
                                IsReady: !1
                            }, u.length >= 3 ? h.Skill2 = {
                                SkillId: u[2].SkillId,
                                Active: u[2].Active,
                                IsReady: !1
                            } : h.Skill2 = {
                                SkillId: 0,
                                Active: !1,
                                IsReady: !1
                            }
                        } else h.Camp = i.CampType.Defender;
                        if (h.HeroConfig) {
                            n.push(h.HeroConfig.Model);
                            var p = s.default.Instance.GetHeroIdToAngelId(h.HeroConfig.Id);
                            h.HeroAngelId = p
                        } else h.HeroAngelId = 0;
                        this.HeroDatas[h.HeroInfo.Id] = h, this.VerifyBuffList(h.HeroInfo.Id, h.HeroInfo.BuffList)
                    }
                    for (var d in this.HeroDatas) {
                        var h;
                        if ((h = this.HeroDatas[d]).HeroInfo.Id < 0) {
                            var f = a.ConfigDataComponent.Instance.GetConfigById(r.AngelBase_Config, h.HeroInfo.HeroId);
                            if (f) {
                                var y = new o.UserAngel_Model;
                                y.AngelId = f.Id, y.SkinId = h.HeroInfo.SkinId, y.StarLevel = h.HeroInfo.StarLevel;
                                var g = s.default.Instance.GetAngelGodAvatarConfig(f.Id, y);
                                g && (h.SkillConfig = a.ConfigDataComponent.Instance.GetHeroSkillConfig(g.Model))
                            }
                            h.HeroInfo.StationId = -1
                        } else {
                            var m = a.ConfigDataComponent.Instance.GetConfigById(r.HeroBase_Config, h.HeroInfo.HeroId);
                            if (m)
                                if (h.HeroInfo.SkinId) {
                                    var I = a.ConfigDataComponent.Instance.GetConfigById(r.HeroSkin_Config, h.HeroInfo.SkinId);
                                    h.SkillConfig = a.ConfigDataComponent.Instance.GetHeroSkillConfig(I.Model)
                                } else h.SkillConfig = a.ConfigDataComponent.Instance.GetHeroSkillConfig(m.Model)
                        }
                    }
                }, e.prototype.StartPlay = function() {
                    this.IsStart || (this.IsStart = !0, this.IsEnd = !1, this._CurrentDataPlayTime = 0, this._CurrentDataVerifyStage = !1, this._IsPauseTime = !1, this._CurrentDataDuration = this.GetCurrentDataDuration(), this.ProcessReportDataEventCb && this.ProcessReportDataEventCb(this.Report.Data[this._CurrentDataIndex]))
                }, e.prototype.FastForward = function() {
                    this.IsFastForward = !0, this.StartPlay()
                }, e.prototype.ForceStop = function() {
                    this.IsEnd || (this.IsEnd = !0)
                }, e.prototype.Settle = function() {
                    this.IsEnd || (this.IsEnd = !0, this._FinalResult = this.Report.Result == i.BattleResult.AttackerWin ? i.BattleResult.AttackerWin : i.BattleResult.DefenderWin, c.BattleManager.Instance.StopBattle(this.BattleData.MapType, l.CloseBattleType.Settle))
                }, e.prototype.SettleAll = function() {
                    this.IsEnd || (this.IsEnd = !0, c.BattleManager.Instance.StopBattle(this.BattleData.MapType, l.CloseBattleType.SettleAll))
                }, e.prototype.Update = function(e) {
                    this.IsFastForward || (!this.IsStart && this._BattleData.InBackground && (this._PendingStartDuration += Math.floor(e * l.BattleData.BattlePlaySpeed * 1e3), this._PendingStartDuration >= 300 && this.StartPlay()), !this.IsStart || this.IsPause || this.IsEnd || (this._IsPauseTime || (this._CurrentDataPlayTime += Math.floor(e * l.BattleData.BattlePlaySpeed * 1e3)), this._Update()))
                }, e.prototype.FastForwardUpdate = function() {
                    this.IsFastForward && this.IsStart && !this.IsEnd && (this._IsPauseTime || (this._CurrentDataPlayTime += e.FastForwardInterval), this._Update())
                }, e.prototype.IsPauseTime = function(e) {
                    this._IsPauseTime = e
                }, e.prototype._Update = function() {
                    if (!(this._CurrentDataPlayTime < this._CurrentDataDuration))
                        if (this._CurrentDataPlayTime = 0, this._CurrentDataVerifyStage) {
                            if (this._CurrentDataIndex++, this._CurrentDataVerifyStage = !1, this._CurrentDataIndex >= this.Report.Data.length) return void this.Settle();
                            if (this.Report.Data[this._CurrentDataIndex].DataType == i.BattleReportDataType.BattleResult) return void this.Settle();
                            this._CurrentDataDuration = this.GetCurrentDataDuration(), this.ProcessReportDataEventCb && this.ProcessReportDataEventCb(this.Report.Data[this._CurrentDataIndex])
                        } else this._CurrentDataVerifyStage = !0, this._CurrentDataDuration = l.BattleData.ReportEventInterval, this.VerifyHeroData()
                }, e.prototype.GetSkillEvents = function(e, t) {
                    var n = a.ConfigDataComponent.Instance.GetConfigById(r.SkillBase_Config, t);
                    if (!n || n.ActionIndex < 1) return null;
                    switch (n.Type) {
                        case i.SkillType.NormalAttack:
                        case i.SkillType.BurstAttack:
                        case i.SkillType.Passive:
                        case i.SkillType.Angel:
                            return this.HeroDatas[e].SkillConfig.Skills[n.ActionIndex - 1];
                        default:
                            var o = a.ConfigDataComponent.Instance.GetHeroSkillConfig(n.CoreModel);
                            if (o) return o.Skills[n.ActionIndex - 1]
                    }
                    return null
                }, e.prototype.VerifyHeroData = function() {
                    var e = this.Report.Data[this._CurrentDataIndex];
                    if (e)
                        for (var t = 0, n = e.HeroStatus; t < n.length; t++) {
                            var o = n[t],
                                r = this.HeroDatas[o.Id];
                            r && (r.HpMax = o.HpMax, r.Hp = o.Hp, r.BlockedHpMax = o.BlockedHpMax, r.IsDead = o.IsDead, r.ElementShield = o.ElementShield, r.HeroInfo.PetId > 0 && (r.Mp = o.PetEnergy), this.VerifyBuffList(o.Id, o.BuffList), this.VerifyHeroStatusCb && this.VerifyHeroStatusCb(o.Id))
                        }
                }, e.prototype.VerifyBuffList = function(e, t) {
                    if (this.HeroDatas[e]) {
                        this.HeroDatas[e].BuffMap = {}, this.HeroDatas[e].SpEffectMap = {};
                        for (var n = 0; n < t.length; n++)
                            if (!(t[n].Count <= 0)) {
                                var o = t[n].BuffId;
                                if (!this.HeroDatas[e].BuffMap[o]) {
                                    var i = a.ConfigDataComponent.Instance.GetConfigById(r.BuffBase_Config, o),
                                        s = a.ConfigDataComponent.Instance.GetConfigById(r.BuffDescription_Config, i.DescriptionId);
                                    if (!s) continue;
                                    this.HeroDatas[e].BuffMap[o] = {
                                        BuffId: o,
                                        Count: 0,
                                        Config: i,
                                        Desc: s
                                    }
                                }
                                this.HeroDatas[e].BuffMap[o].Count += t[n].Count;
                                var l = this.HeroDatas[e].BuffMap[o].Desc.EffectType;
                                l > 1 && (this.HeroDatas[e].SpEffectMap[l] || (this.HeroDatas[e].SpEffectMap[l] = 0), this.HeroDatas[e].SpEffectMap[l]++)
                            }
                    }
                }, e.prototype.GetCurrentDataDuration = function() {
                    var e = this.Report.Data[this._CurrentDataIndex],
                        t = 0;
                    if (!e) return t;
                    if (e.HitPoints.length > 0 && e.HitPoints[e.HitPoints.length - 1].Events.length > 0 && (t += l.BattleData.ReportEventExtraDuration), e.DataType == i.BattleReportDataType.HeroAction) {
                        var n = this.GetSkillEvents(e.HeroId, e.SkillId);
                        n && (t += n.Duration), (a = this.HeroDatas[e.HeroId]).Camp == i.CampType.Attacker && (a.Skill1.SkillId == e.SkillId && (a.Skill1.IsReady = !1), a.Skill2.SkillId == e.SkillId && (a.Skill2.IsReady = !1))
                    } else if (e.DataType == i.BattleReportDataType.NewRound) {
                        this.NewestRoundStartEvent = e;
                        var o = !1;
                        for (var r in this.HeroDatas) {
                            var a;
                            if ((a = this.HeroDatas[r]).Camp == i.CampType.Attacker && (a.Skill1.IsReady = !1, a.Skill2.IsReady = !1, e.RoundSkills && e.RoundSkills[a.HeroInfo.Id])) {
                                var s = e.RoundSkills[a.HeroInfo.Id];
                                a.Skill1.SkillId == s && (a.Skill1.IsReady = !0), a.Skill2.SkillId == s && (a.Skill2.IsReady = !0)
                            }
                            a.HeroInfo.Id < 0 && a.HeroInfo.HeroId > 0 && (o = !0)
                        }
                        e.RoundBuffId > 0 && (t += 2 * l.BattleData.ReportEventExtraDuration), o && (t += 2e3)
                    }
                    return t
                }, Object.defineProperty(e.prototype, "CurrentDataPlayTime", {
                    get: function() {
                        return this._CurrentDataPlayTime
                    },
                    set: function(e) {
                        this._CurrentDataPlayTime = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "CurrentDataDuration", {
                    get: function() {
                        return this._CurrentDataDuration
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "CurrentDataIndex", {
                    get: function() {
                        return this._CurrentDataIndex
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "EntranceAniStartTime", {
                    get: function() {
                        return this._EntranceAniStartTime
                    },
                    set: function(e) {
                        this._EntranceAniStartTime = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.FastForwardInterval = Math.floor(1e3 / 30), e
            }();
        n.BattlePlayer = u, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "./BattleData": "BattleData",
        "./BattleManager": "BattleManager"
    }],
    BattlePowerChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "edc36XiI31E0KXJinGmIAtM", "BattlePowerChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BattlePowerType = void 0;
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Season = 1] = "Season"
        })(n.BattlePowerType || (n.BattlePowerType = {}));
        var p = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new a.UIPanelType(a.UINodeType.PopUp, !1, !1, !1, s.AssetUnloadMode.Resident), t.BattlePower = null, t.UpValue = null, t.CLOSE_DELAY = 1.6, t
            }
            return r(t, e), t.prototype.update = function() {
                this._timer += cc.director.getDeltaTime(), this._timer >= this.CLOSE_DELAY && (this._timer = 0, this.Close())
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._oldBP = t[0], this._currentBP = t[1]
            }, t.prototype.DisPlay = function(t) {
                var n = this;
                e.prototype.DisPlay.call(this, t);
                var o = this._currentBP - this._oldBP;
                o <= 0 && (this._bpTween && this._bpTween.stop(), this.Close()), this.BattlePower.string = this._currentBP.toString(), this._bpTween && this._bpTween.stop(), this._timer = 0, this._bpTween = cc.tween({
                    value: 0
                }).to(.5, {
                    value: o
                }, {
                    progress: function(e, t, o, r) {
                        n.isValid && (n.UpValue.string = "+" + Math.floor(e + (t - e) * r).toString())
                    }
                }).start()
            }, i([u(cc.Label)], t.prototype, "BattlePower", void 0), i([u(cc.Label)], t.prototype, "UpValue", void 0), i([c], t)
        }(a.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    BattlePreSkillEffectItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6dd8a7CLx9EeoZm2cHeudRL", "BattlePreSkillEffectItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MoveNode = null, t.HeroNode = null, t.MaskStartPos = cc.v3(-1672, -187, 0), t.MaskEndPos = cc.v3(1672, 709, 0), t.HeroStartPos = cc.v3(1730, 0, 0), t.HeroEndPos = cc.v3(-1730, 0, 0), t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._callback = t, cc.Tween.stopAllByTarget(this.MoveNode), cc.Tween.stopAllByTarget(this.HeroNode), this.HeroNode.destroyAllChildren();
                    var o = cc.instantiate(e);
                    o.setParent(this.HeroNode);
                    var r = a.default.Instance.GetHeroDefaultStarLevelSkinName(n.HeroInfo.HeroId, n.HeroInfo.StarLevel);
                    o.getComponent(sp.Skeleton).setSkin(r), this.HeroNode.setPosition(this.HeroStartPos), this.MoveNode.setPosition(this.MaskStartPos), this.SetTweenEffect()
                }, t.prototype.SetTweenEffect = function() {
                    var e = this;
                    cc.tween(this.MoveNode).to(.2, {
                        position: cc.v3(0, 260, 0)
                    }).delay(.5).to(.3, {
                        position: this.MaskEndPos
                    }).start(), cc.tween(this.HeroNode).to(.2, {
                        position: cc.v3(0, 260, 0)
                    }).delay(.5).to(.3, {
                        position: this.HeroEndPos
                    }).call(function() {
                        e._callback && e._callback()
                    }).start()
                }, i([c(cc.Node)], t.prototype, "MoveNode", void 0), i([c(cc.Node)], t.prototype, "HeroNode", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    BattleScenePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "60d94JdWAZForZ/Ce6TKwJ6", "BattleScenePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/RollingScreen"),
            s = e("../../../EZFramework/EZFramework"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Normal), t.SkyNode = null, t.RoadNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._skyRolling = this.SkyNode.getComponent(a.default), this._roadRolling = this.RoadNode.getComponent(a.default)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._skyRolling.Init(), this._skyRolling.StartRolling(), this._roadRolling.Init(), this._roadRolling.StartRolling()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this._skyRolling.Stop(), this._roadRolling.Stop()
                }, i([u(cc.Node)], t.prototype, "SkyNode", void 0), i([u(cc.Node)], t.prototype, "RoadNode", void 0), i([c], t)
            }(s.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/RollingScreen": "RollingScreen"
    }],
    BattleSkillSkeleton: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0ad830YcFhHFZURykO/LZP6", "BattleSkillSkeleton");
        var o = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            r = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            i = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = cc._decorator,
            c = l.ccclass,
            u = (l.property, function() {
                function e() {}
                var t;
                return t = e, e.Get = function(e) {
                    return r(this, void 0, void 0, function() {
                        var n, o, r;
                        return i(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return t.poolStorage.has(e) ? (n = t.poolStorage.get(e), (o = n.pool).size() > 0 ? [2, o.get()] : [3, 1]) : [3, 4];
                                case 1:
                                    return [4, t.InstantiateSkillSkeleton(n.prefabAsset)];
                                case 2:
                                    return [2, i.sent()];
                                case 3:
                                    return [3, 7];
                                case 4:
                                    return [4, a.AssetsManager.Instance.LoadAsset(e)];
                                case 5:
                                    return (r = i.sent()) || s.EZLog.Error("ok in BattleSkillSkeleton. loading " + e + " failed."), t.poolStorage.set(e, {
                                        prefabAsset: r,
                                        pool: new cc.NodePool
                                    }), [4, t.InstantiateSkillSkeleton(r)];
                                case 6:
                                    return [2, i.sent()];
                                case 7:
                                    return [2]
                            }
                        })
                    })
                }, e.Put = function(e, n) {
                    t.poolStorage.get(e).pool.put(n)
                }, e.InstantiateSkillSkeleton = function(e) {
                    return r(this, void 0, void 0, function() {
                        return i(this, function() {
                            return [2, cc.instantiate(e)]
                        })
                    })
                }, e.UnLoadAll = function() {
                    t.poolStorage.forEach(function(e) {
                        e.pool.clear(), a.AssetsManager.Instance.UnloadAsset(e.prefabAsset)
                    }), t.poolStorage.clear()
                }, e.UnLoad = function(e) {
                    if (t.poolStorage.has(e)) {
                        var n = t.poolStorage.get(e);
                        n.pool.clear(), a.AssetsManager.Instance.UnloadAsset(n.prefabAsset), t.poolStorage.delete(e)
                    }
                }, e.classNameString = "BattleSkillSkeleton", e.poolStorage = new Map, t = o([c], e)
            }());
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    BattleStatisticsItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b8ef6EAne9IWL1/Qr697DkB", "BattleStatisticsItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = e("../Components/ItemClickComponent"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../Components/CustomProgressBar"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BgNode = null, t.ItemContainer = null, t.DamageProgress = null, t.DamageValue = null, t.CureProgress = null, t.CureValue = null, t.BeHitProgress = null, t.BeHitValue = null, t._personalityStarLevel = 0, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                    this._itemPrefab = e, this._heroInfo = t, this._dataValue = n, this._personalityStarLevel = o, this.BgNode.active = (r + 1) % 2 == 0, this.ConfigHeroInfo(), this.ConfigDamageInfo(), this.ConfigCureInfo(), this.ConfigBeHitInfo()
                }, t.prototype.ConfigHeroInfo = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), e.getComponent(s.default).enabled = !1, this._itemComponent = e.getComponent(a.ItemComponent)
                    }
                    var t = l.default.Instance.GetHeroIdToAngelId(this._heroInfo.HeroId);
                    t > 0 ? this._itemComponent.Init({
                        ItemId: t,
                        Level: this._heroInfo.Level,
                        StarLevel: this._heroInfo.StarLevel,
                        SkinId: this._heroInfo.SkinId
                    }, a.ItemComponentType.Angel) : (this._itemComponent.Init({
                        ItemId: this._heroInfo.HeroId,
                        Level: this._heroInfo.Level,
                        StarLevel: this._heroInfo.StarLevel,
                        SkinId: this._heroInfo.SkinId
                    }, a.ItemComponentType.HeroInfo), this._itemComponent.SetPersonalityParam(!1, this._personalityStarLevel))
                }, t.prototype.ConfigDamageInfo = function() {
                    var e;
                    this.DamageValue.string = this._heroInfo.StatDamage.FmtCurrency(), this.DamageProgress.progress = 0;
                    var t = this._dataValue[0];
                    e = t > 0 ? this._heroInfo.StatDamage / t : 0, this._damageTween = cc.tween(this.DamageProgress).delay(.2).to(.8, {
                        progress: e
                    }, {
                        easing: "quadOut"
                    }), this._damageTween.stop(), this._damageTween.start()
                }, t.prototype.ConfigCureInfo = function() {
                    var e;
                    this.CureValue.string = this._heroInfo.StatCure.FmtCurrency(), this.CureProgress.progress = 0;
                    var t = this._dataValue[1];
                    e = t > 0 ? this._heroInfo.StatCure / t : 0, this._cureTween = cc.tween(this.CureProgress).delay(.2).to(.8, {
                        progress: e
                    }, {
                        easing: "quadOut"
                    }), this._cureTween.stop(), this._cureTween.start()
                }, t.prototype.ConfigBeHitInfo = function() {
                    var e;
                    this.BeHitValue.string = this._heroInfo.StatHurt.FmtCurrency(), this.BeHitProgress.progress = 0;
                    var t = this._dataValue[2];
                    e = t > 0 ? this._heroInfo.StatHurt / t : 0, this._beHitTween = cc.tween(this.BeHitProgress).delay(.2).to(.8, {
                        progress: e
                    }, {
                        easing: "quadOut"
                    }), this._beHitTween.stop(), this._beHitTween.start()
                }, i([d(cc.Node)], t.prototype, "BgNode", void 0), i([d(cc.Node)], t.prototype, "ItemContainer", void 0), i([d(c.default)], t.prototype, "DamageProgress", void 0), i([d(cc.Label)], t.prototype, "DamageValue", void 0), i([d(c.default)], t.prototype, "CureProgress", void 0), i([d(cc.Label)], t.prototype, "CureValue", void 0), i([d(c.default)], t.prototype, "BeHitProgress", void 0), i([d(cc.Label)], t.prototype, "BeHitValue", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    BattleStatisticsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2a559fdWwhCQYafrtNCYK9Z", "BattleStatisticsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/CustomToggle"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./BattleStatisticsItem"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("./TrialHeroPanel"),
            I = e("./ActivitySinglePageGiftPanel"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.AttackUserName = null, t.AttackResult = null, t.AttackHeroTag = null, t.AttackDamageTag = null, t.AttackCureTag = null, t.AttackBeHitTag = null, t.AttackHeroesLayout = null, t.DefenseUserName = null, t.DefenseResult = null, t.DefenseHeroTag = null, t.DefenseDamageTag = null, t.DefenseCureTag = null, t.DefenseBeHitTag = null, t.DefenseHeroesLayout = null, t.ButtonContainer = null, t.Toggles = [], t.ScrollView = null, t.ToggleParent = null, t.LeftArrowNode = null, t.RightArrowNode = null, t._attackerUid = 0, t._defenserUid = 0, t._myCamp = 1, t._attackData = null, t._defenseData = null, t._toggleNodes = [], t._PosX = 375, t._result = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("BattleStatisticsPanel/BattleStatisticsItem"), n = this.LoadDynamicAsset(f.BundlePath.ItemComponent), o = this.LoadDynamicAsset("Buttons/Toggle1"), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._statisticsItemPrefab = e[0], r._itemPrefab = e[1], r._togglePrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttackHeroTag.string = "tag_hero".ToUILocale(), this.AttackDamageTag.string = "tag_damage".ToUILocale(), this.AttackCureTag.string = "tag_cure".ToUILocale(), this.AttackBeHitTag.string = "tag_hurt".ToUILocale(), this.DefenseHeroTag.string = "tag_hero".ToUILocale(), this.DefenseDamageTag.string = "tag_damage".ToUILocale(), this.DefenseCureTag.string = "tag_cure".ToUILocale(), this.DefenseBeHitTag.string = "tag_hurt".ToUILocale();
                    for (var t = 0; t < this.Toggles.length; t++) {
                        var n = this.Toggles[t];
                        n.node.on("toggle", this.OnSwitchTab, this), n.Init("battle_round".ToUILocale().Fmt(t + 1))
                    }
                    this.LeftArrowNode.active = !1, this.RightArrowNode.active = !1
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._battleReports = t[0], t[1] && (this._result = t[1])
                }, t.prototype.ResetPanelState = function() {
                    this._teamIndex = 0
                }, t.prototype.update = function(e) {
                    Math.round(Math.abs(this.ScrollView.getScrollOffset().x)) >= this.ScrollView.getMaxScrollOffset().x ? this.RightArrowNode.active = !1 : (this.RightArrowNode.active = !0, this.RightArrowNode.x += 40 * e, this.RightArrowNode.x > this._PosX + 20 && (this.RightArrowNode.x = this._PosX)), Math.round(this.ScrollView.getScrollOffset().x) >= 0 ? this.LeftArrowNode.active = !1 : (this.LeftArrowNode.active = !0, this.LeftArrowNode.x -= 40 * e, this.LeftArrowNode.x < -this._PosX - 20 && (this.LeftArrowNode.x = -this._PosX))
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigReportData(), this.ConfigToggles(), this.RefreshPanelInfo()
                }, t.prototype.InitNodes = function() {
                    this._toggleNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.ConfigReportData = function() {
                    var e = this;
                    this._attackHeroes = [], this._defenseHeroes = [], this._maxDamage = [], this._maxCure = [], this._maxHurt = [], this._battleResults = [];
                    for (var t = 0; t < this._battleReports.length; t++) {
                        var n = this._battleReports[t];
                        this._attackHeroes[t] = [], this._defenseHeroes[t] = [], this._battleResults.push(n.Result);
                        var o = n.Heros;
                        n.Players.findIndex(function(e) {
                            return e.Uid == u.DataCenter.Instance.Uid
                        }) > -1 ? n.Players.forEach(function(t) {
                            t.Uid == u.DataCenter.Instance.Uid ? (e._attackerUid = t.Uid, e._attackerZone = t.Zone || 0, e._myCamp = t.Camp) : (e._defenserUid = t.Uid, e._defenserZone = t.Zone || 0)
                        }) : n.Players.forEach(function(t) {
                            t.Camp == d.CampType.Attacker ? (e._attackerUid = t.Uid, e._attackerZone = t.Zone || 0, e._myCamp = t.Camp) : (e._defenserUid = t.Uid, e._defenserZone = t.Zone || 0)
                        }), o.sort(this.SortHeroByDamage.bind(this));
                        for (var r = 0; r < o.length; r++) {
                            var i = o[r];
                            if (i.Id >= 0) {
                                i.Camp == this._myCamp ? this._attackHeroes[t].push(i) : this._defenseHeroes[t].push(i);
                                var a = this._maxDamage[t];
                                (!a || i.StatDamage > a) && (this._maxDamage[t] = i.StatDamage);
                                var s = this._maxCure[t];
                                (!s || i.StatCure > s) && (this._maxCure[t] = i.StatCure);
                                var l = this._maxHurt[t];
                                (!l || i.StatHurt > l) && (this._maxHurt[t] = i.StatHurt)
                            }
                        }
                    }
                }, t.prototype.SortHeroByDamage = function(e, t) {
                    return e.StatDamage < t.StatDamage ? 1 : e.StatDamage > t.StatDamage ? -1 : e.StatHurt < t.StatHurt ? 1 : e.StatHurt > t.StatHurt ? -1 : e.StatCure < t.StatCure ? 1 : e.StatCure > -t.StatCure ? 1 : 0
                }, t.prototype.ConfigToggles = function() {
                    this.InitNodes();
                    var e = this._battleReports.length;
                    if (e > 1)
                        if (this.ButtonContainer.active = e > 1 && e <= 3, this.ScrollView.node.active = e > 3, e > 3)
                            for (var t = 0; t < e; t++) {
                                this._toggleNodes[t] || ((o = cc.instantiate(this._togglePrefab)).width = 204, o.height = 97, o.parent = this.ToggleParent, o.name = t.toString(), this._toggleNodes[t] = o, this._toggleNodes[t].on("toggle", this.OnSwitchTab, this)), this._toggleNodes[t].active = !0;
                                var n = this._toggleNodes[t].getComponent(h.default);
                                n.Init("battle_round".ToUILocale().Fmt(t + 1)), n.isChecked = this._teamIndex == t
                            } else
                                for (t = 0; t < this.Toggles.length; t++) {
                                    var o;
                                    (o = this.Toggles[t].node).active = t < e
                                } else this.ScrollView.node.active = !1, this.ButtonContainer.active = !1
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.name);
                    t != this._teamIndex && (this._teamIndex = t, this.RefreshPanelInfo())
                }, t.prototype.RefreshPanelInfo = function() {
                    this.ConfigUserInfo(), this.ConfigAttackHeroes(), this.ConfigDefenseHeroes()
                }, t.prototype.ConfigUserInfo = function() {
                    for (var e = this._battleReports[this._teamIndex].Players, t = this._battleResults[this._teamIndex], n = 0; n < e.length; n++) {
                        var o = e[n],
                            r = void 0;
                        switch (o.Camp) {
                            case this._myCamp:
                                if (this.AttackUserName.string = o.RoleName, null == this._result) switch (t) {
                                    case d.BattleResult.AttackerWin:
                                        r = o.Camp == d.CampType.Attacker;
                                        break;
                                    case d.BattleResult.DefenderWin:
                                        r = o.Camp == d.CampType.Defender;
                                        break;
                                    case d.BattleResult.Timeout:
                                        r = o.Camp != d.CampType.Attacker;
                                        break;
                                    case d.BattleResult.DefenderWin:
                                        r = o.Camp == d.CampType.Defender
                                } else r = 1 == this._result;
                                this.AttackResult.spriteFrame = r ? g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Win") : g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Lose");
                                break;
                            default:
                                if (this.DefenseUserName.string = o.RoleName, null == this._result) switch (t) {
                                    case d.BattleResult.AttackerWin:
                                        r = o.Camp == d.CampType.Attacker;
                                        break;
                                    case d.BattleResult.DefenderWin:
                                        r = o.Camp == d.CampType.Defender;
                                        break;
                                    case d.BattleResult.Timeout:
                                        r = o.Camp != d.CampType.Attacker
                                } else r = 1 != this._result;
                                this.DefenseResult.spriteFrame = r ? g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Win") : g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Lose")
                        }
                    }
                }, t.prototype.ConfigAttackHeroes = function() {
                    if (this._attackerUid != u.DataCenter.Instance.Uid)
                        if (this._attackerUid > 0)
                            if (this._attackData) this.SetAttackHeroes(!1, !1);
                            else {
                                var e = new c.Req_Player_GetPlayerDetailInfo;
                                e.Uid = this._attackerUid, e.Zone = this._attackerZone, u.RpcComponent.Instance.Call(e, this.RequestAttackPlayer.bind(this))
                            }
                    else this.SetAttackHeroes(!1, !0);
                    else this.SetAttackHeroes(!0, !1)
                }, t.prototype.RequestAttackPlayer = function(e) {
                    this._attackData = e.Info.HeroPersonality, this.SetAttackHeroes(!1, !1)
                }, t.prototype.SetAttackHeroes = function(e, t) {
                    for (var n = this._attackHeroes[this._teamIndex], o = [this._maxDamage[this._teamIndex], this._maxCure[this._teamIndex], this._maxHurt[this._teamIndex]], r = 0; r < n.length; r++) {
                        var i = 0;
                        if (t) i = 0;
                        else if (e) {
                            var a = u.DataCenter.Instance.GetDataById(c.HeroInfo_Model, n[r].HeroId);
                            if (!a) {
                                var s = u.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, this._battleReports[0].MapId);
                                if (s.Type >= d.MapType.ActivityHeroTry && s.Type <= d.MapType.ActivityHeroTry10) {
                                    var l = u.DataCenter.Instance.GetTempData(m.default.TEMP_MAPTYPE_HEROSID + s.Type);
                                    a = u.DataCenter.Instance.GetTempData(m.default.TEMP_TRIALHERO_INFO + l)
                                } else if (s.Type >= d.MapType.ActivitySkinTry && s.Type <= d.MapType.ActivitySkinTry4) {
                                    var h = u.DataCenter.Instance.GetTempData(I.default.TEMP_MAPTYPE_SKINID + s.Type),
                                        f = u.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, h);
                                    a = u.DataCenter.Instance.GetTempData(I.default.TEMP_SKIN_TRIALHERO_INFO + -f.HeroId)
                                }
                            }
                            i = a && a.PersonalityStar ? a.PersonalityStar : 0
                        } else this._attackData && (i = this._attackData[n[r].HeroId.toString()] || 0);
                        var g = this.AttackHeroesLayout.children[r];
                        g || (g = cc.instantiate(this._statisticsItemPrefab)).setParent(this.AttackHeroesLayout), g.active = !0, g.getComponent(y.default).Init(this._itemPrefab, n[r], o, i, r)
                    }
                    for (r = n.length; r < this.AttackHeroesLayout.childrenCount; r++) this.AttackHeroesLayout.children[r].active = !1
                }, t.prototype.ConfigDefenseHeroes = function() {
                    if (this._defenserUid != u.DataCenter.Instance.Uid)
                        if (this._defenserUid > 0)
                            if (this._defenseData) this.SetDefenseHeroes(!1, !1);
                            else {
                                var e = new c.Req_Player_GetPlayerDetailInfo;
                                e.Uid = this._defenserUid, e.Zone = this._defenserZone, u.RpcComponent.Instance.Call(e, this.RequestDefensePlayer.bind(this))
                            }
                    else this.SetDefenseHeroes(!1, !0);
                    else this.SetDefenseHeroes(!0, !1)
                }, t.prototype.RequestDefensePlayer = function(e) {
                    this._defenseData = e.Info.HeroPersonality, this.SetDefenseHeroes(!1, !1)
                }, t.prototype.SetDefenseHeroes = function(e, t) {
                    for (var n = this._defenseHeroes[this._teamIndex], o = [this._maxDamage[this._teamIndex], this._maxCure[this._teamIndex], this._maxHurt[this._teamIndex]], r = 0; r < n.length; r++) {
                        var i = 0;
                        t ? i = 0 : e ? i = u.DataCenter.Instance.GetDataById(c.HeroInfo_Model, n[r].HeroId).PersonalityStar || 0 : this._defenseData && (i = this._defenseData[n[r].HeroId.toString()] || 0);
                        var a = this.DefenseHeroesLayout.children[r];
                        a || (a = cc.instantiate(this._statisticsItemPrefab)).setParent(this.DefenseHeroesLayout), a.active = !0, a.getComponent(y.default).Init(this._itemPrefab, n[r], o, i, r)
                    }
                    for (r = n.length; r < this.DefenseHeroesLayout.childrenCount; r++) this.DefenseHeroesLayout.children[r].active = !1
                }, i([v(cc.Label)], t.prototype, "AttackUserName", void 0), i([v(cc.Sprite)], t.prototype, "AttackResult", void 0), i([v(cc.Label)], t.prototype, "AttackHeroTag", void 0), i([v(cc.Label)], t.prototype, "AttackDamageTag", void 0), i([v(cc.Label)], t.prototype, "AttackCureTag", void 0), i([v(cc.Label)], t.prototype, "AttackBeHitTag", void 0), i([v(cc.Node)], t.prototype, "AttackHeroesLayout", void 0), i([v(cc.Label)], t.prototype, "DefenseUserName", void 0), i([v(cc.Sprite)], t.prototype, "DefenseResult", void 0), i([v(cc.Label)], t.prototype, "DefenseHeroTag", void 0), i([v(cc.Label)], t.prototype, "DefenseDamageTag", void 0), i([v(cc.Label)], t.prototype, "DefenseCureTag", void 0), i([v(cc.Label)], t.prototype, "DefenseBeHitTag", void 0), i([v(cc.Node)], t.prototype, "DefenseHeroesLayout", void 0), i([v(cc.Node)], t.prototype, "ButtonContainer", void 0), i([v(h.default)], t.prototype, "Toggles", void 0), i([v(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([v(cc.Node)], t.prototype, "ToggleParent", void 0), i([v(cc.Node)], t.prototype, "LeftArrowNode", void 0), i([v(cc.Node)], t.prototype, "RightArrowNode", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "./ActivitySinglePageGiftPanel": "ActivitySinglePageGiftPanel",
        "./BattleStatisticsItem": "BattleStatisticsItem",
        "./TrialHeroPanel": "TrialHeroPanel"
    }],
    BattleTween: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "152b5iA72dEV66HqROVKknV", "BattleTween"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BattleTweenAction = n.BattleTween = void 0;
        var o = function() {
            function e() {
                this._CurrentIndex = 0, this._TweenActions = null, this._ActionPool = null
            }
            return e.prototype.Init = function() {
                this._CurrentIndex = 0, this._TweenActions = {}, this._ActionPool = []
            }, e.prototype.Dispose = function() {
                if (this._TweenActions) {
                    for (var e in this._TweenActions) this._TweenActions[e].Stop();
                    this._TweenActions = null, this._ActionPool = null
                }
            }, e.prototype.Update = function(e) {
                if (this._TweenActions)
                    for (var t in this._TweenActions) this._TweenActions[t].Update(e)
            }, e.prototype.Tween = function(e) {
                void 0 === e && (e = null);
                var t = ++this._CurrentIndex,
                    n = null;
                return this._ActionPool.length > 0 ? (n = this._ActionPool.pop()).Init(t, this, e) : (n = new r).Init(t, this, e), this._TweenActions[t] = n, n
            }, e.prototype.RemoveAction = function(e) {
                if (this._TweenActions[e]) {
                    var t = this._TweenActions[e];
                    delete this._TweenActions[e], this._ActionPool.push(t)
                }
            }, e.prototype.ClearTargetTweens = function(e) {
                if (this._TweenActions)
                    for (var t in this._TweenActions) this._TweenActions[t].Target && this._TweenActions[t].Target == e && this._TweenActions[t].Stop()
            }, e
        }();
        n.BattleTween = o;
        var r = function() {
            function e() {
                this._Id = 0, this._Container = null, this._Target = null, this._IsPause = !0, this._EndCallback = null, this._EndCallbackTarget = null, this._TodoItems = null, this._CurrentItem = null, this._PlayTime = 0
            }
            return Object.defineProperty(e.prototype, "Target", {
                get: function() {
                    return this._Target
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.Init = function(e, t, n) {
                void 0 === n && (n = null), this._Id = e, this._Container = t, this._Target = n, this._IsPause = !0, this._TodoItems = [], this._CurrentItem = null, this._PlayTime = 0
            }, e.prototype.Start = function() {
                return this._PlayTime = 0, this._IsPause = !1, this._CurrentItem = null, this.NextItem(), this
            }, e.prototype.Stop = function() {
                if (this._EndCallback && (this._EndCallback.apply(this._EndCallbackTarget), this._EndCallback = null), !(this._Id <= 0)) {
                    var e = this._Id,
                        t = this._Container;
                    return this._IsPause = !0, this._Id = 0, this._Container = null, this._EndCallbackTarget = null, this._CurrentItem = null, this._TodoItems = null, t.RemoveAction(e), this
                }
            }, e.prototype.OnEnd = function(e, t) {
                if (void 0 === t && (t = null), !(this._Id <= 0)) return this._EndCallback = e, this._EndCallbackTarget = t, this
            }, e.prototype.To = function(e, t, n) {
                if (void 0 === n && (n = null), !(this._Id <= 0) && this._Target) {
                    var o = {
                        Duration: e,
                        EndState: t
                    };
                    return n && n.Easing && (o.Easing = n.Easing), this._TodoItems.push(o), this
                }
            }, e.prototype.By = function(e, t, n) {
                if (void 0 === n && (n = null), !(this._Id <= 0) && this._Target) {
                    var o = {
                        Duration: e,
                        Props: t
                    };
                    return n && n.Easing && (o.Easing = n.Easing), this._TodoItems.push(o), this
                }
            }, e.prototype.CustomChange = function(e, t, n) {
                if (void 0 === n && (n = null), !(this._Id <= 0)) {
                    var o = {
                        Duration: e,
                        ProgressCb: t
                    };
                    return n && n.Easing && (o.Easing = n.Easing), this._TodoItems.push(o), this
                }
            }, e.prototype.Call = function(e, t) {
                if (void 0 === t && (t = null), !(this._Id <= 0)) {
                    var n = {
                        Duration: 0,
                        ItemCb: e,
                        ItemCbTarget: t
                    };
                    return this._TodoItems.push(n), this
                }
            }, e.prototype.Delay = function(e) {
                if (!(this._Id <= 0)) {
                    var t = {
                        Duration: e
                    };
                    return this._TodoItems.push(t), this
                }
            }, e.prototype.Update = function(e) {
                if (!(this._Id <= 0 || this._IsPause) && this._CurrentItem && !(this._CurrentItem.Duration <= 0)) {
                    if (this._PlayTime += e, this._PlayTime >= this._CurrentItem.Duration) return this.OnItemEnd(), void this.NextItem();
                    var t = this._PlayTime / this._CurrentItem.Duration;
                    if (this._CurrentItem.Easing && (t = this._CurrentItem.Easing.easing(t)), this._Target && this._CurrentItem.Props)
                        for (var n in this._CurrentItem.Props) this._CurrentItem.Props[n] instanceof cc.Vec3 ? this._Target[n] = cc.v3(this._CurrentItem.InitialState[n].x + this._CurrentItem.Props[n].x * t, this._CurrentItem.InitialState[n].y + this._CurrentItem.Props[n].y * t, this._CurrentItem.InitialState[n].z + this._CurrentItem.Props[n].z * t) : this._Target[n] = this._CurrentItem.InitialState[n] + this._CurrentItem.Props[n] * t;
                    else this._CurrentItem.ProgressCb && this._CurrentItem.ProgressCb(t)
                }
            }, e.prototype.OnItemEnd = function() {
                if (this._CurrentItem)
                    if (this._Target && this._CurrentItem.EndState)
                        for (var e in this._CurrentItem.EndState) this._Target[e] = this._CurrentItem.EndState[e];
                    else this._CurrentItem.ProgressCb ? this._CurrentItem.ProgressCb(1) : this._CurrentItem.ItemCb && this._CurrentItem.ItemCb.apply(this._CurrentItem.ItemCbTarget)
            }, e.prototype.NextItem = function() {
                if (!(this._Id <= 0))
                    if (0 != this._TodoItems.length) {
                        if (this._CurrentItem = this._TodoItems.shift(), this._PlayTime = 0, this._Target && this._CurrentItem.EndState)
                            for (var e in this._CurrentItem.InitialState = {}, this._CurrentItem.Props = {}, this._CurrentItem.EndState) this._CurrentItem.EndState[e] instanceof cc.Vec3 ? (this._CurrentItem.InitialState[e] = this._Target[e] || cc.v3(0, 0, 0), this._CurrentItem.Props[e] = cc.v3(this._CurrentItem.EndState[e].x - this._CurrentItem.InitialState[e].x, this._CurrentItem.EndState[e].y - this._CurrentItem.InitialState[e].y, this._CurrentItem.EndState[e].z - this._CurrentItem.InitialState[e].z)) : (this._CurrentItem.InitialState[e] = this._Target[e] || 0, this._CurrentItem.Props[e] = this._CurrentItem.EndState[e] - this._CurrentItem.InitialState[e]);
                        else if (this._Target && this._CurrentItem.Props)
                            for (var e in this._CurrentItem.InitialState = {}, this._CurrentItem.EndState = {}, this._CurrentItem.Props) this._CurrentItem.Props[e] instanceof cc.Vec3 ? (this._CurrentItem.InitialState[e] = this._Target[e] || cc.v3(0, 0, 0), this._CurrentItem.EndState[e] = cc.v3(this._CurrentItem.Props[e].x + this._CurrentItem.InitialState[e].x, this._CurrentItem.Props[e].y + this._CurrentItem.InitialState[e].y, this._CurrentItem.Props[e].z + this._CurrentItem.InitialState[e].z)) : (this._CurrentItem.InitialState[e] = this._Target[e] || 0, this._CurrentItem.EndState[e] = this._CurrentItem.Props[e] + this._CurrentItem.InitialState[e]);
                        this._CurrentItem.Duration <= 0 && (this.OnItemEnd(), this.NextItem())
                    } else this.Stop()
            }, e
        }();
        n.BattleTweenAction = r, cc._RF.pop()
    }, {}],
    BattleViewPort: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7646cCxzD1Mbq+uRqm93M4w", "BattleViewPort");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BattleField = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../../Util/index"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/ElementEffectItem"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/Components"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../Components/LevelComponent"),
            b = e("../Components/CustomProgressBar"),
            S = e("../../Auxiliary/HeroSkillSound"),
            w = e("./BattleData"),
            P = e("./BattleActor"),
            A = e("./Misc/BattleTween"),
            T = e("../../../ShareBattle/BattleHelper"),
            R = e("./Misc/BattleFloatText"),
            L = e("../../../EZFramework/EZFramework"),
            k = e("../Components/ItemComponent"),
            O = e("./Misc/BattlePreSkillEffectItem"),
            M = cc._decorator,
            D = M.ccclass,
            B = M.property;
        (function(e) {
            e[e.Locked = 0] = "Locked", e[e.CountingDown = 1] = "CountingDown", e[e.Casting = 2] = "Casting"
        })(l || (l = {}));
        var N = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.BattleRoot = null, t.Bg = null, t.BgMask = null, t.BattleFieldNode = null, t.CharacterSlotPrefab = null, t.SlotContainer = null, t.TopPanelNode = null, t.PetInfoNodePrefab = null, t.StarLevelPrefab = null, t._IsIdle = !0, t._IsReady = !1, t._BattlePlayer = null, t._BattlePanel = null, t._BattlePlaySpeed = 1, t._MaxRound = 0, t._BattleFiled = null, t._TopPanel = null, t._CharacterSlots = null, t.PetPictureMap = null, t.AngelPictureMap = null, t._HeroIdToCharacterSlotId = null, t._DynamicAssets = null, t.TweenManager = null, t.RoundBuffLocaleKey = null, t._Id = 0, t._CompleteActionFlag = [], t.TargetSelector = null, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "Id", {
                get: function() {
                    return this._Id
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "BattlePlayer", {
                get: function() {
                    return this._BattlePlayer
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "BattlePlaySpeed", {
                get: function() {
                    return this._BattlePlaySpeed
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.update = function(e) {
                if (!(this._BattlePlaySpeed <= 0)) {
                    var t = e * this._BattlePlaySpeed;
                    this.TweenManager && this.TweenManager.Update(t), this._BattleFiled && this._BattleFiled.Update(t), this.UpdateManualBattle(t)
                }
            }, t.prototype.InitOnce = function() {
                this._IsReady || (this._IsReady = !0, this.Bg.node.height = w.BattleData.BattleBgHeight, this.BgMask.height = w.BattleData.BattleBgHeight, this.Bg.node.scale = 1.01, this.TweenManager = new A.BattleTween, this._BattleFiled = new x(this, this.BattleFieldNode), this._TopPanel = new E(this, this.TopPanelNode), this._TopPanel.InitUI(), this._CharacterSlots = [])
            }, t.prototype.Init = function(e, t, n) {
                this.InitOnce(), this._IsIdle && (this._IsIdle = !1, this._Id = w.BattleData.GetBattleIndex(), this._BattlePlayer = e, this._BattlePanel = n, this._BattlePlaySpeed = w.BattleData.BattlePlaySpeed, this._DynamicAssets = [], this.TweenManager.Init(), this._BattleFiled.SetBossHUDHPBarCapacityArray(e), e.ProcessReportDataEventCb = this.ProcessReportDataEvent.bind(this), e.VerifyHeroStatusCb = this.VerifyHeroStatus.bind(this), this.UpdateUI(), this.Bg.spriteFrame = t, this.InitManualBattle(), this.ProcessRoundStart(e.NewestRoundStartEvent))
            }, t.prototype.Dispose = function() {
                this._IsIdle = !0, this._Id = 0, this._BattlePlayer && (this._BattlePlayer.ProcessReportDataEventCb = null, this._BattlePlayer.VerifyHeroStatusCb = null), this.TweenManager.Dispose(), this._BattleFiled.UnloadBattleField();
                for (var e = 0; e < this._CharacterSlots.length; e++) this._CharacterSlots[e].Reset();
                if (this.PetPictureMap = null, this.AngelPictureMap = null, this._DynamicAssets) {
                    for (e = 0; e < this._DynamicAssets.length; e++) c.AssetsManager.Instance.UnloadAsset(this._DynamicAssets[e]);
                    this._DynamicAssets = null
                }
            }, t.prototype.ChangeBattlePlaySpeed = function(e) {
                this._BattlePlaySpeed = e, this._BattleFiled.ChangeBattlePlaySpeed(e)
            }, t.prototype.UpdateUI = function() {
                this.BgMask.opacity = 0, this._TopPanel.TitleBaseNode.active = !1;
                for (var e = 0; e < this._CharacterSlots.length; ++e) this._CharacterSlots[e].UINode.active = !1;
                this.BattlePlayer.BattleData.ExtraParam.MultiBattleResult && this.BattlePlayer.BattleData.ExtraParam.MultiBattleResult.length > 0 ? (this._TopPanel.PlayerBattleResult.SetResult(this.BattlePlayer.BattleData.ExtraParam.MultiBattleResult), this._TopPanel.EnemyBattleResult.SetResult(this.BattlePlayer.BattleData.ExtraParam.MultiBattleResult, !0)) : (this._TopPanel.PlayerBattleResult.Hide(), this._TopPanel.EnemyBattleResult.Hide()), this._HeroIdToCharacterSlotId = {};
                var t = [],
                    n = [];
                for (var o in this._BattlePlayer.HeroDatas) {
                    var r = this._BattlePlayer.HeroDatas[o];
                    r.HeroInfo.Id <= 0 || (r.Camp == d.CampType.Attacker ? (this._HeroIdToCharacterSlotId[r.HeroInfo.Id] = t.length, t.push({
                        HeroId: r.HeroInfo.HeroId,
                        StarLevel: r.HeroInfo.StarLevel
                    })) : n.push({
                        HeroId: r.HeroInfo.HeroId,
                        StarLevel: r.HeroInfo.StarLevel
                    }))
                }
                var i = I.ConfigDataComponent.Instance.GetConfigById(m.MapBase_Config, this._BattlePlayer.Report.MapId),
                    a = I.ConfigDataComponent.Instance.GetConfigById(m.MapType_Config, i.Type);
                switch (i.IsBossBattle && a.BossMaxRound > 0 ? this._MaxRound = a.BossMaxRound : this._MaxRound = a.MaxRound, this._TopPanel.SetElementTray(t, n), this._TopPanel.VSHintNode.active = !1, a.Id) {
                    case d.MapType.CrossServerChampionShip:
                        this._TopPanel.VSHintNode.active = !0;
                        var s = this._BattlePlayer.BattleData.SettleParams[0].AttackerInfo.Name,
                            l = this._BattlePlayer.BattleData.SettleParams[0].DefenderInfo.Name;
                        this._TopPanel.SetVSHint(s, l);
                        break;
                    case d.MapType.SeniorArena:
                    case d.MapType.Arena:
                    case d.MapType.CrossZoneRank:
                    case d.MapType.CrossServerArena:
                    case d.MapType.FriendPK:
                    case d.MapType.CrossZoneContinueWarRank:
                        this._TopPanel.VSHintNode.active = !0;
                        var c = void 0,
                            u = void 0;
                        if (this._BattlePlayer.BattleData.SettleParams) this._BattlePlayer.BattleData.SettleParams[0].DefenderInfo.Uid == p.DataCenter.Instance.Uid ? (c = this._BattlePlayer.BattleData.SettleParams[0].DefenderInfo.Name, u = this._BattlePlayer.BattleData.SettleParams[0].AttackerInfo.Name) : (c = this._BattlePlayer.BattleData.SettleParams[0].AttackerInfo.Name, u = this._BattlePlayer.BattleData.SettleParams[0].DefenderInfo.Name);
                        else
                            for (e = 0; e < this._BattlePlayer.Report.Players.length; e++) this._BattlePlayer.Report.Players[e].Uid == p.DataCenter.Instance.Uid || this._BattlePlayer.Report.Players[e].Camp == d.CampType.Attacker ? c = this._BattlePlayer.Report.Players[e].RoleName : u = this._BattlePlayer.Report.Players[e].RoleName;
                        this._TopPanel.SetVSHint(c, u)
                }
                this.RoundBuffLocaleKey = a.RoundBuffLocaleKey || null, this.SetupCharacterPanel(!0), this.LoadAngelAndPetPictures(), this._BattleFiled.LoadBattleField()
            }, t.prototype.SetupCharacterPanel = function(e) {
                var t = 0;
                for (var n in this._HeroIdToCharacterSlotId) t++;
                for (var n in this._HeroIdToCharacterSlotId) {
                    var o = this._HeroIdToCharacterSlotId[n];
                    if (!this._CharacterSlots[o]) {
                        var r = cc.instantiate(this.CharacterSlotPrefab);
                        this._CharacterSlots[o] = new G(this, r), r.parent = this.SlotContainer, r.scale = 1
                    }
                    this._CharacterSlots[o].UINode.active = !0;
                    var i = this.CalculateCharacterSlotPositionX(o, t);
                    this._CharacterSlots[o].UINode.setPosition(i, e ? -200 : 0), this._CharacterSlots[o].SkillCastingBoardBaseNode.y = -200, this._CharacterSlots[o].Reset(), e && this.TweenManager.Tween(this._CharacterSlots[o].UINode).To(.2, {
                        y: 0
                    }).Start();
                    var a = this._BattlePlayer.HeroDatas[n];
                    if (a) {
                        var s = Math.min(a.HeroInfo.StarLevel, f.UIUtlity.Max_Quality_Level),
                            c = a.HeroConfig.ElementType;
                        if (a.HeroAngelId > 0 ? this._CharacterSlots[o].ElementSprite.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_angel") : this._CharacterSlots[o].ElementSprite.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame(w.BattleData.ElementSpriteFrameNames[c]), 2 == a.HeroConfig.CoreHero ? (this._CharacterSlots[o].SPElementBg.node.active = !0, this._CharacterSlots[o].SPElementBg.spriteFrame = f.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spCricle")) : f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero] ? (this._CharacterSlots[o].SPElementBg.node.active = !0, this._CharacterSlots[o].SPElementBg.spriteFrame = f.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero].Cricle), s = f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero].ItemQuality) : this._CharacterSlots[o].SPElementBg.node.active = !1, f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero]) {
                            var u = w.BattleData[f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero].BattleAtlas],
                                h = f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero].SlotFrame;
                            this._CharacterSlots[o].FrameSprite.spriteFrame = u.getSpriteFrame(h)
                        } else a.HeroAngelId > 0 ? this._CharacterSlots[o].FrameSprite.spriteFrame = w.BattleData.MainAtlas.getSpriteFrame("slotFrame_angel") : this._CharacterSlots[o].FrameSprite.spriteFrame = w.BattleData.MainAtlas.getSpriteFrame(w.BattleData.PortraitFrameSpriteFrameNames[s - 1]);
                        if (a.HeroInfo.PetId > 0) {
                            this._CharacterSlots[o].PetInfoNode.active = !0, this._CharacterSlots[o].HeroNameNode.active = !1;
                            var y = p.ConfigDataComponent.Instance.GetConfigById(m.PetBase_Config, a.HeroInfo.PetId);
                            this._CharacterSlots[o].PetInfoBg.spriteFrame = w.BattleData.MainAtlas.getSpriteFrame("petBg_" + Math.min(5, y.Quality)), this._CharacterSlots[o].PetInfoHeadBg.spriteFrame = f.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("hero_bg_" + y.Quality), this._CharacterSlots[o].PetInfoHeadFrame.spriteFrame = f.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("hero_border_" + y.Quality)
                        } else this._CharacterSlots[o].PetInfoNode.active = !1, this._CharacterSlots[o].HeroNameNode.active = !0, this._CharacterSlots[o].NameLabel.string = _.default.GetAbridgeString(this._CharacterSlots[o].NameLabel, a.HeroInfo.HeroId.ToHeroTitle(), 155), this._CharacterSlots[o].NameLabel.node.color = f.UIUtlity.GetLabelColorByQuality(s);
                        var g = w.BattleData.MainAtlas.getSpriteFrame(w.BattleData.PortraitBgSpriteFrameNames[s - 1]);
                        this._CharacterSlots[o].BgSprite.spriteFrame = g;
                        var C = void 0;
                        if (f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero]) {
                            u = w.BattleData[f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero].BattleAtlas];
                            var b = f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero].CastingSkillBg;
                            C = u.getSpriteFrame(b)
                        } else C = a.HeroAngelId > 0 ? w.BattleData.MainAtlas.getSpriteFrame("castingSkillBg_angel") : w.BattleData.MainAtlas.getSpriteFrame(w.BattleData.CastingSkillBgSpriteFrameNames[c - 1]);
                        this._CharacterSlots[o].SkillCastingBoardB.spriteFrame = C;
                        var S = void 0;
                        if (f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero]) {
                            u = w.BattleData[f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero].BattleAtlas];
                            var P = f.UIUtlity.HeroQualityConfig[a.HeroConfig.CoreHero].CastingSkillMask;
                            S = u.getSpriteFrame(P)
                        } else S = a.HeroAngelId > 0 ? w.BattleData.MainAtlas.getSpriteFrame("castingSkillMask_angel") : w.BattleData.MainAtlas.getSpriteFrame(w.BattleData.CastingSkillMaskSpriteFrameNames[c - 1]);
                        this._CharacterSlots[o].SkillCastingBoardF.spriteFrame = S;
                        var A = v.LevelComponent.GetLevelShowType(a.HeroConfig.CoreHero, a.HeroConfig.ElementType);
                        this._CharacterSlots[o].LevelComponent.Init(a.HeroInfo.StarLevel, 0, 0, A);
                        var T = I.ConfigDataComponent.Instance.GetConfigById(m.SkillBase_Config, a.Skill1.SkillId);
                        if (this.LoadHeroCardSprite(o, a.HeroInfo, a.Skill1.SkillId, a.Skill2.SkillId), this._CharacterSlots[o].Skill1CountDownLabel.string = T.Type == d.SkillType.Passive ? "-" : T.Cooldown.toString(), this._CharacterSlots[o].Skill1CountDownLabel.node.active = a.Skill1.Active, this._CharacterSlots[o].Skill1StatusNodeArray[l.Locked].active = !a.Skill1.Active, this._CharacterSlots[o].Skill1Id = T.Id, a.Skill2.SkillId > 0) {
                            var R = I.ConfigDataComponent.Instance.GetConfigById(m.SkillBase_Config, a.Skill2.SkillId);
                            this._CharacterSlots[o].Skill2CountDownLabel.string = R.Type == d.SkillType.Passive ? "-" : R.Cooldown.toString(), this._CharacterSlots[o].Skill2CountDownLabel.node.active = a.Skill2.Active, this._CharacterSlots[o].Skill2StatusNodeArray[l.Locked].active = !a.Skill2.Active, this._CharacterSlots[o].Skill2Id = R.Id, this._CharacterSlots[o].Skill2Group.active = !0
                        } else this._CharacterSlots[o].Skill2IconSprite.node.active = !1, this._CharacterSlots[o].Skill2CountDownLabel.node.active = !1, this._CharacterSlots[o].Skill2StatusNodeArray[l.Locked].active = !1, this._CharacterSlots[o].Skill2Id = 0, this._CharacterSlots[o].Skill2Group.active = !1;
                        this._CharacterSlots[o].Skill1EffectNode.active = !1, this._CharacterSlots[o].Skill2EffectNode.active = !1
                    }
                }
            }, t.prototype.LoadAngelAndPetPictures = function() {
                return a(this, void 0, Promise, function() {
                    var e, t, n, o, r, i, a, l, c;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                for (o in this.PetPictureMap = {}, this.AngelPictureMap = {}, e = {
                                        AngelPic: {},
                                        PetPic: {}
                                    }, t = [], n = this.Id, this._BattlePlayer.HeroDatas) {
                                    if ((r = this._BattlePlayer.HeroDatas[o]).HeroInfo.Id < 0 && r.HeroInfo.HeroId > 0) {
                                        if (e.AngelPic[r.HeroInfo.HeroId]) continue;
                                        e.AngelPic[r.HeroInfo.HeroId] = t.length, t.push(this.LoadDynamicAsset(n, "BattleAngelPicture/" + r.HeroInfo.HeroId, cc.SpriteFrame))
                                    }
                                    if (r.HeroInfo.PetId > 0) {
                                        if (e.PetPic[r.HeroInfo.PetId]) continue;
                                        e.PetPic[r.HeroInfo.PetId] = t.length, t.push(this.LoadDynamicAsset(n, "BattlePetPicture/" + r.HeroInfo.PetId, cc.SpriteFrame))
                                    }
                                }
                                return t.length < 1 ? [2] : (i = this, [4, Promise.all(t).then(function(t) {
                                    for (var n in e.AngelPic) t[e.AngelPic[n]] && (i.AngelPictureMap[n] = t[e.AngelPic[n]]);
                                    for (var o in e.PetPic) t[e.PetPic[o]] && (i.PetPictureMap[o] = t[e.PetPic[o]])
                                })]);
                            case 1:
                                if (s.sent(), !this.isValid) return [2];
                                for (a = 0, l = [d.CampType.Attacker, d.CampType.Defender]; a < l.length; a++) c = l[a], this._BattleFiled.CampAngelInfoPanels[c] && this._BattleFiled.CampAngelInfoPanels[c].AngelId > 0 && (this._BattleFiled.CampAngelInfoPanels[c].AngelPic.spriteFrame = i.AngelPictureMap[this._BattleFiled.CampAngelInfoPanels[c].AngelId] || null);
                                return [2]
                        }
                    })
                })
            }, t.prototype.ProcessReportDataEvent = function(e) {
                switch (e.DataType) {
                    case d.BattleReportDataType.NewRound:
                        this.ProcessRoundStart(e, !0), 1 == e.Round ? (this.StartHints = e.HitPoints, this._BattleFiled.SetEntranceAnimation()) : this._BattleFiled.DealWithHitPoint(null, e.HitPoints);
                        break;
                    case d.BattleReportDataType.HeroAction:
                        this._BattleFiled.HeroPerformSkill(e);
                        break;
                    case d.BattleReportDataType.RoundEnd:
                        this._BattleFiled.DealWithHitPoint(null, e.HitPoints);
                        break;
                    case d.BattleReportDataType.BattleResult:
                }
            }, t.prototype.VerifyHeroStatus = function(e) {
                if (e < 0) {
                    var t = this.BattlePlayer.HeroDatas[e];
                    t && this._BattleFiled.RefreshTeamEffect(t)
                } else {
                    var n = this._BattleFiled.ActorMap[e];
                    n && n.SetCurrentStatus()
                }
            }, t.prototype.ProcessRoundStart = function(e, t) {
                if (void 0 === t && (t = !1), e) {
                    for (var n in 1 == e.Round && this._BattleFiled.PlayAngleInfoEffect(), this._TopPanel.TitleBaseNode.active = !0, w.BattleData.CurrentControlConfig.BattleWaveNumber ? (this._TopPanel.TitleWaveLabel.node.active = !0, this._TopPanel.TitleWaveLabel.string = "abyss_levelIndex".ToUILocale().Fmt(Math.floor(w.BattleData.CurrentControlConfig.BattleWaveNumber))) : this._TopPanel.TitleWaveLabel.node.active = !1, this._TopPanel.TitleTextLabel.string = "battlePanelDefault_Round".ToUILocale().Fmt(e.Round || 1, this._MaxRound), this._BattlePanel.ProcessNewRound(e), this._HeroIdToCharacterSlotId) {
                        var o = this._HeroIdToCharacterSlotId[n],
                            r = this._BattlePlayer.HeroDatas[n];
                        r && this._CharacterSlots[o].OnRoundStart(r)
                    }
                    t && (this.TweenManager.Tween(this._TopPanel.TitleTextLabel.node.parent).To(.25, {
                        scale: 1.75
                    }).To(.25, {
                        scale: 1
                    }).Start(), e.RoundBuffId && this._BattleFiled.ShowRoundBuffFrame(e.Round, e.RoundBuffId))
                }
            }, t.prototype.LoadHeroCardSprite = function(e, t, n, o) {
                return void 0 === o && (o = 0), a(this, void 0, Promise, function() {
                    var r, i, a, l, c, h, f, g, I, C, v, b, S, w, P, A, T;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return r = this.Id, i = t.HeroId, a = 0 | t.SkinId, l = p.ConfigDataComponent.Instance.GetConfigById(m.HeroBase_Config, i), c = 0, l && (c = _.default.Instance.GetHeroIdToAngelId(l.Id), l.ElementType == d.HeroElementType.Chaos && (f = "BattleUI/Spine/UI_Effect_hundun_zhandouliuguang")), c > 0 ? a ? h = "AngelIcon/AngelCard/" + a : (b = p.ConfigDataComponent.Instance.GetConfigById(m.AngelStar_Config, 1e3 * c + t.StarLevel), h = b ? "AngelIcon/AngelCard/" + b.AngelShape : "AngelIcon/AngelCard/" + c) : (a && (g = p.ConfigDataComponent.Instance.GetConfigById(m.HeroSkin_Config, a)) && (i = g.HeroCard), h = y.BundlePath.HeroCardIcon + "/" + i), I = {}, (C = []).push(this.LoadDynamicAsset(r, h, cc.SpriteFrame)), c > 0 ? (b = p.ConfigDataComponent.Instance.GetConfigById(m.AngelStar_Config, 1e3 * c + t.StarLevel), v = b ? "BattleHeroPicture/" + b.AngelShape : "BattleHeroPicture/" + c) : (S = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, t.HeroId), v = S && S.AdultPicture > 0 ? "BattleHeroAdultPicture/" + S.AdultPicture : "BattleHeroPicture/" + t.HeroId), w = _.default.GetSkillIconId(n), C.push(this.LoadDynamicAsset(r, v, cc.SpriteFrame)), C.push(this.LoadDynamicAsset(r, y.BundlePath.SkillIcon + "/" + w, cc.SpriteFrame)), o > 0 && (I.skill2 = C.length, P = _.default.GetSkillIconId(o), C.push(this.LoadDynamicAsset(r, y.BundlePath.SkillIcon + "/" + P, cc.SpriteFrame))), t.PetId > 0 && (I.petIcon = C.length, A = _.default.Instance.GetItemPathById(Number("10" + t.PetId)), C.push(this.LoadDynamicAsset(r, A, cc.SpriteFrame)), I.petPic = C.length, C.push(this.LoadDynamicAsset(r, "BattlePetPicture/" + t.PetId, cc.SpriteFrame))), f && (I.chaosSpine = C.length, C.push(this.LoadDynamicAsset(r, f, sp.SkeletonData))), T = this, [4, Promise.all(C).then(function(t) {
                                    T._CharacterSlots && T._CharacterSlots[e] && (t[0] && (T._CharacterSlots[e].ImageSprite.spriteFrame = t[0]), t[1] && (T._CharacterSlots[e].HeroPictureSF = t[1]), t[2] && (T._CharacterSlots[e].Skill1IconSprite.spriteFrame = t[2]), I.skill2 && t[I.skill2] && (T._CharacterSlots[e].Skill2IconSprite.spriteFrame = t[I.skill2]), I.petIcon && t[I.petIcon] && (T._CharacterSlots[e].PetInfoHeadIcon.spriteFrame = t[I.petIcon]), I.petPic && t[I.petPic] && (T._CharacterSlots[e].PetPictureSF = t[I.petPic]), I.chaosSpine && t[I.chaosSpine] && (T._CharacterSlots[e].ImageSpine.skeletonData = t[I.chaosSpine], T._CharacterSlots[e].ImageSpine.setAnimation(0, "Ani_UI_Effect_hundun_zhandouliuguang", !0)))
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.GetCharacterSlot = function(e) {
                if (void 0 === this._HeroIdToCharacterSlotId[e]) return null;
                var t = this._HeroIdToCharacterSlotId[e];
                return this._CharacterSlots[t] || null
            }, t.prototype.SetHeroSlotHp = function(e, t) {
                if (void 0 !== this._HeroIdToCharacterSlotId[e]) {
                    var n = this._HeroIdToCharacterSlotId[e]; - 1 != n && this._CharacterSlots[n].SetActiveHPBar(t)
                }
            }, t.prototype.SetHeroSlotWhiteBar = function(e, t) {
                if (void 0 !== this._HeroIdToCharacterSlotId[e]) {
                    var n = this._HeroIdToCharacterSlotId[e];
                    this._CharacterSlots[n].SetWhiteHPBar(t)
                }
            }, t.prototype.SetHeroSlotGrayBar = function(e, t) {
                if (void 0 !== this._HeroIdToCharacterSlotId[e]) {
                    var n = this._HeroIdToCharacterSlotId[e];
                    this._CharacterSlots[n].SetGrayHPBar(t)
                }
            }, t.prototype.SetHeroSlotPetMpBar = function(e, t) {
                if (void 0 !== this._HeroIdToCharacterSlotId[e]) {
                    var n = this._HeroIdToCharacterSlotId[e];
                    this._CharacterSlots[n].SetPetMpBar(t)
                }
            }, t.prototype.DealWithActorDead = function(e) {
                if (void 0 !== this._HeroIdToCharacterSlotId[e]) {
                    var t = this._HeroIdToCharacterSlotId[e];
                    this._CharacterSlots[t].OnActorDie()
                }
            }, t.prototype.DealWithActorRevive = function(e) {
                if (void 0 !== this._HeroIdToCharacterSlotId[e]) {
                    var t = this._HeroIdToCharacterSlotId[e],
                        n = this._CharacterSlots[t],
                        o = this.BattlePlayer.HeroDatas[e];
                    n.OnActorRevive(o)
                }
            }, t.prototype.PerformSkillCasting = function(e, t) {
                if (void 0 === t && (t = !1), void 0 !== this._HeroIdToCharacterSlotId[e]) {
                    var n = this._HeroIdToCharacterSlotId[e],
                        o = this._CharacterSlots[n];
                    o.Skill1EffectNode.active = !1, o.Skill2EffectNode.active = !1, o.SkillCastingBoardM.spriteFrame = t ? o.PetPictureSF : o.HeroPictureSF, o.ShowSkillCastingBoard()
                }
            }, t.prototype.CalculateCharacterSlotPositionX = function(e, t) {
                for (var n = t * w.BattleData.CharacterSlotWidth + (t - 1) * w.BattleData.CharacterSlotGapX, o = .5 * (w.BattleData.ScreenWidth - n), r = 0; r < e; ++r) o += w.BattleData.CharacterSlotWidth + w.BattleData.CharacterSlotGapX;
                return o + .5 * w.BattleData.CharacterSlotWidth
            }, t.prototype.LoadDynamicAsset = function(e, t, n) {
                return a(this, void 0, void 0, function() {
                    var o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return [4, c.AssetsManager.Instance.LoadAsset(t, n)];
                            case 1:
                                return o = r.sent(), this.Id != e ? (c.AssetsManager.Instance.UnloadAsset(o), [2, null]) : (this._DynamicAssets.push(o), [2, o])
                        }
                    })
                })
            }, t.prototype.LoadElementShieldPrefab = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, c.AssetsManager.Instance.LoadAsset("BattleUI/ElementShieldItem", cc.Prefab)];
                            case 1:
                                return e = t.sent(), this.isValid ? (this._DynamicAssets.push(e), [2, e]) : (c.AssetsManager.Instance.UnloadAsset(e), [2, null])
                        }
                    })
                })
            }, t.prototype.InitManualBattle = function() {
                for (this.node.off(cc.Node.EventType.TOUCH_END); this._CompleteActionFlag.length > 0;)(i = this._CompleteActionFlag.pop()).node.parent = null, i.node.destroy();
                if (this.BattlePlayer.BattleData.ExtraParam.CanManual) {
                    this.LoadTargetSelector();
                    for (var e = [
                            [725, 840],
                            [910, 1035],
                            [1095, 1240]
                        ], t = [], n = 0; n < this._CharacterSlots.length; n++) {
                        var o = this._CharacterSlots[n].UINode.position.x - w.BattleData.ScreenWidth / 2;
                        t.push([o - w.BattleData.CharacterSlotWidth / 2, o + w.BattleData.CharacterSlotWidth / 2]);
                        var r = new cc.Node,
                            i = r.addComponent(cc.Label);
                        r.width = 200, r.height = 60, i.fontSize = 46, i.string = "\u5df2 \u884c \u52a8", r.color = cc.Color.GREEN, r.angle = -45;
                        var a = r.addComponent(cc.LabelOutline);
                        a.color = cc.Color.BLACK, a.width = 2, r.parent = this.SlotContainer, r.scale = 1, r.setPosition(this._CharacterSlots[n].UINode.position.x, -240), this._CompleteActionFlag.push(i)
                    }
                    var s = [];
                    for (var l in this._HeroIdToCharacterSlotId) s[this._HeroIdToCharacterSlotId[l]] = h.AppUtil.ToInt(l);
                    var u = d.GlobalSetting.DESIGN_SCREEN_HEIGHT - 50,
                        p = d.GlobalSetting.DESIGN_SCREEN_HEIGHT - 450,
                        f = cc.view.getVisibleSize().width / 2;
                    this.node.on(cc.Node.EventType.TOUCH_END, function(n) {
                        var o = n.touch.getStartLocationInView();
                        if (o.y >= p && o.y <= u) {
                            for (var r = 0, i = 0; i < t.length; i++)
                                if ((y = o.x - f) >= t[i][0] && y <= t[i][1]) {
                                    r = s[i];
                                    break
                                } if (r <= 0) return;
                            var a = 0,
                                l = n.touch.getLocationInView();
                            if (l.y - o.y > 50) return;
                            o.y - l.y > 50 && (a = 1), c.Game.EventDispatcher.Emit("manual_battle_hero_action", r, a)
                        }
                        if (o.y >= 725 && o.y <= 1230) {
                            for (var h = -1, y = o.x - f, g = 0; g < T.BattleHelper.FORMATION_COL_COUNT && !(h >= 0); g++)
                                if (o.y >= e[g][0] && o.y <= e[g][1])
                                    for (var m = 0; m < T.BattleHelper.FORMATION_ROW_COUNT; m++) {
                                        var I = T.BattleHelper.GetBattleFieldPosition(m, g, d.CampType.Defender).x;
                                        if (y >= I - 35 && y <= I + 35) {
                                            h = T.BattleHelper.GetStationId(m, g);
                                            break
                                        }
                                    }
                            h >= 0 && c.Game.EventDispatcher.Emit("manual_battle_select_target", h)
                        }
                    })
                }
            }, t.prototype.UpdateManualBattle = function() {
                if (this.BattlePlayer.BattleData.ExtraParam.CanManual) {
                    var e = this.BattlePlayer.IsWaitForAction,
                        t = this.BattlePlayer.SelectedTargetId,
                        n = this.BattlePlayer.DoneHeroIds;
                    if (this.TargetSelector)
                        if (e) {
                            var o = this.BattlePlayer.HeroDatas[t];
                            if (o) {
                                this.TargetSelector.opacity = 255;
                                var r = T.BattleHelper.GetBattleFieldPositionByStationId(o.HeroInfo.StationId, d.CampType.Defender);
                                this.TargetSelector.setPosition(r.x, r.y + 100)
                            } else this.TargetSelector.opacity = 0
                        } else this.TargetSelector.opacity = 0;
                    for (var i in this._HeroIdToCharacterSlotId) n[h.AppUtil.ToInt(i)] ? this._CompleteActionFlag[this._HeroIdToCharacterSlotId[i]].node.active = !0 : this._CompleteActionFlag[this._HeroIdToCharacterSlotId[i]].node.active = !1
                }
            }, t.prototype.LoadTargetSelector = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.TargetSelector ? [2] : [4, c.AssetsManager.Instance.LoadAsset("SecretAreaExplorePanel/Component/aimMarker", cc.Prefab)];
                            case 1:
                                return e = t.sent(), this.TargetSelector = cc.instantiate(e), this.TargetSelector.parent = this.BattleFieldNode, this.TargetSelector.scale = .7, this.TargetSelector.opacity = 255, this.TargetSelector.zIndex = 31e3, this.TargetSelector.setPosition(0, 0), this.TargetSelector.removeComponent(cc.BlockInputEvents), this.TargetSelector._touchListener.setSwallowTouches(!1), [2]
                        }
                    })
                })
            }, i([B(cc.Node)], t.prototype, "BattleRoot", void 0), i([B(cc.Sprite)], t.prototype, "Bg", void 0), i([B(cc.Node)], t.prototype, "BgMask", void 0), i([B(cc.Node)], t.prototype, "BattleFieldNode", void 0), i([B(cc.Prefab)], t.prototype, "CharacterSlotPrefab", void 0), i([B(cc.Node)], t.prototype, "SlotContainer", void 0), i([B(cc.Node)], t.prototype, "TopPanelNode", void 0), i([B(cc.Prefab)], t.prototype, "PetInfoNodePrefab", void 0), i([B(cc.Prefab)], t.prototype, "StarLevelPrefab", void 0), i([D], t)
        }(cc.Component);
        n.default = N;
        var E = function() {
                function e(e, t) {
                    this.VSHintNode = null, this.LeftPlayerName = null, this.RightPlayerName = null, this.ViewPort = e, this.UINode = t, this.TitleBaseNode = cc.find("TitleBar", t), this.TitleWaveLabel = cc.find("TitleBar/TextContainer/WaveText", t).getComponent(cc.Label), this.TitleTextLabel = cc.find("TitleBar/TextContainer/Text", t).getComponent(cc.Label), this.PlayerElementTray = cc.find("PlayerElementEffectItem", t).getComponent(g.default), this.EnemyElementTray = cc.find("EnemyElementEffectItem", t).getComponent(g.default), this.PlayerBattleResult = new U(cc.find("PlayerBattleResult", t)), this.EnemyBattleResult = new U(cc.find("EnemyBattleResult", t)), this.VSHintNode = cc.find("VSHint", t), this.LeftPlayerName = cc.find("LeftPlayerName", this.VSHintNode).getComponent(cc.Label), this.RightPlayerName = cc.find("RightPlayerName", this.VSHintNode).getComponent(cc.Label)
                }
                return e.prototype.InitUI = function() {
                    this.PlayerElementTray.node.on("click", this.ShowPlayerElementDetailInfo, this), this.EnemyElementTray.node.on("click", this.ShowEnemyElementDetailInfo, this)
                }, e.prototype.SetElementTray = function(e, t) {
                    this.PlayerElementTray.InitByHeroId(e), this.EnemyElementTray.InitByHeroId(t)
                }, e.prototype.SetVSHint = function(e, t) {
                    this.LeftPlayerName.string = e, this.RightPlayerName.string = t
                }, e.prototype.ShowPlayerElementDetailInfo = function() {
                    c.UIManager.Instance.ShowUIPanel(y.PanelConfig.ElementPanel.Path, this.PlayerElementTray.ElementMap, this.PlayerElementTray.SPHeroCount, this.PlayerElementTray.URHeroCount, this.PlayerElementTray.LRHeroCount)
                }, e.prototype.ShowEnemyElementDetailInfo = function() {
                    c.UIManager.Instance.ShowUIPanel(y.PanelConfig.ElementPanel.Path, this.EnemyElementTray.ElementMap, this.EnemyElementTray.SPHeroCount, this.EnemyElementTray.URHeroCount, this.EnemyElementTray.LRHeroCount)
                }, e
            }(),
            U = function() {
                function e(e) {
                    this.UINode = e, this.Items = [], this.Items.push(cc.find("Battle_1", e)), this.Items.push(cc.find("Battle_2", e)), this.Items.push(cc.find("Battle_3", e))
                }
                return e.prototype.Hide = function() {
                    this.UINode.active = !1
                }, e.prototype.SetResult = function(e, t) {
                    void 0 === t && (t = !1), this.UINode.active = !0;
                    for (var n = 0; n < this.Items.length; n++)
                        if (e.length > n) {
                            this.Items[n].active = !0;
                            var o = cc.find("Win", this.Items[n]),
                                r = cc.find("Lose", this.Items[n]);
                            o.active = !1, r.active = !1;
                            var i = e[n] * (t ? -1 : 1);
                            1 == i ? o.active = !0 : -1 == i && (r.active = !0)
                        } else this.Items[n].active = !1
                }, e
            }(),
            G = function() {
                function e(t, n) {
                    this.Skill1StatusNodeArray = [], this.Skill1Id = 0, this.Skill2StatusNodeArray = [], this.Skill2Id = 0, this.HeroNameNode = null, this.NameLabel = null, this.PetInfoNode = null, this.PetInfoBg = null, this.PetInfoMpBar = null, this.PetInfoHeadBg = null, this.PetInfoHeadFrame = null, this.PetInfoHeadIcon = null, this.HeroPictureSF = null, this.PetPictureSF = null, this.ViewPort = t, this.UINode = n, this.SlotNode = cc.find("SlotNode", n), this.BgSprite = cc.find("Bg", this.SlotNode).getComponent(cc.Sprite), this.ImageSprite = cc.find("ImageMask/Image", this.SlotNode).getComponent(cc.Sprite), this.ImageSpine = cc.find("ImageSpine", this.SlotNode).getComponent(sp.Skeleton), this.FrameSprite = cc.find("Frame", this.SlotNode).getComponent(cc.Sprite), this.ElementSprite = cc.find("Element", this.SlotNode).getComponent(cc.Sprite), this.SPElementBg = cc.find("Element/SPElementBg", this.SlotNode).getComponent(cc.Sprite), this.LevelComponent = cc.find("LevelComponent", this.SlotNode).getComponent(v.LevelComponent), this.HPBarMaskNode = cc.find("HPBar/Mask", this.SlotNode), this.HPBarWhiteNode = cc.find("HPBar/White", this.SlotNode), this.HPBarRedNode = cc.find("HPBar/Mask/Red", this.SlotNode), this.HPBarYellowNode = cc.find("HPBar/Mask/Yellow", this.SlotNode), this.HPBarGreenNode = cc.find("HPBar/Mask/Green", this.SlotNode), this.HPBarGrayNode = cc.find("HPBar/Gray", this.SlotNode), e.HPBarFullSize = this.HPBarMaskNode.getContentSize(), this.Skill1IconBg = cc.find("SkillGroups/Skill1/Skill1IconBg", this.SlotNode), this.Skill1IconSprite = cc.find("SkillGroups/Skill1/Skill1Icon", this.SlotNode).getComponent(cc.Sprite), this.Skill1CountDownLabel = cc.find("SkillGroups/Skill1/Skill1Status/CountDown/Label", this.SlotNode).getComponent(cc.Label), this.Skill1StatusNodeArray[l.Locked] = cc.find("SkillGroups/Skill1/Skill1Status/Icon/Lock", this.SlotNode), this.Skill1EffectNode = cc.find("SkillGroups/Skill1/Skill1Effect", this.SlotNode), this.Skill1Group = cc.find("SkillGroups/Skill1", this.SlotNode), this.Skill2IconBg = cc.find("SkillGroups/Skill2/Skill2IconBg", this.SlotNode), this.Skill2IconSprite = cc.find("SkillGroups/Skill2/Skill2Icon", this.SlotNode).getComponent(cc.Sprite), this.Skill2CountDownLabel = cc.find("SkillGroups/Skill2/Skill2Status/CountDown/Label", this.SlotNode).getComponent(cc.Label), this.Skill2StatusNodeArray[l.Locked] = cc.find("SkillGroups/Skill2/Skill2Status/Icon/Lock", this.SlotNode), this.Skill2EffectNode = cc.find("SkillGroups/Skill2/Skill2Effect", this.SlotNode), this.Skill2Group = cc.find("SkillGroups/Skill2", this.SlotNode), this.SkillCastEffect = cc.find("SkillCastEffect", this.UINode).getComponent(sp.Skeleton), this.CircleEffect = cc.find("CircleEffect", this.UINode).getComponent(sp.Skeleton), this.SkillCastingBoardBaseNode = cc.find("EffectNode", n), this.SkillCastingBoardB = cc.find("B", this.SkillCastingBoardBaseNode).getComponent(cc.Sprite), this.SkillCastingBoardM = cc.find("M", this.SkillCastingBoardBaseNode).getComponent(cc.Sprite), this.SkillCastingBoardF = cc.find("F", this.SkillCastingBoardBaseNode).getComponent(cc.Sprite), this.HeroNameNode = cc.find("DescriptionBar", this.SlotNode), this.NameLabel = cc.find("DescriptionBar/Text/Label", this.SlotNode).getComponent(cc.Label), this.PetInfoNode = cc.find("PetInfoNode", this.SlotNode), this.PetInfoBg = cc.find("MpBar/BG", this.PetInfoNode).getComponent(cc.Sprite), this.PetInfoMpBar = cc.find("MpBar", this.PetInfoNode).getComponent(b.default), this.PetInfoHeadBg = cc.find("Head/Bg", this.PetInfoNode).getComponent(cc.Sprite), this.PetInfoHeadFrame = cc.find("Head/Frame", this.PetInfoNode).getComponent(cc.Sprite), this.PetInfoHeadIcon = cc.find("Head/Icon", this.PetInfoNode).getComponent(cc.Sprite)
                }
                return e.prototype.Reset = function() {
                    this.SkillCastEffect.clearTracks(), this.CircleEffect.clearTracks(), this.CircleEffect.node.active = !1, this.SlotNode.scaleX = 1, this.SkillCastingBoardBaseNode.active = !1, this.HeroPictureSF = null, this.PetPictureSF = null, this.ImageSprite.spriteFrame = null, this.ImageSpine.skeletonData = null, this.Skill1IconSprite.spriteFrame = null, this.Skill2IconSprite.spriteFrame = null, this.PetInfoHeadIcon.spriteFrame = null
                }, e.prototype.SetWhiteHPBar = function(t) {
                    var n = e.HPBarFullSize.width * t;
                    this.HPBarWhiteNode.width = n
                }, e.prototype.SetGrayHPBar = function(t) {
                    var n = e.HPBarFullSize.width * t;
                    this.HPBarGrayNode.width = n
                }, e.prototype.SetActiveHPBar = function(t) {
                    var n = this.GetActiveHpBar(t),
                        o = e.HPBarFullSize.width * t;
                    n.width = o, this.HPBarWhiteNode.width = o
                }, e.prototype.ChangeBattlePlaySpeed = function(e) {
                    this.SkillCastEffect.timeScale = e, this.CircleEffect.timeScale = e
                }, e.prototype.SetPetMpBar = function(e) {
                    this.PetInfoMpBar.progress = e
                }, e.prototype.PlaySkillCastEffect = function() {
                    var t = this;
                    t.CircleEffect.node.active = !0, t.CircleEffect.clearTracks(), t.CircleEffect.setToSetupPose(), this.ViewPort.TweenManager.ClearTargetTweens(this.SkillCastEffect.node), this.ViewPort.TweenManager.Tween(this.SkillCastEffect.node).Call(function() {
                        t.SkillCastEffect.node.active = !0, t.SkillCastEffect.clearTracks(), t.SkillCastEffect.setToSetupPose(), t.SkillCastEffect.setAnimation(0, e.Effect1Name, !1)
                    }).Delay(.1).Call(function() {
                        t.CircleEffect.setAnimation(0, e.Effect3Name, !0)
                    }).Start()
                }, e.prototype.ShowSkillCastingBoard = function() {
                    var t = this;
                    this.ViewPort.TweenManager.Tween().Delay(.1).Call(function() {
                        t.SlotNode.scaleX = 0, t.SkillCastingBoardBaseNode.active = !0, t.SkillCastingBoardBaseNode.scaleX = 1, t.SkillCastingBoardB.node.y = -177, t.SkillCastingBoardF.node.y = -177, t.SkillCastingBoardM.node.y = -177, t.SkillCastEffect.setAnimation(0, e.Effect2Name, !1), t.ViewPort.TweenManager.Tween(t.SkillCastingBoardB.node).To(.33, {
                            y: 0
                        }, {
                            Easing: cc.easeOut(3)
                        }).Start(), t.ViewPort.TweenManager.Tween(t.SkillCastingBoardF.node).To(.33, {
                            y: 0
                        }, {
                            Easing: cc.easeOut(3)
                        }).Start(), t.ViewPort.TweenManager.Tween(t.SkillCastingBoardM.node).Delay(.1).Call(function() {
                            t.CircleEffect.node.active = !1
                        }).To(.33, {
                            y: 0
                        }, {
                            Easing: cc.easeOut(3)
                        }).Delay(.5).OnEnd(function() {
                            t.ShowSkillCastingBoardPhase1()
                        }).Start()
                    }).Start()
                }, e.prototype.ShowSkillCastingBoardPhase1 = function() {
                    var e = this;
                    this.ViewPort.TweenManager.Tween(this.SkillCastingBoardBaseNode).OnEnd(function() {
                        e.SkillCastingBoardBaseNode.active = !1, e.SlotNode.scaleX = 0, e.ViewPort.TweenManager.Tween(e.SlotNode).To(.2, {
                            scaleX: 1
                        }, {
                            Easing: cc.easeInOut(2)
                        }).OnEnd(function() {
                            e.SlotNode.scaleX = 1
                        }).Start()
                    }).To(.2, {
                        scaleX: 0
                    }, {
                        Easing: cc.easeInOut(4)
                    }).Start()
                }, e.prototype.OnRoundStart = function(e) {
                    this.Skill1EffectNode.active = !1, this.Skill2EffectNode.active = !1, this.SkillCastEffect.node.active = !1, this.CircleEffect.node.active = !1, e.IsDead || (this.Skill1EffectNode.active = e.Skill1.IsReady, this.Skill2EffectNode.active = e.Skill2.IsReady, (e.Skill1.IsReady || e.Skill1.IsReady) && this.PlaySkillCastEffect())
                }, e.prototype.OnActorDie = function() {
                    f.UIUtlity.OnNodeGray(this.SlotNode), this.CircleEffect.node.active = !1, this.SkillCastEffect.clearTracks(), this.Skill1EffectNode.active = !1, this.Skill2EffectNode.active = !1
                }, e.prototype.OnActorRevive = function(e) {
                    f.UIUtlity.OffNodeGray(this.SlotNode), this.Skill1EffectNode.active = e.Skill1.IsReady, this.Skill2EffectNode.active = e.Skill2.IsReady, (e.Skill1.IsReady || e.Skill2.IsReady) && (this.CircleEffect.node.active = !0)
                }, e.prototype.GetActiveHpBar = function(e) {
                    return e > P.default.YellowThreshold ? (this.HPBarGreenNode.active = !0, this.HPBarYellowNode.active = !1, this.HPBarRedNode.active = !1, this.HPBarMaskNode) : e > P.default.RedThreshold ? (this.HPBarGreenNode.active = !1, this.HPBarYellowNode.active = !0, this.HPBarRedNode.active = !1, this.HPBarMaskNode) : (this.HPBarGreenNode.active = !1, this.HPBarYellowNode.active = !1, this.HPBarRedNode.active = !0, this.HPBarMaskNode)
                }, e.HPBarFullSize = null, e.PetMpBarFullLength = 0, e.HPBarSpeed = .25, e.HPBarReduceDelay = .3, e.Effect1Name = "UI_effect_zhandoujiemian_xinxika01", e.Effect2Name = "UI_effect_zhandoujiemian_xinxika02", e.Effect3Name = "UI_effect_zhandoujiemian_xinxika_xunhuan", e
            }(),
            x = function() {
                function e(e, t) {
                    this.ViewPort = null, this.UINode = null, this.EffectBottomLayer = null, this.EffectTopLayer = null, this.NormalLayer = null, this.UpperNormalLayer = null, this.StageLayer = null, this.EffectLayer = null, this.EffectLayer2 = null, this.Overlay = null, this.TotalDMGBaseNode = null, this.TotalDMGDigitsBaseNode = null, this.TotalDMGDigitsLayout = null, this.TotalDMGDigitsContainerNode = null, this.BossHUDBaseNode = null, this.BossHUDDamageValue = null, this.BossHUDName = null, this.BossHUDHPBar = null, this.BossHUDHPBarMaskOrange = null, this.BossHUDHPBarMaskRed = null, this.BossHUDEffect = null, this.BossHUDCounterNode = null, this.BossHUDCounterTitle = null, this.BossHUDCounterNumber = null, this.BossHUDBuffContainerNode = null, this.BossHUDBuffIndicators = null, this.BossHUDBuffIconAssets = new Map, this.TeamBuffEffectMap = null, this.CampSkillIndicators = null, this.CampPetSkillIndicators = null, this.CampAngelInfoPanels = null, this.ActorMap = null, this.AngelVsEffectNode = null, this.AngelStartEffectPrefab = null, this.AngelEndEffectPrefab = null, this.AngelStartEffectNode = null, this.AngelEndEffectNode = null, this.RoundBuffFrame = null, this._BattleEffectPools = null, this._EffectSkeletonMap = null, this._ProtecterMap = null, this._PlayingSounds = null, this._CommonSkillEffectPrefabMap = null, this._CommonSkillEffectPools = null, this._CommonSkillSoundMap = null, this._TotalDMGDigitSprites = [], this._ElementShieldItems = [], this._CurrentPerformer = null, this._CurrentSkillTargets = null, this._CurrentSkillEvents = null, this._CurrentSkillHitPoints = null, this._CurrentSkillDuration = 0, this._CurrentPlayTime = 0, this._CurrentIndex = 0, this._CurrentSkillId = 0, this._CurrentIsCommonSkill = !1, this._IsHeroAngelPerformSkill = !1, this._NeedPauseTime = !1, this._IsMoveEnd = !0, this._CurrentSkillTotalDMG = 0, this._NewSkillTotalDMG = 0, this.BossHUDHPBarCurrentCounter = 0, this.BossHUDHPBarCurrentValue = 0, this.BossHUDHPBarCapacityArray = null, this.IsShowRemainBossHp = !1, this.ViewPort = e, this.UINode = t, this.EffectBottomLayer = cc.find("EffectBottomLayer", t), this.EffectTopLayer = cc.find("EffectTopLayer", t), this.NormalLayer = cc.find("NormalLayer", t), this.UpperNormalLayer = cc.find("UpperNormalLayer", t), this.StageLayer = cc.find("StageLayer", t), this.EffectLayer = cc.find("EffectLayer", t), this.EffectLayer2 = cc.find("EffectLayer2", t), this.Overlay = cc.find("Overlay", t), this._EffectSkeletonMap = {}, this._PlayingSounds = [], this.CampSkillIndicators = {}, this.CampSkillIndicators[d.CampType.Attacker] = {
                        SkillCastingIndicatorNode: cc.find("PlayerSideSkillName", this.Overlay),
                        SkillCastingIndicatorIconSprite: cc.find("PlayerSideSkillName/Bg/Container/IconSprite", this.Overlay).getComponent(cc.Sprite),
                        SkillCastingIndicatorNameLabel: cc.find("PlayerSideSkillName/Bg/Container/NameLabel", this.Overlay).getComponent(cc.Label)
                    }, this.CampSkillIndicators[d.CampType.Defender] = {
                        SkillCastingIndicatorNode: cc.find("EnemySideSkillName", this.Overlay),
                        SkillCastingIndicatorIconSprite: cc.find("EnemySideSkillName/Bg/Container/IconSprite", this.Overlay).getComponent(cc.Sprite),
                        SkillCastingIndicatorNameLabel: cc.find("EnemySideSkillName/Bg/Container/NameLabel", this.Overlay).getComponent(cc.Label)
                    }, this.CampPetSkillIndicators = {}, this.CampPetSkillIndicators[d.CampType.Attacker] = {
                        SkillCastingIndicatorNode: cc.find("PlayerSidePetSkill", this.Overlay),
                        SkillCastingIndicatorIconSprite: cc.find("PlayerSidePetSkill/Bg/IconSprite", this.Overlay).getComponent(cc.Sprite),
                        SkillCastingIndicatorNameLabel: cc.find("PlayerSidePetSkill/Bg/NameLabel", this.Overlay).getComponent(cc.Label),
                        SkillCastingIndicatorEffectNode: cc.find("PlayerSidePetSkill/Effect", this.Overlay).getComponent(sp.Skeleton)
                    }, this.CampPetSkillIndicators[d.CampType.Defender] = {
                        SkillCastingIndicatorNode: cc.find("EnemySidePetSkill", this.Overlay),
                        SkillCastingIndicatorIconSprite: cc.find("EnemySidePetSkill/Bg/IconSprite", this.Overlay).getComponent(cc.Sprite),
                        SkillCastingIndicatorNameLabel: cc.find("EnemySidePetSkill/Bg/NameLabel", this.Overlay).getComponent(cc.Label),
                        SkillCastingIndicatorEffectNode: cc.find("EnemySidePetSkill/Effect", this.Overlay).getComponent(sp.Skeleton)
                    }, this.CampAngelInfoPanels = {}, this.CampAngelInfoPanels[d.CampType.Attacker] = {
                        Root: cc.find("PlayerSideAngelInfo", this.Overlay),
                        NameLabel: cc.find("PlayerSideAngelInfo/AngelInfo/NameLabel", this.Overlay).getComponent(cc.Label),
                        LevelLabel: cc.find("PlayerSideAngelInfo/AngelInfo/LevelLabel", this.Overlay).getComponent(cc.Label),
                        AngelPic: cc.find("PlayerSideAngelInfo/AngelInfo/Icon", this.Overlay).getComponent(cc.Sprite),
                        StarNode: cc.find("PlayerSideAngelInfo/AngelInfo/StarNode", this.Overlay),
                        PetInfoList: cc.find("PlayerSideAngelInfo/PetInfoList", this.Overlay),
                        TopEffect: cc.find("PlayerSideAngelInfo/EffectTop", this.Overlay).getComponent(sp.Skeleton),
                        BottomEffect: cc.find("PlayerSideAngelInfo/EffectBottom", this.Overlay).getComponent(sp.Skeleton),
                        PetIcons: [],
                        AngelId: 0
                    }, this.CampAngelInfoPanels[d.CampType.Defender] = {
                        Root: cc.find("EnemySideAngelInfo", this.Overlay),
                        NameLabel: cc.find("EnemySideAngelInfo/AngelInfo/NameLabel", this.Overlay).getComponent(cc.Label),
                        LevelLabel: cc.find("EnemySideAngelInfo/AngelInfo/LevelLabel", this.Overlay).getComponent(cc.Label),
                        AngelPic: cc.find("EnemySideAngelInfo/AngelInfo/Icon", this.Overlay).getComponent(cc.Sprite),
                        StarNode: cc.find("EnemySideAngelInfo/AngelInfo/StarNode", this.Overlay),
                        PetInfoList: cc.find("EnemySideAngelInfo/PetInfoList", this.Overlay),
                        TopEffect: cc.find("EnemySideAngelInfo/EffectTop", this.Overlay).getComponent(sp.Skeleton),
                        BottomEffect: cc.find("EnemySideAngelInfo/EffectBottom", this.Overlay).getComponent(sp.Skeleton),
                        PetIcons: [],
                        AngelId: 0
                    }, this.AngelVsEffectNode = cc.find("AngelVsEffect", this.Overlay).getComponent(sp.Skeleton), this.CampAngelInfoPanels[d.CampType.Attacker].Root.active = !1, this.CampAngelInfoPanels[d.CampType.Defender].Root.active = !1, this.AngelVsEffectNode.node.active = !1, this.RoundBuffFrame = {
                        FrameRoot: cc.find("RoundBuffFrame", this.Overlay),
                        FramePanel: cc.find("RoundBuffFrame/Panel", this.Overlay),
                        FrameTitle: cc.find("RoundBuffFrame/Panel/Title/FrameTitle", this.Overlay).getComponent(cc.RichText),
                        BuffIcon: cc.find("RoundBuffFrame/Panel/Content/BuffIcon", this.Overlay).getComponent(cc.Sprite),
                        BuffDesc: cc.find("RoundBuffFrame/Panel/Content/BuffDesc", this.Overlay).getComponent(cc.Label)
                    }, this.RoundBuffFrame.FrameRoot.active = !1, this.TotalDMGBaseNode = cc.find("TotalDMG", this.Overlay), this.TotalDMGDigitsBaseNode = cc.find("TotalDMG/LayoutNode/Digits", this.Overlay), this.TotalDMGDigitsContainerNode = cc.find("TotalDMG/LayoutNode/Digits/Container", this.Overlay), this.TotalDMGDigitsLayout = cc.find("TotalDMG/LayoutNode", this.Overlay).getComponent(cc.Layout), this._TotalDMGDigitSprites = [], this.BossHUDBaseNode = cc.find("BossHUD", this.Overlay), this.BossHUDDamageValue = cc.find("DamageValue", this.BossHUDBaseNode).getComponent(cc.Label), this.BossHUDName = cc.find("Name", this.BossHUDBaseNode).getComponent(cc.Label), this.BossHUDHPBar = cc.find("HPBar/HP", this.BossHUDBaseNode), this.BossHUDHPBarMaskOrange = cc.find("HPBar/MaskOrange", this.BossHUDBaseNode), this.BossHUDHPBarMaskRed = cc.find("HPBar/MaskRed", this.BossHUDBaseNode), this.BossHUDEffect = cc.find("FXNode", this.BossHUDBaseNode), this.BossHUDCounterNode = cc.find("Counter", this.BossHUDBaseNode), this.BossHUDCounterTitle = cc.find("Counter/NumberFg/Title", this.BossHUDBaseNode).getComponent(cc.Label), this.BossHUDCounterNumber = cc.find("Counter/NumberFg/Number", this.BossHUDBaseNode).getComponent(cc.Label), this.BossHUDBuffContainerNode = cc.find("BuffContainer", this.BossHUDBaseNode), this.BossHUDBuffIndicators = [], this.BossElementShieldNode = cc.find("ElementShield", this.Overlay), this.BossHUDCounterTitle.string = "tag_damage".ToUILocale()
                }
                return e.prototype.GetDigitSprite = function(e) {
                    if (!this._TotalDMGDigitSprites[e]) {
                        var t = new cc.Node;
                        t.setAnchorPoint(1, .5), t.setParent(this.TotalDMGDigitsContainerNode);
                        var n = t.addComponent(cc.Sprite);
                        this._TotalDMGDigitSprites[e] = n
                    }
                    return this._TotalDMGDigitSprites[e]
                }, e.prototype.LoadBattleField = function() {
                    this.UnloadBattleField(), this.ClearTotalDMG(!0), this.BossHUDBaseNode.active = !1, this.BossElementShieldNode.active = !1, this._BattleEffectPools = {}, this._CommonSkillEffectPrefabMap = {}, this._CommonSkillEffectPools = {}, this._CommonSkillSoundMap = {}, this.TeamBuffEffectMap = {}, this.TeamBuffEffectMap[-1] = {}, this.TeamBuffEffectMap[-2] = {}, this.LoadCommonSkillAsset(), this._EntranceAniHeroCount = 0, this._EntranceAniCompleteHeroCount = 0, this.ActorMap = {};
                    var e = !1,
                        t = [],
                        n = !1;
                    for (var o in this.ViewPort.BattlePlayer.HeroDatas) {
                        var r = this.ViewPort.BattlePlayer.HeroDatas[o];
                        if (r.HeroInfo.Id < 0) {
                            if (this.RefreshTeamEffect(r), r.HeroInfo.HeroId <= 0) continue;
                            e = !0
                        }!e && r.HeroConfig && (e = r.HeroAngelId > 0), r.HeroConfig && r.HeroConfig.ElementType == d.HeroElementType.Chaos && r.HeroConfig.CoreHero == d.CoreHeroTag.LR && !_.default.GetFunctionSkipState(d.FunctionSkipKey.BattleSkillEffect) && (t.includes(r.HeroConfig.Id) || (t.push(r.HeroConfig.Id), this.LoadPreSkillEffectAssets(r.HeroConfig)), n = !0);
                        var i = w.BattleData.GetBattleActor();
                        i.parent = this.NormalLayer, this.ActorMap[r.HeroInfo.Id] = i.getComponent(P.default), this.ActorMap[r.HeroInfo.Id].Load(this, r);
                        var a = !1;
                        if (r.HeroInfo.Id > 0 && r.HeroInfo.HeroId > 0 && r.HeroInfo.SkinId > 0) {
                            var s = p.ConfigDataComponent.Instance.GetConfigById(m.HeroSkin_Config, r.HeroInfo.SkinId);
                            a = !!(s && s.IsShowEntranceAnimation > 0)
                        }
                        if (!a || this.ViewPort.BattlePlayer.CurrentDataIndex || this.ViewPort.BattlePlayer.EntranceAniStartTime ? this.ActorMap[r.HeroInfo.Id].StandBy() : (this._EntranceAniHeroCount++, this.ActorMap[r.HeroInfo.Id].StandByJC()), r.HeroInfo.PetId > 0) {
                            var l = w.BattleData.GetBattleActor();
                            l.parent = this.UpperNormalLayer;
                            var c = {};
                            c.HeroInfo = new u.BattleReportHeroInfo, c.HeroInfo.Id = -10 * r.HeroInfo.Id, c.HeroInfo.StationId = r.HeroInfo.StationId, c.HeroInfo.PetId = r.HeroInfo.PetId, c.IsDead = r.IsDead;
                            var h = p.ConfigDataComponent.Instance.GetConfigById(m.PetBase_Config, r.HeroInfo.PetId);
                            c.SkillConfig = p.ConfigDataComponent.Instance.GetHeroSkillConfig(h.Model), c.Camp = r.Camp, c.BuffMap = {}, c.SpEffectMap = {}, this.ActorMap[c.HeroInfo.Id] = l.getComponent(P.default), this.ActorMap[c.HeroInfo.Id].Load(this, c, !0), this.ActorMap[c.HeroInfo.Id].StandBy()
                        }
                    }
                    e && this.LoadCommonAngelAsset(), n && this.LoadPreSkillEffectAssets(null, "BattlePreSkillEffect/BattlePreSkillEffectItem")
                }, e.prototype.UnloadBattleField = function() {
                    var e, t;
                    for (var n in this.CleanUp(!0), this._BattleEffectPools) this._BattleEffectPools[n].clear();
                    for (var n in this._BattleEffectPools = null, this._CommonSkillEffectPools) this._CommonSkillEffectPools[n].clear();
                    for (var n in this._CommonSkillEffectPools = null, this._CommonSkillSoundMap = null, this._CommonSkillEffectPrefabMap)
                        for (var o = 0; o < this._CommonSkillEffectPrefabMap[n].length; o++) c.AssetsManager.Instance.UnloadAsset(this._CommonSkillEffectPrefabMap[n][o]);
                    if (this._CommonSkillEffectPrefabMap = null, this.TeamBuffEffectMap) {
                        for (var r in this.TeamBuffEffectMap)
                            for (var n in this.TeamBuffEffectMap[r]) this.TeamBuffEffectMap[r][n] && P.default.RemoveCommonBuffEffect(this.TeamBuffEffectMap[r][n], n);
                        this.TeamBuffEffectMap = null
                    }
                    if (this._PreSkillEffectItem && this._PreSkillEffectItem.node.destroy(), this._PreSkillEffectItem = null, this._HeroPortraitPrefabMap)
                        for (var n in this._HeroPortraitPrefabMap) c.AssetsManager.Instance.UnloadAsset(this._HeroPortraitPrefabMap[n]);
                    for (var n in this._HeroPortraitPrefabMap = null, this._PreSkillEffectPrefab && c.AssetsManager.Instance.UnloadAsset(this._PreSkillEffectPrefab), this._PreSkillEffectPrefab = null, this.ActorMap) {
                        var i = this.ActorMap[n];
                        i && i.node && (i.UnLoad(), w.BattleData.PutBattleActor(i.node))
                    }
                    for (var n in this.ActorMap = null, this.CampAngelInfoPanels) {
                        if (this.CampAngelInfoPanels[n].AngelId = 0, this.CampAngelInfoPanels[n].AngelPic.spriteFrame = null, this.CampAngelInfoPanels[n].PetIcons.length > 0)
                            for (var a = 0, s = this.CampAngelInfoPanels[n].PetIcons; a < s.length; a++) s[a].Dispose();
                        this.CampAngelInfoPanels[n].PetInfoList.removeAllChildren()
                    }
                    null === (e = this.AngelStartEffectNode) || void 0 === e || e.node.removeFromParent(!0), null === (t = this.AngelEndEffectNode) || void 0 === t || t.node.removeFromParent(!0), this.AngelStartEffectNode = null, this.AngelEndEffectNode = null, this.AngelStartEffectPrefab && (c.AssetsManager.Instance.UnloadAsset(this.AngelStartEffectPrefab), this.AngelStartEffectPrefab = null), this.AngelEndEffectPrefab && (c.AssetsManager.Instance.UnloadAsset(this.AngelEndEffectPrefab), this.AngelEndEffectPrefab = null), this.BossElementShieldNode.destroyAllChildren(), this._ElementShieldItemPrefab = null, this._ElementShieldItems = []
                }, e.prototype.LoadCommonSkillAsset = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, u, d, h, f;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (!this.ViewPort.BattlePlayer.Report.CommonSkillIds) return [2];
                                    e = this.ViewPort.Id, t = 0, s.label = 1;
                                case 1:
                                    if (!(t < this.ViewPort.BattlePlayer.Report.CommonSkillIds.length)) return [3, 7];
                                    if (!(n = p.ConfigDataComponent.Instance.GetConfigById(m.SkillBase_Config, this.ViewPort.BattlePlayer.Report.CommonSkillIds[t])) || !n.CoreModel) return [3, 6];
                                    if (!(o = p.ConfigDataComponent.Instance.GetHeroSkillConfig(n.CoreModel))) return [3, 6];
                                    s.label = 2;
                                case 2:
                                    return s.trys.push([2, 5, , 6]), [4, c.AssetsManager.Instance.LoadAsset(o.BundleName + "/SkillEffect", cc.Prefab)];
                                case 3:
                                    return r = s.sent(), this.ViewPort.Id != e ? (c.AssetsManager.Instance.UnloadAsset(r), [2]) : (this._CommonSkillEffectPrefabMap[n.Id] = [r], L.AudioManager.Instance.EffectVolume <= 0 ? [3, 6] : [4, c.AssetsManager.Instance.LoadAsset(o.BundleName + "/Sounds", cc.Prefab)]);
                                case 4:
                                    if (i = s.sent(), this.ViewPort.Id != e) return c.AssetsManager.Instance.UnloadAsset(i), [2];
                                    for (this._CommonSkillEffectPrefabMap[n.Id][1] = i, a = cc.instantiate(i), l = a.getComponent(S.default), u = {}, d = 0; d < l.Sounds.length; d++) l.Sounds[d] && (h = l.Sounds[d].name, u[h] = l.Sounds[d]);
                                    return this._CommonSkillSoundMap[n.Id] = u, [3, 6];
                                case 5:
                                    return f = s.sent(), cc.error("download common skill [" + n.Id + "] asset error: " + f), [3, 6];
                                case 6:
                                    return t++, [3, 1];
                                case 7:
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.LoadPreSkillEffectAssets = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return n = this.ViewPort.Id, e ? (this._HeroPortraitPrefabMap || (this._HeroPortraitPrefabMap = {}), [4, c.AssetsManager.Instance.LoadAsset(e.UIAvatar + "/Avatar", cc.Prefab)]) : [3, 2];
                                case 1:
                                    return o = i.sent(), this.ViewPort.Id != n ? (c.AssetsManager.Instance.UnloadAsset(o), [2]) : (this._HeroPortraitPrefabMap[e.Id] = o, [3, 4]);
                                case 2:
                                    return t ? [4, c.AssetsManager.Instance.LoadAsset(t, cc.Prefab)] : [3, 4];
                                case 3:
                                    if (r = i.sent(), this.ViewPort.Id != n) return c.AssetsManager.Instance.UnloadAsset(r), [2];
                                    this._PreSkillEffectPrefab = r, i.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.LoadCommonAngelAsset = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this.ViewPort.BattlePlayer.Report.CommonSkillIds ? (e = this.ViewPort.Id, [4, c.AssetsManager.Instance.LoadAsset("BattleUI/AngelStartEffect", cc.Prefab)]) : [2];
                                case 1:
                                    return t = o.sent(), this.ViewPort.Id != e ? (c.AssetsManager.Instance.UnloadAsset(t), [2]) : (this.AngelStartEffectPrefab = t, (n = cc.instantiate(this.AngelStartEffectPrefab)).setParent(this.EffectLayer), this.AngelStartEffectNode = n.getComponent(sp.Skeleton), [4, c.AssetsManager.Instance.LoadAsset("BattleUI/AngelEndEffect", cc.Prefab)]);
                                case 2:
                                    return t = o.sent(), this.ViewPort.Id != e ? (c.AssetsManager.Instance.UnloadAsset(t), [2]) : (this.AngelEndEffectPrefab = t, (n = cc.instantiate(this.AngelEndEffectPrefab)).setParent(this.EffectLayer), this.AngelEndEffectNode = n.getComponent(sp.Skeleton), [2])
                            }
                        })
                    })
                }, e.prototype.ChangeBattlePlaySpeed = function(e) {
                    for (var t in this._EffectSkeletonMap) this._EffectSkeletonMap[t].timeScale = e;
                    for (var t in this._PlayingSounds) this._PlayingSounds[t] && this._PlayingSounds[t].isPlaying && (cc.sys.isNative || (this._PlayingSounds[t].audio._element._currentSource.playbackRate.value = e))
                }, e.prototype.RefreshTeamEffect = function(e) {
                    var t = this.TeamBuffEffectMap[e.HeroInfo.Id];
                    if (t) {
                        var n = {};
                        for (var o in e.BuffMap) {
                            var r = e.BuffMap[o];
                            r.Desc && (this.AddTeamBuffEffect(e, r), 1 == r.Desc.EffectType && (n[r.Desc.Id] = 1))
                        }
                        for (var o in t) n[o] || (P.default.RemoveCommonBuffEffect(t[o], o), delete t[o])
                    }
                }, e.prototype.AddTeamBuffEffect = function(e, t) {
                    if (1 == t.Desc.EffectType) {
                        var n = this.TeamBuffEffectMap[e.HeroInfo.Id];
                        if (n) {
                            var o = t.Desc.Id;
                            if (!n[o]) {
                                var r = w.BattleData.GetCommonBuffEffect(o);
                                if (r) {
                                    var i = r.getComponent(sp.Skeleton);
                                    n[o] = i, t.Desc.ZIndex > 0 ? r.parent = this.EffectLayer : r.parent = this.EffectLayer2, r.zIndex = t.Desc.ZIndex;
                                    var a = T.BattleHelper.GetBattleFieldPosition(1, 1, e.Camp);
                                    r.x = a.x, r.y = a.y, r.active = !0, i.clearTracks(), i.setToSetupPose()
                                }
                            }
                        }
                    }
                }, e.prototype.RemoveTeamBuffEffect = function(e, t) {
                    if (1 == t.Desc.EffectType) {
                        var n = this.TeamBuffEffectMap[e.HeroInfo.Id];
                        if (n) {
                            var o = t.Desc.Id;
                            n[o] && (P.default.RemoveCommonBuffEffect(n[o], o), delete n[o])
                        }
                    }
                }, e.prototype.AddTeamBuff = function(e, t, n) {
                    return void 0 === n && (n = 1), a(this, void 0, void 0, function() {
                        var o, r;
                        return s(this, function() {
                            if (!e.BuffMap[t]) {
                                if (o = p.ConfigDataComponent.Instance.GetConfigById(m.BuffBase_Config, t), !(r = p.ConfigDataComponent.Instance.GetConfigById(m.BuffDescription_Config, o.DescriptionId))) return [2];
                                e.BuffMap[t] = {
                                    BuffId: t,
                                    Count: 0,
                                    Config: o,
                                    Desc: r
                                }
                            }
                            return e.BuffMap[t].Count += n, this.AddTeamBuffEffect(e, e.BuffMap[t]), [2]
                        })
                    })
                }, e.prototype.RemoveTeamBuff = function(e, t, n) {
                    if (void 0 === n && (n = 1), e.BuffMap[t]) {
                        e.BuffMap[t].Count -= n;
                        var o = e.BuffMap[t];
                        e.BuffMap[t].Count > 0 ? this.AddTeamBuffEffect(e, o) : (delete e.BuffMap[t], this.RemoveTeamBuffEffect(e, o))
                    }
                }, e.prototype.UpdateTeamEffect = function() {
                    if (this.TeamBuffEffectMap)
                        for (var e in this.TeamBuffEffectMap)
                            for (var t in this.TeamBuffEffectMap[e]) "play" != this.TeamBuffEffectMap[e][t].animation && this.TeamBuffEffectMap[e][t].setAnimation(0, "play", !0), this.TeamBuffEffectMap[e][t].timeScale != this.ViewPort.BattlePlaySpeed && (this.TeamBuffEffectMap[e][t].timeScale = this.ViewPort.BattlePlaySpeed)
                }, e.prototype.Update = function(e) {
                    if (this.UpdateTeamEffect(), this._CurrentSkillEvents && this._CurrentPerformer)
                        if (this._NeedPauseTime || (this._CurrentPlayTime += Math.floor(1e3 * e)), this._CurrentPlayTime >= this._CurrentSkillDuration) this._IsHeroAngelPerformSkill ? this.MoveAngelToHeroPos() : this.CleanUp();
                        else
                            for (var t = this._CurrentPerformer, n = this, o = function() {
                                    var e = r._CurrentSkillEvents[r._CurrentIndex];
                                    if (r._CurrentPlayTime < e.StartTime) return "break";
                                    var o = Math.max(0, e.Duration + e.StartTime - r._CurrentPlayTime);
                                    switch (e.EventType) {
                                        case d.SkillEventType.PlayAction:
                                            t.PlayAction(e.ActionName), r.ViewPort.TweenManager.Tween().Delay(e.Duration / 1e3).Call(function() {
                                                t.PlayAction(d.SkillAnimationType.Standby)
                                            }).Start();
                                            break;
                                        case d.SkillEventType.PlaySound:
                                            if (L.AudioManager.Instance.EffectVolume <= 0) break;
                                            var i = null;
                                            if (r._CurrentIsCommonSkill ? r._CommonSkillSoundMap[r._CurrentSkillId] && r._CommonSkillSoundMap[r._CurrentSkillId][e.ActionName] && (i = r._CommonSkillSoundMap[r._CurrentSkillId][e.ActionName]) : i = t.SoundMap ? t.SoundMap[e.ActionName] : null, i) {
                                                for (var a = null, s = 0; s < r._PlayingSounds.length; s++)
                                                    if (r._PlayingSounds[s] && !r._PlayingSounds[s].isPlaying) {
                                                        a = r._PlayingSounds[s];
                                                        break
                                                    } if (!a) {
                                                    var l = new cc.Node;
                                                    l.addComponent(cc.AudioSource), (a = l.getComponent(cc.AudioSource)).volume = L.AudioManager.Instance.EffectVolume, r._PlayingSounds.push(a)
                                                }
                                                a.clip = i, a.play(), cc.sys.isNative || (a.audio._element._currentSource.playbackRate.value = r.ViewPort.BattlePlaySpeed)
                                            }
                                            break;
                                        case d.SkillEventType.MoveTo:
                                            var c = (b = r.GetSkillTargetReferencePosition(e, r._CurrentSkillTargets)).x + e.TargetDistance * -t.HeroData.Camp,
                                                u = b.y;
                                            if (r.ViewPort.TweenManager.ClearTargetTweens(t.node), e.IsBlink) {
                                                var p = t.node.opacity,
                                                    h = o / 1e3 / 3;
                                                r.ViewPort.TweenManager.Tween(t.node).To(h, {
                                                    opacity: 0
                                                }).Delay(h).Call(function() {
                                                    t.node.x = c, t.node.y = u
                                                }).To(h, {
                                                    opacity: p
                                                }).Start()
                                            } else r.ViewPort.TweenManager.Tween(t.node).To(o / 1e3, {
                                                x: c,
                                                y: u
                                            }, {
                                                Easing: cc.easeIn(4)
                                            }).Start();
                                            break;
                                        case d.SkillEventType.MoveBack:
                                            r.ViewPort.TweenManager.ClearTargetTweens(t.node), e.IsBlink ? (p = t.node.opacity, h = o / 1e3 / 3, r.ViewPort.TweenManager.Tween(t.node).To(h, {
                                                opacity: 0
                                            }).Delay(h).Call(function() {
                                                t.node.x = t.StandByPosition.x, t.node.y = t.StandByPosition.y
                                            }).To(h, {
                                                opacity: p
                                            }).OnEnd(function() {
                                                t.StandBy()
                                            }).Start()) : r.ViewPort.TweenManager.Tween(t.node).To(o / 1e3, {
                                                x: t.StandByPosition.x,
                                                y: t.StandByPosition.y
                                            }, {
                                                Easing: cc.easeOut(4)
                                            }).OnEnd(function() {
                                                t.PlayAction(d.SkillAnimationType.Standby)
                                            }).Start();
                                            break;
                                        case d.SkillEventType.WeaponEffect:
                                            if (o > 0) {
                                                var f = r._CurrentIsCommonSkill,
                                                    y = t.HeroData.HeroInfo.Id;
                                                f && (y = r._CurrentSkillId);
                                                var g = r.GetBattleEffect(y, f, e.ShowAtBottom);
                                                if (!g) break;
                                                var m = e.OffsetX * t.AvatarScale * t.HeroData.Camp,
                                                    I = e.OffsetY * t.AvatarScale;
                                                g.node.position = new cc.Vec3(t.node.position.x + m, t.node.position.y + I, 0), g.node.scaleX = t.AvatarScale * t.HeroData.Camp * d.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X, g.node.scaleY = t.AvatarScale, r.ViewPort.TweenManager.Tween(g.node).Delay(o / 1e3).OnEnd(function() {
                                                    n.PutBattleEffect(y, g, f)
                                                }).Start(), r.PlayAction(g, e.ActionName)
                                            }
                                            break;
                                        case d.SkillEventType.BattleEffect:
                                            if (o > 0) {
                                                var _ = r._CurrentIsCommonSkill,
                                                    C = t.HeroData.HeroInfo.Id;
                                                _ && (C = r._CurrentSkillId);
                                                var v = r.GetBattleEffect(C, _, e.ShowAtBottom);
                                                if (!v) break;
                                                var b = r.GetBattleEffectPos(e);
                                                v.node.position = b;
                                                var S = d.CampType.Defender;
                                                if (r._CurrentSkillTargets.length > 0) {
                                                    var w = r.ActorMap[r._CurrentSkillTargets[0]];
                                                    w && (S = w.HeroData.Camp)
                                                }
                                                v.node.scaleX = -S * d.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR * d.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X, v.node.scaleY = d.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR, r.ViewPort.TweenManager.Tween(v.node).Delay(o / 1e3).OnEnd(function() {
                                                    n.PutBattleEffect(C, v, _)
                                                }).Start(), r.PlayAction(v, e.ActionName)
                                            }
                                            break;
                                        case d.SkillEventType.Bullet:
                                            if (o > 0) {
                                                var P = t.HeroData.HeroInfo.Id,
                                                    A = r._CurrentIsCommonSkill;
                                                A && (P = r._CurrentSkillId);
                                                var R = function(i) {
                                                    var a = r.ActorMap[r._CurrentSkillTargets[i]];
                                                    if (!a) return "continue";
                                                    var s = r.GetBattleEffect(P, A, e.ShowAtBottom);
                                                    if (!s) return "break";
                                                    s.node.scaleX = d.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR * d.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X, s.node.scaleY = d.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR, s.node.position = cc.v3(t.node.position.x + e.OffsetX * t.AvatarScale * t.HeroData.Camp, t.node.position.y + e.OffsetY * t.AvatarScale, 0);
                                                    var l = {
                                                        x: a.node.position.x,
                                                        y: a.node.position.y + a.HeroData.HeroConfig.HUDOffsetY / 2 * a.AvatarScale
                                                    };
                                                    s.node.angle = T.BattleHelper.GetBulletAngle(l, s.node.position), r.ViewPort.TweenManager.Tween(s.node).To(o / 1e3, l).OnEnd(function() {
                                                        n.PutBattleEffect(P, s, A)
                                                    }).Start(), r.PlayAction(s, e.ActionName, !0)
                                                };
                                                for (s = 0; s < r._CurrentSkillTargets.length && "break" !== R(s); s++);
                                            }
                                            break;
                                        case d.SkillEventType.HitPoint:
                                            r.DealWithHitPoint(e, r._CurrentSkillHitPoints);
                                            break;
                                        case d.SkillEventType.ScreenEffect:
                                            if (o > 0) switch (e.ActionName) {
                                                case d.SkillScreenEffectType.DarkScreen:
                                                    r.ViewPort.TweenManager.ClearTargetTweens(r.ViewPort.BgMask), r.ViewPort.TweenManager.Tween(r.ViewPort.BgMask).OnEnd(function() {
                                                        n.ViewPort.BgMask.opacity = 0
                                                    }).To(.2, {
                                                        opacity: 190
                                                    }).Delay(Math.max(0, o - 400) / 1e3).To(.2, {
                                                        opacity: 0
                                                    }).Start();
                                                    break;
                                                case d.SkillScreenEffectType.ShockScreen:
                                                    r.ViewPort.TweenManager.ClearTargetTweens(r.ViewPort.BattleRoot);
                                                    for (var k = r.ViewPort.TweenManager.Tween(r.ViewPort.BattleRoot).OnEnd(function() {
                                                            n.ViewPort.BattleRoot.x = 0, n.ViewPort.BattleRoot.y = 0
                                                        }), O = (h = o / 1e3, 0), M = -1; O < h;) k.To(Math.min(.03, h - O), {
                                                        y: 6 * M,
                                                        x: 3 - Math.floor(7 * Math.random())
                                                    }, {
                                                        Easing: cc.easeOut(2)
                                                    }), M = -M, O += .03;
                                                    k.Start()
                                            }
                                    }
                                    r._CurrentIndex++
                                }, r = this; this._CurrentIndex < this._CurrentSkillEvents.length && "break" !== o(););
                }, e.prototype.DealWithHitPoint = function(e, t) {
                    var n = this._CurrentPerformer,
                        o = null != n && null != e,
                        r = !1,
                        i = null == e ? 1 : e.HitPointId;
                    i < 0 && (r = !0, i = -i);
                    var a = t[i - 1];
                    if (a) {
                        var s = a.Events,
                            l = this;
                        if (n && e && e.ActionName) {
                            for (var c = {}, u = 0, p = s.length; u < p; ++u)
                                if (s[u].EventType <= 20) {
                                    var h = this.ActorMap[s[u].TargetId];
                                    h && (c[h.HeroData.HeroInfo.Id] = h)
                                } var f = this._CurrentIsCommonSkill,
                                y = n.HeroData.HeroInfo.Id;
                            f && (y = this._CurrentSkillId);
                            var g = function(t) {
                                    var n = c[t],
                                        o = _.GetBattleEffect(y, f, e.ShowAtBottom);
                                    if (!o) return "break";
                                    o.node.scaleX = -n.HeroData.Camp * n.AvatarScale * d.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X, o.node.scaleY = n.AvatarScale, o.node.position = cc.v3(n.node.position.x + -n.HeroData.Camp * e.OffsetX * n.AvatarScale, n.node.position.y + e.OffsetY * n.AvatarScale), _.ViewPort.TweenManager.Tween(o.node).Delay(e.Duration / 1e3).OnEnd(function() {
                                        l.PutBattleEffect(y, o, f)
                                    }).Start(), _.PlayAction(o, e.ActionName)
                                },
                                _ = this;
                            for (var C in c)
                                if ("break" === g(C)) break
                        }
                        if (!r) {
                            var v = 0,
                                b = function(t) {
                                    var o = s[t].EventType,
                                        r = s[t].Value;
                                    if (s[t].TargetId < 0) {
                                        var i = S.ViewPort.BattlePlayer.HeroDatas[s[t].TargetId];
                                        return o == d.BattleReportHitPointEventType.AddBuff ? S.AddTeamBuff(i, r) : o == d.BattleReportHitPointEventType.RemoveBuff && S.RemoveTeamBuff(i, r), "continue"
                                    }
                                    var a = S.ActorMap[s[t].TargetId];
                                    if (!a) return "continue";
                                    var c = void 0;
                                    switch (a.HeroData.HeroInfo.Id > 0 && a.HeroData.HeroInfo.PetId > 0 && (c = S.ActorMap[-10 * a.HeroData.HeroInfo.Id]), o) {
                                        case d.BattleReportHitPointEventType.Damage:
                                        case d.BattleReportHitPointEventType.AdvanceDamage:
                                        case d.BattleReportHitPointEventType.Crit:
                                            var u = R.FloatNumberType.Normal;
                                            o == d.BattleReportHitPointEventType.AdvanceDamage ? u = R.FloatNumberType.Restrain : o == d.BattleReportHitPointEventType.Crit && (u = R.FloatNumberType.Critical), a.ShowFloatNumber(u, r), a.DealWithHP(-r), e && !e.NoHurtAction && a.PerformHurtAnimation(), v += r, a.HeroData.UseBossHUD;
                                            break;
                                        case d.BattleReportHitPointEventType.ShieldDamage:
                                        case d.BattleReportHitPointEventType.ShieldSpDamage:
                                            a.ShowFloatNumber(R.FloatNumberType.Absorb, r);
                                            break;
                                        case d.BattleReportHitPointEventType.Cure:
                                        case d.BattleReportHitPointEventType.ExtraCure:
                                            a.ShowFloatNumber(R.FloatNumberType.Healing, r), a.DealWithHP(r), a.HeroData.UseBossHUD;
                                            break;
                                        case d.BattleReportHitPointEventType.Dodge:
                                            a.ShowFloatNumber(R.FloatNumberType.Dodge);
                                            break;
                                        case d.BattleReportHitPointEventType.Revive:
                                            a.Revive(), c && c.Revive();
                                            break;
                                        case d.BattleReportHitPointEventType.Die:
                                            a.Die(), c && c.Die();
                                            break;
                                        case d.BattleReportHitPointEventType.ShareDamage:
                                            v += r, a.ShowFloatNumber(R.FloatNumberType.Normal, r), a.DealWithHP(-r);
                                            break;
                                        case d.BattleReportHitPointEventType.ExtraDamage:
                                            a.ShowFloatNumber(R.FloatNumberType.Additional, r), a.DealWithHP(-r), n && s[t].Params[0] == n.HeroData.HeroInfo.Id && (v += r), a.HeroData.UseBossHUD;
                                            break;
                                        case d.BattleReportHitPointEventType.FloatWord:
                                            if (p = I.ConfigDataComponent.Instance.GetConfigById(m.BuffDescription_Config, r)) {
                                                a.ShowFloatBuff(p);
                                                break
                                            }
                                            break;
                                        case d.BattleReportHitPointEventType.PlayCommonEffect:
                                            var p, h = r;
                                            if (!(p = I.ConfigDataComponent.Instance.GetConfigById(m.BuffDescription_Config, h))) break;
                                            var f = l.GetCommonBuffEffect(h);
                                            if (!f) break;
                                            var y = f.getComponent(sp.Skeleton);
                                            f.parent = a.EffectRootOuter, f.zIndex = 1001, f.y = 1 == p.EffectPosition ? a.HeroData.HeroConfig.HUDOffsetY : 0, f.active = !0, S.PlayAction(y, "play"), y.timeScale = S.ViewPort.BattlePlaySpeed;
                                            var g = y.skeletonData.getRuntimeData().animations[0].duration + .1;
                                            S.ViewPort.TweenManager.Tween().OnEnd(function() {
                                                y && y.node && (y.clearTracks(), y.node.active = !1, l.PutCommonBuffEffect(y.node, h))
                                            }).Delay(g).Start();
                                            break;
                                        case d.BattleReportHitPointEventType.AddBuff:
                                            a.AddBuff(r);
                                            break;
                                        case d.BattleReportHitPointEventType.RemoveBuff:
                                            a.RemoveBuff(r);
                                            break;
                                        case d.BattleReportHitPointEventType.SwitchBattleSkin:
                                            var _ = 0;
                                            switch (s[t].Params && 1 == s[t].Params[0] && (_ = 1), _) {
                                                case 0:
                                                    a.SwitchToSpecialAvatar(r);
                                                    break;
                                                case 1:
                                                    a.CurAvatar = r
                                            }
                                            break;
                                        case d.BattleReportHitPointEventType.ElementShield:
                                            var C = s[t].Params[0],
                                                b = s[t].Params[1] + r;
                                            a.DealWithElementShield(C, b)
                                    }
                                },
                                S = this;
                            for (u = 0, p = s.length; u < p; ++u) b(u);
                            v > 0 && o && this.AddTotalDMG(v)
                        }
                    }
                }, e.prototype.HeroPerformSkill = function(e) {
                    var t = this;
                    this.CleanUp(!0);
                    var n = p.ConfigDataComponent.Instance.GetConfigById(m.SkillBase_Config, e.SkillId);
                    if (n.Type == d.SkillType.Pet ? this._CurrentPerformer = this.ActorMap[-10 * e.HeroId] : this._CurrentPerformer = this.ActorMap[e.HeroId], this._CurrentPerformer) {
                        var o = this._CurrentPerformer.node.position;
                        this._CurrentPerformer.node.parent = this.StageLayer, this._CurrentPerformer.node.position = o;
                        var r = this._CurrentPerformer.HeroData.SkillConfig.Skills[n.ActionIndex - 1];
                        if (this._CurrentSkillId = e.SkillId, this._CurrentIsCommonSkill = n.Type == d.SkillType.Core, this._CurrentIsCommonSkill && (r = p.ConfigDataComponent.Instance.GetHeroSkillConfig(n.CoreModel).Skills[n.ActionIndex - 1]), r) {
                            this._CurrentSkillTargets = e.SkillTargets, this._CurrentSkillHitPoints = e.HitPoints, this._CurrentSkillDuration = r.Duration, this._CurrentIndex = 0, this._CurrentPlayTime = 0, this._EffectSkeletonMap = {}, this._ProtecterMap = {}, this._PlayingSounds = [];
                            var i = function() {
                                if (n.Type == d.SkillType.BurstAttack ? (t.ShowSkillIndicator(t._CurrentPerformer, e.SkillId), t._CurrentPerformer.HeroData.Camp == d.CampType.Attacker && t.ViewPort.PerformSkillCasting(t._CurrentPerformer.HeroData.HeroInfo.Id, !1)) : n.Type == d.SkillType.Core ? t.ShowSkillIndicator(t._CurrentPerformer, e.SkillId) : n.Type == d.SkillType.Pet && t.ShowPetSkillIndicator(t._CurrentPerformer, e.SkillId), t._CurrentPerformer.HeroData.HeroInfo.Id < 0) {
                                    t._CurrentPerformer.node.active = !0;
                                    var o = p.ConfigDataComponent.Instance.GetConfigById(m.AngelBase_Config, t._CurrentPerformer.HeroData.HeroInfo.HeroId);
                                    o && !o.CustomEffect && t.AngelStartEffectNode && (t.AngelStartEffectNode.node.x = t._CurrentPerformer.node.x, t.AngelStartEffectNode.node.y = t._CurrentPerformer.node.y, t.AngelStartEffectNode.clearTracks(), t.AngelStartEffectNode.setAnimation(0, "play", !1))
                                }
                                for (var r = 0; r < e.HitPoints.length; r++)
                                    for (var i = function(n) {
                                            var o = e.HitPoints[r].Events[n];
                                            if (o.EventType == d.BattleReportHitPointEventType.ShareDamage) {
                                                if (t._ProtecterMap[o.TargetId]) return "continue";
                                                var i = t.ActorMap[o.TargetId];
                                                t._ProtecterMap[o.TargetId] = i;
                                                var a = t.ActorMap[o.Params[0]];
                                                if (!a) return "break";
                                                t.ViewPort.TweenManager.ClearTargetTweens(i.node);
                                                var s = {
                                                    x: a.StandByPosition.x + 100 * a.HeroData.Camp,
                                                    y: a.StandByPosition.y
                                                };
                                                t.ViewPort.TweenManager.Tween(i.node).To(.15, {
                                                    x: s.x,
                                                    y: s.y
                                                }, {
                                                    Easing: cc.easeOut(3)
                                                }).Call(function() {
                                                    i.SetAvatarOrientation(a.HeroData.Camp)
                                                }).Start()
                                            }
                                        }, a = 0; a < e.HitPoints[r].Events.length && "break" !== i(a); a++);
                            };
                            this._CurrentPerformer.HeroData.HeroAngelId > 0 && n.Type == d.SkillType.BurstAttack ? this.AngelEndEffectNode && (this.IsPauseTime(!0), this.AngelEndEffectNode.node.x = this._CurrentPerformer.node.x, this.AngelEndEffectNode.node.y = this._CurrentPerformer.node.y, this.AngelEndEffectNode.clearTracks(), this.AngelEndEffectNode.setAnimation(0, "play", !1), this.AngelEndEffectNode.timeScale = this.ViewPort.BattlePlaySpeed, this._CurrentPerformer.node.active = !1, this.AngelEndEffectNode.setCompleteListener(function() {
                                if (t.AngelStartEffectNode) {
                                    var e = T.BattleHelper.GetBattleFieldPositionByStationId(-1, t._CurrentPerformer.HeroData.Camp);
                                    t.AngelStartEffectNode.node.x = e.x, t.AngelStartEffectNode.node.y = e.y, t._CurrentPerformer.node.x = e.x, t._CurrentPerformer.node.y = e.y, t.AngelStartEffectNode.clearTracks(), t.AngelStartEffectNode.setAnimation(0, "play", !1), t.AngelStartEffectNode.timeScale = t.ViewPort.BattlePlaySpeed, t._CurrentPerformer.node.active = !0, t._CurrentSkillEvents = r.Events, t._IsHeroAngelPerformSkill = !0, t._IsMoveEnd = !0, t.IsPauseTime(!1), i()
                                }
                            })) : this._CurrentPerformer.HeroData.HeroConfig && this._CurrentPerformer.HeroData.HeroConfig.CoreHero == d.CoreHeroTag.LR && this._CurrentPerformer.HeroData.HeroConfig.ElementType == d.HeroElementType.Chaos && n.Type == d.SkillType.BurstAttack && !_.default.GetFunctionSkipState(d.FunctionSkipKey.BattleSkillEffect) && this._HeroPortraitPrefabMap[this._CurrentPerformer.HeroData.HeroConfig.Id] && this._PreSkillEffectPrefab ? (this.IsPauseTime(!0), this.SetPreSkillEffect(this._CurrentPerformer.HeroData, function() {
                                t._CurrentSkillEvents = r.Events, t._PreSkillEffectItem && (t._PreSkillEffectItem.node.active = !1), t.IsPauseTime(!1), i()
                            })) : (this._CurrentSkillEvents = r.Events, i())
                        } else this.DealWithHitPoint(null, e.HitPoints)
                    }
                }, e.prototype.IsPauseTime = function(e) {
                    this._NeedPauseTime = e, this.ViewPort.BattlePlayer.IsPauseTime(e)
                }, e.prototype.MoveAngelToHeroPos = function() {
                    var e = this;
                    if (this._CurrentPerformer.HeroData.HeroAngelId > 0 && this._IsHeroAngelPerformSkill && this._IsMoveEnd && (this._IsMoveEnd = !1, this.AngelEndEffectNode)) {
                        this.IsPauseTime(!0);
                        var t = T.BattleHelper.GetBattleFieldPositionByStationId(-1, this._CurrentPerformer.HeroData.Camp);
                        this.AngelEndEffectNode.node.x = t.x, this.AngelEndEffectNode.node.y = t.y, this.AngelEndEffectNode.clearTracks(), this.AngelEndEffectNode.setAnimation(0, "play", !1), this.AngelEndEffectNode.timeScale = this.ViewPort.BattlePlaySpeed, this._CurrentPerformer.node.active = !1, this.AngelEndEffectNode.setCompleteListener(function() {
                            e.AngelStartEffectNode && (e.AngelStartEffectNode.node.x = e._CurrentPerformer.StandByPosition.x, e.AngelStartEffectNode.node.y = e._CurrentPerformer.StandByPosition.y, e._CurrentPerformer.node.x = e._CurrentPerformer.StandByPosition.x, e._CurrentPerformer.node.y = e._CurrentPerformer.StandByPosition.y, e.AngelStartEffectNode.clearTracks(), e.AngelStartEffectNode.setAnimation(0, "play", !1), e.AngelStartEffectNode.timeScale = e.ViewPort.BattlePlaySpeed, e._CurrentPerformer.node.active = !0, e.IsPauseTime(!1), e._IsHeroAngelPerformSkill = !1)
                        })
                    }
                }, e.prototype.SetPreSkillEffect = function(e, t) {
                    if (this._PreSkillEffectItem || this._PreSkillEffectPrefab) {
                        if (!this._PreSkillEffectItem) {
                            var n = cc.instantiate(this._PreSkillEffectPrefab);
                            n.parent = this.ViewPort.node, this._PreSkillEffectItem = n.getComponent(O.default)
                        }
                        this._PreSkillEffectItem.node.active = !0, this._PreSkillEffectItem.Init(this._HeroPortraitPrefabMap[e.HeroConfig.Id], t, e)
                    } else this.IsPauseTime(!1)
                }, e.prototype.SetEntranceAnimationComplete = function() {
                    if (this._EntranceAniCompleteHeroCount++, this._EntranceAniCompleteHeroCount == this._EntranceAniHeroCount) {
                        var e = p.RpcComponent.Instance.ServerTime - this.ViewPort.BattlePlayer.EntranceAniStartTime;
                        this.ViewPort.BattlePlayer.CurrentDataPlayTime + e >= this.ViewPort.BattlePlayer.CurrentDataDuration ? this.ViewPort.BattlePlayer.CurrentDataPlayTime = this.ViewPort.BattlePlayer.CurrentDataDuration : this.ViewPort.BattlePlayer.CurrentDataPlayTime += e, this.IsPauseTime(!1), this.DealWithHitPoint(null, this.ViewPort.StartHints)
                    }
                }, e.prototype.CleanUp = function(e) {
                    var t, n;
                    if (void 0 === e && (e = !1), this.ClearTotalDMG(!e), this.ViewPort.TweenManager.ClearTargetTweens(this.ViewPort.BgMask), this.ViewPort.BgMask.opacity = 0, this._CurrentPerformer && (this._CurrentPerformer.node.parent = this._CurrentPerformer.IsPet ? this.UpperNormalLayer : this.NormalLayer, this._CurrentPerformer.StandBy(), this._CurrentPerformer.HeroData.HeroInfo.Id < 0 && !this._CurrentPerformer.IsPet)) {
                        this._CurrentPerformer.node.active = !1;
                        var o = p.ConfigDataComponent.Instance.GetConfigById(m.AngelBase_Config, this._CurrentPerformer.HeroData.HeroInfo.HeroId);
                        o && !o.CustomEffect && this.AngelEndEffectNode && (this.AngelEndEffectNode.node.x = this._CurrentPerformer.node.x, this.AngelEndEffectNode.node.y = this._CurrentPerformer.node.y, this.AngelEndEffectNode.clearTracks(), this.AngelEndEffectNode.setAnimation(0, "play", !1))
                    }
                    if (this._ProtecterMap) {
                        var r = function(t) {
                                var n = i._ProtecterMap[t];
                                i.ViewPort.TweenManager.ClearTargetTweens(n.node), e ? n.StandBy() : i.ViewPort.TweenManager.Tween(n.node).OnEnd(function() {
                                    n.StandBy()
                                }).To(.1, {
                                    x: n.StandByPosition.x,
                                    y: n.StandByPosition.y
                                }, {
                                    Easing: cc.easeInOut(3)
                                }).Start()
                            },
                            i = this;
                        for (var a in this._ProtecterMap) r(a);
                        this._ProtecterMap = null
                    }
                    if (this._CurrentSkillEvents = null, this._CurrentPerformer = null, this._CurrentSkillTargets = null, this._CurrentSkillHitPoints = null, this._CurrentSkillDuration = 0, this._CurrentIndex = 0, this._CurrentPlayTime = 0, this._NeedPauseTime = !1, this._IsMoveEnd = !0, this.ViewPort.BattlePlayer.IsPauseTime(!1), e) {
                        for (var a in this._EffectSkeletonMap) this._EffectSkeletonMap[a] && !this._EffectSkeletonMap[a].node || this.ViewPort.TweenManager.ClearTargetTweens(this._EffectSkeletonMap[a].node);
                        if (this._PlayingSounds) {
                            for (var s = 0; s < this._PlayingSounds.length; s++) null === (t = this._PlayingSounds[s]) || void 0 === t || t.stop(), null === (n = this._PlayingSounds[s].node) || void 0 === n || n.destroy();
                            this._PlayingSounds = null
                        }
                    }
                }, e.prototype.GetCommonBuffEffect = function(e) {
                    var t = w.BattleData.GetCommonBuffEffect(e);
                    if (t) {
                        var n = t.getComponent(sp.Skeleton);
                        this._EffectSkeletonMap[t.uuid] = n
                    }
                    return t
                }, e.prototype.PutCommonBuffEffect = function(e, t) {
                    e && (this._EffectSkeletonMap[e.uuid] && delete this._EffectSkeletonMap[e.uuid], w.BattleData.PutCommonBuffEffect(e, t))
                }, e.prototype.GetBattleEffect = function(e, t, n) {
                    if (void 0 === n && (n = !1), t) return this.GetCommonSkillEffect(e, n);
                    if (!this.ActorMap[e]) return null;
                    this._BattleEffectPools[e] || (this._BattleEffectPools[e] = new cc.NodePool("BattleEffect_" + e));
                    var o = this._BattleEffectPools[e].get();
                    if (o || this._CurrentPerformer.EffectPrefab && (o = cc.instantiate(this._CurrentPerformer.EffectPrefab)), !o) return null;
                    var r = o.getComponent(sp.Skeleton);
                    return r.node.active = !0, r.node.angle = 0, r.node.parent = n ? this.EffectLayer2 : this.EffectLayer, this._EffectSkeletonMap[r.node.uuid] = r, r
                }, e.prototype.PutBattleEffect = function(e, t, n) {
                    n && this.PutCommonSkillEffect(e, t), t && t.node && t.node.active && (t.node.active = !1, this.ViewPort.TweenManager.ClearTargetTweens(t.node), this._EffectSkeletonMap[t.node.uuid] && delete this._EffectSkeletonMap[t.node.uuid], this._BattleEffectPools[e] || (this._BattleEffectPools[e] = new cc.NodePool("BattleEffect_" + e)), this._BattleEffectPools[e].put(t.node))
                }, e.prototype.GetCommonSkillEffect = function(e, t) {
                    void 0 === t && (t = !1);
                    var n = this._CommonSkillEffectPrefabMap[e];
                    if (!n) return null;
                    this._CommonSkillEffectPools[e] || (this._CommonSkillEffectPools[e] = new cc.NodePool("CommonSkillEffect_" + e));
                    var o = this._CommonSkillEffectPools[e].get();
                    if (o || n[0] && (o = cc.instantiate(n[0])), !o) return null;
                    var r = o.getComponent(sp.Skeleton);
                    return r.node.active = !0, r.node.angle = 0, r.node.parent = t ? this.EffectLayer2 : this.EffectLayer, this._EffectSkeletonMap[r.node.uuid] = r, r
                }, e.prototype.PutCommonSkillEffect = function(e, t) {
                    t && t.node && t.node.active && (t.node.active = !1, this.ViewPort.TweenManager.ClearTargetTweens(t.node), this._EffectSkeletonMap[t.node.uuid] && delete this._EffectSkeletonMap[t.node.uuid], this._CommonSkillEffectPools[e] || (this._CommonSkillEffectPools[e] = new cc.NodePool("CommonSkillEffect_" + e)), this._CommonSkillEffectPools[e].put(t.node))
                }, e.prototype.GetSkillTargetReferencePosition = function(e, t) {
                    var n = null;
                    switch (e.ReferenceType) {
                        case d.SkillTargetRefrence.Target:
                            n = (o = this.ActorMap[t[0]]).StandByPosition;
                            break;
                        case d.SkillTargetRefrence.TargetTeam:
                        case d.SkillTargetRefrence.TargetRow:
                            var o = this.ActorMap[t[0]];
                            n = T.BattleHelper.GetTeamCenterPosition(o.HeroData.Camp);
                            break;
                        case d.SkillTargetRefrence.TargetCol:
                            o = this.ActorMap[t[0]];
                            var r = T.BattleHelper.GetColIndex(o.HeroData.HeroInfo.StationId);
                            n = T.BattleHelper.GetBattleFieldPosition(0, r, o.HeroData.Camp);
                            break;
                        default:
                            n = {
                                x: 0,
                                y: 0
                            }
                    }
                    return n
                }, e.prototype.GetBattleEffectPos = function(e) {
                    var t = null,
                        n = d.CampType.Defender;
                    switch (this._CurrentSkillTargets.length > 0 && (o = this.ActorMap[this._CurrentSkillTargets[0]]) && (n = o.HeroData.Camp), e.ReferenceType) {
                        case d.SkillEffectRefrence.Attacker:
                            t = {
                                x: this._CurrentPerformer.node.position.x,
                                y: this._CurrentPerformer.node.position.y
                            };
                            break;
                        case d.SkillEffectRefrence.Target:
                            (o = this.ActorMap[this._CurrentSkillTargets[0]]) && (t = {
                                x: o.node.x,
                                y: o.node.position.y
                            });
                            break;
                        case d.SkillEffectRefrence.TargetTeam:
                            t = T.BattleHelper.GetTeamCenterPosition(n);
                            break;
                        case d.SkillEffectRefrence.MultiRowCenter:
                            var o, r = T.BattleHelper.GetTeamCenterPosition(n).y;
                            if (!(o = this.ActorMap[this._CurrentSkillTargets[0]])) break;
                            var i = o.node.position.x;
                            if (this._CurrentSkillTargets.length > 1) {
                                for (var a = {}, s = 0; s < this._CurrentSkillTargets.length; s++) {
                                    var l = this.ActorMap[this._CurrentSkillTargets[s]].node.position.x;
                                    a[Math.floor(Math.abs(l) / 100)] = l
                                }
                                var c = 0,
                                    u = 0;
                                for (var p in a) u += a[p], c++;
                                i = Math.floor(u / c)
                            }
                            t = {
                                x: i,
                                y: r
                            };
                            break;
                        case d.SkillEffectRefrence.BattleFiled:
                            t = {
                                x: 0,
                                y: 0
                            }
                    }
                    return t || (t = {
                        x: this._CurrentPerformer.node.position.x,
                        y: this._CurrentPerformer.node.position.y
                    }), cc.v3(t.x + -n * e.OffsetX, t.y + e.OffsetY, 0)
                }, e.prototype.ClearAction = function(e) {
                    e.clearTracks(), e.setToSetupPose()
                }, e.prototype.PlayAction = function(e, t, n) {
                    void 0 === n && (n = !1), this.ClearAction(e), e.timeScale = this.ViewPort.BattlePlaySpeed, e.setAnimation(0, t, n)
                }, e.prototype.PlayAngleInfoEffect = function() {
                    var e = {},
                        t = {};
                    for (var n in t[d.CampType.Attacker] = [], t[d.CampType.Defender] = [], this.ViewPort.BattlePlayer.HeroDatas) {
                        var o = this.ViewPort.BattlePlayer.HeroDatas[n];
                        o.HeroInfo.Id < 0 && o.HeroInfo.HeroId > 0 && (e[o.HeroInfo.Camp] = o.HeroInfo), o.HeroInfo.PetId > 0 && t[o.HeroInfo.Camp].push(o.HeroInfo.PetId)
                    }
                    var r = function(n) {
                            var o = e[n],
                                r = parseInt(n),
                                a = i.CampAngelInfoPanels[r];
                            a.PetIcons = [], a.AngelId = o.HeroId;
                            for (var s = 0, l = i.ViewPort.BattlePlayer.Report.Players; s < l.length; s++) {
                                var c = l[s];
                                c.Camp == r && (a.NameLabel.string = c.RoleName)
                            }
                            a.LevelLabel.string = "Lv." + o.Level, a.AngelPic.spriteFrame = i.ViewPort.AngelPictureMap ? i.ViewPort.AngelPictureMap[o.HeroId] : null;
                            var p = cc.instantiate(i.ViewPort.StarLevelPrefab);
                            p.parent = a.StarNode, p.x = p.y = 0, p.scale = 1;
                            var h = p.getComponent(v.LevelComponent),
                                f = r == d.CampType.Attacker ? v.StarLayoutMode.Left : v.StarLayoutMode.Right;
                            h.Init(o.StarLevel, 0, f);
                            for (var y = 0, g = t[r]; y < g.length; y++) {
                                var m = g[y],
                                    I = cc.instantiate(i.ViewPort.PetInfoNodePrefab),
                                    _ = I.getComponentInChildren(k.ItemComponent);
                                I.parent = a.PetInfoList;
                                var C = new u.UserPet_Model;
                                C.Sid = m, _.Init(C, k.ItemComponentType.Pet), a.PetIcons.push(_)
                            }
                            a.Root.active = !0;
                            var b = a.Root.width / 2 - d.GlobalSetting.DESIGN_SCREEN_WIDTH / 2,
                                S = b - a.Root.width / 2;
                            r == d.CampType.Defender && (S = (b = d.GlobalSetting.DESIGN_SCREEN_WIDTH / 2 - a.Root.width / 2) + a.Root.width / 2), a.Root.x = S, a.Root.opacity = 255, a.TopEffect.setAnimation(0, a.TopEffect.defaultAnimation, !1), a.BottomEffect.setAnimation(0, a.BottomEffect.defaultAnimation, !1);
                            var w = i;
                            i.ViewPort.TweenManager.ClearTargetTweens(a.Root), i.ViewPort.TweenManager.Tween(a.Root).To(.2, {
                                x: b
                            }, {
                                Easing: cc.easeOut(3)
                            }).Call(function() {
                                r == d.CampType.Attacker && e[d.CampType.Defender] && e[d.CampType.Attacker] && (w.AngelVsEffectNode.node.active = !0, w.AngelVsEffectNode.setAnimation(0, a.TopEffect.defaultAnimation, !1))
                            }).Delay(1.6).To(.2, {
                                opacity: 0
                            }, {
                                Easing: cc.easeOut(3)
                            }).OnEnd(function() {
                                a.Root.active = !1, w.AngelVsEffectNode.node.active = !1
                            }).Start()
                        },
                        i = this;
                    for (var n in e) r(n)
                }, e.prototype.SetEntranceAnimation = function() {
                    if (!(!this._EntranceAniHeroCount || this.ViewPort.BattlePlayer.CurrentDataIndex > 0 || this.ViewPort.BattlePlayer.EntranceAniStartTime > 0))
                        for (var e in this.IsPauseTime(!0), this.ViewPort.BattlePlayer.EntranceAniStartTime = p.RpcComponent.Instance.ServerTime, this.ViewPort.BattlePlayer.HeroDatas) {
                            var t = this.ViewPort.BattlePlayer.HeroDatas[e];
                            if (t.HeroInfo && !(t.HeroInfo.Id <= 0)) {
                                var n = !1;
                                if (t.HeroInfo.HeroId > 0 && t.HeroInfo.SkinId > 0) {
                                    var o = p.ConfigDataComponent.Instance.GetConfigById(m.HeroSkin_Config, t.HeroInfo.SkinId);
                                    n = !!(o && o.IsShowEntranceAnimation > 0)
                                }
                                n && this.ActorMap[t.HeroInfo.Id].PlayAction(d.SkillAnimationType.BurstAttack_JC)
                            }
                        }
                }, e.prototype.AddTotalDMG = function(e) {
                    var t = this;
                    this._CurrentSkillTotalDMG = this._NewSkillTotalDMG, this._NewSkillTotalDMG += e, this.ViewPort.TweenManager.ClearTargetTweens(this.TotalDMGBaseNode), this.TotalDMGBaseNode.active = !0, this.TotalDMGBaseNode.opacity = 255, this.TotalDMGBaseNode.scale = 1;
                    var n = this;
                    this.ViewPort.TweenManager.Tween(this.TotalDMGBaseNode).CustomChange(.3, function(e) {
                        if (e <= .2) {
                            var o = e / .1;
                            n.TotalDMGBaseNode.scale = .8 + .2 * (1 - o)
                        } else e <= .8 ? (o = (e - .2) / .6, n.TotalDMGBaseNode.scale = .8 + .7 * o) : (o = (e - .8) / .2, n.TotalDMGBaseNode.scale = 1.5 - .5 * o);
                        t.SetTotalDamageDigits(Math.floor(t._CurrentSkillTotalDMG + (t._NewSkillTotalDMG - t._CurrentSkillTotalDMG) * e))
                    }, {
                        Easing: cc.easeOut(2)
                    }).Start()
                }, e.prototype.ClearTotalDMG = function(e) {
                    this._CurrentSkillTotalDMG = 0, this._NewSkillTotalDMG = 0, this.FadeOutTotalDamage(e)
                }, e.prototype.FadeOutTotalDamage = function(e) {
                    if (this.TotalDMGBaseNode.active)
                        if (e) {
                            var t = this;
                            this.ViewPort.TweenManager.ClearTargetTweens(this.TotalDMGBaseNode), this.ViewPort.TweenManager.Tween(this.TotalDMGBaseNode).OnEnd(function() {
                                t.TotalDMGBaseNode.active = !1
                            }).To(.2, {
                                opacity: 0
                            }, {
                                Easing: cc.easeIn(3)
                            }).Start()
                        } else this.TotalDMGBaseNode.active = !1
                }, e.prototype.SetTotalDamageDigits = function(t) {
                    for (var n = 0; n < this._TotalDMGDigitSprites.length; ++n) this.DisableDigitSprite(this._TotalDMGDigitSprites[n]);
                    var o = 0,
                        r = e.SkillTotalDMGDigitDimension.width + e.SkillTotalDMGDigitGap,
                        i = 0,
                        a = t;
                    if (0 == a) this.EnableDigitSprite(this.GetDigitSprite(0), w.BattleData.PlayerAtlas.getSpriteFrame(e.SkillTotalDMGDigitsSpriteNames[0]), e.SkillTotalDMGDigitDimension, -o, 0), o += r, i = 1;
                    else
                        for (var s; a > 0;) s = Math.floor(a % 10), this.EnableDigitSprite(this.GetDigitSprite(i), w.BattleData.PlayerAtlas.getSpriteFrame(e.SkillTotalDMGDigitsSpriteNames[s]), e.SkillTotalDMGDigitDimension, -o, 0), o += r, a = Math.floor(a / 10), ++i;
                    var l = i * e.SkillTotalDMGDigitDimension.width + (i - 1) * e.SkillTotalDMGDigitGap;
                    this.TotalDMGDigitsBaseNode.width = l, this.TotalDMGDigitsLayout.updateLayout()
                }, e.prototype.EnableDigitSprite = function(e, t, n, o, r) {
                    e.node.active = !0, e.spriteFrame = t, e.node.setContentSize(n), e.node.setPosition(o, r)
                }, e.prototype.DisableDigitSprite = function(e) {
                    e.node.active = !1
                }, e.prototype.SetBossHUDHPBarCapacityArray = function(e) {
                    var t = e.BattleData.ExtraParam.BossHPBarCapacityArray;
                    if (this.IsShowRemainBossHp = !1, null == t || null == t || t.length <= 0) {
                        if (this.BossHUDHPBarCapacityArray = [999999999], [d.MapType.TestTower, d.MapType.TowerHeart, d.MapType.TowerPower, d.MapType.TowerTech, d.MapType.TowerBreak, d.MapType.TowerFight].includes(e.BattleData.MapType)) {
                            var n = Math.floor(e.Report.MapId / 2e6);
                            if (e.Report.MapId > 0 && 1 == n)
                                for (var o in e.HeroDatas)
                                    if (Number(o) > 0 && e.HeroDatas[o].Camp == d.CampType.Defender) {
                                        this.BossHUDHPBarCurrentValue = e.HeroDatas[o].HpMax, this.IsShowRemainBossHp = !0;
                                        break
                                    }
                        } else if (e.BattleData.MapType == C.MapType.BossHunt)
                            for (var o in e.HeroDatas)
                                if (Number(o) > 0 && e.HeroDatas[o].Camp == d.CampType.Defender) {
                                    this.BossHUDHPBarCurrentValue = e.HeroDatas[o].HpMax, this.IsShowRemainBossHp = !0;
                                    break
                                }
                    } else this.BossHUDHPBarCapacityArray = t
                }, e.prototype.ToggleBossHUD = function(e, t, n, o) {
                    this.BossHUDBaseNode.active = e, t && n && (this.BossHUDName.string = "Lv." + t.toString() + " " + n), this.BossHUDCounterNumber.node.parent.active = this.ViewPort.BattlePlayer.BattleData.ExtraParam.ShowBossHPBarCount, this.IsShowRemainBossHp ? this.SetBossRemainHPBarNoAnimation(o, o) : this.SetBossHPBarNoAnimation(0)
                }, e.prototype.SetBossHPBarNoAnimation = function(t) {
                    var n = this.CaculateHpBarStatus(t),
                        o = n[0],
                        r = n[1];
                    this.BossHUDHPBarCurrentCounter = o, this.BossHUDCounterNumber.string = o.toString(), this.ChangeDamageValue(t, n[2]), this.BossHUDHPBarMaskOrange.width = e.BossHUDHPBarMaxWidth * (1 - r), this.BossHUDHPBarMaskRed.width = e.BossHUDHPBarMaxWidth * (1 - r)
                }, e.prototype.SetBossHPBar = function(t) {
                    if (t != this.BossHUDHPBarCurrentValue) {
                        var n = this;
                        this.ViewPort.TweenManager.ClearTargetTweens(this.BossHUDBaseNode);
                        var o = t,
                            r = this.BossHUDHPBarCurrentValue;
                        this.BossHUDHPBarCurrentValue = o;
                        var i = n.CaculateHpBarStatus(o);
                        n.BossHUDHPBarMaskRed.width = e.BossHUDHPBarMaxWidth * (1 - i[1]), this.ViewPort.TweenManager.Tween(this.BossHUDBaseNode).OnEnd(function() {
                            n.SetBossHPBarNoAnimation(o)
                        }).CustomChange(P.default.HPBarSpeed, function(t) {
                            var i = r + Math.floor(t * (o - r)),
                                a = n.CaculateHpBarStatus(i),
                                s = a[0],
                                l = a[1];
                            n.ChangeDamageValue(i, a[2]), n.ChangeHpbarCounter(s), n.BossHUDHPBarMaskOrange.width = e.BossHUDHPBarMaxWidth * (1 - l)
                        }).Start()
                    }
                }, e.prototype.ChangeDamageValue = function(e, t) {
                    this.IsShowRemainBossHp ? this.BossHUDDamageValue.string = e.FmtCurrency() + "/" + t.FmtCurrency() : this.ViewPort.BattlePlayer.BattleData.ExtraParam.ShowBossHPBarCount ? this.BossHUDDamageValue.string = e.toLocaleString("en-US") + "/" + t.toLocaleString("en-US") : this.BossHUDDamageValue.string = e.toLocaleString("en-US")
                }, e.prototype.ChangeHpbarCounter = function(e) {
                    if (e != this.BossHUDHPBarCurrentCounter && (this.BossHUDEffect.getComponent(sp.Skeleton).setAnimation(0, "UI_effect_gonghuishilian_zhandoutiao", !1), this.BossHUDHPBarCurrentCounter = e, this.BossHUDCounterNumber.string = e.toString(), this.ViewPort.BattlePlayer.BattleData.ExtraParam.ShowBossHPBarCount)) {
                        this.ViewPort.TweenManager.ClearTargetTweens(this.BossHUDCounterNumber.node);
                        var t = this;
                        this.ViewPort.TweenManager.Tween(this.BossHUDCounterNumber.node).OnEnd(function() {
                            t.BossHUDCounterNumber.node.scale = 1
                        }).To(.2, {
                            scale: 2
                        }).To(.15, {
                            sccal: 1
                        }).Start()
                    }
                }, e.prototype.CaculateHpBarStatus = function(e) {
                    for (var t = 0, n = 0, o = 0;;) {
                        var r = this.BossHUDHPBarCapacityArray.length > t ? this.BossHUDHPBarCapacityArray[t] : this.BossHUDHPBarCapacityArray[this.BossHUDHPBarCapacityArray.length - 1];
                        if (o += r, e < r) {
                            n = e / r;
                            break
                        }
                        e -= r, t++
                    }
                    return [t, n, o]
                }, e.prototype.SetBossRemainHPBar = function(t, n) {
                    var o = this;
                    if (n != this.BossHUDHPBarCurrentValue) {
                        var r = this;
                        this.ViewPort.TweenManager.ClearTargetTweens(this.BossHUDBaseNode);
                        var i = n,
                            a = this.BossHUDHPBarCurrentValue;
                        this.BossHUDHPBarCurrentValue = i;
                        var s = n / t;
                        r.BossHUDHPBarMaskOrange.width = e.BossHUDHPBarMaxWidth * (1 - s), this.ViewPort.TweenManager.Tween(this.BossHUDBaseNode).OnEnd(function() {
                            var n = i / t;
                            o.ChangeDamageValue(i, t), o.BossHUDHPBarMaskRed.width = e.BossHUDHPBarMaxWidth * (1 - n), o.BossHUDHPBarMaskOrange.width = e.BossHUDHPBarMaxWidth * (1 - n)
                        }).CustomChange(P.default.HPBarSpeed, function(n) {
                            var o = a + Math.floor(n * (i - a)),
                                s = o / t;
                            r.ChangeDamageValue(o, t), r.BossHUDHPBarMaskRed.width = e.BossHUDHPBarMaxWidth * (1 - s)
                        }).Start()
                    }
                }, e.prototype.SetBossRemainHPBarNoAnimation = function(t, n) {
                    var o = n / t;
                    this.ChangeDamageValue(n, t), this.BossHUDHPBarMaskOrange.width = e.BossHUDHPBarMaxWidth * (1 - o), this.BossHUDHPBarMaskRed.width = e.BossHUDHPBarMaxWidth * (1 - o)
                }, e.prototype.SetElementShieldNode = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i, a, l, c, u, p;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return (o = this.ViewPort.BattlePlayer.HeroDatas[e]) ? (r = this.ViewPort.Id, this._ElementShieldItemPrefab ? [3, 2] : (i = this, [4, this.ViewPort.LoadElementShieldPrefab()])) : [2];
                                case 1:
                                    if (i._ElementShieldItemPrefab = s.sent(), this.ViewPort.Id != r) return [2];
                                    s.label = 2;
                                case 2:
                                    return (a = this._ElementShieldItems.find(function(n) {
                                        return n.ItemName == e + "_" + t
                                    })) || ((l = cc.instantiate(this._ElementShieldItemPrefab)).parent = this.BossElementShieldNode, a = new H(l, e + "_" + t, n), this._ElementShieldItems.push(a)), c = _.default.GetHeroAttributeName(t), a.SetShieldName(c), u = (null == o ? void 0 : o.ElementShield) && o.ElementShield[t] ? o.ElementShield[t] : 0, p = Math.ceil(100 * u / n), a.SetShieldRate(p), [2]
                            }
                        })
                    })
                }, e.prototype.ChangeElementShieldValue = function(e, t, n) {
                    var o = this._ElementShieldItems.find(function(n) {
                        return n.ItemName == e + "_" + t
                    });
                    if (o) {
                        var r = Math.ceil(100 * n / o.MaxValue);
                        o.SetShieldRate(r)
                    }
                }, e.prototype.ShowSkillIndicator = function(e, t) {
                    this.CampSkillIndicators[-e.HeroData.Camp].SkillCastingIndicatorNode.active = !1;
                    var n = this.CampSkillIndicators[e.HeroData.Camp],
                        o = n.SkillCastingIndicatorNode;
                    o.active = !0, n.SkillCastingIndicatorIconSprite.spriteFrame = e.HeadIcon, n.SkillCastingIndicatorNameLabel.string = t.ToHeroSkillName(), n.SkillCastingIndicatorIconSprite.node.setContentSize(64, 64), o.x = -650 * e.HeroData.Camp, o.opacity = 255, this.ViewPort.TweenManager.ClearTargetTweens(this.CampSkillIndicators[-e.HeroData.Camp].SkillCastingIndicatorNode), this.ViewPort.TweenManager.ClearTargetTweens(o), this.ViewPort.TweenManager.Tween(o).OnEnd(function() {
                        o.active = !1
                    }).To(.2, {
                        x: 80 * e.HeroData.Camp
                    }, {
                        Easing: cc.easeOut(3)
                    }).To(.08, {
                        x: 0
                    }, {
                        Easing: cc.easeIn(3)
                    }).Delay(.4).To(.1, {
                        opacity: 0
                    }, {
                        Easing: cc.easeIn(3)
                    }).Start()
                }, e.prototype.ShowPetSkillIndicator = function(e, t) {
                    var n = e.HeroData.Camp;
                    this.CampPetSkillIndicators[-n].SkillCastingIndicatorNode.active = !1;
                    var o = this.CampPetSkillIndicators[n],
                        r = o.SkillCastingIndicatorNode;
                    r.active = !0;
                    var i = e.HeroData.HeroInfo.PetId;
                    o.SkillCastingIndicatorIconSprite.spriteFrame = this.ViewPort.PetPictureMap[i] || null, o.SkillCastingIndicatorNameLabel.string = t.ToHeroSkillName(), r.x = -970 * n, r.opacity = 255, this.ViewPort.TweenManager.ClearTargetTweens(this.CampSkillIndicators[-n].SkillCastingIndicatorNode), this.ViewPort.TweenManager.ClearTargetTweens(r), this.ViewPort.TweenManager.Tween(r).OnEnd(function() {
                        r.active = !1
                    }).Call(function() {
                        o.SkillCastingIndicatorEffectNode.setAnimation(0, o.SkillCastingIndicatorEffectNode.defaultAnimation, !1)
                    }).To(.3, {
                        x: -540 * n
                    }, {
                        Easing: cc.easeOut(3)
                    }).Delay(1.5).To(.3, {
                        opacity: 0
                    }, {
                        Easing: cc.easeIn(3)
                    }).Start()
                }, e.prototype.ShowRoundBuffFrame = function(e, t) {
                    if (this.ViewPort.RoundBuffLocaleKey) {
                        var n = I.ConfigDataComponent.Instance.GetConfigById(m.BuffBase_Config, t);
                        if (n && n.DescriptionId) {
                            var o = I.ConfigDataComponent.Instance.GetConfigById(m.BuffDescription_Config, n.DescriptionId);
                            if (o && !o.NoIcon) {
                                var r = w.BattleData.BuffAtlas.getSpriteFrame(o.Id.toString());
                                if (r) {
                                    this.RoundBuffFrame.FrameRoot.active = !0, this.RoundBuffFrame.BuffIcon.spriteFrame = r, this.RoundBuffFrame.FrameTitle.string = "battle_round_buff_frame_title".ToUILocale().Fmt(e), this.RoundBuffFrame.BuffDesc.string = (this.ViewPort.RoundBuffLocaleKey + e).ToUILocale(), this.RoundBuffFrame.FramePanel.x = -650, this.RoundBuffFrame.FramePanel.opacity = 255, this.ViewPort.TweenManager.ClearTargetTweens(this.RoundBuffFrame.FramePanel);
                                    var i = this;
                                    this.ViewPort.TweenManager.Tween(this.RoundBuffFrame.FramePanel).OnEnd(function() {
                                        i.RoundBuffFrame.FrameRoot.active = !1
                                    }).To(.2, {
                                        x: 80
                                    }, {
                                        Easing: cc.easeOut(3)
                                    }).To(.08, {
                                        x: 0
                                    }, {
                                        Easing: cc.easeIn(3)
                                    }).Delay(.7).To(.1, {
                                        opacity: 0
                                    }, {
                                        Easing: cc.easeIn(3)
                                    }).Start()
                                }
                            }
                        }
                    }
                }, e.ScreenShockPos = [
                    [5, 7],
                    [-6, 7],
                    [-13, 3],
                    [3, -6],
                    [-5, 5],
                    [2, -8],
                    [-8, -10],
                    [3, 10]
                ], e.SkillTotalDMGDigitsSpriteNames = ["num_total_0", "num_total_1", "num_total_2", "num_total_3", "num_total_4", "num_total_5", "num_total_6", "num_total_7", "num_total_8", "num_total_9"], e.SkillTotalDMGDigitDimension = new cc.Size(37, 45), e.SkillTotalDMGDigitGap = -4, e.BossHUDHPBarMaxWidth = 744, e
            }();
        n.BattleField = x;
        var H = function() {
            function e(e, t, n) {
                this.OffSet = 12, this._ItemName = t, this._MaxValue = n, this.MaskNode = cc.find("MaskNode", e), this.RateLabel = cc.find("Rate", e).getComponent(cc.Label), this.ShieldName = cc.find("ShieldName", e).getComponent(cc.Label), this.MaskNodeHeight = this.MaskNode.height
            }
            return e.prototype.SetShieldName = function(e) {
                this.ShieldName.string = e
            }, e.prototype.SetShieldRate = function(e) {
                this.RateLabel.string = e + "%", this.MaskNode.height = (this.MaskNodeHeight - 2 * this.OffSet) * e / 100 + this.OffSet
            }, Object.defineProperty(e.prototype, "ItemName", {
                get: function() {
                    return this._ItemName
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(e.prototype, "MaxValue", {
                get: function() {
                    return this._MaxValue
                },
                enumerable: !1,
                configurable: !0
            }), e
        }();
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareBattle/BattleHelper": "BattleHelper",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/index": "index",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/HeroSkillSound": "HeroSkillSound",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ElementEffectItem": "ElementEffectItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "./BattleActor": "BattleActor",
        "./BattleData": "BattleData",
        "./Misc/BattleFloatText": "BattleFloatText",
        "./Misc/BattlePreSkillEffectItem": "BattlePreSkillEffectItem",
        "./Misc/BattleTween": "BattleTween"
    }],
    BgComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f2daaJsiSxFaqzifrGDIu9G", "BgComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Mask = null, t
                }
                return r(t, e), t.prototype.start = function() {
                    this.Mask.spriteFrame = this.Bg.spriteFrame
                }, i([l(cc.Sprite)], t.prototype, "Bg", void 0), i([l(cc.Mask)], t.prototype, "Mask", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    BindSNSPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d53e8Nc5QlMqp2GvpyBGddl", "BindSNSPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../Components/ItemComponent"),
            I = e("../../Components/RpcComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../RedDot/RedDotManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RuleLabel1 = null, t.RuleLabel2 = null, t.RuleLabel3 = null, t.RewardTitle = null, t.RewardNode = null, t.BindButton = null, t.BindLabel = null, t.BindGetNode = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.RuleLabel1.string = "bindSNS_desc1".ToUILocale(), this.RuleLabel2.string = "bindSNS_desc2".ToUILocale(), this.RuleLabel3.string = "bindSNS_desc3".ToUILocale(), this.RewardTitle.string = "hangUpDropRewardsTitle".ToUILocale(), this.BindLabel.string = "bindSNS_label".ToUILocale(), this.BindButton.node.on("click", this.OnClickBindButton, this), l.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.BindButton.node.off("click", this.OnClickBindButton, this), l.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.start = function() {
                    this.InitNodes(), this.SetInfo(), this.SetRewards()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    var e = d.DataCenter.Instance.GetArrayData(u.UserDataKey.DrawedOuterRewards);
                    e && e.length > 0 ? this.BindGetNode.active = -1 != e.indexOf(h.OuterRewardType.SNS) : this.BindGetNode.active = !1, v.RedDotManager.Instance.Bind(this.BindButton.node, v.RedDotManager.Instance.RedDot.BindSNSBtnNode)
                }, t.prototype.SetRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent)]);
                                case 1:
                                    e._itemPrefab = o.sent(), o.label = 2;
                                case 2:
                                    return this.isValid ? ((t = g.ConfigDataComponent.Instance.GetConfigById(c.OuterReward_Config, h.OuterRewardType.SNS)) && t.Rewards.forEach(function(e, t) {
                                        if (!n._itemNodes[t]) {
                                            var o = cc.instantiate(n._itemPrefab);
                                            o.parent = n.RewardNode, n._itemNodes[t] = o
                                        }
                                        n._itemNodes[t].active = !0, n._itemNodes[t].getComponent(m.ItemComponent).Init({
                                            ItemId: e.Items[0],
                                            Count: e.Items[1]
                                        }, m.ItemComponentType.ItemCommon)
                                    }), [2]) : (f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2])
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && _.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.OnClickBindButton = function() {
                    window.top.postMessage(JSON.stringify({
                        action: "cp_login",
                        data: {
                            type: "sns"
                        }
                    }), "*");
                    var e = d.DataCenter.Instance.GetArrayData(u.UserDataKey.DrawedOuterRewards);
                    if (!(e && e.length > 0 && -1 != e.indexOf(h.OuterRewardType.SNS))) {
                        var t = new p.Req_Player_ReceiveOuterRewards;
                        t.Id = h.OuterRewardType.SNS, I.RpcComponent.Instance.Call(t, function(e) {
                            _.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this.SetInfo()
                        }.bind(this))
                    }
                }, t.prototype.onDestroy = function() {
                    f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemPrefab = null
                }, i([w(cc.Label)], t.prototype, "RuleLabel1", void 0), i([w(cc.Label)], t.prototype, "RuleLabel2", void 0), i([w(cc.Label)], t.prototype, "RuleLabel3", void 0), i([w(cc.Label)], t.prototype, "RewardTitle", void 0), i([w(cc.Node)], t.prototype, "RewardNode", void 0), i([w(cc.Button)], t.prototype, "BindButton", void 0), i([w(cc.Label)], t.prototype, "BindLabel", void 0), i([w(cc.Node)], t.prototype, "BindGetNode", void 0), i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    BlackBgAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4788axu+n1CbaSBV3NE5iWk", "BlackBgAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.BgNode = null, t.TagLabel = null, t.Value = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                    this.AttrIcon.spriteFrame = e, this.TagLabel.string = t, this.Value.string = n, o && (this.node.width = o, this.BgNode.width = o), r && (this.node.height = r, this.BgNode.height = r)
                }, t.prototype.SetExtraData = function(e, t, n, o) {
                    this.BgNode.active = e, this.AttrIcon.node.width = t, this.AttrIcon.node.height = t, this.TagLabel.node.color = n, this.Value.node.color = o
                }, i([l(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([l(cc.Node)], t.prototype, "BgNode", void 0), i([l(cc.Label)], t.prototype, "TagLabel", void 0), i([l(cc.RichText)], t.prototype, "Value", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    BlankRichText: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3fdd1xu6ehEW5qlKA1mG9+a", "BlankRichText");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RichText = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.RichText.string = e, [2]
                        })
                    })
                }, i([u(cc.RichText)], t.prototype, "RichText", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {}],
    BossBattleChallengeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca81ddVoeJMTbc6wlcz4sZO", "BossBattleChallengeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Battle/BattleManager"),
            h = e("../Battle/BattleData"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../Consts/GameEventIds"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BossIcon = null, t.TagIcon = null, t.PowerTag = null, t.PowerValue = null, t.RewardTag = null, t.ChallengeButton = null, t.ChallengeButtonLabel = null, t.UnlockTip = null, t.LEVEL_TAG = ["noviceTraining_difficulty0", "noviceTraining_difficulty1", "noviceTraining_difficulty2"], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.PowerTag.string = "activityBossBattle_challenge_powerTag".ToUILocale(), this.ChallengeButtonLabel.string = "HolyRelic_challenge".ToUILocale(), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._levelConfig = e, this._activityModel = t, this._ticketId = r, this.RewardTag.string = "StrongholdWar_Main_BonusTag".ToUILocale() + "X" + e.RewardBonus / 1e3;
                    var i = c.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, e.MapId);
                    this._mapType = i.Type, this.PowerValue.string = i.BattlePower.toString(), this.ChallengeButton.node.active = !1, this.UnlockTip.node.active = !1, o ? 1 == t.IntMap[o] ? this.ChallengeButton.node.active = !0 : (this.UnlockTip.node.active = !0, this.UnlockTip.string = "activityBossBattle_challenge_unlockTip".ToUILocale().Fmt(this.LEVEL_TAG[n - 1].ToUILocale())) : this.ChallengeButton.node.active = !0, this.SetTagIcon()
                }, t.prototype.SetTagIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, g.default.LoadActivityTexture(this._levelConfig.PicPath)];
                                case 1:
                                    return e._tagIcon = t.sent(), this.isValid ? (this.TagIcon.spriteFrame = this._tagIcon, [2]) : (l.AssetsManager.Instance.UnloadAsset(this._tagIcon), [2])
                            }
                        })
                    })
                }, t.prototype.OnChallengeButtonClick = function() {
                    if (c.DataCenter.Instance.IsItemEnough(this._ticketId, 1))
                        if (d.BattleManager.Instance.IsInBattle(this._mapType)) {
                            var e = h.BattleData.PlayingBattleDatas[this._mapType];
                            this._levelConfig.MapId != e.Reports[0].MapId ? f.UIUtlity.ShowFloatingHint("TrialHero_Challenging".ToUILocale().Fmt(e.Reports[0].MapId.ToMapName())) : d.BattleManager.Instance.ResumePlayBattle(this._mapType)
                        } else l.Game.EventDispatcher.Emit(y.GameEventIds.StartBattle.Fmt(this._mapType), this._levelConfig.MapId, this._activityModel.Sid, this._levelConfig.Id), l.UIManager.Instance.QuitPanelStack(p.PanelConfig.ActivityBossBattleChallengePanel.Path);
                    else g.default.ShowItemGetWay(this._ticketId)
                }, t.prototype.onDestroy = function() {
                    this._tagIcon && l.AssetsManager.Instance.UnloadAsset(this._tagIcon)
                }, i([_(cc.Sprite)], t.prototype, "BossIcon", void 0), i([_(cc.Sprite)], t.prototype, "TagIcon", void 0), i([_(cc.Label)], t.prototype, "PowerTag", void 0), i([_(cc.Label)], t.prototype, "PowerValue", void 0), i([_(cc.RichText)], t.prototype, "RewardTag", void 0), i([_(cc.Button)], t.prototype, "ChallengeButton", void 0), i([_(cc.Label)], t.prototype, "ChallengeButtonLabel", void 0), i([_(cc.Label)], t.prototype, "UnlockTip", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager"
    }],
    BossBattleSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c6e10jASeJFt46SsMDExRUV", "BossBattleSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("./DisplayRewardsComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BattleName = null, t.HPTag = null, t.HPValue = null, t.PointTag = null, t.PointValue = null, t.RewardTag = null, t.RewardContainer = null, t.NoneRewardTip = null, t.Tip = null, t._isInit = !1, t._reward = [], t
                }
                return r(t, e), t.prototype.SetUI = function(e, t) {
                    this._battleData = e, this._reward = t, this._isInit || (this._isInit = !0, this.SetStaticLocalText()), this.PointValue.string = this._battleData.SettleParams[2].toString(), this.SetHpValue(), this.RenderContent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.HPTag.string = "activityBossBattle_settlement_hp".ToUILocale(), this.PointTag.string = "activityBossBattle_settlement_team".ToUILocale(), this.RewardTag.string = "allianceWar_get_reward".ToUILocale(), this.NoneRewardTip.string = "activityBoss_no_reward".ToUILocale()
                }, t.prototype.SetHpValue = function() {
                    var e = "";
                    if (this._battleData.ExtraParam.BossHPBarCapacityArray && this._battleData.ExtraParam.BossHPBarCapacityArray.length > 0) {
                        for (var t = this._battleData.SettleParams[1], n = 0, o = 0; o < this._battleData.ExtraParam.BossHPBarCapacityArray.length && (t -= this._battleData.ExtraParam.BossHPBarCapacityArray[o]) >= 0; o++) n++;
                        e = n.toString()
                    } else e = Math.floor(this._battleData.SettleParams[1] / this._battleData.SettleParams[0] * 100) + "%";
                    this.HPValue.string = e
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._reward && this._reward.length > 0 ? (this.NoneRewardTip.node.active = !1, void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.DisplayRewardsComponent)])) : [3, 3];
                                case 1:
                                    if (e._displayRewardPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(p.DisplayRewardsComponent), this.RewardContainer.addChild(t), this._rewardComponent.Init(this._reward, this.RewardContainer.height), [3, 4];
                                case 3:
                                    this.NoneRewardTip.node.active = !0, n.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._displayRewardPrefab && (c.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), this._displayRewardPrefab = null)
                }, i([f(cc.Label)], t.prototype, "BattleName", void 0), i([f(cc.Label)], t.prototype, "HPTag", void 0), i([f(cc.Label)], t.prototype, "HPValue", void 0), i([f(cc.Label)], t.prototype, "PointTag", void 0), i([f(cc.Label)], t.prototype, "PointValue", void 0), i([f(cc.Label)], t.prototype, "RewardTag", void 0), i([f(cc.Node)], t.prototype, "RewardContainer", void 0), i([f(cc.Label)], t.prototype, "NoneRewardTip", void 0), i([f(cc.Label)], t.prototype, "Tip", void 0), i([h], t)
            }(l.default);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    BossBattleTeamComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "50a77Taz/BCRZmIBMbXI1ap", "BossBattleTeamComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TeamIcon1 = null, t.TeamIcon2 = null, t.RedLineNode = null, t.BlueLineNode = null, t.MyTeamTag = null, t.TeamTag1 = null, t.TeamTag2 = null, t.TeamName1 = null, t.TeamName2 = null, t.TeamCount1 = null, t.TeamCount2 = null, t.BattleButton = null, t.BattleButtonLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.BattleButtonLabel.string = "activityBossBattle_battle".ToUILocale(), this.TeamTag1.string = "StrongholdWar_Team_Captain".ToUILocale(), this.TeamTag2.string = "StrongholdWar_Team_Captain".ToUILocale(), this.MyTeamTag.string = "Activity_HeroPK_My_Team".ToUILocale(), this.BattleButton.node.on("click", this.OnBattleButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    if (this._callBack = i, this.TeamIcon1.spriteFrame = t[0], this.TeamIcon2.spriteFrame = t[1], this.TeamName1.string = e[0].LeaderUid && n[e[0].LeaderUid] ? n[e[0].LeaderUid] : "activityBossBattle_team_nameTag".ToUILocale(), this.TeamName2.string = e[1].LeaderUid && n[e[1].LeaderUid] ? n[e[1].LeaderUid] : "activityBossBattle_team_nameTag".ToUILocale(), this.TeamCount1.string = e[0].Score.toString(), this.TeamCount2.string = e[1].Score.toString(), 0 == e[0].Score && 0 == e[1].Score) this.RedLineNode.width = 500, this.BlueLineNode.width = 500;
                    else {
                        var s = e[0].Score / (e[0].Score + e[1].Score);
                        this.RedLineNode.width = 300 + 400 * s, this.BlueLineNode.width = 300 + 400 * (1 - s)
                    }
                    this.MyTeamTag.node.active = !1, this.BattleButton.node.active = !1, o && (this.MyTeamTag.node.active = !0, this.MyTeamTag.node.x = 1 == o ? -315 : 102, r && (this.BattleButton.node.active = !0, 1 == r ? a.UIUtlity.SetGray(this.BattleButton.node, !0, !0) : a.UIUtlity.SetGray(this.BattleButton.node, !1, !0)))
                }, t.prototype.OnBattleButtonClick = function() {
                    this._callBack && this._callBack()
                }, i([c(cc.Sprite)], t.prototype, "TeamIcon1", void 0), i([c(cc.Sprite)], t.prototype, "TeamIcon2", void 0), i([c(cc.Node)], t.prototype, "RedLineNode", void 0), i([c(cc.Node)], t.prototype, "BlueLineNode", void 0), i([c(cc.Label)], t.prototype, "MyTeamTag", void 0), i([c(cc.Label)], t.prototype, "TeamTag1", void 0), i([c(cc.Label)], t.prototype, "TeamTag2", void 0), i([c(cc.Label)], t.prototype, "TeamName1", void 0), i([c(cc.Label)], t.prototype, "TeamName2", void 0), i([c(cc.Label)], t.prototype, "TeamCount1", void 0), i([c(cc.Label)], t.prototype, "TeamCount2", void 0), i([c(cc.Button)], t.prototype, "BattleButton", void 0), i([c(cc.Label)], t.prototype, "BattleButtonLabel", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    BossWarGuidePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "aa1d0rlpENIubxdkXFPb+K1", "BossWarGuidePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/GlobalConfigComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.MultiSprite = null, t.GoButton = null, t.GoLabel = null, t._index = 0, t._imgNames = [], t._multiImgNames = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._imgNames = ["bg1", "bg2", "bg1"], this._multiImgNames = ["bossWar1", "bossWar2", "bossWar1"], this.GoLabel.string = "task_goto".ToUILocale(), this.GoButton.node.on("click", this.OnGoButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._index = t[0]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = u.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng2/" + this._multiImgNames[this._index]), t = this.LoadDynamicAsset("BossWarPanel/PNG/" + this._imgNames[this._index], cc.SpriteFrame), n = this.LoadDynamicAsset(e, cc.SpriteFrame), [4, Promise.all([t, n]).then(function(e) {
                                        o.Bg.spriteFrame = e[0], o.MultiSprite.spriteFrame = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t)
                }, t.prototype.OnGoButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.BossWarPartPanel.Path)
                }, i([h(cc.Sprite)], t.prototype, "Bg", void 0), i([h(cc.Sprite)], t.prototype, "MultiSprite", void 0), i([h(cc.Button)], t.prototype, "GoButton", void 0), i([h(cc.Label)], t.prototype, "GoLabel", void 0), i([d], t)
            }(l.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent"
    }],
    BossWarGuildRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2edadkgDWFHPY2IUGMhLxkY", "BossWarGuildRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./BossWarGuildRewardItem"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("./ItemComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.RankNum = null, t.Rewards = null, t._reward = null, t._nodes = [], t._itemPrefab = null, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.IniData = function(e, t, n) {
                    this._reward = e;
                    var o = n % 2 == 0 ? "bg2" : "bg1";
                    this.Bg.spriteFrame = t.getSpriteFrame(o), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = c.default.GetRankNum(this._reward.Rank2[0], this._reward.Rank2[1]), this.RankNum.string = e, this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._unloadAssets.push(t), this._itemPrefab = t, o.label = 2;
                                case 2:
                                    return this._reward.Rewards.forEach(function(e, t) {
                                        if (!n._nodes[t]) {
                                            var o = cc.instantiate(n._itemPrefab);
                                            o.parent = n.Rewards, n._nodes[t] = o
                                        }
                                        n._nodes[t].getComponent(p.ItemComponent).Init({
                                            ItemId: e.Items[0],
                                            Count: e.Items[1]
                                        }, p.ItemComponentType.ItemCommon)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.Rewards.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([g(cc.Sprite)], t.prototype, "Bg", void 0), i([g(cc.Label)], t.prototype, "RankNum", void 0), i([g(cc.Node)], t.prototype, "Rewards", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./BossWarGuildRewardItem": "BossWarGuildRewardItem",
        "./ItemComponent": "ItemComponent"
    }],
    BossWarGuildRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4d154VDjDZKWazSEaAnICkV", "BossWarGuildRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("./BossWarGuildRewardComponent"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Parent = null, t.DamageRank = null, t.RewardRank = null, t._rankNums = [], t._rewards = [], t._cellComponentPrefab = null, t._cellNodes = [], t._scrollerView = null, t._atlas = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.IniData = function(e, t, n, o, r) {
                    this._rankNums = e, this._rewards = t, this._cellComponentPrefab = n, this._scrollerView = o, this._atlas = r, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    var e = this;
                    this.DamageRank.string = "allianceTest_damageRank".ToUILocale(), this.RewardRank.string = "elementTrial_rank_reward".ToUILocale();
                    var t = n.GetRankNum(this._rankNums[0], this._rankNums[1]);
                    this.Title.string = "bosswar_guild_rank".ToUILocale().Fmt(t), this._rewards.forEach(function(t, n) {
                        if (!e._cellNodes[n]) {
                            var o = cc.instantiate(e._cellComponentPrefab);
                            o.parent = e.Parent, e._cellNodes[n] = o
                        }
                        e._cellNodes[n].getComponent(l.default).IniData(t, e._atlas, n)
                    });
                    var o = this._scrollerView.getBoundingBoxToWorld(),
                        r = new cc.Rect(o.x, o.y, this._scrollerView.width, this._scrollerView.height);
                    this.scheduleOnce(function() {
                        e.node.opacity = 255, e.node.getComponent(cc.Layout).updateLayout(), e.node.parent.getComponent(cc.Layout).updateLayout(), e.CheckVisible(r)
                    }, 0)
                }, t.GetRankNum = function(e, t) {
                    return e == t ? e.toString() : 0 != t ? e + "~" + t : e + "+"
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, i([p(cc.Label)], t.prototype, "Title", void 0), i([p(cc.Node)], t.prototype, "Parent", void 0), i([p(cc.Label)], t.prototype, "DamageRank", void 0), i([p(cc.Label)], t.prototype, "RewardRank", void 0), n = i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "./BossWarGuildRewardComponent": "BossWarGuildRewardComponent"
    }],
    BossWarGuildRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1c768LkEyBIU6+VP6satCiK", "BossWarGuildRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/BossWarGuildRewardItem"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.TitleLabel = null, t.ParentNode = null, t.ScrollView = null, t._cellPrefab = null, t._cellComponentPrefab = null, t._data = {}, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("BossWarPanel/SubItems/BossWarGuildRewardItem", cc.Prefab), n = this.LoadDynamicAsset("BossWarPanel/SubItems/BossWarGuildRewardComponent", cc.Prefab), o = this.LoadDynamicAsset("BossWarPanel/PNG/BossWar", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._cellPrefab = e[0], r._cellComponentPrefab = e[1], r._atlas = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "bosswar_guild_reward_title".ToUILocale();
                    var t = this.ScrollView.node.getBoundingBoxToWorld();
                    this._scrollViewRect = new cc.Rect(t.x, t.y, this.ScrollView.node.width, this.ScrollView.node.height), this.ScrollView.node.on("scrolling", this.OnScrolling, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    var e = this;
                    this.ParentNode.children.length && this.ParentNode.destroyAllChildren();
                    var t = function(t) {
                            n.scheduleOnce(function() {
                                var n = t.split("|"),
                                    o = [Number(n[0]), Number(n[1])],
                                    r = cc.instantiate(e._cellPrefab);
                                r.parent = e.ParentNode, r.opacity = 0, r.getComponent(c.default).IniData(o, e._data[t], e._cellComponentPrefab, e.ScrollView.node, e._atlas)
                            }, 0)
                        },
                        n = this;
                    for (var o in this._data) t(o)
                }, t.prototype.OnScrolling = function() {
                    l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CHECK_BUNDINGBOX, this._scrollViewRect)
                }, i([h(cc.Label)], t.prototype, "TitleLabel", void 0), i([h(cc.Node)], t.prototype, "ParentNode", void 0), i([h(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([d], t)
            }(l.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/BossWarGuildRewardItem": "BossWarGuildRewardItem"
    }],
    BossWarPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06e1aOPJ8dFFqv6A2Qg4ImJ", "BossWarPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BossWarType = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/SmallRankListComponent"),
            g = e("../Components/ItemComponent"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../Components/Components"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../../Util/TimeUtil"),
            b = e("../../../Consts/Consts"),
            S = e("../Battle/BattleManager"),
            w = e("../../Auxiliary/EventKeys"),
            P = e("../../RedDot/RedDotManager"),
            A = e("../../Channel/ChannelManager"),
            T = e("../Components/SkillItemComponent"),
            R = e("../Components/CustomProgressBar");
        (function(e) {
            e[e.Server = 1] = "Server", e[e.Guild = 2] = "Guild", e[e.World = 3] = "World"
        })(n.BossWarType || (n.BossWarType = {}));
        var L = cc._decorator,
            k = L.ccclass,
            O = L.property,
            M = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.Title = null, t.RuleButton = null, t.TimeDesc = null, t.Time = null, t.UpHeroNode = null, t.CurHero = null, t.UpHeroLabel = null, t.UpHeroButton = null, t.HeroNode = null, t.UpElementNode = null, t.CurElement = null, t.UpElementLabel = null, t.UpElementButton = null, t.ElementSprite = null, t.SmallRankListComponent = null, t.ExtraSkillContent = null, t.ExtraSkillTitle = null, t.BossNode = null, t.HPProgressBar = null, t.DamageLabel = null, t.Level = null, t.Name = null, t.ChallengeButton = null, t.ChallengeButtonLabel = null, t.ChallengeTimesLabel = null, t.RewardPreviewButton = null, t.ChallengePanelTitle = null, t.LevelIcon = null, t.LevelLabel = null, t.NoRankLabel = null, t.ItemContainer = null, t.MaxDamageRichText = null, t.TaskButton = null, t.TaskButtonLabel = null, t.ReturnButton = null, t.BGSkillButton = null, t.SkillButton = null, t.ChangeAllacneLabel = null, t.MyRankLabel = null, t.FlagBg = null, t.Tips = null, t._itemPrefab = null, t._skillPrefab = null, t._itemNodes = [], t._upHeroNode = null, t._rankData = null, t._configData = null, t._deadLine = 0, t._model = null, t._res = null, t._avatar = null, t._callback = null, t._isRedisplay = !1, t._elementSpriteName = ["", "heart", "power", "tech", "break", "fight"], t._guildRewardData = null, t._unloadAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    m.Game.EventDispatcher.On(w.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    m.Game.EventDispatcher.Off(w.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.SkillItemComponent, cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._skillPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TimeDesc.string = "bossWar_time".ToUILocale(), this.UpHeroLabel.string = "bossWar_upHero".ToUILocale(), this.UpElementLabel.string = "bossWar_upElement".ToUILocale(), this.ChallengePanelTitle.string = "rank_rewards".ToUILocale(), this.ChallengeButtonLabel.string = "bossWar_challenge".ToUILocale(), this.TaskButtonLabel.string = "bossWar_task".ToUILocale(), this.NoRankLabel.string = "bossWar_get_more".ToUILocale(), this.ChangeAllacneLabel.string = "bosswar_no_damage".ToUILocale(), this.Tips.string = "reward_from_mail".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnBtnClick, this), this.UpHeroButton.node.on("click", this.OnUpHeroButtonClick, this), this.UpElementButton.node.on("click", this.OnUpElementButtonClick, this), this.RewardPreviewButton.node.on("click", this.OnRewardPreviewButtonnClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.BGSkillButton.node.on("click", this.OnSkillButtonClick, this), this.SkillButton.node.on("click", this.OnSkillButtonClick, this);
                    var t = A.default.Instance.IsVNChannel(),
                        n = this.BossNode.scaleX;
                    this.BossNode.scaleX = t ? -1 * n : n
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._res = t[1], this._rankData = t[2], this._callback = t[3], n && (this._configData = p.DataCenter.Instance.ActivityConfigs[n], this._deadLine = v.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime) + 22 * b.Etc.HourDuration, this.Title.string = this._configData.Common.Title)
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), [4, I.default.LoadActivityTexture(this._configData.CustomPart.Bg)];
                                case 1:
                                    return t = n.sent(), this._unloadAssets.push(t), this.Bg.spriteFrame = t, [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isRedisplay = t, this._model = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), this.ChangeAllacneLabel.node.active = this._configData.CustomPart.Type == C.WorldBossType.Alliance, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitNode(), this.SetInfo(), this.SetUpNode(), this.SetSmallRankList(), this.SetHPProgress(), this.SetMaxDamage(), this.SetRankReward(), this._isRedisplay || (this.SetTime(), this.SetExtraSkillContent()), this.BindRedDot(), this.SetBossNode()
                }, t.prototype.InitNode = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    var e = this._configData.CustomPart.Count - this._model.IntValue;
                    this.ChallengeTimesLabel.string = "crossServerRank_challengeTimes".ToUILocale().Fmt(e, this._configData.CustomPart.Count)
                }, t.prototype.SetUpNode = function() {
                    var e = this._configData.CustomPart.Bonus[0];
                    if (1 == e) {
                        this.UpHeroNode.active = !0, this.UpElementNode.active = !1;
                        var t = this._configData.CustomPart.Bonus[1];
                        if (this.CurHero.string = "bossWar_hero".ToUILocale().Fmt(t.ToHeroTitle()), !this._upHeroNode) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.parent = this.HeroNode, this._upHeroNode = n
                        }
                        this._upHeroNode.getComponent(g.ItemComponent).Init({
                            ItemId: t,
                            Count: 1
                        }, g.ItemComponentType.HeroInfo)
                    } else if (2 == e) {
                        this.UpHeroNode.active = !1, this.UpElementNode.active = !0;
                        var o = this._configData.CustomPart.Bonus[1];
                        this.CurElement.string = "bossWar_element".ToUILocale().Fmt(("hero_element_" + o).ToUILocale()), this.ElementSprite.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_" + this._elementSpriteName[o])
                    }
                }, t.prototype.SetSmallRankList = function() {
                    var e = this;
                    this.SmallRankListComponent.InitUIForActivity(this._configData._id, "bossWar_damage_rank".ToUILocale(), function() {
                        var t = new u.Req_Activity_GetRank;
                        t.ActivityId = e._configData._id, p.RpcComponent.Instance.Call(t, function(t) {
                            var n;
                            e._configData.CustomPart.Type == C.WorldBossType.Alliance ? (e._rankData = t, e._callback && e._callback(t), (n = {}).ActivityId = e._configData._id, n.Title = "bossWar_rank_name".ToUILocale().Fmt(e._configData.Common.Title), n.RankDatas = [t, null], n.CallBacks = [null, e.ClickRankToggleCallBack.bind(e)], n.ToggleDatas = [{
                                ToggleLabel: "bossWar_alliance_rank".ToUILocale(),
                                ToggleIcon: ""
                            }, {
                                ToggleLabel: "bossWar_member_rank".ToUILocale(),
                                ToggleIcon: ""
                            }], m.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonActivityRankPanel.Path, n), e.SetSmallRankList()) : (e._rankData = t, e._callback && e._callback(t), (n = {}).ActivityId = e._configData._id, n.Title = "bossWar_rank_name".ToUILocale().Fmt(e._configData.Common.Title), n.RankDatas = [t], m.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonActivityRankPanel.Path, n), e.SetSmallRankList())
                        }.bind(this))
                    }, this._rankData)
                }, t.prototype.ClickRankToggleCallBack = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function() {
                            return [2, new Promise(function(t) {
                                var n = new u.Req_Activity_WorldBossInnerRank;
                                n.ActivityId = e._configData._id, p.RpcComponent.Instance.Call(n, function(e) {
                                    t(e)
                                })
                            })]
                        })
                    })
                }, t.prototype.SetBossNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e = this._configData.CustomPart.MapId, (t = _.ConfigDataComponent.Instance.GetConfigById(c.MapBase_Config, e)) ? (n = 0, t.Heros.forEach(function(e) {
                                        e.Items[2] && (n = e[1])
                                    }), n || (n = t.Heros[0].Items[1]), this._avatar ? [3, 2] : (o = _.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, n)) ? [4, this.LoadDynamicAsset("Hero_" + o.Model + "/HeroAvatar", cc.Prefab)] : [2]) : [2];
                                case 1:
                                    if (r = a.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(r), [2];
                                    (i = cc.instantiate(r)).parent = this.BossNode, this._avatar = i, i.getComponent(sp.Skeleton).setAnimation(0, d.SkillAnimationType.Standby, !0), this.Level.string = "Lv." + t.Strength[1], this.Name.string = n.ToHeroName(), a.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetHPProgress = function() {
                    if (this._configData.CustomPart.Hp) {
                        this.HPProgressBar.node.active = !0, this.DamageLabel.node.active = !0;
                        var e = Math.max(0, this._configData.CustomPart.Hp - this._res.Params[1].Items[0]);
                        this.DamageLabel.string = e + "/" + this._configData.CustomPart.Hp, this.HPProgressBar.progress = e / this._configData.CustomPart.Hp
                    } else this.HPProgressBar.node.active = !1, this.DamageLabel.node.active = !1
                }, t.prototype.SetMaxDamage = function() {
                    var e = 0;
                    this._model && this._model.IntArray && this._model.IntArray.length > 0 && (e = this._model.IntArray[0]), this.MaxDamageRichText.string = e ? "openServer_heroTest_maxDamage".ToUILocale().Fmt(e) : "openServer_heroTest_notYet".ToUILocale()
                }, t.prototype.SetRankReward = function() {
                    var e = this,
                        t = 0;
                    if (this.FlagBg.spriteFrame = f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("flag" + this._configData.CustomPart.Type), this._configData.CustomPart.Type == C.WorldBossType.Alliance ? this._res.MyRank && this._res.MyRank > 0 : this._rankData.MyRank && this._rankData.MyRank > 0) {
                        var n = null,
                            o = 0;
                        if (this._configData.CustomPart.Type == C.WorldBossType.Alliance) {
                            this.MyRankLabel.node.active = !0;
                            var r = this._rankData.MyRank;
                            t = this._res.MyRank;
                            for (var i = [], a = 0; a < this._configData.Rewards.length; a++) {
                                var s = this._configData.Rewards[a].Rank1[0],
                                    l = this._configData.Rewards[a].Rank1[1];
                                r >= s && r <= l ? i.push(this._configData.Rewards[a]) : 0 == l && i.push(this._configData.Rewards[a])
                            }
                            for (a = 0; a < i.length; a++) {
                                var c = i[a],
                                    u = c.Rank2[0],
                                    p = c.Rank2[1];
                                if (t >= u && t <= p) {
                                    n = c;
                                    break
                                }
                                0 == p && (n = c, o = Math.max(c.Rank2[0], o))
                            }
                            this.LevelIcon.node.active = r && r > 0 && r < 4, this.LevelLabel.node.active = !(r && r > 0 && r < 4), this.MyRankLabel.string = "bosswar_rank_in_alliance".ToUILocale().Fmt(t), r && r > 0 && r < 4 ? this.LevelIcon.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + t) : this.LevelLabel.string = r > 3 ? r.toString() : o ? o + "+" : "rank_out_max_rank".ToUILocale()
                        } else {
                            for (this.MyRankLabel.node.active = !1, t = this._rankData.MyRank, a = 0; a < this._configData.Rewards.length; a++) {
                                var d = this._configData.Rewards[a].Rank1[0],
                                    h = this._configData.Rewards[a].Rank1[1];
                                if (t >= d && t <= h) {
                                    n = this._configData.Rewards[a];
                                    break
                                }
                                0 == h && (n = this._configData.Rewards[a], o = Math.max(d, o))
                            }
                            this.LevelIcon.node.active = t && t > 0 && t < 4, this.LevelLabel.node.active = !(t && t > 0 && t < 4), t && t > 0 && t < 4 ? this.LevelIcon.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + t) : this.LevelLabel.string = t > 3 ? t.toString() : o ? o + "+" : "rank_out_max_rank".ToUILocale()
                        }
                        this.NoRankLabel.node.active = !1, this.ItemContainer.active = !0, n && n.Rewards.forEach(function(t, n) {
                            if (!e._itemNodes[n]) {
                                var o = cc.instantiate(e._itemPrefab);
                                o.parent = e.ItemContainer, e._itemNodes[n] = o
                            }
                            e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(g.ItemComponent).Init({
                                ItemId: t.Items[0],
                                Count: t.Items[1]
                            }, g.ItemComponentType.ItemCommon)
                        })
                    } else this.NoRankLabel.node.active = !0, this.ItemContainer.active = !1, this.LevelIcon.node.active = !1, this.LevelLabel.node.active = !1, this.MyRankLabel.node.active = !1
                }, t.prototype.SetTime = function() {
                    v.TimeUtil.GetHour(_.RpcComponent.Instance.ServerTime) >= 22 ? this.Time.string = "bossWar_end".ToUILocale() : (this.CountDownTime(), this.schedule(this.CountDownTime, 1))
                }, t.prototype.CountDownTime = function() {
                    var e = p.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 && (this.Time.string = "bossWar_end".ToUILocale(), this.unschedule(this.CountDownTime)), this.Time.string = I.default.ActivityTimeLeftFormat(t)
                }, t.prototype.SetExtraSkillContent = function() {
                    this.ExtraSkillContent.active = !1;
                    var e = [];
                    if (this._res.Params[0] && this._res.Params[0].Items.length > 0)
                        for (var t = 0; t < this._res.Params[0].Items.length; t++) this._res.Params[0].Items[t] > 0 && e.push(this._res.Params[0].Items[t]);
                    if (e.length > 0)
                        for (this.ExtraSkillContent.active = !0, this.ExtraSkillTitle.string = "bossWar_random_skill_sub".ToUILocale(), t = 0; t < e.length; t++) {
                            var n = cc.instantiate(this._skillPrefab);
                            n.setParent(this.ExtraSkillContent), n.getComponent(T.default).Init(e[t])
                        }
                }, t.prototype.BindRedDot = function() {
                    P.RedDotManager.Instance.BindInstance(this.ChallengeButton.node, P.RedDotManager.Instance.InstanceRedDot.BossWarChallengeNode, {
                        Value1: this._configData._id
                    }), P.RedDotManager.Instance.BindInstance(this.TaskButton.node, P.RedDotManager.Instance.InstanceRedDot.BossWarTaskNode, {
                        Value1: this._configData._id
                    })
                }, t.prototype.OnRewardPreviewButtonnClick = function() {
                    if (this._configData.CustomPart.Type == C.WorldBossType.Alliance) {
                        if (!this._guildRewardData) {
                            this._guildRewardData = {};
                            for (var e = 0; e < this._configData.Rewards.length; e++) {
                                var t = this._configData.Rewards[e].Rank1[0] + "|" + this._configData.Rewards[e].Rank1[1];
                                if (this._guildRewardData[t]) this._guildRewardData[t].push(this._configData.Rewards[e]);
                                else {
                                    var n = [];
                                    n.push(this._configData.Rewards[e]), this._guildRewardData[t] = n
                                }
                            }
                        }
                        l.UIManager.Instance.ShowUIPanel(h.PanelConfig.BossWarGuildRewardPanel.Path, this._guildRewardData)
                    } else {
                        var o = {},
                            r = [];
                        this._configData.Rewards.forEach(function(e) {
                            var t = {};
                            t.Id = e.Id, t.Ranks = e.Rank1, t.Rewards = e.Rewards, r.push(t)
                        }), o.MyRank = this._rankData.MyRank, o.Data = r, o.IsInRank = this._model && this._model.IntArray && this._model.IntArray[0] > 0, l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonRankRewardPanel.Path, o)
                    }
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = {
                        IsActivity: !0
                    };
                    e.Title = "bossWar_task".ToUILocale(), e.Tasks = this._configData._Tasks, e.ActivityId = this._configData._id, l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonTaskPanel.Path, [e])
                }, t.prototype.OnChallengeButtonClick = function() {
                    var e = this;
                    v.TimeUtil.GetHour(_.RpcComponent.Instance.ServerTime) >= 22 ? f.UIUtlity.ShowFloatingHint("bossWar_end".ToUILocale()) : this._configData.CustomPart.Count - this._model.IntValue <= 0 ? f.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale()) : this._model.IntArray[2] && this._model.IntArray[2] > 0 && _.DataCenter.Instance.AllianceId != this._model.IntArray[2] ? f.UIUtlity.ShowHintPanel("", "bosswar_current_no_damage".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        n.StartBattle(e._configData.CustomPart.MapId, e._configData)
                    }) : n.StartBattle(this._configData.CustomPart.MapId, this._configData)
                }, t.prototype.OnSkillButtonClick = function() {
                    var e = this._configData.CustomPart.MapId;
                    _.ConfigDataComponent.Instance.GetConfigById(c.MapBase_Config, e) && l.UIManager.Instance.ShowUIPanel(h.PanelConfig.BossWarPreviewPanel.Path, e)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {};
                    switch (this._configData.CustomPart.Type) {
                        case C.WorldBossType.Zone:
                            e = {
                                name: "BossWar".ToUILocale(),
                                titles: ["rule_subtittle".ToUILocale()],
                                contents: ["bossWar_rule_content".ToUILocale()]
                            };
                            break;
                        case C.WorldBossType.Alliance:
                            e = {
                                name: "BossWar".ToUILocale(),
                                titles: ["rule_subtittle".ToUILocale()],
                                contents: ["bossWa_alliancer_rule_content".ToUILocale()]
                            };
                            break;
                        case C.WorldBossType.CrossZone:
                            e = {
                                name: "bossWar_crossZone_rule_title".ToUILocale(),
                                titles: ["bossWar_crossZone_rule_sub".ToUILocale()],
                                contents: ["bossWar_crossZone_rule_content".ToUILocale()]
                            }
                    }
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnUpHeroButtonClick = function() {
                    var e = {
                        name: "bossWar_element_rule_title".ToUILocale(),
                        titles: ["bossWar_element_rule_title".ToUILocale()],
                        contents: ["bossWar_upHero_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnUpElementButtonClick = function() {
                    var e = {
                        name: "bossWar_element_rule_title".ToUILocale(),
                        titles: ["bossWar_element_rule_title".ToUILocale()],
                        contents: ["bossWar_element_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.OnReturnBtnClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.InitBattle = function() {
                    [d.MapType.WorldBossZone, d.MapType.WorldBossCrossZone, d.MapType.WorldBossAlliance].forEach(function(e) {
                        l.Game.EventDispatcher.Only(d.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                    })
                }, t.RestartBattle = function() {
                    n.StartBattle(n._CurrentBattleMapId, n._CurrentActivityConfig)
                }, t.StartBattle = function(e, t) {
                    n._CurrentBattleMapId = e, n._CurrentActivityConfig = t, m.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.RequestChallenge(e)
                    }, [e], n._CurrentActivityConfig._id)
                }, t.RequestChallenge = function(e) {
                    var t = new u.Req_Activity_WorldBossChallenge;
                    t.ActivityId = n._CurrentActivityConfig._id, t.Formations = e, p.RpcComponent.Instance.Call(t, function(e) {
                        var t = {
                            BossHPBarCapacityArray: p.DataCenter.Instance.ActivityConfigs[n._CurrentActivityConfig._id].CustomPart.Hps
                        };
                        S.BattleManager.Instance.StartPlay(e.Report, t)
                    }.bind(this))
                }, t.SettleBattle = function(e) {
                    var t = new u.Req_Map_BattleSettlement;
                    t.MapType = e.MapType, _.RpcComponent.Instance.Call(t, function(t) {
                        var o;
                        o = n.settlement_prefab_path, e.SettleParams = t.ExtraParam[0].Items;
                        var r = e.SettleParams[0];
                        p.DataCenter.Instance.ActivityConfigs[r] && S.BattleManager.Instance.ShowSettlePanel(h.PanelConfig.SettlementWinPanel.Path, o, e, t.Rewards, t.Result)
                    })
                }, t.CancelBattle = function(e) {
                    var t = new u.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, _.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {
                    m.UIManager.Instance.QuitPanelStack(h.PanelConfig.BossWarPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._unloadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.settlement_prefab_path = "BossWarPanel/SubItems/BossWarSettlementComponent", t._CurrentBattleMapId = 0, t._CurrentActivityConfig = null, i([O(cc.Sprite)], t.prototype, "Bg", void 0), i([O(cc.Label)], t.prototype, "Title", void 0), i([O(cc.Button)], t.prototype, "RuleButton", void 0), i([O(cc.Label)], t.prototype, "TimeDesc", void 0), i([O(cc.Label)], t.prototype, "Time", void 0), i([O(cc.Node)], t.prototype, "UpHeroNode", void 0), i([O(cc.RichText)], t.prototype, "CurHero", void 0), i([O(cc.Label)], t.prototype, "UpHeroLabel", void 0), i([O(cc.Button)], t.prototype, "UpHeroButton", void 0), i([O(cc.Node)], t.prototype, "HeroNode", void 0), i([O(cc.Node)], t.prototype, "UpElementNode", void 0), i([O(cc.RichText)], t.prototype, "CurElement", void 0), i([O(cc.Label)], t.prototype, "UpElementLabel", void 0), i([O(cc.Button)], t.prototype, "UpElementButton", void 0), i([O(cc.Sprite)], t.prototype, "ElementSprite", void 0), i([O(y.default)], t.prototype, "SmallRankListComponent", void 0), i([O(cc.Node)], t.prototype, "ExtraSkillContent", void 0), i([O(cc.Label)], t.prototype, "ExtraSkillTitle", void 0), i([O(cc.Node)], t.prototype, "BossNode", void 0), i([O(R.default)], t.prototype, "HPProgressBar", void 0), i([O(cc.Label)], t.prototype, "DamageLabel", void 0), i([O(cc.Label)], t.prototype, "Level", void 0), i([O(cc.Label)], t.prototype, "Name", void 0), i([O(cc.Button)], t.prototype, "ChallengeButton", void 0), i([O(cc.Label)], t.prototype, "ChallengeButtonLabel", void 0), i([O(cc.Label)], t.prototype, "ChallengeTimesLabel", void 0), i([O(cc.Button)], t.prototype, "RewardPreviewButton", void 0), i([O(cc.Label)], t.prototype, "ChallengePanelTitle", void 0), i([O(cc.Sprite)], t.prototype, "LevelIcon", void 0), i([O(cc.Label)], t.prototype, "LevelLabel", void 0), i([O(cc.Label)], t.prototype, "NoRankLabel", void 0), i([O(cc.Node)], t.prototype, "ItemContainer", void 0), i([O(cc.RichText)], t.prototype, "MaxDamageRichText", void 0), i([O(cc.Button)], t.prototype, "TaskButton", void 0), i([O(cc.Label)], t.prototype, "TaskButtonLabel", void 0), i([O(cc.Button)], t.prototype, "ReturnButton", void 0), i([O(cc.Button)], t.prototype, "BGSkillButton", void 0), i([O(cc.Button)], t.prototype, "SkillButton", void 0), i([O(cc.Label)], t.prototype, "ChangeAllacneLabel", void 0), i([O(cc.Label)], t.prototype, "MyRankLabel", void 0), i([O(cc.Sprite)], t.prototype, "FlagBg", void 0), i([O(cc.Label)], t.prototype, "Tips", void 0), n = i([k], t)
            }(l.BaseUIFullScreenPanel);
        n.default = M, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent"
    }],
    BossWarPartItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7d02dsCDrJF9IfMGewnpJs+", "BossWarPartItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../Consts/Consts"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Panel/BossWarPartPanel"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../../Util/TimeUtil"),
            I = e("../../Components/Components"),
            _ = e("../../../Consts/Etc"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = e("../Battle/BattleManager"),
            S = e("../../Channel/ChannelManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Title = null, t.RemainTimes = null, t.RemainNum = null, t.Rank = null, t.RankNum = null, t.Time = null, t.MaskNode = null, t.BossNode = null, t._configData = null, t._deadLine = 0, t._model = null, t._rankData = null, t._assest = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    var e = S.default.Instance.IsVNChannel(),
                        t = this.BossNode.scaleX;
                    this.BossNode.scaleX = e ? -1 * t : t, this.BossNode.y = e ? -180 : -258
                }, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
                }, t.prototype.InitUI = function(e) {
                    this._configData = e, this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetBg(), this.SetTitle(), this.SetInfo(), this.SetTime(), this.SetBoss()
                }, t.prototype.SetBg = function() {
                    if (f.default.BossWarAtlas) {
                        var e = f.default.GetBossWarNameByType(this._configData.CustomPart.Type),
                            t = f.default.BossWarAtlas.getSpriteFrame("bg_" + e);
                        this.Bg.spriteFrame = t
                    }
                }, t.prototype.SetTitle = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = f.default.GetBossWarNameByType(this._configData.CustomPart.Type), [4, p.AssetsManager.Instance.LoadAsset(c.GlobalConfigComponent.GetMultilangKey(v.BundlePath.MultilangSinglePng2 + "/boss_" + e), cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._assest.push(t), this.Title.spriteFrame = t, [2]) : (p.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetInfo = function() {
                    this.RemainTimes.string = "bossWar_remain_times".ToUILocale(), this.Rank.string = "bossWar_rank".ToUILocale();
                    var e = this._configData.CustomPart.Count - this._model.IntValue;
                    this.RemainNum.string = e + "/" + this._configData.CustomPart.Count
                }, t.prototype.SetLevel = function(e) {
                    this._rankData = e, e && e.MyRank ? this.RankNum.string = e.MyRank.toString() : this.RankNum.string = "rank_out_max_rank".ToUILocale()
                }, t.prototype.SetTime = function() {
                    switch (n.CheckUnLockState(this._configData)) {
                        case 1:
                            this.MaskNode.active = !0, this.Time.string = "bossWar_zone_limit".ToUILocale();
                            break;
                        case 2:
                            var e = n.GetGameModuleByType(this._configData),
                                t = g.default.Instance.IsGameModuleUnlock(e);
                            this.MaskNode.active = !0, this.Time.string = "<outline color=#000000 width = 2><color=#ff0000>{0}</c></outline>".Fmt(t[1]);
                            break;
                        case 3:
                            this.MaskNode.active = !1, this.Time.string = "bossWar_today_end".ToUILocale();
                            break;
                        case 4:
                            var o = this._configData.CustomPart.Open;
                            this.MaskNode.active = !0;
                            var r = "",
                                i = o.length;
                            o.forEach(function(e, t) {
                                var o = n.ConversionNumDayToStrDay(e);
                                r += t < i - 1 ? o + "\u3001" : o
                            }), this.Time.string = "bossWar_open".ToUILocale().Fmt(r);
                            break;
                        case 5:
                            this.MaskNode.active = !1, this._deadLine = m.TimeUtil.Get0ClockTs(c.RpcComponent.Instance.ServerTime) + 22 * _.Etc.HourDuration, this.unschedule(this.CountDown), this.CountDown(), this.schedule(this.CountDown, 1);
                            break;
                        case 6:
                            this.MaskNode.active = !0, this.Time.string = "bossWar_guild_limit".ToUILocale()
                    }
                }, t.prototype.SetBoss = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = this._configData.CustomPart.MapId, (t = I.ConfigDataComponent.Instance.GetConfigById(l.MapBase_Config, e)) ? (n = 0, t.Heros.forEach(function(e) {
                                        e.Items[2] && (n = e[1])
                                    }), n || (n = t.Heros[0].Items[1]), this.BossNode.destroyAllChildren(), this._avatarPrefab && (p.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), this._avatarPrefab = null), (o = I.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, n)) ? [4, h.AssetsManager.Instance.LoadAsset("Hero_" + o.Model + "/HeroAvatar", cc.Prefab)] : [2]) : [2];
                                case 1:
                                    return r = s.sent(), this.isValid && r.name == "Hero_" + o.Model + "/HeroAvatar" ? (this._avatarPrefab = r, (i = cc.instantiate(this._avatarPrefab)).parent = this.BossNode, (a = i.getComponent(sp.Skeleton)).clearTracks(), a.setAnimation(0, d.SkillAnimationType.Standby, !0), [2]) : (h.AssetsManager.Instance.UnloadAsset(r), [2])
                            }
                        })
                    })
                }, t.CrossServerLimitConditions = function() {
                    var e = !0;
                    return I.DataCenter.Instance.Zones[I.DataCenter.Zone].Group <= 0 && (e = !1), g.default.IsCrossServerTimeEnable() || (e = !1), e
                }, t.CheckUnLockState = function(e) {
                    var t = n.GetGameModuleByType(e);
                    if (!g.default.Instance.IsGameModuleUnlock(t)[0]) return 2;
                    if (e.CustomPart.Type == C.WorldBossType.CrossZone && !n.CrossServerLimitConditions()) return 1;
                    if (e.CustomPart.Type == C.WorldBossType.Alliance && I.DataCenter.Instance.AllianceId <= 0) return 6;
                    var o = e.CustomPart.Open,
                        r = m.TimeUtil.GetWeekDay(I.RpcComponent.Instance.ServerTime);
                    return o && o.indexOf(r) > -1 ? m.TimeUtil.GetHour(I.RpcComponent.Instance.ServerTime) >= 22 ? 3 : 5 : 4
                }, t.prototype.CountDown = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 ? (this.Time.string = "bossWar_today_end".ToUILocale(), this.unschedule(this.CountDown)) : this.Time.string = "bossWar_remain_time".ToUILocale().Fmt(g.default.ActivityTimeLeftFormat(t))
                }, t.prototype.OnTouchEnd = function() {
                    var e = n.CheckUnLockState(this._configData);
                    if (5 == e || 3 == e) {
                        var t = 0;
                        switch (this._configData.CustomPart.Type) {
                            case C.WorldBossType.Zone:
                                t = d.MapType.WorldBossZone;
                                break;
                            case C.WorldBossType.Alliance:
                                t = d.MapType.WorldBossAlliance;
                                break;
                            case C.WorldBossType.CrossZone:
                                t = d.MapType.WorldBossCrossZone
                        }
                        if (b.BattleManager.Instance.IsInBattle(t)) return void b.BattleManager.Instance.ResumePlayBattle(t);
                        var o = new u.Req_Activity_CommonEnter;
                        o.ActivityId = this._configData._id, I.RpcComponent.Instance.Call(o, this.RequestSuccess.bind(this))
                    } else switch (e) {
                        case 1:
                            y.UIUtlity.ShowFloatingHint("bossWar_cant_join".ToUILocale());
                            break;
                        case 2:
                            var r = n.GetGameModuleByType(this._configData),
                                i = g.default.Instance.IsGameModuleUnlock(r);
                            y.UIUtlity.ShowFloatingHint(i[1]);
                            break;
                        case 4:
                            var a = this._configData.CustomPart.Open,
                                s = "",
                                l = a.length;
                            a.forEach(function(e, t) {
                                var o = n.ConversionNumDayToStrDay(e);
                                s += t < l - 1 ? o + "\u3001" : o
                            }), y.UIUtlity.ShowFloatingHint("unlock_condition".ToUILocale().Fmt(s));
                            break;
                        case 6:
                            y.UIUtlity.ShowFloatingHint("chatting_privateNotInAnyAlliance".ToUILocale())
                    }
                }, t.prototype.RequestSuccess = function(e) {
                    p.UIManager.Instance.ShowUIPanel(v.PanelConfig.BossWarPanel.Path, this._configData._id, e, this._rankData, function(e) {
                        this.SetLevel(e)
                    }.bind(this))
                }, t.GetGameModuleByType = function(e) {
                    var t = 0;
                    switch (e.CustomPart.Type) {
                        case C.WorldBossType.Zone:
                            t = d.GameModuleType.ZoneBoss;
                            break;
                        case C.WorldBossType.Alliance:
                            t = d.GameModuleType.AllianceBoss;
                            break;
                        case C.WorldBossType.CrossZone:
                            t = d.GameModuleType.CrossZoneBoss
                    }
                    return t
                }, t.ConversionNumDayToStrDay = function(e) {
                    return ["", "days_one".ToUILocale(), "days_two".ToUILocale(), "days_three".ToUILocale(), "days_four".ToUILocale(), "days_five".ToUILocale(), "days_six".ToUILocale(), "days_seven".ToUILocale()][e]
                }, t.prototype.onDestroy = function() {
                    this._assest.forEach(function(e) {
                        h.AssetsManager.Instance.UnloadAsset(e)
                    }), this._avatarPrefab && p.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), this.unscheduleAllCallbacks()
                }, i([A(cc.Sprite)], t.prototype, "Bg", void 0), i([A(cc.Sprite)], t.prototype, "Title", void 0), i([A(cc.Label)], t.prototype, "RemainTimes", void 0), i([A(cc.Label)], t.prototype, "RemainNum", void 0), i([A(cc.Label)], t.prototype, "Rank", void 0), i([A(cc.Label)], t.prototype, "RankNum", void 0), i([A(cc.RichText)], t.prototype, "Time", void 0), i([A(cc.Node)], t.prototype, "MaskNode", void 0), i([A(cc.Node)], t.prototype, "BossNode", void 0), n = i([P], t)
            }(cc.Component);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Panel/BossWarPartPanel": "BossWarPartPanel"
    }],
    BossWarPartPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "85bc30/x9hGv7c9lMtA8WUU", "BossWarPartPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/BossWarPartItem"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../RedDot/RedDotManager"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.PartNode = null, t.ReturnButton = null, t._bossWarPart = null, t._partNodes = [], t._activityConfigs = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("BossWarPanel/SubItems/BossWarPartItem", cc.Prefab), o = this.LoadDynamicAsset("BossWarPanel/PNG/BossWar", cc.SpriteAtlas), [4, Promise.all([t, o]).then(function(e) {
                                        r._bossWarPart = e[0], n.BossWarAtlas = e[1]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ReturnButton.node.on("click", this.OnReturnBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    for (var n in e.prototype.InitData.call(this, t), this._activityConfigs = [], f.DataCenter.Instance.ActivityConfigs) {
                        var o = f.DataCenter.Instance.ActivityConfigs[n];
                        o.Common.Type == p.ActivityType.WorldBoss && y.default.Instance.ComputeDeadTime(o.Common) > u.RpcComponent.Instance.ServerTime && this._activityConfigs.push(o)
                    }
                    this._activityConfigs.sort(function(e, t) {
                        return e.CustomPart.Type - t.CustomPart.Type
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t ? this.UpdateUIContent() : this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    var e = this;
                    this.Title.string = "BossWar".ToUILocale(), this._partNodes.forEach(function(e) {
                        e.opacity = 0
                    }), this._activityConfigs.forEach(function(t, n) {
                        if (!e._partNodes[n]) {
                            var o = cc.instantiate(e._bossWarPart);
                            o.parent = e.PartNode, e._partNodes[n] = o
                        }
                        switch (e._partNodes[n].getComponent(d.default).InitUI(t), t.CustomPart.Type) {
                            case h.WorldBossType.Zone:
                                g.RedDotManager.Instance.BindInstance(e._partNodes[n], g.RedDotManager.Instance.InstanceRedDot.BossWarZoneNode, {
                                    Value1: t._id
                                }, -40, -40);
                                break;
                            case h.WorldBossType.Alliance:
                                g.RedDotManager.Instance.BindInstance(e._partNodes[n], g.RedDotManager.Instance.InstanceRedDot.BossWarAllianceNode, {
                                    Value1: t._id
                                }, -40, -40);
                                break;
                            case h.WorldBossType.CrossZone:
                                g.RedDotManager.Instance.BindInstance(e._partNodes[n], g.RedDotManager.Instance.InstanceRedDot.BossWarCrossZoneNode, {
                                    Value1: t._id
                                }, -40, -40)
                        }
                        var r = new c.Req_Activity_GetRank;
                        r.ActivityId = t._id;
                        var i = n;
                        f.RpcComponent.Instance.Call(r, function(t) {
                            e._partNodes[i].getComponent(d.default).SetLevel(t), e._partNodes[i].opacity = 255
                        })
                    })
                }, t.prototype.UpdateUIContent = function() {
                    var e = this;
                    this._activityConfigs.forEach(function(t, n) {
                        switch (e._partNodes[n] && e._partNodes[n].getComponent(d.default).InitUI(t), t.CustomPart.Type) {
                            case h.WorldBossType.Zone:
                                g.RedDotManager.Instance.BindInstance(e._partNodes[n], g.RedDotManager.Instance.InstanceRedDot.BossWarZoneNode, {
                                    Value1: t._id
                                }, -40, -40);
                                break;
                            case h.WorldBossType.Alliance:
                                g.RedDotManager.Instance.BindInstance(e._partNodes[n], g.RedDotManager.Instance.InstanceRedDot.BossWarAllianceNode, {
                                    Value1: t._id
                                }, -40, -40);
                                break;
                            case h.WorldBossType.CrossZone:
                                g.RedDotManager.Instance.BindInstance(e._partNodes[n], g.RedDotManager.Instance.InstanceRedDot.BossWarCrossZoneNode, {
                                    Value1: t._id
                                }, -40, -40)
                        }
                    })
                }, t.GetBossWarNameByType = function(e) {
                    var t = "";
                    switch (e) {
                        case h.WorldBossType.Zone:
                            t = "server";
                            break;
                        case h.WorldBossType.Alliance:
                            t = "guild";
                            break;
                        case h.WorldBossType.CrossZone:
                            t = "world"
                    }
                    return t
                }, t.prototype.OnReturnBtnClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.BossWarAtlas = null, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Node)], t.prototype, "PartNode", void 0), i([_(cc.Button)], t.prototype, "ReturnButton", void 0), n = i([I], t)
            }(l.BaseUIFullScreenPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/BossWarPartItem": "BossWarPartItem"
    }],
    BossWarPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fba35We/lRPcoMS/fzWEwW9", "BossWarPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/SkillItemComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Level = null, t.Name = null, t.HeroNode = null, t.Skill = null, t.SkillNodes = null, t._itemPrefab = null, t._heroPrefab = null, t._itemNodes = [], t._heroNode = null, t._mapConfig = null, t._heroConfig = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "bossWar_boss_desc".ToUILocale(), this.Skill.string = "bossWar_boss_skill".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this);
                    var o = t[0];
                    this._mapConfig = d.ConfigDataComponent.Instance.GetConfigById(c.MapBase_Config, o), this._mapConfig.Heros.forEach(function(e) {
                        e.Items[2] && (n._monsterHeroId = e[1])
                    }), this._monsterHeroId || (this._monsterHeroId = this._mapConfig.Heros[0].Items[1])
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this._monsterHeroId ? (this._heroConfig = d.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, this._monsterHeroId), t = this.LoadDynamicAsset(p.BundlePath.SkillItemComponent, cc.Prefab), n = this.LoadDynamicAsset("Hero_" + this._heroConfig.Model + "/HeroAvatar", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._heroPrefab = e[1]
                                    })]) : [3, 2];
                                case 1:
                                    r.sent(), r.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.SetUIContent(), [2]
                        })
                    })
                }, t.prototype.SetUIContent = function() {
                    this.SetInfo(), this.SetBoss(), this.SetSkills()
                }, t.prototype.SetInfo = function() {
                    this.Level.string = "Lv." + this._mapConfig.Strength[1], this.Name.string = this._monsterHeroId.ToHeroName()
                }, t.prototype.SetBoss = function() {
                    if (!this._heroNode) {
                        var e = cc.instantiate(this._heroPrefab);
                        e.parent = this.HeroNode, this._heroNode = e, e.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0)
                    }
                }, t.prototype.SetSkills = function() {
                    for (var e = h.default.GetHeroSkills(this._monsterHeroId, this._mapConfig.Strength[1], this._mapConfig.Strength[0]), t = 0; t < e.length; t++) {
                        if (!this._itemNodes[t]) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.SkillNodes), this._itemNodes[t] = n
                        }
                        this._itemNodes[t].name = t.toString(), this._itemNodes[t].getComponent(f.default).Init(e[t].SkillId, e[t].Level, this._monsterHeroId)
                    }
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Label)], t.prototype, "Level", void 0), i([m(cc.Label)], t.prototype, "Name", void 0), i([m(cc.Node)], t.prototype, "HeroNode", void 0), i([m(cc.Label)], t.prototype, "Skill", void 0), i([m(cc.Node)], t.prototype, "SkillNodes", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/SkillItemComponent": "SkillItemComponent"
    }],
    BossWarSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e7c50J2Q+NJl5TVjBKX/WbK", "BossWarSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("./CustomRichText"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../EZFramework/UIFrame/UIManager"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./DisplayRewardsComponent"),
            y = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Components/Components"),
            I = e("../../Components/Components"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BattleName = null, t.Content = null, t.Damage = null, t.DamageValue = null, t.LineText = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t._isInit = !1, t._activityId = 0, t._reward = [], t._damage = 0, t
                }
                return r(t, e), t.prototype.SetUI = function(e, t) {
                    this._activityId = e.SettleParams[0], this._damage = e.SettleParams[1], this._reward = t, this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.SetBattleName(), this.SetBtnState(), this.SetDamage(), this.RenderContent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.LineText.string = "win_get_reward".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale(), this.Damage.string = "bossWar_take_damage".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this)
                }, t.prototype.SetBtnState = function() {
                    var e = d.UIManager.Instance.GetUIPanel(h.PanelConfig.BossWarPanel.Path);
                    this.BtnReturn.node.active = null == e
                }, t.prototype.SetDamage = function() {
                    this.DamageValue.string = this._damage.toString()
                }, t.prototype.OnBtnSureClick = function() {
                    d.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    var e = this,
                        t = new p.Req_Activity_GetRank;
                    t.ActivityId = e._activityId, m.RpcComponent.Instance.Call(t, function(t) {
                        var n = new p.Req_Activity_CommonEnter;
                        n.ActivityId = e._activityId, m.RpcComponent.Instance.Call(n, function(n) {
                            d.UIManager.Instance.BackUIPanel(), g.UIManager.Instance.ShowUIPanel(h.PanelConfig.BossWarPanel.Path, e._activityId, n, t, null)
                        })
                    })
                }, t.prototype.SetBattleName = function() {
                    this.ConfigBattleName()
                }, t.prototype.ConfigBattleName = function() {
                    var e = m.DataCenter.Instance.ActivityConfigs[this._activityId],
                        t = I.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, e.CustomPart.MapId),
                        n = "";
                    if (t) {
                        var o = 0;
                        t.Heros.forEach(function(e) {
                            e.Items[2] && (o = e[1])
                        }), o || (o = t.Heros[0].Items[1]), n = o.ToHeroName()
                    }
                    var r = e.Common.Title + "\xb7" + n;
                    this.BattleName.Init(r)
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, y.AssetsManager.Instance.LoadAsset(h.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (e._displayRewardPrefab = n.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(f.DisplayRewardsComponent), this.Content.addChild(t), this._reward && this._reward.length > 0 && this._rewardComponent.Init(this._reward, this.Content.height), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._displayRewardPrefab && (g.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), this._displayRewardPrefab = null)
                }, i([v(c.CustomRichText)], t.prototype, "BattleName", void 0), i([v(cc.Node)], t.prototype, "Content", void 0), i([v(cc.Label)], t.prototype, "Damage", void 0), i([v(cc.Label)], t.prototype, "DamageValue", void 0), i([v(cc.Label)], t.prototype, "LineText", void 0), i([v(cc.Button)], t.prototype, "BtnReturn", void 0), i([v(cc.Button)], t.prototype, "BtnSure", void 0), i([v(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([v(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([C], t)
            }(l.default);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./CustomRichText": "CustomRichText",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    BreakOutMatchChallengeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "09948eJlYlHUKISdSwoYFO4", "BreakOutMatchChallengeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../../Consts/Consts"),
            l = e("../Panel/BreakOutMatchChallengePanel"),
            c = e("./ItemComponent"),
            u = e("../Auxiliary/UIUtlity"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.ScoreRtx = null, t.LeftHeroContent = null, t.LeftPower = null, t.LeftResult = null, t.RightHeroContent = null, t.RightPower = null, t.RightResult = null, t.Spine = null, t._myItemComponents = [], t._enemyItemComponents = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    var t = this;
                    this._data = e;
                    var n = e.ActivityConfig.CustomPart.Condition[e.Index];
                    if (this.Title.string = n.Items[0] + "V" + n.Items[0], this.LeftResult.node.active = this.RightResult.node.active = e.Type == l.BreakOutMatchChallengeType.Report, e.Type == l.BreakOutMatchChallengeType.Challenge) this.ScoreRtx.string = "breakOutMatch_score".ToUILocale().Fmt(n.Items[1]);
                    else {
                        this.ScoreRtx.string = "breakOutMatch_report_score".ToUILocale().Fmt(n.Items[1]), e.Report.Players.forEach(function(e) {
                            e.Uid == a.DataCenter.Instance.Uid && (t._myCamp = e.Camp)
                        });
                        var o = this._myCamp == s.CampType.Attacker ? e.Report.Result == s.BattleResult.AttackerWin : e.Report.Result == s.BattleResult.DefenderWin || e.Report.Result == s.BattleResult.Timeout;
                        this.LeftResult.spriteFrame = o ? u.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Win") : u.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Lose"), this.RightResult.spriteFrame = o ? u.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Lose") : u.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Win")
                    }
                    this.Spine.node.active = !1, this.SetHeroFormation()
                }, t.prototype.SetHeroFormation = function() {
                    var e = this;
                    if (this._myItemComponents.forEach(function(e) {
                            e.node.active = !1
                        }), this._enemyItemComponents.forEach(function(e) {
                            e.node.active = !1
                        }), this._data.Type == l.BreakOutMatchChallengeType.Challenge) {
                        var t = this._data.ActivityConfig.CustomPart.Condition[this._data.Index].Items[0];
                        this.LeftHeroContent.scale = t < 5 ? .37 : .3;
                        var n = this._data.MyFormationData.Power,
                            o = this._data.MyFormationData.Heros;
                        this.SetFormation(o, this.LeftHeroContent, t, this._myItemComponents), this.LeftPower.string = n.toString(), this.RightHeroContent.scale = t < 5 ? .37 : .3, this.SetFormation(this._data.TargetFormationData.Heros, this.RightHeroContent, t, this._enemyItemComponents), this.RightPower.string = this._data.TargetFormationData.Power.toString()
                    } else {
                        var r, i, s = [],
                            c = [];
                        this._data.Report.Heros.forEach(function(t) {
                            t.Id > 0 && (t.Camp == e._myCamp ? s.push(t) : c.push(t))
                        }), this._data.Report.Players.forEach(function(e) {
                            e.Uid == a.DataCenter.Instance.Uid ? r = e.Power : i = e.Power
                        }), this.LeftHeroContent.scale = s.length < 5 ? .37 : .3, this.SetFormation(s, this.LeftHeroContent, s.length, this._myItemComponents), this.LeftPower.string = r.toString(), this.RightHeroContent.scale = c.length < 5 ? .37 : .3, this.SetFormation(c, this.RightHeroContent, c.length, this._enemyItemComponents), this.RightPower.string = i.toString()
                    }
                }, t.prototype.SetFormation = function(e, t, n, o) {
                    if (e && e.length > 0) {
                        for (var r = 0, i = 0; i < e.length; i++) {
                            var a = e[i];
                            a && a.Sid > 0 && (o[r] || ((s = cc.instantiate(this._data.ItemPrefab)).parent = t, s.y = -20, o[r] = s.getComponent(c.ItemComponent)), this._data.Type == l.BreakOutMatchChallengeType.Challenge ? o[r].Init(a, c.ItemComponentType.HeroInfo) : o[r].Init({
                                ItemId: a.HeroId,
                                StarLevel: a.StarLevel,
                                Level: a.Level
                            }, c.ItemComponentType.HeroInfo), r++)
                        }
                        if (r < n)
                            for (i = r; i < n; i++) o[r] || ((s = cc.instantiate(this._data.ItemPrefab)).parent = t, o[r] = s.getComponent(c.ItemComponent)), o[r].SetHeroSimpleState(), o[r].SetCustomIcon(u.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180), r++
                    } else
                        for (i = 0; i < n; i++) {
                            var s;
                            o[i] || ((s = cc.instantiate(this._data.ItemPrefab)).parent = t, o[i] = s.getComponent(c.ItemComponent)), o[i].SetHeroSimpleState(), o[i].SetCustomIcon(u.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180)
                        }
                }, t.prototype.SetSpine = function() {
                    this.Spine.node.active = !0, this.Spine.setAnimation(0, "Ani_UI_Effect_QQTWS_tiaoguozhandou", !1)
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.RichText)], t.prototype, "ScoreRtx", void 0), i([h(cc.Node)], t.prototype, "LeftHeroContent", void 0), i([h(cc.Label)], t.prototype, "LeftPower", void 0), i([h(cc.Sprite)], t.prototype, "LeftResult", void 0), i([h(cc.Node)], t.prototype, "RightHeroContent", void 0), i([h(cc.Label)], t.prototype, "RightPower", void 0), i([h(cc.Sprite)], t.prototype, "RightResult", void 0), i([h(sp.Skeleton)], t.prototype, "Spine", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/BreakOutMatchChallengePanel": "BreakOutMatchChallengePanel",
        "./ItemComponent": "ItemComponent"
    }],
    BreakOutMatchChallengePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5f79vSxnNETLSSziKfx+vK", "BreakOutMatchChallengePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BreakOutMatchChallengeType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/CustomLayout"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("./BreakOutMatchPanel"),
            _ = e("../Components/HeadComponent"),
            C = e("../../Auxiliary/GameRecord"),
            v = e("../Components/BreakOutMatchChallengeComponent"),
            b = e("./BreakOutMatchLevelPanel"),
            S = e("../../Auxiliary/DataUtlity");
        (function(e) {
            e[e.Challenge = 0] = "Challenge", e[e.Report = 1] = "Report"
        })(l = n.BreakOutMatchChallengeType || (n.BreakOutMatchChallengeType = {}));
        var w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.ReplayButton = null, t.MyHeadNode = null, t.MyResult = null, t.MyScoreNode = null, t.MyZone = null, t.MyName = null, t.MyScoreDesc = null, t.MyScore = null, t.EnemyHeadNode = null, t.EnemyResult = null, t.EnemyScoreNode = null, t.EnemyZone = null, t.EnemyName = null, t.EnemyScoreDesc = null, t.EnemyScore = null, t.ScrollView = null, t.CustomLayout = null, t.ChallengeNode = null, t.ChallengeButton = null, t.ChallengeLabel = null, t.Jump1Toggle = null, t.Jump2Toggle = null, t.Jump1Label = null, t.Jump2Label = null, t.ReturnButton = null, t._isInit = !1, t._headComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("BreakOutMatchPanel/Components/BreakOutMatchChallengeComponent", cc.Prefab), n = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset(f.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._cellPrefab = e[0], r._itemPrefab = e[1], r._headPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ChallengeLabel.string = "elementArena_challenge".ToUILocale(), this.Jump1Label.string = "SeniorArenaChallenge_SkipBattle".ToUILocale(), this.Jump2Label.string = "breakOutMatch_jump_all".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ReplayButton.node.on("click", this.OnReplayButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.Jump1Toggle.node.on("toggle", this.OnJump1ToggleClick, this), this.Jump2Toggle.node.on("toggle", this.OnJump2ToggleClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0], this.Title.string = this._data.ActivityConfig.Common.Title
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.SetHeadNode(), this.SetInfoNode(), this.SetChallengeNode(), this.SetList())
                }, t.prototype.SetHeadNode = function() {
                    if (!this._headComponents[0]) {
                        (o = cc.instantiate(this._headPrefab)).parent = this.MyHeadNode, this._headComponents[0] = o.getComponent(_.default);
                        var e = u.DataCenter.Instance.GetIntData(d.UserDataKey.HeadIcon),
                            t = u.DataCenter.Instance.GetIntData(d.UserDataKey.HeadFrame),
                            n = u.DataCenter.Instance.GetIntData(d.UserDataKey.Title);
                        this._headComponents[0].SetUI(e, t, n)
                    }
                    var o;
                    this._headComponents[1] || ((o = cc.instantiate(this._headPrefab)).parent = this.EnemyHeadNode, this._headComponents[1] = o.getComponent(_.default), this._data.Type == l.Challenge ? this._headComponents[1].SetUI(this._data.TargetInfo.HeadIcon, this._data.TargetInfo.HeadFrame, this._data.TargetInfo.Title) : (this._targetInfo = this._data.ReportInfo.DefenderInfo.Uid == u.DataCenter.Instance.Uid ? this._data.ReportInfo.AttackerInfo : this._data.ReportInfo.DefenderInfo, this._headComponents[1].SetUI(this._targetInfo.HeadIcon, this._targetInfo.HeadFrame, this._targetInfo.Title)))
                }, t.prototype.SetInfoNode = function() {
                    var e = this;
                    if (this.MyScoreNode.active = this._data.Type == l.Report, this.EnemyScoreNode.active = this._data.Type == l.Report, this.ReplayButton.node.active = this._data.Type == l.Report, this.MyZone.string = "S" + u.DataCenter.Zone, this.MyName.string = u.DataCenter.Instance.GetStringData(d.UserDataKey.RoleName), this._data.Type == l.Challenge) this.EnemyZone.string = "S" + this._data.TargetInfo.Zone, this.EnemyName.string = this._data.TargetInfo.Name;
                    else {
                        var t, n = 0,
                            o = 0;
                        this._data.Reports[0].Players.forEach(function(e) {
                            e.Uid == u.DataCenter.Instance.Uid && (t = e.Camp)
                        }), this._data.Reports.forEach(function(r, i) {
                            var a = e._data.ActivityConfig.CustomPart.Condition[i];
                            a && ((t == d.CampType.Attacker ? r.Result == d.BattleResult.AttackerWin : r.Result == d.BattleResult.DefenderWin || r.Result == d.BattleResult.Timeout) ? n += a.Items[1] : o += a.Items[1])
                        }), this.MyScoreDesc.string = "breakOutMatch_final_score_desc".ToUILocale(), this.EnemyScoreDesc.string = "breakOutMatch_final_score_desc".ToUILocale(), this.MyScore.string = n.toString(), this.EnemyScore.string = o.toString(), this.EnemyZone.string = "S" + this._targetInfo.Zone, this.EnemyName.string = this._targetInfo.Name
                    }
                }, t.prototype.SetChallengeNode = function() {
                    if (this.ChallengeNode.active = this._data.Type == l.Challenge, this._data.Type == l.Challenge) {
                        var e = C.default.GetItem(C.GameRecordDefine.BreakOutMatchJumpBattle),
                            t = C.default.GetItem(C.GameRecordDefine.BreakOutMatchJumpAll);
                        this.Jump1Toggle.isChecked = e && "1" == e, this.Jump2Toggle.isChecked = t && "1" == t
                    }
                }, t.prototype.SetList = function() {
                    this._isInit || (this.CustomLayout.Init(this._cellPrefab), this._isInit = !0), this._data.Type == l.Challenge ? (this.SortFormations(), this.CustomLayout.RenderLayOut(this._data.ActivityConfig.CustomPart.Condition.length)) : this.CustomLayout.RenderLayOut(this._data.Reports.length)
                }, t.prototype.SortFormations = function() {
                    var e = this;
                    this._myFormations = [], this._targetFormations = [];
                    var t = u.ConfigDataComponent.Instance.GetConfigById(h.MapBase_Config, this._data.ActivityConfig.CustomPart.MapId),
                        n = u.ConfigDataComponent.Instance.GetConfigById(h.MapType_Config, t.Type),
                        o = [];
                    n.AttackerFormation.forEach(function(t, n) {
                        var r = u.DataCenter.Instance.GetDataById(p.UserFormation_Model, t),
                            i = [],
                            a = 0;
                        r && r.HeroIds.forEach(function(e) {
                            if (e > 0) {
                                var t = u.DataCenter.Instance.GetDataById(p.UserHero_Model, e);
                                a += t.Power, i.push(t)
                            }
                        }), o.push({
                            Heros: i,
                            Count: e._data.ActivityConfig.CustomPart.Condition[n].Items[0],
                            Power: a
                        })
                    }), o.sort(function(e, t) {
                        return e.Count == t.Count ? t.Power - e.Power : e.Count - t.Count
                    }), o.forEach(function(t) {
                        e._myFormations.push(t)
                    });
                    var r = [];
                    this._data.ActivityConfig.CustomPart.Condition.forEach(function(t, n) {
                        var o = 0,
                            i = [];
                        e._data.TargetInfo.Formations[n] && (e._data.TargetInfo.Formations[n].Heros.forEach(function(e) {
                            e.Sid > 0 && i.push(e)
                        }), o = e._data.TargetInfo.Formations[n].Power), r.push({
                            Heros: i,
                            Count: t.Items[0],
                            Power: o
                        })
                    }), r.sort(function(e, t) {
                        return e.Count == t.Count ? t.Power - e.Power : e.Count - t.Count
                    }), r.forEach(function(t) {
                        e._targetFormations.push(t)
                    })
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = {};
                        o.Type = n._data.Type, o.Index = t, o.ItemPrefab = n._itemPrefab, o.ActivityConfig = n._data.ActivityConfig, n._data.Type == l.Challenge ? (o.TargetFormationData = n._targetFormations[t], o.MyFormationData = n._myFormations[t]) : o.Report = n._data.Reports[t], e.getComponent(v.default).Init(o)
                    })
                }, t.prototype.OnReplayButtonClick = function() {
                    I.default.BattleInfo = this._data.ReportInfo, I.default.BattleReports = this._data.Reports, I.default.StartBattle(!0)
                }, t.prototype.OnChallengeButtonClick = function() {
                    var e = this,
                        t = S.default.GetActivityStartChallengeTime(this._data.ActivityConfig.Common, 10);
                    if (u.RpcComponent.Instance.ServerTime < t) m.UIUtlity.ShowFloatingHint("challenge_start_time".ToUILocale());
                    else if (b.default.GetRemainCount(this._data.ActivityConfig)) {
                        var n = C.default.GetItem(C.GameRecordDefine.BreakOutMatchJumpBattle),
                            o = C.default.GetItem(C.GameRecordDefine.BreakOutMatchJumpAll),
                            r = 0;
                        o && "1" == o ? r = 2 : n && "1" == n && (r = 1);
                        var i = new p.Req_Activity_BreakouChallenge;
                        i.Floor = this._data.Floor, i.ActivityId = this._data.ActivityConfig._id, i.Skip = r, i.TargetId = this._data.TargetInfo.Uid, u.RpcComponent.Instance.Call(i, function(t) {
                            c.UIManager.Instance.QuitPanelStack(f.PanelConfig.BreakOutMatchSelectPanel.Path), e.SetSettlement(t, r)
                        }, function() {
                            c.UIManager.Instance.QuitPanelStack(f.PanelConfig.BreakOutMatchSelectPanel.Path), c.UIManager.Instance.QuitPanelStack(f.PanelConfig.BreakOutMatchChallengePanel.Path), c.Game.EventDispatcher.Emit(y.EventKeys.EVENT_BREAKOUTMATCH_REFRESHDATA), m.UIUtlity.ShowFloatingHint("championShip_data_change".ToUILocale())
                        })
                    } else m.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale())
                }, t.prototype.SetSettlement = function(e, t) {
                    2 == t ? (c.UIManager.Instance.QuitPanelStack(f.PanelConfig.BreakOutMatchChallengePanel.Path), I.default.RequestBreakOutMatchSettlement(e.Reports, !1, !0, !1, e)) : 1 == t ? this.SetJumpBattleSpine(e) : (I.default.BattleInfo = e, I.default.BattleReports = e.Reports, c.UIManager.Instance.QuitPanelStack(f.PanelConfig.BreakOutMatchChallengePanel.Path), I.default.StartBattle())
                }, t.prototype.SetJumpBattleSpine = function(e) {
                    var t = this;
                    this.ScrollView.scrollToTop();
                    var n = 0;
                    this.CustomLayout.node.children.forEach(function(o, r) {
                        var i = o.getComponent(v.default);
                        t.scheduleOnce(function() {
                            i.SetSpine(), r >= 4 && cc.tween(t.CustomLayout.node).by(.2, {
                                y: t.CustomLayout.CellHeight + t.CustomLayout.SpaceY
                            }).call(function() {
                                r == t.CustomLayout.node.children.length - 1 && (c.UIManager.Instance.QuitPanelStack(f.PanelConfig.BreakOutMatchChallengePanel.Path), I.default.RequestBreakOutMatchSettlement(e.Reports, !1, !0, !1, e))
                            }).start()
                        }, n), n += .3
                    })
                }, t.prototype.OnJump1ToggleClick = function() {
                    var e = this.Jump1Toggle.isChecked ? "1" : "0";
                    C.default.SetItem(C.GameRecordDefine.BreakOutMatchJumpBattle, e)
                }, t.prototype.OnJump2ToggleClick = function() {
                    var e = this.Jump2Toggle.isChecked ? "1" : "0";
                    C.default.SetItem(C.GameRecordDefine.BreakOutMatchJumpAll, e)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "breakOutMatch_rule_title".ToUILocale(),
                        titles: ["breakOutMatch_rule_title".ToUILocale()],
                        contents: ["breakOutMatch_rule_content".ToUILocale()]
                    };
                    m.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.Button)], t.prototype, "ReplayButton", void 0), i([A(cc.Node)], t.prototype, "MyHeadNode", void 0), i([A(cc.Sprite)], t.prototype, "MyResult", void 0), i([A(cc.Node)], t.prototype, "MyScoreNode", void 0), i([A(cc.Label)], t.prototype, "MyZone", void 0), i([A(cc.Label)], t.prototype, "MyName", void 0), i([A(cc.Label)], t.prototype, "MyScoreDesc", void 0), i([A(cc.Label)], t.prototype, "MyScore", void 0), i([A(cc.Node)], t.prototype, "EnemyHeadNode", void 0), i([A(cc.Sprite)], t.prototype, "EnemyResult", void 0), i([A(cc.Node)], t.prototype, "EnemyScoreNode", void 0), i([A(cc.Label)], t.prototype, "EnemyZone", void 0), i([A(cc.Label)], t.prototype, "EnemyName", void 0), i([A(cc.Label)], t.prototype, "EnemyScoreDesc", void 0), i([A(cc.Label)], t.prototype, "EnemyScore", void 0), i([A(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([A(g.default)], t.prototype, "CustomLayout", void 0), i([A(cc.Node)], t.prototype, "ChallengeNode", void 0), i([A(cc.Button)], t.prototype, "ChallengeButton", void 0), i([A(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([A(cc.Toggle)], t.prototype, "Jump1Toggle", void 0), i([A(cc.Toggle)], t.prototype, "Jump2Toggle", void 0), i([A(cc.Label)], t.prototype, "Jump1Label", void 0), i([A(cc.Label)], t.prototype, "Jump2Label", void 0), i([A(cc.Button)], t.prototype, "ReturnButton", void 0), i([P], t)
            }(c.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/BreakOutMatchChallengeComponent": "BreakOutMatchChallengeComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeadComponent": "HeadComponent",
        "./BreakOutMatchLevelPanel": "BreakOutMatchLevelPanel",
        "./BreakOutMatchPanel": "BreakOutMatchPanel"
    }],
    BreakOutMatchComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "096e3S92ytMb5V6t6vGCbc4", "BreakOutMatchComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Flag = null, t.Zone = null, t.Name = null, t.Power = null, t.HeroNode = null, t.InfoNode = null, t.EmptyLabel = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.Flag.spriteFrame = e.getSpriteFrame("championPlatformBg_" + t), n ? (this._rankData = n, this.InfoNode.active = !0, this.EmptyLabel.node.active = !1, this.HeroNode.active = !0, this.Zone.string = "S" + n.Zone, this.Name.string = n.Name, this.Power.string = n.Power.toString(), this.SetHeroNode()) : (this.InfoNode.active = !1, this.HeroNode.active = !1, this.EmptyLabel.node.active = !0, this.EmptyLabel.string = "rank_no_people".ToUILocale())
                }, t.prototype.SetHeroNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._rankData.HeadIcon ? (e = void 0, (e = u.ConfigDataComponent.Instance.GetConfigById(c.HeroSkin_Config, this._rankData.HeadIcon)) || (e = u.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, this._rankData.HeadIcon)), t = "Hero_" + e.Model + "/HeroAvatar", [4, l.AssetsManager.Instance.LoadAsset(t)]) : [3, 2];
                                case 1:
                                    if (n = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._loadAssets.push(n), (o = cc.instantiate(n)).setParent(this.HeroNode), o.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0), r.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([f(cc.Sprite)], t.prototype, "Flag", void 0), i([f(cc.Label)], t.prototype, "Zone", void 0), i([f(cc.Label)], t.prototype, "Name", void 0), i([f(cc.Label)], t.prototype, "Power", void 0), i([f(cc.Node)], t.prototype, "HeroNode", void 0), i([f(cc.Node)], t.prototype, "InfoNode", void 0), i([f(cc.Label)], t.prototype, "EmptyLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components"
    }],
    BreakOutMatchEntranceItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "69d431g3XtCW4S/K66x9K5U", "BreakOutMatchEntranceItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../Consts/Consts"),
            c = e("../../Components/DataCenter"),
            u = e("../../RedDot/RedDotManager"),
            p = e("../Panel/ActivityBaseContent"),
            d = e("./ActivityCountDownComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ActivityCountDownComponent = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClicked, this)
                }, t.prototype.Init = function() {
                    this.SetGlobalChampionShip(), this.BindRedDot()
                }, t.prototype.SetGlobalChampionShip = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function() {
                            for (t in c.DataCenter.Instance.ActivityConfigs)
                                if (c.DataCenter.Instance.ActivityConfigs[t].Common.Type == l.ActivityType.Breakou) {
                                    e = c.DataCenter.Instance.ActivityConfigs[t];
                                    break
                                } return e ? (this._activityId = e._id, this._isInit || (this.ActivityCountDownComponent.Init(e.Common), this._isInit = !0), [2]) : (this.node.active = !1, [2])
                        })
                    })
                }, t.prototype.BindRedDot = function() {
                    u.RedDotManager.Instance.Bind(this.node, u.RedDotManager.Instance.RedDot.BreakOutMatchNode)
                }, t.prototype.OnNodeClicked = function() {
                    this._activityId && p.default.OpenActivityPanel(this._activityId)
                }, i([y(d.default)], t.prototype, "ActivityCountDownComponent", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Panel/ActivityBaseContent": "ActivityBaseContent",
        "./ActivityCountDownComponent": "ActivityCountDownComponent"
    }],
    BreakOutMatchLevelComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "212dfwiGLNNCojSm1XFDhtY", "BreakOutMatchLevelComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../../../Consts/Consts"),
            u = e("./ItemComponent"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../../Util/TimeUtil"),
            h = e("./HeadComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/UIUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.ItemLabel = null, t.ItemNode = null, t.LockNode = null, t.LightNode = null, t.PowerNode = null, t.Power = null, t.PosNode = null, t.LevelInfoBg = null, t.Level = null, t.PeopleCount = null, t.HeadContent = null, t.HintNode = null, t.Hint = null, t.ButtonNode = null, t.ChallengeButton1 = null, t.ChallengeLabel1 = null, t.ChallengeButton2 = null, t.ChallengeLabel2 = null, t.ChallengeButton3 = null, t.ChallengeLabel3 = null, t.Reddot = null, t._headComponents = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ChallengeButton1.node.on("click", this.OnChallengeButton1Click, this), this.ChallengeButton2.node.on("click", this.OnChallengeButton1Click, this), this.ChallengeButton3.node.on("click", this.OnChallengeButton3Click, this), this.ChallengeLabel1.string = "breakOutMatch_find_target".ToUILocale(), this.ChallengeLabel2.string = "breakOutMatch_change_target".ToUILocale(), this.ChallengeLabel3.string = "breakOutMatch_occupy_floor".ToUILocale()
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(f.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this), a.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(f.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this), a.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    this._data = e, this.SetBg(), this.SetLockNode()
                }, t.prototype.UpdateFloorInfo = function(e, t) {
                    this._myFloor = e, this._floorData = t, this._model = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._data.ActivityConfig._id), this.SetReward(), this.SetPower(), this.SetLightNode(), this.SetInfoNode(), this.SetHeadNode(), this.SetButtons()
                }, t.prototype.SetBg = function() {
                    this.Bg.spriteFrame = this._data.Atlas.getSpriteFrame("levelBg" + this._data.FloorConfig.Bg)
                }, t.prototype.SetReward = function() {
                    if (this.ItemNode.active = this._data.FloorConfig.Rewards && this._data.FloorConfig.Rewards.length > 0, this.ItemLabel.node.active = this._data.FloorConfig.Rewards && this._data.FloorConfig.Rewards.length > 0, this._data.FloorConfig.Rewards && this._data.FloorConfig.Rewards.length) {
                        if (!this._itemComponent) {
                            var e = cc.instantiate(this._data.ItemPrefab);
                            e.parent = this.ItemNode, e.y = -20, this._itemComponent = e.getComponent(u.ItemComponent), this.ItemLabel.string = "breakOutMatch_reward_desc".ToUILocale()
                        }
                        this._itemComponent.Init({
                            ItemId: this._data.FloorConfig.Rewards[0].Items[0],
                            Count: this._data.FloorConfig.Rewards[0].Items[1]
                        }), this._itemComponent.SetSelectFlagState(this._model.IntValue > 0 && this._data.FloorConfig.Id >= this._model.IntValue)
                    }
                }, t.prototype.SetLightNode = function() {
                    this.LightNode.active = this._myFloor > 0 && this._data.FloorConfig.Id >= this._myFloor
                }, t.prototype.SetPower = function() {
                    this.PowerNode.active = this._myFloor == this._data.FloorConfig.Id, this._myFloor == this._data.FloorConfig.Id && (this.Power.string = l.DataCenter.Instance.GetIntData(c.UserDataKey.Power).toString())
                }, t.prototype.SetLockNode = function() {
                    this._startTime = this.GetStartTime(), this.LockNode.active = l.RpcComponent.Instance.ServerTime < this._startTime
                }, t.prototype.GetStartTime = function() {
                    var e = this._data.FloorConfig.Open[0] - 1,
                        t = this._data.FloorConfig.Open[1],
                        n = p.default.Instance.ComputeActivitStartTime(this._data.ActivityConfig.Common);
                    return d.TimeUtil.Get0ClockTs(n) + e * c.Etc.DayDuration + t * c.Etc.HourDuration
                }, t.prototype.SetInfoNode = function() {
                    var e = this._myFloor > 0 && this._data.FloorConfig.Id >= this._myFloor ? "bg1" : "bg2";
                    this.LevelInfoBg.spriteFrame = this._data.Atlas.getSpriteFrame(e), this.Level.string = "stage_index".ToUILocale().Fmt(this._data.FloorConfig.Id);
                    var t = this._data.Instance.GetFloorPeopleCount(this._data.FloorConfig.Id),
                        n = t < this._data.FloorConfig.Count ? "00ff00" : "ffffff";
                    this._data.FloorConfig.Count > 0 ? this.PeopleCount.string = "breakOutMatch_people_count".ToUILocale().Fmt(t, this._data.FloorConfig.Count, n) : this.PeopleCount.string = "breakOutMatch_cant_limit_count".ToUILocale()
                }, t.prototype.SetHeadNode = function() {
                    var e = this._data.Instance.GetFloorPeopleCount(this._data.FloorConfig.Id);
                    if (this.HintNode.active = l.RpcComponent.Instance.ServerTime < this._startTime || this._data.FloorConfig.Id < this._myFloor - 1, this.HeadContent.active = l.RpcComponent.Instance.ServerTime >= this._startTime && this._data.FloorConfig.Id >= this._myFloor - 1, this._headComponents.forEach(function(e) {
                            e.node.active = !1
                        }), l.RpcComponent.Instance.ServerTime >= this._startTime && this._data.FloorConfig.Id >= this._myFloor - 1) {
                        if (!e) return;
                        if (this._data.FloorConfig.Id <= 3)
                            for (var t = this.GetFloorPlayers(this._data.FloorConfig.Id), n = 0, o = 0; o < t.length; o++) {
                                var r = t[o];
                                r.Uid != l.DataCenter.Instance.Uid && (this._headComponents[n] || ((a = cc.instantiate(this._data.HeadPrefab)).parent = this.HeadContent, this._headComponents[n] = a.getComponent(h.default)), this._headComponents[n].node.active = !0, this._headComponents[n].SetUI(r.HeadIcon, r.HeadFrame, r.Title), n++)
                            } else {
                                var i = e >= this._data.FloorConfig.Count ? 3 : 1 == e ? 1 : 2;
                                for (o = 0; o < i; o++) {
                                    var a;
                                    if (this._headComponents[o] || ((a = cc.instantiate(this._data.HeadPrefab)).parent = this.HeadContent, this._headComponents[o] = a.getComponent(h.default)), this._headComponents[o].node.active = !0, 1 == i && this._data.FloorConfig.Id == this._myFloor) {
                                        var s = l.DataCenter.Instance.GetIntData(c.UserDataKey.HeadIcon),
                                            u = l.DataCenter.Instance.GetIntData(c.UserDataKey.HeadFrame),
                                            d = l.DataCenter.Instance.GetIntData(c.UserDataKey.Title);
                                        this._headComponents[o].SetUI(s, u, d)
                                    } else {
                                        var f = p.default.Instance.GetRandomIconAndFrame();
                                        this._headComponents[o].SetUI(f[0], f[1])
                                    }
                                }
                            }
                    } else l.RpcComponent.Instance.ServerTime < this._startTime ? (this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1)) : this.Hint.string = "breakOutMatch_occupy_limit".ToUILocale().Fmt(this._data.FloorConfig.Id + 1)
                }, t.prototype.GetFloorPlayers = function(e) {
                    var t = {};
                    return this._floorData.Infos.forEach(function(e) {
                        t[e.Value1] || (t[e.Value1] = []), t[e.Value1].push(e)
                    }), t[e] || []
                }, t.prototype.CountDown = function() {
                    var e = this._startTime - l.RpcComponent.Instance.ServerTime;
                    if (e <= 0) return this.unschedule(this.CountDown), this.SetLockNode(), void this.SetHeadNode();
                    var t = p.default.ActivityTimeLeftFormat(e);
                    this.Hint.string = "breakOutMatch_time_limit".ToUILocale().Fmt(t)
                }, t.prototype.SetButtons = function() {
                    var e = p.default.Instance.ComputeDeadTime(this._data.ActivityConfig.Common);
                    if (this.ButtonNode.active = l.RpcComponent.Instance.ServerTime >= this._startTime && l.RpcComponent.Instance.ServerTime < e && this._data.FloorConfig.Id >= this._myFloor - 1 && this._data.FloorConfig.Id <= this._myFloor + 1, this.ChallengeButton1.node.active = !1, this.ChallengeButton2.node.active = !1, this.ChallengeButton3.node.active = !1, !(l.RpcComponent.Instance.ServerTime < this._startTime || l.RpcComponent.Instance.ServerTime >= e)) {
                        if (this._data.FloorConfig.Id == this._myFloor + 1) this.ChallengeButton1.node.active = !0;
                        else if (this._data.FloorConfig.Id == this._myFloor) this.ChallengeButton1.node.active = 1 != this._myFloor;
                        else if (this._data.FloorConfig.Id == this._myFloor - 1) {
                            var t = this._data.Instance.GetFloorPeopleCount(this._data.FloorConfig.Id),
                                n = this.GetFloorMaxCount(this._data.FloorConfig.Id);
                            this.ChallengeButton2.node.active = t >= n, this.ChallengeButton3.node.active = t < n
                        }
                        var o = (e - l.RpcComponent.Instance.ServerTime) / 1e3;
                        this.unschedule(this.HideButtonNode), this.scheduleOnce(this.HideButtonNode, o)
                    }
                }, t.prototype.HideButtonNode = function() {
                    this.ButtonNode.active = !1
                }, t.prototype.GetFloorMaxCount = function(e) {
                    var t, n = this;
                    return this._floorMap || (this._floorMap = {}, this._data.ActivityConfig.__Floors.forEach(function(e) {
                        n._floorMap[e.Id] = e
                    })), (null === (t = this._floorMap[e]) || void 0 === t ? void 0 : t.Count) || 0
                }, Object.defineProperty(t.prototype, "Data", {
                    get: function() {
                        return this._data
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && g.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, t.prototype.OnChallengeButton1Click = function() {
                    var e = this,
                        t = new s.Req_Activity_BreakouTargets;
                    t.ActivityId = this._data.ActivityConfig._id, t.Floor = this._data.FloorConfig.Id, l.RpcComponent.Instance.Call(t, function(t) {
                        a.UIManager.Instance.ShowUIPanel(y.PanelConfig.BreakOutMatchSelectPanel.Path, e._data.ActivityConfig, t, e._data.FloorConfig.Id)
                    }, function() {
                        a.Game.EventDispatcher.Emit(f.EventKeys.EVENT_BREAKOUTMATCH_REFRESHDATA), g.UIUtlity.ShowFloatingHint("championShip_data_change".ToUILocale())
                    })
                }, t.prototype.OnChallengeButton3Click = function() {
                    var e = this,
                        t = p.default.GetActivityStartChallengeTime(this._data.ActivityConfig.Common, 10);
                    if (l.RpcComponent.Instance.ServerTime < t) g.UIUtlity.ShowFloatingHint("challenge_start_time".ToUILocale());
                    else {
                        var n = new s.Req_Activity_BreakouChallenge;
                        n.ActivityId = this._data.ActivityConfig._id, n.Floor = this._data.FloorConfig.Id, n.TargetId = 0, l.RpcComponent.Instance.Call(n, function(t) {
                            var n = new s.Req_Activity_BreakouFloors;
                            n.ActivityId = e._data.ActivityConfig._id, l.RpcComponent.Instance.Call(n, function(e) {
                                var n = !0;
                                t && t.Rewards.length > 0 && (g.UIUtlity.ShwDisplayRewardPanel(t.Rewards), n = !1), a.Game.EventDispatcher.Emit(f.EventKeys.EVENT_BREAKOUTMATCH_CHALLENGE, t.Params[1], t.Params[2], e, n)
                            })
                        }, function() {
                            a.Game.EventDispatcher.Emit(f.EventKeys.EVENT_BREAKOUTMATCH_REFRESHDATA)
                        })
                    }
                }, t.prototype.SetReddot = function(e) {
                    this.Reddot.active = e
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([_(cc.Sprite)], t.prototype, "Bg", void 0), i([_(cc.Label)], t.prototype, "ItemLabel", void 0), i([_(cc.Node)], t.prototype, "ItemNode", void 0), i([_(cc.Node)], t.prototype, "LockNode", void 0), i([_(cc.Node)], t.prototype, "LightNode", void 0), i([_(cc.Node)], t.prototype, "PowerNode", void 0), i([_(cc.Label)], t.prototype, "Power", void 0), i([_(cc.Node)], t.prototype, "PosNode", void 0), i([_(cc.Sprite)], t.prototype, "LevelInfoBg", void 0), i([_(cc.Label)], t.prototype, "Level", void 0), i([_(cc.RichText)], t.prototype, "PeopleCount", void 0), i([_(cc.Node)], t.prototype, "HeadContent", void 0), i([_(cc.Node)], t.prototype, "HintNode", void 0), i([_(cc.RichText)], t.prototype, "Hint", void 0), i([_(cc.Node)], t.prototype, "ButtonNode", void 0), i([_(cc.Button)], t.prototype, "ChallengeButton1", void 0), i([_(cc.Label)], t.prototype, "ChallengeLabel1", void 0), i([_(cc.Button)], t.prototype, "ChallengeButton2", void 0), i([_(cc.Label)], t.prototype, "ChallengeLabel2", void 0), i([_(cc.Button)], t.prototype, "ChallengeButton3", void 0), i([_(cc.Label)], t.prototype, "ChallengeLabel3", void 0), i([_(cc.Node)], t.prototype, "Reddot", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeadComponent": "HeadComponent",
        "./ItemComponent": "ItemComponent"
    }],
    BreakOutMatchLevelPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2ce7cTeGVtN5oVBNAe4vSuG", "BreakOutMatchLevelPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/ActivityCountDownComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/BreakOutMatchLevelComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../RedDot/RedDotManager"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RuleButton = null, t.Title = null, t.ChallengeDesc = null, t.ChallengeCount = null, t.AddButton = null, t.ActivityCountDownComponent = null, t.ScrollView = null, t.Content = null, t.RewardButton = null, t.RewardLabel = null, t.FormationButton = null, t.FormationLabel = null, t.ReportButton = null, t.ReportLabel = null, t.TaskButton = null, t.TaskLabel = null, t.ReturnButton = null, t.PosNode = null, t.PosHeroNode = null, t.OutHeadNode = null, t.Arrow = null, t.MyHeadSprite = null, t.OutHeadSprite1 = null, t.OutHeadSprite2 = null, t.MaskNode = null, t.PosArrowNode = null, t._levelComponents = [], t._newFloor = 0, t._oldFloor = 0, t.heroInitPosY = -360, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_BREAKOUTMATCH_CHALLENGE, this.UpdateChallenge, this), l.Game.EventDispatcher.On(m.EventKeys.EVENT_BREAKOUTMATCH_REFRESHDATA, this.RefreshData, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_BREAKOUTMATCH_CHALLENGE, this.UpdateChallenge, this), l.Game.EventDispatcher.Off(m.EventKeys.EVENT_BREAKOUTMATCH_REFRESHDATA, this.RefreshData, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("BreakOutMatchPanel/Components/BreakOutMatchLevelComponent", cc.Prefab), n = this.LoadDynamicAsset("BreakOutMatchPanel/PNG/BreakOutMatch", cc.SpriteAtlas), o = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), r = this.LoadDynamicAsset(y.BundlePath.HeadComponent, cc.Prefab), i = this.LoadDynamicAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._levelPrefab = e[0], a._atlas = e[1], a._itemPrefab = e[2], a._headPrefab = e[3], a._championAtlas = e[4]
                                    })];
                                case 1:
                                    return s.sent(), this.OutHeadSprite1.spriteFrame = this._championAtlas.getSpriteFrame("circle"), this.OutHeadSprite2.spriteFrame = this._championAtlas.getSpriteFrame("triangle"), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ChallengeDesc.string = "HolyRelic_ResidueTimes".ToUILocale(), this.RewardLabel.string = "reward".ToUILocale(), this.FormationLabel.string = "StrongholdWar_Team_Edit".ToUILocale(), this.ReportLabel.string = "allianceWar_report".ToUILocale(), this.TaskLabel.string = "btn_task".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.AddButton.node.on("click", this.OnAddButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.FormationButton.node.on("click", this.OnFormationButtonClick, this), this.ReportButton.node.on("click", this.OnReportButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.OutHeadNode.on(cc.Node.EventType.TOUCH_END, this.OnClickOutHeadNode, this), this.ScrollView.node.on("scrolling", this.OnScrolling, this);
                    var t = this.ScrollView.node.getBoundingBoxToWorld();
                    this._nodeViewRect = new cc.Rect(t.x, t.y, this.ScrollView.node.width, this.ScrollView.node.height + 1226)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityConfig = t[0], this._res = t[1], this._myFloor = this._res.MyFloor, this.Title.string = this._activityConfig.Common.Title, this.MaskNode.active = !1
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r, i, a, p = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = c.DataCenter.Instance.GetIntData(d.UserDataKey.HeadIcon), (o = c.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, t)) ? n = "Hero_" + o.Model + "/HeroAvatar" : (r = c.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, t), n = "Hero_" + r.Model + "/HeroAvatar"), i = l.AssetsManager.Instance.LoadAsset(y.BundlePath.HeadIcon + "/" + t, cc.SpriteFrame), a = l.AssetsManager.Instance.LoadAsset(n, cc.Prefab), [4, Promise.all([i, a]).then(function(e) {
                                        p.MyHeadSprite.spriteFrame = e[0], p._heroPrefab = e[1]
                                    })];
                                case 1:
                                    return s.sent(), this.PosHeroNode.children.length || (cc.instantiate(this._heroPrefab).parent = this.PosHeroNode), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.ActivityCountDownComponent.Init(this._activityConfig.Common), this.SetLevelList(), this.SetPostionNode(!1));
                    var o = n.GetRemainCount(this._activityConfig);
                    this.ChallengeCount.string = o.toString(), this.CheckOutHeadNode(), this.UpdateUIContent(), this.SetChallengeReddot(), _.RedDotManager.Instance.BindInstance(this.TaskButton.node, _.RedDotManager.Instance.InstanceRedDot.BreakouTaskNode, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.UpdateChallenge = function(e, t, n, o) {
                    void 0 === o && (o = !1), this._newFloor = e, this._oldFloor = t, n && (this._res = n, l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_BREAKOUTMATCH_REFRESH_MAIN, n)), o && (this.UpdateUIContent(), this.SetChallengeReddot(), _.RedDotManager.Instance.BindInstance(this.TaskButton.node, _.RedDotManager.Instance.InstanceRedDot.BreakouTaskNode, {
                        Value1: this._activityConfig._id
                    }))
                }, t.prototype.RefreshData = function() {
                    var e = this,
                        t = new p.Req_Activity_BreakouFloors;
                    t.ActivityId = this._activityConfig._id, c.RpcComponent.Instance.Call(t, function(t) {
                        e._res = t, e._myFloor = t.MyFloor, l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_BREAKOUTMATCH_REFRESH_MAIN, t), e._levelComponents.forEach(function(n) {
                            n.UpdateFloorInfo(t.MyFloor, e._res)
                        }), e.SetPostionNode(!1), e.SetChallengeReddot(), f.UIUtlity.ShowFloatingHint("breakOutMatch_data_change".ToUILocale())
                    })
                }, t.prototype.UpdateUIContent = function() {
                    this._newFloor && this._newFloor != this._myFloor && (this._myFloor = this._newFloor, this.SetPostionNode(!0), this.UpdateFloors(this._oldFloor), this._newFloor = 0, this._oldFloor = 0)
                }, t.prototype.UpdateFloors = function(e) {
                    for (var t = 0; t < this._levelComponents.length; t++) {
                        var n = this._levelComponents[t];
                        n.Data.FloorConfig.Id >= e - 2 && n.Data.FloorConfig.Id <= e + 2 && n.UpdateFloorInfo(this._myFloor, this._res)
                    }
                }, t.GetRemainCount = function(e) {
                    var t = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, e._id),
                        n = t.Tickets[0] || 0,
                        o = t.Tickets[2] || 0;
                    return o < e.CustomPart.Tickets[0].Items[0] ? e.CustomPart.Tickets[0].Items[0] - o + n : n
                }, t.prototype.SetChallengeReddot = function() {
                    var e = this,
                        t = n.GetRemainCount(this._activityConfig);
                    this._levelComponents.forEach(function(n) {
                        var o = !1;
                        if (n.ChallengeButton2.node.active) o = t > 0;
                        else if (n.ChallengeButton1.node.active) {
                            var r = e.GetFloorPeopleCount(n.Data.FloorConfig.Id);
                            o = !(1 == n.Data.FloorConfig.Id && 1 == e._myFloor || n.Data.FloorConfig.Id == e._myFloor && 1 == r || 0 == r) && t > 0
                        } else n.ChallengeButton3.node.active && (o = !0);
                        n.SetReddot(o)
                    })
                }, t.prototype.SetLevelList = function() {
                    var e = this,
                        t = {};
                    this._res.Infos.forEach(function(e) {
                        t[e.Value1] || (t[e.Value1] = []), t[e.Value1].push(e)
                    }), this._activityConfig.__Floors.forEach(function(t, n) {
                        if (!e._levelComponents[n]) {
                            var o = cc.instantiate(e._levelPrefab);
                            o.parent = e.Content, e._levelComponents[n] = o.getComponent(g.default)
                        }
                        var r = {};
                        r.Atlas = e._atlas, r.HeadPrefab = e._headPrefab, r.ItemPrefab = e._itemPrefab, r.FloorConfig = t, r.ActivityConfig = e._activityConfig, r.Instance = e, e._levelComponents[n].Init(r), e._levelComponents[n].UpdateFloorInfo(e._myFloor, e._res)
                    }), this.Content.getComponent(cc.Layout).updateLayout();
                    var n = this._activityConfig.__Floors.findIndex(function(t) {
                        return t.Id == e._myFloor
                    });
                    if (n > -1) {
                        var o = 613 * (n - 1 > 0 ? n - 1 : 0);
                        this.ScrollView.scrollToOffset(cc.v2(0, o))
                    }
                }, t.prototype.GetFloorPeopleCount = function(e) {
                    return this._res.CountMap && this._res.CountMap[e] ? this._res.CountMap[e] : 0
                }, t.prototype.SetPostionNode = function(e) {
                    for (var t, n, o = 0; o < this._levelComponents.length; o++) {
                        var r = this._levelComponents[o];
                        if (r.Data.FloorConfig.Id == this._myFloor) {
                            n = r;
                            break
                        }
                    }
                    n && (e ? (this.MaskNode.active = !0, this.SetPosSpine(n)) : (this.PosNode.parent = n.PosNode, this.PosNode.y = 0, this.PosNode.x = 0, this.PosNode.active = !0, null === (t = this.PosHeroNode.children[0]) || void 0 === t || t.getComponent(sp.Skeleton).setAnimation(0, "standby", !0)))
                }, t.prototype.SetPosSpine = function(e) {
                    var t, n = this;
                    this.PosNode.active = !0;
                    var o = this.PosNode.y,
                        r = this.Content.y,
                        i = null === (t = this.PosHeroNode.children[0]) || void 0 === t ? void 0 : t.getComponent(sp.Skeleton);
                    if (i) {
                        var a = r - 613 > this.ScrollView.node.height / 2 ? r - 613 : this.ScrollView.node.height / 2;
                        cc.tween(this.PosNode).call(function() {
                            cc.tween(n.PosHeroNode).call(function() {
                                i.setAnimation(0, "move", !0)
                            }).to(.5, {
                                y: n.heroInitPosY + 160,
                                scale: .6
                            }, {
                                easing: "easeInOutSine"
                            }).start(), cc.tween(n.PosHeroNode).delay(.3).to(.2, {
                                opacity: 0
                            }).call(function() {
                                n.PosArrowNode.active = !1, n.PosNode.y = o + 613
                            }).start()
                        }).delay(.7).call(function() {
                            cc.tween(n.Content).to(.5, {
                                y: a
                            }, {
                                easing: "easeInOutSine"
                            }).start()
                        }).call(function() {
                            n.OnScrolling()
                        }).delay(.3).call(function() {
                            cc.tween(n.PosHeroNode).to(.5, {
                                y: n.heroInitPosY,
                                scale: 1.1
                            }, {
                                easing: "easeInOutSine"
                            }).start(), cc.tween(n.PosHeroNode).to(.2, {
                                opacity: 255
                            }).call(function() {
                                n.PosArrowNode.active = !0
                            }).start()
                        }).delay(.5).call(function() {
                            i.setAnimation(0, "standby", !0), n.PosNode.parent = e.PosNode, n.PosNode.y = 0, n.PosNode.x = 0, n.MaskNode.active = !1
                        }).start()
                    }
                }, t.prototype.CheckOutHeadNode = function() {
                    var e = 0,
                        t = this.GetCurGroupComponent();
                    if (t) {
                        var n = t.node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            o = this.ScrollView.node.convertToNodeSpaceAR(n);
                        o.y > this.ScrollView.node.height / 2 + t.node.height / 2 ? e = 1 : o.y < -this.ScrollView.node.height / 2 - t.node.height / 2 && (e = -1)
                    }
                    this.OutHeadNode.active = 0 != e, this.OutHeadNode.active && (this.Arrow.y = 1 == e ? 88 : -88, this.Arrow.scaleY = 1 == e ? -1 : 1, this.OutHeadNode.y = 1 == e ? this.node.height / 2 - 262 : 262 - this.node.height / 2)
                }, t.prototype.GetCurGroupComponent = function() {
                    for (var e, t = 0; t < this._levelComponents.length; t++) {
                        var n = this._levelComponents[t];
                        if (n.Data.FloorConfig.Id == this._myFloor) {
                            e = n;
                            break
                        }
                    }
                    return e
                }, t.prototype.OnAddButtonClick = function() {
                    var e = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id),
                        t = this.GetTotalCount(),
                        o = e.Tickets && e.Tickets[1] ? e.Tickets[1] : 0,
                        r = n.GetRemainCount(this._activityConfig),
                        i = {
                            ItemId: 0,
                            ItemCount: 0,
                            ItemDesc: "buyAndSale_buyTimes_challenge".ToUILocale().Fmt(r),
                            CurrencyId: d.CommonItemId.Diamond,
                            BuyCountLimit: t,
                            BuyCount: o,
                            ProgressCallback: this.CurrentTotalPrice.bind(this),
                            BuyCallback: this.RequestBuyTicket.bind(this)
                        };
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonBuyItemPanel.Path, i)
                }, t.prototype.GetTotalCount = function() {
                    var e = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id),
                        t = this._activityConfig.CustomPart.Tickets,
                        n = (t[0], t.slice(1)),
                        o = n[n.length - 1].Items[0],
                        r = e.Tickets && e.Tickets[1] ? e.Tickets[1] : 0;
                    return o > 0 ? o - r > 10 ? 10 : o - r : r + 10
                }, t.prototype.CurrentTotalPrice = function(e) {
                    if (!e) return 0;
                    var t = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id),
                        n = this._activityConfig.CustomPart.Tickets,
                        o = (n[0], n.slice(1));
                    return I.default.Instance.GetActivityTicketCost(o, t, e)
                }, t.prototype.RequestBuyTicket = function(e) {
                    var t = this,
                        o = new p.Req_Activity_CommonBuyTicket;
                    o.ActivityId = this._activityConfig._id, o.Count = e, c.RpcComponent.Instance.Call(o, function() {
                        l.UIManager.Instance.QuitPanelStack(y.PanelConfig.CommonBuyItemPanel.Path), f.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale());
                        var e = n.GetRemainCount(t._activityConfig);
                        t.ChallengeCount.string = e.toString()
                    })
                }, t.prototype.OnRewardButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.BreakOutMatchRewardPanel.Path, this._activityConfig)
                }, t.prototype.OnFormationButtonClick = function() {
                    for (var e = [], t = 0; t < this._activityConfig.CustomPart.Condition.length; t++) e.push(this._activityConfig.CustomPart.MapId);
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), e, {
                        IsSaveFormationState: !0,
                        TeamNum: this._activityConfig.CustomPart.Condition.length,
                        ActivityId: this._activityConfig._id
                    })
                }, t.prototype.OnSetFormation = function(e) {
                    var t = new p.Req_Hero_SetFormation;
                    t.Formations = e, c.RpcComponent.Instance.Call(t, function() {
                        f.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale())
                    })
                }, t.prototype.OnReportButtonClick = function() {
                    var e = this,
                        t = new p.Req_Activity_BreakouReports;
                    t.ActivityId = this._activityConfig._id, c.RpcComponent.Instance.Call(t, function(t) {
                        l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CrossServerRankReportPanel.Path, t, d.ActivityType.Breakou, e._activityConfig._id)
                    })
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = {
                        IsActivity: !0
                    };
                    e.Title = "btn_task".ToUILocale(), e.Tasks = this._activityConfig._Tasks, e.ActivityId = this._activityConfig._id, l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonTaskPanel.Path, [e])
                }, t.prototype.OnClickOutHeadNode = function() {
                    var e = this.GetCurGroupComponent();
                    e && this.ScrollView.scrollToOffset(cc.v2({
                        y: -e.node.y - 1.5 * e.node.height
                    }), .2), this.OutHeadNode.active = !1
                }, t.prototype.OnScrolling = function() {
                    this.CheckOutHeadNode(), l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_CHECK_BUNDINGBOX, this._nodeViewRect)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "breakOutMatch_rule_title".ToUILocale(),
                        titles: ["breakOutMatch_rule_title".ToUILocale()],
                        contents: ["breakOutMatch_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, i([b(cc.Button)], t.prototype, "RuleButton", void 0), i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Label)], t.prototype, "ChallengeDesc", void 0), i([b(cc.Label)], t.prototype, "ChallengeCount", void 0), i([b(cc.Button)], t.prototype, "AddButton", void 0), i([b(h.default)], t.prototype, "ActivityCountDownComponent", void 0), i([b(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([b(cc.Node)], t.prototype, "Content", void 0), i([b(cc.Button)], t.prototype, "RewardButton", void 0), i([b(cc.Label)], t.prototype, "RewardLabel", void 0), i([b(cc.Button)], t.prototype, "FormationButton", void 0), i([b(cc.Label)], t.prototype, "FormationLabel", void 0), i([b(cc.Button)], t.prototype, "ReportButton", void 0), i([b(cc.Label)], t.prototype, "ReportLabel", void 0), i([b(cc.Button)], t.prototype, "TaskButton", void 0), i([b(cc.Label)], t.prototype, "TaskLabel", void 0), i([b(cc.Button)], t.prototype, "ReturnButton", void 0), i([b(cc.Node)], t.prototype, "PosNode", void 0), i([b(cc.Node)], t.prototype, "PosHeroNode", void 0), i([b(cc.Node)], t.prototype, "OutHeadNode", void 0), i([b(cc.Node)], t.prototype, "Arrow", void 0), i([b(cc.Sprite)], t.prototype, "MyHeadSprite", void 0), i([b(cc.Sprite)], t.prototype, "OutHeadSprite1", void 0), i([b(cc.Sprite)], t.prototype, "OutHeadSprite2", void 0), i([b(cc.Node)], t.prototype, "MaskNode", void 0), i([b(cc.Node)], t.prototype, "PosArrowNode", void 0), n = i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/BreakOutMatchLevelComponent": "BreakOutMatchLevelComponent"
    }],
    BreakOutMatchPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "96cd360d7xOhqvhT83um3BC", "BreakOutMatchPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/ActivityCountDownComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/BreakOutMatchComponent"),
            g = e("../Battle/BattleData"),
            m = e("../Battle/BattleManager"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../Auxiliary/DataUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RuleButton = null, t.Title = null, t.ActivityCountDownComponent = null, t.PowerDesc = null, t.Power = null, t.Top6Nodes = [], t.EnterButton = null, t.EnterLabel = null, t.ReturnButton = null, t._topComponents = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_BREAKOUTMATCH_REFRESH_MAIN, this.RefreshData, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_BREAKOUTMATCH_REFRESH_MAIN, this.RefreshData, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("BreakOutMatchPanel/Components/BreakOutMatchComponent", cc.Prefab), n = this.LoadDynamicAsset("ActivityChampionPanel/PNG/ActivityChampionAtlas", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o._topPrefab = e[0], o._atlas = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.EnterLabel.string = "breakOutMatch_enter".ToUILocale(), this.PowerDesc.string = "breakOutMatch_my_power2".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.EnterButton.node.on("click", this.OnEnterButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._res = t[1], this._activityConfig = c.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._activityConfig.Common.Title
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.ActivityCountDownComponent.Init(this._activityConfig.Common), this.CheckSettleReward(), this.SetTopSixNodes(), this.Power.string = c.DataCenter.Instance.GetIntData(d.UserDataKey.Power).toString()
                }, t.prototype.CheckSettleReward = function() {
                    var e = C.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                        t = e + this._activityConfig.Common.ExtraShowDays * d.Etc.DayDuration;
                    if (c.RpcComponent.Instance.ServerTime > e && c.RpcComponent.Instance.ServerTime <= t) {
                        var n = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id);
                        !(n && n.IntValue > 0) || n.Int2DArray[0] && n.Int2DArray[0].Items[0] || l.UIManager.Instance.ShowUIPanel(I.PanelConfig.BreakOutMatchSettleRewardPanel.Path, this._activityConfig)
                    }
                }, t.prototype.RefreshData = function(e) {
                    this._res = e
                }, t.prototype.SetTopSixNodes = function() {
                    var e = {};
                    this._res.Infos.forEach(function(t) {
                        e[t.Value1] || (e[t.Value1] = []), e[t.Value1].push(t)
                    });
                    for (var t = function(t, n) {
                            return e[t] && e[t][n] ? e[t][n] : null
                        }, n = 0; n < this.Top6Nodes.length; n++) {
                        var o = this.Top6Nodes[n];
                        if (!this._topComponents[n]) {
                            var r = cc.instantiate(this._topPrefab);
                            r.parent = o, this._topComponents[n] = r.getComponent(y.default)
                        }
                        var i = void 0,
                            a = void 0;
                        0 == n ? (i = t(1, 0), a = 1) : n < 3 ? (i = t(2, n - 1), a = 2) : (i = t(3, n - 3), a = 3), this._topComponents[n].Init(this._atlas, a, i)
                    }
                }, t.prototype.OnEnterButtonClick = function() {
                    for (var e = !0, t = !0, n = c.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, this._activityConfig.CustomPart.MapId), o = c.ConfigDataComponent.Instance.GetConfigById(u.MapType_Config, n.Type), r = function(n) {
                            var r = o.AttackerFormation[n],
                                a = c.DataCenter.Instance.GetDataById(p.UserFormation_Model, r);
                            if (!a) return e = !1, "break";
                            var s = 0;
                            if (a.HeroIds.forEach(function(e) {
                                    e > 0 && s++
                                }), !s) return e = !1, "break";
                            if (i._activityConfig.CustomPart.Condition[n]) {
                                var l = i._activityConfig.CustomPart.Condition[n].Items[0];
                                if (s > l) return t = !1, "break"
                            }
                        }, i = this, a = 0; a < o.AttackerFormation.length && "break" !== r(a); a++);
                    if (e && t) this.OpenBreakOutMatchLevelPanel();
                    else {
                        var s = [];
                        for (a = 0; a < this._activityConfig.CustomPart.Condition.length; a++) s.push(this._activityConfig.CustomPart.MapId);
                        l.UIManager.Instance.ShowUIPanel(I.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), s, {
                            IsSaveFormationState: !0,
                            TeamNum: this._activityConfig.CustomPart.Condition.length,
                            ActivityId: this._activityConfig._id
                        })
                    }
                }, t.prototype.OnSetFormation = function(e) {
                    var t = this,
                        n = new p.Req_Hero_SetFormation;
                    n.Formations = e, c.RpcComponent.Instance.Call(n, function() {
                        f.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale()), t.OpenBreakOutMatchLevelPanel()
                    })
                }, t.prototype.OpenBreakOutMatchLevelPanel = function() {
                    l.UIManager.Instance.ShowUIPanel(I.PanelConfig.BreakOutMatchLevelPanel.Path, this._activityConfig, this._res)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "breakOutMatch_rule_title".ToUILocale(),
                        titles: ["breakOutMatch_rule_title".ToUILocale()],
                        contents: ["breakOutMatch_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.InitBattle = function() {
                    var e = d.MapType.ActBreakou;
                    l.Game.EventDispatcher.Only(d.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(d.GameEventIds.SettleAllBattle.Fmt(e), n.SettleFunction, n), l.Game.EventDispatcher.Only(d.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.StartBattle = function(e) {
                    void 0 === e && (e = !1), n.NextBattleIndex = 0;
                    var t = n.GetNextBattleReport();
                    m.BattleManager.Instance.CanShowBattleSettlePanel = !1;
                    var o, r = {
                            Reports: [t],
                            Players: [],
                            ExtraParam: o = e ? {
                                DontCloseOnEnd: !0,
                                CanSwitchSpeed: !0,
                                CanSkipPlay: !0,
                                CanPlayInBackground: !1,
                                CanCanel: !1,
                                CanRestart: !1,
                                CanSkipAllPlay: !0
                            } : {
                                DontCloseOnEnd: !0,
                                CanSwitchSpeed: !0,
                                CanSkipPlay: !0,
                                CanPlayInBackground: !0,
                                CanCanel: !1,
                                CanRestart: !1,
                                CanSkipAllPlay: !0
                            },
                            IsDouble: !1,
                            ActiveIndex: 0,
                            ViewPortIds: [],
                            InBackground: !1,
                            SettleParams: null
                        },
                        i = c.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, r.Reports[0].MapId);
                    r.MapType = i.Type;
                    var a = 1;
                    n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                        e.Uid == c.DataCenter.Instance.Uid && (a = e.Camp)
                    }), l.UIManager.Instance.ShowUIPanel(I.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, a, r, function() {
                        var r = m.BattleManager.Instance.StartPlay(t, o);
                        e && (r.SettleParams = [n.BattleInfo, n.BattleReports])
                    })
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.BattleInfo && n.NextBattleIndex < n.BattleReports.length && (e = n.BattleReports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.SettleBattle = function(e) {
                    var t = n.GetNextBattleReport();
                    if (t)
                        if (e.Reports[0] = t, e.InBackground) m.BattleManager.Instance.NextWave(e);
                        else {
                            var o = 1;
                            n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                                e.Uid == c.DataCenter.Instance.Uid && (o = e.Camp)
                            }), l.UIManager.Instance.ShowUIPanel(I.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, o, e, n.ShowNextBattle)
                        }
                    else n.SettleFunction(e)
                }, t.SettleFunction = function(e) {
                    if (e.InBackground || l.Game.EventDispatcher.Emit(d.GameEventIds.DelayCloseBattlePanel), delete g.BattleData.PlayingBattleDatas[d.MapType.ActBreakou], e.SettleParams) {
                        var t = "BreakOutMatchPanel/Components/BreakOutMatchSettlementComponent",
                            o = e.SettleParams[0];
                        c.DataCenter.Instance.Uid == o.AttackerInfo.Uid == !!o.Result ? e.InBackground ? m.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : l.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : e.InBackground ? m.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementFailPanel.Path, t, e) : l.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementFailPanel.Path, t, e)
                    } else n.RequestBreakOutMatchSettlement(n.BattleReports, !1, e.InBackground);
                    m.BattleManager.Instance.CanShowBattleSettlePanel = !0
                }, t.RequestBreakOutMatchSettlement = function(e, t, n, o, r) {
                    void 0 === n && (n = !0), void 0 === o && (o = !0);
                    var i = {
                        Reports: e,
                        MapType: d.MapType.ActBreakou
                    };
                    if (o) {
                        var a = new p.Req_Map_BattleSettlement;
                        a.MapType = d.MapType.ActBreakou, c.RpcComponent.Instance.Call(a, function(o) {
                            var r = o.ExtraParam[0].Items[0];
                            if (l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_BREAKOUTMATCH_CHALLENGE, o.ExtraParam[0].Items[1], o.ExtraParam[0].Items[2]), c.DataCenter.Instance.ActivityConfigs[r]) {
                                i.SettleParams = [JSON.parse(o.StringParam)], i.SettleParams[0].Reports = e;
                                var a = "BreakOutMatchPanel/Components/BreakOutMatchSettlementComponent";
                                1 == o.Result ? n ? m.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementWinPanel.Path, a, i, null, o.Result) : l.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementWinPanel.Path, a, i, null, o.Result) : n ? m.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementFailPanel.Path, a, i) : l.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementFailPanel.Path, a, i), t && delete g.BattleData.PlayingBattleDatas[d.MapType.ActBreakou]
                            }
                        }, null)
                    } else {
                        l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_BREAKOUTMATCH_CHALLENGE, r.Params[1], r.Params[2]), i.SettleParams = [r], i.SettleParams[0].Reports = e;
                        var s = "BreakOutMatchPanel/Components/BreakOutMatchSettlementComponent";
                        1 == r.Result ? n ? m.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementWinPanel.Path, s, i, null, r.Result) : l.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementWinPanel.Path, s, i, null, r.Result) : n ? m.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementFailPanel.Path, s, i) : l.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementFailPanel.Path, s, i)
                    }
                }, t.ShowNextBattle = function(e) {
                    m.BattleManager.Instance.NextWave(e)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(I.PanelConfig.BreakOutMatchPanel.Path), l.UIManager.Instance.QuitPanelStack(I.PanelConfig.BreakOutMatchLevelPanel.Path), l.UIManager.Instance.QuitPanelStack(I.PanelConfig.BreakOutMatchChallengePanel.Path)
                }, t.prototype.onDestroy = function() {
                    m.BattleManager.Instance.CanShowBattleSettlePanel = !0
                }, t.BattleInfo = null, t.BattleReports = null, t.NextBattleIndex = 0, i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.Label)], t.prototype, "Title", void 0), i([S(h.default)], t.prototype, "ActivityCountDownComponent", void 0), i([S(cc.Label)], t.prototype, "PowerDesc", void 0), i([S(cc.Label)], t.prototype, "Power", void 0), i([S(cc.Node)], t.prototype, "Top6Nodes", void 0), i([S(cc.Button)], t.prototype, "EnterButton", void 0), i([S(cc.Label)], t.prototype, "EnterLabel", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), n = i([b], t)
            }(l.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/BreakOutMatchComponent": "BreakOutMatchComponent"
    }],
    BreakOutMatchRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c5680/oX2VDJKrx9ZgTufqN", "BreakOutMatchRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Components/ItemComponent"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Auxiliary/UIUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Level = null, t.RewardNode = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function(e) {
                    this._data = e, this.InitNodes(), this.SetRank(), this.SetReward()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetRank = function() {
                    this.Level.string = "stage_index".ToUILocale().Fmt(this._data.Level)
                }, t.prototype.SetReward = function() {
                    var e = this;
                    this._data.Rewards.forEach(function(t, n) {
                        var o = t.Items[0],
                            r = t.Items[1];
                        if (!e._itemNodes[n]) {
                            var i = cc.instantiate(e._data.ItemPrefab);
                            i.parent = e.RewardNode, e._itemNodes[n] = i
                        }
                        e._itemNodes[n].active = !0;
                        var a = e._itemNodes[n].getComponent(s.ItemComponent);
                        a.Init({
                            ItemId: o,
                            Count: r
                        }, s.ItemComponentType.ItemCommon);
                        var l = 0 == e._data.Type && e._data.MaxLevel <= e._data.Level;
                        a.SetSelectFlagState(l)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(s.ItemComponent).ItemId, t)
                }, i([d(cc.Label)], t.prototype, "Level", void 0), i([d(cc.Node)], t.prototype, "RewardNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    BreakOutMatchRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "251000l61xAC6AxMZJ43KTi", "BreakOutMatchRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/CustomToggle"),
            f = e("../Components/CustomLayout"),
            y = e("./BreakOutMatchRewardComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.TitleLabel = null, t.CustomLayout = null, t.ToggleContainer = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("BreakOutMatchPanel/Components/BreakOutMatchRewardComponent", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("Buttons/ToggleBottom", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._cellPrefab = e[0], r._itemPrefab = e[1], r._togglePrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._toggleTitles = ["breakOutMatch_complete_reward".ToUILocale(), "continuousFight_settle_reward".ToUILocale()], this.SetToggle()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._config = t[0], this._selectToggle = 0, this.SetListData()
                }, t.prototype.SetListData = function() {
                    var e = this;
                    this._datas = [
                        [],
                        []
                    ], this._config.__Floors.forEach(function(t) {
                        if (t.Rewards && t.Rewards.length > 0) {
                            var n = {};
                            n.Level = t.Id, n.Rewards = t.Rewards, e._datas[0].push(n)
                        }
                        var o = {};
                        o.Level = t.Id, o.Rewards = t.SettleRewards, e._datas[1].push(o)
                    })
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._activityModel = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._config._id), this.SetUIContent()
                }, t.prototype.SetToggle = function() {
                    for (var e = 0; e < 2; e++) {
                        var t = cc.instantiate(this._togglePrefab);
                        t.setParent(this.ToggleContainer), t.getComponent(h.default).Init(this._toggleTitles[e]), t.name = e.toString(), t.on("toggle", this.OnSwitchToggle, this)
                    }
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    this._selectToggle != t && (this._selectToggle = t, this.SetUIContent())
                }, t.prototype.SetUIContent = function() {
                    this.TitleLabel.string = this._toggleTitles[this._selectToggle], this._isInit || (this.CustomLayout.Init(this._cellPrefab), this._isInit = !0), this.CustomLayout.RenderLayOut(this._datas[this._selectToggle].length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._datas[n._selectToggle],
                            r = e.getComponent(y.default),
                            i = {};
                        i.ItemPrefab = n._itemPrefab, i.Level = o[t].Level, i.MaxLevel = n._activityModel.IntValue, i.Rewards = o[t].Rewards, i.Type = n._selectToggle, r.InitUI(i)
                    })
                }, i([I(cc.Label)], t.prototype, "TitleLabel", void 0), i([I(f.default)], t.prototype, "CustomLayout", void 0), i([I(cc.Node)], t.prototype, "ToggleContainer", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./BreakOutMatchRewardComponent": "BreakOutMatchRewardComponent"
    }],
    BreakOutMatchSelectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2cd8cF8tSVIpZ3l6SI52Q4s", "BreakOutMatchSelectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../../../Consts/Consts"),
            u = e("./HeadComponent"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../Panel/SeniorArenaPanel"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Panel/BreakOutMatchChallengePanel"),
            g = e("../Panel/BreakOutMatchLevelPanel"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadNode = null, t.Name = null, t.BattlePower = null, t.ChallengeButton = null, t.ChallengeLabel = null, t.PowerTag = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ChallengeLabel.string = "HolyRelic_challenge".ToUILocale(), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this)
                }, t.prototype.Init = function(e) {
                    if (this._data = e, this.PowerTag.node.active = e.Target && (e.IsMax || e.IsMin), e.Target && (e.IsMax || e.IsMin)) {
                        var t = void 0;
                        e.IsMax ? t = 0 : e.IsMin && (t = 2), this.PowerTag.spriteFrame = p.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame(h.default.PowerTagIconNames[t])
                    }
                    if (!this._headComponent) {
                        var n = cc.instantiate(e.HeadPrefab);
                        n.parent = this.HeadNode, this._headComponent = n.getComponent(u.default)
                    }
                    if (e.Target) this.ChallengeButton.node.active = !0, this._headComponent.SetUI(e.Target.HeadIcon, e.Target.HeadFrame, e.Target.Title), this.Name.string = e.Target.Name, this.BattlePower.string = e.Target.Power.toString();
                    else {
                        this.ChallengeButton.node.active = !1;
                        var o = l.DataCenter.Instance.GetIntData(d.UserDataKey.HeadIcon),
                            r = l.DataCenter.Instance.GetIntData(d.UserDataKey.HeadFrame),
                            i = l.DataCenter.Instance.GetIntData(d.UserDataKey.Title),
                            a = l.DataCenter.Instance.GetStringData(d.UserDataKey.RoleName);
                        this._headComponent.SetUI(o, r, i), this.Name.string = a, this.BattlePower.string = l.DataCenter.Instance.GetIntData(d.UserDataKey.Power).toString()
                    }
                }, t.prototype.OnChallengeButtonClick = function() {
                    if (!g.default.GetRemainCount(this._data.ActivityConfig)) return p.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale()), void this.OpenBuyTicketPanel();
                    this.OpenChallengePanel()
                }, t.prototype.OpenChallengePanel = function() {
                    var e = this,
                        t = new s.Req_Player_GetPlayerDetailInfo;
                    t.Uid = this._data.Target.Uid, t.FormationIds = [c.FormationIdType.ActBreakou1, c.FormationIdType.ActBreakou2, c.FormationIdType.ActBreakou3, c.FormationIdType.ActBreakou4, c.FormationIdType.ActBreakou5, c.FormationIdType.ActBreakou6, c.FormationIdType.ActBreakou7], t.Zone = this._data.Target.Zone, l.RpcComponent.Instance.Call(t, function(t) {
                        var n = {};
                        n.ActivityConfig = e._data.ActivityConfig, n.Floor = e._data.Floor, n.TargetInfo = t.Info, n.Type = y.BreakOutMatchChallengeType.Challenge, a.UIManager.Instance.ShowUIPanel(f.PanelConfig.BreakOutMatchChallengePanel.Path, n)
                    })
                }, t.prototype.OpenBuyTicketPanel = function() {
                    var e = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._data.ActivityConfig._id),
                        t = this.GetTotalCount(),
                        n = e.Tickets && e.Tickets[1] ? e.Tickets[1] : 0,
                        o = g.default.GetRemainCount(this._data.ActivityConfig),
                        r = {
                            ItemId: 0,
                            ItemCount: 0,
                            ItemDesc: "buyAndSale_buyTimes_challenge".ToUILocale().Fmt(o),
                            CurrencyId: c.CommonItemId.Diamond,
                            BuyCountLimit: t,
                            BuyCount: n,
                            ProgressCallback: this.CurrentTotalPrice.bind(this),
                            BuyCallback: this.RequestBuyTicket.bind(this)
                        };
                    a.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonBuyItemPanel.Path, r)
                }, t.prototype.GetTotalCount = function() {
                    var e = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._data.ActivityConfig._id),
                        t = this._data.ActivityConfig.CustomPart.Tickets,
                        n = (t[0], t.slice(1)),
                        o = n[n.length - 1].Items[0],
                        r = e.Tickets && e.Tickets[1] ? e.Tickets[1] : 0;
                    return o > 0 ? o - r > 10 ? 10 : o - r : r + 10
                }, t.prototype.CurrentTotalPrice = function(e) {
                    if (!e) return 0;
                    var t = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._data.ActivityConfig._id),
                        n = this._data.ActivityConfig.CustomPart.Tickets,
                        o = (n[0], n.slice(1));
                    return m.default.Instance.GetActivityTicketCost(o, t, e)
                }, t.prototype.RequestBuyTicket = function(e) {
                    var t = new s.Req_Activity_CommonBuyTicket;
                    t.ActivityId = this._data.ActivityConfig._id, t.Count = e, l.RpcComponent.Instance.Call(t, function() {
                        a.UIManager.Instance.QuitPanelStack(f.PanelConfig.CommonBuyItemPanel.Path), p.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale())
                    })
                }, i([C(cc.Node)], t.prototype, "HeadNode", void 0), i([C(cc.Label)], t.prototype, "Name", void 0), i([C(cc.Label)], t.prototype, "BattlePower", void 0), i([C(cc.Button)], t.prototype, "ChallengeButton", void 0), i([C(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([C(cc.Sprite)], t.prototype, "PowerTag", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/BreakOutMatchChallengePanel": "BreakOutMatchChallengePanel",
        "../Panel/BreakOutMatchLevelPanel": "BreakOutMatchLevelPanel",
        "../Panel/SeniorArenaPanel": "SeniorArenaPanel",
        "./HeadComponent": "HeadComponent"
    }],
    BreakOutMatchSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ec981RHw9BNt6GbJeBAfV6I", "BreakOutMatchSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/GameRecord"),
            y = e("../../../Consts/Etc"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/BreakOutMatchSelectComponent"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.CustomLayout = null, t.Power = null, t.MyNode = null, t.RefreshTime = null, t.RefreshButton = null, t.RefreshLabel = null, t._isInit = !1, t._nextRefreshTime = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("BreakOutMatchPanel/Components/BreakOutMatchSelectComponent", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._selectPrefab = e[0], o._headPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "championShip_select".ToUILocale(), this.RefreshLabel.string = "championShip_refresh".ToUILocale(), this.Power.string = "breakOutMatch_my_power".ToUILocale(), this.RefreshButton.node.on("click", this.OnRefreshButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = t[0], this._res = t[1], this._floor = t[2]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetPlayerList(), this.SetMyNode(), this.SetRefreshTime()
                }, t.prototype.SetRefreshTime = function() {
                    var e = f.default.GetItem(f.GameRecordDefine.BreakOutMatchRefresh);
                    !e || Number(e) + this._activityConfig.CustomPart.Interval * y.Etc.SecondDuration <= u.RpcComponent.Instance.ServerTime ? (this._nextRefreshTime = 0, this.CountDown()) : (this._nextRefreshTime = Number(e) + this._activityConfig.CustomPart.Interval * y.Etc.SecondDuration, this.unschedule(this.CountDown), this.CountDown(), this.schedule(this.CountDown, 1))
                }, t.prototype.CountDown = function() {
                    var e = this._nextRefreshTime - u.RpcComponent.Instance.ServerTime;
                    if (e < 0) this.RefreshTime.string = "championShip_can_refresh".ToUILocale(), this.unschedule(this.CountDown);
                    else {
                        var t = g.default.ActivityTimeLeftFormat(e);
                        this.RefreshTime.string = "championShip_refresh_time".ToUILocale().Fmt(t)
                    }
                }, t.prototype.SetMyNode = function() {
                    if (!this._mySelectComponent) {
                        var e = cc.instantiate(this._selectPrefab);
                        e.parent = this.MyNode, this._mySelectComponent = e.getComponent(I.default)
                    }
                    var t = {};
                    t.Floor = this._floor, t.HeadPrefab = this._headPrefab, t.ActivityConfig = this._activityConfig, this._mySelectComponent.Init(t)
                }, t.prototype.SetPlayerList = function() {
                    var e = this;
                    this._isInit || (this.CustomLayout.Init(this._selectPrefab), this._isInit = !0), this._powers = [], this._res.Infos.forEach(function(t) {
                        e._powers.push(t.Power)
                    }), this._powers.length > 1 && this._powers.sort(function(e, t) {
                        return t - e
                    }), this.CustomLayout.RenderLayOut(this._res.Infos.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = {};
                        o.Target = n._res.Infos[t], o.Floor = n._floor, o.HeadPrefab = n._headPrefab, o.ActivityConfig = n._activityConfig, o.IsMax = n._powers.length > 1 && n._res.Infos[t].Power == n._powers[0], o.IsMin = n._powers.length > 1 && n._res.Infos[t].Power == n._powers[n._powers.length - 1], e.getComponent(I.default).Init(o)
                    })
                }, t.prototype.OnRefreshButtonClick = function() {
                    var e = f.default.GetItem(f.GameRecordDefine.BreakOutMatchRefresh);
                    e && Number(e) + this._activityConfig.CustomPart.Interval * y.Etc.SecondDuration > u.RpcComponent.Instance.ServerTime ? m.UIUtlity.ShowFloatingHint("championShip_refresh_coolDown".ToUILocale()) : this.RequestRefreshTargets(!0)
                }, t.prototype.RequestRefreshTargets = function(e) {
                    var t = this,
                        n = new c.Req_Activity_BreakouTargets;
                    n.ActivityId = this._activityConfig._id, n.Floor = this._floor, u.RpcComponent.Instance.Call(n, function(n) {
                        t._res = n, e && f.default.SetItem(f.GameRecordDefine.BreakOutMatchRefresh, u.RpcComponent.Instance.ServerTime.toString()), t.SetUIContent()
                    }, function() {
                        l.UIManager.Instance.QuitPanelStack(h.PanelConfig.BreakOutMatchSelectPanel.Path), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_BREAKOUTMATCH_REFRESHDATA), m.UIUtlity.ShowFloatingHint("championShip_data_change".ToUILocale())
                    })
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(p.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Label)], t.prototype, "Power", void 0), i([v(cc.Node)], t.prototype, "MyNode", void 0), i([v(cc.Label)], t.prototype, "RefreshTime", void 0), i([v(cc.Button)], t.prototype, "RefreshButton", void 0), i([v(cc.Label)], t.prototype, "RefreshLabel", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/BreakOutMatchSelectComponent": "BreakOutMatchSelectComponent",
        "../Components/CustomLayout": "CustomLayout"
    }],
    BreakOutMatchSettleRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3b46fD1WNpI0L/OMAxeGgB9", "BreakOutMatchSettleRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../Components/ItemComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/EventKeys"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Floor = null, t.ScrollViewContent = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.LightBg = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o.LightBg.spriteFrame = e[1].getSpriteFrame("bg2")
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ReceiveLabel.string = "receive".ToUILocale(), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityConfig = t[0]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        var o = d.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id);
                        o || this.Close(), this.Floor.string = "breakoutMatch_final_floor".ToUILocale().Fmt(o.IntValue);
                        var r = this._activityConfig.__Floors.find(function(e) {
                            return e.Id == o.IntValue
                        });
                        r && r.SettleRewards.forEach(function(e) {
                            var t = cc.instantiate(n._itemPrefab);
                            t.parent = n.ScrollViewContent, t.getComponent(h.ItemComponent).Init({
                                ItemId: e.Items[0],
                                Count: e.Items[1]
                            })
                        })
                    }
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = this,
                        t = d.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id);
                    if (t)
                        if (t.Int2DArray[0] && t.Int2DArray[0].Items[0]) f.UIUtlity.ShowFloatingHint("breakoutMatch_settle_reward_received".ToUILocale());
                        else {
                            var n = c.Req_Activity_CommonRewards.create();
                            n.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(n, function(t) {
                                t.Rewards.length > 0 && f.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.Close()
                            })
                        }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ScrollViewContent.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, i([I(cc.Label)], t.prototype, "Floor", void 0), i([I(cc.Node)], t.prototype, "ScrollViewContent", void 0), i([I(cc.Button)], t.prototype, "ReceiveButton", void 0), i([I(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([I(cc.Sprite)], t.prototype, "LightBg", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    BreakOutMatchSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "615e2/zQ/NK2rd06cNh3gGf", "BreakOutMatchSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/HeadComponent"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/SeniorArenaSettlementItem"),
            m = e("../Components/SettlementBaseComponent"),
            I = e("../../Channel/ChannelManager"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ReportPartTitleLabel = null, t.MyFinalScore = null, t.MyHeaderNode = null, t.MyNameLabel = null, t.MyCurrentScoreLabel = null, t.MyScoreChangedLabel = null, t.MyScoreChangedTag = null, t.OpponentFinalScore = null, t.OpponentNameLabel = null, t.OpponentCurrentScoreLabel = null, t.OpponentScoreChangedLabel = null, t.OpponentHeaderNode = null, t.OpponentScoreChangedTag = null, t.BattleReportsContainer = null, t.RewardsPartTitleLabel = null, t.RewardsContainer = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t._loadedAssets = [], t._TargetInfo = null, t._MyScore = 0, t._MyScoreChange = 0, t._targetScore = 0, t._TargetScoreChange = 0, t._Reports = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ReportPartTitleLabel.string = "SeniorArenaSettlement_ReportPartTitle".ToUILocale(), this.RewardsPartTitleLabel.string = "reward".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsContainer.children.indexOf(t) && h.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.SetUI = function(t) {
                    var n = t.SettleParams[0];
                    if (n.TargetInfo) {
                        var o = n;
                        this._TargetInfo = o.TargetInfo, this._activityId = o.Params[0], this._MyScore = o.Params[1], this._MyScoreChange = o.Params[2], this._targetScore = o.Params[4], this._TargetScoreChange = o.Params[3], this._Reports = o.Reports, this._rewardData = o.Rewards
                    } else {
                        var r = n,
                            i = d.DataCenter.Instance.Uid == r.AttackerInfo.Uid;
                        this._TargetInfo = i ? r.DefenderInfo : r.AttackerInfo, this._activityId = r.IntParams[0], this._MyScore = r.IntParams[1], this._MyScoreChange = r.IntParams[2], this._targetScore = r.IntParams[4], this._TargetScoreChange = r.IntParams[3], this._Reports = t.SettleParams[1]
                    }
                    e.prototype.SetUI.call(this, t, null, this.SetCallBack.bind(this)), this.SetPlayerInfoView(), this.SetListView(), this.SetRewardsView()
                }, t.prototype.SetCallBack = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattleStatisticsPanel.Path, this._Reports)
                }, t.prototype.SetPlayerInfoView = function() {
                    this.MyNameLabel.string = d.DataCenter.Instance.GetStringData(c.UserDataKey.RoleName), this.MyCurrentScoreLabel.string = "breakOutMatch_floor".ToUILocale().Fmt(this._MyScore), this.OpponentNameLabel.string = this._TargetInfo.Name, this.OpponentCurrentScoreLabel.string = "breakOutMatch_floor".ToUILocale().Fmt(this._targetScore);
                    var e = this.GetVSResult();
                    this.MyFinalScore.string = "breakOutMatch_final_score".ToUILocale().Fmt(e[0]), this.OpponentFinalScore.string = "breakOutMatch_final_score".ToUILocale().Fmt(e[1]);
                    var t = e[0] > e[1],
                        n = this._MyScore - this._MyScoreChange;
                    t ? (this.MyScoreChangedLabel.string = "+" + Math.abs(n).toString(), this.MyScoreChangedLabel.node.color = cc.Color.GREEN, this.MyScoreChangedTag.node.active = 0 != n, this.MyScoreChangedTag.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green"), this.MyScoreChangedTag.node.scaleY = -1) : (this.MyScoreChangedLabel.string = "-" + Math.abs(n), this.MyScoreChangedLabel.node.color = cc.Color.RED, this.MyScoreChangedTag.node.active = 0 != n, this.MyScoreChangedTag.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red"), this.MyScoreChangedTag.node.scaleY = -1);
                    var o = this._targetScore - this._TargetScoreChange;
                    t ? (this.OpponentScoreChangedLabel.string = "-" + Math.abs(o), this.OpponentScoreChangedTag.node.active = 0 != o, this.OpponentScoreChangedLabel.node.color = cc.Color.RED, this.OpponentScoreChangedTag.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red"), this.OpponentScoreChangedTag.node.scaleY = -1) : (this.OpponentScoreChangedLabel.node.color = cc.Color.GREEN, this.OpponentScoreChangedTag.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green"), this.OpponentScoreChangedTag.node.active = 0 != o, this.OpponentScoreChangedTag.node.scaleY = -1, this.OpponentScoreChangedLabel.string = "+" + Math.abs(o).toString()), this.SetHeaderView()
                }, t.prototype.SetHeaderView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    return e = a.sent(), this.isValid ? (this._loadedAssets.push(e), t = cc.instantiate(e), (n = t.getComponent(f.default)).SetHeadIcon(d.DataCenter.Instance.GetIntData(c.UserDataKey.HeadIcon)), n.SetHeadFrame(d.DataCenter.Instance.GetIntData(c.UserDataKey.HeadFrame)), n.LevelNode.active = !1, t.parent = this.MyHeaderNode, n.SetLevel(d.DataCenter.Instance.GetIntData(c.UserDataKey.PlayerLevel)), (o = d.DataCenter.Instance.GetStringData(c.UserDataKey.Country)) || (o = I.default.Instance.Localization_Country), o = 0 == d.DataCenter.Instance.GetIntData(c.UserDataKey.CountryShowState) ? o : "", n.SetCountry(o), r = cc.instantiate(e), (i = r.getComponent(f.default)).SetHeadIcon(this._TargetInfo.HeadIcon), i.SetHeadFrame(this._TargetInfo.HeadFrame), i.LevelNode.active = !1, r.parent = this.OpponentHeaderNode, i.SetLevel(this._TargetInfo.Level), i.SetCountry(this._TargetInfo.Country), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.GetVSResult = function() {
                    var e = 0,
                        t = 0,
                        n = d.DataCenter.Instance.ActivityConfigs[this._activityId];
                    if (n)
                        for (var o = 0; o < this._Reports.length; o++) {
                            var r = this._Reports[o];
                            if (n.CustomPart.Condition[o]) {
                                var i = n.CustomPart.Condition[o].Items[1];
                                _.default.CheckIsSelfBattleWin(r, !0) ? e += i : t += i
                            }
                        }
                    return [e, t]
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset("Arena/SeniorArenaPrivate/SeniorArenaSettlementItem", cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), t = 0; t < this._Reports.length; t++)(n = cc.instantiate(e)).getComponent(g.default).Init(this._Reports[t], t, !0), this.BattleReportsContainer.addChild(n);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetRewardsView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._rewardData && this._rewardData.length ? [4, l.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab)] : [2];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), t = 0; t < this._rewardData.length; t++) n = this._rewardData[t].ItemId, o = this._rewardData[t].Count, (r = cc.instantiate(e).getComponent(y.ItemComponent)).Init({
                                        ItemId: n,
                                        Count: o
                                    }, y.ItemComponentType.ItemCommon), r.node.name = n.toString(), r.node.parent = this.RewardsContainer;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnConfirmButtonClicked = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets && (this._loadedAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssets = [])
                }, i([b(cc.Label)], t.prototype, "ReportPartTitleLabel", void 0), i([b(cc.Label)], t.prototype, "MyFinalScore", void 0), i([b(cc.Node)], t.prototype, "MyHeaderNode", void 0), i([b(cc.Label)], t.prototype, "MyNameLabel", void 0), i([b(cc.Label)], t.prototype, "MyCurrentScoreLabel", void 0), i([b(cc.Label)], t.prototype, "MyScoreChangedLabel", void 0), i([b(cc.Sprite)], t.prototype, "MyScoreChangedTag", void 0), i([b(cc.Label)], t.prototype, "OpponentFinalScore", void 0), i([b(cc.Label)], t.prototype, "OpponentNameLabel", void 0), i([b(cc.Label)], t.prototype, "OpponentCurrentScoreLabel", void 0), i([b(cc.Label)], t.prototype, "OpponentScoreChangedLabel", void 0), i([b(cc.Node)], t.prototype, "OpponentHeaderNode", void 0), i([b(cc.Sprite)], t.prototype, "OpponentScoreChangedTag", void 0), i([b(cc.Node)], t.prototype, "BattleReportsContainer", void 0), i([b(cc.Label)], t.prototype, "RewardsPartTitleLabel", void 0), i([b(cc.Node)], t.prototype, "RewardsContainer", void 0), i([b(cc.Button)], t.prototype, "ConfirmButton", void 0), i([b(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([v], t)
            }(m.default);
        n.default = S, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SeniorArenaSettlementItem": "SeniorArenaSettlementItem",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent"
    }],
    BubbleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c08cbMw6jRE2bIHHM7y+eYt", "BubbleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BubbleAnchorType = void 0;
        var a, s = e("./CustomRichText"),
            l = e("../Auxiliary/UIUtlity"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property;
        (function(e) {
            e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e[e.Top = 2] = "Top", e[e.Bottom = 3] = "Bottom"
        })(a = n.BubbleAnchorType || (n.BubbleAnchorType = {}));
        var d = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ContentText = null, t.ContentLayout = null, t.ArrowNode = null, t._anchorType = a.Left, t._style = 0, t._marginPercent = new cc.Vec2(10, 20), t._richText = null, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "MarginPercent", {
                get: function() {
                    return new cc.Vec2(this._marginPercent.x / 100, this._marginPercent.y / 100)
                },
                set: function(e) {
                    this._marginPercent.x = e.x, this._marginPercent.y = e.y
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SetUI = function(e, t, n, o) {
                var r = this;
                void 0 === o && (o = 0), this._worldPos = e, this._anchorType = n, this.ContentText.Init(t), this._richText = this.ContentText.CustomText, this._style = o, this.scheduleOnce(function() {
                    r.SetAlign(), r.SetAnchor(), r.SetBubbleSize(), e && r.SetPosition(), r.ContentLayout.updateLayout(), r.FixBeyondScreen()
                }, 0)
            }, t.prototype.SetPosition = function() {
                var e = this.node.parent.convertToNodeSpaceAR(this._worldPos);
                this.node.setPosition(e)
            }, t.prototype.SetAnchor = function() {
                if (0 === this._style) switch (this._anchorType) {
                    case a.Left:
                        this.ContentLayout.node.anchorX = 0, this.ContentLayout.node.anchorY = .5, this.ContentText.node.anchorX = 0, this.ContentText.node.anchorY = .5, this.ArrowNode.angle = 180, this.ArrowNode.setPosition(this.ContentLayout.node.getAnchorPoint()), this.ArrowNode.x -= 20;
                        break;
                    case a.Right:
                        this.ContentLayout.node.anchorX = 1, this.ContentLayout.node.anchorY = .5, this.ContentText.node.anchorX = 1, this.ContentText.node.anchorY = .5, this.ArrowNode.angle = 0, this.ArrowNode.setPosition(this.ContentLayout.node.getAnchorPoint()), this.ArrowNode.x += 20;
                        break;
                    case a.Top:
                        this.ContentLayout.node.anchorX = .5, this.ContentLayout.node.anchorY = 1, this.ContentText.node.anchorX = .5, this.ContentText.node.anchorY = 1, this.ArrowNode.angle = 90, this.ArrowNode.setPosition(this.ContentLayout.node.getAnchorPoint()), this.ArrowNode.y += 20;
                        break;
                    case a.Bottom:
                        this.ContentLayout.node.anchorX = .5, this.ContentLayout.node.anchorY = 0, this.ContentText.node.anchorX = .5, this.ContentText.node.anchorY = 0, this.ArrowNode.angle = -90, this.ArrowNode.setPosition(this.ContentLayout.node.getAnchorPoint()), this.ArrowNode.y -= 20
                } else switch (this._anchorType) {
                    case a.Left:
                        this.ContentLayout.node.anchorX = 0, this.ContentLayout.node.anchorY = .5, this.ContentText.node.anchorX = 0, this.ContentText.node.anchorY = .5, this.ArrowNode.angle = 0, this.ArrowNode.setPosition(this.ContentLayout.node.getAnchorPoint()), this.ArrowNode.x += 7.5;
                        break;
                    case a.Right:
                        this.ContentLayout.node.anchorX = 1, this.ContentLayout.node.anchorY = .5, this.ContentText.node.anchorX = 1, this.ContentText.node.anchorY = .5, this.ArrowNode.angle = 180, this.ArrowNode.setPosition(this.ContentLayout.node.getAnchorPoint()), this.ArrowNode.x -= 7.5;
                        break;
                    case a.Top:
                        this.ContentLayout.node.anchorX = .5, this.ContentLayout.node.anchorY = 1, this.ContentText.node.anchorX = .5, this.ContentText.node.anchorY = 1, this.ArrowNode.angle = -90, this.ArrowNode.setPosition(this.ContentLayout.node.getAnchorPoint()), this.ArrowNode.y -= 7.5;
                        break;
                    case a.Bottom:
                        this.ContentLayout.node.anchorX = .5, this.ContentLayout.node.anchorY = 0, this.ContentText.node.anchorX = .5, this.ContentText.node.anchorY = 0, this.ArrowNode.angle = 90, this.ArrowNode.setPosition(this.ContentLayout.node.getAnchorPoint()), this.ArrowNode.y += 7.5
                }
            }, t.prototype.SetAlign = function() {
                this.ContentLayout.paddingTop = this._richText.node.height * this.MarginPercent.y + 10, this.ContentLayout.paddingBottom = this.ContentLayout.paddingTop
            }, t.prototype.SetBubbleSize = function() {
                var e = this._richText._labelWidth;
                this.ContentLayout.node.width = e * (1 + 2 * this.MarginPercent.x) + 20;
                var t = this.ContentLayout.node.width - this.ContentText.node.width;
                this.ContentText.node.x = -t * (this.ContentLayout.node.anchorX - .5)
            }, t.prototype.FixBeyondScreen = function() {
                var e = this.JudgeBeyondScreen();
                this._anchorType == a.Left || this._anchorType == a.Right ? (e.x && this.MoveBubblePosition(-e.x), e.y && this.MoveBubblePosition(e.y)) : (e.z && this.MoveBubblePosition(e.z), e.w && this.MoveBubblePosition(-e.w))
            }, t.prototype.JudgeBeyondScreen = function() {
                var e = this,
                    t = function(t) {
                        var n = e.node.position,
                            o = e.ContentLayout.node,
                            r = 0;
                        switch (t) {
                            case a.Top:
                                return (r = n.y + (1 - o.anchorY) * o.height - l.UIUtlity.DESIGN_SCREEN_HEIGHT / 2) > 0 ? Math.abs(r) : 0;
                            case a.Bottom:
                                return (r = n.y + -o.anchorY * o.height - -l.UIUtlity.DESIGN_SCREEN_HEIGHT / 2) < 0 ? Math.abs(r) : 0;
                            case a.Left:
                                return (r = n.x + -o.anchorX * o.width - -l.UIUtlity.DESIGN_SCREEN_WIDTH / 2) < 0 ? Math.abs(r) : 0;
                            case a.Right:
                                return (r = n.x + (1 - o.anchorX) * o.width - l.UIUtlity.DESIGN_SCREEN_WIDTH / 2) > 0 ? Math.abs(r) : 0
                        }
                    };
                return new cc.Vec4(t(a.Top), t(a.Bottom), t(a.Left), t(a.Right))
            }, t.prototype.MoveBubblePosition = function(e) {
                this._anchorType === a.Top || this._anchorType === a.Bottom ? e < l.UIUtlity.DESIGN_SCREEN_WIDTH / 2 && (this.node.x += e, this.ArrowNode.x = -e) : e < l.UIUtlity.DESIGN_SCREEN_HEIGHT / 2 && (this.node.y += e, this.ArrowNode.y = -e)
            }, t.prototype.SetRichText = function(e, t, n) {
                this.ContentText.CustomText.node.color = e, this.ContentText.CustomText.maxWidth = t, this.ContentText.CustomText.lineHeight = n
            }, i([p(s.CustomRichText)], t.prototype, "ContentText", void 0), i([p(cc.Layout)], t.prototype, "ContentLayout", void 0), i([p(cc.Node)], t.prototype, "ArrowNode", void 0), i([u], t)
        }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomRichText": "CustomRichText"
    }],
    BubblePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5bfab/9Lf9GGYLJzTmdMKrJ", "BubblePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.BubblePanelStyle = void 0;
        var l, c = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/BubbleComponent"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass;
        f.property,
            function(e) {
                e[e.Default = 0] = "Default", e[e.Glow = 1] = "Glow"
            }(l = n.BubblePanelStyle || (n.BubblePanelStyle = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Independent, !1, !1), t._durationTime = 3e3, t._anchorType = p.BubbleAnchorType.Left, t._bubbleTable = [], t._style = l.Default, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.BubbleComponent)];
                            case 1:
                                return t._bubblePrefab = o.sent(), n = this, [4, this.LoadDynamicAsset(d.BundlePath.BubbleComponent2)];
                            case 2:
                                return n._bubblePrefab2 = o.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this)
            }, t.prototype.InitData = function(e) {
                this._worldPos = e[0], this._message = e[1], this._anchorType = e[2], null != e[3] && (this.UIType.UINode_Type = e[3]), null != e[4] && (this._style = e[4])
            }, t.prototype.AddFloatingBubble = function() {
                if (this._currBubbleItem = this._bubbleTable.pop(), null == this._currBubbleItem) {
                    var e = cc.instantiate(this._style == l.Glow ? this._bubblePrefab2 : this._bubblePrefab).getComponent(p.default);
                    e.node.parent = this.node, this._currBubbleItem = e
                }
            }, t.prototype.RefreshBubbleList = function() {
                var e = this,
                    t = this._currBubbleItem;
                t.node.active = !0, t.SetUI(this._worldPos, this._message, this._anchorType, this._style), h.UIUtlity.AnimationItemsByType1([t.node]), setTimeout(function() {
                    null != t && null != e._bubbleTable && (t.node.active = !1, e._bubbleTable.push(t))
                }, this._durationTime)
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.AddFloatingBubble(), this.RefreshBubbleList()
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), this._bubbleTable = [], this.node.destroyAllChildren()
            }, i([y], t)
        }(c.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/BubbleComponent": "BubbleComponent"
    }],
    BuffDescComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06b7aC4juBHZY9lO4uTWeiM", "BuffDescComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Components/Components"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BuffIcon = null, t.BuffName = null, t.BuffDesc = null, t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._buffId = e, this.BuffName.string = u.ConfigDataComponent.Instance.GetLocale("BuffDescription_name_" + e), this.BuffDesc.string = "<color=#624e3c>" + u.ConfigDataComponent.Instance.GetLocale("BuffDescription_desc_" + e) + "</c>", this.SetBuffIcon()
                }, t.prototype.SetBuffIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = c.default.GetBuffIconId(this._buffId), [4, l.AssetsManager.Instance.LoadAsset("BuffIcon/" + e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._assets.push(t), this.BuffIcon.spriteFrame = t, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([h(cc.Sprite)], t.prototype, "BuffIcon", void 0), i([h(cc.Label)], t.prototype, "BuffName", void 0), i([h(cc.RichText)], t.prototype, "BuffDesc", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    BuyAndSellItemPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ac1dbn9+u9N4YUKd/A1LyTH", "BuyAndSellItemPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GoodsType = n.BuyAndSellType = void 0;
        var l, c, u = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            p = e("../../../EZFramework/UIFrame/UIPanelType"),
            d = e("../../../EZFramework/EZDefine/SysDefine"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemComponent"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/CustomRichText"),
            _ = e("../../Components/DataCenter"),
            C = e("../../../EZFramework/Auxiliary/EZLog"),
            v = e("./ShopUIPanel"),
            b = e("./OracleShopPanel"),
            S = e("../../../../Proto/Static/RpcProto"),
            w = e("../../Components/RpcComponent"),
            P = e("../../../EZFramework/EZFramework"),
            A = e("../../Auxiliary/EventKeys"),
            T = e("../../../EZFramework/EZFramework"),
            R = e("../../../Util/AppUtil"),
            L = e("../../../ShareConsts/EnumType"),
            k = e("../../Auxiliary/DataUtlity"),
            O = e("../Battle/BattleManager"),
            M = e("../../../Consts/Consts"),
            D = e("./MallSkinPackPanel"),
            B = cc._decorator,
            N = B.ccclass,
            E = B.property;
        (function(e) {
            e[e.Buy = 0] = "Buy", e[e.Sell = 1] = "Sell", e[e.Use = 2] = "Use", e[e.AddToCar = 3] = "AddToCar", e[e.BuyTimes = 4] = "BuyTimes"
        })(l = n.BuyAndSellType || (n.BuyAndSellType = {})),
        function(e) {
            e[e.Normal = 0] = "Normal", e[e.Travel = 1] = "Travel", e[e.Dice = 2] = "Dice", e[e.ArenaTicket = 3] = "ArenaTicket", e[e.ActivityExchangeShop = 4] = "ActivityExchangeShop", e[e.SeniorArenaTicket = 5] = "SeniorArenaTicket", e[e.CrossServerBattleTimes = 6] = "CrossServerBattleTimes", e[e.ElementTowerChallengeTimes = 7] = "ElementTowerChallengeTimes", e[e.MallHeroSkin = 8] = "MallHeroSkin", e[e.RankMatchTicket = 9] = "RankMatchTicket"
        }(c = n.GoodsType || (n.GoodsType = {}));
        var U = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(d.UINodeType.Tip, !0, !1, !0), t.Tittle = null, t.BuyTimesLabel = null, t.BuyItemNode = null, t.BuyItemRoot = null, t.SellItemNode = null, t.SellItemRoot = null, t.SellItemTag = null, t.ItemName = null, t.BuyLimitCount = null, t.ItemCount = null, t.SliderNode = null, t.CurrencyNode = null, t.CountSlider = null, t.SliderFill = null, t.BtnAdd = null, t.BtnReduce = null, t.BtnBuy = null, t.BuyBtnLabel = null, t.BtnSell = null, t.SellBtnLabel = null, t.BtnUse = null, t.UseBtnLabel = null, t.SelectCount = null, t.CurrencyIcon = null, t.TotalPrice = null, t.AddButton = null, t.AddButton2 = null, t._commonItemPrefab = null, t._fillMaxWidth = 0, t._maxCount = 0, t._buyOrSaleCount = 0, t._item = null, t._goodsType = c.Normal, t._functionType = l.Buy, t._shopType = 0, t._price = 0, t._itemSprite = null, t._addToCarNum = 0, t._goodsTypeToPriceKey = ["", "", "RelicTreasureHuntDicePrice", "ArenaTicketPriceInDiamond"], t._isVirtualGood = !1, t._selectedItemPrice = 0, t
            }
            var n;
            return r(t, e), n = t, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent)];
                            case 1:
                                return t._commonItemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this._fillMaxWidth = this.CountSlider.node.width - n.FILL_UI_PADDING, this.SetDragEvent(), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.SetDragEvent = function() {
                this.CountSlider.node.on("slide", this.OnSliderDrag, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this)
            }, t.prototype.SetStaticLocalText = function() {
                this.BuyBtnLabel.string = "buyAndSale_buy".ToUILocale(), this.SellBtnLabel.string = "buyAndSale_sell".ToUILocale(), this.SellItemTag.string = "buyAnSale_sell_tag".ToUILocale(), this.UseBtnLabel.string = "use".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnAdd.node.on("click", this.OnBtnAddClick, this), this.BtnReduce.node.on("click", this.OnBtnReduceClick, this), this.BtnBuy.node.on("click", this.OnBtnBuyClick, this), this.BtnSell.node.on("click", this.OnBtnSellClick, this), this.BtnUse.node.on("click", this.OnBtnUseClick, this), this.AddButton.node.on("click", this.OnAddButtonClick, this)
            }, t.prototype.InitData = function(e) {
                this._goodsId = e[0], this._goodsIndex = e[1], this._hasBuyCount = e[2], this._functionType = e[3], this._isVirtualGood = !1, this._goodsType = c.Normal, null != e[4] ? this._goodsType = e[4] : null != e[5] && (this._isVirtualGood = !0), e[6] && (this._useData = e[6]), e[7] && (this._addToCarNum = e[7])
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this)
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.SetTittle(), this.LoadConfig(), this.SetItemComponent(), this._functionType == l.Buy ? (this.SetItemName(), this.SetLimitCount(), this.SetItemCount()) : this._functionType == l.Use ? (this.SetItemName(), this.SetItemCount()) : this._functionType == l.AddToCar && (this.SetItemName(), this.SetLimitCount(), this.SetItemCount()), this.SetSliderUI(), this.SetCurrencyIcon(), this.SetTotalPriceText(), this.SetBtnState()
            }, t.prototype.SetBtnState = function() {
                switch (this.BtnSell.node.active = !1, this.BtnBuy.node.active = !1, this.BtnUse.node.active = !1, this._functionType) {
                    case l.AddToCar:
                        this.BuyBtnLabel.string = "add".ToUILocale();
                    case l.Buy:
                        this.BtnBuy.node.active = !0;
                        break;
                    case l.Sell:
                        this.BtnSell.node.active = !0;
                        break;
                    case l.Use:
                    case l.BuyTimes:
                        this.BtnUse.node.active = !0
                }
            }, t.prototype.SetTittle = function() {
                switch (this._functionType) {
                    case l.Buy:
                        this.Tittle.string = "buyAndSale_buy_tittie".ToUILocale();
                        break;
                    case l.Sell:
                        this.Tittle.string = "buyAndSale_sell_tittle".ToUILocale();
                        break;
                    case l.Use:
                        this.Tittle.string = this._useData.Title;
                        break;
                    case l.AddToCar:
                        this.Tittle.string = "Ass_addtoCart".ToUILocale();
                        break;
                    case l.BuyTimes:
                        this.Tittle.string = "buyAndSale_buyTimes_tittie".ToUILocale()
                }
            }, t.prototype.LoadConfig = function() {
                switch (this._functionType) {
                    case l.Buy:
                    case l.AddToCar:
                        switch (this._goodsType) {
                            case c.Dice:
                            case c.ArenaTicket:
                            case c.SeniorArenaTicket:
                                this._itemConfig = g.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, this._goodsId), this._goodsConfig = null;
                                break;
                            case c.ActivityExchangeShop:
                                this._goodsConfig = this._goodsId, this._itemConfig = g.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, this._goodsConfig.ItemId);
                                break;
                            default:
                                this._goodsConfig = g.ConfigDataComponent.Instance.GetConfigById(y.ShopItem_Config, this._goodsId), this._itemConfig = g.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, this._goodsConfig.ItemId)
                        }
                        break;
                    case l.Sell:
                        this._itemConfig = g.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, this._goodsId), this._consumeConfig = g.ConfigDataComponent.Instance.GetConfigById(y.ItemConsume_Config, this._itemConfig.Id);
                        break;
                    case l.Use:
                        this._itemConfig = g.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, this._useData.UseItemId)
                }
                this.CalcMaxCount()
            }, t.prototype.CalcMaxCount = function() {
                if (this._functionType == l.Buy) {
                    if (this._goodsType == c.Dice || this._goodsType == c.ArenaTicket) {
                        this._price = R.AppUtil.ToInt(g.ConfigDataComponent.Instance.GetGlobalSettingByKey(this._goodsTypeToPriceKey[this._goodsType]));
                        var e = _.DataCenter.Instance.GetItemCount(L.CommonItemId.Diamond),
                            t = Math.floor(e / this._price),
                            n = 0;
                        if (this._goodsType == c.Dice) {
                            var o = k.default.GetModuleBonusByType(L.ModuleBonusType.RelicBuyDice);
                            o = null == o ? 0 : o, n = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("RelicTreasureHuntBuyDiceLimit") + o - this._hasBuyCount
                        } else this._goodsType == c.ArenaTicket && (n = 30, t = Math.max(t, 1));
                        this._maxCount = Math.min(t, n)
                    } else if (this._goodsType == c.SeniorArenaTicket) {
                        for (var r = g.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, L.LevelParamType.SeniorArenaTicketPrice), i = (n = r.Data.length - this._hasBuyCount, _.DataCenter.Instance.GetItemCount(L.CommonItemId.Diamond)), a = (t = 0, this._hasBuyCount); a < r.Data.length && (i -= r.Data[a]) >= 0; a++) t++;
                        this._maxCount = Math.min(t, n)
                    } else if (this._goodsType == c.MallHeroSkin) {
                        this._price = this._goodsConfig.Price;
                        var s = 0,
                            u = g.ConfigDataComponent.Instance.GetConfigById(y.ShopItem_Config, this._goodsId),
                            p = g.ConfigDataComponent.Instance.GetConfigById(y.ItemConsume_Config, u.ItemId);
                        if (p && p.SubType == M.ConsumeItemType.HeroSkin) {
                            var d = g.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, p.Param[0].Items[0]),
                                h = _.DataCenter.Instance.GetItemCount(u.CurrencyType),
                                f = Math.floor(h / u.Price);
                            s = D.default.GetSkinPackRemainCount(d.Id, d, f)[0], u.LimitCount > 0 ? (n = u.LimitCount - this._hasBuyCount > 0 ? u.LimitCount - this._hasBuyCount : 0, this._maxCount = Math.min(n, s)) : this._maxCount = s
                        }
                    } else if (this._price = this._goodsConfig.Price, t = void 0, t = 0 == (e = _.DataCenter.Instance.GetItemCount(this._goodsConfig.CurrencyType)) ? this._goodsConfig.Price > 0 ? 0 : 1 : Math.floor(e / this._goodsConfig.Price), this._goodsConfig.LimitCount > 0 ? (n = this._goodsConfig.LimitCount - this._hasBuyCount, this._maxCount = Math.min(t, n)) : (this._isVirtualGood && 0 == this._goodsIndex && (t = Math.min(t, 30), t = Math.max(t, 1)), this._maxCount = t), this._goodsType == c.RankMatchTicket) {
                        var m = g.ConfigDataComponent.Instance.GetItemMax(this._goodsConfig.ItemId);
                        if (m) {
                            var I = m - _.DataCenter.Instance.GetItemCount(this._goodsConfig.ItemId);
                            this._maxCount = Math.min(this._maxCount, I)
                        }
                    }
                } else this._functionType == l.Sell ? (this._price = this._itemConfig.SellPrice, this._maxCount = _.DataCenter.Instance.GetItemCount(this._itemConfig.Id)) : this._functionType == l.AddToCar ? (this._price = this._goodsConfig.Price, this._maxCount = this._useData.MaxCount) : this._maxCount = this._useData.MaxCount
            }, t.prototype.SetItemComponent = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        switch (this.BuyTimesLabel.node.active = !1, this._functionType) {
                            case l.Buy:
                            case l.AddToCar:
                                null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(f.ItemComponent), this._item.node.parent = this.BuyItemRoot, this._item.node.on(cc.Node.EventType.TOUCH_END, this.onClickItem, this)), this._goodsType != c.Dice && this._goodsType != c.ArenaTicket && this._goodsType != c.SeniorArenaTicket ? (this._item.node.name = this._goodsConfig.ItemId.toString(), this._item.Init({
                                    ItemId: this._goodsConfig.ItemId,
                                    Count: this._goodsConfig.Count
                                }, f.ItemComponentType.ItemCommon)) : (this._item.node.name = this._goodsId.toString(), this._item.Init({
                                    ItemId: this._goodsId
                                }, f.ItemComponentType.ItemCommon)), this.BuyItemNode.active = !0, this.SellItemNode.active = !1;
                                break;
                            case l.Sell:
                                null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(f.ItemComponent), this._item.node.parent = this.SellItemRoot, this._item.node.on(cc.Node.EventType.TOUCH_END, this.onClickItem, this)), this.BuyItemRoot.x = 0, this._item.node.name = this._goodsId.toString(), this._item.Init({
                                    ItemId: this._goodsId,
                                    Count: this._maxCount
                                }, f.ItemComponentType.ItemCommon), this.BuyItemNode.active = !1, this.SellItemNode.active = !0;
                                break;
                            case l.Use:
                                this._item || (this._item = cc.instantiate(this._commonItemPrefab).getComponent(f.ItemComponent), this._item.node.parent = this.BuyItemRoot, this._item.node.on(cc.Node.EventType.TOUCH_END, this.onClickItem, this)), this._item.Init({
                                    ItemId: this._useData.UseItemId
                                }, f.ItemComponentType.ItemCommon), this.BuyItemNode.active = !0, this.SellItemNode.active = !1;
                                break;
                            case l.BuyTimes:
                                this.BuyItemNode.active = !1, this.BuyTimesLabel.node.active = !0, this.BuyTimesLabel.string = "buyAndSale_buyTimes_challenge".ToUILocale().Fmt(this._hasBuyCount), this.UseBtnLabel.string = "buyAndSale_buy".ToUILocale()
                        }
                        return [2]
                    })
                })
            }, t.prototype.SetItemName = function() {
                this._functionType != l.Use ? this._goodsType != c.Dice && this._goodsType != c.ArenaTicket && this._goodsType != c.SeniorArenaTicket ? this.ItemName.string = this._goodsConfig.ItemId.ToItemName() : this.ItemName.string = this._goodsId.ToItemName() : this.ItemName.string = this._useData.UseItemId.ToItemName(), this.ItemName.node.color = m.UIUtlity.GetLabelColorByQuality(this._itemConfig.Quality)
            }, t.prototype.SetLimitCount = function() {
                if (this._goodsType == c.Normal || this._goodsType == c.ActivityExchangeShop || this._goodsType == c.MallHeroSkin || this._goodsType == c.RankMatchTicket)
                    if (this._goodsConfig.LimitCount > 0) {
                        var e = "activityScoreShop_remainderCount".ToUILocale().Fmt(this._goodsConfig.LimitCount - this._hasBuyCount + "/" + this._goodsConfig.LimitCount);
                        e = "<color=#624e3c>" + e + "</c>", this.BuyLimitCount.Init(e), this.BuyLimitCount.node.active = !0
                    } else this.BuyLimitCount.node.active = !1;
                else this.BuyLimitCount.node.active = !1
            }, t.prototype.SetSliderUI = function() {
                switch (this._functionType) {
                    case l.AddToCar:
                    case l.Buy:
                        switch (this._goodsType) {
                            case c.Normal:
                            case c.Dice:
                            case c.ArenaTicket:
                            case c.RankMatchTicket:
                            case c.ActivityExchangeShop:
                            case c.SeniorArenaTicket:
                            case c.MallHeroSkin:
                                this._functionType == l.AddToCar && 0 != this._addToCarNum && (this._buyOrSaleCount = this._addToCarNum), this.InitResourceSlider(), this.SetCountOperationBtnState(!0);
                                break;
                            default:
                                this.SliderNode.active = !1, this._buyOrSaleCount = 1
                        }
                        this.SliderNode.setSiblingIndex(0);
                        break;
                    case l.Sell:
                        this.InitResourceSlider(), this.SetCountOperationBtnState(!0), this.CurrencyNode.setSiblingIndex(0);
                        break;
                    case l.Use:
                        this._useData && this._useData.BuyOrSaleCount && (this._buyOrSaleCount = this._useData.BuyOrSaleCount), this.InitResourceSlider(), this.SetCountOperationBtnState(!0);
                        break;
                    case l.BuyTimes:
                        this.InitResourceSlider(), this.SetCountOperationBtnState(!0)
                }
            }, t.prototype.SetCurrencyIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                switch (this._functionType) {
                                    case l.AddToCar:
                                    case l.Buy:
                                        P.EZLog.Log("\u5546\u54c1\u7684\u914d\u7f6e = ", this._goodsConfig), e = null == this._goodsConfig ? L.CommonItemId.Diamond : this._goodsConfig.CurrencyType;
                                        break;
                                    case l.Sell:
                                        e = L.CommonItemId.Coin;
                                        break;
                                    case l.Use:
                                    case l.BuyTimes:
                                        e = this._useData.UseItemId
                                }
                                return this._currencyType == e ? [3, 2] : (this._currencyType = e, t = k.default.Instance.GetItemPathById(e), n = this, [4, this.LoadDynamicAsset(t, cc.SpriteFrame)]);
                            case 1:
                                if (n._itemSprite = o.sent(), !this.isValid || this._itemSprite.name != t) return P.AssetsManager.Instance.UnloadAsset(this._itemSprite), [2];
                                o.label = 2;
                            case 2:
                                return this.CurrencyIcon.spriteFrame = this._itemSprite, [2]
                        }
                    })
                })
            }, t.prototype.SetTotalPriceText = function() {
                if (this._selectedItemPrice = 0, this._functionType != l.Use && this._functionType != l.BuyTimes) {
                    if (this._goodsType == c.SeniorArenaTicket)
                        for (var e = g.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, L.LevelParamType.SeniorArenaTicketPrice), t = this._hasBuyCount; t < this._hasBuyCount + this._buyOrSaleCount; t++) this._selectedItemPrice += e.Data[t];
                    else this._selectedItemPrice = this._price * this._buyOrSaleCount;
                    var n;
                    n = null == this._goodsConfig ? L.CommonItemId.Diamond : this._goodsConfig.CurrencyType, this._functionType != l.AddToCar && (this.TotalPrice.node.color = _.DataCenter.Instance.IsItemEnough(n, this._selectedItemPrice) ? cc.Color.WHITE : cc.Color.RED), this.TotalPrice.string = this._selectedItemPrice.FmtCurrency()
                } else {
                    var o = void 0;
                    if (this._goodsType == c.ElementTowerChallengeTimes) {
                        var r = g.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, L.LevelParamType.ElementTowerBuyCountPrice),
                            i = _.DataCenter.Instance.GetDataById(S.TestTower_Model, this._useData.PerItemCount);
                        o = k.default.GetIncrementalCount(r.Data2, this._buyOrSaleCount, i.PayCount)
                    } else o = this._useData.PerItemCount * this._buyOrSaleCount;
                    this.TotalPrice.node.color = _.DataCenter.Instance.IsItemEnough(this._useData.UseItemId, o) ? cc.Color.WHITE : cc.Color.RED, this.TotalPrice.string = o.FmtCurrency()
                }
            }, t.prototype.InitResourceSlider = function() {
                this._buyOrSaleCount || (this._buyOrSaleCount = 1), this.CountSlider.progress = this._buyOrSaleCount / this._maxCount, this.SliderFill.width = this._fillMaxWidth * this.CountSlider.progress, this.SelectCount.string = this._buyOrSaleCount.toString()
            }, t.prototype.SetItemCount = function() {
                var e;
                e = this._functionType != l.Use ? this._goodsType != c.Dice && this._goodsType != c.ArenaTicket && this._goodsType != c.SeniorArenaTicket ? _.DataCenter.Instance.GetItemCount(this._goodsConfig.ItemId) : _.DataCenter.Instance.GetItemCount(this._goodsId) : _.DataCenter.Instance.GetItemCount(this._useData.UseItemId);
                var t = "buy_and_sale_has".ToUILocale().Fmt(e.FmtCurrency());
                this.ItemCount.Init(t)
            }, t.prototype.OnSliderDrag = function() {
                this.SliderFill.width = this._fillMaxWidth * this.CountSlider.progress;
                var e = this.CountSlider.progress;
                this._functionType == l.AddToCar ? this._buyOrSaleCount = Math.max(Math.floor(this._maxCount * e), 0) : this._buyOrSaleCount = Math.max(Math.floor(this._maxCount * e), 1), this.SelectCount.string = this._buyOrSaleCount.toString(), this.SetTotalPriceText()
            }, t.prototype.OnDragOver = function() {
                var e = this.CountSlider.progress;
                this._functionType == l.AddToCar ? this._buyOrSaleCount = Math.max(Math.floor(this._maxCount * e), 0) : this._buyOrSaleCount = Math.max(Math.floor(this._maxCount * e), 1), this.SetSliderProgress(), this.SetCountOperationBtnState(!1), this.SetTotalPriceText()
            }, t.prototype.OnBtnAddClick = function() {
                this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0, this._buyOrSaleCount < this._maxCount && (this._buyOrSaleCount += 1, this._buyOrSaleCount >= this._maxCount ? this.BtnAdd.interactable = !1 : this.BtnReduce.interactable = !0, this.SetSliderProgress()), this.SetTotalPriceText()
            }, t.prototype.OnBtnReduceClick = function() {
                this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0, this._buyOrSaleCount > 1 && (this._buyOrSaleCount -= 1, this._buyOrSaleCount <= 1 ? this.BtnReduce.interactable = !1 : this.BtnAdd.interactable = !0, this.SetSliderProgress()), this.SetTotalPriceText()
            }, t.prototype.OnBtnSellClick = function() {
                var e = new S.Req_Item_SellItem;
                e.ItemId = this._goodsId, e.Count = this._buyOrSaleCount, w.RpcComponent.Instance.Call(e, this.ResponseSellSuccess.bind(this))
            }, t.prototype.OnBtnUseClick = function() {
                this._useData.Callback && (this._useData.Callback(this._buyOrSaleCount), T.UIManager.Instance.QuitPanelStack(this))
            }, t.prototype.OnAddButtonClick = function() {
                this._currencyType && T.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, this._currencyType, !1)
            }, t.prototype.ResponseSellSuccess = function(e) {
                T.UIManager.Instance.BackUIPanel(), e.Rewards.length > 0 && m.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.OnBtnBuyClick = function() {
                if (this._functionType == l.AddToCar) return P.Game.EventDispatcher.Emit(A.EventKeys.EVENT_ACT_SOCRE_SHOP_ADD_TO_CAR, this._goodsId.Id, this._buyOrSaleCount), void T.UIManager.Instance.BackUIPanel();
                if (this._shopType <= v.ShopType.Abyss) {
                    if (v.default.isBusy) return
                } else if (this._shopType == v.ShopType.Oracle && b.default.isBusy) return;
                this.RequestBuyItem(this._buyOrSaleCount)
            }, t.prototype.RequestBuyItem = function(e) {
                var t = this,
                    n = this;
                switch (C.EZLog.Log("\u5546\u54c1\u7c7b\u578b---\x3e" + this._goodsType), this._goodsType) {
                    case c.Normal:
                    case c.MallHeroSkin:
                        if (e * this._goodsConfig.Price > _.DataCenter.Instance.GetItemCount(this._goodsConfig.CurrencyType)) return m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._goodsConfig.CurrencyType.ToItemName())), void(this._goodsConfig.CurrencyType == L.CommonItemId.Diamond && P.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [M.MallPageType.DiamondShop, M.GiftPackType.BuyDiamond]));
                        if (this._goodsType == c.MallHeroSkin && this._goodsConfig.LimitCount > 0 && this._hasBuyCount >= this._goodsConfig.LimitCount) return void m.UIUtlity.ShowFloatingHint("HolyRelic_noBuyTimes".ToUILocale());
                        this._shopType = Math.floor(this._goodsConfig.Id / 1e5), this._shopType = Math.max(this._shopType, 1), this._shopType <= v.ShopType.Abyss ? v.default.isBusy = !0 : this._shopType == v.ShopType.Oracle && (b.default.isBusy = !0);
                        var o = g.ConfigDataComponent.Instance.GetConfigById(y.ShopBase_Config, this._shopType),
                            r = new S.Req_Shop_BuyItem;
                        r.Type = this._shopType, o.IsRefresh ? r.Id = this._goodsIndex : r.Id = this._goodsId, r.Count = e, w.RpcComponent.Instance.Call(r, D, N);
                        break;
                    case c.Travel:
                        if (this._goodsConfig.CurrencyType == L.CommonItemId.Diamond) m.UIUtlity.ShowHintPanel(null, "mall_query_costDiamondBuy".ToUILocale().Fmt(this._goodsConfig.Price, this._goodsConfig.ItemId.ToItemName()), "cancel".ToUILocale(), function() {
                            P.UIManager.Instance.BackUIPanel()
                        }, "ok".ToUILocale(), function() {
                            var e = new S.Req_Relic_BuyGoods;
                            e.Index = t._goodsIndex, w.RpcComponent.Instance.Call(e, B, N)
                        });
                        else {
                            var i = new S.Req_Relic_BuyGoods;
                            i.Index = this._goodsIndex, w.RpcComponent.Instance.Call(i, B, N)
                        }
                        break;
                    case c.Dice:
                        if (_.DataCenter.Instance.IsItemEnough(L.CommonItemId.Diamond, g.ConfigDataComponent.Instance.GetGlobalSettingByKey("RelicTreasureHuntDicePrice"))) {
                            var a = new S.Req_Relic_BuyDice;
                            a.Count = e, w.RpcComponent.Instance.Call(a, function() {
                                var t;
                                P.Game.EventDispatcher.Emit(A.EventKeys.EVENT_BUY_DICE_SUCCESS), n._useData && n._useData.Callback && n._useData.Callback(e), t = n._goodsId.ToItemName(), e = n._buyOrSaleCount;
                                var o = "shop_buySuccess".ToUILocale().Fmt(t, e);
                                m.UIUtlity.ShowFloatingHint(o), T.UIManager.Instance.BackUIPanel()
                            }, N)
                        } else m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(L.CommonItemId.Diamond.ToItemName())), P.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [M.MallPageType.DiamondShop, M.GiftPackType.BuyDiamond]);
                        break;
                    case c.ArenaTicket:
                        var s = _.DataCenter.Instance.GetItemCount(L.CommonItemId.Diamond);
                        if (this._selectedItemPrice > s) return m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(L.CommonItemId.Diamond.ToItemName())), void P.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [M.MallPageType.DiamondShop, M.GiftPackType.BuyDiamond]);
                        var l = new S.Req_Shop_BuyItem;
                        l.Type = 2001, l.Id = 200101001, l.Count = e, w.RpcComponent.Instance.Call(l, R, N);
                        break;
                    case c.RankMatchTicket:
                        var u = _.DataCenter.Instance.GetItemCount(this._goodsConfig.CurrencyType);
                        if (this._selectedItemPrice > u) return m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._goodsConfig.CurrencyType.ToItemName())), void P.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [M.MallPageType.DiamondShop, M.GiftPackType.BuyDiamond]);
                        var p = new S.Req_Shop_BuyItem;
                        p.Type = 2001, p.Id = 200101002, p.Count = e, w.RpcComponent.Instance.Call(p, R, N);
                        break;
                    case c.SeniorArenaTicket:
                        var d = _.DataCenter.Instance.GetItemCount(L.CommonItemId.Diamond);
                        if (this._selectedItemPrice > d) return m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(L.CommonItemId.Diamond.ToItemName())), void P.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [M.MallPageType.DiamondShop, M.GiftPackType.BuyDiamond]);
                        var f = new S.Req_Map_BuySeniorArenaTicket;
                        f.Count = e, w.RpcComponent.Instance.Call(f, function(e) {
                            P.Game.EventDispatcher.Emit(A.EventKeys.EVENT_BUY_ITEM_SUCCESS);
                            var t = e.Rewards[0].ItemId.ToItemName(),
                                n = e.Rewards[0].Count,
                                o = "shop_buySuccess".ToUILocale().Fmt(t, n);
                            m.UIUtlity.ShowFloatingHint(o), T.UIManager.Instance.BackUIPanel()
                        }, N);
                        break;
                    case c.ActivityExchangeShop:
                        var I = new S.Req_Activity_BuyItem;
                        I.ActivityId = this._goodsIndex, I.Items = [{
                            Items: [this._goodsConfig.Id, e]
                        }], w.RpcComponent.Instance.Call(I, D.bind(this))
                }

                function R(e) {
                    P.Game.EventDispatcher.Emit(A.EventKeys.EVENT_BUY_ITEM_SUCCESS);
                    var t = e.Rewards[0].ItemId.ToItemName(),
                        n = e.Rewards[0].Count,
                        o = "shop_buySuccess".ToUILocale().Fmt(t, n);
                    m.UIUtlity.ShowFloatingHint(o), T.UIManager.Instance.BackUIPanel()
                }

                function D(e) {
                    n._shopType <= v.ShopType.Abyss ? v.default.isBusy = !1 : n._shopType == v.ShopType.Oracle ? b.default.isBusy = !1 : n._shopType == v.ShopType.HeroSkinShop && P.Game.EventDispatcher.Emit(A.EventKeys.EVENT_SKIN_PACK_REFRESH, n._goodsId), C.EZLog.Log(n._goodsConfig), P.Game.EventDispatcher.Emit(A.EventKeys.EVENT_BUY_ITEM_SUCCESS);
                    var t = n._goodsConfig.ItemId.ToItemName(),
                        o = n._buyOrSaleCount * n._goodsConfig.Count,
                        r = "shop_buySuccess".ToUILocale().Fmt(t, o);
                    if (m.UIUtlity.ShowFloatingHint(r), T.UIManager.Instance.BackUIPanel(), e.Rewards && e.Rewards.length > 0) {
                        for (var i = !1, a = [M.ConsumeItemType.ManualBox, M.ConsumeItemType.FixedBox, M.ConsumeItemType.RandomBox], s = 0; s < e.Rewards.length; s++) {
                            var l = e.Rewards[s],
                                c = g.ConfigDataComponent.Instance.GetConfigById(y.ItemConsume_Config, l.ItemId);
                            if (c && a.includes(c.SubType)) {
                                i = !0;
                                break
                            }
                        }
                        i && k.default.GetFunctionSkipState(M.FunctionSkipKey.ManualBox) && m.UIUtlity.ShowIndependentManualBoxPanel(e.Rewards, O.BattleManager.Instance.ActivityCanShowBattleSettlePanel, !0)
                    }
                }

                function B(t) {
                    P.Game.EventDispatcher.Emit(A.EventKeys.EVENT_BUY_ITEM_SUCCESS, t);
                    var o = n._goodsConfig.ItemId.ToItemName();
                    e = n._buyOrSaleCount * n._goodsConfig.Count;
                    var r = "shop_buySuccess".ToUILocale().Fmt(o, e);
                    m.UIUtlity.ShowFloatingHint(r), T.UIManager.Instance.BackUIPanel()
                }

                function N() {
                    null != n && (n._shopType <= v.ShopType.Abyss ? v.default.isBusy = !1 : n._shopType == v.ShopType.Oracle && (b.default.isBusy = !1)), T.UIManager.Instance.BackUIPanel()
                }
            }, t.prototype.SetCountOperationBtnState = function(e) {
                e ? this._maxCount <= 1 ? (this.BtnAdd.interactable = !1, this.BtnReduce.interactable = !1) : this._buyOrSaleCount <= 1 ? (this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !1) : (this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0) : (this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0, this._buyOrSaleCount <= 1 && this._functionType != l.AddToCar && this._buyOrSaleCount <= 0 ? this.BtnReduce.interactable = !1 : this._buyOrSaleCount >= this._maxCount && (this.BtnAdd.interactable = !1))
            }, t.prototype.SetSliderProgress = function() {
                1 == this._maxCount && this._isVirtualGood ? this.CountSlider.progress = 1 : this.CountSlider.progress = this._buyOrSaleCount / this._maxCount, this.SliderFill.width = this._fillMaxWidth * this.CountSlider.progress, this.SelectCount.string = this._buyOrSaleCount.toString()
            }, t.prototype.onClickItem = function() {
                this._item.ShowItemTip()
            }, t.FILL_UI_PADDING = 5, i([E(cc.Label)], t.prototype, "Tittle", void 0), i([E(cc.Label)], t.prototype, "BuyTimesLabel", void 0), i([E(cc.Node)], t.prototype, "BuyItemNode", void 0), i([E(cc.Node)], t.prototype, "BuyItemRoot", void 0), i([E(cc.Node)], t.prototype, "SellItemNode", void 0), i([E(cc.Node)], t.prototype, "SellItemRoot", void 0), i([E(cc.Label)], t.prototype, "SellItemTag", void 0), i([E(cc.Label)], t.prototype, "ItemName", void 0), i([E(I.CustomRichText)], t.prototype, "BuyLimitCount", void 0), i([E(I.CustomRichText)], t.prototype, "ItemCount", void 0), i([E(cc.Node)], t.prototype, "SliderNode", void 0), i([E(cc.Node)], t.prototype, "CurrencyNode", void 0), i([E(cc.Slider)], t.prototype, "CountSlider", void 0), i([E(cc.Node)], t.prototype, "SliderFill", void 0), i([E(cc.Button)], t.prototype, "BtnAdd", void 0), i([E(cc.Button)], t.prototype, "BtnReduce", void 0), i([E(cc.Button)], t.prototype, "BtnBuy", void 0), i([E(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([E(cc.Button)], t.prototype, "BtnSell", void 0), i([E(cc.Label)], t.prototype, "SellBtnLabel", void 0), i([E(cc.Button)], t.prototype, "BtnUse", void 0), i([E(cc.Label)], t.prototype, "UseBtnLabel", void 0), i([E(cc.Label)], t.prototype, "SelectCount", void 0), i([E(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([E(cc.Label)], t.prototype, "TotalPrice", void 0), i([E(cc.Button)], t.prototype, "AddButton", void 0), i([E(cc.Button)], t.prototype, "AddButton2", void 0), n = i([N], t)
        }(u.BaseUIPanel);
        n.default = U, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/ItemComponent": "ItemComponent",
        "./MallSkinPackPanel": "MallSkinPackPanel",
        "./OracleShopPanel": "OracleShopPanel",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    CampRewardBox: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "aea9fVRt7dCG7ycV0j90wlr", "CampRewardBox");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../Components/RpcComponent"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BoxIcon = null, t.CheckSingal = null, t.NodeOn = null, t.NodeOff = null, t.Value = null, t._moveAnim = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r, i) {
                    this._activityId = e, this.BoxIcon.spriteFrame = t, this.node.x = n, this._currentValue = o, this._reward = r, this._isReceived = i, this.Value.string = this._reward.SupportValue.toString(), this.node.on(cc.Node.EventType.TOUCH_END, this.OnBoxClick, this), s.UIUtlity.RestoreSpriteMaterial(this.BoxIcon), this._isReceived ? (this.CheckSingal.active = !0, this.NodeOn.active = !0, this.NodeOff.active = !1, s.UIUtlity.OnSpriteDark(this.BoxIcon)) : (this.CheckSingal.active = !1, this.NodeOn.active = !1, this.NodeOff.active = !0), this.CreateAnimation(), this.SetAnimation()
                }, t.prototype.OnBoxClick = function() {
                    for (var e = "reward".ToUILocale(), t = [], n = 0; n < this._reward.Rewards.length; n++) {
                        var o = this._reward.Rewards[n].Items[0],
                            r = this._reward.Rewards[n].Items[1];
                        t.push({
                            ItemId: o,
                            Count: r
                        })
                    }
                    if (this._isReceived) s.UIUtlity.ShowHintPanel(e, t);
                    else if (this._currentValue < this._reward.SupportValue) s.UIUtlity.ShowHintPanel(e, t);
                    else {
                        var i = new a.Req_Activity_DrawGroupSupportReward;
                        i.ActivityId = this._activityId, i.RewardId = this._reward.Id, l.RpcComponent.Instance.Call(i, function(e) {
                            s.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.CreateAnimation = function() {
                    if (null == this._moveAnim) {
                        var e = cc.tween(this.BoxIcon.node).by(.2, {
                                position: cc.v3(0, 10, 0),
                                scaleY: .13
                            }, {
                                easing: "quadOut"
                            }),
                            t = cc.tween(this.BoxIcon.node).by(.2, {
                                position: cc.v3(0, -10, 0),
                                scaleY: -.13
                            }, {
                                easing: "quadIn"
                            }),
                            n = cc.tween(this.BoxIcon.node).delay(.5);
                        this._moveAnim = cc.tween(this.BoxIcon.node).sequence(e, t, e, t, n).repeatForever()
                    }
                }, t.prototype.SetAnimation = function() {
                    this.BoxIcon.node.y = 53, this.BoxIcon.node.scaleY = .8, !this._isReceived && this._currentValue >= this._reward.SupportValue ? this._moveAnim.start() : this._moveAnim.stop()
                }, i([p(cc.Sprite)], t.prototype, "BoxIcon", void 0), i([p(cc.Node)], t.prototype, "CheckSingal", void 0), i([p(cc.Node)], t.prototype, "NodeOn", void 0), i([p(cc.Node)], t.prototype, "NodeOff", void 0), i([p(cc.Label)], t.prototype, "Value", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CampSupportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bef38ws52NF+bWxKx1BHoxi", "CampSupportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CampType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomProgressBar"),
            h = e("../Components/SmallRankListComponent"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/RpcComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Components/Components"),
            C = e("../../../Consts/Consts"),
            v = e("../Components/SupportItemComponent"),
            b = e("../Components/PlayMsgComponent"),
            S = e("../Components/MsgComponent"),
            w = e("../Components/CampRewardBox"),
            P = e("../../RedDot/RedDotManager"),
            A = e("../../Auxiliary/EventKeys"),
            T = e("../Components/SelectCampPage"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property;
        (function(e) {
            e[e.One = 1] = "One", e[e.Two = 2] = "Two"
        })(l = n.CampType || (n.CampType = {}));
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Curtain = null, t.TopTittle = null, t.ActivityTimeRichText = null, t.RuleButton = null, t.CampSupportPage = null, t.TitleTip = null, t.SupportTitle = null, t.CampProgressBar = null, t.SupportVsSprite = null, t.OneCampLabel = null, t.OneSupportCount = null, t.OneCampName = null, t.TwoCampLabel = null, t.TwoSupportCount = null, t.TwoCampName = null, t.CampSupportRefreshTimeTag = null, t.CampSupportRefreshTimeValue = null, t.BattleEfffectNode = null, t.TaskRewardButton = null, t.TaskProgressBar = null, t.PointValue = null, t.RewardLabel = null, t.ValueTagLabel = null, t.TaskReceiveSpine = null, t.CampRewardProgress = null, t.CampRewardTittle = null, t.CampRewardProgressBar = null, t.CampRewardBoxGroup = null, t.CampValueTag = null, t.CountLabel = null, t.SmallRankList = null, t.SupportPartTittle = null, t.SupportItemContainer = null, t.DisableSupportButton = null, t.DisableSupportButtonLabel = null, t.SupportButton = null, t.SupportButtonLabel = null, t.SupportOver = null, t.WinCampName = null, t.SupportOverTip = null, t.ReturnButton = null, t.TaskButton = null, t.TaskButtonLabel = null, t.RewardDescButton = null, t.RewardDescButtonLabel = null, t.GiftBagButton = null, t.GiftBagButtonLabel = null, t.PlayMsgComponent = null, t._rewardBoxComponents = [], t._isGoToSupportButtonClick = !1, t._canSupport = !1, t._isSupportOver = !1, t._isSetSupportOverInfo = !1, t._campRewards = [], t._lastGetSupportMsgTime = 0, t._threeHourDuration = 3 * C.Etc.HourDuration, t._isRefreshSupportInfoStart = !1, t._loadAssets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(A.EventKeys.EVENT_CAMPSUPPORT_GOTOSUPPORT, this.GoToSupportPage, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(A.EventKeys.EVENT_CAMPSUPPORT_GOTOSUPPORT, this.GoToSupportPage, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(I.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CampSupportPanel/Components/CampRewardBox", cc.Prefab), o = this.LoadDynamicAsset("CampSupportPanel/PNG/Main", cc.SpriteAtlas), r = this.LoadDynamicAsset("CampSupportPanel/Components/SupportItemComponent", cc.Prefab), i = this.LoadDynamicAsset("CampSupportPanel/Components/MsgComponent", cc.Prefab), a = this.LoadDynamicAsset(I.BundlePath.CurrencyBarComponent, cc.Prefab), [4, Promise.all([t, n, o, r, i, a]).then(function(e) {
                                    l._itemPrefab = e[0], l._rewardBoxPrefab = e[1], l._campSupportAtlas = e[2], l._supportItemPrefab = e[3], l._msgPrefab = e[4], l._currencyBarPrefab = e[5]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.TopTittle.string = "campSupport_title_activity".ToUILocale(), this.TaskButtonLabel.string = "btn_task".ToUILocale(), this.RewardDescButtonLabel.string = "abyss_RuleSubtitle1".ToUILocale(), this.GiftBagButtonLabel.string = "campSupport_giftBag".ToUILocale(), this.TitleTip.string = "campSupport_exclusiveTitle".ToUILocale(), this.CampSupportRefreshTimeTag.string = "element_timeLbl".ToUILocale(), this.RewardLabel.string = "campSupport_reward_personal".ToUILocale(), this.ValueTagLabel.string = "campSupport_personalValue".ToUILocale(), this.CampRewardTittle.string = "campSupport_reward_camp".ToUILocale(), this.CampValueTag.string = "campSupport_campValue".ToUILocale(), this.SupportPartTittle.string = "campSupport_title_support".ToUILocale(), this.SupportButtonLabel.string = "campSupport_support".ToUILocale(), this.DisableSupportButtonLabel.string = "campSupport_support".ToUILocale(), this.SupportOverTip.string = "campSupport_tip_supportOver".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.TaskRewardButton.node.on("click", this.OnTaskRewardButtonClick, this), this.SupportButton.node.on("click", this.OnSupportButtonClick, this), this.DisableSupportButton.node.on("click", this.OnDisableSupportButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.RewardDescButton.node.on("click", this.OnRewardDescButtonClick, this), this.GiftBagButton.node.on("click", this.OnGiftBagButtonClick, this), this.SupportTitle.node.on(cc.Node.EventType.TOUCH_END, this.TouchSupportTitle, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = y.DataCenter.Instance.ActivityConfigs[this._activityId], this._supportInfo = t[1]
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), this._userActivityData = y.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId), this._currentCampId = this._userActivityData.IntArray[0], t = this._activityConfig.Common.Pictures, n = f.default.LoadActivityTexture(t[1]), o = f.default.LoadActivityTexture(this._activityConfig.CustomPart.WinRewardIcon), [4, Promise.all([n, o]).then(function(e) {
                                    a.SupportVsSprite.spriteFrame = e[0], a.SupportTitle.spriteFrame = e[1], a._loadAssets.push(e[0]), a._loadAssets.push(e[1])
                                })];
                            case 1:
                                return s.sent(), this.Curtain.active = !0, this._currentCampId ? [3, 4] : (r = this, [4, this.LoadDynamicAsset("CampSupportPanel/Components/SelectCampPage", cc.Prefab)]);
                            case 2:
                                return r._selectCampPagePrefab = s.sent(), this._selectCampPageComponent || ((i = cc.instantiate(this._selectCampPagePrefab)).setParent(this.node), this._selectCampPageComponent = i.getComponent(T.default)), [4, this._selectCampPageComponent.Init(this._activityId)];
                            case 3:
                                s.sent(), s.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                var n = this;
                if (e.prototype.DisPlay.call(this, t), !t) {
                    if (this._campNameLocale = {}, this._activityConfig._Locale.forEach(function(e) {
                            n._campNameLocale[e.Id] = e.Content
                        }), this._activityDeadTime = f.default.Instance.ComputeDeadTime(this._activityConfig.Common), this._supportInfoRefreshTime = _.ConfigDataComponent.Instance.GetGlobalSettingByKey("SupportHeroInfoPushTime") * C.Etc.MinuteDuration, this._giftEndTime = this._activityDeadTime - C.Etc.DayDuration, this._currentCampId) {
                        if (this.Curtain.active = !1, this.CampSupportPage.active = !0, this.TaskButton.node.active = !0, !this._isSetSupportOverInfo && (this.GiftBagButton.node.active = g.RpcComponent.Instance.ServerTime < this._giftEndTime, g.RpcComponent.Instance.ServerTime < this._giftEndTime)) {
                            var o = (this._giftEndTime - g.RpcComponent.Instance.ServerTime) / 1e3;
                            this.scheduleOnce(this.HideGiftPackButton, o)
                        }
                        this.SetCampName(), this.PersonalRewardPart(), this.SupportPart(), this.ResponseRefreshSupportInfo(this._supportInfo), this._isRefreshSupportInfoStart || (this._isRefreshSupportInfoStart = !0, this.RefreshSupportInfo(), this.schedule(this.RefreshSupportInfo, 1))
                    }
                    this.ActivityCountDown(), this.schedule(this.ActivityCountDown, 1), this.PlayMsgComponent.Init(this._msgPrefab, function(e, t) {
                        var o;
                        o = n._currentCampId == t.IntParams[0] ? "#00b0ff" : "#ff4b4b";
                        var r = "campSupport_msg".ToUILocale().Fmt(t.StringParams[0], o, n._campNameLocale[t.IntParams[0]]),
                            i = "x" + t.IntParams[2];
                        e.getComponent(S.default).Init(r, t.IntParams[1], i)
                    })
                }
                this._isGoToSupportButtonClick && (this.PersonalRewardPart(), this.SupportPart(), this.RefreshBothCampValue()), this.BindRedDot()
            }, t.prototype.HideGiftPackButton = function() {
                this.GiftBagButton.node.active = !1
            }, t.prototype.ActivityCountDown = function() {
                var e = this._activityDeadTime - g.RpcComponent.Instance.ServerTime;
                e <= 0 && c.UIManager.Instance.BackUIPanel(), e <= this._threeHourDuration ? (this._isSupportOver = !0, this.ActivityTimeRichText.string = "timeLimited_wishCall_leftTime".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e)), this._isGoToSupportButtonClick && !this._isSetSupportOverInfo && (this.SetSupportOverInfo(), this.GiftBagButton.node.active = !1), this._canSupport && this.SetButtonState()) : (e -= this._threeHourDuration, this.ActivityTimeRichText.string = "campSupport_lastTime_support".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e)))
            }, t.prototype.SetSupportOverInfo = function() {
                this._isSetSupportOverInfo = !0, this.SupportOver.active = !0;
                var e = this._supportInfo.groupValue.Items[0],
                    t = this._supportInfo.groupValue.Items[1];
                this.WinCampName.string = e > t ? this._campNameLocale[l.One] : this._campNameLocale[l.Two]
            }, t.prototype.BindRedDot = function() {
                P.RedDotManager.Instance.BindInstance(this.GiftBagButton.node, P.RedDotManager.Instance.InstanceRedDot.CampSupportGiftNode, {
                    Value1: this._activityId
                }), P.RedDotManager.Instance.BindInstance(this.TaskButton.node, P.RedDotManager.Instance.InstanceRedDot.CampSupportTaskNode, {
                    Value1: this._activityId
                }), P.RedDotManager.Instance.BindInstance(this.SupportButton.node, P.RedDotManager.Instance.InstanceRedDot.SupportNode, {
                    Value1: this._activityId
                })
            }, t.prototype.SetCampSupportPage = function() {
                this.SetCampName(), this.PersonalRewardPart(), this.SupportPart(), this.RefreshBothCampValue()
            }, t.prototype.SetCampName = function() {
                switch (this._currentCampId) {
                    case l.One:
                        this.OneCampLabel.string = "campSupport_myCamp".ToUILocale(), this.TwoCampLabel.string = "enemyTag".ToUILocale();
                        break;
                    case l.Two:
                        this.OneCampLabel.string = "enemyTag".ToUILocale(), this.TwoCampLabel.string = "campSupport_myCamp".ToUILocale()
                }
                this.OneCampName.string = this._campNameLocale[l.One], this.TwoCampName.string = this._campNameLocale[l.Two]
            }, t.prototype.PersonalRewardPart = function() {
                this._userActivityData = y.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId), this._currentCampId = this._userActivityData.IntArray[0];
                for (var e, t = this._userActivityData.IntArray[1], n = !1, o = 0; o < this._activityConfig.__PersonReward.length; o++) {
                    var r = this._activityConfig.__PersonReward[o];
                    if (r.GroupId == this._currentCampId && (e = r.SupportValue, -1 == this._userActivityData.Int2DArray[0].Items.indexOf(r.Id))) {
                        t >= r.SupportValue && (n = !0, t = e);
                        break
                    }
                }
                n ? (this.TaskReceiveSpine.node.active = !0, this.TaskReceiveSpine.setAnimation(0, "Ani_UI_effect_XNDB_gerenjiangli", !0)) : this.TaskReceiveSpine.node.active = !1, this.PointValue.string = "item_count_enough".ToUILocale().Fmt(t.FmtCurrency(), e.FmtCurrency()), this.TaskProgressBar.progress = t / e
            }, t.prototype.SupportPart = function() {
                var e = this;
                this._activityConfig.CustomPart.Items.forEach(function(t, n) {
                    e.SupportItemContainer.node.childrenCount <= n && cc.instantiate(e._supportItemPrefab).setParent(e.SupportItemContainer.node), e.SupportItemContainer.node.children[n].getComponent(v.default).Init(t.Items[0], t.Items[1], e._itemPrefab, e._currencyBarPrefab)
                }), this.SetButtonState()
            }, t.prototype.RefreshBothCampValue = function() {
                var e = this,
                    t = new u.Req_Activity_RefreshSupportInfo;
                t.ActivityId = this._activityId, g.RpcComponent.Instance.Call(t, function(t) {
                    e.ResponseRefreshSupportInfo(t)
                })
            }, t.prototype.ResponseRefreshSupportInfo = function(e) {
                var t = this;
                this._isGoToSupportButtonClick = !0, y.DataCenter.Instance.SetTempData("RefreshSupportInfo", e), this._supportInfo = e;
                var n = e.groupValue.Items[0],
                    o = e.groupValue.Items[1];
                this.OneSupportCount.string = n.FmtCurrency(), this.TwoSupportCount.string = o.FmtCurrency(), this.CampProgressBar.progress = n + o == 0 ? .5 : n / (n + o), this.SetCampTaskPart(e.groupValue.Items[this._currentCampId - 1]), this.SmallRankList.InitUIForActivity(this._activityId, "holyArea_rank".ToUILocale(), function(e) {
                    p.UIManager.Instance.ShowUIPanel(I.PanelConfig.CampSupportRankDetailPanel.Path, null, null, null, null, null, t._activityId, t._currentCampId - 1, e)
                }, e)
            }, t.prototype.SetCampTaskPart = function(e) {
                var t = this;
                0 == this._campRewards.length && this._activityConfig.__GroupReward.forEach(function(e) {
                    e.GroupId == t._currentCampId && t._campRewards.push(e)
                });
                var n = this._campRewards.length;
                this._campRewards.forEach(function(o, r) {
                    var i, a, s = t.CampRewardProgressBar.TotalLength / n * (r + 1);
                    if (t._rewardBoxComponents.length < n) {
                        var l = cc.instantiate(t._rewardBoxPrefab);
                        l.setParent(t.CampRewardBoxGroup), t._rewardBoxComponents.push(l.getComponent(w.default))
                    }
                    a = 0 == r ? "box_1" : r == n - 1 ? "box_3" : "box_2", i = -1 != t._userActivityData.Int2DArray[1].Items.indexOf(o.Id);
                    var c = t._campSupportAtlas.getSpriteFrame(a);
                    t._rewardBoxComponents[r].Init(t._activityId, c, s, e, o, i)
                }), this.CountLabel.string = e.FmtCurrency();
                for (var o = 0, r = 0; r < this._campRewards.length; r++) {
                    if (!(e >= this._campRewards[r].SupportValue)) {
                        o += r > 0 ? (e - this._campRewards[r - 1].SupportValue) / ((this._campRewards[r].SupportValue - this._campRewards[r - 1].SupportValue) * this._campRewards.length) : e / (this._campRewards[r].SupportValue * this._campRewards.length);
                        break
                    }
                    o = (r + 1) / this._campRewards.length
                }
                this.CampRewardProgressBar.progress = o
            }, t.prototype.SetButtonState = function() {
                if (this._isSupportOver) this._canSupport = !1;
                else {
                    this._canSupport = !1;
                    for (var e = 0; e < this._activityConfig.CustomPart.Items.length; e++)
                        if (y.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.Items[e].Items[0]) > 0) {
                            this._canSupport = !0;
                            break
                        }
                }
                this.SupportButton.node.active = this._canSupport, this.DisableSupportButton.node.active = !this._canSupport
            }, t.prototype.GoToSupportPage = function() {
                if (this._selectCampPageComponent.node.active = !1, this.Curtain.active = !1, this.CampSupportPage.active = !0, this.TaskButton.node.active = !0, !this._isSetSupportOverInfo && (this.GiftBagButton.node.active = g.RpcComponent.Instance.ServerTime < this._giftEndTime, g.RpcComponent.Instance.ServerTime < this._giftEndTime)) {
                    var e = (this._giftEndTime - g.RpcComponent.Instance.ServerTime) / 1e3;
                    this.scheduleOnce(this.HideGiftPackButton, e)
                }
                this.SetCampSupportPage(), this._isRefreshSupportInfoStart || (this._isRefreshSupportInfoStart = !0, this.RefreshSupportInfo(), this.schedule(this.RefreshSupportInfo, 1))
            }, t.prototype.RefreshSupportInfo = function() {
                if (this._isSupportOver) this.CampSupportRefreshTimeValue.string = f.default.ActivityTimeLeftFormat(0), this.unschedule(this.RefreshSupportInfo);
                else {
                    var e = g.RpcComponent.Instance.ServerTime,
                        t = this._supportInfoRefreshTime - (e - this._activityConfig.Common.StartTime) % this._supportInfoRefreshTime;
                    this.CampSupportRefreshTimeValue.string = f.default.ActivityTimeLeftFormat(t), t < C.Etc.SecondDuration && (this.RefreshBothCampValue(), this.ConfigSupportMsg())
                }
            }, t.prototype.ConfigSupportMsg = function() {
                var e = this,
                    t = new u.Req_Activity_GetSupportMsg;
                t.ActivityId = this._activityId, t.LastTs = this._lastGetSupportMsgTime, g.RpcComponent.Instance.Call(t, function(t) {
                    e._lastGetSupportMsgTime = g.RpcComponent.Instance.ServerTime, t.Notices && t.Notices.length > 0 && e.PlayMsgComponent.Render(t.Notices)
                })
            }, t.prototype.OnSupportButtonClick = function() {
                var e = this,
                    t = 0,
                    n = new u.Req_Activity_DonateSupportGroup;
                n.ActivityId = this._activityId, this._activityConfig.CustomPart.Items.forEach(function(e) {
                    var o = e.Items[0],
                        r = y.DataCenter.Instance.GetItemCount(o);
                    if (0 != r) {
                        var i = new u.IntArray;
                        i.Items[0] = o, i.Items[1] = r, n.SupportItems.push(i), t += e.Items[1] * i.Items[1]
                    }
                }), g.RpcComponent.Instance.Call(n, function() {
                    e.DisplayBattleEffect(), m.UIUtlity.ShowFloatingHint("campSupport_supportSuccess".ToUILocale().Fmt(e._campNameLocale[e._currentCampId], t)), e.SetCampSupportPage(), e.ConfigSupportMsg()
                })
            }, t.prototype.DisplayBattleEffect = function() {
                var e = this;
                switch (this._currentCampId) {
                    case l.One:
                        this.BattleEfffectNode.node.scaleX = 1;
                        break;
                    case l.Two:
                        this.BattleEfffectNode.node.scaleX = -1
                }
                this.BattleEfffectNode.node.active = !0, this.BattleEfffectNode.setCompleteListener(function() {
                    e.BattleEfffectNode.node.active = !1
                })
            }, t.prototype.OnDisableSupportButtonClick = function() {
                this._isSupportOver ? m.UIUtlity.ShowFloatingHint("campSupport_supportOver".ToUILocale()) : this._canSupport || m.UIUtlity.ShowFloatingHint("campSupport_noItem".ToUILocale())
            }, t.prototype.OnTaskRewardButtonClick = function() {
                var e = {
                    IsActivity: !0
                };
                e.Title = "campSupport_progressReward".ToUILocale(), e.ActivityId = this._activityId, e.HideAllPanels = !1, c.UIManager.Instance.ShowUIPanel(I.PanelConfig.CommonTaskPanel.Path, [e])
            }, t.prototype.OnReturnButtonClick = function() {
                p.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "campSupport_title_activity".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["campSupport_ruleDesc".ToUILocale()]
                };
                m.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnTaskButtonClick = function() {
                var e = {
                    IsActivity: !0
                };
                e.Title = "btn_task".ToUILocale(), e.Tasks = this._activityConfig._Tasks, e.ActivityId = this._activityId, e.HideAllPanels = !1, c.UIManager.Instance.ShowUIPanel(I.PanelConfig.CommonTaskPanel.Path, [e])
            }, t.prototype.OnRewardDescButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(I.PanelConfig.RewardDescriptionPanel.Path, this._activityId, this._supportInfo)
            }, t.prototype.OnGiftBagButtonClick = function() {
                if (this._isSupportOver) m.UIUtlity.ShowFloatingHint("campSupport_supportOver".ToUILocale());
                else {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: f.default.Instance.ComputeDeadTime(this._activityConfig.Common) - C.Etc.DayDuration,
                            BannerPath: e[0],
                            Title: "campSupport_giftBag".ToUILocale()
                        };
                    c.UIManager.Instance.ShowUIPanel(I.PanelConfig.CommonGiftPackPanel.Path, t)
                }
            }, t.prototype.TouchSupportTitle = function() {
                m.UIUtlity.ShowItemTip(this._activityConfig.CustomPart.WinRewardId, this.SupportTitle.node)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks(), this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([k(cc.Node)], t.prototype, "Curtain", void 0), i([k(cc.Label)], t.prototype, "TopTittle", void 0), i([k(cc.RichText)], t.prototype, "ActivityTimeRichText", void 0), i([k(cc.Button)], t.prototype, "RuleButton", void 0), i([k(cc.Node)], t.prototype, "CampSupportPage", void 0), i([k(cc.Label)], t.prototype, "TitleTip", void 0), i([k(cc.Sprite)], t.prototype, "SupportTitle", void 0), i([k(d.default)], t.prototype, "CampProgressBar", void 0), i([k(cc.Sprite)], t.prototype, "SupportVsSprite", void 0), i([k(cc.Label)], t.prototype, "OneCampLabel", void 0), i([k(cc.Label)], t.prototype, "OneSupportCount", void 0), i([k(cc.Label)], t.prototype, "OneCampName", void 0), i([k(cc.Label)], t.prototype, "TwoCampLabel", void 0), i([k(cc.Label)], t.prototype, "TwoSupportCount", void 0), i([k(cc.Label)], t.prototype, "TwoCampName", void 0), i([k(cc.Label)], t.prototype, "CampSupportRefreshTimeTag", void 0), i([k(cc.Label)], t.prototype, "CampSupportRefreshTimeValue", void 0), i([k(sp.Skeleton)], t.prototype, "BattleEfffectNode", void 0), i([k(cc.Button)], t.prototype, "TaskRewardButton", void 0), i([k(cc.ProgressBar)], t.prototype, "TaskProgressBar", void 0), i([k(cc.RichText)], t.prototype, "PointValue", void 0), i([k(cc.Label)], t.prototype, "RewardLabel", void 0), i([k(cc.Label)], t.prototype, "ValueTagLabel", void 0), i([k(sp.Skeleton)], t.prototype, "TaskReceiveSpine", void 0), i([k(cc.Node)], t.prototype, "CampRewardProgress", void 0), i([k(cc.Label)], t.prototype, "CampRewardTittle", void 0), i([k(d.default)], t.prototype, "CampRewardProgressBar", void 0), i([k(cc.Node)], t.prototype, "CampRewardBoxGroup", void 0), i([k(cc.Label)], t.prototype, "CampValueTag", void 0), i([k(cc.Label)], t.prototype, "CountLabel", void 0), i([k(h.default)], t.prototype, "SmallRankList", void 0), i([k(cc.Label)], t.prototype, "SupportPartTittle", void 0), i([k(cc.Layout)], t.prototype, "SupportItemContainer", void 0), i([k(cc.Button)], t.prototype, "DisableSupportButton", void 0), i([k(cc.Label)], t.prototype, "DisableSupportButtonLabel", void 0), i([k(cc.Button)], t.prototype, "SupportButton", void 0), i([k(cc.Label)], t.prototype, "SupportButtonLabel", void 0), i([k(cc.Node)], t.prototype, "SupportOver", void 0), i([k(cc.Label)], t.prototype, "WinCampName", void 0), i([k(cc.Label)], t.prototype, "SupportOverTip", void 0), i([k(cc.Button)], t.prototype, "ReturnButton", void 0), i([k(cc.Button)], t.prototype, "TaskButton", void 0), i([k(cc.Label)], t.prototype, "TaskButtonLabel", void 0), i([k(cc.Button)], t.prototype, "RewardDescButton", void 0), i([k(cc.Label)], t.prototype, "RewardDescButtonLabel", void 0), i([k(cc.Button)], t.prototype, "GiftBagButton", void 0), i([k(cc.Label)], t.prototype, "GiftBagButtonLabel", void 0), i([k(b.default)], t.prototype, "PlayMsgComponent", void 0), i([L], t)
        }(c.BaseUIFullScreenPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CampRewardBox": "CampRewardBox",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/MsgComponent": "MsgComponent",
        "../Components/PlayMsgComponent": "PlayMsgComponent",
        "../Components/SelectCampPage": "SelectCampPage",
        "../Components/SmallRankListComponent": "SmallRankListComponent",
        "../Components/SupportItemComponent": "SupportItemComponent"
    }],
    CanvasAutoFit: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "66cfcrjDAFB+rXkLW6zgf0W", "CanvasAutoFit");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), cc.macro.ENABLE_TRANSPARENT_CANVAS = !0;
        var a = e("../../Consts/GlobalSetting"),
            s = e("../../GamePlay/UI/Auxiliary/CanvasBg"),
            l = e("../../GamePlay/UI/Auxiliary/UIUtlity");
        !cc.sys.isNative && cc.dynamicAtlasManager && (cc.dynamicAtlasManager.enabled = !1);
        var c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GameCanvas = null, t.UIRoot = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    !cc.sys.isNative && cc.dynamicAtlasManager && (cc.dynamicAtlasManager.enabled = !1), n.Instance = this, this.AutoFit(), this.CheckImageExtention(), cc.view.setResizeCallback(this.AutoFit.bind(this))
                }, t.prototype.CheckImageExtention = function() {
                    if (cc.sys.isNative) l.UIUtlity.ACTIVITYIMANGE_EXTENTION = ".astc";
                    else try {
                        0 === document.createElement("canvas").toDataURL("image/webp", .5).indexOf("data:image/webp") ? l.UIUtlity.ACTIVITYIMANGE_EXTENTION = ".webp" : l.UIUtlity.ACTIVITYIMANGE_EXTENTION = ".png"
                    } catch (e) {
                        l.UIUtlity.ACTIVITYIMANGE_EXTENTION = ".png"
                    }
                }, t.prototype.AutoFit = function() {
                    var e = cc.view.getFrameSize().width;
                    if (cc.view.getFrameSize().height / e > a.GlobalSetting.DESIGN_SCREEN_HEIGHT / a.GlobalSetting.DESIGN_SCREEN_WIDTH) {
                        n.Instance.GameCanvas.fitHeight = !1, n.Instance.GameCanvas.fitWidth = !0;
                        var t;
                        t = cc.view.getVisibleSize().height >= a.GlobalSetting.MAX_DESIGN_SCREEN_HEIGHT ? a.GlobalSetting.MAX_DESIGN_SCREEN_HEIGHT : cc.view.getVisibleSize().height, n.Instance.GameCanvas.designResolution = new cc.Size(a.GlobalSetting.DESIGN_SCREEN_WIDTH, t), n.Instance.node.setContentSize(new cc.Size(a.GlobalSetting.DESIGN_SCREEN_WIDTH, t))
                    } else n.Instance.GameCanvas.fitHeight = !0, n.Instance.GameCanvas.fitWidth = !1;
                    var o = n.Instance.GameCanvas.designResolution;
                    l.UIUtlity.DESIGN_SCREEN_WIDTH = o.width, l.UIUtlity.DESIGN_SCREEN_HEIGHT = o.height, s.default.Instance && s.default.Instance.RefreshScreenBgSize()
                }, i([p(cc.Canvas)], t.prototype, "GameCanvas", void 0), i([p(cc.Node)], t.prototype, "UIRoot", void 0), n = i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../Consts/GlobalSetting": "GlobalSetting",
        "../../GamePlay/UI/Auxiliary/CanvasBg": "CanvasBg",
        "../../GamePlay/UI/Auxiliary/UIUtlity": "UIUtlity"
    }],
    CanvasBg: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "42c9cVWrm1IBqPXXgP0pbdP", "CanvasBg");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../Consts/Consts"),
            s = e("./UIUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FullScreenBg = null, t.LeftBg = null, t.RightBg = null, t.CompanyNode = null, t.VNLabel = null, t.LeftLogo = null, t.RightLogo = null, t.LeftBlack = null, t.RightBlack = null, t.FULLSCREENBG_WIDTH = 1850, t.FULLSCREENBG_HEIGHT = 1080, t.LEFT_LOGO_OFFSETX = -70, t.LEFT_LOGO_SCALE = .8, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    n.Instance = this
                }, t.prototype.Init = function() {
                    this.ConfigBgs()
                }, t.prototype.ConfigBgs = function() {
                    this.FullScreenBg.node.active = !0, this.LeftBg.enabled = !1, this.RightBg.enabled = !1, this.LoadFullScreenBg()
                }, t.prototype.LoadFullScreenBg = function() {
                    this.RefreshScreenBgSize(), cc.resources.load("Canvas/CanvasFullScreenBg", cc.SpriteFrame, function(e, t) {
                        this.FullScreenBg.spriteFrame = t
                    }.bind(this))
                }, t.prototype.RefreshScreenBgSize = function() {
                    var e = cc.view.getVisibleSize().width,
                        t = this.FULLSCREENBG_HEIGHT * (e / this.FULLSCREENBG_WIDTH);
                    t >= s.UIUtlity.DESIGN_SCREEN_HEIGHT ? (this.FullScreenBg.node.width = e, this.FullScreenBg.node.height = t) : (this.FullScreenBg.node.height = s.UIUtlity.DESIGN_SCREEN_HEIGHT, this.FullScreenBg.node.width = this.FULLSCREENBG_WIDTH * (s.UIUtlity.DESIGN_SCREEN_HEIGHT / this.FULLSCREENBG_HEIGHT)), this.RefreshStateByDevice()
                }, t.prototype.RefreshStateByDevice = function() {
                    this.IsWideScreen() ? (this.LeftBlack.active = !1, this.RightBlack.active = !1, this.LeftLogo.node.scale = 1, this.LeftLogo.node.x = 0) : (this.LeftBlack.active = !0, this.RightBlack.active = !0, this.LeftLogo.node.scale = this.LEFT_LOGO_SCALE, this.LeftLogo.node.x = this.LEFT_LOGO_OFFSETX)
                }, t.prototype.IsWideScreen = function() {
                    var e = cc.view.getFrameSize().width;
                    return cc.view.getFrameSize().height / e < a.GlobalSetting.DESIGN_SCREEN_HEIGHT / (a.GlobalSetting.DESIGN_SCREEN_WIDTH + 2 * this.LeftBlack.width)
                }, i([u(cc.Sprite)], t.prototype, "FullScreenBg", void 0), i([u(cc.Sprite)], t.prototype, "LeftBg", void 0), i([u(cc.Sprite)], t.prototype, "RightBg", void 0), i([u(cc.Node)], t.prototype, "CompanyNode", void 0), i([u(cc.Label)], t.prototype, "VNLabel", void 0), i([u(cc.Sprite)], t.prototype, "LeftLogo", void 0), i([u(cc.Sprite)], t.prototype, "RightLogo", void 0), i([u(cc.Node)], t.prototype, "LeftBlack", void 0), i([u(cc.Node)], t.prototype, "RightBlack", void 0), n = i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "./UIUtlity": "UIUtlity"
    }],
    CanvasClickEffect: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9235bzXmDVEP4tL1nwUAp9D", "CanvasClickEffect");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = (p.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._isAudioLoading = !1, t._isSpineLoading = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._spinePools = [], this._audioSource = this.getComponent(cc.AudioSource)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_AUDIOEFFECT_VOLUME, this.OnVolumeChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_AUDIOEFFECT_VOLUME, this.OnVolumeChange, this)
                }, t.prototype.start = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this), this.node._touchListener.setSwallowTouches(!1), this.OnVolumeChange()
                }, t.prototype.OnVolumeChange = function() {
                    this._audioSource.volume = .7 * cc.audioEngine.getEffectsVolume()
                }, t.prototype.OnTouch = function(e) {
                    this.PlaySpineEffect(e.getLocation())
                }, t.prototype.PlayAudio = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._audioClip ? [3, 3] : this._isAudioLoading ? [3, 2] : (this._isAudioLoading = !0, e = this, [4, c.AssetsManager.Instance.LoadAsset("AudioEffect/System/Click")]);
                                case 1:
                                    e._audioClip = t.sent(), this._audioSource.clip = this._audioClip, t.label = 2;
                                case 2:
                                    return [2];
                                case 3:
                                    return this._audioSource.stop(), this._audioSource.play(), [2]
                            }
                        })
                    })
                }, t.prototype.PlaySpineEffect = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this._spinePrefab ? [3, 3] : this._isSpineLoading ? [3, 2] : (this._isSpineLoading = !0, t = this, [4, c.AssetsManager.Instance.LoadAsset("UISpine/ClickSpineEffect", cc.Prefab)]);
                                case 1:
                                    t._spinePrefab = a.sent(), this._isSpineLoading = !1, a.label = 2;
                                case 2:
                                    return [2];
                                case 3:
                                    return n = this.GetSpineNode(), o = cc.Camera.main.getScreenToWorldPoint(e), r = this.node.convertToNodeSpaceAR(o), n.node.setPosition(r), n.setAnimation(0, n.animation, !1), n.setCompleteListener(function() {
                                        i.PutSpineNode(n)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.GetSpineNode = function() {
                    var e;
                    if (this._spinePools.length > 0)(e = this._spinePools.shift()).node.active = !0;
                    else {
                        var t = cc.instantiate(this._spinePrefab);
                        t.setParent(this.node), e = t.getComponent(sp.Skeleton)
                    }
                    return e
                }, t.prototype.PutSpineNode = function(e) {
                    e.node.active = !1, this._spinePools.push(e)
                }, i([d], t)
            }(cc.Component));
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    CareerAttributeChangeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "65576/IiJlBiIEPWoX2wGPm", "CareerAttributeChangeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CareerAttributeChangeComponentStyle = void 0;
        var a, s = e("../../Auxiliary/DataUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property;
        (function(e) {
            e[e.Default = 0] = "Default", e[e.WithIcon = 1] = "WithIcon"
        })(a = n.CareerAttributeChangeComponentStyle || (n.CareerAttributeChangeComponentStyle = {}));
        var p = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Style = a.Default, t.CareerNameLabel = null, t.CurrentLevelLabel = null, t.Arrow = null, t.NextLevelLabel = null, t.AttrIcon = null, t
            }
            return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                void 0 === o && (o = 0), void 0 === r && (r = !1), this.Style == a.WithIcon && (this.AttrIcon.spriteFrame = s.default.GetAttrIcon(t)), r ? (this.CareerNameLabel.string = "exclusiveWeaponGallery_talent_level_limit_increase".ToUILocale(), this.CurrentLevelLabel.string = n.toString(), this.NextLevelLabel.string = o.toString(), this.Arrow.node.active = o > 0, this.NextLevelLabel.node.active = o > 0) : (this.CareerNameLabel.string = "career_attribute_combine".ToUILocale().Fmt(("hero_career_" + e).ToUILocale(), t.ToAttributeName()), this.CurrentLevelLabel.string = s.default.GetAttrText(t, n), this.NextLevelLabel.string = s.default.GetAttrText(t, o), this.Arrow.node.active = o > 0, this.NextLevelLabel.node.active = o > 0)
            }, i([u({
                type: cc.Enum(a),
                displayName: "\u6837\u5f0f"
            })], t.prototype, "Style", void 0), i([u(cc.Label)], t.prototype, "CareerNameLabel", void 0), i([u(cc.Label)], t.prototype, "CurrentLevelLabel", void 0), i([u(cc.Sprite)], t.prototype, "Arrow", void 0), i([u(cc.Label)], t.prototype, "NextLevelLabel", void 0), i([u(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([c], t)
        }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    CareerTypeGroup: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b6e46phsslLapAp3sD2vliQ", "CareerTypeGroup");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HighLight = null, t.Layout = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    for (var e = this.Layout.childrenCount, t = 0; t < e; t++) {
                        var n = this.Layout.children[t];
                        n.on("click", this.OnClickCareerAttr, this), cc.find("Background", n).getComponent(cc.Sprite).spriteFrame = 0 == t ? l.UIUtlity.GetHeroElementIcon(0) : l.UIUtlity.GetHeroCareerIcon(t)
                    }
                }, t.prototype.SetDefault = function() {
                    var e = this.Layout.children[0].getComponent(cc.Button);
                    this.OnClickCareerAttr(e)
                }, t.prototype.SetElementModeByIndex = function(e) {
                    e < 0 && (e = 0);
                    var t = this.Layout.children[e].getComponent(cc.Button);
                    this.OnClickCareerAttr(t)
                }, t.prototype.OnClickCareerAttr = function(e) {
                    var t = Number.parseInt(e.name);
                    this.HighLight.setPosition(e.node.position), a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_SWITCH_CAREER_TYPE, t, this.node)
                }, i([p(cc.Node)], t.prototype, "HighLight", void 0), i([p(cc.Node)], t.prototype, "Layout", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CarnivalGiftListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "307c7WWgIdMDb0M7akl+R/A", "CarnivalGiftListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Components/Components"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/ItemComponent"),
            h = e("../../../Consts/Consts"),
            f = e("../Components/LoadAssetHelper"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Condition = null, t.PurchaseLimit = null, t.ItemContainer = null, t.ShowTag = null, t.BuyButton = null, t.PriceLabel = null, t.PriceValue = null, t.FreeLabel = null, t.BuyButtonIcon = null, t.CurrencyIcon = null, t.BuyButtonLabel = null, t.IconNode = null, t.CurrencyIcon2 = null, t.OldPriceNode = null, t.LoadAssetHelper = null, t._items = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.LoadAssetHelper.LoadSpriteFrame(l.default.Instance.GetItemPathById(h.CommonItemId.Diamond), this.CurrencyIcon2, null, 1), this.LoadAssetHelper.LoadSpriteFrame(l.default.Instance.GetItemPathById(h.CommonItemId.Diamond), this.CurrencyIcon, null, 2)
                }, t.prototype.onEnable = function() {
                    this.BuyButton.node.on("click", this.OnButtonClick, this), s.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.BuyButton.node.off("click", this.OnButtonClick, this), s.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnButtonClick = function() {
                    s.Game.EventDispatcher.Emit(c.EventKeys.EVENT_MALL_BUTTONCLICK, this._index)
                }, t.prototype.SetTitle = function(e, t, n, o, r) {
                    return this._index = n, this.Title.string = e, this.Condition.node.active = r, this.Condition.string = t, this
                }, t.prototype.SetPrice2 = function(e) {
                    var t = e.ShowMoney,
                        n = e.Money;
                    return e.Discount, this.PriceLabel.node.parent.active = t > 0, this.BuyButtonIcon.active = n > 0, this.BuyButtonLabel.node.active = n > 0, this.FreeLabel.node.active = !this.BuyButtonIcon.active, e.PayId ? (this.PriceValue.string = l.default.Instance.GetFormatPrice(e.ShowMoney), this.BuyButtonLabel.string = l.default.Instance.GetFormatPrice(e.Money), this.BuyButtonIcon.active = !1, this.IconNode.active = !1) : (this.PriceValue.string = "x" + t, this.BuyButtonLabel.string = "x" + n, this.IconNode.active = !0), this.OldPriceNode.active = e.ShowMoney > 0, this.PriceLabel.string = "firstCharge_originalPrice".ToUILocale(), this.FreeLabel.string = "shop_buyFree".ToUILocale(), this
                }, t.prototype.SetPrice = function(e, t) {
                    return this.PriceLabel.node.parent.active = e > 0, this.BuyButtonIcon.active = t > 0, this.BuyButtonLabel.node.active = t > 0, this.FreeLabel.node.active = !this.BuyButtonIcon.active, this.PriceLabel.string = "firstCharge_originalPrice".ToUILocale(), this.PriceValue.string = "x" + e, this.BuyButtonLabel.string = "x" + t, this.FreeLabel.string = "shop_buyFree".ToUILocale(), this
                }, t.prototype.SetPurchaseLimit = function(e, t) {
                    e = null == e ? 0 : e, this.PurchaseLimit.string = "mall_buyLimit_4".ToUILocale().Fmt(t - e, t);
                    var n = e == t;
                    this._items.forEach(function(e) {
                        e.SetSelectFlagState(n)
                    }), this.ShowTag.active = n, this.BuyButton.node.active = !n, this.PriceLabel.node.parent.active = this.BuyButton.node.active
                }, t.prototype.SetItems = function(e, t) {
                    if (this._items.length > e.length) {
                        for (var n = 0; n < e.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = e.length; n < this._items.length; n++) this._items[n].node.active = !1, t.Put(this._items[n].node);
                        this._items.length = e.length
                    } else {
                        for (n = 0; n < this._items.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = this._items.length; n < e.length; n++) {
                            var o = t.Get();
                            o.active = !0, o.setParent(this.ItemContainer), this._items[n] = o.getComponent(d.ItemComponent), this.SetItem(n, e[n].Items)
                        }
                    }
                    return this
                }, t.prototype.SetItem = function(e, t) {
                    var n = u.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, t[0]);
                    this._items[e].Init({
                        ItemId: t[0],
                        Count: t[1]
                    }, n.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon)
                }, t.prototype.OnItemClick = function(e, t) {
                    this.ItemContainer && -1 != this.ItemContainer.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Label)], t.prototype, "Condition", void 0), i([m(cc.Label)], t.prototype, "PurchaseLimit", void 0), i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([m(cc.Node)], t.prototype, "ShowTag", void 0), i([m(cc.Button)], t.prototype, "BuyButton", void 0), i([m(cc.Label)], t.prototype, "PriceLabel", void 0), i([m(cc.Label)], t.prototype, "PriceValue", void 0), i([m(cc.Label)], t.prototype, "FreeLabel", void 0), i([m(cc.Node)], t.prototype, "BuyButtonIcon", void 0), i([m(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([m(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([m(cc.Node)], t.prototype, "IconNode", void 0), i([m(cc.Sprite)], t.prototype, "CurrencyIcon2", void 0), i([m(cc.Node)], t.prototype, "OldPriceNode", void 0), i([m(f.default)], t.prototype, "LoadAssetHelper", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper"
    }],
    CarnivalPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5bc9377g9FAgoHslQ6cR3px", "CarnivalPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Etc"),
            d = e("../../../Consts/GameEventIds"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/GameEventsListener"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../Components/Components"),
            v = e("../../Components/DataCenter"),
            b = e("../../Components/RpcComponent"),
            S = e("../../RedDot/RedDotManager"),
            w = e("../Auxiliary/UIUtlity"),
            P = e("../Components/CustomLayout"),
            A = e("../Components/CustomToggle"),
            T = e("../Components/ItemComponent"),
            R = e("./CarnivalGiftListItem"),
            L = e("./CarnivalTaskListItem"),
            k = e("./NodePool"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property;
        (function(e) {
            e[e.Task = 0] = "Task", e[e.Gift = 1] = "Gift"
        })(l || (l = {}));
        var B = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new h.UIPanelType(h.UINodeType.Tip), t.Title = null, t.LookLabel = null, t.LookButton = null, t.LeftTime = null, t.TaskToggle = null, t.GiftToggle = null, t.TaskView = null, t.GiftView = null, t.DaysToggles = [], t.OneKeyGetButton = null, t.OneKeyGetButtonLabel = null, t.BottomArrow = null, t.TopArrow = null, t.DaysRedDots = [], t.TaskRedDots = [], t.GiftRedDots = [], t.BannerImage = null, t._currentMode = null, t._currentDay = null, t._sortArray = [], t._modeToBottomArrowPosX = [-93, 93], t._initLayout = !0, t._tasksByDayth = [], t._giftsByDayth = [], t._finishedTaskIds = [], t._redDotTaskDays = [], t._redDotGiftDays = [], t._assets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                h.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), h.Game.EventDispatcher.On(g.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), h.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), h.Game.EventDispatcher.On(d.GameEventIds.ActivityConfigChange, this.DisPlay, this)
            }, t.prototype.onDisable = function() {
                h.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), h.Game.EventDispatcher.Off(g.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), h.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), h.Game.EventDispatcher.Off(d.GameEventIds.ActivityConfigChange, this.DisPlay, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(_.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("OpenServerActivity/Private/CarnivalTaskListItem", cc.Prefab), o = this.LoadDynamicAsset("OpenServerActivity/Private/CarnivalGiftListItem", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._itemPrefab = e[0], r._tasksinglePrefab = e[1], r._giftsinglePrefab = e[2], r._itemPool = new k.default(r._itemPrefab)
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "openServer_carnival".ToUILocale(), this.LookLabel.string = "openServer_goLook".ToUILocale(), this.TaskToggle.Init("btn_task".ToUILocale()), this.GiftToggle.Init("timeLimited_gift".ToUILocale()), this.OneKeyGetButtonLabel.string = "mail_receiveAllReward".ToUILocale();
                for (var t = 0; t < this.DaysToggles.length; t++) this.DaysToggles[t].Init("firstCharge_dayth".ToUILocale().Fmt(t + 1)), this.DaysToggles[t].node.on("toggle", this.OnDaysToggleSwitch, this);
                this.LookButton.node.on("click", this.OnLookButtonClick, this), this.TaskToggle.node.on("toggle", this.OnTaskToggleSwitch, this), this.GiftToggle.node.on("toggle", this.OnGiftToggleSwitch, this), this.OneKeyGetButton.node.on("click", this.OnOneKeyGetButtonClick, this)
            }, t.prototype.InitData = function(t) {
                var n = this;
                e.prototype.InitData.call(this);
                var o = t[0];
                this._data = v.DataCenter.Instance.ActivityConfigs[o], this.SetBanner(), this._startTime = y.default.Instance.GetOpenZeroTime() + (this._data.Common.RequireOpenDays - 1) * p.Etc.DayDuration, this._deadLine = y.default.Instance.ComputeDeadTime(this._data.Common), this._taskIdPrefix = 1e4 * this._data._id, this.LookButton.node.parent.active = null != this._data.Common.JumpId && this._data.Common.JumpId > 0, null == v.DataCenter.Instance.GetTempData("OpenServer_CarnivalGifts") ? (this._data._Packs.forEach(function(e) {
                    var t = Math.floor(e.Id / 100) - 1;
                    null == n._giftsByDayth[t] && (n._giftsByDayth[t] = []), n._giftsByDayth[t].push(e)
                }), v.DataCenter.Instance.SetTempData("OpenServer_CarnivalGifts", this._giftsByDayth)) : this._giftsByDayth = v.DataCenter.Instance.GetTempData("OpenServer_CarnivalGifts"), v.DataCenter.Instance.SetTempData("OpenServer_CarnivalTasks", null), null == v.DataCenter.Instance.GetTempData("OpenServer_CarnivalTasks") ? (this._data._Tasks.forEach(function(e) {
                    var t = Math.floor(e.Id / 100) - 1;
                    null == n._tasksByDayth[t] && (n._tasksByDayth[t] = []), n._tasksByDayth[t].push(e)
                }), v.DataCenter.Instance.SetTempData("OpenServer_CarnivalTasks", this._tasksByDayth)) : this._tasksByDayth = v.DataCenter.Instance.GetTempData("OpenServer_CarnivalTasks")
            }, t.prototype.DisPlay = function(t) {
                var n = this;
                e.prototype.DisPlay.call(this, t), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1);
                for (var o = 0; o < this.DaysToggles.length; o++) o > this._dayth ? this.DaysToggles[o].SetInteractable(!1, "openServer_openInDays".ToUILocale().Fmt(o - this._dayth)) : this.DaysToggles[o].SetInteractable(!0);
                for (this._initLayout && (this.TaskView.Init(this._tasksinglePrefab), this.GiftView.Init(this._giftsinglePrefab), this._initLayout = !1), this._model = v.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data._id), t ? (this.TaskView.RenderLayOut(this._tasksByDayth[this._currentDay].length), this.GiftView.RenderLayOut(this._giftsByDayth[this._currentDay].length)) : (this.OnDaysToggleSwitch(this.DaysToggles[0]), this.DaysToggles[0].isChecked = !0, this.OnTaskToggleSwitch(), this.TaskToggle.isChecked = !0), I.default.SetItem(I.GameRecordDefine.CarnivalRedDot, b.RpcComponent.Instance.ServerTime), S.RedDotManager.Instance.RefreshInstanceRedDotNode(S.RedDotManager.Instance.InstanceRedDot.CarnivalNode, {
                        Value1: this._data._id
                    }), this._finishedTaskIds = [], this._redDotGiftDays = S.RedDotManager.DataHandler.RewardGiftDays(this._giftsByDayth, this._model)[0], this._redDotTaskDays = S.RedDotManager.DataHandler.RewardTaskDays(this._tasksByDayth, this._taskIdPrefix, this._finishedTaskIds, this._dayth), this.OneKeyGetButton.node.active = this._finishedTaskIds.length > 0, this.DaysRedDots.forEach(function(e) {
                        e.active = !1
                    }), this._redDotGiftDays.forEach(function(e) {
                        n.DaysRedDots[2 * e].active = !0, n.DaysRedDots[2 * e + 1].active = !0
                    }), this._redDotTaskDays.forEach(function(e) {
                        n.DaysRedDots[2 * e].active = !0, n.DaysRedDots[2 * e + 1].active = !0
                    }), o = 2 * (this._dayth + 1); o < this.DaysRedDots.length; o++) this.DaysRedDots[o].active = !1;
                this.SetBottomToggleRedDot(), m.default.Instance._zeroRefreshPanel = this
            }, t.prototype.OnLookButtonClick = function() {
                var e = C.ConfigDataComponent.Instance.GetConfigById(c.ItemGetWay_Config, this._data.Common.JumpId);
                y.default.Instance.ShowActivityPanel(e.PanelInfo[0], e.PanelInfo[1])
            }, t.prototype.OnTaskToggleSwitch = function() {
                this._currentMode != l.Task && (this._currentMode = l.Task, this.SetVisibleView(), this.TaskView.RenderLayOut(this._tasksByDayth[this._currentDay].length))
            }, t.prototype.OnGiftToggleSwitch = function() {
                this._currentMode != l.Gift && (this._currentMode = l.Gift, this.SetVisibleView(), this.GiftView.RenderLayOut(this._giftsByDayth[this._currentDay].length))
            }, t.prototype.OnDaysToggleSwitch = function(e) {
                var t = Number.parseInt(e.node.name) - 1;
                t != this._currentDay && (this._currentDay = t, this.TaskView.RenderLayOut(this._tasksByDayth[this._currentDay].length), this.GiftView.RenderLayOut(this._giftsByDayth[this._currentDay].length), this.TopArrow.x = this.DaysToggles[this._currentDay].node.x, this.SetBottomToggleRedDot())
            }, t.prototype.RefreshCustomLayout = function(e, t) {
                var n = this;
                if (t == this.TaskView) {
                    var o, r, i, a = this._tasksByDayth[this._currentDay];
                    a.sort(function(e, t) {
                        return r = v.DataCenter.Instance.GetDataById(u.UserTask_Model, e.Id + n._taskIdPrefix), i = v.DataCenter.Instance.GetDataById(u.UserTask_Model, t.Id + n._taskIdPrefix), r.IsCompleted && !i.IsCompleted ? 1 : i.IsCompleted && !r.IsCompleted ? -1 : r.Progress >= e.TotalCount && i.Progress < t.TotalCount ? -1 : i.Progress >= t.TotalCount && r.Progress < e.TotalCount ? 1 : e.SortId - t.SortId
                    }), e.forEach(function(e, t) {
                        var r = a[t];
                        (o = v.DataCenter.Instance.GetDataById(u.UserTask_Model, r.Id + n._taskIdPrefix)).Progress >= r.TotalCount && !o.IsCompleted && (n.OneKeyGetButton.node.active = !0), e.getComponent(L.default).SetTitle(y.default.GetTaskDesc(r), r.GetWayId, t).SetItems(r.Rewards, n._itemPool).SetPurchaseLimit(o.Progress, r.TotalCount, o.IsCompleted)
                    })
                } else if (t == this.GiftView) {
                    var s = this._giftsByDayth[this._currentDay];
                    s.sort(function(e, t) {
                        return null != n._model.Packs[e.Id] && n._model.Packs[e.Id].Items[0] >= e.LimitCount ? 1 : null != n._model.Packs[t.Id] && n._model.Packs[t.Id].Items[0] >= t.LimitCount ? -1 : e.Id - t.Id
                    }), v.DataCenter.Instance.GetIntData(f.UserDataKey.VipLevel), e.forEach(function(e, t) {
                        var o = s[t];
                        e.getComponent(R.default).SetTitle(o.Name, "openServer_carnival_needVip".ToUILocale().Fmt(o.Unlock[0] ? o.Unlock[0].Items[1] : 0), o.Id, y.default.Instance.CheckPackPayUnlock(o.Unlock), o.Unlock.length > 0).SetItems(o.Items, n._itemPool).SetPrice2(o).SetPurchaseLimit(n._model.Packs[o.Id].Items[0], o.LimitCount)
                    })
                }
            }, t.prototype.OnButtonClick = function(e) {
                var t = this;
                if (this._currentMode == l.Gift) {
                    var n = this._giftsByDayth[this._currentDay][e];
                    if (!y.default.Instance.CheckPackPayUnlock(n.Unlock)) return void w.UIUtlity.ShowFloatingHint("openServer_carnival_needVip".ToUILocale().Fmt(n.Unlock[0].Items[1]));
                    if (n.Money > 0) {
                        if (n.PayId) return void y.default.Instance.SendBuyGiftPackRequest(n, this._data._id);
                        if (n.Money > v.DataCenter.Instance.GetItemCount(f.CommonItemId.Diamond)) return void w.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(f.CommonItemId.Diamond.ToItemName()));
                        w.UIUtlity.ShowHintPanel(null, "mall_query_costDiamondBuy".ToUILocale().Fmt(n.Money, n.Name), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                            y.default.Instance.SendBuyGiftPackRequest(n, t._data._id)
                        })
                    } else y.default.Instance.SendBuyGiftPackRequest(n, this._data._id)
                } else if (this._currentMode == l.Task) {
                    var o = this._tasksByDayth[this._currentDay][e],
                        r = new u.Req_Activity_CommonTaskReward;
                    r.ActivityId = this._data._id, r.TaskIds = [o.Id], b.RpcComponent.Instance.Call(r, function(e) {
                        w.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }
            }, t.prototype.OnOneKeyGetButtonClick = function() {
                var e = new u.Req_Activity_CommonTaskReward;
                e.ActivityId = this._data._id, e.TaskIds = this._finishedTaskIds, b.RpcComponent.Instance.Call(e, function(e) {
                    w.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                })
            }, t.prototype.OnItemClick = function(e, t) {
                "RewardGrid4" == t.parent.name && w.UIUtlity.ShowItemTip(t.getComponent(T.ItemComponent).ItemId, t)
            }, t.prototype.SetVisibleView = function() {
                this.TaskView.ScrollView.node.active = this._currentMode == l.Task, this.GiftView.ScrollView.node.active = this._currentMode == l.Gift, this.BottomArrow.x = this._modeToBottomArrowPosX[this._currentMode]
            }, t.prototype.SetBottomToggleRedDot = function() {
                var e = this._redDotTaskDays.includes(this._currentDay);
                this.TaskRedDots.forEach(function(t) {
                    t.active = e
                });
                var t = this._redDotGiftDays.includes(this._currentDay);
                this.GiftRedDots.forEach(function(e) {
                    e.active = t
                })
            }, t.prototype.CountDown = function() {
                var e = this._deadLine - b.RpcComponent.Instance.ServerTime;
                e < 0 && h.UIManager.Instance.BackUIPanel(), this.SetDayth(), this.LeftTime.string = "openServer_frameCountDown".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(e))
            }, t.prototype.SetDayth = function() {
                var e = b.RpcComponent.Instance.ServerTime - this._startTime;
                this._dayth = Math.floor(e / p.Etc.DayDuration)
            }, t.prototype.SetBanner = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, y.default.LoadActivityTexture(this._data.Common.Pictures[0])];
                            case 1:
                                return e = t.sent(), this.isValid ? (this.BannerImage.spriteFrame = e, this._assets.push(e), [2]) : (h.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                var e;
                this._assets.forEach(function(e) {
                    h.AssetsManager.Instance.UnloadAsset(e)
                }), this.unscheduleAllCallbacks(), null === (e = this._itemPool) || void 0 === e || e.Clear()
            }, i([D(cc.Label)], t.prototype, "Title", void 0), i([D(cc.Label)], t.prototype, "LookLabel", void 0), i([D(cc.Button)], t.prototype, "LookButton", void 0), i([D(cc.RichText)], t.prototype, "LeftTime", void 0), i([D(A.default)], t.prototype, "TaskToggle", void 0), i([D(A.default)], t.prototype, "GiftToggle", void 0), i([D(P.default)], t.prototype, "TaskView", void 0), i([D(P.default)], t.prototype, "GiftView", void 0), i([D({
                type: [A.default]
            })], t.prototype, "DaysToggles", void 0), i([D(cc.Button)], t.prototype, "OneKeyGetButton", void 0), i([D(cc.Label)], t.prototype, "OneKeyGetButtonLabel", void 0), i([D(cc.Node)], t.prototype, "BottomArrow", void 0), i([D(cc.Node)], t.prototype, "TopArrow", void 0), i([D({
                type: [cc.Node]
            })], t.prototype, "DaysRedDots", void 0), i([D({
                type: [cc.Node]
            })], t.prototype, "TaskRedDots", void 0), i([D({
                type: [cc.Node]
            })], t.prototype, "GiftRedDots", void 0), i([D(cc.Sprite)], t.prototype, "BannerImage", void 0), i([M], t)
        }(h.BaseUIPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "./CarnivalGiftListItem": "CarnivalGiftListItem",
        "./CarnivalTaskListItem": "CarnivalTaskListItem",
        "./NodePool": "NodePool"
    }],
    CarnivalSkinPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ec0d4G20z1NuI3tmoOwuYc1", "CarnivalSkinPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("./BarRewardsComponent"),
            p = e("../../Components/DataCenter"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Components/RpcComponent"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/LevelComponent"),
            g = e("../Components/ItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Components/ConfigData/ConfigDataComponent"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../../../ShareConsts/EnumType"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Background = null, t.TextSprite = null, t.HeroDetailBtn = null, t.HeroDetailLabel = null, t.GetHeroBtn = null, t.GetHeroLabel = null, t.Bar = null, t.RewardsContainer = null, t.LeftTimeRichText = null, t.TaskDetialLabel = null, t.BarHeadNode = null, t._activityConfig = null, t._BarProgress = 0, t._bottomLabelList = [], t._itemPrefab = null, t._bottomTextPrefab = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.GetHeroBtn.node.on("click", this.GoToGetHero, this), this.HeroDetailBtn.node.on("click", this.HeroDetail, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CarnivalSkinPanel/CarnivalSkinBottomText", cc.Prefab), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._itemPrefab = o[0], this._bottomTextPrefab = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetHeroLabel.string = "CarnivalSkin_GetHero".ToUILocale(), this.HeroDetailLabel.string = "ChaosSummon_HeroDetail".ToUILocale(), this.TaskDetialLabel.string = "CarnivalSkin_TaskProgress".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = p.DataCenter.Instance.GetActivityConfigsByActId(this._activityId)
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = this._activityConfig.Common.Pictures, t = d.default.LoadActivityTexture(e[0]), n = d.default.LoadActivityTexture(e[1]), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._loadAssets.push(o[0]), this._loadAssets.push(o[1]), this.Background.spriteFrame = o[0], this.TextSprite.spriteFrame = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.RefreshProgress(), t ? (this.Bar.RefreshBar(this._BarProgress), this.RefreshBottomLabel()) : (this.RefreshLeftTime(), this.schedule(this.RefreshLeftTime, 1), this.InitProgressBar())
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t), this.unschedule(this.RefreshLeftTime)
                }, t.prototype.InitProgressBar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = this._activityConfig._Tasks, t = e.map(function(e) {
                                        return {
                                            Id: e.Id,
                                            Progress: e.Condition[2],
                                            Rewards: e.Rewards
                                        }
                                    }), [4, this.Bar.Init({
                                        rewards: t,
                                        type: 1,
                                        interval: 164,
                                        maxWidth: 860,
                                        progress: this._BarProgress - 4,
                                        totalProgress: e[e.length - 1].Condition[2] - 4,
                                        isReceivedContral: function(e) {
                                            var t = p.DataCenter.Instance.GetDataById(c.UserTask_Model, e + 1e4 * o._activityId);
                                            return !!t && t.IsCompleted
                                        }.bind(this),
                                        callBack: this.OnReceiveOnBar.bind(this)
                                    })];
                                case 1:
                                    return r.sent(), e.forEach(function(e, t) {
                                        var n = o.GetBottomLabelContent(e);
                                        o.Bar.RewardContainer.children[t].addChild(o.CreateBottomText(e.Condition[1].ToHeroName(), e.Condition[2], n.tip, n.color))
                                    }), this.Bar.HiddenAllBottomText(), this._barHeadItemComponent || ((n = cc.instantiate(this._itemPrefab)).scaleX = .6, n.scaleY = .6, n.pauseSystemEvents(!0), this._barHeadItemComponent = n.getComponent(g.ItemComponent), this._barHeadItemComponent.Init({
                                        ItemId: this._activityConfig._Tasks[0].Condition[1]
                                    }, g.ItemComponentType.HeroInfo), this.BarHeadNode.addChild(n), p.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._activityConfig._Tasks[0].Condition[1]) || m.UIUtlity.OnNodeGray(this.BarHeadNode)), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshLeftTime = function() {
                    var e = d.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - h.RpcComponent.Instance.ServerTime;
                    e > 0 && (this.LeftTimeRichText.string = "HeroRisingStarPackagePanel_DeadlineTimeRichText".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(e)))
                }, t.prototype.OnReceiveOnBar = function() {
                    var e = this,
                        t = [];
                    if (this._activityConfig._Tasks.forEach(function(n) {
                            var o = p.DataCenter.Instance.GetDataById(c.UserTask_Model, n.Id + 1e4 * e._activityId),
                                r = null == o || null == o.Progress ? 0 : o.Progress;
                            o && !o.IsCompleted && r >= n.TotalCount && t.push(n.Id)
                        }), 0 != t.length) {
                        var n = new c.Req_Activity_CommonTaskReward;
                        n.ActivityId = this._activityId, n.TaskIds = t, h.RpcComponent.Instance.Call(n, function(e) {
                            m.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.CreateBottomText = function(e, t, n, o) {
                    var r = cc.instantiate(this._bottomTextPrefab);
                    r.children[0].getComponent(cc.Label).string = e, r.children[1].getComponent(y.LevelComponent).Init(t);
                    var i = r.children[2],
                        a = i.getComponent(cc.Label);
                    return a.string = n, this._bottomLabelList.push(a), i.color = o, r.y = -55, r
                }, t.prototype.GoToGetHero = function() {
                    if (this._activityConfig.Common.JumpId) {
                        this.DelayClose();
                        var e = I.ConfigDataComponent.Instance.GetConfigById(_.ItemGetWay_Config, this._activityConfig.Common.JumpId),
                            t = d.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(C.ActivityType.Carnival, e.PanelInfo[1]);
                        l.UIManager.Instance.ShowUIPanel(f.PanelConfig.SevenDayCelebrationPanel.Path, t)
                    }
                }, t.prototype.HeroDetail = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroHandbookPanel.Path, this._activityConfig._Tasks[0].Condition[1])
                }, t.prototype.RefreshProgress = function() {
                    for (var e = 0; e < this._activityConfig._Tasks.length; e++) {
                        var t = this._activityConfig._Tasks[e],
                            n = p.DataCenter.Instance.GetDataById(c.UserTask_Model, t.Id + 1e4 * this._activityId);
                        if (!n || !n.Progress) break;
                        this._BarProgress = t.Condition[2]
                    }
                }, t.prototype.RefreshBottomLabel = function() {
                    var e = this;
                    this._activityConfig._Tasks.forEach(function(t, n) {
                        var o = e.GetBottomLabelContent(t);
                        e._bottomLabelList[n].string = o.tip, e._bottomLabelList[n].node.color = o.color
                    })
                }, t.prototype.GetBottomLabelContent = function(e) {
                    var t = p.DataCenter.Instance.GetDataById(c.UserTask_Model, e.Id + 1e4 * this._activityId),
                        n = "AccumulateRecharge_VIPPointTag".ToUILocale(),
                        o = new cc.Color(255, 255, 255);
                    return 1 == t.IsCompleted ? (n = "already_receive".ToUILocale(), o = new cc.Color(254, 217, 74)) : t.Progress >= e.TotalCount && (n = "climbTower_canGet".ToUILocale(), o = new cc.Color(0, 255, 0)), {
                        tip: n,
                        color: o
                    }
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([S(cc.Sprite)], t.prototype, "Background", void 0), i([S(cc.Sprite)], t.prototype, "TextSprite", void 0), i([S(cc.Button)], t.prototype, "HeroDetailBtn", void 0), i([S(cc.Label)], t.prototype, "HeroDetailLabel", void 0), i([S(cc.Button)], t.prototype, "GetHeroBtn", void 0), i([S(cc.Label)], t.prototype, "GetHeroLabel", void 0), i([S(u.default)], t.prototype, "Bar", void 0), i([S(cc.Node)], t.prototype, "RewardsContainer", void 0), i([S(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([S(cc.Label)], t.prototype, "TaskDetialLabel", void 0), i([S(cc.Node)], t.prototype, "BarHeadNode", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "./BarRewardsComponent": "BarRewardsComponent"
    }],
    CarnivalTaskListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0eb7ew/2ptP+qltSXNZ3Pyi", "CarnivalTaskListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Components/Components"),
            p = e("../Components/ItemComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.PurchaseLimit = null, t.ItemContainer = null, t.Mask = null, t.BlueButton = null, t.BlueButtonLabel = null, t.OrangeButton = null, t.OrangeButtonLabel = null, t.GrayButton = null, t.GrayButtonLabel = null, t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.BlueButton.node.on("click", this.OnBlueButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.OrangeButton.node.off("click", this.OnOrangeButtonClick, this), this.BlueButton.node.off("click", this.OnBlueButtonClick, this)
                }, t.prototype.OnOrangeButtonClick = function() {
                    s.Game.EventDispatcher.Emit(c.EventKeys.EVENT_MALL_BUTTONCLICK, this._index)
                }, t.prototype.OnBlueButtonClick = function() {
                    l.default.ShowPanelByGetWayId(this._getWayId)
                }, t.prototype.SetTitle = function(e, t, n) {
                    return this.Title.string = e, this._getWayId = t, this._index = n, this
                }, t.prototype.SetPurchaseLimit = function(e, t, n) {
                    this.PurchaseLimit.node.color = e < t ? cc.Color.WHITE : cc.Color.GREEN, this.PurchaseLimit.string = (e < t ? e : t) + "/" + t, this.Mask.active = n, this.OrangeButton.node.active = !n && e >= t, this.OrangeButtonLabel.string = "receive".ToUILocale(), this.BlueButton.node.active = !this.Mask.active && !this.OrangeButton.node.active && null != this._getWayId && this._getWayId > 0, this.BlueButtonLabel.string = "task_goto".ToUILocale(), this.OrangeButton.node.active || this.BlueButton.node.active || n ? this.GrayButton.node.active = !1 : (this.GrayButton.node.active = !0, this.GrayButtonLabel.string = "receive".ToUILocale())
                }, t.prototype.SetItems = function(e, t) {
                    if (this._items.length > e.length) {
                        for (var n = 0; n < e.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = e.length; n < this._items.length; n++) this._items[n].node.active = !1, t.Put(this._items[n].node);
                        this._items.length = e.length
                    } else {
                        for (n = 0; n < this._items.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = this._items.length; n < e.length; n++) {
                            var o = t.Get();
                            o.active = !0, o.setParent(this.ItemContainer), this._items[n] = o.getComponent(p.ItemComponent), this.SetItem(n, e[n].Items)
                        }
                    }
                    return this
                }, t.prototype.SetItem = function(e, t) {
                    var n = u.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, t[0]);
                    this._items[e].Init({
                        ItemId: t[0],
                        Count: t[1]
                    }, n.Star ? p.ItemComponentType.ItemWithStar : p.ItemComponentType.ItemCommon)
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Label)], t.prototype, "PurchaseLimit", void 0), i([f(cc.Node)], t.prototype, "ItemContainer", void 0), i([f(cc.Node)], t.prototype, "Mask", void 0), i([f(cc.Button)], t.prototype, "BlueButton", void 0), i([f(cc.Label)], t.prototype, "BlueButtonLabel", void 0), i([f(cc.Button)], t.prototype, "OrangeButton", void 0), i([f(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([f(cc.Button)], t.prototype, "GrayButton", void 0), i([f(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CashMallCouponSelectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9d90eDPimJH+a1yK48XaNq5", "CashMallCouponSelectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./ItemComponent"),
            f = e("../../Channel/ChannelManager"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.ItemName = null, t.Time = null, t.ReduceLabel = null, t.PriceTag = null, t.Price = null, t.Toggle = null, t.MaskNode = null, t._loadAssets = [], t._endTime = 0, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Toggle.node.on("toggle", this.OnToggleClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._itemPrefab = e, this._data = t, this._index = n, this.SetDiscountItemNode(), this.SetInfo(), this.SetTime()
                }, t.prototype.SetIsCheck = function(e) {
                    this.Toggle.isChecked = e
                }, t.prototype.SetDiscountItemNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._loadAssets.push(e), n.label = 2;
                                case 2:
                                    return this._itemComponent || ((t = cc.instantiate(this._itemPrefab)).parent = this.ItemNode, t.y = -20, this._itemComponent = t.getComponent(h.ItemComponent)), this._itemComponent.Init({
                                        ItemId: this._data.Config.Id
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.GetReduceDesc = function() {
                    var e = this,
                        t = "";
                    return this._data.Config.Condition.length > 0 && (this._data.Config.Condition.forEach(function(n, o) {
                        switch (n.Items[0]) {
                            case p.TicketConditionType.SumCount:
                                var r = f.default.Instance.ExchangeMoney(n.Items[1]),
                                    i = f.default.Instance.ExchangeMoney(n.Items[2]);
                                n.Items[1] == n.Items[2] ? t += "cashMall_price_limit_desc1".ToUILocale().Fmt(r) : n.Items[2] > 0 ? t += "cashMall_price_limit_desc2".ToUILocale().Fmt(r, i) : t += "cashMall_price_limit_desc3".ToUILocale().Fmt(r);
                                break;
                            case p.TicketConditionType.Vip:
                                t += "cashMall_vip_limit_desc".ToUILocale().Fmt(n.Items[1])
                        }
                        o < e._data.Config.Condition.length - 1 && (t += "\u3001")
                    }), t += "cashMall_use".ToUILocale()), t
                }, t.prototype.SetInfo = function() {
                    this.ItemName.string = this._data.Config.Id.ToItemName(), this.ReduceLabel.string = this.GetReduceDesc(), this.PriceTag.node.active = this._data.Config.SubType == p.TicketSubType.Reduce, this._data.Config.SubType == p.TicketSubType.Reduce ? (this.PriceTag.string = f.default.Instance.CurrencySymbol, this.Price.string = f.default.Instance.ExchangeMoney(this._data.CouponPrice).toString()) : this._data.Config.SubType == p.TicketSubType.Discount && (this.Price.string = "cashMall_discount".ToUILocale().Fmt(this._data.Config.Param[0] / 100)), this.MaskNode.active = !this._data.CanUse
                }, t.prototype.SetTime = function() {
                    this.unschedule(this.CountDownTime);
                    var e = c.DataCenter.Instance.GetDataById(u.CurrencyDiscountTicket_Model, this._data.Sid);
                    e.IsPerpetual ? this.Time.string = "heroSkin_forever".ToUILocale() : c.RpcComponent.Instance.ServerTime >= e.Time ? this.RefreshList() : (this._endTime = e.Time, this.Time.string = "cashMall_time_out".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(this._endTime - c.RpcComponent.Instance.ServerTime)), this.schedule(this.CountDownTime, 1))
                }, t.prototype.CountDownTime = function() {
                    var e = this._endTime - c.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this.unschedule(this.CountDownTime), void this.RefreshList();
                    this.Time.string = "cashMall_time_out".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(e))
                }, t.prototype.RefreshList = function() {
                    l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_CASHMALL_REFRESH_COUPON_TIME, this._data.Sid)
                }, t.prototype.OnToggleClick = function() {
                    l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_CASHMALL_SELECT_COUPON, this._index)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([_(cc.Node)], t.prototype, "ItemNode", void 0), i([_(cc.Label)], t.prototype, "ItemName", void 0), i([_(cc.Label)], t.prototype, "Time", void 0), i([_(cc.Label)], t.prototype, "ReduceLabel", void 0), i([_(cc.Label)], t.prototype, "PriceTag", void 0), i([_(cc.Label)], t.prototype, "Price", void 0), i([_(cc.Toggle)], t.prototype, "Toggle", void 0), i([_(cc.Node)], t.prototype, "MaskNode", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "./ItemComponent": "ItemComponent"
    }],
    CashMallCouponSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e7fe1NphfNEnof1WmHd9qNX", "CashMallCouponSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("./CashMallShopCartPanel"),
            d = e("../Components/CustomLayout"),
            h = e("../Components/CashMallCouponSelectComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../../ShareConsts/EnumType"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Desc = null, t.CustomLayout = null, t.SureButton = null, t.SureButtonLabel = null, t._initLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(u.EventKeys.EVENT_CASHMALL_REFRESH_COUPON_TIME, this.RefreshDiscountList, this), l.Game.EventDispatcher.On(u.EventKeys.EVENT_CASHMALL_SELECT_COUPON, this.RefreshSelectCoupon, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CASHMALL_REFRESH_COUPON_TIME, this.RefreshDiscountList, this), l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CASHMALL_SELECT_COUPON, this.RefreshSelectCoupon, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CashMallPanel/Components/CashMallCouponSelectComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._couponPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "cashMall_coupon_select".ToUILocale(), this.Desc.string = "cashMall_need_one_coupon".ToUILocale(), this.SureButtonLabel.string = "Answer_QuitYes".ToUILocale(), this.SureButton.node.on("click", this.OnSureButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this), this._couponSid = t[0], this._datas = t[1], this._price = t[2], this._selectIndex = this._datas.findIndex(function(e) {
                        return e.Sid == n._couponSid
                    }), p.default.CashMallVipExpireRefresh(this.RefreshVip.bind(this))
                }, t.prototype.RefreshVip = function(e) {
                    this.scheduleOnce(this.ClosePanel, e)
                }, t.prototype.ClosePanel = function() {
                    f.UIUtlity.ShowFloatingHint("cashMall_vip_time_out".ToUILocale()), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetDiscountList()
                }, t.prototype.SetDiscountList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._couponPrefab), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._datas.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.name = t.toString();
                        var o = e.getComponent(h.default);
                        o.Init(n._itemPrefab, n._datas[t], t), o.SetIsCheck(n._selectIndex == t)
                    })
                }, t.prototype.RefreshDiscountList = function(e) {
                    if (this._datas[this._selectIndex] && this._datas[this._selectIndex].Sid == e) this._datas = y.default.GetShowCouponDatas(this._price, g.GameModuleType.CashMall), this._selectIndex = this._datas.length > 0 && this._datas[0].CanUse ? 0 : -1;
                    else if (this._selectIndex >= 0) {
                        var t = this._datas[this._selectIndex].Sid;
                        this._datas = y.default.GetShowCouponDatas(this._price, g.GameModuleType.CashMall), this._selectIndex = this._datas.findIndex(function(e) {
                            return e.Sid == t
                        })
                    } else this._datas = y.default.GetShowCouponDatas(this._price, g.GameModuleType.CashMall);
                    this._datas.length > 0 ? this.CustomLayout.RenderLayOut(this._datas.length) : (f.UIUtlity.ShowFloatingHint("cashMall_no_coupon".ToUILocale()), l.UIManager.Instance.BackUIPanel())
                }, t.prototype.RefreshSelectCoupon = function(e) {
                    var t = this;
                    this._selectIndex == e ? (this._selectIndex = -1 == this._selectIndex ? e : -1, this.CustomLayout.node.children.find(function(t) {
                        return t.name == e.toString()
                    }).getComponent(h.default).SetIsCheck(this._selectIndex == e)) : (this.CustomLayout.node.children.forEach(function(n) {
                        n.name == t._selectIndex.toString() && n.getComponent(h.default).SetIsCheck(!1), n.name == e.toString() && n.getComponent(h.default).SetIsCheck(!0)
                    }), this._selectIndex = e)
                }, t.prototype.OnSureButtonClick = function() {
                    this._datas[this._selectIndex] ? l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CASHMALL_REFRESH_COUPON, this._datas[this._selectIndex].Sid) : l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CASHMALL_REFRESH_COUPON, 0), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "Desc", void 0), i([_(d.default)], t.prototype, "CustomLayout", void 0), i([_(cc.Button)], t.prototype, "SureButton", void 0), i([_(cc.Label)], t.prototype, "SureButtonLabel", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CashMallCouponSelectComponent": "CashMallCouponSelectComponent",
        "../Components/CustomLayout": "CustomLayout",
        "./CashMallShopCartPanel": "CashMallShopCartPanel"
    }],
    CashMallDiscountComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a1200fVj1ZMULxC2MZFOwzU", "CashMallDiscountComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../Consts/Consts"),
            u = e("../../Channel/ChannelManager"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BgNode = null, t.DiscountRichText = null, t.SubtractLabel = null, t.GreenButton = null, t.GreenButtonLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.GreenButtonLabel.string = "LuckyCharm_SelecteSkill".ToUILocale(), this.GreenButton.node.on("click", this.OnGreenButtonClick, this)
                }, t.prototype.Init = function(e, t) {
                    if (this._data = e, this._price = t, e) {
                        this.SubtractLabel.node.active = !0, this.DiscountRichText.string = "cashMall_select_coupon".ToUILocale().Fmt(e.Config.Id.ToItemName());
                        var n = "";
                        e.Config.SubType == c.TicketSubType.Change || e.Config.SubType == c.TicketSubType.Reduce ? n = "-" + u.default.Instance.CurrencySymbol + " " + u.default.Instance.ExchangeMoney(e.CouponPrice) : e.Config.SubType == c.TicketSubType.Discount && (n = "cashMall_discount".ToUILocale().Fmt(e.Config.Param[0] / 100)), this.SubtractLabel.string = n;
                        var o = s.DataCenter.Instance.GetDataById(l.CurrencyDiscountTicket_Model, this._data.Sid);
                        if (this.unschedule(this.RefreshDiscountData), !o.IsPerpetual && s.RpcComponent.Instance.ServerTime < o.Time) {
                            var r = (o.Time - s.RpcComponent.Instance.ServerTime) / c.Etc.SecondDuration;
                            this.scheduleOnce(this.RefreshDiscountData, r)
                        }
                    } else this.SubtractLabel.node.active = !1, this.DiscountRichText.string = "cashMall_select_coupon_empty".ToUILocale(), this.unschedule(this.RefreshDiscountData)
                }, t.prototype.RefreshDiscountData = function() {
                    a.Game.EventDispatcher.Emit(h.EventKeys.EVENT_CASHMALL_REFRESH_COUPON, -1)
                }, t.prototype.OnGreenButtonClick = function() {
                    if (0 != this._price) {
                        var e = f.default.GetShowCouponDatas(this._price, c.GameModuleType.CashMall),
                            t = this._data && this._data.Sid ? this._data.Sid : 0;
                        e.length > 0 ? a.UIManager.Instance.ShowUIPanel(d.PanelConfig.CashMallCouponSelectPanel.Path, t, e, this._price) : p.UIUtlity.ShowFloatingHint("cashMall_cant_use".ToUILocale())
                    } else p.UIUtlity.ShowFloatingHint("cashMall_not_need_coupon".ToUILocale())
                }, i([m(cc.Node)], t.prototype, "BgNode", void 0), i([m(cc.RichText)], t.prototype, "DiscountRichText", void 0), i([m(cc.Label)], t.prototype, "SubtractLabel", void 0), i([m(cc.Button)], t.prototype, "GreenButton", void 0), i([m(cc.Label)], t.prototype, "GreenButtonLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CashMallItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "08c0epwnHpFZqPQ7SWl4rTk", "CashMallItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("./ItemComponent"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Channel/ChannelManager"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("./CashMallTagComponent"),
            C = e("../Panel/CashMallShopCartPanel"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.ItemName = null, t.LimitCount = null, t.TagLayoutNode = null, t.OldPriceNode = null, t.OldPrice = null, t.NewPriceNode = null, t.NewPriceTag = null, t.NewPrice = null, t.SendConten = null, t.SendLabel = null, t.SelectNode = null, t.ReduceButton = null, t.AddButton = null, t.SelectCountNode = null, t.SelectCount = null, t.SellOutNode = null, t.MaskNode = null, t._tagComponents = [], t._loadAssets = [], t.color_green = new cc.Color(0, 225, 0), t.color_white = new cc.Color(255, 255, 255), t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_CASHMALL_SCROLLVIEW, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_CASHMALL_SCROLLVIEW, this.CheckVisible, this)
                }, Object.defineProperty(t.prototype, "PackId", {
                    get: function() {
                        return this._packId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onLoad = function() {
                    this.SendLabel.string = "puzzle_send".ToUILocale(), this.ReduceButton.node.on("click", this.OnReduceButtonClick, this), this.AddButton.node.on("click", this.OnAddButtonClick, this)
                }, t.prototype.Init = function(e, t) {
                    this._giftPackData = e, this._cashMallSpriteAtlas = t, this._modelData = c.DataCenter.Instance.GetDataById(p.ShoppingCart_Model, d.GameModuleType.CashMall), this._giftPackData.ActivityId > 0 ? this._packId = this._giftPackData.ActivityId * d.Etc.ActivityPrefixRatio + this._giftPackData.PackConfig.Id : this._packId = this._giftPackData.PackConfig.Id, this.SetItemNode(), this.SetItemInfo(), this.SetTagContent(), this.SetSelectNode()
                }, t.prototype.SetItemNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._loadAssets.push(e), n.label = 2;
                                case 2:
                                    return this._itemComponent || ((t = cc.instantiate(this._itemPrefab)).parent = this.ItemNode, t.y = -20, this._itemComponent = t.getComponent(h.ItemComponent)), this._itemComponent.Init({
                                        ItemId: this._giftPackData.PackConfig.Items[0].Items[0],
                                        Count: this._giftPackData.PackConfig.Items[0].Items[1]
                                    }), this._itemComponent.SetDiscountValue(this._giftPackData.PackConfig.Discount > 0, "-" + this._giftPackData.PackConfig.Discount + "%"), [2]
                            }
                        })
                    })
                }, t.prototype.SetItemInfo = function() {
                    var e;
                    if (this._giftPackData.ActivityId > 0) {
                        e = this._giftPackData.PackConfig.Name;
                        var t = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._giftPackData.ActivityId);
                        this._buyCount = t && t.Packs[this._giftPackData.PackConfig.Id] && t.Packs[this._giftPackData.PackConfig.Id].Items[0] ? t.Packs[this._giftPackData.PackConfig.Id].Items[0] : 0
                    } else e = this._giftPackData.PackConfig.Id.ToGiftPackName(), this._buyCount = y.default.Instance.GetGiftBuyCount(this._giftPackData.PackConfig.Id);
                    if (this.ItemName.string = e, this.LimitCount.node.active = this._giftPackData.PackConfig.LimitType > 0, this._giftPackData.PackConfig.LimitType > 0) {
                        var n = this._giftPackData.PackConfig.LimitCount - this._buyCount > 0 ? this._giftPackData.PackConfig.LimitCount - this._buyCount : 0;
                        this.LimitCount.string = ("giftpack_limitType" + this._giftPackData.PackConfig.LimitType).ToUILocale().Fmt(n, this._giftPackData.PackConfig.LimitCount)
                    }
                    this.SendConten.active = !1, this.OldPriceNode.active = this._giftPackData.PackConfig.VipMoney > 0;
                    var o = y.default.GetSubscribePrivilegeIsActive(d.SubscribePrivilegeType.VipMoney);
                    if (this._giftPackData.PackConfig.VipMoney > 0) {
                        var r = o ? this._giftPackData.PackConfig.Money : this._giftPackData.PackConfig.VipMoney,
                            i = o ? this.color_white : this.color_green,
                            a = o ? "firstCharge_originalPrice".ToUILocale() : "cashMall_vipMoney".ToUILocale();
                        this.OldPrice.string = a + " " + g.default.Instance.CurrencySymbol + g.default.Instance.ExchangeMoney(r), this.OldPrice.node.color = i
                    }
                    this.NewPriceTag.node.active = this._giftPackData.PackConfig.Money > 0, this.NewPrice.node.color = this.color_white, this._giftPackData.PackConfig.Money > 0 ? (this.NewPriceTag.string = g.default.Instance.CurrencySymbol, o && this._giftPackData.PackConfig.VipMoney > 0 ? (this.NewPrice.node.color = this.color_green, this.NewPrice.string = g.default.Instance.ExchangeMoney(this._giftPackData.PackConfig.VipMoney).toString()) : this.NewPrice.string = g.default.Instance.ExchangeMoney(this._giftPackData.PackConfig.Money).toString()) : this.NewPrice.string = "shop_buyFree".ToUILocale()
                }, t.prototype.SetTagContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._tagPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("CashMallPanel/Components/CashMallTagComponent", cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._tagPrefab = e, this._loadAssets.push(e), n.label = 2;
                                case 2:
                                    return this._tagComponents.forEach(function(e) {
                                        e.node.active = !1
                                    }), (this._giftPackData.ActivityId > 0 ? this._giftPackData.Sign : this._giftPackData.PackConfig.Sign).forEach(function(e, n) {
                                        if (!t._tagComponents[n]) {
                                            var o = cc.instantiate(t._tagPrefab);
                                            o.parent = t.TagLayoutNode, t._tagComponents[n] = o.getComponent(_.default)
                                        }
                                        t._tagComponents[n].node.active = !0, t._tagComponents[n].Init(e, t._cashMallSpriteAtlas)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.GetShopCartPackCount = function(e) {
                    return this._modelData && this._modelData.PackMap && this._modelData.PackMap[e] && this._modelData.PackMap[e].Items[0] ? this._modelData.PackMap[e].Items[0] : 0
                }, t.prototype.SetSelectNode = function() {
                    if (this._modelData = c.DataCenter.Instance.GetDataById(p.ShoppingCart_Model, d.GameModuleType.CashMall), this.SelectNode.active = 0 == this._giftPackData.PackConfig.LimitType || this._buyCount < this._giftPackData.PackConfig.LimitCount, this.SellOutNode.active = this._giftPackData.PackConfig.LimitType > 0 && this._buyCount >= this._giftPackData.PackConfig.LimitCount, this.MaskNode.active = this._giftPackData.PackConfig.LimitType > 0 && this._buyCount >= this._giftPackData.PackConfig.LimitCount, 0 == this._giftPackData.PackConfig.LimitType || this._buyCount < this._giftPackData.PackConfig.LimitCount) {
                        var e = this.GetShopCartPackCount(this._packId);
                        this.ReduceButton.node.active = e > 0, this.SelectCountNode.active = e > 0, e > 0 && (this.SelectCount.string = e.toString())
                    }
                }, t.prototype.OnReduceButtonClick = function() {
                    if (this.GetShopCartPackCount(this._packId) > 0) {
                        var e = new p.IntArray;
                        e.Items = [this._packId, this.GetShopCartPackCount(this._packId) - 1], this.RequestItemCount(e)
                    }
                }, t.prototype.OnAddButtonClick = function() {
                    if (0 == this._giftPackData.PackConfig.LimitType || this.GetShopCartPackCount(this._packId) + this._buyCount < this._giftPackData.PackConfig.LimitCount) {
                        var e = new p.IntArray;
                        e.Items = [this._packId, this.GetShopCartPackCount(this._packId) + 1];
                        var t = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("PayPacksMaxMoney");
                        if (t > 0 && n.GetOldPrice(e) >= g.default.Instance.ExchangeMoney(t)) return void m.UIUtlity.ShowFloatingHint("cashMall_pay_limit".ToUILocale());
                        this.RequestItemCount(e)
                    } else this.GetShopCartPackCount(this._packId) + this._buyCount >= this._giftPackData.PackConfig.LimitCount && m.UIUtlity.ShowFloatingHint("cashMall_count_max".ToUILocale())
                }, t.prototype.RequestItemCount = function(e) {
                    var t = this,
                        n = new p.Req_Mall_ChangeShoppingCart;
                    n.Id = d.GameModuleType.CashMall, n.Contents = [e], c.RpcComponent.Instance.Call(n, function() {
                        t.SetSelectNode(), l.Game.EventDispatcher.Emit(I.EventKeys.EVENT_CASHMALL_REFRESH_REDCOUNT, e.Items[0])
                    })
                }, t.GetOldPrice = function(e) {
                    var t = 0,
                        n = c.DataCenter.Instance.GetTempData("CashMallPackConfigs"),
                        o = c.DataCenter.Instance.GetDataById(p.ShoppingCart_Model, d.GameModuleType.CashMall),
                        r = c.ConfigDataComponent.Instance.GetConfigById(u.CurrencySymbol_Config, g.default.Instance.Localization_Currency).ToFixed;
                    if (o && o.PackMap) {
                        for (var i in o.PackMap)
                            if (o.PackMap[i] || e.Items[0]) {
                                var a;
                                if (a = e.Items[0] == Number(i) ? e.Items[1] : o.PackMap[i].Items[0], (l = n[Number(i)].Config) && l.Money > 0) {
                                    var s = C.default.AccMul(g.default.Instance.ExchangeMoney(l.Money), a);
                                    t = C.default.AccAdd(t, s)
                                }
                            } var l;
                        o.PackMap[e.Items[0]] || (l = n[e.Items[0]].Config) && l.Money > 0 && (s = C.default.AccMul(g.default.Instance.ExchangeMoney(l.Money), e.Items[1]), t = C.default.AccAdd(t, s))
                    }
                    return Math.round(t * Math.pow(10, r)) / Math.pow(10, r)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && m.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.CheckVisible = function(e) {
                    if (this.node && this.node.active) {
                        var t = this.node.getBoundingBoxToWorld().intersects(e);
                        this.node.opacity = t ? 255 : 0
                    }
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([S(cc.Node)], t.prototype, "ItemNode", void 0), i([S(cc.Label)], t.prototype, "ItemName", void 0), i([S(cc.RichText)], t.prototype, "LimitCount", void 0), i([S(cc.Node)], t.prototype, "TagLayoutNode", void 0), i([S(cc.Node)], t.prototype, "OldPriceNode", void 0), i([S(cc.Label)], t.prototype, "OldPrice", void 0), i([S(cc.Node)], t.prototype, "NewPriceNode", void 0), i([S(cc.Label)], t.prototype, "NewPriceTag", void 0), i([S(cc.Label)], t.prototype, "NewPrice", void 0), i([S(cc.Node)], t.prototype, "SendConten", void 0), i([S(cc.Label)], t.prototype, "SendLabel", void 0), i([S(cc.Node)], t.prototype, "SelectNode", void 0), i([S(cc.Button)], t.prototype, "ReduceButton", void 0), i([S(cc.Button)], t.prototype, "AddButton", void 0), i([S(cc.Node)], t.prototype, "SelectCountNode", void 0), i([S(cc.Label)], t.prototype, "SelectCount", void 0), i([S(cc.Node)], t.prototype, "SellOutNode", void 0), i([S(cc.Node)], t.prototype, "MaskNode", void 0), n = i([b], t)
            }(cc.Component);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/CashMallShopCartPanel": "CashMallShopCartPanel",
        "./CashMallTagComponent": "CashMallTagComponent",
        "./ItemComponent": "ItemComponent"
    }],
    CashMallPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bac6aTaEMtCUZRrcMvDR34c", "CashMallPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Components/CashMallToggleComponent"),
            g = e("../Components/CashMallShopItemComponent"),
            m = e("../../Channel/ChannelManager"),
            I = e("../Components/RedCountComponent"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("./CashMallShopCartPanel"),
            b = e("./MallPrivilegeMainPanel"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.Banner = null, t.BannerTitle = null, t.LeftButton = null, t.RightButton = null, t.LeftScrollView = null, t.RightScrollView = null, t.ReturnButton = null, t.BuyVipButton = null, t.BuyVipLabel = null, t.VipRichText = null, t.OldPriceNode = null, t.OldPriceLabel = null, t.NewPriceNode = null, t.NewPriceDescLabel = null, t.NewPriceTagLabel = null, t.NewPriceLabel = null, t.ShopCartButton = null, t.ShopCartLabel = null, t.DiscountContent = null, t.ActivityTimeNode = null, t.ActivityTimeRichText = null, t._pageComponents = [], t._selectToggle = 0, t._rightShopItemNodes = [], t._moveRightPageId = -1, t._isInitRightScrollView = !1, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(C.EventKeys.EVENT_CASHMALL_REFRESH_REDCOUNT, this.OnRefreshRedCount, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(C.EventKeys.EVENT_CASHMALL_REFRESH_REDCOUNT, this.OnRefreshRedCount, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CashMallPanel/Components/CashMallToggleComponent", cc.Prefab), n = this.LoadDynamicAsset("CashMallPanel/Components/CashMallShopItemComponent", cc.Prefab), o = this.LoadDynamicAsset("CashMallPanel/Components/CashMallItemComponent", cc.Prefab), r = this.LoadDynamicAsset("CashMallPanel/PNG/CashMall", cc.SpriteAtlas), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._leftItemPrefab = e[0], i._rightShopItemPrefab = e[1], i._rightItemPrefab = e[2], i._cashMallSpriteAtlas = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "cashMall_title".ToUILocale(), this.BuyVipLabel.string = "cashMall_get_vip".ToUILocale(), this.NewPriceDescLabel.string = "cashMall_total_price".ToUILocale(), this.ShopCartLabel.string = "cashMall_item_list".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.LeftButton.node.on("click", this.OnLeftButtonClick, this), this.RightButton.node.on("click", this.OnRightButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.BuyVipButton.node.on("click", this.OnBuyVipButtonClick, this), this.ShopCartButton.node.on("click", this.OnShopCartButtonClick, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this.SetMallData()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r, i, a, u = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this._activityConfig && this._activityConfig.Common.Pictures ? (t = this._activityConfig.Common.Pictures)[0] ? [4, f.default.LoadActivityTexture(t[0])] : [3, 2] : [3, 5];
                                case 1:
                                    if (n = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this.Banner.spriteFrame = n, this._loadAssets.push(n), s.label = 2;
                                case 2:
                                    return t[1] ? [4, f.default.LoadActivityTexture(t[1])] : [3, 4];
                                case 3:
                                    if (o = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this.BannerTitle.spriteFrame = o, this._loadAssets.push(o), s.label = 4;
                                case 4:
                                    return [3, 7];
                                case 5:
                                    return r = this.LoadDynamicAsset("CashMallPanel/PNG/banner", cc.SpriteFrame), i = this.LoadDynamicAsset(c.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/cashMall_discount"), cc.SpriteFrame), [4, Promise.all([r, i]).then(function(e) {
                                        u.Banner.spriteFrame = e[0], u.BannerTitle.spriteFrame = e[1]
                                    })];
                                case 6:
                                    s.sent(), s.label = 7;
                                case 7:
                                    return (a = c.DataCenter.Instance.GetDataById(p.ShoppingCart_Model, d.GameModuleType.CashMall)) && a.PackMap ? [2, new Promise(function(e) {
                                        var t = new p.Req_Mall_ChangeShoppingCart;
                                        t.Id = d.GameModuleType.CashMall, t.Contents = [], c.RpcComponent.Instance.Call(t, function() {
                                            e()
                                        })
                                    })] : [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetActivityTimeNode(), this.SetLeftRightButtons(), this.SetLeftContent(), this.SetRightContent(), this.SetVipNode(), this.SetPriceNode()
                }, t.prototype.SetMallData = function() {
                    var e = this;
                    if (!this._mallData) {
                        this._mallData = {}, this._giftIdToPageIds = {}, this._packIdToPackConfig = {}, this._cashMallpackIdToActPack = {}, this.SetActivityPacksData();
                        var t = c.ConfigDataComponent.Instance.GetArrayConfig(u.CashMallPage_Config);
                        this._sortConfigs = t.concat(), this._sortConfigs.sort(function(e, t) {
                            return t.SortId - e.SortId
                        }), this._sortConfigs.forEach(function(t) {
                            var n, o = [];
                            if (t.PackIds.forEach(function(n) {
                                    var r = c.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, n),
                                        i = f.default.Instance.CheckLimitTypeIsUnlock(r.Unlock);
                                    if (e._cashMallpackIdToActPack[n]) {
                                        if (i) {
                                            var a = {},
                                                s = e._cashMallpackIdToActPack[n][0];
                                            a.PackConfig = s.ActivityPack, a.Sign = s.SignIds, a.ActivityId = e._activityConfig._id, s.PageIds.forEach(function(t) {
                                                if (e._mallData[t]) - 1 == e._mallData[t].GiftPackDatas.findIndex(function(e) {
                                                    return e.PackConfig.Id == a.PackConfig.Id && e.ActivityId == a.ActivityId
                                                }) && e._mallData[t].GiftPackDatas.unshift(a);
                                                else {
                                                    var n = c.ConfigDataComponent.Instance.GetConfigById(u.CashMallPage_Config, t),
                                                        o = {};
                                                    o.PageConfig = n, o.GiftPackDatas = [a], e._mallData[t] = o
                                                }
                                            })
                                        }
                                    } else if (i) {
                                        var l = {};
                                        e._giftIdToPageIds[n] || (e._giftIdToPageIds[n] = []), e._giftIdToPageIds[n].push(t.Id), l.PackConfig = r, o.push(l), e._packIdToPackConfig[n] = {
                                            Config: r,
                                            ActivityId: 0
                                        }
                                    }
                                }), o.length > 0)
                                if (e._mallData[t.Id])
                                    for (var r = 0; r < o.length; r++) e._mallData[t.Id].GiftPackDatas.push(o[r]);
                                else(n = {}).PageConfig = t, n.GiftPackDatas = o, e._mallData[t.Id] = n;
                            else e._mallData[t.Id] || ((n = {}).PageConfig = t, n.GiftPackDatas = [], e._mallData[t.Id] = n)
                        }), this._cashMallpackIdToActPack[0] && this._cashMallpackIdToActPack[0].length > 0 && this._cashMallpackIdToActPack[0].forEach(function(t) {
                            t.PageIds.forEach(function(n) {
                                var o = {};
                                if (o.PackConfig = t.ActivityPack, o.Sign = t.SignIds, o.ActivityId = e._activityConfig._id, e._mallData[n]) e._mallData[n].GiftPackDatas.unshift(o);
                                else {
                                    var r = c.ConfigDataComponent.Instance.GetConfigById(u.CashMallPage_Config, n),
                                        i = {};
                                    i.PageConfig = r, i.GiftPackDatas = [o], e._mallData[n] = i
                                }
                            })
                        }), c.DataCenter.Instance.SetTempData("CashMallPackConfigs", this._packIdToPackConfig)
                    }
                }, t.prototype.SetActivityPacksData = function() {
                    var e = this;
                    for (var t in this._activityConfig = null, c.DataCenter.Instance.ActivityConfigs)
                        if (c.DataCenter.Instance.ActivityConfigs[t].Common.Type == d.ActivityType.CashMallDisCount) {
                            var n = f.default.Instance.ComputeDeadTime(c.DataCenter.Instance.ActivityConfigs[t].Common);
                            if (c.RpcComponent.Instance.ServerTime < n) {
                                this._activityConfig = c.DataCenter.Instance.ActivityConfigs[t];
                                break
                            }
                        } if (this._activityConfig) {
                        var o = {};
                        this._activityConfig._Packs.forEach(function(e) {
                            o[e.Id] = e
                        }), this._activityConfig.__PackExtend.forEach(function(t) {
                            var n = {},
                                r = e._activityConfig._id * d.Etc.ActivityPrefixRatio + t.Id;
                            n.CashMallPackId = t.GiftPackId, n.ActivityPackId = r, n.PageIds = t.Page, n.SignIds = t.Sign, n.ActivityPack = o[t.Id], e._giftIdToPageIds[r] = t.Page, e._cashMallpackIdToActPack[t.GiftPackId] || (e._cashMallpackIdToActPack[t.GiftPackId] = []), e._cashMallpackIdToActPack[t.GiftPackId].push(n), e._packIdToPackConfig[r] = {
                                Config: o[t.Id],
                                ActivityId: e._activityConfig._id
                            }
                        })
                    }
                }, t.prototype.GetShowPageConfigs = function() {
                    var e = this,
                        t = [];
                    return this._sortConfigs.forEach(function(n) {
                        f.default.Instance.CheckLimitTypeIsUnlock(n.UnlockLimit) && e._mallData[n.Id] && e._mallData[n.Id].GiftPackDatas.length > 0 && t.push(n)
                    }), t
                }, t.prototype.SetActivityTimeNode = function() {
                    this._activityConfig ? (this.ActivityTimeNode.active = !0, this._activityEndTime = f.default.Instance.ComputeDeadTime(this._activityConfig.Common), this.SetActivityTimeCountDown(), this.schedule(this.SetActivityTimeCountDown, 1)) : this.ActivityTimeNode.active = !1
                }, t.prototype.SetActivityTimeCountDown = function() {
                    var e = this._activityEndTime - c.RpcComponent.Instance.ServerTime;
                    e < 0 ? (this.unschedule(this.SetActivityTimeCountDown), h.UIUtlity.ShowFloatingHint("cashMall_activity_end".ToUILocale()), l.UIManager.Instance.QuitPanelStack(this), l.UIManager.Instance.QuitPanelStack(_.PanelConfig.CashMallShopCartPanel.Path), l.UIManager.Instance.QuitPanelStack(_.PanelConfig.CashMallCouponSelectPanel.Path)) : this.ActivityTimeRichText.string = "elementArena_time".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetLeftRightButtons = function() {
                    this.LeftButton.node.active = !1, this.RightButton.node.active = !1
                }, t.prototype.SetLeftContent = function() {
                    var e = this;
                    if (this._showConfigs = this.GetShowPageConfigs(), this._showConfigs.forEach(function(t, n) {
                            if (!e._pageComponents[n]) {
                                var o = cc.instantiate(e._leftItemPrefab);
                                o.on("click", e.ClickToggle, e), o.parent = e.LeftScrollView.content, e._pageComponents[n] = o.getComponent(y.default)
                            }
                            e._pageComponents[n].node.name = n.toString(), e._pageComponents[n].node.active = !0, e._pageComponents[n].Init(t, e._cashMallSpriteAtlas), e._pageComponents[n].SetSelectNode(e._selectToggle == n);
                            var r = 0,
                                i = c.DataCenter.Instance.GetDataById(p.ShoppingCart_Model, d.GameModuleType.CashMall);
                            e._mallData[t.Id].GiftPackDatas.forEach(function(n) {
                                var o;
                                o = n.ActivityId > 0 ? n.ActivityId * d.Etc.ActivityPrefixRatio + n.PackConfig.Id : n.PackConfig.Id, e._giftIdToPageIds[o] && e._giftIdToPageIds[o].length > 0 && t.Id == e._giftIdToPageIds[o][0] && i && i.PackMap && i.PackMap[o.toString()] && (r += i.PackMap[o.toString()].Items[0])
                            }), e._pageComponents[n].SetRedCount(r)
                        }), this._pageComponents.length > this._showConfigs.length)
                        for (var t = this._showConfigs.length; t < this._pageComponents.length; t++) this._pageComponents[t].node.active = !1; - 1 == this._moveRightPageId && this._showConfigs.length > 0 && (this._moveRightPageId = this._showConfigs[0].Id)
                }, t.prototype.SetRightContent = function() {
                    var e = this;
                    if (!this._isInitRightScrollView) {
                        this._isInitRightScrollView = !0;
                        var t = this.RightScrollView.node.getBoundingBoxToWorld();
                        this._scrollViewRect = new cc.Rect(t.x, t.y, this.RightScrollView.node.width, this.RightScrollView.node.height), this.RightScrollView.node.on("scrolling", this.OnScrolling, this)
                    }
                    this._showConfigs.forEach(function(t, n) {
                        if (!e._rightShopItemNodes[n]) {
                            var o = cc.instantiate(e._rightShopItemPrefab);
                            o.parent = e.RightScrollView.content, e._rightShopItemNodes[n] = o
                        }
                        e._rightShopItemNodes[n].name = t.Id.toString(), e._rightShopItemNodes[n].active = !0, e._rightShopItemNodes[n].getComponent(g.default).Init(e._rightItemPrefab, e._mallData[t.Id], e._cashMallSpriteAtlas, e._scrollViewRect)
                    });
                    var n = this._showConfigs[this._selectToggle].Id,
                        o = this._rightShopItemNodes.find(function(e) {
                            return e.name == n.toString()
                        });
                    if (o && this.RightScrollView.scrollToOffset(cc.v2(0, -o.y)), this._rightShopItemNodes.length > this._showConfigs.length)
                        for (var r = this._showConfigs.length; r < this._rightShopItemNodes.length; r++) this._rightShopItemNodes[r].active = !1
                }, t.prototype.RefreshVip = function() {
                    this.SetRightContent(), this.SetVipNode(), this.SetPriceNode()
                }, t.prototype.CountDownVipTime = function() {
                    var e = this._endTime - c.RpcComponent.Instance.ServerTime;
                    e < 0 ? (this.unschedule(this.CountDownVipTime), this.RefreshVip()) : this.VipRichText.string = "cashMall_vip_remain_time".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetVipNode = function() {
                    var e = !1;
                    this._endTime = 0;
                    var t = c.DataCenter.Instance.GetDataById(p.SubscribePrivilege_Model, d.SubscribePrivilegeType.VipMoney);
                    t && (-1 == t.CanDay ? (this._endTime = 0, e = !0) : t.Time + t.CanDay * d.Etc.DayDuration > c.RpcComponent.Instance.ServerTime && (this._endTime = t.Time + t.CanDay * d.Etc.DayDuration, e = !0)), this.BuyVipButton.node.active = !e, this.VipRichText.node.parent.y = e ? 75 : 140, e ? this._endTime > 0 ? (this.unschedule(this.CountDownVipTime), this.CountDownVipTime(), this.schedule(this.CountDownVipTime, 1)) : this.VipRichText.string = "cashMall_forever".ToUILocale() : this.VipRichText.string = "cashMall_vip_tips".ToUILocale()
                }, t.prototype.SetPriceNode = function() {
                    var e = 0,
                        t = 0,
                        n = 0,
                        o = c.DataCenter.Instance.GetDataById(p.ShoppingCart_Model, d.GameModuleType.CashMall),
                        r = f.default.GetSubscribePrivilegeIsActive(d.SubscribePrivilegeType.VipMoney),
                        i = c.ConfigDataComponent.Instance.GetConfigById(u.CurrencySymbol_Config, m.default.Instance.Localization_Currency).ToFixed;
                    if (o && o.PackMap)
                        for (var a in o.PackMap)
                            if (o.PackMap[a]) {
                                var s = this._packIdToPackConfig[Number(a)].Config;
                                if (s && s.Money > 0) {
                                    if (s.ShowMoney > 0) {
                                        var l = v.default.AccMul(m.default.Instance.ExchangeMoney(s.ShowMoney), o.PackMap[a].Items[0]);
                                        e = v.default.AccAdd(e, l)
                                    } else l = v.default.AccMul(m.default.Instance.ExchangeMoney(s.Money), o.PackMap[a].Items[0]), e = v.default.AccAdd(e, l);
                                    r && s.VipMoney ? (l = v.default.AccMul(m.default.Instance.ExchangeMoney(s.VipMoney), o.PackMap[a].Items[0]), t = v.default.AccAdd(t, l)) : (l = v.default.AccMul(m.default.Instance.ExchangeMoney(s.Money), o.PackMap[a].Items[0]), t = v.default.AccAdd(t, l))
                                }
                                n += o.PackMap[a].Items[0]
                            } e = Math.round(e * Math.pow(10, i)) / Math.pow(10, i), t = Math.round(t * Math.pow(10, i)) / Math.pow(10, i), this.OldPriceNode.active = e > 0 && e != t, this.OldPriceLabel.string = e.toString(), this.NewPriceTagLabel.string = m.default.Instance.CurrencySymbol, this.NewPriceLabel.string = t.toString(), this.SetRedCountNode(n)
                }, t.prototype.SetRedCountNode = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e > 0 ? this._redCountPrefab ? [3, 2] : [4, this.LoadDynamicAsset("ItemsComponent/RedCountComponent", cc.Prefab)] : [3, 3];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._redCountPrefab = t, o.label = 2;
                                case 2:
                                    return this._redCountNode || (this._redCountNode = cc.instantiate(this._redCountPrefab), this._redCountNode.parent = this.ShopCartButton.node), this._redCountNode.active = !0, (n = this._redCountNode.getComponent(I.default)).Init(this.ShopCartButton.node), n.SetCount(e), [3, 4];
                                case 3:
                                    this._redCountNode && (this._redCountNode.active = !1), o.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    if (this._selectToggle != t) {
                        this.RightScrollView.isAutoScrolling() && this.RightScrollView.stopAutoScroll(), this._pageComponents[this._selectToggle] && this._pageComponents[this._selectToggle].SetSelectNode(!1), this._pageComponents[t] && this._pageComponents[t].SetSelectNode(!0), this._selectToggle = t;
                        var n = this._showConfigs[t].Id,
                            o = this._rightShopItemNodes.find(function(e) {
                                return e.name == n.toString()
                            });
                        o && this.RightScrollView.scrollToOffset(cc.v2(0, -o.y))
                    }
                }, t.prototype.OnRefreshRedCount = function(e) {
                    var t = this;
                    if (this._giftIdToPageIds[e] && this._giftIdToPageIds[e].length > 0) {
                        var n = c.DataCenter.Instance.GetDataById(p.ShoppingCart_Model, d.GameModuleType.CashMall),
                            o = this._pageComponents.find(function(n) {
                                return n.PageId == t._giftIdToPageIds[e][0]
                            });
                        if (o) {
                            var r = 0;
                            this._mallData[this._giftIdToPageIds[e][0]].GiftPackDatas.forEach(function(o) {
                                var i;
                                i = o.ActivityId > 0 ? o.ActivityId * d.Etc.ActivityPrefixRatio + o.PackConfig.Id : o.PackConfig.Id, n && n.PackMap && n.PackMap[i.toString()] && t._giftIdToPageIds[i] && t._giftIdToPageIds[i].length > 0 && t._giftIdToPageIds[i][0] == t._giftIdToPageIds[e][0] && (r += n.PackMap[i.toString()].Items[0])
                            }), o.SetRedCount(r)
                        }
                        this._rightShopItemNodes.forEach(function(n) {
                            t._giftIdToPageIds[e].includes(Number.parseInt(n.name)) && n.getComponent(g.default).RefreshGiftPackCountById(e)
                        }), this.SetPriceNode()
                    }
                }, t.prototype.OnScrolling = function() {
                    var e = this;
                    l.Game.EventDispatcher.Emit(C.EventKeys.EVENT_CASHMALL_SCROLLVIEW, this._scrollViewRect);
                    for (var t, n = this.RightScrollView.getScrollOffset(), o = 0, r = 0; r < this._rightShopItemNodes.length; r++) {
                        var i = this._rightShopItemNodes[r];
                        if (o += i.height, n.y <= o) {
                            t = i;
                            break
                        }
                    }
                    if (t) {
                        var a = t.getComponent(g.default).PageId;
                        a != this._moveRightPageId && (this._pageComponents.forEach(function(t, n) {
                            t.PageId == a ? (t.SetSelectNode(!0), e._selectToggle = n) : t.SetSelectNode(!1)
                        }), this._moveRightPageId = a)
                    }
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "cashMall_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["cashMall_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnLeftButtonClick = function() {}, t.prototype.OnRightButtonClick = function() {}, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBuyVipButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(_.PanelConfig.MallPrivilegeGiftPanel.Path, b.MallPrivilegeBasePageType.Subscribe)
                }, t.prototype.OnShopCartButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(_.PanelConfig.CashMallShopCartPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this.unscheduleAllCallbacks()
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.Sprite)], t.prototype, "Banner", void 0), i([P(cc.Sprite)], t.prototype, "BannerTitle", void 0), i([P(cc.Button)], t.prototype, "LeftButton", void 0), i([P(cc.Button)], t.prototype, "RightButton", void 0), i([P(cc.ScrollView)], t.prototype, "LeftScrollView", void 0), i([P(cc.ScrollView)], t.prototype, "RightScrollView", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([P(cc.Button)], t.prototype, "BuyVipButton", void 0), i([P(cc.Label)], t.prototype, "BuyVipLabel", void 0), i([P(cc.RichText)], t.prototype, "VipRichText", void 0), i([P(cc.Node)], t.prototype, "OldPriceNode", void 0), i([P(cc.Label)], t.prototype, "OldPriceLabel", void 0), i([P(cc.Node)], t.prototype, "NewPriceNode", void 0), i([P(cc.Label)], t.prototype, "NewPriceDescLabel", void 0), i([P(cc.Label)], t.prototype, "NewPriceTagLabel", void 0), i([P(cc.Label)], t.prototype, "NewPriceLabel", void 0), i([P(cc.Button)], t.prototype, "ShopCartButton", void 0), i([P(cc.Label)], t.prototype, "ShopCartLabel", void 0), i([P(cc.Node)], t.prototype, "DiscountContent", void 0), i([P(cc.Node)], t.prototype, "ActivityTimeNode", void 0), i([P(cc.RichText)], t.prototype, "ActivityTimeRichText", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CashMallShopItemComponent": "CashMallShopItemComponent",
        "../Components/CashMallToggleComponent": "CashMallToggleComponent",
        "../Components/RedCountComponent": "RedCountComponent",
        "./CashMallShopCartPanel": "CashMallShopCartPanel",
        "./MallPrivilegeMainPanel": "MallPrivilegeMainPanel"
    }],
    CashMallShopCartComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7be632OV2NBUr7bhXpDOqhD", "CashMallShopCartComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../Consts/Consts"),
            u = e("../Panel/CashMallShopCartPanel"),
            p = e("./ItemComponent"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Channel/ChannelManager"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./CashMallItemComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelectToggle = null, t.ItemNode = null, t.ItemName = null, t.LimitCount = null, t.OldPriceNode = null, t.OldPrice = null, t.NewPriceNode = null, t.NewPriceTag = null, t.NewPrice = null, t.ReduceButton = null, t.AddButton = null, t.SelectCount = null, t._buyCount = 0, t.color_green = new cc.Color(0, 225, 0), t.color_white = new cc.Color(255, 255, 255), t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onLoad = function() {
                    this.ReduceButton.node.on("click", this.OnReduceButtonClick, this), this.AddButton.node.on("click", this.OnAddButtonClick, this), this.SelectToggle.node.on("toggle", this.OnSelectToggleClick, this)
                }, t.prototype.Init = function(e, t) {
                    this._itemPrefab = e, this._data = t, this._packIdToPackConfig = s.DataCenter.Instance.GetTempData("CashMallPackConfigs"), this._giftPackConfig = this._packIdToPackConfig[t.PackId].Config, this._modelData = s.DataCenter.Instance.GetDataById(l.ShoppingCart_Model, c.GameModuleType.CashMall), this._packIdToPackConfig[t.PackId].ActivityId > 0 ? this._newPackId = this._packIdToPackConfig[t.PackId].ActivityId * c.Etc.ActivityPrefixRatio + this._packIdToPackConfig[t.PackId].Config.Id : this._newPackId = this._packIdToPackConfig[t.PackId].Config.Id, this.SetToggle(), this.SetItemNode(), this.SetPackInfo(), this.SetSelectNode()
                }, t.prototype.SetToggle = function() {
                    this.SelectToggle.isChecked = u.default.GetPackIsSelect(this._data.PackId)
                }, t.prototype.SetItemNode = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.parent = this.ItemNode, e.y = -20, this._itemComponent = e.getComponent(p.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: this._giftPackConfig.Items[0].Items[0],
                        Count: this._giftPackConfig.Items[0].Items[1]
                    }), this._itemComponent.SetDiscountValue(this._giftPackConfig.Discount > 0, "-" + this._giftPackConfig.Discount + "%")
                }, t.prototype.SetPackInfo = function() {
                    var e;
                    if (this._packIdToPackConfig[this._data.PackId].ActivityId > 0) {
                        e = this._giftPackConfig.Name;
                        var t = s.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._packIdToPackConfig[this._data.PackId].ActivityId);
                        this._buyCount = t && t.Packs[this._giftPackConfig.Id] && t.Packs[this._giftPackConfig.Id].Items[0] ? t.Packs[this._giftPackConfig.Id].Items[0] : 0
                    } else e = this._giftPackConfig.Id.ToGiftPackName(), this._buyCount = d.default.Instance.GetGiftBuyCount(this._giftPackConfig.Id);
                    if (this.ItemName.string = e, this.LimitCount.node.active = this._giftPackConfig.LimitType > 0, this._giftPackConfig.LimitType > 0) {
                        var n = this._giftPackConfig.LimitCount - this._buyCount > 0 ? this._giftPackConfig.LimitCount - this._buyCount : 0;
                        this.LimitCount.string = ("giftpack_limitType" + this._giftPackConfig.LimitType).ToUILocale().Fmt(n, this._giftPackConfig.LimitCount)
                    }
                    this.OldPriceNode.active = this._giftPackConfig.VipMoney > 0;
                    var o = d.default.GetSubscribePrivilegeIsActive(c.SubscribePrivilegeType.VipMoney);
                    if (this._giftPackConfig.VipMoney > 0) {
                        var r = o ? this._giftPackConfig.Money : this._giftPackConfig.VipMoney,
                            i = o ? this.color_white : this.color_green,
                            a = o ? "firstCharge_originalPrice".ToUILocale() : "cashMall_vipMoney".ToUILocale();
                        this.OldPrice.string = a + " " + h.default.Instance.CurrencySymbol + h.default.Instance.ExchangeMoney(r), this.OldPrice.node.color = i
                    }
                    this.NewPriceTag.node.active = this._giftPackConfig.Money > 0, this.NewPrice.node.color = this.color_white, this._giftPackConfig.Money > 0 ? (this.NewPriceTag.string = h.default.Instance.CurrencySymbol, o && this._giftPackConfig.VipMoney > 0 ? (this.NewPrice.node.color = this.color_green, this.NewPrice.string = h.default.Instance.ExchangeMoney(this._giftPackConfig.VipMoney).toString()) : this.NewPrice.string = h.default.Instance.ExchangeMoney(this._giftPackConfig.Money).toString()) : this.NewPrice.string = "shop_buyFree".ToUILocale()
                }, t.prototype.GetShopCartPackCount = function(e) {
                    return this._modelData && this._modelData.PackMap && this._modelData.PackMap[e] && this._modelData.PackMap[e].Items[0] ? this._modelData.PackMap[e].Items[0] : 0
                }, t.prototype.SetSelectNode = function() {
                    this.SelectCount.string = this.GetShopCartPackCount(this._data.PackId).toString()
                }, t.prototype.OnReduceButtonClick = function() {
                    if (this.GetShopCartPackCount(this._newPackId) > 0) {
                        var e = new l.IntArray;
                        e.Items = [this._newPackId, this.GetShopCartPackCount(this._newPackId) - 1], this.RequestItemCount(e)
                    }
                }, t.prototype.OnAddButtonClick = function() {
                    if (0 == this._giftPackConfig.LimitType || this.GetShopCartPackCount(this._newPackId) + this._buyCount < this._giftPackConfig.LimitCount) {
                        var e = new l.IntArray;
                        e.Items = [this._newPackId, this.GetShopCartPackCount(this._newPackId) + 1];
                        var t = s.ConfigDataComponent.Instance.GetGlobalSettingByKey("PayPacksMaxMoney");
                        if (t > 0 && g.default.GetOldPrice(e) >= h.default.Instance.ExchangeMoney(t)) return void y.UIUtlity.ShowFloatingHint("cashMall_pay_limit".ToUILocale());
                        this.RequestItemCount(e)
                    } else this.GetShopCartPackCount(this._newPackId) + this._buyCount >= this._giftPackConfig.LimitCount && y.UIUtlity.ShowFloatingHint("cashMall_count_max".ToUILocale())
                }, t.prototype.RequestItemCount = function(e) {
                    var t = this,
                        n = new l.Req_Mall_ChangeShoppingCart;
                    n.Id = c.GameModuleType.CashMall, n.Contents = [e], s.RpcComponent.Instance.Call(n, function() {
                        t._modelData = s.DataCenter.Instance.GetDataById(l.ShoppingCart_Model, c.GameModuleType.CashMall), t.SetPackInfo(), t.SetSelectNode(), a.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CASHMALL_REFRESH_SHOPCART, t._giftPackConfig.Id)
                    })
                }, t.prototype.OnSelectToggleClick = function() {
                    u.default.SetCashMallCartSelectStatus(this._data.PackId), this.SetToggle(), a.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CASHMALL_REFRESH_SHOPCART, this._giftPackConfig.Id, !0)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && y.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, i([_(cc.Toggle)], t.prototype, "SelectToggle", void 0), i([_(cc.Node)], t.prototype, "ItemNode", void 0), i([_(cc.Label)], t.prototype, "ItemName", void 0), i([_(cc.RichText)], t.prototype, "LimitCount", void 0), i([_(cc.Node)], t.prototype, "OldPriceNode", void 0), i([_(cc.Label)], t.prototype, "OldPrice", void 0), i([_(cc.Node)], t.prototype, "NewPriceNode", void 0), i([_(cc.Label)], t.prototype, "NewPriceTag", void 0), i([_(cc.Label)], t.prototype, "NewPrice", void 0), i([_(cc.Button)], t.prototype, "ReduceButton", void 0), i([_(cc.Button)], t.prototype, "AddButton", void 0), i([_(cc.Label)], t.prototype, "SelectCount", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/CashMallShopCartPanel": "CashMallShopCartPanel",
        "./CashMallItemComponent": "CashMallItemComponent",
        "./ItemComponent": "ItemComponent"
    }],
    CashMallShopCartPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5ece0M8qhRJCbMBq8XibVuB", "CashMallShopCartPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/GameRecord"),
            g = e("../Components/CustomLayout"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Components/CashMallShopCartComponent"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../Components/CashMallDiscountComponent"),
            v = e("../../Auxiliary/DataUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.ReturnButton = null, t.AllToggle = null, t.AllLabel = null, t.CustomLayout = null, t.BuyButton = null, t.CanGetLabel = null, t.VipPointLabel = null, t.OldPriceNode = null, t.OldPriceLabel = null, t.NewPriceNode = null, t.NewPriceTagLabel = null, t.NewPriceLabel = null, t.DiscountContent = null, t._isAllSelect = !1, t._initLayout = !0, t._price = 0, t._couponSid = -1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(m.EventKeys.EVENT_CASHMALL_REFRESH_SHOPCART, this.RefreshUIContent, this), l.Game.EventDispatcher.On(m.EventKeys.EVENT_CASHMALL_REFRESH_COUPON, this.RefreshCoupon, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(m.EventKeys.EVENT_CASHMALL_REFRESH_SHOPCART, this.RefreshUIContent, this), l.Game.EventDispatcher.Off(m.EventKeys.EVENT_CASHMALL_REFRESH_COUPON, this.RefreshCoupon, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CashMallPanel/Components/CashMallShopCartComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._shopCartPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "cashMall_item_list".ToUILocale(), this.AllLabel.string = "allianceLog_all".ToUILocale(), this.CanGetLabel.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.AllToggle.node.on("toggle", this.OnAllToggleClick, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), n.CashMallVipExpireRefresh(this.RefreshVip.bind(this))
                }, t.prototype.RefreshVip = function(e) {
                    this.scheduleOnce(this.SetUIContent, e)
                }, t.CashMallVipExpireRefresh = function(e) {
                    var t = c.DataCenter.Instance.GetDataById(p.SubscribePrivilege_Model, d.SubscribePrivilegeType.VipMoney);
                    if (t && t.CanDay > 0) {
                        var n = t.Time + t.CanDay * d.Etc.DayDuration;
                        n > c.RpcComponent.Instance.ServerTime && e((n - c.RpcComponent.Instance.ServerTime) / d.Etc.SecondDuration)
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._modelData = c.DataCenter.Instance.GetDataById(p.ShoppingCart_Model, d.GameModuleType.CashMall), this.SetAllToggle(), this.SetItemList(), this.SetPriceNode()
                }, t.prototype.SetAllToggle = function() {
                    var e, t = y.default.GetItem(y.GameRecordDefine.CashMallSelectPackMap);
                    if (this._isAllSelect = !0, t) {
                        if (e = JSON.parse(t), this._modelData && this._modelData.PackMap)
                            for (var n in this._modelData.PackMap) e[Number(n)] ? -1 == e[Number(n)] && (this._isAllSelect = !1) : e[Number(n)] = 1;
                        y.default.SetItem(y.GameRecordDefine.CashMallSelectPackMap, JSON.stringify(e))
                    } else {
                        if (e = {}, this._modelData && this._modelData.PackMap)
                            for (var n in this._modelData.PackMap) e[Number(n)] = 1;
                        y.default.SetItem(y.GameRecordDefine.CashMallSelectPackMap, JSON.stringify(e))
                    }
                    this.AllToggle.isChecked = this._isAllSelect
                }, t.prototype.SetPackDatas = function() {
                    if (this._packDatas = [], this._modelData && this._modelData.PackMap)
                        for (var e in this._modelData.PackMap) {
                            var t = {};
                            t.PackId = Number(e), t.SelectCount = this._modelData.PackMap[e].Items[0], t.PushTime = this._modelData.PackMap[e].Items[1], this._packDatas.push(t)
                        }
                    this._packDatas.sort(function(e, t) {
                        return e.PushTime - t.PushTime
                    })
                }, t.prototype.SetItemList = function() {
                    this.SetPackDatas(), this._initLayout && (this.CustomLayout.Init(this._shopCartPrefab), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._packDatas.length)
                }, t.prototype.SetCouponSid = function() {
                    this._couponDatas = v.default.GetShowCouponDatas(this._price, d.GameModuleType.CashMall), this._couponDatas.length > 0 && this._couponDatas[0].CanUse ? this._couponSid = this._couponDatas[0].Sid : this._couponSid = 0
                }, t.prototype.SetDiscountContent = function() {
                    var e, t = this;
                    if (-1 == this._couponSid && this._price > 0 && this.SetCouponSid(), this.unschedule(this.RefreshShopCartCoupon), this._couponSid > 0 && (e = this._couponDatas.find(function(e) {
                            return e.Sid == t._couponSid
                        }))) {
                        var n = c.DataCenter.Instance.GetDataById(p.CurrencyDiscountTicket_Model, this._couponSid);
                        if (!n.IsPerpetual && n.Time > c.RpcComponent.Instance.ServerTime) {
                            var o = (n.Time - c.RpcComponent.Instance.ServerTime) / d.Etc.SecondDuration;
                            this.scheduleOnce(this.RefreshShopCartCoupon, o)
                        }
                    }
                    this.SetDiscountNode(e)
                }, t.prototype.SetDiscountNode = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._couponNode ? [3, 2] : [4, this.LoadDynamicAsset("CashMallPanel/Components/CashMallDiscountComponent", cc.Prefab)];
                                case 1:
                                    if (t = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._couponNode = cc.instantiate(t), this._couponNode.parent = this.DiscountContent, n.label = 2;
                                case 2:
                                    return this._couponNode.getComponent(C.default).Init(e, this._price), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshShopCartCoupon = function() {
                    this.RefreshCoupon(-1)
                }, t.GetPackIsSelect = function(e) {
                    var t = y.default.GetItem(y.GameRecordDefine.CashMallSelectPackMap),
                        n = !0;
                    return t && (n = 1 == JSON.parse(t)[e]), n
                }, t.prototype.SetPriceNode = function() {
                    var e = this,
                        t = 0,
                        o = 0,
                        r = 0,
                        i = 0;
                    this._selectPackDatas = [], this._selectFreePackDatas = [];
                    var a = v.default.GetSubscribePrivilegeIsActive(d.SubscribePrivilegeType.VipMoney);
                    this._packDatas.forEach(function(t) {
                        if (n.GetPackIsSelect(t.PackId)) {
                            var s = c.DataCenter.Instance.GetTempData("CashMallPackConfigs")[t.PackId].Config;
                            if (s && s.Money > 0) {
                                if (s.ShowMoney) {
                                    var l = n.AccMul(_.default.Instance.ExchangeMoney(s.ShowMoney), t.SelectCount);
                                    o = n.AccAdd(o, l)
                                } else l = n.AccMul(_.default.Instance.ExchangeMoney(s.Money), t.SelectCount), o = n.AccAdd(o, l);
                                a && s.VipMoney ? (r += s.VipMoney * t.SelectCount, l = n.AccMul(_.default.Instance.ExchangeMoney(s.VipMoney), t.SelectCount), i = n.AccAdd(i, l)) : (r += s.Money * t.SelectCount, l = n.AccMul(_.default.Instance.ExchangeMoney(s.Money), t.SelectCount), i = n.AccAdd(i, l)), e._selectPackDatas.push(t)
                            } else e._selectFreePackDatas.push(t)
                        }
                    }), this._price != r && (this._price = r, this._couponSid = -1), t = r, this.SetDiscountContent();
                    var s = c.ConfigDataComponent.Instance.GetConfigById(u.CurrencySymbol_Config, _.default.Instance.Localization_Currency).ToFixed;
                    if (this._couponSid > 0) {
                        var l = c.DataCenter.Instance.GetDataById(p.CurrencyDiscountTicket_Model, this._couponSid),
                            h = c.ConfigDataComponent.Instance.GetConfigById(u.ItemCurrencyDiscount_Config, l.ItemId);
                        switch (h.SubType) {
                            case d.TicketSubType.Reduce:
                                var f = _.default.Instance.ExchangeMoney(h.Param[0]);
                                r = n.Subtr(i, f), t -= h.Param[0];
                                break;
                            case d.TicketSubType.Discount:
                                var y = i * h.Param[0];
                                t *= h.Param[0], r = Math.round(y * Math.pow(10, s - 3)) / Math.pow(10, s), t = Math.round(t * Math.pow(10, s - 3)) / Math.pow(10, s)
                        }
                    } else r = i;
                    o = Math.round(o * Math.pow(10, s)) / Math.pow(10, s), r = Math.round(r * Math.pow(10, s)) / Math.pow(10, s), this.VipPointLabel.string = t.toString(), this.OldPriceNode.active = o > 0 && o != r, o > 0 && o != r && (this.OldPriceLabel.string = o.toString()), this.NewPriceNode.y = o > 0 && o != r ? -15 : 0, this.NewPriceTagLabel.string = _.default.Instance.CurrencySymbol, this.NewPriceLabel.string = r.toString(), this._newPrice = r
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(I.default).Init(n._itemPrefab, n._packDatas[t])
                    })
                }, t.SetCashMallCartSelectStatus = function(e, t) {
                    var n, o = y.default.GetItem(y.GameRecordDefine.CashMallSelectPackMap);
                    o ? (n = JSON.parse(o), t ? n[e] = t : n[e] ? n[e] = -1 * n[e] : n[e] = 1, y.default.SetItem(y.GameRecordDefine.CashMallSelectPackMap, JSON.stringify(n))) : ((n = {})[e] = t || 1, y.default.SetItem(y.GameRecordDefine.CashMallSelectPackMap, JSON.stringify(n)))
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "cashMall_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["cashMall_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnBuyButtonClick = function() {
                    if (this._selectPackDatas.length > 0) {
                        var e = [];
                        this._selectPackDatas.forEach(function(t) {
                            var n = new u.IntArray_Config;
                            n.Items = [t.PackId, t.SelectCount], e.push(n)
                        }), _.default.Instance.ShopCartPay(e, d.GameModuleType.CashMall, this._couponSid, this._newPrice)
                    }
                }, t.prototype.OnAllToggleClick = function(e) {
                    var t = e.isChecked ? 1 : 0;
                    this._packDatas.forEach(function(e) {
                        n.SetCashMallCartSelectStatus(e.PackId, t)
                    }), this.CustomLayout.node.children.forEach(function(e) {
                        e.getComponent(I.default).SetToggle()
                    }), this.SetPriceNode()
                }, t.prototype.RefreshUIContent = function(e, t) {
                    void 0 === t && (t = !1), this._modelData = c.DataCenter.Instance.GetDataById(p.ShoppingCart_Model, d.GameModuleType.CashMall), this.SetPackDatas(), this._modelData && this._modelData.PackMap && this._modelData.PackMap[e] && 0 != this._modelData.PackMap[e].Items[0] ? (t && this.SetAllToggle(), this.SetPriceNode()) : (this.SetAllToggle(), this.SetItemList(), this.SetPriceNode())
                }, t.prototype.RefreshCoupon = function(e) {
                    this._couponSid = e, this.SetPriceNode()
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.AccAdd = function(e, t) {
                    var n, o, r;
                    try {
                        n = e.toString().split(".")[1].length
                    } catch (i) {
                        n = 0
                    }
                    try {
                        o = t.toString().split(".")[1].length
                    } catch (i) {
                        o = 0
                    }
                    return (e * (r = Math.pow(10, Math.max(n, o))) + t * r) / r
                }, t.AccMul = function(e, t) {
                    var n = 0,
                        o = e.toString(),
                        r = t.toString();
                    try {
                        n += o.split(".")[1].length
                    } catch (i) {}
                    try {
                        n += r.split(".")[1].length
                    } catch (i) {}
                    return Number(o.replace(".", "")) * Number(r.replace(".", "")) / Math.pow(10, n)
                }, t.Subtr = function(e, t) {
                    var n, o, r;
                    try {
                        n = e.toString().split(".")[1].length
                    } catch (i) {
                        n = 0
                    }
                    try {
                        o = t.toString().split(".")[1].length
                    } catch (i) {
                        o = 0
                    }
                    return (e * (r = Math.pow(10, Math.max(n, o))) - t * r) / r
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([w(cc.Toggle)], t.prototype, "AllToggle", void 0), i([w(cc.Label)], t.prototype, "AllLabel", void 0), i([w(g.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Button)], t.prototype, "BuyButton", void 0), i([w(cc.Label)], t.prototype, "CanGetLabel", void 0), i([w(cc.Label)], t.prototype, "VipPointLabel", void 0), i([w(cc.Node)], t.prototype, "OldPriceNode", void 0), i([w(cc.Label)], t.prototype, "OldPriceLabel", void 0), i([w(cc.Node)], t.prototype, "NewPriceNode", void 0), i([w(cc.Label)], t.prototype, "NewPriceTagLabel", void 0), i([w(cc.Label)], t.prototype, "NewPriceLabel", void 0), i([w(cc.Node)], t.prototype, "DiscountContent", void 0), n = i([S], t)
            }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CashMallDiscountComponent": "CashMallDiscountComponent",
        "../Components/CashMallShopCartComponent": "CashMallShopCartComponent",
        "../Components/CustomLayout": "CustomLayout"
    }],
    CashMallShopItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "71496XK6PRKb4218Nif2KxZ", "CashMallShopItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("./CashMallItemComponent"),
            p = e("../../../Consts/Etc"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleBg = null, t.Title = null, t.TitleName = null, t.ItemContent = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    var r, i, a;
                    switch (this._itemPrefab = e, this._scrollViewRect = o, this._cashMallSpriteAtlas = n, this._data = t, r = t.PageConfig.Type > 1 ? "titleBg_red" : "titleBg_yellow", this.TitleBg.spriteFrame = n.getSpriteFrame(r), t.PageConfig.Type) {
                        case 1:
                            i = "small_tittle_orange", a = new cc.Color(129, 81, 28);
                            break;
                        case 2:
                            i = "small_tittle_red", a = new cc.Color(129, 28, 28);
                            break;
                        case 3:
                            i = "small_tittle_green", a = new cc.Color(30, 129, 28);
                            break;
                        case 4:
                            i = "small_tittle_blue", a = new cc.Color(28, 80, 129)
                    }
                    this.Title.spriteFrame = l.UIUtlity.COMMON_ATLAS4.getSpriteFrame(i), this.TitleName.string = t.PageConfig.Id.ToCashMallToggleName(), this.TitleName.node.getComponent(cc.LabelOutline).color = a, this.SetItemContent(t)
                }, t.prototype.SetItemContent = function(e) {
                    var t, n, o = this,
                        r = [];
                    if (e.GiftPackDatas.forEach(function(e) {
                            c.default.Instance.CheckGiftPackIsUnlock(e.PackConfig) && (r.push(e), e.ActivityId && (t = e.ActivityId))
                        }), t && (n = a.DataCenter.Instance.GetDataById(s.UserActivity_Model, t)), r.sort(function(e, t) {
                            var o, r;
                            o = e.ActivityId > 0 ? n && n.Packs[e.PackConfig.Id] && n.Packs[e.PackConfig.Id].Items[0] ? n.Packs[e.PackConfig.Id].Items[0] : 0 : c.default.Instance.GetGiftBuyCount(e.PackConfig.Id), r = t.ActivityId > 0 ? n && n.Packs[t.PackConfig.Id] && n.Packs[t.PackConfig.Id].Items[0] ? n.Packs[t.PackConfig.Id].Items[0] : 0 : c.default.Instance.GetGiftBuyCount(t.PackConfig.Id);
                            var i = !1,
                                a = !1;
                            return e.PackConfig.LimitType > 0 && o >= e.PackConfig.LimitCount && (i = !0), t.PackConfig.LimitType > 0 && r >= t.PackConfig.LimitCount && (a = !0), i && !a ? 1 : -1
                        }), r.forEach(function(e, t) {
                            if (!o._itemNodes[t]) {
                                var n = cc.instantiate(o._itemPrefab);
                                n.parent = o.ItemContent, o._itemNodes[t] = n
                            }
                            o._itemNodes[t].active = !0, o._itemNodes[t].getComponent(u.default).Init(e, o._cashMallSpriteAtlas)
                        }), this._itemNodes.length > r.length)
                        for (var i = r.length; i < this._itemNodes.length; i++) this._itemNodes[i].active = !1;
                    this.schedule(function() {
                        o._itemNodes.forEach(function(e) {
                            e.getComponent(u.default).CheckVisible(o._scrollViewRect)
                        })
                    })
                }, t.prototype.RefreshGiftPackCountById = function(e) {
                    var t = this,
                        n = {};
                    this._data.GiftPackDatas.forEach(function(e) {
                        var t;
                        t = e.ActivityId > 0 ? e.ActivityId * p.Etc.ActivityPrefixRatio + e.PackConfig.Id : e.PackConfig.Id, n[t] = e
                    }), this._itemNodes.forEach(function(o) {
                        var r = o.getComponent(u.default);
                        r.PackId == e && n[e] && r.Init(n[e], t._cashMallSpriteAtlas)
                    })
                }, Object.defineProperty(t.prototype, "PageId", {
                    get: function() {
                        return this._data.PageConfig.Id
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([f(cc.Sprite)], t.prototype, "TitleBg", void 0), i([f(cc.Sprite)], t.prototype, "Title", void 0), i([f(cc.Label)], t.prototype, "TitleName", void 0), i([f(cc.Node)], t.prototype, "ItemContent", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CashMallItemComponent": "CashMallItemComponent"
    }],
    CashMallTagComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b9db7i7CvdLUaPjWbUnlY0K", "CashMallTagComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Tag = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.Bg.spriteFrame = t.getSpriteFrame("tag" + e), this.Tag.string = ("cashMall_tag" + e).ToUILocale()
                }, i([l(cc.Sprite)], t.prototype, "Bg", void 0), i([l(cc.Label)], t.prototype, "Tag", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CashMallToggleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "48005Zg8gVC6pZwl783DyUV", "CashMallToggleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./RedCountComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Name = null, t.SelectNode = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.Name.string = e.Id.ToCashMallToggleName(), this.Bg.spriteFrame = t.getSpriteFrame("toggle" + e.Type), this._config = e
                }, t.prototype.SetSelectNode = function(e) {
                    this.SelectNode.active = e
                }, t.prototype.SetRedCount = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e > 0 ? this._redCountPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("ItemsComponent/RedCountComponent", cc.Prefab)] : [3, 3];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._redCountPrefab = t, this._loadAssets.push(t), o.label = 2;
                                case 2:
                                    return this._redCountNode || (this._redCountNode = cc.instantiate(this._redCountPrefab), this._redCountNode.parent = this.node), this._redCountNode.active = !0, (n = this._redCountNode.getComponent(c.default)).Init(this.node), n.SetCount(e), [3, 4];
                                case 3:
                                    this._redCountNode && (this._redCountNode.active = !1), o.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, Object.defineProperty(t.prototype, "PageId", {
                    get: function() {
                        return this._config.Id
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([d(cc.Sprite)], t.prototype, "Bg", void 0), i([d(cc.Label)], t.prototype, "Name", void 0), i([d(cc.Node)], t.prototype, "SelectNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./RedCountComponent": "RedCountComponent"
    }],
    ChainGiftPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "92557SGKXVM1rZMAs31+yvi", "ChainGiftPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChainGiftArrowType = n.ChainGiftPackBuyState = void 0;
        var a, s, l = e("../../Components/Components"),
            c = e("../Panel/LayoutRewards"),
            u = e("../../Channel/ChannelManager"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.CantBuy = 0] = "CantBuy", e[e.CanBuy = 1] = "CanBuy", e[e.HasGot = 2] = "HasGot"
        })(a = n.ChainGiftPackBuyState || (n.ChainGiftPackBuyState = {})),
        function(e) {
            e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e[e.Bottom = 2] = "Bottom"
        }(s = n.ChainGiftArrowType || (n.ChainGiftArrowType = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Bg1 = null, t.Bg2 = null, t.LayoutRewards = null, t.BuyButton = null, t.BuyButtonLabel = null, t.GetLabel = null, t.GetValue = null, t.BuyBtnLock = null, t.ShowOutLabel = null, t.ShowOutMask = null, t.FreeBtn = null, t.FreeBtnLabel = null, t.FreeBtnLock = null, t.RedDot = null, t.Arrows = [], t.Atlas = null, t._needInit = !0, t
            }
            return r(t, e), t.prototype.Init = function(e, t, n, o) {
                this._needInit && (this._basePanel = e, this._itemPrefab = t, this._needInit = !1, this.FreeBtn.node.on("click", this.OnBuyBtnClick, this), this.BuyButton.node.on("click", this.OnBuyBtnClick, this), this.FreeBtnLabel.string = "CrazyWheel_free".ToUILocale(), this.GetLabel.string = "task_get_score_tag".ToUILocale(), this.ShowOutLabel.string = "bought".ToUILocale()), this._packId = n, this._index = o.PackIndex, this._state = o, this.RenderGiftPack()
            }, t.prototype.RenderGiftPack = function() {
                var e;
                switch (this.BuyButton.node.active = !1, this.BuyBtnLock.active = !1, this.FreeBtn.node.active = !1, this.FreeBtnLock.active = !1, this.RedDot.active = !1, this.ShowOutMask.active = !1, e = this._basePanel.PackList[this._packId], this._state.State) {
                    case a.CantBuy:
                        this.SetBg(1), e.Money ? (this.BuyButton.node.active = !0, this.BuyBtnLock.active = !0, this.BuyButtonLabel.string = u.default.Instance.CurrencySymbol + u.default.Instance.ExchangeMoney(e.Money), this.GetValue.string = "x" + e.VipPoint) : (this.FreeBtn.node.active = !0, this.FreeBtnLock.active = !0);
                        break;
                    case a.CanBuy:
                        this.SetBg(1), e.Money ? (this.BuyButton.node.active = !0, this.BuyButtonLabel.string = u.default.Instance.CurrencySymbol + u.default.Instance.ExchangeMoney(e.Money), this.GetValue.string = "x" + e.VipPoint) : (this.FreeBtn.node.active = !0, this.RedDot.active = !0);
                        break;
                    case a.HasGot:
                        this.ShowOutMask.active = !0, this.SetBg(2)
                }
                this.LayoutRewards.InitWithIntArray(e.Items, this._itemPrefab), this.SetArrow()
            }, t.prototype.SetBg = function(e) {
                this.Bg1.spriteFrame = this.Atlas.getSpriteFrame("packBg" + e), this.Bg2.spriteFrame = this.Atlas.getSpriteFrame("packBg" + e)
            }, t.prototype.SetArrow = function() {
                for (var e = 0; e < this.Arrows.length; e++) this.Arrows[e].node.active = !1;
                if (!(this._index >= this._basePanel.CurrentPagePackIds.length - 1)) switch (this._state.ArrowType) {
                    case s.Left:
                        this.Arrows[s.Left].node.active = !0;
                        break;
                    case s.Right:
                        this.Arrows[s.Right].node.active = !0;
                        break;
                    case s.Bottom:
                        this.Arrows[s.Bottom].node.active = !0
                }
            }, t.prototype.OnBuyBtnClick = function() {
                switch (this._state.State) {
                    case a.CantBuy:
                        return void d.UIUtlity.ShowFloatingHint("stockUpFestival_limit".ToUILocale())
                }
                if (null == this._basePanel.PackList[this._packId].Money || 0 == this._basePanel.PackList[this._packId].Money) {
                    var e = new p.Req_Pay_ByDiamond;
                    e.Id = this._packId, e.ActivityId = this._basePanel.ActivityId, l.RpcComponent.Instance.Call(e, function(e) {
                        d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                } else u.default.Instance.Pay(this._packId, this._basePanel.ActivityId)
            }, i([y(cc.Sprite)], t.prototype, "Bg1", void 0), i([y(cc.Sprite)], t.prototype, "Bg2", void 0), i([y(c.default)], t.prototype, "LayoutRewards", void 0), i([y(cc.Button)], t.prototype, "BuyButton", void 0), i([y(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([y(cc.Label)], t.prototype, "GetLabel", void 0), i([y(cc.Label)], t.prototype, "GetValue", void 0), i([y(cc.Node)], t.prototype, "BuyBtnLock", void 0), i([y(cc.Label)], t.prototype, "ShowOutLabel", void 0), i([y(cc.Node)], t.prototype, "ShowOutMask", void 0), i([y(cc.Button)], t.prototype, "FreeBtn", void 0), i([y(cc.Label)], t.prototype, "FreeBtnLabel", void 0), i([y(cc.Node)], t.prototype, "FreeBtnLock", void 0), i([y(cc.Node)], t.prototype, "RedDot", void 0), i([y(cc.Sprite)], t.prototype, "Arrows", void 0), i([y(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([f], t)
        }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/LayoutRewards": "LayoutRewards"
    }],
    ChainGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c184aTuIvxIgrn0T3eUp7jD", "ChainGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../Components/CustomToggle"),
            f = e("../Components/ChainGiftPackComponent"),
            y = e("../Components/AsyncLayout"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../Components/ActivityCountDownComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.RuleBtn = null, t.CountDownComponent = null, t.ChainGiftPackContainer = null, t.ToggleContainer = null, t.BackBtn = null, t.TogglePrefab = null, t.FreeRewardBtn = null, t.FreeRewardLabel = null, t._togglesRedDot = [], t._toggles = [], t.PackState = {}, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "ActivityId", {
                    get: function() {
                        return this._activityId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ChainGiftPanel/ChainGiftPackComponent"), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent), [4, Promise.all([t, n]).then(function(e) {
                                        o._giftPackPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BackBtn.node.on("click", this.OnBackBtnClick, this), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.FreeRewardBtn.node.on("click", this.OnFreeRewardClick, this), this.FreeRewardLabel.string = "eightDays_toggle0".ToUILocale(), this.ChainGiftPackContainer.Init(this._giftPackPrefab, this.RefreshScrollView.bind(this))
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    if (e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = d.DataCenter.Instance.ActivityConfigs[this._activityId], void 0 === this.PackList) {
                        this.PackList = {};
                        for (var o = 0; o < this._activityConfig._Packs.length; o++) this.PackList[this._activityConfig._Packs[o].Id] = this._activityConfig._Packs[o]
                    }
                    void 0 === this._localeMap && (this._localeMap = {}, this._activityConfig._Locale.forEach(function(e) {
                        n._localeMap[e.Id] = e
                    }))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.InitTab(), t || this.CountDownComponent.Init(this._activityConfig.Common), this.RenderPacks(t), this._activityData = d.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityConfig._id), this._activityConfig.CustomPart.DailyRewards && this._activityConfig.CustomPart.DailyRewards.length > 0 && !this._activityData.DailyRewards ? this.FreeRewardBtn.node.active = !0 : this.FreeRewardBtn.node.active = !1, this.BindRedDot()
                }, t.prototype.BindRedDot = function() {
                    var e = this;
                    this._toggles.forEach(function(t, n) {
                        g.RedDotManager.Instance.BindNodeByResult(t.node, e._togglesRedDot[n], e.PageRedDotState(n))
                    })
                }, t.prototype.InitTab = function() {
                    this._activeTogglePages = [];
                    for (var e = d.DataCenter.Instance.GetIntData(u.UserDataKey.TotalPay), t = 0; t < this._activityConfig.Pages.length; t++) e >= this._activityConfig.Pages[t].TotalPay && this._activeTogglePages.push(this._activityConfig.Pages[t]);
                    for (t = 0; t < this._activeTogglePages.length; t++) {
                        var n = this._toggles[t];
                        if (!n) {
                            var o = cc.instantiate(this.TogglePrefab);
                            (n = o.getComponent(h.default)).Init(this._localeMap[this._activeTogglePages[t].Id].Content), o.name = t.toString(), this._toggles.push(n), o.on("toggle", this.ClickToggle, this), this._togglesRedDot.push({})
                        }
                        null == this._currentTab && (this._currentTab = t, this.CurrentPagePackIds = this._activeTogglePages[this._currentTab].Group), this._toggles[t].node.parent = this.ToggleContainer, this._toggles[t].node.active = !0
                    }
                    this._toggles[this._currentTab].check();
                    for (var r = this._activeTogglePages.length; r < this._toggles.length; r++) this._toggles[r].node.active = !1
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._currentTab != t && (this._currentTab = t, this.CurrentPagePackIds = this._activeTogglePages[this._currentTab].Group, this._currentTab = t, this.RenderPacks())
                }, t.prototype.SetCountDown = function() {}, t.prototype.RenderPacks = function(e) {
                    for (var t = d.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId), n = 0; n < this.CurrentPagePackIds.length; n++) {
                        if (!t.Packs[this.CurrentPagePackIds[n]].Items[0]) {
                            this._currentPackIndex = n;
                            break
                        }
                        n == this.CurrentPagePackIds.length - 1 && (this._currentPackIndex = this.CurrentPagePackIds.length)
                    }
                    for (n = 0; n < this.CurrentPagePackIds.length; n++) {
                        var o;
                        o = n > this._currentPackIndex ? f.ChainGiftPackBuyState.CantBuy : n == this._currentPackIndex ? f.ChainGiftPackBuyState.CanBuy : f.ChainGiftPackBuyState.HasGot;
                        var r, i = n % 4;
                        r = i % 2 ? f.ChainGiftArrowType.Bottom : i ? f.ChainGiftArrowType.Left : f.ChainGiftArrowType.Right, this.PackState[this.CurrentPagePackIds[n]] = {
                            PackIndex: n,
                            State: o,
                            ArrowType: r
                        }
                    }
                    if (e) this.ChainGiftPackContainer.ReRender();
                    else {
                        var a;
                        a = this.CurrentPagePackIds.length % 4 == 3 ? this.CurrentPagePackIds.length + 1 : this.CurrentPagePackIds.length, this.ChainGiftPackContainer.RenderLayout(a, Math.floor(this._currentPackIndex / 2))
                    }
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = e.getComponent(f.default),
                        o = this.PackListToChain(t);
                    this.CurrentPagePackIds[o] ? (n.Init(this, this._itemPrefab, this.CurrentPagePackIds[o], this.PackState[this.CurrentPagePackIds[o]]), n.node.opacity = 255) : n.node.opacity = 0
                }, t.prototype.OnBackBtnClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRuleBtnClick = function() {
                    var e = {
                        name: "chainGift_rule_main".ToUILocale(),
                        titles: ["chainGift_rule_sub".ToUILocale()],
                        contents: ["chainGift_rule_content".ToUILocale()]
                    };
                    I.UIUtlity.ShowRulePanel(e)
                }, t.prototype.PackListToChain = function(e) {
                    var t = e % 4;
                    return 2 == t ? e + 1 : 3 == t ? e - 1 : e
                }, t.prototype.PageRedDotState = function(e) {
                    for (var t, n = d.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId), o = this._activeTogglePages[e].Group, r = 0; r < o.length; r++)
                        if (!n.Packs[o[r]].Items[0]) {
                            t = this.PackList[o[r]];
                            break
                        } return !(!t || 0 != t.Money)
                }, t.prototype.OnFreeRewardClick = function() {
                    var e = l.Req_Activity_CommonDailyRewards.create();
                    e.ActivityId = this._activityConfig._id, d.RpcComponent.Instance.Call(e, function(e) {
                        c.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                    })
                }, i([v(cc.Button)], t.prototype, "RuleBtn", void 0), i([v(m.default)], t.prototype, "CountDownComponent", void 0), i([v(y.default)], t.prototype, "ChainGiftPackContainer", void 0), i([v(cc.Node)], t.prototype, "ToggleContainer", void 0), i([v(cc.Button)], t.prototype, "BackBtn", void 0), i([v(cc.Node)], t.prototype, "TogglePrefab", void 0), i([v(cc.Button)], t.prototype, "FreeRewardBtn", void 0), i([v(cc.Label)], t.prototype, "FreeRewardLabel", void 0), i([C], t)
            }(c.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/ChainGiftPackComponent": "ChainGiftPackComponent",
        "../Components/CustomToggle": "CustomToggle"
    }],
    ChalengePlayerInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c944cb2cJJHtJIUH5KGaUVz", "ChalengePlayerInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/HeadComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../Battle/BattleManager"),
            _ = e("./CrossServerLadderPanel"),
            C = e("../../Auxiliary/EventKeys"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.HeadContainer = null, t.PlayerName = null, t.ServerTag = null, t.ServerValue = null, t.AllianceTag = null, t.AllianceValue = null, t.RankTag = null, t.RankValue = null, t.BPTag = null, t.BPValue = null, t.EnemyTitle = null, t.ItemsNode = null, t.BattleBtn = null, t.BattleBtnLabel = null, t.FriendSprite = null, t.AllianceSprite = null, t.DesignationSprite = null, t._blackClolor = new cc.Color(32, 36, 52), t._grayColor = new cc.Color(32, 36, 52), t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent), n = this.LoadDynamicAsset(f.BundlePath.HeadComponent), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._headPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "arena_rivalInfoText".ToUILocale(), this.ServerTag.string = "serverSelect_zone".ToUILocale(), this.AllianceTag.string = "PlayerSetting_alliance".ToUILocale(), this.RankTag.string = "ActivityHeroTestTower_Rank".ToUILocale(), this.BPTag.string = "allianceBase_powerSimple".ToUILocale(), this.BattleBtnLabel.string = "SeniorArenaChallenge".ToUILocale(), this.EnemyTitle.string = "arena_rivalInfoText".ToUILocale(), this.BattleBtn.node.on("click", this.OnBattle, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._ladderRaceInfo = t[0], this._playerInfo = t[1]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigPlayerInfo(), this.ConfigFormationHeroes()
                }, t.prototype.ConfigPlayerInfo = function() {
                    if (!this._headComponent) {
                        var e = cc.instantiate(this._headPrefab);
                        e.setParent(this.HeadContainer), this._headComponent = e.getComponent(y.default)
                    }
                    this._headComponent.SetUI(this._playerInfo.HeadIcon, this._playerInfo.HeadFrame), this._headComponent.SetLevel(this._playerInfo.Level), this._headComponent.SetCountry(this._playerInfo.Country), this.PlayerName.string = this._playerInfo.Name, d.default.SetDesignationIcon(this._playerInfo.Designation, this.DesignationSprite), this.ServerValue.string = "S" + this._playerInfo.Zone, this.RankValue.string = this._ladderRaceInfo.Value1.toString(), this.BPValue.string = this._playerInfo.Power.toString(), this._playerInfo.AllianceName.length > 0 ? (this.AllianceValue.string = this._playerInfo.AllianceName, this.AllianceValue.node.color = this._blackClolor) : (this.AllianceValue.string = "PlayerSetting_noAlliance".ToUILocale(), this.AllianceValue.node.color = this._grayColor), this.FriendSprite.node.active = this._playerInfo.IsFriend, this.AllianceSprite.node.active = this._playerInfo.SameAlliance
                }, t.prototype.ConfigFormationHeroes = function() {
                    for (var e = 0; e < 5; e++) {
                        var t = cc.instantiate(this._itemPrefab);
                        t.setParent(this.ItemsNode);
                        var n = t.getComponent(m.ItemComponent),
                            o = this._playerInfo.Formations[0].Heros[e];
                        if (t.name = o.Sid.toString(), o && o.Sid > 0) {
                            var r = void 0;
                            o.TemplePosition > 0 && (r = o.TempleLevel), n.Init({
                                ItemId: o.HeroId,
                                Level: o.Level,
                                StarLevel: o.StarLevel,
                                TempleLevel: r
                            }, m.ItemComponentType.HeroInfo)
                        } else n.SetHeroSimpleState(), n.SetCustomIcon(g.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180)
                    }
                }, t.prototype.OnBattle = function() {
                    if (!d.default.IsCrossServerLadderChallengeEnable()) return g.UIUtlity.ShowFloatingHint("CrossServerChallengeTimeHint".ToUILocale());
                    if (_.default.IsSkipBattle) {
                        var e = u.DataCenter.Instance.GetDataById(c.UserFormation_Model, p.FormationIdType.MainLine);
                        this.OnStartBattle([e])
                    } else h.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattleFormationPanel.Path, this.OnStartBattle.bind(this), [4], {
                        SeniorReport: this._playerInfo
                    })
                }, t.prototype.OnStartBattle = function(e) {
                    if (!d.default.IsCrossServerLadderChallengeEnable()) return g.UIUtlity.ShowFloatingHint("CrossServerChallengeTimeHint".ToUILocale());
                    var t = new c.Req_CrossZone_LadderRaceChallenge;
                    t.TargetRank = this._ladderRaceInfo.Value1, t.Formations = e, t.SkipPlay = _.default.IsSkipBattle, u.RpcComponent.Instance.Call(t, this.OnChallengeDataRecieved.bind(this))
                }, t.prototype.OnChallengeDataRecieved = function(e) {
                    if (this.Close(), l.Game.EventDispatcher.Emit(C.EventKeys.EVENT_REFRESH_CROSSSERVER_LADDER, e.Targets), _.default.IsSkipBattle) {
                        var t = {
                                Reports: [e.Report],
                                MapType: p.MapType.CrossServerArena,
                                SettleParams: [e.BattleInfo]
                            },
                            o = n.SettlementPanelPath;
                        1 == e.Result ? I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementWinPanel.Path, o, t) : I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementFailPanel.Path, o, t)
                    } else I.BattleManager.Instance.StartPlay(e.Report, {
                        CanCanel: !1,
                        CanRestart: !1,
                        CanSkipPlay: !0
                    });
                    l.Game.EventDispatcher.Emit(C.EventKeys.EVENT_REFRESH_CROSSSERVER_RANK, e.BattleInfo.AttackerInfo.Value1)
                }, t.InitBattle = function() {
                    var e = p.MapType.CrossServerArena;
                    l.Game.EventDispatcher.Only(p.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, this), l.Game.EventDispatcher.Only(p.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.SettleBattle = function(e) {
                    var t = this;
                    if (e.SettleParams && e.SettleParams.length > 0) {
                        var o = n.SettlementPanelPath,
                            r = e.SettleParams[0];
                        u.DataCenter.Instance.Uid == r.AttackerInfo.Uid == !!r.Result ? I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementWinPanel.Path, o, e) : I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementFailPanel.Path, o, e)
                    } else {
                        var i = new c.Req_Map_BattleSettlement;
                        i.MapType = p.MapType.CrossServerArena, u.RpcComponent.Instance.Call(i, function(n) {
                            e.SettleParams = [JSON.parse(n.StringParam).BattleInfo];
                            var o = t.SettlementPanelPath;
                            1 == n.Result ? I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementWinPanel.Path, o, e) : I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementFailPanel.Path, o, e)
                        })
                    }
                }, t.OnBattleSwitchToBackground = function() {
                    h.UIManager.Instance.QuitPanelStack(f.PanelConfig.CrossServerLadderPanel.Path)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemsNode.children.indexOf(t) && e > 0 && (this._playerInfo.Uid > 0 ? h.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroDetailPanel.Path, e, this._playerInfo.Uid, null, this._playerInfo.NotShow) : g.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale()))
                }, t.SettlementPanelPath = "CrossServerPortPanel/CrossServerSettlementComponent", i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Node)], t.prototype, "HeadContainer", void 0), i([S(cc.Label)], t.prototype, "PlayerName", void 0), i([S(cc.Label)], t.prototype, "ServerTag", void 0), i([S(cc.Label)], t.prototype, "ServerValue", void 0), i([S(cc.Label)], t.prototype, "AllianceTag", void 0), i([S(cc.Label)], t.prototype, "AllianceValue", void 0), i([S(cc.Label)], t.prototype, "RankTag", void 0), i([S(cc.Label)], t.prototype, "RankValue", void 0), i([S(cc.Label)], t.prototype, "BPTag", void 0), i([S(cc.Label)], t.prototype, "BPValue", void 0), i([S(cc.Label)], t.prototype, "EnemyTitle", void 0), i([S(cc.Node)], t.prototype, "ItemsNode", void 0), i([S(cc.Button)], t.prototype, "BattleBtn", void 0), i([S(cc.Label)], t.prototype, "BattleBtnLabel", void 0), i([S(cc.Sprite)], t.prototype, "FriendSprite", void 0), i([S(cc.Sprite)], t.prototype, "AllianceSprite", void 0), i([S(cc.Sprite)], t.prototype, "DesignationSprite", void 0), n = i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerLadderPanel": "CrossServerLadderPanel"
    }],
    ChallengeTaskListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "024f9k0qRhGZK7PGUNDPDW6", "ChallengeTaskListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../Components/Components"),
            u = e("../Components/ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Condition = null, t.OrangeButtonLabel = null, t.OrangeButton = null, t.GrayButtonLabel = null, t.GrayButton = null, t.ItemContainer = null, t.Mask = null, t.Progress = null, t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.GrayButton.node.on("click", this.OnGrayButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.OrangeButton.node.off("click", this.OnOrangeButtonClick, this), this.GrayButton.node.off("click", this.OnGrayButtonClick, this)
                }, t.prototype.SetTitle = function(e, t, n) {
                    return this.Title.string = e, this.Condition.string = t, this._index = n, this
                }, t.prototype.SetState = function(e, t, n) {
                    this.Mask.active = n, this.GrayButton.node.active = !this.Mask.active && (null == e || e < t), this.OrangeButton.node.active = !this.GrayButton.node.active && !this.Mask.active, this.GrayButtonLabel.string = "mall_notReach".ToUILocale(), this.OrangeButtonLabel.string = "receive".ToUILocale(), this.Progress.string = "({0}/{1})".Fmt(e, t), this._items.forEach(function(e) {
                        e.node.active && e.SetReceivedTagState(n)
                    })
                }, t.prototype.SetItems = function(e, t) {
                    if (this._items.length > e.length) {
                        for (var n = 0; n < e.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = e.length; n < this._items.length; n++) this._items[n].node.active = !1, t.Put(this._items[n].node);
                        this._items.length = e.length
                    } else {
                        for (n = 0; n < this._items.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = this._items.length; n < e.length; n++) {
                            var o = t.Get();
                            o.active = !0, o.setParent(this.ItemContainer), this._items[n] = o.getComponent(u.ItemComponent), this.SetItem(n, e[n].Items)
                        }
                    }
                    return this
                }, t.prototype.SetItem = function(e, t) {
                    var n = c.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, t[0]);
                    this._items[e].Init({
                        ItemId: t[0],
                        Count: t[1]
                    }, n.Star ? u.ItemComponentType.ItemWithStar : u.ItemComponentType.ItemCommon)
                }, t.prototype.OnOrangeButtonClick = function() {
                    s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_MALL_BUTTONCLICK, this._index)
                }, t.prototype.OnGrayButtonClick = function() {}, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Label)], t.prototype, "Condition", void 0), i([h(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([h(cc.Button)], t.prototype, "OrangeButton", void 0), i([h(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([h(cc.Button)], t.prototype, "GrayButton", void 0), i([h(cc.Node)], t.prototype, "ItemContainer", void 0), i([h(cc.Node)], t.prototype, "Mask", void 0), i([h(cc.Label)], t.prototype, "Progress", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ChallengeTaskPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cc86eu8ZhVPFquBdfPtnLBD", "ChallengeTaskPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CustomLayout"),
            g = e("../Components/ItemComponent"),
            m = e("../Components/SkillItemComponent"),
            I = e("./ChallengeTaskListItem"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Title = null, t.Tag = null, t.BG = null, t.BossSkillTag = null, t.ChallengeTaskLabel = null, t.View = null, t.SkillContainer = null, t._initLayout = !0, t._skillsIdArray = [], t._skills = [], t._tasks = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), c.Game.EventDispatcher.On(p.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), c.Game.EventDispatcher.Off(p.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.SkillItemComponent)];
                                case 1:
                                    return t._skillItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "bossWar_task".ToUILocale(), this.Tag.string = "openServer_heroTest_bossInfo".ToUILocale(), this.BossSkillTag.string = "openServer_heroTest_bossSkill".ToUILocale(), this.ChallengeTaskLabel.string = "bossWar_task".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._singlePrefab = t[0], this._itemPool = t[1], this._skillsIdArray = t[2], this._tasks = t[3], this._activityId = t[4], this._bannerName = t[5], this._locals = t[6], this.SetBG();
                    for (var n = 0; n < this._skillsIdArray.length; n++) {
                        if (null == this._skills[n]) {
                            var o = cc.instantiate(this._skillItemPrefab);
                            o.setParent(this.SkillContainer), this._skills[n] = o.getComponent(m.default)
                        }
                        this._skills[n].node.active = !0, this._skills[n].Init(this._skillsIdArray[n])
                    }
                    for (n = this._skillsIdArray.length; n < this._skills.length; n++) this._skills[n].node.active = !1
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._initLayout && (this.View.Init(this._singlePrefab), this._initLayout = !1), this.View.RenderLayOut(this._tasks.length)
                }, t.prototype.OnItemClick = function(e, t) {
                    "gridNice" == t.parent.name && f.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    if (t == this.View) {
                        var o = h.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId);
                        this._tasks.sort(function(e, t) {
                            var n = 0,
                                r = 0;
                            switch (e.Condition) {
                                case 1:
                                    o.IntArray.length >= 1 && (n = o.IntArray[0]);
                                    break;
                                case 2:
                                    n = o.IntValue;
                                    break;
                                case 3:
                                    o.IntArray.length >= 3 && (n = o.IntArray[2])
                            }
                            switch (t.Condition) {
                                case 1:
                                    o.IntArray.length >= 1 && (r = o.IntArray[0]);
                                    break;
                                case 2:
                                    r = o.IntValue;
                                    break;
                                case 3:
                                    o.IntArray.length >= 3 && (r = o.IntArray[2])
                            }
                            return 1 == o.IntMap[e.Id] && 1 != o.IntMap[t.Id] ? 1 : 1 != o.IntMap[e.Id] && 1 == o.IntMap[t.Id] ? -1 : n >= e.TotalCount && r < t.TotalCount ? -1 : n < e.TotalCount && r >= t.TotalCount ? 1 : e.Id - t.Id
                        }), e.forEach(function(e, t) {
                            var r = n._tasks[t],
                                i = e.getComponent(I.default);
                            i.SetItems(r.Rewards, n._itemPool).SetTitle(n._locals[r.Id + 100], n._locals[r.Id + 200], t);
                            var a = 0;
                            switch (r.Condition) {
                                case 1:
                                    o.IntArray.length >= 1 && (a = o.IntArray[0]);
                                    break;
                                case 2:
                                    a = o.IntValue;
                                    break;
                                case 3:
                                    o.IntArray.length >= 3 && (a = o.IntArray[2])
                            }
                            i.SetState(a, r.TotalCount, 1 == o.IntMap[r.Id])
                        })
                    }
                }, t.prototype.OnButtonClick = function() {
                    var e = new l.Req_Activity_HeroTestTaskReward;
                    e.ActivityId = this._activityId, e.TaskIds = [];
                    for (var t = h.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityId), n = t.IntArray[0] || 0, o = t.IntValue || 0, r = t.IntArray[2] || 0, i = 0, a = this._tasks; i < a.length; i++) {
                        var s = a[i];
                        if (!t.IntMap[s.Id]) {
                            if (1 == s.Condition) {
                                if (n < s.TotalCount) continue
                            } else if (2 == s.Condition) {
                                if (o < s.TotalCount) continue
                            } else {
                                if (3 != s.Condition) continue;
                                if (r < s.TotalCount) continue
                            }
                            e.TaskIds.push(s.Id)
                        }
                    }
                    h.RpcComponent.Instance.Call(e, function(e) {
                        f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.SetBG = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, u.default.LoadActivityTexture(this._bannerName)];
                                case 1:
                                    return e._bg = t.sent(), this.isValid ? (this.BG.spriteFrame = this._bg, [2]) : (c.AssetsManager.Instance.UnloadAsset(this._bg), [2])
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    c.AssetsManager.Instance.UnloadAsset(this._bg)
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Label)], t.prototype, "Tag", void 0), i([v(cc.Sprite)], t.prototype, "BG", void 0), i([v(cc.Label)], t.prototype, "BossSkillTag", void 0), i([v(cc.Label)], t.prototype, "ChallengeTaskLabel", void 0), i([v(y.default)], t.prototype, "View", void 0), i([v(cc.Node)], t.prototype, "SkillContainer", void 0), i([C], t)
            }(c.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./ChallengeTaskListItem": "ChallengeTaskListItem"
    }],
    ChampionPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "191a2KBu4RE/bfaQEN9+WOa", "ChampionPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChampionPreviewPanelType = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/CustomToggleRollingLabel"),
            m = e("../Components/ItemComponent"),
            I = e("./ChampionPreviewSelectHeroPanel"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../Util/TimeUtil"),
            v = e("./CrossServerChampionShipPanel"),
            b = e("./CrossServerChampionStartPanel"),
            S = e("../../RedDot/RedDotManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.Common = 0] = "Common", e[e.AllZone = 1] = "AllZone", e[e.Activity = 2] = "Activity"
        })(n.ChampionPreviewPanelType || (n.ChampionPreviewPanelType = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.CurrencyBarContainer = null, t.ToggleScrollView = null, t.ToggleContainer = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.PreviewSuccessTag = null, t.PreviewFailTag = null, t.PreviewSuccessRewardNode = null, t.PreviewFailRewardNode = null, t.PreviewTag = null, t.SelectButton = null, t.SelectButtonLabel = null, t.SelectHeroContent = null, t.AvatarNode = null, t.SelectTip = null, t.Tip = null, t.ReturnButton = null, t.PreviewRankButton = null, t.PreviewRankButtonLabel = null, t._currentTab = h.ForecastContentType.WinUid, t._toggleComponentArray = [], t._forecastDataArray = [], t._failRewardData = [], t._successRewardData = [], t._loadedAssets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_CHAMPIONPREVIEW_CLEAR_FORECASTDATA, this.ClearForcastData, this)
            }, t.prototype.onDisable = function() {
                l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CHAMPIONPREVIEW_CLEAR_FORECASTDATA, this.ClearForcastData, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.CurrencyBarComponent, cc.Prefab), n = this.LoadDynamicAsset("Buttons/ToggleTopRollingLabel", cc.Prefab), o = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._currencyBarPrefab = e[0], r._togglePrefab = e[1], r._itemPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.PreviewSuccessTag.string = "ChampionPreview_Preview_Success".ToUILocale(), this.PreviewFailTag.string = "ChampionPreview_Preview_Fail".ToUILocale(), this.SelectButtonLabel.string = "ChampionPreview_Select".ToUILocale(), this.Tip.string = "ChampionPreview_Tip".ToUILocale(), this.PreviewRankButtonLabel.string = "ChampionPreview_Rank".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.SelectButton.node.on("click", this.OnSelectButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.PreviewRankButton.node.on("click", this.OnPreviewRankButtonClick, this)
            }, t.prototype.InitData = function(t) {
                if (e.prototype.InitData.call(this), this._panelType = t[0], this._forecastDataArray[h.ForecastContentType.WinUid] = t[1], this._panelType == b.ChampionShipType.Activity) {
                    this._activityConfig = d.DataCenter.Instance.ActivityConfigs[t[2]], this._roundIndex = t[3];
                    var n = _.default.Instance.ComputeActivitStartTime(this._activityConfig.Common),
                        o = d.RpcComponent.Instance.ServerTime,
                        r = this._activityConfig.__Rounds[this._roundIndex].Knockout,
                        i = n + (r[0] - 1) * h.Etc.DayDuration + r[1] * h.Etc.HourDuration + this._activityConfig.CustomPart.Time * h.Etc.SecondDuration * 6;
                    this._isRaceEnd = i < o;
                    var a = this._activityConfig.__Rounds[this._roundIndex].Preliminary,
                        s = n + (a[0] - 1) * h.Etc.DayDuration + a[1] * h.Etc.HourDuration;
                    this._isRaceOpen = s < o;
                    var l = n + (r[0] - 1) * h.Etc.DayDuration + r[1] * h.Etc.HourDuration;
                    this._isKnockoutOpen = l < o;
                    var c = n + (this._activityConfig.__Rounds[this._roundIndex].Apply - 1) * h.Etc.DayDuration + h.SpecialDataKey.StartHour * h.Etc.HourDuration;
                    this._isRaceApplyOpen = c < o, this._failRewardData = this._activityConfig.__Rounds[this._roundIndex].ForecastWrongRewards, this._successRewardData = this._activityConfig.__Rounds[this._roundIndex].ForecastCorrectRewards
                } else if (this._panelType == b.ChampionShipType.AllZone) {
                    this._roundIndex = t[3], o = d.RpcComponent.Instance.ServerTime;
                    var p = d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceStartWeekDay"),
                        f = d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceStartHour"),
                        y = (d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceRunDataHour"), d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceRoundGuessDuration") + d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceRoundBattleDuration")),
                        g = C.TimeUtil.GetMondayClock0Ts(o) + h.Etc.DayDuration * (p - 1),
                        m = g + h.Etc.HourDuration * h.SpecialDataKey.StartHour,
                        I = g + h.Etc.HourDuration * f;
                    i = I + y * (0 + v.ChampionShipRound.RACE_64_ROUND + v.ChampionShipRound.RACE_8_ROUND), this._isRaceEnd = o < g || i < o, this._isRaceOpen = I < o, this._isKnockoutOpen = m < o, this._isRaceApplyOpen = m < o;
                    var S = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.ForecastWinRewards);
                    this._successRewardData = S.Data2;
                    var w = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.ForecastFalseRewards);
                    this._failRewardData = w.Data2
                }
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.SetPreviewTitleAndReward(), this.SetToggleContainer()), this.RequestCurrentForecastData(), this.SetRedDot()
            }, t.prototype.SetPreviewTitleAndReward = function() {
                switch (this._panelType) {
                    case b.ChampionShipType.Activity:
                        this.Title.string = "ActivityChampion_Title".ToUILocale();
                        break;
                    case b.ChampionShipType.AllZone:
                        this.Title.string = "AllZoneChampionShip_PanelName".ToUILocale()
                }
                this.SetRewardContainer(this._failRewardData, this.PreviewFailRewardNode), this.SetRewardContainer(this._successRewardData, this.PreviewSuccessRewardNode)
            }, t.prototype.SetRewardContainer = function(e, t) {
                for (var n = 0; n < e.length; n++) {
                    var o = cc.instantiate(this._itemPrefab);
                    o.setParent(t);
                    var r = e[n].Items;
                    o.getComponent(m.ItemComponent).Init({
                        ItemId: r[0],
                        Count: r[1]
                    })
                }
            }, t.prototype.SetToggleContainer = function() {
                for (var e = h.ForecastContentType.WinUid; e < h.ForecastContentType.None; e++) {
                    var t = cc.instantiate(this._togglePrefab);
                    t.setParent(this.ToggleContainer), t.name = e.toString(), t.on("toggle", this.OnSwitchTab, this);
                    var n = t.getComponent(g.default);
                    n.Init(("ChampionPreview_Toggle_" + e).ToUILocale()), this._toggleComponentArray[e] = n
                }
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentTab != t && (this._currentTab = t, this.RequestCurrentForecastData())
            }, t.prototype.RequestCurrentForecastData = function() {
                var e = this;
                if (this._forecastDataArray[this._currentTab]) this.SetCurrentShow();
                else {
                    var t = new p.Req_CrossZone_GetForecastData;
                    t.Id = this._panelType == b.ChampionShipType.Activity ? 1e4 * this._activityConfig._id + this._roundIndex + 1 : h.ForecastType.AllZoneChampionRace, t.Type = this._currentTab, t.DataType = 1, t.IsGetRank = 0, d.RpcComponent.Instance.Call(t, function(t) {
                        e._forecastDataArray[e._currentTab] = t, e.SetCurrentShow()
                    })
                }
            }, t.prototype.SetCurrentShow = function() {
                this.PreviewTag.string = ("ChampionPreview_Tag_" + this._currentTab).ToUILocale(), this.LeftArrowButton.node.active = this._currentTab > h.ForecastContentType.WinUid, this.RightArrowButton.node.active = this._currentTab < h.ForecastContentType.None - 1;
                var e, t = this._forecastDataArray[this._currentTab],
                    n = t.MyForecast && !!t.MyForecast.Key || this._isRaceEnd && t.Result && !!t.Result.Key;
                switch (this.SelectHeroContent.active = n, this._currentTab) {
                    case h.ForecastContentType.WinUid:
                        e = this._panelType == b.ChampionShipType.AllZone ? (!t.MyForecast || !t.MyForecast.Key) && this._isRaceApplyOpen && !this._isRaceOpen : (!t.MyForecast || !t.MyForecast.Key) && this._isRaceApplyOpen && !this._isKnockoutOpen;
                        var o = t.MyForecast && t.MyForecast.Info ? t.MyForecast.Info.HeadIcon : null,
                            r = this._isRaceEnd && t.Result && t.Result.Info ? t.Result.Info.HeadIcon : o;
                        r && this.SetAvatarNode(r);
                        break;
                    case h.ForecastContentType.HeroAppearanceRate:
                    case h.ForecastContentType.HeroDamage:
                    case h.ForecastContentType.HeroTakeDamage:
                    case h.ForecastContentType.HeroHeal:
                        e = (!t.MyForecast || !t.MyForecast.Key) && this._isRaceApplyOpen && !this._isRaceOpen;
                        var i = t.MyForecast && t.MyForecast.Key ? t.MyForecast.Key : null,
                            a = this._isRaceEnd && t.Result && t.Result.Key ? t.Result.Key : i;
                        a && this.SetAvatarNode(a)
                }
                this.SelectButton.node.active = e, this.SelectTip.node.active = !n && !e, this.SelectTip.string = this._isRaceEnd ? "ChampionPreview_None_Player".ToUILocale() : "ChampionPreview_Timeout".ToUILocale()
            }, t.prototype.SetAvatarNode = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this._avatarId == e ? [2] : (this.AvatarNode.destroyAllChildren(), this._avatarId = e, (t = d.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, this._avatarId)) || (t = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._avatarId)), n = "Hero_" + t.Model + "/HeroAvatar", [4, l.AssetsManager.Instance.LoadAsset(n)]);
                            case 1:
                                return o = i.sent(), this.isValid ? (o.name == n ? (this.AvatarNode.destroyAllChildren(), this._loadedAssets.push(o), (r = cc.instantiate(o)).setParent(this.AvatarNode), r.getComponent(sp.Skeleton).setAnimation(0, h.SkillAnimationType.Standby, !0)) : l.AssetsManager.Instance.UnloadAsset(o), [2]) : (l.AssetsManager.Instance.UnloadAsset(o), [2])
                        }
                    })
                })
            }, t.prototype.SetCurrencyBarContainer = function() {
                switch (this._panelType) {
                    case b.ChampionShipType.Activity:
                    case b.ChampionShipType.AllZone:
                }
            }, t.prototype.SetRedDot = function() {
                var e = this._panelType == b.ChampionShipType.Activity ? [this._activityConfig._id, this._roundIndex + 1] : null;
                S.RedDotManager.Instance.BindInstance(this.PreviewRankButton.node, S.RedDotManager.Instance.InstanceRedDot.ChampionPreviewRankButton, {
                    extra: e
                })
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "ChampionPreview_Rule_Name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["ChampionPreview_Rule_Content".ToUILocale()]
                };
                c.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnLeftArrowButtonClick = function() {
                this.OnArrowButtonClick(this._currentTab - 1)
            }, t.prototype.OnRightArrowButtonClick = function() {
                this.OnArrowButtonClick(this._currentTab + 1)
            }, t.prototype.OnArrowButtonClick = function(e) {
                var t = this._toggleComponentArray[e];
                t.isChecked = !0, this.OnSwitchTab(t), this.ToggleScrollView.scrollToOffset(new cc.Vec2((this._currentTab - 1) * t.node.width, 0))
            }, t.prototype.OnSelectButtonClick = function() {
                var e = {};
                switch (e.ForecastType = this._currentTab, e.ActivityId = this._panelType == b.ChampionShipType.Activity ? this._activityConfig._id : null, e.Round = this._panelType == b.ChampionShipType.Activity ? this._roundIndex : null, this._currentTab) {
                    case h.ForecastContentType.WinUid:
                        if (e.PanelType = I.ChampionPreviewSelectPanelType.Player, this._panelType == b.ChampionShipType.Activity)(t = new p.Req_Activity_ChampionGetContestants).ActivityId = this._activityConfig._id, t.Round = this._roundIndex + 1, d.RpcComponent.Instance.Call(t, function(t) {
                            e.PlayerInfos = t.Infos, l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ChampionPreviewSelectHeroPanel.Path, e)
                        });
                        else if (this._panelType == b.ChampionShipType.AllZone) {
                            var t = new p.Req_AllZoneChampion_GetContestants;
                            d.RpcComponent.Instance.Call(t, function(t) {
                                e.PlayerInfos = t.Infos, l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ChampionPreviewSelectHeroPanel.Path, e)
                            })
                        }
                        break;
                    case h.ForecastContentType.HeroAppearanceRate:
                    case h.ForecastContentType.HeroDamage:
                    case h.ForecastContentType.HeroTakeDamage:
                    case h.ForecastContentType.HeroHeal:
                        e.PanelType = I.ChampionPreviewSelectPanelType.Hero, l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ChampionPreviewSelectHeroPanel.Path, e)
                }
            }, t.prototype.OnReturnButtonClick = function() {
                l.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnPreviewRankButtonClick = function() {
                var e = this,
                    t = new p.Req_CrossZone_GetForecastData;
                t.Id = this._panelType == b.ChampionShipType.Activity ? 1e4 * this._activityConfig._id + this._roundIndex + 1 : h.ForecastType.AllZoneChampionRace, t.Type = h.ForecastContentType.WinUid, t.DataType = this._isRaceEnd ? 2 : 1, t.IsGetRank = 1, d.RpcComponent.Instance.Call(t, function(t) {
                    e._panelType == b.ChampionShipType.Activity ? l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ChampionPreviewRankPanel.Path, e._panelType, t, e._activityConfig._id, e._roundIndex) : l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ChampionPreviewRankPanel.Path, e._panelType, t, null, e._roundIndex)
                })
            }, t.prototype.ClearForcastData = function() {
                this._forecastDataArray[this._currentTab] = null
            }, t.prototype.OnItemClick = function(e, t) {
                -1 == this.PreviewFailRewardNode.children.indexOf(t) && -1 == this.PreviewSuccessRewardNode.children.indexOf(t) || c.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
            }, t.prototype.onDestroy = function() {
                for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                this._loadedAssets = []
            }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.Node)], t.prototype, "CurrencyBarContainer", void 0), i([A(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([A(cc.Node)], t.prototype, "ToggleContainer", void 0), i([A(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([A(cc.Button)], t.prototype, "RightArrowButton", void 0), i([A(cc.Label)], t.prototype, "PreviewSuccessTag", void 0), i([A(cc.Label)], t.prototype, "PreviewFailTag", void 0), i([A(cc.Node)], t.prototype, "PreviewSuccessRewardNode", void 0), i([A(cc.Node)], t.prototype, "PreviewFailRewardNode", void 0), i([A(cc.Label)], t.prototype, "PreviewTag", void 0), i([A(cc.Button)], t.prototype, "SelectButton", void 0), i([A(cc.Label)], t.prototype, "SelectButtonLabel", void 0), i([A(cc.Node)], t.prototype, "SelectHeroContent", void 0), i([A(cc.Node)], t.prototype, "AvatarNode", void 0), i([A(cc.Label)], t.prototype, "SelectTip", void 0), i([A(cc.Label)], t.prototype, "Tip", void 0), i([A(cc.Button)], t.prototype, "ReturnButton", void 0), i([A(cc.Button)], t.prototype, "PreviewRankButton", void 0), i([A(cc.Label)], t.prototype, "PreviewRankButtonLabel", void 0), i([P], t)
        }(l.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggleRollingLabel": "CustomToggleRollingLabel",
        "../Components/ItemComponent": "ItemComponent",
        "./ChampionPreviewSelectHeroPanel": "ChampionPreviewSelectHeroPanel",
        "./CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "./CrossServerChampionStartPanel": "CrossServerChampionStartPanel"
    }],
    ChampionPreviewRankListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "642cfxBXulLNrVidqwljful", "ChampionPreviewRankListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../../../Consts/Consts"),
            l = e("./HeadComponent"),
            c = e("./ItemComponent"),
            u = e("./CustomProgressBar"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PreviewTagNode = null, t.PreviewTag = null, t.RankTag = null, t.RankTagIcon = null, t.Name = null, t.PlayerHeadNode = null, t.ItemNode = null, t.ProgressCount = null, t.ProgressBar = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.PreviewTag.string = "AllZoneChampionShip_PredictButton".ToUILocale()
                }, t.prototype.Init = function(e) {
                    this._rankListData = e, this.SetTag(), this.SetItemNode()
                }, t.prototype.SetTag = function() {
                    this.PreviewTagNode.active = this._rankListData.MyRankData && this._rankListData.MyRankData.Key == this._rankListData.RankItemData.Key, this.ProgressCount.node.active = !this._rankListData.IsRaceEnd || this._rankListData.RankType != s.ForecastContentType.WinUid, this.ProgressBar.node.active = !this._rankListData.IsRaceEnd || this._rankListData.RankType != s.ForecastContentType.WinUid, this._rankListData.IsRaceEnd && this._rankListData.RankType == s.ForecastContentType.WinUid || (this.ProgressCount.string = this._rankListData.RankItemData.Value.FmtCurrency(), this.ProgressBar.progress = this._rankListData.RankItemData.Value / this._rankListData.MaxValue), this.RankTag.node.active = !1, this.RankTagIcon.node.active = !1, this._rankListData.RankIndex <= 3 ? (this.RankTagIcon.node.active = !0, this.RankTagIcon.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + this._rankListData.RankIndex)) : (this.RankTag.node.active = !0, this.RankTag.string = this._rankListData.RankIndex.toString())
                }, t.prototype.SetItemNode = function() {
                    switch (this.PlayerHeadNode.active = !1, this.ItemNode.active = !1, this._rankListData.RankType) {
                        case s.ForecastContentType.WinUid:
                            if (!this._rankListData.RankItemData.Info) return;
                            this.PlayerHeadNode.active = !0, this.Name.string = this._rankListData.RankItemData.Info.Name, this._headComponent || ((e = cc.instantiate(this._rankListData.HeadPrefab)).setParent(this.PlayerHeadNode), this._headComponent = e.getComponent(l.default)), this._headComponent.SetUI(this._rankListData.RankItemData.Info.HeadIcon, this._rankListData.RankItemData.Info.HeadFrame, this._rankListData.RankItemData.Info.Title), this._headComponent.SetLevel(this._rankListData.RankItemData.Info.Level);
                            break;
                        case s.ForecastContentType.HeroAppearanceRate:
                        case s.ForecastContentType.HeroDamage:
                        case s.ForecastContentType.HeroTakeDamage:
                        case s.ForecastContentType.HeroHeal:
                            var e;
                            this.ItemNode.active = !0, this.Name.string = this._rankListData.RankItemData.Key.ToHeroTitle(), this._itemComponent || ((e = cc.instantiate(this._rankListData.ItemPrefab)).setParent(this.ItemNode), this._itemComponent = e.getComponent(c.ItemComponent)), this._itemComponent.Init({
                                ItemId: this._rankListData.RankItemData.Key
                            }, c.ItemComponentType.HeroInfo)
                    }
                }, i([h(cc.Node)], t.prototype, "PreviewTagNode", void 0), i([h(cc.Label)], t.prototype, "PreviewTag", void 0), i([h(cc.Label)], t.prototype, "RankTag", void 0), i([h(cc.Sprite)], t.prototype, "RankTagIcon", void 0), i([h(cc.Label)], t.prototype, "Name", void 0), i([h(cc.Node)], t.prototype, "PlayerHeadNode", void 0), i([h(cc.Node)], t.prototype, "ItemNode", void 0), i([h(cc.Label)], t.prototype, "ProgressCount", void 0), i([h(u.default)], t.prototype, "ProgressBar", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomProgressBar": "CustomProgressBar",
        "./HeadComponent": "HeadComponent",
        "./ItemComponent": "ItemComponent"
    }],
    ChampionPreviewRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3627aDVLltJUrrTnskL7aLY", "ChampionPreviewRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../Components/CustomLayout"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/CustomToggleRollingLabel"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/ItemComponent"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../Components/ChampionPreviewRankListItem"),
            v = e("./CrossServerChampionStartPanel"),
            b = e("../../../Util/TimeUtil"),
            S = e("./CrossServerChampionShipPanel"),
            w = e("../../RedDot/RedDotManager"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.ToggleScrollView = null, t.ToggleContainer = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.LineNode = null, t.RankTag = null, t.PlayerTag = null, t.NumberTag = null, t.CustomLayout = null, t.RewardNode = null, t.RewardTag = null, t.RewardContainer = null, t.ReceiveButton = null, t.ReceiveButtonLabel = null, t.ReceiveIconNode = null, t._currentTab = h.ForecastContentType.WinUid, t._toggleComponentArray = [], t._forecastDataArray = [], t._rewardComponentArray = [], t._championShipFailRewardData = [], t._championShipSuccessRewardData = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityChampionPanel/Components/ChampionPreviewRankListItem", cc.Prefab), n = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("Buttons/ToggleTopRollingLabel", cc.Prefab), r = this.LoadDynamicAsset(y.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._listItemPrefab = e[0], i._itemPrefab = e[1], i._togglePrefab = e[2], i._headPrefab = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RankTag.string = "ActivityHeroTestTower_Rank".ToUILocale(), this.NumberTag.string = "ChampionPreview_Rank_Number_Tag".ToUILocale(), this.RewardTag.string = "reward".ToUILocale(), this.ReceiveButtonLabel.string = "receive".ToUILocale(), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this), this._panelType = t[0], this._forecastDataArray[h.ForecastContentType.WinUid] = t[1], this._panelType == v.ChampionShipType.Activity) {
                        this._activityConfig = d.DataCenter.Instance.ActivityConfigs[t[2]], this._roundIndex = t[3];
                        var n = this._activityConfig.__Rounds[this._roundIndex].Knockout,
                            o = m.default.Instance.ComputeActivitStartTime(this._activityConfig.Common) + (n[0] - 1) * h.Etc.DayDuration + n[1] * h.Etc.HourDuration + this._activityConfig.CustomPart.Time * h.Etc.SecondDuration * 6;
                        this._raceIsEnd = o < d.RpcComponent.Instance.ServerTime
                    } else if (this._panelType == v.ChampionShipType.AllZone) {
                        this._roundIndex = t[3];
                        var r = d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceStartWeekDay"),
                            i = d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceStartHour"),
                            a = d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceRoundGuessDuration") + d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceRoundBattleDuration"),
                            s = b.TimeUtil.GetMondayClock0Ts(d.RpcComponent.Instance.ServerTime) + h.Etc.DayDuration * (r - 1);
                        o = s + h.Etc.HourDuration * i + a * (S.ChampionShipRound.RACE_64_ROUND + S.ChampionShipRound.RACE_8_ROUND), this._raceIsEnd = d.RpcComponent.Instance.ServerTime < s || o < d.RpcComponent.Instance.ServerTime;
                        var l = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.ForecastWinRewards);
                        this._championShipSuccessRewardData = l.Data2;
                        var c = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.ForecastFalseRewards);
                        this._championShipFailRewardData = c.Data2
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetToggleContainer(), this.CustomLayout.Init(this._listItemPrefab)), this.RefreshData(), this.RequestCurrentForecastData(), this.SetRedDot()
                }, t.prototype.SetToggleContainer = function() {
                    for (var e = h.ForecastContentType.WinUid; e < h.ForecastContentType.None; e++) {
                        var t = cc.instantiate(this._togglePrefab);
                        t.setParent(this.ToggleContainer), t.name = e.toString(), t.on("toggle", this.OnSwitchTab, this);
                        var n = t.getComponent(g.default);
                        n.Init(("ChampionPreview_Toggle_" + e).ToUILocale()), this._toggleComponentArray[e] = n
                    }
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._currentTab != t && (this._currentTab = t, this.RequestCurrentForecastData())
                }, t.prototype.RefreshData = function() {
                    this._panelType == v.ChampionShipType.Activity ? this._playerModel = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id) : this._panelType == v.ChampionShipType.AllZone && (this._championRewardGotState = d.DataCenter.Instance.GetSimpleData(h.UserDataKey.AllZoneChampionRaceRewardsState) ? d.DataCenter.Instance.GetSimpleData(h.UserDataKey.AllZoneChampionRaceRewardsState).IntArray : [])
                }, t.prototype.RequestCurrentForecastData = function() {
                    var e = this;
                    if (this._forecastDataArray[this._currentTab]) this.SetCurrentShow();
                    else {
                        var t = new p.Req_CrossZone_GetForecastData;
                        t.Id = this._panelType == v.ChampionShipType.Activity ? 1e4 * this._activityConfig._id + this._roundIndex + 1 : h.ForecastType.AllZoneChampionRace, t.Type = this._currentTab, t.DataType = this._raceIsEnd ? 2 : 1, t.IsGetRank = 1, d.RpcComponent.Instance.Call(t, function(t) {
                            e._forecastDataArray[e._currentTab] = t, e.SetCurrentShow()
                        })
                    }
                }, t.prototype.SetCurrentShow = function() {
                    switch (this.Title.string = ("ChampionPreview_Tag_" + this._currentTab).ToUILocale(), this.LeftArrowButton.node.active = this._currentTab > h.ForecastContentType.WinUid, this.RightArrowButton.node.active = this._currentTab < h.ForecastContentType.None - 1, this.NumberTag.string = this._raceIsEnd ? ("ChampionPreview_Toggle_" + this._currentTab).ToUILocale() : "ChampionPreview_Rank_Number_Tag".ToUILocale(), this.SetRewardContainer(), this.CustomLayout.RenderLayOut(this._forecastDataArray[this._currentTab].Rows.length), this.NumberTag.node.active = !0, this.LineNode.active = !0, this._currentTab) {
                        case h.ForecastContentType.WinUid:
                            this.NumberTag.node.active = !this._raceIsEnd, this.LineNode.active = !this._raceIsEnd, this.PlayerTag.string = "ChampionPreview_Rank_Player_Tag".ToUILocale();
                            break;
                        case h.ForecastContentType.HeroAppearanceRate:
                        case h.ForecastContentType.HeroDamage:
                        case h.ForecastContentType.HeroTakeDamage:
                        case h.ForecastContentType.HeroHeal:
                            this.PlayerTag.string = "ChampionPreview_Rank_Hero_Tag".ToUILocale()
                    }
                    this.SetRedDot()
                }, t.prototype.SetRewardContainer = function() {
                    if (this.RewardNode.active = !1, this._raceIsEnd && this._forecastDataArray[this._currentTab].MyForecast) {
                        this.RewardNode.active = !0;
                        var e = void 0;
                        this._panelType == v.ChampionShipType.Activity ? (e = this._forecastDataArray[this._currentTab].MyForecast.Key == this._forecastDataArray[this._currentTab].Result.Key ? this._activityConfig.__Rounds[this._roundIndex].ForecastCorrectRewards : this._activityConfig.__Rounds[this._roundIndex].ForecastWrongRewards, this.ReceiveButton.node.active = this._playerModel.ForecastMap[this._roundIndex + 1] && 1 == this._playerModel.ForecastMap[this._roundIndex + 1].Items[this._currentTab - 1], this.ReceiveIconNode.active = this._playerModel.ForecastMap[this._roundIndex + 1] && 2 == this._playerModel.ForecastMap[this._roundIndex + 1].Items[this._currentTab - 1]) : this._panelType == v.ChampionShipType.AllZone && (e = this._forecastDataArray[this._currentTab].MyForecast.Key == this._forecastDataArray[this._currentTab].Result.Key ? this._championShipSuccessRewardData : this._championShipFailRewardData, this.ReceiveButton.node.active = 1 == this._championRewardGotState[this._currentTab], this.ReceiveIconNode.active = 2 == this._championRewardGotState[this._currentTab]);
                        for (var t = 0; t < e.length; t++) {
                            var n = this._rewardComponentArray[t];
                            if (!n) {
                                var o = cc.instantiate(this._itemPrefab);
                                o.setParent(this.RewardContainer), n = o.getComponent(I.ItemComponent), this._rewardComponentArray[t] = n
                            }
                            n.node.active = !0, n.Init({
                                ItemId: e[t].Items[0],
                                Count: e[t].Items[1]
                            })
                        }
                        if (e.length < this._rewardComponentArray.length)
                            for (t = e.length; t < this._rewardComponentArray.length; t++) this._rewardComponentArray[t].node.active = !1
                    }
                }, t.prototype.SetRedDot = function() {
                    var e = this._panelType == v.ChampionShipType.Activity ? [this._activityConfig._id, this._roundIndex + 1] : null;
                    w.RedDotManager.Instance.BindInstance(this.ReceiveButton.node, w.RedDotManager.Instance.InstanceRedDot.ChampionPreviewRewardButton, {
                        Value1: this._currentTab,
                        extra: e
                    })
                }, t.prototype.OnLeftArrowButtonClick = function() {
                    this.OnArrowButtonClick(this._currentTab - 1)
                }, t.prototype.OnRightArrowButtonClick = function() {
                    this.OnArrowButtonClick(this._currentTab + 1)
                }, t.prototype.OnArrowButtonClick = function(e) {
                    var t = this._toggleComponentArray[e];
                    t.isChecked = !0, this.OnSwitchTab(t), this.ToggleScrollView.scrollToOffset(new cc.Vec2((this._currentTab - 1) * t.node.width, 0))
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = new p.Req_CrossZone_GetForecastRewards;
                    e.Id = this._panelType == v.ChampionShipType.Activity ? 1e4 * this._activityConfig._id + this._roundIndex + 1 : h.ForecastType.AllZoneChampionRace, e.ContentType = this._currentTab, d.RpcComponent.Instance.Call(e, function(e) {
                        c.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContainer.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    if (t == this.CustomLayout) {
                        var n = {};
                        n.HeadPrefab = this._headPrefab, n.ItemPrefab = this._itemPrefab, n.MaxValue = this._forecastDataArray[this._currentTab].Rows[0] ? this._forecastDataArray[this._currentTab].Rows[0].Value : 1, n.RankType = this._currentTab, n.MyRankData = this._forecastDataArray[this._currentTab].MyForecast, n.IsRaceEnd = this._raceIsEnd;
                        var o = this._forecastDataArray[this._currentTab].Rows;
                        e.forEach(function(e, t) {
                            n.RankIndex = Number(t) + 1, n.RankItemData = o[t], e.getComponent(C.default).Init(n)
                        })
                    }
                }, i([T(cc.Label)], t.prototype, "Title", void 0), i([T(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([T(cc.Node)], t.prototype, "ToggleContainer", void 0), i([T(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([T(cc.Button)], t.prototype, "RightArrowButton", void 0), i([T(cc.Node)], t.prototype, "LineNode", void 0), i([T(cc.Label)], t.prototype, "RankTag", void 0), i([T(cc.Label)], t.prototype, "PlayerTag", void 0), i([T(cc.Label)], t.prototype, "NumberTag", void 0), i([T(f.default)], t.prototype, "CustomLayout", void 0), i([T(cc.Node)], t.prototype, "RewardNode", void 0), i([T(cc.Label)], t.prototype, "RewardTag", void 0), i([T(cc.Node)], t.prototype, "RewardContainer", void 0), i([T(cc.Button)], t.prototype, "ReceiveButton", void 0), i([T(cc.Label)], t.prototype, "ReceiveButtonLabel", void 0), i([T(cc.Node)], t.prototype, "ReceiveIconNode", void 0), i([A], t)
            }(l.BaseUIPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ChampionPreviewRankListItem": "ChampionPreviewRankListItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggleRollingLabel": "CustomToggleRollingLabel",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "./CrossServerChampionStartPanel": "CrossServerChampionStartPanel"
    }],
    ChampionPreviewSelectHeroItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "39e4cihCzZE9JwCKhoiwvTS", "ChampionPreviewSelectHeroItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Panel/ChampionPreviewSelectHeroPanel"),
            s = e("./ItemComponent"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.ItemNode = null, t.Name = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._panelType = e, this._itemPrefab = o, this._config = t, this._mainPanel = r, this.Bg.node.active = !1, t.Id == n && this._mainPanel.OnSelectItemNode(this, this._config.Id), this.SetItemNode()
                }, t.prototype.SetItemNode = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemNode), this._itemComponent = e.getComponent(s.ItemComponent), e.getComponent(cc.BlockInputEvents).enabled = !1
                    }
                    switch (this._panelType) {
                        case a.ChampionPreviewSelectPanelType.Hero:
                            this._itemComponent.Init({
                                ItemId: this._config.Id,
                                Star: this._config.StarLevel
                            }, s.ItemComponentType.HeroInfo), this.Name.string = this._config.Id.ToHeroTitle();
                            break;
                        case a.ChampionPreviewSelectPanelType.Pet:
                            this._itemComponent.Init({
                                ItemId: this._config.Id,
                                Star: this._config.MaxStar
                            }, s.ItemComponentType.Pet), this.Name.string = this._config.Id.ToPetName();
                            break;
                        case a.ChampionPreviewSelectPanelType.PowerCore:
                            this._itemComponent.Init({
                                ItemId: this._config.Id,
                                Star: this._config.Star
                            }), this.Name.string = this._config.Id.ToItemName()
                    }
                }, t.prototype.OnNodeClick = function() {
                    this._mainPanel.OnSelectItemNode(this, this._config.Id)
                }, t.prototype.SetSelectBgState = function(e) {
                    this.Bg.node.active = e
                }, i([u(cc.Sprite)], t.prototype, "Bg", void 0), i([u(cc.Node)], t.prototype, "ItemNode", void 0), i([u(cc.Label)], t.prototype, "Name", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../Panel/ChampionPreviewSelectHeroPanel": "ChampionPreviewSelectHeroPanel",
        "./ItemComponent": "ItemComponent"
    }],
    ChampionPreviewSelectHeroPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7e573oDu1lDR7/adwYXvIrX", "ChampionPreviewSelectHeroPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChampionPreviewSelectPanelType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../../Consts/Consts"),
            y = e("../Components/CustomLayout"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Components/ChampionPreviewSelectHeroItem"),
            _ = e("../Components/HeroElementGroup"),
            C = e("../Components/ChampionPreviewSelectPlayerItem"),
            v = e("../../Auxiliary/DataUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Player = 0] = "Player", e[e.Hero = 1] = "Hero", e[e.Pet = 2] = "Pet", e[e.PowerCore = 3] = "PowerCore"
        })(l = n.ChampionPreviewSelectPanelType || (n.ChampionPreviewSelectPanelType = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.HeroScrollViewNode = null, t.PlayerScrollViewNode = null, t.PlayerCustomLayout = null, t.HeroCustomLayout = null, t.SelectButton = null, t.SelectButtonLabel = null, t.HeroElementGroup = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.On(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.Off(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityChampionPanel/Components/ChampionPreviewSelectHeroItem", cc.Prefab), n = this.LoadDynamicAsset("ActivityChampionPanel/Components/ChampionPreviewSelectPlayerItem", cc.Prefab), o = this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab), r = this.LoadDynamicAsset(g.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._selectHeroPrefab = e[0], i._selectPlayerPrefab = e[1], i._itemPrefab = e[2], i._headPrefab = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SelectButtonLabel.string = "ChampionPreview_Select_Hero".ToUILocale(), this.SelectButton.node.on("click", this.OnSelectButtonClick, this)
            }, t.prototype.InitData = function(t) {
                if (e.prototype.InitData.call(this), this._panelData = t[0], this._limitElementArray = [], this._limitCareerArray = [], this._panelData.PanelType == l.Hero && this._panelData.ActivityId)
                    for (var n = h.DataCenter.Instance.ActivityConfigs[this._panelData.ActivityId].__Rounds[this._panelData.Round], o = 0; o < n.Condition.length; o++) {
                        var r = n.Condition[o].Items[0],
                            i = n.Condition[o].Items;
                        if (1 == r || 2 == r)
                            for (var a = 1; a < i.length; a++) 1 == r ? this._limitElementArray.push(i[a]) : 2 == r && this._limitCareerArray.push(i[a])
                    }
                0 == this._limitElementArray.length && (this._limitElementArray = [f.HeroElementType.All])
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || this.SetCurrentTypeDataAndShow(), this.Renderlayout()
            }, t.prototype.SetCurrentTypeDataAndShow = function() {
                var e = this;
                switch (this.PlayerScrollViewNode.active = !1, this.HeroScrollViewNode.active = !1, this.HeroElementGroup.node.active = !1, this.Title.string = ("ChampionPreview_Select_Hero_Title_" + this._panelData.PanelType).ToUILocale(), this._panelData.PanelType) {
                    case l.Player:
                        this.PlayerScrollViewNode.active = !0, this._panelData.PlayerInfos.sort(function(e, t) {
                            return t.Power - e.Power
                        }), this.PlayerCustomLayout.Init(this._selectPlayerPrefab);
                        break;
                    case l.Hero:
                        this.HeroScrollViewNode.active = !0, this.HeroElementGroup.node.active = !0, this.HeroCustomLayout.Init(this._selectHeroPrefab), this.HeroElementGroup.SetElementModeByIndex(this._limitElementArray[0]), this._limitElementArray.length > 1 && this.HeroElementGroup.LimitElementArray(this._limitElementArray), this._selectElementType = this._limitElementArray[0], this.SetCurrentTypeHeroConfigArray();
                        break;
                    case l.Pet:
                        this.HeroScrollViewNode.active = !0, this.HeroCustomLayout.Init(this._selectHeroPrefab), this._petArray = h.ConfigDataComponent.Instance.GetArrayConfig(p.PetBase_Config);
                        break;
                    case l.PowerCore:
                        this.HeroScrollViewNode.active = !0, this.HeroCustomLayout.Init(this._selectHeroPrefab);
                        var t = h.ConfigDataComponent.Instance.GetArrayConfig(p.PowerCore_Config);
                        this._powerCoreArray = [], t.forEach(function(t) {
                            5 == t.Star && e._powerCoreArray.push(t)
                        })
                }
            }, t.prototype.SetCurrentTypeHeroConfigArray = function() {
                var e = this;
                this._coreHeroArray = [], h.ConfigDataComponent.Instance.GetArrayConfig(p.HeroBase_Config).forEach(function(t) {
                    t.CoreHero && 1 == t.Type && v.default.Instance.IsModuleShowAvailable(f.ModuleStartTime.Hero, t.Id) && (t.ElementType == e._selectElementType || e._selectElementType == f.HeroElementType.All) && (e._limitCareerArray.length > 0 && -1 != e._limitCareerArray.indexOf(t.Career) ? e._coreHeroArray.push(t) : 0 == e._limitCareerArray.length && e._coreHeroArray.push(t))
                })
            }, t.prototype.Renderlayout = function() {
                switch (this._panelData.PanelType) {
                    case l.Player:
                        this.PlayerCustomLayout.RenderLayOut(this._panelData.PlayerInfos.length);
                        break;
                    case l.Hero:
                        this.HeroCustomLayout.RenderLayOut(this._coreHeroArray.length);
                        break;
                    case l.Pet:
                        this.HeroCustomLayout.RenderLayOut(this._petArray.length);
                        break;
                    case l.PowerCore:
                        this.HeroCustomLayout.RenderLayOut(this._powerCoreArray.length)
                }
            }, t.prototype.OnSwitchHeroElement = function(e, t) {
                if (t == this.HeroElementGroup.node) {
                    var n = this._selectElementType;
                    this._selectElementType != e && (this._selectElementType = e, this.SetCurrentTypeHeroConfigArray(), this._coreHeroArray.length > 0 ? this.HeroCustomLayout.RenderLayOut(this._coreHeroArray.length) : (this.HeroElementGroup.SetElementModeByIndex(n), u.UIUtlity.ShowFloatingHint("rank_no_element_hero".ToUILocale())))
                }
            }, t.prototype.OnSelectButtonClick = function() {
                var e = this;
                this._lastSelectId ? u.UIUtlity.ShowHintPanel(null, "ChampionPreview_Select_Tip".ToUILocale(), "cancel".ToUILocale(), null, "button_confirm".ToUILocale(), function() {
                    var t = new d.Req_CrossZone_TakeForecast;
                    t.Id = e._panelData.ActivityId ? 1e4 * e._panelData.ActivityId + e._panelData.Round + 1 : f.ForecastType.AllZoneChampionRace, t.ContentType = e._panelData.ForecastType, t.Content = e._lastSelectId, h.RpcComponent.Instance.Call(t, function() {
                        u.UIUtlity.ShowFloatingHint("select_success".ToUILocale()), c.Game.EventDispatcher.Emit(m.EventKeys.EVENT_CHAMPIONPREVIEW_CLEAR_FORECASTDATA), c.UIManager.Instance.QuitPanelStack(g.PanelConfig.ChampionPreviewSelectHeroPanel.Path)
                    })
                }) : u.UIUtlity.ShowFloatingHint("ChampionPreview_Select_None".ToUILocale())
            }, t.prototype.OnSelectItemNode = function(e, t) {
                this._lastSelectItem && this._lastSelectItem.SetSelectBgState(!1), e.SetSelectBgState(!0), this._lastSelectId = t, this._lastSelectItem = e
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (t == this.HeroCustomLayout || t == this.PlayerCustomLayout) switch (this._panelData.PanelType) {
                    case l.Player:
                        e.forEach(function(e, t) {
                            e.getComponent(C.default).Init(n._panelData.PlayerInfos[t], n._lastSelectId, n._headPrefab, n)
                        });
                        break;
                    case l.Hero:
                        e.forEach(function(e, t) {
                            e.getComponent(I.default).Init(n._panelData.PanelType, n._coreHeroArray[t], n._lastSelectId, n._itemPrefab, n)
                        });
                        break;
                    case l.Pet:
                        e.forEach(function(e, t) {
                            e.getComponent(I.default).Init(n._panelData.PanelType, n._petArray[t], n._lastSelectId, n._itemPrefab, n)
                        });
                        break;
                    case l.PowerCore:
                        e.forEach(function(e, t) {
                            e.getComponent(I.default).Init(n._panelData.PanelType, n._powerCoreArray[t], n._lastSelectId, n._itemPrefab, n)
                        })
                }
            }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Node)], t.prototype, "HeroScrollViewNode", void 0), i([w(cc.Node)], t.prototype, "PlayerScrollViewNode", void 0), i([w(y.default)], t.prototype, "PlayerCustomLayout", void 0), i([w(y.default)], t.prototype, "HeroCustomLayout", void 0), i([w(cc.Button)], t.prototype, "SelectButton", void 0), i([w(cc.Label)], t.prototype, "SelectButtonLabel", void 0), i([w(_.default)], t.prototype, "HeroElementGroup", void 0), i([S], t)
        }(c.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ChampionPreviewSelectHeroItem": "ChampionPreviewSelectHeroItem",
        "../Components/ChampionPreviewSelectPlayerItem": "ChampionPreviewSelectPlayerItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroElementGroup": "HeroElementGroup"
    }],
    ChampionPreviewSelectPlayerItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "761c8kDORhFaYAOxnY5rAas", "ChampionPreviewSelectPlayerItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./HeadComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelectBgNode = null, t.PlayerHeadNode = null, t.SelectTagNode = null, t.Name = null, t.ZoneTag = null, t.ZoneValue = null, t.PowerValue = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ZoneTag.string = "PlayerSetting_server".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._playerInfo = e, this._headPrefab = n, this._mainPanel = o, this.Name.string = this._playerInfo.Name, this.ZoneValue.string = "S" + this._playerInfo.Zone, this.PowerValue.string = this._playerInfo.Power.toString(), this.SetSelectBgState(!1), t == this._playerInfo.Uid && this._mainPanel.OnSelectItemNode(this, this._playerInfo.Uid), this.SetPlayerHead()
                }, t.prototype.SetPlayerHead = function() {
                    if (!this._headComponent) {
                        var e = cc.instantiate(this._headPrefab);
                        e.setParent(this.PlayerHeadNode), this._headComponent = e.getComponent(a.default)
                    }
                    this._headComponent.SetUI(this._playerInfo.HeadIcon, this._playerInfo.HeadFrame, this._playerInfo.Title), this._headComponent.SetLevel(this._playerInfo.Level)
                }, t.prototype.OnNodeClick = function() {
                    this._mainPanel.OnSelectItemNode(this, this._playerInfo.Uid)
                }, t.prototype.SetSelectBgState = function(e) {
                    this.SelectBgNode.active = e, this.SelectTagNode.active = e
                }, i([c(cc.Node)], t.prototype, "SelectBgNode", void 0), i([c(cc.Node)], t.prototype, "PlayerHeadNode", void 0), i([c(cc.Node)], t.prototype, "SelectTagNode", void 0), i([c(cc.Label)], t.prototype, "Name", void 0), i([c(cc.Label)], t.prototype, "ZoneTag", void 0), i([c(cc.Label)], t.prototype, "ZoneValue", void 0), i([c(cc.Label)], t.prototype, "PowerValue", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./HeadComponent": "HeadComponent"
    }],
    ChampionShipEntranceItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "15f56mAoRxFv74UEvrw+zox", "ChampionShipEntranceItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../Components/Components"),
            d = e("../../Components/DataCenter"),
            h = e("../../RedDot/RedDotManager"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Panel/GlobalChampionShipPanel"),
            g = e("../Panel/GlobalChampionMainPanel"),
            m = e("./GlobalChampionShipGradeComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Panel/ActivityBaseContent"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GradeDesc = null, t.Grade = null, t.GradeLv = null, t.Cup = null, t.CupCount = null, t.Time = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnComponnentClicked, this)
                }, t.prototype.Init = function() {
                    this.SetGlobalChampionShip(), this.BindRedDot()
                }, t.prototype.SetGlobalChampionShip = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    for (t in d.DataCenter.Instance.ActivityConfigs)
                                        if (d.DataCenter.Instance.ActivityConfigs[t].Common.Type == u.ActivityType.Championship) {
                                            e = d.DataCenter.Instance.ActivityConfigs[t];
                                            break
                                        } return e ? [4, l.AssetsManager.Instance.LoadAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas)] : (this.node.active = !1, [2]);
                                case 1:
                                    return n = i.sent(), this.isValid ? (this._loadAssets.push(n), this._deadLine = f.default.Instance.ComputeDeadTime(e.Common), this._showOffEndTme = f.default.Instance.ComputeExtraShowDeadTime(e.Common), this.ActivityCountDown(), this.unschedule(this.ActivityCountDown), this.schedule(this.ActivityCountDown, 1), (o = c.Req_Activity_ChampionshipEnter.create()).ActivityId = e._id, p.RpcComponent.Instance.Call(o, function(t) {
                                        r.node.active = !0, r._championshipActivityId = e._id, r.GradeDesc.string = "championShip_grade".ToUILocale();
                                        var o = y.default.GetCurGroupGradeId(t.Rank, t.Score, e),
                                            i = g.default.GetGroupIdToStage2Map(e),
                                            a = i[o].Stage;
                                        r.Grade.spriteFrame = n.getSpriteFrame("cup" + a);
                                        var s = m.default.GetStage2Num(e, i[o].Id);
                                        r.GradeLv.node.active = a > e.__Stages[y.GlobalChampionShipGrade.Grade2].Id, a > e.__Stages[y.GlobalChampionShipGrade.Grade2].Id && (r.GradeLv.string = I.UIUtlity.GetRomanNumerals(s)), r.Cup.spriteFrame = n.getSpriteFrame("cup"), r.CupCount.string = t.Score.toString()
                                    }), [2]) : (l.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.ActivityCountDown = function() {
                    p.RpcComponent.Instance.ServerTime >= this._showOffEndTme ? this.Time.string = "ActiveCollection_Passed".ToUILocale() : p.RpcComponent.Instance.ServerTime >= this._deadLine && p.RpcComponent.Instance.ServerTime < this._showOffEndTme ? this.Time.string = "activityTime_show".ToUILocale() + f.default.ActivityTimeLeftFormat(this._showOffEndTme - p.RpcComponent.Instance.ServerTime) : p.RpcComponent.Instance.ServerTime < this._deadLine && (this.Time.string = "Activity_Story_LeftTime".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(this._deadLine - p.RpcComponent.Instance.ServerTime)))
                }, t.prototype.BindRedDot = function() {
                    h.RedDotManager.Instance.Bind(this.node, h.RedDotManager.Instance.RedDot.ChampionShipNode)
                }, t.prototype.OnComponnentClicked = function() {
                    this._championshipActivityId && _.default.OpenActivityPanel(this._championshipActivityId)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([b(cc.Label)], t.prototype, "GradeDesc", void 0), i([b(cc.Sprite)], t.prototype, "Grade", void 0), i([b(cc.Label)], t.prototype, "GradeLv", void 0), i([b(cc.Sprite)], t.prototype, "Cup", void 0), i([b(cc.Label)], t.prototype, "CupCount", void 0), i([b(cc.RichText)], t.prototype, "Time", void 0), i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ActivityBaseContent": "ActivityBaseContent",
        "../Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "../Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "./GlobalChampionShipGradeComponent": "GlobalChampionShipGradeComponent"
    }],
    ChampionStartPlayerComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9d377Uc/edArIJYMlmJMmxv", "ChampionStartPlayerComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RankPlayerAvatarType = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../Consts/Consts"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Components/Components"),
            _ = e("../../../Consts/Consts"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("./LoadAssetHelper"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.ChampionShip = 0] = "ChampionShip", e[e.ActivityHeroTestTower = 1] = "ActivityHeroTestTower", e[e.ActivityChampion = 2] = "ActivityChampion", e[e.AllZoneChampionShip = 3] = "AllZoneChampionShip"
        })(l = n.RankPlayerAvatarType || (n.RankPlayerAvatarType = {})),
        function(e) {
            e[e.Pet = 100] = "Pet", e[e.MagicCircleBottom = 200] = "MagicCircleBottom", e[e.MagicCircleTop = 300] = "MagicCircleTop"
        }(c || (c = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HeroTableSprite = null, t.MagicCircleBottomNode = null, t.HeroContainer = null, t.MagicCircleTopNode = null, t.PetNode = null, t.ServerName = null, t.PlayerName = null, t.BattlePowerNode = null, t.BattlePower = null, t.CurrentIndexNode = null, t.CurrentIndexLabel = null, t.BeLikeCount = null, t.BeLikeButton = null, t.DetailButton = null, t.FlagBg = null, t.FlagTitleSprite = null, t.PlayerTitleIcon = null, t.UnInfoTipNode = null, t.UnInfoTipLabel = null, t.PlayerInfoNode = null, t.PlayerDesignationSprite = null, t.PlayerNameBackground = null, t._loadedAssets = [], t._likeUidMap = {}, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.BeLikeButton.node.on("click", this.OnLikeButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(v.default))
            }, t.prototype.Init = function(e, t, n, o, r, i, c, u) {
                return a(this, void 0, void 0, function() {
                    var a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._rankData = e, this._likeUIDS = t, this._index = n, this._panelAtlas = o, this._type = r, this._activityConfig = i, c && this.SetLikeUidData(c), this._mapId = u, this.SetFlagIcon(), this.SetNodeState(), this._rankData ? [3, 1] : (this.UnInfoTipLabel.string = "rank_no_people".ToUILocale(), this.HeroContainer.active = !1, this.MagicCircleBottomNode.active = !1, this.MagicCircleTopNode.active = !1, this.PetNode.active = !1, [3, 7]);
                            case 1:
                                switch (r) {
                                    case l.AllZoneChampionShip:
                                        return [3, 2];
                                    case l.ActivityChampion:
                                        return [3, 4]
                                }
                                return [3, 5];
                            case 2:
                                return this._rankTypeConfig = d.ConfigDataComponent.Instance.GetConfigById(h.RankType_Config, f.RankTypeId.AllZoneChampionRace), a = this.HeroTableSprite, [4, g.UIUtlity.GetCommonAtlas3Sprite("HeroTable_All_Zone_Champion")];
                            case 3:
                                return a.spriteFrame = s.sent(), [3, 6];
                            case 4:
                                return this.HeroTableSprite.spriteFrame = this._panelAtlas.getSpriteFrame("platform"), [3, 6];
                            case 5:
                                return this._rankTypeConfig = d.ConfigDataComponent.Instance.GetConfigById(h.RankType_Config, f.RankTypeId.CrossZoneChampionRace), this._loadAssetHelper.LoadSpriteFrame("CommonBg/Hero_table", this.HeroTableSprite, null, 1), [3, 6];
                            case 6:
                                this.HeroContainer.active = !0, this.MagicCircleBottomNode.active = !0, this.MagicCircleTopNode.active = !0, this.PetNode.active = !0, this.SetHero(), this.SetPlayerInfo(), this.RefreshBelikeButton(), this.SetPlayerNameBackground(), s.label = 7;
                            case 7:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetLikeUidData = function(e) {
                for (var t in e)(!this._likeUidMap[t] || e[t] > this._likeUidMap[t]) && (this._likeUidMap[t] = e[t])
            }, t.prototype.SetFlagIcon = function() {
                switch (this.FlagTitleSprite.node.active = !0, this._type) {
                    case l.ActivityChampion:
                        this.FlagBg.spriteFrame = this._panelAtlas.getSpriteFrame("championPlatformBg_" + (this._index + 1)), this.FlagTitleSprite.node.active = !1;
                        break;
                    default:
                        this._loadAssetHelper.LoadSpriteFrame("CommonBg/championPlatformBg_" + this._index, this.FlagBg, null, 2), this.FlagTitleSprite.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + (this._index + 1))
                }
            }, t.prototype.SetPlayerNameBackground = function() {
                this.PlayerNameBackground.spriteFrame = g.UIUtlity.COMMON_ATLAS5.getSpriteFrame("rankNameBg" + (this._index + 1))
            }, t.prototype.SetNodeState = function() {
                this.UnInfoTipNode.active = !this._rankData, this.PlayerInfoNode.active = !this.UnInfoTipNode.active, this.BeLikeButton.node.active = !this.UnInfoTipNode.active, this.DetailButton.node.active = !this.UnInfoTipNode.active, this.ServerName.node.parent.active = !this.UnInfoTipNode.active
            }, t.prototype.SetHero = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._avatarId == this._rankData.PlayerInfo.HeadIcon ? [2] : (this.HeroContainer.destroyAllChildren(), this._avatarId = this._rankData.PlayerInfo.HeadIcon, e = this._rankData.PlayerInfo.HeadIcon, (t = d.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, e)) || (t = d.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e)), n = "Hero_" + t.Model + "/HeroAvatar", [4, y.AssetsManager.Instance.LoadAsset(n, cc.Prefab)]);
                            case 1:
                                return o = s.sent(), this.isValid ? (this._loadedAssets.push(o), (r = cc.instantiate(o)).setParent(this.HeroContainer), r.getComponent(sp.Skeleton).setAnimation(0, f.SkillAnimationType.Standby, !0), this.MagicCircleTopNode && this.MagicCircleBottomNode && (i = this._rankData.PlayerInfo.MagicCircle, this.SetMagicCircleByItemId(i)), this.PetNode && (a = this._rankData.PlayerInfo.Pet, this.SetPetByItemId(a)), [2]) : (y.AssetsManager.Instance.UnloadAsset(o), [2])
                        }
                    })
                })
            }, t.prototype.SetMagicCircleByItemId = function(e) {
                if (e) {
                    var t = d.ConfigDataComponent.Instance.GetConfigById(h.MagicCircleBase_Config, e);
                    if (t) {
                        var n, o, r = t.Model + "/HeroAvatar";
                        this._loadAssetHelper.LoadPrefab(r, this.MagicCircleBottomNode, function(e) {
                            n = e, o && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, c.MagicCircleBottom), this._loadAssetHelper.LoadPrefab(r, this.MagicCircleTopNode, function(e) {
                            (o = e) && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, c.MagicCircleTop)
                    }
                }
            }, t.prototype.SetPetByItemId = function(e) {
                if (e) {
                    var t = d.ConfigDataComponent.Instance.GetConfigById(h.PetBase_Config, e);
                    if (t) {
                        var n = t.Model + "/HeroAvatar";
                        this._loadAssetHelper.LoadPrefab(n, this.PetNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, f.SkillAnimationType.Standby, !0)
                        }, c.Pet)
                    }
                }
            }, t.prototype.SetPlayerInfo = function() {
                switch (this.ServerName.string = "S" + this._rankData.Zone, this.PlayerName.string = this._rankData.PlayerInfo.Name, this.BattlePowerNode.active = !1, this.CurrentIndexNode.active = !1, this._type) {
                    case l.ChampionShip:
                    case l.AllZoneChampionShip:
                        this.BattlePowerNode.active = !0, this.BattlePower.string = this._rankData.Value.toString();
                        break;
                    case l.ActivityHeroTestTower:
                        this.CurrentIndexNode.active = !0;
                        var e = Math.floor(this._rankData.Value / f.SpecialDataKey.ActHeroTestTowerTime);
                        this.CurrentIndexLabel.string = "level".ToUILocale().Fmt(e);
                        break;
                    case l.ActivityChampion:
                        this.BattlePowerNode.active = !0, this.CurrentIndexNode.active = !0, this.BattlePower.string = this._rankData.PlayerInfo.Power.toString(), this.CurrentIndexLabel.string = this._rankData.Value.toString()
                }
                this.SetPlayerTitleIcon(), C.default.SetDesignationIcon(this._rankData.PlayerInfo.Designation, this.PlayerDesignationSprite)
            }, t.prototype.SetPlayerTitleIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._rankData.PlayerInfo.Title ? (this.PlayerTitleIcon.node.active = !0, [4, y.AssetsManager.Instance.LoadAsset(d.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + this._rankData.PlayerInfo.Title), cc.SpriteFrame)]) : (this.PlayerTitleIcon.node.active = !1, [2]);
                            case 1:
                                return e = t.sent(), this.isValid ? (this._loadedAssets.push(e), this.PlayerTitleIcon.spriteFrame = e, [2]) : (y.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.RefreshBelikeButton = function() {
                switch (this.BeLikeButton.node.active = !0, this._type) {
                    case l.ChampionShip:
                    case l.AllZoneChampionShip:
                        var e = this._likeUIDS.indexOf(this._rankData.PlayerInfo.Uid);
                        this._likeUIDS.length >= this._rankTypeConfig.DailyLikeCount || e > -1 ? (this._canClickLike = !1, g.UIUtlity.OnNodeGray(this.BeLikeButton.node)) : (this._canClickLike = !0, g.UIUtlity.OffNodeGray(this.BeLikeButton.node)), this.BeLikeCount.string = this._rankData.BeLikeCount.toString();
                        break;
                    case l.ActivityHeroTestTower:
                        var t = I.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id),
                            n = 0;
                        for (var o in t.IntMap) t.IntMap[o] && n++;
                        n >= this._activityConfig.CustomPart.LikeCount || t.IntMap[this._rankData.PlayerInfo.Uid] ? (this._canClickLike = !1, g.UIUtlity.OnNodeGray(this.BeLikeButton.node)) : (this._canClickLike = !0, g.UIUtlity.OffNodeGray(this.BeLikeButton.node));
                        var r = this._likeUidMap[this._rankData.PlayerInfo.Uid] ? this._likeUidMap[this._rankData.PlayerInfo.Uid] : 0;
                        this.BeLikeCount.string = r.toString();
                        break;
                    case l.ActivityChampion:
                        this.BeLikeButton.node.active = !1
                }
            }, t.prototype.OnLikeButtonClick = function() {
                if (this._canClickLike) switch (this._type) {
                    case l.ChampionShip:
                        (e = new p.Req_Player_RankLike).RankType = f.RankTypeId.CrossZoneChampionRace, e.TargetUid = this._rankData.PlayerInfo.Uid, d.RpcComponent.Instance.Call(e, this.OnRequestSuccess.bind(this));
                        break;
                    case l.ActivityHeroTestTower:
                        (e = new p.Req_Activity_HeroTestTowerLike).ActivityId = this._activityConfig._id, e.Uid = this._rankData.PlayerInfo.Uid, d.RpcComponent.Instance.Call(e, this.OnHeroTestTowerRequestSuccess.bind(this));
                        break;
                    case l.AllZoneChampionShip:
                        var e;
                        (e = new p.Req_Player_RankLike).RankType = f.RankTypeId.AllZoneChampionRace, e.TargetUid = this._rankData.PlayerInfo.Uid, d.RpcComponent.Instance.Call(e, this.OnRequestSuccess.bind(this))
                }
            }, t.prototype.OnRequestSuccess = function() {
                var e = this._type == l.AllZoneChampionShip ? f.RankTypeId.AllZoneChampionRace : f.RankTypeId.CrossZoneChampionRace,
                    t = d.DataCenter.Instance.GetDataById(p.UserRankLike_Model, e);
                this._likeUIDS = t.LikeUids, this._rankData.BeLikeCount += 1, this.RefreshBelikeButton();
                var n = this._rankTypeConfig.LikeRewards[0].Items;
                g.UIUtlity.ShowFloatingHint("CrossServerBeLikeSuccess".ToUILocale().Fmt(n[0].ToItemName() + " x " + n[1]))
            }, t.prototype.OnHeroTestTowerRequestSuccess = function(e) {
                g.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this._likeUidMap[this._rankData.PlayerInfo.Uid] ? this._likeUidMap[this._rankData.PlayerInfo.Uid] += 1 : this._likeUidMap[this._rankData.PlayerInfo.Uid] = 1, this.RefreshBelikeButton()
            }, t.prototype.OnDetailButtonClick = function() {
                if (this._rankData.PlayerInfo && this._rankData.PlayerInfo.Uid > 0) {
                    if (this._rankData.PlayerInfo.Uid == d.DataCenter.Instance.Uid) return;
                    var e = [];
                    switch (this._type) {
                        case l.ChampionShip:
                            e = [_.FormationIdType.ChampionShip1, _.FormationIdType.ChampionShip2, _.FormationIdType.ChampionShip3];
                            break;
                        case l.AllZoneChampionShip:
                            e = [_.FormationIdType.AllZoneChampion1, _.FormationIdType.AllZoneChampion2, _.FormationIdType.AllZoneChampion3];
                            break;
                        case l.ActivityHeroTestTower:
                            return void u.UIManager.Instance.ShowUIPanel(m.PanelConfig.PlayerInfoPanel.Path, this._rankData.PlayerInfo.Uid);
                        case l.ActivityChampion:
                            e = [1]
                    }
                    var t = new p.Req_Player_GetFormations;
                    t.Uid = this._rankData.PlayerInfo.Uid, t.Zone = this._rankData.Zone, t.FormationIds = e, I.RpcComponent.Instance.Call(t, this.OnRequestChampionFormation.bind(this))
                } else g.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale())
            }, t.prototype.OnRequestChampionFormation = function(e) {
                for (var t = this, n = !1, o = 0; o < e.Formations.length; o++) {
                    for (var r = 0; r < e.Formations[o].Heros.length; r++)
                        if (e.Formations[o].Heros[r].Sid > 0) {
                            n = !0;
                            break
                        } if (n) break
                }
                if (n) u.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonPvpPlayerInfoPanel.Path, e.Info, e.Formations, this._index + 1);
                else {
                    var i = new p.Req_Player_GetFormations;
                    i.Uid = this._rankData.PlayerInfo.Uid, i.Zone = this._rankData.Zone, i.FormationIds = [_.FormationIdType.SeniorArenaAttack1, _.FormationIdType.SeniorArenaAttack2, _.FormationIdType.SeniorArenaAttack3], I.RpcComponent.Instance.Call(i, function(e) {
                        u.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonPvpPlayerInfoPanel.Path, e.Info, e.Formations, t._index + 1)
                    })
                }
            }, t.prototype.onDestroy = function() {
                for (var e = 0; e < this._loadedAssets.length; e++) y.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                this._loadedAssets = []
            }, i([w(cc.Sprite)], t.prototype, "HeroTableSprite", void 0), i([w(cc.Node)], t.prototype, "MagicCircleBottomNode", void 0), i([w(cc.Node)], t.prototype, "HeroContainer", void 0), i([w(cc.Node)], t.prototype, "MagicCircleTopNode", void 0), i([w(cc.Node)], t.prototype, "PetNode", void 0), i([w(cc.Label)], t.prototype, "ServerName", void 0), i([w(cc.Label)], t.prototype, "PlayerName", void 0), i([w(cc.Node)], t.prototype, "BattlePowerNode", void 0), i([w(cc.Label)], t.prototype, "BattlePower", void 0), i([w(cc.Node)], t.prototype, "CurrentIndexNode", void 0), i([w(cc.Label)], t.prototype, "CurrentIndexLabel", void 0), i([w(cc.Label)], t.prototype, "BeLikeCount", void 0), i([w(cc.Button)], t.prototype, "BeLikeButton", void 0), i([w(cc.Button)], t.prototype, "DetailButton", void 0), i([w(cc.Sprite)], t.prototype, "FlagBg", void 0), i([w(cc.Sprite)], t.prototype, "FlagTitleSprite", void 0), i([w(cc.Sprite)], t.prototype, "PlayerTitleIcon", void 0), i([w(cc.Node)], t.prototype, "UnInfoTipNode", void 0), i([w(cc.Label)], t.prototype, "UnInfoTipLabel", void 0), i([w(cc.Node)], t.prototype, "PlayerInfoNode", void 0), i([w(cc.Sprite)], t.prototype, "PlayerDesignationSprite", void 0), i([w(cc.Sprite)], t.prototype, "PlayerNameBackground", void 0), i([S], t)
        }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    ChanceTestPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "54556ZF54FLObS6Tk4O8U/+", "ChanceTestPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../Util/index"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Battle/BattleManager"),
            m = e("../Auxiliary/UIUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0, !1), t.CloseBtn = null, t.ClearBtn = null, t.ConsoleLabel = null, t.ConsoleScrollView = null, t.CountInput = null, t.LibIdInput = null, t.ElementInput = null, t.ActivityIdInput = null, t.ActivitySummonTypeInput = null, t.NoramlHuntBtn = null, t.AdvanceHuntBtn = null, t.NormalSummonBtn = null, t.AdvanceSummonBtn = null, t.LibTestBtn = null, t.TestBattleBtn = null, t.ActivityTestBtn = null, t.TargetUidInput = null, t.ManualBattleBtn = null, t._CurrentConsoleContent = "", t
                }
                var n;
                return r(t, e), n = t, t.prototype.InitUI = function() {
                    l.EZLog.Log("\u521d\u59cb\u5316UI"), e.prototype.InitUI.call(this), this.CloseBtn.node.on("click", this.Close, this), this.ClearBtn.node.on("click", this.ClearConsole, this), this.NoramlHuntBtn.node.on("click", this.OnNoramlHuntBtnClick, this), this.AdvanceHuntBtn.node.on("click", this.OnAdvanceHuntBtnClick, this), this.NormalSummonBtn.node.on("click", this.OnNormalSummonBtnClick, this), this.AdvanceSummonBtn.node.on("click", this.OnAdvanceSummonBtnClick, this), this.LibTestBtn.node.on("click", this.OnLibTestBtnClick, this), this.TestBattleBtn.node.on("click", this.OnTestBattleBtnClick, this), this.ManualBattleBtn.node.on("click", this.OnManualBtnClick, this), this.ActivityTestBtn.node.on("click", this.OnActivityTestBtnClick, this), this._CurrentConsoleContent = "", this.SetConsoleContent(this._CurrentConsoleContent)
                }, t.prototype.ClearConsole = function() {
                    this._CurrentConsoleContent = "", this.SetConsoleContent(this._CurrentConsoleContent, !1)
                }, t.prototype.AppendConsoleContent = function(e, t) {
                    void 0 === t && (t = !0), this._CurrentConsoleContent += e + "\n\n", this.SetConsoleContent(this._CurrentConsoleContent, t)
                }, t.prototype.SetConsoleContent = function(e, t) {
                    void 0 === t && (t = !0), this._CurrentConsoleContent = e, this.ConsoleLabel.string = e;
                    var n = this;
                    this.scheduleOnce(function() {
                        n.ResizeViewPort(), t && n.ConsoleScrollView.scrollToBottom(.1)
                    }, .1)
                }, t.prototype.ResizeViewPort = function() {
                    this.ConsoleLabel.node.parent.height = this.ConsoleLabel.node.height + 40
                }, t.prototype.DoTreasureHuntCount = function(e, t) {
                    return a(this, void 0, Promise, function() {
                        var n, o, r, i, a, l, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    n = "\u3010\u666e\u901a\u3011", e == u.TreasureHuntType.Advance && (n = "\u3010\u9ad8\u7ea7\u3011"), this.AppendConsoleContent("\u5f00\u59cb" + n + "10\u8fde\u63a2\u5b9d " + t + " \u6b21"), o = {}, r = 0, s.label = 1;
                                case 1:
                                    if (!(r < t)) return [3, 6];
                                    s.label = 2;
                                case 2:
                                    return s.trys.push([2, 4, , 5]), [4, this.DoTreasureHunt10(e)];
                                case 3:
                                    for (i = s.sent(), a = 0; a < i.Rewards.length; a++) c = i.Rewards[a].ItemId.ToItemName() + " x " + i.Rewards[a].Count, o[c] || (o[c] = 0), o[c] += 1;
                                    return [3, 5];
                                case 4:
                                    return l = s.sent(), this.AppendConsoleContent(l), [3, 6];
                                case 5:
                                    return r++, [3, 1];
                                case 6:
                                    for (c in this.AppendConsoleContent(n + "10\u8fde\u63a2\u5b9d " + t + " \u6b21 \u5df2\u5b8c\u6210\n=============================="), o) {
                                        this.ShowResult(o);
                                        break
                                    }
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DoTreasureHuntFinal = function(e) {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r, i, a, l, p, d, f, y, g;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    t = "\u3010\u666e\u901a\u3011", e == u.TreasureHuntType.Advance && (t = "\u3010\u9ad8\u7ea7\u3011"), this.AppendConsoleContent("\u5f00\u59cb" + t + "10\u8fde\u63a2\u5b9d\u62bd\u5927\u5956"), n = {}, o = 0, s.label = 1;
                                case 1:
                                    s.label = 2;
                                case 2:
                                    for (s.trys.push([2, 4, , 5]), r = c.DataCenter.Instance.GetDataById(h.TreasureHunt_Model, e), i = null, a = r.Cells.length - 1; a >= 0; a--)
                                        if (r.Cells[a].Items[0] == u.TreasureHuntRewardType.Final) {
                                            i = r.Cells[a].Items;
                                            break
                                        } return i && i[3] > 0 ? 0 == o ? (this.AppendConsoleContent("\u7ec8\u6781\u5956\u52b1\u5df2\u7ecf\u83b7\u5f97\uff0c\u8bf7\u5237\u65b0\u5956\u52b1\u540e\u518d\u8fdb\u884c\u6d4b\u8bd5\uff01"), [2]) : (l = 10 * o, p = Math.round(1e4 / l) / 100, this.AppendConsoleContent("\u672c\u8f6e\u5bfb\u5b9d " + l + " \u6b21\u540e\u62bd\u5230\u7ec8\u6781\u5956\u52b1\uff0c \u5927\u5956\u6982\u7387\u4e3a " + p + "%"), [3, 6]) : [4, this.DoTreasureHunt10(e)];
                                case 3:
                                    for (d = s.sent(), f = 0; f < d.Rewards.length; f++) g = d.Rewards[f].ItemId.ToItemName() + " (" + d.Rewards[f].Count + "\u4e2a)", n[g] || (n[g] = 0), n[g] += 1;
                                    return o++, [3, 5];
                                case 4:
                                    return y = s.sent(), this.AppendConsoleContent(y), [3, 6];
                                case 5:
                                    return [3, 1];
                                case 6:
                                    for (g in this.AppendConsoleContent(t + "10\u8fde\u63a2\u5b9d\u62bd\u5927\u5956\u5df2\u5b8c\u6210\n=============================="), n) {
                                        this.ShowResult(n);
                                        break
                                    }
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DoCommonSummon = function(e) {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r, i, a, l, u, d, h, y;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (t = "\u666e\u901a", 4 == e && (t = "\u9ad8\u7ea7"), n = Math.max(1, p.AppUtil.ToInt(this.CountInput.string)), !(o = c.ConfigDataComponent.Instance.GetConfigById(f.CardCommonSummon_Config, e))) return this.AppendConsoleContent("\u672a\u627e\u5230\u53ec\u5524\u914d\u7f6e: " + e), [2];
                                    for (r = {}, l = 0; l < o.ExtraReward.length; l++) r[o.ExtraReward[l].Items[0]] = 1;
                                    for (i = 0, l = 0; l < o.ConsumeItem.length; l++) i = o.ConsumeItem[l].Items[0];
                                    this.AppendConsoleContent("\u5f00\u59cb" + t + "10\u8fde\u53ec\u5524 " + n + " \u6b21"), a = {}, l = 0, s.label = 1;
                                case 1:
                                    if (!(l < n)) return [3, 6];
                                    s.label = 2;
                                case 2:
                                    return s.trys.push([2, 4, , 5]), [4, this.DoCommonSummon10(e, i)];
                                case 3:
                                    for (u = s.sent(), d = 0; d < u.Rewards.length; d++) r[u.Rewards[d].ItemId] || (y = u.Rewards[d].ItemId.ToItemName() + " (" + u.Rewards[d].Count + "\u4e2a)", a[y] || (a[y] = 0), a[y] += 1);
                                    return [3, 5];
                                case 4:
                                    return h = s.sent(), this.AppendConsoleContent(h), [3, 6];
                                case 5:
                                    return l++, [3, 1];
                                case 6:
                                    for (y in this.AppendConsoleContent(t + "10\u8fde\u53ec\u5524 " + n + " \u6b21 \u5df2\u5b8c\u6210\n=============================="), a) {
                                        this.ShowResult(a);
                                        break
                                    }
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DoLibChanceTest = function() {
                    return a(this, void 0, Promise, function() {
                        var e, t, n, o, r, i, a, l, u, d, f, y;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    e = Math.max(1, p.AppUtil.ToInt(this.CountInput.string)), t = p.AppUtil.ToInt(this.LibIdInput.string), n = p.AppUtil.ToInt(this.ElementInput.string), this.AppendConsoleContent("\u5f00\u59cb\u5361\u5e93\u6982\u7387\u6d4b\u8bd5(" + t + ", " + n + ") " + e + " \u6b21"), o = null, r = null, i = new Promise(function(e, t) {
                                        o = function(t) {
                                            e(t)
                                        }, r = function(e, n) {
                                            t("Error: " + n + ", code: " + e)
                                        }
                                    }), (a = new h.Req_Card_LibChanceTest).SummonType = t, a.Count = e, a.ElementType = n, c.RpcComponent.Instance.Call(a, o, r), l = {}, s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, i];
                                case 2:
                                    for (u = s.sent(), d = 0; d < u.Rewards.length; d++) y = u.Rewards[d].ItemId.ToItemName() + " (" + u.Rewards[d].Count + "\u4e2a)", l[y] || (l[y] = 0), l[y] += 1;
                                    return [3, 4];
                                case 3:
                                    return f = s.sent(), this.AppendConsoleContent(f), [3, 4];
                                case 4:
                                    for (y in this.AppendConsoleContent("\u5361\u5e93\u6982\u7387\u6d4b\u8bd5(" + t + ", " + n + ") " + e + " \u6b21\u5df2\u5b8c\u6210\n=============================="), l) {
                                        this.ShowResult(l);
                                        break
                                    }
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnNoramlHuntBtnClick = function() {
                    var e = p.AppUtil.ToInt(this.CountInput.string);
                    e > 0 ? this.DoTreasureHuntCount(u.TreasureHuntType.Normal, e) : this.DoTreasureHuntFinal(u.TreasureHuntType.Normal)
                }, t.prototype.OnAdvanceHuntBtnClick = function() {
                    var e = p.AppUtil.ToInt(this.CountInput.string);
                    e > 0 ? this.DoTreasureHuntCount(u.TreasureHuntType.Advance, e) : this.DoTreasureHuntFinal(u.TreasureHuntType.Advance)
                }, t.prototype.OnNormalSummonBtnClick = function() {
                    this.DoCommonSummon(2)
                }, t.prototype.OnAdvanceSummonBtnClick = function() {
                    this.DoCommonSummon(4)
                }, t.prototype.OnLibTestBtnClick = function() {
                    this.DoLibChanceTest()
                }, t.prototype.OnTestBattleBtnClick = function() {
                    var e = null,
                        t = null,
                        n = (new Promise(function(n, o) {
                            e = function(e) {
                                cc.log(e), n(e)
                            }, t = function(e, t) {
                                o("Error: " + t + ", code: " + e)
                            }
                        }), new h.Req_Player_UseGiftCode);
                    n.Code = "happynewyear", c.RpcComponent.Instance.Call(n, e, t)
                }, t.prototype.OnManualBtnClick = function() {
                    var e = p.AppUtil.ToInt(this.TargetUidInput.string),
                        t = null,
                        n = null,
                        o = (new Promise(function(e, o) {
                            t = function(t) {
                                cc.log(t), g.BattleManager.Instance.StartPlay(t.Report, {
                                    CanManual: !0,
                                    CanRestart: !1,
                                    CanPlayInBackground: !1,
                                    CanSkipPlay: !1
                                }).Players[0].DoneHeroIds2 = t.DoneHeroIds, e(t)
                            }, n = function(e, t) {
                                o("Error: " + t + ", code: " + e)
                            }
                        }), new h.Req_Battle_ManualBattleStart);
                    o.MapId = 1, o.TargetUid = e, c.RpcComponent.Instance.Call(o, t, n)
                }, t.prototype.OnActivityTestBtnClick = function() {
                    this.DoActivityTest()
                }, t.prototype.DoActivityTest = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, u, d, f, y, g;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (e = p.AppUtil.ToInt(this.CountInput.string), t = p.AppUtil.ToInt(this.ActivityIdInput.string), n = p.AppUtil.ToInt(this.ActivitySummonTypeInput.string), !(o = c.DataCenter.Instance.ActivityConfigs[t])) return m.UIUtlity.ShowFloatingHint("\u6d3b\u52a8\u4e0d\u5b58\u5728\u6216\u5df2\u8fc7\u671f"), [2];
                                    this.AppendConsoleContent("\u3010" + o.Common.Title + "\u3011\u5361\u5e93\u6982\u7387\u6d4b\u8bd5, \u6d3b\u52a8id=" + t), r = null, i = null, a = new Promise(function(e, t) {
                                        r = function(t) {
                                            e(t)
                                        }, i = function(e, n) {
                                            t("Error: " + n + ", code: " + e)
                                        }
                                    }), (l = new h.Req_Card_ActivityChanceTest).ActivityId = t, l.Type = n, l.Count = e, c.RpcComponent.Instance.Call(l, r, i), u = {}, s.label = 1;
                                case 1:
                                    return s.trys.push([1, 3, , 4]), [4, a];
                                case 2:
                                    for (d = s.sent(), f = 0; f < d.Rewards.length; f++) g = d.Rewards[f].ItemId.ToItemName() + " (" + d.Rewards[f].Count + "\u4e2a)", u[g] || (u[g] = 0), u[g] += 1;
                                    return this.AppendConsoleContent("\u3010" + o.Common.Title + "\u3011\u5361\u5e93\u6982\u7387\u6d4b\u8bd5 " + e + " \u6b21\u5df2\u5b8c\u6210\n=============================="), [3, 4];
                                case 3:
                                    return y = s.sent(), this.AppendConsoleContent(y), [3, 4];
                                case 4:
                                    for (g in u) {
                                        this.ShowResult(u);
                                        break
                                    }
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DoTreasureHunt10 = function(e) {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r;
                        return s(this, function() {
                            return t = null, n = null, o = new Promise(function(o, r) {
                                var i = c.ConfigDataComponent.Instance.GetConfigById(f.TreasureHuntBase_Config, e);
                                i ? c.DataCenter.Instance.IsItemEnough(i.TicketId, i.Draw10TicketCount) ? (t = function(e) {
                                    o(e)
                                }, n = function(e, t) {
                                    r("Error: " + t + ", code: " + e)
                                }) : r("\u63a2\u5b9d\u5238\u6570\u91cf\u4e0d\u8db3\uff01") : r("\u672a\u627e\u5230\u63a2\u5b9d\u914d\u7f6e: " + e)
                            }), t ? ((r = new h.Req_TreasureHunt_Hunt).Type = e, r.IsTen = !0, c.RpcComponent.Instance.Call(r, t, n), [2, o]) : [2, o]
                        })
                    })
                }, t.prototype.DoCommonSummon10 = function(e, t) {
                    return a(this, void 0, Promise, function() {
                        var n, o, r, i;
                        return s(this, function() {
                            return n = null, o = null, r = new Promise(function(e, t) {
                                n = function(t) {
                                    e(t)
                                }, o = function(e, n) {
                                    t("Error: " + n + ", code: " + e)
                                }
                            }), n ? ((i = new h.Req_Card_CommonSummon).Type = e, i.ItemId = t, c.RpcComponent.Instance.Call(i, n, o), [2, r]) : [2, r]
                        })
                    })
                }, t.prototype.GenTableHtml = function(e) {
                    var t = '<table style="font-family: verdana,arial,sans-serif;font-size:11px;color:#333333;border-width: 1px;border-color: #666666;border-collapse: collapse;">',
                        n = '<th style="width:34%;text-align:center;border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;background-color: #dedede;">\u6389\u843d\u9879</th>',
                        o = '<th style="width:8%;text-align:center;border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;background-color: #dedede;">\u6389\u843d\u6b21\u6570</th>',
                        r = '<th style="width:8%;text-align:center;border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;background-color: #dedede;">\u6982 \u7387</th>';
                    t += "<tr>" + n + o + r + n + o + r + "</tr>";
                    var i = 0;
                    for (var a in e) i += e[a];
                    var s = 0;
                    for (var a in e) ++s % 2 == 1 && (t += "<tr>"), t += '<td style="border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;">' + a + "</td>", t += '<td style="border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;">' + e[a] + "</td>", t += '<td style="border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;">' + (100 * e[a] / i).toFixed(2) + "%</td>", s % 2 == 0 && (t += "</tr>");
                    return s % 2 == 1 && (t += '<td style="border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;">&nbsp;</td>', t += '<td style="border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;">&nbsp;</td>', t += '<td style="border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;">&nbsp;</td>', t += "</tr>"), t + "</table>"
                }, t.prototype.ShowResult = function(e) {
                    var t = document.getElementById("ez-popup-window");
                    if (!t) {
                        var n = document.createElement("div");
                        document.body.append(n), n.id = "ez-popup-window", n.style.position = "absolute", n.style.visibility = "hidden", n.style.backgroundColor = "rgb(240, 240, 240)", n.style.border = "3px solid rgb(150, 150, 50)", n.style.padding = "5px", n.style.left = "0", n.style.right = "0", n.style.marginLeft = "auto", n.style.marginRight = "auto", n.style.marginTop = "80px", n.style.width = "80%", n.style.height = "80%", t = document.getElementById("ez-popup-window"), n.innerHTML = '<div id="close-popup-btn"><button style="width:30px;height:30px;font-size:22px;">X</button></div>            <div id="ez-popup-content" style="height:95%;overflow-y:scroll;user-select:text;">&nbsp;</div>';
                        var o = document.getElementById("close-popup-btn");
                        o.style.height = "5%", o.style.marginTop = "5px", o.style.textAlign = "right", o.getElementsByTagName("button")[0].addEventListener("click", function() {
                            t.style.visibility = "hidden"
                        })
                    }
                    document.getElementById("ez-popup-content").innerHTML = this.GenTableHtml(e), t.style.visibility = "visible"
                }, t.InitBattle = function() {
                    d.Game.EventDispatcher.Only(u.GameEventIds.SettleBattle.Fmt(9999), n.SettleBattle, n), d.Game.EventDispatcher.Only(u.GameEventIds.CancelBattle.Fmt(9999), n.CancelBattle, n)
                }, t.SettleBattle = function(e) {
                    var t = new h.Req_Battle_ManualBattleCancel;
                    c.RpcComponent.Instance.Call(t, function() {
                        g.BattleManager.Instance.ShowSettlePanel(y.PanelConfig.SettlementWinPanel.Path, "TestBattle/TestSuccessSettlementComponent", e)
                    })
                }, t.CancelBattle = function() {
                    var e = new h.Req_Battle_ManualBattleCancel;
                    c.RpcComponent.Instance.Call(e, null)
                }, i([C(cc.Button)], t.prototype, "CloseBtn", void 0), i([C(cc.Button)], t.prototype, "ClearBtn", void 0), i([C(cc.Label)], t.prototype, "ConsoleLabel", void 0), i([C(cc.ScrollView)], t.prototype, "ConsoleScrollView", void 0), i([C(cc.EditBox)], t.prototype, "CountInput", void 0), i([C(cc.EditBox)], t.prototype, "LibIdInput", void 0), i([C(cc.EditBox)], t.prototype, "ElementInput", void 0), i([C(cc.EditBox)], t.prototype, "ActivityIdInput", void 0), i([C(cc.EditBox)], t.prototype, "ActivitySummonTypeInput", void 0), i([C(cc.Button)], t.prototype, "NoramlHuntBtn", void 0), i([C(cc.Button)], t.prototype, "AdvanceHuntBtn", void 0), i([C(cc.Button)], t.prototype, "NormalSummonBtn", void 0), i([C(cc.Button)], t.prototype, "AdvanceSummonBtn", void 0), i([C(cc.Button)], t.prototype, "LibTestBtn", void 0), i([C(cc.Button)], t.prototype, "TestBattleBtn", void 0), i([C(cc.Button)], t.prototype, "ActivityTestBtn", void 0), i([C(cc.EditBox)], t.prototype, "TargetUidInput", void 0), i([C(cc.Button)], t.prototype, "ManualBattleBtn", void 0), n = i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/index": "index",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager"
    }],
    ChannelManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d1b92RlQURPzqVdS71RuoCM", "ChannelManager");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GameClientAction = n.ActionType = void 0;
        var l = e("../../EZFramework/EZFramework"),
            c = e("../../EZFramework/EZFramework"),
            u = e("../../../Proto/Static/RpcProto"),
            p = e("../../Consts/Consts"),
            d = e("../../Tool/Tool"),
            h = e("../../Util/index"),
            f = e("./G123Action"),
            y = e("../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/GameRecord"),
            m = e("../InitHelper"),
            I = e("../../../Proto/Static/ConfigProto"),
            _ = e("../Components/Components"),
            C = e("../Components/Components"),
            v = e("../Auxiliary/DataUtlity"),
            b = e("../UI/Auxiliary/UIUtlity"),
            S = e("../Auxiliary/EventKeys"),
            w = e("../Auxiliary/GameDataChecker"),
            P = e("./AdjustAction"),
            A = cc._decorator,
            T = A.ccclass,
            R = (A.property, function() {
                function e() {}
                return e.Init = "g_init", e.Register = "g_register", e.CreateRole = "g_createrole", e.Lonin = "g_login", e.Tutorial = "g_tutorial", e.Logout = "g_logout", e.Click = "g_click", e.PayRequest = "g_payrequest", e.PayEnd = "g_payend", e.Levelup = "g_levelup", e.MapMileStone = "g_milestone_map", e
            }());
        n.ActionType = R;
        var L = function() {
            function e() {}
            return e.InitGame = "initGame", e.RequestInit_Start = "requestInit_start", e.RequestInit_Success = "requestInit_success", e.RequestInit_Error = "requestInit_error", e.DownloadConfig = "download_config_done", e.RequestLogin = "requestLogin_done", e
        }();
        n.GameClientAction = L;
        var k = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._isG123Live = void 0, t.IsG123DEV = !1, t._storageAccountLog = null, t._StorageAccountInfo = null, t
            }
            var n;
            return r(t, e), n = t, Object.defineProperty(t, "Instance", {
                get: function() {
                    return null === this._instance && (this._instance = cc.find(c.SysDefine.SYS_SCRIPTNODE).addComponent(this)), this._instance
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.UseSeflLoginSystem = function() {
                var e;
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.EzAndroid:
                    case p.GameChannels.EzIos:
                        e = !0;
                        break;
                    default:
                        e = !1
                }
                return e
            }, t.prototype.GetLoginInfo = function() {
                return a(this, void 0, Promise, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                switch (e = _.GlobalConfigComponent.Instance.ServerAddress, t = e + "/get_login_info", (n = new u.Req_Web_GetLoginInfo).Param = _.GlobalConfigComponent.Instance.CreateWebCommonParam(p.GlobalSetting.RPC_SECRET_CODE), _.GlobalConfigComponent.Instance.Channel) {
                                    case p.GameChannels.G123JP_WebMobile:
                                        return [3, 1]
                                }
                                return [3, 3];
                            case 1:
                                return o = n, [4, this.AccessCode()];
                            case 2:
                                return o.Token = s.sent(), [3, 4];
                            case 3:
                                return n.Token = this.StorageAccountInfo.Current ? this.StorageAccountInfo.Current.Token : "", n.Pid = this.StorageAccountInfo.Current ? this.StorageAccountInfo.Current.Id : "", [3, 4];
                            case 4:
                                r = null, s.label = 5;
                            case 5:
                                return s.trys.push([5, 7, , 8]), [4, d.HttpTool.SendPostRequest(t, u.Req_Web_GetLoginInfo.encode(n).finish())];
                            case 6:
                                return i = s.sent(), r = u.Res_Web_GetLoginInfo.decode(i), _.DataCenter.Instance.PlatformId = r.Pid, [2, r];
                            case 7:
                                return a = s.sent(), l.EZLog.Error(a), [3, 8];
                            case 8:
                                return [2]
                        }
                    })
                })
            }, t.prototype.GameServerLogin = function() {
                return a(this, void 0, Promise, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                switch (e = _.GlobalConfigComponent.Instance.ServerAddress, t = e + "/login", (n = new u.Req_Web_Login).Param = _.GlobalConfigComponent.Instance.CreateWebCommonParam(p.GlobalSetting.RPC_SECRET_CODE), n.Zone = _.DataCenter.OriginalZone, _.GlobalConfigComponent.Instance.Channel) {
                                    case p.GameChannels.G123JP_WebMobile:
                                        return [3, 1]
                                }
                                return [3, 3];
                            case 1:
                                return o = n, [4, this.AccessCode()];
                            case 2:
                                return o.Token = s.sent(), (r = this.SpecialZone) && (n.SpZone = r), [3, 4];
                            case 3:
                                return n.Token = this.StorageAccountInfo.Current ? this.StorageAccountInfo.Current.Token : "", n.Pid = this.StorageAccountInfo.Current ? this.StorageAccountInfo.Current.Id : "", [3, 4];
                            case 4:
                                s.label = 5;
                            case 5:
                                return s.trys.push([5, 7, , 8]), [4, d.HttpTool.SendPostRequest(t, u.Req_Web_Login.encode(n).finish())];
                            case 6:
                                return i = s.sent(), [2, u.Res_Web_Login.decode(i)];
                            case 7:
                                return a = s.sent(), l.EZLog.Error(a), [3, 8];
                            case 8:
                                return [2]
                        }
                    })
                })
            }, t.prototype.DebugGameServerLogin = function(e) {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                t = _.GlobalConfigComponent.Instance.ServerAddress, n = t + "/login_debug", (o = new u.Req_Web_LoginDebug).Param = _.GlobalConfigComponent.Instance.CreateWebCommonParam(p.GlobalSetting.RPC_SECRET_CODE), o.Uid = e, a.label = 1;
                            case 1:
                                return a.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(n, u.Req_Web_LoginDebug.encode(o).finish())];
                            case 2:
                                return r = a.sent(), [2, u.Res_Web_Login.decode(r)];
                            case 3:
                                return i = a.sent(), l.EZLog.Error(i), [3, 4];
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.AccessCode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                switch (_.GlobalConfigComponent.Instance.Channel) {
                                    case p.GameChannels.G123JP_WebMobile:
                                        return [3, 1]
                                }
                                return [3, 3];
                            case 1:
                                return [4, window.CpSdk.getPlatformParams()];
                            case 2:
                                return t = n.sent(), e = t.code, [3, 3];
                            case 3:
                                return [2, e]
                        }
                    })
                })
            }, Object.defineProperty(t.prototype, "SpecialZone", {
                get: function() {
                    var e, t = window.location.search.match(/(?:utm_medium=)(\w+)/);
                    return t && (e = t[1]), e
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.IsG123Live = function() {
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.G123JP_WebMobile:
                        null == this._isG123Live && (window.location.hostname.indexOf("stg.") > -1 ? (this._isG123Live = !1, window.location.href.indexOf("G123Test2") > -1 ? this.IsG123DEV = !0 : this.IsG123DEV = !1) : this._isG123Live = !0)
                }
                return this._isG123Live
            }, t.prototype.GetVNMobileServerAddress = function() {
                var e;
                if (_.GlobalConfigComponent.Instance.Channel == p.GameChannels.VN_WebMobile) {
                    var t = window.location.hostname;
                    e = t.indexOf("test1.mongafk") > -1 ? p.GameServerAddresses.VnTest1 : t.indexOf("test2.mongafk") > -1 ? p.GameServerAddresses.VnTest2 : p.GameServerAddresses.VnLive
                }
                return e
            }, t.prototype.Pay = function(e, t, n) {
                var o = this;
                if (void 0 === t && (t = 0), void 0 === n && (n = 0), e > 0)
                    if (t) {
                        var r = v.default.GetGiftPack(t, e);
                        r && "" != r.PayId && (n = r.Money)
                    } else {
                        var i = _.ConfigDataComponent.Instance.GetConfigById(I.GiftPack_Config, e);
                        i && "" != i.PayId && (n = i.Money)
                    } var a = v.default.GetVoucherTickets(n);
                a.length > 0 ? b.UIUtlity.ShowHintPanel("", "voucher_hint_info".ToUILocale().Fmt(a.length), "voucher_none_use".ToUILocale(), function() {
                    o.CheckDiscountTicket(e, t)
                }, "voucher_use".ToUILocale(), function() {
                    o.DoPayJobCheckUseCurrency(e, t, a[0].Sid)
                }) : this.CheckDiscountTicket(e, t, n)
            }, t.prototype.BuyCurrencyPack = function(e, t, n) {
                if (void 0 === t && (t = 0), void 0 === n && (n = 0), t) {
                    var o = v.default.GetGiftPack(t, e);
                    o && "" != o.PayId && (n = o.Money)
                } else {
                    var r = _.ConfigDataComponent.Instance.GetConfigById(I.GiftPack_Config, e);
                    r && "" != r.PayId && (n = r.Money)
                }
                this.OnlyUseCurrencyPay(e, t, null, n)
            }, t.prototype.CheckDiscountTicket = function(e, t, n) {
                var o = this;
                if (void 0 === t && (t = 0), void 0 === n && (n = 0), t && 1 == _.DataCenter.Instance.GetActivityConfigsByActId(t).Common.CanDiscount) {
                    var r = v.default.GetGiftPack(t, e);
                    if ("" != r.PayId) {
                        var i = v.default.GetDiscountTickets(r.Money);
                        if (i.length > 0) return void c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CurrencyDiscountPanel.Path, i, function(n) {
                            var r = C.ConfigDataComponent.Instance.GetConfigById(I.ItemCurrencyDiscount_Config, n);
                            o.DoPayJobCheckUseCurrency(e, t, n, r.NewPrice)
                        })
                    }
                }
                this.DoPayJobCheckUseCurrency(e, t, null, n)
            }, t.prototype.DoUseCurrencyItemId = function(e, t, n) {
                var o = new u.Req_Pay_ByCurrency;
                o.Currency = this.Localization_Currency, o.DiscountTicketId = t, o.GameModule = n, o.Packs = e, _.RpcComponent.Instance.Call(o, function(e) {
                    e && e.Rewards && e.Rewards.length > 0 && b.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                })
            }, t.prototype.CheckUseCurrency = function(e, t, n, o, r) {
                var i = this,
                    a = this.CurrencyItemID;
                if (a) {
                    var s = C.DataCenter.Instance.GetItemCount(a);
                    if (s >= 100 * o) {
                        if (g.default.GetItem(g.GameRecordDefine.UseCurrencyTip)) this.DoUseCurrencyItemId(e, t, n);
                        else {
                            var l = {
                                Text: "use_currencyTip".ToUILocale().Fmt(s / 100),
                                OKText: "",
                                CancelText: "",
                                OKCallback: function() {
                                    i.DoUseCurrencyItemId(e, t, n)
                                },
                                CancelCallback: r,
                                GameRecordInfo: g.GameRecordDefine.UseCurrencyTip
                            };
                            c.UIManager.Instance.ShowUIPanel(y.PanelConfig.UseCurrencyHintPanel.Path, l)
                        }
                        return !0
                    }
                }
                return !1
            }, t.prototype.DoPayJobCheckUseCurrency = function(e, t, n, o) {
                var r = this;
                if (void 0 === t && (t = 0), void 0 === o && (o = 0), !_.ConfigDataComponent.Instance.GetConfigById(I.LevelParam_Config, p.LevelParamType.BuyCurrency).Data.includes(e) && o > 0) {
                    var i = new I.IntArray_Config;
                    i.Items = [t * p.Etc.ActivityPrefixRatio + e, 1];
                    var a = this.ExchangeMoney(o);
                    if (this.CheckUseCurrency([i], n, null, a, function() {
                            r.DoPayJob(e, t, n)
                        })) return
                }
                this.DoPayJob(e, t, n)
            }, t.prototype.OnlyUseCurrencyPay = function(e, t, n, o) {
                if (void 0 === t && (t = 0), void 0 === o && (o = 0), !_.ConfigDataComponent.Instance.GetConfigById(I.LevelParam_Config, p.LevelParamType.BuyCurrency).Data.includes(e)) {
                    var r = new I.IntArray_Config;
                    r.Items = [t * p.Etc.ActivityPrefixRatio + e, 1];
                    var i = this.ExchangeMoney(o);
                    if (this.CheckUseCurrency([r], n, null, i, function() {})) return
                }
            }, t.prototype.DoPayJob = function(e, t, o) {
                switch (void 0 === t && (t = 0), _.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.G123JP_WebMobile:
                        n.Instance.IsG123DEV ? this.PayTest(e, t, o) : this.G123SendPayment(e, t, o);
                        break;
                    case p.GameChannels.VN_iOS:
                    case p.GameChannels.VN_Android:
                    case p.GameChannels.VN_WebMobile:
                        this.CheckPayByColorDiamond(e, t, o);
                        break;
                    default:
                        this.PayTest(e, t, o)
                }
            }, t.prototype.CheckPayByColorDiamond = function(e, t, n) {
                var o = this;
                void 0 === t && (t = 0);
                var r = 0,
                    i = "";
                if (e > 0)
                    if (t) {
                        var a = v.default.GetGiftPack(t, e);
                        a && "" != a.PayId && (r = a.Money, i = a.Name)
                    } else {
                        var s = _.ConfigDataComponent.Instance.GetConfigById(I.GiftPack_Config, e);
                        s && "" != s.PayId && (r = s.Money, i = s.Id.ToGiftPackName())
                    } if (r > 0) {
                    if (!C.DataCenter.Instance.IsItemEnough(p.CommonItemId.ColorDiamond, r)) return void b.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(p.CommonItemId.ColorDiamond.ToItemName()));
                    var l = "vn_pay_check".ToUILocale().Fmt(r, i);
                    b.UIUtlity.ShowHintPanel("", l, "", null, "", function() {
                        o.PayByColorDiamond(e, t, n)
                    })
                } else this.PayByColorDiamond(e, t, n)
            }, t.prototype.PayByColorDiamond = function(e, t, n) {
                var o = this;
                void 0 === t && (t = 0);
                var r = new u.Req_PaySucceeded_VN;
                r.Id = e, r.ActivityId = t, n && (r.DiscountTicketId = n), _.RpcComponent.Instance.Call(r, function(t) {
                    if (P.default.AdjustTrackEvent(P.AdjustEventToken.Purchase), t && t.Rewards && t.Rewards.length > 0) {
                        var n = C.ConfigCacheComponent.Instance.GetGiftInfoById(e);
                        if (null != n) switch (n.Type) {
                            case p.GiftPackType.Trigger:
                                var r = n.Index;
                                o.RemoveTriggerGiftDataById(r), l.Game.EventDispatcher.Emit(S.EventKeys.EVENT_TRIGGER_GIFT_CLOSE, r);
                                break;
                            case p.GiftPackType.MonthCard:
                                P.default.AdjustTrackEvent(P.AdjustEventToken.MonthCard)
                        }
                        b.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    }
                })
            }, t.prototype.PayTest = function(e, t, n) {
                var o = this;
                void 0 === t && (t = 0);
                var r = new u.Req_Pay_Succeeded_Test;
                r.Id = e, r.ActivityId = t, n && (r.DiscountTicketId = n), _.RpcComponent.Instance.Call(r, function(t) {
                    if (t && t.Rewards && t.Rewards.length > 0) {
                        var n = C.ConfigCacheComponent.Instance.GetGiftInfoById(e);
                        if (null != n) switch (n.Type) {
                            case p.GiftPackType.Trigger:
                                var r = n.Index;
                                o.RemoveTriggerGiftDataById(r), l.Game.EventDispatcher.Emit(S.EventKeys.EVENT_TRIGGER_GIFT_CLOSE, r)
                        }
                        b.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    }
                })
            }, t.prototype.G123SendPayment = function(e, t, n) {
                var o = this,
                    r = new u.Req_PayOrder_G123;
                r.Id = e, r.ActivityId = t, r.Currency = this.Localization_Currency, n && (r.DiscountTicketId = n), _.RpcComponent.Instance.Call(r, function(n) {
                    if (n.Rewards && n.Rewards.length > 0) {
                        var r = C.ConfigCacheComponent.Instance.GetGiftInfoById(e);
                        if (null != r) switch (r.Type) {
                            case p.GiftPackType.Trigger:
                                var i = r.Index;
                                o.RemoveTriggerGiftDataById(i), l.Game.EventDispatcher.Emit(S.EventKeys.EVENT_TRIGGER_GIFT_CLOSE, i)
                        }
                        b.UIUtlity.ShwDisplayRewardPanel(n.Rewards)
                    } else window.CpSdk.sendPayment({
                        orderNo: n.OrderNo,
                        token: n.Token
                    }), o.PostMessage(R.PayRequest, e, t)
                })
            }, t.prototype.RemoveTriggerGiftDataById = function(e) {
                C.DataCenter.Instance.TriggerGifts[e] && (l.Game.EventDispatcher.Emit(S.EventKeys.EVENT_REMOVE_TRIGGER_GIFT_DATA, e), delete C.DataCenter.Instance.TriggerGifts[e], w.default.Instance.TriggerGiftCheck())
            }, t.prototype.PostMessage = function(e, t, n) {
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.G123JP_WebMobile:
                        f.default.PostMessage(e, t, n)
                }
            }, t.prototype.PostCustomMessage = function(e, t) {
                f.default.PostCustomMessage(e, t)
            }, t.prototype.CustomerServiceFeedback = function() {
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.G123JP_WebMobile:
                        window.top.postMessage(JSON.stringify({
                            action: "support"
                        }), "*");
                        break;
                    default:
                        c.UIManager.Instance.ShowUIPanel(y.PanelConfig.PlayerFeedBackPanel.Path)
                }
            }, t.prototype.PostUserInfo = function() {
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.G123JP_WebMobile:
                        var e = "VIP" + _.DataCenter.Instance.GetIntData(p.UserDataKey.VipLevel).toString();
                        window.top.postMessage(JSON.stringify({
                            action: "inform",
                            data: {
                                role_id: _.DataCenter.Instance.Uid.toString(),
                                role_name: _.DataCenter.Instance.GetStringData(p.UserDataKey.RoleName),
                                game_server: _.DataCenter.Zone.toString(),
                                tags: [e]
                            }
                        }), "*")
                }
            }, t.prototype.SwitchLanguage = function(e) {
                switch (this.Localization_Lang = this.GetLocaleISOCodeByLocale(e), g.default.SetItem(g.GameRecordDefine.LanguageType, e), _.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.G123JP_WebMobile:
                        window.top.postMessage(JSON.stringify({
                            action: "switch_lang",
                            data: {
                                lang: this.Localization_Lang
                            }
                        }), "*")
                }
                m.InitHelper.LogOut()
            }, t.prototype.GetLocaleISOCodeByLocale = function(e) {
                var t;
                switch (e) {
                    case p.GameLocales.Cn:
                        t = "zh-CN";
                        break;
                    case p.GameLocales.Jp:
                        t = "ja";
                        break;
                    case p.GameLocales.En:
                        t = "en";
                        break;
                    case p.GameLocales.Tw:
                        t = "zh-TW";
                        break;
                    case p.GameLocales.Ko:
                        t = "ko";
                        break;
                    case p.GameLocales.Es:
                        t = "es";
                        break;
                    case p.GameLocales.It:
                        t = "it";
                        break;
                    case p.GameLocales.Fr:
                        t = "fr";
                        break;
                    case p.GameLocales.Nl:
                        t = "nl";
                        break;
                    case p.GameLocales.Pt:
                        t = "pt";
                        break;
                    case p.GameLocales.EsES:
                        t = "es-ES";
                        break;
                    case p.GameLocales.De:
                        t = "de";
                        break;
                    case p.GameLocales.Th:
                        t = "th";
                        break;
                    case p.GameLocales.ID:
                        t = "id";
                        break;
                    case p.GameLocales.VI:
                        t = "vi";
                        break;
                    case p.GameLocales.TL:
                        t = "tl";
                        break;
                    default:
                        t = "en"
                }
                return t
            }, t.prototype.SetLocaleTypeByISOCode = function(e) {
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.G123JP_WebMobile:
                        switch (e) {
                            case "ja":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Jp;
                                break;
                            case "en":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.En;
                                break;
                            case "zh-CN":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Cn;
                                break;
                            case "zh-TW":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Tw;
                                break;
                            case "ko":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Ko;
                                break;
                            case "es":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Es;
                                break;
                            case "it":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.It;
                                break;
                            case "fr":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Fr;
                                break;
                            case "nl":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Nl;
                                break;
                            case "pt":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Pt;
                                break;
                            case "es-ES":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.EsES;
                                break;
                            case "de":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.De;
                                break;
                            case "th":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Th;
                                break;
                            case "id":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.ID;
                                break;
                            case "vi":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.VI;
                                break;
                            case "tl":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.TL;
                                break;
                            case "ar":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.AR;
                                break;
                            case "sl":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.SL;
                                break;
                            case "tr":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.TR;
                                break;
                            case "da":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.DA;
                                break;
                            case "pl":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.PL;
                                break;
                            case "ru":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.RU;
                                break;
                            case "sv":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.SV;
                                break;
                            case "uk":
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.UK;
                                break;
                            default:
                                _.GlobalConfigComponent.Instance.Locale = p.GameLocales.En
                        }
                        break;
                    default:
                        _.GlobalConfigComponent.Instance.Locale = p.GameLocales.Cn
                }
            }, t.prototype.SetLocalizationCurrency = function(e) {
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.G123JP_WebMobile:
                        this.SupportISOCurrency = [];
                        var t = C.ConfigDataComponent.Instance.GetConfigById(I.CurrencyMapping_Config, 10);
                        this.SupportISOCurrency = Object.getOwnPropertyNames(t), this.SupportISOCurrency[0] = "JPY";
                        var n = this.SupportISOCurrency.indexOf(e);
                        this.Localization_Currency = n > -1 ? e : "USD";
                        break;
                    case p.GameChannels.VN_iOS:
                    case p.GameChannels.VN_Android:
                    case p.GameChannels.VN_WebMobile:
                        this.Localization_Currency = "ColorDiamond";
                        break;
                    default:
                        this.Localization_Currency = "JPY"
                }
            }, t.prototype.ExchangeMoney = function(e) {
                var t;
                if ("JPY" == this.Localization_Currency || "ColorDiamond" == this.Localization_Currency) t = e;
                else {
                    if (e <= 0) return 0;
                    var n = C.ConfigDataComponent.Instance.GetConfigById(I.CurrencyMapping_Config, e);
                    if (!n) return e;
                    t = n[this.Localization_Currency], t = Number.parseFloat(t.toFixed(2))
                }
                return t
            }, Object.defineProperty(t.prototype, "CurrencySymbol", {
                get: function() {
                    var e;
                    if (this.Localization_Currency) {
                        var t = C.ConfigDataComponent.Instance.GetConfigById(I.CurrencySymbol_Config, this.Localization_Currency);
                        e = t ? t.Symbol : "$"
                    } else e = "\xa5";
                    return e
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "CurrencyItemID", {
                get: function() {
                    return (this.Localization_Currency ? C.ConfigDataComponent.Instance.GetConfigById(I.CurrencySymbol_Config, this.Localization_Currency) : C.ConfigDataComponent.Instance.GetConfigById(I.CurrencySymbol_Config, "JPY")).ItemId
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "StorageAccountLog", {
                get: function() {
                    if (!this._storageAccountLog) {
                        var e = cc.sys.localStorage.getItem(p.LocalStorageKeys.AccountLog);
                        if (e) try {
                            this._storageAccountLog = JSON.parse(e)
                        } catch (t) {
                            l.EZLog.Error("parse local account log error:", t, e)
                        }
                        this._storageAccountLog || (this._storageAccountLog = {})
                    }
                    return this._storageAccountLog
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SaveAccountLog = function() {
                cc.sys.localStorage.setItem(p.LocalStorageKeys.AccountLog, JSON.stringify(this._storageAccountLog))
            }, Object.defineProperty(t.prototype, "StorageAccountInfo", {
                get: function() {
                    if (!this._StorageAccountInfo) {
                        var e = cc.sys.localStorage.getItem(p.LocalStorageKeys.AccountInfo);
                        if (e) try {
                            this._StorageAccountInfo = JSON.parse(e)
                        } catch (n) {
                            l.EZLog.Error("parse local account info error:", n, e)
                        }
                        if (!this._StorageAccountInfo) {
                            var t = h.StringUtil.GetRandStr(24, 5) + h.TimeUtil.Now();
                            this._StorageAccountInfo = {
                                UUID: t
                            }, this.SaveAccountInfo()
                        }
                        this._StorageAccountInfo.ReadyLogin = !1
                    }
                    return this._StorageAccountInfo
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SaveAccountInfo = function() {
                cc.sys.localStorage.setItem(p.LocalStorageKeys.AccountInfo, JSON.stringify(this._StorageAccountInfo))
            }, t.prototype.CheckCurrentAccount = function() {
                return a(this, void 0, Promise, function() {
                    var e, t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                if (!(e = this.StorageAccountInfo.Current)) return [2, null];
                                t = _.GlobalConfigComponent.Instance.ServerAddress, n = t + "/account_login", (o = new u.Req_Account_Login).Param = _.GlobalConfigComponent.Instance.CreateWebCommonParam(p.GlobalSetting.RPC_SECRET_CODE), o.Pid = e.Id, o.Token = e.Token, a.label = 1;
                            case 1:
                                return a.trys.push([1, 3, , 4]), [4, d.HttpTool.SendPostRequest(n, u.Req_Account_Login.encode(o).finish())];
                            case 2:
                                if (r = a.sent(), (i = u.Res_Account_Login.decode(r)).ErrCode != p.ErrCode.OK) throw new Error(i.ErrCode + ": " + i.ErrMsg);
                                return e.Token = i.Token, this.SaveAccountInfo(), P.default.AdjustTrackEvent(P.AdjustEventToken.Login), [2, e];
                            case 3:
                                return a.sent(), this.StorageAccountInfo.Current = null, [3, 4];
                            case 4:
                                return [2, null]
                        }
                    })
                })
            }, t.prototype.ShopCartPay = function(e, t, n, o) {
                var r = this;
                if (e && 0 != e.length) {
                    for (var i = [], a = function(t) {
                            var n = e[t].Items[0],
                                o = e[t].Items[1];
                            if (n > 100 * p.Etc.ActivityPrefixRatio) {
                                var r = Math.floor(n / p.Etc.ActivityPrefixRatio),
                                    a = C.DataCenter.Instance.ActivityConfigs[r];
                                if (a && a._Packs) {
                                    var s = n % p.Etc.ActivityPrefixRatio;
                                    a._Packs.find(function(e) {
                                        return e.Id == s
                                    }) && o > 0 && i.push(e[t])
                                }
                            } else _.ConfigDataComponent.Instance.GetConfigById(I.GiftPack_Config, n) && o > 0 && i.push(e[t])
                        }, s = 0; s < e.length; s++) a(s);
                    if (0 != i.length) {
                        var l = 0;
                        if (n > 0) {
                            var c = C.DataCenter.Instance.GetDataById(u.CurrencyDiscountTicket_Model, n);
                            if (c && (c.IsPerpetual || c.Time > _.RpcComponent.Instance.ServerTime) && _.RpcComponent.Instance.ServerTime > c.UnlockTime) {
                                this._unavailableDiscountData || (this._unavailableDiscountData = {}, _.ConfigDataComponent.Instance.GetConfigById(I.LevelParam_Config, p.LevelParamType.CannotTicketType).Data2.forEach(function(e) {
                                    var t = e.Items[0];
                                    e.Items.length > 1 && (r._unavailableDiscountData[t] = e.Items.slice(1, e.Items.length))
                                }));
                                var d = _.ConfigDataComponent.Instance.GetConfigById(I.ItemCurrencyDiscount_Config, c.ItemId);
                                this._unavailableDiscountData[t] && this._unavailableDiscountData[t].includes(d.SubType) || (l = n)
                            }
                        }
                        this.CheckUseCurrency(e, n, t, o, function() {
                            r.DoShopCartPayJob(i, t, l)
                        }) || this.DoShopCartPayJob(i, t, l)
                    }
                }
            }, t.prototype.DoShopCartPayJob = function(e, t, o) {
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.G123JP_WebMobile:
                        n.Instance.IsG123DEV ? this.PayShopCartTest(e, t, o) : this.G123ShopCartSendPayment(e, t, o);
                        break;
                    case p.GameChannels.VN_iOS:
                    case p.GameChannels.VN_Android:
                    case p.GameChannels.VN_WebMobile:
                        this.PayShopCartVN(e, t, o);
                        break;
                    default:
                        this.PayShopCartTest(e, t, o)
                }
            }, t.prototype.PayShopCartVN = function(e, t, n) {
                var o = this,
                    r = new u.Req_PaySucceeded_VN2;
                r.Packs = e, r.GameModule = t, n && (r.DiscountTicketId = n), _.RpcComponent.Instance.Call(r, function(t) {
                    t && t.Rewards && t.Rewards.length > 0 && (e.forEach(function(e) {
                        var t = C.ConfigCacheComponent.Instance.GetGiftInfoById(e.Items[0]);
                        if (null != t) switch (t.Type) {
                            case p.GiftPackType.Trigger:
                                var n = t.Index;
                                o.RemoveTriggerGiftDataById(n), l.Game.EventDispatcher.Emit(S.EventKeys.EVENT_TRIGGER_GIFT_CLOSE, n)
                        }
                    }), b.UIUtlity.ShwDisplayRewardPanel(t.Rewards))
                })
            }, t.prototype.PayShopCartTest = function(e, t, n) {
                var o = this,
                    r = new u.Req_Pay_Succeeded_Test2;
                r.Packs = e, r.GameModule = t, n && (r.DiscountTicketId = n), _.RpcComponent.Instance.Call(r, function(t) {
                    t && t.Rewards && t.Rewards.length > 0 && (e.forEach(function(e) {
                        var t = C.ConfigCacheComponent.Instance.GetGiftInfoById(e.Items[0]);
                        if (null != t) switch (t.Type) {
                            case p.GiftPackType.Trigger:
                                var n = t.Index;
                                o.RemoveTriggerGiftDataById(n), l.Game.EventDispatcher.Emit(S.EventKeys.EVENT_TRIGGER_GIFT_CLOSE, n)
                        }
                    }), b.UIUtlity.ShwDisplayRewardPanel(t.Rewards))
                })
            }, t.prototype.G123ShopCartSendPayment = function(e, t, n) {
                var o = this,
                    r = new u.Req_PayOrders_G123;
                r.Packs = e, r.GameModule = t, r.Currency = this.Localization_Currency, n && (r.DiscountTicketId = n), _.RpcComponent.Instance.Call(r, function(t) {
                    t.Rewards && t.Rewards.length > 0 ? (e.forEach(function(e) {
                        var t = C.ConfigCacheComponent.Instance.GetGiftInfoById(e.Items[0]);
                        if (null != t) switch (t.Type) {
                            case p.GiftPackType.Trigger:
                                var n = t.Index;
                                o.RemoveTriggerGiftDataById(n), l.Game.EventDispatcher.Emit(S.EventKeys.EVENT_TRIGGER_GIFT_CLOSE, n)
                        }
                    }), b.UIUtlity.ShwDisplayRewardPanel(t.Rewards)) : window.CpSdk.sendPayment({
                        orderNo: t.OrderNo,
                        token: t.Token
                    })
                })
            }, t.prototype.IsVNChannel = function() {
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.VN_Android:
                    case p.GameChannels.VN_iOS:
                    case p.GameChannels.VN_WebMobile:
                        return !0
                }
                return !1
            }, t.prototype.IsHighSchoolChannel = function() {
                return !0
            }, t.prototype.IsMainlandCheckChannel = function() {
                switch (_.GlobalConfigComponent.Instance.Channel) {
                    case p.GameChannels.Mainland_Check:
                        return !0
                }
                return !1
            }, t.prototype.FireBaseLogEventPay = function(e, t) {
                n.Instance.IsVNChannel() && window.firebase.analytics().logEvent(e, {
                    currency: "VND",
                    value: t,
                    items: [{
                        item_id: p.CommonItemId.ColorDiamond
                    }]
                })
            }, t.prototype.CheckIsHoliday = function(e) {
                return this.Holidays || (this.Holidays = ["20250101", "20250128", "20250129", "20250130", "20250203", "20250204", "20250501", "20250505", "20250602", "20251001", "20251002", "20251006", "20251007", "20251008"]), this.Holidays.indexOf(e) >= 0
            }, t._instance = null, n = i([T], t)
        }(cc.Component);
        n.default = k, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../Consts/Consts": "Consts",
        "../../EZFramework/EZFramework": "EZFramework",
        "../../Tool/Tool": "Tool",
        "../../Util/index": "index",
        "../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/GameDataChecker": "GameDataChecker",
        "../Auxiliary/GameRecord": "GameRecord",
        "../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/Components": "Components",
        "../InitHelper": "InitHelper",
        "../UI/Auxiliary/UIUtlity": "UIUtlity",
        "./AdjustAction": "AdjustAction",
        "./G123Action": "G123Action"
    }],
    ChaosElementEffectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e6749eca7RMDK2DSwpyClb3", "ChaosElementEffectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChaosElementEffectType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/LevelComponent"),
            g = e("./EngraveComponent"),
            m = e("../Auxiliary/UIUtlity");
        (function(e) {
            e[e.Chaos = 0] = "Chaos", e[e.UR = 1] = "UR", e[e.GloryLuckyCharm = 2] = "GloryLuckyCharm", e[e.ActivityBoss = 3] = "ActivityBoss", e[e.LR = 4] = "LR"
        })(l = n.ChaosElementEffectType || (n.ChaosElementEffectType = {}));
        var I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1), t.Title = null, t.Layout = null, t._grayColor = new cc.Color(153, 153, 153), t._activeColor = new cc.Color(98, 78, 60), t._elementEffectUR = 98, t._elementEffectLR = 97, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.LevelComponent), n = this.LoadDynamicAsset("HeroInfoPanel/ChaosEffectDesItem"), o = this.LoadDynamicAsset("HeroInfoPanel/Components/ChaosEffectDescComponent"), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._levelPrefab = e[0], r._desItemPrefab = e[1], r._chaosDescPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._starLevel = t[0], this._type = t[1], t[2] && (this._heroId = t[2])
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        if (this._type == l.Chaos) this.Title.string = h.HeroElementType.Chaos.ToElementEffectName();
                        else if (this._type == l.UR) this.Title.string = this._elementEffectUR.ToElementEffectName();
                        else if (this._type == l.GloryLuckyCharm) {
                            var n = ["engrave_effect1".ToUILocale(), "engrave_effect2".ToUILocale(), "engrave_effect3".ToUILocale(), "engrave_effect4".ToUILocale(), "engrave_effect5".ToUILocale()];
                            this.Title.string = "engrave_effectTitle".ToUILocale().Fmt(n[this._starLevel - 1])
                        } else this._type == l.ActivityBoss ? this.Title.string = "bossReduce_rule_title".ToUILocale() : this._type == l.LR && (this.Title.string = this._elementEffectLR.ToElementEffectName());
                        this.CondfigData(), this.RenderItems()
                    }
                }, t.prototype.CondfigData = function() {
                    this._heroStarConfigList = p.ConfigDataComponent.Instance.GetArrayConfig(u.HeroStar_Config)
                }, t.prototype.RenderItems = function() {
                    var e = this,
                        t = "artifact_has_active".ToUILocale(),
                        n = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._heroId);
                    if (this._type == l.Chaos)
                        for (var o = 5; o <= n.MaxStarLevel; o++) {
                            (h = cc.instantiate(this._desItemPrefab)).setParent(this.Layout);
                            var r = cc.find("LevelNode", h);
                            (f = cc.instantiate(this._levelPrefab)).setParent(r), (I = f.getComponent(y.LevelComponent)).Low.scale = 1.4, I.Low.getComponent(cc.Layout).spacingX = -14, I.Mid.scale = 1.4, I.Mid.getComponent(cc.Layout).spacingX = -14, I.Init(o, 0, 0, y.HighLevelType.Chaos), (a = cc.find("Effect", h).getComponent(cc.Label)).string = o.ToChaosExtraDesc(), o <= this._starLevel ? (cc.find("EnableEffect", h).active = !0, a.node.color = this._activeColor, cc.find("EnableEffect/Hint/Label", h).getComponent(cc.Label).string = t) : a.node.color = this._grayColor
                        } else if (this._type == l.UR) {
                            for (["ur_effect1".ToUILocale(), "ur_effect2".ToUILocale(), "ur_effect3".ToUILocale()].forEach(function(t) {
                                    var n = cc.instantiate(e._chaosDescPrefab);
                                    n.setParent(e.Layout), n.getComponent(cc.RichText).string = t
                                }), o = 0; o < n.MaxStarLevel; o++)
                                if (this._heroStarConfigList[o].URAttrs.length > 0) {
                                    var i = this._heroStarConfigList[o].Id;
                                    (h = cc.instantiate(this._desItemPrefab)).setParent(this.Layout), r = cc.find("LevelNode", h), (f = cc.instantiate(this._levelPrefab)).setParent(r), f.getComponent(y.LevelComponent).Init(i, 0, 0, y.HighLevelType.UR);
                                    var a = cc.find("Effect", h).getComponent(cc.Label),
                                        s = this._heroStarConfigList[o].URAttrs[n.ElementType - 1];
                                    a.string = this.GetURAttrDesc(s), i <= this._starLevel ? cc.find("EnableEffect", h).active = !0 : a.node.color = this._grayColor
                                } this.Layout.getComponent(cc.Layout).updateLayout()
                        } else if (this._type == l.GloryLuckyCharm) {
                        (h = cc.instantiate(this._chaosDescPrefab)).setParent(this.Layout), h.getComponent(cc.RichText).string = "engrave_effect_desc".ToUILocale();
                        var c = g.default.GetEngraveDescDatas(this._starLevel),
                            d = c[0].type;
                        c.forEach(function(t) {
                            var o = cc.instantiate(e._desItemPrefab);
                            o.parent = e.Layout;
                            var r = o.getChildByName("Icon"),
                                i = r.getComponent(cc.Sprite);
                            r.active = !0;
                            var a = cc.find("Effect", o).getComponent(cc.Label);
                            a.string = t.desc, 1 == d ? (i.spriteFrame = m.UIUtlity.GetHeroCareerIcon(t.param), t.param == n.Career ? cc.find("EnableEffect", o).active = !0 : a.node.color = e._grayColor) : 2 == d && (i.spriteFrame = m.UIUtlity.GetHeroElementIcon(t.param), t.param == n.ElementType ? cc.find("EnableEffect", o).active = !0 : a.node.color = e._grayColor)
                        })
                    } else if (this._type == l.ActivityBoss)["bossReduce_rule_content".ToUILocale()].forEach(function(t) {
                        var n = cc.instantiate(e._chaosDescPrefab);
                        n.setParent(e.Layout), n.getComponent(cc.RichText).string = t
                    });
                    else if (this._type == l.LR) {
                        for (["lr_desc1".ToUILocale(), "lr_desc2".ToUILocale(), "lr_desc3".ToUILocale()].forEach(function(t) {
                                var n = cc.instantiate(e._chaosDescPrefab);
                                n.setParent(e.Layout), n.getComponent(cc.RichText).string = t
                            }), o = 0; o < n.MaxStarLevel; o++)
                            if (this._heroStarConfigList[o].LRAttrs.length > 0) {
                                var h, f, I;
                                i = this._heroStarConfigList[o].Id, (h = cc.instantiate(this._desItemPrefab)).setParent(this.Layout), r = cc.find("LevelNode", h), (f = cc.instantiate(this._levelPrefab)).setParent(r), (I = f.getComponent(y.LevelComponent)).Low.scale = 1.4, I.Low.getComponent(cc.Layout).spacingX = -14, I.Mid.scale = 1.4, I.Mid.getComponent(cc.Layout).spacingX = -14, I.Init(i, 0, 0, y.HighLevelType.LR), a = cc.find("Effect", h).getComponent(cc.Label), s = this._heroStarConfigList[o].LRAttrs[n.ElementType - 1], a.string = this.GetURAttrDesc(s), i <= this._starLevel ? (cc.find("EnableEffect", h).active = !0, a.node.color = this._activeColor, cc.find("EnableEffect/Hint/Label", h).getComponent(cc.Label).string = t) : a.node.color = this._grayColor
                            } this.Layout.getComponent(cc.Layout).updateLayout()
                    }
                }, t.prototype.GetURAttrDesc = function(e) {
                    var t = "",
                        n = p.ConfigDataComponent.Instance.GetConfigById(u.HeroStarAttrs_Config, e);
                    return n.Attrs.forEach(function(e, o) {
                        var r = d.default.GetHeroAttribute(e.Items[0], e.Items[1]);
                        o == n.Attrs.length - 1 ? t += "" + "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + r.Name + "+" + r.Value : t += "" + "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + r.Name + "+" + r.Value + ","
                    }), t
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Node)], t.prototype, "Layout", void 0), i([_], t)
            }(c.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/LevelComponent": "LevelComponent",
        "./EngraveComponent": "EngraveComponent"
    }],
    ChaosGetWayPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "63db2f/6alOD4BmPN6P8Hc3", "ChaosGetWayPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../ShareConsts/EnumType"),
            c = e("../../Components/Components"),
            u = e("../Auxiliary/UIUtlity"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Fixed, !0), t.PanelNameLabel = null, t.RuleTitleLabel = null, t.RuleLeftRichText = null, t.ItemCountLabel = null, t.RecordTitleLabel = null, t.RechargeAmountTagLabel = null, t.RechargeAmountValueLabel = null, t.TicketCanCollectTagLabel = null, t.TicketCanCollectValueLabel = null, t.CollectButton = null, t.CollectButtonLabel = null, t.TipLabel = null, t._currentRechargeAmount = 0, t._canCollectAmount = 0, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._summonTicketPrice = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("ChaosSummonTicketPrice");
                    var t = l.CommonItemId.ChaosSummonTicket.ToItemName();
                    this.PanelNameLabel.string = "ChaosGetWay_PanelName".ToUILocale().Fmt(t), this.RuleTitleLabel.string = "ChaosGetWay_RuleTitle".ToUILocale(), this.RuleLeftRichText.string = "ChaosGetWay_RuleContentLeft".ToUILocale().Fmt(this._summonTicketPrice), this.ItemCountLabel.string = "x1", this.RecordTitleLabel.string = "ChaosGetWay_RecordTitle".ToUILocale(), this.RechargeAmountTagLabel.string = "ChaosGetWay_RechargeAmountTag".ToUILocale(), this.TicketCanCollectTagLabel.string = "ChaosGetWay_TicketCanCollectTag".ToUILocale().Fmt(t), this.CollectButtonLabel.string = "receive".ToUILocale(), this.TipLabel.string = "ChaosGetWay_Tip".ToUILocale().Fmt(t), this.CollectButton.node.on("click", this.OnCollectButtonClicked, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetView()
                }, t.prototype.SetView = function() {
                    this._currentRechargeAmount = c.DataCenter.Instance.GetIntData(l.UserDataKey.ChaosSummonRemainedPoint), this._canCollectAmount = Math.floor(this._currentRechargeAmount / this._summonTicketPrice), this.RechargeAmountValueLabel.string = "ChaosGetWay_RechargeAmountValue".ToUILocale().Fmt(this._currentRechargeAmount), this.TicketCanCollectValueLabel.string = this._canCollectAmount.toString()
                }, t.prototype.OnCollectButtonClicked = function() {
                    if (this._canCollectAmount <= 0) u.UIUtlity.ShowFloatingHint("ChaosGetWay_NoTicketCanCollect".ToUILocale().Fmt(l.CommonItemId.ChaosSummonTicket.ToItemName()));
                    else {
                        var e = new a.Req_Player_ReciveChaosTicket;
                        c.RpcComponent.Instance.Call(e, this.OnCollectSuccess.bind(this))
                    }
                }, t.prototype.OnCollectSuccess = function(e) {
                    u.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this.SetView()
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t)
                }, i([h(cc.Label)], t.prototype, "PanelNameLabel", void 0), i([h(cc.Label)], t.prototype, "RuleTitleLabel", void 0), i([h(cc.RichText)], t.prototype, "RuleLeftRichText", void 0), i([h(cc.Label)], t.prototype, "ItemCountLabel", void 0), i([h(cc.Label)], t.prototype, "RecordTitleLabel", void 0), i([h(cc.Label)], t.prototype, "RechargeAmountTagLabel", void 0), i([h(cc.Label)], t.prototype, "RechargeAmountValueLabel", void 0), i([h(cc.Label)], t.prototype, "TicketCanCollectTagLabel", void 0), i([h(cc.Label)], t.prototype, "TicketCanCollectValueLabel", void 0), i([h(cc.Button)], t.prototype, "CollectButton", void 0), i([h(cc.Label)], t.prototype, "CollectButtonLabel", void 0), i([h(cc.Label)], t.prototype, "TipLabel", void 0), i([d], t)
            }(s.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    ChaosGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9aa43MJ8H1NQ64TmCsDsfUh", "ChaosGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Etc"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Channel/ChannelManager"),
            m = e("../../Components/Components"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/CustomLayout"),
            C = e("./ElderGiftPackComponent"),
            v = e("./NodePool"),
            b = e("../../../../Proto/Static/RpcProto"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !0), t.TopBackground = null, t.TimeLeftRichText = null, t.GiftPackItemScrollView = null, t.GiftPackItemContainer = null, t._customLayout = null, t._itemPrefab = null, t._singlePrefab = null, t._itemPool = null, t._giftConfigs = [], t._activityConfigData = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyGiftButtonClick, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess, this)
                }, t.prototype.onDisable = function() {
                    this.unscheduleAllCallbacks(), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyGiftButtonClick), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallElderGiftPackPanel/Component/ElderGiftPackComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1], o._itemPool = new v.default(o._itemPrefab)
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._customLayout = this.GiftPackItemContainer.getComponent(_.default), this._customLayout.Init(this._singlePrefab)
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this, t), this._heroAvatarId = t[0], this._activityConfigData = t[1], this._giftPackType = t[2], this._activityConfigData) this._summonStartTime = this._activityConfigData.Common.StartTime, this._summonEndTime = h.default.Instance.ComputeDeadTime(this._activityConfigData.Common) - 3 * u.Etc.HourDuration;
                    else {
                        var n = m.DataCenter.Instance.ZoneGroupResetTime;
                        this._summonStartTime = n - u.Etc.HourDuration * this._summonOpenHours, this._summonEndTime = n - 3 * u.Etc.HourDuration
                    }
                    this.LoadGiftPackConfig()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetTopBackgroudImage(), this.SetTimeLeftView(), this.schedule(this.SetTimeLeftView, 1), this._customLayout.RenderLayOut(this._giftConfigs.length)
                }, t.prototype.SetTopBackgroudImage = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset("ChaosSummonPanel/PNG/GiftPackTopBackground/" + this._heroAvatarId, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.TopBackground.spriteFrame = e, [2]) : (p.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.LoadGiftPackConfig = function() {
                    var e = this;
                    if (this._giftConfigs = [], this._activityConfigData) {
                        var t = [],
                            n = [],
                            o = m.DataCenter.Instance.GetDataById(b.UserActivity_Model, this._activityConfigData._id),
                            r = this._giftPackType == d.LevelParamType.ChaosSummonGiftPack ? this._activityConfigData.CustomPart.HeroPackIds : this._activityConfigData.CustomPart.PersonalityPackIds,
                            i = [];
                        r.forEach(function(t) {
                            for (var n = 0; n < e._activityConfigData._Packs.length; n++)
                                if (e._activityConfigData._Packs[n].Id == t) {
                                    i.push(e._activityConfigData._Packs[n]);
                                    break
                                }
                        }), i.forEach(function(e) {
                            var r = o.Packs[e.Id] && o.Packs[e.Id].Items[0] ? o.Packs[e.Id].Items[0] : 0;
                            e.LimitCount ? e.LimitCount - r > 0 ? n.push(e) : t.push(e) : n.push(e)
                        }), n.forEach(function(t) {
                            e._giftConfigs.push(t)
                        }), t.forEach(function(t) {
                            e._giftConfigs.push(t)
                        })
                    } else {
                        var a = m.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, this._giftPackType).Data,
                            s = [],
                            c = [];
                        a.forEach(function(e) {
                            var t = m.ConfigDataComponent.Instance.GetConfigById(l.GiftPack_Config, e);
                            t.LimitCount ? t.LimitCount - h.default.Instance.GetGiftBuyCount(t.Id) > 0 ? c.push(t) : s.push(t) : c.push(t)
                        }), c.forEach(function(t) {
                            e._giftConfigs.push(t)
                        }), s.forEach(function(t) {
                            e._giftConfigs.push(t)
                        })
                    }
                }, t.prototype.SetTimeLeftView = function() {
                    this._activityConfigData ? this._summonEndTime - m.RpcComponent.Instance.ServerTime > 0 ? this.TimeLeftRichText.string = "ChaosSummonGift_TimeLeft".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(this._summonEndTime - m.RpcComponent.Instance.ServerTime)) : (this.TimeLeftRichText.string = "<outline color=#202434 width=3>" + "activity_end".ToUILocale() + "</outline>", this.unschedule(this.SetTimeLeftView)) : this.TimeLeftRichText.string = "ChaosSummonGift_TimeLeft".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(Math.max(this._summonEndTime - m.RpcComponent.Instance.ServerTime, 0)))
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    if (t == this._customLayout)
                        if (this._activityConfigData) {
                            var o = m.DataCenter.Instance.GetDataById(b.UserActivity_Model, this._activityConfigData._id);
                            e.forEach(function(e, t) {
                                var r = n._giftConfigs[t],
                                    i = null == r.Money || 0 == r.Money ? 0 : g.default.Instance.ExchangeMoney(r.Money),
                                    a = o.Packs[r.Id] && o.Packs[r.Id].Items[0] ? o.Packs[r.Id].Items[0] : 0;
                                e.getComponent(C.default).SetNodSize(973, 221, 1).SetItems(n._itemPool, r.Items).SetButtonLabel(i, r.VipPoint).SetPurchaseLimit(r.LimitCount - a, r.LimitCount, r.LimitType).SetTitle(r.Name).SetDiscount(r.Discount).SetButtonClick(t)
                            })
                        } else e.forEach(function(e, t) {
                            var o = n._giftConfigs[t],
                                r = null == o.Money || 0 == o.Money ? 0 : g.default.Instance.ExchangeMoney(o.Money);
                            e.getComponent(C.default).SetNodSize(973, 221, 1).SetItems(n._itemPool, o.Items).SetButtonLabel(r, o.VipPoint).SetPurchaseLimit(o.LimitCount - h.default.Instance.GetGiftBuyCount(o.Id), o.LimitCount, o.LimitType).SetTitle(m.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id)).SetDiscount(o.Discount).SetButtonClick(t)
                        })
                }, t.prototype.OnBuyGiftButtonClick = function(e) {
                    var t = this,
                        n = m.RpcComponent.Instance.ServerTime;
                    if (n < this._summonStartTime || n > this._summonEndTime) I.UIUtlity.ShowFloatingHint("ChaosSummon_SummonEnd".ToUILocale());
                    else if (0 == this._giftConfigs[e].Money) {
                        var o = new c.Req_Pay_ByDiamond;
                        this._activityConfigData ? (o.Id = this._giftConfigs[e].Id, o.ActivityId = this._activityConfigData._id, m.RpcComponent.Instance.Call(o, function(e) {
                            I.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t.ResetListView()
                        })) : (o.Id = this._giftConfigs[e].Id, m.RpcComponent.Instance.Call(o, function(e) {
                            I.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t.ResetListView()
                        }))
                    } else this._activityConfigData ? g.default.Instance.Pay(this._giftConfigs[e].Id, this._activityConfigData._id) : g.default.Instance.Pay(this._giftConfigs[e].Id)
                }, t.prototype.OnBuyGiftPackSuccess = function() {
                    this.ResetListView()
                }, t.prototype.ResetListView = function() {
                    this.LoadGiftPackConfig(), this._customLayout.RenderLayOut(this._giftConfigs.length)
                }, t.prototype.onDestroy = function() {
                    var e;
                    null === (e = this._itemPool) || void 0 === e || e.Clear()
                }, i([P(cc.Sprite)], t.prototype, "TopBackground", void 0), i([P(cc.RichText)], t.prototype, "TimeLeftRichText", void 0), i([P(cc.ScrollView)], t.prototype, "GiftPackItemScrollView", void 0), i([P(_.default)], t.prototype, "GiftPackItemContainer", void 0), i([w], t)
            }(p.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./ElderGiftPackComponent": "ElderGiftPackComponent",
        "./NodePool": "NodePool"
    }],
    ChaosHeroListItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "33d59GBrrpPRqZBwdPF19Ql", "ChaosHeroListItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./LevelComponent"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../RedDot/RedDotDataHandler"),
            g = e("../Panel/ElementTemplePanel"),
            m = e("../../../ShareConsts/EnumType"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ChaosIconSpine = null, t.ElementIconBorder = null, t.ElementIcon = null, t.Border = null, t.HeroAvatarNode = null, t.LevelComponent = null, t.HeroLevelLabel = null, t.HeroName = null, t.CareerIcon = null, t.RedDotNode = null, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnChaosHeroListItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnChaosHeroListItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._heroId = e, this._type = t, this._atlas = n, this._heroInfoModel = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, e);
                    var o = this._heroInfoModel ? this._heroInfoModel.MaxStar : 5;
                    this.HeroName.string = e.ToHeroTitle(), this._heroConfig = p.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e);
                    var r = c.LevelComponent.GetLevelShowType(this._heroConfig.CoreHero, this._heroConfig.ElementType);
                    this.LevelComponent.Init(o, 0, 0, r), this.CareerIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("profession_" + this._heroConfig.Career), this.SetElementIcon(), this.SetBorder(), this.SetAvatar();
                    var i = {
                        Value1: this._heroId,
                        extra: this._type
                    };
                    this.RedDotNode.active = y.RedDotDataHandler.Instance.RefreshChaosHeroResonanceUpLevelButtonNode(i) || y.RedDotDataHandler.Instance.RefreshChaosHeroTempleUpLevelButtonNode(i)
                }, t.prototype.SetElementIcon = function() {
                    var e;
                    switch (this.ChaosIconSpine.node.active = !1, this._heroInfoModel ? (h.UIUtlity.OffNodeGray(this.node), this._type, g.HeroTempleType.Chaos) : h.UIUtlity.OnNodeGray(this.node), this._type) {
                        case g.HeroTempleType.Chaos:
                            e = "element_chaos";
                            break;
                        case g.HeroTempleType.Element:
                        case g.HeroTempleType.LR:
                            switch (this._heroConfig.ElementType) {
                                case m.HeroElementType.Heart:
                                    e = "element_heart";
                                    break;
                                case m.HeroElementType.Power:
                                    e = "element_power";
                                    break;
                                case m.HeroElementType.Tech:
                                    e = "element_tech";
                                    break;
                                case m.HeroElementType.Break:
                                    e = "element_break";
                                    break;
                                case m.HeroElementType.Fight:
                                    e = "element_fight"
                            }
                    }
                    this.ElementIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame(e), this.ElementIconBorder.node.active = !1, h.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero] && (this.ElementIconBorder.node.active = !0, this.ElementIconBorder.spriteFrame = h.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(h.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero].Cricle))
                }, t.prototype.SetAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.HeroAvatarNode.destroyAllChildren(), this._heroAvatarPrefab && (l.AssetsManager.Instance.UnloadAsset(this._heroAvatarPrefab), this._heroAvatarPrefab = null), this._avatarPath = "CuteHeroAvatar_" + this._heroConfig.Model + "/Avatar", [4, l.AssetsManager.Instance.LoadAsset(this._avatarPath, cc.Prefab)];
                                case 1:
                                    return e = n.sent(), this.isValid && e.name == this._avatarPath ? (this._heroAvatarPrefab = e, (t = cc.instantiate(this._heroAvatarPrefab)).setParent(this.HeroAvatarNode), t.y = 100, this._heroInfoModel ? h.UIUtlity.OffSpineGray(this.HeroAvatarNode) : h.UIUtlity.OnSpineGray(this.HeroAvatarNode), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetBorder = function() {
                    var e;
                    switch (this._type) {
                        case g.HeroTempleType.Element:
                        case g.HeroTempleType.LR:
                            e = "BorderElement_" + this._heroConfig.ElementType;
                            break;
                        case g.HeroTempleType.Chaos:
                            e = "BorderElement_chaos"
                    }
                    this.Border.spriteFrame = this._atlas.getSpriteFrame(e)
                }, t.prototype.SetChaosIconSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._chaosIconSpine ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("ItemsComponent/Spine/ChaosSpine/UI_hundun_tubiao", sp.SkeletonData)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._chaosIconSpine = e, this.ChaosIconSpine.skeletonData = this._chaosIconSpine, t.label = 2;
                                case 2:
                                    return this.ChaosIconSpine.setAnimation(0, "Ani_UI_hundun_tubiao", !0), [2]
                            }
                        })
                    })
                }, t.prototype.OnChaosHeroListItemClick = function() {
                    this._heroInfoModel ? l.UIManager.Instance.ShowUIPanel(f.PanelConfig.ChaosHeroTempleUpPanel.Path, this._heroId, this._type) : h.UIUtlity.ShowFloatingHint("ChaosTemple_Unlock_Tip".ToUILocale())
                }, t.prototype.onDestroy = function() {
                    this._heroAvatarPrefab && l.AssetsManager.Instance.UnloadAsset(this._heroAvatarPrefab), this._unloadAssets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([C(sp.Skeleton)], t.prototype, "ChaosIconSpine", void 0), i([C(cc.Sprite)], t.prototype, "ElementIconBorder", void 0), i([C(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([C(cc.Sprite)], t.prototype, "Border", void 0), i([C(cc.Node)], t.prototype, "HeroAvatarNode", void 0), i([C(c.LevelComponent)], t.prototype, "LevelComponent", void 0), i([C(cc.Label)], t.prototype, "HeroLevelLabel", void 0), i([C(cc.Label)], t.prototype, "HeroName", void 0), i([C(cc.Sprite)], t.prototype, "CareerIcon", void 0), i([C(cc.Node)], t.prototype, "RedDotNode", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ElementTemplePanel": "ElementTemplePanel",
        "./LevelComponent": "LevelComponent"
    }],
    ChaosHeroTempleDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06be5zHnOpGAoPgTCAGUeG8", "ChaosHeroTempleDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("./ElementTemplePanel"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Title = null, t.Tip = null, t.ResonanceTag = null, t.ResonanceValue = null, t.HeroStarTag = null, t.HeroStarValue = null, t.TreasureTag = null, t.TreasureValue = null, t.CurrentUpLevelTag = null, t.CurrentUpLevelValue = null, t.LeftUpLevelTimesTag = null, t.LeftUpLevelTimesValue = null, t.PERSONALITY_MAX_STAR = 5, t.TREASURE_MAX_STAR = 6, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tip.string = "ChaosTemple_Detail_Tip".ToUILocale(), this.HeroStarTag.string = "ChaosTemple_Detail_Hero_Up_Times".ToUILocale(), this.TreasureTag.string = "ChaosTemple_Detail_Treasure_Up_Times".ToUILocale(), this.CurrentUpLevelTag.string = "ChaosTemple_Detail_Up_Times".ToUILocale(), this.LeftUpLevelTimesTag.string = "ChaosTemple_Detail_Left_Up_Times".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroId = t[0], this._templeType = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n, o = s.DataCenter.Instance.GetDataById(l.HeroInfo_Model, this._heroId),
                        r = s.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._heroId),
                        i = s.DataCenter.Instance.GetDataById(l.ExclusiveWeapon_Model, this._heroId);
                    switch (this._templeType) {
                        case p.HeroTempleType.Chaos:
                            this.Title.string = "ChaosTemple_Detail_Title".ToUILocale(), this.ResonanceTag.string = "ChaosTemple_ChaosPower".ToUILocale();
                            var a = s.DataCenter.Instance.GetArrayData(c.UserDataKey.ChaosTempleLevel),
                                d = a.indexOf(this._heroId);
                            n = -1 == d ? 0 : a[d + 1];
                            break;
                        case p.HeroTempleType.Element:
                            this.Title.string = "ChaosTemple_Detail_UR_Title".ToUILocale(), this.ResonanceTag.string = "ChaosTemple_UR_Power".ToUILocale(), n = o.ElementTempleLevel;
                            break;
                        case p.HeroTempleType.LR:
                            this.Title.string = "ChaosTemple_Detail_LR_Title".ToUILocale(), this.ResonanceTag.string = "ChaosTemple_LR_Power".ToUILocale(), n = o.ElementTempleLevel
                    }
                    var h = i ? i.Star : 0;
                    this.ResonanceValue.string = "allianceBase_level".ToUILocale().Fmt(n), this.HeroStarValue.string = o.MaxStar - 4 + "/" + r.MaxStarLevel, this.TreasureValue.string = h + "/" + this.TREASURE_MAX_STAR, this.CurrentUpLevelValue.string = n + "/" + (this.TREASURE_MAX_STAR + r.MaxStarLevel + this.PERSONALITY_MAX_STAR);
                    var f = o.MaxStar - 4 + o.PersonalityStar + h - n;
                    this.LeftUpLevelTimesValue.string = f.toString()
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Label)], t.prototype, "Tip", void 0), i([f(cc.Label)], t.prototype, "ResonanceTag", void 0), i([f(cc.Label)], t.prototype, "ResonanceValue", void 0), i([f(cc.Label)], t.prototype, "HeroStarTag", void 0), i([f(cc.Label)], t.prototype, "HeroStarValue", void 0), i([f(cc.Label)], t.prototype, "TreasureTag", void 0), i([f(cc.Label)], t.prototype, "TreasureValue", void 0), i([f(cc.Label)], t.prototype, "CurrentUpLevelTag", void 0), i([f(cc.Label)], t.prototype, "CurrentUpLevelValue", void 0), i([f(cc.Label)], t.prototype, "LeftUpLevelTimesTag", void 0), i([f(cc.Label)], t.prototype, "LeftUpLevelTimesValue", void 0), i([h], t)
            }(a.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "./ElementTemplePanel": "ElementTemplePanel"
    }],
    ChaosHeroTempleResonancePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca429v55jNJXpqJMcPmX9Fx", "ChaosHeroTempleResonancePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ChaosTempleCultivateItemComponent"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../RedDot/RedDotManager"),
            m = e("./ChaosHeroTempleTotalAttrPanel"),
            I = e("./ElementTemplePanel"),
            _ = e("../Components/AttrComponent5"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.CultivateTitle = null, t.CultivateContainer = null, t.ResonanceAddtionTitle = null, t.ResonanceAttrTip = null, t.ResonanceTag = null, t.CurrentLevel = null, t.NextLabel = null, t.ArrowIconNode = null, t.MaxIconNode = null, t.AttrContainer = null, t.Tip = null, t.UpLevelButton = null, t.UpLevelButtonLabel = null, t.MaxLevelTip = null, t.PreviewButton = null, t.PreviewButtonLabel = null, t._cultivateComponentArray = [], t._attrComponentArray = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CollectionPavilionPanel/Components/ChaosTempleCultivateItemComponent", cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/AttrComponent5", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._cultivateItemPrefab = e[1], r._attrPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ChaosTemple_Resonance".ToUILocale(), this.CultivateTitle.string = "ChaosTemple_Resonance_Cultivate_Title".ToUILocale(), this.ResonanceAddtionTitle.string = "ChaosTemple_Resonance_Addtion_Title".ToUILocale(), this.PreviewButtonLabel.string = "CollectionPavilion_HeroFetter_Skill_Max".ToUILocale(), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this), this.PreviewButton.node.on("click", this.OnPreviewButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroId = t[0], this._templeType = t[1], this._templeType == I.HeroTempleType.Chaos ? (this._chaosTempConfig = p.ConfigDataComponent.Instance.GetConfigById(c.ChaosTemple_Config, this._heroId), this._maxResonanceLevel = this._chaosTempConfig.ResonanceCondition.length) : (this._heroBaseConfig = p.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, this._heroId), this._maxResonanceLevel = this._heroBaseConfig.ETResonance.length)
                }, t.prototype.DisPlay = function(t) {
                    switch (e.prototype.DisPlay.call(this, t), t || (this._templeType == I.HeroTempleType.Chaos ? (this.Title.string = "ChaosTemple_Resonance".ToUILocale(), this.Tip.string = "ChaosTemple_Resonance_Tip".ToUILocale(), this.ResonanceAttrTip.string = "ChaosTemple_Resonance_Attr_Tip".ToUILocale(), this.ResonanceTag.string = "ChaosTemple_Resonance_Level_Tag".ToUILocale()) : this._templeType == I.HeroTempleType.Element ? (this.Title.string = "ChaosTemple_UR_Power".ToUILocale(), this.Tip.string = "ChaosTemple_Resonance_Tip_UR".ToUILocale(), this.ResonanceAttrTip.string = "ChaosTemple_Resonance_Attr_Tip_UR".ToUILocale(), this.ResonanceTag.string = "ChaosTemple_Resonance_Level_Tag_UR".ToUILocale()) : this._templeType == I.HeroTempleType.LR && (this.Title.string = "ChaosTemple_LR_Power".ToUILocale(), this.Tip.string = "ChaosTemple_Resonance_Tip_LR".ToUILocale(), this.ResonanceAttrTip.string = "ChaosTemple_Resonance_Attr_Tip_LR".ToUILocale(), this.ResonanceTag.string = "ChaosTemple_Resonance_Level_Tag_LR".ToUILocale())), this._templeType) {
                        case I.HeroTempleType.Chaos:
                            this._chaosTempleData = p.DataCenter.Instance.GetArrayData(f.UserDataKey.ChaosTempleLevel);
                            var n = this._chaosTempleData.indexOf(this._heroId);
                            this._currentResonanceLevel = -1 == n ? 0 : this._chaosTempleData[n + 2];
                            break;
                        case I.HeroTempleType.Element:
                        case I.HeroTempleType.LR:
                            var o = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._heroId);
                            this._currentResonanceLevel = o.ElementTempleResonance
                    }
                    this.SetCultivateContainer(), this.SetCurrentLevelContainer(), this.SetAttrContainer(), this.SetRedDot()
                }, t.prototype.SetCultivateContainer = function() {
                    for (var e = 0; e < h.ChaosTempleCultivateType.TotalCount; e++) {
                        var t = this._cultivateComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._cultivateItemPrefab);
                            n.setParent(this.CultivateContainer), t = n.getComponent(h.default), this._cultivateComponentArray[e] = t
                        }
                        t.Init(e, this._heroId, this._currentResonanceLevel, this._itemPrefab, this._templeType)
                    }
                }, t.prototype.SetCurrentLevelContainer = function() {
                    this.ArrowIconNode.active = !1, this.NextLabel.node.active = !1, this.MaxIconNode.active = !1, this.UpLevelButton.node.active = !0, this.MaxLevelTip.node.active = !1, 0 == this._currentResonanceLevel ? (this.UpLevelButtonLabel.string = "ChaosTemple_Active".ToUILocale(), this.CurrentLevel.string = "allianceBase_level".ToUILocale().Fmt(1)) : this._currentResonanceLevel > 0 && this._currentResonanceLevel < this._maxResonanceLevel ? (this.ArrowIconNode.active = !0, this.NextLabel.node.active = !0, this.UpLevelButtonLabel.string = "common_upgrade_level".ToUILocale(), this.CurrentLevel.string = "allianceBase_level".ToUILocale().Fmt(this._currentResonanceLevel), this.NextLabel.string = "allianceBase_level".ToUILocale().Fmt(this._currentResonanceLevel + 1)) : (this.MaxIconNode.active = !0, this.MaxLevelTip.node.active = !0, this.UpLevelButton.node.active = !1, this.CurrentLevel.string = "allianceBase_level".ToUILocale().Fmt(this._currentResonanceLevel), this.MaxLevelTip.string = "common_max_level".ToUILocale())
                }, t.prototype.SetAttrContainer = function() {
                    var e, t, n = this._currentResonanceLevel > 0 ? this._currentResonanceLevel - 1 : 0;
                    switch (this._templeType) {
                        case I.HeroTempleType.Chaos:
                            e = this._chaosTempConfig.ResonanceAttrs[n].Items, t = this._currentResonanceLevel < this._maxResonanceLevel && this._currentResonanceLevel > 0 ? this._chaosTempConfig.ResonanceAttrs[n + 1].Items : this._chaosTempConfig.ResonanceAttrs[n].Items;
                            for (var o = 0; o < e.length; o += 2) {
                                var r = o / 2;
                                (u = this._attrComponentArray[r]) || ((d = cc.instantiate(this._attrPrefab)).setParent(this.AttrContainer), u = d.getComponent(_.default), this._attrComponentArray[r] = u), u.node.active = !0;
                                var i = e[o],
                                    a = e[o + 1];
                                (h = t[o + 1] - a) ? u.Init(i, a, {
                                    NodeWidth: 417,
                                    ValueNodeWidth: 178,
                                    ValueAlign: _.AttrComponent5Align.Mid,
                                    AddValue: h
                                }): u.Init(i, a, {
                                    NodeWidth: 417,
                                    ValueNodeWidth: 178,
                                    ValueAlign: _.AttrComponent5Align.Mid
                                })
                            }
                            break;
                        case I.HeroTempleType.Element:
                        case I.HeroTempleType.LR:
                            var s, l = p.ConfigDataComponent.Instance.GetConfigById(c.ElementTempleResonance_Config, this._heroBaseConfig.ETResonance[n]);
                            for (s = this._currentResonanceLevel < this._maxResonanceLevel && this._currentResonanceLevel > 0 ? p.ConfigDataComponent.Instance.GetConfigById(c.ElementTempleResonance_Config, this._heroBaseConfig.ETResonance[n + 1]) : l, o = 0; o < l.Attrs.length; o++) {
                                var u, d, h;
                                (u = this._attrComponentArray[o]) || ((d = cc.instantiate(this._attrPrefab)).setParent(this.AttrContainer), u = d.getComponent(_.default), this._attrComponentArray[o] = u), u.node.active = !0, i = l.Attrs[o].Items[0], a = l.Attrs[o].Items[1], (h = s.Attrs[o].Items[1] - a) ? u.Init(i, a, {
                                    NodeWidth: 417,
                                    ValueNodeWidth: 178,
                                    ValueAlign: _.AttrComponent5Align.Mid,
                                    AddValue: h
                                }) : u.Init(i, a, {
                                    NodeWidth: 417,
                                    ValueNodeWidth: 178,
                                    ValueAlign: _.AttrComponent5Align.Mid
                                })
                            }
                    }
                }, t.prototype.SetRedDot = function() {
                    g.RedDotManager.Instance.BindInstance(this.UpLevelButton.node, g.RedDotManager.Instance.InstanceRedDot.ChaosHeroResonanceUpLevelButtonNode, {
                        Value1: this._heroId,
                        extra: this._templeType
                    })
                }, t.prototype.OnUpLevelButtonClick = function() {
                    var e = [];
                    switch (this._templeType) {
                        case I.HeroTempleType.Chaos:
                            e = this._chaosTempConfig.ResonanceCondition[this._currentResonanceLevel].Items;
                            break;
                        case I.HeroTempleType.Element:
                        case I.HeroTempleType.LR:
                            var t = p.ConfigDataComponent.Instance.GetConfigById(c.ElementTempleResonance_Config, this._heroBaseConfig.ETResonance[this._currentResonanceLevel]);
                            e[0] = t.HeroStar, e[1] = t.PersonalityStar, e[2] = t.WeaponStar
                    }
                    var n = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._heroId),
                        o = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, this._heroId);
                    if (n.MaxStar < e[0]) y.UIUtlity.ShowFloatingHint("ChaosTemple_Resonance_UnUp_Tip_Star".ToUILocale());
                    else if (!o || o.Star < e[2]) y.UIUtlity.ShowFloatingHint("ChaosTemple_Resonance_UnUp_Tip_Treasure".ToUILocale());
                    else switch (this._oldBattlePower = p.DataCenter.Instance.GetIntData(f.UserDataKey.Power), this._templeType) {
                        case I.HeroTempleType.Chaos:
                            var r = new u.Req_Team_ChaosTempleUpgradeLevel;
                            r.HeroId = this._heroId, r.Type = 2, p.RpcComponent.Instance.Call(r, this.OnUpLevelSuccess.bind(this));
                            break;
                        case I.HeroTempleType.Element:
                        case I.HeroTempleType.LR:
                            var i = new u.Req_Team2_ElementTempleUpgradeLevel;
                            i.HeroId = this._heroId, i.NewLevel = this._currentResonanceLevel + 1, i.Type = f.ElementTempleUpgradeLevelType.Resonance, p.RpcComponent.Instance.Call(i, this.OnUpLevelSuccess.bind(this))
                    }
                }, t.prototype.OnUpLevelSuccess = function() {
                    var e = this._currentResonanceLevel > 0 ? this._currentResonanceLevel - 1 : 0,
                        t = [],
                        n = [];
                    switch (this._templeType) {
                        case I.HeroTempleType.Chaos:
                            for (var o = this._chaosTempConfig.ResonanceAttrs[e].Items, r = 0; r < o.length; r += 2)(a = new c.IntArray_Config).Items[0] = o[r], a.Items[1] = o[r + 1], t.push(a);
                            if (this._currentResonanceLevel > 0) {
                                var i = this._chaosTempConfig.ResonanceAttrs[e + 1].Items;
                                for (r = 0; r < i.length; r += 2) {
                                    var a;
                                    (a = new c.IntArray_Config).Items[0] = i[r], a.Items[1] = i[r + 1], n.push(a)
                                }
                            }
                            break;
                        case I.HeroTempleType.Element:
                        case I.HeroTempleType.LR:
                            t = p.ConfigDataComponent.Instance.GetConfigById(c.ElementTempleResonance_Config, this._heroBaseConfig.ETResonance[e]).Attrs, n = this._currentResonanceLevel > 0 ? p.ConfigDataComponent.Instance.GetConfigById(c.ElementTempleResonance_Config, this._heroBaseConfig.ETResonance[e + 1]).Attrs : []
                    }
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.BattlePowerChangePanel.Path, this._oldBattlePower, p.DataCenter.Instance.GetIntData(f.UserDataKey.Power)), l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ChaosHeroTempleUpSuccessPanel.Path, 2, this._currentResonanceLevel, t, n)
                }, t.prototype.OnPreviewButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ChaosHeroTempleTotalAttrPanel.Path, m.ChaosHeroTempleAttrType.ResonanceMaxPreview, this._templeType, this._heroId)
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Label)], t.prototype, "CultivateTitle", void 0), i([b(cc.Node)], t.prototype, "CultivateContainer", void 0), i([b(cc.Label)], t.prototype, "ResonanceAddtionTitle", void 0), i([b(cc.RichText)], t.prototype, "ResonanceAttrTip", void 0), i([b(cc.Label)], t.prototype, "ResonanceTag", void 0), i([b(cc.Label)], t.prototype, "CurrentLevel", void 0), i([b(cc.Label)], t.prototype, "NextLabel", void 0), i([b(cc.Node)], t.prototype, "ArrowIconNode", void 0), i([b(cc.Node)], t.prototype, "MaxIconNode", void 0), i([b(cc.Node)], t.prototype, "AttrContainer", void 0), i([b(cc.Label)], t.prototype, "Tip", void 0), i([b(cc.Button)], t.prototype, "UpLevelButton", void 0), i([b(cc.Label)], t.prototype, "UpLevelButtonLabel", void 0), i([b(cc.Label)], t.prototype, "MaxLevelTip", void 0), i([b(cc.Button)], t.prototype, "PreviewButton", void 0), i([b(cc.Label)], t.prototype, "PreviewButtonLabel", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent5": "AttrComponent5",
        "../Components/ChaosTempleCultivateItemComponent": "ChaosTempleCultivateItemComponent",
        "./ChaosHeroTempleTotalAttrPanel": "ChaosHeroTempleTotalAttrPanel",
        "./ElementTemplePanel": "ElementTemplePanel"
    }],
    ChaosHeroTempleTotalAttrPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "90efa1/JFZCgpbtHHqJ9yes", "ChaosHeroTempleTotalAttrPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChaosHeroTempleAttrType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("./ElementTemplePanel"),
            g = e("../Components/AttrComponent5"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.TotalAttr = 0] = "TotalAttr", e[e.ResonanceMaxPreview = 1] = "ResonanceMaxPreview"
        })(l = n.ChaosHeroTempleAttrType || (n.ChaosHeroTempleAttrType = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.AttrContainer = null, t.UnAttrTip = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ItemsComponent/AttrComponent5", cc.Prefab)];
                            case 1:
                                return t._attrPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._attrType = t[0], this._templeType = t[1], this._attrType == l.ResonanceMaxPreview && (this._heroId = t[2])
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.Title.string = this._attrType == l.TotalAttr ? "CollectionPavilion_Btn_totalAdd".ToUILocale() : "CollectionPavilion_HeroFetter_Skill_Max".ToUILocale(), this.SetAttrData(), this.UnAttrTip.node.active = !this._totalAttr, this._totalAttr ? (this.AttrContainer.active = !0, this.SetAttrContaienr()) : (this.AttrContainer.active = !1, this.UnAttrTip.string = "CollectionPavilion_Tip_UnAttr".ToUILocale())
            }, t.prototype.SetAttrData = function() {
                switch (this._templeType) {
                    case y.HeroTempleType.Chaos:
                        if (this._attrType == l.TotalAttr)
                            for (var e = d.ConfigDataComponent.Instance.GetArrayConfig(u.ChaosTemple_Config), t = d.DataCenter.Instance.GetArrayData(h.UserDataKey.ChaosTempleLevel), n = 0; n < e.length; n++) {
                                var o = e[n].Id;
                                if (d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, o)) {
                                    var r = t.indexOf(o),
                                        i = -1 == r ? 0 : t[r + 1];
                                    if (-1 == r || t[r + 2], i > 0) {
                                        this._totalAttr || (this._totalAttr = {});
                                        for (var a = e[n].TeamAttrs[i - 1].Items, s = 0; s < a.length; s += 2) {
                                            var c = a[s],
                                                g = a[s + 1];
                                            this._totalAttr[c] ? this._totalAttr[c] += g : this._totalAttr[c] = g
                                        }
                                    }
                                }
                            } else {
                                var m = d.ConfigDataComponent.Instance.GetConfigById(u.ChaosTemple_Config, this._heroId),
                                    I = m.ResonanceAttrs[m.ResonanceAttrs.length - 1].Items;
                                for (this._totalAttr || (this._totalAttr = {}), n = 0; n < I.length; n += 2) c = I[n], g = I[n + 1], this._totalAttr[c] ? this._totalAttr[c] += g : this._totalAttr[c] = g
                            }
                        break;
                    case y.HeroTempleType.Element:
                    case y.HeroTempleType.LR:
                        if (this._attrType == l.TotalAttr) {
                            var _ = [],
                                C = d.ConfigDataComponent.Instance.GetArrayConfig(u.HeroBase_Config),
                                v = this._templeType == y.HeroTempleType.Element ? h.CoreHeroTag.UR : h.CoreHeroTag.LR;
                            if (C.forEach(function(e) {
                                    if (e.CoreHero == v && e.ElementType != h.HeroElementType.Chaos && f.default.Instance.IsModuleShowAvailable(h.ModuleStartTime.Hero, e.Id)) {
                                        var t = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, e.Id);
                                        t && t.ElementTempleLevel > 0 && _.push(e.ETLevel[t.ElementTempleLevel - 1])
                                    }
                                }), _.length > 0)
                                for (this._totalAttr || (this._totalAttr = {}), n = 0; n < _.length; n++) {
                                    var b = d.ConfigDataComponent.Instance.GetConfigById(u.ElementTempleAttrs_Config, _[n]);
                                    for (s = 0; s < b.Attrs.length; s++) c = b.Attrs[s].Items[0], g = b.Attrs[s].Items[1], this._totalAttr[c] ? this._totalAttr[c] += g : this._totalAttr[c] = g
                                }
                        } else {
                            var S = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._heroId),
                                w = S.ETResonance[S.ETResonance.length - 1],
                                P = d.ConfigDataComponent.Instance.GetConfigById(u.ElementTempleResonance_Config, w);
                            for (this._totalAttr || (this._totalAttr = {}), n = 0; n < P.Attrs.length; n++) c = P.Attrs[n].Items[0], g = P.Attrs[n].Items[1], this._totalAttr[c] ? this._totalAttr[c] += g : this._totalAttr[c] = g
                        }
                }
            }, t.prototype.SetAttrContaienr = function() {
                for (var e in this._totalAttr) {
                    var t = cc.instantiate(this._attrPrefab);
                    t.setParent(this.AttrContainer);
                    var n = Number(e),
                        o = this._totalAttr[e],
                        r = t.getComponent(g.default);
                    r.SetCurValueColor(cc.color(255, 105, 0)), this._attrType == l.TotalAttr ? r.Init(n, o, {
                        NodeWidth: 847,
                        ValueNodeWidth: 420,
                        ValueAlign: g.AttrComponent5Align.Mid,
                        AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                    }) : r.Init(n, o, {
                        NodeWidth: 847,
                        ValueNodeWidth: 420,
                        ValueAlign: g.AttrComponent5Align.Mid
                    })
                }
                this.AttrContainer.getComponent(cc.Layout).updateLayout()
            }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Node)], t.prototype, "AttrContainer", void 0), i([_(cc.Label)], t.prototype, "UnAttrTip", void 0), i([I], t)
        }(c.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/AttrComponent5": "AttrComponent5",
        "./ElementTemplePanel": "ElementTemplePanel"
    }],
    ChaosHeroTempleUpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "242bckHqupEuK/HgKrCPLt/", "ChaosHeroTempleUpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChaosTempleToggle = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Components/LevelComponent"),
            f = e("../Components/StarPieceStarGroupsItem"),
            y = e("../Components/CustomToggle"),
            g = e("./StarPiecePanel"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../../Consts/Consts"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Components/AttrComponent2"),
            S = e("./ChaosHeroTempleTotalAttrPanel"),
            w = e("../../Components/Components"),
            P = e("./ElementTemplePanel"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.Hero = 0] = "Hero", e[e.Personality = 1] = "Personality", e[e.Treasure = 2] = "Treasure", e[e.TotalCount = 3] = "TotalCount"
        })(l = n.ChaosTempleToggle || (n.ChaosTempleToggle = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Bg = null, t.AvatarNode = null, t.TitleNode = null, t.Title = null, t.Name = null, t.LevelComponent = null, t.TreasureInfoNode = null, t.TreasureInfoTag = null, t.TreasureStarsComponent = null, t.RuleButton = null, t.HideUIButton = null, t.HideUIBtnSprite = null, t.HideUIButtonLabel = null, t.BlessButton = null, t.BlessButtonLabel = null, t.BlessButtonIcon = null, t.CustomToggles = [], t.ModuleContainer = null, t.ChaosTag = null, t.CurrentLevel = null, t.NextLabel = null, t.ArrowIconNode = null, t.MaxIconNode = null, t.AttrContainer = null, t.AttrItem = null, t.UpLevelTipContainer = null, t.UplevelTip = null, t.DetailButton = null, t.UpLevelButton = null, t.UpLevelButtonLabel = null, t.MaxLevelNode = null, t.MaxLevelTip = null, t.ReturnButton = null, t.ResonanceButton = null, t.ResonanceButtonLabel = null, t.ResonanceButtonIcon = null, t.TotalAttrButton = null, t.TotalAttrButtonLabel = null, t._currentToggleIndex = 0, t._leftUpLevelTimes = 0, t._attrComponentArray = [], t._isHide = !1, t._loadAssets = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CollectionPavilionPanel/Components/ChaosHeroTempleToggle", cc.Prefab), n = this.LoadDynamicAsset("ElementTemplePanel/PNG/ElementTempleAtlas", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                    o._togglePrefab = e[0], o._elementTempleAtlas = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.HideUIButtonLabel.string = "ChaosTemple_HIde_UI".ToUILocale(), this.TotalAttrButtonLabel.string = "handbook_attr_total".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.HideUIButton.node.on("click", this.OnHideUIButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this), this.BlessButton.node.on("click", this.OnBlessButtonClick, this), this.ResonanceButton.node.on("click", this.OnResonanceButtonClick, this), this.TotalAttrButton.node.on("click", this.OnTotalAttrButtonClick, this), this.ReturnButton.node.on("click", this.OnreturnButtonClick, this), this.SetToggle()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t);
                var n = t[0];
                this._templeType = t[1], this._heroConfig = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, n), this._treasureConfig = d.ConfigDataComponent.Instance.GetConfigById(u.ExclusiveWeapon_Config, n), this._templeType == P.HeroTempleType.Chaos && (this._chaosTempConfig = d.ConfigDataComponent.Instance.GetConfigById(u.ChaosTemple_Config, n)), this._chaosHeroTempleMaxLevel = 11 + this._heroConfig.MaxStarLevel - 4
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._heroInfoModel = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, this._heroConfig.Id), this._treasureModel = d.DataCenter.Instance.GetDataById(p.ExclusiveWeapon_Model, this._treasureConfig.Id), t || (this.SetCurrentTempleUI(), this.SetCurrentToggleModule()), this.SetCurrentLevel(), this.SetCurrentLevelContainer(), this.SetAttrContainer(), this.SetRedDot(), this.SetRuleButtonPosition()
            }, t.prototype.SetToggle = function() {
                for (var e = 0; e < this.CustomToggles.length; e++) {
                    var t = this.CustomToggles[e];
                    t.Init(("ChaosTemple_Toggle_" + e).ToUILocale()), t.node.name = e.toString(), t.node.on("toggle", this.OnSwitchToggle, this)
                }
            }, t.prototype.OnSwitchToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentToggleIndex != t && (this._currentToggleIndex = t, this.SetCurrentToggleModule(), this.SetRuleButtonPosition())
            }, t.prototype.SetCurrentToggleModule = function() {
                var e, t;
                switch (this.TitleNode.active = !1, this.LevelComponent.node.active = !1, this.TreasureInfoNode.active = !1, this.HideUIButton.node.active = !1, this._currentToggleIndex) {
                    case l.Hero:
                        this.TitleNode.active = !0, this.LevelComponent.node.active = !0, this.HideUIButton.node.active = !0, this.Title.string = this._heroConfig.Id.ToHeroTitle(), this.Name.string = this._heroConfig.Id.ToHeroName();
                        var n = h.LevelComponent.GetLevelShowType(this._heroConfig.CoreHero, this._heroConfig.ElementType);
                        this.LevelComponent.Init(this._heroInfoModel.MaxStar, 0, 0, n), t = this._heroConfig.UIAvatar + "/Avatar";
                        break;
                    case l.Treasure:
                        this.TreasureInfoNode.active = !0;
                        var o = this._treasureConfig.ItemBaseId.ToItemName();
                        this.TreasureInfoTag.string = o;
                        var r = this._treasureModel && this._treasureModel.IsAwakening;
                        this.TreasureStarsComponent.SetUI(this._treasureModel, g.default.Exclusive_Max_Star, r), e = "StarTemplePanel/Png/StarPieceBg2", t = "StarPieceAvatar/" + this._treasureConfig.Id + "/Avatar"
                }
                this.SetBgAndAvatar(e, t)
            }, t.prototype.SetBgAndAvatar = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return this.AvatarNode.destroyAllChildren(), this._treasureIcon && c.AssetsManager.Instance.UnloadAsset(this._treasureIcon), this._avatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), e ? [4, c.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)] : [3, 2];
                            case 1:
                                return n = a.sent(), this.isValid ? (this._loadAssets.push(n), this.Bg.spriteFrame = n, [3, 3]) : (c.AssetsManager.Instance.UnloadAsset(n), [2]);
                            case 2:
                                this.Bg.spriteFrame = null, a.label = 3;
                            case 3:
                                return this._currentToggleIndex != l.Treasure ? [3, 5] : (o = this, [4, c.AssetsManager.Instance.LoadAsset(t, cc.Prefab)]);
                            case 4:
                                return o._treasureIcon = a.sent(), this.isValid ? ((i = cc.instantiate(this._treasureIcon)).setParent(this.AvatarNode), i.y = -150, [3, 7]) : (c.AssetsManager.Instance.UnloadAsset(this._treasureIcon), [2]);
                            case 5:
                                return r = this, [4, c.AssetsManager.Instance.LoadAsset(t, cc.Prefab)];
                            case 6:
                                if (r._avatarPrefab = a.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), [2];
                                (i = cc.instantiate(this._avatarPrefab)).setParent(this.AvatarNode), this._currentToggleIndex == l.Hero && C.default.Instance.SetHeroAvatarSkin(i, this._heroConfig.Id, this._heroConfig.StarLevel), a.label = 7;
                            case 7:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetCurrentTempleUI = function() {
                switch (this.BlessButton.node.active = !1, this._templeType) {
                    case P.HeroTempleType.Chaos:
                        this.ChaosTag.string = "ChaosTemple_ChaosPower".ToUILocale(), this.ResonanceButtonLabel.string = "ChaosTemple_Resonance".ToUILocale();
                        break;
                    case P.HeroTempleType.Element:
                    case P.HeroTempleType.LR:
                        this.BlessButton.node.active = !0, this.BlessButtonLabel.string = "ChaosTemple_Bless".ToUILocale(), this.ResonanceButtonLabel.string = this._templeType == P.HeroTempleType.Element ? "ChaosTemple_Resonance_Element".ToUILocale() : "ChaosTemple_Resonance_LR".ToUILocale(), this.ChaosTag.string = this._templeType == P.HeroTempleType.Element ? "ChaosTemple_UR_Power".ToUILocale() : "ChaosTemple_LR_Power".ToUILocale(), this.BlessButtonIcon.spriteFrame = this._elementTempleAtlas.getSpriteFrame("TempleBless"), this.ResonanceButtonIcon.spriteFrame = this._templeType == P.HeroTempleType.Element ? this._elementTempleAtlas.getSpriteFrame("URResonance") : this._elementTempleAtlas.getSpriteFrame("LRResonance")
                }
            }, t.prototype.SetCurrentLevel = function() {
                switch (this._templeType) {
                    case P.HeroTempleType.Chaos:
                        this._chaosTempleData = d.DataCenter.Instance.GetArrayData(I.UserDataKey.ChaosTempleLevel);
                        var e = this._chaosTempleData.indexOf(this._heroConfig.Id);
                        this._currentTempleLevel = -1 == e ? 0 : this._chaosTempleData[e + 1];
                        break;
                    case P.HeroTempleType.Element:
                    case P.HeroTempleType.LR:
                        this._currentTempleLevel = this._heroInfoModel.ElementTempleLevel
                }
            }, t.prototype.SetCurrentLevelContainer = function() {
                this.ArrowIconNode.active = !1, this.NextLabel.node.active = !1, this.MaxIconNode.active = !1, this.UpLevelButton.node.active = !0, this.UpLevelTipContainer.active = !0, this.MaxLevelNode.active = !1, 0 == this._currentTempleLevel ? (this.UpLevelButtonLabel.string = "ChaosTemple_Active".ToUILocale(), this.CurrentLevel.string = "allianceBase_level".ToUILocale().Fmt(1)) : this._currentTempleLevel > 0 && this._currentTempleLevel < this._chaosHeroTempleMaxLevel ? (this.ArrowIconNode.active = !0, this.NextLabel.node.active = !0, this.UpLevelButtonLabel.string = "common_upgrade_level".ToUILocale(), this.CurrentLevel.string = "allianceBase_level".ToUILocale().Fmt(this._currentTempleLevel), this.NextLabel.string = "allianceBase_level".ToUILocale().Fmt(this._currentTempleLevel + 1)) : (this.MaxIconNode.active = !0, this.MaxLevelNode.active = !0, this.UpLevelButton.node.active = !1, this.UpLevelTipContainer.active = !1, this.CurrentLevel.string = "allianceBase_level".ToUILocale().Fmt(this._chaosHeroTempleMaxLevel), this.MaxLevelTip.string = "common_max_level".ToUILocale()), this._leftUpLevelTimes = this._heroInfoModel.MaxStar - 4 + this._heroInfoModel.PersonalityStar - this._currentTempleLevel, this._treasureModel && (this._leftUpLevelTimes += this._treasureModel.Star), this.UplevelTip.string = this._leftUpLevelTimes > 0 ? "ChaosTemple_UpLevel_Times".ToUILocale().Fmt(this._leftUpLevelTimes) : "ChaosTemple_UpLevel_Times_None".ToUILocale()
            }, t.prototype.SetAttrContainer = function() {
                var e = this._currentTempleLevel > 0 ? this._currentTempleLevel - 1 : 0;
                switch (this.AttrItem.node.active = !1, this._attrComponentArray[0] = this.AttrItem, this._templeType) {
                    case P.HeroTempleType.Chaos:
                        for (var t = this._chaosTempConfig.TeamAttrs[e].Items, n = this._currentTempleLevel < this._chaosHeroTempleMaxLevel && this._currentTempleLevel > 0 ? this._chaosTempConfig.TeamAttrs[e + 1].Items : this._chaosTempConfig.TeamAttrs[e].Items, o = 0; o < t.length; o += 2) {
                            var r = o / 2;
                            (c = this._attrComponentArray[r]) || ((p = cc.instantiate(this.AttrItem.node)).setParent(this.AttrContainer), c = p.getComponent(b.default), this._attrComponentArray[r] = c), c.node.active = !0;
                            var i = t[o],
                                a = t[o + 1];
                            (h = n[o + 1] - a) ? c.Init(i, a, h): c.Init(i, a), c.SetPrefix("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                        }
                        break;
                    case P.HeroTempleType.Element:
                    case P.HeroTempleType.LR:
                        var s, l = d.ConfigDataComponent.Instance.GetConfigById(u.ElementTempleAttrs_Config, this._heroConfig.ETLevel[e]);
                        for (s = this._currentTempleLevel < this._chaosHeroTempleMaxLevel && this._currentTempleLevel > 0 ? d.ConfigDataComponent.Instance.GetConfigById(u.ElementTempleAttrs_Config, this._heroConfig.ETLevel[e + 1]) : l, o = 0; o < l.Attrs.length; o++) {
                            var c, p, h;
                            (c = this._attrComponentArray[o]) || ((p = cc.instantiate(this.AttrItem.node)).setParent(this.AttrContainer), c = p.getComponent(b.default), this._attrComponentArray[o] = c), c.node.active = !0, i = l.Attrs[o].Items[0], a = l.Attrs[o].Items[1], (h = s.Attrs[o].Items[1] - a) ? c.Init(i, a, h) : c.Init(i, a), c.SetPrefix("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                        }
                }
            }, t.prototype.SetRedDot = function() {
                v.RedDotManager.Instance.BindInstance(this.UpLevelButton.node, v.RedDotManager.Instance.InstanceRedDot.ChaosHeroTempleUpLevelButtonNode, {
                    Value1: this._heroConfig.Id,
                    extra: this._templeType
                }), v.RedDotManager.Instance.BindInstance(this.ResonanceButton.node, v.RedDotManager.Instance.InstanceRedDot.ChaosHeroResonanceUpLevelButtonNode, {
                    Value1: this._heroConfig.Id,
                    extra: this._templeType
                })
            }, t.prototype.OnRuleButtonClick = function() {
                var e, t, n;
                switch (this._templeType) {
                    case P.HeroTempleType.Element:
                        e = "ElementTemple_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["ElementTemple_Rule_Content".ToUILocale()];
                        break;
                    case P.HeroTempleType.Chaos:
                        e = "CollectionPavilion_ChaosTemple_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["CollectionPavilion_ChaosTemple_Rule_Content".ToUILocale()];
                        break;
                    case P.HeroTempleType.LR:
                        e = "ElementTemple_LR_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["ElementTemple_LR_Rule_Content".ToUILocale()]
                }
                var o = {
                    name: e,
                    titles: t,
                    contents: n
                };
                _.UIUtlity.ShowRulePanel(o)
            }, t.prototype.OnHideUIButtonClick = function() {
                this._notMaskHeroIdConfig || (this._notMaskHeroIdConfig = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, I.LevelParamType.MainSceneHeroNoMaskIds), this._notMaskPersonalityIdConfig = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, I.LevelParamType.MainScenePersonalityNoMaskIds)), this._currentToggleIndex == l.Hero && this._notMaskHeroIdConfig.Data.indexOf(this._heroConfig.Id) > -1 || (this._isHide ? (this._isHide = !1, this.ModuleContainer.active = !0, this.BlessButton.node.active = !0, this.HideUIButtonLabel.string = "newPersonality_summon_hide".ToUILocale(), this.HideUIBtnSprite.spriteFrame = _.UIUtlity.COMMON_ATLAS5.getSpriteFrame("function_hideUI")) : (this._isHide = !0, this.ModuleContainer.active = !1, this.BlessButton.node.active = !1, this.HideUIButtonLabel.string = "newPersonality_summon_show".ToUILocale(), this.HideUIBtnSprite.spriteFrame = _.UIUtlity.COMMON_ATLAS5.getSpriteFrame("function_showUI")))
            }, t.prototype.OnDetailButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.ChaosHeroTempleDetailPanel.Path, this._heroConfig.Id, this._templeType)
            }, t.prototype.OnUpLevelButtonClick = function() {
                if (this._leftUpLevelTimes > 0) switch (this._oldBattlePower = w.DataCenter.Instance.GetIntData(I.UserDataKey.Power), this._templeType) {
                    case P.HeroTempleType.Chaos:
                        var e = new p.Req_Team_ChaosTempleUpgradeLevel;
                        e.HeroId = this._heroConfig.Id, e.Type = 1, d.RpcComponent.Instance.Call(e, this.OnUpLevelSuccess.bind(this));
                        break;
                    case P.HeroTempleType.Element:
                    case P.HeroTempleType.LR:
                        var t = new p.Req_Team2_ElementTempleUpgradeLevel;
                        t.HeroId = this._heroConfig.Id, t.NewLevel = this._currentTempleLevel + 1, t.Type = I.ElementTempleUpgradeLevelType.Hero, d.RpcComponent.Instance.Call(t, this.OnUpLevelSuccess.bind(this))
                } else _.UIUtlity.ShowFloatingHint("ChaosTemple_Unup_Tip".ToUILocale())
            }, t.prototype.OnUpLevelSuccess = function() {
                var e = this._currentTempleLevel > 0 ? this._currentTempleLevel - 1 : 0,
                    t = [],
                    n = [];
                switch (this._templeType) {
                    case P.HeroTempleType.Chaos:
                        for (var o = this._chaosTempConfig.TeamAttrs[e].Items, r = 0; r < o.length; r += 2)(a = new u.IntArray_Config).Items[0] = o[r], a.Items[1] = o[r + 1], t.push(a);
                        if (this._currentTempleLevel > 0) {
                            var i = this._currentTempleLevel < this._chaosHeroTempleMaxLevel && this._currentTempleLevel > 0 ? this._chaosTempConfig.TeamAttrs[e + 1].Items : this._chaosTempConfig.TeamAttrs[e].Items;
                            for (r = 0; r < i.length; r += 2) {
                                var a;
                                (a = new u.IntArray_Config).Items[0] = i[r], a.Items[1] = i[r + 1], n.push(a)
                            }
                        }
                        break;
                    case P.HeroTempleType.Element:
                    case P.HeroTempleType.LR:
                        t = d.ConfigDataComponent.Instance.GetConfigById(u.ElementTempleAttrs_Config, this._heroConfig.ETLevel[e]).Attrs, this._currentTempleLevel < this._chaosHeroTempleMaxLevel && this._currentTempleLevel > 0 && (n = d.ConfigDataComponent.Instance.GetConfigById(u.ElementTempleAttrs_Config, this._heroConfig.ETLevel[e + 1]).Attrs)
                }
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.BattlePowerChangePanel.Path, this._oldBattlePower, w.DataCenter.Instance.GetIntData(I.UserDataKey.Power)), c.UIManager.Instance.ShowUIPanel(m.PanelConfig.ChaosHeroTempleUpSuccessPanel.Path, 1, this._currentTempleLevel, t, n)
            }, t.prototype.OnBlessButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.ElementTempleBlessPanel.Path, this._currentToggleIndex, this._heroConfig.Id)
            }, t.prototype.OnResonanceButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.ChaosHeroTempleResonancePanel.Path, this._heroConfig.Id, this._templeType)
            }, t.prototype.OnTotalAttrButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.ChaosHeroTempleTotalAttrPanel.Path, S.ChaosHeroTempleAttrType.TotalAttr, this._templeType)
            }, t.prototype.OnreturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.SetRuleButtonPosition = function() {
                switch (this._currentToggleIndex) {
                    case l.Hero:
                        this.RuleButton.node.setPosition(-377, -69);
                        break;
                    case l.Treasure:
                        this.RuleButton.node.setPosition(218, -96)
                }
            }, t.prototype.onDestroy = function() {
                [this._treasureIcon, this._avatarPrefab].forEach(function(e) {
                    e && c.AssetsManager.Instance.UnloadAsset(e)
                }), this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([R(cc.Sprite)], t.prototype, "Bg", void 0), i([R(cc.Node)], t.prototype, "AvatarNode", void 0), i([R(cc.Node)], t.prototype, "TitleNode", void 0), i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.Label)], t.prototype, "Name", void 0), i([R(h.LevelComponent)], t.prototype, "LevelComponent", void 0), i([R(cc.Node)], t.prototype, "TreasureInfoNode", void 0), i([R(cc.Label)], t.prototype, "TreasureInfoTag", void 0), i([R(f.default)], t.prototype, "TreasureStarsComponent", void 0), i([R(cc.Button)], t.prototype, "RuleButton", void 0), i([R(cc.Button)], t.prototype, "HideUIButton", void 0), i([R(cc.Sprite)], t.prototype, "HideUIBtnSprite", void 0), i([R(cc.Label)], t.prototype, "HideUIButtonLabel", void 0), i([R(cc.Button)], t.prototype, "BlessButton", void 0), i([R(cc.Label)], t.prototype, "BlessButtonLabel", void 0), i([R(cc.Sprite)], t.prototype, "BlessButtonIcon", void 0), i([R(y.default)], t.prototype, "CustomToggles", void 0), i([R(cc.Node)], t.prototype, "ModuleContainer", void 0), i([R(cc.Label)], t.prototype, "ChaosTag", void 0), i([R(cc.Label)], t.prototype, "CurrentLevel", void 0), i([R(cc.Label)], t.prototype, "NextLabel", void 0), i([R(cc.Node)], t.prototype, "ArrowIconNode", void 0), i([R(cc.Node)], t.prototype, "MaxIconNode", void 0), i([R(cc.Node)], t.prototype, "AttrContainer", void 0), i([R(b.default)], t.prototype, "AttrItem", void 0), i([R(cc.Node)], t.prototype, "UpLevelTipContainer", void 0), i([R(cc.RichText)], t.prototype, "UplevelTip", void 0), i([R(cc.Button)], t.prototype, "DetailButton", void 0), i([R(cc.Button)], t.prototype, "UpLevelButton", void 0), i([R(cc.Label)], t.prototype, "UpLevelButtonLabel", void 0), i([R(cc.Node)], t.prototype, "MaxLevelNode", void 0), i([R(cc.Label)], t.prototype, "MaxLevelTip", void 0), i([R(cc.Button)], t.prototype, "ReturnButton", void 0), i([R(cc.Button)], t.prototype, "ResonanceButton", void 0), i([R(cc.Label)], t.prototype, "ResonanceButtonLabel", void 0), i([R(cc.Sprite)], t.prototype, "ResonanceButtonIcon", void 0), i([R(cc.Button)], t.prototype, "TotalAttrButton", void 0), i([R(cc.Label)], t.prototype, "TotalAttrButtonLabel", void 0), i([T], t)
        }(c.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/StarPieceStarGroupsItem": "StarPieceStarGroupsItem",
        "./ChaosHeroTempleTotalAttrPanel": "ChaosHeroTempleTotalAttrPanel",
        "./ElementTemplePanel": "ElementTemplePanel",
        "./StarPiecePanel": "StarPiecePanel"
    }],
    ChaosHeroTempleUpSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bab1fJsIOFECYWN0N2d6RP4", "ChaosHeroTempleUpSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/AttrComponent5"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.UpLevelTitleIconNode = null, t.UnlockTitleIconNode = null, t.ChaosTitle = null, t.CurrentLevelLabel = null, t.ArrowIconNode = null, t.NextLevelLabel = null, t.AttrTitle = null, t.AttrContainer = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ItemsComponent/AttrComponent5", cc.Prefab)];
                                case 1:
                                    return t._attrPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrTitle.string = "heroSkin_attr".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._type = t[0], this._currentLevel = t[1], this._currentAttrConfig = t[2], this._nextAttrConfig = t[3]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.ChaosTitle.string = 2 == this._type ? "ChaosTemple_Resonance".ToUILocale() : "ChaosTemple_ChaosPower".ToUILocale(), 0 == this._currentLevel ? (this.CurrentLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(1), this.ArrowIconNode.active = !1, this.NextLevelLabel.node.active = !1, this.UnlockTitleIconNode.active = !0) : (this.CurrentLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(this._currentLevel), this.NextLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(this._currentLevel + 1), this.UpLevelTitleIconNode.active = !0), this.SetAttrContainer()
                }, t.prototype.SetAttrContainer = function() {
                    for (var e = 0; e < this._currentAttrConfig.length; e++) {
                        var t = this._currentAttrConfig[e].Items[0];
                        if (this._nextAttrConfig.length > 0 && this._nextAttrConfig[e].Items[1] > this._currentAttrConfig[e].Items[1])(n = cc.instantiate(this._attrPrefab)).setParent(this.AttrContainer), n.getComponent(c.default).Init(t, this._currentAttrConfig[e].Items[1], {
                            NodeWidth: 838,
                            ValueNodeWidth: 489,
                            ValueAlign: c.AttrComponent5Align.Mid,
                            AddValue: this._nextAttrConfig[e].Items[1]
                        });
                        else if (0 == this._nextAttrConfig.length) {
                            var n;
                            (n = cc.instantiate(this._attrPrefab)).setParent(this.AttrContainer), n.getComponent(c.default).Init(t, this._currentAttrConfig[e].Items[1], {
                                NodeWidth: 838,
                                ValueNodeWidth: 489,
                                ValueAlign: c.AttrComponent5Align.Mid
                            })
                        }
                    }
                }, i([d(cc.Node)], t.prototype, "UpLevelTitleIconNode", void 0), i([d(cc.Node)], t.prototype, "UnlockTitleIconNode", void 0), i([d(cc.Label)], t.prototype, "ChaosTitle", void 0), i([d(cc.Label)], t.prototype, "CurrentLevelLabel", void 0), i([d(cc.Node)], t.prototype, "ArrowIconNode", void 0), i([d(cc.Label)], t.prototype, "NextLevelLabel", void 0), i([d(cc.Label)], t.prototype, "AttrTitle", void 0), i([d(cc.Node)], t.prototype, "AttrContainer", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/AttrComponent5": "AttrComponent5"
    }],
    ChaosSummonPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f8fd9XKwtBIy6CRuH053JWY", "ChaosSummonPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ActivityChaosSummonType = void 0;
        var l, c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Etc"),
            d = e("../../../Consts/GameEventIds"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../../ShareConsts/BattleConsts"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../../Util/TimeUtil"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../Components/Components"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../Components/CurrencyBarItem"),
            w = e("../Components/SmallRankListComponent"),
            P = e("./CommonRatePanel"),
            A = e("./PersonalSummonCardComponent"),
            T = e("./QueenSummonPanel"),
            R = e("./SpecialCast"),
            L = e("./WinnerInfoShow"),
            k = e("../../../../Proto/Static/RpcProto"),
            O = e("./TrialHeroPanel"),
            M = e("../../../../Proto/Static/ConfigProto"),
            D = e("../../../Consts/Consts"),
            B = e("./DisplayRewardsPanel"),
            N = e("./BuyAndSellItemPanel"),
            E = e("./ChaosElementEffectPanel"),
            U = e("../Components/CustomProgressBar"),
            G = cc._decorator,
            x = G.ccclass,
            H = G.property;
        (function(e) {
            e[e.SummonOnce = 1] = "SummonOnce", e[e.SummonTen = 2] = "SummonTen", e[e.PersonalSummonOnce = 1001] = "PersonalSummonOnce", e[e.PersonalSummonTen = 1002] = "PersonalSummonTen"
        })(l = n.ActivityChaosSummonType || (n.ActivityChaosSummonType = {}));
        var F = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new h.UIPanelType(h.UINodeType.Fixed, !0), t.TopView = null, t.RuleButton = null, t.PanelNameLabel = null, t.TimeLeftNode = null, t.TimeLeftContentLabel = null, t.TopInfoNode = null, t.ResourceGotCurencyBar = null, t.SummonView = null, t.HeroNameImage = null, t.AvatarContainer = null, t.RankList = null, t.RankScoreRequireLabel = null, t.RateButton = null, t.RateButtonLabel = null, t.HeroDetailButton = null, t.HeroDetailButtonLabel = null, t.ElementButton = null, t.ElementButtonLabel = null, t.TrialChallengeButton = null, t.TrialChallengeButtonLabel = null, t.SummonAvailableView = null, t.WinnerInfoView = null, t.UnmortalCast = null, t.DrawOnceCurrencyBar = null, t.DrawOnceButton = null, t.DrawOnceButtonLabel = null, t.DrawTenTimesCurrencyBar = null, t.DrawTenTimesButton = null, t.DrawTenTimesButtonLabel = null, t.SummonUnAvailableView = null, t.UnAvailableTimeRichText = null, t.RuleTipSecondLineRichText = null, t.BottomView = null, t.ReturnButton = null, t.ItemGetWayButton = null, t.ItemGetWayButtonLabel = null, t.GiftPackButton = null, t.GiftPackButtonLabel = null, t.StarPieceGiftPackButton = null, t.StarPieceGiftPackButtonLabel = null, t.SummonSuccessView = null, t.SuccessViewAniContainer = null, t.SuccessViewTipContainer = null, t.SuccessViewTipRichText = null, t.SuccessBackButton = null, t.SuccessBackButtonLabel = null, t.SuccessViewCurrencyBar = null, t.SuccessViewDrawAgainButton = null, t.SuccessViewDrawAgainButtonLabel = null, t.CurrentHeroTimeLeftView = null, t.CurrentHeroTimeLeftRichText = null, t.ShortCutSprite = null, t.BgMaskNode = null, t.OutOfTimeWordSprite = null, t.DescriptionImageNode = null, t.RankRewardButton = null, t.RankRewardButtonLabel = null, t.ProgressBarNode = null, t.ProgressBar = null, t.ProgressBarLabel = null, t.ChestAni = null, t.ChestButton = null, t.AutoSummonNode = null, t.ButtonLayout = null, t.AutoBtn = null, t.AutoBtnLabel = null, t.CurrencyBarAuto = null, t.UpStarGiftBtn = null, t.UpStarGiftBtnLabel = null, t.PanelSpineLoop = null, t.PanelSpineOnce = null, t._chosenIndex = 0, t._heroAvatarIds = [], t._isFirstIn = !0, t._canShowRankList = !0, t._currentHeroEndTime = -1, t._currentHeroTimeLeftYOffset = [-85, -2], t._newHeroIds = [], t._progressTaskConfigs = [], t._activityId = 0, t._activityConfigData = null, t.UpStarJumpId = 10039, t.GiftPackJumpId = 10055, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                h.Game.EventDispatcher.On(d.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChanges, this), h.Game.EventDispatcher.On(d.GameEventIds.AddDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChanges, this), h.Game.EventDispatcher.On(d.GameEventIds.RemoveDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChanges, this), h.Game.EventDispatcher.On(I.EventKeys.EVENT_DISPLAY_SUMMON_CARD_END, this.OnDisplayEffectEnd, this)
            }, t.prototype.onDisable = function() {
                h.Game.EventDispatcher.Off(d.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChanges), h.Game.EventDispatcher.Off(d.GameEventIds.AddDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChanges), h.Game.EventDispatcher.Off(d.GameEventIds.RemoveDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChanges), h.Game.EventDispatcher.Off(I.EventKeys.EVENT_DISPLAY_SUMMON_CARD_END, this.OnDisplayEffectEnd, this), this.unscheduleAllCallbacks()
            }, t.prototype.OnUserItemChanges = function(e) {
                for (var t in e) switch (Number.parseInt(t)) {
                    case this._currentCurrencyId:
                        this.SetSummonViewCurrencyBars()
                }
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this._summonOpenHours = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("ChaosSummonOpenTime"), this._summonTicketPrice = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("ChaosSummonTicketPrice"), this._summonScoreRate = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("ChaosSummonScoreRate"), this._rankRequireScore = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("ChaosSummonRankMinScore"), this.InitStaticText(), this.InitButtonEvents()
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("Buttons/PinkToggle"), this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/Message"), this.LoadDynamicAsset("SummonActivityListPanel/PNG/SummonActivityList"), this.LoadDynamicAsset("PersonalityCallPanel/PNG/personalityCall"), this.LoadDynamicAsset("QueenSummonPanel/Spine/SummonPanelEffect/UI_Effect_Recruit_Glow", sp.SkeletonData), this.LoadDynamicAsset("QueenSummonPanel/Spine/SummonPanelEffect/UI_Effect_Recruit_Glow2", sp.SkeletonData)]).then(function(e) {
                                    t._togglePrefab = e[0], t._messagePrefab = e[1], t._atlas = e[2], t._personalityAtlas = e[3], t.PanelSpineOnce.skeletonData = e[4], t.PanelSpineLoop.skeletonData = e[5]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitStaticText = function() {
                this.PanelNameLabel.string = "ChaosSummon_PanelName".ToUILocale(), this.RankScoreRequireLabel.string = "ChaosSummon_ScoreRequire".ToUILocale().Fmt(this._rankRequireScore), this.RateButtonLabel.string = "ChaosSummon_SummonRate".ToUILocale(), this.HeroDetailButtonLabel.string = "ChaosSummon_HeroDetail".ToUILocale(), this.ElementButtonLabel.string = y.HeroElementType.Chaos.ToElementEffectName(), this.DrawOnceButtonLabel.string = "summon_times".ToUILocale().Fmt(1), this.DrawTenTimesButtonLabel.string = "summon_times".ToUILocale().Fmt(10), this.ItemGetWayButtonLabel.string = "ChaosSummon_GetMore".ToUILocale(), this.GiftPackButtonLabel.string = "ChaosSummon_GiftPack".ToUILocale(), this.SuccessBackButtonLabel.string = "SendLog_return".ToUILocale(), this.TrialChallengeButtonLabel.string = "TrialHero_TrialChallenge".ToUILocale(), this.StarPieceGiftPackButtonLabel.string = "ChaosSummon_StarPieceGiftPack".ToUILocale(), this.AutoBtnLabel.string = "auto_summon".ToUILocale(), this.UpStarGiftBtnLabel.string = "chaos_upstar_gift".ToUILocale(), this.RuleTipSecondLineRichText.string = "ChaosSummon_RuleSecondLine".ToUILocale().Fmt(this._summonScoreRate), this.RankRewardButtonLabel.string = "reward".ToUILocale()
            }, t.prototype.InitButtonEvents = function() {
                this.RuleButton.node.on("click", this.OnRuleButtonClicked, this), this.RateButton.node.on("click", this.OnRateButtonClicked, this), this.HeroDetailButton.node.on("click", this.OnHeroDetailButtonClicked, this), this.ElementButton.node.on("click", this.OnElementButtonClicked, this), this.DrawOnceButton.node.on("click", this.OnDrawOnceButtonClicked, this), this.DrawTenTimesButton.node.on("click", this.OnDrawTenTimesButtonClicked, this), this.ReturnButton.node.on("click", this.OnReturnButtonClicked, this), this.GiftPackButton.node.on("click", this.OnGiftPackButtonClicked, this), this.ItemGetWayButton.node.on("click", this.OnItemGetWayButtonClicked, this), this.SuccessViewDrawAgainButton.node.on("click", this.OnSummonAgainButtonClicked, this), this.SuccessBackButton.node.on("click", this.OnSummonSuccessReturnButtonClicked, this), this.TrialChallengeButton.node.on("click", this.OnTrialChallengeButtonClick, this), this.StarPieceGiftPackButton.node.on("click", this.OnStarPieceGiftButtonClicked, this), this.ChestButton.node.on("click", this.OnChestButtonClick, this), this.RankRewardButton.node.on("click", this.OnRankRewardButtonCliked, this), this.AutoBtn.node.on("click", this.ClickAutoBtn, this), this.UpStarGiftBtn.node.on("click", this.ClickUpStarGiftBtn, this)
            }, t.prototype.InitWinnnerReportView = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this.WinnerInfoView.Init(this._messagePrefab, function(e, t) {
                            var n = e.getComponent(cc.RichText),
                                o = C.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t.IntParams[0]);
                            n.string = "luckywheel_playerList".ToUILocale().Fmt(t.StringParams, b.UIUtlity.GetLabelColorByQuality(o.Quality).toHEX("#rrggbb"), o.Id.ToItemName(), t.IntParams[1])
                        }), [2]
                    })
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), t[1] ? (this._activityId = t[1], this._activityConfigData = C.DataCenter.Instance.ActivityConfigs[this._activityId], this.PanelNameLabel.string = this._activityConfigData.Common.Title) : (this._activityId = 0, t[2] && (this._activityId = m.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(y.ActivityType.ChaosSummon, t[2]), this._activityConfigData = C.DataCenter.Instance.ActivityConfigs[this._activityId], this.PanelNameLabel.string = this._activityConfigData.Common.Title)), this.SetCurrentRoundData(), 0 == this._activityId && this.SetPregressTaskConfigs(), this._starEffectPool = new cc.NodePool
            }, t.prototype.SetPregressTaskConfigs = function() {
                this._progressTaskConfigs = [];
                for (var e = C.ConfigDataComponent.Instance.GetArrayConfig(M.TaskBase_Config), t = C.ConfigDataComponent.Instance.GetArrayConfig(M.ItemHeroCard_Config), n = {}, o = 0; o < t.length; o++) n[(a = t[o]).HeroId] = a;
                var r = C.ConfigDataComponent.Instance.GetArrayConfig(M.ItemPiece_Config),
                    i = {};
                for (o = 0; o < r.length; o++) i[(a = r[o]).CardId] = a;
                for (o = 0; o < e.length; o++)
                    if (e[o].Type == D.TaskType.ChaosSummon) {
                        var a;
                        if (0 == (a = e[o]).Rewards[0].Items[0]) {
                            var s = i[n[this._heroConfig.Id].Id];
                            a.Rewards[0].Items[0] = s.Id
                        }
                        this._progressTaskConfigs.push(a)
                    } this._progressTaskConfigs.sort(function(e, t) {
                    return e.Id - t.Id
                })
            }, t.prototype.SetCurrentRoundData = function() {
                var e = this;
                if (this._activityId > 0) {
                    this._summonStarTime = this._activityConfigData.Common.StartTime, this._summonEndTime = m.default.Instance.ComputeDeadTime(this._activityConfigData.Common) - p.Etc.HourDuration * (24 - this._activityConfigData.CustomPart.EndTime), this._activityConfigData.CustomPart.OffShelf ? this._currentHeroEndTime = this._summonEndTime : this._currentHeroEndTime = -1;
                    var t = this._activityConfigData.CustomPart.CardIds[0],
                        n = C.ConfigDataComponent.Instance.GetConfigById(c.ItemHeroCard_Config, t);
                    this._heroConfig = C.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, n.HeroId), this._currentHeroAvailableStartTIme = 0
                } else {
                    for (var o = C.ConfigDataComponent.Instance.GetArrayConfig(c.CardChaosSummon_Config), r = C.RpcComponent.Instance.ServerTime, i = o.length - 1; i >= 0; i--) {
                        var a = g.TimeUtil.StrToTime(o[i].StartTime);
                        if (r >= a) {
                            this._currentHeroStartTime = a, this._currentHeroEndTime = o[i].EndTime ? g.TimeUtil.StrToTime(o[i].EndTime) : -1, this._chaosSummonConfig = o[i];
                            break
                        }
                    }
                    var s = C.DataCenter.Instance.ZoneGroupResetTime;
                    this._summonStarTime = s - p.Etc.HourDuration * this._summonOpenHours, this._summonEndTime = s - 3 * p.Etc.HourDuration, this._heroConfig = C.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, this._chaosSummonConfig.HeroId), this._currentHeroAvailableStartTIme = C.DataCenter.Instance.GetModuleAvailableStartTime(D.ModuleStartTime.Hero, this._chaosSummonConfig.HeroId), this._currentHeroAvailableStartTIme || (this._currentHeroAvailableStartTIme = this._heroConfig.AvailableStartTime ? g.TimeUtil.StrToTime(this._heroConfig.AvailableStartTime) : 0)
                }
                this._heroAvatarIds = [], this._heroAvatarIds.push(this._heroConfig.Id), this._heroConfig.AdultPictures.forEach(function(t) {
                    e._heroAvatarIds.push(t.Items[0])
                })
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), this.HasAvailableConfig() && this.CanShowHero()) {
                    if (this.OutOfTimeWordSprite.active = !1, this.ShortCutSprite.node.active = !1, this.BgMaskNode.active = !1, t || (this.SetUIContent(), this.SetHeroName()), this.IsShowSummonView()) {
                        this.SummonAvailableView.active = !0, this.SummonUnAvailableView.active = !1, this.TimeLeftNode.active = !0;
                        var n = void 0;
                        this._activityId > 0 ? (this.RankList.node.active = this._activityConfigData.CustomPart.HaveRank > 0 && C.DataCenter.Instance.Zones[C.DataCenter.Zone].Group > 0 && this._chosenIndex <= 0, n = this._activityConfigData.Common.JumpId) : (this.RankList.node.active = C.DataCenter.Instance.Zones[C.DataCenter.Zone].Group > 0 && this._chosenIndex <= 0, n = this.UpStarJumpId), this.RankRewardButton.node.active = this.RankList.node.active, this._canShowRankList = this.RankList.node.active, this.CurrentHeroTimeLeftView.y = this._currentHeroTimeLeftYOffset[0], this.SetSummonView(), this.SetSummonViewCountDown(), this.schedule(this.SetSummonViewCountDown, 1), this._canTrialHero = !0;
                        var o = C.ConfigDataComponent.Instance.GetConfigById(M.ItemGetWay_Config, n);
                        this.UpStarGiftBtn.node.active = !!(n > 0 && o)
                    } else 0 == this._activityId && (this.SummonAvailableView.active = !1, this.SummonUnAvailableView.active = !0, this.TimeLeftNode.active = !1, this.RankList.node.active = !1, this.RankRewardButton.node.active = !1, this._canShowRankList = !1, this.RankScoreRequireLabel.node.active = !1, this.CurrentHeroTimeLeftView.y = this._currentHeroTimeLeftYOffset[1], this.SetSummonUnAvailableViewCountDown(), this.schedule(this.SetSummonUnAvailableViewCountDown, 1), this._canTrialHero = !1, this.UpStarGiftBtn.node.active = !1);
                    this._currentHeroEndTime > 0 ? (this.CurrentHeroTimeLeftView.active = !0, this.SetHeroUnAvaibleCountDown(), this.schedule(this.SetHeroUnAvaibleCountDown, 1)) : this.CurrentHeroTimeLeftView.active = !1, this.BindRedDot()
                } else this.SummonAvailableView.active = !1, this.SummonUnAvailableView.active = !1, this.TopInfoNode.active = !1, this.TimeLeftNode.active = !1, this.SetHeroUnAvailableView(), this.SetDescriptionAndPackButtonsState(), this.RankList.node.active = !1, this.RankRewardButton.node.active = !1, this._canShowRankList = !1, this._canTrialHero = !1, this.UpStarGiftBtn.node.active = !1;
                this.SetSummonViewCurrencyBars(), this.ConfigTrialChallengeButton(), this.SetProgressBar()
            }, t.prototype.SetRankStatus = function() {
                this._activityId > 0 ? this._canShowRankList = this.IsShowSummonView() && this._activityConfigData.CustomPart.HaveRank > 0 && C.DataCenter.Instance.Zones[C.DataCenter.Zone].Group > 0 && this._chosenIndex <= 0 : this._canShowRankList = this.IsShowSummonView() && C.DataCenter.Instance.Zones[C.DataCenter.Zone].Group > 0 && this._chosenIndex <= 0
            }, t.prototype.BindRedDot = function() {
                this._activityId > 0 ? (v.RedDotManager.Instance.BindInstance(this.ItemGetWayButton.node, v.RedDotManager.Instance.InstanceRedDot.ChaosSummonGetWayNode, {
                    Value1: this._activityId
                }), v.RedDotManager.Instance.BindInstance(this.GiftPackButton.node, v.RedDotManager.Instance.InstanceRedDot.ChaosSummonFreeGiftPanelNode, {
                    Value1: this._activityId
                }), v.RedDotManager.Instance.BindInstance(this.DrawOnceButton.node, v.RedDotManager.Instance.InstanceRedDot.ChaosSummonDrawOnceNode, {
                    Value1: this._activityId
                }), v.RedDotManager.Instance.BindInstance(this.DrawTenTimesButton.node, v.RedDotManager.Instance.InstanceRedDot.ChaosSummonDrawTenNode, {
                    Value1: this._activityId
                })) : (v.RedDotManager.Instance.Bind(this.ItemGetWayButton.node, v.RedDotManager.Instance.RedDot.ChaosSummonGetWayNode), v.RedDotManager.Instance.Bind(this.GiftPackButton.node, v.RedDotManager.Instance.RedDot.ChaosSummonFreeGiftPanelNode), v.RedDotManager.Instance.Bind(this.DrawOnceButton.node, v.RedDotManager.Instance.RedDot.ChaosSummonDrawOnceNode), v.RedDotManager.Instance.Bind(this.DrawTenTimesButton.node, v.RedDotManager.Instance.RedDot.ChaosSummonDrawTenNode))
            }, t.prototype.SetHeroUnAvailableView = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.OutOfTimeWordSprite.active = !0, [4, this.LoadDynamicAsset("ChaosSummonPanel/PNG/ChaosSummon_OutLine", cc.SpriteFrame)];
                            case 1:
                                return e = t.sent(), this.isValid ? (this.ShortCutSprite.spriteFrame = e, this.ShortCutSprite.node.active = !0, this.BgMaskNode.active = !0, this.CanShowHero() ? this.CurrentHeroTimeLeftView.active = !1 : (this.CurrentHeroTimeLeftView.y = this._currentHeroTimeLeftYOffset[1], this.CurrentHeroTimeLeftView.active = !0, h.EZLog.Log("this.CurrentHeroTimeLeftView.y " + this.CurrentHeroTimeLeftView.y), this.SetHeroAvailabelTimeLeft(), this.schedule(this.SetHeroAvailabelTimeLeft, 1)), [2]) : (h.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.SetHeroAvailabelTimeLeft = function() {
                C.RpcComponent.Instance.ServerTime < this._currentHeroAvailableStartTIme ? this.CurrentHeroTimeLeftRichText.string = "ChaosSummon_HeroAvailabelTimeLeft".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(this._currentHeroAvailableStartTIme - C.RpcComponent.Instance.ServerTime)) : (this.unschedule(this.SetHeroAvailabelTimeLeft), this.DisPlay(!0))
            }, t.prototype.SetHeroUIAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._heroAvatarIds[this._chosenIndex] ? (t = "", n = C.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, this._heroAvatarIds[this._chosenIndex]), this._chosenIndex > 0 ? (o = this._heroAvatarIds[this._chosenIndex], t = "AdultPicture" + o + "/Avatar") : t = n.UIAvatar + "/Avatar", [4, this.LoadDynamicAsset(t, cc.Prefab)]) : [2];
                            case 1:
                                return e = s.sent(), this.isValid ? (this.AvatarContainer.destroyAllChildren(), (r = cc.instantiate(e)).setParent(this.AvatarContainer), (i = r.getComponent(sp.Skeleton)).clearTracks(), this._chosenIndex || (a = m.default.Instance.GetHeroDefaultStarLevelSkinName(n.Id, n.StarLevel), i.setSkin(a)), i.setAnimation(0, f.SkillAnimationType.Standby, !0), [2]) : (h.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.SetUIContent = function() {
                this.SetRankStatus(), this.SetHeroUIAvatar(), this.ConfigTrialChallengeButton(), this.SetSummonViewCurrencyBars(), this.SetRankListView(), this.SetDescriptionAndPackButtonsState(), this.CheckSummonButtonActiveState(), this.SetProgressBar()
            }, t.prototype.CheckSummonButtonActiveState = function() {
                this.DrawOnceButton.node.active = 0 == this._chosenIndex, this.DrawTenTimesButton.node.active = this.DrawOnceButton.node.active;
                var e = m.default.Instance.IsGameModuleUnlock(D.GameModuleType.SummonAutoConsumeItem)[0];
                this.AutoSummonNode.active = e, this.ButtonLayout.spacingX = e ? 30 : 120
            }, t.prototype.SetHeroName = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, this.LoadDynamicAsset(C.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/" + this._heroConfig.Id), cc.SpriteFrame)];
                            case 1:
                                return e = t.sent(), this.isValid ? (this.HeroNameImage.spriteFrame = e, [2]) : (h.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.SetSummonViewCountDown = function() {
                if (this.IsInSummonTime()) {
                    var e = m.default.ActivityTimeLeftFormat(this._summonEndTime - C.RpcComponent.Instance.ServerTime);
                    this.TimeLeftContentLabel.string = "<outline color=#202434 width=3>" + "explore_time".ToUILocale().Fmt("<color=#33ff8e>" + e + "</c>") + "</outline>"
                } else this.TimeLeftContentLabel.string = "<outline color=#202434 width=3>" + "ChaosSummon_SummonEnd".ToUILocale() + "</outline>"
            }, t.prototype.SetSummonUnAvailableViewCountDown = function() {
                C.RpcComponent.Instance.ServerTime < this._summonStarTime ? this.UnAvailableTimeRichText.string = "ChaosSummon_SummonStartTimeLeft".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(this._summonStarTime - C.RpcComponent.Instance.ServerTime)) : (this.unschedule(this.SetSummonUnAvailableViewCountDown), this.DisPlay(!0))
            }, t.prototype.SetHeroUnAvaibleCountDown = function() {
                C.RpcComponent.Instance.ServerTime < this._currentHeroEndTime ? this.CurrentHeroTimeLeftRichText.string = "ChaosSummon_HeroExpiredTime".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(this._currentHeroEndTime - C.RpcComponent.Instance.ServerTime)) : (this.unschedule(this.SetHeroUnAvaibleCountDown), this.DisPlay(!0))
            }, t.prototype.SetSummonView = function() {
                this.IsReDisPlay && this.SetRankListView(), this.SetBoardCast()
            }, t.prototype.SetRankListView = function() {
                var e = this;
                if (this._chosenIndex > 0) return h.EZLog.Log("SetRankListView chosenIndex>0"), this.RankList.node.active = !1, this.RankRewardButton.node.active = !1, this.RuleTipSecondLineRichText.node.active = !1, void(this.RankScoreRequireLabel.node.active = !1);
                this.RankList.node.active = this._canShowRankList, this.RankRewardButton.node.active = this._canShowRankList, this.RuleTipSecondLineRichText.node.active = this._canShowRankList, this.RankScoreRequireLabel.node.active = this._canShowRankList, this._canShowRankList && (C.DataCenter.Instance.Zones[C.DataCenter.Zone].Group > 0 ? (this.RuleTipSecondLineRichText.node.active = !0, this._activityId > 0 ? (this.RankList.node.active = this._activityConfigData.CustomPart.HaveRank > 0, this.RankScoreRequireLabel.node.active = this._activityConfigData.CustomPart.HaveRank > 0, this._activityConfigData.CustomPart.HaveRank > 0 && this.RankList.InitUIForActivity(this._activityId, "chaosSummon_activity_rank".ToUILocale(), function() {
                    var t = new k.Req_Activity_GetRank;
                    t.ActivityId = e._activityId, C.RpcComponent.Instance.Call(t, function(e) {
                        var t = {};
                        t.ActivityId = this._activityId, t.Title = "bossWar_rank_name".ToUILocale().Fmt(this._activityConfigData.Common.Title), t.RankDatas = [e, e], t.ExtraData = {
                            ToggleIndex: 0
                        }, t.ToggleDatas = [{
                            ToggleLabel: "rank_show_score".ToUILocale(),
                            ToggleIcon: ""
                        }, {
                            ToggleLabel: "rank_show_reward".ToUILocale(),
                            ToggleIcon: ""
                        }], h.UIManager.Instance.ShowUIPanel(_.PanelConfig.CommonActivityRankPanel.Path, t)
                    }.bind(e))
                })) : (this.RankList.node.active = !0, this.RankScoreRequireLabel.node.active = !0, this.RankList.InitUI(y.RankTypeId.ChaosSummon, "ChaosSummon_SmallRankTitle".ToUILocale()))) : (this.RankList.node.active = !1, this.RuleTipSecondLineRichText.node.active = !1, this.RankScoreRequireLabel.node.active = !1), this.RankRewardButton.node.active = this.RankList.node.active)
            }, t.prototype.SetBoardCast = function() {
                var e = this;
                if (this._activityId > 0);
                else {
                    var t = new u.Req_Notice_GetByType;
                    t.Type = y.NoticeType.ChaosSummon, t.ActivityId = 0, C.RpcComponent.Instance.Call(t, function(t) {
                        if (t.Notice && t.Notice.Normal && t.Notice.Normal.length > 0 && e.WinnerInfoView.Render(t.Notice.Normal), t.Notice && t.Notice.Advance && t.Notice.Advance.length > 0) {
                            var n = t.Notice.Advance[0],
                                o = C.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, n.IntParams[0]);
                            e.UnmortalCast.Push("luckywheel_playerList".ToUILocale().Fmt(n.StringParams, b.UIUtlity.GetLabelColorByQuality(o.Quality).toHEX("#rrggbb"), o.Id.ToItemName(), n.IntParams[1]))
                        } else e.UnmortalCast.node.active = !1
                    })
                }
            }, t.prototype.SetSummonViewCurrencyBars = function() {
                var e = this;
                if (this._activityId > 0) {
                    var t = 0 == this._chosenIndex ? l.SummonOnce : l.PersonalSummonOnce;
                    this._activityConfigData.__CommonSummon.forEach(function(n) {
                        n.Id == t && (e._currentCurrencyId = n.ConsumeItem[0].Items[0])
                    })
                } else this._chosenIndex > 0 ? this._currentCurrencyId = m.default.GetSummonCurrencyIdBySummonType(y.CardCommonSummonType.ChaosPersonalitySummon) : this._currentCurrencyId = m.default.GetSummonCurrencyIdBySummonType(y.CardCommonSummonType.ChaosSummon);
                this.ResourceGotCurencyBar.Init(this._currentCurrencyId), this.DrawOnceCurrencyBar.Init(this._currentCurrencyId, !1, n.SUMMON_ONCE_TICKET_COUNT);
                var o = C.DataCenter.Instance.IsItemEnough(this._currentCurrencyId, n.SUMMON_ONCE_TICKET_COUNT);
                this.DrawOnceCurrencyBar.HideBtnAdd(), this.DrawOnceCurrencyBar.SetFixedColor(o ? cc.Color.WHITE : cc.Color.RED), this.DrawTenTimesCurrencyBar.Init(this._currentCurrencyId, !1, n.SUMMON_TEN_TICKET_COUNT);
                var r = C.DataCenter.Instance.IsItemEnough(this._currentCurrencyId, n.SUMMON_TEN_TICKET_COUNT);
                this.DrawTenTimesCurrencyBar.SetFixedColor(r ? cc.Color.WHITE : cc.Color.RED), this.DrawTenTimesCurrencyBar.HideBtnAdd();
                var i = C.DataCenter.Instance.GetItemCount(this._currentCurrencyId);
                this.CurrencyBarAuto.Init(this._currentCurrencyId, !1, i), this.CurrencyBarAuto.SetFixedColor(i >= n.SUMMON_ONCE_TICKET_COUNT ? cc.Color.WHITE : cc.Color.RED);
                var a = this.GetCurrentCurrencyNeed();
                this.SuccessViewCurrencyBar.Init(this._currentCurrencyId, !1, this.GetCurrentCurrencyNeed()), this.SuccessViewCurrencyBar.HideBtnAdd(), a == n.SUMMON_ONCE_TICKET_COUNT ? this.SuccessViewCurrencyBar.SetFixedColor(o ? cc.Color.WHITE : cc.Color.RED) : this.SuccessViewCurrencyBar.SetFixedColor(r ? cc.Color.WHITE : cc.Color.RED)
            }, t.prototype.SetProgressBar = function() {
                if (this._activityId > 0)
                    if (this._activityConfigData._Tasks && this._activityConfigData._Tasks.length > 0) {
                        if (this.ProgressBarNode.active = 0 == this._chosenIndex, 0 == this._chosenIndex) {
                            for (var e = void 0, t = void 0, n = void 0, o = 0; o < this._activityConfigData._Tasks.length; o++)
                                if (!(n = C.DataCenter.Instance.GetDataById(k.UserTask_Model, 1e4 * this._activityConfigData._id + this._activityConfigData._Tasks[o].Id)) || !n.IsCompleted) {
                                    e = this._activityConfigData._Tasks[o].TotalCount;
                                    break
                                } e || (e = this._activityConfigData._Tasks[this._activityConfigData._Tasks.length - 1].TotalCount), t = n.Progress >= e ? e : n.Progress, this.ProgressBar.progress = t / e, this.ProgressBarLabel.string = "personalityCall_drawTimesWithNumber".ToUILocale().Fmt(t + "/" + e), this.ChestAni.node.active = t >= e && !n.IsCompleted
                        }
                    } else this.ProgressBarNode.active = !1;
                else if (0 == this._chosenIndex && this.IsShowSummonView() && this._progressTaskConfigs.length > 0) {
                    for (this.ProgressBarNode.active = !0, n = void 0, e = void 0, t = void 0, o = 0; o < this._progressTaskConfigs.length; o++)
                        if (!(n = C.DataCenter.Instance.GetDataById(k.UserTask_Model, this._progressTaskConfigs[o].Id)) || !n.IsCompleted) {
                            e = this._progressTaskConfigs[o].TotalCount;
                            break
                        } e || (e = this._progressTaskConfigs[this._progressTaskConfigs.length - 1].TotalCount), t = n.Progress >= e ? e : n.Progress, this.ProgressBar.progress = t / e, this.ProgressBarLabel.string = "personalityCall_drawTimesWithNumber".ToUILocale().Fmt(t + "/" + e), this.ChestAni.node.active = t >= e && !n.IsCompleted
                } else this.ProgressBarNode.active = !1
            }, t.prototype.SetDescriptionAndPackButtonsState = function() {
                this.HasAvailableConfig() && this.CanShowHero() ? this.IsShowSummonView() ? (this.StarPieceGiftPackButton.node.active = !0, this.GiftPackButton.node.active = 0 == this._chosenIndex, this.DescriptionImageNode.active = !0) : (0 == this._activityId && (this.GiftPackButton.node.active = !1, this.StarPieceGiftPackButton.node.active = !1), this.DescriptionImageNode.active = !1) : (this.GiftPackButton.node.active = !1, this.StarPieceGiftPackButton.node.active = !1, this.DescriptionImageNode.active = !1)
            }, t.prototype.IsShowSummonView = function() {
                return C.RpcComponent.Instance.ServerTime >= this._summonStarTime
            }, t.prototype.IsInSummonTime = function() {
                return C.RpcComponent.Instance.ServerTime >= this._summonStarTime && C.RpcComponent.Instance.ServerTime < this._summonEndTime
            }, t.prototype.HasAvailableConfig = function() {
                return this._currentHeroEndTime < 0 || C.RpcComponent.Instance.ServerTime <= this._currentHeroEndTime
            }, t.prototype.CanShowHero = function() {
                return C.RpcComponent.Instance.ServerTime >= this._currentHeroAvailableStartTIme
            }, t.prototype.OnRuleButtonClicked = function() {
                var e, t, n;
                this._activityId > 0 ? 0 == this._chosenIndex ? (e = "chaosSummon_activity_rule_title".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["chaosSummon_activity_rule_content".ToUILocale()]) : (e = "ChaosSummon_personality_PanelName".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["chaosSummon_activity_ersonality_rule_content".ToUILocale()]) : 0 == this._chosenIndex ? (e = "ChaosSummon_PanelName".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["ChaosSummon_RuleContent".ToUILocale()]) : (e = "ChaosSummon_personality_PanelName".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["ChaosSummon_personality_RuleContent".ToUILocale()]);
                var o = {
                    name: e,
                    titles: t,
                    contents: n
                };
                b.UIUtlity.ShowRulePanel(o)
            }, t.prototype.OnRateButtonClicked = function() {
                if (this._activityId > 0) {
                    for (var e, t = 0 == this._chosenIndex ? 1 : 1001, n = 0; n < this._activityConfigData.__CommonSummon.length; n++)
                        if (this._activityConfigData.__CommonSummon[n].Id == t) {
                            e = this._activityConfigData.__CommonSummon[n].ShowLibs[0].Items[0];
                            break
                        } var o = this._activityConfigData.__ShowChance[0].ShowLib;
                    this._activityConfigData.__ShowChance.forEach(function(t) {
                        t.Id == e && (o = t.ShowLib)
                    }), h.UIManager.Instance.ShowUIPanel(_.PanelConfig.CommonRatePanel.Path, P.ShowRateType.ChaosSummonActivity, o)
                } else h.UIManager.Instance.ShowUIPanel(_.PanelConfig.CommonRatePanel.Path, P.ShowRateType.ChaosSummon, this._chaosSummonConfig.RateIds[0 == this._chosenIndex ? 0 : 1])
            }, t.prototype.OnHeroDetailButtonClicked = function() {
                h.UIManager.Instance.ShowUIPanel(_.PanelConfig.HeroHandbookPanel.Path, this._heroConfig.Id, null, null, null, null, !0)
            }, t.prototype.OnElementButtonClicked = function() {
                h.UIManager.Instance.ShowUIPanel(_.PanelConfig.ChaosElementEffectPanel.Path, 1, E.ChaosElementEffectType.Chaos, this._heroConfig.Id)
            }, t.prototype.OnDrawOnceButtonClicked = function() {
                this._activityId > 0 ? this._currentSummonType = 0 == this._chosenIndex ? l.SummonOnce : l.PersonalSummonOnce : this._currentSummonType = 0 == this._chosenIndex ? y.CardCommonSummonType.ChaosSummon : y.CardCommonSummonType.ChaosPersonalitySummon, this.HandleSummon()
            }, t.prototype.OnDrawTenTimesButtonClicked = function() {
                this._activityId > 0 ? this._currentSummonType = 0 == this._chosenIndex ? l.SummonTen : l.PersonalSummonTen : this._currentSummonType = 0 == this._chosenIndex ? y.CardCommonSummonType.ChaosSummon10 : y.CardCommonSummonType.ChaosPersonalitySummon10, this.HandleSummon()
            }, t.prototype.GetCurrentCurrencyNeed = function() {
                switch (this._currentSummonType) {
                    case y.CardCommonSummonType.ChaosSummon:
                    case y.CardCommonSummonType.ChaosPersonalitySummon:
                    case l.SummonOnce:
                    case l.PersonalSummonOnce:
                        return n.SUMMON_ONCE_TICKET_COUNT;
                    default:
                        return n.SUMMON_TEN_TICKET_COUNT
                }
            }, t.prototype.HandleSummon = function() {
                var e = this,
                    t = this.GetCurrentCurrencyNeed(),
                    o = t == n.SUMMON_ONCE_TICKET_COUNT ? 1 : 10;
                if (this.IsInSummonTime()) {
                    if (this._activityId > 0) {
                        var r = this._activityConfigData.__CommonSummon.find(function(t) {
                            return t.Id == e._currentSummonType
                        });
                        if (r && !this._activityConfigData.__SummonType.find(function(e) {
                                return e.Id == r.SummonType
                            }).DoNotCheck && !m.default.Instance.IsCanGetNewHero(o)) {
                            var i = m.default.Instance.GetHeroCountLimit(),
                                a = "drawCard_heroCount_limit".ToUILocale().Fmt(i);
                            return void b.UIUtlity.ShowHintPanel("", a, "", null, "go_to_treat".ToUILocale(), function() {
                                h.UIManager.Instance.ShowUIPanel(_.PanelConfig.HeroPalacePanel.Path, 1)
                            })
                        }
                    } else if (0 == this._chosenIndex && !m.default.Instance.IsCanGetNewHero(o)) return i = m.default.Instance.GetHeroCountLimit(), a = "drawCard_heroCount_limit".ToUILocale().Fmt(i), void b.UIUtlity.ShowHintPanel("", a, "", null, "go_to_treat".ToUILocale(), function() {
                        h.UIManager.Instance.ShowUIPanel(_.PanelConfig.HeroPalacePanel.Path, 1)
                    });
                    C.DataCenter.Instance.IsItemEnough(this._currentCurrencyId, t) ? (T.default.CheckOwnedHeroes(), this.RequestSummon()) : this.OnGiftPackButtonClicked()
                } else b.UIUtlity.ShowFloatingHint("ChaosSummon_NotInSummonTime".ToUILocale())
            }, t.prototype.RequestSummon = function() {
                if (this._activityId > 0) {
                    if (m.default.CheckActivityIsEnd(this._activityConfigData.Common, !0)) return;
                    (e = new k.Req_Activity_CommonSummon).ActivityId = this._activityId, e.Type = this._currentSummonType, e.ItemId = this._currentCurrencyId, C.RpcComponent.Instance.Call(e, this.OnActivitySummonRequestSuccess.bind(this))
                } else {
                    var e;
                    (e = new u.Req_Card_CommonSummon).Type = this._currentSummonType, e.ItemId = this._currentCurrencyId, C.RpcComponent.Instance.Call(e, this.OnSummonRequestSuccess.bind(this))
                }
            }, t.prototype.OnSummonRequestSuccess = function(e) {
                var t = this;
                this._itemsData = [], e.Items.forEach(function(e) {
                    t._itemsData.push(e.Items)
                }), this.ShowSummonSuccessView(), this.HideSuccessComponents(), this.SetProgressBar()
            }, t.prototype.OnActivitySummonRequestSuccess = function(e) {
                var t = this;
                this._itemsData = [], C.DataCenter.Instance.GetDataById(k.UserActivity_Model, this._activityId), e.Items.forEach(function(e) {
                    if (0 == e.Items[0]) {
                        var n = t._activityConfigData.CustomPart.CardIds[0],
                            o = new k.IntArray;
                        o.Items = e.Items, o.Items[0] = n, t._itemsData.push(o.Items)
                    } else t._itemsData.push(e.Items)
                }), this.ShowSummonSuccessView(), this.HideSuccessComponents(), this.BindRedDot(), this.SetProgressBar()
            }, t.prototype.OnGiftPackButtonClicked = function() {
                this._activityId > 0 ? h.UIManager.Instance.ShowUIPanel(_.PanelConfig.ChaosGiftPanel.Path, this._heroAvatarIds[this._chosenIndex], this._activityConfigData, y.LevelParamType.ChaosSummonGiftPack) : h.UIManager.Instance.ShowUIPanel(_.PanelConfig.ChaosGiftPanel.Path, this._heroAvatarIds[this._chosenIndex], null, y.LevelParamType.ChaosSummonGiftPack)
            }, t.prototype.OnStarPieceGiftButtonClicked = function() {
                this._activityId > 0 ? h.UIManager.Instance.ShowUIPanel(_.PanelConfig.ExclusiveGiftPackPanel.Path, this._heroAvatarIds[0], this._activityConfigData) : m.default.ShowPanelByGetWayId(this.GiftPackJumpId)
            }, t.prototype.OnChestButtonClick = function() {
                this._activityId > 0 ? h.UIManager.Instance.ShowUIPanel(_.PanelConfig.WishTimesRewardPanel.Path, this._activityConfigData._Tasks, this._activityConfigData._id) : h.UIManager.Instance.ShowUIPanel(_.PanelConfig.WishTimesRewardPanel.Path, this._progressTaskConfigs, 0)
            }, t.prototype.OnItemGetWayButtonClicked = function() {}, t.prototype.OnReturnButtonClicked = function() {
                h.UIManager.Instance.BackUIPanel()
            }, t.prototype.ShowSummonSuccessView = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this.PanelSpineLoop.node.active = !1, this.PanelSpineOnce.node.active = !1, this.SummonSuccessView.active || (e = this._currentSummonType == y.CardCommonSummonType.ChaosSummon || this._currentSummonType == l.SummonOnce || this._currentSummonType == l.PersonalSummonOnce || this._currentSummonType == y.CardCommonSummonType.ChaosPersonalitySummon ? 1 : 10, this.SuccessViewDrawAgainButtonLabel.string = "summon_times".ToUILocale().Fmt(e), this.SuccessViewTipRichText.string = "ChaosSummon_SuccessExtraPoint".ToUILocale().Fmt(e * this._summonScoreRate), this.SummonSuccessView.active = !0, this.SummonView.active = !1), null != this._itemPrefab ? [3, 2] : (t = this.LoadDynamicAsset(_.BundlePath.ItemComponent), n = this.LoadDynamicAsset("PersonalSummonPanel/PersonalSummonCardComponent"), [4, Promise.all([t, n]).then(function(e) {
                                    if (!o.isValid) return h.AssetsManager.Instance.UnloadAsset(e[0]), void h.AssetsManager.Instance.UnloadAsset(e[1]);
                                    o._itemPrefab = e[0], o._summonCardPrefab = e[1]
                                })]);
                            case 1:
                                r.sent(), r.label = 2;
                            case 2:
                                return this.CheckNewHeroIdsData(), this.PlayEffectByType(), [2]
                        }
                    })
                })
            }, t.prototype.CheckNewHeroIdsData = function() {
                this._newHeroIds = [];
                for (var e = 0; e < this._itemsData.length; e++) {
                    var t = C.ConfigDataComponent.Instance.GetConfigById(c.ItemHeroCard_Config, this._itemsData[e][0]);
                    !t || this._newHeroIds.includes(t.HeroId) || T.default.OwnedHeroIds.includes(t.HeroId) || (t.StarLevel >= 4 ? this._newHeroIds.push(this._itemsData[e][0]) : C.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, t.HeroId).StarLevel >= 4 && this._newHeroIds.push(this._itemsData[e][0]))
                }
            }, t.prototype.PlayEffectByType = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function() {
                        for (this.PanelSpineLoop.node.active = !0, this.PanelSpineOnce.node.active = !0, this.PanelSpineLoop.setAnimation(0, "Ani_UI_Effect_Recruit_Glow2", !0), this.PanelSpineOnce.setAnimation(0, "Ani_UI_Effect_Recruit_Glow", !1), e = 0; e < this.SuccessViewAniContainer.childrenCount; e++) this._starEffectPool.put(this.SuccessViewAniContainer.children[e]);
                        switch (this.SuccessViewAniContainer.removeAllChildren(), this._currentSummonType) {
                            case y.CardCommonSummonType.ChaosSummon:
                            case y.CardCommonSummonType.ChaosPersonalitySummon:
                            case l.PersonalSummonOnce:
                            case l.SummonOnce:
                                this.PlayOneEffect();
                                break;
                            case y.CardCommonSummonType.ChaosSummon10:
                            case y.CardCommonSummonType.ChaosPersonalitySummon10:
                            case l.SummonTen:
                            case l.PersonalSummonTen:
                                this.PlayTenEffect()
                        }
                        return [2]
                    })
                })
            }, t.prototype.PlayOneEffect = function() {
                var e = this.GetStarEffectNode();
                e.getComponent(A.default).Init(this._currentSummonType, this._itemPrefab, this._itemsData[0], !1), e.setParent(this.SuccessViewAniContainer)
            }, t.prototype.PlayTenEffect = function() {
                for (var e = 0; e < this._itemsData.length; e++) {
                    var t = this.GetStarEffectNode();
                    t.getComponent(A.default).Init(this._currentSummonType, this._itemPrefab, this._itemsData[e], !1, e), t.setParent(this.SuccessViewAniContainer)
                }
            }, t.prototype.GetStarEffectNode = function() {
                return this._starEffectPool.size() > 0 ? this._starEffectPool.get() : cc.instantiate(this._summonCardPrefab)
            }, t.prototype.OnDisplayEffectEnd = function() {
                this.ShowSuccessComponents()
            }, t.prototype.OpenShowOffHeroPanel = function() {
                h.UIManager.Instance.ShowUIPanel(_.PanelConfig.ShowOffHeroPanel.Path, this._newHeroIds)
            }, t.prototype.HideSuccessComponents = function() {
                this.TopView.active = !1, this.SuccessBackButton.node.active = !1, this.SuccessViewCurrencyBar.node.active = !1, this.SuccessViewDrawAgainButton.node.active = !1, this.SuccessViewTipContainer.node.active = !1
            }, t.prototype.ShowSuccessComponents = function() {
                this.TopView.active = !0, this.SuccessBackButton.node.active = !0, this.SuccessViewCurrencyBar.node.active = !0, this.SuccessViewDrawAgainButton.node.active = !0, this.SuccessViewTipContainer.node.active = 0 == this._chosenIndex
            }, t.prototype.OnSummonAgainButtonClicked = function() {
                this.HandleSummon()
            }, t.prototype.OnSummonSuccessReturnButtonClicked = function() {
                this.SummonSuccessView.active = !1, this.SummonView.active = !0, this.SetSummonView()
            }, t.prototype.ConfigTrialChallengeButton = function() {
                if (this._chosenIndex > 0 || !this._canTrialHero) this.TrialChallengeButton.node.active = !1;
                else {
                    var e = void 0;
                    if (this._chaosSummonConfig) e = this._chaosSummonConfig;
                    else {
                        if (!C.DataCenter.Instance.GetDataById(k.UserActivity_Model, this._activityId)) return;
                        for (var t = this._activityConfigData.CustomPart.CardIds[0], n = C.ConfigDataComponent.Instance.GetConfigById(c.ItemHeroCard_Config, t), o = C.ConfigDataComponent.Instance.GetArrayConfig(c.CardChaosSummon_Config), r = 0; r < o.length; r++)
                            if (n.HeroId == o[r].HeroId) {
                                e = o[r];
                                break
                            }
                    }
                    if (e) {
                        e.HeroTry.length > 0 ? 0 == e.HeroTry[0].Items[0] ? this.TrialChallengeButton.node.active = !1 : (this.TrialChallengeButton.node.active = !0, v.RedDotManager.Instance.BindInstance(this.TrialChallengeButton.target, v.RedDotManager.Instance.InstanceRedDot.ChaosSummonTrialHeroNode, {
                            Value1: this._activityId
                        })) : this.TrialChallengeButton.node.active = !1;
                        var i = C.ConfigDataComponent.Instance.GetConfigById(M.MapBase_Config, e.HeroTry[1].Items[0]);
                        this._trialHeroMapType = i.Type
                    } else this.TrialChallengeButton.node.active = !1
                }
            }, t.prototype.OnTrialChallengeButtonClick = function() {
                h.UIManager.Instance.ShowUIPanel(_.PanelConfig.TrialHeroPanel.Path, O.TrialHeroActivityType.CardChaosSummon, this._activityId, this._chaosSummonConfig)
            }, t.prototype.OnRankRewardButtonCliked = function() {
                var e, t = -1;
                this._activityId > 0 ? ((e = new k.Req_Activity_GetRank).ActivityId = this._activityId, C.RpcComponent.Instance.Call(e, function(e) {
                    var t = [];
                    this._activityConfigData._RankRewards.forEach(function(e) {
                        var n = {};
                        n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                    });
                    var n = {};
                    n.MyRank = e.MyRank, n.IsInRank = n.MyRank > 0, n.Data = t;
                    var o = {};
                    o.name = "chaos_rank_title".ToUILocale(), o.titles = ["personalityCall_rewards_RuleSubtitle".ToUILocale()], o.contents = ["chaos_rank_content".ToUILocale()], n.RuleTip = "ChaosSummonRankReward_RuleTip".ToUILocale(), n.RuleData = o, h.UIManager.Instance.ShowUIPanel(_.PanelConfig.CommonRankRewardPanel.Path, n)
                }.bind(this))) : ((e = new k.Req_Player_GetRank).RankType = y.RankTypeId.ChaosSummon, C.RpcComponent.Instance.Call(e, function(e) {
                    t = e.MyRank, h.UIManager.Instance.ShowUIPanel(_.PanelConfig.ChaosSummonRankRewardsPanel.Path, t)
                }))
            }, t.prototype.ClickAutoBtn = function() {
                if (this.IsInSummonTime()) {
                    if (this._currentCurrencyId) {
                        if (!C.DataCenter.Instance.IsItemEnough(this._currentCurrencyId, 1)) return void this.OnGiftPackButtonClicked();
                        if (this._activityId > 0) {
                            var e = 0 == this._chosenIndex ? l.SummonOnce : l.PersonalSummonOnce,
                                t = this._activityConfigData.__CommonSummon.find(function(t) {
                                    return t.Id == e
                                });
                            if (t && !this._activityConfigData.__SummonType.find(function(e) {
                                    return e.Id == t.SummonType
                                }).DoNotCheck && !m.default.Instance.IsCanGetNewHero(1)) {
                                var o = m.default.Instance.GetHeroCountLimit(),
                                    r = "drawCard_heroCount_limit".ToUILocale().Fmt(o);
                                return void b.UIUtlity.ShowHintPanel("", r, "", null, "go_to_treat".ToUILocale(), function() {
                                    h.UIManager.Instance.ShowUIPanel(_.PanelConfig.HeroPalacePanel.Path, 1)
                                })
                            }
                        } else if (o = m.default.Instance.GetHeroCountLimit(), 0 == this._chosenIndex && !m.default.Instance.IsCanGetNewHero(1)) {
                            var i = "timeLimited_wishCall_heroCount_limit".ToUILocale().Fmt(o);
                            return void b.UIUtlity.ShowHintPanel("", i, "", null, "go_to_treat".ToUILocale(), function() {
                                h.UIManager.Instance.ShowUIPanel(_.PanelConfig.HeroPalacePanel.Path, 1)
                            })
                        }
                        var a = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit"),
                            s = C.DataCenter.Instance.GetItemCount(this._currentCurrencyId),
                            c = Math.floor(s / n.SUMMON_ONCE_TICKET_COUNT);
                        if (0 == this._chosenIndex) {
                            var u = m.default.Instance.GetHeroCountLimit(),
                                p = C.DataCenter.Instance.GetDataList(k.UserHero_Model),
                                d = u - p.length > 0 ? u - p.length : 0,
                                f = Math.min(a, d),
                                y = c > f ? f : c;
                            this.DisplayUseItemPanel(y)
                        } else y = c > a ? a : c, this.DisplayUseItemPanel(y)
                    }
                } else b.UIUtlity.ShowFloatingHint("ChaosSummon_NotInSummonTime".ToUILocale())
            }, t.prototype.ClickUpStarGiftBtn = function() {
                var e;
                e = this._activityId > 0 ? this._activityConfigData.Common.JumpId : this.UpStarJumpId, m.default.ShowPanelByGetWayId(e, !1)
            }, t.prototype.DisplayUseItemPanel = function(e) {
                var t = {};
                t.UseItemId = this._currentCurrencyId, t.Title = "use".ToUILocale(), t.MaxCount = e, t.PerItemCount = n.SUMMON_ONCE_TICKET_COUNT, t.Callback = this.RequestAutoSummon.bind(this), h.UIManager.Instance.ShowUIPanel(_.PanelConfig.BuyAndSellItemPanel.Path, null, null, null, N.BuyAndSellType.Use, null, null, t)
            }, t.prototype.RequestAutoSummon = function(e) {
                if (this._activityId > 0) {
                    if (m.default.CheckActivityIsEnd(this._activityConfigData.Common, !0)) return;
                    var t = 0 == this._chosenIndex ? l.SummonOnce : l.PersonalSummonOnce;
                    (n = new k.Req_Activity_CommonSummon).Type = t, n.ItemId = this._currentCurrencyId, n.ActivityId = this._activityConfigData._id, n.Count = e, C.RpcComponent.Instance.Call(n, this.RequestActivityAutoSummonSuccess.bind(this))
                } else {
                    var n;
                    t = 0 == this._chosenIndex ? y.CardCommonSummonType.ChaosSummon : y.CardCommonSummonType.ChaosPersonalitySummon, (n = new k.Req_Card_CommonSummon).Type = t, n.ItemId = this._currentCurrencyId, n.Count = e, C.RpcComponent.Instance.Call(n, this.RequestAutoSummonSuccess.bind(this))
                }
            }, t.prototype.RequestActivityAutoSummonSuccess = function(e) {
                var t = this,
                    n = [];
                e.Items.forEach(function(e) {
                    var o = new k.UserItem_Model;
                    0 == e.Items[0] ? o.ItemId = t._activityConfigData.CustomPart.CardIds[0] : o.ItemId = e.Items[0], o.Count = e.Items[1], n.push(o)
                }), b.UIUtlity.ShwDisplayRewardPanel(n, B.RewardPanelSpineType.SpineFlash)
            }, t.prototype.RequestAutoSummonSuccess = function(e) {
                var t = [];
                e.Items.forEach(function(e) {
                    var n = new k.UserItem_Model;
                    n.ItemId = e.Items[0], n.Count = e.Items[1], t.push(n)
                }), b.UIUtlity.ShwDisplayRewardPanel(t, B.RewardPanelSpineType.SpineFlash)
            }, t.SUMMON_ONCE_TICKET_COUNT = 1, t.SUMMON_TEN_TICKET_COUNT = 10, i([H(cc.Node)], t.prototype, "TopView", void 0), i([H(cc.Button)], t.prototype, "RuleButton", void 0), i([H(cc.Label)], t.prototype, "PanelNameLabel", void 0), i([H(cc.Node)], t.prototype, "TimeLeftNode", void 0), i([H(cc.RichText)], t.prototype, "TimeLeftContentLabel", void 0), i([H(cc.Node)], t.prototype, "TopInfoNode", void 0), i([H(S.default)], t.prototype, "ResourceGotCurencyBar", void 0), i([H(cc.Node)], t.prototype, "SummonView", void 0), i([H(cc.Sprite)], t.prototype, "HeroNameImage", void 0), i([H(cc.Node)], t.prototype, "AvatarContainer", void 0), i([H(w.default)], t.prototype, "RankList", void 0), i([H(cc.Label)], t.prototype, "RankScoreRequireLabel", void 0), i([H(cc.Button)], t.prototype, "RateButton", void 0), i([H(cc.Label)], t.prototype, "RateButtonLabel", void 0), i([H(cc.Button)], t.prototype, "HeroDetailButton", void 0), i([H(cc.Label)], t.prototype, "HeroDetailButtonLabel", void 0), i([H(cc.Button)], t.prototype, "ElementButton", void 0), i([H(cc.Label)], t.prototype, "ElementButtonLabel", void 0), i([H(cc.Button)], t.prototype, "TrialChallengeButton", void 0), i([H(cc.Label)], t.prototype, "TrialChallengeButtonLabel", void 0), i([H(cc.Node)], t.prototype, "SummonAvailableView", void 0), i([H(L.default)], t.prototype, "WinnerInfoView", void 0), i([H(R.default)], t.prototype, "UnmortalCast", void 0), i([H(S.default)], t.prototype, "DrawOnceCurrencyBar", void 0), i([H(cc.Button)], t.prototype, "DrawOnceButton", void 0), i([H(cc.Label)], t.prototype, "DrawOnceButtonLabel", void 0), i([H(S.default)], t.prototype, "DrawTenTimesCurrencyBar", void 0), i([H(cc.Button)], t.prototype, "DrawTenTimesButton", void 0), i([H(cc.Label)], t.prototype, "DrawTenTimesButtonLabel", void 0), i([H(cc.Node)], t.prototype, "SummonUnAvailableView", void 0), i([H(cc.RichText)], t.prototype, "UnAvailableTimeRichText", void 0), i([H(cc.RichText)], t.prototype, "RuleTipSecondLineRichText", void 0), i([H(cc.Node)], t.prototype, "BottomView", void 0), i([H(cc.Button)], t.prototype, "ReturnButton", void 0), i([H(cc.Button)], t.prototype, "ItemGetWayButton", void 0), i([H(cc.Label)], t.prototype, "ItemGetWayButtonLabel", void 0), i([H(cc.Button)], t.prototype, "GiftPackButton", void 0), i([H(cc.Label)], t.prototype, "GiftPackButtonLabel", void 0), i([H(cc.Button)], t.prototype, "StarPieceGiftPackButton", void 0), i([H(cc.Label)], t.prototype, "StarPieceGiftPackButtonLabel", void 0), i([H(cc.Node)], t.prototype, "SummonSuccessView", void 0), i([H(cc.Node)], t.prototype, "SuccessViewAniContainer", void 0), i([H(cc.Sprite)], t.prototype, "SuccessViewTipContainer", void 0), i([H(cc.RichText)], t.prototype, "SuccessViewTipRichText", void 0), i([H(cc.Button)], t.prototype, "SuccessBackButton", void 0), i([H(cc.Label)], t.prototype, "SuccessBackButtonLabel", void 0), i([H(S.default)], t.prototype, "SuccessViewCurrencyBar", void 0), i([H(cc.Button)], t.prototype, "SuccessViewDrawAgainButton", void 0), i([H(cc.Label)], t.prototype, "SuccessViewDrawAgainButtonLabel", void 0), i([H(cc.Node)], t.prototype, "CurrentHeroTimeLeftView", void 0), i([H(cc.RichText)], t.prototype, "CurrentHeroTimeLeftRichText", void 0), i([H(cc.Sprite)], t.prototype, "ShortCutSprite", void 0), i([H(cc.Node)], t.prototype, "BgMaskNode", void 0), i([H(cc.Node)], t.prototype, "OutOfTimeWordSprite", void 0), i([H(cc.Node)], t.prototype, "DescriptionImageNode", void 0), i([H(cc.Button)], t.prototype, "RankRewardButton", void 0), i([H(cc.Label)], t.prototype, "RankRewardButtonLabel", void 0), i([H(cc.Node)], t.prototype, "ProgressBarNode", void 0), i([H(U.default)], t.prototype, "ProgressBar", void 0), i([H(cc.Label)], t.prototype, "ProgressBarLabel", void 0), i([H(sp.Skeleton)], t.prototype, "ChestAni", void 0), i([H(cc.Button)], t.prototype, "ChestButton", void 0), i([H(cc.Node)], t.prototype, "AutoSummonNode", void 0), i([H(cc.Layout)], t.prototype, "ButtonLayout", void 0), i([H(cc.Button)], t.prototype, "AutoBtn", void 0), i([H(cc.Label)], t.prototype, "AutoBtnLabel", void 0), i([H(S.default)], t.prototype, "CurrencyBarAuto", void 0), i([H(cc.Button)], t.prototype, "UpStarGiftBtn", void 0), i([H(cc.Label)], t.prototype, "UpStarGiftBtnLabel", void 0), i([H(sp.Skeleton)], t.prototype, "PanelSpineLoop", void 0), i([H(sp.Skeleton)], t.prototype, "PanelSpineOnce", void 0), n = i([x], t)
        }(h.BaseUIFullScreenPanel);
        n.default = F, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/SmallRankListComponent": "SmallRankListComponent",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./ChaosElementEffectPanel": "ChaosElementEffectPanel",
        "./CommonRatePanel": "CommonRatePanel",
        "./DisplayRewardsPanel": "DisplayRewardsPanel",
        "./PersonalSummonCardComponent": "PersonalSummonCardComponent",
        "./QueenSummonPanel": "QueenSummonPanel",
        "./SpecialCast": "SpecialCast",
        "./TrialHeroPanel": "TrialHeroPanel",
        "./WinnerInfoShow": "WinnerInfoShow"
    }],
    ChaosSummonRankRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "50700Tg/mBLhJnr0WiqOp/5", "ChaosSummonRankRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CustomLayout"),
            g = e("../Components/ItemComponent"),
            m = e("./NodePool"),
            I = e("./PRRewardListItem"),
            _ = e("../../../ShareConsts/EnumType"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1, !1, !0), t.Title = null, t.RuleTipLable = null, t.NoRankLabel = null, t.View = null, t.BottomListItem = null, t.RuleButton = null, t.MyRankTitleLabel = null, t._myRank = -1, t._initLayout = !0, t._configs = [], t.RENK_RANGE_NUMBER = 100, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent), this.LoadDynamicAsset("PersonalityCallPanel/Components/PRRewardListItem")]).then(function(t) {
                                        e._itemPool = new m.default(t[0]), e._singlePrefab = t[1]
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "elementTrial_rank_reward".ToUILocale(), this.MyRankTitleLabel.string = "elementTrial_myRank".ToUILocale(), this.NoRankLabel.string = "openServer_heroTest_noRatingYet".ToUILocale(), this.RuleTipLable.string = "ChaosSummonRankReward_RuleTip".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this);
                    var t = p.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, _.LevelParamType.ChaosSummonRankReward);
                    this.rewardInfos = t.Data2
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._myRank = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._initLayout && (this.View.Init(this._singlePrefab), this._initLayout = !1), this.View.RenderLayOut(this.rewardInfos.length), this.BottomListItem.SetItems(this.GetMyRankRewards(), this._itemPool).SetLevel(this._myRank)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n, o = this;
                    t == this.View && e.forEach(function(e, t) {
                        var r = 0;
                        t < o.rewardInfos.length - 1 ? o.rewardInfos[t].Items[0] > 3 && (r = o.rewardInfos[t + 1].Items[0] - 1, n = o.rewardInfos[t].Items[0] + "-" + r) : n = o.rewardInfos[t].Items[0] + "-" + o.RENK_RANGE_NUMBER;
                        var i = o.GetRewardIntArray(o.rewardInfos[t]);
                        e.getComponent(I.default).SetItems(i, o._itemPool).SetLevel(o.rewardInfos[t].Items[0]).SetTagLabel(n)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "errorCOntainer" == t.parent.name && f.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "elementTrial_rank_reward".ToUILocale(),
                        titles: ["personalityCall_rewards_RuleSubtitle".ToUILocale()],
                        contents: ["ChaosSummon_rewards_RuleText".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.GetRewardIntArray = function(e) {
                    for (var t = [], n = 1; n < e.Items.length;) {
                        var o = new l.IntArray;
                        o.Items[0] = e.Items[n], o.Items[1] = e.Items[n + 1], t.push(o), n += 2
                    }
                    return t
                }, t.prototype.GetMyRankRewards = function() {
                    if (this._myRank <= 0) return this.NoRankLabel.node.active = !0, null;
                    this.NoRankLabel.node.active = !1;
                    for (var e = 0; e < this.rewardInfos.length; e++) {
                        var t;
                        if (t = e < this.rewardInfos.length - 1 ? this.rewardInfos[e + 1].Items[0] : this.RENK_RANGE_NUMBER, !(this._myRank >= t)) return this.GetRewardIntArray(this.rewardInfos[e])
                    }
                    return this.NoRankLabel.node.active = !0, null
                }, t.prototype.onDestroy = function() {
                    var e;
                    null === (e = this._itemPool) || void 0 === e || e.Clear()
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Label)], t.prototype, "RuleTipLable", void 0), i([b(cc.Label)], t.prototype, "NoRankLabel", void 0), i([b(y.default)], t.prototype, "View", void 0), i([b(I.default)], t.prototype, "BottomListItem", void 0), i([b(cc.Button)], t.prototype, "RuleButton", void 0), i([b(cc.Label)], t.prototype, "MyRankTitleLabel", void 0), i([v], t)
            }(c.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./NodePool": "NodePool",
        "./PRRewardListItem": "PRRewardListItem"
    }],
    ChaosTempleCultivateItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "92726uTJgREZYE2vCVz3Jf6", "ChaosTempleCultivateItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChaosTempleCultivateType = void 0;
        var a, s = e("./ItemComponent"),
            l = e("../../Components/Components"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Panel/HeroInfoPanel"),
            y = e("../Panel/StarPiecePanel"),
            g = e("../Panel/ElementTemplePanel"),
            m = e("./CustomProgressBar"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property;
        (function(e) {
            e[e.Hero = 0] = "Hero", e[e.Treasure = 1] = "Treasure", e[e.TotalCount = 2] = "TotalCount"
        })(a = n.ChaosTempleCultivateType || (n.ChaosTempleCultivateType = {}));
        var v = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ItemNode = null, t.StarLevelLabel = null, t.StarProgressBar = null, t.StarProgressLabel = null, t.CultivateCompletedIconNode = null, t.CultivateGoButton = null, t.CultivateGoButtonLabel = null, t.CultivateCompletedLabel = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.CultivateGoButtonLabel.string = "ChaosTemple_Cultivate_Go".ToUILocale(), this.CultivateCompletedLabel.string = "completed".ToUILocale(), this.CultivateGoButton.node.on("click", this.OnCultivateGoButtonClick, this)
            }, t.prototype.Init = function(e, t, n, o, r) {
                if (this._type = e, this._heroId = t, this._resonanceLevel = n, this._templeType = r, !this._itemComponent) {
                    var i = cc.instantiate(o);
                    i.setParent(this.ItemNode), this._itemComponent = i.getComponent(s.ItemComponent)
                }
                this.SetContainer()
            }, t.prototype.SetContainer = function() {
                var e, t = [];
                switch (this._templeType) {
                    case g.HeroTempleType.Chaos:
                        var n = l.ConfigDataComponent.Instance.GetConfigById(u.ChaosTemple_Config, this._heroId);
                        e = this._resonanceLevel >= n.ResonanceCondition.length ? n.ResonanceCondition.length - 1 : this._resonanceLevel, t = n.ResonanceCondition[e].Items;
                        break;
                    case g.HeroTempleType.Element:
                    case g.HeroTempleType.LR:
                        var o = l.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._heroId);
                        e = this._resonanceLevel >= o.ETResonance.length ? o.ETResonance.length - 1 : this._resonanceLevel;
                        var r = l.ConfigDataComponent.Instance.GetConfigById(u.ElementTempleResonance_Config, o.ETResonance[e]);
                        t[0] = r.HeroStar, t[1] = r.PersonalityStar, t[2] = r.WeaponStar
                }
                var i, p = l.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._heroId);
                switch (this._type) {
                    case a.Hero:
                        i = t[0], this._itemComponent.Init({
                            ItemId: this._heroId,
                            StarLevel: p.MaxStar
                        }, s.ItemComponentType.HeroInfo), this.StarLevelLabel.string = "ChaosTemple_Cultivate_Hero_Limit".ToUILocale().Fmt(i), this.StarProgressBar.progress = p.MaxStar < i ? p.MaxStar / i : 1, this.StarProgressLabel.string = p.MaxStar + "/" + i, this.CultivateGoButton.node.active = p.MaxStar < i, this.CultivateCompletedIconNode.active = p.MaxStar >= i;
                        break;
                    case a.Treasure:
                        i = t[2];
                        var d = l.ConfigDataComponent.Instance.GetConfigById(u.ExclusiveWeapon_Config, this._heroId),
                            h = l.DataCenter.Instance.GetDataById(c.ExclusiveWeapon_Model, d.Id),
                            f = h ? h.Star : 0;
                        this._itemComponent.Init({
                            ItemId: d.ItemBaseId,
                            StarLevel: f
                        }, s.ItemComponentType.ItemCommon), this.StarLevelLabel.string = "ChaosTemple_Cultivate_Treasure_Limit".ToUILocale().Fmt(i), this.StarProgressBar.progress = f < i ? f / i : 1, this.StarProgressLabel.string = f + "/" + i, this.CultivateGoButton.node.active = f < i, this.CultivateCompletedIconNode.active = f >= i
                }
            }, t.prototype.OnCultivateGoButtonClick = function() {
                switch (this._type) {
                    case a.Hero:
                        this._heroSid || this.SetHeroSid(), d.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroInfoPanel.Path, this._heroSid, void 0, f.Tab.UpStar);
                        break;
                    case a.Treasure:
                        d.UIManager.Instance.ShowUIPanel(h.PanelConfig.StarPieceOperatePanel.Path, this._heroId, 2, y.StarTemplePieceType.Exclusive)
                }
            }, t.prototype.SetHeroSid = function() {
                for (var e = p.DataCenter.Instance.GetDataList(c.UserHero_Model), t = 0, n = 0; n < e.length; n++) {
                    var o = e[n];
                    o.HeroId == this._heroId && o.StarLevel > t && (t = o.StarLevel, this._heroSid = o.Sid)
                }
            }, i([C(cc.Node)], t.prototype, "ItemNode", void 0), i([C(cc.Label)], t.prototype, "StarLevelLabel", void 0), i([C(m.default)], t.prototype, "StarProgressBar", void 0), i([C(cc.Label)], t.prototype, "StarProgressLabel", void 0), i([C(cc.Node)], t.prototype, "CultivateCompletedIconNode", void 0), i([C(cc.Button)], t.prototype, "CultivateGoButton", void 0), i([C(cc.Label)], t.prototype, "CultivateGoButtonLabel", void 0), i([C(cc.Label)], t.prototype, "CultivateCompletedLabel", void 0), i([_], t)
        }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Panel/ElementTemplePanel": "ElementTemplePanel",
        "../Panel/HeroInfoPanel": "HeroInfoPanel",
        "../Panel/StarPiecePanel": "StarPiecePanel",
        "./CustomProgressBar": "CustomProgressBar",
        "./ItemComponent": "ItemComponent"
    }],
    ChaosTempleUpSuccessAttrItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "029b4DC9Q9J5ZtTpJRQfill", "ChaosTempleUpSuccessAttrItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Name = null, t.CurrentValue = null, t.ArrowIconNode = null, t.NextValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this.Icon.spriteFrame = e, this.Name.string = t, this.CurrentValue.string = n, this.ArrowIconNode.active = !!o, this.NextValue.node.active = !!o, o && (this.NextValue.string = o)
                }, i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([l(cc.Label)], t.prototype, "Name", void 0), i([l(cc.Label)], t.prototype, "CurrentValue", void 0), i([l(cc.Node)], t.prototype, "ArrowIconNode", void 0), i([l(cc.Label)], t.prototype, "NextValue", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    ChatPosterItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1af24ABC2dO66hY+pL8DnD0", "ChatPosterItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("./AssaultOperationModel"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/Components"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Icon = null, t.Title = null, t.GotoBtn = null, t.GotoBtnLabel = null, t.Atlas = null, t
                }
                var n;
                return r(t, e), n = t, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return n.Pool.size() > 0 ? (e = n.Pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = t.sent(), t.label = 3;
                                case 3:
                                    return [2, e.getComponent(n)]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    n.Pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.Pool.put(e[t])
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != n.PrefabAsset ? [3, 2] : (e = n, [4, c.AssetsManager.Instance.LoadAsset(n.PrefabPathName)]);
                                case 1:
                                    e.PrefabAsset = t.sent(), t.label = 2;
                                case 2:
                                    return n.PrefabAsset ? [2, cc.instantiate(n.PrefabAsset)] : [2, null]
                            }
                        })
                    })
                }, t.prototype.Init = function(e) {
                    var t;
                    switch (this._isInit || (this._isInit = !0, this.GotoBtnLabel.string = "assaultOperation_goHelp".ToUILocale(), this.GotoBtn.node.on("click", this.OnGotoBtnClick, this)), this._message = e, e.Type) {
                        case u.ChatMessageType.AssaultOperationSupport:
                            var n = e.IntParams[0];
                            t = n.ToAssualtOperationResourceName();
                            var o = g.ConfigDataComponent.Instance.GetConfigById(y.AssaultOperationResourceItem_Config, n),
                                r = f.AssaultOperationModel.GetResourceTypeIcon(o.Type);
                            this.Icon.spriteFrame = this.Atlas.getSpriteFrame("building_" + r)
                    }
                    this.Title.string = t
                }, t.prototype.OnGotoBtnClick = function() {
                    switch (this._message.Type) {
                        case u.ChatMessageType.AssaultOperationSupport:
                            if (!c.UIManager.Instance.GetUIPanel(p.PanelConfig.AssaultOperationMapPanel.Path)) return h.UIUtlity.ShowFloatingHint("assault_notEnterMap".ToUILocale());
                            var e = this._message.IntParams[0];
                            return c.UIManager.Instance.CloseUIPanel(p.PanelConfig.ChattingMainPanel.Path), void l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_ASSAULT_OPERATION_MAP, e)
                    }
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.Pool.clear()
                }, t.UnloadAsset = function() {
                    n.PrefabAsset && (c.AssetsManager.Instance.UnloadAsset(n.PrefabAsset), n.PrefabAsset = null)
                }, t.Pool = new cc.NodePool, t.PrefabPathName = "Chatting/Private/ChatPosterItem", i([_(cc.Sprite)], t.prototype, "Bg", void 0), i([_(cc.Sprite)], t.prototype, "Icon", void 0), i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Button)], t.prototype, "GotoBtn", void 0), i([_(cc.Label)], t.prototype, "GotoBtnLabel", void 0), i([_(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), n = i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AssaultOperationModel": "AssaultOperationModel"
    }],
    ChatWindowItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2fb53mRyINFkZwplNt3VNsw", "ChatWindowItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/ConfigData/ConfigDataComponent"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.AttrNodeParent = null, t.AttrNodes = [], t.DescLabel = null, t.SelectBg = null, t.UsedFlag = null, t.UsedLabel = null, t.Mask = null, t.RedDot = null, t._loadedAssets = [], t._chatWindowConfig = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
                }, t.prototype.SetUI = function(e) {
                    this._chatWindowId = e, this._isInit || (this.LoadConfig(), this.UsedLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale(), this._isInit = !0), this.SetIcon(), this.SetDescLabel(), this.SetAttrInfo()
                }, t.prototype.OnTouchNode = function() {
                    l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_ITEM_CLICK, Number.parseInt(this.node.name), this.node)
                }, t.prototype.LoadConfig = function() {
                    this._chatWindowConfig = u.ConfigDataComponent.Instance.GetConfigById(c.ChatWindow_Config, this._chatWindowId)
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = p.default.Instance.GetItemPathById(this._chatWindowId), [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._loadedAssets.push(t), this.Icon.spriteFrame = t, this.Icon.node.active = !0, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetUsedFlag = function(e) {
                    this.UsedFlag.active = e
                }, t.prototype.SetSelect = function(e) {
                    this.SelectBg.active = e
                }, t.prototype.SetMask = function(e) {
                    this.Mask.active = e
                }, t.prototype.SetAttrInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return (e = u.ConfigDataComponent.Instance.GetConfigById(c.ChatWindow_Config, this._chatWindowId)) ? (this.AttrNodeParent.active = e.Attrs.length > 0, this.AttrNodes.forEach(function(t, n) {
                                if (t.active = !1, e.Attrs[n]) {
                                    t.active = !0;
                                    var o = t.getChildByName("Icon").getComponent(cc.Sprite),
                                        r = t.getChildByName("Tag").getComponent(cc.Label),
                                        i = t.getChildByName("Value2").getComponent(cc.Label),
                                        a = e.Attrs[n].Items[0],
                                        s = e.Attrs[n].Items[1],
                                        l = p.default.GetHeroAttribute(a, s);
                                    l && (o.spriteFrame = l.Icon, r.string = l.Name, i.string = "+" + l.Value)
                                }
                            })) : this.AttrNodeParent.active = !1, [2]
                        })
                    })
                }, t.prototype.SetDescLabel = function() {
                    this.DescLabel.string = this._chatWindowId.ToItemDesc()
                }, t.prototype.SetRedDot = function(e) {
                    this.RedDot.active = e
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([y(cc.Sprite)], t.prototype, "Icon", void 0), i([y(cc.Node)], t.prototype, "AttrNodeParent", void 0), i([y(cc.Node)], t.prototype, "AttrNodes", void 0), i([y(cc.Label)], t.prototype, "DescLabel", void 0), i([y(cc.Node)], t.prototype, "SelectBg", void 0), i([y(cc.Node)], t.prototype, "UsedFlag", void 0), i([y(cc.Label)], t.prototype, "UsedLabel", void 0), i([y(cc.Node)], t.prototype, "Mask", void 0), i([y(cc.Node)], t.prototype, "RedDot", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent"
    }],
    ChattingCommonDefines: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5aa43zwkqBAgqxBIKGq8cQO", "ChattingCommonDefines"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChannelNameUILocaleKey = n.TagSpriteName = n.ChattingFontColor = void 0;
        var o = function() {
            function e() {}
            return e.textInLightBackground = new cc.Color(98, 228, 60), e.textInDarkBackground = new cc.Color(255, 255, 255), e.playerInLightBackground = new cc.Color(178, 136, 80), e.playerInDarkBackground = new cc.Color(254, 217, 74), e.stageInLightBackground = new cc.Color(235, 97, 0), e.stageInDarkBackground = new cc.Color(235, 97, 0), e
        }();
        n.ChattingFontColor = o;
        var r = function() {
            function e() {}
            return e.ToName = function(e) {
                return this.array[e]
            }, e.array = ["", "tag-system", "tag-private", "tag-alliance", "tag-world", "tag-cc", "tag-cc"], e
        }();
        n.TagSpriteName = r;
        var i = function() {
            function e() {}
            return e.ToKey = function(e) {
                return this.array[e]
            }, e.array = ["", "chatting_chSys", "chatting_chPrivate", "guild", "chatting_chWorld", "chatting_chCS", "chatting_chBossHunt", "chatting_activity"], e
        }();
        n.ChannelNameUILocaleKey = i, cc._RF.pop()
    }, {}],
    ChattingLeftSideMessageItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d9d549BV2xEvYGwK7oBRt+l", "ChattingLeftSideMessageItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("./ChattingMainPanel"),
            h = e("../../UI/Components/HeadComponent"),
            f = e("../../../Consts/Consts"),
            y = e("../../Components/DataCenter"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Components/RpcComponent"),
            I = e("../../../../Proto/Static/RpcProto"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../../Components/GlobalConfigComponent"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("./ChatPosterItem"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pName = null, t.pExtraInfo = null, t.pContent = null, t.pTagContent = null, t.pTagBg = null, t.pTagName = null, t.pHeadComponentRoot = null, t.pHeadButton = null, t.TranslateBtn = null, t.TranslateNode = null, t.TranslateSplitLine = null, t.TransLateInfo = null, t.EmojiSprite = null, t.DesignationSprite = null, t.QuoteNode = null, t.VerticalLineNode = null, t.QuoteName = null, t.QuoteContent = null, t.Line1Node = null, t.Line2Node = null, t.RecoverButton = null, t.RecoverButtonBg = null, t.RecoverLabel = null, t.MessageContentFrame = null, t.MessageContentBg = null, t.MessageArrow = null, t.DefaultMessageBg = null, t.DefaultMessageArrow = null, t.PosterNode = null, t.OffsetChatWindowX = 23, t.originalY = 9999, t._touchTime = 0, t._isAtMe = !1, t._headTouchTime = 0, t._chatWinId = 0, t._loadAssets = [], t.index = -1, t.ts = 0, t.extraInfoId = 0, t.playerUid = 0, t.headComponent = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_CHECK_BUNDINGBOX, this.checkVisible, this), this.node.on(cc.Node.EventType.TOUCH_START, this.OnTouchStart, this), this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchCancel, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CHECK_BUNDINGBOX, this.checkVisible, this), this.node.off(cc.Node.EventType.TOUCH_START, this.OnTouchStart, this), this.node.off(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchCancel, this), this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouch, this), this.unscheduleAllCallbacks()
                }, t.prototype.onLoad = function() {
                    this.RecoverLabel.string = "chat_recover".ToUILocale(), this.RecoverButton.node.on("click", this.ClickRecoverButton, this), this._color1 = new cc.Color(255, 255, 255), this._color2 = new cc.Color(98, 78, 60), this._color3 = new cc.Color(174, 168, 129), this._color4 = new cc.Color(19, 125, 206)
                }, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = o.sent(), o.label = 3;
                                case 3:
                                    return (t = e.getComponent(n)).InitNodesAndComponents(), [2, t]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    e.MessageType = void 0, e.PosterItem && (S.default.Put(e.PosterItem), e.PosterItem = null), n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear(), this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._color1 = null, this._color2 = null, this._color3 = null, this._color4 = null
                }, t.UnloadAsset = function() {
                    c.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null, c.AssetsManager.Instance.UnloadAsset(n.headComponentPrefab), n.headComponentPrefab = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, c.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = i.sent(), i.label = 2;
                                case 2:
                                    return null != n.headComponentPrefab ? [3, 4] : (t = n, [4, c.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadComponent, cc.Prefab)]);
                                case 3:
                                    t.headComponentPrefab = i.sent(), i.label = 4;
                                case 4:
                                    return n.prefabAsset ? (o = cc.instantiate(n.prefabAsset), (r = o.getComponent(n)).headComponent = cc.instantiate(n.headComponentPrefab).getComponent(h.default), r.headComponent.node.setParent(r.pHeadComponentRoot), r.headComponent.node.setScale(.93), r.headComponent.node.setPosition(72, -72), r.pTagName.string = "chatting_chWorld".ToUILocale(), r.pContent.node.on(cc.Node.EventType.TOUCH_END, r.OnClickContent.bind(r), this), r.TranslateBtn.node.on(cc.Node.EventType.TOUCH_END, r.OnClickTranslate.bind(r), this), r.pHeadButton.node.on(cc.Node.EventType.TOUCH_START, r.OnHeadTouchStart.bind(r), this), r.pHeadButton.node.on(cc.Node.EventType.TOUCH_CANCEL, r.OnHeadTouchCancel.bind(r), this), r.pHeadButton.node.on(cc.Node.EventType.TOUCH_END, r.OnHeadTouch.bind(r), this), [2, o]) : (u.EZLog.Debug("ok in LeftSideMessageItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {
                    switch (this.playerUid = 0, 9999 == this.originalY && (this.originalY = this.node.y), this.pContent.imageAtlas = d.default.singleton.emojiAtlas, this.TransLateInfo.imageAtlas = d.default.singleton.emojiAtlas, this.pHeadComponentRoot.active = !0, this.pTagBg.node.active = !1, d.default.singleton.currentChannel) {
                        case f.ChatChannelType.System:
                            this.TranslateBtn.node.active = !1;
                            break;
                        default:
                            var e = _.default.Instance.IsVNChannel();
                            this.TranslateBtn.node.active = !e
                    }
                }, t.prototype.SetTag = function(e, t) {
                    this.pTagContent.string = e, this.pTagBg.spriteFrame = t, this.pHeadComponentRoot.active = !1, this.pTagBg.node.active = !0
                }, t.prototype.SetHeadComponent = function(e, t, n) {
                    n ? this.headComponent.SetUI(e, t, n) : this.headComponent.SetUI(e, t), this.pHeadComponentRoot.active = !0, this.pTagBg.node.active = !1
                }, t.prototype.SetHeadComponentParam = function(e, t) {
                    this.headComponent.SetLevel(e), this.headComponent.SetCountry(t)
                }, t.prototype.SetChatWindowId = function(e) {
                    this._chatWinId = e, this.pContent.node.color = e > 0 ? this._color1 : this._color2, this.QuoteName.node.color = e > 0 ? this._color1 : this._color3, this.QuoteContent.node.color = e > 0 ? this._color1 : this._color3, this.TransLateInfo.node.color = e > 0 ? this._color1 : this._color2, this.RecoverLabel.node.color = e > 0 ? this._color1 : this._color4
                }, t.prototype.SetMessageContent = function(e, t, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i, a, l, c, u, p, h, g;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    switch (e.Type) {
                                        case f.ChatMessageType.AssaultOperationSupport:
                                            return this.PosterNode.active = !0, this.MessageContentFrame.active = !1, this.SetPosterItem(e), this.node.height = 275, [2]
                                    }
                                    return this.PosterNode.active = !1, this.MessageContentFrame.active = !0, this._quoteModel = null, this._isAtMe = !1, this._message = e, t ? (r = 0, this._chatWinId > 0 && (r = 2 * n.BoderChatWindowY), this.TranslateBtn.node.active = !1, this.EmojiSprite.spriteFrame = t, i = n.MinContentWidth - 20, this.MessageContentFrame.width = i + 30, this.MessageContentFrame.height = i + 20, this.EmojiSprite.node.width = i, this.EmojiSprite.node.height = i, this.EmojiSprite.node.x = .5 * i + 15, this.EmojiSprite.node.y = -.5 * i - 10, this.node.height = this.EmojiSprite.node.height + Math.abs(this.MessageContentFrame.parent.y) + d.default.messageItemGap + 40 + r, this.EmojiSprite.node.active = !0, this.pContent.node.active = !1, [4, this.SetMessageBg()]) : [3, 2];
                                case 1:
                                    return s.sent(), a = this.MessageContentFrame.width, l = this.MessageContentFrame.height, c = n.GetShowSize(a, l, this._chatWinId), this.SetMessageNode(c), [2];
                                case 2:
                                    if (o && (e.Quote && (this._quoteModel = o.find(function(t) {
                                            return t._id == e.Quote
                                        })), (u = e.Content.indexOf("@")) > -1 && u < e.Content.length - 1)) {
                                        for (p = "", h = !1, g = u + 1; g < e.Content.length; g++) {
                                            if (" " == e.Content[g]) {
                                                h = !0;
                                                break
                                            }
                                            p += e.Content[g]
                                        }
                                        h && p.length > 0 && p == y.DataCenter.Instance.GetStringData(f.UserDataKey.RoleName) && (this._isAtMe = !0)
                                    }
                                    return this.QuoteNode.active = !1, this.Line1Node.active = !1, this.RecoverButton.node.active = !1, this.EmojiSprite.node.active = !1, this.pContent.node.active = !0, this.pContent.string = e.Content, this.TranslateNode.opacity = 0, this._showMaxWidth = this._chatWinId > 0 ? d.default.maxMessageWidth - 2 * n.BoderChatWindowX : d.default.maxMessageWidth, [4, this.SetMessageBg()];
                                case 3:
                                    return s.sent(), this.Line1Node.width = this._chatWinId > 0 ? d.default.maxMessageWidth - 2 * n.BoderChatWindowX : d.default.maxMessageWidth, this.Line2Node.width = this._chatWinId > 0 ? d.default.maxMessageWidth - 2 * n.BoderChatWindowX : d.default.maxMessageWidth, this.Line1Node.getComponent(cc.Sprite).spriteFrame = (this._chatWinId, v.UIUtlity.COMMON_ATLAS4.getSpriteFrame("line4")), this.Line2Node.getComponent(cc.Sprite).spriteFrame = (this._chatWinId, v.UIUtlity.COMMON_ATLAS4.getSpriteFrame("line4")), this._quoteModel || this._isAtMe ? this._quoteModel ? (this.pContent.node.getComponent(cc.Widget).enabled = !1, this.QuoteNode.active = !0, this.Line1Node.active = !1, this.RecoverButton.node.active = this._isAtMe, this.QuoteName.string = this._quoteModel.Sender.Name + ":", this.QuoteContent.string = this._quoteModel.Content, this.QuoteContent.maxWidth = this._showMaxWidth - 20, this.pContent.maxWidth = this._showMaxWidth, this.VerticalLineNode.height = this.QuoteName.node.height + this.QuoteContent.node.height - 5, this.QuoteNode.height = this.QuoteName.node.height + this.QuoteContent.node.height - 5, this.SetMessageSize3()) : (this.RecoverButton.node.active = !0, this.pContent.maxWidth = this._showMaxWidth, this.pContent.node.getComponent(cc.Widget).enabled = !0, this.SetMessageSize2()) : (this.pContent.node.getComponent(cc.Widget).enabled = !0, this.pContent.maxWidth = e.MsgWidth > this._showMaxWidth ? this._showMaxWidth : 0, this.SetMessageSize()), [2]
                            }
                        })
                    })
                }, t.prototype.SetPosterItem = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.PosterItem ? [3, 2] : (t = this, [4, S.default.Get()]);
                                case 1:
                                    if (t.PosterItem = n.sent(), this.PosterItem.node.setParent(this.PosterNode), !this.isValid) return [2];
                                    n.label = 2;
                                case 2:
                                    return this.PosterItem.Init(e), [2]
                            }
                        })
                    })
                }, t.prototype.SetMessageBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._chatWinId > 0 ? [4, Promise.all([l.AssetsManager.Instance.LoadAsset("Chatting/ChatWindows/bg_" + this._chatWinId, cc.SpriteFrame), l.AssetsManager.Instance.LoadAsset("Chatting/ChatWindows/arrow_" + this._chatWinId, cc.SpriteFrame)]).then(function(o) {
                                        if (e = o[0], t = o[1], !n.isValid) return l.AssetsManager.Instance.UnloadAsset(e), void l.AssetsManager.Instance.UnloadAsset(t)
                                    })] : [3, 2];
                                case 1:
                                    return o.sent(), this._loadAssets.push(e), this._loadAssets.push(t), this.MessageContentBg.spriteFrame = e, this.MessageArrow.spriteFrame = t, [3, 3];
                                case 2:
                                    this.MessageContentBg.spriteFrame = this.DefaultMessageBg, this.MessageContentBg.spriteFrame = this.DefaultMessageBg, this.MessageArrow.spriteFrame = this.DefaultMessageArrow, o.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.GetShowSize = function(e, t, o) {
                    var r, i;
                    return o > 0 ? (t += 2 * n.BoderChatWindowY, r = (e += 2 * n.BoderChatWindowX) < n.ChatWindowLimitWidth ? n.ChatWindowLimitWidth : e, i = t < n.ChatWindowLimitHeight ? n.ChatWindowLimitHeight : t) : (r = e, i = t), [r, i]
                }, t.prototype.SetMessageSize = function(e) {
                    void 0 === e && (e = 0);
                    var t = this.pContent.node.width + d.default.messageContentPaddingHorizontal,
                        o = this.pContent.node.height + d.default.messageContentPaddingVertical + e,
                        r = n.GetShowSize(t, o, this._chatWinId);
                    this.SetMessageNode(r);
                    var i = 0;
                    this._chatWinId > 0 && (i = 2 * n.BoderChatWindowY), this.node.height = this.pContent.node.height + e + Math.abs(this.MessageContentFrame.parent.y) + d.default.messageItemGap + 40 + i, this.pContent.node.getComponent(cc.Widget).updateAlignment(), this.TranslateBtn.node.getComponent(cc.Widget).updateAlignment(), this.pContent.node.y = -10, this.TranslateNode.width = this.TransLateInfo.node.width, this.TranslateNode.height = this.TransLateInfo.node.height + 7, this.TranslateNode.x = 0, this.TranslateNode.y = this.pContent.node.y - this.pContent.node.height - 15, this.TranslateSplitLine.width = this.MessageContentFrame.width - 20 - 20
                }, t.prototype.SetMessageSize2 = function(e) {
                    void 0 === e && (e = 0);
                    var t = this.pContent.node.width + d.default.messageContentPaddingHorizontal,
                        o = this.pContent.node.height + this.RecoverButton.node.height + d.default.messageContentPaddingVertical + e,
                        r = n.GetShowSize(t, o, this._chatWinId);
                    this.SetMessageNode(r);
                    var i = 0;
                    this._chatWinId > 0 && (i = 2 * n.BoderChatWindowY), this.node.height = this.pContent.node.height + this.RecoverButton.node.height + e + Math.abs(this.MessageContentFrame.parent.y) + d.default.messageItemGap + 40 + i, this.pContent.node.getComponent(cc.Widget).updateAlignment(), this.TranslateBtn.node.getComponent(cc.Widget).updateAlignment(), this.pContent.node.y = -10, this.TranslateNode.width = this.TransLateInfo.node.width, this.TranslateNode.height = this.TransLateInfo.node.height + 7, this.TranslateNode.x = 0, this.TranslateNode.y = this.pContent.node.y - this.pContent.node.height - 15, this.TranslateSplitLine.width = this.MessageContentFrame.width - 20 - 20, this.RecoverButton.node.width = this.RecoverLabel.node.width, this.RecoverButton.node.x = this.MessageContentBg.node.x + this.MessageContentBg.node.width / 2 - this.RecoverButton.node.width / 2, this.RecoverButton.node.y = this.pContent.node.y - this.pContent.node.height - 15, 255 == this.TranslateNode.opacity && (this.RecoverButton.node.y -= this.TranslateNode.height + 7 + 15), this.RecoverButtonBg.node.width = Math.max(this.MessageContentBg.node.width, 256), this.RecoverButtonBg.node.x = 0 + this.RecoverButton.node.width / 2 - this.RecoverButtonBg.node.width / 2
                }, t.prototype.SetMessageSize3 = function(e) {
                    void 0 === e && (e = 0);
                    var t = this._isAtMe ? this.RecoverButton.node.height : 0,
                        o = this.pContent.node.width + d.default.messageContentPaddingHorizontal,
                        r = this.QuoteNode.height + this.Line1Node.height + this.pContent.node.height + t + e + d.default.messageContentOffset + d.default.messageContentPaddingVertical,
                        i = n.GetShowSize(o, r, this._chatWinId);
                    this.SetMessageNode(i);
                    var a = 0;
                    this._chatWinId > 0 && (a = 2 * n.BoderChatWindowY), this.node.height = this.QuoteNode.height + this.Line1Node.height + this.pContent.node.height + t + e + d.default.messageContentOffset + Math.abs(this.MessageContentFrame.parent.y) + d.default.messageItemGap + 40 + a, this.pContent.node.getComponent(cc.Widget).updateAlignment(), this.TranslateBtn.node.getComponent(cc.Widget).updateAlignment(), this.QuoteNode.x = this._chatWinId > 0 ? n.BoderChatWindowX : 20, this.pContent.node.y = this.QuoteNode.y - this.QuoteNode.height - 10, this.TranslateNode.width = this.TransLateInfo.node.width, this.TranslateNode.height = this.TransLateInfo.node.height + 7, this.TranslateNode.x = 0, this.TranslateNode.y = -this.pContent.node.height - 15, this.TranslateSplitLine.width = this.MessageContentFrame.width - 20 - 20, this.RecoverButton.node.width = this.RecoverLabel.node.width, this.RecoverButton.node.x = this.MessageContentBg.node.x + this.MessageContentBg.node.width / 2 - this.RecoverButton.node.width / 2, this.RecoverButton.node.y = this.pContent.node.y - this.pContent.node.height - 15, 255 == this.TranslateNode.opacity && (this.RecoverButton.node.y -= this.TranslateNode.height + 7 + 15), this.RecoverButtonBg.node.width = Math.max(this.MessageContentBg.node.width, 256), this.RecoverButtonBg.node.x = 0 + this.RecoverButton.node.width / 2 - this.RecoverButtonBg.node.width / 2
                }, t.prototype.SetMessageNode = function(e) {
                    this.MessageContentFrame.width = e[0], this.MessageContentFrame.width = Math.max(this.MessageContentFrame.width, 256), this.MessageContentFrame.height = e[1], this._chatWinId > 0 ? (this.MessageContentFrame.x -= this.OffsetChatWindowX, this.MessageArrow.node.y = n.ChatWindowArrowY, this.pContent.node.getComponent(cc.Widget).top = 32) : (this.MessageArrow.node.y = n.DefaultArrowY, this.pContent.node.getComponent(cc.Widget).top = 4), this.MessageContentBg.node.width = this.MessageContentFrame.width + 25, this.MessageContentBg.node.height = this.MessageContentFrame.height + 20
                }, t.prototype.ShowPlayerInfoPanel = function() {
                    this.playerUid > 0 && l.UIManager.Instance.ShowUIPanel(p.PanelConfig.PlayerInfoPanel.Path, this.playerUid)
                }, t.prototype.OnClickContent = function() {
                    switch (this.MessageType) {
                        case f.ChatMessageType.AllianceAdvertise:
                            var e = y.DataCenter.Instance.AllianceId > 0;
                            c.UIManager.Instance.ShowUIPanel(p.PanelConfig.AllianceDetailPanel.Path, this.extraInfoId, this, e);
                            break;
                        case f.ChatMessageType.CutPriceGift:
                            b.default.Instance.RequestCutPrice(this._message, this.playerUid, this.pName.string)
                    }
                }, t.prototype.SetMessageSizeType = function(e) {
                    void 0 === e && (e = 0), this._quoteModel || this._isAtMe ? this._quoteModel ? this.SetMessageSize3(e) : this.SetMessageSize2(e) : this.SetMessageSize(e)
                }, t.prototype.OnClickTranslate = function() {
                    var e = this;
                    this.TranslateNode.opacity = 255, this.SetMessageSizeType(80), this.TranslateSplitLine.width = this.MessageContentFrame.width - 20 - 20, this.TransLateInfo.string = "......", this.schedule(function() {
                        e.TransLateInfo.string.length >= 6 && (e.TransLateInfo.string = ""), e.TransLateInfo.string += "."
                    }, .3);
                    var t = new I.Req_Chat_G123Translate;
                    t.Content = this.pContent.string, t.Target = _.default.Instance.GetLocaleISOCodeByLocale(C.GlobalConfigComponent.Instance.Locale), m.RpcComponent.Instance.CallWithoutMask(t, function(t) {
                        e.unscheduleAllCallbacks(), e.TranslateNode.height = 65.7, e.TransLateInfo.string = t.Result;
                        var n = e.TransLateInfo.node.width,
                            o = Math.max(n, e.pContent.node.width);
                        o = Math.min(o, e._showMaxWidth), e.pContent.maxWidth = o, e.TransLateInfo.maxWidth = o, e.TranslateNode.height = e.TransLateInfo.node.height + 20, e.TranslateSplitLine.width = e.MessageContentFrame.width - 20 - 20, e.SetMessageSizeType(e.TranslateNode.height)
                    })
                }, t.prototype.checkVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.update = function(e) {
                    this._startTouch && (this._touchTime += e, this._touchTime > .5 && (this._isHoldItem = !0, this._startTouch = !1, this._touchTime = 0)), this._headStartTouch && (this._headTouchTime += e, this._headTouchTime > .5 && (this._isHeadHoldItem = !0, this._headStartTouch = !1, this._headTouchTime = 0))
                }, t.prototype.OnTouchStart = function() {
                    this._touchTime = 0, this._startTouch = !0
                }, t.prototype.OnTouchCancel = function() {
                    this._startTouch = !1, this._isHoldItem = !1, this._touchTime = 0
                }, t.prototype.OnTouch = function() {
                    this._startTouch = !1, this._touchTime = 0, this._isHoldItem && (this._isHoldItem = !1, l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_CHAT_HOLD, this.pName.string))
                }, t.prototype.OnHeadTouchStart = function() {
                    this._headTouchTime = 0, this._headStartTouch = !0
                }, t.prototype.OnHeadTouchCancel = function() {
                    this._headStartTouch = !1, this._isHeadHoldItem = !1, this._headTouchTime = 0
                }, t.prototype.OnHeadTouch = function() {
                    this._headStartTouch = !1, this._headTouchTime = 0, this._isHeadHoldItem ? (this._isHeadHoldItem = !1, l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_CHAT_HOLD, this.pName.string)) : this.ShowPlayerInfoPanel(null)
                }, t.prototype.ClickRecoverButton = function() {
                    l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_CHAT_RECOVER, this._message)
                }, t.classNameString = "LeftSideMessageItem", t.prefabPathName = "Chatting/Private/LeftSideMessageItem", t.ChatWindowLimitWidth = 240, t.ChatWindowLimitHeight = 160, t.BoderChatWindowX = 45, t.BoderChatWindowY = 28, t.DefaultArrowY = -25, t.ChatWindowArrowY = -62, t.headComponentPrefab = null, t.prefabAsset = null, t.pool = new cc.NodePool, t.MinContentWidth = 256, i([A(cc.Label)], t.prototype, "pName", void 0), i([A(cc.Label)], t.prototype, "pExtraInfo", void 0), i([A(cc.RichText)], t.prototype, "pContent", void 0), i([A(cc.Label)], t.prototype, "pTagContent", void 0), i([A(cc.Sprite)], t.prototype, "pTagBg", void 0), i([A(cc.Label)], t.prototype, "pTagName", void 0), i([A(cc.Node)], t.prototype, "pHeadComponentRoot", void 0), i([A(cc.Button)], t.prototype, "pHeadButton", void 0), i([A(cc.Button)], t.prototype, "TranslateBtn", void 0), i([A(cc.Node)], t.prototype, "TranslateNode", void 0), i([A(cc.Node)], t.prototype, "TranslateSplitLine", void 0), i([A(cc.RichText)], t.prototype, "TransLateInfo", void 0), i([A(cc.Sprite)], t.prototype, "EmojiSprite", void 0), i([A(cc.Sprite)], t.prototype, "DesignationSprite", void 0), i([A(cc.Node)], t.prototype, "QuoteNode", void 0), i([A(cc.Node)], t.prototype, "VerticalLineNode", void 0), i([A(cc.Label)], t.prototype, "QuoteName", void 0), i([A(cc.RichText)], t.prototype, "QuoteContent", void 0), i([A(cc.Node)], t.prototype, "Line1Node", void 0), i([A(cc.Node)], t.prototype, "Line2Node", void 0), i([A(cc.Button)], t.prototype, "RecoverButton", void 0), i([A(cc.Sprite)], t.prototype, "RecoverButtonBg", void 0), i([A(cc.Label)], t.prototype, "RecoverLabel", void 0), i([A(cc.Node)], t.prototype, "MessageContentFrame", void 0), i([A(cc.Sprite)], t.prototype, "MessageContentBg", void 0), i([A(cc.Sprite)], t.prototype, "MessageArrow", void 0), i([A(cc.SpriteFrame)], t.prototype, "DefaultMessageBg", void 0), i([A(cc.SpriteFrame)], t.prototype, "DefaultMessageArrow", void 0), i([A(cc.Node)], t.prototype, "PosterNode", void 0), n = i([P], t)
            }(cc.Component);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../../UI/Components/HeadComponent": "HeadComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ChatPosterItem": "ChatPosterItem",
        "./ChattingMainPanel": "ChattingMainPanel"
    }],
    ChattingMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "26c25DCOSlFyb4KRmD6dbFl", "ChattingMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../../../GamePlay/Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../../Consts/Consts"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("./ChattingCommonDefines"),
            C = e("./ChattingUnreadCounter"),
            v = e("./ChattingLeftSideMessageItem"),
            b = e("./ChattingRightSideMessageItem"),
            S = e("./ChattingMessageSeparatorItem"),
            w = e("./ChattingPrivateChannelItem"),
            P = e("../../Auxiliary/DataUtlity"),
            A = e("../../UI/Panel/ChattingMiniPanel"),
            T = e("../../Auxiliary/EventKeys"),
            R = e("../Components/StrongholdWarMiniChatting"),
            L = e("../Components/CustomLayout"),
            k = e("../Components/EmoticonToggleComponent"),
            O = e("../Components/EmoticonScrollComponent"),
            M = e("../../Auxiliary/GameRecord"),
            D = e("../../RedDot/RedDotManager"),
            B = e("./AssaultOperationChattingMiniPanel"),
            N = cc._decorator,
            E = N.ccclass,
            U = N.property;
        (function(e) {
            e[e.Emoji = 0] = "Emoji", e[e.Emoticon = 1] = "Emoticon"
        })(l || (l = {}));
        var G = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.pSettingsBtnText = null, t.pChannelNameLabels = [], t.pChannelNameOffLabels = [], t.pSendBtnText = null, t.pDefaultMessageText = null, t.pBackButton = null, t.pSettingsBtn = null, t.pChannelButtons = [], t.pPrivateContactBar = null, t.pPrivateContactScrollView = null, t.pPrivateContactScrollViewContent = null, t.pPrivateContactAddButton = null, t.pPrivateContactBarGhost = null, t.pPublicMessageScrollView = null, t.pPublicMessageScrollViewMask = null, t.pPublicMessageScrollViewContent = null, t.pPublicMessageScrollViewWidget = null, t.publicMessageScrollViewWidgetTopWhenInputBarDisplaying = 0, t.publicMessageScrollViewWidgetBottomWhenInputBarDisplaying = 0, t.pPrivateMessageScrollView = null, t.pPrivateMessageScrollViewMask = null, t.pPrivateMessageScrollViewContent = null, t.pPrivateMessageScrollViewWidget = null, t.pInputBarRootNode = null, t.pInputBarWidget = null, t.pSendButton = null, t.pEmojiButton = null, t.pMessageEditorBox = null, t.pEmojiView = null, t.pEmojiScrollView = null, t.pEmojiScrollViewContent = null, t.pNewMessageIndicatorButton = null, t.pNewMessageIndicatorArrow = null, t.ScrollViewEmoticon = null, t.EmoticonLayout = null, t.EmoToggleContainer = null, t.mainAtlas = null, t.emojiAtlas = null, t.multiLangAtlas = null, t.WaitLabel = null, t.QuoteNode = null, t.VerticalLineNode = null, t.QuoteLayout = null, t.QuoteName = null, t.QuoteContent = null, t.PaidEmojiScrollView = null, t.PaidEmojiScrollViewContent = null, t.shouldGotoChannelWorldOnStart = !1, t.shouldGotoChannelPrivateOnStart = !1, t.privateChattingPlayerInfo = null, t.channels = [], t.currentChannel = I.ChatChannelType.World, t.currentPrivateSessionPlayer = null, t.publicMessageSeparators = [], t.publicLeftHandSideMessages = [], t.publicRightHandSideMessages = [], t.publicLastMessageTimeStamp = 0, t.privateMessageSeparators = [], t.privateLeftHandSideMessages = [], t.privateRightHandSideMessages = [], t.privateLastMessageTimeStamp = 0, t.chattingPrivateChannelItems = [], t._toggleCompoents = [], t._chosenEmoticonId = 1, t.MAX_CHAT_COUNT = 100, t._pointCount = 0, t._isLoadCompelete = !1, t._curAtName = "", t.sysBroadCastLanguageKeyMap = new Map([
                    [11, "chatting_sysBroadcastCommonSummon"],
                    [12, "chatting_sysBroadcastProphetSummon"],
                    [13, "chatting_sysBroadcastTestTower"],
                    [14, "chatting_sysBroadcastAllianceAdvertise"],
                    [15, "chatting_sysBroadcastWishSummon"],
                    [16, "chatting_sysBroadcastNewHeroSummon"],
                    [17, "chatting_sysBroadcastCloudSummon"],
                    [18, "chatting_sysBroadcastPersonalSummon"]
                ]), t.inputBarRootNodeOriginalPositionY = 0, t.myRoleName = "", t._paidEmojiSprites = [], t._uiResized = !1, t._firstTimeSetPaidEmojiContent = !0, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(T.EventKeys.EVENT_SEND_EMOJI, this.SendEmoji, this), u.Game.EventDispatcher.On(T.EventKeys.EVENT_CHAT_HOLD, this.SetQuoteTarget, this), u.Game.EventDispatcher.On(T.EventKeys.EVENT_CHAT_RECOVER, this.SetChatRecover, this), u.Game.EventDispatcher.On(T.EventKeys.EVENT_PAID_EMOJI_REFRESH, this.RefreshToggles, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(T.EventKeys.EVENT_SEND_EMOJI, this.SendEmoji, this), u.Game.EventDispatcher.Off(T.EventKeys.EVENT_CHAT_HOLD, this.SetQuoteTarget, this), u.Game.EventDispatcher.Off(T.EventKeys.EVENT_CHAT_RECOVER, this.SetChatRecover, this), u.Game.EventDispatcher.Off(T.EventKeys.EVENT_PAID_EMOJI_REFRESH, this.RefreshToggles, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("Chatting/Private/EmoticonToggleComponent", cc.Prefab)];
                            case 1:
                                return t._emoticonToggle = n.sent(), [2]
                        }
                    })
                })
            }, t.TranslateEmojiCodePointToRichTextBBCodeAndGetWidth = function(e, t, o) {
                return a(this, void 0, void 0, function() {
                    var r, i, a, l, c, p, d, h, f, y;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return null != n.richtextForSizeTest ? [3, 2] : [4, b.default.Get()];
                            case 1:
                                (r = s.sent()).node.active = !0, r.node.setParent(u.UIManager.Instance.node), r.node.setPosition(999999, 999999), n.richtextForSizeTest = r.pContent, s.label = 2;
                            case 2:
                                for (i = n.SplitStringToArrayByCodePoint(t), o && (a = "<color=#fed94a>[" + o.Name + "]</color>", A.default.TranslateEmojiCodePointToRichTextBBCodeAndClampAtWidth(e, a, i, n.singleton.emojiAtlas), B.default.TranslateEmojiCodePointToRichTextBBCodeAndClampAtWidth(e, a, i, n.singleton.emojiAtlas), R.default.TranslateEmojiCodePointToRichTextBBCodeAndClampAtWidth(e, a, i, n.singleton.emojiAtlas)), l = 0, c = "", p = 0, d = i.length; p < d; ++p) h = i[p].codePointAt(0), null != (f = n.GetEmojiRichTextString(h)) && (y = f, i[p] = y), n.richtextForSizeTest.imageAtlas.loaded || (n.richtextForSizeTest.imageAtlas = n.singleton.emojiAtlas), n.richtextForSizeTest.string = i[p], c += i[p], l += n.richtextForSizeTest.node.width;
                                return [2, [l, c]]
                        }
                    })
                })
            }, t.TranslateEmojiCodePointToRichTextBBCodeAndClampAtWidth = function(e, t, o) {
                for (var r = n.SplitStringToArrayByCodePoint(t), i = 0, a = "", s = 0, l = r.length; s < l; ++s) {
                    var c = r[s].codePointAt(0),
                        u = n.GetEmojiRichTextString(c);
                    if (null != u) {
                        var p = u;
                        r[s] = p
                    }
                    if (e.string = r[s], a += r[s], (i += e.node.width) > o) {
                        a += "...";
                        break
                    }
                }
                return a
            }, t.prototype.InitNodesAndComponents = function() {
                this.channels.push(null);
                for (var e = 1, t = this.pChannelButtons.length; e < t; ++e) {
                    var n = this.pChannelButtons[e].node;
                    this.channels.push({
                        selectedBg: cc.find("Selected", n),
                        iconOn: cc.find("IconOn", n),
                        lock: cc.find("Locked", n),
                        unread: cc.find("UnreadCounter", n).getComponent(C.default),
                        opened: !0,
                        closeTip: "",
                        speakable: !0,
                        unspeakableTip: ""
                    })
                }
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.node.active = !0, this.channels[I.ChatChannelType.System].opened = !0, this.channels[I.ChatChannelType.System].closeTip = "", this.channels[I.ChatChannelType.System].speakable = !1, this.channels[I.ChatChannelType.System].unspeakableTip = "chatting_noTalkingInSystem".ToUILocale();
                var t, n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("PrivateChatUnlockLevel");
                t = !(h.DataCenter.Instance.GetIntData(d.UserDataKey.PlayerLevel) < n), this.channels[I.ChatChannelType.Private].opened = t, this.channels[I.ChatChannelType.Private].closeTip = "chatting_privateLocked".ToUILocale(), this.channels[I.ChatChannelType.Private].speakable = !0, this.channels[I.ChatChannelType.Private].unspeakableTip = "", this.channels[I.ChatChannelType.Alliance].opened = h.DataCenter.Instance.AllianceId > 0, this.channels[I.ChatChannelType.Alliance].closeTip = "chatting_privateNoAlliance".ToUILocale(), this.channels[I.ChatChannelType.Alliance].speakable = !0, this.channels[I.ChatChannelType.Alliance].unspeakableTip = "";
                var o = P.default.Instance.IsGameModuleUnlock(d.GameModuleType.WorldChatSend);
                this.channels[I.ChatChannelType.World].opened = !0, this.channels[I.ChatChannelType.World].closeTip = "", this.channels[I.ChatChannelType.World].speakable = o[0], this.channels[I.ChatChannelType.World].unspeakableTip = o[1];
                var r = P.default.Instance.IsGameModuleUnlock(d.GameModuleType.CrossZoneChat),
                    i = P.default.Instance.IsGameModuleUnlock(d.GameModuleType.CrossZoneChatSend);
                if (this.channels[I.ChatChannelType.CrossZone].opened = r[0], this.channels[I.ChatChannelType.CrossZone].closeTip = r[1], this.channels[I.ChatChannelType.CrossZone].speakable = i[0], this.channels[I.ChatChannelType.CrossZone].unspeakableTip = i[1], this.channels[I.ChatChannelType.BossHunt].opened = !1, this.channels[I.ChatChannelType.BossHunt].closeTip = "chatting_chBossHunt_notTeam".ToUILocale(), this.channels[I.ChatChannelType.BossHunt].speakable = !0, this.channels[I.ChatChannelType.BossHunt].unspeakableTip = "", this._activityChannelData && this._activityChannelData.ChannelTypeShowMap[I.ChatChannelType.BossHunt]) this.pChannelButtons[I.ChatChannelType.BossHunt].node.active = !0, this.channels[I.ChatChannelType.BossHunt].opened = this._activityChannelData.OpenStateMap[I.ChatChannelType.BossHunt];
                else if (this._activityChannelData) {
                    for (var a = 0; a < this.pChannelButtons.length; a++) this.pChannelButtons[a] && (this.pChannelButtons[a].node.active = !1);
                    for (var s in this._activityChannelData.ChannelTypeShowMap) this.pChannelButtons[s] && (this.pChannelButtons[s].node.active = !0), this._activityChannelData.OpenStateMap && null != this._activityChannelData.OpenStateMap[s] && (this.channels[s].opened = this._activityChannelData.OpenStateMap[s])
                } else this.pChannelButtons[I.ChatChannelType.AssaultOperation].node.active = !1;
                a = 1;
                for (var l = this.pChannelButtons.length; a < l; ++a) 0 == this.channels[a].opened ? this.ChannelLocked(a) : this.ChannelOff(a), this.UpdateChannelIGB(a);
                for (a = this.chattingPrivateChannelItems.length - 1; a >= 0; a--) {
                    var c = this.chattingPrivateChannelItems[a];
                    c.player && h.DataCenter.Instance.InMyBlackList(c.player.Uid) && (this.privateChattingPlayerInfo && this.privateChattingPlayerInfo.Uid == c.player.Uid && (this.privateChattingPlayerInfo = null), this.ClosePrivateSession(c.player, this.currentChannel == d.ChatChannelType.Private))
                }
                D.RedDotManager.Instance.Bind(this.pEmojiButton.node, D.RedDotManager.Instance.RedDot.EmojiButtonNode, 10, 10), 0 != this._uiResized && this.showChattingContent()
            }, t.prototype.showChattingContent = function() {
                this.defaultChannel ? this.ShowChannel(this.defaultChannel) : this.privateChattingPlayerInfo ? this.OpenOrCreatePrivateSession(this.privateChattingPlayerInfo, !0) : this.shouldGotoChannelWorldOnStart ? (this.shouldGotoChannelWorldOnStart = !1, this.ShowChannel(I.ChatChannelType.World)) : (this.ClearPublicMessageScrollViewContent(), this.ShowChannel(this.currentChannel))
            }, t.prototype.update = function() {
                if (this.pPublicMessageScrollView.isScrolling()) {
                    var e = this.pPublicMessageScrollView.getScrollOffset();
                    this.pPublicMessageScrollViewContent.height - this.pPublicMessageScrollViewContent.parent.height - e.y < 5 && (this.pNewMessageIndicatorButton.node.active = !1)
                }
                this.pPrivateMessageScrollView.isScrolling() && (e = this.pPrivateMessageScrollView.getScrollOffset(), this.pPrivateMessageScrollViewContent.height - this.pPrivateMessageScrollViewContent.parent.height - e.y < 5 && (this.pNewMessageIndicatorButton.node.active = !1))
            }, t.prototype.Dispose = function() {
                e.prototype.Dispose.call(this), n.singleton = null
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.publicMessageScrollViewWidgetTopWhenInputBarDisplaying = this.pPublicMessageScrollViewWidget.top, this.publicMessageScrollViewWidgetBottomWhenInputBarDisplaying = this.pPublicMessageScrollViewWidget.bottom, this.myRoleName = h.DataCenter.Instance.GetStringData(m.UserDataKey.RoleName), null == n.singleton && (this.shouldGotoChannelWorldOnStart = !0), n.singleton = this, this.inputBarRootNodeOriginalPositionY = this.pInputBarRootNode.position.y, this.InitNodesAndComponents(), this.pSettingsBtn.node.on("click", this.OpenSettingPanel.bind(this), this), this.pBackButton.node.on("click", this.LeavePanel.bind(this), this), this.pEmojiButton.node.on("click", this.OpenEmojiView.bind(this), this), this.pSendButton.node.on("click", this.OnClickSendButton.bind(this), this), this.pNewMessageIndicatorButton.node.on("click", this.OnClickGotoNewestMessageButton.bind(this), this), this.pPrivateContactAddButton.node.on("click", this.OnClickPrivateContactAddButton.bind(this), this), this.pMessageEditorBox.node.on("editing-did-ended", this.OnEditorBoxEndCallBack, this);
                for (var o = 1, r = this.pChannelButtons.length; o < r; ++o) this.pChannelButtons[o].node.on("click", this.OnClickChannelButton.bind(this), this);
                for (this.pSettingsBtnText.string = "chatting_settings".ToUILocale(), this.pSendBtnText.string = "chatting_sendBtn".ToUILocale(), this.pDefaultMessageText.string = "chatting_editorBoxDefaultText".ToUILocale(), this._fixStr = "chat_wait".ToUILocale(), this.WaitLabel.node.active = !1, o = 1, r = this.pChannelNameLabels.length; o < r; ++o) this.pChannelNameLabels[o].string = _.ChannelNameUILocaleKey.ToKey(o).ToUILocale();
                var i = this.pNewMessageIndicatorArrow.y,
                    a = cc.tween().to(.5, {
                        y: i - 40
                    }, {
                        easing: "cubicOut"
                    }),
                    s = cc.tween().to(0, {
                        y: i
                    });
                cc.tween(this.pNewMessageIndicatorArrow).sequence(a, s).repeatForever().start(), this.UpdatePrivateChatSessions(), this.scheduleOnce(function() {
                    t.ResizeScrollViews()
                }, .05), this.BuildEmojiIDToEmojiSetIDMap()
            }, t.prototype.OnScrolling = function() {
                this.pPrivateMessageScrollView.node.active ? u.Game.EventDispatcher.Emit(T.EventKeys.EVENT_CHECK_BUNDINGBOX, this.pPrivateMessageScrollViewRect) : u.Game.EventDispatcher.Emit(T.EventKeys.EVENT_CHECK_BUNDINGBOX, this.pPublicMessageScrollViewRect)
            }, t.prototype.ResizeScrollViews = function() {
                this.pPublicMessageScrollViewMask.height = this.pPublicMessageScrollView.node.height, this.pPrivateMessageScrollViewMask.height = this.pPrivateMessageScrollView.node.height;
                var e = this.pPublicMessageScrollView.node.getBoundingBoxToWorld();
                this.pPublicMessageScrollViewRect = new cc.Rect(e.x, e.y, this.pPublicMessageScrollView.node.width, this.pPublicMessageScrollView.node.height);
                var t = this.pPrivateMessageScrollView.node.getBoundingBoxToWorld();
                this.pPrivateMessageScrollViewRect = new cc.Rect(t.x, t.y, this.pPrivateMessageScrollView.node.width, this.pPrivateMessageScrollView.node.height), this.pPublicMessageScrollView.node.on("scrolling", this.OnScrolling, this), this.pPrivateMessageScrollView.node.on("scrolling", this.OnScrolling, this), this._uiResized = !0, this.showChattingContent()
            }, t.prototype.OnClickPrivateContactAddButton = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.ChattingPrivateContactListPanel.Path)
            }, t.TranslateEmojiIdToRichtextBBCode = function(e) {
                for (var t = "", o = 0, r = e.length; o < r;) {
                    var i = e.indexOf("xx", o);
                    if (i >= 0) {
                        var a = e.slice(i + 2, i + 4),
                            s = Number.parseInt(a);
                        Number.isInteger(s) && n.emojiIdMin <= s && s <= n.emojiIdMax ? (t += e.slice(o, i), t += "<img src='" + n.EmojiIdToSpriteName(s) + "'/>", o = i + 4) : (t += e.slice(o, i + 2), o = i + 2)
                    } else t += e.slice(o, r), o += r
                }
                return t
            }, t.prototype.OnClickSendButton = function() {
                if (0 != this.channels[this.currentChannel].speakable) {
                    var e = this.pMessageEditorBox.string;
                    if (0 != e.length) switch (this.currentChannel) {
                        case I.ChatChannelType.System:
                            break;
                        case I.ChatChannelType.Alliance:
                            (t = new p.Req_Chat_PublicChat).Content = e, t.Type = this.currentChannel, this._curQuoteMessage && (t.Quote = this._curQuoteMessage._id), h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatAllianceChat.bind(this));
                            break;
                        case I.ChatChannelType.World:
                            (t = new p.Req_Chat_PublicChat).Content = e, t.Type = this.currentChannel, this._curQuoteMessage && (t.Quote = this._curQuoteMessage._id), h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatWorldChat.bind(this));
                            break;
                        case I.ChatChannelType.CrossZone:
                            (t = new p.Req_Chat_PublicChat).Content = e, t.Type = this.currentChannel, this._curQuoteMessage && (t.Quote = this._curQuoteMessage._id), h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatCrossZoneChat.bind(this));
                            break;
                        case I.ChatChannelType.Private:
                            if (this.currentPrivateSessionPlayer) {
                                if (h.DataCenter.Instance.InMyBlackList(this.currentPrivateSessionPlayer.Uid)) return void f.UIUtlity.ShowFloatingHint("chatting_inBlacklist".ToUILocale());
                                (t = new p.Req_Chat_PrivateChat).Content = e, t.TargetUid = this.currentPrivateSessionPlayer.Uid, h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatPrivateChat.bind(this))
                            }
                            break;
                        case I.ChatChannelType.BossHunt:
                            (t = new p.Req_Chat_PublicChat).Content = e, t.Type = this.currentChannel, this._curQuoteMessage && (t.Quote = this._curQuoteMessage._id), h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatBossHuntChat.bind(this));
                            break;
                        case I.ChatChannelType.AssaultOperation:
                            var t;
                            (t = new p.Req_Chat_PublicChat).Content = e, t.Type = this.currentChannel, this._curQuoteMessage && (t.Quote = this._curQuoteMessage._id), h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatAssaultOperationChat.bind(this))
                    }
                } else f.UIUtlity.ShowFloatingHint(this.channels[this.currentChannel].unspeakableTip)
            }, t.prototype.OnReturnedFromReqChatPrivateChat = function(e) {
                h.DataCenter.Instance.AddPrivateChatMessage(e.Message, e.TargetInfo), this.InitQuoteData(), this.OnPrivateMessagesComing(e.Message, e.TargetInfo)
            }, t.prototype.OnReturnedFromReqChatAllianceChat = function(e) {
                h.DataCenter.Instance.AddPublicChatMessage(e.Msg), this.InitQuoteData(), this.OnPublicMessagesComing(e.Msg), A.default.OnPublicMessagesComing(e.Msg), this.defaultChannel == d.ChatChannelType.Alliance && R.default.OnPublicMessagesComing(e.Msg)
            }, t.prototype.OnReturnedFromReqChatWorldChat = function(e) {
                h.DataCenter.Instance.AddPublicChatMessage(e.Msg), this.InitQuoteData(), this.OnPublicMessagesComing(e.Msg), A.default.OnPublicMessagesComing(e.Msg), this.defaultChannel == d.ChatChannelType.Alliance && R.default.OnPublicMessagesComing(e.Msg)
            }, t.prototype.OnReturnedFromReqChatCrossZoneChat = function(e) {
                h.DataCenter.Instance.AddPublicChatMessage(e.Msg), this.InitQuoteData(), this.OnPublicMessagesComing(e.Msg), A.default.OnPublicMessagesComing(e.Msg), this.defaultChannel == d.ChatChannelType.Alliance && R.default.OnPublicMessagesComing(e.Msg)
            }, t.prototype.OnReturnedFromReqChatBossHuntChat = function(e) {
                h.DataCenter.Instance.AddPublicChatMessage(e.Msg), this.InitQuoteData(), this.OnPublicMessagesComing(e.Msg), A.default.OnPublicMessagesComing(e.Msg)
            }, t.prototype.OnReturnedFromReqChatAssaultOperationChat = function(e) {
                h.DataCenter.Instance.AddPublicChatMessage(e.Msg), this.InitQuoteData(), this.OnPublicMessagesComing(e.Msg), this.defaultChannel == d.ChatChannelType.AssaultOperation && B.default.OnPublicMessagesComing(e.Msg)
            }, t.prototype.InitQuoteData = function() {
                this.pMessageEditorBox.string = "", this._curAtName = "", this.QuoteNode.active = !1, this._curQuoteMessage = null
            }, t.prototype.ResetUI = function() {}, t.prototype.LeavePanel = function() {
                c.Game.EventDispatcher.Emit(T.EventKeys.EVENT_CLOSE_CHATPANEL_REFRESH), c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnClickGotoNewestMessageButton = function() {
                (this.pPrivateMessageScrollView.node.active ? this.pPrivateMessageScrollView : this.pPublicMessageScrollView).scrollToBottom(), this.pNewMessageIndicatorButton.node.active = !1, u.Game.EventDispatcher.Emit(T.EventKeys.EVENT_CHECK_BUNDINGBOX, this.pPublicMessageScrollViewRect)
            }, t.prototype.OpenEmojiView = function() {
                if (this.pEmojiView.active = !0, this.RenderEmojiToggle(), !(this.pEmojiScrollViewContent.childrenCount > 0)) {
                    var e = h.ConfigDataComponent.Instance.GetArrayConfig(g.Emoji_Config);
                    n.emojiIdMin = e[0].Id, n.emojiIdMax = e[e.length - 1].Id;
                    for (var t = 0, o = e.length; t < o; ++t) {
                        var r = e[t].Id,
                            i = new cc.Node(r.toString());
                        i.addComponent(cc.Sprite).spriteFrame = this.emojiAtlas.getSpriteFrame(n.EmojiIdToSpriteName(r)), i.addComponent(cc.Button), i.on("click", this.OnClickEmoji.bind(this), this), i.setParent(this.pEmojiScrollViewContent), i.width = 90, i.height = 94
                    }
                    this.pEmojiScrollView.scrollToTop()
                }
            }, t.prototype.OnClickEmoji = function(e) {
                var t = Number.parseInt(e.node.name);
                this.pEmojiView.active = !1;
                var n = this.pMessageEditorBox.string,
                    o = h.ConfigDataComponent.Instance.GetConfigById(g.Emoji_Config, t);
                this.pMessageEditorBox.string = n + String.fromCodePoint(o.CodePoint)
            }, t.EmojiIdToSpriteName = function(e) {
                var t = e.toString().length - 3;
                return t >= 0 ? e.toString() : new Array(1 - t).join("0") + e
            }, t.prototype.OpenSettingPanel = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.ChattingSettingPanel.Path)
            }, t.prototype.OnClickChannelButton = function(e) {
                var t = Number.parseInt(e.node.name);
                t != d.ChatChannelType.Private && (this.privateChattingPlayerInfo = null), this.ShowChannel(t)
            }, t.prototype.ClearPublicMessageScrollViewContent = function() {
                for (var e = this.publicMessageSeparators.length - 1; e >= 0; e--) S.default.Put(this.publicMessageSeparators[e]);
                for (e = this.publicLeftHandSideMessages.length - 1; e >= 0; e--) v.default.Put(this.publicLeftHandSideMessages[e]);
                for (e = this.publicRightHandSideMessages.length - 1; e >= 0; e--) b.default.Put(this.publicRightHandSideMessages[e]);
                this.publicMessageSeparators = [], this.publicLeftHandSideMessages = [], this.publicRightHandSideMessages = []
            }, t.prototype.ClearPrivateMessageScrollViewContent = function() {
                for (var e = this.privateMessageSeparators.length - 1; e >= 0; e--) S.default.Put(this.privateMessageSeparators[e]);
                for (e = this.privateLeftHandSideMessages.length - 1; e >= 0; e--) v.default.Put(this.privateLeftHandSideMessages[e]);
                for (e = this.privateRightHandSideMessages.length - 1; e >= 0; e--) b.default.Put(this.privateRightHandSideMessages[e]);
                this.privateMessageSeparators = [], this.privateLeftHandSideMessages = [], this.privateRightHandSideMessages = []
            }, t.prototype.AddPublicLeftHandSideMessage = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var o, r, i, a, l, c, u, p, d, f, y, g, m, C, b, S, w;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return [4, v.default.Get()];
                            case 1:
                                if (o = s.sent(), !this.isValid) return [2];
                                if (o.node.active = !0, o.node.setParent(this.pPublicMessageScrollViewContent), this.publicLeftHandSideMessages.push(o), o.ts = e._id, o.pName.node.active = !!e.Sender, o.pName.string = e.Sender ? e.Sender.Name : "", e.Sender && this.currentChannel != I.ChatChannelType.System ? (o.DesignationSprite.node.active = !0, P.default.SetDesignationIcon(e.Sender.Designation, o.DesignationSprite)) : o.DesignationSprite.node.active = !1, o.MessageType = e.Type, e.IntParams && e.IntParams.length > 1 && (o.extraInfoId = e.IntParams[1]), !(e.MsgWidth <= 0)) return [3, 3];
                                switch (r = void 0, e.Type) {
                                    case I.ChatMessageType.Text:
                                        r = e.Content;
                                        break;
                                    case I.ChatMessageType.CommonSummon:
                                    case I.ChatMessageType.ProphetSummon:
                                        d = e.StringParams[0], i = e.IntParams[0], r = this.sysBroadCastLanguageKeyMap.get(e.Type).ToUILocale().Fmt(d, i.ToHeroName());
                                        break;
                                    case I.ChatMessageType.TestTower:
                                        a = e.IntParams[0], d = e.StringParams[0], r = this.sysBroadCastLanguageKeyMap.get(e.Type).ToUILocale().Fmt(d, a);
                                        break;
                                    case I.ChatMessageType.AllianceAdvertise:
                                        l = e.IntParams[0], c = e.StringParams[0], r = this.sysBroadCastLanguageKeyMap.get(e.Type).ToUILocale().Fmt(l, c);
                                        break;
                                    case I.ChatMessageType.WishSummon:
                                    case I.ChatMessageType.NewHeroSummon:
                                    case I.ChatMessageType.Cloud:
                                    case I.ChatMessageType.PersonalitySummon:
                                        d = e.StringParams[0], u = e.IntParams[0].ToItemName(), p = e.IntParams[1], r = this.sysBroadCastLanguageKeyMap.get(e.Type).ToUILocale().Fmt(d, u, p);
                                        break;
                                    case I.ChatMessageType.CutPriceGift:
                                        r = "cutPrice_chatBubble".ToUILocale();
                                        break;
                                    case I.ChatMessageType.RankAchievement:
                                        d = e.StringParams[0], f = e.IntParams[0], y = e.IntParams[1], r = f.ToRankTypeSystem().Fmt(d, y)
                                }
                                return e.Content = r, [4, n.TryTranslatePublicMessage(e)];
                            case 2:
                                if (s.sent(), !this.isValid) return [2];
                                s.label = 3;
                            case 3:
                                return this.currentChannel == I.ChatChannelType.System ? (g = _.ChannelNameUILocaleKey.ToKey(I.ChatChannelType.System).ToUILocale(), o.SetTag(g, this.mainAtlas.getSpriteFrame("tag-system"))) : (o.SetHeadComponent(e.Sender.HeadIcon, e.Sender.HeadFrame), o.SetHeadComponentParam(e.Sender.Level, e.Sender.Country)), o.playerUid = e.Sender ? e.Sender.Uid : 0, e.Type != I.ChatMessageType.EmojiImage ? [3, 5] : (C = e.IntParams[0], b = this._emojiIdToType[C], S = this.EmojiConfigIDToEmojiSetPathPath(b), [4, this.GetEmojiImageByid(S, C)]);
                            case 4:
                                m = s.sent(), s.label = 5;
                            case 5:
                                return w = 0, e && e.Sender && e.Sender.ChatWindow && (w = e.Sender.ChatWindow), o.SetChatWindowId(w), o.SetMessageContent(e, m, t), this.currentChannel == I.ChatChannelType.CrossZone ? (o.pExtraInfo.node.active = !0, o.pExtraInfo.string = h.DataCenter.Instance.Zones[e.Sender.Zone].Name) : o.pExtraInfo.node.active = !1, [2]
                        }
                    })
                })
            }, t.prototype.AddPublicRightHandSideMessage = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var o, r, i, a, l, c, u, p;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return [4, b.default.Get()];
                            case 1:
                                switch ((o = s.sent()).node.active = !0, o.node.setParent(this.pPublicMessageScrollViewContent), this.publicRightHandSideMessages.push(o), o.ts = e._id, o.pName.string = e.Sender.Name, o.MessageType = e.Type, P.default.SetDesignationIcon(e.Sender.Designation, o.DesignationSprite), e.Type) {
                                    case I.ChatMessageType.AllianceAdvertise:
                                        r = e.IntParams[0], i = e.StringParams[0], o.extraInfoId = e.IntParams[1], e.Content = this.sysBroadCastLanguageKeyMap.get(e.Type).ToUILocale().Fmt(r, i);
                                        break;
                                    case I.ChatMessageType.CutPriceGift:
                                        e.Content = "cutPrice_chatBubble".ToUILocale()
                                }
                                return [4, n.TryTranslatePublicMessage(e)];
                            case 2:
                                return s.sent(), this.isValid ? e.Type != I.ChatMessageType.EmojiImage ? [3, 4] : (l = e.IntParams[0], c = this._emojiIdToType[l], u = this.EmojiConfigIDToEmojiSetPathPath(c), [4, this.GetEmojiImageByid(u, l)]) : [2];
                            case 3:
                                a = s.sent(), s.label = 4;
                            case 4:
                                return p = 0, e && e.Sender && e.Sender.ChatWindow && (p = e.Sender.ChatWindow), o.SetChatWindowId(p), o.SetMessageContent(e, a, t), [2]
                        }
                    })
                })
            }, t.prototype.AddPublicSeparator = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return [4, S.default.Get()];
                            case 1:
                                return (n = o.sent()).node.active = !0, n.node.setParent(this.pPublicMessageScrollViewContent), this.publicMessageSeparators.push(n), 0 == t ? n.SetTime(e) : n.SetDate(e), [2]
                        }
                    })
                })
            }, t.prototype.AddPrivateLeftHandSideMessage = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var o, r, i, a, l, c;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return [4, n.TryTranslatePrivateMessage(e)];
                            case 1:
                                return s.sent(), this.isValid ? [4, v.default.Get()] : [2];
                            case 2:
                                return o = s.sent(), this.isValid ? (o.node.active = !0, o.node.setParent(this.pPrivateMessageScrollViewContent), this.privateLeftHandSideMessages.push(o), o.playerUid = t.Uid, o.ts = e.Ts, o.pName.string = t.Name, P.default.SetDesignationIcon(t.Designation, o.DesignationSprite), e.EmojiId ? (i = e.EmojiId, a = this._emojiIdToType[i], l = this.EmojiConfigIDToEmojiSetPathPath(a), [4, this.GetEmojiImageByid(l, i)]) : [3, 4]) : [2];
                            case 3:
                                r = s.sent(), s.label = 4;
                            case 4:
                                return c = 0, t.ChatWindow && (c = t.ChatWindow), o.SetChatWindowId(c), o.SetMessageContent(e, r), o.SetHeadComponent(t.HeadIcon, t.HeadFrame), o.SetHeadComponentParam(t.Level, t.Country), o.pExtraInfo.node.active = !1, [2]
                        }
                    })
                })
            }, t.prototype.AddPrivateRightHandSideMessage = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, o, r, i, a, l, c;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return [4, n.TryTranslatePrivateMessage(e)];
                            case 1:
                                return s.sent(), this.isValid ? [4, b.default.Get()] : [2];
                            case 2:
                                return t = s.sent(), this.isValid ? (t.node.active = !0, t.node.setParent(this.pPrivateMessageScrollViewContent), this.privateRightHandSideMessages.push(t), t.ts = e.Ts, t.pName.string = this.myRoleName, (o = h.DataCenter.Instance.GetSimpleData(m.UserDataKey.Designation)) && P.default.SetDesignationIcon(o.V, t.DesignationSprite), e.EmojiId ? (i = e.EmojiId, a = this._emojiIdToType[i], l = this.EmojiConfigIDToEmojiSetPathPath(a), [4, this.GetEmojiImageByid(l, i)]) : [3, 4]) : [2];
                            case 3:
                                r = s.sent(), s.label = 4;
                            case 4:
                                return c = h.DataCenter.Instance.GetIntData(m.UserDataKey.ChatWindow), t.SetChatWindowId(c), t.SetMessageContent(e, r), [2]
                        }
                    })
                })
            }, t.prototype.AddPrivateSeparator = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return [4, S.default.Get()];
                            case 1:
                                return (n = o.sent()).node.active = !0, n.node.setParent(this.pPrivateMessageScrollViewContent), this.privateMessageSeparators.push(n), 0 == t ? n.SetTime(e) : n.SetDate(e), [2]
                        }
                    })
                })
            }, t.SplitStringToArrayByCodePoint = function(e) {
                return e && e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || []
            }, t.prototype.FillPublicChattingScrollViewContent = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var o, r, i, a, l, c, p, d, f, y, g, m = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                o = 0, 0 == t ? (this.scheduleOnce(this.SetWaitLabel, 1), this.pPublicMessageScrollViewContent.opacity = 0, e.length > this.MAX_CHAT_COUNT && (o = e.length - this.MAX_CHAT_COUNT)) : o = t, r = h.DataCenter.Instance.Uid, a = 0, l = h.RpcComponent.Instance.ServerTime, c = o, p = e.length, s.label = 1;
                            case 1:
                                return c < p ? (i = e[c]).Sender && h.DataCenter.Instance.InMyBlackList(i.Sender.Uid) ? [3, 8] : i._id - this.publicLastMessageTimeStamp > n.messageSeparatorInterval ? [4, this.AddPublicSeparator(i._id, l - i._id > 864e5 ? 1 : 0)] : [3, 3] : [3, 9];
                            case 2:
                                s.sent(), this.publicLastMessageTimeStamp = i._id, s.label = 3;
                            case 3:
                                return i.Sender && i.Sender.Uid == r ? [4, this.AddPublicRightHandSideMessage(i, e)] : [3, 5];
                            case 4:
                                return s.sent(), [3, 7];
                            case 5:
                                return [4, this.AddPublicLeftHandSideMessage(i, e)];
                            case 6:
                                s.sent(), s.label = 7;
                            case 7:
                                if (!this.isValid) return [2];
                                a++, s.label = 8;
                            case 8:
                                return ++c, [3, 1];
                            case 9:
                                return d = this.pPublicMessageScrollView, f = this.pPublicMessageScrollViewContent, y = d.getScrollOffset(), g = f.height - f.parent.height, 0 == t && (g = y.y = 0, this.scheduleOnce(function() {
                                    m.pPublicMessageScrollViewContent.opacity = 255, m._isLoadCompelete = !0, m.UnLoadWaitLabel()
                                }, .15)), g - y.y < 5 ? this.scheduleOnce(function() {
                                    m.pPublicMessageScrollViewContent.getComponent(cc.Layout).updateLayout(), f.height > f.parent.height && d.scrollToBottom(), u.Game.EventDispatcher.Emit(T.EventKeys.EVENT_CHECK_BUNDINGBOX, m.pPublicMessageScrollViewRect)
                                }, .05) : (this.pNewMessageIndicatorButton.node.active = a > 0 && t > 0, u.Game.EventDispatcher.Emit(T.EventKeys.EVENT_CHECK_BUNDINGBOX, this.pPublicMessageScrollViewRect)), [2]
                        }
                    })
                })
            }, t.TryTranslatePrivateMessage = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.MsgWidth <= 0 ? [4, n.TranslateEmojiCodePointToRichTextBBCodeAndGetWidth(e.Ts, e.Content)] : [3, 2];
                            case 1:
                                t = i.sent(), o = t[0], r = t[1], e.MsgWidth = o, e.Content = r, i.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.TryTranslatePublicMessage = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.MsgWidth <= 0 ? [4, n.TranslateEmojiCodePointToRichTextBBCodeAndGetWidth(e._id, e.Content, e.Tag == I.ChatChannelType.World || e.Tag == I.ChatChannelType.Alliance || e.Tag == I.ChatChannelType.AssaultOperation ? e.Sender : null)] : [3, 2];
                            case 1:
                                t = i.sent(), o = t[0], r = t[1], e.MsgWidth = o, e.Content = r, i.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.FillPrivateChattingScrollViewContent = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var o, r, i, a, l, c, p, d, f, y = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                0 == t && (this.scheduleOnce(this.SetWaitLabel, 1), this.pPrivateMessageScrollViewContent.opacity = 0), r = 0, i = h.RpcComponent.Instance.ServerTime, a = t, l = e.Messages.length, s.label = 1;
                            case 1:
                                return a < l ? (o = e.Messages[a]).Ts - this.privateLastMessageTimeStamp > n.messageSeparatorInterval ? [4, this.AddPrivateSeparator(o.Ts, i - o.Ts > 864e5 ? 1 : 0)] : [3, 3] : [3, 9];
                            case 2:
                                s.sent(), this.privateLastMessageTimeStamp = o.Ts, s.label = 3;
                            case 3:
                                return o.IsSender ? [4, this.AddPrivateRightHandSideMessage(o, e.TargetInfo)] : [3, 5];
                            case 4:
                                return s.sent(), [3, 7];
                            case 5:
                                return [4, this.AddPrivateLeftHandSideMessage(o, e.TargetInfo)];
                            case 6:
                                s.sent(), s.label = 7;
                            case 7:
                                r++, s.label = 8;
                            case 8:
                                return ++a, [3, 1];
                            case 9:
                                return c = this.pPrivateMessageScrollView, p = this.pPrivateMessageScrollViewContent, d = c.getScrollOffset(), f = p.height - p.parent.height, 0 == t && this.scheduleOnce(function() {
                                    y.pPrivateMessageScrollViewContent.opacity = 255, y._isLoadCompelete = !0, y.UnLoadWaitLabel()
                                }, .15), f - d.y < 5 ? this.scheduleOnce(function() {
                                    p.height > p.parent.height && c.scrollToBottom(), u.Game.EventDispatcher.Emit(T.EventKeys.EVENT_CHECK_BUNDINGBOX, y.pPublicMessageScrollViewRect)
                                }, .05) : (this.pNewMessageIndicatorButton.node.active = r > 0 && t > 0, u.Game.EventDispatcher.Emit(T.EventKeys.EVENT_CHECK_BUNDINGBOX, this.pPublicMessageScrollViewRect)), [2]
                        }
                    })
                })
            }, t.prototype.ShowChannel = function(e, t) {
                if (0 != this.channels[e].opened) {
                    if (e || I.ChatChannelType.World, this.currentChannel != e) {
                        this.currentChannel = e, this.ClearPublicMessageScrollViewContent(), this.publicLastMessageTimeStamp = 0, this.QuoteNode.active = !1, this._curQuoteMessage = null, this._curAtName = "";
                        var n = this.currentChannel == I.ChatChannelType.System;
                        this.pInputBarRootNode.active = !n, this.pPublicMessageScrollViewWidget.top = n ? 0 : this.publicMessageScrollViewWidgetTopWhenInputBarDisplaying, this.pPublicMessageScrollViewWidget.bottom = n ? 0 : this.publicMessageScrollViewWidgetBottomWhenInputBarDisplaying, this.pPublicMessageScrollViewWidget.updateAlignment(), this.pPublicMessageScrollViewMask.height = this.pPublicMessageScrollView.node.height
                    }
                    for (var o = 1, r = this.pChannelButtons.length; o < r; ++o) this.channels[o].opened ? this.currentChannel == o ? this.ChannelOn(o) : this.ChannelOff(o) : this.ChannelLocked(o);
                    if (this.currentChannel == I.ChatChannelType.Private)
                        if (this.pPrivateContactBar.active = !0, this.pPrivateMessageScrollView.node.active = !0, this.pPublicMessageScrollView.node.active = !1, t) {
                            var i = this.currentPrivateSessionPlayer,
                                a = t;
                            for (null != this.currentPrivateSessionPlayer && this.currentPrivateSessionPlayer.Uid == t.Uid || (this.currentPrivateSessionPlayer = t, this.ClearPrivateMessageScrollViewContent(), this.privateLastMessageTimeStamp = 0), o = 0, r = this.chattingPrivateChannelItems.length; o < r; ++o) i && i.Uid == this.chattingPrivateChannelItems[o].player.Uid && this.chattingPrivateChannelItems[o].SetActive(!1), a.Uid == this.chattingPrivateChannelItems[o].player.Uid && this.chattingPrivateChannelItems[o].SetActive(!0);
                            h.DataCenter.Instance.SetPrivateTargetViewd(t.Uid);
                            var s = this.privateLeftHandSideMessages.length + this.privateRightHandSideMessages.length,
                                l = h.DataCenter.Instance.GetChatMessagesByUid(t.Uid);
                            l && l.Messages && (0 == s && (this._isLoadCompelete = !1, this.unschedule(this.SetWaitLabel), this.UnLoadWaitLabel()), this.FillPrivateChattingScrollViewContent(l, s))
                        } else null == this.currentPrivateSessionPlayer && this.chattingPrivateChannelItems.length > 0 && this.ShowChannel(I.ChatChannelType.Private, this.chattingPrivateChannelItems[0].player);
                    else {
                        s = this.publicLeftHandSideMessages.length + this.publicRightHandSideMessages.length, this.pPrivateContactBar.active = !1, this.pPrivateMessageScrollView.node.active = !1, this.pPublicMessageScrollView.node.active = !0;
                        var c = h.DataCenter.Instance.GetChatMessagesByChannel(this.currentChannel);
                        0 == s && (this._isLoadCompelete = !1, this.unschedule(this.SetWaitLabel), this.UnLoadWaitLabel()), this.FillPublicChattingScrollViewContent(c, s)
                    }
                } else f.UIUtlity.ShowFloatingHint(this.channels[e].closeTip)
            }, t.prototype.ChannelOn = function(e) {
                e == I.ChatChannelType.Private || (h.DataCenter.Instance.SetChannelViewd(e), this.channels[e].unread.Set(0)), this.channels[e].selectedBg.active = !0, this.channels[e].iconOn.active = !0, this.channels[e].lock.active = !1, this.pChannelNameLabels[e].node.active = !0
            }, t.prototype.ChannelOff = function(e) {
                this.channels[e].selectedBg.active = !1, this.channels[e].iconOn.active = !0, this.channels[e].lock.active = !1, this.pChannelNameLabels[e].node.active = !0
            }, t.prototype.ChannelLocked = function(e) {
                this.channels[e].selectedBg.active = !1, this.channels[e].iconOn.active = !1, this.channels[e].lock.active = !0, this.channels[e].unread.Set(0), this.pChannelNameLabels[e].node.active = !0
            }, t.prototype.InitData = function(e) {
                n.InitEmojiCodePoint(), 0 == n.config_chatMessageMaxCharCount && (n.config_chatMessageMaxCharCount = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("ChatMessageMaxCharCount"), this.pMessageEditorBox.maxLength = n.config_chatMessageMaxCharCount);
                var t = e[0];
                e[1] && (this.defaultChannel = e[1]), e[2] && (this._activityChannelData = e[2]), t && t.Uid && t.Uid > 0 && (this.privateChattingPlayerInfo = t)
            }, t.InitEmojiCodePoint = function() {
                null == n._emojiCodeMap && (n._emojiCodeMap = {}), h.ConfigDataComponent.Instance.GetArrayConfig(g.Emoji_Config).forEach(function(e) {
                    n._emojiCodeMap[e.CodePoint] = e.Id
                })
            }, t.prototype.OnPublicMessagesComing = function(e) {
                if (e) {
                    var t = e.Tag < 0 ? I.ChatChannelType.Alliance : e.Tag;
                    this.UpdateChannelIGB(t), this.currentChannel == t && this.ShowChannel(t)
                }
            }, t.prototype.OnPrivateMessagesComing = function(e, t) {
                var n = this;
                e && this.currentChannel == I.ChatChannelType.Private && this.OpenOrCreatePrivateSession(t, e.IsSender || this.currentPrivateSessionPlayer && this.currentPrivateSessionPlayer.Uid == t.Uid).then(function() {
                    return n.UpdateChannelIGB(I.ChatChannelType.Private)
                })
            }, t.prototype.UpdateChannelIGB = function(e) {
                var t = 0,
                    n = this.channels[e].lock.active ? 0 : h.DataCenter.Instance.GetUnreadMessageCountByChannel(e);
                e == I.ChatChannelType.Private && (t = n), this.channels[e].unread.Set(n, t)
            }, t.prototype.UpdatePrivateChatSessions = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                for (n in this.chattingPrivateChannelItems = [], e = h.DataCenter.Instance.GetPrivateChatData(), t = [], e) t.push(n);
                                o = 0, i.label = 1;
                            case 1:
                                return o < t.length ? (r = t[o], e[r].TargetInfo, [4, this.OpenOrCreatePrivateSession(e[r].TargetInfo, !1)]) : [3, 4];
                            case 2:
                                i.sent(), i.label = 3;
                            case 3:
                                return o++, [3, 1];
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OpenOrCreatePrivateSession = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                for (n = null, o = 0, r = this.chattingPrivateChannelItems.length; o < r; ++o)
                                    if (this.chattingPrivateChannelItems[o].player.Uid == e.Uid) {
                                        n = this.chattingPrivateChannelItems[o];
                                        break
                                    } return null != n ? [3, 2] : [4, w.default.Get()];
                            case 1:
                                (n = i.sent()).player = e, n.node.setParent(this.pPrivateContactScrollViewContent), n.SetHeadComponent(e.HeadIcon, e.HeadFrame, e.Name ? e.Name : "..."), this.chattingPrivateChannelItems.push(n), i.label = 2;
                            case 2:
                                return t && this.ShowChannel(I.ChatChannelType.Private, e), n.SetUnread(h.DataCenter.Instance.GetUnreadMessageCountByUid(e.Uid)), this.UpdateChannelIGB(I.ChatChannelType.Private), [2]
                        }
                    })
                })
            }, t.prototype.ClosePrivateSession = function(e, t) {
                var n = this;
                void 0 === t && (t = !0);
                for (var o = null, r = 0, i = this.chattingPrivateChannelItems.length; r < i; ++r)
                    if (this.chattingPrivateChannelItems[r].player.Uid == e.Uid) {
                        var a = this.chattingPrivateChannelItems.splice(r, 1);
                        o = a[0];
                        break
                    } if (null != o) {
                    var s = new p.Req_Chat_RemovePrivateChat;
                    s.TargetUid = o.player.Uid, h.RpcComponent.Instance.Call(s, function() {
                        delete h.DataCenter.Instance.GetPrivateChatData()[o.player.Uid], w.default.Put(o), t && (n.chattingPrivateChannelItems.length > 0 ? n.ShowChannel(I.ChatChannelType.Private, n.chattingPrivateChannelItems[0].player) : (n.currentPrivateSessionPlayer = null, n.ClearPrivateMessageScrollViewContent()))
                    })
                }
            }, t.StringLength = function(e) {
                for (var t = 0, n = 0, o = e.length; n < o; ++n) e.charCodeAt(n) > 255 ? t += 2 : t += 1;
                return t
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, t.prototype.RefreshToggles = function() {
                this.pEmojiView.active && this.RenderEmojiToggle()
            }, t.prototype.RenderEmojiToggle = function() {
                var e = this;
                this.GetUnlockEmojiTypeConfigs().forEach(function(t, o) {
                    if (!e._toggleCompoents[o]) {
                        var r = cc.instantiate(e._emoticonToggle);
                        e.EmoToggleContainer.addChild(r);
                        var i = r.getComponent(k.default);
                        e._toggleCompoents.push(i), e._toggleCompoents[o].node.on("click", e.ChangeEmoticon, e)
                    }
                    e._toggleCompoents[o].node.name = t.Id.toString(), e._toggleCompoents[o].SetIconSprite(e.mainAtlas.getSpriteFrame("emoji-class-" + t.Id)), e._toggleCompoents[o].SetState(t.Id == e._chosenEmoticonId);
                    var a = n.CheckReddot(t);
                    if (e._toggleCompoents[o].SetReddot(a), t.IsFree) e._toggleCompoents[o].SetTime(0);
                    else {
                        var s = n.GetPaidEmojiTime(t.Id);
                        e._toggleCompoents[o].SetTime(s)
                    }
                })
            }, t.CheckReddot = function(e) {
                if (!e.IsFree && n.GetPaidEmojiTime(e.Id) >= 0) {
                    var t = M.default.GetItem(M.GameRecordDefine.PaidEmojiReddot);
                    if (!t) return !0;
                    if (!JSON.parse(t)[e.Id]) return !0
                }
                return !1
            }, t.prototype.ChangeEmoticon = function(e) {
                var t = Number(e.node.name);
                if (t != this._chosenEmoticonId) {
                    this._chosenEmoticonId = t;
                    var o = h.ConfigDataComponent.Instance.GetConfigById(g.EmojiType_Config, this._chosenEmoticonId),
                        r = !1;
                    if (!o.IsFree && n.GetPaidEmojiTime(o.Id) >= 0) {
                        var i = M.default.GetItem(M.GameRecordDefine.PaidEmojiReddot);
                        if (i) {
                            var a = JSON.parse(i);
                            a[o.Id] || (a[o.Id] = 1, M.default.SetItem(M.GameRecordDefine.PaidEmojiReddot, JSON.stringify(a)), r = !0)
                        } else(i = {})[o.Id] = 1, M.default.SetItem(M.GameRecordDefine.PaidEmojiReddot, JSON.stringify(i)), r = !0
                    }
                    if (r)
                        for (var s = 0; s < this._toggleCompoents.length; s++) {
                            var l = this._toggleCompoents[s].node;
                            Number(l.name) == this._chosenEmoticonId && (this._toggleCompoents[s].SetReddot(!1), D.RedDotManager.Instance.RedDot.EmojiButtonNode.NeedRefresh = !0, D.RedDotManager.Instance.Bind(this.pEmojiButton.node, D.RedDotManager.Instance.RedDot.EmojiButtonNode, 20, 20))
                        }
                    1 == this._chosenEmoticonId ? (this.ScrollViewEmoticon.node.active = !1, this.pEmojiScrollView.node.active = !0, this.PaidEmojiScrollView.node.active = !1) : this._chosenEmoticonId > 1 && (o.IsFree ? (this.ScrollViewEmoticon.node.active = !0, this.PaidEmojiScrollView.node.active = !1, this.pEmojiScrollView.node.active = !1, this.ScrollViewEmoticon.Set(this._chosenEmoticonId)) : (this.ScrollViewEmoticon.node.active = !1, this.pEmojiScrollView.node.active = !1, this.PaidEmojiScrollView.node.active = !0, this.SetPaidEmojiContent()))
                }
            }, t.prototype.GetUnlockEmojiTypeConfigs = function() {
                var e = h.ConfigDataComponent.Instance.GetArrayConfig(g.EmojiType_Config),
                    t = [],
                    o = [],
                    r = [];
                return e.forEach(function(e) {
                    e.IsFree ? t.push(e) : n.GetPaidEmojiTime(e.Id) >= 0 ? o.push(e) : r.push(e)
                }), t.concat(o, r)
            }, t.GetPaidEmojiTime = function(e) {
                var t = 100 * e + d.ConsumeItemType.PaidEmoji,
                    n = h.DataCenter.Instance.GetDataById(p.UserIcon_Model, t);
                return n ? n.Time > 0 ? h.RpcComponent.Instance.ServerTime < n.Time ? n.Time : -1 : 0 : -1
            }, t.prototype.SetPaidEmojiContent = function() {
                var e = this;
                this._paidEmojiSprites.forEach(function(e) {
                    e.node.active = !1
                });
                var t = h.ConfigDataComponent.Instance.GetConfigById(g.EmojiType_Config, this._chosenEmoticonId),
                    n = this.EmojiConfigIDToEmojiSetPathPath(t.Id);
                t.EmojiIds.forEach(function(t, o) {
                    if (!e._paidEmojiSprites[o]) {
                        var r = new cc.Node,
                            i = r.addComponent(cc.Sprite);
                        i.sizeMode = cc.Sprite.SizeMode.CUSTOM, r.setContentSize(160, 160), r.parent = e.PaidEmojiScrollViewContent, e._paidEmojiSprites[o] = i, r.on(cc.Node.EventType.TOUCH_END, e.OnClickPaidEmoji.bind(e), e)
                    }
                    e._paidEmojiSprites[o].node.name = t.toString(), e._paidEmojiSprites[o].node.active = !0, e.LoadPaidEmojiImg(n, t, e._paidEmojiSprites[o])
                }), this._firstTimeSetPaidEmojiContent && (this.PaidEmojiScrollView.scrollToTop(), this._firstTimeSetPaidEmojiContent = !1)
            }, t.prototype.EmojiConfigIDToEmojiSetPathPath = function(e) {
                return 11 == e ? "Chatting/EmojiBundles/Essentials" : null
            }, t.prototype.LoadPaidEmojiImg = function(e, t, n) {
                return a(this, void 0, void 0, function() {
                    var o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return o = e + "/" + t, [4, this.LoadDynamicAsset(o, cc.SpriteFrame)];
                            case 1:
                                return r = i.sent(), this.isValid ? (n.spriteFrame = r, [2]) : (u.AssetsManager.Instance.UnloadAsset(r), [2])
                        }
                    })
                })
            }, t.prototype.OnClickPaidEmoji = function(e) {
                if (n.GetPaidEmojiTime(this._chosenEmoticonId) < 0) f.UIUtlity.ShowFloatingHint("emoji_lock".ToUILocale());
                else {
                    var t = Number.parseInt(e.target.name);
                    this.SendEmoji(t)
                }
            }, t.prototype.SendEmoji = function(e) {
                if (this.pEmojiView.active = !1, 0 != this.channels[this.currentChannel].speakable) {
                    var t = new p.Req_Chat_PublicChat;
                    switch (t.EmojiId = e, t.Type = this.currentChannel, this.currentChannel) {
                        case I.ChatChannelType.System:
                            break;
                        case I.ChatChannelType.Alliance:
                            h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatAllianceChat.bind(this));
                            break;
                        case I.ChatChannelType.World:
                        case I.ChatChannelType.CrossZone:
                            h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatWorldChat.bind(this));
                            break;
                        case I.ChatChannelType.Private:
                            if (this.currentPrivateSessionPlayer) {
                                if (h.DataCenter.Instance.InMyBlackList(this.currentPrivateSessionPlayer.Uid)) return void f.UIUtlity.ShowFloatingHint("chatting_inBlacklist".ToUILocale());
                                var n = new p.Req_Chat_PrivateChat;
                                n.TargetUid = this.currentPrivateSessionPlayer.Uid, n.EmojiId = e, h.RpcComponent.Instance.Call(n, this.OnReturnedFromReqChatPrivateChat.bind(this))
                            }
                            break;
                        case I.ChatChannelType.BossHunt:
                            h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatBossHuntChat.bind(this));
                            break;
                        case I.ChatChannelType.AssaultOperation:
                            h.RpcComponent.Instance.Call(t, this.OnReturnedFromReqChatAssaultOperationChat.bind(this))
                    }
                } else f.UIUtlity.ShowFloatingHint(this.channels[this.currentChannel].unspeakableTip)
            }, t.prototype.BuildEmojiIDToEmojiSetIDMap = function() {
                var e = this;
                this._emojiIdToType || (this._emojiIdToType = {}, h.ConfigDataComponent.Instance.GetArrayConfig(g.EmojiType_Config).forEach(function(t) {
                    t.EmojiIds.length > 0 && t.EmojiIds.forEach(function(n) {
                        e._emojiIdToType[n] = t.Id
                    })
                }))
            }, t.prototype.GetEmojiImageByid = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r, i, a, l, c;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return n = h.ConfigDataComponent.Instance.GetConfigById(g.EmojiImage_Config, t), o = this._emojiIdToType[t], h.ConfigDataComponent.Instance.GetConfigById(g.EmojiType_Config, o).IsFree ? [3, 2] : (c = void 0, r = void 0, c = e + "/" + t, [4, this.LoadDynamicAsset(c, cc.SpriteFrame)]);
                            case 1:
                                return r = s.sent(), this.isValid ? [2, r] : (u.AssetsManager.Instance.UnloadAsset(r), [2]);
                            case 2:
                                return i = void 0, a = "Emoticon" + t, n.IsMultilang ? (l = "MultilangEmoticon", n.IsMultilang > 1 && (l = "MultilangEmoticon" + n.IsMultilang), c = h.GlobalConfigComponent.GetMultilangKey("Multilang/" + l), [4, this.LoadDynamicAsset(c, cc.SpriteAtlas)]) : [3, 4];
                            case 3:
                                i = s.sent(), s.label = 4;
                            case 4:
                                return i ? [2, i.getSpriteFrame(a)] : [2]
                        }
                    })
                })
            }, t.GetEmojiRichTextString = function(e) {
                var t = n._emojiCodeMap[e];
                if (null != t) return "<img src='" + this.EmojiIdToSpriteName(t) + "'/>"
            }, t.prototype.SetWaitLabel = function() {
                this._isLoadCompelete || this.LoadWaitLabel()
            }, t.prototype.LoadWaitLabel = function() {
                this.WaitLabel.node.active = !0, this._pointCount = 1, this.WaitLabel.string = this._fixStr, this.schedule(this.RepeatPoint, .5)
            }, t.prototype.RepeatPoint = function() {
                var e = "";
                if (this.WaitLabel.string = this._fixStr, this._pointCount <= 3) {
                    for (var t = 0; t < this._pointCount; t++) e += ".";
                    this.WaitLabel.string += e, this._pointCount++
                } else this._pointCount = 1
            }, t.prototype.UnLoadWaitLabel = function() {
                this.unschedule(this.RepeatPoint), this.WaitLabel.node.active = !1
            }, t.prototype.SetQuoteTarget = function(e) {
                if (e && this.currentChannel != I.ChatChannelType.System && this.currentChannel != I.ChatChannelType.Private)
                    if (this._curAtName) f.UIUtlity.ShowFloatingHint("chat_select_at_target".ToUILocale());
                    else {
                        var t = this.pMessageEditorBox.string;
                        this.pMessageEditorBox.string = "@" + e + " " + t, this._curAtName = e
                    }
            }, t.prototype.OnEditorBoxEndCallBack = function(e) {
                if (0 == e.string.length) return this._curAtName = "", void(this.QuoteNode.active = !1);
                var t = e.string.indexOf("@"),
                    n = "",
                    o = !1;
                if (t > -1 && t != e.string.length - 1)
                    for (var r = t + 1; r < e.string.length; r++) {
                        if (" " == e.string[r]) {
                            o = !0;
                            break
                        }
                        n += e.string[r]
                    }
                o && n.length > 0 ? this._curAtName = n : this._curAtName = ""
            }, t.prototype.SetChatRecover = function(e) {
                if (e) {
                    this._curQuoteMessage = e;
                    var t = e.Sender.Name;
                    this.pMessageEditorBox.string = "@" + t + " ", this.QuoteNode.active = !0, this.QuoteName.string = t + ":", this.QuoteContent.maxWidth = n.maxMessageWidth - 40, this.QuoteContent.string = e.Content, this.QuoteLayout.updateLayout(), this.VerticalLineNode.height = this.QuoteLayout.node.height, this.QuoteNode.height = this.VerticalLineNode.height + n.messageContentPaddingVertical
                }
            }, t.maxMessageWidth = 560, t.messageItemGap = 30, t.messageContentPaddingHorizontal = 40, t.messageContentPaddingVertical = 25, t.messageContentOffset = 10, t.singleton = null, t.config_chatMessageMaxCharCount = 0, t.messageSeparatorInterval = 6e5, t.emojiIdMin = 0, t.emojiIdMax = 0, t._emojiCodeMap = null, t.richtextForSizeTest = null, i([U(cc.Label)], t.prototype, "pSettingsBtnText", void 0), i([U([cc.Label])], t.prototype, "pChannelNameLabels", void 0), i([U([cc.Label])], t.prototype, "pChannelNameOffLabels", void 0), i([U(cc.Label)], t.prototype, "pSendBtnText", void 0), i([U(cc.Label)], t.prototype, "pDefaultMessageText", void 0), i([U(cc.Button)], t.prototype, "pBackButton", void 0), i([U(cc.Button)], t.prototype, "pSettingsBtn", void 0), i([U([cc.Button])], t.prototype, "pChannelButtons", void 0), i([U(cc.Node)], t.prototype, "pPrivateContactBar", void 0), i([U(cc.ScrollView)], t.prototype, "pPrivateContactScrollView", void 0), i([U(cc.Node)], t.prototype, "pPrivateContactScrollViewContent", void 0), i([U(cc.Button)], t.prototype, "pPrivateContactAddButton", void 0), i([U(cc.Node)], t.prototype, "pPrivateContactBarGhost", void 0), i([U(cc.ScrollView)], t.prototype, "pPublicMessageScrollView", void 0), i([U(cc.Node)], t.prototype, "pPublicMessageScrollViewMask", void 0), i([U(cc.Node)], t.prototype, "pPublicMessageScrollViewContent", void 0), i([U(cc.Widget)], t.prototype, "pPublicMessageScrollViewWidget", void 0), i([U(cc.ScrollView)], t.prototype, "pPrivateMessageScrollView", void 0), i([U(cc.Node)], t.prototype, "pPrivateMessageScrollViewMask", void 0), i([U(cc.Node)], t.prototype, "pPrivateMessageScrollViewContent", void 0), i([U(cc.Widget)], t.prototype, "pPrivateMessageScrollViewWidget", void 0), i([U(cc.Node)], t.prototype, "pInputBarRootNode", void 0), i([U(cc.Widget)], t.prototype, "pInputBarWidget", void 0), i([U(cc.Button)], t.prototype, "pSendButton", void 0), i([U(cc.Button)], t.prototype, "pEmojiButton", void 0), i([U(cc.EditBox)], t.prototype, "pMessageEditorBox", void 0), i([U(cc.Node)], t.prototype, "pEmojiView", void 0), i([U(cc.ScrollView)], t.prototype, "pEmojiScrollView", void 0), i([U(cc.Node)], t.prototype, "pEmojiScrollViewContent", void 0), i([U(cc.Button)], t.prototype, "pNewMessageIndicatorButton", void 0), i([U(cc.Node)], t.prototype, "pNewMessageIndicatorArrow", void 0), i([U(O.default)], t.prototype, "ScrollViewEmoticon", void 0), i([U(L.default)], t.prototype, "EmoticonLayout", void 0), i([U(cc.Node)], t.prototype, "EmoToggleContainer", void 0), i([U(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([U(cc.SpriteAtlas)], t.prototype, "emojiAtlas", void 0), i([U(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), i([U(cc.Label)], t.prototype, "WaitLabel", void 0), i([U(cc.Node)], t.prototype, "QuoteNode", void 0), i([U(cc.Node)], t.prototype, "VerticalLineNode", void 0), i([U(cc.Layout)], t.prototype, "QuoteLayout", void 0), i([U(cc.Label)], t.prototype, "QuoteName", void 0), i([U(cc.RichText)], t.prototype, "QuoteContent", void 0), i([U(cc.ScrollView)], t.prototype, "PaidEmojiScrollView", void 0), i([U(cc.Node)], t.prototype, "PaidEmojiScrollViewContent", void 0), n = i([E], t)
        }(u.BaseUIFullScreenPanel);
        n.default = G, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../../UI/Panel/ChattingMiniPanel": "ChattingMiniPanel",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/EmoticonScrollComponent": "EmoticonScrollComponent",
        "../Components/EmoticonToggleComponent": "EmoticonToggleComponent",
        "../Components/StrongholdWarMiniChatting": "StrongholdWarMiniChatting",
        "./AssaultOperationChattingMiniPanel": "AssaultOperationChattingMiniPanel",
        "./ChattingCommonDefines": "ChattingCommonDefines",
        "./ChattingLeftSideMessageItem": "ChattingLeftSideMessageItem",
        "./ChattingMessageSeparatorItem": "ChattingMessageSeparatorItem",
        "./ChattingPrivateChannelItem": "ChattingPrivateChannelItem",
        "./ChattingRightSideMessageItem": "ChattingRightSideMessageItem",
        "./ChattingUnreadCounter": "ChattingUnreadCounter"
    }],
    ChattingMessageSeparatorItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "62325RSkIhAN6FgktaGpZYM", "ChattingMessageSeparatorItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Util/TimeUtil"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pContent = null, t.originalY = 9999, t.index = -1, t.ts = 0, t.extraInfoId = 0, t
                }
                var n;
                return r(t, e), n = t, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = o.sent(), o.label = 3;
                                case 3:
                                    return (t = e.getComponent(n)).InitNodesAndComponents(), [2, t]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    l.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, l.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = t.sent(), t.label = 2;
                                case 2:
                                    return n.prefabAsset ? [2, cc.instantiate(n.prefabAsset)] : (c.EZLog.Debug("ok in ChattingMessageSeparatorItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {}, t.prototype.SetTime = function(e) {
                    this.pContent.string = u.TimeUtil.Format("HH:mm", e)
                }, t.prototype.SetDate = function(e) {
                    this.pContent.string = u.TimeUtil.Format("MM/DD", e)
                }, t.classNameString = "ChattingMessageSeparatorItem", t.prefabPathName = "Chatting/Private/MessageSeparatorItem", t.prefabAsset = null, t.pool = new cc.NodePool, i([h(cc.Label)], t.prototype, "pContent", void 0), n = i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil"
    }],
    ChattingMiniNodeId: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8cd13cRt25FUY+8du5LdZKg", "ChattingMiniNodeId");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._messageSid = 0, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "messageSid", {
                    get: function() {
                        return this._messageSid
                    },
                    set: function(e) {
                        this._messageSid = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([s], t)
            }(cc.Component));
        n.default = l, cc._RF.pop()
    }, {}],
    ChattingMiniPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cf645uftFhKiaKh1pt7U4rR", "ChattingMiniPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../GamePlay/Components/Components"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ChattingUnreadCounter"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("./ChattingMainPanel"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("./ChattingMiniNodeId"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pMainButtons = null, t.pMessageNodes = [], t.pMessageTagNodes = [], t.pMessageTagLabels = [], t.pMessageRichTexts = [], t.pMessageRichTextForTest = null, t.pIGB = null, t.pAuxLabel = null, t.mainAtlas = null, t.emojiAtlas = null, t.headMessageIndex = 1, t.nextMessageIndex = 2, t._tweenEndY = [20, -20, -60], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(f.EventKeys.EVENT_BLACK_LIST_CHANGE, this.OnBlackListChange, this), a.Game.EventDispatcher.On(f.EventKeys.EVENT_CLOSE_CHATPANEL_REFRESH, this.RefreshMessageOnClose, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(f.EventKeys.EVENT_BLACK_LIST_CHANGE, this.OnBlackListChange, this), a.Game.EventDispatcher.Off(f.EventKeys.EVENT_CLOSE_CHATPANEL_REFRESH, this.RefreshMessageOnClose, this), n.singleton = null
                }, t.prototype.InitNodesAndComponents = function() {
                    this.headMessageIndex = 1, this.pMessageNodes[1].active = !0, this.pMessageRichTexts[1].string = "", this.nextMessageIndex = 2
                }, t.prototype.onLoad = function() {
                    a.EZLog.Debug("#####IGBIGBIGB ChattingMiniPanel onLoad..."), this.InitUI()
                }, t.prototype.start = function() {
                    this.RefreshMessageBuffer()
                }, t.prototype.update = function(e) {
                    n.unreadUpdateIntervalCounter += e, n.unreadUpdateIntervalCounter > n.unreadUpdateInterval && (n.unreadUpdateIntervalCounter = 0, this.UpdateUnreadCount()), n.messageUpdateIntervalCounter += e, n.messageUpdateIntervalCounter > n.messageUpdateInterval && (n.messageUpdateCounter++ > 3 && (n.messageUpdateInterval = n.messageUpdateIntervalNormal), n.messageUpdateIntervalCounter = 0, this.InsertNewMessage(!0))
                }, t.prototype.InitUI = function() {
                    this.InitNodesAndComponents(), n.singleton = this, d.default.InitEmojiCodePoint();
                    for (var e = 0; e < 3; ++e) this.pMessageNodes[e].active = !1, this.pMessageRichTexts[e].imageAtlas = this.emojiAtlas, this.pMessageTagLabels[e].string = "chatting_chWorld".ToUILocale();
                    this.pMessageRichTextForTest.imageAtlas = this.emojiAtlas, null == n.messageRichTextForTest && (this.pMessageRichTextForTest.node.active = !0, this.pMessageRichTextForTest.node.setParent(s.UIManager.Instance.node), this.pMessageRichTextForTest.node.setPosition(999999, 999999), n.messageRichTextForTest = this.pMessageRichTextForTest), this.pMainButtons.node.on("click", this.GotoChattingMainPanel.bind(this), this)
                }, t.prototype.GotoChattingMainPanel = function() {
                    a.UIManager.Instance.ShowUIPanel(c.PanelConfig.ChattingMainPanel.Path, null, this._defaultChannel, this._activityChannelData)
                }, t.prototype.UpdateUnreadCount = function() {
                    var e = l.DataCenter.Instance.GetAllUnreadMessageCount(),
                        t = l.DataCenter.Instance.GetUnreadMessageCountByChannel(p.ChatChannelType.Private);
                    this.pIGB.Set(e, t)
                }, t.OnPublicMessagesComing = function(e) {
                    e && (e.Tag < 0 ? p.ChatChannelType.Alliance : e.Tag) == p.ChatChannelType.World && (e.Sender && l.DataCenter.Instance.InMyBlackList(e.Sender.Uid) || n.messagesBuffer.push(e))
                }, t.TranslateEmojiCodePointToRichTextBBCodeAndClampAtWidth = function(e, t, o, r) {
                    if (!n.messageClampedContentMap.has(e)) {
                        n.messageRichTextForTest.imageAtlas = null == n.singleton ? r : n.singleton.emojiAtlas, n.messageRichTextForTest.string = t;
                        for (var i = n.messageRichTextForTest.node.width, a = t, s = 0, l = o.length; s < l; ++s) {
                            var c = o[s].codePointAt(0),
                                u = d.default.GetEmojiRichTextString(c);
                            if (null != u) {
                                var p = u;
                                o[s] = p
                            }
                            if (n.messageRichTextForTest.string = o[s], a += o[s], (i += n.messageRichTextForTest.node.width) > n.maxMessageWidth) {
                                a += "...";
                                break
                            }
                        }
                        return n.messageClampedContentMap.set(e, a), a
                    }
                }, t.prototype.InsertNewMessage = function() {
                    if (0 != n.messagesBuffer.length) {
                        var e = n.messagesBuffer.shift();
                        this.pMessageTagNodes[this.nextMessageIndex].active = !0, this.pMessageNodes[this.nextMessageIndex].active = !0;
                        var t, o = this.pMessageNodes[this.nextMessageIndex].getComponent(y.default);
                        if (o && (o.messageSid = e._id), e.Type == p.ChatMessageType.EmojiImage) {
                            var r = e.IntParams[0],
                                i = l.ConfigDataComponent.Instance.GetConfigById(h.EmojiImage_Config, r);
                            t = (a = "<color=#fed94a>[" + e.Sender.Name + "]</color>") + "[" + i.Id.ToEmojiImageName() + "]"
                        } else if (n.messageClampedContentMap.has(e._id)) t = n.messageClampedContentMap.get(e._id);
                        else {
                            var a = "<color=#fed94a>[" + e.Sender.Name + "]</color>",
                                s = void 0;
                            switch (e.Type) {
                                case p.ChatMessageType.Text:
                                    s = e.Content;
                                    break;
                                case p.ChatMessageType.AllianceAdvertise:
                                    var c = e.IntParams[0],
                                        u = e.StringParams[0];
                                    s = "chatting_sysBroadcastAllianceAdvertise".ToUILocale().Fmt(c, u);
                                    break;
                                case p.ChatMessageType.CutPriceGift:
                                    s = "cutPrice_chatBubble".ToUILocale().replace(/<[^>]*>/g, "")
                            }
                            var f = d.default.SplitStringToArrayByCodePoint(s);
                            t = n.TranslateEmojiCodePointToRichTextBBCodeAndClampAtWidth(e._id, a, f, this.emojiAtlas), n.messageClampedContentMap.set(e._id, t)
                        }
                        null == this.pMessageRichTexts[this.nextMessageIndex].imageAtlas && (this.pMessageRichTexts[this.nextMessageIndex].imageAtlas = this.emojiAtlas), this.pMessageRichTexts[this.nextMessageIndex].string = t, this.headMessageIndex = this.nextMessageIndex;
                        for (var g = this.headMessageIndex, m = 0; m < 3; ++m) {
                            this._tweenEndY[g] > 20 && (this._tweenEndY[g] = n.positionY[3]), this.pMessageNodes[g].y > 22 && (this.pMessageNodes[g].y = n.positionY[3]);
                            var I = this._tweenEndY[g] + 40;
                            this._tweenEndY[g] = I, cc.tween(this.pMessageNodes[g]).to(n.messageShifeDuration, {
                                y: I
                            }).start(), g = (g + 1) % 3
                        }
                        this.nextMessageIndex = (this.nextMessageIndex + 1) % 3
                    }
                }, t.prototype.RefreshMessageBuffer = function() {
                    this.UpdateUnreadCount();
                    for (var e = l.DataCenter.Instance.GetChatMessagesByChannel(p.ChatChannelType.World), t = e.length - 1; t >= 0; t--) {
                        var o = e[t];
                        if ((!o.Sender || !l.DataCenter.Instance.InMyBlackList(o.Sender.Uid)) && (n.messagesBuffer.unshift(o), n.messagesBuffer.length >= 3)) break
                    }
                }, t.prototype.RefreshMessageOnClose = function() {
                    this.UpdateUnreadCount();
                    var e = l.DataCenter.Instance.GetChatMessagesByChannel(p.ChatChannelType.World);
                    if (e.length > 0) {
                        for (var t = void 0, o = e.length - 1; o >= 0; o--)
                            if (!e[o].Sender || !l.DataCenter.Instance.InMyBlackList(e[o].Sender.Uid)) {
                                t = e[o];
                                break
                            } if (!t) return;
                        var r = !1;
                        for (o = 0; o < this.pMessageNodes.length; o++) {
                            var i = this.pMessageNodes[o].getComponent(y.default);
                            if (i && i.messageSid == t._id) {
                                r = !0;
                                break
                            }
                        }
                        if (!r)
                            for (o = e.length - 1; o >= 0; o--) {
                                var a = e[o];
                                if ((!a.Sender || !l.DataCenter.Instance.InMyBlackList(a.Sender.Uid)) && (n.messagesBuffer.unshift(a), n.messagesBuffer.length >= 3)) break
                            }
                    }
                }, t.prototype.OnBlackListChange = function() {
                    for (var e = 0, t = this.pMessageTagNodes; e < t.length; e++) t[e].active = !1;
                    for (var n = 0, o = this.pMessageNodes; n < o.length; n++) o[n].active = !1;
                    this.RefreshMessageBuffer()
                }, t.prototype.SetDefalutChannel = function(e) {
                    this._defaultChannel = e
                }, t.prototype.SetActivityChannelData = function(e) {
                    this._activityChannelData = e
                }, t.singleton = null, t.messageRichTextForTest = null, t.unreadUpdateInterval = 3, t.unreadUpdateIntervalCounter = 0, t.messageShifeDuration = .5, t.messageUpdateIntervalNormal = 1, t.messageUpdateInterval = .3, t.messageUpdateIntervalCounter = 0, t.messageUpdateCounter = 0, t.positionY = [60, 20, -20, -60], t.maxMessageWidth = 300, t.messagesBuffer = [], t.messageClampedContentMap = new Map, i([I(cc.Button)], t.prototype, "pMainButtons", void 0), i([I([cc.Node])], t.prototype, "pMessageNodes", void 0), i([I([cc.Node])], t.prototype, "pMessageTagNodes", void 0), i([I([cc.Label])], t.prototype, "pMessageTagLabels", void 0), i([I([cc.RichText])], t.prototype, "pMessageRichTexts", void 0), i([I(cc.RichText)], t.prototype, "pMessageRichTextForTest", void 0), i([I(u.default)], t.prototype, "pIGB", void 0), i([I(cc.Label)], t.prototype, "pAuxLabel", void 0), i([I(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([I(cc.SpriteAtlas)], t.prototype, "emojiAtlas", void 0), n = i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./ChattingMainPanel": "ChattingMainPanel",
        "./ChattingMiniNodeId": "ChattingMiniNodeId",
        "./ChattingUnreadCounter": "ChattingUnreadCounter"
    }],
    ChattingPrivateChannelItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "08fb4dwHFxEr7le51wfQlh9", "ChattingPrivateChannelItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("./ChattingUnreadCounter"),
            h = e("../../UI/Panel/ChattingMainPanel"),
            f = e("../../UI/Components/HeadComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pCloseButton = null, t.pUnreadCounter = null, t.pActiveIndicator = null, t.pSwitchButton = null, t.pHeadComponentRoot = null, t.pName = null, t.index = -1, t.ts = 0, t.player = new l.PlayerSimpleInfo, t.headComponent = null, t
                }
                var n;
                return r(t, e), n = t, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = o.sent(), o.label = 3;
                                case 3:
                                    return (t = e.getComponent(n)).pCloseButton.node.on("click", t.OnClickCloseButton.bind(t), this), t.pSwitchButton.node.on("click", t.OnClickSwitchButton.bind(t), this), t.InitNodesAndComponents(), [2, t]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    e.pCloseButton.node.off("click"), e.pSwitchButton.node.off("click"), n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    c.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null, c.AssetsManager.Instance.UnloadAsset(n.headComponentPrefab), n.headComponentPrefab = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, c.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = i.sent(), i.label = 2;
                                case 2:
                                    return null != n.headComponentPrefab ? [3, 4] : (t = n, [4, c.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadComponent, cc.Prefab)]);
                                case 3:
                                    t.headComponentPrefab = i.sent(), i.label = 4;
                                case 4:
                                    return n.prefabAsset ? (o = cc.instantiate(n.prefabAsset), (r = o.getComponent(n)).headComponent = cc.instantiate(n.headComponentPrefab).getComponent(f.default), r.headComponent.node.setParent(r.pHeadComponentRoot), r.headComponent.node.setScale(.9), [2, o]) : (u.EZLog.Debug("ok in PrivateChannelItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {}, t.prototype.OnClickCloseButton = function() {
                    h.default.singleton && h.default.singleton.ClosePrivateSession(this.player)
                }, t.prototype.OnClickSwitchButton = function() {
                    h.default.singleton && h.default.singleton.OpenOrCreatePrivateSession(this.player, !0)
                }, t.prototype.SetUnread = function(e) {
                    this.pUnreadCounter.Set(e)
                }, t.prototype.SetActive = function(e) {
                    this.pActiveIndicator.active = e
                }, t.prototype.SetHeadComponent = function(e, t, n, o) {
                    o ? this.headComponent.SetUI(e, t, o) : this.headComponent.SetUI(e, t), this.pName.string = n, this.pHeadComponentRoot.active = !0
                }, t.classNameString = "PrivateChannelItem", t.prefabPathName = "Chatting/Private/PrivateChannelItem", t.headComponentPrefab = null, t.prefabAsset = null, t.pool = new cc.NodePool, i([m(cc.Button)], t.prototype, "pCloseButton", void 0), i([m(d.default)], t.prototype, "pUnreadCounter", void 0), i([m(cc.Node)], t.prototype, "pActiveIndicator", void 0), i([m(cc.Button)], t.prototype, "pSwitchButton", void 0), i([m(cc.Node)], t.prototype, "pHeadComponentRoot", void 0), i([m(cc.Label)], t.prototype, "pName", void 0), n = i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../UI/Components/HeadComponent": "HeadComponent",
        "../../UI/Panel/ChattingMainPanel": "ChattingMainPanel",
        "./ChattingUnreadCounter": "ChattingUnreadCounter"
    }],
    ChattingPrivateContactItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d123e4r54tIdbEN3bRwS+yD", "ChattingPrivateContactItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../UI/Components/HeadComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pName = null, t.pPower = null, t.pStatus = null, t.pTime = null, t.pChatButton = null, t.pHeadButton = null, t.index = -1, t.player = new c.PlayerSimpleInfo, t.headComponent = null, t
                }
                var n;
                return r(t, e), n = t, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = o.sent(), o.label = 3;
                                case 3:
                                    return (t = e.getComponent(n)).InitNodesAndComponents(), [2, t]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    n.pool.put(e.node)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear()
                }, t.UnloadAsset = function() {
                    u.AssetsManager.Instance.UnloadAsset(n.prefabAsset), u.AssetsManager.Instance.UnloadAsset(n.headComponentPrefab), n.prefabAsset = null, n.headComponentPrefab = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, u.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = i.sent(), i.label = 2;
                                case 2:
                                    return null != n.headComponentPrefab ? [3, 4] : (t = n, [4, u.AssetsManager.Instance.LoadAsset(d.BundlePath.HeadComponent, cc.Prefab)]);
                                case 3:
                                    t.headComponentPrefab = i.sent(), i.label = 4;
                                case 4:
                                    return n.prefabAsset ? (o = cc.instantiate(n.prefabAsset), (r = o.getComponent(n)).pHeadButton.node.on("click", r.ShowPlayerInfoPanel.bind(r), this), r.headComponent = cc.instantiate(n.headComponentPrefab).getComponent(h.default), r.headComponent.node.setParent(r.pHeadButton.node), r.headComponent.node.setScale(.96), [2, o]) : (p.EZLog.Debug("ok in ChattingPrivateContactItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {
                    this.node
                }, t.prototype.ShowPlayerInfoPanel = function() {
                    this.player && l.UIManager.Instance.ShowUIPanel(d.PanelConfig.PlayerInfoPanel.Path, this.player.Uid)
                }, t.prototype.SetHeadComponent = function(e, t, n) {
                    n ? this.headComponent.SetUI(e, t, n) : this.headComponent.SetUI(e, t)
                }, t.classNameString = "ChattingPrivateContactItem", t.prefabPathName = "Chatting/Private/PrivateChattingContactItem", t.headComponentPrefab = null, t.prefabAsset = null, t.pool = new cc.NodePool, i([g(cc.Label)], t.prototype, "pName", void 0), i([g(cc.Label)], t.prototype, "pPower", void 0), i([g(cc.Label)], t.prototype, "pStatus", void 0), i([g(cc.Label)], t.prototype, "pTime", void 0), i([g(cc.Button)], t.prototype, "pChatButton", void 0), i([g(cc.Button)], t.prototype, "pHeadButton", void 0), n = i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../UI/Components/HeadComponent": "HeadComponent"
    }],
    ChattingPrivateContactListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "43ad0I7HWFBlZWtwnfwsb5P", "ChattingPrivateContactListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./AllianceBaseMainPanel"),
            f = e("./ChattingPrivateContactItem"),
            y = e("../../UI/Panel/ChattingMainPanel"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../../Consts/Consts"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.pTitleText = null, t.pNoAllianceDesc = null, t.pEmptyAllianceListDesc = null, t.pEmptyFriendsListDesc = null, t.pToggleAlliance = null, t.pToggleFriends = null, t.pContactScrollView = null, t.pContactScrollViewContent = null, t.mainAtlas = null, t.emojiAtlas = null, t.multiLangAtlas = null, t.privateChatUnlockLevel = 0, t.chattingPrivateContactItems = [], t
                }
                return r(t, e), t.prototype.InitNodesAndComponents = function() {}, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.node.active = !0, this.RefreshPanelData()
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InitNodesAndComponents(), this.privateChatUnlockLevel = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("PrivateChatUnlockLevel"), this.pTitleText.string = "chatting_chPrivate".ToUILocale(), this.pNoAllianceDesc.string = "chatting_privateNoAlliance".ToUILocale(), this.pEmptyAllianceListDesc.string = "chatting_privateEmptyAlliance".ToUILocale();
                    var t = "guild".ToUILocale();
                    cc.find("UnCheck/Label", this.pToggleAlliance).getComponent(cc.Label).string = t, cc.find("Check/Label", this.pToggleAlliance).getComponent(cc.Label).string = t, cc.find("Disable/Label", this.pToggleAlliance).getComponent(cc.Label).string = t;
                    var n = "friends_tittle".ToUILocale();
                    cc.find("UnCheck/Label", this.pToggleFriends).getComponent(cc.Label).string = n, cc.find("Check/Label", this.pToggleFriends).getComponent(cc.Label).string = n, cc.find("Disable/Label", this.pToggleFriends).getComponent(cc.Label).string = n, this.pToggleAlliance.on("click", this.LoadAllianceContactList, this), this.pToggleFriends.on("click", this.LoadFriendsContactList, this)
                }, t.prototype.LoadAllianceContactList = function() {
                    if (this.ResetUI(), p.DataCenter.Instance.AllianceId <= 0) this.pNoAllianceDesc.node.active = !0;
                    else {
                        var e = new u.Req_Alliance_GetMemeberList;
                        p.RpcComponent.Instance.Call(e, this.OnCallBackFromGetAllianceMemeberList.bind(this))
                    }
                }, t.prototype.OnCallBackFromGetAllianceMemeberList = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    t = 0, n = 0, o = e.MemberList.length, a.label = 1;
                                case 1:
                                    return n < o ? (r = e.MemberList[n]).Uid == p.DataCenter.Instance.Uid ? [3, 3] : [4, f.default.Get()] : [3, 4];
                                case 2:
                                    i = a.sent(), this.chattingPrivateContactItems.push(i), i.index = t, i.player.Uid = r.Uid, i.player.Zone = -1, i.player.Name = r.Name, i.player.HeadIcon = r.HeadIcon, i.player.HeadFrame = r.HeadFrame, i.player.Level = r.Level, i.player.Power = r.Power, i.node.setParent(this.pContactScrollViewContent), i.SetHeadComponent(r.HeadIcon, r.HeadFrame, r.Title), i.pName.string = r.Name, i.pPower.string = r.Power.toString(), h.default.LastActiveTimeForHumanReading(r.LastActiveTime, i.pTime), i.pTime.node.color = new cc.Color(104, 78, 60, 255), i.pStatus.node.active = !0, i.pStatus.string = h.default.ToTitleName(r.AlliancePost), i.pChatButton.name = t.toString(), i.pChatButton.node.on("click", this.OnClickChattingButton.bind(this), this), t++, a.label = 3;
                                case 3:
                                    return ++n, [3, 1];
                                case 4:
                                    return this.pContactScrollView.scrollToTop(), this.pEmptyAllianceListDesc.node.active = e.MemberList.length <= 0, [2]
                            }
                        })
                    })
                }, t.prototype.OnClickChattingButton = function(e) {
                    var t = Number.parseInt(e.name),
                        n = this.chattingPrivateContactItems[t].player;
                    n && p.DataCenter.Instance.InMyBlackList(n.Uid) ? d.UIUtlity.ShowFloatingHint("chatting_inBlacklist".ToUILocale()) : n.Level < this.privateChatUnlockLevel ? d.UIUtlity.ShowFloatingHint("chatting_privateLocked".ToUILocale()) : (this.LeavePanel(), y.default.singleton && y.default.singleton.OpenOrCreatePrivateSession(n, !0))
                }, t.prototype.LoadFriendsContactList = function() {
                    if (this.ResetUI(), !g.default.Instance.IsGameModuleUnlock(m.GameModuleType.Friends)[0]) return this.pEmptyFriendsListDesc.string = "chatting_friendsLocked".ToUILocale(), void(this.pEmptyFriendsListDesc.node.active = !0);
                    var e = new u.Req_Player_GetFriendList;
                    p.RpcComponent.Instance.Call(e, this.OnCallBackFromGetFriendsList.bind(this))
                }, t.prototype.OnCallBackFromGetFriendsList = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    e.Users && 0 != e.Users.length || (this.pEmptyFriendsListDesc.string = "chatting_privateEmptyFriends".ToUILocale(), this.pEmptyFriendsListDesc.node.active = !0), t = 0, n = e.Users.length, i.label = 1;
                                case 1:
                                    return t < n ? (o = e.Users[t], [4, f.default.Get()]) : [3, 4];
                                case 2:
                                    r = i.sent(), this.chattingPrivateContactItems.push(r), r.index = t, r.player.Uid = o.Uid, r.player.Zone = o.Zone, r.player.Name = o.Name, r.player.HeadIcon = o.HeadIcon, r.player.HeadFrame = o.HeadFrame, r.player.Level = o.Level, r.player.Power = o.Power, r.node.setParent(this.pContactScrollViewContent), r.SetHeadComponent(o.HeadIcon, o.HeadFrame, o.Title), r.pName.string = o.Name, r.pPower.string = o.Power.toString(), h.default.LastActiveTimeForHumanReading(o.LastActiveTime, r.pTime), r.pTime.node.color = new cc.Color(104, 78, 60, 255), r.pStatus.node.active = !1, r.pChatButton.name = t.toString(), r.pChatButton.node.on("click", this.OnClickChattingButton.bind(this), this), i.label = 3;
                                case 3:
                                    return ++t, [3, 1];
                                case 4:
                                    return this.pContactScrollView.scrollToTop(), [2]
                            }
                        })
                    })
                }, t.prototype.ResetUI = function() {
                    var e;
                    this.pNoAllianceDesc.node.active = !1, this.pEmptyAllianceListDesc.node.active = !1, this.pEmptyFriendsListDesc.node.active = !1;
                    for (var t = this.chattingPrivateContactItems.length - 1; t >= 0; t--)(e = this.chattingPrivateContactItems[t]).pChatButton.node.off("click"), f.default.Put(e);
                    this.chattingPrivateContactItems = []
                }, t.prototype.LeavePanel = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.InitData = function() {
                    l.EZLog.Debug("ok in AllianceListPanel InitData ...")
                }, t.prototype.RefreshPanelData = function() {
                    1 == cc.find("Check", this.pToggleAlliance).active ? this.LoadAllianceContactList() : this.LoadFriendsContactList()
                }, i([C(cc.Label)], t.prototype, "pTitleText", void 0), i([C(cc.Label)], t.prototype, "pNoAllianceDesc", void 0), i([C(cc.Label)], t.prototype, "pEmptyAllianceListDesc", void 0), i([C(cc.Label)], t.prototype, "pEmptyFriendsListDesc", void 0), i([C(cc.Node)], t.prototype, "pToggleAlliance", void 0), i([C(cc.Node)], t.prototype, "pToggleFriends", void 0), i([C(cc.ScrollView)], t.prototype, "pContactScrollView", void 0), i([C(cc.Node)], t.prototype, "pContactScrollViewContent", void 0), i([C(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([C(cc.SpriteAtlas)], t.prototype, "emojiAtlas", void 0), i([C(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../UI/Panel/ChattingMainPanel": "ChattingMainPanel",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel",
        "./ChattingPrivateContactItem": "ChattingPrivateContactItem"
    }],
    ChattingRightSideMessageItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e874evJ9spG1p5VjKpBpUfq", "ChattingRightSideMessageItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("./ChattingMainPanel"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/DataCenter"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("./ChattingLeftSideMessageItem"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("./ChatPosterItem"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pName = null, t.pContent = null, t.emojiAtlas = null, t.EmojiSprite = null, t.DesignationSprite = null, t.QuoteNode = null, t.VerticalLineNode = null, t.QuoteName = null, t.QuoteContent = null, t.Line1Node = null, t.MessageContentFrame = null, t.MessageContentBg = null, t.MessageArrow = null, t.DefaultMessageBg = null, t.DefaultMessageArrow = null, t.PosterNode = null, t.originalY = 9999, t._chatWinId = 0, t._loadAssets = [], t.OffsetChatWindowX = 23, t.index = -1, t.ts = 0, t.extraInfoId = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_CHECK_BUNDINGBOX, this.checkVisible, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CHECK_BUNDINGBOX, this.checkVisible, this)
                }, t.prototype.onLoad = function() {
                    this._color1 = new cc.Color(255, 255, 255), this._color2 = new cc.Color(98, 78, 60), this._color3 = new cc.Color(174, 168, 129)
                }, t.Get = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return n.pool.size() > 0 ? (e = n.pool.get(), [3, 3]) : [3, 1];
                                case 1:
                                    return [4, n.InstantiateNewItem()];
                                case 2:
                                    e = o.sent(), o.label = 3;
                                case 3:
                                    return (t = e.getComponent(n)).InitNodesAndComponents(), [2, t]
                            }
                        })
                    })
                }, t.Put = function(e) {
                    e.MessageType = void 0, n.pool.put(e.node), e.PosterItem && (I.default.Put(e.PosterItem), e.PosterItem = null)
                }, t.PutNodes = function(e) {
                    for (var t = e.length - 1; t >= 0; t--) n.pool.put(e[t])
                }, t.prototype.onDestroy = function() {
                    n.UnloadAsset(), n.pool.clear(), this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._color1 = null, this._color2 = null, this._color3 = null
                }, t.UnloadAsset = function() {
                    c.AssetsManager.Instance.UnloadAsset(n.prefabAsset), n.prefabAsset = null
                }, t.InstantiateNewItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != n.prefabAsset ? [3, 2] : (e = n, [4, c.AssetsManager.Instance.LoadAsset(n.prefabPathName)]);
                                case 1:
                                    e.prefabAsset = r.sent(), r.label = 2;
                                case 2:
                                    return n.prefabAsset ? ((t = cc.instantiate(n.prefabAsset)).y += .5 * p.default.messageContentPaddingVertical, (o = t.getComponent(n)).pContent.node.on(cc.Node.EventType.TOUCH_END, o.OnClickContent.bind(o), this), [2, t]) : (u.EZLog.Debug("ok in RightSideMessageItem.InstantiateNewItem ... loading " + n.prefabPathName + " failed."), [2, null])
                            }
                        })
                    })
                }, t.prototype.InitNodesAndComponents = function() {
                    9999 == this.originalY && (this.originalY = this.node.y), this.pContent.imageAtlas = this.emojiAtlas
                }, t.prototype.SetChatWindowId = function(e) {
                    this._chatWinId = e, this.pContent.node.color = e > 0 ? this._color1 : this._color2, this.QuoteName.node.color = e > 0 ? this._color1 : this._color3, this.QuoteContent.node.color = e > 0 ? this._color1 : this._color3
                }, t.prototype.SetMessageContent = function(e, t, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i, a, l, c, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    switch (e.Type) {
                                        case d.ChatMessageType.AssaultOperationSupport:
                                            return this.PosterNode.active = !0, this.MessageContentFrame.active = !1, this.SetPosterItem(e), this.node.height = 275, [2]
                                    }
                                    return this.PosterNode.active = !1, this.MessageContentFrame.active = !0, r = 0, this._chatWinId > 0 && (r = 2 * g.default.BoderChatWindowY), t ? (this.EmojiSprite.spriteFrame = t, i = n.MinContentWidth - 20, this.MessageContentFrame.width = i + 30, this.MessageContentFrame.height = i + 20, this.EmojiSprite.node.width = i, this.EmojiSprite.node.height = i, this.EmojiSprite.node.x = -.5 * i - 15, this.EmojiSprite.node.y = -.5 * i - 10, this.node.height = this.EmojiSprite.node.height + Math.abs(this.MessageContentFrame.parent.y) + p.default.messageItemGap + 40 + r, this.EmojiSprite.node.active = !0, this.pContent.node.active = !1, [4, this.SetMessageContentBg()]) : [3, 2];
                                case 1:
                                    return s.sent(), l = this.MessageContentFrame.width, c = this.MessageContentFrame.height, u = g.default.GetShowSize(l, c, this._chatWinId), this.SetMessageNode(u, !1), [2];
                                case 2:
                                    return o && e.Quote && (a = o.find(function(t) {
                                        return t._id == e.Quote
                                    })), this.QuoteNode.active = !1, this.Line1Node.active = !1, this.EmojiSprite.node.active = !1, this.pContent.node.active = !0, this.pContent.string = e.Content, this._showMaxWidth = this._chatWinId > 0 ? p.default.maxMessageWidth - 2 * g.default.BoderChatWindowX : p.default.maxMessageWidth, [4, this.SetMessageContentBg()];
                                case 3:
                                    return s.sent(), this.Line1Node.width = this._chatWinId > 0 ? p.default.maxMessageWidth - 2 * g.default.BoderChatWindowX : p.default.maxMessageWidth, this.Line1Node.getComponent(cc.Sprite).spriteFrame = (this._chatWinId, m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("line4")), a ? (this.QuoteNode.active = !0, this.QuoteName.string = a.Sender.Name + ":", this.QuoteContent.string = a.Content, this.QuoteContent.maxWidth = this._showMaxWidth - 20, this.pContent.maxWidth = this._showMaxWidth, this.VerticalLineNode.height = this.QuoteName.node.height + this.QuoteContent.node.height - 5, this.QuoteNode.height = this.QuoteName.node.height + this.QuoteContent.node.height - 5, l = this.pContent.node.width + p.default.messageContentPaddingHorizontal, c = this.QuoteNode.height + this.Line1Node.height + this.pContent.node.height + p.default.messageContentOffset + p.default.messageContentPaddingVertical, u = g.default.GetShowSize(l, c, this._chatWinId), this.SetMessageNode(u, !0), this.node.height = this.QuoteNode.height + this.Line1Node.height + this.pContent.node.height + p.default.messageContentOffset + Math.abs(this.MessageContentFrame.parent.y) + p.default.messageItemGap + r) : (this.QuoteNode.active = !1, this.pContent.maxWidth = e.MsgWidth > this._showMaxWidth ? this._showMaxWidth : 0, l = this.pContent.node.width + p.default.messageContentPaddingHorizontal, c = this.pContent.node.height + p.default.messageContentPaddingVertical, u = g.default.GetShowSize(l, c, this._chatWinId), this.SetMessageNode(u, !1), this.node.height = this.pContent.node.height + Math.abs(this.MessageContentFrame.parent.y) + p.default.messageItemGap + r), this.node.height += 40, [2]
                            }
                        })
                    })
                }, t.prototype.SetPosterItem = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.PosterItem ? [3, 2] : (t = this, [4, I.default.Get()]);
                                case 1:
                                    if (t.PosterItem = n.sent(), this.PosterItem.node.setParent(this.PosterNode), !this.isValid) return [2];
                                    n.label = 2;
                                case 2:
                                    return this.PosterItem.Init(e), [2]
                            }
                        })
                    })
                }, t.prototype.SetMessageNode = function(e, t) {
                    this.MessageContentFrame.width = e[0], this.MessageContentFrame.width = Math.max(this.MessageContentFrame.width, n.MinContentWidth), this.MessageContentFrame.height = e[1], this.MessageContentBg.node.width = this.MessageContentFrame.width + 25, this.MessageContentBg.node.height = this.MessageContentFrame.height + 20, this.MessageArrow.node.y = n.DefaultArrowY, this.pContent.node.x = 20 - this.MessageContentFrame.width, this.pContent.node.y = -10, t && (this.QuoteNode.x = this._chatWinId > 0 ? g.default.BoderChatWindowX : 20 - this.MessageContentFrame.width, this.pContent.node.y = this.QuoteNode.y - this.QuoteNode.height - 10)
                }, t.prototype.SetMessageContentBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._chatWinId > 0 ? [4, l.AssetsManager.Instance.LoadAsset("Chatting/ChatWindows/bg_" + this._chatWinId, cc.SpriteFrame)] : [3, 2];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._loadAssets.push(e), this.MessageContentBg.spriteFrame = e, [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    this.MessageContentBg.spriteFrame = this.DefaultMessageBg, t.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnClickContent = function() {
                    switch (this.MessageType) {
                        case d.ChatMessageType.AllianceAdvertise:
                            var e = f.DataCenter.Instance.AllianceId > 0;
                            c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AllianceDetailPanel.Path, this.extraInfoId, this, e);
                            break;
                        case d.ChatMessageType.CutPriceGift:
                            m.UIUtlity.ShowFloatingHint("cutPrice_notHelpSelf".ToUILocale())
                    }
                }, t.prototype.checkVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.classNameString = "RightSideMessageItem", t.prefabPathName = "Chatting/Private/RightSideMessageItem", t.prefabAsset = null, t.pool = new cc.NodePool, t.DefaultArrowY = -25, t.MinContentWidth = 256, i([v(cc.Label)], t.prototype, "pName", void 0), i([v(cc.RichText)], t.prototype, "pContent", void 0), i([v(cc.SpriteAtlas)], t.prototype, "emojiAtlas", void 0), i([v(cc.Sprite)], t.prototype, "EmojiSprite", void 0), i([v(cc.Sprite)], t.prototype, "DesignationSprite", void 0), i([v(cc.Node)], t.prototype, "QuoteNode", void 0), i([v(cc.Node)], t.prototype, "VerticalLineNode", void 0), i([v(cc.Label)], t.prototype, "QuoteName", void 0), i([v(cc.RichText)], t.prototype, "QuoteContent", void 0), i([v(cc.Node)], t.prototype, "Line1Node", void 0), i([v(cc.Node)], t.prototype, "MessageContentFrame", void 0), i([v(cc.Sprite)], t.prototype, "MessageContentBg", void 0), i([v(cc.Sprite)], t.prototype, "MessageArrow", void 0), i([v(cc.SpriteFrame)], t.prototype, "DefaultMessageBg", void 0), i([v(cc.SpriteFrame)], t.prototype, "DefaultMessageArrow", void 0), i([v(cc.Node)], t.prototype, "PosterNode", void 0), n = i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ChatPosterItem": "ChatPosterItem",
        "./ChattingLeftSideMessageItem": "ChattingLeftSideMessageItem",
        "./ChattingMainPanel": "ChattingMainPanel"
    }],
    ChattingSettingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6352aFxImtL1qvbf46kFNrJ", "ChattingSettingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../Consts/Consts"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("./ChattingCommonDefines"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Fixed), t.pTitleText = null, t.pDesc = null, t.pSaveButtonText = null, t.pChannelNameLabels = [], t.pChannelButtons = [], t.pChannelTips = [], t.pSaveButton = null, t.mainAtlas = null, t.emojiAtlas = null, t.multiLangAtlas = null, t.channelSettingEnums = [0, c.UserDataKey.ChatShowCountSystem, c.UserDataKey.ChatShowCountPrivate, c.UserDataKey.ChatShowCountAlliance, c.UserDataKey.ChatShowCountWorld, c.UserDataKey.ChatShowCountCrossZone], t
                }
                return r(t, e), t.prototype.InitNodesAndComponents = function() {}, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.node.active = !0, this.RefreshPanelData()
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InitNodesAndComponents();
                    for (var t = 1, n = this.pChannelButtons.length; t < n; ++t) this.pChannelButtons[t].node.on("click", this.OnClickChannelButton.bind(this), this);
                    for (this.pSaveButton.node.on("click", this.OnClickSaveButton.bind(this), this), this.pTitleText.string = "chatting_settingsTitle".ToUILocale(), this.pDesc.string = "chatting_settingsDesc".ToUILocale(), this.pSaveButtonText.string = "save".ToUILocale(), t = 1, n = this.pChannelNameLabels.length; t < n; ++t) this.pChannelNameLabels[t].string = p.ChannelNameUILocaleKey.ToKey(t).ToUILocale()
                }, t.prototype.OnClickChannelButton = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this.pChannelTips[t].active = !this.pChannelTips[t].active
                }, t.prototype.OnClickSaveButton = function() {
                    for (var e = [], t = 1, n = this.pChannelTips.length; t < n; ++t) 1 == t ? e.push(this.pChannelTips[t].active ? 1 : 0) : e.push(this.pChannelTips[t].active ? 0 : 1);
                    var o = new l.Req_Chat_SetShowMessageCount;
                    o.Settings = e, u.RpcComponent.Instance.Call(o, this.OnReturnedFromSetShowMessageCount.bind(this))
                }, t.prototype.OnReturnedFromSetShowMessageCount = function() {
                    this.RefreshPanelData(), this.LeavePanel()
                }, t.prototype.ResetUI = function() {}, t.prototype.LeavePanel = function() {
                    a.UIManager.Instance.BackUIPanel()
                }, t.prototype.InitData = function() {}, t.prototype.RefreshPanelData = function() {
                    for (var e = 1, t = this.pChannelButtons.length; e < t; ++e) {
                        var n = u.DataCenter.Instance.GetIntData(this.channelSettingEnums[e]);
                        this.pChannelTips[e].active = 1 == e ? 1 == n : 0 == n
                    }
                }, i([f(cc.Label)], t.prototype, "pTitleText", void 0), i([f(cc.Label)], t.prototype, "pDesc", void 0), i([f(cc.Label)], t.prototype, "pSaveButtonText", void 0), i([f([cc.Label])], t.prototype, "pChannelNameLabels", void 0), i([f([cc.Button])], t.prototype, "pChannelButtons", void 0), i([f([cc.Node])], t.prototype, "pChannelTips", void 0), i([f(cc.Button)], t.prototype, "pSaveButton", void 0), i([f(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([f(cc.SpriteAtlas)], t.prototype, "emojiAtlas", void 0), i([f(cc.SpriteAtlas)], t.prototype, "multiLangAtlas", void 0), i([h], t)
            }(a.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "./ChattingCommonDefines": "ChattingCommonDefines"
    }],
    ChattingUnreadCounter: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b3bde2BrVZFj72nqvHZ/jUV", "ChattingUnreadCounter");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RedDotNode = null, t.pCounter = null, t.pShowOnLoad = !1, t.currentNum = 0, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.active = this.pShowOnLoad
                }, t.prototype.Set = function(e, t) {
                    void 0 === t && (t = 0), e < 0 && (e = 0), this.currentNum != e && (this.currentNum = e, this.node.active = this.currentNum > 0, this.RedDotNode.active = !0, this.pCounter.string = this.currentNum > 99 ? "99+" : this.currentNum.toString())
                }, i([l(cc.Node)], t.prototype, "RedDotNode", void 0), i([l(cc.Label)], t.prototype, "pCounter", void 0), i([l], t.prototype, "pShowOnLoad", void 0), i([l], t.prototype, "currentNum", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    ChooseARuinsTreasure: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "72dafNsgNtNjYkUHePZjQhP", "ChooseARuinsTreasure");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../Components/ItemComponent"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip), t.TipLabel = null, t.BtnConfirmLabel = null, t.HighLightPicture = null, t.TreasureCards = [], t.TreasureItems = [], t.BtnConfirm = null, t._currentChosenIndex = -1, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    this.TipLabel.string = "treasure_chooseTip".ToUILocale(), this.BtnConfirmLabel.string = "ok".ToUILocale();
                    for (var e = 0; e < this.TreasureCards.length; e++) this.TreasureCards[e].on(cc.Node.EventType.TOUCH_END, this.OnCardClick, this);
                    this.BtnConfirm.node.on("click", this.OnBtnConfirmClick, this)
                }, t.prototype.InitData = function() {}, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this)
                }, t.prototype.OnCardClick = function(e) {
                    this._currentChosenIndex = Number.parseInt(e.target.name), this.HighLightPicture.isChildOf(this.TreasureCards[this._currentChosenIndex]) || (this.HighLightPicture.parent = this.TreasureCards[this._currentChosenIndex], this.HighLightPicture.position = cc.v3(0, 0, 0), this.HighLightPicture.zIndex = -1)
                }, t.prototype.OnBtnConfirmClick = function() {
                    this._currentChosenIndex < 0 ? s.UIUtlity.ShowFloatingHint("treasure_pleaseSelectTreasure".ToUILocale()) : this.Close()
                }, i([p(cc.Label)], t.prototype, "TipLabel", void 0), i([p(cc.Label)], t.prototype, "BtnConfirmLabel", void 0), i([p(cc.Node)], t.prototype, "HighLightPicture", void 0), i([p({
                    type: [cc.Node]
                })], t.prototype, "TreasureCards", void 0), i([p({
                    type: [l.ItemComponent]
                })], t.prototype, "TreasureItems", void 0), i([p(cc.Button)], t.prototype, "BtnConfirm", void 0), i([u], t)
            }(a.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ChooseHatchItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "68955mux05LtZP39uWbBggV", "ChooseHatchItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("./ItemComponent"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NoItem = null, t.AddButton = null, t.ItemComponentNode = null, t.CountLabel = null, t.NameLabel = null, t.SelectBorder = null, t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    if (void 0 === t && (t = u.ItemComponentType.ItemCommon), this._data = e, this._type = t, e) switch (this.SetNodeState(!0), this.SetItemComponent(e, t), t) {
                        case u.ItemComponentType.ItemCommon:
                            this.NameLabel.string = e.ItemId.ToItemName();
                            var n = d.DataCenter.Instance.GetItemCount(e.ItemId);
                            this.CountLabel.string = n.toString();
                            break;
                        case u.ItemComponentType.Pet:
                            var o = d.ConfigDataComponent.Instance.GetConfigById(c.PetBase_Config, e.ItemId);
                            this.NameLabel.node.color = p.UIUtlity.GetLabelColorByQuality(o.Quality), this.NameLabel.string = e.ItemId.ToPetName()
                    } else this.SetNodeState(!1), this.NameLabel.string = "petChoose_add".ToUILocale(), this.AddButton.node.on("click", this.OnAddButtonClick, this)
                }, t.prototype.SetNodeState = function(e) {
                    this.NoItem.active = !e, this.ItemComponentNode.active = e, this.CountLabel.node.active = e && this._type == u.ItemComponentType.ItemCommon
                }, t.prototype.SetItemComponent = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._itemComponent ? [3, 3] : this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent)];
                                case 1:
                                    if (n = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._itemPrefab = n, this._assets.push(n), r.label = 2;
                                case 2:
                                    (o = cc.instantiate(this._itemPrefab)).setParent(this.ItemComponentNode), o.name = this.node.name, this._itemComponent = o.getComponent(u.ItemComponent), r.label = 3;
                                case 3:
                                    return this._itemComponent.Init(e, t), this.SetItemMask(), [2]
                            }
                        })
                    })
                }, t.prototype.SetItemMask = function() {
                    d.DataCenter.Instance.GetItemCount(this._data.ItemId) > 0 ? this._itemComponent.DisableMask() : this._itemComponent.EnableMask()
                }, t.prototype.SetSelectFlagState = function(e) {
                    this.SelectBorder.active = e
                }, t.prototype.SetGetWayItemId = function(e, t) {
                    this._getWayItemId = e, this._backFunction = t
                }, t.prototype.OnAddButtonClick = function() {
                    this._backFunction(), l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, this._getWayItemId)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([g(cc.Node)], t.prototype, "NoItem", void 0), i([g(cc.Button)], t.prototype, "AddButton", void 0), i([g(cc.Node)], t.prototype, "ItemComponentNode", void 0), i([g(cc.Label)], t.prototype, "CountLabel", void 0), i([g(cc.Label)], t.prototype, "NameLabel", void 0), i([g(cc.Node)], t.prototype, "SelectBorder", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ChooseHatchPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a4fb3gVtbxLkpAd2eWim6BY", "ChooseHatchPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/HatchItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../../Consts/Consts"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.TittleLabel = null, t.TodayTokenLabel = null, t.ChooseNumebrLabel = null, t.HatchItemContainer = null, t.HatchNeedTime = null, t.StartHatchButton = null, t.StartHatchButtonLabel = null, t._hatchItemComponent = [], t._chooseItemCount = 0, t._chooseItemMaxCount = 1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HeroListPanel/PetPanel/Components/HatchItemComponent", cc.Prefab)];
                                case 1:
                                    return t._hatchItemComponentPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._petNestSid = t[0]
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TittleLabel.string = "pet_hatch_tittle".ToUILocale(), this.StartHatchButtonLabel.string = "pet_hatch_start".ToUILocale(), this.StartHatchButton.node.on("click", this.OnStartHatchButtonClick, this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetHatchItemContainer();
                    var n = f.DataCenter.Instance.GetItemCount(m.CommonItemId.PetWishItem);
                    this.TodayTokenLabel.string = "pet_hatch_gettoken".ToUILocale().Fmt(n), this.ChooseNumebrLabel.string = "select_count".ToUILocale().Fmt(this._chooseItemCount, this._chooseItemMaxCount)
                }, t.prototype.SetHatchItemContainer = function() {
                    for (var e = u.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, m.LevelParamType.PetHatchIds).Data, t = 0; t < e.length + 1; t++) {
                        var n = e[t];
                        if (this._hatchItemComponent.length <= t) {
                            var o = cc.instantiate(this._hatchItemComponentPrefab);
                            o.setParent(this.HatchItemContainer.node), o.name = t.toString(), this._hatchItemComponent.push(o.getComponent(d.default))
                        }
                        n > 0 ? this._hatchItemComponent[t].Init({
                            ItemId: n
                        }) : (this._hatchItemComponent[t].Init(), this._hatchItemComponent[t].SetGetWayItemId(m.CommonItemId.AbstractPetId, function() {
                            p.UIManager.Instance.BackUIPanel()
                        }))
                    }
                }, t.prototype.OnStartHatchButtonClick = function() {
                    if (null != this._chooseHatchItemIndex)
                        if (f.DataCenter.Instance.IsItemEnough(this._chooseHatchItemId, 1)) {
                            var e = new c.Req_Item_PetNestHatch;
                            e.ItemId = this._chooseHatchItemId, u.RpcComponent.Instance.Call(e, function() {
                                p.UIManager.Instance.BackUIPanel()
                            })
                        } else g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._chooseHatchItemId.ToItemName()))
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.HatchItemContainer.node.children.indexOf(t.parent.parent) && this._chooseHatchItemIndex != e) {
                        null != this._chooseHatchItemIndex && this._hatchItemComponent[this._chooseHatchItemIndex].SetSelectFlagState(!1);
                        var n = u.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, m.LevelParamType.PetHatchIds).Data;
                        this._chooseHatchItemIndex = e, this._chooseHatchItemId = n[this._chooseHatchItemIndex], this._hatchItemComponent[this._chooseHatchItemIndex].SetSelectFlagState(!0);
                        var o = f.ConfigDataComponent.Instance.GetConfigById(y.ItemConsume_Config, this._chooseHatchItemId);
                        this.HatchNeedTime.string = "pet_hatch_time".ToUILocale().Fmt(o.Param[0].Items[0]), this._chooseItemCount = this._chooseItemMaxCount, this.ChooseNumebrLabel.string = "select_count".ToUILocale().Fmt(this._chooseItemCount, this._chooseItemMaxCount), g.UIUtlity.ShowItemTip(this._chooseHatchItemId, t)
                    }
                }, i([C(cc.Label)], t.prototype, "TittleLabel", void 0), i([C(cc.Label)], t.prototype, "TodayTokenLabel", void 0), i([C(cc.Label)], t.prototype, "ChooseNumebrLabel", void 0), i([C(cc.Layout)], t.prototype, "HatchItemContainer", void 0), i([C(cc.Label)], t.prototype, "HatchNeedTime", void 0), i([C(cc.Button)], t.prototype, "StartHatchButton", void 0), i([C(cc.Label)], t.prototype, "StartHatchButtonLabel", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HatchItemComponent": "HatchItemComponent"
    }],
    CircleSkillItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "52947p+n19M4451GVnjppBa", "CircleSkillItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.LevelLabel = null, t.LevelContainer = null, t.BlackMaskNode = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnSkillItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnSkillItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    void 0 === t && (t = 0), this._fetterConfig = e, this._level = t, this.SetSkillIcon(), this.SetSkillLevel(), n && this.node.off(cc.Node.EventType.TOUCH_END, this.OnSkillItemClick, this)
                }, t.prototype.SetSkillIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset("CollectionPavilionPanel/Png/HeroFetter/" + this._fetterConfig.BackgroundPicture[2], cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.Icon.spriteFrame = e, this._loadedAssets.push(e), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetSkillLevel = function() {
                    this._level > 0 ? (this.LevelContainer.active = !0, this.LevelLabel.string = this._level.toString(), this.BlackMaskNode.active = !1) : (this.LevelContainer.active = !1, this.BlackMaskNode.active = !0)
                }, t.prototype.OnSkillItemClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.HeroFetterSkillTipPanel.Path, this._fetterConfig, this._level)
                }, t.prototype.onDestroy = function() {
                    if (this._loadedAssets.length > 0) {
                        for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                        this._loadedAssets = []
                    }
                }, i([d(cc.Sprite)], t.prototype, "Icon", void 0), i([d(cc.Label)], t.prototype, "LevelLabel", void 0), i([d(cc.Node)], t.prototype, "LevelContainer", void 0), i([d(cc.Node)], t.prototype, "BlackMaskNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine"
    }],
    CircusMazeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "729adppb+hDMJl0V6xzz5Fl", "CircusMazeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../../Consts/Etc"),
            m = e("./CircusMazePanel"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property;
        (function(e) {
            e[e.NotOpen = 0] = "NotOpen", e[e.NoSettlement = 1] = "NoSettlement", e[e.Opened = 2] = "Opened"
        })(l || (l = {}));
        var b = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Bg1 = null, t.Bg2 = null, t.Icon = null, t.ItemCountLabel = null, t.SelectNode = null, t._loadAssets = [], t._isOpening = !1, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this._gameNames = ["", "circusMaze_knifr_title".ToUILocale(), "circusMaze_cook".ToUILocale(), "circusMaze_flappyBird".ToUILocale()]
            }, t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
            }, t.prototype.Init = function(e, t) {
                this._atlas = e, this._config = t
            }, t.prototype.InitData = function(e, t) {
                this._index = e, this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._config._id);
                var n = this._model.IntArray[0] + 1 > this._config.__Turns.length ? this._config.__Turns.length : this._model.IntArray[0] + 1;
                if (this._eventId = 0, 0 == t) this._status = l.NotOpen;
                else {
                    var o = Math.abs(t) - 1;
                    this._eventId = this._config.__Turns[n - 1].Content[o], t > 0 ? this._status = l.Opened : t < 0 && (this._status = l.NoSettlement)
                }
                this.Bg2.active = this._status == l.NotOpen, this.Bg1.active = this._status != l.NotOpen, this.SelectNode.active = this._status == l.Opened, this.SetEventConfig(), this.SetIcon()
            }, t.prototype.SetEventConfig = function() {
                var e = this;
                this._eventConfig || (this._eventConfig = {}, this._config.__Events.forEach(function(t) {
                    e._eventConfig[t.Id] = t
                }))
            }, t.prototype.SetIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                if (this.Icon.node.active = this._status != l.NotOpen, this.Icon.spriteFrame = null, this.ItemCountLabel.node.active = !1, this._status == l.NotOpen) return [3, 6];
                                if (!(e = this._eventConfig[this._eventId])) return [3, 6];
                                switch (e.Type) {
                                    case d.CircusMazeEventType.Rewards:
                                        return [3, 1];
                                    case d.CircusMazeEventType.Game:
                                        return [3, 3];
                                    case d.CircusMazeEventType.Double:
                                    case d.CircusMazeEventType.Random:
                                    case d.CircusMazeEventType.Key:
                                        return [3, 4]
                                }
                                return [3, 5];
                            case 1:
                                return t = e.Param[0].Items[0], this.ItemCountLabel.string = e.Param[0].Items[1].toString(), this.ItemCountLabel.node.active = !0, n = I.default.Instance.GetItemPathById(t), [4, c.AssetsManager.Instance.LoadAsset(n, cc.SpriteFrame)];
                            case 2:
                                return o = i.sent(), this.isValid ? (this._loadAssets.push(o), this.Icon.spriteFrame = o, [3, 6]) : (c.AssetsManager.Instance.UnloadAsset(o), [2]);
                            case 3:
                                return r = e.Param[0].Items[0], this.Icon.spriteFrame = this._atlas.getSpriteFrame("icon" + e.Type + "_" + r), [3, 6];
                            case 4:
                                return this.Icon.spriteFrame = this._atlas.getSpriteFrame("icon" + e.Type), [3, 6];
                            case 5:
                                return [3, 6];
                            case 6:
                                return [2]
                        }
                    })
                })
            }, t.prototype.CheckIsAllOpen = function() {
                this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._config._id);
                for (var e = 0; e < this._model.Int2DArray[0].Items.length; e++)
                    if (0 == this._model.Int2DArray[0].Items[e]) return !1;
                return !0
            }, t.prototype.SetIsOpening = function(e) {
                this._isOpening = e
            }, t.prototype.CheckItemCount = function() {
                var e = m.default.GetRealRecoverTime(this._config);
                return !(Math.floor((u.RpcComponent.Instance.ServerTime - e) / (this._config.CustomPart.RecoverSpTime * g.Etc.MinuteDuration)) + u.DataCenter.Instance.GetItemCount(this._config.CustomPart.ItemId) < this._config.CustomPart.CostSp && (y.UIUtlity.ShowFloatingHint("circusMaze_item_not_enough".ToUILocale()), 1))
            }, t.prototype.OnTouchEnd = function() {
                var e = this;
                if (this._status != l.Opened && !this._isOpening)
                    if (this._status == l.NotOpen) {
                        if (!this.CheckItemCount()) return;
                        var t = new p.Req_Activity_CircusMazeAct;
                        t.ActivityId = this._config._id, t.Index = this._index, u.RpcComponent.Instance.Call(t, function(t) {
                            var n = [];
                            n.push(e._index), t.RandomIndexs && t.RandomIndexs.length > 0 && (n = n.concat(t.RandomIndexs)), t.Rewards && t.Rewards.length > 0 && y.UIUtlity.ShwDisplayRewardPanel(t.Rewards), c.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CIRCUSMAZE_REFRESH_ONE, n)
                        })
                    } else {
                        var n = this._eventConfig[this._eventId];
                        if (n.Type == d.CircusMazeEventType.Game) y.UIUtlity.ShowHintPanel("", "circusMaze_check_start".ToUILocale().Fmt(this._gameNames[n.Param[0].Items[0]]), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                            switch (n.Param[0].Items[0]) {
                                case d.CircusMazeGameType.Knife:
                                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.KnifeTrainingPartPanel.Path, e._index);
                                    break;
                                case d.CircusMazeGameType.PickFood:
                                    e.InitCookConfig(n), c.UIManager.Instance.ShowUIPanel(h.PanelConfig.CookHouseGamePanel.Path, null, d.HappyTurnType.PartGame, e._cookConfigs, e._index);
                                    break;
                                case d.CircusMazeGameType.Fly:
                                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.FlappyBirdPanel.Path, e._index)
                            }
                        });
                        else if (n.Type == d.CircusMazeEventType.Key) {
                            var o = this.CheckIsAllOpen(),
                                r = function() {
                                    var e = new p.Req_Activity_CircusMazeAct;
                                    e.ActivityId = this._config._id, e.Index = this._index, u.RpcComponent.Instance.Call(e, function() {
                                        c.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CIRCUSMAZE_REFRESH_ALL)
                                    })
                                }.bind(this);
                            o ? r() : y.UIUtlity.ShowHintPanel("", "circusMaze_check_next".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                r()
                            })
                        }
                    }
            }, t.prototype.InitCookConfig = function(e) {
                if (!this._cookConfigs) {
                    this._cookConfigs = [];
                    for (var t = 1; t <= 5; t++) {
                        var n = new p.PickFood_Foods;
                        n.Id = t, n.CrazyPoint = 1, n.Score = 0, n.Type = 1, this._cookConfigs.push(n)
                    }
                    for (t = 101; t <= 105; t++) {
                        var o = new p.PickFood_Foods;
                        o.Id = t, o.CrazyPoint = 1, o.Score = 0, o.Type = 2, this._cookConfigs.push(o)
                    }
                    var r = new p.PickFood_Foods;
                    r.Id = 1001, r.CrazyPoint = 0, r.Score = 0, r.Type = 3, this._cookConfigs.push(r)
                }
                this._cookConfigs.forEach(function(t) {
                    t.Id < 1e3 ? t.Score = e.Param[0].Items[5] ? e.Param[0].Items[5] : 0 : t.Score = e.Param[0].Items[6] ? e.Param[0].Items[6] : 0
                })
            }, t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([v(cc.Node)], t.prototype, "Bg1", void 0), i([v(cc.Node)], t.prototype, "Bg2", void 0), i([v(cc.Sprite)], t.prototype, "Icon", void 0), i([v(cc.Label)], t.prototype, "ItemCountLabel", void 0), i([v(cc.Node)], t.prototype, "SelectNode", void 0), i([C], t)
        }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CircusMazePanel": "CircusMazePanel"
    }],
    CircusMazePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "15c46p8GVZGWo0Y2aMVZY6m", "CircusMazePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/CurrencyBarItem"),
            f = e("../../../Consts/Etc"),
            y = e("./CircusMazeComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/CommonRewardBox"),
            b = e("./CommonRatePanel"),
            S = e("../Components/CustomProgressBar"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RuleButton = null, t.Title = null, t.RewardButton = null, t.RewardLabel = null, t.PowerProgressBar = null, t.PowerLabel = null, t.CurrencyBarItem = null, t.RecoverTime = null, t.TurnLabel = null, t.CardContent = null, t.Wartoken1Button = null, t.Wartoken1Label = null, t.GiftButton = null, t.GiftLabel = null, t.ReturnButton = null, t.ConsumeLabel = null, t.Time = null, t._curRange = 0, t._cardComponents = [], t._rewardBoxComponents = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_CIRCUSMAZE_REFRESH_ONE, this.OnRefreshOne, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_CIRCUSMAZE_REFRESH_ALL, this.OnRefreshAll, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_CIRCUSMAZE_DIAMOND_COUNT, this.OnSettlement, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CIRCUSMAZE_REFRESH_ONE, this.OnRefreshOne, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CIRCUSMAZE_REFRESH_ALL, this.OnRefreshAll, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CIRCUSMAZE_DIAMOND_COUNT, this.OnSettlement, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CircusMazePanel/Components/CircusMazeComponent", cc.Prefab), n = this.LoadDynamicAsset("CircusMazePanel/PNG/CircusMaze", cc.SpriteAtlas), o = this.LoadDynamicAsset("CommonPanel/SubItems/CommonRewardBox", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._cardPrefab = e[0], r._atlas = e[1], r._rewardBoxPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RewardLabel.string = "circusMaze_preview".ToUILocale(), this.Wartoken1Label.string = "circusMaze_wartoken".ToUILocale(), this.GiftLabel.string = "circusMaze_giftPack".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.Wartoken1Button.node.on("click", this.OnWartoken1ButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._curRange = t[1], this._config = u.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._config.Common.Title, this.ConsumeLabel.string = "circusMaze_consume".ToUILocale().Fmt(this._config.CustomPart.CostSp), this._deadLine = I.default.Instance.ComputeDeadTime(this._config.Common), this.SetEventConfig()
                }, t.prototype.SetEventConfig = function() {
                    var e = this;
                    this._eventConfig || (this._eventConfig = {}, this._config.__Events.forEach(function(t) {
                        e._eventConfig[t.Id] = t
                    }))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._config._id), this.SetItemCount(), this.IsReDisPlay || (this.SetTime(), this.SetProgress(), this.SetRecoverTime(), this.CurrencyBarItem.SetClickCallBack(this.OnGiftButtonClick.bind(this)), this.SetTurn(), this.SetCardContent(), this.Wartoken1Button.node.active = this._config.Common.JumpId > 0), this.BindReddot()
                }, t.prototype.SetTime = function() {
                    this.CountDownTime(), this.unschedule(this.CountDownTime), this.schedule(this.CountDownTime, 1)
                }, t.prototype.CountDownTime = function() {
                    var e = this._deadLine - u.RpcComponent.Instance.ServerTime;
                    if (e <= 0) return this.unschedule(this.CountDownTime), void l.UIManager.Instance.BackUIPanel();
                    this.Time.string = "openServer_frameCountDown".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetProgress = function() {
                    var e = this;
                    this._maxProgress || (this._maxProgress = this._config.CustomPart.ProgressRewards[this._config.CustomPart.ProgressRewards.length - 1].Items[0]);
                    var t = this._curRange > this._maxProgress ? this._maxProgress : this._curRange;
                    this.PowerProgressBar.progress = t / this._maxProgress, this.PowerLabel.string = t.FmtCurrency() + "/" + this._maxProgress.FmtCurrency(), this._progressRewardConfig || (this._progressRewardConfig = {}, this._config.__Rewards.forEach(function(t) {
                        e._progressRewardConfig[t.Id] = t
                    }));
                    var n = this._config.CustomPart.ProgressRewards.length,
                        o = this.PowerProgressBar.node.width / n,
                        r = this._model.Int2DArray[1] && this._model.Int2DArray[1].Items ? this._model.Int2DArray[1].Items : [];
                    this._config.CustomPart.ProgressRewards.forEach(function(t, n) {
                        if (!e._rewardBoxComponents[n]) {
                            var i = cc.instantiate(e._rewardBoxPrefab);
                            i.parent = e.PowerProgressBar.node, i.x = o * (n + 1), e._rewardBoxComponents[n] = i.getComponent(v.default)
                        }
                        var a = {};
                        a.RewardType = n == e._config.CustomPart.ProgressRewards.length - 1 ? v.CommonRewardBoxType.Final : v.CommonRewardBoxType.Normal, a.Box1sprite = e._atlas.getSpriteFrame("rewardBox2_xmas"), a.Box1Masksprite = e._atlas.getSpriteFrame("rewardBoxMask2"), a.Box2sprite = e._atlas.getSpriteFrame("rewardBox3_xmas"), a.Box2Masksprite = e._atlas.getSpriteFrame("rewardBoxMask3"), a.Index = n, a.CurNodePoint = t.Items[0], a.IsReceive = r.includes(n), a.RealPoint = e._curRange, a.Callback = e.OnClickProgressReward.bind(e);
                        var s = [];
                        e._progressRewardConfig[t.Items[1]].Rewards.forEach(function(e) {
                            var t = e.Items[0],
                                n = e.Items[1];
                            s.push({
                                ItemId: t,
                                Count: n
                            })
                        }), a.RewardArray = s, e._rewardBoxComponents[n].Init(a)
                    })
                }, t.GetRealRecoverTime = function(e) {
                    var t = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, e._id),
                        n = u.RpcComponent.Instance.ServerTime,
                        o = e.CustomPart.RecoverSpTime * p.Etc.MinuteDuration;
                    return Math.max(n - e.CustomPart.MaxSp * o, t.IntArray[1])
                }, t.prototype.SetItemCount = function() {
                    var e = n.GetRealRecoverTime(this._config);
                    this._count1 = Math.floor((u.RpcComponent.Instance.ServerTime - e) / (this._config.CustomPart.RecoverSpTime * f.Etc.MinuteDuration));
                    var t = u.DataCenter.Instance.GetItemCount(this._config.CustomPart.ItemId),
                        o = this._count1 + t >= 0 ? this._count1 + t : 0;
                    this.CurrencyBarItem.Init(this._config.CustomPart.ItemId, !1, o)
                }, t.prototype.SetRecoverTime = function() {
                    if (this.RecoverTime.node.active = this._count1 < this._config.CustomPart.MaxSp, this._count1 < this._config.CustomPart.MaxSp) {
                        var e = n.GetRealRecoverTime(this._config),
                            t = (u.RpcComponent.Instance.ServerTime - e) % (this._config.CustomPart.RecoverSpTime * f.Etc.MinuteDuration);
                        this._nextRefreshTime = u.RpcComponent.Instance.ServerTime + (this._config.CustomPart.RecoverSpTime * f.Etc.MinuteDuration - t), this.CountDownRecoverTime(), this.unschedule(this.CountDownRecoverTime), this.schedule(this.CountDownRecoverTime, 1)
                    }
                }, t.prototype.CountDownRecoverTime = function() {
                    if (u.RpcComponent.Instance.ServerTime >= this._nextRefreshTime) return this.unschedule(this.CountDownRecoverTime), this.SetItemCount(), void this.SetRecoverTime();
                    var e = this._nextRefreshTime - u.RpcComponent.Instance.ServerTime;
                    this.RecoverTime.string = "circusMaze_recover_time".ToUILocale().Fmt(e.FmtRemainTime())
                }, t.prototype.SetTurn = function() {
                    var e = this._model.IntArray[0] + 1 > this._config.__Turns.length ? this._config.__Turns.length : this._model.IntArray[0] + 1,
                        t = this._config.__Turns.length;
                    this.TurnLabel.string = "circusMaze_turn".ToUILocale().Fmt(e, t)
                }, t.prototype.SetCardContent = function() {
                    var e = this;
                    this._cardComponents.forEach(function(e) {
                        e.node.active = !1
                    }), this._model.Int2DArray[0].Items.forEach(function(t, n) {
                        if (!e._cardComponents[n]) {
                            var o = cc.instantiate(e._cardPrefab);
                            o.parent = e.CardContent, e._cardComponents[n] = o.getComponent(y.default)
                        }
                        e._cardComponents[n].node.active = !0, e._cardComponents[n].Init(e._atlas, e._config), e._cardComponents[n].InitData(n, t)
                    })
                }, t.prototype.BindReddot = function() {
                    C.RedDotManager.Instance.BindInstance(this.Wartoken1Button.node, C.RedDotManager.Instance.InstanceRedDot.CircusMazeWarTokenNode, {
                        Value1: this._config._id
                    }), C.RedDotManager.Instance.BindInstance(this.GiftButton.node, C.RedDotManager.Instance.InstanceRedDot.CircusMazeGiftNode, {
                        Value1: this._config._id
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "circusMaze_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["circusMaze_rule_content".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnRewardButtonClick = function() {
                    for (var e = [], t = this._model.IntArray[0] + 1 > this._config.__Turns.length ? this._config.__Turns.length : this._model.IntArray[0] + 1, n = 0; n < this._config.__Turns[t - 1].Content.length; n++) {
                        var o = this._config.__Turns[t - 1].Content[n],
                            r = this._eventConfig[o].Type;
                        if (r != p.CircusMazeEventType.Empty) {
                            var i = new c.IntArray;
                            switch (r) {
                                case p.CircusMazeEventType.Rewards:
                                    var a = this._eventConfig[o].Param[0].Items[0],
                                        s = this._eventConfig[o].Param[0].Items[1];
                                    i.Items = [a, s];
                                    break;
                                case p.CircusMazeEventType.Game:
                                case p.CircusMazeEventType.Double:
                                case p.CircusMazeEventType.Random:
                                case p.CircusMazeEventType.Key:
                                    a = this._eventConfig[o].ItemId, i.Items = [a, 1]
                            }
                            e.push(i)
                        }
                    }
                    l.UIManager.Instance.ShowUIPanel(_.PanelConfig.CommonRatePanel.Path, b.ShowRateType.CircusMaze, e)
                }, t.prototype.OnWartoken1ButtonClick = function() {
                    I.default.ShowPanelByGetWayId(this._config.Common.JumpId)
                }, t.prototype.OnGiftButtonClick = function() {
                    var e = this._config.Common.Pictures,
                        t = {
                            ActivityId: this._config._id,
                            ActivityGiftPackData: this._config._Packs,
                            Deadline: I.default.Instance.ComputeDeadTime(this._config.Common),
                            BannerPath: e[0],
                            Title: "circusMaze_giftPack".ToUILocale()
                        };
                    l.UIManager.Instance.ShowUIPanel(_.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnRefreshOne = function(e) {
                    this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._config._id), this.SetItemCount(), this.SetRecoverTime(), this.SetCardIsOpening(!0), this.TurnCard(e)
                }, t.prototype.TurnCard = function(e) {
                    var t = this,
                        n = e.shift(),
                        o = this._model.Int2DArray[0].Items[n],
                        r = this._cardComponents[n].node;
                    cc.tween(r).to(.5, {
                        scaleX: 0
                    }).call(function() {
                        t._cardComponents[n].InitData(n, o)
                    }).to(.5, {
                        scaleX: 1
                    }).call(function() {
                        e.length > 0 ? t.TurnCard(e) : t.SetCardIsOpening(!1);
                        var r = Math.abs(o) - 1,
                            i = t._config.__Turns[t._model.IntArray[0]].Content[r],
                            a = t._eventConfig[i];
                        a && a.Type == m.CircusMazeEventType.Game && t._cardComponents[n].OnTouchEnd()
                    }).start()
                }, t.prototype.SetCardIsOpening = function(e) {
                    this._cardComponents.forEach(function(t) {
                        t.SetIsOpening(e)
                    })
                }, t.prototype.OnRefreshAll = function() {
                    this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._config._id), this.SetItemCount(), this.SetRecoverTime(), this.SetTurn(), this.SetCardContent()
                }, t.prototype.OnSettlement = function(e, t) {
                    var n = this,
                        o = this._model.Int2DArray[0].Items[e],
                        r = Math.abs(o) - 1,
                        i = this._config.__Turns[this._model.IntArray[0]].Content[r],
                        a = this._eventConfig[i];
                    if (a && a.Type == m.CircusMazeEventType.Game) {
                        var s, l, p = a.Param[0].Items[2],
                            h = a.Param[0].Items[3];
                        switch (a.Param[0].Items[0]) {
                            case m.CircusMazeGameType.Knife:
                                s = t * a.Param[0].Items[4];
                                break;
                            case m.CircusMazeGameType.PickFood:
                                s = Math.floor(t * a.Param[0].Items[4] / 100);
                                break;
                            case m.CircusMazeGameType.Fly:
                                s = t * a.Param[0].Items[4]
                        }
                        l = s < p ? p : s > h ? h : s;
                        var f = new c.Req_Activity_CircusMazeAct;
                        f.ActivityId = this._config._id, f.Index = e, f.Param = [l], u.RpcComponent.Instance.Call(f, function(t) {
                            d.UIUtlity.ShwDisplayRewardPanel(t.Rewards), n._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, n._config._id);
                            var o = n._model.Int2DArray[0].Items[e];
                            n._cardComponents[e].InitData(e, o)
                        })
                    }
                }, t.prototype.OnClickProgressReward = function(e) {
                    var t = this,
                        n = new c.Req_Activity_CircusMazeDrawProgressRewards;
                    n.ActivityId = this._config._id, n.Indexs = [e], u.RpcComponent.Instance.Call(n, function(n) {
                        d.UIUtlity.ShwDisplayRewardPanel(n.Rewards);
                        var o = t._rewardBoxComponents[e].Data;
                        o.IsReceive = !0, t._rewardBoxComponents[e].Init(o)
                    })
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "RewardButton", void 0), i([A(cc.Label)], t.prototype, "RewardLabel", void 0), i([A(S.default)], t.prototype, "PowerProgressBar", void 0), i([A(cc.Label)], t.prototype, "PowerLabel", void 0), i([A(h.default)], t.prototype, "CurrencyBarItem", void 0), i([A(cc.RichText)], t.prototype, "RecoverTime", void 0), i([A(cc.Label)], t.prototype, "TurnLabel", void 0), i([A(cc.Node)], t.prototype, "CardContent", void 0), i([A(cc.Button)], t.prototype, "Wartoken1Button", void 0), i([A(cc.Label)], t.prototype, "Wartoken1Label", void 0), i([A(cc.Button)], t.prototype, "GiftButton", void 0), i([A(cc.Label)], t.prototype, "GiftLabel", void 0), i([A(cc.Button)], t.prototype, "ReturnButton", void 0), i([A(cc.Label)], t.prototype, "ConsumeLabel", void 0), i([A(cc.RichText)], t.prototype, "Time", void 0), n = i([P], t)
            }(l.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CommonRewardBox": "CommonRewardBox",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "./CircusMazeComponent": "CircusMazeComponent",
        "./CommonRatePanel": "CommonRatePanel"
    }],
    CircusMazePreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4f1e8soNTVNUZXfWs1k8ZK/", "CircusMazePreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/DataUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Content = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._config = t[0], this._atlas = t[1], this.SetEventConfig()
                }, t.prototype.SetEventConfig = function() {
                    var e = this;
                    this._eventConfig || (this._eventConfig = {}, this._config.__Events.forEach(function(t) {
                        e._eventConfig[t.Id] = t
                    }))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.IsReDisPlay || (this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._config._id), this.Title.string = "circusMaze_preview_title".ToUILocale(), this.SetCardContent())
                }, t.prototype.SetCardContent = function() {
                    for (var e = this._model.IntArray[0] + 1, t = 0; t < this._config.__Turns[e - 1].Content.length; t++) {
                        var n = this._config.__Turns[e - 1].Content[t],
                            o = this._eventConfig[n].Type;
                        if (o != p.CircusMazeEventType.Empty) {
                            var r = new cc.Node;
                            r.setContentSize(200, 200), r.parent = this.Content;
                            var i = r.addComponent(cc.Sprite);
                            switch (i.sizeMode = cc.Sprite.SizeMode.CUSTOM, o) {
                                case p.CircusMazeEventType.Rewards:
                                    var a = this._eventConfig[n].Param[0].Items[0];
                                    this.SetItemIcon(i, a);
                                    break;
                                case p.CircusMazeEventType.Game:
                                    var s = this._eventConfig[n].Param[0].Items[0];
                                    i.spriteFrame = this._atlas.getSpriteFrame("icon" + o + "_" + s);
                                    break;
                                case p.CircusMazeEventType.Double:
                                case p.CircusMazeEventType.Random:
                                case p.CircusMazeEventType.Key:
                                    i.spriteFrame = this._atlas.getSpriteFrame("icon" + o)
                            }
                        }
                    }
                }, t.prototype.SetItemIcon = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return n = d.default.Instance.GetItemPathById(t), [4, this.LoadDynamicAsset(n, cc.SpriteFrame)];
                                case 1:
                                    return o = r.sent(), this.isValid ? (e.spriteFrame = o, [2]) : (l.AssetsManager.Instance.UnloadAsset(o), [2])
                            }
                        })
                    })
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Node)], t.prototype, "Content", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    CitySelectionItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "08c07uWFslDXrFge/YXqAc5", "CitySelectionItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Components/Components"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../Panel/TradeWarMapPanel"),
            d = e("../../../EZFramework/EZFramework"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Info1 = null, t.Info2 = null, t.Info3 = null, t.Info4 = null, t.Info5 = null, t.CityIcon = null, t.GotoBtn = null, t.GotoBtnLabel = null, t.BattleBtn = null, t.BattleBtnLabel = null, t.Tag = null, t.CityIconAtlas = null, t._needInit = !0, t
                }
                return r(t, e), t.prototype.InitTradeMode = function(e, t) {
                    if (this._needInit) {
                        this._needInit = !1, this.GotoBtn.node.active = !0, this.BattleBtn.node.active = !1, this.GotoBtn.node.on("click", this.OnGotoBtnClick, this), this.GotoBtnLabel.string = "task_goto".ToUILocale(), this.Info5.node.active = !1, this.Info1.node.color = (new cc.Color).fromHEX("#FFC556");
                        var n = this.Info1.node.getComponent(cc.LabelOutline);
                        n.color = (new cc.Color).fromHEX("#4E2A1C"), n.width = 3, this.Info4.node.color = (new cc.Color).fromHEX("#79A729")
                    }
                    this._tradeData = e, this.Info1.string = ("tradeWar_cityName" + this._tradeData.CityIndex).ToUILocale(), this.Info2.string = this._tradeData.DiscountGoodsName, this.Info3.string = this._tradeData.LackGoodsName, this.Info4.string = "+" + this._tradeData.Profit.FmtCurrency(), !t && this._tradeData.Profit ? this.Tag.active = !0 : this.Tag.active = !1
                }, t.prototype.InitBattleMode = function(e, t, n) {
                    this._needInit && (this._needInit = !1, this.GotoBtn.node.active = !1, this.BattleBtn.node.active = !0, this.BattleBtn.node.on("click", this.OnBattleBtnClick, this), this.BattleBtnLabel.string = "StrongholdWar_Battle_Attack".ToUILocale(), this.Info1.node.color = (new cc.Color).fromHEX("#FFC556"), this.Info1.node.getComponent(cc.LabelOutline).enabled = !1, this.Info4.node.active = !1, this.Info5.node.active = !1, this.Tag.active = !1, this._basePanel = n), this._battleData = e, this.Info1.string = (t + 1).toString(), this.Info2.string = ("tradeWar_cityName" + this._battleData.CityIndex).ToUILocale(), this._score = this._battleData.Score > 0 ? this._battleData.Score : 0, this.Info3.string = this._score.toString(), this._score ? u.UIUtlity.OffNodeGray(this.BattleBtn.node) : u.UIUtlity.OnNodeGray(this.BattleBtn.node)
                }, t.prototype.InitCityRankMode = function(e, t, n) {
                    this._needInit && (this._needInit = !1, this.GotoBtn.node.active = !1, this.BattleBtn.node.active = !1, this.Info2.node.parent.y = -20, this.CityIcon.node.active = !0, this.Info1.node.color = (new cc.Color).fromHEX("#FFC556"), this.Info1.node.getComponent(cc.LabelOutline).enabled = !1, this.Tag.active = !1, this._basePanel = n), this._cityRankData = e, this.Info1.string = (t + 1).toString(), this.Info2.string = ("tradeWar_cityName" + this._cityRankData.CityIndex).ToUILocale(), this._score = this._cityRankData.Score > 0 ? this._cityRankData.Score : 0, this.Info3.string = this._score.toString(), this._cityRankData.OwnerName ? this.Info4.string = this._cityRankData.OwnerName : this.Info4.string = "PlayerSetting_noAlliance".ToUILocale(), this.Info5.string = this._cityRankData.CityPopulation.toString(), this.CityIcon.spriteFrame = this.CityIconAtlas.getSpriteFrame("cityIcon" + this._cityRankData.CityIndex)
                }, t.prototype.OnGotoBtnClick = function() {
                    var e = new a.Req_Activity_TradeWarGoToCity;
                    e.ActivityId = this._tradeData.ActivityId, e.CityId = this._tradeData.CityId, l.RpcComponent.Instance.Call(e, function() {
                        p.default.NeedRelocate = !0, p.default.AvatarInCenter = !0, s.UIManager.Instance.QuitPanelStack(c.PanelConfig.TradeWarTargetCitySelectionPanel.Path), s.UIManager.Instance.QuitPanelStack(c.PanelConfig.TradeWarTradePanel.Path)
                    })
                }, t.prototype.OnBattleBtnClick = function() {
                    if (this._score)
                        if (this._battleData.LeftBattleTimes + l.DataCenter.Instance.GetItemCount(this._battleData.CostItemId) <= 0) u.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._battleData.CostItemId.ToItemName()));
                        else {
                            var e = l.DataCenter.Instance.GetDataById(a.UserActivity_Model, this._basePanel.ActivityConfig._id),
                                t = {
                                    ItemId: this._basePanel.ActivityConfig.CustomPart.ItemIds[3],
                                    LeftTimes: this._basePanel.ActivityConfig.CustomPart.DailyAttackCount - e.IntArray[0] >= 0 ? this._basePanel.ActivityConfig.CustomPart.DailyAttackCount - e.IntArray[0] : 0,
                                    AttackPower: this._basePanel.ActivityConfig.Levels[e.IntArray[2] - 1].AttackScore,
                                    Callback: this.BattleCallback.bind(this)
                                };
                            d.UIManager.Instance.ShowUIPanel(c.PanelConfig.TradeWarAttackPanel.Path, t)
                        }
                    else u.UIUtlity.ShowFloatingHint("tradeWar_noScore".ToUILocale())
                }, t.prototype.BattleCallback = function(e) {
                    e ? (d.UIManager.Instance.QuitPanelStack(c.PanelConfig.TradeWarAttackPanel.Path), s.UIManager.Instance.QuitPanelStack(c.PanelConfig.TradeWarTargetCitySelectionPanel.Path), this._basePanel.SetAttack(this._battleData.CityId, e)) : d.UIManager.Instance.QuitPanelStack(c.PanelConfig.TradeWarTradeSpeedUpPanel.Path)
                }, i([y(cc.Label)], t.prototype, "Info1", void 0), i([y(cc.Label)], t.prototype, "Info2", void 0), i([y(cc.Label)], t.prototype, "Info3", void 0), i([y(cc.Label)], t.prototype, "Info4", void 0), i([y(cc.Label)], t.prototype, "Info5", void 0), i([y(cc.Sprite)], t.prototype, "CityIcon", void 0), i([y(cc.Button)], t.prototype, "GotoBtn", void 0), i([y(cc.Label)], t.prototype, "GotoBtnLabel", void 0), i([y(cc.Button)], t.prototype, "BattleBtn", void 0), i([y(cc.Label)], t.prototype, "BattleBtnLabel", void 0), i([y(cc.Node)], t.prototype, "Tag", void 0), i([y(cc.SpriteAtlas)], t.prototype, "CityIconAtlas", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/TradeWarMapPanel": "TradeWarMapPanel"
    }],
    ClimbTowerEntranceItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e1683Z5eHZLlqvPaRg3Dblb", "ClimbTowerEntranceItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/ConfigData/ConfigDataComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("./CustomRichText"),
            d = e("../../Components/RpcComponent"),
            h = e("../../../Util/TimeUtil"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../EZFramework/UIFrame/UIManager"),
            m = e("../../Components/DataCenter"),
            I = e("./TowerLayerItem"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../ShareConsts/EnumType"),
            S = e("../Battle/BattleManager"),
            w = e("../../../Consts/Consts"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleNode = null, t.LayerCount = null, t.HardLayerCount = null, t.OpenTimeNode = null, t.OpenTime = null, t.Mask = null, t.LockNode = null, t.UnlockAni = null, t.LockInfoLabel = null, t.Bg = null, t.BattleAniNode = null, t.ElementType = I.TestTowerType.Normal, t.Zoom = 1.1, t._isOpen = !0, t._formatStr = null, t._openTimeArray = null, t._loadAssets = [], t._typeToAtlas = {}, t._idToAtlasName = {
                        0: "ClimbTower",
                        1: "ClimbTower1"
                    }, t._idToName = {
                        99: "tower_element_entrance_normal",
                        1: "tower_element_entrance_heart",
                        2: "tower_element_entrance_power",
                        3: "tower_element_entrance_tech",
                        4: "tower_element_entrance_break",
                        5: "tower_element_entrance_fight"
                    }, t._towerTypeIdToGameModule = {
                        101: b.GameModuleType.HeartHardTower,
                        102: b.GameModuleType.PowerHardTower,
                        103: b.GameModuleType.TechHardTower,
                        104: b.GameModuleType.BreakHardTower,
                        105: b.GameModuleType.FightHardTower,
                        199: b.GameModuleType.MainHardTower
                    }, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._scale = this.node.scale
                }, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this), C.Game.EventDispatcher.On(w.GameEventIds.ChangeDataDetail.Fmt(u.TestTower_Model._n_), this.OnTestTowerDataChange, this), C.Game.EventDispatcher.On(w.GameEventIds.ChangeDataDetail.Fmt(u.GameModule_Model._n_), this.OnGameModuleChange, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouch, this), C.Game.EventDispatcher.Off(w.GameEventIds.ChangeDataDetail.Fmt(u.TestTower_Model._n_), this.OnTestTowerDataChange, this), C.Game.EventDispatcher.Off(w.GameEventIds.ChangeDataDetail.Fmt(u.GameModule_Model._n_), this.OnGameModuleChange, this)
                }, t.prototype.InitUI = function(e) {
                    this._type = e, this._mapType = this.GetMapType(), this._towerTypeId = this.ElementType + 100 * e;
                    var t = l.ConfigDataComponent.Instance.GetConfigById(c.TestTowerType_Config, this._towerTypeId);
                    null != t && (this._openTimeArray = t.OpenTime), this.BindRedDotUI(), this.SetBg();
                    var n = this.GetLayerCount(this._towerTypeId);
                    if (this._towerTypeId != I.TestTowerType.Normal && this._towerTypeId != I.TestTowerType.HardNormal ? (this.SetLayer(n), this.CheckIsGameModuleUnlock(), this.SetOpenTime(), this.CheckOpenState()) : (this.SetLayer(n), this.HideOpenTime(), this._isOpen = !0), this._towerTypeId == I.TestTowerType.Normal) {
                        var o = v.default.Instance.IsGameModuleUnlock(w.GameModuleType.MainHardTower)[0];
                        this.HardLayerCount.node.parent.active = o, this.SetHardLayer(this.GetLayerCount(I.TestTowerType.HardNormal))
                    }
                    this.SetBattleAni()
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._typeToAtlas[this._type] ? [3, 2] : [4, C.AssetsManager.Instance.LoadAsset("ClimbTowerPanel/" + this._idToAtlasName[this._type], cc.SpriteAtlas)];
                                case 1:
                                    if (e = t.sent(), !this.isValid || e.name != "ClimbTowerPanel/" + this._idToAtlasName[this._type]) return C.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._typeToAtlas[this._type] = e, this._loadAssets.push(e), t.label = 2;
                                case 2:
                                    return this.Bg.spriteFrame = this._typeToAtlas[this._type].getSpriteFrame(this._idToName[this.ElementType]), [2]
                            }
                        })
                    })
                }, t.prototype.BindRedDotUI = function() {
                    switch (this.ElementType) {
                        case I.TestTowerType.Power:
                            _.RedDotManager.Instance.BindInstance(this.TitleNode, _.RedDotManager.Instance.InstanceRedDot.EntrancePowerBtnNode, {
                                Value1: this._type
                            }, 10, 19);
                            break;
                        case I.TestTowerType.Tech:
                            _.RedDotManager.Instance.BindInstance(this.TitleNode, _.RedDotManager.Instance.InstanceRedDot.EntranceTechBtnNode, {
                                Value1: this._type
                            }, 10, 19);
                            break;
                        case I.TestTowerType.Heart:
                            _.RedDotManager.Instance.BindInstance(this.TitleNode, _.RedDotManager.Instance.InstanceRedDot.EntranceHeartBtnNode, {
                                Value1: this._type
                            }, 10, 19);
                            break;
                        case I.TestTowerType.Break:
                            _.RedDotManager.Instance.BindInstance(this.TitleNode, _.RedDotManager.Instance.InstanceRedDot.EntranceBreakBtnNode, {
                                Value1: this._type
                            }, 10, 19);
                            break;
                        case I.TestTowerType.Fight:
                            _.RedDotManager.Instance.BindInstance(this.TitleNode, _.RedDotManager.Instance.InstanceRedDot.EntranceFightBtnNode, {
                                Value1: this._type
                            }, 10, 19);
                            break;
                        case I.TestTowerType.Normal:
                            _.RedDotManager.Instance.BindInstance(this.TitleNode, _.RedDotManager.Instance.InstanceRedDot.EntranceNormalBtnNode, {}, 10, 19)
                    }
                }, t.prototype.GetLayerCount = function(e) {
                    var t = m.DataCenter.Instance.GetDataById(u.TestTower_Model, e);
                    return t ? t.MapIndex : 0
                }, t.prototype.SetLayer = function(e) {
                    this.LayerCount.string = "climbTower_entrance_layer".ToUILocale().Fmt(e)
                }, t.prototype.SetHardLayer = function(e) {
                    this.HardLayerCount.string = "climbTower_entrance_hardLayer".ToUILocale().Fmt(e)
                }, t.prototype.ShowOpenTime = function() {
                    this.OpenTimeNode.active = !0, this.Mask.active = !0, f.UIUtlity.OnNodeGray(this.node), f.UIUtlity.OffNodeGray(this.OpenTimeNode)
                }, t.prototype.HideOpenTime = function() {
                    this.OpenTimeNode.active = !1, this.Mask.active = !1, f.UIUtlity.OffNodeGray(this.node)
                }, t.prototype.CheckOpenState = function() {
                    if (this.LockNode.active) return this.ShowOpenTime(), this.OpenTimeNode.active = !1, void f.UIUtlity.OffNodeGray(this.LockNode);
                    var e = d.RpcComponent.Instance.ServerTime,
                        t = h.TimeUtil.GetWeekDay(e);
                    this._isOpen = !1;
                    for (var n = 0; n < this._openTimeArray.length; n++)
                        if (t == this._openTimeArray[n]) {
                            this._isOpen = !0;
                            break
                        } this._isOpen ? this.HideOpenTime() : this.ShowOpenTime()
                }, t.prototype.SetOpenTime = function() {
                    this.LockNode.active || null == this._formatStr && (this._formatStr = this._towerTypeId.ToTowerOpenTimeDesc(), this.OpenTime.Init(this._formatStr))
                }, t.prototype.CheckIsGameModuleUnlock = function() {
                    var e = v.default.Instance.IsGameModuleUnlock(w.GameModuleType.ElementTower);
                    this.LockNode.active && e[0] && (this.UnlockAni.active = !0), this.LockNode.active = !e[0], this.LockInfoLabel.string = e[1]
                }, t.prototype.OnTouch = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function() {
                            if (this._tween && (this._tween.stop(), this.node.scale = this._scale), this.LockNode && this.LockNode.active) return f.UIUtlity.ShowFloatingHint(this.LockInfoLabel.string), [2];
                            if (this._isOpen) {
                                if (1 == this._type && (e = this._towerTypeIdToGameModule[this._towerTypeId], !(t = v.default.Instance.IsGameModuleUnlock(e))[0])) return f.UIUtlity.ShowFloatingHint(t[1]), [2];
                                this._tween = cc.tween(this.node).to(.12, {
                                    scale: this._scale * this.Zoom
                                }).to(.1, {
                                    scale: this._scale
                                }).call(function() {
                                    g.UIManager.Instance.ShowUIPanel(y.PanelConfig.ClimbTowerPanel.Path, n.ElementType, n._type)
                                }).start()
                            } else f.UIUtlity.ShowFloatingHint("climbTower_entrance_not_open".ToUILocale());
                            return [2]
                        })
                    })
                }, t.prototype.GetMapType = function() {
                    var e;
                    switch (this.ElementType) {
                        case I.TestTowerType.Normal:
                            e = b.MapType.TestTower;
                            break;
                        case I.TestTowerType.Heart:
                            e = b.MapType.TowerHeart;
                            break;
                        case I.TestTowerType.Power:
                            e = b.MapType.TowerPower;
                            break;
                        case I.TestTowerType.Tech:
                            e = b.MapType.TowerTech;
                            break;
                        case I.TestTowerType.Break:
                            e = b.MapType.TowerBreak;
                            break;
                        case I.TestTowerType.Fight:
                            e = b.MapType.TowerFight
                    }
                    return e
                }, t.prototype.SetBattleAni = function() {
                    this._isOpen && S.BattleManager.Instance.IsInBattle(this._mapType) ? this.BattleAniNode.active = !0 : this.BattleAniNode.active = !1
                }, t.prototype.OnTestTowerDataChange = function() {
                    var e = this.GetLayerCount(this._towerTypeId);
                    if (this.SetLayer(e), this._towerTypeId == I.TestTowerType.Normal) {
                        var t = v.default.Instance.IsGameModuleUnlock(w.GameModuleType.MainHardTower)[0];
                        this.HardLayerCount.node.parent.active = t, this.SetHardLayer(this.GetLayerCount(I.TestTowerType.HardNormal))
                    }
                }, t.prototype.OnGameModuleChange = function(e) {
                    if (this._towerTypeId != I.TestTowerType.Normal && this._towerTypeId != I.TestTowerType.HardNormal)
                        for (var t in e)
                            if (e[t].Sid == w.GameModuleType.ElementTower) return this.CheckIsGameModuleUnlock(), this.SetOpenTime(), void this.CheckOpenState()
                }, t.prototype.onDestroy = function() {
                    this.Dispose(), this._loadAssets.forEach(function(e) {
                        C.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.Dispose = function() {}, i([T(cc.Node)], t.prototype, "TitleNode", void 0), i([T(cc.Label)], t.prototype, "LayerCount", void 0), i([T(cc.Label)], t.prototype, "HardLayerCount", void 0), i([T(cc.Node)], t.prototype, "OpenTimeNode", void 0), i([T(p.CustomRichText)], t.prototype, "OpenTime", void 0), i([T(cc.Node)], t.prototype, "Mask", void 0), i([T(cc.Node)], t.prototype, "LockNode", void 0), i([T(cc.Node)], t.prototype, "UnlockAni", void 0), i([T(cc.Label)], t.prototype, "LockInfoLabel", void 0), i([T(cc.Sprite)], t.prototype, "Bg", void 0), i([T(cc.Node)], t.prototype, "BattleAniNode", void 0), i([T({
                    type: cc.Enum(I.TestTowerType),
                    displayName: "ElementType"
                })], t.prototype, "ElementType", void 0), i([A], t)
            }(cc.Component);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./CustomRichText": "CustomRichText",
        "./TowerLayerItem": "TowerLayerItem"
    }],
    ClimbTowerEntrancePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9c475hM9sBLD4FcHV5E9k+S", "ClimbTowerEntrancePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/UIPanelType"),
            c = e("../../../EZFramework/EZDefine/SysDefine"),
            u = e("../Components/ClimbTowerEntranceItem"),
            p = e("../../../EZFramework/UIFrame/UIManager"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Auxiliary/ModuleGuideManager"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(c.UINodeType.Fixed), t.Tittle = null, t.BtnReturn = null, t.EntranceItemGroups = [], t.Bg = null, t.Bgs = [], t.ToggleNode = null, t.Toggles = [], t.ToggleNames = [], t._selectIndex = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetClickEvent(), this.SetStaticLocalText()
                }, t.prototype.SetClickEvent = function() {
                    var e = this;
                    this.BtnReturn.node.on("click", this.OnReturnBtnClick, this), this.Toggles.forEach(function(t) {
                        t.node.on("toggle", e.OnClickToggle, e)
                    })
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "climbTower_rule_maintittle_0".ToUILocale();
                    for (var e = ["climb_normal_mode".ToUILocale(), "climb_hard_mode".ToUILocale()], t = 0; t < this.ToggleNames.length; t++) {
                        var n = Math.floor(t / 2);
                        this.ToggleNames[t].string = e[n]
                    }
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.RefreshView(), this.ShowGuide()
                }, t.prototype.RefreshView = function() {
                    this.SetBg(), this.SetToggles(), this.InitEntranceItems(), this.BindReddot()
                }, t.prototype.SetBg = function() {
                    this.Bg.spriteFrame = this.Bgs[this._selectIndex]
                }, t.prototype.SetToggles = function() {
                    this.ToggleNode.active = !1
                }, t.prototype.InitEntranceItems = function() {
                    for (var e = this.EntranceItemGroups.length, t = 0; t < e; t++) this.EntranceItemGroups[t].InitUI(this._selectIndex)
                }, t.prototype.BindReddot = function() {}, t.prototype.OnClickToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    t != this._selectIndex && (this._selectIndex = t, this.RefreshView())
                }, t.prototype.OnReturnBtnClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.ShowGuide = function() {
                    f.default.instance.CheckGameModeuleGuideNeedShow(h.GameModuleType.TestTower) && (f.default.instance.ShowNPCDialogs([1023, 1022]), f.default.instance.CompleteGameModuleWeakGuide(h.GameModuleType.TestTower))
                }, i([m(cc.Label)], t.prototype, "Tittle", void 0), i([m(cc.Button)], t.prototype, "BtnReturn", void 0), i([m(u.default)], t.prototype, "EntranceItemGroups", void 0), i([m(cc.Sprite)], t.prototype, "Bg", void 0), i([m(cc.SpriteFrame)], t.prototype, "Bgs", void 0), i([m(cc.Node)], t.prototype, "ToggleNode", void 0), i([m(cc.Toggle)], t.prototype, "Toggles", void 0), i([m(cc.Label)], t.prototype, "ToggleNames", void 0), i([g], t)
            }(d.BaseUIFullScreenPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../Components/ClimbTowerEntranceItem": "ClimbTowerEntranceItem"
    }],
    ClimbTowerLevelInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7accch1NslIe5LlNSeq2JD7", "ClimbTowerLevelInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../Components/DataCenter"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = e("../../Components/RpcComponent"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../Components/TowerLayerItem"),
            v = e("../../../Consts/Consts"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../Battle/BattleManager"),
            w = e("./BuyAndSellItemPanel"),
            P = e("../../Auxiliary/GameRecord"),
            A = e("../Components/GameModuleGuideManager"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !0, !1, !0), t.Tittle = null, t.ModuleBattleLabel = null, t.ModuleDropLabel = null, t.BattleBtnLabel = null, t.EnemyBpLabel = [], t.EnemyHeroGrid = [], t.DropItemScroll = null, t.DropItemGrid = null, t.BtnFight = null, t.BuyTimesNode = null, t.ChalengeTimes = null, t.BuyChalengeBtn = null, t.COLUMN_MAX = 5, t.NORMAL_TOWER_TYPE_ID = 99, t._towerType = 0, t._currLayer = 0, t._mapId = 0, t._maxLayerIndex = 0, t._mapIdPrefeix = 0, t._currEndMapIndex = 0, t._quickBattleNeedPowerAbove = 0, t._enemyItemTable = [], t._dropItemTable = [], t._commonItemPrefab = null, t._isBusy = !1, t._moduleGuideGroupIds = [10011], t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.DropItemGrid.node.children.indexOf(t) && g.UIUtlity.ShowItemTip(e, t), this._towerType == C.TestTowerType.HardNormal)
                        for (var n = 0; n < this.EnemyHeroGrid.length; n++) - 1 != this.EnemyHeroGrid[n].children.indexOf(t) && g.UIUtlity.ShowMonsterTip(e, this._mapTowerConfig.MapIds[n], t);
                    else - 1 != this.EnemyHeroGrid[0].children.indexOf(t) && g.UIUtlity.ShowMonsterTip(e, this._mapId, t)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._commonItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)]);
                                case 1:
                                    t._commonItemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetStaticLocalText = function() {
                    this.ModuleBattleLabel.string = "climbTower_levelInfo_enemyBattleArray".ToUILocale(), this.ModuleDropLabel.string = "climbTower_levelInfo_dropItem".ToUILocale(), this.BattleBtnLabel.string = "dailyInstance_challenge".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnFight.node.on("click", this.OnBtnFightClick, this), this.BuyChalengeBtn.node.on("click", this.OnBuyChallengeTimes, this)
                }, t.prototype.InitGlobalSettingData = function() {
                    this._quickBattleNeedPowerAbove = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("TestTowerQuickBattleNeedPowerAbove")
                }, t.prototype.RefreshChallengeCount = function() {
                    if (this.BuyTimesNode.active = this._towerType != C.TestTowerType.Normal && this._towerType != C.TestTowerType.HardNormal, this._towerType != C.TestTowerType.Normal && this._towerType != C.TestTowerType.HardNormal) {
                        var e = h.DataCenter.Instance.GetDataById(f.TestTower_Model, this._towerType),
                            t = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("ElementTowerMaxBattleCountDaily"),
                            n = t - e.BattleCount > 0 ? t - e.BattleCount : 0,
                            o = e.Count;
                        this._leftChallengeTimes = n + o, this.ChalengeTimes.string = "climbTower_remain_times".ToUILocale().Fmt(this._leftChallengeTimes)
                    }
                }, t.prototype.OnBtnFightClick = function() {
                    if (!this._isBusy) {
                        this._isBusy = !0;
                        var e = 0,
                            t = this._currLayer + this._quickBattleNeedPowerAbove,
                            n = this._maxLayerIndex;
                        c.EZLog.Log(n);
                        var o = h.DataCenter.Instance.GetIntData(u.UserDataKey.Power);
                        c.EZLog.Log("\u5f53\u524d\u73a9\u5bb6\u6218\u529b---\x3e" + o);
                        var r = m.ConfigDataComponent.Instance.GetConfigById(y.MapTestTower_Config, this._mapIdPrefeix + t);
                        if (null != r && (this._towerType == C.TestTowerType.Normal || this._towerType == C.TestTowerType.HardNormal) && (c.EZLog.Log("\u5feb\u901f\u6218\u6597\u6700\u4f4e\u89e6\u53d1\u6218\u529b---\x3e" + r.QuickBattlePower), o >= r.QuickBattlePower))
                            for (var i = t; i <= n && o > m.ConfigDataComponent.Instance.GetConfigById(y.MapTestTower_Config, this._mapIdPrefeix + i).QuickBattlePower; i++) e = i;
                        e <= 0 ? this.GoBattle() : (this.RequestQuickBattle(e), this.Close())
                    }
                }, t.prototype.OnBuyChallengeTimes = function() {
                    var e = m.ConfigDataComponent.Instance.GetConfigById(y.TestTowerType_Config, this._towerType),
                        t = h.DataCenter.Instance.GetDataById(f.TestTower_Model, this._towerType),
                        n = e.MaxCount - t.MapIndex - this._leftChallengeTimes;
                    if (!(n <= 0)) {
                        var o = n < 100 ? n : 100,
                            r = {
                                UseItemId: v.CommonItemId.Diamond,
                                MaxCount: o,
                                PerItemCount: this._towerType,
                                Title: null,
                                Callback: this.BuyTimesCallback.bind(this)
                            };
                        c.UIManager.Instance.ShowUIPanel(p.PanelConfig.BuyAndSellItemPanel.Path, null, null, this._leftChallengeTimes, w.BuyAndSellType.BuyTimes, w.GoodsType.ElementTowerChallengeTimes, null, r)
                    }
                }, t.prototype.BuyTimesCallback = function(e) {
                    var t = this;
                    e > 10 ? P.default.GetItem(P.GameRecordDefine.SkipElementTowerBuyTimesTip) ? this.RequestBuyCount(e) : g.UIUtlity.ShowHintPanel(null, "climbTower_buyTimes_Tip".ToUILocale().Fmt(e), "cancel".ToUILocale(), null, "button_confirm".ToUILocale(), function() {
                        t.RequestBuyCount(e)
                    }, void 0, P.GameRecordDefine.SkipElementTowerBuyTimesTip) : this.RequestBuyCount(e)
                }, t.prototype.RequestBuyCount = function(e) {
                    var t = m.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, u.LevelParamType.ElementTowerBuyCountPrice),
                        n = h.DataCenter.Instance.GetDataById(f.TestTower_Model, this._towerType),
                        o = b.default.GetIncrementalCount(t.Data2, e, n.PayCount);
                    if (h.DataCenter.Instance.IsItemEnough(v.CommonItemId.Diamond, o)) {
                        var r = new f.Req_Game_CommonBuyCount;
                        r.Count = e, r.Type = u.CommonBuyCountType.ElementTower, r.Params = [this._towerType], I.RpcComponent.Instance.Call(r, this.OnBuySuccess.bind(this))
                    } else g.UIUtlity.ShowFloatingHint("arena_notEnoughTickets".ToUILocale().Fmt(v.CommonItemId.Diamond.ToItemName()))
                }, t.prototype.OnBuySuccess = function() {
                    this.RefreshChallengeCount(), this.GoBattle(), g.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale())
                }, t.prototype.GoBattle = function() {
                    if (this._towerType != C.TestTowerType.Normal && this._towerType != C.TestTowerType.HardNormal) {
                        var e = h.DataCenter.Instance.GetDataById(f.TestTower_Model, this._towerType),
                            t = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("ElementTowerMaxBattleCountDaily");
                        if (e.BattleCount >= t && 0 == e.Count) return void this.OnBuyChallengeTimes()
                    }
                    var n;
                    n = this._towerType == C.TestTowerType.HardNormal ? v.MapType.TestTowerHard : m.ConfigDataComponent.Instance.GetConfigById(y.MapBase_Config, this._mapId).Type, l.Game.EventDispatcher.Emit(v.GameEventIds.StartBattle.Fmt(n), this._mapId), b.default.Instance.SetOnlineStartBattleTempData(n), this.DelayClose()
                }, t.prototype.RequestTestTowerChallenge = function(e) {
                    var t = new f.Req_Map_TestTowerChallenge;
                    t.Type = this._towerType, t.MapIndex = this._currLayer, t.Formations = e, I.RpcComponent.Instance.Call(t, this.ResponseTestTowerChallengeSuccess.bind(this), this.ResponseFail.bind(this))
                }, t.prototype.ResponseTestTowerChallengeSuccess = function(e) {
                    S.BattleManager.Instance.StartPlay(e.Report)
                }, t.prototype.RequestAdventureSettlement = function() {
                    var e = new f.Req_Map_BattleSettlement;
                    e.MapType = u.MapType.TestTower, I.RpcComponent.Instance.Call(e, function(e) {
                        if (1 == e.Result) {
                            l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_TOWER_BATTLE_SUCCESS, !1), l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_TOWER_LAYER_REFRESH);
                            var o = n.settlement_win_prefab_path;
                            b.default.Instance.ShowWinPanelWrapper(o, t)
                        } else o = n.settlement_fail_prefab_path, b.default.Instance.ShowFailPanelWrapper(o, t)
                    }.bind(this)), this._currLayer;
                    var t = this._mapId
                }, t.prototype.ResponseFail = function() {}, t.prototype.RequestQuickBattle = function(e) {
                    if (this._towerType != C.TestTowerType.Normal && this._towerType != C.TestTowerType.HardNormal) {
                        var t = h.DataCenter.Instance.GetDataById(f.TestTower_Model, this._towerType),
                            n = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("ElementTowerMaxBattleCountDaily");
                        if (t.BattleCount >= n && 0 == t.Count) return g.UIUtlity.ShowFloatingHint("climbTower_no_more_times".ToUILocale())
                    }
                    var o = new f.Req_Map_TestTowerQuickBattle;
                    o.MapIndex = this._currLayer, o.EndMapIndex = e, o.Type = this._towerType < 100 ? 0 : 1, I.RpcComponent.Instance.Call(o, this.ResponseQuickBattleSuccess.bind(this), this.ResponseQuickBattleFailed.bind(this)), g.UIUtlity.ShowMaskPanel()
                }, t.prototype.ResponseQuickBattleSuccess = function(e) {
                    g.UIUtlity.CloseMaskPanel(), g.UIUtlity.ShowFloatingHint("climbTower_quickBattle_success".ToUILocale()), l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_TOWER_BATTLE_SUCCESS, !0, e.Rewards), l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_TOWER_LAYER_REFRESH)
                }, t.prototype.ResponseQuickBattleFailed = function() {
                    g.UIUtlity.CloseMaskPanel()
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.InitData = function(e) {
                    this._towerType = e[0], this._currLayer = e[1], this._mapId = e[2], this._maxLayerIndex = e[3], this._mapTowerConfig = m.ConfigDataComponent.Instance.GetConfigById(y.MapTestTower_Config, this._mapId);
                    var t = m.ConfigDataComponent.Instance.GetConfigById(y.TestTowerType_Config, this._towerType);
                    this._mapIdPrefeix = t.MapIdPrefix, this.InitGlobalSettingData()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetTittleInfo(), this.InitEnemyFormation(), this.InitDropItemList(), this.RefreshChallengeCount(), this.ShowGameGuid()
                }, t.prototype.SetTittleInfo = function() {
                    var e;
                    if (this._towerType == C.TestTowerType.Normal) e = "climbTower_rule_maintittle_0".ToUILocale();
                    else if (this._towerType == C.TestTowerType.HardNormal) e = "assistant_tower_name_199".ToUILocale();
                    else {
                        var t = this._towerType % 100;
                        e = ("climbTower_tittle_" + C.TestTowerType[t].toLowerCase()).ToUILocale()
                    }
                    this.Tittle.string = "climbTower_levelInfo_tittle".ToUILocale().Fmt(e, this._currLayer)
                }, t.prototype.InitEnemyFormation = function() {
                    for (var e = 0; e < this._enemyItemTable.length; e++) {
                        for (var t = 0; t < this._enemyItemTable[e].length; t++) this._enemyItemTable[e][t].node.active = !1;
                        this.EnemyHeroGrid[e].parent.active = !1
                    }
                    if (this._towerType == C.TestTowerType.HardNormal)
                        for (e = 0; e < this._mapTowerConfig.MapIds.length; e++) this.ProcessInitEnemyFormation(this._mapTowerConfig.MapIds[e], e);
                    else this.ProcessInitEnemyFormation(this._mapId)
                }, t.prototype.ProcessInitEnemyFormation = function(e, t) {
                    void 0 === t && (t = 0), this.EnemyHeroGrid[t].parent.active = !0;
                    for (var n = m.ConfigDataComponent.Instance.GetConfigById(y.MapBase_Config, e), o = 0; o < n.Heros.length; o++) {
                        this._enemyItemTable[t] = this._enemyItemTable[t] || [], null == this._enemyItemTable[t][o] && (this._enemyItemTable[t][o] = cc.instantiate(this._commonItemPrefab).getComponent(d.ItemComponent), this._enemyItemTable[t][o].node.parent = this.EnemyHeroGrid[t]);
                        var r = n.Heros[o].Items[1],
                            i = m.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, r),
                            a = i.Id,
                            s = n.Strength[0],
                            l = n.Strength[1],
                            c = i.ElementType;
                        this._enemyItemTable[t][o].node.name = a.toString(), this._enemyItemTable[t][o].Init({
                            ItemId: a,
                            StarLevel: s,
                            ElementType: c,
                            Level: l
                        }, d.ItemComponentType.HeroInfo), this._enemyItemTable[t][o].node.active = !0
                    }
                    this.EnemyBpLabel[t].string = n.BattlePower.toString()
                }, t.prototype.InitDropItemList = function() {
                    for (var e = 0; e < this._dropItemTable.length; e++) this._dropItemTable[e].node.active = !1;
                    var t = m.ConfigDataComponent.Instance.GetConfigById(y.MapTestTower_Config, this._mapId);
                    for (e = 0; e < t.FirstClearRewards.length; e++) {
                        null == this._dropItemTable[e] && (this._dropItemTable[e] = cc.instantiate(this._commonItemPrefab).getComponent(d.ItemComponent), this._dropItemTable[e].node.parent = this.DropItemGrid.node);
                        var n = t.FirstClearRewards[e].Items[0],
                            o = t.FirstClearRewards[e].Items[1];
                        this._dropItemTable[e].node.name = n.toString(), this._dropItemTable[e].Init({
                            ItemId: n,
                            Count: o
                        }, d.ItemComponentType.ItemCommon), this._dropItemTable[e].node.active = !0
                    }
                    var r = t.FirstClearRewards.length;
                    if (r < this.COLUMN_MAX) this.DropItemScroll.enabled = !1, this.DropItemGrid.node.anchorX = .5, this.DropItemGrid.resizeMode = cc.Layout.ResizeMode.CONTAINER;
                    else {
                        this.DropItemScroll.enabled = !0, this.DropItemGrid.node.anchorX = 0, this.DropItemGrid.resizeMode = cc.Layout.ResizeMode.NONE;
                        var i = this.DropItemGrid.spacingX,
                            a = this.DropItemGrid.node.scaleX;
                        this.DropItemGrid.node.width = g.UIUtlity.ITEM_COMPONENT_WIDTH * a * r + i * (r - 1), this.DropItemScroll.scheduleOnce(function() {
                            this.scrollToOffset(cc.v2(0, 0))
                        }, .1)
                    }
                    this.DropItemGrid.updateLayout()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this._isBusy = !1
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.ShowGameGuid = function(e) {
                    if (this._towerType == C.TestTowerType.HardNormal && (!e || e == this._guideGroupId)) {
                        var t = A.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = m.ConfigDataComponent.Instance.GetConfigById(y.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 34:
                                            A.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.BtnFight.node);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, t.settlement_win_prefab_path = "ClimbTowerPanel/TestTowerSettlementComponent", t.settlement_fail_prefab_path = "SettlementPanel/CommonFailSettlementComponent", i([L(cc.Label)], t.prototype, "Tittle", void 0), i([L(cc.Label)], t.prototype, "ModuleBattleLabel", void 0), i([L(cc.Label)], t.prototype, "ModuleDropLabel", void 0), i([L(cc.Label)], t.prototype, "BattleBtnLabel", void 0), i([L(cc.Label)], t.prototype, "EnemyBpLabel", void 0), i([L(cc.Node)], t.prototype, "EnemyHeroGrid", void 0), i([L(cc.ScrollView)], t.prototype, "DropItemScroll", void 0), i([L(cc.Layout)], t.prototype, "DropItemGrid", void 0), i([L(cc.Button)], t.prototype, "BtnFight", void 0), i([L(cc.Node)], t.prototype, "BuyTimesNode", void 0), i([L(cc.RichText)], t.prototype, "ChalengeTimes", void 0), i([L(cc.Button)], t.prototype, "BuyChalengeBtn", void 0), n = i([R], t)
            }(c.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TowerLayerItem": "TowerLayerItem",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel"
    }],
    ClimbTowerPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e7046g18oBJDYjORUQ6PM9M", "ClimbTowerPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            l = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../Components/CustomLayout"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../Consts/Consts"),
            f = e("../../Components/Components"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../../../Proto/Static/RpcProto"),
            _ = e("../../Components/ConfigData/ConfigDataComponent"),
            C = e("../Components/TowerLayerItem"),
            v = e("../../Components/DataCenter"),
            b = e("../Components/CustomRichText"),
            S = e("../Auxiliary/UIUtlity"),
            w = e("../../Auxiliary/GlobalDefine"),
            P = e("../../Components/RpcComponent"),
            A = e("../Components/SmallRankListComponent"),
            T = e("../../../ShareConsts/EnumType"),
            R = e("../../RedDot/RedDotManager"),
            L = e("./ClimbTowerLevelInfoPanel"),
            k = e("../Components/HeadComponent"),
            O = e("../../Auxiliary/DataUtlity"),
            M = e("../Battle/BattleManager"),
            D = e("../Battle/BattleData"),
            B = e("./WarTokenListPanel"),
            N = e("../../Auxiliary/ModuleGuideManager"),
            E = e("../Components/CustomToggle"),
            U = e("../../RedDot/RedDotDataHandler"),
            G = e("../Components/GameModuleGuideManager"),
            x = e("../Components/ElementStrengthenComponent"),
            H = cc._decorator,
            F = H.ccclass,
            j = H.property,
            W = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Fixed), t.Tittle = null, t.MainBg = null, t.DownShadow = null, t.TowerScroll = null, t.Grid = null, t.BtnPosition = null, t.HeadArrow = null, t.BtnReturn = null, t.BtnSpecialReward = null, t.SpecialRewardBtnAnim = null, t.BtnRewardDaily = null, t.DailyRewardBtnLabel = null, t.BtnElementScripture = null, t.ElementScriptureLabel = null, t.SpecialRewardIcon = null, t.SpecialRewardBtnName = null, t.StarPowerButton = null, t.StarPowerIcon = null, t.StarPowerButtonLabel = null, t.QuickBattleAnim = null, t.TowerLayerGuide = null, t.TowerLayerGuideAni = null, t.FightOverNode = null, t.FightOverContent = null, t.HeadRoot = null, t.BtnRule = null, t.RankList = null, t.ElementStrengthenNode = null, t.Mask = null, t.ToggleNode = null, t.Toggles = [], t.ToggleRedDots = [], t.HardModeEffect = [], t.TOWER_ITEM_PREFAB_PATH = "ClimbTowerPanel/TowerLayerItem", t.TOWER_ATLAS_PATH = "ClimbTowerPanel/ClimbTower", t.DEFAULT = 0, t.MAX_SCROLL_LAYER = 20, t.SPECIAL_REWARD_LAYER_INTERAL = 10, t.TOWER_LAYER_ITEM_HEIGHT = 358, t.NEW_PLAYER_LAYER_COUNT = 30, t.GREEN = new cc.Color(0, 254, 173), t._towerMaxLayerCount = 0, t._towerMaxLayerRewardCount = 0, t._mapIdPrefeix = 0, t._maxLayerIndex = 0, t._isLayoutInit = !1, t._towerItemPrefab = null, t._climbAtlas = null, t._layerItemSet = new Set, t._newLayer = 0, t._currTowerData = null, t._currElementType = C.TestTowerType.Normal, t._scrollOffsetCount = 0, t._isJumped = !1, t._isBusy = !1, t._headItemPrefab = null, t._itemCompoentPrefab = null, t._elementStrengthenPrefab = null, t._headItem = null, t._moduleGuideGroupIds = [10010, 10011], t._elementGuideGroupIds = [10017, 10018, 10019, 10020, 10021], t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.RegistScrollEvent(), this.RegistQuickBattleEvent(), d.Game.EventDispatcher.On(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), d.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(I.GameModule_Model._n_), this.OnGameModuleChange, this)
                }, t.prototype.onDisable = function() {
                    this.UnRegistScrollEvent(), this.UnRegistQuickBattleEvent(), d.Game.EventDispatcher.Off(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), d.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(I.GameModule_Model._n_), this.OnGameModuleChange, this), this.unscheduleAllCallbacks()
                }, t.prototype.RegistScrollEvent = function() {
                    d.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.UnRegistScrollEvent = function() {
                    d.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.RegistQuickBattleEvent = function() {
                    d.Game.EventDispatcher.On(g.EventKeys.EVENT_TOWER_BATTLE_SUCCESS, this.BattleSuccessCallBack, this), d.Game.EventDispatcher.On(g.EventKeys.EVENT_TOWER_GUIDE_REFRESH, this.CheckFirstFloorFingerEffect, this)
                }, t.prototype.UnRegistQuickBattleEvent = function() {
                    d.Game.EventDispatcher.Off(g.EventKeys.EVENT_TOWER_BATTLE_SUCCESS, this.BattleSuccessCallBack, this), d.Game.EventDispatcher.Off(g.EventKeys.EVENT_TOWER_GUIDE_REFRESH, this.CheckFirstFloorFingerEffect, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(this.TOWER_ITEM_PREFAB_PATH, cc.Prefab), n = this.LoadDynamicAsset(w.BundlePath.HeadComponent, cc.Prefab), o = this.LoadDynamicAsset(w.BundlePath.ItemComponent, cc.Prefab), r = this.LoadDynamicAsset("ClimbTowerPanel/ElementStrengthenComponent", cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._towerItemPrefab = e[0], i._headItemPrefab = e[1], i._itemCompoentPrefab = e[2], i._elementStrengthenPrefab = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.DailyRewardBtnLabel.string = "climbTower_dailyRewards".ToUILocale(), this.ElementScriptureLabel.string = "climbTower_scripture_tittle".ToUILocale();
                    for (var e = ["climb_normal_mode".ToUILocale(), "climb_hard_mode".ToUILocale()], t = 0; t < this.Toggles.length; t++) this.Toggles[t].Init(e[t])
                }, t.prototype.SetClickEvent = function() {
                    this.BtnPosition.node.on("click", this.OnBtnPositionClick, this), this.BtnSpecialReward.node.on("click", this.OnBtnSpecialRewardClick, this), this.BtnRewardDaily.node.on("click", this.OnBtnRewardDailyClick, this), this.BtnElementScripture.node.on("click", this.OnBtnElementSciptureClick, this), this.StarPowerButton.node.on("click", this.OnStarPowerButtonClick, this), this.BtnReturn.node.on("click", this.OnReturnBtnClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this);
                    for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].node.on("toggle", this.OnClickToggle, this)
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this), this.SetStarPowerBtn(), this.SetToggleRedDot(), this.BindRedDotUI(), this.ReloadTowerData(), this.SetUIStyle(), this.InitCustomLayout(), this.SetTittleInfo(), this.SetBtnState(), this.SetFightOverNodeState(), this.LoadPlayerHead(), this.SetToggles(), t || this.TestRankList(), t ? (this.Mask.active = !0, this.scheduleOnce(function() {
                        n.Mask.active = !1
                    }, .7)) : this.Mask.active = !1, this.SetElementStrengthenComponent(), this.ShowGuide(), this.ShowGameGuid()
                }, t.prototype.CheckFirstFloorFingerEffect = function() {
                    this.ReloadTowerData(), 0 == this._currTowerData.MapIndex ? (this.DownShadow.node.active = !1, M.BattleManager.Instance.IsInBattle(h.MapType.TestTower) || M.BattleManager.Instance.IsInBattle(h.MapType.TowerBreak) || M.BattleManager.Instance.IsInBattle(h.MapType.TowerFight) || M.BattleManager.Instance.IsInBattle(h.MapType.TowerHeart) || M.BattleManager.Instance.IsInBattle(h.MapType.TowerPower) || M.BattleManager.Instance.IsInBattle(h.MapType.TowerTech) ? N.default.instance.RemoveFingerNode(this.TowerLayerGuideAni.node) : this._typeId != C.TestTowerType.HardNormal && N.default.instance.AddFingerNode(this.TowerLayerGuideAni.node)) : (this.DownShadow.node.active = !0, N.default.instance.RemoveFingerNode(this.TowerLayerGuideAni.node))
                }, t.prototype.SetToggleRedDot = function() {
                    var e = U.RedDotDataHandler.Instance.RefreshClimbTowerDailyRewardBtnNode({
                            Value1: 0
                        }),
                        t = U.RedDotDataHandler.Instance.RefreshNormalTowerExtraRewardBtnNode({
                            Value1: 0
                        });
                    this.ToggleRedDots[0].active = e || t, e = U.RedDotDataHandler.Instance.RefreshClimbTowerDailyRewardBtnNode({
                        Value1: 1
                    }), t = U.RedDotDataHandler.Instance.RefreshNormalTowerExtraRewardBtnNode({
                        Value1: 1
                    }), this.ToggleRedDots[1].active = e || t
                }, t.prototype.BindRedDotUI = function() {
                    switch (this._currElementType) {
                        case C.TestTowerType.Normal:
                            R.RedDotManager.Instance.BindInstance(this.BtnSpecialReward.node, R.RedDotManager.Instance.InstanceRedDot.NormalTowerExtraRewardBtnNode, {
                                Value1: this._modeType
                            }), R.RedDotManager.Instance.BindInstance(this.BtnRewardDaily.node, R.RedDotManager.Instance.InstanceRedDot.ClimbTowerDailyRewardBtnNode, {
                                Value1: this._modeType
                            });
                            break;
                        case C.TestTowerType.Power:
                            R.RedDotManager.Instance.BindInstance(this.BtnSpecialReward.node, R.RedDotManager.Instance.InstanceRedDot.PowerTowerExtraRewardBtnNode, {
                                Value1: this._modeType
                            });
                            break;
                        case C.TestTowerType.Tech:
                            R.RedDotManager.Instance.BindInstance(this.BtnSpecialReward.node, R.RedDotManager.Instance.InstanceRedDot.TechTowerExtraRewardBtnNode, {
                                Value1: this._modeType
                            });
                            break;
                        case C.TestTowerType.Heart:
                            R.RedDotManager.Instance.BindInstance(this.BtnSpecialReward.node, R.RedDotManager.Instance.InstanceRedDot.HeartTowerExtraRewardBtnNode, {
                                Value1: this._modeType
                            });
                            break;
                        case C.TestTowerType.Break:
                            R.RedDotManager.Instance.BindInstance(this.BtnSpecialReward.node, R.RedDotManager.Instance.InstanceRedDot.BreakTowerExtraRewardBtnNode, {
                                Value1: this._modeType
                            });
                            break;
                        case C.TestTowerType.Fight:
                            R.RedDotManager.Instance.BindInstance(this.BtnSpecialReward.node, R.RedDotManager.Instance.InstanceRedDot.FightTowerExtraRewardBtnNode, {
                                Value1: this._modeType
                            })
                    }
                    this._currElementType != C.TestTowerType.Normal && R.RedDotManager.Instance.Bind(this.BtnElementScripture.node, R.RedDotManager.Instance.RedDot.ElementScriptureBtnNode, 0, 0), this.StarPowerButton.node.active && R.RedDotManager.Instance.BindInstance(this.StarPowerButton.node, R.RedDotManager.Instance.InstanceRedDot.TowerStarPowerBtnNode, {
                        Value1: x.default.GetHeroElementTypeByTestTowerType(this._currElementType)
                    })
                }, t.prototype.ResetPanelState = function() {
                    this.LoadTowerBaseData(), this.GetCurrTowMaxLayerCount(), this.GetCurrTowerDataStartId()
                }, t.prototype.GetCurrTowMaxLayerCount = function() {
                    var e = _.ConfigDataComponent.Instance.GetConfigById(m.TestTowerType_Config, this._typeId);
                    this._towerMaxLayerCount = e.MaxCount, this._towerMaxLayerRewardCount = e.MaxRewardCount
                }, t.prototype.InitData = function(e) {
                    null != e[0] ? this._currElementType = e[0] : this._currElementType = C.TestTowerType.Normal, null != e[1] ? this._modeType = e[1] : this._modeType = 0, this._typeId = this._currElementType + 100 * this._modeType
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this.TOWER_ATLAS_PATH, n = this, [4, this.LoadDynamicAsset(t, cc.SpriteAtlas)];
                                case 1:
                                    return n._climbAtlas = o.sent(), [4, this.LoadMainBg()];
                                case 2:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    t != this._modeType && (this._modeType = t, this.RefreshView())
                }, t.prototype.RefreshView = function() {
                    this._typeId = this._currElementType + 100 * this._modeType, this.BindRedDotUI(), this.ReloadTowerData(), this.ResetPanelState(), this.SetUIStyle(), this._isJumped = !1, this.InitCustomLayout(), this.SetTittleInfo(), this.SetBtnState(), this.SetFightOverNodeState(), this.LoadPlayerHead(), this.TestRankList(), this._guideStepIndex = 0, this.ShowGameGuid()
                }, t.prototype.TestRankList = function() {
                    var e;
                    switch (this._typeId) {
                        case C.TestTowerType.Normal:
                            e = T.RankTypeId.TestTowerProgress;
                            break;
                        case C.TestTowerType.Heart:
                            e = T.RankTypeId.Tower_Heart;
                            break;
                        case C.TestTowerType.Power:
                            e = T.RankTypeId.Tower_Power;
                            break;
                        case C.TestTowerType.Tech:
                            e = T.RankTypeId.Tower_Tech;
                            break;
                        case C.TestTowerType.Break:
                            e = T.RankTypeId.Tower_Break;
                            break;
                        case C.TestTowerType.Fight:
                            e = T.RankTypeId.Tower_Fight;
                            break;
                        case C.TestTowerType.HardNormal:
                            e = T.RankTypeId.TestTowerHardProgress
                    }
                    this.RankList.InitUI(e)
                }, t.prototype.LoadPlayerHead = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != this._headItemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(w.BundlePath.HeadComponent, cc.Prefab)]);
                                case 1:
                                    if (e._headItemPrefab = r.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    return null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(k.default), this._headItem.node.parent = this.HeadRoot), t = v.DataCenter.Instance.GetIntData(T.UserDataKey.HeadIcon), n = v.DataCenter.Instance.GetIntData(T.UserDataKey.HeadFrame), o = v.DataCenter.Instance.GetIntData(T.UserDataKey.Title), this._headItem.SetUI(t, n, o), [2]
                            }
                        })
                    })
                }, t.prototype.SetToggles = function() {
                    if (this._currElementType == C.TestTowerType.Normal) {
                        var e = O.default.Instance.IsGameModuleUnlock(T.GameModuleType.MainHardTowerPage);
                        this.ToggleNode.active = e[0], this.Toggles[this._modeType].isChecked = !0
                    } else this.ToggleNode.active = !1
                }, t.prototype.SetFightOverNodeState = function() {
                    this.FightOverContent.Init("climbTower_congratulation".ToUILocale().Fmt(this.Tittle.string)), this._currTowerData.MapIndex == this._maxLayerIndex ? (this.FightOverNode.active = !0, this.TowerLayerGuide.active = !1) : this.FightOverNode.active = !1
                }, t.prototype.SetTittleInfo = function() {
                    var e;
                    e = this._currElementType == C.TestTowerType.Normal ? this._typeId == C.TestTowerType.HardNormal ? "assistant_tower_name_199".ToUILocale() : "climbTower_rule_maintittle_0".ToUILocale() : ("climbTower_tittle_" + C.TestTowerType[this._currElementType].toLowerCase()).ToUILocale(), this.Tittle.string = e
                }, t.prototype.SetNextSpecialRewardUI = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c;
                        return s(this, function() {
                            if (0 == this._currTowerData.MapIndex) n = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, this._mapIdPrefeix + this._currTowerData.MapIndex + 1), e = n.Distance + 1, t = n.Distance + 1;
                            else if (this._currTowerData.ExtraRewardIndex < this._currTowerData.MapIndex) n = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, this._mapIdPrefeix + this._currTowerData.MapIndex), e = n.Distance, t = this._currTowerData.MapIndex + e;
                            else {
                                if (this._currTowerData.MapIndex >= this._maxLayerIndex) return this.BtnSpecialReward.node.active = !1, [2];
                                n = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, this._mapIdPrefeix + this._currTowerData.MapIndex + 1), e = n.Distance + 1, t = this._currTowerData.MapIndex + e
                            }
                            if (0 != e && (this.SpecialRewardBtnName.node.color = cc.Color.WHITE, this.SpecialRewardBtnName.Init("climbTower_level_distance".ToUILocale().Fmt(e))), this._currTowerData.ExtraRewardIndex >= this._towerMaxLayerRewardCount) return this.BtnSpecialReward.node.active = !1, [2];
                            if (this.SpecialRewardBtnAnim.active = !1, r = _.ConfigDataComponent.Instance.GetConfigById(m.TestTowerType_Config, this._typeId), this._currTowerData.ExtraRewardIndex < this._currTowerData.MapIndex && this._currTowerData.MapIndex >= 5) {
                                for (i = this._mapIdPrefeix + this._currTowerData.MapIndex, l = i; l > this._mapIdPrefeix + this._currTowerData.ExtraRewardIndex; l--)
                                    if (a = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, l), l <= this._mapIdPrefeix + r.MaxRewardCount && 0 == a.Distance) {
                                        a.ExtraRewards[this.DEFAULT] && (o = a.ExtraRewards[this.DEFAULT].Items[0]);
                                        break
                                    } null == o ? (l = this._mapIdPrefeix + t, (c = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, l)).ExtraRewards[this.DEFAULT] && (o = c.ExtraRewards[this.DEFAULT].Items[0])) : (this.SpecialRewardBtnName.node.color = this.GREEN, this.SpecialRewardBtnName.Init("<outline width=4 color=#202434>" + "climbTower_canGet".ToUILocale() + "<outline>"), this.SpecialRewardBtnAnim.active = !0)
                            } else l = this._mapIdPrefeix + t, (c = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, l)).ExtraRewards[this.DEFAULT] && (o = c.ExtraRewards[this.DEFAULT].Items[0]);
                            return [2]
                        })
                    })
                }, t.prototype.SetBtnState = function() {
                    if (this._currElementType == C.TestTowerType.Normal) {
                        if (this.BtnElementScripture.node.active = !1, this.BtnRewardDaily.node.active = !0, this.BtnSpecialReward.node.active = !0, this._typeId == C.TestTowerType.HardNormal) {
                            var e = O.default.Instance.IsGameModuleUnlock(T.GameModuleType.MainHardTower)[0];
                            this.BtnRewardDaily.node.active = e, this.BtnSpecialReward.node.active = e
                        }
                    } else {
                        var t = f.ConfigDataComponent.Instance.GetConfigById(m.WarTokenType_Config, T.WarTokenType.ElementTower);
                        this.BtnElementScripture.node.active = f.DataCenter.Instance.GetIntData(h.UserDataKey.VipLevel) >= t.VIP, this.BtnRewardDaily.node.active = !1, this.BtnSpecialReward.node.active = !0
                    }
                    this.SetNextSpecialRewardUI()
                }, t.prototype.SetPositionBtnState = function() {
                    var e = this._currTowerData.MapIndex,
                        t = Math.floor(this.TowerScroll.node.height / this.TOWER_LAYER_ITEM_HEIGHT);
                    if (this.BtnPosition.node.active = !1, !(this.TowerScroll.getScrollOffset().y <= 0))
                        if (this._newLayer > e + t) this.HeadArrow.scaleY = -1, this.BtnPosition.node.active = !0;
                        else if (this._newLayer < Math.max(e - t, 0)) {
                        if (e <= t) return;
                        this.HeadArrow.scaleY = 1, this.BtnPosition.node.active = !0
                    }
                }, t.prototype.SetUIStyle = function() {
                    for (var e = 0; e < this.HardModeEffect.length; e++) this.HardModeEffect[e].active = this._typeId == C.TestTowerType.HardNormal
                }, t.prototype.LoadMainBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = this._currElementType == C.TestTowerType.Normal ? n.MAIN_BG_PATH[this.DEFAULT] : n.MAIN_BG_PATH[this._currElementType], t = this.MainBg, [4, this.LoadDynamicAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t.spriteFrame = o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetElementStrengthenComponent = function() {
                    switch (this._currElementType) {
                        case C.TestTowerType.Heart:
                        case C.TestTowerType.Power:
                        case C.TestTowerType.Tech:
                        case C.TestTowerType.Break:
                        case C.TestTowerType.Fight:
                            var e = x.default.GetElementStrengthenUnlockInfo(this._currElementType, x.ElementStrengthenParamType.TestTowerType);
                            e[0] && e[1] ? (this.ElementStrengthenNode.active = !0, 0 == this.ElementStrengthenNode.childrenCount && (cc.instantiate(this._elementStrengthenPrefab).parent = this.ElementStrengthenNode), this.ElementStrengthenNode.children[0] && this.ElementStrengthenNode.children[0].getComponent(x.default).Init(this._currElementType, x.ElementStrengthenParamType.TestTowerType, !0, !0)) : this.ElementStrengthenNode.active = !1;
                            break;
                        default:
                            this.ElementStrengthenNode.active = !1
                    }
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._towerItemPrefab, !1)), this.RenderLayout()
                }, t.prototype.RenderLayout = function() {
                    if (this.TowerScroll.stopAutoScroll(), !this._isJumped) {
                        this._scrollOffsetCount = Math.floor(this.TowerScroll.node.height / this.TOWER_LAYER_ITEM_HEIGHT / 2);
                        var e;
                        e = this._currTowerData.MapIndex + this._scrollOffsetCount >= this._towerMaxLayerCount ? this._towerMaxLayerCount - 1 : this._currTowerData.MapIndex + this._scrollOffsetCount, this.Grid.RenderLayOut(this._towerMaxLayerCount, e, 0), this._isJumped = !0
                    }
                }, t.prototype.OnBtnPositionClick = function() {
                    this.ScrollToCurrFightLayer()
                }, t.prototype.ScrollToCurrFightLayer = function() {
                    var e = this._currTowerData.MapIndex;
                    Math.abs(e - this._newLayer) > this.MAX_SCROLL_LAYER ? (this._isJumped = !1, this.RenderLayout()) : this.TowerScroll.scrollToOffset(cc.v2(0, this.TOWER_LAYER_ITEM_HEIGHT * (this._maxLayerIndex - e - 1) - this._scrollOffsetCount * this.TOWER_LAYER_ITEM_HEIGHT), .8)
                }, t.prototype.LoadTowerBaseData = function() {
                    this._towerBaseData = _.ConfigDataComponent.Instance.GetConfig(m.MapTestTower_Config)
                }, t.prototype.ReloadTowerData = function() {
                    this._currTowerData = v.DataCenter.Instance.GetDataById(I.TestTower_Model, this._typeId)
                }, t.prototype.GetCurrTowerDataStartId = function() {
                    var e = this._typeId,
                        t = _.ConfigDataComponent.Instance.GetConfigById(m.TestTowerType_Config, e);
                    this._mapIdPrefeix = t.MapIdPrefix, this._maxLayerIndex = this._towerMaxLayerCount
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var o = this;
                    if (t == this.Grid) {
                        var r, i = this._currElementType == C.TestTowerType.Normal ? 0 : this._currElementType;
                        r = n.NORMAL_LAYER_BG_PATH[i], e.forEach(function(e, t) {
                            var a = e.getComponent(C.default),
                                s = o._mapIdPrefeix + t + 1,
                                l = o.GetTowerDataByLayer(s);
                            o._layerItemSet.has(a) || (a.registEvent(), o._layerItemSet.add(a)), o._newLayer = t, a.node.name = s.toString(), a.InitUI(o._itemCompoentPrefab, l, o._typeId, t + 1, o._maxLayerIndex), a.SetGuideInstance(o.TowerLayerGuide, o.TowerLayerGuideAni), a.SetUIStyle(o._climbAtlas, r);
                            var c = t + 1 > o._currTowerData.MapIndex;
                            0 != o._modeType && c ? a.SetLightDoor(c, o._climbAtlas, n.LIGHT_DOOR__PATH[i]) : a.SetLightDoor(!1)
                        }), this.SetPositionBtnState(), this.CheckFirstFloorFingerEffect()
                    }
                }, t.prototype.BattleSuccessCallBack = function(e, t) {
                    var n = this;
                    0 != this.node.active && (this.ReloadTowerData(), e && (this.QuickBattleAnim.node.active = !0, this.QuickBattleAnim.setAnimation(0, this.QuickBattleAnim.defaultAnimation, !1), this.QuickBattleAnim.setCompleteListener(function() {
                        n.QuickBattleAnim.node.active = !1, setTimeout(function() {
                            null != t && S.UIUtlity.ShwDisplayRewardPanel(t)
                        }, 100)
                    })), this.ScrollToCurrFightLayer(), this.SetBtnState(), this.SetFightOverNodeState(), this.CheckFirstFloorFingerEffect())
                }, t.prototype.GetTowerDataByLayer = function(e) {
                    return _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, e)
                }, t.prototype.OnBtnSpecialRewardClick = function() {
                    this._typeId == C.TestTowerType.Normal && this._currTowerData.MapIndex < this.NEW_PLAYER_LAYER_COUNT + 1 ? y.UIManager.Instance.ShowUIPanel(w.PanelConfig.ClimbTowerSpecialRewardPanel.Path, this._currTowerData.MapIndex, this._typeId) : y.UIManager.Instance.ShowUIPanel(w.PanelConfig.ClimbTowerRewardPanel.Path, this._typeId, this)
                }, t.prototype.OnBtnRewardDailyClick = function() {
                    var e, t = this,
                        n = "climbTower_dailyRewards".ToUILocale(),
                        o = this._currTowerData.IsDrawDailyReward;
                    e = o ? Math.max(this._currTowerData.MapIndex, 1) : this._currTowerData.DailyRewardIndex > 0 ? this._currTowerData.DailyRewardIndex : 1;
                    var r = this.GetDailyRewardDataArray(this._mapIdPrefeix + e);
                    o ? S.UIUtlity.ShowHintPanel(n, r, null, null, "tomorrow_can_draw".ToUILocale(), null, "climbTower_rewardHint_tomorrow".ToUILocale().Fmt(this._currTowerData.MapIndex)) : S.UIUtlity.ShowHintPanel(n, r, null, null, "receive".ToUILocale(), function() {
                        t.RequestDrawDailyReward(e)
                    }, "climbTower_rewardHint_today".ToUILocale())
                }, t.prototype.GetDailyRewardDataArray = function(e) {
                    for (var t = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, e), n = [], o = 0; o < t.DailyRewards.length; o++) n.push({
                        ItemId: t.DailyRewards[o].Items[0],
                        Count: t.DailyRewards[o].Items[1]
                    });
                    return n
                }, t.prototype.RequestDrawDailyReward = function(e) {
                    if (1 != this._isBusy) {
                        var t = new I.Req_Map_TestTowerDialyReward;
                        t.MapIndex = e, t.Type = this._modeType, this._isBusy = !0, P.RpcComponent.Instance.Call(t, this.ResponseDrawDailyReward.bind(this), this.ResponseDrawDailyRewardFail.bind(this))
                    }
                }, t.prototype.ResponseDrawDailyReward = function(e) {
                    this._isBusy = !1, this.ReloadTowerData(), S.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.ResponseDrawDailyRewardFail = function() {
                    this._isBusy = !1
                }, t.prototype.OnBtnElementSciptureClick = function() {
                    var e = B.default.GetCurrentAndMaxPeriods(),
                        t = _.ConfigDataComponent.Instance.GetConfigById(m.GameModule_Config, h.GameModuleType.ElementTower),
                        n = _.ConfigDataComponent.Instance.GetConfigById(m.GameModule_Config, h.GameModuleType.ElementTower2),
                        o = [];
                    o = o.concat(t.WarTokenId, n.WarTokenId), y.UIManager.Instance.ShowUIPanel(w.PanelConfig.WarTokenListPanel.Path, !1, o[e[0]])
                }, t.prototype.SetStarPowerBtn = function() {
                    if (O.default.Instance.IsGameModuleOpen(h.GameModuleType.ElementTower))
                        if (O.default.Instance.IsGameModuleUnlock(h.GameModuleType.ElementTower)[0]) switch (this._currElementType) {
                            case C.TestTowerType.Heart:
                            case C.TestTowerType.Power:
                            case C.TestTowerType.Tech:
                            case C.TestTowerType.Break:
                            case C.TestTowerType.Fight:
                                this.StarPowerButton.node.active = !0, this.StarPowerButtonLabel.string = "starPower_title".ToUILocale(), this.StarPowerIcon.spriteFrame = this._climbAtlas.getSpriteFrame("element" + this._currElementType);
                                break;
                            default:
                                this.StarPowerButton.node.active = !1
                        } else this.StarPowerButton.node.active = !1;
                        else this.StarPowerButton.node.active = !1
                }, t.prototype.OnStarPowerButtonClick = function() {
                    O.default.Instance.ToStarPower(x.default.GetHeroElementTypeByTestTowerType(this._currElementType))
                }, t.prototype.OnBtnRuleClick = function() {
                    var e, t;
                    0 == this._modeType ? t = {
                        name: ("climbTower_rule_maintittle_" + (e = this._currElementType == C.TestTowerType.Normal ? 0 : this._currElementType)).ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: [("climbTower_rule_text" + e).ToUILocale()]
                    } : 1 == this._modeType && (t = {
                        name: ("climbTower_rule_maintittle_" + (e = this._currElementType == C.TestTowerType.Normal ? 100 : this._typeId)).ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: [("climbTower_rule_text" + e).ToUILocale()]
                    }), S.UIUtlity.ShowRulePanel(t)
                }, t.prototype.OnReturnBtnClick = function() {
                    this._layerItemSet.forEach(function(e) {
                        e.unRegistEvent()
                    }), this._layerItemSet.clear(), y.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._layerItemSet.forEach(function(e) {
                        e.unRegistEvent()
                    })
                }, t.InitBattle = function() {
                    [h.MapType.TestTower, h.MapType.TowerHeart, h.MapType.TowerPower, h.MapType.TowerTech, h.MapType.TowerBreak, h.MapType.TowerFight, h.MapType.TestTowerHard].forEach(function(e) {
                        d.Game.EventDispatcher.Only(h.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), d.Game.EventDispatcher.Only(h.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), d.Game.EventDispatcher.Only(h.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), d.Game.EventDispatcher.Only(h.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), d.Game.EventDispatcher.Only(h.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                    })
                }, t.RestartBattle = function(e) {
                    var t = e.ExtraParam.UserParams.MapTowerId;
                    n.StartBattle(t)
                }, t.StartBattle = function(e, t, o) {
                    void 0 === t && (t = !1), void 0 === o && (o = !1);
                    var r, i = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, e);
                    r = i.MapIds && i.MapIds.length > 0 ? l(i.MapIds) : [e], o ? n.RequestTestTowerChallenge(null, e, t) : y.UIManager.Instance.ShowUIPanel(w.PanelConfig.BattleFormationPanel.Path, function(o) {
                        n.RequestTestTowerChallenge(o, e, t)
                    }, r)
                }, t.RequestTestTowerChallenge = function(e, t, o) {
                    if (void 0 === o && (o = !1), t) {
                        for (var r, i = 1e4 * Math.floor(t / 1e4), a = 0, s = f.ConfigDataComponent.Instance.GetArrayConfig(m.TestTowerType_Config), c = 0; c < s.length; c++)
                            if (s[c].MapIdPrefix == i) {
                                a = s[c].Id;
                                break
                            } a == C.TestTowerType.HardNormal ? ((r = new I.Req_Map_TestTowerHardChallenge).Type = a, r.MapIndex = t - i, r.Formations = e, P.RpcComponent.Instance.Call(r, function(e) {
                            n.TowerHardBattleReports = l(e.Reports);
                            var t = {
                                MultiBattleResult: [0, 0, 0],
                                DontCloseOnEnd: !0,
                                UserParams: {
                                    MapTowerId: e.Params[0]
                                }
                            };
                            M.BattleManager.Instance.StartPlay(e.Reports[0], t, o), d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_MAINBATTLEANI_REFRESH), o && d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_LAYER_REFRESH)
                        })) : ((r = new I.Req_Map_TestTowerChallenge).Type = a, r.MapIndex = t - i, r.Formations = e, P.RpcComponent.Instance.Call(r, function(e) {
                            var t = {
                                UserParams: {
                                    MapTowerId: e.Params[0]
                                }
                            };
                            M.BattleManager.Instance.StartPlay(e.Reports[0], t, o), d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_MAINBATTLEANI_REFRESH), o && d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_LAYER_REFRESH)
                        }))
                    }
                }, t.SettleBattle = function(e) {
                    var t = this,
                        o = !0,
                        r = 0,
                        i = e.ExtraParam.UserParams.MapTowerId,
                        a = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, i);
                    if (e.MapType == T.MapType.TestTowerHard && (r = e.Reports[0].BattleIndex) < a.MapIds.length - 1 && (o = !1), o) {
                        var s = new I.Req_Map_BattleSettlement;
                        s.MapType = e.MapType, P.RpcComponent.Instance.Call(s, function(o) {
                            var r;
                            s.MapType == T.MapType.TestTowerHard && (e.InBackground || d.Game.EventDispatcher.Emit(h.GameEventIds.DelayCloseBattlePanel), delete D.BattleData.PlayingBattleDatas[T.MapType.TestTowerHard]), e.SettleParams = [i, o.ExtraParam[0].Items[0], n.TowerHardBattleReports], 1 == o.Result ? (e.SettleParams.push(!0), t.BattleSuccessResult(e)) : (d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_GUIDE_REFRESH), d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_LAYER_REFRESH), r = L.default.settlement_fail_prefab_path, s.MapType == T.MapType.TestTowerHard && (r = L.default.settlement_win_prefab_path, e.SettleParams.push(!1)), M.BattleManager.Instance.ShowSettlePanel(w.PanelConfig.SettlementFailPanel.Path, r, e), O.default.Instance.ShowBattleRewardPanel(e.MapType));
                            var a = y.UIManager.Instance.GetUIPanel(w.PanelConfig.ClimbTowerPanel.Path);
                            a && (a.ReloadTowerData(), a.ScrollToCurrFightLayer(), a.SetBtnState(), a.SetFightOverNodeState()), d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_MAINBATTLEANI_REFRESH), d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_BATTLECHANGE, e)
                        })
                    } else {
                        var l = n.TowerHardBattleReports[r];
                        e.ExtraParam.MultiBattleResult[r] = l.Result == h.BattleResult.AttackerWin ? 1 : -1, e.Reports[0] = n.TowerHardBattleReports[r + 1], M.BattleManager.Instance.NextWave(e)
                    }
                }, t.BattleSuccessResult = function(e) {
                    var t;
                    if (d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_BATTLE_SUCCESS, !1), d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_LAYER_REFRESH), d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_GUIDE_REFRESH), O.default.Instance.CheckAutoBattleUnlock(T.GameModuleType.TestTowerAutoBattle, e.MapType) && e.InBackground) {
                        for (var o = [], r = e.ExtraParam.UserParams.MapTowerId, i = _.ConfigDataComponent.Instance.GetConfigById(m.MapTestTower_Config, r), a = 0; a < i.FirstClearRewards.length; a++) {
                            var s = i.FirstClearRewards[a].Items[0],
                                l = i.FirstClearRewards[a].Items[1];
                            o.push({
                                ItemId: s,
                                Count: l
                            })
                        }
                        v.DataCenter.Instance.SetAutoBattleRewards(e.MapType, o);
                        var c = 1e4 * Math.floor(r / 1e4),
                            u = void 0,
                            p = f.ConfigDataComponent.Instance.GetArrayConfig(m.TestTowerType_Config);
                        for (a = 0; a < p.length; a++)
                            if (p[a].MapIdPrefix == c) {
                                u = p[a];
                                break
                            } var y, b = !1;
                        if (u.Id != C.TestTowerType.Normal && u.Id != C.TestTowerType.HardNormal) {
                            var A = _.ConfigDataComponent.Instance.GetGlobalSettingByKey("ElementTowerMaxBattleCountDaily");
                            (k = v.DataCenter.Instance.GetDataById(I.TestTower_Model, u.Id)).BattleCount >= A && 0 == k.Count && (b = !0)
                        }
                        if (r - c < u.MaxCount && O.default.Instance.IsTestTowerOpenTime(u)) {
                            if (!b) return y = r + 1, void n.StartBattle(y, !0, !0);
                            if (O.default.GetFunctionSkipState(h.FunctionSkipKey.AutoBuyElementTowerChallengeCount)) {
                                var R = _.ConfigDataComponent.Instance.GetConfigById(m.LevelParam_Config, h.LevelParamType.ElementTowerBuyCountPrice),
                                    k = v.DataCenter.Instance.GetDataById(I.TestTower_Model, u.Id),
                                    D = O.default.GetIncrementalCount(R.Data2, 1, k.PayCount);
                                if (v.DataCenter.Instance.IsItemEnough(h.CommonItemId.Diamond, D)) {
                                    var B = new I.Req_Game_CommonBuyCount;
                                    return B.Count = 1, B.Type = h.CommonBuyCountType.ElementTower, B.Params = [u.Id], void P.RpcComponent.Instance.Call(B, function() {
                                        y = r + 1, n.StartBattle(y, !0, !0)
                                    }, function() {
                                        t = L.default.settlement_win_prefab_path, M.BattleManager.Instance.ShowSettlePanel(w.PanelConfig.SettlementWinPanel.Path, t, e), O.default.Instance.ShowBattleRewardPanel(e.MapType)
                                    })
                                }
                                S.UIUtlity.ShowFloatingHint("allianceBase_notEnoughDiamond".ToUILocale())
                            }
                        }
                    }
                    t = L.default.settlement_win_prefab_path, M.BattleManager.Instance.ShowSettlePanel(w.PanelConfig.SettlementWinPanel.Path, t, e), O.default.Instance.ShowBattleRewardPanel(e.MapType)
                }, t.CancelBattle = function(e) {
                    d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_GUIDE_REFRESH);
                    var t = new I.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, P.RpcComponent.Instance.Call(t, function() {
                        d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_MAINBATTLEANI_REFRESH), d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_LAYER_REFRESH), O.default.Instance.ShowBattleRewardPanel(e.MapType)
                    })
                }, t.OnBattleSwitchToBackground = function(e) {
                    d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_LAYER_REFRESH), d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOWER_GUIDE_REFRESH), e.MapType != T.MapType.TestTower && e.MapType != T.MapType.TestTowerHard ? S.UIUtlity.ShowHintPanel("", "climbTower_buyCount".ToUILocale(), "", function() {
                        O.default.SetFunctionSkipState(h.FunctionSkipKey.AutoBuyElementTowerChallengeCount, !1, function() {
                            d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOGGLE_FLOATICON)
                        })
                    }, "", function() {
                        O.default.SetFunctionSkipState(h.FunctionSkipKey.AutoBuyElementTowerChallengeCount, !0, function() {
                            d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_TOGGLE_FLOATICON)
                        })
                    }) : d.Game.EventDispatcher.Emit(g.EventKeys.EVENT_BATTLESWITCHTOBACKGROUND, e)
                }, t.prototype.ShowGuide = function() {
                    N.default.instance.CheckGameModeuleGuideNeedShow(T.GameModuleType.TestTower) && (N.default.instance.ShowNPCDialogs([1023, 1022]), N.default.instance.CompleteGameModuleWeakGuide(T.GameModuleType.TestTower))
                }, t.prototype.ShowGameGuid = function(e) {
                    if (this._typeId == C.TestTowerType.HardNormal || this._typeId == C.TestTowerType.Heart || this._typeId == C.TestTowerType.Power || this._typeId == C.TestTowerType.Tech || this._typeId == C.TestTowerType.Break || this._typeId == C.TestTowerType.Fight) {
                        if (this._typeId != C.TestTowerType.HardNormal) {
                            var t = x.default.GetElementStrengthenUnlockInfo(this._typeId, x.ElementStrengthenParamType.TestTowerType);
                            if (!t[0] || !t[1]) return
                        }
                        if (!e || e == this._guideGroupId) {
                            var n = G.default.Instance.GetCurrentGroupId(this._typeId == C.TestTowerType.HardNormal ? this._moduleGuideGroupIds : this._elementGuideGroupIds);
                            if (!(n <= 0)) {
                                this._guideGroupId && this._guideGroupId == n || (this._guideGroupId = n, this._guideStepIndex = 0);
                                var o = f.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, this._guideGroupId);
                                if (o)
                                    for (var r = 0; r < o.GameModuleGuideStepIds.length; r++) {
                                        var i = !0;
                                        switch (o.GameModuleGuideStepIds[this._guideStepIndex]) {
                                            case 32:
                                                G.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                                break;
                                            case 33:
                                                G.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.TowerLayerGuide);
                                                break;
                                            case 51:
                                                G.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                                break;
                                            case 52:
                                                this.ElementStrengthenNode.children[0] && G.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.ElementStrengthenNode.children[0]);
                                                break;
                                            default:
                                                i = !1
                                        }
                                        if (this._guideStepIndex++, i) break
                                    }
                            }
                        }
                    } else G.default.Instance.ReMoveFinger(this.TowerLayerGuide)
                }, t.prototype.OnGameModuleChange = function(e) {
                    for (var t in e) switch (Number(t)) {
                        case h.GameModuleType.HeartTowerSuppress:
                        case h.GameModuleType.PowerTowerSuppress:
                        case h.GameModuleType.TechTowerSuppress:
                        case h.GameModuleType.BreakTowerSuppress:
                        case h.GameModuleType.FightTowerSuppress:
                            return this.SetElementStrengthenComponent(), void this.ShowGameGuid()
                    }
                }, t.MAIN_BG_PATH = ["ClimbTowerPanel/tower_bg_normal", "ClimbTowerPanel/tower_bg_heart", "ClimbTowerPanel/tower_bg_power", "ClimbTowerPanel/tower_bg_tech", "ClimbTowerPanel/tower_bg_break", "ClimbTowerPanel/tower_bg_fight"], t.NORMAL_LAYER_BG_PATH = ["layer_normal", "layer_heart", "layer_power", "layer_tech", "layer_break", "layer_fight"], t.LIGHT_DOOR__PATH = ["lightDoor_normal", "lightDoor_heart", "lightDoor_power", "lightDoor_tech", "lightDoor_break", "lightDoor_fight"], t.TowerHardBattleReports = null, i([j(cc.Label)], t.prototype, "Tittle", void 0), i([j(cc.Sprite)], t.prototype, "MainBg", void 0), i([j(cc.Sprite)], t.prototype, "DownShadow", void 0), i([j(cc.ScrollView)], t.prototype, "TowerScroll", void 0), i([j(p.default)], t.prototype, "Grid", void 0), i([j(cc.Button)], t.prototype, "BtnPosition", void 0), i([j(cc.Node)], t.prototype, "HeadArrow", void 0), i([j(cc.Button)], t.prototype, "BtnReturn", void 0), i([j(cc.Button)], t.prototype, "BtnSpecialReward", void 0), i([j(cc.Node)], t.prototype, "SpecialRewardBtnAnim", void 0), i([j(cc.Button)], t.prototype, "BtnRewardDaily", void 0), i([j(cc.Label)], t.prototype, "DailyRewardBtnLabel", void 0), i([j(cc.Button)], t.prototype, "BtnElementScripture", void 0), i([j(cc.Label)], t.prototype, "ElementScriptureLabel", void 0), i([j(cc.Sprite)], t.prototype, "SpecialRewardIcon", void 0), i([j(b.CustomRichText)], t.prototype, "SpecialRewardBtnName", void 0), i([j(cc.Button)], t.prototype, "StarPowerButton", void 0), i([j(cc.Sprite)], t.prototype, "StarPowerIcon", void 0), i([j(cc.Label)], t.prototype, "StarPowerButtonLabel", void 0), i([j(sp.Skeleton)], t.prototype, "QuickBattleAnim", void 0), i([j(cc.Node)], t.prototype, "TowerLayerGuide", void 0), i([j(sp.Skeleton)], t.prototype, "TowerLayerGuideAni", void 0), i([j(cc.Node)], t.prototype, "FightOverNode", void 0), i([j(b.CustomRichText)], t.prototype, "FightOverContent", void 0), i([j(cc.Node)], t.prototype, "HeadRoot", void 0), i([j(cc.Button)], t.prototype, "BtnRule", void 0), i([j(A.default)], t.prototype, "RankList", void 0), i([j(cc.Node)], t.prototype, "ElementStrengthenNode", void 0), i([j(cc.Node)], t.prototype, "Mask", void 0), i([j(cc.Node)], t.prototype, "ToggleNode", void 0), i([j(E.default)], t.prototype, "Toggles", void 0), i([j(cc.Node)], t.prototype, "ToggleRedDots", void 0), i([j(cc.Node)], t.prototype, "HardModeEffect", void 0), n = i([F], t)
            }(d.BaseUIFullScreenPanel);
        n.default = W, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ElementStrengthenComponent": "ElementStrengthenComponent",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent",
        "../Components/TowerLayerItem": "TowerLayerItem",
        "./ClimbTowerLevelInfoPanel": "ClimbTowerLevelInfoPanel",
        "./WarTokenListPanel": "WarTokenListPanel"
    }],
    ClimbTowerRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ebe0dwdBSNLMIBKWXWBs98H", "ClimbTowerRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/CustomLayout"),
            c = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/ConfigData/ConfigDataComponent"),
            y = e("../Components/TowerRewardListItem"),
            g = e("../../Components/DataCenter"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("../Components/TowerLayerItem"),
            _ = e("../../Components/ConfigData/ConfigCacheComponent"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !0), t.Scroll = null, t.Grid = null, t.Tittle = null, t.DEFAULT = 0, t.ID = 0, t.COUNT = 1, t.NORMAL_TOWER_TYPE_ID = 99, t.LIST_ITEM_PREFAB_PATH = "ClimbTowerPanel/TowerRewardListItem", t._climbTowerInstance = null, t._isLayoutInit = !1, t._userData = null, t._towerType = I.TestTowerType.Normal, t._towerBaseDataList = [], t._mapIdPrefeix = 0, t._currFightLayerIndex = 0, t._maxLayerIndex = 0, t._frontPartMaxIndex = 0, t._towerMaxLayerCount = 0, t._isBusy = !1, t
                }
                return r(t, e), t.prototype.EnableCommonEvent = function() {
                    u.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.DisableCommonEvent = function() {
                    u.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.LIST_ITEM_PREFAB_PATH, cc.Prefab)];
                                case 1:
                                    return t._listItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "reward".ToUILocale()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ReloadUserData(), this.SortConfigData(), this.EnableCommonEvent(), this.InitCustomLayout()
                }, t.prototype.ResetPanelState = function() {
                    this._frontPartMaxIndex = 0, this.LoadRewardBaseData()
                }, t.prototype.InitData = function(e) {
                    this._towerType = e[0], this._climbTowerInstance = e[1]
                }, t.prototype.InitCustomLayout = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._listItemPrefab, !1)), this.RenderLayout(), [2]
                        })
                    })
                }, t.prototype.RefreshView = function() {
                    this.ReloadUserData(), this.SortConfigData(), this.InitCustomLayout()
                }, t.prototype.RenderLayout = function() {
                    var e = this._towerBaseDataList.length;
                    this.Scroll.stopAutoScroll(), this.Grid.RenderLayOut(e), d.UIUtlity.AnimationItemsByType1(this.Grid.node.children)
                }, t.prototype.LoadRewardBaseData = function() {
                    this._towerBaseDataList = [], this._towerBaseDataList = _.ConfigCacheComponent.Instance.GetTestTowerExtraRewardList(this._towerType);
                    var e = f.ConfigDataComponent.Instance.GetConfigById(h.TestTowerType_Config, this._towerType);
                    this._towerMaxLayerCount = e.MaxCount, this._maxLayerIndex = this._towerMaxLayerCount;
                    var t = f.ConfigDataComponent.Instance.GetConfigById(h.TestTowerType_Config, this._towerType);
                    this._mapIdPrefeix = t.MapIdPrefix
                }, t.prototype.SortConfigData = function() {
                    var e = this;
                    this._towerBaseDataList.sort(function(t, n) {
                        var o = e._mapIdPrefeix + e._userData.ExtraRewardIndex;
                        return t.Id <= o && n.Id > o ? 1 : t.Id > o && n.Id <= o ? -1 : t.Id < n.Id ? -1 : t.Id > n.Id ? 1 : 0
                    })
                }, t.prototype.ReloadUserData = function() {
                    this._userData = g.DataCenter.Instance.GetDataById(m.TestTower_Model, this._towerType), this._userData.MapIndex > 0 ? this._currFightLayerIndex = this._userData.MapIndex + 1 : this._currFightLayerIndex = 1
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (t == this.Grid) {
                        var o = this._userData.ExtraRewardIndex;
                        e.forEach(function(e, t) {
                            e.getComponent(y.default).InitUI(n._towerBaseDataList[t], n._userData.MapIndex, o, n._towerType, n)
                        })
                    }
                }, t.prototype.Close = function() {
                    this.node.active && (this.DisableCommonEvent(), this._climbTowerInstance.RegistScrollEvent()), e.prototype.Close.call(this)
                }, i([b(cc.ScrollView)], t.prototype, "Scroll", void 0), i([b(l.default)], t.prototype, "Grid", void 0), i([b(cc.Label)], t.prototype, "Tittle", void 0), i([v], t)
            }(c.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/TowerLayerItem": "TowerLayerItem",
        "../Components/TowerRewardListItem": "TowerRewardListItem"
    }],
    ClimbTowerSpecialRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e37ccIFj11EEpMoqUIccIsE", "ClimbTowerSpecialRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/ItemComponent"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/DataCenter"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Components/RpcComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../Components/CustomProgressBar"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property;
        (function(e) {
            e[e.Id = 0] = "Id", e[e.Count = 1] = "Count"
        })(l || (l = {}));
        var A = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !0, !1, !0), t.RewardBaseNodeArray = [], t.RewardBaseNodeIcon = [], t.ItemRootArray = [], t.RewardNameTable = [], t.AnimTop = [], t.Progress = null, t.BtnReceive = null, t.ReceiveBtnLabel = null, t.BtnReceiveGrey = null, t.ReceiveBtnGreyLabel = null, t.DEFAULT = 0, t.NORMAL_TOWER_TYPE_ID = 99, t._commonItemPrefab = null, t._itemArray = [], t._lastFightLayerIndex = 0, t._mapIdPrefeix = 0, t._maxDrawMapId = 0, t._isBusy = !1, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), null != this._commonItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(C.BundlePath.ItemComponent)]);
                            case 1:
                                t._commonItemPrefab = n.sent(), n.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
            }, t.prototype.OnItemClick = function(e, t) {
                for (var n = !1, o = 0; o < this.ItemRootArray.length; o++)
                    if (-1 != this.ItemRootArray[o].children.indexOf(t)) {
                        n = !0;
                        break
                    } n && I.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.SetClickEvent = function() {
                this.BtnReceive.node.on("click", this.OnBtnReceiveClick, this), this.BtnReceiveGrey.node.on("click", this.OnBtnReceiveGreyClick, this)
            }, t.prototype.SetStaticLocalText = function() {
                this.ReceiveBtnLabel.string = "receive".ToUILocale(), this.ReceiveBtnGreyLabel.string = "receive".ToUILocale()
            }, t.prototype.InitData = function(e) {
                this._lastFightLayerIndex = e[0], this._typeId = e[1], this.LoadLevelParam()
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this)
            }, t.prototype.LoadLevelParam = function() {
                var e = d.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, v.LevelParamType.TestTowerSpecialReward);
                this._rewardLayer = e.Data
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this);
                for (var t = this.RewardNameTable.length, n = 0; n < t; n++) this.RewardNameTable[n].string = "climbTower_rewards_condition".ToUILocale().Fmt(this._rewardLayer[n]);
                this.LoadItemComponent(), this.SetRewardItem(), this.SetRewardItemPosition(), this.SetProgress(), this.RefreshView()
            }, t.prototype.RefreshView = function() {
                this.SetAnim(), this.SetBtnState()
            }, t.prototype.LoadItemComponent = function() {
                for (var e = 0; e < this.ItemRootArray.length; e++)
                    if (null == this._itemArray[e]) {
                        var t = cc.instantiate(this._commonItemPrefab).getComponent(p.ItemComponent);
                        t.node.parent = this.ItemRootArray[e], this._itemArray[e] = t
                    }
            }, t.prototype.SetRewardItem = function() {
                var e = d.ConfigDataComponent.Instance.GetConfigById(h.TestTowerType_Config, this.NORMAL_TOWER_TYPE_ID);
                this._mapIdPrefeix = e.MapIdPrefix;
                for (var t = 0; t < this._itemArray.length; t++) {
                    var n = d.ConfigDataComponent.Instance.GetConfigById(h.MapTestTower_Config, this._mapIdPrefeix + this._rewardLayer[t]),
                        o = n.ExtraRewards[this.DEFAULT].Items[l.Id],
                        r = n.ExtraRewards[this.DEFAULT].Items[l.Count];
                    this._itemArray[t].Init({
                        ItemId: o,
                        Count: r
                    }, p.ItemComponentType.ItemCommon), this._itemArray[t].node.name = o.toString()
                }
            }, t.prototype.SetRewardItemPosition = function() {
                for (var e = 0; e < this._rewardLayer.length; e++) {
                    var t = (this._rewardLayer[e] - this._rewardLayer[0]) / (this._rewardLayer[this._rewardLayer.length - 1] - this._rewardLayer[0]),
                        n = this.Progress.TotalLength * t;
                    this.RewardBaseNodeArray[e].x = -306.5 + n, this._lastFightLayerIndex >= this._rewardLayer[e] ? this.RewardBaseNodeIcon[e].spriteFrame = I.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_on") : this.RewardBaseNodeIcon[e].spriteFrame = I.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_off")
                }
            }, t.prototype.SetProgress = function() {
                var e = this._rewardLayer[this._rewardLayer.length - 1] - this._rewardLayer[0],
                    t = Math.max(0, this._lastFightLayerIndex - this._rewardLayer[0]) / e;
                this.Progress.progress = t
            }, t.prototype.SetAnim = function() {
                var e, t = y.DataCenter.Instance.GetDataById(f.TestTower_Model, this.NORMAL_TOWER_TYPE_ID);
                e = this._lastFightLayerIndex, g.EZLog.Log(e);
                for (var n = 0; n < this.AnimTop.length; n++) this.AnimTop[n].active = !0, t.ExtraRewardIndex >= this._rewardLayer[n] && (this.AnimTop[n].active = !1, this._itemArray[n].SetReceivedTagState(!0)), e < this._rewardLayer[n] && (this.AnimTop[n].active = !1)
            }, t.prototype.SetBtnState = function() {
                var e, t = !1,
                    n = y.DataCenter.Instance.GetDataById(f.TestTower_Model, this.NORMAL_TOWER_TYPE_ID);
                e = this._lastFightLayerIndex;
                for (var o = 0; o < this._rewardLayer.length; o++)
                    if (e >= this._rewardLayer[o] && n.ExtraRewardIndex < this._rewardLayer[o]) {
                        this._maxDrawMapId = this._rewardLayer[o], t = !0;
                        break
                    } t ? (this.BtnReceive.node.active = !0, this.BtnReceiveGrey.node.active = !1) : (this.BtnReceive.node.active = !1, this.BtnReceiveGrey.node.active = !0)
            }, t.prototype.OnBtnReceiveClick = function() {
                this.RequestDrawExtraReward()
            }, t.prototype.RequestDrawExtraReward = function() {
                if (!this._isBusy) {
                    var e = new f.Req_Map_TestTowerExtraReward;
                    e.Type = this._typeId, e.MapIndex = this._lastFightLayerIndex, this._isBusy = !0, m.RpcComponent.Instance.Call(e, this.ResponseDrawExtraRewardSuccess.bind(this), this.ResponseDrawExtraRewardFail.bind(this))
                }
            }, t.prototype.ResponseDrawExtraRewardSuccess = function(e) {
                this._isBusy = !1, this.Close(), u.Game.EventDispatcher.Emit(_.EventKeys.EVENT_TOWER_LAYER_REFRESH), I.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.ResponseDrawExtraRewardFail = function() {
                this._isBusy = !1
            }, t.prototype.OnBtnReceiveGreyClick = function() {}, i([P(cc.Node)], t.prototype, "RewardBaseNodeArray", void 0), i([P(cc.Sprite)], t.prototype, "RewardBaseNodeIcon", void 0), i([P(cc.Node)], t.prototype, "ItemRootArray", void 0), i([P(cc.Label)], t.prototype, "RewardNameTable", void 0), i([P(cc.Node)], t.prototype, "AnimTop", void 0), i([P(b.default)], t.prototype, "Progress", void 0), i([P(cc.Button)], t.prototype, "BtnReceive", void 0), i([P(cc.Label)], t.prototype, "ReceiveBtnLabel", void 0), i([P(cc.Button)], t.prototype, "BtnReceiveGrey", void 0), i([P(cc.Label)], t.prototype, "ReceiveBtnGreyLabel", void 0), i([w], t)
        }(c.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CloudsTurnPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2dcdePLJeRKX5x28HI9Cvg5", "CloudsTurnPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Independent, !1), t.ani = null, t.aniStartName = "UI_effect_yunwuzhuanchang_star", t.aniContinueName = "UI_effect_yunwuzhuanchang_loop", t.aniEndName = "UI_effect_yunwuzhuanchang_end", t._onCloudCovered = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.InitData = function(e) {
                    this._onCloudCovered = e[0]
                }, t.prototype.DisPlay = function() {
                    var t = this;
                    e.prototype.DisPlay.call(this), n.condition = !1, this.PlayAnimation(this.aniStartName, !1, function() {
                        t._onCloudCovered(), t.PlayAnimation(t.aniContinueName, !0, function() {
                            n.condition && t.PlayAnimation(t.aniEndName, !1, function() {
                                t.Close(), n.condition = !1
                            })
                        })
                    })
                }, t.prototype.PlayAnimation = function(e, t, n) {
                    this.ani.setAnimation(0, e, t) && this.ani.setCompleteListener(function(t) {
                        t.animation.name == e && n()
                    })
                }, t.SetCondition = function() {
                    n.condition = !0
                }, t.condition = !1, i([c(sp.Skeleton)], t.prototype, "ani", void 0), n = i([l], t)
            }(a.BaseUIPanel);
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    CoiledEliminateItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "844fepCFxRCFIvZlQ/6Re9v", "CoiledEliminateItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Count = null, t.CountParent = null, t.CoiledEliminat = null, t.Icon = null, t._counts = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = !0), this.CoiledEliminat.active = n, this.Icon.node.active = n;
                    for (var o = e, r = 0, i = []; o > 0;) {
                        var a = o % 10,
                            s = this._counts[r];
                        if (!s) {
                            var l = cc.instantiate(this.Count.node);
                            l.setParent(this.CountParent), l.setSiblingIndex(0), s = l.getComponent(cc.Sprite), this._counts.push(s)
                        }
                        r++, i.push(a), s.node.active = !0, o = Math.floor(o / 10)
                    }
                    for (; r < this._counts.length; r++) this._counts[r].node.active = !1;
                    for (var c = i.length - 1, u = 0; c >= 0; c--, u++) this._counts[c].spriteFrame = t.getSpriteFrame(i[c].toString())
                }, i([l(cc.Sprite)], t.prototype, "Count", void 0), i([l(cc.Node)], t.prototype, "CountParent", void 0), i([l(cc.Node)], t.prototype, "CoiledEliminat", void 0), i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CoinPurchasePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2a897e11ulDy5l2WVWA1c9R", "CoinPurchasePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../../Util/TimeUtil"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("./CommonPriviledgeTipComponent"),
            I = e("../../../Consts/Consts"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.BubbleRichText = null, t.RefreshTimeRichText = null, t.DetailButton = null, t.SPAni = null, t.PriceNumber = [], t.PurchaseButtons = [], t.PurchaseButtonLabels = [], t.RemainderTimes = [], t.GoodItemMasks = [], t.RedDotOnFreeButton = null, t.PriviledgeNode = null, t.CurrencyIcon = [], t.ManyCurrencyPicture = [], t._aniName = "UI_effect_jinbigoumai", t._diamondId = 3, t._refreshTimeGraduation = [], t._coinCounts = [], t._diamondCosts = [0], t._itemId = I.CommonItemId.Coin, t
                }
                return r(t, e), t.prototype.onDisable = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CommonPanel/SubItems/CommonPriviledgeTipComponent", cc.Prefab), n = this.LoadDynamicAsset("CoinPurchasePanel/PNG/CoinPurchase", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o._priviledgePrefab = e[0], o._coinPurchaseAtlas = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OnEvent(), this._priviledgeNode || (this._priviledgeNode = cc.instantiate(this._priviledgePrefab), this._priviledgeNode.parent = this.PriviledgeNode)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), t[0] && (this._itemId = t[0])
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = g.default.Instance.GetItemPathById(this._itemId), n = this, [4, this.LoadDynamicAsset(t, cc.SpriteFrame)];
                                case 1:
                                    return n._currencyIcon = o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), !t) {
                        switch (this.CurrencyIcon.forEach(function(e) {
                                e.spriteFrame = n._currencyIcon
                            }), this._itemId) {
                            case I.CommonItemId.Coin:
                                this.ManyCurrencyPicture[0].spriteFrame = this._coinPurchaseAtlas.getSpriteFrame("coin_1"), this.ManyCurrencyPicture[1].spriteFrame = this._coinPurchaseAtlas.getSpriteFrame("coin_2"), this.ManyCurrencyPicture[2].spriteFrame = this._coinPurchaseAtlas.getSpriteFrame("coin_3"), this._priviledgeNode.getComponent(m.default).InitData(6, 734, 118), this.Title.string = "coinPurchase".ToUILocale(), this.BubbleRichText.string = "coinPurchase_bubble".ToUILocale(), this._buyConfig = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.BuyCoin), this._buyPriceConfig = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.BuyCoinPrice), this._buyTimeConfig = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.BuyCoinTime);
                                break;
                            case I.CommonItemId.CityWarActionPoint:
                                this.ManyCurrencyPicture[0].spriteFrame = this._coinPurchaseAtlas.getSpriteFrame("actionPoint_1"), this.ManyCurrencyPicture[1].spriteFrame = this._coinPurchaseAtlas.getSpriteFrame("actionPoint_2"), this.ManyCurrencyPicture[2].spriteFrame = this._coinPurchaseAtlas.getSpriteFrame("actionPoint_3"), this._priviledgeNode.getComponent(m.default).InitData(h.ModuleBonusType.BuyBattlePoint, 734, 118), this.Title.string = "ActionPointPurchase".ToUILocale(), this.BubbleRichText.string = "ActionPointPurchase_bubble".ToUILocale(), this._buyConfig = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.BuyAllianceCityWarBattlePoint), this._buyPriceConfig = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.BuyAllianceCityWarBattlePointPrice), this._buyTimeConfig = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.BuyAllianceCityWarBattlePointTime)
                        }
                        this.PurchaseButtonLabels[0].string = "shop_buyFree".ToUILocale();
                        var o = this._buyTimeConfig.Data;
                        if (0 == o[0]) {
                            for (var r = 0; r < o.length - 1; r++) o[r] = o[r + 1];
                            o[o.length - 1] = 24
                        }
                        for (r = 0; r < o.length; r++) this._refreshTimeGraduation[r] = o[r] * h.Etc.HourDuration
                    }
                    this.VariedValueAssign(), this.RefreshTimeTag(), this.StartTimeCounter(), this.SPAni.node.active = !1
                }, t.prototype.OnEvent = function() {
                    var e = this;
                    this.PurchaseButtons.forEach(function(t) {
                        t.node.on("click", e.OnPurchaseButtonClick, e)
                    }), this.GoodItemMasks.forEach(function(t) {
                        t.on(cc.Node.EventType.TOUCH_END, e.OnMaskTouch, e)
                    }), this.DetailButton.node.on("click", this.OnDetailButtonClick, this)
                }, t.prototype.OnPurchaseButtonClick = function(e) {
                    var t = this,
                        n = Number.parseInt(e.name);
                    if (d.DataCenter.Instance.GetItemCount(this._diamondId) < this._diamondCosts[n]) l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [h.MallPageType.DiamondShop, h.GiftPackType.BuyDiamond]);
                    else {
                        switch (this._itemId) {
                            case I.CommonItemId.Coin:
                                var o = new c.Req_Item_BuyCoin;
                                o.Type = n, d.RpcComponent.Instance.Call(o, function(e) {
                                    t.SPAni.node.active = !0, t.SPAni.setAnimation(0, t._aniName, !1), e.Rewards[0].Count > t._coinCounts[o.Type] ? p.UIUtlity.ShowFloatingHint("coinPurchase_superAcquire".ToUILocale().Fmt(e.Rewards[0].Count)) : p.UIUtlity.ShowFloatingHint("coinPurchase_acquire".ToUILocale().Fmt(e.Rewards[0].Count)), t.VariedValueAssign()
                                });
                                break;
                            case I.CommonItemId.CityWarActionPoint:
                                var r = new c.Req_Item_BuyBattlePoint;
                                r.Type = n, d.RpcComponent.Instance.Call(r, function(e) {
                                    t.SPAni.node.active = !0, t.SPAni.setAnimation(0, t._aniName, !1), e.Rewards[0].Count > t._coinCounts[r.Type] ? p.UIUtlity.ShowFloatingHint("actionPointPurchase_superAcquire".ToUILocale().Fmt(e.Rewards[0].Count)) : p.UIUtlity.ShowFloatingHint("actionPointPurchase_acquire".ToUILocale().Fmt(e.Rewards[0].Count)), t.VariedValueAssign()
                                })
                        }
                        e.interactable = !1
                    }
                }, t.prototype.OnMaskTouch = function() {
                    p.UIUtlity.ShowFloatingHint("shop_goodsSoldOut".ToUILocale())
                }, t.prototype.OnDetailButtonClick = function() {
                    var e;
                    switch (this._itemId) {
                        case I.CommonItemId.Coin:
                            e = {
                                name: "coinPurchase_RuleMainTitle".ToUILocale(),
                                titles: ["HeroTalent_Rule".ToUILocale()],
                                contents: ["coinPurchase_RuleText".ToUILocale()]
                            };
                            break;
                        case I.CommonItemId.CityWarActionPoint:
                            e = {
                                name: "ActionPointPurchase".ToUILocale(),
                                titles: ["HeroTalent_Rule".ToUILocale()],
                                contents: ["ActionPointPurchase_RuleText".ToUILocale()]
                            }
                    }
                    p.UIUtlity.ShowRulePanel(e)
                }, t.prototype.VariedValueAssign = function(e) {
                    if (null == e) switch (this._itemId) {
                        case I.CommonItemId.Coin:
                            e = [d.DataCenter.Instance.GetIntData(h.UserDataKey.BuyCoinTime), d.DataCenter.Instance.GetIntData(h.UserDataKey.BuyCoinCount1), d.DataCenter.Instance.GetIntData(h.UserDataKey.BuyCoinCount2), d.DataCenter.Instance.GetIntData(h.UserDataKey.BuyCoinCount3)];
                            break;
                        case I.CommonItemId.CityWarActionPoint:
                            e = [d.DataCenter.Instance.GetIntData(h.UserDataKey.BuyBattlePointTime), d.DataCenter.Instance.GetIntData(h.UserDataKey.BuyBattlePointCount1), d.DataCenter.Instance.GetIntData(h.UserDataKey.BuyBattlePointCount2), d.DataCenter.Instance.GetIntData(h.UserDataKey.BuyBattlePointCount3)]
                    }(0 == e.length || this.shouldRefreshTime(e[0])) && (e = [0, 0, 0, 0]);
                    for (var t = 0; t < this.PurchaseButtonLabels.length; t++) {
                        var n = e[t + 1],
                            o = this._buyConfig.Data2[t].Items[1] - n,
                            r = void 0;
                        if (o > 0 ? (this.GoodItemMasks[t].active = !1, r = o.toString()) : (this.GoodItemMasks[t].active = !0, r = "<color = ff4b4b>" + o + "</>"), this.RemainderTimes[t].string = "coinPurchase_remainderChance".ToUILocale().Fmt(r), t > 0) {
                            var i = this._buyPriceConfig.Data2[t].Items,
                                a = i[n < i.length ? n : i.length - 1];
                            this.PurchaseButtonLabels[t].node.color = d.DataCenter.Instance.GetItemCount(h.CommonItemId.Diamond) < a ? cc.Color.RED : cc.Color.WHITE, this.PurchaseButtonLabels[t].string = a.toString(), this._diamondCosts[t] = a
                        }
                        this.PurchaseButtons[t].interactable = !0
                    }
                    var s, l;
                    switch (this.RedDotOnFreeButton.active = !this.GoodItemMasks[0].active, this._itemId) {
                        case I.CommonItemId.Coin:
                            s = 60 * d.ConfigDataComponent.Instance.GetConfigById(u.MapAdventure_Config, d.DataCenter.Instance.GetIntData(h.UserDataKey.MainLineProgress)).Rewards[0].Items[1] / 1e5, l = h.ModuleBonusType.BuyCoin;
                            break;
                        case I.CommonItemId.CityWarActionPoint:
                            s = 1, l = h.ModuleBonusType.BuyBattlePoint
                    }
                    var c = g.default.GetModuleBonusByType(l),
                        p = (c = null == c ? 0 : c) / 1e3;
                    for (t = 0; t < this.PriceNumber.length; t++) this._coinCounts[t] = s * this._buyConfig.Data2[t].Items[0], this._coinCounts[t] += this._coinCounts[t] * p, this.PriceNumber[t].string = this._coinCounts[t].toString()
                }, t.prototype.shouldRefreshTime = function(e) {
                    var t = d.RpcComponent.Instance.ServerTime;
                    if (t - e >= h.Etc.DayDuration) return !0;
                    for (var n = e - f.TimeUtil.Get0ClockTs(e), o = t - f.TimeUtil.Get0ClockTs(t), r = null, i = null, a = 0; a < this._refreshTimeGraduation.length && (null == r || null == i); a++) n < this._refreshTimeGraduation[a] && null == r && (r = a), o < this._refreshTimeGraduation[a] && null == i && (i = a);
                    return r != i
                }, t.prototype.RefreshTimeTag = function() {
                    for (var e, t = d.RpcComponent.Instance.ServerTime, n = t - f.TimeUtil.Get0ClockTs(t), o = 0; o < this._refreshTimeGraduation.length; o++)
                        if (n < this._refreshTimeGraduation[o]) {
                            null == this._nextClock && (this._nextClock = o), this._nextClock != o && (this.VariedValueAssign([]), this._nextClock = o), e = this._refreshTimeGraduation[o] - n;
                            break
                        } this.RefreshTimeRichText.string = "coinPurchase_refresh".ToUILocale().Fmt(e.FmtRemainTime())
                }, t.prototype.StartTimeCounter = function() {
                    this.schedule(this.RefreshTimeTag, 1)
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.RichText)], t.prototype, "BubbleRichText", void 0), i([v(cc.RichText)], t.prototype, "RefreshTimeRichText", void 0), i([v(cc.Button)], t.prototype, "DetailButton", void 0), i([v(sp.Skeleton)], t.prototype, "SPAni", void 0), i([v({
                    type: [cc.Label]
                })], t.prototype, "PriceNumber", void 0), i([v({
                    type: [cc.Button]
                })], t.prototype, "PurchaseButtons", void 0), i([v({
                    type: [cc.Label]
                })], t.prototype, "PurchaseButtonLabels", void 0), i([v({
                    type: [cc.RichText]
                })], t.prototype, "RemainderTimes", void 0), i([v({
                    type: [cc.Node]
                })], t.prototype, "GoodItemMasks", void 0), i([v(cc.Node)], t.prototype, "RedDotOnFreeButton", void 0), i([v(cc.Node)], t.prototype, "PriviledgeNode", void 0), i([v(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([v(cc.Sprite)], t.prototype, "ManyCurrencyPicture", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CommonPriviledgeTipComponent": "CommonPriviledgeTipComponent"
    }],
    CollectionEntryItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5c6d2uj3GJA66EhkXZeoH8w", "CollectionEntryItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Panel/CollectionPavilionPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../../Auxiliary/ModuleGuideManager"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/RpcComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GuideManager"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.MaskIcon = null, t.TitleSprite = null, t.LockNode = null, t._unloadAssets = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "EntryType", {
                    get: function() {
                        return this._entryType
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    this.node.on("click", this.OnEntryItemClick, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this)
                }, t.prototype.onDisable = function() {
                    this.node.off("click", this.OnEntryItemClick, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._entryType = t, this._mainPanel = o, this.LockNode.active = !n, this.SetBg(e), this.ShowModuleGuide()
                }, t.prototype.SetBg = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, c.AssetsManager.Instance.LoadAsset("CollectionPavilionPanel/Png/CollectionEntryItemBg_" + this._entryType, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._unloadAssets.push(t), this.Bg.spriteFrame = t, this.MaskIcon.spriteFrame = t, this.TitleSprite.spriteFrame = e.getSpriteFrame("EntryItemTitle_" + this._entryType), [2]) : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.OnEntryItemClick = function() {
                    if (this._mainPanel.OnEntryItemClick(this._entryType), this._entryType == l.CollectionPavilionEntryItem.SoulRecord && p.default.instance.CheckNeedRequestGameModule(u.GameModuleType.FighterSpirit)) {
                        var e = new d.Req_Player_CompleteGameModuleGuide;
                        e.Id = u.GameModuleType.FighterSpirit, h.RpcComponent.Instance.Call(e, function() {
                            c.Game.EventDispatcher.Emit(f.EventKeys.EVENT_REFRESH_GUIDE_MODULE)
                        })
                    }
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.ShowModuleGuide = function() {
                    if (!y.default.Instance.IsInGuide && this._entryType == l.CollectionPavilionEntryItem.SoulRecord) {
                        var e = p.default.instance.GetNextGuideModule();
                        e > 0 && e == u.GameModuleType.FighterSpirit ? p.default.instance.AddFingerNode(this.node) : p.default.instance.RemoveFingerNode(this.node)
                    }
                }, i([I(cc.Sprite)], t.prototype, "Bg", void 0), i([I(cc.Sprite)], t.prototype, "MaskIcon", void 0), i([I(cc.Sprite)], t.prototype, "TitleSprite", void 0), i([I(cc.Node)], t.prototype, "LockNode", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/RpcComponent": "RpcComponent",
        "../Panel/CollectionPavilionPanel": "CollectionPavilionPanel"
    }],
    CollectionHandbookAttributePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "48407JkWBhOap4qF2Nlsw9C", "CollectionHandbookAttributePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/HeroAttributeItem"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.Title = null, t.AttrTitle = null, t.MainNode = null, t.Parent = null, t.HintNode = null, t.NoAttrNode = null, t.NoAttrLabel = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionHandbookAttributeItem", cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "handbook_attr_total".ToUILocale(), this.AttrTitle.string = "heroSkin_attr".ToUILocale(), this.NoAttrLabel.string = "CollectionPavilion_Tip_UnAttr".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._attrData = t[0], this._contentKeys = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), t || (this._contentKeys && this.SetLabels(), this.SetNodeAttributeList())
                }, t.prototype.SetLabels = function() {
                    this.Title.string = this._contentKeys.PanelTitleKey.ToUILocale(), this.AttrTitle.string = this._contentKeys.AttributeTitleKey.ToUILocale(), this.NoAttrLabel.string = this._contentKeys.EmptyContentKey.ToUILocale()
                }, t.prototype.SetNodeAttributeList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function() {
                            for (t in e = 0, this._attrData) n = Number(t), this._itemNodes[e] || ((o = cc.instantiate(this._itemPrefab)).parent = this.Parent.node, this._itemNodes[e] = o), (r = this._itemNodes[e].getComponent(c.default)).Init(n, this._attrData[n], !0), r.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()), e++;
                            return this.NoAttrNode.active = 0 == e, this.Parent.node.active = e > 0, this.Parent.updateLayout(), this.MainNode.getComponent(cc.Layout).updateLayout(), this.HintNode.y = -(this.MainNode.height / 2 + 50), [2]
                        })
                    })
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Label)], t.prototype, "AttrTitle", void 0), i([d(cc.Node)], t.prototype, "MainNode", void 0), i([d(cc.Layout)], t.prototype, "Parent", void 0), i([d(cc.Node)], t.prototype, "HintNode", void 0), i([d(cc.Node)], t.prototype, "NoAttrNode", void 0), i([d(cc.Label)], t.prototype, "NoAttrLabel", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/HeroAttributeItem": "HeroAttributeItem"
    }],
    CollectionHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ab0d8nI3BhFK4uCkFva/Uac", "CollectionHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CollectionHandbookType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/HeroElementGroup"),
            y = e("../Components/HeroAttributeItem"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Components/PersonalityHandbookComponent"),
            _ = e("../Components/SkinHandbookComponent"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../Channel/ChannelManager");
        (function(e) {
            e[e.Personality = 0] = "Personality", e[e.Skin = 1] = "Skin", e[e.Hero = 2] = "Hero", e[e.HeroSubliming = 3] = "HeroSubliming", e[e.Pet = 4] = "Pet", e[e.MagicCircle = 5] = "MagicCircle"
        })(l = n.CollectionHandbookType || (n.CollectionHandbookType = {}));
        var S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Bg = null, t.HeroTitle = null, t.HeroName = null, t.PersonalityLvNode = null, t.PersonalityLvLabel = null, t.RuleButton = null, t.HideButton = null, t.HideLabel = null, t.AvatarNode = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.HeroElementGroup = null, t.PersonalityScroller = null, t.SkinScroller = null, t.PersonalityContent = null, t.SkinContent = null, t.UpLabel = null, t.HeroAttributeItems = [], t.DescLabel = null, t.ReturnButton = null, t.UnlockButton = null, t.UnlockLabel = null, t.TotalButton = null, t.TotalLabel = null, t.lockButton = null, t.lockLabel = null, t.ActiveNode = null, t.HideNode = null, t.LeftRedNode = null, t.RightRedNode = null, t.SkinMaxLvLabel = null, t.UnLockRedNode = null, t._selectIndex = 0, t._isHide = !1, t._datas = [], t._sortDatas = [], t._listComponents = [], t._curCardState = !1, t._loadCount = 0, t.ShowItemCount = 10, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.On(m.EventKeys.EVENT_PERSONALITYHANDBOOK_REFRESH, this.ClickCard, this), c.Game.EventDispatcher.On(m.EventKeys.EVENT_SKINHANDBOOK_REFRESH, this.ClickCard, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.Off(m.EventKeys.EVENT_PERSONALITYHANDBOOK_REFRESH, this.ClickCard, this), c.Game.EventDispatcher.Off(m.EventKeys.EVENT_SKINHANDBOOK_REFRESH, this.ClickCard, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.UpLabel.string = "handbook_all_hero_up".ToUILocale(), this.lockLabel.string = "allianceTalent_active".ToUILocale(), this.TotalLabel.string = "handbook_attr_total".ToUILocale(), this.SkinMaxLvLabel.string = "common_max_level".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.UnlockButton.node.on("click", this.OnUnlockButtonClick, this), this.TotalButton.node.on("click", this.OnTotalButtonClick, this), this.PersonalityScroller.node.on("scrolling", this.OnScrolling, this), this.SkinScroller.node.on("scrolling", this.OnScrolling, this), this.HeroElementGroup.SetElementModeByIndex(g.HeroElementType.All)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    if (e.prototype.InitData.call(this, t), this._type = t[0], t[1] && (this._cardId = t[1]), this._datas = [], this._type == l.Personality) {
                        var o = d.ConfigDataComponent.Instance.GetArrayConfig(u.PersonalityAddon_Config);
                        this._dataKey = g.UserDataKey.ActivePersonalityIdLevels, o.forEach(function(e) {
                            var t = {};
                            t.Id = e.Id, t.HeroId = e.HeroId, t.Attrs = e.Attrs, t.Type = l.Personality, n._datas.push(t)
                        })
                    } else this._type == l.Skin && (d.ConfigDataComponent.Instance.GetArrayConfig(u.HeroSkin_Config).forEach(function(e) {
                        if (e.PicAttrIds && e.PicAttrIds.length > 0) {
                            var t = {};
                            t.Id = e.Id, t.HeroId = e.HeroId, t.AttrIds = e.PicAttrIds, t.Type = l.Skin, n._datas.push(t)
                        }
                    }), this._skinLevelConfigs = d.ConfigDataComponent.Instance.GetArrayConfig(u.HeroSkinLevel_Config));
                    this._selectElementType = g.HeroElementType.All, this._elementData = {}, this._datas.forEach(function(e) {
                        var t = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, e.HeroId);
                        v.default.IsHeroShownAvailable(t) && (n._elementData[t.ElementType] ? n._elementData[t.ElementType].push(e) : n._elementData[t.ElementType] = [e])
                    }), this._loadCount = this.ShowItemCount
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = "", n = "", this._type == l.Personality ? (t = "CommonBg/PanelBg10", n = "CustomizeMainScenePanel/PersonalityHandbookComponent") : this._type == l.Skin && (t = "CommonBg/BgSkin1", n = "CollectionPavilionPanel/Components/SkinHandbookComponent"), [4, Promise.all([this.LoadDynamicAsset(t, cc.SpriteFrame), this.LoadDynamicAsset(n, cc.Prefab)]).then(function(e) {
                                        o.Bg.spriteFrame = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetListData(), this.SetUIContent()
                }, t.prototype.CheckSkinCanShow = function(e) {
                    var t = d.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, e.Id);
                    return !!t && v.default.IsSkinShownAvailable(t)
                }, t.prototype.SetListData = function() {
                    var e = this,
                        t = [],
                        o = [];
                    if (this._sortDatas = [], this._datas.forEach(function(n) {
                            var r = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, n.HeroId);
                            if (v.default.IsHeroShownAvailable(r)) {
                                var i = !0;
                                if (e._type == l.Skin && (i = e.CheckSkinCanShow(n)), i && (e._selectElementType == g.HeroElementType.All || e._selectElementType == r.ElementType))
                                    if (e._type == l.Skin) {
                                        var a = !1,
                                            s = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, n.Id);
                                        s && s.PicLevel > 0 && (a = !0), a ? t.push(n) : o.push(n)
                                    } else e._type == l.Personality && (d.DataCenter.Instance.GetArrayData(e._dataKey).includes(n.Id) ? t.push(n) : o.push(n))
                            }
                        }), t.sort(function(e, t) {
                            var n = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, e.HeroId),
                                o = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, t.HeroId);
                            return n.ElementType != o.ElementType ? n.ElementType - o.ElementType : e.HeroId - t.HeroId
                        }), o.sort(function(e, t) {
                            var o = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, e.HeroId),
                                r = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, t.HeroId);
                            return n.CheckCardCanActive(e) && !n.CheckCardCanActive(t) ? -1 : !n.CheckCardCanActive(e) && n.CheckCardCanActive(t) ? 1 : o.ElementType != r.ElementType ? o.ElementType - r.ElementType : e.HeroId - t.HeroId
                        }), this._sortDatas = t.concat(o), this._cardId > 0) {
                        var r = this._sortDatas.findIndex(function(t) {
                            return t.Id == e._cardId
                        });
                        r > -1 && (this._selectIndex = r)
                    }
                }, t.prototype.SetUIContent = function(e) {
                    void 0 === e && (e = !1), this.SetTopInfo(), this.SetAvator(), this.SetHideUI(), this.SetElementRedDot(), this.SetItemList(e), this.SetAttrs(), this.SetButtons(), this.SetDescLabel(), this.SetRedDot()
                }, t.prototype.SetDescLabel = function() {
                    var e = this.CheckCardIsActive(this._sortDatas[this._selectIndex]);
                    if (this.DescLabel.node.active = !e, e) this.DescLabel.node.active = !1;
                    else if (this._type == l.Personality) {
                        var t = n.GetNextActiveAttrData(this._sortDatas[this._selectIndex]);
                        if (t) {
                            for (var o = !1, r = d.DataCenter.Instance.GetArrayData(this._dataKey), i = 0; i < r.length; i += 2)
                                if (r[i] == this._sortDatas[this._selectIndex].Id) {
                                    o = !0;
                                    break
                                } this.DescLabel.node.active = !0, this.DescLabel.string = o ? "handbook_active_desc1".ToUILocale().Fmt(t.Items[0]) : "handbook_active_desc".ToUILocale().Fmt(t.Items[0])
                        } else this.DescLabel.node.active = !1
                    } else if (this._type == l.Skin) {
                        this.DescLabel.node.active = !0;
                        var a = !1,
                            s = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, this._sortDatas[this._selectIndex].Id);
                        s && s.IsPerpetual && s.PicLevel >= 1 && (a = !0), this.DescLabel.string = a ? "heroSkin_to_levelUp".ToUILocale() : "handbook_active_desc2".ToUILocale()
                    }
                }, t.CheckCardCanActive = function(e) {
                    if (e) {
                        var t = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, e.HeroId);
                        if (e.Type == l.Personality) return !!t && n.CheckPersonalityIsHave(e);
                        if (e.Type == l.Skin) return n.ChekcSkinIsHave(e)
                    }
                    return !1
                }, t.prototype.SetTopInfo = function() {
                    if (this._sortDatas[this._selectIndex]) {
                        var e = this._sortDatas[this._selectIndex].HeroId;
                        if (this.PersonalityLvNode.active = this._type == l.Personality, this._type == l.Personality) {
                            var t = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, e),
                                n = t && t.PersonalityStar > 0 ? t.PersonalityStar : 0;
                            this.PersonalityLvLabel.string = n.toString()
                        }
                        var o = b.default.Instance.IsVNChannel();
                        this.HeroTitle.string = o ? e.ToHeroName() : e.ToHeroTitle(), this.HeroName.node.active = !o, o || (this.HeroName.string = e.ToHeroName())
                    }
                }, t.prototype.SetAvator = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, f, y, g;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (t = this._sortDatas[this._selectIndex].Id, this.AvatarNode.destroyAllChildren(), this.ClaerAvatarPrefab(), n = this.CheckCardIsActive(this._sortDatas[this._selectIndex]), o = !1, this._type == l.Personality) {
                                        for (r = d.DataCenter.Instance.GetArrayData(this._dataKey), i = 0; i < r.length; i += 2)
                                            if (r[i] == t) {
                                                o = !0;
                                                break
                                            }
                                    } else this._type == l.Skin && (a = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, t)) && a.PicLevel > 0 && (o = !0);
                                    return this._type == l.Personality ? (this.UnlockLabel.string = o ? "common_unlock".ToUILocale() : "allianceTalent_active".ToUILocale(), this._avatarPath = "AdultPicture" + t + "/Avatar") : this._type == l.Skin && ((f = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, t)) && f.PicLevel && f.PicLevel >= 1 ? f.PicLevel < f.Level ? this.UnlockLabel.string = "PowerCore_BottomToggle_0".ToUILocale() : this.UnlockLabel.string = "task_goto".ToUILocale() : this.UnlockLabel.string = "allianceTalent_active".ToUILocale(), y = d.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, t), this._avatarPath = y.UIAvatar + "/Avatar"), [4, c.AssetsManager.Instance.LoadAsset(this._avatarPath)];
                                case 1:
                                    return e = s.sent(), this.isValid ? e.name != this._avatarPath ? [3, 14] : (this._currentAvatarPrefab = e, (g = cc.instantiate(e)).opacity = 0, g.setParent(this.AvatarNode), this._type != l.Personality ? [3, 9] : n ? [3, 6] : o ? (g.getComponent(sp.Skeleton).clearTracks(), g.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), [4, h.UIUtlity.OffSpineGray(this.AvatarNode)]) : [3, 3]) : (c.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    return s.sent(), g.opacity = 255, [3, 5];
                                case 3:
                                    return g.getComponent(sp.Skeleton).clearTracks(), [4, h.UIUtlity.OnSpineGray(this.AvatarNode)];
                                case 4:
                                    s.sent(), g.opacity = 255, s.label = 5;
                                case 5:
                                    return [3, 8];
                                case 6:
                                    return g.getComponent(sp.Skeleton).clearTracks(), g.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), [4, h.UIUtlity.OffSpineGray(this.AvatarNode)];
                                case 7:
                                    s.sent(), g.opacity = 255, s.label = 8;
                                case 8:
                                    return [3, 13];
                                case 9:
                                    return this._type != l.Skin ? [3, 13] : o ? (g.getComponent(sp.Skeleton).clearTracks(), g.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), [4, h.UIUtlity.OffSpineGray(this.AvatarNode)]) : [3, 11];
                                case 10:
                                    return s.sent(), g.opacity = 255, [3, 13];
                                case 11:
                                    return g.getComponent(sp.Skeleton).clearTracks(), [4, h.UIUtlity.OnSpineGray(this.AvatarNode)];
                                case 12:
                                    s.sent(), g.opacity = 255, s.label = 13;
                                case 13:
                                    return this._avatarAlphaTween && this._avatarAlphaTween.stop(), g.opacity = 20, this._avatarAlphaTween = cc.tween(g).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start(), [3, 15];
                                case 14:
                                    c.AssetsManager.Instance.UnloadAsset(e), s.label = 15;
                                case 15:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ClaerAvatarPrefab = function() {
                    this._currentAvatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
                }, t.prototype.SetHideUI = function() {
                    if (this.HideLabel.string = this._isHide ? "personalityCall_show".ToUILocale() : "personalityCall_hide".ToUILocale(), this._isHide) {
                        var e = !0;
                        this._type == l.Personality ? -1 == d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, g.LevelParamType.MainScenePersonalityNoMaskIds).Data.indexOf(this._sortDatas[this._selectIndex].Id) && (e = !1) : this._type == l.Skin && -1 == d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, g.LevelParamType.MainSceneHeroNoMaskIds).Data.indexOf(this._sortDatas[this._selectIndex].Id) && (e = !1), this.HideNode.active = e
                    } else this.HideNode.active = !0
                }, t.prototype.OnSwitchHeroElement = function(e, t) {
                    if (t == this.HeroElementGroup.node) {
                        var n = this._selectElementType;
                        if (this._selectElementType != e)
                            if (this._selectElementType = e, this._selectIndex = 0, this._loadCount = this.ShowItemCount, this.SetListData(), this._sortDatas.length > 0) this.SetUIContent(!0);
                            else {
                                var o = this._type == l.Personality ? "personality".ToUILocale() : "skin".ToUILocale();
                                this.HeroElementGroup.SetElementModeByIndex(n), h.UIUtlity.ShowFloatingHint("handbook_no_data".ToUILocale().Fmt(o))
                            }
                    }
                }, t.prototype.SetElementRedDot = function() {
                    for (var e = [], t = g.HeroElementType.Heart; t <= g.HeroElementType.Chaos; t++) {
                        var o = this._elementData[t];
                        if (o)
                            for (var r = 0; r < o.length; r++)
                                if (!this.CheckCardIsActive(o[r]) && n.CheckCardCanActive(o[r])) {
                                    e.push(t);
                                    break
                                }
                    }
                    e.length > 0 && e.push(0), this.HeroElementGroup.UpdateRedDots(e)
                }, t.prototype.SetItemList = function(e) {
                    if (void 0 === e && (e = !1), !this.IsReDisPlay || e) {
                        this.PersonalityScroller.node.active = this._type == l.Personality, this.SkinScroller.node.active = this._type == l.Skin, this._type == l.Personality ? this.PersonalityScroller.scrollToLeft() : this.SkinScroller.scrollToLeft();
                        var t = this._type == l.Personality ? this.PersonalityContent : this.SkinContent;
                        this._listComponents.forEach(function(e) {
                            e.node.active = !1
                        });
                        for (var n = 0; n < this._sortDatas.length && !(n >= this._loadCount && 0 == this._cardId); n++) this.LoadListItem(n, t)
                    }
                    this._cardId > 0 && (this._loadCount = this._sortDatas.length, this.scheduleOnce(this.RefreshList, 0), this._cardId = 0)
                }, t.prototype.SetAttrs = function() {
                    if (this._type == l.Personality) {
                        if (this._sortDatas[this._selectIndex]) {
                            var e = this.GetCurrentActiveAttrData(this._sortDatas[this._selectIndex]),
                                t = n.GetNextActiveAttrData(this._sortDatas[this._selectIndex]),
                                o = [],
                                r = [];
                            if (e)
                                for (var i = 1; i < e.Items.length; i += 2) {
                                    var a = [e.Items[i], e.Items[i + 1]];
                                    o.push(a)
                                }
                            if (t) {
                                var s = function(e) {
                                    var n, i = t.Items[e],
                                        a = o.find(function(e) {
                                            return e[0] == i
                                        });
                                    n = a ? [i, t.Items[e + 1] - a[1]] : [i, t.Items[e + 1]], r.push(n)
                                };
                                for (i = 1; i < t.Items.length; i += 2) s(i)
                            }
                            this.HeroAttributeItems.forEach(function(e, t) {
                                if (o[t] || r[t]) {
                                    e.node.active = !0;
                                    var n = {};
                                    o[t] ? (n.AttrId = o[t][0], n.CurValue = o[t][1], r[t] ? (n.AnchorXCurValue = 0, n.CurValueX = 275, n.AddValue = r[t][1], n.AnchorXAddValue = 1, n.AddValueX = 480) : (n.AnchorXCurValue = .5, n.CurValueX = 375, n.AddValue = null, n.AnchorXAddValue = null, n.AddValueX = null)) : r[t] ? (n.AttrId = r[t][0], n.CurValue = 0, n.AnchorXCurValue = 0, n.CurValueX = 275, n.AddValue = r[t][1], n.AnchorXAddValue = 1, n.AddValueX = 480) : e.node.active = !1, e.InitDoubleValue(n), e.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                                } else e.node.active = !1
                            })
                        }
                    } else if (this._type == l.Skin) {
                        var c = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, this._sortDatas[this._selectIndex].Id),
                            h = [],
                            f = void 0,
                            y = c && c.PicLevel > 0 ? c.PicLevel : 1;
                        if (this._sortDatas[this._selectIndex].AttrIds[y - 1] > 0) {
                            f = this._sortDatas[this._selectIndex].AttrIds[y - 1];
                            var g = d.ConfigDataComponent.Instance.GetConfigById(u.HeroSkinAttrs_Config, f);
                            h = g.Attrs
                        }
                        this.HeroAttributeItems.forEach(function(e, t) {
                            if (h[t]) {
                                e.node.active = !0;
                                var n = h[t];
                                e.Init(n.Items[0], n.Items[1], !0), e.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                            } else e.node.active = !1
                        })
                    }
                }, t.prototype.SetButtons = function() {
                    if (this._sortDatas[this._selectIndex])
                        if (this.UnlockButton.node.active = !1, this.lockButton.node.active = !1, this.ActiveNode.active = !1, this.SkinMaxLvLabel.node.active = !1, this.LeftArrowButton.node.active = this._selectIndex > 0, this.RightArrowButton.node.active = this._selectIndex < this._sortDatas.length - 1, this.CheckCardIsActive(this._sortDatas[this._selectIndex])) this.ActiveNode.active = this._type == l.Personality, this.SkinMaxLvLabel.node.active = this._type == l.Skin;
                        else if (this._type == l.Personality) n.CheckPersonalityIsHave(this._sortDatas[this._selectIndex]) ? this.UnlockButton.node.active = !0 : this.lockButton.node.active = !0;
                    else if (this._type == l.Skin) {
                        var e = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, this._sortDatas[this._selectIndex].Id);
                        n.ChekcSkinIsHave(this._sortDatas[this._selectIndex]) ? (this.UnlockButton.node.active = !0, this.UnLockRedNode.active = !0) : e && e.PicLevel > 0 ? (this.UnlockButton.node.active = !0, this.UnLockRedNode.active = !1) : (this.lockButton.node.active = !0, this.lockLabel.string = "allianceTalent_active".ToUILocale())
                    }
                }, t.prototype.SetRedDot = function() {
                    this._selectIndex > 0 ? this.LeftRedNode.active = this.IsShowReddot(this._sortDatas[this._selectIndex - 1]) : this.LeftRedNode.active = !1, this._selectIndex < this._sortDatas.length - 1 ? this.RightRedNode.active = this.IsShowReddot(this._sortDatas[this._selectIndex + 1]) : this.RightRedNode.active = !1
                }, t.prototype.IsShowReddot = function(e) {
                    var t = this.CheckCardIsActive(e);
                    return e.Type == l.Personality ? !t && n.CheckPersonalityIsHave(e) : e.Type == l.Skin ? !t && n.ChekcSkinIsHave(e) : void 0
                }, t.CheckPersonalityIsHave = function(e) {
                    var t = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, e.HeroId),
                        o = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, e.HeroId),
                        r = !1,
                        i = t.AdultPictures.find(function(t) {
                            return t.Items[0] == e.Id
                        });
                    if (i && o) {
                        var a = i.Items[1];
                        o.PersonalityStar >= a && (r = !0)
                    }
                    if (r) {
                        var s = n.GetNextActiveAttrData(e);
                        return !!s && o.PersonalityStar >= s.Items[0]
                    }
                    return !1
                }, t.GetNextActiveAttrData = function(e) {
                    for (var t = d.DataCenter.Instance.GetArrayData(g.UserDataKey.ActivePersonalityIdLevels), n = 0, o = null, r = 0; r < t.length; r += 2)
                        if (t[r] == e.Id && e.Attrs[t[r + 1]]) {
                            n = e.Attrs[t[r + 1]].Items[0];
                            break
                        } for (r = 0; r < e.Attrs.length; r++) {
                        var i = e.Attrs[r];
                        if (n < i.Items[0]) {
                            o = i;
                            break
                        }
                    }
                    return o
                }, t.prototype.GetCurrentActiveAttrData = function(e) {
                    for (var t = d.DataCenter.Instance.GetArrayData(g.UserDataKey.ActivePersonalityIdLevels), n = 0, o = null, r = 0; r < t.length; r += 2)
                        if (t[r] == e.Id && e.Attrs[t[r + 1]]) {
                            n = e.Attrs[t[r + 1]].Items[0];
                            break
                        } for (r = e.Attrs.length - 1; r >= 0; r--) {
                        var i = e.Attrs[r];
                        if (n >= i.Items[0]) {
                            o = i;
                            break
                        }
                    }
                    return o
                }, t.ChekcSkinIsHave = function(e) {
                    var t = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, e.Id);
                    return !!(t && t.IsPerpetual && t.PicLevel < t.Level)
                }, t.prototype.CheckCardIsActive = function(e) {
                    var t = !1;
                    if (this._type == l.Personality) {
                        for (var n = d.DataCenter.Instance.GetArrayData(this._dataKey), o = 0, r = 0; r < n.length; r += 2)
                            if (n[r] == e.Id && e.Attrs[n[r + 1]]) {
                                o = e.Attrs[n[r + 1]].Items[0];
                                break
                            } if (e.Attrs.length > 0) {
                            var i = e.Attrs.length;
                            t = o >= e.Attrs[i - 1].Items[0]
                        }
                    } else if (this._type == l.Skin) {
                        var a = e.Id,
                            s = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, a);
                        s && s.PicLevel > 0 && s.PicLevel == this._skinLevelConfigs.length && (t = !0)
                    }
                    return t
                }, t.prototype.ClickCard = function(e) {
                    this._selectIndex != e && (this._listComponents[e] && this._listComponents[e].SetSelectBG(!0), this._listComponents[this._selectIndex] && this._listComponents[this._selectIndex].SetSelectBG(!1), this._selectIndex = e, this.SetTopInfo(), this.SetAvator(), this.SetAttrs(), this.SetButtons(), this.SetDescLabel(), this.SetRedDot())
                }, t.prototype.OnRuleButtonClick = function() {
                    var e;
                    this._type == l.Personality ? e = {
                        name: "handbook_person_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["handbook_person_rule_content".ToUILocale()]
                    } : this._type == l.Skin && (e = {
                        name: "handbook_skin_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["handbook_skin_rule_content".ToUILocale()]
                    }), h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnHideButtonClick = function() {
                    this._isHide ? this._isHide = !1 : this._isHide = !0, this.SetHideUI()
                }, t.prototype.OnLeftArrowButtonClick = function() {
                    var e = this._selectIndex - 1 < 0 ? 0 : this._selectIndex - 1;
                    this.ClickCard(e), this.RefreshList(), this.SetHideUI()
                }, t.prototype.OnRightArrowButtonClick = function() {
                    var e = this._selectIndex + 1 > this._sortDatas.length - 1 ? this._sortDatas.length - 1 : this._selectIndex + 1;
                    this.ClickCard(e), this.RefreshList(), this.SetHideUI()
                }, t.prototype.RefreshList = function() {
                    var e = this._selectIndex - 2 >= 0 ? this._selectIndex - 2 : 0;
                    if (this._type == l.Personality) {
                        var t = 202;
                        this.PersonalityScroller.scrollToOffset(new cc.Vec2(t * e, 0), .2)
                    } else this._type == l.Skin && (t = 230, this.SkinScroller.scrollToOffset(new cc.Vec2(t * e, 0), .2))
                }, t.prototype.OnReturnButtonClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnUnlockButtonClick = function() {
                    var e = this._type == l.Personality ? g.GameModuleType.Personality : g.GameModuleType.HeroSkin;
                    if (!this.CheckCardIsActive(this._sortDatas[this._selectIndex])) {
                        if (this._type == l.Personality) this._curCardState = this.GetPersonalityCardState();
                        else if (this._type == l.Skin) {
                            var t = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, this._sortDatas[this._selectIndex].Id);
                            if (t && t.IsPerpetual && t.PicLevel >= t.Level && t.PicLevel > 0) return void c.UIManager.Instance.ShowUIPanel(C.PanelConfig.HeroSkinPanel.Path, this._sortDatas[this._selectIndex].HeroId, 3, this._sortDatas[this._selectIndex].Id)
                        }
                        this._oldBattlePower = d.DataCenter.Instance.GetIntData(g.UserDataKey.Power);
                        var n = new p.Req_Hero_ActivePicSkin;
                        n.Type = e, n.Id = this._sortDatas[this._selectIndex].Id, d.RpcComponent.Instance.Call(n, this.RequestActiveSuccess.bind(this))
                    }
                }, t.prototype.GetPersonalityCardState = function() {
                    for (var e = d.DataCenter.Instance.GetArrayData(this._dataKey), t = 0; t < e.length; t += 2)
                        if (e[t] == this._sortDatas[this._selectIndex].Id) return !0;
                    return !1
                }, t.prototype.RequestActiveSuccess = function() {
                    if (this.SetButtons(), this.SetAttrs(), this.SetElementRedDot(), this.SetDescLabel(), this._listComponents[this._selectIndex])
                        if (this._type == l.Personality) {
                            var e = this.CheckCardIsActive(this._sortDatas[this._selectIndex]);
                            this._listComponents[this._selectIndex].IsGrayIcon(!1), this._listComponents[this._selectIndex].SetRedDot(!e && n.CheckPersonalityIsHave(this._sortDatas[this._selectIndex]))
                        } else this._type == l.Skin && (this._listComponents[this._selectIndex].IsGrayIcon(!1), this._listComponents[this._selectIndex].SetRedDot(!1));
                    if (this._type == l.Personality) {
                        this._curCardState != this.GetPersonalityCardState() && this.SetAvator();
                        var t = this.GetCurrentActiveAttrData(this._sortDatas[this._selectIndex]);
                        c.UIManager.Instance.ShowUIPanel(C.PanelConfig.CollectionHandbookSuccessPanel.Path, this._type, t, null)
                    } else if (this._type == l.Skin) {
                        this.SetAvator();
                        var o = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, this._sortDatas[this._selectIndex].Id),
                            r = [];
                        if (o && o.PicLevel > 0 && this._sortDatas[this._selectIndex].AttrIds[o.PicLevel - 1] > 0) {
                            var i = this._sortDatas[this._selectIndex].AttrIds[o.PicLevel - 1];
                            r = d.ConfigDataComponent.Instance.GetConfigById(u.HeroSkinAttrs_Config, i).Attrs
                        }
                        c.UIManager.Instance.ShowUIPanel(C.PanelConfig.CollectionHandbookSuccessPanel.Path, this._type, null, r)
                    }
                    var a = d.DataCenter.Instance.GetIntData(g.UserDataKey.Power);
                    this._oldBattlePower != a && c.UIManager.Instance.ShowUIPanel(C.PanelConfig.BattlePowerChangePanel.Path, this._oldBattlePower, a)
                }, t.prototype.OnTotalButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(C.PanelConfig.CollectionHandbookAttributePanel.Path, this.GetAttrDataByType())
                }, t.prototype.LoadListItem = function(e, t) {
                    var o = this._sortDatas[e];
                    if (!this._listComponents[e]) {
                        var r = cc.instantiate(this._itemPrefab);
                        r.parent = t, this._type == l.Personality ? this._listComponents[e] = r.getComponent(I.default) : this._type == l.Skin && (this._listComponents[e] = r.getComponent(_.default))
                    }
                    var i = this.CheckCardIsActive(this._sortDatas[e]);
                    if (this._listComponents[e].node.active = !0, this._listComponents[e].Init(e, o.Id, this._selectIndex), this._listComponents[e].SetSelectBG(e == this._selectIndex), this._type == l.Personality) {
                        for (var a = d.DataCenter.Instance.GetArrayData(this._dataKey), s = !1, c = 0; c < a.length; c += 2)
                            if (a[c] == o.Id) {
                                s = !0;
                                break
                            } this._listComponents[e].IsGrayIcon(!i && !s), this._listComponents[e].SetRedDot(!i && n.CheckPersonalityIsHave(o))
                    } else if (this._type == l.Skin) {
                        s = !1;
                        var u = d.DataCenter.Instance.GetDataById(p.HeroSkin_Model, o.Id);
                        u && u.PicLevel > 0 && (s = !0), this._listComponents[e].IsGrayIcon(!s), this._listComponents[e].SetRedDot(!i && n.ChekcSkinIsHave(o))
                    }
                }, t.prototype.OnScrolling = function() {
                    var e = this._type == l.Personality ? this.PersonalityScroller : this.SkinScroller,
                        t = e.getScrollOffset(),
                        n = e.getMaxScrollOffset();
                    if (Math.abs(Math.round(t.x)) >= n.x) {
                        var o = this._type == l.Personality ? this.PersonalityContent : this.SkinContent,
                            r = this._sortDatas.length;
                        if (this._loadCount >= r) return;
                        for (var i = Math.min(r, this._loadCount + this.ShowItemCount), a = this._loadCount; a < i; a++) this.LoadListItem(a, o);
                        this._loadCount = i
                    }
                }, t.prototype.GetAttrDataByType = function() {
                    var e = {};
                    if (this._type == l.Personality) {
                        for (var t = d.DataCenter.Instance.GetArrayData(g.UserDataKey.ActivePersonalityIdLevels), n = [], o = 0; o < t.length; o += 2)
                            if (t[o] && t[o + 1] >= 0) {
                                var r = d.ConfigDataComponent.Instance.GetConfigById(u.PersonalityAddon_Config, t[o]);
                                r.Attrs[t[o + 1]] && n.push(r.Attrs[t[o + 1]])
                            } n.length > 0 && n.forEach(function(t) {
                            for (var n = 1; n < t.Items.length; n += 2) {
                                var o = t.Items[n],
                                    r = t.Items[n + 1];
                                e[o] ? e[o] += r : e[o] = r
                            }
                        })
                    } else this._type == l.Skin && (t = d.DataCenter.Instance.GetDataList(p.HeroSkin_Model)).forEach(function(t) {
                        var n = d.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, t.Sid);
                        if (t && t.PicLevel > 0 && n.PicAttrIds[t.PicLevel - 1] > 0) {
                            var o = n.PicAttrIds[t.PicLevel - 1];
                            d.ConfigDataComponent.Instance.GetConfigById(u.HeroSkinAttrs_Config, o).Attrs.forEach(function(t) {
                                e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1]
                            })
                        }
                    });
                    return e
                }, t.prototype.onDestroy = function() {
                    this.ClaerAvatarPrefab()
                }, i([P(cc.Sprite)], t.prototype, "Bg", void 0), i([P(cc.Label)], t.prototype, "HeroTitle", void 0), i([P(cc.Label)], t.prototype, "HeroName", void 0), i([P(cc.Node)], t.prototype, "PersonalityLvNode", void 0), i([P(cc.Label)], t.prototype, "PersonalityLvLabel", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.Button)], t.prototype, "HideButton", void 0), i([P(cc.Label)], t.prototype, "HideLabel", void 0), i([P(cc.Node)], t.prototype, "AvatarNode", void 0), i([P(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([P(cc.Button)], t.prototype, "RightArrowButton", void 0), i([P(f.default)], t.prototype, "HeroElementGroup", void 0), i([P(cc.ScrollView)], t.prototype, "PersonalityScroller", void 0), i([P(cc.ScrollView)], t.prototype, "SkinScroller", void 0), i([P(cc.Node)], t.prototype, "PersonalityContent", void 0), i([P(cc.Node)], t.prototype, "SkinContent", void 0), i([P(cc.Label)], t.prototype, "UpLabel", void 0), i([P(y.default)], t.prototype, "HeroAttributeItems", void 0), i([P(cc.Label)], t.prototype, "DescLabel", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([P(cc.Button)], t.prototype, "UnlockButton", void 0), i([P(cc.Label)], t.prototype, "UnlockLabel", void 0), i([P(cc.Button)], t.prototype, "TotalButton", void 0), i([P(cc.Label)], t.prototype, "TotalLabel", void 0), i([P(cc.Button)], t.prototype, "lockButton", void 0), i([P(cc.Label)], t.prototype, "lockLabel", void 0), i([P(cc.Node)], t.prototype, "ActiveNode", void 0), i([P(cc.Node)], t.prototype, "HideNode", void 0), i([P(cc.Node)], t.prototype, "LeftRedNode", void 0), i([P(cc.Node)], t.prototype, "RightRedNode", void 0), i([P(cc.Label)], t.prototype, "SkinMaxLvLabel", void 0), i([P(cc.Node)], t.prototype, "UnLockRedNode", void 0), n = i([w], t)
            }(c.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeroAttributeItem": "HeroAttributeItem",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/PersonalityHandbookComponent": "PersonalityHandbookComponent",
        "../Components/SkinHandbookComponent": "SkinHandbookComponent"
    }],
    CollectionHandbookSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fca63pTl05JIaBBNKWIwb5z", "CollectionHandbookSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Components/HeroAttributeItem"),
            l = e("./CollectionHandbookPanel"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1), t.ActiveTitleIconNode = null, t.UpLevelTitleIconNode = null, t.SublimingTitleIconNode = null, t.AttrTitle = null, t.HeroAttributeItems = [], t._skinAttrs = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrTitle.string = "heroSkin_attr".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._type = t[0], this._personalityAttrs = t[1], this._skinAttrs = t[2], this._addAttrs = t[3]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetTitleIconNode(), this.SetNodeAttributeList()
                }, t.prototype.SetTitleIconNode = function() {
                    switch (this.ActiveTitleIconNode.active = !1, this.UpLevelTitleIconNode.active = !1, this.SublimingTitleIconNode.active = !1, this._type) {
                        case l.CollectionHandbookType.Personality:
                        case l.CollectionHandbookType.Skin:
                            this.ActiveTitleIconNode.active = !0;
                            break;
                        case l.CollectionHandbookType.Hero:
                        case l.CollectionHandbookType.Pet:
                        case l.CollectionHandbookType.MagicCircle:
                            this.UpLevelTitleIconNode.active = !0;
                            break;
                        case l.CollectionHandbookType.HeroSubliming:
                            this.SublimingTitleIconNode.active = !0
                    }
                }, t.prototype.SetNodeAttributeList = function() {
                    var e = this;
                    this._type == l.CollectionHandbookType.Personality ? this.HeroAttributeItems.forEach(function(t, n) {
                        var o = 2 * n + 1;
                        if (e._personalityAttrs.Items[o] >= 0) {
                            t.node.active = !0;
                            var r = e._personalityAttrs.Items[o],
                                i = e._personalityAttrs.Items[o + 1];
                            t.Init(r, i, !0), t.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                        } else t.node.active = !1
                    }) : this._type == l.CollectionHandbookType.Skin ? this.HeroAttributeItems.forEach(function(t, n) {
                        if (e._skinAttrs[n]) {
                            t.node.active = !0;
                            var o = e._skinAttrs[n].Items[0],
                                r = e._skinAttrs[n].Items[1];
                            t.Init(o, r, !0), t.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                        } else t.node.active = !1
                    }) : this._type != l.CollectionHandbookType.Hero && this._type != l.CollectionHandbookType.HeroSubliming && this._type != l.CollectionHandbookType.Pet && this._type != l.CollectionHandbookType.MagicCircle || this.HeroAttributeItems.forEach(function(t, n) {
                        var o = 2 * n;
                        if (e._addAttrs[o] >= 0) {
                            t.node.active = !0;
                            var r = e._addAttrs[o],
                                i = e._addAttrs[o + 1];
                            t.Init(r, i, !0), t.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                        } else t.node.active = !1
                    })
                }, i([p(cc.Node)], t.prototype, "ActiveTitleIconNode", void 0), i([p(cc.Node)], t.prototype, "UpLevelTitleIconNode", void 0), i([p(cc.Node)], t.prototype, "SublimingTitleIconNode", void 0), i([p(cc.Label)], t.prototype, "AttrTitle", void 0), i([p(s.default)], t.prototype, "HeroAttributeItems", void 0), i([u], t)
            }(a.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/HeroAttributeItem": "HeroAttributeItem",
        "./CollectionHandbookPanel": "CollectionHandbookPanel"
    }],
    CollectionHeroFetterItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ffe2bk12c9MZpZMw0MzLlrA", "CollectionHeroFetterItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./CircleSkillItemComponent"),
            f = e("../../RedDot/RedDotDataHandler"),
            y = e("./CustomProgressBar"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.TitleLabel = null, t.ProgressBar = null, t.ProgressPointContainer = null, t.SkillNode = null, t.RedDot = null, t.PROGRESS_LENGTH = 762, t._pointSpriteArray = [], t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnHeroFetterItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnHeroFetterItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._config = e, this._fetterStarRequirement = t, this._index = n, this._mainPanel = o, this._currentFetterModel = u.DataCenter.Instance.GetDataById(c.HeroFetter_Model, e.Id), this._currentStarLevel = this._currentFetterModel.Star ? this._currentFetterModel.Star : 0, this.TitleLabel.string = e.Id.ToHeroFetterName(), this.SetBg(), this.SetProgressPoint(), this.SetProgress(), this.SetSkillNode();
                    var r = {
                        Value1: e.Id
                    };
                    this.RedDot.active = f.RedDotDataHandler.Instance.RefreshHeroFetterSingleEntry(r)
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset("CollectionPavilionPanel/Png/HeroFetter/" + this._config.BackgroundPicture[0], cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._unloadAssets.push(e), this.Bg.spriteFrame = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetProgressPoint = function() {
                    for (var e = 0; e < this._fetterStarRequirement.length; e++) {
                        var t = this._pointSpriteArray[e];
                        if (!t) {
                            var n = new cc.Node;
                            n.setParent(this.ProgressPointContainer), n.x = this.PROGRESS_LENGTH * e / (this._fetterStarRequirement.length - 1), t = n.addComponent(cc.Sprite), this._pointSpriteArray[e] = t
                        }
                        e < this._currentStarLevel ? t.spriteFrame = p.UIUtlity.COMMON_ATLAS2.getSpriteFrame("progress_point_yellow") : t.spriteFrame = p.UIUtlity.COMMON_ATLAS2.getSpriteFrame("progress_point_bottom")
                    }
                }, t.prototype.SetProgress = function() {
                    if (0 == this._currentStarLevel) this.ProgressBar.progress = 0;
                    else if (this._currentStarLevel == this._fetterStarRequirement.length) this.ProgressBar.progress = 1;
                    else {
                        for (var e = (this._currentStarLevel - 1) / (this._fetterStarRequirement.length - 1), t = 0, n = 0; n < this._config.HeroIds.length; n++) {
                            var o = u.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._config.HeroIds[n]);
                            o && o.MaxStar >= this._fetterStarRequirement[this._currentStarLevel] && t++
                        }
                        e += t / this._config.HeroIds.length / (this._fetterStarRequirement.length - 1), this.ProgressBar.progress = e
                    }
                }, t.prototype.SetSkillNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._currentFetterModel.Level ? (this.SkillNode.active = !0, this._skillItemComponent ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset("CollectionPavilionPanel/Components/CircleSkillItemComponent", cc.Prefab)])) : [3, 3];
                                case 1:
                                    if (e._skillItemPrefab = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._skillItemPrefab), [2];
                                    this._unloadAssets.push(this._skillItemPrefab), (t = cc.instantiate(this._skillItemPrefab)).setParent(this.SkillNode), this._skillItemComponent = t.getComponent(h.default), n.label = 2;
                                case 2:
                                    return this._skillItemComponent.Init(this._config, this._currentFetterModel.Level), [3, 4];
                                case 3:
                                    this.SkillNode.active = !1, n.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnHeroFetterItemClick = function() {
                    this._mainPanel.HeroFetterScrollIndex = this._index, l.UIManager.Instance.ShowUIPanel(d.PanelConfig.HeroFetterPanel.Path, this._config)
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([I(cc.Sprite)], t.prototype, "Bg", void 0), i([I(cc.Label)], t.prototype, "TitleLabel", void 0), i([I(y.default)], t.prototype, "ProgressBar", void 0), i([I(cc.Node)], t.prototype, "ProgressPointContainer", void 0), i([I(cc.Node)], t.prototype, "SkillNode", void 0), i([I(cc.Node)], t.prototype, "RedDot", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CircleSkillItemComponent": "CircleSkillItemComponent",
        "./CustomProgressBar": "CustomProgressBar"
    }],
    CollectionItemAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "85f3cw67lhDdbLGZk8WjMk5", "CollectionItemAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.TagLab = null, t.Value = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this.AttrIcon.spriteFrame = e, this.TagLab.string = t, this.Value.string = n, o && (this.node.width = o)
                }, i([l(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([l(cc.Label)], t.prototype, "TagLab", void 0), i([l(cc.Label)], t.prototype, "Value", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CollectionItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "424deUxzh1IjqiYOxQt2GZI", "CollectionItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("./CollectionItemAttrComponent"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/DataCenter"),
            h = e("../../Components/Components"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HighLightBgNode = null, t.Bg = null, t.AttrContainerNode = null, t.UseTagNode = null, t.UseLabel = null, t.LimitTipNode = null, t.LimitTipLabel = null, t.TimeTipRichText = null, t.NameLabel = null, t.ShadowNode = null, t._attrComponentArry = [], t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.UseLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.unschedule(this.SetDeadTime), this.node.off(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.InitData = function(e, t, n) {
                    this._itemConfig = e, this._selectId = t, this._mainPanel = n, this.SetBg(), this.NameLabel.string = this._itemConfig.Id.ToMainSceneBackgroundName(), this.SetAttr(), this._dataModel = d.DataCenter.Instance.GetDataById(p.MainSceneBackground_Model, e.Id), this.SetLock(), this.SetLimitTipFlag(), this.SetUseTip()
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._selectId == this._itemConfig.Id ? (this.HighLightBgNode.active = !0, this._mainPanel.SetSelectItem(this._selectId, this.HighLightBgNode)) : this.HighLightBgNode.active = !1, [4, l.AssetsManager.Instance.LoadAsset("CollectionPavilionPanel/Png/MainScene/" + this._itemConfig.BackgroundPicture, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._unloadAssets.push(e), this.Bg.spriteFrame = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetAttr = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._itemConfig.Attrs ? this._attrItem ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("CollectionPavilionPanel/Components/CollectionItemAttrComponent", cc.Prefab)] : [2];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._attrItem = e, i.label = 2;
                                case 2:
                                    for (r = 0; r < this._itemConfig.Attrs.length; r++)(t = this.AttrContainerNode.children[r]) || ((t = cc.instantiate(this._attrItem)).parent = this.AttrContainerNode, this._attrComponentArry.push(t.getComponent(u.default))), t.active = !0, n = this._itemConfig.Attrs[r], o = c.default.GetHeroAttribute(n.Items[0], n.Items[1]), this._attrComponentArry[r].Init(o.Icon, o.Name, o.Value);
                                    for (r = this._itemConfig.Attrs.length; r < this.AttrContainerNode.childrenCount; r++) this.AttrContainerNode.children[r].active = !1;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function() {
                    this._selectId = this._mainPanel.SelectId, this._selectId != this._itemConfig.Id && (this._selectId = this._itemConfig.Id, this._mainPanel.SetSelectItem(this._selectId, this.HighLightBgNode), this.HighLightBgNode.active = !0)
                }, t.prototype.SetLimitTipFlag = function() {
                    this.ShadowNode.active || !this._dataModel || this._dataModel.IsPerpetual ? this.LimitTipNode.active = !1 : (this.LimitTipNode.active = !0, this.LimitTipLabel.string = "TimeLimit".ToUILocale(), this.SetDeadTime(), this.schedule(this.SetDeadTime, 1))
                }, t.prototype.SetLock = function() {
                    c.default.GetMainSceneLockState(this._itemConfig.Id) ? (this.ShadowNode.active = !0, this.TimeTipRichText.string = "CollectionPavilion_Item_Lock".ToUILocale(), this.TimeTipRichText.node.color = cc.Color.WHITE) : (this.ShadowNode.active = !1, this.TimeTipRichText.string = "heroSkin_forever".ToUILocale(), this.TimeTipRichText.node.color = (new cc.Color).fromHEX("#33FF8E"))
                }, t.prototype.SetUseTip = function() {
                    this._currentUseDataArry = d.DataCenter.Instance.GetArrayData(f.UserDataKey.MainBackground), this.UseTagNode.active = this._itemConfig.Id == this._currentUseDataArry[f.CustomizeMainSceneType.Scene]
                }, t.prototype.SetDeadTime = function() {
                    var e;
                    this._dataModel && this._dataModel.Time && ((e = this._dataModel.Time - h.RpcComponent.Instance.ServerTime) < 0 ? (this.unschedule(this.SetDeadTime), this.ShadowNode.active = !0, this.LimitTipNode.active = !1, this.TimeTipRichText.string = "CollectionPavilion_Item_Lock".ToUILocale(), this.TimeTipRichText.node.color = cc.Color.WHITE) : (this.TimeTipRichText.string = c.default.ActivityTimeLeftFormat(e), this.TimeTipRichText.node.color = (new cc.Color).fromHEX("#33FF8E")))
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([m(cc.Node)], t.prototype, "HighLightBgNode", void 0), i([m(cc.Sprite)], t.prototype, "Bg", void 0), i([m(cc.Node)], t.prototype, "AttrContainerNode", void 0), i([m(cc.Node)], t.prototype, "UseTagNode", void 0), i([m(cc.Label)], t.prototype, "UseLabel", void 0), i([m(cc.Node)], t.prototype, "LimitTipNode", void 0), i([m(cc.Label)], t.prototype, "LimitTipLabel", void 0), i([m(cc.RichText)], t.prototype, "TimeTipRichText", void 0), i([m(cc.Label)], t.prototype, "NameLabel", void 0), i([m(cc.Node)], t.prototype, "ShadowNode", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "./CollectionItemAttrComponent": "CollectionItemAttrComponent"
    }],
    CollectionPavilionPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d6f07KSeNJDMJuB79J/x3Ul", "CollectionPavilionPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CollectionPavilionEntryItem = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomLayout"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/Components"),
            m = e("../Components/CollectionItemComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../../../Proto/Static/RpcProto"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../Components/Components"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../Components/CollectionTotalAttrComponent"),
            w = e("../../../Consts/Consts"),
            P = e("../Components/CollectionStoryItemComponent"),
            A = e("../Components/CollectionEntryItemComponent"),
            T = e("../Components/CollectionHeroFetterItemComponent"),
            R = e("../../RedDot/RedDotManager"),
            L = e("./CollectionHandbookPanel"),
            k = e("../Components/CollectionStarPieceResonanceItemComponent"),
            O = e("../../../Util/TimeUtil"),
            M = e("../../Auxiliary/ModuleGuideManager"),
            D = e("../Components/CustomToggle"),
            B = e("../../Auxiliary/GuideManager"),
            N = e("../Components/GameUnlockFingerListener"),
            E = cc._decorator,
            U = E.ccclass,
            G = E.property;
        (function(e) {
            e[e.MainScene = 0] = "MainScene", e[e.HeroFetter = 1] = "HeroFetter", e[e.Story = 2] = "Story", e[e.PersonalityHandbook = 3] = "PersonalityHandbook", e[e.SkinHandbook = 4] = "SkinHandbook", e[e.ChaosHero = 5] = "ChaosHero", e[e.StarPieceResonance = 6] = "StarPieceResonance", e[e.Designation = 7] = "Designation", e[e.TreasureHouse = 8] = "TreasureHouse", e[e.GemGallery = 9] = "GemGallery", e[e.SoulRecord = 10] = "SoulRecord", e[e.ExclusiveGallery = 11] = "ExclusiveGallery", e[e.HeroHandbook = 12] = "HeroHandbook", e[e.PetGallery = 13] = "PetGallery", e[e.LuckyCharmGallery = 14] = "LuckyCharmGallery", e[e.CoreGallery = 15] = "CoreGallery", e[e.AngelHandbook = 16] = "AngelHandbook", e[e.NewPersonality = 17] = "NewPersonality", e[e.Pet = 18] = "Pet", e[e.MagicCircle = 19] = "MagicCircle"
        })(l = n.CollectionPavilionEntryItem || (n.CollectionPavilionEntryItem = {})),
        function(e) {
            e[e.Hero = 0] = "Hero", e[e.Honor = 1] = "Honor", e[e.TotalCount = 2] = "TotalCount"
        }(c || (c = {}));
        var x = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.TopDefaultPattern = null, t.TopChaosPattern = null, t.TopRedPattern = null, t.TopBluePattern = null, t.MainTitle = null, t.Title = null, t.EntryItemContainer = null, t.MainSceneCustomLayout = null, t.StoryCustomLayout = null, t.HeroFetterCustomLayout = null, t.BtnResonanceRule = null, t.ResonanceTitle = null, t.StarPieceResonanceCustomLayout = null, t.EntryScrollView = null, t.EntryScrollViewMoveDownButton = null, t.BtnRule = null, t.PartContainer = [], t.BtnPreview = null, t.BtnPreviewLabel = null, t.BtnGet = null, t.BtnGetLabel = null, t.BtnUse = null, t.BtnUseLabel = null, t.BtnInUse = null, t.BtnInUseLabel = null, t.CrownGiftButton = null, t.CrownGiftButtonLabel = null, t.BtnTotalAddation = null, t.BtnTotalAddationLabel = null, t.TotalAddationNode = null, t.TotalAttrContainer = null, t.TotalAttrTipLabel = null, t.AttrEmptyStateNode = null, t.AttrEmptyStateLabel = null, t.BtnReturn = null, t.BottomToggleContainer = null, t.BottomBg = null, t.BottomBg2 = null, t.ResetNode = null, t.HeroFetterScrollIndex = 0, t._currentTab = null, t._totalAttrComponentArray = [], t._entryNodeComponentArray = [], t._containerIndexOfTab = {}, t._currentBottomToggleIndex = 0, t._isBackPanel = !1, t.GameUnlockSteps = {
                    12: [26]
                }, t._starPieceResonanceData = {}, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                p.Game.EventDispatcher.On(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshMainSceneScrollView, this), p.Game.EventDispatcher.On(w.GameEventIds.ChangeDataDetail.Fmt(_.MainSceneBackground_Model._n_), this.SetMainSceneAttr, this), p.Game.EventDispatcher.On(I.EventKeys.EVENT_FITSOUL_OPENBAG, this.BackSelfPanel, this), p.Game.EventDispatcher.On(w.GameEventIds.AddDataDetail.Fmt(_.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.On(w.GameEventIds.RemoveDataDetail.Fmt(_.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.On(w.GameEventIds.ChangeDataDetail.Fmt(_.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
            }, t.prototype.onDisable = function() {
                p.Game.EventDispatcher.Off(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshMainSceneScrollView, this), p.Game.EventDispatcher.Off(w.GameEventIds.ChangeDataDetail.Fmt(_.MainSceneBackground_Model._n_), this.SetMainSceneAttr, this), p.Game.EventDispatcher.Off(I.EventKeys.EVENT_FITSOUL_OPENBAG, this.BackSelfPanel, this), p.Game.EventDispatcher.Off(w.GameEventIds.AddDataDetail.Fmt(_.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.Off(w.GameEventIds.RemoveDataDetail.Fmt(_.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.Off(w.GameEventIds.ChangeDataDetail.Fmt(_.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionEntryItemComponent", cc.Prefab), n = this.LoadDynamicAsset("Buttons/Toggle2", cc.Prefab), o = this.LoadDynamicAsset("CollectionPavilionPanel/Png/CollectionPavilionIcon", cc.SpriteAtlas), p.EZLog.Log("Multi Lang Path : " + v.GlobalConfigComponent.GetMultilangKey("Multilang/CollectionPavilion")), r = this.LoadDynamicAsset(v.GlobalConfigComponent.GetMultilangKey("Multilang/CollectionPavilion"), cc.SpriteAtlas), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._entryItemPrefab = e[0], i._bottomTogglePrefab = e[1], i._collectionSpriteAtlas = e[2], i._collectionMultiLangSpriteAtlas = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.MainTitle.string = "CollectionPavilion_Title".ToUILocale(), this.BtnPreviewLabel.string = "common_preview".ToUILocale(), this.BtnGetLabel.string = "Personalise_getway".ToUILocale(), this.BtnUseLabel.string = "use".ToUILocale(), this.BtnInUseLabel.string = "in_use".ToUILocale(), this.BtnTotalAddationLabel.string = "CollectionPavilion_Btn_totalAdd".ToUILocale(), this.CrownGiftButtonLabel.string = "CollectionPavilion_Btn_CrownGift".ToUILocale(), this.TotalAttrTipLabel.string = "CollectionPavilion_Tip_AllHero".ToUILocale(), this.ResonanceTitle.string = "CollectionPavilion_Panel_Title_3".ToUILocale(), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnResonanceRule.node.on("click", this.OnBtnRuleClick, this), this.BtnPreview.node.on("click", this.OnBtnPreviewClick, this), this.BtnUse.node.on("click", this.OnBtnUseClick, this), this.BtnGet.node.on("click", this.OnBtnGetClick, this), this.BtnTotalAddation.node.on("click", this.OnBtnTotalAddationClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.CrownGiftButton.node.on("click", this.OnCrownGiftButtonClick, this), this.EntryScrollViewMoveDownButton.node.on("click", this.OnEntryScrollViewMoveDownButtonClick, this), this.EntryScrollView.node.on("scrolling", this.SetEntryMoveDownButtonState, this), this.ResetNode.on(cc.Node.EventType.TOUCH_END, this.HideAddationNode, this), this._containerIndexOfTab[l.MainScene] = 0, this._containerIndexOfTab[l.HeroFetter] = 1, this._containerIndexOfTab[l.Story] = 2, this._containerIndexOfTab[l.StarPieceResonance] = 3
            }, t.prototype.InitData = function(t) {
                if (e.prototype.InitData.call(this, t), t) switch (this._currentTab = t[0], this._currentTab) {
                    case l.MainScene:
                        this._selectId = t[1], this._isBackPanel = !0
                }
                this.SetUnlockStateAndOpenStateArray(), this.SetBottomToggleData(), this._moudelInstanceRedDotArray = [R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_0, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_1, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_2, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_3, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_4, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_5, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_6, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_7, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_8, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_9, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionMoudelEntry_10]
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), t) this.SetItemsByType();
                else if (this.SetBottomToggle(), this.SetMoveDownButtonTween(), null != this._currentTab) return void this.OnEntryItemClick(this._currentTab);
                this.SetEntryItems(), this.SetBottomToggleRedDot(), this.ShowGuide(), this.ShowAllGameUnlockFinger(!1)
            }, t.prototype.SetSelectItem = function(e, t) {
                this._selectItemHighLight && this._selectItemHighLight != t && (this._selectItemHighLight.active = !1), this._selectItemHighLight = t, this._selectId = e, this._isLock = b.default.GetMainSceneLockState(this._selectId), this._curMainSenceIds = v.DataCenter.Instance.GetArrayData(C.UserDataKey.MainBackground), this._isLock ? (this.BtnGet.node.active = !0, this.BtnUse.node.active = !1, this.BtnInUse.node.active = !1) : (this.BtnGet.node.active = !1, this._selectId == this._curMainSenceIds[C.CustomizeMainSceneType.Scene] ? (this.BtnInUse.node.active = !0, this.BtnUse.node.active = !1) : (this.BtnInUse.node.active = !1, this.BtnUse.node.active = !0))
            }, Object.defineProperty(t.prototype, "SelectId", {
                get: function() {
                    return this._selectId
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SetUnlockStateAndOpenStateArray = function() {
                this._unlockStateArray = [b.default.Instance.IsGameModuleUnlock(w.GameModuleType.MainSceneBackground), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.HeroFetter), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.Story), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.SkinPersonalityPic), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.SkinPersonalityPic), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.ChaosTemple), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.StarPieceResonance), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.Designation), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.TreasureHouse), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.GemGallery), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.FighterSpirit), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.ExclusiveWeaponGallery), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.HeroHandbook), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.PetShowHouse), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.LuckyCharmShowHouse), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.PowerCoreGallery), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.AngelHandbook), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.NewPersonality), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.Pet), b.default.Instance.IsGameModuleUnlock(w.GameModuleType.MagicCircle)], this._openStateArray = [b.default.Instance.IsGameModuleOpen(w.GameModuleType.MainSceneBackground), b.default.Instance.IsGameModuleOpen(w.GameModuleType.HeroFetter), b.default.Instance.IsGameModuleOpen(w.GameModuleType.Story), b.default.Instance.IsGameModuleOpen(w.GameModuleType.SkinPersonalityPic), b.default.Instance.IsGameModuleOpen(w.GameModuleType.SkinPersonalityPic), b.default.Instance.IsGameModuleOpen(w.GameModuleType.ChaosTemple), b.default.Instance.IsGameModuleOpen(w.GameModuleType.StarPieceResonance), b.default.Instance.IsGameModuleOpen(w.GameModuleType.Designation), b.default.Instance.IsGameModuleOpen(w.GameModuleType.TreasureHouse), b.default.Instance.IsGameModuleOpen(w.GameModuleType.GemGallery), b.default.Instance.IsGameModuleOpen(w.GameModuleType.FighterSpirit), b.default.Instance.IsGameModuleOpen(w.GameModuleType.ExclusiveWeaponGallery), b.default.Instance.IsGameModuleOpen(w.GameModuleType.HeroHandbook), b.default.Instance.IsGameModuleOpen(w.GameModuleType.PetShowHouse), b.default.Instance.IsGameModuleOpen(w.GameModuleType.LuckyCharmShowHouse), b.default.Instance.IsGameModuleOpen(w.GameModuleType.PowerCoreGallery), b.default.Instance.IsGameModuleOpen(w.GameModuleType.AngelHandbook), b.default.Instance.IsGameModuleOpen(w.GameModuleType.NewPersonality), b.default.Instance.IsGameModuleOpen(w.GameModuleType.Pet), b.default.Instance.IsGameModuleOpen(w.GameModuleType.MagicCircle)]
            }, t.prototype.SetBottomToggleData = function() {
                this._bottomToggleDataArray = {}, this._bottomToggleDataArray[c.Hero] = [l.NewPersonality, l.PersonalityHandbook, l.SkinHandbook, l.HeroFetter, l.Story, l.SoulRecord, l.AngelHandbook, l.ChaosHero, l.HeroHandbook, l.Pet, l.MagicCircle], this._bottomToggleDataArray[c.Honor] = [l.StarPieceResonance, l.GemGallery, l.PetGallery, l.LuckyCharmGallery, l.CoreGallery, l.Designation, l.TreasureHouse, l.ExclusiveGallery, l.MainScene], this._heroToggleUnlockDataArray = [l.NewPersonality, l.ChaosHero, l.AngelHandbook, l.SoulRecord, l.HeroHandbook, l.Pet, l.MagicCircle, l.PersonalityHandbook, l.SkinHandbook, l.HeroFetter, l.Story], this._bottomToggleDataArray[c.Hero].sort(this.SortHeroBottomToggleDataArray.bind(this)), this._bottomToggleDataArray[c.Honor].sort(this.SortHonorBottomToggleDataArray.bind(this))
            }, t.prototype.SortHeroBottomToggleDataArray = function(e, t) {
                var n = this._unlockStateArray[e][0],
                    o = this._unlockStateArray[t][0];
                return n && !o ? -1 : !n && o ? 1 : n && o ? this._heroToggleUnlockDataArray.indexOf(e) - this._heroToggleUnlockDataArray.indexOf(t) : void 0
            }, t.prototype.SortHonorBottomToggleDataArray = function(e, t) {
                var n = this._unlockStateArray[e][0],
                    o = this._unlockStateArray[t][0];
                return n && !o ? -1 : !n && o ? 1 : void 0
            }, t.prototype.SetBottomToggleRedDot = function() {
                R.RedDotManager.Instance.BindInstance(this._bottomToggleComponentArray[0].node, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionBottomToggle_0, {
                    extra: this._bottomToggleDataArray[c.Hero]
                }), R.RedDotManager.Instance.BindInstance(this._bottomToggleComponentArray[1].node, R.RedDotManager.Instance.InstanceRedDot.CollectionPavilionBottomToggle_1, {
                    extra: this._bottomToggleDataArray[c.Honor]
                })
            }, t.prototype.OnBtnRuleClick = function() {
                var e, t, n;
                switch (this._currentTab) {
                    case l.MainScene:
                        e = "CollectionPavilion_Title".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["CollectionPavilion_Rule_content".ToUILocale()];
                        break;
                    case l.Story:
                        e = "CollectionPavilion_Story_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["CollectionPavilion_Story_Rule_Content".ToUILocale()];
                        break;
                    case l.HeroFetter:
                        e = "CollectionPavilion_HeroFetter_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["CollectionPavilion_HeroFetter_Rule_Content".ToUILocale()];
                        break;
                    case l.StarPieceResonance:
                        e = "CollectionPavilion_StarPieceResonance_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["CollectionPavilion_StarPieceResonance_Rule_Content".ToUILocale()];
                        break;
                    case l.ChaosHero:
                        e = "CollectionPavilion_ChaosTemple_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["CollectionPavilion_ChaosTemple_Rule_Content".ToUILocale()]
                }
                var o = {
                    name: e,
                    titles: t,
                    contents: n
                };
                h.UIUtlity.ShowRulePanel(o)
            }, t.prototype.OnBtnPreviewClick = function() {
                this._selectId ? p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CollectionPreviewPanel.Path, this._selectId) : h.UIUtlity.ShowFloatingHint("CollectionPavilion_Tip_unSelect".ToUILocale())
            }, t.prototype.OnBtnUseClick = function() {
                if (this._selectId) {
                    var e = new _.Req_Player_SetMainBackground;
                    e.Data = [0, 0, this._selectId], g.RpcComponent.Instance.Call(e, this.OnChangeBackgroungSuccess.bind(this))
                } else h.UIUtlity.ShowFloatingHint("CollectionPavilion_Tip_unSelect".ToUILocale())
            }, t.prototype.OnChangeBackgroungSuccess = function() {
                u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_CUSTOMIZE_SCENE_CHANGED), h.UIUtlity.ShowFloatingHint("CollectionPavilion_Tip_changeSuccess".ToUILocale()), this._selectConfig || (this._selectConfig = g.ConfigDataComponent.Instance.GetConfigById(y.ItemMainSceneBackground_Config, this._selectId)), this._selectConfig.AudioId ? (u.AudioManager.Instance.StopMusic(), u.AudioManager.Instance.PlayMusic(this._selectConfig.AudioId)) : u.AudioManager.Instance.PlayMainSceneMusic(), p.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnBtnGetClick = function() {
                this._selectId ? (this._selectConfig || (this._selectConfig = g.ConfigDataComponent.Instance.GetConfigById(y.ItemMainSceneBackground_Config, this._selectId)), u.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, this._selectConfig.ItemId, !1)) : h.UIUtlity.ShowFloatingHint("CollectionPavilion_Tip_unSelect".ToUILocale())
            }, t.prototype.OnBtnTotalAddationClick = function() {
                this._currentTab != l.HeroFetter ? this._currentTab != l.StarPieceResonance ? (this.SetTotalAttr(), this.TotalAddationNode.active = !0, this.ResetNode.active = !0) : p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CollectionHandbookAttributePanel.Path, this.GetStarPieceResonanceTotalAttr(), {
                    PanelTitleKey: "StarPieceResonance_AttributeOverView",
                    AttributeTitleKey: "StarPieceResonance_TotalAdditon",
                    EmptyContentKey: "CollectionPavilion_Tip_UnAttr"
                }) : u.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroFetterTotalAttrPanel.Path)
            }, t.prototype.OnBtnReturnClick = function() {
                this.EntryScrollView.node.active || this._isBackPanel ? p.UIManager.Instance.BackUIPanel() : (this.EntryScrollView.node.active = !0, this.BottomToggleContainer.active = !0, this.BottomBg.active = !0, this.BottomBg2.y = -8, this.MainTitle.node.active = !0, this.TopBluePattern.active = 0 == this._currentBottomToggleIndex, this.TopRedPattern.active = 1 == this._currentBottomToggleIndex, this.TopDefaultPattern.active = !1, this.BtnRule.node.active = !1, this.BtnTotalAddation.node.active = !1, this._currentTab = null, this.SetPartState(), this.SetEntryItems(), this.SetBottomToggleRedDot(), this.SetEntryMoveDownButtonState())
            }, t.prototype.OnCrownGiftButtonClick = function() {
                p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrownGiftPanel.Path)
            }, t.prototype.OnEntryScrollViewMoveDownButtonClick = function() {
                var e = this.EntryScrollView.getScrollOffset().y + 300;
                this.EntryScrollView.scrollToOffset(cc.v2(this.EntryScrollView.getScrollOffset().x, e), .2)
            }, t.prototype.SetEntryMoveDownButtonState = function() {
                Math.round(Math.abs(this.EntryScrollView.getScrollOffset().y)) >= this.EntryScrollView.getMaxScrollOffset().y ? this.EntryScrollViewMoveDownButton.node.active = !1 : this.EntryScrollViewMoveDownButton.node.active = !0
            }, t.prototype.HideAddationNode = function() {
                this.TotalAddationNode.active = !1, this.ResetNode.active = !1
            }, t.prototype.SetTotalAttr = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                switch (this._currentTab) {
                                    case l.MainScene:
                                        this._totalAttrs = this._mainSceneTotalAttr;
                                        break;
                                    case l.Story:
                                        this.SetStoryAttr(), this._totalAttrs = this._storyTotalAttr
                                }
                                return this._totalAttrs ? [3, 1] : (this.AttrEmptyStateNode.active = !0, this.TotalAttrContainer.active = !1, this.AttrEmptyStateLabel.string = "CollectionPavilion_Tip_UnAttr".ToUILocale(), [3, 4]);
                            case 1:
                                return this.AttrEmptyStateNode.active = !1, this.TotalAttrContainer.active = !0, this._totalAttrItem ? [3, 3] : (e = this, [4, this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionTotalAttrComponent", cc.Prefab)]);
                            case 2:
                                if (e._totalAttrItem = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._totalAttrItem), [2];
                                s.label = 3;
                            case 3:
                                for (n in t = 0, this._totalAttrs)(o = this._totalAttrComponentArray[t]) || ((r = cc.instantiate(this._totalAttrItem)).parent = this.TotalAttrContainer, o = r.getComponent(S.default), this._totalAttrComponentArray[t] = o), o.node.active = !0, i = b.default.GetHeroAttribute(Number(n), this._totalAttrs[n]), o.Init(i.Icon, i.Name, i.Value), t++;
                                if (t < this._totalAttrComponentArray.length)
                                    for (a = t; a < this._totalAttrComponentArray.length; a++) this._totalAttrComponentArray[a].node.active = !1;
                                s.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetBottomToggle = function() {
                this._bottomToggleComponentArray = [];
                for (var e = 0; e < c.TotalCount; e++) {
                    var t = cc.instantiate(this._bottomTogglePrefab);
                    t.setParent(this.BottomToggleContainer);
                    var n = t.getComponent(D.default);
                    n.Init(("CollectionPavilion_BottomToggle_" + e).ToUILocale()), t.name = e.toString(), t.on("toggle", this.OnSwitchBottomToggle, this), this._bottomToggleComponentArray[e] = n
                }
                this._bottomToggleComponentArray[0].node.getComponent(cc.Toggle).isChecked = !0
            }, t.prototype.OnSwitchBottomToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentBottomToggleIndex != t && (this._currentBottomToggleIndex = t, this.TopBluePattern.active = 0 == this._currentBottomToggleIndex, this.TopRedPattern.active = 1 == this._currentBottomToggleIndex, this.SetEntryItems())
            }, t.prototype.SetEntryItems = function() {
                for (var e = this._bottomToggleDataArray[this._currentBottomToggleIndex], t = 0, n = 0; n < e.length; n++) {
                    var o = e[n],
                        r = this._openStateArray[o],
                        i = this._entryNodeComponentArray[t];
                    if (r) {
                        if (!i) {
                            var a = cc.instantiate(this._entryItemPrefab);
                            a.parent = this.EntryItemContainer, i = a.getComponent(A.default), this._entryNodeComponentArray[t] = i
                        }
                        i.node.active = !0;
                        var s = this._unlockStateArray[o][0];
                        i.Init(this._collectionMultiLangSpriteAtlas, o, s, this), s && R.RedDotManager.Instance.BindInstance(i.node, this._moudelInstanceRedDotArray[t], {
                            Value1: o
                        }, -40, -15), t++
                    } else i && (i.node.active = !1)
                }
                if (this._entryNodeComponentArray.length > t)
                    for (n = t; n < this._entryNodeComponentArray.length; n++) this._entryNodeComponentArray[n].node.active = !1;
                this.EntryScrollView.scrollToTop(.1)
            }, t.prototype.SetMoveDownButtonTween = function() {
                var e = this.EntryScrollViewMoveDownButton.node.position,
                    t = new cc.Vec3(0, this.EntryScrollViewMoveDownButton.node.position.y + 40, 0);
                cc.tween(this.EntryScrollViewMoveDownButton.node).tag(f.PanelConfig.CollectionPavilionPanel.Id).repeatForever(cc.tween().to(1.5, {
                    position: t
                }).to(1.5, {
                    position: e
                })).start()
            }, t.prototype.OnEntryItemClick = function(e) {
                var t = this._unlockStateArray[e];
                if (t[0]) {
                    switch (e) {
                        case l.Designation:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.UserTitlePanel.Path);
                        case l.PersonalityHandbook:
                        case l.SkinHandbook:
                            var n = e == l.PersonalityHandbook ? L.CollectionHandbookType.Personality : L.CollectionHandbookType.Skin;
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CollectionHandbookPanel.Path, n);
                        case l.TreasureHouse:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.TreasureHousePanel.Path);
                        case l.GemGallery:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.GemGalleryPanel.Path);
                        case l.SoulRecord:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.SoulRecordEntryPanel.Path);
                        case l.ChaosHero:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.ElementTemplePanel.Path);
                        case l.ExclusiveGallery:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.ExclusiveWeaponGalleryPanel.Path);
                        case l.HeroHandbook:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroCollectionHandbookPanel.Path);
                        case l.PetGallery:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.PetGalleryListPanel.Path);
                        case l.LuckyCharmGallery:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.LuckyCharmGalleryPanel.Path);
                        case l.CoreGallery:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CoreGalleryListPanel.Path);
                        case l.AngelHandbook:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.AngelCollectionHandbookPanel.Path);
                        case l.NewPersonality:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.NewPersonalityPanel.Path);
                        case l.Pet:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.PetCollectionHandBookPanel.Path);
                        case l.MagicCircle:
                            return void p.UIManager.Instance.ShowUIPanel(f.PanelConfig.MagicCircleCollectionHandBookPanel.Path);
                        case l.MainScene:
                            this.BottomBg2.y = -100
                    }
                    this.EntryScrollView.node.active = !1, this.BtnRule.node.active = !0, this.BtnTotalAddation.node.active = !0, this.TopDefaultPattern.active = !0, this.MainTitle.node.active = !1, this.TopRedPattern.active = !1, this.TopBluePattern.active = !1, this.BottomToggleContainer.active = !1, this.BottomBg.active = !1, this._currentTab = e, this.SetItemsByType()
                } else h.UIUtlity.ShowFloatingHint(t[1])
            }, t.prototype.SetItemsByType = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, c, u, d, h, m, I, _, S = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                switch (this.SetPartState(), this.CrownGiftButton.node.active = this._currentTab == l.Story, this._currentTab) {
                                    case l.MainScene:
                                        return [3, 1];
                                    case l.HeroFetter:
                                        return [3, 4];
                                    case l.Story:
                                        return [3, 7];
                                    case l.StarPieceResonance:
                                        return [3, 11]
                                }
                                return [3, 14];
                            case 1:
                                return this._sceneDataArray || (this._sceneDataArray = [], (t = g.ConfigDataComponent.Instance.GetArrayConfig(y.ItemMainSceneBackground_Config)).forEach(function(e) {
                                    (!e.Start || O.TimeUtil.StrToTime(e.Start) <= v.RpcComponent.Instance.ServerTime) && S._sceneDataArray.push(e)
                                }), this.SetMainSceneAttr()), this._sceneDataArray.sort(this.SortMainSceneArry.bind(this)), this._mainSceneItemPrefab ? [3, 3] : (e = this, [4, this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionItemComponent", cc.Prefab)]);
                            case 2:
                                if (e._mainSceneItemPrefab = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._mainSceneItemPrefab), [2];
                                this.MainSceneCustomLayout.Init(this._mainSceneItemPrefab), s.label = 3;
                            case 3:
                                return this.MainSceneCustomLayout.RenderLayOut(this._sceneDataArray.length), [3, 15];
                            case 4:
                                if (!this._heroFetterConfigArray) {
                                    for (t = g.ConfigDataComponent.Instance.GetArrayConfig(y.HeroFetter_Config), this._heroFetterConfigArray = [], n = 0; n < t.length; n++) {
                                        for (h = t[n], o = !0, r = 0; r < h.HeroIds.length; r++)
                                            if (!b.default.Instance.IsModuleShowAvailable(w.ModuleStartTime.Hero, h.HeroIds[r])) {
                                                o = !1;
                                                break
                                            } o && this._heroFetterConfigArray.push(h)
                                    }
                                    this._heroFetterConfigArray.sort(function(e, t) {
                                        return e.SortId - t.SortId
                                    }), i = g.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, w.LevelParamType.HeroFetterStarRequirement), this._fetterStarRequirement = i.Data
                                }
                                return this._heroFetterItemPrefab ? [3, 6] : (a = this, [4, this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionHeroFetterItemComponent", cc.Prefab)]);
                            case 5:
                                if (a._heroFetterItemPrefab = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._heroFetterItemPrefab), [2];
                                this.HeroFetterCustomLayout.Init(this._heroFetterItemPrefab), s.label = 6;
                            case 6:
                                return this.HeroFetterCustomLayout.RenderLayOut(this._heroFetterConfigArray.length, this.HeroFetterScrollIndex), [3, 15];
                            case 7:
                                if (!this._storyDataArray) {
                                    for (d in c = g.ConfigDataComponent.Instance.GetArrayConfig(y.CollectionStory_Config), this._storyDataArray = [], c.forEach(function(e) {
                                            var t = e.Time.split("|"),
                                                n = O.TimeUtil.StrToTime(t[0]);
                                            v.RpcComponent.Instance.ServerTime >= n && S._storyDataArray.push(e)
                                        }), this._currentStorysId = {}, u = C.ActivityType.Story, v.DataCenter.Instance.ActivityConfigs)(h = v.DataCenter.Instance.ActivityConfigs[d]).Common.Type == u && b.default.GetActivityUnlockState(h.Common) && (m = h, this._currentStorysId[m.CustomPart.CollectId] = m._id);
                                    this._storyDataArray.sort(function(e, t) {
                                        return t.SortId - e.SortId
                                    })
                                }
                                return this._storyItemPrefab ? [3, 10] : (I = this, [4, this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionStoryItemComponent", cc.Prefab)]);
                            case 8:
                                return I._storyItemPrefab = s.sent(), this.isValid ? (_ = this, [4, this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionStoryItemAttrComponent", cc.Prefab)]) : (p.AssetsManager.Instance.UnloadAsset(this._storyItemPrefab), [2]);
                            case 9:
                                if (_._storyItemAttrPrefab = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._storyItemAttrPrefab), [2];
                                this.StoryCustomLayout.Init(this._storyItemPrefab), s.label = 10;
                            case 10:
                                return this.StoryCustomLayout.RenderLayOut(this._storyDataArray.length), [3, 15];
                            case 11:
                                return this._starPieceResonanceConfigs || (this._starPieceResonanceConfigs = g.ConfigDataComponent.Instance.GetArrayConfig(y.StarPieceResonance_Config)), this.SetStarPieceResonanceDate(), this._starPieceResonanceConfigs.sort(this.SortStarPieceResonanceData.bind(this)), this._starPieceResonancePrefab ? [3, 13] : [4, Promise.all([this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionStarPieceResonanceComponent", cc.Prefab), this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                    if (!S.isValid) return p.AssetsManager.Instance.UnloadAsset(e[0]), void p.AssetsManager.Instance.UnloadAsset(e[1]);
                                    S._starPieceResonancePrefab = e[0], S._itemPrefab = e[1]
                                })];
                            case 12:
                                s.sent(), this.StarPieceResonanceCustomLayout.Init(this._starPieceResonancePrefab), s.label = 13;
                            case 13:
                                return this.StarPieceResonanceCustomLayout.RenderLayOut(this._starPieceResonanceConfigs.length), [3, 15];
                            case 14:
                                return [3, 15];
                            case 15:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SortMainSceneArry = function(e, t) {
                var n = g.DataCenter.Instance.GetDataById(_.MainSceneBackground_Model, e.Id),
                    o = g.DataCenter.Instance.GetDataById(_.MainSceneBackground_Model, t.Id);
                return b.default.GetMainSceneLockState(e.Id) && !b.default.GetMainSceneLockState(t.Id) ? 1 : !b.default.GetMainSceneLockState(e.Id) && b.default.GetMainSceneLockState(t.Id) ? -1 : b.default.GetMainSceneLockState(e.Id) || b.default.GetMainSceneLockState(t.Id) ? e.Order - t.Order : n.IsPerpetual && !o.IsPerpetual ? -1 : !n.IsPerpetual && o.IsPerpetual ? 1 : e.Order - t.Order
            }, t.prototype.SetStarPieceResonanceDate = function() {
                var e = g.DataCenter.Instance.GetSimpleData(C.UserDataKey.StarPieceResonance);
                if (e)
                    for (var t = 0; t < e.IntArray.length; t += 2) this._starPieceResonanceData[e.IntArray[t]] = e.IntArray[t + 1]
            }, t.prototype.SortStarPieceResonanceData = function(e, t) {
                var n = this.CanStarPieceResonanceUpgrade(e),
                    o = this._starPieceResonanceData[e.Id] && this._starPieceResonanceData[e.Id] >= e.Attrs.length,
                    r = this.CanStarPieceResonanceUpgrade(t),
                    i = this._starPieceResonanceData[t.Id] && this._starPieceResonanceData[t.Id] >= t.Attrs.length;
                return o && !i ? 1 : i && !o ? -1 : r && !n ? 1 : n && !r ? -1 : t.SortId - e.SortId
            }, t.prototype.CanStarPieceResonanceUpgrade = function(e) {
                var t = e.StarPieceIds,
                    n = this._starPieceResonanceData[e.Id] ? this._starPieceResonanceData[e.Id] : 0,
                    o = !0;
                if (n >= e.Attrs.length) o = !1;
                else
                    for (var r = 0; r < t.length; r++) {
                        var i = g.ConfigDataComponent.Instance.GetConfigById(y.StarPiece_Config, t[r]),
                            a = g.DataCenter.Instance.GetDataById(_.StarPiece_Model, i.Id);
                        if (!a || a.Star < n + 1) {
                            o = !1;
                            break
                        }
                    }
                return o
            }, t.prototype.SetPartState = function() {
                this.CrownGiftButton.node.active = this._currentTab == l.Story;
                for (var e = 0; e < this.PartContainer.length; e++) e != this._containerIndexOfTab[this._currentTab] ? this.PartContainer[e].active = !1 : (this.PartContainer[e].active = !0, this.Title.string = ("CollectionPavilion_Panel_Title_" + e).ToUILocale())
            }, t.prototype.RefreshMainSceneScrollView = function(e, t) {
                var n = this;
                if (t == this.MainSceneCustomLayout || t == this.StoryCustomLayout || t == this.HeroFetterCustomLayout || t == this.StarPieceResonanceCustomLayout) switch (this._currentTab) {
                    case l.MainScene:
                        e.forEach(function(e, t) {
                            e.getComponent(m.default).InitData(n._sceneDataArray[t], n._selectId, n)
                        });
                        break;
                    case l.HeroFetter:
                        e.forEach(function(e, t) {
                            e.getComponent(T.default).Init(n._heroFetterConfigArray[t], n._fetterStarRequirement, t, n)
                        });
                        break;
                    case l.Story:
                        e.forEach(function(e, t) {
                            e.getComponent(P.default).Init(n._storyDataArray[t], n._storyItemAttrPrefab, n._currentStorysId)
                        });
                        break;
                    case l.StarPieceResonance:
                        e.forEach(function(e, t) {
                            e.getComponent(k.default).Init(n._starPieceResonanceConfigs[t], n._itemPrefab)
                        })
                }
            }, t.prototype.SetMainSceneAttr = function() {
                var e = this;
                this._mainSceneTotalAttr = null, this._mainSceneDataArry || (this._mainSceneDataArry = g.ConfigDataComponent.Instance.GetArrayConfig(y.ItemMainSceneBackground_Config)), this._mainSceneDataArry.forEach(function(t) {
                    if (!b.default.GetMainSceneLockState(t.Id) && t.Attrs)
                        for (var n = 0; n < t.Attrs.length; n++) {
                            e._mainSceneTotalAttr || (e._mainSceneTotalAttr = {});
                            var o = t.Attrs[n].Items[0],
                                r = t.Attrs[n].Items[1];
                            e._mainSceneTotalAttr[o] ? e._mainSceneTotalAttr[o] += r : e._mainSceneTotalAttr[o] = r
                        }
                })
            }, t.prototype.SetStoryAttr = function() {
                this._storyTotalAttr = null;
                for (var e = 0; e < this._storyDataArray.length; e++)
                    for (var t = this._storyDataArray[e], n = v.DataCenter.Instance.GetDataById(_.UserStar_Model, t.StarIds[2]), o = n ? n.Count : 0, r = 0; r < o; r++)
                        for (var i = 1; i < t.Attrs[r].Items.length; i += 2) {
                            this._storyTotalAttr || (this._storyTotalAttr = {});
                            var a = t.Attrs[r].Items[i],
                                s = t.Attrs[r].Items[i + 1];
                            this._storyTotalAttr[a] ? this._storyTotalAttr[a] += s : this._storyTotalAttr[a] = s
                        }
            }, t.prototype.GetStarPieceResonanceTotalAttr = function() {
                for (var e = {}, t = 0; t < this._starPieceResonanceConfigs.length; t++) {
                    var n = this._starPieceResonanceConfigs[t],
                        o = this._starPieceResonanceData[n.Id];
                    if (o > 0)
                        for (var r = n.Attrs[o - 1], i = 1; i < r.Items.length; i += 2) {
                            var a = r.Items[i],
                                s = r.Items[i + 1];
                            e[a] ? e[a] += s : e[a] = s
                        }
                }
                return e
            }, t.prototype.onDestroy = function() {
                cc.Tween.stopAllByTag(f.PanelConfig.CollectionPavilionPanel.Id)
            }, t.prototype.BackSelfPanel = function() {
                u.UIManager.Instance.BackUIPanel()
            }, t.prototype.ShowGuide = function() {
                M.default.instance.CheckGameModeuleGuideNeedShow(w.GameModuleType.CollectionHall) && (M.default.instance.ShowNPCDialogs([1033]), M.default.instance.CompleteGameModuleWeakGuide(w.GameModuleType.CollectionHall))
            }, t.prototype.OnSimpleDataChage = function(e) {
                var t;
                for (var n in e)
                    if (parseInt(n) == C.UserDataKey.GameModulePopGuide) {
                        t = !0;
                        break
                    } t && this.ShowAllGameUnlockFinger()
            }, t.prototype.ShowAllGameUnlockFinger = function(e) {
                if (void 0 === e && (e = !0), !B.default.Instance.IsInGuide && this._entryNodeComponentArray) {
                    var t = N.default.Instance.CurrencyMoudleId;
                    if (!t || t < 0)
                        for (var n = 0; n < this._entryNodeComponentArray.length; n++) N.default.Instance.RemoveFinger(this._entryNodeComponentArray[n].node);
                    else {
                        var o = g.ConfigDataComponent.Instance.GetConfigById(y.GameModuleUnlockPop_Config, t);
                        if (o) {
                            var r = e ? 2 : 0;
                            for (var i in this.GameUnlockSteps) {
                                var a = parseInt(i);
                                if (-1 != this.GameUnlockSteps[i].indexOf(t)) {
                                    switch (t) {
                                        case 26:
                                            if (this._currentBottomToggleIndex !== c.Hero) N.default.Instance.RemoveFinger(this._entryNodeComponentArray[a].node);
                                            else {
                                                var s = this.GetEntryItem(a);
                                                s && s.node.active && (this.EntryScrollView.stopAutoScroll(), this.EntryScrollView.scrollToOffset(cc.v2(0, this.ComputeScroviewOffset(a))), N.default.Instance.SetFinger(s.node, o.Id, 0, 0, r, !1))
                                            }
                                    }
                                    return
                                }
                            }
                        } else
                            for (n = 0; n < this._entryNodeComponentArray.length; n++) N.default.Instance.RemoveFinger(this._entryNodeComponentArray[n].node)
                    }
                }
            }, t.prototype.GetEntryItem = function(e) {
                for (var t = 0; t < this._entryNodeComponentArray.length; t++)
                    if (this._entryNodeComponentArray[t].EntryType == e) return this._entryNodeComponentArray[t];
                return null
            }, t.prototype.ComputeScroviewOffset = function(e) {
                for (var t = 0, n = 0; n < this._entryNodeComponentArray.length && !(n >= e); n++) this._entryNodeComponentArray[n].node.active && (t += this._entryNodeComponentArray[n].node.height);
                return t
            }, i([G(cc.Node)], t.prototype, "TopDefaultPattern", void 0), i([G(cc.Node)], t.prototype, "TopChaosPattern", void 0), i([G(cc.Node)], t.prototype, "TopRedPattern", void 0), i([G(cc.Node)], t.prototype, "TopBluePattern", void 0), i([G(cc.Label)], t.prototype, "MainTitle", void 0), i([G(cc.Label)], t.prototype, "Title", void 0), i([G(cc.Node)], t.prototype, "EntryItemContainer", void 0), i([G(d.default)], t.prototype, "MainSceneCustomLayout", void 0), i([G(d.default)], t.prototype, "StoryCustomLayout", void 0), i([G(d.default)], t.prototype, "HeroFetterCustomLayout", void 0), i([G(cc.Button)], t.prototype, "BtnResonanceRule", void 0), i([G(cc.Label)], t.prototype, "ResonanceTitle", void 0), i([G(d.default)], t.prototype, "StarPieceResonanceCustomLayout", void 0), i([G(cc.ScrollView)], t.prototype, "EntryScrollView", void 0), i([G(cc.Button)], t.prototype, "EntryScrollViewMoveDownButton", void 0), i([G(cc.Button)], t.prototype, "BtnRule", void 0), i([G({
                type: [cc.Node]
            })], t.prototype, "PartContainer", void 0), i([G(cc.Button)], t.prototype, "BtnPreview", void 0), i([G(cc.Label)], t.prototype, "BtnPreviewLabel", void 0), i([G(cc.Button)], t.prototype, "BtnGet", void 0), i([G(cc.Label)], t.prototype, "BtnGetLabel", void 0), i([G(cc.Button)], t.prototype, "BtnUse", void 0), i([G(cc.Label)], t.prototype, "BtnUseLabel", void 0), i([G(cc.Button)], t.prototype, "BtnInUse", void 0), i([G(cc.Label)], t.prototype, "BtnInUseLabel", void 0), i([G(cc.Button)], t.prototype, "CrownGiftButton", void 0), i([G(cc.Label)], t.prototype, "CrownGiftButtonLabel", void 0), i([G(cc.Button)], t.prototype, "BtnTotalAddation", void 0), i([G(cc.Label)], t.prototype, "BtnTotalAddationLabel", void 0), i([G(cc.Node)], t.prototype, "TotalAddationNode", void 0), i([G(cc.Node)], t.prototype, "TotalAttrContainer", void 0), i([G(cc.Label)], t.prototype, "TotalAttrTipLabel", void 0), i([G(cc.Node)], t.prototype, "AttrEmptyStateNode", void 0), i([G(cc.Label)], t.prototype, "AttrEmptyStateLabel", void 0), i([G(cc.Button)], t.prototype, "BtnReturn", void 0), i([G(cc.Node)], t.prototype, "BottomToggleContainer", void 0), i([G(cc.Node)], t.prototype, "BottomBg", void 0), i([G(cc.Node)], t.prototype, "BottomBg2", void 0), i([G(cc.Node)], t.prototype, "ResetNode", void 0), i([U], t)
        }(u.BaseUIFullScreenPanel);
        n.default = x, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CollectionEntryItemComponent": "CollectionEntryItemComponent",
        "../Components/CollectionHeroFetterItemComponent": "CollectionHeroFetterItemComponent",
        "../Components/CollectionItemComponent": "CollectionItemComponent",
        "../Components/CollectionStarPieceResonanceItemComponent": "CollectionStarPieceResonanceItemComponent",
        "../Components/CollectionStoryItemComponent": "CollectionStoryItemComponent",
        "../Components/CollectionTotalAttrComponent": "CollectionTotalAttrComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GameUnlockFingerListener": "GameUnlockFingerListener",
        "./CollectionHandbookPanel": "CollectionHandbookPanel"
    }],
    CollectionPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "14aadf7QuBCWrnsSua9j6qA", "CollectionPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../Components/Components"),
            _ = e("../Components/AttrComponent4"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.Bg = null, t.Spine = null, t.AttrNode = null, t.AttrTitleLabel = null, t.AttrContainer = null, t.UnAttrLabel = null, t.TipLabel = null, t.BtnUse = null, t.BtnUseLabel = null, t.BtnInUse = null, t.BtnInUseLabel = null, t.BtnGet = null, t.BtnGetLabel = null, t.BtnReturn = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BtnUseLabel.string = "use".ToUILocale(), this.BtnInUseLabel.string = "in_use".ToUILocale(), this.BtnGetLabel.string = "Personalise_getway".ToUILocale(), this.AttrTitleLabel.string = "heroSkin_attr".ToUILocale(), this.TipLabel.string = "CollectionPavilion_PreView_Tip".ToUILocale(), this.BtnUse.node.on("click", this.OnBtnUseClick, this), this.BtnGet.node.on("click", this.OnBtnGetClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectId = t[0], this._isLock = d.default.GetMainSceneLockState(this._selectId), this._itemConfig = p.ConfigDataComponent.Instance.GetConfigById(u.ItemMainSceneBackground_Config, this._selectId), this.Title.string = this._itemConfig.Id.ToMainSceneBackgroundName()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.PreloadByData.call(this), this.SetBg(), this._itemConfig.Attrs && this._itemConfig.Attrs.length > 0 ? (this.AttrNode.active = !0, this.UnAttrLabel.node.active = !1, this.SetAttrView()) : (this.AttrNode.active = !1, this.UnAttrLabel.node.active = !0, this.UnAttrLabel.string = "CollectionPavilion_Tip_UnAttr".ToUILocale()), [2]
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (l.AudioManager.Instance.StopMusic(), this._itemConfig.AudioId ? l.AudioManager.Instance.PlayMusic(this._itemConfig.AudioId) : l.AudioManager.Instance.PlayMainSceneMusic()), this._curMainSenceIds = I.DataCenter.Instance.GetArrayData(f.UserDataKey.MainBackground), this.SetBtnState()
                }, t.prototype.OnBtnUseClick = function() {
                    var e = new y.Req_Player_SetMainBackground;
                    e.Data = [0, 0, this._selectId], p.RpcComponent.Instance.Call(e, this.OnChangeBackgroungSuccess.bind(this))
                }, t.prototype.OnChangeBackgroungSuccess = function() {
                    l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_CUSTOMIZE_SCENE_CHANGED), g.UIUtlity.ShowFloatingHint("CollectionPavilion_Tip_changeSuccess".ToUILocale()), c.UIManager.Instance.BackUIPanel(), c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnGetClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, this._itemConfig.ItemId, !1)
                }, t.prototype.OnBtnReturnClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = this.Bg, [4, this.LoadDynamicAsset("MainSceneBg/" + this._itemConfig.BackgroundPicture, cc.SpriteFrame)];
                                case 1:
                                    return e.spriteFrame = n.sent(), this.isValid ? this._itemConfig.Animation ? [4, this.LoadDynamicAsset("ActivitySpine/" + this._itemConfig.Animation + "_Prefab", cc.Prefab)] : [3, 3] : (l.AssetsManager.Instance.UnloadAsset(this.Bg.spriteFrame), [2]);
                                case 2:
                                    if (t = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this.Bg.spriteFrame), [2];
                                    cc.instantiate(t).parent = this.Spine, "UI_effect_zhujiemian_baitian" == this._itemConfig.Animation && (this.Spine.y = 376), n.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetBtnState = function() {
                    this._isLock ? (this.BtnGet.node.active = !0, this.BtnUse.node.active = !1, this.BtnInUse.node.active = !1) : (this.BtnGet.node.active = !1, this._selectId == this._curMainSenceIds[f.CustomizeMainSceneType.Scene] ? (this.BtnUse.node.active = !1, this.BtnInUse.node.active = !0) : (this.BtnUse.node.active = !0, this.BtnInUse.node.active = !1))
                }, t.prototype.SetAttrView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset("ItemsComponent/AttrComponent4", cc.Prefab)];
                                case 1:
                                    if (e._attrItem = i.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._attrItem), [2];
                                    for (t = 0; t < this._itemConfig.Attrs.length; t++)(n = cc.instantiate(this._attrItem)).parent = this.AttrContainer, o = this._itemConfig.Attrs[t], r = d.default.GetHeroAttribute(o.Items[0], o.Items[1]), n.getComponent(_.default).Init(o.Items[0], o.Items[1], {
                                        AttrName: r.Name,
                                        NodeWidth: 410,
                                        ValueNodeWidth: 221
                                    });
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), l.AudioManager.Instance.StopMusic(), l.AudioManager.Instance.PlayMainSceneMusic()
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Sprite)], t.prototype, "Bg", void 0), i([b(cc.Node)], t.prototype, "Spine", void 0), i([b(cc.Node)], t.prototype, "AttrNode", void 0), i([b(cc.Label)], t.prototype, "AttrTitleLabel", void 0), i([b(cc.Node)], t.prototype, "AttrContainer", void 0), i([b(cc.Label)], t.prototype, "UnAttrLabel", void 0), i([b(cc.Label)], t.prototype, "TipLabel", void 0), i([b(cc.Button)], t.prototype, "BtnUse", void 0), i([b(cc.Label)], t.prototype, "BtnUseLabel", void 0), i([b(cc.Button)], t.prototype, "BtnInUse", void 0), i([b(cc.Label)], t.prototype, "BtnInUseLabel", void 0), i([b(cc.Button)], t.prototype, "BtnGet", void 0), i([b(cc.Label)], t.prototype, "BtnGetLabel", void 0), i([b(cc.Button)], t.prototype, "BtnReturn", void 0), i([v], t)
            }(c.BaseUIFullScreenPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent4": "AttrComponent4"
    }],
    CollectionStarPieceResonanceItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5149c2wPNREk5Kn0UB4yuQr", "CollectionStarPieceResonanceItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../Components/DataCenter"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Panel/StarPiecePanel"),
            g = e("./HeroAttributeItem"),
            m = e("./ItemComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NameLabel = null, t.ItemsContainer = null, t.CurrentLevelLabel = null, t.LevelArrow = null, t.NewLevelLabel = null, t.AttributeComponents = [], t.TipsLabel = null, t.TipsMaxLabel = null, t.UpgradeButton = null, t.UpgradeButtonLabel = null, t.GreyButton = null, t.GreyButtonLabel = null, t._currentConfig = null, t._currentLevel = 0, t._maxLevel = 0, t._isAllStarPieceReachedLevel = !0, t._itemComponents = [], t._colorFF3F3f = new cc.Color(255, 63, 63), t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onLoad = function() {
                    this.UpgradeButton.node.on("click", this.OnButtonClicked, this), this.GreyButton.node.on("click", this.OnButtonClicked, this), this.TipsMaxLabel.string = "common_max_level".ToUILocale()
                }, t.prototype.Init = function(e, t) {
                    this._currentConfig = e, this._currentLevel = 0, this._isAllStarPieceReachedLevel = !0, this._maxLevel = this._currentConfig.Attrs.length;
                    var n = h.DataCenter.Instance.GetSimpleData(c.UserDataKey.StarPieceResonance);
                    if (n)
                        for (var o = 0; o < n.IntArray.length; o += 2)
                            if (n.IntArray[o] == e.Id) {
                                this._currentLevel = n.IntArray[o + 1];
                                break
                            } this.NameLabel.string = this._currentConfig.Id.ToStarPieceResonanceName(), this.SetItemView(t), this.SetLevelView(), this.SetAttrView(), this.SetTipsAndButtonView()
                }, t.prototype.SetItemView = function(e) {
                    for (var t = this._currentConfig.StarPieceIds, n = 0; n < t.length; n++) {
                        var o = t[n],
                            r = d.ConfigDataComponent.Instance.GetConfigById(a.StarPiece_Config, o),
                            i = h.DataCenter.Instance.GetDataById(s.StarPiece_Model, o);
                        if (!this._itemComponents[n]) {
                            var l = cc.instantiate(e);
                            this.ItemsContainer.node.addChild(l), this._itemComponents.push(l.getComponent(m.ItemComponent))
                        }
                        var u = this._itemComponents[n];
                        u.node.name = r.Id.toString(), u.node.active = !0, i ? (u.Init({
                            ItemId: r.ItemBaseId
                        }, m.ItemComponentType.StarPiece), u.SetStar(i.Star, c.ItemType.Equip), i.Star < this._currentLevel + 1 ? this._isAllStarPieceReachedLevel = !1 : u.DisableMask()) : (u.Init({
                            ItemId: r.ItemBaseId
                        }, m.ItemComponentType.StarPiece), u.EnableMask(), this._isAllStarPieceReachedLevel = !1)
                    }
                    for (; n < this._itemComponents.length; n++) this._itemComponents[n].node.active = !1
                }, t.prototype.SetLevelView = function() {
                    this._currentLevel == this._maxLevel ? (this.CurrentLevelLabel.node.color = this._colorFF3F3f, this.NewLevelLabel.node.active = !1, this.LevelArrow.node.active = !1, this.CurrentLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(this._currentLevel.toString())) : (this.CurrentLevelLabel.node.color = cc.Color.WHITE, this.NewLevelLabel.node.active = !0, this.LevelArrow.node.active = !0, this.CurrentLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(this._currentLevel.toString()), this.NewLevelLabel.string = "allianceBase_level".ToUILocale().Fmt((this._currentLevel + 1).toString()))
                }, t.prototype.SetAttrView = function() {
                    if (this._currentLevel < this._maxLevel) {
                        var e = this._currentConfig.Attrs[this._currentLevel - 1],
                            t = this._currentConfig.Attrs[this._currentLevel];
                        this.AttributeComponents.forEach(function(n, o) {
                            if (t.Items[2 * o + 1]) {
                                n.node.active = !0;
                                var r = 0;
                                e && e.Items[2 * o + 2] && (r = e.Items[2 * o + 2]), n.InitDoubleValue({
                                    AttrId: t.Items[2 * o + 1],
                                    CurValue: r,
                                    AddValue: t.Items[2 * o + 2],
                                    AnchorXCurValue: null,
                                    AnchorXAddValue: null,
                                    CurValueX: null,
                                    AddValueX: null
                                }), n.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                            } else n.node.active = !1
                        })
                    } else {
                        var n = this._currentConfig.Attrs[this._currentLevel - 1];
                        this.AttributeComponents.forEach(function(e, t) {
                            n.Items[2 * t + 1] ? (e.node.active = !0, e.Init(n.Items[2 * t + 1], n.Items[2 * t + 2], !1), e.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())) : e.node.active = !1
                        })
                    }
                }, t.prototype.SetTipsAndButtonView = function() {
                    0 == this._currentLevel ? (this.TipsMaxLabel.node.parent.active = !1, this.TipsLabel.node.active = !0, this.TipsLabel.string = "StarPieceResonance_ActiveTips".ToUILocale().Fmt(this._currentLevel + 1), this._isAllStarPieceReachedLevel ? (this.UpgradeButtonLabel.string = "starPiece_Info_active".ToUILocale(), this.UpgradeButton.node.active = !0, this.GreyButton.node.active = !1) : (this.GreyButtonLabel.string = "starPiece_Info_active".ToUILocale(), this.GreyButton.node.active = !0, this.UpgradeButton.node.active = !1)) : this._currentLevel < this._maxLevel ? (this.TipsMaxLabel.node.parent.active = !1, this.TipsLabel.node.active = !0, this.TipsLabel.string = "StarPieceResonance_UpgradeTips".ToUILocale().Fmt(this._currentLevel + 1), this._isAllStarPieceReachedLevel ? (this.UpgradeButtonLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), this.UpgradeButton.node.active = !0, this.GreyButton.node.active = !1) : (this.GreyButtonLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), this.GreyButton.node.active = !0, this.UpgradeButton.node.active = !1)) : (this.TipsMaxLabel.node.parent.active = !0, this.TipsLabel.node.active = !1, this.UpgradeButton.node.active = !1, this.GreyButton.node.active = !1)
                }, t.prototype.OnButtonClicked = function() {
                    this._isAllStarPieceReachedLevel ? this.RequestUpgrade() : f.UIUtlity.ShowFloatingHint("StarPieceResonance_NotAllStarPiece".ToUILocale())
                }, t.prototype.RequestUpgrade = function() {
                    this._oldPower = h.DataCenter.Instance.GetIntData(c.UserDataKey.Power);
                    var e = new s.Req_Team_StarPieceResonanceUpgrade;
                    e.Id = this._currentConfig.Id, d.RpcComponent.Instance.Call(e, this.OnRequestUpgradeSuccess.bind(this))
                }, t.prototype.OnRequestUpgradeSuccess = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.StarPieceResonanceUpgradeSuccessPanel.Path, this._currentConfig), l.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattlePowerChangePanel.Path, this._oldPower, h.DataCenter.Instance.GetIntData(c.UserDataKey.Power))
                }, t.prototype.OnItemClick = function(e, t) {
                    if (t.parent == this.ItemsContainer.node) {
                        var n = {
                            pieceId: e,
                            pieceType: y.StarTemplePieceType.General,
                            showFullStatus: !1,
                            isFragment: !1
                        };
                        l.UIManager.Instance.ShowUIPanel(p.PanelConfig.StarPieceInfoPanel.Path, n)
                    }
                }, i([C(cc.Label)], t.prototype, "NameLabel", void 0), i([C(cc.Layout)], t.prototype, "ItemsContainer", void 0), i([C(cc.Label)], t.prototype, "CurrentLevelLabel", void 0), i([C(cc.Sprite)], t.prototype, "LevelArrow", void 0), i([C(cc.Label)], t.prototype, "NewLevelLabel", void 0), i([C([g.default])], t.prototype, "AttributeComponents", void 0), i([C(cc.Label)], t.prototype, "TipsLabel", void 0), i([C(cc.Label)], t.prototype, "TipsMaxLabel", void 0), i([C(cc.Button)], t.prototype, "UpgradeButton", void 0), i([C(cc.Label)], t.prototype, "UpgradeButtonLabel", void 0), i([C(cc.Button)], t.prototype, "GreyButton", void 0), i([C(cc.Label)], t.prototype, "GreyButtonLabel", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/StarPiecePanel": "StarPiecePanel",
        "./HeroAttributeItem": "HeroAttributeItem",
        "./ItemComponent": "ItemComponent"
    }],
    CollectionStoryItemAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e622dNozA9OYIjcyqXk3Tj4", "CollectionStoryItemAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = e("../Auxiliary/UIUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.StarIcon = null, t.Attr1Icon = null, t.Attr1Name = null, t.Attr1Value = null, t.Attr2Icon = null, t.Attr2Name = null, t.Attr2Value = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    var n;
                    e ? (n = "Star", s.UIUtlity.OffSpriteGray(this.Attr1Icon), s.UIUtlity.OffSpriteGray(this.Attr2Icon)) : (n = "StarBg", s.UIUtlity.OnSpriteGray(this.Attr1Icon), s.UIUtlity.OnSpriteGray(this.Attr2Icon)), this.StarIcon.spriteFrame = s.UIUtlity.COMMON_ATLAS2.getSpriteFrame(n);
                    var o = a.default.GetHeroAttribute(t[1], t[2]);
                    if (this.Attr1Icon.spriteFrame = o.Icon, this.Attr1Name.string = o.Name, this.Attr1Value.string = "CollectionPavilion_Story_Attr_Value".ToUILocale().Fmt(o.Value), (t.length - 1) / 2 > 1) {
                        var r = a.default.GetHeroAttribute(t[3], t[4]);
                        this.Attr2Icon.spriteFrame = r.Icon, this.Attr2Name.string = r.Name, this.Attr2Value.string = "CollectionPavilion_Story_Attr_Value".ToUILocale().Fmt(r.Value)
                    }
                }, i([u(cc.Sprite)], t.prototype, "StarIcon", void 0), i([u(cc.Sprite)], t.prototype, "Attr1Icon", void 0), i([u(cc.Label)], t.prototype, "Attr1Name", void 0), i([u(cc.Label)], t.prototype, "Attr1Value", void 0), i([u(cc.Sprite)], t.prototype, "Attr2Icon", void 0), i([u(cc.Label)], t.prototype, "Attr2Name", void 0), i([u(cc.Label)], t.prototype, "Attr2Value", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CollectionStoryItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "22e65C5O1hN9Kj1vfAdjp6O", "CollectionStoryItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./CollectionStoryItemAttrComponent"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../Util/TimeUtil"),
            y = e("../../../Consts/Etc"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../RedDot/RedDotDataHandler"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Bg = null, t.BookButtonBg = null, t.BookButton = null, t.TimeLabel = null, t.CurrentTipNode = null, t.CurrentTipLabel = null, t.UnUpStarLeftTimeTipNode = null, t.UnUpStarLeftTimeTipLabel = null, t.AttrContainer = null, t.UpStarButton = null, t.UpStarLabel = null, t.UnUpStarButton = null, t.UnUpStarLabel = null, t.UpStarRedDot = null, t.DetailButton = null, t.DetailLabel = null, t.AttrTipLabel = null, t._attrComponentArray = [], t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.UpStarLabel.string = "angel_toggle_1".ToUILocale(), this.UnUpStarLabel.string = "angel_toggle_1".ToUILocale(), this.DetailLabel.string = "detail".ToUILocale(), this.CurrentTipLabel.string = "CollectionPavilion_Story_Tip_Current".ToUILocale(), this.AttrTipLabel.string = "CollectionPavilion_Tip_AllHero".ToUILocale(), this.BookButton.node.on("click", this.OnBookButtonClick, this), this.UpStarButton.node.on("click", this.OnUpStarButtonClick, this), this.UnUpStarButton.node.on("click", this.OnUnUpStarButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._storyData = e, this._attrPrefab = t, this._activityId = n[e.Id], this.Title.string = e.Id.ToCollectStoryTitle();
                    var o = this._storyData.Time.split("|");
                    this._activityStartTime = f.TimeUtil.StrToTime(o[0]), this._activityEndTime = f.TimeUtil.StrToTime(o[1]), this.TimeLabel.string = f.TimeUtil.Format("YYYY/MM/DD", this._activityStartTime) + "-" + f.TimeUtil.Format("YYYY/MM/DD", this._activityEndTime);
                    var r = p.DataCenter.Instance.GetDataById(h.UserStar_Model, this._storyData.StarIds[2]);
                    this._starCount = r ? r.Count : 0, this.SetBg(), this.SetButtonState(), this.SetAttr(), this.SetRedDot()
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._bgName == this._storyData.BackgroundArray[0] ? [2] : (this._bgName, this._storyData.BackgroundArray[0], n = c.AssetsManager.Instance.LoadAsset("CollectionPavilionPanel/Png/StoryBg/" + this._storyData.BackgroundArray[0], cc.SpriteFrame), o = c.AssetsManager.Instance.LoadAsset("CollectionPavilionPanel/Png/StoryBg/" + this._storyData.BackgroundArray[1], cc.SpriteFrame), [4, Promise.all([n, o]).then(function(n) {
                                        e = n[0], t = n[1]
                                    })]);
                                case 1:
                                    return r.sent(), this.isValid || (c.AssetsManager.Instance.UnloadAsset(e), c.AssetsManager.Instance.UnloadAsset(t)), this._unloadAssets.push(e), this._unloadAssets.push(t), this.Bg.spriteFrame = e, this.BookButtonBg.spriteFrame = t, [2]
                            }
                        })
                    })
                }, t.prototype.SetButtonState = function() {
                    this.DetailButton.node.active = !1, this.CurrentTipNode.active = !1, this.UpStarButton.node.active = !1, this.UnUpStarButton.node.active = !1, this.UnUpStarLeftTimeTipNode.active = !1, p.RpcComponent.Instance.ServerTime > this._activityEndTime + 3 * y.Etc.DayDuration ? this.UpStarButton.node.active = this._starCount < this._storyData.StarIds[1] : p.RpcComponent.Instance.ServerTime > this._activityEndTime ? this._starCount < this._storyData.StarIds[1] && (this.UnUpStarButton.node.active = !0, this.UnUpStarLeftTimeTipNode.active = !0, this.unschedule(this.SetUnUpStartLeftTime), this.SetUnUpStartLeftTime(), this.schedule(this.SetUnUpStartLeftTime, 1)) : p.RpcComponent.Instance.ServerTime > this._activityStartTime && (this.DetailButton.node.active = !0, this.CurrentTipNode.active = !0)
                }, t.prototype.SetUnUpStartLeftTime = function() {
                    var e = this._activityEndTime + 3 * y.Etc.DayDuration - p.RpcComponent.Instance.ServerTime;
                    e < 0 ? this.UnUpStarLeftTimeTipNode.active = !1 : this.UnUpStarLeftTimeTipLabel.string = "CollectionPavilion_Story_Tip_ColdDown_Time".ToUILocale().Fmt(g.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OnBookButtonClick = function() {
                    this._activityStartTime > p.RpcComponent.Instance.ServerTime ? d.UIUtlity.ShowFloatingHint("CollectionPavilion_Story_Tip_Unlock".ToUILocale()) : c.UIManager.Instance.ShowUIPanel(u.PanelConfig.LookBackPanel.Path, this._storyData.ContentId[0], this._storyData.ContentId[1], null, !0)
                }, t.prototype.OnUpStarButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(u.PanelConfig.StoryUpStarPanel.Path, this._storyData)
                }, t.prototype.OnUnUpStarButtonClick = function() {
                    d.UIUtlity.ShowFloatingHint("CollectionPavilion_Story_Tip_ColdDown".ToUILocale())
                }, t.prototype.OnDetailButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(u.PanelConfig.ActivityStoryTaskPanel.Path, this._activityId)
                }, t.prototype.SetAttr = function() {
                    for (var e = 0; e < this._storyData.Attrs.length; e++) {
                        var t = this._attrComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._attrPrefab);
                            n.parent = this.AttrContainer, t = n.getComponent(l.default), this._attrComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o = e < this._starCount;
                        t.Init(o, this._storyData.Attrs[e].Items)
                    }
                    if (this._storyData.Attrs.length < this._attrComponentArray.length)
                        for (e = this._storyData.Attrs.length; e < this._attrComponentArray.length; e++) this._attrComponentArray[e].node.active = !1
                }, t.prototype.GetTasksCompleteState = function() {
                    for (var e = p.DataCenter.Instance.ActivityConfigs[this._activityId], t = p.DataCenter.Instance.GetDataById(h.UserActivity_Model, e._id), n = 0; n < e.__Chapter.length; n++)
                        if (!t.IntMap[e.__Chapter[n].Id]) return !1;
                    return !0
                }, t.prototype.SetRedDot = function() {
                    var e = {
                        Value1: this._storyData.Id
                    };
                    this.UpStarRedDot.active = m.RedDotDataHandler.Instance.RefreshStoryUpStarEntryNode(e)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._unloadAssets.forEach(function(e) {
                        e && c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Sprite)], t.prototype, "Bg", void 0), i([C(cc.Sprite)], t.prototype, "BookButtonBg", void 0), i([C(cc.Button)], t.prototype, "BookButton", void 0), i([C(cc.Label)], t.prototype, "TimeLabel", void 0), i([C(cc.Node)], t.prototype, "CurrentTipNode", void 0), i([C(cc.Label)], t.prototype, "CurrentTipLabel", void 0), i([C(cc.Node)], t.prototype, "UnUpStarLeftTimeTipNode", void 0), i([C(cc.Label)], t.prototype, "UnUpStarLeftTimeTipLabel", void 0), i([C(cc.Node)], t.prototype, "AttrContainer", void 0), i([C(cc.Button)], t.prototype, "UpStarButton", void 0), i([C(cc.Label)], t.prototype, "UpStarLabel", void 0), i([C(cc.Button)], t.prototype, "UnUpStarButton", void 0), i([C(cc.Label)], t.prototype, "UnUpStarLabel", void 0), i([C(cc.Node)], t.prototype, "UpStarRedDot", void 0), i([C(cc.Button)], t.prototype, "DetailButton", void 0), i([C(cc.Label)], t.prototype, "DetailLabel", void 0), i([C(cc.Label)], t.prototype, "AttrTipLabel", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CollectionStoryItemAttrComponent": "CollectionStoryItemAttrComponent"
    }],
    CollectionTotalAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "340b1zi1m5DHZu3dE0Yer7W", "CollectionTotalAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.TagLabel = null, t.Value = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.AttrIcon.spriteFrame = e, this.TagLabel.string = t, this.Value.string = n
                }, i([l(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([l(cc.Label)], t.prototype, "TagLabel", void 0), i([l(cc.RichText)], t.prototype, "Value", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    ColorDiamondRechargeEntrance: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0335eyCimBCILd2pvFt2Ekj", "ColorDiamondRechargeEntrance");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../Auxiliary/UIUtlity"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Independent, !1), t.RechargeBtn = null, t.RechargeLabel = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RechargeLabel.string = "colordiamondRecharge".ToUILocale(), this.RechargeBtn.on(cc.Node.EventType.TOUCH_START, this.OnMoveStart, this), this.RechargeBtn.on(cc.Node.EventType.TOUCH_MOVE, this.OnMoving, this), this.RechargeBtn.on(cc.Node.EventType.TOUCH_CANCEL, this.OnMoveCancel, this), this.RechargeBtn.on(cc.Node.EventType.TOUCH_END, this.OnMoveEnd, this), this._borderX = (l.UIUtlity.DESIGN_SCREEN_WIDTH - this.RechargeBtn.width) / 2, this._borderY = (l.UIUtlity.DESIGN_SCREEN_HEIGHT - this.RechargeBtn.height) / 2
                }, t.prototype.OnMoveStart = function() {
                    this._currentMoveVec = cc.Vec2.ZERO
                }, t.prototype.OnMoving = function(e) {
                    var t = e.getDelta();
                    if (!this._isMoving) {
                        if (this._currentMoveVec = cc.v2(this._currentMoveVec.x + t.x, this._currentMoveVec.y + t.y), cc.Vec2.distance(this._currentMoveVec, cc.Vec2.ZERO) < 8) return;
                        this._isMoving = !0
                    }
                    var n = this.RechargeBtn.x + t.x,
                        o = this.RechargeBtn.y + t.y;
                    n >= this._borderX ? n = this._borderX : n <= -this._borderX && (n = -this._borderX), o >= this._borderY ? o = this._borderY : o <= -this._borderY && (o = -this._borderY), this.RechargeBtn.setPosition(n, o)
                }, t.prototype.OnMoveEnd = function() {
                    this._isMoving ? this._isMoving = !1 : a.UIManager.Instance.ShowUIPanel(s.PanelConfig.ColorDiamondRechargePanel.Path)
                }, t.prototype.OnMoveCancel = function() {
                    this.OnMoveEnd()
                }, i([p(cc.Node)], t.prototype, "RechargeBtn", void 0), i([p(cc.Label)], t.prototype, "RechargeLabel", void 0), i([u], t)
            }(a.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    ColorDiamondRechargePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "14233S9bcdHYr4ucN8DMygb", "ColorDiamondRechargePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/DataCenter"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/Components"),
            g = e("../Auxiliary/UIUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.SelectMode = 0] = "SelectMode", e[e.CustomMoneyMode = 1] = "CustomMoneyMode", e[e.FixedMoneyMode = 2] = "FixedMoneyMode"
        })(l || (l = {})),
        function(e) {
            e[e.Visa = 1] = "Visa", e[e.PointCard = 2] = "PointCard", e[e.PhoneCard = 3] = "PhoneCard"
        }(c || (c = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Independent, !1), t.SelectRechargeModeNode = null, t.LeftCountTag = null, t.LeftCount = null, t.SelectRechargeModeHint = null, t.RechargeModeLayout = null, t.RechargeMode1Node = null, t.SelectLevelHint = null, t.RechargeLevelItemsLayout = null, t.Mode1InputMoneyTag = null, t.Mode1InputMoneyEditBox = null, t.Mode1DiamondTag = null, t.Mode1DiamondCount = null, t.RechargeMode2Node = null, t.SelectModeType = null, t.AccountTag = null, t.AccountEditBox = null, t.PasswordTag = null, t.PasswordEditBox = null, t.Mode2InputMoneyTag = null, t.Mode2InputMoneyEditBox = null, t.Mode2DiamondTag = null, t.Mode2DiamondCount = null, t.ReturnBtn = null, t.ReturnBtnLabel = null, t.RechargeBtn = null, t.RechargeBtnLabel = null, t.PanelAtlas = null, t.Mode1Hint1 = null, t.Mode1Hint2 = null, t.Mode2Hint1 = null, t.Mode2Hint2 = null, t.PhoneCardRatio = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ColorDiamondRechargePanel/RechargeModeItem"), n = this.LoadDynamicAsset("ColorDiamondRechargePanel/RechargeLevelItem"), [4, Promise.all([t, n]).then(function(e) {
                                    o._rechargeModeItemPrefab = e[0], o._rechargeLevelItemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.LeftCountTag.string = "leftCount".ToUILocale().Fmt(p.CommonItemId.ColorDiamond.ToItemName()), this.SelectRechargeModeHint.string = "rechargeModeSelect".ToUILocale(), this.AccountTag.string = "cardAccount".ToUILocale(), this.PasswordTag.string = "cardPassword".ToUILocale(), this.Mode1InputMoneyTag.string = "inputRechargePrice".ToUILocale().Fmt("(VND)"), this.Mode1DiamondTag.string = "rechargeColorDiamondCount".ToUILocale(), this.Mode2InputMoneyTag.string = "cardPrice".ToUILocale().Fmt("(VND)"), this.Mode2DiamondTag.string = "rechargeColorDiamondCount".ToUILocale(), this.ReturnBtnLabel.string = "SendLog_return".ToUILocale(), this.SelectLevelHint.string = "selectRechargeItem".ToUILocale(), this.Mode1Hint1.string = "vn_rechange_slectHint".ToUILocale(), this.ReturnBtn.node.on("click", this.OnReturn, this), this.RechargeBtn.node.on("click", this.OnRecharge, this), this.AccountEditBox.node.on("editing-did-began", this.OnEditBegin, this), this.AccountEditBox.node.on("editing-did-ended", this.OnEditEnd, this), this.PasswordEditBox.node.on("editing-did-began", this.OnEditBegin, this), this.PasswordEditBox.node.on("editing-did-ended", this.OnEditEnd, this), this.Mode2InputMoneyEditBox.node.on("editing-did-began", this.OnEditBegin, this), this.Mode2InputMoneyEditBox.node.on("editing-did-ended", this.OnInPutMoneyEditEnd, this), this.Mode1InputMoneyEditBox.node.on("editing-did-began", this.OnEditBegin, this), this.Mode1InputMoneyEditBox.node.on("editing-did-ended", this.OnInPutMoneyEditEnd, this)
            }, t.prototype.InitData = function() {
                e.prototype.InitData.call(this)
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this._rechargeMode = l.SelectMode
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigPanelMode()
            }, t.prototype.ConfigPanelMode = function() {
                switch (this.SelectRechargeModeNode.active = !1, this.RechargeMode1Node.active = !1, this.RechargeMode2Node.active = !1, this.ReturnBtn.node.active = !1, this._rechargeMode) {
                    case l.SelectMode:
                        this.SelectRechargeModeNode.active = !0, this.ConfigSelectRechargeMode();
                        break;
                    case l.CustomMoneyMode:
                        this.RechargeMode1Node.active = !0, this.ReturnBtn.node.active = !0, this.ConfigRechargeMode1();
                        break;
                    case l.FixedMoneyMode:
                        this.RechargeMode2Node.active = !0, this.ReturnBtn.node.active = !0, this.ConfigRechargeMode2()
                }
            }, t.prototype.ConfigSelectRechargeMode = function() {
                this.LeftCount.string = "" + d.DataCenter.Instance.GetItemCount(p.CommonItemId.ColorDiamond), this.RechargeBtnLabel.string = "nextStep".ToUILocale(), this._rechargeModeItems || (this._rechargeModeItems = []), this._methodConfigs || (this._methodConfigs = y.ConfigDataComponent.Instance.GetArrayConfig(h.VnPayMethod_Config), this._methodConfigs.sort(this.SortMethodConfigs.bind(this))), this._selectRechargeId || (this._selectRechargeId = this._methodConfigs[0].Id);
                for (var e = 0; e < this._methodConfigs.length; e++) {
                    var t = this._methodConfigs[e].Id,
                        n = this._rechargeModeItems[e];
                    if (n || ((n = cc.instantiate(this._rechargeModeItemPrefab)).setParent(this.RechargeModeLayout), n.name = t.toString(), n.on("toggle", this.OnSelectRechargeMode, this), this._rechargeModeItems.push(n), cc.find("Tag", n).getComponent(cc.Label).string = t.ToVnPayMethodName()), t == this._selectRechargeId) {
                        var o = n.getComponent(cc.Toggle);
                        o.isChecked = !0, this.OnSelectRechargeMode(o)
                    }
                }
            }, t.prototype.SortMethodConfigs = function(e, t) {
                return e.Sort > t.Sort ? -1 : e.Sort < t.Sort ? 1 : 0
            }, t.prototype.OnSelectRechargeMode = function(e) {
                this._selectRechargeId = Number.parseInt(e.name), this._selectRechargeConfig = y.ConfigDataComponent.Instance.GetConfigById(h.VnPayMethod_Config, this._selectRechargeId)
            }, t.prototype.ConfigRechargeMode1 = function() {
                var e;
                this.Mode1InputMoneyEditBox.string = "", this.Mode1DiamondCount.string = "", this.RechargeBtnLabel.string = "recharge".ToUILocale(), this.Mode1InputMoneyEditBox.placeholder = this._selectRechargeConfig.MinAmount + "~" + this._selectRechargeConfig.MaxAmount, this.Mode1Hint2.string = "vn_recharge_ratio".ToUILocale().Fmt(this._selectRechargeConfig.Ratio), this._rechargeLevelItems || (this._rechargeLevelItems = []), e = this._selectRechargeConfig.Type == c.Visa ? 2e4 : 20001;
                for (var t = y.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, e), n = 0; n < t.Data.length; n++) {
                    var o = t.Data[n],
                        r = this._rechargeLevelItems[n];
                    r || ((r = cc.instantiate(this._rechargeLevelItemPrefab)).setParent(this.RechargeLevelItemsLayout), r.on("toggle", this.OnSelectRechargeLevel, this), this._rechargeLevelItems.push(r)), r.active = !0, r.name = o.toString();
                    var i = cc.find("Money", r).getComponent(cc.Label),
                        a = cc.find("Layout/Count", r).getComponent(cc.Label);
                    i.string = o.toString(), a.string = "" + o * this._selectRechargeConfig.Ratio / 1e4, r.getComponent(cc.Toggle).isChecked = !1
                }
                for (n = t.Data.length; n < this._rechargeLevelItems.length; n++) this._rechargeLevelItems[n].active = !1
            }, t.prototype.OnSelectRechargeLevel = function(e) {
                var t = Number.parseInt(e.name);
                this.Mode1InputMoneyEditBox.string = t.toString(), this.ConfigRechargeDiamondCount(t)
            }, t.prototype.RefreshSelectedLevelToggle = function(e) {
                for (var t = e.toString(), n = 0; n < this._rechargeLevelItems.length; n++) {
                    var o = this._rechargeLevelItems[n].getComponent(cc.Toggle);
                    o.isChecked = !1, this._rechargeLevelItems[n].name == t && (o.isChecked = !0)
                }
            }, t.prototype.ConfigRechargeMode2 = function() {
                if (this.AccountEditBox.string = "", this.PasswordEditBox.string = "", this.Mode2InputMoneyEditBox.string = "", this.Mode2DiamondCount.string = "", this.RechargeBtnLabel.string = "recharge".ToUILocale(), this.Mode2InputMoneyEditBox.placeholder = this._selectRechargeConfig.MinAmount + "~" + this._selectRechargeConfig.MaxAmount, this.Mode2Hint2.node.active = !1, this.SelectModeType.node.active = !1, this.PhoneCardRatio.node.active = !1, this._selectRechargeConfig.Type == c.PointCard) this.SelectModeType.node.active = !0, this.SelectModeType.string = this._selectRechargeId.ToVnPayMethodName(), this.Mode2Hint2.node.active = !0, this.Mode2Hint1.string = "vn_rechange_costHint".ToUILocale(), this.Mode2Hint2.string = "vn_recharge_ratio".ToUILocale().Fmt(this._selectRechargeConfig.Ratio);
                else if (this._selectRechargeConfig.Type == c.PhoneCard) {
                    this.Mode2Hint1.string = "vn_rechange_phoneCardHint".ToUILocale(), this.PhoneCardRatio.node.active = !0;
                    var e = Number.parseInt(this.Mode1InputMoneyEditBox.string) * this._selectRechargeConfig.Ratio / 1e4;
                    this.PhoneCardRatio.string = "<color=#525252>" + this.Mode1InputMoneyEditBox.string + '</c><color=#959595><size=34> VND = </size></c><img src="colorDiamond"/> <color=#F07D3F>' + e + "</c>"
                }
            }, t.prototype.OnReturn = function() {
                this._selectRechargeConfig.Type == c.PhoneCard && this._rechargeMode == l.FixedMoneyMode ? this._rechargeMode = l.CustomMoneyMode : this._rechargeMode = l.SelectMode, this.ConfigPanelMode()
            }, t.prototype.OnRecharge = function() {
                switch (this._rechargeMode) {
                    case l.SelectMode:
                        this._selectRechargeConfig.Type == c.Visa || this._selectRechargeConfig.Type == c.PhoneCard ? this._rechargeMode = l.CustomMoneyMode : this._rechargeMode = l.FixedMoneyMode, this.ConfigPanelMode();
                        break;
                    case l.CustomMoneyMode:
                        if (!this.Mode1InputMoneyEditBox.string) return g.UIUtlity.ShowFloatingHint("vn_rechange_slectHint".ToUILocale());
                        this._selectRechargeConfig.Type == c.Visa ? this.RechargeByMode1() : (this._rechargeMode = l.FixedMoneyMode, this.ConfigPanelMode());
                        break;
                    case l.FixedMoneyMode:
                        this.RechargeByMode2()
                }
            }, t.prototype.OnEditBegin = function(e) {
                e.background.spriteFrame = this.PanelAtlas.getSpriteFrame("itemBgSelect")
            }, t.prototype.OnEditEnd = function(e) {
                e.background.spriteFrame = this.PanelAtlas.getSpriteFrame("itemBgGray")
            }, t.prototype.OnInPutMoneyEditEnd = function(e) {
                e.background.spriteFrame = this.PanelAtlas.getSpriteFrame("itemBgGray");
                var t = Number.parseInt(e.string);
                t < this._selectRechargeConfig.MinAmount ? e.string = this._selectRechargeConfig.MinAmount.toString() : t > this._selectRechargeConfig.MaxAmount && (e.string = this._selectRechargeConfig.MaxAmount.toString()), this.ConfigRechargeDiamondCount(Number.parseInt(e.string))
            }, t.prototype.ConfigRechargeDiamondCount = function(e) {
                if (e) {
                    var t = e * this._selectRechargeConfig.Ratio / 1e4;
                    switch (this._rechargeMode) {
                        case l.CustomMoneyMode:
                            this.Mode1DiamondCount.string = t.toString(), this.RefreshSelectedLevelToggle(e);
                            break;
                        case l.FixedMoneyMode:
                            this.Mode2DiamondCount.string = t.toString()
                    }
                } else this.Mode2DiamondCount.string = ""
            }, t.prototype.RechargeByMode1 = function() {
                if (this.Mode1InputMoneyEditBox.string) {
                    this.Close();
                    var e = new f.Req_PayOrder_VN;
                    e.PayMethod = this._selectRechargeConfig.Id, e.Amount = Number.parseInt(this.Mode1InputMoneyEditBox.string);
                    var t = this;
                    y.RpcComponent.Instance.Call(e, function(e) {
                        u.EZLog.Log(e), e.Url && t.ShowPage(e.Url)
                    }, function(e, t) {
                        1023 == e && g.UIUtlity.ShowHintPanel("", t)
                    })
                }
            }, t.prototype.ShowPage = function(e) {
                return cc.sys.openURL(e)
            }, t.prototype.RechargeByMode2 = function() {
                if (this.AccountEditBox.string && this.PasswordEditBox.string) {
                    this.Close();
                    var e = new f.Req_PayOrder_VN;
                    e.PayMethod = this._selectRechargeConfig.Id, e.Input1 = this.AccountEditBox.string, e.Input2 = this.PasswordEditBox.string, this._selectRechargeConfig.Type == c.PhoneCard ? e.Amount = Number.parseInt(this.Mode1InputMoneyEditBox.string) : e.Amount = 1e4, y.RpcComponent.Instance.Call(e, function() {
                        g.UIUtlity.ShowFloatingHint("payOrderIsHandling".ToUILocale())
                    }, function(e, t) {
                        1023 == e && g.UIUtlity.ShowHintPanel("", t)
                    })
                }
            }, i([_(cc.Node)], t.prototype, "SelectRechargeModeNode", void 0), i([_(cc.Label)], t.prototype, "LeftCountTag", void 0), i([_(cc.Label)], t.prototype, "LeftCount", void 0), i([_(cc.Label)], t.prototype, "SelectRechargeModeHint", void 0), i([_(cc.Node)], t.prototype, "RechargeModeLayout", void 0), i([_(cc.Node)], t.prototype, "RechargeMode1Node", void 0), i([_(cc.Label)], t.prototype, "SelectLevelHint", void 0), i([_(cc.Node)], t.prototype, "RechargeLevelItemsLayout", void 0), i([_(cc.Label)], t.prototype, "Mode1InputMoneyTag", void 0), i([_(cc.EditBox)], t.prototype, "Mode1InputMoneyEditBox", void 0), i([_(cc.RichText)], t.prototype, "Mode1DiamondTag", void 0), i([_(cc.Label)], t.prototype, "Mode1DiamondCount", void 0), i([_(cc.Node)], t.prototype, "RechargeMode2Node", void 0), i([_(cc.Label)], t.prototype, "SelectModeType", void 0), i([_(cc.Label)], t.prototype, "AccountTag", void 0), i([_(cc.EditBox)], t.prototype, "AccountEditBox", void 0), i([_(cc.Label)], t.prototype, "PasswordTag", void 0), i([_(cc.EditBox)], t.prototype, "PasswordEditBox", void 0), i([_(cc.Label)], t.prototype, "Mode2InputMoneyTag", void 0), i([_(cc.EditBox)], t.prototype, "Mode2InputMoneyEditBox", void 0), i([_(cc.RichText)], t.prototype, "Mode2DiamondTag", void 0), i([_(cc.Label)], t.prototype, "Mode2DiamondCount", void 0), i([_(cc.Button)], t.prototype, "ReturnBtn", void 0), i([_(cc.Label)], t.prototype, "ReturnBtnLabel", void 0), i([_(cc.Button)], t.prototype, "RechargeBtn", void 0), i([_(cc.Label)], t.prototype, "RechargeBtnLabel", void 0), i([_(cc.SpriteAtlas)], t.prototype, "PanelAtlas", void 0), i([_(cc.Label)], t.prototype, "Mode1Hint1", void 0), i([_(cc.Label)], t.prototype, "Mode1Hint2", void 0), i([_(cc.Label)], t.prototype, "Mode2Hint1", void 0), i([_(cc.Label)], t.prototype, "Mode2Hint2", void 0), i([_(cc.RichText)], t.prototype, "PhoneCardRatio", void 0), i([I], t)
        }(u.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    ColorGradient: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "63711h6T5lE65mM6Ym2ptJQ", "ColorGradient");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = a.executeInEditMode,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._colors = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Colors", {
                    get: function() {
                        return this._colors
                    },
                    set: function(e) {
                        this._colors = e, this.DoUpdateColors()
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onLoad = function() {
                    this.node.opacity = 1
                }, t.prototype.onEnable = function() {
                    cc.director.once(cc.Director.EVENT_AFTER_DRAW, this.DoUpdateColors, this)
                }, t.prototype.onDisable = function() {
                    cc.director.off(cc.Director.EVENT_AFTER_DRAW, this.DoUpdateColors, this), this.node._renderFlag |= cc.RenderFlow.FLAG_COLOR
                }, t.prototype.DoUpdateColors = function() {
                    this.scheduleOnce(this.UpdateColors, 0)
                }, t.prototype.UpdateColors = function() {
                    var e = this.getComponent(cc.RenderComponent);
                    if (e) {
                        var t = e._assembler;
                        if (t instanceof cc.Assembler2D) {
                            var n = t._renderData.uintVDatas[0];
                            if (n)
                                for (var o = this.node.color, r = t.floatsPerVert, i = 0, a = t.colorOffset; a < n.length; a += r) n[a] = (this.Colors[i++] || o)._val
                        }
                    }
                }, i([l], t.prototype, "_colors", void 0), i([l(cc.Color)], t.prototype, "Colors", null), i([s, c], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {}],
    CombineSkillSelectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a7c31+djEtDzb2agswtZnP/", "CombineSkillSelectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SkillIcon = null, t.SkillNameLabel = null, t.SkillDescriptionRichText = null, t.CheckBox = null, t.CheckMark = null, t.CheckBoxTouchArea = null, t._iconSprite = null, t._skillId = 0, t._isSelected = !1, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    void 0 === t && (t = !1), this._skillId = e, this.CheckBox.active = t, this.SkillNameLabel.string = e.ToHeroSkillName(), this.SkillDescriptionRichText.string = e.ToHeroSkillDesc(), this.LoadIcon()
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, l.AssetsManager.Instance.LoadAsset("LuckyCharmSkillIcon/" + this._skillId, cc.SpriteFrame)];
                                case 1:
                                    return e._iconSprite = t.sent(), this.isValid || l.AssetsManager.Instance.UnloadAsset(this._iconSprite), this.SkillIcon.spriteFrame = this._iconSprite, [2]
                            }
                        })
                    })
                }, t.prototype.onDisable = function() {
                    e.prototype.onDisable.call(this), this._iconSprite && l.AssetsManager.Instance.UnloadAsset(this._iconSprite)
                }, i([p(cc.Sprite)], t.prototype, "SkillIcon", void 0), i([p(cc.Label)], t.prototype, "SkillNameLabel", void 0), i([p(cc.Label)], t.prototype, "SkillDescriptionRichText", void 0), i([p(cc.Node)], t.prototype, "CheckBox", void 0), i([p(cc.Sprite)], t.prototype, "CheckMark", void 0), i([p(cc.Node)], t.prototype, "CheckBoxTouchArea", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager"
    }],
    CommonActivityRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a8699qve4pCqLv8CT/VhdNM", "CommonActivityRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/RankDetailComponent"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/DataCenter"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/CustomToggle"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1, !1), t.Title = null, t.CenterNode = null, t.RewardButton = null, t.RewardLabel = null, t.ReturnButton = null, t.ToggleNode = null, t.CustomToggles = [], t._data = null, t._selectToggle = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent", cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                        n._rankPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUI()
                }, t.prototype.SetUI = function() {
                    this._data.RewardDatas && this._data.RewardDatas.length > 0 || this._data.RewardDatasArray && this._data.RewardDatasArray.length > 0 ? this.RewardButton.node.active = !0 : this.RewardButton.node.active = !1, this._data.ToggleDatas && this._data.ToggleDatas.length > 1 ? this.ToggleNode.active = !0 : this.ToggleNode.active = !1, this.Title.string = this._data.Title, this.SetRankList(), this.SetToggles()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function() {
                            return e.prototype.PreloadByData.call(this), t = p.DataCenter.Instance.ActivityConfigs[this._data.ActivityId], this._data.ToggleDatas && this._data.ToggleDatas.length > 1 && this._data.ToggleDatas.forEach(function(e, n) {
                                for (var o = 3 * n; o < 3 * (n + 1); o++) switch (t.Common.Type) {
                                    case d.ActivityType.WorldBoss:
                                    case d.ActivityType.Championship:
                                    case d.ActivityType.TradeWar:
                                }
                            }), [2]
                        })
                    })
                }, t.prototype.SetIcon = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), t.spriteFrame = n, [2]
                            }
                        })
                    })
                }, t.prototype.SetSpriteAtlasIcon = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return n = e.lastIndexOf("/"), o = e.slice(0, n), r = e.slice(n + 1), [4, this.LoadDynamicAsset(o, cc.SpriteAtlas)];
                                case 1:
                                    return i = a.sent(), t.spriteFrame = i.getSpriteFrame(r), [2]
                            }
                        })
                    })
                }, t.prototype.SetRankList = function() {
                    this._data.ExtraData && (this._data.ExtraData.ToggleIndex = this._selectToggle, this._rank_detail_item.SetExtraParam(this._data.ExtraData)), this._rank_detail_item.SetUI(this._data.ActivityId, this._data.RankDatas[this._selectToggle].Rows, this._data.RankDatas[this._selectToggle].MyRank, this._data.RankDatas[this._selectToggle].MyRankData, !1, !0), this._rank_detail_item.SetMyRankNodeY()
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this._data.ToggleDatas && this._data.ToggleDatas.length > 1 && this.CustomToggles.forEach(function(t, n) {
                        e._data.ToggleDatas[n] ? (t.node.active = !0, t.Init(e._data.ToggleDatas[n].ToggleLabel)) : t.node.active = !1
                    })
                }, t.prototype.FixedValueAssign = function() {
                    this.RewardLabel.string = "reward".ToUILocale();
                    var e = cc.instantiate(this._rankPrefab);
                    e.setParent(this.CenterNode), this._rank_detail_item = e.getComponent(c.default)
                }, t.prototype.OnEvent = function() {
                    var e = this;
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.CustomToggles.forEach(function(t) {
                        t.node.on("toggle", e.ClickToggle, e)
                    })
                }, t.prototype.OnRewardButtonClick = function() {
                    if (this._data.RewardDatasArray && this._data.RewardDatasArray.length > 0) l.UIManager.Instance.ShowUIPanel(u.PanelConfig.CommonRankRewardPanel.Path, null, this._data.RewardDatasArray);
                    else {
                        var e = {},
                            t = [];
                        this._data.RewardDatas.forEach(function(e) {
                            var n = {};
                            n.Id = e.Id, n.Ranks = e.Ranks, n.Rewards = e.Rewards, t.push(n)
                        }), e.MyRank = this._data.RankDatas[0].MyRank, e.Data = t, e.IsInRank = this._data.RankDatas[0].MyRank > 0;
                        var n = p.DataCenter.Instance.ActivityConfigs[this._data.ActivityId];
                        if (n) switch (n.Common.Type) {
                            case d.ActivityType.ChaosSummon:
                                var o = {};
                                o.name = "chaos_rank_title".ToUILocale(), o.titles = ["personalityCall_rewards_RuleSubtitle".ToUILocale()], o.contents = ["chaos_rank_content".ToUILocale()], e.RuleTip = "ChaosSummonRankReward_RuleTip".ToUILocale(), e.RuleData = o
                        }
                        l.UIManager.Instance.ShowUIPanel(u.PanelConfig.CommonRankRewardPanel.Path, e)
                    }
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._selectToggle != t && (this._selectToggle = t, this._data.ExtraData && this._data.ExtraData.AllianceRankIndex && (this._data.ExtraData.IsAlliance = this._data.ExtraData.AllianceRankIndex.includes(t)), this.SetToggleCallback(t))
                }, t.prototype.SetToggleCallback = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._data.RankDatas[e] ? [3, 2] : this._data.CallBacks[e] ? [4, this._data.CallBacks[e]()] : [2];
                                case 1:
                                    if (t = n.sent(), this._selectToggle != e) return [2];
                                    this._data.RankDatas[e] = t, n.label = 2;
                                case 2:
                                    return this.SetRankList(), [2]
                            }
                        })
                    })
                }, t.prototype.OnReturnButtonClick = function() {
                    this.Close()
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Node)], t.prototype, "CenterNode", void 0), i([g(cc.Button)], t.prototype, "RewardButton", void 0), i([g(cc.Label)], t.prototype, "RewardLabel", void 0), i([g(cc.Button)], t.prototype, "ReturnButton", void 0), i([g(cc.Node)], t.prototype, "ToggleNode", void 0), i([g(h.default)], t.prototype, "CustomToggles", void 0), i([y], t)
            }(l.BaseUIFullScreenPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    CommonBlackDescPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "61721NNZv1DubhkdDNsd3KO", "CommonBlackDescPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/BlankRichText"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Labels = null, t.Content = null, t.Bg1Widget = null, t.Bg2Widget = null, t.MaskWidget = null, t._commomDescData = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("LabelsComponent/BlankRichText", cc.Prefab)];
                                case 1:
                                    return t._richTextPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), t[0] && (this._commomDescData = t[0])
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this._commomDescData) {
                        this.Title.string = this._commomDescData.Title;
                        for (var n = 0, o = this._commomDescData.DescArray; n < o.length; n++) {
                            var r = o[n],
                                i = cc.instantiate(this._richTextPrefab);
                            i.setParent(this.Labels), i.getComponent(c.default).Init(r)
                        }
                        this.Labels.getComponent(cc.Layout).updateLayout(), this.Content.updateLayout(), this.Bg1Widget.updateAlignment(), this.Bg2Widget.updateAlignment(), this.MaskWidget.updateAlignment()
                    }
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "Labels", void 0), i([d(cc.Layout)], t.prototype, "Content", void 0), i([d(cc.Widget)], t.prototype, "Bg1Widget", void 0), i([d(cc.Widget)], t.prototype, "Bg2Widget", void 0), i([d(cc.Widget)], t.prototype, "MaskWidget", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/BlankRichText": "BlankRichText"
    }],
    CommonBuyItemPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ecf24S8KmVISoSXaMBvjOKL", "CommonBuyItemPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/SliderComponent"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../Components/ItemComponent"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Tittle = null, t.ItemNode = null, t.ItemName = null, t.LimitCount = null, t.HaveCount = null, t.SliderComponent = null, t.SelectCount = null, t.TotalPriceCurrencyBarItem = null, t.BuyButton = null, t.BuyLabel = null, t.BuyItemNode = null, t.BuyItemLabel = null, t._selectCount = 0, t._totalPrice = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "buyAndSale_buy_tittie".ToUILocale(), this.BuyLabel.string = "buyAndSale_buy".ToUILocale(), this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this.BuyItemNode.active = this._data.ItemId > 0, this.BuyItemLabel.node.active = 0 == this._data.ItemId, this._data.ItemId > 0) {
                        if (!this._itemComponent) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.parent = this.ItemNode, this._itemComponent = n.getComponent(h.ItemComponent)
                        }
                        this._itemComponent.Init({
                            ItemId: this._data.ItemId,
                            Count: this._data.ItemCount
                        }), this.ItemName.string = this._data.ItemId.ToItemName();
                        var o = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, this._data.ItemId);
                        if (this.ItemName.node.color = g.UIUtlity.GetLabelColorByQuality(o.Quality), this.LimitCount.node.active = this._data.BuyCountLimit > 0, this._data.BuyCountLimit > 0) {
                            var r = "shop_buyTimesLimit0".ToUILocale();
                            r = r.Fmt(this._data.BuyCountLimit - this._data.BuyCount, this._data.BuyCountLimit), this.LimitCount.string = r
                        }
                        var i = u.DataCenter.Instance.GetItemCount(this._data.ItemId);
                        this.HaveCount.string = "buy_and_sale_has".ToUILocale().Fmt(i.FmtCurrency())
                    } else this.BuyItemLabel.string = this._data.ItemDesc;
                    this.SelectCount.string = this._selectCount.toString(), this.SliderComponent.SetUI(this._selectCount, this._data.BuyCountLimit - this._data.BuyCount, 1, !0), this.TotalPriceCurrencyBarItem.Init(this._data.CurrencyId, !1, this._totalPrice)
                }, t.prototype.OnBuyButtonClick = function() {
                    !this._selectCount || this._selectCount > this._data.BuyCountLimit - this._data.BuyCount || (u.DataCenter.Instance.GetItemCount(this._data.CurrencyId) < this._totalPrice ? g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._data.CurrencyId.ToItemName())) : this._data.BuyCallback(this._selectCount))
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && g.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.OnSliderDragOver = function(e) {
                    this._selectCount = e, this._totalPrice = this._data.ProgressCallback(e), this.SelectCount.string = e.toString(), this.TotalPriceCurrencyBarItem.Init(this._data.CurrencyId, !1, this._totalPrice)
                }, i([_(cc.Label)], t.prototype, "Tittle", void 0), i([_(cc.Node)], t.prototype, "ItemNode", void 0), i([_(cc.Label)], t.prototype, "ItemName", void 0), i([_(cc.RichText)], t.prototype, "LimitCount", void 0), i([_(cc.RichText)], t.prototype, "HaveCount", void 0), i([_(p.default)], t.prototype, "SliderComponent", void 0), i([_(cc.Label)], t.prototype, "SelectCount", void 0), i([_(d.default)], t.prototype, "TotalPriceCurrencyBarItem", void 0), i([_(cc.Button)], t.prototype, "BuyButton", void 0), i([_(cc.Label)], t.prototype, "BuyLabel", void 0), i([_(cc.Node)], t.prototype, "BuyItemNode", void 0), i([_(cc.Label)], t.prototype, "BuyItemLabel", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SliderComponent": "SliderComponent"
    }],
    CommonCouponGiftPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f970dumjjFM95nTn5o5RsBw", "CommonCouponGiftPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../Consts/Consts"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Channel/ChannelManager"),
            h = e("./ItemComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.PurchaseLimit = null, t.ItemContainer = null, t.GetLabel = null, t.GetValue = null, t.OrangeButton = null, t.OrangeButtonLabel = null, t.ShowOutTag = null, t.DiscountValue = null, t.DiscountLabel = null, t.RedDot = null, t.BlueButton = null, t.BlueBtnLabel = null, t.BlueBtnDiscountValue = null, t.BlueBtnDiscountLabel = null, t.CouponTagNode = null, t.CouponTagLabel = null, t._itemNodes = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    this.CouponTagLabel.string = "Coupon_text".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.BlueButton.node.on("click", this.OnBlueButtonClick, this), a.Game.EventDispatcher.On(u.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this), a.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.OrangeButton.node.off("click", this.OnOrangeButtonClick, this), this.BlueButton.node.off("click", this.OnBlueButtonClick, this), a.Game.EventDispatcher.Off(u.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this), a.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    var t = this;
                    this._data = e;
                    var n = 0;
                    if (e.ActivityId > 0) {
                        var o = s.DataCenter.Instance.GetDataById(l.UserActivity_Model, e.ActivityId);
                        if (this.Name.string = e.ActivityGiftPackConfig.Name, o && o.Packs && o.Packs[e.ActivityGiftPackConfig.Id] && o.Packs[e.ActivityGiftPackConfig.Id].Items && o.Packs[e.ActivityGiftPackConfig.Id].Items[0] && (n = o.Packs[e.ActivityGiftPackConfig.Id].Items[0]), this._data.ActivityGiftPackConfig.Coupon && this._data.ActivityGiftPackConfig.Coupon.length > 2) {
                            var r = this._data.ActivityGiftPackConfig.Coupon[2],
                                i = s.DataCenter.Instance.GetItemCount(r);
                            this._type = i > 0 ? c.CouponPackType.Coupon : c.CouponPackType.Original
                        } else this._type = c.CouponPackType.Original;
                        this._giftPackConfig = e.ActivityGiftPackConfig, this._couponGiftPackConfig = e.ActivityCouponGiftPackConfig
                    } else this.Name.string = e.GiftPackConfig.Id.ToGiftPackName(), n = p.default.Instance.GetGiftBuyCount(e.GiftPackConfig.Id), this._type = c.CouponPackType.Original, this._giftPackConfig = e.GiftPackConfig, this._couponGiftPackConfig = e.CouponGiftPackConfig;
                    var a, u = this._giftPackConfig.LimitCount - n;
                    this.PurchaseLimit.node.parent.active = 0 != this._giftPackConfig.LimitType, a = u > 0 ? u.toString() : "<color = ff0000>0</>", this.PurchaseLimit.string = ("mall_buyLimit_" + this._giftPackConfig.LimitType).ToUILocale().Fmt(a, this._giftPackConfig.LimitCount), this._giftPackConfig.LimitType ? (this.ShowOutTag.active = u <= 0, this.OrangeButton.node.active = u > 0, this.BlueButton.node.active = u > 0 && this._type == c.CouponPackType.Coupon) : (this.ShowOutTag.active = !1, this.OrangeButton.node.active = !0, this.BlueButton.node.active = this._type == c.CouponPackType.Coupon), this.CouponTagNode.active = this._type == c.CouponPackType.Coupon, this._type == c.CouponPackType.Original ? (this.OrangeButtonLabel.string = this._giftPackConfig.Money > 0 ? d.default.Instance.CurrencySymbol + d.default.Instance.ExchangeMoney(this._giftPackConfig.Money) : "shop_buyFree".ToUILocale(), this.GetLabel.node.parent.active = this._giftPackConfig.VipPoint > 0, this.GetLabel.string = "task_get_score_tag".ToUILocale(), this.GetValue.string = "x" + this._giftPackConfig.VipPoint, this.RedDot.active = null == this._giftPackConfig.Money || 0 == this._giftPackConfig.Money, p.default.Instance.SetDisCount(this._giftPackConfig.Discount, this.DiscountValue, this.DiscountLabel)) : this._type == c.CouponPackType.Coupon && (this.BlueBtnLabel.string = this._giftPackConfig.Money > 0 ? "mall_originPrice".ToUILocale() + d.default.Instance.CurrencySymbol + d.default.Instance.ExchangeMoney(this._giftPackConfig.Money) : "shop_buyFree".ToUILocale(), p.default.Instance.SetDisCount(this._giftPackConfig.Discount, this.BlueBtnDiscountValue, this.BlueBtnDiscountLabel), this.OrangeButtonLabel.string = this._couponGiftPackConfig.Money > 0 ? d.default.Instance.CurrencySymbol + d.default.Instance.ExchangeMoney(this._couponGiftPackConfig.Money) : "shop_buyFree".ToUILocale(), this.GetLabel.node.parent.active = !1, this.RedDot.active = null == this._couponGiftPackConfig.Money || 0 == this._couponGiftPackConfig.Money, p.default.Instance.SetDisCount(this._couponGiftPackConfig.Discount, this.DiscountValue, this.DiscountLabel)), this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this._giftPackConfig.Items.forEach(function(n, o) {
                        if (!t._itemNodes[o]) {
                            var r = cc.instantiate(e.ItemPrefab);
                            r.parent = t.ItemContainer, t._itemNodes[o] = r
                        }
                        t._itemNodes[o].active = !0, t._itemNodes[o].getComponent(h.ItemComponent).Init({
                            ItemId: n.Items[0],
                            Count: n.Items[1]
                        })
                    })
                }, t.prototype.OnOrangeButtonClick = function() {
                    var e;
                    this._type == c.CouponPackType.Original ? e = this._giftPackConfig : this._type == c.CouponPackType.Coupon && (e = this._couponGiftPackConfig), this.BuyButtonClick(e)
                }, t.prototype.OnBlueButtonClick = function() {
                    this.BuyButtonClick(this._giftPackConfig)
                }, t.GetActivityCouponCount = function(e, t) {
                    var n = s.DataCenter.Instance.GetItemCount(e),
                        o = 0,
                        r = s.DataCenter.Instance.GetDataById(l.UserActivity_Model, t);
                    return r && r.Coupon && r.Coupon[e] && r.Coupon[e].Items.forEach(function(e) {
                        s.RpcComponent.Instance.ServerTime < e && o++
                    }), n - o > 0 ? n - o : 0
                }, t.prototype.GetMinCoolDownTime = function(e, t) {
                    var n = 0,
                        o = s.DataCenter.Instance.GetDataById(l.UserActivity_Model, t);
                    return o && o.Coupon && o.Coupon[e] && o.Coupon[e].Items.forEach(function(e) {
                        s.RpcComponent.Instance.ServerTime < e && (n = 0 == n ? e : Math.min(n, e))
                    }), n
                }, t.prototype.BuyButtonClick = function(e) {
                    var t = this;
                    if (null == e.Money || 0 == e.Money) {
                        var o = new l.Req_Pay_ByDiamond;
                        o.Id = e.Id, o.ActivityId = this._data.ActivityId, s.RpcComponent.Instance.Call(o, function(e) {
                            f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else if (this._type == c.CouponPackType.Original) d.default.Instance.Pay(e.Id, this._data.ActivityId);
                    else if (this._type == c.CouponPackType.Coupon)
                        if (e.Coupon[0] == c.CouponPackType.Original) f.UIUtlity.ShowHintPanel(null, "Coupon_continue2".ToUILocale().Fmt(this._giftPackConfig.Money, this._couponGiftPackConfig.Money), "", null, "", function() {
                            d.default.Instance.Pay(e.Id, t._data.ActivityId)
                        });
                        else if (e.Coupon[0] == c.CouponPackType.Coupon) {
                        if (this._data.ActivityId > 0 && 0 == n.GetActivityCouponCount(this._couponGiftPackConfig.Coupon[2], this._data.ActivityId)) {
                            var r = this.GetMinCoolDownTime(this._couponGiftPackConfig.Coupon[2], this._data.ActivityId);
                            if (0 == r) f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._couponGiftPackConfig.Coupon[2].ToItemName()));
                            else {
                                var i = r - s.RpcComponent.Instance.ServerTime;
                                f.UIUtlity.ShowHintPanel(null, "coupon_giftpack_coolDown".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(i)), "", null, "", null)
                            }
                            return
                        }
                        f.UIUtlity.ShowHintPanel(null, "Coupon_continue".ToUILocale().Fmt(this._giftPackConfig.Money, this._couponGiftPackConfig.Money), "", null, "", function() {
                            d.default.Instance.Pay(e.Id, t._data.ActivityId)
                        })
                    }
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, i([m(cc.Label)], t.prototype, "Name", void 0), i([m(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([m(cc.Label)], t.prototype, "GetLabel", void 0), i([m(cc.Label)], t.prototype, "GetValue", void 0), i([m(cc.Button)], t.prototype, "OrangeButton", void 0), i([m(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([m(cc.Node)], t.prototype, "ShowOutTag", void 0), i([m(cc.Label)], t.prototype, "DiscountValue", void 0), i([m(cc.Label)], t.prototype, "DiscountLabel", void 0), i([m(cc.Node)], t.prototype, "RedDot", void 0), i([m(cc.Button)], t.prototype, "BlueButton", void 0), i([m(cc.Label)], t.prototype, "BlueBtnLabel", void 0), i([m(cc.Label)], t.prototype, "BlueBtnDiscountValue", void 0), i([m(cc.Label)], t.prototype, "BlueBtnDiscountLabel", void 0), i([m(cc.Node)], t.prototype, "CouponTagNode", void 0), i([m(cc.Label)], t.prototype, "CouponTagLabel", void 0), n = i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    CommonCustomGiftPackListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6c453uUXCpOz4v88g+e3ic2", "CommonCustomGiftPackListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Channel/ChannelManager"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("./CommonCustomItemComponent"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Auxiliary/EventKeys"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.LimitRichText = null, t.RewardNode = null, t.BuyButton = null, t.BuyLabel = null, t.VipGetLabel = null, t.VipLabel = null, t.DiscountNode = null, t.DiscountLabel = null, t.SoldOut = null, t.RedDot = null, t.SellOut = null, t._fixItemNodes = [], t._customItemNodes = [], t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.SellOut.string = "soldOut".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.BuyButton.node.on("click", this.OnBuyButtonClick, this), l.Game.EventDispatcher.On(m.EventKeys.EVENT_REFRESH_SINGLEPACK_SELECT, this.UpdateSelect, this)
                }, t.prototype.onDisable = function() {
                    this.BuyButton.node.off("click", this.OnBuyButtonClick, this), l.Game.EventDispatcher.Off(m.EventKeys.EVENT_REFRESH_SINGLEPACK_SELECT, this.UpdateSelect, this)
                }, t.prototype.initData = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._data = e, this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.ActivityId), e.NodeWidth && (this.node.width = e.NodeWidth), [4, this.InitNode()];
                                case 1:
                                    return t.sent(), this.isValid ? (this.SetRewardNode(), this.SetInfo(), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.InitNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.RedDot.active = !1, this._fixItemNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._customItemNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._itemPrefab ? [3, 2] : [4, d.AssetsManager.Instance.LoadAsset("CommonPanel/SubItems/CommonCustomItemComponent", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._loadAssets.push(e), this._itemPrefab = e, t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetRewardNode = function() {
                    var e = this;
                    this.RewardNode.getComponent(cc.Layout).spacingX = this._data.Rewards && this._data.Rewards.length > 0 ? 0 : -40, this._data.Pack.Items.forEach(function(t, n) {
                        if (!e._fixItemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.RewardNode, e._fixItemNodes[n] = o
                        }
                        e._fixItemNodes[n].active = !0, e._fixItemNodes[n].name = t.Items[0].toString();
                        var r = e._fixItemNodes[n].getComponent(y.default);
                        r.Init(e.OnRewardButtonClick.bind(e)), r.SetRewardNode(!0, t.Items[0], t.Items[1]);
                        var i = n == e._data.Pack.Items.length - 1 && e._data.Rewards && e._data.Rewards.length > 0;
                        r.SetAddNode(i)
                    }), this._data.Rewards && this._data.Rewards.length > 0 && this._data.Rewards.forEach(function(t, n) {
                        if (!e._customItemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.RewardNode, e._customItemNodes[n] = o
                        }
                        e._customItemNodes[n].active = !0, e._customItemNodes[n].name = n.toString();
                        var r = e._customItemNodes[n].getComponent(y.default),
                            i = e.GetRewardSelectIndex(n);
                        r.Init(e.OnRewardButtonClick.bind(e)), r.SetNormalNode(-1 == i), -1 != i && t.Rewards[i] ? r.SetRewardNode(!0, t.Rewards[i].Items[0], t.Rewards[i].Items[1]) : r.SetRewardNode(!1), r.SetChangeNode(i > -1)
                    })
                }, t.prototype.GetRewardSelectIndex = function(e) {
                    var t = this;
                    if (this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data.ActivityId), this._model.Int2DArray && this._model.Int2DArray.length > 0) {
                        var n = this._model.Int2DArray.findIndex(function(e) {
                            return e.Items[0] == t._data.Pack.Id
                        });
                        if (n > -1 && this._model.Int2DArray[n].Items[e + 1] >= 0) return this._model.Int2DArray[n].Items[e + 1]
                    }
                    return -1
                }, t.prototype.SetInfo = function() {
                    var e = this._model.Packs && this._model.Packs[this._data.Pack.Id] && this._model.Packs[this._data.Pack.Id].Items[0] ? this._model.Packs[this._data.Pack.Id].Items[0] : 0;
                    this._data.Pack.LimitCount ? (this.BuyButton.node.active = e < this._data.Pack.LimitCount, this.SoldOut.active = e >= this._data.Pack.LimitCount) : (this.BuyButton.node.active = !0, this.SoldOut.active = !1), this.Title.string = this._data.Pack.Name;
                    var t = this._data.Pack.LimitCount - e >= 0 ? this._data.Pack.LimitCount - e : 0,
                        n = this._data.Pack.LimitCount,
                        o = t > 0 ? "#6eeea7" : "ff0000";
                    n ? (this.LimitRichText.node.active = !0, this.LimitRichText.string = "customGift_limit_times".ToUILocale().Fmt(o, t, n)) : this.LimitRichText.node.active = !1, this.VipGetLabel.string = "task_get_score_tag".ToUILocale(), null == this._data.Pack.Discount || this._data.Pack.Discount <= 0 ? this.DiscountNode.active = !1 : this.DiscountNode.active = e < this._data.Pack.LimitCount, this.DiscountLabel.string = this._data.Pack.Discount + "%" + "mall_giftPack_superValue".ToUILocale(), this.BuyButton.node.active && (this.VipLabel.node.parent.active = h.default.Instance.ExchangeMoney(this._data.Pack.Money) > 0, this.VipLabel.node.parent.active ? (this.BuyLabel.string = h.default.Instance.CurrencySymbol + h.default.Instance.ExchangeMoney(this._data.Pack.Money), this.VipLabel.string = "x" + this._data.Pack.VipPoint) : this.BuyLabel.string = "shop_buyFree".ToUILocale());
                    var r = this._model.Packs[this._data.Pack.Id] && this._model.Packs[this._data.Pack.Id].Items[0] ? this._model.Packs[this._data.Pack.Id].Items[0] : 0;
                    h.default.Instance.ExchangeMoney(this._data.Pack.Money) || r || (this.RedDot.active = !0)
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = this;
                    this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data.ActivityId);
                    var t = this._model.Packs && this._model.Packs[this._data.Pack.Id] && this._model.Packs[this._data.Pack.Id].Items[0] ? this._model.Packs[this._data.Pack.Id].Items[0] : 0;
                    if (!(this._data.Pack.LimitCount && t >= this._data.Pack.LimitCount)) {
                        var n = function() {
                            e.CheckSkinIsMaxLevel() ? p.UIUtlity.ShowHintPanel(null, "customGift_maxLevel_buy_hint".ToUILocale(), "", null, "", function() {
                                h.default.Instance.Pay(e._data.Pack.Id, e._data.ActivityId)
                            }) : h.default.Instance.Pay(e._data.Pack.Id, e._data.ActivityId)
                        };
                        if (this._data.Rewards && this._data.Rewards.length > 0) {
                            var o = !0;
                            if (this._model.Int2DArray) {
                                var r = this._model.Int2DArray.findIndex(function(t) {
                                    return t.Items[0] == e._data.Pack.Id
                                });
                                if (this._model.Int2DArray[r] && this._model.Int2DArray[r].Items.length > 1) {
                                    for (var i = 1; i < this._model.Int2DArray[r].Items.length; i++)
                                        if (this._model.Int2DArray[r].Items[i] < 0) {
                                            o = !1;
                                            break
                                        }
                                } else o = !1
                            } else o = !1;
                            o ? n() : p.UIUtlity.ShowFloatingHint("customGift_select_first".ToUILocale())
                        } else n()
                    }
                }, t.prototype.CheckSkinIsMaxLevel = function() {
                    for (var e = !1, t = 0; t < this._data.Pack.Items.length; t++) {
                        var n = this._data.Pack.Items[t].Items[0];
                        if (e = f.default.CheckHeroSkinIsMaxLevel(n)) break
                    }
                    if (!e && this._data.Rewards && this._data.Rewards.length > 0)
                        for (t = 0; t < this._data.Rewards.length && !e; t++)
                            for (var o = this._data.Rewards[t], r = 0; r < o.Rewards.length; r++) {
                                var i = o.Rewards[r].Items[0];
                                if (e = f.default.CheckHeroSkinIsMaxLevel(i)) break
                            }
                    return e
                }, t.prototype.OnRewardButtonClick = function(e) {
                    if (this._fixItemNodes.indexOf(e) > -1) {
                        var t = Number(e.name);
                        p.UIUtlity.ShowItemTip(t, e)
                    }
                    this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data.ActivityId);
                    var n = this._model.Packs && this._model.Packs[this._data.Pack.Id] && this._model.Packs[this._data.Pack.Id].Items[0] ? this._model.Packs[this._data.Pack.Id].Items[0] : 0;
                    if (!(this._data.Pack.LimitCount && n >= this._data.Pack.LimitCount) && this._customItemNodes.indexOf(e) > -1) {
                        var o = Number(e.name),
                            r = {
                                Type: 1
                            };
                        r.ActivityId = this._data.ActivityId, r.Pack = this._data.Pack, r.ClickIndex = o, r.SelectIndex = this.GetRewardSelectIndex(o), r.Rewards = this._data.Rewards[o].Rewards, l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CustomGiftPackRewardPanel.Path, r)
                    }
                }, t.prototype.UpdateSelect = function(e, t) {
                    if (this._data.Pack.Id == e.Id && this._customItemNodes.length > 0 && this._customItemNodes[t]) {
                        var n = this._customItemNodes[t].getComponent(y.default),
                            o = this.GetRewardSelectIndex(t),
                            r = this._data.Rewards[t];
                        n.SetNormalNode(-1 == o), -1 != o && r.Rewards[o] ? n.SetRewardNode(!0, r.Rewards[o].Items[0], r.Rewards[o].Items[1]) : n.SetRewardNode(!1), n.SetChangeNode(o > -1)
                    }
                }, t.prototype.GetGiftId = function() {
                    return this._giftId
                }, t.prototype.SetGiftId = function(e) {
                    this._giftId = e
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        d.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemPrefab = null, this._fixItemNodes = [], this._customItemNodes = []
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.RichText)], t.prototype, "LimitRichText", void 0), i([C(cc.Node)], t.prototype, "RewardNode", void 0), i([C(cc.Button)], t.prototype, "BuyButton", void 0), i([C(cc.Label)], t.prototype, "BuyLabel", void 0), i([C(cc.Label)], t.prototype, "VipGetLabel", void 0), i([C(cc.Label)], t.prototype, "VipLabel", void 0), i([C(cc.Node)], t.prototype, "DiscountNode", void 0), i([C(cc.Label)], t.prototype, "DiscountLabel", void 0), i([C(cc.Node)], t.prototype, "SoldOut", void 0), i([C(cc.Node)], t.prototype, "RedDot", void 0), i([C(cc.Label)], t.prototype, "SellOut", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CommonCustomItemComponent": "CommonCustomItemComponent"
    }],
    CommonCustomItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7f587PBCOVE3KZoXOWNo1i+", "CommonCustomItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/ItemComponent"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NormalNode = null, t.RewardNode = null, t.ChangeNode = null, t.ClickButton = null, t.AddNode = null, t._callback = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ClickButton.node.on(cc.Node.EventType.TOUCH_END, this.OnClick, this)
                }, t.prototype.onDisable = function() {
                    this.ClickButton.node.off(cc.Node.EventType.TOUCH_END, this.OnClick, this)
                }, t.prototype.Init = function(e) {
                    this._callback = e
                }, t.prototype.SetNormalNode = function(e) {
                    void 0 === e && (e = !1), this.NormalNode.active = e
                }, t.prototype.SetRewardNode = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.RewardNode.active = e, e ? this._itemComponent ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)] : [3, 3];
                                case 1:
                                    if (o = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this._loadAssets.push(o), (r = cc.instantiate(o)).parent = this.RewardNode, this._itemComponent = r.getComponent(c.ItemComponent), i.label = 2;
                                case 2:
                                    this._itemComponent.Init({
                                        ItemId: t,
                                        Count: n
                                    }), i.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetChangeNode = function(e) {
                    void 0 === e && (e = !1), this.ChangeNode.active = e
                }, t.prototype.SetAddNode = function(e) {
                    void 0 === e && (e = !1), this.AddNode.active = e
                }, t.prototype.OnClick = function() {
                    this._callback(this.node)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([h(cc.Node)], t.prototype, "NormalNode", void 0), i([h(cc.Node)], t.prototype, "RewardNode", void 0), i([h(cc.Node)], t.prototype, "ChangeNode", void 0), i([h(cc.Button)], t.prototype, "ClickButton", void 0), i([h(cc.Node)], t.prototype, "AddNode", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CommonEquipmentItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c90f5wZd2RKgaN589XUBCi1", "CommonEquipmentItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./ItemComponent"),
            y = e("../Panel/LuckyCharmInfoPanel"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Auxiliary/UIUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.EquipLabel = null, t.OtherLabel = null, t.EquipItemContent = null, t.ArrowEquipButton = null, t.ArrowLuckyCharmButton = null, t.ArrowGemButton = null, t.SortUpButton = null, t.SortDownButton = null, t._itemNodes = [], t._assets = [], t._canMove = !1, t.EquipCount = 4, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.node.on(cc.Node.EventType.TOUCH_START, this.StarMove, this), this.node.on(cc.Node.EventType.TOUCH_MOVE, this.NodeMoving, this), this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.CancelMove, this), this.node.on(cc.Node.EventType.TOUCH_END, this.EndMove, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.node.off(cc.Node.EventType.TOUCH_START, this.StarMove, this), this.node.off(cc.Node.EventType.TOUCH_MOVE, this.NodeMoving, this), this.node.off(cc.Node.EventType.TOUCH_CANCEL, this.CancelMove, this), this.node.off(cc.Node.EventType.TOUCH_END, this.EndMove, this)
                }, t.prototype.onLoad = function() {
                    this.EquipLabel.string = "HeroDetail_equip".ToUILocale(), this.OtherLabel.string = "HolyRelic_cultivation".ToUILocale(), this.ArrowEquipButton.node.on("click", this.ClickArrowEquipButton, this), this.ArrowLuckyCharmButton.node.on("click", this.ClickArrowLuckyCharmButton, this), this.ArrowGemButton.node.on("click", this.ClickArrowGemButton, this), this.SortUpButton.node.on("click", this.ClickSortUpButton, this), this.SortDownButton.node.on("click", this.ClickSortDownButton, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._equipmentSetDataMap = o, this.SortUpButton.node.active = t > 0, this.SortDownButton.node.active = t < 4, this._equipSetData = e, this._slot = t, this._teamIndex = n, this.SetEquipments()
                }, t.prototype.SetEquipments = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, g, m, I, _, C, v, b, S, w, P, A;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._assets.push(e), s.label = 2;
                                case 2:
                                    for (t = 0; t < 5; t++) switch (this._itemNodes[t] || ((n = cc.instantiate(this._itemPrefab)).parent = this.EquipItemContent, n.name = t.toString(), this._itemNodes[t] = n), o = this._itemNodes[t].getComponent(f.ItemComponent), t) {
                                        case 0:
                                            for (r = this._equipSetData[d.ArtefactRelicEquipIndex.Equip], i = this._equipSetData[d.ArtefactRelicEquipIndex.HolyEquip], a = this._equipSetData[99], C = void 0, g = 0; g < this.EquipCount; g++) m = {}, r[g] && r[g].Id > 0 ? (m.Sid = r[g].Id, m.IsHolyEquip = !1, m.IsItem = !1) : i[g] && i[g].Id > 0 ? (m.Sid = i[g].Id, m.IsHolyEquip = !0, m.IsItem = !1) : a[g] && a[g].Id > 0 ? (m.Sid = a[g].Id, m.IsHolyEquip = !1, m.IsItem = !0) : (m.Sid = 0, m.IsHolyEquip = !1, m.IsItem = !1), !C && m.Sid > 0 && (C = m);
                                            C ? C.IsHolyEquip ? (I = c.DataCenter.Instance.GetDataById(p.HolyEquipment_Model, C.Sid), o.Init({
                                                ItemId: I.ItemId,
                                                StarLevel: I.Star,
                                                Sid: I.Sid
                                            }, f.ItemComponentType.ItemWithStar)) : C.IsItem ? o.Init({
                                                ItemId: C.Sid
                                            }, f.ItemComponentType.ItemWithStar) : (b = c.DataCenter.Instance.GetDataById(p.Equipment_Model, C.Sid), o.Init({
                                                ItemId: b.ItemId
                                            }, f.ItemComponentType.ItemWithStar)) : this.SetEquipSimple(0, o);
                                            break;
                                        default:
                                            for (v in _ = this._equipSetData[t + 1], C = void 0, _)
                                                if (!C && _[v].Id > 0) {
                                                    C = _[v];
                                                    break
                                                } if (C) switch (t) {
                                                case 1:
                                                    (b = c.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, C.Id)).StarSkills && b.StarSkills.length > 0 ? o.Init({
                                                        ItemId: y.default.OrigionLuckyCharmVirtualItemId,
                                                        StarLevel: b.StarSkills.length
                                                    }, f.ItemComponentType.ItemWithStar) : o.Init({
                                                        ItemId: b.ItemId
                                                    }, f.ItemComponentType.ItemCommon);
                                                    break;
                                                case 2:
                                                    S = c.DataCenter.Instance.GetDataById(p.PowerCore_Model, C.Id), w = c.ConfigDataComponent.Instance.GetConfigById(u.PowerCore_Config, S.ItemId), o.Init({
                                                        ItemId: w.Id,
                                                        StarLevel: w.Star
                                                    }, f.ItemComponentType.ItemWithStar);
                                                    break;
                                                case 3:
                                                    P = c.DataCenter.Instance.GetDataById(p.GemEquip_Model, C.Id), o.Init(P, f.ItemComponentType.Gem);
                                                    break;
                                                case 4:
                                                    A = c.DataCenter.Instance.GetDataById(p.UserPet_Model, C.Id), o.Init(A, f.ItemComponentType.Pet)
                                            } else this.SetEquipSimple(t, o)
                                    }
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetEquipSimple = function(e, t) {
                    switch (t.SetItemSimpleState(), e) {
                        case 0:
                            t.SetCustomIcon(I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("equip_1"));
                            break;
                        case 1:
                            t.SetCustomIcon(I.UIUtlity.COMMON_ATLAS5.getSpriteFrame("equip_luckyCharm"));
                            break;
                        case 2:
                            t.SetCustomIcon(I.UIUtlity.COMMON_ATLAS5.getSpriteFrame("EquipmentCoreBg"));
                            break;
                        case 3:
                            t.SetCustomIcon(I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("gem_shadow"));
                            break;
                        case 4:
                            t.SetCustomIcon(I.UIUtlity.COMMON_ATLAS5.getSpriteFrame("ItemEmptyPet"))
                    }
                }, t.prototype.GetEquipItemIds = function() {
                    for (var e = [0, 0, 0, 0], t = this._equipSetData[99], n = 0; n < e.length; n++) t[n].Id > 0 && (e[n] = t[n].Id);
                    return e
                }, t.prototype.GetAllItemEquipDatas = function() {
                    var e = [];
                    for (var t in this._equipmentSetDataMap)
                        for (var n in this._equipmentSetDataMap[t])
                            for (var o in this._equipmentSetDataMap[t][n])
                                for (var r in this._equipmentSetDataMap[t][n][o]) {
                                    var i = this._equipmentSetDataMap[t][n][o][r];
                                    if (99 == i.EquipType && i.Id > 0) {
                                        var a = {};
                                        a.TeamIndex = Number(t), a.Slot = Number(n), a.Index = Number(o), a.ItemId = i.Id, e.push(a)
                                    }
                                }
                    return e
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.EquipItemContent.children.indexOf(t)) {
                        var n = Number.parseInt(t.name);
                        this.ClickEquipItemByType(n, t)
                    }
                }, t.prototype.GetSids = function(e) {
                    var t = [];
                    for (var n in e) t.push(e[n].Id);
                    return t
                }, t.prototype.ClickEquipItemByType = function(e, t) {
                    switch (e) {
                        case 0:
                            (a = {}).ClickNode = t, a.Sids = this.GetSids(this._equipSetData[0]), a.Type = 0, a.HolyEquipSids = this.GetSids(this._equipSetData[1]), a.TeamIndex = this._teamIndex, a.Slot = this._slot, a.EquipItemIds = this.GetEquipItemIds(), a.EquipItemDatas = this.GetAllItemEquipDatas(), l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonEquipmentSetTipsPanel.Path, a);
                            break;
                        case 2:
                            (a = {}).Sids = this.GetSids(this._equipSetData[e + 1]), a.Type = e, a.TeamIndex = this._teamIndex, a.Slot = this._slot, a.Index = 0;
                            var o = this._equipSetData[e + 1][0],
                                r = void 0;
                            if (o && o.Id > 0) {
                                var i = c.DataCenter.Instance.GetDataById(p.PowerCore_Model, o.Id);
                                r = m.default.Instance.GetPowerCoreAttribute(i.ItemId, i.Level)
                            }
                            l.UIManager.Instance.ShowUIPanel(n.EquipListPanelPaths[e], null, o.Id, r, a);
                            break;
                        case 4:
                            (a = {}).Sids = this.GetSids(this._equipSetData[e + 1]), a.Type = e, a.TeamIndex = this._teamIndex, a.Slot = this._slot, a.Index = 0, l.UIManager.Instance.ShowUIPanel(n.EquipListPanelPaths[e], null, a);
                            break;
                        default:
                            var a;
                            (a = {}).ClickNode = t, a.Sids = this.GetSids(this._equipSetData[e + 1]), a.Type = e, a.TeamIndex = this._teamIndex, a.Slot = this._slot, l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonEquipmentSetTipsPanel.Path, a)
                    }
                }, t.prototype.ClickArrowEquipButton = function() {
                    this.ClickEquipItemByType(0, this.EquipItemContent.children[0])
                }, t.prototype.ClickArrowLuckyCharmButton = function() {
                    this.ClickEquipItemByType(1, this.EquipItemContent.children[1])
                }, t.prototype.ClickArrowGemButton = function() {
                    this.ClickEquipItemByType(3, this.EquipItemContent.children[3])
                }, t.prototype.ClickSortUpButton = function() {
                    l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE, this._teamIndex, this._slot, -1)
                }, t.prototype.ClickSortDownButton = function() {
                    l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE, this._teamIndex, this._slot, 1)
                }, t.prototype.StarMove = function(e) {
                    e && e.target && e.target.getComponent(n) && (this._canMove = !0, l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE_START, this._slot))
                }, t.prototype.NodeMoving = function(e) {
                    this._canMove && l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVING, e)
                }, t.prototype.CancelMove = function(e) {
                    this._canMove = !1, e && e.target && e.target.getComponent(n) && l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE_CANCEL, e)
                }, t.prototype.EndMove = function(e) {
                    this._canMove = !1, e && e.target && e.target.getComponent(n) && l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE_END, e)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.EquipListPanelPaths = [h.PanelConfig.EquipmentChangePanel.Path, h.PanelConfig.SelectLuckyCharmHint.Path, h.PanelConfig.PowerCoreReplacePanel.Path, h.PanelConfig.GemSelectHint.Path, h.PanelConfig.PetChangePanel.Path], i([v(cc.Label)], t.prototype, "EquipLabel", void 0), i([v(cc.Label)], t.prototype, "OtherLabel", void 0), i([v(cc.Node)], t.prototype, "EquipItemContent", void 0), i([v(cc.Button)], t.prototype, "ArrowEquipButton", void 0), i([v(cc.Button)], t.prototype, "ArrowLuckyCharmButton", void 0), i([v(cc.Button)], t.prototype, "ArrowGemButton", void 0), i([v(cc.Button)], t.prototype, "SortUpButton", void 0), i([v(cc.Button)], t.prototype, "SortDownButton", void 0), n = i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/LuckyCharmInfoPanel": "LuckyCharmInfoPanel",
        "./ItemComponent": "ItemComponent"
    }],
    CommonEquipmentSetHeroComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "67f40/CAB5JMqtW6Q2YKajq", "CommonEquipmentSetHeroComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ItemComponent"),
            p = e("../../Auxiliary/GameRecord"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SlotLabel = null, t.HeroNode = null, t.AutoLabel = null, t.AutoToggle = null, t._isInit = !1, t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._isInit || (this.SlotLabel.string = "HolyRelic_HeroPosition".ToUILocale().Fmt(t + 1), this.AutoLabel.string = "elementArena_auto_select".ToUILocale(), this.AutoToggle.node.on("toggle", this.ClickAutoToggle, this), this._isInit = !0), this._teamIndex = e, this._slotIndex = t, this._heroModel = n, this.SetHeroNode(), this.SetAutoToggle()
                }, t.prototype.SetHeroNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._heroPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._heroPrefab = e, this._assets.push(e), n.label = 2;
                                case 2:
                                    return this._heroNode || (this._heroNode = cc.instantiate(this._heroPrefab), this._heroNode.parent = this.HeroNode), t = this._heroNode.getComponent(u.ItemComponent), this._heroModel ? t.Init(this._heroModel, u.ItemComponentType.HeroInfo) : (t.SetHeroSimpleState(), t.SetCustomIcon(d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180)), [2]
                            }
                        })
                    })
                }, t.prototype.SetAutoToggle = function() {
                    var e = p.default.GetItem(p.GameRecordDefine.FormationEquipAutoSet);
                    if (e) t = JSON.parse(e), this.AutoToggle.isChecked = t[this._teamIndex] && 1 == t[this._teamIndex][this._slotIndex];
                    else {
                        this.AutoToggle.isChecked = !0;
                        for (var t = [], n = 0; n < this._teamIndex + 1; n++) t.push([1, 1, 1, 1, 1]);
                        p.default.SetItem(p.GameRecordDefine.FormationEquipAutoSet, JSON.stringify(t))
                    }
                }, t.prototype.ClickAutoToggle = function(e) {
                    Number.parseInt(e.node.name);
                    var t = e.isChecked,
                        n = p.default.GetItem(p.GameRecordDefine.FormationEquipAutoSet);
                    if (n) {
                        if (!(o = JSON.parse(n))[this._teamIndex])
                            for (r = 0; r < this._teamIndex + 1; r++) o[r] || (i = [1, 1, 1, 1, 1], o.push(i));
                        o[this._teamIndex][this._slotIndex] = t ? 1 : 0, p.default.SetItem(p.GameRecordDefine.FormationEquipAutoSet, JSON.stringify(o))
                    } else {
                        for (var o = [], r = 0; r < this._teamIndex + 1; r++) {
                            var i = [1, 1, 1, 1, 1];
                            o.push(i)
                        }
                        o[this._teamIndex][this._slotIndex] = t ? 1 : 0, p.default.SetItem(p.GameRecordDefine.FormationEquipAutoSet, JSON.stringify(o))
                    }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Label)], t.prototype, "SlotLabel", void 0), i([y(cc.Node)], t.prototype, "HeroNode", void 0), i([y(cc.Label)], t.prototype, "AutoLabel", void 0), i([y(cc.Toggle)], t.prototype, "AutoToggle", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    CommonEquipmentSetPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3a1a4b5RmFCArnBfygJwzS/", "CommonEquipmentSetPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/CustomToggle"),
            y = e("../Components/CommonEquipmentSetHeroComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../Components/CommonEquipmentItemComponent"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.TeamToggles = null, t.HeroContent = null, t.EquipmentContent = null, t.MoveTips = null, t.EffectTips = null, t.ReturnButton = null, t.AutoEquipButton = null, t.AutoEquipLabel = null, t.AutoTakeOffButton = null, t.AutoTakeOffLabel = null, t.SaveButton = null, t.SaveLabel = null, t.EquipmentMoveNode = null, t._teamIndex = 0, t._toggleNodes = [], t._heroNodes = [], t._equipmentNodes = [], t._starMoveSlotIndex = -1, t._moveCurSLotIndex = -1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_COMMON_EQUIPMENT_SET_DATA, this.OnRefreshData, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE, this.MoveEquipmentNode, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE_START, this.StartMoveEquipmentNode, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVING, this.MovingEquipmentNode, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE_END, this.EndMoveEquipmentNode, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE_CANCEL, this.CancelMoveEquipmentNode, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_COMMON_EQUIPMENT_SET_DATA, this.OnRefreshData, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE, this.MoveEquipmentNode, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE_START, this.StartMoveEquipmentNode, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVING, this.MovingEquipmentNode, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE_END, this.EndMoveEquipmentNode, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_COMMON_EQUIPMENT_MOVE_CANCEL, this.CancelMoveEquipmentNode, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("Buttons/ToggleTop", cc.Prefab), n = this.LoadDynamicAsset("CommonPanel/SubItems/CommonEquipmentSetHeroComponent", cc.Prefab), o = this.LoadDynamicAsset("CommonPanel/SubItems/CommonEquipmentItemComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._togglePrefab = e[0], r._heroPrefab = e[1], r._equipPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "elementArena_hero_select".ToUILocale(), this.MoveTips.string = "HolyRelic_configTip2".ToUILocale(), this.EffectTips.string = "elementArena_tips".ToUILocale(), this.AutoEquipLabel.string = "HolyRelic_equOneBtn".ToUILocale(), this.SaveLabel.string = "save".ToUILocale(), this.AutoTakeOffLabel.string = "gem_auto_unload".ToUILocale(), this.RuleButton.node.on("click", this.ClickRuleButton, this), this.ReturnButton.node.on("click", this.ClickReturnButton, this), this.AutoEquipButton.node.on("click", this.ClickAutoEquipButton, this), this.AutoTakeOffButton.node.on("click", this.ClickAutoTakeOffButton, this), this.SaveButton.node.on("click", this.ClickSaveButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._formationHeroSids = t[0], this._type = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetToggles(), this.SetEquipmentData(), this.SetEquipmentNodes()), this.SetHeroNodes()
                }, t.prototype.SetToggles = function() {
                    var e = n.MaxFormationNum;
                    this._toggleNodes.forEach(function(e) {
                        e.active = !1
                    });
                    for (var t = 0; t < e; t++) {
                        if (!this._toggleNodes[t]) {
                            var o = cc.instantiate(this._togglePrefab);
                            o.parent = this.TeamToggles, o.name = t.toString(), o.on("toggle", this.ClickTeamToggle, this), this._toggleNodes[t] = o
                        }
                        this._toggleNodes[t].active = !0;
                        var r = this._toggleNodes[t].getComponent(f.default);
                        r.Init("HolyRelic_HeroPosition2".ToUILocale().Fmt(t + 1)), r.isChecked = t == this._teamIndex
                    }
                }, t.prototype.SetHeroNodes = function() {
                    this._heroNodes.forEach(function(e) {
                        e.active = !1
                    });
                    for (var e = 0; e < 5; e++) {
                        if (!this._heroNodes[e]) {
                            var t = cc.instantiate(this._heroPrefab);
                            t.parent = this.HeroContent, this._heroNodes[e] = t
                        }
                        this._heroNodes[e].active = !0;
                        var n = void 0;
                        if (this._formationHeroSids[this._teamIndex] && this._formationHeroSids[this._teamIndex][e] > 0) {
                            var o = this._formationHeroSids[this._teamIndex][e];
                            n = c.DataCenter.Instance.GetDataById(p.UserHero_Model, o)
                        } else n = null;
                        this._heroNodes[e].getComponent(y.default).Init(this._teamIndex, e, n)
                    }
                }, t.prototype.SetEquipmentData = function() {
                    if (!this._equipmentSetDataMap) {
                        this._equipmentSetDataMap = {};
                        for (var e = n.MaxFormationNum, t = 0; t < e; t++) {
                            var o = {},
                                r = c.DataCenter.Instance.GetDataById(p.ArtefactRelicEquip_Model, 100 * this._type + t + 1);
                            if (r)
                                for (var i = 0; i < 5; i++) {
                                    for (var a = {}, s = r["Equip" + (i + 1)], l = 0; l < s.length; l++) {
                                        for (var u = {}, d = 0; d < s[l].Items.length; d++) {
                                            var h = {};
                                            0 == l ? h.EquipType = 0 : 1 == l && (h.EquipType = 1), h.TeamIndex = t, h.Slot = i, h.Index = l, h.Id = s[l].Items[d], u[d] = h
                                        }
                                        a[l] = u
                                    }
                                    for (var f = {}, y = 0; y < 4; y++)(m = {
                                        EquipType: 99
                                    }).TeamIndex = t, m.Slot = i, m.Index = 99, m.Id = 0, f[y] = m;
                                    a[99] = f, o[i] = a
                                } else
                                    for (i = 0; i < 5; i++) {
                                        for (a = {}, l = 0; l < 6; l++) {
                                            u = {};
                                            var g = this.GetInitEquipData(l);
                                            for (d = 0; d < g.length; d++)(h = {
                                                EquipType: 0
                                            }).TeamIndex = t, h.Slot = i, h.Index = l, h.Id = g[d], u[d] = h;
                                            a[l] = u
                                        }
                                        for (f = {}, y = 0; y < 4; y++) {
                                            var m;
                                            (m = {
                                                EquipType: 99
                                            }).TeamIndex = t, m.Slot = i, m.Index = 99, m.Id = 0, f[y] = m
                                        }
                                        a[99] = f, o[i] = a
                                    }
                            this._equipmentSetDataMap[t] = o
                        }
                        c.DataCenter.Instance.SetTempData("EquipmentSetDatas", this._equipmentSetDataMap)
                    }
                }, t.prototype.GetInitEquipData = function(e) {
                    var t = [];
                    return t[d.ArtefactRelicEquipIndex.Equip] = [0, 0, 0, 0], t[d.ArtefactRelicEquipIndex.HolyEquip] = [0, 0, 0, 0], t[d.ArtefactRelicEquipIndex.LuckyCharm] = [0, 0], t[d.ArtefactRelicEquipIndex.PowerCore] = [0], t[d.ArtefactRelicEquipIndex.Gem] = [0, 0, 0, 0, 0, 0], t[d.ArtefactRelicEquipIndex.Pet] = [0], t[e]
                }, t.prototype.SetEquipmentNodes = function() {
                    var e = this;
                    this._equipmentNodes.forEach(function(e) {
                        e.active = !1
                    });
                    for (var t = 0; t < 5; t++) {
                        if (!this._equipmentNodes[t]) {
                            var n = cc.instantiate(this._equipPrefab);
                            n.parent = this.EquipmentContent, n.name = t.toString(), this._equipmentNodes[t] = n, this._equipmentNodeHeight || (this._equipmentNodeHeight = n.height)
                        }
                        this._equipmentNodes[t].active = !0, this._equipmentNodes[t].getComponent(_.default).Init(this._equipmentSetDataMap[this._teamIndex][t], t, this._teamIndex, this._equipmentSetDataMap)
                    }
                    if (!this._equipmentNodePos) {
                        var o = this.EquipmentContent.getComponent(cc.Layout);
                        o.updateLayout(), this._equipmentNodePos = [], this.EquipmentContent.children.forEach(function(t) {
                            e._equipmentNodePos.push(t.y)
                        }), this.scheduleOnce(function() {
                            o.enabled = !1
                        })
                    }
                }, t.prototype.ClickTeamToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    t != this._teamIndex && (this._teamIndex = t, this.SetEquipmentNodes())
                }, t.prototype.ClickAutoEquipButton = function() {
                    this.SetEquipmentAuto(), this.SetLuckyCharmAuto(), this.SetCoreAuto(), this.SetGemAuto(), this.SetPetAuto(), c.DataCenter.Instance.SetTempData("EquipmentSetDatas", this._equipmentSetDataMap), this.SetEquipmentNodes()
                }, t.prototype.ClickAutoTakeOffButton = function() {
                    var e = {};
                    for (var t in this._equipmentSetDataMap)
                        for (var n in this._equipmentSetDataMap[Number(t)])
                            if (this.CheckIsSelectAuto(Number(t), Number(n)))
                                for (var o in this._equipmentSetDataMap[Number(t)][Number(n)])
                                    for (var r in this._equipmentSetDataMap[Number(t)][Number(n)][Number(o)]) this._equipmentSetDataMap[Number(t)][Number(n)][Number(o)][r].Id = 0;
                            else e[t + "-" + n] = 1;
                    c.DataCenter.Instance.SetTempData("EquipmentSetDatas", this._equipmentSetDataMap), this.SetEquipmentNodes()
                }, t.prototype.GetRequestSubEquipsData = function(e, t) {
                    for (var n = [], o = 0; o <= d.ArtefactRelicEquipIndex.Pet; o++) {
                        var r = new p.IntArray;
                        for (var i in r.Items = [], this._equipmentSetDataMap[e][t][o]) r.Items.push(this._equipmentSetDataMap[e][t][o][i].Id);
                        n.push(r)
                    }
                    return n
                }, t.prototype.GetRequestEquipsData = function() {
                    for (var e = [], t = n.MaxFormationNum, o = 0; o < t; o++) {
                        var r = new p.ArtefactRelicEquip_Model;
                        r.Sid = 100 * this._type + o + 1;
                        for (var i = 0; i < 5; i++) r["Equip" + (i + 1)] = this.GetRequestSubEquipsData(o, i);
                        e.push(r)
                    }
                    return e
                }, t.prototype.GetRequestItemsData = function() {
                    var e = [];
                    for (var t in this._equipmentSetDataMap)
                        for (var n in this._equipmentSetDataMap[Number(t)])
                            for (var o in this._equipmentSetDataMap[Number(t)][Number(n)])
                                for (var r in this._equipmentSetDataMap[Number(t)][Number(n)][Number(o)]) {
                                    var i = this._equipmentSetDataMap[Number(t)][Number(n)][Number(o)][r];
                                    if (99 == i.EquipType && i.Id > 0) {
                                        var a = new p.IntArray,
                                            s = 100 * this._type + Number(t) + 1,
                                            l = Number(n) + 1,
                                            c = Number(r),
                                            u = i.Id;
                                        a.Items = [s, l, c, u], e.push(a)
                                    }
                                }
                    return e
                }, t.prototype.ClickSaveButton = function() {
                    var e = this,
                        t = new p.Req_Team2_ArtefactRelicEquip;
                    t.Equips = this.GetRequestEquipsData(), t.Items = this.GetRequestItemsData(), c.RpcComponent.Instance.Call(t, function() {
                        h.UIUtlity.ShowFloatingHint("elementArena_save_success".ToUILocale()), e._equipmentSetDataMap = null, e.SetEquipmentData()
                    })
                }, t.prototype.GetEquipmentSetDataSid = function(e, t, n, o) {
                    return this._equipmentSetDataMap[e] && this._equipmentSetDataMap[e][t] && this._equipmentSetDataMap[e][t][n] && this._equipmentSetDataMap[e][t][n][o].Id > 0 ? this._equipmentSetDataMap[e][t][n][o].Id : 0
                }, t.prototype.OnRefreshData = function(e) {
                    switch (e.Type) {
                        case 1:
                            this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.CurEquipType][e.CurIndex].Id = 0;
                            break;
                        case 2:
                            99 == e.TargetEquipType ? (this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][99][e.CurIndex].EquipType = 99, this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][99][e.CurIndex].Id = e.TargetSid) : (this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.TargetEquipType][e.CurIndex].EquipType = e.TargetEquipType, this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.TargetEquipType][e.CurIndex].Id = e.TargetSid);
                            break;
                        case 3:
                            if (99 == e.CurEquipType && 99 == e.TargetEquipType)
                                if (this.GetEquipmentSetDataSid(e.TargetTeamIndex, e.TargetSlot, e.TargetEquipType, e.TargetIndex) > 0) {
                                    var t = this._equipmentSetDataMap[e.TargetTeamIndex][e.TargetSlot][e.TargetEquipType][e.TargetIndex].Id;
                                    this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.CurEquipType][e.CurIndex].Id = t, this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.CurEquipType][e.CurIndex].EquipType = e.TargetEquipType, this._equipmentSetDataMap[e.TargetTeamIndex][e.TargetSlot][e.TargetEquipType][e.TargetIndex].Id = 0
                                } else this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.CurEquipType][e.CurIndex].Id = e.TargetSid, this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.CurEquipType][e.CurIndex].EquipType = e.TargetEquipType;
                            else this.GetEquipmentSetDataSid(e.TargetTeamIndex, e.TargetSlot, e.TargetEquipType, e.TargetIndex) > 0 ? (t = this._equipmentSetDataMap[e.TargetTeamIndex][e.TargetSlot][e.TargetEquipType][e.TargetIndex].Id, this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.CurEquipType][e.CurIndex].Id = 0, this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.TargetEquipType][e.CurIndex].Id = t, this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.TargetEquipType][e.CurIndex].EquipType = e.TargetEquipType, this._equipmentSetDataMap[e.TargetTeamIndex][e.TargetSlot][e.TargetEquipType][e.TargetIndex].Id = 0) : (this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.CurEquipType][e.CurIndex].Id = 0, this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.TargetEquipType][e.CurIndex].Id = e.TargetSid, this._equipmentSetDataMap[e.CurTeamIndex][e.CurSlot][e.TargetEquipType][e.CurIndex].EquipType = e.TargetEquipType)
                    }
                    c.DataCenter.Instance.SetTempData("EquipmentSetDatas", this._equipmentSetDataMap), this.SetEquipmentNodes()
                }, t.prototype.CheckIsInFormation = function(e, t) {
                    for (var n in this._equipmentSetDataMap)
                        for (var o in this._equipmentSetDataMap[n])
                            for (var r in this._equipmentSetDataMap[n][o][t])
                                if (this._equipmentSetDataMap[n][o][t][r].Id == e) return !0;
                    return !1
                }, t.prototype.GetEquipmenpSelectSid = function(e, t, n, o) {
                    var r = this._equipmentSetDataMap[e][t];
                    switch (n) {
                        case 0:
                            var i = r[d.ArtefactRelicEquipIndex.HolyEquip][o].Id;
                            if (i > 0) return i;
                            var a = r[d.ArtefactRelicEquipIndex.Equip][o].Id;
                            if (a > 0) return a;
                            var s = r[99][o].Id;
                            if (s > 0) return s;
                            break;
                        default:
                            var l = r[n + 1][o].Id;
                            if (l > 0) return l
                    }
                    return 0
                }, t.prototype.CheckIsSelectAuto = function(e, t) {
                    var n = I.default.GetItem(I.GameRecordDefine.FormationEquipAutoSet);
                    if (n) {
                        var o = JSON.parse(n);
                        if (o[e] || (o[e] = [1, 1, 1, 1, 1], I.default.SetItem(I.GameRecordDefine.FormationEquipAutoSet, JSON.stringify(o))), 0 == o[e][t]) return !1
                    }
                    return !0
                }, t.prototype.SetEquipmentAuto = function() {
                    var e = this,
                        t = {},
                        o = c.DataCenter.Instance.GetDataList(p.HolyEquipment_Model);
                    for (var r in o.forEach(function(n) {
                            if (!e.CheckIsInFormation(n.Sid, d.ArtefactRelicEquipIndex.HolyEquip)) {
                                var o = c.ConfigDataComponent.Instance.GetConfigById(u.HolyEquipment_Config, n.ItemId).Type - 1;
                                t[o] ? t[o].push(n) : t[o] = [n]
                            }
                        }), t) m.default.Instance.SortData(d.SortDataType.HolyEquip, t[r], [{
                        Items: [d.SortType.Star, -1]
                    }, {
                        Items: [d.SortType.Stage, -1]
                    }, {
                        Items: [d.SortType.Level, -1]
                    }, {
                        Items: [d.SortType.Sid, -1]
                    }]);
                    var i = {},
                        a = c.DataCenter.Instance.GetDataList(p.Equipment_Model);
                    for (var r in a.forEach(function(t) {
                            if (!e.CheckIsInFormation(t.Sid, d.ArtefactRelicEquipIndex.Equip)) {
                                var n = c.ConfigDataComponent.Instance.GetConfigById(u.ItemEquipment_Config, t.ItemId).Type - 1;
                                i[n] ? i[n].push(t) : i[n] = [t]
                            }
                        }), i) m.default.Instance.SortData(d.SortDataType.Equip, i[r], [{
                        Items: [d.SortType.ConfigQuality, -1]
                    }, {
                        Items: [d.SortType.ConfigStar, -1]
                    }, {
                        Items: [d.SortType.Xp, -1]
                    }, {
                        Items: [d.SortType.Sid, -1]
                    }]);
                    var s = {},
                        l = c.DataCenter.Instance.GetDataList(p.UserItem_Model);
                    for (var r in l.forEach(function(e) {
                            var t = c.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, e.ItemId);
                            if (3 == t.Type && 7 != t.Quality && e.Count > 0) {
                                var n = c.ConfigDataComponent.Instance.GetConfigById(u.ItemEquipment_Config, e.ItemId).Type - 1;
                                s[n] ? s[n].push(e) : s[n] = [e]
                            }
                        }), s) m.default.Instance.SortData(d.SortDataType.ItemEquip, s[r], [{
                        Items: [d.SortType.ConfigQuality, -1]
                    }, {
                        Items: [d.SortType.ConfigStar, -1]
                    }, {
                        Items: [d.SortType.ItemId, -1]
                    }]);
                    for (var h = {}, f = n.MaxFormationNum, y = 0; y < f; y++)
                        for (var g = 0; g < 5; g++)
                            if (this.CheckIsSelectAuto(y, g))
                                for (var I = 0; I < 4; I++)
                                    if (0 == this.GetEquipmenpSelectSid(y, g, 0, I))
                                        if (t[I] && t[I].length > 0) {
                                            var _ = t[I].shift();
                                            this._equipmentSetDataMap[y][g][d.ArtefactRelicEquipIndex.HolyEquip][I].Id = _.Sid, this._equipmentSetDataMap[y][g][d.ArtefactRelicEquipIndex.HolyEquip][I].EquipType = d.ArtefactRelicEquipIndex.HolyEquip
                                        } else if (i[I] && i[I].length > 0) _ = i[I].shift(), this._equipmentSetDataMap[y][g][d.ArtefactRelicEquipIndex.Equip][I].Id = _.Sid, this._equipmentSetDataMap[y][g][d.ArtefactRelicEquipIndex.Equip][I].EquipType = d.ArtefactRelicEquipIndex.Equip;
                    else if (s[I] && s[I].length > 0)
                        for (var C = 0; C < s[I].length; C++) {
                            var v = s[I][C],
                                b = h[v.ItemId] || 0;
                            v.Count > b && (h[v.ItemId] ? h[v.ItemId] += 1 : h[v.ItemId] = 1, this._equipmentSetDataMap[y][g][99][I].Id = v.ItemId, this._equipmentSetDataMap[y][g][99][I].EquipType = 99)
                        }
                }, t.prototype.SetLuckyCharmAuto = function() {
                    var e = this,
                        t = [];
                    c.DataCenter.Instance.GetDataList(p.LuckyCharmEquip_Model).forEach(function(n) {
                        e.CheckIsInFormation(n.Sid, d.ArtefactRelicEquipIndex.LuckyCharm) || t.push(n)
                    }), m.default.Instance.SortData(d.SortDataType.LuckyCharm, t, [{
                        Items: [d.SortType.OriginalLuckyCharm, -1]
                    }, {
                        Items: [d.SortType.ConfigQuality, -1]
                    }, {
                        Items: [d.SortType.Sid, -1]
                    }]);
                    for (var o = n.MaxFormationNum, r = 0; r < o; r++)
                        for (var i = 0; i < 5; i++)
                            if (this.CheckIsSelectAuto(r, i))
                                for (var a = 0; a < 2; a++)
                                    if (0 == this.GetEquipmenpSelectSid(r, i, 1, a) && t.length > 0) {
                                        var s = t.shift();
                                        this._equipmentSetDataMap[r][i][d.ArtefactRelicEquipIndex.LuckyCharm][a].Id = s.Sid, this._equipmentSetDataMap[r][i][d.ArtefactRelicEquipIndex.LuckyCharm][a].EquipType = d.ArtefactRelicEquipIndex.LuckyCharm
                                    }
                }, t.prototype.SetCoreAuto = function() {
                    var e = this,
                        t = [];
                    c.DataCenter.Instance.GetDataList(p.PowerCore_Model).forEach(function(n) {
                        e.CheckIsInFormation(n.Sid, d.ArtefactRelicEquipIndex.PowerCore) || t.push(n)
                    }), t.sort(function(e, t) {
                        var n = c.ConfigDataComponent.Instance.GetConfigById(u.PowerCore_Config, e.ItemId),
                            o = c.ConfigDataComponent.Instance.GetConfigById(u.PowerCore_Config, t.ItemId);
                        return n.Star == o.Star ? e.Level == t.Level ? t.Sid - e.Sid : t.Level - e.Level : o.Star - n.Star
                    });
                    for (var o = n.MaxFormationNum, r = 0; r < o; r++)
                        for (var i = 0; i < 5; i++)
                            if (this.CheckIsSelectAuto(r, i) && 0 == this.GetEquipmenpSelectSid(r, i, 2, 0) && t.length > 0) {
                                var a = t.shift();
                                this._equipmentSetDataMap[r][i][d.ArtefactRelicEquipIndex.PowerCore][0].Id = a.Sid, this._equipmentSetDataMap[r][i][d.ArtefactRelicEquipIndex.PowerCore][0].EquipType = d.ArtefactRelicEquipIndex.PowerCore
                            }
                }, t.prototype.SetGemAuto = function() {
                    var e = this,
                        t = {},
                        o = c.DataCenter.Instance.GetDataList(p.GemEquip_Model);
                    for (var r in o.forEach(function(n) {
                            if (!e.CheckIsInFormation(n.Sid, d.ArtefactRelicEquipIndex.Gem)) {
                                var o = c.ConfigDataComponent.Instance.GetConfigById(u.GemEquip_Config, n.ItemId).Type - 1;
                                t[o] ? t[o].push(n) : t[o] = [n]
                            }
                        }), t) t[r].sort(function(e, t) {
                        var n = c.ConfigDataComponent.Instance.GetConfigById(u.GemEquip_Config, e.ItemId),
                            o = c.ConfigDataComponent.Instance.GetConfigById(u.GemEquip_Config, t.ItemId);
                        return n.Quality == o.Quality ? t.Sid - e.Sid : o.Quality - n.Quality
                    });
                    for (var i = n.MaxFormationNum, a = 0; a < i; a++)
                        for (var s = 0; s < 5; s++)
                            if (this.CheckIsSelectAuto(a, s))
                                for (var l = 0; l < 6; l++)
                                    if (0 == this.GetEquipmenpSelectSid(a, s, 3, l)) {
                                        var h = Math.floor(l / 2);
                                        if (t[h] && t[h].length > 0) {
                                            var f = t[h].shift();
                                            this._equipmentSetDataMap[a][s][d.ArtefactRelicEquipIndex.Gem][l].Id = f.Sid, this._equipmentSetDataMap[a][s][d.ArtefactRelicEquipIndex.Gem][l].EquipType = d.ArtefactRelicEquipIndex.Gem
                                        }
                                    }
                }, t.prototype.SetPetAuto = function() {
                    var e = this,
                        t = [];
                    c.DataCenter.Instance.GetDataList(p.UserPet_Model).forEach(function(n) {
                        e.CheckIsInFormation(n.Sid, d.ArtefactRelicEquipIndex.Pet) || t.push(n)
                    }), t.sort(function(e, t) {
                        var n = c.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, e.Sid),
                            o = c.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, t.Sid);
                        return e.Star == t.Star ? e.Level == t.Level ? n.Quality == o.Quality ? t.Sid - e.Sid : o.Quality - n.Quality : t.Level - e.Level : t.Star - e.Star
                    });
                    for (var o = n.MaxFormationNum, r = 0; r < o; r++)
                        for (var i = 0; i < 5; i++)
                            if (this.CheckIsSelectAuto(r, i) && 0 == this.GetEquipmenpSelectSid(r, i, 4, 0) && t.length > 0) {
                                var a = t.shift();
                                this._equipmentSetDataMap[r][i][d.ArtefactRelicEquipIndex.Pet][0].Id = a.Sid, this._equipmentSetDataMap[r][i][d.ArtefactRelicEquipIndex.Pet][0].EquipType = d.ArtefactRelicEquipIndex.Pet
                            }
                }, t.prototype.MoveEquipmentNode = function(e, t, n) {
                    1 == n && 4 == t || -1 == n && 0 == t || e == this._teamIndex && (this.TweenToPosition(this._equipmentNodes[t], this._equipmentNodePos[t + n]), this.TweenToPosition(this._equipmentNodes[t + n], this._equipmentNodePos[t], t, n))
                }, t.prototype.TweenToPosition = function(e, t, n, o) {
                    var r = this;
                    e && null != t && (cc.Tween.stopAllByTarget(e), cc.tween(e).to(.1, {
                        y: t
                    }).call(function() {
                        if (o) {
                            var e = r._equipmentSetDataMap[r._teamIndex][n + o];
                            r._equipmentSetDataMap[r._teamIndex][n + o] = r._equipmentSetDataMap[r._teamIndex][n], r._equipmentSetDataMap[r._teamIndex][n] = e;
                            var t = r._equipmentNodes[n + o];
                            r._equipmentNodes[n + o] = r._equipmentNodes[n], r._equipmentNodes[n] = t, r.SetEquipmentNodes()
                        }
                    }).start())
                }, t.prototype.GetCurMoveingSlot = function(e) {
                    for (var t = 0; t < this._equipmentNodePos.length; t++) {
                        var n = this._equipmentNodePos[t];
                        if (t < this._equipmentNodePos.length - 1 && e <= n && e >= this._equipmentNodePos[t + 1]) return e >= (n + this._equipmentNodePos[t + 1]) / 2 ? t : t + 1
                    }
                    return e > this._equipmentNodePos[0] ? 0 : e < this._equipmentNodePos[this._equipmentNodePos.length - 1] ? this._equipmentNodePos.length - 1 : this._starMoveSlotIndex
                }, t.prototype.StartMoveEquipmentNode = function(e) {
                    var t = this;
                    this._starMoveSlotIndex = e, this._moveCurSLotIndex = e, this.EquipmentMoveNode.children.length > 0 && this.EquipmentMoveNode.children.forEach(function(e) {
                        e.parent = t.EquipmentContent
                    }), this._equipmentNodes[e].parent = this.EquipmentMoveNode
                }, t.prototype.MovingEquipmentNode = function(e) {
                    var t = e.getLocation(),
                        n = e.getDelta(),
                        o = t.add(n),
                        r = this.EquipmentContent.convertToNodeSpaceAR(o);
                    if (!(r.y > this._equipmentNodePos[0] || r.y < this._equipmentNodePos[this._equipmentNodePos.length - 1])) {
                        e.currentTarget.setPosition(0, r.y);
                        var i = this.GetCurMoveingSlot(r.y);
                        if (i != this._moveCurSLotIndex) {
                            this.TweenToPosition(this._equipmentNodes[i], this._equipmentNodePos[this._moveCurSLotIndex]);
                            var a = this._equipmentNodes[i];
                            this._equipmentNodes[i] = this._equipmentNodes[this._moveCurSLotIndex], this._equipmentNodes[this._moveCurSLotIndex] = a;
                            var s = this._equipmentSetDataMap[this._teamIndex][i];
                            this._equipmentSetDataMap[this._teamIndex][i] = this._equipmentSetDataMap[this._teamIndex][this._moveCurSLotIndex], this._equipmentSetDataMap[this._teamIndex][this._moveCurSLotIndex] = s, this._moveCurSLotIndex = i
                        }
                    }
                }, t.prototype.CancelMoveEquipmentNode = function(e) {
                    e.currentTarget.parent = this.EquipmentContent, this._moveCurSLotIndex != this._starMoveSlotIndex ? (e.currentTarget.setPosition(0, this._equipmentNodePos[this._moveCurSLotIndex]), this._starMoveSlotIndex = -1, this._moveCurSLotIndex = -1, this.SetEquipmentNodes()) : (e.currentTarget.setPosition(0, this._equipmentNodePos[this._moveCurSLotIndex]), this._starMoveSlotIndex = -1, this._moveCurSLotIndex = -1)
                }, t.prototype.EndMoveEquipmentNode = function(e) {
                    var t = e.getLocation(),
                        n = this.EquipmentContent.convertToNodeSpaceAR(t),
                        o = this.GetCurMoveingSlot(n.y);
                    e.currentTarget.parent = this.EquipmentContent, o != this._starMoveSlotIndex ? (e.currentTarget.setPosition(0, this._equipmentNodePos[o]), this._starMoveSlotIndex = -1, this._moveCurSLotIndex = -1, this.SetEquipmentNodes()) : (e.currentTarget.setPosition(0, this._equipmentNodePos[o]), this._starMoveSlotIndex = -1, this._moveCurSLotIndex = -1)
                }, t.prototype.ClickRuleButton = function() {
                    var e = {
                        name: "equipmentSet_rule_main".ToUILocale(),
                        titles: ["equipmentSet_rule_main".ToUILocale()],
                        contents: ["equipmentSet_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.ClickReturnButton = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.MaxFormationNum = 3, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Button)], t.prototype, "RuleButton", void 0), i([b(cc.Node)], t.prototype, "TeamToggles", void 0), i([b(cc.Node)], t.prototype, "HeroContent", void 0), i([b(cc.Node)], t.prototype, "EquipmentContent", void 0), i([b(cc.Label)], t.prototype, "MoveTips", void 0), i([b(cc.Label)], t.prototype, "EffectTips", void 0), i([b(cc.Button)], t.prototype, "ReturnButton", void 0), i([b(cc.Button)], t.prototype, "AutoEquipButton", void 0), i([b(cc.Label)], t.prototype, "AutoEquipLabel", void 0), i([b(cc.Button)], t.prototype, "AutoTakeOffButton", void 0), i([b(cc.Label)], t.prototype, "AutoTakeOffLabel", void 0), i([b(cc.Button)], t.prototype, "SaveButton", void 0), i([b(cc.Label)], t.prototype, "SaveLabel", void 0), i([b(cc.Node)], t.prototype, "EquipmentMoveNode", void 0), n = i([v], t)
            }(l.BaseUIFullScreenPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CommonEquipmentItemComponent": "CommonEquipmentItemComponent",
        "../Components/CommonEquipmentSetHeroComponent": "CommonEquipmentSetHeroComponent",
        "../Components/CustomToggle": "CustomToggle"
    }],
    CommonEquipmentSetTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9082bzScSZKA7SIXx/n13Go", "CommonEquipmentSetTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/TipsLocationComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/ItemComponent"),
            m = e("../Components/CommonEquipmentItemComponent"),
            I = e("../Auxiliary/UIUtlity");
        (function(e) {
            e[e.Equip = 0] = "Equip", e[e.LuckyCharm = 1] = "LuckyCharm", e[e.Core = 2] = "Core", e[e.Gem = 3] = "Gem", e[e.Pet = 4] = "Pet"
        })(l || (l = {}));
        var _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.MaskNode = null, t.ItemContent = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent(), this.node.getComponent(h.default).RepositionPanel(this._data.ClickNode), this.node.opacity = 255
                }, t.prototype.SetUIContent = function() {
                    var e = this;
                    this._data.Sids.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.ItemContent, o.y = -20, o.name = n.toString(), e._itemNodes[n] = o
                        }
                        var r = e._itemNodes[n].getComponent(g.ItemComponent);
                        switch (e._data.Type) {
                            case l.Equip:
                                if (t > 0) {
                                    var i = u.DataCenter.Instance.GetDataById(p.Equipment_Model, t);
                                    r.Init({
                                        ItemId: i.ItemId
                                    }, g.ItemComponentType.ItemWithStar)
                                } else if (e._data.HolyEquipSids[n] > 0) {
                                    var a = u.DataCenter.Instance.GetDataById(p.HolyEquipment_Model, e._data.HolyEquipSids[n]);
                                    r.Init({
                                        ItemId: a.ItemId,
                                        StarLevel: a.Star,
                                        Sid: a.Sid
                                    }, g.ItemComponentType.ItemWithStar)
                                } else e._data.EquipItemIds[n] > 0 ? r.Init({
                                    ItemId: e._data.EquipItemIds[n]
                                }, g.ItemComponentType.ItemWithStar) : e.SetEquipSimple(l.Equip, r, n);
                                break;
                            case l.LuckyCharm:
                                t > 0 ? (i = u.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, t)).ItemId >= d.CommonItemId.PrimordialLuckyCharm ? r.Init(i, g.ItemComponentType.LuckyCharm) : r.Init({
                                    ItemId: i.ItemId
                                }, g.ItemComponentType.ItemCommon) : e.SetEquipSimple(l.LuckyCharm, r);
                                break;
                            case l.Gem:
                                if (t > 0) {
                                    var s = u.DataCenter.Instance.GetDataById(p.GemEquip_Model, t);
                                    r.Init(s, g.ItemComponentType.Gem)
                                } else e.SetEquipSimple(l.Gem, r)
                        }
                    })
                }, t.prototype.SetEquipSimple = function(e, t, n) {
                    switch (t.SetItemSimpleState(), e) {
                        case l.Equip:
                            t.SetCustomIcon(I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("equip_" + (n + 1)));
                            break;
                        case l.LuckyCharm:
                            t.SetCustomIcon(I.UIUtlity.COMMON_ATLAS5.getSpriteFrame("equip_luckyCharm"));
                            break;
                        case l.Gem:
                            t.SetCustomIcon(I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("gem_shadow"))
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.ItemContent.children.indexOf(t)) {
                        var n = Number.parseInt(t.name);
                        switch (this._data.Type) {
                            case l.Equip:
                                var o = this._data.Sids[n] || 0,
                                    r = this._data.HolyEquipSids[n] || 0,
                                    i = this._data.EquipItemIds[n] || 0,
                                    a = void 0,
                                    s = !1;
                                0 == o && 0 == r && 0 == i ? a = -(n + 1) : o > 0 ? a = o : r > 0 ? (a = r, s = !0) : i > 0 && (a = i), this._data.Index = n, c.UIManager.Instance.ShowUIPanel(m.default.EquipListPanelPaths[this._data.Type], null, a, s, this._data);
                                break;
                            case l.LuckyCharm:
                                var u = this._data.Sids[n] || 0;
                                this._data.Index = n, c.UIManager.Instance.ShowUIPanel(m.default.EquipListPanelPaths[this._data.Type], n, null, u, this._data);
                                break;
                            case l.Gem:
                                u = this._data.Sids[n] || 0, this._data.Index = n, c.UIManager.Instance.ShowUIPanel(m.default.EquipListPanelPaths[this._data.Type], u, null, this._data)
                        }
                        this.Close()
                    }
                }, i([v(cc.Node)], t.prototype, "MaskNode", void 0), i([v(cc.Node)], t.prototype, "ItemContent", void 0), i([C], t)
            }(c.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CommonEquipmentItemComponent": "CommonEquipmentItemComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent"
    }],
    CommonFailSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e43adm1LFhHHb0aEzcJOdR2", "CommonFailSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./SettlementBaseComponent"),
            s = e("./CustomRichText"),
            l = e("../../../ShareConsts/EnumType"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/ConfigData/ConfigDataComponent"),
            d = e("../../../EZFramework/Auxiliary/EZLog"),
            h = e("../../Components/DataCenter"),
            f = e("../../../EZFramework/UIFrame/UIManager"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("./TowerLayerItem"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../Panel/MainUIPanel"),
            C = e("../../Components/ConfigData/ConfigCacheComponent"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../Panel/HeroInfoPanel"),
            S = e("../../Components/Components"),
            w = e("../../Auxiliary/GameRecord"),
            P = e("../../../Util/TimeUtil"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LineText = null, t.BtnReturn = null, t.BtnSure = null, t.BtnHero = null, t.LabelBtnHero = null, t.BtnEquip = null, t.LabelBtnEquip = null, t.BtnUpUpStar = null, t.LabelBtnUpStar = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t.BattleName = null, t._towerMode = 0, t._isInit = !1, t._activityId = 0, t
                }
                return r(t, e), t.prototype.SetUI = function(t) {
                    switch (e.prototype.SetUI.call(this, t), this._mapId = t.Reports[0].MapId, this._mapType = this.GetMapType(), this._activityId = t.SettleParams && t.SettleParams.length > 0 ? t.SettleParams[0] : 0, this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this._mapType) {
                        case l.MapType.MainLine:
                            this.LoadChapterConfig();
                            break;
                        case l.MapType.TestTower:
                        case l.MapType.TowerHeart:
                        case l.MapType.TowerPower:
                        case l.MapType.TowerTech:
                        case l.MapType.TowerBreak:
                        case l.MapType.TowerFight:
                            this.GetTowerType()
                    }
                    this.SetUpGradeBtnState(), this.ConfigBattleName(), this.SetBtnState()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnHero.node.on("click", this.OnBtnHeroClick, this), this.BtnEquip.node.on("click", this.OnBtnEquipClick, this), this.BtnUpUpStar.node.on("click", this.OnBtnUpStarClick, this)
                }, t.prototype.SetStaticLocalText = function() {
                    this.LineText.string = "fail_upgrade".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale(), this.LabelBtnHero.string = "heroUpGrade".ToUILocale(), this.LabelBtnEquip.string = "EquipStrength".ToUILocale(), this.LabelBtnUpStar.string = "heroUpStar".ToUILocale()
                }, t.prototype.ConfigBattleName = function() {
                    var e, t, n;
                    switch (this._mapType) {
                        case l.MapType.MainLine:
                            n = this.GetLevelName(), this.BattleName.Init(n);
                            break;
                        case l.MapType.DailyInstanceCoin:
                        case l.MapType.DailyInstanceXp:
                        case l.MapType.DailyInstanceHero:
                        case l.MapType.DailyInstanceLuckyCharm:
                        case l.MapType.DailyInstanceAngel:
                        case l.MapType.DailyInstanceGem:
                            e = ("dailyInstance_type_" + this.GetDailyInstanceType()).ToUILocale(), t = this.GetInstanceLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.TestTower:
                            e = "climbTower_rule_maintittle_0".ToUILocale(), t = this.GetTowerLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.TowerHeart:
                            e = "climbTower_tittle_heart".ToUILocale(), t = this.GetTowerLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.TowerPower:
                            e = "climbTower_tittle_power".ToUILocale(), t = this.GetTowerLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.TowerTech:
                            e = "climbTower_tittle_tech".ToUILocale(), t = this.GetTowerLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.TowerBreak:
                            e = "climbTower_tittle_break".ToUILocale(), t = this.GetTowerLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.TowerFight:
                            e = "climbTower_tittle_fight".ToUILocale(), t = this.GetTowerLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.ActivityElementHeart:
                            e = "elementTrial_type_1".ToUILocale(), t = this.GetElementTrialLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.ActivityElementPower:
                            e = "elementTrial_type_2".ToUILocale(), t = this.GetElementTrialLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.ActivityElementTech:
                            e = "elementTrial_type_3".ToUILocale(), t = this.GetElementTrialLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.ActivityElementBreak:
                            e = "elementTrial_type_4".ToUILocale(), t = this.GetElementTrialLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.ActivityElementFight:
                            e = "elementTrial_type_5".ToUILocale(), t = this.GetElementTrialLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.HeroDungeon:
                        case l.MapType.HeroDungeon2:
                        case l.MapType.HeroDungeon3:
                        case l.MapType.HeroDungeon4:
                        case l.MapType.HeroDungeon5:
                        case l.MapType.HeroDungeon6:
                        case l.MapType.HeroDungeon7:
                        case l.MapType.HeroDungeon8:
                        case l.MapType.HeroDungeon9:
                            e = S.DataCenter.Instance.ActivityConfigs[this._activityId].Common.Title, t = this.GetHeroDungeonLayer(), n = "win_layer_type".ToUILocale().Fmt(e, t), this.BattleName.Init(n);
                            break;
                        case l.MapType.ActivityHeroTry:
                        case l.MapType.ActivityHeroTry2:
                        case l.MapType.ActivityHeroTry3:
                        case l.MapType.ActivityHeroTry4:
                        case l.MapType.ActivityHeroTry5:
                        case l.MapType.ActivityHeroTry6:
                        case l.MapType.ActivityHeroTry7:
                        case l.MapType.ActivityHeroTry8:
                        case l.MapType.ActivityHeroTry9:
                        case l.MapType.ActivityHeroTry10:
                            this.BattleName.Init(this._mapId.ToMapName());
                            break;
                        case l.MapType.SaintsWar1:
                        case l.MapType.SaintsWar2:
                        case l.MapType.SaintsWar3:
                            this.BattleName.Init(this._mapId.ToMapName())
                    }
                }, t.prototype.GetMapType = function() {
                    return p.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, this._mapId).Type
                }, t.prototype.GetLevelName = function() {
                    var e = C.ConfigCacheComponent.Instance.GetChapterIdByMapId(this._mapId),
                        t = C.ConfigCacheComponent.Instance.GetAreaIdByChapterId(e);
                    return "<outline width = 3 color = #221611>" + p.ConfigDataComponent.Instance.GetLocale("MapWorld_name_" + t) + " <color = #ffe685>" + e + "-" + C.ConfigCacheComponent.Instance.GetLevelIndexByMapId(this._mapId) + "</>"
                }, t.prototype.GetDailyInstanceType = function() {
                    var e = p.ConfigDataComponent.Instance.GetConfigById(u.MapDailyInstance_Config, this._mapId);
                    return Math.floor(e.Id % 1e4 / 100)
                }, t.prototype.GetInstanceLayer = function() {
                    return this._mapId - 100 * Math.floor(this._mapId / 100)
                }, t.prototype.GetTowerType = function() {
                    var e = Math.floor(this._mapId % 2e5 / 1e4);
                    this._towerType = 0 == e ? m.TestTowerType.Normal : e;
                    for (var t = 1e4 * Math.floor(this._mapId / 1e4), n = S.ConfigDataComponent.Instance.GetArrayConfig(u.TestTowerType_Config), o = 0; o < n.length; o++)
                        if (n[o].MapIdPrefix == t) {
                            this._towerMode = Math.floor(n[o].Id / 100);
                            break
                        }
                }, t.prototype.GetTowerLayer = function() {
                    return this._mapId - 1e4 * Math.floor(this._mapId / 1e4)
                }, t.prototype.GetElementTrialLayer = function() {
                    var e = this,
                        t = S.DataCenter.Instance.ActivityConfigs[this._activityId].Maps.findIndex(function(t) {
                            return t.MapId == e._mapId
                        });
                    return t > -1 ? t + 1 : 0
                }, t.prototype.GetHeroDungeonLayer = function() {
                    var e = this,
                        t = S.DataCenter.Instance.ActivityConfigs[this._activityId].Maps.findIndex(function(t) {
                            return t.MapId == e._mapId
                        });
                    return t > -1 ? t + 1 : 0
                }, t.prototype.LoadChapterConfig = function() {
                    var e = this._mapId;
                    d.EZLog.Log("\u5f53\u524d\u5173\u5361id---\x3e" + e);
                    for (var t = p.ConfigDataComponent.Instance.GetArrayConfig(u.AdventureChapter_Config), n = t.length, o = 0; o < n; o++) {
                        var r = t[o].MapIds[0],
                            i = t[o].MapIds[t[o].MapIds.length - 1];
                        if (e >= r && e <= i) {
                            this._currChapterConfig = t[o];
                            break
                        }
                    }
                    h.DataCenter.Instance.GetDataById(c.Adventure_Model, 1);
                    var a = h.DataCenter.Instance.GetIntData(l.UserDataKey.MainLineProgress);
                    this._currAdventureConfig = p.ConfigDataComponent.Instance.GetConfigById(u.MapAdventure_Config, a)
                }, t.prototype.SetUpGradeBtnState = function() {
                    this.IsModuleUnLock(l.GameModuleType.HeroLevel) || (this.BtnHero.node.active = !1), this.IsModuleUnLock(l.GameModuleType.HeroEquipment) || (this.BtnEquip.node.active = !1), this.IsModuleUnLock(l.GameModuleType.HeroStar) || (this.BtnUpUpStar.node.active = !1)
                }, t.prototype.IsModuleUnLock = function(e) {
                    return h.DataCenter.Instance.GetDataById(c.GameModule_Model, e).IsUnlocked
                }, t.prototype.OnBtnSureClick = function() {
                    switch (f.UIManager.Instance.BackUIPanel(), this._mapType) {
                        case l.MapType.MainLine:
                        case l.MapType.TestTower:
                            var e = p.ConfigDataComponent.Instance.GetConfigById(u.GlobalSetting_Config, "FirstPayPanelPopCount");
                            if (e) {
                                var t = w.default.GetItem(w.GameRecordDefine.FirstPayPanelPopCount),
                                    n = 0;
                                if (t) {
                                    var o = JSON.parse(t);
                                    o[1] && o[1] > P.TimeUtil.Get0ClockTs(S.RpcComponent.Instance.ServerTime) && (n = o[0])
                                }
                                if (n < e.Value) {
                                    var r = v.default.CheckActivityFirstPayIsExist();
                                    r && (n += 1, w.default.SetItem(w.GameRecordDefine.FirstPayPanelPopCount, JSON.stringify([n, S.RpcComponent.Instance.ServerTime])), y.UIManager.Instance.ShowUIPanel(g.PanelConfig.ActivityFirstPayPanel.Path, r))
                                }
                            }
                    }
                }, t.prototype.SetBtnState = function() {
                    var e;
                    switch (this._mapType) {
                        case l.MapType.MainLine:
                            e = f.UIManager.Instance.GetUIPanel(g.PanelConfig.IdleBattleMainPanel.Path);
                            break;
                        case l.MapType.DailyInstanceCoin:
                        case l.MapType.DailyInstanceXp:
                        case l.MapType.DailyInstanceHero:
                        case l.MapType.DailyInstanceLuckyCharm:
                        case l.MapType.DailyInstanceAngel:
                        case l.MapType.DailyInstanceGem:
                            e = f.UIManager.Instance.GetUIPanel(g.PanelConfig.DailyInstancePanel.Path);
                            break;
                        case l.MapType.TestTower:
                        case l.MapType.TowerHeart:
                        case l.MapType.TowerPower:
                        case l.MapType.TowerTech:
                        case l.MapType.TowerBreak:
                        case l.MapType.TowerFight:
                            e = f.UIManager.Instance.GetUIPanel(g.PanelConfig.ClimbTowerPanel.Path)
                    }
                    switch (this.BtnReturn.node.active = null == e, this._mapType) {
                        case l.MapType.ActivityHeroTry:
                        case l.MapType.ActivityHeroTry2:
                        case l.MapType.ActivityHeroTry3:
                        case l.MapType.ActivityHeroTry4:
                        case l.MapType.ActivityHeroTry5:
                        case l.MapType.ActivityHeroTry6:
                        case l.MapType.ActivityHeroTry7:
                        case l.MapType.ActivityHeroTry8:
                        case l.MapType.ActivityHeroTry9:
                        case l.MapType.ActivityHeroTry10:
                            this.BtnReturn.node.active = !1
                    }
                }, t.prototype.OnBtnHeroClick = function() {
                    f.UIManager.Instance.BackUIPanel(), v.default.Instance.ShowHeroInfoPanel(b.Tab.Attr)
                }, t.prototype.OnBtnEquipClick = function() {
                    f.UIManager.Instance.BackUIPanel(), v.default.Instance.ShowHeroInfoPanel(b.Tab.Equip)
                }, t.prototype.OnBtnUpStarClick = function() {
                    f.UIManager.Instance.BackUIPanel(), v.default.Instance.ShowHeroInfoPanel(b.Tab.UpStar)
                }, t.prototype.OnBtnReturnClick = function() {
                    switch (f.UIManager.Instance.BackUIPanel(), this._mapType) {
                        case l.MapType.MainLine:
                            f.UIManager.Instance.BackUIPanel(), y.UIManager.Instance.CloseStackPanel(), y.Game.EventDispatcher.Emit(I.EventKeys.EVENT_SWITCH_MAINPANEL_TOGGLE, _.DockTab.Battle);
                            break;
                        case l.MapType.DailyInstanceCoin:
                        case l.MapType.DailyInstanceXp:
                        case l.MapType.DailyInstanceHero:
                        case l.MapType.DailyInstanceLuckyCharm:
                        case l.MapType.DailyInstanceAngel:
                        case l.MapType.DailyInstanceGem:
                            f.UIManager.Instance.BackUIPanel(), y.UIManager.Instance.ShowUIPanel(g.PanelConfig.DailyInstancePanel.Path);
                            break;
                        case l.MapType.TestTower:
                        case l.MapType.TowerHeart:
                        case l.MapType.TowerPower:
                        case l.MapType.TowerTech:
                        case l.MapType.TowerBreak:
                        case l.MapType.TowerFight:
                            f.UIManager.Instance.BackUIPanel(), f.UIManager.Instance.ShowUIPanel(g.PanelConfig.ClimbTowerPanel.Path, this._towerType, this._towerMode);
                            break;
                        case l.MapType.ActivityElementHeart:
                        case l.MapType.ActivityElementPower:
                        case l.MapType.ActivityElementTech:
                        case l.MapType.ActivityElementBreak:
                        case l.MapType.ActivityElementFight:
                            if (f.UIManager.Instance.BackUIPanel(), !this._activityId) return;
                            var e = h.DataCenter.Instance.ActivityConfigs[this._activityId],
                                t = 0;
                            e && (t = e.CustomPart.Element < 4 ? 0 : 1);
                            var n = new c.Req_Activity_GetRank;
                            n.ActivityId = this._activityId, S.RpcComponent.Instance.Call(n, function(e) {
                                f.UIManager.Instance.ShowUIPanel(g.PanelConfig.ElementTrialPanel.Path, this._activityId, e, t)
                            }.bind(this));
                            break;
                        case l.MapType.HeroDungeon:
                        case l.MapType.HeroDungeon2:
                        case l.MapType.HeroDungeon3:
                        case l.MapType.HeroDungeon4:
                        case l.MapType.HeroDungeon5:
                        case l.MapType.HeroDungeon6:
                        case l.MapType.HeroDungeon7:
                        case l.MapType.HeroDungeon8:
                        case l.MapType.HeroDungeon9:
                            if (!this._activityId) return;
                            var o = new c.Req_Activity_GetRank;
                            o.ActivityId = this._activityId, S.RpcComponent.Instance.Call(o, function(e) {
                                f.UIManager.Instance.ShowUIPanel(g.PanelConfig.HeroDungeonPanel.Path, this._activityId, e)
                            }.bind(this))
                    }
                }, i([R(cc.Label)], t.prototype, "LineText", void 0), i([R(cc.Button)], t.prototype, "BtnReturn", void 0), i([R(cc.Button)], t.prototype, "BtnSure", void 0), i([R(cc.Button)], t.prototype, "BtnHero", void 0), i([R(cc.Label)], t.prototype, "LabelBtnHero", void 0), i([R(cc.Button)], t.prototype, "BtnEquip", void 0), i([R(cc.Label)], t.prototype, "LabelBtnEquip", void 0), i([R(cc.Button)], t.prototype, "BtnUpUpStar", void 0), i([R(cc.Label)], t.prototype, "LabelBtnUpStar", void 0), i([R(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([R(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([R(s.CustomRichText)], t.prototype, "BattleName", void 0), i([T], t)
            }(a.default);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Panel/HeroInfoPanel": "HeroInfoPanel",
        "../Panel/MainUIPanel": "MainUIPanel",
        "./CustomRichText": "CustomRichText",
        "./SettlementBaseComponent": "SettlementBaseComponent",
        "./TowerLayerItem": "TowerLayerItem"
    }],
    CommonGiftPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "635d3dw4M5KUJscyEwVAS1t", "CommonGiftPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Channel/ChannelManager"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../Consts/Consts"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.PurchaseLimit = null, t.ItemContainer = null, t.GetLabel = null, t.GetValue = null, t.BuyButton = null, t.BuyButtonLabel = null, t.BuyButtonRichText = null, t.BuyButtonBg = null, t.ShowOutTag = null, t.ShowOutLabel = null, t.ShowOutMask = null, t.DiscountMask = null, t.DiscountLabel = null, t.RedDot = null, t.PurchaseLimitBgNode = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.BuyButton.node.on("click", this.OnBuyButtonClick, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.BuyButton.node.off("click", this.OnBuyButtonClick, this), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    var r = this;
                    this._giftPackConfig = t, this._activityId = n, this._isPreview = o;
                    var i = 0,
                        l = a.DataCenter.Instance.GetDataById(s.UserActivity_Model, n);
                    n > 0 ? (this.Name.string = t.Name, l && l.Packs && l.Packs[t.Id] && l.Packs[t.Id].Items && l.Packs[t.Id].Items[0] && (i = l.Packs[t.Id].Items[0])) : (this.Name.string = t.Id.ToGiftPackName(), i = h.default.Instance.GetGiftBuyCount(t.Id));
                    var c, p = t.LimitCount - i;
                    this.PurchaseLimitBgNode ? this.PurchaseLimitBgNode.active = 0 != t.LimitType : this.PurchaseLimit.node.parent.active = 0 != t.LimitType, c = p > 0 ? "<color = #33f8e>" + p : "<color = #33f8e>0", this.PurchaseLimit.string = ("mall_buyLimit_" + t.LimitType).ToUILocale().Fmt(c, t.LimitCount + "</c>"), this.BuyButton.node.active = !0, t.LimitType && p <= 0 ? (this.ShowOutTag.active = !0, this.BuyButton.node.active = !1, this.ShowOutLabel.string = "bought".ToUILocale()) : this.ShowOutTag.active = !1, this.ShowOutMask.active = this.ShowOutTag.active, "" == t.PayId && t.Money > 0 ? (this.BuyButtonLabel.node.active = !1, this.BuyButtonRichText.node.active = !0, this.BuyButtonRichText.string = "<outline width=3 color=#684C1B><img src='" + f.CommonItemId.Diamond + "'/>" + t.Money + "</outline>") : (this.BuyButtonRichText.node.active = !1, this.BuyButtonLabel.node.active = !0, this.BuyButtonLabel.string = t.Money > 0 ? u.default.Instance.CurrencySymbol + u.default.Instance.ExchangeMoney(t.Money) : "shop_buyFree".ToUILocale()), this.GetValue.node.parent.active = t.VipPoint > 0, this.GetLabel.node.active = t.VipPoint > 0, this.GetLabel.string = "task_get_score_tag".ToUILocale(), this.GetValue.string = "x" + t.VipPoint, this.RedDot.active = (null == t.Money || 0 == t.Money) && !o, null != t.Discount && t.Discount > 0 ? 0 != t.LimitType && p <= 0 ? this.DiscountMask.active = !1 : (this.DiscountMask.active = !0, this.DiscountLabel.string = t.Discount + "%" + "mall_giftPack_superValue".ToUILocale()) : this.DiscountMask.active = !1, this._isPreview && this.SetPreviewButtonState(), this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), t.Items.forEach(function(t, n) {
                        if (!r._itemNodes[n]) {
                            var o = cc.instantiate(e);
                            o.parent = r.ItemContainer, r._itemNodes[n] = o
                        }
                        r._itemNodes[n].active = !0, r._itemNodes[n].getComponent(d.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        })
                    })
                }, t.prototype.SetPreviewButtonState = function() {
                    this.BuyButtonBg.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_gray"), this.BuyButtonLabel.node.getComponent(cc.LabelOutline).color = cc.color(41, 41, 41)
                }, t.prototype.OnBuyButtonClick = function() {
                    if (!this._isPreview)
                        if (null == this._giftPackConfig.Money || 0 == this._giftPackConfig.Money) {
                            var e = new s.Req_Pay_ByDiamond;
                            e.Id = this._giftPackConfig.Id, e.ActivityId = this._activityId, a.RpcComponent.Instance.Call(e, function(e) {
                                p.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            })
                        } else u.default.Instance.Pay(this._giftPackConfig.Id, this._activityId)
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, i([m(cc.Label)], t.prototype, "Name", void 0), i([m(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([m(cc.Label)], t.prototype, "GetLabel", void 0), i([m(cc.Label)], t.prototype, "GetValue", void 0), i([m(cc.Button)], t.prototype, "BuyButton", void 0), i([m(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([m(cc.RichText)], t.prototype, "BuyButtonRichText", void 0), i([m(cc.Sprite)], t.prototype, "BuyButtonBg", void 0), i([m(cc.Node)], t.prototype, "ShowOutTag", void 0), i([m(cc.Label)], t.prototype, "ShowOutLabel", void 0), i([m(cc.Node)], t.prototype, "ShowOutMask", void 0), i([m(cc.Node)], t.prototype, "DiscountMask", void 0), i([m(cc.Label)], t.prototype, "DiscountLabel", void 0), i([m(cc.Node)], t.prototype, "RedDot", void 0), i([m(cc.Node)], t.prototype, "PurchaseLimitBgNode", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CommonGiftPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "97dc9u2AXtF2pv2SO4dtFe5", "CommonGiftPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("./CommonTaskTipComponent"),
            y = e("./CommonGiftPackComponent"),
            g = e("../Components/CustomLayout"),
            m = e("../../../Consts/Consts"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.TimeRemainderLabel = null, t.ScrollView = null, t.Content = null, t.BannerImage = null, t.CommonTaskTipComponent = null, t.DiscountBagButton = null, t.DiscountBagLabel = null, t.DiscountBagTipLabel = null, t._sortGiftPackData = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CommonPanel/SubItems/CommonGiftPackComponent", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._giftPackItemPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this);
                    var t = this.ScrollView.node.getBoundingBoxToWorld();
                    this._scrollViewRect = new cc.Rect(t.x, t.y, this.ScrollView.node.width, this.ScrollView.node.height), this.ScrollView.node.on("scrolling", this.OnScrolling, this), this.DiscountBagButton.node.on("click", this.OnDiscountBagButtonClick, this), this.Content.Init(this._giftPackItemPrefab)
                }, t.prototype.OnScrolling = function() {
                    l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_CHECK_BUNDINGBOX, this._scrollViewRect)
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this, t), this._data = t[0], this._data.ActivityId > 0) switch (u.DataCenter.Instance.ActivityConfigs[this._data.ActivityId].Common.Type) {
                        case m.ActivityType.AssaultOperation:
                            u.DataCenter.Instance.GetSpecialRedDot(m.SpecialRedDotType.SlgSignUp) || (this._needPreview = !0)
                    }
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), [4, this.SetBanner()];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.Title.string = this._data.Title, t || (this._data.CanDiscount ? (this.DiscountBagButton.node.active = !0, this.DiscountBagLabel.string = "DiscountTicketBag_Title".ToUILocale(), this.DiscountBagTipLabel.string = "DiscountTicketBag_Bubble_Tip".ToUILocale()) : this.DiscountBagButton.node.active = !1), this.SetCommonTaskTipComponent(), this.SetTime(), this.SetGiftPackMap(), this.SetGiftPackData(), this.SetGiftPackItems(), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_CHECK_BUNDINGBOX, this._scrollViewRect)
                }, t.prototype.SetGiftPackMap = function() {
                    if (!this._isReDisplay) {
                        var e;
                        e = this._data.ActivityId > 0 ? this._data.ActivityGiftPackData : this._data.ModuleGiftPackData, this._giftPackMap = {}, this._giftPackConfig = {};
                        for (var t = 0; t < e.length; t++) this._giftPackConfig[e[t].Id] = e[t], e[t].UnlockCondition && (this._giftPackMap[e[t].UnlockCondition] = e[t].Id)
                    }
                }, t.prototype.SetGiftPackData = function() {
                    var e = this;
                    if (this._sortGiftPackData = [], this._data.ActivityId > 0) {
                        this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._data.ActivityId);
                        var t = [],
                            n = [];
                        this._data.ActivityGiftPackData.forEach(function(o) {
                            if (e.CheckGiftPackIsAllBuy(o, e._data.ActivityId)) e._giftPackMap[o.Id] || t.push(o);
                            else if (o.UnlockCondition) {
                                var r = e.GetGiftPackById(o.UnlockCondition);
                                e.CheckGiftPackIsAllBuy(r, e._data.ActivityId) && n.push(o)
                            } else n.push(o)
                        }), t.sort(function(e, t) {
                            return e.SortId - t.SortId
                        }), n.sort(function(e, t) {
                            return e.SortId - t.SortId
                        }), this._sortGiftPackData = n.concat(t)
                    } else {
                        var o = [],
                            r = [];
                        this._data.ModuleGiftPackData.forEach(function(t) {
                            if (e.CheckGiftPackIsAllBuy(t)) e._giftPackMap[t.Id] || o.push(t);
                            else if (t.UnlockCondition) {
                                var n = e.GetGiftPackById(t.UnlockCondition);
                                e.CheckGiftPackIsAllBuy(n) && r.push(t)
                            } else r.push(t)
                        }), this._sortGiftPackData = r.concat(o)
                    }
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.Content && e.forEach(function(e, t) {
                        var o = n._sortGiftPackData[t];
                        e.getComponent(y.default).Init(n._itemPrefab, o, n._data.ActivityId, n._needPreview)
                    })
                }, t.prototype.SetGiftPackItems = function() {
                    this.Content.RenderLayOut(this._sortGiftPackData.length)
                }, t.prototype.GetGiftPackById = function(e) {
                    return this._giftPackConfig[e]
                }, t.prototype.CheckGiftPackIsAllBuy = function(e, t) {
                    var n = !1,
                        o = 0;
                    return t ? (this._model && this._model.Packs && this._model.Packs[e.Id] && this._model.Packs[e.Id].Items && this._model.Packs[e.Id].Items[0] && (o = this._model.Packs[e.Id].Items[0]), n = o >= e.LimitCount && e.LimitType > 0) : n = (o = h.default.Instance.GetGiftBuyCount(e.Id)) >= e.LimitCount && e.LimitType > 0, n
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._data.LoadBannerWay > 0 ? (e = this, [4, l.AssetsManager.Instance.LoadAsset(this._data.BannerPath, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    return e._banner = n.sent(), [3, 4];
                                case 2:
                                    return t = this, [4, h.default.LoadActivityTexture(this._data.BannerPath)];
                                case 3:
                                    t._banner = n.sent(), n.label = 4;
                                case 4:
                                    return this.isValid ? (this.BannerImage.spriteFrame = this._banner, [2]) : (l.AssetsManager.Instance.UnloadAsset(this._banner), [2])
                            }
                        })
                    })
                }, t.prototype.SetCommonTaskTipComponent = function() {
                    this.CommonTaskTipComponent.node.active = !1, this._data.IsShowCommonTaskTipComponentring && (this.CommonTaskTipComponent.node.active = !0, this.CommonTaskTipComponent.InitData())
                }, t.prototype.SetTime = function() {
                    this._data.Deadline && !this._isReDisplay && (this.CountDown(), this.schedule(this.CountDown, 1))
                }, t.prototype.CountDown = function() {
                    var e = this._data.Deadline - u.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.TimeRemainderLabel.string = "openServer_countDown".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OnDiscountBagButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.DiscountTicketBagPanel.Path)
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._banner), this.unschedule(this.CountDown)
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.RichText)], t.prototype, "TimeRemainderLabel", void 0), i([C(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([C(g.default)], t.prototype, "Content", void 0), i([C(cc.Sprite)], t.prototype, "BannerImage", void 0), i([C(f.default)], t.prototype, "CommonTaskTipComponent", void 0), i([C(cc.Button)], t.prototype, "DiscountBagButton", void 0), i([C(cc.Label)], t.prototype, "DiscountBagLabel", void 0), i([C(cc.Label)], t.prototype, "DiscountBagTipLabel", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "./CommonGiftPackComponent": "CommonGiftPackComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent"
    }],
    CommonGiftTaskPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fa101WM0pdEUrZo2oonBPJI", "CommonGiftTaskPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/ItemComponent"),
            u = e("../../Channel/ChannelManager"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Tittle = null, t.TipsTop = null, t.TipsBottom = null, t.GradTotalScroll = null, t.BuyNowScroll = null, t.GradTotalItemGrid = null, t.BuyNowItemGrid = null, t.BuyButton = null, t.BuyButtonLabel = null, t.AttainLabel = null, t.AttainValue = null, t.DiscountLabel = null, t.DiscountValue = null, t.COLUMN_MAX = 5, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.GradTotalItemGrid.node.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t), -1 != this.BuyNowItemGrid.node.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.InitData = function(e) {
                    this._data = e[0], this.Tittle.string = this._data.Title, this.TipsTop.string = this._data.TotalDesc, this.TipsBottom.string = this._data.NowDesc, this.BuyButtonLabel.string = u.default.Instance.CurrencySymbol + u.default.Instance.ExchangeMoney(this._data.Gift.Money), this.AttainValue.string = "x" + this._data.Gift.VipPoint, f.default.Instance.SetDisCount(this._data.Gift.Discount, this.DiscountValue, this.DiscountLabel)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || this.SetRewards()
                }, t.prototype.SetRewards = function() {
                    var e = this;
                    this._data.TotalRewards.forEach(function(t) {
                        var n = cc.instantiate(e._itemPrefab);
                        n.parent = e.GradTotalItemGrid.node, n.getComponent(c.ItemComponent).Init(t)
                    }), this.ResizeLayout(this.GradTotalScroll, this.GradTotalItemGrid, this._data.TotalRewards.length), this._data.NowRewards.forEach(function(t) {
                        var n = cc.instantiate(e._itemPrefab);
                        n.parent = e.BuyNowItemGrid.node, n.getComponent(c.ItemComponent).Init(t)
                    }), this.ResizeLayout(this.BuyNowScroll, this.BuyNowItemGrid, this._data.NowRewards.length)
                }, t.prototype.ResizeLayout = function(e, t, n) {
                    if (n < this.COLUMN_MAX) e.enabled = !1, t.node.anchorX = .5, t.resizeMode = cc.Layout.ResizeMode.CONTAINER;
                    else {
                        e.enabled = !0, t.node.anchorX = 0, t.resizeMode = cc.Layout.ResizeMode.NONE;
                        var o = t.spacingX,
                            r = t.node.scaleX;
                        t.node.width = p.UIUtlity.ITEM_COMPONENT_WIDTH * r * n + o * (n - 1), e.scheduleOnce(function() {
                            this.scrollToOffset(cc.v2(0, 0))
                        }, .1)
                    }
                    t.updateLayout()
                }, t.prototype.OnBuyButtonClick = function() {
                    u.default.Instance.Pay(this._data.Gift.Id, this._data.ActivityId), l.UIManager.Instance.QuitPanelStack(this)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([m(cc.Label)], t.prototype, "Tittle", void 0), i([m(cc.RichText)], t.prototype, "TipsTop", void 0), i([m(cc.RichText)], t.prototype, "TipsBottom", void 0), i([m(cc.ScrollView)], t.prototype, "GradTotalScroll", void 0), i([m(cc.ScrollView)], t.prototype, "BuyNowScroll", void 0), i([m(cc.Layout)], t.prototype, "GradTotalItemGrid", void 0), i([m(cc.Layout)], t.prototype, "BuyNowItemGrid", void 0), i([m(cc.Button)], t.prototype, "BuyButton", void 0), i([m(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([m(cc.Label)], t.prototype, "AttainLabel", void 0), i([m(cc.Label)], t.prototype, "AttainValue", void 0), i([m(cc.Label)], t.prototype, "DiscountLabel", void 0), i([m(cc.Label)], t.prototype, "DiscountValue", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CommonGuideTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0e8c3SvG9JCY4GKtvx+A+0n", "CommonGuideTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Components/Components"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Bg = null, t.GoButton = null, t.GoLabel = null, t.ReturnButton = null, t.SkipToggle = null, t.SkipLabel = null, t.LeftTimeNode = null, t.LeftTimeRichText = null, t._datas = [], t._selectIndex = 0, t._assets = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GoLabel.string = "task_goto".ToUILocale(), this.SkipLabel.string = "wildout_skip".ToUILocale(), this.GoButton.node.on("click", this.OnGoButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.SkipToggle.node.on("toggle", this.OnClickSkip, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._datas = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetLeftTime(), this.SetBanner(), this.SetSkip()
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = p.default.Instance.GetImagePath(this._datas[this._selectIndex].SpriteName), [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._assets.push(t), this.Bg.spriteFrame = t, this._datas[this._selectIndex].GoButtonOffset ? (this.GoButton.node.x += this._datas[this._selectIndex].GoButtonOffset.x, this.GoButton.node.y += this._datas[this._selectIndex].GoButtonOffset.y) : (this.GoButton.node.x = 0, this.GoButton.node.y = -679), [2]) : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetLeftTime = function() {
                    this._datas[this._selectIndex].Deadline ? (this.LeftTimeNode.active = !0, this.SetDeadline(), this.schedule(this.SetDeadline, 1)) : this.LeftTimeNode.active = !1, this._datas[this._selectIndex].LeftTimeNodeOffset ? (this.LeftTimeNode.x += this._datas[this._selectIndex].LeftTimeNodeOffset.x, this.LeftTimeNode.y += this._datas[this._selectIndex].LeftTimeNodeOffset.y) : (this.LeftTimeNode.x = 0, this.LeftTimeNode.y = -587)
                }, t.prototype.SetDeadline = function() {
                    var e = this._datas[this._selectIndex].Deadline - d.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this.unschedule(this.SetDeadline), void(this.LeftTimeNode.active = !1);
                    this.LeftTimeRichText.string = "openServer_frameCountDown".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetSkip = function() {
                    var e;
                    switch (this._datas[this._selectIndex].Recordkey) {
                        case "bossWar":
                            e = p.default.GetFunctionSkipState(u.FunctionSkipKey.WorldBoss);
                            break;
                        case "continuousWar":
                            e = p.default.GetFunctionSkipState(u.FunctionSkipKey.CrossZoneContinueWar);
                            break;
                        case "crossServerChampionShip":
                            e = p.default.GetFunctionSkipState(u.FunctionSkipKey.ChampionShipGuidTip)
                    }
                    this.SkipToggle.isChecked = e
                }, t.prototype.OnGoButtonClick = function() {
                    this._datas[this._selectIndex].GoButtonCallback ? this._datas[this._selectIndex].GoButtonCallback() : this.Close()
                }, t.prototype.OnReturnButtonClick = function() {
                    this._datas[this._selectIndex].Deadline && this.unschedule(this.SetDeadline), this._selectIndex < this._datas.length - 1 ? (this._selectIndex++, this.SetLeftTime(), this.SetBanner(), this.SetSkip()) : this.Close()
                }, t.prototype.OnClickSkip = function(e) {
                    switch (this._datas[this._selectIndex].Recordkey) {
                        case "bossWar":
                            p.default.SetFunctionSkipState(u.FunctionSkipKey.WorldBoss, e.isChecked);
                            break;
                        case "continuousWar":
                            p.default.SetFunctionSkipState(u.FunctionSkipKey.CrossZoneContinueWar, e.isChecked);
                            break;
                        case "crossServerChampionShip":
                            p.default.SetFunctionSkipState(u.FunctionSkipKey.ChampionShipGuidTip, e.isChecked)
                    }
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._assets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Sprite)], t.prototype, "Bg", void 0), i([y(cc.Button)], t.prototype, "GoButton", void 0), i([y(cc.Label)], t.prototype, "GoLabel", void 0), i([y(cc.Button)], t.prototype, "ReturnButton", void 0), i([y(cc.Toggle)], t.prototype, "SkipToggle", void 0), i([y(cc.Label)], t.prototype, "SkipLabel", void 0), i([y(cc.Node)], t.prototype, "LeftTimeNode", void 0), i([y(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    CommonHeroAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d3e32ALUX1IG5QPm5yMaWDI", "CommonHeroAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/ItemComponent"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Components/RpcComponent"),
            g = e("../../Components/DataCenter"),
            m = e("./CommonPvpPlayerInfoPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroNode = null, t.AttrIcons = [], t.AttrValues = [], t.AttrNode = [], t._itemPrefab = null, t._itemNode = null, t._heroInfo = null, t._attrIds = [d.HeroAttributeType.PvpDamageAddon, d.HeroAttributeType.PvpDamageReduce], t._playerUid = 0, t._isShowAngel = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.InitData = function(e) {
                    this._heroInfo = e.HeroInfo, this._playerUid = e.PlayerUid, this._personalityStarLevel = e.PersonalityStarLevel, this._notShwoParams = e.NotShwoParams, this._data = e, this._isShowAngel = this._data.Type == m.CommonPvpPlayerInfo.AngelPve || this._data.Type == m.CommonPvpPlayerInfo.AngelPvp, this.SetHeroNode(), this.SetAttrNodes()
                }, t.prototype.SetHeroNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    return this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.setParent(this.HeroNode)), t = this._itemNode.getComponent(u.ItemComponent), this._isShowAngel ? (t.Init(this._data.AngelModel, u.ItemComponentType.Angel), this._itemNode.name = this._data.AngelModel.AngelId.toString()) : this._heroInfo && this._heroInfo.Sid > 0 ? (this._itemNode.name = this._heroInfo.Sid.toString(), t.Init(this._heroInfo, u.ItemComponentType.HeroInfo), this._personalityStarLevel >= 0 ? t.SetPersonalityParam(!1, this._personalityStarLevel) : this._playerUid == g.DataCenter.Instance.Uid ? t.SetPersonalityParam(!0) : ((n = new c.Req_Player_GetHeroDetailInfo).Uid = this._playerUid, n.HeroSid = this._heroInfo.Sid, y.RpcComponent.Instance.Call(n, function(e) {
                                        t.SetPersonalityParam(!1, e.Info.HeroInfo.PersonalityStar)
                                    }))) : (this._itemNode.name = "0", t.SetHeroSimpleState(), t.SetCustomIcon(f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180)), this._itemNode.getComponent(cc.BlockInputEvents).enabled = !1, [2]
                            }
                        })
                    })
                }, t.prototype.SetAttrNodes = function() {
                    var e = this;
                    this.AttrNode.forEach(function(t) {
                        t.active = !e._isShowAngel
                    }), this._isShowAngel || this._attrIds.forEach(function(t, n) {
                        var o = h.default.GetHeroAttributeIcon(t);
                        if (e.AttrIcons[n].spriteFrame = o, e._heroInfo && e._heroInfo.Sid > 0) {
                            var r = e._heroInfo.Attrs[t];
                            r |= 0;
                            var i = h.default.GetHeroAttribute(t, r);
                            e.AttrValues[n].string = "+" + i.Value
                        } else e.AttrValues[n].string = "-"
                    })
                }, t.prototype.OnItemClick = function() {
                    if (this._playerUid > 0) {
                        var e = Number.parseInt(this._itemNode.name);
                        if (!e) return;
                        this._isShowAngel ? this._playerUid == g.DataCenter.Instance.Uid ? l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AngelDetailPanel.Path, e, this._data.FormationId) : l.UIManager.Instance.ShowUIPanel(p.PanelConfig.AngelDetailPanel.Path, null, this._data.FormationId, this._playerUid, this._data.Zone) : l.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroDetailPanel.Path, e, this._playerUid, null, this._notShwoParams)
                    } else f.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale())
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, i([C(cc.Node)], t.prototype, "HeroNode", void 0), i([C(cc.Sprite)], t.prototype, "AttrIcons", void 0), i([C(cc.Label)], t.prototype, "AttrValues", void 0), i([C(cc.Node)], t.prototype, "AttrNode", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonPvpPlayerInfoPanel": "CommonPvpPlayerInfoPanel"
    }],
    CommonImgBtnComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6b4cfwhSktGIKO9JfAFvgSB", "CommonImgBtnComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.btnLabel = null, t._clickFun = function() {}, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    var e = this;
                    this.node.on("click", function(t) {
                        e._clickFun(t)
                    }, this)
                }, t.prototype.Set = function(e, t) {
                    void 0 === t && (t = ""), this.btnLabel && (this.btnLabel.string = t), this._clickFun = e
                }, i([l(cc.Label)], t.prototype, "btnLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CommonItemChangeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "42e0509e+hALonP91y2865w", "CommonItemChangeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../Components/ItemComponent"),
            p = e("./CommonItemInfoPanel"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("./ArtifactHeroSelectPanel"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.ItemName = null, t.Desc = null, t.ChangeBtn = null, t.ChangeBtnLabel = null, t.WearBtn = null, t.WearBtnLabel = null, t.GetWayBtn = null, t.GetWayBtnLabel = null, t._isInitial = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    switch (this._isInitial || (this.InitUI(), this._isInitial = !0), this._itemPrefab = t, this._selectHero = n, this._type = o, o) {
                        case p.CommonItemInfoType.Artifact:
                            this._artifactConfig = e
                    }
                    this.SetItem(), this.SetDescAndButtons()
                }, t.prototype.InitUI = function() {
                    this.ChangeBtn.node.on("click", this.OnChange, this), this.WearBtn.node.on("click", this.OnWear, this), this.GetWayBtn.node.on("click", this.OnGetWay, this), this.ChangeBtnLabel.string = "equip_replace".ToUILocale(), this.WearBtnLabel.string = "equip_wear".ToUILocale(), this.GetWayBtnLabel.string = "artifact_getway".ToUILocale()
                }, t.prototype.SetItem = function() {
                    if (!this._component) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._component = e.getComponent(u.ItemComponent)
                    }
                    switch (this._type) {
                        case p.CommonItemInfoType.Artifact:
                            this._artifactModel = c.DataCenter.Instance.GetDataById(s.Artefact_Model, this._artifactConfig.Id), this._component.node.name = this._artifactConfig.Id.toString(), this.ItemName.string = this._artifactConfig.Id.ToArtifactName();
                            var t = h.default.GetArtifactItemId(this._artifactConfig.Id);
                            if (this._artifactModel) {
                                var n = c.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._artifactModel.Star);
                                this._component.Init({
                                    ItemId: t,
                                    StarLevel: n.Star
                                }, u.ItemComponentType.ItemWithStar), this._component.CustomItemBgAndBorder(n.Quality), f.UIUtlity.SetGray(this._component.node, !1, !0)
                            } else n = c.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._artifactConfig.Star), this._component.Init({
                                ItemId: t,
                                StarLevel: n.Star
                            }, u.ItemComponentType.ItemWithStar), this._component.CustomItemBgAndBorder(n.Quality), f.UIUtlity.SetGray(this._component.node, !0, !0)
                    }
                }, t.prototype.SetDescAndButtons = function() {
                    switch (this.Desc.node.active = !1, this.ChangeBtn.node.active = !1, this.WearBtn.node.active = !1, this.GetWayBtn.node.active = !1, this._type) {
                        case p.CommonItemInfoType.Artifact:
                            if (this.GetWayBtnLabel.string = "task_goto".ToUILocale(), this.ChangeBtnLabel.string = "artifact_change".ToUILocale(), this.WearBtnLabel.string = "artifact_wear".ToUILocale(), this._artifactModel) {
                                this.Desc.node.active = !0;
                                for (var e = 0, t = 0, n = c.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._artifactModel.Star), o = 0; o < this._artifactConfig.Slots.length; o++) {
                                    var r = this._artifactConfig.Slots[o];
                                    n.Star >= r && e++
                                }
                                this._artifactModel.Owners.forEach(function(e) {
                                    e > 0 && t++
                                }), this.Desc.string = "artifact_wear_count".ToUILocale().Fmt(t, e), this.ChangeBtn.node.active = t >= e, this.WearBtn.node.active = t < e
                            } else this.GetWayBtn.node.active = !0
                    }
                }, t.prototype.OnClickItem = function(e, t) {
                    if (t == this._component.node) switch (this._type) {
                        case p.CommonItemInfoType.Artifact:
                            var n = {};
                            n.Type = p.CommonItemInfoType.Artifact, n.IsSelf = !0, n.IsShowButtons = !1, n.ItemId = this._artifactConfig.Id, a.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonItemInfoPanel.Path, n)
                    }
                }, t.prototype.OnChange = function() {
                    switch (this._type) {
                        case p.CommonItemInfoType.Artifact:
                            a.UIManager.Instance.ShowUIPanel(g.PanelConfig.ArtifactHeroChangePanel.Path, this._selectHero.Sid, this._artifactConfig.Id)
                    }
                }, t.prototype.OnWear = function() {
                    switch (this._type) {
                        case p.CommonItemInfoType.Artifact:
                            if (this._artifactModel) {
                                for (var e = void 0, t = c.ConfigDataComponent.Instance.GetConfigById(l.ArtefactStar_Config, this._artifactModel.Star), n = 0; n < this._artifactConfig.Slots.length; n++) {
                                    var o = this._artifactConfig.Slots[n];
                                    if (t.Star >= o && !this._artifactModel.Owners[n]) {
                                        e = n;
                                        break
                                    }
                                }
                                if (e >= 0) {
                                    var r = c.DataCenter.Instance.GetIntData(y.UserDataKey.Power),
                                        i = new s.Req_Team2_ArtefactPutOn;
                                    i.Sid = this._artifactConfig.Id, i.Slot = e, i.Owner = this._selectHero.Sid, c.RpcComponent.Instance.Call(i, function() {
                                        f.UIUtlity.ShowFloatingHint("artifact_wear_success".ToUILocale()), a.Game.EventDispatcher.Emit(d.EventKeys.EVENT_CLOSE_ITEM_CHANGE_PANEL);
                                        var e = c.DataCenter.Instance.GetIntData(y.UserDataKey.Power);
                                        a.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattlePowerChangePanel.Path, r, e)
                                    })
                                }
                            } else f.UIUtlity.ShowFloatingHint("artifact_not_unlock".ToUILocale())
                    }
                }, t.prototype.OnGetWay = function() {
                    switch (this._type) {
                        case p.CommonItemInfoType.Artifact:
                            var e = h.default.GetArtifactItemId(this._artifactConfig.Id);
                            m.default.ShowItemGetWay(e)
                    }
                }, i([C(cc.Node)], t.prototype, "ItemContainer", void 0), i([C(cc.Label)], t.prototype, "ItemName", void 0), i([C(cc.Label)], t.prototype, "Desc", void 0), i([C(cc.Button)], t.prototype, "ChangeBtn", void 0), i([C(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([C(cc.Button)], t.prototype, "WearBtn", void 0), i([C(cc.Label)], t.prototype, "WearBtnLabel", void 0), i([C(cc.Button)], t.prototype, "GetWayBtn", void 0), i([C(cc.Label)], t.prototype, "GetWayBtnLabel", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./ArtifactHeroSelectPanel": "ArtifactHeroSelectPanel",
        "./CommonItemInfoPanel": "CommonItemInfoPanel"
    }],
    CommonItemChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9054ew+EkFGZLsIc5MCxLia", "CommonItemChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../Components/CustomLayout"),
            y = e("./CommonItemInfoPanel"),
            g = e("../Components/ItemComponent"),
            m = e("./ArtifactHeroSelectPanel"),
            I = e("./CommonItemChangeComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.ItemContainer = null, t.ItemName = null, t.TagContainer = null, t.TagLabel = null, t.CustomLayout = null, t.NoneEquipHint = null, t._isCusomLayoutInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(u.EventKeys.EVENT_CLOSE_ITEM_CHANGE_PANEL, this.ClosePanel, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CLOSE_ITEM_CHANGE_PANEL, this.ClosePanel, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent), n = this.LoadDynamicAsset("CommonPanel/SubItems/CommonItemChangeComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._changeItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TagLabel.string = "equip_current_wear".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.LoadListData(), this.SetItemNode(), this.SetCusomtLayout()
                }, t.prototype.SetItemNode = function() {
                    this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.parent = this.ItemContainer);
                    var e = this._itemNode.getComponent(g.ItemComponent);
                    switch (this.ItemName.node.active = !1, this.TagContainer.active = !1, this._data.Type) {
                        case y.CommonItemInfoType.Artifact:
                            if (this._data.Sid > 0) {
                                this.ItemName.node.active = !0, this.ItemName.string = this._data.Sid.ToArtifactName(), this._curArtifactModel = h.DataCenter.Instance.GetDataById(c.Artefact_Model, this._data.Sid);
                                var t = m.default.GetArtifactItemId(this._data.Sid),
                                    n = h.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, this._curArtifactModel.Star);
                                e.Init({
                                    ItemId: t,
                                    StarLevel: n.Star
                                }, g.ItemComponentType.ItemWithStar), e.CustomItemBgAndBorder(n.Quality), this._data.HeroSid > 0 && this._curArtifactModel.Owners.includes(this._data.HeroSid) && (this.TagContainer.active = !0)
                            } else e.SetItemSimpleState(), e.SetCustomIcon(_.UIUtlity.COMMON_ATLAS5.getSpriteFrame("artifactBg"))
                    }
                }, t.prototype.LoadListData = function() {
                    var e = this;
                    switch (this._data.Type) {
                        case y.CommonItemInfoType.Artifact:
                            this._allConfigs || (this._allConfigs = [], h.ConfigDataComponent.Instance.GetArrayConfig(d.Artefact_Config).forEach(function(t) {
                                t.Id != e._data.Sid && e._allConfigs.push(t)
                            }));
                            var t = h.DataCenter.Instance.GetDataById(c.UserHero_Model, this._data.HeroSid);
                            this._heroConfig = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, t.HeroId), this.SortArtifactConfigs()
                    }
                }, t.prototype.SortArtifactConfigs = function() {
                    var e = this;
                    this._allConfigs.sort(function(t, n) {
                        var o = h.DataCenter.Instance.GetDataById(c.Artefact_Model, t.Id),
                            r = h.DataCenter.Instance.GetDataById(c.Artefact_Model, n.Id),
                            i = e._heroConfig.ArtefactRecommend.includes(t.Id),
                            a = e._heroConfig.ArtefactRecommend.includes(n.Id);
                        if (o && !r) return -1;
                        if (r && !o) return 1;
                        if (i && !a) return -1;
                        if (!i && a) return 1;
                        var s = void 0,
                            l = void 0;
                        return o ? (s = h.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, o.Star), l = h.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, r.Star)) : (s = h.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, t.Star), l = h.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, n.Star)), s.Quality != l.Quality ? l.Quality - s.Quality : n.Id - t.Id
                    })
                }, t.prototype.SetCusomtLayout = function() {
                    var e, t = "";
                    switch (this._isCusomLayoutInit || (this._isCusomLayoutInit = !0, this.CustomLayout.Init(this._changeItemPrefab)), this._data.Type) {
                        case y.CommonItemInfoType.Artifact:
                            e = this._allConfigs.length, t = "artifact_no_item".ToUILocale()
                    }
                    this.NoneEquipHint.node.active = 0 == e, e > 0 ? this.CustomLayout.RenderLayOut(e) : this.NoneEquipHint.string = t
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (t == this.CustomLayout) switch (this._data.Type) {
                        case y.CommonItemInfoType.Artifact:
                            var o = h.DataCenter.Instance.GetDataById(c.UserHero_Model, this._data.HeroSid);
                            e.forEach(function(e, t) {
                                e.getComponent(I.default).Init(n._allConfigs[t], n._itemPrefab, o, y.CommonItemInfoType.Artifact)
                            })
                    }
                }, t.prototype.ClosePanel = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, i([b(cc.Node)], t.prototype, "ItemContainer", void 0), i([b(cc.Label)], t.prototype, "ItemName", void 0), i([b(cc.Node)], t.prototype, "TagContainer", void 0), i([b(cc.Label)], t.prototype, "TagLabel", void 0), i([b(f.default)], t.prototype, "CustomLayout", void 0), i([b(cc.Label)], t.prototype, "NoneEquipHint", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./ArtifactHeroSelectPanel": "ArtifactHeroSelectPanel",
        "./CommonItemChangeComponent": "CommonItemChangeComponent",
        "./CommonItemInfoPanel": "CommonItemInfoPanel"
    }],
    CommonItemInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2e6f1kuAuFInb0bfLnIKasb", "CommonItemInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CommonItemInfoType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemComponent"),
            y = e("./ArtifactHeroSelectPanel"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("./ArtifactDetailInfoComponent"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/CustomProgressBar"),
            b = e("../Components/AttrComponent5");
        (function(e) {
            e[e.Artifact = 0] = "Artifact"
        })(l = n.CommonItemInfoType || (n.CommonItemInfoType = {}));
        var S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.ItemNode = null, t.ItemName = null, t.StageNode = null, t.StageLabel = null, t.ProgressBarNode = null, t.ProgressBar = null, t.ProgressBarLabel = null, t.GetWay = null, t.GetWayButton = null, t.AttrTitleLabel = null, t.AttrTitleBg = null, t.AttrContent = null, t.SkillTitleLabel = null, t.SkillTitleBg = null, t.SkillName = null, t.SkillDesc = null, t.DescTitleLabel = null, t.DescTitleBg = null, t.DescLabel = null, t.BottomNode = null, t.BlueButton1 = null, t.BlueLabel1 = null, t.BlueButton2 = null, t.BlueLabel2 = null, t.OrangeButton1 = null, t.OrangeLabel1 = null, t.OrangeButton2 = null, t.OrangeLabel2 = null, t.SkillInfoBtn = null, t._attrNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.SkillItemComponent, cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/AttrComponent5", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._skillPrefab = e[1], r._attrPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetWay.string = "Personalise_getway".ToUILocale(), this.GetWayButton.node.on("click", this.ClickGetWayButton, this), this.BlueButton1.node.on("click", this.ClickBlueButton1, this), this.BlueButton2.node.on("click", this.ClickBlueButton2, this), this.OrangeButton1.node.on("click", this.ClickOrangeButton1, this), this.OrangeButton2.node.on("click", this.ClickOrangeButton2, this), this.SkillInfoBtn.node.on("click", this.OnSkillInfo, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.LoadItemData(), this.SetItemInfo(), this.SetTitles(), this.SetAttrContent(), this.SetSkillNode(), this.SetButtons(), this.BindRedDot()
                }, t.prototype.LoadItemData = function() {
                    switch (this._data.Type) {
                        case l.Artifact:
                            this._artifactConfig = u.ConfigDataComponent.Instance.GetConfigById(p.Artefact_Config, this._data.ItemId), this._itemId = y.default.GetArtifactItemId(this._data.ItemId), this._data.IsSelf ? (this._artifactModel = u.DataCenter.Instance.GetDataById(d.Artefact_Model, this._data.ItemId), this._artifactModel || this.InitArtifactModel()) : this._data.ItemData ? this._artifactModel = this._data.ItemData : this.InitArtifactModel()
                    }
                }, t.prototype.InitArtifactModel = function() {
                    this._artifactModel = new d.Artefact_Model, this._artifactModel.Sid = this._data.ItemId, this._artifactModel.ArtefactForge = 0, this._artifactModel.ForgeProgress = [], this._artifactModel.NodeLevel = 0, this._artifactModel.Star = this._artifactConfig.Star
                }, t.prototype.SetItemInfo = function() {
                    this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.y = -20, this._itemNode.parent = this.ItemNode);
                    var e = this._itemNode.getComponent(f.ItemComponent);
                    switch (this.StageNode.active = !1, this.ProgressBarNode.active = !1, this._data.Type) {
                        case l.Artifact:
                            this.StageNode.active = !0, this.ProgressBarNode.active = !0;
                            var t = this._artifactConfig.ArtefactForge.indexOf(this._artifactModel.ArtefactForge);
                            this.StageLabel.string = "artifact_stage".ToUILocale().Fmt(t + 1), this.ItemName.string = this._data.ItemId.ToArtifactName();
                            var n = this._artifactModel.Star;
                            u.DataCenter.Instance.GetDataById(d.Artefact_Model, this._data.ItemId) || (n = this.GetMaxStar(this._artifactConfig.Star), this.ProgressBarNode.active = !1);
                            var o = u.ConfigDataComponent.Instance.GetConfigById(p.ArtefactStar_Config, n),
                                r = u.ConfigDataComponent.Instance.GetConfigById(p.ArtefactStar_Config, o.NextId);
                            e.Init({
                                ItemId: this._itemId,
                                StarLevel: o.Star
                            }, f.ItemComponentType.ItemWithStar), e.CustomItemBgAndBorder(o.Quality);
                            var i, a = u.ConfigDataComponent.Instance.GetConfigById(p.ArtefactStar_Config, this._artifactConfig.Star),
                                s = this._data.IsSelf ? u.DataCenter.Instance.GetItemCount(this._artifactConfig.PieceId) : 0;
                            i = r ? r.Materials[a.Quality - 1] : o.Materials[a.Quality - 1], this.ProgressBarNode.active && (this.ProgressBar.progress = s / i, this.ProgressBarLabel.string = "{0}/{1}".Fmt(s, i)), this.DescLabel.string = this._itemId.ToItemDesc()
                    }
                }, t.prototype.SetTitles = function() {
                    var e = 0;
                    switch (this._data.Type) {
                        case l.Artifact:
                            this.AttrTitleLabel.string = "artifact_attr".ToUILocale(), this.SkillTitleLabel.string = "artifact_skill".ToUILocale(), this.DescTitleLabel.string = "artifact_desc".ToUILocale(), e = u.ConfigDataComponent.Instance.GetConfigById(p.ArtefactStar_Config, this._artifactModel.Star).Quality
                    }
                    var t = g.UIUtlity.GetTitleInfoByQuality(e);
                    this.AttrTitleBg.spriteFrame = t[0], this.SkillTitleBg.spriteFrame = t[0], this.DescTitleBg.spriteFrame = t[0], this.AttrTitleLabel.node.getComponent(cc.LabelOutline).color = t[1], this.SkillTitleLabel.node.getComponent(cc.LabelOutline).color = t[1], this.DescTitleLabel.node.getComponent(cc.LabelOutline).color = t[1]
                }, t.prototype.SetAttrContent = function() {
                    switch (this._attrNodes.forEach(function(e) {
                            e.active = !1
                        }), this._data.Type) {
                        case l.Artifact:
                            var e = this._artifactModel;
                            u.DataCenter.Instance.GetDataById(d.Artefact_Model, this._data.ItemId) || ((e = new d.Artefact_Model).Sid = this._artifactModel.Sid, e.ArtefactForge = this._artifactModel.ArtefactForge, e.ForgeProgress = this._artifactModel.ForgeProgress, e.NodeLevel = this._artifactModel.NodeLevel, e.Star = this.GetMaxStar(this._artifactConfig.Star));
                            var t = m.default.GetAttrDatas(e, this._artifactConfig),
                                n = 0;
                            for (var o in t) {
                                if (!this._attrNodes[n]) {
                                    var r = cc.instantiate(this._attrPrefab);
                                    r.parent = this.AttrContent, this._attrNodes[n] = r
                                }
                                this._attrNodes[n].active = !0, this._attrNodes[n].getComponent(b.default).Init(Number(o), t[o], {
                                    AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(),
                                    NodeWidth: 410,
                                    ValueNodeWidth: 221
                                }), n++
                            }
                    }
                }, t.prototype.SetSkillNode = function() {
                    switch (this._data.Type) {
                        case l.Artifact:
                            var e = this._artifactModel.Star;
                            u.DataCenter.Instance.GetDataById(d.Artefact_Model, this._data.ItemId) || (e = this.GetMaxStar(this._artifactConfig.Star), this.ProgressBarNode.active = !1);
                            var t = u.ConfigDataComponent.Instance.GetConfigById(p.ArtefactStar_Config, e),
                                n = m.default.GetArtifactSkillConfig(this._data.ItemId, t.Star).Items[0];
                            this.SkillName.string = n.ToHeroSkillName(), this.SkillDesc.string = "<color=#624e3c>" + n.ToHeroSkillDesc() + "</c>"
                    }
                }, t.prototype.SetButtons = function() {
                    switch (this.BottomNode.active = !1, this.BlueButton1.node.active = !1, this.BlueButton2.node.active = !1, this.OrangeButton1.node.active = !1, this.OrangeButton2.node.active = !1, this._data.Type) {
                        case l.Artifact:
                            this._data.IsShowButtons && (this.BottomNode.active = !0, this.BlueButton1.node.active = !0, this.BlueButton2.node.active = !0, this.OrangeButton1.node.active = !0, this.OrangeButton2.node.active = !0, this.BlueLabel1.string = "PowerCore_Remove".ToUILocale(), this.BlueLabel2.string = "equip_change".ToUILocale(), this.OrangeLabel1.string = "angel_toggle_1".ToUILocale(), this.OrangeLabel2.string = "artifact_forge".ToUILocale())
                    }
                }, t.prototype.BindRedDot = function() {
                    switch (this._data.Type) {
                        case l.Artifact:
                            C.RedDotManager.Instance.BindInstance(this.OrangeButton1.node, C.RedDotManager.Instance.InstanceRedDot.HeroArtifactUpStarBtn, {
                                Value1: this._data.ItemId
                            }), C.RedDotManager.Instance.BindInstance(this.OrangeButton2.node, C.RedDotManager.Instance.InstanceRedDot.HeroArtifactForgeBtn, {
                                Value1: this._data.ItemId
                            })
                    }
                }, t.prototype.ClickGetWayButton = function() {
                    I.default.ShowItemGetWay(this._itemId)
                }, t.prototype.ClickBlueButton1 = function() {
                    var e = this;
                    switch (this._data.Type) {
                        case l.Artifact:
                            var t = this._artifactModel.Owners.indexOf(this._data.HeroSid);
                            if (t > -1) {
                                var n = new d.Req_Team2_ArtefactPutOff;
                                n.Sid = this._data.ItemId, n.Slot = t, u.RpcComponent.Instance.Call(n, function() {
                                    e.Close(), c.Game.EventDispatcher.Emit(_.EventKeys.EVENT_EQUIP_DATA_REFRESH), g.UIUtlity.ShowFloatingHint("remove_success".ToUILocale())
                                })
                            }
                    }
                }, t.prototype.ClickBlueButton2 = function() {
                    switch (this._data.Type) {
                        case l.Artifact:
                            var e = {};
                            e.Type = l.Artifact, e.Sid = this._data.ItemId, e.HeroSid = this._data.HeroSid, this.Close(), c.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonItemChangePanel.Path, e)
                    }
                }, t.prototype.ClickOrangeButton1 = function() {
                    switch (this._data.Type) {
                        case l.Artifact:
                            this.Close(), c.UIManager.Instance.ShowUIPanel(h.PanelConfig.ArtifactPanel.Path, [this._data.ItemId], this._data.ItemId, 2)
                    }
                }, t.prototype.ClickOrangeButton2 = function() {
                    switch (this._data.Type) {
                        case l.Artifact:
                            this.Close(), c.UIManager.Instance.ShowUIPanel(h.PanelConfig.ArtifactPanel.Path, [this._data.ItemId], this._data.ItemId, 1)
                    }
                }, t.prototype.OnSkillInfo = function() {
                    var e = m.default.GetArtifactSkillDatas(this._data.ItemId);
                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonSkillStarDescPanel.Path, e)
                }, t.prototype.GetMaxStar = function(e) {
                    if (this._maxStarMap && this._maxStarMap[e]) return this._maxStarMap[e];
                    this._maxStarMap || (this._maxStarMap = {});
                    for (var t = u.ConfigDataComponent.Instance.GetArrayConfig(p.ArtefactStar_Config), n = -1, o = t.length - 1; o >= 0; o--) t[o].NextId || (n = t[o].Id), n > 0 && (this._maxStarMap[t[o].Id] = n);
                    return this._maxStarMap[e]
                }, i([P(cc.Node)], t.prototype, "ItemNode", void 0), i([P(cc.Label)], t.prototype, "ItemName", void 0), i([P(cc.Node)], t.prototype, "StageNode", void 0), i([P(cc.Label)], t.prototype, "StageLabel", void 0), i([P(cc.Node)], t.prototype, "ProgressBarNode", void 0), i([P(v.default)], t.prototype, "ProgressBar", void 0), i([P(cc.Label)], t.prototype, "ProgressBarLabel", void 0), i([P(cc.Label)], t.prototype, "GetWay", void 0), i([P(cc.Button)], t.prototype, "GetWayButton", void 0), i([P(cc.Label)], t.prototype, "AttrTitleLabel", void 0), i([P(cc.Sprite)], t.prototype, "AttrTitleBg", void 0), i([P(cc.Node)], t.prototype, "AttrContent", void 0), i([P(cc.Label)], t.prototype, "SkillTitleLabel", void 0), i([P(cc.Sprite)], t.prototype, "SkillTitleBg", void 0), i([P(cc.Label)], t.prototype, "SkillName", void 0), i([P(cc.RichText)], t.prototype, "SkillDesc", void 0), i([P(cc.Label)], t.prototype, "DescTitleLabel", void 0), i([P(cc.Sprite)], t.prototype, "DescTitleBg", void 0), i([P(cc.Label)], t.prototype, "DescLabel", void 0), i([P(cc.Node)], t.prototype, "BottomNode", void 0), i([P(cc.Button)], t.prototype, "BlueButton1", void 0), i([P(cc.Label)], t.prototype, "BlueLabel1", void 0), i([P(cc.Button)], t.prototype, "BlueButton2", void 0), i([P(cc.Label)], t.prototype, "BlueLabel2", void 0), i([P(cc.Button)], t.prototype, "OrangeButton1", void 0), i([P(cc.Label)], t.prototype, "OrangeLabel1", void 0), i([P(cc.Button)], t.prototype, "OrangeButton2", void 0), i([P(cc.Label)], t.prototype, "OrangeLabel2", void 0), i([P(cc.Button)], t.prototype, "SkillInfoBtn", void 0), i([w], t)
            }(c.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent5": "AttrComponent5",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./ArtifactDetailInfoComponent": "ArtifactDetailInfoComponent",
        "./ArtifactHeroSelectPanel": "ArtifactHeroSelectPanel"
    }],
    CommonLongLabelRollComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7f76fsnYhpHx4Y9LqaG0m4E", "CommonLongLabelRollComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MaskNode = null, t.Content = null, t.RichTextContent = null, t.Speed = 80, t._startX = 0, t._endX = 0, t._stopTime = 0, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._contentStartX = this.Content ? this.Content.node.x : 0, this._richtextStartX = this.RichTextContent ? this.RichTextContent.node.x : 0
                }, t.prototype.SetUI = function(e, t, n, o, r) {
                    void 0 === n && (n = 36), void 0 === o && (o = cc.Color.WHITE), void 0 === r && (r = 80), this.Speed = r, this.Content && this.Content.node.active ? (this.Content.string = e, this.Content.fontSize = n, this.Content.node.color = o, this.MaskNode.width = t, this.Content.node.x = 0, this._stopTime = 0) : this.RichTextContent && this.RichTextContent.node.active && (this.RichTextContent.string = e, this.RichTextContent.fontSize = n, this.MaskNode.width = t, this.RichTextContent.node.x = 0)
                }, t.prototype.SetContentStartX = function(e) {
                    this._contentStartX = e
                }, t.prototype.update = function(e) {
                    if (this.Content && this.Content.node.active)
                        if (this.Content.node.width > this.MaskNode.width) {
                            if (this._stopTime < 1) return void(this._stopTime += e);
                            this._startX = this.MaskNode.width * (1 - this.MaskNode.anchorX) + this.Content.node.width * this.Content.node.anchorX, this._endX = -this.MaskNode.width * this.MaskNode.anchorX - this.Content.node.width * (1 - this.Content.node.anchorX), this.Content.node.x -= this.Speed * e, this.Content.node.x <= this._endX && (this.Content.node.x = this._startX)
                        } else this.Content.node.x = this._contentStartX;
                    else if (this.RichTextContent && this.RichTextContent.node.active)
                        if (this.RichTextContent.node.width > this.MaskNode.width) {
                            if (this._stopTime < 1) return void(this._stopTime += e);
                            this._startX = this.MaskNode.width * (1 - this.MaskNode.anchorX) + this.RichTextContent.node.width * this.RichTextContent.node.anchorX, this._endX = -this.MaskNode.width * this.MaskNode.anchorX - this.RichTextContent.node.width * (1 - this.RichTextContent.node.anchorX), this.RichTextContent.node.x -= this.Speed * e, this.RichTextContent.node.x <= this._endX && (this.RichTextContent.node.x = this._startX)
                        } else this.RichTextContent.node.x = this._richtextStartX
                }, i([l(cc.Node)], t.prototype, "MaskNode", void 0), i([l(cc.Label)], t.prototype, "Content", void 0), i([l(cc.RichText)], t.prototype, "RichTextContent", void 0), i([l()], t.prototype, "Speed", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CommonMultiRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "974d4G4QHlBmaWmnAk0LhH9", "CommonMultiRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CommonMultiRewardRankMode = void 0;
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property;
        (function(e) {
            e[e.RankNum = 0] = "RankNum", e[e.RankLabel = 1] = "RankLabel"
        })(a = n.CommonMultiRewardRankMode || (n.CommonMultiRewardRankMode = {}));
        var f = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.RankNumModeNode = null, t.RankNumLabel = null, t.No1 = null, t.No2 = null, t.No3 = null, t.RankLabelModeNode = null, t.RankLabel1 = null, t.RankLabel2 = null, t.ItemContent = null, t.NoRankLabel = null, t._rewardNodes = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                s.Game.EventDispatcher.On(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                s.Game.EventDispatcher.Off(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Init = function(e, t) {
                this._data = e, this._itemPrefab = t, this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                this.SetRankFlag(), this.SetRankRewards()
            }, t.prototype.SetRankFlag = function() {
                switch (this.RankNumModeNode.active = !1, this.RankLabelModeNode.active = !1, this.RankLabel1.node.active = !1, this.RankLabel2.node.active = !1, this._data.IsEmptyReward ? (this.NoRankLabel.string = "activityBoss_no_reward".ToUILocale(), this.NoRankLabel.node.active = !0, this.ItemContent.active = !1) : (this.NoRankLabel.node.active = !1, this.ItemContent.active = !0), this._data.Mode) {
                    case a.RankNum:
                        this.RankNumModeNode.active = !0, this.RankNumLabel.node.active = this._data.RankNum[0] > 3, this.No1.active = this._data.RankNum[0] == this._data.RankNum[1] && 1 == this._data.RankNum[1], this.No2.active = this._data.RankNum[0] == this._data.RankNum[1] && 2 == this._data.RankNum[1], this.No3.active = this._data.RankNum[0] == this._data.RankNum[1] && 3 == this._data.RankNum[1], this._data.RankNum[0] != this._data.RankNum[1] ? 0 != this._data.RankNum[1] ? this.RankNumLabel.string = this._data.RankNum[0] + "~" + this._data.RankNum[1] : this.RankNumLabel.string = this._data.RankNum[0] + "+" : this.RankNumLabel.string = this._data.RankNum[0].toString();
                        break;
                    case a.RankLabel:
                        this.RankLabelModeNode.active = !0, this._data.RankLabel1 && (this.RankLabel1.string = this._data.RankLabel1, this.RankLabel1.node.active = !0), this._data.RankLabel2 && (this.RankLabel2.string = this._data.RankLabel2, this.RankLabel2.node.active = !0)
                }
            }, t.prototype.SetRankRewards = function() {
                var e = this;
                this._rewardNodes.forEach(function(e) {
                    e.active = !1
                }), this._data.IsEmptyReward || this._data.Rewards.forEach(function(t, n) {
                    if (!e._rewardNodes[n]) {
                        var o = cc.instantiate(e._itemPrefab);
                        o.parent = e.ItemContent, e._rewardNodes[n] = o
                    }
                    e._rewardNodes[n].active = !0, e._rewardNodes[n].getComponent(u.ItemComponent).Init({
                        ItemId: t.Items[0],
                        Count: t.Items[1]
                    }, u.ItemComponentType.ItemCommon)
                })
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.ItemContent.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
            }, i([h(cc.Node)], t.prototype, "RankNumModeNode", void 0), i([h(cc.Label)], t.prototype, "RankNumLabel", void 0), i([h(cc.Node)], t.prototype, "No1", void 0), i([h(cc.Node)], t.prototype, "No2", void 0), i([h(cc.Node)], t.prototype, "No3", void 0), i([h(cc.Node)], t.prototype, "RankLabelModeNode", void 0), i([h(cc.Label)], t.prototype, "RankLabel1", void 0), i([h(cc.Label)], t.prototype, "RankLabel2", void 0), i([h(cc.Node)], t.prototype, "ItemContent", void 0), i([h(cc.Label)], t.prototype, "NoRankLabel", void 0), i([d], t)
        }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    CommonMultiRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5bdeePLrupJ2JYt6aBm+2pr", "CommonMultiRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../Components/CommonMultiRewardComponent"),
            d = e("../Components/CustomToggle"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.RuleTipLabel = null, t.RuleButton = null, t.ScrollView = null, t.ParentNode = null, t.LeftLabel = null, t.RightLabel = null, t.MidLabel = null, t.MidLabelNode = null, t.DoubleLabelNode = null, t.MyRankCompontent = null, t.TogglesNode = null, t._cellNodes = [], t._datas = [], t._selectIndex = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.RuleButton.node.on("click", this.OnRuleButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.RuleButton.node.off("click", this.OnRuleButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = this.LoadDynamicAsset("CommonPanel/SubItems/CommonMultiRewardComponent", cc.Prefab), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("Buttons/ToggleBottom", cc.Prefab), [4, Promise.all([e, t, n]).then(function(e) {
                                        o._cellPrefab = e[0], o._itemPrefab = e[1], o._togglePrefab = e[2]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._datas = t[0], this._selectIndex = t[1]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._curData = this._datas[this._selectIndex], this.InitNodes(), this.SetToggles(), this.SetTitle(), this.SetLabels(), this.SetMyRank(), this.SetRewardList(), this.SetRuleNode()
                }, t.prototype.InitNodes = function() {
                    this._cellNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this._isReDisplay || this._datas.length > 1 && this._datas.forEach(function(t, n) {
                        var o = cc.instantiate(e._togglePrefab);
                        o.parent = e.TogglesNode;
                        var r = o.getComponent(d.default);
                        r.Init(t.Title), r.isChecked = e._selectIndex == n, o.name = n.toString(), o.on("toggle", e.ClickToggle, e)
                    })
                }, t.prototype.SetTitle = function() {
                    this.TitleLabel.string = this._curData.Title
                }, t.prototype.SetLabels = function() {
                    this._curData.MidLabel ? (this.MidLabel.string = this._curData.MidLabel, this.MidLabelNode.active = !0) : this.MidLabelNode.active = !1, this._curData.LeftLabel || this._curData.RightLabel ? (this.DoubleLabelNode.active = !0, this._curData.LeftLabel ? (this.LeftLabel.string = this._curData.LeftLabel, this.LeftLabel.node.active = !0) : this.LeftLabel.node.active = !1, this._curData.RightLabel ? (this.RightLabel.string = this._curData.RightLabel, this.RightLabel.node.active = !0) : this.RightLabel.node.active = !1) : this.DoubleLabelNode.active = !1
                }, t.prototype.SetMyRank = function() {
                    this.MyRankCompontent.Init(this._curData.MyData, this._itemPrefab)
                }, t.prototype.SetRewardList = function() {
                    var e = this;
                    this._curData.ItemDatas.forEach(function(t, n) {
                        if (!e._cellNodes[n]) {
                            var o = cc.instantiate(e._cellPrefab);
                            o.parent = e.ParentNode, e._cellNodes[n] = o
                        }
                        e._cellNodes[n].active = !0, e._cellNodes[n].getComponent(p.default).Init(t, e._itemPrefab)
                    })
                }, t.prototype.SetRuleNode = function() {
                    this._curData.RuleTip ? (this.RuleTipLabel.node.active = !0, this.RuleTipLabel.string = this._curData.RuleTip) : this.RuleTipLabel.node.active = !1, this._curData.RuleData ? this.RuleButton.node.active = !0 : this.RuleButton.node.active = !1
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._selectIndex != t && (this._selectIndex = t, this.ScrollView.scrollToTop(), this.DisPlay(!0))
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = this._curData.RuleData;
                    u.UIUtlity.ShowRulePanel(e)
                }, i([y(cc.Label)], t.prototype, "TitleLabel", void 0), i([y(cc.Label)], t.prototype, "RuleTipLabel", void 0), i([y(cc.Button)], t.prototype, "RuleButton", void 0), i([y(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([y(cc.Node)], t.prototype, "ParentNode", void 0), i([y(cc.RichText)], t.prototype, "LeftLabel", void 0), i([y(cc.RichText)], t.prototype, "RightLabel", void 0), i([y(cc.Label)], t.prototype, "MidLabel", void 0), i([y(cc.Node)], t.prototype, "MidLabelNode", void 0), i([y(cc.Node)], t.prototype, "DoubleLabelNode", void 0), i([y(p.default)], t.prototype, "MyRankCompontent", void 0), i([y(cc.Node)], t.prototype, "TogglesNode", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CommonMultiRewardComponent": "CommonMultiRewardComponent",
        "../Components/CustomToggle": "CustomToggle"
    }],
    CommonPriviledgeTipComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c64b7JZji1MuqOuDz0gut3o", "CommonPriviledgeTipComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../Consts/Consts"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("./FamePriviledgePanel"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.VipText = null, t.VipLv = null, t.ContentRichText = null, t.GoButton = null, t.Widgets = [], t._InitWidth = 565, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.GoButton.node.on("click", this.ClickGoBtn, this)
                }, t.prototype.onDisable = function() {
                    this.GoButton.node.off("click", this.ClickGoBtn, this)
                }, t.prototype.onLoad = function() {
                    this.VipText.string = "vip".ToUILocale()
                }, t.prototype.InitData = function(e, t, n) {
                    this._priviledgeType = e, n && (this.node.height = n), this.SetNodeWidth(t), this.SetUIContent()
                }, t.prototype.SetNodeWidth = function(e) {
                    e && e != this._InitWidth && (this.node.width = e, this.Widgets.forEach(function(e) {
                        e.updateAlignment()
                    }), this.ContentRichText.maxWidth = e - 200)
                }, t.prototype.SetUIContent = function() {
                    var e = this,
                        t = s.DataCenter.Instance.GetIntData(c.UserDataKey.VipLevel),
                        n = s.ConfigDataComponent.Instance.GetConfigById(l.VipLevel_Config, t);
                    if (n ? (o = n.Privilege.find(function(t) {
                            return t.Items[0] == e._priviledgeType
                        })) ? this._showVipLv = n.Id : (this._showVipLv = n.Id + 1, this.FindPriviledge()) : (this._showVipLv = 1, this.FindPriviledge()), this._showVipLv < 0) this.node.active = !1;
                    else {
                        var o, r, i, a = (o = s.ConfigDataComponent.Instance.GetConfigById(l.VipLevel_Config, this._showVipLv).Privilege.find(function(t) {
                                return t.Items[0] == e._priviledgeType
                            })).Items[0],
                            u = o.Items[1];
                        i = p.default.notDevideArray.includes(a) ? u : u / 10, r = 104 == a ? "<outline color=#202434 width=2>" + ("priviledgeDesc_" + a).ToUILocale().Fmt(u.ToItemName()) + "</outline>" : "<outline color=#202434 width=2>" + ("priviledgeDesc_" + a).ToUILocale().Fmt("6EEEA7", i) + "</outline>", this.node.active = !0, this.VipLv.string = this._showVipLv.toString(), this.ContentRichText.string = r
                    }
                }, t.prototype.FindPriviledge = function() {
                    var e = this,
                        t = s.ConfigDataComponent.Instance.GetConfigById(l.VipLevel_Config, this._showVipLv);
                    t ? t.Privilege.find(function(t) {
                        return t.Items[0] == e._priviledgeType
                    }) ? this._showVipLv = t.Id : (this._showVipLv++, this.FindPriviledge()) : this._showVipLv = -1
                }, t.prototype.ClickGoBtn = function() {
                    a.UIManager.Instance.ShowUIPanel(u.PanelConfig.FamePriviledgePanel.Path)
                }, i([f(cc.Label)], t.prototype, "VipText", void 0), i([f(cc.Label)], t.prototype, "VipLv", void 0), i([f(cc.RichText)], t.prototype, "ContentRichText", void 0), i([f(cc.Button)], t.prototype, "GoButton", void 0), i([f(cc.Widget)], t.prototype, "Widgets", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./FamePriviledgePanel": "FamePriviledgePanel"
    }],
    CommonPvpPlayerInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d9955jyAUZOZ6/R/PpCjB89", "CommonPvpPlayerInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CommonPvpPlayerInfo = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../Components/HeadComponent"),
            d = e("../Components/CustomToggle"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./CommonHeroAttrComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Components/DataCenter"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("./AngelBtnComponent"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.AngelPve = 1] = "AngelPve", e[e.AngelPvp = 2] = "AngelPvp"
        })(l = n.CommonPvpPlayerInfo || (n.CommonPvpPlayerInfo = {}));
        var b = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.HeadContainer = null, t.PlayerName = null, t.ServerTag = null, t.ServerValue = null, t.AllianceTag = null, t.AllianceValue = null, t.RankTag = null, t.RankValue = null, t.BPTag = null, t.BPValue = null, t.EnemyTitle = null, t.ToggleContainer = null, t.ToggleLayout = null, t.HeroAttrContainer = null, t.AngelNode = null, t.AngelTitle = null, t.AngelButtonNode = null, t._toggles = [], t._heroAttrNode = [], t._playerInfo = null, t._formationInfos = [], t._rankNum = 0, t._selectIndex = 0, t._isShowAngel = !1, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("Buttons/ToggleTop", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.HeadComponent, cc.Prefab), o = this.LoadDynamicAsset("CommonPanel/SubItems/CommonHeroAttrComponent", cc.Prefab), r = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelBtnComponent", cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._togglePrefab = e[0], i._headPrefab = e[1], i._heroAttrPrefab = e[2], i._angelBtnPrefab = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "arena_rivalInfoText".ToUILocale(), this.ServerTag.string = "serverSelect_zone".ToUILocale(), this.AllianceTag.string = "PlayerSetting_alliance".ToUILocale(), this.RankTag.string = "ActivityHeroTestTower_Rank".ToUILocale(), this.BPTag.string = "allianceBase_powerSimple".ToUILocale(), this.EnemyTitle.string = "arena_rivalInfoText".ToUILocale(), this.AngelTitle.string = "angel_toggle_name1".ToUILocale()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._playerInfo = t[0], this._formationInfos = t[1], this._rankNum = t[2], t[3] && (this._data = t[3], this._isShowAngel = this._data && (this._data.Type == l.AngelPve || this._data.Type == l.AngelPvp))
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.AngelButtonNode.active = m.default.Instance.IsGameModuleOpen(u.GameModuleType.Angel), this.SetPlayerInfo(), this.SetToggles(), this.SetHeroInfos(), this.SetAngelNode()
            }, t.prototype.SetPlayerInfo = function() {
                if (!this._headComponent) {
                    var e = cc.instantiate(this._headPrefab);
                    e.setParent(this.HeadContainer), this._headComponent = e.getComponent(p.default)
                }
                this._headComponent.SetUI(this._playerInfo.HeadIcon, this._playerInfo.HeadFrame), this._headComponent.SetLevel(this._playerInfo.Level), this._headComponent.SetCountry(this._playerInfo.Country), this.PlayerName.string = this._playerInfo.Name, this.ServerValue.string = "S" + this._playerInfo.Zone, this.BPValue.string = this._playerInfo.Power.toString(), this._rankNum ? this.RankValue.string = this._rankNum.toString() : this.RankValue.string = "rank_out_max_rank".ToUILocale(), this._playerInfo.AllianceName.length > 0 ? (this.AllianceValue.string = this._playerInfo.AllianceName, this.AllianceValue.node.color = new cc.Color(32, 36, 52)) : (this.AllianceValue.string = "PlayerSetting_noAlliance".ToUILocale(), this.AllianceValue.node.color = new cc.Color(153, 153, 153))
            }, t.prototype.SetToggles = function() {
                var e = this;
                if (this._isShowAngel) this.ToggleLayout.active = !1, this.ToggleContainer.active = !1;
                else {
                    this.ToggleLayout.active = this._formationInfos.length > 1 && this._formationInfos.length <= 5, this.ToggleContainer.active = this._formationInfos.length > 5;
                    var t = this._formationInfos.length > 5 ? this.ToggleContainer : this.ToggleLayout;
                    this._formationInfos.length > 1 && this._formationInfos.forEach(function(n, o) {
                        if (!e._toggles[o]) {
                            var r = cc.instantiate(e._togglePrefab);
                            r.parent = t, e._toggles[o] = r.getComponent(d.default)
                        }
                        e._toggles[o].Init("formation_index".ToUILocale().Fmt(o + 1)), e._toggles[o].isChecked = o == e._selectIndex, e._toggles[o].node.name = o.toString(), e._toggles[o].node.on("toggle", e.OnSwitchToggle, e)
                    })
                }
            }, t.prototype.SetHeroInfos = function() {
                var e = this;
                if (this._isShowAngel) {
                    var t = [],
                        n = [];
                    this._formationInfos.forEach(function(e) {
                        e.Angel && e.Angel.AngelId > 0 && (t.push(e.Angel), n.push(e.Sid))
                    }), t.forEach(function(t, o) {
                        if (!e._heroAttrNode[o]) {
                            var r = cc.instantiate(e._heroAttrPrefab);
                            r.parent = e.HeroAttrContainer, e._heroAttrNode[o] = r
                        }
                        var i = {};
                        i.Type = e._data.Type, i.AngelModel = t, i.PlayerUid = e._playerInfo.Uid, i.PersonalityStarLevel = 0, i.Zone = e._playerInfo.Zone, i.HeroInfo = null, i.FormationId = n[o], e._heroAttrNode[o].getComponent(f.default).InitData(i)
                    })
                } else {
                    var o = this._formationInfos[this._selectIndex];
                    o && o.Heros && o.Heros.forEach(function(t, n) {
                        if (!e._heroAttrNode[n]) {
                            var o = cc.instantiate(e._heroAttrPrefab);
                            o.parent = e.HeroAttrContainer, e._heroAttrNode[n] = o
                        }
                        var r = {};
                        r.PlayerUid = e._playerInfo.Uid, r.PersonalityStarLevel = e._playerInfo.HeroPersonality[t.HeroId.toString()], r.Zone = e._playerInfo.Zone, r.HeroInfo = t, r.NotShwoParams = e._playerInfo.NotShow, e._heroAttrNode[n].getComponent(f.default).InitData(r)
                    })
                }
            }, t.prototype.SetAngelNode = function() {
                var e = m.default.Instance.IsGameModuleOpen(u.GameModuleType.Angel),
                    t = m.default.Instance.IsGameModuleUnlock(u.GameModuleType.Angel)[0];
                this.AngelNode.active = e && t && !this._isShowAngel, e && t && !this._isShowAngel && this.SetAngelButton()
            }, t.prototype.SetAngelButton = function() {
                this._angelBtnNode || (this._angelBtnNode = cc.instantiate(this._angelBtnPrefab), this._angelBtnNode.parent = this.AngelButtonNode, this._angelBtnNode.on("click", this.ClickAngelButton, this));
                var e = this._formationInfos[this._selectIndex];
                if (e) {
                    var t = this._angelBtnNode.getComponent(I.default),
                        n = e.Angel && e.Angel.AngelId > 0 ? e.Angel.AngelId : 0;
                    t.Init(n, !1, !1, e.Angel), t.SetBtnScale(.86), t.SetAngelLabelActive(!1)
                }
            }, t.prototype.OnSwitchToggle = function(e) {
                var t = Number.parseInt(e.name);
                this._selectIndex != t && (this._selectIndex = t, this.SetToggles(), this.SetHeroInfos(), this.SetAngelNode())
            }, t.prototype.ClickAngelButton = function() {
                var e = this._formationInfos[this._selectIndex];
                e && e.Angel && e.Angel.AngelId > 0 ? this._playerInfo.Uid == g.DataCenter.Instance.Uid ? c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelDetailPanel.Path, e.Angel.AngelId, e.Sid) : c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelDetailPanel.Path, null, e.Sid, this._playerInfo.Uid, this._playerInfo.Zone) : y.UIUtlity.ShowFloatingHint("angel_not_on_formation".ToUILocale())
            }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Node)], t.prototype, "HeadContainer", void 0), i([v(cc.Label)], t.prototype, "PlayerName", void 0), i([v(cc.Label)], t.prototype, "ServerTag", void 0), i([v(cc.Label)], t.prototype, "ServerValue", void 0), i([v(cc.Label)], t.prototype, "AllianceTag", void 0), i([v(cc.Label)], t.prototype, "AllianceValue", void 0), i([v(cc.Label)], t.prototype, "RankTag", void 0), i([v(cc.Label)], t.prototype, "RankValue", void 0), i([v(cc.Label)], t.prototype, "BPTag", void 0), i([v(cc.Label)], t.prototype, "BPValue", void 0), i([v(cc.Label)], t.prototype, "EnemyTitle", void 0), i([v(cc.Node)], t.prototype, "ToggleContainer", void 0), i([v(cc.Node)], t.prototype, "ToggleLayout", void 0), i([v(cc.Node)], t.prototype, "HeroAttrContainer", void 0), i([v(cc.Node)], t.prototype, "AngelNode", void 0), i([v(cc.Label)], t.prototype, "AngelTitle", void 0), i([v(cc.Node)], t.prototype, "AngelButtonNode", void 0), i([C], t)
        }(c.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HeadComponent": "HeadComponent",
        "./AngelBtnComponent": "AngelBtnComponent",
        "./CommonHeroAttrComponent": "CommonHeroAttrComponent"
    }],
    CommonQuickCombineMaterialComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca036D/m3VE5IDTMv9qKGT9", "CommonQuickCombineMaterialComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Bg = null, t.Border = null, t.Name = null, t.CountNode = null, t.Count = null, t.CombineCountTip = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r, i) {
                    void 0 === i && (i = !1), this.Icon.spriteFrame = e, this.Name.string = t, this.SetCount(o, r), this.SetBgAndBorder(n), i && this.SetMode2()
                }, t.prototype.SetCount = function(e, t) {
                    this.CountNode.active = !1, this.CombineCountTip.node.active = !1, !e && 0 != e || t ? (e || 0 == e) && t && (this.CombineCountTip.node.active = !0, this.CombineCountTip.string = "<outline color=#202434 width=3>" + e + "/" + t + "</outline>") : (this.CountNode.active = !0, this.Count.string = e.toString())
                }, t.prototype.SetBgAndBorder = function(e) {
                    var t = this,
                        n = a.UIUtlity.GetItemQualityBg(e, 0, 0),
                        o = a.UIUtlity.GetItemBorderByQuality(e, 0, 0);
                    Promise.all([n, o]).then(function(e) {
                        t.isValid && (t.Bg.spriteFrame = e[0], t.Border.spriteFrame = e[1])
                    })
                }, t.prototype.SetMode2 = function() {
                    this.Name.node.y = 104, cc.find("UnCheck", this.node).active = !1, cc.find("Check", this.node).active = !1, cc.find("Content/bg", this.node).scale = 1, cc.find("Content/Icon", this.node).scale = 1, cc.find("Content/border", this.node).scale = 1
                }, i([c(cc.Sprite)], t.prototype, "Icon", void 0), i([c(cc.Sprite)], t.prototype, "Bg", void 0), i([c(cc.Sprite)], t.prototype, "Border", void 0), i([c(cc.Label)], t.prototype, "Name", void 0), i([c(cc.Node)], t.prototype, "CountNode", void 0), i([c(cc.Label)], t.prototype, "Count", void 0), i([c(cc.RichText)], t.prototype, "CombineCountTip", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CommonQuickCombinePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c4aea62Q11LQIlyk/ixJBb2", "CommonQuickCombinePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../Components/CurrencyBarItem"),
            y = e("../Components/SliderComponent"),
            g = e("../Components/CommonQuickCombineMaterialComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../Components/Components"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../Consts/Consts"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property;
        (function(e) {
            e[e.LuckyCharm = 0] = "LuckyCharm", e[e.Gem = 1] = "Gem"
        })(l || (l = {}));
        var A = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.Tip = null, t.SelectMaterialContainer = null, t.CombineTitle = null, t.LastMaterialNode = null, t.NextMaterialNode = null, t.SuccessValueTip = null, t.SuccessValue = null, t.SelectTitle = null, t.LuckyCharmSelectToggleContainer = null, t.LuckyCharmSelectToggleArray = [], t.LuckyCharmSelectToggleDescArray = [], t.GemSelectToggleContainer = null, t.GemSelectToggleArray = [], t.GemSelectToggleDescArray = [], t.GemDetailButton = null, t.SelectHintToggle = null, t.SelectHint = null, t.SliderComponent = null, t.Count = null, t.CurrencyBarItem = null, t.CombineButton = null, t.CombineButtonLabel = null, t._materialToggleArray = [], t._currentMaterialToggleIndex = 0, t._currentSelectToggleIndex = 0, t._combineTimes = 0, t.LUCKY_CHARM_ID_ARRAY = [10451, 10452, 10453, 10454, 10455], t.MATRIAL_QUALITY_ARRAY = [2, 3, 4, 5, 6], t.LUCKY_CHARM_SELECT_COUNT_ARRAY = [2, 3, 4, 5], t.GEM_LEVEL_ARRAY = [1, 2, 3, 4], t.GEM_SELECT_NAME_ARRAY = ["gem_addgem_sameType", "gem_addgem_sameAttr"], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(m.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(m.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CommonPanel/SubItems/CommonQuickCombineMaterialComponent", cc.Prefab), n = this.LoadDynamicAsset("CommonPanel/PNG/commonQuickCombineAtlas", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                    o._materialPrefab = e[0], o._atlas = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "compose_auto".ToUILocale(), this.Tip.string = "CommonQuickCombinePanel_Tip".ToUILocale(), this.CombineTitle.string = "CommonQuickCombinePanel_Combine_Title".ToUILocale(), this.SelectTitle.string = "CommonQuickCombinePanel_Select_Title".ToUILocale(), this.CombineButtonLabel.string = "button_confirm".ToUILocale(), this.SuccessValueTip.string = "CommonQuickCombinePanel_Success_Rate".ToUILocale(), this.GemDetailButton.node.on("click", this.OnGemDetailButton, this), this.CombineButton.node.on("click", this.OnCombineButtonClick, this), this.SelectHintToggle.node.on("toggle", this.OnSelectHintToggle, this), this.SelectHintToggle.isChecked = !1
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._panelType = t[0], this.SelectHint.string = this._panelType == l.LuckyCharm ? "luckycharm_composeSelectHint".ToUILocale() : "gem_addgem_equiped".ToUILocale()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || this.SetGemSelectToggleArray(), this.SetMaterialToggleArray(), this.SetCombineMaterial(), t || (this.SetSelectToggleArray(), this._materialToggleArray[0].node.getComponent(cc.Toggle).isChecked = !0)
            }, t.prototype.SetMaterialToggleArray = function() {
                var e;
                this._panelType == l.LuckyCharm ? e = this.LUCKY_CHARM_ID_ARRAY : this._panelType == l.Gem && (e = this.GEM_LEVEL_ARRAY);
                for (var t = 0; t < 4; t++) {
                    var n = this._materialToggleArray[t];
                    if (!n) {
                        var o = cc.instantiate(this._materialPrefab);
                        o.setParent(this.SelectMaterialContainer), o.name = t.toString(), n = o.getComponent(g.default), this._materialToggleArray[t] = n, o.on("toggle", this.OnSwitchMaterialToggle, this)
                    }
                    var r = void 0,
                        i = void 0,
                        a = void 0,
                        s = void 0;
                    if (this._panelType == l.LuckyCharm) {
                        var c = e[t];
                        r = this.GetLuckyCharmCount(c), i = c.ToItemName(), a = this._atlas.getSpriteFrame("luckyCharm_" + t)
                    } else this._panelType == l.Gem && (s = 0, r = this.GetGemCount(this.GEM_LEVEL_ARRAY[t], !0), i = "CommonQuickCombinePanel_Gem_Name".ToUILocale().Fmt(this.GEM_LEVEL_ARRAY[t]), a = this._atlas.getSpriteFrame("gem_" + t));
                    n.Init(a, i, this.MATRIAL_QUALITY_ARRAY[t], r, s)
                }
            }, t.prototype.OnSwitchMaterialToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentMaterialToggleIndex != t && (this._currentMaterialToggleIndex = t, this.SetCombineMaterial())
            }, t.prototype.SetGemSelectToggleArray = function() {
                if (this._panelType == l.Gem) {
                    this.GemSelectToggleContainer.active = !0;
                    for (var e = 0; e < this.GemSelectToggleArray.length; e++) {
                        var t = this.GemSelectToggleArray[e].node;
                        t.name = e.toString(), t.on("toggle", this.OnSWithGemSelectToggle, this), this.GemSelectToggleArray[e].isChecked = !0, this.GemSelectToggleDescArray[e].string = this.GEM_SELECT_NAME_ARRAY[e].ToUILocale()
                    }
                } else this.GemSelectToggleContainer.active = !1
            }, t.prototype.SetSelectToggleArray = function() {
                if (this.LuckyCharmSelectToggleContainer.active = !1, this._panelType == l.LuckyCharm) {
                    this.LuckyCharmSelectToggleContainer.active = !0;
                    for (var e = 0; e < this.LuckyCharmSelectToggleArray.length; e++) {
                        var t = this.LuckyCharmSelectToggleArray[e].node;
                        t.name = e.toString(), t.on("toggle", this.OnSwitchSelectToggle, this), this.LuckyCharmSelectToggleDescArray[e].string = "CommonQuickCombinePanel_LuckyCharm_Select_Toggle".ToUILocale().Fmt(this.LUCKY_CHARM_SELECT_COUNT_ARRAY[e]), e == this.LuckyCharmSelectToggleArray.length - 1 && (t.getComponent(cc.Toggle).isChecked = !0, this.OnSwitchSelectToggle(t.getComponent(cc.Toggle)))
                    }
                }
            }, t.prototype.OnSwitchSelectToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentSelectToggleIndex != t && (this._currentSelectToggleIndex = t, this.SetSelectShow())
            }, t.prototype.OnSWithGemSelectToggle = function() {
                this.SetCurrentGemSelectShow()
            }, t.prototype.SetCombineMaterial = function() {
                if (!this._lastMaterialComponent) {
                    var e = cc.instantiate(this._materialPrefab);
                    e.setParent(this.LastMaterialNode), e.getComponent(cc.Toggle).interactable = !1, this._lastMaterialComponent = e.getComponent(g.default);
                    var t = cc.instantiate(this._materialPrefab);
                    t.setParent(this.NextMaterialNode), t.getComponent(cc.Toggle).interactable = !1, this._nextMaterialComponent = t.getComponent(g.default)
                }
                if (this._panelType == l.LuckyCharm) {
                    var n = this.LUCKY_CHARM_ID_ARRAY[this._currentMaterialToggleIndex],
                        o = this.GetLuckyCharmCount(n),
                        r = n.ToItemName(),
                        i = this._atlas.getSpriteFrame("luckyCharm_" + this._currentMaterialToggleIndex),
                        a = this.LUCKY_CHARM_SELECT_COUNT_ARRAY[this._currentSelectToggleIndex];
                    this._lastMaterialComponent.Init(i, r, this.MATRIAL_QUALITY_ARRAY[this._currentMaterialToggleIndex], o, a, !0);
                    var s = this.LUCKY_CHARM_ID_ARRAY[this._currentMaterialToggleIndex + 1].ToItemName(),
                        c = this._atlas.getSpriteFrame("luckyCharm_" + (this._currentMaterialToggleIndex + 1));
                    this._nextMaterialComponent.Init(c, s, this.MATRIAL_QUALITY_ARRAY[this._currentMaterialToggleIndex + 1], null, null, !0), this.SetLuckyCharmConfig(n);
                    var u = Math.floor(o / a);
                    this._maxCount = u, this.SliderComponent.SetUI(0, u, 0, !0), this._combineTimes = 0, this.Count.string = this._combineTimes + "/" + u, this.CurrencyBarItem.Init(I.CommonItemId.Coin, !1, 0)
                } else if (this._panelType == l.Gem) {
                    var p = this.GEM_LEVEL_ARRAY[this._currentMaterialToggleIndex];
                    o = this.GetGemCount(p, !1), r = "CommonQuickCombinePanel_Gem_Name".ToUILocale().Fmt(p), i = this._atlas.getSpriteFrame("gem_" + this._currentMaterialToggleIndex), this._lastMaterialComponent.Init(i, r, this.MATRIAL_QUALITY_ARRAY[this._currentMaterialToggleIndex], o, 5, !0);
                    var d = p + 1;
                    s = "CommonQuickCombinePanel_Gem_Name".ToUILocale().Fmt(d), c = this._atlas.getSpriteFrame("gem_" + (this._currentMaterialToggleIndex + 1)), this._nextMaterialComponent.Init(c, s, this.MATRIAL_QUALITY_ARRAY[this._currentMaterialToggleIndex + 1], null, d, !0), this.SetGemConfig(p + 1), u = Math.floor(o / 5), this.SliderComponent.SetUI(0, u, 0, !0), this._combineTimes = 0, this.Count.string = this._combineTimes.toString(), this.CurrencyBarItem.Init(I.CommonItemId.Coin, !1, 0)
                }
            }, t.prototype.SetLuckyCharmConfig = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(p.LuckyCharmEquip_Config, e).ComposeData[this._currentSelectToggleIndex].Items;
                t[0] >= 1e3 ? this.SuccessValue.node.color = cc.Color.GREEN : this.SuccessValue.node.color = cc.Color.RED, this.SuccessValue.string = t[0] / 10 + "%", this._oneTimeNeedCount = t[1]
            }, t.prototype.SetGemConfig = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(p.GemQuality_Config, e);
                t.ComposeData[0] >= 1e3 ? this.SuccessValue.node.color = cc.Color.GREEN : this.SuccessValue.node.color = cc.Color.RED, this.SuccessValue.string = t.ComposeData[0] / 10 + "%", this._oneTimeNeedCount = t.ComposeData[2]
            }, t.prototype.SetSelectShow = function() {
                var e = this.LUCKY_CHARM_ID_ARRAY[this._currentMaterialToggleIndex],
                    t = this.GetLuckyCharmCount(e),
                    n = this.LUCKY_CHARM_SELECT_COUNT_ARRAY[this._currentSelectToggleIndex];
                this._lastMaterialComponent.SetCount(t, n), this.SetLuckyCharmConfig(e);
                var o = Math.floor(t / n);
                this._maxCount = o, this.SliderComponent.SetUI(0, o, 0, !0), this._combineTimes = 0, this.Count.string = this._combineTimes + "/" + o, this.CurrencyBarItem.Init(I.CommonItemId.Coin, !1, 0)
            }, t.prototype.SetCurrentGemSelectShow = function() {
                var e = this.GEM_LEVEL_ARRAY[this._currentMaterialToggleIndex],
                    t = this.GetGemCount(e, !1);
                this._lastMaterialComponent.SetCount(t, 5);
                var n = Math.floor(t / 5);
                this.SliderComponent.SetUI(0, n, 0, !0), this._combineTimes = 0, this.Count.string = this._combineTimes.toString(), this.CurrencyBarItem.Init(I.CommonItemId.Coin, !1, 0)
            }, t.prototype.GetLuckyCharmCount = function(e) {
                var t = this,
                    n = h.DataCenter.Instance.GetDataList(d.LuckyCharmEquip_Model),
                    o = 0;
                return n.forEach(function(n) {
                    n.ItemId != e || n.OwnerId && !t.SelectHintToggle.isChecked || n.Locked || o++
                }), o
            }, t.prototype.GetGemCount = function(e, t) {
                var n = this,
                    o = h.DataCenter.Instance.GetDataList(d.GemEquip_Model),
                    r = 0;
                if (this._gemMaterialDatas = {}, o.forEach(function(o) {
                        if ((n.SelectHintToggle.isChecked || !o.OwnerId) && !o.Locked) {
                            var i = h.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, o.ItemId);
                            if (i.Quality - 1 == e)
                                if (t) r++;
                                else {
                                    var a = n.GemSelectToggleArray[0];
                                    if (n.GemSelectToggleArray[1].isChecked) {
                                        var s = o.Attrs[0].Items[0];
                                        n._gemMaterialDatas[s] || (n._gemMaterialDatas[s] = []), n._gemMaterialDatas[s].push(o)
                                    } else if (a.isChecked) {
                                        var l = i.Id;
                                        n._gemMaterialDatas[l] || (n._gemMaterialDatas[l] = []), n._gemMaterialDatas[l].push(o)
                                    } else n._gemMaterialDatas[e] || (n._gemMaterialDatas[e] = []), n._gemMaterialDatas[e].push(o)
                                }
                        }
                    }), !t)
                    for (var i in this._gemMaterialDatas)
                        if (this._gemMaterialDatas[i].length >= 5) {
                            var a = Math.floor(this._gemMaterialDatas[i].length / 5);
                            r += 5 * a
                        } return r
            }, t.prototype.OnGemDetailButton = function() {
                var e = {
                    name: "gem_fill_RuleMainTitle".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["gem_fill_RuleText".ToUILocale()]
                };
                u.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnCombineButtonClick = function() {
                var e = this;
                if (!(this._combineTimes <= 0))
                    if (C.DataCenter.Instance.IsItemEnough(I.CommonItemId.Coin, this._oneTimeNeedCount * this._combineTimes)) switch (this._panelType) {
                        case l.Gem:
                            if (this.SetRequestGemsMaterial(), v.default.Instance.CheckGemComposeQuality(this._requestGems)) return void u.UIUtlity.ShowHintPanel(null, "luckyCharm_gemComposeQuality_hint".ToUILocale(), "", null, "", function() {
                                e.OnRequestGem()
                            });
                            if (this._gemIsInGallery) return void u.UIUtlity.ShowHintPanel("", "gem_compose_hint".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                e.OnRequestGem()
                            });
                            this.OnRequestGem();
                            break;
                        case l.LuckyCharm:
                            if (this._luckyCharmMaterialSids = this.GetLuckyCharmMaterialArray(), this._isluckyCharmOnShow) return void u.UIUtlity.ShowHintPanel(null, "luckyCharm_isShowing_hint".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                e.OnRequestLuckyCharm()
                            });
                            if (v.default.Instance.CheckLuckyCharmComposeQuality(this._luckyCharmMaterialSids)) return void u.UIUtlity.ShowHintPanel(null, "luckyCharm_composeQuality_hint".ToUILocale(), "", null, "", function() {
                                e.OnRequestLuckyCharm()
                            });
                            this.OnRequestLuckyCharm()
                    } else u.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(I.CommonItemId.Coin.ToItemName()))
            }, t.prototype.SetRequestGemsMaterial = function() {
                this._requestGems = [], this._gemIsInGallery = !1;
                var e = 0;
                for (var t in this._gemMaterialDatas) {
                    if (e == this._combineTimes) break;
                    var n = this._gemMaterialDatas[t];
                    if (n.length >= 5)
                        for (var o = Math.floor(n.length / 5), r = 0; r < o; r++) {
                            this._requestGems[e] = new d.IntArray, this._requestGems[e].Items = [];
                            for (var i = 0; i < 5; i++) {
                                var a = 5 * r + i;
                                this._requestGems[e].Items.push(n[a].Sid), !this._gemIsInGallery && n[a].GallerySlot > 0 && (this._gemIsInGallery = !0)
                            }
                            if (++e == this._combineTimes) break
                        }
                }
            }, t.prototype.OnRequestGem = function() {
                var e = new d.Req_Item_CommonCompose;
                e.Materials = this._requestGems, e.Type = b.ItemType.Gem, h.RpcComponent.Instance.Call(e, function(e) {
                    for (var t = [], n = {}, o = 0; o < e.Rewards.length; o++) {
                        var r = -e.Rewards[o].ItemId;
                        n[r] ? n[r]++ : n[r] = 1
                    }
                    var i = 0;
                    for (var a in n) t[i] = new d.UserItem_Model, t[i].ItemId = Number(a), t[i].Count = n[a], i++;
                    u.UIUtlity.ShwDisplayRewardPanel(t), c.Game.EventDispatcher.Emit(m.EventKeys.EVENT_GEM_QUICK_COMPOSE)
                })
            }, t.prototype.OnRequestLuckyCharm = function() {
                var e = this,
                    t = new d.Req_Item_CommonCompose;
                t.Type = I.ItemType.LuckyCharm, t.Materials = [];
                for (var n = this.LUCKY_CHARM_SELECT_COUNT_ARRAY[this._currentSelectToggleIndex], o = 0; o < this._luckyCharmMaterialSids.length; o += n) t.Materials.push({
                    Items: this._luckyCharmMaterialSids.slice(o, o + n)
                });
                h.RpcComponent.Instance.Call(t, function(t) {
                    if (!t.Rewards.length) return u.UIUtlity.ShowFloatingHint("luckycharm_composeFail".ToUILocale()), void e.DisPlay(!0);
                    c.UIManager.Instance.ShowUIPanel(_.PanelConfig.LuckyCharmComposeSuccessPanel.Path, t), c.Game.EventDispatcher.Emit(m.EventKeys.EVENT_LUCKYCHARM_QUICK_COMPOSE)
                })
            }, t.prototype.GetLuckyCharmMaterialArray = function() {
                var e = [];
                h.DataCenter.Instance.GetDataList(d.LuckyCharmShowHouse_Model).forEach(function(t) {
                    e.push(t.LuckyCharmId)
                }), this._isluckyCharmOnShow = !1;
                for (var t = [], n = [], o = h.DataCenter.Instance.GetDataList(d.LuckyCharmEquip_Model), r = this.LUCKY_CHARM_ID_ARRAY[this._currentMaterialToggleIndex], i = this._combineTimes * this.LUCKY_CHARM_SELECT_COUNT_ARRAY[this._currentSelectToggleIndex], a = 0; a < o.length; a++) {
                    var s = o[a];
                    if (!(t.length < i)) break;
                    s.ItemId != r || s.Locked || (s.OwnerId ? n.push(s.Sid) : (t.push(s.Sid), this._isluckyCharmOnShow || -1 == e.indexOf(s.Sid) || (this._isluckyCharmOnShow = !0)))
                }
                if (t.length < i && this.SelectHintToggle.isChecked)
                    for (a = 0; a < n.length && t.length < i; a++) t.push(n[a]), this._isluckyCharmOnShow || -1 == e.indexOf(n[a]) || (this._isluckyCharmOnShow = !0);
                return t
            }, t.prototype.OnSliderDragOver = function(e) {
                this._panelType == l.LuckyCharm ? this.Count.string = e + "/" + this._maxCount : this.Count.string = e.toString(), this._combineTimes = e, this.CurrencyBarItem.Init(I.CommonItemId.Coin, !1, this._oneTimeNeedCount * e)
            }, t.prototype.OnSelectHintToggle = function() {
                this.SetMaterialToggleArray(), this.SetCombineMaterial()
            }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Label)], t.prototype, "Tip", void 0), i([P(cc.Node)], t.prototype, "SelectMaterialContainer", void 0), i([P(cc.Label)], t.prototype, "CombineTitle", void 0), i([P(cc.Node)], t.prototype, "LastMaterialNode", void 0), i([P(cc.Node)], t.prototype, "NextMaterialNode", void 0), i([P(cc.Label)], t.prototype, "SuccessValueTip", void 0), i([P(cc.Label)], t.prototype, "SuccessValue", void 0), i([P(cc.Label)], t.prototype, "SelectTitle", void 0), i([P(cc.Node)], t.prototype, "LuckyCharmSelectToggleContainer", void 0), i([P([cc.Toggle])], t.prototype, "LuckyCharmSelectToggleArray", void 0), i([P([cc.Label])], t.prototype, "LuckyCharmSelectToggleDescArray", void 0), i([P(cc.Node)], t.prototype, "GemSelectToggleContainer", void 0), i([P([cc.Toggle])], t.prototype, "GemSelectToggleArray", void 0), i([P([cc.Label])], t.prototype, "GemSelectToggleDescArray", void 0), i([P(cc.Button)], t.prototype, "GemDetailButton", void 0), i([P(cc.Toggle)], t.prototype, "SelectHintToggle", void 0), i([P(cc.Label)], t.prototype, "SelectHint", void 0), i([P(y.default)], t.prototype, "SliderComponent", void 0), i([P(cc.Label)], t.prototype, "Count", void 0), i([P(f.default)], t.prototype, "CurrencyBarItem", void 0), i([P(cc.Button)], t.prototype, "CombineButton", void 0), i([P(cc.Label)], t.prototype, "CombineButtonLabel", void 0), i([w], t)
        }(c.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CommonQuickCombineMaterialComponent": "CommonQuickCombineMaterialComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/SliderComponent": "SliderComponent"
    }],
    CommonRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0a87539jVRIHqdrq73bX+Tu", "CommonRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/RankDetailComponent"),
            d = e("../Components/CustomToggleRollingLabel"),
            h = e("../../Components/RpcComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Components/Components"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../../ShareConsts/EnumType"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Tittle = null, t.MainNode = null, t.ReturnButton = null, t.ToggleContainer = null, t.RewardButton = null, t.RewardButtonLabel = null, t._selectToggle = 0, t._rankDataList = {}, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent", cc.Prefab), n = this.LoadDynamicAsset("Buttons/ToggleTopDownPageRollingLabel", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._rankDetailPrefab = e[0], o._togglePrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RewardButtonLabel.string = "reward".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rankDatas = t[0]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    if (e.prototype.PreloadByData.call(this), this._toggleIconArray = [], !this._rankDatas.ToggleIconRankId) return [2];
                                    switch (this._rankDatas.ToggleIconRankId) {
                                        case I.RankTypeId.WarAllianceScore:
                                            return [3, 1]
                                    }
                                    return [3, 3];
                                case 1:
                                    return [4, this.LoadDynamicAsset("StrongholdWarPanel/PNG/StrongholdWarAtlas", cc.SpriteAtlas)];
                                case 2:
                                    return t = n.sent(), this._toggleIconArray[0] = t.getSpriteFrame("Rank_Round"), this._toggleIconArray[1] = t.getSpriteFrame("Rank_Alliance"), this._toggleIconArray[2] = t.getSpriteFrame("Rank_Player"), [3, 4];
                                case 3:
                                    return [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.SetToggle(), this.SetRankComponent(this._selectToggle), this.SetTittleAndReward())
                }, t.prototype.SetToggle = function() {
                    this._toggleComponentArray = [];
                    for (var e = 0; e < this._rankDatas.RankIdArray.length; e++) {
                        var t = cc.instantiate(this._togglePrefab);
                        t.setParent(this.ToggleContainer);
                        var n = t.getComponent(d.default);
                        n.Init(this._rankDatas.ToggleNameArray[e], 32, this._toggleIconArray[e]), this._toggleComponentArray.push(n), t.name = e.toString(), t.on("toggle", this.OnSwitchToggle, this)
                    }
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    this._selectToggle != t && this.SetRankComponent(t)
                }, t.prototype.SetTittleAndReward = function() {
                    this.Tittle.string = this._rankDatas.RankIdArray[this._selectToggle].ToRankName(), this._rankDatas.IsRewardArray && this._rankDatas.IsRewardArray.length > 0 && (this.RewardButton.node.active = this._rankDatas.IsRewardArray[this._selectToggle])
                }, t.prototype.SetRankComponent = function(e) {
                    var t = this;
                    if (this._rankDetailItem || (this._rankDetailItem = cc.instantiate(this._rankDetailPrefab).getComponent(p.default), this._rankDetailItem.node.parent = this.MainNode), this._rankDataList[e]) this.SetRankData(e);
                    else {
                        var n = this._rankDatas.RankIdArray[e],
                            o = new c.Req_Player_GetRank;
                        o.RankType = n, h.RpcComponent.Instance.Call(o, function(n) {
                            t._rankDataList[e] = n, t.SetRankData(e)
                        })
                    }
                }, t.prototype.SetRankData = function(e) {
                    var t = this._rankDataList[e];
                    t.Data.Rows.length > 0 ? (this._selectToggle = e, this._rankDetailItem.SetUI(this._rankDatas.RankIdArray[this._selectToggle], t.Data.Rows, t.MyRank, t.MyRankData, !1)) : (this._toggleComponentArray[this._selectToggle].isChecked = !0, f.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())), this.SetTittleAndReward()
                }, t.prototype.OnReturnButtonClick = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRewardButtonClick = function() {
                    var e = {};
                    switch (this._rankDatas.RankIdArray[this._selectToggle]) {
                        case I.RankTypeId.WarAllianceScore:
                            var t = y.ConfigDataComponent.Instance.GetArrayConfig(g.WarRankRewards_Config),
                                n = [];
                            t.forEach(function(e) {
                                var t = {};
                                t.Id = e.Id, t.Ranks = [e.Id, e.Id], t.Rewards = e.Rewards, n.push(t)
                            }), e.Data = n
                    }
                    e.MyRank = this._rankDataList[this._selectToggle].MyRank, e.IsInRank = this._rankDataList[this._selectToggle].MyRank > 0, l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonRankRewardPanel.Path, e)
                }, i([v(cc.Label)], t.prototype, "Tittle", void 0), i([v(cc.Node)], t.prototype, "MainNode", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([v(cc.Node)], t.prototype, "ToggleContainer", void 0), i([v(cc.Button)], t.prototype, "RewardButton", void 0), i([v(cc.Label)], t.prototype, "RewardButtonLabel", void 0), i([C], t)
            }(l.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggleRollingLabel": "CustomToggleRollingLabel",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    CommonRankRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d83bebAlKpCdqxhyheOO3lf", "CommonRankRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Rank = null, t.No1 = null, t.No2 = null, t.No3 = null, t.RewardNode = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function(e) {
                    this._data = e, this.InitNodes(), this.SetRank(), this.SetReward()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetRank = function() {
                    this.No1.active = this._data.Ranks[0] == this._data.Ranks[1] && 1 == this._data.Ranks[0], this.No2.active = this._data.Ranks[0] == this._data.Ranks[1] && 2 == this._data.Ranks[0], this.No3.active = this._data.Ranks[0] == this._data.Ranks[1] && 3 == this._data.Ranks[0], this.Rank.node.active = this._data.Ranks[0] != this._data.Ranks[1] || this._data.Ranks[0] > 3, this._data.Ranks[0] > 0 && 0 == this._data.Ranks[1] ? this.Rank.string = this._data.Ranks[0] + "+" : this._data.Ranks[0] > 3 && this._data.Ranks[0] == this._data.Ranks[1] ? this.Rank.string = this._data.Ranks[0].toString() : this.Rank.string = this._data.Ranks[0] + "-" + this._data.Ranks[1]
                }, t.prototype.SetReward = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._data.Rewards.forEach(function(e, n) {
                                        var o = e.Items[0],
                                            r = e.Items[1];
                                        if (!t._itemNodes[n]) {
                                            var i = cc.instantiate(t._itemPrefab);
                                            i.parent = t.RewardNode, t._itemNodes[n] = i
                                        }
                                        t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(p.ItemComponent).Init({
                                            ItemId: o,
                                            Count: r
                                        }, p.ItemComponentType.ItemCommon)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetWidth = function(e) {
                    var t = this.node.getChildByName("Rank");
                    t && (t.width = e, this.node.width = e)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemNodes = []
                }, i([g(cc.Label)], t.prototype, "Rank", void 0), i([g(cc.Node)], t.prototype, "No1", void 0), i([g(cc.Node)], t.prototype, "No2", void 0), i([g(cc.Node)], t.prototype, "No3", void 0), i([g(cc.Node)], t.prototype, "RewardNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CommonRankRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1bd4dejx4tB9JSWo7j7pd/g", "CommonRankRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/ItemComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./CommonRankRewardComponent"),
            f = e("../Components/CustomToggle"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.RuleTipLabel = null, t.RuleButton = null, t.ParentNode = null, t.RankContainer = null, t.RankDescLabel = null, t.MyRankNode = null, t.MyRankLabel = null, t.RewardNode = null, t.NoRankLabel = null, t.ToggleContainerBg = null, t.ToggleContainer = null, t.ToggleScrollView = null, t._itemNodes = [], t._cellNodes = [], t._data = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.RuleButton.node.off("click", this.OnRuleButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CommonPanel/SubItems/CommonRankRewardComponent", cc.Prefab), n = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._cellPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._dataArray = t[1], t[0] ? this._currentData = t[0] : this._currentData = this._dataArray[0]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this._dataArray ? (t = this, [4, this.LoadDynamicAsset("Buttons/ToggleBottom", cc.Prefab)]) : [3, 2];
                                case 1:
                                    t._togglePrefab = n.sent(), this.SetToggle(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "elementTrial_rank_reward".ToUILocale(), this.RankDescLabel.string = "elementTrial_myRank".ToUILocale(), this.NoRankLabel.string = "openServer_heroTest_noRatingYet".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetToggle = function() {
                    var e;
                    this.ToggleContainerBg.active = this._dataArray && this._dataArray.length > 1, this._dataArray.length > 4 ? (e = this.ToggleScrollView.content, this.ToggleContainer.active = !1, this.ToggleScrollView.node.active = !0) : (e = this.ToggleContainer, this.ToggleScrollView.node.active = !1, this.ToggleContainer.active = !0);
                    for (var t = 0; t < this._dataArray.length; t++) {
                        var n = cc.instantiate(this._togglePrefab);
                        n.setParent(e), n.getComponent(f.default).Init(this._dataArray[t].ToggleTitle), n.name = t.toString(), n.on("toggle", this.OnSwitchToggle, this)
                    }
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    this._selectToggle != t && (this._selectToggle = t, this._currentData = this._dataArray[this._selectToggle], this.SetUIContent())
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetMyRank(), this.SetRewardList(), this.SetRuleNode()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this._cellNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetMyRank = function() {
                    var e = this;
                    if (this.RankContainer.active = !1, !this._currentData.IsNotShowMyRank && (this.RankContainer.active = !0, this.NoRankLabel.node.active = !this._currentData.IsInRank, this.MyRankNode.active = this._currentData.IsInRank, this._currentData.IsInRank)) {
                        if (this._currentData.MyRank && this._currentData.MyRank > 0) this.MyRankLabel.string = this._currentData.MyRank.toString();
                        else {
                            var t = this.FindMaxRank();
                            this.MyRankLabel.string = t + "+"
                        }
                        var n = this.FindMyReward(this._currentData.MyRank);
                        n && n.Rewards.length > 0 && n.Rewards.forEach(function(t, n) {
                            var o = t.Items[0],
                                r = t.Items[1];
                            if (!e._itemNodes[n]) {
                                var i = cc.instantiate(e._itemPrefab);
                                i.parent = e.RewardNode, e._itemNodes[n] = i
                            }
                            e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(p.ItemComponent).Init({
                                ItemId: o,
                                Count: r
                            }, p.ItemComponentType.ItemCommon)
                        })
                    }
                }, t.prototype.FindMaxRank = function() {
                    var e = this._currentData.Data[this._currentData.Data.length - 1].Ranks[1];
                    return 0 == e && (e = this._currentData.Data[this._currentData.Data.length - 1].Ranks[0]), e
                }, t.prototype.SetRewardList = function() {
                    var e = this;
                    this._currentData.Data.forEach(function(t, n) {
                        if (!e._cellNodes[n]) {
                            var o = cc.instantiate(e._cellPrefab);
                            o.parent = e.ParentNode, e._cellNodes[n] = o
                        }
                        e._cellNodes[n].active = !0, e._cellNodes[n].getComponent(h.default).InitUI(t)
                    })
                }, t.prototype.SetRuleNode = function() {
                    this._currentData.RuleData && this._currentData.RuleData.name ? this.RuleButton.node.active = !0 : this.RuleButton.node.active = !1, this._currentData.RuleTip ? (this.RuleTipLabel.node.active = !0, this.RuleTipLabel.string = this._currentData.RuleTip) : this.RuleTipLabel.node.active = !1
                }, t.prototype.FindMyReward = function(e) {
                    for (var t = null, n = 0; n < this._currentData.Data.length; n++) {
                        if (e >= this._currentData.Data[n].Ranks[0] && e <= this._currentData.Data[n].Ranks[1]) {
                            t = this._currentData.Data[n];
                            break
                        }
                        0 == this._currentData.Data[n].Ranks[1] && (t = this._currentData.Data[n])
                    }
                    return t
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = this._currentData.RuleData;
                    d.UIUtlity.ShowRulePanel(e)
                }, i([m(cc.Label)], t.prototype, "TitleLabel", void 0), i([m(cc.Label)], t.prototype, "RuleTipLabel", void 0), i([m(cc.Button)], t.prototype, "RuleButton", void 0), i([m(cc.Node)], t.prototype, "ParentNode", void 0), i([m(cc.Node)], t.prototype, "RankContainer", void 0), i([m(cc.Label)], t.prototype, "RankDescLabel", void 0), i([m(cc.Node)], t.prototype, "MyRankNode", void 0), i([m(cc.Label)], t.prototype, "MyRankLabel", void 0), i([m(cc.Node)], t.prototype, "RewardNode", void 0), i([m(cc.Label)], t.prototype, "NoRankLabel", void 0), i([m(cc.Node)], t.prototype, "ToggleContainerBg", void 0), i([m(cc.Node)], t.prototype, "ToggleContainer", void 0), i([m(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonRankRewardComponent": "CommonRankRewardComponent"
    }],
    CommonRateGroupItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "087cdddnpJNTKoFBLKEIYG5", "CommonRateGroupItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("./RateCellItem"),
            u = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("./ItemComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("./CrazyWheelPanelRateShowComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Desc = null, t.Grid = null, t.RATE_CELL_ITEM_PATH = "ItemsComponent/RateCellItem", t._cellItemArray = [], t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(y.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(y.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.SetUI = function(e, t, n, o) {
                    void 0 === n && (n = null), this._chanceConfigId = e, this._rateDataList = t, this._title = n, this._scrollViewRect = o, this.InitGrid()
                }, t.prototype.SetDesc = function() {
                    if (this.Desc.string = null, null != this._chanceConfigId) {
                        var e = "CardShowChance_desc" + this._chanceConfigId,
                            t = l.ConfigDataComponent.Instance.GetLocale(e);
                        this.Desc.string = t, this.Desc.node.active = !0
                    } else null != this._title ? (this.Desc.string = this._title, this.Desc.node.active = !0) : this.Desc.node.active = !1
                }, t.prototype.InitGrid = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, p, y, m, I, _ = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this.node.opacity = 0, null != this._cellItemPrefab ? [3, 5] : (e = void 0, 0 != this._rateDataList[0].Items[0] ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("CrazyWheelPanel/Components/CrazyWheelPanelRateShowComponent", cc.Prefab)]);
                                case 1:
                                    return e = s.sent(), [3, 4];
                                case 2:
                                    return [4, u.AssetsManager.Instance.LoadAsset(this.RATE_CELL_ITEM_PATH, cc.Prefab)];
                                case 3:
                                    e = s.sent(), s.label = 4;
                                case 4:
                                    if (!this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._cellItemPrefab = e, s.label = 5;
                                case 5:
                                    for (t = 0; t < this._cellItemArray.length; t++) this._cellItemArray[t].node.active = !1;
                                    for (t = 0; t < this._rateDataList.length; t++) null == this._cellItemArray[t] && (n = void 0, (n = 0 == this._rateDataList[0].Items[0] ? cc.instantiate(this._cellItemPrefab).getComponent(g.default) : cc.instantiate(this._cellItemPrefab).getComponent(c.default)).node.parent = this.Grid.node, this._cellItemArray[t] = n), o = this._rateDataList[t].Items[2], void 0, r = o > 0 ? this._rateDataList[t].Items[2].ToFixedExact(3) : "", i = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, this._rateDataList[t].Items[0]), a = h.ConfigDataComponent.Instance.GetConfigById(d.ItemHeroCard_Config, this._rateDataList[t].Items[0]), l = h.ConfigDataComponent.Instance.GetConfigById(d.ItemPiece_Config, this._rateDataList[t].Items[0]), 0 == this._rateDataList[0].Items[0] ? (y = this._cellItemArray[t], p = this._rateDataList[t].Items, y.Set(p[0], p[1], p[2])) : (y = this._cellItemArray[t], null != i ? y.InitUI({
                                        ItemId: i.Id,
                                        Count: this._rateDataList[t].Items[1],
                                        ElementType: i.ElementType,
                                        StarLevel: i.StarLevel
                                    }, f.ItemComponentType.HeroInfo, r) : null != a ? (m = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, a.HeroId), y.InitUI({
                                        ItemId: a.HeroId,
                                        Count: this._rateDataList[t].Items[1],
                                        ElementType: m.ElementType,
                                        StarLevel: m.StarLevel
                                    }, f.ItemComponentType.HeroInfo, r)) : null != l ? (I = h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, this._rateDataList[t].Items[0]), y.InitUI({
                                        ItemId: this._rateDataList[t].Items[0],
                                        Count: this._rateDataList[t].Items[1],
                                        StarLevel: I.Star,
                                        ElementType: I.ElementType
                                    }, f.ItemComponentType.ItemCommon, r)) : y.InitUI({
                                        ItemId: this._rateDataList[t].Items[0],
                                        Count: this._rateDataList[t].Items[1]
                                    }, f.ItemComponentType.ItemCommon, r)), this._cellItemArray[t].node.active = !0;
                                    return this.Grid.updateLayout(), this.scheduleOnce(function() {
                                        _.node && (_.node.opacity = 255, _.SetDesc(), _._scrollViewRect && _.CheckVisible(_._scrollViewRect))
                                    }, 0), [2]
                            }
                        })
                    })
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && p.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([_(cc.Label)], t.prototype, "Desc", void 0), i([_(cc.Layout)], t.prototype, "Grid", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "./CrazyWheelPanelRateShowComponent": "CrazyWheelPanelRateShowComponent",
        "./ItemComponent": "ItemComponent",
        "./RateCellItem": "RateCellItem"
    }],
    CommonRatePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d3326xJV5tJ5J8ow5IurjBc", "CommonRatePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ShowRateType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            p = e("../../../EZFramework/UIFrame/UIPanelType"),
            d = e("../../../EZFramework/EZDefine/SysDefine"),
            h = e("../../../EZFramework/Auxiliary/EZLog"),
            f = e("../Components/CommonRateGroupItem"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property;
        (function(e) {
            e[e.Common = 0] = "Common", e[e.Wish = 1] = "Wish", e[e.Sail = 2] = "Sail", e[e.LuckyStar = 3] = "LuckyStar", e[e.Personality = 4] = "Personality", e[e.Rebate = 5] = "Rebate", e[e.StockUpFestival = 6] = "StockUpFestival", e[e.DiamondSummon = 7] = "DiamondSummon", e[e.ChaosSummon = 8] = "ChaosSummon", e[e.ChaosSummonActivity = 9] = "ChaosSummonActivity", e[e.LimitTimeSummon = 10] = "LimitTimeSummon", e[e.PremiumLuckyBag = 11] = "PremiumLuckyBag", e[e.CrazyWheel = 12] = "CrazyWheel", e[e.CircusMaze = 13] = "CircusMaze", e[e.BeatWatermelon = 14] = "BeatWatermelon", e[e.NewPersonality = 15] = "NewPersonality", e[e.NewYearWeapon = 16] = "NewYearWeapon", e[e.ActivityOpenBox = 17] = "ActivityOpenBox", e[e.StarPray = 18] = "StarPray", e[e.LuckySummon = 19] = "LuckySummon"
        })(l = n.ShowRateType || (n.ShowRateType = {}));
        var b = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(d.UINodeType.Tip, !1), t.Tittle = null, t.Scroll = null, t.GroupGrid = null, t.GroupItemPath = "SummonHeroPanel/Private/CommonRateGroupItem", t._groupItemPrefab = null, t._groupItemArray = [], t._showChanceConfigArray = [], t._rateDataList = [], t._sailTitles = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.GroupItemPath, cc.Prefab)];
                            case 1:
                                return t._groupItemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this);
                var t = this.Scroll.node.getBoundingBoxToWorld();
                this._scrollViewRect = new cc.Rect(t.x, t.y, this.Scroll.node.width, this.Scroll.node.height), this.Scroll.node.on("scrolling", this.OnScrolling, this)
            }, t.prototype.OnScrolling = function() {
                c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_CHECK_BUNDINGBOX, this._scrollViewRect)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._showRateType = t[0];
                var n = "showRate".ToUILocale();
                switch (this._showRateType) {
                    case l.Common:
                        for (var o = t[1], r = m.ConfigDataComponent.Instance.GetConfigById(y.CardCommonSummon_Config, o).ShowLibs, i = [], a = 0; a < r.length; a++) i.push(r[a].Items[0]);
                        this._showLibsData = i;
                        break;
                    case l.Wish:
                        this._libsData = t[1];
                        break;
                    case l.Sail:
                        this._rateDataList = t[1], this._sailTitles = t[2], n = "explore_preview".ToUILocale();
                        break;
                    case l.LuckyStar:
                        this._luckyStarStageConfig = t[1], n = "explore_preview".ToUILocale();
                        break;
                    case l.Personality:
                        this._libsData = t[1], n = "personalityCall_probability".ToUILocale();
                        break;
                    case l.NewPersonality:
                        this._libsData = t[1], n = "newPersonality_summon_rate".ToUILocale();
                        break;
                    case l.Rebate:
                        this._libsData = t[1], n = "extraRewardPreview".ToUILocale();
                        break;
                    case l.DiamondSummon:
                        this._libsData = t[1], n = "timeLimited_diamondProbablity".ToUILocale();
                        break;
                    case l.StockUpFestival:
                        this._libsData = t[1], n = "ratepanel_tittle".ToUILocale();
                        break;
                    case l.ChaosSummon:
                        this._showLibsData = [t[1]];
                        break;
                    case l.ChaosSummonActivity:
                        this._libsData = t[1];
                        break;
                    case l.LimitTimeSummon:
                        this._limitTimeCallConfig = t[1], n = "explore_preview".ToUILocale();
                        break;
                    case l.PremiumLuckyBag:
                        this._libsData = t[1], n = "explore_preview".ToUILocale();
                        break;
                    case l.CrazyWheel:
                        this._libsData = t[1];
                        break;
                    case l.CircusMaze:
                        this._libsData = t[1], this._rateDataList = [this._libsData], n = "circusMaze_preview_title".ToUILocale();
                        break;
                    case l.BeatWatermelon:
                        this._libsData = t[1], this._beatWatermelonRewards = t[2];
                        break;
                    case l.NewYearWeapon:
                    case l.ActivityOpenBox:
                    case l.StarPray:
                        this._libsData = t[1];
                        break;
                    case l.LuckySummon:
                        this._rateDataList = t[1], this._sailTitles = t[2]
                }
                this.Tittle.string = n
            }, t.prototype.ResetPanelState = function() {
                switch (e.prototype.ResetPanelState.call(this), this._showRateType) {
                    case l.Common:
                    case l.ChaosSummon:
                        this.LoadShowChanceConfig(), this.InitRateData();
                        break;
                    case l.StarPray:
                    case l.Wish:
                        this.InitRateData_Wish();
                        break;
                    case l.Sail:
                        break;
                    case l.LuckyStar:
                        this.InitRateData_LuckyStar();
                        break;
                    case l.Personality:
                    case l.NewPersonality:
                    case l.NewYearWeapon:
                        this.InitRateData_Personality();
                        break;
                    case l.Rebate:
                    case l.StockUpFestival:
                        this.InitRateData_Rebate();
                        break;
                    case l.DiamondSummon:
                        this.InitRateData_Diamond();
                        break;
                    case l.ChaosSummonActivity:
                        this.InitRateData_Rebate();
                        break;
                    case l.LimitTimeSummon:
                        this.InitRateData_LimitTimeSummon();
                        break;
                    case l.PremiumLuckyBag:
                        this.InitRateData_PremiumLuckyBag();
                        break;
                    case l.CrazyWheel:
                        this.InitRateData_CrazyWheel();
                        break;
                    case l.BeatWatermelon:
                        this.InitRateData_BeatWatermelon();
                        break;
                    case l.ActivityOpenBox:
                        this.InitRateData_ActivityOpenBox();
                        break;
                    case l.LuckySummon:
                }
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitGroupGrid()
            }, t.prototype.LoadShowChanceConfig = function() {
                this._showChanceConfigArray = [];
                for (var e = 0; e < this._showLibsData.length; e++) {
                    var t = m.ConfigDataComponent.Instance.GetConfigById(y.CardShowChance_Config, this._showLibsData[e]);
                    this._showChanceConfigArray.push(t)
                }
            }, t.prototype.InitRateData = function() {
                var e = 0;
                this._rateDataList = [];
                for (var t = 0; t < this._showChanceConfigArray.length; t++)
                    for (var n = this._showChanceConfigArray[t].ShowLib, o = 0; o < n.length; o++) e += s = n[o].Items[2];
                for (h.EZLog.Log(e), t = 0; t < this._showChanceConfigArray.length; t++) {
                    var r = [];
                    for (n = this._showChanceConfigArray[t].ShowLib, o = 0; o < n.length; o++) {
                        var i = n[o].Items[0],
                            a = n[o].Items[1],
                            s = n[o].Items[2] / 1e3;
                        r[o] = new g.IntArray, r[o].Items = [i, a, s]
                    }
                    this._rateDataList[t] = r
                }
            }, t.prototype.InitRateData_Wish = function() {
                for (var e = 0; e < this._libsData.length; e++) r = this._libsData[e].Items[2];
                var t = [];
                for (this._rateDataList = [], e = 0; e < this._libsData.length; e++) {
                    var n = this._libsData[e].Items[0],
                        o = this._libsData[e].Items[1],
                        r = this._libsData[e].Items[2] / 1e3;
                    t[e] = new g.IntArray, t[e].Items = [n, o, r]
                }
                this._rateDataList[0] = t
            }, t.prototype.InitRateData_LuckyStar = function() {
                var e = [this._luckyStarStageConfig.AdvanceRewards, this._luckyStarStageConfig.Rewards];
                this._rateDataList = [];
                for (var t = 0; t < e.length; t++) {
                    for (var n = [], o = 0; o < e[t].length; o++) {
                        var r = m.ConfigDataComponent.Instance.GetConfigById(y.LuckyStarRewards_Config, e[t][o].Items[0]);
                        n[o] = new g.IntArray, n[o].Items = [r.Rewards[0].Items[0], r.Rewards[0].Items[1], e[t][o].Items[1] / 10]
                    }
                    this._rateDataList[t] = n
                }
                this._rateDataList = [this._luckyStarStageConfig.AdvanceRewards, this._luckyStarStageConfig.Rewards], this._sailTitles = ["mall_luckyStar_superRewards".ToUILocale(), "mall_luckyStar_otherRewards".ToUILocale()]
            }, t.prototype.InitRateData_Personality = function() {
                for (var e = 0; e < this._libsData.length; e++) r = this._libsData[e].Items[2];
                var t = [];
                for (this._rateDataList = [], e = 0; e < this._libsData.length; e++) {
                    var n = this._libsData[e].Items[0],
                        o = this._libsData[e].Items[1],
                        r = this._libsData[e].Items[2] / 1e3;
                    t[e] = new g.IntArray, t[e].Items = [n, o, r]
                }
                this._rateDataList[0] = t
            }, t.prototype.InitRateData_Rebate = function() {
                for (var e = 0, t = 0; t < this._libsData.length; t++) e += i = this._libsData[t].Items[2];
                var n = [];
                for (this._rateDataList = [], t = 0; t < this._libsData.length; t++) {
                    var o = this._libsData[t].Items[0],
                        r = this._libsData[t].Items[1],
                        i = 100 * this._libsData[t].Items[2] / e;
                    n[t] = new g.IntArray, n[t].Items = [o, r, i]
                }
                this._rateDataList[0] = n
            }, t.prototype.InitRateData_Diamond = function() {
                for (var e = 0; e < this._libsData.length; e++) r = this._libsData[e].Items[2];
                var t = [];
                for (this._rateDataList = [], e = 0; e < this._libsData.length; e++) {
                    var n = this._libsData[e].Items[0],
                        o = this._libsData[e].Items[1],
                        r = this._libsData[e].Items[2] / 1e3;
                    t[e] = new g.IntArray, t[e].Items = [n, o, r]
                }
                this._rateDataList[0] = t
            }, t.prototype.InitRateData_LimitTimeSummon = function() {
                var e = this,
                    t = [];
                this._limitTimeCallConfig.__CommonSummon[0].ShowLibs.forEach(function(n, o) {
                    var r = 0,
                        i = e._limitTimeCallConfig.__ShowChance.find(function(e) {
                            return e.Id == n.Items[0]
                        });
                    if (i) {
                        for (var a = i.ShowLib, s = [], l = 0; l < a.length; l++) {
                            var c = a[l].Items[0],
                                u = a[l].Items[1],
                                p = a[l].Items[2],
                                d = p / 1e3;
                            r += p, s[l] = new g.IntArray, s[l].Items = [c, u, d]
                        }
                        var h = e._limitTimeCallConfig._Locale.find(function(e) {
                            return e.Id == i.Id
                        });
                        e._rateDataList[o] = s, e._sailTitles[o] = h ? h.Content : "", t.push(r)
                    }
                });
                var n = 0;
                t.forEach(function(e) {
                    n += e
                }), t.forEach(function(t, o) {
                    var r = e._sailTitles[o];
                    r && (e._sailTitles[o] = r.Fmt(Math.floor(t / n)))
                })
            }, t.prototype.InitRateData_PremiumLuckyBag = function() {
                this._rateDataList.forEach(function(e) {
                    e[0].Items[2]
                });
                for (var e = [], t = this._libsData, n = 0; n < t.length; n++) {
                    var o = t[n].Items[0],
                        r = t[n].Items[1],
                        i = t[n].Items[2] / 1e3;
                    e[n] = new g.IntArray, e[n].Items = [o, r, i]
                }
                this._rateDataList = [e]
            }, t.prototype.InitRateData_CrazyWheel = function() {
                for (var e = 0, t = 0; t < this._libsData.length; t++) e += a = this._libsData[t].Items[2];
                var n = [],
                    o = [];
                for (this._rateDataList = [], t = 0; t < this._libsData.length; t++) {
                    var r = this._libsData[t].Items[0],
                        i = this._libsData[t].Items[1],
                        a = this._libsData[t].Items[2] / e,
                        s = new g.IntArray;
                    0 == r ? (s.Items = [r, i / 10, 100 * a], n.push(s)) : (s.Items = [r, i, 100 * a], o.push(s))
                }
                this._rateDataList[0] = n, this._rateDataList[1] = o, this._sailTitles = ["CrazyWheel_BigRewardRate".ToUILocale(), "CrazyWheel_OtherRate".ToUILocale()]
            }, t.prototype.InitRateData_BeatWatermelon = function() {
                var e = {};
                this._beatWatermelonRewards.forEach(function(t) {
                    e[t.Id] = t.Rewards
                }), this._rateDataList = [], this._sailTitles = [];
                for (var t = 0; t < this._libsData.length; t++) {
                    for (var n = e[this._libsData[t].Items[1]], o = 0, r = 0; r < n.length; r++) o += l = n[r].Items[2];
                    var i = [];
                    for (r = 0; r < n.length; r++) {
                        var a = n[r].Items[0],
                            s = n[r].Items[1],
                            l = n[r].Items[2] / o,
                            c = new g.IntArray;
                        c.Items = [a, s, 100 * l], i.push(c)
                    }
                    this._rateDataList[t] = i, this._sailTitles[t] = "ActivityBeatWatermelon_Rate_SailTitle".ToUILocale().Fmt(this._libsData[t].Items[0])
                }
            }, t.prototype.InitGroupGrid = function() {
                for (var e = 0; e < this._groupItemArray.length; e++) this._groupItemArray[e].node.active = !1;
                for (e = 0; e < this._rateDataList.length; e++) {
                    if (null == this._groupItemArray[e]) {
                        var t = cc.instantiate(this._groupItemPrefab).getComponent(f.default);
                        t.node.parent = this.GroupGrid.node, this._groupItemArray[e] = t
                    }
                    this._showChanceConfigArray.length > 0 ? this._groupItemArray[e].SetUI(this._showChanceConfigArray[e].Id, this._rateDataList[e], null, this._scrollViewRect) : this._groupItemArray[e].SetUI(null, this._rateDataList[e], this._sailTitles[e], this._scrollViewRect), this._groupItemArray[e].node.active = !0
                }
                this._sailTitles = [], this._showChanceConfigArray = [], this.GroupGrid.updateLayout()
            }, t.prototype.InitRateData_ActivityOpenBox = function() {
                for (var e = 0, t = 0; t < this._libsData.length; t++) e += i = this._libsData[t].Items[2];
                this._rateDataList = [];
                var n = [];
                for (t = 0; t < this._libsData.length; t++) {
                    var o = this._libsData[t].Items[0],
                        r = this._libsData[t].Items[1],
                        i = this._libsData[t].Items[2] / e,
                        a = new g.IntArray;
                    a.Items = [o, r, 100 * i], n.push(a)
                }
                this._rateDataList[0] = n, this._sailTitles = ["CrazyWheel_BigRewardRate".ToUILocale(), "CrazyWheel_OtherRate".ToUILocale()]
            }, i([v(cc.Label)], t.prototype, "Tittle", void 0), i([v(cc.ScrollView)], t.prototype, "Scroll", void 0), i([v(cc.Layout)], t.prototype, "GroupGrid", void 0), i([C], t)
        }(u.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Components/CommonRateGroupItem": "CommonRateGroupItem"
    }],
    CommonRenewComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "29516l3QzxG7IGxV9ExSwCq", "CommonRenewComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../ShareConsts/EnumType"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = e("../Panel/CommonRenewPanel"),
            u = e("../Panel/MallPrivilegeMainPanel"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RenewTag = null, t.GoButton = null, t.GoButtonLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.GoButton.node.on("click", this.OnGoButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.GoButton.node.off("click", this.OnGoButtonClick, this)
                }, t.prototype.onLoad = function() {
                    this.GoButtonLabel.string = "task_goto".ToUILocale()
                }, t.prototype.Init = function(e, t) {
                    switch (this._panelType = e, this._renewTypeData = t, e) {
                        case c.RenewPanelType.Mall:
                            this.RenewTag.string = ("CommonRenew_Tag_Mall_" + t[0]).ToUILocale();
                            break;
                        case c.RenewPanelType.WarToken:
                            this.RenewTag.string = ("CommonRenew_Tag_WorToken_" + t[0]).ToUILocale()
                    }
                }, t.prototype.OnGoButtonClick = function() {
                    if (this._panelType == c.RenewPanelType.Mall) switch (this._renewTypeData[0]) {
                        case c.RenewMallType.Privilege:
                            a.UIManager.Instance.ShowUIPanel(l.PanelConfig.MallPrivilegeGiftPanel.Path, u.MallPrivilegeBasePageType.Subscribe);
                            break;
                        case c.RenewMallType.MonthCard:
                            a.UIManager.Instance.ShowUIPanel(l.PanelConfig.MallNewPanel.Path, [s.MallPageType.DailySelected, s.GiftPackType.MonthCard]);
                            break;
                        case c.RenewMallType.GoodFund:
                            a.UIManager.Instance.ShowUIPanel(l.PanelConfig.MallSuperFundPanel.Path)
                    } else this._panelType == c.RenewPanelType.WarToken && a.UIManager.Instance.ShowUIPanel(l.PanelConfig.WarTokenListPanel.Path, !0, this._renewTypeData[1])
                }, i([h(cc.Label)], t.prototype, "RenewTag", void 0), i([h(cc.Button)], t.prototype, "GoButton", void 0), i([h(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Panel/CommonRenewPanel": "CommonRenewPanel",
        "../Panel/MallPrivilegeMainPanel": "MallPrivilegeMainPanel"
    }],
    CommonRenewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8c50aEUG4NCirpGmCi7xLTo", "CommonRenewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RenewMallType = n.RenewPanelType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/GameRecord"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/CommonRenewComponent"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.Mall = 0] = "Mall", e[e.WarToken = 1] = "WarToken"
        })(l = n.RenewPanelType || (n.RenewPanelType = {})),
        function(e) {
            e[e.Privilege = 0] = "Privilege", e[e.MonthCard = 1] = "MonthCard", e[e.GoodFund = 2] = "GoodFund"
        }(n.RenewMallType || (n.RenewMallType = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RenewTip = null, t.CustomLayout = null, t.SelectToggle = null, t.SelectTip = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("CommonPanel/SubItems/CommonRenewComponent", cc.Prefab)];
                            case 1:
                                return t._renewComponentPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "CommonRenew_Title".ToUILocale(), this.SelectTip.string = "hint_panel_checkToggle_dailyHint".ToUILocale(), this.SelectToggle.node.on("toggle", this.OnSelectToggleClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._panelType = t[0], this._renewTypeArray = t[1]
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), t) {
                    if (this._panelType == l.WarToken) {
                        for (var n = [], o = 0; o < this._renewTypeArray.length; o++) {
                            var r = this._renewTypeArray[o][1],
                                i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, r);
                            i && 0 == i.IntArray[0] && n.push(this._renewTypeArray[o])
                        }
                        if (0 == n.length) return void c.UIManager.Instance.QuitPanelStack(g.PanelConfig.CommonRenewPanel.Path);
                        this._renewTypeArray = n, this.CustomLayout.RenderLayOut(this._renewTypeArray.length)
                    }
                } else this.RenewTip.string = ("CommonRenew_Tip_" + this._panelType).ToUILocale(), this.CustomLayout.Init(this._renewComponentPrefab), this.CustomLayout.RenderLayOut(this._renewTypeArray.length)
            }, t.prototype.OnSelectToggleClick = function() {
                var e = h.default.GetItem(h.GameRecordDefine.RenewPanelTip),
                    t = e ? JSON.parse(e) : {};
                t[this._panelType] = this.SelectToggle.isChecked ? p.RpcComponent.Instance.ServerTime : null, h.default.SetItem(h.GameRecordDefine.RenewPanelTip, JSON.stringify(t))
            }, t.prototype.RefreshCustomLayout = function(e, t) {
                var n = this;
                t == this.CustomLayout && e.forEach(function(e, t) {
                    e.getComponent(y.default).Init(n._panelType, n._renewTypeArray[t])
                })
            }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "RenewTip", void 0), i([_(d.default)], t.prototype, "CustomLayout", void 0), i([_(cc.Toggle)], t.prototype, "SelectToggle", void 0), i([_(cc.Label)], t.prototype, "SelectTip", void 0), i([I], t)
        }(c.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CommonRenewComponent": "CommonRenewComponent",
        "../Components/CustomLayout": "CustomLayout"
    }],
    CommonRewardBox: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a23fa6z/CJP/o2aRZyKeUI2", "CommonRewardBox");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CommonRewardBoxType = void 0;
        var a, s = e("../Auxiliary/UIUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Final = 1] = "Final"
        })(a = n.CommonRewardBoxType || (n.CommonRewardBoxType = {}));
        var p = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.BoxBg = null, t.BoxShadow = null, t.IntegralLabel = null, t.CheckSign = null, t.ClickBtn = null, t._moveAnim = null, t._isInit = !1, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.ClickBtn.node.on("click", this.OnRewardClick, this)
            }, t.prototype.Init = function(e) {
                this._data = e, this._isInit || (this.SetUIStyle(), this._isInit = !0, this.SetIntegralPoint()), this.CreateAnimation(), this.SetAnimation(), this.SetBoxState()
            }, t.prototype.SetUIStyle = function() {
                this._data.RewardType == a.Normal ? (this.BoxBg.spriteFrame = this._data.Box1sprite, this.BoxShadow.spriteFrame = this._data.Box1Masksprite) : (this.BoxBg.spriteFrame = this._data.Box2sprite, this.BoxShadow.spriteFrame = this._data.Box2Masksprite)
            }, t.prototype.SetIntegralPoint = function() {
                this.IntegralLabel.string = this._data.CurNodePoint.FmtCurrency()
            }, t.prototype.CreateAnimation = function() {
                if (null == this._moveAnim) {
                    var e = cc.tween(this.BoxBg.node).by(.2, {
                            position: cc.v3(0, 10, 0),
                            scaleY: .13
                        }, {
                            easing: "quadOut"
                        }),
                        t = cc.tween(this.BoxBg.node).by(.2, {
                            position: cc.v3(0, -10, 0),
                            scaleY: -.13
                        }, {
                            easing: "quadIn"
                        }),
                        n = cc.tween(this.BoxBg.node).delay(.5);
                    this._moveAnim = cc.tween(this.BoxBg.node).sequence(e, t, e, t, n).repeatForever()
                }
            }, t.prototype.SetAnimation = function() {
                this.BoxBg.node.y = this.BoxBg.node.height / 2 * -1 * this.BoxBg.node.scaleY, this.BoxBg.node.scaleY = .53, !this._data.IsReceive && this._data.RealPoint >= this._data.CurNodePoint ? this._moveAnim.start() : this._moveAnim.stop()
            }, t.prototype.SetBoxState = function() {
                this.CheckSign.active = this._data.IsReceive
            }, t.prototype.OnRewardClick = function() {
                this._data.RealPoint < this._data.CurNodePoint || this._data.IsReceive ? s.UIUtlity.ShowHintPanel("reward".ToUILocale(), this._data.RewardArray) : this._data.Callback && this._data.Callback(this._data.Index)
            }, Object.defineProperty(t.prototype, "Data", {
                get: function() {
                    return this._data
                },
                enumerable: !1,
                configurable: !0
            }), i([u(cc.Sprite)], t.prototype, "BoxBg", void 0), i([u(cc.Sprite)], t.prototype, "BoxShadow", void 0), i([u(cc.Label)], t.prototype, "IntegralLabel", void 0), i([u(cc.Node)], t.prototype, "CheckSign", void 0), i([u(cc.Button)], t.prototype, "ClickBtn", void 0), i([c], t)
        }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CommonRewardSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5647dgMX6NNd6cDN6vmwSFH", "CommonRewardSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/ItemComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Tag = null, t.RewardNode = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t._itemPrefab = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale(), this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0], this._selectIndex = this._data.SelectIndex
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetRewards(), this.SetTag())
                }, t.prototype.SetTag = function() {
                    this.Title.string = this._data.Title, this._data.Tag ? (this.Tag.node.active = !0, this.Tag.string = this._data.Tag) : this.Tag.node.active = !1
                }, t.prototype.SetRewards = function() {
                    var e = this;
                    this._data.Rewards.forEach(function(t, n) {
                        var o = cc.instantiate(e._itemPrefab);
                        o.parent = e.RewardNode, o.name = n.toString();
                        var r = o.getComponent(p.ItemComponent);
                        r.Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        }, p.ItemComponentType.ItemWithName), r.SetSelectFlagState(e._selectIndex == n)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = this;
                    this.RewardNode.children.includes(t) && (d.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t), this._selectIndex != e && (this.RewardNode.children.forEach(function(t) {
                        t.name == e.toString() ? t.getComponent(p.ItemComponent).SetSelectFlagState(!0) : t.name == n._selectIndex.toString() && t.getComponent(p.ItemComponent).SetSelectFlagState(!1)
                    }), this._selectIndex = e))
                }, t.prototype.OnBtnCancelClick = function() {
                    this.Close()
                }, t.prototype.OnBtnSureClick = function() {
                    this._data.OKCallback && this._data.OKCallback(this._selectIndex), this.Close()
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "Tag", void 0), i([y(cc.Node)], t.prototype, "RewardNode", void 0), i([y(cc.Button)], t.prototype, "BtnCancel", void 0), i([y(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([y(cc.Button)], t.prototype, "BtnSure", void 0), i([y(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CommonSPHeroDescPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d1b55f50nxDeq8aIVGVBILS", "CommonSPHeroDescPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Title = null, t.BaseAttrUpLabel = null, t.ActiveLabel = null, t._commomDescData = null, t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), t[0] && (this._commomDescData = t[0])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._commomDescData ? (this.Title.string = this._commomDescData.Title, this.BaseAttrUpLabel.string = this._commomDescData.Desc1, this.ActiveLabel.string = this._commomDescData.Desc2 || "") : (this.Title.string = "hero_SP_halo".ToUILocale(), this.BaseAttrUpLabel.string = "hero_SP_base_attr_up".ToUILocale(), this.ActiveLabel.string = "hero_SP_up_more".ToUILocale())
                }, i([c(cc.Label)], t.prototype, "Title", void 0), i([c(cc.RichText)], t.prototype, "BaseAttrUpLabel", void 0), i([c(cc.RichText)], t.prototype, "ActiveLabel", void 0), i([l], t)
            }(a.BaseUIPanel);
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    CommonSelectHeroPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "88e94RkVXZNnZi0hv/LhFxD", "CommonSelectHeroPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/HeroElementGroup"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1), t.Title = null, t.Hint = null, t.ScrollView = null, t.CustomLayout = null, t.HeroElementGroup = null, t.SureButton = null, t.SureLabel = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SureLabel.string = "ok".ToUILocale(), this.SureButton.node.on("click", this.OnSureButtonClick, this), this.HeroElementGroup.SetElementModeByIndex(m.HeroElementType.All)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0], this._selectHeros = this._data.SelectHeros
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.Title.string = this._data.Title ? this._data.Title : "heroJob_hero_select".ToUILocale(), this.SetHeroDatas(), this._isInit || (this.CustomLayout.Init(this._itemPrefab), this._isInit = !0), this.CustomLayout.RenderLayOut(this._curHeros.length), this.SetSelectCount()
                }, t.prototype.SetSelectCount = function() {
                    this.Hint.string = "heroJob_hero_select_count".ToUILocale().Fmt(this._selectHeros.length, this._data.LimitCount)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (t == this.CustomLayout) {
                        var o = [];
                        this._selectHeros.forEach(function(e) {
                            o[e.Sid] || (o[e.Sid] = 1)
                        }), e.forEach(function(e, t) {
                            var r = e.getComponent(f.ItemComponent);
                            r.node.name = n._curHeros[t].Sid.toString(), r.Init(n._curHeros[t], f.ItemComponentType.HeroInfo), r.SetSelectFlagState(o[n._curHeros[t].Sid] > 0)
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    if (this.CustomLayout.node.children.indexOf(t) > -1) {
                        var n = this._selectHeros.findIndex(function(e) {
                            return e.Sid == Number(t.name)
                        });
                        if (-1 == n) {
                            if (this._selectHeros.length >= this._data.LimitCount) return void y.UIUtlity.ShowFloatingHint("heroJob_count_limit".ToUILocale());
                            var o = this._data.AllHeros.find(function(e) {
                                return e.Sid == Number(t.name)
                            });
                            o && (this._selectHeros.push(o), t.getComponent(f.ItemComponent).SetSelectFlagState(!0))
                        } else this._selectHeros.splice(n, 1), t.getComponent(f.ItemComponent).SetSelectFlagState(!1);
                        this.SetSelectCount()
                    }
                }, t.prototype.OnSwitchHeroElement = function(e, t) {
                    t == this.HeroElementGroup.node && this._selectElementType != e && (this._selectElementType = e, this.SetHeroDatas(), this.CustomLayout.RenderLayOut(this._curHeros.length))
                }, t.prototype.SetHeroDatas = function() {
                    var e = this;
                    this._curHeros = [], this._selectElementType ? this._data.AllHeros.forEach(function(t) {
                        u.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, t.HeroId).ElementType == e._selectElementType && e._curHeros.push(t)
                    }) : this._curHeros = this._data.AllHeros, I.default.Instance.CustomSortHeroList(this._curHeros), this._curHeros.sort(function(t, n) {
                        return e._selectHeros.includes(t) && !e._selectHeros.includes(n) ? -1 : !e._selectHeros.includes(t) && e._selectHeros.includes(n) ? 1 : 0
                    })
                }, t.prototype.OnSureButtonClick = function() {
                    this._data.CallBack && this._data.CallBack(this._selectHeros), this.Close()
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Label)], t.prototype, "Hint", void 0), i([v(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([v(p.default)], t.prototype, "CustomLayout", void 0), i([v(g.default)], t.prototype, "HeroElementGroup", void 0), i([v(cc.Button)], t.prototype, "SureButton", void 0), i([v(cc.Label)], t.prototype, "SureLabel", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CommonSkillStarDescComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5e5acJb38tEgqWK19NqlkRw", "CommonSkillStarDescComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/LevelComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelNode = null, t.Desc = null, t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._levelPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.LevelComponent, cc.Prefab)];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._levelPrefab = t, this._assets.push(t), o.label = 2;
                                case 2:
                                    return this._levelNode || (this._levelNode = cc.instantiate(this._levelPrefab), this._levelNode.parent = this.LevelNode), (n = this._levelNode.getComponent(u.LevelComponent)).Init(e.Star), n.SetStarSize(46, 44), this.Desc.string = "<color=#624e3c>" + e.Desc + "</c>", 1 == e.Type ? this.Desc.node.opacity = e.CurStarId >= e.StarId ? 255 : 127 : this.Desc.node.opacity = e.CurStar >= e.Star ? 255 : 127, [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._levelPrefab = null
                }, i([h(cc.Node)], t.prototype, "LevelNode", void 0), i([h(cc.RichText)], t.prototype, "Desc", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/LevelComponent": "LevelComponent"
    }],
    CommonSkillStarDescPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2438f1KCgtL2ahfo2ocSVLA", "CommonSkillStarDescPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ArtifactSkillStarDescComponent"),
            p = e("./CommonSkillStarDescComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.ScrollView = null, t.DescContent = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.SkillItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CommonPanel/SubItems/CommonSkillStarDescComponent", cc.Prefab), o = this.LoadDynamicAsset("ArtifactPanel/Components/ArtifactSkillStarDescComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._skillItemPrefab = e[0], r._descItemPrefab = e[1], r._desc2ItemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._datas = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetSkillDescList()
                }, t.prototype.SetSkillDescList = function() {
                    var e = this;
                    1 == this._datas[0].Type ? this._datas.forEach(function(t) {
                        var n = cc.instantiate(e._descItemPrefab);
                        n.parent = e.DescContent, n.getComponent(p.default).Init(t)
                    }) : this._datas.forEach(function(t) {
                        var n = cc.instantiate(e._desc2ItemPrefab);
                        n.parent = e.DescContent, n.getComponent(u.default).Init(t)
                    });
                    for (var t = 0, n = this._datas.length - 1; n >= 0; n--)
                        if (this._datas[n].CurStar >= this._datas[n].Star) {
                            t = n;
                            break
                        } this.scheduleOnce(function() {
                        var n = e.DescContent.children[t].y;
                        e.ScrollView.scrollToOffset(cc.v2(0, -n - e.ScrollView.node.height / 2))
                    }, .1)
                }, i([f(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([f(cc.Node)], t.prototype, "DescContent", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./ArtifactSkillStarDescComponent": "ArtifactSkillStarDescComponent",
        "./CommonSkillStarDescComponent": "CommonSkillStarDescComponent"
    }],
    CommonStoryGuidPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e1122GHINJCsbbQA2+GPX81", "CommonStoryGuidPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.MaskNode = null, t.HeroNode = null, t.Title = null, t.DialogeRichText = null, t.NextButton = null, t.SkipButton = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.NextButton.node.on("click", this.OnNextButtonClick, this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.OnNextButtonClick, this), this.SkipButton.node.on("click", this.OnSkipButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityId = t[0], this._startId = t[1], this._activityType = d.DataCenter.Instance.ActivityConfigs[this._activityId].Common.Type, this.SetStoryData()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), t || this.SetHeroAndText()
                }, t.prototype.SetStoryData = function() {
                    var e = this;
                    switch (this._storyGroup = {}, this._storyFragmentMap = {}, this._storyLanMap = {}, this._activityType) {
                        case h.ActivityType.RunningTrain:
                            var t = d.DataCenter.Instance.ActivityConfigs[this._activityId],
                                n = d.DataCenter.Instance.GetDataById(c.UserActivity_Model, t._id);
                            t._StoryContent.forEach(function(t) {
                                e._storyGroup[t.Id] = t
                            }), t.__StoryFragment.forEach(function(t) {
                                e._storyFragmentMap[t.Id] = t
                            }), t._Locale.forEach(function(t) {
                                e._storyLanMap[t.Id] = t
                            });
                            var o = n.StoryProgress[this._startId] ? n.StoryProgress[this._startId] : 0;
                            this._currentStoryId = this._storyFragmentMap[this._startId].ContentIds[0].Items[o]
                    }
                }, t.prototype.SetHeroAndText = function() {
                    var e = this._storyGroup[this._currentStoryId];
                    this.SetTextContent(e), this.SetHero(e)
                }, t.prototype.SetHero = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.HeroNode.active = !1, e.HeroRes ? this._heroPath && this._heroId == e.HeroRes ? [3, 5] : (this._heroId = e.HeroRes, this.HeroNode.destroyAllChildren(), this._heroPrefab && (l.AssetsManager.Instance.UnloadAsset(this._heroPrefab), this._heroPrefab = null), t = u.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, e.HeroRes), n = void 0, o = void 0, t && t.UIAvatar ? (this._heroPath = t.UIAvatar, [4, l.AssetsManager.Instance.LoadAsset(t.UIAvatar + "/Avatar", cc.Prefab)]) : [3, 2]) : [3, 6];
                                case 1:
                                    return n = i.sent(), [3, 4];
                                case 2:
                                    return o = u.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, e.HeroRes), this._heroPath = o.UIAvatar, [4, l.AssetsManager.Instance.LoadAsset(o.UIAvatar + "/Avatar", cc.Prefab)];
                                case 3:
                                    n = i.sent(), i.label = 4;
                                case 4:
                                    if (!this.isValid || this._heroPath + "/Avatar" != n.name) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._heroPrefab = n, (r = cc.instantiate(this._heroPrefab)).setParent(this.HeroNode), o && f.default.Instance.SetHeroAvatarSkin(r, o.Id, o.StarLevel), i.label = 5;
                                case 5:
                                    this.HeroNode.active = !0, i.label = 6;
                                case 6:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetTextContent = function(e) {
                    if (this.DialogeRichText.string = this._storyLanMap[e.Talk].Content, e.HeroName) this.Title.string = this._storyLanMap[e.HeroName].Content, this.Title.node.active = !0;
                    else if (e.HeroRes) {
                        var t = u.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, e.HeroRes);
                        this.Title.string = t && t.UIAvatar ? t.HeroId.ToHeroName() : e.HeroRes.ToHeroName(), this.Title.node.active = !0
                    } else this.Title.node.active = !1
                }, t.prototype.OnNextButtonClick = function() {
                    var e = this._storyGroup[this._currentStoryId].NextId;
                    e ? (this._currentStoryId = e, this.SetHeroAndText()) : (this._isSkip = !1, this.OnRequestStory())
                }, t.prototype.OnSkipButtonClick = function() {
                    this._isSkip = !0, this.OnRequestStory()
                }, t.prototype.OnRequestStory = function() {
                    var e = this,
                        t = new c.Req_Activity_RecordStoryProgress;
                    t.ActivityId = this._activityId;
                    var n = new c.IntArray,
                        o = d.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId),
                        r = o.StoryProgress[this._startId] ? o.StoryProgress[this._startId] + 1 : 1,
                        i = this._storyFragmentMap[this._startId].ContentIds[0].Items.length;
                    this._isSkip || r == i ? (n.Items = [this._startId, i], t.Progress = [n], d.RpcComponent.Instance.Call(t, function() {
                        l.UIManager.Instance.BackUIPanel()
                    })) : (n.Items = [this._startId, r + 1], t.Progress = [n], d.RpcComponent.Instance.Call(t, function() {
                        e._currentStoryId = e._storyFragmentMap[e._startId].ContentIds[0].Items[r + 1], e.SetHeroAndText()
                    }))
                }, t.prototype.onDestroy = function() {
                    this._heroPrefab && l.AssetsManager.Instance.UnloadAsset(this._heroPrefab)
                }, i([m(cc.Node)], t.prototype, "MaskNode", void 0), i([m(cc.Node)], t.prototype, "HeroNode", void 0), i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.RichText)], t.prototype, "DialogeRichText", void 0), i([m(cc.Button)], t.prototype, "NextButton", void 0), i([m(cc.Button)], t.prototype, "SkipButton", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    CommonTaskComponent2: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1faa2me/3lMT7h6ZvzwQEWf", "CommonTaskComponent2");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./LayoutRewards"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Progress = null, t.GetButton = null, t.GetButtonLabel = null, t.GoButton = null, t.GoButtonLabel = null, t.ReceivedNode = null, t.ItemContainer = null, t.NoGetWayButton = null, t.NoGetWayLabel = null, t.LangTag = null, t.LayoutRewards = null, t
                }
                return r(t, e), t.prototype.SetTitle = function(e) {
                    return this.Title.string = e, this
                }, t.prototype.SetPurchaseLimit = function(e, t, n) {
                    var o, r;
                    return this._currentCount = e, this._taskConfig = t, this._received = n, "number" == typeof t ? (o = t, r = 1) : (o = t.TotalCount, r = t.GetWayId), this.Progress.string = e < o ? "<color = ffffff>" + e.FmtCurrency() + "/" + o.FmtCurrency() + "</c>" : "<color = 6EEEA7>" + o.FmtCurrency() + "/" + o.FmtCurrency() + "</c>", this.GoButton.node.active = e < o && r && r > 0, this.GetButton.node.active = e >= o && !n, this.ReceivedNode.active = e >= o && n, this.NoGetWayButton.node.active = e < o && !r, this.GetButtonLabel.string = "receive".ToUILocale(), this.GoButtonLabel.string = "task_goto".ToUILocale(), this.NoGetWayLabel.string = "receive".ToUILocale(), this.LangTag.string = "already_receive".ToUILocale(), this
                }, t.prototype.SetItems = function(e, t) {
                    return this.LayoutRewards.InitWithConfigs(t, e), this
                }, t.prototype.SetButtonClick = function(e) {
                    this._index = e
                }, t.prototype.OnPurchaseButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_COMMONTASK_RECEIVE, this._index)
                }, t.prototype.OnGoButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_COMMONTASK_GO, this._index)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(l.ItemComponent).ItemId, t)
                }, t.prototype.onEnable = function() {
                    this.GoButton.node.on("click", this.OnGoButtonClick, this), this.GetButton.node.on("click", this.OnPurchaseButtonClick, this), a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.GetButton.node.off("click", this.OnPurchaseButtonClick, this), this.GoButton.node.off("click", this.OnGoButtonClick, this), a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.SetTaskOverdue = function(e) {
                    e ? (this.GoButton.node.active = !1, this.GetButton.node.active = !1, this.ReceivedNode.active = !1, this.NoGetWayButton.node.active = !1) : this.SetPurchaseLimit(this._currentCount, this._taskConfig, this._received)
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.RichText)], t.prototype, "Progress", void 0), i([h(cc.Button)], t.prototype, "GetButton", void 0), i([h(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([h(cc.Button)], t.prototype, "GoButton", void 0), i([h(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([h(cc.Node)], t.prototype, "ReceivedNode", void 0), i([h(cc.Node)], t.prototype, "ItemContainer", void 0), i([h(cc.Button)], t.prototype, "NoGetWayButton", void 0), i([h(cc.Label)], t.prototype, "NoGetWayLabel", void 0), i([h(cc.Label)], t.prototype, "LangTag", void 0), i([h(u.default)], t.prototype, "LayoutRewards", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./LayoutRewards": "LayoutRewards"
    }],
    CommonTaskComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f2047KLyMhA9aBm8KMUB++6", "CommonTaskComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.TitleRichText = null, t.PurchaseLimit = null, t.GetButton = null, t.GetButtonLabel = null, t.GoButton = null, t.GoButtonLabel = null, t.ReceivedNode = null, t.ItemContainer = null, t.NoGetWayButton = null, t.NoGetWayLabel = null, t.OverdueLabel = null, t.Received = null, t._items = [], t
                }
                return r(t, e), t.prototype.SetTitle = function(e) {
                    if (this.Title) this.Title.string = e;
                    else if (this.TitleRichText) {
                        var t = e.includes("</outline>");
                        this.TitleRichText.string = t ? e : "<outline width=3 color=#202434>" + e + "</outline>"
                    }
                    return this
                }, t.prototype.SetPurchaseLimit = function(e, t, n) {
                    var o, r;
                    return this._currentCount = e, this._taskConfig = t, this._received = n, "number" == typeof t ? (o = t, r = 1) : (o = t.TotalCount, r = t.GetWayId), this.PurchaseLimit.string = e < o ? "<outline width=3 color=#202434><color = FF403E>" + e.FmtCurrency() + "/" + o.FmtCurrency() + "</c></outline>" : "<outline width=3 color=#202434><color = 6EEEA7>" + o.FmtCurrency() + "/" + o.FmtCurrency() + "</c></outline>", this.GoButton.node.active = e < o && r && r > 0, this.GetButton.node.active = e >= o && !n, this.ReceivedNode.active = e >= o && n, this.PurchaseLimit.node.parent.active = !this.ReceivedNode.active, this.NoGetWayButton.node.active = e < o && !r, this.GetButtonLabel.string = "receive".ToUILocale(), this.GoButtonLabel.string = "task_goto".ToUILocale(), this.NoGetWayLabel.string = "receive".ToUILocale(), this.Received.string = "already_receive".ToUILocale(), this.OverdueLabel.string = "CrossServerChampion_Start_OverRace".ToUILocale(), this
                }, t.prototype.SetItems = function(e, t) {
                    var n;
                    if (t.length > this._items.length) {
                        for (var o = 0; o < this._items.length; o++) n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this._items[o].node.name = t[o].Items[0].toString(), this._items[o].SetCountFontSize(26, 121), (i = t[o].Items[2]) && this._items[o].PlayLightingCircleEffect(i);
                        for (o = this._items.length; o < t.length; o++) {
                            var r = e.Get();
                            r.active = !0, r.setParent(this.ItemContainer), this._items[o] = r.getComponent(l.ItemComponent), n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                                ItemId: t[o].Items[0],
                                Count: t[o].Items[1]
                            }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this._items[o].SetCountFontSize(26, 121), this._items[o].node.name = t[o].Items[0].toString(), (i = t[o].Items[2]) && this._items[o].PlayLightingCircleEffect(i)
                        }
                    } else {
                        for (o = 0; o < t.length; o++) {
                            var i;
                            n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                                ItemId: t[o].Items[0],
                                Count: t[o].Items[1]
                            }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this._items[o].node.name = t[o].Items[0].toString(), (i = t[o].Items[2]) && this._items[o].PlayLightingCircleEffect(i)
                        }
                        for (o = t.length; o < this._items.length; o++) this._items[o].node.active = !1, e.Put(this._items[o].node);
                        this._items.length = t.length
                    }
                    return this
                }, t.prototype.SetButtonClick = function(e) {
                    this._index = e
                }, t.prototype.OnPurchaseButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_COMMONTASK_RECEIVE, this._index)
                }, t.prototype.OnGoButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_COMMONTASK_GO, this._index)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(l.ItemComponent).ItemId, t)
                }, t.prototype.onEnable = function() {
                    this.GoButton.node.on("click", this.OnGoButtonClick, this), this.GetButton.node.on("click", this.OnPurchaseButtonClick, this), a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.GetButton.node.off("click", this.OnPurchaseButtonClick, this), this.GoButton.node.off("click", this.OnGoButtonClick, this), a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.SetTaskOverdue = function(e) {
                    e ? (this.GoButton.node.active = !1, this.GetButton.node.active = !1, this.ReceivedNode.active = !1, this.NoGetWayButton.node.active = !1, this.OverdueLabel.node.active = !0) : (this.OverdueLabel.node.active = !1, this.SetPurchaseLimit(this._currentCount, this._taskConfig, this._received))
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.RichText)], t.prototype, "TitleRichText", void 0), i([f(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([f(cc.Button)], t.prototype, "GetButton", void 0), i([f(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([f(cc.Button)], t.prototype, "GoButton", void 0), i([f(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([f(cc.Node)], t.prototype, "ReceivedNode", void 0), i([f(cc.Node)], t.prototype, "ItemContainer", void 0), i([f(cc.Button)], t.prototype, "NoGetWayButton", void 0), i([f(cc.Label)], t.prototype, "NoGetWayLabel", void 0), i([f(cc.Label)], t.prototype, "OverdueLabel", void 0), i([f(cc.Label)], t.prototype, "Received", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CommonTaskPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4c7baDzsuxHC6Lu99KMJ93n", "CommonTaskPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./NodePool"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/ItemComponent"),
            m = e("../../../Util/AppUtil"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("./CommonTaskComponent"),
            C = e("../Components/CustomToggle"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../../Consts/Consts"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.TogglesBgNode = null, t.TogglesNode = null, t.View = null, t.TextContent = null, t._initLayout = !0, t._tasks = [], t._allFeatureTasks = [], t._featureTasks = [], t._data = null, t._taskDatas = [], t._selectIndex = 0, t._isNotTaskType = !1, t._personalRewards = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_COMMONTASK_RECEIVE, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_COMMONTASK_GO, this.OnGoButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_COMMONTASK_RECEIVE, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_COMMONTASK_GO, this.OnGoButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent), this.LoadDynamicAsset("CommonPanel/SubItems/CommonTaskComponent"), this.LoadDynamicAsset("Buttons/Toggle1", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._taskPrefab = e[1], t._togglePrefab = e[2], t._pool = new f.default(t._itemPrefab)
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    if (e.prototype.InitData.call(this, t), this._taskDatas = t[0], this._data = this._taskDatas[this._selectIndex], this._data.IsActivity)
                        if (this._data.Tasks) this._tasks = m.AppUtil.FullCloneObj(this._data.Tasks);
                        else {
                            this._isNotTaskType = !0;
                            var o = u.DataCenter.Instance.ActivityConfigs[this._data.ActivityId];
                            switch (this._activityType = o.Common.Type, this._activityType) {
                                case b.ActivityType.SupportHero:
                                    this._userActivityData = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._data.ActivityId);
                                    var r = this._userActivityData.IntArray[0];
                                    o.__PersonReward.forEach(function(e) {
                                        r == e.GroupId && n._personalRewards.push(e)
                                    })
                            }
                        }
                    else this._allFeatureTasks = m.AppUtil.FullCloneObj(this._data.FeatureTasks), this.SetFeatureTasks()
                }, t.prototype.SetFeatureTasks = function() {
                    var e = this;
                    this._featureTasks = [], this._allFeatureTasks.forEach(function(t) {
                        I.default.IsTaskCanShow(t.Id) && e._featureTasks.push(t)
                    })
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this._initLayout && (this.View.Init(this._taskPrefab), this._initLayout = !1), this.Title.string = this._data.Title, this._data.TextContent ? (this.TextContent.node.active = !0, this.TextContent.string = this._data.TextContent) : this.TextContent.node.active = !1;
                    var o = 0;
                    if (this._data.IsActivity)
                        if (this._isNotTaskType) switch (this._activityType) {
                            case b.ActivityType.SupportHero:
                                this._userActivityData = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._data.ActivityId);
                                var r = this._userActivityData.Int2DArray[0].Items,
                                    i = this._userActivityData.IntArray[1];
                                this._personalRewards.sort(function(e, t) {
                                    return -1 != r.indexOf(e.Id) && -1 == r.indexOf(t.Id) ? 1 : -1 == r.indexOf(e.Id) && -1 != r.indexOf(t.Id) ? -1 : i < e.SupportValue && i >= t.SupportValue ? 1 : i >= e.SupportValue && i < t.SupportValue ? -1 : e.SupportValue > t.SupportValue ? 1 : -1
                                }), o = this._personalRewards.length
                        } else this._tasks.sort(function(e, t) {
                            var o = u.DataCenter.Instance.GetDataById(c.UserTask_Model, e.Id + 1e4 * n._data.ActivityId),
                                r = u.DataCenter.Instance.GetDataById(c.UserTask_Model, t.Id + 1e4 * n._data.ActivityId);
                            return o.IsCompleted && !r.IsCompleted ? 1 : !o.IsCompleted && r.IsCompleted ? -1 : o.Progress >= e.TotalCount && r.Progress < t.TotalCount ? -1 : o.Progress < e.TotalCount && r.Progress >= t.TotalCount ? 1 : e.SortId - t.SortId
                        }), o = this._tasks.length;
                        else this.SetFeatureTasks(), this._featureTasks.sort(function(e, t) {
                            var n = u.DataCenter.Instance.GetDataById(c.UserTask_Model, e.Id),
                                o = u.DataCenter.Instance.GetDataById(c.UserTask_Model, t.Id);
                            return n.IsCompleted && !o.IsCompleted ? 1 : !n.IsCompleted && o.IsCompleted ? -1 : n.Progress >= e.TotalCount && o.Progress < t.TotalCount ? -1 : n.Progress < e.TotalCount && o.Progress >= t.TotalCount ? 1 : e.SortId - t.SortId
                        }), o = this._featureTasks.length;
                    this.SetToggles(), this.View.RenderLayOut(o), this.BindReddot()
                }, t.prototype.BindReddot = function() {
                    var e = this;
                    this._taskDatas.forEach(function(t, n) {
                        t.Reddot && t.IsActivity && v.RedDotManager.Instance.BindInstance(e.TogglesNode.children[n], t.Reddot, {
                            Value1: t.ActivityId
                        })
                    })
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this._isReDisplay || (this.TogglesBgNode.active = this._taskDatas.length > 1, this._taskDatas.length > 1 && this._taskDatas.forEach(function(t, n) {
                        var o = cc.instantiate(e._togglePrefab);
                        o.parent = e.TogglesNode;
                        var r = o.getComponent(C.default);
                        r.Init(t.Title), r.isChecked = 0 == n, o.name = n.toString(), o.on("toggle", e.ClickToggle, e)
                    }))
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._selectIndex != t && (this._selectIndex = t, this._data = this._taskDatas[this._selectIndex], this._data.IsActivity ? this._tasks = m.AppUtil.FullCloneObj(this._data.Tasks) : (this._allFeatureTasks = m.AppUtil.FullCloneObj(this._data.FeatureTasks), this.SetFeatureTasks()), this.DisPlay(!0))
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    if (t == this.View)
                        if (this._isNotTaskType) switch (this._activityType) {
                            case b.ActivityType.SupportHero:
                                e.forEach(function(e, t) {
                                    var o;
                                    o = -1 != n._userActivityData.Int2DArray[0].Items.indexOf(n._personalRewards[t].Id), e.getComponent(_.default).SetTitle("campSupport_tag_rewardList".ToUILocale().Fmt(n._personalRewards[t].SupportValue)).SetPurchaseLimit(n._userActivityData.IntArray[1], n._personalRewards[t].SupportValue, o).SetItems(n._pool, n._personalRewards[t].Rewards).SetButtonClick(t)
                                })
                        } else this._data.IsActivity ? e.forEach(function(e, t) {
                            var o = u.DataCenter.Instance.GetDataById(c.UserTask_Model, n._tasks[t].Id + 1e4 * n._data.ActivityId),
                                r = null == o || null == o.Progress ? 0 : o.Progress;
                            e.getComponent(_.default).SetTitle(I.default.GetTaskDesc(n._tasks[t])).SetPurchaseLimit(r, n._tasks[t], o.IsCompleted).SetItems(n._pool, n._tasks[t].Rewards).SetButtonClick(t)
                        }) : e.forEach(function(e, t) {
                            var o = u.DataCenter.Instance.GetDataById(c.UserTask_Model, n._featureTasks[t].Id),
                                r = null == o || null == o.Progress ? 0 : o.Progress;
                            e.getComponent(_.default).SetTitle(I.default.GetTaskDesc(n._featureTasks[t])).SetPurchaseLimit(r, n._featureTasks[t], o.IsCompleted).SetItems(n._pool, n._featureTasks[t].Rewards).SetButtonClick(t)
                        })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.View.node.children.indexOf(t) && y.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.OnPurchaseButtonClick = function(e) {
                    var t = this;
                    if (this._data.IsActivity)
                        if (this._isNotTaskType) switch (this._activityType) {
                            case b.ActivityType.SupportHero:
                                var n = new c.Req_Activity_DrawPersonSupportReward;
                                n.ActivityId = this._data.ActivityId, n.RewardId = this._personalRewards[e].Id, u.RpcComponent.Instance.Call(n, function(e) {
                                    y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                                })
                        } else {
                            var o = [];
                            this._tasks.forEach(function(e) {
                                var n = u.DataCenter.Instance.GetDataById(c.UserTask_Model, e.Id + 1e4 * t._data.ActivityId),
                                    r = null == n || null == n.Progress ? 0 : n.Progress;
                                !n.IsCompleted && r >= e.TotalCount && o.push(e.Id)
                            }), (r = new c.Req_Activity_CommonTaskReward).ActivityId = this._data.ActivityId, r.TaskIds = o, u.RpcComponent.Instance.Call(r, function(e) {
                                y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            })
                        } else {
                            var r, i = [];
                            this._featureTasks.forEach(function(e) {
                                var t = u.DataCenter.Instance.GetDataById(c.UserTask_Model, e.Id),
                                    n = null == t || null == t.Progress ? 0 : t.Progress;
                                !t.IsCompleted && n >= e.TotalCount && i.push(e.Id)
                            }), (r = new c.Req_Task_DrawReward).TaskIds = i, u.RpcComponent.Instance.Call(r, function(e) {
                                y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            })
                        }
                }, t.prototype.OnGoButtonClick = function(e) {
                    var t;
                    (t = this._data.IsActivity ? this._tasks[e] && this._tasks[e].GetWayId ? this._tasks[e].GetWayId : 0 : this._featureTasks[e] && this._featureTasks[e].GetWayId ? this._featureTasks[e].GetWayId : 0) > 0 ? I.default.ShowPanelByGetWayId(t, this._data.HideAllPanels) : l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    var e;
                    this.unscheduleAllCallbacks(), null === (e = this._pool) || void 0 === e || e.Clear()
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Node)], t.prototype, "TogglesBgNode", void 0), i([P(cc.Node)], t.prototype, "TogglesNode", void 0), i([P(p.default)], t.prototype, "View", void 0), i([P(cc.RichText)], t.prototype, "TextContent", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonTaskComponent": "CommonTaskComponent",
        "./NodePool": "NodePool"
    }],
    CommonTaskTipComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a89d21gqiBJJoQ3DQAQ99oO", "CommonTaskTipComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../../ShareConsts/EnumType"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DescRichText = null, t.Icon = null, t.Num = null, t._data = null, t._isUnlock = !0, t._assets = [], t
                }
                return r(t, e), t.prototype.InitData = function(e) {
                    e ? (this._data = e, this.SetUIContent()) : this.SetDefaultData()
                }, t.prototype.SetUIContent = function() {
                    this.SetIsUnLock(), this._isUnlock && (this.SetDescAndNum(), this.SetIcon())
                }, t.prototype.SetDefaultData = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, d.LevelParamType.ChaosTaskTip),
                        t = {};
                    t.GameModule = e.Data[0], t.Desc = "ChaosSummon_RuleTipLeft".ToUILocale().Fmt(e.Data[1]), t.ItemId = e.Data[2], t.ItemNumDesc = "<outline color=#000000 width=3><color=#fed94a>x{0}</c></outline>".Fmt(e.Data[3]), this._data = t, this.SetUIContent()
                }, t.prototype.SetIsUnLock = function() {
                    this._data.GameModule && (this._isUnlock = p.default.Instance.IsGameModuleUnlock(this._data.GameModule)[0])
                }, t.prototype.SetDescAndNum = function() {
                    this.DescRichText.string = this._data.Desc, this.Num.string = this._data.ItemNumDesc
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = p.default.Instance.GetItemPathById(this._data.ItemId), [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid && t.name == e ? (this._assets.push(t), this.Icon.spriteFrame = t, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, Object.defineProperty(t.prototype, "IsUnlock", {
                    get: function() {
                        return this._isUnlock
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.RichText)], t.prototype, "DescRichText", void 0), i([y(cc.Sprite)], t.prototype, "Icon", void 0), i([y(cc.RichText)], t.prototype, "Num", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    CommonTips: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8e0cbuslS1L4Jfs1yjrERaJ", "CommonTips");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../Components/CustomRichText"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property;
        (function(e) {
            e[e.Center = 0] = "Center", e[e.Follow = 1] = "Follow"
        })(a || (a = {}));
        var h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.Background = null, t.Content = null, t.Scroll = null, t.MaskView = null, t.MainRoot = null, t.MaxHeight = 0, t
            }
            return r(t, e), t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this)
            }, t.prototype.InitData = function(e) {
                e.length > 0 && (this._message = e[0], e.length > 1 && (this._tipsType = e[1]), e.length > 2 && (this._tipsPos = e[2]))
            }, t.prototype.DisPlay = function() {
                if (e.prototype.DisPlay.call(this), "string" == typeof this._message) this.Content.Init("<outline color=#000000 width=3>" + this._message + "</outline>");
                else {
                    for (var t = "", n = 0; n < this._message.length; n++) t += this._message[n], n != this._message.length - 1 && (t += "<br/>");
                    this.Content.Init(t)
                }
                this.SetTipsLengthByContent(), this.SetTipsPosition()
            }, t.prototype.SetTipsLengthByContent = function() {
                this.Content.node.getContentSize().height <= this.MaxHeight ? (this.Background.node.height = this.Content.node.getContentSize().height + 20, this.MaskView.enabled = !1, this.Scroll.vertical = !1) : (this.MaskView.enabled = !0, this.Background.node.height = this.MaxHeight, this.MaskView.node.height = this.MaxHeight - 20, this.Scroll.vertical = !0)
            }, t.prototype.SetTipsPosition = function() {
                this._tipsType == a.Center ? (this.MainRoot.x = (-c.UIUtlity.DESIGN_SCREEN_WIDTH + this.Background.node.width) / 2, this.MainRoot.y = (-c.UIUtlity.DESIGN_SCREEN_HEIGHT + this.Background.node.height) / 2) : (this.MainRoot.x = -c.UIUtlity.DESIGN_SCREEN_WIDTH / 2 + this._tipsPos.x, this.MainRoot.y = -c.UIUtlity.DESIGN_SCREEN_HEIGHT + this._tipsPos.y, this.MainRoot.x + this.Background.node.width >= c.UIUtlity.DESIGN_SCREEN_WIDTH / 2 - 50 && (this.MainRoot.x = c.UIUtlity.DESIGN_SCREEN_WIDTH / 2 - this.Background.node.width - 50), this.MainRoot.x < -c.UIUtlity.DESIGN_SCREEN_WIDTH / 2 + 50 && (this.MainRoot.x = -c.UIUtlity.DESIGN_SCREEN_WIDTH / 2 + 50), this.MainRoot.y - this.Background.node.height <= 50 - c.UIUtlity.DESIGN_SCREEN_HEIGHT && (this.MainRoot.y = -c.UIUtlity.DESIGN_SCREEN_HEIGHT + this.Background.node.height + 50), this.MainRoot.y > -50 && (this.MainRoot.y = -50))
            }, t.prototype.start = function() {}, i([d(cc.Sprite)], t.prototype, "Background", void 0), i([d(s.CustomRichText)], t.prototype, "Content", void 0), i([d(cc.ScrollView)], t.prototype, "Scroll", void 0), i([d(cc.Mask)], t.prototype, "MaskView", void 0), i([d(cc.Node)], t.prototype, "MainRoot", void 0), i([d(cc.Integer)], t.prototype, "MaxHeight", void 0), i([p], t)
        }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomRichText": "CustomRichText"
    }],
    CommonTotalAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3b8629aguVLZoFsuWN353IP", "CommonTotalAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./HeroAttributeItem"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Layout = null, t.NoAttrLabel = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    var n = this;
                    this.Title.string = e.Title, this.NoAttrLabel.node.active = 0 == e.AttrArray.length, e.AttrArray.length > 0 ? (this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), e.AttrArray.forEach(function(o, r) {
                        if (!n._itemNodes[r]) {
                            var i = cc.instantiate(t);
                            i.parent = n.Layout.node, n._itemNodes[r] = i
                        }
                        n._itemNodes[r].active = !0;
                        var s = n._itemNodes[r].getComponent(a.default);
                        s.Init(o.attrId, o.attrvalue, e.IsShowAddAttr), e.AttrPrefix && s.SetTagName(e.AttrPrefix)
                    })) : (this.Layout.enabled = !1, this.Layout.node.height = 150, this.NoAttrLabel.node.x = 0, this.NoAttrLabel.node.y = -this.Layout.node.height / 2, this.NoAttrLabel.string = "heroSkin_no_attr".ToUILocale())
                }, i([c(cc.Label)], t.prototype, "Title", void 0), i([c(cc.Layout)], t.prototype, "Layout", void 0), i([c(cc.Label)], t.prototype, "NoAttrLabel", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./HeroAttributeItem": "HeroAttributeItem"
    }],
    CommonTotalAttrPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b074eXMjFNLbJJqMUlKE+Zx", "CommonTotalAttrPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CommonTotalAttrComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.BgLayout = null, t.ScrollView = null, t.HintNode = null, t._commonAttrItemNodes = [], t._datas = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionHandbookAttributeItem", cc.Prefab), n = this.LoadDynamicAsset("CommonPanel/SubItems/CommonTotalAttrComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._commonAttrItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "handbook_attr_total".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._datas = t[0]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this), t || (this._attrCount = 0, this._datas.forEach(function(e) {
                        n._attrCount += e.AttrArray.length
                    }), this.ScrollView.node.active = this._attrCount > 26, this.SetNodeAttributeList())
                }, t.prototype.SetNodeAttributeList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function() {
                            return e = this._attrCount > 26 ? this.ScrollView.content : this.BgLayout.node, this._commonAttrItemNodes.forEach(function(e) {
                                e.active = !1
                            }), this._datas.forEach(function(n, o) {
                                if (!t._commonAttrItemNodes[o]) {
                                    var r = cc.instantiate(t._commonAttrItemPrefab);
                                    t._commonAttrItemNodes[o] = r
                                }
                                t._commonAttrItemNodes[o].parent = e, t._commonAttrItemNodes[o].active = !0, t._commonAttrItemNodes[o].getComponent(c.default).Init(n, t._itemPrefab)
                            }), this._attrCount <= 26 ? this.scheduleOnce(function() {
                                t.BgLayout.updateLayout(), t.HintNode.y = -(t.BgLayout.node.height / 2 + 200)
                            }, 0) : this.HintNode.y = -745, [2]
                        })
                    })
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Layout)], t.prototype, "BgLayout", void 0), i([d(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([d(cc.Node)], t.prototype, "HintNode", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/CommonTotalAttrComponent": "CommonTotalAttrComponent"
    }],
    CommonUpStarPreviewComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fd5d4RtvOFG7K0RxOq/jQu+", "CommonUpStarPreviewComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./CommonUpStarPreviewPanel"),
            s = e("../Components/ItemCountComponent"),
            l = e("../Components/ItemComponent"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../Components/LevelComponent2"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LeftItemNode = null, t.RightItemNode = null, t.LeftPersonalityNode = null, t.RightPersonalityNode = null, t.LeftPersonalityLabel = null, t.RightPersonalityLabel = null, t.MaterialNode = null, t.LeftStarNode = null, t.RightStarNode = null, t._materialNodes = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._data = e, this._itemCountPrefab = t, this._starPrefab = n, this.LeftItemNode.active = e.Type != a.UpStarPreviewType.Personality, this.RightItemNode.active = e.Type != a.UpStarPreviewType.Personality, this.LeftPersonalityNode.active = e.Type == a.UpStarPreviewType.Personality, this.RightPersonalityNode.active = e.Type == a.UpStarPreviewType.Personality, this.LeftStarNode.active = !1, this.RightStarNode.active = !1, e.Type == a.UpStarPreviewType.Personality ? (this.LeftPersonalityLabel.string = e.CurStar.toString(), this.RightPersonalityLabel.string = (e.CurStar + 1).toString()) : e.Type == a.UpStarPreviewType.Hero ? (this.SetItemNode(), this._leftItemComponent.InitHero({
                        ItemId: e.ParamId,
                        StarLevel: e.CurStar
                    }, l.ItemComponentType.HeroInfo, 1, -40), this._rightItemComponent.InitHero({
                        ItemId: e.ParamId,
                        StarLevel: e.CurStar + 1
                    }, l.ItemComponentType.HeroInfo, 1, -40), this._leftItemComponent.SetCountBg(!1), this._rightItemComponent.SetCountBg(!1)) : e.Type == a.UpStarPreviewType.StarPiece || e.Type == a.UpStarPreviewType.ExclusiveWeapon ? (this.SetItemNode(), this._leftItemComponent.InitHero({
                        ItemId: e.ParamId
                    }, l.ItemComponentType.StarPiece, 1, -40, function(t) {
                        t.SetStar(e.CurStar, u.ItemType.Equip)
                    }), this._rightItemComponent.InitHero({
                        ItemId: e.ParamId
                    }, l.ItemComponentType.StarPiece, 1, -40, function(t) {
                        t.SetStar(e.CurStar + 1, u.ItemType.Equip)
                    }), this._leftItemComponent.SetCountBg(!1), this._rightItemComponent.SetCountBg(!1)) : e.Type != a.UpStarPreviewType.SuperWeapon && e.Type != a.UpStarPreviewType.NewYearWeapon || (this.SetItemNode(), this.SetStarNode(), this._leftItemComponent.InitHero({
                        ItemId: e.ParamId
                    }, l.ItemComponentType.ItemCommon, 1, -40), this._rightItemComponent.InitHero({
                        ItemId: e.ParamId
                    }, l.ItemComponentType.ItemCommon, 1, -40), this._leftItemComponent.SetCountBg(!1), this._rightItemComponent.SetCountBg(!1), this._leftLevelComponent.Init(e.CurStar, 0, p.LevelComponent2Type.Orange), this._rightLevelComponent.Init(e.CurStar + 1, 0, p.LevelComponent2Type.Orange), this.LeftStarNode.active = !0, this.RightStarNode.active = !0), this.SetMaterialNodes()
                }, t.prototype.SetItemNode = function() {
                    if (!this._leftItemComponent) {
                        var e = cc.instantiate(this._itemCountPrefab);
                        e.parent = this.LeftItemNode, this._leftItemComponent = e.getComponent(s.default)
                    }
                    if (!this._rightItemComponent) {
                        var t = cc.instantiate(this._itemCountPrefab);
                        t.parent = this.RightItemNode, this._rightItemComponent = t.getComponent(s.default)
                    }
                }, t.prototype.SetStarNode = function() {
                    if (!this._leftLevelComponent) {
                        var e = cc.instantiate(this._starPrefab);
                        e.parent = this.LeftStarNode, this._leftLevelComponent = e.getComponent(p.default)
                    }
                    if (!this._rightLevelComponent) {
                        var t = cc.instantiate(this._starPrefab);
                        t.parent = this.RightStarNode, this._rightLevelComponent = t.getComponent(p.default)
                    }
                }, t.prototype.SetMaterialNodes = function() {
                    var e = this;
                    this._materialNodes.forEach(function(e) {
                        e.node.active = !1
                    }), this._data.Materials.forEach(function(t, n) {
                        if (!e._materialNodes[n]) {
                            var o = cc.instantiate(e._itemCountPrefab);
                            o.parent = e.MaterialNode, e._materialNodes[n] = o.getComponent(s.default)
                        }
                        var r = e._materialNodes[n];
                        r.node.active = !0, r.InitHero({
                            ItemId: t.ItemId,
                            StarLevel: t.Star,
                            ElementType: t.ElementType
                        }, t.ItemType, 1, -20), r.SetCountBg(!0, c.UIUtlity.COMMON_ATLAS5.getSpriteFrame("infoBg14")), r.SetCountBgInfo(-140, 0, 2, 110, 35), r.SetHeroCount(t.ItemCount.toString()), r.SetCountInfo(48)
                    })
                }, i([f(cc.Node)], t.prototype, "LeftItemNode", void 0), i([f(cc.Node)], t.prototype, "RightItemNode", void 0), i([f(cc.Node)], t.prototype, "LeftPersonalityNode", void 0), i([f(cc.Node)], t.prototype, "RightPersonalityNode", void 0), i([f(cc.Label)], t.prototype, "LeftPersonalityLabel", void 0), i([f(cc.Label)], t.prototype, "RightPersonalityLabel", void 0), i([f(cc.Node)], t.prototype, "MaterialNode", void 0), i([f(cc.Node)], t.prototype, "LeftStarNode", void 0), i([f(cc.Node)], t.prototype, "RightStarNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../ShareConsts/EnumType": "EnumType",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/ItemCountComponent": "ItemCountComponent",
        "../Components/LevelComponent2": "LevelComponent2",
        "./CommonUpStarPreviewPanel": "CommonUpStarPreviewPanel"
    }],
    CommonUpStarPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1bc509XHD9Dn5xE6ti94UOe", "CommonUpStarPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.UpStarPreviewType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomLayout"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("./CommonUpStarPreviewComponent");
        (function(e) {
            e[e.Hero = 0] = "Hero", e[e.Personality = 1] = "Personality", e[e.StarPiece = 2] = "StarPiece", e[e.SuperWeapon = 3] = "SuperWeapon", e[e.ExclusiveWeapon = 4] = "ExclusiveWeapon", e[e.NewYearWeapon = 5] = "NewYearWeapon"
        })(l = n.UpStarPreviewType || (n.UpStarPreviewType = {}));
        var m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.CustomLayout = null, t._initLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CommonPanel/SubItems/CommonUpStarPreviewComponent", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/ItemCountComponent", cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/LevelComponent2", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._previewPrefab = e[0], r._itemPrefab = e[1], r._starPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "upStarPreview_title".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._type = t[0], this._paramId = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetPreviewData(), this.SetPreviewList()
                }, t.prototype.SetPreviewData = function() {
                    var e = this;
                    switch (this._datas = [], this._type) {
                        case l.Hero:
                            for (var t = (H = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._paramId)).StarLevel; t < H.MaxStarLevel; t++) {
                                var n, o = p.ConfigDataComponent.Instance.GetConfigById(u.HeroStar_Config, t + 1);
                                if (n = H.ElementType == h.HeroElementType.Chaos ? o.ChaosHeroMaterials : o.HeroMaterials, o.ItemMaterials.length > 0 || n.length > 0) {
                                    for (var r = [], i = 0; i < n.length; i++) {
                                        var a = n[i].Items,
                                            s = a[0],
                                            c = a[1],
                                            d = a[2],
                                            y = void 0,
                                            g = H.ElementType;
                                        switch (s) {
                                            case 1:
                                                y = H.Id;
                                                break;
                                            case 2:
                                                y = H.BondHero;
                                                break;
                                            case 3:
                                                y = 0;
                                                break;
                                            case 4:
                                                g = 0, y = 0;
                                                break;
                                            case 5:
                                                y = H.Id
                                        }(F = {}).ItemId = y, F.ItemCount = d, F.ElementType = g, F.Star = c, F.ItemType = f.ItemComponentType.HeroInfo, r.push(F)
                                    }
                                    for (var m = 0; m < o.ItemMaterials.length; m++)(F = {}).ItemId = o.ItemMaterials[m].Items[0], F.ItemCount = o.ItemMaterials[m].Items[1], F.ItemType = f.ItemComponentType.ItemCommon, r.push(F);
                                    (j = {}).Type = this._type, j.CurStar = t, j.ParamId = this._paramId, j.Materials = r, this._datas.push(j)
                                }
                            }
                            break;
                        case l.Personality:
                            var I = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._paramId);
                            I.AdultPictures.length > 0 && p.ConfigDataComponent.Instance.GetArrayConfig(u.PersonalityStar_Config).forEach(function(t, n) {
                                var o = [];
                                (I.ElementType == h.HeroElementType.Chaos ? t.ChaosMaterials : t.Materials).forEach(function(t) {
                                    var n, r, i, a = t.Items[0],
                                        s = t.Items[1],
                                        l = t.Items[2];
                                    switch (a) {
                                        case 1:
                                            n = I.Id, r = s, i = I.ElementType;
                                            break;
                                        case 2:
                                            n = e.FindPersonalityId(I.Id), i = I.ElementType;
                                            break;
                                        case 3:
                                            n = s
                                    }
                                    var c = {};
                                    c.ItemId = n, c.ItemCount = l, c.ElementType = i, c.Star = r, c.ItemType = 1 == a ? f.ItemComponentType.HeroInfo : f.ItemComponentType.ItemCommon, o.push(c)
                                });
                                var r = {};
                                r.Type = e._type, r.CurStar = n, r.ParamId = e._paramId, r.Materials = o, e._datas.push(r)
                            });
                            break;
                        case l.StarPiece:
                            var _ = p.ConfigDataComponent.Instance.GetConfigById(u.StarPiece_Config, this._paramId),
                                C = p.ConfigDataComponent.Instance.GetConfigById(u.StarPieceQuality_Config, _.QualityId),
                                v = C.MaxStar,
                                b = _.ItemId;
                            for (t = 0; t < v; t++) {
                                r = [], (F = {}).ItemId = b, F.ItemCount = C.ItemCount[t], F.ItemType = f.ItemComponentType.ItemCommon, r.push(F);
                                var S = _.HeroMaterials[t].Items;
                                if (S.length > 1)
                                    for (var w = S.length / 5, P = 0; P < w; P++) {
                                        var A = S[5 * P],
                                            T = S[5 * P + 3],
                                            R = S[5 * P + 4];
                                        (z = {}).ItemId = A, z.ItemCount = R, z.Star = T, z.ItemType = f.ItemComponentType.HeroInfo, r.push(z)
                                    }(j = {}).Type = this._type, j.CurStar = t, j.ParamId = _.ItemBaseId, j.Materials = r, this._datas.push(j)
                            }
                            break;
                        case l.SuperWeapon:
                            var L = p.ConfigDataComponent.Instance.GetConfigById(u.SuperWeapon_Config, this._paramId),
                                k = p.ConfigDataComponent.Instance.GetArrayConfig(u.SuperWeaponStar_Config),
                                O = p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._paramId),
                                M = function(e) {
                                    var t = [];
                                    k[e].Materials.forEach(function(e) {
                                        var n = {}; - 1 == e.Items[0] ? n.ItemId = L.PieceId : n.ItemId = e.Items[0], n.ItemCount = e.Items[1], n.ItemType = f.ItemComponentType.ItemCommon, t.push(n)
                                    }), k[e].HeroMaterials.forEach(function(e) {
                                        var n, o = e.Items,
                                            r = o[0],
                                            i = o[1],
                                            a = o[2],
                                            s = 0;
                                        switch (r) {
                                            case 1:
                                                n = 0;
                                                break;
                                            case 3:
                                                n = 0, s = O.ElementType;
                                                break;
                                            case 4:
                                                s = 0, n = 0
                                        }
                                        var l = {};
                                        l.ItemId = n, l.ItemCount = a, l.ElementType = s, l.Star = i, l.ItemType = f.ItemComponentType.HeroInfo, t.push(l)
                                    });
                                    var n = {};
                                    n.Type = D._type, n.CurStar = e, n.ParamId = D._paramId, n.Materials = t, D._datas.push(n)
                                },
                                D = this;
                            for (t = 0; t < k.length; t++) M(t);
                            break;
                        case l.NewYearWeapon:
                            var B = p.ConfigDataComponent.Instance.GetConfigById(u.NewYearWeapon_Config, this._paramId),
                                N = p.ConfigDataComponent.Instance.GetArrayConfig(u.NewYearWeaponStar_Config),
                                E = p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._paramId),
                                U = function(e) {
                                    var t = [];
                                    N[e].Materials.forEach(function(e) {
                                        var n = {}; - 1 == e.Items[0] ? n.ItemId = B.PieceId : n.ItemId = e.Items[0], n.ItemCount = e.Items[1], n.ItemType = f.ItemComponentType.ItemCommon, t.push(n)
                                    }), N[e].HeroMaterials.forEach(function(e) {
                                        var n, o = e.Items,
                                            r = o[0],
                                            i = o[1],
                                            a = o[2],
                                            s = 0;
                                        switch (r) {
                                            case 1:
                                                n = 0;
                                                break;
                                            case 3:
                                                n = 0, s = E.ElementType;
                                                break;
                                            case 4:
                                                s = 0, n = 0
                                        }
                                        var l = {};
                                        l.ItemId = n, l.ItemCount = a, l.ElementType = s, l.Star = i, l.ItemType = f.ItemComponentType.HeroInfo, t.push(l)
                                    });
                                    var n = {};
                                    n.Type = G._type, n.CurStar = e, n.ParamId = G._paramId, n.Materials = t, G._datas.push(n)
                                },
                                G = this;
                            for (t = 0; t < N.length; t++) U(t);
                            break;
                        case l.ExclusiveWeapon:
                            _ = p.ConfigDataComponent.Instance.GetConfigById(u.ExclusiveWeapon_Config, this._paramId);
                            var x = p.ConfigDataComponent.Instance.GetArrayConfig(u.ExclusiveWeaponStar_Config),
                                H = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._paramId);
                            for (b = _.PieceId, t = 0; t < x.length; t++) {
                                var F;
                                r = [], (F = {}).ItemId = b, F.ItemCount = x[t].PieceCount, F.ItemType = f.ItemComponentType.ItemCommon, r.push(F);
                                var j, W = H.ElementType == h.HeroElementType.Chaos ? x[t].ChaosHeroMaterials : x[t].HeroMaterials;
                                if (W.length > 0)
                                    for (P = 0; P < W.length; P++) {
                                        A = 0, g = H.ElementType, s = W[P].Items[0];
                                        var z, q = W[P].Items[1],
                                            V = W[P].Items[2];
                                        switch (s) {
                                            case 1:
                                                A = this._paramId;
                                                break;
                                            case 2:
                                                A = H.BondHero;
                                                break;
                                            case 3:
                                                g = H.ElementType;
                                                break;
                                            case 4:
                                                g = 0;
                                                break;
                                            case 5:
                                                A = this._paramId
                                        }(z = {}).ItemId = A, z.ItemCount = V, z.Star = q, z.ElementType = g, z.ItemType = f.ItemComponentType.HeroInfo, r.push(z)
                                    }(j = {}).Type = this._type, j.CurStar = t, j.ParamId = _.ItemBaseId, j.Materials = r, this._datas.push(j)
                            }
                    }
                }, t.prototype.FindPersonalityId = function(e) {
                    var t = 0,
                        n = p.ConfigDataComponent.Instance.GetConfig(u.ItemPersonality_Config);
                    for (var o in n)
                        if (n[o].HeroId == e) {
                            t = n[o].Id;
                            break
                        } return t
                }, t.prototype.SetPreviewList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._previewPrefab), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._datas.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(g.default).Init(n._datas[t], n._itemPrefab, n._starPrefab)
                    })
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(d.default)], t.prototype, "CustomLayout", void 0), i([I], t)
            }(c.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonUpStarPreviewComponent": "CommonUpStarPreviewComponent"
    }],
    CommonVSPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e6319dDV5JHb5CQFXwvYv+K", "CommonVSPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/HeadComponent"),
            h = e("../../Channel/ChannelManager"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Battle/BattleManager"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Effect1 = null, t.Effect2 = null, t.Effect3 = null, t.MyHead = null, t.MyNameLabel = null, t.EnemyHead = null, t.EnemyNode = null, t.EnemyNameLabel = null, t.FloatHead = null, t.FloatNode = null, t.FloatNameLabel = null, t._isMatchFinished = !1, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerRankPanel/Effect/UI_effect_pipeizhong", sp.SkeletonData), n = this.LoadDynamicAsset("CrossServerRankPanel/Effect/UI_effect_pipeizhong_2", sp.SkeletonData), o = this.LoadDynamicAsset("CrossServerRankPanel/Effect/UI_effect_pipeizhong_chenggong", sp.SkeletonData), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._spineData1 = e[0], r._spineData2 = e[1], r._spineData3 = e[2]
                                    })];
                                case 1:
                                    return i.sent(), this.Effect1.skeletonData = this._spineData1, this.Effect2.skeletonData = this._spineData2, this.Effect3.skeletonData = this._spineData3, [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._enemyInfo = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), y.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !1, this.InitNodes(), this.SetVsNode()
                }, t.prototype.InitNodes = function() {
                    this.Effect1.node.active = !1, this.Effect2.node.active = !1, this.Effect3.node.active = !1
                }, t.prototype.SetVsNode = function() {
                    var e, t = c.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon),
                        n = c.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame),
                        o = c.DataCenter.Instance.GetStringData(p.UserDataKey.RoleName);
                    this.MyHead.SetUI(t, n), this.MyHead.SetLevel(c.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel)), (e = c.DataCenter.Instance.GetStringData(p.UserDataKey.Country)) || (e = h.default.Instance.Localization_Country), e = 0 == c.DataCenter.Instance.GetIntData(p.UserDataKey.CountryShowState) ? e : "", this.MyHead.SetCountry(e), this.MyNameLabel.string = o, this._isMatchFinished = !1, this.SetHeroHeadNodeFloat(), this.SetEffect()
                }, t.prototype.SetEffect = function() {
                    var e = this;
                    this.Effect1.node.active = !0, this.Effect1.setAnimation(0, "Ai_UI_effect_pipeizhong", !1), this.scheduleOnce(function() {
                        e.Effect1.node.active = !1, e.Effect2.node.active = !0, e.Effect2.setAnimation(0, "Ai_UI_effect_pipeizhong2", !0), e.scheduleOnce(function() {
                            e._enemyInfo ? (e._isMatchFinished = !0, e.EnemyHead.SetUI(e._enemyInfo.HeadIcon, e._enemyInfo.HeadFrame), e.EnemyHead.SetLevel(e._enemyInfo.Level), e.EnemyHead.SetCountry(e._enemyInfo.Country), e.EnemyNameLabel.string = e._enemyInfo.Name, e.FloatNode.opacity = 0, e.EnemyNode.opacity = 255, e.Effect3.node.active = !0, e.Effect3.setAnimation(0, "Ani_UI_effect_pipeizhong_chenggong", !1), e.scheduleOnce(function() {
                                this.Effect1.node.active = !1, this.Effect2.node.active = !1, this.Effect3.node.active = !1, this.Close(), l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_VS_COMPLETE), y.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !0
                            }, 1)) : (e._isMatchFinished = !0, e.Effect1.node.active = !1, e.Effect2.node.active = !1, e.Effect3.node.active = !1, e.Close(), y.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !0)
                        }, 1)
                    }, .3)
                }, t.prototype.SetHeroHeadNodeFloat = function() {
                    var e = this;
                    if (!this._isMatchFinished) {
                        this.FloatNode.opacity = 255, this.EnemyNode.opacity = 0;
                        for (var t = [this.EnemyHead, this.FloatHead], n = [this.EnemyNameLabel, this.FloatNameLabel], o = 0; o < t.length; o++) {
                            var r = this.GetRandomHeadIcon(),
                                i = this.GetRandomHeadFrame();
                            n[o].string = this.GetRandomName(), t[o].SetUI(r, i), t[o].SetLevel(0), t[o].SetCountry(null)
                        }
                        cc.tween(this.FloatNode).to(.166, {
                            y: 75,
                            opacity: 0
                        }).call(function() {
                            e.FloatNode.y = 0, e._isMatchFinished || (e.FloatNode.opacity = 255)
                        }).start(), cc.tween(this.EnemyNode).to(.166, {
                            opacity: 255
                        }).call(function() {
                            e.SetHeroHeadNodeFloat()
                        }).start()
                    }
                }, t.prototype.GetRandomHeadIcon = function() {
                    null == this._headIcons && (this._headIcons = c.ConfigDataComponent.Instance.GetArrayConfig(u.HeadIcon_Config));
                    var e = this._headIcons.length,
                        t = Math.floor(Math.random() * e),
                        n = 0;
                    return this._headIcons[t] && (n = this._headIcons[t].Id), n
                }, t.prototype.GetRandomHeadFrame = function() {
                    null == this._headFrames && (this._headFrames = c.ConfigDataComponent.Instance.GetArrayConfig(u.HeadFrame_Config));
                    var e = this._headFrames.length,
                        t = Math.floor(Math.random() * e),
                        n = 0;
                    return this._headFrames[t] && (n = this._headFrames[t].Id), n
                }, t.prototype.GetRandomName = function() {
                    for (var e = c.ConfigCacheComponent.Instance.GetRandomNamesConfigs(), t = [this.GetNamePool1, this.GetNamePool2, this.GetNamePool3], n = "", o = 0; o < t.length; o++) n += this.GetValidName(e, t[o].bind(this));
                    return n
                }, t.prototype.GetValidName = function(e, t) {
                    for (var n = Math.floor(Math.random() * e.length), o = t(e[n]); null == o || "" == o;) o = t(e[n = Math.floor(n / 2)]);
                    return o
                }, t.prototype.GetNamePool1 = function(e) {
                    return e.NamePool1
                }, t.prototype.GetNamePool2 = function(e) {
                    return e.NamePool2
                }, t.prototype.GetNamePool3 = function(e) {
                    return e.NamePool3
                }, t.prototype.onDestroy = function() {
                    y.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !0
                }, i([I(sp.Skeleton)], t.prototype, "Effect1", void 0), i([I(sp.Skeleton)], t.prototype, "Effect2", void 0), i([I(sp.Skeleton)], t.prototype, "Effect3", void 0), i([I(d.default)], t.prototype, "MyHead", void 0), i([I(cc.Label)], t.prototype, "MyNameLabel", void 0), i([I(d.default)], t.prototype, "EnemyHead", void 0), i([I(cc.Node)], t.prototype, "EnemyNode", void 0), i([I(cc.Label)], t.prototype, "EnemyNameLabel", void 0), i([I(d.default)], t.prototype, "FloatHead", void 0), i([I(cc.Node)], t.prototype, "FloatNode", void 0), i([I(cc.Label)], t.prototype, "FloatNameLabel", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Battle/BattleManager": "BattleManager",
        "../Components/HeadComponent": "HeadComponent"
    }],
    Components: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "aa1d3K0eapABJo9JHbKj6NH", "Components");
        var o = this && this.__createBinding || (Object.create ? function(e, t, n, o) {
                void 0 === o && (o = n), Object.defineProperty(e, o, {
                    enumerable: !0,
                    get: function() {
                        return t[n]
                    }
                })
            } : function(e, t, n, o) {
                void 0 === o && (o = n), e[o] = t[n]
            }),
            r = this && this.__exportStar || function(e, t) {
                for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n)
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), r(e("./GlobalConfigComponent"), n), r(e("./DataCenter"), n), r(e("./RpcComponent"), n), r(e("./HotUpdateComponent"), n), r(e("./ConfigData/ConfigDownloaderComponent"), n), r(e("./ConfigData/ConfigDownloaderNativeComponent"), n), r(e("./ConfigData/ConfigDataComponent"), n), r(e("./ConfigData/ConfigCacheComponent"), n), cc._RF.pop()
    }, {
        "./ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "./ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "./ConfigData/ConfigDownloaderComponent": "ConfigDownloaderComponent",
        "./ConfigData/ConfigDownloaderNativeComponent": "ConfigDownloaderNativeComponent",
        "./DataCenter": "DataCenter",
        "./GlobalConfigComponent": "GlobalConfigComponent",
        "./HotUpdateComponent": "HotUpdateComponent",
        "./RpcComponent": "RpcComponent"
    }],
    ConfigCacheComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7bc47tslhdPeJqcADLav4Dd", "ConfigCacheComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
            return (o = Object.setPrototypeOf || {
                    __proto__: []
                }
                instanceof Array && function(e, t) {
                    e.__proto__ = t
                } || function(e, t) {
                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                })(e, t)
        }, function(e, t) {
            function n() {
                this.constructor = e
            }
            o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
        });
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ConfigCacheComponent = void 0;
        var i = e("../../../Consts/Consts"),
            a = e("../../../EZFramework/EZFramework"),
            s = e("../../../Util/index"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("./ConfigDataComponent"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../DataCenter"),
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._HandbookHeroAttrMap = {}, t._StarResonanceLevelUpperLimit = 0, t._StarStatueMaxLevel = 0, t._StarStatueGemMaxCount = 0, t._StarPowerMaxLevel = 0, t._StarPieceMaxLevel = 0, t._AllianceTalentConfig = [], t._StarPieceConfig = [], t._holyEquipmentMaxLevel = 0, t._holyEquipBlessingMaxLevel = 0, t._holyEquipSoulMaxLevel = 0, t._indexToTime = [], t._indexToItem = [], t._vipLevelConfigs = [], t._subscriPriviConfigs = [], t._allianceIconConfig = [], t._allianceLevelConfig = [], t._ElementStarHeroSoulMap = null, t._StarGarrisonAttrsMap = null, t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return this._Instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function() {
                    t._Instance = this, e.prototype.Init.call(this)
                }, t.prototype.Dispose = function() {
                    this.IsDisposed || (t._Instance = null, this._HandbookHeroAttrMap = {}, e.prototype.Dispose.call(this))
                }, t.prototype.GetTestTowerExtraRewardList = function(e) {
                    if (null != this._TestTowerExtraRewardMap) return this._TestTowerExtraRewardMap.get(e);
                    this._TestTowerExtraRewardMap = new Map;
                    for (var t = u.ConfigDataComponent.Instance.GetArrayConfig(l.TestTowerType_Config), n = 0; n < t.length; n++) {
                        for (var o = t[n].Id, r = t[n].MapIdPrefix, i = t[n].MaxCount, a = [], s = 1; s <= i; s++) {
                            var c = u.ConfigDataComponent.Instance.GetConfigById(l.MapTestTower_Config, r + s);
                            c.ExtraRewards.length > 0 && a.push(c)
                        }
                        this._TestTowerExtraRewardMap.set(o, a)
                    }
                    return this._TestTowerExtraRewardMap.get(e)
                }, t.prototype.GetStarResonanceUpperLimit = function() {
                    return this._StarResonanceLevelUpperLimit > 0 ? this._StarResonanceLevelUpperLimit : (this._StarResonanceLevelUpperLimit = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarResonanceSecondInitialMaxLevel"), this._StarResonanceLevelUpperLimit)
                }, t.prototype.GetStarStatueMaxLevel = function() {
                    if (this._StarStatueMaxLevel > 0) return this._StarStatueMaxLevel;
                    var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.StarHolyStatueLevel_Config),
                        t = e[e.length - 1];
                    return this._StarStatueMaxLevel = t.Id, this._StarStatueMaxLevel
                }, t.prototype.GetStarStatueGemMaxCount = function() {
                    if (this._StarStatueGemMaxCount > 0) return this._StarStatueGemMaxCount;
                    var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.StarHolyStatueLevel_Config),
                        t = e[e.length - 1];
                    return this._StarStatueGemMaxCount = t.MaxCount, this._StarStatueGemMaxCount
                }, t.prototype.GetStarPowerMaxLevel = function() {
                    if (this._StarPowerMaxLevel > 0) return this._StarPowerMaxLevel;
                    var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.StarPowerLevel_Config),
                        t = e[e.length - 1];
                    return this._StarPowerMaxLevel = t.Id, this._StarPowerMaxLevel
                }, t.prototype.GetStarPieceMaxLevel = function() {
                    if (this._StarPieceMaxLevel > 0) return this._StarPieceMaxLevel;
                    var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.StarPieceLevel_Config),
                        t = e[e.length - 1];
                    return this._StarPieceMaxLevel = t.Id, this._StarPieceMaxLevel
                }, t.prototype.GetAllianceTalentConfig = function() {
                    return this._AllianceTalentConfig.length > 0 ? this._AllianceTalentConfig : (this._AllianceTalentConfig = u.ConfigDataComponent.Instance.GetArrayConfig(l.AllianceTalentLevel_Config), this._AllianceTalentConfig)
                }, t.prototype.GetStarPieceConfig = function() {
                    return this._StarPieceConfig.length > 0 ? this._StarPieceConfig : (this._StarPieceConfig = u.ConfigDataComponent.Instance.GetArrayConfig(l.StarPiece_Config), this._StarPieceConfig)
                }, t.prototype.GetAdventureChapters = function() {
                    return null == this._adventureChapterConfigs && (this._adventureChapterConfigs = u.ConfigDataComponent.Instance.GetArrayConfig(l.AdventureChapter_Config)), this._adventureChapterConfigs
                }, t.prototype.GetChapterIdByMapId = function(e) {
                    if (null == this._mapIdToChapterId) {
                        this._mapIdToChapterId = new Map, this.GetAdventureChapters();
                        for (var t = 0; t < this._adventureChapterConfigs.length; t++)
                            for (var n = 0; n < this._adventureChapterConfigs[t].MapIds.length; n++) this._mapIdToChapterId.set(this._adventureChapterConfigs[t].MapIds[n], this._adventureChapterConfigs[t].Id)
                    }
                    return this._mapIdToChapterId.get(e)
                }, t.prototype.GetLevelIndexByMapId = function(e) {
                    if (null == this._mapIdToLevelId) {
                        this._mapIdToLevelId = new Map, this.GetAdventureChapters();
                        for (var t = 0; t < this._adventureChapterConfigs.length; t++)
                            for (var n = 0; n < this._adventureChapterConfigs[t].MapIds.length; n++) this._mapIdToLevelId.set(this._adventureChapterConfigs[t].MapIds[n], n + 1)
                    }
                    return this._mapIdToLevelId.get(e)
                }, t.prototype.GetAreaNameByChapterId = function(e) {
                    if (null == this._chapterIdToAreaName) {
                        this._chapterIdToAreaName = new Map;
                        for (var t = u.ConfigDataComponent.Instance.GetArrayConfig(l.MapWorld_Config), n = 0; n < t.length; n++)
                            for (var o = 0; o < t[n].ChapterIds.length; o++) this._chapterIdToAreaName.set(t[n].ChapterIds[o], u.ConfigDataComponent.Instance.GetLocale("MapWorld_name_" + t[n].Id))
                    }
                    return this._chapterIdToAreaName.get(e)
                }, t.prototype.GetAreaIdByChapterId = function(e) {
                    if (null == this._chapterIdToAreaId) {
                        this._chapterIdToAreaId = new Map;
                        for (var t = u.ConfigDataComponent.Instance.GetArrayConfig(l.MapWorld_Config), n = 0; n < t.length; n++)
                            for (var o = 0; o < t[n].ChapterIds.length; o++) this._chapterIdToAreaId.set(t[n].ChapterIds[o], t[n].Id)
                    }
                    return this._chapterIdToAreaId.get(e)
                }, t.prototype.GetAreaIdByMapId = function(e) {
                    return this.GetAreaIdByChapterId(this.GetChapterIdByMapId(e))
                }, t.prototype.GetRequireTimeByIndex = function(e) {
                    if (0 == this._indexToTime.length) {
                        this._indexToTime = [0];
                        for (var t = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.OnlineRewards), n = 0; n < t.Data2.length; n++) this._indexToTime[n + 1] = t.Data2[n].Items[2] * i.Etc.MinuteDuration
                    }
                    return this._indexToTime[e]
                }, t.prototype.GetOnlineItemByIndex = function(e) {
                    if (0 == this._indexToItem.length)
                        for (var t = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.OnlineRewards), n = 0; n < t.Data2.length; n++) this._indexToItem[n + 1] = [t.Data2[n].Items[0], t.Data2[n].Items[1]];
                    return this._indexToItem[e]
                }, t.prototype.GetAdvRwdConfigs = function() {
                    return null == this._advRwdConfigs && (this._advRwdConfigs = u.ConfigDataComponent.Instance.GetArrayConfig(l.AdventureReward_Config)), this._advRwdConfigs
                }, t.prototype.GetRwdIdByMapId = function(e) {
                    if (this.GetAdvRwdConfigs(), null == this._mapIdToAdvRwdId) {
                        this._mapIdToAdvRwdId = new Map;
                        for (var t = 0; t < this._advRwdConfigs.length; t++) this._mapIdToAdvRwdId.set(this._advRwdConfigs[t].MapId, this._advRwdConfigs[t].Id)
                    }
                    if (null == this._mapIdToAdvRwdId.get(e)) {
                        if (e < this._advRwdConfigs[this._advRwdConfigs.length - 1].MapId) {
                            for (t = this._advRwdConfigs[this._advRwdConfigs.length - 1].Id - 1; t > 0 && this._advRwdConfigs[t - 1].MapId > e;) t--;
                            return [0, t + 1]
                        }
                        return null
                    }
                    return [this._mapIdToAdvRwdId.get(e), 0]
                }, t.prototype.GetNextRwdNumberByMapId = function(e) {
                    var t = this.GetRwdIdByMapId(e);
                    if (t[0] > 0) return 0;
                    var n = t[1],
                        o = u.ConfigDataComponent.Instance.GetConfigById(l.AdventureReward_Config, n).MapId;
                    return this.GetIndexOfMainLineMapIds(o) - this.GetIndexOfMainLineMapIds(e)
                }, t.prototype.GetIndexOfMainLineMapIds = function(e) {
                    if (null == this._mainLineMapIds) {
                        this._mainLineMapIds = [];
                        for (var t = u.ConfigDataComponent.Instance.GetArrayConfig(l.AdventureChapter_Config), n = 0; n < t.length; n++)
                            for (var o = 0; o < t[n].MapIds.length; o++) this._mainLineMapIds.push(t[n].MapIds[o])
                    }
                    return this._mainLineMapIds.indexOf(e)
                }, t.prototype.GetMapIdByMainLineIndex = function(e) {
                    return this._mainLineMapIds[e]
                }, t.prototype.GetNewPrivilegeArray = function(e, t) {
                    if (104 == t) return !0;
                    if (null == this._newPrivilegeArray) {
                        this._newPrivilegeArray = [], this._newPrivilegeArray.push([]);
                        for (var n = u.ConfigDataComponent.Instance.GetArrayConfig(l.VipLevel_Config), o = [], r = 1; r <= n.length; r++) {
                            for (var i = n[r - 1].Privilege, a = [], s = 0; s < i.length; s++) {
                                var c = i[s].Items[0];
                                o.includes(c) || (a.push(c), o.push(c))
                            }
                            this._newPrivilegeArray[r] = a
                        }
                    }
                    return this._newPrivilegeArray[e].includes(t)
                }, t.prototype.GetNewPrivilegeArrayFromAToB = function(e, t) {
                    if (e > t) return this.GetNewPrivilegeArrayFromAToB(t, e);
                    if (e == t) return [];
                    null == this._newPrivilegeArray && this.GetNewPrivilegeArray(1, 1);
                    for (var n = [], o = e + 1; o <= t; o++) this._newPrivilegeArray[o].forEach(function(e) {
                        n.push(e)
                    });
                    return n
                }, t.prototype.GetAlwaysNewPrivilegeArrayFromAToB = function(e, t) {
                    if (e > t) return this.GetAlwaysNewPrivilegeArrayFromAToB(t, e);
                    if (e == t) return [];
                    for (var n = [], o = e + 1; o < t; o++) u.ConfigDataComponent.Instance.GetConfigById(l.VipLevel_Config, o).Privilege.forEach(function(e) {
                        e.Items[0] > 100 && n.push(e.Items)
                    });
                    return n
                }, t.prototype.GetVipLevelConfigs = function() {
                    return 0 == this._vipLevelConfigs.length && (this._vipLevelConfigs = u.ConfigDataComponent.Instance.GetArrayConfig(l.VipLevel_Config)), this._vipLevelConfigs
                }, t.prototype.GetAllianceIconConfigs = function() {
                    return 0 == this._allianceIconConfig.length && (this._allianceIconConfig = u.ConfigDataComponent.Instance.GetArrayConfig(l.AllianceIcon_Config)), this._allianceIconConfig
                }, t.prototype.GetAllianceLevelConfigs = function() {
                    return 0 == this._allianceLevelConfig.length && (this._allianceLevelConfig = u.ConfigDataComponent.Instance.GetArrayConfig(l.AllianceLevel_Config)), this._allianceLevelConfig
                }, t.prototype.GetSubscriPriviConfigs = function() {
                    return 0 == this._subscriPriviConfigs.length && (this._subscriPriviConfigs = u.ConfigDataComponent.Instance.GetArrayConfig(l.SubscribePrivilege_Config)), this._subscriPriviConfigs
                }, t.prototype.GetGrowUpFundConfigs = function(e, t, n) {
                    var o = this;
                    if (!this._growUpFundConfigMap) {
                        var r = u.ConfigDataComponent.Instance.GetArrayConfig(l.GrowUpFund_Config);
                        this._growUpFundConfigMap = {}, r.forEach(function(e) {
                            o._growUpFundConfigMap[e.Type] || (o._growUpFundConfigMap[e.Type] = []), o._growUpFundConfigMap[e.Type].push(e)
                        })
                    }
                    for (var i = [], a = this._growUpFundConfigMap[n], s = 0; s < a.length; s++) i[a[s].Stage] || (i[a[s].Stage] = []), i[a[s].Stage][a[s].Phase] || (i[a[s].Stage][a[s].Phase] = []), i[a[s].Stage][a[s].Phase].push(a[s]);
                    return i[e][t]
                }, t.prototype.GetRandomNamesConfigs = function() {
                    return null == this._randomNameConfigs && (this._randomNameConfigs = u.ConfigDataComponent.Instance.GetArrayConfig(l.RandomName_Config)), this._randomNameConfigs
                }, t.prototype.GetFeedBackConfigs = function() {
                    return null == this._feedbackConfigs && (this._feedbackConfigs = u.ConfigDataComponent.Instance.GetArrayConfig(l.FeedbackGift_Config)), this._feedbackConfigs
                }, t.prototype.GetDiamondShopGiftsConfigs = function() {
                    if (null == this._diamondGiftPackConfigs) {
                        var e = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.BuyDiamond).Data;
                        this._diamondGiftPackConfigs = [];
                        for (var t = 0; t < e.length; t++) this._diamondGiftPackConfigs.push(u.ConfigDataComponent.Instance.GetConfigById(l.GiftPack_Config, e[t]))
                    }
                    return this._diamondGiftPackConfigs
                }, t.prototype.GetCurrencyShopGiftsConfigs = function() {
                    if (null == this._currencyGiftPackConfigs) {
                        var e = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.BuyCurrency).Data;
                        this._currencyGiftPackConfigs = [];
                        for (var t = 0; t < e.length; t++) this._currencyGiftPackConfigs.push(u.ConfigDataComponent.Instance.GetConfigById(l.GiftPack_Config, e[t]))
                    }
                    return this._currencyGiftPackConfigs
                }, t.prototype.IsFinalMap = function(e) {
                    null == this._mapAdvConfigs && (this._mapAdvConfigs = u.ConfigDataComponent.Instance.GetArrayConfig(l.MapAdventure_Config));
                    var t = u.ConfigDataComponent.Instance.GetConfigById(l.MapAdventure_Config, e);
                    if (0 == t.NextId)
                        for (var n = this._mapAdvConfigs.length - 1; n >= 0;) {
                            if (this._mapAdvConfigs[n].NextId == t.Id) return this._mapAdvConfigs[n].Id;
                            n--
                        }
                    return e
                }, t.prototype.GetHandbookHeroAttr = function(e, n) {
                    if (this._HandbookHeroAttrMap[e] || (this._HandbookHeroAttrMap[e] = {}), this._HandbookHeroAttrMap[e][n]) return this._HandbookHeroAttrMap[e][n];
                    var o = u.ConfigDataComponent.Instance.GetConfigById(l.HeroStar_Config, n).MaxLevel,
                        r = t.GetHeroBaseAttr(e, n, o);
                    return r[999] = t.CalculateAttributePower(r), this._HandbookHeroAttrMap[e][n] = r, r
                }, t.prototype.GetHeroPowerByStarAndLevel = function(e, n, o) {
                    var r = t.GetHeroBaseAttr(e, n, o);
                    return t.CalculateAttributePower(r)
                }, t.prototype.GetHeroStarLevelToGemsCount = function(e) {
                    if (null == this._heroStarLevelToGemsCount) {
                        var t, n = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.GemGroove).Data2,
                            o = u.ConfigDataComponent.Instance.GetArrayConfig(l.HeroStar_Config);
                        t = o[o.length - 1].Id, this._heroStarLevelToGemsCount = [];
                        for (var r = 0; r <= t; r++) this._heroStarLevelToGemsCount[r] = 0;
                        for (r = 0; r < n.length; r++)
                            for (var a = n[r].Items[1]; a < this._heroStarLevelToGemsCount.length; a++) this._heroStarLevelToGemsCount[a]++
                    }
                    return this._heroStarLevelToGemsCount[e]
                }, t.prototype.GetGemQualityByItemId = function(e) {
                    return u.ConfigDataComponent.Instance.GetConfigById(l.GemEquip_Config, e).Quality
                }, t.prototype.GetGemQualityBySid = function(e) {
                    var t = d.DataCenter.Instance.GetDataById(c.GemEquip_Model, e);
                    return this.GetGemQualityByItemId(t.ItemId)
                }, t.prototype.GetGemUnlockData = function() {
                    if (null == this._gemUnlockData) {
                        var e = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.GemGroove).Data2;
                        this._gemUnlockData = [0];
                        for (var t = 0; t < e.length; t++) this._gemUnlockData.push(e[t].Items[1])
                    }
                    return this._gemUnlockData
                }, t.prototype.GetHeroSoulByElementStar = function(e, t) {
                    return this.UpdateElementStarHeroSoul(), this._ElementStarHeroSoulMap[e][t] || 0
                }, t.prototype.UpdateElementStarHeroSoul = function() {
                    if (!this._ElementStarHeroSoulMap) {
                        this._ElementStarHeroSoulMap = {};
                        var e = u.ConfigDataComponent.Instance.GetConfig(l.ItemConsume_Config);
                        for (var t in e)
                            if (e[t].SubType == i.ConsumeItemType.HeroSoul) {
                                var n = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, t),
                                    o = 0;
                                switch (e[t].Param[0].Items.length) {
                                    case 1:
                                        o = e[t].Param[0].Items[0];
                                        break;
                                    case 5:
                                        o = i.HeroElementType.Combine5
                                }
                                if (!o) continue;
                                this._ElementStarHeroSoulMap[o] || (this._ElementStarHeroSoulMap[o] = {}), this._ElementStarHeroSoulMap[o][n.Star] = parseInt(t)
                            }
                    }
                }, t.prototype.GetStarGarrisonAttrsConfig = function(e, t, n) {
                    return this.UpdateStarGarrisonAttrs(), this._StarGarrisonAttrsMap[e][t][n]
                }, t.prototype.UpdateStarGarrisonAttrs = function() {
                    if (null == this._StarGarrisonAttrsMap) {
                        this._StarGarrisonAttrsMap = {};
                        var e = u.ConfigDataComponent.Instance.GetConfig(l.StarGarrisonAttrs_Config);
                        for (var t in e) {
                            var n = e[t];
                            this._StarGarrisonAttrsMap[n.Star] || (this._StarGarrisonAttrsMap[n.Star] = {}), this._StarGarrisonAttrsMap[n.Star][n.Grading] || (this._StarGarrisonAttrsMap[n.Star][n.Grading] = {}), this._StarGarrisonAttrsMap[n.Star][n.Grading][n.Camp] = n
                        }
                    }
                }, Object.defineProperty(t.prototype, "HolyEquipmentMaxLevel", {
                    get: function() {
                        if (this._holyEquipmentMaxLevel > 0) return this._holyEquipmentMaxLevel;
                        var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.HolyEquipmentLevel_Config),
                            t = e[e.length - 1];
                        return this._holyEquipmentMaxLevel = t.Id, this._holyEquipmentMaxLevel
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "HolyEquipBlessingMaxLevel", {
                    get: function() {
                        if (this._holyEquipBlessingMaxLevel > 0) return this._holyEquipBlessingMaxLevel;
                        var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.HolyEquipBlessingLevel_Config),
                            t = e[e.length - 1];
                        return this._holyEquipBlessingMaxLevel = t.Id, this._holyEquipBlessingMaxLevel
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "HolyEquipSoulMaxLevel", {
                    get: function() {
                        if (this._holyEquipSoulMaxLevel > 0) return this._holyEquipSoulMaxLevel;
                        var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.HolyEquipSoul_Config),
                            t = e[e.length - 1];
                        return this._holyEquipSoulMaxLevel = t.Id, this._holyEquipSoulMaxLevel
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.GetHeroBaseAttr = function(e, n, o) {
                    var r = {},
                        a = u.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, e);
                    if (!a) return r;
                    t.AddAttrs(r, a.Attrs);
                    var s = u.ConfigDataComponent.Instance.GetConfigById(l.HeroStar_Config, n),
                        c = i.HeroAttributeType.PanelAttributePrefix + i.HeroAttributeType.PercentAttributeOffset + i.HeroAttributeType.Attack,
                        p = i.HeroAttributeType.PanelAttributePrefix + i.HeroAttributeType.PercentAttributeOffset + i.HeroAttributeType.Hp;
                    r[c] || (r[c] = 0), r[p] || (r[p] = 0), r[c] += s.AttackAddon || 0, r[p] += s.HpAddon || 0;
                    var d = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.HeroStageStartLevel).Data,
                        h = a.StarLevel;
                    a.CoreHero >= i.CoreHeroTag.SP && (h = a.CoreHero + 4);
                    for (var f = 100 * a.ElementType + 10 * a.Career + h, y = u.ConfigDataComponent.Instance.GetConfigById(l.HeroLevelAttribute_Config, f), g = o, m = d[0] || 1, I = 0; I < y.LevelAttr.length && !(I >= d.length); I++) {
                        var _ = y.LevelAttr[I].Items;
                        if (g <= d[I]) break;
                        var C = g;
                        I + 1 < y.LevelAttr.length && (C = Math.min(C, d[I + 1]));
                        var v = C - m;
                        r[i.HeroAttributeType.Attack] += (_[0] || 0) / 1e3 * v, r[i.HeroAttributeType.Hp] += (_[1] || 0) / 1e3 * v, r[i.HeroAttributeType.Defense] += (_[2] || 0) / 1e3 * v, r[i.HeroAttributeType.Speed] += (_[3] || 0) / 1e3 * v, m = C
                    }
                    for (I = 0; I < y.StageAttr.length && !(I + 1 >= d.length) && (_ = y.StageAttr[I].Items, !(g <= d[I + 1])); I++) r[i.HeroAttributeType.Attack] += (_[0] || 0) / 1e3, r[i.HeroAttributeType.Hp] += (_[1] || 0) / 1e3, r[i.HeroAttributeType.Defense] += (_[2] || 0) / 1e3, r[i.HeroAttributeType.Speed] += (_[3] || 0) / 1e3;
                    for (I = 0; I < a.Skills.length; I++) {
                        var b = t.GetHeroSkillLevel(I, g, n);
                        if (!(b <= 0)) {
                            var S = a.Skills[I].Items[b - 1];
                            if (S) {
                                var w = u.ConfigDataComponent.Instance.GetConfigById(l.SkillBase_Config, S);
                                w && t.AddAttrs(r, w.Attrs)
                            }
                        }
                    }
                    return t.CalculatePanelAttribute(r), r
                }, t.CalculateAttributePower = function(e) {
                    var t = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.AttributePowerParam);
                    if (!t) return 0;
                    var n = 0;
                    for (var o in e) {
                        var r = s.AppUtil.ToInt(o);
                        r >= t.FloatData.length || (n += e[o] * t.FloatData[r])
                    }
                    return Math.floor(n)
                }, t.CalculatePanelAttribute = function(e) {
                    if (e)
                        for (var t = 0; t < i.HeroAttributeType.PanelAttributeLayer; t++) {
                            var n = i.HeroAttributeType.PanelAttributePrefix + 10 * t,
                                o = n + i.HeroAttributeType.PercentAttributeOffset,
                                r = !1;
                            t + 1 == i.HeroAttributeType.PanelAttributeLayer && (r = !0);
                            for (var a = i.HeroAttributeType.Attack; a <= i.HeroAttributeType.Speed; a++) {
                                var s = o + a,
                                    l = n + a,
                                    c = (e[s] || 0) / 1e3,
                                    u = e[l] || 0;
                                delete e[s], delete e[l], e[a] || (e[a] = 0), e[a] = e[a] * (1 + c) + u, r && (e[a] = Math.floor(e[a]))
                            }
                        }
                }, t.GetHeroSkillLevel = function(e, t, n) {
                    var o = 0,
                        r = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.HeroSkillUnlockCondition);
                    if (!r || !r.Data2[e]) return o;
                    var a = r.Data2[e].Items;
                    return t < a[0] ? o : o = n < a[1] ? 1 : n < a[2] ? 2 : 3
                }, t.AddAttrs = function(e, t) {
                    if (e && t)
                        for (var n = 0; n < t.length; n++) {
                            var o = t[n].Items[0],
                                r = t[n].Items[1] || 0;
                            0 != r && (e[o] || (e[o] = 0), e[o] += r)
                        }
                }, t.prototype.GetGiftInfoById = function(e) {
                    if (null == this._GiftPackInfo) {
                        this._GiftPackInfo = {};
                        var t = u.ConfigDataComponent.Instance.GetConfig(l.MallActivity_Config);
                        for (var n in t)
                            for (var o = t[n], r = 0; r < o.Gifts.length; r++) this._GiftPackInfo[o.Gifts[r].Items[0]] = {
                                Type: o.Id,
                                Index: r,
                                limitBuyType: o.Gifts[r].Items[1],
                                limitBuyCount: o.Gifts[r].Items[2]
                            };
                        var a = u.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, i.LevelParamType.BuyDiamond);
                        for (n = 0; n < a.Data.length; n++) {
                            var s = a.Data[n];
                            this._GiftPackInfo[s] = {
                                Type: i.GiftPackType.BuyDiamond,
                                Index: n,
                                limitBuyType: i.LimitBuyType.Not,
                                limitBuyCount: 0
                            }
                        }
                        var c = u.ConfigDataComponent.Instance.GetConfig(l.FirstPay_Config);
                        for (var n in c) o = c[n], this._GiftPackInfo[o.GiftId] = {
                            Type: i.GiftPackType.FirstPay,
                            Index: o.Id,
                            limitBuyType: i.LimitBuyType.Phase,
                            limitBuyCount: 1
                        };
                        var p = u.ConfigDataComponent.Instance.GetConfig(l.WarTokenType_Config);
                        for (var n in p) o = p[n], this._GiftPackInfo[o.GiftId] = {
                            Type: i.GiftPackType.WarToken,
                            Index: o.Id,
                            limitBuyType: i.LimitBuyType.Phase,
                            limitBuyCount: 1
                        };
                        var d = u.ConfigDataComponent.Instance.GetConfig(l.TriggerGift_Config);
                        for (var n in d) o = d[n], this._GiftPackInfo[o.GiftId] = {
                            Type: i.GiftPackType.Trigger,
                            Index: o.Id,
                            limitBuyType: i.LimitBuyType.Phase,
                            limitBuyCount: 1
                        }
                    }
                    return this._GiftPackInfo[e]
                }, t.prototype.GetHeroMaxLevelPerStar = function() {
                    if (!this._heroMaxLevelPerStar) {
                        this._heroMaxLevelPerStar = [];
                        for (var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.HeroStar_Config), t = 0; t < e.length; t++) this._heroMaxLevelPerStar.push(e[t].MaxLevel)
                    }
                    return this._heroMaxLevelPerStar
                }, t.prototype.GetPetMaxLevelPerStar = function() {
                    if (!this._petMaxLevelPerStar) {
                        this._petMaxLevelPerStar = [];
                        for (var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.PetStar_Config), t = 0; t < e.length; t++) this._petMaxLevelPerStar.push(e[t].MaxLevel)
                    }
                    return this._petMaxLevelPerStar
                }, t.prototype.GetAngelMaxLevelPerStar = function(e) {
                    if (!this._angelMaxLevelPerStar) {
                        this._angelMaxLevelPerStar = [];
                        for (var t = 1e3 * e, n = t + u.ConfigDataComponent.Instance.GetConfigById(l.AngelBase_Config, e).MaxStarLevel, o = u.ConfigDataComponent.Instance.GetArrayConfig(l.AngelStar_Config), r = 0; r < o.length; r++) o[r].Id >= t && o[r].Id < n && this._angelMaxLevelPerStar.push(o[r].LevelLimit)
                    }
                    return this._angelMaxLevelPerStar
                }, t.prototype.GetHeroSkinsByHeroId = function(e) {
                    var t, n = this;
                    if (this._heroIdToSkinId ? this._heroIdToSkinId[e] ? -1 == this._heroIdToSkinId[e].indexOf(e) && this._heroIdToSkinId[e].push(e) : ((t = []).push(e), this._heroIdToSkinId[e] = t) : (this._heroIdToSkinId = {}, u.ConfigDataComponent.Instance.GetArrayConfig(l.HeroSkin_Config).forEach(function(e) {
                            if (n._heroIdToSkinId[e.HeroId]) - 1 == n._heroIdToSkinId[e.HeroId].indexOf(e.Id) && n._heroIdToSkinId[e.HeroId].push(e.Id);
                            else {
                                var t = [];
                                t.push(e.Id), n._heroIdToSkinId[e.HeroId] = t
                            }
                        }), this._heroIdToSkinId[e] ? -1 == this._heroIdToSkinId[e].indexOf(e) && this._heroIdToSkinId[e].push(e) : ((t = []).push(e), this._heroIdToSkinId[e] = t)), this._heroIdToSkinId[e]) {
                        var o = [];
                        return this._heroIdToSkinId[e].forEach(function(e) {
                            p.default.Instance.IsModuleShowAvailable(i.ModuleStartTime.HeroSkin, e) && o.push(e)
                        }), o
                    }
                    return []
                }, t.prototype.GetAngelGodAvatars = function(e) {
                    var t = this,
                        n = [];
                    return this._angelGodAvatars || (this._angelGodAvatars = {}, u.ConfigDataComponent.Instance.GetArrayConfig(l.AngelGodAvatar_Config).forEach(function(e) {
                        t._angelGodAvatars[e.Angel] ? t._angelGodAvatars[e.Angel].push(e.Id) : t._angelGodAvatars[e.Angel] = [e.Id]
                    })), this._angelGodAvatars[e] && (n = this._angelGodAvatars[e]), n
                }, t.prototype.GetWarTokenGameModule = function(e) {
                    var t = this;
                    if (!this._warTokenGameModules) {
                        this._warTokenGameModules = {};
                        for (var n = u.ConfigDataComponent.Instance.GetArrayConfig(l.GameModule_Config), o = function(e) {
                                n[e].WarTokenId.length > 0 && n[e].WarTokenId.forEach(function(o) {
                                    t._warTokenGameModules[o] = n[e].Id
                                })
                            }, r = 0; r < n.length; r++) o(r)
                    }
                    return this._warTokenGameModules[e] > 0 ? this._warTokenGameModules[e] : 0
                }, t.prototype.GetHeroSkinItemIdByPieceId = function(e) {
                    var t = this;
                    return this._heroSkinPieceToItemId || (this._heroSkinPieceToItemId = {}, u.ConfigDataComponent.Instance.GetArrayConfig(l.HeroSkin_Config).forEach(function(e) {
                        var n = e.Transform[0].Items[0];
                        t._heroSkinPieceToItemId[n] = e.ItemId
                    })), this._heroSkinPieceToItemId[e] || 0
                }, t.prototype.GetSeasonWeaponEntryByType = function(e) {
                    if (!this._seasonWeaponEntryMap) {
                        this._seasonWeaponEntryMap = {};
                        for (var t = u.ConfigDataComponent.Instance.GetArrayConfig(l.ItemEntry_Config), n = 0; n < t.length; n++) this._seasonWeaponEntryMap[t[n].Type] ? this._seasonWeaponEntryMap[t[n].Type].push(t[n]) : this._seasonWeaponEntryMap[t[n].Type] = [t[n]]
                    }
                    return this._seasonWeaponEntryMap[e]
                }, t.prototype.GetStarPieceConfigByItemId = function(e) {
                    var t = this;
                    return this._starPieceConfigMap || (this._starPieceConfigMap = {}, u.ConfigDataComponent.Instance.GetArrayConfig(l.StarPiece_Config).forEach(function(e) {
                        t._starPieceConfigMap[e.ItemBaseId] = e
                    })), this._starPieceConfigMap[e]
                }, t.prototype.GetStarPiecePieceConfigByItemId = function(e) {
                    var t = this;
                    return this._starPiecePieceConfigMap || (this._starPiecePieceConfigMap = {}, u.ConfigDataComponent.Instance.GetArrayConfig(l.StarPiece_Config).forEach(function(e) {
                        t._starPiecePieceConfigMap[e.ItemId] = e
                    })), this._starPiecePieceConfigMap[e]
                }, t.prototype.GetGameUnlockPopByGameMoudelId = function(e) {
                    var t = this;
                    return this._gameUnlockPopByGameMoudelId || (this._gameUnlockPopByGameMoudelId = {}, u.ConfigDataComponent.Instance.GetArrayConfig(l.GameModuleUnlockPop_Config).forEach(function(e) {
                        t._gameUnlockPopByGameMoudelId[e.GameModuleId] = e
                    })), this._gameUnlockPopByGameMoudelId[e]
                }, t.prototype.Get5StarPieceIdByHeroId = function(e) {
                    if (!this._heroIdTo5StarPieceId) {
                        this._heroIdTo5StarPieceId = {};
                        for (var t = u.ConfigDataComponent.Instance.GetArrayConfig(l.ItemPiece_Config), n = 0; n < t.length; n++) {
                            var o = t[n];
                            if (o.SubType == i.ItemPieceType.HeroPiece && o.CardId) {
                                var r = u.ConfigDataComponent.Instance.GetConfigById(l.ItemHeroCard_Config, o.CardId);
                                if (r)
                                    if (5 == r.StarLevel) this._heroIdTo5StarPieceId[r.HeroId] = o.Id;
                                    else if (0 == r.StarLevel) {
                                    var a = u.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, r.HeroId);
                                    a && 5 == a.StarLevel && (this._heroIdTo5StarPieceId[r.HeroId] = o.Id)
                                }
                            }
                        }
                    }
                    return this._heroIdTo5StarPieceId[e]
                }, t.CompName = "ConfigCacheComponent", t
            }(a.Component);
        n.ConfigCacheComponent = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/index": "index",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../DataCenter": "DataCenter",
        "./ConfigDataComponent": "ConfigDataComponent"
    }],
    ConfigDataComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a5fa7DH8YVAxIykM+QE0+Ve", "ConfigDataComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
            return (o = Object.setPrototypeOf || {
                    __proto__: []
                }
                instanceof Array && function(e, t) {
                    e.__proto__ = t
                } || function(e, t) {
                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                })(e, t)
        }, function(e, t) {
            function n() {
                this.constructor = e
            }
            o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
        });
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ConfigDataComponent = void 0;
        var i = e("../../../../ThirdParty/Zlib/pako"),
            a = e("../../../Consts/Consts"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../EZFramework/Base/Game"),
            c = e("../../../Tool/Tool"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ConfigVersion = "", t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return this._Instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function() {
                    t._Instance = this, this._ConfigDataMap = {}, this._LocaleConfigData = {}, this._loadedArrayConfig = {}, this._SkillConfigMap = {}, this._configIdMap = {}, this._configDataLoadedState = {}, e.prototype.Init.call(this)
                }, t.prototype.Dispose = function() {
                    this.IsDisposed || (t._Instance = null, this._ConfigDataMap = null, this._LocaleConfigData = null, this._loadedArrayConfig = null, this._SkillConfigMap = null, this._configIdMap = null, this._configDataLoadedState = null, this.ConfigVersion = "", e.prototype.Dispose.call(this))
                }, t.prototype.GetGlobalSettingByKey = function(e, t) {
                    void 0 === t && (t = 0);
                    var n = this.GetConfigById(u.GlobalSetting_Config, e);
                    return null != n ? n.Value : t
                }, t.prototype.GetIntGlobalSettingByKey = function(e, t) {
                    void 0 === t && (t = 0);
                    var n = this.GetGlobalSettingByKey(e, t);
                    return Math.floor(n)
                }, t.prototype.GetConfigById = function(e, t) {
                    var n = e._n_;
                    if (!this._ConfigDataMap[n] || !this._ConfigDataMap[n][t]) {
                        var o = e;
                        this.LoadConfig(o, t)
                    }
                    return this._ConfigDataMap[n][t]
                }, t.prototype.GetLocale = function(e, n) {
                    if (void 0 === n && (n = !1), t.ShowLocaleKey) return e;
                    var o = l.Game.Scene.GetComponent("GlobalConfigComponent").Locale;
                    this._LocaleConfigData[o] || this.LoadLocale(o);
                    var r = this._LocaleConfigData[o];
                    return r && r[e] ? r[e] : n ? e : ""
                }, t.prototype.GetConfig = function(e) {
                    var t = e._n_,
                        n = e;
                    return this._ConfigDataMap[t] && this._configDataLoadedState[t] || this.LoadConfig(n), this._ConfigDataMap[t] || {}
                }, t.prototype.GetHeroSkillConfigs = function() {
                    var e = l.Game.Scene.GetComponent(h.ConfigDownloaderComponent).SkillConfigFileCache || {};
                    for (var t in e) this.LoadSkillConfig(t);
                    return this._SkillConfigMap
                }, t.prototype.GetHeroSkillConfig = function(e) {
                    return this._SkillConfigMap[e] || this.LoadSkillConfig(e), this._SkillConfigMap[e] || null
                }, t.prototype.GetItemMax = function(e) {
                    var t = this.GetConfigById(u.ItemBase_Config, e);
                    return t ? t.Max : 0
                }, t.prototype.GetArrayConfig = function(e) {
                    var t = e._n_,
                        n = this._loadedArrayConfig[t];
                    if (!n) {
                        n = [];
                        var o = this.GetConfig(e);
                        for (var r in o) n.push(o[r]);
                        this._loadedArrayConfig[t] = n
                    }
                    return n
                }, t.prototype.LoadConfig = function(e, t) {
                    var n = e._n_.substr(0, e._n_.length - 7),
                        o = e._n_,
                        r = this._configIdMap[o];
                    if (this._ConfigDataMap[o] || (this._ConfigDataMap[o] = {}), !r) {
                        r = {};
                        var p = null;
                        if (cc.sys.isNative) {
                            var d = jsb.fileUtils.getStringFromFile(jsb.fileUtils.getWritablePath() + a.NativePaths.ConfigData + "/" + n);
                            p = c.HttpTool.Base64ToUint8(d)
                        } else {
                            var f = l.Game.Scene.GetComponent(h.ConfigDownloaderComponent).ConfigFileCache || {};
                            p = f[n], delete f[n]
                        }
                        if (!p) return void s.EZLog.Log("config file is not exist. file name: " + n, t);
                        for (var y = i.inflate(p), g = u.ConfigData_List.decode(y), m = 0; m < g.Data.length; m++) void 0 !== (I = e.decode(g.Data[m])).Id && (r[I.Id] = g.Data[m], null == t && (this._ConfigDataMap[o][I.Id] = I));
                        if (null == t) return this._configDataLoadedState[o] = !0, void(r = {});
                        this._configIdMap[o] = r
                    }
                    if (null != t) {
                        if (!r[t]) return;
                        var I = e.decode(r[t]);
                        this._ConfigDataMap[o][t] = I, delete this._configIdMap[o][t]
                    } else {
                        for (var _ in r) this._ConfigDataMap[o][_] || (I = e.decode(r[_]), this._ConfigDataMap[o][_] = I);
                        this._configDataLoadedState[o] = !0, delete this._configIdMap[o]
                    }
                }, t.prototype.LoadLocale = function(e) {
                    var t = e,
                        n = null;
                    if (cc.sys.isNative) {
                        var o = jsb.fileUtils.getStringFromFile(jsb.fileUtils.getWritablePath() + a.NativePaths.ConfigData + "/" + t);
                        n = c.HttpTool.Base64ToUint8(o)
                    } else {
                        var r = l.Game.Scene.GetComponent(h.ConfigDownloaderComponent).ConfigFileCache || {};
                        n = r[t], delete r[t]
                    }
                    if (n) {
                        var p = i.inflate(n),
                            d = u.ConfigData_List.decode(p);
                        this._LocaleConfigData[e] = {};
                        for (var f = this._LocaleConfigData[e], y = 0; y < d.Data.length; y++) {
                            var g = u.Locale_Config.decode(d.Data[y]);
                            f[g.Key] = g.Value
                        }
                    } else s.EZLog.Error("config file is not exist. file name: " + t)
                }, t.prototype.LoadSkillConfig = function(e) {
                    var t = null;
                    if (cc.sys.isNative) {
                        var n = jsb.fileUtils.getStringFromFile(jsb.fileUtils.getWritablePath() + a.NativePaths.SkillConfig + "/" + e);
                        t = c.HttpTool.Base64ToUint8(n)
                    } else {
                        var o = l.Game.Scene.GetComponent(h.ConfigDownloaderComponent).SkillConfigFileCache || {};
                        t = o[e], delete o[e]
                    }
                    if (t) {
                        var r = i.inflate(t),
                            u = p.HeroSkillConfig.decode(r);
                        this._SkillConfigMap[e] = u
                    } else s.EZLog.Error("skill config is not exist. name: " + e)
                }, t.prototype.UpdateHeroSkillConfig = function(e, t) {
                    var n = l.Game.Scene.GetComponent(h.ConfigDownloaderComponent).SkillConfigFileCache;
                    n && delete n[e], this._SkillConfigMap[e] = t
                }, t.prototype.GetConfigClassByName = function(e) {
                    return u[e] ? u[e] : null
                }, t.CompName = "ConfigDataComponent", t.ShowLocaleKey = !1, t
            }(l.Component);
        n.ConfigDataComponent = d;
        var h = e("./ConfigDownloaderComponent");
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../../ThirdParty/Zlib/pako": "pako",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/Base/Game": "Game",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Tool/Tool": "Tool",
        "./ConfigDownloaderComponent": "ConfigDownloaderComponent"
    }],
    ConfigDownloaderComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c30d4aoVOhE25pzQ36S4L0+", "ConfigDownloaderComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            a = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ConfigDownloaderComponent = void 0;
        var s = e("../../../Consts/Consts"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Tool/Tool"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../UI/Auxiliary/UIUtlity"),
            d = e("../GlobalConfigComponent"),
            h = e("../../../EZFramework/Base/Game"),
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ConfigServerAddress = null, t.ConfigFileCache = null, t.SkillConfigFileCache = null, t.LocaleVersionMap = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Progress", {
                    get: function() {
                        return this._Progress
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Dispose = function() {
                    this.IsDisposed || e.prototype.Dispose.call(this)
                }, t.prototype.InitData = function(e, t, n) {
                    l.EZLog.Debug("start download config."), this.Reset(), this.ConfigServerAddress = e;
                    for (var o = 0; o < t.length; o++) 2 != (r = u.Version_Config.decode(t[o])).Type ? (this.DownloadQueue.push(r), this.TotalSize += r.Size) : this.LocaleVersionMap[r.Name] = r;
                    for (o = 0; o < n.length; o++) {
                        var r;
                        (r = u.Version_Config.decode(n[o])).Type = 3, this.DownloadQueue.push(r), this.TotalSize += r.Size
                    }
                }, t.prototype.CheckUpdate = function() {
                    l.EZLog.Debug("DownloadQueue:"), l.EZLog.Debug(this.DownloadQueue.length), 0 != this.DownloadQueue.length ? (this.DownloadThreads = 0, this.ConsumeDownloadQueue()) : h.Game.EventDispatcher.Emit(s.GameEventIds.ConfigDownloadComplete)
                }, t.prototype.OnProgressEvent = function(e) {
                    this._Progress = e
                }, t.prototype.ConsumeDownloadQueue = function() {
                    if (0 != this.DownloadQueue.length) {
                        if (!(this.DownloadThreads >= t.MaxDownloadThreads)) {
                            var e = this,
                                n = this.DownloadQueue.shift();
                            this.DownloadThreads++,
                                function() {
                                    i(this, void 0, void 0, function() {
                                        var t, o, r, i, u;
                                        return a(this, function(a) {
                                            switch (a.label) {
                                                case 0:
                                                    t = 3 == n.Type ? e.ConfigServerAddress + "/skillconfig/" + n.Md5 + "/" + n.Name : e.ConfigServerAddress + "/configure/" + n.Md5 + "/" + n.Name, r = 0, a.label = 1;
                                                case 1:
                                                    a.label = 2;
                                                case 2:
                                                    return a.trys.push([2, 4, , 5]), [4, c.HttpTool.Get(t)];
                                                case 3:
                                                    return o = a.sent(), [3, 6];
                                                case 4:
                                                    return i = a.sent(), ++r > 3 ? (l.EZLog.Error("cache config [" + n.Name + "] failure. err: " + i), h.Game.EventDispatcher.Emit(s.GameEventIds.ConfigDownloadError), e.Reset(), [2]) : [3, 5];
                                                case 5:
                                                    return [3, 1];
                                                case 6:
                                                    return u = c.HttpTool.Base64ToUint8(o), 3 == n.Type ? e.SkillConfigFileCache[n.Name] = u : e.ConfigFileCache[n.Name] = u, e.DownloadThreads = Math.max(e.DownloadThreads - 1, 0), e.DownloadSize += n.Size, e.OnProgressEvent(e.DownloadSize / e.TotalSize), e.ConsumeDownloadQueue(), [2]
                                            }
                                        })
                                    })
                                }(), this.ConsumeDownloadQueue()
                        }
                    } else 0 == this.DownloadThreads && h.Game.EventDispatcher.Emit(s.GameEventIds.ConfigDownloadComplete)
                }, t.prototype.DownloadLocaleByName = function(e) {
                    return i(this, void 0, void 0, function() {
                        var t, n, o, r, i, s;
                        return a(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    if (!(t = this.LocaleVersionMap[e])) return [2];
                                    n = this.ConfigServerAddress + "/configure/" + t.Md5 + "/" + t.Name, r = 0, a.label = 1;
                                case 1:
                                    a.label = 2;
                                case 2:
                                    return a.trys.push([2, 4, , 5]), [4, c.HttpTool.Get(n)];
                                case 3:
                                    return o = a.sent(), [3, 6];
                                case 4:
                                    return i = a.sent(), ++r > 3 ? (l.EZLog.Error("cache locale [" + t.Name + "] failure. err: " + i), [2]) : [3, 5];
                                case 5:
                                    return [3, 1];
                                case 6:
                                    return s = c.HttpTool.Base64ToUint8(o), this.ConfigFileCache[t.Name] = s, [2]
                            }
                        })
                    })
                }, t.prototype.DownloadActivityImagesMainfest = function(e) {
                    return i(this, void 0, void 0, function() {
                        var t, n, o, r, i;
                        return a(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    if (!e) return [2];
                                    t = d.GlobalConfigComponent.MultilangBundlePrefix, n = p.UIUtlity.ACTIVITYIMAGE_URL + "/Manifest/manifest_" + t + "_" + e + ".json", r = 0, a.label = 1;
                                case 1:
                                    a.label = 2;
                                case 2:
                                    return a.trys.push([2, 4, , 5]), [4, c.HttpTool.Get(n)];
                                case 3:
                                    return o = a.sent(), p.UIUtlity.ActivityConfigImages = JSON.parse(o), [3, 6];
                                case 4:
                                    return i = a.sent(), ++r > 3 ? (l.EZLog.Error("cache activityImages [manifest_" + t + "_" + e + ".json] failure. err: " + i), [2]) : [3, 5];
                                case 5:
                                    return [3, 1];
                                case 6:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.Reset = function() {
                    this.ConfigFileCache = {}, this.SkillConfigFileCache = {}, this.LocaleVersionMap = {}, this.DownloadQueue = [], this.DownloadThreads = 0, this.TotalSize = 0, this.DownloadSize = 0, this._Progress = 0
                }, t.CompName = "ConfigDownloaderComponent", t.MaxDownloadThreads = 999, t
            }(h.Component);
        n.ConfigDownloaderComponent = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/Base/Game": "Game",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Tool/Tool": "Tool",
        "../../UI/Auxiliary/UIUtlity": "UIUtlity",
        "../GlobalConfigComponent": "GlobalConfigComponent"
    }],
    ConfigDownloaderNativeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a2bb3dDU4tA2KNHT5J0NbEK", "ConfigDownloaderNativeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            a = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ConfigDownloaderNativeComponent = void 0;
        var s = e("../../../Consts/Consts"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Tool/Tool"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ConfigServerAddress = null, t.ConfigStoragePath = null, t.SkillStoragePath = null, t.SaveConfigVersions = null, t.SaveSkillVersions = null, t.LocaleVersionMap = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Progress", {
                    get: function() {
                        return this._Progress
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Dispose = function() {
                    this.IsDisposed || e.prototype.Dispose.call(this)
                }, t.prototype.InitData = function(e, n, o) {
                    if (l.EZLog.Debug("start download config."), this.Reset(), cc.sys.isNative) {
                        this.ConfigServerAddress = e, this.ConfigStoragePath = jsb.fileUtils.getWritablePath() + s.NativePaths.ConfigData, this.SkillStoragePath = jsb.fileUtils.getWritablePath() + s.NativePaths.SkillConfig, jsb.fileUtils.isFileExist(this.ConfigStoragePath) || jsb.fileUtils.createDirectory(this.ConfigStoragePath), jsb.fileUtils.isFileExist(this.SkillStoragePath) || jsb.fileUtils.createDirectory(this.SkillStoragePath);
                        var r = {},
                            i = cc.sys.localStorage.getItem(t.ConfigStorageKey);
                        if (i && "" != i) try {
                            r = JSON.parse(i)
                        } catch (h) {
                            l.EZLog.Error("parse local config version error. " + h)
                        }
                        for (var a = !1, c = 0; c < n.length; c++) 2 != (d = u.Version_Config.decode(n[c])).Type ? (r[d.Name] && r[d.Name] == d.Md5 || (this.DownloadQueue.push(d), this.TotalSize += d.Size, a = !0), this.SaveConfigVersions[d.Name] = d.Md5) : this.LocaleVersionMap[d.Name] = d;
                        a || (this.SaveConfigVersions = null);
                        var p = {};
                        if ((i = cc.sys.localStorage.getItem(t.SkillStorageKey)) && "" != i) try {
                            p = JSON.parse(i)
                        } catch (h) {
                            l.EZLog.Error("parse local config version error. " + h)
                        }
                        for (a = !1, c = 0; c < o.length; c++) {
                            var d;
                            (d = u.Version_Config.decode(o[c])).Type = 3, p[d.Name] && p[d.Name] == d.Md5 || (this.DownloadQueue.push(d), this.TotalSize += d.Size, a = !0), this.SaveSkillVersions[d.Name] = d.Md5
                        }
                        a || (this.SaveSkillVersions = null)
                    }
                }, t.prototype.CheckUpdate = function() {
                    l.EZLog.Debug("DownloadQueue:"), l.EZLog.Debug(this.DownloadQueue.length), 0 != this.DownloadQueue.length ? (this.DownloadThreads = 0, this.ConsumeDownloadQueue()) : this.DownloadComplete()
                }, t.prototype.OnProgressEvent = function(e) {
                    this._Progress = e, l.EZLog.Debug("progress:" + e)
                }, t.prototype.ConsumeDownloadQueue = function() {
                    if (0 != this.DownloadQueue.length) {
                        if (!(this.DownloadThreads >= t.MaxDownloadThreads)) {
                            var e = this,
                                n = this.DownloadQueue.shift();
                            this.DownloadThreads++,
                                function() {
                                    i(this, void 0, void 0, function() {
                                        var t, o, r, i;
                                        return a(this, function(a) {
                                            switch (a.label) {
                                                case 0:
                                                    l.EZLog.Debug("start download config", n.Type, n.Name, e.DownloadThreads), 3 == n.Type ? (t = e.ConfigServerAddress + "/skillconfig/" + n.Md5 + "/" + n.Name, o = e.SkillStoragePath + "/" + n.Name) : (t = e.ConfigServerAddress + "/configure/" + n.Md5 + "/" + n.Name, o = e.ConfigStoragePath + "/" + n.Name), r = 0, a.label = 1;
                                                case 1:
                                                    a.label = 2;
                                                case 2:
                                                    return a.trys.push([2, 4, , 5]), [4, c.HttpTool.NativeDownloadFile(t, o)];
                                                case 3:
                                                    return a.sent(), [3, 6];
                                                case 4:
                                                    return i = a.sent(), ++r > 3 ? (l.EZLog.Error("download config [" + n.Name + "] failure. err: " + i), l.Game.EventDispatcher.Emit(s.GameEventIds.ConfigDownloadError), e.Reset(), [2]) : [3, 5];
                                                case 5:
                                                    return [3, 1];
                                                case 6:
                                                    return e.DownloadThreads = Math.max(e.DownloadThreads - 1, 0), e.DownloadSize += n.Size, e.OnProgressEvent(e.DownloadSize / e.TotalSize), e.ConsumeDownloadQueue(), l.EZLog.Debug("download config success", n.Type, n.Name, e.DownloadThreads), [2]
                                            }
                                        })
                                    })
                                }(), this.ConsumeDownloadQueue()
                        }
                    } else 0 == this.DownloadThreads && this.DownloadComplete()
                }, t.prototype.DownloadLocaleByName = function(e) {
                    return i(this, void 0, void 0, function() {
                        var t, n, o, r, i;
                        return a(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    if (!(t = this.LocaleVersionMap[e])) return [2];
                                    this.ConfigStoragePath || (this.ConfigStoragePath = jsb.fileUtils.getWritablePath() + s.NativePaths.ConfigData, jsb.fileUtils.isFileExist(this.ConfigStoragePath) || jsb.fileUtils.createDirectory(this.ConfigStoragePath)), n = this.ConfigServerAddress + "/configure/" + t.Md5 + "/" + t.Name, o = this.ConfigStoragePath + "/" + t.Name, r = 0, a.label = 1;
                                case 1:
                                    a.label = 2;
                                case 2:
                                    return a.trys.push([2, 4, , 5]), [4, c.HttpTool.NativeDownloadFile(n, o)];
                                case 3:
                                    return a.sent(), [3, 6];
                                case 4:
                                    return i = a.sent(), ++r > 3 ? (l.EZLog.Error("download locale [" + t.Name + "] failure. err: " + i), [2]) : [3, 5];
                                case 5:
                                    return [3, 1];
                                case 6:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DownloadComplete = function() {
                    this.SaveConfigVersions && (cc.sys.localStorage.setItem(t.ConfigStorageKey, JSON.stringify(this.SaveConfigVersions)), this.SaveConfigVersions = null), this.SaveSkillVersions && (cc.sys.localStorage.setItem(t.SkillStorageKey, JSON.stringify(this.SaveSkillVersions)), this.SaveSkillVersions = null), l.Game.EventDispatcher.Emit(s.GameEventIds.ConfigDownloadComplete)
                }, t.prototype.DownloadActivityImagesMainfest = function() {
                    return i(this, void 0, void 0, function() {
                        return a(this, function() {
                            return [2]
                        })
                    })
                }, t.prototype.Reset = function() {
                    this.SaveConfigVersions = {}, this.SaveSkillVersions = {}, this.LocaleVersionMap = {}, this.DownloadQueue = [], this.DownloadThreads = 0, this.TotalSize = 0, this.DownloadSize = 0, this._Progress = 0
                }, t.CompName = "ConfigDownloaderComponent", t.ConfigStorageKey = "__configure_config_version__", t.SkillStorageKey = "__configure_skill_version__", t.MaxDownloadThreads = 5, t
            }(l.Component);
        n.ConfigDownloaderNativeComponent = p, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Tool/Tool": "Tool"
    }],
    ConfigProto: [function(e, t) {
        "use strict";
        var n;
        cc._RF.push(t, "e56b68p/NFDO7BlcjVZVB7k", "ConfigProto");
        var o = (n = "undefined" != typeof protobuf ? protobuf : e("protobufjs/minimal")).Reader,
            r = n.Writer,
            i = n.util,
            a = n.roots.default || (n.roots.default = {});
        a.HeroBase_Config = function() {
            function e(e) {
                if (this.Skills = [], this.Attrs = [], this.CharacteristicDesc = [], this.AdultPictures = [], this.FavorUpgradeAudio = [], this.StaticImage = [], this.ChangeIds = [], this.HandbookStar = [], this.Sublime = [], this.ArtefactRecommend = [], this.BlessHero = [], this.ETLevel = [], this.ETResonance = [], this.Jobs = [], this.StarShape = [], this.Substitute = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.ElementType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Career = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BondHero = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Model = "", e.prototype.CoreHero = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxStarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HerosPic = "", e.prototype.NormalAttackId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UIAvatar = "", e.prototype.CharacteristicDesc = i.emptyArray, e.prototype.HUDOffsetY = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowOffAni = "", e.prototype.AdultPictures = i.emptyArray, e.prototype.IdleSkillId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FavorUpgradeAudio = i.emptyArray, e.prototype.ActivityGet = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StaticImage = i.emptyArray, e.prototype.HeroIntroduce = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CustomBg = "", e.prototype.AvailableStartTime = "", e.prototype.ChangeIds = i.emptyArray, e.prototype.HandbookStar = i.emptyArray, e.prototype.Sublime = i.emptyArray, e.prototype.ArtefactRecommend = i.emptyArray, e.prototype.BlessHero = i.emptyArray, e.prototype.ETLevel = i.emptyArray, e.prototype.ETResonance = i.emptyArray, e.prototype.EffectScale = 0, e.prototype.Jobs = i.emptyArray, e.prototype.StarShape = i.emptyArray, e.prototype.LimitTimeImpactScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Substitute = i.emptyArray, e.prototype.AvatarAttackType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Skills && e.Skills.length)
                    for (var n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(26).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.ElementType && Object.hasOwnProperty.call(e, "ElementType") && t.uint32(40).int64(e.ElementType), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(56).int64(e.StarLevel), null != e.Career && Object.hasOwnProperty.call(e, "Career") && t.uint32(72).int64(e.Career), null != e.BondHero && Object.hasOwnProperty.call(e, "BondHero") && t.uint32(80).int64(e.BondHero), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(90).string(e.Model), null != e.CoreHero && Object.hasOwnProperty.call(e, "CoreHero") && t.uint32(96).int64(e.CoreHero), null != e.MaxStarLevel && Object.hasOwnProperty.call(e, "MaxStarLevel") && t.uint32(104).int64(e.MaxStarLevel), null != e.HerosPic && Object.hasOwnProperty.call(e, "HerosPic") && t.uint32(114).string(e.HerosPic), null != e.NormalAttackId && Object.hasOwnProperty.call(e, "NormalAttackId") && t.uint32(120).int64(e.NormalAttackId), null != e.UIAvatar && Object.hasOwnProperty.call(e, "UIAvatar") && t.uint32(130).string(e.UIAvatar), null != e.CharacteristicDesc && e.CharacteristicDesc.length) {
                    for (t.uint32(138).fork(), n = 0; n < e.CharacteristicDesc.length; ++n) t.int64(e.CharacteristicDesc[n]);
                    t.ldelim()
                }
                if (null != e.HUDOffsetY && Object.hasOwnProperty.call(e, "HUDOffsetY") && t.uint32(144).int64(e.HUDOffsetY), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(152).int64(e.Type), null != e.ShowOffAni && Object.hasOwnProperty.call(e, "ShowOffAni") && t.uint32(170).string(e.ShowOffAni), null != e.AdultPictures && e.AdultPictures.length)
                    for (n = 0; n < e.AdultPictures.length; ++n) a.IntArray_Config.encode(e.AdultPictures[n], t.uint32(186).fork()).ldelim();
                if (null != e.IdleSkillId && Object.hasOwnProperty.call(e, "IdleSkillId") && t.uint32(192).int64(e.IdleSkillId), null != e.FavorUpgradeAudio && e.FavorUpgradeAudio.length) {
                    for (t.uint32(218).fork(), n = 0; n < e.FavorUpgradeAudio.length; ++n) t.int64(e.FavorUpgradeAudio[n]);
                    t.ldelim()
                }
                if (null != e.ActivityGet && Object.hasOwnProperty.call(e, "ActivityGet") && t.uint32(224).int64(e.ActivityGet), null != e.StaticImage && e.StaticImage.length) {
                    for (t.uint32(234).fork(), n = 0; n < e.StaticImage.length; ++n) t.int64(e.StaticImage[n]);
                    t.ldelim()
                }
                if (null != e.HeroIntroduce && Object.hasOwnProperty.call(e, "HeroIntroduce") && t.uint32(240).int64(e.HeroIntroduce), null != e.CustomBg && Object.hasOwnProperty.call(e, "CustomBg") && t.uint32(250).string(e.CustomBg), null != e.AvailableStartTime && Object.hasOwnProperty.call(e, "AvailableStartTime") && t.uint32(274).string(e.AvailableStartTime), null != e.ChangeIds && e.ChangeIds.length) {
                    for (t.uint32(290).fork(), n = 0; n < e.ChangeIds.length; ++n) t.int64(e.ChangeIds[n]);
                    t.ldelim()
                }
                if (null != e.HandbookStar && e.HandbookStar.length) {
                    for (t.uint32(298).fork(), n = 0; n < e.HandbookStar.length; ++n) t.int64(e.HandbookStar[n]);
                    t.ldelim()
                }
                if (null != e.Sublime && e.Sublime.length) {
                    for (t.uint32(306).fork(), n = 0; n < e.Sublime.length; ++n) t.int64(e.Sublime[n]);
                    t.ldelim()
                }
                if (null != e.ArtefactRecommend && e.ArtefactRecommend.length) {
                    for (t.uint32(314).fork(), n = 0; n < e.ArtefactRecommend.length; ++n) t.int64(e.ArtefactRecommend[n]);
                    t.ldelim()
                }
                if (null != e.BlessHero && e.BlessHero.length)
                    for (n = 0; n < e.BlessHero.length; ++n) a.IntArray_Config.encode(e.BlessHero[n], t.uint32(322).fork()).ldelim();
                if (null != e.ETLevel && e.ETLevel.length) {
                    for (t.uint32(330).fork(), n = 0; n < e.ETLevel.length; ++n) t.int64(e.ETLevel[n]);
                    t.ldelim()
                }
                if (null != e.ETResonance && e.ETResonance.length) {
                    for (t.uint32(338).fork(), n = 0; n < e.ETResonance.length; ++n) t.int64(e.ETResonance[n]);
                    t.ldelim()
                }
                if (null != e.EffectScale && Object.hasOwnProperty.call(e, "EffectScale") && t.uint32(349).float(e.EffectScale), null != e.Jobs && e.Jobs.length)
                    for (n = 0; n < e.Jobs.length; ++n) a.IntArray_Config.encode(e.Jobs[n], t.uint32(354).fork()).ldelim();
                if (null != e.StarShape && e.StarShape.length) {
                    for (t.uint32(362).fork(), n = 0; n < e.StarShape.length; ++n) t.int64(e.StarShape[n]);
                    t.ldelim()
                }
                if (null != e.LimitTimeImpactScore && Object.hasOwnProperty.call(e, "LimitTimeImpactScore") && t.uint32(368).int64(e.LimitTimeImpactScore), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(376).int64(e.Quality), null != e.Substitute && e.Substitute.length)
                    for (n = 0; n < e.Substitute.length; ++n) a.IntArray_Config.encode(e.Substitute[n], t.uint32(386).fork()).ldelim();
                return null != e.AvatarAttackType && Object.hasOwnProperty.call(e, "AvatarAttackType") && t.uint32(392).int64(e.AvatarAttackType), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.ElementType = e.int64();
                            break;
                        case 7:
                            r.StarLevel = e.int64();
                            break;
                        case 9:
                            r.Career = e.int64();
                            break;
                        case 10:
                            r.BondHero = e.int64();
                            break;
                        case 11:
                            r.Model = e.string();
                            break;
                        case 12:
                            r.CoreHero = e.int64();
                            break;
                        case 13:
                            r.MaxStarLevel = e.int64();
                            break;
                        case 14:
                            r.HerosPic = e.string();
                            break;
                        case 15:
                            r.NormalAttackId = e.int64();
                            break;
                        case 16:
                            r.UIAvatar = e.string();
                            break;
                        case 17:
                            if (r.CharacteristicDesc && r.CharacteristicDesc.length || (r.CharacteristicDesc = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.CharacteristicDesc.push(e.int64());
                            else r.CharacteristicDesc.push(e.int64());
                            break;
                        case 18:
                            r.HUDOffsetY = e.int64();
                            break;
                        case 19:
                            r.Type = e.int64();
                            break;
                        case 21:
                            r.ShowOffAni = e.string();
                            break;
                        case 23:
                            r.AdultPictures && r.AdultPictures.length || (r.AdultPictures = []), r.AdultPictures.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 24:
                            r.IdleSkillId = e.int64();
                            break;
                        case 27:
                            if (r.FavorUpgradeAudio && r.FavorUpgradeAudio.length || (r.FavorUpgradeAudio = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.FavorUpgradeAudio.push(e.int64());
                            else r.FavorUpgradeAudio.push(e.int64());
                            break;
                        case 28:
                            r.ActivityGet = e.int64();
                            break;
                        case 29:
                            if (r.StaticImage && r.StaticImage.length || (r.StaticImage = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.StaticImage.push(e.int64());
                            else r.StaticImage.push(e.int64());
                            break;
                        case 30:
                            r.HeroIntroduce = e.int64();
                            break;
                        case 31:
                            r.CustomBg = e.string();
                            break;
                        case 34:
                            r.AvailableStartTime = e.string();
                            break;
                        case 36:
                            if (r.ChangeIds && r.ChangeIds.length || (r.ChangeIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ChangeIds.push(e.int64());
                            else r.ChangeIds.push(e.int64());
                            break;
                        case 37:
                            if (r.HandbookStar && r.HandbookStar.length || (r.HandbookStar = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.HandbookStar.push(e.int64());
                            else r.HandbookStar.push(e.int64());
                            break;
                        case 38:
                            if (r.Sublime && r.Sublime.length || (r.Sublime = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Sublime.push(e.int64());
                            else r.Sublime.push(e.int64());
                            break;
                        case 39:
                            if (r.ArtefactRecommend && r.ArtefactRecommend.length || (r.ArtefactRecommend = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ArtefactRecommend.push(e.int64());
                            else r.ArtefactRecommend.push(e.int64());
                            break;
                        case 40:
                            r.BlessHero && r.BlessHero.length || (r.BlessHero = []), r.BlessHero.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 41:
                            if (r.ETLevel && r.ETLevel.length || (r.ETLevel = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ETLevel.push(e.int64());
                            else r.ETLevel.push(e.int64());
                            break;
                        case 42:
                            if (r.ETResonance && r.ETResonance.length || (r.ETResonance = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ETResonance.push(e.int64());
                            else r.ETResonance.push(e.int64());
                            break;
                        case 43:
                            r.EffectScale = e.float();
                            break;
                        case 44:
                            r.Jobs && r.Jobs.length || (r.Jobs = []), r.Jobs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 45:
                            if (r.StarShape && r.StarShape.length || (r.StarShape = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.StarShape.push(e.int64());
                            else r.StarShape.push(e.int64());
                            break;
                        case 46:
                            r.LimitTimeImpactScore = e.int64();
                            break;
                        case 47:
                            r.Quality = e.int64();
                            break;
                        case 48:
                            r.Substitute && r.Substitute.length || (r.Substitute = []), r.Substitute.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 49:
                            r.AvatarAttackType = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (var t = 0; t < e.Skills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.ElementType && e.hasOwnProperty("ElementType") && !(i.isInteger(e.ElementType) || e.ElementType && i.isInteger(e.ElementType.low) && i.isInteger(e.ElementType.high))) return "ElementType: integer|Long expected";
                if (null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high))) return "StarLevel: integer|Long expected";
                if (null != e.Career && e.hasOwnProperty("Career") && !(i.isInteger(e.Career) || e.Career && i.isInteger(e.Career.low) && i.isInteger(e.Career.high))) return "Career: integer|Long expected";
                if (null != e.BondHero && e.hasOwnProperty("BondHero") && !(i.isInteger(e.BondHero) || e.BondHero && i.isInteger(e.BondHero.low) && i.isInteger(e.BondHero.high))) return "BondHero: integer|Long expected";
                if (null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model)) return "Model: string expected";
                if (null != e.CoreHero && e.hasOwnProperty("CoreHero") && !(i.isInteger(e.CoreHero) || e.CoreHero && i.isInteger(e.CoreHero.low) && i.isInteger(e.CoreHero.high))) return "CoreHero: integer|Long expected";
                if (null != e.MaxStarLevel && e.hasOwnProperty("MaxStarLevel") && !(i.isInteger(e.MaxStarLevel) || e.MaxStarLevel && i.isInteger(e.MaxStarLevel.low) && i.isInteger(e.MaxStarLevel.high))) return "MaxStarLevel: integer|Long expected";
                if (null != e.HerosPic && e.hasOwnProperty("HerosPic") && !i.isString(e.HerosPic)) return "HerosPic: string expected";
                if (null != e.NormalAttackId && e.hasOwnProperty("NormalAttackId") && !(i.isInteger(e.NormalAttackId) || e.NormalAttackId && i.isInteger(e.NormalAttackId.low) && i.isInteger(e.NormalAttackId.high))) return "NormalAttackId: integer|Long expected";
                if (null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && !i.isString(e.UIAvatar)) return "UIAvatar: string expected";
                if (null != e.CharacteristicDesc && e.hasOwnProperty("CharacteristicDesc")) {
                    if (!Array.isArray(e.CharacteristicDesc)) return "CharacteristicDesc: array expected";
                    for (t = 0; t < e.CharacteristicDesc.length; ++t)
                        if (!(i.isInteger(e.CharacteristicDesc[t]) || e.CharacteristicDesc[t] && i.isInteger(e.CharacteristicDesc[t].low) && i.isInteger(e.CharacteristicDesc[t].high))) return "CharacteristicDesc: integer|Long[] expected"
                }
                if (null != e.HUDOffsetY && e.hasOwnProperty("HUDOffsetY") && !(i.isInteger(e.HUDOffsetY) || e.HUDOffsetY && i.isInteger(e.HUDOffsetY.low) && i.isInteger(e.HUDOffsetY.high))) return "HUDOffsetY: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.ShowOffAni && e.hasOwnProperty("ShowOffAni") && !i.isString(e.ShowOffAni)) return "ShowOffAni: string expected";
                if (null != e.AdultPictures && e.hasOwnProperty("AdultPictures")) {
                    if (!Array.isArray(e.AdultPictures)) return "AdultPictures: array expected";
                    for (t = 0; t < e.AdultPictures.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AdultPictures[t])) return "AdultPictures." + n
                }
                if (null != e.IdleSkillId && e.hasOwnProperty("IdleSkillId") && !(i.isInteger(e.IdleSkillId) || e.IdleSkillId && i.isInteger(e.IdleSkillId.low) && i.isInteger(e.IdleSkillId.high))) return "IdleSkillId: integer|Long expected";
                if (null != e.FavorUpgradeAudio && e.hasOwnProperty("FavorUpgradeAudio")) {
                    if (!Array.isArray(e.FavorUpgradeAudio)) return "FavorUpgradeAudio: array expected";
                    for (t = 0; t < e.FavorUpgradeAudio.length; ++t)
                        if (!(i.isInteger(e.FavorUpgradeAudio[t]) || e.FavorUpgradeAudio[t] && i.isInteger(e.FavorUpgradeAudio[t].low) && i.isInteger(e.FavorUpgradeAudio[t].high))) return "FavorUpgradeAudio: integer|Long[] expected"
                }
                if (null != e.ActivityGet && e.hasOwnProperty("ActivityGet") && !(i.isInteger(e.ActivityGet) || e.ActivityGet && i.isInteger(e.ActivityGet.low) && i.isInteger(e.ActivityGet.high))) return "ActivityGet: integer|Long expected";
                if (null != e.StaticImage && e.hasOwnProperty("StaticImage")) {
                    if (!Array.isArray(e.StaticImage)) return "StaticImage: array expected";
                    for (t = 0; t < e.StaticImage.length; ++t)
                        if (!(i.isInteger(e.StaticImage[t]) || e.StaticImage[t] && i.isInteger(e.StaticImage[t].low) && i.isInteger(e.StaticImage[t].high))) return "StaticImage: integer|Long[] expected"
                }
                if (null != e.HeroIntroduce && e.hasOwnProperty("HeroIntroduce") && !(i.isInteger(e.HeroIntroduce) || e.HeroIntroduce && i.isInteger(e.HeroIntroduce.low) && i.isInteger(e.HeroIntroduce.high))) return "HeroIntroduce: integer|Long expected";
                if (null != e.CustomBg && e.hasOwnProperty("CustomBg") && !i.isString(e.CustomBg)) return "CustomBg: string expected";
                if (null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && !i.isString(e.AvailableStartTime)) return "AvailableStartTime: string expected";
                if (null != e.ChangeIds && e.hasOwnProperty("ChangeIds")) {
                    if (!Array.isArray(e.ChangeIds)) return "ChangeIds: array expected";
                    for (t = 0; t < e.ChangeIds.length; ++t)
                        if (!(i.isInteger(e.ChangeIds[t]) || e.ChangeIds[t] && i.isInteger(e.ChangeIds[t].low) && i.isInteger(e.ChangeIds[t].high))) return "ChangeIds: integer|Long[] expected"
                }
                if (null != e.HandbookStar && e.hasOwnProperty("HandbookStar")) {
                    if (!Array.isArray(e.HandbookStar)) return "HandbookStar: array expected";
                    for (t = 0; t < e.HandbookStar.length; ++t)
                        if (!(i.isInteger(e.HandbookStar[t]) || e.HandbookStar[t] && i.isInteger(e.HandbookStar[t].low) && i.isInteger(e.HandbookStar[t].high))) return "HandbookStar: integer|Long[] expected"
                }
                if (null != e.Sublime && e.hasOwnProperty("Sublime")) {
                    if (!Array.isArray(e.Sublime)) return "Sublime: array expected";
                    for (t = 0; t < e.Sublime.length; ++t)
                        if (!(i.isInteger(e.Sublime[t]) || e.Sublime[t] && i.isInteger(e.Sublime[t].low) && i.isInteger(e.Sublime[t].high))) return "Sublime: integer|Long[] expected"
                }
                if (null != e.ArtefactRecommend && e.hasOwnProperty("ArtefactRecommend")) {
                    if (!Array.isArray(e.ArtefactRecommend)) return "ArtefactRecommend: array expected";
                    for (t = 0; t < e.ArtefactRecommend.length; ++t)
                        if (!(i.isInteger(e.ArtefactRecommend[t]) || e.ArtefactRecommend[t] && i.isInteger(e.ArtefactRecommend[t].low) && i.isInteger(e.ArtefactRecommend[t].high))) return "ArtefactRecommend: integer|Long[] expected"
                }
                if (null != e.BlessHero && e.hasOwnProperty("BlessHero")) {
                    if (!Array.isArray(e.BlessHero)) return "BlessHero: array expected";
                    for (t = 0; t < e.BlessHero.length; ++t)
                        if (n = a.IntArray_Config.verify(e.BlessHero[t])) return "BlessHero." + n
                }
                if (null != e.ETLevel && e.hasOwnProperty("ETLevel")) {
                    if (!Array.isArray(e.ETLevel)) return "ETLevel: array expected";
                    for (t = 0; t < e.ETLevel.length; ++t)
                        if (!(i.isInteger(e.ETLevel[t]) || e.ETLevel[t] && i.isInteger(e.ETLevel[t].low) && i.isInteger(e.ETLevel[t].high))) return "ETLevel: integer|Long[] expected"
                }
                if (null != e.ETResonance && e.hasOwnProperty("ETResonance")) {
                    if (!Array.isArray(e.ETResonance)) return "ETResonance: array expected";
                    for (t = 0; t < e.ETResonance.length; ++t)
                        if (!(i.isInteger(e.ETResonance[t]) || e.ETResonance[t] && i.isInteger(e.ETResonance[t].low) && i.isInteger(e.ETResonance[t].high))) return "ETResonance: integer|Long[] expected"
                }
                if (null != e.EffectScale && e.hasOwnProperty("EffectScale") && "number" != typeof e.EffectScale) return "EffectScale: number expected";
                if (null != e.Jobs && e.hasOwnProperty("Jobs")) {
                    if (!Array.isArray(e.Jobs)) return "Jobs: array expected";
                    for (t = 0; t < e.Jobs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Jobs[t])) return "Jobs." + n
                }
                if (null != e.StarShape && e.hasOwnProperty("StarShape")) {
                    if (!Array.isArray(e.StarShape)) return "StarShape: array expected";
                    for (t = 0; t < e.StarShape.length; ++t)
                        if (!(i.isInteger(e.StarShape[t]) || e.StarShape[t] && i.isInteger(e.StarShape[t].low) && i.isInteger(e.StarShape[t].high))) return "StarShape: integer|Long[] expected"
                }
                if (null != e.LimitTimeImpactScore && e.hasOwnProperty("LimitTimeImpactScore") && !(i.isInteger(e.LimitTimeImpactScore) || e.LimitTimeImpactScore && i.isInteger(e.LimitTimeImpactScore.low) && i.isInteger(e.LimitTimeImpactScore.high))) return "LimitTimeImpactScore: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.Substitute && e.hasOwnProperty("Substitute")) {
                    if (!Array.isArray(e.Substitute)) return "Substitute: array expected";
                    for (t = 0; t < e.Substitute.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Substitute[t])) return "Substitute." + n
                    }
                }
                return null != e.AvatarAttackType && e.hasOwnProperty("AvatarAttackType") && !(i.isInteger(e.AvatarAttackType) || e.AvatarAttackType && i.isInteger(e.AvatarAttackType.low) && i.isInteger(e.AvatarAttackType.high)) ? "AvatarAttackType: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroBase_Config) return e;
                var t = new a.HeroBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".HeroBase_Config.Skills: array expected");
                    t.Skills = [];
                    for (var n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".HeroBase_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroBase_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroBase_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (null != e.ElementType && (i.Long ? (t.ElementType = i.Long.fromValue(e.ElementType)).unsigned = !1 : "string" == typeof e.ElementType ? t.ElementType = parseInt(e.ElementType, 10) : "number" == typeof e.ElementType ? t.ElementType = e.ElementType : "object" == typeof e.ElementType && (t.ElementType = new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber())), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), null != e.Career && (i.Long ? (t.Career = i.Long.fromValue(e.Career)).unsigned = !1 : "string" == typeof e.Career ? t.Career = parseInt(e.Career, 10) : "number" == typeof e.Career ? t.Career = e.Career : "object" == typeof e.Career && (t.Career = new i.LongBits(e.Career.low >>> 0, e.Career.high >>> 0).toNumber())), null != e.BondHero && (i.Long ? (t.BondHero = i.Long.fromValue(e.BondHero)).unsigned = !1 : "string" == typeof e.BondHero ? t.BondHero = parseInt(e.BondHero, 10) : "number" == typeof e.BondHero ? t.BondHero = e.BondHero : "object" == typeof e.BondHero && (t.BondHero = new i.LongBits(e.BondHero.low >>> 0, e.BondHero.high >>> 0).toNumber())), null != e.Model && (t.Model = String(e.Model)), null != e.CoreHero && (i.Long ? (t.CoreHero = i.Long.fromValue(e.CoreHero)).unsigned = !1 : "string" == typeof e.CoreHero ? t.CoreHero = parseInt(e.CoreHero, 10) : "number" == typeof e.CoreHero ? t.CoreHero = e.CoreHero : "object" == typeof e.CoreHero && (t.CoreHero = new i.LongBits(e.CoreHero.low >>> 0, e.CoreHero.high >>> 0).toNumber())), null != e.MaxStarLevel && (i.Long ? (t.MaxStarLevel = i.Long.fromValue(e.MaxStarLevel)).unsigned = !1 : "string" == typeof e.MaxStarLevel ? t.MaxStarLevel = parseInt(e.MaxStarLevel, 10) : "number" == typeof e.MaxStarLevel ? t.MaxStarLevel = e.MaxStarLevel : "object" == typeof e.MaxStarLevel && (t.MaxStarLevel = new i.LongBits(e.MaxStarLevel.low >>> 0, e.MaxStarLevel.high >>> 0).toNumber())), null != e.HerosPic && (t.HerosPic = String(e.HerosPic)), null != e.NormalAttackId && (i.Long ? (t.NormalAttackId = i.Long.fromValue(e.NormalAttackId)).unsigned = !1 : "string" == typeof e.NormalAttackId ? t.NormalAttackId = parseInt(e.NormalAttackId, 10) : "number" == typeof e.NormalAttackId ? t.NormalAttackId = e.NormalAttackId : "object" == typeof e.NormalAttackId && (t.NormalAttackId = new i.LongBits(e.NormalAttackId.low >>> 0, e.NormalAttackId.high >>> 0).toNumber())), null != e.UIAvatar && (t.UIAvatar = String(e.UIAvatar)), e.CharacteristicDesc) {
                    if (!Array.isArray(e.CharacteristicDesc)) throw TypeError(".HeroBase_Config.CharacteristicDesc: array expected");
                    for (t.CharacteristicDesc = [], n = 0; n < e.CharacteristicDesc.length; ++n) i.Long ? (t.CharacteristicDesc[n] = i.Long.fromValue(e.CharacteristicDesc[n])).unsigned = !1 : "string" == typeof e.CharacteristicDesc[n] ? t.CharacteristicDesc[n] = parseInt(e.CharacteristicDesc[n], 10) : "number" == typeof e.CharacteristicDesc[n] ? t.CharacteristicDesc[n] = e.CharacteristicDesc[n] : "object" == typeof e.CharacteristicDesc[n] && (t.CharacteristicDesc[n] = new i.LongBits(e.CharacteristicDesc[n].low >>> 0, e.CharacteristicDesc[n].high >>> 0).toNumber())
                }
                if (null != e.HUDOffsetY && (i.Long ? (t.HUDOffsetY = i.Long.fromValue(e.HUDOffsetY)).unsigned = !1 : "string" == typeof e.HUDOffsetY ? t.HUDOffsetY = parseInt(e.HUDOffsetY, 10) : "number" == typeof e.HUDOffsetY ? t.HUDOffsetY = e.HUDOffsetY : "object" == typeof e.HUDOffsetY && (t.HUDOffsetY = new i.LongBits(e.HUDOffsetY.low >>> 0, e.HUDOffsetY.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.ShowOffAni && (t.ShowOffAni = String(e.ShowOffAni)), e.AdultPictures) {
                    if (!Array.isArray(e.AdultPictures)) throw TypeError(".HeroBase_Config.AdultPictures: array expected");
                    for (t.AdultPictures = [], n = 0; n < e.AdultPictures.length; ++n) {
                        if ("object" != typeof e.AdultPictures[n]) throw TypeError(".HeroBase_Config.AdultPictures: object expected");
                        t.AdultPictures[n] = a.IntArray_Config.fromObject(e.AdultPictures[n])
                    }
                }
                if (null != e.IdleSkillId && (i.Long ? (t.IdleSkillId = i.Long.fromValue(e.IdleSkillId)).unsigned = !1 : "string" == typeof e.IdleSkillId ? t.IdleSkillId = parseInt(e.IdleSkillId, 10) : "number" == typeof e.IdleSkillId ? t.IdleSkillId = e.IdleSkillId : "object" == typeof e.IdleSkillId && (t.IdleSkillId = new i.LongBits(e.IdleSkillId.low >>> 0, e.IdleSkillId.high >>> 0).toNumber())), e.FavorUpgradeAudio) {
                    if (!Array.isArray(e.FavorUpgradeAudio)) throw TypeError(".HeroBase_Config.FavorUpgradeAudio: array expected");
                    for (t.FavorUpgradeAudio = [], n = 0; n < e.FavorUpgradeAudio.length; ++n) i.Long ? (t.FavorUpgradeAudio[n] = i.Long.fromValue(e.FavorUpgradeAudio[n])).unsigned = !1 : "string" == typeof e.FavorUpgradeAudio[n] ? t.FavorUpgradeAudio[n] = parseInt(e.FavorUpgradeAudio[n], 10) : "number" == typeof e.FavorUpgradeAudio[n] ? t.FavorUpgradeAudio[n] = e.FavorUpgradeAudio[n] : "object" == typeof e.FavorUpgradeAudio[n] && (t.FavorUpgradeAudio[n] = new i.LongBits(e.FavorUpgradeAudio[n].low >>> 0, e.FavorUpgradeAudio[n].high >>> 0).toNumber())
                }
                if (null != e.ActivityGet && (i.Long ? (t.ActivityGet = i.Long.fromValue(e.ActivityGet)).unsigned = !1 : "string" == typeof e.ActivityGet ? t.ActivityGet = parseInt(e.ActivityGet, 10) : "number" == typeof e.ActivityGet ? t.ActivityGet = e.ActivityGet : "object" == typeof e.ActivityGet && (t.ActivityGet = new i.LongBits(e.ActivityGet.low >>> 0, e.ActivityGet.high >>> 0).toNumber())), e.StaticImage) {
                    if (!Array.isArray(e.StaticImage)) throw TypeError(".HeroBase_Config.StaticImage: array expected");
                    for (t.StaticImage = [], n = 0; n < e.StaticImage.length; ++n) i.Long ? (t.StaticImage[n] = i.Long.fromValue(e.StaticImage[n])).unsigned = !1 : "string" == typeof e.StaticImage[n] ? t.StaticImage[n] = parseInt(e.StaticImage[n], 10) : "number" == typeof e.StaticImage[n] ? t.StaticImage[n] = e.StaticImage[n] : "object" == typeof e.StaticImage[n] && (t.StaticImage[n] = new i.LongBits(e.StaticImage[n].low >>> 0, e.StaticImage[n].high >>> 0).toNumber())
                }
                if (null != e.HeroIntroduce && (i.Long ? (t.HeroIntroduce = i.Long.fromValue(e.HeroIntroduce)).unsigned = !1 : "string" == typeof e.HeroIntroduce ? t.HeroIntroduce = parseInt(e.HeroIntroduce, 10) : "number" == typeof e.HeroIntroduce ? t.HeroIntroduce = e.HeroIntroduce : "object" == typeof e.HeroIntroduce && (t.HeroIntroduce = new i.LongBits(e.HeroIntroduce.low >>> 0, e.HeroIntroduce.high >>> 0).toNumber())), null != e.CustomBg && (t.CustomBg = String(e.CustomBg)), null != e.AvailableStartTime && (t.AvailableStartTime = String(e.AvailableStartTime)), e.ChangeIds) {
                    if (!Array.isArray(e.ChangeIds)) throw TypeError(".HeroBase_Config.ChangeIds: array expected");
                    for (t.ChangeIds = [], n = 0; n < e.ChangeIds.length; ++n) i.Long ? (t.ChangeIds[n] = i.Long.fromValue(e.ChangeIds[n])).unsigned = !1 : "string" == typeof e.ChangeIds[n] ? t.ChangeIds[n] = parseInt(e.ChangeIds[n], 10) : "number" == typeof e.ChangeIds[n] ? t.ChangeIds[n] = e.ChangeIds[n] : "object" == typeof e.ChangeIds[n] && (t.ChangeIds[n] = new i.LongBits(e.ChangeIds[n].low >>> 0, e.ChangeIds[n].high >>> 0).toNumber())
                }
                if (e.HandbookStar) {
                    if (!Array.isArray(e.HandbookStar)) throw TypeError(".HeroBase_Config.HandbookStar: array expected");
                    for (t.HandbookStar = [], n = 0; n < e.HandbookStar.length; ++n) i.Long ? (t.HandbookStar[n] = i.Long.fromValue(e.HandbookStar[n])).unsigned = !1 : "string" == typeof e.HandbookStar[n] ? t.HandbookStar[n] = parseInt(e.HandbookStar[n], 10) : "number" == typeof e.HandbookStar[n] ? t.HandbookStar[n] = e.HandbookStar[n] : "object" == typeof e.HandbookStar[n] && (t.HandbookStar[n] = new i.LongBits(e.HandbookStar[n].low >>> 0, e.HandbookStar[n].high >>> 0).toNumber())
                }
                if (e.Sublime) {
                    if (!Array.isArray(e.Sublime)) throw TypeError(".HeroBase_Config.Sublime: array expected");
                    for (t.Sublime = [], n = 0; n < e.Sublime.length; ++n) i.Long ? (t.Sublime[n] = i.Long.fromValue(e.Sublime[n])).unsigned = !1 : "string" == typeof e.Sublime[n] ? t.Sublime[n] = parseInt(e.Sublime[n], 10) : "number" == typeof e.Sublime[n] ? t.Sublime[n] = e.Sublime[n] : "object" == typeof e.Sublime[n] && (t.Sublime[n] = new i.LongBits(e.Sublime[n].low >>> 0, e.Sublime[n].high >>> 0).toNumber())
                }
                if (e.ArtefactRecommend) {
                    if (!Array.isArray(e.ArtefactRecommend)) throw TypeError(".HeroBase_Config.ArtefactRecommend: array expected");
                    for (t.ArtefactRecommend = [], n = 0; n < e.ArtefactRecommend.length; ++n) i.Long ? (t.ArtefactRecommend[n] = i.Long.fromValue(e.ArtefactRecommend[n])).unsigned = !1 : "string" == typeof e.ArtefactRecommend[n] ? t.ArtefactRecommend[n] = parseInt(e.ArtefactRecommend[n], 10) : "number" == typeof e.ArtefactRecommend[n] ? t.ArtefactRecommend[n] = e.ArtefactRecommend[n] : "object" == typeof e.ArtefactRecommend[n] && (t.ArtefactRecommend[n] = new i.LongBits(e.ArtefactRecommend[n].low >>> 0, e.ArtefactRecommend[n].high >>> 0).toNumber())
                }
                if (e.BlessHero) {
                    if (!Array.isArray(e.BlessHero)) throw TypeError(".HeroBase_Config.BlessHero: array expected");
                    for (t.BlessHero = [], n = 0; n < e.BlessHero.length; ++n) {
                        if ("object" != typeof e.BlessHero[n]) throw TypeError(".HeroBase_Config.BlessHero: object expected");
                        t.BlessHero[n] = a.IntArray_Config.fromObject(e.BlessHero[n])
                    }
                }
                if (e.ETLevel) {
                    if (!Array.isArray(e.ETLevel)) throw TypeError(".HeroBase_Config.ETLevel: array expected");
                    for (t.ETLevel = [], n = 0; n < e.ETLevel.length; ++n) i.Long ? (t.ETLevel[n] = i.Long.fromValue(e.ETLevel[n])).unsigned = !1 : "string" == typeof e.ETLevel[n] ? t.ETLevel[n] = parseInt(e.ETLevel[n], 10) : "number" == typeof e.ETLevel[n] ? t.ETLevel[n] = e.ETLevel[n] : "object" == typeof e.ETLevel[n] && (t.ETLevel[n] = new i.LongBits(e.ETLevel[n].low >>> 0, e.ETLevel[n].high >>> 0).toNumber())
                }
                if (e.ETResonance) {
                    if (!Array.isArray(e.ETResonance)) throw TypeError(".HeroBase_Config.ETResonance: array expected");
                    for (t.ETResonance = [], n = 0; n < e.ETResonance.length; ++n) i.Long ? (t.ETResonance[n] = i.Long.fromValue(e.ETResonance[n])).unsigned = !1 : "string" == typeof e.ETResonance[n] ? t.ETResonance[n] = parseInt(e.ETResonance[n], 10) : "number" == typeof e.ETResonance[n] ? t.ETResonance[n] = e.ETResonance[n] : "object" == typeof e.ETResonance[n] && (t.ETResonance[n] = new i.LongBits(e.ETResonance[n].low >>> 0, e.ETResonance[n].high >>> 0).toNumber())
                }
                if (null != e.EffectScale && (t.EffectScale = Number(e.EffectScale)), e.Jobs) {
                    if (!Array.isArray(e.Jobs)) throw TypeError(".HeroBase_Config.Jobs: array expected");
                    for (t.Jobs = [], n = 0; n < e.Jobs.length; ++n) {
                        if ("object" != typeof e.Jobs[n]) throw TypeError(".HeroBase_Config.Jobs: object expected");
                        t.Jobs[n] = a.IntArray_Config.fromObject(e.Jobs[n])
                    }
                }
                if (e.StarShape) {
                    if (!Array.isArray(e.StarShape)) throw TypeError(".HeroBase_Config.StarShape: array expected");
                    for (t.StarShape = [], n = 0; n < e.StarShape.length; ++n) i.Long ? (t.StarShape[n] = i.Long.fromValue(e.StarShape[n])).unsigned = !1 : "string" == typeof e.StarShape[n] ? t.StarShape[n] = parseInt(e.StarShape[n], 10) : "number" == typeof e.StarShape[n] ? t.StarShape[n] = e.StarShape[n] : "object" == typeof e.StarShape[n] && (t.StarShape[n] = new i.LongBits(e.StarShape[n].low >>> 0, e.StarShape[n].high >>> 0).toNumber())
                }
                if (null != e.LimitTimeImpactScore && (i.Long ? (t.LimitTimeImpactScore = i.Long.fromValue(e.LimitTimeImpactScore)).unsigned = !1 : "string" == typeof e.LimitTimeImpactScore ? t.LimitTimeImpactScore = parseInt(e.LimitTimeImpactScore, 10) : "number" == typeof e.LimitTimeImpactScore ? t.LimitTimeImpactScore = e.LimitTimeImpactScore : "object" == typeof e.LimitTimeImpactScore && (t.LimitTimeImpactScore = new i.LongBits(e.LimitTimeImpactScore.low >>> 0, e.LimitTimeImpactScore.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), e.Substitute) {
                    if (!Array.isArray(e.Substitute)) throw TypeError(".HeroBase_Config.Substitute: array expected");
                    for (t.Substitute = [], n = 0; n < e.Substitute.length; ++n) {
                        if ("object" != typeof e.Substitute[n]) throw TypeError(".HeroBase_Config.Substitute: object expected");
                        t.Substitute[n] = a.IntArray_Config.fromObject(e.Substitute[n])
                    }
                }
                return null != e.AvatarAttackType && (i.Long ? (t.AvatarAttackType = i.Long.fromValue(e.AvatarAttackType)).unsigned = !1 : "string" == typeof e.AvatarAttackType ? t.AvatarAttackType = parseInt(e.AvatarAttackType, 10) : "number" == typeof e.AvatarAttackType ? t.AvatarAttackType = e.AvatarAttackType : "object" == typeof e.AvatarAttackType && (t.AvatarAttackType = new i.LongBits(e.AvatarAttackType.low >>> 0, e.AvatarAttackType.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Skills = [], n.Attrs = [], n.CharacteristicDesc = [], n.AdultPictures = [], n.FavorUpgradeAudio = [], n.StaticImage = [], n.ChangeIds = [], n.HandbookStar = [], n.Sublime = [], n.ArtefactRecommend = [], n.BlessHero = [], n.ETLevel = [], n.ETResonance = [], n.Jobs = [], n.StarShape = [], n.Substitute = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ElementType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ElementType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Career = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Career = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.BondHero = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BondHero = t.longs === String ? "0" : 0, n.Model = "", i.Long ? (o = new i.Long(0, 0, !1), n.CoreHero = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CoreHero = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxStarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxStarLevel = t.longs === String ? "0" : 0, n.HerosPic = "", i.Long ? (o = new i.Long(0, 0, !1), n.NormalAttackId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NormalAttackId = t.longs === String ? "0" : 0, n.UIAvatar = "", i.Long ? (o = new i.Long(0, 0, !1), n.HUDOffsetY = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HUDOffsetY = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, n.ShowOffAni = "", i.Long ? (o = new i.Long(0, 0, !1), n.IdleSkillId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IdleSkillId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ActivityGet = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ActivityGet = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeroIntroduce = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroIntroduce = t.longs === String ? "0" : 0, n.CustomBg = "", n.AvailableStartTime = "", n.EffectScale = 0, i.Long ? (o = new i.Long(0, 0, !1), n.LimitTimeImpactScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LimitTimeImpactScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AvatarAttackType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AvatarAttackType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Skills && e.Skills.length) {
                    n.Skills = [];
                    for (var r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (null != e.ElementType && e.hasOwnProperty("ElementType") && ("number" == typeof e.ElementType ? n.ElementType = t.longs === String ? String(e.ElementType) : e.ElementType : n.ElementType = t.longs === String ? i.Long.prototype.toString.call(e.ElementType) : t.longs === Number ? new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber() : e.ElementType), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), null != e.Career && e.hasOwnProperty("Career") && ("number" == typeof e.Career ? n.Career = t.longs === String ? String(e.Career) : e.Career : n.Career = t.longs === String ? i.Long.prototype.toString.call(e.Career) : t.longs === Number ? new i.LongBits(e.Career.low >>> 0, e.Career.high >>> 0).toNumber() : e.Career), null != e.BondHero && e.hasOwnProperty("BondHero") && ("number" == typeof e.BondHero ? n.BondHero = t.longs === String ? String(e.BondHero) : e.BondHero : n.BondHero = t.longs === String ? i.Long.prototype.toString.call(e.BondHero) : t.longs === Number ? new i.LongBits(e.BondHero.low >>> 0, e.BondHero.high >>> 0).toNumber() : e.BondHero), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), null != e.CoreHero && e.hasOwnProperty("CoreHero") && ("number" == typeof e.CoreHero ? n.CoreHero = t.longs === String ? String(e.CoreHero) : e.CoreHero : n.CoreHero = t.longs === String ? i.Long.prototype.toString.call(e.CoreHero) : t.longs === Number ? new i.LongBits(e.CoreHero.low >>> 0, e.CoreHero.high >>> 0).toNumber() : e.CoreHero), null != e.MaxStarLevel && e.hasOwnProperty("MaxStarLevel") && ("number" == typeof e.MaxStarLevel ? n.MaxStarLevel = t.longs === String ? String(e.MaxStarLevel) : e.MaxStarLevel : n.MaxStarLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxStarLevel) : t.longs === Number ? new i.LongBits(e.MaxStarLevel.low >>> 0, e.MaxStarLevel.high >>> 0).toNumber() : e.MaxStarLevel), null != e.HerosPic && e.hasOwnProperty("HerosPic") && (n.HerosPic = e.HerosPic), null != e.NormalAttackId && e.hasOwnProperty("NormalAttackId") && ("number" == typeof e.NormalAttackId ? n.NormalAttackId = t.longs === String ? String(e.NormalAttackId) : e.NormalAttackId : n.NormalAttackId = t.longs === String ? i.Long.prototype.toString.call(e.NormalAttackId) : t.longs === Number ? new i.LongBits(e.NormalAttackId.low >>> 0, e.NormalAttackId.high >>> 0).toNumber() : e.NormalAttackId), null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && (n.UIAvatar = e.UIAvatar), e.CharacteristicDesc && e.CharacteristicDesc.length)
                    for (n.CharacteristicDesc = [], r = 0; r < e.CharacteristicDesc.length; ++r) "number" == typeof e.CharacteristicDesc[r] ? n.CharacteristicDesc[r] = t.longs === String ? String(e.CharacteristicDesc[r]) : e.CharacteristicDesc[r] : n.CharacteristicDesc[r] = t.longs === String ? i.Long.prototype.toString.call(e.CharacteristicDesc[r]) : t.longs === Number ? new i.LongBits(e.CharacteristicDesc[r].low >>> 0, e.CharacteristicDesc[r].high >>> 0).toNumber() : e.CharacteristicDesc[r];
                if (null != e.HUDOffsetY && e.hasOwnProperty("HUDOffsetY") && ("number" == typeof e.HUDOffsetY ? n.HUDOffsetY = t.longs === String ? String(e.HUDOffsetY) : e.HUDOffsetY : n.HUDOffsetY = t.longs === String ? i.Long.prototype.toString.call(e.HUDOffsetY) : t.longs === Number ? new i.LongBits(e.HUDOffsetY.low >>> 0, e.HUDOffsetY.high >>> 0).toNumber() : e.HUDOffsetY), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.ShowOffAni && e.hasOwnProperty("ShowOffAni") && (n.ShowOffAni = e.ShowOffAni), e.AdultPictures && e.AdultPictures.length)
                    for (n.AdultPictures = [], r = 0; r < e.AdultPictures.length; ++r) n.AdultPictures[r] = a.IntArray_Config.toObject(e.AdultPictures[r], t);
                if (null != e.IdleSkillId && e.hasOwnProperty("IdleSkillId") && ("number" == typeof e.IdleSkillId ? n.IdleSkillId = t.longs === String ? String(e.IdleSkillId) : e.IdleSkillId : n.IdleSkillId = t.longs === String ? i.Long.prototype.toString.call(e.IdleSkillId) : t.longs === Number ? new i.LongBits(e.IdleSkillId.low >>> 0, e.IdleSkillId.high >>> 0).toNumber() : e.IdleSkillId), e.FavorUpgradeAudio && e.FavorUpgradeAudio.length)
                    for (n.FavorUpgradeAudio = [], r = 0; r < e.FavorUpgradeAudio.length; ++r) "number" == typeof e.FavorUpgradeAudio[r] ? n.FavorUpgradeAudio[r] = t.longs === String ? String(e.FavorUpgradeAudio[r]) : e.FavorUpgradeAudio[r] : n.FavorUpgradeAudio[r] = t.longs === String ? i.Long.prototype.toString.call(e.FavorUpgradeAudio[r]) : t.longs === Number ? new i.LongBits(e.FavorUpgradeAudio[r].low >>> 0, e.FavorUpgradeAudio[r].high >>> 0).toNumber() : e.FavorUpgradeAudio[r];
                if (null != e.ActivityGet && e.hasOwnProperty("ActivityGet") && ("number" == typeof e.ActivityGet ? n.ActivityGet = t.longs === String ? String(e.ActivityGet) : e.ActivityGet : n.ActivityGet = t.longs === String ? i.Long.prototype.toString.call(e.ActivityGet) : t.longs === Number ? new i.LongBits(e.ActivityGet.low >>> 0, e.ActivityGet.high >>> 0).toNumber() : e.ActivityGet), e.StaticImage && e.StaticImage.length)
                    for (n.StaticImage = [], r = 0; r < e.StaticImage.length; ++r) "number" == typeof e.StaticImage[r] ? n.StaticImage[r] = t.longs === String ? String(e.StaticImage[r]) : e.StaticImage[r] : n.StaticImage[r] = t.longs === String ? i.Long.prototype.toString.call(e.StaticImage[r]) : t.longs === Number ? new i.LongBits(e.StaticImage[r].low >>> 0, e.StaticImage[r].high >>> 0).toNumber() : e.StaticImage[r];
                if (null != e.HeroIntroduce && e.hasOwnProperty("HeroIntroduce") && ("number" == typeof e.HeroIntroduce ? n.HeroIntroduce = t.longs === String ? String(e.HeroIntroduce) : e.HeroIntroduce : n.HeroIntroduce = t.longs === String ? i.Long.prototype.toString.call(e.HeroIntroduce) : t.longs === Number ? new i.LongBits(e.HeroIntroduce.low >>> 0, e.HeroIntroduce.high >>> 0).toNumber() : e.HeroIntroduce), null != e.CustomBg && e.hasOwnProperty("CustomBg") && (n.CustomBg = e.CustomBg), null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && (n.AvailableStartTime = e.AvailableStartTime), e.ChangeIds && e.ChangeIds.length)
                    for (n.ChangeIds = [], r = 0; r < e.ChangeIds.length; ++r) "number" == typeof e.ChangeIds[r] ? n.ChangeIds[r] = t.longs === String ? String(e.ChangeIds[r]) : e.ChangeIds[r] : n.ChangeIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.ChangeIds[r]) : t.longs === Number ? new i.LongBits(e.ChangeIds[r].low >>> 0, e.ChangeIds[r].high >>> 0).toNumber() : e.ChangeIds[r];
                if (e.HandbookStar && e.HandbookStar.length)
                    for (n.HandbookStar = [], r = 0; r < e.HandbookStar.length; ++r) "number" == typeof e.HandbookStar[r] ? n.HandbookStar[r] = t.longs === String ? String(e.HandbookStar[r]) : e.HandbookStar[r] : n.HandbookStar[r] = t.longs === String ? i.Long.prototype.toString.call(e.HandbookStar[r]) : t.longs === Number ? new i.LongBits(e.HandbookStar[r].low >>> 0, e.HandbookStar[r].high >>> 0).toNumber() : e.HandbookStar[r];
                if (e.Sublime && e.Sublime.length)
                    for (n.Sublime = [], r = 0; r < e.Sublime.length; ++r) "number" == typeof e.Sublime[r] ? n.Sublime[r] = t.longs === String ? String(e.Sublime[r]) : e.Sublime[r] : n.Sublime[r] = t.longs === String ? i.Long.prototype.toString.call(e.Sublime[r]) : t.longs === Number ? new i.LongBits(e.Sublime[r].low >>> 0, e.Sublime[r].high >>> 0).toNumber() : e.Sublime[r];
                if (e.ArtefactRecommend && e.ArtefactRecommend.length)
                    for (n.ArtefactRecommend = [], r = 0; r < e.ArtefactRecommend.length; ++r) "number" == typeof e.ArtefactRecommend[r] ? n.ArtefactRecommend[r] = t.longs === String ? String(e.ArtefactRecommend[r]) : e.ArtefactRecommend[r] : n.ArtefactRecommend[r] = t.longs === String ? i.Long.prototype.toString.call(e.ArtefactRecommend[r]) : t.longs === Number ? new i.LongBits(e.ArtefactRecommend[r].low >>> 0, e.ArtefactRecommend[r].high >>> 0).toNumber() : e.ArtefactRecommend[r];
                if (e.BlessHero && e.BlessHero.length)
                    for (n.BlessHero = [], r = 0; r < e.BlessHero.length; ++r) n.BlessHero[r] = a.IntArray_Config.toObject(e.BlessHero[r], t);
                if (e.ETLevel && e.ETLevel.length)
                    for (n.ETLevel = [], r = 0; r < e.ETLevel.length; ++r) "number" == typeof e.ETLevel[r] ? n.ETLevel[r] = t.longs === String ? String(e.ETLevel[r]) : e.ETLevel[r] : n.ETLevel[r] = t.longs === String ? i.Long.prototype.toString.call(e.ETLevel[r]) : t.longs === Number ? new i.LongBits(e.ETLevel[r].low >>> 0, e.ETLevel[r].high >>> 0).toNumber() : e.ETLevel[r];
                if (e.ETResonance && e.ETResonance.length)
                    for (n.ETResonance = [], r = 0; r < e.ETResonance.length; ++r) "number" == typeof e.ETResonance[r] ? n.ETResonance[r] = t.longs === String ? String(e.ETResonance[r]) : e.ETResonance[r] : n.ETResonance[r] = t.longs === String ? i.Long.prototype.toString.call(e.ETResonance[r]) : t.longs === Number ? new i.LongBits(e.ETResonance[r].low >>> 0, e.ETResonance[r].high >>> 0).toNumber() : e.ETResonance[r];
                if (null != e.EffectScale && e.hasOwnProperty("EffectScale") && (n.EffectScale = t.json && !isFinite(e.EffectScale) ? String(e.EffectScale) : e.EffectScale), e.Jobs && e.Jobs.length)
                    for (n.Jobs = [], r = 0; r < e.Jobs.length; ++r) n.Jobs[r] = a.IntArray_Config.toObject(e.Jobs[r], t);
                if (e.StarShape && e.StarShape.length)
                    for (n.StarShape = [], r = 0; r < e.StarShape.length; ++r) "number" == typeof e.StarShape[r] ? n.StarShape[r] = t.longs === String ? String(e.StarShape[r]) : e.StarShape[r] : n.StarShape[r] = t.longs === String ? i.Long.prototype.toString.call(e.StarShape[r]) : t.longs === Number ? new i.LongBits(e.StarShape[r].low >>> 0, e.StarShape[r].high >>> 0).toNumber() : e.StarShape[r];
                if (null != e.LimitTimeImpactScore && e.hasOwnProperty("LimitTimeImpactScore") && ("number" == typeof e.LimitTimeImpactScore ? n.LimitTimeImpactScore = t.longs === String ? String(e.LimitTimeImpactScore) : e.LimitTimeImpactScore : n.LimitTimeImpactScore = t.longs === String ? i.Long.prototype.toString.call(e.LimitTimeImpactScore) : t.longs === Number ? new i.LongBits(e.LimitTimeImpactScore.low >>> 0, e.LimitTimeImpactScore.high >>> 0).toNumber() : e.LimitTimeImpactScore), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), e.Substitute && e.Substitute.length)
                    for (n.Substitute = [], r = 0; r < e.Substitute.length; ++r) n.Substitute[r] = a.IntArray_Config.toObject(e.Substitute[r], t);
                return null != e.AvatarAttackType && e.hasOwnProperty("AvatarAttackType") && ("number" == typeof e.AvatarAttackType ? n.AvatarAttackType = t.longs === String ? String(e.AvatarAttackType) : e.AvatarAttackType : n.AvatarAttackType = t.longs === String ? i.Long.prototype.toString.call(e.AvatarAttackType) : t.longs === Number ? new i.LongBits(e.AvatarAttackType.low >>> 0, e.AvatarAttackType.high >>> 0).toNumber() : e.AvatarAttackType), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroBase_Config"
            }, e
        }(), a.PackExtend_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.InnerName = "", e.prototype.Category = "", e.prototype.EventType = "", e.prototype.EventId = "", e.prototype.Notes = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.InnerName && Object.hasOwnProperty.call(e, "InnerName") && t.uint32(18).string(e.InnerName), null != e.Category && Object.hasOwnProperty.call(e, "Category") && t.uint32(26).string(e.Category), null != e.EventType && Object.hasOwnProperty.call(e, "EventType") && t.uint32(34).string(e.EventType), null != e.EventId && Object.hasOwnProperty.call(e, "EventId") && t.uint32(42).string(e.EventId), null != e.Notes && Object.hasOwnProperty.call(e, "Notes") && t.uint32(50).string(e.Notes), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PackExtend_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.InnerName = e.string();
                            break;
                        case 3:
                            r.Category = e.string();
                            break;
                        case 4:
                            r.EventType = e.string();
                            break;
                        case 5:
                            r.EventId = e.string();
                            break;
                        case 6:
                            r.Notes = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.InnerName && e.hasOwnProperty("InnerName") && !i.isString(e.InnerName) ? "InnerName: string expected" : null != e.Category && e.hasOwnProperty("Category") && !i.isString(e.Category) ? "Category: string expected" : null != e.EventType && e.hasOwnProperty("EventType") && !i.isString(e.EventType) ? "EventType: string expected" : null != e.EventId && e.hasOwnProperty("EventId") && !i.isString(e.EventId) ? "EventId: string expected" : null != e.Notes && e.hasOwnProperty("Notes") && !i.isString(e.Notes) ? "Notes: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PackExtend_Config) return e;
                var t = new a.PackExtend_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.InnerName && (t.InnerName = String(e.InnerName)), null != e.Category && (t.Category = String(e.Category)), null != e.EventType && (t.EventType = String(e.EventType)), null != e.EventId && (t.EventId = String(e.EventId)), null != e.Notes && (t.Notes = String(e.Notes)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.InnerName = "", n.Category = "", n.EventType = "", n.EventId = "", n.Notes = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.InnerName && e.hasOwnProperty("InnerName") && (n.InnerName = e.InnerName), null != e.Category && e.hasOwnProperty("Category") && (n.Category = e.Category), null != e.EventType && e.hasOwnProperty("EventType") && (n.EventType = e.EventType), null != e.EventId && e.hasOwnProperty("EventId") && (n.EventId = e.EventId), null != e.Notes && e.hasOwnProperty("Notes") && (n.Notes = e.Notes), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PackExtend_Config"
            }, e
        }(), a.TestAll_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.F1 = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.F1 && Object.hasOwnProperty.call(e, "F1") && t.uint32(16).int64(e.F1), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TestAll_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.F1 = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.F1 && e.hasOwnProperty("F1") && !(i.isInteger(e.F1) || e.F1 && i.isInteger(e.F1.low) && i.isInteger(e.F1.high)) ? "F1: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.TestAll_Config) return e;
                var t = new a.TestAll_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.F1 && (i.Long ? (t.F1 = i.Long.fromValue(e.F1)).unsigned = !1 : "string" == typeof e.F1 ? t.F1 = parseInt(e.F1, 10) : "number" == typeof e.F1 ? t.F1 = e.F1 : "object" == typeof e.F1 && (t.F1 = new i.LongBits(e.F1.low >>> 0, e.F1.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.F1 = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.F1 = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.F1 && e.hasOwnProperty("F1") && ("number" == typeof e.F1 ? n.F1 = t.longs === String ? String(e.F1) : e.F1 : n.F1 = t.longs === String ? i.Long.prototype.toString.call(e.F1) : t.longs === Number ? new i.LongBits(e.F1.low >>> 0, e.F1.high >>> 0).toNumber() : e.F1), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TestAll_Config"
            }, e
        }(), a.GlobalSetting_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = "", e.prototype.Value = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(10).string(e.Id), null != e.Value && Object.hasOwnProperty.call(e, "Value") && t.uint32(17).double(e.Value), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GlobalSetting_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.string();
                            break;
                        case 2:
                            r.Value = e.double();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !i.isString(e.Id) ? "Id: string expected" : null != e.Value && e.hasOwnProperty("Value") && "number" != typeof e.Value ? "Value: number expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GlobalSetting_Config) return e;
                var t = new a.GlobalSetting_Config;
                return null != e.Id && (t.Id = String(e.Id)), null != e.Value && (t.Value = Number(e.Value)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Id = "", n.Value = 0), null != e.Id && e.hasOwnProperty("Id") && (n.Id = e.Id), null != e.Value && e.hasOwnProperty("Value") && (n.Value = t.json && !isFinite(e.Value) ? String(e.Value) : e.Value), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GlobalSetting_Config"
            }, e
        }(), a.GlobalSecret_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = "", e.prototype.Value = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(10).string(e.Id), null != e.Value && Object.hasOwnProperty.call(e, "Value") && t.uint32(17).double(e.Value), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GlobalSecret_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.string();
                            break;
                        case 2:
                            r.Value = e.double();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !i.isString(e.Id) ? "Id: string expected" : null != e.Value && e.hasOwnProperty("Value") && "number" != typeof e.Value ? "Value: number expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GlobalSecret_Config) return e;
                var t = new a.GlobalSecret_Config;
                return null != e.Id && (t.Id = String(e.Id)), null != e.Value && (t.Value = Number(e.Value)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Id = "", n.Value = 0), null != e.Id && e.hasOwnProperty("Id") && (n.Id = e.Id), null != e.Value && e.hasOwnProperty("Value") && (n.Value = t.json && !isFinite(e.Value) ? String(e.Value) : e.Value), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GlobalSecret_Config"
            }, e
        }(), a.ItemBase_Config = function() {
            function e(e) {
                if (this.GetWay = [], this.UseTypeId = [], this.DecomposeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ExtraQuality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Max = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GetWay = i.emptyArray, e.prototype.UseTypeId = i.emptyArray, e.prototype.SellPrice = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SpineEffectName = "", e.prototype.ElementType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsHideTips = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Value = 0, e.prototype.StageId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DecomposeItems = i.emptyArray, e.prototype.DailyMax = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CustomIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.JPY = 0, e.prototype.IsStoreSupported = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsAiSupported = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SetQuantity = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PurchaseLimit = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SellMinCp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SellMaxCp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(32).int64(e.Type), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(48).int64(e.Quality), null != e.ExtraQuality && Object.hasOwnProperty.call(e, "ExtraQuality") && t.uint32(64).int64(e.ExtraQuality), null != e.Max && Object.hasOwnProperty.call(e, "Max") && t.uint32(72).int64(e.Max), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(80).int64(e.Star), null != e.GetWay && e.GetWay.length) {
                    t.uint32(98).fork();
                    for (var n = 0; n < e.GetWay.length; ++n) t.int64(e.GetWay[n]);
                    t.ldelim()
                }
                if (null != e.UseTypeId && e.UseTypeId.length) {
                    for (t.uint32(106).fork(), n = 0; n < e.UseTypeId.length; ++n) t.int64(e.UseTypeId[n]);
                    t.ldelim()
                }
                if (null != e.SellPrice && Object.hasOwnProperty.call(e, "SellPrice") && t.uint32(112).int64(e.SellPrice), null != e.SpineEffectName && Object.hasOwnProperty.call(e, "SpineEffectName") && t.uint32(122).string(e.SpineEffectName), null != e.ElementType && Object.hasOwnProperty.call(e, "ElementType") && t.uint32(128).int64(e.ElementType), null != e.IsHideTips && Object.hasOwnProperty.call(e, "IsHideTips") && t.uint32(136).int64(e.IsHideTips), null != e.Value && Object.hasOwnProperty.call(e, "Value") && t.uint32(149).float(e.Value), null != e.StageId && Object.hasOwnProperty.call(e, "StageId") && t.uint32(152).int64(e.StageId), null != e.DecomposeItems && e.DecomposeItems.length)
                    for (n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(162).fork()).ldelim();
                return null != e.DailyMax && Object.hasOwnProperty.call(e, "DailyMax") && t.uint32(168).int64(e.DailyMax), null != e.CustomIcon && Object.hasOwnProperty.call(e, "CustomIcon") && t.uint32(176).int64(e.CustomIcon), null != e.JPY && Object.hasOwnProperty.call(e, "JPY") && t.uint32(197).float(e.JPY), null != e.IsStoreSupported && Object.hasOwnProperty.call(e, "IsStoreSupported") && t.uint32(200).int64(e.IsStoreSupported), null != e.IsAiSupported && Object.hasOwnProperty.call(e, "IsAiSupported") && t.uint32(208).int64(e.IsAiSupported), null != e.SetQuantity && Object.hasOwnProperty.call(e, "SetQuantity") && t.uint32(216).int64(e.SetQuantity), null != e.PurchaseLimit && Object.hasOwnProperty.call(e, "PurchaseLimit") && t.uint32(224).int64(e.PurchaseLimit), null != e.SellMinCp && Object.hasOwnProperty.call(e, "SellMinCp") && t.uint32(232).int64(e.SellMinCp), null != e.SellMaxCp && Object.hasOwnProperty.call(e, "SellMaxCp") && t.uint32(240).int64(e.SellMaxCp), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Type = e.int64();
                            break;
                        case 6:
                            r.Quality = e.int64();
                            break;
                        case 8:
                            r.ExtraQuality = e.int64();
                            break;
                        case 9:
                            r.Max = e.int64();
                            break;
                        case 10:
                            r.Star = e.int64();
                            break;
                        case 12:
                            if (r.GetWay && r.GetWay.length || (r.GetWay = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.GetWay.push(e.int64());
                            else r.GetWay.push(e.int64());
                            break;
                        case 13:
                            if (r.UseTypeId && r.UseTypeId.length || (r.UseTypeId = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.UseTypeId.push(e.int64());
                            else r.UseTypeId.push(e.int64());
                            break;
                        case 14:
                            r.SellPrice = e.int64();
                            break;
                        case 15:
                            r.SpineEffectName = e.string();
                            break;
                        case 16:
                            r.ElementType = e.int64();
                            break;
                        case 17:
                            r.IsHideTips = e.int64();
                            break;
                        case 18:
                            r.Value = e.float();
                            break;
                        case 19:
                            r.StageId = e.int64();
                            break;
                        case 20:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 21:
                            r.DailyMax = e.int64();
                            break;
                        case 22:
                            r.CustomIcon = e.int64();
                            break;
                        case 24:
                            r.JPY = e.float();
                            break;
                        case 25:
                            r.IsStoreSupported = e.int64();
                            break;
                        case 26:
                            r.IsAiSupported = e.int64();
                            break;
                        case 27:
                            r.SetQuantity = e.int64();
                            break;
                        case 28:
                            r.PurchaseLimit = e.int64();
                            break;
                        case 29:
                            r.SellMinCp = e.int64();
                            break;
                        case 30:
                            r.SellMaxCp = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.ExtraQuality && e.hasOwnProperty("ExtraQuality") && !(i.isInteger(e.ExtraQuality) || e.ExtraQuality && i.isInteger(e.ExtraQuality.low) && i.isInteger(e.ExtraQuality.high))) return "ExtraQuality: integer|Long expected";
                if (null != e.Max && e.hasOwnProperty("Max") && !(i.isInteger(e.Max) || e.Max && i.isInteger(e.Max.low) && i.isInteger(e.Max.high))) return "Max: integer|Long expected";
                if (null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high))) return "Star: integer|Long expected";
                if (null != e.GetWay && e.hasOwnProperty("GetWay")) {
                    if (!Array.isArray(e.GetWay)) return "GetWay: array expected";
                    for (var t = 0; t < e.GetWay.length; ++t)
                        if (!(i.isInteger(e.GetWay[t]) || e.GetWay[t] && i.isInteger(e.GetWay[t].low) && i.isInteger(e.GetWay[t].high))) return "GetWay: integer|Long[] expected"
                }
                if (null != e.UseTypeId && e.hasOwnProperty("UseTypeId")) {
                    if (!Array.isArray(e.UseTypeId)) return "UseTypeId: array expected";
                    for (t = 0; t < e.UseTypeId.length; ++t)
                        if (!(i.isInteger(e.UseTypeId[t]) || e.UseTypeId[t] && i.isInteger(e.UseTypeId[t].low) && i.isInteger(e.UseTypeId[t].high))) return "UseTypeId: integer|Long[] expected"
                }
                if (null != e.SellPrice && e.hasOwnProperty("SellPrice") && !(i.isInteger(e.SellPrice) || e.SellPrice && i.isInteger(e.SellPrice.low) && i.isInteger(e.SellPrice.high))) return "SellPrice: integer|Long expected";
                if (null != e.SpineEffectName && e.hasOwnProperty("SpineEffectName") && !i.isString(e.SpineEffectName)) return "SpineEffectName: string expected";
                if (null != e.ElementType && e.hasOwnProperty("ElementType") && !(i.isInteger(e.ElementType) || e.ElementType && i.isInteger(e.ElementType.low) && i.isInteger(e.ElementType.high))) return "ElementType: integer|Long expected";
                if (null != e.IsHideTips && e.hasOwnProperty("IsHideTips") && !(i.isInteger(e.IsHideTips) || e.IsHideTips && i.isInteger(e.IsHideTips.low) && i.isInteger(e.IsHideTips.high))) return "IsHideTips: integer|Long expected";
                if (null != e.Value && e.hasOwnProperty("Value") && "number" != typeof e.Value) return "Value: number expected";
                if (null != e.StageId && e.hasOwnProperty("StageId") && !(i.isInteger(e.StageId) || e.StageId && i.isInteger(e.StageId.low) && i.isInteger(e.StageId.high))) return "StageId: integer|Long expected";
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (t = 0; t < e.DecomposeItems.length; ++t) {
                        var n = a.IntArray_Config.verify(e.DecomposeItems[t]);
                        if (n) return "DecomposeItems." + n
                    }
                }
                return null != e.DailyMax && e.hasOwnProperty("DailyMax") && !(i.isInteger(e.DailyMax) || e.DailyMax && i.isInteger(e.DailyMax.low) && i.isInteger(e.DailyMax.high)) ? "DailyMax: integer|Long expected" : null != e.CustomIcon && e.hasOwnProperty("CustomIcon") && !(i.isInteger(e.CustomIcon) || e.CustomIcon && i.isInteger(e.CustomIcon.low) && i.isInteger(e.CustomIcon.high)) ? "CustomIcon: integer|Long expected" : null != e.JPY && e.hasOwnProperty("JPY") && "number" != typeof e.JPY ? "JPY: number expected" : null != e.IsStoreSupported && e.hasOwnProperty("IsStoreSupported") && !(i.isInteger(e.IsStoreSupported) || e.IsStoreSupported && i.isInteger(e.IsStoreSupported.low) && i.isInteger(e.IsStoreSupported.high)) ? "IsStoreSupported: integer|Long expected" : null != e.IsAiSupported && e.hasOwnProperty("IsAiSupported") && !(i.isInteger(e.IsAiSupported) || e.IsAiSupported && i.isInteger(e.IsAiSupported.low) && i.isInteger(e.IsAiSupported.high)) ? "IsAiSupported: integer|Long expected" : null != e.SetQuantity && e.hasOwnProperty("SetQuantity") && !(i.isInteger(e.SetQuantity) || e.SetQuantity && i.isInteger(e.SetQuantity.low) && i.isInteger(e.SetQuantity.high)) ? "SetQuantity: integer|Long expected" : null != e.PurchaseLimit && e.hasOwnProperty("PurchaseLimit") && !(i.isInteger(e.PurchaseLimit) || e.PurchaseLimit && i.isInteger(e.PurchaseLimit.low) && i.isInteger(e.PurchaseLimit.high)) ? "PurchaseLimit: integer|Long expected" : null != e.SellMinCp && e.hasOwnProperty("SellMinCp") && !(i.isInteger(e.SellMinCp) || e.SellMinCp && i.isInteger(e.SellMinCp.low) && i.isInteger(e.SellMinCp.high)) ? "SellMinCp: integer|Long expected" : null != e.SellMaxCp && e.hasOwnProperty("SellMaxCp") && !(i.isInteger(e.SellMaxCp) || e.SellMaxCp && i.isInteger(e.SellMaxCp.low) && i.isInteger(e.SellMaxCp.high)) ? "SellMaxCp: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemBase_Config) return e;
                var t = new a.ItemBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), null != e.ExtraQuality && (i.Long ? (t.ExtraQuality = i.Long.fromValue(e.ExtraQuality)).unsigned = !1 : "string" == typeof e.ExtraQuality ? t.ExtraQuality = parseInt(e.ExtraQuality, 10) : "number" == typeof e.ExtraQuality ? t.ExtraQuality = e.ExtraQuality : "object" == typeof e.ExtraQuality && (t.ExtraQuality = new i.LongBits(e.ExtraQuality.low >>> 0, e.ExtraQuality.high >>> 0).toNumber())), null != e.Max && (i.Long ? (t.Max = i.Long.fromValue(e.Max)).unsigned = !1 : "string" == typeof e.Max ? t.Max = parseInt(e.Max, 10) : "number" == typeof e.Max ? t.Max = e.Max : "object" == typeof e.Max && (t.Max = new i.LongBits(e.Max.low >>> 0, e.Max.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), e.GetWay) {
                    if (!Array.isArray(e.GetWay)) throw TypeError(".ItemBase_Config.GetWay: array expected");
                    t.GetWay = [];
                    for (var n = 0; n < e.GetWay.length; ++n) i.Long ? (t.GetWay[n] = i.Long.fromValue(e.GetWay[n])).unsigned = !1 : "string" == typeof e.GetWay[n] ? t.GetWay[n] = parseInt(e.GetWay[n], 10) : "number" == typeof e.GetWay[n] ? t.GetWay[n] = e.GetWay[n] : "object" == typeof e.GetWay[n] && (t.GetWay[n] = new i.LongBits(e.GetWay[n].low >>> 0, e.GetWay[n].high >>> 0).toNumber())
                }
                if (e.UseTypeId) {
                    if (!Array.isArray(e.UseTypeId)) throw TypeError(".ItemBase_Config.UseTypeId: array expected");
                    for (t.UseTypeId = [], n = 0; n < e.UseTypeId.length; ++n) i.Long ? (t.UseTypeId[n] = i.Long.fromValue(e.UseTypeId[n])).unsigned = !1 : "string" == typeof e.UseTypeId[n] ? t.UseTypeId[n] = parseInt(e.UseTypeId[n], 10) : "number" == typeof e.UseTypeId[n] ? t.UseTypeId[n] = e.UseTypeId[n] : "object" == typeof e.UseTypeId[n] && (t.UseTypeId[n] = new i.LongBits(e.UseTypeId[n].low >>> 0, e.UseTypeId[n].high >>> 0).toNumber())
                }
                if (null != e.SellPrice && (i.Long ? (t.SellPrice = i.Long.fromValue(e.SellPrice)).unsigned = !1 : "string" == typeof e.SellPrice ? t.SellPrice = parseInt(e.SellPrice, 10) : "number" == typeof e.SellPrice ? t.SellPrice = e.SellPrice : "object" == typeof e.SellPrice && (t.SellPrice = new i.LongBits(e.SellPrice.low >>> 0, e.SellPrice.high >>> 0).toNumber())), null != e.SpineEffectName && (t.SpineEffectName = String(e.SpineEffectName)), null != e.ElementType && (i.Long ? (t.ElementType = i.Long.fromValue(e.ElementType)).unsigned = !1 : "string" == typeof e.ElementType ? t.ElementType = parseInt(e.ElementType, 10) : "number" == typeof e.ElementType ? t.ElementType = e.ElementType : "object" == typeof e.ElementType && (t.ElementType = new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber())), null != e.IsHideTips && (i.Long ? (t.IsHideTips = i.Long.fromValue(e.IsHideTips)).unsigned = !1 : "string" == typeof e.IsHideTips ? t.IsHideTips = parseInt(e.IsHideTips, 10) : "number" == typeof e.IsHideTips ? t.IsHideTips = e.IsHideTips : "object" == typeof e.IsHideTips && (t.IsHideTips = new i.LongBits(e.IsHideTips.low >>> 0, e.IsHideTips.high >>> 0).toNumber())), null != e.Value && (t.Value = Number(e.Value)), null != e.StageId && (i.Long ? (t.StageId = i.Long.fromValue(e.StageId)).unsigned = !1 : "string" == typeof e.StageId ? t.StageId = parseInt(e.StageId, 10) : "number" == typeof e.StageId ? t.StageId = e.StageId : "object" == typeof e.StageId && (t.StageId = new i.LongBits(e.StageId.low >>> 0, e.StageId.high >>> 0).toNumber())), e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".ItemBase_Config.DecomposeItems: array expected");
                    for (t.DecomposeItems = [], n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".ItemBase_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                return null != e.DailyMax && (i.Long ? (t.DailyMax = i.Long.fromValue(e.DailyMax)).unsigned = !1 : "string" == typeof e.DailyMax ? t.DailyMax = parseInt(e.DailyMax, 10) : "number" == typeof e.DailyMax ? t.DailyMax = e.DailyMax : "object" == typeof e.DailyMax && (t.DailyMax = new i.LongBits(e.DailyMax.low >>> 0, e.DailyMax.high >>> 0).toNumber())), null != e.CustomIcon && (i.Long ? (t.CustomIcon = i.Long.fromValue(e.CustomIcon)).unsigned = !1 : "string" == typeof e.CustomIcon ? t.CustomIcon = parseInt(e.CustomIcon, 10) : "number" == typeof e.CustomIcon ? t.CustomIcon = e.CustomIcon : "object" == typeof e.CustomIcon && (t.CustomIcon = new i.LongBits(e.CustomIcon.low >>> 0, e.CustomIcon.high >>> 0).toNumber())), null != e.JPY && (t.JPY = Number(e.JPY)), null != e.IsStoreSupported && (i.Long ? (t.IsStoreSupported = i.Long.fromValue(e.IsStoreSupported)).unsigned = !1 : "string" == typeof e.IsStoreSupported ? t.IsStoreSupported = parseInt(e.IsStoreSupported, 10) : "number" == typeof e.IsStoreSupported ? t.IsStoreSupported = e.IsStoreSupported : "object" == typeof e.IsStoreSupported && (t.IsStoreSupported = new i.LongBits(e.IsStoreSupported.low >>> 0, e.IsStoreSupported.high >>> 0).toNumber())), null != e.IsAiSupported && (i.Long ? (t.IsAiSupported = i.Long.fromValue(e.IsAiSupported)).unsigned = !1 : "string" == typeof e.IsAiSupported ? t.IsAiSupported = parseInt(e.IsAiSupported, 10) : "number" == typeof e.IsAiSupported ? t.IsAiSupported = e.IsAiSupported : "object" == typeof e.IsAiSupported && (t.IsAiSupported = new i.LongBits(e.IsAiSupported.low >>> 0, e.IsAiSupported.high >>> 0).toNumber())), null != e.SetQuantity && (i.Long ? (t.SetQuantity = i.Long.fromValue(e.SetQuantity)).unsigned = !1 : "string" == typeof e.SetQuantity ? t.SetQuantity = parseInt(e.SetQuantity, 10) : "number" == typeof e.SetQuantity ? t.SetQuantity = e.SetQuantity : "object" == typeof e.SetQuantity && (t.SetQuantity = new i.LongBits(e.SetQuantity.low >>> 0, e.SetQuantity.high >>> 0).toNumber())), null != e.PurchaseLimit && (i.Long ? (t.PurchaseLimit = i.Long.fromValue(e.PurchaseLimit)).unsigned = !1 : "string" == typeof e.PurchaseLimit ? t.PurchaseLimit = parseInt(e.PurchaseLimit, 10) : "number" == typeof e.PurchaseLimit ? t.PurchaseLimit = e.PurchaseLimit : "object" == typeof e.PurchaseLimit && (t.PurchaseLimit = new i.LongBits(e.PurchaseLimit.low >>> 0, e.PurchaseLimit.high >>> 0).toNumber())), null != e.SellMinCp && (i.Long ? (t.SellMinCp = i.Long.fromValue(e.SellMinCp)).unsigned = !1 : "string" == typeof e.SellMinCp ? t.SellMinCp = parseInt(e.SellMinCp, 10) : "number" == typeof e.SellMinCp ? t.SellMinCp = e.SellMinCp : "object" == typeof e.SellMinCp && (t.SellMinCp = new i.LongBits(e.SellMinCp.low >>> 0, e.SellMinCp.high >>> 0).toNumber())), null != e.SellMaxCp && (i.Long ? (t.SellMaxCp = i.Long.fromValue(e.SellMaxCp)).unsigned = !1 : "string" == typeof e.SellMaxCp ? t.SellMaxCp = parseInt(e.SellMaxCp, 10) : "number" == typeof e.SellMaxCp ? t.SellMaxCp = e.SellMaxCp : "object" == typeof e.SellMaxCp && (t.SellMaxCp = new i.LongBits(e.SellMaxCp.low >>> 0, e.SellMaxCp.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.GetWay = [], n.UseTypeId = [], n.DecomposeItems = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ExtraQuality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ExtraQuality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Max = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Max = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SellPrice = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SellPrice = t.longs === String ? "0" : 0, n.SpineEffectName = "", i.Long ? (o = new i.Long(0, 0, !1), n.ElementType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ElementType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.IsHideTips = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsHideTips = t.longs === String ? "0" : 0, n.Value = 0, i.Long ? (o = new i.Long(0, 0, !1), n.StageId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StageId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DailyMax = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DailyMax = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.CustomIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CustomIcon = t.longs === String ? "0" : 0, n.JPY = 0, i.Long ? (o = new i.Long(0, 0, !1), n.IsStoreSupported = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsStoreSupported = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.IsAiSupported = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsAiSupported = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SetQuantity = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SetQuantity = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PurchaseLimit = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PurchaseLimit = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SellMinCp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SellMinCp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SellMaxCp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SellMaxCp = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), null != e.ExtraQuality && e.hasOwnProperty("ExtraQuality") && ("number" == typeof e.ExtraQuality ? n.ExtraQuality = t.longs === String ? String(e.ExtraQuality) : e.ExtraQuality : n.ExtraQuality = t.longs === String ? i.Long.prototype.toString.call(e.ExtraQuality) : t.longs === Number ? new i.LongBits(e.ExtraQuality.low >>> 0, e.ExtraQuality.high >>> 0).toNumber() : e.ExtraQuality), null != e.Max && e.hasOwnProperty("Max") && ("number" == typeof e.Max ? n.Max = t.longs === String ? String(e.Max) : e.Max : n.Max = t.longs === String ? i.Long.prototype.toString.call(e.Max) : t.longs === Number ? new i.LongBits(e.Max.low >>> 0, e.Max.high >>> 0).toNumber() : e.Max), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), e.GetWay && e.GetWay.length) {
                    n.GetWay = [];
                    for (var r = 0; r < e.GetWay.length; ++r) "number" == typeof e.GetWay[r] ? n.GetWay[r] = t.longs === String ? String(e.GetWay[r]) : e.GetWay[r] : n.GetWay[r] = t.longs === String ? i.Long.prototype.toString.call(e.GetWay[r]) : t.longs === Number ? new i.LongBits(e.GetWay[r].low >>> 0, e.GetWay[r].high >>> 0).toNumber() : e.GetWay[r]
                }
                if (e.UseTypeId && e.UseTypeId.length)
                    for (n.UseTypeId = [], r = 0; r < e.UseTypeId.length; ++r) "number" == typeof e.UseTypeId[r] ? n.UseTypeId[r] = t.longs === String ? String(e.UseTypeId[r]) : e.UseTypeId[r] : n.UseTypeId[r] = t.longs === String ? i.Long.prototype.toString.call(e.UseTypeId[r]) : t.longs === Number ? new i.LongBits(e.UseTypeId[r].low >>> 0, e.UseTypeId[r].high >>> 0).toNumber() : e.UseTypeId[r];
                if (null != e.SellPrice && e.hasOwnProperty("SellPrice") && ("number" == typeof e.SellPrice ? n.SellPrice = t.longs === String ? String(e.SellPrice) : e.SellPrice : n.SellPrice = t.longs === String ? i.Long.prototype.toString.call(e.SellPrice) : t.longs === Number ? new i.LongBits(e.SellPrice.low >>> 0, e.SellPrice.high >>> 0).toNumber() : e.SellPrice), null != e.SpineEffectName && e.hasOwnProperty("SpineEffectName") && (n.SpineEffectName = e.SpineEffectName), null != e.ElementType && e.hasOwnProperty("ElementType") && ("number" == typeof e.ElementType ? n.ElementType = t.longs === String ? String(e.ElementType) : e.ElementType : n.ElementType = t.longs === String ? i.Long.prototype.toString.call(e.ElementType) : t.longs === Number ? new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber() : e.ElementType), null != e.IsHideTips && e.hasOwnProperty("IsHideTips") && ("number" == typeof e.IsHideTips ? n.IsHideTips = t.longs === String ? String(e.IsHideTips) : e.IsHideTips : n.IsHideTips = t.longs === String ? i.Long.prototype.toString.call(e.IsHideTips) : t.longs === Number ? new i.LongBits(e.IsHideTips.low >>> 0, e.IsHideTips.high >>> 0).toNumber() : e.IsHideTips), null != e.Value && e.hasOwnProperty("Value") && (n.Value = t.json && !isFinite(e.Value) ? String(e.Value) : e.Value), null != e.StageId && e.hasOwnProperty("StageId") && ("number" == typeof e.StageId ? n.StageId = t.longs === String ? String(e.StageId) : e.StageId : n.StageId = t.longs === String ? i.Long.prototype.toString.call(e.StageId) : t.longs === Number ? new i.LongBits(e.StageId.low >>> 0, e.StageId.high >>> 0).toNumber() : e.StageId), e.DecomposeItems && e.DecomposeItems.length)
                    for (n.DecomposeItems = [], r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t);
                return null != e.DailyMax && e.hasOwnProperty("DailyMax") && ("number" == typeof e.DailyMax ? n.DailyMax = t.longs === String ? String(e.DailyMax) : e.DailyMax : n.DailyMax = t.longs === String ? i.Long.prototype.toString.call(e.DailyMax) : t.longs === Number ? new i.LongBits(e.DailyMax.low >>> 0, e.DailyMax.high >>> 0).toNumber() : e.DailyMax), null != e.CustomIcon && e.hasOwnProperty("CustomIcon") && ("number" == typeof e.CustomIcon ? n.CustomIcon = t.longs === String ? String(e.CustomIcon) : e.CustomIcon : n.CustomIcon = t.longs === String ? i.Long.prototype.toString.call(e.CustomIcon) : t.longs === Number ? new i.LongBits(e.CustomIcon.low >>> 0, e.CustomIcon.high >>> 0).toNumber() : e.CustomIcon), null != e.JPY && e.hasOwnProperty("JPY") && (n.JPY = t.json && !isFinite(e.JPY) ? String(e.JPY) : e.JPY), null != e.IsStoreSupported && e.hasOwnProperty("IsStoreSupported") && ("number" == typeof e.IsStoreSupported ? n.IsStoreSupported = t.longs === String ? String(e.IsStoreSupported) : e.IsStoreSupported : n.IsStoreSupported = t.longs === String ? i.Long.prototype.toString.call(e.IsStoreSupported) : t.longs === Number ? new i.LongBits(e.IsStoreSupported.low >>> 0, e.IsStoreSupported.high >>> 0).toNumber() : e.IsStoreSupported), null != e.IsAiSupported && e.hasOwnProperty("IsAiSupported") && ("number" == typeof e.IsAiSupported ? n.IsAiSupported = t.longs === String ? String(e.IsAiSupported) : e.IsAiSupported : n.IsAiSupported = t.longs === String ? i.Long.prototype.toString.call(e.IsAiSupported) : t.longs === Number ? new i.LongBits(e.IsAiSupported.low >>> 0, e.IsAiSupported.high >>> 0).toNumber() : e.IsAiSupported), null != e.SetQuantity && e.hasOwnProperty("SetQuantity") && ("number" == typeof e.SetQuantity ? n.SetQuantity = t.longs === String ? String(e.SetQuantity) : e.SetQuantity : n.SetQuantity = t.longs === String ? i.Long.prototype.toString.call(e.SetQuantity) : t.longs === Number ? new i.LongBits(e.SetQuantity.low >>> 0, e.SetQuantity.high >>> 0).toNumber() : e.SetQuantity), null != e.PurchaseLimit && e.hasOwnProperty("PurchaseLimit") && ("number" == typeof e.PurchaseLimit ? n.PurchaseLimit = t.longs === String ? String(e.PurchaseLimit) : e.PurchaseLimit : n.PurchaseLimit = t.longs === String ? i.Long.prototype.toString.call(e.PurchaseLimit) : t.longs === Number ? new i.LongBits(e.PurchaseLimit.low >>> 0, e.PurchaseLimit.high >>> 0).toNumber() : e.PurchaseLimit), null != e.SellMinCp && e.hasOwnProperty("SellMinCp") && ("number" == typeof e.SellMinCp ? n.SellMinCp = t.longs === String ? String(e.SellMinCp) : e.SellMinCp : n.SellMinCp = t.longs === String ? i.Long.prototype.toString.call(e.SellMinCp) : t.longs === Number ? new i.LongBits(e.SellMinCp.low >>> 0, e.SellMinCp.high >>> 0).toNumber() : e.SellMinCp), null != e.SellMaxCp && e.hasOwnProperty("SellMaxCp") && ("number" == typeof e.SellMaxCp ? n.SellMaxCp = t.longs === String ? String(e.SellMaxCp) : e.SellMaxCp : n.SellMaxCp = t.longs === String ? i.Long.prototype.toString.call(e.SellMaxCp) : t.longs === Number ? new i.LongBits(e.SellMaxCp.low >>> 0, e.SellMaxCp.high >>> 0).toNumber() : e.SellMaxCp), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemBase_Config"
            }, e
        }(), a.SkillBase_Config = function() {
            function e(e) {
                if (this.TargetPriority = [], this.Effects = [], this.Attrs = [], this.ExtraParam = [], this.EffectType = [], this.SkillTag = [], this.BuffDescription = [], this.PetEnergy = [], this.TargetPriorities = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetSide = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetPriority = i.emptyArray, e.prototype.LocaleId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StartCooldown = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Cooldown = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Effects = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.ExtraParam = i.emptyArray, e.prototype.ActionIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EffectType = i.emptyArray, e.prototype.SkillTag = i.emptyArray, e.prototype.BuffDescription = i.emptyArray, e.prototype.CoreChance = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CoreModel = "", e.prototype.TargetIncludeHide = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PetEnergy = i.emptyArray, e.prototype.ExtraPower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetPriorities = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(40).int64(e.Type), null != e.TargetSide && Object.hasOwnProperty.call(e, "TargetSide") && t.uint32(72).int64(e.TargetSide), null != e.TargetCount && Object.hasOwnProperty.call(e, "TargetCount") && t.uint32(80).int64(e.TargetCount), null != e.TargetType && Object.hasOwnProperty.call(e, "TargetType") && t.uint32(88).int64(e.TargetType), null != e.TargetPriority && e.TargetPriority.length) {
                    t.uint32(98).fork();
                    for (var n = 0; n < e.TargetPriority.length; ++n) t.int64(e.TargetPriority[n]);
                    t.ldelim()
                }
                if (null != e.LocaleId && Object.hasOwnProperty.call(e, "LocaleId") && t.uint32(104).int64(e.LocaleId), null != e.StartCooldown && Object.hasOwnProperty.call(e, "StartCooldown") && t.uint32(112).int64(e.StartCooldown), null != e.Cooldown && Object.hasOwnProperty.call(e, "Cooldown") && t.uint32(120).int64(e.Cooldown), null != e.Effects && e.Effects.length)
                    for (n = 0; n < e.Effects.length; ++n) a.IntArray_Config.encode(e.Effects[n], t.uint32(138).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(146).fork()).ldelim();
                if (null != e.ExtraParam && e.ExtraParam.length)
                    for (n = 0; n < e.ExtraParam.length; ++n) a.IntArray_Config.encode(e.ExtraParam[n], t.uint32(170).fork()).ldelim();
                if (null != e.ActionIndex && Object.hasOwnProperty.call(e, "ActionIndex") && t.uint32(176).int64(e.ActionIndex), null != e.EffectType && e.EffectType.length) {
                    for (t.uint32(186).fork(), n = 0; n < e.EffectType.length; ++n) t.int64(e.EffectType[n]);
                    t.ldelim()
                }
                if (null != e.SkillTag && e.SkillTag.length) {
                    for (t.uint32(194).fork(), n = 0; n < e.SkillTag.length; ++n) t.int64(e.SkillTag[n]);
                    t.ldelim()
                }
                if (null != e.BuffDescription && e.BuffDescription.length) {
                    for (t.uint32(210).fork(), n = 0; n < e.BuffDescription.length; ++n) t.int64(e.BuffDescription[n]);
                    t.ldelim()
                }
                if (null != e.CoreChance && Object.hasOwnProperty.call(e, "CoreChance") && t.uint32(216).int64(e.CoreChance), null != e.CoreModel && Object.hasOwnProperty.call(e, "CoreModel") && t.uint32(226).string(e.CoreModel), null != e.TargetIncludeHide && Object.hasOwnProperty.call(e, "TargetIncludeHide") && t.uint32(232).int64(e.TargetIncludeHide), null != e.PetEnergy && e.PetEnergy.length) {
                    for (t.uint32(242).fork(), n = 0; n < e.PetEnergy.length; ++n) t.int64(e.PetEnergy[n]);
                    t.ldelim()
                }
                if (null != e.ExtraPower && Object.hasOwnProperty.call(e, "ExtraPower") && t.uint32(248).int64(e.ExtraPower), null != e.SkillIcon && Object.hasOwnProperty.call(e, "SkillIcon") && t.uint32(256).int64(e.SkillIcon), null != e.TargetPriorities && e.TargetPriorities.length)
                    for (n = 0; n < e.TargetPriorities.length; ++n) a.IntArray_Config.encode(e.TargetPriorities[n], t.uint32(266).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SkillBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.Type = e.int64();
                            break;
                        case 9:
                            r.TargetSide = e.int64();
                            break;
                        case 10:
                            r.TargetCount = e.int64();
                            break;
                        case 11:
                            r.TargetType = e.int64();
                            break;
                        case 12:
                            if (r.TargetPriority && r.TargetPriority.length || (r.TargetPriority = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.TargetPriority.push(e.int64());
                            else r.TargetPriority.push(e.int64());
                            break;
                        case 13:
                            r.LocaleId = e.int64();
                            break;
                        case 14:
                            r.StartCooldown = e.int64();
                            break;
                        case 15:
                            r.Cooldown = e.int64();
                            break;
                        case 17:
                            r.Effects && r.Effects.length || (r.Effects = []), r.Effects.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 18:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 21:
                            r.ExtraParam && r.ExtraParam.length || (r.ExtraParam = []), r.ExtraParam.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 22:
                            r.ActionIndex = e.int64();
                            break;
                        case 23:
                            if (r.EffectType && r.EffectType.length || (r.EffectType = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.EffectType.push(e.int64());
                            else r.EffectType.push(e.int64());
                            break;
                        case 24:
                            if (r.SkillTag && r.SkillTag.length || (r.SkillTag = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.SkillTag.push(e.int64());
                            else r.SkillTag.push(e.int64());
                            break;
                        case 26:
                            if (r.BuffDescription && r.BuffDescription.length || (r.BuffDescription = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.BuffDescription.push(e.int64());
                            else r.BuffDescription.push(e.int64());
                            break;
                        case 27:
                            r.CoreChance = e.int64();
                            break;
                        case 28:
                            r.CoreModel = e.string();
                            break;
                        case 29:
                            r.TargetIncludeHide = e.int64();
                            break;
                        case 30:
                            if (r.PetEnergy && r.PetEnergy.length || (r.PetEnergy = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.PetEnergy.push(e.int64());
                            else r.PetEnergy.push(e.int64());
                            break;
                        case 31:
                            r.ExtraPower = e.int64();
                            break;
                        case 32:
                            r.SkillIcon = e.int64();
                            break;
                        case 33:
                            r.TargetPriorities && r.TargetPriorities.length || (r.TargetPriorities = []), r.TargetPriorities.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.TargetSide && e.hasOwnProperty("TargetSide") && !(i.isInteger(e.TargetSide) || e.TargetSide && i.isInteger(e.TargetSide.low) && i.isInteger(e.TargetSide.high))) return "TargetSide: integer|Long expected";
                if (null != e.TargetCount && e.hasOwnProperty("TargetCount") && !(i.isInteger(e.TargetCount) || e.TargetCount && i.isInteger(e.TargetCount.low) && i.isInteger(e.TargetCount.high))) return "TargetCount: integer|Long expected";
                if (null != e.TargetType && e.hasOwnProperty("TargetType") && !(i.isInteger(e.TargetType) || e.TargetType && i.isInteger(e.TargetType.low) && i.isInteger(e.TargetType.high))) return "TargetType: integer|Long expected";
                if (null != e.TargetPriority && e.hasOwnProperty("TargetPriority")) {
                    if (!Array.isArray(e.TargetPriority)) return "TargetPriority: array expected";
                    for (var t = 0; t < e.TargetPriority.length; ++t)
                        if (!(i.isInteger(e.TargetPriority[t]) || e.TargetPriority[t] && i.isInteger(e.TargetPriority[t].low) && i.isInteger(e.TargetPriority[t].high))) return "TargetPriority: integer|Long[] expected"
                }
                if (null != e.LocaleId && e.hasOwnProperty("LocaleId") && !(i.isInteger(e.LocaleId) || e.LocaleId && i.isInteger(e.LocaleId.low) && i.isInteger(e.LocaleId.high))) return "LocaleId: integer|Long expected";
                if (null != e.StartCooldown && e.hasOwnProperty("StartCooldown") && !(i.isInteger(e.StartCooldown) || e.StartCooldown && i.isInteger(e.StartCooldown.low) && i.isInteger(e.StartCooldown.high))) return "StartCooldown: integer|Long expected";
                if (null != e.Cooldown && e.hasOwnProperty("Cooldown") && !(i.isInteger(e.Cooldown) || e.Cooldown && i.isInteger(e.Cooldown.low) && i.isInteger(e.Cooldown.high))) return "Cooldown: integer|Long expected";
                if (null != e.Effects && e.hasOwnProperty("Effects")) {
                    if (!Array.isArray(e.Effects)) return "Effects: array expected";
                    for (t = 0; t < e.Effects.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Effects[t])) return "Effects." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.ExtraParam && e.hasOwnProperty("ExtraParam")) {
                    if (!Array.isArray(e.ExtraParam)) return "ExtraParam: array expected";
                    for (t = 0; t < e.ExtraParam.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ExtraParam[t])) return "ExtraParam." + n
                }
                if (null != e.ActionIndex && e.hasOwnProperty("ActionIndex") && !(i.isInteger(e.ActionIndex) || e.ActionIndex && i.isInteger(e.ActionIndex.low) && i.isInteger(e.ActionIndex.high))) return "ActionIndex: integer|Long expected";
                if (null != e.EffectType && e.hasOwnProperty("EffectType")) {
                    if (!Array.isArray(e.EffectType)) return "EffectType: array expected";
                    for (t = 0; t < e.EffectType.length; ++t)
                        if (!(i.isInteger(e.EffectType[t]) || e.EffectType[t] && i.isInteger(e.EffectType[t].low) && i.isInteger(e.EffectType[t].high))) return "EffectType: integer|Long[] expected"
                }
                if (null != e.SkillTag && e.hasOwnProperty("SkillTag")) {
                    if (!Array.isArray(e.SkillTag)) return "SkillTag: array expected";
                    for (t = 0; t < e.SkillTag.length; ++t)
                        if (!(i.isInteger(e.SkillTag[t]) || e.SkillTag[t] && i.isInteger(e.SkillTag[t].low) && i.isInteger(e.SkillTag[t].high))) return "SkillTag: integer|Long[] expected"
                }
                if (null != e.BuffDescription && e.hasOwnProperty("BuffDescription")) {
                    if (!Array.isArray(e.BuffDescription)) return "BuffDescription: array expected";
                    for (t = 0; t < e.BuffDescription.length; ++t)
                        if (!(i.isInteger(e.BuffDescription[t]) || e.BuffDescription[t] && i.isInteger(e.BuffDescription[t].low) && i.isInteger(e.BuffDescription[t].high))) return "BuffDescription: integer|Long[] expected"
                }
                if (null != e.CoreChance && e.hasOwnProperty("CoreChance") && !(i.isInteger(e.CoreChance) || e.CoreChance && i.isInteger(e.CoreChance.low) && i.isInteger(e.CoreChance.high))) return "CoreChance: integer|Long expected";
                if (null != e.CoreModel && e.hasOwnProperty("CoreModel") && !i.isString(e.CoreModel)) return "CoreModel: string expected";
                if (null != e.TargetIncludeHide && e.hasOwnProperty("TargetIncludeHide") && !(i.isInteger(e.TargetIncludeHide) || e.TargetIncludeHide && i.isInteger(e.TargetIncludeHide.low) && i.isInteger(e.TargetIncludeHide.high))) return "TargetIncludeHide: integer|Long expected";
                if (null != e.PetEnergy && e.hasOwnProperty("PetEnergy")) {
                    if (!Array.isArray(e.PetEnergy)) return "PetEnergy: array expected";
                    for (t = 0; t < e.PetEnergy.length; ++t)
                        if (!(i.isInteger(e.PetEnergy[t]) || e.PetEnergy[t] && i.isInteger(e.PetEnergy[t].low) && i.isInteger(e.PetEnergy[t].high))) return "PetEnergy: integer|Long[] expected"
                }
                if (null != e.ExtraPower && e.hasOwnProperty("ExtraPower") && !(i.isInteger(e.ExtraPower) || e.ExtraPower && i.isInteger(e.ExtraPower.low) && i.isInteger(e.ExtraPower.high))) return "ExtraPower: integer|Long expected";
                if (null != e.SkillIcon && e.hasOwnProperty("SkillIcon") && !(i.isInteger(e.SkillIcon) || e.SkillIcon && i.isInteger(e.SkillIcon.low) && i.isInteger(e.SkillIcon.high))) return "SkillIcon: integer|Long expected";
                if (null != e.TargetPriorities && e.hasOwnProperty("TargetPriorities")) {
                    if (!Array.isArray(e.TargetPriorities)) return "TargetPriorities: array expected";
                    for (t = 0; t < e.TargetPriorities.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.TargetPriorities[t])) return "TargetPriorities." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SkillBase_Config) return e;
                var t = new a.SkillBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.TargetSide && (i.Long ? (t.TargetSide = i.Long.fromValue(e.TargetSide)).unsigned = !1 : "string" == typeof e.TargetSide ? t.TargetSide = parseInt(e.TargetSide, 10) : "number" == typeof e.TargetSide ? t.TargetSide = e.TargetSide : "object" == typeof e.TargetSide && (t.TargetSide = new i.LongBits(e.TargetSide.low >>> 0, e.TargetSide.high >>> 0).toNumber())), null != e.TargetCount && (i.Long ? (t.TargetCount = i.Long.fromValue(e.TargetCount)).unsigned = !1 : "string" == typeof e.TargetCount ? t.TargetCount = parseInt(e.TargetCount, 10) : "number" == typeof e.TargetCount ? t.TargetCount = e.TargetCount : "object" == typeof e.TargetCount && (t.TargetCount = new i.LongBits(e.TargetCount.low >>> 0, e.TargetCount.high >>> 0).toNumber())), null != e.TargetType && (i.Long ? (t.TargetType = i.Long.fromValue(e.TargetType)).unsigned = !1 : "string" == typeof e.TargetType ? t.TargetType = parseInt(e.TargetType, 10) : "number" == typeof e.TargetType ? t.TargetType = e.TargetType : "object" == typeof e.TargetType && (t.TargetType = new i.LongBits(e.TargetType.low >>> 0, e.TargetType.high >>> 0).toNumber())), e.TargetPriority) {
                    if (!Array.isArray(e.TargetPriority)) throw TypeError(".SkillBase_Config.TargetPriority: array expected");
                    t.TargetPriority = [];
                    for (var n = 0; n < e.TargetPriority.length; ++n) i.Long ? (t.TargetPriority[n] = i.Long.fromValue(e.TargetPriority[n])).unsigned = !1 : "string" == typeof e.TargetPriority[n] ? t.TargetPriority[n] = parseInt(e.TargetPriority[n], 10) : "number" == typeof e.TargetPriority[n] ? t.TargetPriority[n] = e.TargetPriority[n] : "object" == typeof e.TargetPriority[n] && (t.TargetPriority[n] = new i.LongBits(e.TargetPriority[n].low >>> 0, e.TargetPriority[n].high >>> 0).toNumber())
                }
                if (null != e.LocaleId && (i.Long ? (t.LocaleId = i.Long.fromValue(e.LocaleId)).unsigned = !1 : "string" == typeof e.LocaleId ? t.LocaleId = parseInt(e.LocaleId, 10) : "number" == typeof e.LocaleId ? t.LocaleId = e.LocaleId : "object" == typeof e.LocaleId && (t.LocaleId = new i.LongBits(e.LocaleId.low >>> 0, e.LocaleId.high >>> 0).toNumber())), null != e.StartCooldown && (i.Long ? (t.StartCooldown = i.Long.fromValue(e.StartCooldown)).unsigned = !1 : "string" == typeof e.StartCooldown ? t.StartCooldown = parseInt(e.StartCooldown, 10) : "number" == typeof e.StartCooldown ? t.StartCooldown = e.StartCooldown : "object" == typeof e.StartCooldown && (t.StartCooldown = new i.LongBits(e.StartCooldown.low >>> 0, e.StartCooldown.high >>> 0).toNumber())), null != e.Cooldown && (i.Long ? (t.Cooldown = i.Long.fromValue(e.Cooldown)).unsigned = !1 : "string" == typeof e.Cooldown ? t.Cooldown = parseInt(e.Cooldown, 10) : "number" == typeof e.Cooldown ? t.Cooldown = e.Cooldown : "object" == typeof e.Cooldown && (t.Cooldown = new i.LongBits(e.Cooldown.low >>> 0, e.Cooldown.high >>> 0).toNumber())), e.Effects) {
                    if (!Array.isArray(e.Effects)) throw TypeError(".SkillBase_Config.Effects: array expected");
                    for (t.Effects = [], n = 0; n < e.Effects.length; ++n) {
                        if ("object" != typeof e.Effects[n]) throw TypeError(".SkillBase_Config.Effects: object expected");
                        t.Effects[n] = a.IntArray_Config.fromObject(e.Effects[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".SkillBase_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".SkillBase_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.ExtraParam) {
                    if (!Array.isArray(e.ExtraParam)) throw TypeError(".SkillBase_Config.ExtraParam: array expected");
                    for (t.ExtraParam = [], n = 0; n < e.ExtraParam.length; ++n) {
                        if ("object" != typeof e.ExtraParam[n]) throw TypeError(".SkillBase_Config.ExtraParam: object expected");
                        t.ExtraParam[n] = a.IntArray_Config.fromObject(e.ExtraParam[n])
                    }
                }
                if (null != e.ActionIndex && (i.Long ? (t.ActionIndex = i.Long.fromValue(e.ActionIndex)).unsigned = !1 : "string" == typeof e.ActionIndex ? t.ActionIndex = parseInt(e.ActionIndex, 10) : "number" == typeof e.ActionIndex ? t.ActionIndex = e.ActionIndex : "object" == typeof e.ActionIndex && (t.ActionIndex = new i.LongBits(e.ActionIndex.low >>> 0, e.ActionIndex.high >>> 0).toNumber())), e.EffectType) {
                    if (!Array.isArray(e.EffectType)) throw TypeError(".SkillBase_Config.EffectType: array expected");
                    for (t.EffectType = [], n = 0; n < e.EffectType.length; ++n) i.Long ? (t.EffectType[n] = i.Long.fromValue(e.EffectType[n])).unsigned = !1 : "string" == typeof e.EffectType[n] ? t.EffectType[n] = parseInt(e.EffectType[n], 10) : "number" == typeof e.EffectType[n] ? t.EffectType[n] = e.EffectType[n] : "object" == typeof e.EffectType[n] && (t.EffectType[n] = new i.LongBits(e.EffectType[n].low >>> 0, e.EffectType[n].high >>> 0).toNumber())
                }
                if (e.SkillTag) {
                    if (!Array.isArray(e.SkillTag)) throw TypeError(".SkillBase_Config.SkillTag: array expected");
                    for (t.SkillTag = [], n = 0; n < e.SkillTag.length; ++n) i.Long ? (t.SkillTag[n] = i.Long.fromValue(e.SkillTag[n])).unsigned = !1 : "string" == typeof e.SkillTag[n] ? t.SkillTag[n] = parseInt(e.SkillTag[n], 10) : "number" == typeof e.SkillTag[n] ? t.SkillTag[n] = e.SkillTag[n] : "object" == typeof e.SkillTag[n] && (t.SkillTag[n] = new i.LongBits(e.SkillTag[n].low >>> 0, e.SkillTag[n].high >>> 0).toNumber())
                }
                if (e.BuffDescription) {
                    if (!Array.isArray(e.BuffDescription)) throw TypeError(".SkillBase_Config.BuffDescription: array expected");
                    for (t.BuffDescription = [], n = 0; n < e.BuffDescription.length; ++n) i.Long ? (t.BuffDescription[n] = i.Long.fromValue(e.BuffDescription[n])).unsigned = !1 : "string" == typeof e.BuffDescription[n] ? t.BuffDescription[n] = parseInt(e.BuffDescription[n], 10) : "number" == typeof e.BuffDescription[n] ? t.BuffDescription[n] = e.BuffDescription[n] : "object" == typeof e.BuffDescription[n] && (t.BuffDescription[n] = new i.LongBits(e.BuffDescription[n].low >>> 0, e.BuffDescription[n].high >>> 0).toNumber())
                }
                if (null != e.CoreChance && (i.Long ? (t.CoreChance = i.Long.fromValue(e.CoreChance)).unsigned = !1 : "string" == typeof e.CoreChance ? t.CoreChance = parseInt(e.CoreChance, 10) : "number" == typeof e.CoreChance ? t.CoreChance = e.CoreChance : "object" == typeof e.CoreChance && (t.CoreChance = new i.LongBits(e.CoreChance.low >>> 0, e.CoreChance.high >>> 0).toNumber())), null != e.CoreModel && (t.CoreModel = String(e.CoreModel)), null != e.TargetIncludeHide && (i.Long ? (t.TargetIncludeHide = i.Long.fromValue(e.TargetIncludeHide)).unsigned = !1 : "string" == typeof e.TargetIncludeHide ? t.TargetIncludeHide = parseInt(e.TargetIncludeHide, 10) : "number" == typeof e.TargetIncludeHide ? t.TargetIncludeHide = e.TargetIncludeHide : "object" == typeof e.TargetIncludeHide && (t.TargetIncludeHide = new i.LongBits(e.TargetIncludeHide.low >>> 0, e.TargetIncludeHide.high >>> 0).toNumber())), e.PetEnergy) {
                    if (!Array.isArray(e.PetEnergy)) throw TypeError(".SkillBase_Config.PetEnergy: array expected");
                    for (t.PetEnergy = [], n = 0; n < e.PetEnergy.length; ++n) i.Long ? (t.PetEnergy[n] = i.Long.fromValue(e.PetEnergy[n])).unsigned = !1 : "string" == typeof e.PetEnergy[n] ? t.PetEnergy[n] = parseInt(e.PetEnergy[n], 10) : "number" == typeof e.PetEnergy[n] ? t.PetEnergy[n] = e.PetEnergy[n] : "object" == typeof e.PetEnergy[n] && (t.PetEnergy[n] = new i.LongBits(e.PetEnergy[n].low >>> 0, e.PetEnergy[n].high >>> 0).toNumber())
                }
                if (null != e.ExtraPower && (i.Long ? (t.ExtraPower = i.Long.fromValue(e.ExtraPower)).unsigned = !1 : "string" == typeof e.ExtraPower ? t.ExtraPower = parseInt(e.ExtraPower, 10) : "number" == typeof e.ExtraPower ? t.ExtraPower = e.ExtraPower : "object" == typeof e.ExtraPower && (t.ExtraPower = new i.LongBits(e.ExtraPower.low >>> 0, e.ExtraPower.high >>> 0).toNumber())), null != e.SkillIcon && (i.Long ? (t.SkillIcon = i.Long.fromValue(e.SkillIcon)).unsigned = !1 : "string" == typeof e.SkillIcon ? t.SkillIcon = parseInt(e.SkillIcon, 10) : "number" == typeof e.SkillIcon ? t.SkillIcon = e.SkillIcon : "object" == typeof e.SkillIcon && (t.SkillIcon = new i.LongBits(e.SkillIcon.low >>> 0, e.SkillIcon.high >>> 0).toNumber())), e.TargetPriorities) {
                    if (!Array.isArray(e.TargetPriorities)) throw TypeError(".SkillBase_Config.TargetPriorities: array expected");
                    for (t.TargetPriorities = [], n = 0; n < e.TargetPriorities.length; ++n) {
                        if ("object" != typeof e.TargetPriorities[n]) throw TypeError(".SkillBase_Config.TargetPriorities: object expected");
                        t.TargetPriorities[n] = a.IntArray_Config.fromObject(e.TargetPriorities[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.TargetPriority = [], n.Effects = [], n.Attrs = [], n.ExtraParam = [], n.EffectType = [], n.SkillTag = [], n.BuffDescription = [], n.PetEnergy = [], n.TargetPriorities = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetSide = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetSide = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LocaleId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LocaleId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StartCooldown = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StartCooldown = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Cooldown = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Cooldown = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ActionIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ActionIndex = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.CoreChance = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CoreChance = t.longs === String ? "0" : 0, n.CoreModel = "", i.Long ? (o = new i.Long(0, 0, !1), n.TargetIncludeHide = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetIncludeHide = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ExtraPower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ExtraPower = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkillIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillIcon = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.TargetSide && e.hasOwnProperty("TargetSide") && ("number" == typeof e.TargetSide ? n.TargetSide = t.longs === String ? String(e.TargetSide) : e.TargetSide : n.TargetSide = t.longs === String ? i.Long.prototype.toString.call(e.TargetSide) : t.longs === Number ? new i.LongBits(e.TargetSide.low >>> 0, e.TargetSide.high >>> 0).toNumber() : e.TargetSide), null != e.TargetCount && e.hasOwnProperty("TargetCount") && ("number" == typeof e.TargetCount ? n.TargetCount = t.longs === String ? String(e.TargetCount) : e.TargetCount : n.TargetCount = t.longs === String ? i.Long.prototype.toString.call(e.TargetCount) : t.longs === Number ? new i.LongBits(e.TargetCount.low >>> 0, e.TargetCount.high >>> 0).toNumber() : e.TargetCount), null != e.TargetType && e.hasOwnProperty("TargetType") && ("number" == typeof e.TargetType ? n.TargetType = t.longs === String ? String(e.TargetType) : e.TargetType : n.TargetType = t.longs === String ? i.Long.prototype.toString.call(e.TargetType) : t.longs === Number ? new i.LongBits(e.TargetType.low >>> 0, e.TargetType.high >>> 0).toNumber() : e.TargetType), e.TargetPriority && e.TargetPriority.length) {
                    n.TargetPriority = [];
                    for (var r = 0; r < e.TargetPriority.length; ++r) "number" == typeof e.TargetPriority[r] ? n.TargetPriority[r] = t.longs === String ? String(e.TargetPriority[r]) : e.TargetPriority[r] : n.TargetPriority[r] = t.longs === String ? i.Long.prototype.toString.call(e.TargetPriority[r]) : t.longs === Number ? new i.LongBits(e.TargetPriority[r].low >>> 0, e.TargetPriority[r].high >>> 0).toNumber() : e.TargetPriority[r]
                }
                if (null != e.LocaleId && e.hasOwnProperty("LocaleId") && ("number" == typeof e.LocaleId ? n.LocaleId = t.longs === String ? String(e.LocaleId) : e.LocaleId : n.LocaleId = t.longs === String ? i.Long.prototype.toString.call(e.LocaleId) : t.longs === Number ? new i.LongBits(e.LocaleId.low >>> 0, e.LocaleId.high >>> 0).toNumber() : e.LocaleId), null != e.StartCooldown && e.hasOwnProperty("StartCooldown") && ("number" == typeof e.StartCooldown ? n.StartCooldown = t.longs === String ? String(e.StartCooldown) : e.StartCooldown : n.StartCooldown = t.longs === String ? i.Long.prototype.toString.call(e.StartCooldown) : t.longs === Number ? new i.LongBits(e.StartCooldown.low >>> 0, e.StartCooldown.high >>> 0).toNumber() : e.StartCooldown), null != e.Cooldown && e.hasOwnProperty("Cooldown") && ("number" == typeof e.Cooldown ? n.Cooldown = t.longs === String ? String(e.Cooldown) : e.Cooldown : n.Cooldown = t.longs === String ? i.Long.prototype.toString.call(e.Cooldown) : t.longs === Number ? new i.LongBits(e.Cooldown.low >>> 0, e.Cooldown.high >>> 0).toNumber() : e.Cooldown), e.Effects && e.Effects.length)
                    for (n.Effects = [], r = 0; r < e.Effects.length; ++r) n.Effects[r] = a.IntArray_Config.toObject(e.Effects[r], t);
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (e.ExtraParam && e.ExtraParam.length)
                    for (n.ExtraParam = [], r = 0; r < e.ExtraParam.length; ++r) n.ExtraParam[r] = a.IntArray_Config.toObject(e.ExtraParam[r], t);
                if (null != e.ActionIndex && e.hasOwnProperty("ActionIndex") && ("number" == typeof e.ActionIndex ? n.ActionIndex = t.longs === String ? String(e.ActionIndex) : e.ActionIndex : n.ActionIndex = t.longs === String ? i.Long.prototype.toString.call(e.ActionIndex) : t.longs === Number ? new i.LongBits(e.ActionIndex.low >>> 0, e.ActionIndex.high >>> 0).toNumber() : e.ActionIndex), e.EffectType && e.EffectType.length)
                    for (n.EffectType = [], r = 0; r < e.EffectType.length; ++r) "number" == typeof e.EffectType[r] ? n.EffectType[r] = t.longs === String ? String(e.EffectType[r]) : e.EffectType[r] : n.EffectType[r] = t.longs === String ? i.Long.prototype.toString.call(e.EffectType[r]) : t.longs === Number ? new i.LongBits(e.EffectType[r].low >>> 0, e.EffectType[r].high >>> 0).toNumber() : e.EffectType[r];
                if (e.SkillTag && e.SkillTag.length)
                    for (n.SkillTag = [], r = 0; r < e.SkillTag.length; ++r) "number" == typeof e.SkillTag[r] ? n.SkillTag[r] = t.longs === String ? String(e.SkillTag[r]) : e.SkillTag[r] : n.SkillTag[r] = t.longs === String ? i.Long.prototype.toString.call(e.SkillTag[r]) : t.longs === Number ? new i.LongBits(e.SkillTag[r].low >>> 0, e.SkillTag[r].high >>> 0).toNumber() : e.SkillTag[r];
                if (e.BuffDescription && e.BuffDescription.length)
                    for (n.BuffDescription = [], r = 0; r < e.BuffDescription.length; ++r) "number" == typeof e.BuffDescription[r] ? n.BuffDescription[r] = t.longs === String ? String(e.BuffDescription[r]) : e.BuffDescription[r] : n.BuffDescription[r] = t.longs === String ? i.Long.prototype.toString.call(e.BuffDescription[r]) : t.longs === Number ? new i.LongBits(e.BuffDescription[r].low >>> 0, e.BuffDescription[r].high >>> 0).toNumber() : e.BuffDescription[r];
                if (null != e.CoreChance && e.hasOwnProperty("CoreChance") && ("number" == typeof e.CoreChance ? n.CoreChance = t.longs === String ? String(e.CoreChance) : e.CoreChance : n.CoreChance = t.longs === String ? i.Long.prototype.toString.call(e.CoreChance) : t.longs === Number ? new i.LongBits(e.CoreChance.low >>> 0, e.CoreChance.high >>> 0).toNumber() : e.CoreChance), null != e.CoreModel && e.hasOwnProperty("CoreModel") && (n.CoreModel = e.CoreModel), null != e.TargetIncludeHide && e.hasOwnProperty("TargetIncludeHide") && ("number" == typeof e.TargetIncludeHide ? n.TargetIncludeHide = t.longs === String ? String(e.TargetIncludeHide) : e.TargetIncludeHide : n.TargetIncludeHide = t.longs === String ? i.Long.prototype.toString.call(e.TargetIncludeHide) : t.longs === Number ? new i.LongBits(e.TargetIncludeHide.low >>> 0, e.TargetIncludeHide.high >>> 0).toNumber() : e.TargetIncludeHide), e.PetEnergy && e.PetEnergy.length)
                    for (n.PetEnergy = [], r = 0; r < e.PetEnergy.length; ++r) "number" == typeof e.PetEnergy[r] ? n.PetEnergy[r] = t.longs === String ? String(e.PetEnergy[r]) : e.PetEnergy[r] : n.PetEnergy[r] = t.longs === String ? i.Long.prototype.toString.call(e.PetEnergy[r]) : t.longs === Number ? new i.LongBits(e.PetEnergy[r].low >>> 0, e.PetEnergy[r].high >>> 0).toNumber() : e.PetEnergy[r];
                if (null != e.ExtraPower && e.hasOwnProperty("ExtraPower") && ("number" == typeof e.ExtraPower ? n.ExtraPower = t.longs === String ? String(e.ExtraPower) : e.ExtraPower : n.ExtraPower = t.longs === String ? i.Long.prototype.toString.call(e.ExtraPower) : t.longs === Number ? new i.LongBits(e.ExtraPower.low >>> 0, e.ExtraPower.high >>> 0).toNumber() : e.ExtraPower), null != e.SkillIcon && e.hasOwnProperty("SkillIcon") && ("number" == typeof e.SkillIcon ? n.SkillIcon = t.longs === String ? String(e.SkillIcon) : e.SkillIcon : n.SkillIcon = t.longs === String ? i.Long.prototype.toString.call(e.SkillIcon) : t.longs === Number ? new i.LongBits(e.SkillIcon.low >>> 0, e.SkillIcon.high >>> 0).toNumber() : e.SkillIcon), e.TargetPriorities && e.TargetPriorities.length)
                    for (n.TargetPriorities = [], r = 0; r < e.TargetPriorities.length; ++r) n.TargetPriorities[r] = a.IntArray_Config.toObject(e.TargetPriorities[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SkillBase_Config"
            }, e
        }(), a.MapBase_Config = function() {
            function e(e) {
                if (this.Monsters = [], this.AttributeAddon = [], this.Strength = [], this.ExtraSkills = [], this.Heros = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Bg = "", e.prototype.Monsters = i.emptyArray, e.prototype.AttributeAddon = i.emptyArray, e.prototype.BattlePower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsBossBattle = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Strength = i.emptyArray, e.prototype.ExtraSkills = i.emptyArray, e.prototype.Heros = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.Bg && Object.hasOwnProperty.call(e, "Bg") && t.uint32(34).string(e.Bg), null != e.Monsters && e.Monsters.length)
                    for (var n = 0; n < e.Monsters.length; ++n) a.IntArray_Config.encode(e.Monsters[n], t.uint32(42).fork()).ldelim();
                if (null != e.AttributeAddon && e.AttributeAddon.length)
                    for (n = 0; n < e.AttributeAddon.length; ++n) a.IntArray_Config.encode(e.AttributeAddon[n], t.uint32(50).fork()).ldelim();
                if (null != e.BattlePower && Object.hasOwnProperty.call(e, "BattlePower") && t.uint32(56).int64(e.BattlePower), null != e.IsBossBattle && Object.hasOwnProperty.call(e, "IsBossBattle") && t.uint32(72).int64(e.IsBossBattle), null != e.Strength && e.Strength.length) {
                    for (t.uint32(82).fork(), n = 0; n < e.Strength.length; ++n) t.int64(e.Strength[n]);
                    t.ldelim()
                }
                if (null != e.ExtraSkills && e.ExtraSkills.length)
                    for (n = 0; n < e.ExtraSkills.length; ++n) a.IntArray_Config.encode(e.ExtraSkills[n], t.uint32(90).fork()).ldelim();
                if (null != e.Heros && e.Heros.length)
                    for (n = 0; n < e.Heros.length; ++n) a.IntArray_Config.encode(e.Heros[n], t.uint32(98).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MapBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Bg = e.string();
                            break;
                        case 5:
                            r.Monsters && r.Monsters.length || (r.Monsters = []), r.Monsters.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.AttributeAddon && r.AttributeAddon.length || (r.AttributeAddon = []), r.AttributeAddon.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.BattlePower = e.int64();
                            break;
                        case 9:
                            r.IsBossBattle = e.int64();
                            break;
                        case 10:
                            if (r.Strength && r.Strength.length || (r.Strength = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Strength.push(e.int64());
                            else r.Strength.push(e.int64());
                            break;
                        case 11:
                            r.ExtraSkills && r.ExtraSkills.length || (r.ExtraSkills = []), r.ExtraSkills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 12:
                            r.Heros && r.Heros.length || (r.Heros = []), r.Heros.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Bg && e.hasOwnProperty("Bg") && !i.isString(e.Bg)) return "Bg: string expected";
                if (null != e.Monsters && e.hasOwnProperty("Monsters")) {
                    if (!Array.isArray(e.Monsters)) return "Monsters: array expected";
                    for (var t = 0; t < e.Monsters.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Monsters[t])) return "Monsters." + n
                }
                if (null != e.AttributeAddon && e.hasOwnProperty("AttributeAddon")) {
                    if (!Array.isArray(e.AttributeAddon)) return "AttributeAddon: array expected";
                    for (t = 0; t < e.AttributeAddon.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AttributeAddon[t])) return "AttributeAddon." + n
                }
                if (null != e.BattlePower && e.hasOwnProperty("BattlePower") && !(i.isInteger(e.BattlePower) || e.BattlePower && i.isInteger(e.BattlePower.low) && i.isInteger(e.BattlePower.high))) return "BattlePower: integer|Long expected";
                if (null != e.IsBossBattle && e.hasOwnProperty("IsBossBattle") && !(i.isInteger(e.IsBossBattle) || e.IsBossBattle && i.isInteger(e.IsBossBattle.low) && i.isInteger(e.IsBossBattle.high))) return "IsBossBattle: integer|Long expected";
                if (null != e.Strength && e.hasOwnProperty("Strength")) {
                    if (!Array.isArray(e.Strength)) return "Strength: array expected";
                    for (t = 0; t < e.Strength.length; ++t)
                        if (!(i.isInteger(e.Strength[t]) || e.Strength[t] && i.isInteger(e.Strength[t].low) && i.isInteger(e.Strength[t].high))) return "Strength: integer|Long[] expected"
                }
                if (null != e.ExtraSkills && e.hasOwnProperty("ExtraSkills")) {
                    if (!Array.isArray(e.ExtraSkills)) return "ExtraSkills: array expected";
                    for (t = 0; t < e.ExtraSkills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ExtraSkills[t])) return "ExtraSkills." + n
                }
                if (null != e.Heros && e.hasOwnProperty("Heros")) {
                    if (!Array.isArray(e.Heros)) return "Heros: array expected";
                    for (t = 0; t < e.Heros.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Heros[t])) return "Heros." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MapBase_Config) return e;
                var t = new a.MapBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Bg && (t.Bg = String(e.Bg)), e.Monsters) {
                    if (!Array.isArray(e.Monsters)) throw TypeError(".MapBase_Config.Monsters: array expected");
                    t.Monsters = [];
                    for (var n = 0; n < e.Monsters.length; ++n) {
                        if ("object" != typeof e.Monsters[n]) throw TypeError(".MapBase_Config.Monsters: object expected");
                        t.Monsters[n] = a.IntArray_Config.fromObject(e.Monsters[n])
                    }
                }
                if (e.AttributeAddon) {
                    if (!Array.isArray(e.AttributeAddon)) throw TypeError(".MapBase_Config.AttributeAddon: array expected");
                    for (t.AttributeAddon = [], n = 0; n < e.AttributeAddon.length; ++n) {
                        if ("object" != typeof e.AttributeAddon[n]) throw TypeError(".MapBase_Config.AttributeAddon: object expected");
                        t.AttributeAddon[n] = a.IntArray_Config.fromObject(e.AttributeAddon[n])
                    }
                }
                if (null != e.BattlePower && (i.Long ? (t.BattlePower = i.Long.fromValue(e.BattlePower)).unsigned = !1 : "string" == typeof e.BattlePower ? t.BattlePower = parseInt(e.BattlePower, 10) : "number" == typeof e.BattlePower ? t.BattlePower = e.BattlePower : "object" == typeof e.BattlePower && (t.BattlePower = new i.LongBits(e.BattlePower.low >>> 0, e.BattlePower.high >>> 0).toNumber())), null != e.IsBossBattle && (i.Long ? (t.IsBossBattle = i.Long.fromValue(e.IsBossBattle)).unsigned = !1 : "string" == typeof e.IsBossBattle ? t.IsBossBattle = parseInt(e.IsBossBattle, 10) : "number" == typeof e.IsBossBattle ? t.IsBossBattle = e.IsBossBattle : "object" == typeof e.IsBossBattle && (t.IsBossBattle = new i.LongBits(e.IsBossBattle.low >>> 0, e.IsBossBattle.high >>> 0).toNumber())), e.Strength) {
                    if (!Array.isArray(e.Strength)) throw TypeError(".MapBase_Config.Strength: array expected");
                    for (t.Strength = [], n = 0; n < e.Strength.length; ++n) i.Long ? (t.Strength[n] = i.Long.fromValue(e.Strength[n])).unsigned = !1 : "string" == typeof e.Strength[n] ? t.Strength[n] = parseInt(e.Strength[n], 10) : "number" == typeof e.Strength[n] ? t.Strength[n] = e.Strength[n] : "object" == typeof e.Strength[n] && (t.Strength[n] = new i.LongBits(e.Strength[n].low >>> 0, e.Strength[n].high >>> 0).toNumber())
                }
                if (e.ExtraSkills) {
                    if (!Array.isArray(e.ExtraSkills)) throw TypeError(".MapBase_Config.ExtraSkills: array expected");
                    for (t.ExtraSkills = [], n = 0; n < e.ExtraSkills.length; ++n) {
                        if ("object" != typeof e.ExtraSkills[n]) throw TypeError(".MapBase_Config.ExtraSkills: object expected");
                        t.ExtraSkills[n] = a.IntArray_Config.fromObject(e.ExtraSkills[n])
                    }
                }
                if (e.Heros) {
                    if (!Array.isArray(e.Heros)) throw TypeError(".MapBase_Config.Heros: array expected");
                    for (t.Heros = [], n = 0; n < e.Heros.length; ++n) {
                        if ("object" != typeof e.Heros[n]) throw TypeError(".MapBase_Config.Heros: object expected");
                        t.Heros[n] = a.IntArray_Config.fromObject(e.Heros[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Monsters = [], n.AttributeAddon = [], n.Strength = [], n.ExtraSkills = [], n.Heros = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, n.Bg = "", i.Long ? (o = new i.Long(0, 0, !1), n.BattlePower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BattlePower = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.IsBossBattle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsBossBattle = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Bg && e.hasOwnProperty("Bg") && (n.Bg = e.Bg), e.Monsters && e.Monsters.length) {
                    n.Monsters = [];
                    for (var r = 0; r < e.Monsters.length; ++r) n.Monsters[r] = a.IntArray_Config.toObject(e.Monsters[r], t)
                }
                if (e.AttributeAddon && e.AttributeAddon.length)
                    for (n.AttributeAddon = [], r = 0; r < e.AttributeAddon.length; ++r) n.AttributeAddon[r] = a.IntArray_Config.toObject(e.AttributeAddon[r], t);
                if (null != e.BattlePower && e.hasOwnProperty("BattlePower") && ("number" == typeof e.BattlePower ? n.BattlePower = t.longs === String ? String(e.BattlePower) : e.BattlePower : n.BattlePower = t.longs === String ? i.Long.prototype.toString.call(e.BattlePower) : t.longs === Number ? new i.LongBits(e.BattlePower.low >>> 0, e.BattlePower.high >>> 0).toNumber() : e.BattlePower), null != e.IsBossBattle && e.hasOwnProperty("IsBossBattle") && ("number" == typeof e.IsBossBattle ? n.IsBossBattle = t.longs === String ? String(e.IsBossBattle) : e.IsBossBattle : n.IsBossBattle = t.longs === String ? i.Long.prototype.toString.call(e.IsBossBattle) : t.longs === Number ? new i.LongBits(e.IsBossBattle.low >>> 0, e.IsBossBattle.high >>> 0).toNumber() : e.IsBossBattle), e.Strength && e.Strength.length)
                    for (n.Strength = [], r = 0; r < e.Strength.length; ++r) "number" == typeof e.Strength[r] ? n.Strength[r] = t.longs === String ? String(e.Strength[r]) : e.Strength[r] : n.Strength[r] = t.longs === String ? i.Long.prototype.toString.call(e.Strength[r]) : t.longs === Number ? new i.LongBits(e.Strength[r].low >>> 0, e.Strength[r].high >>> 0).toNumber() : e.Strength[r];
                if (e.ExtraSkills && e.ExtraSkills.length)
                    for (n.ExtraSkills = [], r = 0; r < e.ExtraSkills.length; ++r) n.ExtraSkills[r] = a.IntArray_Config.toObject(e.ExtraSkills[r], t);
                if (e.Heros && e.Heros.length)
                    for (n.Heros = [], r = 0; r < e.Heros.length; ++r) n.Heros[r] = a.IntArray_Config.toObject(e.Heros[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MapBase_Config"
            }, e
        }(), a.LocaleUI_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(10).string(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LocaleUI_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !i.isString(e.Id) ? "Id: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.LocaleUI_Config) return e;
                var t = new a.LocaleUI_Config;
                return null != e.Id && (t.Id = String(e.Id)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Id = ""), null != e.Id && e.hasOwnProperty("Id") && (n.Id = e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LocaleUI_Config"
            }, e
        }(), a.LocaleServer_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(10).string(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LocaleServer_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !i.isString(e.Id) ? "Id: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.LocaleServer_Config) return e;
                var t = new a.LocaleServer_Config;
                return null != e.Id && (t.Id = String(e.Id)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Id = ""), null != e.Id && e.hasOwnProperty("Id") && (n.Id = e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LocaleServer_Config"
            }, e
        }(), a.FormationType_Config = function() {
            function e(e) {
                if (this.Data = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Data = i.emptyArray, e.prototype.Icon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Data && e.Data.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.Data.length; ++n) t.int64(e.Data[n]);
                    t.ldelim()
                }
                return null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(42).string(e.Icon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FormationType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            if (r.Data && r.Data.length || (r.Data = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Data.push(e.int64());
                            else r.Data.push(e.int64());
                            break;
                        case 5:
                            r.Icon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t)
                        if (!(i.isInteger(e.Data[t]) || e.Data[t] && i.isInteger(e.Data[t].low) && i.isInteger(e.Data[t].high))) return "Data: integer|Long[] expected"
                }
                return null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.FormationType_Config) return e;
                var t = new a.FormationType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".FormationType_Config.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) i.Long ? (t.Data[n] = i.Long.fromValue(e.Data[n])).unsigned = !1 : "string" == typeof e.Data[n] ? t.Data[n] = parseInt(e.Data[n], 10) : "number" == typeof e.Data[n] ? t.Data[n] = e.Data[n] : "object" == typeof e.Data[n] && (t.Data[n] = new i.LongBits(e.Data[n].low >>> 0, e.Data[n].high >>> 0).toNumber())
                }
                return null != e.Icon && (t.Icon = String(e.Icon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var r = 0; r < e.Data.length; ++r) "number" == typeof e.Data[r] ? n.Data[r] = t.longs === String ? String(e.Data[r]) : e.Data[r] : n.Data[r] = t.longs === String ? i.Long.prototype.toString.call(e.Data[r]) : t.longs === Number ? new i.LongBits(e.Data[r].low >>> 0, e.Data[r].high >>> 0).toNumber() : e.Data[r]
                }
                return null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FormationType_Config"
            }, e
        }(), a.ShopBase_Config = function() {
            function e(e) {
                if (this.HeaderCurrencyType = [], this.RefreshType = [], this.Goods = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeaderCurrencyType = i.emptyArray, e.prototype.RefreshType = i.emptyArray, e.prototype.Goods = i.emptyArray, e.prototype.Parent = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DailyRefreshCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsRefresh = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GameModule = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeaderCurrencyType && e.HeaderCurrencyType.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.HeaderCurrencyType.length; ++n) t.int64(e.HeaderCurrencyType[n]);
                    t.ldelim()
                }
                if (null != e.RefreshType && e.RefreshType.length)
                    for (n = 0; n < e.RefreshType.length; ++n) a.IntArray_Config.encode(e.RefreshType[n], t.uint32(34).fork()).ldelim();
                if (null != e.Goods && e.Goods.length)
                    for (n = 0; n < e.Goods.length; ++n) a.IntArray_Config.encode(e.Goods[n], t.uint32(42).fork()).ldelim();
                return null != e.Parent && Object.hasOwnProperty.call(e, "Parent") && t.uint32(48).int64(e.Parent), null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(56).int64(e.SortId), null != e.DailyRefreshCount && Object.hasOwnProperty.call(e, "DailyRefreshCount") && t.uint32(72).int64(e.DailyRefreshCount), null != e.IsRefresh && Object.hasOwnProperty.call(e, "IsRefresh") && t.uint32(80).int64(e.IsRefresh), null != e.GameModule && Object.hasOwnProperty.call(e, "GameModule") && t.uint32(96).int64(e.GameModule), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ShopBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.HeaderCurrencyType && r.HeaderCurrencyType.length || (r.HeaderCurrencyType = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.HeaderCurrencyType.push(e.int64());
                            else r.HeaderCurrencyType.push(e.int64());
                            break;
                        case 4:
                            r.RefreshType && r.RefreshType.length || (r.RefreshType = []), r.RefreshType.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Goods && r.Goods.length || (r.Goods = []), r.Goods.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Parent = e.int64();
                            break;
                        case 7:
                            r.SortId = e.int64();
                            break;
                        case 9:
                            r.DailyRefreshCount = e.int64();
                            break;
                        case 10:
                            r.IsRefresh = e.int64();
                            break;
                        case 12:
                            r.GameModule = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeaderCurrencyType && e.hasOwnProperty("HeaderCurrencyType")) {
                    if (!Array.isArray(e.HeaderCurrencyType)) return "HeaderCurrencyType: array expected";
                    for (var t = 0; t < e.HeaderCurrencyType.length; ++t)
                        if (!(i.isInteger(e.HeaderCurrencyType[t]) || e.HeaderCurrencyType[t] && i.isInteger(e.HeaderCurrencyType[t].low) && i.isInteger(e.HeaderCurrencyType[t].high))) return "HeaderCurrencyType: integer|Long[] expected"
                }
                if (null != e.RefreshType && e.hasOwnProperty("RefreshType")) {
                    if (!Array.isArray(e.RefreshType)) return "RefreshType: array expected";
                    for (t = 0; t < e.RefreshType.length; ++t)
                        if (n = a.IntArray_Config.verify(e.RefreshType[t])) return "RefreshType." + n
                }
                if (null != e.Goods && e.hasOwnProperty("Goods")) {
                    if (!Array.isArray(e.Goods)) return "Goods: array expected";
                    for (t = 0; t < e.Goods.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Goods[t])) return "Goods." + n
                    }
                }
                return null != e.Parent && e.hasOwnProperty("Parent") && !(i.isInteger(e.Parent) || e.Parent && i.isInteger(e.Parent.low) && i.isInteger(e.Parent.high)) ? "Parent: integer|Long expected" : null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null != e.DailyRefreshCount && e.hasOwnProperty("DailyRefreshCount") && !(i.isInteger(e.DailyRefreshCount) || e.DailyRefreshCount && i.isInteger(e.DailyRefreshCount.low) && i.isInteger(e.DailyRefreshCount.high)) ? "DailyRefreshCount: integer|Long expected" : null != e.IsRefresh && e.hasOwnProperty("IsRefresh") && !(i.isInteger(e.IsRefresh) || e.IsRefresh && i.isInteger(e.IsRefresh.low) && i.isInteger(e.IsRefresh.high)) ? "IsRefresh: integer|Long expected" : null != e.GameModule && e.hasOwnProperty("GameModule") && !(i.isInteger(e.GameModule) || e.GameModule && i.isInteger(e.GameModule.low) && i.isInteger(e.GameModule.high)) ? "GameModule: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ShopBase_Config) return e;
                var t = new a.ShopBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.HeaderCurrencyType) {
                    if (!Array.isArray(e.HeaderCurrencyType)) throw TypeError(".ShopBase_Config.HeaderCurrencyType: array expected");
                    t.HeaderCurrencyType = [];
                    for (var n = 0; n < e.HeaderCurrencyType.length; ++n) i.Long ? (t.HeaderCurrencyType[n] = i.Long.fromValue(e.HeaderCurrencyType[n])).unsigned = !1 : "string" == typeof e.HeaderCurrencyType[n] ? t.HeaderCurrencyType[n] = parseInt(e.HeaderCurrencyType[n], 10) : "number" == typeof e.HeaderCurrencyType[n] ? t.HeaderCurrencyType[n] = e.HeaderCurrencyType[n] : "object" == typeof e.HeaderCurrencyType[n] && (t.HeaderCurrencyType[n] = new i.LongBits(e.HeaderCurrencyType[n].low >>> 0, e.HeaderCurrencyType[n].high >>> 0).toNumber())
                }
                if (e.RefreshType) {
                    if (!Array.isArray(e.RefreshType)) throw TypeError(".ShopBase_Config.RefreshType: array expected");
                    for (t.RefreshType = [], n = 0; n < e.RefreshType.length; ++n) {
                        if ("object" != typeof e.RefreshType[n]) throw TypeError(".ShopBase_Config.RefreshType: object expected");
                        t.RefreshType[n] = a.IntArray_Config.fromObject(e.RefreshType[n])
                    }
                }
                if (e.Goods) {
                    if (!Array.isArray(e.Goods)) throw TypeError(".ShopBase_Config.Goods: array expected");
                    for (t.Goods = [], n = 0; n < e.Goods.length; ++n) {
                        if ("object" != typeof e.Goods[n]) throw TypeError(".ShopBase_Config.Goods: object expected");
                        t.Goods[n] = a.IntArray_Config.fromObject(e.Goods[n])
                    }
                }
                return null != e.Parent && (i.Long ? (t.Parent = i.Long.fromValue(e.Parent)).unsigned = !1 : "string" == typeof e.Parent ? t.Parent = parseInt(e.Parent, 10) : "number" == typeof e.Parent ? t.Parent = e.Parent : "object" == typeof e.Parent && (t.Parent = new i.LongBits(e.Parent.low >>> 0, e.Parent.high >>> 0).toNumber())), null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), null != e.DailyRefreshCount && (i.Long ? (t.DailyRefreshCount = i.Long.fromValue(e.DailyRefreshCount)).unsigned = !1 : "string" == typeof e.DailyRefreshCount ? t.DailyRefreshCount = parseInt(e.DailyRefreshCount, 10) : "number" == typeof e.DailyRefreshCount ? t.DailyRefreshCount = e.DailyRefreshCount : "object" == typeof e.DailyRefreshCount && (t.DailyRefreshCount = new i.LongBits(e.DailyRefreshCount.low >>> 0, e.DailyRefreshCount.high >>> 0).toNumber())), null != e.IsRefresh && (i.Long ? (t.IsRefresh = i.Long.fromValue(e.IsRefresh)).unsigned = !1 : "string" == typeof e.IsRefresh ? t.IsRefresh = parseInt(e.IsRefresh, 10) : "number" == typeof e.IsRefresh ? t.IsRefresh = e.IsRefresh : "object" == typeof e.IsRefresh && (t.IsRefresh = new i.LongBits(e.IsRefresh.low >>> 0, e.IsRefresh.high >>> 0).toNumber())), null != e.GameModule && (i.Long ? (t.GameModule = i.Long.fromValue(e.GameModule)).unsigned = !1 : "string" == typeof e.GameModule ? t.GameModule = parseInt(e.GameModule, 10) : "number" == typeof e.GameModule ? t.GameModule = e.GameModule : "object" == typeof e.GameModule && (t.GameModule = new i.LongBits(e.GameModule.low >>> 0, e.GameModule.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.HeaderCurrencyType = [], n.RefreshType = [], n.Goods = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Parent = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Parent = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DailyRefreshCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DailyRefreshCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.IsRefresh = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsRefresh = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GameModule = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GameModule = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.HeaderCurrencyType && e.HeaderCurrencyType.length) {
                    n.HeaderCurrencyType = [];
                    for (var r = 0; r < e.HeaderCurrencyType.length; ++r) "number" == typeof e.HeaderCurrencyType[r] ? n.HeaderCurrencyType[r] = t.longs === String ? String(e.HeaderCurrencyType[r]) : e.HeaderCurrencyType[r] : n.HeaderCurrencyType[r] = t.longs === String ? i.Long.prototype.toString.call(e.HeaderCurrencyType[r]) : t.longs === Number ? new i.LongBits(e.HeaderCurrencyType[r].low >>> 0, e.HeaderCurrencyType[r].high >>> 0).toNumber() : e.HeaderCurrencyType[r]
                }
                if (e.RefreshType && e.RefreshType.length)
                    for (n.RefreshType = [], r = 0; r < e.RefreshType.length; ++r) n.RefreshType[r] = a.IntArray_Config.toObject(e.RefreshType[r], t);
                if (e.Goods && e.Goods.length)
                    for (n.Goods = [], r = 0; r < e.Goods.length; ++r) n.Goods[r] = a.IntArray_Config.toObject(e.Goods[r], t);
                return null != e.Parent && e.hasOwnProperty("Parent") && ("number" == typeof e.Parent ? n.Parent = t.longs === String ? String(e.Parent) : e.Parent : n.Parent = t.longs === String ? i.Long.prototype.toString.call(e.Parent) : t.longs === Number ? new i.LongBits(e.Parent.low >>> 0, e.Parent.high >>> 0).toNumber() : e.Parent), null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), null != e.DailyRefreshCount && e.hasOwnProperty("DailyRefreshCount") && ("number" == typeof e.DailyRefreshCount ? n.DailyRefreshCount = t.longs === String ? String(e.DailyRefreshCount) : e.DailyRefreshCount : n.DailyRefreshCount = t.longs === String ? i.Long.prototype.toString.call(e.DailyRefreshCount) : t.longs === Number ? new i.LongBits(e.DailyRefreshCount.low >>> 0, e.DailyRefreshCount.high >>> 0).toNumber() : e.DailyRefreshCount), null != e.IsRefresh && e.hasOwnProperty("IsRefresh") && ("number" == typeof e.IsRefresh ? n.IsRefresh = t.longs === String ? String(e.IsRefresh) : e.IsRefresh : n.IsRefresh = t.longs === String ? i.Long.prototype.toString.call(e.IsRefresh) : t.longs === Number ? new i.LongBits(e.IsRefresh.low >>> 0, e.IsRefresh.high >>> 0).toNumber() : e.IsRefresh), null != e.GameModule && e.hasOwnProperty("GameModule") && ("number" == typeof e.GameModule ? n.GameModule = t.longs === String ? String(e.GameModule) : e.GameModule : n.GameModule = t.longs === String ? i.Long.prototype.toString.call(e.GameModule) : t.longs === Number ? new i.LongBits(e.GameModule.low >>> 0, e.GameModule.high >>> 0).toNumber() : e.GameModule), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ShopBase_Config"
            }, e
        }(), a.ShopItem_Config = function() {
            function e(e) {
                if (this.EffectiveCondition = [], this.BuyLimit = [], this.WorkCondition = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CurrencyType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Price = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LimitCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Discount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LimitCycle = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.VipLimit = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EffectiveCondition = i.emptyArray, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Weight = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RequireAllianceLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BuyLimit = i.emptyArray, e.prototype.WorkCondition = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(16).int64(e.ItemId), null != e.CurrencyType && Object.hasOwnProperty.call(e, "CurrencyType") && t.uint32(24).int64(e.CurrencyType), null != e.Price && Object.hasOwnProperty.call(e, "Price") && t.uint32(32).int64(e.Price), null != e.LimitCount && Object.hasOwnProperty.call(e, "LimitCount") && t.uint32(40).int64(e.LimitCount), null != e.Discount && Object.hasOwnProperty.call(e, "Discount") && t.uint32(48).int64(e.Discount), null != e.LimitCycle && Object.hasOwnProperty.call(e, "LimitCycle") && t.uint32(56).int64(e.LimitCycle), null != e.VipLimit && Object.hasOwnProperty.call(e, "VipLimit") && t.uint32(64).int64(e.VipLimit), null != e.EffectiveCondition && e.EffectiveCondition.length)
                    for (var n = 0; n < e.EffectiveCondition.length; ++n) a.IntArray_Config.encode(e.EffectiveCondition[n], t.uint32(74).fork()).ldelim();
                if (null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(80).int64(e.Count), null != e.Weight && Object.hasOwnProperty.call(e, "Weight") && t.uint32(88).int64(e.Weight), null != e.RequireAllianceLevel && Object.hasOwnProperty.call(e, "RequireAllianceLevel") && t.uint32(96).int64(e.RequireAllianceLevel), null != e.BuyLimit && e.BuyLimit.length)
                    for (n = 0; n < e.BuyLimit.length; ++n) a.IntArray_Config.encode(e.BuyLimit[n], t.uint32(114).fork()).ldelim();
                if (null != e.WorkCondition && e.WorkCondition.length)
                    for (n = 0; n < e.WorkCondition.length; ++n) a.IntArray_Config.encode(e.WorkCondition[n], t.uint32(122).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ShopItem_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.ItemId = e.int64();
                            break;
                        case 3:
                            r.CurrencyType = e.int64();
                            break;
                        case 4:
                            r.Price = e.int64();
                            break;
                        case 5:
                            r.LimitCount = e.int64();
                            break;
                        case 6:
                            r.Discount = e.int64();
                            break;
                        case 7:
                            r.LimitCycle = e.int64();
                            break;
                        case 8:
                            r.VipLimit = e.int64();
                            break;
                        case 9:
                            r.EffectiveCondition && r.EffectiveCondition.length || (r.EffectiveCondition = []), r.EffectiveCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.Count = e.int64();
                            break;
                        case 11:
                            r.Weight = e.int64();
                            break;
                        case 12:
                            r.RequireAllianceLevel = e.int64();
                            break;
                        case 14:
                            r.BuyLimit && r.BuyLimit.length || (r.BuyLimit = []), r.BuyLimit.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 15:
                            r.WorkCondition && r.WorkCondition.length || (r.WorkCondition = []), r.WorkCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high))) return "ItemId: integer|Long expected";
                if (null != e.CurrencyType && e.hasOwnProperty("CurrencyType") && !(i.isInteger(e.CurrencyType) || e.CurrencyType && i.isInteger(e.CurrencyType.low) && i.isInteger(e.CurrencyType.high))) return "CurrencyType: integer|Long expected";
                if (null != e.Price && e.hasOwnProperty("Price") && !(i.isInteger(e.Price) || e.Price && i.isInteger(e.Price.low) && i.isInteger(e.Price.high))) return "Price: integer|Long expected";
                if (null != e.LimitCount && e.hasOwnProperty("LimitCount") && !(i.isInteger(e.LimitCount) || e.LimitCount && i.isInteger(e.LimitCount.low) && i.isInteger(e.LimitCount.high))) return "LimitCount: integer|Long expected";
                if (null != e.Discount && e.hasOwnProperty("Discount") && !(i.isInteger(e.Discount) || e.Discount && i.isInteger(e.Discount.low) && i.isInteger(e.Discount.high))) return "Discount: integer|Long expected";
                if (null != e.LimitCycle && e.hasOwnProperty("LimitCycle") && !(i.isInteger(e.LimitCycle) || e.LimitCycle && i.isInteger(e.LimitCycle.low) && i.isInteger(e.LimitCycle.high))) return "LimitCycle: integer|Long expected";
                if (null != e.VipLimit && e.hasOwnProperty("VipLimit") && !(i.isInteger(e.VipLimit) || e.VipLimit && i.isInteger(e.VipLimit.low) && i.isInteger(e.VipLimit.high))) return "VipLimit: integer|Long expected";
                if (null != e.EffectiveCondition && e.hasOwnProperty("EffectiveCondition")) {
                    if (!Array.isArray(e.EffectiveCondition)) return "EffectiveCondition: array expected";
                    for (var t = 0; t < e.EffectiveCondition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.EffectiveCondition[t])) return "EffectiveCondition." + n
                }
                if (null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high))) return "Count: integer|Long expected";
                if (null != e.Weight && e.hasOwnProperty("Weight") && !(i.isInteger(e.Weight) || e.Weight && i.isInteger(e.Weight.low) && i.isInteger(e.Weight.high))) return "Weight: integer|Long expected";
                if (null != e.RequireAllianceLevel && e.hasOwnProperty("RequireAllianceLevel") && !(i.isInteger(e.RequireAllianceLevel) || e.RequireAllianceLevel && i.isInteger(e.RequireAllianceLevel.low) && i.isInteger(e.RequireAllianceLevel.high))) return "RequireAllianceLevel: integer|Long expected";
                if (null != e.BuyLimit && e.hasOwnProperty("BuyLimit")) {
                    if (!Array.isArray(e.BuyLimit)) return "BuyLimit: array expected";
                    for (t = 0; t < e.BuyLimit.length; ++t)
                        if (n = a.IntArray_Config.verify(e.BuyLimit[t])) return "BuyLimit." + n
                }
                if (null != e.WorkCondition && e.hasOwnProperty("WorkCondition")) {
                    if (!Array.isArray(e.WorkCondition)) return "WorkCondition: array expected";
                    for (t = 0; t < e.WorkCondition.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.WorkCondition[t])) return "WorkCondition." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ShopItem_Config) return e;
                var t = new a.ShopItem_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), null != e.CurrencyType && (i.Long ? (t.CurrencyType = i.Long.fromValue(e.CurrencyType)).unsigned = !1 : "string" == typeof e.CurrencyType ? t.CurrencyType = parseInt(e.CurrencyType, 10) : "number" == typeof e.CurrencyType ? t.CurrencyType = e.CurrencyType : "object" == typeof e.CurrencyType && (t.CurrencyType = new i.LongBits(e.CurrencyType.low >>> 0, e.CurrencyType.high >>> 0).toNumber())), null != e.Price && (i.Long ? (t.Price = i.Long.fromValue(e.Price)).unsigned = !1 : "string" == typeof e.Price ? t.Price = parseInt(e.Price, 10) : "number" == typeof e.Price ? t.Price = e.Price : "object" == typeof e.Price && (t.Price = new i.LongBits(e.Price.low >>> 0, e.Price.high >>> 0).toNumber())), null != e.LimitCount && (i.Long ? (t.LimitCount = i.Long.fromValue(e.LimitCount)).unsigned = !1 : "string" == typeof e.LimitCount ? t.LimitCount = parseInt(e.LimitCount, 10) : "number" == typeof e.LimitCount ? t.LimitCount = e.LimitCount : "object" == typeof e.LimitCount && (t.LimitCount = new i.LongBits(e.LimitCount.low >>> 0, e.LimitCount.high >>> 0).toNumber())), null != e.Discount && (i.Long ? (t.Discount = i.Long.fromValue(e.Discount)).unsigned = !1 : "string" == typeof e.Discount ? t.Discount = parseInt(e.Discount, 10) : "number" == typeof e.Discount ? t.Discount = e.Discount : "object" == typeof e.Discount && (t.Discount = new i.LongBits(e.Discount.low >>> 0, e.Discount.high >>> 0).toNumber())), null != e.LimitCycle && (i.Long ? (t.LimitCycle = i.Long.fromValue(e.LimitCycle)).unsigned = !1 : "string" == typeof e.LimitCycle ? t.LimitCycle = parseInt(e.LimitCycle, 10) : "number" == typeof e.LimitCycle ? t.LimitCycle = e.LimitCycle : "object" == typeof e.LimitCycle && (t.LimitCycle = new i.LongBits(e.LimitCycle.low >>> 0, e.LimitCycle.high >>> 0).toNumber())), null != e.VipLimit && (i.Long ? (t.VipLimit = i.Long.fromValue(e.VipLimit)).unsigned = !1 : "string" == typeof e.VipLimit ? t.VipLimit = parseInt(e.VipLimit, 10) : "number" == typeof e.VipLimit ? t.VipLimit = e.VipLimit : "object" == typeof e.VipLimit && (t.VipLimit = new i.LongBits(e.VipLimit.low >>> 0, e.VipLimit.high >>> 0).toNumber())), e.EffectiveCondition) {
                    if (!Array.isArray(e.EffectiveCondition)) throw TypeError(".ShopItem_Config.EffectiveCondition: array expected");
                    t.EffectiveCondition = [];
                    for (var n = 0; n < e.EffectiveCondition.length; ++n) {
                        if ("object" != typeof e.EffectiveCondition[n]) throw TypeError(".ShopItem_Config.EffectiveCondition: object expected");
                        t.EffectiveCondition[n] = a.IntArray_Config.fromObject(e.EffectiveCondition[n])
                    }
                }
                if (null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), null != e.Weight && (i.Long ? (t.Weight = i.Long.fromValue(e.Weight)).unsigned = !1 : "string" == typeof e.Weight ? t.Weight = parseInt(e.Weight, 10) : "number" == typeof e.Weight ? t.Weight = e.Weight : "object" == typeof e.Weight && (t.Weight = new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber())), null != e.RequireAllianceLevel && (i.Long ? (t.RequireAllianceLevel = i.Long.fromValue(e.RequireAllianceLevel)).unsigned = !1 : "string" == typeof e.RequireAllianceLevel ? t.RequireAllianceLevel = parseInt(e.RequireAllianceLevel, 10) : "number" == typeof e.RequireAllianceLevel ? t.RequireAllianceLevel = e.RequireAllianceLevel : "object" == typeof e.RequireAllianceLevel && (t.RequireAllianceLevel = new i.LongBits(e.RequireAllianceLevel.low >>> 0, e.RequireAllianceLevel.high >>> 0).toNumber())), e.BuyLimit) {
                    if (!Array.isArray(e.BuyLimit)) throw TypeError(".ShopItem_Config.BuyLimit: array expected");
                    for (t.BuyLimit = [], n = 0; n < e.BuyLimit.length; ++n) {
                        if ("object" != typeof e.BuyLimit[n]) throw TypeError(".ShopItem_Config.BuyLimit: object expected");
                        t.BuyLimit[n] = a.IntArray_Config.fromObject(e.BuyLimit[n])
                    }
                }
                if (e.WorkCondition) {
                    if (!Array.isArray(e.WorkCondition)) throw TypeError(".ShopItem_Config.WorkCondition: array expected");
                    for (t.WorkCondition = [], n = 0; n < e.WorkCondition.length; ++n) {
                        if ("object" != typeof e.WorkCondition[n]) throw TypeError(".ShopItem_Config.WorkCondition: object expected");
                        t.WorkCondition[n] = a.IntArray_Config.fromObject(e.WorkCondition[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.EffectiveCondition = [], n.BuyLimit = [], n.WorkCondition = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.CurrencyType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CurrencyType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Price = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Price = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LimitCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LimitCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Discount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Discount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LimitCycle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LimitCycle = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.VipLimit = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.VipLimit = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Weight = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Weight = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.RequireAllianceLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RequireAllianceLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), null != e.CurrencyType && e.hasOwnProperty("CurrencyType") && ("number" == typeof e.CurrencyType ? n.CurrencyType = t.longs === String ? String(e.CurrencyType) : e.CurrencyType : n.CurrencyType = t.longs === String ? i.Long.prototype.toString.call(e.CurrencyType) : t.longs === Number ? new i.LongBits(e.CurrencyType.low >>> 0, e.CurrencyType.high >>> 0).toNumber() : e.CurrencyType), null != e.Price && e.hasOwnProperty("Price") && ("number" == typeof e.Price ? n.Price = t.longs === String ? String(e.Price) : e.Price : n.Price = t.longs === String ? i.Long.prototype.toString.call(e.Price) : t.longs === Number ? new i.LongBits(e.Price.low >>> 0, e.Price.high >>> 0).toNumber() : e.Price), null != e.LimitCount && e.hasOwnProperty("LimitCount") && ("number" == typeof e.LimitCount ? n.LimitCount = t.longs === String ? String(e.LimitCount) : e.LimitCount : n.LimitCount = t.longs === String ? i.Long.prototype.toString.call(e.LimitCount) : t.longs === Number ? new i.LongBits(e.LimitCount.low >>> 0, e.LimitCount.high >>> 0).toNumber() : e.LimitCount), null != e.Discount && e.hasOwnProperty("Discount") && ("number" == typeof e.Discount ? n.Discount = t.longs === String ? String(e.Discount) : e.Discount : n.Discount = t.longs === String ? i.Long.prototype.toString.call(e.Discount) : t.longs === Number ? new i.LongBits(e.Discount.low >>> 0, e.Discount.high >>> 0).toNumber() : e.Discount), null != e.LimitCycle && e.hasOwnProperty("LimitCycle") && ("number" == typeof e.LimitCycle ? n.LimitCycle = t.longs === String ? String(e.LimitCycle) : e.LimitCycle : n.LimitCycle = t.longs === String ? i.Long.prototype.toString.call(e.LimitCycle) : t.longs === Number ? new i.LongBits(e.LimitCycle.low >>> 0, e.LimitCycle.high >>> 0).toNumber() : e.LimitCycle), null != e.VipLimit && e.hasOwnProperty("VipLimit") && ("number" == typeof e.VipLimit ? n.VipLimit = t.longs === String ? String(e.VipLimit) : e.VipLimit : n.VipLimit = t.longs === String ? i.Long.prototype.toString.call(e.VipLimit) : t.longs === Number ? new i.LongBits(e.VipLimit.low >>> 0, e.VipLimit.high >>> 0).toNumber() : e.VipLimit), e.EffectiveCondition && e.EffectiveCondition.length) {
                    n.EffectiveCondition = [];
                    for (var r = 0; r < e.EffectiveCondition.length; ++r) n.EffectiveCondition[r] = a.IntArray_Config.toObject(e.EffectiveCondition[r], t)
                }
                if (null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), null != e.Weight && e.hasOwnProperty("Weight") && ("number" == typeof e.Weight ? n.Weight = t.longs === String ? String(e.Weight) : e.Weight : n.Weight = t.longs === String ? i.Long.prototype.toString.call(e.Weight) : t.longs === Number ? new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber() : e.Weight), null != e.RequireAllianceLevel && e.hasOwnProperty("RequireAllianceLevel") && ("number" == typeof e.RequireAllianceLevel ? n.RequireAllianceLevel = t.longs === String ? String(e.RequireAllianceLevel) : e.RequireAllianceLevel : n.RequireAllianceLevel = t.longs === String ? i.Long.prototype.toString.call(e.RequireAllianceLevel) : t.longs === Number ? new i.LongBits(e.RequireAllianceLevel.low >>> 0, e.RequireAllianceLevel.high >>> 0).toNumber() : e.RequireAllianceLevel), e.BuyLimit && e.BuyLimit.length)
                    for (n.BuyLimit = [], r = 0; r < e.BuyLimit.length; ++r) n.BuyLimit[r] = a.IntArray_Config.toObject(e.BuyLimit[r], t);
                if (e.WorkCondition && e.WorkCondition.length)
                    for (n.WorkCondition = [], r = 0; r < e.WorkCondition.length; ++r) n.WorkCondition[r] = a.IntArray_Config.toObject(e.WorkCondition[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ShopItem_Config"
            }, e
        }(), a.TreasureHuntBase_Config = function() {
            function e(e) {
                if (this.Cells = [], this.PointRewards = [], this.ExtraReward = [], this.FinalRewardChance = [], this.ShowRewardChance = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Cells = i.emptyArray, e.prototype.PointRewards = i.emptyArray, e.prototype.ExtraReward = i.emptyArray, e.prototype.PointReward = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TicketId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Draw10TicketCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FreeRefreshCD = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DiamondRefreshPrice = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NoramlRewardChance = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FinalRewardChance = i.emptyArray, e.prototype.AdvanceRewardChance = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowRewardChance = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Cells && e.Cells.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Cells.length; ++n) t.int64(e.Cells[n]);
                    t.ldelim()
                }
                if (null != e.PointRewards && e.PointRewards.length)
                    for (n = 0; n < e.PointRewards.length; ++n) a.IntArray_Config.encode(e.PointRewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.ExtraReward && e.ExtraReward.length)
                    for (n = 0; n < e.ExtraReward.length; ++n) a.IntArray_Config.encode(e.ExtraReward[n], t.uint32(34).fork()).ldelim();
                if (null != e.PointReward && Object.hasOwnProperty.call(e, "PointReward") && t.uint32(40).int64(e.PointReward), null != e.TicketId && Object.hasOwnProperty.call(e, "TicketId") && t.uint32(48).int64(e.TicketId), null != e.Draw10TicketCount && Object.hasOwnProperty.call(e, "Draw10TicketCount") && t.uint32(56).int64(e.Draw10TicketCount), null != e.FreeRefreshCD && Object.hasOwnProperty.call(e, "FreeRefreshCD") && t.uint32(64).int64(e.FreeRefreshCD), null != e.DiamondRefreshPrice && Object.hasOwnProperty.call(e, "DiamondRefreshPrice") && t.uint32(72).int64(e.DiamondRefreshPrice), null != e.NoramlRewardChance && Object.hasOwnProperty.call(e, "NoramlRewardChance") && t.uint32(80).int64(e.NoramlRewardChance), null != e.FinalRewardChance && e.FinalRewardChance.length) {
                    for (t.uint32(90).fork(), n = 0; n < e.FinalRewardChance.length; ++n) t.int64(e.FinalRewardChance[n]);
                    t.ldelim()
                }
                if (null != e.AdvanceRewardChance && Object.hasOwnProperty.call(e, "AdvanceRewardChance") && t.uint32(96).int64(e.AdvanceRewardChance), null != e.ShowRewardChance && e.ShowRewardChance.length)
                    for (n = 0; n < e.ShowRewardChance.length; ++n) a.IntArray_Config.encode(e.ShowRewardChance[n], t.uint32(106).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TreasureHuntBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Cells && r.Cells.length || (r.Cells = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Cells.push(e.int64());
                            else r.Cells.push(e.int64());
                            break;
                        case 3:
                            r.PointRewards && r.PointRewards.length || (r.PointRewards = []), r.PointRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ExtraReward && r.ExtraReward.length || (r.ExtraReward = []), r.ExtraReward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.PointReward = e.int64();
                            break;
                        case 6:
                            r.TicketId = e.int64();
                            break;
                        case 7:
                            r.Draw10TicketCount = e.int64();
                            break;
                        case 8:
                            r.FreeRefreshCD = e.int64();
                            break;
                        case 9:
                            r.DiamondRefreshPrice = e.int64();
                            break;
                        case 10:
                            r.NoramlRewardChance = e.int64();
                            break;
                        case 11:
                            if (r.FinalRewardChance && r.FinalRewardChance.length || (r.FinalRewardChance = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.FinalRewardChance.push(e.int64());
                            else r.FinalRewardChance.push(e.int64());
                            break;
                        case 12:
                            r.AdvanceRewardChance = e.int64();
                            break;
                        case 13:
                            r.ShowRewardChance && r.ShowRewardChance.length || (r.ShowRewardChance = []), r.ShowRewardChance.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Cells && e.hasOwnProperty("Cells")) {
                    if (!Array.isArray(e.Cells)) return "Cells: array expected";
                    for (var t = 0; t < e.Cells.length; ++t)
                        if (!(i.isInteger(e.Cells[t]) || e.Cells[t] && i.isInteger(e.Cells[t].low) && i.isInteger(e.Cells[t].high))) return "Cells: integer|Long[] expected"
                }
                if (null != e.PointRewards && e.hasOwnProperty("PointRewards")) {
                    if (!Array.isArray(e.PointRewards)) return "PointRewards: array expected";
                    for (t = 0; t < e.PointRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PointRewards[t])) return "PointRewards." + n
                }
                if (null != e.ExtraReward && e.hasOwnProperty("ExtraReward")) {
                    if (!Array.isArray(e.ExtraReward)) return "ExtraReward: array expected";
                    for (t = 0; t < e.ExtraReward.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ExtraReward[t])) return "ExtraReward." + n
                }
                if (null != e.PointReward && e.hasOwnProperty("PointReward") && !(i.isInteger(e.PointReward) || e.PointReward && i.isInteger(e.PointReward.low) && i.isInteger(e.PointReward.high))) return "PointReward: integer|Long expected";
                if (null != e.TicketId && e.hasOwnProperty("TicketId") && !(i.isInteger(e.TicketId) || e.TicketId && i.isInteger(e.TicketId.low) && i.isInteger(e.TicketId.high))) return "TicketId: integer|Long expected";
                if (null != e.Draw10TicketCount && e.hasOwnProperty("Draw10TicketCount") && !(i.isInteger(e.Draw10TicketCount) || e.Draw10TicketCount && i.isInteger(e.Draw10TicketCount.low) && i.isInteger(e.Draw10TicketCount.high))) return "Draw10TicketCount: integer|Long expected";
                if (null != e.FreeRefreshCD && e.hasOwnProperty("FreeRefreshCD") && !(i.isInteger(e.FreeRefreshCD) || e.FreeRefreshCD && i.isInteger(e.FreeRefreshCD.low) && i.isInteger(e.FreeRefreshCD.high))) return "FreeRefreshCD: integer|Long expected";
                if (null != e.DiamondRefreshPrice && e.hasOwnProperty("DiamondRefreshPrice") && !(i.isInteger(e.DiamondRefreshPrice) || e.DiamondRefreshPrice && i.isInteger(e.DiamondRefreshPrice.low) && i.isInteger(e.DiamondRefreshPrice.high))) return "DiamondRefreshPrice: integer|Long expected";
                if (null != e.NoramlRewardChance && e.hasOwnProperty("NoramlRewardChance") && !(i.isInteger(e.NoramlRewardChance) || e.NoramlRewardChance && i.isInteger(e.NoramlRewardChance.low) && i.isInteger(e.NoramlRewardChance.high))) return "NoramlRewardChance: integer|Long expected";
                if (null != e.FinalRewardChance && e.hasOwnProperty("FinalRewardChance")) {
                    if (!Array.isArray(e.FinalRewardChance)) return "FinalRewardChance: array expected";
                    for (t = 0; t < e.FinalRewardChance.length; ++t)
                        if (!(i.isInteger(e.FinalRewardChance[t]) || e.FinalRewardChance[t] && i.isInteger(e.FinalRewardChance[t].low) && i.isInteger(e.FinalRewardChance[t].high))) return "FinalRewardChance: integer|Long[] expected"
                }
                if (null != e.AdvanceRewardChance && e.hasOwnProperty("AdvanceRewardChance") && !(i.isInteger(e.AdvanceRewardChance) || e.AdvanceRewardChance && i.isInteger(e.AdvanceRewardChance.low) && i.isInteger(e.AdvanceRewardChance.high))) return "AdvanceRewardChance: integer|Long expected";
                if (null != e.ShowRewardChance && e.hasOwnProperty("ShowRewardChance")) {
                    if (!Array.isArray(e.ShowRewardChance)) return "ShowRewardChance: array expected";
                    for (t = 0; t < e.ShowRewardChance.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ShowRewardChance[t])) return "ShowRewardChance." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.TreasureHuntBase_Config) return e;
                var t = new a.TreasureHuntBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Cells) {
                    if (!Array.isArray(e.Cells)) throw TypeError(".TreasureHuntBase_Config.Cells: array expected");
                    t.Cells = [];
                    for (var n = 0; n < e.Cells.length; ++n) i.Long ? (t.Cells[n] = i.Long.fromValue(e.Cells[n])).unsigned = !1 : "string" == typeof e.Cells[n] ? t.Cells[n] = parseInt(e.Cells[n], 10) : "number" == typeof e.Cells[n] ? t.Cells[n] = e.Cells[n] : "object" == typeof e.Cells[n] && (t.Cells[n] = new i.LongBits(e.Cells[n].low >>> 0, e.Cells[n].high >>> 0).toNumber())
                }
                if (e.PointRewards) {
                    if (!Array.isArray(e.PointRewards)) throw TypeError(".TreasureHuntBase_Config.PointRewards: array expected");
                    for (t.PointRewards = [], n = 0; n < e.PointRewards.length; ++n) {
                        if ("object" != typeof e.PointRewards[n]) throw TypeError(".TreasureHuntBase_Config.PointRewards: object expected");
                        t.PointRewards[n] = a.IntArray_Config.fromObject(e.PointRewards[n])
                    }
                }
                if (e.ExtraReward) {
                    if (!Array.isArray(e.ExtraReward)) throw TypeError(".TreasureHuntBase_Config.ExtraReward: array expected");
                    for (t.ExtraReward = [], n = 0; n < e.ExtraReward.length; ++n) {
                        if ("object" != typeof e.ExtraReward[n]) throw TypeError(".TreasureHuntBase_Config.ExtraReward: object expected");
                        t.ExtraReward[n] = a.IntArray_Config.fromObject(e.ExtraReward[n])
                    }
                }
                if (null != e.PointReward && (i.Long ? (t.PointReward = i.Long.fromValue(e.PointReward)).unsigned = !1 : "string" == typeof e.PointReward ? t.PointReward = parseInt(e.PointReward, 10) : "number" == typeof e.PointReward ? t.PointReward = e.PointReward : "object" == typeof e.PointReward && (t.PointReward = new i.LongBits(e.PointReward.low >>> 0, e.PointReward.high >>> 0).toNumber())), null != e.TicketId && (i.Long ? (t.TicketId = i.Long.fromValue(e.TicketId)).unsigned = !1 : "string" == typeof e.TicketId ? t.TicketId = parseInt(e.TicketId, 10) : "number" == typeof e.TicketId ? t.TicketId = e.TicketId : "object" == typeof e.TicketId && (t.TicketId = new i.LongBits(e.TicketId.low >>> 0, e.TicketId.high >>> 0).toNumber())), null != e.Draw10TicketCount && (i.Long ? (t.Draw10TicketCount = i.Long.fromValue(e.Draw10TicketCount)).unsigned = !1 : "string" == typeof e.Draw10TicketCount ? t.Draw10TicketCount = parseInt(e.Draw10TicketCount, 10) : "number" == typeof e.Draw10TicketCount ? t.Draw10TicketCount = e.Draw10TicketCount : "object" == typeof e.Draw10TicketCount && (t.Draw10TicketCount = new i.LongBits(e.Draw10TicketCount.low >>> 0, e.Draw10TicketCount.high >>> 0).toNumber())), null != e.FreeRefreshCD && (i.Long ? (t.FreeRefreshCD = i.Long.fromValue(e.FreeRefreshCD)).unsigned = !1 : "string" == typeof e.FreeRefreshCD ? t.FreeRefreshCD = parseInt(e.FreeRefreshCD, 10) : "number" == typeof e.FreeRefreshCD ? t.FreeRefreshCD = e.FreeRefreshCD : "object" == typeof e.FreeRefreshCD && (t.FreeRefreshCD = new i.LongBits(e.FreeRefreshCD.low >>> 0, e.FreeRefreshCD.high >>> 0).toNumber())), null != e.DiamondRefreshPrice && (i.Long ? (t.DiamondRefreshPrice = i.Long.fromValue(e.DiamondRefreshPrice)).unsigned = !1 : "string" == typeof e.DiamondRefreshPrice ? t.DiamondRefreshPrice = parseInt(e.DiamondRefreshPrice, 10) : "number" == typeof e.DiamondRefreshPrice ? t.DiamondRefreshPrice = e.DiamondRefreshPrice : "object" == typeof e.DiamondRefreshPrice && (t.DiamondRefreshPrice = new i.LongBits(e.DiamondRefreshPrice.low >>> 0, e.DiamondRefreshPrice.high >>> 0).toNumber())), null != e.NoramlRewardChance && (i.Long ? (t.NoramlRewardChance = i.Long.fromValue(e.NoramlRewardChance)).unsigned = !1 : "string" == typeof e.NoramlRewardChance ? t.NoramlRewardChance = parseInt(e.NoramlRewardChance, 10) : "number" == typeof e.NoramlRewardChance ? t.NoramlRewardChance = e.NoramlRewardChance : "object" == typeof e.NoramlRewardChance && (t.NoramlRewardChance = new i.LongBits(e.NoramlRewardChance.low >>> 0, e.NoramlRewardChance.high >>> 0).toNumber())), e.FinalRewardChance) {
                    if (!Array.isArray(e.FinalRewardChance)) throw TypeError(".TreasureHuntBase_Config.FinalRewardChance: array expected");
                    for (t.FinalRewardChance = [], n = 0; n < e.FinalRewardChance.length; ++n) i.Long ? (t.FinalRewardChance[n] = i.Long.fromValue(e.FinalRewardChance[n])).unsigned = !1 : "string" == typeof e.FinalRewardChance[n] ? t.FinalRewardChance[n] = parseInt(e.FinalRewardChance[n], 10) : "number" == typeof e.FinalRewardChance[n] ? t.FinalRewardChance[n] = e.FinalRewardChance[n] : "object" == typeof e.FinalRewardChance[n] && (t.FinalRewardChance[n] = new i.LongBits(e.FinalRewardChance[n].low >>> 0, e.FinalRewardChance[n].high >>> 0).toNumber())
                }
                if (null != e.AdvanceRewardChance && (i.Long ? (t.AdvanceRewardChance = i.Long.fromValue(e.AdvanceRewardChance)).unsigned = !1 : "string" == typeof e.AdvanceRewardChance ? t.AdvanceRewardChance = parseInt(e.AdvanceRewardChance, 10) : "number" == typeof e.AdvanceRewardChance ? t.AdvanceRewardChance = e.AdvanceRewardChance : "object" == typeof e.AdvanceRewardChance && (t.AdvanceRewardChance = new i.LongBits(e.AdvanceRewardChance.low >>> 0, e.AdvanceRewardChance.high >>> 0).toNumber())), e.ShowRewardChance) {
                    if (!Array.isArray(e.ShowRewardChance)) throw TypeError(".TreasureHuntBase_Config.ShowRewardChance: array expected");
                    for (t.ShowRewardChance = [], n = 0; n < e.ShowRewardChance.length; ++n) {
                        if ("object" != typeof e.ShowRewardChance[n]) throw TypeError(".TreasureHuntBase_Config.ShowRewardChance: object expected");
                        t.ShowRewardChance[n] = a.IntArray_Config.fromObject(e.ShowRewardChance[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Cells = [], n.PointRewards = [], n.ExtraReward = [], n.FinalRewardChance = [], n.ShowRewardChance = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.PointReward = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PointReward = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TicketId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TicketId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Draw10TicketCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Draw10TicketCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.FreeRefreshCD = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.FreeRefreshCD = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DiamondRefreshPrice = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DiamondRefreshPrice = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NoramlRewardChance = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NoramlRewardChance = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AdvanceRewardChance = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AdvanceRewardChance = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Cells && e.Cells.length) {
                    n.Cells = [];
                    for (var r = 0; r < e.Cells.length; ++r) "number" == typeof e.Cells[r] ? n.Cells[r] = t.longs === String ? String(e.Cells[r]) : e.Cells[r] : n.Cells[r] = t.longs === String ? i.Long.prototype.toString.call(e.Cells[r]) : t.longs === Number ? new i.LongBits(e.Cells[r].low >>> 0, e.Cells[r].high >>> 0).toNumber() : e.Cells[r]
                }
                if (e.PointRewards && e.PointRewards.length)
                    for (n.PointRewards = [], r = 0; r < e.PointRewards.length; ++r) n.PointRewards[r] = a.IntArray_Config.toObject(e.PointRewards[r], t);
                if (e.ExtraReward && e.ExtraReward.length)
                    for (n.ExtraReward = [], r = 0; r < e.ExtraReward.length; ++r) n.ExtraReward[r] = a.IntArray_Config.toObject(e.ExtraReward[r], t);
                if (null != e.PointReward && e.hasOwnProperty("PointReward") && ("number" == typeof e.PointReward ? n.PointReward = t.longs === String ? String(e.PointReward) : e.PointReward : n.PointReward = t.longs === String ? i.Long.prototype.toString.call(e.PointReward) : t.longs === Number ? new i.LongBits(e.PointReward.low >>> 0, e.PointReward.high >>> 0).toNumber() : e.PointReward), null != e.TicketId && e.hasOwnProperty("TicketId") && ("number" == typeof e.TicketId ? n.TicketId = t.longs === String ? String(e.TicketId) : e.TicketId : n.TicketId = t.longs === String ? i.Long.prototype.toString.call(e.TicketId) : t.longs === Number ? new i.LongBits(e.TicketId.low >>> 0, e.TicketId.high >>> 0).toNumber() : e.TicketId), null != e.Draw10TicketCount && e.hasOwnProperty("Draw10TicketCount") && ("number" == typeof e.Draw10TicketCount ? n.Draw10TicketCount = t.longs === String ? String(e.Draw10TicketCount) : e.Draw10TicketCount : n.Draw10TicketCount = t.longs === String ? i.Long.prototype.toString.call(e.Draw10TicketCount) : t.longs === Number ? new i.LongBits(e.Draw10TicketCount.low >>> 0, e.Draw10TicketCount.high >>> 0).toNumber() : e.Draw10TicketCount), null != e.FreeRefreshCD && e.hasOwnProperty("FreeRefreshCD") && ("number" == typeof e.FreeRefreshCD ? n.FreeRefreshCD = t.longs === String ? String(e.FreeRefreshCD) : e.FreeRefreshCD : n.FreeRefreshCD = t.longs === String ? i.Long.prototype.toString.call(e.FreeRefreshCD) : t.longs === Number ? new i.LongBits(e.FreeRefreshCD.low >>> 0, e.FreeRefreshCD.high >>> 0).toNumber() : e.FreeRefreshCD), null != e.DiamondRefreshPrice && e.hasOwnProperty("DiamondRefreshPrice") && ("number" == typeof e.DiamondRefreshPrice ? n.DiamondRefreshPrice = t.longs === String ? String(e.DiamondRefreshPrice) : e.DiamondRefreshPrice : n.DiamondRefreshPrice = t.longs === String ? i.Long.prototype.toString.call(e.DiamondRefreshPrice) : t.longs === Number ? new i.LongBits(e.DiamondRefreshPrice.low >>> 0, e.DiamondRefreshPrice.high >>> 0).toNumber() : e.DiamondRefreshPrice), null != e.NoramlRewardChance && e.hasOwnProperty("NoramlRewardChance") && ("number" == typeof e.NoramlRewardChance ? n.NoramlRewardChance = t.longs === String ? String(e.NoramlRewardChance) : e.NoramlRewardChance : n.NoramlRewardChance = t.longs === String ? i.Long.prototype.toString.call(e.NoramlRewardChance) : t.longs === Number ? new i.LongBits(e.NoramlRewardChance.low >>> 0, e.NoramlRewardChance.high >>> 0).toNumber() : e.NoramlRewardChance), e.FinalRewardChance && e.FinalRewardChance.length)
                    for (n.FinalRewardChance = [], r = 0; r < e.FinalRewardChance.length; ++r) "number" == typeof e.FinalRewardChance[r] ? n.FinalRewardChance[r] = t.longs === String ? String(e.FinalRewardChance[r]) : e.FinalRewardChance[r] : n.FinalRewardChance[r] = t.longs === String ? i.Long.prototype.toString.call(e.FinalRewardChance[r]) : t.longs === Number ? new i.LongBits(e.FinalRewardChance[r].low >>> 0, e.FinalRewardChance[r].high >>> 0).toNumber() : e.FinalRewardChance[r];
                if (null != e.AdvanceRewardChance && e.hasOwnProperty("AdvanceRewardChance") && ("number" == typeof e.AdvanceRewardChance ? n.AdvanceRewardChance = t.longs === String ? String(e.AdvanceRewardChance) : e.AdvanceRewardChance : n.AdvanceRewardChance = t.longs === String ? i.Long.prototype.toString.call(e.AdvanceRewardChance) : t.longs === Number ? new i.LongBits(e.AdvanceRewardChance.low >>> 0, e.AdvanceRewardChance.high >>> 0).toNumber() : e.AdvanceRewardChance), e.ShowRewardChance && e.ShowRewardChance.length)
                    for (n.ShowRewardChance = [], r = 0; r < e.ShowRewardChance.length; ++r) n.ShowRewardChance[r] = a.IntArray_Config.toObject(e.ShowRewardChance[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TreasureHuntBase_Config"
            }, e
        }(), a.TreasureHuntCell_Config = function() {
            function e(e) {
                if (this.RandomLib = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RewardType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RandomLib = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.RewardType && Object.hasOwnProperty.call(e, "RewardType") && t.uint32(16).int64(e.RewardType), null != e.RandomLib && e.RandomLib.length)
                    for (var n = 0; n < e.RandomLib.length; ++n) a.IntArray_Config.encode(e.RandomLib[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TreasureHuntCell_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.RewardType = e.int64();
                            break;
                        case 4:
                            r.RandomLib && r.RandomLib.length || (r.RandomLib = []), r.RandomLib.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.RewardType && e.hasOwnProperty("RewardType") && !(i.isInteger(e.RewardType) || e.RewardType && i.isInteger(e.RewardType.low) && i.isInteger(e.RewardType.high))) return "RewardType: integer|Long expected";
                if (null != e.RandomLib && e.hasOwnProperty("RandomLib")) {
                    if (!Array.isArray(e.RandomLib)) return "RandomLib: array expected";
                    for (var t = 0; t < e.RandomLib.length; ++t) {
                        var n = a.IntArray_Config.verify(e.RandomLib[t]);
                        if (n) return "RandomLib." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.TreasureHuntCell_Config) return e;
                var t = new a.TreasureHuntCell_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.RewardType && (i.Long ? (t.RewardType = i.Long.fromValue(e.RewardType)).unsigned = !1 : "string" == typeof e.RewardType ? t.RewardType = parseInt(e.RewardType, 10) : "number" == typeof e.RewardType ? t.RewardType = e.RewardType : "object" == typeof e.RewardType && (t.RewardType = new i.LongBits(e.RewardType.low >>> 0, e.RewardType.high >>> 0).toNumber())), e.RandomLib) {
                    if (!Array.isArray(e.RandomLib)) throw TypeError(".TreasureHuntCell_Config.RandomLib: array expected");
                    t.RandomLib = [];
                    for (var n = 0; n < e.RandomLib.length; ++n) {
                        if ("object" != typeof e.RandomLib[n]) throw TypeError(".TreasureHuntCell_Config.RandomLib: object expected");
                        t.RandomLib[n] = a.IntArray_Config.fromObject(e.RandomLib[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.RandomLib = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.RewardType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RewardType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.RewardType && e.hasOwnProperty("RewardType") && ("number" == typeof e.RewardType ? n.RewardType = t.longs === String ? String(e.RewardType) : e.RewardType : n.RewardType = t.longs === String ? i.Long.prototype.toString.call(e.RewardType) : t.longs === Number ? new i.LongBits(e.RewardType.low >>> 0, e.RewardType.high >>> 0).toNumber() : e.RewardType), e.RandomLib && e.RandomLib.length) {
                    n.RandomLib = [];
                    for (var r = 0; r < e.RandomLib.length; ++r) n.RandomLib[r] = a.IntArray_Config.toObject(e.RandomLib[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TreasureHuntCell_Config"
            }, e
        }(), a.HeroStar_Config = function() {
            function e(e) {
                if (this.HeroMaterials = [], this.ItemMaterials = [], this.DecomposeItems = [], this.UnLockStarLimit = [], this.ChaosHeroMaterials = [], this.ChaosExtraAddon = [], this.LRAttrs = [], this.URAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroMaterials = i.emptyArray, e.prototype.ItemMaterials = i.emptyArray, e.prototype.AttackAddon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HpAddon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DecomposeItems = i.emptyArray, e.prototype.DisplaceHeroCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DisplaceItemCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnLockStarLimit = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ChaosHeroMaterials = i.emptyArray, e.prototype.ChaosExtraAddon = i.emptyArray, e.prototype.LRAttrs = i.emptyArray, e.prototype.URAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MaxLevel && Object.hasOwnProperty.call(e, "MaxLevel") && t.uint32(16).int64(e.MaxLevel), null != e.HeroMaterials && e.HeroMaterials.length)
                    for (var n = 0; n < e.HeroMaterials.length; ++n) a.IntArray_Config.encode(e.HeroMaterials[n], t.uint32(26).fork()).ldelim();
                if (null != e.ItemMaterials && e.ItemMaterials.length)
                    for (n = 0; n < e.ItemMaterials.length; ++n) a.IntArray_Config.encode(e.ItemMaterials[n], t.uint32(34).fork()).ldelim();
                if (null != e.AttackAddon && Object.hasOwnProperty.call(e, "AttackAddon") && t.uint32(40).int64(e.AttackAddon), null != e.HpAddon && Object.hasOwnProperty.call(e, "HpAddon") && t.uint32(48).int64(e.HpAddon), null != e.DecomposeItems && e.DecomposeItems.length)
                    for (n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(74).fork()).ldelim();
                if (null != e.DisplaceHeroCount && Object.hasOwnProperty.call(e, "DisplaceHeroCount") && t.uint32(80).int64(e.DisplaceHeroCount), null != e.DisplaceItemCount && Object.hasOwnProperty.call(e, "DisplaceItemCount") && t.uint32(96).int64(e.DisplaceItemCount), null != e.UnLockStarLimit && e.UnLockStarLimit.length)
                    for (n = 0; n < e.UnLockStarLimit.length; ++n) a.IntArray_Config.encode(e.UnLockStarLimit[n], t.uint32(106).fork()).ldelim();
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(112).int64(e.Score), null != e.ChaosHeroMaterials && e.ChaosHeroMaterials.length)
                    for (n = 0; n < e.ChaosHeroMaterials.length; ++n) a.IntArray_Config.encode(e.ChaosHeroMaterials[n], t.uint32(122).fork()).ldelim();
                if (null != e.ChaosExtraAddon && e.ChaosExtraAddon.length)
                    for (n = 0; n < e.ChaosExtraAddon.length; ++n) a.IntArray_Config.encode(e.ChaosExtraAddon[n], t.uint32(130).fork()).ldelim();
                if (null != e.LRAttrs && e.LRAttrs.length) {
                    for (t.uint32(154).fork(), n = 0; n < e.LRAttrs.length; ++n) t.int64(e.LRAttrs[n]);
                    t.ldelim()
                }
                if (null != e.URAttrs && e.URAttrs.length) {
                    for (t.uint32(162).fork(), n = 0; n < e.URAttrs.length; ++n) t.int64(e.URAttrs[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.MaxLevel = e.int64();
                            break;
                        case 3:
                            r.HeroMaterials && r.HeroMaterials.length || (r.HeroMaterials = []), r.HeroMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ItemMaterials && r.ItemMaterials.length || (r.ItemMaterials = []), r.ItemMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.AttackAddon = e.int64();
                            break;
                        case 6:
                            r.HpAddon = e.int64();
                            break;
                        case 9:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.DisplaceHeroCount = e.int64();
                            break;
                        case 12:
                            r.DisplaceItemCount = e.int64();
                            break;
                        case 13:
                            r.UnLockStarLimit && r.UnLockStarLimit.length || (r.UnLockStarLimit = []), r.UnLockStarLimit.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 14:
                            r.Score = e.int64();
                            break;
                        case 15:
                            r.ChaosHeroMaterials && r.ChaosHeroMaterials.length || (r.ChaosHeroMaterials = []), r.ChaosHeroMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 16:
                            r.ChaosExtraAddon && r.ChaosExtraAddon.length || (r.ChaosExtraAddon = []), r.ChaosExtraAddon.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 19:
                            if (r.LRAttrs && r.LRAttrs.length || (r.LRAttrs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.LRAttrs.push(e.int64());
                            else r.LRAttrs.push(e.int64());
                            break;
                        case 20:
                            if (r.URAttrs && r.URAttrs.length || (r.URAttrs = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.URAttrs.push(e.int64());
                            else r.URAttrs.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && !(i.isInteger(e.MaxLevel) || e.MaxLevel && i.isInteger(e.MaxLevel.low) && i.isInteger(e.MaxLevel.high))) return "MaxLevel: integer|Long expected";
                if (null != e.HeroMaterials && e.hasOwnProperty("HeroMaterials")) {
                    if (!Array.isArray(e.HeroMaterials)) return "HeroMaterials: array expected";
                    for (var t = 0; t < e.HeroMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.HeroMaterials[t])) return "HeroMaterials." + n
                }
                if (null != e.ItemMaterials && e.hasOwnProperty("ItemMaterials")) {
                    if (!Array.isArray(e.ItemMaterials)) return "ItemMaterials: array expected";
                    for (t = 0; t < e.ItemMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ItemMaterials[t])) return "ItemMaterials." + n
                }
                if (null != e.AttackAddon && e.hasOwnProperty("AttackAddon") && !(i.isInteger(e.AttackAddon) || e.AttackAddon && i.isInteger(e.AttackAddon.low) && i.isInteger(e.AttackAddon.high))) return "AttackAddon: integer|Long expected";
                if (null != e.HpAddon && e.hasOwnProperty("HpAddon") && !(i.isInteger(e.HpAddon) || e.HpAddon && i.isInteger(e.HpAddon.low) && i.isInteger(e.HpAddon.high))) return "HpAddon: integer|Long expected";
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (t = 0; t < e.DecomposeItems.length; ++t)
                        if (n = a.IntArray_Config.verify(e.DecomposeItems[t])) return "DecomposeItems." + n
                }
                if (null != e.DisplaceHeroCount && e.hasOwnProperty("DisplaceHeroCount") && !(i.isInteger(e.DisplaceHeroCount) || e.DisplaceHeroCount && i.isInteger(e.DisplaceHeroCount.low) && i.isInteger(e.DisplaceHeroCount.high))) return "DisplaceHeroCount: integer|Long expected";
                if (null != e.DisplaceItemCount && e.hasOwnProperty("DisplaceItemCount") && !(i.isInteger(e.DisplaceItemCount) || e.DisplaceItemCount && i.isInteger(e.DisplaceItemCount.low) && i.isInteger(e.DisplaceItemCount.high))) return "DisplaceItemCount: integer|Long expected";
                if (null != e.UnLockStarLimit && e.hasOwnProperty("UnLockStarLimit")) {
                    if (!Array.isArray(e.UnLockStarLimit)) return "UnLockStarLimit: array expected";
                    for (t = 0; t < e.UnLockStarLimit.length; ++t)
                        if (n = a.IntArray_Config.verify(e.UnLockStarLimit[t])) return "UnLockStarLimit." + n
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.ChaosHeroMaterials && e.hasOwnProperty("ChaosHeroMaterials")) {
                    if (!Array.isArray(e.ChaosHeroMaterials)) return "ChaosHeroMaterials: array expected";
                    for (t = 0; t < e.ChaosHeroMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ChaosHeroMaterials[t])) return "ChaosHeroMaterials." + n
                }
                if (null != e.ChaosExtraAddon && e.hasOwnProperty("ChaosExtraAddon")) {
                    if (!Array.isArray(e.ChaosExtraAddon)) return "ChaosExtraAddon: array expected";
                    for (t = 0; t < e.ChaosExtraAddon.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ChaosExtraAddon[t])) return "ChaosExtraAddon." + n
                    }
                }
                if (null != e.LRAttrs && e.hasOwnProperty("LRAttrs")) {
                    if (!Array.isArray(e.LRAttrs)) return "LRAttrs: array expected";
                    for (t = 0; t < e.LRAttrs.length; ++t)
                        if (!(i.isInteger(e.LRAttrs[t]) || e.LRAttrs[t] && i.isInteger(e.LRAttrs[t].low) && i.isInteger(e.LRAttrs[t].high))) return "LRAttrs: integer|Long[] expected"
                }
                if (null != e.URAttrs && e.hasOwnProperty("URAttrs")) {
                    if (!Array.isArray(e.URAttrs)) return "URAttrs: array expected";
                    for (t = 0; t < e.URAttrs.length; ++t)
                        if (!(i.isInteger(e.URAttrs[t]) || e.URAttrs[t] && i.isInteger(e.URAttrs[t].low) && i.isInteger(e.URAttrs[t].high))) return "URAttrs: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroStar_Config) return e;
                var t = new a.HeroStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.MaxLevel && (i.Long ? (t.MaxLevel = i.Long.fromValue(e.MaxLevel)).unsigned = !1 : "string" == typeof e.MaxLevel ? t.MaxLevel = parseInt(e.MaxLevel, 10) : "number" == typeof e.MaxLevel ? t.MaxLevel = e.MaxLevel : "object" == typeof e.MaxLevel && (t.MaxLevel = new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber())), e.HeroMaterials) {
                    if (!Array.isArray(e.HeroMaterials)) throw TypeError(".HeroStar_Config.HeroMaterials: array expected");
                    t.HeroMaterials = [];
                    for (var n = 0; n < e.HeroMaterials.length; ++n) {
                        if ("object" != typeof e.HeroMaterials[n]) throw TypeError(".HeroStar_Config.HeroMaterials: object expected");
                        t.HeroMaterials[n] = a.IntArray_Config.fromObject(e.HeroMaterials[n])
                    }
                }
                if (e.ItemMaterials) {
                    if (!Array.isArray(e.ItemMaterials)) throw TypeError(".HeroStar_Config.ItemMaterials: array expected");
                    for (t.ItemMaterials = [], n = 0; n < e.ItemMaterials.length; ++n) {
                        if ("object" != typeof e.ItemMaterials[n]) throw TypeError(".HeroStar_Config.ItemMaterials: object expected");
                        t.ItemMaterials[n] = a.IntArray_Config.fromObject(e.ItemMaterials[n])
                    }
                }
                if (null != e.AttackAddon && (i.Long ? (t.AttackAddon = i.Long.fromValue(e.AttackAddon)).unsigned = !1 : "string" == typeof e.AttackAddon ? t.AttackAddon = parseInt(e.AttackAddon, 10) : "number" == typeof e.AttackAddon ? t.AttackAddon = e.AttackAddon : "object" == typeof e.AttackAddon && (t.AttackAddon = new i.LongBits(e.AttackAddon.low >>> 0, e.AttackAddon.high >>> 0).toNumber())), null != e.HpAddon && (i.Long ? (t.HpAddon = i.Long.fromValue(e.HpAddon)).unsigned = !1 : "string" == typeof e.HpAddon ? t.HpAddon = parseInt(e.HpAddon, 10) : "number" == typeof e.HpAddon ? t.HpAddon = e.HpAddon : "object" == typeof e.HpAddon && (t.HpAddon = new i.LongBits(e.HpAddon.low >>> 0, e.HpAddon.high >>> 0).toNumber())), e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".HeroStar_Config.DecomposeItems: array expected");
                    for (t.DecomposeItems = [], n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".HeroStar_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                if (null != e.DisplaceHeroCount && (i.Long ? (t.DisplaceHeroCount = i.Long.fromValue(e.DisplaceHeroCount)).unsigned = !1 : "string" == typeof e.DisplaceHeroCount ? t.DisplaceHeroCount = parseInt(e.DisplaceHeroCount, 10) : "number" == typeof e.DisplaceHeroCount ? t.DisplaceHeroCount = e.DisplaceHeroCount : "object" == typeof e.DisplaceHeroCount && (t.DisplaceHeroCount = new i.LongBits(e.DisplaceHeroCount.low >>> 0, e.DisplaceHeroCount.high >>> 0).toNumber())), null != e.DisplaceItemCount && (i.Long ? (t.DisplaceItemCount = i.Long.fromValue(e.DisplaceItemCount)).unsigned = !1 : "string" == typeof e.DisplaceItemCount ? t.DisplaceItemCount = parseInt(e.DisplaceItemCount, 10) : "number" == typeof e.DisplaceItemCount ? t.DisplaceItemCount = e.DisplaceItemCount : "object" == typeof e.DisplaceItemCount && (t.DisplaceItemCount = new i.LongBits(e.DisplaceItemCount.low >>> 0, e.DisplaceItemCount.high >>> 0).toNumber())), e.UnLockStarLimit) {
                    if (!Array.isArray(e.UnLockStarLimit)) throw TypeError(".HeroStar_Config.UnLockStarLimit: array expected");
                    for (t.UnLockStarLimit = [], n = 0; n < e.UnLockStarLimit.length; ++n) {
                        if ("object" != typeof e.UnLockStarLimit[n]) throw TypeError(".HeroStar_Config.UnLockStarLimit: object expected");
                        t.UnLockStarLimit[n] = a.IntArray_Config.fromObject(e.UnLockStarLimit[n])
                    }
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.ChaosHeroMaterials) {
                    if (!Array.isArray(e.ChaosHeroMaterials)) throw TypeError(".HeroStar_Config.ChaosHeroMaterials: array expected");
                    for (t.ChaosHeroMaterials = [], n = 0; n < e.ChaosHeroMaterials.length; ++n) {
                        if ("object" != typeof e.ChaosHeroMaterials[n]) throw TypeError(".HeroStar_Config.ChaosHeroMaterials: object expected");
                        t.ChaosHeroMaterials[n] = a.IntArray_Config.fromObject(e.ChaosHeroMaterials[n])
                    }
                }
                if (e.ChaosExtraAddon) {
                    if (!Array.isArray(e.ChaosExtraAddon)) throw TypeError(".HeroStar_Config.ChaosExtraAddon: array expected");
                    for (t.ChaosExtraAddon = [], n = 0; n < e.ChaosExtraAddon.length; ++n) {
                        if ("object" != typeof e.ChaosExtraAddon[n]) throw TypeError(".HeroStar_Config.ChaosExtraAddon: object expected");
                        t.ChaosExtraAddon[n] = a.IntArray_Config.fromObject(e.ChaosExtraAddon[n])
                    }
                }
                if (e.LRAttrs) {
                    if (!Array.isArray(e.LRAttrs)) throw TypeError(".HeroStar_Config.LRAttrs: array expected");
                    for (t.LRAttrs = [], n = 0; n < e.LRAttrs.length; ++n) i.Long ? (t.LRAttrs[n] = i.Long.fromValue(e.LRAttrs[n])).unsigned = !1 : "string" == typeof e.LRAttrs[n] ? t.LRAttrs[n] = parseInt(e.LRAttrs[n], 10) : "number" == typeof e.LRAttrs[n] ? t.LRAttrs[n] = e.LRAttrs[n] : "object" == typeof e.LRAttrs[n] && (t.LRAttrs[n] = new i.LongBits(e.LRAttrs[n].low >>> 0, e.LRAttrs[n].high >>> 0).toNumber())
                }
                if (e.URAttrs) {
                    if (!Array.isArray(e.URAttrs)) throw TypeError(".HeroStar_Config.URAttrs: array expected");
                    for (t.URAttrs = [], n = 0; n < e.URAttrs.length; ++n) i.Long ? (t.URAttrs[n] = i.Long.fromValue(e.URAttrs[n])).unsigned = !1 : "string" == typeof e.URAttrs[n] ? t.URAttrs[n] = parseInt(e.URAttrs[n], 10) : "number" == typeof e.URAttrs[n] ? t.URAttrs[n] = e.URAttrs[n] : "object" == typeof e.URAttrs[n] && (t.URAttrs[n] = new i.LongBits(e.URAttrs[n].low >>> 0, e.URAttrs[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.HeroMaterials = [], n.ItemMaterials = [], n.DecomposeItems = [], n.UnLockStarLimit = [], n.ChaosHeroMaterials = [], n.ChaosExtraAddon = [], n.LRAttrs = [], n.URAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AttackAddon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AttackAddon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HpAddon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HpAddon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DisplaceHeroCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DisplaceHeroCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DisplaceItemCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DisplaceItemCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && ("number" == typeof e.MaxLevel ? n.MaxLevel = t.longs === String ? String(e.MaxLevel) : e.MaxLevel : n.MaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxLevel) : t.longs === Number ? new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber() : e.MaxLevel), e.HeroMaterials && e.HeroMaterials.length) {
                    n.HeroMaterials = [];
                    for (var r = 0; r < e.HeroMaterials.length; ++r) n.HeroMaterials[r] = a.IntArray_Config.toObject(e.HeroMaterials[r], t)
                }
                if (e.ItemMaterials && e.ItemMaterials.length)
                    for (n.ItemMaterials = [], r = 0; r < e.ItemMaterials.length; ++r) n.ItemMaterials[r] = a.IntArray_Config.toObject(e.ItemMaterials[r], t);
                if (null != e.AttackAddon && e.hasOwnProperty("AttackAddon") && ("number" == typeof e.AttackAddon ? n.AttackAddon = t.longs === String ? String(e.AttackAddon) : e.AttackAddon : n.AttackAddon = t.longs === String ? i.Long.prototype.toString.call(e.AttackAddon) : t.longs === Number ? new i.LongBits(e.AttackAddon.low >>> 0, e.AttackAddon.high >>> 0).toNumber() : e.AttackAddon), null != e.HpAddon && e.hasOwnProperty("HpAddon") && ("number" == typeof e.HpAddon ? n.HpAddon = t.longs === String ? String(e.HpAddon) : e.HpAddon : n.HpAddon = t.longs === String ? i.Long.prototype.toString.call(e.HpAddon) : t.longs === Number ? new i.LongBits(e.HpAddon.low >>> 0, e.HpAddon.high >>> 0).toNumber() : e.HpAddon), e.DecomposeItems && e.DecomposeItems.length)
                    for (n.DecomposeItems = [], r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t);
                if (null != e.DisplaceHeroCount && e.hasOwnProperty("DisplaceHeroCount") && ("number" == typeof e.DisplaceHeroCount ? n.DisplaceHeroCount = t.longs === String ? String(e.DisplaceHeroCount) : e.DisplaceHeroCount : n.DisplaceHeroCount = t.longs === String ? i.Long.prototype.toString.call(e.DisplaceHeroCount) : t.longs === Number ? new i.LongBits(e.DisplaceHeroCount.low >>> 0, e.DisplaceHeroCount.high >>> 0).toNumber() : e.DisplaceHeroCount), null != e.DisplaceItemCount && e.hasOwnProperty("DisplaceItemCount") && ("number" == typeof e.DisplaceItemCount ? n.DisplaceItemCount = t.longs === String ? String(e.DisplaceItemCount) : e.DisplaceItemCount : n.DisplaceItemCount = t.longs === String ? i.Long.prototype.toString.call(e.DisplaceItemCount) : t.longs === Number ? new i.LongBits(e.DisplaceItemCount.low >>> 0, e.DisplaceItemCount.high >>> 0).toNumber() : e.DisplaceItemCount), e.UnLockStarLimit && e.UnLockStarLimit.length)
                    for (n.UnLockStarLimit = [], r = 0; r < e.UnLockStarLimit.length; ++r) n.UnLockStarLimit[r] = a.IntArray_Config.toObject(e.UnLockStarLimit[r], t);
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.ChaosHeroMaterials && e.ChaosHeroMaterials.length)
                    for (n.ChaosHeroMaterials = [], r = 0; r < e.ChaosHeroMaterials.length; ++r) n.ChaosHeroMaterials[r] = a.IntArray_Config.toObject(e.ChaosHeroMaterials[r], t);
                if (e.ChaosExtraAddon && e.ChaosExtraAddon.length)
                    for (n.ChaosExtraAddon = [], r = 0; r < e.ChaosExtraAddon.length; ++r) n.ChaosExtraAddon[r] = a.IntArray_Config.toObject(e.ChaosExtraAddon[r], t);
                if (e.LRAttrs && e.LRAttrs.length)
                    for (n.LRAttrs = [], r = 0; r < e.LRAttrs.length; ++r) "number" == typeof e.LRAttrs[r] ? n.LRAttrs[r] = t.longs === String ? String(e.LRAttrs[r]) : e.LRAttrs[r] : n.LRAttrs[r] = t.longs === String ? i.Long.prototype.toString.call(e.LRAttrs[r]) : t.longs === Number ? new i.LongBits(e.LRAttrs[r].low >>> 0, e.LRAttrs[r].high >>> 0).toNumber() : e.LRAttrs[r];
                if (e.URAttrs && e.URAttrs.length)
                    for (n.URAttrs = [], r = 0; r < e.URAttrs.length; ++r) "number" == typeof e.URAttrs[r] ? n.URAttrs[r] = t.longs === String ? String(e.URAttrs[r]) : e.URAttrs[r] : n.URAttrs[r] = t.longs === String ? i.Long.prototype.toString.call(e.URAttrs[r]) : t.longs === Number ? new i.LongBits(e.URAttrs[r].low >>> 0, e.URAttrs[r].high >>> 0).toNumber() : e.URAttrs[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroStar_Config"
            }, e
        }(), a.HeroLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Stage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return null != e.Stage && Object.hasOwnProperty.call(e, "Stage") && t.uint32(24).int64(e.Stage), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(56).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Stage = e.int64();
                            break;
                        case 7:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null != e.Stage && e.hasOwnProperty("Stage") && !(i.isInteger(e.Stage) || e.Stage && i.isInteger(e.Stage.low) && i.isInteger(e.Stage.high)) ? "Stage: integer|Long expected" : null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroLevel_Config) return e;
                var t = new a.HeroLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".HeroLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".HeroLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return null != e.Stage && (i.Long ? (t.Stage = i.Long.fromValue(e.Stage)).unsigned = !1 : "string" == typeof e.Stage ? t.Stage = parseInt(e.Stage, 10) : "number" == typeof e.Stage ? t.Stage = e.Stage : "object" == typeof e.Stage && (t.Stage = new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Stage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Stage = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return null != e.Stage && e.hasOwnProperty("Stage") && ("number" == typeof e.Stage ? n.Stage = t.longs === String ? String(e.Stage) : e.Stage : n.Stage = t.longs === String ? i.Long.prototype.toString.call(e.Stage) : t.longs === Number ? new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber() : e.Stage), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroLevel_Config"
            }, e
        }(), a.BuffBase_Config = function() {
            function e(e) {
                if (this.Tags = [], this.StartEffect = [], this.StartWorkCondition = [], this.TriggerCondition = [], this.TriggerEffect = [], this.Params = [], this.TriggerWorkCondition = [], this.ShowEffectName = [], this.Params2D = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DescriptionId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Tags = i.emptyArray, e.prototype.StartEffect = i.emptyArray, e.prototype.Round = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StartWorkCondition = i.emptyArray, e.prototype.StartWorkChance = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TriggerCondition = i.emptyArray, e.prototype.TriggerEffect = i.emptyArray, e.prototype.Params = i.emptyArray, e.prototype.TriggerWorkCondition = i.emptyArray, e.prototype.Icon = "", e.prototype.ShowEffectName = i.emptyArray, e.prototype.Params2D = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.DescriptionId && Object.hasOwnProperty.call(e, "DescriptionId") && t.uint32(24).int64(e.DescriptionId), null != e.Tags && e.Tags.length) {
                    t.uint32(42).fork();
                    for (var n = 0; n < e.Tags.length; ++n) t.int64(e.Tags[n]);
                    t.ldelim()
                }
                if (null != e.StartEffect && e.StartEffect.length)
                    for (n = 0; n < e.StartEffect.length; ++n) a.IntArray_Config.encode(e.StartEffect[n], t.uint32(50).fork()).ldelim();
                if (null != e.Round && Object.hasOwnProperty.call(e, "Round") && t.uint32(56).int64(e.Round), null != e.MaxCount && Object.hasOwnProperty.call(e, "MaxCount") && t.uint32(72).int64(e.MaxCount), null != e.StartWorkCondition && e.StartWorkCondition.length)
                    for (n = 0; n < e.StartWorkCondition.length; ++n) a.IntArray_Config.encode(e.StartWorkCondition[n], t.uint32(82).fork()).ldelim();
                if (null != e.StartWorkChance && Object.hasOwnProperty.call(e, "StartWorkChance") && t.uint32(88).int64(e.StartWorkChance), null != e.TriggerCondition && e.TriggerCondition.length)
                    for (n = 0; n < e.TriggerCondition.length; ++n) a.IntArray_Config.encode(e.TriggerCondition[n], t.uint32(98).fork()).ldelim();
                if (null != e.TriggerEffect && e.TriggerEffect.length)
                    for (n = 0; n < e.TriggerEffect.length; ++n) a.IntArray_Config.encode(e.TriggerEffect[n], t.uint32(122).fork()).ldelim();
                if (null != e.Params && e.Params.length) {
                    for (t.uint32(154).fork(), n = 0; n < e.Params.length; ++n) t.int64(e.Params[n]);
                    t.ldelim()
                }
                if (null != e.TriggerWorkCondition && e.TriggerWorkCondition.length)
                    for (n = 0; n < e.TriggerWorkCondition.length; ++n) a.IntArray_Config.encode(e.TriggerWorkCondition[n], t.uint32(162).fork()).ldelim();
                if (null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(170).string(e.Icon), null != e.ShowEffectName && e.ShowEffectName.length) {
                    for (t.uint32(178).fork(), n = 0; n < e.ShowEffectName.length; ++n) t.int64(e.ShowEffectName[n]);
                    t.ldelim()
                }
                if (null != e.Params2D && e.Params2D.length)
                    for (n = 0; n < e.Params2D.length; ++n) a.IntArray_Config.encode(e.Params2D[n], t.uint32(202).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.BuffBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.DescriptionId = e.int64();
                            break;
                        case 5:
                            if (r.Tags && r.Tags.length || (r.Tags = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Tags.push(e.int64());
                            else r.Tags.push(e.int64());
                            break;
                        case 6:
                            r.StartEffect && r.StartEffect.length || (r.StartEffect = []), r.StartEffect.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Round = e.int64();
                            break;
                        case 9:
                            r.MaxCount = e.int64();
                            break;
                        case 10:
                            r.StartWorkCondition && r.StartWorkCondition.length || (r.StartWorkCondition = []), r.StartWorkCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 11:
                            r.StartWorkChance = e.int64();
                            break;
                        case 12:
                            r.TriggerCondition && r.TriggerCondition.length || (r.TriggerCondition = []), r.TriggerCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 15:
                            r.TriggerEffect && r.TriggerEffect.length || (r.TriggerEffect = []), r.TriggerEffect.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 19:
                            if (r.Params && r.Params.length || (r.Params = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Params.push(e.int64());
                            else r.Params.push(e.int64());
                            break;
                        case 20:
                            r.TriggerWorkCondition && r.TriggerWorkCondition.length || (r.TriggerWorkCondition = []), r.TriggerWorkCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 21:
                            r.Icon = e.string();
                            break;
                        case 22:
                            if (r.ShowEffectName && r.ShowEffectName.length || (r.ShowEffectName = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ShowEffectName.push(e.int64());
                            else r.ShowEffectName.push(e.int64());
                            break;
                        case 25:
                            r.Params2D && r.Params2D.length || (r.Params2D = []), r.Params2D.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.DescriptionId && e.hasOwnProperty("DescriptionId") && !(i.isInteger(e.DescriptionId) || e.DescriptionId && i.isInteger(e.DescriptionId.low) && i.isInteger(e.DescriptionId.high))) return "DescriptionId: integer|Long expected";
                if (null != e.Tags && e.hasOwnProperty("Tags")) {
                    if (!Array.isArray(e.Tags)) return "Tags: array expected";
                    for (var t = 0; t < e.Tags.length; ++t)
                        if (!(i.isInteger(e.Tags[t]) || e.Tags[t] && i.isInteger(e.Tags[t].low) && i.isInteger(e.Tags[t].high))) return "Tags: integer|Long[] expected"
                }
                if (null != e.StartEffect && e.hasOwnProperty("StartEffect")) {
                    if (!Array.isArray(e.StartEffect)) return "StartEffect: array expected";
                    for (t = 0; t < e.StartEffect.length; ++t)
                        if (n = a.IntArray_Config.verify(e.StartEffect[t])) return "StartEffect." + n
                }
                if (null != e.Round && e.hasOwnProperty("Round") && !(i.isInteger(e.Round) || e.Round && i.isInteger(e.Round.low) && i.isInteger(e.Round.high))) return "Round: integer|Long expected";
                if (null != e.MaxCount && e.hasOwnProperty("MaxCount") && !(i.isInteger(e.MaxCount) || e.MaxCount && i.isInteger(e.MaxCount.low) && i.isInteger(e.MaxCount.high))) return "MaxCount: integer|Long expected";
                if (null != e.StartWorkCondition && e.hasOwnProperty("StartWorkCondition")) {
                    if (!Array.isArray(e.StartWorkCondition)) return "StartWorkCondition: array expected";
                    for (t = 0; t < e.StartWorkCondition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.StartWorkCondition[t])) return "StartWorkCondition." + n
                }
                if (null != e.StartWorkChance && e.hasOwnProperty("StartWorkChance") && !(i.isInteger(e.StartWorkChance) || e.StartWorkChance && i.isInteger(e.StartWorkChance.low) && i.isInteger(e.StartWorkChance.high))) return "StartWorkChance: integer|Long expected";
                if (null != e.TriggerCondition && e.hasOwnProperty("TriggerCondition")) {
                    if (!Array.isArray(e.TriggerCondition)) return "TriggerCondition: array expected";
                    for (t = 0; t < e.TriggerCondition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TriggerCondition[t])) return "TriggerCondition." + n
                }
                if (null != e.TriggerEffect && e.hasOwnProperty("TriggerEffect")) {
                    if (!Array.isArray(e.TriggerEffect)) return "TriggerEffect: array expected";
                    for (t = 0; t < e.TriggerEffect.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TriggerEffect[t])) return "TriggerEffect." + n
                }
                if (null != e.Params && e.hasOwnProperty("Params")) {
                    if (!Array.isArray(e.Params)) return "Params: array expected";
                    for (t = 0; t < e.Params.length; ++t)
                        if (!(i.isInteger(e.Params[t]) || e.Params[t] && i.isInteger(e.Params[t].low) && i.isInteger(e.Params[t].high))) return "Params: integer|Long[] expected"
                }
                if (null != e.TriggerWorkCondition && e.hasOwnProperty("TriggerWorkCondition")) {
                    if (!Array.isArray(e.TriggerWorkCondition)) return "TriggerWorkCondition: array expected";
                    for (t = 0; t < e.TriggerWorkCondition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TriggerWorkCondition[t])) return "TriggerWorkCondition." + n
                }
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.ShowEffectName && e.hasOwnProperty("ShowEffectName")) {
                    if (!Array.isArray(e.ShowEffectName)) return "ShowEffectName: array expected";
                    for (t = 0; t < e.ShowEffectName.length; ++t)
                        if (!(i.isInteger(e.ShowEffectName[t]) || e.ShowEffectName[t] && i.isInteger(e.ShowEffectName[t].low) && i.isInteger(e.ShowEffectName[t].high))) return "ShowEffectName: integer|Long[] expected"
                }
                if (null != e.Params2D && e.hasOwnProperty("Params2D")) {
                    if (!Array.isArray(e.Params2D)) return "Params2D: array expected";
                    for (t = 0; t < e.Params2D.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Params2D[t])) return "Params2D." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.BuffBase_Config) return e;
                var t = new a.BuffBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.DescriptionId && (i.Long ? (t.DescriptionId = i.Long.fromValue(e.DescriptionId)).unsigned = !1 : "string" == typeof e.DescriptionId ? t.DescriptionId = parseInt(e.DescriptionId, 10) : "number" == typeof e.DescriptionId ? t.DescriptionId = e.DescriptionId : "object" == typeof e.DescriptionId && (t.DescriptionId = new i.LongBits(e.DescriptionId.low >>> 0, e.DescriptionId.high >>> 0).toNumber())), e.Tags) {
                    if (!Array.isArray(e.Tags)) throw TypeError(".BuffBase_Config.Tags: array expected");
                    t.Tags = [];
                    for (var n = 0; n < e.Tags.length; ++n) i.Long ? (t.Tags[n] = i.Long.fromValue(e.Tags[n])).unsigned = !1 : "string" == typeof e.Tags[n] ? t.Tags[n] = parseInt(e.Tags[n], 10) : "number" == typeof e.Tags[n] ? t.Tags[n] = e.Tags[n] : "object" == typeof e.Tags[n] && (t.Tags[n] = new i.LongBits(e.Tags[n].low >>> 0, e.Tags[n].high >>> 0).toNumber())
                }
                if (e.StartEffect) {
                    if (!Array.isArray(e.StartEffect)) throw TypeError(".BuffBase_Config.StartEffect: array expected");
                    for (t.StartEffect = [], n = 0; n < e.StartEffect.length; ++n) {
                        if ("object" != typeof e.StartEffect[n]) throw TypeError(".BuffBase_Config.StartEffect: object expected");
                        t.StartEffect[n] = a.IntArray_Config.fromObject(e.StartEffect[n])
                    }
                }
                if (null != e.Round && (i.Long ? (t.Round = i.Long.fromValue(e.Round)).unsigned = !1 : "string" == typeof e.Round ? t.Round = parseInt(e.Round, 10) : "number" == typeof e.Round ? t.Round = e.Round : "object" == typeof e.Round && (t.Round = new i.LongBits(e.Round.low >>> 0, e.Round.high >>> 0).toNumber())), null != e.MaxCount && (i.Long ? (t.MaxCount = i.Long.fromValue(e.MaxCount)).unsigned = !1 : "string" == typeof e.MaxCount ? t.MaxCount = parseInt(e.MaxCount, 10) : "number" == typeof e.MaxCount ? t.MaxCount = e.MaxCount : "object" == typeof e.MaxCount && (t.MaxCount = new i.LongBits(e.MaxCount.low >>> 0, e.MaxCount.high >>> 0).toNumber())), e.StartWorkCondition) {
                    if (!Array.isArray(e.StartWorkCondition)) throw TypeError(".BuffBase_Config.StartWorkCondition: array expected");
                    for (t.StartWorkCondition = [], n = 0; n < e.StartWorkCondition.length; ++n) {
                        if ("object" != typeof e.StartWorkCondition[n]) throw TypeError(".BuffBase_Config.StartWorkCondition: object expected");
                        t.StartWorkCondition[n] = a.IntArray_Config.fromObject(e.StartWorkCondition[n])
                    }
                }
                if (null != e.StartWorkChance && (i.Long ? (t.StartWorkChance = i.Long.fromValue(e.StartWorkChance)).unsigned = !1 : "string" == typeof e.StartWorkChance ? t.StartWorkChance = parseInt(e.StartWorkChance, 10) : "number" == typeof e.StartWorkChance ? t.StartWorkChance = e.StartWorkChance : "object" == typeof e.StartWorkChance && (t.StartWorkChance = new i.LongBits(e.StartWorkChance.low >>> 0, e.StartWorkChance.high >>> 0).toNumber())), e.TriggerCondition) {
                    if (!Array.isArray(e.TriggerCondition)) throw TypeError(".BuffBase_Config.TriggerCondition: array expected");
                    for (t.TriggerCondition = [], n = 0; n < e.TriggerCondition.length; ++n) {
                        if ("object" != typeof e.TriggerCondition[n]) throw TypeError(".BuffBase_Config.TriggerCondition: object expected");
                        t.TriggerCondition[n] = a.IntArray_Config.fromObject(e.TriggerCondition[n])
                    }
                }
                if (e.TriggerEffect) {
                    if (!Array.isArray(e.TriggerEffect)) throw TypeError(".BuffBase_Config.TriggerEffect: array expected");
                    for (t.TriggerEffect = [], n = 0; n < e.TriggerEffect.length; ++n) {
                        if ("object" != typeof e.TriggerEffect[n]) throw TypeError(".BuffBase_Config.TriggerEffect: object expected");
                        t.TriggerEffect[n] = a.IntArray_Config.fromObject(e.TriggerEffect[n])
                    }
                }
                if (e.Params) {
                    if (!Array.isArray(e.Params)) throw TypeError(".BuffBase_Config.Params: array expected");
                    for (t.Params = [], n = 0; n < e.Params.length; ++n) i.Long ? (t.Params[n] = i.Long.fromValue(e.Params[n])).unsigned = !1 : "string" == typeof e.Params[n] ? t.Params[n] = parseInt(e.Params[n], 10) : "number" == typeof e.Params[n] ? t.Params[n] = e.Params[n] : "object" == typeof e.Params[n] && (t.Params[n] = new i.LongBits(e.Params[n].low >>> 0, e.Params[n].high >>> 0).toNumber())
                }
                if (e.TriggerWorkCondition) {
                    if (!Array.isArray(e.TriggerWorkCondition)) throw TypeError(".BuffBase_Config.TriggerWorkCondition: array expected");
                    for (t.TriggerWorkCondition = [], n = 0; n < e.TriggerWorkCondition.length; ++n) {
                        if ("object" != typeof e.TriggerWorkCondition[n]) throw TypeError(".BuffBase_Config.TriggerWorkCondition: object expected");
                        t.TriggerWorkCondition[n] = a.IntArray_Config.fromObject(e.TriggerWorkCondition[n])
                    }
                }
                if (null != e.Icon && (t.Icon = String(e.Icon)), e.ShowEffectName) {
                    if (!Array.isArray(e.ShowEffectName)) throw TypeError(".BuffBase_Config.ShowEffectName: array expected");
                    for (t.ShowEffectName = [], n = 0; n < e.ShowEffectName.length; ++n) i.Long ? (t.ShowEffectName[n] = i.Long.fromValue(e.ShowEffectName[n])).unsigned = !1 : "string" == typeof e.ShowEffectName[n] ? t.ShowEffectName[n] = parseInt(e.ShowEffectName[n], 10) : "number" == typeof e.ShowEffectName[n] ? t.ShowEffectName[n] = e.ShowEffectName[n] : "object" == typeof e.ShowEffectName[n] && (t.ShowEffectName[n] = new i.LongBits(e.ShowEffectName[n].low >>> 0, e.ShowEffectName[n].high >>> 0).toNumber())
                }
                if (e.Params2D) {
                    if (!Array.isArray(e.Params2D)) throw TypeError(".BuffBase_Config.Params2D: array expected");
                    for (t.Params2D = [], n = 0; n < e.Params2D.length; ++n) {
                        if ("object" != typeof e.Params2D[n]) throw TypeError(".BuffBase_Config.Params2D: object expected");
                        t.Params2D[n] = a.IntArray_Config.fromObject(e.Params2D[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Tags = [], n.StartEffect = [], n.StartWorkCondition = [], n.TriggerCondition = [], n.TriggerEffect = [], n.Params = [], n.TriggerWorkCondition = [], n.ShowEffectName = [], n.Params2D = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.DescriptionId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DescriptionId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Round = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Round = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StartWorkChance = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StartWorkChance = t.longs === String ? "0" : 0, n.Icon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.DescriptionId && e.hasOwnProperty("DescriptionId") && ("number" == typeof e.DescriptionId ? n.DescriptionId = t.longs === String ? String(e.DescriptionId) : e.DescriptionId : n.DescriptionId = t.longs === String ? i.Long.prototype.toString.call(e.DescriptionId) : t.longs === Number ? new i.LongBits(e.DescriptionId.low >>> 0, e.DescriptionId.high >>> 0).toNumber() : e.DescriptionId), e.Tags && e.Tags.length) {
                    n.Tags = [];
                    for (var r = 0; r < e.Tags.length; ++r) "number" == typeof e.Tags[r] ? n.Tags[r] = t.longs === String ? String(e.Tags[r]) : e.Tags[r] : n.Tags[r] = t.longs === String ? i.Long.prototype.toString.call(e.Tags[r]) : t.longs === Number ? new i.LongBits(e.Tags[r].low >>> 0, e.Tags[r].high >>> 0).toNumber() : e.Tags[r]
                }
                if (e.StartEffect && e.StartEffect.length)
                    for (n.StartEffect = [], r = 0; r < e.StartEffect.length; ++r) n.StartEffect[r] = a.IntArray_Config.toObject(e.StartEffect[r], t);
                if (null != e.Round && e.hasOwnProperty("Round") && ("number" == typeof e.Round ? n.Round = t.longs === String ? String(e.Round) : e.Round : n.Round = t.longs === String ? i.Long.prototype.toString.call(e.Round) : t.longs === Number ? new i.LongBits(e.Round.low >>> 0, e.Round.high >>> 0).toNumber() : e.Round), null != e.MaxCount && e.hasOwnProperty("MaxCount") && ("number" == typeof e.MaxCount ? n.MaxCount = t.longs === String ? String(e.MaxCount) : e.MaxCount : n.MaxCount = t.longs === String ? i.Long.prototype.toString.call(e.MaxCount) : t.longs === Number ? new i.LongBits(e.MaxCount.low >>> 0, e.MaxCount.high >>> 0).toNumber() : e.MaxCount), e.StartWorkCondition && e.StartWorkCondition.length)
                    for (n.StartWorkCondition = [], r = 0; r < e.StartWorkCondition.length; ++r) n.StartWorkCondition[r] = a.IntArray_Config.toObject(e.StartWorkCondition[r], t);
                if (null != e.StartWorkChance && e.hasOwnProperty("StartWorkChance") && ("number" == typeof e.StartWorkChance ? n.StartWorkChance = t.longs === String ? String(e.StartWorkChance) : e.StartWorkChance : n.StartWorkChance = t.longs === String ? i.Long.prototype.toString.call(e.StartWorkChance) : t.longs === Number ? new i.LongBits(e.StartWorkChance.low >>> 0, e.StartWorkChance.high >>> 0).toNumber() : e.StartWorkChance), e.TriggerCondition && e.TriggerCondition.length)
                    for (n.TriggerCondition = [], r = 0; r < e.TriggerCondition.length; ++r) n.TriggerCondition[r] = a.IntArray_Config.toObject(e.TriggerCondition[r], t);
                if (e.TriggerEffect && e.TriggerEffect.length)
                    for (n.TriggerEffect = [], r = 0; r < e.TriggerEffect.length; ++r) n.TriggerEffect[r] = a.IntArray_Config.toObject(e.TriggerEffect[r], t);
                if (e.Params && e.Params.length)
                    for (n.Params = [], r = 0; r < e.Params.length; ++r) "number" == typeof e.Params[r] ? n.Params[r] = t.longs === String ? String(e.Params[r]) : e.Params[r] : n.Params[r] = t.longs === String ? i.Long.prototype.toString.call(e.Params[r]) : t.longs === Number ? new i.LongBits(e.Params[r].low >>> 0, e.Params[r].high >>> 0).toNumber() : e.Params[r];
                if (e.TriggerWorkCondition && e.TriggerWorkCondition.length)
                    for (n.TriggerWorkCondition = [], r = 0; r < e.TriggerWorkCondition.length; ++r) n.TriggerWorkCondition[r] = a.IntArray_Config.toObject(e.TriggerWorkCondition[r], t);
                if (null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), e.ShowEffectName && e.ShowEffectName.length)
                    for (n.ShowEffectName = [], r = 0; r < e.ShowEffectName.length; ++r) "number" == typeof e.ShowEffectName[r] ? n.ShowEffectName[r] = t.longs === String ? String(e.ShowEffectName[r]) : e.ShowEffectName[r] : n.ShowEffectName[r] = t.longs === String ? i.Long.prototype.toString.call(e.ShowEffectName[r]) : t.longs === Number ? new i.LongBits(e.ShowEffectName[r].low >>> 0, e.ShowEffectName[r].high >>> 0).toNumber() : e.ShowEffectName[r];
                if (e.Params2D && e.Params2D.length)
                    for (n.Params2D = [], r = 0; r < e.Params2D.length; ++r) n.Params2D[r] = a.IntArray_Config.toObject(e.Params2D[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/BuffBase_Config"
            }, e
        }(), a.ItemConsume_Config = function() {
            function e(e) {
                if (this.ShowLib = [], this.Param = [], this.Condition = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SubType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SummonType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowLib = i.emptyArray, e.prototype.Param = i.emptyArray, e.prototype.Condition = i.emptyArray, e.prototype.GameModule = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.SubType && Object.hasOwnProperty.call(e, "SubType") && t.uint32(16).int64(e.SubType), null != e.SummonType && Object.hasOwnProperty.call(e, "SummonType") && t.uint32(72).int64(e.SummonType), null != e.ShowLib && e.ShowLib.length)
                    for (var n = 0; n < e.ShowLib.length; ++n) a.IntArray_Config.encode(e.ShowLib[n], t.uint32(82).fork()).ldelim();
                if (null != e.Param && e.Param.length)
                    for (n = 0; n < e.Param.length; ++n) a.IntArray_Config.encode(e.Param[n], t.uint32(106).fork()).ldelim();
                if (null != e.Condition && e.Condition.length)
                    for (n = 0; n < e.Condition.length; ++n) a.IntArray_Config.encode(e.Condition[n], t.uint32(114).fork()).ldelim();
                return null != e.GameModule && Object.hasOwnProperty.call(e, "GameModule") && t.uint32(120).int64(e.GameModule), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemConsume_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.SubType = e.int64();
                            break;
                        case 9:
                            r.SummonType = e.int64();
                            break;
                        case 10:
                            r.ShowLib && r.ShowLib.length || (r.ShowLib = []), r.ShowLib.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 13:
                            r.Param && r.Param.length || (r.Param = []), r.Param.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 14:
                            r.Condition && r.Condition.length || (r.Condition = []), r.Condition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 15:
                            r.GameModule = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.SubType && e.hasOwnProperty("SubType") && !(i.isInteger(e.SubType) || e.SubType && i.isInteger(e.SubType.low) && i.isInteger(e.SubType.high))) return "SubType: integer|Long expected";
                if (null != e.SummonType && e.hasOwnProperty("SummonType") && !(i.isInteger(e.SummonType) || e.SummonType && i.isInteger(e.SummonType.low) && i.isInteger(e.SummonType.high))) return "SummonType: integer|Long expected";
                if (null != e.ShowLib && e.hasOwnProperty("ShowLib")) {
                    if (!Array.isArray(e.ShowLib)) return "ShowLib: array expected";
                    for (var t = 0; t < e.ShowLib.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ShowLib[t])) return "ShowLib." + n
                }
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (t = 0; t < e.Param.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Param[t])) return "Param." + n
                }
                if (null != e.Condition && e.hasOwnProperty("Condition")) {
                    if (!Array.isArray(e.Condition)) return "Condition: array expected";
                    for (t = 0; t < e.Condition.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Condition[t])) return "Condition." + n
                    }
                }
                return null != e.GameModule && e.hasOwnProperty("GameModule") && !(i.isInteger(e.GameModule) || e.GameModule && i.isInteger(e.GameModule.low) && i.isInteger(e.GameModule.high)) ? "GameModule: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemConsume_Config) return e;
                var t = new a.ItemConsume_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.SubType && (i.Long ? (t.SubType = i.Long.fromValue(e.SubType)).unsigned = !1 : "string" == typeof e.SubType ? t.SubType = parseInt(e.SubType, 10) : "number" == typeof e.SubType ? t.SubType = e.SubType : "object" == typeof e.SubType && (t.SubType = new i.LongBits(e.SubType.low >>> 0, e.SubType.high >>> 0).toNumber())), null != e.SummonType && (i.Long ? (t.SummonType = i.Long.fromValue(e.SummonType)).unsigned = !1 : "string" == typeof e.SummonType ? t.SummonType = parseInt(e.SummonType, 10) : "number" == typeof e.SummonType ? t.SummonType = e.SummonType : "object" == typeof e.SummonType && (t.SummonType = new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber())), e.ShowLib) {
                    if (!Array.isArray(e.ShowLib)) throw TypeError(".ItemConsume_Config.ShowLib: array expected");
                    t.ShowLib = [];
                    for (var n = 0; n < e.ShowLib.length; ++n) {
                        if ("object" != typeof e.ShowLib[n]) throw TypeError(".ItemConsume_Config.ShowLib: object expected");
                        t.ShowLib[n] = a.IntArray_Config.fromObject(e.ShowLib[n])
                    }
                }
                if (e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".ItemConsume_Config.Param: array expected");
                    for (t.Param = [], n = 0; n < e.Param.length; ++n) {
                        if ("object" != typeof e.Param[n]) throw TypeError(".ItemConsume_Config.Param: object expected");
                        t.Param[n] = a.IntArray_Config.fromObject(e.Param[n])
                    }
                }
                if (e.Condition) {
                    if (!Array.isArray(e.Condition)) throw TypeError(".ItemConsume_Config.Condition: array expected");
                    for (t.Condition = [], n = 0; n < e.Condition.length; ++n) {
                        if ("object" != typeof e.Condition[n]) throw TypeError(".ItemConsume_Config.Condition: object expected");
                        t.Condition[n] = a.IntArray_Config.fromObject(e.Condition[n])
                    }
                }
                return null != e.GameModule && (i.Long ? (t.GameModule = i.Long.fromValue(e.GameModule)).unsigned = !1 : "string" == typeof e.GameModule ? t.GameModule = parseInt(e.GameModule, 10) : "number" == typeof e.GameModule ? t.GameModule = e.GameModule : "object" == typeof e.GameModule && (t.GameModule = new i.LongBits(e.GameModule.low >>> 0, e.GameModule.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ShowLib = [], n.Param = [], n.Condition = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SubType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SubType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SummonType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SummonType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GameModule = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GameModule = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.SubType && e.hasOwnProperty("SubType") && ("number" == typeof e.SubType ? n.SubType = t.longs === String ? String(e.SubType) : e.SubType : n.SubType = t.longs === String ? i.Long.prototype.toString.call(e.SubType) : t.longs === Number ? new i.LongBits(e.SubType.low >>> 0, e.SubType.high >>> 0).toNumber() : e.SubType), null != e.SummonType && e.hasOwnProperty("SummonType") && ("number" == typeof e.SummonType ? n.SummonType = t.longs === String ? String(e.SummonType) : e.SummonType : n.SummonType = t.longs === String ? i.Long.prototype.toString.call(e.SummonType) : t.longs === Number ? new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber() : e.SummonType), e.ShowLib && e.ShowLib.length) {
                    n.ShowLib = [];
                    for (var r = 0; r < e.ShowLib.length; ++r) n.ShowLib[r] = a.IntArray_Config.toObject(e.ShowLib[r], t)
                }
                if (e.Param && e.Param.length)
                    for (n.Param = [], r = 0; r < e.Param.length; ++r) n.Param[r] = a.IntArray_Config.toObject(e.Param[r], t);
                if (e.Condition && e.Condition.length)
                    for (n.Condition = [], r = 0; r < e.Condition.length; ++r) n.Condition[r] = a.IntArray_Config.toObject(e.Condition[r], t);
                return null != e.GameModule && e.hasOwnProperty("GameModule") && ("number" == typeof e.GameModule ? n.GameModule = t.longs === String ? String(e.GameModule) : e.GameModule : n.GameModule = t.longs === String ? i.Long.prototype.toString.call(e.GameModule) : t.longs === Number ? new i.LongBits(e.GameModule.low >>> 0, e.GameModule.high >>> 0).toNumber() : e.GameModule), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemConsume_Config"
            }, e
        }(), a.ItemPiece_Config = function() {
            function e(e) {
                if (this.ShowLib = [], this.DecomposeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RequireCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowLib = i.emptyArray, e.prototype.CardId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DecomposeItems = i.emptyArray, e.prototype.SummonType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SubType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.RequireCount && Object.hasOwnProperty.call(e, "RequireCount") && t.uint32(16).int64(e.RequireCount), null != e.ShowLib && e.ShowLib.length)
                    for (var n = 0; n < e.ShowLib.length; ++n) a.IntArray_Config.encode(e.ShowLib[n], t.uint32(26).fork()).ldelim();
                if (null != e.CardId && Object.hasOwnProperty.call(e, "CardId") && t.uint32(32).int64(e.CardId), null != e.DecomposeItems && e.DecomposeItems.length)
                    for (n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(42).fork()).ldelim();
                return null != e.SummonType && Object.hasOwnProperty.call(e, "SummonType") && t.uint32(48).int64(e.SummonType), null != e.SubType && Object.hasOwnProperty.call(e, "SubType") && t.uint32(64).int64(e.SubType), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemPiece_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.RequireCount = e.int64();
                            break;
                        case 3:
                            r.ShowLib && r.ShowLib.length || (r.ShowLib = []), r.ShowLib.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.CardId = e.int64();
                            break;
                        case 5:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.SummonType = e.int64();
                            break;
                        case 8:
                            r.SubType = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.RequireCount && e.hasOwnProperty("RequireCount") && !(i.isInteger(e.RequireCount) || e.RequireCount && i.isInteger(e.RequireCount.low) && i.isInteger(e.RequireCount.high))) return "RequireCount: integer|Long expected";
                if (null != e.ShowLib && e.hasOwnProperty("ShowLib")) {
                    if (!Array.isArray(e.ShowLib)) return "ShowLib: array expected";
                    for (var t = 0; t < e.ShowLib.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ShowLib[t])) return "ShowLib." + n
                }
                if (null != e.CardId && e.hasOwnProperty("CardId") && !(i.isInteger(e.CardId) || e.CardId && i.isInteger(e.CardId.low) && i.isInteger(e.CardId.high))) return "CardId: integer|Long expected";
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (t = 0; t < e.DecomposeItems.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.DecomposeItems[t])) return "DecomposeItems." + n
                    }
                }
                return null != e.SummonType && e.hasOwnProperty("SummonType") && !(i.isInteger(e.SummonType) || e.SummonType && i.isInteger(e.SummonType.low) && i.isInteger(e.SummonType.high)) ? "SummonType: integer|Long expected" : null != e.SubType && e.hasOwnProperty("SubType") && !(i.isInteger(e.SubType) || e.SubType && i.isInteger(e.SubType.low) && i.isInteger(e.SubType.high)) ? "SubType: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemPiece_Config) return e;
                var t = new a.ItemPiece_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.RequireCount && (i.Long ? (t.RequireCount = i.Long.fromValue(e.RequireCount)).unsigned = !1 : "string" == typeof e.RequireCount ? t.RequireCount = parseInt(e.RequireCount, 10) : "number" == typeof e.RequireCount ? t.RequireCount = e.RequireCount : "object" == typeof e.RequireCount && (t.RequireCount = new i.LongBits(e.RequireCount.low >>> 0, e.RequireCount.high >>> 0).toNumber())), e.ShowLib) {
                    if (!Array.isArray(e.ShowLib)) throw TypeError(".ItemPiece_Config.ShowLib: array expected");
                    t.ShowLib = [];
                    for (var n = 0; n < e.ShowLib.length; ++n) {
                        if ("object" != typeof e.ShowLib[n]) throw TypeError(".ItemPiece_Config.ShowLib: object expected");
                        t.ShowLib[n] = a.IntArray_Config.fromObject(e.ShowLib[n])
                    }
                }
                if (null != e.CardId && (i.Long ? (t.CardId = i.Long.fromValue(e.CardId)).unsigned = !1 : "string" == typeof e.CardId ? t.CardId = parseInt(e.CardId, 10) : "number" == typeof e.CardId ? t.CardId = e.CardId : "object" == typeof e.CardId && (t.CardId = new i.LongBits(e.CardId.low >>> 0, e.CardId.high >>> 0).toNumber())), e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".ItemPiece_Config.DecomposeItems: array expected");
                    for (t.DecomposeItems = [], n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".ItemPiece_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                return null != e.SummonType && (i.Long ? (t.SummonType = i.Long.fromValue(e.SummonType)).unsigned = !1 : "string" == typeof e.SummonType ? t.SummonType = parseInt(e.SummonType, 10) : "number" == typeof e.SummonType ? t.SummonType = e.SummonType : "object" == typeof e.SummonType && (t.SummonType = new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber())), null != e.SubType && (i.Long ? (t.SubType = i.Long.fromValue(e.SubType)).unsigned = !1 : "string" == typeof e.SubType ? t.SubType = parseInt(e.SubType, 10) : "number" == typeof e.SubType ? t.SubType = e.SubType : "object" == typeof e.SubType && (t.SubType = new i.LongBits(e.SubType.low >>> 0, e.SubType.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ShowLib = [], n.DecomposeItems = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.RequireCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RequireCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.CardId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CardId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SummonType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SummonType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SubType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SubType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.RequireCount && e.hasOwnProperty("RequireCount") && ("number" == typeof e.RequireCount ? n.RequireCount = t.longs === String ? String(e.RequireCount) : e.RequireCount : n.RequireCount = t.longs === String ? i.Long.prototype.toString.call(e.RequireCount) : t.longs === Number ? new i.LongBits(e.RequireCount.low >>> 0, e.RequireCount.high >>> 0).toNumber() : e.RequireCount), e.ShowLib && e.ShowLib.length) {
                    n.ShowLib = [];
                    for (var r = 0; r < e.ShowLib.length; ++r) n.ShowLib[r] = a.IntArray_Config.toObject(e.ShowLib[r], t)
                }
                if (null != e.CardId && e.hasOwnProperty("CardId") && ("number" == typeof e.CardId ? n.CardId = t.longs === String ? String(e.CardId) : e.CardId : n.CardId = t.longs === String ? i.Long.prototype.toString.call(e.CardId) : t.longs === Number ? new i.LongBits(e.CardId.low >>> 0, e.CardId.high >>> 0).toNumber() : e.CardId), e.DecomposeItems && e.DecomposeItems.length)
                    for (n.DecomposeItems = [], r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t);
                return null != e.SummonType && e.hasOwnProperty("SummonType") && ("number" == typeof e.SummonType ? n.SummonType = t.longs === String ? String(e.SummonType) : e.SummonType : n.SummonType = t.longs === String ? i.Long.prototype.toString.call(e.SummonType) : t.longs === Number ? new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber() : e.SummonType), null != e.SubType && e.hasOwnProperty("SubType") && ("number" == typeof e.SubType ? n.SubType = t.longs === String ? String(e.SubType) : e.SubType : n.SubType = t.longs === String ? i.Long.prototype.toString.call(e.SubType) : t.longs === Number ? new i.LongBits(e.SubType.low >>> 0, e.SubType.high >>> 0).toNumber() : e.SubType), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemPiece_Config"
            }, e
        }(), a.ItemHeroCard_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(16).int64(e.HeroId), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(24).int64(e.StarLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemHeroCard_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HeroId = e.int64();
                            break;
                        case 3:
                            r.StarLevel = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high)) ? "StarLevel: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemHeroCard_Config) return e;
                var t = new a.ItemHeroCard_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemHeroCard_Config"
            }, e
        }(), a.MapPowerLevel_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PowerLimit = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(24).int64(e.Level), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(32).int64(e.StarLevel), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(42).fork()).ldelim();
                return null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(48).int64(e.Power), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(56).int64(e.Type), null != e.PowerLimit && Object.hasOwnProperty.call(e, "PowerLimit") && t.uint32(64).int64(e.PowerLimit), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MapPowerLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Level = e.int64();
                            break;
                        case 4:
                            r.StarLevel = e.int64();
                            break;
                        case 5:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Power = e.int64();
                            break;
                        case 7:
                            r.Type = e.int64();
                            break;
                        case 8:
                            r.PowerLimit = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high))) return "StarLevel: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high)) ? "Power: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.PowerLimit && e.hasOwnProperty("PowerLimit") && !(i.isInteger(e.PowerLimit) || e.PowerLimit && i.isInteger(e.PowerLimit.low) && i.isInteger(e.PowerLimit.high)) ? "PowerLimit: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MapPowerLevel_Config) return e;
                var t = new a.MapPowerLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".MapPowerLevel_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".MapPowerLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.PowerLimit && (i.Long ? (t.PowerLimit = i.Long.fromValue(e.PowerLimit)).unsigned = !1 : "string" == typeof e.PowerLimit ? t.PowerLimit = parseInt(e.PowerLimit, 10) : "number" == typeof e.PowerLimit ? t.PowerLimit = e.PowerLimit : "object" == typeof e.PowerLimit && (t.PowerLimit = new i.LongBits(e.PowerLimit.low >>> 0, e.PowerLimit.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PowerLimit = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PowerLimit = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.PowerLimit && e.hasOwnProperty("PowerLimit") && ("number" == typeof e.PowerLimit ? n.PowerLimit = t.longs === String ? String(e.PowerLimit) : e.PowerLimit : n.PowerLimit = t.longs === String ? i.Long.prototype.toString.call(e.PowerLimit) : t.longs === Number ? new i.LongBits(e.PowerLimit.low >>> 0, e.PowerLimit.high >>> 0).toNumber() : e.PowerLimit), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MapPowerLevel_Config"
            }, e
        }(), a.MapDailyInstance_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.RequirePower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                return null != e.RequirePower && Object.hasOwnProperty.call(e, "RequirePower") && t.uint32(40).int64(e.RequirePower), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MapDailyInstance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.RequirePower = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.RequirePower && e.hasOwnProperty("RequirePower") && !(i.isInteger(e.RequirePower) || e.RequirePower && i.isInteger(e.RequirePower.low) && i.isInteger(e.RequirePower.high)) ? "RequirePower: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MapDailyInstance_Config) return e;
                var t = new a.MapDailyInstance_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".MapDailyInstance_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".MapDailyInstance_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.RequirePower && (i.Long ? (t.RequirePower = i.Long.fromValue(e.RequirePower)).unsigned = !1 : "string" == typeof e.RequirePower ? t.RequirePower = parseInt(e.RequirePower, 10) : "number" == typeof e.RequirePower ? t.RequirePower = e.RequirePower : "object" == typeof e.RequirePower && (t.RequirePower = new i.LongBits(e.RequirePower.low >>> 0, e.RequirePower.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.RequirePower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RequirePower = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.RequirePower && e.hasOwnProperty("RequirePower") && ("number" == typeof e.RequirePower ? n.RequirePower = t.longs === String ? String(e.RequirePower) : e.RequirePower : n.RequirePower = t.longs === String ? i.Long.prototype.toString.call(e.RequirePower) : t.longs === Number ? new i.LongBits(e.RequirePower.low >>> 0, e.RequirePower.high >>> 0).toNumber() : e.RequirePower), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MapDailyInstance_Config"
            }, e
        }(), a.DailyInstance_Config = function() {
            function e(e) {
                if (this.Maps = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Maps = i.emptyArray, e.prototype.BattlePrice = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Maps && e.Maps.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Maps.length; ++n) t.int64(e.Maps[n]);
                    t.ldelim()
                }
                return null != e.BattlePrice && Object.hasOwnProperty.call(e, "BattlePrice") && t.uint32(32).int64(e.BattlePrice), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DailyInstance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.Maps && r.Maps.length || (r.Maps = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Maps.push(e.int64());
                            else r.Maps.push(e.int64());
                            break;
                        case 4:
                            r.BattlePrice = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Maps && e.hasOwnProperty("Maps")) {
                    if (!Array.isArray(e.Maps)) return "Maps: array expected";
                    for (var t = 0; t < e.Maps.length; ++t)
                        if (!(i.isInteger(e.Maps[t]) || e.Maps[t] && i.isInteger(e.Maps[t].low) && i.isInteger(e.Maps[t].high))) return "Maps: integer|Long[] expected"
                }
                return null != e.BattlePrice && e.hasOwnProperty("BattlePrice") && !(i.isInteger(e.BattlePrice) || e.BattlePrice && i.isInteger(e.BattlePrice.low) && i.isInteger(e.BattlePrice.high)) ? "BattlePrice: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.DailyInstance_Config) return e;
                var t = new a.DailyInstance_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Maps) {
                    if (!Array.isArray(e.Maps)) throw TypeError(".DailyInstance_Config.Maps: array expected");
                    t.Maps = [];
                    for (var n = 0; n < e.Maps.length; ++n) i.Long ? (t.Maps[n] = i.Long.fromValue(e.Maps[n])).unsigned = !1 : "string" == typeof e.Maps[n] ? t.Maps[n] = parseInt(e.Maps[n], 10) : "number" == typeof e.Maps[n] ? t.Maps[n] = e.Maps[n] : "object" == typeof e.Maps[n] && (t.Maps[n] = new i.LongBits(e.Maps[n].low >>> 0, e.Maps[n].high >>> 0).toNumber())
                }
                return null != e.BattlePrice && (i.Long ? (t.BattlePrice = i.Long.fromValue(e.BattlePrice)).unsigned = !1 : "string" == typeof e.BattlePrice ? t.BattlePrice = parseInt(e.BattlePrice, 10) : "number" == typeof e.BattlePrice ? t.BattlePrice = e.BattlePrice : "object" == typeof e.BattlePrice && (t.BattlePrice = new i.LongBits(e.BattlePrice.low >>> 0, e.BattlePrice.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Maps = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.BattlePrice = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BattlePrice = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Maps && e.Maps.length) {
                    n.Maps = [];
                    for (var r = 0; r < e.Maps.length; ++r) "number" == typeof e.Maps[r] ? n.Maps[r] = t.longs === String ? String(e.Maps[r]) : e.Maps[r] : n.Maps[r] = t.longs === String ? i.Long.prototype.toString.call(e.Maps[r]) : t.longs === Number ? new i.LongBits(e.Maps[r].low >>> 0, e.Maps[r].high >>> 0).toNumber() : e.Maps[r]
                }
                return null != e.BattlePrice && e.hasOwnProperty("BattlePrice") && ("number" == typeof e.BattlePrice ? n.BattlePrice = t.longs === String ? String(e.BattlePrice) : e.BattlePrice : n.BattlePrice = t.longs === String ? i.Long.prototype.toString.call(e.BattlePrice) : t.longs === Number ? new i.LongBits(e.BattlePrice.low >>> 0, e.BattlePrice.high >>> 0).toNumber() : e.BattlePrice), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DailyInstance_Config"
            }, e
        }(), a.TestTowerType_Config = function() {
            function e(e) {
                if (this.OpenTime = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OpenTime = i.emptyArray, e.prototype.MapIdPrefix = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RankId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxRewardCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.OpenTime && e.OpenTime.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.OpenTime.length; ++n) t.int64(e.OpenTime[n]);
                    t.ldelim()
                }
                return null != e.MapIdPrefix && Object.hasOwnProperty.call(e, "MapIdPrefix") && t.uint32(24).int64(e.MapIdPrefix), null != e.RankId && Object.hasOwnProperty.call(e, "RankId") && t.uint32(32).int64(e.RankId), null != e.MaxCount && Object.hasOwnProperty.call(e, "MaxCount") && t.uint32(40).int64(e.MaxCount), null != e.MaxRewardCount && Object.hasOwnProperty.call(e, "MaxRewardCount") && t.uint32(56).int64(e.MaxRewardCount), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TestTowerType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.OpenTime && r.OpenTime.length || (r.OpenTime = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.OpenTime.push(e.int64());
                            else r.OpenTime.push(e.int64());
                            break;
                        case 3:
                            r.MapIdPrefix = e.int64();
                            break;
                        case 4:
                            r.RankId = e.int64();
                            break;
                        case 5:
                            r.MaxCount = e.int64();
                            break;
                        case 7:
                            r.MaxRewardCount = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.OpenTime && e.hasOwnProperty("OpenTime")) {
                    if (!Array.isArray(e.OpenTime)) return "OpenTime: array expected";
                    for (var t = 0; t < e.OpenTime.length; ++t)
                        if (!(i.isInteger(e.OpenTime[t]) || e.OpenTime[t] && i.isInteger(e.OpenTime[t].low) && i.isInteger(e.OpenTime[t].high))) return "OpenTime: integer|Long[] expected"
                }
                return null != e.MapIdPrefix && e.hasOwnProperty("MapIdPrefix") && !(i.isInteger(e.MapIdPrefix) || e.MapIdPrefix && i.isInteger(e.MapIdPrefix.low) && i.isInteger(e.MapIdPrefix.high)) ? "MapIdPrefix: integer|Long expected" : null != e.RankId && e.hasOwnProperty("RankId") && !(i.isInteger(e.RankId) || e.RankId && i.isInteger(e.RankId.low) && i.isInteger(e.RankId.high)) ? "RankId: integer|Long expected" : null != e.MaxCount && e.hasOwnProperty("MaxCount") && !(i.isInteger(e.MaxCount) || e.MaxCount && i.isInteger(e.MaxCount.low) && i.isInteger(e.MaxCount.high)) ? "MaxCount: integer|Long expected" : null != e.MaxRewardCount && e.hasOwnProperty("MaxRewardCount") && !(i.isInteger(e.MaxRewardCount) || e.MaxRewardCount && i.isInteger(e.MaxRewardCount.low) && i.isInteger(e.MaxRewardCount.high)) ? "MaxRewardCount: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.TestTowerType_Config) return e;
                var t = new a.TestTowerType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.OpenTime) {
                    if (!Array.isArray(e.OpenTime)) throw TypeError(".TestTowerType_Config.OpenTime: array expected");
                    t.OpenTime = [];
                    for (var n = 0; n < e.OpenTime.length; ++n) i.Long ? (t.OpenTime[n] = i.Long.fromValue(e.OpenTime[n])).unsigned = !1 : "string" == typeof e.OpenTime[n] ? t.OpenTime[n] = parseInt(e.OpenTime[n], 10) : "number" == typeof e.OpenTime[n] ? t.OpenTime[n] = e.OpenTime[n] : "object" == typeof e.OpenTime[n] && (t.OpenTime[n] = new i.LongBits(e.OpenTime[n].low >>> 0, e.OpenTime[n].high >>> 0).toNumber())
                }
                return null != e.MapIdPrefix && (i.Long ? (t.MapIdPrefix = i.Long.fromValue(e.MapIdPrefix)).unsigned = !1 : "string" == typeof e.MapIdPrefix ? t.MapIdPrefix = parseInt(e.MapIdPrefix, 10) : "number" == typeof e.MapIdPrefix ? t.MapIdPrefix = e.MapIdPrefix : "object" == typeof e.MapIdPrefix && (t.MapIdPrefix = new i.LongBits(e.MapIdPrefix.low >>> 0, e.MapIdPrefix.high >>> 0).toNumber())), null != e.RankId && (i.Long ? (t.RankId = i.Long.fromValue(e.RankId)).unsigned = !1 : "string" == typeof e.RankId ? t.RankId = parseInt(e.RankId, 10) : "number" == typeof e.RankId ? t.RankId = e.RankId : "object" == typeof e.RankId && (t.RankId = new i.LongBits(e.RankId.low >>> 0, e.RankId.high >>> 0).toNumber())), null != e.MaxCount && (i.Long ? (t.MaxCount = i.Long.fromValue(e.MaxCount)).unsigned = !1 : "string" == typeof e.MaxCount ? t.MaxCount = parseInt(e.MaxCount, 10) : "number" == typeof e.MaxCount ? t.MaxCount = e.MaxCount : "object" == typeof e.MaxCount && (t.MaxCount = new i.LongBits(e.MaxCount.low >>> 0, e.MaxCount.high >>> 0).toNumber())), null != e.MaxRewardCount && (i.Long ? (t.MaxRewardCount = i.Long.fromValue(e.MaxRewardCount)).unsigned = !1 : "string" == typeof e.MaxRewardCount ? t.MaxRewardCount = parseInt(e.MaxRewardCount, 10) : "number" == typeof e.MaxRewardCount ? t.MaxRewardCount = e.MaxRewardCount : "object" == typeof e.MaxRewardCount && (t.MaxRewardCount = new i.LongBits(e.MaxRewardCount.low >>> 0, e.MaxRewardCount.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.OpenTime = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MapIdPrefix = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapIdPrefix = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.RankId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RankId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxRewardCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxRewardCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.OpenTime && e.OpenTime.length) {
                    n.OpenTime = [];
                    for (var r = 0; r < e.OpenTime.length; ++r) "number" == typeof e.OpenTime[r] ? n.OpenTime[r] = t.longs === String ? String(e.OpenTime[r]) : e.OpenTime[r] : n.OpenTime[r] = t.longs === String ? i.Long.prototype.toString.call(e.OpenTime[r]) : t.longs === Number ? new i.LongBits(e.OpenTime[r].low >>> 0, e.OpenTime[r].high >>> 0).toNumber() : e.OpenTime[r]
                }
                return null != e.MapIdPrefix && e.hasOwnProperty("MapIdPrefix") && ("number" == typeof e.MapIdPrefix ? n.MapIdPrefix = t.longs === String ? String(e.MapIdPrefix) : e.MapIdPrefix : n.MapIdPrefix = t.longs === String ? i.Long.prototype.toString.call(e.MapIdPrefix) : t.longs === Number ? new i.LongBits(e.MapIdPrefix.low >>> 0, e.MapIdPrefix.high >>> 0).toNumber() : e.MapIdPrefix), null != e.RankId && e.hasOwnProperty("RankId") && ("number" == typeof e.RankId ? n.RankId = t.longs === String ? String(e.RankId) : e.RankId : n.RankId = t.longs === String ? i.Long.prototype.toString.call(e.RankId) : t.longs === Number ? new i.LongBits(e.RankId.low >>> 0, e.RankId.high >>> 0).toNumber() : e.RankId), null != e.MaxCount && e.hasOwnProperty("MaxCount") && ("number" == typeof e.MaxCount ? n.MaxCount = t.longs === String ? String(e.MaxCount) : e.MaxCount : n.MaxCount = t.longs === String ? i.Long.prototype.toString.call(e.MaxCount) : t.longs === Number ? new i.LongBits(e.MaxCount.low >>> 0, e.MaxCount.high >>> 0).toNumber() : e.MaxCount), null != e.MaxRewardCount && e.hasOwnProperty("MaxRewardCount") && ("number" == typeof e.MaxRewardCount ? n.MaxRewardCount = t.longs === String ? String(e.MaxRewardCount) : e.MaxRewardCount : n.MaxRewardCount = t.longs === String ? i.Long.prototype.toString.call(e.MaxRewardCount) : t.longs === Number ? new i.LongBits(e.MaxRewardCount.low >>> 0, e.MaxRewardCount.high >>> 0).toNumber() : e.MaxRewardCount), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TestTowerType_Config"
            }, e
        }(), a.MapTestTower_Config = function() {
            function e(e) {
                if (this.FirstClearRewards = [], this.DailyRewards = [], this.ExtraRewards = [], this.MapIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsKeyNode = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FirstClearRewards = i.emptyArray, e.prototype.DailyRewards = i.emptyArray, e.prototype.QuickBattlePower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ExtraRewards = i.emptyArray, e.prototype.Distance = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.IsKeyNode && Object.hasOwnProperty.call(e, "IsKeyNode") && t.uint32(24).int64(e.IsKeyNode), null != e.FirstClearRewards && e.FirstClearRewards.length)
                    for (var n = 0; n < e.FirstClearRewards.length; ++n) a.IntArray_Config.encode(e.FirstClearRewards[n], t.uint32(34).fork()).ldelim();
                if (null != e.DailyRewards && e.DailyRewards.length)
                    for (n = 0; n < e.DailyRewards.length; ++n) a.IntArray_Config.encode(e.DailyRewards[n], t.uint32(50).fork()).ldelim();
                if (null != e.QuickBattlePower && Object.hasOwnProperty.call(e, "QuickBattlePower") && t.uint32(56).int64(e.QuickBattlePower), null != e.ExtraRewards && e.ExtraRewards.length)
                    for (n = 0; n < e.ExtraRewards.length; ++n) a.IntArray_Config.encode(e.ExtraRewards[n], t.uint32(66).fork()).ldelim();
                if (null != e.Distance && Object.hasOwnProperty.call(e, "Distance") && t.uint32(72).int64(e.Distance), null != e.MapIds && e.MapIds.length) {
                    for (t.uint32(82).fork(), n = 0; n < e.MapIds.length; ++n) t.int64(e.MapIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MapTestTower_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.IsKeyNode = e.int64();
                            break;
                        case 4:
                            r.FirstClearRewards && r.FirstClearRewards.length || (r.FirstClearRewards = []), r.FirstClearRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.DailyRewards && r.DailyRewards.length || (r.DailyRewards = []), r.DailyRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.QuickBattlePower = e.int64();
                            break;
                        case 8:
                            r.ExtraRewards && r.ExtraRewards.length || (r.ExtraRewards = []), r.ExtraRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.Distance = e.int64();
                            break;
                        case 10:
                            if (r.MapIds && r.MapIds.length || (r.MapIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.MapIds.push(e.int64());
                            else r.MapIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.IsKeyNode && e.hasOwnProperty("IsKeyNode") && !(i.isInteger(e.IsKeyNode) || e.IsKeyNode && i.isInteger(e.IsKeyNode.low) && i.isInteger(e.IsKeyNode.high))) return "IsKeyNode: integer|Long expected";
                if (null != e.FirstClearRewards && e.hasOwnProperty("FirstClearRewards")) {
                    if (!Array.isArray(e.FirstClearRewards)) return "FirstClearRewards: array expected";
                    for (var t = 0; t < e.FirstClearRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.FirstClearRewards[t])) return "FirstClearRewards." + n
                }
                if (null != e.DailyRewards && e.hasOwnProperty("DailyRewards")) {
                    if (!Array.isArray(e.DailyRewards)) return "DailyRewards: array expected";
                    for (t = 0; t < e.DailyRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.DailyRewards[t])) return "DailyRewards." + n
                }
                if (null != e.QuickBattlePower && e.hasOwnProperty("QuickBattlePower") && !(i.isInteger(e.QuickBattlePower) || e.QuickBattlePower && i.isInteger(e.QuickBattlePower.low) && i.isInteger(e.QuickBattlePower.high))) return "QuickBattlePower: integer|Long expected";
                if (null != e.ExtraRewards && e.hasOwnProperty("ExtraRewards")) {
                    if (!Array.isArray(e.ExtraRewards)) return "ExtraRewards: array expected";
                    for (t = 0; t < e.ExtraRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ExtraRewards[t])) return "ExtraRewards." + n
                    }
                }
                if (null != e.Distance && e.hasOwnProperty("Distance") && !(i.isInteger(e.Distance) || e.Distance && i.isInteger(e.Distance.low) && i.isInteger(e.Distance.high))) return "Distance: integer|Long expected";
                if (null != e.MapIds && e.hasOwnProperty("MapIds")) {
                    if (!Array.isArray(e.MapIds)) return "MapIds: array expected";
                    for (t = 0; t < e.MapIds.length; ++t)
                        if (!(i.isInteger(e.MapIds[t]) || e.MapIds[t] && i.isInteger(e.MapIds[t].low) && i.isInteger(e.MapIds[t].high))) return "MapIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MapTestTower_Config) return e;
                var t = new a.MapTestTower_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.IsKeyNode && (i.Long ? (t.IsKeyNode = i.Long.fromValue(e.IsKeyNode)).unsigned = !1 : "string" == typeof e.IsKeyNode ? t.IsKeyNode = parseInt(e.IsKeyNode, 10) : "number" == typeof e.IsKeyNode ? t.IsKeyNode = e.IsKeyNode : "object" == typeof e.IsKeyNode && (t.IsKeyNode = new i.LongBits(e.IsKeyNode.low >>> 0, e.IsKeyNode.high >>> 0).toNumber())), e.FirstClearRewards) {
                    if (!Array.isArray(e.FirstClearRewards)) throw TypeError(".MapTestTower_Config.FirstClearRewards: array expected");
                    t.FirstClearRewards = [];
                    for (var n = 0; n < e.FirstClearRewards.length; ++n) {
                        if ("object" != typeof e.FirstClearRewards[n]) throw TypeError(".MapTestTower_Config.FirstClearRewards: object expected");
                        t.FirstClearRewards[n] = a.IntArray_Config.fromObject(e.FirstClearRewards[n])
                    }
                }
                if (e.DailyRewards) {
                    if (!Array.isArray(e.DailyRewards)) throw TypeError(".MapTestTower_Config.DailyRewards: array expected");
                    for (t.DailyRewards = [], n = 0; n < e.DailyRewards.length; ++n) {
                        if ("object" != typeof e.DailyRewards[n]) throw TypeError(".MapTestTower_Config.DailyRewards: object expected");
                        t.DailyRewards[n] = a.IntArray_Config.fromObject(e.DailyRewards[n])
                    }
                }
                if (null != e.QuickBattlePower && (i.Long ? (t.QuickBattlePower = i.Long.fromValue(e.QuickBattlePower)).unsigned = !1 : "string" == typeof e.QuickBattlePower ? t.QuickBattlePower = parseInt(e.QuickBattlePower, 10) : "number" == typeof e.QuickBattlePower ? t.QuickBattlePower = e.QuickBattlePower : "object" == typeof e.QuickBattlePower && (t.QuickBattlePower = new i.LongBits(e.QuickBattlePower.low >>> 0, e.QuickBattlePower.high >>> 0).toNumber())), e.ExtraRewards) {
                    if (!Array.isArray(e.ExtraRewards)) throw TypeError(".MapTestTower_Config.ExtraRewards: array expected");
                    for (t.ExtraRewards = [], n = 0; n < e.ExtraRewards.length; ++n) {
                        if ("object" != typeof e.ExtraRewards[n]) throw TypeError(".MapTestTower_Config.ExtraRewards: object expected");
                        t.ExtraRewards[n] = a.IntArray_Config.fromObject(e.ExtraRewards[n])
                    }
                }
                if (null != e.Distance && (i.Long ? (t.Distance = i.Long.fromValue(e.Distance)).unsigned = !1 : "string" == typeof e.Distance ? t.Distance = parseInt(e.Distance, 10) : "number" == typeof e.Distance ? t.Distance = e.Distance : "object" == typeof e.Distance && (t.Distance = new i.LongBits(e.Distance.low >>> 0, e.Distance.high >>> 0).toNumber())), e.MapIds) {
                    if (!Array.isArray(e.MapIds)) throw TypeError(".MapTestTower_Config.MapIds: array expected");
                    for (t.MapIds = [], n = 0; n < e.MapIds.length; ++n) i.Long ? (t.MapIds[n] = i.Long.fromValue(e.MapIds[n])).unsigned = !1 : "string" == typeof e.MapIds[n] ? t.MapIds[n] = parseInt(e.MapIds[n], 10) : "number" == typeof e.MapIds[n] ? t.MapIds[n] = e.MapIds[n] : "object" == typeof e.MapIds[n] && (t.MapIds[n] = new i.LongBits(e.MapIds[n].low >>> 0, e.MapIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.FirstClearRewards = [], n.DailyRewards = [], n.ExtraRewards = [], n.MapIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.IsKeyNode = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsKeyNode = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.QuickBattlePower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.QuickBattlePower = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Distance = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Distance = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.IsKeyNode && e.hasOwnProperty("IsKeyNode") && ("number" == typeof e.IsKeyNode ? n.IsKeyNode = t.longs === String ? String(e.IsKeyNode) : e.IsKeyNode : n.IsKeyNode = t.longs === String ? i.Long.prototype.toString.call(e.IsKeyNode) : t.longs === Number ? new i.LongBits(e.IsKeyNode.low >>> 0, e.IsKeyNode.high >>> 0).toNumber() : e.IsKeyNode), e.FirstClearRewards && e.FirstClearRewards.length) {
                    n.FirstClearRewards = [];
                    for (var r = 0; r < e.FirstClearRewards.length; ++r) n.FirstClearRewards[r] = a.IntArray_Config.toObject(e.FirstClearRewards[r], t)
                }
                if (e.DailyRewards && e.DailyRewards.length)
                    for (n.DailyRewards = [], r = 0; r < e.DailyRewards.length; ++r) n.DailyRewards[r] = a.IntArray_Config.toObject(e.DailyRewards[r], t);
                if (null != e.QuickBattlePower && e.hasOwnProperty("QuickBattlePower") && ("number" == typeof e.QuickBattlePower ? n.QuickBattlePower = t.longs === String ? String(e.QuickBattlePower) : e.QuickBattlePower : n.QuickBattlePower = t.longs === String ? i.Long.prototype.toString.call(e.QuickBattlePower) : t.longs === Number ? new i.LongBits(e.QuickBattlePower.low >>> 0, e.QuickBattlePower.high >>> 0).toNumber() : e.QuickBattlePower), e.ExtraRewards && e.ExtraRewards.length)
                    for (n.ExtraRewards = [], r = 0; r < e.ExtraRewards.length; ++r) n.ExtraRewards[r] = a.IntArray_Config.toObject(e.ExtraRewards[r], t);
                if (null != e.Distance && e.hasOwnProperty("Distance") && ("number" == typeof e.Distance ? n.Distance = t.longs === String ? String(e.Distance) : e.Distance : n.Distance = t.longs === String ? i.Long.prototype.toString.call(e.Distance) : t.longs === Number ? new i.LongBits(e.Distance.low >>> 0, e.Distance.high >>> 0).toNumber() : e.Distance), e.MapIds && e.MapIds.length)
                    for (n.MapIds = [], r = 0; r < e.MapIds.length; ++r) "number" == typeof e.MapIds[r] ? n.MapIds[r] = t.longs === String ? String(e.MapIds[r]) : e.MapIds[r] : n.MapIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.MapIds[r]) : t.longs === Number ? new i.LongBits(e.MapIds[r].low >>> 0, e.MapIds[r].high >>> 0).toNumber() : e.MapIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MapTestTower_Config"
            }, e
        }(), a.WarTokenTask_Config = function() {
            function e(e) {
                if (this.NormalReward = [], this.AdvanceReward = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RequirePoint = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NormalReward = i.emptyArray, e.prototype.AdvanceReward = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.RequirePoint && Object.hasOwnProperty.call(e, "RequirePoint") && t.uint32(24).int64(e.RequirePoint), null != e.NormalReward && e.NormalReward.length)
                    for (var n = 0; n < e.NormalReward.length; ++n) a.IntArray_Config.encode(e.NormalReward[n], t.uint32(34).fork()).ldelim();
                if (null != e.AdvanceReward && e.AdvanceReward.length)
                    for (n = 0; n < e.AdvanceReward.length; ++n) a.IntArray_Config.encode(e.AdvanceReward[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.WarTokenTask_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.RequirePoint = e.int64();
                            break;
                        case 4:
                            r.NormalReward && r.NormalReward.length || (r.NormalReward = []), r.NormalReward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.AdvanceReward && r.AdvanceReward.length || (r.AdvanceReward = []), r.AdvanceReward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.RequirePoint && e.hasOwnProperty("RequirePoint") && !(i.isInteger(e.RequirePoint) || e.RequirePoint && i.isInteger(e.RequirePoint.low) && i.isInteger(e.RequirePoint.high))) return "RequirePoint: integer|Long expected";
                if (null != e.NormalReward && e.hasOwnProperty("NormalReward")) {
                    if (!Array.isArray(e.NormalReward)) return "NormalReward: array expected";
                    for (var t = 0; t < e.NormalReward.length; ++t)
                        if (n = a.IntArray_Config.verify(e.NormalReward[t])) return "NormalReward." + n
                }
                if (null != e.AdvanceReward && e.hasOwnProperty("AdvanceReward")) {
                    if (!Array.isArray(e.AdvanceReward)) return "AdvanceReward: array expected";
                    for (t = 0; t < e.AdvanceReward.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.AdvanceReward[t])) return "AdvanceReward." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.WarTokenTask_Config) return e;
                var t = new a.WarTokenTask_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.RequirePoint && (i.Long ? (t.RequirePoint = i.Long.fromValue(e.RequirePoint)).unsigned = !1 : "string" == typeof e.RequirePoint ? t.RequirePoint = parseInt(e.RequirePoint, 10) : "number" == typeof e.RequirePoint ? t.RequirePoint = e.RequirePoint : "object" == typeof e.RequirePoint && (t.RequirePoint = new i.LongBits(e.RequirePoint.low >>> 0, e.RequirePoint.high >>> 0).toNumber())), e.NormalReward) {
                    if (!Array.isArray(e.NormalReward)) throw TypeError(".WarTokenTask_Config.NormalReward: array expected");
                    t.NormalReward = [];
                    for (var n = 0; n < e.NormalReward.length; ++n) {
                        if ("object" != typeof e.NormalReward[n]) throw TypeError(".WarTokenTask_Config.NormalReward: object expected");
                        t.NormalReward[n] = a.IntArray_Config.fromObject(e.NormalReward[n])
                    }
                }
                if (e.AdvanceReward) {
                    if (!Array.isArray(e.AdvanceReward)) throw TypeError(".WarTokenTask_Config.AdvanceReward: array expected");
                    for (t.AdvanceReward = [], n = 0; n < e.AdvanceReward.length; ++n) {
                        if ("object" != typeof e.AdvanceReward[n]) throw TypeError(".WarTokenTask_Config.AdvanceReward: object expected");
                        t.AdvanceReward[n] = a.IntArray_Config.fromObject(e.AdvanceReward[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.NormalReward = [], n.AdvanceReward = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.RequirePoint = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RequirePoint = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.RequirePoint && e.hasOwnProperty("RequirePoint") && ("number" == typeof e.RequirePoint ? n.RequirePoint = t.longs === String ? String(e.RequirePoint) : e.RequirePoint : n.RequirePoint = t.longs === String ? i.Long.prototype.toString.call(e.RequirePoint) : t.longs === Number ? new i.LongBits(e.RequirePoint.low >>> 0, e.RequirePoint.high >>> 0).toNumber() : e.RequirePoint), e.NormalReward && e.NormalReward.length) {
                    n.NormalReward = [];
                    for (var r = 0; r < e.NormalReward.length; ++r) n.NormalReward[r] = a.IntArray_Config.toObject(e.NormalReward[r], t)
                }
                if (e.AdvanceReward && e.AdvanceReward.length)
                    for (n.AdvanceReward = [], r = 0; r < e.AdvanceReward.length; ++r) n.AdvanceReward[r] = a.IntArray_Config.toObject(e.AdvanceReward[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/WarTokenTask_Config"
            }, e
        }(), a.WarTokenType_Config = function() {
            function e(e) {
                if (this.TaskList = [], this.Param = [], this.Privilege = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.VIP = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Banner = "", e.prototype.TaskList = i.emptyArray, e.prototype.Duration = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.prototype.GiftId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.Privilege = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.VIP && Object.hasOwnProperty.call(e, "VIP") && t.uint32(40).int64(e.VIP), null != e.Banner && Object.hasOwnProperty.call(e, "Banner") && t.uint32(50).string(e.Banner), null != e.TaskList && e.TaskList.length) {
                    t.uint32(58).fork();
                    for (var n = 0; n < e.TaskList.length; ++n) t.int64(e.TaskList[n]);
                    t.ldelim()
                }
                if (null != e.Duration && Object.hasOwnProperty.call(e, "Duration") && t.uint32(64).int64(e.Duration), null != e.Param && e.Param.length) {
                    for (t.uint32(74).fork(), n = 0; n < e.Param.length; ++n) t.int64(e.Param[n]);
                    t.ldelim()
                }
                if (null != e.GiftId && Object.hasOwnProperty.call(e, "GiftId") && t.uint32(80).int64(e.GiftId), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(90).string(e.Icon), null != e.Privilege && e.Privilege.length)
                    for (n = 0; n < e.Privilege.length; ++n) a.IntArray_Config.encode(e.Privilege[n], t.uint32(98).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.WarTokenType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.VIP = e.int64();
                            break;
                        case 6:
                            r.Banner = e.string();
                            break;
                        case 7:
                            if (r.TaskList && r.TaskList.length || (r.TaskList = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.TaskList.push(e.int64());
                            else r.TaskList.push(e.int64());
                            break;
                        case 8:
                            r.Duration = e.int64();
                            break;
                        case 9:
                            if (r.Param && r.Param.length || (r.Param = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Param.push(e.int64());
                            else r.Param.push(e.int64());
                            break;
                        case 10:
                            r.GiftId = e.int64();
                            break;
                        case 11:
                            r.Icon = e.string();
                            break;
                        case 12:
                            r.Privilege && r.Privilege.length || (r.Privilege = []), r.Privilege.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.VIP && e.hasOwnProperty("VIP") && !(i.isInteger(e.VIP) || e.VIP && i.isInteger(e.VIP.low) && i.isInteger(e.VIP.high))) return "VIP: integer|Long expected";
                if (null != e.Banner && e.hasOwnProperty("Banner") && !i.isString(e.Banner)) return "Banner: string expected";
                if (null != e.TaskList && e.hasOwnProperty("TaskList")) {
                    if (!Array.isArray(e.TaskList)) return "TaskList: array expected";
                    for (var t = 0; t < e.TaskList.length; ++t)
                        if (!(i.isInteger(e.TaskList[t]) || e.TaskList[t] && i.isInteger(e.TaskList[t].low) && i.isInteger(e.TaskList[t].high))) return "TaskList: integer|Long[] expected"
                }
                if (null != e.Duration && e.hasOwnProperty("Duration") && !(i.isInteger(e.Duration) || e.Duration && i.isInteger(e.Duration.low) && i.isInteger(e.Duration.high))) return "Duration: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (t = 0; t < e.Param.length; ++t)
                        if (!(i.isInteger(e.Param[t]) || e.Param[t] && i.isInteger(e.Param[t].low) && i.isInteger(e.Param[t].high))) return "Param: integer|Long[] expected"
                }
                if (null != e.GiftId && e.hasOwnProperty("GiftId") && !(i.isInteger(e.GiftId) || e.GiftId && i.isInteger(e.GiftId.low) && i.isInteger(e.GiftId.high))) return "GiftId: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.Privilege && e.hasOwnProperty("Privilege")) {
                    if (!Array.isArray(e.Privilege)) return "Privilege: array expected";
                    for (t = 0; t < e.Privilege.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Privilege[t]);
                        if (n) return "Privilege." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.WarTokenType_Config) return e;
                var t = new a.WarTokenType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.VIP && (i.Long ? (t.VIP = i.Long.fromValue(e.VIP)).unsigned = !1 : "string" == typeof e.VIP ? t.VIP = parseInt(e.VIP, 10) : "number" == typeof e.VIP ? t.VIP = e.VIP : "object" == typeof e.VIP && (t.VIP = new i.LongBits(e.VIP.low >>> 0, e.VIP.high >>> 0).toNumber())), null != e.Banner && (t.Banner = String(e.Banner)), e.TaskList) {
                    if (!Array.isArray(e.TaskList)) throw TypeError(".WarTokenType_Config.TaskList: array expected");
                    t.TaskList = [];
                    for (var n = 0; n < e.TaskList.length; ++n) i.Long ? (t.TaskList[n] = i.Long.fromValue(e.TaskList[n])).unsigned = !1 : "string" == typeof e.TaskList[n] ? t.TaskList[n] = parseInt(e.TaskList[n], 10) : "number" == typeof e.TaskList[n] ? t.TaskList[n] = e.TaskList[n] : "object" == typeof e.TaskList[n] && (t.TaskList[n] = new i.LongBits(e.TaskList[n].low >>> 0, e.TaskList[n].high >>> 0).toNumber())
                }
                if (null != e.Duration && (i.Long ? (t.Duration = i.Long.fromValue(e.Duration)).unsigned = !1 : "string" == typeof e.Duration ? t.Duration = parseInt(e.Duration, 10) : "number" == typeof e.Duration ? t.Duration = e.Duration : "object" == typeof e.Duration && (t.Duration = new i.LongBits(e.Duration.low >>> 0, e.Duration.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".WarTokenType_Config.Param: array expected");
                    for (t.Param = [], n = 0; n < e.Param.length; ++n) i.Long ? (t.Param[n] = i.Long.fromValue(e.Param[n])).unsigned = !1 : "string" == typeof e.Param[n] ? t.Param[n] = parseInt(e.Param[n], 10) : "number" == typeof e.Param[n] ? t.Param[n] = e.Param[n] : "object" == typeof e.Param[n] && (t.Param[n] = new i.LongBits(e.Param[n].low >>> 0, e.Param[n].high >>> 0).toNumber())
                }
                if (null != e.GiftId && (i.Long ? (t.GiftId = i.Long.fromValue(e.GiftId)).unsigned = !1 : "string" == typeof e.GiftId ? t.GiftId = parseInt(e.GiftId, 10) : "number" == typeof e.GiftId ? t.GiftId = e.GiftId : "object" == typeof e.GiftId && (t.GiftId = new i.LongBits(e.GiftId.low >>> 0, e.GiftId.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), e.Privilege) {
                    if (!Array.isArray(e.Privilege)) throw TypeError(".WarTokenType_Config.Privilege: array expected");
                    for (t.Privilege = [], n = 0; n < e.Privilege.length; ++n) {
                        if ("object" != typeof e.Privilege[n]) throw TypeError(".WarTokenType_Config.Privilege: object expected");
                        t.Privilege[n] = a.IntArray_Config.fromObject(e.Privilege[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.TaskList = [], n.Param = [], n.Privilege = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.VIP = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.VIP = t.longs === String ? "0" : 0, n.Banner = "", i.Long ? (o = new i.Long(0, 0, !1), n.Duration = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Duration = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GiftId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GiftId = t.longs === String ? "0" : 0, n.Icon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.VIP && e.hasOwnProperty("VIP") && ("number" == typeof e.VIP ? n.VIP = t.longs === String ? String(e.VIP) : e.VIP : n.VIP = t.longs === String ? i.Long.prototype.toString.call(e.VIP) : t.longs === Number ? new i.LongBits(e.VIP.low >>> 0, e.VIP.high >>> 0).toNumber() : e.VIP), null != e.Banner && e.hasOwnProperty("Banner") && (n.Banner = e.Banner), e.TaskList && e.TaskList.length) {
                    n.TaskList = [];
                    for (var r = 0; r < e.TaskList.length; ++r) "number" == typeof e.TaskList[r] ? n.TaskList[r] = t.longs === String ? String(e.TaskList[r]) : e.TaskList[r] : n.TaskList[r] = t.longs === String ? i.Long.prototype.toString.call(e.TaskList[r]) : t.longs === Number ? new i.LongBits(e.TaskList[r].low >>> 0, e.TaskList[r].high >>> 0).toNumber() : e.TaskList[r]
                }
                if (null != e.Duration && e.hasOwnProperty("Duration") && ("number" == typeof e.Duration ? n.Duration = t.longs === String ? String(e.Duration) : e.Duration : n.Duration = t.longs === String ? i.Long.prototype.toString.call(e.Duration) : t.longs === Number ? new i.LongBits(e.Duration.low >>> 0, e.Duration.high >>> 0).toNumber() : e.Duration), e.Param && e.Param.length)
                    for (n.Param = [], r = 0; r < e.Param.length; ++r) "number" == typeof e.Param[r] ? n.Param[r] = t.longs === String ? String(e.Param[r]) : e.Param[r] : n.Param[r] = t.longs === String ? i.Long.prototype.toString.call(e.Param[r]) : t.longs === Number ? new i.LongBits(e.Param[r].low >>> 0, e.Param[r].high >>> 0).toNumber() : e.Param[r];
                if (null != e.GiftId && e.hasOwnProperty("GiftId") && ("number" == typeof e.GiftId ? n.GiftId = t.longs === String ? String(e.GiftId) : e.GiftId : n.GiftId = t.longs === String ? i.Long.prototype.toString.call(e.GiftId) : t.longs === Number ? new i.LongBits(e.GiftId.low >>> 0, e.GiftId.high >>> 0).toNumber() : e.GiftId), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), e.Privilege && e.Privilege.length)
                    for (n.Privilege = [], r = 0; r < e.Privilege.length; ++r) n.Privilege[r] = a.IntArray_Config.toObject(e.Privilege[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/WarTokenType_Config"
            }, e
        }(), a.GameModule_Config = function() {
            function e(e) {
                if (this.Requirements1 = [], this.WarTokenId = [], this.Requirements2 = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.Requirements1 = i.emptyArray, e.prototype.WarTokenId = i.emptyArray, e.prototype.PreviewLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Requirements2 = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(34).string(e.Icon), null != e.Requirements1 && e.Requirements1.length)
                    for (var n = 0; n < e.Requirements1.length; ++n) a.IntArray_Config.encode(e.Requirements1[n], t.uint32(42).fork()).ldelim();
                if (null != e.WarTokenId && e.WarTokenId.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.WarTokenId.length; ++n) t.int64(e.WarTokenId[n]);
                    t.ldelim()
                }
                if (null != e.PreviewLevel && Object.hasOwnProperty.call(e, "PreviewLevel") && t.uint32(56).int64(e.PreviewLevel), null != e.Requirements2 && e.Requirements2.length)
                    for (n = 0; n < e.Requirements2.length; ++n) a.IntArray_Config.encode(e.Requirements2[n], t.uint32(66).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GameModule_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Icon = e.string();
                            break;
                        case 5:
                            r.Requirements1 && r.Requirements1.length || (r.Requirements1 = []), r.Requirements1.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            if (r.WarTokenId && r.WarTokenId.length || (r.WarTokenId = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.WarTokenId.push(e.int64());
                            else r.WarTokenId.push(e.int64());
                            break;
                        case 7:
                            r.PreviewLevel = e.int64();
                            break;
                        case 8:
                            r.Requirements2 && r.Requirements2.length || (r.Requirements2 = []), r.Requirements2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.Requirements1 && e.hasOwnProperty("Requirements1")) {
                    if (!Array.isArray(e.Requirements1)) return "Requirements1: array expected";
                    for (var t = 0; t < e.Requirements1.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Requirements1[t])) return "Requirements1." + n
                }
                if (null != e.WarTokenId && e.hasOwnProperty("WarTokenId")) {
                    if (!Array.isArray(e.WarTokenId)) return "WarTokenId: array expected";
                    for (t = 0; t < e.WarTokenId.length; ++t)
                        if (!(i.isInteger(e.WarTokenId[t]) || e.WarTokenId[t] && i.isInteger(e.WarTokenId[t].low) && i.isInteger(e.WarTokenId[t].high))) return "WarTokenId: integer|Long[] expected"
                }
                if (null != e.PreviewLevel && e.hasOwnProperty("PreviewLevel") && !(i.isInteger(e.PreviewLevel) || e.PreviewLevel && i.isInteger(e.PreviewLevel.low) && i.isInteger(e.PreviewLevel.high))) return "PreviewLevel: integer|Long expected";
                if (null != e.Requirements2 && e.hasOwnProperty("Requirements2")) {
                    if (!Array.isArray(e.Requirements2)) return "Requirements2: array expected";
                    for (t = 0; t < e.Requirements2.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Requirements2[t])) return "Requirements2." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.GameModule_Config) return e;
                var t = new a.GameModule_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), e.Requirements1) {
                    if (!Array.isArray(e.Requirements1)) throw TypeError(".GameModule_Config.Requirements1: array expected");
                    t.Requirements1 = [];
                    for (var n = 0; n < e.Requirements1.length; ++n) {
                        if ("object" != typeof e.Requirements1[n]) throw TypeError(".GameModule_Config.Requirements1: object expected");
                        t.Requirements1[n] = a.IntArray_Config.fromObject(e.Requirements1[n])
                    }
                }
                if (e.WarTokenId) {
                    if (!Array.isArray(e.WarTokenId)) throw TypeError(".GameModule_Config.WarTokenId: array expected");
                    for (t.WarTokenId = [], n = 0; n < e.WarTokenId.length; ++n) i.Long ? (t.WarTokenId[n] = i.Long.fromValue(e.WarTokenId[n])).unsigned = !1 : "string" == typeof e.WarTokenId[n] ? t.WarTokenId[n] = parseInt(e.WarTokenId[n], 10) : "number" == typeof e.WarTokenId[n] ? t.WarTokenId[n] = e.WarTokenId[n] : "object" == typeof e.WarTokenId[n] && (t.WarTokenId[n] = new i.LongBits(e.WarTokenId[n].low >>> 0, e.WarTokenId[n].high >>> 0).toNumber())
                }
                if (null != e.PreviewLevel && (i.Long ? (t.PreviewLevel = i.Long.fromValue(e.PreviewLevel)).unsigned = !1 : "string" == typeof e.PreviewLevel ? t.PreviewLevel = parseInt(e.PreviewLevel, 10) : "number" == typeof e.PreviewLevel ? t.PreviewLevel = e.PreviewLevel : "object" == typeof e.PreviewLevel && (t.PreviewLevel = new i.LongBits(e.PreviewLevel.low >>> 0, e.PreviewLevel.high >>> 0).toNumber())), e.Requirements2) {
                    if (!Array.isArray(e.Requirements2)) throw TypeError(".GameModule_Config.Requirements2: array expected");
                    for (t.Requirements2 = [], n = 0; n < e.Requirements2.length; ++n) {
                        if ("object" != typeof e.Requirements2[n]) throw TypeError(".GameModule_Config.Requirements2: object expected");
                        t.Requirements2[n] = a.IntArray_Config.fromObject(e.Requirements2[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Requirements1 = [], n.WarTokenId = [], n.Requirements2 = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.PreviewLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PreviewLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), e.Requirements1 && e.Requirements1.length) {
                    n.Requirements1 = [];
                    for (var r = 0; r < e.Requirements1.length; ++r) n.Requirements1[r] = a.IntArray_Config.toObject(e.Requirements1[r], t)
                }
                if (e.WarTokenId && e.WarTokenId.length)
                    for (n.WarTokenId = [], r = 0; r < e.WarTokenId.length; ++r) "number" == typeof e.WarTokenId[r] ? n.WarTokenId[r] = t.longs === String ? String(e.WarTokenId[r]) : e.WarTokenId[r] : n.WarTokenId[r] = t.longs === String ? i.Long.prototype.toString.call(e.WarTokenId[r]) : t.longs === Number ? new i.LongBits(e.WarTokenId[r].low >>> 0, e.WarTokenId[r].high >>> 0).toNumber() : e.WarTokenId[r];
                if (null != e.PreviewLevel && e.hasOwnProperty("PreviewLevel") && ("number" == typeof e.PreviewLevel ? n.PreviewLevel = t.longs === String ? String(e.PreviewLevel) : e.PreviewLevel : n.PreviewLevel = t.longs === String ? i.Long.prototype.toString.call(e.PreviewLevel) : t.longs === Number ? new i.LongBits(e.PreviewLevel.low >>> 0, e.PreviewLevel.high >>> 0).toNumber() : e.PreviewLevel), e.Requirements2 && e.Requirements2.length)
                    for (n.Requirements2 = [], r = 0; r < e.Requirements2.length; ++r) n.Requirements2[r] = a.IntArray_Config.toObject(e.Requirements2[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GameModule_Config"
            }, e
        }(), a.PlayerLevel_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(16).int64(e.Xp), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PlayerLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Xp = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high))) return "Xp: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PlayerLevel_Config) return e;
                var t = new a.PlayerLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".PlayerLevel_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".PlayerLevel_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PlayerLevel_Config"
            }, e
        }(), a.VipLevel_Config = function() {
            function e(e) {
                if (this.PackageItems = [], this.Privilege = [], this.PackIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Point = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PackageItems = i.emptyArray, e.prototype.PackagePrice = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PackageShowPrice = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Privilege = i.emptyArray, e.prototype.VisibleVIPLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PackIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Point && Object.hasOwnProperty.call(e, "Point") && t.uint32(16).int64(e.Point), null != e.PackageItems && e.PackageItems.length)
                    for (var n = 0; n < e.PackageItems.length; ++n) a.IntArray_Config.encode(e.PackageItems[n], t.uint32(26).fork()).ldelim();
                if (null != e.PackagePrice && Object.hasOwnProperty.call(e, "PackagePrice") && t.uint32(32).int64(e.PackagePrice), null != e.PackageShowPrice && Object.hasOwnProperty.call(e, "PackageShowPrice") && t.uint32(40).int64(e.PackageShowPrice), null != e.Privilege && e.Privilege.length)
                    for (n = 0; n < e.Privilege.length; ++n) a.IntArray_Config.encode(e.Privilege[n], t.uint32(50).fork()).ldelim();
                if (null != e.VisibleVIPLevel && Object.hasOwnProperty.call(e, "VisibleVIPLevel") && t.uint32(56).int64(e.VisibleVIPLevel), null != e.PackIds && e.PackIds.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.PackIds.length; ++n) t.int64(e.PackIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.VipLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Point = e.int64();
                            break;
                        case 3:
                            r.PackageItems && r.PackageItems.length || (r.PackageItems = []), r.PackageItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.PackagePrice = e.int64();
                            break;
                        case 5:
                            r.PackageShowPrice = e.int64();
                            break;
                        case 6:
                            r.Privilege && r.Privilege.length || (r.Privilege = []), r.Privilege.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.VisibleVIPLevel = e.int64();
                            break;
                        case 8:
                            if (r.PackIds && r.PackIds.length || (r.PackIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.PackIds.push(e.int64());
                            else r.PackIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Point && e.hasOwnProperty("Point") && !(i.isInteger(e.Point) || e.Point && i.isInteger(e.Point.low) && i.isInteger(e.Point.high))) return "Point: integer|Long expected";
                if (null != e.PackageItems && e.hasOwnProperty("PackageItems")) {
                    if (!Array.isArray(e.PackageItems)) return "PackageItems: array expected";
                    for (var t = 0; t < e.PackageItems.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PackageItems[t])) return "PackageItems." + n
                }
                if (null != e.PackagePrice && e.hasOwnProperty("PackagePrice") && !(i.isInteger(e.PackagePrice) || e.PackagePrice && i.isInteger(e.PackagePrice.low) && i.isInteger(e.PackagePrice.high))) return "PackagePrice: integer|Long expected";
                if (null != e.PackageShowPrice && e.hasOwnProperty("PackageShowPrice") && !(i.isInteger(e.PackageShowPrice) || e.PackageShowPrice && i.isInteger(e.PackageShowPrice.low) && i.isInteger(e.PackageShowPrice.high))) return "PackageShowPrice: integer|Long expected";
                if (null != e.Privilege && e.hasOwnProperty("Privilege")) {
                    if (!Array.isArray(e.Privilege)) return "Privilege: array expected";
                    for (t = 0; t < e.Privilege.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Privilege[t])) return "Privilege." + n
                    }
                }
                if (null != e.VisibleVIPLevel && e.hasOwnProperty("VisibleVIPLevel") && !(i.isInteger(e.VisibleVIPLevel) || e.VisibleVIPLevel && i.isInteger(e.VisibleVIPLevel.low) && i.isInteger(e.VisibleVIPLevel.high))) return "VisibleVIPLevel: integer|Long expected";
                if (null != e.PackIds && e.hasOwnProperty("PackIds")) {
                    if (!Array.isArray(e.PackIds)) return "PackIds: array expected";
                    for (t = 0; t < e.PackIds.length; ++t)
                        if (!(i.isInteger(e.PackIds[t]) || e.PackIds[t] && i.isInteger(e.PackIds[t].low) && i.isInteger(e.PackIds[t].high))) return "PackIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.VipLevel_Config) return e;
                var t = new a.VipLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Point && (i.Long ? (t.Point = i.Long.fromValue(e.Point)).unsigned = !1 : "string" == typeof e.Point ? t.Point = parseInt(e.Point, 10) : "number" == typeof e.Point ? t.Point = e.Point : "object" == typeof e.Point && (t.Point = new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber())), e.PackageItems) {
                    if (!Array.isArray(e.PackageItems)) throw TypeError(".VipLevel_Config.PackageItems: array expected");
                    t.PackageItems = [];
                    for (var n = 0; n < e.PackageItems.length; ++n) {
                        if ("object" != typeof e.PackageItems[n]) throw TypeError(".VipLevel_Config.PackageItems: object expected");
                        t.PackageItems[n] = a.IntArray_Config.fromObject(e.PackageItems[n])
                    }
                }
                if (null != e.PackagePrice && (i.Long ? (t.PackagePrice = i.Long.fromValue(e.PackagePrice)).unsigned = !1 : "string" == typeof e.PackagePrice ? t.PackagePrice = parseInt(e.PackagePrice, 10) : "number" == typeof e.PackagePrice ? t.PackagePrice = e.PackagePrice : "object" == typeof e.PackagePrice && (t.PackagePrice = new i.LongBits(e.PackagePrice.low >>> 0, e.PackagePrice.high >>> 0).toNumber())), null != e.PackageShowPrice && (i.Long ? (t.PackageShowPrice = i.Long.fromValue(e.PackageShowPrice)).unsigned = !1 : "string" == typeof e.PackageShowPrice ? t.PackageShowPrice = parseInt(e.PackageShowPrice, 10) : "number" == typeof e.PackageShowPrice ? t.PackageShowPrice = e.PackageShowPrice : "object" == typeof e.PackageShowPrice && (t.PackageShowPrice = new i.LongBits(e.PackageShowPrice.low >>> 0, e.PackageShowPrice.high >>> 0).toNumber())), e.Privilege) {
                    if (!Array.isArray(e.Privilege)) throw TypeError(".VipLevel_Config.Privilege: array expected");
                    for (t.Privilege = [], n = 0; n < e.Privilege.length; ++n) {
                        if ("object" != typeof e.Privilege[n]) throw TypeError(".VipLevel_Config.Privilege: object expected");
                        t.Privilege[n] = a.IntArray_Config.fromObject(e.Privilege[n])
                    }
                }
                if (null != e.VisibleVIPLevel && (i.Long ? (t.VisibleVIPLevel = i.Long.fromValue(e.VisibleVIPLevel)).unsigned = !1 : "string" == typeof e.VisibleVIPLevel ? t.VisibleVIPLevel = parseInt(e.VisibleVIPLevel, 10) : "number" == typeof e.VisibleVIPLevel ? t.VisibleVIPLevel = e.VisibleVIPLevel : "object" == typeof e.VisibleVIPLevel && (t.VisibleVIPLevel = new i.LongBits(e.VisibleVIPLevel.low >>> 0, e.VisibleVIPLevel.high >>> 0).toNumber())), e.PackIds) {
                    if (!Array.isArray(e.PackIds)) throw TypeError(".VipLevel_Config.PackIds: array expected");
                    for (t.PackIds = [], n = 0; n < e.PackIds.length; ++n) i.Long ? (t.PackIds[n] = i.Long.fromValue(e.PackIds[n])).unsigned = !1 : "string" == typeof e.PackIds[n] ? t.PackIds[n] = parseInt(e.PackIds[n], 10) : "number" == typeof e.PackIds[n] ? t.PackIds[n] = e.PackIds[n] : "object" == typeof e.PackIds[n] && (t.PackIds[n] = new i.LongBits(e.PackIds[n].low >>> 0, e.PackIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PackageItems = [], n.Privilege = [], n.PackIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Point = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Point = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PackagePrice = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PackagePrice = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PackageShowPrice = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PackageShowPrice = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.VisibleVIPLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.VisibleVIPLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Point && e.hasOwnProperty("Point") && ("number" == typeof e.Point ? n.Point = t.longs === String ? String(e.Point) : e.Point : n.Point = t.longs === String ? i.Long.prototype.toString.call(e.Point) : t.longs === Number ? new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber() : e.Point), e.PackageItems && e.PackageItems.length) {
                    n.PackageItems = [];
                    for (var r = 0; r < e.PackageItems.length; ++r) n.PackageItems[r] = a.IntArray_Config.toObject(e.PackageItems[r], t)
                }
                if (null != e.PackagePrice && e.hasOwnProperty("PackagePrice") && ("number" == typeof e.PackagePrice ? n.PackagePrice = t.longs === String ? String(e.PackagePrice) : e.PackagePrice : n.PackagePrice = t.longs === String ? i.Long.prototype.toString.call(e.PackagePrice) : t.longs === Number ? new i.LongBits(e.PackagePrice.low >>> 0, e.PackagePrice.high >>> 0).toNumber() : e.PackagePrice), null != e.PackageShowPrice && e.hasOwnProperty("PackageShowPrice") && ("number" == typeof e.PackageShowPrice ? n.PackageShowPrice = t.longs === String ? String(e.PackageShowPrice) : e.PackageShowPrice : n.PackageShowPrice = t.longs === String ? i.Long.prototype.toString.call(e.PackageShowPrice) : t.longs === Number ? new i.LongBits(e.PackageShowPrice.low >>> 0, e.PackageShowPrice.high >>> 0).toNumber() : e.PackageShowPrice), e.Privilege && e.Privilege.length)
                    for (n.Privilege = [], r = 0; r < e.Privilege.length; ++r) n.Privilege[r] = a.IntArray_Config.toObject(e.Privilege[r], t);
                if (null != e.VisibleVIPLevel && e.hasOwnProperty("VisibleVIPLevel") && ("number" == typeof e.VisibleVIPLevel ? n.VisibleVIPLevel = t.longs === String ? String(e.VisibleVIPLevel) : e.VisibleVIPLevel : n.VisibleVIPLevel = t.longs === String ? i.Long.prototype.toString.call(e.VisibleVIPLevel) : t.longs === Number ? new i.LongBits(e.VisibleVIPLevel.low >>> 0, e.VisibleVIPLevel.high >>> 0).toNumber() : e.VisibleVIPLevel), e.PackIds && e.PackIds.length)
                    for (n.PackIds = [], r = 0; r < e.PackIds.length; ++r) "number" == typeof e.PackIds[r] ? n.PackIds[r] = t.longs === String ? String(e.PackIds[r]) : e.PackIds[r] : n.PackIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.PackIds[r]) : t.longs === Number ? new i.LongBits(e.PackIds[r].low >>> 0, e.PackIds[r].high >>> 0).toNumber() : e.PackIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/VipLevel_Config"
            }, e
        }(), a.TaskBase_Config = function() {
            function e(e) {
                if (this.Condition = [], this.UnlockCondition = [], this.ShowConditon = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Condition = i.emptyArray, e.prototype.TotalCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnlockCondition = i.emptyArray, e.prototype.ShowConditon = i.emptyArray, e.prototype.Point = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StartProgress = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GetWayId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Condition && e.Condition.length) {
                    t.uint32(42).fork();
                    for (var n = 0; n < e.Condition.length; ++n) t.int64(e.Condition[n]);
                    t.ldelim()
                }
                if (null != e.TotalCount && Object.hasOwnProperty.call(e, "TotalCount") && t.uint32(48).int64(e.TotalCount), null != e.UnlockCondition && e.UnlockCondition.length)
                    for (n = 0; n < e.UnlockCondition.length; ++n) a.IntArray_Config.encode(e.UnlockCondition[n], t.uint32(58).fork()).ldelim();
                if (null != e.ShowConditon && e.ShowConditon.length)
                    for (n = 0; n < e.ShowConditon.length; ++n) a.IntArray_Config.encode(e.ShowConditon[n], t.uint32(66).fork()).ldelim();
                if (null != e.Point && Object.hasOwnProperty.call(e, "Point") && t.uint32(72).int64(e.Point), null != e.StartProgress && Object.hasOwnProperty.call(e, "StartProgress") && t.uint32(80).int64(e.StartProgress), null != e.GetWayId && Object.hasOwnProperty.call(e, "GetWayId") && t.uint32(88).int64(e.GetWayId), null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(96).int64(e.SortId), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(106).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TaskBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 5:
                            if (r.Condition && r.Condition.length || (r.Condition = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Condition.push(e.int64());
                            else r.Condition.push(e.int64());
                            break;
                        case 6:
                            r.TotalCount = e.int64();
                            break;
                        case 7:
                            r.UnlockCondition && r.UnlockCondition.length || (r.UnlockCondition = []), r.UnlockCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.ShowConditon && r.ShowConditon.length || (r.ShowConditon = []), r.ShowConditon.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.Point = e.int64();
                            break;
                        case 10:
                            r.StartProgress = e.int64();
                            break;
                        case 11:
                            r.GetWayId = e.int64();
                            break;
                        case 12:
                            r.SortId = e.int64();
                            break;
                        case 13:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Condition && e.hasOwnProperty("Condition")) {
                    if (!Array.isArray(e.Condition)) return "Condition: array expected";
                    for (var t = 0; t < e.Condition.length; ++t)
                        if (!(i.isInteger(e.Condition[t]) || e.Condition[t] && i.isInteger(e.Condition[t].low) && i.isInteger(e.Condition[t].high))) return "Condition: integer|Long[] expected"
                }
                if (null != e.TotalCount && e.hasOwnProperty("TotalCount") && !(i.isInteger(e.TotalCount) || e.TotalCount && i.isInteger(e.TotalCount.low) && i.isInteger(e.TotalCount.high))) return "TotalCount: integer|Long expected";
                if (null != e.UnlockCondition && e.hasOwnProperty("UnlockCondition")) {
                    if (!Array.isArray(e.UnlockCondition)) return "UnlockCondition: array expected";
                    for (t = 0; t < e.UnlockCondition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.UnlockCondition[t])) return "UnlockCondition." + n
                }
                if (null != e.ShowConditon && e.hasOwnProperty("ShowConditon")) {
                    if (!Array.isArray(e.ShowConditon)) return "ShowConditon: array expected";
                    for (t = 0; t < e.ShowConditon.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ShowConditon[t])) return "ShowConditon." + n
                }
                if (null != e.Point && e.hasOwnProperty("Point") && !(i.isInteger(e.Point) || e.Point && i.isInteger(e.Point.low) && i.isInteger(e.Point.high))) return "Point: integer|Long expected";
                if (null != e.StartProgress && e.hasOwnProperty("StartProgress") && !(i.isInteger(e.StartProgress) || e.StartProgress && i.isInteger(e.StartProgress.low) && i.isInteger(e.StartProgress.high))) return "StartProgress: integer|Long expected";
                if (null != e.GetWayId && e.hasOwnProperty("GetWayId") && !(i.isInteger(e.GetWayId) || e.GetWayId && i.isInteger(e.GetWayId.low) && i.isInteger(e.GetWayId.high))) return "GetWayId: integer|Long expected";
                if (null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high))) return "SortId: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.TaskBase_Config) return e;
                var t = new a.TaskBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Condition) {
                    if (!Array.isArray(e.Condition)) throw TypeError(".TaskBase_Config.Condition: array expected");
                    t.Condition = [];
                    for (var n = 0; n < e.Condition.length; ++n) i.Long ? (t.Condition[n] = i.Long.fromValue(e.Condition[n])).unsigned = !1 : "string" == typeof e.Condition[n] ? t.Condition[n] = parseInt(e.Condition[n], 10) : "number" == typeof e.Condition[n] ? t.Condition[n] = e.Condition[n] : "object" == typeof e.Condition[n] && (t.Condition[n] = new i.LongBits(e.Condition[n].low >>> 0, e.Condition[n].high >>> 0).toNumber())
                }
                if (null != e.TotalCount && (i.Long ? (t.TotalCount = i.Long.fromValue(e.TotalCount)).unsigned = !1 : "string" == typeof e.TotalCount ? t.TotalCount = parseInt(e.TotalCount, 10) : "number" == typeof e.TotalCount ? t.TotalCount = e.TotalCount : "object" == typeof e.TotalCount && (t.TotalCount = new i.LongBits(e.TotalCount.low >>> 0, e.TotalCount.high >>> 0).toNumber())), e.UnlockCondition) {
                    if (!Array.isArray(e.UnlockCondition)) throw TypeError(".TaskBase_Config.UnlockCondition: array expected");
                    for (t.UnlockCondition = [], n = 0; n < e.UnlockCondition.length; ++n) {
                        if ("object" != typeof e.UnlockCondition[n]) throw TypeError(".TaskBase_Config.UnlockCondition: object expected");
                        t.UnlockCondition[n] = a.IntArray_Config.fromObject(e.UnlockCondition[n])
                    }
                }
                if (e.ShowConditon) {
                    if (!Array.isArray(e.ShowConditon)) throw TypeError(".TaskBase_Config.ShowConditon: array expected");
                    for (t.ShowConditon = [], n = 0; n < e.ShowConditon.length; ++n) {
                        if ("object" != typeof e.ShowConditon[n]) throw TypeError(".TaskBase_Config.ShowConditon: object expected");
                        t.ShowConditon[n] = a.IntArray_Config.fromObject(e.ShowConditon[n])
                    }
                }
                if (null != e.Point && (i.Long ? (t.Point = i.Long.fromValue(e.Point)).unsigned = !1 : "string" == typeof e.Point ? t.Point = parseInt(e.Point, 10) : "number" == typeof e.Point ? t.Point = e.Point : "object" == typeof e.Point && (t.Point = new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber())), null != e.StartProgress && (i.Long ? (t.StartProgress = i.Long.fromValue(e.StartProgress)).unsigned = !1 : "string" == typeof e.StartProgress ? t.StartProgress = parseInt(e.StartProgress, 10) : "number" == typeof e.StartProgress ? t.StartProgress = e.StartProgress : "object" == typeof e.StartProgress && (t.StartProgress = new i.LongBits(e.StartProgress.low >>> 0, e.StartProgress.high >>> 0).toNumber())), null != e.GetWayId && (i.Long ? (t.GetWayId = i.Long.fromValue(e.GetWayId)).unsigned = !1 : "string" == typeof e.GetWayId ? t.GetWayId = parseInt(e.GetWayId, 10) : "number" == typeof e.GetWayId ? t.GetWayId = e.GetWayId : "object" == typeof e.GetWayId && (t.GetWayId = new i.LongBits(e.GetWayId.low >>> 0, e.GetWayId.high >>> 0).toNumber())), null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".TaskBase_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".TaskBase_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Condition = [], n.UnlockCondition = [], n.ShowConditon = [], n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TotalCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TotalCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Point = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Point = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StartProgress = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StartProgress = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GetWayId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GetWayId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Condition && e.Condition.length) {
                    n.Condition = [];
                    for (var r = 0; r < e.Condition.length; ++r) "number" == typeof e.Condition[r] ? n.Condition[r] = t.longs === String ? String(e.Condition[r]) : e.Condition[r] : n.Condition[r] = t.longs === String ? i.Long.prototype.toString.call(e.Condition[r]) : t.longs === Number ? new i.LongBits(e.Condition[r].low >>> 0, e.Condition[r].high >>> 0).toNumber() : e.Condition[r]
                }
                if (null != e.TotalCount && e.hasOwnProperty("TotalCount") && ("number" == typeof e.TotalCount ? n.TotalCount = t.longs === String ? String(e.TotalCount) : e.TotalCount : n.TotalCount = t.longs === String ? i.Long.prototype.toString.call(e.TotalCount) : t.longs === Number ? new i.LongBits(e.TotalCount.low >>> 0, e.TotalCount.high >>> 0).toNumber() : e.TotalCount), e.UnlockCondition && e.UnlockCondition.length)
                    for (n.UnlockCondition = [], r = 0; r < e.UnlockCondition.length; ++r) n.UnlockCondition[r] = a.IntArray_Config.toObject(e.UnlockCondition[r], t);
                if (e.ShowConditon && e.ShowConditon.length)
                    for (n.ShowConditon = [], r = 0; r < e.ShowConditon.length; ++r) n.ShowConditon[r] = a.IntArray_Config.toObject(e.ShowConditon[r], t);
                if (null != e.Point && e.hasOwnProperty("Point") && ("number" == typeof e.Point ? n.Point = t.longs === String ? String(e.Point) : e.Point : n.Point = t.longs === String ? i.Long.prototype.toString.call(e.Point) : t.longs === Number ? new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber() : e.Point), null != e.StartProgress && e.hasOwnProperty("StartProgress") && ("number" == typeof e.StartProgress ? n.StartProgress = t.longs === String ? String(e.StartProgress) : e.StartProgress : n.StartProgress = t.longs === String ? i.Long.prototype.toString.call(e.StartProgress) : t.longs === Number ? new i.LongBits(e.StartProgress.low >>> 0, e.StartProgress.high >>> 0).toNumber() : e.StartProgress), null != e.GetWayId && e.hasOwnProperty("GetWayId") && ("number" == typeof e.GetWayId ? n.GetWayId = t.longs === String ? String(e.GetWayId) : e.GetWayId : n.GetWayId = t.longs === String ? i.Long.prototype.toString.call(e.GetWayId) : t.longs === Number ? new i.LongBits(e.GetWayId.low >>> 0, e.GetWayId.high >>> 0).toNumber() : e.GetWayId), null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TaskBase_Config"
            }, e
        }(), a.TaskPointReward_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Point = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Point && Object.hasOwnProperty.call(e, "Point") && t.uint32(16).int64(e.Point), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TaskPointReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Point = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Point && e.hasOwnProperty("Point") && !(i.isInteger(e.Point) || e.Point && i.isInteger(e.Point.low) && i.isInteger(e.Point.high))) return "Point: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.TaskPointReward_Config) return e;
                var t = new a.TaskPointReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Point && (i.Long ? (t.Point = i.Long.fromValue(e.Point)).unsigned = !1 : "string" == typeof e.Point ? t.Point = parseInt(e.Point, 10) : "number" == typeof e.Point ? t.Point = e.Point : "object" == typeof e.Point && (t.Point = new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".TaskPointReward_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".TaskPointReward_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Point = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Point = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Point && e.hasOwnProperty("Point") && ("number" == typeof e.Point ? n.Point = t.longs === String ? String(e.Point) : e.Point : n.Point = t.longs === String ? i.Long.prototype.toString.call(e.Point) : t.longs === Number ? new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber() : e.Point), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TaskPointReward_Config"
            }, e
        }(), a.PointRewardType_Config = function() {
            function e(e) {
                if (this.Nodes = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Nodes = i.emptyArray, e.prototype.ResetType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Nodes && e.Nodes.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Nodes.length; ++n) t.int64(e.Nodes[n]);
                    t.ldelim()
                }
                return null != e.ResetType && Object.hasOwnProperty.call(e, "ResetType") && t.uint32(24).int64(e.ResetType), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PointRewardType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Nodes && r.Nodes.length || (r.Nodes = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Nodes.push(e.int64());
                            else r.Nodes.push(e.int64());
                            break;
                        case 3:
                            r.ResetType = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Nodes && e.hasOwnProperty("Nodes")) {
                    if (!Array.isArray(e.Nodes)) return "Nodes: array expected";
                    for (var t = 0; t < e.Nodes.length; ++t)
                        if (!(i.isInteger(e.Nodes[t]) || e.Nodes[t] && i.isInteger(e.Nodes[t].low) && i.isInteger(e.Nodes[t].high))) return "Nodes: integer|Long[] expected"
                }
                return null != e.ResetType && e.hasOwnProperty("ResetType") && !(i.isInteger(e.ResetType) || e.ResetType && i.isInteger(e.ResetType.low) && i.isInteger(e.ResetType.high)) ? "ResetType: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PointRewardType_Config) return e;
                var t = new a.PointRewardType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Nodes) {
                    if (!Array.isArray(e.Nodes)) throw TypeError(".PointRewardType_Config.Nodes: array expected");
                    t.Nodes = [];
                    for (var n = 0; n < e.Nodes.length; ++n) i.Long ? (t.Nodes[n] = i.Long.fromValue(e.Nodes[n])).unsigned = !1 : "string" == typeof e.Nodes[n] ? t.Nodes[n] = parseInt(e.Nodes[n], 10) : "number" == typeof e.Nodes[n] ? t.Nodes[n] = e.Nodes[n] : "object" == typeof e.Nodes[n] && (t.Nodes[n] = new i.LongBits(e.Nodes[n].low >>> 0, e.Nodes[n].high >>> 0).toNumber())
                }
                return null != e.ResetType && (i.Long ? (t.ResetType = i.Long.fromValue(e.ResetType)).unsigned = !1 : "string" == typeof e.ResetType ? t.ResetType = parseInt(e.ResetType, 10) : "number" == typeof e.ResetType ? t.ResetType = e.ResetType : "object" == typeof e.ResetType && (t.ResetType = new i.LongBits(e.ResetType.low >>> 0, e.ResetType.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Nodes = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ResetType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ResetType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Nodes && e.Nodes.length) {
                    n.Nodes = [];
                    for (var r = 0; r < e.Nodes.length; ++r) "number" == typeof e.Nodes[r] ? n.Nodes[r] = t.longs === String ? String(e.Nodes[r]) : e.Nodes[r] : n.Nodes[r] = t.longs === String ? i.Long.prototype.toString.call(e.Nodes[r]) : t.longs === Number ? new i.LongBits(e.Nodes[r].low >>> 0, e.Nodes[r].high >>> 0).toNumber() : e.Nodes[r]
                }
                return null != e.ResetType && e.hasOwnProperty("ResetType") && ("number" == typeof e.ResetType ? n.ResetType = t.longs === String ? String(e.ResetType) : e.ResetType : n.ResetType = t.longs === String ? i.Long.prototype.toString.call(e.ResetType) : t.longs === Number ? new i.LongBits(e.ResetType.low >>> 0, e.ResetType.high >>> 0).toNumber() : e.ResetType), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PointRewardType_Config"
            }, e
        }(), a.CardRandomLib_Config = function() {
            function e(e) {
                if (this.ModifyChance = [], this.RandomLib = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StartChance = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ModifyChance = i.emptyArray, e.prototype.RandomLib = i.emptyArray, e.prototype.ElementType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MinCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.StartChance && Object.hasOwnProperty.call(e, "StartChance") && t.uint32(24).int64(e.StartChance), null != e.MaxCount && Object.hasOwnProperty.call(e, "MaxCount") && t.uint32(32).int64(e.MaxCount), null != e.ModifyChance && e.ModifyChance.length)
                    for (var n = 0; n < e.ModifyChance.length; ++n) a.IntArray_Config.encode(e.ModifyChance[n], t.uint32(58).fork()).ldelim();
                if (null != e.RandomLib && e.RandomLib.length)
                    for (n = 0; n < e.RandomLib.length; ++n) a.IntArray_Config.encode(e.RandomLib[n], t.uint32(66).fork()).ldelim();
                return null != e.ElementType && Object.hasOwnProperty.call(e, "ElementType") && t.uint32(72).int64(e.ElementType), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(80).int64(e.Count), null != e.MinCount && Object.hasOwnProperty.call(e, "MinCount") && t.uint32(88).int64(e.MinCount), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CardRandomLib_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.StartChance = e.int64();
                            break;
                        case 4:
                            r.MaxCount = e.int64();
                            break;
                        case 7:
                            r.ModifyChance && r.ModifyChance.length || (r.ModifyChance = []), r.ModifyChance.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.RandomLib && r.RandomLib.length || (r.RandomLib = []), r.RandomLib.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.ElementType = e.int64();
                            break;
                        case 10:
                            r.Count = e.int64();
                            break;
                        case 11:
                            r.MinCount = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.StartChance && e.hasOwnProperty("StartChance") && !(i.isInteger(e.StartChance) || e.StartChance && i.isInteger(e.StartChance.low) && i.isInteger(e.StartChance.high))) return "StartChance: integer|Long expected";
                if (null != e.MaxCount && e.hasOwnProperty("MaxCount") && !(i.isInteger(e.MaxCount) || e.MaxCount && i.isInteger(e.MaxCount.low) && i.isInteger(e.MaxCount.high))) return "MaxCount: integer|Long expected";
                if (null != e.ModifyChance && e.hasOwnProperty("ModifyChance")) {
                    if (!Array.isArray(e.ModifyChance)) return "ModifyChance: array expected";
                    for (var t = 0; t < e.ModifyChance.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ModifyChance[t])) return "ModifyChance." + n
                }
                if (null != e.RandomLib && e.hasOwnProperty("RandomLib")) {
                    if (!Array.isArray(e.RandomLib)) return "RandomLib: array expected";
                    for (t = 0; t < e.RandomLib.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.RandomLib[t])) return "RandomLib." + n
                    }
                }
                return null != e.ElementType && e.hasOwnProperty("ElementType") && !(i.isInteger(e.ElementType) || e.ElementType && i.isInteger(e.ElementType.low) && i.isInteger(e.ElementType.high)) ? "ElementType: integer|Long expected" : null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null != e.MinCount && e.hasOwnProperty("MinCount") && !(i.isInteger(e.MinCount) || e.MinCount && i.isInteger(e.MinCount.low) && i.isInteger(e.MinCount.high)) ? "MinCount: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CardRandomLib_Config) return e;
                var t = new a.CardRandomLib_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.StartChance && (i.Long ? (t.StartChance = i.Long.fromValue(e.StartChance)).unsigned = !1 : "string" == typeof e.StartChance ? t.StartChance = parseInt(e.StartChance, 10) : "number" == typeof e.StartChance ? t.StartChance = e.StartChance : "object" == typeof e.StartChance && (t.StartChance = new i.LongBits(e.StartChance.low >>> 0, e.StartChance.high >>> 0).toNumber())), null != e.MaxCount && (i.Long ? (t.MaxCount = i.Long.fromValue(e.MaxCount)).unsigned = !1 : "string" == typeof e.MaxCount ? t.MaxCount = parseInt(e.MaxCount, 10) : "number" == typeof e.MaxCount ? t.MaxCount = e.MaxCount : "object" == typeof e.MaxCount && (t.MaxCount = new i.LongBits(e.MaxCount.low >>> 0, e.MaxCount.high >>> 0).toNumber())), e.ModifyChance) {
                    if (!Array.isArray(e.ModifyChance)) throw TypeError(".CardRandomLib_Config.ModifyChance: array expected");
                    t.ModifyChance = [];
                    for (var n = 0; n < e.ModifyChance.length; ++n) {
                        if ("object" != typeof e.ModifyChance[n]) throw TypeError(".CardRandomLib_Config.ModifyChance: object expected");
                        t.ModifyChance[n] = a.IntArray_Config.fromObject(e.ModifyChance[n])
                    }
                }
                if (e.RandomLib) {
                    if (!Array.isArray(e.RandomLib)) throw TypeError(".CardRandomLib_Config.RandomLib: array expected");
                    for (t.RandomLib = [], n = 0; n < e.RandomLib.length; ++n) {
                        if ("object" != typeof e.RandomLib[n]) throw TypeError(".CardRandomLib_Config.RandomLib: object expected");
                        t.RandomLib[n] = a.IntArray_Config.fromObject(e.RandomLib[n])
                    }
                }
                return null != e.ElementType && (i.Long ? (t.ElementType = i.Long.fromValue(e.ElementType)).unsigned = !1 : "string" == typeof e.ElementType ? t.ElementType = parseInt(e.ElementType, 10) : "number" == typeof e.ElementType ? t.ElementType = e.ElementType : "object" == typeof e.ElementType && (t.ElementType = new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber())), null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), null != e.MinCount && (i.Long ? (t.MinCount = i.Long.fromValue(e.MinCount)).unsigned = !1 : "string" == typeof e.MinCount ? t.MinCount = parseInt(e.MinCount, 10) : "number" == typeof e.MinCount ? t.MinCount = e.MinCount : "object" == typeof e.MinCount && (t.MinCount = new i.LongBits(e.MinCount.low >>> 0, e.MinCount.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ModifyChance = [], n.RandomLib = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.StartChance = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StartChance = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ElementType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ElementType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MinCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MinCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.StartChance && e.hasOwnProperty("StartChance") && ("number" == typeof e.StartChance ? n.StartChance = t.longs === String ? String(e.StartChance) : e.StartChance : n.StartChance = t.longs === String ? i.Long.prototype.toString.call(e.StartChance) : t.longs === Number ? new i.LongBits(e.StartChance.low >>> 0, e.StartChance.high >>> 0).toNumber() : e.StartChance), null != e.MaxCount && e.hasOwnProperty("MaxCount") && ("number" == typeof e.MaxCount ? n.MaxCount = t.longs === String ? String(e.MaxCount) : e.MaxCount : n.MaxCount = t.longs === String ? i.Long.prototype.toString.call(e.MaxCount) : t.longs === Number ? new i.LongBits(e.MaxCount.low >>> 0, e.MaxCount.high >>> 0).toNumber() : e.MaxCount), e.ModifyChance && e.ModifyChance.length) {
                    n.ModifyChance = [];
                    for (var r = 0; r < e.ModifyChance.length; ++r) n.ModifyChance[r] = a.IntArray_Config.toObject(e.ModifyChance[r], t)
                }
                if (e.RandomLib && e.RandomLib.length)
                    for (n.RandomLib = [], r = 0; r < e.RandomLib.length; ++r) n.RandomLib[r] = a.IntArray_Config.toObject(e.RandomLib[r], t);
                return null != e.ElementType && e.hasOwnProperty("ElementType") && ("number" == typeof e.ElementType ? n.ElementType = t.longs === String ? String(e.ElementType) : e.ElementType : n.ElementType = t.longs === String ? i.Long.prototype.toString.call(e.ElementType) : t.longs === Number ? new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber() : e.ElementType), null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), null != e.MinCount && e.hasOwnProperty("MinCount") && ("number" == typeof e.MinCount ? n.MinCount = t.longs === String ? String(e.MinCount) : e.MinCount : n.MinCount = t.longs === String ? i.Long.prototype.toString.call(e.MinCount) : t.longs === Number ? new i.LongBits(e.MinCount.low >>> 0, e.MinCount.high >>> 0).toNumber() : e.MinCount), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CardRandomLib_Config"
            }, e
        }(), a.CardShowChance_Config = function() {
            function e(e) {
                if (this.ShowLib = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowLib = i.emptyArray, e.prototype.ElementType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Ratio = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ShowLib && e.ShowLib.length)
                    for (var n = 0; n < e.ShowLib.length; ++n) a.IntArray_Config.encode(e.ShowLib[n], t.uint32(34).fork()).ldelim();
                return null != e.ElementType && Object.hasOwnProperty.call(e, "ElementType") && t.uint32(40).int64(e.ElementType), null != e.Ratio && Object.hasOwnProperty.call(e, "Ratio") && t.uint32(48).int64(e.Ratio), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CardShowChance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.ShowLib && r.ShowLib.length || (r.ShowLib = []), r.ShowLib.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.ElementType = e.int64();
                            break;
                        case 6:
                            r.Ratio = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.ShowLib && e.hasOwnProperty("ShowLib")) {
                    if (!Array.isArray(e.ShowLib)) return "ShowLib: array expected";
                    for (var t = 0; t < e.ShowLib.length; ++t) {
                        var n = a.IntArray_Config.verify(e.ShowLib[t]);
                        if (n) return "ShowLib." + n
                    }
                }
                return null != e.ElementType && e.hasOwnProperty("ElementType") && !(i.isInteger(e.ElementType) || e.ElementType && i.isInteger(e.ElementType.low) && i.isInteger(e.ElementType.high)) ? "ElementType: integer|Long expected" : null != e.Ratio && e.hasOwnProperty("Ratio") && !(i.isInteger(e.Ratio) || e.Ratio && i.isInteger(e.Ratio.low) && i.isInteger(e.Ratio.high)) ? "Ratio: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CardShowChance_Config) return e;
                var t = new a.CardShowChance_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.ShowLib) {
                    if (!Array.isArray(e.ShowLib)) throw TypeError(".CardShowChance_Config.ShowLib: array expected");
                    t.ShowLib = [];
                    for (var n = 0; n < e.ShowLib.length; ++n) {
                        if ("object" != typeof e.ShowLib[n]) throw TypeError(".CardShowChance_Config.ShowLib: object expected");
                        t.ShowLib[n] = a.IntArray_Config.fromObject(e.ShowLib[n])
                    }
                }
                return null != e.ElementType && (i.Long ? (t.ElementType = i.Long.fromValue(e.ElementType)).unsigned = !1 : "string" == typeof e.ElementType ? t.ElementType = parseInt(e.ElementType, 10) : "number" == typeof e.ElementType ? t.ElementType = e.ElementType : "object" == typeof e.ElementType && (t.ElementType = new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber())), null != e.Ratio && (i.Long ? (t.Ratio = i.Long.fromValue(e.Ratio)).unsigned = !1 : "string" == typeof e.Ratio ? t.Ratio = parseInt(e.Ratio, 10) : "number" == typeof e.Ratio ? t.Ratio = e.Ratio : "object" == typeof e.Ratio && (t.Ratio = new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ShowLib = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ElementType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ElementType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Ratio = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Ratio = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.ShowLib && e.ShowLib.length) {
                    n.ShowLib = [];
                    for (var r = 0; r < e.ShowLib.length; ++r) n.ShowLib[r] = a.IntArray_Config.toObject(e.ShowLib[r], t)
                }
                return null != e.ElementType && e.hasOwnProperty("ElementType") && ("number" == typeof e.ElementType ? n.ElementType = t.longs === String ? String(e.ElementType) : e.ElementType : n.ElementType = t.longs === String ? i.Long.prototype.toString.call(e.ElementType) : t.longs === Number ? new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber() : e.ElementType), null != e.Ratio && e.hasOwnProperty("Ratio") && ("number" == typeof e.Ratio ? n.Ratio = t.longs === String ? String(e.Ratio) : e.Ratio : n.Ratio = t.longs === String ? i.Long.prototype.toString.call(e.Ratio) : t.longs === Number ? new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber() : e.Ratio), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CardShowChance_Config"
            }, e
        }(), a.CardSummonType_Config = function() {
            function e(e) {
                if (this.Libs = [], this.ResetLibs = [], this.OnceLibs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Libs = i.emptyArray, e.prototype.ResetLibs = i.emptyArray, e.prototype.OnceLibs = i.emptyArray, e.prototype.StartFreeCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DailyFreeCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Libs && e.Libs.length)
                    for (var n = 0; n < e.Libs.length; ++n) a.IntArray_Config.encode(e.Libs[n], t.uint32(26).fork()).ldelim();
                if (null != e.ResetLibs && e.ResetLibs.length)
                    for (n = 0; n < e.ResetLibs.length; ++n) a.IntArray_Config.encode(e.ResetLibs[n], t.uint32(90).fork()).ldelim();
                if (null != e.OnceLibs && e.OnceLibs.length) {
                    for (t.uint32(98).fork(), n = 0; n < e.OnceLibs.length; ++n) t.int64(e.OnceLibs[n]);
                    t.ldelim()
                }
                return null != e.StartFreeCount && Object.hasOwnProperty.call(e, "StartFreeCount") && t.uint32(104).int64(e.StartFreeCount), null != e.DailyFreeCount && Object.hasOwnProperty.call(e, "DailyFreeCount") && t.uint32(112).int64(e.DailyFreeCount), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CardSummonType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Libs && r.Libs.length || (r.Libs = []), r.Libs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 11:
                            r.ResetLibs && r.ResetLibs.length || (r.ResetLibs = []), r.ResetLibs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 12:
                            if (r.OnceLibs && r.OnceLibs.length || (r.OnceLibs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.OnceLibs.push(e.int64());
                            else r.OnceLibs.push(e.int64());
                            break;
                        case 13:
                            r.StartFreeCount = e.int64();
                            break;
                        case 14:
                            r.DailyFreeCount = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Libs && e.hasOwnProperty("Libs")) {
                    if (!Array.isArray(e.Libs)) return "Libs: array expected";
                    for (var t = 0; t < e.Libs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Libs[t])) return "Libs." + n
                }
                if (null != e.ResetLibs && e.hasOwnProperty("ResetLibs")) {
                    if (!Array.isArray(e.ResetLibs)) return "ResetLibs: array expected";
                    for (t = 0; t < e.ResetLibs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ResetLibs[t])) return "ResetLibs." + n
                    }
                }
                if (null != e.OnceLibs && e.hasOwnProperty("OnceLibs")) {
                    if (!Array.isArray(e.OnceLibs)) return "OnceLibs: array expected";
                    for (t = 0; t < e.OnceLibs.length; ++t)
                        if (!(i.isInteger(e.OnceLibs[t]) || e.OnceLibs[t] && i.isInteger(e.OnceLibs[t].low) && i.isInteger(e.OnceLibs[t].high))) return "OnceLibs: integer|Long[] expected"
                }
                return null != e.StartFreeCount && e.hasOwnProperty("StartFreeCount") && !(i.isInteger(e.StartFreeCount) || e.StartFreeCount && i.isInteger(e.StartFreeCount.low) && i.isInteger(e.StartFreeCount.high)) ? "StartFreeCount: integer|Long expected" : null != e.DailyFreeCount && e.hasOwnProperty("DailyFreeCount") && !(i.isInteger(e.DailyFreeCount) || e.DailyFreeCount && i.isInteger(e.DailyFreeCount.low) && i.isInteger(e.DailyFreeCount.high)) ? "DailyFreeCount: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CardSummonType_Config) return e;
                var t = new a.CardSummonType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Libs) {
                    if (!Array.isArray(e.Libs)) throw TypeError(".CardSummonType_Config.Libs: array expected");
                    t.Libs = [];
                    for (var n = 0; n < e.Libs.length; ++n) {
                        if ("object" != typeof e.Libs[n]) throw TypeError(".CardSummonType_Config.Libs: object expected");
                        t.Libs[n] = a.IntArray_Config.fromObject(e.Libs[n])
                    }
                }
                if (e.ResetLibs) {
                    if (!Array.isArray(e.ResetLibs)) throw TypeError(".CardSummonType_Config.ResetLibs: array expected");
                    for (t.ResetLibs = [], n = 0; n < e.ResetLibs.length; ++n) {
                        if ("object" != typeof e.ResetLibs[n]) throw TypeError(".CardSummonType_Config.ResetLibs: object expected");
                        t.ResetLibs[n] = a.IntArray_Config.fromObject(e.ResetLibs[n])
                    }
                }
                if (e.OnceLibs) {
                    if (!Array.isArray(e.OnceLibs)) throw TypeError(".CardSummonType_Config.OnceLibs: array expected");
                    for (t.OnceLibs = [], n = 0; n < e.OnceLibs.length; ++n) i.Long ? (t.OnceLibs[n] = i.Long.fromValue(e.OnceLibs[n])).unsigned = !1 : "string" == typeof e.OnceLibs[n] ? t.OnceLibs[n] = parseInt(e.OnceLibs[n], 10) : "number" == typeof e.OnceLibs[n] ? t.OnceLibs[n] = e.OnceLibs[n] : "object" == typeof e.OnceLibs[n] && (t.OnceLibs[n] = new i.LongBits(e.OnceLibs[n].low >>> 0, e.OnceLibs[n].high >>> 0).toNumber())
                }
                return null != e.StartFreeCount && (i.Long ? (t.StartFreeCount = i.Long.fromValue(e.StartFreeCount)).unsigned = !1 : "string" == typeof e.StartFreeCount ? t.StartFreeCount = parseInt(e.StartFreeCount, 10) : "number" == typeof e.StartFreeCount ? t.StartFreeCount = e.StartFreeCount : "object" == typeof e.StartFreeCount && (t.StartFreeCount = new i.LongBits(e.StartFreeCount.low >>> 0, e.StartFreeCount.high >>> 0).toNumber())), null != e.DailyFreeCount && (i.Long ? (t.DailyFreeCount = i.Long.fromValue(e.DailyFreeCount)).unsigned = !1 : "string" == typeof e.DailyFreeCount ? t.DailyFreeCount = parseInt(e.DailyFreeCount, 10) : "number" == typeof e.DailyFreeCount ? t.DailyFreeCount = e.DailyFreeCount : "object" == typeof e.DailyFreeCount && (t.DailyFreeCount = new i.LongBits(e.DailyFreeCount.low >>> 0, e.DailyFreeCount.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Libs = [], n.ResetLibs = [], n.OnceLibs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.StartFreeCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StartFreeCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DailyFreeCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DailyFreeCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Libs && e.Libs.length) {
                    n.Libs = [];
                    for (var r = 0; r < e.Libs.length; ++r) n.Libs[r] = a.IntArray_Config.toObject(e.Libs[r], t)
                }
                if (e.ResetLibs && e.ResetLibs.length)
                    for (n.ResetLibs = [], r = 0; r < e.ResetLibs.length; ++r) n.ResetLibs[r] = a.IntArray_Config.toObject(e.ResetLibs[r], t);
                if (e.OnceLibs && e.OnceLibs.length)
                    for (n.OnceLibs = [], r = 0; r < e.OnceLibs.length; ++r) "number" == typeof e.OnceLibs[r] ? n.OnceLibs[r] = t.longs === String ? String(e.OnceLibs[r]) : e.OnceLibs[r] : n.OnceLibs[r] = t.longs === String ? i.Long.prototype.toString.call(e.OnceLibs[r]) : t.longs === Number ? new i.LongBits(e.OnceLibs[r].low >>> 0, e.OnceLibs[r].high >>> 0).toNumber() : e.OnceLibs[r];
                return null != e.StartFreeCount && e.hasOwnProperty("StartFreeCount") && ("number" == typeof e.StartFreeCount ? n.StartFreeCount = t.longs === String ? String(e.StartFreeCount) : e.StartFreeCount : n.StartFreeCount = t.longs === String ? i.Long.prototype.toString.call(e.StartFreeCount) : t.longs === Number ? new i.LongBits(e.StartFreeCount.low >>> 0, e.StartFreeCount.high >>> 0).toNumber() : e.StartFreeCount), null != e.DailyFreeCount && e.hasOwnProperty("DailyFreeCount") && ("number" == typeof e.DailyFreeCount ? n.DailyFreeCount = t.longs === String ? String(e.DailyFreeCount) : e.DailyFreeCount : n.DailyFreeCount = t.longs === String ? i.Long.prototype.toString.call(e.DailyFreeCount) : t.longs === Number ? new i.LongBits(e.DailyFreeCount.low >>> 0, e.DailyFreeCount.high >>> 0).toNumber() : e.DailyFreeCount), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CardSummonType_Config"
            }, e
        }(), a.HeroFetter_Config = function() {
            function e(e) {
                if (this.HeroIds = [], this.Skills = [], this.BackgroundPicture = [], this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroIds = i.emptyArray, e.prototype.Skills = i.emptyArray, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BackgroundPicture = i.emptyArray, e.prototype.Icon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Element = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroIds && e.HeroIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.HeroIds.length; ++n) t.int64(e.HeroIds[n]);
                    t.ldelim()
                }
                if (null != e.Skills && e.Skills.length)
                    for (n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(34).fork()).ldelim();
                if (null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(64).int64(e.SortId), null != e.BackgroundPicture && e.BackgroundPicture.length)
                    for (n = 0; n < e.BackgroundPicture.length; ++n) t.uint32(74).string(e.BackgroundPicture[n]);
                if (null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(80).int64(e.Icon), null != e.Element && Object.hasOwnProperty.call(e, "Element") && t.uint32(88).int64(e.Element), null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(98).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroFetter_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.HeroIds && r.HeroIds.length || (r.HeroIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.HeroIds.push(e.int64());
                            else r.HeroIds.push(e.int64());
                            break;
                        case 4:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.SortId = e.int64();
                            break;
                        case 9:
                            r.BackgroundPicture && r.BackgroundPicture.length || (r.BackgroundPicture = []), r.BackgroundPicture.push(e.string());
                            break;
                        case 10:
                            r.Icon = e.int64();
                            break;
                        case 11:
                            r.Element = e.int64();
                            break;
                        case 12:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroIds && e.hasOwnProperty("HeroIds")) {
                    if (!Array.isArray(e.HeroIds)) return "HeroIds: array expected";
                    for (var t = 0; t < e.HeroIds.length; ++t)
                        if (!(i.isInteger(e.HeroIds[t]) || e.HeroIds[t] && i.isInteger(e.HeroIds[t].low) && i.isInteger(e.HeroIds[t].high))) return "HeroIds: integer|Long[] expected"
                }
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (t = 0; t < e.Skills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                }
                if (null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high))) return "SortId: integer|Long expected";
                if (null != e.BackgroundPicture && e.hasOwnProperty("BackgroundPicture")) {
                    if (!Array.isArray(e.BackgroundPicture)) return "BackgroundPicture: array expected";
                    for (t = 0; t < e.BackgroundPicture.length; ++t)
                        if (!i.isString(e.BackgroundPicture[t])) return "BackgroundPicture: string[] expected"
                }
                if (null != e.Icon && e.hasOwnProperty("Icon") && !(i.isInteger(e.Icon) || e.Icon && i.isInteger(e.Icon.low) && i.isInteger(e.Icon.high))) return "Icon: integer|Long expected";
                if (null != e.Element && e.hasOwnProperty("Element") && !(i.isInteger(e.Element) || e.Element && i.isInteger(e.Element.low) && i.isInteger(e.Element.high))) return "Element: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroFetter_Config) return e;
                var t = new a.HeroFetter_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.HeroIds) {
                    if (!Array.isArray(e.HeroIds)) throw TypeError(".HeroFetter_Config.HeroIds: array expected");
                    t.HeroIds = [];
                    for (var n = 0; n < e.HeroIds.length; ++n) i.Long ? (t.HeroIds[n] = i.Long.fromValue(e.HeroIds[n])).unsigned = !1 : "string" == typeof e.HeroIds[n] ? t.HeroIds[n] = parseInt(e.HeroIds[n], 10) : "number" == typeof e.HeroIds[n] ? t.HeroIds[n] = e.HeroIds[n] : "object" == typeof e.HeroIds[n] && (t.HeroIds[n] = new i.LongBits(e.HeroIds[n].low >>> 0, e.HeroIds[n].high >>> 0).toNumber())
                }
                if (e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".HeroFetter_Config.Skills: array expected");
                    for (t.Skills = [], n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".HeroFetter_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), e.BackgroundPicture) {
                    if (!Array.isArray(e.BackgroundPicture)) throw TypeError(".HeroFetter_Config.BackgroundPicture: array expected");
                    for (t.BackgroundPicture = [], n = 0; n < e.BackgroundPicture.length; ++n) t.BackgroundPicture[n] = String(e.BackgroundPicture[n])
                }
                if (null != e.Icon && (i.Long ? (t.Icon = i.Long.fromValue(e.Icon)).unsigned = !1 : "string" == typeof e.Icon ? t.Icon = parseInt(e.Icon, 10) : "number" == typeof e.Icon ? t.Icon = e.Icon : "object" == typeof e.Icon && (t.Icon = new i.LongBits(e.Icon.low >>> 0, e.Icon.high >>> 0).toNumber())), null != e.Element && (i.Long ? (t.Element = i.Long.fromValue(e.Element)).unsigned = !1 : "string" == typeof e.Element ? t.Element = parseInt(e.Element, 10) : "number" == typeof e.Element ? t.Element = e.Element : "object" == typeof e.Element && (t.Element = new i.LongBits(e.Element.low >>> 0, e.Element.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroFetter_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroFetter_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.HeroIds = [], n.Skills = [], n.BackgroundPicture = [], n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Icon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Icon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Element = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Element = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.HeroIds && e.HeroIds.length) {
                    n.HeroIds = [];
                    for (var r = 0; r < e.HeroIds.length; ++r) "number" == typeof e.HeroIds[r] ? n.HeroIds[r] = t.longs === String ? String(e.HeroIds[r]) : e.HeroIds[r] : n.HeroIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.HeroIds[r]) : t.longs === Number ? new i.LongBits(e.HeroIds[r].low >>> 0, e.HeroIds[r].high >>> 0).toNumber() : e.HeroIds[r]
                }
                if (e.Skills && e.Skills.length)
                    for (n.Skills = [], r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t);
                if (null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), e.BackgroundPicture && e.BackgroundPicture.length)
                    for (n.BackgroundPicture = [], r = 0; r < e.BackgroundPicture.length; ++r) n.BackgroundPicture[r] = e.BackgroundPicture[r];
                if (null != e.Icon && e.hasOwnProperty("Icon") && ("number" == typeof e.Icon ? n.Icon = t.longs === String ? String(e.Icon) : e.Icon : n.Icon = t.longs === String ? i.Long.prototype.toString.call(e.Icon) : t.longs === Number ? new i.LongBits(e.Icon.low >>> 0, e.Icon.high >>> 0).toNumber() : e.Icon), null != e.Element && e.hasOwnProperty("Element") && ("number" == typeof e.Element ? n.Element = t.longs === String ? String(e.Element) : e.Element : n.Element = t.longs === String ? i.Long.prototype.toString.call(e.Element) : t.longs === Number ? new i.LongBits(e.Element.low >>> 0, e.Element.high >>> 0).toNumber() : e.Element), e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroFetter_Config"
            }, e
        }(), a.CardCommonSummon_Config = function() {
            function e(e) {
                if (this.ConsumeItem = [], this.ExtraReward = [], this.ShowLibs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ConsumeItem = i.emptyArray, e.prototype.SummonCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SummonType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ExtraReward = i.emptyArray, e.prototype.ShowLibs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ConsumeItem && e.ConsumeItem.length)
                    for (var n = 0; n < e.ConsumeItem.length; ++n) a.IntArray_Config.encode(e.ConsumeItem[n], t.uint32(26).fork()).ldelim();
                if (null != e.SummonCount && Object.hasOwnProperty.call(e, "SummonCount") && t.uint32(32).int64(e.SummonCount), null != e.SummonType && Object.hasOwnProperty.call(e, "SummonType") && t.uint32(40).int64(e.SummonType), null != e.ExtraReward && e.ExtraReward.length)
                    for (n = 0; n < e.ExtraReward.length; ++n) a.IntArray_Config.encode(e.ExtraReward[n], t.uint32(50).fork()).ldelim();
                if (null != e.ShowLibs && e.ShowLibs.length)
                    for (n = 0; n < e.ShowLibs.length; ++n) a.IntArray_Config.encode(e.ShowLibs[n], t.uint32(74).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CardCommonSummon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.ConsumeItem && r.ConsumeItem.length || (r.ConsumeItem = []), r.ConsumeItem.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.SummonCount = e.int64();
                            break;
                        case 5:
                            r.SummonType = e.int64();
                            break;
                        case 6:
                            r.ExtraReward && r.ExtraReward.length || (r.ExtraReward = []), r.ExtraReward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.ShowLibs && r.ShowLibs.length || (r.ShowLibs = []), r.ShowLibs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.ConsumeItem && e.hasOwnProperty("ConsumeItem")) {
                    if (!Array.isArray(e.ConsumeItem)) return "ConsumeItem: array expected";
                    for (var t = 0; t < e.ConsumeItem.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ConsumeItem[t])) return "ConsumeItem." + n
                }
                if (null != e.SummonCount && e.hasOwnProperty("SummonCount") && !(i.isInteger(e.SummonCount) || e.SummonCount && i.isInteger(e.SummonCount.low) && i.isInteger(e.SummonCount.high))) return "SummonCount: integer|Long expected";
                if (null != e.SummonType && e.hasOwnProperty("SummonType") && !(i.isInteger(e.SummonType) || e.SummonType && i.isInteger(e.SummonType.low) && i.isInteger(e.SummonType.high))) return "SummonType: integer|Long expected";
                if (null != e.ExtraReward && e.hasOwnProperty("ExtraReward")) {
                    if (!Array.isArray(e.ExtraReward)) return "ExtraReward: array expected";
                    for (t = 0; t < e.ExtraReward.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ExtraReward[t])) return "ExtraReward." + n
                }
                if (null != e.ShowLibs && e.hasOwnProperty("ShowLibs")) {
                    if (!Array.isArray(e.ShowLibs)) return "ShowLibs: array expected";
                    for (t = 0; t < e.ShowLibs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ShowLibs[t])) return "ShowLibs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CardCommonSummon_Config) return e;
                var t = new a.CardCommonSummon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.ConsumeItem) {
                    if (!Array.isArray(e.ConsumeItem)) throw TypeError(".CardCommonSummon_Config.ConsumeItem: array expected");
                    t.ConsumeItem = [];
                    for (var n = 0; n < e.ConsumeItem.length; ++n) {
                        if ("object" != typeof e.ConsumeItem[n]) throw TypeError(".CardCommonSummon_Config.ConsumeItem: object expected");
                        t.ConsumeItem[n] = a.IntArray_Config.fromObject(e.ConsumeItem[n])
                    }
                }
                if (null != e.SummonCount && (i.Long ? (t.SummonCount = i.Long.fromValue(e.SummonCount)).unsigned = !1 : "string" == typeof e.SummonCount ? t.SummonCount = parseInt(e.SummonCount, 10) : "number" == typeof e.SummonCount ? t.SummonCount = e.SummonCount : "object" == typeof e.SummonCount && (t.SummonCount = new i.LongBits(e.SummonCount.low >>> 0, e.SummonCount.high >>> 0).toNumber())), null != e.SummonType && (i.Long ? (t.SummonType = i.Long.fromValue(e.SummonType)).unsigned = !1 : "string" == typeof e.SummonType ? t.SummonType = parseInt(e.SummonType, 10) : "number" == typeof e.SummonType ? t.SummonType = e.SummonType : "object" == typeof e.SummonType && (t.SummonType = new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber())), e.ExtraReward) {
                    if (!Array.isArray(e.ExtraReward)) throw TypeError(".CardCommonSummon_Config.ExtraReward: array expected");
                    for (t.ExtraReward = [], n = 0; n < e.ExtraReward.length; ++n) {
                        if ("object" != typeof e.ExtraReward[n]) throw TypeError(".CardCommonSummon_Config.ExtraReward: object expected");
                        t.ExtraReward[n] = a.IntArray_Config.fromObject(e.ExtraReward[n])
                    }
                }
                if (e.ShowLibs) {
                    if (!Array.isArray(e.ShowLibs)) throw TypeError(".CardCommonSummon_Config.ShowLibs: array expected");
                    for (t.ShowLibs = [], n = 0; n < e.ShowLibs.length; ++n) {
                        if ("object" != typeof e.ShowLibs[n]) throw TypeError(".CardCommonSummon_Config.ShowLibs: object expected");
                        t.ShowLibs[n] = a.IntArray_Config.fromObject(e.ShowLibs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ConsumeItem = [], n.ExtraReward = [], n.ShowLibs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SummonCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SummonCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SummonType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SummonType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.ConsumeItem && e.ConsumeItem.length) {
                    n.ConsumeItem = [];
                    for (var r = 0; r < e.ConsumeItem.length; ++r) n.ConsumeItem[r] = a.IntArray_Config.toObject(e.ConsumeItem[r], t)
                }
                if (null != e.SummonCount && e.hasOwnProperty("SummonCount") && ("number" == typeof e.SummonCount ? n.SummonCount = t.longs === String ? String(e.SummonCount) : e.SummonCount : n.SummonCount = t.longs === String ? i.Long.prototype.toString.call(e.SummonCount) : t.longs === Number ? new i.LongBits(e.SummonCount.low >>> 0, e.SummonCount.high >>> 0).toNumber() : e.SummonCount), null != e.SummonType && e.hasOwnProperty("SummonType") && ("number" == typeof e.SummonType ? n.SummonType = t.longs === String ? String(e.SummonType) : e.SummonType : n.SummonType = t.longs === String ? i.Long.prototype.toString.call(e.SummonType) : t.longs === Number ? new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber() : e.SummonType), e.ExtraReward && e.ExtraReward.length)
                    for (n.ExtraReward = [], r = 0; r < e.ExtraReward.length; ++r) n.ExtraReward[r] = a.IntArray_Config.toObject(e.ExtraReward[r], t);
                if (e.ShowLibs && e.ShowLibs.length)
                    for (n.ShowLibs = [], r = 0; r < e.ShowLibs.length; ++r) n.ShowLibs[r] = a.IntArray_Config.toObject(e.ShowLibs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CardCommonSummon_Config"
            }, e
        }(), a.CardProphetSummon_Config = function() {
            function e(e) {
                if (this.ExtraReward = [], this.ShowLibs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CurrencyId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BaseCurrencyCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AdvCurrencyCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ExtraReward = i.emptyArray, e.prototype.SummonType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowLibs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.CurrencyId && Object.hasOwnProperty.call(e, "CurrencyId") && t.uint32(16).int64(e.CurrencyId), null != e.BaseCurrencyCount && Object.hasOwnProperty.call(e, "BaseCurrencyCount") && t.uint32(24).int64(e.BaseCurrencyCount), null != e.AdvCurrencyCount && Object.hasOwnProperty.call(e, "AdvCurrencyCount") && t.uint32(32).int64(e.AdvCurrencyCount), null != e.ExtraReward && e.ExtraReward.length)
                    for (var n = 0; n < e.ExtraReward.length; ++n) a.IntArray_Config.encode(e.ExtraReward[n], t.uint32(42).fork()).ldelim();
                if (null != e.SummonType && Object.hasOwnProperty.call(e, "SummonType") && t.uint32(48).int64(e.SummonType), null != e.ShowLibs && e.ShowLibs.length)
                    for (n = 0; n < e.ShowLibs.length; ++n) a.IntArray_Config.encode(e.ShowLibs[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CardProphetSummon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.CurrencyId = e.int64();
                            break;
                        case 3:
                            r.BaseCurrencyCount = e.int64();
                            break;
                        case 4:
                            r.AdvCurrencyCount = e.int64();
                            break;
                        case 5:
                            r.ExtraReward && r.ExtraReward.length || (r.ExtraReward = []), r.ExtraReward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.SummonType = e.int64();
                            break;
                        case 7:
                            r.ShowLibs && r.ShowLibs.length || (r.ShowLibs = []), r.ShowLibs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.CurrencyId && e.hasOwnProperty("CurrencyId") && !(i.isInteger(e.CurrencyId) || e.CurrencyId && i.isInteger(e.CurrencyId.low) && i.isInteger(e.CurrencyId.high))) return "CurrencyId: integer|Long expected";
                if (null != e.BaseCurrencyCount && e.hasOwnProperty("BaseCurrencyCount") && !(i.isInteger(e.BaseCurrencyCount) || e.BaseCurrencyCount && i.isInteger(e.BaseCurrencyCount.low) && i.isInteger(e.BaseCurrencyCount.high))) return "BaseCurrencyCount: integer|Long expected";
                if (null != e.AdvCurrencyCount && e.hasOwnProperty("AdvCurrencyCount") && !(i.isInteger(e.AdvCurrencyCount) || e.AdvCurrencyCount && i.isInteger(e.AdvCurrencyCount.low) && i.isInteger(e.AdvCurrencyCount.high))) return "AdvCurrencyCount: integer|Long expected";
                if (null != e.ExtraReward && e.hasOwnProperty("ExtraReward")) {
                    if (!Array.isArray(e.ExtraReward)) return "ExtraReward: array expected";
                    for (var t = 0; t < e.ExtraReward.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ExtraReward[t])) return "ExtraReward." + n
                }
                if (null != e.SummonType && e.hasOwnProperty("SummonType") && !(i.isInteger(e.SummonType) || e.SummonType && i.isInteger(e.SummonType.low) && i.isInteger(e.SummonType.high))) return "SummonType: integer|Long expected";
                if (null != e.ShowLibs && e.hasOwnProperty("ShowLibs")) {
                    if (!Array.isArray(e.ShowLibs)) return "ShowLibs: array expected";
                    for (t = 0; t < e.ShowLibs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ShowLibs[t])) return "ShowLibs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CardProphetSummon_Config) return e;
                var t = new a.CardProphetSummon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.CurrencyId && (i.Long ? (t.CurrencyId = i.Long.fromValue(e.CurrencyId)).unsigned = !1 : "string" == typeof e.CurrencyId ? t.CurrencyId = parseInt(e.CurrencyId, 10) : "number" == typeof e.CurrencyId ? t.CurrencyId = e.CurrencyId : "object" == typeof e.CurrencyId && (t.CurrencyId = new i.LongBits(e.CurrencyId.low >>> 0, e.CurrencyId.high >>> 0).toNumber())), null != e.BaseCurrencyCount && (i.Long ? (t.BaseCurrencyCount = i.Long.fromValue(e.BaseCurrencyCount)).unsigned = !1 : "string" == typeof e.BaseCurrencyCount ? t.BaseCurrencyCount = parseInt(e.BaseCurrencyCount, 10) : "number" == typeof e.BaseCurrencyCount ? t.BaseCurrencyCount = e.BaseCurrencyCount : "object" == typeof e.BaseCurrencyCount && (t.BaseCurrencyCount = new i.LongBits(e.BaseCurrencyCount.low >>> 0, e.BaseCurrencyCount.high >>> 0).toNumber())), null != e.AdvCurrencyCount && (i.Long ? (t.AdvCurrencyCount = i.Long.fromValue(e.AdvCurrencyCount)).unsigned = !1 : "string" == typeof e.AdvCurrencyCount ? t.AdvCurrencyCount = parseInt(e.AdvCurrencyCount, 10) : "number" == typeof e.AdvCurrencyCount ? t.AdvCurrencyCount = e.AdvCurrencyCount : "object" == typeof e.AdvCurrencyCount && (t.AdvCurrencyCount = new i.LongBits(e.AdvCurrencyCount.low >>> 0, e.AdvCurrencyCount.high >>> 0).toNumber())), e.ExtraReward) {
                    if (!Array.isArray(e.ExtraReward)) throw TypeError(".CardProphetSummon_Config.ExtraReward: array expected");
                    t.ExtraReward = [];
                    for (var n = 0; n < e.ExtraReward.length; ++n) {
                        if ("object" != typeof e.ExtraReward[n]) throw TypeError(".CardProphetSummon_Config.ExtraReward: object expected");
                        t.ExtraReward[n] = a.IntArray_Config.fromObject(e.ExtraReward[n])
                    }
                }
                if (null != e.SummonType && (i.Long ? (t.SummonType = i.Long.fromValue(e.SummonType)).unsigned = !1 : "string" == typeof e.SummonType ? t.SummonType = parseInt(e.SummonType, 10) : "number" == typeof e.SummonType ? t.SummonType = e.SummonType : "object" == typeof e.SummonType && (t.SummonType = new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber())), e.ShowLibs) {
                    if (!Array.isArray(e.ShowLibs)) throw TypeError(".CardProphetSummon_Config.ShowLibs: array expected");
                    for (t.ShowLibs = [], n = 0; n < e.ShowLibs.length; ++n) {
                        if ("object" != typeof e.ShowLibs[n]) throw TypeError(".CardProphetSummon_Config.ShowLibs: object expected");
                        t.ShowLibs[n] = a.IntArray_Config.fromObject(e.ShowLibs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ExtraReward = [], n.ShowLibs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.CurrencyId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CurrencyId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.BaseCurrencyCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BaseCurrencyCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AdvCurrencyCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AdvCurrencyCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SummonType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SummonType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.CurrencyId && e.hasOwnProperty("CurrencyId") && ("number" == typeof e.CurrencyId ? n.CurrencyId = t.longs === String ? String(e.CurrencyId) : e.CurrencyId : n.CurrencyId = t.longs === String ? i.Long.prototype.toString.call(e.CurrencyId) : t.longs === Number ? new i.LongBits(e.CurrencyId.low >>> 0, e.CurrencyId.high >>> 0).toNumber() : e.CurrencyId), null != e.BaseCurrencyCount && e.hasOwnProperty("BaseCurrencyCount") && ("number" == typeof e.BaseCurrencyCount ? n.BaseCurrencyCount = t.longs === String ? String(e.BaseCurrencyCount) : e.BaseCurrencyCount : n.BaseCurrencyCount = t.longs === String ? i.Long.prototype.toString.call(e.BaseCurrencyCount) : t.longs === Number ? new i.LongBits(e.BaseCurrencyCount.low >>> 0, e.BaseCurrencyCount.high >>> 0).toNumber() : e.BaseCurrencyCount), null != e.AdvCurrencyCount && e.hasOwnProperty("AdvCurrencyCount") && ("number" == typeof e.AdvCurrencyCount ? n.AdvCurrencyCount = t.longs === String ? String(e.AdvCurrencyCount) : e.AdvCurrencyCount : n.AdvCurrencyCount = t.longs === String ? i.Long.prototype.toString.call(e.AdvCurrencyCount) : t.longs === Number ? new i.LongBits(e.AdvCurrencyCount.low >>> 0, e.AdvCurrencyCount.high >>> 0).toNumber() : e.AdvCurrencyCount), e.ExtraReward && e.ExtraReward.length) {
                    n.ExtraReward = [];
                    for (var r = 0; r < e.ExtraReward.length; ++r) n.ExtraReward[r] = a.IntArray_Config.toObject(e.ExtraReward[r], t)
                }
                if (null != e.SummonType && e.hasOwnProperty("SummonType") && ("number" == typeof e.SummonType ? n.SummonType = t.longs === String ? String(e.SummonType) : e.SummonType : n.SummonType = t.longs === String ? i.Long.prototype.toString.call(e.SummonType) : t.longs === Number ? new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber() : e.SummonType), e.ShowLibs && e.ShowLibs.length)
                    for (n.ShowLibs = [], r = 0; r < e.ShowLibs.length; ++r) n.ShowLibs[r] = a.IntArray_Config.toObject(e.ShowLibs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CardProphetSummon_Config"
            }, e
        }(), a.ElementEffect_Config = function() {
            function e(e) {
                if (this.Effect = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Effect = i.emptyArray, e.prototype.Icon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.Effect && e.Effect.length)
                    for (var n = 0; n < e.Effect.length; ++n) a.IntArray_Config.encode(e.Effect[n], t.uint32(34).fork()).ldelim();
                return null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(42).string(e.Icon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ElementEffect_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Effect && r.Effect.length || (r.Effect = []), r.Effect.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Icon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Effect && e.hasOwnProperty("Effect")) {
                    if (!Array.isArray(e.Effect)) return "Effect: array expected";
                    for (var t = 0; t < e.Effect.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Effect[t]);
                        if (n) return "Effect." + n
                    }
                }
                return null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ElementEffect_Config) return e;
                var t = new a.ElementEffect_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Effect) {
                    if (!Array.isArray(e.Effect)) throw TypeError(".ElementEffect_Config.Effect: array expected");
                    t.Effect = [];
                    for (var n = 0; n < e.Effect.length; ++n) {
                        if ("object" != typeof e.Effect[n]) throw TypeError(".ElementEffect_Config.Effect: object expected");
                        t.Effect[n] = a.IntArray_Config.fromObject(e.Effect[n])
                    }
                }
                return null != e.Icon && (t.Icon = String(e.Icon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Effect = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, n.Icon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Effect && e.Effect.length) {
                    n.Effect = [];
                    for (var r = 0; r < e.Effect.length; ++r) n.Effect[r] = a.IntArray_Config.toObject(e.Effect[r], t)
                }
                return null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ElementEffect_Config"
            }, e
        }(), a.EndlessAbyssType_Config = function() {
            function e(e) {
                if (this.OpenTime = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OpenTime = i.emptyArray, e.prototype.MapIdPrefix = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.OpenTime && e.OpenTime.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.OpenTime.length; ++n) t.int64(e.OpenTime[n]);
                    t.ldelim()
                }
                return null != e.MapIdPrefix && Object.hasOwnProperty.call(e, "MapIdPrefix") && t.uint32(24).int64(e.MapIdPrefix), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.EndlessAbyssType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.OpenTime && r.OpenTime.length || (r.OpenTime = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.OpenTime.push(e.int64());
                            else r.OpenTime.push(e.int64());
                            break;
                        case 3:
                            r.MapIdPrefix = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.OpenTime && e.hasOwnProperty("OpenTime")) {
                    if (!Array.isArray(e.OpenTime)) return "OpenTime: array expected";
                    for (var t = 0; t < e.OpenTime.length; ++t)
                        if (!(i.isInteger(e.OpenTime[t]) || e.OpenTime[t] && i.isInteger(e.OpenTime[t].low) && i.isInteger(e.OpenTime[t].high))) return "OpenTime: integer|Long[] expected"
                }
                return null != e.MapIdPrefix && e.hasOwnProperty("MapIdPrefix") && !(i.isInteger(e.MapIdPrefix) || e.MapIdPrefix && i.isInteger(e.MapIdPrefix.low) && i.isInteger(e.MapIdPrefix.high)) ? "MapIdPrefix: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.EndlessAbyssType_Config) return e;
                var t = new a.EndlessAbyssType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.OpenTime) {
                    if (!Array.isArray(e.OpenTime)) throw TypeError(".EndlessAbyssType_Config.OpenTime: array expected");
                    t.OpenTime = [];
                    for (var n = 0; n < e.OpenTime.length; ++n) i.Long ? (t.OpenTime[n] = i.Long.fromValue(e.OpenTime[n])).unsigned = !1 : "string" == typeof e.OpenTime[n] ? t.OpenTime[n] = parseInt(e.OpenTime[n], 10) : "number" == typeof e.OpenTime[n] ? t.OpenTime[n] = e.OpenTime[n] : "object" == typeof e.OpenTime[n] && (t.OpenTime[n] = new i.LongBits(e.OpenTime[n].low >>> 0, e.OpenTime[n].high >>> 0).toNumber())
                }
                return null != e.MapIdPrefix && (i.Long ? (t.MapIdPrefix = i.Long.fromValue(e.MapIdPrefix)).unsigned = !1 : "string" == typeof e.MapIdPrefix ? t.MapIdPrefix = parseInt(e.MapIdPrefix, 10) : "number" == typeof e.MapIdPrefix ? t.MapIdPrefix = e.MapIdPrefix : "object" == typeof e.MapIdPrefix && (t.MapIdPrefix = new i.LongBits(e.MapIdPrefix.low >>> 0, e.MapIdPrefix.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.OpenTime = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MapIdPrefix = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapIdPrefix = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.OpenTime && e.OpenTime.length) {
                    n.OpenTime = [];
                    for (var r = 0; r < e.OpenTime.length; ++r) "number" == typeof e.OpenTime[r] ? n.OpenTime[r] = t.longs === String ? String(e.OpenTime[r]) : e.OpenTime[r] : n.OpenTime[r] = t.longs === String ? i.Long.prototype.toString.call(e.OpenTime[r]) : t.longs === Number ? new i.LongBits(e.OpenTime[r].low >>> 0, e.OpenTime[r].high >>> 0).toNumber() : e.OpenTime[r]
                }
                return null != e.MapIdPrefix && e.hasOwnProperty("MapIdPrefix") && ("number" == typeof e.MapIdPrefix ? n.MapIdPrefix = t.longs === String ? String(e.MapIdPrefix) : e.MapIdPrefix : n.MapIdPrefix = t.longs === String ? i.Long.prototype.toString.call(e.MapIdPrefix) : t.longs === Number ? new i.LongBits(e.MapIdPrefix.low >>> 0, e.MapIdPrefix.high >>> 0).toNumber() : e.MapIdPrefix), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/EndlessAbyssType_Config"
            }, e
        }(), a.MapEndlessAbyss_Config = function() {
            function e(e) {
                if (this.Monsters = [], this.PointReward = [], this.DailyReward = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Monsters = i.emptyArray, e.prototype.RecommendPower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PointReward = i.emptyArray, e.prototype.DailyReward = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Monsters && e.Monsters.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Monsters.length; ++n) t.int64(e.Monsters[n]);
                    t.ldelim()
                }
                if (null != e.RecommendPower && Object.hasOwnProperty.call(e, "RecommendPower") && t.uint32(56).int64(e.RecommendPower), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(64).int64(e.HeroId), null != e.PointReward && e.PointReward.length)
                    for (n = 0; n < e.PointReward.length; ++n) a.IntArray_Config.encode(e.PointReward[n], t.uint32(74).fork()).ldelim();
                if (null != e.DailyReward && e.DailyReward.length)
                    for (n = 0; n < e.DailyReward.length; ++n) a.IntArray_Config.encode(e.DailyReward[n], t.uint32(82).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MapEndlessAbyss_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Monsters && r.Monsters.length || (r.Monsters = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Monsters.push(e.int64());
                            else r.Monsters.push(e.int64());
                            break;
                        case 7:
                            r.RecommendPower = e.int64();
                            break;
                        case 8:
                            r.HeroId = e.int64();
                            break;
                        case 9:
                            r.PointReward && r.PointReward.length || (r.PointReward = []), r.PointReward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.DailyReward && r.DailyReward.length || (r.DailyReward = []), r.DailyReward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Monsters && e.hasOwnProperty("Monsters")) {
                    if (!Array.isArray(e.Monsters)) return "Monsters: array expected";
                    for (var t = 0; t < e.Monsters.length; ++t)
                        if (!(i.isInteger(e.Monsters[t]) || e.Monsters[t] && i.isInteger(e.Monsters[t].low) && i.isInteger(e.Monsters[t].high))) return "Monsters: integer|Long[] expected"
                }
                if (null != e.RecommendPower && e.hasOwnProperty("RecommendPower") && !(i.isInteger(e.RecommendPower) || e.RecommendPower && i.isInteger(e.RecommendPower.low) && i.isInteger(e.RecommendPower.high))) return "RecommendPower: integer|Long expected";
                if (null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high))) return "HeroId: integer|Long expected";
                if (null != e.PointReward && e.hasOwnProperty("PointReward")) {
                    if (!Array.isArray(e.PointReward)) return "PointReward: array expected";
                    for (t = 0; t < e.PointReward.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PointReward[t])) return "PointReward." + n
                }
                if (null != e.DailyReward && e.hasOwnProperty("DailyReward")) {
                    if (!Array.isArray(e.DailyReward)) return "DailyReward: array expected";
                    for (t = 0; t < e.DailyReward.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.DailyReward[t])) return "DailyReward." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MapEndlessAbyss_Config) return e;
                var t = new a.MapEndlessAbyss_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Monsters) {
                    if (!Array.isArray(e.Monsters)) throw TypeError(".MapEndlessAbyss_Config.Monsters: array expected");
                    t.Monsters = [];
                    for (var n = 0; n < e.Monsters.length; ++n) i.Long ? (t.Monsters[n] = i.Long.fromValue(e.Monsters[n])).unsigned = !1 : "string" == typeof e.Monsters[n] ? t.Monsters[n] = parseInt(e.Monsters[n], 10) : "number" == typeof e.Monsters[n] ? t.Monsters[n] = e.Monsters[n] : "object" == typeof e.Monsters[n] && (t.Monsters[n] = new i.LongBits(e.Monsters[n].low >>> 0, e.Monsters[n].high >>> 0).toNumber())
                }
                if (null != e.RecommendPower && (i.Long ? (t.RecommendPower = i.Long.fromValue(e.RecommendPower)).unsigned = !1 : "string" == typeof e.RecommendPower ? t.RecommendPower = parseInt(e.RecommendPower, 10) : "number" == typeof e.RecommendPower ? t.RecommendPower = e.RecommendPower : "object" == typeof e.RecommendPower && (t.RecommendPower = new i.LongBits(e.RecommendPower.low >>> 0, e.RecommendPower.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), e.PointReward) {
                    if (!Array.isArray(e.PointReward)) throw TypeError(".MapEndlessAbyss_Config.PointReward: array expected");
                    for (t.PointReward = [], n = 0; n < e.PointReward.length; ++n) {
                        if ("object" != typeof e.PointReward[n]) throw TypeError(".MapEndlessAbyss_Config.PointReward: object expected");
                        t.PointReward[n] = a.IntArray_Config.fromObject(e.PointReward[n])
                    }
                }
                if (e.DailyReward) {
                    if (!Array.isArray(e.DailyReward)) throw TypeError(".MapEndlessAbyss_Config.DailyReward: array expected");
                    for (t.DailyReward = [], n = 0; n < e.DailyReward.length; ++n) {
                        if ("object" != typeof e.DailyReward[n]) throw TypeError(".MapEndlessAbyss_Config.DailyReward: object expected");
                        t.DailyReward[n] = a.IntArray_Config.fromObject(e.DailyReward[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Monsters = [], n.PointReward = [], n.DailyReward = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.RecommendPower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RecommendPower = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Monsters && e.Monsters.length) {
                    n.Monsters = [];
                    for (var r = 0; r < e.Monsters.length; ++r) "number" == typeof e.Monsters[r] ? n.Monsters[r] = t.longs === String ? String(e.Monsters[r]) : e.Monsters[r] : n.Monsters[r] = t.longs === String ? i.Long.prototype.toString.call(e.Monsters[r]) : t.longs === Number ? new i.LongBits(e.Monsters[r].low >>> 0, e.Monsters[r].high >>> 0).toNumber() : e.Monsters[r]
                }
                if (null != e.RecommendPower && e.hasOwnProperty("RecommendPower") && ("number" == typeof e.RecommendPower ? n.RecommendPower = t.longs === String ? String(e.RecommendPower) : e.RecommendPower : n.RecommendPower = t.longs === String ? i.Long.prototype.toString.call(e.RecommendPower) : t.longs === Number ? new i.LongBits(e.RecommendPower.low >>> 0, e.RecommendPower.high >>> 0).toNumber() : e.RecommendPower), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), e.PointReward && e.PointReward.length)
                    for (n.PointReward = [], r = 0; r < e.PointReward.length; ++r) n.PointReward[r] = a.IntArray_Config.toObject(e.PointReward[r], t);
                if (e.DailyReward && e.DailyReward.length)
                    for (n.DailyReward = [], r = 0; r < e.DailyReward.length; ++r) n.DailyReward[r] = a.IntArray_Config.toObject(e.DailyReward[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MapEndlessAbyss_Config"
            }, e
        }(), a.LevelParam_Config = function() {
            function e(e) {
                if (this.Data = [], this.Data2 = [], this.FloatData = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Data = i.emptyArray, e.prototype.Data2 = i.emptyArray, e.prototype.FloatData = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Data && e.Data.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Data.length; ++n) t.int64(e.Data[n]);
                    t.ldelim()
                }
                if (null != e.Data2 && e.Data2.length)
                    for (n = 0; n < e.Data2.length; ++n) a.IntArray_Config.encode(e.Data2[n], t.uint32(34).fork()).ldelim();
                if (null != e.FloatData && e.FloatData.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.FloatData.length; ++n) t.float(e.FloatData[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LevelParam_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.Data && r.Data.length || (r.Data = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Data.push(e.int64());
                            else r.Data.push(e.int64());
                            break;
                        case 4:
                            r.Data2 && r.Data2.length || (r.Data2 = []), r.Data2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            if (r.FloatData && r.FloatData.length || (r.FloatData = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.FloatData.push(e.float());
                            else r.FloatData.push(e.float());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t)
                        if (!(i.isInteger(e.Data[t]) || e.Data[t] && i.isInteger(e.Data[t].low) && i.isInteger(e.Data[t].high))) return "Data: integer|Long[] expected"
                }
                if (null != e.Data2 && e.hasOwnProperty("Data2")) {
                    if (!Array.isArray(e.Data2)) return "Data2: array expected";
                    for (t = 0; t < e.Data2.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Data2[t]);
                        if (n) return "Data2." + n
                    }
                }
                if (null != e.FloatData && e.hasOwnProperty("FloatData")) {
                    if (!Array.isArray(e.FloatData)) return "FloatData: array expected";
                    for (t = 0; t < e.FloatData.length; ++t)
                        if ("number" != typeof e.FloatData[t]) return "FloatData: number[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.LevelParam_Config) return e;
                var t = new a.LevelParam_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".LevelParam_Config.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) i.Long ? (t.Data[n] = i.Long.fromValue(e.Data[n])).unsigned = !1 : "string" == typeof e.Data[n] ? t.Data[n] = parseInt(e.Data[n], 10) : "number" == typeof e.Data[n] ? t.Data[n] = e.Data[n] : "object" == typeof e.Data[n] && (t.Data[n] = new i.LongBits(e.Data[n].low >>> 0, e.Data[n].high >>> 0).toNumber())
                }
                if (e.Data2) {
                    if (!Array.isArray(e.Data2)) throw TypeError(".LevelParam_Config.Data2: array expected");
                    for (t.Data2 = [], n = 0; n < e.Data2.length; ++n) {
                        if ("object" != typeof e.Data2[n]) throw TypeError(".LevelParam_Config.Data2: object expected");
                        t.Data2[n] = a.IntArray_Config.fromObject(e.Data2[n])
                    }
                }
                if (e.FloatData) {
                    if (!Array.isArray(e.FloatData)) throw TypeError(".LevelParam_Config.FloatData: array expected");
                    for (t.FloatData = [], n = 0; n < e.FloatData.length; ++n) t.FloatData[n] = Number(e.FloatData[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = [], n.Data2 = [], n.FloatData = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var r = 0; r < e.Data.length; ++r) "number" == typeof e.Data[r] ? n.Data[r] = t.longs === String ? String(e.Data[r]) : e.Data[r] : n.Data[r] = t.longs === String ? i.Long.prototype.toString.call(e.Data[r]) : t.longs === Number ? new i.LongBits(e.Data[r].low >>> 0, e.Data[r].high >>> 0).toNumber() : e.Data[r]
                }
                if (e.Data2 && e.Data2.length)
                    for (n.Data2 = [], r = 0; r < e.Data2.length; ++r) n.Data2[r] = a.IntArray_Config.toObject(e.Data2[r], t);
                if (e.FloatData && e.FloatData.length)
                    for (n.FloatData = [], r = 0; r < e.FloatData.length; ++r) n.FloatData[r] = t.json && !isFinite(e.FloatData[r]) ? String(e.FloatData[r]) : e.FloatData[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LevelParam_Config"
            }, e
        }(), a.EndlessAbyssBuff_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(34).fork()).ldelim();
                return null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(40).int64(e.Count), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(48).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.EndlessAbyssBuff_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Count = e.int64();
                            break;
                        case 6:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.EndlessAbyssBuff_Config) return e;
                var t = new a.EndlessAbyssBuff_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".EndlessAbyssBuff_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".EndlessAbyssBuff_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/EndlessAbyssBuff_Config"
            }, e
        }(), a.MapMonster_Config = function() {
            function e(e) {
                if (this.AttributeAddon = [], this.ExtraSkills = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AttributeAddon = i.emptyArray, e.prototype.ExtraSkills = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(32).int64(e.HeroId), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(40).int64(e.Level), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(48).int64(e.StarLevel), null != e.AttributeAddon && e.AttributeAddon.length)
                    for (var n = 0; n < e.AttributeAddon.length; ++n) a.IntArray_Config.encode(e.AttributeAddon[n], t.uint32(66).fork()).ldelim();
                if (null != e.ExtraSkills && e.ExtraSkills.length) {
                    for (t.uint32(74).fork(), n = 0; n < e.ExtraSkills.length; ++n) t.int64(e.ExtraSkills[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MapMonster_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.HeroId = e.int64();
                            break;
                        case 5:
                            r.Level = e.int64();
                            break;
                        case 6:
                            r.StarLevel = e.int64();
                            break;
                        case 8:
                            r.AttributeAddon && r.AttributeAddon.length || (r.AttributeAddon = []), r.AttributeAddon.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            if (r.ExtraSkills && r.ExtraSkills.length || (r.ExtraSkills = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ExtraSkills.push(e.int64());
                            else r.ExtraSkills.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high))) return "HeroId: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high))) return "StarLevel: integer|Long expected";
                if (null != e.AttributeAddon && e.hasOwnProperty("AttributeAddon")) {
                    if (!Array.isArray(e.AttributeAddon)) return "AttributeAddon: array expected";
                    for (var t = 0; t < e.AttributeAddon.length; ++t) {
                        var n = a.IntArray_Config.verify(e.AttributeAddon[t]);
                        if (n) return "AttributeAddon." + n
                    }
                }
                if (null != e.ExtraSkills && e.hasOwnProperty("ExtraSkills")) {
                    if (!Array.isArray(e.ExtraSkills)) return "ExtraSkills: array expected";
                    for (t = 0; t < e.ExtraSkills.length; ++t)
                        if (!(i.isInteger(e.ExtraSkills[t]) || e.ExtraSkills[t] && i.isInteger(e.ExtraSkills[t].low) && i.isInteger(e.ExtraSkills[t].high))) return "ExtraSkills: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MapMonster_Config) return e;
                var t = new a.MapMonster_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), e.AttributeAddon) {
                    if (!Array.isArray(e.AttributeAddon)) throw TypeError(".MapMonster_Config.AttributeAddon: array expected");
                    t.AttributeAddon = [];
                    for (var n = 0; n < e.AttributeAddon.length; ++n) {
                        if ("object" != typeof e.AttributeAddon[n]) throw TypeError(".MapMonster_Config.AttributeAddon: object expected");
                        t.AttributeAddon[n] = a.IntArray_Config.fromObject(e.AttributeAddon[n])
                    }
                }
                if (e.ExtraSkills) {
                    if (!Array.isArray(e.ExtraSkills)) throw TypeError(".MapMonster_Config.ExtraSkills: array expected");
                    for (t.ExtraSkills = [], n = 0; n < e.ExtraSkills.length; ++n) i.Long ? (t.ExtraSkills[n] = i.Long.fromValue(e.ExtraSkills[n])).unsigned = !1 : "string" == typeof e.ExtraSkills[n] ? t.ExtraSkills[n] = parseInt(e.ExtraSkills[n], 10) : "number" == typeof e.ExtraSkills[n] ? t.ExtraSkills[n] = e.ExtraSkills[n] : "object" == typeof e.ExtraSkills[n] && (t.ExtraSkills[n] = new i.LongBits(e.ExtraSkills[n].low >>> 0, e.ExtraSkills[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AttributeAddon = [], n.ExtraSkills = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), e.AttributeAddon && e.AttributeAddon.length) {
                    n.AttributeAddon = [];
                    for (var r = 0; r < e.AttributeAddon.length; ++r) n.AttributeAddon[r] = a.IntArray_Config.toObject(e.AttributeAddon[r], t)
                }
                if (e.ExtraSkills && e.ExtraSkills.length)
                    for (n.ExtraSkills = [], r = 0; r < e.ExtraSkills.length; ++r) "number" == typeof e.ExtraSkills[r] ? n.ExtraSkills[r] = t.longs === String ? String(e.ExtraSkills[r]) : e.ExtraSkills[r] : n.ExtraSkills[r] = t.longs === String ? i.Long.prototype.toString.call(e.ExtraSkills[r]) : t.longs === Number ? new i.LongBits(e.ExtraSkills[r].low >>> 0, e.ExtraSkills[r].high >>> 0).toNumber() : e.ExtraSkills[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MapMonster_Config"
            }, e
        }(), a.HeroLevelAttribute_Config = function() {
            function e(e) {
                if (this.LevelAttr = [], this.StageAttr = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelAttr = i.emptyArray, e.prototype.StageAttr = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.LevelAttr && e.LevelAttr.length)
                    for (var n = 0; n < e.LevelAttr.length; ++n) a.IntArray_Config.encode(e.LevelAttr[n], t.uint32(18).fork()).ldelim();
                if (null != e.StageAttr && e.StageAttr.length)
                    for (n = 0; n < e.StageAttr.length; ++n) a.IntArray_Config.encode(e.StageAttr[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroLevelAttribute_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.LevelAttr && r.LevelAttr.length || (r.LevelAttr = []), r.LevelAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.StageAttr && r.StageAttr.length || (r.StageAttr = []), r.StageAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.LevelAttr && e.hasOwnProperty("LevelAttr")) {
                    if (!Array.isArray(e.LevelAttr)) return "LevelAttr: array expected";
                    for (var t = 0; t < e.LevelAttr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelAttr[t])) return "LevelAttr." + n
                }
                if (null != e.StageAttr && e.hasOwnProperty("StageAttr")) {
                    if (!Array.isArray(e.StageAttr)) return "StageAttr: array expected";
                    for (t = 0; t < e.StageAttr.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.StageAttr[t])) return "StageAttr." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroLevelAttribute_Config) return e;
                var t = new a.HeroLevelAttribute_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.LevelAttr) {
                    if (!Array.isArray(e.LevelAttr)) throw TypeError(".HeroLevelAttribute_Config.LevelAttr: array expected");
                    t.LevelAttr = [];
                    for (var n = 0; n < e.LevelAttr.length; ++n) {
                        if ("object" != typeof e.LevelAttr[n]) throw TypeError(".HeroLevelAttribute_Config.LevelAttr: object expected");
                        t.LevelAttr[n] = a.IntArray_Config.fromObject(e.LevelAttr[n])
                    }
                }
                if (e.StageAttr) {
                    if (!Array.isArray(e.StageAttr)) throw TypeError(".HeroLevelAttribute_Config.StageAttr: array expected");
                    for (t.StageAttr = [], n = 0; n < e.StageAttr.length; ++n) {
                        if ("object" != typeof e.StageAttr[n]) throw TypeError(".HeroLevelAttribute_Config.StageAttr: object expected");
                        t.StageAttr[n] = a.IntArray_Config.fromObject(e.StageAttr[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.LevelAttr = [], n.StageAttr = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.LevelAttr && e.LevelAttr.length) {
                    n.LevelAttr = [];
                    for (var r = 0; r < e.LevelAttr.length; ++r) n.LevelAttr[r] = a.IntArray_Config.toObject(e.LevelAttr[r], t)
                }
                if (e.StageAttr && e.StageAttr.length)
                    for (n.StageAttr = [], r = 0; r < e.StageAttr.length; ++r) n.StageAttr[r] = a.IntArray_Config.toObject(e.StageAttr[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroLevelAttribute_Config"
            }, e
        }(), a.LocaleSkill_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LocaleSkill_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.LocaleSkill_Config) return e;
                var t = new a.LocaleSkill_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LocaleSkill_Config"
            }, e
        }(), a.SkillEffect_Config = function() {
            function e(e) {
                if (this.TargetPriority = [], this.BuffList = [], this.WorkCondition = [], this.ChildEffects = [], this.TargetPriorities = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetSide = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetPriority = i.emptyArray, e.prototype.BuffList = i.emptyArray, e.prototype.WorkCondition = i.emptyArray, e.prototype.WorkChance = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ChildEffects = i.emptyArray, e.prototype.TargetIncludeHide = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetPriorities = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.TargetSide && Object.hasOwnProperty.call(e, "TargetSide") && t.uint32(24).int64(e.TargetSide), null != e.TargetCount && Object.hasOwnProperty.call(e, "TargetCount") && t.uint32(32).int64(e.TargetCount), null != e.TargetType && Object.hasOwnProperty.call(e, "TargetType") && t.uint32(40).int64(e.TargetType), null != e.TargetPriority && e.TargetPriority.length) {
                    t.uint32(50).fork();
                    for (var n = 0; n < e.TargetPriority.length; ++n) t.int64(e.TargetPriority[n]);
                    t.ldelim()
                }
                if (null != e.BuffList && e.BuffList.length)
                    for (n = 0; n < e.BuffList.length; ++n) a.IntArray_Config.encode(e.BuffList[n], t.uint32(58).fork()).ldelim();
                if (null != e.WorkCondition && e.WorkCondition.length)
                    for (n = 0; n < e.WorkCondition.length; ++n) a.IntArray_Config.encode(e.WorkCondition[n], t.uint32(74).fork()).ldelim();
                if (null != e.WorkChance && Object.hasOwnProperty.call(e, "WorkChance") && t.uint32(80).int64(e.WorkChance), null != e.ChildEffects && e.ChildEffects.length) {
                    for (t.uint32(90).fork(), n = 0; n < e.ChildEffects.length; ++n) t.int64(e.ChildEffects[n]);
                    t.ldelim()
                }
                if (null != e.TargetIncludeHide && Object.hasOwnProperty.call(e, "TargetIncludeHide") && t.uint32(104).int64(e.TargetIncludeHide), null != e.TargetPriorities && e.TargetPriorities.length)
                    for (n = 0; n < e.TargetPriorities.length; ++n) a.IntArray_Config.encode(e.TargetPriorities[n], t.uint32(114).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SkillEffect_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.TargetSide = e.int64();
                            break;
                        case 4:
                            r.TargetCount = e.int64();
                            break;
                        case 5:
                            r.TargetType = e.int64();
                            break;
                        case 6:
                            if (r.TargetPriority && r.TargetPriority.length || (r.TargetPriority = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.TargetPriority.push(e.int64());
                            else r.TargetPriority.push(e.int64());
                            break;
                        case 7:
                            r.BuffList && r.BuffList.length || (r.BuffList = []), r.BuffList.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.WorkCondition && r.WorkCondition.length || (r.WorkCondition = []), r.WorkCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.WorkChance = e.int64();
                            break;
                        case 11:
                            if (r.ChildEffects && r.ChildEffects.length || (r.ChildEffects = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ChildEffects.push(e.int64());
                            else r.ChildEffects.push(e.int64());
                            break;
                        case 13:
                            r.TargetIncludeHide = e.int64();
                            break;
                        case 14:
                            r.TargetPriorities && r.TargetPriorities.length || (r.TargetPriorities = []), r.TargetPriorities.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.TargetSide && e.hasOwnProperty("TargetSide") && !(i.isInteger(e.TargetSide) || e.TargetSide && i.isInteger(e.TargetSide.low) && i.isInteger(e.TargetSide.high))) return "TargetSide: integer|Long expected";
                if (null != e.TargetCount && e.hasOwnProperty("TargetCount") && !(i.isInteger(e.TargetCount) || e.TargetCount && i.isInteger(e.TargetCount.low) && i.isInteger(e.TargetCount.high))) return "TargetCount: integer|Long expected";
                if (null != e.TargetType && e.hasOwnProperty("TargetType") && !(i.isInteger(e.TargetType) || e.TargetType && i.isInteger(e.TargetType.low) && i.isInteger(e.TargetType.high))) return "TargetType: integer|Long expected";
                if (null != e.TargetPriority && e.hasOwnProperty("TargetPriority")) {
                    if (!Array.isArray(e.TargetPriority)) return "TargetPriority: array expected";
                    for (var t = 0; t < e.TargetPriority.length; ++t)
                        if (!(i.isInteger(e.TargetPriority[t]) || e.TargetPriority[t] && i.isInteger(e.TargetPriority[t].low) && i.isInteger(e.TargetPriority[t].high))) return "TargetPriority: integer|Long[] expected"
                }
                if (null != e.BuffList && e.hasOwnProperty("BuffList")) {
                    if (!Array.isArray(e.BuffList)) return "BuffList: array expected";
                    for (t = 0; t < e.BuffList.length; ++t)
                        if (n = a.IntArray_Config.verify(e.BuffList[t])) return "BuffList." + n
                }
                if (null != e.WorkCondition && e.hasOwnProperty("WorkCondition")) {
                    if (!Array.isArray(e.WorkCondition)) return "WorkCondition: array expected";
                    for (t = 0; t < e.WorkCondition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.WorkCondition[t])) return "WorkCondition." + n
                }
                if (null != e.WorkChance && e.hasOwnProperty("WorkChance") && !(i.isInteger(e.WorkChance) || e.WorkChance && i.isInteger(e.WorkChance.low) && i.isInteger(e.WorkChance.high))) return "WorkChance: integer|Long expected";
                if (null != e.ChildEffects && e.hasOwnProperty("ChildEffects")) {
                    if (!Array.isArray(e.ChildEffects)) return "ChildEffects: array expected";
                    for (t = 0; t < e.ChildEffects.length; ++t)
                        if (!(i.isInteger(e.ChildEffects[t]) || e.ChildEffects[t] && i.isInteger(e.ChildEffects[t].low) && i.isInteger(e.ChildEffects[t].high))) return "ChildEffects: integer|Long[] expected"
                }
                if (null != e.TargetIncludeHide && e.hasOwnProperty("TargetIncludeHide") && !(i.isInteger(e.TargetIncludeHide) || e.TargetIncludeHide && i.isInteger(e.TargetIncludeHide.low) && i.isInteger(e.TargetIncludeHide.high))) return "TargetIncludeHide: integer|Long expected";
                if (null != e.TargetPriorities && e.hasOwnProperty("TargetPriorities")) {
                    if (!Array.isArray(e.TargetPriorities)) return "TargetPriorities: array expected";
                    for (t = 0; t < e.TargetPriorities.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.TargetPriorities[t])) return "TargetPriorities." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SkillEffect_Config) return e;
                var t = new a.SkillEffect_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.TargetSide && (i.Long ? (t.TargetSide = i.Long.fromValue(e.TargetSide)).unsigned = !1 : "string" == typeof e.TargetSide ? t.TargetSide = parseInt(e.TargetSide, 10) : "number" == typeof e.TargetSide ? t.TargetSide = e.TargetSide : "object" == typeof e.TargetSide && (t.TargetSide = new i.LongBits(e.TargetSide.low >>> 0, e.TargetSide.high >>> 0).toNumber())), null != e.TargetCount && (i.Long ? (t.TargetCount = i.Long.fromValue(e.TargetCount)).unsigned = !1 : "string" == typeof e.TargetCount ? t.TargetCount = parseInt(e.TargetCount, 10) : "number" == typeof e.TargetCount ? t.TargetCount = e.TargetCount : "object" == typeof e.TargetCount && (t.TargetCount = new i.LongBits(e.TargetCount.low >>> 0, e.TargetCount.high >>> 0).toNumber())), null != e.TargetType && (i.Long ? (t.TargetType = i.Long.fromValue(e.TargetType)).unsigned = !1 : "string" == typeof e.TargetType ? t.TargetType = parseInt(e.TargetType, 10) : "number" == typeof e.TargetType ? t.TargetType = e.TargetType : "object" == typeof e.TargetType && (t.TargetType = new i.LongBits(e.TargetType.low >>> 0, e.TargetType.high >>> 0).toNumber())), e.TargetPriority) {
                    if (!Array.isArray(e.TargetPriority)) throw TypeError(".SkillEffect_Config.TargetPriority: array expected");
                    t.TargetPriority = [];
                    for (var n = 0; n < e.TargetPriority.length; ++n) i.Long ? (t.TargetPriority[n] = i.Long.fromValue(e.TargetPriority[n])).unsigned = !1 : "string" == typeof e.TargetPriority[n] ? t.TargetPriority[n] = parseInt(e.TargetPriority[n], 10) : "number" == typeof e.TargetPriority[n] ? t.TargetPriority[n] = e.TargetPriority[n] : "object" == typeof e.TargetPriority[n] && (t.TargetPriority[n] = new i.LongBits(e.TargetPriority[n].low >>> 0, e.TargetPriority[n].high >>> 0).toNumber())
                }
                if (e.BuffList) {
                    if (!Array.isArray(e.BuffList)) throw TypeError(".SkillEffect_Config.BuffList: array expected");
                    for (t.BuffList = [], n = 0; n < e.BuffList.length; ++n) {
                        if ("object" != typeof e.BuffList[n]) throw TypeError(".SkillEffect_Config.BuffList: object expected");
                        t.BuffList[n] = a.IntArray_Config.fromObject(e.BuffList[n])
                    }
                }
                if (e.WorkCondition) {
                    if (!Array.isArray(e.WorkCondition)) throw TypeError(".SkillEffect_Config.WorkCondition: array expected");
                    for (t.WorkCondition = [], n = 0; n < e.WorkCondition.length; ++n) {
                        if ("object" != typeof e.WorkCondition[n]) throw TypeError(".SkillEffect_Config.WorkCondition: object expected");
                        t.WorkCondition[n] = a.IntArray_Config.fromObject(e.WorkCondition[n])
                    }
                }
                if (null != e.WorkChance && (i.Long ? (t.WorkChance = i.Long.fromValue(e.WorkChance)).unsigned = !1 : "string" == typeof e.WorkChance ? t.WorkChance = parseInt(e.WorkChance, 10) : "number" == typeof e.WorkChance ? t.WorkChance = e.WorkChance : "object" == typeof e.WorkChance && (t.WorkChance = new i.LongBits(e.WorkChance.low >>> 0, e.WorkChance.high >>> 0).toNumber())), e.ChildEffects) {
                    if (!Array.isArray(e.ChildEffects)) throw TypeError(".SkillEffect_Config.ChildEffects: array expected");
                    for (t.ChildEffects = [], n = 0; n < e.ChildEffects.length; ++n) i.Long ? (t.ChildEffects[n] = i.Long.fromValue(e.ChildEffects[n])).unsigned = !1 : "string" == typeof e.ChildEffects[n] ? t.ChildEffects[n] = parseInt(e.ChildEffects[n], 10) : "number" == typeof e.ChildEffects[n] ? t.ChildEffects[n] = e.ChildEffects[n] : "object" == typeof e.ChildEffects[n] && (t.ChildEffects[n] = new i.LongBits(e.ChildEffects[n].low >>> 0, e.ChildEffects[n].high >>> 0).toNumber())
                }
                if (null != e.TargetIncludeHide && (i.Long ? (t.TargetIncludeHide = i.Long.fromValue(e.TargetIncludeHide)).unsigned = !1 : "string" == typeof e.TargetIncludeHide ? t.TargetIncludeHide = parseInt(e.TargetIncludeHide, 10) : "number" == typeof e.TargetIncludeHide ? t.TargetIncludeHide = e.TargetIncludeHide : "object" == typeof e.TargetIncludeHide && (t.TargetIncludeHide = new i.LongBits(e.TargetIncludeHide.low >>> 0, e.TargetIncludeHide.high >>> 0).toNumber())), e.TargetPriorities) {
                    if (!Array.isArray(e.TargetPriorities)) throw TypeError(".SkillEffect_Config.TargetPriorities: array expected");
                    for (t.TargetPriorities = [], n = 0; n < e.TargetPriorities.length; ++n) {
                        if ("object" != typeof e.TargetPriorities[n]) throw TypeError(".SkillEffect_Config.TargetPriorities: object expected");
                        t.TargetPriorities[n] = a.IntArray_Config.fromObject(e.TargetPriorities[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.TargetPriority = [], n.BuffList = [], n.WorkCondition = [], n.ChildEffects = [], n.TargetPriorities = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.TargetSide = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetSide = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.WorkChance = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.WorkChance = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetIncludeHide = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetIncludeHide = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.TargetSide && e.hasOwnProperty("TargetSide") && ("number" == typeof e.TargetSide ? n.TargetSide = t.longs === String ? String(e.TargetSide) : e.TargetSide : n.TargetSide = t.longs === String ? i.Long.prototype.toString.call(e.TargetSide) : t.longs === Number ? new i.LongBits(e.TargetSide.low >>> 0, e.TargetSide.high >>> 0).toNumber() : e.TargetSide), null != e.TargetCount && e.hasOwnProperty("TargetCount") && ("number" == typeof e.TargetCount ? n.TargetCount = t.longs === String ? String(e.TargetCount) : e.TargetCount : n.TargetCount = t.longs === String ? i.Long.prototype.toString.call(e.TargetCount) : t.longs === Number ? new i.LongBits(e.TargetCount.low >>> 0, e.TargetCount.high >>> 0).toNumber() : e.TargetCount), null != e.TargetType && e.hasOwnProperty("TargetType") && ("number" == typeof e.TargetType ? n.TargetType = t.longs === String ? String(e.TargetType) : e.TargetType : n.TargetType = t.longs === String ? i.Long.prototype.toString.call(e.TargetType) : t.longs === Number ? new i.LongBits(e.TargetType.low >>> 0, e.TargetType.high >>> 0).toNumber() : e.TargetType), e.TargetPriority && e.TargetPriority.length) {
                    n.TargetPriority = [];
                    for (var r = 0; r < e.TargetPriority.length; ++r) "number" == typeof e.TargetPriority[r] ? n.TargetPriority[r] = t.longs === String ? String(e.TargetPriority[r]) : e.TargetPriority[r] : n.TargetPriority[r] = t.longs === String ? i.Long.prototype.toString.call(e.TargetPriority[r]) : t.longs === Number ? new i.LongBits(e.TargetPriority[r].low >>> 0, e.TargetPriority[r].high >>> 0).toNumber() : e.TargetPriority[r]
                }
                if (e.BuffList && e.BuffList.length)
                    for (n.BuffList = [], r = 0; r < e.BuffList.length; ++r) n.BuffList[r] = a.IntArray_Config.toObject(e.BuffList[r], t);
                if (e.WorkCondition && e.WorkCondition.length)
                    for (n.WorkCondition = [], r = 0; r < e.WorkCondition.length; ++r) n.WorkCondition[r] = a.IntArray_Config.toObject(e.WorkCondition[r], t);
                if (null != e.WorkChance && e.hasOwnProperty("WorkChance") && ("number" == typeof e.WorkChance ? n.WorkChance = t.longs === String ? String(e.WorkChance) : e.WorkChance : n.WorkChance = t.longs === String ? i.Long.prototype.toString.call(e.WorkChance) : t.longs === Number ? new i.LongBits(e.WorkChance.low >>> 0, e.WorkChance.high >>> 0).toNumber() : e.WorkChance), e.ChildEffects && e.ChildEffects.length)
                    for (n.ChildEffects = [], r = 0; r < e.ChildEffects.length; ++r) "number" == typeof e.ChildEffects[r] ? n.ChildEffects[r] = t.longs === String ? String(e.ChildEffects[r]) : e.ChildEffects[r] : n.ChildEffects[r] = t.longs === String ? i.Long.prototype.toString.call(e.ChildEffects[r]) : t.longs === Number ? new i.LongBits(e.ChildEffects[r].low >>> 0, e.ChildEffects[r].high >>> 0).toNumber() : e.ChildEffects[r];
                if (null != e.TargetIncludeHide && e.hasOwnProperty("TargetIncludeHide") && ("number" == typeof e.TargetIncludeHide ? n.TargetIncludeHide = t.longs === String ? String(e.TargetIncludeHide) : e.TargetIncludeHide : n.TargetIncludeHide = t.longs === String ? i.Long.prototype.toString.call(e.TargetIncludeHide) : t.longs === Number ? new i.LongBits(e.TargetIncludeHide.low >>> 0, e.TargetIncludeHide.high >>> 0).toNumber() : e.TargetIncludeHide), e.TargetPriorities && e.TargetPriorities.length)
                    for (n.TargetPriorities = [], r = 0; r < e.TargetPriorities.length; ++r) n.TargetPriorities[r] = a.IntArray_Config.toObject(e.TargetPriorities[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SkillEffect_Config"
            }, e
        }(), a.MapType_Config = function() {
            function e(e) {
                if (this.AttackerFormation = [], this.DefenderFormation = [], this.ExcludeModule = [], this.RoundBuff = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AttackerFormation = i.emptyArray, e.prototype.DefenderFormation = i.emptyArray, e.prototype.ExcludeModule = i.emptyArray, e.prototype.IsPvp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxRound = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RoundBuff = i.emptyArray, e.prototype.RoundBuffLocaleKey = "", e.prototype.BossMaxRound = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkipRound = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.AttackerFormation && e.AttackerFormation.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.AttackerFormation.length; ++n) t.int64(e.AttackerFormation[n]);
                    t.ldelim()
                }
                if (null != e.DefenderFormation && e.DefenderFormation.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.DefenderFormation.length; ++n) t.int64(e.DefenderFormation[n]);
                    t.ldelim()
                }
                if (null != e.ExcludeModule && e.ExcludeModule.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.ExcludeModule.length; ++n) t.int64(e.ExcludeModule[n]);
                    t.ldelim()
                }
                if (null != e.IsPvp && Object.hasOwnProperty.call(e, "IsPvp") && t.uint32(48).int64(e.IsPvp), null != e.MaxRound && Object.hasOwnProperty.call(e, "MaxRound") && t.uint32(56).int64(e.MaxRound), null != e.RoundBuff && e.RoundBuff.length)
                    for (n = 0; n < e.RoundBuff.length; ++n) a.IntArray_Config.encode(e.RoundBuff[n], t.uint32(74).fork()).ldelim();
                return null != e.RoundBuffLocaleKey && Object.hasOwnProperty.call(e, "RoundBuffLocaleKey") && t.uint32(82).string(e.RoundBuffLocaleKey), null != e.BossMaxRound && Object.hasOwnProperty.call(e, "BossMaxRound") && t.uint32(88).int64(e.BossMaxRound), null != e.SkipRound && Object.hasOwnProperty.call(e, "SkipRound") && t.uint32(96).int64(e.SkipRound), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MapType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.AttackerFormation && r.AttackerFormation.length || (r.AttackerFormation = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AttackerFormation.push(e.int64());
                            else r.AttackerFormation.push(e.int64());
                            break;
                        case 4:
                            if (r.DefenderFormation && r.DefenderFormation.length || (r.DefenderFormation = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.DefenderFormation.push(e.int64());
                            else r.DefenderFormation.push(e.int64());
                            break;
                        case 5:
                            if (r.ExcludeModule && r.ExcludeModule.length || (r.ExcludeModule = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ExcludeModule.push(e.int64());
                            else r.ExcludeModule.push(e.int64());
                            break;
                        case 6:
                            r.IsPvp = e.int64();
                            break;
                        case 7:
                            r.MaxRound = e.int64();
                            break;
                        case 9:
                            r.RoundBuff && r.RoundBuff.length || (r.RoundBuff = []), r.RoundBuff.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.RoundBuffLocaleKey = e.string();
                            break;
                        case 11:
                            r.BossMaxRound = e.int64();
                            break;
                        case 12:
                            r.SkipRound = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.AttackerFormation && e.hasOwnProperty("AttackerFormation")) {
                    if (!Array.isArray(e.AttackerFormation)) return "AttackerFormation: array expected";
                    for (var t = 0; t < e.AttackerFormation.length; ++t)
                        if (!(i.isInteger(e.AttackerFormation[t]) || e.AttackerFormation[t] && i.isInteger(e.AttackerFormation[t].low) && i.isInteger(e.AttackerFormation[t].high))) return "AttackerFormation: integer|Long[] expected"
                }
                if (null != e.DefenderFormation && e.hasOwnProperty("DefenderFormation")) {
                    if (!Array.isArray(e.DefenderFormation)) return "DefenderFormation: array expected";
                    for (t = 0; t < e.DefenderFormation.length; ++t)
                        if (!(i.isInteger(e.DefenderFormation[t]) || e.DefenderFormation[t] && i.isInteger(e.DefenderFormation[t].low) && i.isInteger(e.DefenderFormation[t].high))) return "DefenderFormation: integer|Long[] expected"
                }
                if (null != e.ExcludeModule && e.hasOwnProperty("ExcludeModule")) {
                    if (!Array.isArray(e.ExcludeModule)) return "ExcludeModule: array expected";
                    for (t = 0; t < e.ExcludeModule.length; ++t)
                        if (!(i.isInteger(e.ExcludeModule[t]) || e.ExcludeModule[t] && i.isInteger(e.ExcludeModule[t].low) && i.isInteger(e.ExcludeModule[t].high))) return "ExcludeModule: integer|Long[] expected"
                }
                if (null != e.IsPvp && e.hasOwnProperty("IsPvp") && !(i.isInteger(e.IsPvp) || e.IsPvp && i.isInteger(e.IsPvp.low) && i.isInteger(e.IsPvp.high))) return "IsPvp: integer|Long expected";
                if (null != e.MaxRound && e.hasOwnProperty("MaxRound") && !(i.isInteger(e.MaxRound) || e.MaxRound && i.isInteger(e.MaxRound.low) && i.isInteger(e.MaxRound.high))) return "MaxRound: integer|Long expected";
                if (null != e.RoundBuff && e.hasOwnProperty("RoundBuff")) {
                    if (!Array.isArray(e.RoundBuff)) return "RoundBuff: array expected";
                    for (t = 0; t < e.RoundBuff.length; ++t) {
                        var n = a.IntArray_Config.verify(e.RoundBuff[t]);
                        if (n) return "RoundBuff." + n
                    }
                }
                return null != e.RoundBuffLocaleKey && e.hasOwnProperty("RoundBuffLocaleKey") && !i.isString(e.RoundBuffLocaleKey) ? "RoundBuffLocaleKey: string expected" : null != e.BossMaxRound && e.hasOwnProperty("BossMaxRound") && !(i.isInteger(e.BossMaxRound) || e.BossMaxRound && i.isInteger(e.BossMaxRound.low) && i.isInteger(e.BossMaxRound.high)) ? "BossMaxRound: integer|Long expected" : null != e.SkipRound && e.hasOwnProperty("SkipRound") && !(i.isInteger(e.SkipRound) || e.SkipRound && i.isInteger(e.SkipRound.low) && i.isInteger(e.SkipRound.high)) ? "SkipRound: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MapType_Config) return e;
                var t = new a.MapType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.AttackerFormation) {
                    if (!Array.isArray(e.AttackerFormation)) throw TypeError(".MapType_Config.AttackerFormation: array expected");
                    t.AttackerFormation = [];
                    for (var n = 0; n < e.AttackerFormation.length; ++n) i.Long ? (t.AttackerFormation[n] = i.Long.fromValue(e.AttackerFormation[n])).unsigned = !1 : "string" == typeof e.AttackerFormation[n] ? t.AttackerFormation[n] = parseInt(e.AttackerFormation[n], 10) : "number" == typeof e.AttackerFormation[n] ? t.AttackerFormation[n] = e.AttackerFormation[n] : "object" == typeof e.AttackerFormation[n] && (t.AttackerFormation[n] = new i.LongBits(e.AttackerFormation[n].low >>> 0, e.AttackerFormation[n].high >>> 0).toNumber())
                }
                if (e.DefenderFormation) {
                    if (!Array.isArray(e.DefenderFormation)) throw TypeError(".MapType_Config.DefenderFormation: array expected");
                    for (t.DefenderFormation = [], n = 0; n < e.DefenderFormation.length; ++n) i.Long ? (t.DefenderFormation[n] = i.Long.fromValue(e.DefenderFormation[n])).unsigned = !1 : "string" == typeof e.DefenderFormation[n] ? t.DefenderFormation[n] = parseInt(e.DefenderFormation[n], 10) : "number" == typeof e.DefenderFormation[n] ? t.DefenderFormation[n] = e.DefenderFormation[n] : "object" == typeof e.DefenderFormation[n] && (t.DefenderFormation[n] = new i.LongBits(e.DefenderFormation[n].low >>> 0, e.DefenderFormation[n].high >>> 0).toNumber())
                }
                if (e.ExcludeModule) {
                    if (!Array.isArray(e.ExcludeModule)) throw TypeError(".MapType_Config.ExcludeModule: array expected");
                    for (t.ExcludeModule = [], n = 0; n < e.ExcludeModule.length; ++n) i.Long ? (t.ExcludeModule[n] = i.Long.fromValue(e.ExcludeModule[n])).unsigned = !1 : "string" == typeof e.ExcludeModule[n] ? t.ExcludeModule[n] = parseInt(e.ExcludeModule[n], 10) : "number" == typeof e.ExcludeModule[n] ? t.ExcludeModule[n] = e.ExcludeModule[n] : "object" == typeof e.ExcludeModule[n] && (t.ExcludeModule[n] = new i.LongBits(e.ExcludeModule[n].low >>> 0, e.ExcludeModule[n].high >>> 0).toNumber())
                }
                if (null != e.IsPvp && (i.Long ? (t.IsPvp = i.Long.fromValue(e.IsPvp)).unsigned = !1 : "string" == typeof e.IsPvp ? t.IsPvp = parseInt(e.IsPvp, 10) : "number" == typeof e.IsPvp ? t.IsPvp = e.IsPvp : "object" == typeof e.IsPvp && (t.IsPvp = new i.LongBits(e.IsPvp.low >>> 0, e.IsPvp.high >>> 0).toNumber())), null != e.MaxRound && (i.Long ? (t.MaxRound = i.Long.fromValue(e.MaxRound)).unsigned = !1 : "string" == typeof e.MaxRound ? t.MaxRound = parseInt(e.MaxRound, 10) : "number" == typeof e.MaxRound ? t.MaxRound = e.MaxRound : "object" == typeof e.MaxRound && (t.MaxRound = new i.LongBits(e.MaxRound.low >>> 0, e.MaxRound.high >>> 0).toNumber())), e.RoundBuff) {
                    if (!Array.isArray(e.RoundBuff)) throw TypeError(".MapType_Config.RoundBuff: array expected");
                    for (t.RoundBuff = [], n = 0; n < e.RoundBuff.length; ++n) {
                        if ("object" != typeof e.RoundBuff[n]) throw TypeError(".MapType_Config.RoundBuff: object expected");
                        t.RoundBuff[n] = a.IntArray_Config.fromObject(e.RoundBuff[n])
                    }
                }
                return null != e.RoundBuffLocaleKey && (t.RoundBuffLocaleKey = String(e.RoundBuffLocaleKey)), null != e.BossMaxRound && (i.Long ? (t.BossMaxRound = i.Long.fromValue(e.BossMaxRound)).unsigned = !1 : "string" == typeof e.BossMaxRound ? t.BossMaxRound = parseInt(e.BossMaxRound, 10) : "number" == typeof e.BossMaxRound ? t.BossMaxRound = e.BossMaxRound : "object" == typeof e.BossMaxRound && (t.BossMaxRound = new i.LongBits(e.BossMaxRound.low >>> 0, e.BossMaxRound.high >>> 0).toNumber())), null != e.SkipRound && (i.Long ? (t.SkipRound = i.Long.fromValue(e.SkipRound)).unsigned = !1 : "string" == typeof e.SkipRound ? t.SkipRound = parseInt(e.SkipRound, 10) : "number" == typeof e.SkipRound ? t.SkipRound = e.SkipRound : "object" == typeof e.SkipRound && (t.SkipRound = new i.LongBits(e.SkipRound.low >>> 0, e.SkipRound.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AttackerFormation = [], n.DefenderFormation = [], n.ExcludeModule = [], n.RoundBuff = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.IsPvp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsPvp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxRound = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxRound = t.longs === String ? "0" : 0, n.RoundBuffLocaleKey = "", i.Long ? (o = new i.Long(0, 0, !1), n.BossMaxRound = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BossMaxRound = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkipRound = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkipRound = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.AttackerFormation && e.AttackerFormation.length) {
                    n.AttackerFormation = [];
                    for (var r = 0; r < e.AttackerFormation.length; ++r) "number" == typeof e.AttackerFormation[r] ? n.AttackerFormation[r] = t.longs === String ? String(e.AttackerFormation[r]) : e.AttackerFormation[r] : n.AttackerFormation[r] = t.longs === String ? i.Long.prototype.toString.call(e.AttackerFormation[r]) : t.longs === Number ? new i.LongBits(e.AttackerFormation[r].low >>> 0, e.AttackerFormation[r].high >>> 0).toNumber() : e.AttackerFormation[r]
                }
                if (e.DefenderFormation && e.DefenderFormation.length)
                    for (n.DefenderFormation = [], r = 0; r < e.DefenderFormation.length; ++r) "number" == typeof e.DefenderFormation[r] ? n.DefenderFormation[r] = t.longs === String ? String(e.DefenderFormation[r]) : e.DefenderFormation[r] : n.DefenderFormation[r] = t.longs === String ? i.Long.prototype.toString.call(e.DefenderFormation[r]) : t.longs === Number ? new i.LongBits(e.DefenderFormation[r].low >>> 0, e.DefenderFormation[r].high >>> 0).toNumber() : e.DefenderFormation[r];
                if (e.ExcludeModule && e.ExcludeModule.length)
                    for (n.ExcludeModule = [], r = 0; r < e.ExcludeModule.length; ++r) "number" == typeof e.ExcludeModule[r] ? n.ExcludeModule[r] = t.longs === String ? String(e.ExcludeModule[r]) : e.ExcludeModule[r] : n.ExcludeModule[r] = t.longs === String ? i.Long.prototype.toString.call(e.ExcludeModule[r]) : t.longs === Number ? new i.LongBits(e.ExcludeModule[r].low >>> 0, e.ExcludeModule[r].high >>> 0).toNumber() : e.ExcludeModule[r];
                if (null != e.IsPvp && e.hasOwnProperty("IsPvp") && ("number" == typeof e.IsPvp ? n.IsPvp = t.longs === String ? String(e.IsPvp) : e.IsPvp : n.IsPvp = t.longs === String ? i.Long.prototype.toString.call(e.IsPvp) : t.longs === Number ? new i.LongBits(e.IsPvp.low >>> 0, e.IsPvp.high >>> 0).toNumber() : e.IsPvp), null != e.MaxRound && e.hasOwnProperty("MaxRound") && ("number" == typeof e.MaxRound ? n.MaxRound = t.longs === String ? String(e.MaxRound) : e.MaxRound : n.MaxRound = t.longs === String ? i.Long.prototype.toString.call(e.MaxRound) : t.longs === Number ? new i.LongBits(e.MaxRound.low >>> 0, e.MaxRound.high >>> 0).toNumber() : e.MaxRound), e.RoundBuff && e.RoundBuff.length)
                    for (n.RoundBuff = [], r = 0; r < e.RoundBuff.length; ++r) n.RoundBuff[r] = a.IntArray_Config.toObject(e.RoundBuff[r], t);
                return null != e.RoundBuffLocaleKey && e.hasOwnProperty("RoundBuffLocaleKey") && (n.RoundBuffLocaleKey = e.RoundBuffLocaleKey), null != e.BossMaxRound && e.hasOwnProperty("BossMaxRound") && ("number" == typeof e.BossMaxRound ? n.BossMaxRound = t.longs === String ? String(e.BossMaxRound) : e.BossMaxRound : n.BossMaxRound = t.longs === String ? i.Long.prototype.toString.call(e.BossMaxRound) : t.longs === Number ? new i.LongBits(e.BossMaxRound.low >>> 0, e.BossMaxRound.high >>> 0).toNumber() : e.BossMaxRound), null != e.SkipRound && e.hasOwnProperty("SkipRound") && ("number" == typeof e.SkipRound ? n.SkipRound = t.longs === String ? String(e.SkipRound) : e.SkipRound : n.SkipRound = t.longs === String ? i.Long.prototype.toString.call(e.SkipRound) : t.longs === Number ? new i.LongBits(e.SkipRound.low >>> 0, e.SkipRound.high >>> 0).toNumber() : e.SkipRound), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MapType_Config"
            }, e
        }(), a.RelicLevel_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(16).int64(e.Xp), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RelicLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Xp = e.int64();
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high))) return "Xp: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.RelicLevel_Config) return e;
                var t = new a.RelicLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".RelicLevel_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".RelicLevel_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RelicLevel_Config"
            }, e
        }(), a.RelicEvent_Config = function() {
            function e(e) {
                if (this.Data = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Data = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Data && e.Data.length)
                    for (var n = 0; n < e.Data.length; ++n) a.IntArray_Config.encode(e.Data[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RelicEvent_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.Data && r.Data.length || (r.Data = []), r.Data.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Data[t]);
                        if (n) return "Data." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.RelicEvent_Config) return e;
                var t = new a.RelicEvent_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".RelicEvent_Config.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) {
                        if ("object" != typeof e.Data[n]) throw TypeError(".RelicEvent_Config.Data: object expected");
                        t.Data[n] = a.IntArray_Config.fromObject(e.Data[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var r = 0; r < e.Data.length; ++r) n.Data[r] = a.IntArray_Config.toObject(e.Data[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RelicEvent_Config"
            }, e
        }(), a.HieronBumper_Config = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Param && e.Param.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Param.length; ++n) t.int64(e.Param[n]);
                    t.ldelim()
                }
                return null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(40).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HieronBumper_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.Param && r.Param.length || (r.Param = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Param.push(e.int64());
                            else r.Param.push(e.int64());
                            break;
                        case 5:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t)
                        if (!(i.isInteger(e.Param[t]) || e.Param[t] && i.isInteger(e.Param[t].low) && i.isInteger(e.Param[t].high))) return "Param: integer|Long[] expected"
                }
                return null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HieronBumper_Config) return e;
                var t = new a.HieronBumper_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".HieronBumper_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) i.Long ? (t.Param[n] = i.Long.fromValue(e.Param[n])).unsigned = !1 : "string" == typeof e.Param[n] ? t.Param[n] = parseInt(e.Param[n], 10) : "number" == typeof e.Param[n] ? t.Param[n] = e.Param[n] : "object" == typeof e.Param[n] && (t.Param[n] = new i.LongBits(e.Param[n].low >>> 0, e.Param[n].high >>> 0).toNumber())
                }
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) "number" == typeof e.Param[r] ? n.Param[r] = t.longs === String ? String(e.Param[r]) : e.Param[r] : n.Param[r] = t.longs === String ? i.Long.prototype.toString.call(e.Param[r]) : t.longs === Number ? new i.LongBits(e.Param[r].low >>> 0, e.Param[r].high >>> 0).toNumber() : e.Param[r]
                }
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HieronBumper_Config"
            }, e
        }(), a.MainUISliderButtons_Config = function() {
            function e(e) {
                if (this.SpineEffect = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Position = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortNumber = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PanelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.SpineEffect = i.emptyArray, e.prototype.IsShowInIdleBattle = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IdleBattleSortNumber = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IdleBattlePosition = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Position && Object.hasOwnProperty.call(e, "Position") && t.uint32(32).int64(e.Position), null != e.SortNumber && Object.hasOwnProperty.call(e, "SortNumber") && t.uint32(40).int64(e.SortNumber), null != e.PanelId && Object.hasOwnProperty.call(e, "PanelId") && t.uint32(48).int64(e.PanelId), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(58).string(e.Icon), null != e.SpineEffect && e.SpineEffect.length)
                    for (var n = 0; n < e.SpineEffect.length; ++n) t.uint32(66).string(e.SpineEffect[n]);
                return null != e.IsShowInIdleBattle && Object.hasOwnProperty.call(e, "IsShowInIdleBattle") && t.uint32(80).int64(e.IsShowInIdleBattle), null != e.IdleBattleSortNumber && Object.hasOwnProperty.call(e, "IdleBattleSortNumber") && t.uint32(88).int64(e.IdleBattleSortNumber), null != e.IdleBattlePosition && Object.hasOwnProperty.call(e, "IdleBattlePosition") && t.uint32(96).int64(e.IdleBattlePosition), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MainUISliderButtons_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Position = e.int64();
                            break;
                        case 5:
                            r.SortNumber = e.int64();
                            break;
                        case 6:
                            r.PanelId = e.int64();
                            break;
                        case 7:
                            r.Icon = e.string();
                            break;
                        case 8:
                            r.SpineEffect && r.SpineEffect.length || (r.SpineEffect = []), r.SpineEffect.push(e.string());
                            break;
                        case 10:
                            r.IsShowInIdleBattle = e.int64();
                            break;
                        case 11:
                            r.IdleBattleSortNumber = e.int64();
                            break;
                        case 12:
                            r.IdleBattlePosition = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Position && e.hasOwnProperty("Position") && !(i.isInteger(e.Position) || e.Position && i.isInteger(e.Position.low) && i.isInteger(e.Position.high))) return "Position: integer|Long expected";
                if (null != e.SortNumber && e.hasOwnProperty("SortNumber") && !(i.isInteger(e.SortNumber) || e.SortNumber && i.isInteger(e.SortNumber.low) && i.isInteger(e.SortNumber.high))) return "SortNumber: integer|Long expected";
                if (null != e.PanelId && e.hasOwnProperty("PanelId") && !(i.isInteger(e.PanelId) || e.PanelId && i.isInteger(e.PanelId.low) && i.isInteger(e.PanelId.high))) return "PanelId: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.SpineEffect && e.hasOwnProperty("SpineEffect")) {
                    if (!Array.isArray(e.SpineEffect)) return "SpineEffect: array expected";
                    for (var t = 0; t < e.SpineEffect.length; ++t)
                        if (!i.isString(e.SpineEffect[t])) return "SpineEffect: string[] expected"
                }
                return null != e.IsShowInIdleBattle && e.hasOwnProperty("IsShowInIdleBattle") && !(i.isInteger(e.IsShowInIdleBattle) || e.IsShowInIdleBattle && i.isInteger(e.IsShowInIdleBattle.low) && i.isInteger(e.IsShowInIdleBattle.high)) ? "IsShowInIdleBattle: integer|Long expected" : null != e.IdleBattleSortNumber && e.hasOwnProperty("IdleBattleSortNumber") && !(i.isInteger(e.IdleBattleSortNumber) || e.IdleBattleSortNumber && i.isInteger(e.IdleBattleSortNumber.low) && i.isInteger(e.IdleBattleSortNumber.high)) ? "IdleBattleSortNumber: integer|Long expected" : null != e.IdleBattlePosition && e.hasOwnProperty("IdleBattlePosition") && !(i.isInteger(e.IdleBattlePosition) || e.IdleBattlePosition && i.isInteger(e.IdleBattlePosition.low) && i.isInteger(e.IdleBattlePosition.high)) ? "IdleBattlePosition: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MainUISliderButtons_Config) return e;
                var t = new a.MainUISliderButtons_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Position && (i.Long ? (t.Position = i.Long.fromValue(e.Position)).unsigned = !1 : "string" == typeof e.Position ? t.Position = parseInt(e.Position, 10) : "number" == typeof e.Position ? t.Position = e.Position : "object" == typeof e.Position && (t.Position = new i.LongBits(e.Position.low >>> 0, e.Position.high >>> 0).toNumber())), null != e.SortNumber && (i.Long ? (t.SortNumber = i.Long.fromValue(e.SortNumber)).unsigned = !1 : "string" == typeof e.SortNumber ? t.SortNumber = parseInt(e.SortNumber, 10) : "number" == typeof e.SortNumber ? t.SortNumber = e.SortNumber : "object" == typeof e.SortNumber && (t.SortNumber = new i.LongBits(e.SortNumber.low >>> 0, e.SortNumber.high >>> 0).toNumber())), null != e.PanelId && (i.Long ? (t.PanelId = i.Long.fromValue(e.PanelId)).unsigned = !1 : "string" == typeof e.PanelId ? t.PanelId = parseInt(e.PanelId, 10) : "number" == typeof e.PanelId ? t.PanelId = e.PanelId : "object" == typeof e.PanelId && (t.PanelId = new i.LongBits(e.PanelId.low >>> 0, e.PanelId.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), e.SpineEffect) {
                    if (!Array.isArray(e.SpineEffect)) throw TypeError(".MainUISliderButtons_Config.SpineEffect: array expected");
                    t.SpineEffect = [];
                    for (var n = 0; n < e.SpineEffect.length; ++n) t.SpineEffect[n] = String(e.SpineEffect[n])
                }
                return null != e.IsShowInIdleBattle && (i.Long ? (t.IsShowInIdleBattle = i.Long.fromValue(e.IsShowInIdleBattle)).unsigned = !1 : "string" == typeof e.IsShowInIdleBattle ? t.IsShowInIdleBattle = parseInt(e.IsShowInIdleBattle, 10) : "number" == typeof e.IsShowInIdleBattle ? t.IsShowInIdleBattle = e.IsShowInIdleBattle : "object" == typeof e.IsShowInIdleBattle && (t.IsShowInIdleBattle = new i.LongBits(e.IsShowInIdleBattle.low >>> 0, e.IsShowInIdleBattle.high >>> 0).toNumber())), null != e.IdleBattleSortNumber && (i.Long ? (t.IdleBattleSortNumber = i.Long.fromValue(e.IdleBattleSortNumber)).unsigned = !1 : "string" == typeof e.IdleBattleSortNumber ? t.IdleBattleSortNumber = parseInt(e.IdleBattleSortNumber, 10) : "number" == typeof e.IdleBattleSortNumber ? t.IdleBattleSortNumber = e.IdleBattleSortNumber : "object" == typeof e.IdleBattleSortNumber && (t.IdleBattleSortNumber = new i.LongBits(e.IdleBattleSortNumber.low >>> 0, e.IdleBattleSortNumber.high >>> 0).toNumber())), null != e.IdleBattlePosition && (i.Long ? (t.IdleBattlePosition = i.Long.fromValue(e.IdleBattlePosition)).unsigned = !1 : "string" == typeof e.IdleBattlePosition ? t.IdleBattlePosition = parseInt(e.IdleBattlePosition, 10) : "number" == typeof e.IdleBattlePosition ? t.IdleBattlePosition = e.IdleBattlePosition : "object" == typeof e.IdleBattlePosition && (t.IdleBattlePosition = new i.LongBits(e.IdleBattlePosition.low >>> 0, e.IdleBattlePosition.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.SpineEffect = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Position = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Position = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortNumber = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortNumber = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PanelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PanelId = t.longs === String ? "0" : 0, n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.IsShowInIdleBattle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsShowInIdleBattle = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.IdleBattleSortNumber = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IdleBattleSortNumber = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.IdleBattlePosition = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IdleBattlePosition = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Position && e.hasOwnProperty("Position") && ("number" == typeof e.Position ? n.Position = t.longs === String ? String(e.Position) : e.Position : n.Position = t.longs === String ? i.Long.prototype.toString.call(e.Position) : t.longs === Number ? new i.LongBits(e.Position.low >>> 0, e.Position.high >>> 0).toNumber() : e.Position), null != e.SortNumber && e.hasOwnProperty("SortNumber") && ("number" == typeof e.SortNumber ? n.SortNumber = t.longs === String ? String(e.SortNumber) : e.SortNumber : n.SortNumber = t.longs === String ? i.Long.prototype.toString.call(e.SortNumber) : t.longs === Number ? new i.LongBits(e.SortNumber.low >>> 0, e.SortNumber.high >>> 0).toNumber() : e.SortNumber), null != e.PanelId && e.hasOwnProperty("PanelId") && ("number" == typeof e.PanelId ? n.PanelId = t.longs === String ? String(e.PanelId) : e.PanelId : n.PanelId = t.longs === String ? i.Long.prototype.toString.call(e.PanelId) : t.longs === Number ? new i.LongBits(e.PanelId.low >>> 0, e.PanelId.high >>> 0).toNumber() : e.PanelId), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), e.SpineEffect && e.SpineEffect.length) {
                    n.SpineEffect = [];
                    for (var r = 0; r < e.SpineEffect.length; ++r) n.SpineEffect[r] = e.SpineEffect[r]
                }
                return null != e.IsShowInIdleBattle && e.hasOwnProperty("IsShowInIdleBattle") && ("number" == typeof e.IsShowInIdleBattle ? n.IsShowInIdleBattle = t.longs === String ? String(e.IsShowInIdleBattle) : e.IsShowInIdleBattle : n.IsShowInIdleBattle = t.longs === String ? i.Long.prototype.toString.call(e.IsShowInIdleBattle) : t.longs === Number ? new i.LongBits(e.IsShowInIdleBattle.low >>> 0, e.IsShowInIdleBattle.high >>> 0).toNumber() : e.IsShowInIdleBattle), null != e.IdleBattleSortNumber && e.hasOwnProperty("IdleBattleSortNumber") && ("number" == typeof e.IdleBattleSortNumber ? n.IdleBattleSortNumber = t.longs === String ? String(e.IdleBattleSortNumber) : e.IdleBattleSortNumber : n.IdleBattleSortNumber = t.longs === String ? i.Long.prototype.toString.call(e.IdleBattleSortNumber) : t.longs === Number ? new i.LongBits(e.IdleBattleSortNumber.low >>> 0, e.IdleBattleSortNumber.high >>> 0).toNumber() : e.IdleBattleSortNumber), null != e.IdleBattlePosition && e.hasOwnProperty("IdleBattlePosition") && ("number" == typeof e.IdleBattlePosition ? n.IdleBattlePosition = t.longs === String ? String(e.IdleBattlePosition) : e.IdleBattlePosition : n.IdleBattlePosition = t.longs === String ? i.Long.prototype.toString.call(e.IdleBattlePosition) : t.longs === Number ? new i.LongBits(e.IdleBattlePosition.low >>> 0, e.IdleBattlePosition.high >>> 0).toNumber() : e.IdleBattlePosition), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MainUISliderButtons_Config"
            }, e
        }(), a.AdventureChapter_Config = function() {
            function e(e) {
                if (this.MapIds = [], this.Monsters = [], this.Heros = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.Bg = "", e.prototype.MapIds = i.emptyArray, e.prototype.Monsters = i.emptyArray, e.prototype.Heros = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.Bg && Object.hasOwnProperty.call(e, "Bg") && t.uint32(26).string(e.Bg), null != e.MapIds && e.MapIds.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.MapIds.length; ++n) t.int64(e.MapIds[n]);
                    t.ldelim()
                }
                if (null != e.Monsters && e.Monsters.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.Monsters.length; ++n) t.int64(e.Monsters[n]);
                    t.ldelim()
                }
                if (null != e.Heros && e.Heros.length)
                    for (n = 0; n < e.Heros.length; ++n) a.IntArray_Config.encode(e.Heros[n], t.uint32(50).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AdventureChapter_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            r.Bg = e.string();
                            break;
                        case 4:
                            if (r.MapIds && r.MapIds.length || (r.MapIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.MapIds.push(e.int64());
                            else r.MapIds.push(e.int64());
                            break;
                        case 5:
                            if (r.Monsters && r.Monsters.length || (r.Monsters = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Monsters.push(e.int64());
                            else r.Monsters.push(e.int64());
                            break;
                        case 6:
                            r.Heros && r.Heros.length || (r.Heros = []), r.Heros.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name)) return "Name: string expected";
                if (null != e.Bg && e.hasOwnProperty("Bg") && !i.isString(e.Bg)) return "Bg: string expected";
                if (null != e.MapIds && e.hasOwnProperty("MapIds")) {
                    if (!Array.isArray(e.MapIds)) return "MapIds: array expected";
                    for (var t = 0; t < e.MapIds.length; ++t)
                        if (!(i.isInteger(e.MapIds[t]) || e.MapIds[t] && i.isInteger(e.MapIds[t].low) && i.isInteger(e.MapIds[t].high))) return "MapIds: integer|Long[] expected"
                }
                if (null != e.Monsters && e.hasOwnProperty("Monsters")) {
                    if (!Array.isArray(e.Monsters)) return "Monsters: array expected";
                    for (t = 0; t < e.Monsters.length; ++t)
                        if (!(i.isInteger(e.Monsters[t]) || e.Monsters[t] && i.isInteger(e.Monsters[t].low) && i.isInteger(e.Monsters[t].high))) return "Monsters: integer|Long[] expected"
                }
                if (null != e.Heros && e.hasOwnProperty("Heros")) {
                    if (!Array.isArray(e.Heros)) return "Heros: array expected";
                    for (t = 0; t < e.Heros.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Heros[t]);
                        if (n) return "Heros." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AdventureChapter_Config) return e;
                var t = new a.AdventureChapter_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.Bg && (t.Bg = String(e.Bg)), e.MapIds) {
                    if (!Array.isArray(e.MapIds)) throw TypeError(".AdventureChapter_Config.MapIds: array expected");
                    t.MapIds = [];
                    for (var n = 0; n < e.MapIds.length; ++n) i.Long ? (t.MapIds[n] = i.Long.fromValue(e.MapIds[n])).unsigned = !1 : "string" == typeof e.MapIds[n] ? t.MapIds[n] = parseInt(e.MapIds[n], 10) : "number" == typeof e.MapIds[n] ? t.MapIds[n] = e.MapIds[n] : "object" == typeof e.MapIds[n] && (t.MapIds[n] = new i.LongBits(e.MapIds[n].low >>> 0, e.MapIds[n].high >>> 0).toNumber())
                }
                if (e.Monsters) {
                    if (!Array.isArray(e.Monsters)) throw TypeError(".AdventureChapter_Config.Monsters: array expected");
                    for (t.Monsters = [], n = 0; n < e.Monsters.length; ++n) i.Long ? (t.Monsters[n] = i.Long.fromValue(e.Monsters[n])).unsigned = !1 : "string" == typeof e.Monsters[n] ? t.Monsters[n] = parseInt(e.Monsters[n], 10) : "number" == typeof e.Monsters[n] ? t.Monsters[n] = e.Monsters[n] : "object" == typeof e.Monsters[n] && (t.Monsters[n] = new i.LongBits(e.Monsters[n].low >>> 0, e.Monsters[n].high >>> 0).toNumber())
                }
                if (e.Heros) {
                    if (!Array.isArray(e.Heros)) throw TypeError(".AdventureChapter_Config.Heros: array expected");
                    for (t.Heros = [], n = 0; n < e.Heros.length; ++n) {
                        if ("object" != typeof e.Heros[n]) throw TypeError(".AdventureChapter_Config.Heros: object expected");
                        t.Heros[n] = a.IntArray_Config.fromObject(e.Heros[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.MapIds = [], n.Monsters = [], n.Heros = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Name = "", n.Bg = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Bg && e.hasOwnProperty("Bg") && (n.Bg = e.Bg), e.MapIds && e.MapIds.length) {
                    n.MapIds = [];
                    for (var r = 0; r < e.MapIds.length; ++r) "number" == typeof e.MapIds[r] ? n.MapIds[r] = t.longs === String ? String(e.MapIds[r]) : e.MapIds[r] : n.MapIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.MapIds[r]) : t.longs === Number ? new i.LongBits(e.MapIds[r].low >>> 0, e.MapIds[r].high >>> 0).toNumber() : e.MapIds[r]
                }
                if (e.Monsters && e.Monsters.length)
                    for (n.Monsters = [], r = 0; r < e.Monsters.length; ++r) "number" == typeof e.Monsters[r] ? n.Monsters[r] = t.longs === String ? String(e.Monsters[r]) : e.Monsters[r] : n.Monsters[r] = t.longs === String ? i.Long.prototype.toString.call(e.Monsters[r]) : t.longs === Number ? new i.LongBits(e.Monsters[r].low >>> 0, e.Monsters[r].high >>> 0).toNumber() : e.Monsters[r];
                if (e.Heros && e.Heros.length)
                    for (n.Heros = [], r = 0; r < e.Heros.length; ++r) n.Heros[r] = a.IntArray_Config.toObject(e.Heros[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AdventureChapter_Config"
            }, e
        }(), a.MapAdventure_Config = function() {
            function e(e) {
                if (this.RandomRewards = [], this.Rewards = [], this.ShowRewards = [], this.PassRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RandomRewards = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.prototype.ShowRewards = i.emptyArray, e.prototype.PassRewards = i.emptyArray, e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(32).int64(e.Level), null != e.RandomRewards && e.RandomRewards.length)
                    for (var n = 0; n < e.RandomRewards.length; ++n) a.IntArray_Config.encode(e.RandomRewards[n], t.uint32(42).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(50).fork()).ldelim();
                if (null != e.ShowRewards && e.ShowRewards.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.ShowRewards.length; ++n) t.int64(e.ShowRewards[n]);
                    t.ldelim()
                }
                if (null != e.PassRewards && e.PassRewards.length)
                    for (n = 0; n < e.PassRewards.length; ++n) a.IntArray_Config.encode(e.PassRewards[n], t.uint32(66).fork()).ldelim();
                return null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(72).int64(e.NextId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MapAdventure_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Level = e.int64();
                            break;
                        case 5:
                            r.RandomRewards && r.RandomRewards.length || (r.RandomRewards = []), r.RandomRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            if (r.ShowRewards && r.ShowRewards.length || (r.ShowRewards = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ShowRewards.push(e.int64());
                            else r.ShowRewards.push(e.int64());
                            break;
                        case 8:
                            r.PassRewards && r.PassRewards.length || (r.PassRewards = []), r.PassRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.NextId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.RandomRewards && e.hasOwnProperty("RandomRewards")) {
                    if (!Array.isArray(e.RandomRewards)) return "RandomRewards: array expected";
                    for (var t = 0; t < e.RandomRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.RandomRewards[t])) return "RandomRewards." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.ShowRewards && e.hasOwnProperty("ShowRewards")) {
                    if (!Array.isArray(e.ShowRewards)) return "ShowRewards: array expected";
                    for (t = 0; t < e.ShowRewards.length; ++t)
                        if (!(i.isInteger(e.ShowRewards[t]) || e.ShowRewards[t] && i.isInteger(e.ShowRewards[t].low) && i.isInteger(e.ShowRewards[t].high))) return "ShowRewards: integer|Long[] expected"
                }
                if (null != e.PassRewards && e.hasOwnProperty("PassRewards")) {
                    if (!Array.isArray(e.PassRewards)) return "PassRewards: array expected";
                    for (t = 0; t < e.PassRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.PassRewards[t])) return "PassRewards." + n
                    }
                }
                return null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high)) ? "NextId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MapAdventure_Config) return e;
                var t = new a.MapAdventure_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), e.RandomRewards) {
                    if (!Array.isArray(e.RandomRewards)) throw TypeError(".MapAdventure_Config.RandomRewards: array expected");
                    t.RandomRewards = [];
                    for (var n = 0; n < e.RandomRewards.length; ++n) {
                        if ("object" != typeof e.RandomRewards[n]) throw TypeError(".MapAdventure_Config.RandomRewards: object expected");
                        t.RandomRewards[n] = a.IntArray_Config.fromObject(e.RandomRewards[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".MapAdventure_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".MapAdventure_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.ShowRewards) {
                    if (!Array.isArray(e.ShowRewards)) throw TypeError(".MapAdventure_Config.ShowRewards: array expected");
                    for (t.ShowRewards = [], n = 0; n < e.ShowRewards.length; ++n) i.Long ? (t.ShowRewards[n] = i.Long.fromValue(e.ShowRewards[n])).unsigned = !1 : "string" == typeof e.ShowRewards[n] ? t.ShowRewards[n] = parseInt(e.ShowRewards[n], 10) : "number" == typeof e.ShowRewards[n] ? t.ShowRewards[n] = e.ShowRewards[n] : "object" == typeof e.ShowRewards[n] && (t.ShowRewards[n] = new i.LongBits(e.ShowRewards[n].low >>> 0, e.ShowRewards[n].high >>> 0).toNumber())
                }
                if (e.PassRewards) {
                    if (!Array.isArray(e.PassRewards)) throw TypeError(".MapAdventure_Config.PassRewards: array expected");
                    for (t.PassRewards = [], n = 0; n < e.PassRewards.length; ++n) {
                        if ("object" != typeof e.PassRewards[n]) throw TypeError(".MapAdventure_Config.PassRewards: object expected");
                        t.PassRewards[n] = a.IntArray_Config.fromObject(e.PassRewards[n])
                    }
                }
                return null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.RandomRewards = [], n.Rewards = [], n.ShowRewards = [], n.PassRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), e.RandomRewards && e.RandomRewards.length) {
                    n.RandomRewards = [];
                    for (var r = 0; r < e.RandomRewards.length; ++r) n.RandomRewards[r] = a.IntArray_Config.toObject(e.RandomRewards[r], t)
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (e.ShowRewards && e.ShowRewards.length)
                    for (n.ShowRewards = [], r = 0; r < e.ShowRewards.length; ++r) "number" == typeof e.ShowRewards[r] ? n.ShowRewards[r] = t.longs === String ? String(e.ShowRewards[r]) : e.ShowRewards[r] : n.ShowRewards[r] = t.longs === String ? i.Long.prototype.toString.call(e.ShowRewards[r]) : t.longs === Number ? new i.LongBits(e.ShowRewards[r].low >>> 0, e.ShowRewards[r].high >>> 0).toNumber() : e.ShowRewards[r];
                if (e.PassRewards && e.PassRewards.length)
                    for (n.PassRewards = [], r = 0; r < e.PassRewards.length; ++r) n.PassRewards[r] = a.IntArray_Config.toObject(e.PassRewards[r], t);
                return null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MapAdventure_Config"
            }, e
        }(), a.ItemEquipment_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(32).int64(e.Type), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(40).int64(e.Star), null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(48).int64(e.NextId), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(56).int64(e.Score), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(64).int64(e.Xp), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(74).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemEquipment_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Type = e.int64();
                            break;
                        case 5:
                            r.Star = e.int64();
                            break;
                        case 6:
                            r.NextId = e.int64();
                            break;
                        case 7:
                            r.Score = e.int64();
                            break;
                        case 8:
                            r.Xp = e.int64();
                            break;
                        case 9:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high))) return "Star: integer|Long expected";
                if (null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high))) return "NextId: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high))) return "Xp: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemEquipment_Config) return e;
                var t = new a.ItemEquipment_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ItemEquipment_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ItemEquipment_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemEquipment_Config"
            }, e
        }(), a.RankType_Config = function() {
            function e(e) {
                if (this.Achievements = [], this.LikeRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Achievements = i.emptyArray, e.prototype.DataType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DailyLikeCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LikeRewards = i.emptyArray, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GameModuleId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(32).int64(e.Count), null != e.Achievements && e.Achievements.length)
                    for (var n = 0; n < e.Achievements.length; ++n) a.IntArray_Config.encode(e.Achievements[n], t.uint32(42).fork()).ldelim();
                if (null != e.DataType && Object.hasOwnProperty.call(e, "DataType") && t.uint32(56).int64(e.DataType), null != e.DailyLikeCount && Object.hasOwnProperty.call(e, "DailyLikeCount") && t.uint32(64).int64(e.DailyLikeCount), null != e.LikeRewards && e.LikeRewards.length)
                    for (n = 0; n < e.LikeRewards.length; ++n) a.IntArray_Config.encode(e.LikeRewards[n], t.uint32(74).fork()).ldelim();
                return null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(80).int64(e.SortId), null != e.GameModuleId && Object.hasOwnProperty.call(e, "GameModuleId") && t.uint32(112).int64(e.GameModuleId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RankType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Count = e.int64();
                            break;
                        case 5:
                            r.Achievements && r.Achievements.length || (r.Achievements = []), r.Achievements.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.DataType = e.int64();
                            break;
                        case 8:
                            r.DailyLikeCount = e.int64();
                            break;
                        case 9:
                            r.LikeRewards && r.LikeRewards.length || (r.LikeRewards = []), r.LikeRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.SortId = e.int64();
                            break;
                        case 14:
                            r.GameModuleId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high))) return "Count: integer|Long expected";
                if (null != e.Achievements && e.hasOwnProperty("Achievements")) {
                    if (!Array.isArray(e.Achievements)) return "Achievements: array expected";
                    for (var t = 0; t < e.Achievements.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Achievements[t])) return "Achievements." + n
                }
                if (null != e.DataType && e.hasOwnProperty("DataType") && !(i.isInteger(e.DataType) || e.DataType && i.isInteger(e.DataType.low) && i.isInteger(e.DataType.high))) return "DataType: integer|Long expected";
                if (null != e.DailyLikeCount && e.hasOwnProperty("DailyLikeCount") && !(i.isInteger(e.DailyLikeCount) || e.DailyLikeCount && i.isInteger(e.DailyLikeCount.low) && i.isInteger(e.DailyLikeCount.high))) return "DailyLikeCount: integer|Long expected";
                if (null != e.LikeRewards && e.hasOwnProperty("LikeRewards")) {
                    if (!Array.isArray(e.LikeRewards)) return "LikeRewards: array expected";
                    for (t = 0; t < e.LikeRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.LikeRewards[t])) return "LikeRewards." + n
                    }
                }
                return null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null != e.GameModuleId && e.hasOwnProperty("GameModuleId") && !(i.isInteger(e.GameModuleId) || e.GameModuleId && i.isInteger(e.GameModuleId.low) && i.isInteger(e.GameModuleId.high)) ? "GameModuleId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RankType_Config) return e;
                var t = new a.RankType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), e.Achievements) {
                    if (!Array.isArray(e.Achievements)) throw TypeError(".RankType_Config.Achievements: array expected");
                    t.Achievements = [];
                    for (var n = 0; n < e.Achievements.length; ++n) {
                        if ("object" != typeof e.Achievements[n]) throw TypeError(".RankType_Config.Achievements: object expected");
                        t.Achievements[n] = a.IntArray_Config.fromObject(e.Achievements[n])
                    }
                }
                if (null != e.DataType && (i.Long ? (t.DataType = i.Long.fromValue(e.DataType)).unsigned = !1 : "string" == typeof e.DataType ? t.DataType = parseInt(e.DataType, 10) : "number" == typeof e.DataType ? t.DataType = e.DataType : "object" == typeof e.DataType && (t.DataType = new i.LongBits(e.DataType.low >>> 0, e.DataType.high >>> 0).toNumber())), null != e.DailyLikeCount && (i.Long ? (t.DailyLikeCount = i.Long.fromValue(e.DailyLikeCount)).unsigned = !1 : "string" == typeof e.DailyLikeCount ? t.DailyLikeCount = parseInt(e.DailyLikeCount, 10) : "number" == typeof e.DailyLikeCount ? t.DailyLikeCount = e.DailyLikeCount : "object" == typeof e.DailyLikeCount && (t.DailyLikeCount = new i.LongBits(e.DailyLikeCount.low >>> 0, e.DailyLikeCount.high >>> 0).toNumber())), e.LikeRewards) {
                    if (!Array.isArray(e.LikeRewards)) throw TypeError(".RankType_Config.LikeRewards: array expected");
                    for (t.LikeRewards = [], n = 0; n < e.LikeRewards.length; ++n) {
                        if ("object" != typeof e.LikeRewards[n]) throw TypeError(".RankType_Config.LikeRewards: object expected");
                        t.LikeRewards[n] = a.IntArray_Config.fromObject(e.LikeRewards[n])
                    }
                }
                return null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), null != e.GameModuleId && (i.Long ? (t.GameModuleId = i.Long.fromValue(e.GameModuleId)).unsigned = !1 : "string" == typeof e.GameModuleId ? t.GameModuleId = parseInt(e.GameModuleId, 10) : "number" == typeof e.GameModuleId ? t.GameModuleId = e.GameModuleId : "object" == typeof e.GameModuleId && (t.GameModuleId = new i.LongBits(e.GameModuleId.low >>> 0, e.GameModuleId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Achievements = [], n.LikeRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DataType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DataType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DailyLikeCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DailyLikeCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GameModuleId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GameModuleId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), e.Achievements && e.Achievements.length) {
                    n.Achievements = [];
                    for (var r = 0; r < e.Achievements.length; ++r) n.Achievements[r] = a.IntArray_Config.toObject(e.Achievements[r], t)
                }
                if (null != e.DataType && e.hasOwnProperty("DataType") && ("number" == typeof e.DataType ? n.DataType = t.longs === String ? String(e.DataType) : e.DataType : n.DataType = t.longs === String ? i.Long.prototype.toString.call(e.DataType) : t.longs === Number ? new i.LongBits(e.DataType.low >>> 0, e.DataType.high >>> 0).toNumber() : e.DataType), null != e.DailyLikeCount && e.hasOwnProperty("DailyLikeCount") && ("number" == typeof e.DailyLikeCount ? n.DailyLikeCount = t.longs === String ? String(e.DailyLikeCount) : e.DailyLikeCount : n.DailyLikeCount = t.longs === String ? i.Long.prototype.toString.call(e.DailyLikeCount) : t.longs === Number ? new i.LongBits(e.DailyLikeCount.low >>> 0, e.DailyLikeCount.high >>> 0).toNumber() : e.DailyLikeCount), e.LikeRewards && e.LikeRewards.length)
                    for (n.LikeRewards = [], r = 0; r < e.LikeRewards.length; ++r) n.LikeRewards[r] = a.IntArray_Config.toObject(e.LikeRewards[r], t);
                return null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), null != e.GameModuleId && e.hasOwnProperty("GameModuleId") && ("number" == typeof e.GameModuleId ? n.GameModuleId = t.longs === String ? String(e.GameModuleId) : e.GameModuleId : n.GameModuleId = t.longs === String ? i.Long.prototype.toString.call(e.GameModuleId) : t.longs === Number ? new i.LongBits(e.GameModuleId.low >>> 0, e.GameModuleId.high >>> 0).toNumber() : e.GameModuleId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RankType_Config"
            }, e
        }(), a.SecretAreaProps_Config = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Picture = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Param && e.Param.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.Param.length; ++n) t.int64(e.Param[n]);
                    t.ldelim()
                }
                return null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(40).int64(e.Count), null != e.Picture && Object.hasOwnProperty.call(e, "Picture") && t.uint32(66).string(e.Picture), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretAreaProps_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            if (r.Param && r.Param.length || (r.Param = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Param.push(e.int64());
                            else r.Param.push(e.int64());
                            break;
                        case 5:
                            r.Count = e.int64();
                            break;
                        case 8:
                            r.Picture = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t)
                        if (!(i.isInteger(e.Param[t]) || e.Param[t] && i.isInteger(e.Param[t].low) && i.isInteger(e.Param[t].high))) return "Param: integer|Long[] expected"
                }
                return null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null != e.Picture && e.hasOwnProperty("Picture") && !i.isString(e.Picture) ? "Picture: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretAreaProps_Config) return e;
                var t = new a.SecretAreaProps_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".SecretAreaProps_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) i.Long ? (t.Param[n] = i.Long.fromValue(e.Param[n])).unsigned = !1 : "string" == typeof e.Param[n] ? t.Param[n] = parseInt(e.Param[n], 10) : "number" == typeof e.Param[n] ? t.Param[n] = e.Param[n] : "object" == typeof e.Param[n] && (t.Param[n] = new i.LongBits(e.Param[n].low >>> 0, e.Param[n].high >>> 0).toNumber())
                }
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), null != e.Picture && (t.Picture = String(e.Picture)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, n.Picture = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) "number" == typeof e.Param[r] ? n.Param[r] = t.longs === String ? String(e.Param[r]) : e.Param[r] : n.Param[r] = t.longs === String ? i.Long.prototype.toString.call(e.Param[r]) : t.longs === Number ? new i.LongBits(e.Param[r].low >>> 0, e.Param[r].high >>> 0).toNumber() : e.Param[r]
                }
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), null != e.Picture && e.hasOwnProperty("Picture") && (n.Picture = e.Picture), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretAreaProps_Config"
            }, e
        }(), a.SecretAreaMonsterType_Config = function() {
            function e(e) {
                if (this.Monsters = [], this.PropProbability = [], this.Rewards = [], this.RandomRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Monsters = i.emptyArray, e.prototype.PropProbability = i.emptyArray, e.prototype.Ratio = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.RandomRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Monsters && e.Monsters.length) {
                    t.uint32(50).fork();
                    for (var n = 0; n < e.Monsters.length; ++n) t.int64(e.Monsters[n]);
                    t.ldelim()
                }
                if (null != e.PropProbability && e.PropProbability.length)
                    for (n = 0; n < e.PropProbability.length; ++n) a.IntArray_Config.encode(e.PropProbability[n], t.uint32(58).fork()).ldelim();
                if (null != e.Ratio && Object.hasOwnProperty.call(e, "Ratio") && t.uint32(64).int64(e.Ratio), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(74).fork()).ldelim();
                if (null != e.RandomRewards && e.RandomRewards.length)
                    for (n = 0; n < e.RandomRewards.length; ++n) a.IntArray_Config.encode(e.RandomRewards[n], t.uint32(82).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretAreaMonsterType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 6:
                            if (r.Monsters && r.Monsters.length || (r.Monsters = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Monsters.push(e.int64());
                            else r.Monsters.push(e.int64());
                            break;
                        case 7:
                            r.PropProbability && r.PropProbability.length || (r.PropProbability = []), r.PropProbability.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.Ratio = e.int64();
                            break;
                        case 9:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.RandomRewards && r.RandomRewards.length || (r.RandomRewards = []), r.RandomRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Monsters && e.hasOwnProperty("Monsters")) {
                    if (!Array.isArray(e.Monsters)) return "Monsters: array expected";
                    for (var t = 0; t < e.Monsters.length; ++t)
                        if (!(i.isInteger(e.Monsters[t]) || e.Monsters[t] && i.isInteger(e.Monsters[t].low) && i.isInteger(e.Monsters[t].high))) return "Monsters: integer|Long[] expected"
                }
                if (null != e.PropProbability && e.hasOwnProperty("PropProbability")) {
                    if (!Array.isArray(e.PropProbability)) return "PropProbability: array expected";
                    for (t = 0; t < e.PropProbability.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PropProbability[t])) return "PropProbability." + n
                }
                if (null != e.Ratio && e.hasOwnProperty("Ratio") && !(i.isInteger(e.Ratio) || e.Ratio && i.isInteger(e.Ratio.low) && i.isInteger(e.Ratio.high))) return "Ratio: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.RandomRewards && e.hasOwnProperty("RandomRewards")) {
                    if (!Array.isArray(e.RandomRewards)) return "RandomRewards: array expected";
                    for (t = 0; t < e.RandomRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.RandomRewards[t])) return "RandomRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretAreaMonsterType_Config) return e;
                var t = new a.SecretAreaMonsterType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Monsters) {
                    if (!Array.isArray(e.Monsters)) throw TypeError(".SecretAreaMonsterType_Config.Monsters: array expected");
                    t.Monsters = [];
                    for (var n = 0; n < e.Monsters.length; ++n) i.Long ? (t.Monsters[n] = i.Long.fromValue(e.Monsters[n])).unsigned = !1 : "string" == typeof e.Monsters[n] ? t.Monsters[n] = parseInt(e.Monsters[n], 10) : "number" == typeof e.Monsters[n] ? t.Monsters[n] = e.Monsters[n] : "object" == typeof e.Monsters[n] && (t.Monsters[n] = new i.LongBits(e.Monsters[n].low >>> 0, e.Monsters[n].high >>> 0).toNumber())
                }
                if (e.PropProbability) {
                    if (!Array.isArray(e.PropProbability)) throw TypeError(".SecretAreaMonsterType_Config.PropProbability: array expected");
                    for (t.PropProbability = [], n = 0; n < e.PropProbability.length; ++n) {
                        if ("object" != typeof e.PropProbability[n]) throw TypeError(".SecretAreaMonsterType_Config.PropProbability: object expected");
                        t.PropProbability[n] = a.IntArray_Config.fromObject(e.PropProbability[n])
                    }
                }
                if (null != e.Ratio && (i.Long ? (t.Ratio = i.Long.fromValue(e.Ratio)).unsigned = !1 : "string" == typeof e.Ratio ? t.Ratio = parseInt(e.Ratio, 10) : "number" == typeof e.Ratio ? t.Ratio = e.Ratio : "object" == typeof e.Ratio && (t.Ratio = new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".SecretAreaMonsterType_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".SecretAreaMonsterType_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.RandomRewards) {
                    if (!Array.isArray(e.RandomRewards)) throw TypeError(".SecretAreaMonsterType_Config.RandomRewards: array expected");
                    for (t.RandomRewards = [], n = 0; n < e.RandomRewards.length; ++n) {
                        if ("object" != typeof e.RandomRewards[n]) throw TypeError(".SecretAreaMonsterType_Config.RandomRewards: object expected");
                        t.RandomRewards[n] = a.IntArray_Config.fromObject(e.RandomRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Monsters = [], n.PropProbability = [], n.Rewards = [], n.RandomRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Ratio = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Ratio = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Monsters && e.Monsters.length) {
                    n.Monsters = [];
                    for (var r = 0; r < e.Monsters.length; ++r) "number" == typeof e.Monsters[r] ? n.Monsters[r] = t.longs === String ? String(e.Monsters[r]) : e.Monsters[r] : n.Monsters[r] = t.longs === String ? i.Long.prototype.toString.call(e.Monsters[r]) : t.longs === Number ? new i.LongBits(e.Monsters[r].low >>> 0, e.Monsters[r].high >>> 0).toNumber() : e.Monsters[r]
                }
                if (e.PropProbability && e.PropProbability.length)
                    for (n.PropProbability = [], r = 0; r < e.PropProbability.length; ++r) n.PropProbability[r] = a.IntArray_Config.toObject(e.PropProbability[r], t);
                if (null != e.Ratio && e.hasOwnProperty("Ratio") && ("number" == typeof e.Ratio ? n.Ratio = t.longs === String ? String(e.Ratio) : e.Ratio : n.Ratio = t.longs === String ? i.Long.prototype.toString.call(e.Ratio) : t.longs === Number ? new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber() : e.Ratio), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (e.RandomRewards && e.RandomRewards.length)
                    for (n.RandomRewards = [], r = 0; r < e.RandomRewards.length; ++r) n.RandomRewards[r] = a.IntArray_Config.toObject(e.RandomRewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretAreaMonsterType_Config"
            }, e
        }(), a.SecretAreaBuff_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PowerUp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.PowerUp && Object.hasOwnProperty.call(e, "PowerUp") && t.uint32(48).int64(e.PowerUp), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(58).fork()).ldelim();
                return null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(64).int64(e.Count), null != e.TargetType && Object.hasOwnProperty.call(e, "TargetType") && t.uint32(72).int64(e.TargetType), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretAreaBuff_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 6:
                            r.PowerUp = e.int64();
                            break;
                        case 7:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.Count = e.int64();
                            break;
                        case 9:
                            r.TargetType = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.PowerUp && e.hasOwnProperty("PowerUp") && !(i.isInteger(e.PowerUp) || e.PowerUp && i.isInteger(e.PowerUp.low) && i.isInteger(e.PowerUp.high))) return "PowerUp: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null != e.TargetType && e.hasOwnProperty("TargetType") && !(i.isInteger(e.TargetType) || e.TargetType && i.isInteger(e.TargetType.low) && i.isInteger(e.TargetType.high)) ? "TargetType: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretAreaBuff_Config) return e;
                var t = new a.SecretAreaBuff_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.PowerUp && (i.Long ? (t.PowerUp = i.Long.fromValue(e.PowerUp)).unsigned = !1 : "string" == typeof e.PowerUp ? t.PowerUp = parseInt(e.PowerUp, 10) : "number" == typeof e.PowerUp ? t.PowerUp = e.PowerUp : "object" == typeof e.PowerUp && (t.PowerUp = new i.LongBits(e.PowerUp.low >>> 0, e.PowerUp.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".SecretAreaBuff_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".SecretAreaBuff_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), null != e.TargetType && (i.Long ? (t.TargetType = i.Long.fromValue(e.TargetType)).unsigned = !1 : "string" == typeof e.TargetType ? t.TargetType = parseInt(e.TargetType, 10) : "number" == typeof e.TargetType ? t.TargetType = e.TargetType : "object" == typeof e.TargetType && (t.TargetType = new i.LongBits(e.TargetType.low >>> 0, e.TargetType.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.PowerUp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PowerUp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.PowerUp && e.hasOwnProperty("PowerUp") && ("number" == typeof e.PowerUp ? n.PowerUp = t.longs === String ? String(e.PowerUp) : e.PowerUp : n.PowerUp = t.longs === String ? i.Long.prototype.toString.call(e.PowerUp) : t.longs === Number ? new i.LongBits(e.PowerUp.low >>> 0, e.PowerUp.high >>> 0).toNumber() : e.PowerUp), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), null != e.TargetType && e.hasOwnProperty("TargetType") && ("number" == typeof e.TargetType ? n.TargetType = t.longs === String ? String(e.TargetType) : e.TargetType : n.TargetType = t.longs === String ? i.Long.prototype.toString.call(e.TargetType) : t.longs === Number ? new i.LongBits(e.TargetType.low >>> 0, e.TargetType.high >>> 0).toNumber() : e.TargetType), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretAreaBuff_Config"
            }, e
        }(), a.SecretAreaMap_Config = function() {
            function e(e) {
                if (this.InletAndOutlet = [], this.Monsters = [], this.Rewards = [], this.Map = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.InletAndOutlet = i.emptyArray, e.prototype.Monsters = i.emptyArray, e.prototype.ProsCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GrassCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Map = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.InletAndOutlet && e.InletAndOutlet.length)
                    for (var n = 0; n < e.InletAndOutlet.length; ++n) a.IntArray_Config.encode(e.InletAndOutlet[n], t.uint32(26).fork()).ldelim();
                if (null != e.Monsters && e.Monsters.length)
                    for (n = 0; n < e.Monsters.length; ++n) a.IntArray_Config.encode(e.Monsters[n], t.uint32(34).fork()).ldelim();
                if (null != e.ProsCount && Object.hasOwnProperty.call(e, "ProsCount") && t.uint32(40).int64(e.ProsCount), null != e.GrassCount && Object.hasOwnProperty.call(e, "GrassCount") && t.uint32(48).int64(e.GrassCount), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(58).fork()).ldelim();
                if (null != e.Map && e.Map.length)
                    for (n = 0; n < e.Map.length; ++n) a.IntArray_Config.encode(e.Map[n], t.uint32(66).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretAreaMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.InletAndOutlet && r.InletAndOutlet.length || (r.InletAndOutlet = []), r.InletAndOutlet.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Monsters && r.Monsters.length || (r.Monsters = []), r.Monsters.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.ProsCount = e.int64();
                            break;
                        case 6:
                            r.GrassCount = e.int64();
                            break;
                        case 7:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.Map && r.Map.length || (r.Map = []), r.Map.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.InletAndOutlet && e.hasOwnProperty("InletAndOutlet")) {
                    if (!Array.isArray(e.InletAndOutlet)) return "InletAndOutlet: array expected";
                    for (var t = 0; t < e.InletAndOutlet.length; ++t)
                        if (n = a.IntArray_Config.verify(e.InletAndOutlet[t])) return "InletAndOutlet." + n
                }
                if (null != e.Monsters && e.hasOwnProperty("Monsters")) {
                    if (!Array.isArray(e.Monsters)) return "Monsters: array expected";
                    for (t = 0; t < e.Monsters.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Monsters[t])) return "Monsters." + n
                }
                if (null != e.ProsCount && e.hasOwnProperty("ProsCount") && !(i.isInteger(e.ProsCount) || e.ProsCount && i.isInteger(e.ProsCount.low) && i.isInteger(e.ProsCount.high))) return "ProsCount: integer|Long expected";
                if (null != e.GrassCount && e.hasOwnProperty("GrassCount") && !(i.isInteger(e.GrassCount) || e.GrassCount && i.isInteger(e.GrassCount.low) && i.isInteger(e.GrassCount.high))) return "GrassCount: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!Array.isArray(e.Map)) return "Map: array expected";
                    for (t = 0; t < e.Map.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Map[t])) return "Map." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretAreaMap_Config) return e;
                var t = new a.SecretAreaMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.InletAndOutlet) {
                    if (!Array.isArray(e.InletAndOutlet)) throw TypeError(".SecretAreaMap_Config.InletAndOutlet: array expected");
                    t.InletAndOutlet = [];
                    for (var n = 0; n < e.InletAndOutlet.length; ++n) {
                        if ("object" != typeof e.InletAndOutlet[n]) throw TypeError(".SecretAreaMap_Config.InletAndOutlet: object expected");
                        t.InletAndOutlet[n] = a.IntArray_Config.fromObject(e.InletAndOutlet[n])
                    }
                }
                if (e.Monsters) {
                    if (!Array.isArray(e.Monsters)) throw TypeError(".SecretAreaMap_Config.Monsters: array expected");
                    for (t.Monsters = [], n = 0; n < e.Monsters.length; ++n) {
                        if ("object" != typeof e.Monsters[n]) throw TypeError(".SecretAreaMap_Config.Monsters: object expected");
                        t.Monsters[n] = a.IntArray_Config.fromObject(e.Monsters[n])
                    }
                }
                if (null != e.ProsCount && (i.Long ? (t.ProsCount = i.Long.fromValue(e.ProsCount)).unsigned = !1 : "string" == typeof e.ProsCount ? t.ProsCount = parseInt(e.ProsCount, 10) : "number" == typeof e.ProsCount ? t.ProsCount = e.ProsCount : "object" == typeof e.ProsCount && (t.ProsCount = new i.LongBits(e.ProsCount.low >>> 0, e.ProsCount.high >>> 0).toNumber())), null != e.GrassCount && (i.Long ? (t.GrassCount = i.Long.fromValue(e.GrassCount)).unsigned = !1 : "string" == typeof e.GrassCount ? t.GrassCount = parseInt(e.GrassCount, 10) : "number" == typeof e.GrassCount ? t.GrassCount = e.GrassCount : "object" == typeof e.GrassCount && (t.GrassCount = new i.LongBits(e.GrassCount.low >>> 0, e.GrassCount.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".SecretAreaMap_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".SecretAreaMap_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.Map) {
                    if (!Array.isArray(e.Map)) throw TypeError(".SecretAreaMap_Config.Map: array expected");
                    for (t.Map = [], n = 0; n < e.Map.length; ++n) {
                        if ("object" != typeof e.Map[n]) throw TypeError(".SecretAreaMap_Config.Map: object expected");
                        t.Map[n] = a.IntArray_Config.fromObject(e.Map[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.InletAndOutlet = [], n.Monsters = [], n.Rewards = [], n.Map = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ProsCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ProsCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GrassCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GrassCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.InletAndOutlet && e.InletAndOutlet.length) {
                    n.InletAndOutlet = [];
                    for (var r = 0; r < e.InletAndOutlet.length; ++r) n.InletAndOutlet[r] = a.IntArray_Config.toObject(e.InletAndOutlet[r], t)
                }
                if (e.Monsters && e.Monsters.length)
                    for (n.Monsters = [], r = 0; r < e.Monsters.length; ++r) n.Monsters[r] = a.IntArray_Config.toObject(e.Monsters[r], t);
                if (null != e.ProsCount && e.hasOwnProperty("ProsCount") && ("number" == typeof e.ProsCount ? n.ProsCount = t.longs === String ? String(e.ProsCount) : e.ProsCount : n.ProsCount = t.longs === String ? i.Long.prototype.toString.call(e.ProsCount) : t.longs === Number ? new i.LongBits(e.ProsCount.low >>> 0, e.ProsCount.high >>> 0).toNumber() : e.ProsCount), null != e.GrassCount && e.hasOwnProperty("GrassCount") && ("number" == typeof e.GrassCount ? n.GrassCount = t.longs === String ? String(e.GrassCount) : e.GrassCount : n.GrassCount = t.longs === String ? i.Long.prototype.toString.call(e.GrassCount) : t.longs === Number ? new i.LongBits(e.GrassCount.low >>> 0, e.GrassCount.high >>> 0).toNumber() : e.GrassCount), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (e.Map && e.Map.length)
                    for (n.Map = [], r = 0; r < e.Map.length; ++r) n.Map[r] = a.IntArray_Config.toObject(e.Map[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretAreaMap_Config"
            }, e
        }(), a.RobotHero_Config = function() {
            function e(e) {
                if (this.Equipments = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Equipments = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(16).int64(e.HeroId), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(24).int64(e.Level), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(32).int64(e.StarLevel), null != e.Equipments && e.Equipments.length) {
                    t.uint32(42).fork();
                    for (var n = 0; n < e.Equipments.length; ++n) t.int64(e.Equipments[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RobotHero_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HeroId = e.int64();
                            break;
                        case 3:
                            r.Level = e.int64();
                            break;
                        case 4:
                            r.StarLevel = e.int64();
                            break;
                        case 5:
                            if (r.Equipments && r.Equipments.length || (r.Equipments = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Equipments.push(e.int64());
                            else r.Equipments.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high))) return "HeroId: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high))) return "StarLevel: integer|Long expected";
                if (null != e.Equipments && e.hasOwnProperty("Equipments")) {
                    if (!Array.isArray(e.Equipments)) return "Equipments: array expected";
                    for (var t = 0; t < e.Equipments.length; ++t)
                        if (!(i.isInteger(e.Equipments[t]) || e.Equipments[t] && i.isInteger(e.Equipments[t].low) && i.isInteger(e.Equipments[t].high))) return "Equipments: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.RobotHero_Config) return e;
                var t = new a.RobotHero_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), e.Equipments) {
                    if (!Array.isArray(e.Equipments)) throw TypeError(".RobotHero_Config.Equipments: array expected");
                    t.Equipments = [];
                    for (var n = 0; n < e.Equipments.length; ++n) i.Long ? (t.Equipments[n] = i.Long.fromValue(e.Equipments[n])).unsigned = !1 : "string" == typeof e.Equipments[n] ? t.Equipments[n] = parseInt(e.Equipments[n], 10) : "number" == typeof e.Equipments[n] ? t.Equipments[n] = e.Equipments[n] : "object" == typeof e.Equipments[n] && (t.Equipments[n] = new i.LongBits(e.Equipments[n].low >>> 0, e.Equipments[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Equipments = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), e.Equipments && e.Equipments.length) {
                    n.Equipments = [];
                    for (var r = 0; r < e.Equipments.length; ++r) "number" == typeof e.Equipments[r] ? n.Equipments[r] = t.longs === String ? String(e.Equipments[r]) : e.Equipments[r] : n.Equipments[r] = t.longs === String ? i.Long.prototype.toString.call(e.Equipments[r]) : t.longs === Number ? new i.LongBits(e.Equipments[r].low >>> 0, e.Equipments[r].high >>> 0).toNumber() : e.Equipments[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RobotHero_Config"
            }, e
        }(), a.AllianceBadge_Config = function() {
            function e(e) {
                if (this.Task = [], this.Privilege = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.Task = i.emptyArray, e.prototype.Privilege = i.emptyArray, e.prototype.GetWay = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(18).string(e.Icon), null != e.Task && e.Task.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.Task.length; ++n) t.int64(e.Task[n]);
                    t.ldelim()
                }
                if (null != e.Privilege && e.Privilege.length)
                    for (n = 0; n < e.Privilege.length; ++n) a.IntArray_Config.encode(e.Privilege[n], t.uint32(42).fork()).ldelim();
                return null != e.GetWay && Object.hasOwnProperty.call(e, "GetWay") && t.uint32(56).int64(e.GetWay), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceBadge_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Icon = e.string();
                            break;
                        case 4:
                            if (r.Task && r.Task.length || (r.Task = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Task.push(e.int64());
                            else r.Task.push(e.int64());
                            break;
                        case 5:
                            r.Privilege && r.Privilege.length || (r.Privilege = []), r.Privilege.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.GetWay = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.Task && e.hasOwnProperty("Task")) {
                    if (!Array.isArray(e.Task)) return "Task: array expected";
                    for (var t = 0; t < e.Task.length; ++t)
                        if (!(i.isInteger(e.Task[t]) || e.Task[t] && i.isInteger(e.Task[t].low) && i.isInteger(e.Task[t].high))) return "Task: integer|Long[] expected"
                }
                if (null != e.Privilege && e.hasOwnProperty("Privilege")) {
                    if (!Array.isArray(e.Privilege)) return "Privilege: array expected";
                    for (t = 0; t < e.Privilege.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Privilege[t]);
                        if (n) return "Privilege." + n
                    }
                }
                return null != e.GetWay && e.hasOwnProperty("GetWay") && !(i.isInteger(e.GetWay) || e.GetWay && i.isInteger(e.GetWay.low) && i.isInteger(e.GetWay.high)) ? "GetWay: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceBadge_Config) return e;
                var t = new a.AllianceBadge_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), e.Task) {
                    if (!Array.isArray(e.Task)) throw TypeError(".AllianceBadge_Config.Task: array expected");
                    t.Task = [];
                    for (var n = 0; n < e.Task.length; ++n) i.Long ? (t.Task[n] = i.Long.fromValue(e.Task[n])).unsigned = !1 : "string" == typeof e.Task[n] ? t.Task[n] = parseInt(e.Task[n], 10) : "number" == typeof e.Task[n] ? t.Task[n] = e.Task[n] : "object" == typeof e.Task[n] && (t.Task[n] = new i.LongBits(e.Task[n].low >>> 0, e.Task[n].high >>> 0).toNumber())
                }
                if (e.Privilege) {
                    if (!Array.isArray(e.Privilege)) throw TypeError(".AllianceBadge_Config.Privilege: array expected");
                    for (t.Privilege = [], n = 0; n < e.Privilege.length; ++n) {
                        if ("object" != typeof e.Privilege[n]) throw TypeError(".AllianceBadge_Config.Privilege: object expected");
                        t.Privilege[n] = a.IntArray_Config.fromObject(e.Privilege[n])
                    }
                }
                return null != e.GetWay && (i.Long ? (t.GetWay = i.Long.fromValue(e.GetWay)).unsigned = !1 : "string" == typeof e.GetWay ? t.GetWay = parseInt(e.GetWay, 10) : "number" == typeof e.GetWay ? t.GetWay = e.GetWay : "object" == typeof e.GetWay && (t.GetWay = new i.LongBits(e.GetWay.low >>> 0, e.GetWay.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Task = [], n.Privilege = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.GetWay = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GetWay = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), e.Task && e.Task.length) {
                    n.Task = [];
                    for (var r = 0; r < e.Task.length; ++r) "number" == typeof e.Task[r] ? n.Task[r] = t.longs === String ? String(e.Task[r]) : e.Task[r] : n.Task[r] = t.longs === String ? i.Long.prototype.toString.call(e.Task[r]) : t.longs === Number ? new i.LongBits(e.Task[r].low >>> 0, e.Task[r].high >>> 0).toNumber() : e.Task[r]
                }
                if (e.Privilege && e.Privilege.length)
                    for (n.Privilege = [], r = 0; r < e.Privilege.length; ++r) n.Privilege[r] = a.IntArray_Config.toObject(e.Privilege[r], t);
                return null != e.GetWay && e.hasOwnProperty("GetWay") && ("number" == typeof e.GetWay ? n.GetWay = t.longs === String ? String(e.GetWay) : e.GetWay : n.GetWay = t.longs === String ? i.Long.prototype.toString.call(e.GetWay) : t.longs === Number ? new i.LongBits(e.GetWay.low >>> 0, e.GetWay.high >>> 0).toNumber() : e.GetWay), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceBadge_Config"
            }, e
        }(), a.IntelligenceTask_Config = function() {
            function e(e) {
                if (this.Rewards = [], this.Requirements = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.QualityId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Price = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Requirements = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.QualityId && Object.hasOwnProperty.call(e, "QualityId") && t.uint32(24).int64(e.QualityId), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                if (null != e.Price && Object.hasOwnProperty.call(e, "Price") && t.uint32(40).int64(e.Price), null != e.Requirements && e.Requirements.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.Requirements.length; ++n) t.int64(e.Requirements[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.IntelligenceTask_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.QualityId = e.int64();
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Price = e.int64();
                            break;
                        case 6:
                            if (r.Requirements && r.Requirements.length || (r.Requirements = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Requirements.push(e.int64());
                            else r.Requirements.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.QualityId && e.hasOwnProperty("QualityId") && !(i.isInteger(e.QualityId) || e.QualityId && i.isInteger(e.QualityId.low) && i.isInteger(e.QualityId.high))) return "QualityId: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                if (null != e.Price && e.hasOwnProperty("Price") && !(i.isInteger(e.Price) || e.Price && i.isInteger(e.Price.low) && i.isInteger(e.Price.high))) return "Price: integer|Long expected";
                if (null != e.Requirements && e.hasOwnProperty("Requirements")) {
                    if (!Array.isArray(e.Requirements)) return "Requirements: array expected";
                    for (t = 0; t < e.Requirements.length; ++t)
                        if (!(i.isInteger(e.Requirements[t]) || e.Requirements[t] && i.isInteger(e.Requirements[t].low) && i.isInteger(e.Requirements[t].high))) return "Requirements: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.IntelligenceTask_Config) return e;
                var t = new a.IntelligenceTask_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.QualityId && (i.Long ? (t.QualityId = i.Long.fromValue(e.QualityId)).unsigned = !1 : "string" == typeof e.QualityId ? t.QualityId = parseInt(e.QualityId, 10) : "number" == typeof e.QualityId ? t.QualityId = e.QualityId : "object" == typeof e.QualityId && (t.QualityId = new i.LongBits(e.QualityId.low >>> 0, e.QualityId.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".IntelligenceTask_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".IntelligenceTask_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (null != e.Price && (i.Long ? (t.Price = i.Long.fromValue(e.Price)).unsigned = !1 : "string" == typeof e.Price ? t.Price = parseInt(e.Price, 10) : "number" == typeof e.Price ? t.Price = e.Price : "object" == typeof e.Price && (t.Price = new i.LongBits(e.Price.low >>> 0, e.Price.high >>> 0).toNumber())), e.Requirements) {
                    if (!Array.isArray(e.Requirements)) throw TypeError(".IntelligenceTask_Config.Requirements: array expected");
                    for (t.Requirements = [], n = 0; n < e.Requirements.length; ++n) i.Long ? (t.Requirements[n] = i.Long.fromValue(e.Requirements[n])).unsigned = !1 : "string" == typeof e.Requirements[n] ? t.Requirements[n] = parseInt(e.Requirements[n], 10) : "number" == typeof e.Requirements[n] ? t.Requirements[n] = e.Requirements[n] : "object" == typeof e.Requirements[n] && (t.Requirements[n] = new i.LongBits(e.Requirements[n].low >>> 0, e.Requirements[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.Requirements = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.QualityId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.QualityId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Price = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Price = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.QualityId && e.hasOwnProperty("QualityId") && ("number" == typeof e.QualityId ? n.QualityId = t.longs === String ? String(e.QualityId) : e.QualityId : n.QualityId = t.longs === String ? i.Long.prototype.toString.call(e.QualityId) : t.longs === Number ? new i.LongBits(e.QualityId.low >>> 0, e.QualityId.high >>> 0).toNumber() : e.QualityId), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                if (null != e.Price && e.hasOwnProperty("Price") && ("number" == typeof e.Price ? n.Price = t.longs === String ? String(e.Price) : e.Price : n.Price = t.longs === String ? i.Long.prototype.toString.call(e.Price) : t.longs === Number ? new i.LongBits(e.Price.low >>> 0, e.Price.high >>> 0).toNumber() : e.Price), e.Requirements && e.Requirements.length)
                    for (n.Requirements = [], r = 0; r < e.Requirements.length; ++r) "number" == typeof e.Requirements[r] ? n.Requirements[r] = t.longs === String ? String(e.Requirements[r]) : e.Requirements[r] : n.Requirements[r] = t.longs === String ? i.Long.prototype.toString.call(e.Requirements[r]) : t.longs === Number ? new i.LongBits(e.Requirements[r].low >>> 0, e.Requirements[r].high >>> 0).toNumber() : e.Requirements[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/IntelligenceTask_Config"
            }, e
        }(), a.IntelligenceQuality_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Hour = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Hour && Object.hasOwnProperty.call(e, "Hour") && t.uint32(24).int64(e.Hour), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.IntelligenceQuality_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Hour = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Hour && e.hasOwnProperty("Hour") && !(i.isInteger(e.Hour) || e.Hour && i.isInteger(e.Hour.low) && i.isInteger(e.Hour.high)) ? "Hour: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.IntelligenceQuality_Config) return e;
                var t = new a.IntelligenceQuality_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Hour && (i.Long ? (t.Hour = i.Long.fromValue(e.Hour)).unsigned = !1 : "string" == typeof e.Hour ? t.Hour = parseInt(e.Hour, 10) : "number" == typeof e.Hour ? t.Hour = e.Hour : "object" == typeof e.Hour && (t.Hour = new i.LongBits(e.Hour.low >>> 0, e.Hour.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Hour = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Hour = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Hour && e.hasOwnProperty("Hour") && ("number" == typeof e.Hour ? n.Hour = t.longs === String ? String(e.Hour) : e.Hour : n.Hour = t.longs === String ? i.Long.prototype.toString.call(e.Hour) : t.longs === Number ? new i.LongBits(e.Hour.low >>> 0, e.Hour.high >>> 0).toNumber() : e.Hour), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/IntelligenceQuality_Config"
            }, e
        }(), a.RandomLib_Config = function() {
            function e(e) {
                if (this.Chance = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Chance = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Chance && e.Chance.length)
                    for (var n = 0; n < e.Chance.length; ++n) a.IntArray_Config.encode(e.Chance[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RandomLib_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Chance && r.Chance.length || (r.Chance = []), r.Chance.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Chance && e.hasOwnProperty("Chance")) {
                    if (!Array.isArray(e.Chance)) return "Chance: array expected";
                    for (var t = 0; t < e.Chance.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Chance[t]);
                        if (n) return "Chance." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.RandomLib_Config) return e;
                var t = new a.RandomLib_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Chance) {
                    if (!Array.isArray(e.Chance)) throw TypeError(".RandomLib_Config.Chance: array expected");
                    t.Chance = [];
                    for (var n = 0; n < e.Chance.length; ++n) {
                        if ("object" != typeof e.Chance[n]) throw TypeError(".RandomLib_Config.Chance: object expected");
                        t.Chance[n] = a.IntArray_Config.fromObject(e.Chance[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Chance = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Chance && e.Chance.length) {
                    n.Chance = [];
                    for (var r = 0; r < e.Chance.length; ++r) n.Chance[r] = a.IntArray_Config.toObject(e.Chance[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RandomLib_Config"
            }, e
        }(), a.FirstNamePool_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FirstNamePool_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.FirstNamePool_Config) return e;
                var t = new a.FirstNamePool_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Name = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FirstNamePool_Config"
            }, e
        }(), a.LastNamePool_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LastNamePool_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.LastNamePool_Config) return e;
                var t = new a.LastNamePool_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Name = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LastNamePool_Config"
            }, e
        }(), a.ArenaRankReward_Config = function() {
            function e(e) {
                if (this.DailyRewards = [], this.WeeklyRewards = [], this.SeniorWeekRewards = [], this.LadderRaceRewards = [], this.ChampionRaceRewards = [], this.AllZonePowerRewards = [], this.AllZoneChampionRace = [], this.CrossZoneDailyRewards = [], this.CrossZoneWeeklyRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DailyRewards = i.emptyArray, e.prototype.WeeklyRewards = i.emptyArray, e.prototype.SeniorWeekRewards = i.emptyArray, e.prototype.LadderRaceRewards = i.emptyArray, e.prototype.ChampionRaceRewards = i.emptyArray, e.prototype.AllZonePowerRewards = i.emptyArray, e.prototype.AllZoneChampionRace = i.emptyArray, e.prototype.CrossZoneDailyRewards = i.emptyArray, e.prototype.CrossZoneWeeklyRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.DailyRewards && e.DailyRewards.length)
                    for (var n = 0; n < e.DailyRewards.length; ++n) a.IntArray_Config.encode(e.DailyRewards[n], t.uint32(18).fork()).ldelim();
                if (null != e.WeeklyRewards && e.WeeklyRewards.length)
                    for (n = 0; n < e.WeeklyRewards.length; ++n) a.IntArray_Config.encode(e.WeeklyRewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.SeniorWeekRewards && e.SeniorWeekRewards.length)
                    for (n = 0; n < e.SeniorWeekRewards.length; ++n) a.IntArray_Config.encode(e.SeniorWeekRewards[n], t.uint32(34).fork()).ldelim();
                if (null != e.LadderRaceRewards && e.LadderRaceRewards.length)
                    for (n = 0; n < e.LadderRaceRewards.length; ++n) a.IntArray_Config.encode(e.LadderRaceRewards[n], t.uint32(42).fork()).ldelim();
                if (null != e.ChampionRaceRewards && e.ChampionRaceRewards.length)
                    for (n = 0; n < e.ChampionRaceRewards.length; ++n) a.IntArray_Config.encode(e.ChampionRaceRewards[n], t.uint32(50).fork()).ldelim();
                if (null != e.AllZonePowerRewards && e.AllZonePowerRewards.length)
                    for (n = 0; n < e.AllZonePowerRewards.length; ++n) a.IntArray_Config.encode(e.AllZonePowerRewards[n], t.uint32(58).fork()).ldelim();
                if (null != e.AllZoneChampionRace && e.AllZoneChampionRace.length)
                    for (n = 0; n < e.AllZoneChampionRace.length; ++n) a.IntArray_Config.encode(e.AllZoneChampionRace[n], t.uint32(66).fork()).ldelim();
                if (null != e.CrossZoneDailyRewards && e.CrossZoneDailyRewards.length)
                    for (n = 0; n < e.CrossZoneDailyRewards.length; ++n) a.IntArray_Config.encode(e.CrossZoneDailyRewards[n], t.uint32(74).fork()).ldelim();
                if (null != e.CrossZoneWeeklyRewards && e.CrossZoneWeeklyRewards.length)
                    for (n = 0; n < e.CrossZoneWeeklyRewards.length; ++n) a.IntArray_Config.encode(e.CrossZoneWeeklyRewards[n], t.uint32(82).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ArenaRankReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.DailyRewards && r.DailyRewards.length || (r.DailyRewards = []), r.DailyRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.WeeklyRewards && r.WeeklyRewards.length || (r.WeeklyRewards = []), r.WeeklyRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.SeniorWeekRewards && r.SeniorWeekRewards.length || (r.SeniorWeekRewards = []), r.SeniorWeekRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.LadderRaceRewards && r.LadderRaceRewards.length || (r.LadderRaceRewards = []), r.LadderRaceRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.ChampionRaceRewards && r.ChampionRaceRewards.length || (r.ChampionRaceRewards = []), r.ChampionRaceRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.AllZonePowerRewards && r.AllZonePowerRewards.length || (r.AllZonePowerRewards = []), r.AllZonePowerRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.AllZoneChampionRace && r.AllZoneChampionRace.length || (r.AllZoneChampionRace = []), r.AllZoneChampionRace.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.CrossZoneDailyRewards && r.CrossZoneDailyRewards.length || (r.CrossZoneDailyRewards = []), r.CrossZoneDailyRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.CrossZoneWeeklyRewards && r.CrossZoneWeeklyRewards.length || (r.CrossZoneWeeklyRewards = []), r.CrossZoneWeeklyRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.DailyRewards && e.hasOwnProperty("DailyRewards")) {
                    if (!Array.isArray(e.DailyRewards)) return "DailyRewards: array expected";
                    for (var t = 0; t < e.DailyRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.DailyRewards[t])) return "DailyRewards." + n
                }
                if (null != e.WeeklyRewards && e.hasOwnProperty("WeeklyRewards")) {
                    if (!Array.isArray(e.WeeklyRewards)) return "WeeklyRewards: array expected";
                    for (t = 0; t < e.WeeklyRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.WeeklyRewards[t])) return "WeeklyRewards." + n
                }
                if (null != e.SeniorWeekRewards && e.hasOwnProperty("SeniorWeekRewards")) {
                    if (!Array.isArray(e.SeniorWeekRewards)) return "SeniorWeekRewards: array expected";
                    for (t = 0; t < e.SeniorWeekRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SeniorWeekRewards[t])) return "SeniorWeekRewards." + n
                }
                if (null != e.LadderRaceRewards && e.hasOwnProperty("LadderRaceRewards")) {
                    if (!Array.isArray(e.LadderRaceRewards)) return "LadderRaceRewards: array expected";
                    for (t = 0; t < e.LadderRaceRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LadderRaceRewards[t])) return "LadderRaceRewards." + n
                }
                if (null != e.ChampionRaceRewards && e.hasOwnProperty("ChampionRaceRewards")) {
                    if (!Array.isArray(e.ChampionRaceRewards)) return "ChampionRaceRewards: array expected";
                    for (t = 0; t < e.ChampionRaceRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ChampionRaceRewards[t])) return "ChampionRaceRewards." + n
                }
                if (null != e.AllZonePowerRewards && e.hasOwnProperty("AllZonePowerRewards")) {
                    if (!Array.isArray(e.AllZonePowerRewards)) return "AllZonePowerRewards: array expected";
                    for (t = 0; t < e.AllZonePowerRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AllZonePowerRewards[t])) return "AllZonePowerRewards." + n
                }
                if (null != e.AllZoneChampionRace && e.hasOwnProperty("AllZoneChampionRace")) {
                    if (!Array.isArray(e.AllZoneChampionRace)) return "AllZoneChampionRace: array expected";
                    for (t = 0; t < e.AllZoneChampionRace.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AllZoneChampionRace[t])) return "AllZoneChampionRace." + n
                }
                if (null != e.CrossZoneDailyRewards && e.hasOwnProperty("CrossZoneDailyRewards")) {
                    if (!Array.isArray(e.CrossZoneDailyRewards)) return "CrossZoneDailyRewards: array expected";
                    for (t = 0; t < e.CrossZoneDailyRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.CrossZoneDailyRewards[t])) return "CrossZoneDailyRewards." + n
                }
                if (null != e.CrossZoneWeeklyRewards && e.hasOwnProperty("CrossZoneWeeklyRewards")) {
                    if (!Array.isArray(e.CrossZoneWeeklyRewards)) return "CrossZoneWeeklyRewards: array expected";
                    for (t = 0; t < e.CrossZoneWeeklyRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.CrossZoneWeeklyRewards[t])) return "CrossZoneWeeklyRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ArenaRankReward_Config) return e;
                var t = new a.ArenaRankReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.DailyRewards) {
                    if (!Array.isArray(e.DailyRewards)) throw TypeError(".ArenaRankReward_Config.DailyRewards: array expected");
                    t.DailyRewards = [];
                    for (var n = 0; n < e.DailyRewards.length; ++n) {
                        if ("object" != typeof e.DailyRewards[n]) throw TypeError(".ArenaRankReward_Config.DailyRewards: object expected");
                        t.DailyRewards[n] = a.IntArray_Config.fromObject(e.DailyRewards[n])
                    }
                }
                if (e.WeeklyRewards) {
                    if (!Array.isArray(e.WeeklyRewards)) throw TypeError(".ArenaRankReward_Config.WeeklyRewards: array expected");
                    for (t.WeeklyRewards = [], n = 0; n < e.WeeklyRewards.length; ++n) {
                        if ("object" != typeof e.WeeklyRewards[n]) throw TypeError(".ArenaRankReward_Config.WeeklyRewards: object expected");
                        t.WeeklyRewards[n] = a.IntArray_Config.fromObject(e.WeeklyRewards[n])
                    }
                }
                if (e.SeniorWeekRewards) {
                    if (!Array.isArray(e.SeniorWeekRewards)) throw TypeError(".ArenaRankReward_Config.SeniorWeekRewards: array expected");
                    for (t.SeniorWeekRewards = [], n = 0; n < e.SeniorWeekRewards.length; ++n) {
                        if ("object" != typeof e.SeniorWeekRewards[n]) throw TypeError(".ArenaRankReward_Config.SeniorWeekRewards: object expected");
                        t.SeniorWeekRewards[n] = a.IntArray_Config.fromObject(e.SeniorWeekRewards[n])
                    }
                }
                if (e.LadderRaceRewards) {
                    if (!Array.isArray(e.LadderRaceRewards)) throw TypeError(".ArenaRankReward_Config.LadderRaceRewards: array expected");
                    for (t.LadderRaceRewards = [], n = 0; n < e.LadderRaceRewards.length; ++n) {
                        if ("object" != typeof e.LadderRaceRewards[n]) throw TypeError(".ArenaRankReward_Config.LadderRaceRewards: object expected");
                        t.LadderRaceRewards[n] = a.IntArray_Config.fromObject(e.LadderRaceRewards[n])
                    }
                }
                if (e.ChampionRaceRewards) {
                    if (!Array.isArray(e.ChampionRaceRewards)) throw TypeError(".ArenaRankReward_Config.ChampionRaceRewards: array expected");
                    for (t.ChampionRaceRewards = [], n = 0; n < e.ChampionRaceRewards.length; ++n) {
                        if ("object" != typeof e.ChampionRaceRewards[n]) throw TypeError(".ArenaRankReward_Config.ChampionRaceRewards: object expected");
                        t.ChampionRaceRewards[n] = a.IntArray_Config.fromObject(e.ChampionRaceRewards[n])
                    }
                }
                if (e.AllZonePowerRewards) {
                    if (!Array.isArray(e.AllZonePowerRewards)) throw TypeError(".ArenaRankReward_Config.AllZonePowerRewards: array expected");
                    for (t.AllZonePowerRewards = [], n = 0; n < e.AllZonePowerRewards.length; ++n) {
                        if ("object" != typeof e.AllZonePowerRewards[n]) throw TypeError(".ArenaRankReward_Config.AllZonePowerRewards: object expected");
                        t.AllZonePowerRewards[n] = a.IntArray_Config.fromObject(e.AllZonePowerRewards[n])
                    }
                }
                if (e.AllZoneChampionRace) {
                    if (!Array.isArray(e.AllZoneChampionRace)) throw TypeError(".ArenaRankReward_Config.AllZoneChampionRace: array expected");
                    for (t.AllZoneChampionRace = [], n = 0; n < e.AllZoneChampionRace.length; ++n) {
                        if ("object" != typeof e.AllZoneChampionRace[n]) throw TypeError(".ArenaRankReward_Config.AllZoneChampionRace: object expected");
                        t.AllZoneChampionRace[n] = a.IntArray_Config.fromObject(e.AllZoneChampionRace[n])
                    }
                }
                if (e.CrossZoneDailyRewards) {
                    if (!Array.isArray(e.CrossZoneDailyRewards)) throw TypeError(".ArenaRankReward_Config.CrossZoneDailyRewards: array expected");
                    for (t.CrossZoneDailyRewards = [], n = 0; n < e.CrossZoneDailyRewards.length; ++n) {
                        if ("object" != typeof e.CrossZoneDailyRewards[n]) throw TypeError(".ArenaRankReward_Config.CrossZoneDailyRewards: object expected");
                        t.CrossZoneDailyRewards[n] = a.IntArray_Config.fromObject(e.CrossZoneDailyRewards[n])
                    }
                }
                if (e.CrossZoneWeeklyRewards) {
                    if (!Array.isArray(e.CrossZoneWeeklyRewards)) throw TypeError(".ArenaRankReward_Config.CrossZoneWeeklyRewards: array expected");
                    for (t.CrossZoneWeeklyRewards = [], n = 0; n < e.CrossZoneWeeklyRewards.length; ++n) {
                        if ("object" != typeof e.CrossZoneWeeklyRewards[n]) throw TypeError(".ArenaRankReward_Config.CrossZoneWeeklyRewards: object expected");
                        t.CrossZoneWeeklyRewards[n] = a.IntArray_Config.fromObject(e.CrossZoneWeeklyRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.DailyRewards = [], n.WeeklyRewards = [], n.SeniorWeekRewards = [], n.LadderRaceRewards = [], n.ChampionRaceRewards = [], n.AllZonePowerRewards = [], n.AllZoneChampionRace = [], n.CrossZoneDailyRewards = [], n.CrossZoneWeeklyRewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.DailyRewards && e.DailyRewards.length) {
                    n.DailyRewards = [];
                    for (var r = 0; r < e.DailyRewards.length; ++r) n.DailyRewards[r] = a.IntArray_Config.toObject(e.DailyRewards[r], t)
                }
                if (e.WeeklyRewards && e.WeeklyRewards.length)
                    for (n.WeeklyRewards = [], r = 0; r < e.WeeklyRewards.length; ++r) n.WeeklyRewards[r] = a.IntArray_Config.toObject(e.WeeklyRewards[r], t);
                if (e.SeniorWeekRewards && e.SeniorWeekRewards.length)
                    for (n.SeniorWeekRewards = [], r = 0; r < e.SeniorWeekRewards.length; ++r) n.SeniorWeekRewards[r] = a.IntArray_Config.toObject(e.SeniorWeekRewards[r], t);
                if (e.LadderRaceRewards && e.LadderRaceRewards.length)
                    for (n.LadderRaceRewards = [], r = 0; r < e.LadderRaceRewards.length; ++r) n.LadderRaceRewards[r] = a.IntArray_Config.toObject(e.LadderRaceRewards[r], t);
                if (e.ChampionRaceRewards && e.ChampionRaceRewards.length)
                    for (n.ChampionRaceRewards = [], r = 0; r < e.ChampionRaceRewards.length; ++r) n.ChampionRaceRewards[r] = a.IntArray_Config.toObject(e.ChampionRaceRewards[r], t);
                if (e.AllZonePowerRewards && e.AllZonePowerRewards.length)
                    for (n.AllZonePowerRewards = [], r = 0; r < e.AllZonePowerRewards.length; ++r) n.AllZonePowerRewards[r] = a.IntArray_Config.toObject(e.AllZonePowerRewards[r], t);
                if (e.AllZoneChampionRace && e.AllZoneChampionRace.length)
                    for (n.AllZoneChampionRace = [], r = 0; r < e.AllZoneChampionRace.length; ++r) n.AllZoneChampionRace[r] = a.IntArray_Config.toObject(e.AllZoneChampionRace[r], t);
                if (e.CrossZoneDailyRewards && e.CrossZoneDailyRewards.length)
                    for (n.CrossZoneDailyRewards = [], r = 0; r < e.CrossZoneDailyRewards.length; ++r) n.CrossZoneDailyRewards[r] = a.IntArray_Config.toObject(e.CrossZoneDailyRewards[r], t);
                if (e.CrossZoneWeeklyRewards && e.CrossZoneWeeklyRewards.length)
                    for (n.CrossZoneWeeklyRewards = [], r = 0; r < e.CrossZoneWeeklyRewards.length; ++r) n.CrossZoneWeeklyRewards[r] = a.IntArray_Config.toObject(e.CrossZoneWeeklyRewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ArenaRankReward_Config"
            }, e
        }(), a.StarResonanceLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarResonanceLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarResonanceLevel_Config) return e;
                var t = new a.StarResonanceLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".StarResonanceLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".StarResonanceLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarResonanceLevel_Config"
            }, e
        }(), a.LuckyCharmEquip_Config = function() {
            function e(e) {
                if (this.ComposeData = [], this.CastMaterials = [], this.CastRewards = [], this.SelectSkillMaterials = [], this.AttrLib = [], this.SkillQualities = [], this.ShowAttr = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ComposeData = i.emptyArray, e.prototype.CastMaterials = i.emptyArray, e.prototype.CastRewards = i.emptyArray, e.prototype.SelectSkillMaterials = i.emptyArray, e.prototype.AttrCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AttrLib = i.emptyArray, e.prototype.SkillCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillQualities = i.emptyArray, e.prototype.SkillLibId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowAttr = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(24).int64(e.NextId), null != e.ComposeData && e.ComposeData.length)
                    for (var n = 0; n < e.ComposeData.length; ++n) a.IntArray_Config.encode(e.ComposeData[n], t.uint32(42).fork()).ldelim();
                if (null != e.CastMaterials && e.CastMaterials.length)
                    for (n = 0; n < e.CastMaterials.length; ++n) a.IntArray_Config.encode(e.CastMaterials[n], t.uint32(50).fork()).ldelim();
                if (null != e.CastRewards && e.CastRewards.length)
                    for (n = 0; n < e.CastRewards.length; ++n) a.IntArray_Config.encode(e.CastRewards[n], t.uint32(58).fork()).ldelim();
                if (null != e.SelectSkillMaterials && e.SelectSkillMaterials.length)
                    for (n = 0; n < e.SelectSkillMaterials.length; ++n) a.IntArray_Config.encode(e.SelectSkillMaterials[n], t.uint32(66).fork()).ldelim();
                if (null != e.AttrCount && Object.hasOwnProperty.call(e, "AttrCount") && t.uint32(72).int64(e.AttrCount), null != e.AttrLib && e.AttrLib.length)
                    for (n = 0; n < e.AttrLib.length; ++n) a.IntArray_Config.encode(e.AttrLib[n], t.uint32(82).fork()).ldelim();
                if (null != e.SkillCount && Object.hasOwnProperty.call(e, "SkillCount") && t.uint32(88).int64(e.SkillCount), null != e.SkillQualities && e.SkillQualities.length) {
                    for (t.uint32(98).fork(), n = 0; n < e.SkillQualities.length; ++n) t.int64(e.SkillQualities[n]);
                    t.ldelim()
                }
                if (null != e.SkillLibId && Object.hasOwnProperty.call(e, "SkillLibId") && t.uint32(104).int64(e.SkillLibId), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(128).int64(e.Score), null != e.ShowAttr && e.ShowAttr.length)
                    for (n = 0; n < e.ShowAttr.length; ++n) a.IntArray_Config.encode(e.ShowAttr[n], t.uint32(138).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LuckyCharmEquip_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.NextId = e.int64();
                            break;
                        case 5:
                            r.ComposeData && r.ComposeData.length || (r.ComposeData = []), r.ComposeData.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.CastMaterials && r.CastMaterials.length || (r.CastMaterials = []), r.CastMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.CastRewards && r.CastRewards.length || (r.CastRewards = []), r.CastRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.SelectSkillMaterials && r.SelectSkillMaterials.length || (r.SelectSkillMaterials = []), r.SelectSkillMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.AttrCount = e.int64();
                            break;
                        case 10:
                            r.AttrLib && r.AttrLib.length || (r.AttrLib = []), r.AttrLib.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 11:
                            r.SkillCount = e.int64();
                            break;
                        case 12:
                            if (r.SkillQualities && r.SkillQualities.length || (r.SkillQualities = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.SkillQualities.push(e.int64());
                            else r.SkillQualities.push(e.int64());
                            break;
                        case 13:
                            r.SkillLibId = e.int64();
                            break;
                        case 16:
                            r.Score = e.int64();
                            break;
                        case 17:
                            r.ShowAttr && r.ShowAttr.length || (r.ShowAttr = []), r.ShowAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high))) return "NextId: integer|Long expected";
                if (null != e.ComposeData && e.hasOwnProperty("ComposeData")) {
                    if (!Array.isArray(e.ComposeData)) return "ComposeData: array expected";
                    for (var t = 0; t < e.ComposeData.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ComposeData[t])) return "ComposeData." + n
                }
                if (null != e.CastMaterials && e.hasOwnProperty("CastMaterials")) {
                    if (!Array.isArray(e.CastMaterials)) return "CastMaterials: array expected";
                    for (t = 0; t < e.CastMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.CastMaterials[t])) return "CastMaterials." + n
                }
                if (null != e.CastRewards && e.hasOwnProperty("CastRewards")) {
                    if (!Array.isArray(e.CastRewards)) return "CastRewards: array expected";
                    for (t = 0; t < e.CastRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.CastRewards[t])) return "CastRewards." + n
                }
                if (null != e.SelectSkillMaterials && e.hasOwnProperty("SelectSkillMaterials")) {
                    if (!Array.isArray(e.SelectSkillMaterials)) return "SelectSkillMaterials: array expected";
                    for (t = 0; t < e.SelectSkillMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SelectSkillMaterials[t])) return "SelectSkillMaterials." + n
                }
                if (null != e.AttrCount && e.hasOwnProperty("AttrCount") && !(i.isInteger(e.AttrCount) || e.AttrCount && i.isInteger(e.AttrCount.low) && i.isInteger(e.AttrCount.high))) return "AttrCount: integer|Long expected";
                if (null != e.AttrLib && e.hasOwnProperty("AttrLib")) {
                    if (!Array.isArray(e.AttrLib)) return "AttrLib: array expected";
                    for (t = 0; t < e.AttrLib.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AttrLib[t])) return "AttrLib." + n
                }
                if (null != e.SkillCount && e.hasOwnProperty("SkillCount") && !(i.isInteger(e.SkillCount) || e.SkillCount && i.isInteger(e.SkillCount.low) && i.isInteger(e.SkillCount.high))) return "SkillCount: integer|Long expected";
                if (null != e.SkillQualities && e.hasOwnProperty("SkillQualities")) {
                    if (!Array.isArray(e.SkillQualities)) return "SkillQualities: array expected";
                    for (t = 0; t < e.SkillQualities.length; ++t)
                        if (!(i.isInteger(e.SkillQualities[t]) || e.SkillQualities[t] && i.isInteger(e.SkillQualities[t].low) && i.isInteger(e.SkillQualities[t].high))) return "SkillQualities: integer|Long[] expected"
                }
                if (null != e.SkillLibId && e.hasOwnProperty("SkillLibId") && !(i.isInteger(e.SkillLibId) || e.SkillLibId && i.isInteger(e.SkillLibId.low) && i.isInteger(e.SkillLibId.high))) return "SkillLibId: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.ShowAttr && e.hasOwnProperty("ShowAttr")) {
                    if (!Array.isArray(e.ShowAttr)) return "ShowAttr: array expected";
                    for (t = 0; t < e.ShowAttr.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ShowAttr[t])) return "ShowAttr." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.LuckyCharmEquip_Config) return e;
                var t = new a.LuckyCharmEquip_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), e.ComposeData) {
                    if (!Array.isArray(e.ComposeData)) throw TypeError(".LuckyCharmEquip_Config.ComposeData: array expected");
                    t.ComposeData = [];
                    for (var n = 0; n < e.ComposeData.length; ++n) {
                        if ("object" != typeof e.ComposeData[n]) throw TypeError(".LuckyCharmEquip_Config.ComposeData: object expected");
                        t.ComposeData[n] = a.IntArray_Config.fromObject(e.ComposeData[n])
                    }
                }
                if (e.CastMaterials) {
                    if (!Array.isArray(e.CastMaterials)) throw TypeError(".LuckyCharmEquip_Config.CastMaterials: array expected");
                    for (t.CastMaterials = [], n = 0; n < e.CastMaterials.length; ++n) {
                        if ("object" != typeof e.CastMaterials[n]) throw TypeError(".LuckyCharmEquip_Config.CastMaterials: object expected");
                        t.CastMaterials[n] = a.IntArray_Config.fromObject(e.CastMaterials[n])
                    }
                }
                if (e.CastRewards) {
                    if (!Array.isArray(e.CastRewards)) throw TypeError(".LuckyCharmEquip_Config.CastRewards: array expected");
                    for (t.CastRewards = [], n = 0; n < e.CastRewards.length; ++n) {
                        if ("object" != typeof e.CastRewards[n]) throw TypeError(".LuckyCharmEquip_Config.CastRewards: object expected");
                        t.CastRewards[n] = a.IntArray_Config.fromObject(e.CastRewards[n])
                    }
                }
                if (e.SelectSkillMaterials) {
                    if (!Array.isArray(e.SelectSkillMaterials)) throw TypeError(".LuckyCharmEquip_Config.SelectSkillMaterials: array expected");
                    for (t.SelectSkillMaterials = [], n = 0; n < e.SelectSkillMaterials.length; ++n) {
                        if ("object" != typeof e.SelectSkillMaterials[n]) throw TypeError(".LuckyCharmEquip_Config.SelectSkillMaterials: object expected");
                        t.SelectSkillMaterials[n] = a.IntArray_Config.fromObject(e.SelectSkillMaterials[n])
                    }
                }
                if (null != e.AttrCount && (i.Long ? (t.AttrCount = i.Long.fromValue(e.AttrCount)).unsigned = !1 : "string" == typeof e.AttrCount ? t.AttrCount = parseInt(e.AttrCount, 10) : "number" == typeof e.AttrCount ? t.AttrCount = e.AttrCount : "object" == typeof e.AttrCount && (t.AttrCount = new i.LongBits(e.AttrCount.low >>> 0, e.AttrCount.high >>> 0).toNumber())), e.AttrLib) {
                    if (!Array.isArray(e.AttrLib)) throw TypeError(".LuckyCharmEquip_Config.AttrLib: array expected");
                    for (t.AttrLib = [], n = 0; n < e.AttrLib.length; ++n) {
                        if ("object" != typeof e.AttrLib[n]) throw TypeError(".LuckyCharmEquip_Config.AttrLib: object expected");
                        t.AttrLib[n] = a.IntArray_Config.fromObject(e.AttrLib[n])
                    }
                }
                if (null != e.SkillCount && (i.Long ? (t.SkillCount = i.Long.fromValue(e.SkillCount)).unsigned = !1 : "string" == typeof e.SkillCount ? t.SkillCount = parseInt(e.SkillCount, 10) : "number" == typeof e.SkillCount ? t.SkillCount = e.SkillCount : "object" == typeof e.SkillCount && (t.SkillCount = new i.LongBits(e.SkillCount.low >>> 0, e.SkillCount.high >>> 0).toNumber())), e.SkillQualities) {
                    if (!Array.isArray(e.SkillQualities)) throw TypeError(".LuckyCharmEquip_Config.SkillQualities: array expected");
                    for (t.SkillQualities = [], n = 0; n < e.SkillQualities.length; ++n) i.Long ? (t.SkillQualities[n] = i.Long.fromValue(e.SkillQualities[n])).unsigned = !1 : "string" == typeof e.SkillQualities[n] ? t.SkillQualities[n] = parseInt(e.SkillQualities[n], 10) : "number" == typeof e.SkillQualities[n] ? t.SkillQualities[n] = e.SkillQualities[n] : "object" == typeof e.SkillQualities[n] && (t.SkillQualities[n] = new i.LongBits(e.SkillQualities[n].low >>> 0, e.SkillQualities[n].high >>> 0).toNumber())
                }
                if (null != e.SkillLibId && (i.Long ? (t.SkillLibId = i.Long.fromValue(e.SkillLibId)).unsigned = !1 : "string" == typeof e.SkillLibId ? t.SkillLibId = parseInt(e.SkillLibId, 10) : "number" == typeof e.SkillLibId ? t.SkillLibId = e.SkillLibId : "object" == typeof e.SkillLibId && (t.SkillLibId = new i.LongBits(e.SkillLibId.low >>> 0, e.SkillLibId.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.ShowAttr) {
                    if (!Array.isArray(e.ShowAttr)) throw TypeError(".LuckyCharmEquip_Config.ShowAttr: array expected");
                    for (t.ShowAttr = [], n = 0; n < e.ShowAttr.length; ++n) {
                        if ("object" != typeof e.ShowAttr[n]) throw TypeError(".LuckyCharmEquip_Config.ShowAttr: object expected");
                        t.ShowAttr[n] = a.IntArray_Config.fromObject(e.ShowAttr[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ComposeData = [], n.CastMaterials = [], n.CastRewards = [], n.SelectSkillMaterials = [], n.AttrLib = [], n.SkillQualities = [], n.ShowAttr = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AttrCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AttrCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkillCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkillLibId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillLibId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), e.ComposeData && e.ComposeData.length) {
                    n.ComposeData = [];
                    for (var r = 0; r < e.ComposeData.length; ++r) n.ComposeData[r] = a.IntArray_Config.toObject(e.ComposeData[r], t)
                }
                if (e.CastMaterials && e.CastMaterials.length)
                    for (n.CastMaterials = [], r = 0; r < e.CastMaterials.length; ++r) n.CastMaterials[r] = a.IntArray_Config.toObject(e.CastMaterials[r], t);
                if (e.CastRewards && e.CastRewards.length)
                    for (n.CastRewards = [], r = 0; r < e.CastRewards.length; ++r) n.CastRewards[r] = a.IntArray_Config.toObject(e.CastRewards[r], t);
                if (e.SelectSkillMaterials && e.SelectSkillMaterials.length)
                    for (n.SelectSkillMaterials = [], r = 0; r < e.SelectSkillMaterials.length; ++r) n.SelectSkillMaterials[r] = a.IntArray_Config.toObject(e.SelectSkillMaterials[r], t);
                if (null != e.AttrCount && e.hasOwnProperty("AttrCount") && ("number" == typeof e.AttrCount ? n.AttrCount = t.longs === String ? String(e.AttrCount) : e.AttrCount : n.AttrCount = t.longs === String ? i.Long.prototype.toString.call(e.AttrCount) : t.longs === Number ? new i.LongBits(e.AttrCount.low >>> 0, e.AttrCount.high >>> 0).toNumber() : e.AttrCount), e.AttrLib && e.AttrLib.length)
                    for (n.AttrLib = [], r = 0; r < e.AttrLib.length; ++r) n.AttrLib[r] = a.IntArray_Config.toObject(e.AttrLib[r], t);
                if (null != e.SkillCount && e.hasOwnProperty("SkillCount") && ("number" == typeof e.SkillCount ? n.SkillCount = t.longs === String ? String(e.SkillCount) : e.SkillCount : n.SkillCount = t.longs === String ? i.Long.prototype.toString.call(e.SkillCount) : t.longs === Number ? new i.LongBits(e.SkillCount.low >>> 0, e.SkillCount.high >>> 0).toNumber() : e.SkillCount), e.SkillQualities && e.SkillQualities.length)
                    for (n.SkillQualities = [], r = 0; r < e.SkillQualities.length; ++r) "number" == typeof e.SkillQualities[r] ? n.SkillQualities[r] = t.longs === String ? String(e.SkillQualities[r]) : e.SkillQualities[r] : n.SkillQualities[r] = t.longs === String ? i.Long.prototype.toString.call(e.SkillQualities[r]) : t.longs === Number ? new i.LongBits(e.SkillQualities[r].low >>> 0, e.SkillQualities[r].high >>> 0).toNumber() : e.SkillQualities[r];
                if (null != e.SkillLibId && e.hasOwnProperty("SkillLibId") && ("number" == typeof e.SkillLibId ? n.SkillLibId = t.longs === String ? String(e.SkillLibId) : e.SkillLibId : n.SkillLibId = t.longs === String ? i.Long.prototype.toString.call(e.SkillLibId) : t.longs === Number ? new i.LongBits(e.SkillLibId.low >>> 0, e.SkillLibId.high >>> 0).toNumber() : e.SkillLibId), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.ShowAttr && e.ShowAttr.length)
                    for (n.ShowAttr = [], r = 0; r < e.ShowAttr.length; ++r) n.ShowAttr[r] = a.IntArray_Config.toObject(e.ShowAttr[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LuckyCharmEquip_Config"
            }, e
        }(), a.LuckyCharmSkill_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Skills = [], this.UnderstandMaterials = [], this.DecomposeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Tag = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Skills = i.emptyArray, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Weight = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnderstandMaterials = i.emptyArray, e.prototype.DecomposeItems = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Tag && Object.hasOwnProperty.call(e, "Tag") && t.uint32(40).int64(e.Tag), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(50).fork()).ldelim();
                if (null != e.Skills && e.Skills.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.Skills.length; ++n) t.int64(e.Skills[n]);
                    t.ldelim()
                }
                if (null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(72).int64(e.Type), null != e.Weight && Object.hasOwnProperty.call(e, "Weight") && t.uint32(80).int64(e.Weight), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(88).int64(e.Quality), null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(96).int64(e.Power), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(104).int64(e.Score), null != e.UnderstandMaterials && e.UnderstandMaterials.length)
                    for (n = 0; n < e.UnderstandMaterials.length; ++n) a.IntArray_Config.encode(e.UnderstandMaterials[n], t.uint32(114).fork()).ldelim();
                if (null != e.DecomposeItems && e.DecomposeItems.length)
                    for (n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(122).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LuckyCharmSkill_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.Tag = e.int64();
                            break;
                        case 6:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            if (r.Skills && r.Skills.length || (r.Skills = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Skills.push(e.int64());
                            else r.Skills.push(e.int64());
                            break;
                        case 9:
                            r.Type = e.int64();
                            break;
                        case 10:
                            r.Weight = e.int64();
                            break;
                        case 11:
                            r.Quality = e.int64();
                            break;
                        case 12:
                            r.Power = e.int64();
                            break;
                        case 13:
                            r.Score = e.int64();
                            break;
                        case 14:
                            r.UnderstandMaterials && r.UnderstandMaterials.length || (r.UnderstandMaterials = []), r.UnderstandMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 15:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Tag && e.hasOwnProperty("Tag") && !(i.isInteger(e.Tag) || e.Tag && i.isInteger(e.Tag.low) && i.isInteger(e.Tag.high))) return "Tag: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (t = 0; t < e.Skills.length; ++t)
                        if (!(i.isInteger(e.Skills[t]) || e.Skills[t] && i.isInteger(e.Skills[t].low) && i.isInteger(e.Skills[t].high))) return "Skills: integer|Long[] expected"
                }
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Weight && e.hasOwnProperty("Weight") && !(i.isInteger(e.Weight) || e.Weight && i.isInteger(e.Weight.low) && i.isInteger(e.Weight.high))) return "Weight: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high))) return "Power: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.UnderstandMaterials && e.hasOwnProperty("UnderstandMaterials")) {
                    if (!Array.isArray(e.UnderstandMaterials)) return "UnderstandMaterials: array expected";
                    for (t = 0; t < e.UnderstandMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.UnderstandMaterials[t])) return "UnderstandMaterials." + n
                }
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (t = 0; t < e.DecomposeItems.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.DecomposeItems[t])) return "DecomposeItems." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.LuckyCharmSkill_Config) return e;
                var t = new a.LuckyCharmSkill_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Tag && (i.Long ? (t.Tag = i.Long.fromValue(e.Tag)).unsigned = !1 : "string" == typeof e.Tag ? t.Tag = parseInt(e.Tag, 10) : "number" == typeof e.Tag ? t.Tag = e.Tag : "object" == typeof e.Tag && (t.Tag = new i.LongBits(e.Tag.low >>> 0, e.Tag.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".LuckyCharmSkill_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".LuckyCharmSkill_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".LuckyCharmSkill_Config.Skills: array expected");
                    for (t.Skills = [], n = 0; n < e.Skills.length; ++n) i.Long ? (t.Skills[n] = i.Long.fromValue(e.Skills[n])).unsigned = !1 : "string" == typeof e.Skills[n] ? t.Skills[n] = parseInt(e.Skills[n], 10) : "number" == typeof e.Skills[n] ? t.Skills[n] = e.Skills[n] : "object" == typeof e.Skills[n] && (t.Skills[n] = new i.LongBits(e.Skills[n].low >>> 0, e.Skills[n].high >>> 0).toNumber())
                }
                if (null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Weight && (i.Long ? (t.Weight = i.Long.fromValue(e.Weight)).unsigned = !1 : "string" == typeof e.Weight ? t.Weight = parseInt(e.Weight, 10) : "number" == typeof e.Weight ? t.Weight = e.Weight : "object" == typeof e.Weight && (t.Weight = new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.UnderstandMaterials) {
                    if (!Array.isArray(e.UnderstandMaterials)) throw TypeError(".LuckyCharmSkill_Config.UnderstandMaterials: array expected");
                    for (t.UnderstandMaterials = [], n = 0; n < e.UnderstandMaterials.length; ++n) {
                        if ("object" != typeof e.UnderstandMaterials[n]) throw TypeError(".LuckyCharmSkill_Config.UnderstandMaterials: object expected");
                        t.UnderstandMaterials[n] = a.IntArray_Config.fromObject(e.UnderstandMaterials[n])
                    }
                }
                if (e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".LuckyCharmSkill_Config.DecomposeItems: array expected");
                    for (t.DecomposeItems = [], n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".LuckyCharmSkill_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Skills = [], n.UnderstandMaterials = [], n.DecomposeItems = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Tag = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Tag = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Weight = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Weight = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Tag && e.hasOwnProperty("Tag") && ("number" == typeof e.Tag ? n.Tag = t.longs === String ? String(e.Tag) : e.Tag : n.Tag = t.longs === String ? i.Long.prototype.toString.call(e.Tag) : t.longs === Number ? new i.LongBits(e.Tag.low >>> 0, e.Tag.high >>> 0).toNumber() : e.Tag), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.Skills && e.Skills.length)
                    for (n.Skills = [], r = 0; r < e.Skills.length; ++r) "number" == typeof e.Skills[r] ? n.Skills[r] = t.longs === String ? String(e.Skills[r]) : e.Skills[r] : n.Skills[r] = t.longs === String ? i.Long.prototype.toString.call(e.Skills[r]) : t.longs === Number ? new i.LongBits(e.Skills[r].low >>> 0, e.Skills[r].high >>> 0).toNumber() : e.Skills[r];
                if (null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Weight && e.hasOwnProperty("Weight") && ("number" == typeof e.Weight ? n.Weight = t.longs === String ? String(e.Weight) : e.Weight : n.Weight = t.longs === String ? i.Long.prototype.toString.call(e.Weight) : t.longs === Number ? new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber() : e.Weight), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.UnderstandMaterials && e.UnderstandMaterials.length)
                    for (n.UnderstandMaterials = [], r = 0; r < e.UnderstandMaterials.length; ++r) n.UnderstandMaterials[r] = a.IntArray_Config.toObject(e.UnderstandMaterials[r], t);
                if (e.DecomposeItems && e.DecomposeItems.length)
                    for (n.DecomposeItems = [], r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LuckyCharmSkill_Config"
            }, e
        }(), a.EightDays_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Texture = "", e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                return null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(40).int64(e.HeroId), null != e.Texture && Object.hasOwnProperty.call(e, "Texture") && t.uint32(50).string(e.Texture), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(56).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.EightDays_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.HeroId = e.int64();
                            break;
                        case 6:
                            r.Texture = e.string();
                            break;
                        case 7:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null != e.Texture && e.hasOwnProperty("Texture") && !i.isString(e.Texture) ? "Texture: string expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.EightDays_Config) return e;
                var t = new a.EightDays_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".EightDays_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".EightDays_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), null != e.Texture && (t.Texture = String(e.Texture)), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0, n.Texture = "", i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), null != e.Texture && e.hasOwnProperty("Texture") && (n.Texture = e.Texture), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/EightDays_Config"
            }, e
        }(), a.HolyEquipment_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SuitId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.CanDisplace = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.State = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NextStateId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.SuitId && Object.hasOwnProperty.call(e, "SuitId") && t.uint32(40).int64(e.SuitId), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(50).fork()).ldelim();
                return null != e.CanDisplace && Object.hasOwnProperty.call(e, "CanDisplace") && t.uint32(56).int64(e.CanDisplace), null != e.State && Object.hasOwnProperty.call(e, "State") && t.uint32(64).int64(e.State), null != e.NextStateId && Object.hasOwnProperty.call(e, "NextStateId") && t.uint32(72).int64(e.NextStateId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipment_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 5:
                            r.SuitId = e.int64();
                            break;
                        case 6:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.CanDisplace = e.int64();
                            break;
                        case 8:
                            r.State = e.int64();
                            break;
                        case 9:
                            r.NextStateId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.SuitId && e.hasOwnProperty("SuitId") && !(i.isInteger(e.SuitId) || e.SuitId && i.isInteger(e.SuitId.low) && i.isInteger(e.SuitId.high))) return "SuitId: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.CanDisplace && e.hasOwnProperty("CanDisplace") && !(i.isInteger(e.CanDisplace) || e.CanDisplace && i.isInteger(e.CanDisplace.low) && i.isInteger(e.CanDisplace.high)) ? "CanDisplace: integer|Long expected" : null != e.State && e.hasOwnProperty("State") && !(i.isInteger(e.State) || e.State && i.isInteger(e.State.low) && i.isInteger(e.State.high)) ? "State: integer|Long expected" : null != e.NextStateId && e.hasOwnProperty("NextStateId") && !(i.isInteger(e.NextStateId) || e.NextStateId && i.isInteger(e.NextStateId.low) && i.isInteger(e.NextStateId.high)) ? "NextStateId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipment_Config) return e;
                var t = new a.HolyEquipment_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.SuitId && (i.Long ? (t.SuitId = i.Long.fromValue(e.SuitId)).unsigned = !1 : "string" == typeof e.SuitId ? t.SuitId = parseInt(e.SuitId, 10) : "number" == typeof e.SuitId ? t.SuitId = e.SuitId : "object" == typeof e.SuitId && (t.SuitId = new i.LongBits(e.SuitId.low >>> 0, e.SuitId.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HolyEquipment_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HolyEquipment_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.CanDisplace && (i.Long ? (t.CanDisplace = i.Long.fromValue(e.CanDisplace)).unsigned = !1 : "string" == typeof e.CanDisplace ? t.CanDisplace = parseInt(e.CanDisplace, 10) : "number" == typeof e.CanDisplace ? t.CanDisplace = e.CanDisplace : "object" == typeof e.CanDisplace && (t.CanDisplace = new i.LongBits(e.CanDisplace.low >>> 0, e.CanDisplace.high >>> 0).toNumber())), null != e.State && (i.Long ? (t.State = i.Long.fromValue(e.State)).unsigned = !1 : "string" == typeof e.State ? t.State = parseInt(e.State, 10) : "number" == typeof e.State ? t.State = e.State : "object" == typeof e.State && (t.State = new i.LongBits(e.State.low >>> 0, e.State.high >>> 0).toNumber())), null != e.NextStateId && (i.Long ? (t.NextStateId = i.Long.fromValue(e.NextStateId)).unsigned = !1 : "string" == typeof e.NextStateId ? t.NextStateId = parseInt(e.NextStateId, 10) : "number" == typeof e.NextStateId ? t.NextStateId = e.NextStateId : "object" == typeof e.NextStateId && (t.NextStateId = new i.LongBits(e.NextStateId.low >>> 0, e.NextStateId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SuitId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SuitId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.CanDisplace = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CanDisplace = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.State = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.State = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NextStateId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextStateId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.SuitId && e.hasOwnProperty("SuitId") && ("number" == typeof e.SuitId ? n.SuitId = t.longs === String ? String(e.SuitId) : e.SuitId : n.SuitId = t.longs === String ? i.Long.prototype.toString.call(e.SuitId) : t.longs === Number ? new i.LongBits(e.SuitId.low >>> 0, e.SuitId.high >>> 0).toNumber() : e.SuitId), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.CanDisplace && e.hasOwnProperty("CanDisplace") && ("number" == typeof e.CanDisplace ? n.CanDisplace = t.longs === String ? String(e.CanDisplace) : e.CanDisplace : n.CanDisplace = t.longs === String ? i.Long.prototype.toString.call(e.CanDisplace) : t.longs === Number ? new i.LongBits(e.CanDisplace.low >>> 0, e.CanDisplace.high >>> 0).toNumber() : e.CanDisplace), null != e.State && e.hasOwnProperty("State") && ("number" == typeof e.State ? n.State = t.longs === String ? String(e.State) : e.State : n.State = t.longs === String ? i.Long.prototype.toString.call(e.State) : t.longs === Number ? new i.LongBits(e.State.low >>> 0, e.State.high >>> 0).toNumber() : e.State), null != e.NextStateId && e.hasOwnProperty("NextStateId") && ("number" == typeof e.NextStateId ? n.NextStateId = t.longs === String ? String(e.NextStateId) : e.NextStateId : n.NextStateId = t.longs === String ? i.Long.prototype.toString.call(e.NextStateId) : t.longs === Number ? new i.LongBits(e.NextStateId.low >>> 0, e.NextStateId.high >>> 0).toNumber() : e.NextStateId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipment_Config"
            }, e
        }(), a.HolyEquipmentStar_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Weapon = [], this.Coat = [], this.Glove = [], this.Shoes = [], this.DisplaceMaterials = [], this.UnmatchedWeapon = [], this.UnmatchedCoat = [], this.UnmatchedGlove = [], this.UnmatchedShoes = [], this.ResonanceAttrs = [], this.Unlock = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BlessingMaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Weapon = i.emptyArray, e.prototype.Coat = i.emptyArray, e.prototype.Glove = i.emptyArray, e.prototype.Shoes = i.emptyArray, e.prototype.DisplaceMaterials = i.emptyArray, e.prototype.UnmatchedWeapon = i.emptyArray, e.prototype.UnmatchedCoat = i.emptyArray, e.prototype.UnmatchedGlove = i.emptyArray, e.prototype.UnmatchedShoes = i.emptyArray, e.prototype.ResonanceAttrs = i.emptyArray, e.prototype.Unlock = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MaxLevel && Object.hasOwnProperty.call(e, "MaxLevel") && t.uint32(16).int64(e.MaxLevel), null != e.BlessingMaxLevel && Object.hasOwnProperty.call(e, "BlessingMaxLevel") && t.uint32(24).int64(e.BlessingMaxLevel), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(34).fork()).ldelim();
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(48).int64(e.Score), null != e.Weapon && e.Weapon.length)
                    for (n = 0; n < e.Weapon.length; ++n) a.IntArray_Config.encode(e.Weapon[n], t.uint32(58).fork()).ldelim();
                if (null != e.Coat && e.Coat.length)
                    for (n = 0; n < e.Coat.length; ++n) a.IntArray_Config.encode(e.Coat[n], t.uint32(66).fork()).ldelim();
                if (null != e.Glove && e.Glove.length)
                    for (n = 0; n < e.Glove.length; ++n) a.IntArray_Config.encode(e.Glove[n], t.uint32(74).fork()).ldelim();
                if (null != e.Shoes && e.Shoes.length)
                    for (n = 0; n < e.Shoes.length; ++n) a.IntArray_Config.encode(e.Shoes[n], t.uint32(82).fork()).ldelim();
                if (null != e.DisplaceMaterials && e.DisplaceMaterials.length)
                    for (n = 0; n < e.DisplaceMaterials.length; ++n) a.IntArray_Config.encode(e.DisplaceMaterials[n], t.uint32(90).fork()).ldelim();
                if (null != e.UnmatchedWeapon && e.UnmatchedWeapon.length)
                    for (n = 0; n < e.UnmatchedWeapon.length; ++n) a.IntArray_Config.encode(e.UnmatchedWeapon[n], t.uint32(106).fork()).ldelim();
                if (null != e.UnmatchedCoat && e.UnmatchedCoat.length)
                    for (n = 0; n < e.UnmatchedCoat.length; ++n) a.IntArray_Config.encode(e.UnmatchedCoat[n], t.uint32(146).fork()).ldelim();
                if (null != e.UnmatchedGlove && e.UnmatchedGlove.length)
                    for (n = 0; n < e.UnmatchedGlove.length; ++n) a.IntArray_Config.encode(e.UnmatchedGlove[n], t.uint32(154).fork()).ldelim();
                if (null != e.UnmatchedShoes && e.UnmatchedShoes.length)
                    for (n = 0; n < e.UnmatchedShoes.length; ++n) a.IntArray_Config.encode(e.UnmatchedShoes[n], t.uint32(162).fork()).ldelim();
                if (null != e.ResonanceAttrs && e.ResonanceAttrs.length)
                    for (n = 0; n < e.ResonanceAttrs.length; ++n) a.IntArray_Config.encode(e.ResonanceAttrs[n], t.uint32(170).fork()).ldelim();
                if (null != e.Unlock && e.Unlock.length) {
                    for (t.uint32(178).fork(), n = 0; n < e.Unlock.length; ++n) t.int64(e.Unlock[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipmentStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.MaxLevel = e.int64();
                            break;
                        case 3:
                            r.BlessingMaxLevel = e.int64();
                            break;
                        case 4:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Score = e.int64();
                            break;
                        case 7:
                            r.Weapon && r.Weapon.length || (r.Weapon = []), r.Weapon.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.Coat && r.Coat.length || (r.Coat = []), r.Coat.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.Glove && r.Glove.length || (r.Glove = []), r.Glove.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.Shoes && r.Shoes.length || (r.Shoes = []), r.Shoes.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 11:
                            r.DisplaceMaterials && r.DisplaceMaterials.length || (r.DisplaceMaterials = []), r.DisplaceMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 13:
                            r.UnmatchedWeapon && r.UnmatchedWeapon.length || (r.UnmatchedWeapon = []), r.UnmatchedWeapon.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 18:
                            r.UnmatchedCoat && r.UnmatchedCoat.length || (r.UnmatchedCoat = []), r.UnmatchedCoat.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 19:
                            r.UnmatchedGlove && r.UnmatchedGlove.length || (r.UnmatchedGlove = []), r.UnmatchedGlove.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 20:
                            r.UnmatchedShoes && r.UnmatchedShoes.length || (r.UnmatchedShoes = []), r.UnmatchedShoes.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 21:
                            r.ResonanceAttrs && r.ResonanceAttrs.length || (r.ResonanceAttrs = []), r.ResonanceAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 22:
                            if (r.Unlock && r.Unlock.length || (r.Unlock = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Unlock.push(e.int64());
                            else r.Unlock.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && !(i.isInteger(e.MaxLevel) || e.MaxLevel && i.isInteger(e.MaxLevel.low) && i.isInteger(e.MaxLevel.high))) return "MaxLevel: integer|Long expected";
                if (null != e.BlessingMaxLevel && e.hasOwnProperty("BlessingMaxLevel") && !(i.isInteger(e.BlessingMaxLevel) || e.BlessingMaxLevel && i.isInteger(e.BlessingMaxLevel.low) && i.isInteger(e.BlessingMaxLevel.high))) return "BlessingMaxLevel: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.Weapon && e.hasOwnProperty("Weapon")) {
                    if (!Array.isArray(e.Weapon)) return "Weapon: array expected";
                    for (t = 0; t < e.Weapon.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Weapon[t])) return "Weapon." + n
                }
                if (null != e.Coat && e.hasOwnProperty("Coat")) {
                    if (!Array.isArray(e.Coat)) return "Coat: array expected";
                    for (t = 0; t < e.Coat.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Coat[t])) return "Coat." + n
                }
                if (null != e.Glove && e.hasOwnProperty("Glove")) {
                    if (!Array.isArray(e.Glove)) return "Glove: array expected";
                    for (t = 0; t < e.Glove.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Glove[t])) return "Glove." + n
                }
                if (null != e.Shoes && e.hasOwnProperty("Shoes")) {
                    if (!Array.isArray(e.Shoes)) return "Shoes: array expected";
                    for (t = 0; t < e.Shoes.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Shoes[t])) return "Shoes." + n
                }
                if (null != e.DisplaceMaterials && e.hasOwnProperty("DisplaceMaterials")) {
                    if (!Array.isArray(e.DisplaceMaterials)) return "DisplaceMaterials: array expected";
                    for (t = 0; t < e.DisplaceMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.DisplaceMaterials[t])) return "DisplaceMaterials." + n
                }
                if (null != e.UnmatchedWeapon && e.hasOwnProperty("UnmatchedWeapon")) {
                    if (!Array.isArray(e.UnmatchedWeapon)) return "UnmatchedWeapon: array expected";
                    for (t = 0; t < e.UnmatchedWeapon.length; ++t)
                        if (n = a.IntArray_Config.verify(e.UnmatchedWeapon[t])) return "UnmatchedWeapon." + n
                }
                if (null != e.UnmatchedCoat && e.hasOwnProperty("UnmatchedCoat")) {
                    if (!Array.isArray(e.UnmatchedCoat)) return "UnmatchedCoat: array expected";
                    for (t = 0; t < e.UnmatchedCoat.length; ++t)
                        if (n = a.IntArray_Config.verify(e.UnmatchedCoat[t])) return "UnmatchedCoat." + n
                }
                if (null != e.UnmatchedGlove && e.hasOwnProperty("UnmatchedGlove")) {
                    if (!Array.isArray(e.UnmatchedGlove)) return "UnmatchedGlove: array expected";
                    for (t = 0; t < e.UnmatchedGlove.length; ++t)
                        if (n = a.IntArray_Config.verify(e.UnmatchedGlove[t])) return "UnmatchedGlove." + n
                }
                if (null != e.UnmatchedShoes && e.hasOwnProperty("UnmatchedShoes")) {
                    if (!Array.isArray(e.UnmatchedShoes)) return "UnmatchedShoes: array expected";
                    for (t = 0; t < e.UnmatchedShoes.length; ++t)
                        if (n = a.IntArray_Config.verify(e.UnmatchedShoes[t])) return "UnmatchedShoes." + n
                }
                if (null != e.ResonanceAttrs && e.hasOwnProperty("ResonanceAttrs")) {
                    if (!Array.isArray(e.ResonanceAttrs)) return "ResonanceAttrs: array expected";
                    for (t = 0; t < e.ResonanceAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ResonanceAttrs[t])) return "ResonanceAttrs." + n
                    }
                }
                if (null != e.Unlock && e.hasOwnProperty("Unlock")) {
                    if (!Array.isArray(e.Unlock)) return "Unlock: array expected";
                    for (t = 0; t < e.Unlock.length; ++t)
                        if (!(i.isInteger(e.Unlock[t]) || e.Unlock[t] && i.isInteger(e.Unlock[t].low) && i.isInteger(e.Unlock[t].high))) return "Unlock: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipmentStar_Config) return e;
                var t = new a.HolyEquipmentStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.MaxLevel && (i.Long ? (t.MaxLevel = i.Long.fromValue(e.MaxLevel)).unsigned = !1 : "string" == typeof e.MaxLevel ? t.MaxLevel = parseInt(e.MaxLevel, 10) : "number" == typeof e.MaxLevel ? t.MaxLevel = e.MaxLevel : "object" == typeof e.MaxLevel && (t.MaxLevel = new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber())), null != e.BlessingMaxLevel && (i.Long ? (t.BlessingMaxLevel = i.Long.fromValue(e.BlessingMaxLevel)).unsigned = !1 : "string" == typeof e.BlessingMaxLevel ? t.BlessingMaxLevel = parseInt(e.BlessingMaxLevel, 10) : "number" == typeof e.BlessingMaxLevel ? t.BlessingMaxLevel = e.BlessingMaxLevel : "object" == typeof e.BlessingMaxLevel && (t.BlessingMaxLevel = new i.LongBits(e.BlessingMaxLevel.low >>> 0, e.BlessingMaxLevel.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".HolyEquipmentStar_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".HolyEquipmentStar_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.Weapon) {
                    if (!Array.isArray(e.Weapon)) throw TypeError(".HolyEquipmentStar_Config.Weapon: array expected");
                    for (t.Weapon = [], n = 0; n < e.Weapon.length; ++n) {
                        if ("object" != typeof e.Weapon[n]) throw TypeError(".HolyEquipmentStar_Config.Weapon: object expected");
                        t.Weapon[n] = a.IntArray_Config.fromObject(e.Weapon[n])
                    }
                }
                if (e.Coat) {
                    if (!Array.isArray(e.Coat)) throw TypeError(".HolyEquipmentStar_Config.Coat: array expected");
                    for (t.Coat = [], n = 0; n < e.Coat.length; ++n) {
                        if ("object" != typeof e.Coat[n]) throw TypeError(".HolyEquipmentStar_Config.Coat: object expected");
                        t.Coat[n] = a.IntArray_Config.fromObject(e.Coat[n])
                    }
                }
                if (e.Glove) {
                    if (!Array.isArray(e.Glove)) throw TypeError(".HolyEquipmentStar_Config.Glove: array expected");
                    for (t.Glove = [], n = 0; n < e.Glove.length; ++n) {
                        if ("object" != typeof e.Glove[n]) throw TypeError(".HolyEquipmentStar_Config.Glove: object expected");
                        t.Glove[n] = a.IntArray_Config.fromObject(e.Glove[n])
                    }
                }
                if (e.Shoes) {
                    if (!Array.isArray(e.Shoes)) throw TypeError(".HolyEquipmentStar_Config.Shoes: array expected");
                    for (t.Shoes = [], n = 0; n < e.Shoes.length; ++n) {
                        if ("object" != typeof e.Shoes[n]) throw TypeError(".HolyEquipmentStar_Config.Shoes: object expected");
                        t.Shoes[n] = a.IntArray_Config.fromObject(e.Shoes[n])
                    }
                }
                if (e.DisplaceMaterials) {
                    if (!Array.isArray(e.DisplaceMaterials)) throw TypeError(".HolyEquipmentStar_Config.DisplaceMaterials: array expected");
                    for (t.DisplaceMaterials = [], n = 0; n < e.DisplaceMaterials.length; ++n) {
                        if ("object" != typeof e.DisplaceMaterials[n]) throw TypeError(".HolyEquipmentStar_Config.DisplaceMaterials: object expected");
                        t.DisplaceMaterials[n] = a.IntArray_Config.fromObject(e.DisplaceMaterials[n])
                    }
                }
                if (e.UnmatchedWeapon) {
                    if (!Array.isArray(e.UnmatchedWeapon)) throw TypeError(".HolyEquipmentStar_Config.UnmatchedWeapon: array expected");
                    for (t.UnmatchedWeapon = [], n = 0; n < e.UnmatchedWeapon.length; ++n) {
                        if ("object" != typeof e.UnmatchedWeapon[n]) throw TypeError(".HolyEquipmentStar_Config.UnmatchedWeapon: object expected");
                        t.UnmatchedWeapon[n] = a.IntArray_Config.fromObject(e.UnmatchedWeapon[n])
                    }
                }
                if (e.UnmatchedCoat) {
                    if (!Array.isArray(e.UnmatchedCoat)) throw TypeError(".HolyEquipmentStar_Config.UnmatchedCoat: array expected");
                    for (t.UnmatchedCoat = [], n = 0; n < e.UnmatchedCoat.length; ++n) {
                        if ("object" != typeof e.UnmatchedCoat[n]) throw TypeError(".HolyEquipmentStar_Config.UnmatchedCoat: object expected");
                        t.UnmatchedCoat[n] = a.IntArray_Config.fromObject(e.UnmatchedCoat[n])
                    }
                }
                if (e.UnmatchedGlove) {
                    if (!Array.isArray(e.UnmatchedGlove)) throw TypeError(".HolyEquipmentStar_Config.UnmatchedGlove: array expected");
                    for (t.UnmatchedGlove = [], n = 0; n < e.UnmatchedGlove.length; ++n) {
                        if ("object" != typeof e.UnmatchedGlove[n]) throw TypeError(".HolyEquipmentStar_Config.UnmatchedGlove: object expected");
                        t.UnmatchedGlove[n] = a.IntArray_Config.fromObject(e.UnmatchedGlove[n])
                    }
                }
                if (e.UnmatchedShoes) {
                    if (!Array.isArray(e.UnmatchedShoes)) throw TypeError(".HolyEquipmentStar_Config.UnmatchedShoes: array expected");
                    for (t.UnmatchedShoes = [], n = 0; n < e.UnmatchedShoes.length; ++n) {
                        if ("object" != typeof e.UnmatchedShoes[n]) throw TypeError(".HolyEquipmentStar_Config.UnmatchedShoes: object expected");
                        t.UnmatchedShoes[n] = a.IntArray_Config.fromObject(e.UnmatchedShoes[n])
                    }
                }
                if (e.ResonanceAttrs) {
                    if (!Array.isArray(e.ResonanceAttrs)) throw TypeError(".HolyEquipmentStar_Config.ResonanceAttrs: array expected");
                    for (t.ResonanceAttrs = [], n = 0; n < e.ResonanceAttrs.length; ++n) {
                        if ("object" != typeof e.ResonanceAttrs[n]) throw TypeError(".HolyEquipmentStar_Config.ResonanceAttrs: object expected");
                        t.ResonanceAttrs[n] = a.IntArray_Config.fromObject(e.ResonanceAttrs[n])
                    }
                }
                if (e.Unlock) {
                    if (!Array.isArray(e.Unlock)) throw TypeError(".HolyEquipmentStar_Config.Unlock: array expected");
                    for (t.Unlock = [], n = 0; n < e.Unlock.length; ++n) i.Long ? (t.Unlock[n] = i.Long.fromValue(e.Unlock[n])).unsigned = !1 : "string" == typeof e.Unlock[n] ? t.Unlock[n] = parseInt(e.Unlock[n], 10) : "number" == typeof e.Unlock[n] ? t.Unlock[n] = e.Unlock[n] : "object" == typeof e.Unlock[n] && (t.Unlock[n] = new i.LongBits(e.Unlock[n].low >>> 0, e.Unlock[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Weapon = [], n.Coat = [], n.Glove = [], n.Shoes = [], n.DisplaceMaterials = [], n.UnmatchedWeapon = [], n.UnmatchedCoat = [], n.UnmatchedGlove = [], n.UnmatchedShoes = [], n.ResonanceAttrs = [], n.Unlock = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.BlessingMaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BlessingMaxLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && ("number" == typeof e.MaxLevel ? n.MaxLevel = t.longs === String ? String(e.MaxLevel) : e.MaxLevel : n.MaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxLevel) : t.longs === Number ? new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber() : e.MaxLevel), null != e.BlessingMaxLevel && e.hasOwnProperty("BlessingMaxLevel") && ("number" == typeof e.BlessingMaxLevel ? n.BlessingMaxLevel = t.longs === String ? String(e.BlessingMaxLevel) : e.BlessingMaxLevel : n.BlessingMaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.BlessingMaxLevel) : t.longs === Number ? new i.LongBits(e.BlessingMaxLevel.low >>> 0, e.BlessingMaxLevel.high >>> 0).toNumber() : e.BlessingMaxLevel), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.Weapon && e.Weapon.length)
                    for (n.Weapon = [], r = 0; r < e.Weapon.length; ++r) n.Weapon[r] = a.IntArray_Config.toObject(e.Weapon[r], t);
                if (e.Coat && e.Coat.length)
                    for (n.Coat = [], r = 0; r < e.Coat.length; ++r) n.Coat[r] = a.IntArray_Config.toObject(e.Coat[r], t);
                if (e.Glove && e.Glove.length)
                    for (n.Glove = [], r = 0; r < e.Glove.length; ++r) n.Glove[r] = a.IntArray_Config.toObject(e.Glove[r], t);
                if (e.Shoes && e.Shoes.length)
                    for (n.Shoes = [], r = 0; r < e.Shoes.length; ++r) n.Shoes[r] = a.IntArray_Config.toObject(e.Shoes[r], t);
                if (e.DisplaceMaterials && e.DisplaceMaterials.length)
                    for (n.DisplaceMaterials = [], r = 0; r < e.DisplaceMaterials.length; ++r) n.DisplaceMaterials[r] = a.IntArray_Config.toObject(e.DisplaceMaterials[r], t);
                if (e.UnmatchedWeapon && e.UnmatchedWeapon.length)
                    for (n.UnmatchedWeapon = [], r = 0; r < e.UnmatchedWeapon.length; ++r) n.UnmatchedWeapon[r] = a.IntArray_Config.toObject(e.UnmatchedWeapon[r], t);
                if (e.UnmatchedCoat && e.UnmatchedCoat.length)
                    for (n.UnmatchedCoat = [], r = 0; r < e.UnmatchedCoat.length; ++r) n.UnmatchedCoat[r] = a.IntArray_Config.toObject(e.UnmatchedCoat[r], t);
                if (e.UnmatchedGlove && e.UnmatchedGlove.length)
                    for (n.UnmatchedGlove = [], r = 0; r < e.UnmatchedGlove.length; ++r) n.UnmatchedGlove[r] = a.IntArray_Config.toObject(e.UnmatchedGlove[r], t);
                if (e.UnmatchedShoes && e.UnmatchedShoes.length)
                    for (n.UnmatchedShoes = [], r = 0; r < e.UnmatchedShoes.length; ++r) n.UnmatchedShoes[r] = a.IntArray_Config.toObject(e.UnmatchedShoes[r], t);
                if (e.ResonanceAttrs && e.ResonanceAttrs.length)
                    for (n.ResonanceAttrs = [], r = 0; r < e.ResonanceAttrs.length; ++r) n.ResonanceAttrs[r] = a.IntArray_Config.toObject(e.ResonanceAttrs[r], t);
                if (e.Unlock && e.Unlock.length)
                    for (n.Unlock = [], r = 0; r < e.Unlock.length; ++r) "number" == typeof e.Unlock[r] ? n.Unlock[r] = t.longs === String ? String(e.Unlock[r]) : e.Unlock[r] : n.Unlock[r] = t.longs === String ? i.Long.prototype.toString.call(e.Unlock[r]) : t.longs === Number ? new i.LongBits(e.Unlock[r].low >>> 0, e.Unlock[r].high >>> 0).toNumber() : e.Unlock[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipmentStar_Config"
            }, e
        }(), a.HolyEquipmentLevel_Config = function() {
            function e(e) {
                if (this.Weapon = [], this.Coat = [], this.Glove = [], this.Shoes = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Weapon = i.emptyArray, e.prototype.Coat = i.emptyArray, e.prototype.Glove = i.emptyArray, e.prototype.Shoes = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(16).int64(e.Xp), null != e.Weapon && e.Weapon.length)
                    for (var n = 0; n < e.Weapon.length; ++n) a.IntArray_Config.encode(e.Weapon[n], t.uint32(26).fork()).ldelim();
                if (null != e.Coat && e.Coat.length)
                    for (n = 0; n < e.Coat.length; ++n) a.IntArray_Config.encode(e.Coat[n], t.uint32(34).fork()).ldelim();
                if (null != e.Glove && e.Glove.length)
                    for (n = 0; n < e.Glove.length; ++n) a.IntArray_Config.encode(e.Glove[n], t.uint32(42).fork()).ldelim();
                if (null != e.Shoes && e.Shoes.length)
                    for (n = 0; n < e.Shoes.length; ++n) a.IntArray_Config.encode(e.Shoes[n], t.uint32(50).fork()).ldelim();
                return null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(56).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipmentLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Xp = e.int64();
                            break;
                        case 3:
                            r.Weapon && r.Weapon.length || (r.Weapon = []), r.Weapon.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Coat && r.Coat.length || (r.Coat = []), r.Coat.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Glove && r.Glove.length || (r.Glove = []), r.Glove.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Shoes && r.Shoes.length || (r.Shoes = []), r.Shoes.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high))) return "Xp: integer|Long expected";
                if (null != e.Weapon && e.hasOwnProperty("Weapon")) {
                    if (!Array.isArray(e.Weapon)) return "Weapon: array expected";
                    for (var t = 0; t < e.Weapon.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Weapon[t])) return "Weapon." + n
                }
                if (null != e.Coat && e.hasOwnProperty("Coat")) {
                    if (!Array.isArray(e.Coat)) return "Coat: array expected";
                    for (t = 0; t < e.Coat.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Coat[t])) return "Coat." + n
                }
                if (null != e.Glove && e.hasOwnProperty("Glove")) {
                    if (!Array.isArray(e.Glove)) return "Glove: array expected";
                    for (t = 0; t < e.Glove.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Glove[t])) return "Glove." + n
                }
                if (null != e.Shoes && e.hasOwnProperty("Shoes")) {
                    if (!Array.isArray(e.Shoes)) return "Shoes: array expected";
                    for (t = 0; t < e.Shoes.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Shoes[t])) return "Shoes." + n
                    }
                }
                return null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipmentLevel_Config) return e;
                var t = new a.HolyEquipmentLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), e.Weapon) {
                    if (!Array.isArray(e.Weapon)) throw TypeError(".HolyEquipmentLevel_Config.Weapon: array expected");
                    t.Weapon = [];
                    for (var n = 0; n < e.Weapon.length; ++n) {
                        if ("object" != typeof e.Weapon[n]) throw TypeError(".HolyEquipmentLevel_Config.Weapon: object expected");
                        t.Weapon[n] = a.IntArray_Config.fromObject(e.Weapon[n])
                    }
                }
                if (e.Coat) {
                    if (!Array.isArray(e.Coat)) throw TypeError(".HolyEquipmentLevel_Config.Coat: array expected");
                    for (t.Coat = [], n = 0; n < e.Coat.length; ++n) {
                        if ("object" != typeof e.Coat[n]) throw TypeError(".HolyEquipmentLevel_Config.Coat: object expected");
                        t.Coat[n] = a.IntArray_Config.fromObject(e.Coat[n])
                    }
                }
                if (e.Glove) {
                    if (!Array.isArray(e.Glove)) throw TypeError(".HolyEquipmentLevel_Config.Glove: array expected");
                    for (t.Glove = [], n = 0; n < e.Glove.length; ++n) {
                        if ("object" != typeof e.Glove[n]) throw TypeError(".HolyEquipmentLevel_Config.Glove: object expected");
                        t.Glove[n] = a.IntArray_Config.fromObject(e.Glove[n])
                    }
                }
                if (e.Shoes) {
                    if (!Array.isArray(e.Shoes)) throw TypeError(".HolyEquipmentLevel_Config.Shoes: array expected");
                    for (t.Shoes = [], n = 0; n < e.Shoes.length; ++n) {
                        if ("object" != typeof e.Shoes[n]) throw TypeError(".HolyEquipmentLevel_Config.Shoes: object expected");
                        t.Shoes[n] = a.IntArray_Config.fromObject(e.Shoes[n])
                    }
                }
                return null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Weapon = [], n.Coat = [], n.Glove = [], n.Shoes = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), e.Weapon && e.Weapon.length) {
                    n.Weapon = [];
                    for (var r = 0; r < e.Weapon.length; ++r) n.Weapon[r] = a.IntArray_Config.toObject(e.Weapon[r], t)
                }
                if (e.Coat && e.Coat.length)
                    for (n.Coat = [], r = 0; r < e.Coat.length; ++r) n.Coat[r] = a.IntArray_Config.toObject(e.Coat[r], t);
                if (e.Glove && e.Glove.length)
                    for (n.Glove = [], r = 0; r < e.Glove.length; ++r) n.Glove[r] = a.IntArray_Config.toObject(e.Glove[r], t);
                if (e.Shoes && e.Shoes.length)
                    for (n.Shoes = [], r = 0; r < e.Shoes.length; ++r) n.Shoes[r] = a.IntArray_Config.toObject(e.Shoes[r], t);
                return null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipmentLevel_Config"
            }, e
        }(), a.HolyEquipBlessingType_Config = function() {
            function e(e) {
                if (this.Desc = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnlockLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Weight = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Desc = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.UnlockLevel && Object.hasOwnProperty.call(e, "UnlockLevel") && t.uint32(16).int64(e.UnlockLevel), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.Weight && Object.hasOwnProperty.call(e, "Weight") && t.uint32(32).int64(e.Weight), null != e.Desc && e.Desc.length) {
                    t.uint32(50).fork();
                    for (var n = 0; n < e.Desc.length; ++n) t.int64(e.Desc[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipBlessingType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.UnlockLevel = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Weight = e.int64();
                            break;
                        case 6:
                            if (r.Desc && r.Desc.length || (r.Desc = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Desc.push(e.int64());
                            else r.Desc.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.UnlockLevel && e.hasOwnProperty("UnlockLevel") && !(i.isInteger(e.UnlockLevel) || e.UnlockLevel && i.isInteger(e.UnlockLevel.low) && i.isInteger(e.UnlockLevel.high))) return "UnlockLevel: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Weight && e.hasOwnProperty("Weight") && !(i.isInteger(e.Weight) || e.Weight && i.isInteger(e.Weight.low) && i.isInteger(e.Weight.high))) return "Weight: integer|Long expected";
                if (null != e.Desc && e.hasOwnProperty("Desc")) {
                    if (!Array.isArray(e.Desc)) return "Desc: array expected";
                    for (var t = 0; t < e.Desc.length; ++t)
                        if (!(i.isInteger(e.Desc[t]) || e.Desc[t] && i.isInteger(e.Desc[t].low) && i.isInteger(e.Desc[t].high))) return "Desc: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipBlessingType_Config) return e;
                var t = new a.HolyEquipBlessingType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.UnlockLevel && (i.Long ? (t.UnlockLevel = i.Long.fromValue(e.UnlockLevel)).unsigned = !1 : "string" == typeof e.UnlockLevel ? t.UnlockLevel = parseInt(e.UnlockLevel, 10) : "number" == typeof e.UnlockLevel ? t.UnlockLevel = e.UnlockLevel : "object" == typeof e.UnlockLevel && (t.UnlockLevel = new i.LongBits(e.UnlockLevel.low >>> 0, e.UnlockLevel.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Weight && (i.Long ? (t.Weight = i.Long.fromValue(e.Weight)).unsigned = !1 : "string" == typeof e.Weight ? t.Weight = parseInt(e.Weight, 10) : "number" == typeof e.Weight ? t.Weight = e.Weight : "object" == typeof e.Weight && (t.Weight = new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber())), e.Desc) {
                    if (!Array.isArray(e.Desc)) throw TypeError(".HolyEquipBlessingType_Config.Desc: array expected");
                    t.Desc = [];
                    for (var n = 0; n < e.Desc.length; ++n) i.Long ? (t.Desc[n] = i.Long.fromValue(e.Desc[n])).unsigned = !1 : "string" == typeof e.Desc[n] ? t.Desc[n] = parseInt(e.Desc[n], 10) : "number" == typeof e.Desc[n] ? t.Desc[n] = e.Desc[n] : "object" == typeof e.Desc[n] && (t.Desc[n] = new i.LongBits(e.Desc[n].low >>> 0, e.Desc[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Desc = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.UnlockLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UnlockLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Weight = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Weight = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.UnlockLevel && e.hasOwnProperty("UnlockLevel") && ("number" == typeof e.UnlockLevel ? n.UnlockLevel = t.longs === String ? String(e.UnlockLevel) : e.UnlockLevel : n.UnlockLevel = t.longs === String ? i.Long.prototype.toString.call(e.UnlockLevel) : t.longs === Number ? new i.LongBits(e.UnlockLevel.low >>> 0, e.UnlockLevel.high >>> 0).toNumber() : e.UnlockLevel), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Weight && e.hasOwnProperty("Weight") && ("number" == typeof e.Weight ? n.Weight = t.longs === String ? String(e.Weight) : e.Weight : n.Weight = t.longs === String ? i.Long.prototype.toString.call(e.Weight) : t.longs === Number ? new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber() : e.Weight), e.Desc && e.Desc.length) {
                    n.Desc = [];
                    for (var r = 0; r < e.Desc.length; ++r) "number" == typeof e.Desc[r] ? n.Desc[r] = t.longs === String ? String(e.Desc[r]) : e.Desc[r] : n.Desc[r] = t.longs === String ? i.Long.prototype.toString.call(e.Desc[r]) : t.longs === Number ? new i.LongBits(e.Desc[r].low >>> 0, e.Desc[r].high >>> 0).toNumber() : e.Desc[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipBlessingType_Config"
            }, e
        }(), a.HolyEquipBlessing_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TypeId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.TypeId && Object.hasOwnProperty.call(e, "TypeId") && t.uint32(16).int64(e.TypeId), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(24).int64(e.Level), null != e.Attrs && e.Attrs.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.Attrs.length; ++n) t.int64(e.Attrs[n]);
                    t.ldelim()
                }
                return null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(40).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipBlessing_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.TypeId = e.int64();
                            break;
                        case 3:
                            r.Level = e.int64();
                            break;
                        case 4:
                            if (r.Attrs && r.Attrs.length || (r.Attrs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Attrs.push(e.int64());
                            else r.Attrs.push(e.int64());
                            break;
                        case 5:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.TypeId && e.hasOwnProperty("TypeId") && !(i.isInteger(e.TypeId) || e.TypeId && i.isInteger(e.TypeId.low) && i.isInteger(e.TypeId.high))) return "TypeId: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (!(i.isInteger(e.Attrs[t]) || e.Attrs[t] && i.isInteger(e.Attrs[t].low) && i.isInteger(e.Attrs[t].high))) return "Attrs: integer|Long[] expected"
                }
                return null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipBlessing_Config) return e;
                var t = new a.HolyEquipBlessing_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.TypeId && (i.Long ? (t.TypeId = i.Long.fromValue(e.TypeId)).unsigned = !1 : "string" == typeof e.TypeId ? t.TypeId = parseInt(e.TypeId, 10) : "number" == typeof e.TypeId ? t.TypeId = e.TypeId : "object" == typeof e.TypeId && (t.TypeId = new i.LongBits(e.TypeId.low >>> 0, e.TypeId.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HolyEquipBlessing_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) i.Long ? (t.Attrs[n] = i.Long.fromValue(e.Attrs[n])).unsigned = !1 : "string" == typeof e.Attrs[n] ? t.Attrs[n] = parseInt(e.Attrs[n], 10) : "number" == typeof e.Attrs[n] ? t.Attrs[n] = e.Attrs[n] : "object" == typeof e.Attrs[n] && (t.Attrs[n] = new i.LongBits(e.Attrs[n].low >>> 0, e.Attrs[n].high >>> 0).toNumber())
                }
                return null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.TypeId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TypeId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.TypeId && e.hasOwnProperty("TypeId") && ("number" == typeof e.TypeId ? n.TypeId = t.longs === String ? String(e.TypeId) : e.TypeId : n.TypeId = t.longs === String ? i.Long.prototype.toString.call(e.TypeId) : t.longs === Number ? new i.LongBits(e.TypeId.low >>> 0, e.TypeId.high >>> 0).toNumber() : e.TypeId), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) "number" == typeof e.Attrs[r] ? n.Attrs[r] = t.longs === String ? String(e.Attrs[r]) : e.Attrs[r] : n.Attrs[r] = t.longs === String ? i.Long.prototype.toString.call(e.Attrs[r]) : t.longs === Number ? new i.LongBits(e.Attrs[r].low >>> 0, e.Attrs[r].high >>> 0).toNumber() : e.Attrs[r]
                }
                return null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipBlessing_Config"
            }, e
        }(), a.HolyEquipBlessingLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], this.LevelUp = [], this.LevelCrit = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.LevelUp = i.emptyArray, e.prototype.LevelCrit = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(16).int64(e.Xp), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(26).fork()).ldelim();
                if (null != e.LevelUp && e.LevelUp.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.LevelUp.length; ++n) t.int64(e.LevelUp[n]);
                    t.ldelim()
                }
                if (null != e.LevelCrit && e.LevelCrit.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.LevelCrit.length; ++n) t.int64(e.LevelCrit[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipBlessingLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Xp = e.int64();
                            break;
                        case 3:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            if (r.LevelUp && r.LevelUp.length || (r.LevelUp = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.LevelUp.push(e.int64());
                            else r.LevelUp.push(e.int64());
                            break;
                        case 5:
                            if (r.LevelCrit && r.LevelCrit.length || (r.LevelCrit = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.LevelCrit.push(e.int64());
                            else r.LevelCrit.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high))) return "Xp: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                if (null != e.LevelUp && e.hasOwnProperty("LevelUp")) {
                    if (!Array.isArray(e.LevelUp)) return "LevelUp: array expected";
                    for (t = 0; t < e.LevelUp.length; ++t)
                        if (!(i.isInteger(e.LevelUp[t]) || e.LevelUp[t] && i.isInteger(e.LevelUp[t].low) && i.isInteger(e.LevelUp[t].high))) return "LevelUp: integer|Long[] expected"
                }
                if (null != e.LevelCrit && e.hasOwnProperty("LevelCrit")) {
                    if (!Array.isArray(e.LevelCrit)) return "LevelCrit: array expected";
                    for (t = 0; t < e.LevelCrit.length; ++t)
                        if (!(i.isInteger(e.LevelCrit[t]) || e.LevelCrit[t] && i.isInteger(e.LevelCrit[t].low) && i.isInteger(e.LevelCrit[t].high))) return "LevelCrit: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipBlessingLevel_Config) return e;
                var t = new a.HolyEquipBlessingLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".HolyEquipBlessingLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".HolyEquipBlessingLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.LevelUp) {
                    if (!Array.isArray(e.LevelUp)) throw TypeError(".HolyEquipBlessingLevel_Config.LevelUp: array expected");
                    for (t.LevelUp = [], n = 0; n < e.LevelUp.length; ++n) i.Long ? (t.LevelUp[n] = i.Long.fromValue(e.LevelUp[n])).unsigned = !1 : "string" == typeof e.LevelUp[n] ? t.LevelUp[n] = parseInt(e.LevelUp[n], 10) : "number" == typeof e.LevelUp[n] ? t.LevelUp[n] = e.LevelUp[n] : "object" == typeof e.LevelUp[n] && (t.LevelUp[n] = new i.LongBits(e.LevelUp[n].low >>> 0, e.LevelUp[n].high >>> 0).toNumber())
                }
                if (e.LevelCrit) {
                    if (!Array.isArray(e.LevelCrit)) throw TypeError(".HolyEquipBlessingLevel_Config.LevelCrit: array expected");
                    for (t.LevelCrit = [], n = 0; n < e.LevelCrit.length; ++n) i.Long ? (t.LevelCrit[n] = i.Long.fromValue(e.LevelCrit[n])).unsigned = !1 : "string" == typeof e.LevelCrit[n] ? t.LevelCrit[n] = parseInt(e.LevelCrit[n], 10) : "number" == typeof e.LevelCrit[n] ? t.LevelCrit[n] = e.LevelCrit[n] : "object" == typeof e.LevelCrit[n] && (t.LevelCrit[n] = new i.LongBits(e.LevelCrit[n].low >>> 0, e.LevelCrit[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.LevelUp = [], n.LevelCrit = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.LevelUp && e.LevelUp.length)
                    for (n.LevelUp = [], r = 0; r < e.LevelUp.length; ++r) "number" == typeof e.LevelUp[r] ? n.LevelUp[r] = t.longs === String ? String(e.LevelUp[r]) : e.LevelUp[r] : n.LevelUp[r] = t.longs === String ? i.Long.prototype.toString.call(e.LevelUp[r]) : t.longs === Number ? new i.LongBits(e.LevelUp[r].low >>> 0, e.LevelUp[r].high >>> 0).toNumber() : e.LevelUp[r];
                if (e.LevelCrit && e.LevelCrit.length)
                    for (n.LevelCrit = [], r = 0; r < e.LevelCrit.length; ++r) "number" == typeof e.LevelCrit[r] ? n.LevelCrit[r] = t.longs === String ? String(e.LevelCrit[r]) : e.LevelCrit[r] : n.LevelCrit[r] = t.longs === String ? i.Long.prototype.toString.call(e.LevelCrit[r]) : t.longs === Number ? new i.LongBits(e.LevelCrit[r].low >>> 0, e.LevelCrit[r].high >>> 0).toNumber() : e.LevelCrit[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipBlessingLevel_Config"
            }, e
        }(), a.HolyEquipSuit_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillTwoId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillFourId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UpStepSkillTwoId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UpStepSkillFourId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.SkillTwoId && Object.hasOwnProperty.call(e, "SkillTwoId") && t.uint32(24).int64(e.SkillTwoId), null != e.SkillFourId && Object.hasOwnProperty.call(e, "SkillFourId") && t.uint32(32).int64(e.SkillFourId), null != e.UpStepSkillTwoId && Object.hasOwnProperty.call(e, "UpStepSkillTwoId") && t.uint32(40).int64(e.UpStepSkillTwoId), null != e.UpStepSkillFourId && Object.hasOwnProperty.call(e, "UpStepSkillFourId") && t.uint32(48).int64(e.UpStepSkillFourId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipSuit_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.SkillTwoId = e.int64();
                            break;
                        case 4:
                            r.SkillFourId = e.int64();
                            break;
                        case 5:
                            r.UpStepSkillTwoId = e.int64();
                            break;
                        case 6:
                            r.UpStepSkillFourId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.SkillTwoId && e.hasOwnProperty("SkillTwoId") && !(i.isInteger(e.SkillTwoId) || e.SkillTwoId && i.isInteger(e.SkillTwoId.low) && i.isInteger(e.SkillTwoId.high)) ? "SkillTwoId: integer|Long expected" : null != e.SkillFourId && e.hasOwnProperty("SkillFourId") && !(i.isInteger(e.SkillFourId) || e.SkillFourId && i.isInteger(e.SkillFourId.low) && i.isInteger(e.SkillFourId.high)) ? "SkillFourId: integer|Long expected" : null != e.UpStepSkillTwoId && e.hasOwnProperty("UpStepSkillTwoId") && !(i.isInteger(e.UpStepSkillTwoId) || e.UpStepSkillTwoId && i.isInteger(e.UpStepSkillTwoId.low) && i.isInteger(e.UpStepSkillTwoId.high)) ? "UpStepSkillTwoId: integer|Long expected" : null != e.UpStepSkillFourId && e.hasOwnProperty("UpStepSkillFourId") && !(i.isInteger(e.UpStepSkillFourId) || e.UpStepSkillFourId && i.isInteger(e.UpStepSkillFourId.low) && i.isInteger(e.UpStepSkillFourId.high)) ? "UpStepSkillFourId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipSuit_Config) return e;
                var t = new a.HolyEquipSuit_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.SkillTwoId && (i.Long ? (t.SkillTwoId = i.Long.fromValue(e.SkillTwoId)).unsigned = !1 : "string" == typeof e.SkillTwoId ? t.SkillTwoId = parseInt(e.SkillTwoId, 10) : "number" == typeof e.SkillTwoId ? t.SkillTwoId = e.SkillTwoId : "object" == typeof e.SkillTwoId && (t.SkillTwoId = new i.LongBits(e.SkillTwoId.low >>> 0, e.SkillTwoId.high >>> 0).toNumber())), null != e.SkillFourId && (i.Long ? (t.SkillFourId = i.Long.fromValue(e.SkillFourId)).unsigned = !1 : "string" == typeof e.SkillFourId ? t.SkillFourId = parseInt(e.SkillFourId, 10) : "number" == typeof e.SkillFourId ? t.SkillFourId = e.SkillFourId : "object" == typeof e.SkillFourId && (t.SkillFourId = new i.LongBits(e.SkillFourId.low >>> 0, e.SkillFourId.high >>> 0).toNumber())), null != e.UpStepSkillTwoId && (i.Long ? (t.UpStepSkillTwoId = i.Long.fromValue(e.UpStepSkillTwoId)).unsigned = !1 : "string" == typeof e.UpStepSkillTwoId ? t.UpStepSkillTwoId = parseInt(e.UpStepSkillTwoId, 10) : "number" == typeof e.UpStepSkillTwoId ? t.UpStepSkillTwoId = e.UpStepSkillTwoId : "object" == typeof e.UpStepSkillTwoId && (t.UpStepSkillTwoId = new i.LongBits(e.UpStepSkillTwoId.low >>> 0, e.UpStepSkillTwoId.high >>> 0).toNumber())), null != e.UpStepSkillFourId && (i.Long ? (t.UpStepSkillFourId = i.Long.fromValue(e.UpStepSkillFourId)).unsigned = !1 : "string" == typeof e.UpStepSkillFourId ? t.UpStepSkillFourId = parseInt(e.UpStepSkillFourId, 10) : "number" == typeof e.UpStepSkillFourId ? t.UpStepSkillFourId = e.UpStepSkillFourId : "object" == typeof e.UpStepSkillFourId && (t.UpStepSkillFourId = new i.LongBits(e.UpStepSkillFourId.low >>> 0, e.UpStepSkillFourId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SkillTwoId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillTwoId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkillFourId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillFourId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.UpStepSkillTwoId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UpStepSkillTwoId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.UpStepSkillFourId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UpStepSkillFourId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.SkillTwoId && e.hasOwnProperty("SkillTwoId") && ("number" == typeof e.SkillTwoId ? n.SkillTwoId = t.longs === String ? String(e.SkillTwoId) : e.SkillTwoId : n.SkillTwoId = t.longs === String ? i.Long.prototype.toString.call(e.SkillTwoId) : t.longs === Number ? new i.LongBits(e.SkillTwoId.low >>> 0, e.SkillTwoId.high >>> 0).toNumber() : e.SkillTwoId), null != e.SkillFourId && e.hasOwnProperty("SkillFourId") && ("number" == typeof e.SkillFourId ? n.SkillFourId = t.longs === String ? String(e.SkillFourId) : e.SkillFourId : n.SkillFourId = t.longs === String ? i.Long.prototype.toString.call(e.SkillFourId) : t.longs === Number ? new i.LongBits(e.SkillFourId.low >>> 0, e.SkillFourId.high >>> 0).toNumber() : e.SkillFourId), null != e.UpStepSkillTwoId && e.hasOwnProperty("UpStepSkillTwoId") && ("number" == typeof e.UpStepSkillTwoId ? n.UpStepSkillTwoId = t.longs === String ? String(e.UpStepSkillTwoId) : e.UpStepSkillTwoId : n.UpStepSkillTwoId = t.longs === String ? i.Long.prototype.toString.call(e.UpStepSkillTwoId) : t.longs === Number ? new i.LongBits(e.UpStepSkillTwoId.low >>> 0, e.UpStepSkillTwoId.high >>> 0).toNumber() : e.UpStepSkillTwoId), null != e.UpStepSkillFourId && e.hasOwnProperty("UpStepSkillFourId") && ("number" == typeof e.UpStepSkillFourId ? n.UpStepSkillFourId = t.longs === String ? String(e.UpStepSkillFourId) : e.UpStepSkillFourId : n.UpStepSkillFourId = t.longs === String ? i.Long.prototype.toString.call(e.UpStepSkillFourId) : t.longs === Number ? new i.LongBits(e.UpStepSkillFourId.low >>> 0, e.UpStepSkillFourId.high >>> 0).toNumber() : e.UpStepSkillFourId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipSuit_Config"
            }, e
        }(), a.HolyEquipSoul_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attr = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.UnlockStar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attr && Object.hasOwnProperty.call(e, "Attr") && t.uint32(16).int64(e.Attr), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(26).fork()).ldelim();
                return null != e.UnlockStar && Object.hasOwnProperty.call(e, "UnlockStar") && t.uint32(32).int64(e.UnlockStar), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipSoul_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attr = e.int64();
                            break;
                        case 3:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.UnlockStar = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attr && e.hasOwnProperty("Attr") && !(i.isInteger(e.Attr) || e.Attr && i.isInteger(e.Attr.low) && i.isInteger(e.Attr.high))) return "Attr: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null != e.UnlockStar && e.hasOwnProperty("UnlockStar") && !(i.isInteger(e.UnlockStar) || e.UnlockStar && i.isInteger(e.UnlockStar.low) && i.isInteger(e.UnlockStar.high)) ? "UnlockStar: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipSoul_Config) return e;
                var t = new a.HolyEquipSoul_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Attr && (i.Long ? (t.Attr = i.Long.fromValue(e.Attr)).unsigned = !1 : "string" == typeof e.Attr ? t.Attr = parseInt(e.Attr, 10) : "number" == typeof e.Attr ? t.Attr = e.Attr : "object" == typeof e.Attr && (t.Attr = new i.LongBits(e.Attr.low >>> 0, e.Attr.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".HolyEquipSoul_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".HolyEquipSoul_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return null != e.UnlockStar && (i.Long ? (t.UnlockStar = i.Long.fromValue(e.UnlockStar)).unsigned = !1 : "string" == typeof e.UnlockStar ? t.UnlockStar = parseInt(e.UnlockStar, 10) : "number" == typeof e.UnlockStar ? t.UnlockStar = e.UnlockStar : "object" == typeof e.UnlockStar && (t.UnlockStar = new i.LongBits(e.UnlockStar.low >>> 0, e.UnlockStar.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Attr = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Attr = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.UnlockStar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UnlockStar = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Attr && e.hasOwnProperty("Attr") && ("number" == typeof e.Attr ? n.Attr = t.longs === String ? String(e.Attr) : e.Attr : n.Attr = t.longs === String ? i.Long.prototype.toString.call(e.Attr) : t.longs === Number ? new i.LongBits(e.Attr.low >>> 0, e.Attr.high >>> 0).toNumber() : e.Attr), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return null != e.UnlockStar && e.hasOwnProperty("UnlockStar") && ("number" == typeof e.UnlockStar ? n.UnlockStar = t.longs === String ? String(e.UnlockStar) : e.UnlockStar : n.UnlockStar = t.longs === String ? i.Long.prototype.toString.call(e.UnlockStar) : t.longs === Number ? new i.LongBits(e.UnlockStar.low >>> 0, e.UnlockStar.high >>> 0).toNumber() : e.UnlockStar), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipSoul_Config"
            }, e
        }(), a.AllianceLevel_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MemberCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ViceLeaderCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(16).int64(e.Xp), null != e.MemberCount && Object.hasOwnProperty.call(e, "MemberCount") && t.uint32(24).int64(e.MemberCount), null != e.ViceLeaderCount && Object.hasOwnProperty.call(e, "ViceLeaderCount") && t.uint32(32).int64(e.ViceLeaderCount), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Xp = e.int64();
                            break;
                        case 3:
                            r.MemberCount = e.int64();
                            break;
                        case 4:
                            r.ViceLeaderCount = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high)) ? "Xp: integer|Long expected" : null != e.MemberCount && e.hasOwnProperty("MemberCount") && !(i.isInteger(e.MemberCount) || e.MemberCount && i.isInteger(e.MemberCount.low) && i.isInteger(e.MemberCount.high)) ? "MemberCount: integer|Long expected" : null != e.ViceLeaderCount && e.hasOwnProperty("ViceLeaderCount") && !(i.isInteger(e.ViceLeaderCount) || e.ViceLeaderCount && i.isInteger(e.ViceLeaderCount.low) && i.isInteger(e.ViceLeaderCount.high)) ? "ViceLeaderCount: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceLevel_Config) return e;
                var t = new a.AllianceLevel_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), null != e.MemberCount && (i.Long ? (t.MemberCount = i.Long.fromValue(e.MemberCount)).unsigned = !1 : "string" == typeof e.MemberCount ? t.MemberCount = parseInt(e.MemberCount, 10) : "number" == typeof e.MemberCount ? t.MemberCount = e.MemberCount : "object" == typeof e.MemberCount && (t.MemberCount = new i.LongBits(e.MemberCount.low >>> 0, e.MemberCount.high >>> 0).toNumber())), null != e.ViceLeaderCount && (i.Long ? (t.ViceLeaderCount = i.Long.fromValue(e.ViceLeaderCount)).unsigned = !1 : "string" == typeof e.ViceLeaderCount ? t.ViceLeaderCount = parseInt(e.ViceLeaderCount, 10) : "number" == typeof e.ViceLeaderCount ? t.ViceLeaderCount = e.ViceLeaderCount : "object" == typeof e.ViceLeaderCount && (t.ViceLeaderCount = new i.LongBits(e.ViceLeaderCount.low >>> 0, e.ViceLeaderCount.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MemberCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MemberCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ViceLeaderCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ViceLeaderCount = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), null != e.MemberCount && e.hasOwnProperty("MemberCount") && ("number" == typeof e.MemberCount ? n.MemberCount = t.longs === String ? String(e.MemberCount) : e.MemberCount : n.MemberCount = t.longs === String ? i.Long.prototype.toString.call(e.MemberCount) : t.longs === Number ? new i.LongBits(e.MemberCount.low >>> 0, e.MemberCount.high >>> 0).toNumber() : e.MemberCount), null != e.ViceLeaderCount && e.hasOwnProperty("ViceLeaderCount") && ("number" == typeof e.ViceLeaderCount ? n.ViceLeaderCount = t.longs === String ? String(e.ViceLeaderCount) : e.ViceLeaderCount : n.ViceLeaderCount = t.longs === String ? i.Long.prototype.toString.call(e.ViceLeaderCount) : t.longs === Number ? new i.LongBits(e.ViceLeaderCount.low >>> 0, e.ViceLeaderCount.high >>> 0).toNumber() : e.ViceLeaderCount), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceLevel_Config"
            }, e
        }(), a.AllianceIcon_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RequireLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LogoID = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FlagID = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.RequireLevel && Object.hasOwnProperty.call(e, "RequireLevel") && t.uint32(16).int64(e.RequireLevel), null != e.LogoID && Object.hasOwnProperty.call(e, "LogoID") && t.uint32(24).int64(e.LogoID), null != e.FlagID && Object.hasOwnProperty.call(e, "FlagID") && t.uint32(32).int64(e.FlagID), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceIcon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.RequireLevel = e.int64();
                            break;
                        case 3:
                            r.LogoID = e.int64();
                            break;
                        case 4:
                            r.FlagID = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.RequireLevel && e.hasOwnProperty("RequireLevel") && !(i.isInteger(e.RequireLevel) || e.RequireLevel && i.isInteger(e.RequireLevel.low) && i.isInteger(e.RequireLevel.high)) ? "RequireLevel: integer|Long expected" : null != e.LogoID && e.hasOwnProperty("LogoID") && !(i.isInteger(e.LogoID) || e.LogoID && i.isInteger(e.LogoID.low) && i.isInteger(e.LogoID.high)) ? "LogoID: integer|Long expected" : null != e.FlagID && e.hasOwnProperty("FlagID") && !(i.isInteger(e.FlagID) || e.FlagID && i.isInteger(e.FlagID.low) && i.isInteger(e.FlagID.high)) ? "FlagID: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceIcon_Config) return e;
                var t = new a.AllianceIcon_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.RequireLevel && (i.Long ? (t.RequireLevel = i.Long.fromValue(e.RequireLevel)).unsigned = !1 : "string" == typeof e.RequireLevel ? t.RequireLevel = parseInt(e.RequireLevel, 10) : "number" == typeof e.RequireLevel ? t.RequireLevel = e.RequireLevel : "object" == typeof e.RequireLevel && (t.RequireLevel = new i.LongBits(e.RequireLevel.low >>> 0, e.RequireLevel.high >>> 0).toNumber())), null != e.LogoID && (i.Long ? (t.LogoID = i.Long.fromValue(e.LogoID)).unsigned = !1 : "string" == typeof e.LogoID ? t.LogoID = parseInt(e.LogoID, 10) : "number" == typeof e.LogoID ? t.LogoID = e.LogoID : "object" == typeof e.LogoID && (t.LogoID = new i.LongBits(e.LogoID.low >>> 0, e.LogoID.high >>> 0).toNumber())), null != e.FlagID && (i.Long ? (t.FlagID = i.Long.fromValue(e.FlagID)).unsigned = !1 : "string" == typeof e.FlagID ? t.FlagID = parseInt(e.FlagID, 10) : "number" == typeof e.FlagID ? t.FlagID = e.FlagID : "object" == typeof e.FlagID && (t.FlagID = new i.LongBits(e.FlagID.low >>> 0, e.FlagID.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.RequireLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RequireLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LogoID = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LogoID = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.FlagID = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.FlagID = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.RequireLevel && e.hasOwnProperty("RequireLevel") && ("number" == typeof e.RequireLevel ? n.RequireLevel = t.longs === String ? String(e.RequireLevel) : e.RequireLevel : n.RequireLevel = t.longs === String ? i.Long.prototype.toString.call(e.RequireLevel) : t.longs === Number ? new i.LongBits(e.RequireLevel.low >>> 0, e.RequireLevel.high >>> 0).toNumber() : e.RequireLevel), null != e.LogoID && e.hasOwnProperty("LogoID") && ("number" == typeof e.LogoID ? n.LogoID = t.longs === String ? String(e.LogoID) : e.LogoID : n.LogoID = t.longs === String ? i.Long.prototype.toString.call(e.LogoID) : t.longs === Number ? new i.LongBits(e.LogoID.low >>> 0, e.LogoID.high >>> 0).toNumber() : e.LogoID), null != e.FlagID && e.hasOwnProperty("FlagID") && ("number" == typeof e.FlagID ? n.FlagID = t.longs === String ? String(e.FlagID) : e.FlagID : n.FlagID = t.longs === String ? i.Long.prototype.toString.call(e.FlagID) : t.longs === Number ? new i.LongBits(e.FlagID.low >>> 0, e.FlagID.high >>> 0).toNumber() : e.FlagID), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceIcon_Config"
            }, e
        }(), a.StarHolyStatueLevel_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(24).int64(e.Xp), null != e.MaxCount && Object.hasOwnProperty.call(e, "MaxCount") && t.uint32(32).int64(e.MaxCount), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(40).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarHolyStatueLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Xp = e.int64();
                            break;
                        case 4:
                            r.MaxCount = e.int64();
                            break;
                        case 5:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high)) ? "Xp: integer|Long expected" : null != e.MaxCount && e.hasOwnProperty("MaxCount") && !(i.isInteger(e.MaxCount) || e.MaxCount && i.isInteger(e.MaxCount.low) && i.isInteger(e.MaxCount.high)) ? "MaxCount: integer|Long expected" : null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarHolyStatueLevel_Config) return e;
                var t = new a.StarHolyStatueLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".StarHolyStatueLevel_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".StarHolyStatueLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), null != e.MaxCount && (i.Long ? (t.MaxCount = i.Long.fromValue(e.MaxCount)).unsigned = !1 : "string" == typeof e.MaxCount ? t.MaxCount = parseInt(e.MaxCount, 10) : "number" == typeof e.MaxCount ? t.MaxCount = e.MaxCount : "object" == typeof e.MaxCount && (t.MaxCount = new i.LongBits(e.MaxCount.low >>> 0, e.MaxCount.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), null != e.MaxCount && e.hasOwnProperty("MaxCount") && ("number" == typeof e.MaxCount ? n.MaxCount = t.longs === String ? String(e.MaxCount) : e.MaxCount : n.MaxCount = t.longs === String ? i.Long.prototype.toString.call(e.MaxCount) : t.longs === Number ? new i.LongBits(e.MaxCount.low >>> 0, e.MaxCount.high >>> 0).toNumber() : e.MaxCount), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarHolyStatueLevel_Config"
            }, e
        }(), a.StarPowerType_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(16).int64(e.ItemId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarPowerType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.ItemId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarPowerType_Config) return e;
                var t = new a.StarPowerType_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarPowerType_Config"
            }, e
        }(), a.StarPowerLevel_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(24).int64(e.Count), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(32).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarPowerLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Count = e.int64();
                            break;
                        case 4:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarPowerLevel_Config) return e;
                var t = new a.StarPowerLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".StarPowerLevel_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".StarPowerLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarPowerLevel_Config"
            }, e
        }(), a.StarPiece_Config = function() {
            function e(e) {
                if (this.StarAttrs = [], this.Exclusive = [], this.Awakening = [], this.AddedAttrs = [], this.HeroMaterials = [], this.StarScore = [], this.ExclusiveScore = [], this.AddedAttrsScore = [], this.Condition = [], this.TotalCount = [], this.SpecialAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.QualityId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarAttrs = i.emptyArray, e.prototype.Exclusive = i.emptyArray, e.prototype.Awakening = i.emptyArray, e.prototype.AddedAttrs = i.emptyArray, e.prototype.HeroMaterials = i.emptyArray, e.prototype.ItemBaseId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarScore = i.emptyArray, e.prototype.ExclusiveScore = i.emptyArray, e.prototype.AwakenScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AddedAttrsScore = i.emptyArray, e.prototype.SuitId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Condition = i.emptyArray, e.prototype.TotalCount = i.emptyArray, e.prototype.SpecialAttrs = i.emptyArray, e.prototype.Tag = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.QualityId && Object.hasOwnProperty.call(e, "QualityId") && t.uint32(16).int64(e.QualityId), null != e.StarAttrs && e.StarAttrs.length)
                    for (var n = 0; n < e.StarAttrs.length; ++n) a.IntArray_Config.encode(e.StarAttrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.Exclusive && e.Exclusive.length)
                    for (n = 0; n < e.Exclusive.length; ++n) a.IntArray_Config.encode(e.Exclusive[n], t.uint32(34).fork()).ldelim();
                if (null != e.Awakening && e.Awakening.length)
                    for (n = 0; n < e.Awakening.length; ++n) a.IntArray_Config.encode(e.Awakening[n], t.uint32(42).fork()).ldelim();
                if (null != e.AddedAttrs && e.AddedAttrs.length)
                    for (n = 0; n < e.AddedAttrs.length; ++n) a.IntArray_Config.encode(e.AddedAttrs[n], t.uint32(50).fork()).ldelim();
                if (null != e.HeroMaterials && e.HeroMaterials.length)
                    for (n = 0; n < e.HeroMaterials.length; ++n) a.IntArray_Config.encode(e.HeroMaterials[n], t.uint32(58).fork()).ldelim();
                if (null != e.ItemBaseId && Object.hasOwnProperty.call(e, "ItemBaseId") && t.uint32(72).int64(e.ItemBaseId), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(96).int64(e.ItemId), null != e.StarScore && e.StarScore.length) {
                    for (t.uint32(122).fork(), n = 0; n < e.StarScore.length; ++n) t.int64(e.StarScore[n]);
                    t.ldelim()
                }
                if (null != e.ExclusiveScore && e.ExclusiveScore.length) {
                    for (t.uint32(130).fork(), n = 0; n < e.ExclusiveScore.length; ++n) t.int64(e.ExclusiveScore[n]);
                    t.ldelim()
                }
                if (null != e.AwakenScore && Object.hasOwnProperty.call(e, "AwakenScore") && t.uint32(136).int64(e.AwakenScore), null != e.AddedAttrsScore && e.AddedAttrsScore.length) {
                    for (t.uint32(146).fork(), n = 0; n < e.AddedAttrsScore.length; ++n) t.int64(e.AddedAttrsScore[n]);
                    t.ldelim()
                }
                if (null != e.SuitId && Object.hasOwnProperty.call(e, "SuitId") && t.uint32(152).int64(e.SuitId), null != e.Condition && e.Condition.length) {
                    for (t.uint32(170).fork(), n = 0; n < e.Condition.length; ++n) t.int64(e.Condition[n]);
                    t.ldelim()
                }
                if (null != e.TotalCount && e.TotalCount.length) {
                    for (t.uint32(178).fork(), n = 0; n < e.TotalCount.length; ++n) t.int64(e.TotalCount[n]);
                    t.ldelim()
                }
                if (null != e.SpecialAttrs && e.SpecialAttrs.length)
                    for (n = 0; n < e.SpecialAttrs.length; ++n) a.IntArray_Config.encode(e.SpecialAttrs[n], t.uint32(186).fork()).ldelim();
                return null != e.Tag && Object.hasOwnProperty.call(e, "Tag") && t.uint32(200).int64(e.Tag), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarPiece_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.QualityId = e.int64();
                            break;
                        case 3:
                            r.StarAttrs && r.StarAttrs.length || (r.StarAttrs = []), r.StarAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Exclusive && r.Exclusive.length || (r.Exclusive = []), r.Exclusive.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Awakening && r.Awakening.length || (r.Awakening = []), r.Awakening.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.AddedAttrs && r.AddedAttrs.length || (r.AddedAttrs = []), r.AddedAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.HeroMaterials && r.HeroMaterials.length || (r.HeroMaterials = []), r.HeroMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.ItemBaseId = e.int64();
                            break;
                        case 12:
                            r.ItemId = e.int64();
                            break;
                        case 15:
                            if (r.StarScore && r.StarScore.length || (r.StarScore = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.StarScore.push(e.int64());
                            else r.StarScore.push(e.int64());
                            break;
                        case 16:
                            if (r.ExclusiveScore && r.ExclusiveScore.length || (r.ExclusiveScore = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ExclusiveScore.push(e.int64());
                            else r.ExclusiveScore.push(e.int64());
                            break;
                        case 17:
                            r.AwakenScore = e.int64();
                            break;
                        case 18:
                            if (r.AddedAttrsScore && r.AddedAttrsScore.length || (r.AddedAttrsScore = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.AddedAttrsScore.push(e.int64());
                            else r.AddedAttrsScore.push(e.int64());
                            break;
                        case 19:
                            r.SuitId = e.int64();
                            break;
                        case 21:
                            if (r.Condition && r.Condition.length || (r.Condition = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Condition.push(e.int64());
                            else r.Condition.push(e.int64());
                            break;
                        case 22:
                            if (r.TotalCount && r.TotalCount.length || (r.TotalCount = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.TotalCount.push(e.int64());
                            else r.TotalCount.push(e.int64());
                            break;
                        case 23:
                            r.SpecialAttrs && r.SpecialAttrs.length || (r.SpecialAttrs = []), r.SpecialAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 25:
                            r.Tag = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.QualityId && e.hasOwnProperty("QualityId") && !(i.isInteger(e.QualityId) || e.QualityId && i.isInteger(e.QualityId.low) && i.isInteger(e.QualityId.high))) return "QualityId: integer|Long expected";
                if (null != e.StarAttrs && e.hasOwnProperty("StarAttrs")) {
                    if (!Array.isArray(e.StarAttrs)) return "StarAttrs: array expected";
                    for (var t = 0; t < e.StarAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.StarAttrs[t])) return "StarAttrs." + n
                }
                if (null != e.Exclusive && e.hasOwnProperty("Exclusive")) {
                    if (!Array.isArray(e.Exclusive)) return "Exclusive: array expected";
                    for (t = 0; t < e.Exclusive.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Exclusive[t])) return "Exclusive." + n
                }
                if (null != e.Awakening && e.hasOwnProperty("Awakening")) {
                    if (!Array.isArray(e.Awakening)) return "Awakening: array expected";
                    for (t = 0; t < e.Awakening.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Awakening[t])) return "Awakening." + n
                }
                if (null != e.AddedAttrs && e.hasOwnProperty("AddedAttrs")) {
                    if (!Array.isArray(e.AddedAttrs)) return "AddedAttrs: array expected";
                    for (t = 0; t < e.AddedAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AddedAttrs[t])) return "AddedAttrs." + n
                }
                if (null != e.HeroMaterials && e.hasOwnProperty("HeroMaterials")) {
                    if (!Array.isArray(e.HeroMaterials)) return "HeroMaterials: array expected";
                    for (t = 0; t < e.HeroMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.HeroMaterials[t])) return "HeroMaterials." + n
                }
                if (null != e.ItemBaseId && e.hasOwnProperty("ItemBaseId") && !(i.isInteger(e.ItemBaseId) || e.ItemBaseId && i.isInteger(e.ItemBaseId.low) && i.isInteger(e.ItemBaseId.high))) return "ItemBaseId: integer|Long expected";
                if (null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high))) return "ItemId: integer|Long expected";
                if (null != e.StarScore && e.hasOwnProperty("StarScore")) {
                    if (!Array.isArray(e.StarScore)) return "StarScore: array expected";
                    for (t = 0; t < e.StarScore.length; ++t)
                        if (!(i.isInteger(e.StarScore[t]) || e.StarScore[t] && i.isInteger(e.StarScore[t].low) && i.isInteger(e.StarScore[t].high))) return "StarScore: integer|Long[] expected"
                }
                if (null != e.ExclusiveScore && e.hasOwnProperty("ExclusiveScore")) {
                    if (!Array.isArray(e.ExclusiveScore)) return "ExclusiveScore: array expected";
                    for (t = 0; t < e.ExclusiveScore.length; ++t)
                        if (!(i.isInteger(e.ExclusiveScore[t]) || e.ExclusiveScore[t] && i.isInteger(e.ExclusiveScore[t].low) && i.isInteger(e.ExclusiveScore[t].high))) return "ExclusiveScore: integer|Long[] expected"
                }
                if (null != e.AwakenScore && e.hasOwnProperty("AwakenScore") && !(i.isInteger(e.AwakenScore) || e.AwakenScore && i.isInteger(e.AwakenScore.low) && i.isInteger(e.AwakenScore.high))) return "AwakenScore: integer|Long expected";
                if (null != e.AddedAttrsScore && e.hasOwnProperty("AddedAttrsScore")) {
                    if (!Array.isArray(e.AddedAttrsScore)) return "AddedAttrsScore: array expected";
                    for (t = 0; t < e.AddedAttrsScore.length; ++t)
                        if (!(i.isInteger(e.AddedAttrsScore[t]) || e.AddedAttrsScore[t] && i.isInteger(e.AddedAttrsScore[t].low) && i.isInteger(e.AddedAttrsScore[t].high))) return "AddedAttrsScore: integer|Long[] expected"
                }
                if (null != e.SuitId && e.hasOwnProperty("SuitId") && !(i.isInteger(e.SuitId) || e.SuitId && i.isInteger(e.SuitId.low) && i.isInteger(e.SuitId.high))) return "SuitId: integer|Long expected";
                if (null != e.Condition && e.hasOwnProperty("Condition")) {
                    if (!Array.isArray(e.Condition)) return "Condition: array expected";
                    for (t = 0; t < e.Condition.length; ++t)
                        if (!(i.isInteger(e.Condition[t]) || e.Condition[t] && i.isInteger(e.Condition[t].low) && i.isInteger(e.Condition[t].high))) return "Condition: integer|Long[] expected"
                }
                if (null != e.TotalCount && e.hasOwnProperty("TotalCount")) {
                    if (!Array.isArray(e.TotalCount)) return "TotalCount: array expected";
                    for (t = 0; t < e.TotalCount.length; ++t)
                        if (!(i.isInteger(e.TotalCount[t]) || e.TotalCount[t] && i.isInteger(e.TotalCount[t].low) && i.isInteger(e.TotalCount[t].high))) return "TotalCount: integer|Long[] expected"
                }
                if (null != e.SpecialAttrs && e.hasOwnProperty("SpecialAttrs")) {
                    if (!Array.isArray(e.SpecialAttrs)) return "SpecialAttrs: array expected";
                    for (t = 0; t < e.SpecialAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.SpecialAttrs[t])) return "SpecialAttrs." + n
                    }
                }
                return null != e.Tag && e.hasOwnProperty("Tag") && !(i.isInteger(e.Tag) || e.Tag && i.isInteger(e.Tag.low) && i.isInteger(e.Tag.high)) ? "Tag: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarPiece_Config) return e;
                var t = new a.StarPiece_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.QualityId && (i.Long ? (t.QualityId = i.Long.fromValue(e.QualityId)).unsigned = !1 : "string" == typeof e.QualityId ? t.QualityId = parseInt(e.QualityId, 10) : "number" == typeof e.QualityId ? t.QualityId = e.QualityId : "object" == typeof e.QualityId && (t.QualityId = new i.LongBits(e.QualityId.low >>> 0, e.QualityId.high >>> 0).toNumber())), e.StarAttrs) {
                    if (!Array.isArray(e.StarAttrs)) throw TypeError(".StarPiece_Config.StarAttrs: array expected");
                    t.StarAttrs = [];
                    for (var n = 0; n < e.StarAttrs.length; ++n) {
                        if ("object" != typeof e.StarAttrs[n]) throw TypeError(".StarPiece_Config.StarAttrs: object expected");
                        t.StarAttrs[n] = a.IntArray_Config.fromObject(e.StarAttrs[n])
                    }
                }
                if (e.Exclusive) {
                    if (!Array.isArray(e.Exclusive)) throw TypeError(".StarPiece_Config.Exclusive: array expected");
                    for (t.Exclusive = [], n = 0; n < e.Exclusive.length; ++n) {
                        if ("object" != typeof e.Exclusive[n]) throw TypeError(".StarPiece_Config.Exclusive: object expected");
                        t.Exclusive[n] = a.IntArray_Config.fromObject(e.Exclusive[n])
                    }
                }
                if (e.Awakening) {
                    if (!Array.isArray(e.Awakening)) throw TypeError(".StarPiece_Config.Awakening: array expected");
                    for (t.Awakening = [], n = 0; n < e.Awakening.length; ++n) {
                        if ("object" != typeof e.Awakening[n]) throw TypeError(".StarPiece_Config.Awakening: object expected");
                        t.Awakening[n] = a.IntArray_Config.fromObject(e.Awakening[n])
                    }
                }
                if (e.AddedAttrs) {
                    if (!Array.isArray(e.AddedAttrs)) throw TypeError(".StarPiece_Config.AddedAttrs: array expected");
                    for (t.AddedAttrs = [], n = 0; n < e.AddedAttrs.length; ++n) {
                        if ("object" != typeof e.AddedAttrs[n]) throw TypeError(".StarPiece_Config.AddedAttrs: object expected");
                        t.AddedAttrs[n] = a.IntArray_Config.fromObject(e.AddedAttrs[n])
                    }
                }
                if (e.HeroMaterials) {
                    if (!Array.isArray(e.HeroMaterials)) throw TypeError(".StarPiece_Config.HeroMaterials: array expected");
                    for (t.HeroMaterials = [], n = 0; n < e.HeroMaterials.length; ++n) {
                        if ("object" != typeof e.HeroMaterials[n]) throw TypeError(".StarPiece_Config.HeroMaterials: object expected");
                        t.HeroMaterials[n] = a.IntArray_Config.fromObject(e.HeroMaterials[n])
                    }
                }
                if (null != e.ItemBaseId && (i.Long ? (t.ItemBaseId = i.Long.fromValue(e.ItemBaseId)).unsigned = !1 : "string" == typeof e.ItemBaseId ? t.ItemBaseId = parseInt(e.ItemBaseId, 10) : "number" == typeof e.ItemBaseId ? t.ItemBaseId = e.ItemBaseId : "object" == typeof e.ItemBaseId && (t.ItemBaseId = new i.LongBits(e.ItemBaseId.low >>> 0, e.ItemBaseId.high >>> 0).toNumber())), null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), e.StarScore) {
                    if (!Array.isArray(e.StarScore)) throw TypeError(".StarPiece_Config.StarScore: array expected");
                    for (t.StarScore = [], n = 0; n < e.StarScore.length; ++n) i.Long ? (t.StarScore[n] = i.Long.fromValue(e.StarScore[n])).unsigned = !1 : "string" == typeof e.StarScore[n] ? t.StarScore[n] = parseInt(e.StarScore[n], 10) : "number" == typeof e.StarScore[n] ? t.StarScore[n] = e.StarScore[n] : "object" == typeof e.StarScore[n] && (t.StarScore[n] = new i.LongBits(e.StarScore[n].low >>> 0, e.StarScore[n].high >>> 0).toNumber())
                }
                if (e.ExclusiveScore) {
                    if (!Array.isArray(e.ExclusiveScore)) throw TypeError(".StarPiece_Config.ExclusiveScore: array expected");
                    for (t.ExclusiveScore = [], n = 0; n < e.ExclusiveScore.length; ++n) i.Long ? (t.ExclusiveScore[n] = i.Long.fromValue(e.ExclusiveScore[n])).unsigned = !1 : "string" == typeof e.ExclusiveScore[n] ? t.ExclusiveScore[n] = parseInt(e.ExclusiveScore[n], 10) : "number" == typeof e.ExclusiveScore[n] ? t.ExclusiveScore[n] = e.ExclusiveScore[n] : "object" == typeof e.ExclusiveScore[n] && (t.ExclusiveScore[n] = new i.LongBits(e.ExclusiveScore[n].low >>> 0, e.ExclusiveScore[n].high >>> 0).toNumber())
                }
                if (null != e.AwakenScore && (i.Long ? (t.AwakenScore = i.Long.fromValue(e.AwakenScore)).unsigned = !1 : "string" == typeof e.AwakenScore ? t.AwakenScore = parseInt(e.AwakenScore, 10) : "number" == typeof e.AwakenScore ? t.AwakenScore = e.AwakenScore : "object" == typeof e.AwakenScore && (t.AwakenScore = new i.LongBits(e.AwakenScore.low >>> 0, e.AwakenScore.high >>> 0).toNumber())), e.AddedAttrsScore) {
                    if (!Array.isArray(e.AddedAttrsScore)) throw TypeError(".StarPiece_Config.AddedAttrsScore: array expected");
                    for (t.AddedAttrsScore = [], n = 0; n < e.AddedAttrsScore.length; ++n) i.Long ? (t.AddedAttrsScore[n] = i.Long.fromValue(e.AddedAttrsScore[n])).unsigned = !1 : "string" == typeof e.AddedAttrsScore[n] ? t.AddedAttrsScore[n] = parseInt(e.AddedAttrsScore[n], 10) : "number" == typeof e.AddedAttrsScore[n] ? t.AddedAttrsScore[n] = e.AddedAttrsScore[n] : "object" == typeof e.AddedAttrsScore[n] && (t.AddedAttrsScore[n] = new i.LongBits(e.AddedAttrsScore[n].low >>> 0, e.AddedAttrsScore[n].high >>> 0).toNumber())
                }
                if (null != e.SuitId && (i.Long ? (t.SuitId = i.Long.fromValue(e.SuitId)).unsigned = !1 : "string" == typeof e.SuitId ? t.SuitId = parseInt(e.SuitId, 10) : "number" == typeof e.SuitId ? t.SuitId = e.SuitId : "object" == typeof e.SuitId && (t.SuitId = new i.LongBits(e.SuitId.low >>> 0, e.SuitId.high >>> 0).toNumber())), e.Condition) {
                    if (!Array.isArray(e.Condition)) throw TypeError(".StarPiece_Config.Condition: array expected");
                    for (t.Condition = [], n = 0; n < e.Condition.length; ++n) i.Long ? (t.Condition[n] = i.Long.fromValue(e.Condition[n])).unsigned = !1 : "string" == typeof e.Condition[n] ? t.Condition[n] = parseInt(e.Condition[n], 10) : "number" == typeof e.Condition[n] ? t.Condition[n] = e.Condition[n] : "object" == typeof e.Condition[n] && (t.Condition[n] = new i.LongBits(e.Condition[n].low >>> 0, e.Condition[n].high >>> 0).toNumber())
                }
                if (e.TotalCount) {
                    if (!Array.isArray(e.TotalCount)) throw TypeError(".StarPiece_Config.TotalCount: array expected");
                    for (t.TotalCount = [], n = 0; n < e.TotalCount.length; ++n) i.Long ? (t.TotalCount[n] = i.Long.fromValue(e.TotalCount[n])).unsigned = !1 : "string" == typeof e.TotalCount[n] ? t.TotalCount[n] = parseInt(e.TotalCount[n], 10) : "number" == typeof e.TotalCount[n] ? t.TotalCount[n] = e.TotalCount[n] : "object" == typeof e.TotalCount[n] && (t.TotalCount[n] = new i.LongBits(e.TotalCount[n].low >>> 0, e.TotalCount[n].high >>> 0).toNumber())
                }
                if (e.SpecialAttrs) {
                    if (!Array.isArray(e.SpecialAttrs)) throw TypeError(".StarPiece_Config.SpecialAttrs: array expected");
                    for (t.SpecialAttrs = [], n = 0; n < e.SpecialAttrs.length; ++n) {
                        if ("object" != typeof e.SpecialAttrs[n]) throw TypeError(".StarPiece_Config.SpecialAttrs: object expected");
                        t.SpecialAttrs[n] = a.IntArray_Config.fromObject(e.SpecialAttrs[n])
                    }
                }
                return null != e.Tag && (i.Long ? (t.Tag = i.Long.fromValue(e.Tag)).unsigned = !1 : "string" == typeof e.Tag ? t.Tag = parseInt(e.Tag, 10) : "number" == typeof e.Tag ? t.Tag = e.Tag : "object" == typeof e.Tag && (t.Tag = new i.LongBits(e.Tag.low >>> 0, e.Tag.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.StarAttrs = [], n.Exclusive = [], n.Awakening = [], n.AddedAttrs = [], n.HeroMaterials = [], n.StarScore = [], n.ExclusiveScore = [], n.AddedAttrsScore = [], n.Condition = [], n.TotalCount = [], n.SpecialAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.QualityId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.QualityId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemBaseId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemBaseId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AwakenScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AwakenScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SuitId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SuitId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Tag = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Tag = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.QualityId && e.hasOwnProperty("QualityId") && ("number" == typeof e.QualityId ? n.QualityId = t.longs === String ? String(e.QualityId) : e.QualityId : n.QualityId = t.longs === String ? i.Long.prototype.toString.call(e.QualityId) : t.longs === Number ? new i.LongBits(e.QualityId.low >>> 0, e.QualityId.high >>> 0).toNumber() : e.QualityId), e.StarAttrs && e.StarAttrs.length) {
                    n.StarAttrs = [];
                    for (var r = 0; r < e.StarAttrs.length; ++r) n.StarAttrs[r] = a.IntArray_Config.toObject(e.StarAttrs[r], t)
                }
                if (e.Exclusive && e.Exclusive.length)
                    for (n.Exclusive = [], r = 0; r < e.Exclusive.length; ++r) n.Exclusive[r] = a.IntArray_Config.toObject(e.Exclusive[r], t);
                if (e.Awakening && e.Awakening.length)
                    for (n.Awakening = [], r = 0; r < e.Awakening.length; ++r) n.Awakening[r] = a.IntArray_Config.toObject(e.Awakening[r], t);
                if (e.AddedAttrs && e.AddedAttrs.length)
                    for (n.AddedAttrs = [], r = 0; r < e.AddedAttrs.length; ++r) n.AddedAttrs[r] = a.IntArray_Config.toObject(e.AddedAttrs[r], t);
                if (e.HeroMaterials && e.HeroMaterials.length)
                    for (n.HeroMaterials = [], r = 0; r < e.HeroMaterials.length; ++r) n.HeroMaterials[r] = a.IntArray_Config.toObject(e.HeroMaterials[r], t);
                if (null != e.ItemBaseId && e.hasOwnProperty("ItemBaseId") && ("number" == typeof e.ItemBaseId ? n.ItemBaseId = t.longs === String ? String(e.ItemBaseId) : e.ItemBaseId : n.ItemBaseId = t.longs === String ? i.Long.prototype.toString.call(e.ItemBaseId) : t.longs === Number ? new i.LongBits(e.ItemBaseId.low >>> 0, e.ItemBaseId.high >>> 0).toNumber() : e.ItemBaseId), null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), e.StarScore && e.StarScore.length)
                    for (n.StarScore = [], r = 0; r < e.StarScore.length; ++r) "number" == typeof e.StarScore[r] ? n.StarScore[r] = t.longs === String ? String(e.StarScore[r]) : e.StarScore[r] : n.StarScore[r] = t.longs === String ? i.Long.prototype.toString.call(e.StarScore[r]) : t.longs === Number ? new i.LongBits(e.StarScore[r].low >>> 0, e.StarScore[r].high >>> 0).toNumber() : e.StarScore[r];
                if (e.ExclusiveScore && e.ExclusiveScore.length)
                    for (n.ExclusiveScore = [], r = 0; r < e.ExclusiveScore.length; ++r) "number" == typeof e.ExclusiveScore[r] ? n.ExclusiveScore[r] = t.longs === String ? String(e.ExclusiveScore[r]) : e.ExclusiveScore[r] : n.ExclusiveScore[r] = t.longs === String ? i.Long.prototype.toString.call(e.ExclusiveScore[r]) : t.longs === Number ? new i.LongBits(e.ExclusiveScore[r].low >>> 0, e.ExclusiveScore[r].high >>> 0).toNumber() : e.ExclusiveScore[r];
                if (null != e.AwakenScore && e.hasOwnProperty("AwakenScore") && ("number" == typeof e.AwakenScore ? n.AwakenScore = t.longs === String ? String(e.AwakenScore) : e.AwakenScore : n.AwakenScore = t.longs === String ? i.Long.prototype.toString.call(e.AwakenScore) : t.longs === Number ? new i.LongBits(e.AwakenScore.low >>> 0, e.AwakenScore.high >>> 0).toNumber() : e.AwakenScore), e.AddedAttrsScore && e.AddedAttrsScore.length)
                    for (n.AddedAttrsScore = [], r = 0; r < e.AddedAttrsScore.length; ++r) "number" == typeof e.AddedAttrsScore[r] ? n.AddedAttrsScore[r] = t.longs === String ? String(e.AddedAttrsScore[r]) : e.AddedAttrsScore[r] : n.AddedAttrsScore[r] = t.longs === String ? i.Long.prototype.toString.call(e.AddedAttrsScore[r]) : t.longs === Number ? new i.LongBits(e.AddedAttrsScore[r].low >>> 0, e.AddedAttrsScore[r].high >>> 0).toNumber() : e.AddedAttrsScore[r];
                if (null != e.SuitId && e.hasOwnProperty("SuitId") && ("number" == typeof e.SuitId ? n.SuitId = t.longs === String ? String(e.SuitId) : e.SuitId : n.SuitId = t.longs === String ? i.Long.prototype.toString.call(e.SuitId) : t.longs === Number ? new i.LongBits(e.SuitId.low >>> 0, e.SuitId.high >>> 0).toNumber() : e.SuitId), e.Condition && e.Condition.length)
                    for (n.Condition = [], r = 0; r < e.Condition.length; ++r) "number" == typeof e.Condition[r] ? n.Condition[r] = t.longs === String ? String(e.Condition[r]) : e.Condition[r] : n.Condition[r] = t.longs === String ? i.Long.prototype.toString.call(e.Condition[r]) : t.longs === Number ? new i.LongBits(e.Condition[r].low >>> 0, e.Condition[r].high >>> 0).toNumber() : e.Condition[r];
                if (e.TotalCount && e.TotalCount.length)
                    for (n.TotalCount = [], r = 0; r < e.TotalCount.length; ++r) "number" == typeof e.TotalCount[r] ? n.TotalCount[r] = t.longs === String ? String(e.TotalCount[r]) : e.TotalCount[r] : n.TotalCount[r] = t.longs === String ? i.Long.prototype.toString.call(e.TotalCount[r]) : t.longs === Number ? new i.LongBits(e.TotalCount[r].low >>> 0, e.TotalCount[r].high >>> 0).toNumber() : e.TotalCount[r];
                if (e.SpecialAttrs && e.SpecialAttrs.length)
                    for (n.SpecialAttrs = [], r = 0; r < e.SpecialAttrs.length; ++r) n.SpecialAttrs[r] = a.IntArray_Config.toObject(e.SpecialAttrs[r], t);
                return null != e.Tag && e.hasOwnProperty("Tag") && ("number" == typeof e.Tag ? n.Tag = t.longs === String ? String(e.Tag) : e.Tag : n.Tag = t.longs === String ? i.Long.prototype.toString.call(e.Tag) : t.longs === Number ? new i.LongBits(e.Tag.low >>> 0, e.Tag.high >>> 0).toNumber() : e.Tag), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarPiece_Config"
            }, e
        }(), a.AncientSacredMap_Config = function() {
            function e(e) {
                if (this.MonsterType = [], this.Rewards = [], this.NodeRewards = [], this.MapRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MonsterType = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.prototype.NodeRewards = i.emptyArray, e.prototype.MapRewards = i.emptyArray, e.prototype.Model = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MonsterType && e.MonsterType.length)
                    for (var n = 0; n < e.MonsterType.length; ++n) a.IntArray_Config.encode(e.MonsterType[n], t.uint32(18).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.NodeRewards && e.NodeRewards.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.NodeRewards.length; ++n) t.int64(e.NodeRewards[n]);
                    t.ldelim()
                }
                if (null != e.MapRewards && e.MapRewards.length)
                    for (n = 0; n < e.MapRewards.length; ++n) a.IntArray_Config.encode(e.MapRewards[n], t.uint32(42).fork()).ldelim();
                return null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(48).int64(e.Model), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AncientSacredMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.MonsterType && r.MonsterType.length || (r.MonsterType = []), r.MonsterType.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            if (r.NodeRewards && r.NodeRewards.length || (r.NodeRewards = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.NodeRewards.push(e.int64());
                            else r.NodeRewards.push(e.int64());
                            break;
                        case 5:
                            r.MapRewards && r.MapRewards.length || (r.MapRewards = []), r.MapRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Model = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MonsterType && e.hasOwnProperty("MonsterType")) {
                    if (!Array.isArray(e.MonsterType)) return "MonsterType: array expected";
                    for (var t = 0; t < e.MonsterType.length; ++t)
                        if (n = a.IntArray_Config.verify(e.MonsterType[t])) return "MonsterType." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.NodeRewards && e.hasOwnProperty("NodeRewards")) {
                    if (!Array.isArray(e.NodeRewards)) return "NodeRewards: array expected";
                    for (t = 0; t < e.NodeRewards.length; ++t)
                        if (!(i.isInteger(e.NodeRewards[t]) || e.NodeRewards[t] && i.isInteger(e.NodeRewards[t].low) && i.isInteger(e.NodeRewards[t].high))) return "NodeRewards: integer|Long[] expected"
                }
                if (null != e.MapRewards && e.hasOwnProperty("MapRewards")) {
                    if (!Array.isArray(e.MapRewards)) return "MapRewards: array expected";
                    for (t = 0; t < e.MapRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.MapRewards[t])) return "MapRewards." + n
                    }
                }
                return null != e.Model && e.hasOwnProperty("Model") && !(i.isInteger(e.Model) || e.Model && i.isInteger(e.Model.low) && i.isInteger(e.Model.high)) ? "Model: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AncientSacredMap_Config) return e;
                var t = new a.AncientSacredMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.MonsterType) {
                    if (!Array.isArray(e.MonsterType)) throw TypeError(".AncientSacredMap_Config.MonsterType: array expected");
                    t.MonsterType = [];
                    for (var n = 0; n < e.MonsterType.length; ++n) {
                        if ("object" != typeof e.MonsterType[n]) throw TypeError(".AncientSacredMap_Config.MonsterType: object expected");
                        t.MonsterType[n] = a.IntArray_Config.fromObject(e.MonsterType[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AncientSacredMap_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AncientSacredMap_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.NodeRewards) {
                    if (!Array.isArray(e.NodeRewards)) throw TypeError(".AncientSacredMap_Config.NodeRewards: array expected");
                    for (t.NodeRewards = [], n = 0; n < e.NodeRewards.length; ++n) i.Long ? (t.NodeRewards[n] = i.Long.fromValue(e.NodeRewards[n])).unsigned = !1 : "string" == typeof e.NodeRewards[n] ? t.NodeRewards[n] = parseInt(e.NodeRewards[n], 10) : "number" == typeof e.NodeRewards[n] ? t.NodeRewards[n] = e.NodeRewards[n] : "object" == typeof e.NodeRewards[n] && (t.NodeRewards[n] = new i.LongBits(e.NodeRewards[n].low >>> 0, e.NodeRewards[n].high >>> 0).toNumber())
                }
                if (e.MapRewards) {
                    if (!Array.isArray(e.MapRewards)) throw TypeError(".AncientSacredMap_Config.MapRewards: array expected");
                    for (t.MapRewards = [], n = 0; n < e.MapRewards.length; ++n) {
                        if ("object" != typeof e.MapRewards[n]) throw TypeError(".AncientSacredMap_Config.MapRewards: object expected");
                        t.MapRewards[n] = a.IntArray_Config.fromObject(e.MapRewards[n])
                    }
                }
                return null != e.Model && (i.Long ? (t.Model = i.Long.fromValue(e.Model)).unsigned = !1 : "string" == typeof e.Model ? t.Model = parseInt(e.Model, 10) : "number" == typeof e.Model ? t.Model = e.Model : "object" == typeof e.Model && (t.Model = new i.LongBits(e.Model.low >>> 0, e.Model.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.MonsterType = [], n.Rewards = [], n.NodeRewards = [], n.MapRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Model = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Model = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.MonsterType && e.MonsterType.length) {
                    n.MonsterType = [];
                    for (var r = 0; r < e.MonsterType.length; ++r) n.MonsterType[r] = a.IntArray_Config.toObject(e.MonsterType[r], t)
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (e.NodeRewards && e.NodeRewards.length)
                    for (n.NodeRewards = [], r = 0; r < e.NodeRewards.length; ++r) "number" == typeof e.NodeRewards[r] ? n.NodeRewards[r] = t.longs === String ? String(e.NodeRewards[r]) : e.NodeRewards[r] : n.NodeRewards[r] = t.longs === String ? i.Long.prototype.toString.call(e.NodeRewards[r]) : t.longs === Number ? new i.LongBits(e.NodeRewards[r].low >>> 0, e.NodeRewards[r].high >>> 0).toNumber() : e.NodeRewards[r];
                if (e.MapRewards && e.MapRewards.length)
                    for (n.MapRewards = [], r = 0; r < e.MapRewards.length; ++r) n.MapRewards[r] = a.IntArray_Config.toObject(e.MapRewards[r], t);
                return null != e.Model && e.hasOwnProperty("Model") && ("number" == typeof e.Model ? n.Model = t.longs === String ? String(e.Model) : e.Model : n.Model = t.longs === String ? i.Long.prototype.toString.call(e.Model) : t.longs === Number ? new i.LongBits(e.Model.low >>> 0, e.Model.high >>> 0).toNumber() : e.Model), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AncientSacredMap_Config"
            }, e
        }(), a.StarPieceQuality_Config = function() {
            function e(e) {
                if (this.Ratio = [], this.ItemCount = [], this.Materials = [], this.SuperAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Ratio = i.emptyArray, e.prototype.ItemCount = i.emptyArray, e.prototype.MaxStar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.SuperAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Ratio && e.Ratio.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Ratio.length; ++n) t.int64(e.Ratio[n]);
                    t.ldelim()
                }
                if (null != e.ItemCount && e.ItemCount.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.ItemCount.length; ++n) t.int64(e.ItemCount[n]);
                    t.ldelim()
                }
                if (null != e.MaxStar && Object.hasOwnProperty.call(e, "MaxStar") && t.uint32(48).int64(e.MaxStar), null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(58).fork()).ldelim();
                if (null != e.SuperAttrs && e.SuperAttrs.length)
                    for (n = 0; n < e.SuperAttrs.length; ++n) a.IntArray_Config.encode(e.SuperAttrs[n], t.uint32(66).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarPieceQuality_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.Ratio && r.Ratio.length || (r.Ratio = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Ratio.push(e.int64());
                            else r.Ratio.push(e.int64());
                            break;
                        case 4:
                            if (r.ItemCount && r.ItemCount.length || (r.ItemCount = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ItemCount.push(e.int64());
                            else r.ItemCount.push(e.int64());
                            break;
                        case 6:
                            r.MaxStar = e.int64();
                            break;
                        case 7:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.SuperAttrs && r.SuperAttrs.length || (r.SuperAttrs = []), r.SuperAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Ratio && e.hasOwnProperty("Ratio")) {
                    if (!Array.isArray(e.Ratio)) return "Ratio: array expected";
                    for (var t = 0; t < e.Ratio.length; ++t)
                        if (!(i.isInteger(e.Ratio[t]) || e.Ratio[t] && i.isInteger(e.Ratio[t].low) && i.isInteger(e.Ratio[t].high))) return "Ratio: integer|Long[] expected"
                }
                if (null != e.ItemCount && e.hasOwnProperty("ItemCount")) {
                    if (!Array.isArray(e.ItemCount)) return "ItemCount: array expected";
                    for (t = 0; t < e.ItemCount.length; ++t)
                        if (!(i.isInteger(e.ItemCount[t]) || e.ItemCount[t] && i.isInteger(e.ItemCount[t].low) && i.isInteger(e.ItemCount[t].high))) return "ItemCount: integer|Long[] expected"
                }
                if (null != e.MaxStar && e.hasOwnProperty("MaxStar") && !(i.isInteger(e.MaxStar) || e.MaxStar && i.isInteger(e.MaxStar.low) && i.isInteger(e.MaxStar.high))) return "MaxStar: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.SuperAttrs && e.hasOwnProperty("SuperAttrs")) {
                    if (!Array.isArray(e.SuperAttrs)) return "SuperAttrs: array expected";
                    for (t = 0; t < e.SuperAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.SuperAttrs[t])) return "SuperAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarPieceQuality_Config) return e;
                var t = new a.StarPieceQuality_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Ratio) {
                    if (!Array.isArray(e.Ratio)) throw TypeError(".StarPieceQuality_Config.Ratio: array expected");
                    t.Ratio = [];
                    for (var n = 0; n < e.Ratio.length; ++n) i.Long ? (t.Ratio[n] = i.Long.fromValue(e.Ratio[n])).unsigned = !1 : "string" == typeof e.Ratio[n] ? t.Ratio[n] = parseInt(e.Ratio[n], 10) : "number" == typeof e.Ratio[n] ? t.Ratio[n] = e.Ratio[n] : "object" == typeof e.Ratio[n] && (t.Ratio[n] = new i.LongBits(e.Ratio[n].low >>> 0, e.Ratio[n].high >>> 0).toNumber())
                }
                if (e.ItemCount) {
                    if (!Array.isArray(e.ItemCount)) throw TypeError(".StarPieceQuality_Config.ItemCount: array expected");
                    for (t.ItemCount = [], n = 0; n < e.ItemCount.length; ++n) i.Long ? (t.ItemCount[n] = i.Long.fromValue(e.ItemCount[n])).unsigned = !1 : "string" == typeof e.ItemCount[n] ? t.ItemCount[n] = parseInt(e.ItemCount[n], 10) : "number" == typeof e.ItemCount[n] ? t.ItemCount[n] = e.ItemCount[n] : "object" == typeof e.ItemCount[n] && (t.ItemCount[n] = new i.LongBits(e.ItemCount[n].low >>> 0, e.ItemCount[n].high >>> 0).toNumber())
                }
                if (null != e.MaxStar && (i.Long ? (t.MaxStar = i.Long.fromValue(e.MaxStar)).unsigned = !1 : "string" == typeof e.MaxStar ? t.MaxStar = parseInt(e.MaxStar, 10) : "number" == typeof e.MaxStar ? t.MaxStar = e.MaxStar : "object" == typeof e.MaxStar && (t.MaxStar = new i.LongBits(e.MaxStar.low >>> 0, e.MaxStar.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".StarPieceQuality_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".StarPieceQuality_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.SuperAttrs) {
                    if (!Array.isArray(e.SuperAttrs)) throw TypeError(".StarPieceQuality_Config.SuperAttrs: array expected");
                    for (t.SuperAttrs = [], n = 0; n < e.SuperAttrs.length; ++n) {
                        if ("object" != typeof e.SuperAttrs[n]) throw TypeError(".StarPieceQuality_Config.SuperAttrs: object expected");
                        t.SuperAttrs[n] = a.IntArray_Config.fromObject(e.SuperAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Ratio = [], n.ItemCount = [], n.Materials = [], n.SuperAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaxStar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxStar = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Ratio && e.Ratio.length) {
                    n.Ratio = [];
                    for (var r = 0; r < e.Ratio.length; ++r) "number" == typeof e.Ratio[r] ? n.Ratio[r] = t.longs === String ? String(e.Ratio[r]) : e.Ratio[r] : n.Ratio[r] = t.longs === String ? i.Long.prototype.toString.call(e.Ratio[r]) : t.longs === Number ? new i.LongBits(e.Ratio[r].low >>> 0, e.Ratio[r].high >>> 0).toNumber() : e.Ratio[r]
                }
                if (e.ItemCount && e.ItemCount.length)
                    for (n.ItemCount = [], r = 0; r < e.ItemCount.length; ++r) "number" == typeof e.ItemCount[r] ? n.ItemCount[r] = t.longs === String ? String(e.ItemCount[r]) : e.ItemCount[r] : n.ItemCount[r] = t.longs === String ? i.Long.prototype.toString.call(e.ItemCount[r]) : t.longs === Number ? new i.LongBits(e.ItemCount[r].low >>> 0, e.ItemCount[r].high >>> 0).toNumber() : e.ItemCount[r];
                if (null != e.MaxStar && e.hasOwnProperty("MaxStar") && ("number" == typeof e.MaxStar ? n.MaxStar = t.longs === String ? String(e.MaxStar) : e.MaxStar : n.MaxStar = t.longs === String ? i.Long.prototype.toString.call(e.MaxStar) : t.longs === Number ? new i.LongBits(e.MaxStar.low >>> 0, e.MaxStar.high >>> 0).toNumber() : e.MaxStar), e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                if (e.SuperAttrs && e.SuperAttrs.length)
                    for (n.SuperAttrs = [], r = 0; r < e.SuperAttrs.length; ++r) n.SuperAttrs[r] = a.IntArray_Config.toObject(e.SuperAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarPieceQuality_Config"
            }, e
        }(), a.StarPieceLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarPieceLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarPieceLevel_Config) return e;
                var t = new a.StarPieceLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".StarPieceLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".StarPieceLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarPieceLevel_Config"
            }, e
        }(), a.HeroAttribute_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Desc = "", e.prototype.Name = "", e.prototype.Icon = "", e.prototype.Format = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.InitialValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ColorAttrIcon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Desc && Object.hasOwnProperty.call(e, "Desc") && t.uint32(18).string(e.Desc), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(26).string(e.Name), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(34).string(e.Icon), null != e.Format && Object.hasOwnProperty.call(e, "Format") && t.uint32(40).int64(e.Format), null != e.InitialValue && Object.hasOwnProperty.call(e, "InitialValue") && t.uint32(48).int64(e.InitialValue), null != e.ColorAttrIcon && Object.hasOwnProperty.call(e, "ColorAttrIcon") && t.uint32(58).string(e.ColorAttrIcon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroAttribute_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Desc = e.string();
                            break;
                        case 3:
                            r.Name = e.string();
                            break;
                        case 4:
                            r.Icon = e.string();
                            break;
                        case 5:
                            r.Format = e.int64();
                            break;
                        case 6:
                            r.InitialValue = e.int64();
                            break;
                        case 7:
                            r.ColorAttrIcon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Desc && e.hasOwnProperty("Desc") && !i.isString(e.Desc) ? "Desc: string expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null != e.Format && e.hasOwnProperty("Format") && !(i.isInteger(e.Format) || e.Format && i.isInteger(e.Format.low) && i.isInteger(e.Format.high)) ? "Format: integer|Long expected" : null != e.InitialValue && e.hasOwnProperty("InitialValue") && !(i.isInteger(e.InitialValue) || e.InitialValue && i.isInteger(e.InitialValue.low) && i.isInteger(e.InitialValue.high)) ? "InitialValue: integer|Long expected" : null != e.ColorAttrIcon && e.hasOwnProperty("ColorAttrIcon") && !i.isString(e.ColorAttrIcon) ? "ColorAttrIcon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroAttribute_Config) return e;
                var t = new a.HeroAttribute_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Desc && (t.Desc = String(e.Desc)), null != e.Name && (t.Name = String(e.Name)), null != e.Icon && (t.Icon = String(e.Icon)), null != e.Format && (i.Long ? (t.Format = i.Long.fromValue(e.Format)).unsigned = !1 : "string" == typeof e.Format ? t.Format = parseInt(e.Format, 10) : "number" == typeof e.Format ? t.Format = e.Format : "object" == typeof e.Format && (t.Format = new i.LongBits(e.Format.low >>> 0, e.Format.high >>> 0).toNumber())), null != e.InitialValue && (i.Long ? (t.InitialValue = i.Long.fromValue(e.InitialValue)).unsigned = !1 : "string" == typeof e.InitialValue ? t.InitialValue = parseInt(e.InitialValue, 10) : "number" == typeof e.InitialValue ? t.InitialValue = e.InitialValue : "object" == typeof e.InitialValue && (t.InitialValue = new i.LongBits(e.InitialValue.low >>> 0, e.InitialValue.high >>> 0).toNumber())), null != e.ColorAttrIcon && (t.ColorAttrIcon = String(e.ColorAttrIcon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Desc = "", n.Name = "", n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.Format = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Format = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.InitialValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.InitialValue = t.longs === String ? "0" : 0, n.ColorAttrIcon = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Desc && e.hasOwnProperty("Desc") && (n.Desc = e.Desc), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), null != e.Format && e.hasOwnProperty("Format") && ("number" == typeof e.Format ? n.Format = t.longs === String ? String(e.Format) : e.Format : n.Format = t.longs === String ? i.Long.prototype.toString.call(e.Format) : t.longs === Number ? new i.LongBits(e.Format.low >>> 0, e.Format.high >>> 0).toNumber() : e.Format), null != e.InitialValue && e.hasOwnProperty("InitialValue") && ("number" == typeof e.InitialValue ? n.InitialValue = t.longs === String ? String(e.InitialValue) : e.InitialValue : n.InitialValue = t.longs === String ? i.Long.prototype.toString.call(e.InitialValue) : t.longs === Number ? new i.LongBits(e.InitialValue.low >>> 0, e.InitialValue.high >>> 0).toNumber() : e.InitialValue), null != e.ColorAttrIcon && e.hasOwnProperty("ColorAttrIcon") && (n.ColorAttrIcon = e.ColorAttrIcon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroAttribute_Config"
            }, e
        }(), a.AllianceTalentLevel_Config = function() {
            function e(e) {
                if (this.BaseNodeAttr = [], this.ElementNodeAttr = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BaseNodeAttr = i.emptyArray, e.prototype.ElementNodeAttr = i.emptyArray, e.prototype.BaseNodeCostMedal = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ElementNodeCostCoin = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ElementNodeCostMedal = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BaseNodeCostCoin = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BaseNodeScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ElementNodeScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.BaseNodeAttr && e.BaseNodeAttr.length)
                    for (var n = 0; n < e.BaseNodeAttr.length; ++n) a.IntArray_Config.encode(e.BaseNodeAttr[n], t.uint32(26).fork()).ldelim();
                if (null != e.ElementNodeAttr && e.ElementNodeAttr.length)
                    for (n = 0; n < e.ElementNodeAttr.length; ++n) a.IntArray_Config.encode(e.ElementNodeAttr[n], t.uint32(34).fork()).ldelim();
                return null != e.BaseNodeCostMedal && Object.hasOwnProperty.call(e, "BaseNodeCostMedal") && t.uint32(56).int64(e.BaseNodeCostMedal), null != e.ElementNodeCostCoin && Object.hasOwnProperty.call(e, "ElementNodeCostCoin") && t.uint32(64).int64(e.ElementNodeCostCoin), null != e.ElementNodeCostMedal && Object.hasOwnProperty.call(e, "ElementNodeCostMedal") && t.uint32(72).int64(e.ElementNodeCostMedal), null != e.BaseNodeCostCoin && Object.hasOwnProperty.call(e, "BaseNodeCostCoin") && t.uint32(80).int64(e.BaseNodeCostCoin), null != e.BaseNodeScore && Object.hasOwnProperty.call(e, "BaseNodeScore") && t.uint32(96).int64(e.BaseNodeScore), null != e.ElementNodeScore && Object.hasOwnProperty.call(e, "ElementNodeScore") && t.uint32(104).int64(e.ElementNodeScore), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceTalentLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.BaseNodeAttr && r.BaseNodeAttr.length || (r.BaseNodeAttr = []), r.BaseNodeAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ElementNodeAttr && r.ElementNodeAttr.length || (r.ElementNodeAttr = []), r.ElementNodeAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.BaseNodeCostMedal = e.int64();
                            break;
                        case 8:
                            r.ElementNodeCostCoin = e.int64();
                            break;
                        case 9:
                            r.ElementNodeCostMedal = e.int64();
                            break;
                        case 10:
                            r.BaseNodeCostCoin = e.int64();
                            break;
                        case 12:
                            r.BaseNodeScore = e.int64();
                            break;
                        case 13:
                            r.ElementNodeScore = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.BaseNodeAttr && e.hasOwnProperty("BaseNodeAttr")) {
                    if (!Array.isArray(e.BaseNodeAttr)) return "BaseNodeAttr: array expected";
                    for (var t = 0; t < e.BaseNodeAttr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.BaseNodeAttr[t])) return "BaseNodeAttr." + n
                }
                if (null != e.ElementNodeAttr && e.hasOwnProperty("ElementNodeAttr")) {
                    if (!Array.isArray(e.ElementNodeAttr)) return "ElementNodeAttr: array expected";
                    for (t = 0; t < e.ElementNodeAttr.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ElementNodeAttr[t])) return "ElementNodeAttr." + n
                    }
                }
                return null != e.BaseNodeCostMedal && e.hasOwnProperty("BaseNodeCostMedal") && !(i.isInteger(e.BaseNodeCostMedal) || e.BaseNodeCostMedal && i.isInteger(e.BaseNodeCostMedal.low) && i.isInteger(e.BaseNodeCostMedal.high)) ? "BaseNodeCostMedal: integer|Long expected" : null != e.ElementNodeCostCoin && e.hasOwnProperty("ElementNodeCostCoin") && !(i.isInteger(e.ElementNodeCostCoin) || e.ElementNodeCostCoin && i.isInteger(e.ElementNodeCostCoin.low) && i.isInteger(e.ElementNodeCostCoin.high)) ? "ElementNodeCostCoin: integer|Long expected" : null != e.ElementNodeCostMedal && e.hasOwnProperty("ElementNodeCostMedal") && !(i.isInteger(e.ElementNodeCostMedal) || e.ElementNodeCostMedal && i.isInteger(e.ElementNodeCostMedal.low) && i.isInteger(e.ElementNodeCostMedal.high)) ? "ElementNodeCostMedal: integer|Long expected" : null != e.BaseNodeCostCoin && e.hasOwnProperty("BaseNodeCostCoin") && !(i.isInteger(e.BaseNodeCostCoin) || e.BaseNodeCostCoin && i.isInteger(e.BaseNodeCostCoin.low) && i.isInteger(e.BaseNodeCostCoin.high)) ? "BaseNodeCostCoin: integer|Long expected" : null != e.BaseNodeScore && e.hasOwnProperty("BaseNodeScore") && !(i.isInteger(e.BaseNodeScore) || e.BaseNodeScore && i.isInteger(e.BaseNodeScore.low) && i.isInteger(e.BaseNodeScore.high)) ? "BaseNodeScore: integer|Long expected" : null != e.ElementNodeScore && e.hasOwnProperty("ElementNodeScore") && !(i.isInteger(e.ElementNodeScore) || e.ElementNodeScore && i.isInteger(e.ElementNodeScore.low) && i.isInteger(e.ElementNodeScore.high)) ? "ElementNodeScore: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceTalentLevel_Config) return e;
                var t = new a.AllianceTalentLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.BaseNodeAttr) {
                    if (!Array.isArray(e.BaseNodeAttr)) throw TypeError(".AllianceTalentLevel_Config.BaseNodeAttr: array expected");
                    t.BaseNodeAttr = [];
                    for (var n = 0; n < e.BaseNodeAttr.length; ++n) {
                        if ("object" != typeof e.BaseNodeAttr[n]) throw TypeError(".AllianceTalentLevel_Config.BaseNodeAttr: object expected");
                        t.BaseNodeAttr[n] = a.IntArray_Config.fromObject(e.BaseNodeAttr[n])
                    }
                }
                if (e.ElementNodeAttr) {
                    if (!Array.isArray(e.ElementNodeAttr)) throw TypeError(".AllianceTalentLevel_Config.ElementNodeAttr: array expected");
                    for (t.ElementNodeAttr = [], n = 0; n < e.ElementNodeAttr.length; ++n) {
                        if ("object" != typeof e.ElementNodeAttr[n]) throw TypeError(".AllianceTalentLevel_Config.ElementNodeAttr: object expected");
                        t.ElementNodeAttr[n] = a.IntArray_Config.fromObject(e.ElementNodeAttr[n])
                    }
                }
                return null != e.BaseNodeCostMedal && (i.Long ? (t.BaseNodeCostMedal = i.Long.fromValue(e.BaseNodeCostMedal)).unsigned = !1 : "string" == typeof e.BaseNodeCostMedal ? t.BaseNodeCostMedal = parseInt(e.BaseNodeCostMedal, 10) : "number" == typeof e.BaseNodeCostMedal ? t.BaseNodeCostMedal = e.BaseNodeCostMedal : "object" == typeof e.BaseNodeCostMedal && (t.BaseNodeCostMedal = new i.LongBits(e.BaseNodeCostMedal.low >>> 0, e.BaseNodeCostMedal.high >>> 0).toNumber())), null != e.ElementNodeCostCoin && (i.Long ? (t.ElementNodeCostCoin = i.Long.fromValue(e.ElementNodeCostCoin)).unsigned = !1 : "string" == typeof e.ElementNodeCostCoin ? t.ElementNodeCostCoin = parseInt(e.ElementNodeCostCoin, 10) : "number" == typeof e.ElementNodeCostCoin ? t.ElementNodeCostCoin = e.ElementNodeCostCoin : "object" == typeof e.ElementNodeCostCoin && (t.ElementNodeCostCoin = new i.LongBits(e.ElementNodeCostCoin.low >>> 0, e.ElementNodeCostCoin.high >>> 0).toNumber())), null != e.ElementNodeCostMedal && (i.Long ? (t.ElementNodeCostMedal = i.Long.fromValue(e.ElementNodeCostMedal)).unsigned = !1 : "string" == typeof e.ElementNodeCostMedal ? t.ElementNodeCostMedal = parseInt(e.ElementNodeCostMedal, 10) : "number" == typeof e.ElementNodeCostMedal ? t.ElementNodeCostMedal = e.ElementNodeCostMedal : "object" == typeof e.ElementNodeCostMedal && (t.ElementNodeCostMedal = new i.LongBits(e.ElementNodeCostMedal.low >>> 0, e.ElementNodeCostMedal.high >>> 0).toNumber())), null != e.BaseNodeCostCoin && (i.Long ? (t.BaseNodeCostCoin = i.Long.fromValue(e.BaseNodeCostCoin)).unsigned = !1 : "string" == typeof e.BaseNodeCostCoin ? t.BaseNodeCostCoin = parseInt(e.BaseNodeCostCoin, 10) : "number" == typeof e.BaseNodeCostCoin ? t.BaseNodeCostCoin = e.BaseNodeCostCoin : "object" == typeof e.BaseNodeCostCoin && (t.BaseNodeCostCoin = new i.LongBits(e.BaseNodeCostCoin.low >>> 0, e.BaseNodeCostCoin.high >>> 0).toNumber())), null != e.BaseNodeScore && (i.Long ? (t.BaseNodeScore = i.Long.fromValue(e.BaseNodeScore)).unsigned = !1 : "string" == typeof e.BaseNodeScore ? t.BaseNodeScore = parseInt(e.BaseNodeScore, 10) : "number" == typeof e.BaseNodeScore ? t.BaseNodeScore = e.BaseNodeScore : "object" == typeof e.BaseNodeScore && (t.BaseNodeScore = new i.LongBits(e.BaseNodeScore.low >>> 0, e.BaseNodeScore.high >>> 0).toNumber())), null != e.ElementNodeScore && (i.Long ? (t.ElementNodeScore = i.Long.fromValue(e.ElementNodeScore)).unsigned = !1 : "string" == typeof e.ElementNodeScore ? t.ElementNodeScore = parseInt(e.ElementNodeScore, 10) : "number" == typeof e.ElementNodeScore ? t.ElementNodeScore = e.ElementNodeScore : "object" == typeof e.ElementNodeScore && (t.ElementNodeScore = new i.LongBits(e.ElementNodeScore.low >>> 0, e.ElementNodeScore.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.BaseNodeAttr = [], n.ElementNodeAttr = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.BaseNodeCostMedal = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BaseNodeCostMedal = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ElementNodeCostCoin = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ElementNodeCostCoin = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ElementNodeCostMedal = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ElementNodeCostMedal = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.BaseNodeCostCoin = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BaseNodeCostCoin = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.BaseNodeScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BaseNodeScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ElementNodeScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ElementNodeScore = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.BaseNodeAttr && e.BaseNodeAttr.length) {
                    n.BaseNodeAttr = [];
                    for (var r = 0; r < e.BaseNodeAttr.length; ++r) n.BaseNodeAttr[r] = a.IntArray_Config.toObject(e.BaseNodeAttr[r], t)
                }
                if (e.ElementNodeAttr && e.ElementNodeAttr.length)
                    for (n.ElementNodeAttr = [], r = 0; r < e.ElementNodeAttr.length; ++r) n.ElementNodeAttr[r] = a.IntArray_Config.toObject(e.ElementNodeAttr[r], t);
                return null != e.BaseNodeCostMedal && e.hasOwnProperty("BaseNodeCostMedal") && ("number" == typeof e.BaseNodeCostMedal ? n.BaseNodeCostMedal = t.longs === String ? String(e.BaseNodeCostMedal) : e.BaseNodeCostMedal : n.BaseNodeCostMedal = t.longs === String ? i.Long.prototype.toString.call(e.BaseNodeCostMedal) : t.longs === Number ? new i.LongBits(e.BaseNodeCostMedal.low >>> 0, e.BaseNodeCostMedal.high >>> 0).toNumber() : e.BaseNodeCostMedal), null != e.ElementNodeCostCoin && e.hasOwnProperty("ElementNodeCostCoin") && ("number" == typeof e.ElementNodeCostCoin ? n.ElementNodeCostCoin = t.longs === String ? String(e.ElementNodeCostCoin) : e.ElementNodeCostCoin : n.ElementNodeCostCoin = t.longs === String ? i.Long.prototype.toString.call(e.ElementNodeCostCoin) : t.longs === Number ? new i.LongBits(e.ElementNodeCostCoin.low >>> 0, e.ElementNodeCostCoin.high >>> 0).toNumber() : e.ElementNodeCostCoin), null != e.ElementNodeCostMedal && e.hasOwnProperty("ElementNodeCostMedal") && ("number" == typeof e.ElementNodeCostMedal ? n.ElementNodeCostMedal = t.longs === String ? String(e.ElementNodeCostMedal) : e.ElementNodeCostMedal : n.ElementNodeCostMedal = t.longs === String ? i.Long.prototype.toString.call(e.ElementNodeCostMedal) : t.longs === Number ? new i.LongBits(e.ElementNodeCostMedal.low >>> 0, e.ElementNodeCostMedal.high >>> 0).toNumber() : e.ElementNodeCostMedal), null != e.BaseNodeCostCoin && e.hasOwnProperty("BaseNodeCostCoin") && ("number" == typeof e.BaseNodeCostCoin ? n.BaseNodeCostCoin = t.longs === String ? String(e.BaseNodeCostCoin) : e.BaseNodeCostCoin : n.BaseNodeCostCoin = t.longs === String ? i.Long.prototype.toString.call(e.BaseNodeCostCoin) : t.longs === Number ? new i.LongBits(e.BaseNodeCostCoin.low >>> 0, e.BaseNodeCostCoin.high >>> 0).toNumber() : e.BaseNodeCostCoin), null != e.BaseNodeScore && e.hasOwnProperty("BaseNodeScore") && ("number" == typeof e.BaseNodeScore ? n.BaseNodeScore = t.longs === String ? String(e.BaseNodeScore) : e.BaseNodeScore : n.BaseNodeScore = t.longs === String ? i.Long.prototype.toString.call(e.BaseNodeScore) : t.longs === Number ? new i.LongBits(e.BaseNodeScore.low >>> 0, e.BaseNodeScore.high >>> 0).toNumber() : e.BaseNodeScore), null != e.ElementNodeScore && e.hasOwnProperty("ElementNodeScore") && ("number" == typeof e.ElementNodeScore ? n.ElementNodeScore = t.longs === String ? String(e.ElementNodeScore) : e.ElementNodeScore : n.ElementNodeScore = t.longs === String ? i.Long.prototype.toString.call(e.ElementNodeScore) : t.longs === Number ? new i.LongBits(e.ElementNodeScore.low >>> 0, e.ElementNodeScore.high >>> 0).toNumber() : e.ElementNodeScore), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceTalentLevel_Config"
            }, e
        }(), a.ItemRewards_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemRewards_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemRewards_Config) return e;
                var t = new a.ItemRewards_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".ItemRewards_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".ItemRewards_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemRewards_Config"
            }, e
        }(), a.AcscMonster_Config = function() {
            function e(e) {
                if (this.MapIds = [], this.AcscTasks = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIds = i.emptyArray, e.prototype.AcscTasks = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MapIds && e.MapIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.MapIds.length; ++n) t.int64(e.MapIds[n]);
                    t.ldelim()
                }
                if (null != e.AcscTasks && e.AcscTasks.length) {
                    for (t.uint32(26).fork(), n = 0; n < e.AcscTasks.length; ++n) t.int64(e.AcscTasks[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AcscMonster_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.MapIds && r.MapIds.length || (r.MapIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.MapIds.push(e.int64());
                            else r.MapIds.push(e.int64());
                            break;
                        case 3:
                            if (r.AcscTasks && r.AcscTasks.length || (r.AcscTasks = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.AcscTasks.push(e.int64());
                            else r.AcscTasks.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MapIds && e.hasOwnProperty("MapIds")) {
                    if (!Array.isArray(e.MapIds)) return "MapIds: array expected";
                    for (var t = 0; t < e.MapIds.length; ++t)
                        if (!(i.isInteger(e.MapIds[t]) || e.MapIds[t] && i.isInteger(e.MapIds[t].low) && i.isInteger(e.MapIds[t].high))) return "MapIds: integer|Long[] expected"
                }
                if (null != e.AcscTasks && e.hasOwnProperty("AcscTasks")) {
                    if (!Array.isArray(e.AcscTasks)) return "AcscTasks: array expected";
                    for (t = 0; t < e.AcscTasks.length; ++t)
                        if (!(i.isInteger(e.AcscTasks[t]) || e.AcscTasks[t] && i.isInteger(e.AcscTasks[t].low) && i.isInteger(e.AcscTasks[t].high))) return "AcscTasks: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AcscMonster_Config) return e;
                var t = new a.AcscMonster_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.MapIds) {
                    if (!Array.isArray(e.MapIds)) throw TypeError(".AcscMonster_Config.MapIds: array expected");
                    t.MapIds = [];
                    for (var n = 0; n < e.MapIds.length; ++n) i.Long ? (t.MapIds[n] = i.Long.fromValue(e.MapIds[n])).unsigned = !1 : "string" == typeof e.MapIds[n] ? t.MapIds[n] = parseInt(e.MapIds[n], 10) : "number" == typeof e.MapIds[n] ? t.MapIds[n] = e.MapIds[n] : "object" == typeof e.MapIds[n] && (t.MapIds[n] = new i.LongBits(e.MapIds[n].low >>> 0, e.MapIds[n].high >>> 0).toNumber())
                }
                if (e.AcscTasks) {
                    if (!Array.isArray(e.AcscTasks)) throw TypeError(".AcscMonster_Config.AcscTasks: array expected");
                    for (t.AcscTasks = [], n = 0; n < e.AcscTasks.length; ++n) i.Long ? (t.AcscTasks[n] = i.Long.fromValue(e.AcscTasks[n])).unsigned = !1 : "string" == typeof e.AcscTasks[n] ? t.AcscTasks[n] = parseInt(e.AcscTasks[n], 10) : "number" == typeof e.AcscTasks[n] ? t.AcscTasks[n] = e.AcscTasks[n] : "object" == typeof e.AcscTasks[n] && (t.AcscTasks[n] = new i.LongBits(e.AcscTasks[n].low >>> 0, e.AcscTasks[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.MapIds = [], n.AcscTasks = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.MapIds && e.MapIds.length) {
                    n.MapIds = [];
                    for (var r = 0; r < e.MapIds.length; ++r) "number" == typeof e.MapIds[r] ? n.MapIds[r] = t.longs === String ? String(e.MapIds[r]) : e.MapIds[r] : n.MapIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.MapIds[r]) : t.longs === Number ? new i.LongBits(e.MapIds[r].low >>> 0, e.MapIds[r].high >>> 0).toNumber() : e.MapIds[r]
                }
                if (e.AcscTasks && e.AcscTasks.length)
                    for (n.AcscTasks = [], r = 0; r < e.AcscTasks.length; ++r) "number" == typeof e.AcscTasks[r] ? n.AcscTasks[r] = t.longs === String ? String(e.AcscTasks[r]) : e.AcscTasks[r] : n.AcscTasks[r] = t.longs === String ? i.Long.prototype.toString.call(e.AcscTasks[r]) : t.longs === Number ? new i.LongBits(e.AcscTasks[r].low >>> 0, e.AcscTasks[r].high >>> 0).toNumber() : e.AcscTasks[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AcscMonster_Config"
            }, e
        }(), a.AcscCondition_Config = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Param && e.Param.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Param.length; ++n) t.int64(e.Param[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AcscCondition_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            if (r.Param && r.Param.length || (r.Param = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Param.push(e.int64());
                            else r.Param.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t)
                        if (!(i.isInteger(e.Param[t]) || e.Param[t] && i.isInteger(e.Param[t].low) && i.isInteger(e.Param[t].high))) return "Param: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AcscCondition_Config) return e;
                var t = new a.AcscCondition_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".AcscCondition_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) i.Long ? (t.Param[n] = i.Long.fromValue(e.Param[n])).unsigned = !1 : "string" == typeof e.Param[n] ? t.Param[n] = parseInt(e.Param[n], 10) : "number" == typeof e.Param[n] ? t.Param[n] = e.Param[n] : "object" == typeof e.Param[n] && (t.Param[n] = new i.LongBits(e.Param[n].low >>> 0, e.Param[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) "number" == typeof e.Param[r] ? n.Param[r] = t.longs === String ? String(e.Param[r]) : e.Param[r] : n.Param[r] = t.longs === String ? i.Long.prototype.toString.call(e.Param[r]) : t.longs === Number ? new i.LongBits(e.Param[r].low >>> 0, e.Param[r].high >>> 0).toNumber() : e.Param[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AcscCondition_Config"
            }, e
        }(), a.AcscMonsterType_Config = function() {
            function e(e) {
                if (this.AcscMonsters = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AcscMonsters = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.AcscMonsters && e.AcscMonsters.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.AcscMonsters.length; ++n) t.int64(e.AcscMonsters[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AcscMonsterType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.AcscMonsters && r.AcscMonsters.length || (r.AcscMonsters = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AcscMonsters.push(e.int64());
                            else r.AcscMonsters.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.AcscMonsters && e.hasOwnProperty("AcscMonsters")) {
                    if (!Array.isArray(e.AcscMonsters)) return "AcscMonsters: array expected";
                    for (var t = 0; t < e.AcscMonsters.length; ++t)
                        if (!(i.isInteger(e.AcscMonsters[t]) || e.AcscMonsters[t] && i.isInteger(e.AcscMonsters[t].low) && i.isInteger(e.AcscMonsters[t].high))) return "AcscMonsters: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AcscMonsterType_Config) return e;
                var t = new a.AcscMonsterType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.AcscMonsters) {
                    if (!Array.isArray(e.AcscMonsters)) throw TypeError(".AcscMonsterType_Config.AcscMonsters: array expected");
                    t.AcscMonsters = [];
                    for (var n = 0; n < e.AcscMonsters.length; ++n) i.Long ? (t.AcscMonsters[n] = i.Long.fromValue(e.AcscMonsters[n])).unsigned = !1 : "string" == typeof e.AcscMonsters[n] ? t.AcscMonsters[n] = parseInt(e.AcscMonsters[n], 10) : "number" == typeof e.AcscMonsters[n] ? t.AcscMonsters[n] = e.AcscMonsters[n] : "object" == typeof e.AcscMonsters[n] && (t.AcscMonsters[n] = new i.LongBits(e.AcscMonsters[n].low >>> 0, e.AcscMonsters[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AcscMonsters = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.AcscMonsters && e.AcscMonsters.length) {
                    n.AcscMonsters = [];
                    for (var r = 0; r < e.AcscMonsters.length; ++r) "number" == typeof e.AcscMonsters[r] ? n.AcscMonsters[r] = t.longs === String ? String(e.AcscMonsters[r]) : e.AcscMonsters[r] : n.AcscMonsters[r] = t.longs === String ? i.Long.prototype.toString.call(e.AcscMonsters[r]) : t.longs === Number ? new i.LongBits(e.AcscMonsters[r].low >>> 0, e.AcscMonsters[r].high >>> 0).toNumber() : e.AcscMonsters[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AcscMonsterType_Config"
            }, e
        }(), a.AllianceTestType_Config = function() {
            function e(e) {
                if (this.Hp = [], this.Rewards = [], this.ChallengeRewards = [], this.RedPacket = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HpCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Hp = i.emptyArray, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.ChallengeRewards = i.emptyArray, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RedPacket = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HpCount && Object.hasOwnProperty.call(e, "HpCount") && t.uint32(16).int64(e.HpCount), null != e.Hp && e.Hp.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Hp.length; ++n) t.int64(e.Hp[n]);
                    t.ldelim()
                }
                if (null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(32).int64(e.Count), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(42).fork()).ldelim();
                if (null != e.ChallengeRewards && e.ChallengeRewards.length)
                    for (n = 0; n < e.ChallengeRewards.length; ++n) a.IntArray_Config.encode(e.ChallengeRewards[n], t.uint32(50).fork()).ldelim();
                if (null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(56).int64(e.Xp), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(64).int64(e.ItemId), null != e.RedPacket && e.RedPacket.length)
                    for (n = 0; n < e.RedPacket.length; ++n) a.IntArray_Config.encode(e.RedPacket[n], t.uint32(74).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceTestType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HpCount = e.int64();
                            break;
                        case 3:
                            if (r.Hp && r.Hp.length || (r.Hp = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Hp.push(e.int64());
                            else r.Hp.push(e.int64());
                            break;
                        case 4:
                            r.Count = e.int64();
                            break;
                        case 5:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.ChallengeRewards && r.ChallengeRewards.length || (r.ChallengeRewards = []), r.ChallengeRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Xp = e.int64();
                            break;
                        case 8:
                            r.ItemId = e.int64();
                            break;
                        case 9:
                            r.RedPacket && r.RedPacket.length || (r.RedPacket = []), r.RedPacket.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HpCount && e.hasOwnProperty("HpCount") && !(i.isInteger(e.HpCount) || e.HpCount && i.isInteger(e.HpCount.low) && i.isInteger(e.HpCount.high))) return "HpCount: integer|Long expected";
                if (null != e.Hp && e.hasOwnProperty("Hp")) {
                    if (!Array.isArray(e.Hp)) return "Hp: array expected";
                    for (var t = 0; t < e.Hp.length; ++t)
                        if (!(i.isInteger(e.Hp[t]) || e.Hp[t] && i.isInteger(e.Hp[t].low) && i.isInteger(e.Hp[t].high))) return "Hp: integer|Long[] expected"
                }
                if (null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high))) return "Count: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.ChallengeRewards && e.hasOwnProperty("ChallengeRewards")) {
                    if (!Array.isArray(e.ChallengeRewards)) return "ChallengeRewards: array expected";
                    for (t = 0; t < e.ChallengeRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ChallengeRewards[t])) return "ChallengeRewards." + n
                }
                if (null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high))) return "Xp: integer|Long expected";
                if (null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high))) return "ItemId: integer|Long expected";
                if (null != e.RedPacket && e.hasOwnProperty("RedPacket")) {
                    if (!Array.isArray(e.RedPacket)) return "RedPacket: array expected";
                    for (t = 0; t < e.RedPacket.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.RedPacket[t])) return "RedPacket." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceTestType_Config) return e;
                var t = new a.AllianceTestType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HpCount && (i.Long ? (t.HpCount = i.Long.fromValue(e.HpCount)).unsigned = !1 : "string" == typeof e.HpCount ? t.HpCount = parseInt(e.HpCount, 10) : "number" == typeof e.HpCount ? t.HpCount = e.HpCount : "object" == typeof e.HpCount && (t.HpCount = new i.LongBits(e.HpCount.low >>> 0, e.HpCount.high >>> 0).toNumber())), e.Hp) {
                    if (!Array.isArray(e.Hp)) throw TypeError(".AllianceTestType_Config.Hp: array expected");
                    t.Hp = [];
                    for (var n = 0; n < e.Hp.length; ++n) i.Long ? (t.Hp[n] = i.Long.fromValue(e.Hp[n])).unsigned = !1 : "string" == typeof e.Hp[n] ? t.Hp[n] = parseInt(e.Hp[n], 10) : "number" == typeof e.Hp[n] ? t.Hp[n] = e.Hp[n] : "object" == typeof e.Hp[n] && (t.Hp[n] = new i.LongBits(e.Hp[n].low >>> 0, e.Hp[n].high >>> 0).toNumber())
                }
                if (null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AllianceTestType_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AllianceTestType_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.ChallengeRewards) {
                    if (!Array.isArray(e.ChallengeRewards)) throw TypeError(".AllianceTestType_Config.ChallengeRewards: array expected");
                    for (t.ChallengeRewards = [], n = 0; n < e.ChallengeRewards.length; ++n) {
                        if ("object" != typeof e.ChallengeRewards[n]) throw TypeError(".AllianceTestType_Config.ChallengeRewards: object expected");
                        t.ChallengeRewards[n] = a.IntArray_Config.fromObject(e.ChallengeRewards[n])
                    }
                }
                if (null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), e.RedPacket) {
                    if (!Array.isArray(e.RedPacket)) throw TypeError(".AllianceTestType_Config.RedPacket: array expected");
                    for (t.RedPacket = [], n = 0; n < e.RedPacket.length; ++n) {
                        if ("object" != typeof e.RedPacket[n]) throw TypeError(".AllianceTestType_Config.RedPacket: object expected");
                        t.RedPacket[n] = a.IntArray_Config.fromObject(e.RedPacket[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Hp = [], n.Rewards = [], n.ChallengeRewards = [], n.RedPacket = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HpCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HpCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HpCount && e.hasOwnProperty("HpCount") && ("number" == typeof e.HpCount ? n.HpCount = t.longs === String ? String(e.HpCount) : e.HpCount : n.HpCount = t.longs === String ? i.Long.prototype.toString.call(e.HpCount) : t.longs === Number ? new i.LongBits(e.HpCount.low >>> 0, e.HpCount.high >>> 0).toNumber() : e.HpCount), e.Hp && e.Hp.length) {
                    n.Hp = [];
                    for (var r = 0; r < e.Hp.length; ++r) "number" == typeof e.Hp[r] ? n.Hp[r] = t.longs === String ? String(e.Hp[r]) : e.Hp[r] : n.Hp[r] = t.longs === String ? i.Long.prototype.toString.call(e.Hp[r]) : t.longs === Number ? new i.LongBits(e.Hp[r].low >>> 0, e.Hp[r].high >>> 0).toNumber() : e.Hp[r]
                }
                if (null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (e.ChallengeRewards && e.ChallengeRewards.length)
                    for (n.ChallengeRewards = [], r = 0; r < e.ChallengeRewards.length; ++r) n.ChallengeRewards[r] = a.IntArray_Config.toObject(e.ChallengeRewards[r], t);
                if (null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), e.RedPacket && e.RedPacket.length)
                    for (n.RedPacket = [], r = 0; r < e.RedPacket.length; ++r) n.RedPacket[r] = a.IntArray_Config.toObject(e.RedPacket[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceTestType_Config"
            }, e
        }(), a.AllianceTest_Config = function() {
            function e(e) {
                if (this.Monsters = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Monsters = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Monsters && e.Monsters.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Monsters.length; ++n) t.int64(e.Monsters[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceTest_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            if (r.Monsters && r.Monsters.length || (r.Monsters = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Monsters.push(e.int64());
                            else r.Monsters.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Monsters && e.hasOwnProperty("Monsters")) {
                    if (!Array.isArray(e.Monsters)) return "Monsters: array expected";
                    for (var t = 0; t < e.Monsters.length; ++t)
                        if (!(i.isInteger(e.Monsters[t]) || e.Monsters[t] && i.isInteger(e.Monsters[t].low) && i.isInteger(e.Monsters[t].high))) return "Monsters: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceTest_Config) return e;
                var t = new a.AllianceTest_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Monsters) {
                    if (!Array.isArray(e.Monsters)) throw TypeError(".AllianceTest_Config.Monsters: array expected");
                    t.Monsters = [];
                    for (var n = 0; n < e.Monsters.length; ++n) i.Long ? (t.Monsters[n] = i.Long.fromValue(e.Monsters[n])).unsigned = !1 : "string" == typeof e.Monsters[n] ? t.Monsters[n] = parseInt(e.Monsters[n], 10) : "number" == typeof e.Monsters[n] ? t.Monsters[n] = e.Monsters[n] : "object" == typeof e.Monsters[n] && (t.Monsters[n] = new i.LongBits(e.Monsters[n].low >>> 0, e.Monsters[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Monsters = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Monsters && e.Monsters.length) {
                    n.Monsters = [];
                    for (var r = 0; r < e.Monsters.length; ++r) "number" == typeof e.Monsters[r] ? n.Monsters[r] = t.longs === String ? String(e.Monsters[r]) : e.Monsters[r] : n.Monsters[r] = t.longs === String ? i.Long.prototype.toString.call(e.Monsters[r]) : t.longs === Number ? new i.LongBits(e.Monsters[r].low >>> 0, e.Monsters[r].high >>> 0).toNumber() : e.Monsters[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceTest_Config"
            }, e
        }(), a.AllianceTestReward_Config = function() {
            function e(e) {
                if (this.Rewards = [], this.RandomRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.RandomRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                if (null != e.RandomRewards && e.RandomRewards.length)
                    for (n = 0; n < e.RandomRewards.length; ++n) a.IntArray_Config.encode(e.RandomRewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceTestReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.RandomRewards && r.RandomRewards.length || (r.RandomRewards = []), r.RandomRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.RandomRewards && e.hasOwnProperty("RandomRewards")) {
                    if (!Array.isArray(e.RandomRewards)) return "RandomRewards: array expected";
                    for (t = 0; t < e.RandomRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.RandomRewards[t])) return "RandomRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceTestReward_Config) return e;
                var t = new a.AllianceTestReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AllianceTestReward_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AllianceTestReward_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.RandomRewards) {
                    if (!Array.isArray(e.RandomRewards)) throw TypeError(".AllianceTestReward_Config.RandomRewards: array expected");
                    for (t.RandomRewards = [], n = 0; n < e.RandomRewards.length; ++n) {
                        if ("object" != typeof e.RandomRewards[n]) throw TypeError(".AllianceTestReward_Config.RandomRewards: object expected");
                        t.RandomRewards[n] = a.IntArray_Config.fromObject(e.RandomRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.RandomRewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                if (e.RandomRewards && e.RandomRewards.length)
                    for (n.RandomRewards = [], r = 0; r < e.RandomRewards.length; ++r) n.RandomRewards[r] = a.IntArray_Config.toObject(e.RandomRewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceTestReward_Config"
            }, e
        }(), a.SimpleRandomLib_Config = function() {
            function e(e) {
                if (this.Weight = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Weight = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Weight && e.Weight.length)
                    for (var n = 0; n < e.Weight.length; ++n) a.IntArray_Config.encode(e.Weight[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SimpleRandomLib_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Weight && r.Weight.length || (r.Weight = []), r.Weight.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Weight && e.hasOwnProperty("Weight")) {
                    if (!Array.isArray(e.Weight)) return "Weight: array expected";
                    for (var t = 0; t < e.Weight.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Weight[t]);
                        if (n) return "Weight." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SimpleRandomLib_Config) return e;
                var t = new a.SimpleRandomLib_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Weight) {
                    if (!Array.isArray(e.Weight)) throw TypeError(".SimpleRandomLib_Config.Weight: array expected");
                    t.Weight = [];
                    for (var n = 0; n < e.Weight.length; ++n) {
                        if ("object" != typeof e.Weight[n]) throw TypeError(".SimpleRandomLib_Config.Weight: object expected");
                        t.Weight[n] = a.IntArray_Config.fromObject(e.Weight[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Weight = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Weight && e.Weight.length) {
                    n.Weight = [];
                    for (var r = 0; r < e.Weight.length; ++r) n.Weight[r] = a.IntArray_Config.toObject(e.Weight[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SimpleRandomLib_Config"
            }, e
        }(), a.HeroCharacteristic_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroCharacteristic_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroCharacteristic_Config) return e;
                var t = new a.HeroCharacteristic_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroCharacteristic_Config"
            }, e
        }(), a.HeadIcon_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ForRandom = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ForRandom && Object.hasOwnProperty.call(e, "ForRandom") && t.uint32(40).int64(e.ForRandom), null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(48).int64(e.SortId), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(56).int64(e.Type), null != e.Param && Object.hasOwnProperty.call(e, "Param") && t.uint32(64).int64(e.Param), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeadIcon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.ForRandom = e.int64();
                            break;
                        case 6:
                            r.SortId = e.int64();
                            break;
                        case 7:
                            r.Type = e.int64();
                            break;
                        case 8:
                            r.Param = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.ForRandom && e.hasOwnProperty("ForRandom") && !(i.isInteger(e.ForRandom) || e.ForRandom && i.isInteger(e.ForRandom.low) && i.isInteger(e.ForRandom.high)) ? "ForRandom: integer|Long expected" : null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.Param && e.hasOwnProperty("Param") && !(i.isInteger(e.Param) || e.Param && i.isInteger(e.Param.low) && i.isInteger(e.Param.high)) ? "Param: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeadIcon_Config) return e;
                var t = new a.HeadIcon_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.ForRandom && (i.Long ? (t.ForRandom = i.Long.fromValue(e.ForRandom)).unsigned = !1 : "string" == typeof e.ForRandom ? t.ForRandom = parseInt(e.ForRandom, 10) : "number" == typeof e.ForRandom ? t.ForRandom = e.ForRandom : "object" == typeof e.ForRandom && (t.ForRandom = new i.LongBits(e.ForRandom.low >>> 0, e.ForRandom.high >>> 0).toNumber())), null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Param && (i.Long ? (t.Param = i.Long.fromValue(e.Param)).unsigned = !1 : "string" == typeof e.Param ? t.Param = parseInt(e.Param, 10) : "number" == typeof e.Param ? t.Param = e.Param : "object" == typeof e.Param && (t.Param = new i.LongBits(e.Param.low >>> 0, e.Param.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ForRandom = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ForRandom = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Param = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Param = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.ForRandom && e.hasOwnProperty("ForRandom") && ("number" == typeof e.ForRandom ? n.ForRandom = t.longs === String ? String(e.ForRandom) : e.ForRandom : n.ForRandom = t.longs === String ? i.Long.prototype.toString.call(e.ForRandom) : t.longs === Number ? new i.LongBits(e.ForRandom.low >>> 0, e.ForRandom.high >>> 0).toNumber() : e.ForRandom), null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Param && e.hasOwnProperty("Param") && ("number" == typeof e.Param ? n.Param = t.longs === String ? String(e.Param) : e.Param : n.Param = t.longs === String ? i.Long.prototype.toString.call(e.Param) : t.longs === Number ? new i.LongBits(e.Param.low >>> 0, e.Param.high >>> 0).toNumber() : e.Param), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeadIcon_Config"
            }, e
        }(), a.HeadFrame_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Order = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ForRandom = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Effect = "", e.prototype.AvailableStartTime = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Order && Object.hasOwnProperty.call(e, "Order") && t.uint32(16).int64(e.Order), null != e.ForRandom && Object.hasOwnProperty.call(e, "ForRandom") && t.uint32(40).int64(e.ForRandom), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(50).fork()).ldelim();
                return null != e.Effect && Object.hasOwnProperty.call(e, "Effect") && t.uint32(58).string(e.Effect), null != e.AvailableStartTime && Object.hasOwnProperty.call(e, "AvailableStartTime") && t.uint32(66).string(e.AvailableStartTime), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeadFrame_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Order = e.int64();
                            break;
                        case 5:
                            r.ForRandom = e.int64();
                            break;
                        case 6:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Effect = e.string();
                            break;
                        case 8:
                            r.AvailableStartTime = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Order && e.hasOwnProperty("Order") && !(i.isInteger(e.Order) || e.Order && i.isInteger(e.Order.low) && i.isInteger(e.Order.high))) return "Order: integer|Long expected";
                if (null != e.ForRandom && e.hasOwnProperty("ForRandom") && !(i.isInteger(e.ForRandom) || e.ForRandom && i.isInteger(e.ForRandom.low) && i.isInteger(e.ForRandom.high))) return "ForRandom: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.Effect && e.hasOwnProperty("Effect") && !i.isString(e.Effect) ? "Effect: string expected" : null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && !i.isString(e.AvailableStartTime) ? "AvailableStartTime: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeadFrame_Config) return e;
                var t = new a.HeadFrame_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Order && (i.Long ? (t.Order = i.Long.fromValue(e.Order)).unsigned = !1 : "string" == typeof e.Order ? t.Order = parseInt(e.Order, 10) : "number" == typeof e.Order ? t.Order = e.Order : "object" == typeof e.Order && (t.Order = new i.LongBits(e.Order.low >>> 0, e.Order.high >>> 0).toNumber())), null != e.ForRandom && (i.Long ? (t.ForRandom = i.Long.fromValue(e.ForRandom)).unsigned = !1 : "string" == typeof e.ForRandom ? t.ForRandom = parseInt(e.ForRandom, 10) : "number" == typeof e.ForRandom ? t.ForRandom = e.ForRandom : "object" == typeof e.ForRandom && (t.ForRandom = new i.LongBits(e.ForRandom.low >>> 0, e.ForRandom.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeadFrame_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeadFrame_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.Effect && (t.Effect = String(e.Effect)), null != e.AvailableStartTime && (t.AvailableStartTime = String(e.AvailableStartTime)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Order = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Order = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ForRandom = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ForRandom = t.longs === String ? "0" : 0, n.Effect = "", n.AvailableStartTime = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Order && e.hasOwnProperty("Order") && ("number" == typeof e.Order ? n.Order = t.longs === String ? String(e.Order) : e.Order : n.Order = t.longs === String ? i.Long.prototype.toString.call(e.Order) : t.longs === Number ? new i.LongBits(e.Order.low >>> 0, e.Order.high >>> 0).toNumber() : e.Order), null != e.ForRandom && e.hasOwnProperty("ForRandom") && ("number" == typeof e.ForRandom ? n.ForRandom = t.longs === String ? String(e.ForRandom) : e.ForRandom : n.ForRandom = t.longs === String ? i.Long.prototype.toString.call(e.ForRandom) : t.longs === Number ? new i.LongBits(e.ForRandom.low >>> 0, e.ForRandom.high >>> 0).toNumber() : e.ForRandom), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.Effect && e.hasOwnProperty("Effect") && (n.Effect = e.Effect), null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && (n.AvailableStartTime = e.AvailableStartTime), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeadFrame_Config"
            }, e
        }(), a.Title_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.ShowCondition = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Order = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowCondition = i.emptyArray, e.prototype.Effect = "", e.prototype.AvailableStartTime = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.Order && Object.hasOwnProperty.call(e, "Order") && t.uint32(24).int64(e.Order), null != e.ShowCondition && e.ShowCondition.length)
                    for (n = 0; n < e.ShowCondition.length; ++n) a.IntArray_Config.encode(e.ShowCondition[n], t.uint32(50).fork()).ldelim();
                return null != e.Effect && Object.hasOwnProperty.call(e, "Effect") && t.uint32(58).string(e.Effect), null != e.AvailableStartTime && Object.hasOwnProperty.call(e, "AvailableStartTime") && t.uint32(66).string(e.AvailableStartTime), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Title_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Order = e.int64();
                            break;
                        case 6:
                            r.ShowCondition && r.ShowCondition.length || (r.ShowCondition = []), r.ShowCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Effect = e.string();
                            break;
                        case 8:
                            r.AvailableStartTime = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Order && e.hasOwnProperty("Order") && !(i.isInteger(e.Order) || e.Order && i.isInteger(e.Order.low) && i.isInteger(e.Order.high))) return "Order: integer|Long expected";
                if (null != e.ShowCondition && e.hasOwnProperty("ShowCondition")) {
                    if (!Array.isArray(e.ShowCondition)) return "ShowCondition: array expected";
                    for (t = 0; t < e.ShowCondition.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ShowCondition[t])) return "ShowCondition." + n
                    }
                }
                return null != e.Effect && e.hasOwnProperty("Effect") && !i.isString(e.Effect) ? "Effect: string expected" : null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && !i.isString(e.AvailableStartTime) ? "AvailableStartTime: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Title_Config) return e;
                var t = new a.Title_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".Title_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".Title_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (null != e.Order && (i.Long ? (t.Order = i.Long.fromValue(e.Order)).unsigned = !1 : "string" == typeof e.Order ? t.Order = parseInt(e.Order, 10) : "number" == typeof e.Order ? t.Order = e.Order : "object" == typeof e.Order && (t.Order = new i.LongBits(e.Order.low >>> 0, e.Order.high >>> 0).toNumber())), e.ShowCondition) {
                    if (!Array.isArray(e.ShowCondition)) throw TypeError(".Title_Config.ShowCondition: array expected");
                    for (t.ShowCondition = [], n = 0; n < e.ShowCondition.length; ++n) {
                        if ("object" != typeof e.ShowCondition[n]) throw TypeError(".Title_Config.ShowCondition: object expected");
                        t.ShowCondition[n] = a.IntArray_Config.fromObject(e.ShowCondition[n])
                    }
                }
                return null != e.Effect && (t.Effect = String(e.Effect)), null != e.AvailableStartTime && (t.AvailableStartTime = String(e.AvailableStartTime)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.ShowCondition = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Order = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Order = t.longs === String ? "0" : 0, n.Effect = "", n.AvailableStartTime = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (null != e.Order && e.hasOwnProperty("Order") && ("number" == typeof e.Order ? n.Order = t.longs === String ? String(e.Order) : e.Order : n.Order = t.longs === String ? i.Long.prototype.toString.call(e.Order) : t.longs === Number ? new i.LongBits(e.Order.low >>> 0, e.Order.high >>> 0).toNumber() : e.Order), e.ShowCondition && e.ShowCondition.length)
                    for (n.ShowCondition = [], r = 0; r < e.ShowCondition.length; ++r) n.ShowCondition[r] = a.IntArray_Config.toObject(e.ShowCondition[r], t);
                return null != e.Effect && e.hasOwnProperty("Effect") && (n.Effect = e.Effect), null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && (n.AvailableStartTime = e.AvailableStartTime), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Title_Config"
            }, e
        }(), a.AdventureReward_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MapId && Object.hasOwnProperty.call(e, "MapId") && t.uint32(16).int64(e.MapId), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AdventureReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.MapId = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MapId && e.hasOwnProperty("MapId") && !(i.isInteger(e.MapId) || e.MapId && i.isInteger(e.MapId.low) && i.isInteger(e.MapId.high))) return "MapId: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AdventureReward_Config) return e;
                var t = new a.AdventureReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.MapId && (i.Long ? (t.MapId = i.Long.fromValue(e.MapId)).unsigned = !1 : "string" == typeof e.MapId ? t.MapId = parseInt(e.MapId, 10) : "number" == typeof e.MapId ? t.MapId = e.MapId : "object" == typeof e.MapId && (t.MapId = new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AdventureReward_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AdventureReward_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MapId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.MapId && e.hasOwnProperty("MapId") && ("number" == typeof e.MapId ? n.MapId = t.longs === String ? String(e.MapId) : e.MapId : n.MapId = t.longs === String ? i.Long.prototype.toString.call(e.MapId) : t.longs === Number ? new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber() : e.MapId), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AdventureReward_Config"
            }, e
        }(), a.BuffDescription_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FloatTextColor = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NoIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ZIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EffectType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EffectPosition = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EffectDealy = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BuffIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.FloatTextColor && Object.hasOwnProperty.call(e, "FloatTextColor") && t.uint32(32).int64(e.FloatTextColor), null != e.NoIcon && Object.hasOwnProperty.call(e, "NoIcon") && t.uint32(40).int64(e.NoIcon), null != e.ZIndex && Object.hasOwnProperty.call(e, "ZIndex") && t.uint32(48).int64(e.ZIndex), null != e.EffectType && Object.hasOwnProperty.call(e, "EffectType") && t.uint32(56).int64(e.EffectType), null != e.EffectPosition && Object.hasOwnProperty.call(e, "EffectPosition") && t.uint32(64).int64(e.EffectPosition), null != e.EffectDealy && Object.hasOwnProperty.call(e, "EffectDealy") && t.uint32(80).int64(e.EffectDealy), null != e.BuffIcon && Object.hasOwnProperty.call(e, "BuffIcon") && t.uint32(88).int64(e.BuffIcon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.BuffDescription_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.FloatTextColor = e.int64();
                            break;
                        case 5:
                            r.NoIcon = e.int64();
                            break;
                        case 6:
                            r.ZIndex = e.int64();
                            break;
                        case 7:
                            r.EffectType = e.int64();
                            break;
                        case 8:
                            r.EffectPosition = e.int64();
                            break;
                        case 10:
                            r.EffectDealy = e.int64();
                            break;
                        case 11:
                            r.BuffIcon = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.FloatTextColor && e.hasOwnProperty("FloatTextColor") && !(i.isInteger(e.FloatTextColor) || e.FloatTextColor && i.isInteger(e.FloatTextColor.low) && i.isInteger(e.FloatTextColor.high)) ? "FloatTextColor: integer|Long expected" : null != e.NoIcon && e.hasOwnProperty("NoIcon") && !(i.isInteger(e.NoIcon) || e.NoIcon && i.isInteger(e.NoIcon.low) && i.isInteger(e.NoIcon.high)) ? "NoIcon: integer|Long expected" : null != e.ZIndex && e.hasOwnProperty("ZIndex") && !(i.isInteger(e.ZIndex) || e.ZIndex && i.isInteger(e.ZIndex.low) && i.isInteger(e.ZIndex.high)) ? "ZIndex: integer|Long expected" : null != e.EffectType && e.hasOwnProperty("EffectType") && !(i.isInteger(e.EffectType) || e.EffectType && i.isInteger(e.EffectType.low) && i.isInteger(e.EffectType.high)) ? "EffectType: integer|Long expected" : null != e.EffectPosition && e.hasOwnProperty("EffectPosition") && !(i.isInteger(e.EffectPosition) || e.EffectPosition && i.isInteger(e.EffectPosition.low) && i.isInteger(e.EffectPosition.high)) ? "EffectPosition: integer|Long expected" : null != e.EffectDealy && e.hasOwnProperty("EffectDealy") && !(i.isInteger(e.EffectDealy) || e.EffectDealy && i.isInteger(e.EffectDealy.low) && i.isInteger(e.EffectDealy.high)) ? "EffectDealy: integer|Long expected" : null != e.BuffIcon && e.hasOwnProperty("BuffIcon") && !(i.isInteger(e.BuffIcon) || e.BuffIcon && i.isInteger(e.BuffIcon.low) && i.isInteger(e.BuffIcon.high)) ? "BuffIcon: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.BuffDescription_Config) return e;
                var t = new a.BuffDescription_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.FloatTextColor && (i.Long ? (t.FloatTextColor = i.Long.fromValue(e.FloatTextColor)).unsigned = !1 : "string" == typeof e.FloatTextColor ? t.FloatTextColor = parseInt(e.FloatTextColor, 10) : "number" == typeof e.FloatTextColor ? t.FloatTextColor = e.FloatTextColor : "object" == typeof e.FloatTextColor && (t.FloatTextColor = new i.LongBits(e.FloatTextColor.low >>> 0, e.FloatTextColor.high >>> 0).toNumber())), null != e.NoIcon && (i.Long ? (t.NoIcon = i.Long.fromValue(e.NoIcon)).unsigned = !1 : "string" == typeof e.NoIcon ? t.NoIcon = parseInt(e.NoIcon, 10) : "number" == typeof e.NoIcon ? t.NoIcon = e.NoIcon : "object" == typeof e.NoIcon && (t.NoIcon = new i.LongBits(e.NoIcon.low >>> 0, e.NoIcon.high >>> 0).toNumber())), null != e.ZIndex && (i.Long ? (t.ZIndex = i.Long.fromValue(e.ZIndex)).unsigned = !1 : "string" == typeof e.ZIndex ? t.ZIndex = parseInt(e.ZIndex, 10) : "number" == typeof e.ZIndex ? t.ZIndex = e.ZIndex : "object" == typeof e.ZIndex && (t.ZIndex = new i.LongBits(e.ZIndex.low >>> 0, e.ZIndex.high >>> 0).toNumber())), null != e.EffectType && (i.Long ? (t.EffectType = i.Long.fromValue(e.EffectType)).unsigned = !1 : "string" == typeof e.EffectType ? t.EffectType = parseInt(e.EffectType, 10) : "number" == typeof e.EffectType ? t.EffectType = e.EffectType : "object" == typeof e.EffectType && (t.EffectType = new i.LongBits(e.EffectType.low >>> 0, e.EffectType.high >>> 0).toNumber())), null != e.EffectPosition && (i.Long ? (t.EffectPosition = i.Long.fromValue(e.EffectPosition)).unsigned = !1 : "string" == typeof e.EffectPosition ? t.EffectPosition = parseInt(e.EffectPosition, 10) : "number" == typeof e.EffectPosition ? t.EffectPosition = e.EffectPosition : "object" == typeof e.EffectPosition && (t.EffectPosition = new i.LongBits(e.EffectPosition.low >>> 0, e.EffectPosition.high >>> 0).toNumber())), null != e.EffectDealy && (i.Long ? (t.EffectDealy = i.Long.fromValue(e.EffectDealy)).unsigned = !1 : "string" == typeof e.EffectDealy ? t.EffectDealy = parseInt(e.EffectDealy, 10) : "number" == typeof e.EffectDealy ? t.EffectDealy = e.EffectDealy : "object" == typeof e.EffectDealy && (t.EffectDealy = new i.LongBits(e.EffectDealy.low >>> 0, e.EffectDealy.high >>> 0).toNumber())), null != e.BuffIcon && (i.Long ? (t.BuffIcon = i.Long.fromValue(e.BuffIcon)).unsigned = !1 : "string" == typeof e.BuffIcon ? t.BuffIcon = parseInt(e.BuffIcon, 10) : "number" == typeof e.BuffIcon ? t.BuffIcon = e.BuffIcon : "object" == typeof e.BuffIcon && (t.BuffIcon = new i.LongBits(e.BuffIcon.low >>> 0, e.BuffIcon.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.FloatTextColor = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.FloatTextColor = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NoIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NoIcon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ZIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ZIndex = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.EffectType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EffectType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.EffectPosition = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EffectPosition = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.EffectDealy = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EffectDealy = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.BuffIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BuffIcon = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.FloatTextColor && e.hasOwnProperty("FloatTextColor") && ("number" == typeof e.FloatTextColor ? n.FloatTextColor = t.longs === String ? String(e.FloatTextColor) : e.FloatTextColor : n.FloatTextColor = t.longs === String ? i.Long.prototype.toString.call(e.FloatTextColor) : t.longs === Number ? new i.LongBits(e.FloatTextColor.low >>> 0, e.FloatTextColor.high >>> 0).toNumber() : e.FloatTextColor), null != e.NoIcon && e.hasOwnProperty("NoIcon") && ("number" == typeof e.NoIcon ? n.NoIcon = t.longs === String ? String(e.NoIcon) : e.NoIcon : n.NoIcon = t.longs === String ? i.Long.prototype.toString.call(e.NoIcon) : t.longs === Number ? new i.LongBits(e.NoIcon.low >>> 0, e.NoIcon.high >>> 0).toNumber() : e.NoIcon), null != e.ZIndex && e.hasOwnProperty("ZIndex") && ("number" == typeof e.ZIndex ? n.ZIndex = t.longs === String ? String(e.ZIndex) : e.ZIndex : n.ZIndex = t.longs === String ? i.Long.prototype.toString.call(e.ZIndex) : t.longs === Number ? new i.LongBits(e.ZIndex.low >>> 0, e.ZIndex.high >>> 0).toNumber() : e.ZIndex), null != e.EffectType && e.hasOwnProperty("EffectType") && ("number" == typeof e.EffectType ? n.EffectType = t.longs === String ? String(e.EffectType) : e.EffectType : n.EffectType = t.longs === String ? i.Long.prototype.toString.call(e.EffectType) : t.longs === Number ? new i.LongBits(e.EffectType.low >>> 0, e.EffectType.high >>> 0).toNumber() : e.EffectType), null != e.EffectPosition && e.hasOwnProperty("EffectPosition") && ("number" == typeof e.EffectPosition ? n.EffectPosition = t.longs === String ? String(e.EffectPosition) : e.EffectPosition : n.EffectPosition = t.longs === String ? i.Long.prototype.toString.call(e.EffectPosition) : t.longs === Number ? new i.LongBits(e.EffectPosition.low >>> 0, e.EffectPosition.high >>> 0).toNumber() : e.EffectPosition), null != e.EffectDealy && e.hasOwnProperty("EffectDealy") && ("number" == typeof e.EffectDealy ? n.EffectDealy = t.longs === String ? String(e.EffectDealy) : e.EffectDealy : n.EffectDealy = t.longs === String ? i.Long.prototype.toString.call(e.EffectDealy) : t.longs === Number ? new i.LongBits(e.EffectDealy.low >>> 0, e.EffectDealy.high >>> 0).toNumber() : e.EffectDealy), null != e.BuffIcon && e.hasOwnProperty("BuffIcon") && ("number" == typeof e.BuffIcon ? n.BuffIcon = t.longs === String ? String(e.BuffIcon) : e.BuffIcon : n.BuffIcon = t.longs === String ? i.Long.prototype.toString.call(e.BuffIcon) : t.longs === Number ? new i.LongBits(e.BuffIcon.low >>> 0, e.BuffIcon.high >>> 0).toNumber() : e.BuffIcon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/BuffDescription_Config"
            }, e
        }(), a.Emoji_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Desc = "", e.prototype.HICODE = "", e.prototype.LOCODE = "", e.prototype.CodePoint = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Desc && Object.hasOwnProperty.call(e, "Desc") && t.uint32(18).string(e.Desc), null != e.HICODE && Object.hasOwnProperty.call(e, "HICODE") && t.uint32(26).string(e.HICODE), null != e.LOCODE && Object.hasOwnProperty.call(e, "LOCODE") && t.uint32(34).string(e.LOCODE), null != e.CodePoint && Object.hasOwnProperty.call(e, "CodePoint") && t.uint32(40).int64(e.CodePoint), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Emoji_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Desc = e.string();
                            break;
                        case 3:
                            r.HICODE = e.string();
                            break;
                        case 4:
                            r.LOCODE = e.string();
                            break;
                        case 5:
                            r.CodePoint = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Desc && e.hasOwnProperty("Desc") && !i.isString(e.Desc) ? "Desc: string expected" : null != e.HICODE && e.hasOwnProperty("HICODE") && !i.isString(e.HICODE) ? "HICODE: string expected" : null != e.LOCODE && e.hasOwnProperty("LOCODE") && !i.isString(e.LOCODE) ? "LOCODE: string expected" : null != e.CodePoint && e.hasOwnProperty("CodePoint") && !(i.isInteger(e.CodePoint) || e.CodePoint && i.isInteger(e.CodePoint.low) && i.isInteger(e.CodePoint.high)) ? "CodePoint: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Emoji_Config) return e;
                var t = new a.Emoji_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Desc && (t.Desc = String(e.Desc)), null != e.HICODE && (t.HICODE = String(e.HICODE)), null != e.LOCODE && (t.LOCODE = String(e.LOCODE)), null != e.CodePoint && (i.Long ? (t.CodePoint = i.Long.fromValue(e.CodePoint)).unsigned = !1 : "string" == typeof e.CodePoint ? t.CodePoint = parseInt(e.CodePoint, 10) : "number" == typeof e.CodePoint ? t.CodePoint = e.CodePoint : "object" == typeof e.CodePoint && (t.CodePoint = new i.LongBits(e.CodePoint.low >>> 0, e.CodePoint.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Desc = "", n.HICODE = "", n.LOCODE = "", i.Long ? (o = new i.Long(0, 0, !1), n.CodePoint = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CodePoint = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Desc && e.hasOwnProperty("Desc") && (n.Desc = e.Desc), null != e.HICODE && e.hasOwnProperty("HICODE") && (n.HICODE = e.HICODE), null != e.LOCODE && e.hasOwnProperty("LOCODE") && (n.LOCODE = e.LOCODE), null != e.CodePoint && e.hasOwnProperty("CodePoint") && ("number" == typeof e.CodePoint ? n.CodePoint = t.longs === String ? String(e.CodePoint) : e.CodePoint : n.CodePoint = t.longs === String ? i.Long.prototype.toString.call(e.CodePoint) : t.longs === Number ? new i.LongBits(e.CodePoint.low >>> 0, e.CodePoint.high >>> 0).toNumber() : e.CodePoint), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Emoji_Config"
            }, e
        }(), a.FormationInstance_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CanBeEmpty = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Group = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.CanBeEmpty && Object.hasOwnProperty.call(e, "CanBeEmpty") && t.uint32(24).int64(e.CanBeEmpty), null != e.Group && Object.hasOwnProperty.call(e, "Group") && t.uint32(32).int64(e.Group), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FormationInstance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.CanBeEmpty = e.int64();
                            break;
                        case 4:
                            r.Group = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.CanBeEmpty && e.hasOwnProperty("CanBeEmpty") && !(i.isInteger(e.CanBeEmpty) || e.CanBeEmpty && i.isInteger(e.CanBeEmpty.low) && i.isInteger(e.CanBeEmpty.high)) ? "CanBeEmpty: integer|Long expected" : null != e.Group && e.hasOwnProperty("Group") && !(i.isInteger(e.Group) || e.Group && i.isInteger(e.Group.low) && i.isInteger(e.Group.high)) ? "Group: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.FormationInstance_Config) return e;
                var t = new a.FormationInstance_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.CanBeEmpty && (i.Long ? (t.CanBeEmpty = i.Long.fromValue(e.CanBeEmpty)).unsigned = !1 : "string" == typeof e.CanBeEmpty ? t.CanBeEmpty = parseInt(e.CanBeEmpty, 10) : "number" == typeof e.CanBeEmpty ? t.CanBeEmpty = e.CanBeEmpty : "object" == typeof e.CanBeEmpty && (t.CanBeEmpty = new i.LongBits(e.CanBeEmpty.low >>> 0, e.CanBeEmpty.high >>> 0).toNumber())), null != e.Group && (i.Long ? (t.Group = i.Long.fromValue(e.Group)).unsigned = !1 : "string" == typeof e.Group ? t.Group = parseInt(e.Group, 10) : "number" == typeof e.Group ? t.Group = e.Group : "object" == typeof e.Group && (t.Group = new i.LongBits(e.Group.low >>> 0, e.Group.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.CanBeEmpty = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CanBeEmpty = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Group = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Group = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.CanBeEmpty && e.hasOwnProperty("CanBeEmpty") && ("number" == typeof e.CanBeEmpty ? n.CanBeEmpty = t.longs === String ? String(e.CanBeEmpty) : e.CanBeEmpty : n.CanBeEmpty = t.longs === String ? i.Long.prototype.toString.call(e.CanBeEmpty) : t.longs === Number ? new i.LongBits(e.CanBeEmpty.low >>> 0, e.CanBeEmpty.high >>> 0).toNumber() : e.CanBeEmpty), null != e.Group && e.hasOwnProperty("Group") && ("number" == typeof e.Group ? n.Group = t.longs === String ? String(e.Group) : e.Group : n.Group = t.longs === String ? i.Long.prototype.toString.call(e.Group) : t.longs === Number ? new i.LongBits(e.Group.low >>> 0, e.Group.high >>> 0).toNumber() : e.Group), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FormationInstance_Config"
            }, e
        }(), a.ItemGetWay_Config = function() {
            function e(e) {
                if (this.PanelInfo = [], this.WeekLimit = [], this.GiftPackIds = [], this.ItemSource = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GameModuleId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PanelInfo = i.emptyArray, e.prototype.PanelGroup = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.WeekLimit = i.emptyArray, e.prototype.GiftPackIds = i.emptyArray, e.prototype.JumpPanelType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemSource = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.GameModuleId && Object.hasOwnProperty.call(e, "GameModuleId") && t.uint32(32).int64(e.GameModuleId), null != e.PanelInfo && e.PanelInfo.length) {
                    t.uint32(42).fork();
                    for (var n = 0; n < e.PanelInfo.length; ++n) t.int64(e.PanelInfo[n]);
                    t.ldelim()
                }
                if (null != e.PanelGroup && Object.hasOwnProperty.call(e, "PanelGroup") && t.uint32(48).int64(e.PanelGroup), null != e.WeekLimit && e.WeekLimit.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.WeekLimit.length; ++n) t.int64(e.WeekLimit[n]);
                    t.ldelim()
                }
                if (null != e.GiftPackIds && e.GiftPackIds.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.GiftPackIds.length; ++n) t.int64(e.GiftPackIds[n]);
                    t.ldelim()
                }
                if (null != e.JumpPanelType && Object.hasOwnProperty.call(e, "JumpPanelType") && t.uint32(80).int64(e.JumpPanelType), null != e.ItemSource && e.ItemSource.length) {
                    for (t.uint32(90).fork(), n = 0; n < e.ItemSource.length; ++n) t.int64(e.ItemSource[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemGetWay_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.GameModuleId = e.int64();
                            break;
                        case 5:
                            if (r.PanelInfo && r.PanelInfo.length || (r.PanelInfo = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.PanelInfo.push(e.int64());
                            else r.PanelInfo.push(e.int64());
                            break;
                        case 6:
                            r.PanelGroup = e.int64();
                            break;
                        case 7:
                            if (r.WeekLimit && r.WeekLimit.length || (r.WeekLimit = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.WeekLimit.push(e.int64());
                            else r.WeekLimit.push(e.int64());
                            break;
                        case 8:
                            if (r.GiftPackIds && r.GiftPackIds.length || (r.GiftPackIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.GiftPackIds.push(e.int64());
                            else r.GiftPackIds.push(e.int64());
                            break;
                        case 10:
                            r.JumpPanelType = e.int64();
                            break;
                        case 11:
                            if (r.ItemSource && r.ItemSource.length || (r.ItemSource = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ItemSource.push(e.int64());
                            else r.ItemSource.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.GameModuleId && e.hasOwnProperty("GameModuleId") && !(i.isInteger(e.GameModuleId) || e.GameModuleId && i.isInteger(e.GameModuleId.low) && i.isInteger(e.GameModuleId.high))) return "GameModuleId: integer|Long expected";
                if (null != e.PanelInfo && e.hasOwnProperty("PanelInfo")) {
                    if (!Array.isArray(e.PanelInfo)) return "PanelInfo: array expected";
                    for (var t = 0; t < e.PanelInfo.length; ++t)
                        if (!(i.isInteger(e.PanelInfo[t]) || e.PanelInfo[t] && i.isInteger(e.PanelInfo[t].low) && i.isInteger(e.PanelInfo[t].high))) return "PanelInfo: integer|Long[] expected"
                }
                if (null != e.PanelGroup && e.hasOwnProperty("PanelGroup") && !(i.isInteger(e.PanelGroup) || e.PanelGroup && i.isInteger(e.PanelGroup.low) && i.isInteger(e.PanelGroup.high))) return "PanelGroup: integer|Long expected";
                if (null != e.WeekLimit && e.hasOwnProperty("WeekLimit")) {
                    if (!Array.isArray(e.WeekLimit)) return "WeekLimit: array expected";
                    for (t = 0; t < e.WeekLimit.length; ++t)
                        if (!(i.isInteger(e.WeekLimit[t]) || e.WeekLimit[t] && i.isInteger(e.WeekLimit[t].low) && i.isInteger(e.WeekLimit[t].high))) return "WeekLimit: integer|Long[] expected"
                }
                if (null != e.GiftPackIds && e.hasOwnProperty("GiftPackIds")) {
                    if (!Array.isArray(e.GiftPackIds)) return "GiftPackIds: array expected";
                    for (t = 0; t < e.GiftPackIds.length; ++t)
                        if (!(i.isInteger(e.GiftPackIds[t]) || e.GiftPackIds[t] && i.isInteger(e.GiftPackIds[t].low) && i.isInteger(e.GiftPackIds[t].high))) return "GiftPackIds: integer|Long[] expected"
                }
                if (null != e.JumpPanelType && e.hasOwnProperty("JumpPanelType") && !(i.isInteger(e.JumpPanelType) || e.JumpPanelType && i.isInteger(e.JumpPanelType.low) && i.isInteger(e.JumpPanelType.high))) return "JumpPanelType: integer|Long expected";
                if (null != e.ItemSource && e.hasOwnProperty("ItemSource")) {
                    if (!Array.isArray(e.ItemSource)) return "ItemSource: array expected";
                    for (t = 0; t < e.ItemSource.length; ++t)
                        if (!(i.isInteger(e.ItemSource[t]) || e.ItemSource[t] && i.isInteger(e.ItemSource[t].low) && i.isInteger(e.ItemSource[t].high))) return "ItemSource: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemGetWay_Config) return e;
                var t = new a.ItemGetWay_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.GameModuleId && (i.Long ? (t.GameModuleId = i.Long.fromValue(e.GameModuleId)).unsigned = !1 : "string" == typeof e.GameModuleId ? t.GameModuleId = parseInt(e.GameModuleId, 10) : "number" == typeof e.GameModuleId ? t.GameModuleId = e.GameModuleId : "object" == typeof e.GameModuleId && (t.GameModuleId = new i.LongBits(e.GameModuleId.low >>> 0, e.GameModuleId.high >>> 0).toNumber())), e.PanelInfo) {
                    if (!Array.isArray(e.PanelInfo)) throw TypeError(".ItemGetWay_Config.PanelInfo: array expected");
                    t.PanelInfo = [];
                    for (var n = 0; n < e.PanelInfo.length; ++n) i.Long ? (t.PanelInfo[n] = i.Long.fromValue(e.PanelInfo[n])).unsigned = !1 : "string" == typeof e.PanelInfo[n] ? t.PanelInfo[n] = parseInt(e.PanelInfo[n], 10) : "number" == typeof e.PanelInfo[n] ? t.PanelInfo[n] = e.PanelInfo[n] : "object" == typeof e.PanelInfo[n] && (t.PanelInfo[n] = new i.LongBits(e.PanelInfo[n].low >>> 0, e.PanelInfo[n].high >>> 0).toNumber())
                }
                if (null != e.PanelGroup && (i.Long ? (t.PanelGroup = i.Long.fromValue(e.PanelGroup)).unsigned = !1 : "string" == typeof e.PanelGroup ? t.PanelGroup = parseInt(e.PanelGroup, 10) : "number" == typeof e.PanelGroup ? t.PanelGroup = e.PanelGroup : "object" == typeof e.PanelGroup && (t.PanelGroup = new i.LongBits(e.PanelGroup.low >>> 0, e.PanelGroup.high >>> 0).toNumber())), e.WeekLimit) {
                    if (!Array.isArray(e.WeekLimit)) throw TypeError(".ItemGetWay_Config.WeekLimit: array expected");
                    for (t.WeekLimit = [], n = 0; n < e.WeekLimit.length; ++n) i.Long ? (t.WeekLimit[n] = i.Long.fromValue(e.WeekLimit[n])).unsigned = !1 : "string" == typeof e.WeekLimit[n] ? t.WeekLimit[n] = parseInt(e.WeekLimit[n], 10) : "number" == typeof e.WeekLimit[n] ? t.WeekLimit[n] = e.WeekLimit[n] : "object" == typeof e.WeekLimit[n] && (t.WeekLimit[n] = new i.LongBits(e.WeekLimit[n].low >>> 0, e.WeekLimit[n].high >>> 0).toNumber())
                }
                if (e.GiftPackIds) {
                    if (!Array.isArray(e.GiftPackIds)) throw TypeError(".ItemGetWay_Config.GiftPackIds: array expected");
                    for (t.GiftPackIds = [], n = 0; n < e.GiftPackIds.length; ++n) i.Long ? (t.GiftPackIds[n] = i.Long.fromValue(e.GiftPackIds[n])).unsigned = !1 : "string" == typeof e.GiftPackIds[n] ? t.GiftPackIds[n] = parseInt(e.GiftPackIds[n], 10) : "number" == typeof e.GiftPackIds[n] ? t.GiftPackIds[n] = e.GiftPackIds[n] : "object" == typeof e.GiftPackIds[n] && (t.GiftPackIds[n] = new i.LongBits(e.GiftPackIds[n].low >>> 0, e.GiftPackIds[n].high >>> 0).toNumber())
                }
                if (null != e.JumpPanelType && (i.Long ? (t.JumpPanelType = i.Long.fromValue(e.JumpPanelType)).unsigned = !1 : "string" == typeof e.JumpPanelType ? t.JumpPanelType = parseInt(e.JumpPanelType, 10) : "number" == typeof e.JumpPanelType ? t.JumpPanelType = e.JumpPanelType : "object" == typeof e.JumpPanelType && (t.JumpPanelType = new i.LongBits(e.JumpPanelType.low >>> 0, e.JumpPanelType.high >>> 0).toNumber())), e.ItemSource) {
                    if (!Array.isArray(e.ItemSource)) throw TypeError(".ItemGetWay_Config.ItemSource: array expected");
                    for (t.ItemSource = [], n = 0; n < e.ItemSource.length; ++n) i.Long ? (t.ItemSource[n] = i.Long.fromValue(e.ItemSource[n])).unsigned = !1 : "string" == typeof e.ItemSource[n] ? t.ItemSource[n] = parseInt(e.ItemSource[n], 10) : "number" == typeof e.ItemSource[n] ? t.ItemSource[n] = e.ItemSource[n] : "object" == typeof e.ItemSource[n] && (t.ItemSource[n] = new i.LongBits(e.ItemSource[n].low >>> 0, e.ItemSource[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PanelInfo = [], n.WeekLimit = [], n.GiftPackIds = [], n.ItemSource = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.GameModuleId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GameModuleId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PanelGroup = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PanelGroup = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.JumpPanelType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.JumpPanelType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.GameModuleId && e.hasOwnProperty("GameModuleId") && ("number" == typeof e.GameModuleId ? n.GameModuleId = t.longs === String ? String(e.GameModuleId) : e.GameModuleId : n.GameModuleId = t.longs === String ? i.Long.prototype.toString.call(e.GameModuleId) : t.longs === Number ? new i.LongBits(e.GameModuleId.low >>> 0, e.GameModuleId.high >>> 0).toNumber() : e.GameModuleId), e.PanelInfo && e.PanelInfo.length) {
                    n.PanelInfo = [];
                    for (var r = 0; r < e.PanelInfo.length; ++r) "number" == typeof e.PanelInfo[r] ? n.PanelInfo[r] = t.longs === String ? String(e.PanelInfo[r]) : e.PanelInfo[r] : n.PanelInfo[r] = t.longs === String ? i.Long.prototype.toString.call(e.PanelInfo[r]) : t.longs === Number ? new i.LongBits(e.PanelInfo[r].low >>> 0, e.PanelInfo[r].high >>> 0).toNumber() : e.PanelInfo[r]
                }
                if (null != e.PanelGroup && e.hasOwnProperty("PanelGroup") && ("number" == typeof e.PanelGroup ? n.PanelGroup = t.longs === String ? String(e.PanelGroup) : e.PanelGroup : n.PanelGroup = t.longs === String ? i.Long.prototype.toString.call(e.PanelGroup) : t.longs === Number ? new i.LongBits(e.PanelGroup.low >>> 0, e.PanelGroup.high >>> 0).toNumber() : e.PanelGroup), e.WeekLimit && e.WeekLimit.length)
                    for (n.WeekLimit = [], r = 0; r < e.WeekLimit.length; ++r) "number" == typeof e.WeekLimit[r] ? n.WeekLimit[r] = t.longs === String ? String(e.WeekLimit[r]) : e.WeekLimit[r] : n.WeekLimit[r] = t.longs === String ? i.Long.prototype.toString.call(e.WeekLimit[r]) : t.longs === Number ? new i.LongBits(e.WeekLimit[r].low >>> 0, e.WeekLimit[r].high >>> 0).toNumber() : e.WeekLimit[r];
                if (e.GiftPackIds && e.GiftPackIds.length)
                    for (n.GiftPackIds = [], r = 0; r < e.GiftPackIds.length; ++r) "number" == typeof e.GiftPackIds[r] ? n.GiftPackIds[r] = t.longs === String ? String(e.GiftPackIds[r]) : e.GiftPackIds[r] : n.GiftPackIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.GiftPackIds[r]) : t.longs === Number ? new i.LongBits(e.GiftPackIds[r].low >>> 0, e.GiftPackIds[r].high >>> 0).toNumber() : e.GiftPackIds[r];
                if (null != e.JumpPanelType && e.hasOwnProperty("JumpPanelType") && ("number" == typeof e.JumpPanelType ? n.JumpPanelType = t.longs === String ? String(e.JumpPanelType) : e.JumpPanelType : n.JumpPanelType = t.longs === String ? i.Long.prototype.toString.call(e.JumpPanelType) : t.longs === Number ? new i.LongBits(e.JumpPanelType.low >>> 0, e.JumpPanelType.high >>> 0).toNumber() : e.JumpPanelType), e.ItemSource && e.ItemSource.length)
                    for (n.ItemSource = [], r = 0; r < e.ItemSource.length; ++r) "number" == typeof e.ItemSource[r] ? n.ItemSource[r] = t.longs === String ? String(e.ItemSource[r]) : e.ItemSource[r] : n.ItemSource[r] = t.longs === String ? i.Long.prototype.toString.call(e.ItemSource[r]) : t.longs === Number ? new i.LongBits(e.ItemSource[r].low >>> 0, e.ItemSource[r].high >>> 0).toNumber() : e.ItemSource[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemGetWay_Config"
            }, e
        }(), a.MapWorld_Config = function() {
            function e(e) {
                if (this.ChapterIds = [], this.Position = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ChapterIds = i.emptyArray, e.prototype.OwningMap = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Position = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ChapterIds && e.ChapterIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.ChapterIds.length; ++n) t.int64(e.ChapterIds[n]);
                    t.ldelim()
                }
                if (null != e.OwningMap && Object.hasOwnProperty.call(e, "OwningMap") && t.uint32(32).int64(e.OwningMap), null != e.Position && e.Position.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.Position.length; ++n) t.int64(e.Position[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MapWorld_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.ChapterIds && r.ChapterIds.length || (r.ChapterIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ChapterIds.push(e.int64());
                            else r.ChapterIds.push(e.int64());
                            break;
                        case 4:
                            r.OwningMap = e.int64();
                            break;
                        case 5:
                            if (r.Position && r.Position.length || (r.Position = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Position.push(e.int64());
                            else r.Position.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.ChapterIds && e.hasOwnProperty("ChapterIds")) {
                    if (!Array.isArray(e.ChapterIds)) return "ChapterIds: array expected";
                    for (var t = 0; t < e.ChapterIds.length; ++t)
                        if (!(i.isInteger(e.ChapterIds[t]) || e.ChapterIds[t] && i.isInteger(e.ChapterIds[t].low) && i.isInteger(e.ChapterIds[t].high))) return "ChapterIds: integer|Long[] expected"
                }
                if (null != e.OwningMap && e.hasOwnProperty("OwningMap") && !(i.isInteger(e.OwningMap) || e.OwningMap && i.isInteger(e.OwningMap.low) && i.isInteger(e.OwningMap.high))) return "OwningMap: integer|Long expected";
                if (null != e.Position && e.hasOwnProperty("Position")) {
                    if (!Array.isArray(e.Position)) return "Position: array expected";
                    for (t = 0; t < e.Position.length; ++t)
                        if (!(i.isInteger(e.Position[t]) || e.Position[t] && i.isInteger(e.Position[t].low) && i.isInteger(e.Position[t].high))) return "Position: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MapWorld_Config) return e;
                var t = new a.MapWorld_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.ChapterIds) {
                    if (!Array.isArray(e.ChapterIds)) throw TypeError(".MapWorld_Config.ChapterIds: array expected");
                    t.ChapterIds = [];
                    for (var n = 0; n < e.ChapterIds.length; ++n) i.Long ? (t.ChapterIds[n] = i.Long.fromValue(e.ChapterIds[n])).unsigned = !1 : "string" == typeof e.ChapterIds[n] ? t.ChapterIds[n] = parseInt(e.ChapterIds[n], 10) : "number" == typeof e.ChapterIds[n] ? t.ChapterIds[n] = e.ChapterIds[n] : "object" == typeof e.ChapterIds[n] && (t.ChapterIds[n] = new i.LongBits(e.ChapterIds[n].low >>> 0, e.ChapterIds[n].high >>> 0).toNumber())
                }
                if (null != e.OwningMap && (i.Long ? (t.OwningMap = i.Long.fromValue(e.OwningMap)).unsigned = !1 : "string" == typeof e.OwningMap ? t.OwningMap = parseInt(e.OwningMap, 10) : "number" == typeof e.OwningMap ? t.OwningMap = e.OwningMap : "object" == typeof e.OwningMap && (t.OwningMap = new i.LongBits(e.OwningMap.low >>> 0, e.OwningMap.high >>> 0).toNumber())), e.Position) {
                    if (!Array.isArray(e.Position)) throw TypeError(".MapWorld_Config.Position: array expected");
                    for (t.Position = [], n = 0; n < e.Position.length; ++n) i.Long ? (t.Position[n] = i.Long.fromValue(e.Position[n])).unsigned = !1 : "string" == typeof e.Position[n] ? t.Position[n] = parseInt(e.Position[n], 10) : "number" == typeof e.Position[n] ? t.Position[n] = e.Position[n] : "object" == typeof e.Position[n] && (t.Position[n] = new i.LongBits(e.Position[n].low >>> 0, e.Position[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ChapterIds = [], n.Position = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.OwningMap = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OwningMap = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.ChapterIds && e.ChapterIds.length) {
                    n.ChapterIds = [];
                    for (var r = 0; r < e.ChapterIds.length; ++r) "number" == typeof e.ChapterIds[r] ? n.ChapterIds[r] = t.longs === String ? String(e.ChapterIds[r]) : e.ChapterIds[r] : n.ChapterIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.ChapterIds[r]) : t.longs === Number ? new i.LongBits(e.ChapterIds[r].low >>> 0, e.ChapterIds[r].high >>> 0).toNumber() : e.ChapterIds[r]
                }
                if (null != e.OwningMap && e.hasOwnProperty("OwningMap") && ("number" == typeof e.OwningMap ? n.OwningMap = t.longs === String ? String(e.OwningMap) : e.OwningMap : n.OwningMap = t.longs === String ? i.Long.prototype.toString.call(e.OwningMap) : t.longs === Number ? new i.LongBits(e.OwningMap.low >>> 0, e.OwningMap.high >>> 0).toNumber() : e.OwningMap), e.Position && e.Position.length)
                    for (n.Position = [], r = 0; r < e.Position.length; ++r) "number" == typeof e.Position[r] ? n.Position[r] = t.longs === String ? String(e.Position[r]) : e.Position[r] : n.Position[r] = t.longs === String ? i.Long.prototype.toString.call(e.Position[r]) : t.longs === Number ? new i.LongBits(e.Position[r].low >>> 0, e.Position[r].high >>> 0).toNumber() : e.Position[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MapWorld_Config"
            }, e
        }(), a.Audio_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Path = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Path && Object.hasOwnProperty.call(e, "Path") && t.uint32(26).string(e.Path), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Audio_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Path = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Path && e.hasOwnProperty("Path") && !i.isString(e.Path) ? "Path: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Audio_Config) return e;
                var t = new a.Audio_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Path && (t.Path = String(e.Path)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Path = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Path && e.hasOwnProperty("Path") && (n.Path = e.Path), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Audio_Config"
            }, e
        }(), a.MallActivity_Config = function() {
            function e(e) {
                if (this.Gifts = [], this.Position = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Interval = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Gifts = i.emptyArray, e.prototype.Position = i.emptyArray, e.prototype.ResetType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.Icon = "", e.prototype.Show = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnLock = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Reminder = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Interval && Object.hasOwnProperty.call(e, "Interval") && t.uint32(16).int64(e.Interval), null != e.Gifts && e.Gifts.length)
                    for (var n = 0; n < e.Gifts.length; ++n) a.IntArray_Config.encode(e.Gifts[n], t.uint32(26).fork()).ldelim();
                if (null != e.Position && e.Position.length)
                    for (n = 0; n < e.Position.length; ++n) a.IntArray_Config.encode(e.Position[n], t.uint32(50).fork()).ldelim();
                return null != e.ResetType && Object.hasOwnProperty.call(e, "ResetType") && t.uint32(56).int64(e.ResetType), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(66).string(e.Name), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(74).string(e.Icon), null != e.Show && Object.hasOwnProperty.call(e, "Show") && t.uint32(80).int64(e.Show), null != e.UnLock && Object.hasOwnProperty.call(e, "UnLock") && t.uint32(88).int64(e.UnLock), null != e.Reminder && Object.hasOwnProperty.call(e, "Reminder") && t.uint32(98).string(e.Reminder), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MallActivity_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Interval = e.int64();
                            break;
                        case 3:
                            r.Gifts && r.Gifts.length || (r.Gifts = []), r.Gifts.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Position && r.Position.length || (r.Position = []), r.Position.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.ResetType = e.int64();
                            break;
                        case 8:
                            r.Name = e.string();
                            break;
                        case 9:
                            r.Icon = e.string();
                            break;
                        case 10:
                            r.Show = e.int64();
                            break;
                        case 11:
                            r.UnLock = e.int64();
                            break;
                        case 12:
                            r.Reminder = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Interval && e.hasOwnProperty("Interval") && !(i.isInteger(e.Interval) || e.Interval && i.isInteger(e.Interval.low) && i.isInteger(e.Interval.high))) return "Interval: integer|Long expected";
                if (null != e.Gifts && e.hasOwnProperty("Gifts")) {
                    if (!Array.isArray(e.Gifts)) return "Gifts: array expected";
                    for (var t = 0; t < e.Gifts.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Gifts[t])) return "Gifts." + n
                }
                if (null != e.Position && e.hasOwnProperty("Position")) {
                    if (!Array.isArray(e.Position)) return "Position: array expected";
                    for (t = 0; t < e.Position.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Position[t])) return "Position." + n
                    }
                }
                return null != e.ResetType && e.hasOwnProperty("ResetType") && !(i.isInteger(e.ResetType) || e.ResetType && i.isInteger(e.ResetType.low) && i.isInteger(e.ResetType.high)) ? "ResetType: integer|Long expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null != e.Show && e.hasOwnProperty("Show") && !(i.isInteger(e.Show) || e.Show && i.isInteger(e.Show.low) && i.isInteger(e.Show.high)) ? "Show: integer|Long expected" : null != e.UnLock && e.hasOwnProperty("UnLock") && !(i.isInteger(e.UnLock) || e.UnLock && i.isInteger(e.UnLock.low) && i.isInteger(e.UnLock.high)) ? "UnLock: integer|Long expected" : null != e.Reminder && e.hasOwnProperty("Reminder") && !i.isString(e.Reminder) ? "Reminder: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MallActivity_Config) return e;
                var t = new a.MallActivity_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Interval && (i.Long ? (t.Interval = i.Long.fromValue(e.Interval)).unsigned = !1 : "string" == typeof e.Interval ? t.Interval = parseInt(e.Interval, 10) : "number" == typeof e.Interval ? t.Interval = e.Interval : "object" == typeof e.Interval && (t.Interval = new i.LongBits(e.Interval.low >>> 0, e.Interval.high >>> 0).toNumber())), e.Gifts) {
                    if (!Array.isArray(e.Gifts)) throw TypeError(".MallActivity_Config.Gifts: array expected");
                    t.Gifts = [];
                    for (var n = 0; n < e.Gifts.length; ++n) {
                        if ("object" != typeof e.Gifts[n]) throw TypeError(".MallActivity_Config.Gifts: object expected");
                        t.Gifts[n] = a.IntArray_Config.fromObject(e.Gifts[n])
                    }
                }
                if (e.Position) {
                    if (!Array.isArray(e.Position)) throw TypeError(".MallActivity_Config.Position: array expected");
                    for (t.Position = [], n = 0; n < e.Position.length; ++n) {
                        if ("object" != typeof e.Position[n]) throw TypeError(".MallActivity_Config.Position: object expected");
                        t.Position[n] = a.IntArray_Config.fromObject(e.Position[n])
                    }
                }
                return null != e.ResetType && (i.Long ? (t.ResetType = i.Long.fromValue(e.ResetType)).unsigned = !1 : "string" == typeof e.ResetType ? t.ResetType = parseInt(e.ResetType, 10) : "number" == typeof e.ResetType ? t.ResetType = e.ResetType : "object" == typeof e.ResetType && (t.ResetType = new i.LongBits(e.ResetType.low >>> 0, e.ResetType.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.Icon && (t.Icon = String(e.Icon)), null != e.Show && (i.Long ? (t.Show = i.Long.fromValue(e.Show)).unsigned = !1 : "string" == typeof e.Show ? t.Show = parseInt(e.Show, 10) : "number" == typeof e.Show ? t.Show = e.Show : "object" == typeof e.Show && (t.Show = new i.LongBits(e.Show.low >>> 0, e.Show.high >>> 0).toNumber())), null != e.UnLock && (i.Long ? (t.UnLock = i.Long.fromValue(e.UnLock)).unsigned = !1 : "string" == typeof e.UnLock ? t.UnLock = parseInt(e.UnLock, 10) : "number" == typeof e.UnLock ? t.UnLock = e.UnLock : "object" == typeof e.UnLock && (t.UnLock = new i.LongBits(e.UnLock.low >>> 0, e.UnLock.high >>> 0).toNumber())), null != e.Reminder && (t.Reminder = String(e.Reminder)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Gifts = [], n.Position = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Interval = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Interval = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ResetType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ResetType = t.longs === String ? "0" : 0, n.Name = "", n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.Show = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Show = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.UnLock = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UnLock = t.longs === String ? "0" : 0, n.Reminder = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Interval && e.hasOwnProperty("Interval") && ("number" == typeof e.Interval ? n.Interval = t.longs === String ? String(e.Interval) : e.Interval : n.Interval = t.longs === String ? i.Long.prototype.toString.call(e.Interval) : t.longs === Number ? new i.LongBits(e.Interval.low >>> 0, e.Interval.high >>> 0).toNumber() : e.Interval), e.Gifts && e.Gifts.length) {
                    n.Gifts = [];
                    for (var r = 0; r < e.Gifts.length; ++r) n.Gifts[r] = a.IntArray_Config.toObject(e.Gifts[r], t)
                }
                if (e.Position && e.Position.length)
                    for (n.Position = [], r = 0; r < e.Position.length; ++r) n.Position[r] = a.IntArray_Config.toObject(e.Position[r], t);
                return null != e.ResetType && e.hasOwnProperty("ResetType") && ("number" == typeof e.ResetType ? n.ResetType = t.longs === String ? String(e.ResetType) : e.ResetType : n.ResetType = t.longs === String ? i.Long.prototype.toString.call(e.ResetType) : t.longs === Number ? new i.LongBits(e.ResetType.low >>> 0, e.ResetType.high >>> 0).toNumber() : e.ResetType), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), null != e.Show && e.hasOwnProperty("Show") && ("number" == typeof e.Show ? n.Show = t.longs === String ? String(e.Show) : e.Show : n.Show = t.longs === String ? i.Long.prototype.toString.call(e.Show) : t.longs === Number ? new i.LongBits(e.Show.low >>> 0, e.Show.high >>> 0).toNumber() : e.Show), null != e.UnLock && e.hasOwnProperty("UnLock") && ("number" == typeof e.UnLock ? n.UnLock = t.longs === String ? String(e.UnLock) : e.UnLock : n.UnLock = t.longs === String ? i.Long.prototype.toString.call(e.UnLock) : t.longs === Number ? new i.LongBits(e.UnLock.low >>> 0, e.UnLock.high >>> 0).toNumber() : e.UnLock), null != e.Reminder && e.hasOwnProperty("Reminder") && (n.Reminder = e.Reminder), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MallActivity_Config"
            }, e
        }(), a.DaysGift_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Days = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Phase = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Days && Object.hasOwnProperty.call(e, "Days") && t.uint32(16).int64(e.Days), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return null != e.Phase && Object.hasOwnProperty.call(e, "Phase") && t.uint32(32).int64(e.Phase), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DaysGift_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Days = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Phase = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Days && e.hasOwnProperty("Days") && !(i.isInteger(e.Days) || e.Days && i.isInteger(e.Days.low) && i.isInteger(e.Days.high))) return "Days: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.Phase && e.hasOwnProperty("Phase") && !(i.isInteger(e.Phase) || e.Phase && i.isInteger(e.Phase.low) && i.isInteger(e.Phase.high)) ? "Phase: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.DaysGift_Config) return e;
                var t = new a.DaysGift_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Days && (i.Long ? (t.Days = i.Long.fromValue(e.Days)).unsigned = !1 : "string" == typeof e.Days ? t.Days = parseInt(e.Days, 10) : "number" == typeof e.Days ? t.Days = e.Days : "object" == typeof e.Days && (t.Days = new i.LongBits(e.Days.low >>> 0, e.Days.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".DaysGift_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".DaysGift_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.Phase && (i.Long ? (t.Phase = i.Long.fromValue(e.Phase)).unsigned = !1 : "string" == typeof e.Phase ? t.Phase = parseInt(e.Phase, 10) : "number" == typeof e.Phase ? t.Phase = e.Phase : "object" == typeof e.Phase && (t.Phase = new i.LongBits(e.Phase.low >>> 0, e.Phase.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Days = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Days = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Phase = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Phase = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Days && e.hasOwnProperty("Days") && ("number" == typeof e.Days ? n.Days = t.longs === String ? String(e.Days) : e.Days : n.Days = t.longs === String ? i.Long.prototype.toString.call(e.Days) : t.longs === Number ? new i.LongBits(e.Days.low >>> 0, e.Days.high >>> 0).toNumber() : e.Days), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.Phase && e.hasOwnProperty("Phase") && ("number" == typeof e.Phase ? n.Phase = t.longs === String ? String(e.Phase) : e.Phase : n.Phase = t.longs === String ? i.Long.prototype.toString.call(e.Phase) : t.longs === Number ? new i.LongBits(e.Phase.low >>> 0, e.Phase.high >>> 0).toNumber() : e.Phase), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DaysGift_Config"
            }, e
        }(), a.SevenDayPay_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CountId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Phase = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.CountId && Object.hasOwnProperty.call(e, "CountId") && t.uint32(16).int64(e.CountId), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return null != e.Phase && Object.hasOwnProperty.call(e, "Phase") && t.uint32(32).int64(e.Phase), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SevenDayPay_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.CountId = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Phase = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.CountId && e.hasOwnProperty("CountId") && !(i.isInteger(e.CountId) || e.CountId && i.isInteger(e.CountId.low) && i.isInteger(e.CountId.high))) return "CountId: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.Phase && e.hasOwnProperty("Phase") && !(i.isInteger(e.Phase) || e.Phase && i.isInteger(e.Phase.low) && i.isInteger(e.Phase.high)) ? "Phase: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SevenDayPay_Config) return e;
                var t = new a.SevenDayPay_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.CountId && (i.Long ? (t.CountId = i.Long.fromValue(e.CountId)).unsigned = !1 : "string" == typeof e.CountId ? t.CountId = parseInt(e.CountId, 10) : "number" == typeof e.CountId ? t.CountId = e.CountId : "object" == typeof e.CountId && (t.CountId = new i.LongBits(e.CountId.low >>> 0, e.CountId.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".SevenDayPay_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".SevenDayPay_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.Phase && (i.Long ? (t.Phase = i.Long.fromValue(e.Phase)).unsigned = !1 : "string" == typeof e.Phase ? t.Phase = parseInt(e.Phase, 10) : "number" == typeof e.Phase ? t.Phase = e.Phase : "object" == typeof e.Phase && (t.Phase = new i.LongBits(e.Phase.low >>> 0, e.Phase.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.CountId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CountId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Phase = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Phase = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.CountId && e.hasOwnProperty("CountId") && ("number" == typeof e.CountId ? n.CountId = t.longs === String ? String(e.CountId) : e.CountId : n.CountId = t.longs === String ? i.Long.prototype.toString.call(e.CountId) : t.longs === Number ? new i.LongBits(e.CountId.low >>> 0, e.CountId.high >>> 0).toNumber() : e.CountId), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.Phase && e.hasOwnProperty("Phase") && ("number" == typeof e.Phase ? n.Phase = t.longs === String ? String(e.Phase) : e.Phase : n.Phase = t.longs === String ? i.Long.prototype.toString.call(e.Phase) : t.longs === Number ? new i.LongBits(e.Phase.low >>> 0, e.Phase.high >>> 0).toNumber() : e.Phase), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SevenDayPay_Config"
            }, e
        }(), a.SubscribePrivilege_Config = function() {
            function e(e) {
                if (this.Privilege = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Privilege = i.emptyArray, e.prototype.Days = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BannerColor = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PackId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Unlock = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DaysLimit = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Privilege && e.Privilege.length)
                    for (var n = 0; n < e.Privilege.length; ++n) a.IntArray_Config.encode(e.Privilege[n], t.uint32(18).fork()).ldelim();
                return null != e.Days && Object.hasOwnProperty.call(e, "Days") && t.uint32(24).int64(e.Days), null != e.SortIndex && Object.hasOwnProperty.call(e, "SortIndex") && t.uint32(64).int64(e.SortIndex), null != e.BannerColor && Object.hasOwnProperty.call(e, "BannerColor") && t.uint32(72).int64(e.BannerColor), null != e.PackId && Object.hasOwnProperty.call(e, "PackId") && t.uint32(80).int64(e.PackId), null != e.Unlock && Object.hasOwnProperty.call(e, "Unlock") && t.uint32(88).int64(e.Unlock), null != e.DaysLimit && Object.hasOwnProperty.call(e, "DaysLimit") && t.uint32(96).int64(e.DaysLimit), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SubscribePrivilege_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Privilege && r.Privilege.length || (r.Privilege = []), r.Privilege.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Days = e.int64();
                            break;
                        case 8:
                            r.SortIndex = e.int64();
                            break;
                        case 9:
                            r.BannerColor = e.int64();
                            break;
                        case 10:
                            r.PackId = e.int64();
                            break;
                        case 11:
                            r.Unlock = e.int64();
                            break;
                        case 12:
                            r.DaysLimit = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Privilege && e.hasOwnProperty("Privilege")) {
                    if (!Array.isArray(e.Privilege)) return "Privilege: array expected";
                    for (var t = 0; t < e.Privilege.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Privilege[t]);
                        if (n) return "Privilege." + n
                    }
                }
                return null != e.Days && e.hasOwnProperty("Days") && !(i.isInteger(e.Days) || e.Days && i.isInteger(e.Days.low) && i.isInteger(e.Days.high)) ? "Days: integer|Long expected" : null != e.SortIndex && e.hasOwnProperty("SortIndex") && !(i.isInteger(e.SortIndex) || e.SortIndex && i.isInteger(e.SortIndex.low) && i.isInteger(e.SortIndex.high)) ? "SortIndex: integer|Long expected" : null != e.BannerColor && e.hasOwnProperty("BannerColor") && !(i.isInteger(e.BannerColor) || e.BannerColor && i.isInteger(e.BannerColor.low) && i.isInteger(e.BannerColor.high)) ? "BannerColor: integer|Long expected" : null != e.PackId && e.hasOwnProperty("PackId") && !(i.isInteger(e.PackId) || e.PackId && i.isInteger(e.PackId.low) && i.isInteger(e.PackId.high)) ? "PackId: integer|Long expected" : null != e.Unlock && e.hasOwnProperty("Unlock") && !(i.isInteger(e.Unlock) || e.Unlock && i.isInteger(e.Unlock.low) && i.isInteger(e.Unlock.high)) ? "Unlock: integer|Long expected" : null != e.DaysLimit && e.hasOwnProperty("DaysLimit") && !(i.isInteger(e.DaysLimit) || e.DaysLimit && i.isInteger(e.DaysLimit.low) && i.isInteger(e.DaysLimit.high)) ? "DaysLimit: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SubscribePrivilege_Config) return e;
                var t = new a.SubscribePrivilege_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Privilege) {
                    if (!Array.isArray(e.Privilege)) throw TypeError(".SubscribePrivilege_Config.Privilege: array expected");
                    t.Privilege = [];
                    for (var n = 0; n < e.Privilege.length; ++n) {
                        if ("object" != typeof e.Privilege[n]) throw TypeError(".SubscribePrivilege_Config.Privilege: object expected");
                        t.Privilege[n] = a.IntArray_Config.fromObject(e.Privilege[n])
                    }
                }
                return null != e.Days && (i.Long ? (t.Days = i.Long.fromValue(e.Days)).unsigned = !1 : "string" == typeof e.Days ? t.Days = parseInt(e.Days, 10) : "number" == typeof e.Days ? t.Days = e.Days : "object" == typeof e.Days && (t.Days = new i.LongBits(e.Days.low >>> 0, e.Days.high >>> 0).toNumber())), null != e.SortIndex && (i.Long ? (t.SortIndex = i.Long.fromValue(e.SortIndex)).unsigned = !1 : "string" == typeof e.SortIndex ? t.SortIndex = parseInt(e.SortIndex, 10) : "number" == typeof e.SortIndex ? t.SortIndex = e.SortIndex : "object" == typeof e.SortIndex && (t.SortIndex = new i.LongBits(e.SortIndex.low >>> 0, e.SortIndex.high >>> 0).toNumber())), null != e.BannerColor && (i.Long ? (t.BannerColor = i.Long.fromValue(e.BannerColor)).unsigned = !1 : "string" == typeof e.BannerColor ? t.BannerColor = parseInt(e.BannerColor, 10) : "number" == typeof e.BannerColor ? t.BannerColor = e.BannerColor : "object" == typeof e.BannerColor && (t.BannerColor = new i.LongBits(e.BannerColor.low >>> 0, e.BannerColor.high >>> 0).toNumber())), null != e.PackId && (i.Long ? (t.PackId = i.Long.fromValue(e.PackId)).unsigned = !1 : "string" == typeof e.PackId ? t.PackId = parseInt(e.PackId, 10) : "number" == typeof e.PackId ? t.PackId = e.PackId : "object" == typeof e.PackId && (t.PackId = new i.LongBits(e.PackId.low >>> 0, e.PackId.high >>> 0).toNumber())), null != e.Unlock && (i.Long ? (t.Unlock = i.Long.fromValue(e.Unlock)).unsigned = !1 : "string" == typeof e.Unlock ? t.Unlock = parseInt(e.Unlock, 10) : "number" == typeof e.Unlock ? t.Unlock = e.Unlock : "object" == typeof e.Unlock && (t.Unlock = new i.LongBits(e.Unlock.low >>> 0, e.Unlock.high >>> 0).toNumber())), null != e.DaysLimit && (i.Long ? (t.DaysLimit = i.Long.fromValue(e.DaysLimit)).unsigned = !1 : "string" == typeof e.DaysLimit ? t.DaysLimit = parseInt(e.DaysLimit, 10) : "number" == typeof e.DaysLimit ? t.DaysLimit = e.DaysLimit : "object" == typeof e.DaysLimit && (t.DaysLimit = new i.LongBits(e.DaysLimit.low >>> 0, e.DaysLimit.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Privilege = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Days = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Days = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortIndex = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.BannerColor = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BannerColor = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PackId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PackId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Unlock = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Unlock = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DaysLimit = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DaysLimit = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Privilege && e.Privilege.length) {
                    n.Privilege = [];
                    for (var r = 0; r < e.Privilege.length; ++r) n.Privilege[r] = a.IntArray_Config.toObject(e.Privilege[r], t)
                }
                return null != e.Days && e.hasOwnProperty("Days") && ("number" == typeof e.Days ? n.Days = t.longs === String ? String(e.Days) : e.Days : n.Days = t.longs === String ? i.Long.prototype.toString.call(e.Days) : t.longs === Number ? new i.LongBits(e.Days.low >>> 0, e.Days.high >>> 0).toNumber() : e.Days), null != e.SortIndex && e.hasOwnProperty("SortIndex") && ("number" == typeof e.SortIndex ? n.SortIndex = t.longs === String ? String(e.SortIndex) : e.SortIndex : n.SortIndex = t.longs === String ? i.Long.prototype.toString.call(e.SortIndex) : t.longs === Number ? new i.LongBits(e.SortIndex.low >>> 0, e.SortIndex.high >>> 0).toNumber() : e.SortIndex), null != e.BannerColor && e.hasOwnProperty("BannerColor") && ("number" == typeof e.BannerColor ? n.BannerColor = t.longs === String ? String(e.BannerColor) : e.BannerColor : n.BannerColor = t.longs === String ? i.Long.prototype.toString.call(e.BannerColor) : t.longs === Number ? new i.LongBits(e.BannerColor.low >>> 0, e.BannerColor.high >>> 0).toNumber() : e.BannerColor), null != e.PackId && e.hasOwnProperty("PackId") && ("number" == typeof e.PackId ? n.PackId = t.longs === String ? String(e.PackId) : e.PackId : n.PackId = t.longs === String ? i.Long.prototype.toString.call(e.PackId) : t.longs === Number ? new i.LongBits(e.PackId.low >>> 0, e.PackId.high >>> 0).toNumber() : e.PackId), null != e.Unlock && e.hasOwnProperty("Unlock") && ("number" == typeof e.Unlock ? n.Unlock = t.longs === String ? String(e.Unlock) : e.Unlock : n.Unlock = t.longs === String ? i.Long.prototype.toString.call(e.Unlock) : t.longs === Number ? new i.LongBits(e.Unlock.low >>> 0, e.Unlock.high >>> 0).toNumber() : e.Unlock), null != e.DaysLimit && e.hasOwnProperty("DaysLimit") && ("number" == typeof e.DaysLimit ? n.DaysLimit = t.longs === String ? String(e.DaysLimit) : e.DaysLimit : n.DaysLimit = t.longs === String ? i.Long.prototype.toString.call(e.DaysLimit) : t.longs === Number ? new i.LongBits(e.DaysLimit.low >>> 0, e.DaysLimit.high >>> 0).toNumber() : e.DaysLimit), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SubscribePrivilege_Config"
            }, e
        }(), a.GoodFund_Config = function() {
            function e(e) {
                if (this.DailyRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DailyRewards = i.emptyArray, e.prototype.Phase = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.DailyRewards && e.DailyRewards.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.DailyRewards.length; ++n) t.int64(e.DailyRewards[n]);
                    t.ldelim()
                }
                return null != e.Phase && Object.hasOwnProperty.call(e, "Phase") && t.uint32(64).int64(e.Phase), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(72).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GoodFund_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            if (r.DailyRewards && r.DailyRewards.length || (r.DailyRewards = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.DailyRewards.push(e.int64());
                            else r.DailyRewards.push(e.int64());
                            break;
                        case 8:
                            r.Phase = e.int64();
                            break;
                        case 9:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.DailyRewards && e.hasOwnProperty("DailyRewards")) {
                    if (!Array.isArray(e.DailyRewards)) return "DailyRewards: array expected";
                    for (var t = 0; t < e.DailyRewards.length; ++t)
                        if (!(i.isInteger(e.DailyRewards[t]) || e.DailyRewards[t] && i.isInteger(e.DailyRewards[t].low) && i.isInteger(e.DailyRewards[t].high))) return "DailyRewards: integer|Long[] expected"
                }
                return null != e.Phase && e.hasOwnProperty("Phase") && !(i.isInteger(e.Phase) || e.Phase && i.isInteger(e.Phase.low) && i.isInteger(e.Phase.high)) ? "Phase: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GoodFund_Config) return e;
                var t = new a.GoodFund_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.DailyRewards) {
                    if (!Array.isArray(e.DailyRewards)) throw TypeError(".GoodFund_Config.DailyRewards: array expected");
                    t.DailyRewards = [];
                    for (var n = 0; n < e.DailyRewards.length; ++n) i.Long ? (t.DailyRewards[n] = i.Long.fromValue(e.DailyRewards[n])).unsigned = !1 : "string" == typeof e.DailyRewards[n] ? t.DailyRewards[n] = parseInt(e.DailyRewards[n], 10) : "number" == typeof e.DailyRewards[n] ? t.DailyRewards[n] = e.DailyRewards[n] : "object" == typeof e.DailyRewards[n] && (t.DailyRewards[n] = new i.LongBits(e.DailyRewards[n].low >>> 0, e.DailyRewards[n].high >>> 0).toNumber())
                }
                return null != e.Phase && (i.Long ? (t.Phase = i.Long.fromValue(e.Phase)).unsigned = !1 : "string" == typeof e.Phase ? t.Phase = parseInt(e.Phase, 10) : "number" == typeof e.Phase ? t.Phase = e.Phase : "object" == typeof e.Phase && (t.Phase = new i.LongBits(e.Phase.low >>> 0, e.Phase.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.DailyRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Phase = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Phase = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.DailyRewards && e.DailyRewards.length) {
                    n.DailyRewards = [];
                    for (var r = 0; r < e.DailyRewards.length; ++r) "number" == typeof e.DailyRewards[r] ? n.DailyRewards[r] = t.longs === String ? String(e.DailyRewards[r]) : e.DailyRewards[r] : n.DailyRewards[r] = t.longs === String ? i.Long.prototype.toString.call(e.DailyRewards[r]) : t.longs === Number ? new i.LongBits(e.DailyRewards[r].low >>> 0, e.DailyRewards[r].high >>> 0).toNumber() : e.DailyRewards[r]
                }
                return null != e.Phase && e.hasOwnProperty("Phase") && ("number" == typeof e.Phase ? n.Phase = t.longs === String ? String(e.Phase) : e.Phase : n.Phase = t.longs === String ? i.Long.prototype.toString.call(e.Phase) : t.longs === Number ? new i.LongBits(e.Phase.low >>> 0, e.Phase.high >>> 0).toNumber() : e.Phase), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GoodFund_Config"
            }, e
        }(), a.GrowUpFund_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Stage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Phase = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(16).int64(e.Level), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return null != e.Stage && Object.hasOwnProperty.call(e, "Stage") && t.uint32(32).int64(e.Stage), null != e.Phase && Object.hasOwnProperty.call(e, "Phase") && t.uint32(40).int64(e.Phase), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(48).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GrowUpFund_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Level = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Stage = e.int64();
                            break;
                        case 5:
                            r.Phase = e.int64();
                            break;
                        case 6:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.Stage && e.hasOwnProperty("Stage") && !(i.isInteger(e.Stage) || e.Stage && i.isInteger(e.Stage.low) && i.isInteger(e.Stage.high)) ? "Stage: integer|Long expected" : null != e.Phase && e.hasOwnProperty("Phase") && !(i.isInteger(e.Phase) || e.Phase && i.isInteger(e.Phase.low) && i.isInteger(e.Phase.high)) ? "Phase: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GrowUpFund_Config) return e;
                var t = new a.GrowUpFund_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".GrowUpFund_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".GrowUpFund_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.Stage && (i.Long ? (t.Stage = i.Long.fromValue(e.Stage)).unsigned = !1 : "string" == typeof e.Stage ? t.Stage = parseInt(e.Stage, 10) : "number" == typeof e.Stage ? t.Stage = e.Stage : "object" == typeof e.Stage && (t.Stage = new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber())), null != e.Phase && (i.Long ? (t.Phase = i.Long.fromValue(e.Phase)).unsigned = !1 : "string" == typeof e.Phase ? t.Phase = parseInt(e.Phase, 10) : "number" == typeof e.Phase ? t.Phase = e.Phase : "object" == typeof e.Phase && (t.Phase = new i.LongBits(e.Phase.low >>> 0, e.Phase.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Stage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Stage = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Phase = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Phase = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.Stage && e.hasOwnProperty("Stage") && ("number" == typeof e.Stage ? n.Stage = t.longs === String ? String(e.Stage) : e.Stage : n.Stage = t.longs === String ? i.Long.prototype.toString.call(e.Stage) : t.longs === Number ? new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber() : e.Stage), null != e.Phase && e.hasOwnProperty("Phase") && ("number" == typeof e.Phase ? n.Phase = t.longs === String ? String(e.Phase) : e.Phase : n.Phase = t.longs === String ? i.Long.prototype.toString.call(e.Phase) : t.longs === Number ? new i.LongBits(e.Phase.low >>> 0, e.Phase.high >>> 0).toNumber() : e.Phase), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GrowUpFund_Config"
            }, e
        }(), a.ClockIn_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ClockIn_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ClockIn_Config) return e;
                var t = new a.ClockIn_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".ClockIn_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".ClockIn_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ClockIn_Config"
            }, e
        }(), a.HangUpDrop_Config = function() {
            function e(e) {
                if (this.Items = [], this.ItemsShow = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Items = i.emptyArray, e.prototype.Days = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ExchangeDays = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShopId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Img = "", e.prototype.ItemsShow = i.emptyArray, e.prototype.TitleIcon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Items && e.Items.length)
                    for (var n = 0; n < e.Items.length; ++n) a.IntArray_Config.encode(e.Items[n], t.uint32(26).fork()).ldelim();
                if (null != e.Days && Object.hasOwnProperty.call(e, "Days") && t.uint32(32).int64(e.Days), null != e.ExchangeDays && Object.hasOwnProperty.call(e, "ExchangeDays") && t.uint32(40).int64(e.ExchangeDays), null != e.ShopId && Object.hasOwnProperty.call(e, "ShopId") && t.uint32(48).int64(e.ShopId), null != e.Img && Object.hasOwnProperty.call(e, "Img") && t.uint32(58).string(e.Img), null != e.ItemsShow && e.ItemsShow.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.ItemsShow.length; ++n) t.int64(e.ItemsShow[n]);
                    t.ldelim()
                }
                return null != e.TitleIcon && Object.hasOwnProperty.call(e, "TitleIcon") && t.uint32(74).string(e.TitleIcon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HangUpDrop_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Items && r.Items.length || (r.Items = []), r.Items.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Days = e.int64();
                            break;
                        case 5:
                            r.ExchangeDays = e.int64();
                            break;
                        case 6:
                            r.ShopId = e.int64();
                            break;
                        case 7:
                            r.Img = e.string();
                            break;
                        case 8:
                            if (r.ItemsShow && r.ItemsShow.length || (r.ItemsShow = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ItemsShow.push(e.int64());
                            else r.ItemsShow.push(e.int64());
                            break;
                        case 9:
                            r.TitleIcon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Items[t]);
                        if (n) return "Items." + n
                    }
                }
                if (null != e.Days && e.hasOwnProperty("Days") && !(i.isInteger(e.Days) || e.Days && i.isInteger(e.Days.low) && i.isInteger(e.Days.high))) return "Days: integer|Long expected";
                if (null != e.ExchangeDays && e.hasOwnProperty("ExchangeDays") && !(i.isInteger(e.ExchangeDays) || e.ExchangeDays && i.isInteger(e.ExchangeDays.low) && i.isInteger(e.ExchangeDays.high))) return "ExchangeDays: integer|Long expected";
                if (null != e.ShopId && e.hasOwnProperty("ShopId") && !(i.isInteger(e.ShopId) || e.ShopId && i.isInteger(e.ShopId.low) && i.isInteger(e.ShopId.high))) return "ShopId: integer|Long expected";
                if (null != e.Img && e.hasOwnProperty("Img") && !i.isString(e.Img)) return "Img: string expected";
                if (null != e.ItemsShow && e.hasOwnProperty("ItemsShow")) {
                    if (!Array.isArray(e.ItemsShow)) return "ItemsShow: array expected";
                    for (t = 0; t < e.ItemsShow.length; ++t)
                        if (!(i.isInteger(e.ItemsShow[t]) || e.ItemsShow[t] && i.isInteger(e.ItemsShow[t].low) && i.isInteger(e.ItemsShow[t].high))) return "ItemsShow: integer|Long[] expected"
                }
                return null != e.TitleIcon && e.hasOwnProperty("TitleIcon") && !i.isString(e.TitleIcon) ? "TitleIcon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HangUpDrop_Config) return e;
                var t = new a.HangUpDrop_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".HangUpDrop_Config.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) {
                        if ("object" != typeof e.Items[n]) throw TypeError(".HangUpDrop_Config.Items: object expected");
                        t.Items[n] = a.IntArray_Config.fromObject(e.Items[n])
                    }
                }
                if (null != e.Days && (i.Long ? (t.Days = i.Long.fromValue(e.Days)).unsigned = !1 : "string" == typeof e.Days ? t.Days = parseInt(e.Days, 10) : "number" == typeof e.Days ? t.Days = e.Days : "object" == typeof e.Days && (t.Days = new i.LongBits(e.Days.low >>> 0, e.Days.high >>> 0).toNumber())), null != e.ExchangeDays && (i.Long ? (t.ExchangeDays = i.Long.fromValue(e.ExchangeDays)).unsigned = !1 : "string" == typeof e.ExchangeDays ? t.ExchangeDays = parseInt(e.ExchangeDays, 10) : "number" == typeof e.ExchangeDays ? t.ExchangeDays = e.ExchangeDays : "object" == typeof e.ExchangeDays && (t.ExchangeDays = new i.LongBits(e.ExchangeDays.low >>> 0, e.ExchangeDays.high >>> 0).toNumber())), null != e.ShopId && (i.Long ? (t.ShopId = i.Long.fromValue(e.ShopId)).unsigned = !1 : "string" == typeof e.ShopId ? t.ShopId = parseInt(e.ShopId, 10) : "number" == typeof e.ShopId ? t.ShopId = e.ShopId : "object" == typeof e.ShopId && (t.ShopId = new i.LongBits(e.ShopId.low >>> 0, e.ShopId.high >>> 0).toNumber())), null != e.Img && (t.Img = String(e.Img)), e.ItemsShow) {
                    if (!Array.isArray(e.ItemsShow)) throw TypeError(".HangUpDrop_Config.ItemsShow: array expected");
                    for (t.ItemsShow = [], n = 0; n < e.ItemsShow.length; ++n) i.Long ? (t.ItemsShow[n] = i.Long.fromValue(e.ItemsShow[n])).unsigned = !1 : "string" == typeof e.ItemsShow[n] ? t.ItemsShow[n] = parseInt(e.ItemsShow[n], 10) : "number" == typeof e.ItemsShow[n] ? t.ItemsShow[n] = e.ItemsShow[n] : "object" == typeof e.ItemsShow[n] && (t.ItemsShow[n] = new i.LongBits(e.ItemsShow[n].low >>> 0, e.ItemsShow[n].high >>> 0).toNumber())
                }
                return null != e.TitleIcon && (t.TitleIcon = String(e.TitleIcon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = [], n.ItemsShow = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Days = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Days = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ExchangeDays = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ExchangeDays = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ShopId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ShopId = t.longs === String ? "0" : 0, n.Img = "", n.TitleIcon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var r = 0; r < e.Items.length; ++r) n.Items[r] = a.IntArray_Config.toObject(e.Items[r], t)
                }
                if (null != e.Days && e.hasOwnProperty("Days") && ("number" == typeof e.Days ? n.Days = t.longs === String ? String(e.Days) : e.Days : n.Days = t.longs === String ? i.Long.prototype.toString.call(e.Days) : t.longs === Number ? new i.LongBits(e.Days.low >>> 0, e.Days.high >>> 0).toNumber() : e.Days), null != e.ExchangeDays && e.hasOwnProperty("ExchangeDays") && ("number" == typeof e.ExchangeDays ? n.ExchangeDays = t.longs === String ? String(e.ExchangeDays) : e.ExchangeDays : n.ExchangeDays = t.longs === String ? i.Long.prototype.toString.call(e.ExchangeDays) : t.longs === Number ? new i.LongBits(e.ExchangeDays.low >>> 0, e.ExchangeDays.high >>> 0).toNumber() : e.ExchangeDays), null != e.ShopId && e.hasOwnProperty("ShopId") && ("number" == typeof e.ShopId ? n.ShopId = t.longs === String ? String(e.ShopId) : e.ShopId : n.ShopId = t.longs === String ? i.Long.prototype.toString.call(e.ShopId) : t.longs === Number ? new i.LongBits(e.ShopId.low >>> 0, e.ShopId.high >>> 0).toNumber() : e.ShopId), null != e.Img && e.hasOwnProperty("Img") && (n.Img = e.Img), e.ItemsShow && e.ItemsShow.length)
                    for (n.ItemsShow = [], r = 0; r < e.ItemsShow.length; ++r) "number" == typeof e.ItemsShow[r] ? n.ItemsShow[r] = t.longs === String ? String(e.ItemsShow[r]) : e.ItemsShow[r] : n.ItemsShow[r] = t.longs === String ? i.Long.prototype.toString.call(e.ItemsShow[r]) : t.longs === Number ? new i.LongBits(e.ItemsShow[r].low >>> 0, e.ItemsShow[r].high >>> 0).toNumber() : e.ItemsShow[r];
                return null != e.TitleIcon && e.hasOwnProperty("TitleIcon") && (n.TitleIcon = e.TitleIcon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HangUpDrop_Config"
            }, e
        }(), a.FirstPay_Config = function() {
            function e(e) {
                if (this.Rewards1 = [], this.Rewards2 = [], this.Rewards3 = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards1 = i.emptyArray, e.prototype.Rewards2 = i.emptyArray, e.prototype.Rewards3 = i.emptyArray, e.prototype.GiftId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Texture = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards1 && e.Rewards1.length)
                    for (var n = 0; n < e.Rewards1.length; ++n) a.IntArray_Config.encode(e.Rewards1[n], t.uint32(18).fork()).ldelim();
                if (null != e.Rewards2 && e.Rewards2.length)
                    for (n = 0; n < e.Rewards2.length; ++n) a.IntArray_Config.encode(e.Rewards2[n], t.uint32(26).fork()).ldelim();
                if (null != e.Rewards3 && e.Rewards3.length)
                    for (n = 0; n < e.Rewards3.length; ++n) a.IntArray_Config.encode(e.Rewards3[n], t.uint32(34).fork()).ldelim();
                return null != e.GiftId && Object.hasOwnProperty.call(e, "GiftId") && t.uint32(40).int64(e.GiftId), null != e.Texture && Object.hasOwnProperty.call(e, "Texture") && t.uint32(50).string(e.Texture), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FirstPay_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Rewards1 && r.Rewards1.length || (r.Rewards1 = []), r.Rewards1.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Rewards2 && r.Rewards2.length || (r.Rewards2 = []), r.Rewards2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Rewards3 && r.Rewards3.length || (r.Rewards3 = []), r.Rewards3.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.GiftId = e.int64();
                            break;
                        case 6:
                            r.Texture = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards1 && e.hasOwnProperty("Rewards1")) {
                    if (!Array.isArray(e.Rewards1)) return "Rewards1: array expected";
                    for (var t = 0; t < e.Rewards1.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards1[t])) return "Rewards1." + n
                }
                if (null != e.Rewards2 && e.hasOwnProperty("Rewards2")) {
                    if (!Array.isArray(e.Rewards2)) return "Rewards2: array expected";
                    for (t = 0; t < e.Rewards2.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards2[t])) return "Rewards2." + n
                }
                if (null != e.Rewards3 && e.hasOwnProperty("Rewards3")) {
                    if (!Array.isArray(e.Rewards3)) return "Rewards3: array expected";
                    for (t = 0; t < e.Rewards3.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Rewards3[t])) return "Rewards3." + n
                    }
                }
                return null != e.GiftId && e.hasOwnProperty("GiftId") && !(i.isInteger(e.GiftId) || e.GiftId && i.isInteger(e.GiftId.low) && i.isInteger(e.GiftId.high)) ? "GiftId: integer|Long expected" : null != e.Texture && e.hasOwnProperty("Texture") && !i.isString(e.Texture) ? "Texture: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.FirstPay_Config) return e;
                var t = new a.FirstPay_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards1) {
                    if (!Array.isArray(e.Rewards1)) throw TypeError(".FirstPay_Config.Rewards1: array expected");
                    t.Rewards1 = [];
                    for (var n = 0; n < e.Rewards1.length; ++n) {
                        if ("object" != typeof e.Rewards1[n]) throw TypeError(".FirstPay_Config.Rewards1: object expected");
                        t.Rewards1[n] = a.IntArray_Config.fromObject(e.Rewards1[n])
                    }
                }
                if (e.Rewards2) {
                    if (!Array.isArray(e.Rewards2)) throw TypeError(".FirstPay_Config.Rewards2: array expected");
                    for (t.Rewards2 = [], n = 0; n < e.Rewards2.length; ++n) {
                        if ("object" != typeof e.Rewards2[n]) throw TypeError(".FirstPay_Config.Rewards2: object expected");
                        t.Rewards2[n] = a.IntArray_Config.fromObject(e.Rewards2[n])
                    }
                }
                if (e.Rewards3) {
                    if (!Array.isArray(e.Rewards3)) throw TypeError(".FirstPay_Config.Rewards3: array expected");
                    for (t.Rewards3 = [], n = 0; n < e.Rewards3.length; ++n) {
                        if ("object" != typeof e.Rewards3[n]) throw TypeError(".FirstPay_Config.Rewards3: object expected");
                        t.Rewards3[n] = a.IntArray_Config.fromObject(e.Rewards3[n])
                    }
                }
                return null != e.GiftId && (i.Long ? (t.GiftId = i.Long.fromValue(e.GiftId)).unsigned = !1 : "string" == typeof e.GiftId ? t.GiftId = parseInt(e.GiftId, 10) : "number" == typeof e.GiftId ? t.GiftId = e.GiftId : "object" == typeof e.GiftId && (t.GiftId = new i.LongBits(e.GiftId.low >>> 0, e.GiftId.high >>> 0).toNumber())), null != e.Texture && (t.Texture = String(e.Texture)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards1 = [], n.Rewards2 = [], n.Rewards3 = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.GiftId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GiftId = t.longs === String ? "0" : 0, n.Texture = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards1 && e.Rewards1.length) {
                    n.Rewards1 = [];
                    for (var r = 0; r < e.Rewards1.length; ++r) n.Rewards1[r] = a.IntArray_Config.toObject(e.Rewards1[r], t)
                }
                if (e.Rewards2 && e.Rewards2.length)
                    for (n.Rewards2 = [], r = 0; r < e.Rewards2.length; ++r) n.Rewards2[r] = a.IntArray_Config.toObject(e.Rewards2[r], t);
                if (e.Rewards3 && e.Rewards3.length)
                    for (n.Rewards3 = [], r = 0; r < e.Rewards3.length; ++r) n.Rewards3[r] = a.IntArray_Config.toObject(e.Rewards3[r], t);
                return null != e.GiftId && e.hasOwnProperty("GiftId") && ("number" == typeof e.GiftId ? n.GiftId = t.longs === String ? String(e.GiftId) : e.GiftId : n.GiftId = t.longs === String ? i.Long.prototype.toString.call(e.GiftId) : t.longs === Number ? new i.LongBits(e.GiftId.low >>> 0, e.GiftId.high >>> 0).toNumber() : e.GiftId), null != e.Texture && e.hasOwnProperty("Texture") && (n.Texture = e.Texture), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FirstPay_Config"
            }, e
        }(), a.PayCount_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(24).int64(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PayCount_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.Count = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PayCount_Config) return e;
                var t = new a.PayCount_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PayCount_Config"
            }, e
        }(), a.DailyPayRewards_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.CountId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                return null != e.CountId && Object.hasOwnProperty.call(e, "CountId") && t.uint32(24).int64(e.CountId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DailyPayRewards_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.CountId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.CountId && e.hasOwnProperty("CountId") && !(i.isInteger(e.CountId) || e.CountId && i.isInteger(e.CountId.low) && i.isInteger(e.CountId.high)) ? "CountId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.DailyPayRewards_Config) return e;
                var t = new a.DailyPayRewards_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".DailyPayRewards_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".DailyPayRewards_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.CountId && (i.Long ? (t.CountId = i.Long.fromValue(e.CountId)).unsigned = !1 : "string" == typeof e.CountId ? t.CountId = parseInt(e.CountId, 10) : "number" == typeof e.CountId ? t.CountId = e.CountId : "object" == typeof e.CountId && (t.CountId = new i.LongBits(e.CountId.low >>> 0, e.CountId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.CountId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CountId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.CountId && e.hasOwnProperty("CountId") && ("number" == typeof e.CountId ? n.CountId = t.longs === String ? String(e.CountId) : e.CountId : n.CountId = t.longs === String ? i.Long.prototype.toString.call(e.CountId) : t.longs === Number ? new i.LongBits(e.CountId.low >>> 0, e.CountId.high >>> 0).toNumber() : e.CountId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DailyPayRewards_Config"
            }, e
        }(), a.FavorLevel_Config = function() {
            function e(e) {
                if (this.XpAttr = [], this.NodeAttr = [], this.Rewards = [], this.Score = [], this.ResetMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.XpAttr = i.emptyArray, e.prototype.NodeAttr = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.prototype.Grade = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.emptyArray, e.prototype.ResetMaterials = i.emptyArray, e.prototype.ReturnRatio = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(16).int64(e.Xp), null != e.XpAttr && e.XpAttr.length)
                    for (var n = 0; n < e.XpAttr.length; ++n) a.IntArray_Config.encode(e.XpAttr[n], t.uint32(26).fork()).ldelim();
                if (null != e.NodeAttr && e.NodeAttr.length)
                    for (n = 0; n < e.NodeAttr.length; ++n) a.IntArray_Config.encode(e.NodeAttr[n], t.uint32(34).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(42).fork()).ldelim();
                if (null != e.Grade && Object.hasOwnProperty.call(e, "Grade") && t.uint32(48).int64(e.Grade), null != e.Score && e.Score.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.Score.length; ++n) t.int64(e.Score[n]);
                    t.ldelim()
                }
                if (null != e.ResetMaterials && e.ResetMaterials.length)
                    for (n = 0; n < e.ResetMaterials.length; ++n) a.IntArray_Config.encode(e.ResetMaterials[n], t.uint32(66).fork()).ldelim();
                return null != e.ReturnRatio && Object.hasOwnProperty.call(e, "ReturnRatio") && t.uint32(72).int64(e.ReturnRatio), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FavorLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Xp = e.int64();
                            break;
                        case 3:
                            r.XpAttr && r.XpAttr.length || (r.XpAttr = []), r.XpAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.NodeAttr && r.NodeAttr.length || (r.NodeAttr = []), r.NodeAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Grade = e.int64();
                            break;
                        case 7:
                            if (r.Score && r.Score.length || (r.Score = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Score.push(e.int64());
                            else r.Score.push(e.int64());
                            break;
                        case 8:
                            r.ResetMaterials && r.ResetMaterials.length || (r.ResetMaterials = []), r.ResetMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.ReturnRatio = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high))) return "Xp: integer|Long expected";
                if (null != e.XpAttr && e.hasOwnProperty("XpAttr")) {
                    if (!Array.isArray(e.XpAttr)) return "XpAttr: array expected";
                    for (var t = 0; t < e.XpAttr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.XpAttr[t])) return "XpAttr." + n
                }
                if (null != e.NodeAttr && e.hasOwnProperty("NodeAttr")) {
                    if (!Array.isArray(e.NodeAttr)) return "NodeAttr: array expected";
                    for (t = 0; t < e.NodeAttr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.NodeAttr[t])) return "NodeAttr." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.Grade && e.hasOwnProperty("Grade") && !(i.isInteger(e.Grade) || e.Grade && i.isInteger(e.Grade.low) && i.isInteger(e.Grade.high))) return "Grade: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score")) {
                    if (!Array.isArray(e.Score)) return "Score: array expected";
                    for (t = 0; t < e.Score.length; ++t)
                        if (!(i.isInteger(e.Score[t]) || e.Score[t] && i.isInteger(e.Score[t].low) && i.isInteger(e.Score[t].high))) return "Score: integer|Long[] expected"
                }
                if (null != e.ResetMaterials && e.hasOwnProperty("ResetMaterials")) {
                    if (!Array.isArray(e.ResetMaterials)) return "ResetMaterials: array expected";
                    for (t = 0; t < e.ResetMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ResetMaterials[t])) return "ResetMaterials." + n
                    }
                }
                return null != e.ReturnRatio && e.hasOwnProperty("ReturnRatio") && !(i.isInteger(e.ReturnRatio) || e.ReturnRatio && i.isInteger(e.ReturnRatio.low) && i.isInteger(e.ReturnRatio.high)) ? "ReturnRatio: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.FavorLevel_Config) return e;
                var t = new a.FavorLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), e.XpAttr) {
                    if (!Array.isArray(e.XpAttr)) throw TypeError(".FavorLevel_Config.XpAttr: array expected");
                    t.XpAttr = [];
                    for (var n = 0; n < e.XpAttr.length; ++n) {
                        if ("object" != typeof e.XpAttr[n]) throw TypeError(".FavorLevel_Config.XpAttr: object expected");
                        t.XpAttr[n] = a.IntArray_Config.fromObject(e.XpAttr[n])
                    }
                }
                if (e.NodeAttr) {
                    if (!Array.isArray(e.NodeAttr)) throw TypeError(".FavorLevel_Config.NodeAttr: array expected");
                    for (t.NodeAttr = [], n = 0; n < e.NodeAttr.length; ++n) {
                        if ("object" != typeof e.NodeAttr[n]) throw TypeError(".FavorLevel_Config.NodeAttr: object expected");
                        t.NodeAttr[n] = a.IntArray_Config.fromObject(e.NodeAttr[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".FavorLevel_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".FavorLevel_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (null != e.Grade && (i.Long ? (t.Grade = i.Long.fromValue(e.Grade)).unsigned = !1 : "string" == typeof e.Grade ? t.Grade = parseInt(e.Grade, 10) : "number" == typeof e.Grade ? t.Grade = e.Grade : "object" == typeof e.Grade && (t.Grade = new i.LongBits(e.Grade.low >>> 0, e.Grade.high >>> 0).toNumber())), e.Score) {
                    if (!Array.isArray(e.Score)) throw TypeError(".FavorLevel_Config.Score: array expected");
                    for (t.Score = [], n = 0; n < e.Score.length; ++n) i.Long ? (t.Score[n] = i.Long.fromValue(e.Score[n])).unsigned = !1 : "string" == typeof e.Score[n] ? t.Score[n] = parseInt(e.Score[n], 10) : "number" == typeof e.Score[n] ? t.Score[n] = e.Score[n] : "object" == typeof e.Score[n] && (t.Score[n] = new i.LongBits(e.Score[n].low >>> 0, e.Score[n].high >>> 0).toNumber())
                }
                if (e.ResetMaterials) {
                    if (!Array.isArray(e.ResetMaterials)) throw TypeError(".FavorLevel_Config.ResetMaterials: array expected");
                    for (t.ResetMaterials = [], n = 0; n < e.ResetMaterials.length; ++n) {
                        if ("object" != typeof e.ResetMaterials[n]) throw TypeError(".FavorLevel_Config.ResetMaterials: object expected");
                        t.ResetMaterials[n] = a.IntArray_Config.fromObject(e.ResetMaterials[n])
                    }
                }
                return null != e.ReturnRatio && (i.Long ? (t.ReturnRatio = i.Long.fromValue(e.ReturnRatio)).unsigned = !1 : "string" == typeof e.ReturnRatio ? t.ReturnRatio = parseInt(e.ReturnRatio, 10) : "number" == typeof e.ReturnRatio ? t.ReturnRatio = e.ReturnRatio : "object" == typeof e.ReturnRatio && (t.ReturnRatio = new i.LongBits(e.ReturnRatio.low >>> 0, e.ReturnRatio.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.XpAttr = [], n.NodeAttr = [], n.Rewards = [], n.Score = [], n.ResetMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Grade = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Grade = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ReturnRatio = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ReturnRatio = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), e.XpAttr && e.XpAttr.length) {
                    n.XpAttr = [];
                    for (var r = 0; r < e.XpAttr.length; ++r) n.XpAttr[r] = a.IntArray_Config.toObject(e.XpAttr[r], t)
                }
                if (e.NodeAttr && e.NodeAttr.length)
                    for (n.NodeAttr = [], r = 0; r < e.NodeAttr.length; ++r) n.NodeAttr[r] = a.IntArray_Config.toObject(e.NodeAttr[r], t);
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (null != e.Grade && e.hasOwnProperty("Grade") && ("number" == typeof e.Grade ? n.Grade = t.longs === String ? String(e.Grade) : e.Grade : n.Grade = t.longs === String ? i.Long.prototype.toString.call(e.Grade) : t.longs === Number ? new i.LongBits(e.Grade.low >>> 0, e.Grade.high >>> 0).toNumber() : e.Grade), e.Score && e.Score.length)
                    for (n.Score = [], r = 0; r < e.Score.length; ++r) "number" == typeof e.Score[r] ? n.Score[r] = t.longs === String ? String(e.Score[r]) : e.Score[r] : n.Score[r] = t.longs === String ? i.Long.prototype.toString.call(e.Score[r]) : t.longs === Number ? new i.LongBits(e.Score[r].low >>> 0, e.Score[r].high >>> 0).toNumber() : e.Score[r];
                if (e.ResetMaterials && e.ResetMaterials.length)
                    for (n.ResetMaterials = [], r = 0; r < e.ResetMaterials.length; ++r) n.ResetMaterials[r] = a.IntArray_Config.toObject(e.ResetMaterials[r], t);
                return null != e.ReturnRatio && e.hasOwnProperty("ReturnRatio") && ("number" == typeof e.ReturnRatio ? n.ReturnRatio = t.longs === String ? String(e.ReturnRatio) : e.ReturnRatio : n.ReturnRatio = t.longs === String ? i.Long.prototype.toString.call(e.ReturnRatio) : t.longs === Number ? new i.LongBits(e.ReturnRatio.low >>> 0, e.ReturnRatio.high >>> 0).toNumber() : e.ReturnRatio), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FavorLevel_Config"
            }, e
        }(), a.LevelGift_Config = function() {
            function e(e) {
                if (this.Rewards = [], this.VipRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.VipLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.VipRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(16).int64(e.Level), null != e.VipLevel && Object.hasOwnProperty.call(e, "VipLevel") && t.uint32(24).int64(e.VipLevel), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                if (null != e.VipRewards && e.VipRewards.length)
                    for (n = 0; n < e.VipRewards.length; ++n) a.IntArray_Config.encode(e.VipRewards[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LevelGift_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Level = e.int64();
                            break;
                        case 3:
                            r.VipLevel = e.int64();
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.VipRewards && r.VipRewards.length || (r.VipRewards = []), r.VipRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.VipLevel && e.hasOwnProperty("VipLevel") && !(i.isInteger(e.VipLevel) || e.VipLevel && i.isInteger(e.VipLevel.low) && i.isInteger(e.VipLevel.high))) return "VipLevel: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.VipRewards && e.hasOwnProperty("VipRewards")) {
                    if (!Array.isArray(e.VipRewards)) return "VipRewards: array expected";
                    for (t = 0; t < e.VipRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.VipRewards[t])) return "VipRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.LevelGift_Config) return e;
                var t = new a.LevelGift_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.VipLevel && (i.Long ? (t.VipLevel = i.Long.fromValue(e.VipLevel)).unsigned = !1 : "string" == typeof e.VipLevel ? t.VipLevel = parseInt(e.VipLevel, 10) : "number" == typeof e.VipLevel ? t.VipLevel = e.VipLevel : "object" == typeof e.VipLevel && (t.VipLevel = new i.LongBits(e.VipLevel.low >>> 0, e.VipLevel.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".LevelGift_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".LevelGift_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.VipRewards) {
                    if (!Array.isArray(e.VipRewards)) throw TypeError(".LevelGift_Config.VipRewards: array expected");
                    for (t.VipRewards = [], n = 0; n < e.VipRewards.length; ++n) {
                        if ("object" != typeof e.VipRewards[n]) throw TypeError(".LevelGift_Config.VipRewards: object expected");
                        t.VipRewards[n] = a.IntArray_Config.fromObject(e.VipRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.VipRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.VipLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.VipLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.VipLevel && e.hasOwnProperty("VipLevel") && ("number" == typeof e.VipLevel ? n.VipLevel = t.longs === String ? String(e.VipLevel) : e.VipLevel : n.VipLevel = t.longs === String ? i.Long.prototype.toString.call(e.VipLevel) : t.longs === Number ? new i.LongBits(e.VipLevel.low >>> 0, e.VipLevel.high >>> 0).toNumber() : e.VipLevel), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                if (e.VipRewards && e.VipRewards.length)
                    for (n.VipRewards = [], r = 0; r < e.VipRewards.length; ++r) n.VipRewards[r] = a.IntArray_Config.toObject(e.VipRewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LevelGift_Config"
            }, e
        }(), a.Enhance_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GetWayId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.GetWayId && Object.hasOwnProperty.call(e, "GetWayId") && t.uint32(40).int64(e.GetWayId), null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(48).int64(e.SortId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Enhance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.GetWayId = e.int64();
                            break;
                        case 6:
                            r.SortId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.GetWayId && e.hasOwnProperty("GetWayId") && !(i.isInteger(e.GetWayId) || e.GetWayId && i.isInteger(e.GetWayId.low) && i.isInteger(e.GetWayId.high)) ? "GetWayId: integer|Long expected" : null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Enhance_Config) return e;
                var t = new a.Enhance_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.GetWayId && (i.Long ? (t.GetWayId = i.Long.fromValue(e.GetWayId)).unsigned = !1 : "string" == typeof e.GetWayId ? t.GetWayId = parseInt(e.GetWayId, 10) : "number" == typeof e.GetWayId ? t.GetWayId = e.GetWayId : "object" == typeof e.GetWayId && (t.GetWayId = new i.LongBits(e.GetWayId.low >>> 0, e.GetWayId.high >>> 0).toNumber())), null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.GetWayId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GetWayId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.GetWayId && e.hasOwnProperty("GetWayId") && ("number" == typeof e.GetWayId ? n.GetWayId = t.longs === String ? String(e.GetWayId) : e.GetWayId : n.GetWayId = t.longs === String ? i.Long.prototype.toString.call(e.GetWayId) : t.longs === Number ? new i.LongBits(e.GetWayId.low >>> 0, e.GetWayId.high >>> 0).toNumber() : e.GetWayId), null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Enhance_Config"
            }, e
        }(), a.RecommendFormation_Config = function() {
            function e(e) {
                if (this.HeroIds = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroIds = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroIds && e.HeroIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.HeroIds.length; ++n) t.int64(e.HeroIds[n]);
                    t.ldelim()
                }
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(42).fork()).ldelim();
                return null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(56).int64(e.SortId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RecommendFormation_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.HeroIds && r.HeroIds.length || (r.HeroIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.HeroIds.push(e.int64());
                            else r.HeroIds.push(e.int64());
                            break;
                        case 5:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.SortId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroIds && e.hasOwnProperty("HeroIds")) {
                    if (!Array.isArray(e.HeroIds)) return "HeroIds: array expected";
                    for (var t = 0; t < e.HeroIds.length; ++t)
                        if (!(i.isInteger(e.HeroIds[t]) || e.HeroIds[t] && i.isInteger(e.HeroIds[t].low) && i.isInteger(e.HeroIds[t].high))) return "HeroIds: integer|Long[] expected"
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RecommendFormation_Config) return e;
                var t = new a.RecommendFormation_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.HeroIds) {
                    if (!Array.isArray(e.HeroIds)) throw TypeError(".RecommendFormation_Config.HeroIds: array expected");
                    t.HeroIds = [];
                    for (var n = 0; n < e.HeroIds.length; ++n) i.Long ? (t.HeroIds[n] = i.Long.fromValue(e.HeroIds[n])).unsigned = !1 : "string" == typeof e.HeroIds[n] ? t.HeroIds[n] = parseInt(e.HeroIds[n], 10) : "number" == typeof e.HeroIds[n] ? t.HeroIds[n] = e.HeroIds[n] : "object" == typeof e.HeroIds[n] && (t.HeroIds[n] = new i.LongBits(e.HeroIds[n].low >>> 0, e.HeroIds[n].high >>> 0).toNumber())
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".RecommendFormation_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".RecommendFormation_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.HeroIds = [], n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.HeroIds && e.HeroIds.length) {
                    n.HeroIds = [];
                    for (var r = 0; r < e.HeroIds.length; ++r) "number" == typeof e.HeroIds[r] ? n.HeroIds[r] = t.longs === String ? String(e.HeroIds[r]) : e.HeroIds[r] : n.HeroIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.HeroIds[r]) : t.longs === Number ? new i.LongBits(e.HeroIds[r].low >>> 0, e.HeroIds[r].high >>> 0).toNumber() : e.HeroIds[r]
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RecommendFormation_Config"
            }, e
        }(), a.Question_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(32).int64(e.SortId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Question_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.SortId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Question_Config) return e;
                var t = new a.Question_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Question_Config"
            }, e
        }(), a.GiftPack_Config = function() {
            function e(e) {
                if (this.Items = [], this.Coupon = [], this.Sign = [], this.Unlock = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Items = i.emptyArray, e.prototype.Money = 0, e.prototype.ShowMoney = 0, e.prototype.PayId = "", e.prototype.AmountToDiamond = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.VipPoint = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LimitType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LimitCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Discount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnlockCondition = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BannerImage = "", e.prototype.GiftNameImage = "", e.prototype.CurrencyMappingId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Coupon = i.emptyArray, e.prototype.VipMoney = 0, e.prototype.Sign = i.emptyArray, e.prototype.Unlock = i.emptyArray, e.prototype.InnerName = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Items && e.Items.length)
                    for (var n = 0; n < e.Items.length; ++n) a.IntArray_Config.encode(e.Items[n], t.uint32(26).fork()).ldelim();
                if (null != e.Money && Object.hasOwnProperty.call(e, "Money") && t.uint32(37).float(e.Money), null != e.ShowMoney && Object.hasOwnProperty.call(e, "ShowMoney") && t.uint32(45).float(e.ShowMoney), null != e.PayId && Object.hasOwnProperty.call(e, "PayId") && t.uint32(50).string(e.PayId), null != e.AmountToDiamond && Object.hasOwnProperty.call(e, "AmountToDiamond") && t.uint32(64).int64(e.AmountToDiamond), null != e.VipPoint && Object.hasOwnProperty.call(e, "VipPoint") && t.uint32(72).int64(e.VipPoint), null != e.LimitType && Object.hasOwnProperty.call(e, "LimitType") && t.uint32(80).int64(e.LimitType), null != e.LimitCount && Object.hasOwnProperty.call(e, "LimitCount") && t.uint32(88).int64(e.LimitCount), null != e.Discount && Object.hasOwnProperty.call(e, "Discount") && t.uint32(112).int64(e.Discount), null != e.UnlockCondition && Object.hasOwnProperty.call(e, "UnlockCondition") && t.uint32(120).int64(e.UnlockCondition), null != e.BannerImage && Object.hasOwnProperty.call(e, "BannerImage") && t.uint32(130).string(e.BannerImage), null != e.GiftNameImage && Object.hasOwnProperty.call(e, "GiftNameImage") && t.uint32(138).string(e.GiftNameImage), null != e.CurrencyMappingId && Object.hasOwnProperty.call(e, "CurrencyMappingId") && t.uint32(144).int64(e.CurrencyMappingId), null != e.Coupon && e.Coupon.length) {
                    for (t.uint32(154).fork(), n = 0; n < e.Coupon.length; ++n) t.int64(e.Coupon[n]);
                    t.ldelim()
                }
                if (null != e.VipMoney && Object.hasOwnProperty.call(e, "VipMoney") && t.uint32(165).float(e.VipMoney), null != e.Sign && e.Sign.length) {
                    for (t.uint32(170).fork(), n = 0; n < e.Sign.length; ++n) t.int64(e.Sign[n]);
                    t.ldelim()
                }
                if (null != e.Unlock && e.Unlock.length)
                    for (n = 0; n < e.Unlock.length; ++n) a.IntArray_Config.encode(e.Unlock[n], t.uint32(178).fork()).ldelim();
                return null != e.InnerName && Object.hasOwnProperty.call(e, "InnerName") && t.uint32(186).string(e.InnerName), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GiftPack_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Items && r.Items.length || (r.Items = []), r.Items.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Money = e.float();
                            break;
                        case 5:
                            r.ShowMoney = e.float();
                            break;
                        case 6:
                            r.PayId = e.string();
                            break;
                        case 8:
                            r.AmountToDiamond = e.int64();
                            break;
                        case 9:
                            r.VipPoint = e.int64();
                            break;
                        case 10:
                            r.LimitType = e.int64();
                            break;
                        case 11:
                            r.LimitCount = e.int64();
                            break;
                        case 14:
                            r.Discount = e.int64();
                            break;
                        case 15:
                            r.UnlockCondition = e.int64();
                            break;
                        case 16:
                            r.BannerImage = e.string();
                            break;
                        case 17:
                            r.GiftNameImage = e.string();
                            break;
                        case 18:
                            r.CurrencyMappingId = e.int64();
                            break;
                        case 19:
                            if (r.Coupon && r.Coupon.length || (r.Coupon = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Coupon.push(e.int64());
                            else r.Coupon.push(e.int64());
                            break;
                        case 20:
                            r.VipMoney = e.float();
                            break;
                        case 21:
                            if (r.Sign && r.Sign.length || (r.Sign = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Sign.push(e.int64());
                            else r.Sign.push(e.int64());
                            break;
                        case 22:
                            r.Unlock && r.Unlock.length || (r.Unlock = []), r.Unlock.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 23:
                            r.InnerName = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Items[t])) return "Items." + n
                }
                if (null != e.Money && e.hasOwnProperty("Money") && "number" != typeof e.Money) return "Money: number expected";
                if (null != e.ShowMoney && e.hasOwnProperty("ShowMoney") && "number" != typeof e.ShowMoney) return "ShowMoney: number expected";
                if (null != e.PayId && e.hasOwnProperty("PayId") && !i.isString(e.PayId)) return "PayId: string expected";
                if (null != e.AmountToDiamond && e.hasOwnProperty("AmountToDiamond") && !(i.isInteger(e.AmountToDiamond) || e.AmountToDiamond && i.isInteger(e.AmountToDiamond.low) && i.isInteger(e.AmountToDiamond.high))) return "AmountToDiamond: integer|Long expected";
                if (null != e.VipPoint && e.hasOwnProperty("VipPoint") && !(i.isInteger(e.VipPoint) || e.VipPoint && i.isInteger(e.VipPoint.low) && i.isInteger(e.VipPoint.high))) return "VipPoint: integer|Long expected";
                if (null != e.LimitType && e.hasOwnProperty("LimitType") && !(i.isInteger(e.LimitType) || e.LimitType && i.isInteger(e.LimitType.low) && i.isInteger(e.LimitType.high))) return "LimitType: integer|Long expected";
                if (null != e.LimitCount && e.hasOwnProperty("LimitCount") && !(i.isInteger(e.LimitCount) || e.LimitCount && i.isInteger(e.LimitCount.low) && i.isInteger(e.LimitCount.high))) return "LimitCount: integer|Long expected";
                if (null != e.Discount && e.hasOwnProperty("Discount") && !(i.isInteger(e.Discount) || e.Discount && i.isInteger(e.Discount.low) && i.isInteger(e.Discount.high))) return "Discount: integer|Long expected";
                if (null != e.UnlockCondition && e.hasOwnProperty("UnlockCondition") && !(i.isInteger(e.UnlockCondition) || e.UnlockCondition && i.isInteger(e.UnlockCondition.low) && i.isInteger(e.UnlockCondition.high))) return "UnlockCondition: integer|Long expected";
                if (null != e.BannerImage && e.hasOwnProperty("BannerImage") && !i.isString(e.BannerImage)) return "BannerImage: string expected";
                if (null != e.GiftNameImage && e.hasOwnProperty("GiftNameImage") && !i.isString(e.GiftNameImage)) return "GiftNameImage: string expected";
                if (null != e.CurrencyMappingId && e.hasOwnProperty("CurrencyMappingId") && !(i.isInteger(e.CurrencyMappingId) || e.CurrencyMappingId && i.isInteger(e.CurrencyMappingId.low) && i.isInteger(e.CurrencyMappingId.high))) return "CurrencyMappingId: integer|Long expected";
                if (null != e.Coupon && e.hasOwnProperty("Coupon")) {
                    if (!Array.isArray(e.Coupon)) return "Coupon: array expected";
                    for (t = 0; t < e.Coupon.length; ++t)
                        if (!(i.isInteger(e.Coupon[t]) || e.Coupon[t] && i.isInteger(e.Coupon[t].low) && i.isInteger(e.Coupon[t].high))) return "Coupon: integer|Long[] expected"
                }
                if (null != e.VipMoney && e.hasOwnProperty("VipMoney") && "number" != typeof e.VipMoney) return "VipMoney: number expected";
                if (null != e.Sign && e.hasOwnProperty("Sign")) {
                    if (!Array.isArray(e.Sign)) return "Sign: array expected";
                    for (t = 0; t < e.Sign.length; ++t)
                        if (!(i.isInteger(e.Sign[t]) || e.Sign[t] && i.isInteger(e.Sign[t].low) && i.isInteger(e.Sign[t].high))) return "Sign: integer|Long[] expected"
                }
                if (null != e.Unlock && e.hasOwnProperty("Unlock")) {
                    if (!Array.isArray(e.Unlock)) return "Unlock: array expected";
                    for (t = 0; t < e.Unlock.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Unlock[t])) return "Unlock." + n
                    }
                }
                return null != e.InnerName && e.hasOwnProperty("InnerName") && !i.isString(e.InnerName) ? "InnerName: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GiftPack_Config) return e;
                var t = new a.GiftPack_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".GiftPack_Config.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) {
                        if ("object" != typeof e.Items[n]) throw TypeError(".GiftPack_Config.Items: object expected");
                        t.Items[n] = a.IntArray_Config.fromObject(e.Items[n])
                    }
                }
                if (null != e.Money && (t.Money = Number(e.Money)), null != e.ShowMoney && (t.ShowMoney = Number(e.ShowMoney)), null != e.PayId && (t.PayId = String(e.PayId)), null != e.AmountToDiamond && (i.Long ? (t.AmountToDiamond = i.Long.fromValue(e.AmountToDiamond)).unsigned = !1 : "string" == typeof e.AmountToDiamond ? t.AmountToDiamond = parseInt(e.AmountToDiamond, 10) : "number" == typeof e.AmountToDiamond ? t.AmountToDiamond = e.AmountToDiamond : "object" == typeof e.AmountToDiamond && (t.AmountToDiamond = new i.LongBits(e.AmountToDiamond.low >>> 0, e.AmountToDiamond.high >>> 0).toNumber())), null != e.VipPoint && (i.Long ? (t.VipPoint = i.Long.fromValue(e.VipPoint)).unsigned = !1 : "string" == typeof e.VipPoint ? t.VipPoint = parseInt(e.VipPoint, 10) : "number" == typeof e.VipPoint ? t.VipPoint = e.VipPoint : "object" == typeof e.VipPoint && (t.VipPoint = new i.LongBits(e.VipPoint.low >>> 0, e.VipPoint.high >>> 0).toNumber())), null != e.LimitType && (i.Long ? (t.LimitType = i.Long.fromValue(e.LimitType)).unsigned = !1 : "string" == typeof e.LimitType ? t.LimitType = parseInt(e.LimitType, 10) : "number" == typeof e.LimitType ? t.LimitType = e.LimitType : "object" == typeof e.LimitType && (t.LimitType = new i.LongBits(e.LimitType.low >>> 0, e.LimitType.high >>> 0).toNumber())), null != e.LimitCount && (i.Long ? (t.LimitCount = i.Long.fromValue(e.LimitCount)).unsigned = !1 : "string" == typeof e.LimitCount ? t.LimitCount = parseInt(e.LimitCount, 10) : "number" == typeof e.LimitCount ? t.LimitCount = e.LimitCount : "object" == typeof e.LimitCount && (t.LimitCount = new i.LongBits(e.LimitCount.low >>> 0, e.LimitCount.high >>> 0).toNumber())), null != e.Discount && (i.Long ? (t.Discount = i.Long.fromValue(e.Discount)).unsigned = !1 : "string" == typeof e.Discount ? t.Discount = parseInt(e.Discount, 10) : "number" == typeof e.Discount ? t.Discount = e.Discount : "object" == typeof e.Discount && (t.Discount = new i.LongBits(e.Discount.low >>> 0, e.Discount.high >>> 0).toNumber())), null != e.UnlockCondition && (i.Long ? (t.UnlockCondition = i.Long.fromValue(e.UnlockCondition)).unsigned = !1 : "string" == typeof e.UnlockCondition ? t.UnlockCondition = parseInt(e.UnlockCondition, 10) : "number" == typeof e.UnlockCondition ? t.UnlockCondition = e.UnlockCondition : "object" == typeof e.UnlockCondition && (t.UnlockCondition = new i.LongBits(e.UnlockCondition.low >>> 0, e.UnlockCondition.high >>> 0).toNumber())), null != e.BannerImage && (t.BannerImage = String(e.BannerImage)), null != e.GiftNameImage && (t.GiftNameImage = String(e.GiftNameImage)), null != e.CurrencyMappingId && (i.Long ? (t.CurrencyMappingId = i.Long.fromValue(e.CurrencyMappingId)).unsigned = !1 : "string" == typeof e.CurrencyMappingId ? t.CurrencyMappingId = parseInt(e.CurrencyMappingId, 10) : "number" == typeof e.CurrencyMappingId ? t.CurrencyMappingId = e.CurrencyMappingId : "object" == typeof e.CurrencyMappingId && (t.CurrencyMappingId = new i.LongBits(e.CurrencyMappingId.low >>> 0, e.CurrencyMappingId.high >>> 0).toNumber())), e.Coupon) {
                    if (!Array.isArray(e.Coupon)) throw TypeError(".GiftPack_Config.Coupon: array expected");
                    for (t.Coupon = [], n = 0; n < e.Coupon.length; ++n) i.Long ? (t.Coupon[n] = i.Long.fromValue(e.Coupon[n])).unsigned = !1 : "string" == typeof e.Coupon[n] ? t.Coupon[n] = parseInt(e.Coupon[n], 10) : "number" == typeof e.Coupon[n] ? t.Coupon[n] = e.Coupon[n] : "object" == typeof e.Coupon[n] && (t.Coupon[n] = new i.LongBits(e.Coupon[n].low >>> 0, e.Coupon[n].high >>> 0).toNumber())
                }
                if (null != e.VipMoney && (t.VipMoney = Number(e.VipMoney)), e.Sign) {
                    if (!Array.isArray(e.Sign)) throw TypeError(".GiftPack_Config.Sign: array expected");
                    for (t.Sign = [], n = 0; n < e.Sign.length; ++n) i.Long ? (t.Sign[n] = i.Long.fromValue(e.Sign[n])).unsigned = !1 : "string" == typeof e.Sign[n] ? t.Sign[n] = parseInt(e.Sign[n], 10) : "number" == typeof e.Sign[n] ? t.Sign[n] = e.Sign[n] : "object" == typeof e.Sign[n] && (t.Sign[n] = new i.LongBits(e.Sign[n].low >>> 0, e.Sign[n].high >>> 0).toNumber())
                }
                if (e.Unlock) {
                    if (!Array.isArray(e.Unlock)) throw TypeError(".GiftPack_Config.Unlock: array expected");
                    for (t.Unlock = [], n = 0; n < e.Unlock.length; ++n) {
                        if ("object" != typeof e.Unlock[n]) throw TypeError(".GiftPack_Config.Unlock: object expected");
                        t.Unlock[n] = a.IntArray_Config.fromObject(e.Unlock[n])
                    }
                }
                return null != e.InnerName && (t.InnerName = String(e.InnerName)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = [], n.Coupon = [], n.Sign = [], n.Unlock = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Money = 0, n.ShowMoney = 0, n.PayId = "", i.Long ? (o = new i.Long(0, 0, !1), n.AmountToDiamond = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AmountToDiamond = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.VipPoint = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.VipPoint = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LimitType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LimitType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LimitCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LimitCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Discount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Discount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.UnlockCondition = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UnlockCondition = t.longs === String ? "0" : 0, n.BannerImage = "", n.GiftNameImage = "", i.Long ? (o = new i.Long(0, 0, !1), n.CurrencyMappingId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CurrencyMappingId = t.longs === String ? "0" : 0, n.VipMoney = 0, n.InnerName = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var r = 0; r < e.Items.length; ++r) n.Items[r] = a.IntArray_Config.toObject(e.Items[r], t)
                }
                if (null != e.Money && e.hasOwnProperty("Money") && (n.Money = t.json && !isFinite(e.Money) ? String(e.Money) : e.Money), null != e.ShowMoney && e.hasOwnProperty("ShowMoney") && (n.ShowMoney = t.json && !isFinite(e.ShowMoney) ? String(e.ShowMoney) : e.ShowMoney), null != e.PayId && e.hasOwnProperty("PayId") && (n.PayId = e.PayId), null != e.AmountToDiamond && e.hasOwnProperty("AmountToDiamond") && ("number" == typeof e.AmountToDiamond ? n.AmountToDiamond = t.longs === String ? String(e.AmountToDiamond) : e.AmountToDiamond : n.AmountToDiamond = t.longs === String ? i.Long.prototype.toString.call(e.AmountToDiamond) : t.longs === Number ? new i.LongBits(e.AmountToDiamond.low >>> 0, e.AmountToDiamond.high >>> 0).toNumber() : e.AmountToDiamond), null != e.VipPoint && e.hasOwnProperty("VipPoint") && ("number" == typeof e.VipPoint ? n.VipPoint = t.longs === String ? String(e.VipPoint) : e.VipPoint : n.VipPoint = t.longs === String ? i.Long.prototype.toString.call(e.VipPoint) : t.longs === Number ? new i.LongBits(e.VipPoint.low >>> 0, e.VipPoint.high >>> 0).toNumber() : e.VipPoint), null != e.LimitType && e.hasOwnProperty("LimitType") && ("number" == typeof e.LimitType ? n.LimitType = t.longs === String ? String(e.LimitType) : e.LimitType : n.LimitType = t.longs === String ? i.Long.prototype.toString.call(e.LimitType) : t.longs === Number ? new i.LongBits(e.LimitType.low >>> 0, e.LimitType.high >>> 0).toNumber() : e.LimitType), null != e.LimitCount && e.hasOwnProperty("LimitCount") && ("number" == typeof e.LimitCount ? n.LimitCount = t.longs === String ? String(e.LimitCount) : e.LimitCount : n.LimitCount = t.longs === String ? i.Long.prototype.toString.call(e.LimitCount) : t.longs === Number ? new i.LongBits(e.LimitCount.low >>> 0, e.LimitCount.high >>> 0).toNumber() : e.LimitCount), null != e.Discount && e.hasOwnProperty("Discount") && ("number" == typeof e.Discount ? n.Discount = t.longs === String ? String(e.Discount) : e.Discount : n.Discount = t.longs === String ? i.Long.prototype.toString.call(e.Discount) : t.longs === Number ? new i.LongBits(e.Discount.low >>> 0, e.Discount.high >>> 0).toNumber() : e.Discount), null != e.UnlockCondition && e.hasOwnProperty("UnlockCondition") && ("number" == typeof e.UnlockCondition ? n.UnlockCondition = t.longs === String ? String(e.UnlockCondition) : e.UnlockCondition : n.UnlockCondition = t.longs === String ? i.Long.prototype.toString.call(e.UnlockCondition) : t.longs === Number ? new i.LongBits(e.UnlockCondition.low >>> 0, e.UnlockCondition.high >>> 0).toNumber() : e.UnlockCondition), null != e.BannerImage && e.hasOwnProperty("BannerImage") && (n.BannerImage = e.BannerImage), null != e.GiftNameImage && e.hasOwnProperty("GiftNameImage") && (n.GiftNameImage = e.GiftNameImage), null != e.CurrencyMappingId && e.hasOwnProperty("CurrencyMappingId") && ("number" == typeof e.CurrencyMappingId ? n.CurrencyMappingId = t.longs === String ? String(e.CurrencyMappingId) : e.CurrencyMappingId : n.CurrencyMappingId = t.longs === String ? i.Long.prototype.toString.call(e.CurrencyMappingId) : t.longs === Number ? new i.LongBits(e.CurrencyMappingId.low >>> 0, e.CurrencyMappingId.high >>> 0).toNumber() : e.CurrencyMappingId), e.Coupon && e.Coupon.length)
                    for (n.Coupon = [], r = 0; r < e.Coupon.length; ++r) "number" == typeof e.Coupon[r] ? n.Coupon[r] = t.longs === String ? String(e.Coupon[r]) : e.Coupon[r] : n.Coupon[r] = t.longs === String ? i.Long.prototype.toString.call(e.Coupon[r]) : t.longs === Number ? new i.LongBits(e.Coupon[r].low >>> 0, e.Coupon[r].high >>> 0).toNumber() : e.Coupon[r];
                if (null != e.VipMoney && e.hasOwnProperty("VipMoney") && (n.VipMoney = t.json && !isFinite(e.VipMoney) ? String(e.VipMoney) : e.VipMoney), e.Sign && e.Sign.length)
                    for (n.Sign = [], r = 0; r < e.Sign.length; ++r) "number" == typeof e.Sign[r] ? n.Sign[r] = t.longs === String ? String(e.Sign[r]) : e.Sign[r] : n.Sign[r] = t.longs === String ? i.Long.prototype.toString.call(e.Sign[r]) : t.longs === Number ? new i.LongBits(e.Sign[r].low >>> 0, e.Sign[r].high >>> 0).toNumber() : e.Sign[r];
                if (e.Unlock && e.Unlock.length)
                    for (n.Unlock = [], r = 0; r < e.Unlock.length; ++r) n.Unlock[r] = a.IntArray_Config.toObject(e.Unlock[r], t);
                return null != e.InnerName && e.hasOwnProperty("InnerName") && (n.InnerName = e.InnerName), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GiftPack_Config"
            }, e
        }(), a.GuideStep_Config = function() {
            function e(e) {
                if (this.Type = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.emptyArray, e.prototype.AutoNextStep = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && e.Type.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Type.length; ++n) t.int64(e.Type[n]);
                    t.ldelim()
                }
                return null != e.AutoNextStep && Object.hasOwnProperty.call(e, "AutoNextStep") && t.uint32(24).int64(e.AutoNextStep), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GuideStep_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Type && r.Type.length || (r.Type = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Type.push(e.int64());
                            else r.Type.push(e.int64());
                            break;
                        case 3:
                            r.AutoNextStep = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type")) {
                    if (!Array.isArray(e.Type)) return "Type: array expected";
                    for (var t = 0; t < e.Type.length; ++t)
                        if (!(i.isInteger(e.Type[t]) || e.Type[t] && i.isInteger(e.Type[t].low) && i.isInteger(e.Type[t].high))) return "Type: integer|Long[] expected"
                }
                return null != e.AutoNextStep && e.hasOwnProperty("AutoNextStep") && !(i.isInteger(e.AutoNextStep) || e.AutoNextStep && i.isInteger(e.AutoNextStep.low) && i.isInteger(e.AutoNextStep.high)) ? "AutoNextStep: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GuideStep_Config) return e;
                var t = new a.GuideStep_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Type) {
                    if (!Array.isArray(e.Type)) throw TypeError(".GuideStep_Config.Type: array expected");
                    t.Type = [];
                    for (var n = 0; n < e.Type.length; ++n) i.Long ? (t.Type[n] = i.Long.fromValue(e.Type[n])).unsigned = !1 : "string" == typeof e.Type[n] ? t.Type[n] = parseInt(e.Type[n], 10) : "number" == typeof e.Type[n] ? t.Type[n] = e.Type[n] : "object" == typeof e.Type[n] && (t.Type[n] = new i.LongBits(e.Type[n].low >>> 0, e.Type[n].high >>> 0).toNumber())
                }
                return null != e.AutoNextStep && (i.Long ? (t.AutoNextStep = i.Long.fromValue(e.AutoNextStep)).unsigned = !1 : "string" == typeof e.AutoNextStep ? t.AutoNextStep = parseInt(e.AutoNextStep, 10) : "number" == typeof e.AutoNextStep ? t.AutoNextStep = e.AutoNextStep : "object" == typeof e.AutoNextStep && (t.AutoNextStep = new i.LongBits(e.AutoNextStep.low >>> 0, e.AutoNextStep.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Type = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.AutoNextStep = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AutoNextStep = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Type && e.Type.length) {
                    n.Type = [];
                    for (var r = 0; r < e.Type.length; ++r) "number" == typeof e.Type[r] ? n.Type[r] = t.longs === String ? String(e.Type[r]) : e.Type[r] : n.Type[r] = t.longs === String ? i.Long.prototype.toString.call(e.Type[r]) : t.longs === Number ? new i.LongBits(e.Type[r].low >>> 0, e.Type[r].high >>> 0).toNumber() : e.Type[r]
                }
                return null != e.AutoNextStep && e.hasOwnProperty("AutoNextStep") && ("number" == typeof e.AutoNextStep ? n.AutoNextStep = t.longs === String ? String(e.AutoNextStep) : e.AutoNextStep : n.AutoNextStep = t.longs === String ? i.Long.prototype.toString.call(e.AutoNextStep) : t.longs === Number ? new i.LongBits(e.AutoNextStep.low >>> 0, e.AutoNextStep.high >>> 0).toNumber() : e.AutoNextStep), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GuideStep_Config"
            }, e
        }(), a.GuideNPCDialog_Config = function() {
            function e(e) {
                if (this.InfoKeys = [], this.AudioKeys = [], this.NPCKeys = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.InfoKeys = i.emptyArray, e.prototype.AudioKeys = i.emptyArray, e.prototype.NPCKeys = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.InfoKeys && e.InfoKeys.length)
                    for (var n = 0; n < e.InfoKeys.length; ++n) t.uint32(18).string(e.InfoKeys[n]);
                if (null != e.AudioKeys && e.AudioKeys.length) {
                    for (t.uint32(26).fork(), n = 0; n < e.AudioKeys.length; ++n) t.int64(e.AudioKeys[n]);
                    t.ldelim()
                }
                if (null != e.NPCKeys && e.NPCKeys.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.NPCKeys.length; ++n) t.int64(e.NPCKeys[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GuideNPCDialog_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.InfoKeys && r.InfoKeys.length || (r.InfoKeys = []), r.InfoKeys.push(e.string());
                            break;
                        case 3:
                            if (r.AudioKeys && r.AudioKeys.length || (r.AudioKeys = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AudioKeys.push(e.int64());
                            else r.AudioKeys.push(e.int64());
                            break;
                        case 4:
                            if (r.NPCKeys && r.NPCKeys.length || (r.NPCKeys = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.NPCKeys.push(e.int64());
                            else r.NPCKeys.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.InfoKeys && e.hasOwnProperty("InfoKeys")) {
                    if (!Array.isArray(e.InfoKeys)) return "InfoKeys: array expected";
                    for (var t = 0; t < e.InfoKeys.length; ++t)
                        if (!i.isString(e.InfoKeys[t])) return "InfoKeys: string[] expected"
                }
                if (null != e.AudioKeys && e.hasOwnProperty("AudioKeys")) {
                    if (!Array.isArray(e.AudioKeys)) return "AudioKeys: array expected";
                    for (t = 0; t < e.AudioKeys.length; ++t)
                        if (!(i.isInteger(e.AudioKeys[t]) || e.AudioKeys[t] && i.isInteger(e.AudioKeys[t].low) && i.isInteger(e.AudioKeys[t].high))) return "AudioKeys: integer|Long[] expected"
                }
                if (null != e.NPCKeys && e.hasOwnProperty("NPCKeys")) {
                    if (!Array.isArray(e.NPCKeys)) return "NPCKeys: array expected";
                    for (t = 0; t < e.NPCKeys.length; ++t)
                        if (!(i.isInteger(e.NPCKeys[t]) || e.NPCKeys[t] && i.isInteger(e.NPCKeys[t].low) && i.isInteger(e.NPCKeys[t].high))) return "NPCKeys: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.GuideNPCDialog_Config) return e;
                var t = new a.GuideNPCDialog_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.InfoKeys) {
                    if (!Array.isArray(e.InfoKeys)) throw TypeError(".GuideNPCDialog_Config.InfoKeys: array expected");
                    t.InfoKeys = [];
                    for (var n = 0; n < e.InfoKeys.length; ++n) t.InfoKeys[n] = String(e.InfoKeys[n])
                }
                if (e.AudioKeys) {
                    if (!Array.isArray(e.AudioKeys)) throw TypeError(".GuideNPCDialog_Config.AudioKeys: array expected");
                    for (t.AudioKeys = [], n = 0; n < e.AudioKeys.length; ++n) i.Long ? (t.AudioKeys[n] = i.Long.fromValue(e.AudioKeys[n])).unsigned = !1 : "string" == typeof e.AudioKeys[n] ? t.AudioKeys[n] = parseInt(e.AudioKeys[n], 10) : "number" == typeof e.AudioKeys[n] ? t.AudioKeys[n] = e.AudioKeys[n] : "object" == typeof e.AudioKeys[n] && (t.AudioKeys[n] = new i.LongBits(e.AudioKeys[n].low >>> 0, e.AudioKeys[n].high >>> 0).toNumber())
                }
                if (e.NPCKeys) {
                    if (!Array.isArray(e.NPCKeys)) throw TypeError(".GuideNPCDialog_Config.NPCKeys: array expected");
                    for (t.NPCKeys = [], n = 0; n < e.NPCKeys.length; ++n) i.Long ? (t.NPCKeys[n] = i.Long.fromValue(e.NPCKeys[n])).unsigned = !1 : "string" == typeof e.NPCKeys[n] ? t.NPCKeys[n] = parseInt(e.NPCKeys[n], 10) : "number" == typeof e.NPCKeys[n] ? t.NPCKeys[n] = e.NPCKeys[n] : "object" == typeof e.NPCKeys[n] && (t.NPCKeys[n] = new i.LongBits(e.NPCKeys[n].low >>> 0, e.NPCKeys[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.InfoKeys = [], n.AudioKeys = [], n.NPCKeys = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.InfoKeys && e.InfoKeys.length) {
                    n.InfoKeys = [];
                    for (var r = 0; r < e.InfoKeys.length; ++r) n.InfoKeys[r] = e.InfoKeys[r]
                }
                if (e.AudioKeys && e.AudioKeys.length)
                    for (n.AudioKeys = [], r = 0; r < e.AudioKeys.length; ++r) "number" == typeof e.AudioKeys[r] ? n.AudioKeys[r] = t.longs === String ? String(e.AudioKeys[r]) : e.AudioKeys[r] : n.AudioKeys[r] = t.longs === String ? i.Long.prototype.toString.call(e.AudioKeys[r]) : t.longs === Number ? new i.LongBits(e.AudioKeys[r].low >>> 0, e.AudioKeys[r].high >>> 0).toNumber() : e.AudioKeys[r];
                if (e.NPCKeys && e.NPCKeys.length)
                    for (n.NPCKeys = [], r = 0; r < e.NPCKeys.length; ++r) "number" == typeof e.NPCKeys[r] ? n.NPCKeys[r] = t.longs === String ? String(e.NPCKeys[r]) : e.NPCKeys[r] : n.NPCKeys[r] = t.longs === String ? i.Long.prototype.toString.call(e.NPCKeys[r]) : t.longs === Number ? new i.LongBits(e.NPCKeys[r].low >>> 0, e.NPCKeys[r].high >>> 0).toNumber() : e.NPCKeys[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GuideNPCDialog_Config"
            }, e
        }(), a.GuideFingerHint_Config = function() {
            function e(e) {
                if (this.Size = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.InfoKey = "", e.prototype.HideMask = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaskType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Size = i.emptyArray, e.prototype.OffsetY = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.InfoKey && Object.hasOwnProperty.call(e, "InfoKey") && t.uint32(18).string(e.InfoKey), null != e.HideMask && Object.hasOwnProperty.call(e, "HideMask") && t.uint32(24).int64(e.HideMask), null != e.MaskType && Object.hasOwnProperty.call(e, "MaskType") && t.uint32(32).int64(e.MaskType), null != e.Size && e.Size.length) {
                    t.uint32(42).fork();
                    for (var n = 0; n < e.Size.length; ++n) t.int64(e.Size[n]);
                    t.ldelim()
                }
                return null != e.OffsetY && Object.hasOwnProperty.call(e, "OffsetY") && t.uint32(48).int64(e.OffsetY), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GuideFingerHint_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.InfoKey = e.string();
                            break;
                        case 3:
                            r.HideMask = e.int64();
                            break;
                        case 4:
                            r.MaskType = e.int64();
                            break;
                        case 5:
                            if (r.Size && r.Size.length || (r.Size = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Size.push(e.int64());
                            else r.Size.push(e.int64());
                            break;
                        case 6:
                            r.OffsetY = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.InfoKey && e.hasOwnProperty("InfoKey") && !i.isString(e.InfoKey)) return "InfoKey: string expected";
                if (null != e.HideMask && e.hasOwnProperty("HideMask") && !(i.isInteger(e.HideMask) || e.HideMask && i.isInteger(e.HideMask.low) && i.isInteger(e.HideMask.high))) return "HideMask: integer|Long expected";
                if (null != e.MaskType && e.hasOwnProperty("MaskType") && !(i.isInteger(e.MaskType) || e.MaskType && i.isInteger(e.MaskType.low) && i.isInteger(e.MaskType.high))) return "MaskType: integer|Long expected";
                if (null != e.Size && e.hasOwnProperty("Size")) {
                    if (!Array.isArray(e.Size)) return "Size: array expected";
                    for (var t = 0; t < e.Size.length; ++t)
                        if (!(i.isInteger(e.Size[t]) || e.Size[t] && i.isInteger(e.Size[t].low) && i.isInteger(e.Size[t].high))) return "Size: integer|Long[] expected"
                }
                return null != e.OffsetY && e.hasOwnProperty("OffsetY") && !(i.isInteger(e.OffsetY) || e.OffsetY && i.isInteger(e.OffsetY.low) && i.isInteger(e.OffsetY.high)) ? "OffsetY: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GuideFingerHint_Config) return e;
                var t = new a.GuideFingerHint_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.InfoKey && (t.InfoKey = String(e.InfoKey)), null != e.HideMask && (i.Long ? (t.HideMask = i.Long.fromValue(e.HideMask)).unsigned = !1 : "string" == typeof e.HideMask ? t.HideMask = parseInt(e.HideMask, 10) : "number" == typeof e.HideMask ? t.HideMask = e.HideMask : "object" == typeof e.HideMask && (t.HideMask = new i.LongBits(e.HideMask.low >>> 0, e.HideMask.high >>> 0).toNumber())), null != e.MaskType && (i.Long ? (t.MaskType = i.Long.fromValue(e.MaskType)).unsigned = !1 : "string" == typeof e.MaskType ? t.MaskType = parseInt(e.MaskType, 10) : "number" == typeof e.MaskType ? t.MaskType = e.MaskType : "object" == typeof e.MaskType && (t.MaskType = new i.LongBits(e.MaskType.low >>> 0, e.MaskType.high >>> 0).toNumber())), e.Size) {
                    if (!Array.isArray(e.Size)) throw TypeError(".GuideFingerHint_Config.Size: array expected");
                    t.Size = [];
                    for (var n = 0; n < e.Size.length; ++n) i.Long ? (t.Size[n] = i.Long.fromValue(e.Size[n])).unsigned = !1 : "string" == typeof e.Size[n] ? t.Size[n] = parseInt(e.Size[n], 10) : "number" == typeof e.Size[n] ? t.Size[n] = e.Size[n] : "object" == typeof e.Size[n] && (t.Size[n] = new i.LongBits(e.Size[n].low >>> 0, e.Size[n].high >>> 0).toNumber())
                }
                return null != e.OffsetY && (i.Long ? (t.OffsetY = i.Long.fromValue(e.OffsetY)).unsigned = !1 : "string" == typeof e.OffsetY ? t.OffsetY = parseInt(e.OffsetY, 10) : "number" == typeof e.OffsetY ? t.OffsetY = e.OffsetY : "object" == typeof e.OffsetY && (t.OffsetY = new i.LongBits(e.OffsetY.low >>> 0, e.OffsetY.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Size = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.InfoKey = "", i.Long ? (o = new i.Long(0, 0, !1), n.HideMask = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HideMask = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaskType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaskType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.OffsetY = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OffsetY = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.InfoKey && e.hasOwnProperty("InfoKey") && (n.InfoKey = e.InfoKey), null != e.HideMask && e.hasOwnProperty("HideMask") && ("number" == typeof e.HideMask ? n.HideMask = t.longs === String ? String(e.HideMask) : e.HideMask : n.HideMask = t.longs === String ? i.Long.prototype.toString.call(e.HideMask) : t.longs === Number ? new i.LongBits(e.HideMask.low >>> 0, e.HideMask.high >>> 0).toNumber() : e.HideMask), null != e.MaskType && e.hasOwnProperty("MaskType") && ("number" == typeof e.MaskType ? n.MaskType = t.longs === String ? String(e.MaskType) : e.MaskType : n.MaskType = t.longs === String ? i.Long.prototype.toString.call(e.MaskType) : t.longs === Number ? new i.LongBits(e.MaskType.low >>> 0, e.MaskType.high >>> 0).toNumber() : e.MaskType), e.Size && e.Size.length) {
                    n.Size = [];
                    for (var r = 0; r < e.Size.length; ++r) "number" == typeof e.Size[r] ? n.Size[r] = t.longs === String ? String(e.Size[r]) : e.Size[r] : n.Size[r] = t.longs === String ? i.Long.prototype.toString.call(e.Size[r]) : t.longs === Number ? new i.LongBits(e.Size[r].low >>> 0, e.Size[r].high >>> 0).toNumber() : e.Size[r]
                }
                return null != e.OffsetY && e.hasOwnProperty("OffsetY") && ("number" == typeof e.OffsetY ? n.OffsetY = t.longs === String ? String(e.OffsetY) : e.OffsetY : n.OffsetY = t.longs === String ? i.Long.prototype.toString.call(e.OffsetY) : t.longs === Number ? new i.LongBits(e.OffsetY.low >>> 0, e.OffsetY.high >>> 0).toNumber() : e.OffsetY), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GuideFingerHint_Config"
            }, e
        }(), a.ItemFavor_Config = function() {
            function e(e) {
                if (this.Favor = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Favor = i.emptyArray, e.prototype.Grade = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FavorXp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NoFeelXp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Favor && e.Favor.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Favor.length; ++n) t.int64(e.Favor[n]);
                    t.ldelim()
                }
                return null != e.Grade && Object.hasOwnProperty.call(e, "Grade") && t.uint32(24).int64(e.Grade), null != e.FavorXp && Object.hasOwnProperty.call(e, "FavorXp") && t.uint32(32).int64(e.FavorXp), null != e.NoFeelXp && Object.hasOwnProperty.call(e, "NoFeelXp") && t.uint32(40).int64(e.NoFeelXp), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemFavor_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Favor && r.Favor.length || (r.Favor = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Favor.push(e.int64());
                            else r.Favor.push(e.int64());
                            break;
                        case 3:
                            r.Grade = e.int64();
                            break;
                        case 4:
                            r.FavorXp = e.int64();
                            break;
                        case 5:
                            r.NoFeelXp = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Favor && e.hasOwnProperty("Favor")) {
                    if (!Array.isArray(e.Favor)) return "Favor: array expected";
                    for (var t = 0; t < e.Favor.length; ++t)
                        if (!(i.isInteger(e.Favor[t]) || e.Favor[t] && i.isInteger(e.Favor[t].low) && i.isInteger(e.Favor[t].high))) return "Favor: integer|Long[] expected"
                }
                return null != e.Grade && e.hasOwnProperty("Grade") && !(i.isInteger(e.Grade) || e.Grade && i.isInteger(e.Grade.low) && i.isInteger(e.Grade.high)) ? "Grade: integer|Long expected" : null != e.FavorXp && e.hasOwnProperty("FavorXp") && !(i.isInteger(e.FavorXp) || e.FavorXp && i.isInteger(e.FavorXp.low) && i.isInteger(e.FavorXp.high)) ? "FavorXp: integer|Long expected" : null != e.NoFeelXp && e.hasOwnProperty("NoFeelXp") && !(i.isInteger(e.NoFeelXp) || e.NoFeelXp && i.isInteger(e.NoFeelXp.low) && i.isInteger(e.NoFeelXp.high)) ? "NoFeelXp: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemFavor_Config) return e;
                var t = new a.ItemFavor_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Favor) {
                    if (!Array.isArray(e.Favor)) throw TypeError(".ItemFavor_Config.Favor: array expected");
                    t.Favor = [];
                    for (var n = 0; n < e.Favor.length; ++n) i.Long ? (t.Favor[n] = i.Long.fromValue(e.Favor[n])).unsigned = !1 : "string" == typeof e.Favor[n] ? t.Favor[n] = parseInt(e.Favor[n], 10) : "number" == typeof e.Favor[n] ? t.Favor[n] = e.Favor[n] : "object" == typeof e.Favor[n] && (t.Favor[n] = new i.LongBits(e.Favor[n].low >>> 0, e.Favor[n].high >>> 0).toNumber())
                }
                return null != e.Grade && (i.Long ? (t.Grade = i.Long.fromValue(e.Grade)).unsigned = !1 : "string" == typeof e.Grade ? t.Grade = parseInt(e.Grade, 10) : "number" == typeof e.Grade ? t.Grade = e.Grade : "object" == typeof e.Grade && (t.Grade = new i.LongBits(e.Grade.low >>> 0, e.Grade.high >>> 0).toNumber())), null != e.FavorXp && (i.Long ? (t.FavorXp = i.Long.fromValue(e.FavorXp)).unsigned = !1 : "string" == typeof e.FavorXp ? t.FavorXp = parseInt(e.FavorXp, 10) : "number" == typeof e.FavorXp ? t.FavorXp = e.FavorXp : "object" == typeof e.FavorXp && (t.FavorXp = new i.LongBits(e.FavorXp.low >>> 0, e.FavorXp.high >>> 0).toNumber())), null != e.NoFeelXp && (i.Long ? (t.NoFeelXp = i.Long.fromValue(e.NoFeelXp)).unsigned = !1 : "string" == typeof e.NoFeelXp ? t.NoFeelXp = parseInt(e.NoFeelXp, 10) : "number" == typeof e.NoFeelXp ? t.NoFeelXp = e.NoFeelXp : "object" == typeof e.NoFeelXp && (t.NoFeelXp = new i.LongBits(e.NoFeelXp.low >>> 0, e.NoFeelXp.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Favor = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Grade = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Grade = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.FavorXp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.FavorXp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NoFeelXp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NoFeelXp = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Favor && e.Favor.length) {
                    n.Favor = [];
                    for (var r = 0; r < e.Favor.length; ++r) "number" == typeof e.Favor[r] ? n.Favor[r] = t.longs === String ? String(e.Favor[r]) : e.Favor[r] : n.Favor[r] = t.longs === String ? i.Long.prototype.toString.call(e.Favor[r]) : t.longs === Number ? new i.LongBits(e.Favor[r].low >>> 0, e.Favor[r].high >>> 0).toNumber() : e.Favor[r]
                }
                return null != e.Grade && e.hasOwnProperty("Grade") && ("number" == typeof e.Grade ? n.Grade = t.longs === String ? String(e.Grade) : e.Grade : n.Grade = t.longs === String ? i.Long.prototype.toString.call(e.Grade) : t.longs === Number ? new i.LongBits(e.Grade.low >>> 0, e.Grade.high >>> 0).toNumber() : e.Grade), null != e.FavorXp && e.hasOwnProperty("FavorXp") && ("number" == typeof e.FavorXp ? n.FavorXp = t.longs === String ? String(e.FavorXp) : e.FavorXp : n.FavorXp = t.longs === String ? i.Long.prototype.toString.call(e.FavorXp) : t.longs === Number ? new i.LongBits(e.FavorXp.low >>> 0, e.FavorXp.high >>> 0).toNumber() : e.FavorXp), null != e.NoFeelXp && e.hasOwnProperty("NoFeelXp") && ("number" == typeof e.NoFeelXp ? n.NoFeelXp = t.longs === String ? String(e.NoFeelXp) : e.NoFeelXp : n.NoFeelXp = t.longs === String ? i.Long.prototype.toString.call(e.NoFeelXp) : t.longs === Number ? new i.LongBits(e.NoFeelXp.low >>> 0, e.NoFeelXp.high >>> 0).toNumber() : e.NoFeelXp), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemFavor_Config"
            }, e
        }(), a.TriggerGiftType_Config = function() {
            function e(e) {
                if (this.TriggerCondition = [], this.FailureCondition = [], this.Gifts = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TriggerCondition = i.emptyArray, e.prototype.FailureCondition = i.emptyArray, e.prototype.Gifts = i.emptyArray, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.TriggerCondition && e.TriggerCondition.length)
                    for (var n = 0; n < e.TriggerCondition.length; ++n) a.IntArray_Config.encode(e.TriggerCondition[n], t.uint32(18).fork()).ldelim();
                if (null != e.FailureCondition && e.FailureCondition.length)
                    for (n = 0; n < e.FailureCondition.length; ++n) a.IntArray_Config.encode(e.FailureCondition[n], t.uint32(26).fork()).ldelim();
                if (null != e.Gifts && e.Gifts.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.Gifts.length; ++n) t.int64(e.Gifts[n]);
                    t.ldelim()
                }
                return null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(40).int64(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TriggerGiftType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.TriggerCondition && r.TriggerCondition.length || (r.TriggerCondition = []), r.TriggerCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.FailureCondition && r.FailureCondition.length || (r.FailureCondition = []), r.FailureCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            if (r.Gifts && r.Gifts.length || (r.Gifts = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Gifts.push(e.int64());
                            else r.Gifts.push(e.int64());
                            break;
                        case 5:
                            r.Count = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.TriggerCondition && e.hasOwnProperty("TriggerCondition")) {
                    if (!Array.isArray(e.TriggerCondition)) return "TriggerCondition: array expected";
                    for (var t = 0; t < e.TriggerCondition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TriggerCondition[t])) return "TriggerCondition." + n
                }
                if (null != e.FailureCondition && e.hasOwnProperty("FailureCondition")) {
                    if (!Array.isArray(e.FailureCondition)) return "FailureCondition: array expected";
                    for (t = 0; t < e.FailureCondition.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.FailureCondition[t])) return "FailureCondition." + n
                    }
                }
                if (null != e.Gifts && e.hasOwnProperty("Gifts")) {
                    if (!Array.isArray(e.Gifts)) return "Gifts: array expected";
                    for (t = 0; t < e.Gifts.length; ++t)
                        if (!(i.isInteger(e.Gifts[t]) || e.Gifts[t] && i.isInteger(e.Gifts[t].low) && i.isInteger(e.Gifts[t].high))) return "Gifts: integer|Long[] expected"
                }
                return null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.TriggerGiftType_Config) return e;
                var t = new a.TriggerGiftType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.TriggerCondition) {
                    if (!Array.isArray(e.TriggerCondition)) throw TypeError(".TriggerGiftType_Config.TriggerCondition: array expected");
                    t.TriggerCondition = [];
                    for (var n = 0; n < e.TriggerCondition.length; ++n) {
                        if ("object" != typeof e.TriggerCondition[n]) throw TypeError(".TriggerGiftType_Config.TriggerCondition: object expected");
                        t.TriggerCondition[n] = a.IntArray_Config.fromObject(e.TriggerCondition[n])
                    }
                }
                if (e.FailureCondition) {
                    if (!Array.isArray(e.FailureCondition)) throw TypeError(".TriggerGiftType_Config.FailureCondition: array expected");
                    for (t.FailureCondition = [], n = 0; n < e.FailureCondition.length; ++n) {
                        if ("object" != typeof e.FailureCondition[n]) throw TypeError(".TriggerGiftType_Config.FailureCondition: object expected");
                        t.FailureCondition[n] = a.IntArray_Config.fromObject(e.FailureCondition[n])
                    }
                }
                if (e.Gifts) {
                    if (!Array.isArray(e.Gifts)) throw TypeError(".TriggerGiftType_Config.Gifts: array expected");
                    for (t.Gifts = [], n = 0; n < e.Gifts.length; ++n) i.Long ? (t.Gifts[n] = i.Long.fromValue(e.Gifts[n])).unsigned = !1 : "string" == typeof e.Gifts[n] ? t.Gifts[n] = parseInt(e.Gifts[n], 10) : "number" == typeof e.Gifts[n] ? t.Gifts[n] = e.Gifts[n] : "object" == typeof e.Gifts[n] && (t.Gifts[n] = new i.LongBits(e.Gifts[n].low >>> 0, e.Gifts[n].high >>> 0).toNumber())
                }
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.TriggerCondition = [], n.FailureCondition = [], n.Gifts = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.TriggerCondition && e.TriggerCondition.length) {
                    n.TriggerCondition = [];
                    for (var r = 0; r < e.TriggerCondition.length; ++r) n.TriggerCondition[r] = a.IntArray_Config.toObject(e.TriggerCondition[r], t)
                }
                if (e.FailureCondition && e.FailureCondition.length)
                    for (n.FailureCondition = [], r = 0; r < e.FailureCondition.length; ++r) n.FailureCondition[r] = a.IntArray_Config.toObject(e.FailureCondition[r], t);
                if (e.Gifts && e.Gifts.length)
                    for (n.Gifts = [], r = 0; r < e.Gifts.length; ++r) "number" == typeof e.Gifts[r] ? n.Gifts[r] = t.longs === String ? String(e.Gifts[r]) : e.Gifts[r] : n.Gifts[r] = t.longs === String ? i.Long.prototype.toString.call(e.Gifts[r]) : t.longs === Number ? new i.LongBits(e.Gifts[r].low >>> 0, e.Gifts[r].high >>> 0).toNumber() : e.Gifts[r];
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TriggerGiftType_Config"
            }, e
        }(), a.TriggerGift_Config = function() {
            function e(e) {
                if (this.UnlockCondition = [], this.FailureCondition = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Duration = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnlockCondition = i.emptyArray, e.prototype.FailureCondition = i.emptyArray, e.prototype.GiftId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsShow = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowImage = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Duration && Object.hasOwnProperty.call(e, "Duration") && t.uint32(40).int64(e.Duration), null != e.UnlockCondition && e.UnlockCondition.length)
                    for (var n = 0; n < e.UnlockCondition.length; ++n) a.IntArray_Config.encode(e.UnlockCondition[n], t.uint32(50).fork()).ldelim();
                if (null != e.FailureCondition && e.FailureCondition.length)
                    for (n = 0; n < e.FailureCondition.length; ++n) a.IntArray_Config.encode(e.FailureCondition[n], t.uint32(58).fork()).ldelim();
                return null != e.GiftId && Object.hasOwnProperty.call(e, "GiftId") && t.uint32(64).int64(e.GiftId), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(72).int64(e.Count), null != e.IsShow && Object.hasOwnProperty.call(e, "IsShow") && t.uint32(80).int64(e.IsShow), null != e.ShowImage && Object.hasOwnProperty.call(e, "ShowImage") && t.uint32(90).string(e.ShowImage), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TriggerGift_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 5:
                            r.Duration = e.int64();
                            break;
                        case 6:
                            r.UnlockCondition && r.UnlockCondition.length || (r.UnlockCondition = []), r.UnlockCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.FailureCondition && r.FailureCondition.length || (r.FailureCondition = []), r.FailureCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.GiftId = e.int64();
                            break;
                        case 9:
                            r.Count = e.int64();
                            break;
                        case 10:
                            r.IsShow = e.int64();
                            break;
                        case 11:
                            r.ShowImage = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Duration && e.hasOwnProperty("Duration") && !(i.isInteger(e.Duration) || e.Duration && i.isInteger(e.Duration.low) && i.isInteger(e.Duration.high))) return "Duration: integer|Long expected";
                if (null != e.UnlockCondition && e.hasOwnProperty("UnlockCondition")) {
                    if (!Array.isArray(e.UnlockCondition)) return "UnlockCondition: array expected";
                    for (var t = 0; t < e.UnlockCondition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.UnlockCondition[t])) return "UnlockCondition." + n
                }
                if (null != e.FailureCondition && e.hasOwnProperty("FailureCondition")) {
                    if (!Array.isArray(e.FailureCondition)) return "FailureCondition: array expected";
                    for (t = 0; t < e.FailureCondition.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.FailureCondition[t])) return "FailureCondition." + n
                    }
                }
                return null != e.GiftId && e.hasOwnProperty("GiftId") && !(i.isInteger(e.GiftId) || e.GiftId && i.isInteger(e.GiftId.low) && i.isInteger(e.GiftId.high)) ? "GiftId: integer|Long expected" : null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null != e.IsShow && e.hasOwnProperty("IsShow") && !(i.isInteger(e.IsShow) || e.IsShow && i.isInteger(e.IsShow.low) && i.isInteger(e.IsShow.high)) ? "IsShow: integer|Long expected" : null != e.ShowImage && e.hasOwnProperty("ShowImage") && !i.isString(e.ShowImage) ? "ShowImage: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.TriggerGift_Config) return e;
                var t = new a.TriggerGift_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Duration && (i.Long ? (t.Duration = i.Long.fromValue(e.Duration)).unsigned = !1 : "string" == typeof e.Duration ? t.Duration = parseInt(e.Duration, 10) : "number" == typeof e.Duration ? t.Duration = e.Duration : "object" == typeof e.Duration && (t.Duration = new i.LongBits(e.Duration.low >>> 0, e.Duration.high >>> 0).toNumber())), e.UnlockCondition) {
                    if (!Array.isArray(e.UnlockCondition)) throw TypeError(".TriggerGift_Config.UnlockCondition: array expected");
                    t.UnlockCondition = [];
                    for (var n = 0; n < e.UnlockCondition.length; ++n) {
                        if ("object" != typeof e.UnlockCondition[n]) throw TypeError(".TriggerGift_Config.UnlockCondition: object expected");
                        t.UnlockCondition[n] = a.IntArray_Config.fromObject(e.UnlockCondition[n])
                    }
                }
                if (e.FailureCondition) {
                    if (!Array.isArray(e.FailureCondition)) throw TypeError(".TriggerGift_Config.FailureCondition: array expected");
                    for (t.FailureCondition = [], n = 0; n < e.FailureCondition.length; ++n) {
                        if ("object" != typeof e.FailureCondition[n]) throw TypeError(".TriggerGift_Config.FailureCondition: object expected");
                        t.FailureCondition[n] = a.IntArray_Config.fromObject(e.FailureCondition[n])
                    }
                }
                return null != e.GiftId && (i.Long ? (t.GiftId = i.Long.fromValue(e.GiftId)).unsigned = !1 : "string" == typeof e.GiftId ? t.GiftId = parseInt(e.GiftId, 10) : "number" == typeof e.GiftId ? t.GiftId = e.GiftId : "object" == typeof e.GiftId && (t.GiftId = new i.LongBits(e.GiftId.low >>> 0, e.GiftId.high >>> 0).toNumber())), null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), null != e.IsShow && (i.Long ? (t.IsShow = i.Long.fromValue(e.IsShow)).unsigned = !1 : "string" == typeof e.IsShow ? t.IsShow = parseInt(e.IsShow, 10) : "number" == typeof e.IsShow ? t.IsShow = e.IsShow : "object" == typeof e.IsShow && (t.IsShow = new i.LongBits(e.IsShow.low >>> 0, e.IsShow.high >>> 0).toNumber())), null != e.ShowImage && (t.ShowImage = String(e.ShowImage)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.UnlockCondition = [], n.FailureCondition = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Duration = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Duration = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GiftId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GiftId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.IsShow = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsShow = t.longs === String ? "0" : 0, n.ShowImage = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Duration && e.hasOwnProperty("Duration") && ("number" == typeof e.Duration ? n.Duration = t.longs === String ? String(e.Duration) : e.Duration : n.Duration = t.longs === String ? i.Long.prototype.toString.call(e.Duration) : t.longs === Number ? new i.LongBits(e.Duration.low >>> 0, e.Duration.high >>> 0).toNumber() : e.Duration), e.UnlockCondition && e.UnlockCondition.length) {
                    n.UnlockCondition = [];
                    for (var r = 0; r < e.UnlockCondition.length; ++r) n.UnlockCondition[r] = a.IntArray_Config.toObject(e.UnlockCondition[r], t)
                }
                if (e.FailureCondition && e.FailureCondition.length)
                    for (n.FailureCondition = [], r = 0; r < e.FailureCondition.length; ++r) n.FailureCondition[r] = a.IntArray_Config.toObject(e.FailureCondition[r], t);
                return null != e.GiftId && e.hasOwnProperty("GiftId") && ("number" == typeof e.GiftId ? n.GiftId = t.longs === String ? String(e.GiftId) : e.GiftId : n.GiftId = t.longs === String ? i.Long.prototype.toString.call(e.GiftId) : t.longs === Number ? new i.LongBits(e.GiftId.low >>> 0, e.GiftId.high >>> 0).toNumber() : e.GiftId), null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), null != e.IsShow && e.hasOwnProperty("IsShow") && ("number" == typeof e.IsShow ? n.IsShow = t.longs === String ? String(e.IsShow) : e.IsShow : n.IsShow = t.longs === String ? i.Long.prototype.toString.call(e.IsShow) : t.longs === Number ? new i.LongBits(e.IsShow.low >>> 0, e.IsShow.high >>> 0).toNumber() : e.IsShow), null != e.ShowImage && e.hasOwnProperty("ShowImage") && (n.ShowImage = e.ShowImage), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TriggerGift_Config"
            }, e
        }(), a.FeedbackGift_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CountId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.CountId && Object.hasOwnProperty.call(e, "CountId") && t.uint32(16).int64(e.CountId), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FeedbackGift_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.CountId = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.CountId && e.hasOwnProperty("CountId") && !(i.isInteger(e.CountId) || e.CountId && i.isInteger(e.CountId.low) && i.isInteger(e.CountId.high))) return "CountId: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.FeedbackGift_Config) return e;
                var t = new a.FeedbackGift_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.CountId && (i.Long ? (t.CountId = i.Long.fromValue(e.CountId)).unsigned = !1 : "string" == typeof e.CountId ? t.CountId = parseInt(e.CountId, 10) : "number" == typeof e.CountId ? t.CountId = e.CountId : "object" == typeof e.CountId && (t.CountId = new i.LongBits(e.CountId.low >>> 0, e.CountId.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".FeedbackGift_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".FeedbackGift_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.CountId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CountId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.CountId && e.hasOwnProperty("CountId") && ("number" == typeof e.CountId ? n.CountId = t.longs === String ? String(e.CountId) : e.CountId : n.CountId = t.longs === String ? i.Long.prototype.toString.call(e.CountId) : t.longs === Number ? new i.LongBits(e.CountId.low >>> 0, e.CountId.high >>> 0).toNumber() : e.CountId), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FeedbackGift_Config"
            }, e
        }(), a.GuideGroup_Config = function() {
            function e(e) {
                if (this.Steps1 = [], this.Steps2 = [], this.PreStep = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Steps1 = i.emptyArray, e.prototype.Steps2 = i.emptyArray, e.prototype.PreStep = i.emptyArray, e.prototype.Desc = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Steps1 && e.Steps1.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Steps1.length; ++n) t.int64(e.Steps1[n]);
                    t.ldelim()
                }
                if (null != e.Steps2 && e.Steps2.length) {
                    for (t.uint32(26).fork(), n = 0; n < e.Steps2.length; ++n) t.int64(e.Steps2[n]);
                    t.ldelim()
                }
                if (null != e.PreStep && e.PreStep.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.PreStep.length; ++n) t.int64(e.PreStep[n]);
                    t.ldelim()
                }
                return null != e.Desc && Object.hasOwnProperty.call(e, "Desc") && t.uint32(42).string(e.Desc), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GuideGroup_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Steps1 && r.Steps1.length || (r.Steps1 = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Steps1.push(e.int64());
                            else r.Steps1.push(e.int64());
                            break;
                        case 3:
                            if (r.Steps2 && r.Steps2.length || (r.Steps2 = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Steps2.push(e.int64());
                            else r.Steps2.push(e.int64());
                            break;
                        case 4:
                            if (r.PreStep && r.PreStep.length || (r.PreStep = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.PreStep.push(e.int64());
                            else r.PreStep.push(e.int64());
                            break;
                        case 5:
                            r.Desc = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Steps1 && e.hasOwnProperty("Steps1")) {
                    if (!Array.isArray(e.Steps1)) return "Steps1: array expected";
                    for (var t = 0; t < e.Steps1.length; ++t)
                        if (!(i.isInteger(e.Steps1[t]) || e.Steps1[t] && i.isInteger(e.Steps1[t].low) && i.isInteger(e.Steps1[t].high))) return "Steps1: integer|Long[] expected"
                }
                if (null != e.Steps2 && e.hasOwnProperty("Steps2")) {
                    if (!Array.isArray(e.Steps2)) return "Steps2: array expected";
                    for (t = 0; t < e.Steps2.length; ++t)
                        if (!(i.isInteger(e.Steps2[t]) || e.Steps2[t] && i.isInteger(e.Steps2[t].low) && i.isInteger(e.Steps2[t].high))) return "Steps2: integer|Long[] expected"
                }
                if (null != e.PreStep && e.hasOwnProperty("PreStep")) {
                    if (!Array.isArray(e.PreStep)) return "PreStep: array expected";
                    for (t = 0; t < e.PreStep.length; ++t)
                        if (!(i.isInteger(e.PreStep[t]) || e.PreStep[t] && i.isInteger(e.PreStep[t].low) && i.isInteger(e.PreStep[t].high))) return "PreStep: integer|Long[] expected"
                }
                return null != e.Desc && e.hasOwnProperty("Desc") && !i.isString(e.Desc) ? "Desc: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GuideGroup_Config) return e;
                var t = new a.GuideGroup_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Steps1) {
                    if (!Array.isArray(e.Steps1)) throw TypeError(".GuideGroup_Config.Steps1: array expected");
                    t.Steps1 = [];
                    for (var n = 0; n < e.Steps1.length; ++n) i.Long ? (t.Steps1[n] = i.Long.fromValue(e.Steps1[n])).unsigned = !1 : "string" == typeof e.Steps1[n] ? t.Steps1[n] = parseInt(e.Steps1[n], 10) : "number" == typeof e.Steps1[n] ? t.Steps1[n] = e.Steps1[n] : "object" == typeof e.Steps1[n] && (t.Steps1[n] = new i.LongBits(e.Steps1[n].low >>> 0, e.Steps1[n].high >>> 0).toNumber())
                }
                if (e.Steps2) {
                    if (!Array.isArray(e.Steps2)) throw TypeError(".GuideGroup_Config.Steps2: array expected");
                    for (t.Steps2 = [], n = 0; n < e.Steps2.length; ++n) i.Long ? (t.Steps2[n] = i.Long.fromValue(e.Steps2[n])).unsigned = !1 : "string" == typeof e.Steps2[n] ? t.Steps2[n] = parseInt(e.Steps2[n], 10) : "number" == typeof e.Steps2[n] ? t.Steps2[n] = e.Steps2[n] : "object" == typeof e.Steps2[n] && (t.Steps2[n] = new i.LongBits(e.Steps2[n].low >>> 0, e.Steps2[n].high >>> 0).toNumber())
                }
                if (e.PreStep) {
                    if (!Array.isArray(e.PreStep)) throw TypeError(".GuideGroup_Config.PreStep: array expected");
                    for (t.PreStep = [], n = 0; n < e.PreStep.length; ++n) i.Long ? (t.PreStep[n] = i.Long.fromValue(e.PreStep[n])).unsigned = !1 : "string" == typeof e.PreStep[n] ? t.PreStep[n] = parseInt(e.PreStep[n], 10) : "number" == typeof e.PreStep[n] ? t.PreStep[n] = e.PreStep[n] : "object" == typeof e.PreStep[n] && (t.PreStep[n] = new i.LongBits(e.PreStep[n].low >>> 0, e.PreStep[n].high >>> 0).toNumber())
                }
                return null != e.Desc && (t.Desc = String(e.Desc)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Steps1 = [], n.Steps2 = [], n.PreStep = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Desc = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Steps1 && e.Steps1.length) {
                    n.Steps1 = [];
                    for (var r = 0; r < e.Steps1.length; ++r) "number" == typeof e.Steps1[r] ? n.Steps1[r] = t.longs === String ? String(e.Steps1[r]) : e.Steps1[r] : n.Steps1[r] = t.longs === String ? i.Long.prototype.toString.call(e.Steps1[r]) : t.longs === Number ? new i.LongBits(e.Steps1[r].low >>> 0, e.Steps1[r].high >>> 0).toNumber() : e.Steps1[r]
                }
                if (e.Steps2 && e.Steps2.length)
                    for (n.Steps2 = [], r = 0; r < e.Steps2.length; ++r) "number" == typeof e.Steps2[r] ? n.Steps2[r] = t.longs === String ? String(e.Steps2[r]) : e.Steps2[r] : n.Steps2[r] = t.longs === String ? i.Long.prototype.toString.call(e.Steps2[r]) : t.longs === Number ? new i.LongBits(e.Steps2[r].low >>> 0, e.Steps2[r].high >>> 0).toNumber() : e.Steps2[r];
                if (e.PreStep && e.PreStep.length)
                    for (n.PreStep = [], r = 0; r < e.PreStep.length; ++r) "number" == typeof e.PreStep[r] ? n.PreStep[r] = t.longs === String ? String(e.PreStep[r]) : e.PreStep[r] : n.PreStep[r] = t.longs === String ? i.Long.prototype.toString.call(e.PreStep[r]) : t.longs === Number ? new i.LongBits(e.PreStep[r].low >>> 0, e.PreStep[r].high >>> 0).toNumber() : e.PreStep[r];
                return null != e.Desc && e.hasOwnProperty("Desc") && (n.Desc = e.Desc), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GuideGroup_Config"
            }, e
        }(), a.RandomName_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NamePool1 = "", e.prototype.NamePool2 = "", e.prototype.NamePool3 = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.NamePool1 && Object.hasOwnProperty.call(e, "NamePool1") && t.uint32(18).string(e.NamePool1), null != e.NamePool2 && Object.hasOwnProperty.call(e, "NamePool2") && t.uint32(26).string(e.NamePool2), null != e.NamePool3 && Object.hasOwnProperty.call(e, "NamePool3") && t.uint32(34).string(e.NamePool3), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RandomName_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.NamePool1 = e.string();
                            break;
                        case 3:
                            r.NamePool2 = e.string();
                            break;
                        case 4:
                            r.NamePool3 = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.NamePool1 && e.hasOwnProperty("NamePool1") && !i.isString(e.NamePool1) ? "NamePool1: string expected" : null != e.NamePool2 && e.hasOwnProperty("NamePool2") && !i.isString(e.NamePool2) ? "NamePool2: string expected" : null != e.NamePool3 && e.hasOwnProperty("NamePool3") && !i.isString(e.NamePool3) ? "NamePool3: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RandomName_Config) return e;
                var t = new a.RandomName_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.NamePool1 && (t.NamePool1 = String(e.NamePool1)), null != e.NamePool2 && (t.NamePool2 = String(e.NamePool2)), null != e.NamePool3 && (t.NamePool3 = String(e.NamePool3)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.NamePool1 = "", n.NamePool2 = "", n.NamePool3 = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.NamePool1 && e.hasOwnProperty("NamePool1") && (n.NamePool1 = e.NamePool1), null != e.NamePool2 && e.hasOwnProperty("NamePool2") && (n.NamePool2 = e.NamePool2), null != e.NamePool3 && e.hasOwnProperty("NamePool3") && (n.NamePool3 = e.NamePool3), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RandomName_Config"
            }, e
        }(), a.CloudTreasureHunt_Config = function() {
            function e(e) {
                if (this.AdvanceRewards = [], this.NormalRewards = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SummonType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AdvanceRewards = i.emptyArray, e.prototype.NormalRewards = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.SummonType && Object.hasOwnProperty.call(e, "SummonType") && t.uint32(16).int64(e.SummonType), null != e.AdvanceRewards && e.AdvanceRewards.length)
                    for (var n = 0; n < e.AdvanceRewards.length; ++n) a.IntArray_Config.encode(e.AdvanceRewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.NormalRewards && e.NormalRewards.length)
                    for (n = 0; n < e.NormalRewards.length; ++n) a.IntArray_Config.encode(e.NormalRewards[n], t.uint32(34).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CloudTreasureHunt_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.SummonType = e.int64();
                            break;
                        case 3:
                            r.AdvanceRewards && r.AdvanceRewards.length || (r.AdvanceRewards = []), r.AdvanceRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.NormalRewards && r.NormalRewards.length || (r.NormalRewards = []), r.NormalRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.SummonType && e.hasOwnProperty("SummonType") && !(i.isInteger(e.SummonType) || e.SummonType && i.isInteger(e.SummonType.low) && i.isInteger(e.SummonType.high))) return "SummonType: integer|Long expected";
                if (null != e.AdvanceRewards && e.hasOwnProperty("AdvanceRewards")) {
                    if (!Array.isArray(e.AdvanceRewards)) return "AdvanceRewards: array expected";
                    for (var t = 0; t < e.AdvanceRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AdvanceRewards[t])) return "AdvanceRewards." + n
                }
                if (null != e.NormalRewards && e.hasOwnProperty("NormalRewards")) {
                    if (!Array.isArray(e.NormalRewards)) return "NormalRewards: array expected";
                    for (t = 0; t < e.NormalRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.NormalRewards[t])) return "NormalRewards." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CloudTreasureHunt_Config) return e;
                var t = new a.CloudTreasureHunt_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.SummonType && (i.Long ? (t.SummonType = i.Long.fromValue(e.SummonType)).unsigned = !1 : "string" == typeof e.SummonType ? t.SummonType = parseInt(e.SummonType, 10) : "number" == typeof e.SummonType ? t.SummonType = e.SummonType : "object" == typeof e.SummonType && (t.SummonType = new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber())), e.AdvanceRewards) {
                    if (!Array.isArray(e.AdvanceRewards)) throw TypeError(".CloudTreasureHunt_Config.AdvanceRewards: array expected");
                    t.AdvanceRewards = [];
                    for (var n = 0; n < e.AdvanceRewards.length; ++n) {
                        if ("object" != typeof e.AdvanceRewards[n]) throw TypeError(".CloudTreasureHunt_Config.AdvanceRewards: object expected");
                        t.AdvanceRewards[n] = a.IntArray_Config.fromObject(e.AdvanceRewards[n])
                    }
                }
                if (e.NormalRewards) {
                    if (!Array.isArray(e.NormalRewards)) throw TypeError(".CloudTreasureHunt_Config.NormalRewards: array expected");
                    for (t.NormalRewards = [], n = 0; n < e.NormalRewards.length; ++n) {
                        if ("object" != typeof e.NormalRewards[n]) throw TypeError(".CloudTreasureHunt_Config.NormalRewards: object expected");
                        t.NormalRewards[n] = a.IntArray_Config.fromObject(e.NormalRewards[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".CloudTreasureHunt_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".CloudTreasureHunt_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AdvanceRewards = [], n.NormalRewards = [], n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SummonType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SummonType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.SummonType && e.hasOwnProperty("SummonType") && ("number" == typeof e.SummonType ? n.SummonType = t.longs === String ? String(e.SummonType) : e.SummonType : n.SummonType = t.longs === String ? i.Long.prototype.toString.call(e.SummonType) : t.longs === Number ? new i.LongBits(e.SummonType.low >>> 0, e.SummonType.high >>> 0).toNumber() : e.SummonType), e.AdvanceRewards && e.AdvanceRewards.length) {
                    n.AdvanceRewards = [];
                    for (var r = 0; r < e.AdvanceRewards.length; ++r) n.AdvanceRewards[r] = a.IntArray_Config.toObject(e.AdvanceRewards[r], t)
                }
                if (e.NormalRewards && e.NormalRewards.length)
                    for (n.NormalRewards = [], r = 0; r < e.NormalRewards.length; ++r) n.NormalRewards[r] = a.IntArray_Config.toObject(e.NormalRewards[r], t);
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CloudTreasureHunt_Config"
            }, e
        }(), a.LuckyStarStage_Config = function() {
            function e(e) {
                if (this.AdvanceRewards = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AdvanceRewards = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.AdvanceRewards && e.AdvanceRewards.length)
                    for (var n = 0; n < e.AdvanceRewards.length; ++n) a.FloatArray_Config.encode(e.AdvanceRewards[n], t.uint32(18).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.FloatArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LuckyStarStage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.AdvanceRewards && r.AdvanceRewards.length || (r.AdvanceRewards = []), r.AdvanceRewards.push(a.FloatArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.FloatArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.AdvanceRewards && e.hasOwnProperty("AdvanceRewards")) {
                    if (!Array.isArray(e.AdvanceRewards)) return "AdvanceRewards: array expected";
                    for (var t = 0; t < e.AdvanceRewards.length; ++t)
                        if (n = a.FloatArray_Config.verify(e.AdvanceRewards[t])) return "AdvanceRewards." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.FloatArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.LuckyStarStage_Config) return e;
                var t = new a.LuckyStarStage_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.AdvanceRewards) {
                    if (!Array.isArray(e.AdvanceRewards)) throw TypeError(".LuckyStarStage_Config.AdvanceRewards: array expected");
                    t.AdvanceRewards = [];
                    for (var n = 0; n < e.AdvanceRewards.length; ++n) {
                        if ("object" != typeof e.AdvanceRewards[n]) throw TypeError(".LuckyStarStage_Config.AdvanceRewards: object expected");
                        t.AdvanceRewards[n] = a.FloatArray_Config.fromObject(e.AdvanceRewards[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".LuckyStarStage_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".LuckyStarStage_Config.Rewards: object expected");
                        t.Rewards[n] = a.FloatArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AdvanceRewards = [], n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.AdvanceRewards && e.AdvanceRewards.length) {
                    n.AdvanceRewards = [];
                    for (var r = 0; r < e.AdvanceRewards.length; ++r) n.AdvanceRewards[r] = a.FloatArray_Config.toObject(e.AdvanceRewards[r], t)
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.FloatArray_Config.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LuckyStarStage_Config"
            }, e
        }(), a.LuckyStarRewards_Config = function() {
            function e(e) {
                if (this.Rewards = [], this.Weight = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Weight = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                if (null != e.Weight && e.Weight.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.Weight.length; ++n) t.int64(e.Weight[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LuckyStarRewards_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            if (r.Weight && r.Weight.length || (r.Weight = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Weight.push(e.int64());
                            else r.Weight.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                if (null != e.Weight && e.hasOwnProperty("Weight")) {
                    if (!Array.isArray(e.Weight)) return "Weight: array expected";
                    for (t = 0; t < e.Weight.length; ++t)
                        if (!(i.isInteger(e.Weight[t]) || e.Weight[t] && i.isInteger(e.Weight[t].low) && i.isInteger(e.Weight[t].high))) return "Weight: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.LuckyStarRewards_Config) return e;
                var t = new a.LuckyStarRewards_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".LuckyStarRewards_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".LuckyStarRewards_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.Weight) {
                    if (!Array.isArray(e.Weight)) throw TypeError(".LuckyStarRewards_Config.Weight: array expected");
                    for (t.Weight = [], n = 0; n < e.Weight.length; ++n) i.Long ? (t.Weight[n] = i.Long.fromValue(e.Weight[n])).unsigned = !1 : "string" == typeof e.Weight[n] ? t.Weight[n] = parseInt(e.Weight[n], 10) : "number" == typeof e.Weight[n] ? t.Weight[n] = e.Weight[n] : "object" == typeof e.Weight[n] && (t.Weight[n] = new i.LongBits(e.Weight[n].low >>> 0, e.Weight[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.Weight = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                if (e.Weight && e.Weight.length)
                    for (n.Weight = [], r = 0; r < e.Weight.length; ++r) "number" == typeof e.Weight[r] ? n.Weight[r] = t.longs === String ? String(e.Weight[r]) : e.Weight[r] : n.Weight[r] = t.longs === String ? i.Long.prototype.toString.call(e.Weight[r]) : t.longs === Number ? new i.LongBits(e.Weight[r].low >>> 0, e.Weight[r].high >>> 0).toNumber() : e.Weight[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LuckyStarRewards_Config"
            }, e
        }(), a.StrengthRank_Config = function() {
            function e(e) {
                if (this.FormationHeros = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FormationHeros = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.FormationHeros && e.FormationHeros.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.FormationHeros.length; ++n) t.int64(e.FormationHeros[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StrengthRank_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.FormationHeros && r.FormationHeros.length || (r.FormationHeros = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.FormationHeros.push(e.int64());
                            else r.FormationHeros.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.FormationHeros && e.hasOwnProperty("FormationHeros")) {
                    if (!Array.isArray(e.FormationHeros)) return "FormationHeros: array expected";
                    for (var t = 0; t < e.FormationHeros.length; ++t)
                        if (!(i.isInteger(e.FormationHeros[t]) || e.FormationHeros[t] && i.isInteger(e.FormationHeros[t].low) && i.isInteger(e.FormationHeros[t].high))) return "FormationHeros: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StrengthRank_Config) return e;
                var t = new a.StrengthRank_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.FormationHeros) {
                    if (!Array.isArray(e.FormationHeros)) throw TypeError(".StrengthRank_Config.FormationHeros: array expected");
                    t.FormationHeros = [];
                    for (var n = 0; n < e.FormationHeros.length; ++n) i.Long ? (t.FormationHeros[n] = i.Long.fromValue(e.FormationHeros[n])).unsigned = !1 : "string" == typeof e.FormationHeros[n] ? t.FormationHeros[n] = parseInt(e.FormationHeros[n], 10) : "number" == typeof e.FormationHeros[n] ? t.FormationHeros[n] = e.FormationHeros[n] : "object" == typeof e.FormationHeros[n] && (t.FormationHeros[n] = new i.LongBits(e.FormationHeros[n].low >>> 0, e.FormationHeros[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.FormationHeros = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.FormationHeros && e.FormationHeros.length) {
                    n.FormationHeros = [];
                    for (var r = 0; r < e.FormationHeros.length; ++r) "number" == typeof e.FormationHeros[r] ? n.FormationHeros[r] = t.longs === String ? String(e.FormationHeros[r]) : e.FormationHeros[r] : n.FormationHeros[r] = t.longs === String ? i.Long.prototype.toString.call(e.FormationHeros[r]) : t.longs === Number ? new i.LongBits(e.FormationHeros[r].low >>> 0, e.FormationHeros[r].high >>> 0).toNumber() : e.FormationHeros[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StrengthRank_Config"
            }, e
        }(), a.ItemRecycle_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StartDate = "", e.prototype.OpenDays = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Duration = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.StartDate && Object.hasOwnProperty.call(e, "StartDate") && t.uint32(26).string(e.StartDate), null != e.OpenDays && Object.hasOwnProperty.call(e, "OpenDays") && t.uint32(32).int64(e.OpenDays), null != e.Duration && Object.hasOwnProperty.call(e, "Duration") && t.uint32(40).int64(e.Duration), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(50).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemRecycle_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.StartDate = e.string();
                            break;
                        case 4:
                            r.OpenDays = e.int64();
                            break;
                        case 5:
                            r.Duration = e.int64();
                            break;
                        case 6:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.StartDate && e.hasOwnProperty("StartDate") && !i.isString(e.StartDate)) return "StartDate: string expected";
                if (null != e.OpenDays && e.hasOwnProperty("OpenDays") && !(i.isInteger(e.OpenDays) || e.OpenDays && i.isInteger(e.OpenDays.low) && i.isInteger(e.OpenDays.high))) return "OpenDays: integer|Long expected";
                if (null != e.Duration && e.hasOwnProperty("Duration") && !(i.isInteger(e.Duration) || e.Duration && i.isInteger(e.Duration.low) && i.isInteger(e.Duration.high))) return "Duration: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemRecycle_Config) return e;
                var t = new a.ItemRecycle_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.StartDate && (t.StartDate = String(e.StartDate)), null != e.OpenDays && (i.Long ? (t.OpenDays = i.Long.fromValue(e.OpenDays)).unsigned = !1 : "string" == typeof e.OpenDays ? t.OpenDays = parseInt(e.OpenDays, 10) : "number" == typeof e.OpenDays ? t.OpenDays = e.OpenDays : "object" == typeof e.OpenDays && (t.OpenDays = new i.LongBits(e.OpenDays.low >>> 0, e.OpenDays.high >>> 0).toNumber())), null != e.Duration && (i.Long ? (t.Duration = i.Long.fromValue(e.Duration)).unsigned = !1 : "string" == typeof e.Duration ? t.Duration = parseInt(e.Duration, 10) : "number" == typeof e.Duration ? t.Duration = e.Duration : "object" == typeof e.Duration && (t.Duration = new i.LongBits(e.Duration.low >>> 0, e.Duration.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".ItemRecycle_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".ItemRecycle_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.StartDate = "", i.Long ? (o = new i.Long(0, 0, !1), n.OpenDays = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OpenDays = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Duration = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Duration = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.StartDate && e.hasOwnProperty("StartDate") && (n.StartDate = e.StartDate), null != e.OpenDays && e.hasOwnProperty("OpenDays") && ("number" == typeof e.OpenDays ? n.OpenDays = t.longs === String ? String(e.OpenDays) : e.OpenDays : n.OpenDays = t.longs === String ? i.Long.prototype.toString.call(e.OpenDays) : t.longs === Number ? new i.LongBits(e.OpenDays.low >>> 0, e.OpenDays.high >>> 0).toNumber() : e.OpenDays), null != e.Duration && e.hasOwnProperty("Duration") && ("number" == typeof e.Duration ? n.Duration = t.longs === String ? String(e.Duration) : e.Duration : n.Duration = t.longs === String ? i.Long.prototype.toString.call(e.Duration) : t.longs === Number ? new i.LongBits(e.Duration.low >>> 0, e.Duration.high >>> 0).toNumber() : e.Duration), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemRecycle_Config"
            }, e
        }(), a.ItemPersonality_Config = function() {
            function e(e) {
                if (this.DecomposeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DecomposeItems = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(16).int64(e.HeroId), null != e.DecomposeItems && e.DecomposeItems.length)
                    for (var n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemPersonality_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HeroId = e.int64();
                            break;
                        case 3:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high))) return "HeroId: integer|Long expected";
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (var t = 0; t < e.DecomposeItems.length; ++t) {
                        var n = a.IntArray_Config.verify(e.DecomposeItems[t]);
                        if (n) return "DecomposeItems." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemPersonality_Config) return e;
                var t = new a.ItemPersonality_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".ItemPersonality_Config.DecomposeItems: array expected");
                    t.DecomposeItems = [];
                    for (var n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".ItemPersonality_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.DecomposeItems = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), e.DecomposeItems && e.DecomposeItems.length) {
                    n.DecomposeItems = [];
                    for (var r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemPersonality_Config"
            }, e
        }(), a.SeniorArenaReward_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Output = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Output && Object.hasOwnProperty.call(e, "Output") && t.uint32(16).int64(e.Output), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SeniorArenaReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Output = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Output && e.hasOwnProperty("Output") && !(i.isInteger(e.Output) || e.Output && i.isInteger(e.Output.low) && i.isInteger(e.Output.high)) ? "Output: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SeniorArenaReward_Config) return e;
                var t = new a.SeniorArenaReward_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Output && (i.Long ? (t.Output = i.Long.fromValue(e.Output)).unsigned = !1 : "string" == typeof e.Output ? t.Output = parseInt(e.Output, 10) : "number" == typeof e.Output ? t.Output = e.Output : "object" == typeof e.Output && (t.Output = new i.LongBits(e.Output.low >>> 0, e.Output.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Output = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Output = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Output && e.hasOwnProperty("Output") && ("number" == typeof e.Output ? n.Output = t.longs === String ? String(e.Output) : e.Output : n.Output = t.longs === String ? i.Long.prototype.toString.call(e.Output) : t.longs === Number ? new i.LongBits(e.Output.low >>> 0, e.Output.high >>> 0).toNumber() : e.Output), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SeniorArenaReward_Config"
            }, e
        }(), a.PersonalityStar_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs = [], this.ChaosMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ChaosMaterials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(32).int64(e.Score), null != e.ChaosMaterials && e.ChaosMaterials.length)
                    for (n = 0; n < e.ChaosMaterials.length; ++n) a.IntArray_Config.encode(e.ChaosMaterials[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PersonalityStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Score = e.int64();
                            break;
                        case 5:
                            r.ChaosMaterials && r.ChaosMaterials.length || (r.ChaosMaterials = []), r.ChaosMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.ChaosMaterials && e.hasOwnProperty("ChaosMaterials")) {
                    if (!Array.isArray(e.ChaosMaterials)) return "ChaosMaterials: array expected";
                    for (t = 0; t < e.ChaosMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ChaosMaterials[t])) return "ChaosMaterials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PersonalityStar_Config) return e;
                var t = new a.PersonalityStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".PersonalityStar_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".PersonalityStar_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".PersonalityStar_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".PersonalityStar_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.ChaosMaterials) {
                    if (!Array.isArray(e.ChaosMaterials)) throw TypeError(".PersonalityStar_Config.ChaosMaterials: array expected");
                    for (t.ChaosMaterials = [], n = 0; n < e.ChaosMaterials.length; ++n) {
                        if ("object" != typeof e.ChaosMaterials[n]) throw TypeError(".PersonalityStar_Config.ChaosMaterials: object expected");
                        t.ChaosMaterials[n] = a.IntArray_Config.fromObject(e.ChaosMaterials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs = [], n.ChaosMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.ChaosMaterials && e.ChaosMaterials.length)
                    for (n.ChaosMaterials = [], r = 0; r < e.ChaosMaterials.length; ++r) n.ChaosMaterials[r] = a.IntArray_Config.toObject(e.ChaosMaterials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PersonalityStar_Config"
            }, e
        }(), a.CurrencyMapping_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.USD = 0, e.prototype.CAD = 0, e.prototype.AUD = 0, e.prototype.GBP = 0, e.prototype.TWD = 0, e.prototype.EUR = 0, e.prototype.CHF = 0, e.prototype.CZK = 0, e.prototype.DKK = 0, e.prototype.HKD = 0, e.prototype.HUF = 0, e.prototype.NOK = 0, e.prototype.NZD = 0, e.prototype.PLN = 0, e.prototype.SEK = 0, e.prototype.SGD = 0, e.prototype.THB = 0, e.prototype.PHP = 0, e.prototype.MXN = 0, e.prototype.ILS = 0, e.prototype.RUB = 0, e.prototype.KRW = 0, e.prototype.VND = 0, e.prototype.IDR = 0, e.prototype.CLP = 0, e.prototype.MYR = 0, e.prototype.BRL = 0, e.prototype.AED = 0, e.prototype.BDT = 0, e.prototype.PEN = 0, e.prototype.RON = 0, e.prototype.SAR = 0, e.prototype.INR = 0, e.prototype.ISK = 0, e.prototype.BGN = 0, e.prototype.ARS = 0, e.prototype.MOP = 0, e.prototype.ColorDiamond = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.USD && Object.hasOwnProperty.call(e, "USD") && t.uint32(21).float(e.USD), null != e.CAD && Object.hasOwnProperty.call(e, "CAD") && t.uint32(29).float(e.CAD), null != e.AUD && Object.hasOwnProperty.call(e, "AUD") && t.uint32(37).float(e.AUD), null != e.GBP && Object.hasOwnProperty.call(e, "GBP") && t.uint32(45).float(e.GBP), null != e.TWD && Object.hasOwnProperty.call(e, "TWD") && t.uint32(53).float(e.TWD), null != e.EUR && Object.hasOwnProperty.call(e, "EUR") && t.uint32(61).float(e.EUR), null != e.CHF && Object.hasOwnProperty.call(e, "CHF") && t.uint32(69).float(e.CHF), null != e.CZK && Object.hasOwnProperty.call(e, "CZK") && t.uint32(77).float(e.CZK), null != e.DKK && Object.hasOwnProperty.call(e, "DKK") && t.uint32(85).float(e.DKK), null != e.HKD && Object.hasOwnProperty.call(e, "HKD") && t.uint32(93).float(e.HKD), null != e.HUF && Object.hasOwnProperty.call(e, "HUF") && t.uint32(101).float(e.HUF), null != e.NOK && Object.hasOwnProperty.call(e, "NOK") && t.uint32(109).float(e.NOK), null != e.NZD && Object.hasOwnProperty.call(e, "NZD") && t.uint32(125).float(e.NZD), null != e.PLN && Object.hasOwnProperty.call(e, "PLN") && t.uint32(133).float(e.PLN), null != e.SEK && Object.hasOwnProperty.call(e, "SEK") && t.uint32(141).float(e.SEK), null != e.SGD && Object.hasOwnProperty.call(e, "SGD") && t.uint32(149).float(e.SGD), null != e.THB && Object.hasOwnProperty.call(e, "THB") && t.uint32(157).float(e.THB), null != e.PHP && Object.hasOwnProperty.call(e, "PHP") && t.uint32(165).float(e.PHP), null != e.MXN && Object.hasOwnProperty.call(e, "MXN") && t.uint32(173).float(e.MXN), null != e.ILS && Object.hasOwnProperty.call(e, "ILS") && t.uint32(181).float(e.ILS), null != e.RUB && Object.hasOwnProperty.call(e, "RUB") && t.uint32(189).float(e.RUB), null != e.KRW && Object.hasOwnProperty.call(e, "KRW") && t.uint32(197).float(e.KRW), null != e.VND && Object.hasOwnProperty.call(e, "VND") && t.uint32(205).float(e.VND), null != e.IDR && Object.hasOwnProperty.call(e, "IDR") && t.uint32(213).float(e.IDR), null != e.CLP && Object.hasOwnProperty.call(e, "CLP") && t.uint32(221).float(e.CLP), null != e.MYR && Object.hasOwnProperty.call(e, "MYR") && t.uint32(229).float(e.MYR), null != e.BRL && Object.hasOwnProperty.call(e, "BRL") && t.uint32(237).float(e.BRL), null != e.AED && Object.hasOwnProperty.call(e, "AED") && t.uint32(245).float(e.AED), null != e.BDT && Object.hasOwnProperty.call(e, "BDT") && t.uint32(253).float(e.BDT), null != e.PEN && Object.hasOwnProperty.call(e, "PEN") && t.uint32(261).float(e.PEN), null != e.RON && Object.hasOwnProperty.call(e, "RON") && t.uint32(269).float(e.RON), null != e.SAR && Object.hasOwnProperty.call(e, "SAR") && t.uint32(277).float(e.SAR), null != e.INR && Object.hasOwnProperty.call(e, "INR") && t.uint32(285).float(e.INR), null != e.ISK && Object.hasOwnProperty.call(e, "ISK") && t.uint32(293).float(e.ISK), null != e.BGN && Object.hasOwnProperty.call(e, "BGN") && t.uint32(301).float(e.BGN), null != e.ARS && Object.hasOwnProperty.call(e, "ARS") && t.uint32(309).float(e.ARS), null != e.MOP && Object.hasOwnProperty.call(e, "MOP") && t.uint32(317).float(e.MOP), null != e.ColorDiamond && Object.hasOwnProperty.call(e, "ColorDiamond") && t.uint32(325).float(e.ColorDiamond), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CurrencyMapping_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.USD = e.float();
                            break;
                        case 3:
                            r.CAD = e.float();
                            break;
                        case 4:
                            r.AUD = e.float();
                            break;
                        case 5:
                            r.GBP = e.float();
                            break;
                        case 6:
                            r.TWD = e.float();
                            break;
                        case 7:
                            r.EUR = e.float();
                            break;
                        case 8:
                            r.CHF = e.float();
                            break;
                        case 9:
                            r.CZK = e.float();
                            break;
                        case 10:
                            r.DKK = e.float();
                            break;
                        case 11:
                            r.HKD = e.float();
                            break;
                        case 12:
                            r.HUF = e.float();
                            break;
                        case 13:
                            r.NOK = e.float();
                            break;
                        case 15:
                            r.NZD = e.float();
                            break;
                        case 16:
                            r.PLN = e.float();
                            break;
                        case 17:
                            r.SEK = e.float();
                            break;
                        case 18:
                            r.SGD = e.float();
                            break;
                        case 19:
                            r.THB = e.float();
                            break;
                        case 20:
                            r.PHP = e.float();
                            break;
                        case 21:
                            r.MXN = e.float();
                            break;
                        case 22:
                            r.ILS = e.float();
                            break;
                        case 23:
                            r.RUB = e.float();
                            break;
                        case 24:
                            r.KRW = e.float();
                            break;
                        case 25:
                            r.VND = e.float();
                            break;
                        case 26:
                            r.IDR = e.float();
                            break;
                        case 27:
                            r.CLP = e.float();
                            break;
                        case 28:
                            r.MYR = e.float();
                            break;
                        case 29:
                            r.BRL = e.float();
                            break;
                        case 30:
                            r.AED = e.float();
                            break;
                        case 31:
                            r.BDT = e.float();
                            break;
                        case 32:
                            r.PEN = e.float();
                            break;
                        case 33:
                            r.RON = e.float();
                            break;
                        case 34:
                            r.SAR = e.float();
                            break;
                        case 35:
                            r.INR = e.float();
                            break;
                        case 36:
                            r.ISK = e.float();
                            break;
                        case 37:
                            r.BGN = e.float();
                            break;
                        case 38:
                            r.ARS = e.float();
                            break;
                        case 39:
                            r.MOP = e.float();
                            break;
                        case 40:
                            r.ColorDiamond = e.float();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.USD && e.hasOwnProperty("USD") && "number" != typeof e.USD ? "USD: number expected" : null != e.CAD && e.hasOwnProperty("CAD") && "number" != typeof e.CAD ? "CAD: number expected" : null != e.AUD && e.hasOwnProperty("AUD") && "number" != typeof e.AUD ? "AUD: number expected" : null != e.GBP && e.hasOwnProperty("GBP") && "number" != typeof e.GBP ? "GBP: number expected" : null != e.TWD && e.hasOwnProperty("TWD") && "number" != typeof e.TWD ? "TWD: number expected" : null != e.EUR && e.hasOwnProperty("EUR") && "number" != typeof e.EUR ? "EUR: number expected" : null != e.CHF && e.hasOwnProperty("CHF") && "number" != typeof e.CHF ? "CHF: number expected" : null != e.CZK && e.hasOwnProperty("CZK") && "number" != typeof e.CZK ? "CZK: number expected" : null != e.DKK && e.hasOwnProperty("DKK") && "number" != typeof e.DKK ? "DKK: number expected" : null != e.HKD && e.hasOwnProperty("HKD") && "number" != typeof e.HKD ? "HKD: number expected" : null != e.HUF && e.hasOwnProperty("HUF") && "number" != typeof e.HUF ? "HUF: number expected" : null != e.NOK && e.hasOwnProperty("NOK") && "number" != typeof e.NOK ? "NOK: number expected" : null != e.NZD && e.hasOwnProperty("NZD") && "number" != typeof e.NZD ? "NZD: number expected" : null != e.PLN && e.hasOwnProperty("PLN") && "number" != typeof e.PLN ? "PLN: number expected" : null != e.SEK && e.hasOwnProperty("SEK") && "number" != typeof e.SEK ? "SEK: number expected" : null != e.SGD && e.hasOwnProperty("SGD") && "number" != typeof e.SGD ? "SGD: number expected" : null != e.THB && e.hasOwnProperty("THB") && "number" != typeof e.THB ? "THB: number expected" : null != e.PHP && e.hasOwnProperty("PHP") && "number" != typeof e.PHP ? "PHP: number expected" : null != e.MXN && e.hasOwnProperty("MXN") && "number" != typeof e.MXN ? "MXN: number expected" : null != e.ILS && e.hasOwnProperty("ILS") && "number" != typeof e.ILS ? "ILS: number expected" : null != e.RUB && e.hasOwnProperty("RUB") && "number" != typeof e.RUB ? "RUB: number expected" : null != e.KRW && e.hasOwnProperty("KRW") && "number" != typeof e.KRW ? "KRW: number expected" : null != e.VND && e.hasOwnProperty("VND") && "number" != typeof e.VND ? "VND: number expected" : null != e.IDR && e.hasOwnProperty("IDR") && "number" != typeof e.IDR ? "IDR: number expected" : null != e.CLP && e.hasOwnProperty("CLP") && "number" != typeof e.CLP ? "CLP: number expected" : null != e.MYR && e.hasOwnProperty("MYR") && "number" != typeof e.MYR ? "MYR: number expected" : null != e.BRL && e.hasOwnProperty("BRL") && "number" != typeof e.BRL ? "BRL: number expected" : null != e.AED && e.hasOwnProperty("AED") && "number" != typeof e.AED ? "AED: number expected" : null != e.BDT && e.hasOwnProperty("BDT") && "number" != typeof e.BDT ? "BDT: number expected" : null != e.PEN && e.hasOwnProperty("PEN") && "number" != typeof e.PEN ? "PEN: number expected" : null != e.RON && e.hasOwnProperty("RON") && "number" != typeof e.RON ? "RON: number expected" : null != e.SAR && e.hasOwnProperty("SAR") && "number" != typeof e.SAR ? "SAR: number expected" : null != e.INR && e.hasOwnProperty("INR") && "number" != typeof e.INR ? "INR: number expected" : null != e.ISK && e.hasOwnProperty("ISK") && "number" != typeof e.ISK ? "ISK: number expected" : null != e.BGN && e.hasOwnProperty("BGN") && "number" != typeof e.BGN ? "BGN: number expected" : null != e.ARS && e.hasOwnProperty("ARS") && "number" != typeof e.ARS ? "ARS: number expected" : null != e.MOP && e.hasOwnProperty("MOP") && "number" != typeof e.MOP ? "MOP: number expected" : null != e.ColorDiamond && e.hasOwnProperty("ColorDiamond") && "number" != typeof e.ColorDiamond ? "ColorDiamond: number expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CurrencyMapping_Config) return e;
                var t = new a.CurrencyMapping_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.USD && (t.USD = Number(e.USD)), null != e.CAD && (t.CAD = Number(e.CAD)), null != e.AUD && (t.AUD = Number(e.AUD)), null != e.GBP && (t.GBP = Number(e.GBP)), null != e.TWD && (t.TWD = Number(e.TWD)), null != e.EUR && (t.EUR = Number(e.EUR)), null != e.CHF && (t.CHF = Number(e.CHF)), null != e.CZK && (t.CZK = Number(e.CZK)), null != e.DKK && (t.DKK = Number(e.DKK)), null != e.HKD && (t.HKD = Number(e.HKD)), null != e.HUF && (t.HUF = Number(e.HUF)), null != e.NOK && (t.NOK = Number(e.NOK)), null != e.NZD && (t.NZD = Number(e.NZD)), null != e.PLN && (t.PLN = Number(e.PLN)), null != e.SEK && (t.SEK = Number(e.SEK)), null != e.SGD && (t.SGD = Number(e.SGD)), null != e.THB && (t.THB = Number(e.THB)), null != e.PHP && (t.PHP = Number(e.PHP)), null != e.MXN && (t.MXN = Number(e.MXN)), null != e.ILS && (t.ILS = Number(e.ILS)), null != e.RUB && (t.RUB = Number(e.RUB)), null != e.KRW && (t.KRW = Number(e.KRW)), null != e.VND && (t.VND = Number(e.VND)), null != e.IDR && (t.IDR = Number(e.IDR)), null != e.CLP && (t.CLP = Number(e.CLP)), null != e.MYR && (t.MYR = Number(e.MYR)), null != e.BRL && (t.BRL = Number(e.BRL)), null != e.AED && (t.AED = Number(e.AED)), null != e.BDT && (t.BDT = Number(e.BDT)), null != e.PEN && (t.PEN = Number(e.PEN)), null != e.RON && (t.RON = Number(e.RON)), null != e.SAR && (t.SAR = Number(e.SAR)), null != e.INR && (t.INR = Number(e.INR)), null != e.ISK && (t.ISK = Number(e.ISK)), null != e.BGN && (t.BGN = Number(e.BGN)), null != e.ARS && (t.ARS = Number(e.ARS)), null != e.MOP && (t.MOP = Number(e.MOP)), null != e.ColorDiamond && (t.ColorDiamond = Number(e.ColorDiamond)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.USD = 0, n.CAD = 0, n.AUD = 0, n.GBP = 0, n.TWD = 0, n.EUR = 0, n.CHF = 0, n.CZK = 0, n.DKK = 0, n.HKD = 0, n.HUF = 0, n.NOK = 0, n.NZD = 0, n.PLN = 0, n.SEK = 0, n.SGD = 0, n.THB = 0, n.PHP = 0, n.MXN = 0, n.ILS = 0, n.RUB = 0, n.KRW = 0, n.VND = 0, n.IDR = 0, n.CLP = 0, n.MYR = 0, n.BRL = 0, n.AED = 0, n.BDT = 0, n.PEN = 0, n.RON = 0, n.SAR = 0, n.INR = 0, n.ISK = 0, n.BGN = 0, n.ARS = 0, n.MOP = 0, n.ColorDiamond = 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.USD && e.hasOwnProperty("USD") && (n.USD = t.json && !isFinite(e.USD) ? String(e.USD) : e.USD), null != e.CAD && e.hasOwnProperty("CAD") && (n.CAD = t.json && !isFinite(e.CAD) ? String(e.CAD) : e.CAD), null != e.AUD && e.hasOwnProperty("AUD") && (n.AUD = t.json && !isFinite(e.AUD) ? String(e.AUD) : e.AUD), null != e.GBP && e.hasOwnProperty("GBP") && (n.GBP = t.json && !isFinite(e.GBP) ? String(e.GBP) : e.GBP), null != e.TWD && e.hasOwnProperty("TWD") && (n.TWD = t.json && !isFinite(e.TWD) ? String(e.TWD) : e.TWD), null != e.EUR && e.hasOwnProperty("EUR") && (n.EUR = t.json && !isFinite(e.EUR) ? String(e.EUR) : e.EUR), null != e.CHF && e.hasOwnProperty("CHF") && (n.CHF = t.json && !isFinite(e.CHF) ? String(e.CHF) : e.CHF), null != e.CZK && e.hasOwnProperty("CZK") && (n.CZK = t.json && !isFinite(e.CZK) ? String(e.CZK) : e.CZK), null != e.DKK && e.hasOwnProperty("DKK") && (n.DKK = t.json && !isFinite(e.DKK) ? String(e.DKK) : e.DKK), null != e.HKD && e.hasOwnProperty("HKD") && (n.HKD = t.json && !isFinite(e.HKD) ? String(e.HKD) : e.HKD), null != e.HUF && e.hasOwnProperty("HUF") && (n.HUF = t.json && !isFinite(e.HUF) ? String(e.HUF) : e.HUF), null != e.NOK && e.hasOwnProperty("NOK") && (n.NOK = t.json && !isFinite(e.NOK) ? String(e.NOK) : e.NOK), null != e.NZD && e.hasOwnProperty("NZD") && (n.NZD = t.json && !isFinite(e.NZD) ? String(e.NZD) : e.NZD), null != e.PLN && e.hasOwnProperty("PLN") && (n.PLN = t.json && !isFinite(e.PLN) ? String(e.PLN) : e.PLN), null != e.SEK && e.hasOwnProperty("SEK") && (n.SEK = t.json && !isFinite(e.SEK) ? String(e.SEK) : e.SEK), null != e.SGD && e.hasOwnProperty("SGD") && (n.SGD = t.json && !isFinite(e.SGD) ? String(e.SGD) : e.SGD), null != e.THB && e.hasOwnProperty("THB") && (n.THB = t.json && !isFinite(e.THB) ? String(e.THB) : e.THB), null != e.PHP && e.hasOwnProperty("PHP") && (n.PHP = t.json && !isFinite(e.PHP) ? String(e.PHP) : e.PHP), null != e.MXN && e.hasOwnProperty("MXN") && (n.MXN = t.json && !isFinite(e.MXN) ? String(e.MXN) : e.MXN), null != e.ILS && e.hasOwnProperty("ILS") && (n.ILS = t.json && !isFinite(e.ILS) ? String(e.ILS) : e.ILS), null != e.RUB && e.hasOwnProperty("RUB") && (n.RUB = t.json && !isFinite(e.RUB) ? String(e.RUB) : e.RUB), null != e.KRW && e.hasOwnProperty("KRW") && (n.KRW = t.json && !isFinite(e.KRW) ? String(e.KRW) : e.KRW), null != e.VND && e.hasOwnProperty("VND") && (n.VND = t.json && !isFinite(e.VND) ? String(e.VND) : e.VND), null != e.IDR && e.hasOwnProperty("IDR") && (n.IDR = t.json && !isFinite(e.IDR) ? String(e.IDR) : e.IDR), null != e.CLP && e.hasOwnProperty("CLP") && (n.CLP = t.json && !isFinite(e.CLP) ? String(e.CLP) : e.CLP), null != e.MYR && e.hasOwnProperty("MYR") && (n.MYR = t.json && !isFinite(e.MYR) ? String(e.MYR) : e.MYR), null != e.BRL && e.hasOwnProperty("BRL") && (n.BRL = t.json && !isFinite(e.BRL) ? String(e.BRL) : e.BRL), null != e.AED && e.hasOwnProperty("AED") && (n.AED = t.json && !isFinite(e.AED) ? String(e.AED) : e.AED), null != e.BDT && e.hasOwnProperty("BDT") && (n.BDT = t.json && !isFinite(e.BDT) ? String(e.BDT) : e.BDT), null != e.PEN && e.hasOwnProperty("PEN") && (n.PEN = t.json && !isFinite(e.PEN) ? String(e.PEN) : e.PEN), null != e.RON && e.hasOwnProperty("RON") && (n.RON = t.json && !isFinite(e.RON) ? String(e.RON) : e.RON), null != e.SAR && e.hasOwnProperty("SAR") && (n.SAR = t.json && !isFinite(e.SAR) ? String(e.SAR) : e.SAR), null != e.INR && e.hasOwnProperty("INR") && (n.INR = t.json && !isFinite(e.INR) ? String(e.INR) : e.INR), null != e.ISK && e.hasOwnProperty("ISK") && (n.ISK = t.json && !isFinite(e.ISK) ? String(e.ISK) : e.ISK), null != e.BGN && e.hasOwnProperty("BGN") && (n.BGN = t.json && !isFinite(e.BGN) ? String(e.BGN) : e.BGN), null != e.ARS && e.hasOwnProperty("ARS") && (n.ARS = t.json && !isFinite(e.ARS) ? String(e.ARS) : e.ARS), null != e.MOP && e.hasOwnProperty("MOP") && (n.MOP = t.json && !isFinite(e.MOP) ? String(e.MOP) : e.MOP), null != e.ColorDiamond && e.hasOwnProperty("ColorDiamond") && (n.ColorDiamond = t.json && !isFinite(e.ColorDiamond) ? String(e.ColorDiamond) : e.ColorDiamond), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CurrencyMapping_Config"
            }, e
        }(), a.DaysPay_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DaysPay_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.DaysPay_Config) return e;
                var t = new a.DaysPay_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".DaysPay_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".DaysPay_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DaysPay_Config"
            }, e
        }(), a.ChosenGiftPack_Config = function() {
            function e(e) {
                if (this.PackIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CountId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PackIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.CountId && Object.hasOwnProperty.call(e, "CountId") && t.uint32(16).int64(e.CountId), null != e.PackIds && e.PackIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.PackIds.length; ++n) t.int64(e.PackIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ChosenGiftPack_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.CountId = e.int64();
                            break;
                        case 3:
                            if (r.PackIds && r.PackIds.length || (r.PackIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.PackIds.push(e.int64());
                            else r.PackIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.CountId && e.hasOwnProperty("CountId") && !(i.isInteger(e.CountId) || e.CountId && i.isInteger(e.CountId.low) && i.isInteger(e.CountId.high))) return "CountId: integer|Long expected";
                if (null != e.PackIds && e.hasOwnProperty("PackIds")) {
                    if (!Array.isArray(e.PackIds)) return "PackIds: array expected";
                    for (var t = 0; t < e.PackIds.length; ++t)
                        if (!(i.isInteger(e.PackIds[t]) || e.PackIds[t] && i.isInteger(e.PackIds[t].low) && i.isInteger(e.PackIds[t].high))) return "PackIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ChosenGiftPack_Config) return e;
                var t = new a.ChosenGiftPack_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.CountId && (i.Long ? (t.CountId = i.Long.fromValue(e.CountId)).unsigned = !1 : "string" == typeof e.CountId ? t.CountId = parseInt(e.CountId, 10) : "number" == typeof e.CountId ? t.CountId = e.CountId : "object" == typeof e.CountId && (t.CountId = new i.LongBits(e.CountId.low >>> 0, e.CountId.high >>> 0).toNumber())), e.PackIds) {
                    if (!Array.isArray(e.PackIds)) throw TypeError(".ChosenGiftPack_Config.PackIds: array expected");
                    t.PackIds = [];
                    for (var n = 0; n < e.PackIds.length; ++n) i.Long ? (t.PackIds[n] = i.Long.fromValue(e.PackIds[n])).unsigned = !1 : "string" == typeof e.PackIds[n] ? t.PackIds[n] = parseInt(e.PackIds[n], 10) : "number" == typeof e.PackIds[n] ? t.PackIds[n] = e.PackIds[n] : "object" == typeof e.PackIds[n] && (t.PackIds[n] = new i.LongBits(e.PackIds[n].low >>> 0, e.PackIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PackIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.CountId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CountId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.CountId && e.hasOwnProperty("CountId") && ("number" == typeof e.CountId ? n.CountId = t.longs === String ? String(e.CountId) : e.CountId : n.CountId = t.longs === String ? i.Long.prototype.toString.call(e.CountId) : t.longs === Number ? new i.LongBits(e.CountId.low >>> 0, e.CountId.high >>> 0).toNumber() : e.CountId), e.PackIds && e.PackIds.length) {
                    n.PackIds = [];
                    for (var r = 0; r < e.PackIds.length; ++r) "number" == typeof e.PackIds[r] ? n.PackIds[r] = t.longs === String ? String(e.PackIds[r]) : e.PackIds[r] : n.PackIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.PackIds[r]) : t.longs === Number ? new i.LongBits(e.PackIds[r].low >>> 0, e.PackIds[r].high >>> 0).toNumber() : e.PackIds[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ChosenGiftPack_Config"
            }, e
        }(), a.SecretAreaReward_Config = function() {
            function e(e) {
                if (this.MapIds = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIds = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.prototype.Ratio = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MapIds && e.MapIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.MapIds.length; ++n) t.int64(e.MapIds[n]);
                    t.ldelim()
                }
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return null != e.Ratio && Object.hasOwnProperty.call(e, "Ratio") && t.uint32(32).int64(e.Ratio), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretAreaReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.MapIds && r.MapIds.length || (r.MapIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.MapIds.push(e.int64());
                            else r.MapIds.push(e.int64());
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Ratio = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MapIds && e.hasOwnProperty("MapIds")) {
                    if (!Array.isArray(e.MapIds)) return "MapIds: array expected";
                    for (var t = 0; t < e.MapIds.length; ++t)
                        if (!(i.isInteger(e.MapIds[t]) || e.MapIds[t] && i.isInteger(e.MapIds[t].low) && i.isInteger(e.MapIds[t].high))) return "MapIds: integer|Long[] expected"
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.Ratio && e.hasOwnProperty("Ratio") && !(i.isInteger(e.Ratio) || e.Ratio && i.isInteger(e.Ratio.low) && i.isInteger(e.Ratio.high)) ? "Ratio: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretAreaReward_Config) return e;
                var t = new a.SecretAreaReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.MapIds) {
                    if (!Array.isArray(e.MapIds)) throw TypeError(".SecretAreaReward_Config.MapIds: array expected");
                    t.MapIds = [];
                    for (var n = 0; n < e.MapIds.length; ++n) i.Long ? (t.MapIds[n] = i.Long.fromValue(e.MapIds[n])).unsigned = !1 : "string" == typeof e.MapIds[n] ? t.MapIds[n] = parseInt(e.MapIds[n], 10) : "number" == typeof e.MapIds[n] ? t.MapIds[n] = e.MapIds[n] : "object" == typeof e.MapIds[n] && (t.MapIds[n] = new i.LongBits(e.MapIds[n].low >>> 0, e.MapIds[n].high >>> 0).toNumber())
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".SecretAreaReward_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".SecretAreaReward_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.Ratio && (i.Long ? (t.Ratio = i.Long.fromValue(e.Ratio)).unsigned = !1 : "string" == typeof e.Ratio ? t.Ratio = parseInt(e.Ratio, 10) : "number" == typeof e.Ratio ? t.Ratio = e.Ratio : "object" == typeof e.Ratio && (t.Ratio = new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.MapIds = [], n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Ratio = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Ratio = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.MapIds && e.MapIds.length) {
                    n.MapIds = [];
                    for (var r = 0; r < e.MapIds.length; ++r) "number" == typeof e.MapIds[r] ? n.MapIds[r] = t.longs === String ? String(e.MapIds[r]) : e.MapIds[r] : n.MapIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.MapIds[r]) : t.longs === Number ? new i.LongBits(e.MapIds[r].low >>> 0, e.MapIds[r].high >>> 0).toNumber() : e.MapIds[r]
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return null != e.Ratio && e.hasOwnProperty("Ratio") && ("number" == typeof e.Ratio ? n.Ratio = t.longs === String ? String(e.Ratio) : e.Ratio : n.Ratio = t.longs === String ? i.Long.prototype.toString.call(e.Ratio) : t.longs === Number ? new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber() : e.Ratio), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretAreaReward_Config"
            }, e
        }(), a.GemQuality_Config = function() {
            function e(e) {
                if (this.ComposeData = [], this.SuitAttrs = [], this.AttrMaterials = [], this.TypeMaterials = [], this.UpgradeMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Desc999 = "", e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ComposeData = i.emptyArray, e.prototype.AttrCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SuitAttrs = i.emptyArray, e.prototype.SuitScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AttrMaterials = i.emptyArray, e.prototype.TypeMaterials = i.emptyArray, e.prototype.UpgradeMaterials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Desc999 && Object.hasOwnProperty.call(e, "Desc999") && t.uint32(18).string(e.Desc999), null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(24).int64(e.NextId), null != e.ComposeData && e.ComposeData.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.ComposeData.length; ++n) t.int64(e.ComposeData[n]);
                    t.ldelim()
                }
                if (null != e.AttrCount && Object.hasOwnProperty.call(e, "AttrCount") && t.uint32(40).int64(e.AttrCount), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(48).int64(e.Score), null != e.SuitAttrs && e.SuitAttrs.length)
                    for (n = 0; n < e.SuitAttrs.length; ++n) a.IntArray_Config.encode(e.SuitAttrs[n], t.uint32(58).fork()).ldelim();
                if (null != e.SuitScore && Object.hasOwnProperty.call(e, "SuitScore") && t.uint32(64).int64(e.SuitScore), null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(88).int64(e.Power), null != e.AttrMaterials && e.AttrMaterials.length)
                    for (n = 0; n < e.AttrMaterials.length; ++n) a.IntArray_Config.encode(e.AttrMaterials[n], t.uint32(98).fork()).ldelim();
                if (null != e.TypeMaterials && e.TypeMaterials.length)
                    for (n = 0; n < e.TypeMaterials.length; ++n) a.IntArray_Config.encode(e.TypeMaterials[n], t.uint32(106).fork()).ldelim();
                if (null != e.UpgradeMaterials && e.UpgradeMaterials.length)
                    for (n = 0; n < e.UpgradeMaterials.length; ++n) a.IntArray_Config.encode(e.UpgradeMaterials[n], t.uint32(122).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GemQuality_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Desc999 = e.string();
                            break;
                        case 3:
                            r.NextId = e.int64();
                            break;
                        case 4:
                            if (r.ComposeData && r.ComposeData.length || (r.ComposeData = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ComposeData.push(e.int64());
                            else r.ComposeData.push(e.int64());
                            break;
                        case 5:
                            r.AttrCount = e.int64();
                            break;
                        case 6:
                            r.Score = e.int64();
                            break;
                        case 7:
                            r.SuitAttrs && r.SuitAttrs.length || (r.SuitAttrs = []), r.SuitAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.SuitScore = e.int64();
                            break;
                        case 11:
                            r.Power = e.int64();
                            break;
                        case 12:
                            r.AttrMaterials && r.AttrMaterials.length || (r.AttrMaterials = []), r.AttrMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 13:
                            r.TypeMaterials && r.TypeMaterials.length || (r.TypeMaterials = []), r.TypeMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 15:
                            r.UpgradeMaterials && r.UpgradeMaterials.length || (r.UpgradeMaterials = []), r.UpgradeMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Desc999 && e.hasOwnProperty("Desc999") && !i.isString(e.Desc999)) return "Desc999: string expected";
                if (null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high))) return "NextId: integer|Long expected";
                if (null != e.ComposeData && e.hasOwnProperty("ComposeData")) {
                    if (!Array.isArray(e.ComposeData)) return "ComposeData: array expected";
                    for (var t = 0; t < e.ComposeData.length; ++t)
                        if (!(i.isInteger(e.ComposeData[t]) || e.ComposeData[t] && i.isInteger(e.ComposeData[t].low) && i.isInteger(e.ComposeData[t].high))) return "ComposeData: integer|Long[] expected"
                }
                if (null != e.AttrCount && e.hasOwnProperty("AttrCount") && !(i.isInteger(e.AttrCount) || e.AttrCount && i.isInteger(e.AttrCount.low) && i.isInteger(e.AttrCount.high))) return "AttrCount: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.SuitAttrs && e.hasOwnProperty("SuitAttrs")) {
                    if (!Array.isArray(e.SuitAttrs)) return "SuitAttrs: array expected";
                    for (t = 0; t < e.SuitAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SuitAttrs[t])) return "SuitAttrs." + n
                }
                if (null != e.SuitScore && e.hasOwnProperty("SuitScore") && !(i.isInteger(e.SuitScore) || e.SuitScore && i.isInteger(e.SuitScore.low) && i.isInteger(e.SuitScore.high))) return "SuitScore: integer|Long expected";
                if (null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high))) return "Power: integer|Long expected";
                if (null != e.AttrMaterials && e.hasOwnProperty("AttrMaterials")) {
                    if (!Array.isArray(e.AttrMaterials)) return "AttrMaterials: array expected";
                    for (t = 0; t < e.AttrMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AttrMaterials[t])) return "AttrMaterials." + n
                }
                if (null != e.TypeMaterials && e.hasOwnProperty("TypeMaterials")) {
                    if (!Array.isArray(e.TypeMaterials)) return "TypeMaterials: array expected";
                    for (t = 0; t < e.TypeMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TypeMaterials[t])) return "TypeMaterials." + n
                }
                if (null != e.UpgradeMaterials && e.hasOwnProperty("UpgradeMaterials")) {
                    if (!Array.isArray(e.UpgradeMaterials)) return "UpgradeMaterials: array expected";
                    for (t = 0; t < e.UpgradeMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.UpgradeMaterials[t])) return "UpgradeMaterials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.GemQuality_Config) return e;
                var t = new a.GemQuality_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Desc999 && (t.Desc999 = String(e.Desc999)), null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), e.ComposeData) {
                    if (!Array.isArray(e.ComposeData)) throw TypeError(".GemQuality_Config.ComposeData: array expected");
                    t.ComposeData = [];
                    for (var n = 0; n < e.ComposeData.length; ++n) i.Long ? (t.ComposeData[n] = i.Long.fromValue(e.ComposeData[n])).unsigned = !1 : "string" == typeof e.ComposeData[n] ? t.ComposeData[n] = parseInt(e.ComposeData[n], 10) : "number" == typeof e.ComposeData[n] ? t.ComposeData[n] = e.ComposeData[n] : "object" == typeof e.ComposeData[n] && (t.ComposeData[n] = new i.LongBits(e.ComposeData[n].low >>> 0, e.ComposeData[n].high >>> 0).toNumber())
                }
                if (null != e.AttrCount && (i.Long ? (t.AttrCount = i.Long.fromValue(e.AttrCount)).unsigned = !1 : "string" == typeof e.AttrCount ? t.AttrCount = parseInt(e.AttrCount, 10) : "number" == typeof e.AttrCount ? t.AttrCount = e.AttrCount : "object" == typeof e.AttrCount && (t.AttrCount = new i.LongBits(e.AttrCount.low >>> 0, e.AttrCount.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.SuitAttrs) {
                    if (!Array.isArray(e.SuitAttrs)) throw TypeError(".GemQuality_Config.SuitAttrs: array expected");
                    for (t.SuitAttrs = [], n = 0; n < e.SuitAttrs.length; ++n) {
                        if ("object" != typeof e.SuitAttrs[n]) throw TypeError(".GemQuality_Config.SuitAttrs: object expected");
                        t.SuitAttrs[n] = a.IntArray_Config.fromObject(e.SuitAttrs[n])
                    }
                }
                if (null != e.SuitScore && (i.Long ? (t.SuitScore = i.Long.fromValue(e.SuitScore)).unsigned = !1 : "string" == typeof e.SuitScore ? t.SuitScore = parseInt(e.SuitScore, 10) : "number" == typeof e.SuitScore ? t.SuitScore = e.SuitScore : "object" == typeof e.SuitScore && (t.SuitScore = new i.LongBits(e.SuitScore.low >>> 0, e.SuitScore.high >>> 0).toNumber())), null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), e.AttrMaterials) {
                    if (!Array.isArray(e.AttrMaterials)) throw TypeError(".GemQuality_Config.AttrMaterials: array expected");
                    for (t.AttrMaterials = [], n = 0; n < e.AttrMaterials.length; ++n) {
                        if ("object" != typeof e.AttrMaterials[n]) throw TypeError(".GemQuality_Config.AttrMaterials: object expected");
                        t.AttrMaterials[n] = a.IntArray_Config.fromObject(e.AttrMaterials[n])
                    }
                }
                if (e.TypeMaterials) {
                    if (!Array.isArray(e.TypeMaterials)) throw TypeError(".GemQuality_Config.TypeMaterials: array expected");
                    for (t.TypeMaterials = [], n = 0; n < e.TypeMaterials.length; ++n) {
                        if ("object" != typeof e.TypeMaterials[n]) throw TypeError(".GemQuality_Config.TypeMaterials: object expected");
                        t.TypeMaterials[n] = a.IntArray_Config.fromObject(e.TypeMaterials[n])
                    }
                }
                if (e.UpgradeMaterials) {
                    if (!Array.isArray(e.UpgradeMaterials)) throw TypeError(".GemQuality_Config.UpgradeMaterials: array expected");
                    for (t.UpgradeMaterials = [], n = 0; n < e.UpgradeMaterials.length; ++n) {
                        if ("object" != typeof e.UpgradeMaterials[n]) throw TypeError(".GemQuality_Config.UpgradeMaterials: object expected");
                        t.UpgradeMaterials[n] = a.IntArray_Config.fromObject(e.UpgradeMaterials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ComposeData = [], n.SuitAttrs = [], n.AttrMaterials = [], n.TypeMaterials = [], n.UpgradeMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Desc999 = "", i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AttrCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AttrCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SuitScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SuitScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Desc999 && e.hasOwnProperty("Desc999") && (n.Desc999 = e.Desc999), null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), e.ComposeData && e.ComposeData.length) {
                    n.ComposeData = [];
                    for (var r = 0; r < e.ComposeData.length; ++r) "number" == typeof e.ComposeData[r] ? n.ComposeData[r] = t.longs === String ? String(e.ComposeData[r]) : e.ComposeData[r] : n.ComposeData[r] = t.longs === String ? i.Long.prototype.toString.call(e.ComposeData[r]) : t.longs === Number ? new i.LongBits(e.ComposeData[r].low >>> 0, e.ComposeData[r].high >>> 0).toNumber() : e.ComposeData[r]
                }
                if (null != e.AttrCount && e.hasOwnProperty("AttrCount") && ("number" == typeof e.AttrCount ? n.AttrCount = t.longs === String ? String(e.AttrCount) : e.AttrCount : n.AttrCount = t.longs === String ? i.Long.prototype.toString.call(e.AttrCount) : t.longs === Number ? new i.LongBits(e.AttrCount.low >>> 0, e.AttrCount.high >>> 0).toNumber() : e.AttrCount), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.SuitAttrs && e.SuitAttrs.length)
                    for (n.SuitAttrs = [], r = 0; r < e.SuitAttrs.length; ++r) n.SuitAttrs[r] = a.IntArray_Config.toObject(e.SuitAttrs[r], t);
                if (null != e.SuitScore && e.hasOwnProperty("SuitScore") && ("number" == typeof e.SuitScore ? n.SuitScore = t.longs === String ? String(e.SuitScore) : e.SuitScore : n.SuitScore = t.longs === String ? i.Long.prototype.toString.call(e.SuitScore) : t.longs === Number ? new i.LongBits(e.SuitScore.low >>> 0, e.SuitScore.high >>> 0).toNumber() : e.SuitScore), null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), e.AttrMaterials && e.AttrMaterials.length)
                    for (n.AttrMaterials = [], r = 0; r < e.AttrMaterials.length; ++r) n.AttrMaterials[r] = a.IntArray_Config.toObject(e.AttrMaterials[r], t);
                if (e.TypeMaterials && e.TypeMaterials.length)
                    for (n.TypeMaterials = [], r = 0; r < e.TypeMaterials.length; ++r) n.TypeMaterials[r] = a.IntArray_Config.toObject(e.TypeMaterials[r], t);
                if (e.UpgradeMaterials && e.UpgradeMaterials.length)
                    for (n.UpgradeMaterials = [], r = 0; r < e.UpgradeMaterials.length; ++r) n.UpgradeMaterials[r] = a.IntArray_Config.toObject(e.UpgradeMaterials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GemQuality_Config"
            }, e
        }(), a.GemEquip_Config = function() {
            function e(e) {
                if (this.AttrLib = [], this.Attrs = [], this.AttrsGallery = [], this.BaseAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AttrLib = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.Weight = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AttrsGallery = i.emptyArray, e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BaseAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(24).int64(e.Quality), null != e.AttrLib && e.AttrLib.length)
                    for (var n = 0; n < e.AttrLib.length; ++n) a.IntArray_Config.encode(e.AttrLib[n], t.uint32(34).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.Attrs.length; ++n) t.int64(e.Attrs[n]);
                    t.ldelim()
                }
                if (null != e.Weight && Object.hasOwnProperty.call(e, "Weight") && t.uint32(48).int64(e.Weight), null != e.AttrsGallery && e.AttrsGallery.length)
                    for (n = 0; n < e.AttrsGallery.length; ++n) a.IntArray_Config.encode(e.AttrsGallery[n], t.uint32(58).fork()).ldelim();
                if (null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(64).int64(e.NextId), null != e.BaseAttrs && e.BaseAttrs.length)
                    for (n = 0; n < e.BaseAttrs.length; ++n) a.IntArray_Config.encode(e.BaseAttrs[n], t.uint32(74).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GemEquip_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.Quality = e.int64();
                            break;
                        case 4:
                            r.AttrLib && r.AttrLib.length || (r.AttrLib = []), r.AttrLib.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            if (r.Attrs && r.Attrs.length || (r.Attrs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Attrs.push(e.int64());
                            else r.Attrs.push(e.int64());
                            break;
                        case 6:
                            r.Weight = e.int64();
                            break;
                        case 7:
                            r.AttrsGallery && r.AttrsGallery.length || (r.AttrsGallery = []), r.AttrsGallery.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.NextId = e.int64();
                            break;
                        case 9:
                            r.BaseAttrs && r.BaseAttrs.length || (r.BaseAttrs = []), r.BaseAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.AttrLib && e.hasOwnProperty("AttrLib")) {
                    if (!Array.isArray(e.AttrLib)) return "AttrLib: array expected";
                    for (var t = 0; t < e.AttrLib.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AttrLib[t])) return "AttrLib." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (!(i.isInteger(e.Attrs[t]) || e.Attrs[t] && i.isInteger(e.Attrs[t].low) && i.isInteger(e.Attrs[t].high))) return "Attrs: integer|Long[] expected"
                }
                if (null != e.Weight && e.hasOwnProperty("Weight") && !(i.isInteger(e.Weight) || e.Weight && i.isInteger(e.Weight.low) && i.isInteger(e.Weight.high))) return "Weight: integer|Long expected";
                if (null != e.AttrsGallery && e.hasOwnProperty("AttrsGallery")) {
                    if (!Array.isArray(e.AttrsGallery)) return "AttrsGallery: array expected";
                    for (t = 0; t < e.AttrsGallery.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AttrsGallery[t])) return "AttrsGallery." + n
                }
                if (null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high))) return "NextId: integer|Long expected";
                if (null != e.BaseAttrs && e.hasOwnProperty("BaseAttrs")) {
                    if (!Array.isArray(e.BaseAttrs)) return "BaseAttrs: array expected";
                    for (t = 0; t < e.BaseAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.BaseAttrs[t])) return "BaseAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.GemEquip_Config) return e;
                var t = new a.GemEquip_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), e.AttrLib) {
                    if (!Array.isArray(e.AttrLib)) throw TypeError(".GemEquip_Config.AttrLib: array expected");
                    t.AttrLib = [];
                    for (var n = 0; n < e.AttrLib.length; ++n) {
                        if ("object" != typeof e.AttrLib[n]) throw TypeError(".GemEquip_Config.AttrLib: object expected");
                        t.AttrLib[n] = a.IntArray_Config.fromObject(e.AttrLib[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".GemEquip_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) i.Long ? (t.Attrs[n] = i.Long.fromValue(e.Attrs[n])).unsigned = !1 : "string" == typeof e.Attrs[n] ? t.Attrs[n] = parseInt(e.Attrs[n], 10) : "number" == typeof e.Attrs[n] ? t.Attrs[n] = e.Attrs[n] : "object" == typeof e.Attrs[n] && (t.Attrs[n] = new i.LongBits(e.Attrs[n].low >>> 0, e.Attrs[n].high >>> 0).toNumber())
                }
                if (null != e.Weight && (i.Long ? (t.Weight = i.Long.fromValue(e.Weight)).unsigned = !1 : "string" == typeof e.Weight ? t.Weight = parseInt(e.Weight, 10) : "number" == typeof e.Weight ? t.Weight = e.Weight : "object" == typeof e.Weight && (t.Weight = new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber())), e.AttrsGallery) {
                    if (!Array.isArray(e.AttrsGallery)) throw TypeError(".GemEquip_Config.AttrsGallery: array expected");
                    for (t.AttrsGallery = [], n = 0; n < e.AttrsGallery.length; ++n) {
                        if ("object" != typeof e.AttrsGallery[n]) throw TypeError(".GemEquip_Config.AttrsGallery: object expected");
                        t.AttrsGallery[n] = a.IntArray_Config.fromObject(e.AttrsGallery[n])
                    }
                }
                if (null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), e.BaseAttrs) {
                    if (!Array.isArray(e.BaseAttrs)) throw TypeError(".GemEquip_Config.BaseAttrs: array expected");
                    for (t.BaseAttrs = [], n = 0; n < e.BaseAttrs.length; ++n) {
                        if ("object" != typeof e.BaseAttrs[n]) throw TypeError(".GemEquip_Config.BaseAttrs: object expected");
                        t.BaseAttrs[n] = a.IntArray_Config.fromObject(e.BaseAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AttrLib = [], n.Attrs = [], n.AttrsGallery = [], n.BaseAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Weight = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Weight = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), e.AttrLib && e.AttrLib.length) {
                    n.AttrLib = [];
                    for (var r = 0; r < e.AttrLib.length; ++r) n.AttrLib[r] = a.IntArray_Config.toObject(e.AttrLib[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) "number" == typeof e.Attrs[r] ? n.Attrs[r] = t.longs === String ? String(e.Attrs[r]) : e.Attrs[r] : n.Attrs[r] = t.longs === String ? i.Long.prototype.toString.call(e.Attrs[r]) : t.longs === Number ? new i.LongBits(e.Attrs[r].low >>> 0, e.Attrs[r].high >>> 0).toNumber() : e.Attrs[r];
                if (null != e.Weight && e.hasOwnProperty("Weight") && ("number" == typeof e.Weight ? n.Weight = t.longs === String ? String(e.Weight) : e.Weight : n.Weight = t.longs === String ? i.Long.prototype.toString.call(e.Weight) : t.longs === Number ? new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber() : e.Weight), e.AttrsGallery && e.AttrsGallery.length)
                    for (n.AttrsGallery = [], r = 0; r < e.AttrsGallery.length; ++r) n.AttrsGallery[r] = a.IntArray_Config.toObject(e.AttrsGallery[r], t);
                if (null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), e.BaseAttrs && e.BaseAttrs.length)
                    for (n.BaseAttrs = [], r = 0; r < e.BaseAttrs.length; ++r) n.BaseAttrs[r] = a.IntArray_Config.toObject(e.BaseAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GemEquip_Config"
            }, e
        }(), a.MoonTemple_Config = function() {
            function e(e) {
                if (this.ShrineIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShrineIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ShrineIds && e.ShrineIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.ShrineIds.length; ++n) t.int64(e.ShrineIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MoonTemple_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.ShrineIds && r.ShrineIds.length || (r.ShrineIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ShrineIds.push(e.int64());
                            else r.ShrineIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.ShrineIds && e.hasOwnProperty("ShrineIds")) {
                    if (!Array.isArray(e.ShrineIds)) return "ShrineIds: array expected";
                    for (var t = 0; t < e.ShrineIds.length; ++t)
                        if (!(i.isInteger(e.ShrineIds[t]) || e.ShrineIds[t] && i.isInteger(e.ShrineIds[t].low) && i.isInteger(e.ShrineIds[t].high))) return "ShrineIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MoonTemple_Config) return e;
                var t = new a.MoonTemple_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.ShrineIds) {
                    if (!Array.isArray(e.ShrineIds)) throw TypeError(".MoonTemple_Config.ShrineIds: array expected");
                    t.ShrineIds = [];
                    for (var n = 0; n < e.ShrineIds.length; ++n) i.Long ? (t.ShrineIds[n] = i.Long.fromValue(e.ShrineIds[n])).unsigned = !1 : "string" == typeof e.ShrineIds[n] ? t.ShrineIds[n] = parseInt(e.ShrineIds[n], 10) : "number" == typeof e.ShrineIds[n] ? t.ShrineIds[n] = e.ShrineIds[n] : "object" == typeof e.ShrineIds[n] && (t.ShrineIds[n] = new i.LongBits(e.ShrineIds[n].low >>> 0, e.ShrineIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ShrineIds = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.ShrineIds && e.ShrineIds.length) {
                    n.ShrineIds = [];
                    for (var r = 0; r < e.ShrineIds.length; ++r) "number" == typeof e.ShrineIds[r] ? n.ShrineIds[r] = t.longs === String ? String(e.ShrineIds[r]) : e.ShrineIds[r] : n.ShrineIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.ShrineIds[r]) : t.longs === Number ? new i.LongBits(e.ShrineIds[r].low >>> 0, e.ShrineIds[r].high >>> 0).toNumber() : e.ShrineIds[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MoonTemple_Config"
            }, e
        }(), a.MoonShrine_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.MapId && Object.hasOwnProperty.call(e, "MapId") && t.uint32(24).int64(e.MapId), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MoonShrine_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.MapId = e.int64();
                            break;
                        case 5:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.MapId && e.hasOwnProperty("MapId") && !(i.isInteger(e.MapId) || e.MapId && i.isInteger(e.MapId.low) && i.isInteger(e.MapId.high))) return "MapId: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MoonShrine_Config) return e;
                var t = new a.MoonShrine_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.MapId && (i.Long ? (t.MapId = i.Long.fromValue(e.MapId)).unsigned = !1 : "string" == typeof e.MapId ? t.MapId = parseInt(e.MapId, 10) : "number" == typeof e.MapId ? t.MapId = e.MapId : "object" == typeof e.MapId && (t.MapId = new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".MoonShrine_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".MoonShrine_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MapId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.MapId && e.hasOwnProperty("MapId") && ("number" == typeof e.MapId ? n.MapId = t.longs === String ? String(e.MapId) : e.MapId : n.MapId = t.longs === String ? i.Long.prototype.toString.call(e.MapId) : t.longs === Number ? new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber() : e.MapId), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MoonShrine_Config"
            }, e
        }(), a.MoonIntensify_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(24).int64(e.Power), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MoonIntensify_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Power = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high)) ? "Power: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MoonIntensify_Config) return e;
                var t = new a.MoonIntensify_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".MoonIntensify_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".MoonIntensify_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MoonIntensify_Config"
            }, e
        }(), a.G123PlatformReward_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.G123PlatformReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.G123PlatformReward_Config) return e;
                var t = new a.G123PlatformReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".G123PlatformReward_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".G123PlatformReward_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/G123PlatformReward_Config"
            }, e
        }(), a.CrossZoneRankStage_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(32).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CrossZoneRankStage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CrossZoneRankStage_Config) return e;
                var t = new a.CrossZoneRankStage_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".CrossZoneRankStage_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".CrossZoneRankStage_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CrossZoneRankStage_Config"
            }, e
        }(), a.OuterReward_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Desc999 = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                return null != e.Desc999 && Object.hasOwnProperty.call(e, "Desc999") && t.uint32(26).string(e.Desc999), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.OuterReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Desc999 = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.Desc999 && e.hasOwnProperty("Desc999") && !i.isString(e.Desc999) ? "Desc999: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.OuterReward_Config) return e;
                var t = new a.OuterReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".OuterReward_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".OuterReward_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.Desc999 && (t.Desc999 = String(e.Desc999)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Desc999 = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.Desc999 && e.hasOwnProperty("Desc999") && (n.Desc999 = e.Desc999), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/OuterReward_Config"
            }, e
        }(), a.HeroSkin_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Transform = [], this.PicAttrIds = [], this.HeroAttrIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Model = "", e.prototype.UIAvatar = "", e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroCard = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AvailableStartTime = "", e.prototype.Transform = i.emptyArray, e.prototype.PicAttrIds = i.emptyArray, e.prototype.HeroAttrIds = i.emptyArray, e.prototype.IsShowEntranceAnimation = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(16).int64(e.HeroId), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(32).int64(e.Score), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(66).string(e.Model), null != e.UIAvatar && Object.hasOwnProperty.call(e, "UIAvatar") && t.uint32(74).string(e.UIAvatar), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(80).int64(e.Type), null != e.HeroCard && Object.hasOwnProperty.call(e, "HeroCard") && t.uint32(88).int64(e.HeroCard), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(96).int64(e.ItemId), null != e.AvailableStartTime && Object.hasOwnProperty.call(e, "AvailableStartTime") && t.uint32(122).string(e.AvailableStartTime), null != e.Transform && e.Transform.length)
                    for (n = 0; n < e.Transform.length; ++n) a.IntArray_Config.encode(e.Transform[n], t.uint32(130).fork()).ldelim();
                if (null != e.PicAttrIds && e.PicAttrIds.length) {
                    for (t.uint32(138).fork(), n = 0; n < e.PicAttrIds.length; ++n) t.int64(e.PicAttrIds[n]);
                    t.ldelim()
                }
                if (null != e.HeroAttrIds && e.HeroAttrIds.length) {
                    for (t.uint32(146).fork(), n = 0; n < e.HeroAttrIds.length; ++n) t.int64(e.HeroAttrIds[n]);
                    t.ldelim()
                }
                return null != e.IsShowEntranceAnimation && Object.hasOwnProperty.call(e, "IsShowEntranceAnimation") && t.uint32(160).int64(e.IsShowEntranceAnimation), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroSkin_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HeroId = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Score = e.int64();
                            break;
                        case 8:
                            r.Model = e.string();
                            break;
                        case 9:
                            r.UIAvatar = e.string();
                            break;
                        case 10:
                            r.Type = e.int64();
                            break;
                        case 11:
                            r.HeroCard = e.int64();
                            break;
                        case 12:
                            r.ItemId = e.int64();
                            break;
                        case 15:
                            r.AvailableStartTime = e.string();
                            break;
                        case 16:
                            r.Transform && r.Transform.length || (r.Transform = []), r.Transform.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 17:
                            if (r.PicAttrIds && r.PicAttrIds.length || (r.PicAttrIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.PicAttrIds.push(e.int64());
                            else r.PicAttrIds.push(e.int64());
                            break;
                        case 18:
                            if (r.HeroAttrIds && r.HeroAttrIds.length || (r.HeroAttrIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.HeroAttrIds.push(e.int64());
                            else r.HeroAttrIds.push(e.int64());
                            break;
                        case 20:
                            r.IsShowEntranceAnimation = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high))) return "HeroId: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model)) return "Model: string expected";
                if (null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && !i.isString(e.UIAvatar)) return "UIAvatar: string expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.HeroCard && e.hasOwnProperty("HeroCard") && !(i.isInteger(e.HeroCard) || e.HeroCard && i.isInteger(e.HeroCard.low) && i.isInteger(e.HeroCard.high))) return "HeroCard: integer|Long expected";
                if (null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high))) return "ItemId: integer|Long expected";
                if (null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && !i.isString(e.AvailableStartTime)) return "AvailableStartTime: string expected";
                if (null != e.Transform && e.hasOwnProperty("Transform")) {
                    if (!Array.isArray(e.Transform)) return "Transform: array expected";
                    for (t = 0; t < e.Transform.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Transform[t])) return "Transform." + n
                    }
                }
                if (null != e.PicAttrIds && e.hasOwnProperty("PicAttrIds")) {
                    if (!Array.isArray(e.PicAttrIds)) return "PicAttrIds: array expected";
                    for (t = 0; t < e.PicAttrIds.length; ++t)
                        if (!(i.isInteger(e.PicAttrIds[t]) || e.PicAttrIds[t] && i.isInteger(e.PicAttrIds[t].low) && i.isInteger(e.PicAttrIds[t].high))) return "PicAttrIds: integer|Long[] expected"
                }
                if (null != e.HeroAttrIds && e.hasOwnProperty("HeroAttrIds")) {
                    if (!Array.isArray(e.HeroAttrIds)) return "HeroAttrIds: array expected";
                    for (t = 0; t < e.HeroAttrIds.length; ++t)
                        if (!(i.isInteger(e.HeroAttrIds[t]) || e.HeroAttrIds[t] && i.isInteger(e.HeroAttrIds[t].low) && i.isInteger(e.HeroAttrIds[t].high))) return "HeroAttrIds: integer|Long[] expected"
                }
                return null != e.IsShowEntranceAnimation && e.hasOwnProperty("IsShowEntranceAnimation") && !(i.isInteger(e.IsShowEntranceAnimation) || e.IsShowEntranceAnimation && i.isInteger(e.IsShowEntranceAnimation.low) && i.isInteger(e.IsShowEntranceAnimation.high)) ? "IsShowEntranceAnimation: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroSkin_Config) return e;
                var t = new a.HeroSkin_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroSkin_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroSkin_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), null != e.Model && (t.Model = String(e.Model)), null != e.UIAvatar && (t.UIAvatar = String(e.UIAvatar)), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.HeroCard && (i.Long ? (t.HeroCard = i.Long.fromValue(e.HeroCard)).unsigned = !1 : "string" == typeof e.HeroCard ? t.HeroCard = parseInt(e.HeroCard, 10) : "number" == typeof e.HeroCard ? t.HeroCard = e.HeroCard : "object" == typeof e.HeroCard && (t.HeroCard = new i.LongBits(e.HeroCard.low >>> 0, e.HeroCard.high >>> 0).toNumber())), null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), null != e.AvailableStartTime && (t.AvailableStartTime = String(e.AvailableStartTime)), e.Transform) {
                    if (!Array.isArray(e.Transform)) throw TypeError(".HeroSkin_Config.Transform: array expected");
                    for (t.Transform = [], n = 0; n < e.Transform.length; ++n) {
                        if ("object" != typeof e.Transform[n]) throw TypeError(".HeroSkin_Config.Transform: object expected");
                        t.Transform[n] = a.IntArray_Config.fromObject(e.Transform[n])
                    }
                }
                if (e.PicAttrIds) {
                    if (!Array.isArray(e.PicAttrIds)) throw TypeError(".HeroSkin_Config.PicAttrIds: array expected");
                    for (t.PicAttrIds = [], n = 0; n < e.PicAttrIds.length; ++n) i.Long ? (t.PicAttrIds[n] = i.Long.fromValue(e.PicAttrIds[n])).unsigned = !1 : "string" == typeof e.PicAttrIds[n] ? t.PicAttrIds[n] = parseInt(e.PicAttrIds[n], 10) : "number" == typeof e.PicAttrIds[n] ? t.PicAttrIds[n] = e.PicAttrIds[n] : "object" == typeof e.PicAttrIds[n] && (t.PicAttrIds[n] = new i.LongBits(e.PicAttrIds[n].low >>> 0, e.PicAttrIds[n].high >>> 0).toNumber())
                }
                if (e.HeroAttrIds) {
                    if (!Array.isArray(e.HeroAttrIds)) throw TypeError(".HeroSkin_Config.HeroAttrIds: array expected");
                    for (t.HeroAttrIds = [], n = 0; n < e.HeroAttrIds.length; ++n) i.Long ? (t.HeroAttrIds[n] = i.Long.fromValue(e.HeroAttrIds[n])).unsigned = !1 : "string" == typeof e.HeroAttrIds[n] ? t.HeroAttrIds[n] = parseInt(e.HeroAttrIds[n], 10) : "number" == typeof e.HeroAttrIds[n] ? t.HeroAttrIds[n] = e.HeroAttrIds[n] : "object" == typeof e.HeroAttrIds[n] && (t.HeroAttrIds[n] = new i.LongBits(e.HeroAttrIds[n].low >>> 0, e.HeroAttrIds[n].high >>> 0).toNumber())
                }
                return null != e.IsShowEntranceAnimation && (i.Long ? (t.IsShowEntranceAnimation = i.Long.fromValue(e.IsShowEntranceAnimation)).unsigned = !1 : "string" == typeof e.IsShowEntranceAnimation ? t.IsShowEntranceAnimation = parseInt(e.IsShowEntranceAnimation, 10) : "number" == typeof e.IsShowEntranceAnimation ? t.IsShowEntranceAnimation = e.IsShowEntranceAnimation : "object" == typeof e.IsShowEntranceAnimation && (t.IsShowEntranceAnimation = new i.LongBits(e.IsShowEntranceAnimation.low >>> 0, e.IsShowEntranceAnimation.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Transform = [], n.PicAttrIds = [], n.HeroAttrIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0, n.Model = "", n.UIAvatar = "", i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeroCard = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroCard = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0, n.AvailableStartTime = "", i.Long ? (o = new i.Long(0, 0, !1), n.IsShowEntranceAnimation = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsShowEntranceAnimation = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && (n.UIAvatar = e.UIAvatar), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.HeroCard && e.hasOwnProperty("HeroCard") && ("number" == typeof e.HeroCard ? n.HeroCard = t.longs === String ? String(e.HeroCard) : e.HeroCard : n.HeroCard = t.longs === String ? i.Long.prototype.toString.call(e.HeroCard) : t.longs === Number ? new i.LongBits(e.HeroCard.low >>> 0, e.HeroCard.high >>> 0).toNumber() : e.HeroCard), null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && (n.AvailableStartTime = e.AvailableStartTime), e.Transform && e.Transform.length)
                    for (n.Transform = [], r = 0; r < e.Transform.length; ++r) n.Transform[r] = a.IntArray_Config.toObject(e.Transform[r], t);
                if (e.PicAttrIds && e.PicAttrIds.length)
                    for (n.PicAttrIds = [], r = 0; r < e.PicAttrIds.length; ++r) "number" == typeof e.PicAttrIds[r] ? n.PicAttrIds[r] = t.longs === String ? String(e.PicAttrIds[r]) : e.PicAttrIds[r] : n.PicAttrIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.PicAttrIds[r]) : t.longs === Number ? new i.LongBits(e.PicAttrIds[r].low >>> 0, e.PicAttrIds[r].high >>> 0).toNumber() : e.PicAttrIds[r];
                if (e.HeroAttrIds && e.HeroAttrIds.length)
                    for (n.HeroAttrIds = [], r = 0; r < e.HeroAttrIds.length; ++r) "number" == typeof e.HeroAttrIds[r] ? n.HeroAttrIds[r] = t.longs === String ? String(e.HeroAttrIds[r]) : e.HeroAttrIds[r] : n.HeroAttrIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.HeroAttrIds[r]) : t.longs === Number ? new i.LongBits(e.HeroAttrIds[r].low >>> 0, e.HeroAttrIds[r].high >>> 0).toNumber() : e.HeroAttrIds[r];
                return null != e.IsShowEntranceAnimation && e.hasOwnProperty("IsShowEntranceAnimation") && ("number" == typeof e.IsShowEntranceAnimation ? n.IsShowEntranceAnimation = t.longs === String ? String(e.IsShowEntranceAnimation) : e.IsShowEntranceAnimation : n.IsShowEntranceAnimation = t.longs === String ? i.Long.prototype.toString.call(e.IsShowEntranceAnimation) : t.longs === Number ? new i.LongBits(e.IsShowEntranceAnimation.low >>> 0, e.IsShowEntranceAnimation.high >>> 0).toNumber() : e.IsShowEntranceAnimation), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroSkin_Config"
            }, e
        }(), a.SecretActivityMap_Config = function() {
            function e(e) {
                if (this.InletAndOutlet = [], this.Rewards = [], this.Map = [], this.Terrain = [], this.Blocks = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ElementType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.InletAndOutlet = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.prototype.Map = i.emptyArray, e.prototype.MapResource = "", e.prototype.AttrWeaken = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Terrain = i.emptyArray, e.prototype.Blocks = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ElementType && Object.hasOwnProperty.call(e, "ElementType") && t.uint32(16).int64(e.ElementType), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.InletAndOutlet && e.InletAndOutlet.length)
                    for (var n = 0; n < e.InletAndOutlet.length; ++n) a.IntArray_Config.encode(e.InletAndOutlet[n], t.uint32(42).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(90).fork()).ldelim();
                if (null != e.Map && e.Map.length)
                    for (n = 0; n < e.Map.length; ++n) a.IntArray_Config.encode(e.Map[n], t.uint32(98).fork()).ldelim();
                if (null != e.MapResource && Object.hasOwnProperty.call(e, "MapResource") && t.uint32(106).string(e.MapResource), null != e.AttrWeaken && Object.hasOwnProperty.call(e, "AttrWeaken") && t.uint32(112).int64(e.AttrWeaken), null != e.Terrain && e.Terrain.length)
                    for (n = 0; n < e.Terrain.length; ++n) a.IntArray_Config.encode(e.Terrain[n], t.uint32(122).fork()).ldelim();
                if (null != e.Blocks && e.Blocks.length)
                    for (n = 0; n < e.Blocks.length; ++n) a.IntArray_Config.encode(e.Blocks[n], t.uint32(146).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretActivityMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.ElementType = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 5:
                            r.InletAndOutlet && r.InletAndOutlet.length || (r.InletAndOutlet = []), r.InletAndOutlet.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 11:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 12:
                            r.Map && r.Map.length || (r.Map = []), r.Map.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 13:
                            r.MapResource = e.string();
                            break;
                        case 14:
                            r.AttrWeaken = e.int64();
                            break;
                        case 15:
                            r.Terrain && r.Terrain.length || (r.Terrain = []), r.Terrain.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 18:
                            r.Blocks && r.Blocks.length || (r.Blocks = []), r.Blocks.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.ElementType && e.hasOwnProperty("ElementType") && !(i.isInteger(e.ElementType) || e.ElementType && i.isInteger(e.ElementType.low) && i.isInteger(e.ElementType.high))) return "ElementType: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.InletAndOutlet && e.hasOwnProperty("InletAndOutlet")) {
                    if (!Array.isArray(e.InletAndOutlet)) return "InletAndOutlet: array expected";
                    for (var t = 0; t < e.InletAndOutlet.length; ++t)
                        if (n = a.IntArray_Config.verify(e.InletAndOutlet[t])) return "InletAndOutlet." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!Array.isArray(e.Map)) return "Map: array expected";
                    for (t = 0; t < e.Map.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Map[t])) return "Map." + n
                }
                if (null != e.MapResource && e.hasOwnProperty("MapResource") && !i.isString(e.MapResource)) return "MapResource: string expected";
                if (null != e.AttrWeaken && e.hasOwnProperty("AttrWeaken") && !(i.isInteger(e.AttrWeaken) || e.AttrWeaken && i.isInteger(e.AttrWeaken.low) && i.isInteger(e.AttrWeaken.high))) return "AttrWeaken: integer|Long expected";
                if (null != e.Terrain && e.hasOwnProperty("Terrain")) {
                    if (!Array.isArray(e.Terrain)) return "Terrain: array expected";
                    for (t = 0; t < e.Terrain.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Terrain[t])) return "Terrain." + n
                }
                if (null != e.Blocks && e.hasOwnProperty("Blocks")) {
                    if (!Array.isArray(e.Blocks)) return "Blocks: array expected";
                    for (t = 0; t < e.Blocks.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Blocks[t])) return "Blocks." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretActivityMap_Config) return e;
                var t = new a.SecretActivityMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.ElementType && (i.Long ? (t.ElementType = i.Long.fromValue(e.ElementType)).unsigned = !1 : "string" == typeof e.ElementType ? t.ElementType = parseInt(e.ElementType, 10) : "number" == typeof e.ElementType ? t.ElementType = e.ElementType : "object" == typeof e.ElementType && (t.ElementType = new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.InletAndOutlet) {
                    if (!Array.isArray(e.InletAndOutlet)) throw TypeError(".SecretActivityMap_Config.InletAndOutlet: array expected");
                    t.InletAndOutlet = [];
                    for (var n = 0; n < e.InletAndOutlet.length; ++n) {
                        if ("object" != typeof e.InletAndOutlet[n]) throw TypeError(".SecretActivityMap_Config.InletAndOutlet: object expected");
                        t.InletAndOutlet[n] = a.IntArray_Config.fromObject(e.InletAndOutlet[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".SecretActivityMap_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".SecretActivityMap_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.Map) {
                    if (!Array.isArray(e.Map)) throw TypeError(".SecretActivityMap_Config.Map: array expected");
                    for (t.Map = [], n = 0; n < e.Map.length; ++n) {
                        if ("object" != typeof e.Map[n]) throw TypeError(".SecretActivityMap_Config.Map: object expected");
                        t.Map[n] = a.IntArray_Config.fromObject(e.Map[n])
                    }
                }
                if (null != e.MapResource && (t.MapResource = String(e.MapResource)), null != e.AttrWeaken && (i.Long ? (t.AttrWeaken = i.Long.fromValue(e.AttrWeaken)).unsigned = !1 : "string" == typeof e.AttrWeaken ? t.AttrWeaken = parseInt(e.AttrWeaken, 10) : "number" == typeof e.AttrWeaken ? t.AttrWeaken = e.AttrWeaken : "object" == typeof e.AttrWeaken && (t.AttrWeaken = new i.LongBits(e.AttrWeaken.low >>> 0, e.AttrWeaken.high >>> 0).toNumber())), e.Terrain) {
                    if (!Array.isArray(e.Terrain)) throw TypeError(".SecretActivityMap_Config.Terrain: array expected");
                    for (t.Terrain = [], n = 0; n < e.Terrain.length; ++n) {
                        if ("object" != typeof e.Terrain[n]) throw TypeError(".SecretActivityMap_Config.Terrain: object expected");
                        t.Terrain[n] = a.IntArray_Config.fromObject(e.Terrain[n])
                    }
                }
                if (e.Blocks) {
                    if (!Array.isArray(e.Blocks)) throw TypeError(".SecretActivityMap_Config.Blocks: array expected");
                    for (t.Blocks = [], n = 0; n < e.Blocks.length; ++n) {
                        if ("object" != typeof e.Blocks[n]) throw TypeError(".SecretActivityMap_Config.Blocks: object expected");
                        t.Blocks[n] = a.IntArray_Config.fromObject(e.Blocks[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.InletAndOutlet = [], n.Rewards = [], n.Map = [], n.Terrain = [], n.Blocks = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ElementType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ElementType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, n.MapResource = "", i.Long ? (o = new i.Long(0, 0, !1), n.AttrWeaken = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AttrWeaken = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.ElementType && e.hasOwnProperty("ElementType") && ("number" == typeof e.ElementType ? n.ElementType = t.longs === String ? String(e.ElementType) : e.ElementType : n.ElementType = t.longs === String ? i.Long.prototype.toString.call(e.ElementType) : t.longs === Number ? new i.LongBits(e.ElementType.low >>> 0, e.ElementType.high >>> 0).toNumber() : e.ElementType), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.InletAndOutlet && e.InletAndOutlet.length) {
                    n.InletAndOutlet = [];
                    for (var r = 0; r < e.InletAndOutlet.length; ++r) n.InletAndOutlet[r] = a.IntArray_Config.toObject(e.InletAndOutlet[r], t)
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (e.Map && e.Map.length)
                    for (n.Map = [], r = 0; r < e.Map.length; ++r) n.Map[r] = a.IntArray_Config.toObject(e.Map[r], t);
                if (null != e.MapResource && e.hasOwnProperty("MapResource") && (n.MapResource = e.MapResource), null != e.AttrWeaken && e.hasOwnProperty("AttrWeaken") && ("number" == typeof e.AttrWeaken ? n.AttrWeaken = t.longs === String ? String(e.AttrWeaken) : e.AttrWeaken : n.AttrWeaken = t.longs === String ? i.Long.prototype.toString.call(e.AttrWeaken) : t.longs === Number ? new i.LongBits(e.AttrWeaken.low >>> 0, e.AttrWeaken.high >>> 0).toNumber() : e.AttrWeaken), e.Terrain && e.Terrain.length)
                    for (n.Terrain = [], r = 0; r < e.Terrain.length; ++r) n.Terrain[r] = a.IntArray_Config.toObject(e.Terrain[r], t);
                if (e.Blocks && e.Blocks.length)
                    for (n.Blocks = [], r = 0; r < e.Blocks.length; ++r) n.Blocks[r] = a.IntArray_Config.toObject(e.Blocks[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretActivityMap_Config"
            }, e
        }(), a.SecretBlockType_Config = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Param && e.Param.length)
                    for (var n = 0; n < e.Param.length; ++n) a.IntArray_Config.encode(e.Param[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretBlockType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Param && r.Param.length || (r.Param = []), r.Param.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Param[t]);
                        if (n) return "Param." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretBlockType_Config) return e;
                var t = new a.SecretBlockType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".SecretBlockType_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) {
                        if ("object" != typeof e.Param[n]) throw TypeError(".SecretBlockType_Config.Param: object expected");
                        t.Param[n] = a.IntArray_Config.fromObject(e.Param[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) n.Param[r] = a.IntArray_Config.toObject(e.Param[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretBlockType_Config"
            }, e
        }(), a.SecretDevice_Config = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.prototype.Picture = "", e.prototype.KeepOut = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsCloud = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Param && e.Param.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Param.length; ++n) t.int64(e.Param[n]);
                    t.ldelim()
                }
                return null != e.Picture && Object.hasOwnProperty.call(e, "Picture") && t.uint32(34).string(e.Picture), null != e.KeepOut && Object.hasOwnProperty.call(e, "KeepOut") && t.uint32(48).int64(e.KeepOut), null != e.IsCloud && Object.hasOwnProperty.call(e, "IsCloud") && t.uint32(56).int64(e.IsCloud), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretDevice_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            if (r.Param && r.Param.length || (r.Param = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Param.push(e.int64());
                            else r.Param.push(e.int64());
                            break;
                        case 4:
                            r.Picture = e.string();
                            break;
                        case 6:
                            r.KeepOut = e.int64();
                            break;
                        case 7:
                            r.IsCloud = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t)
                        if (!(i.isInteger(e.Param[t]) || e.Param[t] && i.isInteger(e.Param[t].low) && i.isInteger(e.Param[t].high))) return "Param: integer|Long[] expected"
                }
                return null != e.Picture && e.hasOwnProperty("Picture") && !i.isString(e.Picture) ? "Picture: string expected" : null != e.KeepOut && e.hasOwnProperty("KeepOut") && !(i.isInteger(e.KeepOut) || e.KeepOut && i.isInteger(e.KeepOut.low) && i.isInteger(e.KeepOut.high)) ? "KeepOut: integer|Long expected" : null != e.IsCloud && e.hasOwnProperty("IsCloud") && !(i.isInteger(e.IsCloud) || e.IsCloud && i.isInteger(e.IsCloud.low) && i.isInteger(e.IsCloud.high)) ? "IsCloud: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretDevice_Config) return e;
                var t = new a.SecretDevice_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".SecretDevice_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) i.Long ? (t.Param[n] = i.Long.fromValue(e.Param[n])).unsigned = !1 : "string" == typeof e.Param[n] ? t.Param[n] = parseInt(e.Param[n], 10) : "number" == typeof e.Param[n] ? t.Param[n] = e.Param[n] : "object" == typeof e.Param[n] && (t.Param[n] = new i.LongBits(e.Param[n].low >>> 0, e.Param[n].high >>> 0).toNumber())
                }
                return null != e.Picture && (t.Picture = String(e.Picture)), null != e.KeepOut && (i.Long ? (t.KeepOut = i.Long.fromValue(e.KeepOut)).unsigned = !1 : "string" == typeof e.KeepOut ? t.KeepOut = parseInt(e.KeepOut, 10) : "number" == typeof e.KeepOut ? t.KeepOut = e.KeepOut : "object" == typeof e.KeepOut && (t.KeepOut = new i.LongBits(e.KeepOut.low >>> 0, e.KeepOut.high >>> 0).toNumber())), null != e.IsCloud && (i.Long ? (t.IsCloud = i.Long.fromValue(e.IsCloud)).unsigned = !1 : "string" == typeof e.IsCloud ? t.IsCloud = parseInt(e.IsCloud, 10) : "number" == typeof e.IsCloud ? t.IsCloud = e.IsCloud : "object" == typeof e.IsCloud && (t.IsCloud = new i.LongBits(e.IsCloud.low >>> 0, e.IsCloud.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, n.Picture = "", i.Long ? (o = new i.Long(0, 0, !1), n.KeepOut = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.KeepOut = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.IsCloud = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsCloud = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) "number" == typeof e.Param[r] ? n.Param[r] = t.longs === String ? String(e.Param[r]) : e.Param[r] : n.Param[r] = t.longs === String ? i.Long.prototype.toString.call(e.Param[r]) : t.longs === Number ? new i.LongBits(e.Param[r].low >>> 0, e.Param[r].high >>> 0).toNumber() : e.Param[r]
                }
                return null != e.Picture && e.hasOwnProperty("Picture") && (n.Picture = e.Picture), null != e.KeepOut && e.hasOwnProperty("KeepOut") && ("number" == typeof e.KeepOut ? n.KeepOut = t.longs === String ? String(e.KeepOut) : e.KeepOut : n.KeepOut = t.longs === String ? i.Long.prototype.toString.call(e.KeepOut) : t.longs === Number ? new i.LongBits(e.KeepOut.low >>> 0, e.KeepOut.high >>> 0).toNumber() : e.KeepOut), null != e.IsCloud && e.hasOwnProperty("IsCloud") && ("number" == typeof e.IsCloud ? n.IsCloud = t.longs === String ? String(e.IsCloud) : e.IsCloud : n.IsCloud = t.longs === String ? i.Long.prototype.toString.call(e.IsCloud) : t.longs === Number ? new i.LongBits(e.IsCloud.low >>> 0, e.IsCloud.high >>> 0).toNumber() : e.IsCloud), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretDevice_Config"
            }, e
        }(), a.ExclusiveWeapon_Config = function() {
            function e(e) {
                if (this.Skills = [], this.AwakenSkill = [], this.AwakenRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PieceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.prototype.AwakenSkill = i.emptyArray, e.prototype.AwakenPower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemBaseId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AwakenRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.PieceId && Object.hasOwnProperty.call(e, "PieceId") && t.uint32(24).int64(e.PieceId), null != e.Skills && e.Skills.length)
                    for (var n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(50).fork()).ldelim();
                if (null != e.AwakenSkill && e.AwakenSkill.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.AwakenSkill.length; ++n) t.int64(e.AwakenSkill[n]);
                    t.ldelim()
                }
                if (null != e.AwakenPower && Object.hasOwnProperty.call(e, "AwakenPower") && t.uint32(64).int64(e.AwakenPower), null != e.ItemBaseId && Object.hasOwnProperty.call(e, "ItemBaseId") && t.uint32(80).int64(e.ItemBaseId), null != e.AwakenRewards && e.AwakenRewards.length)
                    for (n = 0; n < e.AwakenRewards.length; ++n) a.IntArray_Config.encode(e.AwakenRewards[n], t.uint32(90).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ExclusiveWeapon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.PieceId = e.int64();
                            break;
                        case 6:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            if (r.AwakenSkill && r.AwakenSkill.length || (r.AwakenSkill = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AwakenSkill.push(e.int64());
                            else r.AwakenSkill.push(e.int64());
                            break;
                        case 8:
                            r.AwakenPower = e.int64();
                            break;
                        case 10:
                            r.ItemBaseId = e.int64();
                            break;
                        case 11:
                            r.AwakenRewards && r.AwakenRewards.length || (r.AwakenRewards = []), r.AwakenRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.PieceId && e.hasOwnProperty("PieceId") && !(i.isInteger(e.PieceId) || e.PieceId && i.isInteger(e.PieceId.low) && i.isInteger(e.PieceId.high))) return "PieceId: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (var t = 0; t < e.Skills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                }
                if (null != e.AwakenSkill && e.hasOwnProperty("AwakenSkill")) {
                    if (!Array.isArray(e.AwakenSkill)) return "AwakenSkill: array expected";
                    for (t = 0; t < e.AwakenSkill.length; ++t)
                        if (!(i.isInteger(e.AwakenSkill[t]) || e.AwakenSkill[t] && i.isInteger(e.AwakenSkill[t].low) && i.isInteger(e.AwakenSkill[t].high))) return "AwakenSkill: integer|Long[] expected"
                }
                if (null != e.AwakenPower && e.hasOwnProperty("AwakenPower") && !(i.isInteger(e.AwakenPower) || e.AwakenPower && i.isInteger(e.AwakenPower.low) && i.isInteger(e.AwakenPower.high))) return "AwakenPower: integer|Long expected";
                if (null != e.ItemBaseId && e.hasOwnProperty("ItemBaseId") && !(i.isInteger(e.ItemBaseId) || e.ItemBaseId && i.isInteger(e.ItemBaseId.low) && i.isInteger(e.ItemBaseId.high))) return "ItemBaseId: integer|Long expected";
                if (null != e.AwakenRewards && e.hasOwnProperty("AwakenRewards")) {
                    if (!Array.isArray(e.AwakenRewards)) return "AwakenRewards: array expected";
                    for (t = 0; t < e.AwakenRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.AwakenRewards[t])) return "AwakenRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ExclusiveWeapon_Config) return e;
                var t = new a.ExclusiveWeapon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.PieceId && (i.Long ? (t.PieceId = i.Long.fromValue(e.PieceId)).unsigned = !1 : "string" == typeof e.PieceId ? t.PieceId = parseInt(e.PieceId, 10) : "number" == typeof e.PieceId ? t.PieceId = e.PieceId : "object" == typeof e.PieceId && (t.PieceId = new i.LongBits(e.PieceId.low >>> 0, e.PieceId.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".ExclusiveWeapon_Config.Skills: array expected");
                    t.Skills = [];
                    for (var n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".ExclusiveWeapon_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (e.AwakenSkill) {
                    if (!Array.isArray(e.AwakenSkill)) throw TypeError(".ExclusiveWeapon_Config.AwakenSkill: array expected");
                    for (t.AwakenSkill = [], n = 0; n < e.AwakenSkill.length; ++n) i.Long ? (t.AwakenSkill[n] = i.Long.fromValue(e.AwakenSkill[n])).unsigned = !1 : "string" == typeof e.AwakenSkill[n] ? t.AwakenSkill[n] = parseInt(e.AwakenSkill[n], 10) : "number" == typeof e.AwakenSkill[n] ? t.AwakenSkill[n] = e.AwakenSkill[n] : "object" == typeof e.AwakenSkill[n] && (t.AwakenSkill[n] = new i.LongBits(e.AwakenSkill[n].low >>> 0, e.AwakenSkill[n].high >>> 0).toNumber())
                }
                if (null != e.AwakenPower && (i.Long ? (t.AwakenPower = i.Long.fromValue(e.AwakenPower)).unsigned = !1 : "string" == typeof e.AwakenPower ? t.AwakenPower = parseInt(e.AwakenPower, 10) : "number" == typeof e.AwakenPower ? t.AwakenPower = e.AwakenPower : "object" == typeof e.AwakenPower && (t.AwakenPower = new i.LongBits(e.AwakenPower.low >>> 0, e.AwakenPower.high >>> 0).toNumber())), null != e.ItemBaseId && (i.Long ? (t.ItemBaseId = i.Long.fromValue(e.ItemBaseId)).unsigned = !1 : "string" == typeof e.ItemBaseId ? t.ItemBaseId = parseInt(e.ItemBaseId, 10) : "number" == typeof e.ItemBaseId ? t.ItemBaseId = e.ItemBaseId : "object" == typeof e.ItemBaseId && (t.ItemBaseId = new i.LongBits(e.ItemBaseId.low >>> 0, e.ItemBaseId.high >>> 0).toNumber())), e.AwakenRewards) {
                    if (!Array.isArray(e.AwakenRewards)) throw TypeError(".ExclusiveWeapon_Config.AwakenRewards: array expected");
                    for (t.AwakenRewards = [], n = 0; n < e.AwakenRewards.length; ++n) {
                        if ("object" != typeof e.AwakenRewards[n]) throw TypeError(".ExclusiveWeapon_Config.AwakenRewards: object expected");
                        t.AwakenRewards[n] = a.IntArray_Config.fromObject(e.AwakenRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Skills = [], n.AwakenSkill = [], n.AwakenRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.PieceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PieceId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AwakenPower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AwakenPower = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemBaseId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemBaseId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.PieceId && e.hasOwnProperty("PieceId") && ("number" == typeof e.PieceId ? n.PieceId = t.longs === String ? String(e.PieceId) : e.PieceId : n.PieceId = t.longs === String ? i.Long.prototype.toString.call(e.PieceId) : t.longs === Number ? new i.LongBits(e.PieceId.low >>> 0, e.PieceId.high >>> 0).toNumber() : e.PieceId), e.Skills && e.Skills.length) {
                    n.Skills = [];
                    for (var r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t)
                }
                if (e.AwakenSkill && e.AwakenSkill.length)
                    for (n.AwakenSkill = [], r = 0; r < e.AwakenSkill.length; ++r) "number" == typeof e.AwakenSkill[r] ? n.AwakenSkill[r] = t.longs === String ? String(e.AwakenSkill[r]) : e.AwakenSkill[r] : n.AwakenSkill[r] = t.longs === String ? i.Long.prototype.toString.call(e.AwakenSkill[r]) : t.longs === Number ? new i.LongBits(e.AwakenSkill[r].low >>> 0, e.AwakenSkill[r].high >>> 0).toNumber() : e.AwakenSkill[r];
                if (null != e.AwakenPower && e.hasOwnProperty("AwakenPower") && ("number" == typeof e.AwakenPower ? n.AwakenPower = t.longs === String ? String(e.AwakenPower) : e.AwakenPower : n.AwakenPower = t.longs === String ? i.Long.prototype.toString.call(e.AwakenPower) : t.longs === Number ? new i.LongBits(e.AwakenPower.low >>> 0, e.AwakenPower.high >>> 0).toNumber() : e.AwakenPower), null != e.ItemBaseId && e.hasOwnProperty("ItemBaseId") && ("number" == typeof e.ItemBaseId ? n.ItemBaseId = t.longs === String ? String(e.ItemBaseId) : e.ItemBaseId : n.ItemBaseId = t.longs === String ? i.Long.prototype.toString.call(e.ItemBaseId) : t.longs === Number ? new i.LongBits(e.ItemBaseId.low >>> 0, e.ItemBaseId.high >>> 0).toNumber() : e.ItemBaseId), e.AwakenRewards && e.AwakenRewards.length)
                    for (n.AwakenRewards = [], r = 0; r < e.AwakenRewards.length; ++r) n.AwakenRewards[r] = a.IntArray_Config.toObject(e.AwakenRewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ExclusiveWeapon_Config"
            }, e
        }(), a.LuckyCharmStar_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Skills = [], this.SkillMaterials = [], this.EntranceSkill = [], this.Attrs = [], this.ShowAttr = [], this.Attrs2 = [], this.Unlock = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Skills = i.emptyArray, e.prototype.SkillMaterials = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EntranceSkill = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.ShowAttr = i.emptyArray, e.prototype.Attrs2 = i.emptyArray, e.prototype.Unlock = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Skills && e.Skills.length) {
                    for (t.uint32(26).fork(), n = 0; n < e.Skills.length; ++n) t.int64(e.Skills[n]);
                    t.ldelim()
                }
                if (null != e.SkillMaterials && e.SkillMaterials.length)
                    for (n = 0; n < e.SkillMaterials.length; ++n) a.IntArray_Config.encode(e.SkillMaterials[n], t.uint32(34).fork()).ldelim();
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(40).int64(e.Score), null != e.EntranceSkill && e.EntranceSkill.length)
                    for (n = 0; n < e.EntranceSkill.length; ++n) a.IntArray_Config.encode(e.EntranceSkill[n], t.uint32(50).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(58).fork()).ldelim();
                if (null != e.ShowAttr && e.ShowAttr.length)
                    for (n = 0; n < e.ShowAttr.length; ++n) a.IntArray_Config.encode(e.ShowAttr[n], t.uint32(66).fork()).ldelim();
                if (null != e.Attrs2 && e.Attrs2.length)
                    for (n = 0; n < e.Attrs2.length; ++n) a.IntArray_Config.encode(e.Attrs2[n], t.uint32(74).fork()).ldelim();
                if (null != e.Unlock && e.Unlock.length) {
                    for (t.uint32(82).fork(), n = 0; n < e.Unlock.length; ++n) t.int64(e.Unlock[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LuckyCharmStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            if (r.Skills && r.Skills.length || (r.Skills = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Skills.push(e.int64());
                            else r.Skills.push(e.int64());
                            break;
                        case 4:
                            r.SkillMaterials && r.SkillMaterials.length || (r.SkillMaterials = []), r.SkillMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Score = e.int64();
                            break;
                        case 6:
                            r.EntranceSkill && r.EntranceSkill.length || (r.EntranceSkill = []), r.EntranceSkill.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.ShowAttr && r.ShowAttr.length || (r.ShowAttr = []), r.ShowAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.Attrs2 && r.Attrs2.length || (r.Attrs2 = []), r.Attrs2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            if (r.Unlock && r.Unlock.length || (r.Unlock = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Unlock.push(e.int64());
                            else r.Unlock.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (t = 0; t < e.Skills.length; ++t)
                        if (!(i.isInteger(e.Skills[t]) || e.Skills[t] && i.isInteger(e.Skills[t].low) && i.isInteger(e.Skills[t].high))) return "Skills: integer|Long[] expected"
                }
                if (null != e.SkillMaterials && e.hasOwnProperty("SkillMaterials")) {
                    if (!Array.isArray(e.SkillMaterials)) return "SkillMaterials: array expected";
                    for (t = 0; t < e.SkillMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SkillMaterials[t])) return "SkillMaterials." + n
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.EntranceSkill && e.hasOwnProperty("EntranceSkill")) {
                    if (!Array.isArray(e.EntranceSkill)) return "EntranceSkill: array expected";
                    for (t = 0; t < e.EntranceSkill.length; ++t)
                        if (n = a.IntArray_Config.verify(e.EntranceSkill[t])) return "EntranceSkill." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.ShowAttr && e.hasOwnProperty("ShowAttr")) {
                    if (!Array.isArray(e.ShowAttr)) return "ShowAttr: array expected";
                    for (t = 0; t < e.ShowAttr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ShowAttr[t])) return "ShowAttr." + n
                }
                if (null != e.Attrs2 && e.hasOwnProperty("Attrs2")) {
                    if (!Array.isArray(e.Attrs2)) return "Attrs2: array expected";
                    for (t = 0; t < e.Attrs2.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs2[t])) return "Attrs2." + n
                    }
                }
                if (null != e.Unlock && e.hasOwnProperty("Unlock")) {
                    if (!Array.isArray(e.Unlock)) return "Unlock: array expected";
                    for (t = 0; t < e.Unlock.length; ++t)
                        if (!(i.isInteger(e.Unlock[t]) || e.Unlock[t] && i.isInteger(e.Unlock[t].low) && i.isInteger(e.Unlock[t].high))) return "Unlock: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.LuckyCharmStar_Config) return e;
                var t = new a.LuckyCharmStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".LuckyCharmStar_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".LuckyCharmStar_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".LuckyCharmStar_Config.Skills: array expected");
                    for (t.Skills = [], n = 0; n < e.Skills.length; ++n) i.Long ? (t.Skills[n] = i.Long.fromValue(e.Skills[n])).unsigned = !1 : "string" == typeof e.Skills[n] ? t.Skills[n] = parseInt(e.Skills[n], 10) : "number" == typeof e.Skills[n] ? t.Skills[n] = e.Skills[n] : "object" == typeof e.Skills[n] && (t.Skills[n] = new i.LongBits(e.Skills[n].low >>> 0, e.Skills[n].high >>> 0).toNumber())
                }
                if (e.SkillMaterials) {
                    if (!Array.isArray(e.SkillMaterials)) throw TypeError(".LuckyCharmStar_Config.SkillMaterials: array expected");
                    for (t.SkillMaterials = [], n = 0; n < e.SkillMaterials.length; ++n) {
                        if ("object" != typeof e.SkillMaterials[n]) throw TypeError(".LuckyCharmStar_Config.SkillMaterials: object expected");
                        t.SkillMaterials[n] = a.IntArray_Config.fromObject(e.SkillMaterials[n])
                    }
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.EntranceSkill) {
                    if (!Array.isArray(e.EntranceSkill)) throw TypeError(".LuckyCharmStar_Config.EntranceSkill: array expected");
                    for (t.EntranceSkill = [], n = 0; n < e.EntranceSkill.length; ++n) {
                        if ("object" != typeof e.EntranceSkill[n]) throw TypeError(".LuckyCharmStar_Config.EntranceSkill: object expected");
                        t.EntranceSkill[n] = a.IntArray_Config.fromObject(e.EntranceSkill[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".LuckyCharmStar_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".LuckyCharmStar_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.ShowAttr) {
                    if (!Array.isArray(e.ShowAttr)) throw TypeError(".LuckyCharmStar_Config.ShowAttr: array expected");
                    for (t.ShowAttr = [], n = 0; n < e.ShowAttr.length; ++n) {
                        if ("object" != typeof e.ShowAttr[n]) throw TypeError(".LuckyCharmStar_Config.ShowAttr: object expected");
                        t.ShowAttr[n] = a.IntArray_Config.fromObject(e.ShowAttr[n])
                    }
                }
                if (e.Attrs2) {
                    if (!Array.isArray(e.Attrs2)) throw TypeError(".LuckyCharmStar_Config.Attrs2: array expected");
                    for (t.Attrs2 = [], n = 0; n < e.Attrs2.length; ++n) {
                        if ("object" != typeof e.Attrs2[n]) throw TypeError(".LuckyCharmStar_Config.Attrs2: object expected");
                        t.Attrs2[n] = a.IntArray_Config.fromObject(e.Attrs2[n])
                    }
                }
                if (e.Unlock) {
                    if (!Array.isArray(e.Unlock)) throw TypeError(".LuckyCharmStar_Config.Unlock: array expected");
                    for (t.Unlock = [], n = 0; n < e.Unlock.length; ++n) i.Long ? (t.Unlock[n] = i.Long.fromValue(e.Unlock[n])).unsigned = !1 : "string" == typeof e.Unlock[n] ? t.Unlock[n] = parseInt(e.Unlock[n], 10) : "number" == typeof e.Unlock[n] ? t.Unlock[n] = e.Unlock[n] : "object" == typeof e.Unlock[n] && (t.Unlock[n] = new i.LongBits(e.Unlock[n].low >>> 0, e.Unlock[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Skills = [], n.SkillMaterials = [], n.EntranceSkill = [], n.Attrs = [], n.ShowAttr = [], n.Attrs2 = [], n.Unlock = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Skills && e.Skills.length)
                    for (n.Skills = [], r = 0; r < e.Skills.length; ++r) "number" == typeof e.Skills[r] ? n.Skills[r] = t.longs === String ? String(e.Skills[r]) : e.Skills[r] : n.Skills[r] = t.longs === String ? i.Long.prototype.toString.call(e.Skills[r]) : t.longs === Number ? new i.LongBits(e.Skills[r].low >>> 0, e.Skills[r].high >>> 0).toNumber() : e.Skills[r];
                if (e.SkillMaterials && e.SkillMaterials.length)
                    for (n.SkillMaterials = [], r = 0; r < e.SkillMaterials.length; ++r) n.SkillMaterials[r] = a.IntArray_Config.toObject(e.SkillMaterials[r], t);
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.EntranceSkill && e.EntranceSkill.length)
                    for (n.EntranceSkill = [], r = 0; r < e.EntranceSkill.length; ++r) n.EntranceSkill[r] = a.IntArray_Config.toObject(e.EntranceSkill[r], t);
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (e.ShowAttr && e.ShowAttr.length)
                    for (n.ShowAttr = [], r = 0; r < e.ShowAttr.length; ++r) n.ShowAttr[r] = a.IntArray_Config.toObject(e.ShowAttr[r], t);
                if (e.Attrs2 && e.Attrs2.length)
                    for (n.Attrs2 = [], r = 0; r < e.Attrs2.length; ++r) n.Attrs2[r] = a.IntArray_Config.toObject(e.Attrs2[r], t);
                if (e.Unlock && e.Unlock.length)
                    for (n.Unlock = [], r = 0; r < e.Unlock.length; ++r) "number" == typeof e.Unlock[r] ? n.Unlock[r] = t.longs === String ? String(e.Unlock[r]) : e.Unlock[r] : n.Unlock[r] = t.longs === String ? i.Long.prototype.toString.call(e.Unlock[r]) : t.longs === Number ? new i.LongBits(e.Unlock[r].low >>> 0, e.Unlock[r].high >>> 0).toNumber() : e.Unlock[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LuckyCharmStar_Config"
            }, e
        }(), a.LuckyCharmStarSkill_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EnhancedId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.EnhancedId && Object.hasOwnProperty.call(e, "EnhancedId") && t.uint32(24).int64(e.EnhancedId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LuckyCharmStarSkill_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.EnhancedId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.EnhancedId && e.hasOwnProperty("EnhancedId") && !(i.isInteger(e.EnhancedId) || e.EnhancedId && i.isInteger(e.EnhancedId.low) && i.isInteger(e.EnhancedId.high)) ? "EnhancedId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.LuckyCharmStarSkill_Config) return e;
                var t = new a.LuckyCharmStarSkill_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.EnhancedId && (i.Long ? (t.EnhancedId = i.Long.fromValue(e.EnhancedId)).unsigned = !1 : "string" == typeof e.EnhancedId ? t.EnhancedId = parseInt(e.EnhancedId, 10) : "number" == typeof e.EnhancedId ? t.EnhancedId = e.EnhancedId : "object" == typeof e.EnhancedId && (t.EnhancedId = new i.LongBits(e.EnhancedId.low >>> 0, e.EnhancedId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.EnhancedId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EnhancedId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.EnhancedId && e.hasOwnProperty("EnhancedId") && ("number" == typeof e.EnhancedId ? n.EnhancedId = t.longs === String ? String(e.EnhancedId) : e.EnhancedId : n.EnhancedId = t.longs === String ? i.Long.prototype.toString.call(e.EnhancedId) : t.longs === Number ? new i.LongBits(e.EnhancedId.low >>> 0, e.EnhancedId.high >>> 0).toNumber() : e.EnhancedId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LuckyCharmStarSkill_Config"
            }, e
        }(), a.ExclusiveWeaponStar_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.HeroMaterials = [], this.ChaosHeroMaterials = [], this.SuperAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PieceCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelCap = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.HeroMaterials = i.emptyArray, e.prototype.ChaosHeroMaterials = i.emptyArray, e.prototype.Telekinesis = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SuperAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.PieceCount && Object.hasOwnProperty.call(e, "PieceCount") && t.uint32(16).int64(e.PieceCount), null != e.LevelCap && Object.hasOwnProperty.call(e, "LevelCap") && t.uint32(24).int64(e.LevelCap), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.HeroMaterials && e.HeroMaterials.length)
                    for (n = 0; n < e.HeroMaterials.length; ++n) a.IntArray_Config.encode(e.HeroMaterials[n], t.uint32(42).fork()).ldelim();
                if (null != e.ChaosHeroMaterials && e.ChaosHeroMaterials.length)
                    for (n = 0; n < e.ChaosHeroMaterials.length; ++n) a.IntArray_Config.encode(e.ChaosHeroMaterials[n], t.uint32(50).fork()).ldelim();
                if (null != e.Telekinesis && Object.hasOwnProperty.call(e, "Telekinesis") && t.uint32(56).int64(e.Telekinesis), null != e.SuperAttrs && e.SuperAttrs.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.SuperAttrs.length; ++n) t.int64(e.SuperAttrs[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ExclusiveWeaponStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.PieceCount = e.int64();
                            break;
                        case 3:
                            r.LevelCap = e.int64();
                            break;
                        case 4:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.HeroMaterials && r.HeroMaterials.length || (r.HeroMaterials = []), r.HeroMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.ChaosHeroMaterials && r.ChaosHeroMaterials.length || (r.ChaosHeroMaterials = []), r.ChaosHeroMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Telekinesis = e.int64();
                            break;
                        case 8:
                            if (r.SuperAttrs && r.SuperAttrs.length || (r.SuperAttrs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.SuperAttrs.push(e.int64());
                            else r.SuperAttrs.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.PieceCount && e.hasOwnProperty("PieceCount") && !(i.isInteger(e.PieceCount) || e.PieceCount && i.isInteger(e.PieceCount.low) && i.isInteger(e.PieceCount.high))) return "PieceCount: integer|Long expected";
                if (null != e.LevelCap && e.hasOwnProperty("LevelCap") && !(i.isInteger(e.LevelCap) || e.LevelCap && i.isInteger(e.LevelCap.low) && i.isInteger(e.LevelCap.high))) return "LevelCap: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.HeroMaterials && e.hasOwnProperty("HeroMaterials")) {
                    if (!Array.isArray(e.HeroMaterials)) return "HeroMaterials: array expected";
                    for (t = 0; t < e.HeroMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.HeroMaterials[t])) return "HeroMaterials." + n
                }
                if (null != e.ChaosHeroMaterials && e.hasOwnProperty("ChaosHeroMaterials")) {
                    if (!Array.isArray(e.ChaosHeroMaterials)) return "ChaosHeroMaterials: array expected";
                    for (t = 0; t < e.ChaosHeroMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ChaosHeroMaterials[t])) return "ChaosHeroMaterials." + n
                    }
                }
                if (null != e.Telekinesis && e.hasOwnProperty("Telekinesis") && !(i.isInteger(e.Telekinesis) || e.Telekinesis && i.isInteger(e.Telekinesis.low) && i.isInteger(e.Telekinesis.high))) return "Telekinesis: integer|Long expected";
                if (null != e.SuperAttrs && e.hasOwnProperty("SuperAttrs")) {
                    if (!Array.isArray(e.SuperAttrs)) return "SuperAttrs: array expected";
                    for (t = 0; t < e.SuperAttrs.length; ++t)
                        if (!(i.isInteger(e.SuperAttrs[t]) || e.SuperAttrs[t] && i.isInteger(e.SuperAttrs[t].low) && i.isInteger(e.SuperAttrs[t].high))) return "SuperAttrs: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ExclusiveWeaponStar_Config) return e;
                var t = new a.ExclusiveWeaponStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.PieceCount && (i.Long ? (t.PieceCount = i.Long.fromValue(e.PieceCount)).unsigned = !1 : "string" == typeof e.PieceCount ? t.PieceCount = parseInt(e.PieceCount, 10) : "number" == typeof e.PieceCount ? t.PieceCount = e.PieceCount : "object" == typeof e.PieceCount && (t.PieceCount = new i.LongBits(e.PieceCount.low >>> 0, e.PieceCount.high >>> 0).toNumber())), null != e.LevelCap && (i.Long ? (t.LevelCap = i.Long.fromValue(e.LevelCap)).unsigned = !1 : "string" == typeof e.LevelCap ? t.LevelCap = parseInt(e.LevelCap, 10) : "number" == typeof e.LevelCap ? t.LevelCap = e.LevelCap : "object" == typeof e.LevelCap && (t.LevelCap = new i.LongBits(e.LevelCap.low >>> 0, e.LevelCap.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ExclusiveWeaponStar_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ExclusiveWeaponStar_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.HeroMaterials) {
                    if (!Array.isArray(e.HeroMaterials)) throw TypeError(".ExclusiveWeaponStar_Config.HeroMaterials: array expected");
                    for (t.HeroMaterials = [], n = 0; n < e.HeroMaterials.length; ++n) {
                        if ("object" != typeof e.HeroMaterials[n]) throw TypeError(".ExclusiveWeaponStar_Config.HeroMaterials: object expected");
                        t.HeroMaterials[n] = a.IntArray_Config.fromObject(e.HeroMaterials[n])
                    }
                }
                if (e.ChaosHeroMaterials) {
                    if (!Array.isArray(e.ChaosHeroMaterials)) throw TypeError(".ExclusiveWeaponStar_Config.ChaosHeroMaterials: array expected");
                    for (t.ChaosHeroMaterials = [], n = 0; n < e.ChaosHeroMaterials.length; ++n) {
                        if ("object" != typeof e.ChaosHeroMaterials[n]) throw TypeError(".ExclusiveWeaponStar_Config.ChaosHeroMaterials: object expected");
                        t.ChaosHeroMaterials[n] = a.IntArray_Config.fromObject(e.ChaosHeroMaterials[n])
                    }
                }
                if (null != e.Telekinesis && (i.Long ? (t.Telekinesis = i.Long.fromValue(e.Telekinesis)).unsigned = !1 : "string" == typeof e.Telekinesis ? t.Telekinesis = parseInt(e.Telekinesis, 10) : "number" == typeof e.Telekinesis ? t.Telekinesis = e.Telekinesis : "object" == typeof e.Telekinesis && (t.Telekinesis = new i.LongBits(e.Telekinesis.low >>> 0, e.Telekinesis.high >>> 0).toNumber())), e.SuperAttrs) {
                    if (!Array.isArray(e.SuperAttrs)) throw TypeError(".ExclusiveWeaponStar_Config.SuperAttrs: array expected");
                    for (t.SuperAttrs = [], n = 0; n < e.SuperAttrs.length; ++n) i.Long ? (t.SuperAttrs[n] = i.Long.fromValue(e.SuperAttrs[n])).unsigned = !1 : "string" == typeof e.SuperAttrs[n] ? t.SuperAttrs[n] = parseInt(e.SuperAttrs[n], 10) : "number" == typeof e.SuperAttrs[n] ? t.SuperAttrs[n] = e.SuperAttrs[n] : "object" == typeof e.SuperAttrs[n] && (t.SuperAttrs[n] = new i.LongBits(e.SuperAttrs[n].low >>> 0, e.SuperAttrs[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.HeroMaterials = [], n.ChaosHeroMaterials = [], n.SuperAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.PieceCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PieceCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LevelCap = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LevelCap = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Telekinesis = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Telekinesis = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.PieceCount && e.hasOwnProperty("PieceCount") && ("number" == typeof e.PieceCount ? n.PieceCount = t.longs === String ? String(e.PieceCount) : e.PieceCount : n.PieceCount = t.longs === String ? i.Long.prototype.toString.call(e.PieceCount) : t.longs === Number ? new i.LongBits(e.PieceCount.low >>> 0, e.PieceCount.high >>> 0).toNumber() : e.PieceCount), null != e.LevelCap && e.hasOwnProperty("LevelCap") && ("number" == typeof e.LevelCap ? n.LevelCap = t.longs === String ? String(e.LevelCap) : e.LevelCap : n.LevelCap = t.longs === String ? i.Long.prototype.toString.call(e.LevelCap) : t.longs === Number ? new i.LongBits(e.LevelCap.low >>> 0, e.LevelCap.high >>> 0).toNumber() : e.LevelCap), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.HeroMaterials && e.HeroMaterials.length)
                    for (n.HeroMaterials = [], r = 0; r < e.HeroMaterials.length; ++r) n.HeroMaterials[r] = a.IntArray_Config.toObject(e.HeroMaterials[r], t);
                if (e.ChaosHeroMaterials && e.ChaosHeroMaterials.length)
                    for (n.ChaosHeroMaterials = [], r = 0; r < e.ChaosHeroMaterials.length; ++r) n.ChaosHeroMaterials[r] = a.IntArray_Config.toObject(e.ChaosHeroMaterials[r], t);
                if (null != e.Telekinesis && e.hasOwnProperty("Telekinesis") && ("number" == typeof e.Telekinesis ? n.Telekinesis = t.longs === String ? String(e.Telekinesis) : e.Telekinesis : n.Telekinesis = t.longs === String ? i.Long.prototype.toString.call(e.Telekinesis) : t.longs === Number ? new i.LongBits(e.Telekinesis.low >>> 0, e.Telekinesis.high >>> 0).toNumber() : e.Telekinesis), e.SuperAttrs && e.SuperAttrs.length)
                    for (n.SuperAttrs = [], r = 0; r < e.SuperAttrs.length; ++r) "number" == typeof e.SuperAttrs[r] ? n.SuperAttrs[r] = t.longs === String ? String(e.SuperAttrs[r]) : e.SuperAttrs[r] : n.SuperAttrs[r] = t.longs === String ? i.Long.prototype.toString.call(e.SuperAttrs[r]) : t.longs === Number ? new i.LongBits(e.SuperAttrs[r].low >>> 0, e.SuperAttrs[r].high >>> 0).toNumber() : e.SuperAttrs[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ExclusiveWeaponStar_Config"
            }, e
        }(), a.ExclusiveWeaponLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.ExtraPower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillNodeCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Telekinesis = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return null != e.ExtraPower && Object.hasOwnProperty.call(e, "ExtraPower") && t.uint32(32).int64(e.ExtraPower), null != e.SkillNodeCount && Object.hasOwnProperty.call(e, "SkillNodeCount") && t.uint32(40).int64(e.SkillNodeCount), null != e.Telekinesis && Object.hasOwnProperty.call(e, "Telekinesis") && t.uint32(48).int64(e.Telekinesis), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ExclusiveWeaponLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ExtraPower = e.int64();
                            break;
                        case 5:
                            r.SkillNodeCount = e.int64();
                            break;
                        case 6:
                            r.Telekinesis = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                    }
                }
                return null != e.ExtraPower && e.hasOwnProperty("ExtraPower") && !(i.isInteger(e.ExtraPower) || e.ExtraPower && i.isInteger(e.ExtraPower.low) && i.isInteger(e.ExtraPower.high)) ? "ExtraPower: integer|Long expected" : null != e.SkillNodeCount && e.hasOwnProperty("SkillNodeCount") && !(i.isInteger(e.SkillNodeCount) || e.SkillNodeCount && i.isInteger(e.SkillNodeCount.low) && i.isInteger(e.SkillNodeCount.high)) ? "SkillNodeCount: integer|Long expected" : null != e.Telekinesis && e.hasOwnProperty("Telekinesis") && !(i.isInteger(e.Telekinesis) || e.Telekinesis && i.isInteger(e.Telekinesis.low) && i.isInteger(e.Telekinesis.high)) ? "Telekinesis: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ExclusiveWeaponLevel_Config) return e;
                var t = new a.ExclusiveWeaponLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".ExclusiveWeaponLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".ExclusiveWeaponLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ExclusiveWeaponLevel_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ExclusiveWeaponLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.ExtraPower && (i.Long ? (t.ExtraPower = i.Long.fromValue(e.ExtraPower)).unsigned = !1 : "string" == typeof e.ExtraPower ? t.ExtraPower = parseInt(e.ExtraPower, 10) : "number" == typeof e.ExtraPower ? t.ExtraPower = e.ExtraPower : "object" == typeof e.ExtraPower && (t.ExtraPower = new i.LongBits(e.ExtraPower.low >>> 0, e.ExtraPower.high >>> 0).toNumber())), null != e.SkillNodeCount && (i.Long ? (t.SkillNodeCount = i.Long.fromValue(e.SkillNodeCount)).unsigned = !1 : "string" == typeof e.SkillNodeCount ? t.SkillNodeCount = parseInt(e.SkillNodeCount, 10) : "number" == typeof e.SkillNodeCount ? t.SkillNodeCount = e.SkillNodeCount : "object" == typeof e.SkillNodeCount && (t.SkillNodeCount = new i.LongBits(e.SkillNodeCount.low >>> 0, e.SkillNodeCount.high >>> 0).toNumber())), null != e.Telekinesis && (i.Long ? (t.Telekinesis = i.Long.fromValue(e.Telekinesis)).unsigned = !1 : "string" == typeof e.Telekinesis ? t.Telekinesis = parseInt(e.Telekinesis, 10) : "number" == typeof e.Telekinesis ? t.Telekinesis = e.Telekinesis : "object" == typeof e.Telekinesis && (t.Telekinesis = new i.LongBits(e.Telekinesis.low >>> 0, e.Telekinesis.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ExtraPower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ExtraPower = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkillNodeCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillNodeCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Telekinesis = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Telekinesis = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                return null != e.ExtraPower && e.hasOwnProperty("ExtraPower") && ("number" == typeof e.ExtraPower ? n.ExtraPower = t.longs === String ? String(e.ExtraPower) : e.ExtraPower : n.ExtraPower = t.longs === String ? i.Long.prototype.toString.call(e.ExtraPower) : t.longs === Number ? new i.LongBits(e.ExtraPower.low >>> 0, e.ExtraPower.high >>> 0).toNumber() : e.ExtraPower), null != e.SkillNodeCount && e.hasOwnProperty("SkillNodeCount") && ("number" == typeof e.SkillNodeCount ? n.SkillNodeCount = t.longs === String ? String(e.SkillNodeCount) : e.SkillNodeCount : n.SkillNodeCount = t.longs === String ? i.Long.prototype.toString.call(e.SkillNodeCount) : t.longs === Number ? new i.LongBits(e.SkillNodeCount.low >>> 0, e.SkillNodeCount.high >>> 0).toNumber() : e.SkillNodeCount), null != e.Telekinesis && e.hasOwnProperty("Telekinesis") && ("number" == typeof e.Telekinesis ? n.Telekinesis = t.longs === String ? String(e.Telekinesis) : e.Telekinesis : n.Telekinesis = t.longs === String ? i.Long.prototype.toString.call(e.Telekinesis) : t.longs === Number ? new i.LongBits(e.Telekinesis.low >>> 0, e.Telekinesis.high >>> 0).toNumber() : e.Telekinesis), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ExclusiveWeaponLevel_Config"
            }, e
        }(), a.HeroIntroduce_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroIntroduce_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroIntroduce_Config) return e;
                var t = new a.HeroIntroduce_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroIntroduce_Config"
            }, e
        }(), a.SecretGrassType_Config = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.prototype.Picture = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Param && e.Param.length)
                    for (var n = 0; n < e.Param.length; ++n) a.IntArray_Config.encode(e.Param[n], t.uint32(18).fork()).ldelim();
                return null != e.Picture && Object.hasOwnProperty.call(e, "Picture") && t.uint32(26).string(e.Picture), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretGrassType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Param && r.Param.length || (r.Param = []), r.Param.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Picture = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Param[t]);
                        if (n) return "Param." + n
                    }
                }
                return null != e.Picture && e.hasOwnProperty("Picture") && !i.isString(e.Picture) ? "Picture: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretGrassType_Config) return e;
                var t = new a.SecretGrassType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".SecretGrassType_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) {
                        if ("object" != typeof e.Param[n]) throw TypeError(".SecretGrassType_Config.Param: object expected");
                        t.Param[n] = a.IntArray_Config.fromObject(e.Param[n])
                    }
                }
                return null != e.Picture && (t.Picture = String(e.Picture)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Picture = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) n.Param[r] = a.IntArray_Config.toObject(e.Param[r], t)
                }
                return null != e.Picture && e.hasOwnProperty("Picture") && (n.Picture = e.Picture), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretGrassType_Config"
            }, e
        }(), a.SecretTerrain_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.OffsetY = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(18).string(e.Icon), null != e.OffsetY && Object.hasOwnProperty.call(e, "OffsetY") && t.uint32(32).int64(e.OffsetY), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretTerrain_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Icon = e.string();
                            break;
                        case 4:
                            r.OffsetY = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null != e.OffsetY && e.hasOwnProperty("OffsetY") && !(i.isInteger(e.OffsetY) || e.OffsetY && i.isInteger(e.OffsetY.low) && i.isInteger(e.OffsetY.high)) ? "OffsetY: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretTerrain_Config) return e;
                var t = new a.SecretTerrain_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), null != e.OffsetY && (i.Long ? (t.OffsetY = i.Long.fromValue(e.OffsetY)).unsigned = !1 : "string" == typeof e.OffsetY ? t.OffsetY = parseInt(e.OffsetY, 10) : "number" == typeof e.OffsetY ? t.OffsetY = e.OffsetY : "object" == typeof e.OffsetY && (t.OffsetY = new i.LongBits(e.OffsetY.low >>> 0, e.OffsetY.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.OffsetY = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OffsetY = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), null != e.OffsetY && e.hasOwnProperty("OffsetY") && ("number" == typeof e.OffsetY ? n.OffsetY = t.longs === String ? String(e.OffsetY) : e.OffsetY : n.OffsetY = t.longs === String ? i.Long.prototype.toString.call(e.OffsetY) : t.longs === Number ? new i.LongBits(e.OffsetY.low >>> 0, e.OffsetY.high >>> 0).toNumber() : e.OffsetY), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretTerrain_Config"
            }, e
        }(), a.SecretIslandPortal_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.MapId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(42).string(e.Icon), null != e.MapId && Object.hasOwnProperty.call(e, "MapId") && t.uint32(56).int64(e.MapId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretIslandPortal_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.Icon = e.string();
                            break;
                        case 7:
                            r.MapId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null != e.MapId && e.hasOwnProperty("MapId") && !(i.isInteger(e.MapId) || e.MapId && i.isInteger(e.MapId.low) && i.isInteger(e.MapId.high)) ? "MapId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretIslandPortal_Config) return e;
                var t = new a.SecretIslandPortal_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), null != e.MapId && (i.Long ? (t.MapId = i.Long.fromValue(e.MapId)).unsigned = !1 : "string" == typeof e.MapId ? t.MapId = parseInt(e.MapId, 10) : "number" == typeof e.MapId ? t.MapId = e.MapId : "object" == typeof e.MapId && (t.MapId = new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.MapId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), null != e.MapId && e.hasOwnProperty("MapId") && ("number" == typeof e.MapId ? n.MapId = t.longs === String ? String(e.MapId) : e.MapId : n.MapId = t.longs === String ? i.Long.prototype.toString.call(e.MapId) : t.longs === Number ? new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber() : e.MapId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretIslandPortal_Config"
            }, e
        }(), a.SecretShop_Config = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Param && e.Param.length)
                    for (var n = 0; n < e.Param.length; ++n) a.IntArray_Config.encode(e.Param[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SecretShop_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Param && r.Param.length || (r.Param = []), r.Param.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Param[t]);
                        if (n) return "Param." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SecretShop_Config) return e;
                var t = new a.SecretShop_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".SecretShop_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) {
                        if ("object" != typeof e.Param[n]) throw TypeError(".SecretShop_Config.Param: object expected");
                        t.Param[n] = a.IntArray_Config.fromObject(e.Param[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) n.Param[r] = a.IntArray_Config.toObject(e.Param[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SecretShop_Config"
            }, e
        }(), a.HeroFetterStar_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroFetterStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroFetterStar_Config) return e;
                var t = new a.HeroFetterStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroFetterStar_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroFetterStar_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroFetterStar_Config"
            }, e
        }(), a.AllianceChallengeScore_Config = function() {
            function e(e) {
                if (this.Score = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Score && e.Score.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Score.length; ++n) t.int64(e.Score[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceChallengeScore_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Score && r.Score.length || (r.Score = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Score.push(e.int64());
                            else r.Score.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score")) {
                    if (!Array.isArray(e.Score)) return "Score: array expected";
                    for (var t = 0; t < e.Score.length; ++t)
                        if (!(i.isInteger(e.Score[t]) || e.Score[t] && i.isInteger(e.Score[t].low) && i.isInteger(e.Score[t].high))) return "Score: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceChallengeScore_Config) return e;
                var t = new a.AllianceChallengeScore_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Score) {
                    if (!Array.isArray(e.Score)) throw TypeError(".AllianceChallengeScore_Config.Score: array expected");
                    t.Score = [];
                    for (var n = 0; n < e.Score.length; ++n) i.Long ? (t.Score[n] = i.Long.fromValue(e.Score[n])).unsigned = !1 : "string" == typeof e.Score[n] ? t.Score[n] = parseInt(e.Score[n], 10) : "number" == typeof e.Score[n] ? t.Score[n] = e.Score[n] : "object" == typeof e.Score[n] && (t.Score[n] = new i.LongBits(e.Score[n].low >>> 0, e.Score[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Score = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Score && e.Score.length) {
                    n.Score = [];
                    for (var r = 0; r < e.Score.length; ++r) "number" == typeof e.Score[r] ? n.Score[r] = t.longs === String ? String(e.Score[r]) : e.Score[r] : n.Score[r] = t.longs === String ? i.Long.prototype.toString.call(e.Score[r]) : t.longs === Number ? new i.LongBits(e.Score[r].low >>> 0, e.Score[r].high >>> 0).toNumber() : e.Score[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceChallengeScore_Config"
            }, e
        }(), a.AllianceChallengeDailyRewards_Config = function() {
            function e(e) {
                if (this.Rank = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rank = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rank && e.Rank.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Rank.length; ++n) t.int64(e.Rank[n]);
                    t.ldelim()
                }
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceChallengeDailyRewards_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Rank && r.Rank.length || (r.Rank = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Rank.push(e.int64());
                            else r.Rank.push(e.int64());
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rank && e.hasOwnProperty("Rank")) {
                    if (!Array.isArray(e.Rank)) return "Rank: array expected";
                    for (var t = 0; t < e.Rank.length; ++t)
                        if (!(i.isInteger(e.Rank[t]) || e.Rank[t] && i.isInteger(e.Rank[t].low) && i.isInteger(e.Rank[t].high))) return "Rank: integer|Long[] expected"
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceChallengeDailyRewards_Config) return e;
                var t = new a.AllianceChallengeDailyRewards_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rank) {
                    if (!Array.isArray(e.Rank)) throw TypeError(".AllianceChallengeDailyRewards_Config.Rank: array expected");
                    t.Rank = [];
                    for (var n = 0; n < e.Rank.length; ++n) i.Long ? (t.Rank[n] = i.Long.fromValue(e.Rank[n])).unsigned = !1 : "string" == typeof e.Rank[n] ? t.Rank[n] = parseInt(e.Rank[n], 10) : "number" == typeof e.Rank[n] ? t.Rank[n] = e.Rank[n] : "object" == typeof e.Rank[n] && (t.Rank[n] = new i.LongBits(e.Rank[n].low >>> 0, e.Rank[n].high >>> 0).toNumber())
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AllianceChallengeDailyRewards_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AllianceChallengeDailyRewards_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rank = [], n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rank && e.Rank.length) {
                    n.Rank = [];
                    for (var r = 0; r < e.Rank.length; ++r) "number" == typeof e.Rank[r] ? n.Rank[r] = t.longs === String ? String(e.Rank[r]) : e.Rank[r] : n.Rank[r] = t.longs === String ? i.Long.prototype.toString.call(e.Rank[r]) : t.longs === Number ? new i.LongBits(e.Rank[r].low >>> 0, e.Rank[r].high >>> 0).toNumber() : e.Rank[r]
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceChallengeDailyRewards_Config"
            }, e
        }(), a.AllianceChallengeSeasonRewards_Config = function() {
            function e(e) {
                if (this.Rank = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rank = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rank && e.Rank.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Rank.length; ++n) t.int64(e.Rank[n]);
                    t.ldelim()
                }
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceChallengeSeasonRewards_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Rank && r.Rank.length || (r.Rank = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Rank.push(e.int64());
                            else r.Rank.push(e.int64());
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rank && e.hasOwnProperty("Rank")) {
                    if (!Array.isArray(e.Rank)) return "Rank: array expected";
                    for (var t = 0; t < e.Rank.length; ++t)
                        if (!(i.isInteger(e.Rank[t]) || e.Rank[t] && i.isInteger(e.Rank[t].low) && i.isInteger(e.Rank[t].high))) return "Rank: integer|Long[] expected"
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceChallengeSeasonRewards_Config) return e;
                var t = new a.AllianceChallengeSeasonRewards_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rank) {
                    if (!Array.isArray(e.Rank)) throw TypeError(".AllianceChallengeSeasonRewards_Config.Rank: array expected");
                    t.Rank = [];
                    for (var n = 0; n < e.Rank.length; ++n) i.Long ? (t.Rank[n] = i.Long.fromValue(e.Rank[n])).unsigned = !1 : "string" == typeof e.Rank[n] ? t.Rank[n] = parseInt(e.Rank[n], 10) : "number" == typeof e.Rank[n] ? t.Rank[n] = e.Rank[n] : "object" == typeof e.Rank[n] && (t.Rank[n] = new i.LongBits(e.Rank[n].low >>> 0, e.Rank[n].high >>> 0).toNumber())
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AllianceChallengeSeasonRewards_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AllianceChallengeSeasonRewards_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rank = [], n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rank && e.Rank.length) {
                    n.Rank = [];
                    for (var r = 0; r < e.Rank.length; ++r) "number" == typeof e.Rank[r] ? n.Rank[r] = t.longs === String ? String(e.Rank[r]) : e.Rank[r] : n.Rank[r] = t.longs === String ? i.Long.prototype.toString.call(e.Rank[r]) : t.longs === Number ? new i.LongBits(e.Rank[r].low >>> 0, e.Rank[r].high >>> 0).toNumber() : e.Rank[r]
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceChallengeSeasonRewards_Config"
            }, e
        }(), a.CardChaosSummon_Config = function() {
            function e(e) {
                if (this.HeroTry = [], this.RateIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StartTime = "", e.prototype.RateId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EndTime = "", e.prototype.HeroTry = i.emptyArray, e.prototype.RateIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(16).int64(e.HeroId), null != e.StartTime && Object.hasOwnProperty.call(e, "StartTime") && t.uint32(26).string(e.StartTime), null != e.RateId && Object.hasOwnProperty.call(e, "RateId") && t.uint32(32).int64(e.RateId), null != e.EndTime && Object.hasOwnProperty.call(e, "EndTime") && t.uint32(42).string(e.EndTime), null != e.HeroTry && e.HeroTry.length)
                    for (var n = 0; n < e.HeroTry.length; ++n) a.IntArray_Config.encode(e.HeroTry[n], t.uint32(50).fork()).ldelim();
                if (null != e.RateIds && e.RateIds.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.RateIds.length; ++n) t.int64(e.RateIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CardChaosSummon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HeroId = e.int64();
                            break;
                        case 3:
                            r.StartTime = e.string();
                            break;
                        case 4:
                            r.RateId = e.int64();
                            break;
                        case 5:
                            r.EndTime = e.string();
                            break;
                        case 6:
                            r.HeroTry && r.HeroTry.length || (r.HeroTry = []), r.HeroTry.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            if (r.RateIds && r.RateIds.length || (r.RateIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.RateIds.push(e.int64());
                            else r.RateIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high))) return "HeroId: integer|Long expected";
                if (null != e.StartTime && e.hasOwnProperty("StartTime") && !i.isString(e.StartTime)) return "StartTime: string expected";
                if (null != e.RateId && e.hasOwnProperty("RateId") && !(i.isInteger(e.RateId) || e.RateId && i.isInteger(e.RateId.low) && i.isInteger(e.RateId.high))) return "RateId: integer|Long expected";
                if (null != e.EndTime && e.hasOwnProperty("EndTime") && !i.isString(e.EndTime)) return "EndTime: string expected";
                if (null != e.HeroTry && e.hasOwnProperty("HeroTry")) {
                    if (!Array.isArray(e.HeroTry)) return "HeroTry: array expected";
                    for (var t = 0; t < e.HeroTry.length; ++t) {
                        var n = a.IntArray_Config.verify(e.HeroTry[t]);
                        if (n) return "HeroTry." + n
                    }
                }
                if (null != e.RateIds && e.hasOwnProperty("RateIds")) {
                    if (!Array.isArray(e.RateIds)) return "RateIds: array expected";
                    for (t = 0; t < e.RateIds.length; ++t)
                        if (!(i.isInteger(e.RateIds[t]) || e.RateIds[t] && i.isInteger(e.RateIds[t].low) && i.isInteger(e.RateIds[t].high))) return "RateIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CardChaosSummon_Config) return e;
                var t = new a.CardChaosSummon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), null != e.StartTime && (t.StartTime = String(e.StartTime)), null != e.RateId && (i.Long ? (t.RateId = i.Long.fromValue(e.RateId)).unsigned = !1 : "string" == typeof e.RateId ? t.RateId = parseInt(e.RateId, 10) : "number" == typeof e.RateId ? t.RateId = e.RateId : "object" == typeof e.RateId && (t.RateId = new i.LongBits(e.RateId.low >>> 0, e.RateId.high >>> 0).toNumber())), null != e.EndTime && (t.EndTime = String(e.EndTime)), e.HeroTry) {
                    if (!Array.isArray(e.HeroTry)) throw TypeError(".CardChaosSummon_Config.HeroTry: array expected");
                    t.HeroTry = [];
                    for (var n = 0; n < e.HeroTry.length; ++n) {
                        if ("object" != typeof e.HeroTry[n]) throw TypeError(".CardChaosSummon_Config.HeroTry: object expected");
                        t.HeroTry[n] = a.IntArray_Config.fromObject(e.HeroTry[n])
                    }
                }
                if (e.RateIds) {
                    if (!Array.isArray(e.RateIds)) throw TypeError(".CardChaosSummon_Config.RateIds: array expected");
                    for (t.RateIds = [], n = 0; n < e.RateIds.length; ++n) i.Long ? (t.RateIds[n] = i.Long.fromValue(e.RateIds[n])).unsigned = !1 : "string" == typeof e.RateIds[n] ? t.RateIds[n] = parseInt(e.RateIds[n], 10) : "number" == typeof e.RateIds[n] ? t.RateIds[n] = e.RateIds[n] : "object" == typeof e.RateIds[n] && (t.RateIds[n] = new i.LongBits(e.RateIds[n].low >>> 0, e.RateIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.HeroTry = [], n.RateIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0, n.StartTime = "", i.Long ? (o = new i.Long(0, 0, !1), n.RateId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RateId = t.longs === String ? "0" : 0, n.EndTime = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), null != e.StartTime && e.hasOwnProperty("StartTime") && (n.StartTime = e.StartTime), null != e.RateId && e.hasOwnProperty("RateId") && ("number" == typeof e.RateId ? n.RateId = t.longs === String ? String(e.RateId) : e.RateId : n.RateId = t.longs === String ? i.Long.prototype.toString.call(e.RateId) : t.longs === Number ? new i.LongBits(e.RateId.low >>> 0, e.RateId.high >>> 0).toNumber() : e.RateId), null != e.EndTime && e.hasOwnProperty("EndTime") && (n.EndTime = e.EndTime), e.HeroTry && e.HeroTry.length) {
                    n.HeroTry = [];
                    for (var r = 0; r < e.HeroTry.length; ++r) n.HeroTry[r] = a.IntArray_Config.toObject(e.HeroTry[r], t)
                }
                if (e.RateIds && e.RateIds.length)
                    for (n.RateIds = [], r = 0; r < e.RateIds.length; ++r) "number" == typeof e.RateIds[r] ? n.RateIds[r] = t.longs === String ? String(e.RateIds[r]) : e.RateIds[r] : n.RateIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.RateIds[r]) : t.longs === Number ? new i.LongBits(e.RateIds[r].low >>> 0, e.RateIds[r].high >>> 0).toNumber() : e.RateIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CardChaosSummon_Config"
            }, e
        }(), a.Embattle_Config = function() {
            function e(e) {
                if (this.LevelAttrs = [], this.Skills = [], this.Unlock = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelAttrs = i.emptyArray, e.prototype.Skills = i.emptyArray, e.prototype.MaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Unlock = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.LevelAttrs && e.LevelAttrs.length)
                    for (var n = 0; n < e.LevelAttrs.length; ++n) a.IntArray_Config.encode(e.LevelAttrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.Skills && e.Skills.length)
                    for (n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(42).fork()).ldelim();
                if (null != e.MaxLevel && Object.hasOwnProperty.call(e, "MaxLevel") && t.uint32(48).int64(e.MaxLevel), null != e.Unlock && e.Unlock.length)
                    for (n = 0; n < e.Unlock.length; ++n) a.IntArray_Config.encode(e.Unlock[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Embattle_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.LevelAttrs && r.LevelAttrs.length || (r.LevelAttrs = []), r.LevelAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.MaxLevel = e.int64();
                            break;
                        case 7:
                            r.Unlock && r.Unlock.length || (r.Unlock = []), r.Unlock.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.LevelAttrs && e.hasOwnProperty("LevelAttrs")) {
                    if (!Array.isArray(e.LevelAttrs)) return "LevelAttrs: array expected";
                    for (var t = 0; t < e.LevelAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelAttrs[t])) return "LevelAttrs." + n
                }
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (t = 0; t < e.Skills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                }
                if (null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && !(i.isInteger(e.MaxLevel) || e.MaxLevel && i.isInteger(e.MaxLevel.low) && i.isInteger(e.MaxLevel.high))) return "MaxLevel: integer|Long expected";
                if (null != e.Unlock && e.hasOwnProperty("Unlock")) {
                    if (!Array.isArray(e.Unlock)) return "Unlock: array expected";
                    for (t = 0; t < e.Unlock.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Unlock[t])) return "Unlock." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Embattle_Config) return e;
                var t = new a.Embattle_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.LevelAttrs) {
                    if (!Array.isArray(e.LevelAttrs)) throw TypeError(".Embattle_Config.LevelAttrs: array expected");
                    t.LevelAttrs = [];
                    for (var n = 0; n < e.LevelAttrs.length; ++n) {
                        if ("object" != typeof e.LevelAttrs[n]) throw TypeError(".Embattle_Config.LevelAttrs: object expected");
                        t.LevelAttrs[n] = a.IntArray_Config.fromObject(e.LevelAttrs[n])
                    }
                }
                if (e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".Embattle_Config.Skills: array expected");
                    for (t.Skills = [], n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".Embattle_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (null != e.MaxLevel && (i.Long ? (t.MaxLevel = i.Long.fromValue(e.MaxLevel)).unsigned = !1 : "string" == typeof e.MaxLevel ? t.MaxLevel = parseInt(e.MaxLevel, 10) : "number" == typeof e.MaxLevel ? t.MaxLevel = e.MaxLevel : "object" == typeof e.MaxLevel && (t.MaxLevel = new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber())), e.Unlock) {
                    if (!Array.isArray(e.Unlock)) throw TypeError(".Embattle_Config.Unlock: array expected");
                    for (t.Unlock = [], n = 0; n < e.Unlock.length; ++n) {
                        if ("object" != typeof e.Unlock[n]) throw TypeError(".Embattle_Config.Unlock: object expected");
                        t.Unlock[n] = a.IntArray_Config.fromObject(e.Unlock[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.LevelAttrs = [], n.Skills = [], n.Unlock = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.LevelAttrs && e.LevelAttrs.length) {
                    n.LevelAttrs = [];
                    for (var r = 0; r < e.LevelAttrs.length; ++r) n.LevelAttrs[r] = a.IntArray_Config.toObject(e.LevelAttrs[r], t)
                }
                if (e.Skills && e.Skills.length)
                    for (n.Skills = [], r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t);
                if (null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && ("number" == typeof e.MaxLevel ? n.MaxLevel = t.longs === String ? String(e.MaxLevel) : e.MaxLevel : n.MaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxLevel) : t.longs === Number ? new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber() : e.MaxLevel), e.Unlock && e.Unlock.length)
                    for (n.Unlock = [], r = 0; r < e.Unlock.length; ++r) n.Unlock[r] = a.IntArray_Config.toObject(e.Unlock[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Embattle_Config"
            }, e
        }(), a.EmbattleLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(24).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.EmbattleLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.EmbattleLevel_Config) return e;
                var t = new a.EmbattleLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".EmbattleLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".EmbattleLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/EmbattleLevel_Config"
            }, e
        }(), a.EmbattleSkillLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(26).fork()).ldelim();
                return null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(32).int64(e.Level), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(40).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.EmbattleSkillLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Level = e.int64();
                            break;
                        case 5:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high)) ? "Level: integer|Long expected" : null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.EmbattleSkillLevel_Config) return e;
                var t = new a.EmbattleSkillLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".EmbattleSkillLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".EmbattleSkillLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/EmbattleSkillLevel_Config"
            }, e
        }(), a.ChampionScoreRace_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.InitScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.WinSocre = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.InitScore && Object.hasOwnProperty.call(e, "InitScore") && t.uint32(16).int64(e.InitScore), null != e.WinSocre && Object.hasOwnProperty.call(e, "WinSocre") && t.uint32(24).int64(e.WinSocre), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ChampionScoreRace_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.InitScore = e.int64();
                            break;
                        case 3:
                            r.WinSocre = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.InitScore && e.hasOwnProperty("InitScore") && !(i.isInteger(e.InitScore) || e.InitScore && i.isInteger(e.InitScore.low) && i.isInteger(e.InitScore.high)) ? "InitScore: integer|Long expected" : null != e.WinSocre && e.hasOwnProperty("WinSocre") && !(i.isInteger(e.WinSocre) || e.WinSocre && i.isInteger(e.WinSocre.low) && i.isInteger(e.WinSocre.high)) ? "WinSocre: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ChampionScoreRace_Config) return e;
                var t = new a.ChampionScoreRace_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.InitScore && (i.Long ? (t.InitScore = i.Long.fromValue(e.InitScore)).unsigned = !1 : "string" == typeof e.InitScore ? t.InitScore = parseInt(e.InitScore, 10) : "number" == typeof e.InitScore ? t.InitScore = e.InitScore : "object" == typeof e.InitScore && (t.InitScore = new i.LongBits(e.InitScore.low >>> 0, e.InitScore.high >>> 0).toNumber())), null != e.WinSocre && (i.Long ? (t.WinSocre = i.Long.fromValue(e.WinSocre)).unsigned = !1 : "string" == typeof e.WinSocre ? t.WinSocre = parseInt(e.WinSocre, 10) : "number" == typeof e.WinSocre ? t.WinSocre = e.WinSocre : "object" == typeof e.WinSocre && (t.WinSocre = new i.LongBits(e.WinSocre.low >>> 0, e.WinSocre.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.InitScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.InitScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.WinSocre = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.WinSocre = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.InitScore && e.hasOwnProperty("InitScore") && ("number" == typeof e.InitScore ? n.InitScore = t.longs === String ? String(e.InitScore) : e.InitScore : n.InitScore = t.longs === String ? i.Long.prototype.toString.call(e.InitScore) : t.longs === Number ? new i.LongBits(e.InitScore.low >>> 0, e.InitScore.high >>> 0).toNumber() : e.InitScore), null != e.WinSocre && e.hasOwnProperty("WinSocre") && ("number" == typeof e.WinSocre ? n.WinSocre = t.longs === String ? String(e.WinSocre) : e.WinSocre : n.WinSocre = t.longs === String ? i.Long.prototype.toString.call(e.WinSocre) : t.longs === Number ? new i.LongBits(e.WinSocre.low >>> 0, e.WinSocre.high >>> 0).toNumber() : e.WinSocre), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ChampionScoreRace_Config"
            }, e
        }(), a.ChampionFinalRace_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.P1 = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.P2 = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.P1 && Object.hasOwnProperty.call(e, "P1") && t.uint32(16).int64(e.P1), null != e.P2 && Object.hasOwnProperty.call(e, "P2") && t.uint32(24).int64(e.P2), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ChampionFinalRace_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.P1 = e.int64();
                            break;
                        case 3:
                            r.P2 = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.P1 && e.hasOwnProperty("P1") && !(i.isInteger(e.P1) || e.P1 && i.isInteger(e.P1.low) && i.isInteger(e.P1.high)) ? "P1: integer|Long expected" : null != e.P2 && e.hasOwnProperty("P2") && !(i.isInteger(e.P2) || e.P2 && i.isInteger(e.P2.low) && i.isInteger(e.P2.high)) ? "P2: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ChampionFinalRace_Config) return e;
                var t = new a.ChampionFinalRace_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.P1 && (i.Long ? (t.P1 = i.Long.fromValue(e.P1)).unsigned = !1 : "string" == typeof e.P1 ? t.P1 = parseInt(e.P1, 10) : "number" == typeof e.P1 ? t.P1 = e.P1 : "object" == typeof e.P1 && (t.P1 = new i.LongBits(e.P1.low >>> 0, e.P1.high >>> 0).toNumber())), null != e.P2 && (i.Long ? (t.P2 = i.Long.fromValue(e.P2)).unsigned = !1 : "string" == typeof e.P2 ? t.P2 = parseInt(e.P2, 10) : "number" == typeof e.P2 ? t.P2 = e.P2 : "object" == typeof e.P2 && (t.P2 = new i.LongBits(e.P2.low >>> 0, e.P2.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.P1 = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.P1 = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.P2 = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.P2 = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.P1 && e.hasOwnProperty("P1") && ("number" == typeof e.P1 ? n.P1 = t.longs === String ? String(e.P1) : e.P1 : n.P1 = t.longs === String ? i.Long.prototype.toString.call(e.P1) : t.longs === Number ? new i.LongBits(e.P1.low >>> 0, e.P1.high >>> 0).toNumber() : e.P1), null != e.P2 && e.hasOwnProperty("P2") && ("number" == typeof e.P2 ? n.P2 = t.longs === String ? String(e.P2) : e.P2 : n.P2 = t.longs === String ? i.Long.prototype.toString.call(e.P2) : t.longs === Number ? new i.LongBits(e.P2.low >>> 0, e.P2.high >>> 0).toNumber() : e.P2), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ChampionFinalRace_Config"
            }, e
        }(), a.AnswerCompetitionQuestion_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Answer = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Answer && Object.hasOwnProperty.call(e, "Answer") && t.uint32(24).int64(e.Answer), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AnswerCompetitionQuestion_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Answer = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Answer && e.hasOwnProperty("Answer") && !(i.isInteger(e.Answer) || e.Answer && i.isInteger(e.Answer.low) && i.isInteger(e.Answer.high)) ? "Answer: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AnswerCompetitionQuestion_Config) return e;
                var t = new a.AnswerCompetitionQuestion_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Answer && (i.Long ? (t.Answer = i.Long.fromValue(e.Answer)).unsigned = !1 : "string" == typeof e.Answer ? t.Answer = parseInt(e.Answer, 10) : "number" == typeof e.Answer ? t.Answer = e.Answer : "object" == typeof e.Answer && (t.Answer = new i.LongBits(e.Answer.low >>> 0, e.Answer.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Answer = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Answer = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Answer && e.hasOwnProperty("Answer") && ("number" == typeof e.Answer ? n.Answer = t.longs === String ? String(e.Answer) : e.Answer : n.Answer = t.longs === String ? i.Long.prototype.toString.call(e.Answer) : t.longs === Number ? new i.LongBits(e.Answer.low >>> 0, e.Answer.high >>> 0).toNumber() : e.Answer), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AnswerCompetitionQuestion_Config"
            }, e
        }(), a.ItemMainSceneBackground_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BackgroundPicture = "", e.prototype.Animation = "", e.prototype.Attrs = i.emptyArray, e.prototype.Order = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Start = "", e.prototype.Duration = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AudioId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.BackgroundPicture && Object.hasOwnProperty.call(e, "BackgroundPicture") && t.uint32(26).string(e.BackgroundPicture), null != e.Animation && Object.hasOwnProperty.call(e, "Animation") && t.uint32(34).string(e.Animation), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(42).fork()).ldelim();
                return null != e.Order && Object.hasOwnProperty.call(e, "Order") && t.uint32(48).int64(e.Order), null != e.Start && Object.hasOwnProperty.call(e, "Start") && t.uint32(58).string(e.Start), null != e.Duration && Object.hasOwnProperty.call(e, "Duration") && t.uint32(64).int64(e.Duration), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(72).int64(e.ItemId), null != e.AudioId && Object.hasOwnProperty.call(e, "AudioId") && t.uint32(80).int64(e.AudioId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemMainSceneBackground_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.BackgroundPicture = e.string();
                            break;
                        case 4:
                            r.Animation = e.string();
                            break;
                        case 5:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Order = e.int64();
                            break;
                        case 7:
                            r.Start = e.string();
                            break;
                        case 8:
                            r.Duration = e.int64();
                            break;
                        case 9:
                            r.ItemId = e.int64();
                            break;
                        case 10:
                            r.AudioId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.BackgroundPicture && e.hasOwnProperty("BackgroundPicture") && !i.isString(e.BackgroundPicture)) return "BackgroundPicture: string expected";
                if (null != e.Animation && e.hasOwnProperty("Animation") && !i.isString(e.Animation)) return "Animation: string expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.Order && e.hasOwnProperty("Order") && !(i.isInteger(e.Order) || e.Order && i.isInteger(e.Order.low) && i.isInteger(e.Order.high)) ? "Order: integer|Long expected" : null != e.Start && e.hasOwnProperty("Start") && !i.isString(e.Start) ? "Start: string expected" : null != e.Duration && e.hasOwnProperty("Duration") && !(i.isInteger(e.Duration) || e.Duration && i.isInteger(e.Duration.low) && i.isInteger(e.Duration.high)) ? "Duration: integer|Long expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null != e.AudioId && e.hasOwnProperty("AudioId") && !(i.isInteger(e.AudioId) || e.AudioId && i.isInteger(e.AudioId.low) && i.isInteger(e.AudioId.high)) ? "AudioId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemMainSceneBackground_Config) return e;
                var t = new a.ItemMainSceneBackground_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.BackgroundPicture && (t.BackgroundPicture = String(e.BackgroundPicture)), null != e.Animation && (t.Animation = String(e.Animation)), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ItemMainSceneBackground_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ItemMainSceneBackground_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.Order && (i.Long ? (t.Order = i.Long.fromValue(e.Order)).unsigned = !1 : "string" == typeof e.Order ? t.Order = parseInt(e.Order, 10) : "number" == typeof e.Order ? t.Order = e.Order : "object" == typeof e.Order && (t.Order = new i.LongBits(e.Order.low >>> 0, e.Order.high >>> 0).toNumber())), null != e.Start && (t.Start = String(e.Start)), null != e.Duration && (i.Long ? (t.Duration = i.Long.fromValue(e.Duration)).unsigned = !1 : "string" == typeof e.Duration ? t.Duration = parseInt(e.Duration, 10) : "number" == typeof e.Duration ? t.Duration = e.Duration : "object" == typeof e.Duration && (t.Duration = new i.LongBits(e.Duration.low >>> 0, e.Duration.high >>> 0).toNumber())), null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), null != e.AudioId && (i.Long ? (t.AudioId = i.Long.fromValue(e.AudioId)).unsigned = !1 : "string" == typeof e.AudioId ? t.AudioId = parseInt(e.AudioId, 10) : "number" == typeof e.AudioId ? t.AudioId = e.AudioId : "object" == typeof e.AudioId && (t.AudioId = new i.LongBits(e.AudioId.low >>> 0, e.AudioId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.BackgroundPicture = "", n.Animation = "", i.Long ? (o = new i.Long(0, 0, !1), n.Order = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Order = t.longs === String ? "0" : 0, n.Start = "", i.Long ? (o = new i.Long(0, 0, !1), n.Duration = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Duration = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AudioId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AudioId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.BackgroundPicture && e.hasOwnProperty("BackgroundPicture") && (n.BackgroundPicture = e.BackgroundPicture), null != e.Animation && e.hasOwnProperty("Animation") && (n.Animation = e.Animation), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.Order && e.hasOwnProperty("Order") && ("number" == typeof e.Order ? n.Order = t.longs === String ? String(e.Order) : e.Order : n.Order = t.longs === String ? i.Long.prototype.toString.call(e.Order) : t.longs === Number ? new i.LongBits(e.Order.low >>> 0, e.Order.high >>> 0).toNumber() : e.Order), null != e.Start && e.hasOwnProperty("Start") && (n.Start = e.Start), null != e.Duration && e.hasOwnProperty("Duration") && ("number" == typeof e.Duration ? n.Duration = t.longs === String ? String(e.Duration) : e.Duration : n.Duration = t.longs === String ? i.Long.prototype.toString.call(e.Duration) : t.longs === Number ? new i.LongBits(e.Duration.low >>> 0, e.Duration.high >>> 0).toNumber() : e.Duration), null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), null != e.AudioId && e.hasOwnProperty("AudioId") && ("number" == typeof e.AudioId ? n.AudioId = t.longs === String ? String(e.AudioId) : e.AudioId : n.AudioId = t.longs === String ? i.Long.prototype.toString.call(e.AudioId) : t.longs === Number ? new i.LongBits(e.AudioId.low >>> 0, e.AudioId.high >>> 0).toNumber() : e.AudioId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemMainSceneBackground_Config"
            }, e
        }(), a.PowerCore_Config = function() {
            function e(e) {
                if (this.Skills = [], this.Materials = [], this.CoreForm = [], this.DecomposeItems = [], this.ShowAttr = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.prototype.Next = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CoreForm = i.emptyArray, e.prototype.DecomposeItems = i.emptyArray, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowAttr = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Skills && e.Skills.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Skills.length; ++n) t.int64(e.Skills[n]);
                    t.ldelim()
                }
                if (null != e.Next && Object.hasOwnProperty.call(e, "Next") && t.uint32(32).int64(e.Next), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(40).int64(e.Star), null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(50).fork()).ldelim();
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(56).int64(e.Score), null != e.CoreForm && e.CoreForm.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.CoreForm.length; ++n) t.int64(e.CoreForm[n]);
                    t.ldelim()
                }
                if (null != e.DecomposeItems && e.DecomposeItems.length)
                    for (n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(74).fork()).ldelim();
                if (null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(80).int64(e.Type), null != e.ShowAttr && e.ShowAttr.length)
                    for (n = 0; n < e.ShowAttr.length; ++n) a.IntArray_Config.encode(e.ShowAttr[n], t.uint32(90).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PowerCore_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.Skills && r.Skills.length || (r.Skills = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Skills.push(e.int64());
                            else r.Skills.push(e.int64());
                            break;
                        case 4:
                            r.Next = e.int64();
                            break;
                        case 5:
                            r.Star = e.int64();
                            break;
                        case 6:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Score = e.int64();
                            break;
                        case 8:
                            if (r.CoreForm && r.CoreForm.length || (r.CoreForm = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.CoreForm.push(e.int64());
                            else r.CoreForm.push(e.int64());
                            break;
                        case 9:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.Type = e.int64();
                            break;
                        case 11:
                            r.ShowAttr && r.ShowAttr.length || (r.ShowAttr = []), r.ShowAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (var t = 0; t < e.Skills.length; ++t)
                        if (!(i.isInteger(e.Skills[t]) || e.Skills[t] && i.isInteger(e.Skills[t].low) && i.isInteger(e.Skills[t].high))) return "Skills: integer|Long[] expected"
                }
                if (null != e.Next && e.hasOwnProperty("Next") && !(i.isInteger(e.Next) || e.Next && i.isInteger(e.Next.low) && i.isInteger(e.Next.high))) return "Next: integer|Long expected";
                if (null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high))) return "Star: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.CoreForm && e.hasOwnProperty("CoreForm")) {
                    if (!Array.isArray(e.CoreForm)) return "CoreForm: array expected";
                    for (t = 0; t < e.CoreForm.length; ++t)
                        if (!(i.isInteger(e.CoreForm[t]) || e.CoreForm[t] && i.isInteger(e.CoreForm[t].low) && i.isInteger(e.CoreForm[t].high))) return "CoreForm: integer|Long[] expected"
                }
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (t = 0; t < e.DecomposeItems.length; ++t)
                        if (n = a.IntArray_Config.verify(e.DecomposeItems[t])) return "DecomposeItems." + n
                }
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.ShowAttr && e.hasOwnProperty("ShowAttr")) {
                    if (!Array.isArray(e.ShowAttr)) return "ShowAttr: array expected";
                    for (t = 0; t < e.ShowAttr.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ShowAttr[t])) return "ShowAttr." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PowerCore_Config) return e;
                var t = new a.PowerCore_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".PowerCore_Config.Skills: array expected");
                    t.Skills = [];
                    for (var n = 0; n < e.Skills.length; ++n) i.Long ? (t.Skills[n] = i.Long.fromValue(e.Skills[n])).unsigned = !1 : "string" == typeof e.Skills[n] ? t.Skills[n] = parseInt(e.Skills[n], 10) : "number" == typeof e.Skills[n] ? t.Skills[n] = e.Skills[n] : "object" == typeof e.Skills[n] && (t.Skills[n] = new i.LongBits(e.Skills[n].low >>> 0, e.Skills[n].high >>> 0).toNumber())
                }
                if (null != e.Next && (i.Long ? (t.Next = i.Long.fromValue(e.Next)).unsigned = !1 : "string" == typeof e.Next ? t.Next = parseInt(e.Next, 10) : "number" == typeof e.Next ? t.Next = e.Next : "object" == typeof e.Next && (t.Next = new i.LongBits(e.Next.low >>> 0, e.Next.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".PowerCore_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".PowerCore_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.CoreForm) {
                    if (!Array.isArray(e.CoreForm)) throw TypeError(".PowerCore_Config.CoreForm: array expected");
                    for (t.CoreForm = [], n = 0; n < e.CoreForm.length; ++n) i.Long ? (t.CoreForm[n] = i.Long.fromValue(e.CoreForm[n])).unsigned = !1 : "string" == typeof e.CoreForm[n] ? t.CoreForm[n] = parseInt(e.CoreForm[n], 10) : "number" == typeof e.CoreForm[n] ? t.CoreForm[n] = e.CoreForm[n] : "object" == typeof e.CoreForm[n] && (t.CoreForm[n] = new i.LongBits(e.CoreForm[n].low >>> 0, e.CoreForm[n].high >>> 0).toNumber())
                }
                if (e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".PowerCore_Config.DecomposeItems: array expected");
                    for (t.DecomposeItems = [], n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".PowerCore_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                if (null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.ShowAttr) {
                    if (!Array.isArray(e.ShowAttr)) throw TypeError(".PowerCore_Config.ShowAttr: array expected");
                    for (t.ShowAttr = [], n = 0; n < e.ShowAttr.length; ++n) {
                        if ("object" != typeof e.ShowAttr[n]) throw TypeError(".PowerCore_Config.ShowAttr: object expected");
                        t.ShowAttr[n] = a.IntArray_Config.fromObject(e.ShowAttr[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Skills = [], n.Materials = [], n.CoreForm = [], n.DecomposeItems = [], n.ShowAttr = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Next = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Next = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Skills && e.Skills.length) {
                    n.Skills = [];
                    for (var r = 0; r < e.Skills.length; ++r) "number" == typeof e.Skills[r] ? n.Skills[r] = t.longs === String ? String(e.Skills[r]) : e.Skills[r] : n.Skills[r] = t.longs === String ? i.Long.prototype.toString.call(e.Skills[r]) : t.longs === Number ? new i.LongBits(e.Skills[r].low >>> 0, e.Skills[r].high >>> 0).toNumber() : e.Skills[r]
                }
                if (null != e.Next && e.hasOwnProperty("Next") && ("number" == typeof e.Next ? n.Next = t.longs === String ? String(e.Next) : e.Next : n.Next = t.longs === String ? i.Long.prototype.toString.call(e.Next) : t.longs === Number ? new i.LongBits(e.Next.low >>> 0, e.Next.high >>> 0).toNumber() : e.Next), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.CoreForm && e.CoreForm.length)
                    for (n.CoreForm = [], r = 0; r < e.CoreForm.length; ++r) "number" == typeof e.CoreForm[r] ? n.CoreForm[r] = t.longs === String ? String(e.CoreForm[r]) : e.CoreForm[r] : n.CoreForm[r] = t.longs === String ? i.Long.prototype.toString.call(e.CoreForm[r]) : t.longs === Number ? new i.LongBits(e.CoreForm[r].low >>> 0, e.CoreForm[r].high >>> 0).toNumber() : e.CoreForm[r];
                if (e.DecomposeItems && e.DecomposeItems.length)
                    for (n.DecomposeItems = [], r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t);
                if (null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.ShowAttr && e.ShowAttr.length)
                    for (n.ShowAttr = [], r = 0; r < e.ShowAttr.length; ++r) n.ShowAttr[r] = a.IntArray_Config.toObject(e.ShowAttr[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PowerCore_Config"
            }, e
        }(), a.PowerCoreQuality_Config = function() {
            function e(e) {
                if (this.LevelAttrs = [], this.StarAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelAttrs = i.emptyArray, e.prototype.StarAttrs = i.emptyArray, e.prototype.MaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.LevelAttrs && e.LevelAttrs.length)
                    for (var n = 0; n < e.LevelAttrs.length; ++n) a.IntArray_Config.encode(e.LevelAttrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.StarAttrs && e.StarAttrs.length)
                    for (n = 0; n < e.StarAttrs.length; ++n) a.IntArray_Config.encode(e.StarAttrs[n], t.uint32(26).fork()).ldelim();
                return null != e.MaxLevel && Object.hasOwnProperty.call(e, "MaxLevel") && t.uint32(32).int64(e.MaxLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PowerCoreQuality_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.LevelAttrs && r.LevelAttrs.length || (r.LevelAttrs = []), r.LevelAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.StarAttrs && r.StarAttrs.length || (r.StarAttrs = []), r.StarAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.MaxLevel = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.LevelAttrs && e.hasOwnProperty("LevelAttrs")) {
                    if (!Array.isArray(e.LevelAttrs)) return "LevelAttrs: array expected";
                    for (var t = 0; t < e.LevelAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelAttrs[t])) return "LevelAttrs." + n
                }
                if (null != e.StarAttrs && e.hasOwnProperty("StarAttrs")) {
                    if (!Array.isArray(e.StarAttrs)) return "StarAttrs: array expected";
                    for (t = 0; t < e.StarAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.StarAttrs[t])) return "StarAttrs." + n
                    }
                }
                return null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && !(i.isInteger(e.MaxLevel) || e.MaxLevel && i.isInteger(e.MaxLevel.low) && i.isInteger(e.MaxLevel.high)) ? "MaxLevel: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PowerCoreQuality_Config) return e;
                var t = new a.PowerCoreQuality_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.LevelAttrs) {
                    if (!Array.isArray(e.LevelAttrs)) throw TypeError(".PowerCoreQuality_Config.LevelAttrs: array expected");
                    t.LevelAttrs = [];
                    for (var n = 0; n < e.LevelAttrs.length; ++n) {
                        if ("object" != typeof e.LevelAttrs[n]) throw TypeError(".PowerCoreQuality_Config.LevelAttrs: object expected");
                        t.LevelAttrs[n] = a.IntArray_Config.fromObject(e.LevelAttrs[n])
                    }
                }
                if (e.StarAttrs) {
                    if (!Array.isArray(e.StarAttrs)) throw TypeError(".PowerCoreQuality_Config.StarAttrs: array expected");
                    for (t.StarAttrs = [], n = 0; n < e.StarAttrs.length; ++n) {
                        if ("object" != typeof e.StarAttrs[n]) throw TypeError(".PowerCoreQuality_Config.StarAttrs: object expected");
                        t.StarAttrs[n] = a.IntArray_Config.fromObject(e.StarAttrs[n])
                    }
                }
                return null != e.MaxLevel && (i.Long ? (t.MaxLevel = i.Long.fromValue(e.MaxLevel)).unsigned = !1 : "string" == typeof e.MaxLevel ? t.MaxLevel = parseInt(e.MaxLevel, 10) : "number" == typeof e.MaxLevel ? t.MaxLevel = e.MaxLevel : "object" == typeof e.MaxLevel && (t.MaxLevel = new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.LevelAttrs = [], n.StarAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.LevelAttrs && e.LevelAttrs.length) {
                    n.LevelAttrs = [];
                    for (var r = 0; r < e.LevelAttrs.length; ++r) n.LevelAttrs[r] = a.IntArray_Config.toObject(e.LevelAttrs[r], t)
                }
                if (e.StarAttrs && e.StarAttrs.length)
                    for (n.StarAttrs = [], r = 0; r < e.StarAttrs.length; ++r) n.StarAttrs[r] = a.IntArray_Config.toObject(e.StarAttrs[r], t);
                return null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && ("number" == typeof e.MaxLevel ? n.MaxLevel = t.longs === String ? String(e.MaxLevel) : e.MaxLevel : n.MaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxLevel) : t.longs === Number ? new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber() : e.MaxLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PowerCoreQuality_Config"
            }, e
        }(), a.PowerCoreLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(24).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PowerCoreLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PowerCoreLevel_Config) return e;
                var t = new a.PowerCoreLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".PowerCoreLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".PowerCoreLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PowerCoreLevel_Config"
            }, e
        }(), a.PowerCoreStar_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(24).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PowerCoreStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PowerCoreStar_Config) return e;
                var t = new a.PowerCoreStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".PowerCoreStar_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".PowerCoreStar_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PowerCoreStar_Config"
            }, e
        }(), a.NewbieMainTask_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TaskId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.TaskId && Object.hasOwnProperty.call(e, "TaskId") && t.uint32(16).int64(e.TaskId), null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(32).int64(e.SortId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.NewbieMainTask_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.TaskId = e.int64();
                            break;
                        case 4:
                            r.SortId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.TaskId && e.hasOwnProperty("TaskId") && !(i.isInteger(e.TaskId) || e.TaskId && i.isInteger(e.TaskId.low) && i.isInteger(e.TaskId.high)) ? "TaskId: integer|Long expected" : null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.NewbieMainTask_Config) return e;
                var t = new a.NewbieMainTask_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.TaskId && (i.Long ? (t.TaskId = i.Long.fromValue(e.TaskId)).unsigned = !1 : "string" == typeof e.TaskId ? t.TaskId = parseInt(e.TaskId, 10) : "number" == typeof e.TaskId ? t.TaskId = e.TaskId : "object" == typeof e.TaskId && (t.TaskId = new i.LongBits(e.TaskId.low >>> 0, e.TaskId.high >>> 0).toNumber())), null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.TaskId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TaskId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.TaskId && e.hasOwnProperty("TaskId") && ("number" == typeof e.TaskId ? n.TaskId = t.longs === String ? String(e.TaskId) : e.TaskId : n.TaskId = t.longs === String ? i.Long.prototype.toString.call(e.TaskId) : t.longs === Number ? new i.LongBits(e.TaskId.low >>> 0, e.TaskId.high >>> 0).toNumber() : e.TaskId), null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/NewbieMainTask_Config"
            }, e
        }(), a.CrossZoneContinueWarRankStage_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FormationNum = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MinScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(32).int64(e.Score), null != e.FormationNum && Object.hasOwnProperty.call(e, "FormationNum") && t.uint32(40).int64(e.FormationNum), null != e.MinScoreChange && Object.hasOwnProperty.call(e, "MinScoreChange") && t.uint32(56).int64(e.MinScoreChange), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CrossZoneContinueWarRankStage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Score = e.int64();
                            break;
                        case 5:
                            r.FormationNum = e.int64();
                            break;
                        case 7:
                            r.MinScoreChange = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null != e.FormationNum && e.hasOwnProperty("FormationNum") && !(i.isInteger(e.FormationNum) || e.FormationNum && i.isInteger(e.FormationNum.low) && i.isInteger(e.FormationNum.high)) ? "FormationNum: integer|Long expected" : null != e.MinScoreChange && e.hasOwnProperty("MinScoreChange") && !(i.isInteger(e.MinScoreChange) || e.MinScoreChange && i.isInteger(e.MinScoreChange.low) && i.isInteger(e.MinScoreChange.high)) ? "MinScoreChange: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CrossZoneContinueWarRankStage_Config) return e;
                var t = new a.CrossZoneContinueWarRankStage_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), null != e.FormationNum && (i.Long ? (t.FormationNum = i.Long.fromValue(e.FormationNum)).unsigned = !1 : "string" == typeof e.FormationNum ? t.FormationNum = parseInt(e.FormationNum, 10) : "number" == typeof e.FormationNum ? t.FormationNum = e.FormationNum : "object" == typeof e.FormationNum && (t.FormationNum = new i.LongBits(e.FormationNum.low >>> 0, e.FormationNum.high >>> 0).toNumber())), null != e.MinScoreChange && (i.Long ? (t.MinScoreChange = i.Long.fromValue(e.MinScoreChange)).unsigned = !1 : "string" == typeof e.MinScoreChange ? t.MinScoreChange = parseInt(e.MinScoreChange, 10) : "number" == typeof e.MinScoreChange ? t.MinScoreChange = e.MinScoreChange : "object" == typeof e.MinScoreChange && (t.MinScoreChange = new i.LongBits(e.MinScoreChange.low >>> 0, e.MinScoreChange.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.FormationNum = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.FormationNum = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MinScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MinScoreChange = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), null != e.FormationNum && e.hasOwnProperty("FormationNum") && ("number" == typeof e.FormationNum ? n.FormationNum = t.longs === String ? String(e.FormationNum) : e.FormationNum : n.FormationNum = t.longs === String ? i.Long.prototype.toString.call(e.FormationNum) : t.longs === Number ? new i.LongBits(e.FormationNum.low >>> 0, e.FormationNum.high >>> 0).toNumber() : e.FormationNum), null != e.MinScoreChange && e.hasOwnProperty("MinScoreChange") && ("number" == typeof e.MinScoreChange ? n.MinScoreChange = t.longs === String ? String(e.MinScoreChange) : e.MinScoreChange : n.MinScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.MinScoreChange) : t.longs === Number ? new i.LongBits(e.MinScoreChange.low >>> 0, e.MinScoreChange.high >>> 0).toNumber() : e.MinScoreChange), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CrossZoneContinueWarRankStage_Config"
            }, e
        }(), a.CrossZoneContinueWarRankReward_Config = function() {
            function e(e) {
                if (this.RankRange = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DuanId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RankRange = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.DuanId && Object.hasOwnProperty.call(e, "DuanId") && t.uint32(16).int64(e.DuanId), null != e.RankRange && e.RankRange.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.RankRange.length; ++n) t.int64(e.RankRange[n]);
                    t.ldelim()
                }
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CrossZoneContinueWarRankReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.DuanId = e.int64();
                            break;
                        case 3:
                            if (r.RankRange && r.RankRange.length || (r.RankRange = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.RankRange.push(e.int64());
                            else r.RankRange.push(e.int64());
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.DuanId && e.hasOwnProperty("DuanId") && !(i.isInteger(e.DuanId) || e.DuanId && i.isInteger(e.DuanId.low) && i.isInteger(e.DuanId.high))) return "DuanId: integer|Long expected";
                if (null != e.RankRange && e.hasOwnProperty("RankRange")) {
                    if (!Array.isArray(e.RankRange)) return "RankRange: array expected";
                    for (var t = 0; t < e.RankRange.length; ++t)
                        if (!(i.isInteger(e.RankRange[t]) || e.RankRange[t] && i.isInteger(e.RankRange[t].low) && i.isInteger(e.RankRange[t].high))) return "RankRange: integer|Long[] expected"
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CrossZoneContinueWarRankReward_Config) return e;
                var t = new a.CrossZoneContinueWarRankReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.DuanId && (i.Long ? (t.DuanId = i.Long.fromValue(e.DuanId)).unsigned = !1 : "string" == typeof e.DuanId ? t.DuanId = parseInt(e.DuanId, 10) : "number" == typeof e.DuanId ? t.DuanId = e.DuanId : "object" == typeof e.DuanId && (t.DuanId = new i.LongBits(e.DuanId.low >>> 0, e.DuanId.high >>> 0).toNumber())), e.RankRange) {
                    if (!Array.isArray(e.RankRange)) throw TypeError(".CrossZoneContinueWarRankReward_Config.RankRange: array expected");
                    t.RankRange = [];
                    for (var n = 0; n < e.RankRange.length; ++n) i.Long ? (t.RankRange[n] = i.Long.fromValue(e.RankRange[n])).unsigned = !1 : "string" == typeof e.RankRange[n] ? t.RankRange[n] = parseInt(e.RankRange[n], 10) : "number" == typeof e.RankRange[n] ? t.RankRange[n] = e.RankRange[n] : "object" == typeof e.RankRange[n] && (t.RankRange[n] = new i.LongBits(e.RankRange[n].low >>> 0, e.RankRange[n].high >>> 0).toNumber())
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".CrossZoneContinueWarRankReward_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".CrossZoneContinueWarRankReward_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.RankRange = [], n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.DuanId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DuanId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.DuanId && e.hasOwnProperty("DuanId") && ("number" == typeof e.DuanId ? n.DuanId = t.longs === String ? String(e.DuanId) : e.DuanId : n.DuanId = t.longs === String ? i.Long.prototype.toString.call(e.DuanId) : t.longs === Number ? new i.LongBits(e.DuanId.low >>> 0, e.DuanId.high >>> 0).toNumber() : e.DuanId), e.RankRange && e.RankRange.length) {
                    n.RankRange = [];
                    for (var r = 0; r < e.RankRange.length; ++r) "number" == typeof e.RankRange[r] ? n.RankRange[r] = t.longs === String ? String(e.RankRange[r]) : e.RankRange[r] : n.RankRange[r] = t.longs === String ? i.Long.prototype.toString.call(e.RankRange[r]) : t.longs === Number ? new i.LongBits(e.RankRange[r].low >>> 0, e.RankRange[r].high >>> 0).toNumber() : e.RankRange[r]
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CrossZoneContinueWarRankReward_Config"
            }, e
        }(), a.PlayerNationalFlag_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = "", e.prototype.Continent = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Priority = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(10).string(e.Id), null != e.Continent && Object.hasOwnProperty.call(e, "Continent") && t.uint32(16).int64(e.Continent), null != e.Priority && Object.hasOwnProperty.call(e, "Priority") && t.uint32(32).int64(e.Priority), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PlayerNationalFlag_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.string();
                            break;
                        case 2:
                            r.Continent = e.int64();
                            break;
                        case 4:
                            r.Priority = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !i.isString(e.Id) ? "Id: string expected" : null != e.Continent && e.hasOwnProperty("Continent") && !(i.isInteger(e.Continent) || e.Continent && i.isInteger(e.Continent.low) && i.isInteger(e.Continent.high)) ? "Continent: integer|Long expected" : null != e.Priority && e.hasOwnProperty("Priority") && !(i.isInteger(e.Priority) || e.Priority && i.isInteger(e.Priority.low) && i.isInteger(e.Priority.high)) ? "Priority: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PlayerNationalFlag_Config) return e;
                var t = new a.PlayerNationalFlag_Config;
                return null != e.Id && (t.Id = String(e.Id)), null != e.Continent && (i.Long ? (t.Continent = i.Long.fromValue(e.Continent)).unsigned = !1 : "string" == typeof e.Continent ? t.Continent = parseInt(e.Continent, 10) : "number" == typeof e.Continent ? t.Continent = e.Continent : "object" == typeof e.Continent && (t.Continent = new i.LongBits(e.Continent.low >>> 0, e.Continent.high >>> 0).toNumber())), null != e.Priority && (i.Long ? (t.Priority = i.Long.fromValue(e.Priority)).unsigned = !1 : "string" == typeof e.Priority ? t.Priority = parseInt(e.Priority, 10) : "number" == typeof e.Priority ? t.Priority = e.Priority : "object" == typeof e.Priority && (t.Priority = new i.LongBits(e.Priority.low >>> 0, e.Priority.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (n.Id = "", i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Continent = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Continent = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Priority = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Priority = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && (n.Id = e.Id), null != e.Continent && e.hasOwnProperty("Continent") && ("number" == typeof e.Continent ? n.Continent = t.longs === String ? String(e.Continent) : e.Continent : n.Continent = t.longs === String ? i.Long.prototype.toString.call(e.Continent) : t.longs === Number ? new i.LongBits(e.Continent.low >>> 0, e.Continent.high >>> 0).toNumber() : e.Continent), null != e.Priority && e.hasOwnProperty("Priority") && ("number" == typeof e.Priority ? n.Priority = t.longs === String ? String(e.Priority) : e.Priority : n.Priority = t.longs === String ? i.Long.prototype.toString.call(e.Priority) : t.longs === Number ? new i.LongBits(e.Priority.low >>> 0, e.Priority.high >>> 0).toNumber() : e.Priority), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PlayerNationalFlag_Config"
            }, e
        }(), a.ItemPetCard_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PetId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.PetId && Object.hasOwnProperty.call(e, "PetId") && t.uint32(16).int64(e.PetId), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(24).int64(e.StarLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemPetCard_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.PetId = e.int64();
                            break;
                        case 3:
                            r.StarLevel = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.PetId && e.hasOwnProperty("PetId") && !(i.isInteger(e.PetId) || e.PetId && i.isInteger(e.PetId.low) && i.isInteger(e.PetId.high)) ? "PetId: integer|Long expected" : null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high)) ? "StarLevel: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemPetCard_Config) return e;
                var t = new a.ItemPetCard_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.PetId && (i.Long ? (t.PetId = i.Long.fromValue(e.PetId)).unsigned = !1 : "string" == typeof e.PetId ? t.PetId = parseInt(e.PetId, 10) : "number" == typeof e.PetId ? t.PetId = e.PetId : "object" == typeof e.PetId && (t.PetId = new i.LongBits(e.PetId.low >>> 0, e.PetId.high >>> 0).toNumber())), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.PetId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PetId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.PetId && e.hasOwnProperty("PetId") && ("number" == typeof e.PetId ? n.PetId = t.longs === String ? String(e.PetId) : e.PetId : n.PetId = t.longs === String ? i.Long.prototype.toString.call(e.PetId) : t.longs === Number ? new i.LongBits(e.PetId.low >>> 0, e.PetId.high >>> 0).toNumber() : e.PetId), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemPetCard_Config"
            }, e
        }(), a.CurrencySymbol_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = "", e.prototype.Symbol = "", e.prototype.ToFixed = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(10).string(e.Id), null != e.Symbol && Object.hasOwnProperty.call(e, "Symbol") && t.uint32(18).string(e.Symbol), null != e.ToFixed && Object.hasOwnProperty.call(e, "ToFixed") && t.uint32(24).int64(e.ToFixed), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(32).int64(e.ItemId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CurrencySymbol_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.string();
                            break;
                        case 2:
                            r.Symbol = e.string();
                            break;
                        case 3:
                            r.ToFixed = e.int64();
                            break;
                        case 4:
                            r.ItemId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !i.isString(e.Id) ? "Id: string expected" : null != e.Symbol && e.hasOwnProperty("Symbol") && !i.isString(e.Symbol) ? "Symbol: string expected" : null != e.ToFixed && e.hasOwnProperty("ToFixed") && !(i.isInteger(e.ToFixed) || e.ToFixed && i.isInteger(e.ToFixed.low) && i.isInteger(e.ToFixed.high)) ? "ToFixed: integer|Long expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CurrencySymbol_Config) return e;
                var t = new a.CurrencySymbol_Config;
                return null != e.Id && (t.Id = String(e.Id)), null != e.Symbol && (t.Symbol = String(e.Symbol)), null != e.ToFixed && (i.Long ? (t.ToFixed = i.Long.fromValue(e.ToFixed)).unsigned = !1 : "string" == typeof e.ToFixed ? t.ToFixed = parseInt(e.ToFixed, 10) : "number" == typeof e.ToFixed ? t.ToFixed = e.ToFixed : "object" == typeof e.ToFixed && (t.ToFixed = new i.LongBits(e.ToFixed.low >>> 0, e.ToFixed.high >>> 0).toNumber())), null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (n.Id = "", n.Symbol = "", i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.ToFixed = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.ToFixed = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && (n.Id = e.Id), null != e.Symbol && e.hasOwnProperty("Symbol") && (n.Symbol = e.Symbol), null != e.ToFixed && e.hasOwnProperty("ToFixed") && ("number" == typeof e.ToFixed ? n.ToFixed = t.longs === String ? String(e.ToFixed) : e.ToFixed : n.ToFixed = t.longs === String ? i.Long.prototype.toString.call(e.ToFixed) : t.longs === Number ? new i.LongBits(e.ToFixed.low >>> 0, e.ToFixed.high >>> 0).toNumber() : e.ToFixed), null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CurrencySymbol_Config"
            }, e
        }(), a.HeroTalentLevel_Config = function() {
            function e(e) {
                if (this.WarriorAttributes = [], this.MasterAttributes = [], this.TankAttributes = [], this.SupportAttributes = [], this.WarriorAttributes2 = [], this.MasterAttributes2 = [], this.TankAttributes2 = [], this.SupportAttributes2 = [], this.WarriorAttributes3 = [], this.MasterAttributes3 = [], this.TankAttributes3 = [], this.SupportAttributes3 = [], this.WarriorAttributes4 = [], this.MasterAttributes4 = [], this.TankAttributes4 = [], this.SupportAttributes4 = [], this.WarriorAttributes5 = [], this.MasterAttributes5 = [], this.TankAttributes5 = [], this.SupportAttributes5 = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.WarriorAttributes = i.emptyArray, e.prototype.MasterAttributes = i.emptyArray, e.prototype.TankAttributes = i.emptyArray, e.prototype.SupportAttributes = i.emptyArray, e.prototype.WarriorAttributes2 = i.emptyArray, e.prototype.MasterAttributes2 = i.emptyArray, e.prototype.TankAttributes2 = i.emptyArray, e.prototype.SupportAttributes2 = i.emptyArray, e.prototype.WarriorAttributes3 = i.emptyArray, e.prototype.MasterAttributes3 = i.emptyArray, e.prototype.TankAttributes3 = i.emptyArray, e.prototype.SupportAttributes3 = i.emptyArray, e.prototype.WarriorAttributes4 = i.emptyArray, e.prototype.MasterAttributes4 = i.emptyArray, e.prototype.TankAttributes4 = i.emptyArray, e.prototype.SupportAttributes4 = i.emptyArray, e.prototype.WarriorAttributes5 = i.emptyArray, e.prototype.MasterAttributes5 = i.emptyArray, e.prototype.TankAttributes5 = i.emptyArray, e.prototype.SupportAttributes5 = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.WarriorAttributes && e.WarriorAttributes.length)
                    for (var n = 0; n < e.WarriorAttributes.length; ++n) a.IntArray_Config.encode(e.WarriorAttributes[n], t.uint32(18).fork()).ldelim();
                if (null != e.MasterAttributes && e.MasterAttributes.length)
                    for (n = 0; n < e.MasterAttributes.length; ++n) a.IntArray_Config.encode(e.MasterAttributes[n], t.uint32(26).fork()).ldelim();
                if (null != e.TankAttributes && e.TankAttributes.length)
                    for (n = 0; n < e.TankAttributes.length; ++n) a.IntArray_Config.encode(e.TankAttributes[n], t.uint32(34).fork()).ldelim();
                if (null != e.SupportAttributes && e.SupportAttributes.length)
                    for (n = 0; n < e.SupportAttributes.length; ++n) a.IntArray_Config.encode(e.SupportAttributes[n], t.uint32(42).fork()).ldelim();
                if (null != e.WarriorAttributes2 && e.WarriorAttributes2.length)
                    for (n = 0; n < e.WarriorAttributes2.length; ++n) a.IntArray_Config.encode(e.WarriorAttributes2[n], t.uint32(50).fork()).ldelim();
                if (null != e.MasterAttributes2 && e.MasterAttributes2.length)
                    for (n = 0; n < e.MasterAttributes2.length; ++n) a.IntArray_Config.encode(e.MasterAttributes2[n], t.uint32(58).fork()).ldelim();
                if (null != e.TankAttributes2 && e.TankAttributes2.length)
                    for (n = 0; n < e.TankAttributes2.length; ++n) a.IntArray_Config.encode(e.TankAttributes2[n], t.uint32(66).fork()).ldelim();
                if (null != e.SupportAttributes2 && e.SupportAttributes2.length)
                    for (n = 0; n < e.SupportAttributes2.length; ++n) a.IntArray_Config.encode(e.SupportAttributes2[n], t.uint32(74).fork()).ldelim();
                if (null != e.WarriorAttributes3 && e.WarriorAttributes3.length)
                    for (n = 0; n < e.WarriorAttributes3.length; ++n) a.IntArray_Config.encode(e.WarriorAttributes3[n], t.uint32(82).fork()).ldelim();
                if (null != e.MasterAttributes3 && e.MasterAttributes3.length)
                    for (n = 0; n < e.MasterAttributes3.length; ++n) a.IntArray_Config.encode(e.MasterAttributes3[n], t.uint32(90).fork()).ldelim();
                if (null != e.TankAttributes3 && e.TankAttributes3.length)
                    for (n = 0; n < e.TankAttributes3.length; ++n) a.IntArray_Config.encode(e.TankAttributes3[n], t.uint32(98).fork()).ldelim();
                if (null != e.SupportAttributes3 && e.SupportAttributes3.length)
                    for (n = 0; n < e.SupportAttributes3.length; ++n) a.IntArray_Config.encode(e.SupportAttributes3[n], t.uint32(106).fork()).ldelim();
                if (null != e.WarriorAttributes4 && e.WarriorAttributes4.length)
                    for (n = 0; n < e.WarriorAttributes4.length; ++n) a.IntArray_Config.encode(e.WarriorAttributes4[n], t.uint32(114).fork()).ldelim();
                if (null != e.MasterAttributes4 && e.MasterAttributes4.length)
                    for (n = 0; n < e.MasterAttributes4.length; ++n) a.IntArray_Config.encode(e.MasterAttributes4[n], t.uint32(130).fork()).ldelim();
                if (null != e.TankAttributes4 && e.TankAttributes4.length)
                    for (n = 0; n < e.TankAttributes4.length; ++n) a.IntArray_Config.encode(e.TankAttributes4[n], t.uint32(138).fork()).ldelim();
                if (null != e.SupportAttributes4 && e.SupportAttributes4.length)
                    for (n = 0; n < e.SupportAttributes4.length; ++n) a.IntArray_Config.encode(e.SupportAttributes4[n], t.uint32(146).fork()).ldelim();
                if (null != e.WarriorAttributes5 && e.WarriorAttributes5.length)
                    for (n = 0; n < e.WarriorAttributes5.length; ++n) a.IntArray_Config.encode(e.WarriorAttributes5[n], t.uint32(154).fork()).ldelim();
                if (null != e.MasterAttributes5 && e.MasterAttributes5.length)
                    for (n = 0; n < e.MasterAttributes5.length; ++n) a.IntArray_Config.encode(e.MasterAttributes5[n], t.uint32(162).fork()).ldelim();
                if (null != e.TankAttributes5 && e.TankAttributes5.length)
                    for (n = 0; n < e.TankAttributes5.length; ++n) a.IntArray_Config.encode(e.TankAttributes5[n], t.uint32(170).fork()).ldelim();
                if (null != e.SupportAttributes5 && e.SupportAttributes5.length)
                    for (n = 0; n < e.SupportAttributes5.length; ++n) a.IntArray_Config.encode(e.SupportAttributes5[n], t.uint32(178).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroTalentLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.WarriorAttributes && r.WarriorAttributes.length || (r.WarriorAttributes = []), r.WarriorAttributes.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.MasterAttributes && r.MasterAttributes.length || (r.MasterAttributes = []), r.MasterAttributes.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.TankAttributes && r.TankAttributes.length || (r.TankAttributes = []), r.TankAttributes.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.SupportAttributes && r.SupportAttributes.length || (r.SupportAttributes = []), r.SupportAttributes.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.WarriorAttributes2 && r.WarriorAttributes2.length || (r.WarriorAttributes2 = []), r.WarriorAttributes2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.MasterAttributes2 && r.MasterAttributes2.length || (r.MasterAttributes2 = []), r.MasterAttributes2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.TankAttributes2 && r.TankAttributes2.length || (r.TankAttributes2 = []), r.TankAttributes2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.SupportAttributes2 && r.SupportAttributes2.length || (r.SupportAttributes2 = []), r.SupportAttributes2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.WarriorAttributes3 && r.WarriorAttributes3.length || (r.WarriorAttributes3 = []), r.WarriorAttributes3.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 11:
                            r.MasterAttributes3 && r.MasterAttributes3.length || (r.MasterAttributes3 = []), r.MasterAttributes3.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 12:
                            r.TankAttributes3 && r.TankAttributes3.length || (r.TankAttributes3 = []), r.TankAttributes3.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 13:
                            r.SupportAttributes3 && r.SupportAttributes3.length || (r.SupportAttributes3 = []), r.SupportAttributes3.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 14:
                            r.WarriorAttributes4 && r.WarriorAttributes4.length || (r.WarriorAttributes4 = []), r.WarriorAttributes4.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 16:
                            r.MasterAttributes4 && r.MasterAttributes4.length || (r.MasterAttributes4 = []), r.MasterAttributes4.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 17:
                            r.TankAttributes4 && r.TankAttributes4.length || (r.TankAttributes4 = []), r.TankAttributes4.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 18:
                            r.SupportAttributes4 && r.SupportAttributes4.length || (r.SupportAttributes4 = []), r.SupportAttributes4.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 19:
                            r.WarriorAttributes5 && r.WarriorAttributes5.length || (r.WarriorAttributes5 = []), r.WarriorAttributes5.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 20:
                            r.MasterAttributes5 && r.MasterAttributes5.length || (r.MasterAttributes5 = []), r.MasterAttributes5.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 21:
                            r.TankAttributes5 && r.TankAttributes5.length || (r.TankAttributes5 = []), r.TankAttributes5.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 22:
                            r.SupportAttributes5 && r.SupportAttributes5.length || (r.SupportAttributes5 = []), r.SupportAttributes5.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.WarriorAttributes && e.hasOwnProperty("WarriorAttributes")) {
                    if (!Array.isArray(e.WarriorAttributes)) return "WarriorAttributes: array expected";
                    for (var t = 0; t < e.WarriorAttributes.length; ++t)
                        if (n = a.IntArray_Config.verify(e.WarriorAttributes[t])) return "WarriorAttributes." + n
                }
                if (null != e.MasterAttributes && e.hasOwnProperty("MasterAttributes")) {
                    if (!Array.isArray(e.MasterAttributes)) return "MasterAttributes: array expected";
                    for (t = 0; t < e.MasterAttributes.length; ++t)
                        if (n = a.IntArray_Config.verify(e.MasterAttributes[t])) return "MasterAttributes." + n
                }
                if (null != e.TankAttributes && e.hasOwnProperty("TankAttributes")) {
                    if (!Array.isArray(e.TankAttributes)) return "TankAttributes: array expected";
                    for (t = 0; t < e.TankAttributes.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TankAttributes[t])) return "TankAttributes." + n
                }
                if (null != e.SupportAttributes && e.hasOwnProperty("SupportAttributes")) {
                    if (!Array.isArray(e.SupportAttributes)) return "SupportAttributes: array expected";
                    for (t = 0; t < e.SupportAttributes.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SupportAttributes[t])) return "SupportAttributes." + n
                }
                if (null != e.WarriorAttributes2 && e.hasOwnProperty("WarriorAttributes2")) {
                    if (!Array.isArray(e.WarriorAttributes2)) return "WarriorAttributes2: array expected";
                    for (t = 0; t < e.WarriorAttributes2.length; ++t)
                        if (n = a.IntArray_Config.verify(e.WarriorAttributes2[t])) return "WarriorAttributes2." + n
                }
                if (null != e.MasterAttributes2 && e.hasOwnProperty("MasterAttributes2")) {
                    if (!Array.isArray(e.MasterAttributes2)) return "MasterAttributes2: array expected";
                    for (t = 0; t < e.MasterAttributes2.length; ++t)
                        if (n = a.IntArray_Config.verify(e.MasterAttributes2[t])) return "MasterAttributes2." + n
                }
                if (null != e.TankAttributes2 && e.hasOwnProperty("TankAttributes2")) {
                    if (!Array.isArray(e.TankAttributes2)) return "TankAttributes2: array expected";
                    for (t = 0; t < e.TankAttributes2.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TankAttributes2[t])) return "TankAttributes2." + n
                }
                if (null != e.SupportAttributes2 && e.hasOwnProperty("SupportAttributes2")) {
                    if (!Array.isArray(e.SupportAttributes2)) return "SupportAttributes2: array expected";
                    for (t = 0; t < e.SupportAttributes2.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SupportAttributes2[t])) return "SupportAttributes2." + n
                }
                if (null != e.WarriorAttributes3 && e.hasOwnProperty("WarriorAttributes3")) {
                    if (!Array.isArray(e.WarriorAttributes3)) return "WarriorAttributes3: array expected";
                    for (t = 0; t < e.WarriorAttributes3.length; ++t)
                        if (n = a.IntArray_Config.verify(e.WarriorAttributes3[t])) return "WarriorAttributes3." + n
                }
                if (null != e.MasterAttributes3 && e.hasOwnProperty("MasterAttributes3")) {
                    if (!Array.isArray(e.MasterAttributes3)) return "MasterAttributes3: array expected";
                    for (t = 0; t < e.MasterAttributes3.length; ++t)
                        if (n = a.IntArray_Config.verify(e.MasterAttributes3[t])) return "MasterAttributes3." + n
                }
                if (null != e.TankAttributes3 && e.hasOwnProperty("TankAttributes3")) {
                    if (!Array.isArray(e.TankAttributes3)) return "TankAttributes3: array expected";
                    for (t = 0; t < e.TankAttributes3.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TankAttributes3[t])) return "TankAttributes3." + n
                }
                if (null != e.SupportAttributes3 && e.hasOwnProperty("SupportAttributes3")) {
                    if (!Array.isArray(e.SupportAttributes3)) return "SupportAttributes3: array expected";
                    for (t = 0; t < e.SupportAttributes3.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SupportAttributes3[t])) return "SupportAttributes3." + n
                }
                if (null != e.WarriorAttributes4 && e.hasOwnProperty("WarriorAttributes4")) {
                    if (!Array.isArray(e.WarriorAttributes4)) return "WarriorAttributes4: array expected";
                    for (t = 0; t < e.WarriorAttributes4.length; ++t)
                        if (n = a.IntArray_Config.verify(e.WarriorAttributes4[t])) return "WarriorAttributes4." + n
                }
                if (null != e.MasterAttributes4 && e.hasOwnProperty("MasterAttributes4")) {
                    if (!Array.isArray(e.MasterAttributes4)) return "MasterAttributes4: array expected";
                    for (t = 0; t < e.MasterAttributes4.length; ++t)
                        if (n = a.IntArray_Config.verify(e.MasterAttributes4[t])) return "MasterAttributes4." + n
                }
                if (null != e.TankAttributes4 && e.hasOwnProperty("TankAttributes4")) {
                    if (!Array.isArray(e.TankAttributes4)) return "TankAttributes4: array expected";
                    for (t = 0; t < e.TankAttributes4.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TankAttributes4[t])) return "TankAttributes4." + n
                }
                if (null != e.SupportAttributes4 && e.hasOwnProperty("SupportAttributes4")) {
                    if (!Array.isArray(e.SupportAttributes4)) return "SupportAttributes4: array expected";
                    for (t = 0; t < e.SupportAttributes4.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SupportAttributes4[t])) return "SupportAttributes4." + n
                }
                if (null != e.WarriorAttributes5 && e.hasOwnProperty("WarriorAttributes5")) {
                    if (!Array.isArray(e.WarriorAttributes5)) return "WarriorAttributes5: array expected";
                    for (t = 0; t < e.WarriorAttributes5.length; ++t)
                        if (n = a.IntArray_Config.verify(e.WarriorAttributes5[t])) return "WarriorAttributes5." + n
                }
                if (null != e.MasterAttributes5 && e.hasOwnProperty("MasterAttributes5")) {
                    if (!Array.isArray(e.MasterAttributes5)) return "MasterAttributes5: array expected";
                    for (t = 0; t < e.MasterAttributes5.length; ++t)
                        if (n = a.IntArray_Config.verify(e.MasterAttributes5[t])) return "MasterAttributes5." + n
                }
                if (null != e.TankAttributes5 && e.hasOwnProperty("TankAttributes5")) {
                    if (!Array.isArray(e.TankAttributes5)) return "TankAttributes5: array expected";
                    for (t = 0; t < e.TankAttributes5.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TankAttributes5[t])) return "TankAttributes5." + n
                }
                if (null != e.SupportAttributes5 && e.hasOwnProperty("SupportAttributes5")) {
                    if (!Array.isArray(e.SupportAttributes5)) return "SupportAttributes5: array expected";
                    for (t = 0; t < e.SupportAttributes5.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.SupportAttributes5[t])) return "SupportAttributes5." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroTalentLevel_Config) return e;
                var t = new a.HeroTalentLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.WarriorAttributes) {
                    if (!Array.isArray(e.WarriorAttributes)) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes: array expected");
                    t.WarriorAttributes = [];
                    for (var n = 0; n < e.WarriorAttributes.length; ++n) {
                        if ("object" != typeof e.WarriorAttributes[n]) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes: object expected");
                        t.WarriorAttributes[n] = a.IntArray_Config.fromObject(e.WarriorAttributes[n])
                    }
                }
                if (e.MasterAttributes) {
                    if (!Array.isArray(e.MasterAttributes)) throw TypeError(".HeroTalentLevel_Config.MasterAttributes: array expected");
                    for (t.MasterAttributes = [], n = 0; n < e.MasterAttributes.length; ++n) {
                        if ("object" != typeof e.MasterAttributes[n]) throw TypeError(".HeroTalentLevel_Config.MasterAttributes: object expected");
                        t.MasterAttributes[n] = a.IntArray_Config.fromObject(e.MasterAttributes[n])
                    }
                }
                if (e.TankAttributes) {
                    if (!Array.isArray(e.TankAttributes)) throw TypeError(".HeroTalentLevel_Config.TankAttributes: array expected");
                    for (t.TankAttributes = [], n = 0; n < e.TankAttributes.length; ++n) {
                        if ("object" != typeof e.TankAttributes[n]) throw TypeError(".HeroTalentLevel_Config.TankAttributes: object expected");
                        t.TankAttributes[n] = a.IntArray_Config.fromObject(e.TankAttributes[n])
                    }
                }
                if (e.SupportAttributes) {
                    if (!Array.isArray(e.SupportAttributes)) throw TypeError(".HeroTalentLevel_Config.SupportAttributes: array expected");
                    for (t.SupportAttributes = [], n = 0; n < e.SupportAttributes.length; ++n) {
                        if ("object" != typeof e.SupportAttributes[n]) throw TypeError(".HeroTalentLevel_Config.SupportAttributes: object expected");
                        t.SupportAttributes[n] = a.IntArray_Config.fromObject(e.SupportAttributes[n])
                    }
                }
                if (e.WarriorAttributes2) {
                    if (!Array.isArray(e.WarriorAttributes2)) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes2: array expected");
                    for (t.WarriorAttributes2 = [], n = 0; n < e.WarriorAttributes2.length; ++n) {
                        if ("object" != typeof e.WarriorAttributes2[n]) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes2: object expected");
                        t.WarriorAttributes2[n] = a.IntArray_Config.fromObject(e.WarriorAttributes2[n])
                    }
                }
                if (e.MasterAttributes2) {
                    if (!Array.isArray(e.MasterAttributes2)) throw TypeError(".HeroTalentLevel_Config.MasterAttributes2: array expected");
                    for (t.MasterAttributes2 = [], n = 0; n < e.MasterAttributes2.length; ++n) {
                        if ("object" != typeof e.MasterAttributes2[n]) throw TypeError(".HeroTalentLevel_Config.MasterAttributes2: object expected");
                        t.MasterAttributes2[n] = a.IntArray_Config.fromObject(e.MasterAttributes2[n])
                    }
                }
                if (e.TankAttributes2) {
                    if (!Array.isArray(e.TankAttributes2)) throw TypeError(".HeroTalentLevel_Config.TankAttributes2: array expected");
                    for (t.TankAttributes2 = [], n = 0; n < e.TankAttributes2.length; ++n) {
                        if ("object" != typeof e.TankAttributes2[n]) throw TypeError(".HeroTalentLevel_Config.TankAttributes2: object expected");
                        t.TankAttributes2[n] = a.IntArray_Config.fromObject(e.TankAttributes2[n])
                    }
                }
                if (e.SupportAttributes2) {
                    if (!Array.isArray(e.SupportAttributes2)) throw TypeError(".HeroTalentLevel_Config.SupportAttributes2: array expected");
                    for (t.SupportAttributes2 = [], n = 0; n < e.SupportAttributes2.length; ++n) {
                        if ("object" != typeof e.SupportAttributes2[n]) throw TypeError(".HeroTalentLevel_Config.SupportAttributes2: object expected");
                        t.SupportAttributes2[n] = a.IntArray_Config.fromObject(e.SupportAttributes2[n])
                    }
                }
                if (e.WarriorAttributes3) {
                    if (!Array.isArray(e.WarriorAttributes3)) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes3: array expected");
                    for (t.WarriorAttributes3 = [], n = 0; n < e.WarriorAttributes3.length; ++n) {
                        if ("object" != typeof e.WarriorAttributes3[n]) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes3: object expected");
                        t.WarriorAttributes3[n] = a.IntArray_Config.fromObject(e.WarriorAttributes3[n])
                    }
                }
                if (e.MasterAttributes3) {
                    if (!Array.isArray(e.MasterAttributes3)) throw TypeError(".HeroTalentLevel_Config.MasterAttributes3: array expected");
                    for (t.MasterAttributes3 = [], n = 0; n < e.MasterAttributes3.length; ++n) {
                        if ("object" != typeof e.MasterAttributes3[n]) throw TypeError(".HeroTalentLevel_Config.MasterAttributes3: object expected");
                        t.MasterAttributes3[n] = a.IntArray_Config.fromObject(e.MasterAttributes3[n])
                    }
                }
                if (e.TankAttributes3) {
                    if (!Array.isArray(e.TankAttributes3)) throw TypeError(".HeroTalentLevel_Config.TankAttributes3: array expected");
                    for (t.TankAttributes3 = [], n = 0; n < e.TankAttributes3.length; ++n) {
                        if ("object" != typeof e.TankAttributes3[n]) throw TypeError(".HeroTalentLevel_Config.TankAttributes3: object expected");
                        t.TankAttributes3[n] = a.IntArray_Config.fromObject(e.TankAttributes3[n])
                    }
                }
                if (e.SupportAttributes3) {
                    if (!Array.isArray(e.SupportAttributes3)) throw TypeError(".HeroTalentLevel_Config.SupportAttributes3: array expected");
                    for (t.SupportAttributes3 = [], n = 0; n < e.SupportAttributes3.length; ++n) {
                        if ("object" != typeof e.SupportAttributes3[n]) throw TypeError(".HeroTalentLevel_Config.SupportAttributes3: object expected");
                        t.SupportAttributes3[n] = a.IntArray_Config.fromObject(e.SupportAttributes3[n])
                    }
                }
                if (e.WarriorAttributes4) {
                    if (!Array.isArray(e.WarriorAttributes4)) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes4: array expected");
                    for (t.WarriorAttributes4 = [], n = 0; n < e.WarriorAttributes4.length; ++n) {
                        if ("object" != typeof e.WarriorAttributes4[n]) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes4: object expected");
                        t.WarriorAttributes4[n] = a.IntArray_Config.fromObject(e.WarriorAttributes4[n])
                    }
                }
                if (e.MasterAttributes4) {
                    if (!Array.isArray(e.MasterAttributes4)) throw TypeError(".HeroTalentLevel_Config.MasterAttributes4: array expected");
                    for (t.MasterAttributes4 = [], n = 0; n < e.MasterAttributes4.length; ++n) {
                        if ("object" != typeof e.MasterAttributes4[n]) throw TypeError(".HeroTalentLevel_Config.MasterAttributes4: object expected");
                        t.MasterAttributes4[n] = a.IntArray_Config.fromObject(e.MasterAttributes4[n])
                    }
                }
                if (e.TankAttributes4) {
                    if (!Array.isArray(e.TankAttributes4)) throw TypeError(".HeroTalentLevel_Config.TankAttributes4: array expected");
                    for (t.TankAttributes4 = [], n = 0; n < e.TankAttributes4.length; ++n) {
                        if ("object" != typeof e.TankAttributes4[n]) throw TypeError(".HeroTalentLevel_Config.TankAttributes4: object expected");
                        t.TankAttributes4[n] = a.IntArray_Config.fromObject(e.TankAttributes4[n])
                    }
                }
                if (e.SupportAttributes4) {
                    if (!Array.isArray(e.SupportAttributes4)) throw TypeError(".HeroTalentLevel_Config.SupportAttributes4: array expected");
                    for (t.SupportAttributes4 = [], n = 0; n < e.SupportAttributes4.length; ++n) {
                        if ("object" != typeof e.SupportAttributes4[n]) throw TypeError(".HeroTalentLevel_Config.SupportAttributes4: object expected");
                        t.SupportAttributes4[n] = a.IntArray_Config.fromObject(e.SupportAttributes4[n])
                    }
                }
                if (e.WarriorAttributes5) {
                    if (!Array.isArray(e.WarriorAttributes5)) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes5: array expected");
                    for (t.WarriorAttributes5 = [], n = 0; n < e.WarriorAttributes5.length; ++n) {
                        if ("object" != typeof e.WarriorAttributes5[n]) throw TypeError(".HeroTalentLevel_Config.WarriorAttributes5: object expected");
                        t.WarriorAttributes5[n] = a.IntArray_Config.fromObject(e.WarriorAttributes5[n])
                    }
                }
                if (e.MasterAttributes5) {
                    if (!Array.isArray(e.MasterAttributes5)) throw TypeError(".HeroTalentLevel_Config.MasterAttributes5: array expected");
                    for (t.MasterAttributes5 = [], n = 0; n < e.MasterAttributes5.length; ++n) {
                        if ("object" != typeof e.MasterAttributes5[n]) throw TypeError(".HeroTalentLevel_Config.MasterAttributes5: object expected");
                        t.MasterAttributes5[n] = a.IntArray_Config.fromObject(e.MasterAttributes5[n])
                    }
                }
                if (e.TankAttributes5) {
                    if (!Array.isArray(e.TankAttributes5)) throw TypeError(".HeroTalentLevel_Config.TankAttributes5: array expected");
                    for (t.TankAttributes5 = [], n = 0; n < e.TankAttributes5.length; ++n) {
                        if ("object" != typeof e.TankAttributes5[n]) throw TypeError(".HeroTalentLevel_Config.TankAttributes5: object expected");
                        t.TankAttributes5[n] = a.IntArray_Config.fromObject(e.TankAttributes5[n])
                    }
                }
                if (e.SupportAttributes5) {
                    if (!Array.isArray(e.SupportAttributes5)) throw TypeError(".HeroTalentLevel_Config.SupportAttributes5: array expected");
                    for (t.SupportAttributes5 = [], n = 0; n < e.SupportAttributes5.length; ++n) {
                        if ("object" != typeof e.SupportAttributes5[n]) throw TypeError(".HeroTalentLevel_Config.SupportAttributes5: object expected");
                        t.SupportAttributes5[n] = a.IntArray_Config.fromObject(e.SupportAttributes5[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.WarriorAttributes = [], n.MasterAttributes = [], n.TankAttributes = [], n.SupportAttributes = [], n.WarriorAttributes2 = [], n.MasterAttributes2 = [], n.TankAttributes2 = [], n.SupportAttributes2 = [], n.WarriorAttributes3 = [], n.MasterAttributes3 = [], n.TankAttributes3 = [], n.SupportAttributes3 = [], n.WarriorAttributes4 = [], n.MasterAttributes4 = [], n.TankAttributes4 = [], n.SupportAttributes4 = [], n.WarriorAttributes5 = [], n.MasterAttributes5 = [], n.TankAttributes5 = [], n.SupportAttributes5 = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.WarriorAttributes && e.WarriorAttributes.length) {
                    n.WarriorAttributes = [];
                    for (var r = 0; r < e.WarriorAttributes.length; ++r) n.WarriorAttributes[r] = a.IntArray_Config.toObject(e.WarriorAttributes[r], t)
                }
                if (e.MasterAttributes && e.MasterAttributes.length)
                    for (n.MasterAttributes = [], r = 0; r < e.MasterAttributes.length; ++r) n.MasterAttributes[r] = a.IntArray_Config.toObject(e.MasterAttributes[r], t);
                if (e.TankAttributes && e.TankAttributes.length)
                    for (n.TankAttributes = [], r = 0; r < e.TankAttributes.length; ++r) n.TankAttributes[r] = a.IntArray_Config.toObject(e.TankAttributes[r], t);
                if (e.SupportAttributes && e.SupportAttributes.length)
                    for (n.SupportAttributes = [], r = 0; r < e.SupportAttributes.length; ++r) n.SupportAttributes[r] = a.IntArray_Config.toObject(e.SupportAttributes[r], t);
                if (e.WarriorAttributes2 && e.WarriorAttributes2.length)
                    for (n.WarriorAttributes2 = [], r = 0; r < e.WarriorAttributes2.length; ++r) n.WarriorAttributes2[r] = a.IntArray_Config.toObject(e.WarriorAttributes2[r], t);
                if (e.MasterAttributes2 && e.MasterAttributes2.length)
                    for (n.MasterAttributes2 = [], r = 0; r < e.MasterAttributes2.length; ++r) n.MasterAttributes2[r] = a.IntArray_Config.toObject(e.MasterAttributes2[r], t);
                if (e.TankAttributes2 && e.TankAttributes2.length)
                    for (n.TankAttributes2 = [], r = 0; r < e.TankAttributes2.length; ++r) n.TankAttributes2[r] = a.IntArray_Config.toObject(e.TankAttributes2[r], t);
                if (e.SupportAttributes2 && e.SupportAttributes2.length)
                    for (n.SupportAttributes2 = [], r = 0; r < e.SupportAttributes2.length; ++r) n.SupportAttributes2[r] = a.IntArray_Config.toObject(e.SupportAttributes2[r], t);
                if (e.WarriorAttributes3 && e.WarriorAttributes3.length)
                    for (n.WarriorAttributes3 = [], r = 0; r < e.WarriorAttributes3.length; ++r) n.WarriorAttributes3[r] = a.IntArray_Config.toObject(e.WarriorAttributes3[r], t);
                if (e.MasterAttributes3 && e.MasterAttributes3.length)
                    for (n.MasterAttributes3 = [], r = 0; r < e.MasterAttributes3.length; ++r) n.MasterAttributes3[r] = a.IntArray_Config.toObject(e.MasterAttributes3[r], t);
                if (e.TankAttributes3 && e.TankAttributes3.length)
                    for (n.TankAttributes3 = [], r = 0; r < e.TankAttributes3.length; ++r) n.TankAttributes3[r] = a.IntArray_Config.toObject(e.TankAttributes3[r], t);
                if (e.SupportAttributes3 && e.SupportAttributes3.length)
                    for (n.SupportAttributes3 = [], r = 0; r < e.SupportAttributes3.length; ++r) n.SupportAttributes3[r] = a.IntArray_Config.toObject(e.SupportAttributes3[r], t);
                if (e.WarriorAttributes4 && e.WarriorAttributes4.length)
                    for (n.WarriorAttributes4 = [], r = 0; r < e.WarriorAttributes4.length; ++r) n.WarriorAttributes4[r] = a.IntArray_Config.toObject(e.WarriorAttributes4[r], t);
                if (e.MasterAttributes4 && e.MasterAttributes4.length)
                    for (n.MasterAttributes4 = [], r = 0; r < e.MasterAttributes4.length; ++r) n.MasterAttributes4[r] = a.IntArray_Config.toObject(e.MasterAttributes4[r], t);
                if (e.TankAttributes4 && e.TankAttributes4.length)
                    for (n.TankAttributes4 = [], r = 0; r < e.TankAttributes4.length; ++r) n.TankAttributes4[r] = a.IntArray_Config.toObject(e.TankAttributes4[r], t);
                if (e.SupportAttributes4 && e.SupportAttributes4.length)
                    for (n.SupportAttributes4 = [], r = 0; r < e.SupportAttributes4.length; ++r) n.SupportAttributes4[r] = a.IntArray_Config.toObject(e.SupportAttributes4[r], t);
                if (e.WarriorAttributes5 && e.WarriorAttributes5.length)
                    for (n.WarriorAttributes5 = [], r = 0; r < e.WarriorAttributes5.length; ++r) n.WarriorAttributes5[r] = a.IntArray_Config.toObject(e.WarriorAttributes5[r], t);
                if (e.MasterAttributes5 && e.MasterAttributes5.length)
                    for (n.MasterAttributes5 = [], r = 0; r < e.MasterAttributes5.length; ++r) n.MasterAttributes5[r] = a.IntArray_Config.toObject(e.MasterAttributes5[r], t);
                if (e.TankAttributes5 && e.TankAttributes5.length)
                    for (n.TankAttributes5 = [], r = 0; r < e.TankAttributes5.length; ++r) n.TankAttributes5[r] = a.IntArray_Config.toObject(e.TankAttributes5[r], t);
                if (e.SupportAttributes5 && e.SupportAttributes5.length)
                    for (n.SupportAttributes5 = [], r = 0; r < e.SupportAttributes5.length; ++r) n.SupportAttributes5[r] = a.IntArray_Config.toObject(e.SupportAttributes5[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroTalentLevel_Config"
            }, e
        }(), a.HeroTalentItemConsume_Config = function() {
            function e(e) {
                if (this.PVECommonItems = [], this.PVEHeroItems = [], this.PVPCommonItems = [], this.PVPHeroItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PVECommonItems = i.emptyArray, e.prototype.PVEHeroItems = i.emptyArray, e.prototype.PVPCommonItems = i.emptyArray, e.prototype.PVPHeroItems = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.PVECommonItems && e.PVECommonItems.length)
                    for (var n = 0; n < e.PVECommonItems.length; ++n) a.IntArray_Config.encode(e.PVECommonItems[n], t.uint32(18).fork()).ldelim();
                if (null != e.PVEHeroItems && e.PVEHeroItems.length)
                    for (n = 0; n < e.PVEHeroItems.length; ++n) a.IntArray_Config.encode(e.PVEHeroItems[n], t.uint32(26).fork()).ldelim();
                if (null != e.PVPCommonItems && e.PVPCommonItems.length)
                    for (n = 0; n < e.PVPCommonItems.length; ++n) a.IntArray_Config.encode(e.PVPCommonItems[n], t.uint32(34).fork()).ldelim();
                if (null != e.PVPHeroItems && e.PVPHeroItems.length)
                    for (n = 0; n < e.PVPHeroItems.length; ++n) a.IntArray_Config.encode(e.PVPHeroItems[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroTalentItemConsume_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.PVECommonItems && r.PVECommonItems.length || (r.PVECommonItems = []), r.PVECommonItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.PVEHeroItems && r.PVEHeroItems.length || (r.PVEHeroItems = []), r.PVEHeroItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.PVPCommonItems && r.PVPCommonItems.length || (r.PVPCommonItems = []), r.PVPCommonItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.PVPHeroItems && r.PVPHeroItems.length || (r.PVPHeroItems = []), r.PVPHeroItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.PVECommonItems && e.hasOwnProperty("PVECommonItems")) {
                    if (!Array.isArray(e.PVECommonItems)) return "PVECommonItems: array expected";
                    for (var t = 0; t < e.PVECommonItems.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PVECommonItems[t])) return "PVECommonItems." + n
                }
                if (null != e.PVEHeroItems && e.hasOwnProperty("PVEHeroItems")) {
                    if (!Array.isArray(e.PVEHeroItems)) return "PVEHeroItems: array expected";
                    for (t = 0; t < e.PVEHeroItems.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PVEHeroItems[t])) return "PVEHeroItems." + n
                }
                if (null != e.PVPCommonItems && e.hasOwnProperty("PVPCommonItems")) {
                    if (!Array.isArray(e.PVPCommonItems)) return "PVPCommonItems: array expected";
                    for (t = 0; t < e.PVPCommonItems.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PVPCommonItems[t])) return "PVPCommonItems." + n
                }
                if (null != e.PVPHeroItems && e.hasOwnProperty("PVPHeroItems")) {
                    if (!Array.isArray(e.PVPHeroItems)) return "PVPHeroItems: array expected";
                    for (t = 0; t < e.PVPHeroItems.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.PVPHeroItems[t])) return "PVPHeroItems." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroTalentItemConsume_Config) return e;
                var t = new a.HeroTalentItemConsume_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.PVECommonItems) {
                    if (!Array.isArray(e.PVECommonItems)) throw TypeError(".HeroTalentItemConsume_Config.PVECommonItems: array expected");
                    t.PVECommonItems = [];
                    for (var n = 0; n < e.PVECommonItems.length; ++n) {
                        if ("object" != typeof e.PVECommonItems[n]) throw TypeError(".HeroTalentItemConsume_Config.PVECommonItems: object expected");
                        t.PVECommonItems[n] = a.IntArray_Config.fromObject(e.PVECommonItems[n])
                    }
                }
                if (e.PVEHeroItems) {
                    if (!Array.isArray(e.PVEHeroItems)) throw TypeError(".HeroTalentItemConsume_Config.PVEHeroItems: array expected");
                    for (t.PVEHeroItems = [], n = 0; n < e.PVEHeroItems.length; ++n) {
                        if ("object" != typeof e.PVEHeroItems[n]) throw TypeError(".HeroTalentItemConsume_Config.PVEHeroItems: object expected");
                        t.PVEHeroItems[n] = a.IntArray_Config.fromObject(e.PVEHeroItems[n])
                    }
                }
                if (e.PVPCommonItems) {
                    if (!Array.isArray(e.PVPCommonItems)) throw TypeError(".HeroTalentItemConsume_Config.PVPCommonItems: array expected");
                    for (t.PVPCommonItems = [], n = 0; n < e.PVPCommonItems.length; ++n) {
                        if ("object" != typeof e.PVPCommonItems[n]) throw TypeError(".HeroTalentItemConsume_Config.PVPCommonItems: object expected");
                        t.PVPCommonItems[n] = a.IntArray_Config.fromObject(e.PVPCommonItems[n])
                    }
                }
                if (e.PVPHeroItems) {
                    if (!Array.isArray(e.PVPHeroItems)) throw TypeError(".HeroTalentItemConsume_Config.PVPHeroItems: array expected");
                    for (t.PVPHeroItems = [], n = 0; n < e.PVPHeroItems.length; ++n) {
                        if ("object" != typeof e.PVPHeroItems[n]) throw TypeError(".HeroTalentItemConsume_Config.PVPHeroItems: object expected");
                        t.PVPHeroItems[n] = a.IntArray_Config.fromObject(e.PVPHeroItems[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PVECommonItems = [], n.PVEHeroItems = [], n.PVPCommonItems = [], n.PVPHeroItems = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.PVECommonItems && e.PVECommonItems.length) {
                    n.PVECommonItems = [];
                    for (var r = 0; r < e.PVECommonItems.length; ++r) n.PVECommonItems[r] = a.IntArray_Config.toObject(e.PVECommonItems[r], t)
                }
                if (e.PVEHeroItems && e.PVEHeroItems.length)
                    for (n.PVEHeroItems = [], r = 0; r < e.PVEHeroItems.length; ++r) n.PVEHeroItems[r] = a.IntArray_Config.toObject(e.PVEHeroItems[r], t);
                if (e.PVPCommonItems && e.PVPCommonItems.length)
                    for (n.PVPCommonItems = [], r = 0; r < e.PVPCommonItems.length; ++r) n.PVPCommonItems[r] = a.IntArray_Config.toObject(e.PVPCommonItems[r], t);
                if (e.PVPHeroItems && e.PVPHeroItems.length)
                    for (n.PVPHeroItems = [], r = 0; r < e.PVPHeroItems.length; ++r) n.PVPHeroItems[r] = a.IntArray_Config.toObject(e.PVPHeroItems[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroTalentItemConsume_Config"
            }, e
        }(), a.HeroTalentSkill_Config = function() {
            function e(e) {
                if (this.PVEEffects = [], this.PVPEffects = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PVEEffects = i.emptyArray, e.prototype.PVPEffects = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.PVEEffects && e.PVEEffects.length)
                    for (var n = 0; n < e.PVEEffects.length; ++n) a.IntArray_Config.encode(e.PVEEffects[n], t.uint32(18).fork()).ldelim();
                if (null != e.PVPEffects && e.PVPEffects.length)
                    for (n = 0; n < e.PVPEffects.length; ++n) a.IntArray_Config.encode(e.PVPEffects[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroTalentSkill_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.PVEEffects && r.PVEEffects.length || (r.PVEEffects = []), r.PVEEffects.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.PVPEffects && r.PVPEffects.length || (r.PVPEffects = []), r.PVPEffects.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.PVEEffects && e.hasOwnProperty("PVEEffects")) {
                    if (!Array.isArray(e.PVEEffects)) return "PVEEffects: array expected";
                    for (var t = 0; t < e.PVEEffects.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PVEEffects[t])) return "PVEEffects." + n
                }
                if (null != e.PVPEffects && e.hasOwnProperty("PVPEffects")) {
                    if (!Array.isArray(e.PVPEffects)) return "PVPEffects: array expected";
                    for (t = 0; t < e.PVPEffects.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.PVPEffects[t])) return "PVPEffects." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroTalentSkill_Config) return e;
                var t = new a.HeroTalentSkill_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.PVEEffects) {
                    if (!Array.isArray(e.PVEEffects)) throw TypeError(".HeroTalentSkill_Config.PVEEffects: array expected");
                    t.PVEEffects = [];
                    for (var n = 0; n < e.PVEEffects.length; ++n) {
                        if ("object" != typeof e.PVEEffects[n]) throw TypeError(".HeroTalentSkill_Config.PVEEffects: object expected");
                        t.PVEEffects[n] = a.IntArray_Config.fromObject(e.PVEEffects[n])
                    }
                }
                if (e.PVPEffects) {
                    if (!Array.isArray(e.PVPEffects)) throw TypeError(".HeroTalentSkill_Config.PVPEffects: array expected");
                    for (t.PVPEffects = [], n = 0; n < e.PVPEffects.length; ++n) {
                        if ("object" != typeof e.PVPEffects[n]) throw TypeError(".HeroTalentSkill_Config.PVPEffects: object expected");
                        t.PVPEffects[n] = a.IntArray_Config.fromObject(e.PVPEffects[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PVEEffects = [], n.PVPEffects = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.PVEEffects && e.PVEEffects.length) {
                    n.PVEEffects = [];
                    for (var r = 0; r < e.PVEEffects.length; ++r) n.PVEEffects[r] = a.IntArray_Config.toObject(e.PVEEffects[r], t)
                }
                if (e.PVPEffects && e.PVPEffects.length)
                    for (n.PVPEffects = [], r = 0; r < e.PVPEffects.length; ++r) n.PVPEffects[r] = a.IntArray_Config.toObject(e.PVPEffects[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroTalentSkill_Config"
            }, e
        }(), a.RankTopNotify_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(24).int64(e.Count), null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(32).int64(e.SortId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RankTopNotify_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.Count = e.int64();
                            break;
                        case 4:
                            r.SortId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RankTopNotify_Config) return e;
                var t = new a.RankTopNotify_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RankTopNotify_Config"
            }, e
        }(), a.PowerCoreForm_Config = function() {
            function e(e) {
                if (this.TopEffects = [], this.BottomEffects = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TopEffects = i.emptyArray, e.prototype.BottomEffects = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.TopEffects && e.TopEffects.length)
                    for (var n = 0; n < e.TopEffects.length; ++n) t.uint32(18).string(e.TopEffects[n]);
                if (null != e.BottomEffects && e.BottomEffects.length)
                    for (n = 0; n < e.BottomEffects.length; ++n) t.uint32(26).string(e.BottomEffects[n]);
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PowerCoreForm_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.TopEffects && r.TopEffects.length || (r.TopEffects = []), r.TopEffects.push(e.string());
                            break;
                        case 3:
                            r.BottomEffects && r.BottomEffects.length || (r.BottomEffects = []), r.BottomEffects.push(e.string());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.TopEffects && e.hasOwnProperty("TopEffects")) {
                    if (!Array.isArray(e.TopEffects)) return "TopEffects: array expected";
                    for (var t = 0; t < e.TopEffects.length; ++t)
                        if (!i.isString(e.TopEffects[t])) return "TopEffects: string[] expected"
                }
                if (null != e.BottomEffects && e.hasOwnProperty("BottomEffects")) {
                    if (!Array.isArray(e.BottomEffects)) return "BottomEffects: array expected";
                    for (t = 0; t < e.BottomEffects.length; ++t)
                        if (!i.isString(e.BottomEffects[t])) return "BottomEffects: string[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PowerCoreForm_Config) return e;
                var t = new a.PowerCoreForm_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.TopEffects) {
                    if (!Array.isArray(e.TopEffects)) throw TypeError(".PowerCoreForm_Config.TopEffects: array expected");
                    t.TopEffects = [];
                    for (var n = 0; n < e.TopEffects.length; ++n) t.TopEffects[n] = String(e.TopEffects[n])
                }
                if (e.BottomEffects) {
                    if (!Array.isArray(e.BottomEffects)) throw TypeError(".PowerCoreForm_Config.BottomEffects: array expected");
                    for (t.BottomEffects = [], n = 0; n < e.BottomEffects.length; ++n) t.BottomEffects[n] = String(e.BottomEffects[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.TopEffects = [], n.BottomEffects = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.TopEffects && e.TopEffects.length) {
                    n.TopEffects = [];
                    for (var r = 0; r < e.TopEffects.length; ++r) n.TopEffects[r] = e.TopEffects[r]
                }
                if (e.BottomEffects && e.BottomEffects.length)
                    for (n.BottomEffects = [], r = 0; r < e.BottomEffects.length; ++r) n.BottomEffects[r] = e.BottomEffects[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PowerCoreForm_Config"
            }, e
        }(), a.Share_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Share_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Share_Config) return e;
                var t = new a.Share_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Share_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Share_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Share_Config"
            }, e
        }(), a.TwentyOneGame_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Number = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Prob = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Number && Object.hasOwnProperty.call(e, "Number") && t.uint32(16).int64(e.Number), null != e.Prob && Object.hasOwnProperty.call(e, "Prob") && t.uint32(24).int64(e.Prob), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TwentyOneGame_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Number = e.int64();
                            break;
                        case 3:
                            r.Prob = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Number && e.hasOwnProperty("Number") && !(i.isInteger(e.Number) || e.Number && i.isInteger(e.Number.low) && i.isInteger(e.Number.high)) ? "Number: integer|Long expected" : null != e.Prob && e.hasOwnProperty("Prob") && !(i.isInteger(e.Prob) || e.Prob && i.isInteger(e.Prob.low) && i.isInteger(e.Prob.high)) ? "Prob: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.TwentyOneGame_Config) return e;
                var t = new a.TwentyOneGame_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Number && (i.Long ? (t.Number = i.Long.fromValue(e.Number)).unsigned = !1 : "string" == typeof e.Number ? t.Number = parseInt(e.Number, 10) : "number" == typeof e.Number ? t.Number = e.Number : "object" == typeof e.Number && (t.Number = new i.LongBits(e.Number.low >>> 0, e.Number.high >>> 0).toNumber())), null != e.Prob && (i.Long ? (t.Prob = i.Long.fromValue(e.Prob)).unsigned = !1 : "string" == typeof e.Prob ? t.Prob = parseInt(e.Prob, 10) : "number" == typeof e.Prob ? t.Prob = e.Prob : "object" == typeof e.Prob && (t.Prob = new i.LongBits(e.Prob.low >>> 0, e.Prob.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Number = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Number = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Prob = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Prob = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Number && e.hasOwnProperty("Number") && ("number" == typeof e.Number ? n.Number = t.longs === String ? String(e.Number) : e.Number : n.Number = t.longs === String ? i.Long.prototype.toString.call(e.Number) : t.longs === Number ? new i.LongBits(e.Number.low >>> 0, e.Number.high >>> 0).toNumber() : e.Number), null != e.Prob && e.hasOwnProperty("Prob") && ("number" == typeof e.Prob ? n.Prob = t.longs === String ? String(e.Prob) : e.Prob : n.Prob = t.longs === String ? i.Long.prototype.toString.call(e.Prob) : t.longs === Number ? new i.LongBits(e.Prob.low >>> 0, e.Prob.high >>> 0).toNumber() : e.Prob), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TwentyOneGame_Config"
            }, e
        }(), a.ItemCurrencyDiscount_Config = function() {
            function e(e) {
                if (this.Param = [], this.Condition = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NewPrice = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DurationDays = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SubType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.prototype.Condition = i.emptyArray, e.prototype.ItemIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.NewPrice && Object.hasOwnProperty.call(e, "NewPrice") && t.uint32(24).int64(e.NewPrice), null != e.DurationDays && Object.hasOwnProperty.call(e, "DurationDays") && t.uint32(40).int64(e.DurationDays), null != e.SubType && Object.hasOwnProperty.call(e, "SubType") && t.uint32(48).int64(e.SubType), null != e.Param && e.Param.length) {
                    t.uint32(58).fork();
                    for (var n = 0; n < e.Param.length; ++n) t.int64(e.Param[n]);
                    t.ldelim()
                }
                if (null != e.Condition && e.Condition.length)
                    for (n = 0; n < e.Condition.length; ++n) a.IntArray_Config.encode(e.Condition[n], t.uint32(66).fork()).ldelim();
                return null != e.ItemIcon && Object.hasOwnProperty.call(e, "ItemIcon") && t.uint32(72).int64(e.ItemIcon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemCurrencyDiscount_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.NewPrice = e.int64();
                            break;
                        case 5:
                            r.DurationDays = e.int64();
                            break;
                        case 6:
                            r.SubType = e.int64();
                            break;
                        case 7:
                            if (r.Param && r.Param.length || (r.Param = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Param.push(e.int64());
                            else r.Param.push(e.int64());
                            break;
                        case 8:
                            r.Condition && r.Condition.length || (r.Condition = []), r.Condition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.ItemIcon = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.NewPrice && e.hasOwnProperty("NewPrice") && !(i.isInteger(e.NewPrice) || e.NewPrice && i.isInteger(e.NewPrice.low) && i.isInteger(e.NewPrice.high))) return "NewPrice: integer|Long expected";
                if (null != e.DurationDays && e.hasOwnProperty("DurationDays") && !(i.isInteger(e.DurationDays) || e.DurationDays && i.isInteger(e.DurationDays.low) && i.isInteger(e.DurationDays.high))) return "DurationDays: integer|Long expected";
                if (null != e.SubType && e.hasOwnProperty("SubType") && !(i.isInteger(e.SubType) || e.SubType && i.isInteger(e.SubType.low) && i.isInteger(e.SubType.high))) return "SubType: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t)
                        if (!(i.isInteger(e.Param[t]) || e.Param[t] && i.isInteger(e.Param[t].low) && i.isInteger(e.Param[t].high))) return "Param: integer|Long[] expected"
                }
                if (null != e.Condition && e.hasOwnProperty("Condition")) {
                    if (!Array.isArray(e.Condition)) return "Condition: array expected";
                    for (t = 0; t < e.Condition.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Condition[t]);
                        if (n) return "Condition." + n
                    }
                }
                return null != e.ItemIcon && e.hasOwnProperty("ItemIcon") && !(i.isInteger(e.ItemIcon) || e.ItemIcon && i.isInteger(e.ItemIcon.low) && i.isInteger(e.ItemIcon.high)) ? "ItemIcon: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemCurrencyDiscount_Config) return e;
                var t = new a.ItemCurrencyDiscount_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.NewPrice && (i.Long ? (t.NewPrice = i.Long.fromValue(e.NewPrice)).unsigned = !1 : "string" == typeof e.NewPrice ? t.NewPrice = parseInt(e.NewPrice, 10) : "number" == typeof e.NewPrice ? t.NewPrice = e.NewPrice : "object" == typeof e.NewPrice && (t.NewPrice = new i.LongBits(e.NewPrice.low >>> 0, e.NewPrice.high >>> 0).toNumber())), null != e.DurationDays && (i.Long ? (t.DurationDays = i.Long.fromValue(e.DurationDays)).unsigned = !1 : "string" == typeof e.DurationDays ? t.DurationDays = parseInt(e.DurationDays, 10) : "number" == typeof e.DurationDays ? t.DurationDays = e.DurationDays : "object" == typeof e.DurationDays && (t.DurationDays = new i.LongBits(e.DurationDays.low >>> 0, e.DurationDays.high >>> 0).toNumber())), null != e.SubType && (i.Long ? (t.SubType = i.Long.fromValue(e.SubType)).unsigned = !1 : "string" == typeof e.SubType ? t.SubType = parseInt(e.SubType, 10) : "number" == typeof e.SubType ? t.SubType = e.SubType : "object" == typeof e.SubType && (t.SubType = new i.LongBits(e.SubType.low >>> 0, e.SubType.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".ItemCurrencyDiscount_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) i.Long ? (t.Param[n] = i.Long.fromValue(e.Param[n])).unsigned = !1 : "string" == typeof e.Param[n] ? t.Param[n] = parseInt(e.Param[n], 10) : "number" == typeof e.Param[n] ? t.Param[n] = e.Param[n] : "object" == typeof e.Param[n] && (t.Param[n] = new i.LongBits(e.Param[n].low >>> 0, e.Param[n].high >>> 0).toNumber())
                }
                if (e.Condition) {
                    if (!Array.isArray(e.Condition)) throw TypeError(".ItemCurrencyDiscount_Config.Condition: array expected");
                    for (t.Condition = [], n = 0; n < e.Condition.length; ++n) {
                        if ("object" != typeof e.Condition[n]) throw TypeError(".ItemCurrencyDiscount_Config.Condition: object expected");
                        t.Condition[n] = a.IntArray_Config.fromObject(e.Condition[n])
                    }
                }
                return null != e.ItemIcon && (i.Long ? (t.ItemIcon = i.Long.fromValue(e.ItemIcon)).unsigned = !1 : "string" == typeof e.ItemIcon ? t.ItemIcon = parseInt(e.ItemIcon, 10) : "number" == typeof e.ItemIcon ? t.ItemIcon = e.ItemIcon : "object" == typeof e.ItemIcon && (t.ItemIcon = new i.LongBits(e.ItemIcon.low >>> 0, e.ItemIcon.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = [], n.Condition = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NewPrice = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NewPrice = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DurationDays = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DurationDays = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SubType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SubType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemIcon = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.NewPrice && e.hasOwnProperty("NewPrice") && ("number" == typeof e.NewPrice ? n.NewPrice = t.longs === String ? String(e.NewPrice) : e.NewPrice : n.NewPrice = t.longs === String ? i.Long.prototype.toString.call(e.NewPrice) : t.longs === Number ? new i.LongBits(e.NewPrice.low >>> 0, e.NewPrice.high >>> 0).toNumber() : e.NewPrice), null != e.DurationDays && e.hasOwnProperty("DurationDays") && ("number" == typeof e.DurationDays ? n.DurationDays = t.longs === String ? String(e.DurationDays) : e.DurationDays : n.DurationDays = t.longs === String ? i.Long.prototype.toString.call(e.DurationDays) : t.longs === Number ? new i.LongBits(e.DurationDays.low >>> 0, e.DurationDays.high >>> 0).toNumber() : e.DurationDays), null != e.SubType && e.hasOwnProperty("SubType") && ("number" == typeof e.SubType ? n.SubType = t.longs === String ? String(e.SubType) : e.SubType : n.SubType = t.longs === String ? i.Long.prototype.toString.call(e.SubType) : t.longs === Number ? new i.LongBits(e.SubType.low >>> 0, e.SubType.high >>> 0).toNumber() : e.SubType), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) "number" == typeof e.Param[r] ? n.Param[r] = t.longs === String ? String(e.Param[r]) : e.Param[r] : n.Param[r] = t.longs === String ? i.Long.prototype.toString.call(e.Param[r]) : t.longs === Number ? new i.LongBits(e.Param[r].low >>> 0, e.Param[r].high >>> 0).toNumber() : e.Param[r]
                }
                if (e.Condition && e.Condition.length)
                    for (n.Condition = [], r = 0; r < e.Condition.length; ++r) n.Condition[r] = a.IntArray_Config.toObject(e.Condition[r], t);
                return null != e.ItemIcon && e.hasOwnProperty("ItemIcon") && ("number" == typeof e.ItemIcon ? n.ItemIcon = t.longs === String ? String(e.ItemIcon) : e.ItemIcon : n.ItemIcon = t.longs === String ? i.Long.prototype.toString.call(e.ItemIcon) : t.longs === Number ? new i.LongBits(e.ItemIcon.low >>> 0, e.ItemIcon.high >>> 0).toNumber() : e.ItemIcon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemCurrencyDiscount_Config"
            }, e
        }(), a.PetBase_Config = function() {
            function e(e) {
                if (this.Skills = [], this.ExceptElement = [], this.ShowAttr = [], this.ModelConfig = [], this.DecomposeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.prototype.ExceptElement = i.emptyArray, e.prototype.MaxStar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UIAvatar = "", e.prototype.ShowAttr = i.emptyArray, e.prototype.AvailableStartTime = "", e.prototype.Model = "", e.prototype.ModelConfig = i.emptyArray, e.prototype.DecomposeItems = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(32).int64(e.Quality), null != e.Skills && e.Skills.length)
                    for (var n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(42).fork()).ldelim();
                if (null != e.ExceptElement && e.ExceptElement.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.ExceptElement.length; ++n) t.int64(e.ExceptElement[n]);
                    t.ldelim()
                }
                if (null != e.MaxStar && Object.hasOwnProperty.call(e, "MaxStar") && t.uint32(56).int64(e.MaxStar), null != e.UIAvatar && Object.hasOwnProperty.call(e, "UIAvatar") && t.uint32(66).string(e.UIAvatar), null != e.ShowAttr && e.ShowAttr.length)
                    for (n = 0; n < e.ShowAttr.length; ++n) a.IntArray_Config.encode(e.ShowAttr[n], t.uint32(74).fork()).ldelim();
                if (null != e.AvailableStartTime && Object.hasOwnProperty.call(e, "AvailableStartTime") && t.uint32(82).string(e.AvailableStartTime), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(90).string(e.Model), null != e.ModelConfig && e.ModelConfig.length) {
                    for (t.uint32(98).fork(), n = 0; n < e.ModelConfig.length; ++n) t.int64(e.ModelConfig[n]);
                    t.ldelim()
                }
                if (null != e.DecomposeItems && e.DecomposeItems.length)
                    for (n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(106).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PetBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Quality = e.int64();
                            break;
                        case 5:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            if (r.ExceptElement && r.ExceptElement.length || (r.ExceptElement = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ExceptElement.push(e.int64());
                            else r.ExceptElement.push(e.int64());
                            break;
                        case 7:
                            r.MaxStar = e.int64();
                            break;
                        case 8:
                            r.UIAvatar = e.string();
                            break;
                        case 9:
                            r.ShowAttr && r.ShowAttr.length || (r.ShowAttr = []), r.ShowAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.AvailableStartTime = e.string();
                            break;
                        case 11:
                            r.Model = e.string();
                            break;
                        case 12:
                            if (r.ModelConfig && r.ModelConfig.length || (r.ModelConfig = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ModelConfig.push(e.int64());
                            else r.ModelConfig.push(e.int64());
                            break;
                        case 13:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (var t = 0; t < e.Skills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                }
                if (null != e.ExceptElement && e.hasOwnProperty("ExceptElement")) {
                    if (!Array.isArray(e.ExceptElement)) return "ExceptElement: array expected";
                    for (t = 0; t < e.ExceptElement.length; ++t)
                        if (!(i.isInteger(e.ExceptElement[t]) || e.ExceptElement[t] && i.isInteger(e.ExceptElement[t].low) && i.isInteger(e.ExceptElement[t].high))) return "ExceptElement: integer|Long[] expected"
                }
                if (null != e.MaxStar && e.hasOwnProperty("MaxStar") && !(i.isInteger(e.MaxStar) || e.MaxStar && i.isInteger(e.MaxStar.low) && i.isInteger(e.MaxStar.high))) return "MaxStar: integer|Long expected";
                if (null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && !i.isString(e.UIAvatar)) return "UIAvatar: string expected";
                if (null != e.ShowAttr && e.hasOwnProperty("ShowAttr")) {
                    if (!Array.isArray(e.ShowAttr)) return "ShowAttr: array expected";
                    for (t = 0; t < e.ShowAttr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ShowAttr[t])) return "ShowAttr." + n
                }
                if (null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && !i.isString(e.AvailableStartTime)) return "AvailableStartTime: string expected";
                if (null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model)) return "Model: string expected";
                if (null != e.ModelConfig && e.hasOwnProperty("ModelConfig")) {
                    if (!Array.isArray(e.ModelConfig)) return "ModelConfig: array expected";
                    for (t = 0; t < e.ModelConfig.length; ++t)
                        if (!(i.isInteger(e.ModelConfig[t]) || e.ModelConfig[t] && i.isInteger(e.ModelConfig[t].low) && i.isInteger(e.ModelConfig[t].high))) return "ModelConfig: integer|Long[] expected"
                }
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (t = 0; t < e.DecomposeItems.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.DecomposeItems[t])) return "DecomposeItems." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PetBase_Config) return e;
                var t = new a.PetBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".PetBase_Config.Skills: array expected");
                    t.Skills = [];
                    for (var n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".PetBase_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (e.ExceptElement) {
                    if (!Array.isArray(e.ExceptElement)) throw TypeError(".PetBase_Config.ExceptElement: array expected");
                    for (t.ExceptElement = [], n = 0; n < e.ExceptElement.length; ++n) i.Long ? (t.ExceptElement[n] = i.Long.fromValue(e.ExceptElement[n])).unsigned = !1 : "string" == typeof e.ExceptElement[n] ? t.ExceptElement[n] = parseInt(e.ExceptElement[n], 10) : "number" == typeof e.ExceptElement[n] ? t.ExceptElement[n] = e.ExceptElement[n] : "object" == typeof e.ExceptElement[n] && (t.ExceptElement[n] = new i.LongBits(e.ExceptElement[n].low >>> 0, e.ExceptElement[n].high >>> 0).toNumber())
                }
                if (null != e.MaxStar && (i.Long ? (t.MaxStar = i.Long.fromValue(e.MaxStar)).unsigned = !1 : "string" == typeof e.MaxStar ? t.MaxStar = parseInt(e.MaxStar, 10) : "number" == typeof e.MaxStar ? t.MaxStar = e.MaxStar : "object" == typeof e.MaxStar && (t.MaxStar = new i.LongBits(e.MaxStar.low >>> 0, e.MaxStar.high >>> 0).toNumber())), null != e.UIAvatar && (t.UIAvatar = String(e.UIAvatar)), e.ShowAttr) {
                    if (!Array.isArray(e.ShowAttr)) throw TypeError(".PetBase_Config.ShowAttr: array expected");
                    for (t.ShowAttr = [], n = 0; n < e.ShowAttr.length; ++n) {
                        if ("object" != typeof e.ShowAttr[n]) throw TypeError(".PetBase_Config.ShowAttr: object expected");
                        t.ShowAttr[n] = a.IntArray_Config.fromObject(e.ShowAttr[n])
                    }
                }
                if (null != e.AvailableStartTime && (t.AvailableStartTime = String(e.AvailableStartTime)), null != e.Model && (t.Model = String(e.Model)), e.ModelConfig) {
                    if (!Array.isArray(e.ModelConfig)) throw TypeError(".PetBase_Config.ModelConfig: array expected");
                    for (t.ModelConfig = [], n = 0; n < e.ModelConfig.length; ++n) i.Long ? (t.ModelConfig[n] = i.Long.fromValue(e.ModelConfig[n])).unsigned = !1 : "string" == typeof e.ModelConfig[n] ? t.ModelConfig[n] = parseInt(e.ModelConfig[n], 10) : "number" == typeof e.ModelConfig[n] ? t.ModelConfig[n] = e.ModelConfig[n] : "object" == typeof e.ModelConfig[n] && (t.ModelConfig[n] = new i.LongBits(e.ModelConfig[n].low >>> 0, e.ModelConfig[n].high >>> 0).toNumber())
                }
                if (e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".PetBase_Config.DecomposeItems: array expected");
                    for (t.DecomposeItems = [], n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".PetBase_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Skills = [], n.ExceptElement = [], n.ShowAttr = [], n.ModelConfig = [], n.DecomposeItems = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxStar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxStar = t.longs === String ? "0" : 0, n.UIAvatar = "", n.AvailableStartTime = "", n.Model = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), e.Skills && e.Skills.length) {
                    n.Skills = [];
                    for (var r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t)
                }
                if (e.ExceptElement && e.ExceptElement.length)
                    for (n.ExceptElement = [], r = 0; r < e.ExceptElement.length; ++r) "number" == typeof e.ExceptElement[r] ? n.ExceptElement[r] = t.longs === String ? String(e.ExceptElement[r]) : e.ExceptElement[r] : n.ExceptElement[r] = t.longs === String ? i.Long.prototype.toString.call(e.ExceptElement[r]) : t.longs === Number ? new i.LongBits(e.ExceptElement[r].low >>> 0, e.ExceptElement[r].high >>> 0).toNumber() : e.ExceptElement[r];
                if (null != e.MaxStar && e.hasOwnProperty("MaxStar") && ("number" == typeof e.MaxStar ? n.MaxStar = t.longs === String ? String(e.MaxStar) : e.MaxStar : n.MaxStar = t.longs === String ? i.Long.prototype.toString.call(e.MaxStar) : t.longs === Number ? new i.LongBits(e.MaxStar.low >>> 0, e.MaxStar.high >>> 0).toNumber() : e.MaxStar), null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && (n.UIAvatar = e.UIAvatar), e.ShowAttr && e.ShowAttr.length)
                    for (n.ShowAttr = [], r = 0; r < e.ShowAttr.length; ++r) n.ShowAttr[r] = a.IntArray_Config.toObject(e.ShowAttr[r], t);
                if (null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && (n.AvailableStartTime = e.AvailableStartTime), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), e.ModelConfig && e.ModelConfig.length)
                    for (n.ModelConfig = [], r = 0; r < e.ModelConfig.length; ++r) "number" == typeof e.ModelConfig[r] ? n.ModelConfig[r] = t.longs === String ? String(e.ModelConfig[r]) : e.ModelConfig[r] : n.ModelConfig[r] = t.longs === String ? i.Long.prototype.toString.call(e.ModelConfig[r]) : t.longs === Number ? new i.LongBits(e.ModelConfig[r].low >>> 0, e.ModelConfig[r].high >>> 0).toNumber() : e.ModelConfig[r];
                if (e.DecomposeItems && e.DecomposeItems.length)
                    for (n.DecomposeItems = [], r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PetBase_Config"
            }, e
        }(), a.PetQuality_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.StarAttrs = [], this.LevelAttrs = [], this.DecomposeItems = [], this.EntryUnlock = [], this.Slots = [], this.TeamAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.StarAttrs = i.emptyArray, e.prototype.LevelAttrs = i.emptyArray, e.prototype.StarScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DecomposeItems = i.emptyArray, e.prototype.EntryUnlock = i.emptyArray, e.prototype.Slots = i.emptyArray, e.prototype.TeamAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.StarAttrs && e.StarAttrs.length)
                    for (n = 0; n < e.StarAttrs.length; ++n) a.IntArray_Config.encode(e.StarAttrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.LevelAttrs && e.LevelAttrs.length)
                    for (n = 0; n < e.LevelAttrs.length; ++n) a.IntArray_Config.encode(e.LevelAttrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.StarScore && Object.hasOwnProperty.call(e, "StarScore") && t.uint32(40).int64(e.StarScore), null != e.LevelScore && Object.hasOwnProperty.call(e, "LevelScore") && t.uint32(48).int64(e.LevelScore), null != e.DecomposeItems && e.DecomposeItems.length)
                    for (n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(58).fork()).ldelim();
                if (null != e.EntryUnlock && e.EntryUnlock.length)
                    for (n = 0; n < e.EntryUnlock.length; ++n) a.IntArray_Config.encode(e.EntryUnlock[n], t.uint32(66).fork()).ldelim();
                if (null != e.Slots && e.Slots.length) {
                    for (t.uint32(74).fork(), n = 0; n < e.Slots.length; ++n) t.int64(e.Slots[n]);
                    t.ldelim()
                }
                if (null != e.TeamAttrs && e.TeamAttrs.length)
                    for (n = 0; n < e.TeamAttrs.length; ++n) a.IntArray_Config.encode(e.TeamAttrs[n], t.uint32(82).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PetQuality_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.StarAttrs && r.StarAttrs.length || (r.StarAttrs = []), r.StarAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.LevelAttrs && r.LevelAttrs.length || (r.LevelAttrs = []), r.LevelAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.StarScore = e.int64();
                            break;
                        case 6:
                            r.LevelScore = e.int64();
                            break;
                        case 7:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.EntryUnlock && r.EntryUnlock.length || (r.EntryUnlock = []), r.EntryUnlock.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            if (r.Slots && r.Slots.length || (r.Slots = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Slots.push(e.int64());
                            else r.Slots.push(e.int64());
                            break;
                        case 10:
                            r.TeamAttrs && r.TeamAttrs.length || (r.TeamAttrs = []), r.TeamAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.StarAttrs && e.hasOwnProperty("StarAttrs")) {
                    if (!Array.isArray(e.StarAttrs)) return "StarAttrs: array expected";
                    for (t = 0; t < e.StarAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.StarAttrs[t])) return "StarAttrs." + n
                }
                if (null != e.LevelAttrs && e.hasOwnProperty("LevelAttrs")) {
                    if (!Array.isArray(e.LevelAttrs)) return "LevelAttrs: array expected";
                    for (t = 0; t < e.LevelAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelAttrs[t])) return "LevelAttrs." + n
                }
                if (null != e.StarScore && e.hasOwnProperty("StarScore") && !(i.isInteger(e.StarScore) || e.StarScore && i.isInteger(e.StarScore.low) && i.isInteger(e.StarScore.high))) return "StarScore: integer|Long expected";
                if (null != e.LevelScore && e.hasOwnProperty("LevelScore") && !(i.isInteger(e.LevelScore) || e.LevelScore && i.isInteger(e.LevelScore.low) && i.isInteger(e.LevelScore.high))) return "LevelScore: integer|Long expected";
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (t = 0; t < e.DecomposeItems.length; ++t)
                        if (n = a.IntArray_Config.verify(e.DecomposeItems[t])) return "DecomposeItems." + n
                }
                if (null != e.EntryUnlock && e.hasOwnProperty("EntryUnlock")) {
                    if (!Array.isArray(e.EntryUnlock)) return "EntryUnlock: array expected";
                    for (t = 0; t < e.EntryUnlock.length; ++t)
                        if (n = a.IntArray_Config.verify(e.EntryUnlock[t])) return "EntryUnlock." + n
                }
                if (null != e.Slots && e.hasOwnProperty("Slots")) {
                    if (!Array.isArray(e.Slots)) return "Slots: array expected";
                    for (t = 0; t < e.Slots.length; ++t)
                        if (!(i.isInteger(e.Slots[t]) || e.Slots[t] && i.isInteger(e.Slots[t].low) && i.isInteger(e.Slots[t].high))) return "Slots: integer|Long[] expected"
                }
                if (null != e.TeamAttrs && e.hasOwnProperty("TeamAttrs")) {
                    if (!Array.isArray(e.TeamAttrs)) return "TeamAttrs: array expected";
                    for (t = 0; t < e.TeamAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.TeamAttrs[t])) return "TeamAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PetQuality_Config) return e;
                var t = new a.PetQuality_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".PetQuality_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".PetQuality_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.StarAttrs) {
                    if (!Array.isArray(e.StarAttrs)) throw TypeError(".PetQuality_Config.StarAttrs: array expected");
                    for (t.StarAttrs = [], n = 0; n < e.StarAttrs.length; ++n) {
                        if ("object" != typeof e.StarAttrs[n]) throw TypeError(".PetQuality_Config.StarAttrs: object expected");
                        t.StarAttrs[n] = a.IntArray_Config.fromObject(e.StarAttrs[n])
                    }
                }
                if (e.LevelAttrs) {
                    if (!Array.isArray(e.LevelAttrs)) throw TypeError(".PetQuality_Config.LevelAttrs: array expected");
                    for (t.LevelAttrs = [], n = 0; n < e.LevelAttrs.length; ++n) {
                        if ("object" != typeof e.LevelAttrs[n]) throw TypeError(".PetQuality_Config.LevelAttrs: object expected");
                        t.LevelAttrs[n] = a.IntArray_Config.fromObject(e.LevelAttrs[n])
                    }
                }
                if (null != e.StarScore && (i.Long ? (t.StarScore = i.Long.fromValue(e.StarScore)).unsigned = !1 : "string" == typeof e.StarScore ? t.StarScore = parseInt(e.StarScore, 10) : "number" == typeof e.StarScore ? t.StarScore = e.StarScore : "object" == typeof e.StarScore && (t.StarScore = new i.LongBits(e.StarScore.low >>> 0, e.StarScore.high >>> 0).toNumber())), null != e.LevelScore && (i.Long ? (t.LevelScore = i.Long.fromValue(e.LevelScore)).unsigned = !1 : "string" == typeof e.LevelScore ? t.LevelScore = parseInt(e.LevelScore, 10) : "number" == typeof e.LevelScore ? t.LevelScore = e.LevelScore : "object" == typeof e.LevelScore && (t.LevelScore = new i.LongBits(e.LevelScore.low >>> 0, e.LevelScore.high >>> 0).toNumber())), e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".PetQuality_Config.DecomposeItems: array expected");
                    for (t.DecomposeItems = [], n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".PetQuality_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                if (e.EntryUnlock) {
                    if (!Array.isArray(e.EntryUnlock)) throw TypeError(".PetQuality_Config.EntryUnlock: array expected");
                    for (t.EntryUnlock = [], n = 0; n < e.EntryUnlock.length; ++n) {
                        if ("object" != typeof e.EntryUnlock[n]) throw TypeError(".PetQuality_Config.EntryUnlock: object expected");
                        t.EntryUnlock[n] = a.IntArray_Config.fromObject(e.EntryUnlock[n])
                    }
                }
                if (e.Slots) {
                    if (!Array.isArray(e.Slots)) throw TypeError(".PetQuality_Config.Slots: array expected");
                    for (t.Slots = [], n = 0; n < e.Slots.length; ++n) i.Long ? (t.Slots[n] = i.Long.fromValue(e.Slots[n])).unsigned = !1 : "string" == typeof e.Slots[n] ? t.Slots[n] = parseInt(e.Slots[n], 10) : "number" == typeof e.Slots[n] ? t.Slots[n] = e.Slots[n] : "object" == typeof e.Slots[n] && (t.Slots[n] = new i.LongBits(e.Slots[n].low >>> 0, e.Slots[n].high >>> 0).toNumber())
                }
                if (e.TeamAttrs) {
                    if (!Array.isArray(e.TeamAttrs)) throw TypeError(".PetQuality_Config.TeamAttrs: array expected");
                    for (t.TeamAttrs = [], n = 0; n < e.TeamAttrs.length; ++n) {
                        if ("object" != typeof e.TeamAttrs[n]) throw TypeError(".PetQuality_Config.TeamAttrs: object expected");
                        t.TeamAttrs[n] = a.IntArray_Config.fromObject(e.TeamAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.StarAttrs = [], n.LevelAttrs = [], n.DecomposeItems = [], n.EntryUnlock = [], n.Slots = [], n.TeamAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.StarScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LevelScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LevelScore = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.StarAttrs && e.StarAttrs.length)
                    for (n.StarAttrs = [], r = 0; r < e.StarAttrs.length; ++r) n.StarAttrs[r] = a.IntArray_Config.toObject(e.StarAttrs[r], t);
                if (e.LevelAttrs && e.LevelAttrs.length)
                    for (n.LevelAttrs = [], r = 0; r < e.LevelAttrs.length; ++r) n.LevelAttrs[r] = a.IntArray_Config.toObject(e.LevelAttrs[r], t);
                if (null != e.StarScore && e.hasOwnProperty("StarScore") && ("number" == typeof e.StarScore ? n.StarScore = t.longs === String ? String(e.StarScore) : e.StarScore : n.StarScore = t.longs === String ? i.Long.prototype.toString.call(e.StarScore) : t.longs === Number ? new i.LongBits(e.StarScore.low >>> 0, e.StarScore.high >>> 0).toNumber() : e.StarScore), null != e.LevelScore && e.hasOwnProperty("LevelScore") && ("number" == typeof e.LevelScore ? n.LevelScore = t.longs === String ? String(e.LevelScore) : e.LevelScore : n.LevelScore = t.longs === String ? i.Long.prototype.toString.call(e.LevelScore) : t.longs === Number ? new i.LongBits(e.LevelScore.low >>> 0, e.LevelScore.high >>> 0).toNumber() : e.LevelScore), e.DecomposeItems && e.DecomposeItems.length)
                    for (n.DecomposeItems = [], r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t);
                if (e.EntryUnlock && e.EntryUnlock.length)
                    for (n.EntryUnlock = [], r = 0; r < e.EntryUnlock.length; ++r) n.EntryUnlock[r] = a.IntArray_Config.toObject(e.EntryUnlock[r], t);
                if (e.Slots && e.Slots.length)
                    for (n.Slots = [], r = 0; r < e.Slots.length; ++r) "number" == typeof e.Slots[r] ? n.Slots[r] = t.longs === String ? String(e.Slots[r]) : e.Slots[r] : n.Slots[r] = t.longs === String ? i.Long.prototype.toString.call(e.Slots[r]) : t.longs === Number ? new i.LongBits(e.Slots[r].low >>> 0, e.Slots[r].high >>> 0).toNumber() : e.Slots[r];
                if (e.TeamAttrs && e.TeamAttrs.length)
                    for (n.TeamAttrs = [], r = 0; r < e.TeamAttrs.length; ++r) n.TeamAttrs[r] = a.IntArray_Config.toObject(e.TeamAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PetQuality_Config"
            }, e
        }(), a.CollectionStory_Config = function() {
            function e(e) {
                if (this.ContentId = [], this.StarIds = [], this.Attrs = [], this.BackgroundArray = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ContentId = i.emptyArray, e.prototype.StarIds = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Time = "", e.prototype.BackgroundArray = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ContentId && e.ContentId.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.ContentId.length; ++n) t.int64(e.ContentId[n]);
                    t.ldelim()
                }
                if (null != e.StarIds && e.StarIds.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.StarIds.length; ++n) t.int64(e.StarIds[n]);
                    t.ldelim()
                }
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(50).fork()).ldelim();
                if (null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(72).int64(e.SortId), null != e.Time && Object.hasOwnProperty.call(e, "Time") && t.uint32(90).string(e.Time), null != e.BackgroundArray && e.BackgroundArray.length)
                    for (n = 0; n < e.BackgroundArray.length; ++n) t.uint32(114).string(e.BackgroundArray[n]);
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CollectionStory_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            if (r.ContentId && r.ContentId.length || (r.ContentId = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ContentId.push(e.int64());
                            else r.ContentId.push(e.int64());
                            break;
                        case 5:
                            if (r.StarIds && r.StarIds.length || (r.StarIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.StarIds.push(e.int64());
                            else r.StarIds.push(e.int64());
                            break;
                        case 6:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.SortId = e.int64();
                            break;
                        case 11:
                            r.Time = e.string();
                            break;
                        case 14:
                            r.BackgroundArray && r.BackgroundArray.length || (r.BackgroundArray = []), r.BackgroundArray.push(e.string());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.ContentId && e.hasOwnProperty("ContentId")) {
                    if (!Array.isArray(e.ContentId)) return "ContentId: array expected";
                    for (var t = 0; t < e.ContentId.length; ++t)
                        if (!(i.isInteger(e.ContentId[t]) || e.ContentId[t] && i.isInteger(e.ContentId[t].low) && i.isInteger(e.ContentId[t].high))) return "ContentId: integer|Long[] expected"
                }
                if (null != e.StarIds && e.hasOwnProperty("StarIds")) {
                    if (!Array.isArray(e.StarIds)) return "StarIds: array expected";
                    for (t = 0; t < e.StarIds.length; ++t)
                        if (!(i.isInteger(e.StarIds[t]) || e.StarIds[t] && i.isInteger(e.StarIds[t].low) && i.isInteger(e.StarIds[t].high))) return "StarIds: integer|Long[] expected"
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                if (null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high))) return "SortId: integer|Long expected";
                if (null != e.Time && e.hasOwnProperty("Time") && !i.isString(e.Time)) return "Time: string expected";
                if (null != e.BackgroundArray && e.hasOwnProperty("BackgroundArray")) {
                    if (!Array.isArray(e.BackgroundArray)) return "BackgroundArray: array expected";
                    for (t = 0; t < e.BackgroundArray.length; ++t)
                        if (!i.isString(e.BackgroundArray[t])) return "BackgroundArray: string[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CollectionStory_Config) return e;
                var t = new a.CollectionStory_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.ContentId) {
                    if (!Array.isArray(e.ContentId)) throw TypeError(".CollectionStory_Config.ContentId: array expected");
                    t.ContentId = [];
                    for (var n = 0; n < e.ContentId.length; ++n) i.Long ? (t.ContentId[n] = i.Long.fromValue(e.ContentId[n])).unsigned = !1 : "string" == typeof e.ContentId[n] ? t.ContentId[n] = parseInt(e.ContentId[n], 10) : "number" == typeof e.ContentId[n] ? t.ContentId[n] = e.ContentId[n] : "object" == typeof e.ContentId[n] && (t.ContentId[n] = new i.LongBits(e.ContentId[n].low >>> 0, e.ContentId[n].high >>> 0).toNumber())
                }
                if (e.StarIds) {
                    if (!Array.isArray(e.StarIds)) throw TypeError(".CollectionStory_Config.StarIds: array expected");
                    for (t.StarIds = [], n = 0; n < e.StarIds.length; ++n) i.Long ? (t.StarIds[n] = i.Long.fromValue(e.StarIds[n])).unsigned = !1 : "string" == typeof e.StarIds[n] ? t.StarIds[n] = parseInt(e.StarIds[n], 10) : "number" == typeof e.StarIds[n] ? t.StarIds[n] = e.StarIds[n] : "object" == typeof e.StarIds[n] && (t.StarIds[n] = new i.LongBits(e.StarIds[n].low >>> 0, e.StarIds[n].high >>> 0).toNumber())
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".CollectionStory_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".CollectionStory_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), null != e.Time && (t.Time = String(e.Time)), e.BackgroundArray) {
                    if (!Array.isArray(e.BackgroundArray)) throw TypeError(".CollectionStory_Config.BackgroundArray: array expected");
                    for (t.BackgroundArray = [], n = 0; n < e.BackgroundArray.length; ++n) t.BackgroundArray[n] = String(e.BackgroundArray[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ContentId = [], n.StarIds = [], n.Attrs = [], n.BackgroundArray = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0, n.Time = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.ContentId && e.ContentId.length) {
                    n.ContentId = [];
                    for (var r = 0; r < e.ContentId.length; ++r) "number" == typeof e.ContentId[r] ? n.ContentId[r] = t.longs === String ? String(e.ContentId[r]) : e.ContentId[r] : n.ContentId[r] = t.longs === String ? i.Long.prototype.toString.call(e.ContentId[r]) : t.longs === Number ? new i.LongBits(e.ContentId[r].low >>> 0, e.ContentId[r].high >>> 0).toNumber() : e.ContentId[r]
                }
                if (e.StarIds && e.StarIds.length)
                    for (n.StarIds = [], r = 0; r < e.StarIds.length; ++r) "number" == typeof e.StarIds[r] ? n.StarIds[r] = t.longs === String ? String(e.StarIds[r]) : e.StarIds[r] : n.StarIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.StarIds[r]) : t.longs === Number ? new i.LongBits(e.StarIds[r].low >>> 0, e.StarIds[r].high >>> 0).toNumber() : e.StarIds[r];
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), null != e.Time && e.hasOwnProperty("Time") && (n.Time = e.Time), e.BackgroundArray && e.BackgroundArray.length)
                    for (n.BackgroundArray = [], r = 0; r < e.BackgroundArray.length; ++r) n.BackgroundArray[r] = e.BackgroundArray[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CollectionStory_Config"
            }, e
        }(), a.CollectionStoryStar_Config = function() {
            function e(e) {
                if (this.Rewards = [], this.ItemCounts = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemCounts = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(16).int64(e.Star), null != e.ItemCount && Object.hasOwnProperty.call(e, "ItemCount") && t.uint32(24).int64(e.ItemCount), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                if (null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(40).int64(e.ItemId), null != e.ItemCounts && e.ItemCounts.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.ItemCounts.length; ++n) t.int64(e.ItemCounts[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CollectionStoryStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Star = e.int64();
                            break;
                        case 3:
                            r.ItemCount = e.int64();
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.ItemId = e.int64();
                            break;
                        case 7:
                            if (r.ItemCounts && r.ItemCounts.length || (r.ItemCounts = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ItemCounts.push(e.int64());
                            else r.ItemCounts.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high))) return "Star: integer|Long expected";
                if (null != e.ItemCount && e.hasOwnProperty("ItemCount") && !(i.isInteger(e.ItemCount) || e.ItemCount && i.isInteger(e.ItemCount.low) && i.isInteger(e.ItemCount.high))) return "ItemCount: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                if (null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high))) return "ItemId: integer|Long expected";
                if (null != e.ItemCounts && e.hasOwnProperty("ItemCounts")) {
                    if (!Array.isArray(e.ItemCounts)) return "ItemCounts: array expected";
                    for (t = 0; t < e.ItemCounts.length; ++t)
                        if (!(i.isInteger(e.ItemCounts[t]) || e.ItemCounts[t] && i.isInteger(e.ItemCounts[t].low) && i.isInteger(e.ItemCounts[t].high))) return "ItemCounts: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CollectionStoryStar_Config) return e;
                var t = new a.CollectionStoryStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), null != e.ItemCount && (i.Long ? (t.ItemCount = i.Long.fromValue(e.ItemCount)).unsigned = !1 : "string" == typeof e.ItemCount ? t.ItemCount = parseInt(e.ItemCount, 10) : "number" == typeof e.ItemCount ? t.ItemCount = e.ItemCount : "object" == typeof e.ItemCount && (t.ItemCount = new i.LongBits(e.ItemCount.low >>> 0, e.ItemCount.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".CollectionStoryStar_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".CollectionStoryStar_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), e.ItemCounts) {
                    if (!Array.isArray(e.ItemCounts)) throw TypeError(".CollectionStoryStar_Config.ItemCounts: array expected");
                    for (t.ItemCounts = [], n = 0; n < e.ItemCounts.length; ++n) i.Long ? (t.ItemCounts[n] = i.Long.fromValue(e.ItemCounts[n])).unsigned = !1 : "string" == typeof e.ItemCounts[n] ? t.ItemCounts[n] = parseInt(e.ItemCounts[n], 10) : "number" == typeof e.ItemCounts[n] ? t.ItemCounts[n] = e.ItemCounts[n] : "object" == typeof e.ItemCounts[n] && (t.ItemCounts[n] = new i.LongBits(e.ItemCounts[n].low >>> 0, e.ItemCounts[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.ItemCounts = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), null != e.ItemCount && e.hasOwnProperty("ItemCount") && ("number" == typeof e.ItemCount ? n.ItemCount = t.longs === String ? String(e.ItemCount) : e.ItemCount : n.ItemCount = t.longs === String ? i.Long.prototype.toString.call(e.ItemCount) : t.longs === Number ? new i.LongBits(e.ItemCount.low >>> 0, e.ItemCount.high >>> 0).toNumber() : e.ItemCount), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                if (null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), e.ItemCounts && e.ItemCounts.length)
                    for (n.ItemCounts = [], r = 0; r < e.ItemCounts.length; ++r) "number" == typeof e.ItemCounts[r] ? n.ItemCounts[r] = t.longs === String ? String(e.ItemCounts[r]) : e.ItemCounts[r] : n.ItemCounts[r] = t.longs === String ? i.Long.prototype.toString.call(e.ItemCounts[r]) : t.longs === Number ? new i.LongBits(e.ItemCounts[r].low >>> 0, e.ItemCounts[r].high >>> 0).toNumber() : e.ItemCounts[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CollectionStoryStar_Config"
            }, e
        }(), a.CollectionStoryContent_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CollectionStoryContent_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CollectionStoryContent_Config) return e;
                var t = new a.CollectionStoryContent_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CollectionStoryContent_Config"
            }, e
        }(), a.PetStar_Config = function() {
            function e(e) {
                if (this.StarMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarMaterials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MaxLevel && Object.hasOwnProperty.call(e, "MaxLevel") && t.uint32(16).int64(e.MaxLevel), null != e.StarMaterials && e.StarMaterials.length)
                    for (var n = 0; n < e.StarMaterials.length; ++n) a.IntArray_Config.encode(e.StarMaterials[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PetStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.MaxLevel = e.int64();
                            break;
                        case 3:
                            r.StarMaterials && r.StarMaterials.length || (r.StarMaterials = []), r.StarMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && !(i.isInteger(e.MaxLevel) || e.MaxLevel && i.isInteger(e.MaxLevel.low) && i.isInteger(e.MaxLevel.high))) return "MaxLevel: integer|Long expected";
                if (null != e.StarMaterials && e.hasOwnProperty("StarMaterials")) {
                    if (!Array.isArray(e.StarMaterials)) return "StarMaterials: array expected";
                    for (var t = 0; t < e.StarMaterials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.StarMaterials[t]);
                        if (n) return "StarMaterials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PetStar_Config) return e;
                var t = new a.PetStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.MaxLevel && (i.Long ? (t.MaxLevel = i.Long.fromValue(e.MaxLevel)).unsigned = !1 : "string" == typeof e.MaxLevel ? t.MaxLevel = parseInt(e.MaxLevel, 10) : "number" == typeof e.MaxLevel ? t.MaxLevel = e.MaxLevel : "object" == typeof e.MaxLevel && (t.MaxLevel = new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber())), e.StarMaterials) {
                    if (!Array.isArray(e.StarMaterials)) throw TypeError(".PetStar_Config.StarMaterials: array expected");
                    t.StarMaterials = [];
                    for (var n = 0; n < e.StarMaterials.length; ++n) {
                        if ("object" != typeof e.StarMaterials[n]) throw TypeError(".PetStar_Config.StarMaterials: object expected");
                        t.StarMaterials[n] = a.IntArray_Config.fromObject(e.StarMaterials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.StarMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && ("number" == typeof e.MaxLevel ? n.MaxLevel = t.longs === String ? String(e.MaxLevel) : e.MaxLevel : n.MaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxLevel) : t.longs === Number ? new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber() : e.MaxLevel), e.StarMaterials && e.StarMaterials.length) {
                    n.StarMaterials = [];
                    for (var r = 0; r < e.StarMaterials.length; ++r) n.StarMaterials[r] = a.IntArray_Config.toObject(e.StarMaterials[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PetStar_Config"
            }, e
        }(), a.PetLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PetLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PetLevel_Config) return e;
                var t = new a.PetLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".PetLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".PetLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PetLevel_Config"
            }, e
        }(), a.PetNest_Config = function() {
            function e(e) {
                if (this.Requirements = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Requirements = i.emptyArray, e.prototype.IsPrivilege = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Requirements && e.Requirements.length)
                    for (var n = 0; n < e.Requirements.length; ++n) a.IntArray_Config.encode(e.Requirements[n], t.uint32(18).fork()).ldelim();
                return null != e.IsPrivilege && Object.hasOwnProperty.call(e, "IsPrivilege") && t.uint32(24).int64(e.IsPrivilege), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PetNest_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Requirements && r.Requirements.length || (r.Requirements = []), r.Requirements.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.IsPrivilege = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Requirements && e.hasOwnProperty("Requirements")) {
                    if (!Array.isArray(e.Requirements)) return "Requirements: array expected";
                    for (var t = 0; t < e.Requirements.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Requirements[t]);
                        if (n) return "Requirements." + n
                    }
                }
                return null != e.IsPrivilege && e.hasOwnProperty("IsPrivilege") && !(i.isInteger(e.IsPrivilege) || e.IsPrivilege && i.isInteger(e.IsPrivilege.low) && i.isInteger(e.IsPrivilege.high)) ? "IsPrivilege: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PetNest_Config) return e;
                var t = new a.PetNest_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Requirements) {
                    if (!Array.isArray(e.Requirements)) throw TypeError(".PetNest_Config.Requirements: array expected");
                    t.Requirements = [];
                    for (var n = 0; n < e.Requirements.length; ++n) {
                        if ("object" != typeof e.Requirements[n]) throw TypeError(".PetNest_Config.Requirements: object expected");
                        t.Requirements[n] = a.IntArray_Config.fromObject(e.Requirements[n])
                    }
                }
                return null != e.IsPrivilege && (i.Long ? (t.IsPrivilege = i.Long.fromValue(e.IsPrivilege)).unsigned = !1 : "string" == typeof e.IsPrivilege ? t.IsPrivilege = parseInt(e.IsPrivilege, 10) : "number" == typeof e.IsPrivilege ? t.IsPrivilege = e.IsPrivilege : "object" == typeof e.IsPrivilege && (t.IsPrivilege = new i.LongBits(e.IsPrivilege.low >>> 0, e.IsPrivilege.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Requirements = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.IsPrivilege = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsPrivilege = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Requirements && e.Requirements.length) {
                    n.Requirements = [];
                    for (var r = 0; r < e.Requirements.length; ++r) n.Requirements[r] = a.IntArray_Config.toObject(e.Requirements[r], t)
                }
                return null != e.IsPrivilege && e.hasOwnProperty("IsPrivilege") && ("number" == typeof e.IsPrivilege ? n.IsPrivilege = t.longs === String ? String(e.IsPrivilege) : e.IsPrivilege : n.IsPrivilege = t.longs === String ? i.Long.prototype.toString.call(e.IsPrivilege) : t.longs === Number ? new i.LongBits(e.IsPrivilege.low >>> 0, e.IsPrivilege.high >>> 0).toNumber() : e.IsPrivilege), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PetNest_Config"
            }, e
        }(), a.SaintsWarMap_Config = function() {
            function e(e) {
                if (this.FirstPassReward = [], this.CommonReward = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BattlePower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FirstPassReward = i.emptyArray, e.prototype.CommonReward = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.BattlePower && Object.hasOwnProperty.call(e, "BattlePower") && t.uint32(24).int64(e.BattlePower), null != e.FirstPassReward && e.FirstPassReward.length)
                    for (var n = 0; n < e.FirstPassReward.length; ++n) a.IntArray_Config.encode(e.FirstPassReward[n], t.uint32(34).fork()).ldelim();
                if (null != e.CommonReward && e.CommonReward.length)
                    for (n = 0; n < e.CommonReward.length; ++n) a.IntArray_Config.encode(e.CommonReward[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SaintsWarMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.BattlePower = e.int64();
                            break;
                        case 4:
                            r.FirstPassReward && r.FirstPassReward.length || (r.FirstPassReward = []), r.FirstPassReward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.CommonReward && r.CommonReward.length || (r.CommonReward = []), r.CommonReward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.BattlePower && e.hasOwnProperty("BattlePower") && !(i.isInteger(e.BattlePower) || e.BattlePower && i.isInteger(e.BattlePower.low) && i.isInteger(e.BattlePower.high))) return "BattlePower: integer|Long expected";
                if (null != e.FirstPassReward && e.hasOwnProperty("FirstPassReward")) {
                    if (!Array.isArray(e.FirstPassReward)) return "FirstPassReward: array expected";
                    for (var t = 0; t < e.FirstPassReward.length; ++t)
                        if (n = a.IntArray_Config.verify(e.FirstPassReward[t])) return "FirstPassReward." + n
                }
                if (null != e.CommonReward && e.hasOwnProperty("CommonReward")) {
                    if (!Array.isArray(e.CommonReward)) return "CommonReward: array expected";
                    for (t = 0; t < e.CommonReward.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.CommonReward[t])) return "CommonReward." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SaintsWarMap_Config) return e;
                var t = new a.SaintsWarMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.BattlePower && (i.Long ? (t.BattlePower = i.Long.fromValue(e.BattlePower)).unsigned = !1 : "string" == typeof e.BattlePower ? t.BattlePower = parseInt(e.BattlePower, 10) : "number" == typeof e.BattlePower ? t.BattlePower = e.BattlePower : "object" == typeof e.BattlePower && (t.BattlePower = new i.LongBits(e.BattlePower.low >>> 0, e.BattlePower.high >>> 0).toNumber())), e.FirstPassReward) {
                    if (!Array.isArray(e.FirstPassReward)) throw TypeError(".SaintsWarMap_Config.FirstPassReward: array expected");
                    t.FirstPassReward = [];
                    for (var n = 0; n < e.FirstPassReward.length; ++n) {
                        if ("object" != typeof e.FirstPassReward[n]) throw TypeError(".SaintsWarMap_Config.FirstPassReward: object expected");
                        t.FirstPassReward[n] = a.IntArray_Config.fromObject(e.FirstPassReward[n])
                    }
                }
                if (e.CommonReward) {
                    if (!Array.isArray(e.CommonReward)) throw TypeError(".SaintsWarMap_Config.CommonReward: array expected");
                    for (t.CommonReward = [], n = 0; n < e.CommonReward.length; ++n) {
                        if ("object" != typeof e.CommonReward[n]) throw TypeError(".SaintsWarMap_Config.CommonReward: object expected");
                        t.CommonReward[n] = a.IntArray_Config.fromObject(e.CommonReward[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.FirstPassReward = [], n.CommonReward = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.BattlePower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BattlePower = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.BattlePower && e.hasOwnProperty("BattlePower") && ("number" == typeof e.BattlePower ? n.BattlePower = t.longs === String ? String(e.BattlePower) : e.BattlePower : n.BattlePower = t.longs === String ? i.Long.prototype.toString.call(e.BattlePower) : t.longs === Number ? new i.LongBits(e.BattlePower.low >>> 0, e.BattlePower.high >>> 0).toNumber() : e.BattlePower), e.FirstPassReward && e.FirstPassReward.length) {
                    n.FirstPassReward = [];
                    for (var r = 0; r < e.FirstPassReward.length; ++r) n.FirstPassReward[r] = a.IntArray_Config.toObject(e.FirstPassReward[r], t)
                }
                if (e.CommonReward && e.CommonReward.length)
                    for (n.CommonReward = [], r = 0; r < e.CommonReward.length; ++r) n.CommonReward[r] = a.IntArray_Config.toObject(e.CommonReward[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SaintsWarMap_Config"
            }, e
        }(), a.SaintsWarDifficultLevel_Config = function() {
            function e(e) {
                if (this.MapIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MapIds && e.MapIds.length)
                    for (var n = 0; n < e.MapIds.length; ++n) a.IntArray_Config.encode(e.MapIds[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SaintsWarDifficultLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.MapIds && r.MapIds.length || (r.MapIds = []), r.MapIds.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MapIds && e.hasOwnProperty("MapIds")) {
                    if (!Array.isArray(e.MapIds)) return "MapIds: array expected";
                    for (var t = 0; t < e.MapIds.length; ++t) {
                        var n = a.IntArray_Config.verify(e.MapIds[t]);
                        if (n) return "MapIds." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SaintsWarDifficultLevel_Config) return e;
                var t = new a.SaintsWarDifficultLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.MapIds) {
                    if (!Array.isArray(e.MapIds)) throw TypeError(".SaintsWarDifficultLevel_Config.MapIds: array expected");
                    t.MapIds = [];
                    for (var n = 0; n < e.MapIds.length; ++n) {
                        if ("object" != typeof e.MapIds[n]) throw TypeError(".SaintsWarDifficultLevel_Config.MapIds: object expected");
                        t.MapIds[n] = a.IntArray_Config.fromObject(e.MapIds[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.MapIds = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.MapIds && e.MapIds.length) {
                    n.MapIds = [];
                    for (var r = 0; r < e.MapIds.length; ++r) n.MapIds[r] = a.IntArray_Config.toObject(e.MapIds[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SaintsWarDifficultLevel_Config"
            }, e
        }(), a.SaintsWarResetData_Config = function() {
            function e(e) {
                if (this.HeroIds = [], this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroIds = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.StartTime = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroIds && e.HeroIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.HeroIds.length; ++n) t.int64(e.HeroIds[n]);
                    t.ldelim()
                }
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return null != e.StartTime && Object.hasOwnProperty.call(e, "StartTime") && t.uint32(34).string(e.StartTime), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SaintsWarResetData_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.HeroIds && r.HeroIds.length || (r.HeroIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.HeroIds.push(e.int64());
                            else r.HeroIds.push(e.int64());
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.StartTime = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroIds && e.hasOwnProperty("HeroIds")) {
                    if (!Array.isArray(e.HeroIds)) return "HeroIds: array expected";
                    for (var t = 0; t < e.HeroIds.length; ++t)
                        if (!(i.isInteger(e.HeroIds[t]) || e.HeroIds[t] && i.isInteger(e.HeroIds[t].low) && i.isInteger(e.HeroIds[t].high))) return "HeroIds: integer|Long[] expected"
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.StartTime && e.hasOwnProperty("StartTime") && !i.isString(e.StartTime) ? "StartTime: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SaintsWarResetData_Config) return e;
                var t = new a.SaintsWarResetData_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.HeroIds) {
                    if (!Array.isArray(e.HeroIds)) throw TypeError(".SaintsWarResetData_Config.HeroIds: array expected");
                    t.HeroIds = [];
                    for (var n = 0; n < e.HeroIds.length; ++n) i.Long ? (t.HeroIds[n] = i.Long.fromValue(e.HeroIds[n])).unsigned = !1 : "string" == typeof e.HeroIds[n] ? t.HeroIds[n] = parseInt(e.HeroIds[n], 10) : "number" == typeof e.HeroIds[n] ? t.HeroIds[n] = e.HeroIds[n] : "object" == typeof e.HeroIds[n] && (t.HeroIds[n] = new i.LongBits(e.HeroIds[n].low >>> 0, e.HeroIds[n].high >>> 0).toNumber())
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".SaintsWarResetData_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".SaintsWarResetData_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.StartTime && (t.StartTime = String(e.StartTime)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.HeroIds = [], n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.StartTime = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.HeroIds && e.HeroIds.length) {
                    n.HeroIds = [];
                    for (var r = 0; r < e.HeroIds.length; ++r) "number" == typeof e.HeroIds[r] ? n.HeroIds[r] = t.longs === String ? String(e.HeroIds[r]) : e.HeroIds[r] : n.HeroIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.HeroIds[r]) : t.longs === Number ? new i.LongBits(e.HeroIds[r].low >>> 0, e.HeroIds[r].high >>> 0).toNumber() : e.HeroIds[r]
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                return null != e.StartTime && e.hasOwnProperty("StartTime") && (n.StartTime = e.StartTime), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SaintsWarResetData_Config"
            }, e
        }(), a.HeroLuckyCharm_Config = function() {
            function e(e) {
                if (this.Packing = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Packing = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.SkillId && Object.hasOwnProperty.call(e, "SkillId") && t.uint32(16).int64(e.SkillId), null != e.Packing && e.Packing.length)
                    for (var n = 0; n < e.Packing.length; ++n) a.IntArray_Config.encode(e.Packing[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroLuckyCharm_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.SkillId = e.int64();
                            break;
                        case 3:
                            r.Packing && r.Packing.length || (r.Packing = []), r.Packing.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.SkillId && e.hasOwnProperty("SkillId") && !(i.isInteger(e.SkillId) || e.SkillId && i.isInteger(e.SkillId.low) && i.isInteger(e.SkillId.high))) return "SkillId: integer|Long expected";
                if (null != e.Packing && e.hasOwnProperty("Packing")) {
                    if (!Array.isArray(e.Packing)) return "Packing: array expected";
                    for (var t = 0; t < e.Packing.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Packing[t]);
                        if (n) return "Packing." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroLuckyCharm_Config) return e;
                var t = new a.HeroLuckyCharm_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.SkillId && (i.Long ? (t.SkillId = i.Long.fromValue(e.SkillId)).unsigned = !1 : "string" == typeof e.SkillId ? t.SkillId = parseInt(e.SkillId, 10) : "number" == typeof e.SkillId ? t.SkillId = e.SkillId : "object" == typeof e.SkillId && (t.SkillId = new i.LongBits(e.SkillId.low >>> 0, e.SkillId.high >>> 0).toNumber())), e.Packing) {
                    if (!Array.isArray(e.Packing)) throw TypeError(".HeroLuckyCharm_Config.Packing: array expected");
                    t.Packing = [];
                    for (var n = 0; n < e.Packing.length; ++n) {
                        if ("object" != typeof e.Packing[n]) throw TypeError(".HeroLuckyCharm_Config.Packing: object expected");
                        t.Packing[n] = a.IntArray_Config.fromObject(e.Packing[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Packing = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SkillId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.SkillId && e.hasOwnProperty("SkillId") && ("number" == typeof e.SkillId ? n.SkillId = t.longs === String ? String(e.SkillId) : e.SkillId : n.SkillId = t.longs === String ? i.Long.prototype.toString.call(e.SkillId) : t.longs === Number ? new i.LongBits(e.SkillId.low >>> 0, e.SkillId.high >>> 0).toNumber() : e.SkillId), e.Packing && e.Packing.length) {
                    n.Packing = [];
                    for (var r = 0; r < e.Packing.length; ++r) n.Packing[r] = a.IntArray_Config.toObject(e.Packing[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroLuckyCharm_Config"
            }, e
        }(), a.HeroFetterLevel_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroFetterLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroFetterLevel_Config) return e;
                var t = new a.HeroFetterLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroFetterLevel_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroFetterLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".HeroFetterLevel_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".HeroFetterLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroFetterLevel_Config"
            }, e
        }(), a.AllianceWarCityInfo_Config = function() {
            function e(e) {
                if (this.AdjIDs = [], this.RewardsPerHour = [], this.KillRewards = [], this.NpcHeroIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Index = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AdjIDs = i.emptyArray, e.prototype.OpenLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NpcNum = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NpcIncTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RewardsPerHour = i.emptyArray, e.prototype.NpcBasePower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DefenseBaseLevel = 0, e.prototype.DefenseMaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.WarFreeTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.KillRewards = i.emptyArray, e.prototype.ScorePerHour = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BattleBg = "", e.prototype.NpcHeroIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(24).int64(e.Index), null != e.AdjIDs && e.AdjIDs.length) {
                    t.uint32(50).fork();
                    for (var n = 0; n < e.AdjIDs.length; ++n) t.int64(e.AdjIDs[n]);
                    t.ldelim()
                }
                if (null != e.OpenLevel && Object.hasOwnProperty.call(e, "OpenLevel") && t.uint32(56).int64(e.OpenLevel), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(64).int64(e.Quality), null != e.NpcNum && Object.hasOwnProperty.call(e, "NpcNum") && t.uint32(72).int64(e.NpcNum), null != e.NpcIncTime && Object.hasOwnProperty.call(e, "NpcIncTime") && t.uint32(80).int64(e.NpcIncTime), null != e.RewardsPerHour && e.RewardsPerHour.length)
                    for (n = 0; n < e.RewardsPerHour.length; ++n) a.IntArray_Config.encode(e.RewardsPerHour[n], t.uint32(98).fork()).ldelim();
                if (null != e.NpcBasePower && Object.hasOwnProperty.call(e, "NpcBasePower") && t.uint32(104).int64(e.NpcBasePower), null != e.DefenseBaseLevel && Object.hasOwnProperty.call(e, "DefenseBaseLevel") && t.uint32(117).float(e.DefenseBaseLevel), null != e.DefenseMaxLevel && Object.hasOwnProperty.call(e, "DefenseMaxLevel") && t.uint32(120).int64(e.DefenseMaxLevel), null != e.WarFreeTime && Object.hasOwnProperty.call(e, "WarFreeTime") && t.uint32(128).int64(e.WarFreeTime), null != e.KillRewards && e.KillRewards.length)
                    for (n = 0; n < e.KillRewards.length; ++n) a.IntArray_Config.encode(e.KillRewards[n], t.uint32(138).fork()).ldelim();
                if (null != e.ScorePerHour && Object.hasOwnProperty.call(e, "ScorePerHour") && t.uint32(144).int64(e.ScorePerHour), null != e.BattleBg && Object.hasOwnProperty.call(e, "BattleBg") && t.uint32(154).string(e.BattleBg), null != e.NpcHeroIds && e.NpcHeroIds.length) {
                    for (t.uint32(162).fork(), n = 0; n < e.NpcHeroIds.length; ++n) t.int64(e.NpcHeroIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceWarCityInfo_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Index = e.int64();
                            break;
                        case 6:
                            if (r.AdjIDs && r.AdjIDs.length || (r.AdjIDs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AdjIDs.push(e.int64());
                            else r.AdjIDs.push(e.int64());
                            break;
                        case 7:
                            r.OpenLevel = e.int64();
                            break;
                        case 8:
                            r.Quality = e.int64();
                            break;
                        case 9:
                            r.NpcNum = e.int64();
                            break;
                        case 10:
                            r.NpcIncTime = e.int64();
                            break;
                        case 12:
                            r.RewardsPerHour && r.RewardsPerHour.length || (r.RewardsPerHour = []), r.RewardsPerHour.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 13:
                            r.NpcBasePower = e.int64();
                            break;
                        case 14:
                            r.DefenseBaseLevel = e.float();
                            break;
                        case 15:
                            r.DefenseMaxLevel = e.int64();
                            break;
                        case 16:
                            r.WarFreeTime = e.int64();
                            break;
                        case 17:
                            r.KillRewards && r.KillRewards.length || (r.KillRewards = []), r.KillRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 18:
                            r.ScorePerHour = e.int64();
                            break;
                        case 19:
                            r.BattleBg = e.string();
                            break;
                        case 20:
                            if (r.NpcHeroIds && r.NpcHeroIds.length || (r.NpcHeroIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.NpcHeroIds.push(e.int64());
                            else r.NpcHeroIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Index && e.hasOwnProperty("Index") && !(i.isInteger(e.Index) || e.Index && i.isInteger(e.Index.low) && i.isInteger(e.Index.high))) return "Index: integer|Long expected";
                if (null != e.AdjIDs && e.hasOwnProperty("AdjIDs")) {
                    if (!Array.isArray(e.AdjIDs)) return "AdjIDs: array expected";
                    for (var t = 0; t < e.AdjIDs.length; ++t)
                        if (!(i.isInteger(e.AdjIDs[t]) || e.AdjIDs[t] && i.isInteger(e.AdjIDs[t].low) && i.isInteger(e.AdjIDs[t].high))) return "AdjIDs: integer|Long[] expected"
                }
                if (null != e.OpenLevel && e.hasOwnProperty("OpenLevel") && !(i.isInteger(e.OpenLevel) || e.OpenLevel && i.isInteger(e.OpenLevel.low) && i.isInteger(e.OpenLevel.high))) return "OpenLevel: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.NpcNum && e.hasOwnProperty("NpcNum") && !(i.isInteger(e.NpcNum) || e.NpcNum && i.isInteger(e.NpcNum.low) && i.isInteger(e.NpcNum.high))) return "NpcNum: integer|Long expected";
                if (null != e.NpcIncTime && e.hasOwnProperty("NpcIncTime") && !(i.isInteger(e.NpcIncTime) || e.NpcIncTime && i.isInteger(e.NpcIncTime.low) && i.isInteger(e.NpcIncTime.high))) return "NpcIncTime: integer|Long expected";
                if (null != e.RewardsPerHour && e.hasOwnProperty("RewardsPerHour")) {
                    if (!Array.isArray(e.RewardsPerHour)) return "RewardsPerHour: array expected";
                    for (t = 0; t < e.RewardsPerHour.length; ++t)
                        if (n = a.IntArray_Config.verify(e.RewardsPerHour[t])) return "RewardsPerHour." + n
                }
                if (null != e.NpcBasePower && e.hasOwnProperty("NpcBasePower") && !(i.isInteger(e.NpcBasePower) || e.NpcBasePower && i.isInteger(e.NpcBasePower.low) && i.isInteger(e.NpcBasePower.high))) return "NpcBasePower: integer|Long expected";
                if (null != e.DefenseBaseLevel && e.hasOwnProperty("DefenseBaseLevel") && "number" != typeof e.DefenseBaseLevel) return "DefenseBaseLevel: number expected";
                if (null != e.DefenseMaxLevel && e.hasOwnProperty("DefenseMaxLevel") && !(i.isInteger(e.DefenseMaxLevel) || e.DefenseMaxLevel && i.isInteger(e.DefenseMaxLevel.low) && i.isInteger(e.DefenseMaxLevel.high))) return "DefenseMaxLevel: integer|Long expected";
                if (null != e.WarFreeTime && e.hasOwnProperty("WarFreeTime") && !(i.isInteger(e.WarFreeTime) || e.WarFreeTime && i.isInteger(e.WarFreeTime.low) && i.isInteger(e.WarFreeTime.high))) return "WarFreeTime: integer|Long expected";
                if (null != e.KillRewards && e.hasOwnProperty("KillRewards")) {
                    if (!Array.isArray(e.KillRewards)) return "KillRewards: array expected";
                    for (t = 0; t < e.KillRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.KillRewards[t])) return "KillRewards." + n
                    }
                }
                if (null != e.ScorePerHour && e.hasOwnProperty("ScorePerHour") && !(i.isInteger(e.ScorePerHour) || e.ScorePerHour && i.isInteger(e.ScorePerHour.low) && i.isInteger(e.ScorePerHour.high))) return "ScorePerHour: integer|Long expected";
                if (null != e.BattleBg && e.hasOwnProperty("BattleBg") && !i.isString(e.BattleBg)) return "BattleBg: string expected";
                if (null != e.NpcHeroIds && e.hasOwnProperty("NpcHeroIds")) {
                    if (!Array.isArray(e.NpcHeroIds)) return "NpcHeroIds: array expected";
                    for (t = 0; t < e.NpcHeroIds.length; ++t)
                        if (!(i.isInteger(e.NpcHeroIds[t]) || e.NpcHeroIds[t] && i.isInteger(e.NpcHeroIds[t].low) && i.isInteger(e.NpcHeroIds[t].high))) return "NpcHeroIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceWarCityInfo_Config) return e;
                var t = new a.AllianceWarCityInfo_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Index && (i.Long ? (t.Index = i.Long.fromValue(e.Index)).unsigned = !1 : "string" == typeof e.Index ? t.Index = parseInt(e.Index, 10) : "number" == typeof e.Index ? t.Index = e.Index : "object" == typeof e.Index && (t.Index = new i.LongBits(e.Index.low >>> 0, e.Index.high >>> 0).toNumber())), e.AdjIDs) {
                    if (!Array.isArray(e.AdjIDs)) throw TypeError(".AllianceWarCityInfo_Config.AdjIDs: array expected");
                    t.AdjIDs = [];
                    for (var n = 0; n < e.AdjIDs.length; ++n) i.Long ? (t.AdjIDs[n] = i.Long.fromValue(e.AdjIDs[n])).unsigned = !1 : "string" == typeof e.AdjIDs[n] ? t.AdjIDs[n] = parseInt(e.AdjIDs[n], 10) : "number" == typeof e.AdjIDs[n] ? t.AdjIDs[n] = e.AdjIDs[n] : "object" == typeof e.AdjIDs[n] && (t.AdjIDs[n] = new i.LongBits(e.AdjIDs[n].low >>> 0, e.AdjIDs[n].high >>> 0).toNumber())
                }
                if (null != e.OpenLevel && (i.Long ? (t.OpenLevel = i.Long.fromValue(e.OpenLevel)).unsigned = !1 : "string" == typeof e.OpenLevel ? t.OpenLevel = parseInt(e.OpenLevel, 10) : "number" == typeof e.OpenLevel ? t.OpenLevel = e.OpenLevel : "object" == typeof e.OpenLevel && (t.OpenLevel = new i.LongBits(e.OpenLevel.low >>> 0, e.OpenLevel.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), null != e.NpcNum && (i.Long ? (t.NpcNum = i.Long.fromValue(e.NpcNum)).unsigned = !1 : "string" == typeof e.NpcNum ? t.NpcNum = parseInt(e.NpcNum, 10) : "number" == typeof e.NpcNum ? t.NpcNum = e.NpcNum : "object" == typeof e.NpcNum && (t.NpcNum = new i.LongBits(e.NpcNum.low >>> 0, e.NpcNum.high >>> 0).toNumber())), null != e.NpcIncTime && (i.Long ? (t.NpcIncTime = i.Long.fromValue(e.NpcIncTime)).unsigned = !1 : "string" == typeof e.NpcIncTime ? t.NpcIncTime = parseInt(e.NpcIncTime, 10) : "number" == typeof e.NpcIncTime ? t.NpcIncTime = e.NpcIncTime : "object" == typeof e.NpcIncTime && (t.NpcIncTime = new i.LongBits(e.NpcIncTime.low >>> 0, e.NpcIncTime.high >>> 0).toNumber())), e.RewardsPerHour) {
                    if (!Array.isArray(e.RewardsPerHour)) throw TypeError(".AllianceWarCityInfo_Config.RewardsPerHour: array expected");
                    for (t.RewardsPerHour = [], n = 0; n < e.RewardsPerHour.length; ++n) {
                        if ("object" != typeof e.RewardsPerHour[n]) throw TypeError(".AllianceWarCityInfo_Config.RewardsPerHour: object expected");
                        t.RewardsPerHour[n] = a.IntArray_Config.fromObject(e.RewardsPerHour[n])
                    }
                }
                if (null != e.NpcBasePower && (i.Long ? (t.NpcBasePower = i.Long.fromValue(e.NpcBasePower)).unsigned = !1 : "string" == typeof e.NpcBasePower ? t.NpcBasePower = parseInt(e.NpcBasePower, 10) : "number" == typeof e.NpcBasePower ? t.NpcBasePower = e.NpcBasePower : "object" == typeof e.NpcBasePower && (t.NpcBasePower = new i.LongBits(e.NpcBasePower.low >>> 0, e.NpcBasePower.high >>> 0).toNumber())), null != e.DefenseBaseLevel && (t.DefenseBaseLevel = Number(e.DefenseBaseLevel)), null != e.DefenseMaxLevel && (i.Long ? (t.DefenseMaxLevel = i.Long.fromValue(e.DefenseMaxLevel)).unsigned = !1 : "string" == typeof e.DefenseMaxLevel ? t.DefenseMaxLevel = parseInt(e.DefenseMaxLevel, 10) : "number" == typeof e.DefenseMaxLevel ? t.DefenseMaxLevel = e.DefenseMaxLevel : "object" == typeof e.DefenseMaxLevel && (t.DefenseMaxLevel = new i.LongBits(e.DefenseMaxLevel.low >>> 0, e.DefenseMaxLevel.high >>> 0).toNumber())), null != e.WarFreeTime && (i.Long ? (t.WarFreeTime = i.Long.fromValue(e.WarFreeTime)).unsigned = !1 : "string" == typeof e.WarFreeTime ? t.WarFreeTime = parseInt(e.WarFreeTime, 10) : "number" == typeof e.WarFreeTime ? t.WarFreeTime = e.WarFreeTime : "object" == typeof e.WarFreeTime && (t.WarFreeTime = new i.LongBits(e.WarFreeTime.low >>> 0, e.WarFreeTime.high >>> 0).toNumber())), e.KillRewards) {
                    if (!Array.isArray(e.KillRewards)) throw TypeError(".AllianceWarCityInfo_Config.KillRewards: array expected");
                    for (t.KillRewards = [], n = 0; n < e.KillRewards.length; ++n) {
                        if ("object" != typeof e.KillRewards[n]) throw TypeError(".AllianceWarCityInfo_Config.KillRewards: object expected");
                        t.KillRewards[n] = a.IntArray_Config.fromObject(e.KillRewards[n])
                    }
                }
                if (null != e.ScorePerHour && (i.Long ? (t.ScorePerHour = i.Long.fromValue(e.ScorePerHour)).unsigned = !1 : "string" == typeof e.ScorePerHour ? t.ScorePerHour = parseInt(e.ScorePerHour, 10) : "number" == typeof e.ScorePerHour ? t.ScorePerHour = e.ScorePerHour : "object" == typeof e.ScorePerHour && (t.ScorePerHour = new i.LongBits(e.ScorePerHour.low >>> 0, e.ScorePerHour.high >>> 0).toNumber())), null != e.BattleBg && (t.BattleBg = String(e.BattleBg)), e.NpcHeroIds) {
                    if (!Array.isArray(e.NpcHeroIds)) throw TypeError(".AllianceWarCityInfo_Config.NpcHeroIds: array expected");
                    for (t.NpcHeroIds = [], n = 0; n < e.NpcHeroIds.length; ++n) i.Long ? (t.NpcHeroIds[n] = i.Long.fromValue(e.NpcHeroIds[n])).unsigned = !1 : "string" == typeof e.NpcHeroIds[n] ? t.NpcHeroIds[n] = parseInt(e.NpcHeroIds[n], 10) : "number" == typeof e.NpcHeroIds[n] ? t.NpcHeroIds[n] = e.NpcHeroIds[n] : "object" == typeof e.NpcHeroIds[n] && (t.NpcHeroIds[n] = new i.LongBits(e.NpcHeroIds[n].low >>> 0, e.NpcHeroIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AdjIDs = [], n.RewardsPerHour = [], n.KillRewards = [], n.NpcHeroIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Index = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Index = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.OpenLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OpenLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NpcNum = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NpcNum = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NpcIncTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NpcIncTime = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NpcBasePower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NpcBasePower = t.longs === String ? "0" : 0, n.DefenseBaseLevel = 0, i.Long ? (o = new i.Long(0, 0, !1), n.DefenseMaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DefenseMaxLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.WarFreeTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.WarFreeTime = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ScorePerHour = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ScorePerHour = t.longs === String ? "0" : 0, n.BattleBg = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Index && e.hasOwnProperty("Index") && ("number" == typeof e.Index ? n.Index = t.longs === String ? String(e.Index) : e.Index : n.Index = t.longs === String ? i.Long.prototype.toString.call(e.Index) : t.longs === Number ? new i.LongBits(e.Index.low >>> 0, e.Index.high >>> 0).toNumber() : e.Index), e.AdjIDs && e.AdjIDs.length) {
                    n.AdjIDs = [];
                    for (var r = 0; r < e.AdjIDs.length; ++r) "number" == typeof e.AdjIDs[r] ? n.AdjIDs[r] = t.longs === String ? String(e.AdjIDs[r]) : e.AdjIDs[r] : n.AdjIDs[r] = t.longs === String ? i.Long.prototype.toString.call(e.AdjIDs[r]) : t.longs === Number ? new i.LongBits(e.AdjIDs[r].low >>> 0, e.AdjIDs[r].high >>> 0).toNumber() : e.AdjIDs[r]
                }
                if (null != e.OpenLevel && e.hasOwnProperty("OpenLevel") && ("number" == typeof e.OpenLevel ? n.OpenLevel = t.longs === String ? String(e.OpenLevel) : e.OpenLevel : n.OpenLevel = t.longs === String ? i.Long.prototype.toString.call(e.OpenLevel) : t.longs === Number ? new i.LongBits(e.OpenLevel.low >>> 0, e.OpenLevel.high >>> 0).toNumber() : e.OpenLevel), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), null != e.NpcNum && e.hasOwnProperty("NpcNum") && ("number" == typeof e.NpcNum ? n.NpcNum = t.longs === String ? String(e.NpcNum) : e.NpcNum : n.NpcNum = t.longs === String ? i.Long.prototype.toString.call(e.NpcNum) : t.longs === Number ? new i.LongBits(e.NpcNum.low >>> 0, e.NpcNum.high >>> 0).toNumber() : e.NpcNum), null != e.NpcIncTime && e.hasOwnProperty("NpcIncTime") && ("number" == typeof e.NpcIncTime ? n.NpcIncTime = t.longs === String ? String(e.NpcIncTime) : e.NpcIncTime : n.NpcIncTime = t.longs === String ? i.Long.prototype.toString.call(e.NpcIncTime) : t.longs === Number ? new i.LongBits(e.NpcIncTime.low >>> 0, e.NpcIncTime.high >>> 0).toNumber() : e.NpcIncTime), e.RewardsPerHour && e.RewardsPerHour.length)
                    for (n.RewardsPerHour = [], r = 0; r < e.RewardsPerHour.length; ++r) n.RewardsPerHour[r] = a.IntArray_Config.toObject(e.RewardsPerHour[r], t);
                if (null != e.NpcBasePower && e.hasOwnProperty("NpcBasePower") && ("number" == typeof e.NpcBasePower ? n.NpcBasePower = t.longs === String ? String(e.NpcBasePower) : e.NpcBasePower : n.NpcBasePower = t.longs === String ? i.Long.prototype.toString.call(e.NpcBasePower) : t.longs === Number ? new i.LongBits(e.NpcBasePower.low >>> 0, e.NpcBasePower.high >>> 0).toNumber() : e.NpcBasePower), null != e.DefenseBaseLevel && e.hasOwnProperty("DefenseBaseLevel") && (n.DefenseBaseLevel = t.json && !isFinite(e.DefenseBaseLevel) ? String(e.DefenseBaseLevel) : e.DefenseBaseLevel), null != e.DefenseMaxLevel && e.hasOwnProperty("DefenseMaxLevel") && ("number" == typeof e.DefenseMaxLevel ? n.DefenseMaxLevel = t.longs === String ? String(e.DefenseMaxLevel) : e.DefenseMaxLevel : n.DefenseMaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.DefenseMaxLevel) : t.longs === Number ? new i.LongBits(e.DefenseMaxLevel.low >>> 0, e.DefenseMaxLevel.high >>> 0).toNumber() : e.DefenseMaxLevel), null != e.WarFreeTime && e.hasOwnProperty("WarFreeTime") && ("number" == typeof e.WarFreeTime ? n.WarFreeTime = t.longs === String ? String(e.WarFreeTime) : e.WarFreeTime : n.WarFreeTime = t.longs === String ? i.Long.prototype.toString.call(e.WarFreeTime) : t.longs === Number ? new i.LongBits(e.WarFreeTime.low >>> 0, e.WarFreeTime.high >>> 0).toNumber() : e.WarFreeTime), e.KillRewards && e.KillRewards.length)
                    for (n.KillRewards = [], r = 0; r < e.KillRewards.length; ++r) n.KillRewards[r] = a.IntArray_Config.toObject(e.KillRewards[r], t);
                if (null != e.ScorePerHour && e.hasOwnProperty("ScorePerHour") && ("number" == typeof e.ScorePerHour ? n.ScorePerHour = t.longs === String ? String(e.ScorePerHour) : e.ScorePerHour : n.ScorePerHour = t.longs === String ? i.Long.prototype.toString.call(e.ScorePerHour) : t.longs === Number ? new i.LongBits(e.ScorePerHour.low >>> 0, e.ScorePerHour.high >>> 0).toNumber() : e.ScorePerHour), null != e.BattleBg && e.hasOwnProperty("BattleBg") && (n.BattleBg = e.BattleBg), e.NpcHeroIds && e.NpcHeroIds.length)
                    for (n.NpcHeroIds = [], r = 0; r < e.NpcHeroIds.length; ++r) "number" == typeof e.NpcHeroIds[r] ? n.NpcHeroIds[r] = t.longs === String ? String(e.NpcHeroIds[r]) : e.NpcHeroIds[r] : n.NpcHeroIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.NpcHeroIds[r]) : t.longs === Number ? new i.LongBits(e.NpcHeroIds[r].low >>> 0, e.NpcHeroIds[r].high >>> 0).toNumber() : e.NpcHeroIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceWarCityInfo_Config"
            }, e
        }(), a.StoryChapter_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StoryChapter_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StoryChapter_Config) return e;
                var t = new a.StoryChapter_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StoryChapter_Config"
            }, e
        }(), a.StoryDialogue_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StoryDialogue_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StoryDialogue_Config) return e;
                var t = new a.StoryDialogue_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StoryDialogue_Config"
            }, e
        }(), a.TreasureHouseTreauseItem_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.ConsumeItems = [], this.ThreeAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CollectionId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Resource = "", e.prototype.StarMax = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.ConsumeItems = i.emptyArray, e.prototype.ThreeAttrs = i.emptyArray, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.CollectionId && Object.hasOwnProperty.call(e, "CollectionId") && t.uint32(24).int64(e.CollectionId), null != e.Resource && Object.hasOwnProperty.call(e, "Resource") && t.uint32(34).string(e.Resource), null != e.StarMax && Object.hasOwnProperty.call(e, "StarMax") && t.uint32(40).int64(e.StarMax), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(50).fork()).ldelim();
                if (null != e.ConsumeItems && e.ConsumeItems.length)
                    for (n = 0; n < e.ConsumeItems.length; ++n) a.IntArray_Config.encode(e.ConsumeItems[n], t.uint32(58).fork()).ldelim();
                if (null != e.ThreeAttrs && e.ThreeAttrs.length)
                    for (n = 0; n < e.ThreeAttrs.length; ++n) a.IntArray_Config.encode(e.ThreeAttrs[n], t.uint32(74).fork()).ldelim();
                return null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(80).int64(e.Quality), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TreasureHouseTreauseItem_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.CollectionId = e.int64();
                            break;
                        case 4:
                            r.Resource = e.string();
                            break;
                        case 5:
                            r.StarMax = e.int64();
                            break;
                        case 6:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.ConsumeItems && r.ConsumeItems.length || (r.ConsumeItems = []), r.ConsumeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.ThreeAttrs && r.ThreeAttrs.length || (r.ThreeAttrs = []), r.ThreeAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.Quality = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.CollectionId && e.hasOwnProperty("CollectionId") && !(i.isInteger(e.CollectionId) || e.CollectionId && i.isInteger(e.CollectionId.low) && i.isInteger(e.CollectionId.high))) return "CollectionId: integer|Long expected";
                if (null != e.Resource && e.hasOwnProperty("Resource") && !i.isString(e.Resource)) return "Resource: string expected";
                if (null != e.StarMax && e.hasOwnProperty("StarMax") && !(i.isInteger(e.StarMax) || e.StarMax && i.isInteger(e.StarMax.low) && i.isInteger(e.StarMax.high))) return "StarMax: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.ConsumeItems && e.hasOwnProperty("ConsumeItems")) {
                    if (!Array.isArray(e.ConsumeItems)) return "ConsumeItems: array expected";
                    for (t = 0; t < e.ConsumeItems.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ConsumeItems[t])) return "ConsumeItems." + n
                }
                if (null != e.ThreeAttrs && e.hasOwnProperty("ThreeAttrs")) {
                    if (!Array.isArray(e.ThreeAttrs)) return "ThreeAttrs: array expected";
                    for (t = 0; t < e.ThreeAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ThreeAttrs[t])) return "ThreeAttrs." + n
                    }
                }
                return null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high)) ? "Quality: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.TreasureHouseTreauseItem_Config) return e;
                var t = new a.TreasureHouseTreauseItem_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.CollectionId && (i.Long ? (t.CollectionId = i.Long.fromValue(e.CollectionId)).unsigned = !1 : "string" == typeof e.CollectionId ? t.CollectionId = parseInt(e.CollectionId, 10) : "number" == typeof e.CollectionId ? t.CollectionId = e.CollectionId : "object" == typeof e.CollectionId && (t.CollectionId = new i.LongBits(e.CollectionId.low >>> 0, e.CollectionId.high >>> 0).toNumber())), null != e.Resource && (t.Resource = String(e.Resource)), null != e.StarMax && (i.Long ? (t.StarMax = i.Long.fromValue(e.StarMax)).unsigned = !1 : "string" == typeof e.StarMax ? t.StarMax = parseInt(e.StarMax, 10) : "number" == typeof e.StarMax ? t.StarMax = e.StarMax : "object" == typeof e.StarMax && (t.StarMax = new i.LongBits(e.StarMax.low >>> 0, e.StarMax.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".TreasureHouseTreauseItem_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".TreasureHouseTreauseItem_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.ConsumeItems) {
                    if (!Array.isArray(e.ConsumeItems)) throw TypeError(".TreasureHouseTreauseItem_Config.ConsumeItems: array expected");
                    for (t.ConsumeItems = [], n = 0; n < e.ConsumeItems.length; ++n) {
                        if ("object" != typeof e.ConsumeItems[n]) throw TypeError(".TreasureHouseTreauseItem_Config.ConsumeItems: object expected");
                        t.ConsumeItems[n] = a.IntArray_Config.fromObject(e.ConsumeItems[n])
                    }
                }
                if (e.ThreeAttrs) {
                    if (!Array.isArray(e.ThreeAttrs)) throw TypeError(".TreasureHouseTreauseItem_Config.ThreeAttrs: array expected");
                    for (t.ThreeAttrs = [], n = 0; n < e.ThreeAttrs.length; ++n) {
                        if ("object" != typeof e.ThreeAttrs[n]) throw TypeError(".TreasureHouseTreauseItem_Config.ThreeAttrs: object expected");
                        t.ThreeAttrs[n] = a.IntArray_Config.fromObject(e.ThreeAttrs[n])
                    }
                }
                return null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.ConsumeItems = [], n.ThreeAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.CollectionId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CollectionId = t.longs === String ? "0" : 0, n.Resource = "", i.Long ? (o = new i.Long(0, 0, !1), n.StarMax = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarMax = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.CollectionId && e.hasOwnProperty("CollectionId") && ("number" == typeof e.CollectionId ? n.CollectionId = t.longs === String ? String(e.CollectionId) : e.CollectionId : n.CollectionId = t.longs === String ? i.Long.prototype.toString.call(e.CollectionId) : t.longs === Number ? new i.LongBits(e.CollectionId.low >>> 0, e.CollectionId.high >>> 0).toNumber() : e.CollectionId), null != e.Resource && e.hasOwnProperty("Resource") && (n.Resource = e.Resource), null != e.StarMax && e.hasOwnProperty("StarMax") && ("number" == typeof e.StarMax ? n.StarMax = t.longs === String ? String(e.StarMax) : e.StarMax : n.StarMax = t.longs === String ? i.Long.prototype.toString.call(e.StarMax) : t.longs === Number ? new i.LongBits(e.StarMax.low >>> 0, e.StarMax.high >>> 0).toNumber() : e.StarMax), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.ConsumeItems && e.ConsumeItems.length)
                    for (n.ConsumeItems = [], r = 0; r < e.ConsumeItems.length; ++r) n.ConsumeItems[r] = a.IntArray_Config.toObject(e.ConsumeItems[r], t);
                if (e.ThreeAttrs && e.ThreeAttrs.length)
                    for (n.ThreeAttrs = [], r = 0; r < e.ThreeAttrs.length; ++r) n.ThreeAttrs[r] = a.IntArray_Config.toObject(e.ThreeAttrs[r], t);
                return null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TreasureHouseTreauseItem_Config"
            }, e
        }(), a.StrongholdWarMap_Config = function() {
            function e(e) {
                if (this.Map = [], this.Terrain = [], this.Blocks = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Map = i.emptyArray, e.prototype.MapResource = "", e.prototype.Terrain = i.emptyArray, e.prototype.Blocks = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Map && e.Map.length)
                    for (var n = 0; n < e.Map.length; ++n) a.IntArray_Config.encode(e.Map[n], t.uint32(18).fork()).ldelim();
                if (null != e.MapResource && Object.hasOwnProperty.call(e, "MapResource") && t.uint32(26).string(e.MapResource), null != e.Terrain && e.Terrain.length)
                    for (n = 0; n < e.Terrain.length; ++n) a.IntArray_Config.encode(e.Terrain[n], t.uint32(34).fork()).ldelim();
                if (null != e.Blocks && e.Blocks.length)
                    for (n = 0; n < e.Blocks.length; ++n) a.IntArray_Config.encode(e.Blocks[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StrongholdWarMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Map && r.Map.length || (r.Map = []), r.Map.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.MapResource = e.string();
                            break;
                        case 4:
                            r.Terrain && r.Terrain.length || (r.Terrain = []), r.Terrain.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Blocks && r.Blocks.length || (r.Blocks = []), r.Blocks.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!Array.isArray(e.Map)) return "Map: array expected";
                    for (var t = 0; t < e.Map.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Map[t])) return "Map." + n
                }
                if (null != e.MapResource && e.hasOwnProperty("MapResource") && !i.isString(e.MapResource)) return "MapResource: string expected";
                if (null != e.Terrain && e.hasOwnProperty("Terrain")) {
                    if (!Array.isArray(e.Terrain)) return "Terrain: array expected";
                    for (t = 0; t < e.Terrain.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Terrain[t])) return "Terrain." + n
                }
                if (null != e.Blocks && e.hasOwnProperty("Blocks")) {
                    if (!Array.isArray(e.Blocks)) return "Blocks: array expected";
                    for (t = 0; t < e.Blocks.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Blocks[t])) return "Blocks." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StrongholdWarMap_Config) return e;
                var t = new a.StrongholdWarMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Map) {
                    if (!Array.isArray(e.Map)) throw TypeError(".StrongholdWarMap_Config.Map: array expected");
                    t.Map = [];
                    for (var n = 0; n < e.Map.length; ++n) {
                        if ("object" != typeof e.Map[n]) throw TypeError(".StrongholdWarMap_Config.Map: object expected");
                        t.Map[n] = a.IntArray_Config.fromObject(e.Map[n])
                    }
                }
                if (null != e.MapResource && (t.MapResource = String(e.MapResource)), e.Terrain) {
                    if (!Array.isArray(e.Terrain)) throw TypeError(".StrongholdWarMap_Config.Terrain: array expected");
                    for (t.Terrain = [], n = 0; n < e.Terrain.length; ++n) {
                        if ("object" != typeof e.Terrain[n]) throw TypeError(".StrongholdWarMap_Config.Terrain: object expected");
                        t.Terrain[n] = a.IntArray_Config.fromObject(e.Terrain[n])
                    }
                }
                if (e.Blocks) {
                    if (!Array.isArray(e.Blocks)) throw TypeError(".StrongholdWarMap_Config.Blocks: array expected");
                    for (t.Blocks = [], n = 0; n < e.Blocks.length; ++n) {
                        if ("object" != typeof e.Blocks[n]) throw TypeError(".StrongholdWarMap_Config.Blocks: object expected");
                        t.Blocks[n] = a.IntArray_Config.fromObject(e.Blocks[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Map = [], n.Terrain = [], n.Blocks = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.MapResource = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Map && e.Map.length) {
                    n.Map = [];
                    for (var r = 0; r < e.Map.length; ++r) n.Map[r] = a.IntArray_Config.toObject(e.Map[r], t)
                }
                if (null != e.MapResource && e.hasOwnProperty("MapResource") && (n.MapResource = e.MapResource), e.Terrain && e.Terrain.length)
                    for (n.Terrain = [], r = 0; r < e.Terrain.length; ++r) n.Terrain[r] = a.IntArray_Config.toObject(e.Terrain[r], t);
                if (e.Blocks && e.Blocks.length)
                    for (n.Blocks = [], r = 0; r < e.Blocks.length; ++r) n.Blocks[r] = a.IntArray_Config.toObject(e.Blocks[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StrongholdWarMap_Config"
            }, e
        }(), a.StrongholdWarTerrain_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.Path = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.Path && Object.hasOwnProperty.call(e, "Path") && t.uint32(26).string(e.Path), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StrongholdWarTerrain_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            r.Path = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.Path && e.hasOwnProperty("Path") && !i.isString(e.Path) ? "Path: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StrongholdWarTerrain_Config) return e;
                var t = new a.StrongholdWarTerrain_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.Path && (t.Path = String(e.Path)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Name = "", n.Path = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Path && e.hasOwnProperty("Path") && (n.Path = e.Path), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StrongholdWarTerrain_Config"
            }, e
        }(), a.TreasureHouseSerials_Config = function() {
            function e(e) {
                if (this.TreasureIds = [], this.ActiveSkills = [], this.EquipSkills = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AssociationId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TreasureIds = i.emptyArray, e.prototype.ActiveSkills = i.emptyArray, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EquipSkills = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.AssociationId && Object.hasOwnProperty.call(e, "AssociationId") && t.uint32(24).int64(e.AssociationId), null != e.TreasureIds && e.TreasureIds.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.TreasureIds.length; ++n) t.int64(e.TreasureIds[n]);
                    t.ldelim()
                }
                if (null != e.ActiveSkills && e.ActiveSkills.length)
                    for (n = 0; n < e.ActiveSkills.length; ++n) a.IntArray_Config.encode(e.ActiveSkills[n], t.uint32(42).fork()).ldelim();
                if (null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(64).int64(e.SortId), null != e.EquipSkills && e.EquipSkills.length)
                    for (n = 0; n < e.EquipSkills.length; ++n) a.IntArray_Config.encode(e.EquipSkills[n], t.uint32(74).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TreasureHouseSerials_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.AssociationId = e.int64();
                            break;
                        case 4:
                            if (r.TreasureIds && r.TreasureIds.length || (r.TreasureIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.TreasureIds.push(e.int64());
                            else r.TreasureIds.push(e.int64());
                            break;
                        case 5:
                            r.ActiveSkills && r.ActiveSkills.length || (r.ActiveSkills = []), r.ActiveSkills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.SortId = e.int64();
                            break;
                        case 9:
                            r.EquipSkills && r.EquipSkills.length || (r.EquipSkills = []), r.EquipSkills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.AssociationId && e.hasOwnProperty("AssociationId") && !(i.isInteger(e.AssociationId) || e.AssociationId && i.isInteger(e.AssociationId.low) && i.isInteger(e.AssociationId.high))) return "AssociationId: integer|Long expected";
                if (null != e.TreasureIds && e.hasOwnProperty("TreasureIds")) {
                    if (!Array.isArray(e.TreasureIds)) return "TreasureIds: array expected";
                    for (var t = 0; t < e.TreasureIds.length; ++t)
                        if (!(i.isInteger(e.TreasureIds[t]) || e.TreasureIds[t] && i.isInteger(e.TreasureIds[t].low) && i.isInteger(e.TreasureIds[t].high))) return "TreasureIds: integer|Long[] expected"
                }
                if (null != e.ActiveSkills && e.hasOwnProperty("ActiveSkills")) {
                    if (!Array.isArray(e.ActiveSkills)) return "ActiveSkills: array expected";
                    for (t = 0; t < e.ActiveSkills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ActiveSkills[t])) return "ActiveSkills." + n
                }
                if (null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high))) return "SortId: integer|Long expected";
                if (null != e.EquipSkills && e.hasOwnProperty("EquipSkills")) {
                    if (!Array.isArray(e.EquipSkills)) return "EquipSkills: array expected";
                    for (t = 0; t < e.EquipSkills.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.EquipSkills[t])) return "EquipSkills." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.TreasureHouseSerials_Config) return e;
                var t = new a.TreasureHouseSerials_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.AssociationId && (i.Long ? (t.AssociationId = i.Long.fromValue(e.AssociationId)).unsigned = !1 : "string" == typeof e.AssociationId ? t.AssociationId = parseInt(e.AssociationId, 10) : "number" == typeof e.AssociationId ? t.AssociationId = e.AssociationId : "object" == typeof e.AssociationId && (t.AssociationId = new i.LongBits(e.AssociationId.low >>> 0, e.AssociationId.high >>> 0).toNumber())), e.TreasureIds) {
                    if (!Array.isArray(e.TreasureIds)) throw TypeError(".TreasureHouseSerials_Config.TreasureIds: array expected");
                    t.TreasureIds = [];
                    for (var n = 0; n < e.TreasureIds.length; ++n) i.Long ? (t.TreasureIds[n] = i.Long.fromValue(e.TreasureIds[n])).unsigned = !1 : "string" == typeof e.TreasureIds[n] ? t.TreasureIds[n] = parseInt(e.TreasureIds[n], 10) : "number" == typeof e.TreasureIds[n] ? t.TreasureIds[n] = e.TreasureIds[n] : "object" == typeof e.TreasureIds[n] && (t.TreasureIds[n] = new i.LongBits(e.TreasureIds[n].low >>> 0, e.TreasureIds[n].high >>> 0).toNumber())
                }
                if (e.ActiveSkills) {
                    if (!Array.isArray(e.ActiveSkills)) throw TypeError(".TreasureHouseSerials_Config.ActiveSkills: array expected");
                    for (t.ActiveSkills = [], n = 0; n < e.ActiveSkills.length; ++n) {
                        if ("object" != typeof e.ActiveSkills[n]) throw TypeError(".TreasureHouseSerials_Config.ActiveSkills: object expected");
                        t.ActiveSkills[n] = a.IntArray_Config.fromObject(e.ActiveSkills[n])
                    }
                }
                if (null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), e.EquipSkills) {
                    if (!Array.isArray(e.EquipSkills)) throw TypeError(".TreasureHouseSerials_Config.EquipSkills: array expected");
                    for (t.EquipSkills = [], n = 0; n < e.EquipSkills.length; ++n) {
                        if ("object" != typeof e.EquipSkills[n]) throw TypeError(".TreasureHouseSerials_Config.EquipSkills: object expected");
                        t.EquipSkills[n] = a.IntArray_Config.fromObject(e.EquipSkills[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.TreasureIds = [], n.ActiveSkills = [], n.EquipSkills = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.AssociationId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AssociationId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.AssociationId && e.hasOwnProperty("AssociationId") && ("number" == typeof e.AssociationId ? n.AssociationId = t.longs === String ? String(e.AssociationId) : e.AssociationId : n.AssociationId = t.longs === String ? i.Long.prototype.toString.call(e.AssociationId) : t.longs === Number ? new i.LongBits(e.AssociationId.low >>> 0, e.AssociationId.high >>> 0).toNumber() : e.AssociationId), e.TreasureIds && e.TreasureIds.length) {
                    n.TreasureIds = [];
                    for (var r = 0; r < e.TreasureIds.length; ++r) "number" == typeof e.TreasureIds[r] ? n.TreasureIds[r] = t.longs === String ? String(e.TreasureIds[r]) : e.TreasureIds[r] : n.TreasureIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.TreasureIds[r]) : t.longs === Number ? new i.LongBits(e.TreasureIds[r].low >>> 0, e.TreasureIds[r].high >>> 0).toNumber() : e.TreasureIds[r]
                }
                if (e.ActiveSkills && e.ActiveSkills.length)
                    for (n.ActiveSkills = [], r = 0; r < e.ActiveSkills.length; ++r) n.ActiveSkills[r] = a.IntArray_Config.toObject(e.ActiveSkills[r], t);
                if (null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), e.EquipSkills && e.EquipSkills.length)
                    for (n.EquipSkills = [], r = 0; r < e.EquipSkills.length; ++r) n.EquipSkills[r] = a.IntArray_Config.toObject(e.EquipSkills[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TreasureHouseSerials_Config"
            }, e
        }(), a.AngelBase_Config = function() {
            function e(e) {
                if (this.Skills = [], this.GlobalSkills = [], this.Attrs = [], this.GodAvatar = [], this.FavorUpgradeAudio = [], this.StaticImage = [], this.Unlock = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.prototype.GlobalSkills = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.Career = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UIAvatar = "", e.prototype.Model = "", e.prototype.MaxStarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AngelsPic = "", e.prototype.ShowOffAni = "", e.prototype.GodAvatar = i.emptyArray, e.prototype.FavorUpgradeAudio = i.emptyArray, e.prototype.ActivityGet = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StaticImage = i.emptyArray, e.prototype.AngelIntroduce = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CustomBg = "", e.prototype.AvailableStartTime = "", e.prototype.Unlock = i.emptyArray, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CustomEffect = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AngelSoulId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(40).int64(e.StarLevel), null != e.Skills && e.Skills.length)
                    for (var n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(50).fork()).ldelim();
                if (null != e.GlobalSkills && e.GlobalSkills.length)
                    for (n = 0; n < e.GlobalSkills.length; ++n) a.IntArray_Config.encode(e.GlobalSkills[n], t.uint32(58).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(66).fork()).ldelim();
                if (null != e.Career && Object.hasOwnProperty.call(e, "Career") && t.uint32(72).int64(e.Career), null != e.UIAvatar && Object.hasOwnProperty.call(e, "UIAvatar") && t.uint32(82).string(e.UIAvatar), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(90).string(e.Model), null != e.MaxStarLevel && Object.hasOwnProperty.call(e, "MaxStarLevel") && t.uint32(96).int64(e.MaxStarLevel), null != e.AngelsPic && Object.hasOwnProperty.call(e, "AngelsPic") && t.uint32(106).string(e.AngelsPic), null != e.ShowOffAni && Object.hasOwnProperty.call(e, "ShowOffAni") && t.uint32(130).string(e.ShowOffAni), null != e.GodAvatar && e.GodAvatar.length) {
                    for (t.uint32(138).fork(), n = 0; n < e.GodAvatar.length; ++n) t.int64(e.GodAvatar[n]);
                    t.ldelim()
                }
                if (null != e.FavorUpgradeAudio && e.FavorUpgradeAudio.length) {
                    for (t.uint32(146).fork(), n = 0; n < e.FavorUpgradeAudio.length; ++n) t.int64(e.FavorUpgradeAudio[n]);
                    t.ldelim()
                }
                if (null != e.ActivityGet && Object.hasOwnProperty.call(e, "ActivityGet") && t.uint32(152).int64(e.ActivityGet), null != e.StaticImage && e.StaticImage.length) {
                    for (t.uint32(162).fork(), n = 0; n < e.StaticImage.length; ++n) t.int64(e.StaticImage[n]);
                    t.ldelim()
                }
                if (null != e.AngelIntroduce && Object.hasOwnProperty.call(e, "AngelIntroduce") && t.uint32(168).int64(e.AngelIntroduce), null != e.CustomBg && Object.hasOwnProperty.call(e, "CustomBg") && t.uint32(178).string(e.CustomBg), null != e.AvailableStartTime && Object.hasOwnProperty.call(e, "AvailableStartTime") && t.uint32(186).string(e.AvailableStartTime), null != e.Unlock && e.Unlock.length) {
                    for (t.uint32(194).fork(), n = 0; n < e.Unlock.length; ++n) t.int64(e.Unlock[n]);
                    t.ldelim()
                }
                return null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(200).int64(e.Quality), null != e.CustomEffect && Object.hasOwnProperty.call(e, "CustomEffect") && t.uint32(208).int64(e.CustomEffect), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(216).int64(e.HeroId), null != e.AngelSoulId && Object.hasOwnProperty.call(e, "AngelSoulId") && t.uint32(224).int64(e.AngelSoulId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.StarLevel = e.int64();
                            break;
                        case 6:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.GlobalSkills && r.GlobalSkills.length || (r.GlobalSkills = []), r.GlobalSkills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.Career = e.int64();
                            break;
                        case 10:
                            r.UIAvatar = e.string();
                            break;
                        case 11:
                            r.Model = e.string();
                            break;
                        case 12:
                            r.MaxStarLevel = e.int64();
                            break;
                        case 13:
                            r.AngelsPic = e.string();
                            break;
                        case 16:
                            r.ShowOffAni = e.string();
                            break;
                        case 17:
                            if (r.GodAvatar && r.GodAvatar.length || (r.GodAvatar = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.GodAvatar.push(e.int64());
                            else r.GodAvatar.push(e.int64());
                            break;
                        case 18:
                            if (r.FavorUpgradeAudio && r.FavorUpgradeAudio.length || (r.FavorUpgradeAudio = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.FavorUpgradeAudio.push(e.int64());
                            else r.FavorUpgradeAudio.push(e.int64());
                            break;
                        case 19:
                            r.ActivityGet = e.int64();
                            break;
                        case 20:
                            if (r.StaticImage && r.StaticImage.length || (r.StaticImage = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.StaticImage.push(e.int64());
                            else r.StaticImage.push(e.int64());
                            break;
                        case 21:
                            r.AngelIntroduce = e.int64();
                            break;
                        case 22:
                            r.CustomBg = e.string();
                            break;
                        case 23:
                            r.AvailableStartTime = e.string();
                            break;
                        case 24:
                            if (r.Unlock && r.Unlock.length || (r.Unlock = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Unlock.push(e.int64());
                            else r.Unlock.push(e.int64());
                            break;
                        case 25:
                            r.Quality = e.int64();
                            break;
                        case 26:
                            r.CustomEffect = e.int64();
                            break;
                        case 27:
                            r.HeroId = e.int64();
                            break;
                        case 28:
                            r.AngelSoulId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high))) return "StarLevel: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (var t = 0; t < e.Skills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                }
                if (null != e.GlobalSkills && e.hasOwnProperty("GlobalSkills")) {
                    if (!Array.isArray(e.GlobalSkills)) return "GlobalSkills: array expected";
                    for (t = 0; t < e.GlobalSkills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.GlobalSkills[t])) return "GlobalSkills." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                    }
                }
                if (null != e.Career && e.hasOwnProperty("Career") && !(i.isInteger(e.Career) || e.Career && i.isInteger(e.Career.low) && i.isInteger(e.Career.high))) return "Career: integer|Long expected";
                if (null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && !i.isString(e.UIAvatar)) return "UIAvatar: string expected";
                if (null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model)) return "Model: string expected";
                if (null != e.MaxStarLevel && e.hasOwnProperty("MaxStarLevel") && !(i.isInteger(e.MaxStarLevel) || e.MaxStarLevel && i.isInteger(e.MaxStarLevel.low) && i.isInteger(e.MaxStarLevel.high))) return "MaxStarLevel: integer|Long expected";
                if (null != e.AngelsPic && e.hasOwnProperty("AngelsPic") && !i.isString(e.AngelsPic)) return "AngelsPic: string expected";
                if (null != e.ShowOffAni && e.hasOwnProperty("ShowOffAni") && !i.isString(e.ShowOffAni)) return "ShowOffAni: string expected";
                if (null != e.GodAvatar && e.hasOwnProperty("GodAvatar")) {
                    if (!Array.isArray(e.GodAvatar)) return "GodAvatar: array expected";
                    for (t = 0; t < e.GodAvatar.length; ++t)
                        if (!(i.isInteger(e.GodAvatar[t]) || e.GodAvatar[t] && i.isInteger(e.GodAvatar[t].low) && i.isInteger(e.GodAvatar[t].high))) return "GodAvatar: integer|Long[] expected"
                }
                if (null != e.FavorUpgradeAudio && e.hasOwnProperty("FavorUpgradeAudio")) {
                    if (!Array.isArray(e.FavorUpgradeAudio)) return "FavorUpgradeAudio: array expected";
                    for (t = 0; t < e.FavorUpgradeAudio.length; ++t)
                        if (!(i.isInteger(e.FavorUpgradeAudio[t]) || e.FavorUpgradeAudio[t] && i.isInteger(e.FavorUpgradeAudio[t].low) && i.isInteger(e.FavorUpgradeAudio[t].high))) return "FavorUpgradeAudio: integer|Long[] expected"
                }
                if (null != e.ActivityGet && e.hasOwnProperty("ActivityGet") && !(i.isInteger(e.ActivityGet) || e.ActivityGet && i.isInteger(e.ActivityGet.low) && i.isInteger(e.ActivityGet.high))) return "ActivityGet: integer|Long expected";
                if (null != e.StaticImage && e.hasOwnProperty("StaticImage")) {
                    if (!Array.isArray(e.StaticImage)) return "StaticImage: array expected";
                    for (t = 0; t < e.StaticImage.length; ++t)
                        if (!(i.isInteger(e.StaticImage[t]) || e.StaticImage[t] && i.isInteger(e.StaticImage[t].low) && i.isInteger(e.StaticImage[t].high))) return "StaticImage: integer|Long[] expected"
                }
                if (null != e.AngelIntroduce && e.hasOwnProperty("AngelIntroduce") && !(i.isInteger(e.AngelIntroduce) || e.AngelIntroduce && i.isInteger(e.AngelIntroduce.low) && i.isInteger(e.AngelIntroduce.high))) return "AngelIntroduce: integer|Long expected";
                if (null != e.CustomBg && e.hasOwnProperty("CustomBg") && !i.isString(e.CustomBg)) return "CustomBg: string expected";
                if (null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && !i.isString(e.AvailableStartTime)) return "AvailableStartTime: string expected";
                if (null != e.Unlock && e.hasOwnProperty("Unlock")) {
                    if (!Array.isArray(e.Unlock)) return "Unlock: array expected";
                    for (t = 0; t < e.Unlock.length; ++t)
                        if (!(i.isInteger(e.Unlock[t]) || e.Unlock[t] && i.isInteger(e.Unlock[t].low) && i.isInteger(e.Unlock[t].high))) return "Unlock: integer|Long[] expected"
                }
                return null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high)) ? "Quality: integer|Long expected" : null != e.CustomEffect && e.hasOwnProperty("CustomEffect") && !(i.isInteger(e.CustomEffect) || e.CustomEffect && i.isInteger(e.CustomEffect.low) && i.isInteger(e.CustomEffect.high)) ? "CustomEffect: integer|Long expected" : null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null != e.AngelSoulId && e.hasOwnProperty("AngelSoulId") && !(i.isInteger(e.AngelSoulId) || e.AngelSoulId && i.isInteger(e.AngelSoulId.low) && i.isInteger(e.AngelSoulId.high)) ? "AngelSoulId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelBase_Config) return e;
                var t = new a.AngelBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".AngelBase_Config.Skills: array expected");
                    t.Skills = [];
                    for (var n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".AngelBase_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (e.GlobalSkills) {
                    if (!Array.isArray(e.GlobalSkills)) throw TypeError(".AngelBase_Config.GlobalSkills: array expected");
                    for (t.GlobalSkills = [], n = 0; n < e.GlobalSkills.length; ++n) {
                        if ("object" != typeof e.GlobalSkills[n]) throw TypeError(".AngelBase_Config.GlobalSkills: object expected");
                        t.GlobalSkills[n] = a.IntArray_Config.fromObject(e.GlobalSkills[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".AngelBase_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".AngelBase_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (null != e.Career && (i.Long ? (t.Career = i.Long.fromValue(e.Career)).unsigned = !1 : "string" == typeof e.Career ? t.Career = parseInt(e.Career, 10) : "number" == typeof e.Career ? t.Career = e.Career : "object" == typeof e.Career && (t.Career = new i.LongBits(e.Career.low >>> 0, e.Career.high >>> 0).toNumber())), null != e.UIAvatar && (t.UIAvatar = String(e.UIAvatar)), null != e.Model && (t.Model = String(e.Model)), null != e.MaxStarLevel && (i.Long ? (t.MaxStarLevel = i.Long.fromValue(e.MaxStarLevel)).unsigned = !1 : "string" == typeof e.MaxStarLevel ? t.MaxStarLevel = parseInt(e.MaxStarLevel, 10) : "number" == typeof e.MaxStarLevel ? t.MaxStarLevel = e.MaxStarLevel : "object" == typeof e.MaxStarLevel && (t.MaxStarLevel = new i.LongBits(e.MaxStarLevel.low >>> 0, e.MaxStarLevel.high >>> 0).toNumber())), null != e.AngelsPic && (t.AngelsPic = String(e.AngelsPic)), null != e.ShowOffAni && (t.ShowOffAni = String(e.ShowOffAni)), e.GodAvatar) {
                    if (!Array.isArray(e.GodAvatar)) throw TypeError(".AngelBase_Config.GodAvatar: array expected");
                    for (t.GodAvatar = [], n = 0; n < e.GodAvatar.length; ++n) i.Long ? (t.GodAvatar[n] = i.Long.fromValue(e.GodAvatar[n])).unsigned = !1 : "string" == typeof e.GodAvatar[n] ? t.GodAvatar[n] = parseInt(e.GodAvatar[n], 10) : "number" == typeof e.GodAvatar[n] ? t.GodAvatar[n] = e.GodAvatar[n] : "object" == typeof e.GodAvatar[n] && (t.GodAvatar[n] = new i.LongBits(e.GodAvatar[n].low >>> 0, e.GodAvatar[n].high >>> 0).toNumber())
                }
                if (e.FavorUpgradeAudio) {
                    if (!Array.isArray(e.FavorUpgradeAudio)) throw TypeError(".AngelBase_Config.FavorUpgradeAudio: array expected");
                    for (t.FavorUpgradeAudio = [], n = 0; n < e.FavorUpgradeAudio.length; ++n) i.Long ? (t.FavorUpgradeAudio[n] = i.Long.fromValue(e.FavorUpgradeAudio[n])).unsigned = !1 : "string" == typeof e.FavorUpgradeAudio[n] ? t.FavorUpgradeAudio[n] = parseInt(e.FavorUpgradeAudio[n], 10) : "number" == typeof e.FavorUpgradeAudio[n] ? t.FavorUpgradeAudio[n] = e.FavorUpgradeAudio[n] : "object" == typeof e.FavorUpgradeAudio[n] && (t.FavorUpgradeAudio[n] = new i.LongBits(e.FavorUpgradeAudio[n].low >>> 0, e.FavorUpgradeAudio[n].high >>> 0).toNumber())
                }
                if (null != e.ActivityGet && (i.Long ? (t.ActivityGet = i.Long.fromValue(e.ActivityGet)).unsigned = !1 : "string" == typeof e.ActivityGet ? t.ActivityGet = parseInt(e.ActivityGet, 10) : "number" == typeof e.ActivityGet ? t.ActivityGet = e.ActivityGet : "object" == typeof e.ActivityGet && (t.ActivityGet = new i.LongBits(e.ActivityGet.low >>> 0, e.ActivityGet.high >>> 0).toNumber())), e.StaticImage) {
                    if (!Array.isArray(e.StaticImage)) throw TypeError(".AngelBase_Config.StaticImage: array expected");
                    for (t.StaticImage = [], n = 0; n < e.StaticImage.length; ++n) i.Long ? (t.StaticImage[n] = i.Long.fromValue(e.StaticImage[n])).unsigned = !1 : "string" == typeof e.StaticImage[n] ? t.StaticImage[n] = parseInt(e.StaticImage[n], 10) : "number" == typeof e.StaticImage[n] ? t.StaticImage[n] = e.StaticImage[n] : "object" == typeof e.StaticImage[n] && (t.StaticImage[n] = new i.LongBits(e.StaticImage[n].low >>> 0, e.StaticImage[n].high >>> 0).toNumber())
                }
                if (null != e.AngelIntroduce && (i.Long ? (t.AngelIntroduce = i.Long.fromValue(e.AngelIntroduce)).unsigned = !1 : "string" == typeof e.AngelIntroduce ? t.AngelIntroduce = parseInt(e.AngelIntroduce, 10) : "number" == typeof e.AngelIntroduce ? t.AngelIntroduce = e.AngelIntroduce : "object" == typeof e.AngelIntroduce && (t.AngelIntroduce = new i.LongBits(e.AngelIntroduce.low >>> 0, e.AngelIntroduce.high >>> 0).toNumber())), null != e.CustomBg && (t.CustomBg = String(e.CustomBg)), null != e.AvailableStartTime && (t.AvailableStartTime = String(e.AvailableStartTime)), e.Unlock) {
                    if (!Array.isArray(e.Unlock)) throw TypeError(".AngelBase_Config.Unlock: array expected");
                    for (t.Unlock = [], n = 0; n < e.Unlock.length; ++n) i.Long ? (t.Unlock[n] = i.Long.fromValue(e.Unlock[n])).unsigned = !1 : "string" == typeof e.Unlock[n] ? t.Unlock[n] = parseInt(e.Unlock[n], 10) : "number" == typeof e.Unlock[n] ? t.Unlock[n] = e.Unlock[n] : "object" == typeof e.Unlock[n] && (t.Unlock[n] = new i.LongBits(e.Unlock[n].low >>> 0, e.Unlock[n].high >>> 0).toNumber())
                }
                return null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), null != e.CustomEffect && (i.Long ? (t.CustomEffect = i.Long.fromValue(e.CustomEffect)).unsigned = !1 : "string" == typeof e.CustomEffect ? t.CustomEffect = parseInt(e.CustomEffect, 10) : "number" == typeof e.CustomEffect ? t.CustomEffect = e.CustomEffect : "object" == typeof e.CustomEffect && (t.CustomEffect = new i.LongBits(e.CustomEffect.low >>> 0, e.CustomEffect.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), null != e.AngelSoulId && (i.Long ? (t.AngelSoulId = i.Long.fromValue(e.AngelSoulId)).unsigned = !1 : "string" == typeof e.AngelSoulId ? t.AngelSoulId = parseInt(e.AngelSoulId, 10) : "number" == typeof e.AngelSoulId ? t.AngelSoulId = e.AngelSoulId : "object" == typeof e.AngelSoulId && (t.AngelSoulId = new i.LongBits(e.AngelSoulId.low >>> 0, e.AngelSoulId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Skills = [], n.GlobalSkills = [], n.Attrs = [], n.GodAvatar = [], n.FavorUpgradeAudio = [], n.StaticImage = [], n.Unlock = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Career = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Career = t.longs === String ? "0" : 0, n.UIAvatar = "", n.Model = "", i.Long ? (o = new i.Long(0, 0, !1), n.MaxStarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxStarLevel = t.longs === String ? "0" : 0, n.AngelsPic = "", n.ShowOffAni = "", i.Long ? (o = new i.Long(0, 0, !1), n.ActivityGet = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ActivityGet = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AngelIntroduce = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AngelIntroduce = t.longs === String ? "0" : 0, n.CustomBg = "", n.AvailableStartTime = "", i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.CustomEffect = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CustomEffect = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AngelSoulId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AngelSoulId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), e.Skills && e.Skills.length) {
                    n.Skills = [];
                    for (var r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t)
                }
                if (e.GlobalSkills && e.GlobalSkills.length)
                    for (n.GlobalSkills = [], r = 0; r < e.GlobalSkills.length; ++r) n.GlobalSkills[r] = a.IntArray_Config.toObject(e.GlobalSkills[r], t);
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (null != e.Career && e.hasOwnProperty("Career") && ("number" == typeof e.Career ? n.Career = t.longs === String ? String(e.Career) : e.Career : n.Career = t.longs === String ? i.Long.prototype.toString.call(e.Career) : t.longs === Number ? new i.LongBits(e.Career.low >>> 0, e.Career.high >>> 0).toNumber() : e.Career), null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && (n.UIAvatar = e.UIAvatar), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), null != e.MaxStarLevel && e.hasOwnProperty("MaxStarLevel") && ("number" == typeof e.MaxStarLevel ? n.MaxStarLevel = t.longs === String ? String(e.MaxStarLevel) : e.MaxStarLevel : n.MaxStarLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxStarLevel) : t.longs === Number ? new i.LongBits(e.MaxStarLevel.low >>> 0, e.MaxStarLevel.high >>> 0).toNumber() : e.MaxStarLevel), null != e.AngelsPic && e.hasOwnProperty("AngelsPic") && (n.AngelsPic = e.AngelsPic), null != e.ShowOffAni && e.hasOwnProperty("ShowOffAni") && (n.ShowOffAni = e.ShowOffAni), e.GodAvatar && e.GodAvatar.length)
                    for (n.GodAvatar = [], r = 0; r < e.GodAvatar.length; ++r) "number" == typeof e.GodAvatar[r] ? n.GodAvatar[r] = t.longs === String ? String(e.GodAvatar[r]) : e.GodAvatar[r] : n.GodAvatar[r] = t.longs === String ? i.Long.prototype.toString.call(e.GodAvatar[r]) : t.longs === Number ? new i.LongBits(e.GodAvatar[r].low >>> 0, e.GodAvatar[r].high >>> 0).toNumber() : e.GodAvatar[r];
                if (e.FavorUpgradeAudio && e.FavorUpgradeAudio.length)
                    for (n.FavorUpgradeAudio = [], r = 0; r < e.FavorUpgradeAudio.length; ++r) "number" == typeof e.FavorUpgradeAudio[r] ? n.FavorUpgradeAudio[r] = t.longs === String ? String(e.FavorUpgradeAudio[r]) : e.FavorUpgradeAudio[r] : n.FavorUpgradeAudio[r] = t.longs === String ? i.Long.prototype.toString.call(e.FavorUpgradeAudio[r]) : t.longs === Number ? new i.LongBits(e.FavorUpgradeAudio[r].low >>> 0, e.FavorUpgradeAudio[r].high >>> 0).toNumber() : e.FavorUpgradeAudio[r];
                if (null != e.ActivityGet && e.hasOwnProperty("ActivityGet") && ("number" == typeof e.ActivityGet ? n.ActivityGet = t.longs === String ? String(e.ActivityGet) : e.ActivityGet : n.ActivityGet = t.longs === String ? i.Long.prototype.toString.call(e.ActivityGet) : t.longs === Number ? new i.LongBits(e.ActivityGet.low >>> 0, e.ActivityGet.high >>> 0).toNumber() : e.ActivityGet), e.StaticImage && e.StaticImage.length)
                    for (n.StaticImage = [], r = 0; r < e.StaticImage.length; ++r) "number" == typeof e.StaticImage[r] ? n.StaticImage[r] = t.longs === String ? String(e.StaticImage[r]) : e.StaticImage[r] : n.StaticImage[r] = t.longs === String ? i.Long.prototype.toString.call(e.StaticImage[r]) : t.longs === Number ? new i.LongBits(e.StaticImage[r].low >>> 0, e.StaticImage[r].high >>> 0).toNumber() : e.StaticImage[r];
                if (null != e.AngelIntroduce && e.hasOwnProperty("AngelIntroduce") && ("number" == typeof e.AngelIntroduce ? n.AngelIntroduce = t.longs === String ? String(e.AngelIntroduce) : e.AngelIntroduce : n.AngelIntroduce = t.longs === String ? i.Long.prototype.toString.call(e.AngelIntroduce) : t.longs === Number ? new i.LongBits(e.AngelIntroduce.low >>> 0, e.AngelIntroduce.high >>> 0).toNumber() : e.AngelIntroduce), null != e.CustomBg && e.hasOwnProperty("CustomBg") && (n.CustomBg = e.CustomBg), null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && (n.AvailableStartTime = e.AvailableStartTime), e.Unlock && e.Unlock.length)
                    for (n.Unlock = [], r = 0; r < e.Unlock.length; ++r) "number" == typeof e.Unlock[r] ? n.Unlock[r] = t.longs === String ? String(e.Unlock[r]) : e.Unlock[r] : n.Unlock[r] = t.longs === String ? i.Long.prototype.toString.call(e.Unlock[r]) : t.longs === Number ? new i.LongBits(e.Unlock[r].low >>> 0, e.Unlock[r].high >>> 0).toNumber() : e.Unlock[r];
                return null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), null != e.CustomEffect && e.hasOwnProperty("CustomEffect") && ("number" == typeof e.CustomEffect ? n.CustomEffect = t.longs === String ? String(e.CustomEffect) : e.CustomEffect : n.CustomEffect = t.longs === String ? i.Long.prototype.toString.call(e.CustomEffect) : t.longs === Number ? new i.LongBits(e.CustomEffect.low >>> 0, e.CustomEffect.high >>> 0).toNumber() : e.CustomEffect), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), null != e.AngelSoulId && e.hasOwnProperty("AngelSoulId") && ("number" == typeof e.AngelSoulId ? n.AngelSoulId = t.longs === String ? String(e.AngelSoulId) : e.AngelSoulId : n.AngelSoulId = t.longs === String ? i.Long.prototype.toString.call(e.AngelSoulId) : t.longs === Number ? new i.LongBits(e.AngelSoulId.low >>> 0, e.AngelSoulId.high >>> 0).toNumber() : e.AngelSoulId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelBase_Config"
            }, e
        }(), a.AngelLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Unlock = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(32).int64(e.Score), null != e.Unlock && Object.hasOwnProperty.call(e, "Unlock") && t.uint32(40).int64(e.Unlock), null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(74).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Score = e.int64();
                            break;
                        case 5:
                            r.Unlock = e.int64();
                            break;
                        case 9:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.Unlock && e.hasOwnProperty("Unlock") && !(i.isInteger(e.Unlock) || e.Unlock && i.isInteger(e.Unlock.low) && i.isInteger(e.Unlock.high))) return "Unlock: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelLevel_Config) return e;
                var t = new a.AngelLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".AngelLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".AngelLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), null != e.Unlock && (i.Long ? (t.Unlock = i.Long.fromValue(e.Unlock)).unsigned = !1 : "string" == typeof e.Unlock ? t.Unlock = parseInt(e.Unlock, 10) : "number" == typeof e.Unlock ? t.Unlock = e.Unlock : "object" == typeof e.Unlock && (t.Unlock = new i.LongBits(e.Unlock.low >>> 0, e.Unlock.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".AngelLevel_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".AngelLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Unlock = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Unlock = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), null != e.Unlock && e.hasOwnProperty("Unlock") && ("number" == typeof e.Unlock ? n.Unlock = t.longs === String ? String(e.Unlock) : e.Unlock : n.Unlock = t.longs === String ? i.Long.prototype.toString.call(e.Unlock) : t.longs === Number ? new i.LongBits(e.Unlock.low >>> 0, e.Unlock.high >>> 0).toNumber() : e.Unlock), e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelLevel_Config"
            }, e
        }(), a.AngelFavorLevel_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(16).int64(e.Xp), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelFavorLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Xp = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high))) return "Xp: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelFavorLevel_Config) return e;
                var t = new a.AngelFavorLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AngelFavorLevel_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AngelFavorLevel_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelFavorLevel_Config"
            }, e
        }(), a.AngelGodAvatar_Config = function() {
            function e(e) {
                if (this.GlobalAttrs = [], this.Skills = [], this.UpdateMaterial = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Angel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GlobalAttrs = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Model = "", e.prototype.UIAvatar = "", e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AngelCard = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.prototype.UpdateMaterial = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Angel && Object.hasOwnProperty.call(e, "Angel") && t.uint32(16).int64(e.Angel), null != e.GlobalAttrs && e.GlobalAttrs.length)
                    for (var n = 0; n < e.GlobalAttrs.length; ++n) a.IntArray_Config.encode(e.GlobalAttrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(32).int64(e.Score), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(58).string(e.Model), null != e.UIAvatar && Object.hasOwnProperty.call(e, "UIAvatar") && t.uint32(66).string(e.UIAvatar), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(72).int64(e.Type), null != e.AngelCard && Object.hasOwnProperty.call(e, "AngelCard") && t.uint32(80).int64(e.AngelCard), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(88).int64(e.ItemId), null != e.Skills && e.Skills.length)
                    for (n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(98).fork()).ldelim();
                if (null != e.UpdateMaterial && e.UpdateMaterial.length)
                    for (n = 0; n < e.UpdateMaterial.length; ++n) a.IntArray_Config.encode(e.UpdateMaterial[n], t.uint32(106).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelGodAvatar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Angel = e.int64();
                            break;
                        case 3:
                            r.GlobalAttrs && r.GlobalAttrs.length || (r.GlobalAttrs = []), r.GlobalAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Score = e.int64();
                            break;
                        case 7:
                            r.Model = e.string();
                            break;
                        case 8:
                            r.UIAvatar = e.string();
                            break;
                        case 9:
                            r.Type = e.int64();
                            break;
                        case 10:
                            r.AngelCard = e.int64();
                            break;
                        case 11:
                            r.ItemId = e.int64();
                            break;
                        case 12:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 13:
                            r.UpdateMaterial && r.UpdateMaterial.length || (r.UpdateMaterial = []), r.UpdateMaterial.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Angel && e.hasOwnProperty("Angel") && !(i.isInteger(e.Angel) || e.Angel && i.isInteger(e.Angel.low) && i.isInteger(e.Angel.high))) return "Angel: integer|Long expected";
                if (null != e.GlobalAttrs && e.hasOwnProperty("GlobalAttrs")) {
                    if (!Array.isArray(e.GlobalAttrs)) return "GlobalAttrs: array expected";
                    for (var t = 0; t < e.GlobalAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.GlobalAttrs[t])) return "GlobalAttrs." + n
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model)) return "Model: string expected";
                if (null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && !i.isString(e.UIAvatar)) return "UIAvatar: string expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.AngelCard && e.hasOwnProperty("AngelCard") && !(i.isInteger(e.AngelCard) || e.AngelCard && i.isInteger(e.AngelCard.low) && i.isInteger(e.AngelCard.high))) return "AngelCard: integer|Long expected";
                if (null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high))) return "ItemId: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (t = 0; t < e.Skills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                }
                if (null != e.UpdateMaterial && e.hasOwnProperty("UpdateMaterial")) {
                    if (!Array.isArray(e.UpdateMaterial)) return "UpdateMaterial: array expected";
                    for (t = 0; t < e.UpdateMaterial.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.UpdateMaterial[t])) return "UpdateMaterial." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelGodAvatar_Config) return e;
                var t = new a.AngelGodAvatar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Angel && (i.Long ? (t.Angel = i.Long.fromValue(e.Angel)).unsigned = !1 : "string" == typeof e.Angel ? t.Angel = parseInt(e.Angel, 10) : "number" == typeof e.Angel ? t.Angel = e.Angel : "object" == typeof e.Angel && (t.Angel = new i.LongBits(e.Angel.low >>> 0, e.Angel.high >>> 0).toNumber())), e.GlobalAttrs) {
                    if (!Array.isArray(e.GlobalAttrs)) throw TypeError(".AngelGodAvatar_Config.GlobalAttrs: array expected");
                    t.GlobalAttrs = [];
                    for (var n = 0; n < e.GlobalAttrs.length; ++n) {
                        if ("object" != typeof e.GlobalAttrs[n]) throw TypeError(".AngelGodAvatar_Config.GlobalAttrs: object expected");
                        t.GlobalAttrs[n] = a.IntArray_Config.fromObject(e.GlobalAttrs[n])
                    }
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), null != e.Model && (t.Model = String(e.Model)), null != e.UIAvatar && (t.UIAvatar = String(e.UIAvatar)), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.AngelCard && (i.Long ? (t.AngelCard = i.Long.fromValue(e.AngelCard)).unsigned = !1 : "string" == typeof e.AngelCard ? t.AngelCard = parseInt(e.AngelCard, 10) : "number" == typeof e.AngelCard ? t.AngelCard = e.AngelCard : "object" == typeof e.AngelCard && (t.AngelCard = new i.LongBits(e.AngelCard.low >>> 0, e.AngelCard.high >>> 0).toNumber())), null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".AngelGodAvatar_Config.Skills: array expected");
                    for (t.Skills = [], n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".AngelGodAvatar_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (e.UpdateMaterial) {
                    if (!Array.isArray(e.UpdateMaterial)) throw TypeError(".AngelGodAvatar_Config.UpdateMaterial: array expected");
                    for (t.UpdateMaterial = [], n = 0; n < e.UpdateMaterial.length; ++n) {
                        if ("object" != typeof e.UpdateMaterial[n]) throw TypeError(".AngelGodAvatar_Config.UpdateMaterial: object expected");
                        t.UpdateMaterial[n] = a.IntArray_Config.fromObject(e.UpdateMaterial[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.GlobalAttrs = [], n.Skills = [], n.UpdateMaterial = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Angel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Angel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0, n.Model = "", n.UIAvatar = "", i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AngelCard = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AngelCard = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Angel && e.hasOwnProperty("Angel") && ("number" == typeof e.Angel ? n.Angel = t.longs === String ? String(e.Angel) : e.Angel : n.Angel = t.longs === String ? i.Long.prototype.toString.call(e.Angel) : t.longs === Number ? new i.LongBits(e.Angel.low >>> 0, e.Angel.high >>> 0).toNumber() : e.Angel), e.GlobalAttrs && e.GlobalAttrs.length) {
                    n.GlobalAttrs = [];
                    for (var r = 0; r < e.GlobalAttrs.length; ++r) n.GlobalAttrs[r] = a.IntArray_Config.toObject(e.GlobalAttrs[r], t)
                }
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), null != e.UIAvatar && e.hasOwnProperty("UIAvatar") && (n.UIAvatar = e.UIAvatar), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.AngelCard && e.hasOwnProperty("AngelCard") && ("number" == typeof e.AngelCard ? n.AngelCard = t.longs === String ? String(e.AngelCard) : e.AngelCard : n.AngelCard = t.longs === String ? i.Long.prototype.toString.call(e.AngelCard) : t.longs === Number ? new i.LongBits(e.AngelCard.low >>> 0, e.AngelCard.high >>> 0).toNumber() : e.AngelCard), null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), e.Skills && e.Skills.length)
                    for (n.Skills = [], r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t);
                if (e.UpdateMaterial && e.UpdateMaterial.length)
                    for (n.UpdateMaterial = [], r = 0; r < e.UpdateMaterial.length; ++r) n.UpdateMaterial[r] = a.IntArray_Config.toObject(e.UpdateMaterial[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelGodAvatar_Config"
            }, e
        }(), a.AngelIntroduce_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelIntroduce_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelIntroduce_Config) return e;
                var t = new a.AngelIntroduce_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AngelIntroduce_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AngelIntroduce_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelIntroduce_Config"
            }, e
        }(), a.AngelFatePage_Config = function() {
            function e(e) {
                if (this.FateIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NextPage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FateIds = i.emptyArray, e.prototype.Angel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BackRes = "", e.prototype.FateMode = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.NextPage && Object.hasOwnProperty.call(e, "NextPage") && t.uint32(16).int64(e.NextPage), null != e.FateIds && e.FateIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.FateIds.length; ++n) t.int64(e.FateIds[n]);
                    t.ldelim()
                }
                return null != e.Angel && Object.hasOwnProperty.call(e, "Angel") && t.uint32(32).int64(e.Angel), null != e.BackRes && Object.hasOwnProperty.call(e, "BackRes") && t.uint32(42).string(e.BackRes), null != e.FateMode && Object.hasOwnProperty.call(e, "FateMode") && t.uint32(48).int64(e.FateMode), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelFatePage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.NextPage = e.int64();
                            break;
                        case 3:
                            if (r.FateIds && r.FateIds.length || (r.FateIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.FateIds.push(e.int64());
                            else r.FateIds.push(e.int64());
                            break;
                        case 4:
                            r.Angel = e.int64();
                            break;
                        case 5:
                            r.BackRes = e.string();
                            break;
                        case 6:
                            r.FateMode = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.NextPage && e.hasOwnProperty("NextPage") && !(i.isInteger(e.NextPage) || e.NextPage && i.isInteger(e.NextPage.low) && i.isInteger(e.NextPage.high))) return "NextPage: integer|Long expected";
                if (null != e.FateIds && e.hasOwnProperty("FateIds")) {
                    if (!Array.isArray(e.FateIds)) return "FateIds: array expected";
                    for (var t = 0; t < e.FateIds.length; ++t)
                        if (!(i.isInteger(e.FateIds[t]) || e.FateIds[t] && i.isInteger(e.FateIds[t].low) && i.isInteger(e.FateIds[t].high))) return "FateIds: integer|Long[] expected"
                }
                return null != e.Angel && e.hasOwnProperty("Angel") && !(i.isInteger(e.Angel) || e.Angel && i.isInteger(e.Angel.low) && i.isInteger(e.Angel.high)) ? "Angel: integer|Long expected" : null != e.BackRes && e.hasOwnProperty("BackRes") && !i.isString(e.BackRes) ? "BackRes: string expected" : null != e.FateMode && e.hasOwnProperty("FateMode") && !(i.isInteger(e.FateMode) || e.FateMode && i.isInteger(e.FateMode.low) && i.isInteger(e.FateMode.high)) ? "FateMode: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelFatePage_Config) return e;
                var t = new a.AngelFatePage_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.NextPage && (i.Long ? (t.NextPage = i.Long.fromValue(e.NextPage)).unsigned = !1 : "string" == typeof e.NextPage ? t.NextPage = parseInt(e.NextPage, 10) : "number" == typeof e.NextPage ? t.NextPage = e.NextPage : "object" == typeof e.NextPage && (t.NextPage = new i.LongBits(e.NextPage.low >>> 0, e.NextPage.high >>> 0).toNumber())), e.FateIds) {
                    if (!Array.isArray(e.FateIds)) throw TypeError(".AngelFatePage_Config.FateIds: array expected");
                    t.FateIds = [];
                    for (var n = 0; n < e.FateIds.length; ++n) i.Long ? (t.FateIds[n] = i.Long.fromValue(e.FateIds[n])).unsigned = !1 : "string" == typeof e.FateIds[n] ? t.FateIds[n] = parseInt(e.FateIds[n], 10) : "number" == typeof e.FateIds[n] ? t.FateIds[n] = e.FateIds[n] : "object" == typeof e.FateIds[n] && (t.FateIds[n] = new i.LongBits(e.FateIds[n].low >>> 0, e.FateIds[n].high >>> 0).toNumber())
                }
                return null != e.Angel && (i.Long ? (t.Angel = i.Long.fromValue(e.Angel)).unsigned = !1 : "string" == typeof e.Angel ? t.Angel = parseInt(e.Angel, 10) : "number" == typeof e.Angel ? t.Angel = e.Angel : "object" == typeof e.Angel && (t.Angel = new i.LongBits(e.Angel.low >>> 0, e.Angel.high >>> 0).toNumber())), null != e.BackRes && (t.BackRes = String(e.BackRes)), null != e.FateMode && (i.Long ? (t.FateMode = i.Long.fromValue(e.FateMode)).unsigned = !1 : "string" == typeof e.FateMode ? t.FateMode = parseInt(e.FateMode, 10) : "number" == typeof e.FateMode ? t.FateMode = e.FateMode : "object" == typeof e.FateMode && (t.FateMode = new i.LongBits(e.FateMode.low >>> 0, e.FateMode.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.FateIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.NextPage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextPage = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Angel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Angel = t.longs === String ? "0" : 0, n.BackRes = "", i.Long ? (o = new i.Long(0, 0, !1), n.FateMode = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.FateMode = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.NextPage && e.hasOwnProperty("NextPage") && ("number" == typeof e.NextPage ? n.NextPage = t.longs === String ? String(e.NextPage) : e.NextPage : n.NextPage = t.longs === String ? i.Long.prototype.toString.call(e.NextPage) : t.longs === Number ? new i.LongBits(e.NextPage.low >>> 0, e.NextPage.high >>> 0).toNumber() : e.NextPage), e.FateIds && e.FateIds.length) {
                    n.FateIds = [];
                    for (var r = 0; r < e.FateIds.length; ++r) "number" == typeof e.FateIds[r] ? n.FateIds[r] = t.longs === String ? String(e.FateIds[r]) : e.FateIds[r] : n.FateIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.FateIds[r]) : t.longs === Number ? new i.LongBits(e.FateIds[r].low >>> 0, e.FateIds[r].high >>> 0).toNumber() : e.FateIds[r]
                }
                return null != e.Angel && e.hasOwnProperty("Angel") && ("number" == typeof e.Angel ? n.Angel = t.longs === String ? String(e.Angel) : e.Angel : n.Angel = t.longs === String ? i.Long.prototype.toString.call(e.Angel) : t.longs === Number ? new i.LongBits(e.Angel.low >>> 0, e.Angel.high >>> 0).toNumber() : e.Angel), null != e.BackRes && e.hasOwnProperty("BackRes") && (n.BackRes = e.BackRes), null != e.FateMode && e.hasOwnProperty("FateMode") && ("number" == typeof e.FateMode ? n.FateMode = t.longs === String ? String(e.FateMode) : e.FateMode : n.FateMode = t.longs === String ? i.Long.prototype.toString.call(e.FateMode) : t.longs === Number ? new i.LongBits(e.FateMode.low >>> 0, e.FateMode.high >>> 0).toNumber() : e.FateMode), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelFatePage_Config"
            }, e
        }(), a.AngelFate_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.GlobalAttrs = [], this.Materials = [], this.GlobalSkills = [], this.AssociatedPoint = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.GlobalAttrs = i.emptyArray, e.prototype.Materials = i.emptyArray, e.prototype.UnlockPos = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GlobalSkills = i.emptyArray, e.prototype.AssociatedPoint = i.emptyArray, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.GlobalAttrs && e.GlobalAttrs.length)
                    for (n = 0; n < e.GlobalAttrs.length; ++n) a.IntArray_Config.encode(e.GlobalAttrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(42).fork()).ldelim();
                if (null != e.UnlockPos && Object.hasOwnProperty.call(e, "UnlockPos") && t.uint32(56).int64(e.UnlockPos), null != e.GlobalSkills && e.GlobalSkills.length)
                    for (n = 0; n < e.GlobalSkills.length; ++n) a.IntArray_Config.encode(e.GlobalSkills[n], t.uint32(66).fork()).ldelim();
                if (null != e.AssociatedPoint && e.AssociatedPoint.length) {
                    for (t.uint32(74).fork(), n = 0; n < e.AssociatedPoint.length; ++n) t.int64(e.AssociatedPoint[n]);
                    t.ldelim()
                }
                return null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(80).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelFate_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.GlobalAttrs && r.GlobalAttrs.length || (r.GlobalAttrs = []), r.GlobalAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.UnlockPos = e.int64();
                            break;
                        case 8:
                            r.GlobalSkills && r.GlobalSkills.length || (r.GlobalSkills = []), r.GlobalSkills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            if (r.AssociatedPoint && r.AssociatedPoint.length || (r.AssociatedPoint = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AssociatedPoint.push(e.int64());
                            else r.AssociatedPoint.push(e.int64());
                            break;
                        case 10:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.GlobalAttrs && e.hasOwnProperty("GlobalAttrs")) {
                    if (!Array.isArray(e.GlobalAttrs)) return "GlobalAttrs: array expected";
                    for (t = 0; t < e.GlobalAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.GlobalAttrs[t])) return "GlobalAttrs." + n
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.UnlockPos && e.hasOwnProperty("UnlockPos") && !(i.isInteger(e.UnlockPos) || e.UnlockPos && i.isInteger(e.UnlockPos.low) && i.isInteger(e.UnlockPos.high))) return "UnlockPos: integer|Long expected";
                if (null != e.GlobalSkills && e.hasOwnProperty("GlobalSkills")) {
                    if (!Array.isArray(e.GlobalSkills)) return "GlobalSkills: array expected";
                    for (t = 0; t < e.GlobalSkills.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.GlobalSkills[t])) return "GlobalSkills." + n
                    }
                }
                if (null != e.AssociatedPoint && e.hasOwnProperty("AssociatedPoint")) {
                    if (!Array.isArray(e.AssociatedPoint)) return "AssociatedPoint: array expected";
                    for (t = 0; t < e.AssociatedPoint.length; ++t)
                        if (!(i.isInteger(e.AssociatedPoint[t]) || e.AssociatedPoint[t] && i.isInteger(e.AssociatedPoint[t].low) && i.isInteger(e.AssociatedPoint[t].high))) return "AssociatedPoint: integer|Long[] expected"
                }
                return null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelFate_Config) return e;
                var t = new a.AngelFate_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".AngelFate_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".AngelFate_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.GlobalAttrs) {
                    if (!Array.isArray(e.GlobalAttrs)) throw TypeError(".AngelFate_Config.GlobalAttrs: array expected");
                    for (t.GlobalAttrs = [], n = 0; n < e.GlobalAttrs.length; ++n) {
                        if ("object" != typeof e.GlobalAttrs[n]) throw TypeError(".AngelFate_Config.GlobalAttrs: object expected");
                        t.GlobalAttrs[n] = a.IntArray_Config.fromObject(e.GlobalAttrs[n])
                    }
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".AngelFate_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".AngelFate_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (null != e.UnlockPos && (i.Long ? (t.UnlockPos = i.Long.fromValue(e.UnlockPos)).unsigned = !1 : "string" == typeof e.UnlockPos ? t.UnlockPos = parseInt(e.UnlockPos, 10) : "number" == typeof e.UnlockPos ? t.UnlockPos = e.UnlockPos : "object" == typeof e.UnlockPos && (t.UnlockPos = new i.LongBits(e.UnlockPos.low >>> 0, e.UnlockPos.high >>> 0).toNumber())), e.GlobalSkills) {
                    if (!Array.isArray(e.GlobalSkills)) throw TypeError(".AngelFate_Config.GlobalSkills: array expected");
                    for (t.GlobalSkills = [], n = 0; n < e.GlobalSkills.length; ++n) {
                        if ("object" != typeof e.GlobalSkills[n]) throw TypeError(".AngelFate_Config.GlobalSkills: object expected");
                        t.GlobalSkills[n] = a.IntArray_Config.fromObject(e.GlobalSkills[n])
                    }
                }
                if (e.AssociatedPoint) {
                    if (!Array.isArray(e.AssociatedPoint)) throw TypeError(".AngelFate_Config.AssociatedPoint: array expected");
                    for (t.AssociatedPoint = [], n = 0; n < e.AssociatedPoint.length; ++n) i.Long ? (t.AssociatedPoint[n] = i.Long.fromValue(e.AssociatedPoint[n])).unsigned = !1 : "string" == typeof e.AssociatedPoint[n] ? t.AssociatedPoint[n] = parseInt(e.AssociatedPoint[n], 10) : "number" == typeof e.AssociatedPoint[n] ? t.AssociatedPoint[n] = e.AssociatedPoint[n] : "object" == typeof e.AssociatedPoint[n] && (t.AssociatedPoint[n] = new i.LongBits(e.AssociatedPoint[n].low >>> 0, e.AssociatedPoint[n].high >>> 0).toNumber())
                }
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.GlobalAttrs = [], n.Materials = [], n.GlobalSkills = [], n.AssociatedPoint = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.UnlockPos = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UnlockPos = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.GlobalAttrs && e.GlobalAttrs.length)
                    for (n.GlobalAttrs = [], r = 0; r < e.GlobalAttrs.length; ++r) n.GlobalAttrs[r] = a.IntArray_Config.toObject(e.GlobalAttrs[r], t);
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                if (null != e.UnlockPos && e.hasOwnProperty("UnlockPos") && ("number" == typeof e.UnlockPos ? n.UnlockPos = t.longs === String ? String(e.UnlockPos) : e.UnlockPos : n.UnlockPos = t.longs === String ? i.Long.prototype.toString.call(e.UnlockPos) : t.longs === Number ? new i.LongBits(e.UnlockPos.low >>> 0, e.UnlockPos.high >>> 0).toNumber() : e.UnlockPos), e.GlobalSkills && e.GlobalSkills.length)
                    for (n.GlobalSkills = [], r = 0; r < e.GlobalSkills.length; ++r) n.GlobalSkills[r] = a.IntArray_Config.toObject(e.GlobalSkills[r], t);
                if (e.AssociatedPoint && e.AssociatedPoint.length)
                    for (n.AssociatedPoint = [], r = 0; r < e.AssociatedPoint.length; ++r) "number" == typeof e.AssociatedPoint[r] ? n.AssociatedPoint[r] = t.longs === String ? String(e.AssociatedPoint[r]) : e.AssociatedPoint[r] : n.AssociatedPoint[r] = t.longs === String ? i.Long.prototype.toString.call(e.AssociatedPoint[r]) : t.longs === Number ? new i.LongBits(e.AssociatedPoint[r].low >>> 0, e.AssociatedPoint[r].high >>> 0).toNumber() : e.AssociatedPoint[r];
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelFate_Config"
            }, e
        }(), a.AngelGodSoulPos_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FatePoint = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.FatePoint && Object.hasOwnProperty.call(e, "FatePoint") && t.uint32(16).int64(e.FatePoint), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelGodSoulPos_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.FatePoint = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.FatePoint && e.hasOwnProperty("FatePoint") && !(i.isInteger(e.FatePoint) || e.FatePoint && i.isInteger(e.FatePoint.low) && i.isInteger(e.FatePoint.high)) ? "FatePoint: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelGodSoulPos_Config) return e;
                var t = new a.AngelGodSoulPos_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.FatePoint && (i.Long ? (t.FatePoint = i.Long.fromValue(e.FatePoint)).unsigned = !1 : "string" == typeof e.FatePoint ? t.FatePoint = parseInt(e.FatePoint, 10) : "number" == typeof e.FatePoint ? t.FatePoint = e.FatePoint : "object" == typeof e.FatePoint && (t.FatePoint = new i.LongBits(e.FatePoint.low >>> 0, e.FatePoint.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.FatePoint = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.FatePoint = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.FatePoint && e.hasOwnProperty("FatePoint") && ("number" == typeof e.FatePoint ? n.FatePoint = t.longs === String ? String(e.FatePoint) : e.FatePoint : n.FatePoint = t.longs === String ? i.Long.prototype.toString.call(e.FatePoint) : t.longs === Number ? new i.LongBits(e.FatePoint.low >>> 0, e.FatePoint.high >>> 0).toNumber() : e.FatePoint), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelGodSoulPos_Config"
            }, e
        }(), a.AngelGodSoul_Config = function() {
            function e(e) {
                if (this.Skills = [], this.Attr = [], this.PersonalAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.prototype.Bp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attr = i.emptyArray, e.prototype.PersonalAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(16).int64(e.Quality), null != e.Skills && e.Skills.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Skills.length; ++n) t.int64(e.Skills[n]);
                    t.ldelim()
                }
                if (null != e.Bp && Object.hasOwnProperty.call(e, "Bp") && t.uint32(32).int64(e.Bp), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(40).int64(e.Level), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(48).int64(e.Type), null != e.Attr && e.Attr.length)
                    for (n = 0; n < e.Attr.length; ++n) a.IntArray_Config.encode(e.Attr[n], t.uint32(58).fork()).ldelim();
                if (null != e.PersonalAttrs && e.PersonalAttrs.length)
                    for (n = 0; n < e.PersonalAttrs.length; ++n) a.IntArray_Config.encode(e.PersonalAttrs[n], t.uint32(66).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelGodSoul_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Quality = e.int64();
                            break;
                        case 3:
                            if (r.Skills && r.Skills.length || (r.Skills = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Skills.push(e.int64());
                            else r.Skills.push(e.int64());
                            break;
                        case 4:
                            r.Bp = e.int64();
                            break;
                        case 5:
                            r.Level = e.int64();
                            break;
                        case 6:
                            r.Type = e.int64();
                            break;
                        case 7:
                            r.Attr && r.Attr.length || (r.Attr = []), r.Attr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.PersonalAttrs && r.PersonalAttrs.length || (r.PersonalAttrs = []), r.PersonalAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (var t = 0; t < e.Skills.length; ++t)
                        if (!(i.isInteger(e.Skills[t]) || e.Skills[t] && i.isInteger(e.Skills[t].low) && i.isInteger(e.Skills[t].high))) return "Skills: integer|Long[] expected"
                }
                if (null != e.Bp && e.hasOwnProperty("Bp") && !(i.isInteger(e.Bp) || e.Bp && i.isInteger(e.Bp.low) && i.isInteger(e.Bp.high))) return "Bp: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Attr && e.hasOwnProperty("Attr")) {
                    if (!Array.isArray(e.Attr)) return "Attr: array expected";
                    for (t = 0; t < e.Attr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attr[t])) return "Attr." + n
                }
                if (null != e.PersonalAttrs && e.hasOwnProperty("PersonalAttrs")) {
                    if (!Array.isArray(e.PersonalAttrs)) return "PersonalAttrs: array expected";
                    for (t = 0; t < e.PersonalAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.PersonalAttrs[t])) return "PersonalAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelGodSoul_Config) return e;
                var t = new a.AngelGodSoul_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".AngelGodSoul_Config.Skills: array expected");
                    t.Skills = [];
                    for (var n = 0; n < e.Skills.length; ++n) i.Long ? (t.Skills[n] = i.Long.fromValue(e.Skills[n])).unsigned = !1 : "string" == typeof e.Skills[n] ? t.Skills[n] = parseInt(e.Skills[n], 10) : "number" == typeof e.Skills[n] ? t.Skills[n] = e.Skills[n] : "object" == typeof e.Skills[n] && (t.Skills[n] = new i.LongBits(e.Skills[n].low >>> 0, e.Skills[n].high >>> 0).toNumber())
                }
                if (null != e.Bp && (i.Long ? (t.Bp = i.Long.fromValue(e.Bp)).unsigned = !1 : "string" == typeof e.Bp ? t.Bp = parseInt(e.Bp, 10) : "number" == typeof e.Bp ? t.Bp = e.Bp : "object" == typeof e.Bp && (t.Bp = new i.LongBits(e.Bp.low >>> 0, e.Bp.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Attr) {
                    if (!Array.isArray(e.Attr)) throw TypeError(".AngelGodSoul_Config.Attr: array expected");
                    for (t.Attr = [], n = 0; n < e.Attr.length; ++n) {
                        if ("object" != typeof e.Attr[n]) throw TypeError(".AngelGodSoul_Config.Attr: object expected");
                        t.Attr[n] = a.IntArray_Config.fromObject(e.Attr[n])
                    }
                }
                if (e.PersonalAttrs) {
                    if (!Array.isArray(e.PersonalAttrs)) throw TypeError(".AngelGodSoul_Config.PersonalAttrs: array expected");
                    for (t.PersonalAttrs = [], n = 0; n < e.PersonalAttrs.length; ++n) {
                        if ("object" != typeof e.PersonalAttrs[n]) throw TypeError(".AngelGodSoul_Config.PersonalAttrs: object expected");
                        t.PersonalAttrs[n] = a.IntArray_Config.fromObject(e.PersonalAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Skills = [], n.Attr = [], n.PersonalAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Bp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Bp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), e.Skills && e.Skills.length) {
                    n.Skills = [];
                    for (var r = 0; r < e.Skills.length; ++r) "number" == typeof e.Skills[r] ? n.Skills[r] = t.longs === String ? String(e.Skills[r]) : e.Skills[r] : n.Skills[r] = t.longs === String ? i.Long.prototype.toString.call(e.Skills[r]) : t.longs === Number ? new i.LongBits(e.Skills[r].low >>> 0, e.Skills[r].high >>> 0).toNumber() : e.Skills[r]
                }
                if (null != e.Bp && e.hasOwnProperty("Bp") && ("number" == typeof e.Bp ? n.Bp = t.longs === String ? String(e.Bp) : e.Bp : n.Bp = t.longs === String ? i.Long.prototype.toString.call(e.Bp) : t.longs === Number ? new i.LongBits(e.Bp.low >>> 0, e.Bp.high >>> 0).toNumber() : e.Bp), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Attr && e.Attr.length)
                    for (n.Attr = [], r = 0; r < e.Attr.length; ++r) n.Attr[r] = a.IntArray_Config.toObject(e.Attr[r], t);
                if (e.PersonalAttrs && e.PersonalAttrs.length)
                    for (n.PersonalAttrs = [], r = 0; r < e.PersonalAttrs.length; ++r) n.PersonalAttrs[r] = a.IntArray_Config.toObject(e.PersonalAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelGodSoul_Config"
            }, e
        }(), a.AngelGodSoulLevel_Config = function() {
            function e(e) {
                if (this.ComposeData = [], this.ComposeRandomId = [], this.CastMaterials = [], this.CastRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ComposeData = i.emptyArray, e.prototype.ComposeRandomId = i.emptyArray, e.prototype.CastMaterials = i.emptyArray, e.prototype.CastRewards = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(16).int64(e.NextId), null != e.ComposeData && e.ComposeData.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.ComposeData.length; ++n) t.int64(e.ComposeData[n]);
                    t.ldelim()
                }
                if (null != e.ComposeRandomId && e.ComposeRandomId.length)
                    for (n = 0; n < e.ComposeRandomId.length; ++n) a.IntArray_Config.encode(e.ComposeRandomId[n], t.uint32(34).fork()).ldelim();
                if (null != e.CastMaterials && e.CastMaterials.length)
                    for (n = 0; n < e.CastMaterials.length; ++n) a.IntArray_Config.encode(e.CastMaterials[n], t.uint32(42).fork()).ldelim();
                if (null != e.CastRewards && e.CastRewards.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.CastRewards.length; ++n) t.int64(e.CastRewards[n]);
                    t.ldelim()
                }
                return null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(56).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelGodSoulLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.NextId = e.int64();
                            break;
                        case 3:
                            if (r.ComposeData && r.ComposeData.length || (r.ComposeData = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ComposeData.push(e.int64());
                            else r.ComposeData.push(e.int64());
                            break;
                        case 4:
                            r.ComposeRandomId && r.ComposeRandomId.length || (r.ComposeRandomId = []), r.ComposeRandomId.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.CastMaterials && r.CastMaterials.length || (r.CastMaterials = []), r.CastMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            if (r.CastRewards && r.CastRewards.length || (r.CastRewards = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.CastRewards.push(e.int64());
                            else r.CastRewards.push(e.int64());
                            break;
                        case 7:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high))) return "NextId: integer|Long expected";
                if (null != e.ComposeData && e.hasOwnProperty("ComposeData")) {
                    if (!Array.isArray(e.ComposeData)) return "ComposeData: array expected";
                    for (var t = 0; t < e.ComposeData.length; ++t)
                        if (!(i.isInteger(e.ComposeData[t]) || e.ComposeData[t] && i.isInteger(e.ComposeData[t].low) && i.isInteger(e.ComposeData[t].high))) return "ComposeData: integer|Long[] expected"
                }
                if (null != e.ComposeRandomId && e.hasOwnProperty("ComposeRandomId")) {
                    if (!Array.isArray(e.ComposeRandomId)) return "ComposeRandomId: array expected";
                    for (t = 0; t < e.ComposeRandomId.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ComposeRandomId[t])) return "ComposeRandomId." + n
                }
                if (null != e.CastMaterials && e.hasOwnProperty("CastMaterials")) {
                    if (!Array.isArray(e.CastMaterials)) return "CastMaterials: array expected";
                    for (t = 0; t < e.CastMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.CastMaterials[t])) return "CastMaterials." + n
                    }
                }
                if (null != e.CastRewards && e.hasOwnProperty("CastRewards")) {
                    if (!Array.isArray(e.CastRewards)) return "CastRewards: array expected";
                    for (t = 0; t < e.CastRewards.length; ++t)
                        if (!(i.isInteger(e.CastRewards[t]) || e.CastRewards[t] && i.isInteger(e.CastRewards[t].low) && i.isInteger(e.CastRewards[t].high))) return "CastRewards: integer|Long[] expected"
                }
                return null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelGodSoulLevel_Config) return e;
                var t = new a.AngelGodSoulLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), e.ComposeData) {
                    if (!Array.isArray(e.ComposeData)) throw TypeError(".AngelGodSoulLevel_Config.ComposeData: array expected");
                    t.ComposeData = [];
                    for (var n = 0; n < e.ComposeData.length; ++n) i.Long ? (t.ComposeData[n] = i.Long.fromValue(e.ComposeData[n])).unsigned = !1 : "string" == typeof e.ComposeData[n] ? t.ComposeData[n] = parseInt(e.ComposeData[n], 10) : "number" == typeof e.ComposeData[n] ? t.ComposeData[n] = e.ComposeData[n] : "object" == typeof e.ComposeData[n] && (t.ComposeData[n] = new i.LongBits(e.ComposeData[n].low >>> 0, e.ComposeData[n].high >>> 0).toNumber())
                }
                if (e.ComposeRandomId) {
                    if (!Array.isArray(e.ComposeRandomId)) throw TypeError(".AngelGodSoulLevel_Config.ComposeRandomId: array expected");
                    for (t.ComposeRandomId = [], n = 0; n < e.ComposeRandomId.length; ++n) {
                        if ("object" != typeof e.ComposeRandomId[n]) throw TypeError(".AngelGodSoulLevel_Config.ComposeRandomId: object expected");
                        t.ComposeRandomId[n] = a.IntArray_Config.fromObject(e.ComposeRandomId[n])
                    }
                }
                if (e.CastMaterials) {
                    if (!Array.isArray(e.CastMaterials)) throw TypeError(".AngelGodSoulLevel_Config.CastMaterials: array expected");
                    for (t.CastMaterials = [], n = 0; n < e.CastMaterials.length; ++n) {
                        if ("object" != typeof e.CastMaterials[n]) throw TypeError(".AngelGodSoulLevel_Config.CastMaterials: object expected");
                        t.CastMaterials[n] = a.IntArray_Config.fromObject(e.CastMaterials[n])
                    }
                }
                if (e.CastRewards) {
                    if (!Array.isArray(e.CastRewards)) throw TypeError(".AngelGodSoulLevel_Config.CastRewards: array expected");
                    for (t.CastRewards = [], n = 0; n < e.CastRewards.length; ++n) i.Long ? (t.CastRewards[n] = i.Long.fromValue(e.CastRewards[n])).unsigned = !1 : "string" == typeof e.CastRewards[n] ? t.CastRewards[n] = parseInt(e.CastRewards[n], 10) : "number" == typeof e.CastRewards[n] ? t.CastRewards[n] = e.CastRewards[n] : "object" == typeof e.CastRewards[n] && (t.CastRewards[n] = new i.LongBits(e.CastRewards[n].low >>> 0, e.CastRewards[n].high >>> 0).toNumber())
                }
                return null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ComposeData = [], n.ComposeRandomId = [], n.CastMaterials = [], n.CastRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), e.ComposeData && e.ComposeData.length) {
                    n.ComposeData = [];
                    for (var r = 0; r < e.ComposeData.length; ++r) "number" == typeof e.ComposeData[r] ? n.ComposeData[r] = t.longs === String ? String(e.ComposeData[r]) : e.ComposeData[r] : n.ComposeData[r] = t.longs === String ? i.Long.prototype.toString.call(e.ComposeData[r]) : t.longs === Number ? new i.LongBits(e.ComposeData[r].low >>> 0, e.ComposeData[r].high >>> 0).toNumber() : e.ComposeData[r]
                }
                if (e.ComposeRandomId && e.ComposeRandomId.length)
                    for (n.ComposeRandomId = [], r = 0; r < e.ComposeRandomId.length; ++r) n.ComposeRandomId[r] = a.IntArray_Config.toObject(e.ComposeRandomId[r], t);
                if (e.CastMaterials && e.CastMaterials.length)
                    for (n.CastMaterials = [], r = 0; r < e.CastMaterials.length; ++r) n.CastMaterials[r] = a.IntArray_Config.toObject(e.CastMaterials[r], t);
                if (e.CastRewards && e.CastRewards.length)
                    for (n.CastRewards = [], r = 0; r < e.CastRewards.length; ++r) "number" == typeof e.CastRewards[r] ? n.CastRewards[r] = t.longs === String ? String(e.CastRewards[r]) : e.CastRewards[r] : n.CastRewards[r] = t.longs === String ? i.Long.prototype.toString.call(e.CastRewards[r]) : t.longs === Number ? new i.LongBits(e.CastRewards[r].low >>> 0, e.CastRewards[r].high >>> 0).toNumber() : e.CastRewards[r];
                return null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelGodSoulLevel_Config"
            }, e
        }(), a.PersonalityAddon_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(24).int64(e.HeroId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PersonalityAddon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.HeroId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PersonalityAddon_Config) return e;
                var t = new a.PersonalityAddon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".PersonalityAddon_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".PersonalityAddon_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PersonalityAddon_Config"
            }, e
        }(), a.SkinAddon_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(24).int64(e.HeroId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SkinAddon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.HeroId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SkinAddon_Config) return e;
                var t = new a.SkinAddon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".SkinAddon_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".SkinAddon_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SkinAddon_Config"
            }, e
        }(), a.StarPieceSuit_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarPieceSuit_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarPieceSuit_Config) return e;
                var t = new a.StarPieceSuit_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".StarPieceSuit_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".StarPieceSuit_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarPieceSuit_Config"
            }, e
        }(), a.AllianceCityWarRankReward_Config = function() {
            function e(e) {
                if (this.Rank = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rank = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rank && e.Rank.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Rank.length; ++n) t.int64(e.Rank[n]);
                    t.ldelim()
                }
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceCityWarRankReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Rank && r.Rank.length || (r.Rank = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Rank.push(e.int64());
                            else r.Rank.push(e.int64());
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rank && e.hasOwnProperty("Rank")) {
                    if (!Array.isArray(e.Rank)) return "Rank: array expected";
                    for (var t = 0; t < e.Rank.length; ++t)
                        if (!(i.isInteger(e.Rank[t]) || e.Rank[t] && i.isInteger(e.Rank[t].low) && i.isInteger(e.Rank[t].high))) return "Rank: integer|Long[] expected"
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceCityWarRankReward_Config) return e;
                var t = new a.AllianceCityWarRankReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rank) {
                    if (!Array.isArray(e.Rank)) throw TypeError(".AllianceCityWarRankReward_Config.Rank: array expected");
                    t.Rank = [];
                    for (var n = 0; n < e.Rank.length; ++n) i.Long ? (t.Rank[n] = i.Long.fromValue(e.Rank[n])).unsigned = !1 : "string" == typeof e.Rank[n] ? t.Rank[n] = parseInt(e.Rank[n], 10) : "number" == typeof e.Rank[n] ? t.Rank[n] = e.Rank[n] : "object" == typeof e.Rank[n] && (t.Rank[n] = new i.LongBits(e.Rank[n].low >>> 0, e.Rank[n].high >>> 0).toNumber())
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AllianceCityWarRankReward_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AllianceCityWarRankReward_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rank = [], n.Rewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rank && e.Rank.length) {
                    n.Rank = [];
                    for (var r = 0; r < e.Rank.length; ++r) "number" == typeof e.Rank[r] ? n.Rank[r] = t.longs === String ? String(e.Rank[r]) : e.Rank[r] : n.Rank[r] = t.longs === String ? i.Long.prototype.toString.call(e.Rank[r]) : t.longs === Number ? new i.LongBits(e.Rank[r].low >>> 0, e.Rank[r].high >>> 0).toNumber() : e.Rank[r]
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceCityWarRankReward_Config"
            }, e
        }(), a.AngelStar_Config = function() {
            function e(e) {
                if (this.GlobalSkills = [], this.Attrs = [], this.PointAttrs = [], this.ConsumeHero = [], this.ConsumeItems = [], this.ConsumeFragment = [], this.AngelAttrs = [], this.AngelPointAttrs = [], this.PersonalPointAttrs = [], this.PersonalAttrs = [], this.AngelBookPointAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelLimit = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AngelShape = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GlobalSkills = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.PointAttrs = i.emptyArray, e.prototype.ConsumeHero = i.emptyArray, e.prototype.PercentAttr = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ConsumeItems = i.emptyArray, e.prototype.ConsumeFragment = i.emptyArray, e.prototype.AngelAttrs = i.emptyArray, e.prototype.AngelPointAttrs = i.emptyArray, e.prototype.PersonalPointAttrs = i.emptyArray, e.prototype.PersonalAttrs = i.emptyArray, e.prototype.AngelBookPointAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.LevelLimit && Object.hasOwnProperty.call(e, "LevelLimit") && t.uint32(16).int64(e.LevelLimit), null != e.AngelShape && Object.hasOwnProperty.call(e, "AngelShape") && t.uint32(24).int64(e.AngelShape), null != e.GlobalSkills && e.GlobalSkills.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.GlobalSkills.length; ++n) t.int64(e.GlobalSkills[n]);
                    t.ldelim()
                }
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(42).fork()).ldelim();
                if (null != e.PointAttrs && e.PointAttrs.length)
                    for (n = 0; n < e.PointAttrs.length; ++n) a.IntArray_Config.encode(e.PointAttrs[n], t.uint32(50).fork()).ldelim();
                if (null != e.ConsumeHero && e.ConsumeHero.length)
                    for (n = 0; n < e.ConsumeHero.length; ++n) a.IntArray_Config.encode(e.ConsumeHero[n], t.uint32(58).fork()).ldelim();
                if (null != e.PercentAttr && Object.hasOwnProperty.call(e, "PercentAttr") && t.uint32(64).int64(e.PercentAttr), null != e.ConsumeItems && e.ConsumeItems.length)
                    for (n = 0; n < e.ConsumeItems.length; ++n) a.IntArray_Config.encode(e.ConsumeItems[n], t.uint32(74).fork()).ldelim();
                if (null != e.ConsumeFragment && e.ConsumeFragment.length)
                    for (n = 0; n < e.ConsumeFragment.length; ++n) a.IntArray_Config.encode(e.ConsumeFragment[n], t.uint32(82).fork()).ldelim();
                if (null != e.AngelAttrs && e.AngelAttrs.length)
                    for (n = 0; n < e.AngelAttrs.length; ++n) a.IntArray_Config.encode(e.AngelAttrs[n], t.uint32(90).fork()).ldelim();
                if (null != e.AngelPointAttrs && e.AngelPointAttrs.length)
                    for (n = 0; n < e.AngelPointAttrs.length; ++n) a.IntArray_Config.encode(e.AngelPointAttrs[n], t.uint32(98).fork()).ldelim();
                if (null != e.PersonalPointAttrs && e.PersonalPointAttrs.length) {
                    for (t.uint32(106).fork(), n = 0; n < e.PersonalPointAttrs.length; ++n) t.int64(e.PersonalPointAttrs[n]);
                    t.ldelim()
                }
                if (null != e.PersonalAttrs && e.PersonalAttrs.length)
                    for (n = 0; n < e.PersonalAttrs.length; ++n) a.IntArray_Config.encode(e.PersonalAttrs[n], t.uint32(114).fork()).ldelim();
                if (null != e.AngelBookPointAttrs && e.AngelBookPointAttrs.length) {
                    for (t.uint32(122).fork(), n = 0; n < e.AngelBookPointAttrs.length; ++n) t.int64(e.AngelBookPointAttrs[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.LevelLimit = e.int64();
                            break;
                        case 3:
                            r.AngelShape = e.int64();
                            break;
                        case 4:
                            if (r.GlobalSkills && r.GlobalSkills.length || (r.GlobalSkills = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.GlobalSkills.push(e.int64());
                            else r.GlobalSkills.push(e.int64());
                            break;
                        case 5:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.PointAttrs && r.PointAttrs.length || (r.PointAttrs = []), r.PointAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.ConsumeHero && r.ConsumeHero.length || (r.ConsumeHero = []), r.ConsumeHero.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.PercentAttr = e.int64();
                            break;
                        case 9:
                            r.ConsumeItems && r.ConsumeItems.length || (r.ConsumeItems = []), r.ConsumeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.ConsumeFragment && r.ConsumeFragment.length || (r.ConsumeFragment = []), r.ConsumeFragment.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 11:
                            r.AngelAttrs && r.AngelAttrs.length || (r.AngelAttrs = []), r.AngelAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 12:
                            r.AngelPointAttrs && r.AngelPointAttrs.length || (r.AngelPointAttrs = []), r.AngelPointAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 13:
                            if (r.PersonalPointAttrs && r.PersonalPointAttrs.length || (r.PersonalPointAttrs = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.PersonalPointAttrs.push(e.int64());
                            else r.PersonalPointAttrs.push(e.int64());
                            break;
                        case 14:
                            r.PersonalAttrs && r.PersonalAttrs.length || (r.PersonalAttrs = []), r.PersonalAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 15:
                            if (r.AngelBookPointAttrs && r.AngelBookPointAttrs.length || (r.AngelBookPointAttrs = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.AngelBookPointAttrs.push(e.int64());
                            else r.AngelBookPointAttrs.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.LevelLimit && e.hasOwnProperty("LevelLimit") && !(i.isInteger(e.LevelLimit) || e.LevelLimit && i.isInteger(e.LevelLimit.low) && i.isInteger(e.LevelLimit.high))) return "LevelLimit: integer|Long expected";
                if (null != e.AngelShape && e.hasOwnProperty("AngelShape") && !(i.isInteger(e.AngelShape) || e.AngelShape && i.isInteger(e.AngelShape.low) && i.isInteger(e.AngelShape.high))) return "AngelShape: integer|Long expected";
                if (null != e.GlobalSkills && e.hasOwnProperty("GlobalSkills")) {
                    if (!Array.isArray(e.GlobalSkills)) return "GlobalSkills: array expected";
                    for (var t = 0; t < e.GlobalSkills.length; ++t)
                        if (!(i.isInteger(e.GlobalSkills[t]) || e.GlobalSkills[t] && i.isInteger(e.GlobalSkills[t].low) && i.isInteger(e.GlobalSkills[t].high))) return "GlobalSkills: integer|Long[] expected"
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.PointAttrs && e.hasOwnProperty("PointAttrs")) {
                    if (!Array.isArray(e.PointAttrs)) return "PointAttrs: array expected";
                    for (t = 0; t < e.PointAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PointAttrs[t])) return "PointAttrs." + n
                }
                if (null != e.ConsumeHero && e.hasOwnProperty("ConsumeHero")) {
                    if (!Array.isArray(e.ConsumeHero)) return "ConsumeHero: array expected";
                    for (t = 0; t < e.ConsumeHero.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ConsumeHero[t])) return "ConsumeHero." + n
                }
                if (null != e.PercentAttr && e.hasOwnProperty("PercentAttr") && !(i.isInteger(e.PercentAttr) || e.PercentAttr && i.isInteger(e.PercentAttr.low) && i.isInteger(e.PercentAttr.high))) return "PercentAttr: integer|Long expected";
                if (null != e.ConsumeItems && e.hasOwnProperty("ConsumeItems")) {
                    if (!Array.isArray(e.ConsumeItems)) return "ConsumeItems: array expected";
                    for (t = 0; t < e.ConsumeItems.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ConsumeItems[t])) return "ConsumeItems." + n
                }
                if (null != e.ConsumeFragment && e.hasOwnProperty("ConsumeFragment")) {
                    if (!Array.isArray(e.ConsumeFragment)) return "ConsumeFragment: array expected";
                    for (t = 0; t < e.ConsumeFragment.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ConsumeFragment[t])) return "ConsumeFragment." + n
                }
                if (null != e.AngelAttrs && e.hasOwnProperty("AngelAttrs")) {
                    if (!Array.isArray(e.AngelAttrs)) return "AngelAttrs: array expected";
                    for (t = 0; t < e.AngelAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AngelAttrs[t])) return "AngelAttrs." + n
                }
                if (null != e.AngelPointAttrs && e.hasOwnProperty("AngelPointAttrs")) {
                    if (!Array.isArray(e.AngelPointAttrs)) return "AngelPointAttrs: array expected";
                    for (t = 0; t < e.AngelPointAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AngelPointAttrs[t])) return "AngelPointAttrs." + n
                }
                if (null != e.PersonalPointAttrs && e.hasOwnProperty("PersonalPointAttrs")) {
                    if (!Array.isArray(e.PersonalPointAttrs)) return "PersonalPointAttrs: array expected";
                    for (t = 0; t < e.PersonalPointAttrs.length; ++t)
                        if (!(i.isInteger(e.PersonalPointAttrs[t]) || e.PersonalPointAttrs[t] && i.isInteger(e.PersonalPointAttrs[t].low) && i.isInteger(e.PersonalPointAttrs[t].high))) return "PersonalPointAttrs: integer|Long[] expected"
                }
                if (null != e.PersonalAttrs && e.hasOwnProperty("PersonalAttrs")) {
                    if (!Array.isArray(e.PersonalAttrs)) return "PersonalAttrs: array expected";
                    for (t = 0; t < e.PersonalAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.PersonalAttrs[t])) return "PersonalAttrs." + n
                    }
                }
                if (null != e.AngelBookPointAttrs && e.hasOwnProperty("AngelBookPointAttrs")) {
                    if (!Array.isArray(e.AngelBookPointAttrs)) return "AngelBookPointAttrs: array expected";
                    for (t = 0; t < e.AngelBookPointAttrs.length; ++t)
                        if (!(i.isInteger(e.AngelBookPointAttrs[t]) || e.AngelBookPointAttrs[t] && i.isInteger(e.AngelBookPointAttrs[t].low) && i.isInteger(e.AngelBookPointAttrs[t].high))) return "AngelBookPointAttrs: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelStar_Config) return e;
                var t = new a.AngelStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.LevelLimit && (i.Long ? (t.LevelLimit = i.Long.fromValue(e.LevelLimit)).unsigned = !1 : "string" == typeof e.LevelLimit ? t.LevelLimit = parseInt(e.LevelLimit, 10) : "number" == typeof e.LevelLimit ? t.LevelLimit = e.LevelLimit : "object" == typeof e.LevelLimit && (t.LevelLimit = new i.LongBits(e.LevelLimit.low >>> 0, e.LevelLimit.high >>> 0).toNumber())), null != e.AngelShape && (i.Long ? (t.AngelShape = i.Long.fromValue(e.AngelShape)).unsigned = !1 : "string" == typeof e.AngelShape ? t.AngelShape = parseInt(e.AngelShape, 10) : "number" == typeof e.AngelShape ? t.AngelShape = e.AngelShape : "object" == typeof e.AngelShape && (t.AngelShape = new i.LongBits(e.AngelShape.low >>> 0, e.AngelShape.high >>> 0).toNumber())), e.GlobalSkills) {
                    if (!Array.isArray(e.GlobalSkills)) throw TypeError(".AngelStar_Config.GlobalSkills: array expected");
                    t.GlobalSkills = [];
                    for (var n = 0; n < e.GlobalSkills.length; ++n) i.Long ? (t.GlobalSkills[n] = i.Long.fromValue(e.GlobalSkills[n])).unsigned = !1 : "string" == typeof e.GlobalSkills[n] ? t.GlobalSkills[n] = parseInt(e.GlobalSkills[n], 10) : "number" == typeof e.GlobalSkills[n] ? t.GlobalSkills[n] = e.GlobalSkills[n] : "object" == typeof e.GlobalSkills[n] && (t.GlobalSkills[n] = new i.LongBits(e.GlobalSkills[n].low >>> 0, e.GlobalSkills[n].high >>> 0).toNumber())
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".AngelStar_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".AngelStar_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.PointAttrs) {
                    if (!Array.isArray(e.PointAttrs)) throw TypeError(".AngelStar_Config.PointAttrs: array expected");
                    for (t.PointAttrs = [], n = 0; n < e.PointAttrs.length; ++n) {
                        if ("object" != typeof e.PointAttrs[n]) throw TypeError(".AngelStar_Config.PointAttrs: object expected");
                        t.PointAttrs[n] = a.IntArray_Config.fromObject(e.PointAttrs[n])
                    }
                }
                if (e.ConsumeHero) {
                    if (!Array.isArray(e.ConsumeHero)) throw TypeError(".AngelStar_Config.ConsumeHero: array expected");
                    for (t.ConsumeHero = [], n = 0; n < e.ConsumeHero.length; ++n) {
                        if ("object" != typeof e.ConsumeHero[n]) throw TypeError(".AngelStar_Config.ConsumeHero: object expected");
                        t.ConsumeHero[n] = a.IntArray_Config.fromObject(e.ConsumeHero[n])
                    }
                }
                if (null != e.PercentAttr && (i.Long ? (t.PercentAttr = i.Long.fromValue(e.PercentAttr)).unsigned = !1 : "string" == typeof e.PercentAttr ? t.PercentAttr = parseInt(e.PercentAttr, 10) : "number" == typeof e.PercentAttr ? t.PercentAttr = e.PercentAttr : "object" == typeof e.PercentAttr && (t.PercentAttr = new i.LongBits(e.PercentAttr.low >>> 0, e.PercentAttr.high >>> 0).toNumber())), e.ConsumeItems) {
                    if (!Array.isArray(e.ConsumeItems)) throw TypeError(".AngelStar_Config.ConsumeItems: array expected");
                    for (t.ConsumeItems = [], n = 0; n < e.ConsumeItems.length; ++n) {
                        if ("object" != typeof e.ConsumeItems[n]) throw TypeError(".AngelStar_Config.ConsumeItems: object expected");
                        t.ConsumeItems[n] = a.IntArray_Config.fromObject(e.ConsumeItems[n])
                    }
                }
                if (e.ConsumeFragment) {
                    if (!Array.isArray(e.ConsumeFragment)) throw TypeError(".AngelStar_Config.ConsumeFragment: array expected");
                    for (t.ConsumeFragment = [], n = 0; n < e.ConsumeFragment.length; ++n) {
                        if ("object" != typeof e.ConsumeFragment[n]) throw TypeError(".AngelStar_Config.ConsumeFragment: object expected");
                        t.ConsumeFragment[n] = a.IntArray_Config.fromObject(e.ConsumeFragment[n])
                    }
                }
                if (e.AngelAttrs) {
                    if (!Array.isArray(e.AngelAttrs)) throw TypeError(".AngelStar_Config.AngelAttrs: array expected");
                    for (t.AngelAttrs = [], n = 0; n < e.AngelAttrs.length; ++n) {
                        if ("object" != typeof e.AngelAttrs[n]) throw TypeError(".AngelStar_Config.AngelAttrs: object expected");
                        t.AngelAttrs[n] = a.IntArray_Config.fromObject(e.AngelAttrs[n])
                    }
                }
                if (e.AngelPointAttrs) {
                    if (!Array.isArray(e.AngelPointAttrs)) throw TypeError(".AngelStar_Config.AngelPointAttrs: array expected");
                    for (t.AngelPointAttrs = [], n = 0; n < e.AngelPointAttrs.length; ++n) {
                        if ("object" != typeof e.AngelPointAttrs[n]) throw TypeError(".AngelStar_Config.AngelPointAttrs: object expected");
                        t.AngelPointAttrs[n] = a.IntArray_Config.fromObject(e.AngelPointAttrs[n])
                    }
                }
                if (e.PersonalPointAttrs) {
                    if (!Array.isArray(e.PersonalPointAttrs)) throw TypeError(".AngelStar_Config.PersonalPointAttrs: array expected");
                    for (t.PersonalPointAttrs = [], n = 0; n < e.PersonalPointAttrs.length; ++n) i.Long ? (t.PersonalPointAttrs[n] = i.Long.fromValue(e.PersonalPointAttrs[n])).unsigned = !1 : "string" == typeof e.PersonalPointAttrs[n] ? t.PersonalPointAttrs[n] = parseInt(e.PersonalPointAttrs[n], 10) : "number" == typeof e.PersonalPointAttrs[n] ? t.PersonalPointAttrs[n] = e.PersonalPointAttrs[n] : "object" == typeof e.PersonalPointAttrs[n] && (t.PersonalPointAttrs[n] = new i.LongBits(e.PersonalPointAttrs[n].low >>> 0, e.PersonalPointAttrs[n].high >>> 0).toNumber())
                }
                if (e.PersonalAttrs) {
                    if (!Array.isArray(e.PersonalAttrs)) throw TypeError(".AngelStar_Config.PersonalAttrs: array expected");
                    for (t.PersonalAttrs = [], n = 0; n < e.PersonalAttrs.length; ++n) {
                        if ("object" != typeof e.PersonalAttrs[n]) throw TypeError(".AngelStar_Config.PersonalAttrs: object expected");
                        t.PersonalAttrs[n] = a.IntArray_Config.fromObject(e.PersonalAttrs[n])
                    }
                }
                if (e.AngelBookPointAttrs) {
                    if (!Array.isArray(e.AngelBookPointAttrs)) throw TypeError(".AngelStar_Config.AngelBookPointAttrs: array expected");
                    for (t.AngelBookPointAttrs = [], n = 0; n < e.AngelBookPointAttrs.length; ++n) i.Long ? (t.AngelBookPointAttrs[n] = i.Long.fromValue(e.AngelBookPointAttrs[n])).unsigned = !1 : "string" == typeof e.AngelBookPointAttrs[n] ? t.AngelBookPointAttrs[n] = parseInt(e.AngelBookPointAttrs[n], 10) : "number" == typeof e.AngelBookPointAttrs[n] ? t.AngelBookPointAttrs[n] = e.AngelBookPointAttrs[n] : "object" == typeof e.AngelBookPointAttrs[n] && (t.AngelBookPointAttrs[n] = new i.LongBits(e.AngelBookPointAttrs[n].low >>> 0, e.AngelBookPointAttrs[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.GlobalSkills = [], n.Attrs = [], n.PointAttrs = [], n.ConsumeHero = [], n.ConsumeItems = [], n.ConsumeFragment = [], n.AngelAttrs = [], n.AngelPointAttrs = [], n.PersonalPointAttrs = [], n.PersonalAttrs = [], n.AngelBookPointAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.LevelLimit = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LevelLimit = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AngelShape = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AngelShape = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PercentAttr = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PercentAttr = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.LevelLimit && e.hasOwnProperty("LevelLimit") && ("number" == typeof e.LevelLimit ? n.LevelLimit = t.longs === String ? String(e.LevelLimit) : e.LevelLimit : n.LevelLimit = t.longs === String ? i.Long.prototype.toString.call(e.LevelLimit) : t.longs === Number ? new i.LongBits(e.LevelLimit.low >>> 0, e.LevelLimit.high >>> 0).toNumber() : e.LevelLimit), null != e.AngelShape && e.hasOwnProperty("AngelShape") && ("number" == typeof e.AngelShape ? n.AngelShape = t.longs === String ? String(e.AngelShape) : e.AngelShape : n.AngelShape = t.longs === String ? i.Long.prototype.toString.call(e.AngelShape) : t.longs === Number ? new i.LongBits(e.AngelShape.low >>> 0, e.AngelShape.high >>> 0).toNumber() : e.AngelShape), e.GlobalSkills && e.GlobalSkills.length) {
                    n.GlobalSkills = [];
                    for (var r = 0; r < e.GlobalSkills.length; ++r) "number" == typeof e.GlobalSkills[r] ? n.GlobalSkills[r] = t.longs === String ? String(e.GlobalSkills[r]) : e.GlobalSkills[r] : n.GlobalSkills[r] = t.longs === String ? i.Long.prototype.toString.call(e.GlobalSkills[r]) : t.longs === Number ? new i.LongBits(e.GlobalSkills[r].low >>> 0, e.GlobalSkills[r].high >>> 0).toNumber() : e.GlobalSkills[r]
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (e.PointAttrs && e.PointAttrs.length)
                    for (n.PointAttrs = [], r = 0; r < e.PointAttrs.length; ++r) n.PointAttrs[r] = a.IntArray_Config.toObject(e.PointAttrs[r], t);
                if (e.ConsumeHero && e.ConsumeHero.length)
                    for (n.ConsumeHero = [], r = 0; r < e.ConsumeHero.length; ++r) n.ConsumeHero[r] = a.IntArray_Config.toObject(e.ConsumeHero[r], t);
                if (null != e.PercentAttr && e.hasOwnProperty("PercentAttr") && ("number" == typeof e.PercentAttr ? n.PercentAttr = t.longs === String ? String(e.PercentAttr) : e.PercentAttr : n.PercentAttr = t.longs === String ? i.Long.prototype.toString.call(e.PercentAttr) : t.longs === Number ? new i.LongBits(e.PercentAttr.low >>> 0, e.PercentAttr.high >>> 0).toNumber() : e.PercentAttr), e.ConsumeItems && e.ConsumeItems.length)
                    for (n.ConsumeItems = [], r = 0; r < e.ConsumeItems.length; ++r) n.ConsumeItems[r] = a.IntArray_Config.toObject(e.ConsumeItems[r], t);
                if (e.ConsumeFragment && e.ConsumeFragment.length)
                    for (n.ConsumeFragment = [], r = 0; r < e.ConsumeFragment.length; ++r) n.ConsumeFragment[r] = a.IntArray_Config.toObject(e.ConsumeFragment[r], t);
                if (e.AngelAttrs && e.AngelAttrs.length)
                    for (n.AngelAttrs = [], r = 0; r < e.AngelAttrs.length; ++r) n.AngelAttrs[r] = a.IntArray_Config.toObject(e.AngelAttrs[r], t);
                if (e.AngelPointAttrs && e.AngelPointAttrs.length)
                    for (n.AngelPointAttrs = [], r = 0; r < e.AngelPointAttrs.length; ++r) n.AngelPointAttrs[r] = a.IntArray_Config.toObject(e.AngelPointAttrs[r], t);
                if (e.PersonalPointAttrs && e.PersonalPointAttrs.length)
                    for (n.PersonalPointAttrs = [], r = 0; r < e.PersonalPointAttrs.length; ++r) "number" == typeof e.PersonalPointAttrs[r] ? n.PersonalPointAttrs[r] = t.longs === String ? String(e.PersonalPointAttrs[r]) : e.PersonalPointAttrs[r] : n.PersonalPointAttrs[r] = t.longs === String ? i.Long.prototype.toString.call(e.PersonalPointAttrs[r]) : t.longs === Number ? new i.LongBits(e.PersonalPointAttrs[r].low >>> 0, e.PersonalPointAttrs[r].high >>> 0).toNumber() : e.PersonalPointAttrs[r];
                if (e.PersonalAttrs && e.PersonalAttrs.length)
                    for (n.PersonalAttrs = [], r = 0; r < e.PersonalAttrs.length; ++r) n.PersonalAttrs[r] = a.IntArray_Config.toObject(e.PersonalAttrs[r], t);
                if (e.AngelBookPointAttrs && e.AngelBookPointAttrs.length)
                    for (n.AngelBookPointAttrs = [], r = 0; r < e.AngelBookPointAttrs.length; ++r) "number" == typeof e.AngelBookPointAttrs[r] ? n.AngelBookPointAttrs[r] = t.longs === String ? String(e.AngelBookPointAttrs[r]) : e.AngelBookPointAttrs[r] : n.AngelBookPointAttrs[r] = t.longs === String ? i.Long.prototype.toString.call(e.AngelBookPointAttrs[r]) : t.longs === Number ? new i.LongBits(e.AngelBookPointAttrs[r].low >>> 0, e.AngelBookPointAttrs[r].high >>> 0).toNumber() : e.AngelBookPointAttrs[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelStar_Config"
            }, e
        }(), a.HeroChange_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Date = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Date && Object.hasOwnProperty.call(e, "Date") && t.uint32(18).string(e.Date), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroChange_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Date = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Date && e.hasOwnProperty("Date") && !i.isString(e.Date) ? "Date: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroChange_Config) return e;
                var t = new a.HeroChange_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Date && (t.Date = String(e.Date)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Date = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Date && e.hasOwnProperty("Date") && (n.Date = e.Date), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroChange_Config"
            }, e
        }(), a.StarPieceResonance_Config = function() {
            function e(e) {
                if (this.StarPieceIds = [], this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarPieceIds = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.StarPieceIds && e.StarPieceIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.StarPieceIds.length; ++n) t.int64(e.StarPieceIds[n]);
                    t.ldelim()
                }
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(40).int64(e.SortId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarPieceResonance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.StarPieceIds && r.StarPieceIds.length || (r.StarPieceIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.StarPieceIds.push(e.int64());
                            else r.StarPieceIds.push(e.int64());
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.SortId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.StarPieceIds && e.hasOwnProperty("StarPieceIds")) {
                    if (!Array.isArray(e.StarPieceIds)) return "StarPieceIds: array expected";
                    for (var t = 0; t < e.StarPieceIds.length; ++t)
                        if (!(i.isInteger(e.StarPieceIds[t]) || e.StarPieceIds[t] && i.isInteger(e.StarPieceIds[t].low) && i.isInteger(e.StarPieceIds[t].high))) return "StarPieceIds: integer|Long[] expected"
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarPieceResonance_Config) return e;
                var t = new a.StarPieceResonance_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.StarPieceIds) {
                    if (!Array.isArray(e.StarPieceIds)) throw TypeError(".StarPieceResonance_Config.StarPieceIds: array expected");
                    t.StarPieceIds = [];
                    for (var n = 0; n < e.StarPieceIds.length; ++n) i.Long ? (t.StarPieceIds[n] = i.Long.fromValue(e.StarPieceIds[n])).unsigned = !1 : "string" == typeof e.StarPieceIds[n] ? t.StarPieceIds[n] = parseInt(e.StarPieceIds[n], 10) : "number" == typeof e.StarPieceIds[n] ? t.StarPieceIds[n] = e.StarPieceIds[n] : "object" == typeof e.StarPieceIds[n] && (t.StarPieceIds[n] = new i.LongBits(e.StarPieceIds[n].low >>> 0, e.StarPieceIds[n].high >>> 0).toNumber())
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".StarPieceResonance_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".StarPieceResonance_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.StarPieceIds = [], n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.StarPieceIds && e.StarPieceIds.length) {
                    n.StarPieceIds = [];
                    for (var r = 0; r < e.StarPieceIds.length; ++r) "number" == typeof e.StarPieceIds[r] ? n.StarPieceIds[r] = t.longs === String ? String(e.StarPieceIds[r]) : e.StarPieceIds[r] : n.StarPieceIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.StarPieceIds[r]) : t.longs === Number ? new i.LongBits(e.StarPieceIds[r].low >>> 0, e.StarPieceIds[r].high >>> 0).toNumber() : e.StarPieceIds[r]
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                return null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarPieceResonance_Config"
            }, e
        }(), a.Designation_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Requirement = [], this.Materials = [], this.Rewards = [], this.TaskIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.Attrs = i.emptyArray, e.prototype.Requirement = i.emptyArray, e.prototype.Materials = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TaskIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(26).string(e.Icon), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.Requirement && e.Requirement.length)
                    for (n = 0; n < e.Requirement.length; ++n) a.IntArray_Config.encode(e.Requirement[n], t.uint32(42).fork()).ldelim();
                if (null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(50).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(58).fork()).ldelim();
                if (null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(64).int64(e.NextId), null != e.TaskIds && e.TaskIds.length) {
                    for (t.uint32(74).fork(), n = 0; n < e.TaskIds.length; ++n) t.int64(e.TaskIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Designation_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Icon = e.string();
                            break;
                        case 4:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Requirement && r.Requirement.length || (r.Requirement = []), r.Requirement.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.NextId = e.int64();
                            break;
                        case 9:
                            if (r.TaskIds && r.TaskIds.length || (r.TaskIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.TaskIds.push(e.int64());
                            else r.TaskIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Requirement && e.hasOwnProperty("Requirement")) {
                    if (!Array.isArray(e.Requirement)) return "Requirement: array expected";
                    for (t = 0; t < e.Requirement.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Requirement[t])) return "Requirement." + n
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                if (null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high))) return "NextId: integer|Long expected";
                if (null != e.TaskIds && e.hasOwnProperty("TaskIds")) {
                    if (!Array.isArray(e.TaskIds)) return "TaskIds: array expected";
                    for (t = 0; t < e.TaskIds.length; ++t)
                        if (!(i.isInteger(e.TaskIds[t]) || e.TaskIds[t] && i.isInteger(e.TaskIds[t].low) && i.isInteger(e.TaskIds[t].high))) return "TaskIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Designation_Config) return e;
                var t = new a.Designation_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".Designation_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".Designation_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Requirement) {
                    if (!Array.isArray(e.Requirement)) throw TypeError(".Designation_Config.Requirement: array expected");
                    for (t.Requirement = [], n = 0; n < e.Requirement.length; ++n) {
                        if ("object" != typeof e.Requirement[n]) throw TypeError(".Designation_Config.Requirement: object expected");
                        t.Requirement[n] = a.IntArray_Config.fromObject(e.Requirement[n])
                    }
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Designation_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Designation_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Designation_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Designation_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), e.TaskIds) {
                    if (!Array.isArray(e.TaskIds)) throw TypeError(".Designation_Config.TaskIds: array expected");
                    for (t.TaskIds = [], n = 0; n < e.TaskIds.length; ++n) i.Long ? (t.TaskIds[n] = i.Long.fromValue(e.TaskIds[n])).unsigned = !1 : "string" == typeof e.TaskIds[n] ? t.TaskIds[n] = parseInt(e.TaskIds[n], 10) : "number" == typeof e.TaskIds[n] ? t.TaskIds[n] = e.TaskIds[n] : "object" == typeof e.TaskIds[n] && (t.TaskIds[n] = new i.LongBits(e.TaskIds[n].low >>> 0, e.TaskIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Requirement = [], n.Materials = [], n.Rewards = [], n.TaskIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.Requirement && e.Requirement.length)
                    for (n.Requirement = [], r = 0; r < e.Requirement.length; ++r) n.Requirement[r] = a.IntArray_Config.toObject(e.Requirement[r], t);
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), e.TaskIds && e.TaskIds.length)
                    for (n.TaskIds = [], r = 0; r < e.TaskIds.length; ++r) "number" == typeof e.TaskIds[r] ? n.TaskIds[r] = t.longs === String ? String(e.TaskIds[r]) : e.TaskIds[r] : n.TaskIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.TaskIds[r]) : t.longs === Number ? new i.LongBits(e.TaskIds[r].low >>> 0, e.TaskIds[r].high >>> 0).toNumber() : e.TaskIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Designation_Config"
            }, e
        }(), a.StrategyBook_Config = function() {
            function e(e) {
                if (this.SkillList = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Point = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BaseSkill = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillList = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Point && Object.hasOwnProperty.call(e, "Point") && t.uint32(16).int64(e.Point), null != e.BaseSkill && Object.hasOwnProperty.call(e, "BaseSkill") && t.uint32(24).int64(e.BaseSkill), null != e.SkillList && e.SkillList.length)
                    for (var n = 0; n < e.SkillList.length; ++n) a.IntArray_Config.encode(e.SkillList[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StrategyBook_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Point = e.int64();
                            break;
                        case 3:
                            r.BaseSkill = e.int64();
                            break;
                        case 4:
                            r.SkillList && r.SkillList.length || (r.SkillList = []), r.SkillList.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Point && e.hasOwnProperty("Point") && !(i.isInteger(e.Point) || e.Point && i.isInteger(e.Point.low) && i.isInteger(e.Point.high))) return "Point: integer|Long expected";
                if (null != e.BaseSkill && e.hasOwnProperty("BaseSkill") && !(i.isInteger(e.BaseSkill) || e.BaseSkill && i.isInteger(e.BaseSkill.low) && i.isInteger(e.BaseSkill.high))) return "BaseSkill: integer|Long expected";
                if (null != e.SkillList && e.hasOwnProperty("SkillList")) {
                    if (!Array.isArray(e.SkillList)) return "SkillList: array expected";
                    for (var t = 0; t < e.SkillList.length; ++t) {
                        var n = a.IntArray_Config.verify(e.SkillList[t]);
                        if (n) return "SkillList." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StrategyBook_Config) return e;
                var t = new a.StrategyBook_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Point && (i.Long ? (t.Point = i.Long.fromValue(e.Point)).unsigned = !1 : "string" == typeof e.Point ? t.Point = parseInt(e.Point, 10) : "number" == typeof e.Point ? t.Point = e.Point : "object" == typeof e.Point && (t.Point = new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber())), null != e.BaseSkill && (i.Long ? (t.BaseSkill = i.Long.fromValue(e.BaseSkill)).unsigned = !1 : "string" == typeof e.BaseSkill ? t.BaseSkill = parseInt(e.BaseSkill, 10) : "number" == typeof e.BaseSkill ? t.BaseSkill = e.BaseSkill : "object" == typeof e.BaseSkill && (t.BaseSkill = new i.LongBits(e.BaseSkill.low >>> 0, e.BaseSkill.high >>> 0).toNumber())), e.SkillList) {
                    if (!Array.isArray(e.SkillList)) throw TypeError(".StrategyBook_Config.SkillList: array expected");
                    t.SkillList = [];
                    for (var n = 0; n < e.SkillList.length; ++n) {
                        if ("object" != typeof e.SkillList[n]) throw TypeError(".StrategyBook_Config.SkillList: object expected");
                        t.SkillList[n] = a.IntArray_Config.fromObject(e.SkillList[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.SkillList = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Point = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Point = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.BaseSkill = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BaseSkill = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Point && e.hasOwnProperty("Point") && ("number" == typeof e.Point ? n.Point = t.longs === String ? String(e.Point) : e.Point : n.Point = t.longs === String ? i.Long.prototype.toString.call(e.Point) : t.longs === Number ? new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber() : e.Point), null != e.BaseSkill && e.hasOwnProperty("BaseSkill") && ("number" == typeof e.BaseSkill ? n.BaseSkill = t.longs === String ? String(e.BaseSkill) : e.BaseSkill : n.BaseSkill = t.longs === String ? i.Long.prototype.toString.call(e.BaseSkill) : t.longs === Number ? new i.LongBits(e.BaseSkill.low >>> 0, e.BaseSkill.high >>> 0).toNumber() : e.BaseSkill), e.SkillList && e.SkillList.length) {
                    n.SkillList = [];
                    for (var r = 0; r < e.SkillList.length; ++r) n.SkillList[r] = a.IntArray_Config.toObject(e.SkillList[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StrategyBook_Config"
            }, e
        }(), a.Strategy_Config = function() {
            function e(e) {
                if (this.Attrs1 = [], this.Skills1 = [], this.Attrs2 = [], this.Skills2 = [], this.Attrs3 = [], this.Skills3 = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.PreSkill = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaterialCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs1 = i.emptyArray, e.prototype.Skills1 = i.emptyArray, e.prototype.Attrs2 = i.emptyArray, e.prototype.Skills2 = i.emptyArray, e.prototype.Attrs3 = i.emptyArray, e.prototype.Skills3 = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(18).string(e.Icon), null != e.PreSkill && Object.hasOwnProperty.call(e, "PreSkill") && t.uint32(24).int64(e.PreSkill), null != e.MaterialCount && Object.hasOwnProperty.call(e, "MaterialCount") && t.uint32(32).int64(e.MaterialCount), null != e.Attrs1 && e.Attrs1.length)
                    for (var n = 0; n < e.Attrs1.length; ++n) a.IntArray_Config.encode(e.Attrs1[n], t.uint32(42).fork()).ldelim();
                if (null != e.Skills1 && e.Skills1.length)
                    for (n = 0; n < e.Skills1.length; ++n) a.IntArray_Config.encode(e.Skills1[n], t.uint32(50).fork()).ldelim();
                if (null != e.Attrs2 && e.Attrs2.length)
                    for (n = 0; n < e.Attrs2.length; ++n) a.IntArray_Config.encode(e.Attrs2[n], t.uint32(58).fork()).ldelim();
                if (null != e.Skills2 && e.Skills2.length)
                    for (n = 0; n < e.Skills2.length; ++n) a.IntArray_Config.encode(e.Skills2[n], t.uint32(66).fork()).ldelim();
                if (null != e.Attrs3 && e.Attrs3.length)
                    for (n = 0; n < e.Attrs3.length; ++n) a.IntArray_Config.encode(e.Attrs3[n], t.uint32(74).fork()).ldelim();
                if (null != e.Skills3 && e.Skills3.length)
                    for (n = 0; n < e.Skills3.length; ++n) a.IntArray_Config.encode(e.Skills3[n], t.uint32(82).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Strategy_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Icon = e.string();
                            break;
                        case 3:
                            r.PreSkill = e.int64();
                            break;
                        case 4:
                            r.MaterialCount = e.int64();
                            break;
                        case 5:
                            r.Attrs1 && r.Attrs1.length || (r.Attrs1 = []), r.Attrs1.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Skills1 && r.Skills1.length || (r.Skills1 = []), r.Skills1.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Attrs2 && r.Attrs2.length || (r.Attrs2 = []), r.Attrs2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.Skills2 && r.Skills2.length || (r.Skills2 = []), r.Skills2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.Attrs3 && r.Attrs3.length || (r.Attrs3 = []), r.Attrs3.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.Skills3 && r.Skills3.length || (r.Skills3 = []), r.Skills3.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.PreSkill && e.hasOwnProperty("PreSkill") && !(i.isInteger(e.PreSkill) || e.PreSkill && i.isInteger(e.PreSkill.low) && i.isInteger(e.PreSkill.high))) return "PreSkill: integer|Long expected";
                if (null != e.MaterialCount && e.hasOwnProperty("MaterialCount") && !(i.isInteger(e.MaterialCount) || e.MaterialCount && i.isInteger(e.MaterialCount.low) && i.isInteger(e.MaterialCount.high))) return "MaterialCount: integer|Long expected";
                if (null != e.Attrs1 && e.hasOwnProperty("Attrs1")) {
                    if (!Array.isArray(e.Attrs1)) return "Attrs1: array expected";
                    for (var t = 0; t < e.Attrs1.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs1[t])) return "Attrs1." + n
                }
                if (null != e.Skills1 && e.hasOwnProperty("Skills1")) {
                    if (!Array.isArray(e.Skills1)) return "Skills1: array expected";
                    for (t = 0; t < e.Skills1.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills1[t])) return "Skills1." + n
                }
                if (null != e.Attrs2 && e.hasOwnProperty("Attrs2")) {
                    if (!Array.isArray(e.Attrs2)) return "Attrs2: array expected";
                    for (t = 0; t < e.Attrs2.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs2[t])) return "Attrs2." + n
                }
                if (null != e.Skills2 && e.hasOwnProperty("Skills2")) {
                    if (!Array.isArray(e.Skills2)) return "Skills2: array expected";
                    for (t = 0; t < e.Skills2.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills2[t])) return "Skills2." + n
                }
                if (null != e.Attrs3 && e.hasOwnProperty("Attrs3")) {
                    if (!Array.isArray(e.Attrs3)) return "Attrs3: array expected";
                    for (t = 0; t < e.Attrs3.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs3[t])) return "Attrs3." + n
                }
                if (null != e.Skills3 && e.hasOwnProperty("Skills3")) {
                    if (!Array.isArray(e.Skills3)) return "Skills3: array expected";
                    for (t = 0; t < e.Skills3.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Skills3[t])) return "Skills3." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Strategy_Config) return e;
                var t = new a.Strategy_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), null != e.PreSkill && (i.Long ? (t.PreSkill = i.Long.fromValue(e.PreSkill)).unsigned = !1 : "string" == typeof e.PreSkill ? t.PreSkill = parseInt(e.PreSkill, 10) : "number" == typeof e.PreSkill ? t.PreSkill = e.PreSkill : "object" == typeof e.PreSkill && (t.PreSkill = new i.LongBits(e.PreSkill.low >>> 0, e.PreSkill.high >>> 0).toNumber())), null != e.MaterialCount && (i.Long ? (t.MaterialCount = i.Long.fromValue(e.MaterialCount)).unsigned = !1 : "string" == typeof e.MaterialCount ? t.MaterialCount = parseInt(e.MaterialCount, 10) : "number" == typeof e.MaterialCount ? t.MaterialCount = e.MaterialCount : "object" == typeof e.MaterialCount && (t.MaterialCount = new i.LongBits(e.MaterialCount.low >>> 0, e.MaterialCount.high >>> 0).toNumber())), e.Attrs1) {
                    if (!Array.isArray(e.Attrs1)) throw TypeError(".Strategy_Config.Attrs1: array expected");
                    t.Attrs1 = [];
                    for (var n = 0; n < e.Attrs1.length; ++n) {
                        if ("object" != typeof e.Attrs1[n]) throw TypeError(".Strategy_Config.Attrs1: object expected");
                        t.Attrs1[n] = a.IntArray_Config.fromObject(e.Attrs1[n])
                    }
                }
                if (e.Skills1) {
                    if (!Array.isArray(e.Skills1)) throw TypeError(".Strategy_Config.Skills1: array expected");
                    for (t.Skills1 = [], n = 0; n < e.Skills1.length; ++n) {
                        if ("object" != typeof e.Skills1[n]) throw TypeError(".Strategy_Config.Skills1: object expected");
                        t.Skills1[n] = a.IntArray_Config.fromObject(e.Skills1[n])
                    }
                }
                if (e.Attrs2) {
                    if (!Array.isArray(e.Attrs2)) throw TypeError(".Strategy_Config.Attrs2: array expected");
                    for (t.Attrs2 = [], n = 0; n < e.Attrs2.length; ++n) {
                        if ("object" != typeof e.Attrs2[n]) throw TypeError(".Strategy_Config.Attrs2: object expected");
                        t.Attrs2[n] = a.IntArray_Config.fromObject(e.Attrs2[n])
                    }
                }
                if (e.Skills2) {
                    if (!Array.isArray(e.Skills2)) throw TypeError(".Strategy_Config.Skills2: array expected");
                    for (t.Skills2 = [], n = 0; n < e.Skills2.length; ++n) {
                        if ("object" != typeof e.Skills2[n]) throw TypeError(".Strategy_Config.Skills2: object expected");
                        t.Skills2[n] = a.IntArray_Config.fromObject(e.Skills2[n])
                    }
                }
                if (e.Attrs3) {
                    if (!Array.isArray(e.Attrs3)) throw TypeError(".Strategy_Config.Attrs3: array expected");
                    for (t.Attrs3 = [], n = 0; n < e.Attrs3.length; ++n) {
                        if ("object" != typeof e.Attrs3[n]) throw TypeError(".Strategy_Config.Attrs3: object expected");
                        t.Attrs3[n] = a.IntArray_Config.fromObject(e.Attrs3[n])
                    }
                }
                if (e.Skills3) {
                    if (!Array.isArray(e.Skills3)) throw TypeError(".Strategy_Config.Skills3: array expected");
                    for (t.Skills3 = [], n = 0; n < e.Skills3.length; ++n) {
                        if ("object" != typeof e.Skills3[n]) throw TypeError(".Strategy_Config.Skills3: object expected");
                        t.Skills3[n] = a.IntArray_Config.fromObject(e.Skills3[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs1 = [], n.Skills1 = [], n.Attrs2 = [], n.Skills2 = [], n.Attrs3 = [], n.Skills3 = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.PreSkill = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PreSkill = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaterialCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaterialCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), null != e.PreSkill && e.hasOwnProperty("PreSkill") && ("number" == typeof e.PreSkill ? n.PreSkill = t.longs === String ? String(e.PreSkill) : e.PreSkill : n.PreSkill = t.longs === String ? i.Long.prototype.toString.call(e.PreSkill) : t.longs === Number ? new i.LongBits(e.PreSkill.low >>> 0, e.PreSkill.high >>> 0).toNumber() : e.PreSkill), null != e.MaterialCount && e.hasOwnProperty("MaterialCount") && ("number" == typeof e.MaterialCount ? n.MaterialCount = t.longs === String ? String(e.MaterialCount) : e.MaterialCount : n.MaterialCount = t.longs === String ? i.Long.prototype.toString.call(e.MaterialCount) : t.longs === Number ? new i.LongBits(e.MaterialCount.low >>> 0, e.MaterialCount.high >>> 0).toNumber() : e.MaterialCount), e.Attrs1 && e.Attrs1.length) {
                    n.Attrs1 = [];
                    for (var r = 0; r < e.Attrs1.length; ++r) n.Attrs1[r] = a.IntArray_Config.toObject(e.Attrs1[r], t)
                }
                if (e.Skills1 && e.Skills1.length)
                    for (n.Skills1 = [], r = 0; r < e.Skills1.length; ++r) n.Skills1[r] = a.IntArray_Config.toObject(e.Skills1[r], t);
                if (e.Attrs2 && e.Attrs2.length)
                    for (n.Attrs2 = [], r = 0; r < e.Attrs2.length; ++r) n.Attrs2[r] = a.IntArray_Config.toObject(e.Attrs2[r], t);
                if (e.Skills2 && e.Skills2.length)
                    for (n.Skills2 = [], r = 0; r < e.Skills2.length; ++r) n.Skills2[r] = a.IntArray_Config.toObject(e.Skills2[r], t);
                if (e.Attrs3 && e.Attrs3.length)
                    for (n.Attrs3 = [], r = 0; r < e.Attrs3.length; ++r) n.Attrs3[r] = a.IntArray_Config.toObject(e.Attrs3[r], t);
                if (e.Skills3 && e.Skills3.length)
                    for (n.Skills3 = [], r = 0; r < e.Skills3.length; ++r) n.Skills3[r] = a.IntArray_Config.toObject(e.Skills3[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Strategy_Config"
            }, e
        }(), a.Duke_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Condition = [], this.Materials = [], this.Rewards = [], this.ExtraAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.Attrs = i.emptyArray, e.prototype.Condition = i.emptyArray, e.prototype.Materials = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.prototype.TitleId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ExtraAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(26).string(e.Icon), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.Condition && e.Condition.length)
                    for (n = 0; n < e.Condition.length; ++n) a.IntArray_Config.encode(e.Condition[n], t.uint32(42).fork()).ldelim();
                if (null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(50).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(58).fork()).ldelim();
                if (null != e.TitleId && Object.hasOwnProperty.call(e, "TitleId") && t.uint32(64).int64(e.TitleId), null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(72).int64(e.NextId), null != e.MaxLevel && Object.hasOwnProperty.call(e, "MaxLevel") && t.uint32(80).int64(e.MaxLevel), null != e.ExtraAttrs && e.ExtraAttrs.length)
                    for (n = 0; n < e.ExtraAttrs.length; ++n) a.IntArray_Config.encode(e.ExtraAttrs[n], t.uint32(90).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Duke_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Icon = e.string();
                            break;
                        case 4:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Condition && r.Condition.length || (r.Condition = []), r.Condition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.TitleId = e.int64();
                            break;
                        case 9:
                            r.NextId = e.int64();
                            break;
                        case 10:
                            r.MaxLevel = e.int64();
                            break;
                        case 11:
                            r.ExtraAttrs && r.ExtraAttrs.length || (r.ExtraAttrs = []), r.ExtraAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Condition && e.hasOwnProperty("Condition")) {
                    if (!Array.isArray(e.Condition)) return "Condition: array expected";
                    for (t = 0; t < e.Condition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Condition[t])) return "Condition." + n
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.TitleId && e.hasOwnProperty("TitleId") && !(i.isInteger(e.TitleId) || e.TitleId && i.isInteger(e.TitleId.low) && i.isInteger(e.TitleId.high))) return "TitleId: integer|Long expected";
                if (null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high))) return "NextId: integer|Long expected";
                if (null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && !(i.isInteger(e.MaxLevel) || e.MaxLevel && i.isInteger(e.MaxLevel.low) && i.isInteger(e.MaxLevel.high))) return "MaxLevel: integer|Long expected";
                if (null != e.ExtraAttrs && e.hasOwnProperty("ExtraAttrs")) {
                    if (!Array.isArray(e.ExtraAttrs)) return "ExtraAttrs: array expected";
                    for (t = 0; t < e.ExtraAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ExtraAttrs[t])) return "ExtraAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Duke_Config) return e;
                var t = new a.Duke_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".Duke_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".Duke_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Condition) {
                    if (!Array.isArray(e.Condition)) throw TypeError(".Duke_Config.Condition: array expected");
                    for (t.Condition = [], n = 0; n < e.Condition.length; ++n) {
                        if ("object" != typeof e.Condition[n]) throw TypeError(".Duke_Config.Condition: object expected");
                        t.Condition[n] = a.IntArray_Config.fromObject(e.Condition[n])
                    }
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Duke_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Duke_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Duke_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Duke_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (null != e.TitleId && (i.Long ? (t.TitleId = i.Long.fromValue(e.TitleId)).unsigned = !1 : "string" == typeof e.TitleId ? t.TitleId = parseInt(e.TitleId, 10) : "number" == typeof e.TitleId ? t.TitleId = e.TitleId : "object" == typeof e.TitleId && (t.TitleId = new i.LongBits(e.TitleId.low >>> 0, e.TitleId.high >>> 0).toNumber())), null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), null != e.MaxLevel && (i.Long ? (t.MaxLevel = i.Long.fromValue(e.MaxLevel)).unsigned = !1 : "string" == typeof e.MaxLevel ? t.MaxLevel = parseInt(e.MaxLevel, 10) : "number" == typeof e.MaxLevel ? t.MaxLevel = e.MaxLevel : "object" == typeof e.MaxLevel && (t.MaxLevel = new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber())), e.ExtraAttrs) {
                    if (!Array.isArray(e.ExtraAttrs)) throw TypeError(".Duke_Config.ExtraAttrs: array expected");
                    for (t.ExtraAttrs = [], n = 0; n < e.ExtraAttrs.length; ++n) {
                        if ("object" != typeof e.ExtraAttrs[n]) throw TypeError(".Duke_Config.ExtraAttrs: object expected");
                        t.ExtraAttrs[n] = a.IntArray_Config.fromObject(e.ExtraAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Condition = [], n.Materials = [], n.Rewards = [], n.ExtraAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.TitleId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TitleId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.Condition && e.Condition.length)
                    for (n.Condition = [], r = 0; r < e.Condition.length; ++r) n.Condition[r] = a.IntArray_Config.toObject(e.Condition[r], t);
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (null != e.TitleId && e.hasOwnProperty("TitleId") && ("number" == typeof e.TitleId ? n.TitleId = t.longs === String ? String(e.TitleId) : e.TitleId : n.TitleId = t.longs === String ? i.Long.prototype.toString.call(e.TitleId) : t.longs === Number ? new i.LongBits(e.TitleId.low >>> 0, e.TitleId.high >>> 0).toNumber() : e.TitleId), null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && ("number" == typeof e.MaxLevel ? n.MaxLevel = t.longs === String ? String(e.MaxLevel) : e.MaxLevel : n.MaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxLevel) : t.longs === Number ? new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber() : e.MaxLevel), e.ExtraAttrs && e.ExtraAttrs.length)
                    for (n.ExtraAttrs = [], r = 0; r < e.ExtraAttrs.length; ++r) n.ExtraAttrs[r] = a.IntArray_Config.toObject(e.ExtraAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Duke_Config"
            }, e
        }(), a.TreasureHouseAssociation_Config = function() {
            function e(e) {
                if (this.LevelCondition = [], this.LevelConsume = [], this.Attrs = [], this.SpecialAttrs = [], this.Resource = [], this.SerialIdArray = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelCondition = i.emptyArray, e.prototype.LevelConsume = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.SpecialAttrs = i.emptyArray, e.prototype.MaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Resource = i.emptyArray, e.prototype.SerialIdArray = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.LevelCondition && e.LevelCondition.length)
                    for (var n = 0; n < e.LevelCondition.length; ++n) a.IntArray_Config.encode(e.LevelCondition[n], t.uint32(18).fork()).ldelim();
                if (null != e.LevelConsume && e.LevelConsume.length)
                    for (n = 0; n < e.LevelConsume.length; ++n) a.IntArray_Config.encode(e.LevelConsume[n], t.uint32(26).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.SpecialAttrs && e.SpecialAttrs.length)
                    for (n = 0; n < e.SpecialAttrs.length; ++n) a.IntArray_Config.encode(e.SpecialAttrs[n], t.uint32(42).fork()).ldelim();
                if (null != e.MaxLevel && Object.hasOwnProperty.call(e, "MaxLevel") && t.uint32(48).int64(e.MaxLevel), null != e.Resource && e.Resource.length)
                    for (n = 0; n < e.Resource.length; ++n) t.uint32(58).string(e.Resource[n]);
                if (null != e.SerialIdArray && e.SerialIdArray.length) {
                    for (t.uint32(74).fork(), n = 0; n < e.SerialIdArray.length; ++n) t.int64(e.SerialIdArray[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TreasureHouseAssociation_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.LevelCondition && r.LevelCondition.length || (r.LevelCondition = []), r.LevelCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.LevelConsume && r.LevelConsume.length || (r.LevelConsume = []), r.LevelConsume.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.SpecialAttrs && r.SpecialAttrs.length || (r.SpecialAttrs = []), r.SpecialAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.MaxLevel = e.int64();
                            break;
                        case 7:
                            r.Resource && r.Resource.length || (r.Resource = []), r.Resource.push(e.string());
                            break;
                        case 9:
                            if (r.SerialIdArray && r.SerialIdArray.length || (r.SerialIdArray = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.SerialIdArray.push(e.int64());
                            else r.SerialIdArray.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.LevelCondition && e.hasOwnProperty("LevelCondition")) {
                    if (!Array.isArray(e.LevelCondition)) return "LevelCondition: array expected";
                    for (var t = 0; t < e.LevelCondition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelCondition[t])) return "LevelCondition." + n
                }
                if (null != e.LevelConsume && e.hasOwnProperty("LevelConsume")) {
                    if (!Array.isArray(e.LevelConsume)) return "LevelConsume: array expected";
                    for (t = 0; t < e.LevelConsume.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelConsume[t])) return "LevelConsume." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.SpecialAttrs && e.hasOwnProperty("SpecialAttrs")) {
                    if (!Array.isArray(e.SpecialAttrs)) return "SpecialAttrs: array expected";
                    for (t = 0; t < e.SpecialAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.SpecialAttrs[t])) return "SpecialAttrs." + n
                    }
                }
                if (null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && !(i.isInteger(e.MaxLevel) || e.MaxLevel && i.isInteger(e.MaxLevel.low) && i.isInteger(e.MaxLevel.high))) return "MaxLevel: integer|Long expected";
                if (null != e.Resource && e.hasOwnProperty("Resource")) {
                    if (!Array.isArray(e.Resource)) return "Resource: array expected";
                    for (t = 0; t < e.Resource.length; ++t)
                        if (!i.isString(e.Resource[t])) return "Resource: string[] expected"
                }
                if (null != e.SerialIdArray && e.hasOwnProperty("SerialIdArray")) {
                    if (!Array.isArray(e.SerialIdArray)) return "SerialIdArray: array expected";
                    for (t = 0; t < e.SerialIdArray.length; ++t)
                        if (!(i.isInteger(e.SerialIdArray[t]) || e.SerialIdArray[t] && i.isInteger(e.SerialIdArray[t].low) && i.isInteger(e.SerialIdArray[t].high))) return "SerialIdArray: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.TreasureHouseAssociation_Config) return e;
                var t = new a.TreasureHouseAssociation_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.LevelCondition) {
                    if (!Array.isArray(e.LevelCondition)) throw TypeError(".TreasureHouseAssociation_Config.LevelCondition: array expected");
                    t.LevelCondition = [];
                    for (var n = 0; n < e.LevelCondition.length; ++n) {
                        if ("object" != typeof e.LevelCondition[n]) throw TypeError(".TreasureHouseAssociation_Config.LevelCondition: object expected");
                        t.LevelCondition[n] = a.IntArray_Config.fromObject(e.LevelCondition[n])
                    }
                }
                if (e.LevelConsume) {
                    if (!Array.isArray(e.LevelConsume)) throw TypeError(".TreasureHouseAssociation_Config.LevelConsume: array expected");
                    for (t.LevelConsume = [], n = 0; n < e.LevelConsume.length; ++n) {
                        if ("object" != typeof e.LevelConsume[n]) throw TypeError(".TreasureHouseAssociation_Config.LevelConsume: object expected");
                        t.LevelConsume[n] = a.IntArray_Config.fromObject(e.LevelConsume[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".TreasureHouseAssociation_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".TreasureHouseAssociation_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.SpecialAttrs) {
                    if (!Array.isArray(e.SpecialAttrs)) throw TypeError(".TreasureHouseAssociation_Config.SpecialAttrs: array expected");
                    for (t.SpecialAttrs = [], n = 0; n < e.SpecialAttrs.length; ++n) {
                        if ("object" != typeof e.SpecialAttrs[n]) throw TypeError(".TreasureHouseAssociation_Config.SpecialAttrs: object expected");
                        t.SpecialAttrs[n] = a.IntArray_Config.fromObject(e.SpecialAttrs[n])
                    }
                }
                if (null != e.MaxLevel && (i.Long ? (t.MaxLevel = i.Long.fromValue(e.MaxLevel)).unsigned = !1 : "string" == typeof e.MaxLevel ? t.MaxLevel = parseInt(e.MaxLevel, 10) : "number" == typeof e.MaxLevel ? t.MaxLevel = e.MaxLevel : "object" == typeof e.MaxLevel && (t.MaxLevel = new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber())), e.Resource) {
                    if (!Array.isArray(e.Resource)) throw TypeError(".TreasureHouseAssociation_Config.Resource: array expected");
                    for (t.Resource = [], n = 0; n < e.Resource.length; ++n) t.Resource[n] = String(e.Resource[n])
                }
                if (e.SerialIdArray) {
                    if (!Array.isArray(e.SerialIdArray)) throw TypeError(".TreasureHouseAssociation_Config.SerialIdArray: array expected");
                    for (t.SerialIdArray = [], n = 0; n < e.SerialIdArray.length; ++n) i.Long ? (t.SerialIdArray[n] = i.Long.fromValue(e.SerialIdArray[n])).unsigned = !1 : "string" == typeof e.SerialIdArray[n] ? t.SerialIdArray[n] = parseInt(e.SerialIdArray[n], 10) : "number" == typeof e.SerialIdArray[n] ? t.SerialIdArray[n] = e.SerialIdArray[n] : "object" == typeof e.SerialIdArray[n] && (t.SerialIdArray[n] = new i.LongBits(e.SerialIdArray[n].low >>> 0, e.SerialIdArray[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.LevelCondition = [], n.LevelConsume = [], n.Attrs = [], n.SpecialAttrs = [], n.Resource = [], n.SerialIdArray = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.LevelCondition && e.LevelCondition.length) {
                    n.LevelCondition = [];
                    for (var r = 0; r < e.LevelCondition.length; ++r) n.LevelCondition[r] = a.IntArray_Config.toObject(e.LevelCondition[r], t)
                }
                if (e.LevelConsume && e.LevelConsume.length)
                    for (n.LevelConsume = [], r = 0; r < e.LevelConsume.length; ++r) n.LevelConsume[r] = a.IntArray_Config.toObject(e.LevelConsume[r], t);
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (e.SpecialAttrs && e.SpecialAttrs.length)
                    for (n.SpecialAttrs = [], r = 0; r < e.SpecialAttrs.length; ++r) n.SpecialAttrs[r] = a.IntArray_Config.toObject(e.SpecialAttrs[r], t);
                if (null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && ("number" == typeof e.MaxLevel ? n.MaxLevel = t.longs === String ? String(e.MaxLevel) : e.MaxLevel : n.MaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxLevel) : t.longs === Number ? new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber() : e.MaxLevel), e.Resource && e.Resource.length)
                    for (n.Resource = [], r = 0; r < e.Resource.length; ++r) n.Resource[r] = e.Resource[r];
                if (e.SerialIdArray && e.SerialIdArray.length)
                    for (n.SerialIdArray = [], r = 0; r < e.SerialIdArray.length; ++r) "number" == typeof e.SerialIdArray[r] ? n.SerialIdArray[r] = t.longs === String ? String(e.SerialIdArray[r]) : e.SerialIdArray[r] : n.SerialIdArray[r] = t.longs === String ? i.Long.prototype.toString.call(e.SerialIdArray[r]) : t.longs === Number ? new i.LongBits(e.SerialIdArray[r].low >>> 0, e.SerialIdArray[r].high >>> 0).toNumber() : e.SerialIdArray[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TreasureHouseAssociation_Config"
            }, e
        }(), a.DukeScrollLevel_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaterialCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MaterialCount && Object.hasOwnProperty.call(e, "MaterialCount") && t.uint32(16).int64(e.MaterialCount), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DukeScrollLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.MaterialCount = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MaterialCount && e.hasOwnProperty("MaterialCount") && !(i.isInteger(e.MaterialCount) || e.MaterialCount && i.isInteger(e.MaterialCount.low) && i.isInteger(e.MaterialCount.high))) return "MaterialCount: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.DukeScrollLevel_Config) return e;
                var t = new a.DukeScrollLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.MaterialCount && (i.Long ? (t.MaterialCount = i.Long.fromValue(e.MaterialCount)).unsigned = !1 : "string" == typeof e.MaterialCount ? t.MaterialCount = parseInt(e.MaterialCount, 10) : "number" == typeof e.MaterialCount ? t.MaterialCount = e.MaterialCount : "object" == typeof e.MaterialCount && (t.MaterialCount = new i.LongBits(e.MaterialCount.low >>> 0, e.MaterialCount.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".DukeScrollLevel_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".DukeScrollLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaterialCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaterialCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.MaterialCount && e.hasOwnProperty("MaterialCount") && ("number" == typeof e.MaterialCount ? n.MaterialCount = t.longs === String ? String(e.MaterialCount) : e.MaterialCount : n.MaterialCount = t.longs === String ? i.Long.prototype.toString.call(e.MaterialCount) : t.longs === Number ? new i.LongBits(e.MaterialCount.low >>> 0, e.MaterialCount.high >>> 0).toNumber() : e.MaterialCount), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DukeScrollLevel_Config"
            }, e
        }(), a.HeroTalentResonance_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TalentLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.TalentLevel && Object.hasOwnProperty.call(e, "TalentLevel") && t.uint32(16).int64(e.TalentLevel), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroTalentResonance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.TalentLevel = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.TalentLevel && e.hasOwnProperty("TalentLevel") && !(i.isInteger(e.TalentLevel) || e.TalentLevel && i.isInteger(e.TalentLevel.low) && i.isInteger(e.TalentLevel.high))) return "TalentLevel: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroTalentResonance_Config) return e;
                var t = new a.HeroTalentResonance_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.TalentLevel && (i.Long ? (t.TalentLevel = i.Long.fromValue(e.TalentLevel)).unsigned = !1 : "string" == typeof e.TalentLevel ? t.TalentLevel = parseInt(e.TalentLevel, 10) : "number" == typeof e.TalentLevel ? t.TalentLevel = e.TalentLevel : "object" == typeof e.TalentLevel && (t.TalentLevel = new i.LongBits(e.TalentLevel.low >>> 0, e.TalentLevel.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroTalentResonance_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroTalentResonance_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.TalentLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TalentLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.TalentLevel && e.hasOwnProperty("TalentLevel") && ("number" == typeof e.TalentLevel ? n.TalentLevel = t.longs === String ? String(e.TalentLevel) : e.TalentLevel : n.TalentLevel = t.longs === String ? i.Long.prototype.toString.call(e.TalentLevel) : t.longs === Number ? new i.LongBits(e.TalentLevel.low >>> 0, e.TalentLevel.high >>> 0).toNumber() : e.TalentLevel), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroTalentResonance_Config"
            }, e
        }(), a.TreasureHouseStone_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Consume = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Consume = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.Consume && e.Consume.length)
                    for (n = 0; n < e.Consume.length; ++n) a.IntArray_Config.encode(e.Consume[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TreasureHouseStone_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Consume && r.Consume.length || (r.Consume = []), r.Consume.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Consume && e.hasOwnProperty("Consume")) {
                    if (!Array.isArray(e.Consume)) return "Consume: array expected";
                    for (t = 0; t < e.Consume.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Consume[t])) return "Consume." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.TreasureHouseStone_Config) return e;
                var t = new a.TreasureHouseStone_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".TreasureHouseStone_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".TreasureHouseStone_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Consume) {
                    if (!Array.isArray(e.Consume)) throw TypeError(".TreasureHouseStone_Config.Consume: array expected");
                    for (t.Consume = [], n = 0; n < e.Consume.length; ++n) {
                        if ("object" != typeof e.Consume[n]) throw TypeError(".TreasureHouseStone_Config.Consume: object expected");
                        t.Consume[n] = a.IntArray_Config.fromObject(e.Consume[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Consume = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.Consume && e.Consume.length)
                    for (n.Consume = [], r = 0; r < e.Consume.length; ++r) n.Consume[r] = a.IntArray_Config.toObject(e.Consume[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TreasureHouseStone_Config"
            }, e
        }(), a.AngelGodSoulType_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelGodSoulType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelGodSoulType_Config) return e;
                var t = new a.AngelGodSoulType_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelGodSoulType_Config"
            }, e
        }(), a.FighterSpiritChapter_Config = function() {
            function e(e) {
                if (this.Skills1 = [], this.SkillsUnlock = [], this.Consume1 = [], this.GraphIds = [], this.Consume2 = [], this.Skills2 = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnlockSpiritNum = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills1 = i.emptyArray, e.prototype.SkillsUnlock = i.emptyArray, e.prototype.Consume1 = i.emptyArray, e.prototype.GraphIds = i.emptyArray, e.prototype.Consume2 = i.emptyArray, e.prototype.Skills2 = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.UnlockSpiritNum && Object.hasOwnProperty.call(e, "UnlockSpiritNum") && t.uint32(16).int64(e.UnlockSpiritNum), null != e.Skills1 && e.Skills1.length)
                    for (var n = 0; n < e.Skills1.length; ++n) a.IntArray_Config.encode(e.Skills1[n], t.uint32(34).fork()).ldelim();
                if (null != e.SkillsUnlock && e.SkillsUnlock.length)
                    for (n = 0; n < e.SkillsUnlock.length; ++n) a.IntArray_Config.encode(e.SkillsUnlock[n], t.uint32(42).fork()).ldelim();
                if (null != e.Consume1 && e.Consume1.length)
                    for (n = 0; n < e.Consume1.length; ++n) a.IntArray_Config.encode(e.Consume1[n], t.uint32(50).fork()).ldelim();
                if (null != e.GraphIds && e.GraphIds.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.GraphIds.length; ++n) t.int64(e.GraphIds[n]);
                    t.ldelim()
                }
                if (null != e.Consume2 && e.Consume2.length)
                    for (n = 0; n < e.Consume2.length; ++n) a.IntArray_Config.encode(e.Consume2[n], t.uint32(66).fork()).ldelim();
                if (null != e.Skills2 && e.Skills2.length)
                    for (n = 0; n < e.Skills2.length; ++n) a.IntArray_Config.encode(e.Skills2[n], t.uint32(74).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FighterSpiritChapter_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.UnlockSpiritNum = e.int64();
                            break;
                        case 4:
                            r.Skills1 && r.Skills1.length || (r.Skills1 = []), r.Skills1.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.SkillsUnlock && r.SkillsUnlock.length || (r.SkillsUnlock = []), r.SkillsUnlock.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Consume1 && r.Consume1.length || (r.Consume1 = []), r.Consume1.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            if (r.GraphIds && r.GraphIds.length || (r.GraphIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.GraphIds.push(e.int64());
                            else r.GraphIds.push(e.int64());
                            break;
                        case 8:
                            r.Consume2 && r.Consume2.length || (r.Consume2 = []), r.Consume2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.Skills2 && r.Skills2.length || (r.Skills2 = []), r.Skills2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.UnlockSpiritNum && e.hasOwnProperty("UnlockSpiritNum") && !(i.isInteger(e.UnlockSpiritNum) || e.UnlockSpiritNum && i.isInteger(e.UnlockSpiritNum.low) && i.isInteger(e.UnlockSpiritNum.high))) return "UnlockSpiritNum: integer|Long expected";
                if (null != e.Skills1 && e.hasOwnProperty("Skills1")) {
                    if (!Array.isArray(e.Skills1)) return "Skills1: array expected";
                    for (var t = 0; t < e.Skills1.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills1[t])) return "Skills1." + n
                }
                if (null != e.SkillsUnlock && e.hasOwnProperty("SkillsUnlock")) {
                    if (!Array.isArray(e.SkillsUnlock)) return "SkillsUnlock: array expected";
                    for (t = 0; t < e.SkillsUnlock.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SkillsUnlock[t])) return "SkillsUnlock." + n
                }
                if (null != e.Consume1 && e.hasOwnProperty("Consume1")) {
                    if (!Array.isArray(e.Consume1)) return "Consume1: array expected";
                    for (t = 0; t < e.Consume1.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Consume1[t])) return "Consume1." + n
                }
                if (null != e.GraphIds && e.hasOwnProperty("GraphIds")) {
                    if (!Array.isArray(e.GraphIds)) return "GraphIds: array expected";
                    for (t = 0; t < e.GraphIds.length; ++t)
                        if (!(i.isInteger(e.GraphIds[t]) || e.GraphIds[t] && i.isInteger(e.GraphIds[t].low) && i.isInteger(e.GraphIds[t].high))) return "GraphIds: integer|Long[] expected"
                }
                if (null != e.Consume2 && e.hasOwnProperty("Consume2")) {
                    if (!Array.isArray(e.Consume2)) return "Consume2: array expected";
                    for (t = 0; t < e.Consume2.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Consume2[t])) return "Consume2." + n
                }
                if (null != e.Skills2 && e.hasOwnProperty("Skills2")) {
                    if (!Array.isArray(e.Skills2)) return "Skills2: array expected";
                    for (t = 0; t < e.Skills2.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Skills2[t])) return "Skills2." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.FighterSpiritChapter_Config) return e;
                var t = new a.FighterSpiritChapter_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.UnlockSpiritNum && (i.Long ? (t.UnlockSpiritNum = i.Long.fromValue(e.UnlockSpiritNum)).unsigned = !1 : "string" == typeof e.UnlockSpiritNum ? t.UnlockSpiritNum = parseInt(e.UnlockSpiritNum, 10) : "number" == typeof e.UnlockSpiritNum ? t.UnlockSpiritNum = e.UnlockSpiritNum : "object" == typeof e.UnlockSpiritNum && (t.UnlockSpiritNum = new i.LongBits(e.UnlockSpiritNum.low >>> 0, e.UnlockSpiritNum.high >>> 0).toNumber())), e.Skills1) {
                    if (!Array.isArray(e.Skills1)) throw TypeError(".FighterSpiritChapter_Config.Skills1: array expected");
                    t.Skills1 = [];
                    for (var n = 0; n < e.Skills1.length; ++n) {
                        if ("object" != typeof e.Skills1[n]) throw TypeError(".FighterSpiritChapter_Config.Skills1: object expected");
                        t.Skills1[n] = a.IntArray_Config.fromObject(e.Skills1[n])
                    }
                }
                if (e.SkillsUnlock) {
                    if (!Array.isArray(e.SkillsUnlock)) throw TypeError(".FighterSpiritChapter_Config.SkillsUnlock: array expected");
                    for (t.SkillsUnlock = [], n = 0; n < e.SkillsUnlock.length; ++n) {
                        if ("object" != typeof e.SkillsUnlock[n]) throw TypeError(".FighterSpiritChapter_Config.SkillsUnlock: object expected");
                        t.SkillsUnlock[n] = a.IntArray_Config.fromObject(e.SkillsUnlock[n])
                    }
                }
                if (e.Consume1) {
                    if (!Array.isArray(e.Consume1)) throw TypeError(".FighterSpiritChapter_Config.Consume1: array expected");
                    for (t.Consume1 = [], n = 0; n < e.Consume1.length; ++n) {
                        if ("object" != typeof e.Consume1[n]) throw TypeError(".FighterSpiritChapter_Config.Consume1: object expected");
                        t.Consume1[n] = a.IntArray_Config.fromObject(e.Consume1[n])
                    }
                }
                if (e.GraphIds) {
                    if (!Array.isArray(e.GraphIds)) throw TypeError(".FighterSpiritChapter_Config.GraphIds: array expected");
                    for (t.GraphIds = [], n = 0; n < e.GraphIds.length; ++n) i.Long ? (t.GraphIds[n] = i.Long.fromValue(e.GraphIds[n])).unsigned = !1 : "string" == typeof e.GraphIds[n] ? t.GraphIds[n] = parseInt(e.GraphIds[n], 10) : "number" == typeof e.GraphIds[n] ? t.GraphIds[n] = e.GraphIds[n] : "object" == typeof e.GraphIds[n] && (t.GraphIds[n] = new i.LongBits(e.GraphIds[n].low >>> 0, e.GraphIds[n].high >>> 0).toNumber())
                }
                if (e.Consume2) {
                    if (!Array.isArray(e.Consume2)) throw TypeError(".FighterSpiritChapter_Config.Consume2: array expected");
                    for (t.Consume2 = [], n = 0; n < e.Consume2.length; ++n) {
                        if ("object" != typeof e.Consume2[n]) throw TypeError(".FighterSpiritChapter_Config.Consume2: object expected");
                        t.Consume2[n] = a.IntArray_Config.fromObject(e.Consume2[n])
                    }
                }
                if (e.Skills2) {
                    if (!Array.isArray(e.Skills2)) throw TypeError(".FighterSpiritChapter_Config.Skills2: array expected");
                    for (t.Skills2 = [], n = 0; n < e.Skills2.length; ++n) {
                        if ("object" != typeof e.Skills2[n]) throw TypeError(".FighterSpiritChapter_Config.Skills2: object expected");
                        t.Skills2[n] = a.IntArray_Config.fromObject(e.Skills2[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Skills1 = [], n.SkillsUnlock = [], n.Consume1 = [], n.GraphIds = [], n.Consume2 = [], n.Skills2 = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.UnlockSpiritNum = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UnlockSpiritNum = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.UnlockSpiritNum && e.hasOwnProperty("UnlockSpiritNum") && ("number" == typeof e.UnlockSpiritNum ? n.UnlockSpiritNum = t.longs === String ? String(e.UnlockSpiritNum) : e.UnlockSpiritNum : n.UnlockSpiritNum = t.longs === String ? i.Long.prototype.toString.call(e.UnlockSpiritNum) : t.longs === Number ? new i.LongBits(e.UnlockSpiritNum.low >>> 0, e.UnlockSpiritNum.high >>> 0).toNumber() : e.UnlockSpiritNum), e.Skills1 && e.Skills1.length) {
                    n.Skills1 = [];
                    for (var r = 0; r < e.Skills1.length; ++r) n.Skills1[r] = a.IntArray_Config.toObject(e.Skills1[r], t)
                }
                if (e.SkillsUnlock && e.SkillsUnlock.length)
                    for (n.SkillsUnlock = [], r = 0; r < e.SkillsUnlock.length; ++r) n.SkillsUnlock[r] = a.IntArray_Config.toObject(e.SkillsUnlock[r], t);
                if (e.Consume1 && e.Consume1.length)
                    for (n.Consume1 = [], r = 0; r < e.Consume1.length; ++r) n.Consume1[r] = a.IntArray_Config.toObject(e.Consume1[r], t);
                if (e.GraphIds && e.GraphIds.length)
                    for (n.GraphIds = [], r = 0; r < e.GraphIds.length; ++r) "number" == typeof e.GraphIds[r] ? n.GraphIds[r] = t.longs === String ? String(e.GraphIds[r]) : e.GraphIds[r] : n.GraphIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.GraphIds[r]) : t.longs === Number ? new i.LongBits(e.GraphIds[r].low >>> 0, e.GraphIds[r].high >>> 0).toNumber() : e.GraphIds[r];
                if (e.Consume2 && e.Consume2.length)
                    for (n.Consume2 = [], r = 0; r < e.Consume2.length; ++r) n.Consume2[r] = a.IntArray_Config.toObject(e.Consume2[r], t);
                if (e.Skills2 && e.Skills2.length)
                    for (n.Skills2 = [], r = 0; r < e.Skills2.length; ++r) n.Skills2[r] = a.IntArray_Config.toObject(e.Skills2[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FighterSpiritChapter_Config"
            }, e
        }(), a.FighterSpiritGraph_Config = function() {
            function e(e) {
                if (this.FighterSpiritIds = [], this.Attrs = [], this.GraphValue = [], this.Consume = [], this.CatalogIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FighterSpiritIds = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.GraphValue = i.emptyArray, e.prototype.MaxStar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Consume = i.emptyArray, e.prototype.CatalogIds = i.emptyArray, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.FighterSpiritIds && e.FighterSpiritIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.FighterSpiritIds.length; ++n) t.int64(e.FighterSpiritIds[n]);
                    t.ldelim()
                }
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.GraphValue && e.GraphValue.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.GraphValue.length; ++n) t.int64(e.GraphValue[n]);
                    t.ldelim()
                }
                if (null != e.MaxStar && Object.hasOwnProperty.call(e, "MaxStar") && t.uint32(40).int64(e.MaxStar), null != e.Consume && e.Consume.length)
                    for (n = 0; n < e.Consume.length; ++n) a.IntArray_Config.encode(e.Consume[n], t.uint32(50).fork()).ldelim();
                if (null != e.CatalogIds && e.CatalogIds.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.CatalogIds.length; ++n) t.int64(e.CatalogIds[n]);
                    t.ldelim()
                }
                return null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(64).int64(e.SortId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FighterSpiritGraph_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.FighterSpiritIds && r.FighterSpiritIds.length || (r.FighterSpiritIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.FighterSpiritIds.push(e.int64());
                            else r.FighterSpiritIds.push(e.int64());
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            if (r.GraphValue && r.GraphValue.length || (r.GraphValue = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.GraphValue.push(e.int64());
                            else r.GraphValue.push(e.int64());
                            break;
                        case 5:
                            r.MaxStar = e.int64();
                            break;
                        case 6:
                            r.Consume && r.Consume.length || (r.Consume = []), r.Consume.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            if (r.CatalogIds && r.CatalogIds.length || (r.CatalogIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.CatalogIds.push(e.int64());
                            else r.CatalogIds.push(e.int64());
                            break;
                        case 8:
                            r.SortId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.FighterSpiritIds && e.hasOwnProperty("FighterSpiritIds")) {
                    if (!Array.isArray(e.FighterSpiritIds)) return "FighterSpiritIds: array expected";
                    for (var t = 0; t < e.FighterSpiritIds.length; ++t)
                        if (!(i.isInteger(e.FighterSpiritIds[t]) || e.FighterSpiritIds[t] && i.isInteger(e.FighterSpiritIds[t].low) && i.isInteger(e.FighterSpiritIds[t].high))) return "FighterSpiritIds: integer|Long[] expected"
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.GraphValue && e.hasOwnProperty("GraphValue")) {
                    if (!Array.isArray(e.GraphValue)) return "GraphValue: array expected";
                    for (t = 0; t < e.GraphValue.length; ++t)
                        if (!(i.isInteger(e.GraphValue[t]) || e.GraphValue[t] && i.isInteger(e.GraphValue[t].low) && i.isInteger(e.GraphValue[t].high))) return "GraphValue: integer|Long[] expected"
                }
                if (null != e.MaxStar && e.hasOwnProperty("MaxStar") && !(i.isInteger(e.MaxStar) || e.MaxStar && i.isInteger(e.MaxStar.low) && i.isInteger(e.MaxStar.high))) return "MaxStar: integer|Long expected";
                if (null != e.Consume && e.hasOwnProperty("Consume")) {
                    if (!Array.isArray(e.Consume)) return "Consume: array expected";
                    for (t = 0; t < e.Consume.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Consume[t])) return "Consume." + n
                    }
                }
                if (null != e.CatalogIds && e.hasOwnProperty("CatalogIds")) {
                    if (!Array.isArray(e.CatalogIds)) return "CatalogIds: array expected";
                    for (t = 0; t < e.CatalogIds.length; ++t)
                        if (!(i.isInteger(e.CatalogIds[t]) || e.CatalogIds[t] && i.isInteger(e.CatalogIds[t].low) && i.isInteger(e.CatalogIds[t].high))) return "CatalogIds: integer|Long[] expected"
                }
                return null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.FighterSpiritGraph_Config) return e;
                var t = new a.FighterSpiritGraph_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.FighterSpiritIds) {
                    if (!Array.isArray(e.FighterSpiritIds)) throw TypeError(".FighterSpiritGraph_Config.FighterSpiritIds: array expected");
                    t.FighterSpiritIds = [];
                    for (var n = 0; n < e.FighterSpiritIds.length; ++n) i.Long ? (t.FighterSpiritIds[n] = i.Long.fromValue(e.FighterSpiritIds[n])).unsigned = !1 : "string" == typeof e.FighterSpiritIds[n] ? t.FighterSpiritIds[n] = parseInt(e.FighterSpiritIds[n], 10) : "number" == typeof e.FighterSpiritIds[n] ? t.FighterSpiritIds[n] = e.FighterSpiritIds[n] : "object" == typeof e.FighterSpiritIds[n] && (t.FighterSpiritIds[n] = new i.LongBits(e.FighterSpiritIds[n].low >>> 0, e.FighterSpiritIds[n].high >>> 0).toNumber())
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".FighterSpiritGraph_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".FighterSpiritGraph_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.GraphValue) {
                    if (!Array.isArray(e.GraphValue)) throw TypeError(".FighterSpiritGraph_Config.GraphValue: array expected");
                    for (t.GraphValue = [], n = 0; n < e.GraphValue.length; ++n) i.Long ? (t.GraphValue[n] = i.Long.fromValue(e.GraphValue[n])).unsigned = !1 : "string" == typeof e.GraphValue[n] ? t.GraphValue[n] = parseInt(e.GraphValue[n], 10) : "number" == typeof e.GraphValue[n] ? t.GraphValue[n] = e.GraphValue[n] : "object" == typeof e.GraphValue[n] && (t.GraphValue[n] = new i.LongBits(e.GraphValue[n].low >>> 0, e.GraphValue[n].high >>> 0).toNumber())
                }
                if (null != e.MaxStar && (i.Long ? (t.MaxStar = i.Long.fromValue(e.MaxStar)).unsigned = !1 : "string" == typeof e.MaxStar ? t.MaxStar = parseInt(e.MaxStar, 10) : "number" == typeof e.MaxStar ? t.MaxStar = e.MaxStar : "object" == typeof e.MaxStar && (t.MaxStar = new i.LongBits(e.MaxStar.low >>> 0, e.MaxStar.high >>> 0).toNumber())), e.Consume) {
                    if (!Array.isArray(e.Consume)) throw TypeError(".FighterSpiritGraph_Config.Consume: array expected");
                    for (t.Consume = [], n = 0; n < e.Consume.length; ++n) {
                        if ("object" != typeof e.Consume[n]) throw TypeError(".FighterSpiritGraph_Config.Consume: object expected");
                        t.Consume[n] = a.IntArray_Config.fromObject(e.Consume[n])
                    }
                }
                if (e.CatalogIds) {
                    if (!Array.isArray(e.CatalogIds)) throw TypeError(".FighterSpiritGraph_Config.CatalogIds: array expected");
                    for (t.CatalogIds = [], n = 0; n < e.CatalogIds.length; ++n) i.Long ? (t.CatalogIds[n] = i.Long.fromValue(e.CatalogIds[n])).unsigned = !1 : "string" == typeof e.CatalogIds[n] ? t.CatalogIds[n] = parseInt(e.CatalogIds[n], 10) : "number" == typeof e.CatalogIds[n] ? t.CatalogIds[n] = e.CatalogIds[n] : "object" == typeof e.CatalogIds[n] && (t.CatalogIds[n] = new i.LongBits(e.CatalogIds[n].low >>> 0, e.CatalogIds[n].high >>> 0).toNumber())
                }
                return null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.FighterSpiritIds = [], n.Attrs = [], n.GraphValue = [], n.Consume = [], n.CatalogIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaxStar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxStar = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.FighterSpiritIds && e.FighterSpiritIds.length) {
                    n.FighterSpiritIds = [];
                    for (var r = 0; r < e.FighterSpiritIds.length; ++r) "number" == typeof e.FighterSpiritIds[r] ? n.FighterSpiritIds[r] = t.longs === String ? String(e.FighterSpiritIds[r]) : e.FighterSpiritIds[r] : n.FighterSpiritIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.FighterSpiritIds[r]) : t.longs === Number ? new i.LongBits(e.FighterSpiritIds[r].low >>> 0, e.FighterSpiritIds[r].high >>> 0).toNumber() : e.FighterSpiritIds[r]
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (e.GraphValue && e.GraphValue.length)
                    for (n.GraphValue = [], r = 0; r < e.GraphValue.length; ++r) "number" == typeof e.GraphValue[r] ? n.GraphValue[r] = t.longs === String ? String(e.GraphValue[r]) : e.GraphValue[r] : n.GraphValue[r] = t.longs === String ? i.Long.prototype.toString.call(e.GraphValue[r]) : t.longs === Number ? new i.LongBits(e.GraphValue[r].low >>> 0, e.GraphValue[r].high >>> 0).toNumber() : e.GraphValue[r];
                if (null != e.MaxStar && e.hasOwnProperty("MaxStar") && ("number" == typeof e.MaxStar ? n.MaxStar = t.longs === String ? String(e.MaxStar) : e.MaxStar : n.MaxStar = t.longs === String ? i.Long.prototype.toString.call(e.MaxStar) : t.longs === Number ? new i.LongBits(e.MaxStar.low >>> 0, e.MaxStar.high >>> 0).toNumber() : e.MaxStar), e.Consume && e.Consume.length)
                    for (n.Consume = [], r = 0; r < e.Consume.length; ++r) n.Consume[r] = a.IntArray_Config.toObject(e.Consume[r], t);
                if (e.CatalogIds && e.CatalogIds.length)
                    for (n.CatalogIds = [], r = 0; r < e.CatalogIds.length; ++r) "number" == typeof e.CatalogIds[r] ? n.CatalogIds[r] = t.longs === String ? String(e.CatalogIds[r]) : e.CatalogIds[r] : n.CatalogIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.CatalogIds[r]) : t.longs === Number ? new i.LongBits(e.CatalogIds[r].low >>> 0, e.CatalogIds[r].high >>> 0).toNumber() : e.CatalogIds[r];
                return null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FighterSpiritGraph_Config"
            }, e
        }(), a.FighterSpiritCatalog_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FighterSpiritCatalog_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.FighterSpiritCatalog_Config) return e;
                var t = new a.FighterSpiritCatalog_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FighterSpiritCatalog_Config"
            }, e
        }(), a.FighterSpiritItem_Config = function() {
            function e(e) {
                if (this.PromoteConsume = [], this.Decomposition = [], this.GraphIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PromoteConsume = i.emptyArray, e.prototype.PromoteItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Decomposition = i.emptyArray, e.prototype.GraphIds = i.emptyArray, e.prototype.ShopId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(16).int64(e.Quality), null != e.PromoteConsume && e.PromoteConsume.length)
                    for (var n = 0; n < e.PromoteConsume.length; ++n) a.IntArray_Config.encode(e.PromoteConsume[n], t.uint32(34).fork()).ldelim();
                if (null != e.PromoteItemId && Object.hasOwnProperty.call(e, "PromoteItemId") && t.uint32(40).int64(e.PromoteItemId), null != e.Decomposition && e.Decomposition.length)
                    for (n = 0; n < e.Decomposition.length; ++n) a.IntArray_Config.encode(e.Decomposition[n], t.uint32(50).fork()).ldelim();
                if (null != e.GraphIds && e.GraphIds.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.GraphIds.length; ++n) t.int64(e.GraphIds[n]);
                    t.ldelim()
                }
                return null != e.ShopId && Object.hasOwnProperty.call(e, "ShopId") && t.uint32(64).int64(e.ShopId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FighterSpiritItem_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Quality = e.int64();
                            break;
                        case 4:
                            r.PromoteConsume && r.PromoteConsume.length || (r.PromoteConsume = []), r.PromoteConsume.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.PromoteItemId = e.int64();
                            break;
                        case 6:
                            r.Decomposition && r.Decomposition.length || (r.Decomposition = []), r.Decomposition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            if (r.GraphIds && r.GraphIds.length || (r.GraphIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.GraphIds.push(e.int64());
                            else r.GraphIds.push(e.int64());
                            break;
                        case 8:
                            r.ShopId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.PromoteConsume && e.hasOwnProperty("PromoteConsume")) {
                    if (!Array.isArray(e.PromoteConsume)) return "PromoteConsume: array expected";
                    for (var t = 0; t < e.PromoteConsume.length; ++t)
                        if (n = a.IntArray_Config.verify(e.PromoteConsume[t])) return "PromoteConsume." + n
                }
                if (null != e.PromoteItemId && e.hasOwnProperty("PromoteItemId") && !(i.isInteger(e.PromoteItemId) || e.PromoteItemId && i.isInteger(e.PromoteItemId.low) && i.isInteger(e.PromoteItemId.high))) return "PromoteItemId: integer|Long expected";
                if (null != e.Decomposition && e.hasOwnProperty("Decomposition")) {
                    if (!Array.isArray(e.Decomposition)) return "Decomposition: array expected";
                    for (t = 0; t < e.Decomposition.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Decomposition[t])) return "Decomposition." + n
                    }
                }
                if (null != e.GraphIds && e.hasOwnProperty("GraphIds")) {
                    if (!Array.isArray(e.GraphIds)) return "GraphIds: array expected";
                    for (t = 0; t < e.GraphIds.length; ++t)
                        if (!(i.isInteger(e.GraphIds[t]) || e.GraphIds[t] && i.isInteger(e.GraphIds[t].low) && i.isInteger(e.GraphIds[t].high))) return "GraphIds: integer|Long[] expected"
                }
                return null != e.ShopId && e.hasOwnProperty("ShopId") && !(i.isInteger(e.ShopId) || e.ShopId && i.isInteger(e.ShopId.low) && i.isInteger(e.ShopId.high)) ? "ShopId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.FighterSpiritItem_Config) return e;
                var t = new a.FighterSpiritItem_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), e.PromoteConsume) {
                    if (!Array.isArray(e.PromoteConsume)) throw TypeError(".FighterSpiritItem_Config.PromoteConsume: array expected");
                    t.PromoteConsume = [];
                    for (var n = 0; n < e.PromoteConsume.length; ++n) {
                        if ("object" != typeof e.PromoteConsume[n]) throw TypeError(".FighterSpiritItem_Config.PromoteConsume: object expected");
                        t.PromoteConsume[n] = a.IntArray_Config.fromObject(e.PromoteConsume[n])
                    }
                }
                if (null != e.PromoteItemId && (i.Long ? (t.PromoteItemId = i.Long.fromValue(e.PromoteItemId)).unsigned = !1 : "string" == typeof e.PromoteItemId ? t.PromoteItemId = parseInt(e.PromoteItemId, 10) : "number" == typeof e.PromoteItemId ? t.PromoteItemId = e.PromoteItemId : "object" == typeof e.PromoteItemId && (t.PromoteItemId = new i.LongBits(e.PromoteItemId.low >>> 0, e.PromoteItemId.high >>> 0).toNumber())), e.Decomposition) {
                    if (!Array.isArray(e.Decomposition)) throw TypeError(".FighterSpiritItem_Config.Decomposition: array expected");
                    for (t.Decomposition = [], n = 0; n < e.Decomposition.length; ++n) {
                        if ("object" != typeof e.Decomposition[n]) throw TypeError(".FighterSpiritItem_Config.Decomposition: object expected");
                        t.Decomposition[n] = a.IntArray_Config.fromObject(e.Decomposition[n])
                    }
                }
                if (e.GraphIds) {
                    if (!Array.isArray(e.GraphIds)) throw TypeError(".FighterSpiritItem_Config.GraphIds: array expected");
                    for (t.GraphIds = [], n = 0; n < e.GraphIds.length; ++n) i.Long ? (t.GraphIds[n] = i.Long.fromValue(e.GraphIds[n])).unsigned = !1 : "string" == typeof e.GraphIds[n] ? t.GraphIds[n] = parseInt(e.GraphIds[n], 10) : "number" == typeof e.GraphIds[n] ? t.GraphIds[n] = e.GraphIds[n] : "object" == typeof e.GraphIds[n] && (t.GraphIds[n] = new i.LongBits(e.GraphIds[n].low >>> 0, e.GraphIds[n].high >>> 0).toNumber())
                }
                return null != e.ShopId && (i.Long ? (t.ShopId = i.Long.fromValue(e.ShopId)).unsigned = !1 : "string" == typeof e.ShopId ? t.ShopId = parseInt(e.ShopId, 10) : "number" == typeof e.ShopId ? t.ShopId = e.ShopId : "object" == typeof e.ShopId && (t.ShopId = new i.LongBits(e.ShopId.low >>> 0, e.ShopId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PromoteConsume = [], n.Decomposition = [], n.GraphIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PromoteItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PromoteItemId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ShopId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ShopId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), e.PromoteConsume && e.PromoteConsume.length) {
                    n.PromoteConsume = [];
                    for (var r = 0; r < e.PromoteConsume.length; ++r) n.PromoteConsume[r] = a.IntArray_Config.toObject(e.PromoteConsume[r], t)
                }
                if (null != e.PromoteItemId && e.hasOwnProperty("PromoteItemId") && ("number" == typeof e.PromoteItemId ? n.PromoteItemId = t.longs === String ? String(e.PromoteItemId) : e.PromoteItemId : n.PromoteItemId = t.longs === String ? i.Long.prototype.toString.call(e.PromoteItemId) : t.longs === Number ? new i.LongBits(e.PromoteItemId.low >>> 0, e.PromoteItemId.high >>> 0).toNumber() : e.PromoteItemId), e.Decomposition && e.Decomposition.length)
                    for (n.Decomposition = [], r = 0; r < e.Decomposition.length; ++r) n.Decomposition[r] = a.IntArray_Config.toObject(e.Decomposition[r], t);
                if (e.GraphIds && e.GraphIds.length)
                    for (n.GraphIds = [], r = 0; r < e.GraphIds.length; ++r) "number" == typeof e.GraphIds[r] ? n.GraphIds[r] = t.longs === String ? String(e.GraphIds[r]) : e.GraphIds[r] : n.GraphIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.GraphIds[r]) : t.longs === Number ? new i.LongBits(e.GraphIds[r].low >>> 0, e.GraphIds[r].high >>> 0).toNumber() : e.GraphIds[r];
                return null != e.ShopId && e.hasOwnProperty("ShopId") && ("number" == typeof e.ShopId ? n.ShopId = t.longs === String ? String(e.ShopId) : e.ShopId : n.ShopId = t.longs === String ? i.Long.prototype.toString.call(e.ShopId) : t.longs === Number ? new i.LongBits(e.ShopId.low >>> 0, e.ShopId.high >>> 0).toNumber() : e.ShopId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FighterSpiritItem_Config"
            }, e
        }(), a.EmojiImage_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsMultilang = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ImageType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.IsMultilang && Object.hasOwnProperty.call(e, "IsMultilang") && t.uint32(32).int64(e.IsMultilang), null != e.ImageType && Object.hasOwnProperty.call(e, "ImageType") && t.uint32(40).int64(e.ImageType), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.EmojiImage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.IsMultilang = e.int64();
                            break;
                        case 5:
                            r.ImageType = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.IsMultilang && e.hasOwnProperty("IsMultilang") && !(i.isInteger(e.IsMultilang) || e.IsMultilang && i.isInteger(e.IsMultilang.low) && i.isInteger(e.IsMultilang.high)) ? "IsMultilang: integer|Long expected" : null != e.ImageType && e.hasOwnProperty("ImageType") && !(i.isInteger(e.ImageType) || e.ImageType && i.isInteger(e.ImageType.low) && i.isInteger(e.ImageType.high)) ? "ImageType: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.EmojiImage_Config) return e;
                var t = new a.EmojiImage_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.IsMultilang && (i.Long ? (t.IsMultilang = i.Long.fromValue(e.IsMultilang)).unsigned = !1 : "string" == typeof e.IsMultilang ? t.IsMultilang = parseInt(e.IsMultilang, 10) : "number" == typeof e.IsMultilang ? t.IsMultilang = e.IsMultilang : "object" == typeof e.IsMultilang && (t.IsMultilang = new i.LongBits(e.IsMultilang.low >>> 0, e.IsMultilang.high >>> 0).toNumber())), null != e.ImageType && (i.Long ? (t.ImageType = i.Long.fromValue(e.ImageType)).unsigned = !1 : "string" == typeof e.ImageType ? t.ImageType = parseInt(e.ImageType, 10) : "number" == typeof e.ImageType ? t.ImageType = e.ImageType : "object" == typeof e.ImageType && (t.ImageType = new i.LongBits(e.ImageType.low >>> 0, e.ImageType.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.IsMultilang = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsMultilang = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ImageType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ImageType = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.IsMultilang && e.hasOwnProperty("IsMultilang") && ("number" == typeof e.IsMultilang ? n.IsMultilang = t.longs === String ? String(e.IsMultilang) : e.IsMultilang : n.IsMultilang = t.longs === String ? i.Long.prototype.toString.call(e.IsMultilang) : t.longs === Number ? new i.LongBits(e.IsMultilang.low >>> 0, e.IsMultilang.high >>> 0).toNumber() : e.IsMultilang), null != e.ImageType && e.hasOwnProperty("ImageType") && ("number" == typeof e.ImageType ? n.ImageType = t.longs === String ? String(e.ImageType) : e.ImageType : n.ImageType = t.longs === String ? i.Long.prototype.toString.call(e.ImageType) : t.longs === Number ? new i.LongBits(e.ImageType.low >>> 0, e.ImageType.high >>> 0).toNumber() : e.ImageType), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/EmojiImage_Config"
            }, e
        }(), a.EmojiType_Config = function() {
            function e(e) {
                if (this.EmojiIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.EmojiIds = i.emptyArray, e.prototype.IsFree = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(18).string(e.Icon), null != e.EmojiIds && e.EmojiIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.EmojiIds.length; ++n) t.int64(e.EmojiIds[n]);
                    t.ldelim()
                }
                return null != e.IsFree && Object.hasOwnProperty.call(e, "IsFree") && t.uint32(40).int64(e.IsFree), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.EmojiType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Icon = e.string();
                            break;
                        case 3:
                            if (r.EmojiIds && r.EmojiIds.length || (r.EmojiIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.EmojiIds.push(e.int64());
                            else r.EmojiIds.push(e.int64());
                            break;
                        case 5:
                            r.IsFree = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.EmojiIds && e.hasOwnProperty("EmojiIds")) {
                    if (!Array.isArray(e.EmojiIds)) return "EmojiIds: array expected";
                    for (var t = 0; t < e.EmojiIds.length; ++t)
                        if (!(i.isInteger(e.EmojiIds[t]) || e.EmojiIds[t] && i.isInteger(e.EmojiIds[t].low) && i.isInteger(e.EmojiIds[t].high))) return "EmojiIds: integer|Long[] expected"
                }
                return null != e.IsFree && e.hasOwnProperty("IsFree") && !(i.isInteger(e.IsFree) || e.IsFree && i.isInteger(e.IsFree.low) && i.isInteger(e.IsFree.high)) ? "IsFree: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.EmojiType_Config) return e;
                var t = new a.EmojiType_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), e.EmojiIds) {
                    if (!Array.isArray(e.EmojiIds)) throw TypeError(".EmojiType_Config.EmojiIds: array expected");
                    t.EmojiIds = [];
                    for (var n = 0; n < e.EmojiIds.length; ++n) i.Long ? (t.EmojiIds[n] = i.Long.fromValue(e.EmojiIds[n])).unsigned = !1 : "string" == typeof e.EmojiIds[n] ? t.EmojiIds[n] = parseInt(e.EmojiIds[n], 10) : "number" == typeof e.EmojiIds[n] ? t.EmojiIds[n] = e.EmojiIds[n] : "object" == typeof e.EmojiIds[n] && (t.EmojiIds[n] = new i.LongBits(e.EmojiIds[n].low >>> 0, e.EmojiIds[n].high >>> 0).toNumber())
                }
                return null != e.IsFree && (i.Long ? (t.IsFree = i.Long.fromValue(e.IsFree)).unsigned = !1 : "string" == typeof e.IsFree ? t.IsFree = parseInt(e.IsFree, 10) : "number" == typeof e.IsFree ? t.IsFree = e.IsFree : "object" == typeof e.IsFree && (t.IsFree = new i.LongBits(e.IsFree.low >>> 0, e.IsFree.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.EmojiIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.IsFree = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.IsFree = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), e.EmojiIds && e.EmojiIds.length) {
                    n.EmojiIds = [];
                    for (var r = 0; r < e.EmojiIds.length; ++r) "number" == typeof e.EmojiIds[r] ? n.EmojiIds[r] = t.longs === String ? String(e.EmojiIds[r]) : e.EmojiIds[r] : n.EmojiIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.EmojiIds[r]) : t.longs === Number ? new i.LongBits(e.EmojiIds[r].low >>> 0, e.EmojiIds[r].high >>> 0).toNumber() : e.EmojiIds[r]
                }
                return null != e.IsFree && e.hasOwnProperty("IsFree") && ("number" == typeof e.IsFree ? n.IsFree = t.longs === String ? String(e.IsFree) : e.IsFree : n.IsFree = t.longs === String ? i.Long.prototype.toString.call(e.IsFree) : t.longs === Number ? new i.LongBits(e.IsFree.low >>> 0, e.IsFree.high >>> 0).toNumber() : e.IsFree), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/EmojiType_Config"
            }, e
        }(), a.GemGallerySlot_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Requirements = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Requirements && Object.hasOwnProperty.call(e, "Requirements") && t.uint32(24).int64(e.Requirements), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GemGallerySlot_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.Requirements = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.Requirements && e.hasOwnProperty("Requirements") && !(i.isInteger(e.Requirements) || e.Requirements && i.isInteger(e.Requirements.low) && i.isInteger(e.Requirements.high)) ? "Requirements: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GemGallerySlot_Config) return e;
                var t = new a.GemGallerySlot_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Requirements && (i.Long ? (t.Requirements = i.Long.fromValue(e.Requirements)).unsigned = !1 : "string" == typeof e.Requirements ? t.Requirements = parseInt(e.Requirements, 10) : "number" == typeof e.Requirements ? t.Requirements = e.Requirements : "object" == typeof e.Requirements && (t.Requirements = new i.LongBits(e.Requirements.low >>> 0, e.Requirements.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Requirements = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Requirements = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Requirements && e.hasOwnProperty("Requirements") && ("number" == typeof e.Requirements ? n.Requirements = t.longs === String ? String(e.Requirements) : e.Requirements : n.Requirements = t.longs === String ? i.Long.prototype.toString.call(e.Requirements) : t.longs === Number ? new i.LongBits(e.Requirements.low >>> 0, e.Requirements.high >>> 0).toNumber() : e.Requirements), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GemGallerySlot_Config"
            }, e
        }(), a.GemGalleryLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GemGalleryLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.GemGalleryLevel_Config) return e;
                var t = new a.GemGalleryLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".GemGalleryLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".GemGalleryLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".GemGalleryLevel_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".GemGalleryLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GemGalleryLevel_Config"
            }, e
        }(), a.ChaosTemple_Config = function() {
            function e(e) {
                if (this.TeamAttrs = [], this.ResonanceAttrs = [], this.ResonanceCondition = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TeamAttrs = i.emptyArray, e.prototype.ResonanceAttrs = i.emptyArray, e.prototype.ResonanceCondition = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.TeamAttrs && e.TeamAttrs.length)
                    for (var n = 0; n < e.TeamAttrs.length; ++n) a.IntArray_Config.encode(e.TeamAttrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.ResonanceAttrs && e.ResonanceAttrs.length)
                    for (n = 0; n < e.ResonanceAttrs.length; ++n) a.IntArray_Config.encode(e.ResonanceAttrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.ResonanceCondition && e.ResonanceCondition.length)
                    for (n = 0; n < e.ResonanceCondition.length; ++n) a.IntArray_Config.encode(e.ResonanceCondition[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ChaosTemple_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.TeamAttrs && r.TeamAttrs.length || (r.TeamAttrs = []), r.TeamAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ResonanceAttrs && r.ResonanceAttrs.length || (r.ResonanceAttrs = []), r.ResonanceAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.ResonanceCondition && r.ResonanceCondition.length || (r.ResonanceCondition = []), r.ResonanceCondition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.TeamAttrs && e.hasOwnProperty("TeamAttrs")) {
                    if (!Array.isArray(e.TeamAttrs)) return "TeamAttrs: array expected";
                    for (var t = 0; t < e.TeamAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TeamAttrs[t])) return "TeamAttrs." + n
                }
                if (null != e.ResonanceAttrs && e.hasOwnProperty("ResonanceAttrs")) {
                    if (!Array.isArray(e.ResonanceAttrs)) return "ResonanceAttrs: array expected";
                    for (t = 0; t < e.ResonanceAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.ResonanceAttrs[t])) return "ResonanceAttrs." + n
                }
                if (null != e.ResonanceCondition && e.hasOwnProperty("ResonanceCondition")) {
                    if (!Array.isArray(e.ResonanceCondition)) return "ResonanceCondition: array expected";
                    for (t = 0; t < e.ResonanceCondition.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ResonanceCondition[t])) return "ResonanceCondition." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ChaosTemple_Config) return e;
                var t = new a.ChaosTemple_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.TeamAttrs) {
                    if (!Array.isArray(e.TeamAttrs)) throw TypeError(".ChaosTemple_Config.TeamAttrs: array expected");
                    t.TeamAttrs = [];
                    for (var n = 0; n < e.TeamAttrs.length; ++n) {
                        if ("object" != typeof e.TeamAttrs[n]) throw TypeError(".ChaosTemple_Config.TeamAttrs: object expected");
                        t.TeamAttrs[n] = a.IntArray_Config.fromObject(e.TeamAttrs[n])
                    }
                }
                if (e.ResonanceAttrs) {
                    if (!Array.isArray(e.ResonanceAttrs)) throw TypeError(".ChaosTemple_Config.ResonanceAttrs: array expected");
                    for (t.ResonanceAttrs = [], n = 0; n < e.ResonanceAttrs.length; ++n) {
                        if ("object" != typeof e.ResonanceAttrs[n]) throw TypeError(".ChaosTemple_Config.ResonanceAttrs: object expected");
                        t.ResonanceAttrs[n] = a.IntArray_Config.fromObject(e.ResonanceAttrs[n])
                    }
                }
                if (e.ResonanceCondition) {
                    if (!Array.isArray(e.ResonanceCondition)) throw TypeError(".ChaosTemple_Config.ResonanceCondition: array expected");
                    for (t.ResonanceCondition = [], n = 0; n < e.ResonanceCondition.length; ++n) {
                        if ("object" != typeof e.ResonanceCondition[n]) throw TypeError(".ChaosTemple_Config.ResonanceCondition: object expected");
                        t.ResonanceCondition[n] = a.IntArray_Config.fromObject(e.ResonanceCondition[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.TeamAttrs = [], n.ResonanceAttrs = [], n.ResonanceCondition = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.TeamAttrs && e.TeamAttrs.length) {
                    n.TeamAttrs = [];
                    for (var r = 0; r < e.TeamAttrs.length; ++r) n.TeamAttrs[r] = a.IntArray_Config.toObject(e.TeamAttrs[r], t)
                }
                if (e.ResonanceAttrs && e.ResonanceAttrs.length)
                    for (n.ResonanceAttrs = [], r = 0; r < e.ResonanceAttrs.length; ++r) n.ResonanceAttrs[r] = a.IntArray_Config.toObject(e.ResonanceAttrs[r], t);
                if (e.ResonanceCondition && e.ResonanceCondition.length)
                    for (n.ResonanceCondition = [], r = 0; r < e.ResonanceCondition.length; ++r) n.ResonanceCondition[r] = a.IntArray_Config.toObject(e.ResonanceCondition[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ChaosTemple_Config"
            }, e
        }(), a.StarGarrison_Config = function() {
            function e(e) {
                if (this.SlotIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SlotIds = i.emptyArray, e.prototype.Param = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.SlotIds && e.SlotIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.SlotIds.length; ++n) t.int64(e.SlotIds[n]);
                    t.ldelim()
                }
                return null != e.Param && Object.hasOwnProperty.call(e, "Param") && t.uint32(32).int64(e.Param), null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(40).int64(e.SortId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarGarrison_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            if (r.SlotIds && r.SlotIds.length || (r.SlotIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.SlotIds.push(e.int64());
                            else r.SlotIds.push(e.int64());
                            break;
                        case 4:
                            r.Param = e.int64();
                            break;
                        case 5:
                            r.SortId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.SlotIds && e.hasOwnProperty("SlotIds")) {
                    if (!Array.isArray(e.SlotIds)) return "SlotIds: array expected";
                    for (var t = 0; t < e.SlotIds.length; ++t)
                        if (!(i.isInteger(e.SlotIds[t]) || e.SlotIds[t] && i.isInteger(e.SlotIds[t].low) && i.isInteger(e.SlotIds[t].high))) return "SlotIds: integer|Long[] expected"
                }
                return null != e.Param && e.hasOwnProperty("Param") && !(i.isInteger(e.Param) || e.Param && i.isInteger(e.Param.low) && i.isInteger(e.Param.high)) ? "Param: integer|Long expected" : null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarGarrison_Config) return e;
                var t = new a.StarGarrison_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.SlotIds) {
                    if (!Array.isArray(e.SlotIds)) throw TypeError(".StarGarrison_Config.SlotIds: array expected");
                    t.SlotIds = [];
                    for (var n = 0; n < e.SlotIds.length; ++n) i.Long ? (t.SlotIds[n] = i.Long.fromValue(e.SlotIds[n])).unsigned = !1 : "string" == typeof e.SlotIds[n] ? t.SlotIds[n] = parseInt(e.SlotIds[n], 10) : "number" == typeof e.SlotIds[n] ? t.SlotIds[n] = e.SlotIds[n] : "object" == typeof e.SlotIds[n] && (t.SlotIds[n] = new i.LongBits(e.SlotIds[n].low >>> 0, e.SlotIds[n].high >>> 0).toNumber())
                }
                return null != e.Param && (i.Long ? (t.Param = i.Long.fromValue(e.Param)).unsigned = !1 : "string" == typeof e.Param ? t.Param = parseInt(e.Param, 10) : "number" == typeof e.Param ? t.Param = e.Param : "object" == typeof e.Param && (t.Param = new i.LongBits(e.Param.low >>> 0, e.Param.high >>> 0).toNumber())), null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.SlotIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Param = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Param = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.SlotIds && e.SlotIds.length) {
                    n.SlotIds = [];
                    for (var r = 0; r < e.SlotIds.length; ++r) "number" == typeof e.SlotIds[r] ? n.SlotIds[r] = t.longs === String ? String(e.SlotIds[r]) : e.SlotIds[r] : n.SlotIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.SlotIds[r]) : t.longs === Number ? new i.LongBits(e.SlotIds[r].low >>> 0, e.SlotIds[r].high >>> 0).toNumber() : e.SlotIds[r]
                }
                return null != e.Param && e.hasOwnProperty("Param") && ("number" == typeof e.Param ? n.Param = t.longs === String ? String(e.Param) : e.Param : n.Param = t.longs === String ? i.Long.prototype.toString.call(e.Param) : t.longs === Number ? new i.LongBits(e.Param.low >>> 0, e.Param.high >>> 0).toNumber() : e.Param), null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarGarrison_Config"
            }, e
        }(), a.StarGarrisonSlot_Config = function() {
            function e(e) {
                if (this.Condition = [], this.Attrs = [], this.ExtraAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Condition = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.ExtraAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Condition && e.Condition.length)
                    for (var n = 0; n < e.Condition.length; ++n) a.IntArray_Config.encode(e.Condition[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.ExtraAttrs && e.ExtraAttrs.length)
                    for (n = 0; n < e.ExtraAttrs.length; ++n) a.IntArray_Config.encode(e.ExtraAttrs[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarGarrisonSlot_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Condition && r.Condition.length || (r.Condition = []), r.Condition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ExtraAttrs && r.ExtraAttrs.length || (r.ExtraAttrs = []), r.ExtraAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Condition && e.hasOwnProperty("Condition")) {
                    if (!Array.isArray(e.Condition)) return "Condition: array expected";
                    for (var t = 0; t < e.Condition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Condition[t])) return "Condition." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.ExtraAttrs && e.hasOwnProperty("ExtraAttrs")) {
                    if (!Array.isArray(e.ExtraAttrs)) return "ExtraAttrs: array expected";
                    for (t = 0; t < e.ExtraAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ExtraAttrs[t])) return "ExtraAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarGarrisonSlot_Config) return e;
                var t = new a.StarGarrisonSlot_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Condition) {
                    if (!Array.isArray(e.Condition)) throw TypeError(".StarGarrisonSlot_Config.Condition: array expected");
                    t.Condition = [];
                    for (var n = 0; n < e.Condition.length; ++n) {
                        if ("object" != typeof e.Condition[n]) throw TypeError(".StarGarrisonSlot_Config.Condition: object expected");
                        t.Condition[n] = a.IntArray_Config.fromObject(e.Condition[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".StarGarrisonSlot_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".StarGarrisonSlot_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.ExtraAttrs) {
                    if (!Array.isArray(e.ExtraAttrs)) throw TypeError(".StarGarrisonSlot_Config.ExtraAttrs: array expected");
                    for (t.ExtraAttrs = [], n = 0; n < e.ExtraAttrs.length; ++n) {
                        if ("object" != typeof e.ExtraAttrs[n]) throw TypeError(".StarGarrisonSlot_Config.ExtraAttrs: object expected");
                        t.ExtraAttrs[n] = a.IntArray_Config.fromObject(e.ExtraAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Condition = [], n.Attrs = [], n.ExtraAttrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Condition && e.Condition.length) {
                    n.Condition = [];
                    for (var r = 0; r < e.Condition.length; ++r) n.Condition[r] = a.IntArray_Config.toObject(e.Condition[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (e.ExtraAttrs && e.ExtraAttrs.length)
                    for (n.ExtraAttrs = [], r = 0; r < e.ExtraAttrs.length; ++r) n.ExtraAttrs[r] = a.IntArray_Config.toObject(e.ExtraAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarGarrisonSlot_Config"
            }, e
        }(), a.StarGarrisonAttrs_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.ExtraAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Grading = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.ExtraAttrs = i.emptyArray, e.prototype.Camp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(16).int64(e.Star), null != e.Grading && Object.hasOwnProperty.call(e, "Grading") && t.uint32(24).int64(e.Grading), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.ExtraAttrs && e.ExtraAttrs.length)
                    for (n = 0; n < e.ExtraAttrs.length; ++n) a.IntArray_Config.encode(e.ExtraAttrs[n], t.uint32(42).fork()).ldelim();
                return null != e.Camp && Object.hasOwnProperty.call(e, "Camp") && t.uint32(48).int64(e.Camp), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(56).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarGarrisonAttrs_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Star = e.int64();
                            break;
                        case 3:
                            r.Grading = e.int64();
                            break;
                        case 4:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.ExtraAttrs && r.ExtraAttrs.length || (r.ExtraAttrs = []), r.ExtraAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Camp = e.int64();
                            break;
                        case 7:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high))) return "Star: integer|Long expected";
                if (null != e.Grading && e.hasOwnProperty("Grading") && !(i.isInteger(e.Grading) || e.Grading && i.isInteger(e.Grading.low) && i.isInteger(e.Grading.high))) return "Grading: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.ExtraAttrs && e.hasOwnProperty("ExtraAttrs")) {
                    if (!Array.isArray(e.ExtraAttrs)) return "ExtraAttrs: array expected";
                    for (t = 0; t < e.ExtraAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ExtraAttrs[t])) return "ExtraAttrs." + n
                    }
                }
                return null != e.Camp && e.hasOwnProperty("Camp") && !(i.isInteger(e.Camp) || e.Camp && i.isInteger(e.Camp.low) && i.isInteger(e.Camp.high)) ? "Camp: integer|Long expected" : null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarGarrisonAttrs_Config) return e;
                var t = new a.StarGarrisonAttrs_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), null != e.Grading && (i.Long ? (t.Grading = i.Long.fromValue(e.Grading)).unsigned = !1 : "string" == typeof e.Grading ? t.Grading = parseInt(e.Grading, 10) : "number" == typeof e.Grading ? t.Grading = e.Grading : "object" == typeof e.Grading && (t.Grading = new i.LongBits(e.Grading.low >>> 0, e.Grading.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".StarGarrisonAttrs_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".StarGarrisonAttrs_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.ExtraAttrs) {
                    if (!Array.isArray(e.ExtraAttrs)) throw TypeError(".StarGarrisonAttrs_Config.ExtraAttrs: array expected");
                    for (t.ExtraAttrs = [], n = 0; n < e.ExtraAttrs.length; ++n) {
                        if ("object" != typeof e.ExtraAttrs[n]) throw TypeError(".StarGarrisonAttrs_Config.ExtraAttrs: object expected");
                        t.ExtraAttrs[n] = a.IntArray_Config.fromObject(e.ExtraAttrs[n])
                    }
                }
                return null != e.Camp && (i.Long ? (t.Camp = i.Long.fromValue(e.Camp)).unsigned = !1 : "string" == typeof e.Camp ? t.Camp = parseInt(e.Camp, 10) : "number" == typeof e.Camp ? t.Camp = e.Camp : "object" == typeof e.Camp && (t.Camp = new i.LongBits(e.Camp.low >>> 0, e.Camp.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.ExtraAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Grading = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Grading = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Camp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Camp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), null != e.Grading && e.hasOwnProperty("Grading") && ("number" == typeof e.Grading ? n.Grading = t.longs === String ? String(e.Grading) : e.Grading : n.Grading = t.longs === String ? i.Long.prototype.toString.call(e.Grading) : t.longs === Number ? new i.LongBits(e.Grading.low >>> 0, e.Grading.high >>> 0).toNumber() : e.Grading), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.ExtraAttrs && e.ExtraAttrs.length)
                    for (n.ExtraAttrs = [], r = 0; r < e.ExtraAttrs.length; ++r) n.ExtraAttrs[r] = a.IntArray_Config.toObject(e.ExtraAttrs[r], t);
                return null != e.Camp && e.hasOwnProperty("Camp") && ("number" == typeof e.Camp ? n.Camp = t.longs === String ? String(e.Camp) : e.Camp : n.Camp = t.longs === String ? i.Long.prototype.toString.call(e.Camp) : t.longs === Number ? new i.LongBits(e.Camp.low >>> 0, e.Camp.high >>> 0).toNumber() : e.Camp), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarGarrisonAttrs_Config"
            }, e
        }(), a.HolyEquipGalleryLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs1 = [], this.Attrs2 = [], this.Attrs3 = [], this.Attrs4 = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Attrs1 = i.emptyArray, e.prototype.Attrs2 = i.emptyArray, e.prototype.Attrs3 = i.emptyArray, e.prototype.Attrs4 = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs1 && e.Attrs1.length)
                    for (n = 0; n < e.Attrs1.length; ++n) a.IntArray_Config.encode(e.Attrs1[n], t.uint32(26).fork()).ldelim();
                if (null != e.Attrs2 && e.Attrs2.length)
                    for (n = 0; n < e.Attrs2.length; ++n) a.IntArray_Config.encode(e.Attrs2[n], t.uint32(34).fork()).ldelim();
                if (null != e.Attrs3 && e.Attrs3.length)
                    for (n = 0; n < e.Attrs3.length; ++n) a.IntArray_Config.encode(e.Attrs3[n], t.uint32(42).fork()).ldelim();
                if (null != e.Attrs4 && e.Attrs4.length)
                    for (n = 0; n < e.Attrs4.length; ++n) a.IntArray_Config.encode(e.Attrs4[n], t.uint32(50).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipGalleryLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs1 && r.Attrs1.length || (r.Attrs1 = []), r.Attrs1.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Attrs2 && r.Attrs2.length || (r.Attrs2 = []), r.Attrs2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Attrs3 && r.Attrs3.length || (r.Attrs3 = []), r.Attrs3.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Attrs4 && r.Attrs4.length || (r.Attrs4 = []), r.Attrs4.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Attrs1 && e.hasOwnProperty("Attrs1")) {
                    if (!Array.isArray(e.Attrs1)) return "Attrs1: array expected";
                    for (t = 0; t < e.Attrs1.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs1[t])) return "Attrs1." + n
                }
                if (null != e.Attrs2 && e.hasOwnProperty("Attrs2")) {
                    if (!Array.isArray(e.Attrs2)) return "Attrs2: array expected";
                    for (t = 0; t < e.Attrs2.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs2[t])) return "Attrs2." + n
                }
                if (null != e.Attrs3 && e.hasOwnProperty("Attrs3")) {
                    if (!Array.isArray(e.Attrs3)) return "Attrs3: array expected";
                    for (t = 0; t < e.Attrs3.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs3[t])) return "Attrs3." + n
                }
                if (null != e.Attrs4 && e.hasOwnProperty("Attrs4")) {
                    if (!Array.isArray(e.Attrs4)) return "Attrs4: array expected";
                    for (t = 0; t < e.Attrs4.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs4[t])) return "Attrs4." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipGalleryLevel_Config) return e;
                var t = new a.HolyEquipGalleryLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".HolyEquipGalleryLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".HolyEquipGalleryLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Attrs1) {
                    if (!Array.isArray(e.Attrs1)) throw TypeError(".HolyEquipGalleryLevel_Config.Attrs1: array expected");
                    for (t.Attrs1 = [], n = 0; n < e.Attrs1.length; ++n) {
                        if ("object" != typeof e.Attrs1[n]) throw TypeError(".HolyEquipGalleryLevel_Config.Attrs1: object expected");
                        t.Attrs1[n] = a.IntArray_Config.fromObject(e.Attrs1[n])
                    }
                }
                if (e.Attrs2) {
                    if (!Array.isArray(e.Attrs2)) throw TypeError(".HolyEquipGalleryLevel_Config.Attrs2: array expected");
                    for (t.Attrs2 = [], n = 0; n < e.Attrs2.length; ++n) {
                        if ("object" != typeof e.Attrs2[n]) throw TypeError(".HolyEquipGalleryLevel_Config.Attrs2: object expected");
                        t.Attrs2[n] = a.IntArray_Config.fromObject(e.Attrs2[n])
                    }
                }
                if (e.Attrs3) {
                    if (!Array.isArray(e.Attrs3)) throw TypeError(".HolyEquipGalleryLevel_Config.Attrs3: array expected");
                    for (t.Attrs3 = [], n = 0; n < e.Attrs3.length; ++n) {
                        if ("object" != typeof e.Attrs3[n]) throw TypeError(".HolyEquipGalleryLevel_Config.Attrs3: object expected");
                        t.Attrs3[n] = a.IntArray_Config.fromObject(e.Attrs3[n])
                    }
                }
                if (e.Attrs4) {
                    if (!Array.isArray(e.Attrs4)) throw TypeError(".HolyEquipGalleryLevel_Config.Attrs4: array expected");
                    for (t.Attrs4 = [], n = 0; n < e.Attrs4.length; ++n) {
                        if ("object" != typeof e.Attrs4[n]) throw TypeError(".HolyEquipGalleryLevel_Config.Attrs4: object expected");
                        t.Attrs4[n] = a.IntArray_Config.fromObject(e.Attrs4[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs1 = [], n.Attrs2 = [], n.Attrs3 = [], n.Attrs4 = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Attrs1 && e.Attrs1.length)
                    for (n.Attrs1 = [], r = 0; r < e.Attrs1.length; ++r) n.Attrs1[r] = a.IntArray_Config.toObject(e.Attrs1[r], t);
                if (e.Attrs2 && e.Attrs2.length)
                    for (n.Attrs2 = [], r = 0; r < e.Attrs2.length; ++r) n.Attrs2[r] = a.IntArray_Config.toObject(e.Attrs2[r], t);
                if (e.Attrs3 && e.Attrs3.length)
                    for (n.Attrs3 = [], r = 0; r < e.Attrs3.length; ++r) n.Attrs3[r] = a.IntArray_Config.toObject(e.Attrs3[r], t);
                if (e.Attrs4 && e.Attrs4.length)
                    for (n.Attrs4 = [], r = 0; r < e.Attrs4.length; ++r) n.Attrs4[r] = a.IntArray_Config.toObject(e.Attrs4[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipGalleryLevel_Config"
            }, e
        }(), a.HolyEquipGallerySlot_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Requirements = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Requirements && Object.hasOwnProperty.call(e, "Requirements") && t.uint32(24).int64(e.Requirements), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipGallerySlot_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.Requirements = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.Requirements && e.hasOwnProperty("Requirements") && !(i.isInteger(e.Requirements) || e.Requirements && i.isInteger(e.Requirements.low) && i.isInteger(e.Requirements.high)) ? "Requirements: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipGallerySlot_Config) return e;
                var t = new a.HolyEquipGallerySlot_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Requirements && (i.Long ? (t.Requirements = i.Long.fromValue(e.Requirements)).unsigned = !1 : "string" == typeof e.Requirements ? t.Requirements = parseInt(e.Requirements, 10) : "number" == typeof e.Requirements ? t.Requirements = e.Requirements : "object" == typeof e.Requirements && (t.Requirements = new i.LongBits(e.Requirements.low >>> 0, e.Requirements.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Requirements = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Requirements = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Requirements && e.hasOwnProperty("Requirements") && ("number" == typeof e.Requirements ? n.Requirements = t.longs === String ? String(e.Requirements) : e.Requirements : n.Requirements = t.longs === String ? i.Long.prototype.toString.call(e.Requirements) : t.longs === Number ? new i.LongBits(e.Requirements.low >>> 0, e.Requirements.high >>> 0).toNumber() : e.Requirements), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipGallerySlot_Config"
            }, e
        }(), a.HolyEquipResonance_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Requirements = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Requirements && Object.hasOwnProperty.call(e, "Requirements") && t.uint32(16).int64(e.Requirements), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipResonance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Requirements = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Requirements && e.hasOwnProperty("Requirements") && !(i.isInteger(e.Requirements) || e.Requirements && i.isInteger(e.Requirements.low) && i.isInteger(e.Requirements.high))) return "Requirements: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipResonance_Config) return e;
                var t = new a.HolyEquipResonance_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Requirements && (i.Long ? (t.Requirements = i.Long.fromValue(e.Requirements)).unsigned = !1 : "string" == typeof e.Requirements ? t.Requirements = parseInt(e.Requirements, 10) : "number" == typeof e.Requirements ? t.Requirements = e.Requirements : "object" == typeof e.Requirements && (t.Requirements = new i.LongBits(e.Requirements.low >>> 0, e.Requirements.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HolyEquipResonance_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HolyEquipResonance_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Requirements = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Requirements = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Requirements && e.hasOwnProperty("Requirements") && ("number" == typeof e.Requirements ? n.Requirements = t.longs === String ? String(e.Requirements) : e.Requirements : n.Requirements = t.longs === String ? i.Long.prototype.toString.call(e.Requirements) : t.longs === Number ? new i.LongBits(e.Requirements.low >>> 0, e.Requirements.high >>> 0).toNumber() : e.Requirements), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipResonance_Config"
            }, e
        }(), a.HolyEquipSlotAddon_Config = function() {
            function e(e) {
                if (this.AllAttrs = [], this.SelfAttrs = [], this.AllAttrIds = [], this.SelfAttrIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AllAttrs = i.emptyArray, e.prototype.SelfAttrs = i.emptyArray, e.prototype.AllAttrIds = i.emptyArray, e.prototype.SelfAttrIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.AllAttrs && e.AllAttrs.length)
                    for (var n = 0; n < e.AllAttrs.length; ++n) a.IntArray_Config.encode(e.AllAttrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.SelfAttrs && e.SelfAttrs.length)
                    for (n = 0; n < e.SelfAttrs.length; ++n) a.IntArray_Config.encode(e.SelfAttrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.AllAttrIds && e.AllAttrIds.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.AllAttrIds.length; ++n) t.int64(e.AllAttrIds[n]);
                    t.ldelim()
                }
                if (null != e.SelfAttrIds && e.SelfAttrIds.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.SelfAttrIds.length; ++n) t.int64(e.SelfAttrIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipSlotAddon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.AllAttrs && r.AllAttrs.length || (r.AllAttrs = []), r.AllAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.SelfAttrs && r.SelfAttrs.length || (r.SelfAttrs = []), r.SelfAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            if (r.AllAttrIds && r.AllAttrIds.length || (r.AllAttrIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AllAttrIds.push(e.int64());
                            else r.AllAttrIds.push(e.int64());
                            break;
                        case 6:
                            if (r.SelfAttrIds && r.SelfAttrIds.length || (r.SelfAttrIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.SelfAttrIds.push(e.int64());
                            else r.SelfAttrIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.AllAttrs && e.hasOwnProperty("AllAttrs")) {
                    if (!Array.isArray(e.AllAttrs)) return "AllAttrs: array expected";
                    for (var t = 0; t < e.AllAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.AllAttrs[t])) return "AllAttrs." + n
                }
                if (null != e.SelfAttrs && e.hasOwnProperty("SelfAttrs")) {
                    if (!Array.isArray(e.SelfAttrs)) return "SelfAttrs: array expected";
                    for (t = 0; t < e.SelfAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.SelfAttrs[t])) return "SelfAttrs." + n
                    }
                }
                if (null != e.AllAttrIds && e.hasOwnProperty("AllAttrIds")) {
                    if (!Array.isArray(e.AllAttrIds)) return "AllAttrIds: array expected";
                    for (t = 0; t < e.AllAttrIds.length; ++t)
                        if (!(i.isInteger(e.AllAttrIds[t]) || e.AllAttrIds[t] && i.isInteger(e.AllAttrIds[t].low) && i.isInteger(e.AllAttrIds[t].high))) return "AllAttrIds: integer|Long[] expected"
                }
                if (null != e.SelfAttrIds && e.hasOwnProperty("SelfAttrIds")) {
                    if (!Array.isArray(e.SelfAttrIds)) return "SelfAttrIds: array expected";
                    for (t = 0; t < e.SelfAttrIds.length; ++t)
                        if (!(i.isInteger(e.SelfAttrIds[t]) || e.SelfAttrIds[t] && i.isInteger(e.SelfAttrIds[t].low) && i.isInteger(e.SelfAttrIds[t].high))) return "SelfAttrIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipSlotAddon_Config) return e;
                var t = new a.HolyEquipSlotAddon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.AllAttrs) {
                    if (!Array.isArray(e.AllAttrs)) throw TypeError(".HolyEquipSlotAddon_Config.AllAttrs: array expected");
                    t.AllAttrs = [];
                    for (var n = 0; n < e.AllAttrs.length; ++n) {
                        if ("object" != typeof e.AllAttrs[n]) throw TypeError(".HolyEquipSlotAddon_Config.AllAttrs: object expected");
                        t.AllAttrs[n] = a.IntArray_Config.fromObject(e.AllAttrs[n])
                    }
                }
                if (e.SelfAttrs) {
                    if (!Array.isArray(e.SelfAttrs)) throw TypeError(".HolyEquipSlotAddon_Config.SelfAttrs: array expected");
                    for (t.SelfAttrs = [], n = 0; n < e.SelfAttrs.length; ++n) {
                        if ("object" != typeof e.SelfAttrs[n]) throw TypeError(".HolyEquipSlotAddon_Config.SelfAttrs: object expected");
                        t.SelfAttrs[n] = a.IntArray_Config.fromObject(e.SelfAttrs[n])
                    }
                }
                if (e.AllAttrIds) {
                    if (!Array.isArray(e.AllAttrIds)) throw TypeError(".HolyEquipSlotAddon_Config.AllAttrIds: array expected");
                    for (t.AllAttrIds = [], n = 0; n < e.AllAttrIds.length; ++n) i.Long ? (t.AllAttrIds[n] = i.Long.fromValue(e.AllAttrIds[n])).unsigned = !1 : "string" == typeof e.AllAttrIds[n] ? t.AllAttrIds[n] = parseInt(e.AllAttrIds[n], 10) : "number" == typeof e.AllAttrIds[n] ? t.AllAttrIds[n] = e.AllAttrIds[n] : "object" == typeof e.AllAttrIds[n] && (t.AllAttrIds[n] = new i.LongBits(e.AllAttrIds[n].low >>> 0, e.AllAttrIds[n].high >>> 0).toNumber())
                }
                if (e.SelfAttrIds) {
                    if (!Array.isArray(e.SelfAttrIds)) throw TypeError(".HolyEquipSlotAddon_Config.SelfAttrIds: array expected");
                    for (t.SelfAttrIds = [], n = 0; n < e.SelfAttrIds.length; ++n) i.Long ? (t.SelfAttrIds[n] = i.Long.fromValue(e.SelfAttrIds[n])).unsigned = !1 : "string" == typeof e.SelfAttrIds[n] ? t.SelfAttrIds[n] = parseInt(e.SelfAttrIds[n], 10) : "number" == typeof e.SelfAttrIds[n] ? t.SelfAttrIds[n] = e.SelfAttrIds[n] : "object" == typeof e.SelfAttrIds[n] && (t.SelfAttrIds[n] = new i.LongBits(e.SelfAttrIds[n].low >>> 0, e.SelfAttrIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AllAttrs = [], n.SelfAttrs = [], n.AllAttrIds = [], n.SelfAttrIds = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.AllAttrs && e.AllAttrs.length) {
                    n.AllAttrs = [];
                    for (var r = 0; r < e.AllAttrs.length; ++r) n.AllAttrs[r] = a.IntArray_Config.toObject(e.AllAttrs[r], t)
                }
                if (e.SelfAttrs && e.SelfAttrs.length)
                    for (n.SelfAttrs = [], r = 0; r < e.SelfAttrs.length; ++r) n.SelfAttrs[r] = a.IntArray_Config.toObject(e.SelfAttrs[r], t);
                if (e.AllAttrIds && e.AllAttrIds.length)
                    for (n.AllAttrIds = [], r = 0; r < e.AllAttrIds.length; ++r) "number" == typeof e.AllAttrIds[r] ? n.AllAttrIds[r] = t.longs === String ? String(e.AllAttrIds[r]) : e.AllAttrIds[r] : n.AllAttrIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.AllAttrIds[r]) : t.longs === Number ? new i.LongBits(e.AllAttrIds[r].low >>> 0, e.AllAttrIds[r].high >>> 0).toNumber() : e.AllAttrIds[r];
                if (e.SelfAttrIds && e.SelfAttrIds.length)
                    for (n.SelfAttrIds = [], r = 0; r < e.SelfAttrIds.length; ++r) "number" == typeof e.SelfAttrIds[r] ? n.SelfAttrIds[r] = t.longs === String ? String(e.SelfAttrIds[r]) : e.SelfAttrIds[r] : n.SelfAttrIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.SelfAttrIds[r]) : t.longs === Number ? new i.LongBits(e.SelfAttrIds[r].low >>> 0, e.SelfAttrIds[r].high >>> 0).toNumber() : e.SelfAttrIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipSlotAddon_Config"
            }, e
        }(), a.ExclusiveWeaponGalleryLevel_Config = function() {
            function e(e) {
                if (this.WarriorMaterials = [], this.WarriorAttrs = [], this.MasterMaterials = [], this.MasterAttrs = [], this.TankMaterials = [], this.TankAttrs = [], this.SupportMaterials = [], this.SupportAttrs = [], this.AllAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelLimit = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.WarriorMaterials = i.emptyArray, e.prototype.WarriorAttrs = i.emptyArray, e.prototype.MasterMaterials = i.emptyArray, e.prototype.MasterAttrs = i.emptyArray, e.prototype.TankMaterials = i.emptyArray, e.prototype.TankAttrs = i.emptyArray, e.prototype.SupportMaterials = i.emptyArray, e.prototype.SupportAttrs = i.emptyArray, e.prototype.AllAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.LevelLimit && Object.hasOwnProperty.call(e, "LevelLimit") && t.uint32(16).int64(e.LevelLimit), null != e.WarriorMaterials && e.WarriorMaterials.length)
                    for (var n = 0; n < e.WarriorMaterials.length; ++n) a.IntArray_Config.encode(e.WarriorMaterials[n], t.uint32(26).fork()).ldelim();
                if (null != e.WarriorAttrs && e.WarriorAttrs.length)
                    for (n = 0; n < e.WarriorAttrs.length; ++n) a.IntArray_Config.encode(e.WarriorAttrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.MasterMaterials && e.MasterMaterials.length)
                    for (n = 0; n < e.MasterMaterials.length; ++n) a.IntArray_Config.encode(e.MasterMaterials[n], t.uint32(42).fork()).ldelim();
                if (null != e.MasterAttrs && e.MasterAttrs.length)
                    for (n = 0; n < e.MasterAttrs.length; ++n) a.IntArray_Config.encode(e.MasterAttrs[n], t.uint32(50).fork()).ldelim();
                if (null != e.TankMaterials && e.TankMaterials.length)
                    for (n = 0; n < e.TankMaterials.length; ++n) a.IntArray_Config.encode(e.TankMaterials[n], t.uint32(58).fork()).ldelim();
                if (null != e.TankAttrs && e.TankAttrs.length)
                    for (n = 0; n < e.TankAttrs.length; ++n) a.IntArray_Config.encode(e.TankAttrs[n], t.uint32(66).fork()).ldelim();
                if (null != e.SupportMaterials && e.SupportMaterials.length)
                    for (n = 0; n < e.SupportMaterials.length; ++n) a.IntArray_Config.encode(e.SupportMaterials[n], t.uint32(74).fork()).ldelim();
                if (null != e.SupportAttrs && e.SupportAttrs.length)
                    for (n = 0; n < e.SupportAttrs.length; ++n) a.IntArray_Config.encode(e.SupportAttrs[n], t.uint32(82).fork()).ldelim();
                if (null != e.AllAttrs && e.AllAttrs.length)
                    for (n = 0; n < e.AllAttrs.length; ++n) a.IntArray_Config.encode(e.AllAttrs[n], t.uint32(90).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ExclusiveWeaponGalleryLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.LevelLimit = e.int64();
                            break;
                        case 3:
                            r.WarriorMaterials && r.WarriorMaterials.length || (r.WarriorMaterials = []), r.WarriorMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.WarriorAttrs && r.WarriorAttrs.length || (r.WarriorAttrs = []), r.WarriorAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.MasterMaterials && r.MasterMaterials.length || (r.MasterMaterials = []), r.MasterMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.MasterAttrs && r.MasterAttrs.length || (r.MasterAttrs = []), r.MasterAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.TankMaterials && r.TankMaterials.length || (r.TankMaterials = []), r.TankMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.TankAttrs && r.TankAttrs.length || (r.TankAttrs = []), r.TankAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.SupportMaterials && r.SupportMaterials.length || (r.SupportMaterials = []), r.SupportMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.SupportAttrs && r.SupportAttrs.length || (r.SupportAttrs = []), r.SupportAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 11:
                            r.AllAttrs && r.AllAttrs.length || (r.AllAttrs = []), r.AllAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.LevelLimit && e.hasOwnProperty("LevelLimit") && !(i.isInteger(e.LevelLimit) || e.LevelLimit && i.isInteger(e.LevelLimit.low) && i.isInteger(e.LevelLimit.high))) return "LevelLimit: integer|Long expected";
                if (null != e.WarriorMaterials && e.hasOwnProperty("WarriorMaterials")) {
                    if (!Array.isArray(e.WarriorMaterials)) return "WarriorMaterials: array expected";
                    for (var t = 0; t < e.WarriorMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.WarriorMaterials[t])) return "WarriorMaterials." + n
                }
                if (null != e.WarriorAttrs && e.hasOwnProperty("WarriorAttrs")) {
                    if (!Array.isArray(e.WarriorAttrs)) return "WarriorAttrs: array expected";
                    for (t = 0; t < e.WarriorAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.WarriorAttrs[t])) return "WarriorAttrs." + n
                }
                if (null != e.MasterMaterials && e.hasOwnProperty("MasterMaterials")) {
                    if (!Array.isArray(e.MasterMaterials)) return "MasterMaterials: array expected";
                    for (t = 0; t < e.MasterMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.MasterMaterials[t])) return "MasterMaterials." + n
                }
                if (null != e.MasterAttrs && e.hasOwnProperty("MasterAttrs")) {
                    if (!Array.isArray(e.MasterAttrs)) return "MasterAttrs: array expected";
                    for (t = 0; t < e.MasterAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.MasterAttrs[t])) return "MasterAttrs." + n
                }
                if (null != e.TankMaterials && e.hasOwnProperty("TankMaterials")) {
                    if (!Array.isArray(e.TankMaterials)) return "TankMaterials: array expected";
                    for (t = 0; t < e.TankMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TankMaterials[t])) return "TankMaterials." + n
                }
                if (null != e.TankAttrs && e.hasOwnProperty("TankAttrs")) {
                    if (!Array.isArray(e.TankAttrs)) return "TankAttrs: array expected";
                    for (t = 0; t < e.TankAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TankAttrs[t])) return "TankAttrs." + n
                }
                if (null != e.SupportMaterials && e.hasOwnProperty("SupportMaterials")) {
                    if (!Array.isArray(e.SupportMaterials)) return "SupportMaterials: array expected";
                    for (t = 0; t < e.SupportMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SupportMaterials[t])) return "SupportMaterials." + n
                }
                if (null != e.SupportAttrs && e.hasOwnProperty("SupportAttrs")) {
                    if (!Array.isArray(e.SupportAttrs)) return "SupportAttrs: array expected";
                    for (t = 0; t < e.SupportAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.SupportAttrs[t])) return "SupportAttrs." + n
                }
                if (null != e.AllAttrs && e.hasOwnProperty("AllAttrs")) {
                    if (!Array.isArray(e.AllAttrs)) return "AllAttrs: array expected";
                    for (t = 0; t < e.AllAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.AllAttrs[t])) return "AllAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ExclusiveWeaponGalleryLevel_Config) return e;
                var t = new a.ExclusiveWeaponGalleryLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.LevelLimit && (i.Long ? (t.LevelLimit = i.Long.fromValue(e.LevelLimit)).unsigned = !1 : "string" == typeof e.LevelLimit ? t.LevelLimit = parseInt(e.LevelLimit, 10) : "number" == typeof e.LevelLimit ? t.LevelLimit = e.LevelLimit : "object" == typeof e.LevelLimit && (t.LevelLimit = new i.LongBits(e.LevelLimit.low >>> 0, e.LevelLimit.high >>> 0).toNumber())), e.WarriorMaterials) {
                    if (!Array.isArray(e.WarriorMaterials)) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.WarriorMaterials: array expected");
                    t.WarriorMaterials = [];
                    for (var n = 0; n < e.WarriorMaterials.length; ++n) {
                        if ("object" != typeof e.WarriorMaterials[n]) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.WarriorMaterials: object expected");
                        t.WarriorMaterials[n] = a.IntArray_Config.fromObject(e.WarriorMaterials[n])
                    }
                }
                if (e.WarriorAttrs) {
                    if (!Array.isArray(e.WarriorAttrs)) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.WarriorAttrs: array expected");
                    for (t.WarriorAttrs = [], n = 0; n < e.WarriorAttrs.length; ++n) {
                        if ("object" != typeof e.WarriorAttrs[n]) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.WarriorAttrs: object expected");
                        t.WarriorAttrs[n] = a.IntArray_Config.fromObject(e.WarriorAttrs[n])
                    }
                }
                if (e.MasterMaterials) {
                    if (!Array.isArray(e.MasterMaterials)) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.MasterMaterials: array expected");
                    for (t.MasterMaterials = [], n = 0; n < e.MasterMaterials.length; ++n) {
                        if ("object" != typeof e.MasterMaterials[n]) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.MasterMaterials: object expected");
                        t.MasterMaterials[n] = a.IntArray_Config.fromObject(e.MasterMaterials[n])
                    }
                }
                if (e.MasterAttrs) {
                    if (!Array.isArray(e.MasterAttrs)) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.MasterAttrs: array expected");
                    for (t.MasterAttrs = [], n = 0; n < e.MasterAttrs.length; ++n) {
                        if ("object" != typeof e.MasterAttrs[n]) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.MasterAttrs: object expected");
                        t.MasterAttrs[n] = a.IntArray_Config.fromObject(e.MasterAttrs[n])
                    }
                }
                if (e.TankMaterials) {
                    if (!Array.isArray(e.TankMaterials)) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.TankMaterials: array expected");
                    for (t.TankMaterials = [], n = 0; n < e.TankMaterials.length; ++n) {
                        if ("object" != typeof e.TankMaterials[n]) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.TankMaterials: object expected");
                        t.TankMaterials[n] = a.IntArray_Config.fromObject(e.TankMaterials[n])
                    }
                }
                if (e.TankAttrs) {
                    if (!Array.isArray(e.TankAttrs)) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.TankAttrs: array expected");
                    for (t.TankAttrs = [], n = 0; n < e.TankAttrs.length; ++n) {
                        if ("object" != typeof e.TankAttrs[n]) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.TankAttrs: object expected");
                        t.TankAttrs[n] = a.IntArray_Config.fromObject(e.TankAttrs[n])
                    }
                }
                if (e.SupportMaterials) {
                    if (!Array.isArray(e.SupportMaterials)) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.SupportMaterials: array expected");
                    for (t.SupportMaterials = [], n = 0; n < e.SupportMaterials.length; ++n) {
                        if ("object" != typeof e.SupportMaterials[n]) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.SupportMaterials: object expected");
                        t.SupportMaterials[n] = a.IntArray_Config.fromObject(e.SupportMaterials[n])
                    }
                }
                if (e.SupportAttrs) {
                    if (!Array.isArray(e.SupportAttrs)) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.SupportAttrs: array expected");
                    for (t.SupportAttrs = [], n = 0; n < e.SupportAttrs.length; ++n) {
                        if ("object" != typeof e.SupportAttrs[n]) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.SupportAttrs: object expected");
                        t.SupportAttrs[n] = a.IntArray_Config.fromObject(e.SupportAttrs[n])
                    }
                }
                if (e.AllAttrs) {
                    if (!Array.isArray(e.AllAttrs)) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.AllAttrs: array expected");
                    for (t.AllAttrs = [], n = 0; n < e.AllAttrs.length; ++n) {
                        if ("object" != typeof e.AllAttrs[n]) throw TypeError(".ExclusiveWeaponGalleryLevel_Config.AllAttrs: object expected");
                        t.AllAttrs[n] = a.IntArray_Config.fromObject(e.AllAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.WarriorMaterials = [], n.WarriorAttrs = [], n.MasterMaterials = [], n.MasterAttrs = [], n.TankMaterials = [], n.TankAttrs = [], n.SupportMaterials = [], n.SupportAttrs = [], n.AllAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.LevelLimit = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LevelLimit = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.LevelLimit && e.hasOwnProperty("LevelLimit") && ("number" == typeof e.LevelLimit ? n.LevelLimit = t.longs === String ? String(e.LevelLimit) : e.LevelLimit : n.LevelLimit = t.longs === String ? i.Long.prototype.toString.call(e.LevelLimit) : t.longs === Number ? new i.LongBits(e.LevelLimit.low >>> 0, e.LevelLimit.high >>> 0).toNumber() : e.LevelLimit), e.WarriorMaterials && e.WarriorMaterials.length) {
                    n.WarriorMaterials = [];
                    for (var r = 0; r < e.WarriorMaterials.length; ++r) n.WarriorMaterials[r] = a.IntArray_Config.toObject(e.WarriorMaterials[r], t)
                }
                if (e.WarriorAttrs && e.WarriorAttrs.length)
                    for (n.WarriorAttrs = [], r = 0; r < e.WarriorAttrs.length; ++r) n.WarriorAttrs[r] = a.IntArray_Config.toObject(e.WarriorAttrs[r], t);
                if (e.MasterMaterials && e.MasterMaterials.length)
                    for (n.MasterMaterials = [], r = 0; r < e.MasterMaterials.length; ++r) n.MasterMaterials[r] = a.IntArray_Config.toObject(e.MasterMaterials[r], t);
                if (e.MasterAttrs && e.MasterAttrs.length)
                    for (n.MasterAttrs = [], r = 0; r < e.MasterAttrs.length; ++r) n.MasterAttrs[r] = a.IntArray_Config.toObject(e.MasterAttrs[r], t);
                if (e.TankMaterials && e.TankMaterials.length)
                    for (n.TankMaterials = [], r = 0; r < e.TankMaterials.length; ++r) n.TankMaterials[r] = a.IntArray_Config.toObject(e.TankMaterials[r], t);
                if (e.TankAttrs && e.TankAttrs.length)
                    for (n.TankAttrs = [], r = 0; r < e.TankAttrs.length; ++r) n.TankAttrs[r] = a.IntArray_Config.toObject(e.TankAttrs[r], t);
                if (e.SupportMaterials && e.SupportMaterials.length)
                    for (n.SupportMaterials = [], r = 0; r < e.SupportMaterials.length; ++r) n.SupportMaterials[r] = a.IntArray_Config.toObject(e.SupportMaterials[r], t);
                if (e.SupportAttrs && e.SupportAttrs.length)
                    for (n.SupportAttrs = [], r = 0; r < e.SupportAttrs.length; ++r) n.SupportAttrs[r] = a.IntArray_Config.toObject(e.SupportAttrs[r], t);
                if (e.AllAttrs && e.AllAttrs.length)
                    for (n.AllAttrs = [], r = 0; r < e.AllAttrs.length; ++r) n.AllAttrs[r] = a.IntArray_Config.toObject(e.AllAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ExclusiveWeaponGalleryLevel_Config"
            }, e
        }(), a.PuzzleGroup_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(24).int64(e.SortId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PuzzleGroup_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.SortId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PuzzleGroup_Config) return e;
                var t = new a.PuzzleGroup_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PuzzleGroup_Config"
            }, e
        }(), a.PuzzleStage_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Unlock = [], this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GroupId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Stage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SideLength = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Unlock = i.emptyArray, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.GroupId && Object.hasOwnProperty.call(e, "GroupId") && t.uint32(16).int64(e.GroupId), null != e.Stage && Object.hasOwnProperty.call(e, "Stage") && t.uint32(24).int64(e.Stage), null != e.SideLength && Object.hasOwnProperty.call(e, "SideLength") && t.uint32(32).int64(e.SideLength), null != e.Attrs && e.Attrs.length) {
                    t.uint32(42).fork();
                    for (var n = 0; n < e.Attrs.length; ++n) t.int64(e.Attrs[n]);
                    t.ldelim()
                }
                if (null != e.Unlock && e.Unlock.length)
                    for (n = 0; n < e.Unlock.length; ++n) a.IntArray_Config.encode(e.Unlock[n], t.uint32(50).fork()).ldelim();
                if (null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PuzzleStage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.GroupId = e.int64();
                            break;
                        case 3:
                            r.Stage = e.int64();
                            break;
                        case 4:
                            r.SideLength = e.int64();
                            break;
                        case 5:
                            if (r.Attrs && r.Attrs.length || (r.Attrs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Attrs.push(e.int64());
                            else r.Attrs.push(e.int64());
                            break;
                        case 6:
                            r.Unlock && r.Unlock.length || (r.Unlock = []), r.Unlock.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.GroupId && e.hasOwnProperty("GroupId") && !(i.isInteger(e.GroupId) || e.GroupId && i.isInteger(e.GroupId.low) && i.isInteger(e.GroupId.high))) return "GroupId: integer|Long expected";
                if (null != e.Stage && e.hasOwnProperty("Stage") && !(i.isInteger(e.Stage) || e.Stage && i.isInteger(e.Stage.low) && i.isInteger(e.Stage.high))) return "Stage: integer|Long expected";
                if (null != e.SideLength && e.hasOwnProperty("SideLength") && !(i.isInteger(e.SideLength) || e.SideLength && i.isInteger(e.SideLength.low) && i.isInteger(e.SideLength.high))) return "SideLength: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (!(i.isInteger(e.Attrs[t]) || e.Attrs[t] && i.isInteger(e.Attrs[t].low) && i.isInteger(e.Attrs[t].high))) return "Attrs: integer|Long[] expected"
                }
                if (null != e.Unlock && e.hasOwnProperty("Unlock")) {
                    if (!Array.isArray(e.Unlock)) return "Unlock: array expected";
                    for (t = 0; t < e.Unlock.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Unlock[t])) return "Unlock." + n
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PuzzleStage_Config) return e;
                var t = new a.PuzzleStage_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.GroupId && (i.Long ? (t.GroupId = i.Long.fromValue(e.GroupId)).unsigned = !1 : "string" == typeof e.GroupId ? t.GroupId = parseInt(e.GroupId, 10) : "number" == typeof e.GroupId ? t.GroupId = e.GroupId : "object" == typeof e.GroupId && (t.GroupId = new i.LongBits(e.GroupId.low >>> 0, e.GroupId.high >>> 0).toNumber())), null != e.Stage && (i.Long ? (t.Stage = i.Long.fromValue(e.Stage)).unsigned = !1 : "string" == typeof e.Stage ? t.Stage = parseInt(e.Stage, 10) : "number" == typeof e.Stage ? t.Stage = e.Stage : "object" == typeof e.Stage && (t.Stage = new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber())), null != e.SideLength && (i.Long ? (t.SideLength = i.Long.fromValue(e.SideLength)).unsigned = !1 : "string" == typeof e.SideLength ? t.SideLength = parseInt(e.SideLength, 10) : "number" == typeof e.SideLength ? t.SideLength = e.SideLength : "object" == typeof e.SideLength && (t.SideLength = new i.LongBits(e.SideLength.low >>> 0, e.SideLength.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".PuzzleStage_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) i.Long ? (t.Attrs[n] = i.Long.fromValue(e.Attrs[n])).unsigned = !1 : "string" == typeof e.Attrs[n] ? t.Attrs[n] = parseInt(e.Attrs[n], 10) : "number" == typeof e.Attrs[n] ? t.Attrs[n] = e.Attrs[n] : "object" == typeof e.Attrs[n] && (t.Attrs[n] = new i.LongBits(e.Attrs[n].low >>> 0, e.Attrs[n].high >>> 0).toNumber())
                }
                if (e.Unlock) {
                    if (!Array.isArray(e.Unlock)) throw TypeError(".PuzzleStage_Config.Unlock: array expected");
                    for (t.Unlock = [], n = 0; n < e.Unlock.length; ++n) {
                        if ("object" != typeof e.Unlock[n]) throw TypeError(".PuzzleStage_Config.Unlock: object expected");
                        t.Unlock[n] = a.IntArray_Config.fromObject(e.Unlock[n])
                    }
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".PuzzleStage_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".PuzzleStage_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Unlock = [], n.Materials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.GroupId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GroupId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Stage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Stage = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SideLength = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SideLength = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.GroupId && e.hasOwnProperty("GroupId") && ("number" == typeof e.GroupId ? n.GroupId = t.longs === String ? String(e.GroupId) : e.GroupId : n.GroupId = t.longs === String ? i.Long.prototype.toString.call(e.GroupId) : t.longs === Number ? new i.LongBits(e.GroupId.low >>> 0, e.GroupId.high >>> 0).toNumber() : e.GroupId), null != e.Stage && e.hasOwnProperty("Stage") && ("number" == typeof e.Stage ? n.Stage = t.longs === String ? String(e.Stage) : e.Stage : n.Stage = t.longs === String ? i.Long.prototype.toString.call(e.Stage) : t.longs === Number ? new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber() : e.Stage), null != e.SideLength && e.hasOwnProperty("SideLength") && ("number" == typeof e.SideLength ? n.SideLength = t.longs === String ? String(e.SideLength) : e.SideLength : n.SideLength = t.longs === String ? i.Long.prototype.toString.call(e.SideLength) : t.longs === Number ? new i.LongBits(e.SideLength.low >>> 0, e.SideLength.high >>> 0).toNumber() : e.SideLength), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) "number" == typeof e.Attrs[r] ? n.Attrs[r] = t.longs === String ? String(e.Attrs[r]) : e.Attrs[r] : n.Attrs[r] = t.longs === String ? i.Long.prototype.toString.call(e.Attrs[r]) : t.longs === Number ? new i.LongBits(e.Attrs[r].low >>> 0, e.Attrs[r].high >>> 0).toNumber() : e.Attrs[r]
                }
                if (e.Unlock && e.Unlock.length)
                    for (n.Unlock = [], r = 0; r < e.Unlock.length; ++r) n.Unlock[r] = a.IntArray_Config.toObject(e.Unlock[r], t);
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PuzzleStage_Config"
            }, e
        }(), a.PuzzleStageAttr_Config = function() {
            function e(e) {
                if (this.Unlock = [], this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Unlock = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Unlock && e.Unlock.length)
                    for (var n = 0; n < e.Unlock.length; ++n) a.IntArray_Config.encode(e.Unlock[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PuzzleStageAttr_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Unlock && r.Unlock.length || (r.Unlock = []), r.Unlock.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Unlock && e.hasOwnProperty("Unlock")) {
                    if (!Array.isArray(e.Unlock)) return "Unlock: array expected";
                    for (var t = 0; t < e.Unlock.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Unlock[t])) return "Unlock." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PuzzleStageAttr_Config) return e;
                var t = new a.PuzzleStageAttr_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Unlock) {
                    if (!Array.isArray(e.Unlock)) throw TypeError(".PuzzleStageAttr_Config.Unlock: array expected");
                    t.Unlock = [];
                    for (var n = 0; n < e.Unlock.length; ++n) {
                        if ("object" != typeof e.Unlock[n]) throw TypeError(".PuzzleStageAttr_Config.Unlock: object expected");
                        t.Unlock[n] = a.IntArray_Config.fromObject(e.Unlock[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".PuzzleStageAttr_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".PuzzleStageAttr_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Unlock = [], n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Unlock && e.Unlock.length) {
                    n.Unlock = [];
                    for (var r = 0; r < e.Unlock.length; ++r) n.Unlock[r] = a.IntArray_Config.toObject(e.Unlock[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PuzzleStageAttr_Config"
            }, e
        }(), a.PuzzleShape_Config = function() {
            function e(e) {
                if (this.Shape = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Shape = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Shape && e.Shape.length)
                    for (var n = 0; n < e.Shape.length; ++n) a.IntArray_Config.encode(e.Shape[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PuzzleShape_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Shape && r.Shape.length || (r.Shape = []), r.Shape.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Shape && e.hasOwnProperty("Shape")) {
                    if (!Array.isArray(e.Shape)) return "Shape: array expected";
                    for (var t = 0; t < e.Shape.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Shape[t]);
                        if (n) return "Shape." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PuzzleShape_Config) return e;
                var t = new a.PuzzleShape_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Shape) {
                    if (!Array.isArray(e.Shape)) throw TypeError(".PuzzleShape_Config.Shape: array expected");
                    t.Shape = [];
                    for (var n = 0; n < e.Shape.length; ++n) {
                        if ("object" != typeof e.Shape[n]) throw TypeError(".PuzzleShape_Config.Shape: object expected");
                        t.Shape[n] = a.IntArray_Config.fromObject(e.Shape[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Shape = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Shape && e.Shape.length) {
                    n.Shape = [];
                    for (var r = 0; r < e.Shape.length; ++r) n.Shape[r] = a.IntArray_Config.toObject(e.Shape[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PuzzleShape_Config"
            }, e
        }(), a.ItemPuzzle_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.DecomposeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Stage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.DecomposeItems = i.emptyArray, e.prototype.Shape = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Stage && Object.hasOwnProperty.call(e, "Stage") && t.uint32(16).int64(e.Stage), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.DecomposeItems && e.DecomposeItems.length)
                    for (n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(34).fork()).ldelim();
                return null != e.Shape && Object.hasOwnProperty.call(e, "Shape") && t.uint32(40).int64(e.Shape), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(48).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemPuzzle_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Stage = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Shape = e.int64();
                            break;
                        case 6:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Stage && e.hasOwnProperty("Stage") && !(i.isInteger(e.Stage) || e.Stage && i.isInteger(e.Stage.low) && i.isInteger(e.Stage.high))) return "Stage: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (t = 0; t < e.DecomposeItems.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.DecomposeItems[t])) return "DecomposeItems." + n
                    }
                }
                return null != e.Shape && e.hasOwnProperty("Shape") && !(i.isInteger(e.Shape) || e.Shape && i.isInteger(e.Shape.low) && i.isInteger(e.Shape.high)) ? "Shape: integer|Long expected" : null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemPuzzle_Config) return e;
                var t = new a.ItemPuzzle_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Stage && (i.Long ? (t.Stage = i.Long.fromValue(e.Stage)).unsigned = !1 : "string" == typeof e.Stage ? t.Stage = parseInt(e.Stage, 10) : "number" == typeof e.Stage ? t.Stage = e.Stage : "object" == typeof e.Stage && (t.Stage = new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ItemPuzzle_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ItemPuzzle_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".ItemPuzzle_Config.DecomposeItems: array expected");
                    for (t.DecomposeItems = [], n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".ItemPuzzle_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                return null != e.Shape && (i.Long ? (t.Shape = i.Long.fromValue(e.Shape)).unsigned = !1 : "string" == typeof e.Shape ? t.Shape = parseInt(e.Shape, 10) : "number" == typeof e.Shape ? t.Shape = e.Shape : "object" == typeof e.Shape && (t.Shape = new i.LongBits(e.Shape.low >>> 0, e.Shape.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.DecomposeItems = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Stage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Stage = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Shape = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Shape = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Stage && e.hasOwnProperty("Stage") && ("number" == typeof e.Stage ? n.Stage = t.longs === String ? String(e.Stage) : e.Stage : n.Stage = t.longs === String ? i.Long.prototype.toString.call(e.Stage) : t.longs === Number ? new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber() : e.Stage), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.DecomposeItems && e.DecomposeItems.length)
                    for (n.DecomposeItems = [], r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t);
                return null != e.Shape && e.hasOwnProperty("Shape") && ("number" == typeof e.Shape ? n.Shape = t.longs === String ? String(e.Shape) : e.Shape : n.Shape = t.longs === String ? i.Long.prototype.toString.call(e.Shape) : t.longs === Number ? new i.LongBits(e.Shape.low >>> 0, e.Shape.high >>> 0).toNumber() : e.Shape), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemPuzzle_Config"
            }, e
        }(), a.HeroHandbookStar_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroHandbookStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroHandbookStar_Config) return e;
                var t = new a.HeroHandbookStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroHandbookStar_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroHandbookStar_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroHandbookStar_Config"
            }, e
        }(), a.HeroHandbookLevel_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.StageAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UseCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.StageAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.UseCount && Object.hasOwnProperty.call(e, "UseCount") && t.uint32(16).int64(e.UseCount), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.StageAttrs && e.StageAttrs.length)
                    for (n = 0; n < e.StageAttrs.length; ++n) a.IntArray_Config.encode(e.StageAttrs[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroHandbookLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.UseCount = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.StageAttrs && r.StageAttrs.length || (r.StageAttrs = []), r.StageAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.UseCount && e.hasOwnProperty("UseCount") && !(i.isInteger(e.UseCount) || e.UseCount && i.isInteger(e.UseCount.low) && i.isInteger(e.UseCount.high))) return "UseCount: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.StageAttrs && e.hasOwnProperty("StageAttrs")) {
                    if (!Array.isArray(e.StageAttrs)) return "StageAttrs: array expected";
                    for (t = 0; t < e.StageAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.StageAttrs[t])) return "StageAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroHandbookLevel_Config) return e;
                var t = new a.HeroHandbookLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.UseCount && (i.Long ? (t.UseCount = i.Long.fromValue(e.UseCount)).unsigned = !1 : "string" == typeof e.UseCount ? t.UseCount = parseInt(e.UseCount, 10) : "number" == typeof e.UseCount ? t.UseCount = e.UseCount : "object" == typeof e.UseCount && (t.UseCount = new i.LongBits(e.UseCount.low >>> 0, e.UseCount.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroHandbookLevel_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroHandbookLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.StageAttrs) {
                    if (!Array.isArray(e.StageAttrs)) throw TypeError(".HeroHandbookLevel_Config.StageAttrs: array expected");
                    for (t.StageAttrs = [], n = 0; n < e.StageAttrs.length; ++n) {
                        if ("object" != typeof e.StageAttrs[n]) throw TypeError(".HeroHandbookLevel_Config.StageAttrs: object expected");
                        t.StageAttrs[n] = a.IntArray_Config.fromObject(e.StageAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.StageAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.UseCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UseCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.UseCount && e.hasOwnProperty("UseCount") && ("number" == typeof e.UseCount ? n.UseCount = t.longs === String ? String(e.UseCount) : e.UseCount : n.UseCount = t.longs === String ? i.Long.prototype.toString.call(e.UseCount) : t.longs === Number ? new i.LongBits(e.UseCount.low >>> 0, e.UseCount.high >>> 0).toNumber() : e.UseCount), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.StageAttrs && e.StageAttrs.length)
                    for (n.StageAttrs = [], r = 0; r < e.StageAttrs.length; ++r) n.StageAttrs[r] = a.IntArray_Config.toObject(e.StageAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroHandbookLevel_Config"
            }, e
        }(), a.OldPlayerRecall_Config = function() {
            function e(e) {
                if (this.Range = [], this.ClockInRewards = [], this.PointRewards = [], this.RecallPacks = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Range = i.emptyArray, e.prototype.ClockInRewards = i.emptyArray, e.prototype.PointRewards = i.emptyArray, e.prototype.Days = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RecallPacks = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Range && e.Range.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Range.length; ++n) t.int64(e.Range[n]);
                    t.ldelim()
                }
                if (null != e.ClockInRewards && e.ClockInRewards.length)
                    for (n = 0; n < e.ClockInRewards.length; ++n) a.IntArray_Config.encode(e.ClockInRewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.PointRewards && e.PointRewards.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.PointRewards.length; ++n) t.int64(e.PointRewards[n]);
                    t.ldelim()
                }
                if (null != e.Days && Object.hasOwnProperty.call(e, "Days") && t.uint32(40).int64(e.Days), null != e.RecallPacks && e.RecallPacks.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.RecallPacks.length; ++n) t.int64(e.RecallPacks[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.OldPlayerRecall_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Range && r.Range.length || (r.Range = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Range.push(e.int64());
                            else r.Range.push(e.int64());
                            break;
                        case 3:
                            r.ClockInRewards && r.ClockInRewards.length || (r.ClockInRewards = []), r.ClockInRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            if (r.PointRewards && r.PointRewards.length || (r.PointRewards = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.PointRewards.push(e.int64());
                            else r.PointRewards.push(e.int64());
                            break;
                        case 5:
                            r.Days = e.int64();
                            break;
                        case 6:
                            if (r.RecallPacks && r.RecallPacks.length || (r.RecallPacks = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.RecallPacks.push(e.int64());
                            else r.RecallPacks.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Range && e.hasOwnProperty("Range")) {
                    if (!Array.isArray(e.Range)) return "Range: array expected";
                    for (var t = 0; t < e.Range.length; ++t)
                        if (!(i.isInteger(e.Range[t]) || e.Range[t] && i.isInteger(e.Range[t].low) && i.isInteger(e.Range[t].high))) return "Range: integer|Long[] expected"
                }
                if (null != e.ClockInRewards && e.hasOwnProperty("ClockInRewards")) {
                    if (!Array.isArray(e.ClockInRewards)) return "ClockInRewards: array expected";
                    for (t = 0; t < e.ClockInRewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.ClockInRewards[t]);
                        if (n) return "ClockInRewards." + n
                    }
                }
                if (null != e.PointRewards && e.hasOwnProperty("PointRewards")) {
                    if (!Array.isArray(e.PointRewards)) return "PointRewards: array expected";
                    for (t = 0; t < e.PointRewards.length; ++t)
                        if (!(i.isInteger(e.PointRewards[t]) || e.PointRewards[t] && i.isInteger(e.PointRewards[t].low) && i.isInteger(e.PointRewards[t].high))) return "PointRewards: integer|Long[] expected"
                }
                if (null != e.Days && e.hasOwnProperty("Days") && !(i.isInteger(e.Days) || e.Days && i.isInteger(e.Days.low) && i.isInteger(e.Days.high))) return "Days: integer|Long expected";
                if (null != e.RecallPacks && e.hasOwnProperty("RecallPacks")) {
                    if (!Array.isArray(e.RecallPacks)) return "RecallPacks: array expected";
                    for (t = 0; t < e.RecallPacks.length; ++t)
                        if (!(i.isInteger(e.RecallPacks[t]) || e.RecallPacks[t] && i.isInteger(e.RecallPacks[t].low) && i.isInteger(e.RecallPacks[t].high))) return "RecallPacks: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.OldPlayerRecall_Config) return e;
                var t = new a.OldPlayerRecall_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Range) {
                    if (!Array.isArray(e.Range)) throw TypeError(".OldPlayerRecall_Config.Range: array expected");
                    t.Range = [];
                    for (var n = 0; n < e.Range.length; ++n) i.Long ? (t.Range[n] = i.Long.fromValue(e.Range[n])).unsigned = !1 : "string" == typeof e.Range[n] ? t.Range[n] = parseInt(e.Range[n], 10) : "number" == typeof e.Range[n] ? t.Range[n] = e.Range[n] : "object" == typeof e.Range[n] && (t.Range[n] = new i.LongBits(e.Range[n].low >>> 0, e.Range[n].high >>> 0).toNumber())
                }
                if (e.ClockInRewards) {
                    if (!Array.isArray(e.ClockInRewards)) throw TypeError(".OldPlayerRecall_Config.ClockInRewards: array expected");
                    for (t.ClockInRewards = [], n = 0; n < e.ClockInRewards.length; ++n) {
                        if ("object" != typeof e.ClockInRewards[n]) throw TypeError(".OldPlayerRecall_Config.ClockInRewards: object expected");
                        t.ClockInRewards[n] = a.IntArray_Config.fromObject(e.ClockInRewards[n])
                    }
                }
                if (e.PointRewards) {
                    if (!Array.isArray(e.PointRewards)) throw TypeError(".OldPlayerRecall_Config.PointRewards: array expected");
                    for (t.PointRewards = [], n = 0; n < e.PointRewards.length; ++n) i.Long ? (t.PointRewards[n] = i.Long.fromValue(e.PointRewards[n])).unsigned = !1 : "string" == typeof e.PointRewards[n] ? t.PointRewards[n] = parseInt(e.PointRewards[n], 10) : "number" == typeof e.PointRewards[n] ? t.PointRewards[n] = e.PointRewards[n] : "object" == typeof e.PointRewards[n] && (t.PointRewards[n] = new i.LongBits(e.PointRewards[n].low >>> 0, e.PointRewards[n].high >>> 0).toNumber())
                }
                if (null != e.Days && (i.Long ? (t.Days = i.Long.fromValue(e.Days)).unsigned = !1 : "string" == typeof e.Days ? t.Days = parseInt(e.Days, 10) : "number" == typeof e.Days ? t.Days = e.Days : "object" == typeof e.Days && (t.Days = new i.LongBits(e.Days.low >>> 0, e.Days.high >>> 0).toNumber())), e.RecallPacks) {
                    if (!Array.isArray(e.RecallPacks)) throw TypeError(".OldPlayerRecall_Config.RecallPacks: array expected");
                    for (t.RecallPacks = [], n = 0; n < e.RecallPacks.length; ++n) i.Long ? (t.RecallPacks[n] = i.Long.fromValue(e.RecallPacks[n])).unsigned = !1 : "string" == typeof e.RecallPacks[n] ? t.RecallPacks[n] = parseInt(e.RecallPacks[n], 10) : "number" == typeof e.RecallPacks[n] ? t.RecallPacks[n] = e.RecallPacks[n] : "object" == typeof e.RecallPacks[n] && (t.RecallPacks[n] = new i.LongBits(e.RecallPacks[n].low >>> 0, e.RecallPacks[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Range = [], n.ClockInRewards = [], n.PointRewards = [], n.RecallPacks = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Days = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Days = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Range && e.Range.length) {
                    n.Range = [];
                    for (var r = 0; r < e.Range.length; ++r) "number" == typeof e.Range[r] ? n.Range[r] = t.longs === String ? String(e.Range[r]) : e.Range[r] : n.Range[r] = t.longs === String ? i.Long.prototype.toString.call(e.Range[r]) : t.longs === Number ? new i.LongBits(e.Range[r].low >>> 0, e.Range[r].high >>> 0).toNumber() : e.Range[r]
                }
                if (e.ClockInRewards && e.ClockInRewards.length)
                    for (n.ClockInRewards = [], r = 0; r < e.ClockInRewards.length; ++r) n.ClockInRewards[r] = a.IntArray_Config.toObject(e.ClockInRewards[r], t);
                if (e.PointRewards && e.PointRewards.length)
                    for (n.PointRewards = [], r = 0; r < e.PointRewards.length; ++r) "number" == typeof e.PointRewards[r] ? n.PointRewards[r] = t.longs === String ? String(e.PointRewards[r]) : e.PointRewards[r] : n.PointRewards[r] = t.longs === String ? i.Long.prototype.toString.call(e.PointRewards[r]) : t.longs === Number ? new i.LongBits(e.PointRewards[r].low >>> 0, e.PointRewards[r].high >>> 0).toNumber() : e.PointRewards[r];
                if (null != e.Days && e.hasOwnProperty("Days") && ("number" == typeof e.Days ? n.Days = t.longs === String ? String(e.Days) : e.Days : n.Days = t.longs === String ? i.Long.prototype.toString.call(e.Days) : t.longs === Number ? new i.LongBits(e.Days.low >>> 0, e.Days.high >>> 0).toNumber() : e.Days), e.RecallPacks && e.RecallPacks.length)
                    for (n.RecallPacks = [], r = 0; r < e.RecallPacks.length; ++r) "number" == typeof e.RecallPacks[r] ? n.RecallPacks[r] = t.longs === String ? String(e.RecallPacks[r]) : e.RecallPacks[r] : n.RecallPacks[r] = t.longs === String ? i.Long.prototype.toString.call(e.RecallPacks[r]) : t.longs === Number ? new i.LongBits(e.RecallPacks[r].low >>> 0, e.RecallPacks[r].high >>> 0).toNumber() : e.RecallPacks[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/OldPlayerRecall_Config"
            }, e
        }(), a.Artefact_Config = function() {
            function e(e) {
                if (this.Positions = [], this.AttrIds = [], this.ArtefactForge = [], this.Skills = [], this.Slots = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Element = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Positions = i.emptyArray, e.prototype.AttrIds = i.emptyArray, e.prototype.ArtefactForge = i.emptyArray, e.prototype.Skills = i.emptyArray, e.prototype.Slots = i.emptyArray, e.prototype.Label = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PieceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Model = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Element && Object.hasOwnProperty.call(e, "Element") && t.uint32(16).int64(e.Element), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(24).int64(e.Star), null != e.Positions && e.Positions.length)
                    for (var n = 0; n < e.Positions.length; ++n) a.IntArray_Config.encode(e.Positions[n], t.uint32(34).fork()).ldelim();
                if (null != e.AttrIds && e.AttrIds.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.AttrIds.length; ++n) t.int64(e.AttrIds[n]);
                    t.ldelim()
                }
                if (null != e.ArtefactForge && e.ArtefactForge.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.ArtefactForge.length; ++n) t.int64(e.ArtefactForge[n]);
                    t.ldelim()
                }
                if (null != e.Skills && e.Skills.length)
                    for (n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(58).fork()).ldelim();
                if (null != e.Slots && e.Slots.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.Slots.length; ++n) t.int64(e.Slots[n]);
                    t.ldelim()
                }
                return null != e.Label && Object.hasOwnProperty.call(e, "Label") && t.uint32(72).int64(e.Label), null != e.PieceId && Object.hasOwnProperty.call(e, "PieceId") && t.uint32(80).int64(e.PieceId), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(98).string(e.Model), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Artefact_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Element = e.int64();
                            break;
                        case 3:
                            r.Star = e.int64();
                            break;
                        case 4:
                            r.Positions && r.Positions.length || (r.Positions = []), r.Positions.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            if (r.AttrIds && r.AttrIds.length || (r.AttrIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AttrIds.push(e.int64());
                            else r.AttrIds.push(e.int64());
                            break;
                        case 6:
                            if (r.ArtefactForge && r.ArtefactForge.length || (r.ArtefactForge = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ArtefactForge.push(e.int64());
                            else r.ArtefactForge.push(e.int64());
                            break;
                        case 7:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            if (r.Slots && r.Slots.length || (r.Slots = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Slots.push(e.int64());
                            else r.Slots.push(e.int64());
                            break;
                        case 9:
                            r.Label = e.int64();
                            break;
                        case 10:
                            r.PieceId = e.int64();
                            break;
                        case 12:
                            r.Model = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Element && e.hasOwnProperty("Element") && !(i.isInteger(e.Element) || e.Element && i.isInteger(e.Element.low) && i.isInteger(e.Element.high))) return "Element: integer|Long expected";
                if (null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high))) return "Star: integer|Long expected";
                if (null != e.Positions && e.hasOwnProperty("Positions")) {
                    if (!Array.isArray(e.Positions)) return "Positions: array expected";
                    for (var t = 0; t < e.Positions.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Positions[t])) return "Positions." + n
                }
                if (null != e.AttrIds && e.hasOwnProperty("AttrIds")) {
                    if (!Array.isArray(e.AttrIds)) return "AttrIds: array expected";
                    for (t = 0; t < e.AttrIds.length; ++t)
                        if (!(i.isInteger(e.AttrIds[t]) || e.AttrIds[t] && i.isInteger(e.AttrIds[t].low) && i.isInteger(e.AttrIds[t].high))) return "AttrIds: integer|Long[] expected"
                }
                if (null != e.ArtefactForge && e.hasOwnProperty("ArtefactForge")) {
                    if (!Array.isArray(e.ArtefactForge)) return "ArtefactForge: array expected";
                    for (t = 0; t < e.ArtefactForge.length; ++t)
                        if (!(i.isInteger(e.ArtefactForge[t]) || e.ArtefactForge[t] && i.isInteger(e.ArtefactForge[t].low) && i.isInteger(e.ArtefactForge[t].high))) return "ArtefactForge: integer|Long[] expected"
                }
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (t = 0; t < e.Skills.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                    }
                }
                if (null != e.Slots && e.hasOwnProperty("Slots")) {
                    if (!Array.isArray(e.Slots)) return "Slots: array expected";
                    for (t = 0; t < e.Slots.length; ++t)
                        if (!(i.isInteger(e.Slots[t]) || e.Slots[t] && i.isInteger(e.Slots[t].low) && i.isInteger(e.Slots[t].high))) return "Slots: integer|Long[] expected"
                }
                return null != e.Label && e.hasOwnProperty("Label") && !(i.isInteger(e.Label) || e.Label && i.isInteger(e.Label.low) && i.isInteger(e.Label.high)) ? "Label: integer|Long expected" : null != e.PieceId && e.hasOwnProperty("PieceId") && !(i.isInteger(e.PieceId) || e.PieceId && i.isInteger(e.PieceId.low) && i.isInteger(e.PieceId.high)) ? "PieceId: integer|Long expected" : null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model) ? "Model: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Artefact_Config) return e;
                var t = new a.Artefact_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Element && (i.Long ? (t.Element = i.Long.fromValue(e.Element)).unsigned = !1 : "string" == typeof e.Element ? t.Element = parseInt(e.Element, 10) : "number" == typeof e.Element ? t.Element = e.Element : "object" == typeof e.Element && (t.Element = new i.LongBits(e.Element.low >>> 0, e.Element.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), e.Positions) {
                    if (!Array.isArray(e.Positions)) throw TypeError(".Artefact_Config.Positions: array expected");
                    t.Positions = [];
                    for (var n = 0; n < e.Positions.length; ++n) {
                        if ("object" != typeof e.Positions[n]) throw TypeError(".Artefact_Config.Positions: object expected");
                        t.Positions[n] = a.IntArray_Config.fromObject(e.Positions[n])
                    }
                }
                if (e.AttrIds) {
                    if (!Array.isArray(e.AttrIds)) throw TypeError(".Artefact_Config.AttrIds: array expected");
                    for (t.AttrIds = [], n = 0; n < e.AttrIds.length; ++n) i.Long ? (t.AttrIds[n] = i.Long.fromValue(e.AttrIds[n])).unsigned = !1 : "string" == typeof e.AttrIds[n] ? t.AttrIds[n] = parseInt(e.AttrIds[n], 10) : "number" == typeof e.AttrIds[n] ? t.AttrIds[n] = e.AttrIds[n] : "object" == typeof e.AttrIds[n] && (t.AttrIds[n] = new i.LongBits(e.AttrIds[n].low >>> 0, e.AttrIds[n].high >>> 0).toNumber())
                }
                if (e.ArtefactForge) {
                    if (!Array.isArray(e.ArtefactForge)) throw TypeError(".Artefact_Config.ArtefactForge: array expected");
                    for (t.ArtefactForge = [], n = 0; n < e.ArtefactForge.length; ++n) i.Long ? (t.ArtefactForge[n] = i.Long.fromValue(e.ArtefactForge[n])).unsigned = !1 : "string" == typeof e.ArtefactForge[n] ? t.ArtefactForge[n] = parseInt(e.ArtefactForge[n], 10) : "number" == typeof e.ArtefactForge[n] ? t.ArtefactForge[n] = e.ArtefactForge[n] : "object" == typeof e.ArtefactForge[n] && (t.ArtefactForge[n] = new i.LongBits(e.ArtefactForge[n].low >>> 0, e.ArtefactForge[n].high >>> 0).toNumber())
                }
                if (e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".Artefact_Config.Skills: array expected");
                    for (t.Skills = [], n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".Artefact_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (e.Slots) {
                    if (!Array.isArray(e.Slots)) throw TypeError(".Artefact_Config.Slots: array expected");
                    for (t.Slots = [], n = 0; n < e.Slots.length; ++n) i.Long ? (t.Slots[n] = i.Long.fromValue(e.Slots[n])).unsigned = !1 : "string" == typeof e.Slots[n] ? t.Slots[n] = parseInt(e.Slots[n], 10) : "number" == typeof e.Slots[n] ? t.Slots[n] = e.Slots[n] : "object" == typeof e.Slots[n] && (t.Slots[n] = new i.LongBits(e.Slots[n].low >>> 0, e.Slots[n].high >>> 0).toNumber())
                }
                return null != e.Label && (i.Long ? (t.Label = i.Long.fromValue(e.Label)).unsigned = !1 : "string" == typeof e.Label ? t.Label = parseInt(e.Label, 10) : "number" == typeof e.Label ? t.Label = e.Label : "object" == typeof e.Label && (t.Label = new i.LongBits(e.Label.low >>> 0, e.Label.high >>> 0).toNumber())), null != e.PieceId && (i.Long ? (t.PieceId = i.Long.fromValue(e.PieceId)).unsigned = !1 : "string" == typeof e.PieceId ? t.PieceId = parseInt(e.PieceId, 10) : "number" == typeof e.PieceId ? t.PieceId = e.PieceId : "object" == typeof e.PieceId && (t.PieceId = new i.LongBits(e.PieceId.low >>> 0, e.PieceId.high >>> 0).toNumber())), null != e.Model && (t.Model = String(e.Model)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Positions = [], n.AttrIds = [], n.ArtefactForge = [], n.Skills = [], n.Slots = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Element = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Element = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Label = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Label = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PieceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PieceId = t.longs === String ? "0" : 0, n.Model = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Element && e.hasOwnProperty("Element") && ("number" == typeof e.Element ? n.Element = t.longs === String ? String(e.Element) : e.Element : n.Element = t.longs === String ? i.Long.prototype.toString.call(e.Element) : t.longs === Number ? new i.LongBits(e.Element.low >>> 0, e.Element.high >>> 0).toNumber() : e.Element), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), e.Positions && e.Positions.length) {
                    n.Positions = [];
                    for (var r = 0; r < e.Positions.length; ++r) n.Positions[r] = a.IntArray_Config.toObject(e.Positions[r], t)
                }
                if (e.AttrIds && e.AttrIds.length)
                    for (n.AttrIds = [], r = 0; r < e.AttrIds.length; ++r) "number" == typeof e.AttrIds[r] ? n.AttrIds[r] = t.longs === String ? String(e.AttrIds[r]) : e.AttrIds[r] : n.AttrIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.AttrIds[r]) : t.longs === Number ? new i.LongBits(e.AttrIds[r].low >>> 0, e.AttrIds[r].high >>> 0).toNumber() : e.AttrIds[r];
                if (e.ArtefactForge && e.ArtefactForge.length)
                    for (n.ArtefactForge = [], r = 0; r < e.ArtefactForge.length; ++r) "number" == typeof e.ArtefactForge[r] ? n.ArtefactForge[r] = t.longs === String ? String(e.ArtefactForge[r]) : e.ArtefactForge[r] : n.ArtefactForge[r] = t.longs === String ? i.Long.prototype.toString.call(e.ArtefactForge[r]) : t.longs === Number ? new i.LongBits(e.ArtefactForge[r].low >>> 0, e.ArtefactForge[r].high >>> 0).toNumber() : e.ArtefactForge[r];
                if (e.Skills && e.Skills.length)
                    for (n.Skills = [], r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t);
                if (e.Slots && e.Slots.length)
                    for (n.Slots = [], r = 0; r < e.Slots.length; ++r) "number" == typeof e.Slots[r] ? n.Slots[r] = t.longs === String ? String(e.Slots[r]) : e.Slots[r] : n.Slots[r] = t.longs === String ? i.Long.prototype.toString.call(e.Slots[r]) : t.longs === Number ? new i.LongBits(e.Slots[r].low >>> 0, e.Slots[r].high >>> 0).toNumber() : e.Slots[r];
                return null != e.Label && e.hasOwnProperty("Label") && ("number" == typeof e.Label ? n.Label = t.longs === String ? String(e.Label) : e.Label : n.Label = t.longs === String ? i.Long.prototype.toString.call(e.Label) : t.longs === Number ? new i.LongBits(e.Label.low >>> 0, e.Label.high >>> 0).toNumber() : e.Label), null != e.PieceId && e.hasOwnProperty("PieceId") && ("number" == typeof e.PieceId ? n.PieceId = t.longs === String ? String(e.PieceId) : e.PieceId : n.PieceId = t.longs === String ? i.Long.prototype.toString.call(e.PieceId) : t.longs === Number ? new i.LongBits(e.PieceId.low >>> 0, e.PieceId.high >>> 0).toNumber() : e.PieceId), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Artefact_Config"
            }, e
        }(), a.ArtefactStar_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Materials = [], this.NodeAttrs = [], this.NodeMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Materials = i.emptyArray, e.prototype.NodeAttrs = i.emptyArray, e.prototype.NodeMaterials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(16).int64(e.NextId), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(32).int64(e.Star), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(40).int64(e.Quality), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(50).fork()).ldelim();
                if (null != e.Materials && e.Materials.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.Materials.length; ++n) t.int64(e.Materials[n]);
                    t.ldelim()
                }
                if (null != e.NodeAttrs && e.NodeAttrs.length)
                    for (n = 0; n < e.NodeAttrs.length; ++n) a.IntArray_Config.encode(e.NodeAttrs[n], t.uint32(66).fork()).ldelim();
                if (null != e.NodeMaterials && e.NodeMaterials.length)
                    for (n = 0; n < e.NodeMaterials.length; ++n) a.IntArray_Config.encode(e.NodeMaterials[n], t.uint32(74).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ArtefactStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.NextId = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Star = e.int64();
                            break;
                        case 5:
                            r.Quality = e.int64();
                            break;
                        case 6:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            if (r.Materials && r.Materials.length || (r.Materials = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Materials.push(e.int64());
                            else r.Materials.push(e.int64());
                            break;
                        case 8:
                            r.NodeAttrs && r.NodeAttrs.length || (r.NodeAttrs = []), r.NodeAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.NodeMaterials && r.NodeMaterials.length || (r.NodeMaterials = []), r.NodeMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high))) return "NextId: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high))) return "Star: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t)
                        if (!(i.isInteger(e.Materials[t]) || e.Materials[t] && i.isInteger(e.Materials[t].low) && i.isInteger(e.Materials[t].high))) return "Materials: integer|Long[] expected"
                }
                if (null != e.NodeAttrs && e.hasOwnProperty("NodeAttrs")) {
                    if (!Array.isArray(e.NodeAttrs)) return "NodeAttrs: array expected";
                    for (t = 0; t < e.NodeAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.NodeAttrs[t])) return "NodeAttrs." + n
                }
                if (null != e.NodeMaterials && e.hasOwnProperty("NodeMaterials")) {
                    if (!Array.isArray(e.NodeMaterials)) return "NodeMaterials: array expected";
                    for (t = 0; t < e.NodeMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.NodeMaterials[t])) return "NodeMaterials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ArtefactStar_Config) return e;
                var t = new a.ArtefactStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ArtefactStar_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ArtefactStar_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".ArtefactStar_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) i.Long ? (t.Materials[n] = i.Long.fromValue(e.Materials[n])).unsigned = !1 : "string" == typeof e.Materials[n] ? t.Materials[n] = parseInt(e.Materials[n], 10) : "number" == typeof e.Materials[n] ? t.Materials[n] = e.Materials[n] : "object" == typeof e.Materials[n] && (t.Materials[n] = new i.LongBits(e.Materials[n].low >>> 0, e.Materials[n].high >>> 0).toNumber())
                }
                if (e.NodeAttrs) {
                    if (!Array.isArray(e.NodeAttrs)) throw TypeError(".ArtefactStar_Config.NodeAttrs: array expected");
                    for (t.NodeAttrs = [], n = 0; n < e.NodeAttrs.length; ++n) {
                        if ("object" != typeof e.NodeAttrs[n]) throw TypeError(".ArtefactStar_Config.NodeAttrs: object expected");
                        t.NodeAttrs[n] = a.IntArray_Config.fromObject(e.NodeAttrs[n])
                    }
                }
                if (e.NodeMaterials) {
                    if (!Array.isArray(e.NodeMaterials)) throw TypeError(".ArtefactStar_Config.NodeMaterials: array expected");
                    for (t.NodeMaterials = [], n = 0; n < e.NodeMaterials.length; ++n) {
                        if ("object" != typeof e.NodeMaterials[n]) throw TypeError(".ArtefactStar_Config.NodeMaterials: object expected");
                        t.NodeMaterials[n] = a.IntArray_Config.fromObject(e.NodeMaterials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Materials = [], n.NodeAttrs = [], n.NodeMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) "number" == typeof e.Materials[r] ? n.Materials[r] = t.longs === String ? String(e.Materials[r]) : e.Materials[r] : n.Materials[r] = t.longs === String ? i.Long.prototype.toString.call(e.Materials[r]) : t.longs === Number ? new i.LongBits(e.Materials[r].low >>> 0, e.Materials[r].high >>> 0).toNumber() : e.Materials[r];
                if (e.NodeAttrs && e.NodeAttrs.length)
                    for (n.NodeAttrs = [], r = 0; r < e.NodeAttrs.length; ++r) n.NodeAttrs[r] = a.IntArray_Config.toObject(e.NodeAttrs[r], t);
                if (e.NodeMaterials && e.NodeMaterials.length)
                    for (n.NodeMaterials = [], r = 0; r < e.NodeMaterials.length; ++r) n.NodeMaterials[r] = a.IntArray_Config.toObject(e.NodeMaterials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ArtefactStar_Config"
            }, e
        }(), a.ArtefactForge_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.ForgeAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.ForgeAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.ForgeAttrs && e.ForgeAttrs.length)
                    for (n = 0; n < e.ForgeAttrs.length; ++n) a.IntArray_Config.encode(e.ForgeAttrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ArtefactForge_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.ForgeAttrs && r.ForgeAttrs.length || (r.ForgeAttrs = []), r.ForgeAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.ForgeAttrs && e.hasOwnProperty("ForgeAttrs")) {
                    if (!Array.isArray(e.ForgeAttrs)) return "ForgeAttrs: array expected";
                    for (t = 0; t < e.ForgeAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ForgeAttrs[t])) return "ForgeAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ArtefactForge_Config) return e;
                var t = new a.ArtefactForge_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ArtefactForge_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ArtefactForge_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.ForgeAttrs) {
                    if (!Array.isArray(e.ForgeAttrs)) throw TypeError(".ArtefactForge_Config.ForgeAttrs: array expected");
                    for (t.ForgeAttrs = [], n = 0; n < e.ForgeAttrs.length; ++n) {
                        if ("object" != typeof e.ForgeAttrs[n]) throw TypeError(".ArtefactForge_Config.ForgeAttrs: object expected");
                        t.ForgeAttrs[n] = a.IntArray_Config.fromObject(e.ForgeAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.ForgeAttrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.ForgeAttrs && e.ForgeAttrs.length)
                    for (n.ForgeAttrs = [], r = 0; r < e.ForgeAttrs.length; ++r) n.ForgeAttrs[r] = a.IntArray_Config.toObject(e.ForgeAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ArtefactForge_Config"
            }, e
        }(), a.ArtefactResonance_Config = function() {
            function e(e) {
                if (this.Artefact = [], this.AttrIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Artefact = i.emptyArray, e.prototype.AttrIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Artefact && e.Artefact.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Artefact.length; ++n) t.int64(e.Artefact[n]);
                    t.ldelim()
                }
                if (null != e.AttrIds && e.AttrIds.length) {
                    for (t.uint32(26).fork(), n = 0; n < e.AttrIds.length; ++n) t.int64(e.AttrIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ArtefactResonance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Artefact && r.Artefact.length || (r.Artefact = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Artefact.push(e.int64());
                            else r.Artefact.push(e.int64());
                            break;
                        case 3:
                            if (r.AttrIds && r.AttrIds.length || (r.AttrIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.AttrIds.push(e.int64());
                            else r.AttrIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Artefact && e.hasOwnProperty("Artefact")) {
                    if (!Array.isArray(e.Artefact)) return "Artefact: array expected";
                    for (var t = 0; t < e.Artefact.length; ++t)
                        if (!(i.isInteger(e.Artefact[t]) || e.Artefact[t] && i.isInteger(e.Artefact[t].low) && i.isInteger(e.Artefact[t].high))) return "Artefact: integer|Long[] expected"
                }
                if (null != e.AttrIds && e.hasOwnProperty("AttrIds")) {
                    if (!Array.isArray(e.AttrIds)) return "AttrIds: array expected";
                    for (t = 0; t < e.AttrIds.length; ++t)
                        if (!(i.isInteger(e.AttrIds[t]) || e.AttrIds[t] && i.isInteger(e.AttrIds[t].low) && i.isInteger(e.AttrIds[t].high))) return "AttrIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ArtefactResonance_Config) return e;
                var t = new a.ArtefactResonance_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Artefact) {
                    if (!Array.isArray(e.Artefact)) throw TypeError(".ArtefactResonance_Config.Artefact: array expected");
                    t.Artefact = [];
                    for (var n = 0; n < e.Artefact.length; ++n) i.Long ? (t.Artefact[n] = i.Long.fromValue(e.Artefact[n])).unsigned = !1 : "string" == typeof e.Artefact[n] ? t.Artefact[n] = parseInt(e.Artefact[n], 10) : "number" == typeof e.Artefact[n] ? t.Artefact[n] = e.Artefact[n] : "object" == typeof e.Artefact[n] && (t.Artefact[n] = new i.LongBits(e.Artefact[n].low >>> 0, e.Artefact[n].high >>> 0).toNumber())
                }
                if (e.AttrIds) {
                    if (!Array.isArray(e.AttrIds)) throw TypeError(".ArtefactResonance_Config.AttrIds: array expected");
                    for (t.AttrIds = [], n = 0; n < e.AttrIds.length; ++n) i.Long ? (t.AttrIds[n] = i.Long.fromValue(e.AttrIds[n])).unsigned = !1 : "string" == typeof e.AttrIds[n] ? t.AttrIds[n] = parseInt(e.AttrIds[n], 10) : "number" == typeof e.AttrIds[n] ? t.AttrIds[n] = e.AttrIds[n] : "object" == typeof e.AttrIds[n] && (t.AttrIds[n] = new i.LongBits(e.AttrIds[n].low >>> 0, e.AttrIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Artefact = [], n.AttrIds = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Artefact && e.Artefact.length) {
                    n.Artefact = [];
                    for (var r = 0; r < e.Artefact.length; ++r) "number" == typeof e.Artefact[r] ? n.Artefact[r] = t.longs === String ? String(e.Artefact[r]) : e.Artefact[r] : n.Artefact[r] = t.longs === String ? i.Long.prototype.toString.call(e.Artefact[r]) : t.longs === Number ? new i.LongBits(e.Artefact[r].low >>> 0, e.Artefact[r].high >>> 0).toNumber() : e.Artefact[r]
                }
                if (e.AttrIds && e.AttrIds.length)
                    for (n.AttrIds = [], r = 0; r < e.AttrIds.length; ++r) "number" == typeof e.AttrIds[r] ? n.AttrIds[r] = t.longs === String ? String(e.AttrIds[r]) : e.AttrIds[r] : n.AttrIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.AttrIds[r]) : t.longs === Number ? new i.LongBits(e.AttrIds[r].low >>> 0, e.AttrIds[r].high >>> 0).toNumber() : e.AttrIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ArtefactResonance_Config"
            }, e
        }(), a.ArtefactResonanceAttrs_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(16).int64(e.Star), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ArtefactResonanceAttrs_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Star = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high))) return "Star: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ArtefactResonanceAttrs_Config) return e;
                var t = new a.ArtefactResonanceAttrs_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ArtefactResonanceAttrs_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ArtefactResonanceAttrs_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ArtefactResonanceAttrs_Config"
            }, e
        }(), a.ItemArtefactCard_Config = function() {
            function e(e) {
                if (this.DecomposeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ArtefactId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DecomposeItems = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ArtefactId && Object.hasOwnProperty.call(e, "ArtefactId") && t.uint32(16).int64(e.ArtefactId), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(24).int64(e.Star), null != e.DecomposeItems && e.DecomposeItems.length)
                    for (var n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemArtefactCard_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.ArtefactId = e.int64();
                            break;
                        case 3:
                            r.Star = e.int64();
                            break;
                        case 5:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.ArtefactId && e.hasOwnProperty("ArtefactId") && !(i.isInteger(e.ArtefactId) || e.ArtefactId && i.isInteger(e.ArtefactId.low) && i.isInteger(e.ArtefactId.high))) return "ArtefactId: integer|Long expected";
                if (null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high))) return "Star: integer|Long expected";
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (var t = 0; t < e.DecomposeItems.length; ++t) {
                        var n = a.IntArray_Config.verify(e.DecomposeItems[t]);
                        if (n) return "DecomposeItems." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemArtefactCard_Config) return e;
                var t = new a.ItemArtefactCard_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.ArtefactId && (i.Long ? (t.ArtefactId = i.Long.fromValue(e.ArtefactId)).unsigned = !1 : "string" == typeof e.ArtefactId ? t.ArtefactId = parseInt(e.ArtefactId, 10) : "number" == typeof e.ArtefactId ? t.ArtefactId = e.ArtefactId : "object" == typeof e.ArtefactId && (t.ArtefactId = new i.LongBits(e.ArtefactId.low >>> 0, e.ArtefactId.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".ItemArtefactCard_Config.DecomposeItems: array expected");
                    t.DecomposeItems = [];
                    for (var n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".ItemArtefactCard_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.DecomposeItems = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ArtefactId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ArtefactId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.ArtefactId && e.hasOwnProperty("ArtefactId") && ("number" == typeof e.ArtefactId ? n.ArtefactId = t.longs === String ? String(e.ArtefactId) : e.ArtefactId : n.ArtefactId = t.longs === String ? i.Long.prototype.toString.call(e.ArtefactId) : t.longs === Number ? new i.LongBits(e.ArtefactId.low >>> 0, e.ArtefactId.high >>> 0).toNumber() : e.ArtefactId), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), e.DecomposeItems && e.DecomposeItems.length) {
                    n.DecomposeItems = [];
                    for (var r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemArtefactCard_Config"
            }, e
        }(), a.ArtefactRelic_Config = function() {
            function e(e) {
                if (this.Maps = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Maps = i.emptyArray, e.prototype.Unlock = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Maps && e.Maps.length)
                    for (var n = 0; n < e.Maps.length; ++n) a.IntArray_Config.encode(e.Maps[n], t.uint32(18).fork()).ldelim();
                return null != e.Unlock && Object.hasOwnProperty.call(e, "Unlock") && t.uint32(24).int64(e.Unlock), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ArtefactRelic_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Maps && r.Maps.length || (r.Maps = []), r.Maps.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Unlock = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Maps && e.hasOwnProperty("Maps")) {
                    if (!Array.isArray(e.Maps)) return "Maps: array expected";
                    for (var t = 0; t < e.Maps.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Maps[t]);
                        if (n) return "Maps." + n
                    }
                }
                return null != e.Unlock && e.hasOwnProperty("Unlock") && !(i.isInteger(e.Unlock) || e.Unlock && i.isInteger(e.Unlock.low) && i.isInteger(e.Unlock.high)) ? "Unlock: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ArtefactRelic_Config) return e;
                var t = new a.ArtefactRelic_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Maps) {
                    if (!Array.isArray(e.Maps)) throw TypeError(".ArtefactRelic_Config.Maps: array expected");
                    t.Maps = [];
                    for (var n = 0; n < e.Maps.length; ++n) {
                        if ("object" != typeof e.Maps[n]) throw TypeError(".ArtefactRelic_Config.Maps: object expected");
                        t.Maps[n] = a.IntArray_Config.fromObject(e.Maps[n])
                    }
                }
                return null != e.Unlock && (i.Long ? (t.Unlock = i.Long.fromValue(e.Unlock)).unsigned = !1 : "string" == typeof e.Unlock ? t.Unlock = parseInt(e.Unlock, 10) : "number" == typeof e.Unlock ? t.Unlock = e.Unlock : "object" == typeof e.Unlock && (t.Unlock = new i.LongBits(e.Unlock.low >>> 0, e.Unlock.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Maps = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Unlock = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Unlock = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Maps && e.Maps.length) {
                    n.Maps = [];
                    for (var r = 0; r < e.Maps.length; ++r) n.Maps[r] = a.IntArray_Config.toObject(e.Maps[r], t)
                }
                return null != e.Unlock && e.hasOwnProperty("Unlock") && ("number" == typeof e.Unlock ? n.Unlock = t.longs === String ? String(e.Unlock) : e.Unlock : n.Unlock = t.longs === String ? i.Long.prototype.toString.call(e.Unlock) : t.longs === Number ? new i.LongBits(e.Unlock.low >>> 0, e.Unlock.high >>> 0).toNumber() : e.Unlock), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ArtefactRelic_Config"
            }, e
        }(), a.ArtefactRelicMap_Config = function() {
            function e(e) {
                if (this.MapIds = [], this.Conditions = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIds = i.emptyArray, e.prototype.Conditions = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.prototype.Icon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.MapIds && e.MapIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.MapIds.length; ++n) t.int64(e.MapIds[n]);
                    t.ldelim()
                }
                if (null != e.Conditions && e.Conditions.length)
                    for (n = 0; n < e.Conditions.length; ++n) a.IntArray_Config.encode(e.Conditions[n], t.uint32(34).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(42).fork()).ldelim();
                return null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(50).string(e.Icon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ArtefactRelicMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            if (r.MapIds && r.MapIds.length || (r.MapIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.MapIds.push(e.int64());
                            else r.MapIds.push(e.int64());
                            break;
                        case 4:
                            r.Conditions && r.Conditions.length || (r.Conditions = []), r.Conditions.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Icon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.MapIds && e.hasOwnProperty("MapIds")) {
                    if (!Array.isArray(e.MapIds)) return "MapIds: array expected";
                    for (var t = 0; t < e.MapIds.length; ++t)
                        if (!(i.isInteger(e.MapIds[t]) || e.MapIds[t] && i.isInteger(e.MapIds[t].low) && i.isInteger(e.MapIds[t].high))) return "MapIds: integer|Long[] expected"
                }
                if (null != e.Conditions && e.hasOwnProperty("Conditions")) {
                    if (!Array.isArray(e.Conditions)) return "Conditions: array expected";
                    for (t = 0; t < e.Conditions.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Conditions[t])) return "Conditions." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ArtefactRelicMap_Config) return e;
                var t = new a.ArtefactRelicMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.MapIds) {
                    if (!Array.isArray(e.MapIds)) throw TypeError(".ArtefactRelicMap_Config.MapIds: array expected");
                    t.MapIds = [];
                    for (var n = 0; n < e.MapIds.length; ++n) i.Long ? (t.MapIds[n] = i.Long.fromValue(e.MapIds[n])).unsigned = !1 : "string" == typeof e.MapIds[n] ? t.MapIds[n] = parseInt(e.MapIds[n], 10) : "number" == typeof e.MapIds[n] ? t.MapIds[n] = e.MapIds[n] : "object" == typeof e.MapIds[n] && (t.MapIds[n] = new i.LongBits(e.MapIds[n].low >>> 0, e.MapIds[n].high >>> 0).toNumber())
                }
                if (e.Conditions) {
                    if (!Array.isArray(e.Conditions)) throw TypeError(".ArtefactRelicMap_Config.Conditions: array expected");
                    for (t.Conditions = [], n = 0; n < e.Conditions.length; ++n) {
                        if ("object" != typeof e.Conditions[n]) throw TypeError(".ArtefactRelicMap_Config.Conditions: object expected");
                        t.Conditions[n] = a.IntArray_Config.fromObject(e.Conditions[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".ArtefactRelicMap_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".ArtefactRelicMap_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.Icon && (t.Icon = String(e.Icon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.MapIds = [], n.Conditions = [], n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, n.Icon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.MapIds && e.MapIds.length) {
                    n.MapIds = [];
                    for (var r = 0; r < e.MapIds.length; ++r) "number" == typeof e.MapIds[r] ? n.MapIds[r] = t.longs === String ? String(e.MapIds[r]) : e.MapIds[r] : n.MapIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.MapIds[r]) : t.longs === Number ? new i.LongBits(e.MapIds[r].low >>> 0, e.MapIds[r].high >>> 0).toNumber() : e.MapIds[r]
                }
                if (e.Conditions && e.Conditions.length)
                    for (n.Conditions = [], r = 0; r < e.Conditions.length; ++r) n.Conditions[r] = a.IntArray_Config.toObject(e.Conditions[r], t);
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ArtefactRelicMap_Config"
            }, e
        }(), a.ElementTempleAttrs_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ElementTempleAttrs_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ElementTempleAttrs_Config) return e;
                var t = new a.ElementTempleAttrs_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ElementTempleAttrs_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ElementTempleAttrs_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ElementTempleAttrs_Config"
            }, e
        }(), a.ElementTempleResonance_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroStar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PersonalityStar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.WeaponStar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroStar && Object.hasOwnProperty.call(e, "HeroStar") && t.uint32(16).int64(e.HeroStar), null != e.PersonalityStar && Object.hasOwnProperty.call(e, "PersonalityStar") && t.uint32(24).int64(e.PersonalityStar), null != e.WeaponStar && Object.hasOwnProperty.call(e, "WeaponStar") && t.uint32(32).int64(e.WeaponStar), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ElementTempleResonance_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HeroStar = e.int64();
                            break;
                        case 3:
                            r.PersonalityStar = e.int64();
                            break;
                        case 4:
                            r.WeaponStar = e.int64();
                            break;
                        case 5:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroStar && e.hasOwnProperty("HeroStar") && !(i.isInteger(e.HeroStar) || e.HeroStar && i.isInteger(e.HeroStar.low) && i.isInteger(e.HeroStar.high))) return "HeroStar: integer|Long expected";
                if (null != e.PersonalityStar && e.hasOwnProperty("PersonalityStar") && !(i.isInteger(e.PersonalityStar) || e.PersonalityStar && i.isInteger(e.PersonalityStar.low) && i.isInteger(e.PersonalityStar.high))) return "PersonalityStar: integer|Long expected";
                if (null != e.WeaponStar && e.hasOwnProperty("WeaponStar") && !(i.isInteger(e.WeaponStar) || e.WeaponStar && i.isInteger(e.WeaponStar.low) && i.isInteger(e.WeaponStar.high))) return "WeaponStar: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ElementTempleResonance_Config) return e;
                var t = new a.ElementTempleResonance_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroStar && (i.Long ? (t.HeroStar = i.Long.fromValue(e.HeroStar)).unsigned = !1 : "string" == typeof e.HeroStar ? t.HeroStar = parseInt(e.HeroStar, 10) : "number" == typeof e.HeroStar ? t.HeroStar = e.HeroStar : "object" == typeof e.HeroStar && (t.HeroStar = new i.LongBits(e.HeroStar.low >>> 0, e.HeroStar.high >>> 0).toNumber())), null != e.PersonalityStar && (i.Long ? (t.PersonalityStar = i.Long.fromValue(e.PersonalityStar)).unsigned = !1 : "string" == typeof e.PersonalityStar ? t.PersonalityStar = parseInt(e.PersonalityStar, 10) : "number" == typeof e.PersonalityStar ? t.PersonalityStar = e.PersonalityStar : "object" == typeof e.PersonalityStar && (t.PersonalityStar = new i.LongBits(e.PersonalityStar.low >>> 0, e.PersonalityStar.high >>> 0).toNumber())), null != e.WeaponStar && (i.Long ? (t.WeaponStar = i.Long.fromValue(e.WeaponStar)).unsigned = !1 : "string" == typeof e.WeaponStar ? t.WeaponStar = parseInt(e.WeaponStar, 10) : "number" == typeof e.WeaponStar ? t.WeaponStar = e.WeaponStar : "object" == typeof e.WeaponStar && (t.WeaponStar = new i.LongBits(e.WeaponStar.low >>> 0, e.WeaponStar.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ElementTempleResonance_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ElementTempleResonance_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroStar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroStar = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PersonalityStar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PersonalityStar = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.WeaponStar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.WeaponStar = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroStar && e.hasOwnProperty("HeroStar") && ("number" == typeof e.HeroStar ? n.HeroStar = t.longs === String ? String(e.HeroStar) : e.HeroStar : n.HeroStar = t.longs === String ? i.Long.prototype.toString.call(e.HeroStar) : t.longs === Number ? new i.LongBits(e.HeroStar.low >>> 0, e.HeroStar.high >>> 0).toNumber() : e.HeroStar), null != e.PersonalityStar && e.hasOwnProperty("PersonalityStar") && ("number" == typeof e.PersonalityStar ? n.PersonalityStar = t.longs === String ? String(e.PersonalityStar) : e.PersonalityStar : n.PersonalityStar = t.longs === String ? i.Long.prototype.toString.call(e.PersonalityStar) : t.longs === Number ? new i.LongBits(e.PersonalityStar.low >>> 0, e.PersonalityStar.high >>> 0).toNumber() : e.PersonalityStar), null != e.WeaponStar && e.hasOwnProperty("WeaponStar") && ("number" == typeof e.WeaponStar ? n.WeaponStar = t.longs === String ? String(e.WeaponStar) : e.WeaponStar : n.WeaponStar = t.longs === String ? i.Long.prototype.toString.call(e.WeaponStar) : t.longs === Number ? new i.LongBits(e.WeaponStar.low >>> 0, e.WeaponStar.high >>> 0).toNumber() : e.WeaponStar), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ElementTempleResonance_Config"
            }, e
        }(), a.ElementTempleBless_Config = function() {
            function e(e) {
                if (this.HeroAttrIds = [], this.PersonalityAttrIds = [], this.WeaponAttrIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroAttrIds = i.emptyArray, e.prototype.PersonalityAttrIds = i.emptyArray, e.prototype.WeaponAttrIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(16).int64(e.HeroId), null != e.HeroAttrIds && e.HeroAttrIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.HeroAttrIds.length; ++n) t.int64(e.HeroAttrIds[n]);
                    t.ldelim()
                }
                if (null != e.PersonalityAttrIds && e.PersonalityAttrIds.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.PersonalityAttrIds.length; ++n) t.int64(e.PersonalityAttrIds[n]);
                    t.ldelim()
                }
                if (null != e.WeaponAttrIds && e.WeaponAttrIds.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.WeaponAttrIds.length; ++n) t.int64(e.WeaponAttrIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ElementTempleBless_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HeroId = e.int64();
                            break;
                        case 3:
                            if (r.HeroAttrIds && r.HeroAttrIds.length || (r.HeroAttrIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.HeroAttrIds.push(e.int64());
                            else r.HeroAttrIds.push(e.int64());
                            break;
                        case 4:
                            if (r.PersonalityAttrIds && r.PersonalityAttrIds.length || (r.PersonalityAttrIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.PersonalityAttrIds.push(e.int64());
                            else r.PersonalityAttrIds.push(e.int64());
                            break;
                        case 5:
                            if (r.WeaponAttrIds && r.WeaponAttrIds.length || (r.WeaponAttrIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.WeaponAttrIds.push(e.int64());
                            else r.WeaponAttrIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high))) return "HeroId: integer|Long expected";
                if (null != e.HeroAttrIds && e.hasOwnProperty("HeroAttrIds")) {
                    if (!Array.isArray(e.HeroAttrIds)) return "HeroAttrIds: array expected";
                    for (var t = 0; t < e.HeroAttrIds.length; ++t)
                        if (!(i.isInteger(e.HeroAttrIds[t]) || e.HeroAttrIds[t] && i.isInteger(e.HeroAttrIds[t].low) && i.isInteger(e.HeroAttrIds[t].high))) return "HeroAttrIds: integer|Long[] expected"
                }
                if (null != e.PersonalityAttrIds && e.hasOwnProperty("PersonalityAttrIds")) {
                    if (!Array.isArray(e.PersonalityAttrIds)) return "PersonalityAttrIds: array expected";
                    for (t = 0; t < e.PersonalityAttrIds.length; ++t)
                        if (!(i.isInteger(e.PersonalityAttrIds[t]) || e.PersonalityAttrIds[t] && i.isInteger(e.PersonalityAttrIds[t].low) && i.isInteger(e.PersonalityAttrIds[t].high))) return "PersonalityAttrIds: integer|Long[] expected"
                }
                if (null != e.WeaponAttrIds && e.hasOwnProperty("WeaponAttrIds")) {
                    if (!Array.isArray(e.WeaponAttrIds)) return "WeaponAttrIds: array expected";
                    for (t = 0; t < e.WeaponAttrIds.length; ++t)
                        if (!(i.isInteger(e.WeaponAttrIds[t]) || e.WeaponAttrIds[t] && i.isInteger(e.WeaponAttrIds[t].low) && i.isInteger(e.WeaponAttrIds[t].high))) return "WeaponAttrIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ElementTempleBless_Config) return e;
                var t = new a.ElementTempleBless_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), e.HeroAttrIds) {
                    if (!Array.isArray(e.HeroAttrIds)) throw TypeError(".ElementTempleBless_Config.HeroAttrIds: array expected");
                    t.HeroAttrIds = [];
                    for (var n = 0; n < e.HeroAttrIds.length; ++n) i.Long ? (t.HeroAttrIds[n] = i.Long.fromValue(e.HeroAttrIds[n])).unsigned = !1 : "string" == typeof e.HeroAttrIds[n] ? t.HeroAttrIds[n] = parseInt(e.HeroAttrIds[n], 10) : "number" == typeof e.HeroAttrIds[n] ? t.HeroAttrIds[n] = e.HeroAttrIds[n] : "object" == typeof e.HeroAttrIds[n] && (t.HeroAttrIds[n] = new i.LongBits(e.HeroAttrIds[n].low >>> 0, e.HeroAttrIds[n].high >>> 0).toNumber())
                }
                if (e.PersonalityAttrIds) {
                    if (!Array.isArray(e.PersonalityAttrIds)) throw TypeError(".ElementTempleBless_Config.PersonalityAttrIds: array expected");
                    for (t.PersonalityAttrIds = [], n = 0; n < e.PersonalityAttrIds.length; ++n) i.Long ? (t.PersonalityAttrIds[n] = i.Long.fromValue(e.PersonalityAttrIds[n])).unsigned = !1 : "string" == typeof e.PersonalityAttrIds[n] ? t.PersonalityAttrIds[n] = parseInt(e.PersonalityAttrIds[n], 10) : "number" == typeof e.PersonalityAttrIds[n] ? t.PersonalityAttrIds[n] = e.PersonalityAttrIds[n] : "object" == typeof e.PersonalityAttrIds[n] && (t.PersonalityAttrIds[n] = new i.LongBits(e.PersonalityAttrIds[n].low >>> 0, e.PersonalityAttrIds[n].high >>> 0).toNumber())
                }
                if (e.WeaponAttrIds) {
                    if (!Array.isArray(e.WeaponAttrIds)) throw TypeError(".ElementTempleBless_Config.WeaponAttrIds: array expected");
                    for (t.WeaponAttrIds = [], n = 0; n < e.WeaponAttrIds.length; ++n) i.Long ? (t.WeaponAttrIds[n] = i.Long.fromValue(e.WeaponAttrIds[n])).unsigned = !1 : "string" == typeof e.WeaponAttrIds[n] ? t.WeaponAttrIds[n] = parseInt(e.WeaponAttrIds[n], 10) : "number" == typeof e.WeaponAttrIds[n] ? t.WeaponAttrIds[n] = e.WeaponAttrIds[n] : "object" == typeof e.WeaponAttrIds[n] && (t.WeaponAttrIds[n] = new i.LongBits(e.WeaponAttrIds[n].low >>> 0, e.WeaponAttrIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.HeroAttrIds = [], n.PersonalityAttrIds = [], n.WeaponAttrIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), e.HeroAttrIds && e.HeroAttrIds.length) {
                    n.HeroAttrIds = [];
                    for (var r = 0; r < e.HeroAttrIds.length; ++r) "number" == typeof e.HeroAttrIds[r] ? n.HeroAttrIds[r] = t.longs === String ? String(e.HeroAttrIds[r]) : e.HeroAttrIds[r] : n.HeroAttrIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.HeroAttrIds[r]) : t.longs === Number ? new i.LongBits(e.HeroAttrIds[r].low >>> 0, e.HeroAttrIds[r].high >>> 0).toNumber() : e.HeroAttrIds[r]
                }
                if (e.PersonalityAttrIds && e.PersonalityAttrIds.length)
                    for (n.PersonalityAttrIds = [], r = 0; r < e.PersonalityAttrIds.length; ++r) "number" == typeof e.PersonalityAttrIds[r] ? n.PersonalityAttrIds[r] = t.longs === String ? String(e.PersonalityAttrIds[r]) : e.PersonalityAttrIds[r] : n.PersonalityAttrIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.PersonalityAttrIds[r]) : t.longs === Number ? new i.LongBits(e.PersonalityAttrIds[r].low >>> 0, e.PersonalityAttrIds[r].high >>> 0).toNumber() : e.PersonalityAttrIds[r];
                if (e.WeaponAttrIds && e.WeaponAttrIds.length)
                    for (n.WeaponAttrIds = [], r = 0; r < e.WeaponAttrIds.length; ++r) "number" == typeof e.WeaponAttrIds[r] ? n.WeaponAttrIds[r] = t.longs === String ? String(e.WeaponAttrIds[r]) : e.WeaponAttrIds[r] : n.WeaponAttrIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.WeaponAttrIds[r]) : t.longs === Number ? new i.LongBits(e.WeaponAttrIds[r].low >>> 0, e.WeaponAttrIds[r].high >>> 0).toNumber() : e.WeaponAttrIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ElementTempleBless_Config"
            }, e
        }(), a.HeroStarAttrs_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroStarAttrs_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroStarAttrs_Config) return e;
                var t = new a.HeroStarAttrs_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroStarAttrs_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroStarAttrs_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroStarAttrs_Config"
            }, e
        }(), a.PetShowAttr_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.AttrScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return null != e.AttrScore && Object.hasOwnProperty.call(e, "AttrScore") && t.uint32(24).int64(e.AttrScore), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PetShowAttr_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.AttrScore = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.AttrScore && e.hasOwnProperty("AttrScore") && !(i.isInteger(e.AttrScore) || e.AttrScore && i.isInteger(e.AttrScore.low) && i.isInteger(e.AttrScore.high)) ? "AttrScore: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PetShowAttr_Config) return e;
                var t = new a.PetShowAttr_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".PetShowAttr_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".PetShowAttr_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.AttrScore && (i.Long ? (t.AttrScore = i.Long.fromValue(e.AttrScore)).unsigned = !1 : "string" == typeof e.AttrScore ? t.AttrScore = parseInt(e.AttrScore, 10) : "number" == typeof e.AttrScore ? t.AttrScore = e.AttrScore : "object" == typeof e.AttrScore && (t.AttrScore = new i.LongBits(e.AttrScore.low >>> 0, e.AttrScore.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.AttrScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AttrScore = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.AttrScore && e.hasOwnProperty("AttrScore") && ("number" == typeof e.AttrScore ? n.AttrScore = t.longs === String ? String(e.AttrScore) : e.AttrScore : n.AttrScore = t.longs === String ? i.Long.prototype.toString.call(e.AttrScore) : t.longs === Number ? new i.LongBits(e.AttrScore.low >>> 0, e.AttrScore.high >>> 0).toNumber() : e.AttrScore), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PetShowAttr_Config"
            }, e
        }(), a.PetShowHouse_Config = function() {
            function e(e) {
                if (this.Attr = [], this.ConsumeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attr = i.emptyArray, e.prototype.ConsumeItems = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attr && e.Attr.length)
                    for (var n = 0; n < e.Attr.length; ++n) a.IntArray_Config.encode(e.Attr[n], t.uint32(18).fork()).ldelim();
                if (null != e.ConsumeItems && e.ConsumeItems.length)
                    for (n = 0; n < e.ConsumeItems.length; ++n) a.IntArray_Config.encode(e.ConsumeItems[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PetShowHouse_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attr && r.Attr.length || (r.Attr = []), r.Attr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.ConsumeItems && r.ConsumeItems.length || (r.ConsumeItems = []), r.ConsumeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attr && e.hasOwnProperty("Attr")) {
                    if (!Array.isArray(e.Attr)) return "Attr: array expected";
                    for (var t = 0; t < e.Attr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attr[t])) return "Attr." + n
                }
                if (null != e.ConsumeItems && e.hasOwnProperty("ConsumeItems")) {
                    if (!Array.isArray(e.ConsumeItems)) return "ConsumeItems: array expected";
                    for (t = 0; t < e.ConsumeItems.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ConsumeItems[t])) return "ConsumeItems." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PetShowHouse_Config) return e;
                var t = new a.PetShowHouse_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attr) {
                    if (!Array.isArray(e.Attr)) throw TypeError(".PetShowHouse_Config.Attr: array expected");
                    t.Attr = [];
                    for (var n = 0; n < e.Attr.length; ++n) {
                        if ("object" != typeof e.Attr[n]) throw TypeError(".PetShowHouse_Config.Attr: object expected");
                        t.Attr[n] = a.IntArray_Config.fromObject(e.Attr[n])
                    }
                }
                if (e.ConsumeItems) {
                    if (!Array.isArray(e.ConsumeItems)) throw TypeError(".PetShowHouse_Config.ConsumeItems: array expected");
                    for (t.ConsumeItems = [], n = 0; n < e.ConsumeItems.length; ++n) {
                        if ("object" != typeof e.ConsumeItems[n]) throw TypeError(".PetShowHouse_Config.ConsumeItems: object expected");
                        t.ConsumeItems[n] = a.IntArray_Config.fromObject(e.ConsumeItems[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attr = [], n.ConsumeItems = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attr && e.Attr.length) {
                    n.Attr = [];
                    for (var r = 0; r < e.Attr.length; ++r) n.Attr[r] = a.IntArray_Config.toObject(e.Attr[r], t)
                }
                if (e.ConsumeItems && e.ConsumeItems.length)
                    for (n.ConsumeItems = [], r = 0; r < e.ConsumeItems.length; ++r) n.ConsumeItems[r] = a.IntArray_Config.toObject(e.ConsumeItems[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PetShowHouse_Config"
            }, e
        }(), a.LuckyCharmShowHouse_Config = function() {
            function e(e) {
                if (this.Attr = [], this.ConsumeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attr = i.emptyArray, e.prototype.ConsumeItems = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attr && e.Attr.length)
                    for (var n = 0; n < e.Attr.length; ++n) a.IntArray_Config.encode(e.Attr[n], t.uint32(18).fork()).ldelim();
                if (null != e.ConsumeItems && e.ConsumeItems.length)
                    for (n = 0; n < e.ConsumeItems.length; ++n) a.IntArray_Config.encode(e.ConsumeItems[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LuckyCharmShowHouse_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attr && r.Attr.length || (r.Attr = []), r.Attr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.ConsumeItems && r.ConsumeItems.length || (r.ConsumeItems = []), r.ConsumeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attr && e.hasOwnProperty("Attr")) {
                    if (!Array.isArray(e.Attr)) return "Attr: array expected";
                    for (var t = 0; t < e.Attr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attr[t])) return "Attr." + n
                }
                if (null != e.ConsumeItems && e.hasOwnProperty("ConsumeItems")) {
                    if (!Array.isArray(e.ConsumeItems)) return "ConsumeItems: array expected";
                    for (t = 0; t < e.ConsumeItems.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ConsumeItems[t])) return "ConsumeItems." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.LuckyCharmShowHouse_Config) return e;
                var t = new a.LuckyCharmShowHouse_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attr) {
                    if (!Array.isArray(e.Attr)) throw TypeError(".LuckyCharmShowHouse_Config.Attr: array expected");
                    t.Attr = [];
                    for (var n = 0; n < e.Attr.length; ++n) {
                        if ("object" != typeof e.Attr[n]) throw TypeError(".LuckyCharmShowHouse_Config.Attr: object expected");
                        t.Attr[n] = a.IntArray_Config.fromObject(e.Attr[n])
                    }
                }
                if (e.ConsumeItems) {
                    if (!Array.isArray(e.ConsumeItems)) throw TypeError(".LuckyCharmShowHouse_Config.ConsumeItems: array expected");
                    for (t.ConsumeItems = [], n = 0; n < e.ConsumeItems.length; ++n) {
                        if ("object" != typeof e.ConsumeItems[n]) throw TypeError(".LuckyCharmShowHouse_Config.ConsumeItems: object expected");
                        t.ConsumeItems[n] = a.IntArray_Config.fromObject(e.ConsumeItems[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attr = [], n.ConsumeItems = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attr && e.Attr.length) {
                    n.Attr = [];
                    for (var r = 0; r < e.Attr.length; ++r) n.Attr[r] = a.IntArray_Config.toObject(e.Attr[r], t)
                }
                if (e.ConsumeItems && e.ConsumeItems.length)
                    for (n.ConsumeItems = [], r = 0; r < e.ConsumeItems.length; ++r) n.ConsumeItems[r] = a.IntArray_Config.toObject(e.ConsumeItems[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LuckyCharmShowHouse_Config"
            }, e
        }(), a.LuckyCharmStar2_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs = [], this.Effects = [], this.ShowAttr = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Effects = i.emptyArray, e.prototype.ShowAttr = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(32).int64(e.Score), null != e.Effects && e.Effects.length)
                    for (n = 0; n < e.Effects.length; ++n) a.IntArray_Config.encode(e.Effects[n], t.uint32(42).fork()).ldelim();
                if (null != e.ShowAttr && e.ShowAttr.length)
                    for (n = 0; n < e.ShowAttr.length; ++n) a.IntArray_Config.encode(e.ShowAttr[n], t.uint32(50).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.LuckyCharmStar2_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Score = e.int64();
                            break;
                        case 5:
                            r.Effects && r.Effects.length || (r.Effects = []), r.Effects.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.ShowAttr && r.ShowAttr.length || (r.ShowAttr = []), r.ShowAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.Effects && e.hasOwnProperty("Effects")) {
                    if (!Array.isArray(e.Effects)) return "Effects: array expected";
                    for (t = 0; t < e.Effects.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Effects[t])) return "Effects." + n
                }
                if (null != e.ShowAttr && e.hasOwnProperty("ShowAttr")) {
                    if (!Array.isArray(e.ShowAttr)) return "ShowAttr: array expected";
                    for (t = 0; t < e.ShowAttr.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.ShowAttr[t])) return "ShowAttr." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.LuckyCharmStar2_Config) return e;
                var t = new a.LuckyCharmStar2_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".LuckyCharmStar2_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".LuckyCharmStar2_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".LuckyCharmStar2_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".LuckyCharmStar2_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.Effects) {
                    if (!Array.isArray(e.Effects)) throw TypeError(".LuckyCharmStar2_Config.Effects: array expected");
                    for (t.Effects = [], n = 0; n < e.Effects.length; ++n) {
                        if ("object" != typeof e.Effects[n]) throw TypeError(".LuckyCharmStar2_Config.Effects: object expected");
                        t.Effects[n] = a.IntArray_Config.fromObject(e.Effects[n])
                    }
                }
                if (e.ShowAttr) {
                    if (!Array.isArray(e.ShowAttr)) throw TypeError(".LuckyCharmStar2_Config.ShowAttr: array expected");
                    for (t.ShowAttr = [], n = 0; n < e.ShowAttr.length; ++n) {
                        if ("object" != typeof e.ShowAttr[n]) throw TypeError(".LuckyCharmStar2_Config.ShowAttr: object expected");
                        t.ShowAttr[n] = a.IntArray_Config.fromObject(e.ShowAttr[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs = [], n.Effects = [], n.ShowAttr = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.Effects && e.Effects.length)
                    for (n.Effects = [], r = 0; r < e.Effects.length; ++r) n.Effects[r] = a.IntArray_Config.toObject(e.Effects[r], t);
                if (e.ShowAttr && e.ShowAttr.length)
                    for (n.ShowAttr = [], r = 0; r < e.ShowAttr.length; ++r) n.ShowAttr[r] = a.IntArray_Config.toObject(e.ShowAttr[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/LuckyCharmStar2_Config"
            }, e
        }(), a.PowerCoreGallerySlot_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Requirements = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Requirements && Object.hasOwnProperty.call(e, "Requirements") && t.uint32(16).int64(e.Requirements), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PowerCoreGallerySlot_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Requirements = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Requirements && e.hasOwnProperty("Requirements") && !(i.isInteger(e.Requirements) || e.Requirements && i.isInteger(e.Requirements.low) && i.isInteger(e.Requirements.high)) ? "Requirements: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.PowerCoreGallerySlot_Config) return e;
                var t = new a.PowerCoreGallerySlot_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Requirements && (i.Long ? (t.Requirements = i.Long.fromValue(e.Requirements)).unsigned = !1 : "string" == typeof e.Requirements ? t.Requirements = parseInt(e.Requirements, 10) : "number" == typeof e.Requirements ? t.Requirements = e.Requirements : "object" == typeof e.Requirements && (t.Requirements = new i.LongBits(e.Requirements.low >>> 0, e.Requirements.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Requirements = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Requirements = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Requirements && e.hasOwnProperty("Requirements") && ("number" == typeof e.Requirements ? n.Requirements = t.longs === String ? String(e.Requirements) : e.Requirements : n.Requirements = t.longs === String ? i.Long.prototype.toString.call(e.Requirements) : t.longs === Number ? new i.LongBits(e.Requirements.low >>> 0, e.Requirements.high >>> 0).toNumber() : e.Requirements), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PowerCoreGallerySlot_Config"
            }, e
        }(), a.PowerCoreGalleryLevel_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PowerCoreGalleryLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PowerCoreGalleryLevel_Config) return e;
                var t = new a.PowerCoreGalleryLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".PowerCoreGalleryLevel_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".PowerCoreGalleryLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".PowerCoreGalleryLevel_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".PowerCoreGalleryLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PowerCoreGalleryLevel_Config"
            }, e
        }(), a.CommonAttrs_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CommonAttrs_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CommonAttrs_Config) return e;
                var t = new a.CommonAttrs_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".CommonAttrs_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".CommonAttrs_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CommonAttrs_Config"
            }, e
        }(), a.HeroSkinLevel_Config = function() {
            function e(e) {
                if (this.Cost = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Cost = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Cost && e.Cost.length)
                    for (var n = 0; n < e.Cost.length; ++n) a.IntArray_Config.encode(e.Cost[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroSkinLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Cost && r.Cost.length || (r.Cost = []), r.Cost.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Cost && e.hasOwnProperty("Cost")) {
                    if (!Array.isArray(e.Cost)) return "Cost: array expected";
                    for (var t = 0; t < e.Cost.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Cost[t]);
                        if (n) return "Cost." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroSkinLevel_Config) return e;
                var t = new a.HeroSkinLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Cost) {
                    if (!Array.isArray(e.Cost)) throw TypeError(".HeroSkinLevel_Config.Cost: array expected");
                    t.Cost = [];
                    for (var n = 0; n < e.Cost.length; ++n) {
                        if ("object" != typeof e.Cost[n]) throw TypeError(".HeroSkinLevel_Config.Cost: object expected");
                        t.Cost[n] = a.IntArray_Config.fromObject(e.Cost[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Cost = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Cost && e.Cost.length) {
                    n.Cost = [];
                    for (var r = 0; r < e.Cost.length; ++r) n.Cost[r] = a.IntArray_Config.toObject(e.Cost[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroSkinLevel_Config"
            }, e
        }(), a.HeroSkinAttrs_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroSkinAttrs_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroSkinAttrs_Config) return e;
                var t = new a.HeroSkinAttrs_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroSkinAttrs_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroSkinAttrs_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroSkinAttrs_Config"
            }, e
        }(), a.HolyEquipStep_Config = function() {
            function e(e) {
                if (this.Cost = [], this.Weapon = [], this.Coat = [], this.Glove = [], this.Shoes = [], this.DisplaceMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Cost = i.emptyArray, e.prototype.Weapon = i.emptyArray, e.prototype.Coat = i.emptyArray, e.prototype.Glove = i.emptyArray, e.prototype.Shoes = i.emptyArray, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DisplaceMaterials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Cost && e.Cost.length)
                    for (var n = 0; n < e.Cost.length; ++n) a.IntArray_Config.encode(e.Cost[n], t.uint32(18).fork()).ldelim();
                if (null != e.Weapon && e.Weapon.length) {
                    for (t.uint32(26).fork(), n = 0; n < e.Weapon.length; ++n) t.int64(e.Weapon[n]);
                    t.ldelim()
                }
                if (null != e.Coat && e.Coat.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.Coat.length; ++n) t.int64(e.Coat[n]);
                    t.ldelim()
                }
                if (null != e.Glove && e.Glove.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.Glove.length; ++n) t.int64(e.Glove[n]);
                    t.ldelim()
                }
                if (null != e.Shoes && e.Shoes.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.Shoes.length; ++n) t.int64(e.Shoes[n]);
                    t.ldelim()
                }
                if (null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(56).int64(e.Score), null != e.DisplaceMaterials && e.DisplaceMaterials.length)
                    for (n = 0; n < e.DisplaceMaterials.length; ++n) a.IntArray_Config.encode(e.DisplaceMaterials[n], t.uint32(66).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipStep_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Cost && r.Cost.length || (r.Cost = []), r.Cost.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            if (r.Weapon && r.Weapon.length || (r.Weapon = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Weapon.push(e.int64());
                            else r.Weapon.push(e.int64());
                            break;
                        case 4:
                            if (r.Coat && r.Coat.length || (r.Coat = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Coat.push(e.int64());
                            else r.Coat.push(e.int64());
                            break;
                        case 5:
                            if (r.Glove && r.Glove.length || (r.Glove = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Glove.push(e.int64());
                            else r.Glove.push(e.int64());
                            break;
                        case 6:
                            if (r.Shoes && r.Shoes.length || (r.Shoes = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Shoes.push(e.int64());
                            else r.Shoes.push(e.int64());
                            break;
                        case 7:
                            r.Score = e.int64();
                            break;
                        case 8:
                            r.DisplaceMaterials && r.DisplaceMaterials.length || (r.DisplaceMaterials = []), r.DisplaceMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Cost && e.hasOwnProperty("Cost")) {
                    if (!Array.isArray(e.Cost)) return "Cost: array expected";
                    for (var t = 0; t < e.Cost.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Cost[t])) return "Cost." + n
                }
                if (null != e.Weapon && e.hasOwnProperty("Weapon")) {
                    if (!Array.isArray(e.Weapon)) return "Weapon: array expected";
                    for (t = 0; t < e.Weapon.length; ++t)
                        if (!(i.isInteger(e.Weapon[t]) || e.Weapon[t] && i.isInteger(e.Weapon[t].low) && i.isInteger(e.Weapon[t].high))) return "Weapon: integer|Long[] expected"
                }
                if (null != e.Coat && e.hasOwnProperty("Coat")) {
                    if (!Array.isArray(e.Coat)) return "Coat: array expected";
                    for (t = 0; t < e.Coat.length; ++t)
                        if (!(i.isInteger(e.Coat[t]) || e.Coat[t] && i.isInteger(e.Coat[t].low) && i.isInteger(e.Coat[t].high))) return "Coat: integer|Long[] expected"
                }
                if (null != e.Glove && e.hasOwnProperty("Glove")) {
                    if (!Array.isArray(e.Glove)) return "Glove: array expected";
                    for (t = 0; t < e.Glove.length; ++t)
                        if (!(i.isInteger(e.Glove[t]) || e.Glove[t] && i.isInteger(e.Glove[t].low) && i.isInteger(e.Glove[t].high))) return "Glove: integer|Long[] expected"
                }
                if (null != e.Shoes && e.hasOwnProperty("Shoes")) {
                    if (!Array.isArray(e.Shoes)) return "Shoes: array expected";
                    for (t = 0; t < e.Shoes.length; ++t)
                        if (!(i.isInteger(e.Shoes[t]) || e.Shoes[t] && i.isInteger(e.Shoes[t].low) && i.isInteger(e.Shoes[t].high))) return "Shoes: integer|Long[] expected"
                }
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.DisplaceMaterials && e.hasOwnProperty("DisplaceMaterials")) {
                    if (!Array.isArray(e.DisplaceMaterials)) return "DisplaceMaterials: array expected";
                    for (t = 0; t < e.DisplaceMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.DisplaceMaterials[t])) return "DisplaceMaterials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipStep_Config) return e;
                var t = new a.HolyEquipStep_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Cost) {
                    if (!Array.isArray(e.Cost)) throw TypeError(".HolyEquipStep_Config.Cost: array expected");
                    t.Cost = [];
                    for (var n = 0; n < e.Cost.length; ++n) {
                        if ("object" != typeof e.Cost[n]) throw TypeError(".HolyEquipStep_Config.Cost: object expected");
                        t.Cost[n] = a.IntArray_Config.fromObject(e.Cost[n])
                    }
                }
                if (e.Weapon) {
                    if (!Array.isArray(e.Weapon)) throw TypeError(".HolyEquipStep_Config.Weapon: array expected");
                    for (t.Weapon = [], n = 0; n < e.Weapon.length; ++n) i.Long ? (t.Weapon[n] = i.Long.fromValue(e.Weapon[n])).unsigned = !1 : "string" == typeof e.Weapon[n] ? t.Weapon[n] = parseInt(e.Weapon[n], 10) : "number" == typeof e.Weapon[n] ? t.Weapon[n] = e.Weapon[n] : "object" == typeof e.Weapon[n] && (t.Weapon[n] = new i.LongBits(e.Weapon[n].low >>> 0, e.Weapon[n].high >>> 0).toNumber())
                }
                if (e.Coat) {
                    if (!Array.isArray(e.Coat)) throw TypeError(".HolyEquipStep_Config.Coat: array expected");
                    for (t.Coat = [], n = 0; n < e.Coat.length; ++n) i.Long ? (t.Coat[n] = i.Long.fromValue(e.Coat[n])).unsigned = !1 : "string" == typeof e.Coat[n] ? t.Coat[n] = parseInt(e.Coat[n], 10) : "number" == typeof e.Coat[n] ? t.Coat[n] = e.Coat[n] : "object" == typeof e.Coat[n] && (t.Coat[n] = new i.LongBits(e.Coat[n].low >>> 0, e.Coat[n].high >>> 0).toNumber())
                }
                if (e.Glove) {
                    if (!Array.isArray(e.Glove)) throw TypeError(".HolyEquipStep_Config.Glove: array expected");
                    for (t.Glove = [], n = 0; n < e.Glove.length; ++n) i.Long ? (t.Glove[n] = i.Long.fromValue(e.Glove[n])).unsigned = !1 : "string" == typeof e.Glove[n] ? t.Glove[n] = parseInt(e.Glove[n], 10) : "number" == typeof e.Glove[n] ? t.Glove[n] = e.Glove[n] : "object" == typeof e.Glove[n] && (t.Glove[n] = new i.LongBits(e.Glove[n].low >>> 0, e.Glove[n].high >>> 0).toNumber())
                }
                if (e.Shoes) {
                    if (!Array.isArray(e.Shoes)) throw TypeError(".HolyEquipStep_Config.Shoes: array expected");
                    for (t.Shoes = [], n = 0; n < e.Shoes.length; ++n) i.Long ? (t.Shoes[n] = i.Long.fromValue(e.Shoes[n])).unsigned = !1 : "string" == typeof e.Shoes[n] ? t.Shoes[n] = parseInt(e.Shoes[n], 10) : "number" == typeof e.Shoes[n] ? t.Shoes[n] = e.Shoes[n] : "object" == typeof e.Shoes[n] && (t.Shoes[n] = new i.LongBits(e.Shoes[n].low >>> 0, e.Shoes[n].high >>> 0).toNumber())
                }
                if (null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.DisplaceMaterials) {
                    if (!Array.isArray(e.DisplaceMaterials)) throw TypeError(".HolyEquipStep_Config.DisplaceMaterials: array expected");
                    for (t.DisplaceMaterials = [], n = 0; n < e.DisplaceMaterials.length; ++n) {
                        if ("object" != typeof e.DisplaceMaterials[n]) throw TypeError(".HolyEquipStep_Config.DisplaceMaterials: object expected");
                        t.DisplaceMaterials[n] = a.IntArray_Config.fromObject(e.DisplaceMaterials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Cost = [], n.Weapon = [], n.Coat = [], n.Glove = [], n.Shoes = [], n.DisplaceMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Cost && e.Cost.length) {
                    n.Cost = [];
                    for (var r = 0; r < e.Cost.length; ++r) n.Cost[r] = a.IntArray_Config.toObject(e.Cost[r], t)
                }
                if (e.Weapon && e.Weapon.length)
                    for (n.Weapon = [], r = 0; r < e.Weapon.length; ++r) "number" == typeof e.Weapon[r] ? n.Weapon[r] = t.longs === String ? String(e.Weapon[r]) : e.Weapon[r] : n.Weapon[r] = t.longs === String ? i.Long.prototype.toString.call(e.Weapon[r]) : t.longs === Number ? new i.LongBits(e.Weapon[r].low >>> 0, e.Weapon[r].high >>> 0).toNumber() : e.Weapon[r];
                if (e.Coat && e.Coat.length)
                    for (n.Coat = [], r = 0; r < e.Coat.length; ++r) "number" == typeof e.Coat[r] ? n.Coat[r] = t.longs === String ? String(e.Coat[r]) : e.Coat[r] : n.Coat[r] = t.longs === String ? i.Long.prototype.toString.call(e.Coat[r]) : t.longs === Number ? new i.LongBits(e.Coat[r].low >>> 0, e.Coat[r].high >>> 0).toNumber() : e.Coat[r];
                if (e.Glove && e.Glove.length)
                    for (n.Glove = [], r = 0; r < e.Glove.length; ++r) "number" == typeof e.Glove[r] ? n.Glove[r] = t.longs === String ? String(e.Glove[r]) : e.Glove[r] : n.Glove[r] = t.longs === String ? i.Long.prototype.toString.call(e.Glove[r]) : t.longs === Number ? new i.LongBits(e.Glove[r].low >>> 0, e.Glove[r].high >>> 0).toNumber() : e.Glove[r];
                if (e.Shoes && e.Shoes.length)
                    for (n.Shoes = [], r = 0; r < e.Shoes.length; ++r) "number" == typeof e.Shoes[r] ? n.Shoes[r] = t.longs === String ? String(e.Shoes[r]) : e.Shoes[r] : n.Shoes[r] = t.longs === String ? i.Long.prototype.toString.call(e.Shoes[r]) : t.longs === Number ? new i.LongBits(e.Shoes[r].low >>> 0, e.Shoes[r].high >>> 0).toNumber() : e.Shoes[r];
                if (null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.DisplaceMaterials && e.DisplaceMaterials.length)
                    for (n.DisplaceMaterials = [], r = 0; r < e.DisplaceMaterials.length; ++r) n.DisplaceMaterials[r] = a.IntArray_Config.toObject(e.DisplaceMaterials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipStep_Config"
            }, e
        }(), a.HolyEquipStepAttrs_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HolyEquipStepAttrs_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HolyEquipStepAttrs_Config) return e;
                var t = new a.HolyEquipStepAttrs_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HolyEquipStepAttrs_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HolyEquipStepAttrs_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HolyEquipStepAttrs_Config"
            }, e
        }(), a.CashMallPage_Config = function() {
            function e(e) {
                if (this.PackIds = [], this.UnlockLimit = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PackIds = i.emptyArray, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnlockLimit = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.PackIds && e.PackIds.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.PackIds.length; ++n) t.int64(e.PackIds[n]);
                    t.ldelim()
                }
                if (null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(40).int64(e.SortId), null != e.UnlockLimit && e.UnlockLimit.length)
                    for (n = 0; n < e.UnlockLimit.length; ++n) a.IntArray_Config.encode(e.UnlockLimit[n], t.uint32(50).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CashMallPage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            if (r.PackIds && r.PackIds.length || (r.PackIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.PackIds.push(e.int64());
                            else r.PackIds.push(e.int64());
                            break;
                        case 5:
                            r.SortId = e.int64();
                            break;
                        case 6:
                            r.UnlockLimit && r.UnlockLimit.length || (r.UnlockLimit = []), r.UnlockLimit.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.PackIds && e.hasOwnProperty("PackIds")) {
                    if (!Array.isArray(e.PackIds)) return "PackIds: array expected";
                    for (var t = 0; t < e.PackIds.length; ++t)
                        if (!(i.isInteger(e.PackIds[t]) || e.PackIds[t] && i.isInteger(e.PackIds[t].low) && i.isInteger(e.PackIds[t].high))) return "PackIds: integer|Long[] expected"
                }
                if (null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high))) return "SortId: integer|Long expected";
                if (null != e.UnlockLimit && e.hasOwnProperty("UnlockLimit")) {
                    if (!Array.isArray(e.UnlockLimit)) return "UnlockLimit: array expected";
                    for (t = 0; t < e.UnlockLimit.length; ++t) {
                        var n = a.IntArray_Config.verify(e.UnlockLimit[t]);
                        if (n) return "UnlockLimit." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CashMallPage_Config) return e;
                var t = new a.CashMallPage_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.PackIds) {
                    if (!Array.isArray(e.PackIds)) throw TypeError(".CashMallPage_Config.PackIds: array expected");
                    t.PackIds = [];
                    for (var n = 0; n < e.PackIds.length; ++n) i.Long ? (t.PackIds[n] = i.Long.fromValue(e.PackIds[n])).unsigned = !1 : "string" == typeof e.PackIds[n] ? t.PackIds[n] = parseInt(e.PackIds[n], 10) : "number" == typeof e.PackIds[n] ? t.PackIds[n] = e.PackIds[n] : "object" == typeof e.PackIds[n] && (t.PackIds[n] = new i.LongBits(e.PackIds[n].low >>> 0, e.PackIds[n].high >>> 0).toNumber())
                }
                if (null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), e.UnlockLimit) {
                    if (!Array.isArray(e.UnlockLimit)) throw TypeError(".CashMallPage_Config.UnlockLimit: array expected");
                    for (t.UnlockLimit = [], n = 0; n < e.UnlockLimit.length; ++n) {
                        if ("object" != typeof e.UnlockLimit[n]) throw TypeError(".CashMallPage_Config.UnlockLimit: object expected");
                        t.UnlockLimit[n] = a.IntArray_Config.fromObject(e.UnlockLimit[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PackIds = [], n.UnlockLimit = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.PackIds && e.PackIds.length) {
                    n.PackIds = [];
                    for (var r = 0; r < e.PackIds.length; ++r) "number" == typeof e.PackIds[r] ? n.PackIds[r] = t.longs === String ? String(e.PackIds[r]) : e.PackIds[r] : n.PackIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.PackIds[r]) : t.longs === Number ? new i.LongBits(e.PackIds[r].low >>> 0, e.PackIds[r].high >>> 0).toNumber() : e.PackIds[r]
                }
                if (null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), e.UnlockLimit && e.UnlockLimit.length)
                    for (n.UnlockLimit = [], r = 0; r < e.UnlockLimit.length; ++r) n.UnlockLimit[r] = a.IntArray_Config.toObject(e.UnlockLimit[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CashMallPage_Config"
            }, e
        }(), a.ChatWindow_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Order = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                return null != e.Order && Object.hasOwnProperty.call(e, "Order") && t.uint32(24).int64(e.Order), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ChatWindow_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Order = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null != e.Order && e.hasOwnProperty("Order") && !(i.isInteger(e.Order) || e.Order && i.isInteger(e.Order.low) && i.isInteger(e.Order.high)) ? "Order: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ChatWindow_Config) return e;
                var t = new a.ChatWindow_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ChatWindow_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ChatWindow_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return null != e.Order && (i.Long ? (t.Order = i.Long.fromValue(e.Order)).unsigned = !1 : "string" == typeof e.Order ? t.Order = parseInt(e.Order, 10) : "number" == typeof e.Order ? t.Order = e.Order : "object" == typeof e.Order && (t.Order = new i.LongBits(e.Order.low >>> 0, e.Order.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Order = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Order = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return null != e.Order && e.hasOwnProperty("Order") && ("number" == typeof e.Order ? n.Order = t.longs === String ? String(e.Order) : e.Order : n.Order = t.longs === String ? i.Long.prototype.toString.call(e.Order) : t.longs === Number ? new i.LongBits(e.Order.low >>> 0, e.Order.high >>> 0).toNumber() : e.Order), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ChatWindow_Config"
            }, e
        }(), a.WarCity_Config = function() {
            function e(e) {
                if (this.AdjIDs = [], this.RewardsPerHour = [], this.KillRewards = [], this.NpcHeroIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Index = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AdjIDs = i.emptyArray, e.prototype.NpcNum = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NpcIncTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RewardsPerHour = i.emptyArray, e.prototype.NpcBasePower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.WarFreeTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.KillRewards = i.emptyArray, e.prototype.ScorePerHour = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BattleBg = "", e.prototype.NpcHeroIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(32).int64(e.Type), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(56).int64(e.Index), null != e.AdjIDs && e.AdjIDs.length) {
                    t.uint32(66).fork();
                    for (var n = 0; n < e.AdjIDs.length; ++n) t.int64(e.AdjIDs[n]);
                    t.ldelim()
                }
                if (null != e.NpcNum && Object.hasOwnProperty.call(e, "NpcNum") && t.uint32(72).int64(e.NpcNum), null != e.NpcIncTime && Object.hasOwnProperty.call(e, "NpcIncTime") && t.uint32(80).int64(e.NpcIncTime), null != e.RewardsPerHour && e.RewardsPerHour.length)
                    for (n = 0; n < e.RewardsPerHour.length; ++n) a.IntArray_Config.encode(e.RewardsPerHour[n], t.uint32(90).fork()).ldelim();
                if (null != e.NpcBasePower && Object.hasOwnProperty.call(e, "NpcBasePower") && t.uint32(96).int64(e.NpcBasePower), null != e.WarFreeTime && Object.hasOwnProperty.call(e, "WarFreeTime") && t.uint32(104).int64(e.WarFreeTime), null != e.KillRewards && e.KillRewards.length)
                    for (n = 0; n < e.KillRewards.length; ++n) a.IntArray_Config.encode(e.KillRewards[n], t.uint32(114).fork()).ldelim();
                if (null != e.ScorePerHour && Object.hasOwnProperty.call(e, "ScorePerHour") && t.uint32(120).int64(e.ScorePerHour), null != e.BattleBg && Object.hasOwnProperty.call(e, "BattleBg") && t.uint32(130).string(e.BattleBg), null != e.NpcHeroIds && e.NpcHeroIds.length) {
                    for (t.uint32(138).fork(), n = 0; n < e.NpcHeroIds.length; ++n) t.int64(e.NpcHeroIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.WarCity_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Type = e.int64();
                            break;
                        case 7:
                            r.Index = e.int64();
                            break;
                        case 8:
                            if (r.AdjIDs && r.AdjIDs.length || (r.AdjIDs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AdjIDs.push(e.int64());
                            else r.AdjIDs.push(e.int64());
                            break;
                        case 9:
                            r.NpcNum = e.int64();
                            break;
                        case 10:
                            r.NpcIncTime = e.int64();
                            break;
                        case 11:
                            r.RewardsPerHour && r.RewardsPerHour.length || (r.RewardsPerHour = []), r.RewardsPerHour.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 12:
                            r.NpcBasePower = e.int64();
                            break;
                        case 13:
                            r.WarFreeTime = e.int64();
                            break;
                        case 14:
                            r.KillRewards && r.KillRewards.length || (r.KillRewards = []), r.KillRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 15:
                            r.ScorePerHour = e.int64();
                            break;
                        case 16:
                            r.BattleBg = e.string();
                            break;
                        case 17:
                            if (r.NpcHeroIds && r.NpcHeroIds.length || (r.NpcHeroIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.NpcHeroIds.push(e.int64());
                            else r.NpcHeroIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Index && e.hasOwnProperty("Index") && !(i.isInteger(e.Index) || e.Index && i.isInteger(e.Index.low) && i.isInteger(e.Index.high))) return "Index: integer|Long expected";
                if (null != e.AdjIDs && e.hasOwnProperty("AdjIDs")) {
                    if (!Array.isArray(e.AdjIDs)) return "AdjIDs: array expected";
                    for (var t = 0; t < e.AdjIDs.length; ++t)
                        if (!(i.isInteger(e.AdjIDs[t]) || e.AdjIDs[t] && i.isInteger(e.AdjIDs[t].low) && i.isInteger(e.AdjIDs[t].high))) return "AdjIDs: integer|Long[] expected"
                }
                if (null != e.NpcNum && e.hasOwnProperty("NpcNum") && !(i.isInteger(e.NpcNum) || e.NpcNum && i.isInteger(e.NpcNum.low) && i.isInteger(e.NpcNum.high))) return "NpcNum: integer|Long expected";
                if (null != e.NpcIncTime && e.hasOwnProperty("NpcIncTime") && !(i.isInteger(e.NpcIncTime) || e.NpcIncTime && i.isInteger(e.NpcIncTime.low) && i.isInteger(e.NpcIncTime.high))) return "NpcIncTime: integer|Long expected";
                if (null != e.RewardsPerHour && e.hasOwnProperty("RewardsPerHour")) {
                    if (!Array.isArray(e.RewardsPerHour)) return "RewardsPerHour: array expected";
                    for (t = 0; t < e.RewardsPerHour.length; ++t)
                        if (n = a.IntArray_Config.verify(e.RewardsPerHour[t])) return "RewardsPerHour." + n
                }
                if (null != e.NpcBasePower && e.hasOwnProperty("NpcBasePower") && !(i.isInteger(e.NpcBasePower) || e.NpcBasePower && i.isInteger(e.NpcBasePower.low) && i.isInteger(e.NpcBasePower.high))) return "NpcBasePower: integer|Long expected";
                if (null != e.WarFreeTime && e.hasOwnProperty("WarFreeTime") && !(i.isInteger(e.WarFreeTime) || e.WarFreeTime && i.isInteger(e.WarFreeTime.low) && i.isInteger(e.WarFreeTime.high))) return "WarFreeTime: integer|Long expected";
                if (null != e.KillRewards && e.hasOwnProperty("KillRewards")) {
                    if (!Array.isArray(e.KillRewards)) return "KillRewards: array expected";
                    for (t = 0; t < e.KillRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.KillRewards[t])) return "KillRewards." + n
                    }
                }
                if (null != e.ScorePerHour && e.hasOwnProperty("ScorePerHour") && !(i.isInteger(e.ScorePerHour) || e.ScorePerHour && i.isInteger(e.ScorePerHour.low) && i.isInteger(e.ScorePerHour.high))) return "ScorePerHour: integer|Long expected";
                if (null != e.BattleBg && e.hasOwnProperty("BattleBg") && !i.isString(e.BattleBg)) return "BattleBg: string expected";
                if (null != e.NpcHeroIds && e.hasOwnProperty("NpcHeroIds")) {
                    if (!Array.isArray(e.NpcHeroIds)) return "NpcHeroIds: array expected";
                    for (t = 0; t < e.NpcHeroIds.length; ++t)
                        if (!(i.isInteger(e.NpcHeroIds[t]) || e.NpcHeroIds[t] && i.isInteger(e.NpcHeroIds[t].low) && i.isInteger(e.NpcHeroIds[t].high))) return "NpcHeroIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.WarCity_Config) return e;
                var t = new a.WarCity_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Index && (i.Long ? (t.Index = i.Long.fromValue(e.Index)).unsigned = !1 : "string" == typeof e.Index ? t.Index = parseInt(e.Index, 10) : "number" == typeof e.Index ? t.Index = e.Index : "object" == typeof e.Index && (t.Index = new i.LongBits(e.Index.low >>> 0, e.Index.high >>> 0).toNumber())), e.AdjIDs) {
                    if (!Array.isArray(e.AdjIDs)) throw TypeError(".WarCity_Config.AdjIDs: array expected");
                    t.AdjIDs = [];
                    for (var n = 0; n < e.AdjIDs.length; ++n) i.Long ? (t.AdjIDs[n] = i.Long.fromValue(e.AdjIDs[n])).unsigned = !1 : "string" == typeof e.AdjIDs[n] ? t.AdjIDs[n] = parseInt(e.AdjIDs[n], 10) : "number" == typeof e.AdjIDs[n] ? t.AdjIDs[n] = e.AdjIDs[n] : "object" == typeof e.AdjIDs[n] && (t.AdjIDs[n] = new i.LongBits(e.AdjIDs[n].low >>> 0, e.AdjIDs[n].high >>> 0).toNumber())
                }
                if (null != e.NpcNum && (i.Long ? (t.NpcNum = i.Long.fromValue(e.NpcNum)).unsigned = !1 : "string" == typeof e.NpcNum ? t.NpcNum = parseInt(e.NpcNum, 10) : "number" == typeof e.NpcNum ? t.NpcNum = e.NpcNum : "object" == typeof e.NpcNum && (t.NpcNum = new i.LongBits(e.NpcNum.low >>> 0, e.NpcNum.high >>> 0).toNumber())), null != e.NpcIncTime && (i.Long ? (t.NpcIncTime = i.Long.fromValue(e.NpcIncTime)).unsigned = !1 : "string" == typeof e.NpcIncTime ? t.NpcIncTime = parseInt(e.NpcIncTime, 10) : "number" == typeof e.NpcIncTime ? t.NpcIncTime = e.NpcIncTime : "object" == typeof e.NpcIncTime && (t.NpcIncTime = new i.LongBits(e.NpcIncTime.low >>> 0, e.NpcIncTime.high >>> 0).toNumber())), e.RewardsPerHour) {
                    if (!Array.isArray(e.RewardsPerHour)) throw TypeError(".WarCity_Config.RewardsPerHour: array expected");
                    for (t.RewardsPerHour = [], n = 0; n < e.RewardsPerHour.length; ++n) {
                        if ("object" != typeof e.RewardsPerHour[n]) throw TypeError(".WarCity_Config.RewardsPerHour: object expected");
                        t.RewardsPerHour[n] = a.IntArray_Config.fromObject(e.RewardsPerHour[n])
                    }
                }
                if (null != e.NpcBasePower && (i.Long ? (t.NpcBasePower = i.Long.fromValue(e.NpcBasePower)).unsigned = !1 : "string" == typeof e.NpcBasePower ? t.NpcBasePower = parseInt(e.NpcBasePower, 10) : "number" == typeof e.NpcBasePower ? t.NpcBasePower = e.NpcBasePower : "object" == typeof e.NpcBasePower && (t.NpcBasePower = new i.LongBits(e.NpcBasePower.low >>> 0, e.NpcBasePower.high >>> 0).toNumber())), null != e.WarFreeTime && (i.Long ? (t.WarFreeTime = i.Long.fromValue(e.WarFreeTime)).unsigned = !1 : "string" == typeof e.WarFreeTime ? t.WarFreeTime = parseInt(e.WarFreeTime, 10) : "number" == typeof e.WarFreeTime ? t.WarFreeTime = e.WarFreeTime : "object" == typeof e.WarFreeTime && (t.WarFreeTime = new i.LongBits(e.WarFreeTime.low >>> 0, e.WarFreeTime.high >>> 0).toNumber())), e.KillRewards) {
                    if (!Array.isArray(e.KillRewards)) throw TypeError(".WarCity_Config.KillRewards: array expected");
                    for (t.KillRewards = [], n = 0; n < e.KillRewards.length; ++n) {
                        if ("object" != typeof e.KillRewards[n]) throw TypeError(".WarCity_Config.KillRewards: object expected");
                        t.KillRewards[n] = a.IntArray_Config.fromObject(e.KillRewards[n])
                    }
                }
                if (null != e.ScorePerHour && (i.Long ? (t.ScorePerHour = i.Long.fromValue(e.ScorePerHour)).unsigned = !1 : "string" == typeof e.ScorePerHour ? t.ScorePerHour = parseInt(e.ScorePerHour, 10) : "number" == typeof e.ScorePerHour ? t.ScorePerHour = e.ScorePerHour : "object" == typeof e.ScorePerHour && (t.ScorePerHour = new i.LongBits(e.ScorePerHour.low >>> 0, e.ScorePerHour.high >>> 0).toNumber())), null != e.BattleBg && (t.BattleBg = String(e.BattleBg)), e.NpcHeroIds) {
                    if (!Array.isArray(e.NpcHeroIds)) throw TypeError(".WarCity_Config.NpcHeroIds: array expected");
                    for (t.NpcHeroIds = [], n = 0; n < e.NpcHeroIds.length; ++n) i.Long ? (t.NpcHeroIds[n] = i.Long.fromValue(e.NpcHeroIds[n])).unsigned = !1 : "string" == typeof e.NpcHeroIds[n] ? t.NpcHeroIds[n] = parseInt(e.NpcHeroIds[n], 10) : "number" == typeof e.NpcHeroIds[n] ? t.NpcHeroIds[n] = e.NpcHeroIds[n] : "object" == typeof e.NpcHeroIds[n] && (t.NpcHeroIds[n] = new i.LongBits(e.NpcHeroIds[n].low >>> 0, e.NpcHeroIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AdjIDs = [], n.RewardsPerHour = [], n.KillRewards = [], n.NpcHeroIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Index = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Index = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NpcNum = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NpcNum = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NpcIncTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NpcIncTime = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NpcBasePower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NpcBasePower = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.WarFreeTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.WarFreeTime = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ScorePerHour = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ScorePerHour = t.longs === String ? "0" : 0, n.BattleBg = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Index && e.hasOwnProperty("Index") && ("number" == typeof e.Index ? n.Index = t.longs === String ? String(e.Index) : e.Index : n.Index = t.longs === String ? i.Long.prototype.toString.call(e.Index) : t.longs === Number ? new i.LongBits(e.Index.low >>> 0, e.Index.high >>> 0).toNumber() : e.Index), e.AdjIDs && e.AdjIDs.length) {
                    n.AdjIDs = [];
                    for (var r = 0; r < e.AdjIDs.length; ++r) "number" == typeof e.AdjIDs[r] ? n.AdjIDs[r] = t.longs === String ? String(e.AdjIDs[r]) : e.AdjIDs[r] : n.AdjIDs[r] = t.longs === String ? i.Long.prototype.toString.call(e.AdjIDs[r]) : t.longs === Number ? new i.LongBits(e.AdjIDs[r].low >>> 0, e.AdjIDs[r].high >>> 0).toNumber() : e.AdjIDs[r]
                }
                if (null != e.NpcNum && e.hasOwnProperty("NpcNum") && ("number" == typeof e.NpcNum ? n.NpcNum = t.longs === String ? String(e.NpcNum) : e.NpcNum : n.NpcNum = t.longs === String ? i.Long.prototype.toString.call(e.NpcNum) : t.longs === Number ? new i.LongBits(e.NpcNum.low >>> 0, e.NpcNum.high >>> 0).toNumber() : e.NpcNum), null != e.NpcIncTime && e.hasOwnProperty("NpcIncTime") && ("number" == typeof e.NpcIncTime ? n.NpcIncTime = t.longs === String ? String(e.NpcIncTime) : e.NpcIncTime : n.NpcIncTime = t.longs === String ? i.Long.prototype.toString.call(e.NpcIncTime) : t.longs === Number ? new i.LongBits(e.NpcIncTime.low >>> 0, e.NpcIncTime.high >>> 0).toNumber() : e.NpcIncTime), e.RewardsPerHour && e.RewardsPerHour.length)
                    for (n.RewardsPerHour = [], r = 0; r < e.RewardsPerHour.length; ++r) n.RewardsPerHour[r] = a.IntArray_Config.toObject(e.RewardsPerHour[r], t);
                if (null != e.NpcBasePower && e.hasOwnProperty("NpcBasePower") && ("number" == typeof e.NpcBasePower ? n.NpcBasePower = t.longs === String ? String(e.NpcBasePower) : e.NpcBasePower : n.NpcBasePower = t.longs === String ? i.Long.prototype.toString.call(e.NpcBasePower) : t.longs === Number ? new i.LongBits(e.NpcBasePower.low >>> 0, e.NpcBasePower.high >>> 0).toNumber() : e.NpcBasePower), null != e.WarFreeTime && e.hasOwnProperty("WarFreeTime") && ("number" == typeof e.WarFreeTime ? n.WarFreeTime = t.longs === String ? String(e.WarFreeTime) : e.WarFreeTime : n.WarFreeTime = t.longs === String ? i.Long.prototype.toString.call(e.WarFreeTime) : t.longs === Number ? new i.LongBits(e.WarFreeTime.low >>> 0, e.WarFreeTime.high >>> 0).toNumber() : e.WarFreeTime), e.KillRewards && e.KillRewards.length)
                    for (n.KillRewards = [], r = 0; r < e.KillRewards.length; ++r) n.KillRewards[r] = a.IntArray_Config.toObject(e.KillRewards[r], t);
                if (null != e.ScorePerHour && e.hasOwnProperty("ScorePerHour") && ("number" == typeof e.ScorePerHour ? n.ScorePerHour = t.longs === String ? String(e.ScorePerHour) : e.ScorePerHour : n.ScorePerHour = t.longs === String ? i.Long.prototype.toString.call(e.ScorePerHour) : t.longs === Number ? new i.LongBits(e.ScorePerHour.low >>> 0, e.ScorePerHour.high >>> 0).toNumber() : e.ScorePerHour), null != e.BattleBg && e.hasOwnProperty("BattleBg") && (n.BattleBg = e.BattleBg), e.NpcHeroIds && e.NpcHeroIds.length)
                    for (n.NpcHeroIds = [], r = 0; r < e.NpcHeroIds.length; ++r) "number" == typeof e.NpcHeroIds[r] ? n.NpcHeroIds[r] = t.longs === String ? String(e.NpcHeroIds[r]) : e.NpcHeroIds[r] : n.NpcHeroIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.NpcHeroIds[r]) : t.longs === Number ? new i.LongBits(e.NpcHeroIds[r].low >>> 0, e.NpcHeroIds[r].high >>> 0).toNumber() : e.NpcHeroIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/WarCity_Config"
            }, e
        }(), a.StarGemMasterLevel_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(16).int64(e.Count), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarGemMasterLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Count = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high))) return "Count: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarGemMasterLevel_Config) return e;
                var t = new a.StarGemMasterLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".StarGemMasterLevel_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".StarGemMasterLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarGemMasterLevel_Config"
            }, e
        }(), a.SuperWeapon_Config = function() {
            function e(e) {
                if (this.Slot = [], this.Nodes = [], this.StarAttr = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Slot = i.emptyArray, e.prototype.Nodes = i.emptyArray, e.prototype.StarAttr = i.emptyArray, e.prototype.PieceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Model = "", e.prototype.AvailableStartTime = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Slot && e.Slot.length)
                    for (var n = 0; n < e.Slot.length; ++n) a.IntArray_Config.encode(e.Slot[n], t.uint32(26).fork()).ldelim();
                if (null != e.Nodes && e.Nodes.length)
                    for (n = 0; n < e.Nodes.length; ++n) a.IntArray_Config.encode(e.Nodes[n], t.uint32(34).fork()).ldelim();
                if (null != e.StarAttr && e.StarAttr.length)
                    for (n = 0; n < e.StarAttr.length; ++n) a.IntArray_Config.encode(e.StarAttr[n], t.uint32(42).fork()).ldelim();
                return null != e.PieceId && Object.hasOwnProperty.call(e, "PieceId") && t.uint32(48).int64(e.PieceId), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(58).string(e.Model), null != e.AvailableStartTime && Object.hasOwnProperty.call(e, "AvailableStartTime") && t.uint32(66).string(e.AvailableStartTime), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SuperWeapon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Slot && r.Slot.length || (r.Slot = []), r.Slot.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Nodes && r.Nodes.length || (r.Nodes = []), r.Nodes.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.StarAttr && r.StarAttr.length || (r.StarAttr = []), r.StarAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.PieceId = e.int64();
                            break;
                        case 7:
                            r.Model = e.string();
                            break;
                        case 8:
                            r.AvailableStartTime = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Slot && e.hasOwnProperty("Slot")) {
                    if (!Array.isArray(e.Slot)) return "Slot: array expected";
                    for (var t = 0; t < e.Slot.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Slot[t])) return "Slot." + n
                }
                if (null != e.Nodes && e.hasOwnProperty("Nodes")) {
                    if (!Array.isArray(e.Nodes)) return "Nodes: array expected";
                    for (t = 0; t < e.Nodes.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Nodes[t])) return "Nodes." + n
                }
                if (null != e.StarAttr && e.hasOwnProperty("StarAttr")) {
                    if (!Array.isArray(e.StarAttr)) return "StarAttr: array expected";
                    for (t = 0; t < e.StarAttr.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.StarAttr[t])) return "StarAttr." + n
                    }
                }
                return null != e.PieceId && e.hasOwnProperty("PieceId") && !(i.isInteger(e.PieceId) || e.PieceId && i.isInteger(e.PieceId.low) && i.isInteger(e.PieceId.high)) ? "PieceId: integer|Long expected" : null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model) ? "Model: string expected" : null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && !i.isString(e.AvailableStartTime) ? "AvailableStartTime: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SuperWeapon_Config) return e;
                var t = new a.SuperWeapon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Slot) {
                    if (!Array.isArray(e.Slot)) throw TypeError(".SuperWeapon_Config.Slot: array expected");
                    t.Slot = [];
                    for (var n = 0; n < e.Slot.length; ++n) {
                        if ("object" != typeof e.Slot[n]) throw TypeError(".SuperWeapon_Config.Slot: object expected");
                        t.Slot[n] = a.IntArray_Config.fromObject(e.Slot[n])
                    }
                }
                if (e.Nodes) {
                    if (!Array.isArray(e.Nodes)) throw TypeError(".SuperWeapon_Config.Nodes: array expected");
                    for (t.Nodes = [], n = 0; n < e.Nodes.length; ++n) {
                        if ("object" != typeof e.Nodes[n]) throw TypeError(".SuperWeapon_Config.Nodes: object expected");
                        t.Nodes[n] = a.IntArray_Config.fromObject(e.Nodes[n])
                    }
                }
                if (e.StarAttr) {
                    if (!Array.isArray(e.StarAttr)) throw TypeError(".SuperWeapon_Config.StarAttr: array expected");
                    for (t.StarAttr = [], n = 0; n < e.StarAttr.length; ++n) {
                        if ("object" != typeof e.StarAttr[n]) throw TypeError(".SuperWeapon_Config.StarAttr: object expected");
                        t.StarAttr[n] = a.IntArray_Config.fromObject(e.StarAttr[n])
                    }
                }
                return null != e.PieceId && (i.Long ? (t.PieceId = i.Long.fromValue(e.PieceId)).unsigned = !1 : "string" == typeof e.PieceId ? t.PieceId = parseInt(e.PieceId, 10) : "number" == typeof e.PieceId ? t.PieceId = e.PieceId : "object" == typeof e.PieceId && (t.PieceId = new i.LongBits(e.PieceId.low >>> 0, e.PieceId.high >>> 0).toNumber())), null != e.Model && (t.Model = String(e.Model)), null != e.AvailableStartTime && (t.AvailableStartTime = String(e.AvailableStartTime)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Slot = [], n.Nodes = [], n.StarAttr = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.PieceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PieceId = t.longs === String ? "0" : 0, n.Model = "", n.AvailableStartTime = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Slot && e.Slot.length) {
                    n.Slot = [];
                    for (var r = 0; r < e.Slot.length; ++r) n.Slot[r] = a.IntArray_Config.toObject(e.Slot[r], t)
                }
                if (e.Nodes && e.Nodes.length)
                    for (n.Nodes = [], r = 0; r < e.Nodes.length; ++r) n.Nodes[r] = a.IntArray_Config.toObject(e.Nodes[r], t);
                if (e.StarAttr && e.StarAttr.length)
                    for (n.StarAttr = [], r = 0; r < e.StarAttr.length; ++r) n.StarAttr[r] = a.IntArray_Config.toObject(e.StarAttr[r], t);
                return null != e.PieceId && e.hasOwnProperty("PieceId") && ("number" == typeof e.PieceId ? n.PieceId = t.longs === String ? String(e.PieceId) : e.PieceId : n.PieceId = t.longs === String ? i.Long.prototype.toString.call(e.PieceId) : t.longs === Number ? new i.LongBits(e.PieceId.low >>> 0, e.PieceId.high >>> 0).toNumber() : e.PieceId), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && (n.AvailableStartTime = e.AvailableStartTime), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SuperWeapon_Config"
            }, e
        }(), a.SuperWeaponStar_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs = [], this.HeroMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.HeroMaterials = i.emptyArray, e.prototype.LevelCap = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.HeroMaterials && e.HeroMaterials.length)
                    for (n = 0; n < e.HeroMaterials.length; ++n) a.IntArray_Config.encode(e.HeroMaterials[n], t.uint32(34).fork()).ldelim();
                return null != e.LevelCap && Object.hasOwnProperty.call(e, "LevelCap") && t.uint32(40).int64(e.LevelCap), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SuperWeaponStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.HeroMaterials && r.HeroMaterials.length || (r.HeroMaterials = []), r.HeroMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.LevelCap = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.HeroMaterials && e.hasOwnProperty("HeroMaterials")) {
                    if (!Array.isArray(e.HeroMaterials)) return "HeroMaterials: array expected";
                    for (t = 0; t < e.HeroMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.HeroMaterials[t])) return "HeroMaterials." + n
                    }
                }
                return null != e.LevelCap && e.hasOwnProperty("LevelCap") && !(i.isInteger(e.LevelCap) || e.LevelCap && i.isInteger(e.LevelCap.low) && i.isInteger(e.LevelCap.high)) ? "LevelCap: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SuperWeaponStar_Config) return e;
                var t = new a.SuperWeaponStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".SuperWeaponStar_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".SuperWeaponStar_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".SuperWeaponStar_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".SuperWeaponStar_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.HeroMaterials) {
                    if (!Array.isArray(e.HeroMaterials)) throw TypeError(".SuperWeaponStar_Config.HeroMaterials: array expected");
                    for (t.HeroMaterials = [], n = 0; n < e.HeroMaterials.length; ++n) {
                        if ("object" != typeof e.HeroMaterials[n]) throw TypeError(".SuperWeaponStar_Config.HeroMaterials: object expected");
                        t.HeroMaterials[n] = a.IntArray_Config.fromObject(e.HeroMaterials[n])
                    }
                }
                return null != e.LevelCap && (i.Long ? (t.LevelCap = i.Long.fromValue(e.LevelCap)).unsigned = !1 : "string" == typeof e.LevelCap ? t.LevelCap = parseInt(e.LevelCap, 10) : "number" == typeof e.LevelCap ? t.LevelCap = e.LevelCap : "object" == typeof e.LevelCap && (t.LevelCap = new i.LongBits(e.LevelCap.low >>> 0, e.LevelCap.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs = [], n.HeroMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.LevelCap = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LevelCap = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (e.HeroMaterials && e.HeroMaterials.length)
                    for (n.HeroMaterials = [], r = 0; r < e.HeroMaterials.length; ++r) n.HeroMaterials[r] = a.IntArray_Config.toObject(e.HeroMaterials[r], t);
                return null != e.LevelCap && e.hasOwnProperty("LevelCap") && ("number" == typeof e.LevelCap ? n.LevelCap = t.longs === String ? String(e.LevelCap) : e.LevelCap : n.LevelCap = t.longs === String ? i.Long.prototype.toString.call(e.LevelCap) : t.longs === Number ? new i.LongBits(e.LevelCap.low >>> 0, e.LevelCap.high >>> 0).toNumber() : e.LevelCap), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SuperWeaponStar_Config"
            }, e
        }(), a.SuperWeaponLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SuperWeaponLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SuperWeaponLevel_Config) return e;
                var t = new a.SuperWeaponLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".SuperWeaponLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".SuperWeaponLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".SuperWeaponLevel_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".SuperWeaponLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SuperWeaponLevel_Config"
            }, e
        }(), a.AngelLevelPersonalAttrs_Config = function() {
            function e(e) {
                if (this.LevelAttr = [], this.StageAttr = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelAttr = i.emptyArray, e.prototype.StageAttr = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.LevelAttr && e.LevelAttr.length)
                    for (var n = 0; n < e.LevelAttr.length; ++n) a.IntArray_Config.encode(e.LevelAttr[n], t.uint32(18).fork()).ldelim();
                if (null != e.StageAttr && e.StageAttr.length)
                    for (n = 0; n < e.StageAttr.length; ++n) a.IntArray_Config.encode(e.StageAttr[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelLevelPersonalAttrs_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.LevelAttr && r.LevelAttr.length || (r.LevelAttr = []), r.LevelAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.StageAttr && r.StageAttr.length || (r.StageAttr = []), r.StageAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.LevelAttr && e.hasOwnProperty("LevelAttr")) {
                    if (!Array.isArray(e.LevelAttr)) return "LevelAttr: array expected";
                    for (var t = 0; t < e.LevelAttr.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelAttr[t])) return "LevelAttr." + n
                }
                if (null != e.StageAttr && e.hasOwnProperty("StageAttr")) {
                    if (!Array.isArray(e.StageAttr)) return "StageAttr: array expected";
                    for (t = 0; t < e.StageAttr.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.StageAttr[t])) return "StageAttr." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelLevelPersonalAttrs_Config) return e;
                var t = new a.AngelLevelPersonalAttrs_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.LevelAttr) {
                    if (!Array.isArray(e.LevelAttr)) throw TypeError(".AngelLevelPersonalAttrs_Config.LevelAttr: array expected");
                    t.LevelAttr = [];
                    for (var n = 0; n < e.LevelAttr.length; ++n) {
                        if ("object" != typeof e.LevelAttr[n]) throw TypeError(".AngelLevelPersonalAttrs_Config.LevelAttr: object expected");
                        t.LevelAttr[n] = a.IntArray_Config.fromObject(e.LevelAttr[n])
                    }
                }
                if (e.StageAttr) {
                    if (!Array.isArray(e.StageAttr)) throw TypeError(".AngelLevelPersonalAttrs_Config.StageAttr: array expected");
                    for (t.StageAttr = [], n = 0; n < e.StageAttr.length; ++n) {
                        if ("object" != typeof e.StageAttr[n]) throw TypeError(".AngelLevelPersonalAttrs_Config.StageAttr: object expected");
                        t.StageAttr[n] = a.IntArray_Config.fromObject(e.StageAttr[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.LevelAttr = [], n.StageAttr = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.LevelAttr && e.LevelAttr.length) {
                    n.LevelAttr = [];
                    for (var r = 0; r < e.LevelAttr.length; ++r) n.LevelAttr[r] = a.IntArray_Config.toObject(e.LevelAttr[r], t)
                }
                if (e.StageAttr && e.StageAttr.length)
                    for (n.StageAttr = [], r = 0; r < e.StageAttr.length; ++r) n.StageAttr[r] = a.IntArray_Config.toObject(e.StageAttr[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelLevelPersonalAttrs_Config"
            }, e
        }(), a.StarLightSecretLandMap_Config = function() {
            function e(e) {
                if (this.MapIds = [], this.FirstRewards = [], this.SweepRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIds = i.emptyArray, e.prototype.FirstRewards = i.emptyArray, e.prototype.SweepRewards = i.emptyArray, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MapIds && e.MapIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.MapIds.length; ++n) t.int64(e.MapIds[n]);
                    t.ldelim()
                }
                if (null != e.FirstRewards && e.FirstRewards.length)
                    for (n = 0; n < e.FirstRewards.length; ++n) a.IntArray_Config.encode(e.FirstRewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.SweepRewards && e.SweepRewards.length)
                    for (n = 0; n < e.SweepRewards.length; ++n) a.IntArray_Config.encode(e.SweepRewards[n], t.uint32(34).fork()).ldelim();
                return null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(40).int64(e.Power), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarLightSecretLandMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.MapIds && r.MapIds.length || (r.MapIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.MapIds.push(e.int64());
                            else r.MapIds.push(e.int64());
                            break;
                        case 3:
                            r.FirstRewards && r.FirstRewards.length || (r.FirstRewards = []), r.FirstRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.SweepRewards && r.SweepRewards.length || (r.SweepRewards = []), r.SweepRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Power = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MapIds && e.hasOwnProperty("MapIds")) {
                    if (!Array.isArray(e.MapIds)) return "MapIds: array expected";
                    for (var t = 0; t < e.MapIds.length; ++t)
                        if (!(i.isInteger(e.MapIds[t]) || e.MapIds[t] && i.isInteger(e.MapIds[t].low) && i.isInteger(e.MapIds[t].high))) return "MapIds: integer|Long[] expected"
                }
                if (null != e.FirstRewards && e.hasOwnProperty("FirstRewards")) {
                    if (!Array.isArray(e.FirstRewards)) return "FirstRewards: array expected";
                    for (t = 0; t < e.FirstRewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.FirstRewards[t])) return "FirstRewards." + n
                }
                if (null != e.SweepRewards && e.hasOwnProperty("SweepRewards")) {
                    if (!Array.isArray(e.SweepRewards)) return "SweepRewards: array expected";
                    for (t = 0; t < e.SweepRewards.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.SweepRewards[t])) return "SweepRewards." + n
                    }
                }
                return null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high)) ? "Power: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarLightSecretLandMap_Config) return e;
                var t = new a.StarLightSecretLandMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.MapIds) {
                    if (!Array.isArray(e.MapIds)) throw TypeError(".StarLightSecretLandMap_Config.MapIds: array expected");
                    t.MapIds = [];
                    for (var n = 0; n < e.MapIds.length; ++n) i.Long ? (t.MapIds[n] = i.Long.fromValue(e.MapIds[n])).unsigned = !1 : "string" == typeof e.MapIds[n] ? t.MapIds[n] = parseInt(e.MapIds[n], 10) : "number" == typeof e.MapIds[n] ? t.MapIds[n] = e.MapIds[n] : "object" == typeof e.MapIds[n] && (t.MapIds[n] = new i.LongBits(e.MapIds[n].low >>> 0, e.MapIds[n].high >>> 0).toNumber())
                }
                if (e.FirstRewards) {
                    if (!Array.isArray(e.FirstRewards)) throw TypeError(".StarLightSecretLandMap_Config.FirstRewards: array expected");
                    for (t.FirstRewards = [], n = 0; n < e.FirstRewards.length; ++n) {
                        if ("object" != typeof e.FirstRewards[n]) throw TypeError(".StarLightSecretLandMap_Config.FirstRewards: object expected");
                        t.FirstRewards[n] = a.IntArray_Config.fromObject(e.FirstRewards[n])
                    }
                }
                if (e.SweepRewards) {
                    if (!Array.isArray(e.SweepRewards)) throw TypeError(".StarLightSecretLandMap_Config.SweepRewards: array expected");
                    for (t.SweepRewards = [], n = 0; n < e.SweepRewards.length; ++n) {
                        if ("object" != typeof e.SweepRewards[n]) throw TypeError(".StarLightSecretLandMap_Config.SweepRewards: object expected");
                        t.SweepRewards[n] = a.IntArray_Config.fromObject(e.SweepRewards[n])
                    }
                }
                return null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.MapIds = [], n.FirstRewards = [], n.SweepRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.MapIds && e.MapIds.length) {
                    n.MapIds = [];
                    for (var r = 0; r < e.MapIds.length; ++r) "number" == typeof e.MapIds[r] ? n.MapIds[r] = t.longs === String ? String(e.MapIds[r]) : e.MapIds[r] : n.MapIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.MapIds[r]) : t.longs === Number ? new i.LongBits(e.MapIds[r].low >>> 0, e.MapIds[r].high >>> 0).toNumber() : e.MapIds[r]
                }
                if (e.FirstRewards && e.FirstRewards.length)
                    for (n.FirstRewards = [], r = 0; r < e.FirstRewards.length; ++r) n.FirstRewards[r] = a.IntArray_Config.toObject(e.FirstRewards[r], t);
                if (e.SweepRewards && e.SweepRewards.length)
                    for (n.SweepRewards = [], r = 0; r < e.SweepRewards.length; ++r) n.SweepRewards[r] = a.IntArray_Config.toObject(e.SweepRewards[r], t);
                return null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarLightSecretLandMap_Config"
            }, e
        }(), a.AngelHandBookSublimate_Config = function() {
            function e(e) {
                if (this.Cost = [], this.Attr = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Cost = i.emptyArray, e.prototype.Attr = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Cost && e.Cost.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Cost.length; ++n) t.int64(e.Cost[n]);
                    t.ldelim()
                }
                if (null != e.Attr && e.Attr.length) {
                    for (t.uint32(26).fork(), n = 0; n < e.Attr.length; ++n) t.int64(e.Attr[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelHandBookSublimate_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Cost && r.Cost.length || (r.Cost = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Cost.push(e.int64());
                            else r.Cost.push(e.int64());
                            break;
                        case 3:
                            if (r.Attr && r.Attr.length || (r.Attr = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Attr.push(e.int64());
                            else r.Attr.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Cost && e.hasOwnProperty("Cost")) {
                    if (!Array.isArray(e.Cost)) return "Cost: array expected";
                    for (var t = 0; t < e.Cost.length; ++t)
                        if (!(i.isInteger(e.Cost[t]) || e.Cost[t] && i.isInteger(e.Cost[t].low) && i.isInteger(e.Cost[t].high))) return "Cost: integer|Long[] expected"
                }
                if (null != e.Attr && e.hasOwnProperty("Attr")) {
                    if (!Array.isArray(e.Attr)) return "Attr: array expected";
                    for (t = 0; t < e.Attr.length; ++t)
                        if (!(i.isInteger(e.Attr[t]) || e.Attr[t] && i.isInteger(e.Attr[t].low) && i.isInteger(e.Attr[t].high))) return "Attr: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelHandBookSublimate_Config) return e;
                var t = new a.AngelHandBookSublimate_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Cost) {
                    if (!Array.isArray(e.Cost)) throw TypeError(".AngelHandBookSublimate_Config.Cost: array expected");
                    t.Cost = [];
                    for (var n = 0; n < e.Cost.length; ++n) i.Long ? (t.Cost[n] = i.Long.fromValue(e.Cost[n])).unsigned = !1 : "string" == typeof e.Cost[n] ? t.Cost[n] = parseInt(e.Cost[n], 10) : "number" == typeof e.Cost[n] ? t.Cost[n] = e.Cost[n] : "object" == typeof e.Cost[n] && (t.Cost[n] = new i.LongBits(e.Cost[n].low >>> 0, e.Cost[n].high >>> 0).toNumber())
                }
                if (e.Attr) {
                    if (!Array.isArray(e.Attr)) throw TypeError(".AngelHandBookSublimate_Config.Attr: array expected");
                    for (t.Attr = [], n = 0; n < e.Attr.length; ++n) i.Long ? (t.Attr[n] = i.Long.fromValue(e.Attr[n])).unsigned = !1 : "string" == typeof e.Attr[n] ? t.Attr[n] = parseInt(e.Attr[n], 10) : "number" == typeof e.Attr[n] ? t.Attr[n] = e.Attr[n] : "object" == typeof e.Attr[n] && (t.Attr[n] = new i.LongBits(e.Attr[n].low >>> 0, e.Attr[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Cost = [], n.Attr = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Cost && e.Cost.length) {
                    n.Cost = [];
                    for (var r = 0; r < e.Cost.length; ++r) "number" == typeof e.Cost[r] ? n.Cost[r] = t.longs === String ? String(e.Cost[r]) : e.Cost[r] : n.Cost[r] = t.longs === String ? i.Long.prototype.toString.call(e.Cost[r]) : t.longs === Number ? new i.LongBits(e.Cost[r].low >>> 0, e.Cost[r].high >>> 0).toNumber() : e.Cost[r]
                }
                if (e.Attr && e.Attr.length)
                    for (n.Attr = [], r = 0; r < e.Attr.length; ++r) "number" == typeof e.Attr[r] ? n.Attr[r] = t.longs === String ? String(e.Attr[r]) : e.Attr[r] : n.Attr[r] = t.longs === String ? i.Long.prototype.toString.call(e.Attr[r]) : t.longs === Number ? new i.LongBits(e.Attr[r].low >>> 0, e.Attr[r].high >>> 0).toNumber() : e.Attr[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelHandBookSublimate_Config"
            }, e
        }(), a.GodLandDuelRankStage_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(24).int64(e.Score), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GodLandDuelRankStage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Score = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.GodLandDuelRankStage_Config) return e;
                var t = new a.GodLandDuelRankStage_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GodLandDuelRankStage_Config"
            }, e
        }(), a.GodLandDuelRankRewards_Config = function() {
            function e(e) {
                if (this.RankRange = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DuanId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RankRange = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.DuanId && Object.hasOwnProperty.call(e, "DuanId") && t.uint32(16).int64(e.DuanId), null != e.RankRange && e.RankRange.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.RankRange.length; ++n) t.int64(e.RankRange[n]);
                    t.ldelim()
                }
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GodLandDuelRankRewards_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.DuanId = e.int64();
                            break;
                        case 3:
                            if (r.RankRange && r.RankRange.length || (r.RankRange = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.RankRange.push(e.int64());
                            else r.RankRange.push(e.int64());
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.DuanId && e.hasOwnProperty("DuanId") && !(i.isInteger(e.DuanId) || e.DuanId && i.isInteger(e.DuanId.low) && i.isInteger(e.DuanId.high))) return "DuanId: integer|Long expected";
                if (null != e.RankRange && e.hasOwnProperty("RankRange")) {
                    if (!Array.isArray(e.RankRange)) return "RankRange: array expected";
                    for (var t = 0; t < e.RankRange.length; ++t)
                        if (!(i.isInteger(e.RankRange[t]) || e.RankRange[t] && i.isInteger(e.RankRange[t].low) && i.isInteger(e.RankRange[t].high))) return "RankRange: integer|Long[] expected"
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.GodLandDuelRankRewards_Config) return e;
                var t = new a.GodLandDuelRankRewards_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.DuanId && (i.Long ? (t.DuanId = i.Long.fromValue(e.DuanId)).unsigned = !1 : "string" == typeof e.DuanId ? t.DuanId = parseInt(e.DuanId, 10) : "number" == typeof e.DuanId ? t.DuanId = e.DuanId : "object" == typeof e.DuanId && (t.DuanId = new i.LongBits(e.DuanId.low >>> 0, e.DuanId.high >>> 0).toNumber())), e.RankRange) {
                    if (!Array.isArray(e.RankRange)) throw TypeError(".GodLandDuelRankRewards_Config.RankRange: array expected");
                    t.RankRange = [];
                    for (var n = 0; n < e.RankRange.length; ++n) i.Long ? (t.RankRange[n] = i.Long.fromValue(e.RankRange[n])).unsigned = !1 : "string" == typeof e.RankRange[n] ? t.RankRange[n] = parseInt(e.RankRange[n], 10) : "number" == typeof e.RankRange[n] ? t.RankRange[n] = e.RankRange[n] : "object" == typeof e.RankRange[n] && (t.RankRange[n] = new i.LongBits(e.RankRange[n].low >>> 0, e.RankRange[n].high >>> 0).toNumber())
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".GodLandDuelRankRewards_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".GodLandDuelRankRewards_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.RankRange = [], n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.DuanId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DuanId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.DuanId && e.hasOwnProperty("DuanId") && ("number" == typeof e.DuanId ? n.DuanId = t.longs === String ? String(e.DuanId) : e.DuanId : n.DuanId = t.longs === String ? i.Long.prototype.toString.call(e.DuanId) : t.longs === Number ? new i.LongBits(e.DuanId.low >>> 0, e.DuanId.high >>> 0).toNumber() : e.DuanId), e.RankRange && e.RankRange.length) {
                    n.RankRange = [];
                    for (var r = 0; r < e.RankRange.length; ++r) "number" == typeof e.RankRange[r] ? n.RankRange[r] = t.longs === String ? String(e.RankRange[r]) : e.RankRange[r] : n.RankRange[r] = t.longs === String ? i.Long.prototype.toString.call(e.RankRange[r]) : t.longs === Number ? new i.LongBits(e.RankRange[r].low >>> 0, e.RankRange[r].high >>> 0).toNumber() : e.RankRange[r]
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GodLandDuelRankRewards_Config"
            }, e
        }(), a.VnPayMethod_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Ratio = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MinAmount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxAmount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Code = "", e.prototype.Sort = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Ratio && Object.hasOwnProperty.call(e, "Ratio") && t.uint32(24).int64(e.Ratio), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(32).int64(e.Type), null != e.MinAmount && Object.hasOwnProperty.call(e, "MinAmount") && t.uint32(40).int64(e.MinAmount), null != e.MaxAmount && Object.hasOwnProperty.call(e, "MaxAmount") && t.uint32(48).int64(e.MaxAmount), null != e.Code && Object.hasOwnProperty.call(e, "Code") && t.uint32(58).string(e.Code), null != e.Sort && Object.hasOwnProperty.call(e, "Sort") && t.uint32(64).int64(e.Sort), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.VnPayMethod_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Ratio = e.int64();
                            break;
                        case 4:
                            r.Type = e.int64();
                            break;
                        case 5:
                            r.MinAmount = e.int64();
                            break;
                        case 6:
                            r.MaxAmount = e.int64();
                            break;
                        case 7:
                            r.Code = e.string();
                            break;
                        case 8:
                            r.Sort = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Ratio && e.hasOwnProperty("Ratio") && !(i.isInteger(e.Ratio) || e.Ratio && i.isInteger(e.Ratio.low) && i.isInteger(e.Ratio.high)) ? "Ratio: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.MinAmount && e.hasOwnProperty("MinAmount") && !(i.isInteger(e.MinAmount) || e.MinAmount && i.isInteger(e.MinAmount.low) && i.isInteger(e.MinAmount.high)) ? "MinAmount: integer|Long expected" : null != e.MaxAmount && e.hasOwnProperty("MaxAmount") && !(i.isInteger(e.MaxAmount) || e.MaxAmount && i.isInteger(e.MaxAmount.low) && i.isInteger(e.MaxAmount.high)) ? "MaxAmount: integer|Long expected" : null != e.Code && e.hasOwnProperty("Code") && !i.isString(e.Code) ? "Code: string expected" : null != e.Sort && e.hasOwnProperty("Sort") && !(i.isInteger(e.Sort) || e.Sort && i.isInteger(e.Sort.low) && i.isInteger(e.Sort.high)) ? "Sort: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.VnPayMethod_Config) return e;
                var t = new a.VnPayMethod_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Ratio && (i.Long ? (t.Ratio = i.Long.fromValue(e.Ratio)).unsigned = !1 : "string" == typeof e.Ratio ? t.Ratio = parseInt(e.Ratio, 10) : "number" == typeof e.Ratio ? t.Ratio = e.Ratio : "object" == typeof e.Ratio && (t.Ratio = new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.MinAmount && (i.Long ? (t.MinAmount = i.Long.fromValue(e.MinAmount)).unsigned = !1 : "string" == typeof e.MinAmount ? t.MinAmount = parseInt(e.MinAmount, 10) : "number" == typeof e.MinAmount ? t.MinAmount = e.MinAmount : "object" == typeof e.MinAmount && (t.MinAmount = new i.LongBits(e.MinAmount.low >>> 0, e.MinAmount.high >>> 0).toNumber())), null != e.MaxAmount && (i.Long ? (t.MaxAmount = i.Long.fromValue(e.MaxAmount)).unsigned = !1 : "string" == typeof e.MaxAmount ? t.MaxAmount = parseInt(e.MaxAmount, 10) : "number" == typeof e.MaxAmount ? t.MaxAmount = e.MaxAmount : "object" == typeof e.MaxAmount && (t.MaxAmount = new i.LongBits(e.MaxAmount.low >>> 0, e.MaxAmount.high >>> 0).toNumber())), null != e.Code && (t.Code = String(e.Code)), null != e.Sort && (i.Long ? (t.Sort = i.Long.fromValue(e.Sort)).unsigned = !1 : "string" == typeof e.Sort ? t.Sort = parseInt(e.Sort, 10) : "number" == typeof e.Sort ? t.Sort = e.Sort : "object" == typeof e.Sort && (t.Sort = new i.LongBits(e.Sort.low >>> 0, e.Sort.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Ratio = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Ratio = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MinAmount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MinAmount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxAmount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxAmount = t.longs === String ? "0" : 0, n.Code = "", i.Long ? (o = new i.Long(0, 0, !1), n.Sort = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Sort = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Ratio && e.hasOwnProperty("Ratio") && ("number" == typeof e.Ratio ? n.Ratio = t.longs === String ? String(e.Ratio) : e.Ratio : n.Ratio = t.longs === String ? i.Long.prototype.toString.call(e.Ratio) : t.longs === Number ? new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber() : e.Ratio), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.MinAmount && e.hasOwnProperty("MinAmount") && ("number" == typeof e.MinAmount ? n.MinAmount = t.longs === String ? String(e.MinAmount) : e.MinAmount : n.MinAmount = t.longs === String ? i.Long.prototype.toString.call(e.MinAmount) : t.longs === Number ? new i.LongBits(e.MinAmount.low >>> 0, e.MinAmount.high >>> 0).toNumber() : e.MinAmount), null != e.MaxAmount && e.hasOwnProperty("MaxAmount") && ("number" == typeof e.MaxAmount ? n.MaxAmount = t.longs === String ? String(e.MaxAmount) : e.MaxAmount : n.MaxAmount = t.longs === String ? i.Long.prototype.toString.call(e.MaxAmount) : t.longs === Number ? new i.LongBits(e.MaxAmount.low >>> 0, e.MaxAmount.high >>> 0).toNumber() : e.MaxAmount), null != e.Code && e.hasOwnProperty("Code") && (n.Code = e.Code), null != e.Sort && e.hasOwnProperty("Sort") && ("number" == typeof e.Sort ? n.Sort = t.longs === String ? String(e.Sort) : e.Sort : n.Sort = t.longs === String ? i.Long.prototype.toString.call(e.Sort) : t.longs === Number ? new i.LongBits(e.Sort.low >>> 0, e.Sort.high >>> 0).toNumber() : e.Sort), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/VnPayMethod_Config"
            }, e
        }(), a.WarStage_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Bonus = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(32).int64(e.Score), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(42).fork()).ldelim();
                return null != e.Bonus && Object.hasOwnProperty.call(e, "Bonus") && t.uint32(48).int64(e.Bonus), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.WarStage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Score = e.int64();
                            break;
                        case 5:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Bonus = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.Bonus && e.hasOwnProperty("Bonus") && !(i.isInteger(e.Bonus) || e.Bonus && i.isInteger(e.Bonus.low) && i.isInteger(e.Bonus.high)) ? "Bonus: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.WarStage_Config) return e;
                var t = new a.WarStage_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".WarStage_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".WarStage_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.Bonus && (i.Long ? (t.Bonus = i.Long.fromValue(e.Bonus)).unsigned = !1 : "string" == typeof e.Bonus ? t.Bonus = parseInt(e.Bonus, 10) : "number" == typeof e.Bonus ? t.Bonus = e.Bonus : "object" == typeof e.Bonus && (t.Bonus = new i.LongBits(e.Bonus.low >>> 0, e.Bonus.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Bonus = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Bonus = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.Bonus && e.hasOwnProperty("Bonus") && ("number" == typeof e.Bonus ? n.Bonus = t.longs === String ? String(e.Bonus) : e.Bonus : n.Bonus = t.longs === String ? i.Long.prototype.toString.call(e.Bonus) : t.longs === Number ? new i.LongBits(e.Bonus.low >>> 0, e.Bonus.high >>> 0).toNumber() : e.Bonus), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/WarStage_Config"
            }, e
        }(), a.WarRankRewards_Config = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.ScoreBonus = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(16).int64(e.Score), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                return null != e.ScoreBonus && Object.hasOwnProperty.call(e, "ScoreBonus") && t.uint32(32).int64(e.ScoreBonus), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.WarRankRewards_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Score = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ScoreBonus = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.ScoreBonus && e.hasOwnProperty("ScoreBonus") && !(i.isInteger(e.ScoreBonus) || e.ScoreBonus && i.isInteger(e.ScoreBonus.low) && i.isInteger(e.ScoreBonus.high)) ? "ScoreBonus: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.WarRankRewards_Config) return e;
                var t = new a.WarRankRewards_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".WarRankRewards_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".WarRankRewards_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return null != e.ScoreBonus && (i.Long ? (t.ScoreBonus = i.Long.fromValue(e.ScoreBonus)).unsigned = !1 : "string" == typeof e.ScoreBonus ? t.ScoreBonus = parseInt(e.ScoreBonus, 10) : "number" == typeof e.ScoreBonus ? t.ScoreBonus = e.ScoreBonus : "object" == typeof e.ScoreBonus && (t.ScoreBonus = new i.LongBits(e.ScoreBonus.low >>> 0, e.ScoreBonus.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ScoreBonus = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ScoreBonus = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                return null != e.ScoreBonus && e.hasOwnProperty("ScoreBonus") && ("number" == typeof e.ScoreBonus ? n.ScoreBonus = t.longs === String ? String(e.ScoreBonus) : e.ScoreBonus : n.ScoreBonus = t.longs === String ? i.Long.prototype.toString.call(e.ScoreBonus) : t.longs === Number ? new i.LongBits(e.ScoreBonus.low >>> 0, e.ScoreBonus.high >>> 0).toNumber() : e.ScoreBonus), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/WarRankRewards_Config"
            }, e
        }(), a.HeroJob_Config = function() {
            function e(e) {
                if (this.Condition = [], this.Attrs = [], this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Stage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Condition = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.Skill = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowQuality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Stage && Object.hasOwnProperty.call(e, "Stage") && t.uint32(32).int64(e.Stage), null != e.Condition && e.Condition.length)
                    for (var n = 0; n < e.Condition.length; ++n) a.IntArray_Config.encode(e.Condition[n], t.uint32(42).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(50).fork()).ldelim();
                if (null != e.Skill && Object.hasOwnProperty.call(e, "Skill") && t.uint32(56).int64(e.Skill), null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(66).fork()).ldelim();
                return null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(72).int64(e.Power), null != e.ShowQuality && Object.hasOwnProperty.call(e, "ShowQuality") && t.uint32(80).int64(e.ShowQuality), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroJob_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Stage = e.int64();
                            break;
                        case 5:
                            r.Condition && r.Condition.length || (r.Condition = []), r.Condition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Skill = e.int64();
                            break;
                        case 8:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.Power = e.int64();
                            break;
                        case 10:
                            r.ShowQuality = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Stage && e.hasOwnProperty("Stage") && !(i.isInteger(e.Stage) || e.Stage && i.isInteger(e.Stage.low) && i.isInteger(e.Stage.high))) return "Stage: integer|Long expected";
                if (null != e.Condition && e.hasOwnProperty("Condition")) {
                    if (!Array.isArray(e.Condition)) return "Condition: array expected";
                    for (var t = 0; t < e.Condition.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Condition[t])) return "Condition." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Skill && e.hasOwnProperty("Skill") && !(i.isInteger(e.Skill) || e.Skill && i.isInteger(e.Skill.low) && i.isInteger(e.Skill.high))) return "Skill: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                    }
                }
                return null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high)) ? "Power: integer|Long expected" : null != e.ShowQuality && e.hasOwnProperty("ShowQuality") && !(i.isInteger(e.ShowQuality) || e.ShowQuality && i.isInteger(e.ShowQuality.low) && i.isInteger(e.ShowQuality.high)) ? "ShowQuality: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroJob_Config) return e;
                var t = new a.HeroJob_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Stage && (i.Long ? (t.Stage = i.Long.fromValue(e.Stage)).unsigned = !1 : "string" == typeof e.Stage ? t.Stage = parseInt(e.Stage, 10) : "number" == typeof e.Stage ? t.Stage = e.Stage : "object" == typeof e.Stage && (t.Stage = new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber())), e.Condition) {
                    if (!Array.isArray(e.Condition)) throw TypeError(".HeroJob_Config.Condition: array expected");
                    t.Condition = [];
                    for (var n = 0; n < e.Condition.length; ++n) {
                        if ("object" != typeof e.Condition[n]) throw TypeError(".HeroJob_Config.Condition: object expected");
                        t.Condition[n] = a.IntArray_Config.fromObject(e.Condition[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".HeroJob_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".HeroJob_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (null != e.Skill && (i.Long ? (t.Skill = i.Long.fromValue(e.Skill)).unsigned = !1 : "string" == typeof e.Skill ? t.Skill = parseInt(e.Skill, 10) : "number" == typeof e.Skill ? t.Skill = e.Skill : "object" == typeof e.Skill && (t.Skill = new i.LongBits(e.Skill.low >>> 0, e.Skill.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".HeroJob_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".HeroJob_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.ShowQuality && (i.Long ? (t.ShowQuality = i.Long.fromValue(e.ShowQuality)).unsigned = !1 : "string" == typeof e.ShowQuality ? t.ShowQuality = parseInt(e.ShowQuality, 10) : "number" == typeof e.ShowQuality ? t.ShowQuality = e.ShowQuality : "object" == typeof e.ShowQuality && (t.ShowQuality = new i.LongBits(e.ShowQuality.low >>> 0, e.ShowQuality.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Condition = [], n.Attrs = [], n.Materials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Stage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Stage = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Skill = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Skill = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ShowQuality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ShowQuality = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Stage && e.hasOwnProperty("Stage") && ("number" == typeof e.Stage ? n.Stage = t.longs === String ? String(e.Stage) : e.Stage : n.Stage = t.longs === String ? i.Long.prototype.toString.call(e.Stage) : t.longs === Number ? new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber() : e.Stage), e.Condition && e.Condition.length) {
                    n.Condition = [];
                    for (var r = 0; r < e.Condition.length; ++r) n.Condition[r] = a.IntArray_Config.toObject(e.Condition[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (null != e.Skill && e.hasOwnProperty("Skill") && ("number" == typeof e.Skill ? n.Skill = t.longs === String ? String(e.Skill) : e.Skill : n.Skill = t.longs === String ? i.Long.prototype.toString.call(e.Skill) : t.longs === Number ? new i.LongBits(e.Skill.low >>> 0, e.Skill.high >>> 0).toNumber() : e.Skill), e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                return null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.ShowQuality && e.hasOwnProperty("ShowQuality") && ("number" == typeof e.ShowQuality ? n.ShowQuality = t.longs === String ? String(e.ShowQuality) : e.ShowQuality : n.ShowQuality = t.longs === String ? i.Long.prototype.toString.call(e.ShowQuality) : t.longs === Number ? new i.LongBits(e.ShowQuality.low >>> 0, e.ShowQuality.high >>> 0).toNumber() : e.ShowQuality), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroJob_Config"
            }, e
        }(), a.ItemQuality_Config = function() {
            function e(e) {
                if (this.HeroJobMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NextId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroJobCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroJobMaterials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.NextId && Object.hasOwnProperty.call(e, "NextId") && t.uint32(16).int64(e.NextId), null != e.HeroJobCount && Object.hasOwnProperty.call(e, "HeroJobCount") && t.uint32(24).int64(e.HeroJobCount), null != e.HeroJobMaterials && e.HeroJobMaterials.length)
                    for (var n = 0; n < e.HeroJobMaterials.length; ++n) a.IntArray_Config.encode(e.HeroJobMaterials[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemQuality_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.NextId = e.int64();
                            break;
                        case 3:
                            r.HeroJobCount = e.int64();
                            break;
                        case 4:
                            r.HeroJobMaterials && r.HeroJobMaterials.length || (r.HeroJobMaterials = []), r.HeroJobMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.NextId && e.hasOwnProperty("NextId") && !(i.isInteger(e.NextId) || e.NextId && i.isInteger(e.NextId.low) && i.isInteger(e.NextId.high))) return "NextId: integer|Long expected";
                if (null != e.HeroJobCount && e.hasOwnProperty("HeroJobCount") && !(i.isInteger(e.HeroJobCount) || e.HeroJobCount && i.isInteger(e.HeroJobCount.low) && i.isInteger(e.HeroJobCount.high))) return "HeroJobCount: integer|Long expected";
                if (null != e.HeroJobMaterials && e.hasOwnProperty("HeroJobMaterials")) {
                    if (!Array.isArray(e.HeroJobMaterials)) return "HeroJobMaterials: array expected";
                    for (var t = 0; t < e.HeroJobMaterials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.HeroJobMaterials[t]);
                        if (n) return "HeroJobMaterials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemQuality_Config) return e;
                var t = new a.ItemQuality_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.NextId && (i.Long ? (t.NextId = i.Long.fromValue(e.NextId)).unsigned = !1 : "string" == typeof e.NextId ? t.NextId = parseInt(e.NextId, 10) : "number" == typeof e.NextId ? t.NextId = e.NextId : "object" == typeof e.NextId && (t.NextId = new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber())), null != e.HeroJobCount && (i.Long ? (t.HeroJobCount = i.Long.fromValue(e.HeroJobCount)).unsigned = !1 : "string" == typeof e.HeroJobCount ? t.HeroJobCount = parseInt(e.HeroJobCount, 10) : "number" == typeof e.HeroJobCount ? t.HeroJobCount = e.HeroJobCount : "object" == typeof e.HeroJobCount && (t.HeroJobCount = new i.LongBits(e.HeroJobCount.low >>> 0, e.HeroJobCount.high >>> 0).toNumber())), e.HeroJobMaterials) {
                    if (!Array.isArray(e.HeroJobMaterials)) throw TypeError(".ItemQuality_Config.HeroJobMaterials: array expected");
                    t.HeroJobMaterials = [];
                    for (var n = 0; n < e.HeroJobMaterials.length; ++n) {
                        if ("object" != typeof e.HeroJobMaterials[n]) throw TypeError(".ItemQuality_Config.HeroJobMaterials: object expected");
                        t.HeroJobMaterials[n] = a.IntArray_Config.fromObject(e.HeroJobMaterials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.HeroJobMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.NextId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeroJobCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroJobCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.NextId && e.hasOwnProperty("NextId") && ("number" == typeof e.NextId ? n.NextId = t.longs === String ? String(e.NextId) : e.NextId : n.NextId = t.longs === String ? i.Long.prototype.toString.call(e.NextId) : t.longs === Number ? new i.LongBits(e.NextId.low >>> 0, e.NextId.high >>> 0).toNumber() : e.NextId), null != e.HeroJobCount && e.hasOwnProperty("HeroJobCount") && ("number" == typeof e.HeroJobCount ? n.HeroJobCount = t.longs === String ? String(e.HeroJobCount) : e.HeroJobCount : n.HeroJobCount = t.longs === String ? i.Long.prototype.toString.call(e.HeroJobCount) : t.longs === Number ? new i.LongBits(e.HeroJobCount.low >>> 0, e.HeroJobCount.high >>> 0).toNumber() : e.HeroJobCount), e.HeroJobMaterials && e.HeroJobMaterials.length) {
                    n.HeroJobMaterials = [];
                    for (var r = 0; r < e.HeroJobMaterials.length; ++r) n.HeroJobMaterials[r] = a.IntArray_Config.toObject(e.HeroJobMaterials[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemQuality_Config"
            }, e
        }(), a.CorsairMap_Config = function() {
            function e(e) {
                if (this.GridArray = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BgPath = "", e.prototype.Map = "", e.prototype.ShowGridIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GridArray = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.BgPath && Object.hasOwnProperty.call(e, "BgPath") && t.uint32(26).string(e.BgPath), null != e.Map && Object.hasOwnProperty.call(e, "Map") && t.uint32(34).string(e.Map), null != e.ShowGridIcon && Object.hasOwnProperty.call(e, "ShowGridIcon") && t.uint32(40).int64(e.ShowGridIcon), null != e.GridArray && e.GridArray.length)
                    for (var n = 0; n < e.GridArray.length; ++n) a.IntArray_Config.encode(e.GridArray[n], t.uint32(50).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CorsairMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.BgPath = e.string();
                            break;
                        case 4:
                            r.Map = e.string();
                            break;
                        case 5:
                            r.ShowGridIcon = e.int64();
                            break;
                        case 6:
                            r.GridArray && r.GridArray.length || (r.GridArray = []), r.GridArray.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.BgPath && e.hasOwnProperty("BgPath") && !i.isString(e.BgPath)) return "BgPath: string expected";
                if (null != e.Map && e.hasOwnProperty("Map") && !i.isString(e.Map)) return "Map: string expected";
                if (null != e.ShowGridIcon && e.hasOwnProperty("ShowGridIcon") && !(i.isInteger(e.ShowGridIcon) || e.ShowGridIcon && i.isInteger(e.ShowGridIcon.low) && i.isInteger(e.ShowGridIcon.high))) return "ShowGridIcon: integer|Long expected";
                if (null != e.GridArray && e.hasOwnProperty("GridArray")) {
                    if (!Array.isArray(e.GridArray)) return "GridArray: array expected";
                    for (var t = 0; t < e.GridArray.length; ++t) {
                        var n = a.IntArray_Config.verify(e.GridArray[t]);
                        if (n) return "GridArray." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CorsairMap_Config) return e;
                var t = new a.CorsairMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.BgPath && (t.BgPath = String(e.BgPath)), null != e.Map && (t.Map = String(e.Map)), null != e.ShowGridIcon && (i.Long ? (t.ShowGridIcon = i.Long.fromValue(e.ShowGridIcon)).unsigned = !1 : "string" == typeof e.ShowGridIcon ? t.ShowGridIcon = parseInt(e.ShowGridIcon, 10) : "number" == typeof e.ShowGridIcon ? t.ShowGridIcon = e.ShowGridIcon : "object" == typeof e.ShowGridIcon && (t.ShowGridIcon = new i.LongBits(e.ShowGridIcon.low >>> 0, e.ShowGridIcon.high >>> 0).toNumber())), e.GridArray) {
                    if (!Array.isArray(e.GridArray)) throw TypeError(".CorsairMap_Config.GridArray: array expected");
                    t.GridArray = [];
                    for (var n = 0; n < e.GridArray.length; ++n) {
                        if ("object" != typeof e.GridArray[n]) throw TypeError(".CorsairMap_Config.GridArray: object expected");
                        t.GridArray[n] = a.IntArray_Config.fromObject(e.GridArray[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.GridArray = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.BgPath = "", n.Map = "", i.Long ? (o = new i.Long(0, 0, !1), n.ShowGridIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ShowGridIcon = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.BgPath && e.hasOwnProperty("BgPath") && (n.BgPath = e.BgPath), null != e.Map && e.hasOwnProperty("Map") && (n.Map = e.Map), null != e.ShowGridIcon && e.hasOwnProperty("ShowGridIcon") && ("number" == typeof e.ShowGridIcon ? n.ShowGridIcon = t.longs === String ? String(e.ShowGridIcon) : e.ShowGridIcon : n.ShowGridIcon = t.longs === String ? i.Long.prototype.toString.call(e.ShowGridIcon) : t.longs === Number ? new i.LongBits(e.ShowGridIcon.low >>> 0, e.ShowGridIcon.high >>> 0).toNumber() : e.ShowGridIcon), e.GridArray && e.GridArray.length) {
                    n.GridArray = [];
                    for (var r = 0; r < e.GridArray.length; ++r) n.GridArray[r] = a.IntArray_Config.toObject(e.GridArray[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CorsairMap_Config"
            }, e
        }(), a.CorsairGridType_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(26).string(e.Icon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CorsairGridType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.Icon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CorsairGridType_Config) return e;
                var t = new a.CorsairGridType_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, n.Icon = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CorsairGridType_Config"
            }, e
        }(), a.PlayerRobot_Config = function() {
            function e(e) {
                if (this.Type = [], this.Formations = [], this.Attrs = [], this.Power = [], this.Params = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.emptyArray, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Country = "", e.prototype.Designation = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.Power = i.emptyArray, e.prototype.Params = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && e.Type.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Type.length; ++n) t.int64(e.Type[n]);
                    t.ldelim()
                }
                if (null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(24).int64(e.Level), null != e.Country && Object.hasOwnProperty.call(e, "Country") && t.uint32(34).string(e.Country), null != e.Designation && Object.hasOwnProperty.call(e, "Designation") && t.uint32(40).int64(e.Designation), null != e.Formations && e.Formations.length)
                    for (n = 0; n < e.Formations.length; ++n) a.IntArray_Config.encode(e.Formations[n], t.uint32(50).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(58).fork()).ldelim();
                if (null != e.Power && e.Power.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.Power.length; ++n) t.int64(e.Power[n]);
                    t.ldelim()
                }
                if (null != e.Params && e.Params.length) {
                    for (t.uint32(74).fork(), n = 0; n < e.Params.length; ++n) t.int64(e.Params[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PlayerRobot_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Type && r.Type.length || (r.Type = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Type.push(e.int64());
                            else r.Type.push(e.int64());
                            break;
                        case 3:
                            r.Level = e.int64();
                            break;
                        case 4:
                            r.Country = e.string();
                            break;
                        case 5:
                            r.Designation = e.int64();
                            break;
                        case 6:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            if (r.Power && r.Power.length || (r.Power = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Power.push(e.int64());
                            else r.Power.push(e.int64());
                            break;
                        case 9:
                            if (r.Params && r.Params.length || (r.Params = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Params.push(e.int64());
                            else r.Params.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type")) {
                    if (!Array.isArray(e.Type)) return "Type: array expected";
                    for (var t = 0; t < e.Type.length; ++t)
                        if (!(i.isInteger(e.Type[t]) || e.Type[t] && i.isInteger(e.Type[t].low) && i.isInteger(e.Type[t].high))) return "Type: integer|Long[] expected"
                }
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.Country && e.hasOwnProperty("Country") && !i.isString(e.Country)) return "Country: string expected";
                if (null != e.Designation && e.hasOwnProperty("Designation") && !(i.isInteger(e.Designation) || e.Designation && i.isInteger(e.Designation.low) && i.isInteger(e.Designation.high))) return "Designation: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (t = 0; t < e.Formations.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Formations[t])) return "Formations." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                    }
                }
                if (null != e.Power && e.hasOwnProperty("Power")) {
                    if (!Array.isArray(e.Power)) return "Power: array expected";
                    for (t = 0; t < e.Power.length; ++t)
                        if (!(i.isInteger(e.Power[t]) || e.Power[t] && i.isInteger(e.Power[t].low) && i.isInteger(e.Power[t].high))) return "Power: integer|Long[] expected"
                }
                if (null != e.Params && e.hasOwnProperty("Params")) {
                    if (!Array.isArray(e.Params)) return "Params: array expected";
                    for (t = 0; t < e.Params.length; ++t)
                        if (!(i.isInteger(e.Params[t]) || e.Params[t] && i.isInteger(e.Params[t].low) && i.isInteger(e.Params[t].high))) return "Params: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PlayerRobot_Config) return e;
                var t = new a.PlayerRobot_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Type) {
                    if (!Array.isArray(e.Type)) throw TypeError(".PlayerRobot_Config.Type: array expected");
                    t.Type = [];
                    for (var n = 0; n < e.Type.length; ++n) i.Long ? (t.Type[n] = i.Long.fromValue(e.Type[n])).unsigned = !1 : "string" == typeof e.Type[n] ? t.Type[n] = parseInt(e.Type[n], 10) : "number" == typeof e.Type[n] ? t.Type[n] = e.Type[n] : "object" == typeof e.Type[n] && (t.Type[n] = new i.LongBits(e.Type[n].low >>> 0, e.Type[n].high >>> 0).toNumber())
                }
                if (null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Country && (t.Country = String(e.Country)), null != e.Designation && (i.Long ? (t.Designation = i.Long.fromValue(e.Designation)).unsigned = !1 : "string" == typeof e.Designation ? t.Designation = parseInt(e.Designation, 10) : "number" == typeof e.Designation ? t.Designation = e.Designation : "object" == typeof e.Designation && (t.Designation = new i.LongBits(e.Designation.low >>> 0, e.Designation.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".PlayerRobot_Config.Formations: array expected");
                    for (t.Formations = [], n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".PlayerRobot_Config.Formations: object expected");
                        t.Formations[n] = a.IntArray_Config.fromObject(e.Formations[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".PlayerRobot_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".PlayerRobot_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Power) {
                    if (!Array.isArray(e.Power)) throw TypeError(".PlayerRobot_Config.Power: array expected");
                    for (t.Power = [], n = 0; n < e.Power.length; ++n) i.Long ? (t.Power[n] = i.Long.fromValue(e.Power[n])).unsigned = !1 : "string" == typeof e.Power[n] ? t.Power[n] = parseInt(e.Power[n], 10) : "number" == typeof e.Power[n] ? t.Power[n] = e.Power[n] : "object" == typeof e.Power[n] && (t.Power[n] = new i.LongBits(e.Power[n].low >>> 0, e.Power[n].high >>> 0).toNumber())
                }
                if (e.Params) {
                    if (!Array.isArray(e.Params)) throw TypeError(".PlayerRobot_Config.Params: array expected");
                    for (t.Params = [], n = 0; n < e.Params.length; ++n) i.Long ? (t.Params[n] = i.Long.fromValue(e.Params[n])).unsigned = !1 : "string" == typeof e.Params[n] ? t.Params[n] = parseInt(e.Params[n], 10) : "number" == typeof e.Params[n] ? t.Params[n] = e.Params[n] : "object" == typeof e.Params[n] && (t.Params[n] = new i.LongBits(e.Params[n].low >>> 0, e.Params[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Type = [], n.Formations = [], n.Attrs = [], n.Power = [], n.Params = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, n.Country = "", i.Long ? (o = new i.Long(0, 0, !1), n.Designation = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Designation = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Type && e.Type.length) {
                    n.Type = [];
                    for (var r = 0; r < e.Type.length; ++r) "number" == typeof e.Type[r] ? n.Type[r] = t.longs === String ? String(e.Type[r]) : e.Type[r] : n.Type[r] = t.longs === String ? i.Long.prototype.toString.call(e.Type[r]) : t.longs === Number ? new i.LongBits(e.Type[r].low >>> 0, e.Type[r].high >>> 0).toNumber() : e.Type[r]
                }
                if (null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Country && e.hasOwnProperty("Country") && (n.Country = e.Country), null != e.Designation && e.hasOwnProperty("Designation") && ("number" == typeof e.Designation ? n.Designation = t.longs === String ? String(e.Designation) : e.Designation : n.Designation = t.longs === String ? i.Long.prototype.toString.call(e.Designation) : t.longs === Number ? new i.LongBits(e.Designation.low >>> 0, e.Designation.high >>> 0).toNumber() : e.Designation), e.Formations && e.Formations.length)
                    for (n.Formations = [], r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.IntArray_Config.toObject(e.Formations[r], t);
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (e.Power && e.Power.length)
                    for (n.Power = [], r = 0; r < e.Power.length; ++r) "number" == typeof e.Power[r] ? n.Power[r] = t.longs === String ? String(e.Power[r]) : e.Power[r] : n.Power[r] = t.longs === String ? i.Long.prototype.toString.call(e.Power[r]) : t.longs === Number ? new i.LongBits(e.Power[r].low >>> 0, e.Power[r].high >>> 0).toNumber() : e.Power[r];
                if (e.Params && e.Params.length)
                    for (n.Params = [], r = 0; r < e.Params.length; ++r) "number" == typeof e.Params[r] ? n.Params[r] = t.longs === String ? String(e.Params[r]) : e.Params[r] : n.Params[r] = t.longs === String ? i.Long.prototype.toString.call(e.Params[r]) : t.longs === Number ? new i.LongBits(e.Params[r].low >>> 0, e.Params[r].high >>> 0).toNumber() : e.Params[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PlayerRobot_Config"
            }, e
        }(), a.DailyBuff_Config = function() {
            function e(e) {
                if (this.Params = [], this.Condition = [], this.Tags = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Params = i.emptyArray, e.prototype.Condition = i.emptyArray, e.prototype.Tags = i.emptyArray, e.prototype.Weight = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(34).string(e.Icon), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(40).int64(e.Type), null != e.Params && e.Params.length)
                    for (var n = 0; n < e.Params.length; ++n) a.IntArray_Config.encode(e.Params[n], t.uint32(50).fork()).ldelim();
                if (null != e.Condition && e.Condition.length)
                    for (n = 0; n < e.Condition.length; ++n) a.IntArray_Config.encode(e.Condition[n], t.uint32(58).fork()).ldelim();
                if (null != e.Tags && e.Tags.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.Tags.length; ++n) t.int64(e.Tags[n]);
                    t.ldelim()
                }
                return null != e.Weight && Object.hasOwnProperty.call(e, "Weight") && t.uint32(72).int64(e.Weight), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DailyBuff_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.Icon = e.string();
                            break;
                        case 5:
                            r.Type = e.int64();
                            break;
                        case 6:
                            r.Params && r.Params.length || (r.Params = []), r.Params.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.Condition && r.Condition.length || (r.Condition = []), r.Condition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            if (r.Tags && r.Tags.length || (r.Tags = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Tags.push(e.int64());
                            else r.Tags.push(e.int64());
                            break;
                        case 9:
                            r.Weight = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Params && e.hasOwnProperty("Params")) {
                    if (!Array.isArray(e.Params)) return "Params: array expected";
                    for (var t = 0; t < e.Params.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Params[t])) return "Params." + n
                }
                if (null != e.Condition && e.hasOwnProperty("Condition")) {
                    if (!Array.isArray(e.Condition)) return "Condition: array expected";
                    for (t = 0; t < e.Condition.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Condition[t])) return "Condition." + n
                    }
                }
                if (null != e.Tags && e.hasOwnProperty("Tags")) {
                    if (!Array.isArray(e.Tags)) return "Tags: array expected";
                    for (t = 0; t < e.Tags.length; ++t)
                        if (!(i.isInteger(e.Tags[t]) || e.Tags[t] && i.isInteger(e.Tags[t].low) && i.isInteger(e.Tags[t].high))) return "Tags: integer|Long[] expected"
                }
                return null != e.Weight && e.hasOwnProperty("Weight") && !(i.isInteger(e.Weight) || e.Weight && i.isInteger(e.Weight.low) && i.isInteger(e.Weight.high)) ? "Weight: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.DailyBuff_Config) return e;
                var t = new a.DailyBuff_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Params) {
                    if (!Array.isArray(e.Params)) throw TypeError(".DailyBuff_Config.Params: array expected");
                    t.Params = [];
                    for (var n = 0; n < e.Params.length; ++n) {
                        if ("object" != typeof e.Params[n]) throw TypeError(".DailyBuff_Config.Params: object expected");
                        t.Params[n] = a.IntArray_Config.fromObject(e.Params[n])
                    }
                }
                if (e.Condition) {
                    if (!Array.isArray(e.Condition)) throw TypeError(".DailyBuff_Config.Condition: array expected");
                    for (t.Condition = [], n = 0; n < e.Condition.length; ++n) {
                        if ("object" != typeof e.Condition[n]) throw TypeError(".DailyBuff_Config.Condition: object expected");
                        t.Condition[n] = a.IntArray_Config.fromObject(e.Condition[n])
                    }
                }
                if (e.Tags) {
                    if (!Array.isArray(e.Tags)) throw TypeError(".DailyBuff_Config.Tags: array expected");
                    for (t.Tags = [], n = 0; n < e.Tags.length; ++n) i.Long ? (t.Tags[n] = i.Long.fromValue(e.Tags[n])).unsigned = !1 : "string" == typeof e.Tags[n] ? t.Tags[n] = parseInt(e.Tags[n], 10) : "number" == typeof e.Tags[n] ? t.Tags[n] = e.Tags[n] : "object" == typeof e.Tags[n] && (t.Tags[n] = new i.LongBits(e.Tags[n].low >>> 0, e.Tags[n].high >>> 0).toNumber())
                }
                return null != e.Weight && (i.Long ? (t.Weight = i.Long.fromValue(e.Weight)).unsigned = !1 : "string" == typeof e.Weight ? t.Weight = parseInt(e.Weight, 10) : "number" == typeof e.Weight ? t.Weight = e.Weight : "object" == typeof e.Weight && (t.Weight = new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Params = [], n.Condition = [], n.Tags = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Weight = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Weight = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Params && e.Params.length) {
                    n.Params = [];
                    for (var r = 0; r < e.Params.length; ++r) n.Params[r] = a.IntArray_Config.toObject(e.Params[r], t)
                }
                if (e.Condition && e.Condition.length)
                    for (n.Condition = [], r = 0; r < e.Condition.length; ++r) n.Condition[r] = a.IntArray_Config.toObject(e.Condition[r], t);
                if (e.Tags && e.Tags.length)
                    for (n.Tags = [], r = 0; r < e.Tags.length; ++r) "number" == typeof e.Tags[r] ? n.Tags[r] = t.longs === String ? String(e.Tags[r]) : e.Tags[r] : n.Tags[r] = t.longs === String ? i.Long.prototype.toString.call(e.Tags[r]) : t.longs === Number ? new i.LongBits(e.Tags[r].low >>> 0, e.Tags[r].high >>> 0).toNumber() : e.Tags[r];
                return null != e.Weight && e.hasOwnProperty("Weight") && ("number" == typeof e.Weight ? n.Weight = t.longs === String ? String(e.Weight) : e.Weight : n.Weight = t.longs === String ? i.Long.prototype.toString.call(e.Weight) : t.longs === Number ? new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber() : e.Weight), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DailyBuff_Config"
            }, e
        }(), a.NewPersonalityBase_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Materials = [], this.PersonalityIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Materials = i.emptyArray, e.prototype.PersonalityIds = i.emptyArray, e.prototype.AvailableStartTime = "", e.prototype.NeedHintRedDot = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DialogHint = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(34).fork()).ldelim();
                if (null != e.PersonalityIds && e.PersonalityIds.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.PersonalityIds.length; ++n) t.int64(e.PersonalityIds[n]);
                    t.ldelim()
                }
                return null != e.AvailableStartTime && Object.hasOwnProperty.call(e, "AvailableStartTime") && t.uint32(58).string(e.AvailableStartTime), null != e.NeedHintRedDot && Object.hasOwnProperty.call(e, "NeedHintRedDot") && t.uint32(64).int64(e.NeedHintRedDot), null != e.DialogHint && Object.hasOwnProperty.call(e, "DialogHint") && t.uint32(72).int64(e.DialogHint), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.NewPersonalityBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            if (r.PersonalityIds && r.PersonalityIds.length || (r.PersonalityIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.PersonalityIds.push(e.int64());
                            else r.PersonalityIds.push(e.int64());
                            break;
                        case 7:
                            r.AvailableStartTime = e.string();
                            break;
                        case 8:
                            r.NeedHintRedDot = e.int64();
                            break;
                        case 9:
                            r.DialogHint = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                    }
                }
                if (null != e.PersonalityIds && e.hasOwnProperty("PersonalityIds")) {
                    if (!Array.isArray(e.PersonalityIds)) return "PersonalityIds: array expected";
                    for (t = 0; t < e.PersonalityIds.length; ++t)
                        if (!(i.isInteger(e.PersonalityIds[t]) || e.PersonalityIds[t] && i.isInteger(e.PersonalityIds[t].low) && i.isInteger(e.PersonalityIds[t].high))) return "PersonalityIds: integer|Long[] expected"
                }
                return null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && !i.isString(e.AvailableStartTime) ? "AvailableStartTime: string expected" : null != e.NeedHintRedDot && e.hasOwnProperty("NeedHintRedDot") && !(i.isInteger(e.NeedHintRedDot) || e.NeedHintRedDot && i.isInteger(e.NeedHintRedDot.low) && i.isInteger(e.NeedHintRedDot.high)) ? "NeedHintRedDot: integer|Long expected" : null != e.DialogHint && e.hasOwnProperty("DialogHint") && !(i.isInteger(e.DialogHint) || e.DialogHint && i.isInteger(e.DialogHint.low) && i.isInteger(e.DialogHint.high)) ? "DialogHint: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.NewPersonalityBase_Config) return e;
                var t = new a.NewPersonalityBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".NewPersonalityBase_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".NewPersonalityBase_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".NewPersonalityBase_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".NewPersonalityBase_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.PersonalityIds) {
                    if (!Array.isArray(e.PersonalityIds)) throw TypeError(".NewPersonalityBase_Config.PersonalityIds: array expected");
                    for (t.PersonalityIds = [], n = 0; n < e.PersonalityIds.length; ++n) i.Long ? (t.PersonalityIds[n] = i.Long.fromValue(e.PersonalityIds[n])).unsigned = !1 : "string" == typeof e.PersonalityIds[n] ? t.PersonalityIds[n] = parseInt(e.PersonalityIds[n], 10) : "number" == typeof e.PersonalityIds[n] ? t.PersonalityIds[n] = e.PersonalityIds[n] : "object" == typeof e.PersonalityIds[n] && (t.PersonalityIds[n] = new i.LongBits(e.PersonalityIds[n].low >>> 0, e.PersonalityIds[n].high >>> 0).toNumber())
                }
                return null != e.AvailableStartTime && (t.AvailableStartTime = String(e.AvailableStartTime)), null != e.NeedHintRedDot && (i.Long ? (t.NeedHintRedDot = i.Long.fromValue(e.NeedHintRedDot)).unsigned = !1 : "string" == typeof e.NeedHintRedDot ? t.NeedHintRedDot = parseInt(e.NeedHintRedDot, 10) : "number" == typeof e.NeedHintRedDot ? t.NeedHintRedDot = e.NeedHintRedDot : "object" == typeof e.NeedHintRedDot && (t.NeedHintRedDot = new i.LongBits(e.NeedHintRedDot.low >>> 0, e.NeedHintRedDot.high >>> 0).toNumber())), null != e.DialogHint && (i.Long ? (t.DialogHint = i.Long.fromValue(e.DialogHint)).unsigned = !1 : "string" == typeof e.DialogHint ? t.DialogHint = parseInt(e.DialogHint, 10) : "number" == typeof e.DialogHint ? t.DialogHint = e.DialogHint : "object" == typeof e.DialogHint && (t.DialogHint = new i.LongBits(e.DialogHint.low >>> 0, e.DialogHint.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Materials = [], n.PersonalityIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.AvailableStartTime = "", i.Long ? (o = new i.Long(0, 0, !1), n.NeedHintRedDot = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NeedHintRedDot = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DialogHint = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DialogHint = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                if (e.PersonalityIds && e.PersonalityIds.length)
                    for (n.PersonalityIds = [], r = 0; r < e.PersonalityIds.length; ++r) "number" == typeof e.PersonalityIds[r] ? n.PersonalityIds[r] = t.longs === String ? String(e.PersonalityIds[r]) : e.PersonalityIds[r] : n.PersonalityIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.PersonalityIds[r]) : t.longs === Number ? new i.LongBits(e.PersonalityIds[r].low >>> 0, e.PersonalityIds[r].high >>> 0).toNumber() : e.PersonalityIds[r];
                return null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && (n.AvailableStartTime = e.AvailableStartTime), null != e.NeedHintRedDot && e.hasOwnProperty("NeedHintRedDot") && ("number" == typeof e.NeedHintRedDot ? n.NeedHintRedDot = t.longs === String ? String(e.NeedHintRedDot) : e.NeedHintRedDot : n.NeedHintRedDot = t.longs === String ? i.Long.prototype.toString.call(e.NeedHintRedDot) : t.longs === Number ? new i.LongBits(e.NeedHintRedDot.low >>> 0, e.NeedHintRedDot.high >>> 0).toNumber() : e.NeedHintRedDot), null != e.DialogHint && e.hasOwnProperty("DialogHint") && ("number" == typeof e.DialogHint ? n.DialogHint = t.longs === String ? String(e.DialogHint) : e.DialogHint : n.DialogHint = t.longs === String ? i.Long.prototype.toString.call(e.DialogHint) : t.longs === Number ? new i.LongBits(e.DialogHint.low >>> 0, e.DialogHint.high >>> 0).toNumber() : e.DialogHint), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/NewPersonalityBase_Config"
            }, e
        }(), a.NewPersonality_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.Materials = [], this.ActionIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.Materials = i.emptyArray, e.prototype.ActionIds = i.emptyArray, e.prototype.AvatarId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(26).fork()).ldelim();
                if (null != e.ActionIds && e.ActionIds.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.ActionIds.length; ++n) t.int64(e.ActionIds[n]);
                    t.ldelim()
                }
                return null != e.AvatarId && Object.hasOwnProperty.call(e, "AvatarId") && t.uint32(56).int64(e.AvatarId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.NewPersonality_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            if (r.ActionIds && r.ActionIds.length || (r.ActionIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ActionIds.push(e.int64());
                            else r.ActionIds.push(e.int64());
                            break;
                        case 7:
                            r.AvatarId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                    }
                }
                if (null != e.ActionIds && e.hasOwnProperty("ActionIds")) {
                    if (!Array.isArray(e.ActionIds)) return "ActionIds: array expected";
                    for (t = 0; t < e.ActionIds.length; ++t)
                        if (!(i.isInteger(e.ActionIds[t]) || e.ActionIds[t] && i.isInteger(e.ActionIds[t].low) && i.isInteger(e.ActionIds[t].high))) return "ActionIds: integer|Long[] expected"
                }
                return null != e.AvatarId && e.hasOwnProperty("AvatarId") && !(i.isInteger(e.AvatarId) || e.AvatarId && i.isInteger(e.AvatarId.low) && i.isInteger(e.AvatarId.high)) ? "AvatarId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.NewPersonality_Config) return e;
                var t = new a.NewPersonality_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".NewPersonality_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".NewPersonality_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".NewPersonality_Config.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".NewPersonality_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.ActionIds) {
                    if (!Array.isArray(e.ActionIds)) throw TypeError(".NewPersonality_Config.ActionIds: array expected");
                    for (t.ActionIds = [], n = 0; n < e.ActionIds.length; ++n) i.Long ? (t.ActionIds[n] = i.Long.fromValue(e.ActionIds[n])).unsigned = !1 : "string" == typeof e.ActionIds[n] ? t.ActionIds[n] = parseInt(e.ActionIds[n], 10) : "number" == typeof e.ActionIds[n] ? t.ActionIds[n] = e.ActionIds[n] : "object" == typeof e.ActionIds[n] && (t.ActionIds[n] = new i.LongBits(e.ActionIds[n].low >>> 0, e.ActionIds[n].high >>> 0).toNumber())
                }
                return null != e.AvatarId && (i.Long ? (t.AvatarId = i.Long.fromValue(e.AvatarId)).unsigned = !1 : "string" == typeof e.AvatarId ? t.AvatarId = parseInt(e.AvatarId, 10) : "number" == typeof e.AvatarId ? t.AvatarId = e.AvatarId : "object" == typeof e.AvatarId && (t.AvatarId = new i.LongBits(e.AvatarId.low >>> 0, e.AvatarId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.Materials = [], n.ActionIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.AvatarId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AvatarId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t);
                if (e.ActionIds && e.ActionIds.length)
                    for (n.ActionIds = [], r = 0; r < e.ActionIds.length; ++r) "number" == typeof e.ActionIds[r] ? n.ActionIds[r] = t.longs === String ? String(e.ActionIds[r]) : e.ActionIds[r] : n.ActionIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.ActionIds[r]) : t.longs === Number ? new i.LongBits(e.ActionIds[r].low >>> 0, e.ActionIds[r].high >>> 0).toNumber() : e.ActionIds[r];
                return null != e.AvatarId && e.hasOwnProperty("AvatarId") && ("number" == typeof e.AvatarId ? n.AvatarId = t.longs === String ? String(e.AvatarId) : e.AvatarId : n.AvatarId = t.longs === String ? i.Long.prototype.toString.call(e.AvatarId) : t.longs === Number ? new i.LongBits(e.AvatarId.low >>> 0, e.AvatarId.high >>> 0).toNumber() : e.AvatarId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/NewPersonality_Config"
            }, e
        }(), a.NewPersonalityAction_Config = function() {
            function e(e) {
                if (this.Condition = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Condition = i.emptyArray, e.prototype.ActionName = "", e.prototype.NextState = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Condition && e.Condition.length)
                    for (var n = 0; n < e.Condition.length; ++n) a.IntArray_Config.encode(e.Condition[n], t.uint32(18).fork()).ldelim();
                return null != e.ActionName && Object.hasOwnProperty.call(e, "ActionName") && t.uint32(66).string(e.ActionName), null != e.NextState && Object.hasOwnProperty.call(e, "NextState") && t.uint32(72).int64(e.NextState), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.NewPersonalityAction_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Condition && r.Condition.length || (r.Condition = []), r.Condition.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.ActionName = e.string();
                            break;
                        case 9:
                            r.NextState = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Condition && e.hasOwnProperty("Condition")) {
                    if (!Array.isArray(e.Condition)) return "Condition: array expected";
                    for (var t = 0; t < e.Condition.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Condition[t]);
                        if (n) return "Condition." + n
                    }
                }
                return null != e.ActionName && e.hasOwnProperty("ActionName") && !i.isString(e.ActionName) ? "ActionName: string expected" : null != e.NextState && e.hasOwnProperty("NextState") && !(i.isInteger(e.NextState) || e.NextState && i.isInteger(e.NextState.low) && i.isInteger(e.NextState.high)) ? "NextState: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.NewPersonalityAction_Config) return e;
                var t = new a.NewPersonalityAction_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Condition) {
                    if (!Array.isArray(e.Condition)) throw TypeError(".NewPersonalityAction_Config.Condition: array expected");
                    t.Condition = [];
                    for (var n = 0; n < e.Condition.length; ++n) {
                        if ("object" != typeof e.Condition[n]) throw TypeError(".NewPersonalityAction_Config.Condition: object expected");
                        t.Condition[n] = a.IntArray_Config.fromObject(e.Condition[n])
                    }
                }
                return null != e.ActionName && (t.ActionName = String(e.ActionName)), null != e.NextState && (i.Long ? (t.NextState = i.Long.fromValue(e.NextState)).unsigned = !1 : "string" == typeof e.NextState ? t.NextState = parseInt(e.NextState, 10) : "number" == typeof e.NextState ? t.NextState = e.NextState : "object" == typeof e.NextState && (t.NextState = new i.LongBits(e.NextState.low >>> 0, e.NextState.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Condition = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.ActionName = "", i.Long ? (o = new i.Long(0, 0, !1), n.NextState = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextState = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Condition && e.Condition.length) {
                    n.Condition = [];
                    for (var r = 0; r < e.Condition.length; ++r) n.Condition[r] = a.IntArray_Config.toObject(e.Condition[r], t)
                }
                return null != e.ActionName && e.hasOwnProperty("ActionName") && (n.ActionName = e.ActionName), null != e.NextState && e.hasOwnProperty("NextState") && ("number" == typeof e.NextState ? n.NextState = t.longs === String ? String(e.NextState) : e.NextState : n.NextState = t.longs === String ? i.Long.prototype.toString.call(e.NextState) : t.longs === Number ? new i.LongBits(e.NextState.low >>> 0, e.NextState.high >>> 0).toNumber() : e.NextState), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/NewPersonalityAction_Config"
            }, e
        }(), a.NewYearWeapon_Config = function() {
            function e(e) {
                if (this.StarAttr = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PieceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Model = "", e.prototype.AvailableStartTime = "", e.prototype.UnAvailableTime = "", e.prototype.CoolDownTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Description = "", e.prototype.StarAttr = i.emptyArray, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.PieceId && Object.hasOwnProperty.call(e, "PieceId") && t.uint32(24).int64(e.PieceId), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(34).string(e.Model), null != e.AvailableStartTime && Object.hasOwnProperty.call(e, "AvailableStartTime") && t.uint32(42).string(e.AvailableStartTime), null != e.UnAvailableTime && Object.hasOwnProperty.call(e, "UnAvailableTime") && t.uint32(50).string(e.UnAvailableTime), null != e.CoolDownTime && Object.hasOwnProperty.call(e, "CoolDownTime") && t.uint32(56).int64(e.CoolDownTime), null != e.Description && Object.hasOwnProperty.call(e, "Description") && t.uint32(66).string(e.Description), null != e.StarAttr && e.StarAttr.length)
                    for (var n = 0; n < e.StarAttr.length; ++n) a.IntArray_Config.encode(e.StarAttr[n], t.uint32(74).fork()).ldelim();
                return null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(80).int64(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.NewYearWeapon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.PieceId = e.int64();
                            break;
                        case 4:
                            r.Model = e.string();
                            break;
                        case 5:
                            r.AvailableStartTime = e.string();
                            break;
                        case 6:
                            r.UnAvailableTime = e.string();
                            break;
                        case 7:
                            r.CoolDownTime = e.int64();
                            break;
                        case 8:
                            r.Description = e.string();
                            break;
                        case 9:
                            r.StarAttr && r.StarAttr.length || (r.StarAttr = []), r.StarAttr.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.Count = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.PieceId && e.hasOwnProperty("PieceId") && !(i.isInteger(e.PieceId) || e.PieceId && i.isInteger(e.PieceId.low) && i.isInteger(e.PieceId.high))) return "PieceId: integer|Long expected";
                if (null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model)) return "Model: string expected";
                if (null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && !i.isString(e.AvailableStartTime)) return "AvailableStartTime: string expected";
                if (null != e.UnAvailableTime && e.hasOwnProperty("UnAvailableTime") && !i.isString(e.UnAvailableTime)) return "UnAvailableTime: string expected";
                if (null != e.CoolDownTime && e.hasOwnProperty("CoolDownTime") && !(i.isInteger(e.CoolDownTime) || e.CoolDownTime && i.isInteger(e.CoolDownTime.low) && i.isInteger(e.CoolDownTime.high))) return "CoolDownTime: integer|Long expected";
                if (null != e.Description && e.hasOwnProperty("Description") && !i.isString(e.Description)) return "Description: string expected";
                if (null != e.StarAttr && e.hasOwnProperty("StarAttr")) {
                    if (!Array.isArray(e.StarAttr)) return "StarAttr: array expected";
                    for (var t = 0; t < e.StarAttr.length; ++t) {
                        var n = a.IntArray_Config.verify(e.StarAttr[t]);
                        if (n) return "StarAttr." + n
                    }
                }
                return null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.NewYearWeapon_Config) return e;
                var t = new a.NewYearWeapon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.PieceId && (i.Long ? (t.PieceId = i.Long.fromValue(e.PieceId)).unsigned = !1 : "string" == typeof e.PieceId ? t.PieceId = parseInt(e.PieceId, 10) : "number" == typeof e.PieceId ? t.PieceId = e.PieceId : "object" == typeof e.PieceId && (t.PieceId = new i.LongBits(e.PieceId.low >>> 0, e.PieceId.high >>> 0).toNumber())), null != e.Model && (t.Model = String(e.Model)), null != e.AvailableStartTime && (t.AvailableStartTime = String(e.AvailableStartTime)), null != e.UnAvailableTime && (t.UnAvailableTime = String(e.UnAvailableTime)), null != e.CoolDownTime && (i.Long ? (t.CoolDownTime = i.Long.fromValue(e.CoolDownTime)).unsigned = !1 : "string" == typeof e.CoolDownTime ? t.CoolDownTime = parseInt(e.CoolDownTime, 10) : "number" == typeof e.CoolDownTime ? t.CoolDownTime = e.CoolDownTime : "object" == typeof e.CoolDownTime && (t.CoolDownTime = new i.LongBits(e.CoolDownTime.low >>> 0, e.CoolDownTime.high >>> 0).toNumber())), null != e.Description && (t.Description = String(e.Description)), e.StarAttr) {
                    if (!Array.isArray(e.StarAttr)) throw TypeError(".NewYearWeapon_Config.StarAttr: array expected");
                    t.StarAttr = [];
                    for (var n = 0; n < e.StarAttr.length; ++n) {
                        if ("object" != typeof e.StarAttr[n]) throw TypeError(".NewYearWeapon_Config.StarAttr: object expected");
                        t.StarAttr[n] = a.IntArray_Config.fromObject(e.StarAttr[n])
                    }
                }
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.StarAttr = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.PieceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PieceId = t.longs === String ? "0" : 0, n.Model = "", n.AvailableStartTime = "", n.UnAvailableTime = "", i.Long ? (o = new i.Long(0, 0, !1), n.CoolDownTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CoolDownTime = t.longs === String ? "0" : 0, n.Description = "", i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.PieceId && e.hasOwnProperty("PieceId") && ("number" == typeof e.PieceId ? n.PieceId = t.longs === String ? String(e.PieceId) : e.PieceId : n.PieceId = t.longs === String ? i.Long.prototype.toString.call(e.PieceId) : t.longs === Number ? new i.LongBits(e.PieceId.low >>> 0, e.PieceId.high >>> 0).toNumber() : e.PieceId), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), null != e.AvailableStartTime && e.hasOwnProperty("AvailableStartTime") && (n.AvailableStartTime = e.AvailableStartTime), null != e.UnAvailableTime && e.hasOwnProperty("UnAvailableTime") && (n.UnAvailableTime = e.UnAvailableTime), null != e.CoolDownTime && e.hasOwnProperty("CoolDownTime") && ("number" == typeof e.CoolDownTime ? n.CoolDownTime = t.longs === String ? String(e.CoolDownTime) : e.CoolDownTime : n.CoolDownTime = t.longs === String ? i.Long.prototype.toString.call(e.CoolDownTime) : t.longs === Number ? new i.LongBits(e.CoolDownTime.low >>> 0, e.CoolDownTime.high >>> 0).toNumber() : e.CoolDownTime), null != e.Description && e.hasOwnProperty("Description") && (n.Description = e.Description), e.StarAttr && e.StarAttr.length) {
                    n.StarAttr = [];
                    for (var r = 0; r < e.StarAttr.length; ++r) n.StarAttr[r] = a.IntArray_Config.toObject(e.StarAttr[r], t)
                }
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/NewYearWeapon_Config"
            }, e
        }(), a.NewYearWeaponLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.NewYearWeaponLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.NewYearWeaponLevel_Config) return e;
                var t = new a.NewYearWeaponLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".NewYearWeaponLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".NewYearWeaponLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".NewYearWeaponLevel_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".NewYearWeaponLevel_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/NewYearWeaponLevel_Config"
            }, e
        }(), a.NewYearWeaponStar_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Attrs = [], this.HeroMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Attrs = i.emptyArray, e.prototype.HeroMaterials = i.emptyArray, e.prototype.LevelCap = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Card = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CardShowChance = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Attrs && e.Attrs.length)
                    for (n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.HeroMaterials && e.HeroMaterials.length)
                    for (n = 0; n < e.HeroMaterials.length; ++n) a.IntArray_Config.encode(e.HeroMaterials[n], t.uint32(34).fork()).ldelim();
                return null != e.LevelCap && Object.hasOwnProperty.call(e, "LevelCap") && t.uint32(40).int64(e.LevelCap), null != e.Card && Object.hasOwnProperty.call(e, "Card") && t.uint32(56).int64(e.Card), null != e.CardShowChance && Object.hasOwnProperty.call(e, "CardShowChance") && t.uint32(64).int64(e.CardShowChance), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.NewYearWeaponStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.HeroMaterials && r.HeroMaterials.length || (r.HeroMaterials = []), r.HeroMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.LevelCap = e.int64();
                            break;
                        case 7:
                            r.Card = e.int64();
                            break;
                        case 8:
                            r.CardShowChance = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.HeroMaterials && e.hasOwnProperty("HeroMaterials")) {
                    if (!Array.isArray(e.HeroMaterials)) return "HeroMaterials: array expected";
                    for (t = 0; t < e.HeroMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.HeroMaterials[t])) return "HeroMaterials." + n
                    }
                }
                return null != e.LevelCap && e.hasOwnProperty("LevelCap") && !(i.isInteger(e.LevelCap) || e.LevelCap && i.isInteger(e.LevelCap.low) && i.isInteger(e.LevelCap.high)) ? "LevelCap: integer|Long expected" : null != e.Card && e.hasOwnProperty("Card") && !(i.isInteger(e.Card) || e.Card && i.isInteger(e.Card.low) && i.isInteger(e.Card.high)) ? "Card: integer|Long expected" : null != e.CardShowChance && e.hasOwnProperty("CardShowChance") && !(i.isInteger(e.CardShowChance) || e.CardShowChance && i.isInteger(e.CardShowChance.low) && i.isInteger(e.CardShowChance.high)) ? "CardShowChance: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.NewYearWeaponStar_Config) return e;
                var t = new a.NewYearWeaponStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".NewYearWeaponStar_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".NewYearWeaponStar_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".NewYearWeaponStar_Config.Attrs: array expected");
                    for (t.Attrs = [], n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".NewYearWeaponStar_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.HeroMaterials) {
                    if (!Array.isArray(e.HeroMaterials)) throw TypeError(".NewYearWeaponStar_Config.HeroMaterials: array expected");
                    for (t.HeroMaterials = [], n = 0; n < e.HeroMaterials.length; ++n) {
                        if ("object" != typeof e.HeroMaterials[n]) throw TypeError(".NewYearWeaponStar_Config.HeroMaterials: object expected");
                        t.HeroMaterials[n] = a.IntArray_Config.fromObject(e.HeroMaterials[n])
                    }
                }
                return null != e.LevelCap && (i.Long ? (t.LevelCap = i.Long.fromValue(e.LevelCap)).unsigned = !1 : "string" == typeof e.LevelCap ? t.LevelCap = parseInt(e.LevelCap, 10) : "number" == typeof e.LevelCap ? t.LevelCap = e.LevelCap : "object" == typeof e.LevelCap && (t.LevelCap = new i.LongBits(e.LevelCap.low >>> 0, e.LevelCap.high >>> 0).toNumber())), null != e.Card && (i.Long ? (t.Card = i.Long.fromValue(e.Card)).unsigned = !1 : "string" == typeof e.Card ? t.Card = parseInt(e.Card, 10) : "number" == typeof e.Card ? t.Card = e.Card : "object" == typeof e.Card && (t.Card = new i.LongBits(e.Card.low >>> 0, e.Card.high >>> 0).toNumber())), null != e.CardShowChance && (i.Long ? (t.CardShowChance = i.Long.fromValue(e.CardShowChance)).unsigned = !1 : "string" == typeof e.CardShowChance ? t.CardShowChance = parseInt(e.CardShowChance, 10) : "number" == typeof e.CardShowChance ? t.CardShowChance = e.CardShowChance : "object" == typeof e.CardShowChance && (t.CardShowChance = new i.LongBits(e.CardShowChance.low >>> 0, e.CardShowChance.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Attrs = [], n.HeroMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.LevelCap = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LevelCap = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Card = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Card = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.CardShowChance = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CardShowChance = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Attrs && e.Attrs.length)
                    for (n.Attrs = [], r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t);
                if (e.HeroMaterials && e.HeroMaterials.length)
                    for (n.HeroMaterials = [], r = 0; r < e.HeroMaterials.length; ++r) n.HeroMaterials[r] = a.IntArray_Config.toObject(e.HeroMaterials[r], t);
                return null != e.LevelCap && e.hasOwnProperty("LevelCap") && ("number" == typeof e.LevelCap ? n.LevelCap = t.longs === String ? String(e.LevelCap) : e.LevelCap : n.LevelCap = t.longs === String ? i.Long.prototype.toString.call(e.LevelCap) : t.longs === Number ? new i.LongBits(e.LevelCap.low >>> 0, e.LevelCap.high >>> 0).toNumber() : e.LevelCap), null != e.Card && e.hasOwnProperty("Card") && ("number" == typeof e.Card ? n.Card = t.longs === String ? String(e.Card) : e.Card : n.Card = t.longs === String ? i.Long.prototype.toString.call(e.Card) : t.longs === Number ? new i.LongBits(e.Card.low >>> 0, e.Card.high >>> 0).toNumber() : e.Card), null != e.CardShowChance && e.hasOwnProperty("CardShowChance") && ("number" == typeof e.CardShowChance ? n.CardShowChance = t.longs === String ? String(e.CardShowChance) : e.CardShowChance : n.CardShowChance = t.longs === String ? i.Long.prototype.toString.call(e.CardShowChance) : t.longs === Number ? new i.LongBits(e.CardShowChance.low >>> 0, e.CardShowChance.high >>> 0).toNumber() : e.CardShowChance), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/NewYearWeaponStar_Config"
            }, e
        }(), a.SeasonWeapon_Config = function() {
            function e(e) {
                if (this.LevelMaterials = [], this.LevelAttrs = [], this.LevelAttrsSeason = [], this.StarMaterials = [], this.StarAttrs = [], this.StarAttrsSeason = [], this.Fly = [], this.Slots = [], this.LevelBattlePower = [], this.StarBattlePower = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelMaterials = i.emptyArray, e.prototype.LevelAttrs = i.emptyArray, e.prototype.LevelAttrsSeason = i.emptyArray, e.prototype.StarMaterials = i.emptyArray, e.prototype.StarAttrs = i.emptyArray, e.prototype.StarAttrsSeason = i.emptyArray, e.prototype.Fly = i.emptyArray, e.prototype.Slots = i.emptyArray, e.prototype.LevelBattlePower = i.emptyArray, e.prototype.StarBattlePower = i.emptyArray, e.prototype.Model = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.LevelMaterials && e.LevelMaterials.length)
                    for (var n = 0; n < e.LevelMaterials.length; ++n) a.IntArray_Config.encode(e.LevelMaterials[n], t.uint32(26).fork()).ldelim();
                if (null != e.LevelAttrs && e.LevelAttrs.length)
                    for (n = 0; n < e.LevelAttrs.length; ++n) a.IntArray_Config.encode(e.LevelAttrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.LevelAttrsSeason && e.LevelAttrsSeason.length)
                    for (n = 0; n < e.LevelAttrsSeason.length; ++n) a.IntArray_Config.encode(e.LevelAttrsSeason[n], t.uint32(42).fork()).ldelim();
                if (null != e.StarMaterials && e.StarMaterials.length)
                    for (n = 0; n < e.StarMaterials.length; ++n) a.IntArray_Config.encode(e.StarMaterials[n], t.uint32(50).fork()).ldelim();
                if (null != e.StarAttrs && e.StarAttrs.length)
                    for (n = 0; n < e.StarAttrs.length; ++n) a.IntArray_Config.encode(e.StarAttrs[n], t.uint32(58).fork()).ldelim();
                if (null != e.StarAttrsSeason && e.StarAttrsSeason.length)
                    for (n = 0; n < e.StarAttrsSeason.length; ++n) a.IntArray_Config.encode(e.StarAttrsSeason[n], t.uint32(66).fork()).ldelim();
                if (null != e.Fly && e.Fly.length)
                    for (n = 0; n < e.Fly.length; ++n) a.IntArray_Config.encode(e.Fly[n], t.uint32(74).fork()).ldelim();
                if (null != e.Slots && e.Slots.length)
                    for (n = 0; n < e.Slots.length; ++n) a.IntArray_Config.encode(e.Slots[n], t.uint32(82).fork()).ldelim();
                if (null != e.LevelBattlePower && e.LevelBattlePower.length) {
                    for (t.uint32(90).fork(), n = 0; n < e.LevelBattlePower.length; ++n) t.int64(e.LevelBattlePower[n]);
                    t.ldelim()
                }
                if (null != e.StarBattlePower && e.StarBattlePower.length) {
                    for (t.uint32(98).fork(), n = 0; n < e.StarBattlePower.length; ++n) t.int64(e.StarBattlePower[n]);
                    t.ldelim()
                }
                return null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(106).string(e.Model), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SeasonWeapon_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.LevelMaterials && r.LevelMaterials.length || (r.LevelMaterials = []), r.LevelMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.LevelAttrs && r.LevelAttrs.length || (r.LevelAttrs = []), r.LevelAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.LevelAttrsSeason && r.LevelAttrsSeason.length || (r.LevelAttrsSeason = []), r.LevelAttrsSeason.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.StarMaterials && r.StarMaterials.length || (r.StarMaterials = []), r.StarMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.StarAttrs && r.StarAttrs.length || (r.StarAttrs = []), r.StarAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.StarAttrsSeason && r.StarAttrsSeason.length || (r.StarAttrsSeason = []), r.StarAttrsSeason.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.Fly && r.Fly.length || (r.Fly = []), r.Fly.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.Slots && r.Slots.length || (r.Slots = []), r.Slots.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 11:
                            if (r.LevelBattlePower && r.LevelBattlePower.length || (r.LevelBattlePower = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.LevelBattlePower.push(e.int64());
                            else r.LevelBattlePower.push(e.int64());
                            break;
                        case 12:
                            if (r.StarBattlePower && r.StarBattlePower.length || (r.StarBattlePower = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.StarBattlePower.push(e.int64());
                            else r.StarBattlePower.push(e.int64());
                            break;
                        case 13:
                            r.Model = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.LevelMaterials && e.hasOwnProperty("LevelMaterials")) {
                    if (!Array.isArray(e.LevelMaterials)) return "LevelMaterials: array expected";
                    for (var t = 0; t < e.LevelMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelMaterials[t])) return "LevelMaterials." + n
                }
                if (null != e.LevelAttrs && e.hasOwnProperty("LevelAttrs")) {
                    if (!Array.isArray(e.LevelAttrs)) return "LevelAttrs: array expected";
                    for (t = 0; t < e.LevelAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelAttrs[t])) return "LevelAttrs." + n
                }
                if (null != e.LevelAttrsSeason && e.hasOwnProperty("LevelAttrsSeason")) {
                    if (!Array.isArray(e.LevelAttrsSeason)) return "LevelAttrsSeason: array expected";
                    for (t = 0; t < e.LevelAttrsSeason.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelAttrsSeason[t])) return "LevelAttrsSeason." + n
                }
                if (null != e.StarMaterials && e.hasOwnProperty("StarMaterials")) {
                    if (!Array.isArray(e.StarMaterials)) return "StarMaterials: array expected";
                    for (t = 0; t < e.StarMaterials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.StarMaterials[t])) return "StarMaterials." + n
                }
                if (null != e.StarAttrs && e.hasOwnProperty("StarAttrs")) {
                    if (!Array.isArray(e.StarAttrs)) return "StarAttrs: array expected";
                    for (t = 0; t < e.StarAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.StarAttrs[t])) return "StarAttrs." + n
                }
                if (null != e.StarAttrsSeason && e.hasOwnProperty("StarAttrsSeason")) {
                    if (!Array.isArray(e.StarAttrsSeason)) return "StarAttrsSeason: array expected";
                    for (t = 0; t < e.StarAttrsSeason.length; ++t)
                        if (n = a.IntArray_Config.verify(e.StarAttrsSeason[t])) return "StarAttrsSeason." + n
                }
                if (null != e.Fly && e.hasOwnProperty("Fly")) {
                    if (!Array.isArray(e.Fly)) return "Fly: array expected";
                    for (t = 0; t < e.Fly.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Fly[t])) return "Fly." + n
                }
                if (null != e.Slots && e.hasOwnProperty("Slots")) {
                    if (!Array.isArray(e.Slots)) return "Slots: array expected";
                    for (t = 0; t < e.Slots.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Slots[t])) return "Slots." + n
                    }
                }
                if (null != e.LevelBattlePower && e.hasOwnProperty("LevelBattlePower")) {
                    if (!Array.isArray(e.LevelBattlePower)) return "LevelBattlePower: array expected";
                    for (t = 0; t < e.LevelBattlePower.length; ++t)
                        if (!(i.isInteger(e.LevelBattlePower[t]) || e.LevelBattlePower[t] && i.isInteger(e.LevelBattlePower[t].low) && i.isInteger(e.LevelBattlePower[t].high))) return "LevelBattlePower: integer|Long[] expected"
                }
                if (null != e.StarBattlePower && e.hasOwnProperty("StarBattlePower")) {
                    if (!Array.isArray(e.StarBattlePower)) return "StarBattlePower: array expected";
                    for (t = 0; t < e.StarBattlePower.length; ++t)
                        if (!(i.isInteger(e.StarBattlePower[t]) || e.StarBattlePower[t] && i.isInteger(e.StarBattlePower[t].low) && i.isInteger(e.StarBattlePower[t].high))) return "StarBattlePower: integer|Long[] expected"
                }
                return null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model) ? "Model: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SeasonWeapon_Config) return e;
                var t = new a.SeasonWeapon_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.LevelMaterials) {
                    if (!Array.isArray(e.LevelMaterials)) throw TypeError(".SeasonWeapon_Config.LevelMaterials: array expected");
                    t.LevelMaterials = [];
                    for (var n = 0; n < e.LevelMaterials.length; ++n) {
                        if ("object" != typeof e.LevelMaterials[n]) throw TypeError(".SeasonWeapon_Config.LevelMaterials: object expected");
                        t.LevelMaterials[n] = a.IntArray_Config.fromObject(e.LevelMaterials[n])
                    }
                }
                if (e.LevelAttrs) {
                    if (!Array.isArray(e.LevelAttrs)) throw TypeError(".SeasonWeapon_Config.LevelAttrs: array expected");
                    for (t.LevelAttrs = [], n = 0; n < e.LevelAttrs.length; ++n) {
                        if ("object" != typeof e.LevelAttrs[n]) throw TypeError(".SeasonWeapon_Config.LevelAttrs: object expected");
                        t.LevelAttrs[n] = a.IntArray_Config.fromObject(e.LevelAttrs[n])
                    }
                }
                if (e.LevelAttrsSeason) {
                    if (!Array.isArray(e.LevelAttrsSeason)) throw TypeError(".SeasonWeapon_Config.LevelAttrsSeason: array expected");
                    for (t.LevelAttrsSeason = [], n = 0; n < e.LevelAttrsSeason.length; ++n) {
                        if ("object" != typeof e.LevelAttrsSeason[n]) throw TypeError(".SeasonWeapon_Config.LevelAttrsSeason: object expected");
                        t.LevelAttrsSeason[n] = a.IntArray_Config.fromObject(e.LevelAttrsSeason[n])
                    }
                }
                if (e.StarMaterials) {
                    if (!Array.isArray(e.StarMaterials)) throw TypeError(".SeasonWeapon_Config.StarMaterials: array expected");
                    for (t.StarMaterials = [], n = 0; n < e.StarMaterials.length; ++n) {
                        if ("object" != typeof e.StarMaterials[n]) throw TypeError(".SeasonWeapon_Config.StarMaterials: object expected");
                        t.StarMaterials[n] = a.IntArray_Config.fromObject(e.StarMaterials[n])
                    }
                }
                if (e.StarAttrs) {
                    if (!Array.isArray(e.StarAttrs)) throw TypeError(".SeasonWeapon_Config.StarAttrs: array expected");
                    for (t.StarAttrs = [], n = 0; n < e.StarAttrs.length; ++n) {
                        if ("object" != typeof e.StarAttrs[n]) throw TypeError(".SeasonWeapon_Config.StarAttrs: object expected");
                        t.StarAttrs[n] = a.IntArray_Config.fromObject(e.StarAttrs[n])
                    }
                }
                if (e.StarAttrsSeason) {
                    if (!Array.isArray(e.StarAttrsSeason)) throw TypeError(".SeasonWeapon_Config.StarAttrsSeason: array expected");
                    for (t.StarAttrsSeason = [], n = 0; n < e.StarAttrsSeason.length; ++n) {
                        if ("object" != typeof e.StarAttrsSeason[n]) throw TypeError(".SeasonWeapon_Config.StarAttrsSeason: object expected");
                        t.StarAttrsSeason[n] = a.IntArray_Config.fromObject(e.StarAttrsSeason[n])
                    }
                }
                if (e.Fly) {
                    if (!Array.isArray(e.Fly)) throw TypeError(".SeasonWeapon_Config.Fly: array expected");
                    for (t.Fly = [], n = 0; n < e.Fly.length; ++n) {
                        if ("object" != typeof e.Fly[n]) throw TypeError(".SeasonWeapon_Config.Fly: object expected");
                        t.Fly[n] = a.IntArray_Config.fromObject(e.Fly[n])
                    }
                }
                if (e.Slots) {
                    if (!Array.isArray(e.Slots)) throw TypeError(".SeasonWeapon_Config.Slots: array expected");
                    for (t.Slots = [], n = 0; n < e.Slots.length; ++n) {
                        if ("object" != typeof e.Slots[n]) throw TypeError(".SeasonWeapon_Config.Slots: object expected");
                        t.Slots[n] = a.IntArray_Config.fromObject(e.Slots[n])
                    }
                }
                if (e.LevelBattlePower) {
                    if (!Array.isArray(e.LevelBattlePower)) throw TypeError(".SeasonWeapon_Config.LevelBattlePower: array expected");
                    for (t.LevelBattlePower = [], n = 0; n < e.LevelBattlePower.length; ++n) i.Long ? (t.LevelBattlePower[n] = i.Long.fromValue(e.LevelBattlePower[n])).unsigned = !1 : "string" == typeof e.LevelBattlePower[n] ? t.LevelBattlePower[n] = parseInt(e.LevelBattlePower[n], 10) : "number" == typeof e.LevelBattlePower[n] ? t.LevelBattlePower[n] = e.LevelBattlePower[n] : "object" == typeof e.LevelBattlePower[n] && (t.LevelBattlePower[n] = new i.LongBits(e.LevelBattlePower[n].low >>> 0, e.LevelBattlePower[n].high >>> 0).toNumber())
                }
                if (e.StarBattlePower) {
                    if (!Array.isArray(e.StarBattlePower)) throw TypeError(".SeasonWeapon_Config.StarBattlePower: array expected");
                    for (t.StarBattlePower = [], n = 0; n < e.StarBattlePower.length; ++n) i.Long ? (t.StarBattlePower[n] = i.Long.fromValue(e.StarBattlePower[n])).unsigned = !1 : "string" == typeof e.StarBattlePower[n] ? t.StarBattlePower[n] = parseInt(e.StarBattlePower[n], 10) : "number" == typeof e.StarBattlePower[n] ? t.StarBattlePower[n] = e.StarBattlePower[n] : "object" == typeof e.StarBattlePower[n] && (t.StarBattlePower[n] = new i.LongBits(e.StarBattlePower[n].low >>> 0, e.StarBattlePower[n].high >>> 0).toNumber())
                }
                return null != e.Model && (t.Model = String(e.Model)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.LevelMaterials = [], n.LevelAttrs = [], n.LevelAttrsSeason = [], n.StarMaterials = [], n.StarAttrs = [], n.StarAttrsSeason = [], n.Fly = [], n.Slots = [], n.LevelBattlePower = [], n.StarBattlePower = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Model = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.LevelMaterials && e.LevelMaterials.length) {
                    n.LevelMaterials = [];
                    for (var r = 0; r < e.LevelMaterials.length; ++r) n.LevelMaterials[r] = a.IntArray_Config.toObject(e.LevelMaterials[r], t)
                }
                if (e.LevelAttrs && e.LevelAttrs.length)
                    for (n.LevelAttrs = [], r = 0; r < e.LevelAttrs.length; ++r) n.LevelAttrs[r] = a.IntArray_Config.toObject(e.LevelAttrs[r], t);
                if (e.LevelAttrsSeason && e.LevelAttrsSeason.length)
                    for (n.LevelAttrsSeason = [], r = 0; r < e.LevelAttrsSeason.length; ++r) n.LevelAttrsSeason[r] = a.IntArray_Config.toObject(e.LevelAttrsSeason[r], t);
                if (e.StarMaterials && e.StarMaterials.length)
                    for (n.StarMaterials = [], r = 0; r < e.StarMaterials.length; ++r) n.StarMaterials[r] = a.IntArray_Config.toObject(e.StarMaterials[r], t);
                if (e.StarAttrs && e.StarAttrs.length)
                    for (n.StarAttrs = [], r = 0; r < e.StarAttrs.length; ++r) n.StarAttrs[r] = a.IntArray_Config.toObject(e.StarAttrs[r], t);
                if (e.StarAttrsSeason && e.StarAttrsSeason.length)
                    for (n.StarAttrsSeason = [], r = 0; r < e.StarAttrsSeason.length; ++r) n.StarAttrsSeason[r] = a.IntArray_Config.toObject(e.StarAttrsSeason[r], t);
                if (e.Fly && e.Fly.length)
                    for (n.Fly = [], r = 0; r < e.Fly.length; ++r) n.Fly[r] = a.IntArray_Config.toObject(e.Fly[r], t);
                if (e.Slots && e.Slots.length)
                    for (n.Slots = [], r = 0; r < e.Slots.length; ++r) n.Slots[r] = a.IntArray_Config.toObject(e.Slots[r], t);
                if (e.LevelBattlePower && e.LevelBattlePower.length)
                    for (n.LevelBattlePower = [], r = 0; r < e.LevelBattlePower.length; ++r) "number" == typeof e.LevelBattlePower[r] ? n.LevelBattlePower[r] = t.longs === String ? String(e.LevelBattlePower[r]) : e.LevelBattlePower[r] : n.LevelBattlePower[r] = t.longs === String ? i.Long.prototype.toString.call(e.LevelBattlePower[r]) : t.longs === Number ? new i.LongBits(e.LevelBattlePower[r].low >>> 0, e.LevelBattlePower[r].high >>> 0).toNumber() : e.LevelBattlePower[r];
                if (e.StarBattlePower && e.StarBattlePower.length)
                    for (n.StarBattlePower = [], r = 0; r < e.StarBattlePower.length; ++r) "number" == typeof e.StarBattlePower[r] ? n.StarBattlePower[r] = t.longs === String ? String(e.StarBattlePower[r]) : e.StarBattlePower[r] : n.StarBattlePower[r] = t.longs === String ? i.Long.prototype.toString.call(e.StarBattlePower[r]) : t.longs === Number ? new i.LongBits(e.StarBattlePower[r].low >>> 0, e.StarBattlePower[r].high >>> 0).toNumber() : e.StarBattlePower[r];
                return null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SeasonWeapon_Config"
            }, e
        }(), a.ItemEntry_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.AttrsSeason = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.AttrsSeason = i.emptyArray, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BattlePower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.AttrsSeason && e.AttrsSeason.length)
                    for (n = 0; n < e.AttrsSeason.length; ++n) a.IntArray_Config.encode(e.AttrsSeason[n], t.uint32(26).fork()).ldelim();
                return null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(32).int64(e.Type), null != e.BattlePower && Object.hasOwnProperty.call(e, "BattlePower") && t.uint32(48).int64(e.BattlePower), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemEntry_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.AttrsSeason && r.AttrsSeason.length || (r.AttrsSeason = []), r.AttrsSeason.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Type = e.int64();
                            break;
                        case 6:
                            r.BattlePower = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.AttrsSeason && e.hasOwnProperty("AttrsSeason")) {
                    if (!Array.isArray(e.AttrsSeason)) return "AttrsSeason: array expected";
                    for (t = 0; t < e.AttrsSeason.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.AttrsSeason[t])) return "AttrsSeason." + n
                    }
                }
                return null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.BattlePower && e.hasOwnProperty("BattlePower") && !(i.isInteger(e.BattlePower) || e.BattlePower && i.isInteger(e.BattlePower.low) && i.isInteger(e.BattlePower.high)) ? "BattlePower: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemEntry_Config) return e;
                var t = new a.ItemEntry_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".ItemEntry_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".ItemEntry_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.AttrsSeason) {
                    if (!Array.isArray(e.AttrsSeason)) throw TypeError(".ItemEntry_Config.AttrsSeason: array expected");
                    for (t.AttrsSeason = [], n = 0; n < e.AttrsSeason.length; ++n) {
                        if ("object" != typeof e.AttrsSeason[n]) throw TypeError(".ItemEntry_Config.AttrsSeason: object expected");
                        t.AttrsSeason[n] = a.IntArray_Config.fromObject(e.AttrsSeason[n])
                    }
                }
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.BattlePower && (i.Long ? (t.BattlePower = i.Long.fromValue(e.BattlePower)).unsigned = !1 : "string" == typeof e.BattlePower ? t.BattlePower = parseInt(e.BattlePower, 10) : "number" == typeof e.BattlePower ? t.BattlePower = e.BattlePower : "object" == typeof e.BattlePower && (t.BattlePower = new i.LongBits(e.BattlePower.low >>> 0, e.BattlePower.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.AttrsSeason = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.BattlePower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BattlePower = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.AttrsSeason && e.AttrsSeason.length)
                    for (n.AttrsSeason = [], r = 0; r < e.AttrsSeason.length; ++r) n.AttrsSeason[r] = a.IntArray_Config.toObject(e.AttrsSeason[r], t);
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.BattlePower && e.hasOwnProperty("BattlePower") && ("number" == typeof e.BattlePower ? n.BattlePower = t.longs === String ? String(e.BattlePower) : e.BattlePower : n.BattlePower = t.longs === String ? i.Long.prototype.toString.call(e.BattlePower) : t.longs === Number ? new i.LongBits(e.BattlePower.low >>> 0, e.BattlePower.high >>> 0).toNumber() : e.BattlePower), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemEntry_Config"
            }, e
        }(), a.ItemPotion_Config = function() {
            function e(e) {
                if (this.Params = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Params = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Params && e.Params.length)
                    for (var n = 0; n < e.Params.length; ++n) a.IntArray_Config.encode(e.Params[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemPotion_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Params && r.Params.length || (r.Params = []), r.Params.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Params && e.hasOwnProperty("Params")) {
                    if (!Array.isArray(e.Params)) return "Params: array expected";
                    for (var t = 0; t < e.Params.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Params[t]);
                        if (n) return "Params." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemPotion_Config) return e;
                var t = new a.ItemPotion_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Params) {
                    if (!Array.isArray(e.Params)) throw TypeError(".ItemPotion_Config.Params: array expected");
                    t.Params = [];
                    for (var n = 0; n < e.Params.length; ++n) {
                        if ("object" != typeof e.Params[n]) throw TypeError(".ItemPotion_Config.Params: object expected");
                        t.Params[n] = a.IntArray_Config.fromObject(e.Params[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Params = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Params && e.Params.length) {
                    n.Params = [];
                    for (var r = 0; r < e.Params.length; ++r) n.Params[r] = a.IntArray_Config.toObject(e.Params[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemPotion_Config"
            }, e
        }(), a.PetRefineLevel_Config = function() {
            function e(e) {
                if (this.EntryWeight = [], this.Consume = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EntryWeight = i.emptyArray, e.prototype.Consume = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(16).int64(e.Xp), null != e.EntryWeight && e.EntryWeight.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.EntryWeight.length; ++n) t.int64(e.EntryWeight[n]);
                    t.ldelim()
                }
                if (null != e.Consume && e.Consume.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.Consume.length; ++n) t.int64(e.Consume[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PetRefineLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Xp = e.int64();
                            break;
                        case 3:
                            if (r.EntryWeight && r.EntryWeight.length || (r.EntryWeight = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.EntryWeight.push(e.int64());
                            else r.EntryWeight.push(e.int64());
                            break;
                        case 4:
                            if (r.Consume && r.Consume.length || (r.Consume = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Consume.push(e.int64());
                            else r.Consume.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high))) return "Xp: integer|Long expected";
                if (null != e.EntryWeight && e.hasOwnProperty("EntryWeight")) {
                    if (!Array.isArray(e.EntryWeight)) return "EntryWeight: array expected";
                    for (var t = 0; t < e.EntryWeight.length; ++t)
                        if (!(i.isInteger(e.EntryWeight[t]) || e.EntryWeight[t] && i.isInteger(e.EntryWeight[t].low) && i.isInteger(e.EntryWeight[t].high))) return "EntryWeight: integer|Long[] expected"
                }
                if (null != e.Consume && e.hasOwnProperty("Consume")) {
                    if (!Array.isArray(e.Consume)) return "Consume: array expected";
                    for (t = 0; t < e.Consume.length; ++t)
                        if (!(i.isInteger(e.Consume[t]) || e.Consume[t] && i.isInteger(e.Consume[t].low) && i.isInteger(e.Consume[t].high))) return "Consume: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PetRefineLevel_Config) return e;
                var t = new a.PetRefineLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), e.EntryWeight) {
                    if (!Array.isArray(e.EntryWeight)) throw TypeError(".PetRefineLevel_Config.EntryWeight: array expected");
                    t.EntryWeight = [];
                    for (var n = 0; n < e.EntryWeight.length; ++n) i.Long ? (t.EntryWeight[n] = i.Long.fromValue(e.EntryWeight[n])).unsigned = !1 : "string" == typeof e.EntryWeight[n] ? t.EntryWeight[n] = parseInt(e.EntryWeight[n], 10) : "number" == typeof e.EntryWeight[n] ? t.EntryWeight[n] = e.EntryWeight[n] : "object" == typeof e.EntryWeight[n] && (t.EntryWeight[n] = new i.LongBits(e.EntryWeight[n].low >>> 0, e.EntryWeight[n].high >>> 0).toNumber())
                }
                if (e.Consume) {
                    if (!Array.isArray(e.Consume)) throw TypeError(".PetRefineLevel_Config.Consume: array expected");
                    for (t.Consume = [], n = 0; n < e.Consume.length; ++n) i.Long ? (t.Consume[n] = i.Long.fromValue(e.Consume[n])).unsigned = !1 : "string" == typeof e.Consume[n] ? t.Consume[n] = parseInt(e.Consume[n], 10) : "number" == typeof e.Consume[n] ? t.Consume[n] = e.Consume[n] : "object" == typeof e.Consume[n] && (t.Consume[n] = new i.LongBits(e.Consume[n].low >>> 0, e.Consume[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.EntryWeight = [], n.Consume = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), e.EntryWeight && e.EntryWeight.length) {
                    n.EntryWeight = [];
                    for (var r = 0; r < e.EntryWeight.length; ++r) "number" == typeof e.EntryWeight[r] ? n.EntryWeight[r] = t.longs === String ? String(e.EntryWeight[r]) : e.EntryWeight[r] : n.EntryWeight[r] = t.longs === String ? i.Long.prototype.toString.call(e.EntryWeight[r]) : t.longs === Number ? new i.LongBits(e.EntryWeight[r].low >>> 0, e.EntryWeight[r].high >>> 0).toNumber() : e.EntryWeight[r]
                }
                if (e.Consume && e.Consume.length)
                    for (n.Consume = [], r = 0; r < e.Consume.length; ++r) "number" == typeof e.Consume[r] ? n.Consume[r] = t.longs === String ? String(e.Consume[r]) : e.Consume[r] : n.Consume[r] = t.longs === String ? i.Long.prototype.toString.call(e.Consume[r]) : t.longs === Number ? new i.LongBits(e.Consume[r].low >>> 0, e.Consume[r].high >>> 0).toNumber() : e.Consume[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PetRefineLevel_Config"
            }, e
        }(), a.PetEntry_Config = function() {
            function e(e) {
                if (this.Attrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(16).int64(e.Quality), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PetEntry_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Quality = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attrs[t]);
                        if (n) return "Attrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PetEntry_Config) return e;
                var t = new a.PetEntry_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".PetEntry_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".PetEntry_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PetEntry_Config"
            }, e
        }(), a.SummonWish_Config = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Items = i.emptyArray, e.prototype.Ratio = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Items && e.Items.length)
                    for (var n = 0; n < e.Items.length; ++n) a.IntArray_Config.encode(e.Items[n], t.uint32(18).fork()).ldelim();
                return null != e.Ratio && Object.hasOwnProperty.call(e, "Ratio") && t.uint32(24).int64(e.Ratio), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(42).string(e.Icon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SummonWish_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Items && r.Items.length || (r.Items = []), r.Items.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Ratio = e.int64();
                            break;
                        case 5:
                            r.Icon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Items[t]);
                        if (n) return "Items." + n
                    }
                }
                return null != e.Ratio && e.hasOwnProperty("Ratio") && !(i.isInteger(e.Ratio) || e.Ratio && i.isInteger(e.Ratio.low) && i.isInteger(e.Ratio.high)) ? "Ratio: integer|Long expected" : null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SummonWish_Config) return e;
                var t = new a.SummonWish_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".SummonWish_Config.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) {
                        if ("object" != typeof e.Items[n]) throw TypeError(".SummonWish_Config.Items: object expected");
                        t.Items[n] = a.IntArray_Config.fromObject(e.Items[n])
                    }
                }
                return null != e.Ratio && (i.Long ? (t.Ratio = i.Long.fromValue(e.Ratio)).unsigned = !1 : "string" == typeof e.Ratio ? t.Ratio = parseInt(e.Ratio, 10) : "number" == typeof e.Ratio ? t.Ratio = e.Ratio : "object" == typeof e.Ratio && (t.Ratio = new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Ratio = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Ratio = t.longs === String ? "0" : 0, n.Icon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var r = 0; r < e.Items.length; ++r) n.Items[r] = a.IntArray_Config.toObject(e.Items[r], t)
                }
                return null != e.Ratio && e.hasOwnProperty("Ratio") && ("number" == typeof e.Ratio ? n.Ratio = t.longs === String ? String(e.Ratio) : e.Ratio : n.Ratio = t.longs === String ? i.Long.prototype.toString.call(e.Ratio) : t.longs === Number ? new i.LongBits(e.Ratio.low >>> 0, e.Ratio.high >>> 0).toNumber() : e.Ratio), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SummonWish_Config"
            }, e
        }(), a.StrongPathTask_Config = function() {
            function e(e) {
                if (this.Rewards = [], this.Show = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.Show = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(16).int64(e.Count), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.Show && e.Show.length)
                    for (n = 0; n < e.Show.length; ++n) a.IntArray_Config.encode(e.Show[n], t.uint32(50).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StrongPathTask_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Count = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Show && r.Show.length || (r.Show = []), r.Show.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high))) return "Count: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.Show && e.hasOwnProperty("Show")) {
                    if (!Array.isArray(e.Show)) return "Show: array expected";
                    for (t = 0; t < e.Show.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Show[t])) return "Show." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StrongPathTask_Config) return e;
                var t = new a.StrongPathTask_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".StrongPathTask_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".StrongPathTask_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.Show) {
                    if (!Array.isArray(e.Show)) throw TypeError(".StrongPathTask_Config.Show: array expected");
                    for (t.Show = [], n = 0; n < e.Show.length; ++n) {
                        if ("object" != typeof e.Show[n]) throw TypeError(".StrongPathTask_Config.Show: object expected");
                        t.Show[n] = a.IntArray_Config.fromObject(e.Show[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.Show = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                if (e.Show && e.Show.length)
                    for (n.Show = [], r = 0; r < e.Show.length; ++r) n.Show[r] = a.IntArray_Config.toObject(e.Show[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StrongPathTask_Config"
            }, e
        }(), a.ItemPrivilegeToken_Config = function() {
            function e(e) {
                if (this.Privilege = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Privilege = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Privilege && e.Privilege.length)
                    for (var n = 0; n < e.Privilege.length; ++n) a.IntArray_Config.encode(e.Privilege[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemPrivilegeToken_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Privilege && r.Privilege.length || (r.Privilege = []), r.Privilege.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Privilege && e.hasOwnProperty("Privilege")) {
                    if (!Array.isArray(e.Privilege)) return "Privilege: array expected";
                    for (var t = 0; t < e.Privilege.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Privilege[t]);
                        if (n) return "Privilege." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemPrivilegeToken_Config) return e;
                var t = new a.ItemPrivilegeToken_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Privilege) {
                    if (!Array.isArray(e.Privilege)) throw TypeError(".ItemPrivilegeToken_Config.Privilege: array expected");
                    t.Privilege = [];
                    for (var n = 0; n < e.Privilege.length; ++n) {
                        if ("object" != typeof e.Privilege[n]) throw TypeError(".ItemPrivilegeToken_Config.Privilege: object expected");
                        t.Privilege[n] = a.IntArray_Config.fromObject(e.Privilege[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Privilege = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Privilege && e.Privilege.length) {
                    n.Privilege = [];
                    for (var r = 0; r < e.Privilege.length; ++r) n.Privilege[r] = a.IntArray_Config.toObject(e.Privilege[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemPrivilegeToken_Config"
            }, e
        }(), a.RankMatch_Config = function() {
            function e(e) {
                if (this.Range = [], this.Rewards = [], this.RobotIds = [], this.RankMatchRobotIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NextRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Range = i.emptyArray, e.prototype.GroupNum = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PromoteNum = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RelegationNum = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.RobotIds = i.emptyArray, e.prototype.GourpNeedRobot = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MainRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PromoteNeedWinCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PlacementMatcheNextRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RankMatchRobotIds = i.emptyArray, e.prototype.MinorRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.NextRank && Object.hasOwnProperty.call(e, "NextRank") && t.uint32(16).int64(e.NextRank), null != e.Range && e.Range.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Range.length; ++n) t.int64(e.Range[n]);
                    t.ldelim()
                }
                if (null != e.GroupNum && Object.hasOwnProperty.call(e, "GroupNum") && t.uint32(32).int64(e.GroupNum), null != e.PromoteNum && Object.hasOwnProperty.call(e, "PromoteNum") && t.uint32(40).int64(e.PromoteNum), null != e.RelegationNum && Object.hasOwnProperty.call(e, "RelegationNum") && t.uint32(48).int64(e.RelegationNum), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(58).fork()).ldelim();
                if (null != e.RobotIds && e.RobotIds.length) {
                    for (t.uint32(74).fork(), n = 0; n < e.RobotIds.length; ++n) t.int64(e.RobotIds[n]);
                    t.ldelim()
                }
                if (null != e.GourpNeedRobot && Object.hasOwnProperty.call(e, "GourpNeedRobot") && t.uint32(80).int64(e.GourpNeedRobot), null != e.MainRank && Object.hasOwnProperty.call(e, "MainRank") && t.uint32(88).int64(e.MainRank), null != e.PromoteNeedWinCount && Object.hasOwnProperty.call(e, "PromoteNeedWinCount") && t.uint32(96).int64(e.PromoteNeedWinCount), null != e.PlacementMatcheNextRank && Object.hasOwnProperty.call(e, "PlacementMatcheNextRank") && t.uint32(104).int64(e.PlacementMatcheNextRank), null != e.RankMatchRobotIds && e.RankMatchRobotIds.length) {
                    for (t.uint32(114).fork(), n = 0; n < e.RankMatchRobotIds.length; ++n) t.int64(e.RankMatchRobotIds[n]);
                    t.ldelim()
                }
                return null != e.MinorRank && Object.hasOwnProperty.call(e, "MinorRank") && t.uint32(120).int64(e.MinorRank), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RankMatch_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.NextRank = e.int64();
                            break;
                        case 3:
                            if (r.Range && r.Range.length || (r.Range = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Range.push(e.int64());
                            else r.Range.push(e.int64());
                            break;
                        case 4:
                            r.GroupNum = e.int64();
                            break;
                        case 5:
                            r.PromoteNum = e.int64();
                            break;
                        case 6:
                            r.RelegationNum = e.int64();
                            break;
                        case 7:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            if (r.RobotIds && r.RobotIds.length || (r.RobotIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.RobotIds.push(e.int64());
                            else r.RobotIds.push(e.int64());
                            break;
                        case 10:
                            r.GourpNeedRobot = e.int64();
                            break;
                        case 11:
                            r.MainRank = e.int64();
                            break;
                        case 12:
                            r.PromoteNeedWinCount = e.int64();
                            break;
                        case 13:
                            r.PlacementMatcheNextRank = e.int64();
                            break;
                        case 14:
                            if (r.RankMatchRobotIds && r.RankMatchRobotIds.length || (r.RankMatchRobotIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.RankMatchRobotIds.push(e.int64());
                            else r.RankMatchRobotIds.push(e.int64());
                            break;
                        case 15:
                            r.MinorRank = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.NextRank && e.hasOwnProperty("NextRank") && !(i.isInteger(e.NextRank) || e.NextRank && i.isInteger(e.NextRank.low) && i.isInteger(e.NextRank.high))) return "NextRank: integer|Long expected";
                if (null != e.Range && e.hasOwnProperty("Range")) {
                    if (!Array.isArray(e.Range)) return "Range: array expected";
                    for (var t = 0; t < e.Range.length; ++t)
                        if (!(i.isInteger(e.Range[t]) || e.Range[t] && i.isInteger(e.Range[t].low) && i.isInteger(e.Range[t].high))) return "Range: integer|Long[] expected"
                }
                if (null != e.GroupNum && e.hasOwnProperty("GroupNum") && !(i.isInteger(e.GroupNum) || e.GroupNum && i.isInteger(e.GroupNum.low) && i.isInteger(e.GroupNum.high))) return "GroupNum: integer|Long expected";
                if (null != e.PromoteNum && e.hasOwnProperty("PromoteNum") && !(i.isInteger(e.PromoteNum) || e.PromoteNum && i.isInteger(e.PromoteNum.low) && i.isInteger(e.PromoteNum.high))) return "PromoteNum: integer|Long expected";
                if (null != e.RelegationNum && e.hasOwnProperty("RelegationNum") && !(i.isInteger(e.RelegationNum) || e.RelegationNum && i.isInteger(e.RelegationNum.low) && i.isInteger(e.RelegationNum.high))) return "RelegationNum: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                if (null != e.RobotIds && e.hasOwnProperty("RobotIds")) {
                    if (!Array.isArray(e.RobotIds)) return "RobotIds: array expected";
                    for (t = 0; t < e.RobotIds.length; ++t)
                        if (!(i.isInteger(e.RobotIds[t]) || e.RobotIds[t] && i.isInteger(e.RobotIds[t].low) && i.isInteger(e.RobotIds[t].high))) return "RobotIds: integer|Long[] expected"
                }
                if (null != e.GourpNeedRobot && e.hasOwnProperty("GourpNeedRobot") && !(i.isInteger(e.GourpNeedRobot) || e.GourpNeedRobot && i.isInteger(e.GourpNeedRobot.low) && i.isInteger(e.GourpNeedRobot.high))) return "GourpNeedRobot: integer|Long expected";
                if (null != e.MainRank && e.hasOwnProperty("MainRank") && !(i.isInteger(e.MainRank) || e.MainRank && i.isInteger(e.MainRank.low) && i.isInteger(e.MainRank.high))) return "MainRank: integer|Long expected";
                if (null != e.PromoteNeedWinCount && e.hasOwnProperty("PromoteNeedWinCount") && !(i.isInteger(e.PromoteNeedWinCount) || e.PromoteNeedWinCount && i.isInteger(e.PromoteNeedWinCount.low) && i.isInteger(e.PromoteNeedWinCount.high))) return "PromoteNeedWinCount: integer|Long expected";
                if (null != e.PlacementMatcheNextRank && e.hasOwnProperty("PlacementMatcheNextRank") && !(i.isInteger(e.PlacementMatcheNextRank) || e.PlacementMatcheNextRank && i.isInteger(e.PlacementMatcheNextRank.low) && i.isInteger(e.PlacementMatcheNextRank.high))) return "PlacementMatcheNextRank: integer|Long expected";
                if (null != e.RankMatchRobotIds && e.hasOwnProperty("RankMatchRobotIds")) {
                    if (!Array.isArray(e.RankMatchRobotIds)) return "RankMatchRobotIds: array expected";
                    for (t = 0; t < e.RankMatchRobotIds.length; ++t)
                        if (!(i.isInteger(e.RankMatchRobotIds[t]) || e.RankMatchRobotIds[t] && i.isInteger(e.RankMatchRobotIds[t].low) && i.isInteger(e.RankMatchRobotIds[t].high))) return "RankMatchRobotIds: integer|Long[] expected"
                }
                return null != e.MinorRank && e.hasOwnProperty("MinorRank") && !(i.isInteger(e.MinorRank) || e.MinorRank && i.isInteger(e.MinorRank.low) && i.isInteger(e.MinorRank.high)) ? "MinorRank: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RankMatch_Config) return e;
                var t = new a.RankMatch_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.NextRank && (i.Long ? (t.NextRank = i.Long.fromValue(e.NextRank)).unsigned = !1 : "string" == typeof e.NextRank ? t.NextRank = parseInt(e.NextRank, 10) : "number" == typeof e.NextRank ? t.NextRank = e.NextRank : "object" == typeof e.NextRank && (t.NextRank = new i.LongBits(e.NextRank.low >>> 0, e.NextRank.high >>> 0).toNumber())), e.Range) {
                    if (!Array.isArray(e.Range)) throw TypeError(".RankMatch_Config.Range: array expected");
                    t.Range = [];
                    for (var n = 0; n < e.Range.length; ++n) i.Long ? (t.Range[n] = i.Long.fromValue(e.Range[n])).unsigned = !1 : "string" == typeof e.Range[n] ? t.Range[n] = parseInt(e.Range[n], 10) : "number" == typeof e.Range[n] ? t.Range[n] = e.Range[n] : "object" == typeof e.Range[n] && (t.Range[n] = new i.LongBits(e.Range[n].low >>> 0, e.Range[n].high >>> 0).toNumber())
                }
                if (null != e.GroupNum && (i.Long ? (t.GroupNum = i.Long.fromValue(e.GroupNum)).unsigned = !1 : "string" == typeof e.GroupNum ? t.GroupNum = parseInt(e.GroupNum, 10) : "number" == typeof e.GroupNum ? t.GroupNum = e.GroupNum : "object" == typeof e.GroupNum && (t.GroupNum = new i.LongBits(e.GroupNum.low >>> 0, e.GroupNum.high >>> 0).toNumber())), null != e.PromoteNum && (i.Long ? (t.PromoteNum = i.Long.fromValue(e.PromoteNum)).unsigned = !1 : "string" == typeof e.PromoteNum ? t.PromoteNum = parseInt(e.PromoteNum, 10) : "number" == typeof e.PromoteNum ? t.PromoteNum = e.PromoteNum : "object" == typeof e.PromoteNum && (t.PromoteNum = new i.LongBits(e.PromoteNum.low >>> 0, e.PromoteNum.high >>> 0).toNumber())), null != e.RelegationNum && (i.Long ? (t.RelegationNum = i.Long.fromValue(e.RelegationNum)).unsigned = !1 : "string" == typeof e.RelegationNum ? t.RelegationNum = parseInt(e.RelegationNum, 10) : "number" == typeof e.RelegationNum ? t.RelegationNum = e.RelegationNum : "object" == typeof e.RelegationNum && (t.RelegationNum = new i.LongBits(e.RelegationNum.low >>> 0, e.RelegationNum.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".RankMatch_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".RankMatch_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (e.RobotIds) {
                    if (!Array.isArray(e.RobotIds)) throw TypeError(".RankMatch_Config.RobotIds: array expected");
                    for (t.RobotIds = [], n = 0; n < e.RobotIds.length; ++n) i.Long ? (t.RobotIds[n] = i.Long.fromValue(e.RobotIds[n])).unsigned = !1 : "string" == typeof e.RobotIds[n] ? t.RobotIds[n] = parseInt(e.RobotIds[n], 10) : "number" == typeof e.RobotIds[n] ? t.RobotIds[n] = e.RobotIds[n] : "object" == typeof e.RobotIds[n] && (t.RobotIds[n] = new i.LongBits(e.RobotIds[n].low >>> 0, e.RobotIds[n].high >>> 0).toNumber())
                }
                if (null != e.GourpNeedRobot && (i.Long ? (t.GourpNeedRobot = i.Long.fromValue(e.GourpNeedRobot)).unsigned = !1 : "string" == typeof e.GourpNeedRobot ? t.GourpNeedRobot = parseInt(e.GourpNeedRobot, 10) : "number" == typeof e.GourpNeedRobot ? t.GourpNeedRobot = e.GourpNeedRobot : "object" == typeof e.GourpNeedRobot && (t.GourpNeedRobot = new i.LongBits(e.GourpNeedRobot.low >>> 0, e.GourpNeedRobot.high >>> 0).toNumber())), null != e.MainRank && (i.Long ? (t.MainRank = i.Long.fromValue(e.MainRank)).unsigned = !1 : "string" == typeof e.MainRank ? t.MainRank = parseInt(e.MainRank, 10) : "number" == typeof e.MainRank ? t.MainRank = e.MainRank : "object" == typeof e.MainRank && (t.MainRank = new i.LongBits(e.MainRank.low >>> 0, e.MainRank.high >>> 0).toNumber())), null != e.PromoteNeedWinCount && (i.Long ? (t.PromoteNeedWinCount = i.Long.fromValue(e.PromoteNeedWinCount)).unsigned = !1 : "string" == typeof e.PromoteNeedWinCount ? t.PromoteNeedWinCount = parseInt(e.PromoteNeedWinCount, 10) : "number" == typeof e.PromoteNeedWinCount ? t.PromoteNeedWinCount = e.PromoteNeedWinCount : "object" == typeof e.PromoteNeedWinCount && (t.PromoteNeedWinCount = new i.LongBits(e.PromoteNeedWinCount.low >>> 0, e.PromoteNeedWinCount.high >>> 0).toNumber())), null != e.PlacementMatcheNextRank && (i.Long ? (t.PlacementMatcheNextRank = i.Long.fromValue(e.PlacementMatcheNextRank)).unsigned = !1 : "string" == typeof e.PlacementMatcheNextRank ? t.PlacementMatcheNextRank = parseInt(e.PlacementMatcheNextRank, 10) : "number" == typeof e.PlacementMatcheNextRank ? t.PlacementMatcheNextRank = e.PlacementMatcheNextRank : "object" == typeof e.PlacementMatcheNextRank && (t.PlacementMatcheNextRank = new i.LongBits(e.PlacementMatcheNextRank.low >>> 0, e.PlacementMatcheNextRank.high >>> 0).toNumber())), e.RankMatchRobotIds) {
                    if (!Array.isArray(e.RankMatchRobotIds)) throw TypeError(".RankMatch_Config.RankMatchRobotIds: array expected");
                    for (t.RankMatchRobotIds = [], n = 0; n < e.RankMatchRobotIds.length; ++n) i.Long ? (t.RankMatchRobotIds[n] = i.Long.fromValue(e.RankMatchRobotIds[n])).unsigned = !1 : "string" == typeof e.RankMatchRobotIds[n] ? t.RankMatchRobotIds[n] = parseInt(e.RankMatchRobotIds[n], 10) : "number" == typeof e.RankMatchRobotIds[n] ? t.RankMatchRobotIds[n] = e.RankMatchRobotIds[n] : "object" == typeof e.RankMatchRobotIds[n] && (t.RankMatchRobotIds[n] = new i.LongBits(e.RankMatchRobotIds[n].low >>> 0, e.RankMatchRobotIds[n].high >>> 0).toNumber())
                }
                return null != e.MinorRank && (i.Long ? (t.MinorRank = i.Long.fromValue(e.MinorRank)).unsigned = !1 : "string" == typeof e.MinorRank ? t.MinorRank = parseInt(e.MinorRank, 10) : "number" == typeof e.MinorRank ? t.MinorRank = e.MinorRank : "object" == typeof e.MinorRank && (t.MinorRank = new i.LongBits(e.MinorRank.low >>> 0, e.MinorRank.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Range = [], n.Rewards = [], n.RobotIds = [], n.RankMatchRobotIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.NextRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NextRank = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GroupNum = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GroupNum = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PromoteNum = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PromoteNum = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.RelegationNum = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RelegationNum = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GourpNeedRobot = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GourpNeedRobot = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MainRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MainRank = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PromoteNeedWinCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PromoteNeedWinCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.PlacementMatcheNextRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PlacementMatcheNextRank = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MinorRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MinorRank = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.NextRank && e.hasOwnProperty("NextRank") && ("number" == typeof e.NextRank ? n.NextRank = t.longs === String ? String(e.NextRank) : e.NextRank : n.NextRank = t.longs === String ? i.Long.prototype.toString.call(e.NextRank) : t.longs === Number ? new i.LongBits(e.NextRank.low >>> 0, e.NextRank.high >>> 0).toNumber() : e.NextRank), e.Range && e.Range.length) {
                    n.Range = [];
                    for (var r = 0; r < e.Range.length; ++r) "number" == typeof e.Range[r] ? n.Range[r] = t.longs === String ? String(e.Range[r]) : e.Range[r] : n.Range[r] = t.longs === String ? i.Long.prototype.toString.call(e.Range[r]) : t.longs === Number ? new i.LongBits(e.Range[r].low >>> 0, e.Range[r].high >>> 0).toNumber() : e.Range[r]
                }
                if (null != e.GroupNum && e.hasOwnProperty("GroupNum") && ("number" == typeof e.GroupNum ? n.GroupNum = t.longs === String ? String(e.GroupNum) : e.GroupNum : n.GroupNum = t.longs === String ? i.Long.prototype.toString.call(e.GroupNum) : t.longs === Number ? new i.LongBits(e.GroupNum.low >>> 0, e.GroupNum.high >>> 0).toNumber() : e.GroupNum), null != e.PromoteNum && e.hasOwnProperty("PromoteNum") && ("number" == typeof e.PromoteNum ? n.PromoteNum = t.longs === String ? String(e.PromoteNum) : e.PromoteNum : n.PromoteNum = t.longs === String ? i.Long.prototype.toString.call(e.PromoteNum) : t.longs === Number ? new i.LongBits(e.PromoteNum.low >>> 0, e.PromoteNum.high >>> 0).toNumber() : e.PromoteNum), null != e.RelegationNum && e.hasOwnProperty("RelegationNum") && ("number" == typeof e.RelegationNum ? n.RelegationNum = t.longs === String ? String(e.RelegationNum) : e.RelegationNum : n.RelegationNum = t.longs === String ? i.Long.prototype.toString.call(e.RelegationNum) : t.longs === Number ? new i.LongBits(e.RelegationNum.low >>> 0, e.RelegationNum.high >>> 0).toNumber() : e.RelegationNum), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                if (e.RobotIds && e.RobotIds.length)
                    for (n.RobotIds = [], r = 0; r < e.RobotIds.length; ++r) "number" == typeof e.RobotIds[r] ? n.RobotIds[r] = t.longs === String ? String(e.RobotIds[r]) : e.RobotIds[r] : n.RobotIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.RobotIds[r]) : t.longs === Number ? new i.LongBits(e.RobotIds[r].low >>> 0, e.RobotIds[r].high >>> 0).toNumber() : e.RobotIds[r];
                if (null != e.GourpNeedRobot && e.hasOwnProperty("GourpNeedRobot") && ("number" == typeof e.GourpNeedRobot ? n.GourpNeedRobot = t.longs === String ? String(e.GourpNeedRobot) : e.GourpNeedRobot : n.GourpNeedRobot = t.longs === String ? i.Long.prototype.toString.call(e.GourpNeedRobot) : t.longs === Number ? new i.LongBits(e.GourpNeedRobot.low >>> 0, e.GourpNeedRobot.high >>> 0).toNumber() : e.GourpNeedRobot), null != e.MainRank && e.hasOwnProperty("MainRank") && ("number" == typeof e.MainRank ? n.MainRank = t.longs === String ? String(e.MainRank) : e.MainRank : n.MainRank = t.longs === String ? i.Long.prototype.toString.call(e.MainRank) : t.longs === Number ? new i.LongBits(e.MainRank.low >>> 0, e.MainRank.high >>> 0).toNumber() : e.MainRank), null != e.PromoteNeedWinCount && e.hasOwnProperty("PromoteNeedWinCount") && ("number" == typeof e.PromoteNeedWinCount ? n.PromoteNeedWinCount = t.longs === String ? String(e.PromoteNeedWinCount) : e.PromoteNeedWinCount : n.PromoteNeedWinCount = t.longs === String ? i.Long.prototype.toString.call(e.PromoteNeedWinCount) : t.longs === Number ? new i.LongBits(e.PromoteNeedWinCount.low >>> 0, e.PromoteNeedWinCount.high >>> 0).toNumber() : e.PromoteNeedWinCount), null != e.PlacementMatcheNextRank && e.hasOwnProperty("PlacementMatcheNextRank") && ("number" == typeof e.PlacementMatcheNextRank ? n.PlacementMatcheNextRank = t.longs === String ? String(e.PlacementMatcheNextRank) : e.PlacementMatcheNextRank : n.PlacementMatcheNextRank = t.longs === String ? i.Long.prototype.toString.call(e.PlacementMatcheNextRank) : t.longs === Number ? new i.LongBits(e.PlacementMatcheNextRank.low >>> 0, e.PlacementMatcheNextRank.high >>> 0).toNumber() : e.PlacementMatcheNextRank), e.RankMatchRobotIds && e.RankMatchRobotIds.length)
                    for (n.RankMatchRobotIds = [], r = 0; r < e.RankMatchRobotIds.length; ++r) "number" == typeof e.RankMatchRobotIds[r] ? n.RankMatchRobotIds[r] = t.longs === String ? String(e.RankMatchRobotIds[r]) : e.RankMatchRobotIds[r] : n.RankMatchRobotIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.RankMatchRobotIds[r]) : t.longs === Number ? new i.LongBits(e.RankMatchRobotIds[r].low >>> 0, e.RankMatchRobotIds[r].high >>> 0).toNumber() : e.RankMatchRobotIds[r];
                return null != e.MinorRank && e.hasOwnProperty("MinorRank") && ("number" == typeof e.MinorRank ? n.MinorRank = t.longs === String ? String(e.MinorRank) : e.MinorRank : n.MinorRank = t.longs === String ? i.Long.prototype.toString.call(e.MinorRank) : t.longs === Number ? new i.LongBits(e.MinorRank.low >>> 0, e.MinorRank.high >>> 0).toNumber() : e.MinorRank), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RankMatch_Config"
            }, e
        }(), a.InteractiveSpineAvatar_Config = function() {
            function e(e) {
                if (this.EntryTalkConfig = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BundlePath = "", e.prototype.TotalState = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EntryTalkKey = "", e.prototype.EntryTalkConfig = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.BundlePath && Object.hasOwnProperty.call(e, "BundlePath") && t.uint32(26).string(e.BundlePath), null != e.TotalState && Object.hasOwnProperty.call(e, "TotalState") && t.uint32(32).int64(e.TotalState), null != e.EntryTalkKey && Object.hasOwnProperty.call(e, "EntryTalkKey") && t.uint32(42).string(e.EntryTalkKey), null != e.EntryTalkConfig && e.EntryTalkConfig.length) {
                    t.uint32(50).fork();
                    for (var n = 0; n < e.EntryTalkConfig.length; ++n) t.int64(e.EntryTalkConfig[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.InteractiveSpineAvatar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.BundlePath = e.string();
                            break;
                        case 4:
                            r.TotalState = e.int64();
                            break;
                        case 5:
                            r.EntryTalkKey = e.string();
                            break;
                        case 6:
                            if (r.EntryTalkConfig && r.EntryTalkConfig.length || (r.EntryTalkConfig = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.EntryTalkConfig.push(e.int64());
                            else r.EntryTalkConfig.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.BundlePath && e.hasOwnProperty("BundlePath") && !i.isString(e.BundlePath)) return "BundlePath: string expected";
                if (null != e.TotalState && e.hasOwnProperty("TotalState") && !(i.isInteger(e.TotalState) || e.TotalState && i.isInteger(e.TotalState.low) && i.isInteger(e.TotalState.high))) return "TotalState: integer|Long expected";
                if (null != e.EntryTalkKey && e.hasOwnProperty("EntryTalkKey") && !i.isString(e.EntryTalkKey)) return "EntryTalkKey: string expected";
                if (null != e.EntryTalkConfig && e.hasOwnProperty("EntryTalkConfig")) {
                    if (!Array.isArray(e.EntryTalkConfig)) return "EntryTalkConfig: array expected";
                    for (var t = 0; t < e.EntryTalkConfig.length; ++t)
                        if (!(i.isInteger(e.EntryTalkConfig[t]) || e.EntryTalkConfig[t] && i.isInteger(e.EntryTalkConfig[t].low) && i.isInteger(e.EntryTalkConfig[t].high))) return "EntryTalkConfig: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.InteractiveSpineAvatar_Config) return e;
                var t = new a.InteractiveSpineAvatar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.BundlePath && (t.BundlePath = String(e.BundlePath)), null != e.TotalState && (i.Long ? (t.TotalState = i.Long.fromValue(e.TotalState)).unsigned = !1 : "string" == typeof e.TotalState ? t.TotalState = parseInt(e.TotalState, 10) : "number" == typeof e.TotalState ? t.TotalState = e.TotalState : "object" == typeof e.TotalState && (t.TotalState = new i.LongBits(e.TotalState.low >>> 0, e.TotalState.high >>> 0).toNumber())), null != e.EntryTalkKey && (t.EntryTalkKey = String(e.EntryTalkKey)), e.EntryTalkConfig) {
                    if (!Array.isArray(e.EntryTalkConfig)) throw TypeError(".InteractiveSpineAvatar_Config.EntryTalkConfig: array expected");
                    t.EntryTalkConfig = [];
                    for (var n = 0; n < e.EntryTalkConfig.length; ++n) i.Long ? (t.EntryTalkConfig[n] = i.Long.fromValue(e.EntryTalkConfig[n])).unsigned = !1 : "string" == typeof e.EntryTalkConfig[n] ? t.EntryTalkConfig[n] = parseInt(e.EntryTalkConfig[n], 10) : "number" == typeof e.EntryTalkConfig[n] ? t.EntryTalkConfig[n] = e.EntryTalkConfig[n] : "object" == typeof e.EntryTalkConfig[n] && (t.EntryTalkConfig[n] = new i.LongBits(e.EntryTalkConfig[n].low >>> 0, e.EntryTalkConfig[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.EntryTalkConfig = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.BundlePath = "", i.Long ? (o = new i.Long(0, 0, !1), n.TotalState = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TotalState = t.longs === String ? "0" : 0, n.EntryTalkKey = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.BundlePath && e.hasOwnProperty("BundlePath") && (n.BundlePath = e.BundlePath), null != e.TotalState && e.hasOwnProperty("TotalState") && ("number" == typeof e.TotalState ? n.TotalState = t.longs === String ? String(e.TotalState) : e.TotalState : n.TotalState = t.longs === String ? i.Long.prototype.toString.call(e.TotalState) : t.longs === Number ? new i.LongBits(e.TotalState.low >>> 0, e.TotalState.high >>> 0).toNumber() : e.TotalState), null != e.EntryTalkKey && e.hasOwnProperty("EntryTalkKey") && (n.EntryTalkKey = e.EntryTalkKey), e.EntryTalkConfig && e.EntryTalkConfig.length) {
                    n.EntryTalkConfig = [];
                    for (var r = 0; r < e.EntryTalkConfig.length; ++r) "number" == typeof e.EntryTalkConfig[r] ? n.EntryTalkConfig[r] = t.longs === String ? String(e.EntryTalkConfig[r]) : e.EntryTalkConfig[r] : n.EntryTalkConfig[r] = t.longs === String ? i.Long.prototype.toString.call(e.EntryTalkConfig[r]) : t.longs === Number ? new i.LongBits(e.EntryTalkConfig[r].low >>> 0, e.EntryTalkConfig[r].high >>> 0).toNumber() : e.EntryTalkConfig[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/InteractiveSpineAvatar_Config"
            }, e
        }(), a.MallPage_Config = function() {
            function e(e) {
                if (this.MallActivityIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MallActivityIds = i.emptyArray, e.prototype.SortId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GameModuleId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowCondition = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PageName = "", e.prototype.Icon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MallActivityIds && e.MallActivityIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.MallActivityIds.length; ++n) t.int64(e.MallActivityIds[n]);
                    t.ldelim()
                }
                return null != e.SortId && Object.hasOwnProperty.call(e, "SortId") && t.uint32(24).int64(e.SortId), null != e.GameModuleId && Object.hasOwnProperty.call(e, "GameModuleId") && t.uint32(32).int64(e.GameModuleId), null != e.ShowCondition && Object.hasOwnProperty.call(e, "ShowCondition") && t.uint32(40).int64(e.ShowCondition), null != e.PageName && Object.hasOwnProperty.call(e, "PageName") && t.uint32(50).string(e.PageName), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(58).string(e.Icon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MallPage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.MallActivityIds && r.MallActivityIds.length || (r.MallActivityIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.MallActivityIds.push(e.int64());
                            else r.MallActivityIds.push(e.int64());
                            break;
                        case 3:
                            r.SortId = e.int64();
                            break;
                        case 4:
                            r.GameModuleId = e.int64();
                            break;
                        case 5:
                            r.ShowCondition = e.int64();
                            break;
                        case 6:
                            r.PageName = e.string();
                            break;
                        case 7:
                            r.Icon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MallActivityIds && e.hasOwnProperty("MallActivityIds")) {
                    if (!Array.isArray(e.MallActivityIds)) return "MallActivityIds: array expected";
                    for (var t = 0; t < e.MallActivityIds.length; ++t)
                        if (!(i.isInteger(e.MallActivityIds[t]) || e.MallActivityIds[t] && i.isInteger(e.MallActivityIds[t].low) && i.isInteger(e.MallActivityIds[t].high))) return "MallActivityIds: integer|Long[] expected"
                }
                return null != e.SortId && e.hasOwnProperty("SortId") && !(i.isInteger(e.SortId) || e.SortId && i.isInteger(e.SortId.low) && i.isInteger(e.SortId.high)) ? "SortId: integer|Long expected" : null != e.GameModuleId && e.hasOwnProperty("GameModuleId") && !(i.isInteger(e.GameModuleId) || e.GameModuleId && i.isInteger(e.GameModuleId.low) && i.isInteger(e.GameModuleId.high)) ? "GameModuleId: integer|Long expected" : null != e.ShowCondition && e.hasOwnProperty("ShowCondition") && !(i.isInteger(e.ShowCondition) || e.ShowCondition && i.isInteger(e.ShowCondition.low) && i.isInteger(e.ShowCondition.high)) ? "ShowCondition: integer|Long expected" : null != e.PageName && e.hasOwnProperty("PageName") && !i.isString(e.PageName) ? "PageName: string expected" : null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MallPage_Config) return e;
                var t = new a.MallPage_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.MallActivityIds) {
                    if (!Array.isArray(e.MallActivityIds)) throw TypeError(".MallPage_Config.MallActivityIds: array expected");
                    t.MallActivityIds = [];
                    for (var n = 0; n < e.MallActivityIds.length; ++n) i.Long ? (t.MallActivityIds[n] = i.Long.fromValue(e.MallActivityIds[n])).unsigned = !1 : "string" == typeof e.MallActivityIds[n] ? t.MallActivityIds[n] = parseInt(e.MallActivityIds[n], 10) : "number" == typeof e.MallActivityIds[n] ? t.MallActivityIds[n] = e.MallActivityIds[n] : "object" == typeof e.MallActivityIds[n] && (t.MallActivityIds[n] = new i.LongBits(e.MallActivityIds[n].low >>> 0, e.MallActivityIds[n].high >>> 0).toNumber())
                }
                return null != e.SortId && (i.Long ? (t.SortId = i.Long.fromValue(e.SortId)).unsigned = !1 : "string" == typeof e.SortId ? t.SortId = parseInt(e.SortId, 10) : "number" == typeof e.SortId ? t.SortId = e.SortId : "object" == typeof e.SortId && (t.SortId = new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber())), null != e.GameModuleId && (i.Long ? (t.GameModuleId = i.Long.fromValue(e.GameModuleId)).unsigned = !1 : "string" == typeof e.GameModuleId ? t.GameModuleId = parseInt(e.GameModuleId, 10) : "number" == typeof e.GameModuleId ? t.GameModuleId = e.GameModuleId : "object" == typeof e.GameModuleId && (t.GameModuleId = new i.LongBits(e.GameModuleId.low >>> 0, e.GameModuleId.high >>> 0).toNumber())), null != e.ShowCondition && (i.Long ? (t.ShowCondition = i.Long.fromValue(e.ShowCondition)).unsigned = !1 : "string" == typeof e.ShowCondition ? t.ShowCondition = parseInt(e.ShowCondition, 10) : "number" == typeof e.ShowCondition ? t.ShowCondition = e.ShowCondition : "object" == typeof e.ShowCondition && (t.ShowCondition = new i.LongBits(e.ShowCondition.low >>> 0, e.ShowCondition.high >>> 0).toNumber())), null != e.PageName && (t.PageName = String(e.PageName)), null != e.Icon && (t.Icon = String(e.Icon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.MallActivityIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SortId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SortId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.GameModuleId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GameModuleId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ShowCondition = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ShowCondition = t.longs === String ? "0" : 0, n.PageName = "", n.Icon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.MallActivityIds && e.MallActivityIds.length) {
                    n.MallActivityIds = [];
                    for (var r = 0; r < e.MallActivityIds.length; ++r) "number" == typeof e.MallActivityIds[r] ? n.MallActivityIds[r] = t.longs === String ? String(e.MallActivityIds[r]) : e.MallActivityIds[r] : n.MallActivityIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.MallActivityIds[r]) : t.longs === Number ? new i.LongBits(e.MallActivityIds[r].low >>> 0, e.MallActivityIds[r].high >>> 0).toNumber() : e.MallActivityIds[r]
                }
                return null != e.SortId && e.hasOwnProperty("SortId") && ("number" == typeof e.SortId ? n.SortId = t.longs === String ? String(e.SortId) : e.SortId : n.SortId = t.longs === String ? i.Long.prototype.toString.call(e.SortId) : t.longs === Number ? new i.LongBits(e.SortId.low >>> 0, e.SortId.high >>> 0).toNumber() : e.SortId), null != e.GameModuleId && e.hasOwnProperty("GameModuleId") && ("number" == typeof e.GameModuleId ? n.GameModuleId = t.longs === String ? String(e.GameModuleId) : e.GameModuleId : n.GameModuleId = t.longs === String ? i.Long.prototype.toString.call(e.GameModuleId) : t.longs === Number ? new i.LongBits(e.GameModuleId.low >>> 0, e.GameModuleId.high >>> 0).toNumber() : e.GameModuleId), null != e.ShowCondition && e.hasOwnProperty("ShowCondition") && ("number" == typeof e.ShowCondition ? n.ShowCondition = t.longs === String ? String(e.ShowCondition) : e.ShowCondition : n.ShowCondition = t.longs === String ? i.Long.prototype.toString.call(e.ShowCondition) : t.longs === Number ? new i.LongBits(e.ShowCondition.low >>> 0, e.ShowCondition.high >>> 0).toNumber() : e.ShowCondition), null != e.PageName && e.hasOwnProperty("PageName") && (n.PageName = e.PageName), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MallPage_Config"
            }, e
        }(), a.GameModuleUnlockPop_Config = function() {
            function e(e) {
                if (this.GameModuleGuideGroupIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GameModuleId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.NeedFinger = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GameModuleGuideGroupIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.GameModuleId && Object.hasOwnProperty.call(e, "GameModuleId") && t.uint32(16).int64(e.GameModuleId), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(34).string(e.Icon), null != e.NeedFinger && Object.hasOwnProperty.call(e, "NeedFinger") && t.uint32(40).int64(e.NeedFinger), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(48).int64(e.Type), null != e.GameModuleGuideGroupIds && e.GameModuleGuideGroupIds.length) {
                    t.uint32(58).fork();
                    for (var n = 0; n < e.GameModuleGuideGroupIds.length; ++n) t.int64(e.GameModuleGuideGroupIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GameModuleUnlockPop_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.GameModuleId = e.int64();
                            break;
                        case 4:
                            r.Icon = e.string();
                            break;
                        case 5:
                            r.NeedFinger = e.int64();
                            break;
                        case 6:
                            r.Type = e.int64();
                            break;
                        case 7:
                            if (r.GameModuleGuideGroupIds && r.GameModuleGuideGroupIds.length || (r.GameModuleGuideGroupIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.GameModuleGuideGroupIds.push(e.int64());
                            else r.GameModuleGuideGroupIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.GameModuleId && e.hasOwnProperty("GameModuleId") && !(i.isInteger(e.GameModuleId) || e.GameModuleId && i.isInteger(e.GameModuleId.low) && i.isInteger(e.GameModuleId.high))) return "GameModuleId: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon)) return "Icon: string expected";
                if (null != e.NeedFinger && e.hasOwnProperty("NeedFinger") && !(i.isInteger(e.NeedFinger) || e.NeedFinger && i.isInteger(e.NeedFinger.low) && i.isInteger(e.NeedFinger.high))) return "NeedFinger: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.GameModuleGuideGroupIds && e.hasOwnProperty("GameModuleGuideGroupIds")) {
                    if (!Array.isArray(e.GameModuleGuideGroupIds)) return "GameModuleGuideGroupIds: array expected";
                    for (var t = 0; t < e.GameModuleGuideGroupIds.length; ++t)
                        if (!(i.isInteger(e.GameModuleGuideGroupIds[t]) || e.GameModuleGuideGroupIds[t] && i.isInteger(e.GameModuleGuideGroupIds[t].low) && i.isInteger(e.GameModuleGuideGroupIds[t].high))) return "GameModuleGuideGroupIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.GameModuleUnlockPop_Config) return e;
                var t = new a.GameModuleUnlockPop_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.GameModuleId && (i.Long ? (t.GameModuleId = i.Long.fromValue(e.GameModuleId)).unsigned = !1 : "string" == typeof e.GameModuleId ? t.GameModuleId = parseInt(e.GameModuleId, 10) : "number" == typeof e.GameModuleId ? t.GameModuleId = e.GameModuleId : "object" == typeof e.GameModuleId && (t.GameModuleId = new i.LongBits(e.GameModuleId.low >>> 0, e.GameModuleId.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), null != e.NeedFinger && (i.Long ? (t.NeedFinger = i.Long.fromValue(e.NeedFinger)).unsigned = !1 : "string" == typeof e.NeedFinger ? t.NeedFinger = parseInt(e.NeedFinger, 10) : "number" == typeof e.NeedFinger ? t.NeedFinger = e.NeedFinger : "object" == typeof e.NeedFinger && (t.NeedFinger = new i.LongBits(e.NeedFinger.low >>> 0, e.NeedFinger.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.GameModuleGuideGroupIds) {
                    if (!Array.isArray(e.GameModuleGuideGroupIds)) throw TypeError(".GameModuleUnlockPop_Config.GameModuleGuideGroupIds: array expected");
                    t.GameModuleGuideGroupIds = [];
                    for (var n = 0; n < e.GameModuleGuideGroupIds.length; ++n) i.Long ? (t.GameModuleGuideGroupIds[n] = i.Long.fromValue(e.GameModuleGuideGroupIds[n])).unsigned = !1 : "string" == typeof e.GameModuleGuideGroupIds[n] ? t.GameModuleGuideGroupIds[n] = parseInt(e.GameModuleGuideGroupIds[n], 10) : "number" == typeof e.GameModuleGuideGroupIds[n] ? t.GameModuleGuideGroupIds[n] = e.GameModuleGuideGroupIds[n] : "object" == typeof e.GameModuleGuideGroupIds[n] && (t.GameModuleGuideGroupIds[n] = new i.LongBits(e.GameModuleGuideGroupIds[n].low >>> 0, e.GameModuleGuideGroupIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.GameModuleGuideGroupIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.GameModuleId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.GameModuleId = t.longs === String ? "0" : 0, n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.NeedFinger = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NeedFinger = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.GameModuleId && e.hasOwnProperty("GameModuleId") && ("number" == typeof e.GameModuleId ? n.GameModuleId = t.longs === String ? String(e.GameModuleId) : e.GameModuleId : n.GameModuleId = t.longs === String ? i.Long.prototype.toString.call(e.GameModuleId) : t.longs === Number ? new i.LongBits(e.GameModuleId.low >>> 0, e.GameModuleId.high >>> 0).toNumber() : e.GameModuleId), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), null != e.NeedFinger && e.hasOwnProperty("NeedFinger") && ("number" == typeof e.NeedFinger ? n.NeedFinger = t.longs === String ? String(e.NeedFinger) : e.NeedFinger : n.NeedFinger = t.longs === String ? i.Long.prototype.toString.call(e.NeedFinger) : t.longs === Number ? new i.LongBits(e.NeedFinger.low >>> 0, e.NeedFinger.high >>> 0).toNumber() : e.NeedFinger), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.GameModuleGuideGroupIds && e.GameModuleGuideGroupIds.length) {
                    n.GameModuleGuideGroupIds = [];
                    for (var r = 0; r < e.GameModuleGuideGroupIds.length; ++r) "number" == typeof e.GameModuleGuideGroupIds[r] ? n.GameModuleGuideGroupIds[r] = t.longs === String ? String(e.GameModuleGuideGroupIds[r]) : e.GameModuleGuideGroupIds[r] : n.GameModuleGuideGroupIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.GameModuleGuideGroupIds[r]) : t.longs === Number ? new i.LongBits(e.GameModuleGuideGroupIds[r].low >>> 0, e.GameModuleGuideGroupIds[r].high >>> 0).toNumber() : e.GameModuleGuideGroupIds[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GameModuleUnlockPop_Config"
            }, e
        }(), a.MagicCircleBase_Config = function() {
            function e(e) {
                if (this.Skills = [], this.TalentUltimateSkills = [], this.TalentIds = [], this.DecomposeItems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.prototype.MaxStar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TalentUltimateSkills = i.emptyArray, e.prototype.TalentIds = i.emptyArray, e.prototype.Model = "", e.prototype.TalentMaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DecomposeItems = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(32).int64(e.Quality), null != e.Skills && e.Skills.length)
                    for (var n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(42).fork()).ldelim();
                if (null != e.MaxStar && Object.hasOwnProperty.call(e, "MaxStar") && t.uint32(48).int64(e.MaxStar), null != e.TalentUltimateSkills && e.TalentUltimateSkills.length)
                    for (n = 0; n < e.TalentUltimateSkills.length; ++n) a.IntArray_Config.encode(e.TalentUltimateSkills[n], t.uint32(66).fork()).ldelim();
                if (null != e.TalentIds && e.TalentIds.length) {
                    for (t.uint32(82).fork(), n = 0; n < e.TalentIds.length; ++n) t.int64(e.TalentIds[n]);
                    t.ldelim()
                }
                if (null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(90).string(e.Model), null != e.TalentMaxLevel && Object.hasOwnProperty.call(e, "TalentMaxLevel") && t.uint32(96).int64(e.TalentMaxLevel), null != e.DecomposeItems && e.DecomposeItems.length)
                    for (n = 0; n < e.DecomposeItems.length; ++n) a.IntArray_Config.encode(e.DecomposeItems[n], t.uint32(106).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MagicCircleBase_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 4:
                            r.Quality = e.int64();
                            break;
                        case 5:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.MaxStar = e.int64();
                            break;
                        case 8:
                            r.TalentUltimateSkills && r.TalentUltimateSkills.length || (r.TalentUltimateSkills = []), r.TalentUltimateSkills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            if (r.TalentIds && r.TalentIds.length || (r.TalentIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.TalentIds.push(e.int64());
                            else r.TalentIds.push(e.int64());
                            break;
                        case 11:
                            r.Model = e.string();
                            break;
                        case 12:
                            r.TalentMaxLevel = e.int64();
                            break;
                        case 13:
                            r.DecomposeItems && r.DecomposeItems.length || (r.DecomposeItems = []), r.DecomposeItems.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name)) return "Name: string expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (var t = 0; t < e.Skills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                }
                if (null != e.MaxStar && e.hasOwnProperty("MaxStar") && !(i.isInteger(e.MaxStar) || e.MaxStar && i.isInteger(e.MaxStar.low) && i.isInteger(e.MaxStar.high))) return "MaxStar: integer|Long expected";
                if (null != e.TalentUltimateSkills && e.hasOwnProperty("TalentUltimateSkills")) {
                    if (!Array.isArray(e.TalentUltimateSkills)) return "TalentUltimateSkills: array expected";
                    for (t = 0; t < e.TalentUltimateSkills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TalentUltimateSkills[t])) return "TalentUltimateSkills." + n
                }
                if (null != e.TalentIds && e.hasOwnProperty("TalentIds")) {
                    if (!Array.isArray(e.TalentIds)) return "TalentIds: array expected";
                    for (t = 0; t < e.TalentIds.length; ++t)
                        if (!(i.isInteger(e.TalentIds[t]) || e.TalentIds[t] && i.isInteger(e.TalentIds[t].low) && i.isInteger(e.TalentIds[t].high))) return "TalentIds: integer|Long[] expected"
                }
                if (null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model)) return "Model: string expected";
                if (null != e.TalentMaxLevel && e.hasOwnProperty("TalentMaxLevel") && !(i.isInteger(e.TalentMaxLevel) || e.TalentMaxLevel && i.isInteger(e.TalentMaxLevel.low) && i.isInteger(e.TalentMaxLevel.high))) return "TalentMaxLevel: integer|Long expected";
                if (null != e.DecomposeItems && e.hasOwnProperty("DecomposeItems")) {
                    if (!Array.isArray(e.DecomposeItems)) return "DecomposeItems: array expected";
                    for (t = 0; t < e.DecomposeItems.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.DecomposeItems[t])) return "DecomposeItems." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MagicCircleBase_Config) return e;
                var t = new a.MagicCircleBase_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".MagicCircleBase_Config.Skills: array expected");
                    t.Skills = [];
                    for (var n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".MagicCircleBase_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (null != e.MaxStar && (i.Long ? (t.MaxStar = i.Long.fromValue(e.MaxStar)).unsigned = !1 : "string" == typeof e.MaxStar ? t.MaxStar = parseInt(e.MaxStar, 10) : "number" == typeof e.MaxStar ? t.MaxStar = e.MaxStar : "object" == typeof e.MaxStar && (t.MaxStar = new i.LongBits(e.MaxStar.low >>> 0, e.MaxStar.high >>> 0).toNumber())), e.TalentUltimateSkills) {
                    if (!Array.isArray(e.TalentUltimateSkills)) throw TypeError(".MagicCircleBase_Config.TalentUltimateSkills: array expected");
                    for (t.TalentUltimateSkills = [], n = 0; n < e.TalentUltimateSkills.length; ++n) {
                        if ("object" != typeof e.TalentUltimateSkills[n]) throw TypeError(".MagicCircleBase_Config.TalentUltimateSkills: object expected");
                        t.TalentUltimateSkills[n] = a.IntArray_Config.fromObject(e.TalentUltimateSkills[n])
                    }
                }
                if (e.TalentIds) {
                    if (!Array.isArray(e.TalentIds)) throw TypeError(".MagicCircleBase_Config.TalentIds: array expected");
                    for (t.TalentIds = [], n = 0; n < e.TalentIds.length; ++n) i.Long ? (t.TalentIds[n] = i.Long.fromValue(e.TalentIds[n])).unsigned = !1 : "string" == typeof e.TalentIds[n] ? t.TalentIds[n] = parseInt(e.TalentIds[n], 10) : "number" == typeof e.TalentIds[n] ? t.TalentIds[n] = e.TalentIds[n] : "object" == typeof e.TalentIds[n] && (t.TalentIds[n] = new i.LongBits(e.TalentIds[n].low >>> 0, e.TalentIds[n].high >>> 0).toNumber())
                }
                if (null != e.Model && (t.Model = String(e.Model)), null != e.TalentMaxLevel && (i.Long ? (t.TalentMaxLevel = i.Long.fromValue(e.TalentMaxLevel)).unsigned = !1 : "string" == typeof e.TalentMaxLevel ? t.TalentMaxLevel = parseInt(e.TalentMaxLevel, 10) : "number" == typeof e.TalentMaxLevel ? t.TalentMaxLevel = e.TalentMaxLevel : "object" == typeof e.TalentMaxLevel && (t.TalentMaxLevel = new i.LongBits(e.TalentMaxLevel.low >>> 0, e.TalentMaxLevel.high >>> 0).toNumber())), e.DecomposeItems) {
                    if (!Array.isArray(e.DecomposeItems)) throw TypeError(".MagicCircleBase_Config.DecomposeItems: array expected");
                    for (t.DecomposeItems = [], n = 0; n < e.DecomposeItems.length; ++n) {
                        if ("object" != typeof e.DecomposeItems[n]) throw TypeError(".MagicCircleBase_Config.DecomposeItems: object expected");
                        t.DecomposeItems[n] = a.IntArray_Config.fromObject(e.DecomposeItems[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Skills = [], n.TalentUltimateSkills = [], n.TalentIds = [], n.DecomposeItems = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Name = "", i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxStar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxStar = t.longs === String ? "0" : 0, n.Model = "", i.Long ? (o = new i.Long(0, 0, !1), n.TalentMaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TalentMaxLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), e.Skills && e.Skills.length) {
                    n.Skills = [];
                    for (var r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t)
                }
                if (null != e.MaxStar && e.hasOwnProperty("MaxStar") && ("number" == typeof e.MaxStar ? n.MaxStar = t.longs === String ? String(e.MaxStar) : e.MaxStar : n.MaxStar = t.longs === String ? i.Long.prototype.toString.call(e.MaxStar) : t.longs === Number ? new i.LongBits(e.MaxStar.low >>> 0, e.MaxStar.high >>> 0).toNumber() : e.MaxStar), e.TalentUltimateSkills && e.TalentUltimateSkills.length)
                    for (n.TalentUltimateSkills = [], r = 0; r < e.TalentUltimateSkills.length; ++r) n.TalentUltimateSkills[r] = a.IntArray_Config.toObject(e.TalentUltimateSkills[r], t);
                if (e.TalentIds && e.TalentIds.length)
                    for (n.TalentIds = [], r = 0; r < e.TalentIds.length; ++r) "number" == typeof e.TalentIds[r] ? n.TalentIds[r] = t.longs === String ? String(e.TalentIds[r]) : e.TalentIds[r] : n.TalentIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.TalentIds[r]) : t.longs === Number ? new i.LongBits(e.TalentIds[r].low >>> 0, e.TalentIds[r].high >>> 0).toNumber() : e.TalentIds[r];
                if (null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), null != e.TalentMaxLevel && e.hasOwnProperty("TalentMaxLevel") && ("number" == typeof e.TalentMaxLevel ? n.TalentMaxLevel = t.longs === String ? String(e.TalentMaxLevel) : e.TalentMaxLevel : n.TalentMaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.TalentMaxLevel) : t.longs === Number ? new i.LongBits(e.TalentMaxLevel.low >>> 0, e.TalentMaxLevel.high >>> 0).toNumber() : e.TalentMaxLevel), e.DecomposeItems && e.DecomposeItems.length)
                    for (n.DecomposeItems = [], r = 0; r < e.DecomposeItems.length; ++r) n.DecomposeItems[r] = a.IntArray_Config.toObject(e.DecomposeItems[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MagicCircleBase_Config"
            }, e
        }(), a.MagicCircleQuality_Config = function() {
            function e(e) {
                if (this.Attrs = [], this.StarAttrs = [], this.LevelAttrs = [], this.TeamAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyArray, e.prototype.StarAttrs = i.emptyArray, e.prototype.LevelAttrs = i.emptyArray, e.prototype.StarScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LevelScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TeamAttrs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attrs && e.Attrs.length)
                    for (var n = 0; n < e.Attrs.length; ++n) a.IntArray_Config.encode(e.Attrs[n], t.uint32(18).fork()).ldelim();
                if (null != e.StarAttrs && e.StarAttrs.length)
                    for (n = 0; n < e.StarAttrs.length; ++n) a.IntArray_Config.encode(e.StarAttrs[n], t.uint32(26).fork()).ldelim();
                if (null != e.LevelAttrs && e.LevelAttrs.length)
                    for (n = 0; n < e.LevelAttrs.length; ++n) a.IntArray_Config.encode(e.LevelAttrs[n], t.uint32(34).fork()).ldelim();
                if (null != e.StarScore && Object.hasOwnProperty.call(e, "StarScore") && t.uint32(40).int64(e.StarScore), null != e.LevelScore && Object.hasOwnProperty.call(e, "LevelScore") && t.uint32(48).int64(e.LevelScore), null != e.TeamAttrs && e.TeamAttrs.length)
                    for (n = 0; n < e.TeamAttrs.length; ++n) a.IntArray_Config.encode(e.TeamAttrs[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MagicCircleQuality_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attrs && r.Attrs.length || (r.Attrs = []), r.Attrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.StarAttrs && r.StarAttrs.length || (r.StarAttrs = []), r.StarAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.LevelAttrs && r.LevelAttrs.length || (r.LevelAttrs = []), r.LevelAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.StarScore = e.int64();
                            break;
                        case 6:
                            r.LevelScore = e.int64();
                            break;
                        case 7:
                            r.TeamAttrs && r.TeamAttrs.length || (r.TeamAttrs = []), r.TeamAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!Array.isArray(e.Attrs)) return "Attrs: array expected";
                    for (var t = 0; t < e.Attrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attrs[t])) return "Attrs." + n
                }
                if (null != e.StarAttrs && e.hasOwnProperty("StarAttrs")) {
                    if (!Array.isArray(e.StarAttrs)) return "StarAttrs: array expected";
                    for (t = 0; t < e.StarAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.StarAttrs[t])) return "StarAttrs." + n
                }
                if (null != e.LevelAttrs && e.hasOwnProperty("LevelAttrs")) {
                    if (!Array.isArray(e.LevelAttrs)) return "LevelAttrs: array expected";
                    for (t = 0; t < e.LevelAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelAttrs[t])) return "LevelAttrs." + n
                }
                if (null != e.StarScore && e.hasOwnProperty("StarScore") && !(i.isInteger(e.StarScore) || e.StarScore && i.isInteger(e.StarScore.low) && i.isInteger(e.StarScore.high))) return "StarScore: integer|Long expected";
                if (null != e.LevelScore && e.hasOwnProperty("LevelScore") && !(i.isInteger(e.LevelScore) || e.LevelScore && i.isInteger(e.LevelScore.low) && i.isInteger(e.LevelScore.high))) return "LevelScore: integer|Long expected";
                if (null != e.TeamAttrs && e.hasOwnProperty("TeamAttrs")) {
                    if (!Array.isArray(e.TeamAttrs)) return "TeamAttrs: array expected";
                    for (t = 0; t < e.TeamAttrs.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.TeamAttrs[t])) return "TeamAttrs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MagicCircleQuality_Config) return e;
                var t = new a.MagicCircleQuality_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Attrs) {
                    if (!Array.isArray(e.Attrs)) throw TypeError(".MagicCircleQuality_Config.Attrs: array expected");
                    t.Attrs = [];
                    for (var n = 0; n < e.Attrs.length; ++n) {
                        if ("object" != typeof e.Attrs[n]) throw TypeError(".MagicCircleQuality_Config.Attrs: object expected");
                        t.Attrs[n] = a.IntArray_Config.fromObject(e.Attrs[n])
                    }
                }
                if (e.StarAttrs) {
                    if (!Array.isArray(e.StarAttrs)) throw TypeError(".MagicCircleQuality_Config.StarAttrs: array expected");
                    for (t.StarAttrs = [], n = 0; n < e.StarAttrs.length; ++n) {
                        if ("object" != typeof e.StarAttrs[n]) throw TypeError(".MagicCircleQuality_Config.StarAttrs: object expected");
                        t.StarAttrs[n] = a.IntArray_Config.fromObject(e.StarAttrs[n])
                    }
                }
                if (e.LevelAttrs) {
                    if (!Array.isArray(e.LevelAttrs)) throw TypeError(".MagicCircleQuality_Config.LevelAttrs: array expected");
                    for (t.LevelAttrs = [], n = 0; n < e.LevelAttrs.length; ++n) {
                        if ("object" != typeof e.LevelAttrs[n]) throw TypeError(".MagicCircleQuality_Config.LevelAttrs: object expected");
                        t.LevelAttrs[n] = a.IntArray_Config.fromObject(e.LevelAttrs[n])
                    }
                }
                if (null != e.StarScore && (i.Long ? (t.StarScore = i.Long.fromValue(e.StarScore)).unsigned = !1 : "string" == typeof e.StarScore ? t.StarScore = parseInt(e.StarScore, 10) : "number" == typeof e.StarScore ? t.StarScore = e.StarScore : "object" == typeof e.StarScore && (t.StarScore = new i.LongBits(e.StarScore.low >>> 0, e.StarScore.high >>> 0).toNumber())), null != e.LevelScore && (i.Long ? (t.LevelScore = i.Long.fromValue(e.LevelScore)).unsigned = !1 : "string" == typeof e.LevelScore ? t.LevelScore = parseInt(e.LevelScore, 10) : "number" == typeof e.LevelScore ? t.LevelScore = e.LevelScore : "object" == typeof e.LevelScore && (t.LevelScore = new i.LongBits(e.LevelScore.low >>> 0, e.LevelScore.high >>> 0).toNumber())), e.TeamAttrs) {
                    if (!Array.isArray(e.TeamAttrs)) throw TypeError(".MagicCircleQuality_Config.TeamAttrs: array expected");
                    for (t.TeamAttrs = [], n = 0; n < e.TeamAttrs.length; ++n) {
                        if ("object" != typeof e.TeamAttrs[n]) throw TypeError(".MagicCircleQuality_Config.TeamAttrs: object expected");
                        t.TeamAttrs[n] = a.IntArray_Config.fromObject(e.TeamAttrs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attrs = [], n.StarAttrs = [], n.LevelAttrs = [], n.TeamAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.StarScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LevelScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LevelScore = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Attrs && e.Attrs.length) {
                    n.Attrs = [];
                    for (var r = 0; r < e.Attrs.length; ++r) n.Attrs[r] = a.IntArray_Config.toObject(e.Attrs[r], t)
                }
                if (e.StarAttrs && e.StarAttrs.length)
                    for (n.StarAttrs = [], r = 0; r < e.StarAttrs.length; ++r) n.StarAttrs[r] = a.IntArray_Config.toObject(e.StarAttrs[r], t);
                if (e.LevelAttrs && e.LevelAttrs.length)
                    for (n.LevelAttrs = [], r = 0; r < e.LevelAttrs.length; ++r) n.LevelAttrs[r] = a.IntArray_Config.toObject(e.LevelAttrs[r], t);
                if (null != e.StarScore && e.hasOwnProperty("StarScore") && ("number" == typeof e.StarScore ? n.StarScore = t.longs === String ? String(e.StarScore) : e.StarScore : n.StarScore = t.longs === String ? i.Long.prototype.toString.call(e.StarScore) : t.longs === Number ? new i.LongBits(e.StarScore.low >>> 0, e.StarScore.high >>> 0).toNumber() : e.StarScore), null != e.LevelScore && e.hasOwnProperty("LevelScore") && ("number" == typeof e.LevelScore ? n.LevelScore = t.longs === String ? String(e.LevelScore) : e.LevelScore : n.LevelScore = t.longs === String ? i.Long.prototype.toString.call(e.LevelScore) : t.longs === Number ? new i.LongBits(e.LevelScore.low >>> 0, e.LevelScore.high >>> 0).toNumber() : e.LevelScore), e.TeamAttrs && e.TeamAttrs.length)
                    for (n.TeamAttrs = [], r = 0; r < e.TeamAttrs.length; ++r) n.TeamAttrs[r] = a.IntArray_Config.toObject(e.TeamAttrs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MagicCircleQuality_Config"
            }, e
        }(), a.MagicCircleStar_Config = function() {
            function e(e) {
                if (this.StarMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarMaterials = i.emptyArray, e.prototype.ActivateTalentCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MaxLevel && Object.hasOwnProperty.call(e, "MaxLevel") && t.uint32(16).int64(e.MaxLevel), null != e.StarMaterials && e.StarMaterials.length)
                    for (var n = 0; n < e.StarMaterials.length; ++n) a.IntArray_Config.encode(e.StarMaterials[n], t.uint32(26).fork()).ldelim();
                return null != e.ActivateTalentCount && Object.hasOwnProperty.call(e, "ActivateTalentCount") && t.uint32(32).int64(e.ActivateTalentCount), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MagicCircleStar_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.MaxLevel = e.int64();
                            break;
                        case 3:
                            r.StarMaterials && r.StarMaterials.length || (r.StarMaterials = []), r.StarMaterials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ActivateTalentCount = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && !(i.isInteger(e.MaxLevel) || e.MaxLevel && i.isInteger(e.MaxLevel.low) && i.isInteger(e.MaxLevel.high))) return "MaxLevel: integer|Long expected";
                if (null != e.StarMaterials && e.hasOwnProperty("StarMaterials")) {
                    if (!Array.isArray(e.StarMaterials)) return "StarMaterials: array expected";
                    for (var t = 0; t < e.StarMaterials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.StarMaterials[t]);
                        if (n) return "StarMaterials." + n
                    }
                }
                return null != e.ActivateTalentCount && e.hasOwnProperty("ActivateTalentCount") && !(i.isInteger(e.ActivateTalentCount) || e.ActivateTalentCount && i.isInteger(e.ActivateTalentCount.low) && i.isInteger(e.ActivateTalentCount.high)) ? "ActivateTalentCount: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MagicCircleStar_Config) return e;
                var t = new a.MagicCircleStar_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.MaxLevel && (i.Long ? (t.MaxLevel = i.Long.fromValue(e.MaxLevel)).unsigned = !1 : "string" == typeof e.MaxLevel ? t.MaxLevel = parseInt(e.MaxLevel, 10) : "number" == typeof e.MaxLevel ? t.MaxLevel = e.MaxLevel : "object" == typeof e.MaxLevel && (t.MaxLevel = new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber())), e.StarMaterials) {
                    if (!Array.isArray(e.StarMaterials)) throw TypeError(".MagicCircleStar_Config.StarMaterials: array expected");
                    t.StarMaterials = [];
                    for (var n = 0; n < e.StarMaterials.length; ++n) {
                        if ("object" != typeof e.StarMaterials[n]) throw TypeError(".MagicCircleStar_Config.StarMaterials: object expected");
                        t.StarMaterials[n] = a.IntArray_Config.fromObject(e.StarMaterials[n])
                    }
                }
                return null != e.ActivateTalentCount && (i.Long ? (t.ActivateTalentCount = i.Long.fromValue(e.ActivateTalentCount)).unsigned = !1 : "string" == typeof e.ActivateTalentCount ? t.ActivateTalentCount = parseInt(e.ActivateTalentCount, 10) : "number" == typeof e.ActivateTalentCount ? t.ActivateTalentCount = e.ActivateTalentCount : "object" == typeof e.ActivateTalentCount && (t.ActivateTalentCount = new i.LongBits(e.ActivateTalentCount.low >>> 0, e.ActivateTalentCount.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.StarMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ActivateTalentCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ActivateTalentCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.MaxLevel && e.hasOwnProperty("MaxLevel") && ("number" == typeof e.MaxLevel ? n.MaxLevel = t.longs === String ? String(e.MaxLevel) : e.MaxLevel : n.MaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.MaxLevel) : t.longs === Number ? new i.LongBits(e.MaxLevel.low >>> 0, e.MaxLevel.high >>> 0).toNumber() : e.MaxLevel), e.StarMaterials && e.StarMaterials.length) {
                    n.StarMaterials = [];
                    for (var r = 0; r < e.StarMaterials.length; ++r) n.StarMaterials[r] = a.IntArray_Config.toObject(e.StarMaterials[r], t)
                }
                return null != e.ActivateTalentCount && e.hasOwnProperty("ActivateTalentCount") && ("number" == typeof e.ActivateTalentCount ? n.ActivateTalentCount = t.longs === String ? String(e.ActivateTalentCount) : e.ActivateTalentCount : n.ActivateTalentCount = t.longs === String ? i.Long.prototype.toString.call(e.ActivateTalentCount) : t.longs === Number ? new i.LongBits(e.ActivateTalentCount.low >>> 0, e.ActivateTalentCount.high >>> 0).toNumber() : e.ActivateTalentCount), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MagicCircleStar_Config"
            }, e
        }(), a.MagicCircleLevel_Config = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MagicCircleLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.MagicCircleLevel_Config) return e;
                var t = new a.MagicCircleLevel_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".MagicCircleLevel_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".MagicCircleLevel_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MagicCircleLevel_Config"
            }, e
        }(), a.MagicCircleTalent_Config = function() {
            function e(e) {
                if (this.Materials = [], this.Skills = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Skills = i.emptyArray, e.prototype.Icon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray_Config.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Skills && e.Skills.length)
                    for (n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(26).fork()).ldelim();
                return null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(34).string(e.Icon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.MagicCircleTalent_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Icon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (t = 0; t < e.Skills.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                    }
                }
                return null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.MagicCircleTalent_Config) return e;
                var t = new a.MagicCircleTalent_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".MagicCircleTalent_Config.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".MagicCircleTalent_Config.Materials: object expected");
                        t.Materials[n] = a.IntArray_Config.fromObject(e.Materials[n])
                    }
                }
                if (e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".MagicCircleTalent_Config.Skills: array expected");
                    for (t.Skills = [], n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".MagicCircleTalent_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                return null != e.Icon && (t.Icon = String(e.Icon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Skills = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray_Config.toObject(e.Materials[r], t)
                }
                if (e.Skills && e.Skills.length)
                    for (n.Skills = [], r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t);
                return null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/MagicCircleTalent_Config"
            }, e
        }(), a.ItemMagicCircle_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MagicCircleId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.MagicCircleId && Object.hasOwnProperty.call(e, "MagicCircleId") && t.uint32(16).int64(e.MagicCircleId), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(24).int64(e.StarLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ItemMagicCircle_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.MagicCircleId = e.int64();
                            break;
                        case 3:
                            r.StarLevel = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.MagicCircleId && e.hasOwnProperty("MagicCircleId") && !(i.isInteger(e.MagicCircleId) || e.MagicCircleId && i.isInteger(e.MagicCircleId.low) && i.isInteger(e.MagicCircleId.high)) ? "MagicCircleId: integer|Long expected" : null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high)) ? "StarLevel: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ItemMagicCircle_Config) return e;
                var t = new a.ItemMagicCircle_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.MagicCircleId && (i.Long ? (t.MagicCircleId = i.Long.fromValue(e.MagicCircleId)).unsigned = !1 : "string" == typeof e.MagicCircleId ? t.MagicCircleId = parseInt(e.MagicCircleId, 10) : "number" == typeof e.MagicCircleId ? t.MagicCircleId = e.MagicCircleId : "object" == typeof e.MagicCircleId && (t.MagicCircleId = new i.LongBits(e.MagicCircleId.low >>> 0, e.MagicCircleId.high >>> 0).toNumber())), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MagicCircleId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MagicCircleId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.MagicCircleId && e.hasOwnProperty("MagicCircleId") && ("number" == typeof e.MagicCircleId ? n.MagicCircleId = t.longs === String ? String(e.MagicCircleId) : e.MagicCircleId : n.MagicCircleId = t.longs === String ? i.Long.prototype.toString.call(e.MagicCircleId) : t.longs === Number ? new i.LongBits(e.MagicCircleId.low >>> 0, e.MagicCircleId.high >>> 0).toNumber() : e.MagicCircleId), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ItemMagicCircle_Config"
            }, e
        }(), a.GameModuleGuideGroup_Config = function() {
            function e(e) {
                if (this.GameModuleGuideStepIds = [], this.Trigger = [], this.AutoFinishGroupIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GameModuleGuideStepIds = i.emptyArray, e.prototype.KeyStep = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ClearUnlockGuideId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RequirementsDesc = "", e.prototype.Trigger = i.emptyArray, e.prototype.AutoFinishGroupIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.GameModuleGuideStepIds && e.GameModuleGuideStepIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.GameModuleGuideStepIds.length; ++n) t.int64(e.GameModuleGuideStepIds[n]);
                    t.ldelim()
                }
                if (null != e.KeyStep && Object.hasOwnProperty.call(e, "KeyStep") && t.uint32(24).int64(e.KeyStep), null != e.ClearUnlockGuideId && Object.hasOwnProperty.call(e, "ClearUnlockGuideId") && t.uint32(32).int64(e.ClearUnlockGuideId), null != e.RequirementsDesc && Object.hasOwnProperty.call(e, "RequirementsDesc") && t.uint32(42).string(e.RequirementsDesc), null != e.Trigger && e.Trigger.length)
                    for (n = 0; n < e.Trigger.length; ++n) a.IntArray_Config.encode(e.Trigger[n], t.uint32(50).fork()).ldelim();
                if (null != e.AutoFinishGroupIds && e.AutoFinishGroupIds.length) {
                    for (t.uint32(58).fork(), n = 0; n < e.AutoFinishGroupIds.length; ++n) t.int64(e.AutoFinishGroupIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GameModuleGuideGroup_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.GameModuleGuideStepIds && r.GameModuleGuideStepIds.length || (r.GameModuleGuideStepIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.GameModuleGuideStepIds.push(e.int64());
                            else r.GameModuleGuideStepIds.push(e.int64());
                            break;
                        case 3:
                            r.KeyStep = e.int64();
                            break;
                        case 4:
                            r.ClearUnlockGuideId = e.int64();
                            break;
                        case 5:
                            r.RequirementsDesc = e.string();
                            break;
                        case 6:
                            r.Trigger && r.Trigger.length || (r.Trigger = []), r.Trigger.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            if (r.AutoFinishGroupIds && r.AutoFinishGroupIds.length || (r.AutoFinishGroupIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.AutoFinishGroupIds.push(e.int64());
                            else r.AutoFinishGroupIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.GameModuleGuideStepIds && e.hasOwnProperty("GameModuleGuideStepIds")) {
                    if (!Array.isArray(e.GameModuleGuideStepIds)) return "GameModuleGuideStepIds: array expected";
                    for (var t = 0; t < e.GameModuleGuideStepIds.length; ++t)
                        if (!(i.isInteger(e.GameModuleGuideStepIds[t]) || e.GameModuleGuideStepIds[t] && i.isInteger(e.GameModuleGuideStepIds[t].low) && i.isInteger(e.GameModuleGuideStepIds[t].high))) return "GameModuleGuideStepIds: integer|Long[] expected"
                }
                if (null != e.KeyStep && e.hasOwnProperty("KeyStep") && !(i.isInteger(e.KeyStep) || e.KeyStep && i.isInteger(e.KeyStep.low) && i.isInteger(e.KeyStep.high))) return "KeyStep: integer|Long expected";
                if (null != e.ClearUnlockGuideId && e.hasOwnProperty("ClearUnlockGuideId") && !(i.isInteger(e.ClearUnlockGuideId) || e.ClearUnlockGuideId && i.isInteger(e.ClearUnlockGuideId.low) && i.isInteger(e.ClearUnlockGuideId.high))) return "ClearUnlockGuideId: integer|Long expected";
                if (null != e.RequirementsDesc && e.hasOwnProperty("RequirementsDesc") && !i.isString(e.RequirementsDesc)) return "RequirementsDesc: string expected";
                if (null != e.Trigger && e.hasOwnProperty("Trigger")) {
                    if (!Array.isArray(e.Trigger)) return "Trigger: array expected";
                    for (t = 0; t < e.Trigger.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Trigger[t]);
                        if (n) return "Trigger." + n
                    }
                }
                if (null != e.AutoFinishGroupIds && e.hasOwnProperty("AutoFinishGroupIds")) {
                    if (!Array.isArray(e.AutoFinishGroupIds)) return "AutoFinishGroupIds: array expected";
                    for (t = 0; t < e.AutoFinishGroupIds.length; ++t)
                        if (!(i.isInteger(e.AutoFinishGroupIds[t]) || e.AutoFinishGroupIds[t] && i.isInteger(e.AutoFinishGroupIds[t].low) && i.isInteger(e.AutoFinishGroupIds[t].high))) return "AutoFinishGroupIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.GameModuleGuideGroup_Config) return e;
                var t = new a.GameModuleGuideGroup_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.GameModuleGuideStepIds) {
                    if (!Array.isArray(e.GameModuleGuideStepIds)) throw TypeError(".GameModuleGuideGroup_Config.GameModuleGuideStepIds: array expected");
                    t.GameModuleGuideStepIds = [];
                    for (var n = 0; n < e.GameModuleGuideStepIds.length; ++n) i.Long ? (t.GameModuleGuideStepIds[n] = i.Long.fromValue(e.GameModuleGuideStepIds[n])).unsigned = !1 : "string" == typeof e.GameModuleGuideStepIds[n] ? t.GameModuleGuideStepIds[n] = parseInt(e.GameModuleGuideStepIds[n], 10) : "number" == typeof e.GameModuleGuideStepIds[n] ? t.GameModuleGuideStepIds[n] = e.GameModuleGuideStepIds[n] : "object" == typeof e.GameModuleGuideStepIds[n] && (t.GameModuleGuideStepIds[n] = new i.LongBits(e.GameModuleGuideStepIds[n].low >>> 0, e.GameModuleGuideStepIds[n].high >>> 0).toNumber())
                }
                if (null != e.KeyStep && (i.Long ? (t.KeyStep = i.Long.fromValue(e.KeyStep)).unsigned = !1 : "string" == typeof e.KeyStep ? t.KeyStep = parseInt(e.KeyStep, 10) : "number" == typeof e.KeyStep ? t.KeyStep = e.KeyStep : "object" == typeof e.KeyStep && (t.KeyStep = new i.LongBits(e.KeyStep.low >>> 0, e.KeyStep.high >>> 0).toNumber())), null != e.ClearUnlockGuideId && (i.Long ? (t.ClearUnlockGuideId = i.Long.fromValue(e.ClearUnlockGuideId)).unsigned = !1 : "string" == typeof e.ClearUnlockGuideId ? t.ClearUnlockGuideId = parseInt(e.ClearUnlockGuideId, 10) : "number" == typeof e.ClearUnlockGuideId ? t.ClearUnlockGuideId = e.ClearUnlockGuideId : "object" == typeof e.ClearUnlockGuideId && (t.ClearUnlockGuideId = new i.LongBits(e.ClearUnlockGuideId.low >>> 0, e.ClearUnlockGuideId.high >>> 0).toNumber())), null != e.RequirementsDesc && (t.RequirementsDesc = String(e.RequirementsDesc)), e.Trigger) {
                    if (!Array.isArray(e.Trigger)) throw TypeError(".GameModuleGuideGroup_Config.Trigger: array expected");
                    for (t.Trigger = [], n = 0; n < e.Trigger.length; ++n) {
                        if ("object" != typeof e.Trigger[n]) throw TypeError(".GameModuleGuideGroup_Config.Trigger: object expected");
                        t.Trigger[n] = a.IntArray_Config.fromObject(e.Trigger[n])
                    }
                }
                if (e.AutoFinishGroupIds) {
                    if (!Array.isArray(e.AutoFinishGroupIds)) throw TypeError(".GameModuleGuideGroup_Config.AutoFinishGroupIds: array expected");
                    for (t.AutoFinishGroupIds = [], n = 0; n < e.AutoFinishGroupIds.length; ++n) i.Long ? (t.AutoFinishGroupIds[n] = i.Long.fromValue(e.AutoFinishGroupIds[n])).unsigned = !1 : "string" == typeof e.AutoFinishGroupIds[n] ? t.AutoFinishGroupIds[n] = parseInt(e.AutoFinishGroupIds[n], 10) : "number" == typeof e.AutoFinishGroupIds[n] ? t.AutoFinishGroupIds[n] = e.AutoFinishGroupIds[n] : "object" == typeof e.AutoFinishGroupIds[n] && (t.AutoFinishGroupIds[n] = new i.LongBits(e.AutoFinishGroupIds[n].low >>> 0, e.AutoFinishGroupIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.GameModuleGuideStepIds = [], n.Trigger = [], n.AutoFinishGroupIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.KeyStep = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.KeyStep = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ClearUnlockGuideId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ClearUnlockGuideId = t.longs === String ? "0" : 0, n.RequirementsDesc = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.GameModuleGuideStepIds && e.GameModuleGuideStepIds.length) {
                    n.GameModuleGuideStepIds = [];
                    for (var r = 0; r < e.GameModuleGuideStepIds.length; ++r) "number" == typeof e.GameModuleGuideStepIds[r] ? n.GameModuleGuideStepIds[r] = t.longs === String ? String(e.GameModuleGuideStepIds[r]) : e.GameModuleGuideStepIds[r] : n.GameModuleGuideStepIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.GameModuleGuideStepIds[r]) : t.longs === Number ? new i.LongBits(e.GameModuleGuideStepIds[r].low >>> 0, e.GameModuleGuideStepIds[r].high >>> 0).toNumber() : e.GameModuleGuideStepIds[r]
                }
                if (null != e.KeyStep && e.hasOwnProperty("KeyStep") && ("number" == typeof e.KeyStep ? n.KeyStep = t.longs === String ? String(e.KeyStep) : e.KeyStep : n.KeyStep = t.longs === String ? i.Long.prototype.toString.call(e.KeyStep) : t.longs === Number ? new i.LongBits(e.KeyStep.low >>> 0, e.KeyStep.high >>> 0).toNumber() : e.KeyStep), null != e.ClearUnlockGuideId && e.hasOwnProperty("ClearUnlockGuideId") && ("number" == typeof e.ClearUnlockGuideId ? n.ClearUnlockGuideId = t.longs === String ? String(e.ClearUnlockGuideId) : e.ClearUnlockGuideId : n.ClearUnlockGuideId = t.longs === String ? i.Long.prototype.toString.call(e.ClearUnlockGuideId) : t.longs === Number ? new i.LongBits(e.ClearUnlockGuideId.low >>> 0, e.ClearUnlockGuideId.high >>> 0).toNumber() : e.ClearUnlockGuideId), null != e.RequirementsDesc && e.hasOwnProperty("RequirementsDesc") && (n.RequirementsDesc = e.RequirementsDesc), e.Trigger && e.Trigger.length)
                    for (n.Trigger = [], r = 0; r < e.Trigger.length; ++r) n.Trigger[r] = a.IntArray_Config.toObject(e.Trigger[r], t);
                if (e.AutoFinishGroupIds && e.AutoFinishGroupIds.length)
                    for (n.AutoFinishGroupIds = [], r = 0; r < e.AutoFinishGroupIds.length; ++r) "number" == typeof e.AutoFinishGroupIds[r] ? n.AutoFinishGroupIds[r] = t.longs === String ? String(e.AutoFinishGroupIds[r]) : e.AutoFinishGroupIds[r] : n.AutoFinishGroupIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.AutoFinishGroupIds[r]) : t.longs === Number ? new i.LongBits(e.AutoFinishGroupIds[r].low >>> 0, e.AutoFinishGroupIds[r].high >>> 0).toNumber() : e.AutoFinishGroupIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GameModuleGuideGroup_Config"
            }, e
        }(), a.AllianceRedPacket_Config = function() {
            function e(e) {
                if (this.Rewards = [], this.ItemGetWay = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.ValidDays = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemGetWay = i.emptyArray, e.prototype.Icon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                if (null != e.ValidDays && Object.hasOwnProperty.call(e, "ValidDays") && t.uint32(40).int64(e.ValidDays), null != e.ItemGetWay && e.ItemGetWay.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.ItemGetWay.length; ++n) t.int64(e.ItemGetWay[n]);
                    t.ldelim()
                }
                return null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(58).string(e.Icon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceRedPacket_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.ValidDays = e.int64();
                            break;
                        case 6:
                            if (r.ItemGetWay && r.ItemGetWay.length || (r.ItemGetWay = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ItemGetWay.push(e.int64());
                            else r.ItemGetWay.push(e.int64());
                            break;
                        case 7:
                            r.Icon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                if (null != e.ValidDays && e.hasOwnProperty("ValidDays") && !(i.isInteger(e.ValidDays) || e.ValidDays && i.isInteger(e.ValidDays.low) && i.isInteger(e.ValidDays.high))) return "ValidDays: integer|Long expected";
                if (null != e.ItemGetWay && e.hasOwnProperty("ItemGetWay")) {
                    if (!Array.isArray(e.ItemGetWay)) return "ItemGetWay: array expected";
                    for (t = 0; t < e.ItemGetWay.length; ++t)
                        if (!(i.isInteger(e.ItemGetWay[t]) || e.ItemGetWay[t] && i.isInteger(e.ItemGetWay[t].low) && i.isInteger(e.ItemGetWay[t].high))) return "ItemGetWay: integer|Long[] expected"
                }
                return null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceRedPacket_Config) return e;
                var t = new a.AllianceRedPacket_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".AllianceRedPacket_Config.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".AllianceRedPacket_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                if (null != e.ValidDays && (i.Long ? (t.ValidDays = i.Long.fromValue(e.ValidDays)).unsigned = !1 : "string" == typeof e.ValidDays ? t.ValidDays = parseInt(e.ValidDays, 10) : "number" == typeof e.ValidDays ? t.ValidDays = e.ValidDays : "object" == typeof e.ValidDays && (t.ValidDays = new i.LongBits(e.ValidDays.low >>> 0, e.ValidDays.high >>> 0).toNumber())), e.ItemGetWay) {
                    if (!Array.isArray(e.ItemGetWay)) throw TypeError(".AllianceRedPacket_Config.ItemGetWay: array expected");
                    for (t.ItemGetWay = [], n = 0; n < e.ItemGetWay.length; ++n) i.Long ? (t.ItemGetWay[n] = i.Long.fromValue(e.ItemGetWay[n])).unsigned = !1 : "string" == typeof e.ItemGetWay[n] ? t.ItemGetWay[n] = parseInt(e.ItemGetWay[n], 10) : "number" == typeof e.ItemGetWay[n] ? t.ItemGetWay[n] = e.ItemGetWay[n] : "object" == typeof e.ItemGetWay[n] && (t.ItemGetWay[n] = new i.LongBits(e.ItemGetWay[n].low >>> 0, e.ItemGetWay[n].high >>> 0).toNumber())
                }
                return null != e.Icon && (t.Icon = String(e.Icon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.ItemGetWay = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ValidDays = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ValidDays = t.longs === String ? "0" : 0, n.Icon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t)
                }
                if (null != e.ValidDays && e.hasOwnProperty("ValidDays") && ("number" == typeof e.ValidDays ? n.ValidDays = t.longs === String ? String(e.ValidDays) : e.ValidDays : n.ValidDays = t.longs === String ? i.Long.prototype.toString.call(e.ValidDays) : t.longs === Number ? new i.LongBits(e.ValidDays.low >>> 0, e.ValidDays.high >>> 0).toNumber() : e.ValidDays), e.ItemGetWay && e.ItemGetWay.length)
                    for (n.ItemGetWay = [], r = 0; r < e.ItemGetWay.length; ++r) "number" == typeof e.ItemGetWay[r] ? n.ItemGetWay[r] = t.longs === String ? String(e.ItemGetWay[r]) : e.ItemGetWay[r] : n.ItemGetWay[r] = t.longs === String ? i.Long.prototype.toString.call(e.ItemGetWay[r]) : t.longs === Number ? new i.LongBits(e.ItemGetWay[r].low >>> 0, e.ItemGetWay[r].high >>> 0).toNumber() : e.ItemGetWay[r];
                return null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceRedPacket_Config"
            }, e
        }(), a.GameModuleUnlockGuideStep_Config = function() {
            function e(e) {
                if (this.Type = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Desc = "", e.prototype.Type = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Desc && Object.hasOwnProperty.call(e, "Desc") && t.uint32(18).string(e.Desc), null != e.Type && e.Type.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Type.length; ++n) t.int64(e.Type[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.GameModuleUnlockGuideStep_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Desc = e.string();
                            break;
                        case 3:
                            if (r.Type && r.Type.length || (r.Type = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Type.push(e.int64());
                            else r.Type.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Desc && e.hasOwnProperty("Desc") && !i.isString(e.Desc)) return "Desc: string expected";
                if (null != e.Type && e.hasOwnProperty("Type")) {
                    if (!Array.isArray(e.Type)) return "Type: array expected";
                    for (var t = 0; t < e.Type.length; ++t)
                        if (!(i.isInteger(e.Type[t]) || e.Type[t] && i.isInteger(e.Type[t].low) && i.isInteger(e.Type[t].high))) return "Type: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.GameModuleUnlockGuideStep_Config) return e;
                var t = new a.GameModuleUnlockGuideStep_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Desc && (t.Desc = String(e.Desc)), e.Type) {
                    if (!Array.isArray(e.Type)) throw TypeError(".GameModuleUnlockGuideStep_Config.Type: array expected");
                    t.Type = [];
                    for (var n = 0; n < e.Type.length; ++n) i.Long ? (t.Type[n] = i.Long.fromValue(e.Type[n])).unsigned = !1 : "string" == typeof e.Type[n] ? t.Type[n] = parseInt(e.Type[n], 10) : "number" == typeof e.Type[n] ? t.Type[n] = e.Type[n] : "object" == typeof e.Type[n] && (t.Type[n] = new i.LongBits(e.Type[n].low >>> 0, e.Type[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Type = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Desc = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Desc && e.hasOwnProperty("Desc") && (n.Desc = e.Desc), e.Type && e.Type.length) {
                    n.Type = [];
                    for (var r = 0; r < e.Type.length; ++r) "number" == typeof e.Type[r] ? n.Type[r] = t.longs === String ? String(e.Type[r]) : e.Type[r] : n.Type[r] = t.longs === String ? i.Long.prototype.toString.call(e.Type[r]) : t.longs === Number ? new i.LongBits(e.Type[r].low >>> 0, e.Type[r].high >>> 0).toNumber() : e.Type[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/GameModuleUnlockGuideStep_Config"
            }, e
        }(), a.AllianceBossBox_Config = function() {
            function e(e) {
                if (this.Reward = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SumDamage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Reward = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.SumDamage && Object.hasOwnProperty.call(e, "SumDamage") && t.uint32(16).int64(e.SumDamage), null != e.Reward && e.Reward.length)
                    for (var n = 0; n < e.Reward.length; ++n) a.IntArray_Config.encode(e.Reward[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceBossBox_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.SumDamage = e.int64();
                            break;
                        case 3:
                            r.Reward && r.Reward.length || (r.Reward = []), r.Reward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.SumDamage && e.hasOwnProperty("SumDamage") && !(i.isInteger(e.SumDamage) || e.SumDamage && i.isInteger(e.SumDamage.low) && i.isInteger(e.SumDamage.high))) return "SumDamage: integer|Long expected";
                if (null != e.Reward && e.hasOwnProperty("Reward")) {
                    if (!Array.isArray(e.Reward)) return "Reward: array expected";
                    for (var t = 0; t < e.Reward.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Reward[t]);
                        if (n) return "Reward." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceBossBox_Config) return e;
                var t = new a.AllianceBossBox_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.SumDamage && (i.Long ? (t.SumDamage = i.Long.fromValue(e.SumDamage)).unsigned = !1 : "string" == typeof e.SumDamage ? t.SumDamage = parseInt(e.SumDamage, 10) : "number" == typeof e.SumDamage ? t.SumDamage = e.SumDamage : "object" == typeof e.SumDamage && (t.SumDamage = new i.LongBits(e.SumDamage.low >>> 0, e.SumDamage.high >>> 0).toNumber())), e.Reward) {
                    if (!Array.isArray(e.Reward)) throw TypeError(".AllianceBossBox_Config.Reward: array expected");
                    t.Reward = [];
                    for (var n = 0; n < e.Reward.length; ++n) {
                        if ("object" != typeof e.Reward[n]) throw TypeError(".AllianceBossBox_Config.Reward: object expected");
                        t.Reward[n] = a.IntArray_Config.fromObject(e.Reward[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Reward = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SumDamage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SumDamage = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.SumDamage && e.hasOwnProperty("SumDamage") && ("number" == typeof e.SumDamage ? n.SumDamage = t.longs === String ? String(e.SumDamage) : e.SumDamage : n.SumDamage = t.longs === String ? i.Long.prototype.toString.call(e.SumDamage) : t.longs === Number ? new i.LongBits(e.SumDamage.low >>> 0, e.SumDamage.high >>> 0).toNumber() : e.SumDamage), e.Reward && e.Reward.length) {
                    n.Reward = [];
                    for (var r = 0; r < e.Reward.length; ++r) n.Reward[r] = a.IntArray_Config.toObject(e.Reward[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceBossBox_Config"
            }, e
        }(), a.AllianceBOSSPowerDamage_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Damage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(16).int64(e.Power), null != e.Damage && Object.hasOwnProperty.call(e, "Damage") && t.uint32(24).int64(e.Damage), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceBOSSPowerDamage_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Power = e.int64();
                            break;
                        case 3:
                            r.Damage = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high)) ? "Power: integer|Long expected" : null != e.Damage && e.hasOwnProperty("Damage") && !(i.isInteger(e.Damage) || e.Damage && i.isInteger(e.Damage.low) && i.isInteger(e.Damage.high)) ? "Damage: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceBOSSPowerDamage_Config) return e;
                var t = new a.AllianceBOSSPowerDamage_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.Damage && (i.Long ? (t.Damage = i.Long.fromValue(e.Damage)).unsigned = !1 : "string" == typeof e.Damage ? t.Damage = parseInt(e.Damage, 10) : "number" == typeof e.Damage ? t.Damage = e.Damage : "object" == typeof e.Damage && (t.Damage = new i.LongBits(e.Damage.low >>> 0, e.Damage.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Damage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Damage = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.Damage && e.hasOwnProperty("Damage") && ("number" == typeof e.Damage ? n.Damage = t.longs === String ? String(e.Damage) : e.Damage : n.Damage = t.longs === String ? i.Long.prototype.toString.call(e.Damage) : t.longs === Number ? new i.LongBits(e.Damage.low >>> 0, e.Damage.high >>> 0).toNumber() : e.Damage), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceBOSSPowerDamage_Config"
            }, e
        }(), a.AllianceBOSSRankReward_Config = function() {
            function e(e) {
                if (this.Rank = [], this.Reward = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rank = i.emptyArray, e.prototype.Reward = i.emptyArray, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Rank && e.Rank.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Rank.length; ++n) t.int64(e.Rank[n]);
                    t.ldelim()
                }
                if (null != e.Reward && e.Reward.length)
                    for (n = 0; n < e.Reward.length; ++n) a.IntArray_Config.encode(e.Reward[n], t.uint32(26).fork()).ldelim();
                return null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(32).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceBOSSRankReward_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Rank && r.Rank.length || (r.Rank = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Rank.push(e.int64());
                            else r.Rank.push(e.int64());
                            break;
                        case 3:
                            r.Reward && r.Reward.length || (r.Reward = []), r.Reward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Rank && e.hasOwnProperty("Rank")) {
                    if (!Array.isArray(e.Rank)) return "Rank: array expected";
                    for (var t = 0; t < e.Rank.length; ++t)
                        if (!(i.isInteger(e.Rank[t]) || e.Rank[t] && i.isInteger(e.Rank[t].low) && i.isInteger(e.Rank[t].high))) return "Rank: integer|Long[] expected"
                }
                if (null != e.Reward && e.hasOwnProperty("Reward")) {
                    if (!Array.isArray(e.Reward)) return "Reward: array expected";
                    for (t = 0; t < e.Reward.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Reward[t]);
                        if (n) return "Reward." + n
                    }
                }
                return null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceBOSSRankReward_Config) return e;
                var t = new a.AllianceBOSSRankReward_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Rank) {
                    if (!Array.isArray(e.Rank)) throw TypeError(".AllianceBOSSRankReward_Config.Rank: array expected");
                    t.Rank = [];
                    for (var n = 0; n < e.Rank.length; ++n) i.Long ? (t.Rank[n] = i.Long.fromValue(e.Rank[n])).unsigned = !1 : "string" == typeof e.Rank[n] ? t.Rank[n] = parseInt(e.Rank[n], 10) : "number" == typeof e.Rank[n] ? t.Rank[n] = e.Rank[n] : "object" == typeof e.Rank[n] && (t.Rank[n] = new i.LongBits(e.Rank[n].low >>> 0, e.Rank[n].high >>> 0).toNumber())
                }
                if (e.Reward) {
                    if (!Array.isArray(e.Reward)) throw TypeError(".AllianceBOSSRankReward_Config.Reward: array expected");
                    for (t.Reward = [], n = 0; n < e.Reward.length; ++n) {
                        if ("object" != typeof e.Reward[n]) throw TypeError(".AllianceBOSSRankReward_Config.Reward: object expected");
                        t.Reward[n] = a.IntArray_Config.fromObject(e.Reward[n])
                    }
                }
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rank = [], n.Reward = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Rank && e.Rank.length) {
                    n.Rank = [];
                    for (var r = 0; r < e.Rank.length; ++r) "number" == typeof e.Rank[r] ? n.Rank[r] = t.longs === String ? String(e.Rank[r]) : e.Rank[r] : n.Rank[r] = t.longs === String ? i.Long.prototype.toString.call(e.Rank[r]) : t.longs === Number ? new i.LongBits(e.Rank[r].low >>> 0, e.Rank[r].high >>> 0).toNumber() : e.Rank[r]
                }
                if (e.Reward && e.Reward.length)
                    for (n.Reward = [], r = 0; r < e.Reward.length; ++r) n.Reward[r] = a.IntArray_Config.toObject(e.Reward[r], t);
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceBOSSRankReward_Config"
            }, e
        }(), a.AllianceBOSSSkill_Config = function() {
            function e(e) {
                if (this.Items = [], this.Effect = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Desc = "", e.prototype.Items = i.emptyArray, e.prototype.Effect = i.emptyArray, e.prototype.Time = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Point = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Desc && Object.hasOwnProperty.call(e, "Desc") && t.uint32(18).string(e.Desc), null != e.Items && e.Items.length)
                    for (var n = 0; n < e.Items.length; ++n) a.IntArray_Config.encode(e.Items[n], t.uint32(26).fork()).ldelim();
                if (null != e.Effect && e.Effect.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.Effect.length; ++n) t.int64(e.Effect[n]);
                    t.ldelim()
                }
                return null != e.Time && Object.hasOwnProperty.call(e, "Time") && t.uint32(40).int64(e.Time), null != e.Point && Object.hasOwnProperty.call(e, "Point") && t.uint32(56).int64(e.Point), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceBOSSSkill_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Desc = e.string();
                            break;
                        case 3:
                            r.Items && r.Items.length || (r.Items = []), r.Items.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            if (r.Effect && r.Effect.length || (r.Effect = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Effect.push(e.int64());
                            else r.Effect.push(e.int64());
                            break;
                        case 5:
                            r.Time = e.int64();
                            break;
                        case 7:
                            r.Point = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Desc && e.hasOwnProperty("Desc") && !i.isString(e.Desc)) return "Desc: string expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Items[t]);
                        if (n) return "Items." + n
                    }
                }
                if (null != e.Effect && e.hasOwnProperty("Effect")) {
                    if (!Array.isArray(e.Effect)) return "Effect: array expected";
                    for (t = 0; t < e.Effect.length; ++t)
                        if (!(i.isInteger(e.Effect[t]) || e.Effect[t] && i.isInteger(e.Effect[t].low) && i.isInteger(e.Effect[t].high))) return "Effect: integer|Long[] expected"
                }
                return null != e.Time && e.hasOwnProperty("Time") && !(i.isInteger(e.Time) || e.Time && i.isInteger(e.Time.low) && i.isInteger(e.Time.high)) ? "Time: integer|Long expected" : null != e.Point && e.hasOwnProperty("Point") && !(i.isInteger(e.Point) || e.Point && i.isInteger(e.Point.low) && i.isInteger(e.Point.high)) ? "Point: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceBOSSSkill_Config) return e;
                var t = new a.AllianceBOSSSkill_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Desc && (t.Desc = String(e.Desc)), e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".AllianceBOSSSkill_Config.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) {
                        if ("object" != typeof e.Items[n]) throw TypeError(".AllianceBOSSSkill_Config.Items: object expected");
                        t.Items[n] = a.IntArray_Config.fromObject(e.Items[n])
                    }
                }
                if (e.Effect) {
                    if (!Array.isArray(e.Effect)) throw TypeError(".AllianceBOSSSkill_Config.Effect: array expected");
                    for (t.Effect = [], n = 0; n < e.Effect.length; ++n) i.Long ? (t.Effect[n] = i.Long.fromValue(e.Effect[n])).unsigned = !1 : "string" == typeof e.Effect[n] ? t.Effect[n] = parseInt(e.Effect[n], 10) : "number" == typeof e.Effect[n] ? t.Effect[n] = e.Effect[n] : "object" == typeof e.Effect[n] && (t.Effect[n] = new i.LongBits(e.Effect[n].low >>> 0, e.Effect[n].high >>> 0).toNumber())
                }
                return null != e.Time && (i.Long ? (t.Time = i.Long.fromValue(e.Time)).unsigned = !1 : "string" == typeof e.Time ? t.Time = parseInt(e.Time, 10) : "number" == typeof e.Time ? t.Time = e.Time : "object" == typeof e.Time && (t.Time = new i.LongBits(e.Time.low >>> 0, e.Time.high >>> 0).toNumber())), null != e.Point && (i.Long ? (t.Point = i.Long.fromValue(e.Point)).unsigned = !1 : "string" == typeof e.Point ? t.Point = parseInt(e.Point, 10) : "number" == typeof e.Point ? t.Point = e.Point : "object" == typeof e.Point && (t.Point = new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = [], n.Effect = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Desc = "", i.Long ? (o = new i.Long(0, 0, !1), n.Time = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Time = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Point = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Point = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Desc && e.hasOwnProperty("Desc") && (n.Desc = e.Desc), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var r = 0; r < e.Items.length; ++r) n.Items[r] = a.IntArray_Config.toObject(e.Items[r], t)
                }
                if (e.Effect && e.Effect.length)
                    for (n.Effect = [], r = 0; r < e.Effect.length; ++r) "number" == typeof e.Effect[r] ? n.Effect[r] = t.longs === String ? String(e.Effect[r]) : e.Effect[r] : n.Effect[r] = t.longs === String ? i.Long.prototype.toString.call(e.Effect[r]) : t.longs === Number ? new i.LongBits(e.Effect[r].low >>> 0, e.Effect[r].high >>> 0).toNumber() : e.Effect[r];
                return null != e.Time && e.hasOwnProperty("Time") && ("number" == typeof e.Time ? n.Time = t.longs === String ? String(e.Time) : e.Time : n.Time = t.longs === String ? i.Long.prototype.toString.call(e.Time) : t.longs === Number ? new i.LongBits(e.Time.low >>> 0, e.Time.high >>> 0).toNumber() : e.Time), null != e.Point && e.hasOwnProperty("Point") && ("number" == typeof e.Point ? n.Point = t.longs === String ? String(e.Point) : e.Point : n.Point = t.longs === String ? i.Long.prototype.toString.call(e.Point) : t.longs === Number ? new i.LongBits(e.Point.low >>> 0, e.Point.high >>> 0).toNumber() : e.Point), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceBOSSSkill_Config"
            }, e
        }(), a.StarPowerAwaken_Config = function() {
            function e(e) {
                if (this.Attribute = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Layer = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attribute = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(16).int64(e.Level), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.Layer && Object.hasOwnProperty.call(e, "Layer") && t.uint32(32).int64(e.Layer), null != e.Attribute && e.Attribute.length)
                    for (var n = 0; n < e.Attribute.length; ++n) a.IntArray_Config.encode(e.Attribute[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarPowerAwaken_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Level = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.Layer = e.int64();
                            break;
                        case 5:
                            r.Attribute && r.Attribute.length || (r.Attribute = []), r.Attribute.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Layer && e.hasOwnProperty("Layer") && !(i.isInteger(e.Layer) || e.Layer && i.isInteger(e.Layer.low) && i.isInteger(e.Layer.high))) return "Layer: integer|Long expected";
                if (null != e.Attribute && e.hasOwnProperty("Attribute")) {
                    if (!Array.isArray(e.Attribute)) return "Attribute: array expected";
                    for (var t = 0; t < e.Attribute.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Attribute[t]);
                        if (n) return "Attribute." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarPowerAwaken_Config) return e;
                var t = new a.StarPowerAwaken_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Layer && (i.Long ? (t.Layer = i.Long.fromValue(e.Layer)).unsigned = !1 : "string" == typeof e.Layer ? t.Layer = parseInt(e.Layer, 10) : "number" == typeof e.Layer ? t.Layer = e.Layer : "object" == typeof e.Layer && (t.Layer = new i.LongBits(e.Layer.low >>> 0, e.Layer.high >>> 0).toNumber())), e.Attribute) {
                    if (!Array.isArray(e.Attribute)) throw TypeError(".StarPowerAwaken_Config.Attribute: array expected");
                    t.Attribute = [];
                    for (var n = 0; n < e.Attribute.length; ++n) {
                        if ("object" != typeof e.Attribute[n]) throw TypeError(".StarPowerAwaken_Config.Attribute: object expected");
                        t.Attribute[n] = a.IntArray_Config.fromObject(e.Attribute[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attribute = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Layer = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Layer = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Layer && e.hasOwnProperty("Layer") && ("number" == typeof e.Layer ? n.Layer = t.longs === String ? String(e.Layer) : e.Layer : n.Layer = t.longs === String ? i.Long.prototype.toString.call(e.Layer) : t.longs === Number ? new i.LongBits(e.Layer.low >>> 0, e.Layer.high >>> 0).toNumber() : e.Layer), e.Attribute && e.Attribute.length) {
                    n.Attribute = [];
                    for (var r = 0; r < e.Attribute.length; ++r) n.Attribute[r] = a.IntArray_Config.toObject(e.Attribute[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarPowerAwaken_Config"
            }, e
        }(), a.StarPowerSuppress_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OnValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NotOnValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(24).int64(e.Star), null != e.OnValue && Object.hasOwnProperty.call(e, "OnValue") && t.uint32(32).int64(e.OnValue), null != e.NotOnValue && Object.hasOwnProperty.call(e, "NotOnValue") && t.uint32(40).int64(e.NotOnValue), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(48).int64(e.Quality), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.StarPowerSuppress_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Star = e.int64();
                            break;
                        case 4:
                            r.OnValue = e.int64();
                            break;
                        case 5:
                            r.NotOnValue = e.int64();
                            break;
                        case 6:
                            r.Quality = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high)) ? "Star: integer|Long expected" : null != e.OnValue && e.hasOwnProperty("OnValue") && !(i.isInteger(e.OnValue) || e.OnValue && i.isInteger(e.OnValue.low) && i.isInteger(e.OnValue.high)) ? "OnValue: integer|Long expected" : null != e.NotOnValue && e.hasOwnProperty("NotOnValue") && !(i.isInteger(e.NotOnValue) || e.NotOnValue && i.isInteger(e.NotOnValue.low) && i.isInteger(e.NotOnValue.high)) ? "NotOnValue: integer|Long expected" : null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high)) ? "Quality: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.StarPowerSuppress_Config) return e;
                var t = new a.StarPowerSuppress_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), null != e.OnValue && (i.Long ? (t.OnValue = i.Long.fromValue(e.OnValue)).unsigned = !1 : "string" == typeof e.OnValue ? t.OnValue = parseInt(e.OnValue, 10) : "number" == typeof e.OnValue ? t.OnValue = e.OnValue : "object" == typeof e.OnValue && (t.OnValue = new i.LongBits(e.OnValue.low >>> 0, e.OnValue.high >>> 0).toNumber())), null != e.NotOnValue && (i.Long ? (t.NotOnValue = i.Long.fromValue(e.NotOnValue)).unsigned = !1 : "string" == typeof e.NotOnValue ? t.NotOnValue = parseInt(e.NotOnValue, 10) : "number" == typeof e.NotOnValue ? t.NotOnValue = e.NotOnValue : "object" == typeof e.NotOnValue && (t.NotOnValue = new i.LongBits(e.NotOnValue.low >>> 0, e.NotOnValue.high >>> 0).toNumber())), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.OnValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OnValue = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.NotOnValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NotOnValue = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), null != e.OnValue && e.hasOwnProperty("OnValue") && ("number" == typeof e.OnValue ? n.OnValue = t.longs === String ? String(e.OnValue) : e.OnValue : n.OnValue = t.longs === String ? i.Long.prototype.toString.call(e.OnValue) : t.longs === Number ? new i.LongBits(e.OnValue.low >>> 0, e.OnValue.high >>> 0).toNumber() : e.OnValue), null != e.NotOnValue && e.hasOwnProperty("NotOnValue") && ("number" == typeof e.NotOnValue ? n.NotOnValue = t.longs === String ? String(e.NotOnValue) : e.NotOnValue : n.NotOnValue = t.longs === String ? i.Long.prototype.toString.call(e.NotOnValue) : t.longs === Number ? new i.LongBits(e.NotOnValue.low >>> 0, e.NotOnValue.high >>> 0).toNumber() : e.NotOnValue), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/StarPowerSuppress_Config"
            }, e
        }(), a.AssaultOperationMap_Config = function() {
            function e(e) {
                if (this.ResourceIds = [], this.Terrain = [], this.Coordinate = [], this.SpecialResource = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.ResourceIds = i.emptyArray, e.prototype.Terrain = i.emptyArray, e.prototype.Map = "", e.prototype.Coordinate = i.emptyArray, e.prototype.SpecialResource = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.ResourceIds && e.ResourceIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.ResourceIds.length; ++n) t.int64(e.ResourceIds[n]);
                    t.ldelim()
                }
                if (null != e.Terrain && e.Terrain.length)
                    for (n = 0; n < e.Terrain.length; ++n) a.IntArray_Config.encode(e.Terrain[n], t.uint32(34).fork()).ldelim();
                if (null != e.Map && Object.hasOwnProperty.call(e, "Map") && t.uint32(42).string(e.Map), null != e.Coordinate && e.Coordinate.length)
                    for (n = 0; n < e.Coordinate.length; ++n) a.IntArray_Config.encode(e.Coordinate[n], t.uint32(50).fork()).ldelim();
                if (null != e.SpecialResource && e.SpecialResource.length)
                    for (n = 0; n < e.SpecialResource.length; ++n) a.IntArray_Config.encode(e.SpecialResource[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AssaultOperationMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            if (r.ResourceIds && r.ResourceIds.length || (r.ResourceIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ResourceIds.push(e.int64());
                            else r.ResourceIds.push(e.int64());
                            break;
                        case 4:
                            r.Terrain && r.Terrain.length || (r.Terrain = []), r.Terrain.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Map = e.string();
                            break;
                        case 6:
                            r.Coordinate && r.Coordinate.length || (r.Coordinate = []), r.Coordinate.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.SpecialResource && r.SpecialResource.length || (r.SpecialResource = []), r.SpecialResource.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name)) return "Name: string expected";
                if (null != e.ResourceIds && e.hasOwnProperty("ResourceIds")) {
                    if (!Array.isArray(e.ResourceIds)) return "ResourceIds: array expected";
                    for (var t = 0; t < e.ResourceIds.length; ++t)
                        if (!(i.isInteger(e.ResourceIds[t]) || e.ResourceIds[t] && i.isInteger(e.ResourceIds[t].low) && i.isInteger(e.ResourceIds[t].high))) return "ResourceIds: integer|Long[] expected"
                }
                if (null != e.Terrain && e.hasOwnProperty("Terrain")) {
                    if (!Array.isArray(e.Terrain)) return "Terrain: array expected";
                    for (t = 0; t < e.Terrain.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Terrain[t])) return "Terrain." + n
                }
                if (null != e.Map && e.hasOwnProperty("Map") && !i.isString(e.Map)) return "Map: string expected";
                if (null != e.Coordinate && e.hasOwnProperty("Coordinate")) {
                    if (!Array.isArray(e.Coordinate)) return "Coordinate: array expected";
                    for (t = 0; t < e.Coordinate.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Coordinate[t])) return "Coordinate." + n
                }
                if (null != e.SpecialResource && e.hasOwnProperty("SpecialResource")) {
                    if (!Array.isArray(e.SpecialResource)) return "SpecialResource: array expected";
                    for (t = 0; t < e.SpecialResource.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.SpecialResource[t])) return "SpecialResource." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AssaultOperationMap_Config) return e;
                var t = new a.AssaultOperationMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), e.ResourceIds) {
                    if (!Array.isArray(e.ResourceIds)) throw TypeError(".AssaultOperationMap_Config.ResourceIds: array expected");
                    t.ResourceIds = [];
                    for (var n = 0; n < e.ResourceIds.length; ++n) i.Long ? (t.ResourceIds[n] = i.Long.fromValue(e.ResourceIds[n])).unsigned = !1 : "string" == typeof e.ResourceIds[n] ? t.ResourceIds[n] = parseInt(e.ResourceIds[n], 10) : "number" == typeof e.ResourceIds[n] ? t.ResourceIds[n] = e.ResourceIds[n] : "object" == typeof e.ResourceIds[n] && (t.ResourceIds[n] = new i.LongBits(e.ResourceIds[n].low >>> 0, e.ResourceIds[n].high >>> 0).toNumber())
                }
                if (e.Terrain) {
                    if (!Array.isArray(e.Terrain)) throw TypeError(".AssaultOperationMap_Config.Terrain: array expected");
                    for (t.Terrain = [], n = 0; n < e.Terrain.length; ++n) {
                        if ("object" != typeof e.Terrain[n]) throw TypeError(".AssaultOperationMap_Config.Terrain: object expected");
                        t.Terrain[n] = a.IntArray_Config.fromObject(e.Terrain[n])
                    }
                }
                if (null != e.Map && (t.Map = String(e.Map)), e.Coordinate) {
                    if (!Array.isArray(e.Coordinate)) throw TypeError(".AssaultOperationMap_Config.Coordinate: array expected");
                    for (t.Coordinate = [], n = 0; n < e.Coordinate.length; ++n) {
                        if ("object" != typeof e.Coordinate[n]) throw TypeError(".AssaultOperationMap_Config.Coordinate: object expected");
                        t.Coordinate[n] = a.IntArray_Config.fromObject(e.Coordinate[n])
                    }
                }
                if (e.SpecialResource) {
                    if (!Array.isArray(e.SpecialResource)) throw TypeError(".AssaultOperationMap_Config.SpecialResource: array expected");
                    for (t.SpecialResource = [], n = 0; n < e.SpecialResource.length; ++n) {
                        if ("object" != typeof e.SpecialResource[n]) throw TypeError(".AssaultOperationMap_Config.SpecialResource: object expected");
                        t.SpecialResource[n] = a.IntArray_Config.fromObject(e.SpecialResource[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ResourceIds = [], n.Terrain = [], n.Coordinate = [], n.SpecialResource = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Name = "", n.Map = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), e.ResourceIds && e.ResourceIds.length) {
                    n.ResourceIds = [];
                    for (var r = 0; r < e.ResourceIds.length; ++r) "number" == typeof e.ResourceIds[r] ? n.ResourceIds[r] = t.longs === String ? String(e.ResourceIds[r]) : e.ResourceIds[r] : n.ResourceIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.ResourceIds[r]) : t.longs === Number ? new i.LongBits(e.ResourceIds[r].low >>> 0, e.ResourceIds[r].high >>> 0).toNumber() : e.ResourceIds[r]
                }
                if (e.Terrain && e.Terrain.length)
                    for (n.Terrain = [], r = 0; r < e.Terrain.length; ++r) n.Terrain[r] = a.IntArray_Config.toObject(e.Terrain[r], t);
                if (null != e.Map && e.hasOwnProperty("Map") && (n.Map = e.Map), e.Coordinate && e.Coordinate.length)
                    for (n.Coordinate = [], r = 0; r < e.Coordinate.length; ++r) n.Coordinate[r] = a.IntArray_Config.toObject(e.Coordinate[r], t);
                if (e.SpecialResource && e.SpecialResource.length)
                    for (n.SpecialResource = [], r = 0; r < e.SpecialResource.length; ++r) n.SpecialResource[r] = a.IntArray_Config.toObject(e.SpecialResource[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AssaultOperationMap_Config"
            }, e
        }(), a.AssaultOperationResourceItem_Config = function() {
            function e(e) {
                if (this.BlockIds = [], this.Monster = [], this.NeighborIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.BlockIds = i.emptyArray, e.prototype.Monster = i.emptyArray, e.prototype.RewardCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NeighborIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.BlockIds && e.BlockIds.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.BlockIds.length; ++n) t.int64(e.BlockIds[n]);
                    t.ldelim()
                }
                if (null != e.Monster && e.Monster.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.Monster.length; ++n) t.int64(e.Monster[n]);
                    t.ldelim()
                }
                if (null != e.RewardCount && Object.hasOwnProperty.call(e, "RewardCount") && t.uint32(48).int64(e.RewardCount), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(56).int64(e.Score), null != e.NeighborIds && e.NeighborIds.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.NeighborIds.length; ++n) t.int64(e.NeighborIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AssaultOperationResourceItem_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 4:
                            if (r.BlockIds && r.BlockIds.length || (r.BlockIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.BlockIds.push(e.int64());
                            else r.BlockIds.push(e.int64());
                            break;
                        case 5:
                            if (r.Monster && r.Monster.length || (r.Monster = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.Monster.push(e.int64());
                            else r.Monster.push(e.int64());
                            break;
                        case 6:
                            r.RewardCount = e.int64();
                            break;
                        case 7:
                            r.Score = e.int64();
                            break;
                        case 8:
                            if (r.NeighborIds && r.NeighborIds.length || (r.NeighborIds = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.NeighborIds.push(e.int64());
                            else r.NeighborIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.BlockIds && e.hasOwnProperty("BlockIds")) {
                    if (!Array.isArray(e.BlockIds)) return "BlockIds: array expected";
                    for (var t = 0; t < e.BlockIds.length; ++t)
                        if (!(i.isInteger(e.BlockIds[t]) || e.BlockIds[t] && i.isInteger(e.BlockIds[t].low) && i.isInteger(e.BlockIds[t].high))) return "BlockIds: integer|Long[] expected"
                }
                if (null != e.Monster && e.hasOwnProperty("Monster")) {
                    if (!Array.isArray(e.Monster)) return "Monster: array expected";
                    for (t = 0; t < e.Monster.length; ++t)
                        if (!(i.isInteger(e.Monster[t]) || e.Monster[t] && i.isInteger(e.Monster[t].low) && i.isInteger(e.Monster[t].high))) return "Monster: integer|Long[] expected"
                }
                if (null != e.RewardCount && e.hasOwnProperty("RewardCount") && !(i.isInteger(e.RewardCount) || e.RewardCount && i.isInteger(e.RewardCount.low) && i.isInteger(e.RewardCount.high))) return "RewardCount: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.NeighborIds && e.hasOwnProperty("NeighborIds")) {
                    if (!Array.isArray(e.NeighborIds)) return "NeighborIds: array expected";
                    for (t = 0; t < e.NeighborIds.length; ++t)
                        if (!(i.isInteger(e.NeighborIds[t]) || e.NeighborIds[t] && i.isInteger(e.NeighborIds[t].low) && i.isInteger(e.NeighborIds[t].high))) return "NeighborIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AssaultOperationResourceItem_Config) return e;
                var t = new a.AssaultOperationResourceItem_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.BlockIds) {
                    if (!Array.isArray(e.BlockIds)) throw TypeError(".AssaultOperationResourceItem_Config.BlockIds: array expected");
                    t.BlockIds = [];
                    for (var n = 0; n < e.BlockIds.length; ++n) i.Long ? (t.BlockIds[n] = i.Long.fromValue(e.BlockIds[n])).unsigned = !1 : "string" == typeof e.BlockIds[n] ? t.BlockIds[n] = parseInt(e.BlockIds[n], 10) : "number" == typeof e.BlockIds[n] ? t.BlockIds[n] = e.BlockIds[n] : "object" == typeof e.BlockIds[n] && (t.BlockIds[n] = new i.LongBits(e.BlockIds[n].low >>> 0, e.BlockIds[n].high >>> 0).toNumber())
                }
                if (e.Monster) {
                    if (!Array.isArray(e.Monster)) throw TypeError(".AssaultOperationResourceItem_Config.Monster: array expected");
                    for (t.Monster = [], n = 0; n < e.Monster.length; ++n) i.Long ? (t.Monster[n] = i.Long.fromValue(e.Monster[n])).unsigned = !1 : "string" == typeof e.Monster[n] ? t.Monster[n] = parseInt(e.Monster[n], 10) : "number" == typeof e.Monster[n] ? t.Monster[n] = e.Monster[n] : "object" == typeof e.Monster[n] && (t.Monster[n] = new i.LongBits(e.Monster[n].low >>> 0, e.Monster[n].high >>> 0).toNumber())
                }
                if (null != e.RewardCount && (i.Long ? (t.RewardCount = i.Long.fromValue(e.RewardCount)).unsigned = !1 : "string" == typeof e.RewardCount ? t.RewardCount = parseInt(e.RewardCount, 10) : "number" == typeof e.RewardCount ? t.RewardCount = e.RewardCount : "object" == typeof e.RewardCount && (t.RewardCount = new i.LongBits(e.RewardCount.low >>> 0, e.RewardCount.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), e.NeighborIds) {
                    if (!Array.isArray(e.NeighborIds)) throw TypeError(".AssaultOperationResourceItem_Config.NeighborIds: array expected");
                    for (t.NeighborIds = [], n = 0; n < e.NeighborIds.length; ++n) i.Long ? (t.NeighborIds[n] = i.Long.fromValue(e.NeighborIds[n])).unsigned = !1 : "string" == typeof e.NeighborIds[n] ? t.NeighborIds[n] = parseInt(e.NeighborIds[n], 10) : "number" == typeof e.NeighborIds[n] ? t.NeighborIds[n] = e.NeighborIds[n] : "object" == typeof e.NeighborIds[n] && (t.NeighborIds[n] = new i.LongBits(e.NeighborIds[n].low >>> 0, e.NeighborIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.BlockIds = [], n.Monster = [], n.NeighborIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.RewardCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RewardCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Score = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.BlockIds && e.BlockIds.length) {
                    n.BlockIds = [];
                    for (var r = 0; r < e.BlockIds.length; ++r) "number" == typeof e.BlockIds[r] ? n.BlockIds[r] = t.longs === String ? String(e.BlockIds[r]) : e.BlockIds[r] : n.BlockIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.BlockIds[r]) : t.longs === Number ? new i.LongBits(e.BlockIds[r].low >>> 0, e.BlockIds[r].high >>> 0).toNumber() : e.BlockIds[r]
                }
                if (e.Monster && e.Monster.length)
                    for (n.Monster = [], r = 0; r < e.Monster.length; ++r) "number" == typeof e.Monster[r] ? n.Monster[r] = t.longs === String ? String(e.Monster[r]) : e.Monster[r] : n.Monster[r] = t.longs === String ? i.Long.prototype.toString.call(e.Monster[r]) : t.longs === Number ? new i.LongBits(e.Monster[r].low >>> 0, e.Monster[r].high >>> 0).toNumber() : e.Monster[r];
                if (null != e.RewardCount && e.hasOwnProperty("RewardCount") && ("number" == typeof e.RewardCount ? n.RewardCount = t.longs === String ? String(e.RewardCount) : e.RewardCount : n.RewardCount = t.longs === String ? i.Long.prototype.toString.call(e.RewardCount) : t.longs === Number ? new i.LongBits(e.RewardCount.low >>> 0, e.RewardCount.high >>> 0).toNumber() : e.RewardCount), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), e.NeighborIds && e.NeighborIds.length)
                    for (n.NeighborIds = [], r = 0; r < e.NeighborIds.length; ++r) "number" == typeof e.NeighborIds[r] ? n.NeighborIds[r] = t.longs === String ? String(e.NeighborIds[r]) : e.NeighborIds[r] : n.NeighborIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.NeighborIds[r]) : t.longs === Number ? new i.LongBits(e.NeighborIds[r].low >>> 0, e.NeighborIds[r].high >>> 0).toNumber() : e.NeighborIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AssaultOperationResourceItem_Config"
            }, e
        }(), a.AssaultOperationGrid_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = "", e.prototype.OffsetY = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OffsetX = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Scale = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(18).string(e.Icon), null != e.OffsetY && Object.hasOwnProperty.call(e, "OffsetY") && t.uint32(24).int64(e.OffsetY), null != e.OffsetX && Object.hasOwnProperty.call(e, "OffsetX") && t.uint32(32).int64(e.OffsetX), null != e.Scale && Object.hasOwnProperty.call(e, "Scale") && t.uint32(40).int64(e.Scale), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AssaultOperationGrid_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Icon = e.string();
                            break;
                        case 3:
                            r.OffsetY = e.int64();
                            break;
                        case 4:
                            r.OffsetX = e.int64();
                            break;
                        case 5:
                            r.Scale = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null != e.OffsetY && e.hasOwnProperty("OffsetY") && !(i.isInteger(e.OffsetY) || e.OffsetY && i.isInteger(e.OffsetY.low) && i.isInteger(e.OffsetY.high)) ? "OffsetY: integer|Long expected" : null != e.OffsetX && e.hasOwnProperty("OffsetX") && !(i.isInteger(e.OffsetX) || e.OffsetX && i.isInteger(e.OffsetX.low) && i.isInteger(e.OffsetX.high)) ? "OffsetX: integer|Long expected" : null != e.Scale && e.hasOwnProperty("Scale") && !(i.isInteger(e.Scale) || e.Scale && i.isInteger(e.Scale.low) && i.isInteger(e.Scale.high)) ? "Scale: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AssaultOperationGrid_Config) return e;
                var t = new a.AssaultOperationGrid_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Icon && (t.Icon = String(e.Icon)), null != e.OffsetY && (i.Long ? (t.OffsetY = i.Long.fromValue(e.OffsetY)).unsigned = !1 : "string" == typeof e.OffsetY ? t.OffsetY = parseInt(e.OffsetY, 10) : "number" == typeof e.OffsetY ? t.OffsetY = e.OffsetY : "object" == typeof e.OffsetY && (t.OffsetY = new i.LongBits(e.OffsetY.low >>> 0, e.OffsetY.high >>> 0).toNumber())), null != e.OffsetX && (i.Long ? (t.OffsetX = i.Long.fromValue(e.OffsetX)).unsigned = !1 : "string" == typeof e.OffsetX ? t.OffsetX = parseInt(e.OffsetX, 10) : "number" == typeof e.OffsetX ? t.OffsetX = e.OffsetX : "object" == typeof e.OffsetX && (t.OffsetX = new i.LongBits(e.OffsetX.low >>> 0, e.OffsetX.high >>> 0).toNumber())), null != e.Scale && (i.Long ? (t.Scale = i.Long.fromValue(e.Scale)).unsigned = !1 : "string" == typeof e.Scale ? t.Scale = parseInt(e.Scale, 10) : "number" == typeof e.Scale ? t.Scale = e.Scale : "object" == typeof e.Scale && (t.Scale = new i.LongBits(e.Scale.low >>> 0, e.Scale.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.OffsetY = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OffsetY = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.OffsetX = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OffsetX = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Scale = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Scale = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), null != e.OffsetY && e.hasOwnProperty("OffsetY") && ("number" == typeof e.OffsetY ? n.OffsetY = t.longs === String ? String(e.OffsetY) : e.OffsetY : n.OffsetY = t.longs === String ? i.Long.prototype.toString.call(e.OffsetY) : t.longs === Number ? new i.LongBits(e.OffsetY.low >>> 0, e.OffsetY.high >>> 0).toNumber() : e.OffsetY), null != e.OffsetX && e.hasOwnProperty("OffsetX") && ("number" == typeof e.OffsetX ? n.OffsetX = t.longs === String ? String(e.OffsetX) : e.OffsetX : n.OffsetX = t.longs === String ? i.Long.prototype.toString.call(e.OffsetX) : t.longs === Number ? new i.LongBits(e.OffsetX.low >>> 0, e.OffsetX.high >>> 0).toNumber() : e.OffsetX), null != e.Scale && e.hasOwnProperty("Scale") && ("number" == typeof e.Scale ? n.Scale = t.longs === String ? String(e.Scale) : e.Scale : n.Scale = t.longs === String ? i.Long.prototype.toString.call(e.Scale) : t.longs === Number ? new i.LongBits(e.Scale.low >>> 0, e.Scale.high >>> 0).toNumber() : e.Scale), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AssaultOperationGrid_Config"
            }, e
        }(), a.WorldBossBonus_Config = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Param && e.Param.length)
                    for (var n = 0; n < e.Param.length; ++n) a.IntArray_Config.encode(e.Param[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.WorldBossBonus_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Param && r.Param.length || (r.Param = []), r.Param.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Param[t]);
                        if (n) return "Param." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.WorldBossBonus_Config) return e;
                var t = new a.WorldBossBonus_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".WorldBossBonus_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) {
                        if ("object" != typeof e.Param[n]) throw TypeError(".WorldBossBonus_Config.Param: object expected");
                        t.Param[n] = a.IntArray_Config.fromObject(e.Param[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) n.Param[r] = a.IntArray_Config.toObject(e.Param[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/WorldBossBonus_Config"
            }, e
        }(), a.WorldBossRewards_Config = function() {
            function e(e) {
                if (this.Param = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Param && e.Param.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Param.length; ++n) t.int64(e.Param[n]);
                    t.ldelim()
                }
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.IntArray_Config.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.WorldBossRewards_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            if (r.Param && r.Param.length || (r.Param = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Param.push(e.int64());
                            else r.Param.push(e.int64());
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t)
                        if (!(i.isInteger(e.Param[t]) || e.Param[t] && i.isInteger(e.Param[t].low) && i.isInteger(e.Param[t].high))) return "Param: integer|Long[] expected"
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.WorldBossRewards_Config) return e;
                var t = new a.WorldBossRewards_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".WorldBossRewards_Config.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) i.Long ? (t.Param[n] = i.Long.fromValue(e.Param[n])).unsigned = !1 : "string" == typeof e.Param[n] ? t.Param[n] = parseInt(e.Param[n], 10) : "number" == typeof e.Param[n] ? t.Param[n] = e.Param[n] : "object" == typeof e.Param[n] && (t.Param[n] = new i.LongBits(e.Param[n].low >>> 0, e.Param[n].high >>> 0).toNumber())
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".WorldBossRewards_Config.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".WorldBossRewards_Config.Rewards: object expected");
                        t.Rewards[n] = a.IntArray_Config.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = [], n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) "number" == typeof e.Param[r] ? n.Param[r] = t.longs === String ? String(e.Param[r]) : e.Param[r] : n.Param[r] = t.longs === String ? i.Long.prototype.toString.call(e.Param[r]) : t.longs === Number ? new i.LongBits(e.Param[r].low >>> 0, e.Param[r].high >>> 0).toNumber() : e.Param[r]
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.IntArray_Config.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/WorldBossRewards_Config"
            }, e
        }(), a.DailySelection_Config = function() {
            function e(e) {
                if (this.PackIds = [], this.ChooseRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Batch = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PackIds = i.emptyArray, e.prototype.ChooseRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Batch && Object.hasOwnProperty.call(e, "Batch") && t.uint32(16).int64(e.Batch), null != e.PackIds && e.PackIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.PackIds.length; ++n) t.int64(e.PackIds[n]);
                    t.ldelim()
                }
                if (null != e.ChooseRewards && e.ChooseRewards.length)
                    for (n = 0; n < e.ChooseRewards.length; ++n) a.IntArray_Config.encode(e.ChooseRewards[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DailySelection_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Batch = e.int64();
                            break;
                        case 3:
                            if (r.PackIds && r.PackIds.length || (r.PackIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.PackIds.push(e.int64());
                            else r.PackIds.push(e.int64());
                            break;
                        case 4:
                            r.ChooseRewards && r.ChooseRewards.length || (r.ChooseRewards = []), r.ChooseRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Batch && e.hasOwnProperty("Batch") && !(i.isInteger(e.Batch) || e.Batch && i.isInteger(e.Batch.low) && i.isInteger(e.Batch.high))) return "Batch: integer|Long expected";
                if (null != e.PackIds && e.hasOwnProperty("PackIds")) {
                    if (!Array.isArray(e.PackIds)) return "PackIds: array expected";
                    for (var t = 0; t < e.PackIds.length; ++t)
                        if (!(i.isInteger(e.PackIds[t]) || e.PackIds[t] && i.isInteger(e.PackIds[t].low) && i.isInteger(e.PackIds[t].high))) return "PackIds: integer|Long[] expected"
                }
                if (null != e.ChooseRewards && e.hasOwnProperty("ChooseRewards")) {
                    if (!Array.isArray(e.ChooseRewards)) return "ChooseRewards: array expected";
                    for (t = 0; t < e.ChooseRewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.ChooseRewards[t]);
                        if (n) return "ChooseRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.DailySelection_Config) return e;
                var t = new a.DailySelection_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Batch && (i.Long ? (t.Batch = i.Long.fromValue(e.Batch)).unsigned = !1 : "string" == typeof e.Batch ? t.Batch = parseInt(e.Batch, 10) : "number" == typeof e.Batch ? t.Batch = e.Batch : "object" == typeof e.Batch && (t.Batch = new i.LongBits(e.Batch.low >>> 0, e.Batch.high >>> 0).toNumber())), e.PackIds) {
                    if (!Array.isArray(e.PackIds)) throw TypeError(".DailySelection_Config.PackIds: array expected");
                    t.PackIds = [];
                    for (var n = 0; n < e.PackIds.length; ++n) i.Long ? (t.PackIds[n] = i.Long.fromValue(e.PackIds[n])).unsigned = !1 : "string" == typeof e.PackIds[n] ? t.PackIds[n] = parseInt(e.PackIds[n], 10) : "number" == typeof e.PackIds[n] ? t.PackIds[n] = e.PackIds[n] : "object" == typeof e.PackIds[n] && (t.PackIds[n] = new i.LongBits(e.PackIds[n].low >>> 0, e.PackIds[n].high >>> 0).toNumber())
                }
                if (e.ChooseRewards) {
                    if (!Array.isArray(e.ChooseRewards)) throw TypeError(".DailySelection_Config.ChooseRewards: array expected");
                    for (t.ChooseRewards = [], n = 0; n < e.ChooseRewards.length; ++n) {
                        if ("object" != typeof e.ChooseRewards[n]) throw TypeError(".DailySelection_Config.ChooseRewards: object expected");
                        t.ChooseRewards[n] = a.IntArray_Config.fromObject(e.ChooseRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PackIds = [], n.ChooseRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Batch = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Batch = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Batch && e.hasOwnProperty("Batch") && ("number" == typeof e.Batch ? n.Batch = t.longs === String ? String(e.Batch) : e.Batch : n.Batch = t.longs === String ? i.Long.prototype.toString.call(e.Batch) : t.longs === Number ? new i.LongBits(e.Batch.low >>> 0, e.Batch.high >>> 0).toNumber() : e.Batch), e.PackIds && e.PackIds.length) {
                    n.PackIds = [];
                    for (var r = 0; r < e.PackIds.length; ++r) "number" == typeof e.PackIds[r] ? n.PackIds[r] = t.longs === String ? String(e.PackIds[r]) : e.PackIds[r] : n.PackIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.PackIds[r]) : t.longs === Number ? new i.LongBits(e.PackIds[r].low >>> 0, e.PackIds[r].high >>> 0).toNumber() : e.PackIds[r]
                }
                if (e.ChooseRewards && e.ChooseRewards.length)
                    for (n.ChooseRewards = [], r = 0; r < e.ChooseRewards.length; ++r) n.ChooseRewards[r] = a.IntArray_Config.toObject(e.ChooseRewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DailySelection_Config"
            }, e
        }(), a.DailySelectionPack_Config = function() {
            function e(e) {
                if (this.ChooseRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ChooseRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ChooseRewards && e.ChooseRewards.length)
                    for (var n = 0; n < e.ChooseRewards.length; ++n) a.IntArray_Config.encode(e.ChooseRewards[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DailySelectionPack_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.ChooseRewards && r.ChooseRewards.length || (r.ChooseRewards = []), r.ChooseRewards.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.ChooseRewards && e.hasOwnProperty("ChooseRewards")) {
                    if (!Array.isArray(e.ChooseRewards)) return "ChooseRewards: array expected";
                    for (var t = 0; t < e.ChooseRewards.length; ++t) {
                        var n = a.IntArray_Config.verify(e.ChooseRewards[t]);
                        if (n) return "ChooseRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.DailySelectionPack_Config) return e;
                var t = new a.DailySelectionPack_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.ChooseRewards) {
                    if (!Array.isArray(e.ChooseRewards)) throw TypeError(".DailySelectionPack_Config.ChooseRewards: array expected");
                    t.ChooseRewards = [];
                    for (var n = 0; n < e.ChooseRewards.length; ++n) {
                        if ("object" != typeof e.ChooseRewards[n]) throw TypeError(".DailySelectionPack_Config.ChooseRewards: object expected");
                        t.ChooseRewards[n] = a.IntArray_Config.fromObject(e.ChooseRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ChooseRewards = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.ChooseRewards && e.ChooseRewards.length) {
                    n.ChooseRewards = [];
                    for (var r = 0; r < e.ChooseRewards.length; ++r) n.ChooseRewards[r] = a.IntArray_Config.toObject(e.ChooseRewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DailySelectionPack_Config"
            }, e
        }(), a.AJGlobalParam_Config = function() {
            function e(e) {
                if (this.Data = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Data = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Data && e.Data.length)
                    for (var n = 0; n < e.Data.length; ++n) a.IntArray_Config.encode(e.Data[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJGlobalParam_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Data && r.Data.length || (r.Data = []), r.Data.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t) {
                        var n = a.IntArray_Config.verify(e.Data[t]);
                        if (n) return "Data." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJGlobalParam_Config) return e;
                var t = new a.AJGlobalParam_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".AJGlobalParam_Config.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) {
                        if ("object" != typeof e.Data[n]) throw TypeError(".AJGlobalParam_Config.Data: object expected");
                        t.Data[n] = a.IntArray_Config.fromObject(e.Data[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var r = 0; r < e.Data.length; ++r) n.Data[r] = a.IntArray_Config.toObject(e.Data[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJGlobalParam_Config"
            }, e
        }(), a.AJAttribute_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.Icon = "", e.prototype.Format = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Desc = "", e.prototype.InitialValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(26).string(e.Icon), null != e.Format && Object.hasOwnProperty.call(e, "Format") && t.uint32(32).int64(e.Format), null != e.Desc && Object.hasOwnProperty.call(e, "Desc") && t.uint32(42).string(e.Desc), null != e.InitialValue && Object.hasOwnProperty.call(e, "InitialValue") && t.uint32(48).int64(e.InitialValue), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJAttribute_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            r.Icon = e.string();
                            break;
                        case 4:
                            r.Format = e.int64();
                            break;
                        case 5:
                            r.Desc = e.string();
                            break;
                        case 6:
                            r.InitialValue = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.Icon && e.hasOwnProperty("Icon") && !i.isString(e.Icon) ? "Icon: string expected" : null != e.Format && e.hasOwnProperty("Format") && !(i.isInteger(e.Format) || e.Format && i.isInteger(e.Format.low) && i.isInteger(e.Format.high)) ? "Format: integer|Long expected" : null != e.Desc && e.hasOwnProperty("Desc") && !i.isString(e.Desc) ? "Desc: string expected" : null != e.InitialValue && e.hasOwnProperty("InitialValue") && !(i.isInteger(e.InitialValue) || e.InitialValue && i.isInteger(e.InitialValue.low) && i.isInteger(e.InitialValue.high)) ? "InitialValue: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJAttribute_Config) return e;
                var t = new a.AJAttribute_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.Icon && (t.Icon = String(e.Icon)), null != e.Format && (i.Long ? (t.Format = i.Long.fromValue(e.Format)).unsigned = !1 : "string" == typeof e.Format ? t.Format = parseInt(e.Format, 10) : "number" == typeof e.Format ? t.Format = e.Format : "object" == typeof e.Format && (t.Format = new i.LongBits(e.Format.low >>> 0, e.Format.high >>> 0).toNumber())), null != e.Desc && (t.Desc = String(e.Desc)), null != e.InitialValue && (i.Long ? (t.InitialValue = i.Long.fromValue(e.InitialValue)).unsigned = !1 : "string" == typeof e.InitialValue ? t.InitialValue = parseInt(e.InitialValue, 10) : "number" == typeof e.InitialValue ? t.InitialValue = e.InitialValue : "object" == typeof e.InitialValue && (t.InitialValue = new i.LongBits(e.InitialValue.low >>> 0, e.InitialValue.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Name = "", n.Icon = "", i.Long ? (o = new i.Long(0, 0, !1), n.Format = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Format = t.longs === String ? "0" : 0, n.Desc = "", i.Long ? (o = new i.Long(0, 0, !1), n.InitialValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.InitialValue = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Icon && e.hasOwnProperty("Icon") && (n.Icon = e.Icon), null != e.Format && e.hasOwnProperty("Format") && ("number" == typeof e.Format ? n.Format = t.longs === String ? String(e.Format) : e.Format : n.Format = t.longs === String ? i.Long.prototype.toString.call(e.Format) : t.longs === Number ? new i.LongBits(e.Format.low >>> 0, e.Format.high >>> 0).toNumber() : e.Format), null != e.Desc && e.hasOwnProperty("Desc") && (n.Desc = e.Desc), null != e.InitialValue && e.hasOwnProperty("InitialValue") && ("number" == typeof e.InitialValue ? n.InitialValue = t.longs === String ? String(e.InitialValue) : e.InitialValue : n.InitialValue = t.longs === String ? i.Long.prototype.toString.call(e.InitialValue) : t.longs === Number ? new i.LongBits(e.InitialValue.low >>> 0, e.InitialValue.high >>> 0).toNumber() : e.InitialValue), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJAttribute_Config"
            }, e
        }(), a.AJRoleLevel_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Xp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TalentMaxLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Xp && Object.hasOwnProperty.call(e, "Xp") && t.uint32(16).int64(e.Xp), null != e.TalentMaxLevel && Object.hasOwnProperty.call(e, "TalentMaxLevel") && t.uint32(24).int64(e.TalentMaxLevel), null != e.SkillCount && Object.hasOwnProperty.call(e, "SkillCount") && t.uint32(32).int64(e.SkillCount), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJRoleLevel_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Xp = e.int64();
                            break;
                        case 3:
                            r.TalentMaxLevel = e.int64();
                            break;
                        case 4:
                            r.SkillCount = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Xp && e.hasOwnProperty("Xp") && !(i.isInteger(e.Xp) || e.Xp && i.isInteger(e.Xp.low) && i.isInteger(e.Xp.high)) ? "Xp: integer|Long expected" : null != e.TalentMaxLevel && e.hasOwnProperty("TalentMaxLevel") && !(i.isInteger(e.TalentMaxLevel) || e.TalentMaxLevel && i.isInteger(e.TalentMaxLevel.low) && i.isInteger(e.TalentMaxLevel.high)) ? "TalentMaxLevel: integer|Long expected" : null != e.SkillCount && e.hasOwnProperty("SkillCount") && !(i.isInteger(e.SkillCount) || e.SkillCount && i.isInteger(e.SkillCount.low) && i.isInteger(e.SkillCount.high)) ? "SkillCount: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJRoleLevel_Config) return e;
                var t = new a.AJRoleLevel_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Xp && (i.Long ? (t.Xp = i.Long.fromValue(e.Xp)).unsigned = !1 : "string" == typeof e.Xp ? t.Xp = parseInt(e.Xp, 10) : "number" == typeof e.Xp ? t.Xp = e.Xp : "object" == typeof e.Xp && (t.Xp = new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber())), null != e.TalentMaxLevel && (i.Long ? (t.TalentMaxLevel = i.Long.fromValue(e.TalentMaxLevel)).unsigned = !1 : "string" == typeof e.TalentMaxLevel ? t.TalentMaxLevel = parseInt(e.TalentMaxLevel, 10) : "number" == typeof e.TalentMaxLevel ? t.TalentMaxLevel = e.TalentMaxLevel : "object" == typeof e.TalentMaxLevel && (t.TalentMaxLevel = new i.LongBits(e.TalentMaxLevel.low >>> 0, e.TalentMaxLevel.high >>> 0).toNumber())), null != e.SkillCount && (i.Long ? (t.SkillCount = i.Long.fromValue(e.SkillCount)).unsigned = !1 : "string" == typeof e.SkillCount ? t.SkillCount = parseInt(e.SkillCount, 10) : "number" == typeof e.SkillCount ? t.SkillCount = e.SkillCount : "object" == typeof e.SkillCount && (t.SkillCount = new i.LongBits(e.SkillCount.low >>> 0, e.SkillCount.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Xp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Xp = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TalentMaxLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TalentMaxLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkillCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillCount = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Xp && e.hasOwnProperty("Xp") && ("number" == typeof e.Xp ? n.Xp = t.longs === String ? String(e.Xp) : e.Xp : n.Xp = t.longs === String ? i.Long.prototype.toString.call(e.Xp) : t.longs === Number ? new i.LongBits(e.Xp.low >>> 0, e.Xp.high >>> 0).toNumber() : e.Xp), null != e.TalentMaxLevel && e.hasOwnProperty("TalentMaxLevel") && ("number" == typeof e.TalentMaxLevel ? n.TalentMaxLevel = t.longs === String ? String(e.TalentMaxLevel) : e.TalentMaxLevel : n.TalentMaxLevel = t.longs === String ? i.Long.prototype.toString.call(e.TalentMaxLevel) : t.longs === Number ? new i.LongBits(e.TalentMaxLevel.low >>> 0, e.TalentMaxLevel.high >>> 0).toNumber() : e.TalentMaxLevel), null != e.SkillCount && e.hasOwnProperty("SkillCount") && ("number" == typeof e.SkillCount ? n.SkillCount = t.longs === String ? String(e.SkillCount) : e.SkillCount : n.SkillCount = t.longs === String ? i.Long.prototype.toString.call(e.SkillCount) : t.longs === Number ? new i.LongBits(e.SkillCount.low >>> 0, e.SkillCount.high >>> 0).toNumber() : e.SkillCount), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJRoleLevel_Config"
            }, e
        }(), a.AJRoleAdvanced_Config = function() {
            function e(e) {
                if (this.Skills = [], this.InitialAttrs = [], this.LevelAttrs = [], this.StarAttrs = [], this.Material = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Model = "", e.prototype.Desc = "", e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.prototype.InitialAttrs = i.emptyArray, e.prototype.LevelAttrs = i.emptyArray, e.prototype.StarAttrs = i.emptyArray, e.prototype.Material = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(26).string(e.Model), null != e.Desc && Object.hasOwnProperty.call(e, "Desc") && t.uint32(34).string(e.Desc), null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(40).int64(e.Quality), null != e.Skills && e.Skills.length)
                    for (var n = 0; n < e.Skills.length; ++n) a.IntArray_Config.encode(e.Skills[n], t.uint32(50).fork()).ldelim();
                if (null != e.InitialAttrs && e.InitialAttrs.length)
                    for (n = 0; n < e.InitialAttrs.length; ++n) a.IntArray_Config.encode(e.InitialAttrs[n], t.uint32(58).fork()).ldelim();
                if (null != e.LevelAttrs && e.LevelAttrs.length)
                    for (n = 0; n < e.LevelAttrs.length; ++n) a.IntArray_Config.encode(e.LevelAttrs[n], t.uint32(66).fork()).ldelim();
                if (null != e.StarAttrs && e.StarAttrs.length)
                    for (n = 0; n < e.StarAttrs.length; ++n) a.IntArray_Config.encode(e.StarAttrs[n], t.uint32(74).fork()).ldelim();
                if (null != e.Material && e.Material.length)
                    for (n = 0; n < e.Material.length; ++n) a.IntArray_Config.encode(e.Material[n], t.uint32(82).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJRoleAdvanced_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Model = e.string();
                            break;
                        case 4:
                            r.Desc = e.string();
                            break;
                        case 5:
                            r.Quality = e.int64();
                            break;
                        case 6:
                            r.Skills && r.Skills.length || (r.Skills = []), r.Skills.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.InitialAttrs && r.InitialAttrs.length || (r.InitialAttrs = []), r.InitialAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.LevelAttrs && r.LevelAttrs.length || (r.LevelAttrs = []), r.LevelAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 9:
                            r.StarAttrs && r.StarAttrs.length || (r.StarAttrs = []), r.StarAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            r.Material && r.Material.length || (r.Material = []), r.Material.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model)) return "Model: string expected";
                if (null != e.Desc && e.hasOwnProperty("Desc") && !i.isString(e.Desc)) return "Desc: string expected";
                if (null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high))) return "Quality: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (var t = 0; t < e.Skills.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Skills[t])) return "Skills." + n
                }
                if (null != e.InitialAttrs && e.hasOwnProperty("InitialAttrs")) {
                    if (!Array.isArray(e.InitialAttrs)) return "InitialAttrs: array expected";
                    for (t = 0; t < e.InitialAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.InitialAttrs[t])) return "InitialAttrs." + n
                }
                if (null != e.LevelAttrs && e.hasOwnProperty("LevelAttrs")) {
                    if (!Array.isArray(e.LevelAttrs)) return "LevelAttrs: array expected";
                    for (t = 0; t < e.LevelAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LevelAttrs[t])) return "LevelAttrs." + n
                }
                if (null != e.StarAttrs && e.hasOwnProperty("StarAttrs")) {
                    if (!Array.isArray(e.StarAttrs)) return "StarAttrs: array expected";
                    for (t = 0; t < e.StarAttrs.length; ++t)
                        if (n = a.IntArray_Config.verify(e.StarAttrs[t])) return "StarAttrs." + n
                }
                if (null != e.Material && e.hasOwnProperty("Material")) {
                    if (!Array.isArray(e.Material)) return "Material: array expected";
                    for (t = 0; t < e.Material.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Material[t])) return "Material." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJRoleAdvanced_Config) return e;
                var t = new a.AJRoleAdvanced_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Model && (t.Model = String(e.Model)), null != e.Desc && (t.Desc = String(e.Desc)), null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".AJRoleAdvanced_Config.Skills: array expected");
                    t.Skills = [];
                    for (var n = 0; n < e.Skills.length; ++n) {
                        if ("object" != typeof e.Skills[n]) throw TypeError(".AJRoleAdvanced_Config.Skills: object expected");
                        t.Skills[n] = a.IntArray_Config.fromObject(e.Skills[n])
                    }
                }
                if (e.InitialAttrs) {
                    if (!Array.isArray(e.InitialAttrs)) throw TypeError(".AJRoleAdvanced_Config.InitialAttrs: array expected");
                    for (t.InitialAttrs = [], n = 0; n < e.InitialAttrs.length; ++n) {
                        if ("object" != typeof e.InitialAttrs[n]) throw TypeError(".AJRoleAdvanced_Config.InitialAttrs: object expected");
                        t.InitialAttrs[n] = a.IntArray_Config.fromObject(e.InitialAttrs[n])
                    }
                }
                if (e.LevelAttrs) {
                    if (!Array.isArray(e.LevelAttrs)) throw TypeError(".AJRoleAdvanced_Config.LevelAttrs: array expected");
                    for (t.LevelAttrs = [], n = 0; n < e.LevelAttrs.length; ++n) {
                        if ("object" != typeof e.LevelAttrs[n]) throw TypeError(".AJRoleAdvanced_Config.LevelAttrs: object expected");
                        t.LevelAttrs[n] = a.IntArray_Config.fromObject(e.LevelAttrs[n])
                    }
                }
                if (e.StarAttrs) {
                    if (!Array.isArray(e.StarAttrs)) throw TypeError(".AJRoleAdvanced_Config.StarAttrs: array expected");
                    for (t.StarAttrs = [], n = 0; n < e.StarAttrs.length; ++n) {
                        if ("object" != typeof e.StarAttrs[n]) throw TypeError(".AJRoleAdvanced_Config.StarAttrs: object expected");
                        t.StarAttrs[n] = a.IntArray_Config.fromObject(e.StarAttrs[n])
                    }
                }
                if (e.Material) {
                    if (!Array.isArray(e.Material)) throw TypeError(".AJRoleAdvanced_Config.Material: array expected");
                    for (t.Material = [], n = 0; n < e.Material.length; ++n) {
                        if ("object" != typeof e.Material[n]) throw TypeError(".AJRoleAdvanced_Config.Material: object expected");
                        t.Material[n] = a.IntArray_Config.fromObject(e.Material[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Skills = [], n.InitialAttrs = [], n.LevelAttrs = [], n.StarAttrs = [], n.Material = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Model = "", n.Desc = "", i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), null != e.Desc && e.hasOwnProperty("Desc") && (n.Desc = e.Desc), null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), e.Skills && e.Skills.length) {
                    n.Skills = [];
                    for (var r = 0; r < e.Skills.length; ++r) n.Skills[r] = a.IntArray_Config.toObject(e.Skills[r], t)
                }
                if (e.InitialAttrs && e.InitialAttrs.length)
                    for (n.InitialAttrs = [], r = 0; r < e.InitialAttrs.length; ++r) n.InitialAttrs[r] = a.IntArray_Config.toObject(e.InitialAttrs[r], t);
                if (e.LevelAttrs && e.LevelAttrs.length)
                    for (n.LevelAttrs = [], r = 0; r < e.LevelAttrs.length; ++r) n.LevelAttrs[r] = a.IntArray_Config.toObject(e.LevelAttrs[r], t);
                if (e.StarAttrs && e.StarAttrs.length)
                    for (n.StarAttrs = [], r = 0; r < e.StarAttrs.length; ++r) n.StarAttrs[r] = a.IntArray_Config.toObject(e.StarAttrs[r], t);
                if (e.Material && e.Material.length)
                    for (n.Material = [], r = 0; r < e.Material.length; ++r) n.Material[r] = a.IntArray_Config.toObject(e.Material[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJRoleAdvanced_Config"
            }, e
        }(), a.AJRoleTalent_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attr1 = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attr2 = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attr3 = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Material = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Attr1 && Object.hasOwnProperty.call(e, "Attr1") && t.uint32(16).int64(e.Attr1), null != e.Attr2 && Object.hasOwnProperty.call(e, "Attr2") && t.uint32(24).int64(e.Attr2), null != e.Attr3 && Object.hasOwnProperty.call(e, "Attr3") && t.uint32(32).int64(e.Attr3), null != e.Material && Object.hasOwnProperty.call(e, "Material") && t.uint32(40).int64(e.Material), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJRoleTalent_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Attr1 = e.int64();
                            break;
                        case 3:
                            r.Attr2 = e.int64();
                            break;
                        case 4:
                            r.Attr3 = e.int64();
                            break;
                        case 5:
                            r.Material = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Attr1 && e.hasOwnProperty("Attr1") && !(i.isInteger(e.Attr1) || e.Attr1 && i.isInteger(e.Attr1.low) && i.isInteger(e.Attr1.high)) ? "Attr1: integer|Long expected" : null != e.Attr2 && e.hasOwnProperty("Attr2") && !(i.isInteger(e.Attr2) || e.Attr2 && i.isInteger(e.Attr2.low) && i.isInteger(e.Attr2.high)) ? "Attr2: integer|Long expected" : null != e.Attr3 && e.hasOwnProperty("Attr3") && !(i.isInteger(e.Attr3) || e.Attr3 && i.isInteger(e.Attr3.low) && i.isInteger(e.Attr3.high)) ? "Attr3: integer|Long expected" : null != e.Material && e.hasOwnProperty("Material") && !(i.isInteger(e.Material) || e.Material && i.isInteger(e.Material.low) && i.isInteger(e.Material.high)) ? "Material: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJRoleTalent_Config) return e;
                var t = new a.AJRoleTalent_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Attr1 && (i.Long ? (t.Attr1 = i.Long.fromValue(e.Attr1)).unsigned = !1 : "string" == typeof e.Attr1 ? t.Attr1 = parseInt(e.Attr1, 10) : "number" == typeof e.Attr1 ? t.Attr1 = e.Attr1 : "object" == typeof e.Attr1 && (t.Attr1 = new i.LongBits(e.Attr1.low >>> 0, e.Attr1.high >>> 0).toNumber())), null != e.Attr2 && (i.Long ? (t.Attr2 = i.Long.fromValue(e.Attr2)).unsigned = !1 : "string" == typeof e.Attr2 ? t.Attr2 = parseInt(e.Attr2, 10) : "number" == typeof e.Attr2 ? t.Attr2 = e.Attr2 : "object" == typeof e.Attr2 && (t.Attr2 = new i.LongBits(e.Attr2.low >>> 0, e.Attr2.high >>> 0).toNumber())), null != e.Attr3 && (i.Long ? (t.Attr3 = i.Long.fromValue(e.Attr3)).unsigned = !1 : "string" == typeof e.Attr3 ? t.Attr3 = parseInt(e.Attr3, 10) : "number" == typeof e.Attr3 ? t.Attr3 = e.Attr3 : "object" == typeof e.Attr3 && (t.Attr3 = new i.LongBits(e.Attr3.low >>> 0, e.Attr3.high >>> 0).toNumber())), null != e.Material && (i.Long ? (t.Material = i.Long.fromValue(e.Material)).unsigned = !1 : "string" == typeof e.Material ? t.Material = parseInt(e.Material, 10) : "number" == typeof e.Material ? t.Material = e.Material : "object" == typeof e.Material && (t.Material = new i.LongBits(e.Material.low >>> 0, e.Material.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Attr1 = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Attr1 = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Attr2 = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Attr2 = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Attr3 = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Attr3 = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Material = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Material = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Attr1 && e.hasOwnProperty("Attr1") && ("number" == typeof e.Attr1 ? n.Attr1 = t.longs === String ? String(e.Attr1) : e.Attr1 : n.Attr1 = t.longs === String ? i.Long.prototype.toString.call(e.Attr1) : t.longs === Number ? new i.LongBits(e.Attr1.low >>> 0, e.Attr1.high >>> 0).toNumber() : e.Attr1), null != e.Attr2 && e.hasOwnProperty("Attr2") && ("number" == typeof e.Attr2 ? n.Attr2 = t.longs === String ? String(e.Attr2) : e.Attr2 : n.Attr2 = t.longs === String ? i.Long.prototype.toString.call(e.Attr2) : t.longs === Number ? new i.LongBits(e.Attr2.low >>> 0, e.Attr2.high >>> 0).toNumber() : e.Attr2), null != e.Attr3 && e.hasOwnProperty("Attr3") && ("number" == typeof e.Attr3 ? n.Attr3 = t.longs === String ? String(e.Attr3) : e.Attr3 : n.Attr3 = t.longs === String ? i.Long.prototype.toString.call(e.Attr3) : t.longs === Number ? new i.LongBits(e.Attr3.low >>> 0, e.Attr3.high >>> 0).toNumber() : e.Attr3), null != e.Material && e.hasOwnProperty("Material") && ("number" == typeof e.Material ? n.Material = t.longs === String ? String(e.Material) : e.Material : n.Material = t.longs === String ? i.Long.prototype.toString.call(e.Material) : t.longs === Number ? new i.LongBits(e.Material.low >>> 0, e.Material.high >>> 0).toNumber() : e.Material), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJRoleTalent_Config"
            }, e
        }(), a.AJRandomSkill_Config = function() {
            function e(e) {
                if (this.UnlockLevel = [], this.AddtionAttrs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UnlockLevel = i.emptyArray, e.prototype.Weight = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AddtionAttrs = i.emptyArray, e.prototype.Quality = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillIcon = "", e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.UnlockLevel && e.UnlockLevel.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.UnlockLevel.length; ++n) t.int64(e.UnlockLevel[n]);
                    t.ldelim()
                }
                if (null != e.Weight && Object.hasOwnProperty.call(e, "Weight") && t.uint32(32).int64(e.Weight), null != e.AddtionAttrs && e.AddtionAttrs.length)
                    for (n = 0; n < e.AddtionAttrs.length; ++n) a.IntArray_Config.encode(e.AddtionAttrs[n], t.uint32(42).fork()).ldelim();
                return null != e.Quality && Object.hasOwnProperty.call(e, "Quality") && t.uint32(48).int64(e.Quality), null != e.SkillIcon && Object.hasOwnProperty.call(e, "SkillIcon") && t.uint32(58).string(e.SkillIcon), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(64).int64(e.StarLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJRandomSkill_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            if (r.UnlockLevel && r.UnlockLevel.length || (r.UnlockLevel = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.UnlockLevel.push(e.int64());
                            else r.UnlockLevel.push(e.int64());
                            break;
                        case 4:
                            r.Weight = e.int64();
                            break;
                        case 5:
                            r.AddtionAttrs && r.AddtionAttrs.length || (r.AddtionAttrs = []), r.AddtionAttrs.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.Quality = e.int64();
                            break;
                        case 7:
                            r.SkillIcon = e.string();
                            break;
                        case 8:
                            r.StarLevel = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.UnlockLevel && e.hasOwnProperty("UnlockLevel")) {
                    if (!Array.isArray(e.UnlockLevel)) return "UnlockLevel: array expected";
                    for (var t = 0; t < e.UnlockLevel.length; ++t)
                        if (!(i.isInteger(e.UnlockLevel[t]) || e.UnlockLevel[t] && i.isInteger(e.UnlockLevel[t].low) && i.isInteger(e.UnlockLevel[t].high))) return "UnlockLevel: integer|Long[] expected"
                }
                if (null != e.Weight && e.hasOwnProperty("Weight") && !(i.isInteger(e.Weight) || e.Weight && i.isInteger(e.Weight.low) && i.isInteger(e.Weight.high))) return "Weight: integer|Long expected";
                if (null != e.AddtionAttrs && e.hasOwnProperty("AddtionAttrs")) {
                    if (!Array.isArray(e.AddtionAttrs)) return "AddtionAttrs: array expected";
                    for (t = 0; t < e.AddtionAttrs.length; ++t) {
                        var n = a.IntArray_Config.verify(e.AddtionAttrs[t]);
                        if (n) return "AddtionAttrs." + n
                    }
                }
                return null != e.Quality && e.hasOwnProperty("Quality") && !(i.isInteger(e.Quality) || e.Quality && i.isInteger(e.Quality.low) && i.isInteger(e.Quality.high)) ? "Quality: integer|Long expected" : null != e.SkillIcon && e.hasOwnProperty("SkillIcon") && !i.isString(e.SkillIcon) ? "SkillIcon: string expected" : null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high)) ? "StarLevel: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJRandomSkill_Config) return e;
                var t = new a.AJRandomSkill_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.UnlockLevel) {
                    if (!Array.isArray(e.UnlockLevel)) throw TypeError(".AJRandomSkill_Config.UnlockLevel: array expected");
                    t.UnlockLevel = [];
                    for (var n = 0; n < e.UnlockLevel.length; ++n) i.Long ? (t.UnlockLevel[n] = i.Long.fromValue(e.UnlockLevel[n])).unsigned = !1 : "string" == typeof e.UnlockLevel[n] ? t.UnlockLevel[n] = parseInt(e.UnlockLevel[n], 10) : "number" == typeof e.UnlockLevel[n] ? t.UnlockLevel[n] = e.UnlockLevel[n] : "object" == typeof e.UnlockLevel[n] && (t.UnlockLevel[n] = new i.LongBits(e.UnlockLevel[n].low >>> 0, e.UnlockLevel[n].high >>> 0).toNumber())
                }
                if (null != e.Weight && (i.Long ? (t.Weight = i.Long.fromValue(e.Weight)).unsigned = !1 : "string" == typeof e.Weight ? t.Weight = parseInt(e.Weight, 10) : "number" == typeof e.Weight ? t.Weight = e.Weight : "object" == typeof e.Weight && (t.Weight = new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber())), e.AddtionAttrs) {
                    if (!Array.isArray(e.AddtionAttrs)) throw TypeError(".AJRandomSkill_Config.AddtionAttrs: array expected");
                    for (t.AddtionAttrs = [], n = 0; n < e.AddtionAttrs.length; ++n) {
                        if ("object" != typeof e.AddtionAttrs[n]) throw TypeError(".AJRandomSkill_Config.AddtionAttrs: object expected");
                        t.AddtionAttrs[n] = a.IntArray_Config.fromObject(e.AddtionAttrs[n])
                    }
                }
                return null != e.Quality && (i.Long ? (t.Quality = i.Long.fromValue(e.Quality)).unsigned = !1 : "string" == typeof e.Quality ? t.Quality = parseInt(e.Quality, 10) : "number" == typeof e.Quality ? t.Quality = e.Quality : "object" == typeof e.Quality && (t.Quality = new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber())), null != e.SkillIcon && (t.SkillIcon = String(e.SkillIcon)), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.UnlockLevel = [], n.AddtionAttrs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Weight = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Weight = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Quality = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Quality = t.longs === String ? "0" : 0, n.SkillIcon = "", i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.UnlockLevel && e.UnlockLevel.length) {
                    n.UnlockLevel = [];
                    for (var r = 0; r < e.UnlockLevel.length; ++r) "number" == typeof e.UnlockLevel[r] ? n.UnlockLevel[r] = t.longs === String ? String(e.UnlockLevel[r]) : e.UnlockLevel[r] : n.UnlockLevel[r] = t.longs === String ? i.Long.prototype.toString.call(e.UnlockLevel[r]) : t.longs === Number ? new i.LongBits(e.UnlockLevel[r].low >>> 0, e.UnlockLevel[r].high >>> 0).toNumber() : e.UnlockLevel[r]
                }
                if (null != e.Weight && e.hasOwnProperty("Weight") && ("number" == typeof e.Weight ? n.Weight = t.longs === String ? String(e.Weight) : e.Weight : n.Weight = t.longs === String ? i.Long.prototype.toString.call(e.Weight) : t.longs === Number ? new i.LongBits(e.Weight.low >>> 0, e.Weight.high >>> 0).toNumber() : e.Weight), e.AddtionAttrs && e.AddtionAttrs.length)
                    for (n.AddtionAttrs = [], r = 0; r < e.AddtionAttrs.length; ++r) n.AddtionAttrs[r] = a.IntArray_Config.toObject(e.AddtionAttrs[r], t);
                return null != e.Quality && e.hasOwnProperty("Quality") && ("number" == typeof e.Quality ? n.Quality = t.longs === String ? String(e.Quality) : e.Quality : n.Quality = t.longs === String ? i.Long.prototype.toString.call(e.Quality) : t.longs === Number ? new i.LongBits(e.Quality.low >>> 0, e.Quality.high >>> 0).toNumber() : e.Quality), null != e.SkillIcon && e.hasOwnProperty("SkillIcon") && (n.SkillIcon = e.SkillIcon), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJRandomSkill_Config"
            }, e
        }(), a.AJMap_Config = function() {
            function e(e) {
                if (this.UnLockCondition = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SceneID = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Banner = "", e.prototype.UnLockCondition = i.emptyArray, e.prototype.Energy = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaxDay = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Difficulty = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CoinAddition = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ExpAddition = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.SceneID && Object.hasOwnProperty.call(e, "SceneID") && t.uint32(24).int64(e.SceneID), null != e.Banner && Object.hasOwnProperty.call(e, "Banner") && t.uint32(34).string(e.Banner), null != e.UnLockCondition && e.UnLockCondition.length) {
                    t.uint32(42).fork();
                    for (var n = 0; n < e.UnLockCondition.length; ++n) t.int64(e.UnLockCondition[n]);
                    t.ldelim()
                }
                return null != e.Energy && Object.hasOwnProperty.call(e, "Energy") && t.uint32(48).int64(e.Energy), null != e.MaxDay && Object.hasOwnProperty.call(e, "MaxDay") && t.uint32(56).int64(e.MaxDay), null != e.Difficulty && Object.hasOwnProperty.call(e, "Difficulty") && t.uint32(64).int64(e.Difficulty), null != e.CoinAddition && Object.hasOwnProperty.call(e, "CoinAddition") && t.uint32(72).int64(e.CoinAddition), null != e.ExpAddition && Object.hasOwnProperty.call(e, "ExpAddition") && t.uint32(80).int64(e.ExpAddition), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJMap_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.SceneID = e.int64();
                            break;
                        case 4:
                            r.Banner = e.string();
                            break;
                        case 5:
                            if (r.UnLockCondition && r.UnLockCondition.length || (r.UnLockCondition = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.UnLockCondition.push(e.int64());
                            else r.UnLockCondition.push(e.int64());
                            break;
                        case 6:
                            r.Energy = e.int64();
                            break;
                        case 7:
                            r.MaxDay = e.int64();
                            break;
                        case 8:
                            r.Difficulty = e.int64();
                            break;
                        case 9:
                            r.CoinAddition = e.int64();
                            break;
                        case 10:
                            r.ExpAddition = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.SceneID && e.hasOwnProperty("SceneID") && !(i.isInteger(e.SceneID) || e.SceneID && i.isInteger(e.SceneID.low) && i.isInteger(e.SceneID.high))) return "SceneID: integer|Long expected";
                if (null != e.Banner && e.hasOwnProperty("Banner") && !i.isString(e.Banner)) return "Banner: string expected";
                if (null != e.UnLockCondition && e.hasOwnProperty("UnLockCondition")) {
                    if (!Array.isArray(e.UnLockCondition)) return "UnLockCondition: array expected";
                    for (var t = 0; t < e.UnLockCondition.length; ++t)
                        if (!(i.isInteger(e.UnLockCondition[t]) || e.UnLockCondition[t] && i.isInteger(e.UnLockCondition[t].low) && i.isInteger(e.UnLockCondition[t].high))) return "UnLockCondition: integer|Long[] expected"
                }
                return null != e.Energy && e.hasOwnProperty("Energy") && !(i.isInteger(e.Energy) || e.Energy && i.isInteger(e.Energy.low) && i.isInteger(e.Energy.high)) ? "Energy: integer|Long expected" : null != e.MaxDay && e.hasOwnProperty("MaxDay") && !(i.isInteger(e.MaxDay) || e.MaxDay && i.isInteger(e.MaxDay.low) && i.isInteger(e.MaxDay.high)) ? "MaxDay: integer|Long expected" : null != e.Difficulty && e.hasOwnProperty("Difficulty") && !(i.isInteger(e.Difficulty) || e.Difficulty && i.isInteger(e.Difficulty.low) && i.isInteger(e.Difficulty.high)) ? "Difficulty: integer|Long expected" : null != e.CoinAddition && e.hasOwnProperty("CoinAddition") && !(i.isInteger(e.CoinAddition) || e.CoinAddition && i.isInteger(e.CoinAddition.low) && i.isInteger(e.CoinAddition.high)) ? "CoinAddition: integer|Long expected" : null != e.ExpAddition && e.hasOwnProperty("ExpAddition") && !(i.isInteger(e.ExpAddition) || e.ExpAddition && i.isInteger(e.ExpAddition.low) && i.isInteger(e.ExpAddition.high)) ? "ExpAddition: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJMap_Config) return e;
                var t = new a.AJMap_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.SceneID && (i.Long ? (t.SceneID = i.Long.fromValue(e.SceneID)).unsigned = !1 : "string" == typeof e.SceneID ? t.SceneID = parseInt(e.SceneID, 10) : "number" == typeof e.SceneID ? t.SceneID = e.SceneID : "object" == typeof e.SceneID && (t.SceneID = new i.LongBits(e.SceneID.low >>> 0, e.SceneID.high >>> 0).toNumber())), null != e.Banner && (t.Banner = String(e.Banner)), e.UnLockCondition) {
                    if (!Array.isArray(e.UnLockCondition)) throw TypeError(".AJMap_Config.UnLockCondition: array expected");
                    t.UnLockCondition = [];
                    for (var n = 0; n < e.UnLockCondition.length; ++n) i.Long ? (t.UnLockCondition[n] = i.Long.fromValue(e.UnLockCondition[n])).unsigned = !1 : "string" == typeof e.UnLockCondition[n] ? t.UnLockCondition[n] = parseInt(e.UnLockCondition[n], 10) : "number" == typeof e.UnLockCondition[n] ? t.UnLockCondition[n] = e.UnLockCondition[n] : "object" == typeof e.UnLockCondition[n] && (t.UnLockCondition[n] = new i.LongBits(e.UnLockCondition[n].low >>> 0, e.UnLockCondition[n].high >>> 0).toNumber())
                }
                return null != e.Energy && (i.Long ? (t.Energy = i.Long.fromValue(e.Energy)).unsigned = !1 : "string" == typeof e.Energy ? t.Energy = parseInt(e.Energy, 10) : "number" == typeof e.Energy ? t.Energy = e.Energy : "object" == typeof e.Energy && (t.Energy = new i.LongBits(e.Energy.low >>> 0, e.Energy.high >>> 0).toNumber())), null != e.MaxDay && (i.Long ? (t.MaxDay = i.Long.fromValue(e.MaxDay)).unsigned = !1 : "string" == typeof e.MaxDay ? t.MaxDay = parseInt(e.MaxDay, 10) : "number" == typeof e.MaxDay ? t.MaxDay = e.MaxDay : "object" == typeof e.MaxDay && (t.MaxDay = new i.LongBits(e.MaxDay.low >>> 0, e.MaxDay.high >>> 0).toNumber())), null != e.Difficulty && (i.Long ? (t.Difficulty = i.Long.fromValue(e.Difficulty)).unsigned = !1 : "string" == typeof e.Difficulty ? t.Difficulty = parseInt(e.Difficulty, 10) : "number" == typeof e.Difficulty ? t.Difficulty = e.Difficulty : "object" == typeof e.Difficulty && (t.Difficulty = new i.LongBits(e.Difficulty.low >>> 0, e.Difficulty.high >>> 0).toNumber())), null != e.CoinAddition && (i.Long ? (t.CoinAddition = i.Long.fromValue(e.CoinAddition)).unsigned = !1 : "string" == typeof e.CoinAddition ? t.CoinAddition = parseInt(e.CoinAddition, 10) : "number" == typeof e.CoinAddition ? t.CoinAddition = e.CoinAddition : "object" == typeof e.CoinAddition && (t.CoinAddition = new i.LongBits(e.CoinAddition.low >>> 0, e.CoinAddition.high >>> 0).toNumber())), null != e.ExpAddition && (i.Long ? (t.ExpAddition = i.Long.fromValue(e.ExpAddition)).unsigned = !1 : "string" == typeof e.ExpAddition ? t.ExpAddition = parseInt(e.ExpAddition, 10) : "number" == typeof e.ExpAddition ? t.ExpAddition = e.ExpAddition : "object" == typeof e.ExpAddition && (t.ExpAddition = new i.LongBits(e.ExpAddition.low >>> 0, e.ExpAddition.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.UnLockCondition = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SceneID = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SceneID = t.longs === String ? "0" : 0, n.Banner = "", i.Long ? (o = new i.Long(0, 0, !1), n.Energy = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Energy = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MaxDay = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MaxDay = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Difficulty = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Difficulty = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.CoinAddition = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CoinAddition = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ExpAddition = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ExpAddition = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.SceneID && e.hasOwnProperty("SceneID") && ("number" == typeof e.SceneID ? n.SceneID = t.longs === String ? String(e.SceneID) : e.SceneID : n.SceneID = t.longs === String ? i.Long.prototype.toString.call(e.SceneID) : t.longs === Number ? new i.LongBits(e.SceneID.low >>> 0, e.SceneID.high >>> 0).toNumber() : e.SceneID), null != e.Banner && e.hasOwnProperty("Banner") && (n.Banner = e.Banner), e.UnLockCondition && e.UnLockCondition.length) {
                    n.UnLockCondition = [];
                    for (var r = 0; r < e.UnLockCondition.length; ++r) "number" == typeof e.UnLockCondition[r] ? n.UnLockCondition[r] = t.longs === String ? String(e.UnLockCondition[r]) : e.UnLockCondition[r] : n.UnLockCondition[r] = t.longs === String ? i.Long.prototype.toString.call(e.UnLockCondition[r]) : t.longs === Number ? new i.LongBits(e.UnLockCondition[r].low >>> 0, e.UnLockCondition[r].high >>> 0).toNumber() : e.UnLockCondition[r]
                }
                return null != e.Energy && e.hasOwnProperty("Energy") && ("number" == typeof e.Energy ? n.Energy = t.longs === String ? String(e.Energy) : e.Energy : n.Energy = t.longs === String ? i.Long.prototype.toString.call(e.Energy) : t.longs === Number ? new i.LongBits(e.Energy.low >>> 0, e.Energy.high >>> 0).toNumber() : e.Energy), null != e.MaxDay && e.hasOwnProperty("MaxDay") && ("number" == typeof e.MaxDay ? n.MaxDay = t.longs === String ? String(e.MaxDay) : e.MaxDay : n.MaxDay = t.longs === String ? i.Long.prototype.toString.call(e.MaxDay) : t.longs === Number ? new i.LongBits(e.MaxDay.low >>> 0, e.MaxDay.high >>> 0).toNumber() : e.MaxDay), null != e.Difficulty && e.hasOwnProperty("Difficulty") && ("number" == typeof e.Difficulty ? n.Difficulty = t.longs === String ? String(e.Difficulty) : e.Difficulty : n.Difficulty = t.longs === String ? i.Long.prototype.toString.call(e.Difficulty) : t.longs === Number ? new i.LongBits(e.Difficulty.low >>> 0, e.Difficulty.high >>> 0).toNumber() : e.Difficulty), null != e.CoinAddition && e.hasOwnProperty("CoinAddition") && ("number" == typeof e.CoinAddition ? n.CoinAddition = t.longs === String ? String(e.CoinAddition) : e.CoinAddition : n.CoinAddition = t.longs === String ? i.Long.prototype.toString.call(e.CoinAddition) : t.longs === Number ? new i.LongBits(e.CoinAddition.low >>> 0, e.CoinAddition.high >>> 0).toNumber() : e.CoinAddition), null != e.ExpAddition && e.hasOwnProperty("ExpAddition") && ("number" == typeof e.ExpAddition ? n.ExpAddition = t.longs === String ? String(e.ExpAddition) : e.ExpAddition : n.ExpAddition = t.longs === String ? i.Long.prototype.toString.call(e.ExpAddition) : t.longs === Number ? new i.LongBits(e.ExpAddition.low >>> 0, e.ExpAddition.high >>> 0).toNumber() : e.ExpAddition), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJMap_Config"
            }, e
        }(), a.AJEvent_Config = function() {
            function e(e) {
                if (this.EventParam = [], this.EventBtnColors = [], this.EventBtn1Effect = [], this.EventBtn2Effect = [], this.AfterEventEffect = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EventType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EventTag = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EventParam = i.emptyArray, e.prototype.EventBtnColors = i.emptyArray, e.prototype.EventBtn1Effect = i.emptyArray, e.prototype.EventBtn2Effect = i.emptyArray, e.prototype.AfterEventEffect = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.EventType && Object.hasOwnProperty.call(e, "EventType") && t.uint32(16).int64(e.EventType), null != e.EventTag && Object.hasOwnProperty.call(e, "EventTag") && t.uint32(24).int64(e.EventTag), null != e.EventParam && e.EventParam.length)
                    for (var n = 0; n < e.EventParam.length; ++n) a.IntArray_Config.encode(e.EventParam[n], t.uint32(34).fork()).ldelim();
                if (null != e.EventBtnColors && e.EventBtnColors.length) {
                    for (t.uint32(82).fork(), n = 0; n < e.EventBtnColors.length; ++n) t.int64(e.EventBtnColors[n]);
                    t.ldelim()
                }
                if (null != e.EventBtn1Effect && e.EventBtn1Effect.length)
                    for (n = 0; n < e.EventBtn1Effect.length; ++n) a.IntArray_Config.encode(e.EventBtn1Effect[n], t.uint32(90).fork()).ldelim();
                if (null != e.EventBtn2Effect && e.EventBtn2Effect.length)
                    for (n = 0; n < e.EventBtn2Effect.length; ++n) a.IntArray_Config.encode(e.EventBtn2Effect[n], t.uint32(98).fork()).ldelim();
                if (null != e.AfterEventEffect && e.AfterEventEffect.length)
                    for (n = 0; n < e.AfterEventEffect.length; ++n) a.IntArray_Config.encode(e.AfterEventEffect[n], t.uint32(106).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJEvent_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.EventType = e.int64();
                            break;
                        case 3:
                            r.EventTag = e.int64();
                            break;
                        case 4:
                            r.EventParam && r.EventParam.length || (r.EventParam = []), r.EventParam.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 10:
                            if (r.EventBtnColors && r.EventBtnColors.length || (r.EventBtnColors = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.EventBtnColors.push(e.int64());
                            else r.EventBtnColors.push(e.int64());
                            break;
                        case 11:
                            r.EventBtn1Effect && r.EventBtn1Effect.length || (r.EventBtn1Effect = []), r.EventBtn1Effect.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 12:
                            r.EventBtn2Effect && r.EventBtn2Effect.length || (r.EventBtn2Effect = []), r.EventBtn2Effect.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 13:
                            r.AfterEventEffect && r.AfterEventEffect.length || (r.AfterEventEffect = []), r.AfterEventEffect.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.EventType && e.hasOwnProperty("EventType") && !(i.isInteger(e.EventType) || e.EventType && i.isInteger(e.EventType.low) && i.isInteger(e.EventType.high))) return "EventType: integer|Long expected";
                if (null != e.EventTag && e.hasOwnProperty("EventTag") && !(i.isInteger(e.EventTag) || e.EventTag && i.isInteger(e.EventTag.low) && i.isInteger(e.EventTag.high))) return "EventTag: integer|Long expected";
                if (null != e.EventParam && e.hasOwnProperty("EventParam")) {
                    if (!Array.isArray(e.EventParam)) return "EventParam: array expected";
                    for (var t = 0; t < e.EventParam.length; ++t)
                        if (n = a.IntArray_Config.verify(e.EventParam[t])) return "EventParam." + n
                }
                if (null != e.EventBtnColors && e.hasOwnProperty("EventBtnColors")) {
                    if (!Array.isArray(e.EventBtnColors)) return "EventBtnColors: array expected";
                    for (t = 0; t < e.EventBtnColors.length; ++t)
                        if (!(i.isInteger(e.EventBtnColors[t]) || e.EventBtnColors[t] && i.isInteger(e.EventBtnColors[t].low) && i.isInteger(e.EventBtnColors[t].high))) return "EventBtnColors: integer|Long[] expected"
                }
                if (null != e.EventBtn1Effect && e.hasOwnProperty("EventBtn1Effect")) {
                    if (!Array.isArray(e.EventBtn1Effect)) return "EventBtn1Effect: array expected";
                    for (t = 0; t < e.EventBtn1Effect.length; ++t)
                        if (n = a.IntArray_Config.verify(e.EventBtn1Effect[t])) return "EventBtn1Effect." + n
                }
                if (null != e.EventBtn2Effect && e.hasOwnProperty("EventBtn2Effect")) {
                    if (!Array.isArray(e.EventBtn2Effect)) return "EventBtn2Effect: array expected";
                    for (t = 0; t < e.EventBtn2Effect.length; ++t)
                        if (n = a.IntArray_Config.verify(e.EventBtn2Effect[t])) return "EventBtn2Effect." + n
                }
                if (null != e.AfterEventEffect && e.hasOwnProperty("AfterEventEffect")) {
                    if (!Array.isArray(e.AfterEventEffect)) return "AfterEventEffect: array expected";
                    for (t = 0; t < e.AfterEventEffect.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.AfterEventEffect[t])) return "AfterEventEffect." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJEvent_Config) return e;
                var t = new a.AJEvent_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.EventType && (i.Long ? (t.EventType = i.Long.fromValue(e.EventType)).unsigned = !1 : "string" == typeof e.EventType ? t.EventType = parseInt(e.EventType, 10) : "number" == typeof e.EventType ? t.EventType = e.EventType : "object" == typeof e.EventType && (t.EventType = new i.LongBits(e.EventType.low >>> 0, e.EventType.high >>> 0).toNumber())), null != e.EventTag && (i.Long ? (t.EventTag = i.Long.fromValue(e.EventTag)).unsigned = !1 : "string" == typeof e.EventTag ? t.EventTag = parseInt(e.EventTag, 10) : "number" == typeof e.EventTag ? t.EventTag = e.EventTag : "object" == typeof e.EventTag && (t.EventTag = new i.LongBits(e.EventTag.low >>> 0, e.EventTag.high >>> 0).toNumber())), e.EventParam) {
                    if (!Array.isArray(e.EventParam)) throw TypeError(".AJEvent_Config.EventParam: array expected");
                    t.EventParam = [];
                    for (var n = 0; n < e.EventParam.length; ++n) {
                        if ("object" != typeof e.EventParam[n]) throw TypeError(".AJEvent_Config.EventParam: object expected");
                        t.EventParam[n] = a.IntArray_Config.fromObject(e.EventParam[n])
                    }
                }
                if (e.EventBtnColors) {
                    if (!Array.isArray(e.EventBtnColors)) throw TypeError(".AJEvent_Config.EventBtnColors: array expected");
                    for (t.EventBtnColors = [], n = 0; n < e.EventBtnColors.length; ++n) i.Long ? (t.EventBtnColors[n] = i.Long.fromValue(e.EventBtnColors[n])).unsigned = !1 : "string" == typeof e.EventBtnColors[n] ? t.EventBtnColors[n] = parseInt(e.EventBtnColors[n], 10) : "number" == typeof e.EventBtnColors[n] ? t.EventBtnColors[n] = e.EventBtnColors[n] : "object" == typeof e.EventBtnColors[n] && (t.EventBtnColors[n] = new i.LongBits(e.EventBtnColors[n].low >>> 0, e.EventBtnColors[n].high >>> 0).toNumber())
                }
                if (e.EventBtn1Effect) {
                    if (!Array.isArray(e.EventBtn1Effect)) throw TypeError(".AJEvent_Config.EventBtn1Effect: array expected");
                    for (t.EventBtn1Effect = [], n = 0; n < e.EventBtn1Effect.length; ++n) {
                        if ("object" != typeof e.EventBtn1Effect[n]) throw TypeError(".AJEvent_Config.EventBtn1Effect: object expected");
                        t.EventBtn1Effect[n] = a.IntArray_Config.fromObject(e.EventBtn1Effect[n])
                    }
                }
                if (e.EventBtn2Effect) {
                    if (!Array.isArray(e.EventBtn2Effect)) throw TypeError(".AJEvent_Config.EventBtn2Effect: array expected");
                    for (t.EventBtn2Effect = [], n = 0; n < e.EventBtn2Effect.length; ++n) {
                        if ("object" != typeof e.EventBtn2Effect[n]) throw TypeError(".AJEvent_Config.EventBtn2Effect: object expected");
                        t.EventBtn2Effect[n] = a.IntArray_Config.fromObject(e.EventBtn2Effect[n])
                    }
                }
                if (e.AfterEventEffect) {
                    if (!Array.isArray(e.AfterEventEffect)) throw TypeError(".AJEvent_Config.AfterEventEffect: array expected");
                    for (t.AfterEventEffect = [], n = 0; n < e.AfterEventEffect.length; ++n) {
                        if ("object" != typeof e.AfterEventEffect[n]) throw TypeError(".AJEvent_Config.AfterEventEffect: object expected");
                        t.AfterEventEffect[n] = a.IntArray_Config.fromObject(e.AfterEventEffect[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.EventParam = [], n.EventBtnColors = [], n.EventBtn1Effect = [], n.EventBtn2Effect = [], n.AfterEventEffect = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.EventType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EventType = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.EventTag = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EventTag = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.EventType && e.hasOwnProperty("EventType") && ("number" == typeof e.EventType ? n.EventType = t.longs === String ? String(e.EventType) : e.EventType : n.EventType = t.longs === String ? i.Long.prototype.toString.call(e.EventType) : t.longs === Number ? new i.LongBits(e.EventType.low >>> 0, e.EventType.high >>> 0).toNumber() : e.EventType), null != e.EventTag && e.hasOwnProperty("EventTag") && ("number" == typeof e.EventTag ? n.EventTag = t.longs === String ? String(e.EventTag) : e.EventTag : n.EventTag = t.longs === String ? i.Long.prototype.toString.call(e.EventTag) : t.longs === Number ? new i.LongBits(e.EventTag.low >>> 0, e.EventTag.high >>> 0).toNumber() : e.EventTag), e.EventParam && e.EventParam.length) {
                    n.EventParam = [];
                    for (var r = 0; r < e.EventParam.length; ++r) n.EventParam[r] = a.IntArray_Config.toObject(e.EventParam[r], t)
                }
                if (e.EventBtnColors && e.EventBtnColors.length)
                    for (n.EventBtnColors = [], r = 0; r < e.EventBtnColors.length; ++r) "number" == typeof e.EventBtnColors[r] ? n.EventBtnColors[r] = t.longs === String ? String(e.EventBtnColors[r]) : e.EventBtnColors[r] : n.EventBtnColors[r] = t.longs === String ? i.Long.prototype.toString.call(e.EventBtnColors[r]) : t.longs === Number ? new i.LongBits(e.EventBtnColors[r].low >>> 0, e.EventBtnColors[r].high >>> 0).toNumber() : e.EventBtnColors[r];
                if (e.EventBtn1Effect && e.EventBtn1Effect.length)
                    for (n.EventBtn1Effect = [], r = 0; r < e.EventBtn1Effect.length; ++r) n.EventBtn1Effect[r] = a.IntArray_Config.toObject(e.EventBtn1Effect[r], t);
                if (e.EventBtn2Effect && e.EventBtn2Effect.length)
                    for (n.EventBtn2Effect = [], r = 0; r < e.EventBtn2Effect.length; ++r) n.EventBtn2Effect[r] = a.IntArray_Config.toObject(e.EventBtn2Effect[r], t);
                if (e.AfterEventEffect && e.AfterEventEffect.length)
                    for (n.AfterEventEffect = [], r = 0; r < e.AfterEventEffect.length; ++r) n.AfterEventEffect[r] = a.IntArray_Config.toObject(e.AfterEventEffect[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJEvent_Config"
            }, e
        }(), a.AJMapEvent_Config = function() {
            function e(e) {
                if (this.FirstDayEventId = [], this.LittleMonsterDayEventId = [], this.EliteMonsterDayEventId = [], this.BossDayEventId = [], this.FixedRandomEventId = [], this.PureRandomEventId = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FirstDayEventId = i.emptyArray, e.prototype.LittleMonsterDayEventId = i.emptyArray, e.prototype.EliteMonsterDayEventId = i.emptyArray, e.prototype.BossDayEventId = i.emptyArray, e.prototype.FixedRandomEventId = i.emptyArray, e.prototype.PureRandomEventId = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.FirstDayEventId && e.FirstDayEventId.length)
                    for (var n = 0; n < e.FirstDayEventId.length; ++n) a.IntArray_Config.encode(e.FirstDayEventId[n], t.uint32(18).fork()).ldelim();
                if (null != e.LittleMonsterDayEventId && e.LittleMonsterDayEventId.length)
                    for (n = 0; n < e.LittleMonsterDayEventId.length; ++n) a.IntArray_Config.encode(e.LittleMonsterDayEventId[n], t.uint32(26).fork()).ldelim();
                if (null != e.EliteMonsterDayEventId && e.EliteMonsterDayEventId.length)
                    for (n = 0; n < e.EliteMonsterDayEventId.length; ++n) a.IntArray_Config.encode(e.EliteMonsterDayEventId[n], t.uint32(34).fork()).ldelim();
                if (null != e.BossDayEventId && e.BossDayEventId.length)
                    for (n = 0; n < e.BossDayEventId.length; ++n) a.IntArray_Config.encode(e.BossDayEventId[n], t.uint32(42).fork()).ldelim();
                if (null != e.FixedRandomEventId && e.FixedRandomEventId.length)
                    for (n = 0; n < e.FixedRandomEventId.length; ++n) a.IntArray_Config.encode(e.FixedRandomEventId[n], t.uint32(50).fork()).ldelim();
                if (null != e.PureRandomEventId && e.PureRandomEventId.length)
                    for (n = 0; n < e.PureRandomEventId.length; ++n) a.IntArray_Config.encode(e.PureRandomEventId[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJMapEvent_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.FirstDayEventId && r.FirstDayEventId.length || (r.FirstDayEventId = []), r.FirstDayEventId.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.LittleMonsterDayEventId && r.LittleMonsterDayEventId.length || (r.LittleMonsterDayEventId = []), r.LittleMonsterDayEventId.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.EliteMonsterDayEventId && r.EliteMonsterDayEventId.length || (r.EliteMonsterDayEventId = []), r.EliteMonsterDayEventId.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.BossDayEventId && r.BossDayEventId.length || (r.BossDayEventId = []), r.BossDayEventId.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.FixedRandomEventId && r.FixedRandomEventId.length || (r.FixedRandomEventId = []), r.FixedRandomEventId.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.PureRandomEventId && r.PureRandomEventId.length || (r.PureRandomEventId = []), r.PureRandomEventId.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.FirstDayEventId && e.hasOwnProperty("FirstDayEventId")) {
                    if (!Array.isArray(e.FirstDayEventId)) return "FirstDayEventId: array expected";
                    for (var t = 0; t < e.FirstDayEventId.length; ++t)
                        if (n = a.IntArray_Config.verify(e.FirstDayEventId[t])) return "FirstDayEventId." + n
                }
                if (null != e.LittleMonsterDayEventId && e.hasOwnProperty("LittleMonsterDayEventId")) {
                    if (!Array.isArray(e.LittleMonsterDayEventId)) return "LittleMonsterDayEventId: array expected";
                    for (t = 0; t < e.LittleMonsterDayEventId.length; ++t)
                        if (n = a.IntArray_Config.verify(e.LittleMonsterDayEventId[t])) return "LittleMonsterDayEventId." + n
                }
                if (null != e.EliteMonsterDayEventId && e.hasOwnProperty("EliteMonsterDayEventId")) {
                    if (!Array.isArray(e.EliteMonsterDayEventId)) return "EliteMonsterDayEventId: array expected";
                    for (t = 0; t < e.EliteMonsterDayEventId.length; ++t)
                        if (n = a.IntArray_Config.verify(e.EliteMonsterDayEventId[t])) return "EliteMonsterDayEventId." + n
                }
                if (null != e.BossDayEventId && e.hasOwnProperty("BossDayEventId")) {
                    if (!Array.isArray(e.BossDayEventId)) return "BossDayEventId: array expected";
                    for (t = 0; t < e.BossDayEventId.length; ++t)
                        if (n = a.IntArray_Config.verify(e.BossDayEventId[t])) return "BossDayEventId." + n
                }
                if (null != e.FixedRandomEventId && e.hasOwnProperty("FixedRandomEventId")) {
                    if (!Array.isArray(e.FixedRandomEventId)) return "FixedRandomEventId: array expected";
                    for (t = 0; t < e.FixedRandomEventId.length; ++t)
                        if (n = a.IntArray_Config.verify(e.FixedRandomEventId[t])) return "FixedRandomEventId." + n
                }
                if (null != e.PureRandomEventId && e.hasOwnProperty("PureRandomEventId")) {
                    if (!Array.isArray(e.PureRandomEventId)) return "PureRandomEventId: array expected";
                    for (t = 0; t < e.PureRandomEventId.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.PureRandomEventId[t])) return "PureRandomEventId." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJMapEvent_Config) return e;
                var t = new a.AJMapEvent_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.FirstDayEventId) {
                    if (!Array.isArray(e.FirstDayEventId)) throw TypeError(".AJMapEvent_Config.FirstDayEventId: array expected");
                    t.FirstDayEventId = [];
                    for (var n = 0; n < e.FirstDayEventId.length; ++n) {
                        if ("object" != typeof e.FirstDayEventId[n]) throw TypeError(".AJMapEvent_Config.FirstDayEventId: object expected");
                        t.FirstDayEventId[n] = a.IntArray_Config.fromObject(e.FirstDayEventId[n])
                    }
                }
                if (e.LittleMonsterDayEventId) {
                    if (!Array.isArray(e.LittleMonsterDayEventId)) throw TypeError(".AJMapEvent_Config.LittleMonsterDayEventId: array expected");
                    for (t.LittleMonsterDayEventId = [], n = 0; n < e.LittleMonsterDayEventId.length; ++n) {
                        if ("object" != typeof e.LittleMonsterDayEventId[n]) throw TypeError(".AJMapEvent_Config.LittleMonsterDayEventId: object expected");
                        t.LittleMonsterDayEventId[n] = a.IntArray_Config.fromObject(e.LittleMonsterDayEventId[n])
                    }
                }
                if (e.EliteMonsterDayEventId) {
                    if (!Array.isArray(e.EliteMonsterDayEventId)) throw TypeError(".AJMapEvent_Config.EliteMonsterDayEventId: array expected");
                    for (t.EliteMonsterDayEventId = [], n = 0; n < e.EliteMonsterDayEventId.length; ++n) {
                        if ("object" != typeof e.EliteMonsterDayEventId[n]) throw TypeError(".AJMapEvent_Config.EliteMonsterDayEventId: object expected");
                        t.EliteMonsterDayEventId[n] = a.IntArray_Config.fromObject(e.EliteMonsterDayEventId[n])
                    }
                }
                if (e.BossDayEventId) {
                    if (!Array.isArray(e.BossDayEventId)) throw TypeError(".AJMapEvent_Config.BossDayEventId: array expected");
                    for (t.BossDayEventId = [], n = 0; n < e.BossDayEventId.length; ++n) {
                        if ("object" != typeof e.BossDayEventId[n]) throw TypeError(".AJMapEvent_Config.BossDayEventId: object expected");
                        t.BossDayEventId[n] = a.IntArray_Config.fromObject(e.BossDayEventId[n])
                    }
                }
                if (e.FixedRandomEventId) {
                    if (!Array.isArray(e.FixedRandomEventId)) throw TypeError(".AJMapEvent_Config.FixedRandomEventId: array expected");
                    for (t.FixedRandomEventId = [], n = 0; n < e.FixedRandomEventId.length; ++n) {
                        if ("object" != typeof e.FixedRandomEventId[n]) throw TypeError(".AJMapEvent_Config.FixedRandomEventId: object expected");
                        t.FixedRandomEventId[n] = a.IntArray_Config.fromObject(e.FixedRandomEventId[n])
                    }
                }
                if (e.PureRandomEventId) {
                    if (!Array.isArray(e.PureRandomEventId)) throw TypeError(".AJMapEvent_Config.PureRandomEventId: array expected");
                    for (t.PureRandomEventId = [], n = 0; n < e.PureRandomEventId.length; ++n) {
                        if ("object" != typeof e.PureRandomEventId[n]) throw TypeError(".AJMapEvent_Config.PureRandomEventId: object expected");
                        t.PureRandomEventId[n] = a.IntArray_Config.fromObject(e.PureRandomEventId[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.FirstDayEventId = [], n.LittleMonsterDayEventId = [], n.EliteMonsterDayEventId = [], n.BossDayEventId = [], n.FixedRandomEventId = [], n.PureRandomEventId = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.FirstDayEventId && e.FirstDayEventId.length) {
                    n.FirstDayEventId = [];
                    for (var r = 0; r < e.FirstDayEventId.length; ++r) n.FirstDayEventId[r] = a.IntArray_Config.toObject(e.FirstDayEventId[r], t)
                }
                if (e.LittleMonsterDayEventId && e.LittleMonsterDayEventId.length)
                    for (n.LittleMonsterDayEventId = [], r = 0; r < e.LittleMonsterDayEventId.length; ++r) n.LittleMonsterDayEventId[r] = a.IntArray_Config.toObject(e.LittleMonsterDayEventId[r], t);
                if (e.EliteMonsterDayEventId && e.EliteMonsterDayEventId.length)
                    for (n.EliteMonsterDayEventId = [], r = 0; r < e.EliteMonsterDayEventId.length; ++r) n.EliteMonsterDayEventId[r] = a.IntArray_Config.toObject(e.EliteMonsterDayEventId[r], t);
                if (e.BossDayEventId && e.BossDayEventId.length)
                    for (n.BossDayEventId = [], r = 0; r < e.BossDayEventId.length; ++r) n.BossDayEventId[r] = a.IntArray_Config.toObject(e.BossDayEventId[r], t);
                if (e.FixedRandomEventId && e.FixedRandomEventId.length)
                    for (n.FixedRandomEventId = [], r = 0; r < e.FixedRandomEventId.length; ++r) n.FixedRandomEventId[r] = a.IntArray_Config.toObject(e.FixedRandomEventId[r], t);
                if (e.PureRandomEventId && e.PureRandomEventId.length)
                    for (n.PureRandomEventId = [], r = 0; r < e.PureRandomEventId.length; ++r) n.PureRandomEventId[r] = a.IntArray_Config.toObject(e.PureRandomEventId[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJMapEvent_Config"
            }, e
        }(), a.AJEventEffect_Config = function() {
            function e(e) {
                if (this.TypeParam1 = [], this.TypeParam2 = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EventType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TypeParam1 = i.emptyArray, e.prototype.TypeParam2 = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.EventType && Object.hasOwnProperty.call(e, "EventType") && t.uint32(16).int64(e.EventType), null != e.TypeParam1 && e.TypeParam1.length)
                    for (var n = 0; n < e.TypeParam1.length; ++n) a.IntArray_Config.encode(e.TypeParam1[n], t.uint32(26).fork()).ldelim();
                if (null != e.TypeParam2 && e.TypeParam2.length)
                    for (n = 0; n < e.TypeParam2.length; ++n) a.IntArray_Config.encode(e.TypeParam2[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJEventEffect_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.EventType = e.int64();
                            break;
                        case 3:
                            r.TypeParam1 && r.TypeParam1.length || (r.TypeParam1 = []), r.TypeParam1.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.TypeParam2 && r.TypeParam2.length || (r.TypeParam2 = []), r.TypeParam2.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.EventType && e.hasOwnProperty("EventType") && !(i.isInteger(e.EventType) || e.EventType && i.isInteger(e.EventType.low) && i.isInteger(e.EventType.high))) return "EventType: integer|Long expected";
                if (null != e.TypeParam1 && e.hasOwnProperty("TypeParam1")) {
                    if (!Array.isArray(e.TypeParam1)) return "TypeParam1: array expected";
                    for (var t = 0; t < e.TypeParam1.length; ++t)
                        if (n = a.IntArray_Config.verify(e.TypeParam1[t])) return "TypeParam1." + n
                }
                if (null != e.TypeParam2 && e.hasOwnProperty("TypeParam2")) {
                    if (!Array.isArray(e.TypeParam2)) return "TypeParam2: array expected";
                    for (t = 0; t < e.TypeParam2.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.TypeParam2[t])) return "TypeParam2." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJEventEffect_Config) return e;
                var t = new a.AJEventEffect_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.EventType && (i.Long ? (t.EventType = i.Long.fromValue(e.EventType)).unsigned = !1 : "string" == typeof e.EventType ? t.EventType = parseInt(e.EventType, 10) : "number" == typeof e.EventType ? t.EventType = e.EventType : "object" == typeof e.EventType && (t.EventType = new i.LongBits(e.EventType.low >>> 0, e.EventType.high >>> 0).toNumber())), e.TypeParam1) {
                    if (!Array.isArray(e.TypeParam1)) throw TypeError(".AJEventEffect_Config.TypeParam1: array expected");
                    t.TypeParam1 = [];
                    for (var n = 0; n < e.TypeParam1.length; ++n) {
                        if ("object" != typeof e.TypeParam1[n]) throw TypeError(".AJEventEffect_Config.TypeParam1: object expected");
                        t.TypeParam1[n] = a.IntArray_Config.fromObject(e.TypeParam1[n])
                    }
                }
                if (e.TypeParam2) {
                    if (!Array.isArray(e.TypeParam2)) throw TypeError(".AJEventEffect_Config.TypeParam2: array expected");
                    for (t.TypeParam2 = [], n = 0; n < e.TypeParam2.length; ++n) {
                        if ("object" != typeof e.TypeParam2[n]) throw TypeError(".AJEventEffect_Config.TypeParam2: object expected");
                        t.TypeParam2[n] = a.IntArray_Config.fromObject(e.TypeParam2[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.TypeParam1 = [], n.TypeParam2 = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.EventType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EventType = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.EventType && e.hasOwnProperty("EventType") && ("number" == typeof e.EventType ? n.EventType = t.longs === String ? String(e.EventType) : e.EventType : n.EventType = t.longs === String ? i.Long.prototype.toString.call(e.EventType) : t.longs === Number ? new i.LongBits(e.EventType.low >>> 0, e.EventType.high >>> 0).toNumber() : e.EventType), e.TypeParam1 && e.TypeParam1.length) {
                    n.TypeParam1 = [];
                    for (var r = 0; r < e.TypeParam1.length; ++r) n.TypeParam1[r] = a.IntArray_Config.toObject(e.TypeParam1[r], t)
                }
                if (e.TypeParam2 && e.TypeParam2.length)
                    for (n.TypeParam2 = [], r = 0; r < e.TypeParam2.length; ++r) n.TypeParam2[r] = a.IntArray_Config.toObject(e.TypeParam2[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJEventEffect_Config"
            }, e
        }(), a.AJMonster_Config = function() {
            function e(e) {
                if (this.Attribute = [], this.Reward = [], this.Skills = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attribute = i.emptyArray, e.prototype.Name = "", e.prototype.Model = "", e.prototype.Reward = i.emptyArray, e.prototype.RewardBox = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Skills = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.Attribute && e.Attribute.length)
                    for (var n = 0; n < e.Attribute.length; ++n) a.IntArray_Config.encode(e.Attribute[n], t.uint32(26).fork()).ldelim();
                if (null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(34).string(e.Name), null != e.Model && Object.hasOwnProperty.call(e, "Model") && t.uint32(42).string(e.Model), null != e.Reward && e.Reward.length)
                    for (n = 0; n < e.Reward.length; ++n) a.IntArray_Config.encode(e.Reward[n], t.uint32(50).fork()).ldelim();
                if (null != e.RewardBox && Object.hasOwnProperty.call(e, "RewardBox") && t.uint32(56).int64(e.RewardBox), null != e.Skills && e.Skills.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.Skills.length; ++n) t.int64(e.Skills[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJMonster_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 3:
                            r.Attribute && r.Attribute.length || (r.Attribute = []), r.Attribute.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Name = e.string();
                            break;
                        case 5:
                            r.Model = e.string();
                            break;
                        case 6:
                            r.Reward && r.Reward.length || (r.Reward = []), r.Reward.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 7:
                            r.RewardBox = e.int64();
                            break;
                        case 8:
                            if (r.Skills && r.Skills.length || (r.Skills = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Skills.push(e.int64());
                            else r.Skills.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Attribute && e.hasOwnProperty("Attribute")) {
                    if (!Array.isArray(e.Attribute)) return "Attribute: array expected";
                    for (var t = 0; t < e.Attribute.length; ++t)
                        if (n = a.IntArray_Config.verify(e.Attribute[t])) return "Attribute." + n
                }
                if (null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name)) return "Name: string expected";
                if (null != e.Model && e.hasOwnProperty("Model") && !i.isString(e.Model)) return "Model: string expected";
                if (null != e.Reward && e.hasOwnProperty("Reward")) {
                    if (!Array.isArray(e.Reward)) return "Reward: array expected";
                    for (t = 0; t < e.Reward.length; ++t) {
                        var n;
                        if (n = a.IntArray_Config.verify(e.Reward[t])) return "Reward." + n
                    }
                }
                if (null != e.RewardBox && e.hasOwnProperty("RewardBox") && !(i.isInteger(e.RewardBox) || e.RewardBox && i.isInteger(e.RewardBox.low) && i.isInteger(e.RewardBox.high))) return "RewardBox: integer|Long expected";
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (t = 0; t < e.Skills.length; ++t)
                        if (!(i.isInteger(e.Skills[t]) || e.Skills[t] && i.isInteger(e.Skills[t].low) && i.isInteger(e.Skills[t].high))) return "Skills: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJMonster_Config) return e;
                var t = new a.AJMonster_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Attribute) {
                    if (!Array.isArray(e.Attribute)) throw TypeError(".AJMonster_Config.Attribute: array expected");
                    t.Attribute = [];
                    for (var n = 0; n < e.Attribute.length; ++n) {
                        if ("object" != typeof e.Attribute[n]) throw TypeError(".AJMonster_Config.Attribute: object expected");
                        t.Attribute[n] = a.IntArray_Config.fromObject(e.Attribute[n])
                    }
                }
                if (null != e.Name && (t.Name = String(e.Name)), null != e.Model && (t.Model = String(e.Model)), e.Reward) {
                    if (!Array.isArray(e.Reward)) throw TypeError(".AJMonster_Config.Reward: array expected");
                    for (t.Reward = [], n = 0; n < e.Reward.length; ++n) {
                        if ("object" != typeof e.Reward[n]) throw TypeError(".AJMonster_Config.Reward: object expected");
                        t.Reward[n] = a.IntArray_Config.fromObject(e.Reward[n])
                    }
                }
                if (null != e.RewardBox && (i.Long ? (t.RewardBox = i.Long.fromValue(e.RewardBox)).unsigned = !1 : "string" == typeof e.RewardBox ? t.RewardBox = parseInt(e.RewardBox, 10) : "number" == typeof e.RewardBox ? t.RewardBox = e.RewardBox : "object" == typeof e.RewardBox && (t.RewardBox = new i.LongBits(e.RewardBox.low >>> 0, e.RewardBox.high >>> 0).toNumber())), e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".AJMonster_Config.Skills: array expected");
                    for (t.Skills = [], n = 0; n < e.Skills.length; ++n) i.Long ? (t.Skills[n] = i.Long.fromValue(e.Skills[n])).unsigned = !1 : "string" == typeof e.Skills[n] ? t.Skills[n] = parseInt(e.Skills[n], 10) : "number" == typeof e.Skills[n] ? t.Skills[n] = e.Skills[n] : "object" == typeof e.Skills[n] && (t.Skills[n] = new i.LongBits(e.Skills[n].low >>> 0, e.Skills[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Attribute = [], n.Reward = [], n.Skills = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, n.Name = "", n.Model = "", i.Long ? (o = new i.Long(0, 0, !1), n.RewardBox = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RewardBox = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Attribute && e.Attribute.length) {
                    n.Attribute = [];
                    for (var r = 0; r < e.Attribute.length; ++r) n.Attribute[r] = a.IntArray_Config.toObject(e.Attribute[r], t)
                }
                if (null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Model && e.hasOwnProperty("Model") && (n.Model = e.Model), e.Reward && e.Reward.length)
                    for (n.Reward = [], r = 0; r < e.Reward.length; ++r) n.Reward[r] = a.IntArray_Config.toObject(e.Reward[r], t);
                if (null != e.RewardBox && e.hasOwnProperty("RewardBox") && ("number" == typeof e.RewardBox ? n.RewardBox = t.longs === String ? String(e.RewardBox) : e.RewardBox : n.RewardBox = t.longs === String ? i.Long.prototype.toString.call(e.RewardBox) : t.longs === Number ? new i.LongBits(e.RewardBox.low >>> 0, e.RewardBox.high >>> 0).toNumber() : e.RewardBox), e.Skills && e.Skills.length)
                    for (n.Skills = [], r = 0; r < e.Skills.length; ++r) "number" == typeof e.Skills[r] ? n.Skills[r] = t.longs === String ? String(e.Skills[r]) : e.Skills[r] : n.Skills[r] = t.longs === String ? i.Long.prototype.toString.call(e.Skills[r]) : t.longs === Number ? new i.LongBits(e.Skills[r].low >>> 0, e.Skills[r].high >>> 0).toNumber() : e.Skills[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJMonster_Config"
            }, e
        }(), a.AJSkill_Config = function() {
            function e(e) {
                if (this.SkillEffect = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillEffect = i.emptyArray, e.prototype.SkillIcon = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.SkillEffect && e.SkillEffect.length)
                    for (var n = 0; n < e.SkillEffect.length; ++n) a.IntArray_Config.encode(e.SkillEffect[n], t.uint32(34).fork()).ldelim();
                return null != e.SkillIcon && Object.hasOwnProperty.call(e, "SkillIcon") && t.uint32(42).string(e.SkillIcon), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AJSkill_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 4:
                            r.SkillEffect && r.SkillEffect.length || (r.SkillEffect = []), r.SkillEffect.push(a.IntArray_Config.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.SkillIcon = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.SkillEffect && e.hasOwnProperty("SkillEffect")) {
                    if (!Array.isArray(e.SkillEffect)) return "SkillEffect: array expected";
                    for (var t = 0; t < e.SkillEffect.length; ++t) {
                        var n = a.IntArray_Config.verify(e.SkillEffect[t]);
                        if (n) return "SkillEffect." + n
                    }
                }
                return null != e.SkillIcon && e.hasOwnProperty("SkillIcon") && !i.isString(e.SkillIcon) ? "SkillIcon: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AJSkill_Config) return e;
                var t = new a.AJSkill_Config;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.SkillEffect) {
                    if (!Array.isArray(e.SkillEffect)) throw TypeError(".AJSkill_Config.SkillEffect: array expected");
                    t.SkillEffect = [];
                    for (var n = 0; n < e.SkillEffect.length; ++n) {
                        if ("object" != typeof e.SkillEffect[n]) throw TypeError(".AJSkill_Config.SkillEffect: object expected");
                        t.SkillEffect[n] = a.IntArray_Config.fromObject(e.SkillEffect[n])
                    }
                }
                return null != e.SkillIcon && (t.SkillIcon = String(e.SkillIcon)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.SkillEffect = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.SkillIcon = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.SkillEffect && e.SkillEffect.length) {
                    n.SkillEffect = [];
                    for (var r = 0; r < e.SkillEffect.length; ++r) n.SkillEffect[r] = a.IntArray_Config.toObject(e.SkillEffect[r], t)
                }
                return null != e.SkillIcon && e.hasOwnProperty("SkillIcon") && (n.SkillIcon = e.SkillIcon), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AJSkill_Config"
            }, e
        }(), a.RewardMailType_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemMaxValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.ItemMaxValue && Object.hasOwnProperty.call(e, "ItemMaxValue") && t.uint32(40).int64(e.ItemMaxValue), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RewardMailType_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 5:
                            r.ItemMaxValue = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.ItemMaxValue && e.hasOwnProperty("ItemMaxValue") && !(i.isInteger(e.ItemMaxValue) || e.ItemMaxValue && i.isInteger(e.ItemMaxValue.low) && i.isInteger(e.ItemMaxValue.high)) ? "ItemMaxValue: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RewardMailType_Config) return e;
                var t = new a.RewardMailType_Config;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.ItemMaxValue && (i.Long ? (t.ItemMaxValue = i.Long.fromValue(e.ItemMaxValue)).unsigned = !1 : "string" == typeof e.ItemMaxValue ? t.ItemMaxValue = parseInt(e.ItemMaxValue, 10) : "number" == typeof e.ItemMaxValue ? t.ItemMaxValue = e.ItemMaxValue : "object" == typeof e.ItemMaxValue && (t.ItemMaxValue = new i.LongBits(e.ItemMaxValue.low >>> 0, e.ItemMaxValue.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ItemMaxValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemMaxValue = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.ItemMaxValue && e.hasOwnProperty("ItemMaxValue") && ("number" == typeof e.ItemMaxValue ? n.ItemMaxValue = t.longs === String ? String(e.ItemMaxValue) : e.ItemMaxValue : n.ItemMaxValue = t.longs === String ? i.Long.prototype.toString.call(e.ItemMaxValue) : t.longs === Number ? new i.LongBits(e.ItemMaxValue.low >>> 0, e.ItemMaxValue.high >>> 0).toNumber() : e.ItemMaxValue), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RewardMailType_Config"
            }, e
        }(), a.IntArray_Config = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Items = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Items && e.Items.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Items.length; ++n) t.int64(e.Items[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.IntArray_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Items && r.Items.length || (r.Items = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Items.push(e.int64());
                            else r.Items.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t)
                        if (!(i.isInteger(e.Items[t]) || e.Items[t] && i.isInteger(e.Items[t].low) && i.isInteger(e.Items[t].high))) return "Items: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.IntArray_Config) return e;
                var t = new a.IntArray_Config;
                if (e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".IntArray_Config.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) i.Long ? (t.Items[n] = i.Long.fromValue(e.Items[n])).unsigned = !1 : "string" == typeof e.Items[n] ? t.Items[n] = parseInt(e.Items[n], 10) : "number" == typeof e.Items[n] ? t.Items[n] = e.Items[n] : "object" == typeof e.Items[n] && (t.Items[n] = new i.LongBits(e.Items[n].low >>> 0, e.Items[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var o = 0; o < e.Items.length; ++o) "number" == typeof e.Items[o] ? n.Items[o] = t.longs === String ? String(e.Items[o]) : e.Items[o] : n.Items[o] = t.longs === String ? i.Long.prototype.toString.call(e.Items[o]) : t.longs === Number ? new i.LongBits(e.Items[o].low >>> 0, e.Items[o].high >>> 0).toNumber() : e.Items[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/IntArray_Config"
            }, e
        }(), a.FloatArray_Config = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Items = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Items && e.Items.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Items.length; ++n) t.float(e.Items[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FloatArray_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Items && r.Items.length || (r.Items = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Items.push(e.float());
                            else r.Items.push(e.float());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t)
                        if ("number" != typeof e.Items[t]) return "Items: number[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.FloatArray_Config) return e;
                var t = new a.FloatArray_Config;
                if (e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".FloatArray_Config.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) t.Items[n] = Number(e.Items[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var o = 0; o < e.Items.length; ++o) n.Items[o] = t.json && !isFinite(e.Items[o]) ? String(e.Items[o]) : e.Items[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FloatArray_Config"
            }, e
        }(), a.DoubleArray_Config = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Items = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Items && e.Items.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Items.length; ++n) t.double(e.Items[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DoubleArray_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Items && r.Items.length || (r.Items = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Items.push(e.double());
                            else r.Items.push(e.double());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t)
                        if ("number" != typeof e.Items[t]) return "Items: number[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.DoubleArray_Config) return e;
                var t = new a.DoubleArray_Config;
                if (e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".DoubleArray_Config.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) t.Items[n] = Number(e.Items[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var o = 0; o < e.Items.length; ++o) n.Items[o] = t.json && !isFinite(e.Items[o]) ? String(e.Items[o]) : e.Items[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DoubleArray_Config"
            }, e
        }(), a.Version_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.Name = "", e.prototype.Version = "", e.prototype.Md5 = "", e.prototype.Size = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OnlyServer = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.Version && Object.hasOwnProperty.call(e, "Version") && t.uint32(26).string(e.Version), null != e.Md5 && Object.hasOwnProperty.call(e, "Md5") && t.uint32(34).string(e.Md5), null != e.Size && Object.hasOwnProperty.call(e, "Size") && t.uint32(40).int64(e.Size), null != e.OnlyServer && Object.hasOwnProperty.call(e, "OnlyServer") && t.uint32(48).bool(e.OnlyServer), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Version_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            r.Version = e.string();
                            break;
                        case 4:
                            r.Md5 = e.string();
                            break;
                        case 5:
                            r.Size = e.int64();
                            break;
                        case 6:
                            r.OnlyServer = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.Version && e.hasOwnProperty("Version") && !i.isString(e.Version) ? "Version: string expected" : null != e.Md5 && e.hasOwnProperty("Md5") && !i.isString(e.Md5) ? "Md5: string expected" : null != e.Size && e.hasOwnProperty("Size") && !(i.isInteger(e.Size) || e.Size && i.isInteger(e.Size.low) && i.isInteger(e.Size.high)) ? "Size: integer|Long expected" : null != e.OnlyServer && e.hasOwnProperty("OnlyServer") && "boolean" != typeof e.OnlyServer ? "OnlyServer: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Version_Config) return e;
                var t = new a.Version_Config;
                return null != e.Type && (t.Type = 0 | e.Type), null != e.Name && (t.Name = String(e.Name)), null != e.Version && (t.Version = String(e.Version)), null != e.Md5 && (t.Md5 = String(e.Md5)), null != e.Size && (i.Long ? (t.Size = i.Long.fromValue(e.Size)).unsigned = !1 : "string" == typeof e.Size ? t.Size = parseInt(e.Size, 10) : "number" == typeof e.Size ? t.Size = e.Size : "object" == typeof e.Size && (t.Size = new i.LongBits(e.Size.low >>> 0, e.Size.high >>> 0).toNumber())), null != e.OnlyServer && (t.OnlyServer = Boolean(e.OnlyServer)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (n.Type = 0, n.Name = "", n.Version = "", n.Md5 = "", i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Size = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Size = t.longs === String ? "0" : 0;
                    n.OnlyServer = !1
                }
                return null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Version && e.hasOwnProperty("Version") && (n.Version = e.Version), null != e.Md5 && e.hasOwnProperty("Md5") && (n.Md5 = e.Md5), null != e.Size && e.hasOwnProperty("Size") && ("number" == typeof e.Size ? n.Size = t.longs === String ? String(e.Size) : e.Size : n.Size = t.longs === String ? i.Long.prototype.toString.call(e.Size) : t.longs === Number ? new i.LongBits(e.Size.low >>> 0, e.Size.high >>> 0).toNumber() : e.Size), null != e.OnlyServer && e.hasOwnProperty("OnlyServer") && (n.OnlyServer = e.OnlyServer), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Version_Config"
            }, e
        }(), a.Locale_Config = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Key = "", e.prototype.Value = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Key && Object.hasOwnProperty.call(e, "Key") && t.uint32(10).string(e.Key), null != e.Value && Object.hasOwnProperty.call(e, "Value") && t.uint32(18).string(e.Value), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Locale_Config; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Key = e.string();
                            break;
                        case 2:
                            r.Value = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Key && e.hasOwnProperty("Key") && !i.isString(e.Key) ? "Key: string expected" : null != e.Value && e.hasOwnProperty("Value") && !i.isString(e.Value) ? "Value: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Locale_Config) return e;
                var t = new a.Locale_Config;
                return null != e.Key && (t.Key = String(e.Key)), null != e.Value && (t.Value = String(e.Value)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Key = "", n.Value = ""), null != e.Key && e.hasOwnProperty("Key") && (n.Key = e.Key), null != e.Value && e.hasOwnProperty("Value") && (n.Value = e.Value), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Locale_Config"
            }, e
        }(), a.ConfigData_List = function() {
            function e(e) {
                if (this.Data = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Data = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Data && e.Data.length)
                    for (var n = 0; n < e.Data.length; ++n) t.uint32(10).bytes(e.Data[n]);
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ConfigData_List; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Data && r.Data.length || (r.Data = []), r.Data.push(e.bytes());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t)
                        if (!(e.Data[t] && "number" == typeof e.Data[t].length || i.isString(e.Data[t]))) return "Data: buffer[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.ConfigData_List) return e;
                var t = new a.ConfigData_List;
                if (e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".ConfigData_List.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) "string" == typeof e.Data[n] ? i.base64.decode(e.Data[n], t.Data[n] = i.newBuffer(i.base64.length(e.Data[n])), 0) : e.Data[n].length >= 0 && (t.Data[n] = e.Data[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = []), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var o = 0; o < e.Data.length; ++o) n.Data[o] = t.bytes === String ? i.base64.encode(e.Data[o], 0, e.Data[o].length) : t.bytes === Array ? Array.prototype.slice.call(e.Data[o]) : e.Data[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ConfigData_List"
            }, e
        }(), a.HeroBase_Config._n_ = "HeroBase_Config", a.PackExtend_Config._n_ = "PackExtend_Config", a.TestAll_Config._n_ = "TestAll_Config", a.GlobalSetting_Config._n_ = "GlobalSetting_Config", a.GlobalSecret_Config._n_ = "GlobalSecret_Config", a.ItemBase_Config._n_ = "ItemBase_Config", a.SkillBase_Config._n_ = "SkillBase_Config", a.MapBase_Config._n_ = "MapBase_Config", a.LocaleUI_Config._n_ = "LocaleUI_Config", a.LocaleServer_Config._n_ = "LocaleServer_Config", a.FormationType_Config._n_ = "FormationType_Config", a.ShopBase_Config._n_ = "ShopBase_Config", a.ShopItem_Config._n_ = "ShopItem_Config", a.TreasureHuntBase_Config._n_ = "TreasureHuntBase_Config", a.TreasureHuntCell_Config._n_ = "TreasureHuntCell_Config", a.HeroStar_Config._n_ = "HeroStar_Config", a.HeroLevel_Config._n_ = "HeroLevel_Config", a.BuffBase_Config._n_ = "BuffBase_Config", a.ItemConsume_Config._n_ = "ItemConsume_Config", a.ItemPiece_Config._n_ = "ItemPiece_Config", a.ItemHeroCard_Config._n_ = "ItemHeroCard_Config", a.MapPowerLevel_Config._n_ = "MapPowerLevel_Config", a.MapDailyInstance_Config._n_ = "MapDailyInstance_Config", a.DailyInstance_Config._n_ = "DailyInstance_Config", a.TestTowerType_Config._n_ = "TestTowerType_Config", a.MapTestTower_Config._n_ = "MapTestTower_Config", a.WarTokenTask_Config._n_ = "WarTokenTask_Config", a.WarTokenType_Config._n_ = "WarTokenType_Config", a.GameModule_Config._n_ = "GameModule_Config", a.PlayerLevel_Config._n_ = "PlayerLevel_Config", a.VipLevel_Config._n_ = "VipLevel_Config", a.TaskBase_Config._n_ = "TaskBase_Config", a.TaskPointReward_Config._n_ = "TaskPointReward_Config", a.PointRewardType_Config._n_ = "PointRewardType_Config", a.CardRandomLib_Config._n_ = "CardRandomLib_Config", a.CardShowChance_Config._n_ = "CardShowChance_Config", a.CardSummonType_Config._n_ = "CardSummonType_Config", a.HeroFetter_Config._n_ = "HeroFetter_Config", a.CardCommonSummon_Config._n_ = "CardCommonSummon_Config", a.CardProphetSummon_Config._n_ = "CardProphetSummon_Config", a.ElementEffect_Config._n_ = "ElementEffect_Config", a.EndlessAbyssType_Config._n_ = "EndlessAbyssType_Config", a.MapEndlessAbyss_Config._n_ = "MapEndlessAbyss_Config", a.LevelParam_Config._n_ = "LevelParam_Config", a.EndlessAbyssBuff_Config._n_ = "EndlessAbyssBuff_Config", a.MapMonster_Config._n_ = "MapMonster_Config", a.HeroLevelAttribute_Config._n_ = "HeroLevelAttribute_Config", a.LocaleSkill_Config._n_ = "LocaleSkill_Config", a.SkillEffect_Config._n_ = "SkillEffect_Config", a.MapType_Config._n_ = "MapType_Config", a.RelicLevel_Config._n_ = "RelicLevel_Config", a.RelicEvent_Config._n_ = "RelicEvent_Config", a.HieronBumper_Config._n_ = "HieronBumper_Config", a.MainUISliderButtons_Config._n_ = "MainUISliderButtons_Config", a.AdventureChapter_Config._n_ = "AdventureChapter_Config", a.MapAdventure_Config._n_ = "MapAdventure_Config", a.ItemEquipment_Config._n_ = "ItemEquipment_Config", a.RankType_Config._n_ = "RankType_Config", a.SecretAreaProps_Config._n_ = "SecretAreaProps_Config", a.SecretAreaMonsterType_Config._n_ = "SecretAreaMonsterType_Config", a.SecretAreaBuff_Config._n_ = "SecretAreaBuff_Config", a.SecretAreaMap_Config._n_ = "SecretAreaMap_Config", a.RobotHero_Config._n_ = "RobotHero_Config", a.AllianceBadge_Config._n_ = "AllianceBadge_Config", a.IntelligenceTask_Config._n_ = "IntelligenceTask_Config", a.IntelligenceQuality_Config._n_ = "IntelligenceQuality_Config", a.RandomLib_Config._n_ = "RandomLib_Config", a.FirstNamePool_Config._n_ = "FirstNamePool_Config", a.LastNamePool_Config._n_ = "LastNamePool_Config", a.ArenaRankReward_Config._n_ = "ArenaRankReward_Config", a.StarResonanceLevel_Config._n_ = "StarResonanceLevel_Config", a.LuckyCharmEquip_Config._n_ = "LuckyCharmEquip_Config", a.LuckyCharmSkill_Config._n_ = "LuckyCharmSkill_Config", a.EightDays_Config._n_ = "EightDays_Config", a.HolyEquipment_Config._n_ = "HolyEquipment_Config", a.HolyEquipmentStar_Config._n_ = "HolyEquipmentStar_Config", a.HolyEquipmentLevel_Config._n_ = "HolyEquipmentLevel_Config", a.HolyEquipBlessingType_Config._n_ = "HolyEquipBlessingType_Config", a.HolyEquipBlessing_Config._n_ = "HolyEquipBlessing_Config", a.HolyEquipBlessingLevel_Config._n_ = "HolyEquipBlessingLevel_Config", a.HolyEquipSuit_Config._n_ = "HolyEquipSuit_Config", a.HolyEquipSoul_Config._n_ = "HolyEquipSoul_Config", a.AllianceLevel_Config._n_ = "AllianceLevel_Config", a.AllianceIcon_Config._n_ = "AllianceIcon_Config", a.StarHolyStatueLevel_Config._n_ = "StarHolyStatueLevel_Config", a.StarPowerType_Config._n_ = "StarPowerType_Config", a.StarPowerLevel_Config._n_ = "StarPowerLevel_Config", a.StarPiece_Config._n_ = "StarPiece_Config", a.AncientSacredMap_Config._n_ = "AncientSacredMap_Config", a.StarPieceQuality_Config._n_ = "StarPieceQuality_Config", a.StarPieceLevel_Config._n_ = "StarPieceLevel_Config", a.HeroAttribute_Config._n_ = "HeroAttribute_Config", a.AllianceTalentLevel_Config._n_ = "AllianceTalentLevel_Config", a.ItemRewards_Config._n_ = "ItemRewards_Config", a.AcscMonster_Config._n_ = "AcscMonster_Config", a.AcscCondition_Config._n_ = "AcscCondition_Config", a.AcscMonsterType_Config._n_ = "AcscMonsterType_Config", a.AllianceTestType_Config._n_ = "AllianceTestType_Config", a.AllianceTest_Config._n_ = "AllianceTest_Config", a.AllianceTestReward_Config._n_ = "AllianceTestReward_Config", a.SimpleRandomLib_Config._n_ = "SimpleRandomLib_Config", a.HeroCharacteristic_Config._n_ = "HeroCharacteristic_Config", a.HeadIcon_Config._n_ = "HeadIcon_Config", a.HeadFrame_Config._n_ = "HeadFrame_Config", a.Title_Config._n_ = "Title_Config", a.AdventureReward_Config._n_ = "AdventureReward_Config", a.BuffDescription_Config._n_ = "BuffDescription_Config", a.Emoji_Config._n_ = "Emoji_Config", a.FormationInstance_Config._n_ = "FormationInstance_Config", a.ItemGetWay_Config._n_ = "ItemGetWay_Config", a.MapWorld_Config._n_ = "MapWorld_Config", a.Audio_Config._n_ = "Audio_Config", a.MallActivity_Config._n_ = "MallActivity_Config", a.DaysGift_Config._n_ = "DaysGift_Config", a.SevenDayPay_Config._n_ = "SevenDayPay_Config", a.SubscribePrivilege_Config._n_ = "SubscribePrivilege_Config", a.GoodFund_Config._n_ = "GoodFund_Config", a.GrowUpFund_Config._n_ = "GrowUpFund_Config", a.ClockIn_Config._n_ = "ClockIn_Config", a.HangUpDrop_Config._n_ = "HangUpDrop_Config", a.FirstPay_Config._n_ = "FirstPay_Config", a.PayCount_Config._n_ = "PayCount_Config", a.DailyPayRewards_Config._n_ = "DailyPayRewards_Config", a.FavorLevel_Config._n_ = "FavorLevel_Config", a.LevelGift_Config._n_ = "LevelGift_Config", a.Enhance_Config._n_ = "Enhance_Config", a.RecommendFormation_Config._n_ = "RecommendFormation_Config", a.Question_Config._n_ = "Question_Config", a.GiftPack_Config._n_ = "GiftPack_Config", a.GuideStep_Config._n_ = "GuideStep_Config", a.GuideNPCDialog_Config._n_ = "GuideNPCDialog_Config", a.GuideFingerHint_Config._n_ = "GuideFingerHint_Config", a.ItemFavor_Config._n_ = "ItemFavor_Config", a.TriggerGiftType_Config._n_ = "TriggerGiftType_Config", a.TriggerGift_Config._n_ = "TriggerGift_Config", a.FeedbackGift_Config._n_ = "FeedbackGift_Config", a.GuideGroup_Config._n_ = "GuideGroup_Config", a.RandomName_Config._n_ = "RandomName_Config", a.CloudTreasureHunt_Config._n_ = "CloudTreasureHunt_Config", a.LuckyStarStage_Config._n_ = "LuckyStarStage_Config", a.LuckyStarRewards_Config._n_ = "LuckyStarRewards_Config", a.StrengthRank_Config._n_ = "StrengthRank_Config", a.ItemRecycle_Config._n_ = "ItemRecycle_Config", a.ItemPersonality_Config._n_ = "ItemPersonality_Config", a.SeniorArenaReward_Config._n_ = "SeniorArenaReward_Config", a.PersonalityStar_Config._n_ = "PersonalityStar_Config", a.CurrencyMapping_Config._n_ = "CurrencyMapping_Config", a.DaysPay_Config._n_ = "DaysPay_Config", a.ChosenGiftPack_Config._n_ = "ChosenGiftPack_Config", a.SecretAreaReward_Config._n_ = "SecretAreaReward_Config", a.GemQuality_Config._n_ = "GemQuality_Config", a.GemEquip_Config._n_ = "GemEquip_Config", a.MoonTemple_Config._n_ = "MoonTemple_Config", a.MoonShrine_Config._n_ = "MoonShrine_Config", a.MoonIntensify_Config._n_ = "MoonIntensify_Config", a.G123PlatformReward_Config._n_ = "G123PlatformReward_Config", a.CrossZoneRankStage_Config._n_ = "CrossZoneRankStage_Config", a.OuterReward_Config._n_ = "OuterReward_Config", a.HeroSkin_Config._n_ = "HeroSkin_Config", a.SecretActivityMap_Config._n_ = "SecretActivityMap_Config", a.SecretBlockType_Config._n_ = "SecretBlockType_Config", a.SecretDevice_Config._n_ = "SecretDevice_Config", a.ExclusiveWeapon_Config._n_ = "ExclusiveWeapon_Config", a.LuckyCharmStar_Config._n_ = "LuckyCharmStar_Config", a.LuckyCharmStarSkill_Config._n_ = "LuckyCharmStarSkill_Config", a.ExclusiveWeaponStar_Config._n_ = "ExclusiveWeaponStar_Config", a.ExclusiveWeaponLevel_Config._n_ = "ExclusiveWeaponLevel_Config", a.HeroIntroduce_Config._n_ = "HeroIntroduce_Config", a.SecretGrassType_Config._n_ = "SecretGrassType_Config", a.SecretTerrain_Config._n_ = "SecretTerrain_Config", a.SecretIslandPortal_Config._n_ = "SecretIslandPortal_Config", a.SecretShop_Config._n_ = "SecretShop_Config", a.HeroFetterStar_Config._n_ = "HeroFetterStar_Config", a.AllianceChallengeScore_Config._n_ = "AllianceChallengeScore_Config", a.AllianceChallengeDailyRewards_Config._n_ = "AllianceChallengeDailyRewards_Config", a.AllianceChallengeSeasonRewards_Config._n_ = "AllianceChallengeSeasonRewards_Config", a.CardChaosSummon_Config._n_ = "CardChaosSummon_Config", a.Embattle_Config._n_ = "Embattle_Config", a.EmbattleLevel_Config._n_ = "EmbattleLevel_Config", a.EmbattleSkillLevel_Config._n_ = "EmbattleSkillLevel_Config", a.ChampionScoreRace_Config._n_ = "ChampionScoreRace_Config", a.ChampionFinalRace_Config._n_ = "ChampionFinalRace_Config", a.AnswerCompetitionQuestion_Config._n_ = "AnswerCompetitionQuestion_Config", a.ItemMainSceneBackground_Config._n_ = "ItemMainSceneBackground_Config", a.PowerCore_Config._n_ = "PowerCore_Config", a.PowerCoreQuality_Config._n_ = "PowerCoreQuality_Config", a.PowerCoreLevel_Config._n_ = "PowerCoreLevel_Config", a.PowerCoreStar_Config._n_ = "PowerCoreStar_Config", a.NewbieMainTask_Config._n_ = "NewbieMainTask_Config", a.CrossZoneContinueWarRankStage_Config._n_ = "CrossZoneContinueWarRankStage_Config", a.CrossZoneContinueWarRankReward_Config._n_ = "CrossZoneContinueWarRankReward_Config", a.PlayerNationalFlag_Config._n_ = "PlayerNationalFlag_Config", a.ItemPetCard_Config._n_ = "ItemPetCard_Config", a.CurrencySymbol_Config._n_ = "CurrencySymbol_Config", a.HeroTalentLevel_Config._n_ = "HeroTalentLevel_Config", a.HeroTalentItemConsume_Config._n_ = "HeroTalentItemConsume_Config", a.HeroTalentSkill_Config._n_ = "HeroTalentSkill_Config", a.RankTopNotify_Config._n_ = "RankTopNotify_Config", a.PowerCoreForm_Config._n_ = "PowerCoreForm_Config", a.Share_Config._n_ = "Share_Config", a.TwentyOneGame_Config._n_ = "TwentyOneGame_Config", a.ItemCurrencyDiscount_Config._n_ = "ItemCurrencyDiscount_Config", a.PetBase_Config._n_ = "PetBase_Config", a.PetQuality_Config._n_ = "PetQuality_Config", a.CollectionStory_Config._n_ = "CollectionStory_Config", a.CollectionStoryStar_Config._n_ = "CollectionStoryStar_Config", a.CollectionStoryContent_Config._n_ = "CollectionStoryContent_Config", a.PetStar_Config._n_ = "PetStar_Config", a.PetLevel_Config._n_ = "PetLevel_Config", a.PetNest_Config._n_ = "PetNest_Config", a.SaintsWarMap_Config._n_ = "SaintsWarMap_Config", a.SaintsWarDifficultLevel_Config._n_ = "SaintsWarDifficultLevel_Config", a.SaintsWarResetData_Config._n_ = "SaintsWarResetData_Config", a.HeroLuckyCharm_Config._n_ = "HeroLuckyCharm_Config", a.HeroFetterLevel_Config._n_ = "HeroFetterLevel_Config", a.AllianceWarCityInfo_Config._n_ = "AllianceWarCityInfo_Config", a.StoryChapter_Config._n_ = "StoryChapter_Config", a.StoryDialogue_Config._n_ = "StoryDialogue_Config", a.TreasureHouseTreauseItem_Config._n_ = "TreasureHouseTreauseItem_Config", a.StrongholdWarMap_Config._n_ = "StrongholdWarMap_Config", a.StrongholdWarTerrain_Config._n_ = "StrongholdWarTerrain_Config", a.TreasureHouseSerials_Config._n_ = "TreasureHouseSerials_Config", a.AngelBase_Config._n_ = "AngelBase_Config", a.AngelLevel_Config._n_ = "AngelLevel_Config", a.AngelFavorLevel_Config._n_ = "AngelFavorLevel_Config", a.AngelGodAvatar_Config._n_ = "AngelGodAvatar_Config", a.AngelIntroduce_Config._n_ = "AngelIntroduce_Config", a.AngelFatePage_Config._n_ = "AngelFatePage_Config", a.AngelFate_Config._n_ = "AngelFate_Config", a.AngelGodSoulPos_Config._n_ = "AngelGodSoulPos_Config", a.AngelGodSoul_Config._n_ = "AngelGodSoul_Config", a.AngelGodSoulLevel_Config._n_ = "AngelGodSoulLevel_Config", a.PersonalityAddon_Config._n_ = "PersonalityAddon_Config", a.SkinAddon_Config._n_ = "SkinAddon_Config", a.StarPieceSuit_Config._n_ = "StarPieceSuit_Config", a.AllianceCityWarRankReward_Config._n_ = "AllianceCityWarRankReward_Config", a.AngelStar_Config._n_ = "AngelStar_Config", a.HeroChange_Config._n_ = "HeroChange_Config", a.StarPieceResonance_Config._n_ = "StarPieceResonance_Config", a.Designation_Config._n_ = "Designation_Config", a.StrategyBook_Config._n_ = "StrategyBook_Config", a.Strategy_Config._n_ = "Strategy_Config", a.Duke_Config._n_ = "Duke_Config", a.TreasureHouseAssociation_Config._n_ = "TreasureHouseAssociation_Config", a.DukeScrollLevel_Config._n_ = "DukeScrollLevel_Config", a.HeroTalentResonance_Config._n_ = "HeroTalentResonance_Config", a.TreasureHouseStone_Config._n_ = "TreasureHouseStone_Config", a.AngelGodSoulType_Config._n_ = "AngelGodSoulType_Config", a.FighterSpiritChapter_Config._n_ = "FighterSpiritChapter_Config", a.FighterSpiritGraph_Config._n_ = "FighterSpiritGraph_Config", a.FighterSpiritCatalog_Config._n_ = "FighterSpiritCatalog_Config", a.FighterSpiritItem_Config._n_ = "FighterSpiritItem_Config", a.EmojiImage_Config._n_ = "EmojiImage_Config", a.EmojiType_Config._n_ = "EmojiType_Config", a.GemGallerySlot_Config._n_ = "GemGallerySlot_Config", a.GemGalleryLevel_Config._n_ = "GemGalleryLevel_Config", a.ChaosTemple_Config._n_ = "ChaosTemple_Config", a.StarGarrison_Config._n_ = "StarGarrison_Config", a.StarGarrisonSlot_Config._n_ = "StarGarrisonSlot_Config", a.StarGarrisonAttrs_Config._n_ = "StarGarrisonAttrs_Config", a.HolyEquipGalleryLevel_Config._n_ = "HolyEquipGalleryLevel_Config", a.HolyEquipGallerySlot_Config._n_ = "HolyEquipGallerySlot_Config", a.HolyEquipResonance_Config._n_ = "HolyEquipResonance_Config", a.HolyEquipSlotAddon_Config._n_ = "HolyEquipSlotAddon_Config", a.ExclusiveWeaponGalleryLevel_Config._n_ = "ExclusiveWeaponGalleryLevel_Config", a.PuzzleGroup_Config._n_ = "PuzzleGroup_Config", a.PuzzleStage_Config._n_ = "PuzzleStage_Config", a.PuzzleStageAttr_Config._n_ = "PuzzleStageAttr_Config", a.PuzzleShape_Config._n_ = "PuzzleShape_Config", a.ItemPuzzle_Config._n_ = "ItemPuzzle_Config", a.HeroHandbookStar_Config._n_ = "HeroHandbookStar_Config", a.HeroHandbookLevel_Config._n_ = "HeroHandbookLevel_Config", a.OldPlayerRecall_Config._n_ = "OldPlayerRecall_Config", a.Artefact_Config._n_ = "Artefact_Config", a.ArtefactStar_Config._n_ = "ArtefactStar_Config", a.ArtefactForge_Config._n_ = "ArtefactForge_Config", a.ArtefactResonance_Config._n_ = "ArtefactResonance_Config", a.ArtefactResonanceAttrs_Config._n_ = "ArtefactResonanceAttrs_Config", a.ItemArtefactCard_Config._n_ = "ItemArtefactCard_Config", a.ArtefactRelic_Config._n_ = "ArtefactRelic_Config", a.ArtefactRelicMap_Config._n_ = "ArtefactRelicMap_Config", a.ElementTempleAttrs_Config._n_ = "ElementTempleAttrs_Config", a.ElementTempleResonance_Config._n_ = "ElementTempleResonance_Config", a.ElementTempleBless_Config._n_ = "ElementTempleBless_Config", a.HeroStarAttrs_Config._n_ = "HeroStarAttrs_Config", a.PetShowAttr_Config._n_ = "PetShowAttr_Config", a.PetShowHouse_Config._n_ = "PetShowHouse_Config", a.LuckyCharmShowHouse_Config._n_ = "LuckyCharmShowHouse_Config", a.LuckyCharmStar2_Config._n_ = "LuckyCharmStar2_Config", a.PowerCoreGallerySlot_Config._n_ = "PowerCoreGallerySlot_Config", a.PowerCoreGalleryLevel_Config._n_ = "PowerCoreGalleryLevel_Config", a.CommonAttrs_Config._n_ = "CommonAttrs_Config", a.HeroSkinLevel_Config._n_ = "HeroSkinLevel_Config", a.HeroSkinAttrs_Config._n_ = "HeroSkinAttrs_Config", a.HolyEquipStep_Config._n_ = "HolyEquipStep_Config", a.HolyEquipStepAttrs_Config._n_ = "HolyEquipStepAttrs_Config", a.CashMallPage_Config._n_ = "CashMallPage_Config", a.ChatWindow_Config._n_ = "ChatWindow_Config", a.WarCity_Config._n_ = "WarCity_Config", a.StarGemMasterLevel_Config._n_ = "StarGemMasterLevel_Config", a.SuperWeapon_Config._n_ = "SuperWeapon_Config", a.SuperWeaponStar_Config._n_ = "SuperWeaponStar_Config", a.SuperWeaponLevel_Config._n_ = "SuperWeaponLevel_Config", a.AngelLevelPersonalAttrs_Config._n_ = "AngelLevelPersonalAttrs_Config", a.StarLightSecretLandMap_Config._n_ = "StarLightSecretLandMap_Config", a.AngelHandBookSublimate_Config._n_ = "AngelHandBookSublimate_Config", a.GodLandDuelRankStage_Config._n_ = "GodLandDuelRankStage_Config", a.GodLandDuelRankRewards_Config._n_ = "GodLandDuelRankRewards_Config", a.VnPayMethod_Config._n_ = "VnPayMethod_Config", a.WarStage_Config._n_ = "WarStage_Config", a.WarRankRewards_Config._n_ = "WarRankRewards_Config", a.HeroJob_Config._n_ = "HeroJob_Config", a.ItemQuality_Config._n_ = "ItemQuality_Config", a.CorsairMap_Config._n_ = "CorsairMap_Config", a.CorsairGridType_Config._n_ = "CorsairGridType_Config", a.PlayerRobot_Config._n_ = "PlayerRobot_Config", a.DailyBuff_Config._n_ = "DailyBuff_Config", a.NewPersonalityBase_Config._n_ = "NewPersonalityBase_Config", a.NewPersonality_Config._n_ = "NewPersonality_Config", a.NewPersonalityAction_Config._n_ = "NewPersonalityAction_Config", a.NewYearWeapon_Config._n_ = "NewYearWeapon_Config", a.NewYearWeaponLevel_Config._n_ = "NewYearWeaponLevel_Config", a.NewYearWeaponStar_Config._n_ = "NewYearWeaponStar_Config", a.SeasonWeapon_Config._n_ = "SeasonWeapon_Config", a.ItemEntry_Config._n_ = "ItemEntry_Config", a.ItemPotion_Config._n_ = "ItemPotion_Config", a.PetRefineLevel_Config._n_ = "PetRefineLevel_Config", a.PetEntry_Config._n_ = "PetEntry_Config", a.SummonWish_Config._n_ = "SummonWish_Config", a.StrongPathTask_Config._n_ = "StrongPathTask_Config", a.ItemPrivilegeToken_Config._n_ = "ItemPrivilegeToken_Config", a.RankMatch_Config._n_ = "RankMatch_Config", a.InteractiveSpineAvatar_Config._n_ = "InteractiveSpineAvatar_Config", a.MallPage_Config._n_ = "MallPage_Config", a.GameModuleUnlockPop_Config._n_ = "GameModuleUnlockPop_Config", a.MagicCircleBase_Config._n_ = "MagicCircleBase_Config", a.MagicCircleQuality_Config._n_ = "MagicCircleQuality_Config", a.MagicCircleStar_Config._n_ = "MagicCircleStar_Config", a.MagicCircleLevel_Config._n_ = "MagicCircleLevel_Config", a.MagicCircleTalent_Config._n_ = "MagicCircleTalent_Config", a.ItemMagicCircle_Config._n_ = "ItemMagicCircle_Config", a.GameModuleGuideGroup_Config._n_ = "GameModuleGuideGroup_Config", a.AllianceRedPacket_Config._n_ = "AllianceRedPacket_Config", a.GameModuleUnlockGuideStep_Config._n_ = "GameModuleUnlockGuideStep_Config", a.AllianceBossBox_Config._n_ = "AllianceBossBox_Config", a.AllianceBOSSPowerDamage_Config._n_ = "AllianceBOSSPowerDamage_Config", a.AllianceBOSSRankReward_Config._n_ = "AllianceBOSSRankReward_Config", a.AllianceBOSSSkill_Config._n_ = "AllianceBOSSSkill_Config", a.StarPowerAwaken_Config._n_ = "StarPowerAwaken_Config", a.StarPowerSuppress_Config._n_ = "StarPowerSuppress_Config", a.AssaultOperationMap_Config._n_ = "AssaultOperationMap_Config", a.AssaultOperationResourceItem_Config._n_ = "AssaultOperationResourceItem_Config", a.AssaultOperationGrid_Config._n_ = "AssaultOperationGrid_Config", a.WorldBossBonus_Config._n_ = "WorldBossBonus_Config", a.WorldBossRewards_Config._n_ = "WorldBossRewards_Config", a.DailySelection_Config._n_ = "DailySelection_Config", a.DailySelectionPack_Config._n_ = "DailySelectionPack_Config", a.AJGlobalParam_Config._n_ = "AJGlobalParam_Config", a.AJAttribute_Config._n_ = "AJAttribute_Config", a.AJRoleLevel_Config._n_ = "AJRoleLevel_Config", a.AJRoleAdvanced_Config._n_ = "AJRoleAdvanced_Config", a.AJRoleTalent_Config._n_ = "AJRoleTalent_Config", a.AJRandomSkill_Config._n_ = "AJRandomSkill_Config", a.AJMap_Config._n_ = "AJMap_Config", a.AJEvent_Config._n_ = "AJEvent_Config", a.AJMapEvent_Config._n_ = "AJMapEvent_Config", a.AJEventEffect_Config._n_ = "AJEventEffect_Config", a.AJMonster_Config._n_ = "AJMonster_Config", a.AJSkill_Config._n_ = "AJSkill_Config", a.RewardMailType_Config._n_ = "RewardMailType_Config", a.IntArray_Config._n_ = "IntArray_Config", a.FloatArray_Config._n_ = "FloatArray_Config", a.DoubleArray_Config._n_ = "DoubleArray_Config", a.Version_Config._n_ = "Version_Config", a.Locale_Config._n_ = "Locale_Config", a.ConfigData_List._n_ = "ConfigData_List", t.exports = a, cc._RF.pop()
    }, {
        "protobufjs/minimal": void 0
    }],
    Consts: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5ebf4ydqhJCwLH/7JQsy9WY", "Consts");
        var o = this && this.__createBinding || (Object.create ? function(e, t, n, o) {
                void 0 === o && (o = n), Object.defineProperty(e, o, {
                    enumerable: !0,
                    get: function() {
                        return t[n]
                    }
                })
            } : function(e, t, n, o) {
                void 0 === o && (o = n), e[o] = t[n]
            }),
            r = this && this.__exportStar || function(e, t) {
                for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n)
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), r(e("./GameEventIds"), n), r(e("./GlobalSetting"), n), r(e("./GameServerConsts"), n), r(e("./Etc"), n), r(e("../ShareConsts/OpCode"), n), r(e("../ShareConsts/ErrCode"), n), r(e("../ShareConsts/EnumType"), n), r(e("../ShareConsts/BattleConsts"), n), cc._RF.pop()
    }, {
        "../ShareConsts/BattleConsts": "BattleConsts",
        "../ShareConsts/EnumType": "EnumType",
        "../ShareConsts/ErrCode": "ErrCode",
        "../ShareConsts/OpCode": "OpCode",
        "./Etc": "Etc",
        "./GameEventIds": "GameEventIds",
        "./GameServerConsts": "GameServerConsts",
        "./GlobalSetting": "GlobalSetting"
    }],
    ConsumeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "198adBXsAlGs6N37vYn2dqo", "ConsumeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("./CurrencyBarItem"),
            u = e("./ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.CurrencyBarItem = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    if (!this._itemComponent) {
                        var o = cc.instantiate(e);
                        o.y = -20, o.setParent(this.ItemNode), this._itemComponent = o.getComponent(u.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: t
                    }, u.ItemComponentType.ItemCommon), this.CurrencyBarItem.HideIcon(), this.CurrencyBarItem.Init(t, !1, null, n)
                }, t.prototype.SetFixedWidth = function(e) {
                    this.CurrencyBarItem.SetFixedWidth(e)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && l.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, i([h(cc.Node)], t.prototype, "ItemNode", void 0), i([h(c.default)], t.prototype, "CurrencyBarItem", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CurrencyBarItem": "CurrencyBarItem",
        "./ItemComponent": "ItemComponent"
    }],
    ContinuePayProgressComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d4f84V/+N1FJqDiYFZMxWTC", "ContinuePayProgressComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../ShareConsts/EnumType"),
            l = e("./ContinuePayProgressRewardComponent"),
            c = e("../../Components/DataCenter"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomProgressBar = null, t.Mask = null, t.AdvanceBar = null, t.Tips = null, t.Hint = null, t.RewardNode = null, t._tasksContinuous = [], t._tasksDaily = [], t.TASK_WIDTH = 152, t.PROGRESS_BAR_WIDTH = 872, t._progressRewards = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Hint.string = "continuousCharge_newHint".ToUILocale()
                }, t.prototype.Init = function(e, t) {
                    this._configData = e, this._itemPrefab = t, this._isInit || (this.SetTask(), this.SetProgress(), this.SetProgressReward(), this._isInit = !0), this._continuousLastTaskModel = this.GetTaskModel(this._configData._id, this._tasksContinuous[this._tasksContinuous.length - 1].Id), this.RefreshProgressReward(), this.SetTips()
                }, t.prototype.SetTask = function() {
                    for (var e = 0; e < this._configData._Tasks.length; e++) this._configData._Tasks[e].Condition[0] == s.TaskConditionType.PayCount ? this._tasksDaily.push(this._configData._Tasks[e]) : this._tasksContinuous.push(this._configData._Tasks[e])
                }, t.prototype.SetProgress = function() {
                    var e = this._tasksContinuous.length;
                    this._totalWidth = e * this.TASK_WIDTH - this.TASK_WIDTH / 2 + 30, this.CustomProgressBar.width = this._totalWidth
                }, t.prototype.SetProgressReward = function() {
                    for (var e = 0; e < this._tasksContinuous.length; e++) {
                        if (!this._progressRewards[e]) {
                            var t = cc.instantiate(this.RewardNode);
                            t.setParent(this.CustomProgressBar), t.x = (e + 1) * this.TASK_WIDTH - this.TASK_WIDTH / 2 + 20, this._progressRewards[e] = t.getComponent(l.default)
                        }
                        this._progressRewards[e].node.active = !0;
                        var n = this.GetTaskModel(this._configData._id, this._tasksContinuous[e].Id);
                        this._progressRewards[e].SetProgressReward(n, this._configData, this._tasksContinuous[e], this._itemPrefab)
                    }
                }, t.prototype.RefreshProgressReward = function() {
                    for (var e, t = 0; t < this._tasksContinuous.length; t++) this._tasksContinuous[t].TotalCount <= this._continuousLastTaskModel.Progress && (e = this._tasksContinuous[t]);
                    for (this.Mask.width = e ? this.GetProgress(e) * (this._totalWidth - 8) : 0, t = 0; t < this._progressRewards.length; t++) {
                        var n = this.GetTaskModel(this._configData._id, this._tasksContinuous[t].Id);
                        this._progressRewards[t].SetItemState(n)
                    }
                }, t.prototype.GetTaskModel = function(e, t) {
                    return c.DataCenter.Instance.GetDataById(a.UserTask_Model, 1e4 * e + t)
                }, t.prototype.GetProgress = function(e) {
                    for (var t = this.GetTaskModel(this._configData._id, e.Id).Progress, n = 0, o = 0; o < this._tasksContinuous.length; o++) t >= this._tasksContinuous[o].TotalCount && (n = o + 1);
                    var r = n >= this._tasksContinuous.length ? null : this._tasksContinuous[n],
                        i = n * this.TASK_WIDTH - this.TASK_WIDTH / 2 + 20,
                        a = 0;
                    return r ? (this._tasksContinuous.length, a = (t - e.TotalCount) / (r.TotalCount - e.TotalCount) * (this.TASK_WIDTH + 10)) : i += 10, (i + a) / this._totalWidth
                }, t.prototype.SetTips = function() {
                    for (var e = 0, t = 0; t < this._tasksContinuous.length; t++) this._tasksContinuous[t].TotalCount <= this._continuousLastTaskModel.Progress && e++;
                    this.Tips.string = "continuousCharge_newTips".ToUILocale().Fmt(e)
                }, i([d(cc.Node)], t.prototype, "CustomProgressBar", void 0), i([d(cc.Node)], t.prototype, "Mask", void 0), i([d(cc.Node)], t.prototype, "AdvanceBar", void 0), i([d(cc.RichText)], t.prototype, "Tips", void 0), i([d(cc.Label)], t.prototype, "Hint", void 0), i([d(cc.Node)], t.prototype, "RewardNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/DataCenter": "DataCenter",
        "./ContinuePayProgressRewardComponent": "ContinuePayProgressRewardComponent"
    }],
    ContinuePayProgressRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "683a7PiDhxKmKyHwZzEvnJ6", "ContinuePayProgressRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./ItemComponent"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../Components/Components"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ValueLabel = null, t.PointSprite = null, t.ItemContainer = null, t.RedDot = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    s.Game.EventDispatcher.On(l.EventKeys.EVENT_CONTINUOUSCHARGE_PROGRESS_SCROLLVIEW, this.CheckVisible, this), s.Game.EventDispatcher.On(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    s.Game.EventDispatcher.Off(l.EventKeys.EVENT_CONTINUOUSCHARGE_PROGRESS_SCROLLVIEW, this.CheckVisible, this), s.Game.EventDispatcher.Off(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), cc.Tween.stopAllByTarget(this.ItemContainer)
                }, t.prototype.OnItemClick = function(e, t) {
                    if (this.ItemContainer && -1 != this.ItemContainer.children.indexOf(t)) {
                        if (this._taskModel.Progress >= this._task.TotalCount && !this._taskModel.IsCompleted) {
                            var n = new p.Req_Activity_CommonTaskReward;
                            return n.ActivityId = this._configData._id, n.TaskIds = [this._task.Id], void c.RpcComponent.Instance.Call(n, this.ResponseRewardSuccess.bind(this))
                        }
                        u.UIUtlity.ShowItemTip(t.getComponent(a.ItemComponent).ItemId, t)
                    }
                }, t.prototype.ResponseRewardSuccess = function(e) {
                    u.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.CheckVisible = function(e) {
                    if (this.node) {
                        var t = this.node.getBoundingBoxToWorld().intersects(e);
                        this.node.opacity = t ? 255 : 0
                    }
                }, t.prototype.SetProgressReward = function(e, t, n, o) {
                    this._taskModel = e, this._configData = t, this._itemPrefab = o, this._task = n, this._originPos = new cc.Vec3(0, 72, 0), this._overPos = new cc.Vec3(0, 100, 0), this.SetReward()
                }, t.prototype.SetReward = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._itemComponent = e.getComponent(a.ItemComponent)
                    }
                    var t = this._task.Rewards[0].Items;
                    this._itemComponent.Init({
                        ItemId: t[0],
                        Count: t[1]
                    }), this.ValueLabel.string = "continuousCharge_task_day".ToUILocale().Fmt(this._task.TotalCount)
                }, t.prototype.SetItemState = function(e) {
                    this._taskModel = e;
                    var t = !e.IsCompleted && e.Progress >= this._task.TotalCount;
                    this._itemComponent.SetReceivedTagState(e.IsCompleted), e.Progress >= this._task.TotalCount ? this.PointSprite.spriteFrame = u.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_on") : this.PointSprite.spriteFrame = u.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_off"), this.RedDot.active = !!t
                }, i([f(cc.Label)], t.prototype, "ValueLabel", void 0), i([f(cc.Sprite)], t.prototype, "PointSprite", void 0), i([f(cc.Node)], t.prototype, "ItemContainer", void 0), i([f(cc.Node)], t.prototype, "RedDot", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ContinuousChargeProgressReward: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "40743BIHXVGg4D4bQs/49Yg", "ContinuousChargeProgressReward");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./ItemComponent"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../Components/Components"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ValueLabel = null, t.PointSprite = null, t.ItemContainer = null, t.RewardNode = null, t.NodeSprite = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    s.Game.EventDispatcher.On(l.EventKeys.EVENT_CONTINUOUSCHARGE_PROGRESS_SCROLLVIEW, this.CheckVisible, this), s.Game.EventDispatcher.On(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    s.Game.EventDispatcher.Off(l.EventKeys.EVENT_CONTINUOUSCHARGE_PROGRESS_SCROLLVIEW, this.CheckVisible, this), s.Game.EventDispatcher.Off(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), cc.Tween.stopAllByTag(d.PanelConfig.ActivityContinuousChargePanel.Id)
                }, t.prototype.SetProgressReward = function(e, t, n, o) {
                    this._taskModel = e, this._configData = t, this._itemPrefab = o, this._task = n, this._originPos = new cc.Vec3(0, 80, 0), this._overPos = new cc.Vec3(0, 100, 0), this.SetReward()
                }, t.prototype.SetReward = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._itemComponent = e.getComponent(a.ItemComponent)
                    }
                    var t = this._task.Rewards[0].Items;
                    this._itemComponent.Init({
                        ItemId: t[0],
                        Count: t[1]
                    }), this.ValueLabel.string = "continuousCharge_task_day".ToUILocale().Fmt(this._task.TotalCount)
                }, t.prototype.SetItemState = function(e) {
                    this._taskModel = e;
                    var t = !e.IsCompleted && e.Progress >= this._task.TotalCount;
                    this._itemComponent.SetReceivedTagState(e.IsCompleted), e.Progress >= this._task.TotalCount ? (this.PointSprite.spriteFrame = u.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arena_progress_checkpoint"), this.ValueLabel.node.color = (new cc.Color).fromHEX("#FFE685"), this.ValueLabel.node.getComponent(cc.LabelOutline).color = (new cc.Color).fromHEX("#684C1B")) : (this.PointSprite.spriteFrame = u.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeLock"), this.ValueLabel.node.color = (new cc.Color).fromHEX("#FFFFFF"), this.ValueLabel.node.getComponent(cc.LabelOutline).color = (new cc.Color).fromHEX("#221611")), t ? null == this._tween && (this._tween = cc.tween(this.RewardNode).tag(d.PanelConfig.ActivityContinuousChargePanel.Id).repeatForever(cc.tween().to(1.5, {
                        position: this._overPos
                    }).to(1.5, {
                        position: this._originPos
                    })).start()) : null != this._tween && (cc.Tween.stopAllByTarget(this.RewardNode), this.RewardNode.setPosition(this._originPos), this._tween = null)
                }, t.prototype.OnItemClick = function(e, t) {
                    if (this.ItemContainer && -1 != this.ItemContainer.children.indexOf(t)) {
                        if (this._taskModel.Progress >= this._task.TotalCount && !this._taskModel.IsCompleted) {
                            var n = new p.Req_Activity_CommonTaskReward;
                            return n.ActivityId = this._configData._id, n.TaskIds = [this._task.Id], void c.RpcComponent.Instance.Call(n, this.ResponseRewardSuccess.bind(this))
                        }
                        u.UIUtlity.ShowItemTip(t.getComponent(a.ItemComponent).ItemId, t)
                    }
                }, t.prototype.ResponseRewardSuccess = function(e) {
                    u.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.CheckVisible = function(e) {
                    if (this.node) {
                        var t = this.node.getBoundingBoxToWorld().intersects(e);
                        this.node.opacity = t ? 255 : 0
                    }
                }, i([y(cc.Label)], t.prototype, "ValueLabel", void 0), i([y(cc.Sprite)], t.prototype, "PointSprite", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Node)], t.prototype, "RewardNode", void 0), i([y(cc.Sprite)], t.prototype, "NodeSprite", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ContinuousFightPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f732flPbr1Ao6sYrHuiNVP8", "ContinuousFightPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Components/ItemComponent"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Components/CustomToggle"),
            C = e("../../../Util/TimeUtil"),
            v = e("../../../Consts/Consts"),
            b = e("../../Components/Components"),
            S = e("../Battle/BattleManager"),
            w = e("../Battle/BattleData"),
            P = e("../Components/ElementEffectItem"),
            A = e("../Components/ContinuousFightTopThreeItem"),
            T = e("../Components/CustomProgressBar"),
            R = e("../../RedDot/RedDotManager"),
            L = e("./NewAssistantPanel"),
            k = e("./CrossServerRankEditTeamPanel"),
            O = e("../Components/GameModuleGuideManager"),
            M = e("../../Auxiliary/GameRecord"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property,
            E = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new h.UIPanelType(h.UINodeType.Fixed, !0), t.NameLabel = null, t.TimeDescLabel = null, t.TimeValueLabel = null, t.RuleButton = null, t.DetailButton = null, t.RewardLabel = null, t.RewardNode = null, t.NoRewardLabel = null, t.DailyButton = null, t.DailyLabel = null, t.RankDelayLabel = null, t.TopThreeNodes = [], t.RankButton = null, t.RankLabel = null, t.ToggleLayout = null, t.ToggleScroller = null, t.ToggleScrollerParent = null, t.Element = null, t.ElementBtn = null, t.PowerLabel = null, t.HeroContent = null, t.GradeImage = null, t.GradeLabel = null, t.GradeScore = null, t.GradeScoreProgressBar = null, t.ScoreProgressLabel = null, t.ReturnButton = null, t.MatchingButton = null, t.MatchingLabel = null, t.MatchTimesLabel = null, t.StopAssistantButton = null, t.StopAssistantLabel = null, t.ReportButton = null, t.ReportLabel = null, t.FormationButton = null, t.FormationLabel = null, t.ShopBtn = null, t.ShopBtnLabel = null, t._moduleGuideGroupIds = [10001, 10002, 10003, 10004, 10005], t._guideStepIndex = 0, t._guideGroupId = 0, t._deadLine = 0, t._itemNodes = [], t._toggles = [], t._topThreeNodes = [], t._bubbleNdoes = [], t._heroNodes = [], t._selectTog = 0, t._myTeamDatas = [], t._headIcons = null, t._headFrames = null, t._isMatchFinished = !1, t._isMatching = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerRankPanel/PNG/CrossServerRank", cc.SpriteAtlas), o = this.LoadDynamicAsset(I.BundlePath.ItemComponent, cc.Prefab), r = this.LoadDynamicAsset("Buttons/Toggle1", cc.Prefab), i = this.LoadDynamicAsset("CrossServerRankPanel/SubItems/ContinuousFightTopThreeItem", cc.Prefab), [4, Promise.all([t, o, r, i]).then(function(e) {
                                        n.CrossServerRankAtlas = e[0], a._itemPrefab = e[1], a._togglePrefab = e[2], a._topThreePrefab = e[3]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(g.EventKeys.EVENT_CONTINUOUS_FIGHT_UPDATE, this.OnUpdateContent, this), c.Game.EventDispatcher.On(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(g.EventKeys.EVENT_CONTINUOUS_FIGHT_UPDATE, this.OnUpdateContent, this), c.Game.EventDispatcher.Off(g.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.NameLabel.string = "assistant_continuousFight".ToUILocale(), this.TimeDescLabel.string = "crossServerRank_remain".ToUILocale(), this.RewardLabel.string = "continuousFight_settle_reward".ToUILocale(), this.DailyLabel.string = "AllZoneChampionShip_Reward".ToUILocale(), this.MatchingLabel.string = "crossServerRank_matching".ToUILocale(), this.ReportLabel.string = "allianceWar_report".ToUILocale(), this.FormationLabel.string = "formation_title".ToUILocale(), this.RankLabel.string = "holyArea_rank".ToUILocale(), this.NoRewardLabel.string = "temporaryNoReward".ToUILocale(), this.RankDelayLabel.string = "continuousFight_rank_delay".ToUILocale(), this.StopAssistantLabel.string = "continuousFight_stop".ToUILocale(), this.ShopBtnLabel.string = 103..ToShopName(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.DailyButton.node.on("click", this.OnDailyButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.MatchingButton.node.on("click", this.OnMatchingButtonClick, this), this.ReportButton.node.on("click", this.OnReportButtonClick, this), this.FormationButton.node.on("click", this.OnFormationButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.ElementBtn.node.on("click", this.OnClickElement, this), this.StopAssistantButton.node.on("click", this.OnClickStopAssistantButton, this), this.ShopBtn.node.on("click", this.OnClickShop, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this._isMatching = !1
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (e.prototype.DisPlay.call(this), this._isReDisplay = t, t) this.SetUIContent();
                    else {
                        var o = new l.Req_Map_CrossZoneContinueWarRankEnter;
                        b.RpcComponent.Instance.Call(o, function(e) {
                            n._data = e, b.DataCenter.Instance.SetTempData("ContinuousFightFormation", e.MyScore), R.RedDotManager.Instance.RedDot.ContinuousFightFormationBtn.NeedRefresh = !0, n.SetUIContent(), n.ShowGameGuid()
                        })
                    }
                }, t.prototype.SetUIContent = function() {
                    this._curConfig = n.GetGradeByScore(this._data.MyScore), this.InitNodes(), this.SetTime(), this._isReDisplay || this.SetRewards(), this.SetTopThree(), this.SetToggles(), this.SetTeamNodes(), this.SetMyTeamsData(), this.SetBottomNode(), this.SetMatchButton(), this.BindRedDot()
                }, t.prototype.InitNodes = function() {
                    this._toggles.forEach(function(e) {
                        e.active = !1
                    }), this._bubbleNdoes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetTime = function() {
                    this._isReDisplay || (this._deadLine = C.TimeUtil.GetMondayClock0Ts(d.RpcComponent.Instance.ServerTime) + 7 * v.Etc.DayDuration - 3 * v.Etc.HourDuration, this.CountDownTime(), this.schedule(this.CountDownTime, 1))
                }, t.prototype.CountDownTime = function() {
                    var e = d.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    if (t < 0) return this.TimeValueLabel.string = "crossServerRank_end".ToUILocale(), void this.unschedule(this.CountDownTime);
                    this.TimeValueLabel.string = y.default.ActivityTimeLeftFormat(t)
                }, t.prototype.SetRewards = function() {
                    var e = this,
                        t = n.GetRewardsByGradeId(this._curConfig.Id),
                        o = null;
                    (o = this._data.MyDuanRank ? t.find(function(t) {
                        return e._data.MyDuanRank >= t.RankRange[0] && e._data.MyDuanRank <= t.RankRange[1] || e._data.MyDuanRank >= t.RankRange[0] && 0 == t.RankRange[1]
                    }) : t.find(function(e) {
                        return 0 == e.RankRange[1]
                    })) ? (this.RewardNode.active = !0, this.NoRewardLabel.node.active = !1, o.Rewards.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.RewardNode, e._itemNodes[n] = o
                        }
                        e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(m.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        }, m.ItemComponentType.ItemCommon)
                    })) : (this.RewardNode.active = !1, this.NoRewardLabel.node.active = !0)
                }, t.prototype.SetTopThree = function() {
                    if (this._rankData) this.SetTopThreeNode(this._rankData);
                    else {
                        var e = new l.Req_Player_GetRank;
                        e.RankType = p.RankTypeId.CrossZoneContinueWarRank, e.CustomCount = 3, b.RpcComponent.Instance.Call(e, this.SetTopThreeNode.bind(this))
                    }
                }, t.prototype.SetTopThreeNode = function(e) {
                    this._rankData = e;
                    for (var t = 0; t < 3; t++) {
                        if (!this._topThreeNodes[t]) {
                            var n = cc.instantiate(this._topThreePrefab);
                            n.parent = this.TopThreeNodes[t], this._topThreeNodes[t] = n
                        }
                        var o = null;
                        e.Data.Rows && e.Data.Rows[t] && (o = e.Data.Rows[t]), this._topThreeNodes[t].getComponent(A.default).Init(o, t)
                    }
                }, t.prototype.SetToggles = function() {
                    var e = this._curConfig.FormationNum;
                    this.ToggleLayout.active = e <= 5, this.ToggleScroller.active = e > 5;
                    for (var t = e > 5 ? this.ToggleScroller : this.ToggleLayout, n = 0; n < e; n++) {
                        if (!this._toggles[n]) {
                            var o = cc.instantiate(this._togglePrefab);
                            o.parent = t, o.name = n.toString(), this._toggles[n] = o, this._toggles[n].on("toggle", this.OnToggleSwitch, this)
                        }
                        this._toggles[n].active = !0;
                        var r = this._toggles[n].getComponent(_.default);
                        r.Init("formation_index".ToUILocale().Fmt(n + 1)), r.isChecked = n == this._selectTog
                    }
                }, t.prototype.CheckHasHeroInFormation = function(e) {
                    var t = [],
                        n = b.DataCenter.Instance.GetDataById(l.UserFormation_Model, e);
                    return n && n.HeroIds && n.HeroIds.forEach(function(e) {
                        e > 0 && t.push(e)
                    }), t.length > 0
                }, t.prototype.SetTeamNodes = function() {
                    var e = [],
                        t = [],
                        o = 0,
                        r = n.formationTypes[this._selectTog],
                        i = b.DataCenter.Instance.GetDataById(l.UserFormation_Model, r);
                    i && i.HeroIds && i.HeroIds.forEach(function(n) {
                        if (n > 0) {
                            var r = b.DataCenter.Instance.GetDataById(l.UserHero_Model, n);
                            r && (o += r.Power), e.push(n)
                        }
                        t.push(n)
                    }), this.Element.InitBySid(e), this.PowerLabel.string = o.toString();
                    for (var a = 0; a < 5; a++) {
                        if (!this._heroNodes[a]) {
                            var s = cc.instantiate(this._itemPrefab);
                            s.parent = this.HeroContent, this._heroNodes[a] = s
                        }
                        var c = this._heroNodes[a].getComponent(m.ItemComponent);
                        if (t[a] > 0) {
                            var u = b.DataCenter.Instance.GetDataById(l.UserHero_Model, t[a]);
                            this._heroNodes[a].name = t[a].toString(), c.Init(u, m.ItemComponentType.HeroInfo)
                        } else this._heroNodes[a].name = "0", c.SetHeroSimpleState(), c.SetCustomIcon(f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180)
                    }
                }, t.prototype.SetBottomNode = function() {
                    var e = n.GetGradeByScore(this._data.MyScore);
                    this.GradeImage.spriteFrame = n.CrossServerRankAtlas.getSpriteFrame("badge_" + e.Id), this.GradeLabel.string = "continuousFight_current_grade".ToUILocale().Fmt(e.Id.ToContinueWarRankStageName()), this.GradeScore.string = "continuousFight_score".ToUILocale().Fmt(this._data.MyScore);
                    var t = this.GetProgressData();
                    this.ScoreProgressLabel.string = "{0}/{1}".Fmt(t[0], t[1]), this.GradeScoreProgressBar.progress = t[0] / t[1]
                }, t.prototype.SetMatchButton = function() {
                    if (n.IsAssistantComplete) this.MatchingButton.node.active = !1, this.StopAssistantButton.node.active = !0;
                    else {
                        var e, t = b.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneContinueWarRankDailyFreeChallengeCount"),
                            o = b.DataCenter.Instance.GetIntData(p.UserDataKey.CrossZoneContinueWarRankChallengeCount);
                        e = t - o > 0 ? t - o : 0, this.MatchTimesLabel.string = "crossServerRank_challengeTimes".ToUILocale().Fmt(e, t), this.MatchingButton.node.active = !0, this.StopAssistantButton.node.active = !1
                    }
                }, t.prototype.BindRedDot = function() {
                    R.RedDotManager.Instance.Bind(this.MatchingButton.node, R.RedDotManager.Instance.RedDot.ContinuousFightMatchBtn), R.RedDotManager.Instance.Bind(this.DailyButton.node, R.RedDotManager.Instance.RedDot.ContinuousFightDailyRewardBtn), R.RedDotManager.Instance.Bind(this.FormationButton.node, R.RedDotManager.Instance.RedDot.ContinuousFightFormationBtn), R.RedDotManager.Instance.RefreshRedDotNode(R.RedDotManager.Instance.RedDot.ContinuousFightNode)
                }, t.prototype.GetProgressData = function() {
                    var e = this,
                        t = [],
                        n = b.ConfigDataComponent.Instance.GetArrayConfig(u.CrossZoneContinueWarRankStage_Config),
                        o = 0,
                        r = 0,
                        i = n[0].Score,
                        a = n[0].Score;
                    n.forEach(function(t) {
                        e._data.MyScore >= t.Score && (o = t.Score), i = Math.min(i, t.Score), a = Math.max(a, t.Score)
                    });
                    for (var s = 0; s < n.length; s++)
                        if (this._data.MyScore < n[s].Score) {
                            r = n[s].Score;
                            break
                        } return o ? r ? o && r && (t = [this._data.MyScore - o, r - o]) : t = [this._data.MyScore, a] : t = [this._data.MyScore, r], t
                }, t.prototype.SetMyTeamsData = function() {
                    this._myTeamDatas = [];
                    for (var e = 0; e < this._curConfig.FormationNum; e++) {
                        var t = n.formationTypes[e],
                            o = b.DataCenter.Instance.GetDataById(l.UserFormation_Model, t);
                        this._myTeamDatas.push(o)
                    }
                    this._myTeamDatas.forEach(function(e) {
                        if (e)
                            for (var t = 0; t < 5; t++) e.HeroIds[t] || (e.HeroIds[t] = 0)
                    })
                }, t.prototype.OnDailyButtonClick = function() {
                    h.UIManager.Instance.ShowUIPanel(I.PanelConfig.CrossServerRankTaskRewardPanel.Path, v.TaskType.CrossZoneContinueWarRankDaily, p.GameModuleType.ContinuousFight)
                }, t.prototype.OnDetailButtonClick = function() {
                    this._rewards || this.SetRewardsData(), h.UIManager.Instance.ShowUIPanel(I.PanelConfig.ContinuousFightRewardPanel.Path, this._rewards, "assistant_continuousFight".ToUILocale())
                }, t.prototype.SetRewardsData = function() {
                    var e = this,
                        t = b.ConfigDataComponent.Instance.GetArrayConfig(u.CrossZoneContinueWarRankReward_Config);
                    this._rewards = {}, t.forEach(function(t) {
                        if (e._rewards[t.DuanId]) e._rewards[t.DuanId].push(t);
                        else {
                            var n = [];
                            n.push(t), e._rewards[t.DuanId] = n
                        }
                    })
                }, t.prototype.OnMatchingButtonClick = function() {
                    if (7 == C.TimeUtil.GetWeekDay(b.RpcComponent.Instance.ServerTime)) {
                        var e = C.TimeUtil.Get0ClockTs(b.RpcComponent.Instance.ServerTime),
                            t = e + 756e5,
                            o = e + 864e5;
                        if (b.RpcComponent.Instance.ServerTime >= t && b.RpcComponent.Instance.ServerTime < o) return f.UIUtlity.ShowFloatingHint("allianceWar_settleing".ToUILocale())
                    }
                    var r = b.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneContinueWarRankDailyFreeChallengeCount");
                    if (b.DataCenter.Instance.GetIntData(p.UserDataKey.CrossZoneContinueWarRankChallengeCount) >= r) f.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale());
                    else {
                        if (!this.CheckHasHeroInFormation(n.formationTypes[0])) return f.UIUtlity.ShowFloatingHint("continuousFight_set_first_team".ToUILocale());
                        if (!this._isMatching)
                            if (S.BattleManager.Instance.IsInBattle(p.MapType.CrossZoneContinueWarRank)) f.UIUtlity.ShowFloatingHint("wait_fight_stop".ToUILocale());
                            else {
                                this._isMatching = !0;
                                var i = new l.Req_Map_CrossZoneContinueWarRankChallenge;
                                i.Formations = this._myTeamDatas, b.RpcComponent.Instance.Call(i, this.OnRequestMatchingSuccess.bind(this), this.OnRequestMatchingFail.bind(this))
                            }
                    }
                }, t.prototype.OnRequestMatchingSuccess = function(e) {
                    this._enemyInfo = e.TargetInfo, this._data.MyScore = e.Params[0], n.BattleInfo = e, n.BattleReports = e.Reports, b.DataCenter.Instance.SetTempData("ContinuousFightFormation", e.Params[0]), R.RedDotManager.Instance.RedDot.ContinuousFightFormationBtn.NeedRefresh = !0, S.BattleManager.Instance.CanShowBattleSettlePanel = !1, n.StartBattle(), this._isMatching = !1
                }, t.prototype.OnRequestMatchingFail = function() {
                    this._isMatching = !1;
                    var e = new l.Req_Map_CrossZoneContinueWarRankEnter;
                    b.RpcComponent.Instance.Call(e, this.RefreshData.bind(this))
                }, t.prototype.RefreshData = function(e) {
                    this._data = e, b.DataCenter.Instance.SetTempData("ContinuousFightFormation", e.MyScore), R.RedDotManager.Instance.RedDot.ContinuousFightFormationBtn.NeedRefresh = !0, this.SetUIContent()
                }, t.prototype.OnRankButtonClick = function() {
                    var e = this;
                    if (7 == C.TimeUtil.GetWeekDay(b.RpcComponent.Instance.ServerTime)) {
                        var t = C.TimeUtil.Get0ClockTs(b.RpcComponent.Instance.ServerTime),
                            n = t + 756e5,
                            o = t + 864e5;
                        if (b.RpcComponent.Instance.ServerTime >= n && b.RpcComponent.Instance.ServerTime < o) return f.UIUtlity.ShowFloatingHint("allianceWar_settleing".ToUILocale())
                    }
                    var r = new l.Req_Player_GetRank;
                    r.RankType = p.RankTypeId.CrossZoneContinueWarRank, b.RpcComponent.Instance.Call(r, function(t) {
                        if (e._rankData = t, t.Data.Rows.length > 0) {
                            var n = e.GetRankDatas(t);
                            h.UIManager.Instance.ShowUIPanel(I.PanelConfig.ContinuousFightRankPanel.Path, n)
                        } else f.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())
                    })
                }, t.prototype.GetRankDatas = function(e) {
                    var t = {},
                        n = {};
                    n.MyRank = e.MyRank, n.MyRankData = e.MyRankData, n.RankConfigId = p.RankTypeId.CrossZoneContinueWarRank, n.RankRowDataList = e.Data.Rows, n.Title = p.RankTypeId.CrossZoneContinueWarRank.ToRankName(), t[0] = n;
                    var o = {};
                    if (o.MyRank = this._data.MyDuanRank, o.MyRankData = this._data.MyRankData, o.RankConfigId = p.RankTypeId.CrossZoneContinueWarRank, o.Title = "continuousFight_curGrade_rank".ToUILocale(), this._data.DuanRankData.length > 100) {
                        for (var r = [], i = 0; i < 100; i++) r.push(this._data.DuanRankData[i]);
                        o.RankRowDataList = r
                    } else o.RankRowDataList = this._data.DuanRankData;
                    return t[1] = o, t
                }, t.prototype.OnFormationButtonClick = function() {
                    var e = {};
                    e.Param = this._data.MyScore, e.Type = k.CrossServerRankEditTeamType.ContinuousFight, h.UIManager.Instance.ShowUIPanel(I.PanelConfig.CrossServerRankEditTeamPanel.Path, e)
                }, t.prototype.OnReportButtonClick = function() {
                    var e = new l.Req_Player_GetBattleMessages;
                    e.Type = p.BattleMessageType.CrossZoneContinueWarRank, b.RpcComponent.Instance.Call(e, function(e) {
                        h.UIManager.Instance.ShowUIPanel(I.PanelConfig.CrossServerRankReportPanel.Path, e, p.GameModuleType.ContinuousFight)
                    })
                }, t.prototype.OnToggleSwitch = function(e) {
                    var t = Number.parseInt(e.name);
                    this._selectTog != t && (this._selectTog = t, this.SetTeamNodes())
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.RewardNode.children.indexOf(t)) f.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t);
                    else if (-1 != this.HeroContent.children.indexOf(t)) {
                        var n = Number.parseInt(t.name);
                        if (!n) return;
                        h.UIManager.Instance.ShowUIPanel(I.PanelConfig.HeroDetailPanel.Path, n)
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "assistant_continuousFight".ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: ["continuousFight_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnClickElement = function() {
                    h.UIManager.Instance.ShowUIPanel(I.PanelConfig.ElementPanel.Path, this.Element.ElementMap, this.Element.SPHeroCount, this.Element.URHeroCount, this.Element.LRHeroCount)
                }, t.prototype.OnClickStopAssistantButton = function() {
                    n.IsAssistantComplete = !1, this.SetMatchButton()
                }, t.GetGradeByScore = function(e) {
                    var t = null,
                        n = b.ConfigDataComponent.Instance.GetArrayConfig(u.CrossZoneContinueWarRankStage_Config);
                    if (e < n[0].Score) t = n[0];
                    else
                        for (var o = 0; o < n.length; o++) e >= n[o].Score && (t = n[o]);
                    return t
                }, t.GetRewardsByGradeId = function(e) {
                    var t = [];
                    return b.ConfigDataComponent.Instance.GetArrayConfig(u.CrossZoneContinueWarRankReward_Config).forEach(function(n) {
                        n.DuanId == e && t.push(n)
                    }), t
                }, t.prototype.OnUpdateContent = function() {
                    this._data && (this._isMatching = !1, this._isReDisplay = !0, this.SetUIContent())
                }, t.GetShowState = function(e) {
                    var t = M.default.GetItem(M.GameRecordDefine.ContinuousFightFormation);
                    if (!t) return 0;
                    var n = JSON.parse(t);
                    return n && n[e] ? n[e] : 0
                }, t.SetShowState = function(e, t) {
                    var n, o = M.default.GetItem(M.GameRecordDefine.ContinuousFightFormation);
                    (n = o ? JSON.parse(o) : {})[e] = t, M.default.SetItem(M.GameRecordDefine.ContinuousFightFormation, JSON.stringify(n))
                }, t.InitBattle = function() {
                    var e = v.MapType.CrossZoneContinueWarRank;
                    h.Game.EventDispatcher.Only(v.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), h.Game.EventDispatcher.Only(v.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), h.Game.EventDispatcher.Only(v.GameEventIds.SettleAllBattle.Fmt(e), n.SettleFunction, n), h.Game.EventDispatcher.Only(v.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.StartBattle = function(e) {
                    void 0 === e && (e = !1), n.NextBattleIndex = 0;
                    var t, o = n.GetNextBattleReport();
                    if (t = {
                            DontCloseOnEnd: !0,
                            CanSwitchSpeed: !0,
                            CanSkipPlay: !0,
                            CanPlayInBackground: !1,
                            CanCanel: !1,
                            CanRestart: !1,
                            CanSkipAllPlay: n.BattleReports && n.BattleReports.length > 1
                        }, n.IsAssistantComplete) S.BattleManager.Instance.StartPlay(o, t, !0);
                    else {
                        var r = {
                                Reports: [o],
                                Players: [],
                                ExtraParam: t,
                                IsDouble: !1,
                                ActiveIndex: 0,
                                ViewPortIds: [],
                                InBackground: !1,
                                SettleParams: null
                            },
                            i = d.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, r.Reports[0].MapId);
                        r.MapType = i.Type;
                        var a = 1;
                        n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                            e.Uid == b.DataCenter.Instance.Uid && (a = e.Camp)
                        }), h.UIManager.Instance.ShowUIPanel(I.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, a, r, function() {
                            var r = S.BattleManager.Instance.StartPlay(o, t);
                            e && (r.SettleParams = [n.BattleInfo, n.BattleReports])
                        })
                    }
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.BattleInfo && n.NextBattleIndex < n.BattleReports.length && (e = n.BattleReports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.SettleBattle = function(e) {
                    var t = n.GetNextBattleReport();
                    if (t)
                        if (e.Reports[0] = t, e.InBackground) S.BattleManager.Instance.NextWave(e);
                        else {
                            var o = 1;
                            n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                                e.Uid == b.DataCenter.Instance.Uid && (o = e.Camp)
                            }), h.UIManager.Instance.ShowUIPanel(I.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, o, e, n.ShowNextBattle)
                        }
                    else n.SettleFunction(e)
                }, t.SettleFunction = function(e) {
                    if (e.InBackground || h.Game.EventDispatcher.Emit(v.GameEventIds.DelayCloseBattlePanel), delete w.BattleData.PlayingBattleDatas[v.MapType.CrossZoneContinueWarRank], e.SettleParams) {
                        var t = "CrossServerRankPanel/ContinuousFightPanel/ContinuousFightSettlementComponent",
                            o = e.SettleParams[0];
                        d.DataCenter.Instance.Uid == o.AttackerInfo.Uid == !!o.Result ? e.InBackground ? S.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : c.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : e.InBackground ? S.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementFailPanel.Path, t, e) : c.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementFailPanel.Path, t, e)
                    } else n.RequestContinuousFightSettlement(n.BattleReports, !1, e.InBackground);
                    S.BattleManager.Instance.CanShowBattleSettlePanel = !0
                }, t.RequestContinuousFightSettlement = function(e, t, o) {
                    void 0 === o && (o = !0);
                    var r = {
                            Reports: e,
                            MapType: v.MapType.CrossZoneContinueWarRank
                        },
                        i = new l.Req_Map_BattleSettlement;
                    i.MapType = v.MapType.CrossZoneContinueWarRank, b.RpcComponent.Instance.Call(i, function(i) {
                        if (n.IsAssistantComplete) L.default.SetContinuousFightAutoComplete(), c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_CONTINUOUS_FIGHT_UPDATE);
                        else {
                            r.SettleParams = [JSON.parse(i.StringParam)], r.SettleParams[0].Reports = e;
                            var a = "CrossServerRankPanel/ContinuousFightPanel/ContinuousFightSettlementComponent";
                            1 == i.Result ? o ? S.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementWinPanel.Path, a, r, null, i.Result) : c.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementWinPanel.Path, a, r, null, i.Result) : o ? S.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementFailPanel.Path, a, r) : c.UIManager.Instance.ShowUIPanel(I.PanelConfig.SettlementFailPanel.Path, a, r)
                        }
                        t && delete w.BattleData.PlayingBattleDatas[v.MapType.CrossZoneContinueWarRank]
                    }, null)
                }, t.ShowNextBattle = function(e) {
                    S.BattleManager.Instance.NextWave(e)
                }, t.OnBattleSwitchToBackground = function() {
                    h.UIManager.Instance.QuitPanelStack(I.PanelConfig.ContinuousFightPanel.Path)
                }, t.prototype.OnClickShop = function() {
                    h.UIManager.Instance.ShowUIPanel(I.PanelConfig.ShopPanel.Path, 2, 103)
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.CountDownTime), S.BattleManager.Instance && (S.BattleManager.Instance.CanShowBattleSettlePanel = !0)
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = O.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = d.ConfigDataComponent.Instance.GetConfigById(u.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 1:
                                        case 2:
                                            O.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 3:
                                            O.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.FormationButton.node);
                                            break;
                                        case 6:
                                            O.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.DailyButton.node);
                                            break;
                                        case 9:
                                            O.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.DetailButton.node);
                                            break;
                                        case 12:
                                            O.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.ShopBtn.node);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, t.formationTypes = [v.FormationIdType.CrossZoneContinueWarRankAttack1, v.FormationIdType.CrossZoneContinueWarRankAttack2, v.FormationIdType.CrossZoneContinueWarRankAttack3, v.FormationIdType.CrossZoneContinueWarRankAttack4, v.FormationIdType.CrossZoneContinueWarRankAttack5], t.BattleInfo = null, t.BattleReports = null, t.IsAssistantComplete = !1, t.NextBattleIndex = 0, i([N(cc.Label)], t.prototype, "NameLabel", void 0), i([N(cc.Label)], t.prototype, "TimeDescLabel", void 0), i([N(cc.Label)], t.prototype, "TimeValueLabel", void 0), i([N(cc.Button)], t.prototype, "RuleButton", void 0), i([N(cc.Button)], t.prototype, "DetailButton", void 0), i([N(cc.Label)], t.prototype, "RewardLabel", void 0), i([N(cc.Node)], t.prototype, "RewardNode", void 0), i([N(cc.Label)], t.prototype, "NoRewardLabel", void 0), i([N(cc.Button)], t.prototype, "DailyButton", void 0), i([N(cc.Label)], t.prototype, "DailyLabel", void 0), i([N(cc.Label)], t.prototype, "RankDelayLabel", void 0), i([N(cc.Node)], t.prototype, "TopThreeNodes", void 0), i([N(cc.Button)], t.prototype, "RankButton", void 0), i([N(cc.Label)], t.prototype, "RankLabel", void 0), i([N(cc.Node)], t.prototype, "ToggleLayout", void 0), i([N(cc.Node)], t.prototype, "ToggleScroller", void 0), i([N(cc.Node)], t.prototype, "ToggleScrollerParent", void 0), i([N(P.default)], t.prototype, "Element", void 0), i([N(cc.Button)], t.prototype, "ElementBtn", void 0), i([N(cc.Label)], t.prototype, "PowerLabel", void 0), i([N(cc.Node)], t.prototype, "HeroContent", void 0), i([N(cc.Sprite)], t.prototype, "GradeImage", void 0), i([N(cc.Label)], t.prototype, "GradeLabel", void 0), i([N(cc.Label)], t.prototype, "GradeScore", void 0), i([N(T.default)], t.prototype, "GradeScoreProgressBar", void 0), i([N(cc.Label)], t.prototype, "ScoreProgressLabel", void 0), i([N(cc.Button)], t.prototype, "ReturnButton", void 0), i([N(cc.Button)], t.prototype, "MatchingButton", void 0), i([N(cc.Label)], t.prototype, "MatchingLabel", void 0), i([N(cc.Label)], t.prototype, "MatchTimesLabel", void 0), i([N(cc.Button)], t.prototype, "StopAssistantButton", void 0), i([N(cc.Label)], t.prototype, "StopAssistantLabel", void 0), i([N(cc.Button)], t.prototype, "ReportButton", void 0), i([N(cc.Label)], t.prototype, "ReportLabel", void 0), i([N(cc.Button)], t.prototype, "FormationButton", void 0), i([N(cc.Label)], t.prototype, "FormationLabel", void 0), i([N(cc.Button)], t.prototype, "ShopBtn", void 0), i([N(cc.Label)], t.prototype, "ShopBtnLabel", void 0), n = i([B], t)
            }(c.BaseUIFullScreenPanel);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ContinuousFightTopThreeItem": "ContinuousFightTopThreeItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ElementEffectItem": "ElementEffectItem",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerRankEditTeamPanel": "CrossServerRankEditTeamPanel",
        "./NewAssistantPanel": "NewAssistantPanel"
    }],
    ContinuousFightRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "20496ZQ12JMzICZ3MIGSfOa", "ContinuousFightRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/RankDetailComponent"),
            p = e("../Components/CustomToggle"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Tittle = null, t.MiddleRoot = null, t.BtnReturn = null, t.CustomToggles = [], t.RANK_DETAIL_COMPONENT_PATH = "RankPanel/Private/RankDetailComponent", t._rankDatas = {}, t._selectToggle = 0, t._rank_detail_prefab = null, t._rank_detail_item = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.RANK_DETAIL_COMPONENT_PATH, cc.Prefab)];
                                case 1:
                                    return t._rank_detail_prefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this);
                    var n = ["continuousFight_rank_total".ToUILocale(), "continuousFight_rank_current".ToUILocale()];
                    this.CustomToggles.forEach(function(e, o) {
                        e.Init(n[o]), e.node.on("toggle", t.OnSwitchToggle, t)
                    })
                }, t.prototype.InitData = function(e) {
                    this._rankDatas = e[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetTittle(), this.SetRankComponent()
                }, t.prototype.SetRankComponent = function() {
                    null == this._rank_detail_item && (this._rank_detail_item = cc.instantiate(this._rank_detail_prefab).getComponent(u.default), this._rank_detail_item.node.parent = this.MiddleRoot), this._rank_detail_item.SetUI(this._rankDatas[this._selectToggle].RankConfigId, this._rankDatas[this._selectToggle].RankRowDataList, this._rankDatas[this._selectToggle].MyRank, this._rankDatas[this._selectToggle].MyRankData, !1)
                }, t.prototype.SetTittle = function() {
                    this.Tittle.string = this._rankDatas[this._selectToggle].Title
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    this._selectToggle != t && (this._selectToggle = t, this.SetTittle(), this.SetRankComponent())
                }, t.prototype.OnBtnReturnClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, i([f(cc.Label)], t.prototype, "Tittle", void 0), i([f(cc.Node)], t.prototype, "MiddleRoot", void 0), i([f(cc.Button)], t.prototype, "BtnReturn", void 0), i([f(p.default)], t.prototype, "CustomToggles", void 0), i([h], t)
            }(l.BaseUIFullScreenPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    ContinuousFightRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9332cjUUOZGG4Awruy8fOO4", "ContinuousFightRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("./ItemComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RankLabel = null, t.ItemContent = null, t._itemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t) {
                    var n = this;
                    this.RankLabel.string = this.GetRankNum(e.RankRange[0], e.RankRange[1]), this._itemComponents.forEach(function(e) {
                        e.node.active = !1
                    }), e.Rewards.forEach(function(e, o) {
                        if (!n._itemComponents[o]) {
                            var r = cc.instantiate(t);
                            r.parent = n.ItemContent, n._itemComponents[o] = r.getComponent(c.ItemComponent)
                        }
                        n._itemComponents[o].node.active = !0, n._itemComponents[o].Init({
                            ItemId: e.Items[0],
                            Count: e.Items[1]
                        })
                    })
                }, t.prototype.GetRankNum = function(e, t) {
                    return e == t ? e.toString() : 0 != t ? e + "~" + t : e + "+"
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContent.children.indexOf(t) && l.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t)
                }, i([d(cc.Label)], t.prototype, "RankLabel", void 0), i([d(cc.Node)], t.prototype, "ItemContent", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ContinuousFightRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f1d1cYA8MZFGIW+TH2YzkO+", "ContinuousFightRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../Components/ContinuousFightRewardItem"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/AsyncLayout"),
            h = e("./ContinuousFightPanel"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/GameModuleGuideManager"),
            g = e("../../Components/Components"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.TitleLabel = null, t.LeftButton = null, t.RightButton = null, t.GradeSprite = null, t.RewardLabel = null, t.AsyncLayout = null, t.Hint = null, t._cellPrefab = null, t._cellComponentPrefab = null, t._guideStepIndex = 0, t._guideGroupId = 0, t._moduleGuideGroupIds = [10004], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerRankPanel/SubItems/ContinuousFightRewardItem", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._cellPrefab = e[0], o._cellComponentPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LeftButton.node.on("click", this.OnLeftButtonClick, this), this.RightButton.node.on("click", this.OnRightButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0], this.TitleLabel.string = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent(), this.ShowGameGuid()
                }, t.prototype.SetUIContent = function() {
                    this.SetDatas(), this.SetGradeInfo(), this.SetList(), this.SetButtons()
                }, t.prototype.SetDatas = function() {
                    for (var e in this._rewardDatas = [], this._data) {
                        var t = {};
                        t.GradeId = Number(e), t.RewardDatas = this._data[e], this._rewardDatas.push(t)
                    }
                    this._rewardDatas.sort(function(e, t) {
                        return t.GradeId - e.GradeId
                    }), this._selectIndex = 0
                }, t.prototype.SetList = function() {
                    this._isInitAsyncLayout || (this._isInitAsyncLayout = !0, this.AsyncLayout.Init(this._cellPrefab, this.RefreshList.bind(this))), this.AsyncLayout.RenderLayout(this._rewardDatas[this._selectIndex].RewardDatas.length)
                }, t.prototype.RefreshList = function(e, t) {
                    e.getComponent(u.default).Init(this._rewardDatas[this._selectIndex].RewardDatas[t], this._cellComponentPrefab)
                }, t.prototype.SetButtons = function() {
                    this.LeftButton.node.active = this._selectIndex > 0, this.RightButton.node.active = this._selectIndex < this._rewardDatas.length - 1
                }, t.prototype.OnLeftButtonClick = function() {
                    this._selectIndex--, this.SetGradeInfo(), this.SetButtons(), this.SetList()
                }, t.prototype.OnRightButtonClick = function() {
                    this._selectIndex++, this.SetGradeInfo(), this.SetButtons(), this.SetList()
                }, t.prototype.SetGradeInfo = function() {
                    this.GradeSprite.spriteFrame = h.default.CrossServerRankAtlas.getSpriteFrame("badge_" + this._rewardDatas[this._selectIndex].GradeId), this.RewardLabel.string = "continuousFight_reward_list".ToUILocale().Fmt(this._rewardDatas[this._selectIndex].GradeId.ToContinueWarRankStageName())
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = y.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = g.ConfigDataComponent.Instance.GetConfigById(c.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 10:
                                            y.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 11:
                                            y.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.Hint);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([_(cc.Label)], t.prototype, "TitleLabel", void 0), i([_(cc.Button)], t.prototype, "LeftButton", void 0), i([_(cc.Button)], t.prototype, "RightButton", void 0), i([_(cc.Sprite)], t.prototype, "GradeSprite", void 0), i([_(cc.Label)], t.prototype, "RewardLabel", void 0), i([_(d.default)], t.prototype, "AsyncLayout", void 0), i([_(cc.Node)], t.prototype, "Hint", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/ContinuousFightRewardItem": "ContinuousFightRewardItem",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "./ContinuousFightPanel": "ContinuousFightPanel"
    }],
    ContinuousFightSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "33384YGcdRJG4Byn90d34kA", "ContinuousFightSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = e("../../Components/DataCenter"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/HeadComponent"),
            I = e("../Components/ItemComponent"),
            _ = e("../Components/SeniorArenaSettlementItem"),
            C = e("../Components/SettlementBaseComponent"),
            v = e("./ContinuousFightPanel"),
            b = e("../../Channel/ChannelManager"),
            S = e("../../Auxiliary/DataUtlity"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ReportPartTitleLabel = null, t.MyHeaderNode = null, t.MyGrade = null, t.MyNameLabel = null, t.MyCurrentScoreLabel = null, t.MyScoreChangedLabel = null, t.MyScoreChangedTag = null, t.VSResultLacel = null, t.OpponentGrade = null, t.OpponentNameLabel = null, t.OpponentCurrentScoreLabel = null, t.OpponentScoreChangedLabel = null, t.OpponentHeaderNode = null, t.OpponentScoreChangedTag = null, t.BattleReportsView = null, t.BattleReportsContainer = null, t.BattleReportsLessContainer = null, t.RewardsPartTitleLabel = null, t.RewardsContainer = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t.ReturnToFunctionButton = null, t.ReturnToFunctionButtonLabel = null, t._loadedAssets = [], t._TargetInfo = null, t._MyScore = 0, t._MyScoreChange = 0, t._TargetScoreChange = 0, t._Reports = null, t._isAttack = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ReportPartTitleLabel.string = "SeniorArenaSettlement_ReportPartTitle".ToUILocale(), this.RewardsPartTitleLabel.string = "reward".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.ReturnToFunctionButtonLabel.string = "continuousFight_return".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this), this.ReturnToFunctionButton.node.on("click", this.OnReturnToFunctionButtonClicked, this), this.LoadRewardData()
                }, t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsContainer.children.indexOf(t) && g.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.SetUI = function(t) {
                    var n = t.SettleParams[0];
                    if (n.TargetInfo) {
                        var o = n;
                        this._TargetInfo = o.TargetInfo, this._MyScore = o.Params[0], this._MyScoreChange = o.Params[1], this._TargetScoreChange = o.Params[2], this._Reports = o.Reports, this._isAttack = !0
                    } else {
                        var r = n;
                        this._isAttack = y.DataCenter.Instance.Uid == r.AttackerInfo.Uid, this._TargetInfo = this._isAttack ? r.DefenderInfo : r.AttackerInfo, this._MyScore = r.IntParams[0], this._MyScoreChange = r.IntParams[1], this._TargetScoreChange = r.IntParams[2], this._Reports = t.SettleParams[1]
                    }
                    e.prototype.SetUI.call(this, t, null, this.SetCallBack.bind(this)), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_CONTINUOUS_FIGHT_UPDATE), this.SetPlayerInfoView(), this.SetGradeInfo(), this.SetListView(), this.SetRewardsView()
                }, t.prototype.SetCallBack = function() {
                    u.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattleStatisticsPanel.Path, this._Reports)
                }, t.prototype.SetGradeInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset("CrossServerRankPanel/PNG/CrossServerRank", cc.SpriteAtlas)];
                                case 1:
                                    return e = o.sent(), this.isValid ? (this._loadedAssets.push(e), t = v.default.GetGradeByScore(this._MyScore), n = v.default.GetGradeByScore(this._TargetInfo.Value1), this.MyGrade.spriteFrame = e.getSpriteFrame("badge_" + t.Id), this.OpponentGrade.spriteFrame = e.getSpriteFrame("badge_" + n.Id), [2]) : (u.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetPlayerInfoView = function() {
                    this.MyNameLabel.string = y.DataCenter.Instance.GetStringData(p.UserDataKey.RoleName), this.MyCurrentScoreLabel.string = this._MyScore.toString(), this.OpponentNameLabel.string = this._TargetInfo.Name, this.OpponentCurrentScoreLabel.string = this._TargetInfo.Value1.toString();
                    var e = this._MyScoreChange > 0;
                    e ? (this.MyScoreChangedLabel.string = "+" + this._MyScoreChange.toString(), this.MyScoreChangedLabel.node.color = cc.Color.GREEN, this.MyScoreChangedTag.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green"), this.MyScoreChangedTag.node.scaleY = -1) : (this.MyScoreChangedLabel.string = "-" + Math.abs(this._MyScoreChange), this.MyScoreChangedLabel.node.color = cc.Color.RED, this.MyScoreChangedTag.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red"), this.MyScoreChangedTag.node.scaleY = -1), e ? (this.OpponentScoreChangedLabel.string = "-" + Math.abs(this._TargetScoreChange), this.OpponentScoreChangedLabel.node.color = cc.Color.RED, this.OpponentScoreChangedTag.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red"), this.OpponentScoreChangedTag.node.scaleY = -1) : (this.OpponentScoreChangedLabel.node.color = cc.Color.GREEN, this.OpponentScoreChangedTag.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green"), this.OpponentScoreChangedTag.node.scaleY = -1, this.OpponentScoreChangedLabel.string = "+" + this._TargetScoreChange.toString()), this.VSResultLacel.string = this.GetVSResult()[0] + ":" + this.GetVSResult()[1], this.VSResultLacel.node.active = !1, this.SetHeaderView()
                }, t.prototype.SetHeaderView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return [4, u.AssetsManager.Instance.LoadAsset(h.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    return e = a.sent(), this.isValid ? (this._loadedAssets.push(e), t = cc.instantiate(e), (n = t.getComponent(m.default)).SetHeadIcon(y.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon)), n.SetHeadFrame(y.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame)), n.LevelNode.active = !1, t.parent = this.MyHeaderNode, n.SetLevel(y.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel)), (o = y.DataCenter.Instance.GetStringData(p.UserDataKey.Country)) || (o = b.default.Instance.Localization_Country), o = 0 == y.DataCenter.Instance.GetIntData(p.UserDataKey.CountryShowState) ? o : "", n.SetCountry(o), r = cc.instantiate(e), (i = r.getComponent(m.default)).SetHeadIcon(this._TargetInfo.HeadIcon), i.SetHeadFrame(this._TargetInfo.HeadFrame), i.LevelNode.active = !1, r.parent = this.OpponentHeaderNode, i.SetLevel(this._TargetInfo.Level), i.SetCountry(this._TargetInfo.Country), [2]) : (u.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.GetVSResult = function() {
                    for (var e = 0, t = 0, n = 0; n < this._Reports.length; n++) {
                        var o = this._Reports[n];
                        S.default.CheckIsSelfBattleWin(o, !0) ? e++ : t++
                    }
                    return [e, t]
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return [4, u.AssetsManager.Instance.LoadAsset("Arena/SeniorArenaPrivate/SeniorArenaSettlementItem", cc.Prefab)];
                                case 1:
                                    if (e = a.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), t = e.data.height, n = this.BattleReportsContainer.spacingY, t * this._Reports.length + n * (this._Reports.length - 1) <= this.BattleReportsView.height ? (this.BattleReportsView.active = !1, this.BattleReportsLessContainer.node.active = !0, o = this.BattleReportsLessContainer.node) : (this.BattleReportsView.active = !0, this.BattleReportsLessContainer.node.active = !1, o = this.BattleReportsContainer.node), r = 0; r < this._Reports.length; r++)(i = cc.instantiate(e)).setParent(o), i.getComponent(_.default).Init(this._Reports[r], r, !0);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.LoadRewardData = function() {
                    var e = f.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, p.LevelParamType.CrossZoneContinueWarRankChallengeReward);
                    this._rewardData = e.Data2
                }, t.prototype.SetRewardsView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._isAttack ? [4, u.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)] : [2];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), t = 0; t < this._rewardData.length; t++) n = this._rewardData[t].Items[0], o = this._rewardData[t].Items[1], (r = cc.instantiate(e).getComponent(I.ItemComponent)).Init({
                                        ItemId: n,
                                        Count: o
                                    }, I.ItemComponentType.ItemCommon), r.node.name = n.toString(), r.node.parent = this.RewardsContainer;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnConfirmButtonClicked = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnReturnToFunctionButtonClicked = function() {
                    u.UIManager.Instance.BackUIPanel(), u.UIManager.Instance.ShowUIPanel(h.PanelConfig.ContinuousFightPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets && (this._loadedAssets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssets = [])
                }, i([A(cc.Label)], t.prototype, "ReportPartTitleLabel", void 0), i([A(cc.Node)], t.prototype, "MyHeaderNode", void 0), i([A(cc.Sprite)], t.prototype, "MyGrade", void 0), i([A(cc.Label)], t.prototype, "MyNameLabel", void 0), i([A(cc.Label)], t.prototype, "MyCurrentScoreLabel", void 0), i([A(cc.Label)], t.prototype, "MyScoreChangedLabel", void 0), i([A(cc.Sprite)], t.prototype, "MyScoreChangedTag", void 0), i([A(cc.Label)], t.prototype, "VSResultLacel", void 0), i([A(cc.Sprite)], t.prototype, "OpponentGrade", void 0), i([A(cc.Label)], t.prototype, "OpponentNameLabel", void 0), i([A(cc.Label)], t.prototype, "OpponentCurrentScoreLabel", void 0), i([A(cc.Label)], t.prototype, "OpponentScoreChangedLabel", void 0), i([A(cc.Node)], t.prototype, "OpponentHeaderNode", void 0), i([A(cc.Sprite)], t.prototype, "OpponentScoreChangedTag", void 0), i([A(cc.Node)], t.prototype, "BattleReportsView", void 0), i([A(cc.Layout)], t.prototype, "BattleReportsContainer", void 0), i([A(cc.Layout)], t.prototype, "BattleReportsLessContainer", void 0), i([A(cc.Label)], t.prototype, "RewardsPartTitleLabel", void 0), i([A(cc.Node)], t.prototype, "RewardsContainer", void 0), i([A(cc.Button)], t.prototype, "ConfirmButton", void 0), i([A(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([A(cc.Button)], t.prototype, "ReturnToFunctionButton", void 0), i([A(cc.Label)], t.prototype, "ReturnToFunctionButtonLabel", void 0), i([P], t)
            }(C.default);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SeniorArenaSettlementItem": "SeniorArenaSettlementItem",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent",
        "./ContinuousFightPanel": "ContinuousFightPanel"
    }],
    ContinuousFightTopThreeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "41107uhZqxBSpv3WLcSrLsK", "ContinuousFightTopThreeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../GamePlay/Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Panel/ContinuousFightPanel"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./LoadAssetHelper"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.Pet = 100] = "Pet", e[e.MagicCircleBottom = 200] = "MagicCircleBottom", e[e.MagicCircleTop = 300] = "MagicCircleTop"
        })(l || (l = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.GradeSprite = null, t.TopThreeSprite = null, t.UnInfoNode = null, t.UnInfoLabel = null, t.InfoNode = null, t.MagicCircleBottomNode = null, t.HeroContainer = null, t.MagicCircleTopNode = null, t.PetNode = null, t.ServerName = null, t.PlayerName = null, t.ScoreLabel = null, t.Flag = null, t.Platform = null, t.PlayerDesignationSprite = null, t.PlayerNameBackground = null, t._loadedAssets = [], t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.UnInfoLabel.string = "rank_no_people".ToUILocale(), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(g.default))
            }, t.prototype.Init = function(e, t) {
                this._rankData = e, this._rank = t, this._rankData ? (this.ServerName.node.parent.active = !0, this.InfoNode.active = !0, this.UnInfoNode.active = !1, this.ConfigAvatar(), this.ConfigPlayerInfo(), this.ConfigGradeSprite()) : (this.ServerName.node.parent.active = !1, this.InfoNode.active = !1, this.UnInfoNode.active = !0), this.SetPlatform(), this.SetFlag(), this.ConfigRankSprite()
            }, t.prototype.ConfigAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this._avatarId == this._rankData.PlayerInfo.HeadIcon ? [2] : (this.HeroContainer.destroyAllChildren(), this._avatarId = this._rankData.PlayerInfo.HeadIcon, (e = c.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, this._avatarId)) || (e = c.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._avatarId)), this._avatarPath = "Hero_" + e.Model + "/HeroAvatar", [4, d.AssetsManager.Instance.LoadAsset(this._avatarPath)]);
                            case 1:
                                return t = i.sent(), this.isValid ? (t.name == this._avatarPath ? (this._loadedAssets.push(t), (n = cc.instantiate(t)).setParent(this.HeroContainer), n.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0)) : d.AssetsManager.Instance.UnloadAsset(t), this.MagicCircleTopNode && this.MagicCircleBottomNode && (o = this._rankData.PlayerInfo.MagicCircle, this.SetMagicCircleByItemId(o)), this.PetNode && (r = this._rankData.PlayerInfo.Pet, this.SetPetByItemId(r)), [2]) : (d.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.SetMagicCircleByItemId = function(e) {
                if (e) {
                    var t = c.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, e);
                    if (t) {
                        var n, o, r = t.Model + "/HeroAvatar";
                        this._loadAssetHelper.LoadPrefab(r, this.MagicCircleBottomNode, function(e) {
                            n = e, o && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleBottom), this._loadAssetHelper.LoadPrefab(r, this.MagicCircleTopNode, function(e) {
                            (o = e) && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleTop)
                    }
                }
            }, t.prototype.SetPetByItemId = function(e) {
                if (e) {
                    var t = c.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, e);
                    if (t) {
                        var n = t.Model + "/HeroAvatar";
                        this._loadAssetHelper.LoadPrefab(n, this.PetNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0)
                        }, l.Pet)
                    }
                }
            }, t.prototype.ConfigPlayerInfo = function() {
                this.ServerName.string = "S" + this._rankData.Zone, this.PlayerName.string = this._rankData.PlayerInfo.Name, this.ScoreLabel.string = "allianceWar_end_score".ToUILocale().Fmt(this._rankData.Value), this.PlayerNameBackground.spriteFrame = f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("rankNameBg" + (this._rank + 1)), y.default.SetDesignationIcon(this._rankData.PlayerInfo.Designation, this.PlayerDesignationSprite)
            }, t.prototype.ConfigGradeSprite = function() {
                var e = h.default.GetGradeByScore(this._rankData.Value);
                e && (this.GradeSprite.spriteFrame = h.default.CrossServerRankAtlas.getSpriteFrame("badge_" + e.Id))
            }, t.prototype.SetPlatform = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.Platform.spriteFrame ? [2] : [4, d.AssetsManager.Instance.LoadAsset("CommonBg/Hero_table", cc.SpriteFrame)];
                            case 1:
                                return e = t.sent(), this.isValid ? (this._loadedAssets.push(e), this.Platform.spriteFrame = e, [2]) : (d.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.SetFlag = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.Flag.spriteFrame ? [2] : [4, d.AssetsManager.Instance.LoadAsset("CommonBg/championPlatformBg_" + this._rank, cc.SpriteFrame)];
                            case 1:
                                return e = t.sent(), this.isValid ? (this._loadedAssets.push(e), this.Flag.spriteFrame = e, [2]) : (d.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.ConfigRankSprite = function() {
                this.TopThreeSprite.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + (this._rank + 1))
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                for (var e = 0; e < this._loadedAssets.length; e++) d.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                this._loadedAssets = []
            }, i([_(cc.Sprite)], t.prototype, "GradeSprite", void 0), i([_(cc.Sprite)], t.prototype, "TopThreeSprite", void 0), i([_(cc.Node)], t.prototype, "UnInfoNode", void 0), i([_(cc.Label)], t.prototype, "UnInfoLabel", void 0), i([_(cc.Node)], t.prototype, "InfoNode", void 0), i([_(cc.Node)], t.prototype, "MagicCircleBottomNode", void 0), i([_(cc.Node)], t.prototype, "HeroContainer", void 0), i([_(cc.Node)], t.prototype, "MagicCircleTopNode", void 0), i([_(cc.Node)], t.prototype, "PetNode", void 0), i([_(cc.Label)], t.prototype, "ServerName", void 0), i([_(cc.Label)], t.prototype, "PlayerName", void 0), i([_(cc.Label)], t.prototype, "ScoreLabel", void 0), i([_(cc.Sprite)], t.prototype, "Flag", void 0), i([_(cc.Sprite)], t.prototype, "Platform", void 0), i([_(cc.Sprite)], t.prototype, "PlayerDesignationSprite", void 0), i([_(cc.Sprite)], t.prototype, "PlayerNameBackground", void 0), i([I], t)
        }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ContinuousFightPanel": "ContinuousFightPanel",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    ContinuousPurchaseBubbleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9bcdcjeHYdHVLJrcI+jH6EC", "ContinuousPurchaseBubbleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("./ItemComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Channel/ChannelManager"),
            f = e("../../Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BubbleLightIcon = null, t.BubbleIcon = null, t.ItemContainer = null, t.ItemArray2Node = null, t.ItemNodeArray = [], t.BubbleSpine = null, t.TipNode = null, t.TipBg = null, t.LockNode = null, t.TipLabel = null, t.RedDotNode = null, t._rewardComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnRedBubbleClick, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_PAY_SUCCESS, this.OnBubbleStartMove, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_PAY_SUCCESS, this.OnBubbleStartMove, this), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), cc.Tween.stopAllByTarget(this.node), cc.Tween.stopAllByTarget(this.BubbleLightIcon.node), cc.Tween.stopAllByTarget(this.BubbleIcon.node), cc.Tween.stopAllByTarget(this.ItemContainer)
                }, t.prototype.Init = function(e, t, n, o, r, i, a) {
                    this._index = e, this._moveIntervalTimeArray = t, this._isLastBubble = n, this._mainPanel = o, this._activityConfig = r, this._giftData = i, this._itemPrefab = a;
                    var s = this._activityConfig.CustomPart.Positions[e];
                    this._bubbleType = s.Items[2], this._isLastBubble ? this.node.position = new cc.Vec3(-252, -1400, 0) : this.node.position = new cc.Vec3(s.Items[0], s.Items[1], 0), this._moveCount = this._activityConfig.CustomPart.RewardIndexs[2] - this._activityConfig.CustomPart.RewardIndexs[1], this.BubbleIcon.node.scale = 1, this.BubbleIcon.node.opacity = 255, this.BubbleLightIcon.node.scale = 1, this.BubbleLightIcon.node.opacity = 255, this.ItemContainer.position = new cc.Vec3(0, -10, 0), this.ItemContainer.opacity = 255, this.SetBubbleIcon(), this.SetBubbleFloating(), this.SetRewardContainer(), this.RedDotNode.active = 0 == this._index && this._giftData && 0 == this._giftData.Money
                }, t.prototype.SetBubbleIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.BubbleLightIcon.node.active = 0 == this._index, this.BubbleSpine.node.active = !1, 0 != this._index ? [3, 4] : (e = this.BubbleIcon, [4, this._mainPanel.GetBubbleSprite(this._activityConfig.Common.Pictures[3])]);
                                case 1:
                                    return e.spriteFrame = i.sent(), t = this.BubbleLightIcon, [4, this._mainPanel.GetBubbleSprite(this._activityConfig.Common.Pictures[4])];
                                case 2:
                                    return t.spriteFrame = i.sent(), n = this.TipBg, [4, this._mainPanel.GetBubbleSprite(this._activityConfig.Common.Pictures[6])];
                                case 3:
                                    return n.spriteFrame = i.sent(), this.SetBubbleLightAni(), this.node.height = this.BubbleIcon.node.height + 100, this.node.width = this.BubbleIcon.node.width, [3, 9];
                                case 4:
                                    return this._bubbleType ? (o = this.BubbleIcon, [4, this._mainPanel.GetBubbleSprite(this._activityConfig.Common.Pictures[this._bubbleType - 1])]) : [3, 8];
                                case 5:
                                    return o.spriteFrame = i.sent(), 3 != this._bubbleType ? [3, 7] : (r = this.TipBg, [4, this._mainPanel.GetBubbleSprite("tipBottomBg")]);
                                case 6:
                                    r.spriteFrame = i.sent(), this._activityConfig.Common.Pictures[9] && (this.BubbleSpine.node.active = !0, this.BubbleSpine.skeletonData = this._mainPanel.GetBubbleSpine(this._index), this.BubbleSpine.setAnimation(0, "Ani_" + this._activityConfig.Common.Pictures[9], !0)), i.label = 7;
                                case 7:
                                    return this.node.height = this.BubbleIcon.node.height, this.node.width = this.BubbleIcon.node.width, [3, 9];
                                case 8:
                                    this.node.height = 0, this.node.width = 0, i.label = 9;
                                case 9:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetBubbleLightAni = function() {
                    var e = this;
                    cc.Tween.stopAllByTarget(this.BubbleLightIcon.node), cc.tween(this.BubbleLightIcon.node).repeatForever(cc.tween(this.BubbleLightIcon.node).to(12, {
                        angle: 360
                    }).call(function() {
                        e.BubbleLightIcon.node.angle = 0
                    }).start()).start(), this.BubbleSpine.node.active = !0, this.BubbleSpine.skeletonData = this._mainPanel.GetBubbleSpine(this._index), this.BubbleSpine.setAnimation(0, "Ani_" + this._activityConfig.Common.Pictures[5], !0)
                }, t.prototype.SetBubbleFloating = function() {
                    var e = new cc.Vec3(this.node.x, this.node.y + 10, 0),
                        t = new cc.Vec3(this.node.x, this.node.y - 10, 0),
                        n = [e, new cc.Vec3(this.node.x + 10, this.node.y, 0), t, new cc.Vec3(this.node.x - 10, this.node.y, 0), new cc.Vec3(this.node.x, this.node.y, 0)];
                    cc.tween(this.node).repeatForever(cc.tween(this.node).to(1, {
                        position: n[this._index % 5]
                    }).to(1, {
                        position: n[(this._index + 1) % 5]
                    }).to(1, {
                        position: n[(this._index + 2) % 5]
                    }).to(1, {
                        position: n[(this._index + 3) % 5]
                    }).to(1, {
                        position: n[(this._index + 4) % 5]
                    }).start()).start()
                }, t.prototype.SetRewardContainer = function() {
                    if (this.ItemContainer.active = !1, this.TipNode.active = !1, this._giftData && 3 == this._bubbleType) {
                        this.ItemContainer.active = !0, this.TipNode.active = !0, this.ItemArray2Node.active = this._giftData.Items.length > 2, this._giftData.Items.length > 2 ? this.ItemContainer.scale = .4 : this._giftData.Items.length > 1 ? this.ItemContainer.scale = .5 : this.ItemContainer.scale = .6;
                        for (var e = 0; e < this._giftData.Items.length; e++) {
                            var t = this._rewardComponentArray[e];
                            if (!t) {
                                var n = cc.instantiate(this._itemPrefab);
                                n.setParent(this.ItemNodeArray[e]), t = n.getComponent(p.ItemComponent), this._rewardComponentArray[e] = t
                            }
                            this.ItemNodeArray[e].active = !0, t.Init({
                                ItemId: this._giftData.Items[e].Items[0],
                                Count: this._giftData.Items[e].Items[1]
                            })
                        }
                        if (this._giftData.Items.length < this.ItemNodeArray.length)
                            for (e = this._giftData.Items.length; e < this.ItemNodeArray.length; e++) this.ItemNodeArray[e].active = !1;
                        this.LockNode.active = 0 != this._index, this.TipLabel.string = this._giftData.Money > 0 ? h.default.Instance.CurrencySymbol + h.default.Instance.ExchangeMoney(this._giftData.Money) : "shop_buyFree".ToUILocale()
                    }
                }, t.prototype.OnRedBubbleClick = function() {
                    if (0 == this._index) {
                        var e = f.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id);
                        if (!this._giftData || e.Packs[this._giftData.Id].Items[0]) return;
                        if (null == this._giftData.Money || 0 == this._giftData.Money) {
                            var t = new u.Req_Pay_ByDiamond;
                            t.Id = this._giftData.Id, t.ActivityId = this._activityConfig._id, f.RpcComponent.Instance.Call(t, function(e) {
                                l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_PAY_SUCCESS);
                                var t = [];
                                e.Rewards.forEach(function(e) {
                                    var n = f.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, e.ItemId),
                                        o = d.UIUtlity.GetLabelColorByQuality(n.Quality),
                                        r = "treasure_auto_reward".ToUILocale().Fmt(o.toHEX("#rrggbb"), e.ItemId.ToItemName(), e.Count);
                                    t.push(r)
                                }), d.UIUtlity.ShowFloatingHint(t)
                            })
                        } else h.default.Instance.Pay(this._giftData.Id, this._activityConfig._id)
                    } else 3 == this._bubbleType && d.UIUtlity.ShowFloatingHint("ActivityPurchase_Buy_Tip".ToUILocale())
                }, t.prototype.OnBubbleStartMove = function() {
                    var e = this;
                    if (cc.Tween.stopAllByTarget(this.node), this._isLastBubble) this.SetLastBubbleArray();
                    else {
                        for (var t = [], n = [], o = [], r = 0; r < this._moveCount; r++)
                            if (this._index > r) {
                                t.push(this._activityConfig.CustomPart.Positions[this._index - r - 1].Items[0]), n.push(this._activityConfig.CustomPart.Positions[this._index - r - 1].Items[1]);
                                var i = this._moveIntervalTimeArray[this._index - r] - this._moveIntervalTimeArray[this._index - r - 1];
                                o.push(i)
                            } else t.push(this._activityConfig.CustomPart.Positions[0].Items[0]), n.push(this._activityConfig.CustomPart.Positions[0].Items[1]), o.push(0);
                        var a = this._index;
                        if (this._index < this._moveCount - 1) cc.tween(this.node).delay(this._moveIntervalTimeArray[this._index]).call(function() {
                            0 == a ? e.SetGetRewardAni() : (e.node.active = !1, e._mainPanel.PutBubbleNode(e.node))
                        }).start();
                        else {
                            this._index = this._index >= this._moveCount ? this._index - this._moveCount : 0;
                            var s = cc.tween(this.node);
                            for (s.delay(this._moveIntervalTimeArray[this._moveCount - 1]), r = 0; r < this._moveCount - 1; r++) s.to(o[r], {
                                position: new cc.Vec3(t[r], n[r], 0)
                            });
                            s.call(function() {
                                a == e._moveCount - 1 ? 3 != e._bubbleType ? (e.node.active = !1, e._mainPanel.PutBubbleNode(e.node)) : (cc.Tween.stopAllByTarget(e.node), e._index = 0, e.RedDotNode.active = 0 == e._index && e._giftData && 0 == e._giftData.Money, e.LockNode.active = !1, e.SetBubbleIcon()) : a == e._moveCount && (e.node.active = !1, e._mainPanel.PutBubbleNode(e.node))
                            }), s.to(o[this._moveCount - 1], {
                                position: new cc.Vec3(t[this._moveCount - 1], n[this._moveCount - 1], 0)
                            }), s.call(function() {
                                e.SetBubbleFloating()
                            }).start()
                        }
                    }
                }, t.prototype.SetLastBubbleArray = function() {
                    for (var e = this, t = [], n = [], o = [], r = this._activityConfig.CustomPart.Positions.length - this._index, i = 0; i < this._moveCount; i++)
                        if (r > i) {
                            t.push(this._activityConfig.CustomPart.Positions[this._activityConfig.CustomPart.Positions.length - 1 - i].Items[0]), n.push(this._activityConfig.CustomPart.Positions[this._activityConfig.CustomPart.Positions.length - 1 - i].Items[1]);
                            var a;
                            a = 0 == i ? this._moveIntervalTimeArray[this._index] - this._moveIntervalTimeArray[this._activityConfig.CustomPart.Positions.length - 1 - this._moveCount] : this._moveIntervalTimeArray[this._activityConfig.CustomPart.Positions.length - i] - this._moveIntervalTimeArray[this._activityConfig.CustomPart.Positions.length - i - 1], o.push(a)
                        } else t.push(this._activityConfig.CustomPart.Positions[this._index].Items[0]), n.push(this._activityConfig.CustomPart.Positions[this._index].Items[1]), o.push(0);
                    this._isLastBubble = !1;
                    var s = cc.tween(this.node);
                    for (s.delay(this._moveIntervalTimeArray[this._moveCount - 1]), i = 0; i < this._moveCount; i++) s.to(o[i], {
                        position: new cc.Vec3(t[i], n[i], 0)
                    });
                    s.call(function() {
                        e.SetBubbleFloating()
                    }).start()
                }, t.prototype.SetGetRewardAni = function() {
                    var e = this;
                    cc.tween(this.BubbleLightIcon.node).parallel(cc.tween(this.BubbleLightIcon.node).to(.2, {
                        scale: 2
                    }, {
                        easing: "sineOut"
                    }), cc.tween(this.BubbleLightIcon.node).to(.2, {
                        opacity: 0
                    })).start(), cc.tween(this.BubbleIcon.node).parallel(cc.tween(this.BubbleIcon.node).to(.2, {
                        scale: 2
                    }, {
                        easing: "sineOut"
                    }), cc.tween(this.BubbleIcon.node).to(.2, {
                        opacity: 0
                    })).call(function() {
                        e.TipNode.active = !1
                    }).start(), cc.tween(this.ItemContainer).parallel(cc.tween(this.ItemContainer).to(.2, {
                        position: new cc.Vec3(this.ItemContainer.x, this.ItemContainer.y + 400, 0)
                    }, {
                        easing: "sineInOut"
                    }), cc.tween(this.ItemContainer).to(.2, {
                        opacity: 0
                    })).call(function() {
                        e.node.active = !1
                    }).start()
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent.parent.parent == this.ItemContainer && d.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, i([I(cc.Sprite)], t.prototype, "BubbleLightIcon", void 0), i([I(cc.Sprite)], t.prototype, "BubbleIcon", void 0), i([I(cc.Node)], t.prototype, "ItemContainer", void 0), i([I(cc.Node)], t.prototype, "ItemArray2Node", void 0), i([I([cc.Node])], t.prototype, "ItemNodeArray", void 0), i([I(sp.Skeleton)], t.prototype, "BubbleSpine", void 0), i([I(cc.Node)], t.prototype, "TipNode", void 0), i([I(cc.Sprite)], t.prototype, "TipBg", void 0), i([I(cc.Node)], t.prototype, "LockNode", void 0), i([I(cc.Label)], t.prototype, "TipLabel", void 0), i([I(cc.Node)], t.prototype, "RedDotNode", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ContinuousPurchaseGiftPackPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "461f5QKaNxKk4SLA5xo2px+", "ContinuousPurchaseGiftPackPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("./CommonGiftPackComponent"),
            h = e("../Components/CustomLayout"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.CustomLayout = null, t.ScrollBarEventNode = null, t.ScrollBarBgNode = null, t.ScrollBarNode = null, t._isStartMove = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CommonPanel/SubItems/CommonGiftPackComponent", cc.Prefab), n = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._giftPackItemPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ActivityPurchase_Preview_Gift".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = c.DataCenter.Instance.ActivityConfigs[t[0]]
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        this.CustomLayout.Init(this._giftPackItemPrefab), this.CustomLayout.RenderLayOut(this._activityConfig._Packs.length);
                        var n = this.CustomLayout.ScrollView.node.height / this.CustomLayout.node.height;
                        this.ScrollBarNode.y = 0, this.ScrollBarNode.height = this._activityConfig._Packs.length > 0 ? n * this.ScrollBarBgNode.height : this.ScrollBarBgNode.height, this.CustomLayout.ScrollView.node.on("scrolling", this.OnScrolling, this)
                    }
                }, t.prototype.StarTouchEvent = function() {
                    this._isStartMove = !0, this.CustomLayout.ScrollView.node.off("scrolling", this.OnScrolling, this)
                }, t.prototype.StarMoveEvent = function(e) {
                    if (this._isStartMove) {
                        var t = e.getDelta(),
                            n = this.ScrollBarNode.y + t.y;
                        if (n < -this.ScrollBarBgNode.height + this.ScrollBarNode.height) {
                            this.ScrollBarNode.y = -this.ScrollBarBgNode.height + this.ScrollBarNode.height;
                            var o = new cc.Vec2(0, 0);
                            this.CustomLayout.ScrollView.scrollTo(o)
                        } else n >= 0 ? (this.ScrollBarNode.y = 0, o = new cc.Vec2(0, 1), this.CustomLayout.ScrollView.scrollTo(o)) : (this.ScrollBarNode.y = n, o = new cc.Vec2(0, 1 - n / (-this.ScrollBarBgNode.height + this.ScrollBarNode.height)), this.CustomLayout.ScrollView.scrollTo(o));
                        this.CustomLayout.OnScrolling()
                    }
                }, t.prototype.TouchEndEvent = function() {
                    this._isStartMove = !1, this.CustomLayout.ScrollView.node.on("scrolling", this.OnScrolling, this)
                }, t.prototype.OnScrolling = function() {
                    var e = this.CustomLayout.ScrollView.getScrollOffset().y / this.CustomLayout.node.height,
                        t = 1 - this.ScrollBarNode.height / this.ScrollBarBgNode.height;
                    e < 0 ? e = 0 : e > t && (e = t), this.ScrollBarNode.y = -e * this.ScrollBarBgNode.height
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._activityConfig._Packs[t];
                        e.getComponent(d.default).Init(n._itemPrefab, o, n._activityConfig._id, !0)
                    })
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(h.default)], t.prototype, "CustomLayout", void 0), i([g(cc.Node)], t.prototype, "ScrollBarEventNode", void 0), i([g(cc.Node)], t.prototype, "ScrollBarBgNode", void 0), i([g(cc.Node)], t.prototype, "ScrollBarNode", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "./CommonGiftPackComponent": "CommonGiftPackComponent"
    }],
    ContinuousWarEntranceItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e474bW4wWtDKZNQZDIKIg74", "ContinuousWarEntranceItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../ShareConsts/EnumType"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = e("../../RedDot/RedDotManager"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../Consts/Consts"),
            h = e("../../Components/Components"),
            f = e("../Battle/BattleManager"),
            y = e("../Panel/ContinuousFightPanel"),
            g = e("../../../Util/TimeUtil"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LockNode = null, t.UnlockConditionLabel = null, t.RemainTimeRichText = null, t._deadLine = 0, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnComponnentClicked, this)
                }, t.prototype.Init = function() {
                    this._unlockStatus = s.default.Instance.IsGameModuleUnlock(a.GameModuleType.ContinuousFight), this.LockNode.active = !this._unlockStatus[0], this._unlockStatus[0] ? (this.SetTime(), this.BindRedDot()) : this.UnlockConditionLabel.string = this._unlockStatus[1]
                }, t.prototype.SetTime = function() {
                    this._isInit || (this._deadLine = g.TimeUtil.GetMondayClock0Ts(h.RpcComponent.Instance.ServerTime) + 7 * d.Etc.DayDuration - 3 * d.Etc.HourDuration, this._timeDesc = "crossServerRank_remain".ToUILocale(), this.CountDownTime(), this.schedule(this.CountDownTime, 1), this._isInit = !0)
                }, t.prototype.CountDownTime = function() {
                    var e = h.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    if (t < 0) return this.RemainTimeRichText.string = "crossServerRank_end".ToUILocale(), void this.unschedule(this.CountDownTime);
                    this.RemainTimeRichText.string = this._timeDesc + "<color=#33ff8e>" + s.default.ActivityTimeLeftFormat(t) + "</c>"
                }, t.prototype.BindRedDot = function() {
                    c.RedDotManager.Instance.Bind(this.node, c.RedDotManager.Instance.RedDot.ContinuousFightNode, -47, -35)
                }, t.prototype.OnComponnentClicked = function() {
                    if (this._unlockStatus[0]) {
                        if (!y.default.IsAssistantComplete && f.BattleManager.Instance.IsInBattle(d.MapType.CrossZoneContinueWarRank)) return void f.BattleManager.Instance.ResumePlayBattle(d.MapType.CrossZoneContinueWarRank);
                        p.UIManager.Instance.ShowUIPanel(l.PanelConfig.ContinuousFightPanel.Path)
                    } else u.UIUtlity.ShowFloatingHint(this._unlockStatus[1])
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([_(cc.Node)], t.prototype, "LockNode", void 0), i([_(cc.Label)], t.prototype, "UnlockConditionLabel", void 0), i([_(cc.RichText)], t.prototype, "RemainTimeRichText", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Panel/ContinuousFightPanel": "ContinuousFightPanel"
    }],
    CookHouseCrazyTimeTweenComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "22e90ij7JdIKrjZ79CikZDj", "CookHouseCrazyTimeTweenComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Stars = [], t.RedLine = null, t.Title = null, t.Hero = null, t._timeRatio = 1, t
                }
                return r(t, e), t.prototype.Play = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.node.active = !0, [4, this.PlayIn()];
                                case 1:
                                    return e.sent(), [4, this.PlayOut()];
                                case 2:
                                    return e.sent(), this.Reset(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayIn = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, this.TweenOfLinear(this.RedLine)];
                                case 1:
                                    return e.sent(), [4, this.TweenOfLinear(this.Title)];
                                case 2:
                                    return e.sent(), [4, this.TweenOfHero()];
                                case 3:
                                    return e.sent(), [4, this.TweenOfStarsIn()];
                                case 4:
                                    return e.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayOut = function() {
                    return a(this, void 0, Promise, function() {
                        var e = this;
                        return s(this, function() {
                            return [2, new Promise(function(t) {
                                var n = .3 * e._timeRatio;
                                cc.tween(e.node).to(n, {
                                    opacity: 76.5,
                                    scaleX: 1.5,
                                    scaleY: 1.5
                                }).call(function() {
                                    t(!0)
                                }).start()
                            })]
                        })
                    })
                }, t.prototype.Reset = function() {
                    this.node.active = !1, this.node.opacity = 255, this.node.scaleX = 1, this.node.scaleY = 1, this.RedLine.x = 2191, this.Title.x = -1916, this.Title.y = 1094, this.Hero.x = 800, this.Hero.y = 700, this.Stars.forEach(function(e) {
                        e.angle = 0, e.scaleX = 0, e.scaleY = 0
                    })
                }, t.prototype.TweenOfLinear = function(e, t) {
                    void 0 === t && (t = 0);
                    var n = .1 * this._timeRatio;
                    return new Promise(function(o) {
                        cc.tween(e).to(n, {
                            x: t,
                            y: 0
                        }).call(function() {
                            o(!0)
                        }).start()
                    })
                }, t.prototype.TweenOfStarsIn = function() {
                    var e = this;
                    this.Stars.forEach(function(t) {
                        e.TweenOfSingleStar(t)
                    })
                }, t.prototype.TweenOfHero = function(e, t) {
                    var n = this;
                    return void 0 === e && (e = new cc.Vec2(0, 0)), void 0 === t && (t = "quadOut"), new Promise(function(o) {
                        var r = .3 * n._timeRatio;
                        cc.tween(n.Hero).to(r, {
                            x: e.x
                        }).call(function() {
                            o(!0)
                        }).start(), cc.tween(n.Hero).to(r, {
                            y: e.y
                        }, {
                            easing: t
                        }).start()
                    })
                }, t.prototype.TweenOfSingleStar = function(e, t) {
                    void 0 === t && (t = 1);
                    var n = .2 * this._timeRatio;
                    cc.tween(e).to(n, {
                        angle: 360,
                        scaleX: t,
                        scaleY: t
                    }).call(function() {
                        cc.tween(e).to(n, {
                            angle: 360
                        }).start()
                    }).start()
                }, i([u([cc.Node])], t.prototype, "Stars", void 0), i([u(cc.Node)], t.prototype, "RedLine", void 0), i([u(cc.Node)], t.prototype, "Title", void 0), i([u(cc.Node)], t.prototype, "Hero", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {}],
    CookHouseCutDownComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b2644k+R+xLE4hsGE9CnAJA", "CookHouseCutDownComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ShowList = [], t.MaskNode = null, t
                }
                return r(t, e), t.prototype.Play = function(e, t, n) {
                    return void 0 === e && (e = this.ShowList.length), void 0 === t && (t = !0), void 0 === n && (n = new cc.Vec2(0, 0)), a(this, void 0, void 0, function() {
                        var o = this;
                        return s(this, function() {
                            return this.ShowList[0].parent.x = n.x, this.ShowList[0].parent.y = n.y, [2, new Promise(function(n) {
                                o.MaskNode.active = t, o.node.active = !0, o.ShowList[0].active = !0, o.ScaleInTween(o.ShowList[0]), setTimeout(function() {
                                    return a(o, void 0, void 0, function() {
                                        var t;
                                        return s(this, function(o) {
                                            switch (o.label) {
                                                case 0:
                                                    t = 0, o.label = 1;
                                                case 1:
                                                    return t < e - 1 ? [4, this.ShowNext(t)] : [3, 4];
                                                case 2:
                                                    if (o.sent(), !this.isValid) return [2];
                                                    o.label = 3;
                                                case 3:
                                                    return t++, [3, 1];
                                                case 4:
                                                    return n(!0), this.Reset(), [2]
                                            }
                                        })
                                    })
                                }, 1e3)
                            })]
                        })
                    })
                }, t.prototype.ShowNext = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function() {
                            return [2, new Promise(function(n) {
                                t.ShowList[e].active = !1, t.ShowList[e + 1].active = !0, t.ScaleInTween(t.ShowList[e + 1]), setTimeout(function() {
                                    n(!0)
                                }, 1e3)
                            })]
                        })
                    })
                }, t.prototype.Reset = function() {
                    this.node.active = !1, this.ShowList.forEach(function(e, t) {
                        e.active = 0 == t
                    })
                }, t.prototype.ScaleInTween = function(e) {
                    e.scaleX = 1.5, e.scaleY = 1.5, e.opacity = 0, cc.tween(e).to(.3, {
                        scaleX: 1,
                        scaleY: 1,
                        opacity: 255
                    }, {
                        easing: "quadOut"
                    }).start()
                }, i([u([cc.Node])], t.prototype, "ShowList", void 0), i([u(cc.Node)], t.prototype, "MaskNode", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {}],
    CookHouseEnterPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fddab6MmYhCU6uacQUude5w", "CookHouseEnterPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/DataCenter"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Components/SmallRankListComponent"),
            g = e("../../Components/RpcComponent"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Components/Components"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/LoadAssetHelper"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.MulTitle = null, t.Bottom = null, t.RewardBtnSprite = null, t.TaskBtnSprite = null, t.StartBtn = null, t.StartBtnLabel = null, t.TryBth = null, t.TryLabel = null, t.TryTips = null, t.RuleBtn = null, t.PreviewBtn = null, t.PreviewLabel = null, t.LeftTimesLabels = [], t.BackBtn = null, t.RankComponent = null, t.HeroContainer = null, t.PanelTitle = null, t.LeftTime = null, t.TaskNode = null, t.TaskLabel = null, t.RedDot = null, t.LoadAssetHelper = null, t._avatar = null, t._tasks = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.StartBtn.node.on("click", this.OnClickStartBtn, this), this.TryBth.node.on("click", this.OnClickTryBtn, this), this.BackBtn.node.on("click", this.OnClickBackBtn, this), this.RuleBtn.node.on("click", this.OnClickRuleBtn, this), this.PreviewBtn.node.on("click", this.OnClickPreviewBtn, this), this.TaskNode.on("click", this.OnClickTaskBtn, this), this.StartBtnLabel.string = "treasure_machineStart".ToUILocale(), this.PanelTitle.string = "PickFood_title_rank".ToUILocale(), this.TryLabel.string = "happyTurn_test".ToUILocale(), this.TryTips.string = "happyTurn_test_no_reward".ToUILocale(), this.PreviewLabel.string = "AccumulateRecharge_rewardPreview".ToUILocale(), this.LeftTimesLabels[0].string = "happyTurn_today_times".ToUILocale(), this.TaskLabel.string = "btn_task".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._config = d.DataCenter.Instance.ActivityConfigs[this._activityId], this._tasks[0] = {
                        Tasks: [],
                        IsActivity: !0,
                        Title: "task_tab_2".ToUILocale(),
                        Reddot: C.RedDotManager.Instance.InstanceRedDot.CookHouseEnterPanelTaskToggle1,
                        ActivityId: this._activityId,
                        TextContent: "CookHouse_Task1".ToUILocale().Fmt("0".RichTextOutLine("#202434", 3).RichTextColor("#6eeea7")).RichTextColor("#624e3c")
                    }, this._tasks[1] = {
                        Tasks: [],
                        IsActivity: !0,
                        Title: "task_tab_5".ToUILocale(),
                        Reddot: C.RedDotManager.Instance.InstanceRedDot.CookHouseEnterPanelTaskToggle2,
                        ActivityId: this._activityId,
                        TextContent: "CookHouse_Task2".ToUILocale().RichTextColor("#624e3c")
                    }, this._config._Tasks.forEach(function(e) {
                        e.IsDaily ? n._tasks[0].Tasks.push(e) : n._tasks[1].Tasks.push(e)
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._model = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), t || (this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), this.RenderAvatar(), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + u.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/008_bg", this.Bg, null, 0, !0), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + u.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/008_bg2", this.Bottom, null, 1, !0), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + u.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/009_reward", this.RewardBtnSprite, null, 2, !0), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + u.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/009_task", this.TaskBtnSprite, null, 3, !0), this.LoadAssetHelper.LoadSpriteFrame("Activity_" + u.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/001_logo", this.MulTitle, null, 4, !0)), this.InitRankComponent(), this.RefreshTimes(), C.RedDotManager.Instance.BindInstance(this.TaskNode, C.RedDotManager.Instance.InstanceRedDot.CookHouseEnterPanelTaskBtn, {
                        Value1: this._activityId
                    })
                }, t.prototype.InitRankComponent = function() {
                    this.RankComponent.InitUIForActivity(this._activityId, "AllZoneChampionShip_RankButton".ToUILocale(), this.OnClickRank.bind(this), null, !0)
                }, t.prototype.OnClickStartBtn = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CookHouseGamePanel.Path, this._activityId, f.HappyTurnType.Official)
                }, t.prototype.OnClickTryBtn = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CookHouseGamePanel.Path, this._activityId, f.HappyTurnType.Demo)
                }, t.prototype.OnClickBackBtn = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickTaskBtn = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonTaskPanel.Path, this._tasks)
                }, t.prototype.OnClickRuleBtn = function() {
                    var e = {
                        name: "PickFood_title_rank".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["PickFood_RuleContent".ToUILocale()]
                    };
                    I.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnClickPreviewBtn = function() {
                    var e = {
                        Rewards: this._config.Rewards.map(function(e) {
                            var t = new p.HappyTurn_Reward;
                            return t.Id = e.Id, t.Score = e.MinScore, t.Rewards = e.Rewards, t
                        })
                    };
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.HappyTurnPreviewPanel.Path, e)
                }, t.prototype.OnClickRank = function() {
                    var e = this,
                        t = new p.Req_Activity_GetRank;
                    t.ActivityId = this._config._id, g.RpcComponent.Instance.Call(t, function(t) {
                        var n = {};
                        n.ActivityId = e._config._id, n.Title = "PickFood_title_rank".ToUILocale(), n.RankDatas = [t], l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonActivityRankPanel.Path, n)
                    })
                }, t.prototype.RefreshDeadLine = function() {
                    var e = m.default.Instance.ComputeExtraShowDeadTime(this._config.Common) - g.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "ActiveCollection_DeadlineTimeRichText".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(e))
                }, t.prototype.RefreshTimes = function() {
                    var e = this._config.CustomPart.Count,
                        t = Math.max(e - this._model.IntArray[0], 0);
                    this.LeftTimesLabels[1].string = "" + t, this.LeftTimesLabels[2].string = "/" + e, t > 0 ? (this.RedDot.active = !0, this.LeftTimesLabels[2].node.color = this.LeftTimesLabels[1].node.color = (new cc.Color).fromHEX("#33ff8e")) : (this.RedDot.active = !1, this.LeftTimesLabels[2].node.color = this.LeftTimesLabels[1].node.color = (new cc.Color).fromHEX("#ff403e"))
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.RenderAvatar = function() {
                    var e;
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    switch (t = this._config.CustomPart.ShowId[0], n = this._config.CustomPart.ShowId[1], t) {
                                        case 1:
                                        case 2:
                                            if (null == (r = _.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, n))) break;
                                            o = r.UIAvatar + "/Avatar";
                                            break;
                                        case 3:
                                            o = (null === (e = _.ConfigDataComponent.Instance.GetConfigById(c.HeroSkin_Config, n)) || void 0 === e ? void 0 : e.UIAvatar) + "/Avatar"
                                    }
                                    return n ? [4, l.AssetsManager.Instance.LoadAsset(o, cc.Prefab)] : [2];
                                case 1:
                                    return i = s.sent(), this.isValid ? (l.AssetsManager.Instance.UnloadAsset(this._avatar), this._avatar = i, a = cc.instantiate(this._avatar), this.HeroContainer.destroyAllChildren(), this.HeroContainer.addChild(a), r && m.default.Instance.SetHeroAvatarSkin(a, r.Id, r.StarLevel), [2]) : (l.AssetsManager.Instance.UnloadAsset(i), [2])
                            }
                        })
                    })
                }, i([w(cc.Sprite)], t.prototype, "Bg", void 0), i([w(cc.Sprite)], t.prototype, "MulTitle", void 0), i([w(cc.Sprite)], t.prototype, "Bottom", void 0), i([w(cc.Sprite)], t.prototype, "RewardBtnSprite", void 0), i([w(cc.Sprite)], t.prototype, "TaskBtnSprite", void 0), i([w(cc.Button)], t.prototype, "StartBtn", void 0), i([w(cc.Label)], t.prototype, "StartBtnLabel", void 0), i([w(cc.Button)], t.prototype, "TryBth", void 0), i([w(cc.Label)], t.prototype, "TryLabel", void 0), i([w(cc.Label)], t.prototype, "TryTips", void 0), i([w(cc.Button)], t.prototype, "RuleBtn", void 0), i([w(cc.Button)], t.prototype, "PreviewBtn", void 0), i([w(cc.Label)], t.prototype, "PreviewLabel", void 0), i([w([cc.Label])], t.prototype, "LeftTimesLabels", void 0), i([w(cc.Button)], t.prototype, "BackBtn", void 0), i([w(y.default)], t.prototype, "RankComponent", void 0), i([w(cc.Node)], t.prototype, "HeroContainer", void 0), i([w(cc.Label)], t.prototype, "PanelTitle", void 0), i([w(cc.RichText)], t.prototype, "LeftTime", void 0), i([w(cc.Node)], t.prototype, "TaskNode", void 0), i([w(cc.Label)], t.prototype, "TaskLabel", void 0), i([w(cc.Node)], t.prototype, "RedDot", void 0), i([w(v.default)], t.prototype, "LoadAssetHelper", void 0), i([S], t)
            }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/SmallRankListComponent": "SmallRankListComponent"
    }],
    CookHouseGamePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8f198MGWUxIyZF9NSv6D4f8", "CookHouseGamePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CustomProgressBar"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../Consts/Consts"),
            f = e("../../Components/DataCenter"),
            y = e("../Components/CookHouseItemComponent"),
            g = e("../Components/CookHouseCrazyTimeTweenComponent"),
            m = e("../Components/CookHouseCutDownComponent"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../Components/RpcComponent"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../Auxiliary/DataUtlity"),
            w = e("../Components/LoadAssetHelper"),
            P = e("../../Components/ConfigData/ConfigDataComponent");
        (function(e) {
            e[e.noStart = 0] = "noStart", e[e.Normal = 1] = "Normal", e[e.CrazyTime = 2] = "CrazyTime", e[e.error = 3] = "error", e[e.pause = 4] = "pause", e[e.complete = 5] = "complete"
        })(l || (l = {}));
        var A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Bg = null, t.InfoBg = null, t.LeftBtn = null, t.RightBtn = null, t.ProgressBg = null, t.CdSprite = null, t.Score = null, t.CutDown = null, t.Rank = null, t.ProgressBar = null, t.ItemContainer = null, t.RedBtn = null, t.BlueBtn = null, t.BackBtn = null, t.ProgressBarSprite = null, t.CrazyTweenComponent = null, t.CutDownComponent = null, t.LoadAssetHelper = null, t.AvatarNode = null, t._tableLength = 550, t._showItemNum = 7, t._scaleMin = .3, t._scaleMax = 1.2, t._petMoveInterval = 50, t._moveToPoint = {
                        left: new cc.Vec2(-350, -750),
                        right: new cc.Vec2(350, -750)
                    }, t._gameState = l.noStart, t._foodsMap = {}, t._score = 0, t._crazyValue = 0, t._crazyTime = 0, t._currencyItems = [], t._pauseState = l.noStart, t._clickTime = 0, t.LoadProgressBarFlag = 10, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(C.EventKeys.EVENT_HAPPY_TURN_RETURN, this.BackToEntryPanel, this), c.Game.EventDispatcher.On(C.EventKeys.EVENT_HAPPY_TURN_RESTART, this.PlayAgain, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(C.EventKeys.EVENT_HAPPY_TURN_RETURN, this.BackToEntryPanel, this), c.Game.EventDispatcher.Off(C.EventKeys.EVENT_HAPPY_TURN_RESTART, this.PlayAgain, this)
                }, t.prototype.update = function(e) {
                    if (this._gameState != l.complete && this._gameState != l.noStart && this._gameState != l.pause) {
                        var t = 1e3 * e;
                        if (this._leftTime -= t, this._leftTime <= 0) return this.CutDown.string = "0", void this.EndGame();
                        Math.abs(this._leftTime - 3e3) < 20 && this.PlayCountdown(), this._leftTime % 1e3 < 20 && (this.CutDown.string = "" + Math.floor(this._leftTime / 1e3)), this._gameState == l.CrazyTime && (this._crazyTime -= t, this._crazyTime <= 0 && this.EndCrazyTime(), this.SetProgressBar())
                    }
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CookHouseGamePanel/Component/CookHouseItemComponent", cc.Prefab), n = this.LoadDynamicAsset("CookHouseGamePanel/PNG/CookHouseGame", cc.SpriteAtlas), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._cookItem = o[0], this._atlas = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RedBtn.node.on("click", this.OnClickRedBtn, this), this.BlueBtn.node.on("click", this.OnClickBlueBtn, this), this.BackBtn.node.on("click", this.OnClickBackBtn, this)
                }, t.prototype.InitData = function(t) {
                    var n, o = this;
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._gameType = t[1], t[2] && (this._cookConfigs = t[2]), null != t[3] && null != t[3] && (this._circusGameIndex = t[3]), this._nodePool = new cc.NodePool, this._gameType == _.HappyTurnType.PartGame ? (this._gameTime = 30, n = this._cookConfigs) : (this._config = f.DataCenter.Instance.ActivityConfigs[this._activityId], this._gameTime = this._config.CustomPart.Time, n = this._config.Foods), this._leftTime = 1e3 * this._gameTime, n.forEach(function(e) {
                        o._foodsMap[e.Id] = e
                    }), this._petLastSetTime = this._leftTime
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = this.LoadDynamicAsset("CookHouseGamePanel/PNG/CookHouseNumber" + this._config.CustomPart.ThemedId, cc.LabelAtlas), [4, Promise.all([e])];
                                case 1:
                                    return t = n.sent(), this.Score.font = t[0], this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + h.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/001_bg", this.Bg, null, 0, !0), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + h.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/002_btnL", this.LeftBtn, null, 1, !0), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + h.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/002_btnR", this.RightBtn, null, 2, !0), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + h.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/005_InfoBg", this.InfoBg, null, 3, !0), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + h.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/003_cd", this.CdSprite, null, 4, !0), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + h.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/006_progressBg", this.ProgressBg, null, 5, !0), this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + h.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/007_progress1", this.ProgressBarSprite, this.LoadProgressBarSprite.bind(this), this.LoadProgressBarFlag, !0), [2]
                            }
                        })
                    })
                }, t.prototype.LoadProgressBarSprite = function(e) {
                    e.insetLeft = 26, e.insetRight = 26
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), t || (this._gameState = l.noStart, this.CutDownComponent.Play().then(function() {
                        n._gameState = l.Normal
                    }), this.CutDown.string = "" + this._gameTime, this.SetRank(), this.SetPoint(), this.InitCookItem(), this.SetProgressBar(), this.RenderAvatar())
                }, t.prototype.InitCookItem = function() {
                    for (var e = 1; e <= this._showItemNum; e++) {
                        var t = this.AddCookItem();
                        this._currencyItems.push(t)
                    }
                    this.MoveCookItems()
                }, t.prototype.AddCookItem = function() {
                    var e;
                    e = this._nodePool.size() > 0 ? this._nodePool.get() : cc.instantiate(this._cookItem), this.ItemContainer.addChild(e);
                    var t = e.getComponent(y.default);
                    return t.Init(this._gameState == l.CrazyTime, this._config.CustomPart.ThemedId), this.SetPet(), t
                }, t.prototype.SetPoint = function() {
                    this.Score.string = "" + this._score
                }, t.prototype.SetRank = function() {
                    var e = this;
                    if (this._gameType != _.HappyTurnType.PartGame) {
                        var t, n = this._config.Rewards.findIndex(function(n, o) {
                                return o == e._config.Rewards.length - 1 && (t = n.MaxScore), e._score <= n.MaxScore && e._score >= n.MinScore
                            }),
                            o = -1 == n ? this._score >= t ? this._config.Rewards.length + 1 : 1 : n + 2;
                        o != this._rank && (this._rank = o, this.Rank.spriteFrame = this._atlas.getSpriteFrame("CookHouse_Quality" + this._rank), this.ChangeRankTween())
                    }
                }, t.prototype.SetProgressBar = function() {
                    if (this._gameState == l.CrazyTime) {
                        var e = this._gameType == _.HappyTurnType.PartGame ? 5 : this._config.CustomPart.CrazyTime;
                        this.ProgressBar.progress = this._crazyTime / 1e3 / e
                    } else {
                        var t = this._gameType == _.HappyTurnType.PartGame ? 20 : this._config.CustomPart.CrazyTotal;
                        this.ProgressBar.progress = this._crazyValue / t
                    }
                }, t.prototype.SetPet = function() {
                    this._gameState != l.complete && (Math.abs(this._petLastSetTime - this._leftTime) < this._petMoveInterval || (this._petLastSetTime = this._leftTime))
                }, t.prototype.OnClickRedBtn = function() {
                    v.RpcComponent.Instance.ServerTime - this._clickTime > 50 && (this._clickTime = v.RpcComponent.Instance.ServerTime, this.TweenOfRemove("left"))
                }, t.prototype.OnClickBlueBtn = function() {
                    v.RpcComponent.Instance.ServerTime - this._clickTime > 50 && (this._clickTime = v.RpcComponent.Instance.ServerTime, this.TweenOfRemove("right"))
                }, t.prototype.TweenOfRemove = function(e) {
                    var t = this;
                    if (this._pauseState && (this._gameState = this._pauseState, this._pauseState = 0), this._gameState == l.Normal || this._gameState == l.CrazyTime) {
                        var n = this._currencyItems[this._currencyItems.length - 1];
                        if (n.Type == y.CookHouseItemType.Vegetable && "left" == e || n.Type == y.CookHouseItemType.Monster && "right" == e || n.Type == y.CookHouseItemType.GoldenApple) {
                            if (this._currencyItems.pop(), this._score += this._foodsMap[n.ItemId].Score, this.AddPointTween(), this._gameState == l.Normal) {
                                this._crazyValue += this._foodsMap[n.ItemId].CrazyPoint, this.SetProgressBar();
                                var o = this._gameType == _.HappyTurnType.PartGame ? 20 : this._config.CustomPart.CrazyTotal;
                                this._crazyValue >= o && this.StartCrazyTime()
                            }
                            this.SetRank(), n.EndShake(), cc.tween(n.node).to(.3, {
                                x: this._moveToPoint[e].x,
                                y: this._moveToPoint[e].y,
                                angle: 180,
                                scaleX: 0,
                                scaleY: 0
                            }).call(function() {
                                n.node.angle = 0, n.node.scaleX = 1, n.node.scaleY = 1, n.node.removeFromParent(), t._nodePool.put(n.node)
                            }).start();
                            var r = this.AddCookItem();
                            this._currencyItems.unshift(r), this.MoveCookItems(), this.SetPoint()
                        } else {
                            n.StartTwinkle(), this._gameState = l.error;
                            var i = this._gameType == _.HappyTurnType.PartGame ? 500 : this._config.CustomPart.PenaltyTime;
                            setTimeout(function() {
                                t.isValid && (n.EndTwinkle(), t._gameState != l.complete && (t._gameState = l.Normal))
                            }, i)
                        }
                    }
                }, t.prototype.OnClickBackBtn = function() {
                    var e = this;
                    this._gameState != l.noStart && this._gameState != l.complete && this._gameState != l.pause && (this._gameState == l.CrazyTime ? this._pauseState = this._gameState : this._pauseState = l.Normal, this._gameState = l.pause, b.UIUtlity.ShowHintPanel(null, "happyTurn_cala".ToUILocale(), "", function() {
                        e._gameState = e._pauseState, e._pauseState = 0
                    }, "ok".ToUILocale(), function() {
                        e.EndGame()
                    }))
                }, t.prototype.StartCrazyTime = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._gameState != l.Normal ? [2] : (this._gameState = l.pause, [4, this.CrazyTweenComponent.Play()]);
                                case 1:
                                    return n.sent(), this.isValid ? (this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + h.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/007_progress2", this.ProgressBarSprite, this.LoadProgressBarSprite.bind(this), this.LoadProgressBarFlag, !0), this._gameState = l.CrazyTime, e = this._gameType == _.HappyTurnType.PartGame ? 5 : this._config.CustomPart.CrazyTime, this._crazyTime = 1e3 * e, this._currencyItems.forEach(function(e) {
                                        e.Init(t._gameState == l.CrazyTime, t._config.CustomPart.ThemedId), t.MoveCookItems()
                                    }), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.EndCrazyTime = function() {
                    this._gameState == l.CrazyTime ? (this._crazyValue = 0, this._gameState = l.Normal, this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + h.ActivityType.PickFood + "/" + this._config.CustomPart.ThemedId + "/007_progress1", this.ProgressBarSprite, this.LoadProgressBarSprite.bind(this), this.LoadProgressBarFlag, !0)) : c.EZLog.Log("cookGame state err")
                }, t.prototype.EndGame = function() {
                    var e = this;
                    if (this._gameType != _.HappyTurnType.PartGame && S.default.CheckActivityIsEnd(this._config.Common, !0)) c.UIManager.Instance.BackUIPanel();
                    else if (this._gameState == l.CrazyTime && this.EndCrazyTime(), this._gameState = l.complete, this._gameType == _.HappyTurnType.PartGame) c.Game.EventDispatcher.Emit(C.EventKeys.EVENT_CIRCUSMAZE_DIAMOND_COUNT, this._circusGameIndex, this._score), c.UIManager.Instance.BackUIPanel();
                    else {
                        var t = new p.Req_Activity_PickFoodSettlement;
                        t.ActivityId = this._config._id, t.Score = this._score, t.Type = this._gameType, v.RpcComponent.Instance.Call(t, function(t) {
                            c.EZLog.Log(), c.UIManager.Instance.ShowUIPanel(I.PanelConfig.HappyTurnEndPanel.Path, e._score, e._gameType, 0, t.MyRank, t.Rewards, e._config)
                        })
                    }
                }, t.prototype.PlayCountdown = function() {
                    this.CutDownComponent.Play(this.CutDownComponent.ShowList.length - 1, !1, new cc.Vec2(0, 300))
                }, t.prototype.MoveCookItems = function() {
                    for (var e = 0; e < this._showItemNum; e++) {
                        var t = this._currencyItems[e],
                            n = t.node,
                            o = e / (this._showItemNum - 1);
                        n.y = -o * this._tableLength, n.scaleX = o * (this._scaleMax - this._scaleMin) + this._scaleMin, n.scaleY = n.scaleX, n.zIndex = e, e == this._showItemNum - 1 && t.StartShake()
                    }
                }, t.prototype.AddPointTween = function() {
                    this._tweenOfAddPoint || (this._tweenOfAddPoint = cc.tween(this.Score.node).to(.1, {
                        scaleX: 1.2,
                        scaleY: 1.2
                    }).to(.1, {
                        scaleX: 1,
                        scaleY: 1
                    })), this._tweenOfAddPoint.stop(), this.Score.node.scaleX = 1, this.Score.node.scaleY = 1, this._tweenOfAddPoint.start()
                }, t.prototype.ChangeRankTween = function() {
                    this._tweenOfRankChange || (this._tweenOfRankChange = cc.tween(this.Rank.node).to(.1, {
                        scaleX: 1.2,
                        scaleY: 1.2
                    }).to(.1, {
                        scaleX: 1,
                        scaleY: 1
                    })), this._tweenOfRankChange.stop(), this.Score.node.scaleX = 1, this.Score.node.scaleY = 1, this._tweenOfRankChange.start()
                }, t.prototype.BackToEntryPanel = function() {
                    this._gameState == l.CrazyTime && this.EndCrazyTime(), c.UIManager.Instance.BackUIPanel()
                }, t.prototype.PlayAgain = function() {
                    var e = this;
                    this._gameState = l.noStart, this.CutDownComponent.Play().then(function() {
                        e._gameState = l.Normal
                    });
                    var t = this._gameType == _.HappyTurnType.PartGame ? 5 : this._config.CustomPart.CrazyTime;
                    this.CutDown.string = "" + t, this._score = 0, this._leftTime = 1e3 * this._gameTime, this._crazyTime = 0, this._crazyValue = 0, this.SetRank(), this.SetPoint(), this.ItemContainer.children.forEach(function(t) {
                        e._nodePool.put(t)
                    }), this.ItemContainer.removeAllChildren(), this._currencyItems = [], this.InitCookItem(), this.SetProgressBar()
                }, t.prototype.RenderAvatar = function() {
                    var e;
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function() {
                            switch (t = this._config.CustomPart.ShowId[0], n = this._config.CustomPart.ShowId[1], t) {
                                case 1:
                                case 2:
                                    if (null == (r = P.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, n))) break;
                                    o = "Hero_" + r.Model + "/HeroAvatar";
                                    break;
                                case 3:
                                    o = "Hero_" + (null === (e = P.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, n)) || void 0 === e ? void 0 : e.Model) + "/HeroAvatar"
                            }
                            return n ? (this.LoadAssetHelper.LoadPrefab(o, this.AvatarNode, function(e) {
                                e.getComponent(sp.Skeleton).setAnimation(0, h.SkillAnimationType.Standby, !0)
                            }), [2]) : [2]
                        })
                    })
                }, i([R(cc.Sprite)], t.prototype, "Bg", void 0), i([R(cc.Sprite)], t.prototype, "InfoBg", void 0), i([R(cc.Sprite)], t.prototype, "LeftBtn", void 0), i([R(cc.Sprite)], t.prototype, "RightBtn", void 0), i([R(cc.Sprite)], t.prototype, "ProgressBg", void 0), i([R(cc.Sprite)], t.prototype, "CdSprite", void 0), i([R(cc.Label)], t.prototype, "Score", void 0), i([R(cc.Label)], t.prototype, "CutDown", void 0), i([R(cc.Sprite)], t.prototype, "Rank", void 0), i([R(u.default)], t.prototype, "ProgressBar", void 0), i([R(cc.Node)], t.prototype, "ItemContainer", void 0), i([R(cc.Button)], t.prototype, "RedBtn", void 0), i([R(cc.Button)], t.prototype, "BlueBtn", void 0), i([R(cc.Button)], t.prototype, "BackBtn", void 0), i([R(cc.Sprite)], t.prototype, "ProgressBarSprite", void 0), i([R(g.default)], t.prototype, "CrazyTweenComponent", void 0), i([R(m.default)], t.prototype, "CutDownComponent", void 0), i([R(w.default)], t.prototype, "LoadAssetHelper", void 0), i([R(cc.Node)], t.prototype, "AvatarNode", void 0), i([T], t)
            }(c.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CookHouseCrazyTimeTweenComponent": "CookHouseCrazyTimeTweenComponent",
        "../Components/CookHouseCutDownComponent": "CookHouseCutDownComponent",
        "../Components/CookHouseItemComponent": "CookHouseItemComponent",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/LoadAssetHelper": "LoadAssetHelper"
    }],
    CookHouseItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "149d0oG7rJJ4ZFfZ1hS04rJ", "CookHouseItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CookHouseItemType = void 0;
        var a, s = e("../Auxiliary/UIUtlity"),
            l = e("./LoadAssetHelper"),
            c = e("../../../Consts/Consts"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property;
        (function(e) {
            e[e.Vegetable = 1] = "Vegetable", e[e.Monster = 2] = "Monster", e[e.GoldenApple = 3] = "GoldenApple"
        })(a = n.CookHouseItemType || (n.CookHouseItemType = {}));
        var h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Sprite = null, t.DarkSprite = null, t.LoadAssetHelper = null, t._itemTotal = 5, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "ItemId", {
                get: function() {
                    return this._itemId
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Type", {
                get: function() {
                    return this._type
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Init = function(e, t) {
                this.node.x = 0, this.node.y = 0, this.node.scaleX = 1, this.node.scaleY = 1, this.node.angle = 0, this.node.opacity = 255, e ? (this._type = a.GoldenApple, this._itemNum = 1) : (this._type = Math.random() > .5 ? a.Vegetable : a.Monster, this._itemNum = Math.floor(Math.random() * this._itemTotal) + 1), this._itemId = this._type > 1 ? Math.pow(10, this._type) + this._itemNum : this._itemNum, this.LoadAssetHelper.LoadSpriteFrame("Common/Activity_" + c.ActivityType.PickFood + "/" + t + "/004_item" + this._itemId, this.Sprite, this.LoadSpriteCallback.bind(this), 1, !0)
            }, t.prototype.LoadSpriteCallback = function(e) {
                this.Sprite.spriteFrame = e, this.DarkSprite.spriteFrame = e, s.UIUtlity.OnSpriteDark(this.DarkSprite), this.DarkSprite.node.opacity = 0
            }, t.prototype.StartTwinkle = function() {
                var e = this;
                this.DarkSprite.node.opacity = 255, this._twinkleTween ? this._twinkleTween.start() : this._twinkleTween = cc.tween(this.DarkSprite.node).to(.3, {}).call(function() {
                    e.DarkSprite.node.opacity = 0
                }).to(.3, {}).call(function() {
                    e.DarkSprite.node.opacity = 255, e.StartTwinkle()
                }).start()
            }, t.prototype.EndTwinkle = function() {
                var e;
                this.DarkSprite.node.opacity = 0, null === (e = this._twinkleTween) || void 0 === e || e.stop()
            }, t.prototype.StartShake = function() {
                this._shakeTween || (this._shakeTween = cc.tween(this.node).to(.5, {
                    angle: 10
                }).to(.5, {
                    angle: 0
                }).to(.5, {
                    angle: -10
                }).to(.5, {
                    angle: 0
                })), this._shakeTween.start()
            }, t.prototype.EndShake = function() {
                var e;
                null === (e = this._shakeTween) || void 0 === e || e.stop()
            }, i([d(cc.Sprite)], t.prototype, "Sprite", void 0), i([d(cc.Sprite)], t.prototype, "DarkSprite", void 0), i([d(l.default)], t.prototype, "LoadAssetHelper", void 0), i([p], t)
        }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    CoreGalleryListItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9d961AstcVBjL6ErUYBC+u5", "CoreGalleryListItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("./PetGalleryListItemAttr"),
            y = e("./PowerCoreFormComponent"),
            g = e("../Panel/PetGalleryItemChangePanel"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SlotNode = null, t.LockIconNode = null, t.LockTip = null, t.AddIconNode = null, t.CoreNode = null, t.CoreFormNode = null, t.CoreName = null, t.AttrContainer = null, t.RedDotNode = null, t._attrComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.SlotNode.on(cc.Node.EventType.TOUCH_END, this.OnPetSlotNodeClick, this)
                }, t.prototype.onDisable = function() {
                    this.SlotNode.off(cc.Node.EventType.TOUCH_END, this.OnPetSlotNodeClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._slotConfig = e, this._nextLockSlotId = t, this._currentGalleryLevel = n, this._attrPrefab = o, this._coreSlotData = r || {}, this.SetSlotState()
                }, t.prototype.SetSlotState = function() {
                    this.CoreNode.active = !1, this.LockIconNode.active = !1, this.AddIconNode.active = !1, this.LockTip.node.active = !1, !this._slotConfig.Requirements || this._slotConfig.Requirements <= this._currentGalleryLevel ? this._coreSlotData[this._slotConfig.Id] ? (this.CoreNode.active = !0, this._coreModel = this._coreSlotData[this._slotConfig.Id], this.CoreName.string = this._coreModel.ItemId.ToItemName(), this._coreBaseConfig = p.ConfigDataComponent.Instance.GetConfigById(c.PowerCore_Config, this._coreModel.ItemId), this.SetCoreForm(), this.SetAttrContainer()) : this.AddIconNode.active = !0 : (this.LockIconNode.active = !0, this._slotConfig.Id == this._nextLockSlotId && (this.LockTip.node.active = !0, this.LockTip.string = "PetGalleryListPanel_ListItem_Lock_Tip".ToUILocale().Fmt(this._slotConfig.Requirements))), this.RedDotNode.active = this.GetRedDotState()
                }, t.prototype.SetCoreForm = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.CoreFormNode.destroyAllChildren(), this._coreFormPrefab && l.AssetsManager.Instance.UnloadAsset(this._coreFormPrefab), e = this, [4, l.AssetsManager.Instance.LoadAsset("CoreCultivatePanel/Components/PowerCoreFormComponent", cc.Prefab)];
                                case 1:
                                    return e._coreFormPrefab = n.sent(), this.isValid ? ((t = cc.instantiate(this._coreFormPrefab)).setParent(this.CoreFormNode), t.getComponent(y.default).InitData(m.default.GetCoreFormId(this._coreBaseConfig)), [2]) : (l.AssetsManager.Instance.UnloadAsset(this._coreFormPrefab), [2])
                            }
                        })
                    })
                }, t.prototype.SetAttrContainer = function() {
                    for (var e = 0; e < this._coreBaseConfig.ShowAttr.length; e++) {
                        var t = this._attrComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._attrPrefab);
                            n.setParent(this.AttrContainer), t = n.getComponent(f.default), this._attrComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o = this._coreBaseConfig.ShowAttr[e].Items;
                        t.Init(o[0], o[1], 220), t.SetLabelColor("#E6DFB3", "#23E123")
                    }
                    if (this._coreBaseConfig.ShowAttr.length < this._attrComponentArray.length)
                        for (e = this._coreBaseConfig.ShowAttr.length; e < this._attrComponentArray.length; e++) this._attrComponentArray[e].node.active = !1
                }, t.prototype.GetRedDotState = function() {
                    if (this._slotConfig.Requirements && this._slotConfig.Requirements > this._currentGalleryLevel) return !1;
                    for (var e = p.DataCenter.Instance.GetDataList(u.PowerCore_Model), t = 0; t < e.length; t++)
                        if (!e[t].GallerySlot) {
                            if (!this._coreSlotData[this._slotConfig.Id]) return !0;
                            if (p.ConfigDataComponent.Instance.GetConfigById(c.PowerCore_Config, e[t].ItemId).Score > this._coreBaseConfig.Score) return !0
                        } return !1
                }, t.prototype.OnPetSlotNodeClick = function() {
                    var e;
                    this._slotConfig.Requirements > this._currentGalleryLevel ? h.UIUtlity.ShowFloatingHint("PetGalleryListPanel_ListItem_Lock_Tip".ToUILocale().Fmt(this._slotConfig.Requirements)) : (this._coreSlotData[this._slotConfig.Id] && (e = this._coreSlotData[this._slotConfig.Id].Sid), l.UIManager.Instance.ShowUIPanel(d.PanelConfig.PetGalleryItemChangePanel.Path, e, this._slotConfig.Id, g.GalleryItemChangeType.Core))
                }, i([C(cc.Node)], t.prototype, "SlotNode", void 0), i([C(cc.Node)], t.prototype, "LockIconNode", void 0), i([C(cc.Label)], t.prototype, "LockTip", void 0), i([C(cc.Node)], t.prototype, "AddIconNode", void 0), i([C(cc.Node)], t.prototype, "CoreNode", void 0), i([C(cc.Node)], t.prototype, "CoreFormNode", void 0), i([C(cc.Label)], t.prototype, "CoreName", void 0), i([C(cc.Node)], t.prototype, "AttrContainer", void 0), i([C(cc.Node)], t.prototype, "RedDotNode", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/PetGalleryItemChangePanel": "PetGalleryItemChangePanel",
        "./PetGalleryListItemAttr": "PetGalleryListItemAttr",
        "./PowerCoreFormComponent": "PowerCoreFormComponent"
    }],
    CoreGalleryListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fd5a6rdObVEZ7eoYbzJE7UH", "CoreGalleryListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Components/CustomLayout"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/AttrComponent2"),
            I = e("../Components/FetterSkillMaterialComponent"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../Components/CoreGalleryListItemComponent"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.SubTitle = null, t.CoreCustomLayout = null, t.InfoTitle = null, t.CurrentLevelLabel = null, t.NextLevelLabel = null, t.LevelArrowIconNode = null, t.AttrContainer = null, t.MaterialNode = null, t.MaterialTitle = null, t.MaterialContainer = null, t.UpLevelButton = null, t.UpLevelButtonLabel = null, t.DetailButton = null, t.DetailButtonLabel = null, t.MaxTipLabel = null, t.ReturnButton = null, t._attrComponentArray = [], t._materialComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshListScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshListScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CoreGalleryListPanel/Components/CoreGalleryListItemComponent", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/AttrComponent2", cc.Prefab), o = this.LoadDynamicAsset("CollectionPavilionPanel/Components/FetterSkillMaterialComponent", cc.Prefab), r = this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab), i = this.LoadDynamicAsset("PetGalleryListPanel/Components/PetGalleryListItemAttr", cc.Prefab), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._coreListItemPrefab = e[0], a._attrPrefab = e[1], a._materialPrefab = e[2], a._itemPrefab = e[3], a._listItemAttr = e[4]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "PowerCoreGallery_Title".ToUILocale(), this.InfoTitle.string = "PetGalleryListPanel_InfoTitle".ToUILocale(), this.MaterialTitle.string = "PetGalleryListPanel_MaterialTitle".ToUILocale(), this.UpLevelButtonLabel.string = "common_upgrade_level".ToUILocale(), this.DetailButtonLabel.string = "PetGalleryListPanel_Total_Addtion".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.CoreCustomLayout.Init(this._coreListItemPrefab)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this._coreSlotConfigArray = d.ConfigDataComponent.Instance.GetArrayConfig(u.PowerCoreGallerySlot_Config), this._galleryConfigArray = d.ConfigDataComponent.Instance.GetArrayConfig(u.PowerCoreGalleryLevel_Config)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n = d.DataCenter.Instance.GetDataById(p.UserSimpleData_Model, f.UserDataKey.PowerCoreGalleryLevel);
                    n && n.V ? this._currentGalleryLevel = n.V : this._currentGalleryLevel = 0, this._currentGalleryConfig = d.ConfigDataComponent.Instance.GetConfigById(u.PowerCoreGalleryLevel_Config, this._currentGalleryLevel), this._nextGalleryConfig = d.ConfigDataComponent.Instance.GetConfigById(u.PowerCoreGalleryLevel_Config, this._currentGalleryLevel + 1), this._nextGalleryConfig || (this._nextGalleryConfig = this._currentGalleryConfig), this._currentGalleryLevel || (this._currentGalleryConfig = this._nextGalleryConfig), this.SetSubTitle(), this.SetLevelTip(), this.SetAttrContainer(), this.MaterialNode.active = !1, this.UpLevelButton.node.active = this._currentGalleryLevel < this._galleryConfigArray.length - 1, this.MaxTipLabel.node.active = this._currentGalleryLevel == this._galleryConfigArray.length - 1, this._currentGalleryLevel < this._galleryConfigArray.length - 1 ? (this.MaterialNode.active = !0, this.SetMaterialContainer()) : this.MaxTipLabel.string = "common_max_level".ToUILocale(), this.CoreCustomLayout.RenderLayOut(this._coreSlotConfigArray.length), this.SetRedDot()
                }, t.prototype.SetSubTitle = function() {
                    var e = this,
                        t = 0;
                    this._coreSlotData = {}, d.DataCenter.Instance.GetDataList(p.PowerCore_Model).forEach(function(n) {
                        n.GallerySlot && (t++, e._coreSlotData[n.GallerySlot] = n)
                    }), this.SubTitle.string = "PetGalleryListPanel_Subtitle".ToUILocale().Fmt(t, this._coreSlotConfigArray.length)
                }, t.prototype.SetLevelTip = function() {
                    this.CurrentLevelLabel.string = "Lv." + this._currentGalleryLevel, this._currentGalleryLevel < this._galleryConfigArray.length - 1 ? this.NextLevelLabel.string = "Lv." + (this._currentGalleryLevel + 1) : (this.NextLevelLabel.node.active = !1, this.LevelArrowIconNode.active = !1)
                }, t.prototype.SetAttrContainer = function() {
                    for (var e = 0; e < this._currentGalleryConfig.Attrs.length; e++) {
                        var t = this._attrComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._attrPrefab);
                            n.setParent(this.AttrContainer), t = n.getComponent(m.default), this._attrComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o = this._currentGalleryConfig.Attrs[e].Items[0],
                            r = this._currentGalleryLevel > 0 ? this._currentGalleryConfig.Attrs[e].Items[1] : 0,
                            i = this._nextGalleryConfig.Attrs[e].Items[1] - r;
                        i > 0 ? t.Init(o, r, i) : t.Init(o, r), t.SetAttrValueStyle(486, 258, m.AttrComponent2Style.Mid, m.AttrComponent2Style.Mid)
                    }
                    if (this._currentGalleryConfig.Attrs.length < this._attrComponentArray.length)
                        for (e = this._currentGalleryConfig.Attrs.length; e < this._attrComponentArray.length; e++) this._attrComponentArray[e].node.active = !1
                }, t.prototype.SetMaterialContainer = function() {
                    this._notEnoughItemId = null;
                    for (var e = 0; e < this._nextGalleryConfig.Materials.length; e++) {
                        var t = this._materialComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._materialPrefab);
                            n.setParent(this.MaterialContainer), t = n.getComponent(I.default), this._materialComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o, r = this._nextGalleryConfig.Materials[e].Items[0];
                        o = this._currentGalleryLevel > 0 ? this._nextGalleryConfig.Materials[e].Items[1] - this._currentGalleryConfig.Materials[e].Items[1] : this._currentGalleryConfig.Materials[e].Items[1], t.Init(this._itemPrefab, r, o), this._notEnoughItemId || d.DataCenter.Instance.IsItemEnough(r, o) || (this._notEnoughItemId = r)
                    }
                }, t.prototype.SetRedDot = function() {
                    C.RedDotManager.Instance.Bind(this.UpLevelButton.node, C.RedDotManager.Instance.RedDot.PowerCoreGalleryUpLevel)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "PowerCoreGallery_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["PowerCoreGallery_Rule_Content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = this.GetTotalAttrData();
                    l.UIManager.Instance.ShowUIPanel(_.PanelConfig.CommonTotalAttrPanel.Path, e)
                }, t.prototype.OnUpLevelButtonClick = function() {
                    var e = this;
                    if (this._notEnoughItemId) return c.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughItemId.ToItemName())), void v.default.ShowItemGetWay(this._notEnoughItemId);
                    var t = new p.Req_Team_PowerCoreGalleryUpgradeLevel;
                    t.NewLevel = this._currentGalleryLevel + 1, d.RpcComponent.Instance.Call(t, function() {
                        c.UIUtlity.ShowFloatingHint("pet_level_up_seccess".ToUILocale());
                        var t = d.DataCenter.Instance.GetTempData("UserOldBattlePowerData"),
                            n = d.DataCenter.Instance.GetIntData(f.UserDataKey.Power);
                        n > t && l.UIManager.Instance.ShowUIPanel(_.PanelConfig.BattlePowerChangePanel.Path, t, n), e.DisPlay(!0)
                    })
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.GetTotalAttrData = function() {
                    var e = [],
                        t = {};
                    t.Title = "gallery_all_attr_up".ToUILocale(), t.IsShowAddAttr = !0, t.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale();
                    var n = [];
                    this._currentGalleryLevel > 0 && this._currentGalleryConfig.Attrs.forEach(function(e) {
                        var t = {};
                        t.attrId = e.Items[0], t.attrvalue = e.Items[1], n.push(t)
                    }), t.AttrArray = n, e.push(t);
                    var o = {};
                    o.Title = "PowerCoreGallery_Attr_Addtion".ToUILocale(), o.IsShowAddAttr = !0, o.AttrPrefix = null;
                    var r = {};
                    d.DataCenter.Instance.GetDataList(p.PowerCore_Model).forEach(function(e) {
                        if (e.GallerySlot)
                            for (var t = d.ConfigDataComponent.Instance.GetConfigById(u.PowerCore_Config, e.ItemId), n = 0; n < t.ShowAttr.length; n++) {
                                var o = t.ShowAttr[n].Items[0],
                                    i = t.ShowAttr[n].Items[1];
                                r[o] ? r[o] += i : r[o] = i
                            }
                    });
                    var i = [];
                    for (var a in r) {
                        var s = {};
                        s.attrId = Number(a), s.attrvalue = r[a], i.push(s)
                    }
                    return o.AttrArray = i, e.push(o), e
                }, t.prototype.RefreshListScrollView = function(e, t) {
                    var n = this;
                    if (t == this.CoreCustomLayout) {
                        for (var o, r = 0; r < this._coreSlotConfigArray.length; r++)
                            if (this._currentGalleryLevel < this._coreSlotConfigArray[r].Requirements) {
                                o = this._coreSlotConfigArray[r].Id;
                                break
                            } e.forEach(function(e, t) {
                            e.getComponent(b.default).Init(n._coreSlotConfigArray[t], o, n._currentGalleryLevel, n._listItemAttr, n._coreSlotData)
                        })
                    }
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.RichText)], t.prototype, "SubTitle", void 0), i([P(h.default)], t.prototype, "CoreCustomLayout", void 0), i([P(cc.Label)], t.prototype, "InfoTitle", void 0), i([P(cc.Label)], t.prototype, "CurrentLevelLabel", void 0), i([P(cc.Label)], t.prototype, "NextLevelLabel", void 0), i([P(cc.Node)], t.prototype, "LevelArrowIconNode", void 0), i([P(cc.Node)], t.prototype, "AttrContainer", void 0), i([P(cc.Node)], t.prototype, "MaterialNode", void 0), i([P(cc.Label)], t.prototype, "MaterialTitle", void 0), i([P(cc.Node)], t.prototype, "MaterialContainer", void 0), i([P(cc.Button)], t.prototype, "UpLevelButton", void 0), i([P(cc.Label)], t.prototype, "UpLevelButtonLabel", void 0), i([P(cc.Button)], t.prototype, "DetailButton", void 0), i([P(cc.Label)], t.prototype, "DetailButtonLabel", void 0), i([P(cc.Label)], t.prototype, "MaxTipLabel", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/CoreGalleryListItemComponent": "CoreGalleryListItemComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/FetterSkillMaterialComponent": "FetterSkillMaterialComponent"
    }],
    CoreHandbookItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9662bQtwE5PdbukzLT6dqdu", "CoreHandbookItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MaxLevelLabel = null, t.ItemIcon = null, t.ItemName = null, t.StarsNode = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                    this._itemId = e, this._maxStarCount = t, this.MaxLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(n), this.ItemIcon.spriteFrame = r, this.ItemName.string = o, this.SetStars(), this.ItemIcon.node.on(cc.Node.EventType.TOUCH_START, this.OnHandbookItemClick, this)
                }, t.prototype.SetStars = function() {
                    for (var e = 0; e < this._maxStarCount; e++) {
                        var t = new cc.Node;
                        t.setParent(this.StarsNode), t.addComponent(cc.Sprite).spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarIcon")
                    }
                }, t.prototype.OnHandbookItemClick = function() {
                    s.UIManager.Instance.ShowUIPanel(l.PanelConfig.CoreHandbookItemPanel.Path, this._itemId)
                }, i([p(cc.Label)], t.prototype, "MaxLevelLabel", void 0), i([p(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([p(cc.Label)], t.prototype, "ItemName", void 0), i([p(cc.Node)], t.prototype, "StarsNode", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CoreHandbookItemPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "68949MrJvZOorYFrSt0Rfsm", "CoreHandbookItemPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../Components/PowerCoreAttributeComponent"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/SkillItemComponent"),
            y = e("../Components/PowerCoreFormComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.CoreLevel = null, t.StarNode = null, t.CoreFormNode = null, t.CorePropertyNode = null, t.CorePropertyTitle = null, t.CoreSkillTitle = null, t.CoreSkillItemNode = null, t.BtnReturn = null, t.ATTR_WIDTH = 486, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CoreCultivatePanel/Components/AttributeComponent", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/SkillItemComponent", cc.Prefab), o = this.LoadDynamicAsset("CoreCultivatePanel/Components/PowerCoreFormComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._attrItem = e[0], r._skillItem = e[1], r._coreFormItem = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "PowerCore_Name".ToUILocale(), this.CorePropertyTitle.string = "PowerCore_Attribute".ToUILocale(), this.CoreSkillTitle.string = "PowerCore_Skill".ToUILocale(), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._handbookItemId = t[0], this.SetConfig(), this.CoreLevel.string = "PowerCore_HandbookItem_TitleLevel".ToUILocale().Fmt(this._handbookItemId.ToItemName(), this._handbookItemLevel), this.SetAttrValue(), this.SetStars(), this.SetAttrItems(), this.SetCoreForm(), this.SetSkillItem()
                }, t.prototype.OnBtnReturnClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.SetConfig = function() {
                    this._powerCoreConfig = d.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, this._handbookItemId), this._coreItemBaseModel = d.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._handbookItemId), this._coreQualityConfig = d.ConfigDataComponent.Instance.GetConfigById(p.PowerCoreQuality_Config, this._coreItemBaseModel.Quality), this._handbookItemStar = this._coreQualityConfig.StarAttrs.length, this._handbookItemLevel = this._coreQualityConfig.MaxLevel
                }, t.prototype.SetAttrValue = function() {
                    this._attrValues = [], this._attrValues = h.default.Instance.GetPowerCoreAttribute(this._handbookItemId, this._handbookItemLevel, this._handbookItemStar)
                }, t.prototype.SetStars = function() {
                    for (var e = 0; e < this._handbookItemStar; e++) {
                        var t = new cc.Node;
                        t.setParent(this.StarNode), t.addComponent(cc.Sprite).spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarIcon")
                    }
                }, t.prototype.SetAttrItems = function() {
                    for (var e = 0; e < this._attrValues.length; e += 2) {
                        var t = cc.instantiate(this._attrItem);
                        t.setParent(this.CorePropertyNode);
                        var n = h.default.GetHeroAttributeIcon(this._attrValues[e]),
                            o = h.default.GetHeroAttributeName(this._attrValues[e]),
                            r = "<color = #FF4B4B>" + this._attrValues[e + 1] + "</c>";
                        t.getComponent(u.default).Init(n, o, r, this.ATTR_WIDTH)
                    }
                }, t.prototype.SetCoreForm = function() {
                    var e = this._powerCoreConfig.CoreForm.length;
                    this._coreFormId = this._powerCoreConfig.CoreForm[e - 1];
                    var t = cc.instantiate(this._coreFormItem);
                    t.getComponent(y.default).InitData(this._coreFormId), t.setParent(this.CoreFormNode)
                }, t.prototype.SetSkillItem = function() {
                    var e = cc.instantiate(this._skillItem);
                    e.setParent(this.CoreSkillItemNode);
                    var t = d.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, this._coreFormId),
                        n = t.Skills[1];
                    e.getComponent(f.default).Init(n, t.Skills[0])
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.RichText)], t.prototype, "CoreLevel", void 0), i([I(cc.Node)], t.prototype, "StarNode", void 0), i([I(cc.Node)], t.prototype, "CoreFormNode", void 0), i([I(cc.Node)], t.prototype, "CorePropertyNode", void 0), i([I(cc.Label)], t.prototype, "CorePropertyTitle", void 0), i([I(cc.Label)], t.prototype, "CoreSkillTitle", void 0), i([I(cc.Node)], t.prototype, "CoreSkillItemNode", void 0), i([I(cc.Button)], t.prototype, "BtnReturn", void 0), i([m], t)
            }(l.BaseUIFullScreenPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/PowerCoreAttributeComponent": "PowerCoreAttributeComponent",
        "../Components/PowerCoreFormComponent": "PowerCoreFormComponent",
        "../Components/SkillItemComponent": "SkillItemComponent"
    }],
    CoreHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cedf7oBF1JIcbgfbCzI+OXn", "CoreHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Components/CoreHandbookItemComponent"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.Content = null, t
                }
                return r(t, e), t.prototype.InitData = function() {
                    this._powerCoreConfig = u.ConfigDataComponent.Instance.GetArrayConfig(p.PowerCore_Config), this.Title.string = "PowerCore_Handbook".ToUILocale(), this.GetItems()
                }, t.prototype.GetItems = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset("CoreCultivatePanel/Components/HandbookItem")];
                                case 1:
                                    e._handbookItem = s.sent(), t = 0, s.label = 2;
                                case 2:
                                    return t < this._powerCoreConfig.length ? (n = u.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._powerCoreConfig[t].Id), o = u.ConfigDataComponent.Instance.GetConfigById(p.PowerCoreQuality_Config, n.Quality), this._powerCoreConfig[t].Star != o.StarAttrs.length ? [3, 4] : (r = new cc.Node, (r = cc.instantiate(this._handbookItem)).setParent(this.Content), i = h.default.Instance.GetItemPathById(this._powerCoreConfig[t].Id), [4, this.LoadDynamicAsset(i, cc.SpriteFrame)])) : [3, 5];
                                case 3:
                                    a = s.sent(), r.getComponent(d.default).Init(this._powerCoreConfig[t].Id, o.StarAttrs.length, o.MaxLevel, this._powerCoreConfig[t].Id.ToItemName(), a), s.label = 4;
                                case 4:
                                    return t++, [3, 2];
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Node)], t.prototype, "Content", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/CoreHandbookItemComponent": "CoreHandbookItemComponent"
    }],
    CoreQuickUpgradeStarListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5a662GXR79McoDIBWI6rPvL", "CoreQuickUpgradeStarListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("./ItemComponent"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UpItem = null, t.MaterialsContainer = null, t.NewItem = null, t.Toggle = null, t._materialItemComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Toggle.node.on("toggle", this.OnToggleClick, this)
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_CORE_QUICKUP_RESET_TOGGLE, this.ReSetToggleState, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.EventKeys.EVENT_CORE_QUICKUP_RESET_TOGGLE, this.ReSetToggleState, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._currentUpCoreModel = e, this._materialItemArray = t, this._resultCoreId = n, this._itemPrefab = o, this._mainPanel = r, this.SetItem()
                }, t.prototype.SetItem = function() {
                    this._upCoreItemComponent || ((n = cc.instantiate(this._itemPrefab)).setParent(this.UpItem), this._upCoreItemComponent = n.getComponent(c.ItemComponent));
                    var e = l.ConfigDataComponent.Instance.GetConfigById(s.PowerCore_Config, this._currentUpCoreModel.ItemId);
                    this._upCoreItemComponent.Init({
                        ItemId: this._currentUpCoreModel.ItemId,
                        Level: this._currentUpCoreModel.Level,
                        StarLevel: e.Star,
                        Sid: this._currentUpCoreModel.Sid
                    }, c.ItemComponentType.ItemWithStar);
                    for (var t = 0; t < this._materialItemArray.length; t += 2) {
                        var n, o = t / 2,
                            r = this._materialItemComponentArray[o];
                        r || ((n = cc.instantiate(this._itemPrefab)).setParent(this.MaterialsContainer), r = n.getComponent(c.ItemComponent), this._materialItemComponentArray[o] = r), r.node.active = !0;
                        var i = this._materialItemArray[t],
                            a = this._materialItemArray[t + 1];
                        r.Init({
                            ItemId: i,
                            Count: a
                        })
                    }
                    if (this._materialItemArray.length / 2 < this._materialItemComponentArray.length)
                        for (t = this._materialItemArray.length / 2; t < this._materialItemComponentArray.length; t++) this._materialItemComponentArray[t].node.active = !1;
                    this._newCoreItemComponent || ((n = cc.instantiate(this._itemPrefab)).setParent(this.NewItem), this._newCoreItemComponent = n.getComponent(c.ItemComponent)), this._resultCoreConfig = l.ConfigDataComponent.Instance.GetConfigById(s.PowerCore_Config, this._resultCoreId), this._newCoreItemComponent.Init({
                        ItemId: this._resultCoreConfig.Id,
                        Level: this._currentUpCoreModel.Level,
                        StarLevel: this._resultCoreConfig.Star
                    }, c.ItemComponentType.ItemWithStar)
                }, t.prototype.OnToggleClick = function() {
                    this._mainPanel.SetSelectMaterial(this._currentUpCoreModel.Sid, this._resultCoreConfig.Star, this.Toggle.isChecked)
                }, t.prototype.ReSetToggleState = function() {
                    this.Toggle.isChecked = !1
                }, i([h(cc.Node)], t.prototype, "UpItem", void 0), i([h(cc.Node)], t.prototype, "MaterialsContainer", void 0), i([h(cc.Node)], t.prototype, "NewItem", void 0), i([h(cc.Toggle)], t.prototype, "Toggle", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "./ItemComponent": "ItemComponent"
    }],
    CoreQuickUpgradeStarPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9e976jqUcBBAohgW0+YABI6", "CoreQuickUpgradeStarPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/CoreQuikUpStarToggle"),
            m = e("../Components/CoreQuickUpgradeStarListItem"),
            I = e("../../Components/Components"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.ToggleContainer = null, t.SelectTitle = null, t.CustomLayout = null, t.NoneTip = null, t.Tip = null, t.UpStarButton = null, t.UpStarButtonLabel = null, t.ReturnButton = null, t.TOGGLE_STAR_ARRAY = [2, 3, 4, 5], t._currentToggleIndex = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CoreCultivatePanel/Components/CoreQuickUpgradeStarListItem", cc.Prefab), o = this.LoadDynamicAsset("CoreCultivatePanel/Components/CoreQuikUpStarToggle", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._listItemPrefab = e[1], r._togglePrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "quick_upgrade_star_title".ToUILocale(), this.SelectTitle.string = "quick_upgrade_star_title2".ToUILocale(), this.UpStarButtonLabel.string = "quick_upgrade_star_title".ToUILocale(), this.Tip.string = "PowerCore_Quick_UpStar_Tip".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.UpStarButton.node.on("click", this.OnUpStarButtonClick, this), this.ReturnButton.node.on("click", this.OnRetuenButtonClick, this), this.CustomLayout.Init(this._listItemPrefab)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this.SetSameStarLevelCoreIdArray()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetToggleContainer(), this.SetSameIdModelArray(), this.SetCurrentToggle()
                }, t.prototype.SetSelectMaterial = function(e, t, n) {
                    this._selectMaterial[e] = n ? t : null
                }, t.prototype.SetSameStarLevelCoreIdArray = function() {
                    var e = this;
                    this._sameStarLevelIdArray = {}, this._lastCoreConfig = {}, p.ConfigDataComponent.Instance.GetArrayConfig(c.PowerCore_Config).forEach(function(t) {
                        e._sameStarLevelIdArray[t.Star] ? e._sameStarLevelIdArray[t.Star].push(t.Id) : e._sameStarLevelIdArray[t.Star] = [t.Id], t.Next && (e._lastCoreConfig[t.Next] = t)
                    })
                }, t.prototype.SetToggleContainer = function() {
                    for (var e = 0; e < this.TOGGLE_STAR_ARRAY.length; e++) {
                        var t = cc.instantiate(this._togglePrefab);
                        t.setParent(this.ToggleContainer), t.getComponent(g.default).Init(this.TOGGLE_STAR_ARRAY[e]), t.name = e.toString(), t.on("toggle", this.OnSwitchToggle, this)
                    }
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._currentToggleIndex != t && (this._currentToggleIndex = t, this.SetCurrentToggle())
                }, t.prototype.SetCurrentToggle = function() {
                    var e = this;
                    this._mainCoreModelArray = [], this._materialItemArray = {}, this._resultCoreIdArray = [], this._selectMaterial = {};
                    var t = this.TOGGLE_STAR_ARRAY[this._currentToggleIndex];
                    this._sameStarLevelIdArray[t].forEach(function(n) {
                        var o = e.SetMainCore(n);
                        if (o) {
                            var r = e.SetMateridalData(o.ItemId, t, []);
                            r && r.length > 0 && (e._mainCoreModelArray.push(o), e._materialItemArray[o.Sid] = r, e._resultCoreIdArray.push(n))
                        }
                    }), this.CustomLayout.RenderLayOut(this._mainCoreModelArray.length), this.NoneTip.node.active = 0 == this._mainCoreModelArray.length, 0 == this._mainCoreModelArray.length && (this.NoneTip.string = "PowerCore_Quick_UpStar_None_Tip".ToUILocale()), l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CORE_QUICKUP_RESET_TOGGLE)
                }, t.prototype.SetMainCore = function(e) {
                    if (!this._lastCoreConfig[e]) return null;
                    var t = this._lastCoreConfig[e].Id,
                        n = this._equipModel[t],
                        o = this._sameIdModelArray[t];
                    return n || o ? (o && o.sort(function(e, t) {
                        return e.Level - t.Level
                    }), n || o[o.length - 1]) : this.SetMainCore(t) || null
                }, t.prototype.SetMateridalData = function(e, t, n) {
                    var o = p.ConfigDataComponent.Instance.GetConfigById(c.PowerCore_Config, e);
                    if (o.Star < t) {
                        for (var r = 0; r < o.Materials.length; r++) {
                            var i = o.Materials[r].Items;
                            if (2 == i[0]) {
                                var a = i[1],
                                    s = i[2],
                                    l = I.DataCenter.Instance.GetItemCount(a),
                                    u = n.indexOf(a);
                                if (!(s <= (-1 == u ? l : l - n[u + 1]))) return null; - 1 == u ? (n.push(a), n.push(s)) : n[u + 1] += s
                            }
                        }
                        var d = this.SetMateridalData(o.Next, t, n);
                        if (!d) return null;
                        n = d
                    }
                    return n
                }, t.prototype.SetSameIdModelArray = function() {
                    var e = this;
                    this._sameIdModelArray = {}, this._equipModel = {}, p.DataCenter.Instance.GetDataList(u.PowerCore_Model).forEach(function(t) {
                        t.OwnerId ? (!e._equipModel[t.ItemId] || t.Level > e._equipModel[t.ItemId].Level) && (e._equipModel[t.ItemId] = t) : e._sameIdModelArray[t.ItemId] ? e._sameIdModelArray[t.ItemId].push(t) : e._sameIdModelArray[t.ItemId] = [t]
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "PowerCore_Quick_UpStar_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["PowerCore_Quick_UpStar_Rule_Content".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnUpStarButtonClick = function() {
                    var e = [],
                        t = 0;
                    for (var n in this._selectMaterial) this._selectMaterial[n] && (e[t] = new u.IntArray, e[t].Items[0] = Number(n), e[t].Items[1] = this._selectMaterial[n], t++);
                    if (0 != t) {
                        var o = new u.Req_Item_CoresUpgradeStar;
                        o.Param = e, p.RpcComponent.Instance.Call(o, function(e) {
                            y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else y.UIUtlity.ShowFloatingHint("PowerCore_Quick_UpStar_Not_Select".ToUILocale())
                }, t.prototype.OnRetuenButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = n._mainCoreModelArray[t];
                        e.getComponent(m.default).Init(o, n._materialItemArray[o.Sid], n._resultCoreIdArray[t], n._itemPrefab, n)
                    })
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Node)], t.prototype, "ToggleContainer", void 0), i([v(cc.Label)], t.prototype, "SelectTitle", void 0), i([v(d.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Label)], t.prototype, "NoneTip", void 0), i([v(cc.Label)], t.prototype, "Tip", void 0), i([v(cc.Button)], t.prototype, "UpStarButton", void 0), i([v(cc.Label)], t.prototype, "UpStarButtonLabel", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([C], t)
            }(l.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CoreQuickUpgradeStarListItem": "CoreQuickUpgradeStarListItem",
        "../Components/CoreQuikUpStarToggle": "CoreQuikUpStarToggle",
        "../Components/CustomLayout": "CustomLayout"
    }],
    CoreQuikUpStarToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "265e6MMjVZBE5O1HJi1QYgI", "CoreQuikUpStarToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.StarContainer = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    for (var t = 0; t < e; t++) {
                        var n = new cc.Node;
                        n.setParent(this.StarContainer), n.addComponent(cc.Sprite).spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarIcon")
                    }
                }, i([c(cc.Node)], t.prototype, "StarContainer", void 0), i([l], t)
            }(cc.Toggle);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CoreUpSelectMaterialPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c1437p4SwZBs6z9L5gUReeH", "CoreUpSelectMaterialPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CoreSelectMaterialPanelType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Components/Components"),
            g = e("../../Components/Components"),
            m = e("../Components/CustomLayout"),
            I = e("../../../../Proto/Static/ConfigProto"),
            _ = e("../Components/LuckyCharmTabComponent"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property;
        (function(e) {
            e[e.UpStar = 0] = "UpStar", e[e.Resolve = 1] = "Resolve"
        })(l = n.CoreSelectMaterialPanelType || (n.CoreSelectMaterialPanelType = {}));
        var S = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1, !1), t.Title = null, t.CustomLayout = null, t.BtnOk = null, t.BtnOkLabel = null, t.TipLabel = null, t.SelectHintLabel = null, t.ResetButton = null, t.SelectButton = null, t.SelectButtonLabel = null, t.SelectButtonArrowIconNode = null, t.HintNode = null, t.SelectTabContainer = null, t._isClickedSelectButton = !1, t._selectTabComponentArray = [], t._selectType = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.TipLabel.string = "PowerCore_Up_SelectMaterial_Tip".ToUILocale(), this.SelectButtonLabel.string = "PowerCore_Name".ToUILocale(), this.BtnOkLabel.string = "ok".ToUILocale(), this.SelectButton.node.on("click", this.OnSelectButtonClick, this), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.BtnOk.node.on("click", this.OnOkButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._panelType = t[0], this._curCoreModelList = t[1] ? t[1] : [], this._panelType == l.UpStar && (this._needCount = t[2], this._selectSids = t[3]), this._curCoreModelList.sort(this.SortPowerCoreModelList.bind(this)), this._selectSids || (this._selectSids = [])
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.SetLayout(), this.SetSelectHint()
            }, t.prototype.SortPowerCoreModelList = function(e, t) {
                return e.ItemId < t.ItemId ? 1 : e.ItemId > t.ItemId ? -1 : t.Level - e.Level
            }, t.prototype.SetSelectHint = function() {
                this._panelType == l.UpStar ? (this.SelectHintLabel.string = "select_count".ToUILocale().Fmt(this._selectSids.length, this._needCount), this.Title.string = "PowerCore_Up_SelectMaterial".ToUILocale()) : this._panelType == l.Resolve && (this.SelectHintLabel.string = "PowerCore_Resolve_Select_Tip".ToUILocale(), this.Title.string = "PowerCore_Resolve_Title".ToUILocale())
            }, t.prototype.SetLayout = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._itemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)]);
                            case 1:
                                if (e._itemPrefab = t.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                this.CustomLayout.Init(this._itemPrefab), t.label = 2;
                            case 2:
                                return this.CustomLayout.RenderLayOut(this._curCoreModelList.length), [2]
                        }
                    })
                })
            }, t.prototype.OnSelectTab = function(e) {
                var t = this;
                if (this._selectType = e, this._isClickedSelectButton = !1, this.SetSeletNodeState(), this._selectTypeModelList = [], 0 == e) this._selectTypeModelList = this._curCoreModelList;
                else {
                    var n = this._differentTypeCoreIdArray[this._selectType];
                    this._curCoreModelList.forEach(function(e) {
                        -1 != n.indexOf(e.ItemId) && t._selectTypeModelList.push(e)
                    })
                }
                this.CustomLayout.RenderLayOut(this._selectTypeModelList.length)
            }, t.prototype.OnSelectButtonClick = function() {
                this._isClickedSelectButton ? this._isClickedSelectButton = !1 : (this._isClickedSelectButton = !0, this.SetSelectContainer()), this.SetSeletNodeState()
            }, t.prototype.SetSeletNodeState = function() {
                this.HintNode.active = this._isClickedSelectButton, this.SelectButtonArrowIconNode.scaleY = this._isClickedSelectButton ? 1 : -1
            }, t.prototype.SetSelectContainer = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._differentTypeCoreIdArray || (this._differentTypeCoreIdArray = {}, this._differentTypeLength = 1, y.ConfigDataComponent.Instance.GetArrayConfig(I.PowerCore_Config).forEach(function(e) {
                                    a._differentTypeCoreIdArray[e.Type] ? a._differentTypeCoreIdArray[e.Type].push(e.Id) : (a._differentTypeCoreIdArray[e.Type] = [e.Id], a._differentTypeLength++), a._differentTypeCoreIdArray[0] ? a._differentTypeCoreIdArray[0].push(e.Id) : a._differentTypeCoreIdArray[0] = [e.Id]
                                })), this._selectTabPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmTabComponent", cc.Prefab)]);
                            case 1:
                                if (e._selectTabPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._selectTabPrefab), [2];
                                s.label = 2;
                            case 2:
                                for (n in t = 0, this._differentTypeCoreIdArray)(o = this._selectTabComponentArray[t]) || ((r = cc.instantiate(this._selectTabPrefab)).setParent(this.SelectTabContainer), o = r.getComponent(_.default), this._selectTabComponentArray[t] = o), void 0, i = 0 == Number(n) ? "screen_all".ToUILocale() : this._differentTypeCoreIdArray[n][0].ToItemName(), o.InitUI(this._selectType, Number(n), i, this._differentTypeLength + 1), t++;
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnResetButtonClick = function() {
                this._isClickedSelectButton = !1, this.SetSeletNodeState(), this._selectType = null, this.CustomLayout.RenderLayOut(this._curCoreModelList.length)
            }, t.prototype.OnOkButtonClick = function() {
                switch (this._panelType) {
                    case l.UpStar:
                        c.Game.EventDispatcher.Emit(f.EventKeys.EVENT_SELECT_POWERCOREUPMATERIAL, this._selectSids);
                        break;
                    case l.Resolve:
                        if (0 == this._selectSids.length) return;
                        var e = new u.Req_Item_DecomposeCore;
                        e.Sids = this._selectSids, y.RpcComponent.Instance.Call(e, function(e) {
                            h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                }
                this.Close()
            }, t.prototype.RefreshCustomLayout = function(e, t) {
                var n = this;
                this._lockCoreList = [], t == this.CustomLayout && e.forEach(function(e, t) {
                    e.name = t.toString();
                    var o = null == n._selectType ? n._curCoreModelList[t] : n._selectTypeModelList[t],
                        r = g.ConfigDataComponent.Instance.GetConfigById(I.PowerCore_Config, o.ItemId),
                        i = e.getComponent(d.ItemComponent);
                    if (i.Init({
                            ItemId: o.ItemId,
                            Level: o.Level,
                            StarLevel: r.Star,
                            Sid: o.Sid
                        }, d.ItemComponentType.ItemWithStar), o.OwnerId && (i.SetLockFlag(!0, void 0, !0), n._lockCoreList.push(t)), n._selectSids)
                        for (var a = 0; a < n._selectSids.length; a++) i.ItemSid == n._selectSids[a] && i.SetSelectFlagState(!0)
                })
            }, t.prototype.OnItemClick = function(e, t) {
                var n = this;
                if (this._selectIdx = e, -1 != this.CustomLayout.node.children.indexOf(t)) {
                    var o = t.getComponent(d.ItemComponent),
                        r = this._selectSids.indexOf(o.ItemSid);
                    if (this._lockIndex = this._lockCoreList.indexOf(e), this._selectSid = o.ItemSid, -1 != r) o.SetSelectFlagState(!1), this._selectSids.splice(r, 1);
                    else {
                        if (this._panelType == l.UpStar && this._selectSids.length >= this._needCount) return void h.UIUtlity.ShowFloatingHint("select_count_enough".ToUILocale());
                        var i = g.DataCenter.Instance.GetDataById(u.PowerCore_Model, this._selectSid);
                        if (-1 != this._lockIndex) {
                            var a = g.DataCenter.Instance.GetDataById(u.UserHero_Model, i.OwnerId).HeroId.ToHeroTitle();
                            return void h.UIUtlity.ShowHintPanel(null, "PowerCore_Up_SelectMaterial_PutOff".ToUILocale().Fmt(a), "Answer_QuitNo".ToUILocale(), null, "Answer_QuitYes".ToUILocale(), function() {
                                var e = new u.Req_Item_CorePutOff;
                                e.Sid = n._selectSid, y.RpcComponent.Instance.Call(e, n.PutOffSuccess.bind(n))
                            })
                        }
                        if (i.GallerySlot) return void h.UIUtlity.ShowHintPanel(null, "PowerCoreGallery_Select_Material_Tip".ToUILocale(), "cancel".ToUILocale(), null, "button_confirm".ToUILocale(), function() {
                            o.SetSelectFlagState(!0), n._selectSids.push(o.ItemSid)
                        });
                        o.SetSelectFlagState(!0), this._selectSids.push(o.ItemSid)
                    }
                    this._panelType == l.UpStar && (this.SelectHintLabel.string = "select_count".ToUILocale().Fmt(this._selectSids.length, this._needCount))
                }
            }, t.prototype.PutOffSuccess = function() {
                h.UIUtlity.ShowFloatingHint("PowerCore_PutOff".ToUILocale()), this.CustomLayout.node.children[this._selectIdx].getComponent(d.ItemComponent).SetLockFlag(!1), this._lockCoreList.splice(this._lockIndex, 1)
            }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(m.default)], t.prototype, "CustomLayout", void 0), i([b(cc.Button)], t.prototype, "BtnOk", void 0), i([b(cc.Label)], t.prototype, "BtnOkLabel", void 0), i([b(cc.Label)], t.prototype, "TipLabel", void 0), i([b(cc.Label)], t.prototype, "SelectHintLabel", void 0), i([b(cc.Button)], t.prototype, "ResetButton", void 0), i([b(cc.Button)], t.prototype, "SelectButton", void 0), i([b(cc.Label)], t.prototype, "SelectButtonLabel", void 0), i([b(cc.Node)], t.prototype, "SelectButtonArrowIconNode", void 0), i([b(cc.Node)], t.prototype, "HintNode", void 0), i([b(cc.Node)], t.prototype, "SelectTabContainer", void 0), i([v], t)
        }(c.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyCharmTabComponent": "LuckyCharmTabComponent"
    }],
    CoreUpgradeAttrItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "97d2e5jlyJKLJSKh6Ccqsql", "CoreUpgradeAttrItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon1 = null, t.Icon2 = null, t.Tag1 = null, t.Tag2 = null, t.Value1 = null, t.Value2 = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this.Icon1.spriteFrame = e, this.Icon2.spriteFrame = e, this.Tag1.string = t, this.Tag2.string = t, this.Value1.string = n, this.Value2.string = o
                }, i([l(cc.Sprite)], t.prototype, "Icon1", void 0), i([l(cc.Sprite)], t.prototype, "Icon2", void 0), i([l(cc.Label)], t.prototype, "Tag1", void 0), i([l(cc.Label)], t.prototype, "Tag2", void 0), i([l(cc.Label)], t.prototype, "Value1", void 0), i([l(cc.Label)], t.prototype, "Value2", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CoreUpgradePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "38c63nlRr1JvbivxT3R/2IA", "CoreUpgradePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../Components/PowerCoreAttributeComponent"),
            y = e("../../Components/DataCenter"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../Components/Components"),
            I = e("../Components/ItemComponent"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Components/Components"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = e("../Components/SkillItemComponent"),
            S = e("./CoreUpgradeSuccessTipPanel"),
            w = e("../../Auxiliary/EventKeys"),
            P = e("../../RedDot/RedDotManager"),
            A = e("../Components/CustomToggle"),
            T = e("../Components/PowerCoreFormComponent"),
            R = e("../Components/SwitchStarToggleComponent"),
            L = e("./CoreUpSelectMaterialPanel"),
            k = cc._decorator,
            O = k.ccclass,
            M = k.property;
        (function(e) {
            e[e.Level = 0] = "Level", e[e.Star = 1] = "Star"
        })(l || (l = {})),
        function(e) {
            e[e.First = 0] = "First", e[e.Second = 1] = "Second", e[e.Third = 2] = "Third"
        }(c || (c = {}));
        var D = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Title = null, t.CoreLevel = null, t.RuleButton = null, t.HandbookButton = null, t.HandbookLabel = null, t.DetailButton = null, t.DetailLabel = null, t.QuickUpButton = null, t.QuickUpLabel = null, t.UpLevelStarNode = null, t.UpStarTotalStarNode = null, t.CurrentStarNode = null, t.NextStarNode = null, t.CoreFormNode = null, t.CorePropertyNode = null, t.CorePropertyTitle = null, t.SingleSkillNode = null, t.SingleSkillItemNode = null, t.DoubleSkillNode = null, t.CurrentSkillItemNode = null, t.CurrentSkillItemName = null, t.NextSkillItemNode = null, t.NextSkillItemName = null, t.SkillTitle = null, t.UpgradeLevelButton = null, t.UpgradeStarButton = null, t.BtnUpgradeLevelLabel = null, t.BtnUpgradeStarLabel = null, t.UpgradeItemAddButton = null, t.UpgradeItemCount = null, t.UpgradeItemTotalNode = null, t.UpgradeItemNode = null, t.UpMaxStateLabel = null, t.SwitchStarTitle = null, t.SwitchStarToggleContainerNode = null, t.BottomToggle = [], t.BottomToggleContainer = null, t.ReturnButton = null, t.ATTR_WIDTH = 486, t._selectSidsUpStar = [], t._currentBottomTab = l.Level, t._attrItemComponentArry = [], t._doubleSkillComponents = [], t._upLevelStarSpriteArry = [], t._currentStarSpriteArry = [], t._nextStarSpriteArry = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                p.Game.EventDispatcher.On(w.EventKeys.EVENT_ITEM_CLICK, this.OnUpgradeStarItemClick, this), p.Game.EventDispatcher.On(w.EventKeys.EVENT_SELECT_POWERCOREUPMATERIAL, this.OnSelectCallback, this)
            }, t.prototype.onDisable = function() {
                p.Game.EventDispatcher.Off(w.EventKeys.EVENT_ITEM_CLICK, this.OnUpgradeStarItemClick, this), p.Game.EventDispatcher.Off(w.EventKeys.EVENT_SELECT_POWERCOREUPMATERIAL, this.OnSelectCallback, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CoreCultivatePanel/Components/AttributeComponent", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/ItemComponent", cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/SkillItemComponent", cc.Prefab), r = this.LoadDynamicAsset("CoreCultivatePanel/Components/PowerCoreFormComponent", cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._attrItem = e[0], i._upgradeItem = e[1], i._skillItem = e[2], i._coreFormItem = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "PowerCore_Name".ToUILocale(), this.HandbookLabel.string = "handbook_label".ToUILocale(), this.DetailLabel.string = "PowerCore_Attr_Detail".ToUILocale(), this.CorePropertyTitle.string = "PowerCore_Attribute".ToUILocale(), this.SkillTitle.string = "PowerCore_Skill".ToUILocale(), this.SwitchStarTitle.string = "PowerCore_SwitchForm".ToUILocale(), this.BtnUpgradeLevelLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), this.BtnUpgradeStarLabel.string = "PowerCore_BottomToggle_1".ToUILocale(), this.QuickUpLabel.string = "PowerCore_Quick_UpStar_Rule_Name".ToUILocale(), this.SetBottomToggle(), this.RuleButton.node.on("click", this.OnBtnRuleClick, this), this.HandbookButton.node.on("click", this.OnBtnHandbookClick, this), this.ReturnButton.node.on("click", this.OnBtnReturnClick, this), this.DetailButton.node.on("click", this.OnBtnDetailClick, this), this.UpgradeItemAddButton.node.on("click", this.OnMaterialsItemAddButtonClick, this), this.UpgradeLevelButton.node.on("click", this.OnBtnUpgradeLevelClick, this), this.UpgradeStarButton.node.on("click", this.OnBtnUpgradeStarClick, this), this.QuickUpButton.node.on("click", this.OnQuickUpButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._coreDataModelSid = t[0]
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.SetConfig(), this.SetRedDot(), this._maxStarCount = this._coreQualityConfig.StarAttrs.length, this._attrValues = _.default.Instance.GetPowerCoreAttribute(this._coreDataModel.ItemId, this._coreDataModel.Level), this.CoreLevel.string = "PowerCore_UP_TitleLevel".ToUILocale().Fmt(this._coreDataModel.ItemId.ToItemName(), this._coreDataModel.Level, this._coreQualityConfig.MaxLevel), this._totalCoreModelList = y.DataCenter.Instance.GetDataList(h.PowerCore_Model), this._coreFormId = _.default.GetCoreFormId(this._powerCoreConfig), this.SetCoreForm(this._coreFormId), this.SetPanelPartByCurrentTab()
            }, t.prototype.SetConfig = function() {
                this._coreDataModel = y.DataCenter.Instance.GetDataById(h.PowerCore_Model, this._coreDataModelSid), this._coreItemBaseModel = m.ConfigDataComponent.Instance.GetConfigById(g.ItemBase_Config, this._coreDataModel.ItemId), this._coreQualityConfig = m.ConfigDataComponent.Instance.GetConfigById(g.PowerCoreQuality_Config, this._coreItemBaseModel.Quality), this._powerCoreConfig = m.ConfigDataComponent.Instance.GetConfigById(g.PowerCore_Config, this._coreDataModel.ItemId), this._powerCoreConfig.Next && (this._nextPowerCoreConfig = m.ConfigDataComponent.Instance.GetConfigById(g.PowerCore_Config, this._powerCoreConfig.Next)), this._coreLevelConfig = m.ConfigDataComponent.Instance.GetConfigById(g.PowerCoreLevel_Config, this._coreDataModel.Level), this._coreDataModel.Level < this._coreQualityConfig.MaxLevel && (this._nextcoreLevelConfig = m.ConfigDataComponent.Instance.GetConfigById(g.PowerCoreLevel_Config, this._coreDataModel.Level + 1))
            }, t.prototype.SetRedDot = function() {
                P.RedDotManager.Instance.BindInstance(this.UpgradeLevelButton.node, P.RedDotManager.Instance.InstanceRedDot.PowerCoreUpgadeBtnNode, {
                    Value1: this._coreDataModelSid
                }), P.RedDotManager.Instance.BindInstance(this.UpgradeStarButton.node, P.RedDotManager.Instance.InstanceRedDot.PowerCoreUpStarBtnNode, {
                    Value1: this._coreDataModelSid
                }), P.RedDotManager.Instance.BindInstance(this.BottomToggle[0].node, P.RedDotManager.Instance.InstanceRedDot.PowerCoreBottomUpLevelNode, {
                    Value1: this._coreDataModelSid
                }), P.RedDotManager.Instance.BindInstance(this.BottomToggle[1].node, P.RedDotManager.Instance.InstanceRedDot.PowerCoreBottomUpStarNode, {
                    Value1: this._coreDataModelSid
                })
            }, t.prototype.SetBottomToggle = function() {
                for (var e = 0; e < this.BottomToggle.length; e++) {
                    var t = this.BottomToggle[e].node;
                    this.BottomToggle[e].Init(("PowerCore_BottomToggle_" + e).ToUILocale()), t.name = e.toString(), t.on("toggle", this.OnSwitchBottomTab, this)
                }
            }, t.prototype.OnSwitchBottomTab = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentBottomTab != t && (this._currentBottomTab = t, this.SetPanelPartByCurrentTab())
            }, t.prototype.SetPanelPartByCurrentTab = function() {
                switch (this._currentBottomTab) {
                    case l.Level:
                        this.SetUpLevelPart();
                        break;
                    case l.Star:
                        this.SetUpStarPart()
                }
            }, t.prototype.SetStarToogle = function() {
                this._starToggleGroup = [];
                for (var e = 0; e < this._powerCoreConfig.CoreForm.length; e++) {
                    var t = m.ConfigDataComponent.Instance.GetConfigById(g.PowerCore_Config, this._powerCoreConfig.CoreForm[e]),
                        n = cc.instantiate(this._switchStarToggle);
                    n.parent = this.SwitchStarToggleContainerNode, n.getComponent(R.default).Init(t.Star), n.name = e.toString(), n.on("toggle", this.OnSwitchStarTab, this), this._starToggleGroup.push(n.getComponent(cc.Toggle))
                }
            }, t.prototype.OnSwitchStarTab = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentStarTab != t && (this._currentStarTab = t, this.SetCoreForm(this._powerCoreConfig.CoreForm[this._currentStarTab]))
            }, t.prototype.OnBtnDetailClick = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._switchStarToggle ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("CoreCultivatePanel/Components/SwitchStarToggleComponent", cc.Prefab)]);
                            case 1:
                                if (e._switchStarToggle = t.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._switchStarToggle), [2];
                                this.SetStarToogle(), t.label = 2;
                            case 2:
                                return this.UpMaxStateLabel.node.active = !1, this.UpgradeLevelButton.node.active = !1, this.UpgradeStarButton.node.active = !1, this.QuickUpButton.node.active = !1, this.UpLevelStarNode.active = !0, this.UpStarTotalStarNode.active = !1, this.ReNodeActive(!1), this._starToggleGroup[c.First].isChecked = !0, this.OnSwitchStarTab(this._starToggleGroup[c.First]), [2]
                        }
                    })
                })
            }, t.prototype.OnBtnRuleClick = function() {
                var e = {
                    name: "PowerCore_Rule_name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["PowerCore_Rule_Content".ToUILocale()]
                };
                d.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnBtnHandbookClick = function() {
                p.UIManager.Instance.ShowUIPanel(v.PanelConfig.CoreHandbookPanel.Path)
            }, t.prototype.SetUpLevelPart = function() {
                this.UpgradeLevelButton.node.active = !0, this.UpgradeStarButton.node.active = !1, this.QuickUpButton.node.active = !1, this.UpMaxStateLabel.node.active = !1, this.UpLevelStarNode.active = !0, this.UpStarTotalStarNode.active = !1, this.SetStarsCount(this.UpLevelStarNode, this._upLevelStarSpriteArry, this._powerCoreConfig.Star, this._maxStarCount), this.ReNodeActive(!0), this.SetNextLevelAttrData(), this.SetAttrItems(this._attrValues.length / 2, this._nextLevelAttr), this.SetSkillData(), 0 == this._coreDataModel.Level ? this.SetUpgradeLevelItem(this._nextcoreLevelConfig.Materials) : this._coreDataModel.Level < this._coreQualityConfig.MaxLevel ? this.SetUpgradeLevelItem(this._coreLevelConfig.Materials) : (this.UpgradeLevelButton.node.active = !1, this.UpgradeItemTotalNode.active = !1, this.UpMaxStateLabel.node.active = !0, this.UpMaxStateLabel.string = "PowerCore_Max_Level".ToUILocale())
            }, t.prototype.SetStarsCount = function(e, t, n, o) {
                for (var r = 0; r < o; r++) {
                    if (!t[r]) {
                        var i = new cc.Node;
                        i.setParent(e), t.push(i.addComponent(cc.Sprite))
                    }
                    t[r].spriteFrame = r < n ? d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarIcon") : d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarBg")
                }
            }, t.prototype.ReNodeActive = function(e) {
                this.UpgradeItemTotalNode.active = e, this.BottomToggleContainer.active = e, this.DetailButton.node.active = e, this.HandbookButton.node.active = e, this.SwitchStarTitle.node.active = !e, this.SwitchStarToggleContainerNode.active = !e
            }, t.prototype.SetNextLevelAttrData = function() {
                if (this._coreDataModel.Level < this._coreQualityConfig.MaxLevel) {
                    this._nextLevelAttr = [];
                    for (var e = 0; e < this._coreQualityConfig.LevelAttrs.length; e++)
                        if (this._coreDataModel.Level + 1 >= this._coreQualityConfig.LevelAttrs[e].Items[0])
                            for (var t = 0; t < (this._coreQualityConfig.LevelAttrs[e].Items.length - 1) / 2; t++) this._nextLevelAttr[t] = this._coreQualityConfig.LevelAttrs[e].Items[2 * (t + 1)]
                } else this._nextLevelAttr = null
            }, t.prototype.SetNextStarAttrData = function() {
                var e = this._coreQualityConfig.StarAttrs;
                if (this._powerCoreConfig.Star < this._maxStarCount) {
                    this._nextStarAttr = [];
                    for (var t = 0; t < e[this._powerCoreConfig.Star].Items.length / 2; t++) this._nextStarAttr[t] = e[this._powerCoreConfig.Star].Items[2 * t + 1] - e[this._powerCoreConfig.Star - 1].Items[2 * t + 1]
                } else this._nextStarAttr = null
            }, t.prototype.SetAttrItems = function(e, t) {
                this._attrItemsId = [];
                for (var n = 0; n < e; n++) {
                    if (!this._attrItemComponentArry[n]) {
                        var o = cc.instantiate(this._attrItem);
                        o.setParent(this.CorePropertyNode), this._attrItemComponentArry.push(o.getComponent(f.default))
                    }
                    this._attrItemsId[n] = this._coreQualityConfig.LevelAttrs[0].Items[2 * n + 1];
                    var r, i = _.default.GetHeroAttributeIcon(this._attrItemsId[n]),
                        a = _.default.GetHeroAttributeName(this._attrItemsId[n]);
                    r = t ? "PowerCore_Up_AttrValue".ToUILocale().Fmt(this._attrValues[2 * n + 1], t[n]) : "<color = #FF4B4B>" + this._attrValues[2 * n + 1] + "</c>", this._attrItemComponentArry[n].Init(i, a, r, this.ATTR_WIDTH)
                }
            }, t.prototype.SetSkillData = function() {
                var e = this._powerCoreConfig.Skills[1];
                this._powerCoreConfig.Star < this._maxStarCount && this._nextPowerCoreConfig.Skills[0] && this._powerCoreConfig.Skills[0] != this._nextPowerCoreConfig.Skills[0] ? (this.SetSkillNodeState(!0), this.SetSkillNode(this.CurrentSkillItemNode, this._doubleSkillComponents[0], this._powerCoreConfig), this.SetSkillNode(this.NextSkillItemNode, this._doubleSkillComponents[1], this._nextPowerCoreConfig), this.CurrentSkillItemName.string = e.ToHeroSkillName(), this.NextSkillItemName.string = this._nextPowerCoreConfig.Skills[1].ToHeroSkillName()) : (this.SetSkillNodeState(!1), this.SetSkillNode(this.SingleSkillItemNode, this._singleSkillComponent, this._powerCoreConfig))
            }, t.prototype.SetSkillNodeState = function(e) {
                this.SingleSkillNode.active = !e, this.DoubleSkillNode.active = e
            }, t.prototype.SetSkillNode = function(e, t, n) {
                if (!t) {
                    var o = cc.instantiate(this._skillItem);
                    o.parent = e, t = o.getComponent(b.default)
                }
                t.Init(n.Skills[1], n.Skills[0])
            }, t.prototype.SetUpgradeLevelItem = function(e) {
                this._upgradeItemNode || (this._upgradeItemNode = cc.instantiate(this._upgradeItem), this._upgradeItemNode.setParent(this.UpgradeItemNode));
                var t = this._upgradeItemNode.getComponent(I.ItemComponent);
                t.Init({
                    ItemId: e[0].Items[0]
                }, I.ItemComponentType.ItemCommon), t.OffIconGray();
                var n, o = C.DataCenter.Instance.GetItemCount(e[0].Items[0]);
                n = 0 != this._coreDataModel.Level ? this._nextcoreLevelConfig.Materials[0].Items[1] - e[0].Items[1] : this._nextcoreLevelConfig.Materials[0].Items[1], this.UpgradeItemCount.string = "item_count_enough".ToUILocale().Fmt(o, n), this.SetItmeCountColor(o, n)
            }, t.prototype.SetUpgradeStarItems = function() {
                var e;
                this._upgradeItemNode || (this._upgradeItemNode = cc.instantiate(this._upgradeItem), this._upgradeItemNode.setParent(this.UpgradeItemNode));
                var t = this._upgradeItemNode.getComponent(I.ItemComponent);
                if (1 == this._powerCoreConfig.Materials[0].Items[0]) t.Init({
                    ItemId: this._coreDataModel.ItemId,
                    StarLevel: this._powerCoreConfig.Star
                }, I.ItemComponentType.ItemWithStar), this._selectSidsUpStar.length > 0 ? t.OffIconGray() : (t.OnIconGray(), this.SetCurModelList(), this._canUseCoreModelCount >= this._powerCoreConfig.Materials[0].Items[2] && (t.RedDot.active = !0)), e = this._selectSidsUpStar.length;
                else {
                    var n = this._powerCoreConfig.Materials[0].Items[1];
                    t.Init({
                        ItemId: n,
                        Count: this._powerCoreConfig.Materials[0].Items[2]
                    }, I.ItemComponentType.ItemCommon), e = y.DataCenter.Instance.GetItemCount(n)
                }
                this.UpgradeItemCount.string = "item_count_enough".ToUILocale().Fmt(e, this._powerCoreConfig.Materials[0].Items[2]), this.SetItmeCountColor(e, this._powerCoreConfig.Materials[0].Items[2])
            }, t.prototype.SetUpStarPart = function() {
                this.UpgradeLevelButton.node.active = !1, this.UpgradeStarButton.node.active = !0, this.QuickUpButton.node.active = !0, this.UpMaxStateLabel.node.active = !1, this.ReNodeActive(!0), this._powerCoreConfig.Star < this._maxStarCount ? (this.UpLevelStarNode.active = !1, this.UpStarTotalStarNode.active = !0, this.SetStarsCount(this.CurrentStarNode, this._currentStarSpriteArry, this._powerCoreConfig.Star, this._maxStarCount), this.SetStarsCount(this.NextStarNode, this._nextStarSpriteArry, this._powerCoreConfig.Star + 1, this._maxStarCount), this.SetUpgradeStarItems()) : (this.UpgradeStarButton.node.active = !1, this.UpgradeItemTotalNode.active = !1, this.UpLevelStarNode.active = !0, this.UpStarTotalStarNode.active = !1, this.SetStarsCount(this.UpLevelStarNode, this._upLevelStarSpriteArry, this._powerCoreConfig.Star, this._coreQualityConfig.StarAttrs.length), this.UpMaxStateLabel.node.active = !0, this.UpMaxStateLabel.string = "PowerCore_Max_Star".ToUILocale()), this.SetNextStarAttrData(), this.SetAttrItems(this._attrValues.length / 2, this._nextStarAttr), this.SetSkillData()
            }, t.prototype.OnQuickUpButtonClick = function() {
                p.UIManager.Instance.ShowUIPanel(v.PanelConfig.CoreQuickUpgradeStarPanel.Path)
            }, t.prototype.OnMaterialsItemAddButtonClick = function() {
                switch (this._currentBottomTab) {
                    case l.Level:
                        u.UIManager.Instance.ShowUIPanel(v.PanelConfig.ItemGetWayPanel.Path, this._nextcoreLevelConfig.Materials[0].Items[0], !1);
                        break;
                    case l.Star:
                        if (1 == this._powerCoreConfig.Materials[0].Items[0]) {
                            this._totalCoreModelList = y.DataCenter.Instance.GetDataList(h.PowerCore_Model), this.SetCurModelList();
                            var e = this._curCoreModelList.length + 1;
                            u.UIManager.Instance.ShowUIPanel(v.PanelConfig.ItemGetWayPanel.Path, this._coreDataModel.ItemId, !1, e)
                        } else u.UIManager.Instance.ShowUIPanel(v.PanelConfig.ItemGetWayPanel.Path, this._powerCoreConfig.Materials[0].Items[1], !1)
                }
            }, t.prototype.OnBtnUpgradeLevelClick = function() {
                var e, t = this._nextcoreLevelConfig.Materials[0].Items;
                if (e = this._coreLevelConfig ? t[1] - this._coreLevelConfig.Materials[0].Items[1] : t[1], C.DataCenter.Instance.GetItemCount(t[0]) >= e) {
                    var n = new h.Req_Item_CoreUpgradeLevel;
                    n.Sid = this._coreDataModelSid, n.NewLevel = this._coreDataModel.Level + 1, C.RpcComponent.Instance.Call(n, this.UpLevelSuccess.bind(this))
                } else d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t[0].ToItemName())), u.UIManager.Instance.ShowUIPanel(v.PanelConfig.ItemGetWayPanel.Path, t[0], !1)
            }, t.prototype.UpLevelSuccess = function() {
                u.UIManager.Instance.ShowUIPanel(v.PanelConfig.CoreUpgradeSuccessPanel.Path, S.UpgradeType.UpLevel, this._coreDataModel)
            }, t.prototype.OnBtnUpgradeStarClick = function() {
                var e, t = this._powerCoreConfig.Materials[0].Items;
                if (1 == t[0] ? this._selectSidsUpStar.length < t[2] && (e = this._coreDataModel.ItemId) : y.DataCenter.Instance.IsItemEnough(t[1], t[2]) || (e = t[1]), e) return d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.ToItemName())), void u.UIManager.Instance.ShowUIPanel(v.PanelConfig.ItemGetWayPanel.Path, e, !1);
                var n = new h.Req_Item_CoreUpgradeStar;
                n.Sid = this._coreDataModelSid;
                var o = [];
                o[0] = new h.IntArray, 1 == t[0] ? o[0].Items = this._selectSidsUpStar : o[0].Items = [], n.Materials = o, C.RpcComponent.Instance.Call(n, this.UpStarSuccess.bind(this))
            }, t.prototype.UpStarSuccess = function(e) {
                e.Rewards.length > 0 && u.UIManager.Instance.ShowUIPanelByQueue(v.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), u.UIManager.Instance.ShowUIPanelByQueue(v.PanelConfig.CoreUpgradeSuccessPanel.Path, S.UpgradeType.UpStar, this._coreDataModel), this._selectSidsUpStar = []
            }, t.prototype.OnBtnReturnClick = function() {
                this.DetailButton.node.active ? p.UIManager.Instance.BackUIPanel() : (this.SetCoreForm(this._coreFormId), this.BottomToggle[this._currentBottomTab].isChecked = !0, this.SetPanelPartByCurrentTab())
            }, t.prototype.OnUpgradeStarItemClick = function(e, t) {
                -1 != this.UpgradeItemNode.children.indexOf(t) && (this._currentBottomTab == l.Star && 1 == this._powerCoreConfig.Materials[0].Items[0] ? (this._totalCoreModelList = y.DataCenter.Instance.GetDataList(h.PowerCore_Model), this.SetCurModelList(), this._clickMaterialNode = t, u.UIManager.Instance.ShowUIPanel(v.PanelConfig.CoreUpSelectMaterialPanel.Path, L.CoreSelectMaterialPanelType.UpStar, this._curCoreModelList, this._powerCoreConfig.Materials[0].Items[2], this._selectSidsUpStar)) : d.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t))
            }, t.prototype.SetCurModelList = function() {
                this._curCoreModelList = [], this._canUseCoreModelCount = 0;
                for (var e = 0; e < this._totalCoreModelList.length; e++) this._totalCoreModelList[e].ItemId == this._powerCoreConfig.Materials[0].Items[1] && this._totalCoreModelList[e].Sid != this._coreDataModel.Sid && (this._curCoreModelList.push(this._totalCoreModelList[e]), this._totalCoreModelList[e].OwnerId || this._canUseCoreModelCount++);
                this._curCoreModelList.sort(function(e, t) {
                    return e.OwnerId && !t.OwnerId ? 1 : !e.OwnerId && t.OwnerId ? -1 : e.Level - t.Level
                })
            }, t.prototype.OnSelectCallback = function(e) {
                this._selectSidsUpStar = e, this.UpgradeItemCount.string = "item_count_enough".ToUILocale().Fmt(this._selectSidsUpStar.length, this._powerCoreConfig.Materials[0].Items[2]), this.SetItmeCountColor(this._selectSidsUpStar.length, this._powerCoreConfig.Materials[0].Items[2]);
                var t = this._clickMaterialNode.getComponent(I.ItemComponent);
                this._selectSidsUpStar.length > 0 ? (t.RedDot.active = !1, t.OffIconGray()) : (t.OnIconGray(), this._canUseCoreModelCount >= this._powerCoreConfig.Materials[0].Items[2] && (t.RedDot.active = !0))
            }, t.prototype.SetItmeCountColor = function(e, t) {
                this.UpgradeItemCount.node.color = e < t ? cc.Color.RED : cc.Color.GREEN
            }, t.prototype.SetCoreForm = function(e) {
                this._coreFormNode || (this._coreFormNode = cc.instantiate(this._coreFormItem), this._coreFormNode.setParent(this.CoreFormNode)), this._coreFormNode.name != e.toString() && (this._coreFormNode.getComponent(T.default).InitData(e), this._coreFormNode.name = e.toString())
            }, i([M(cc.Label)], t.prototype, "Title", void 0), i([M(cc.RichText)], t.prototype, "CoreLevel", void 0), i([M(cc.Button)], t.prototype, "RuleButton", void 0), i([M(cc.Button)], t.prototype, "HandbookButton", void 0), i([M(cc.Label)], t.prototype, "HandbookLabel", void 0), i([M(cc.Button)], t.prototype, "DetailButton", void 0), i([M(cc.Label)], t.prototype, "DetailLabel", void 0), i([M(cc.Button)], t.prototype, "QuickUpButton", void 0), i([M(cc.Label)], t.prototype, "QuickUpLabel", void 0), i([M(cc.Node)], t.prototype, "UpLevelStarNode", void 0), i([M(cc.Node)], t.prototype, "UpStarTotalStarNode", void 0), i([M(cc.Node)], t.prototype, "CurrentStarNode", void 0), i([M(cc.Node)], t.prototype, "NextStarNode", void 0), i([M(cc.Node)], t.prototype, "CoreFormNode", void 0), i([M(cc.Node)], t.prototype, "CorePropertyNode", void 0), i([M(cc.Label)], t.prototype, "CorePropertyTitle", void 0), i([M(cc.Node)], t.prototype, "SingleSkillNode", void 0), i([M(cc.Node)], t.prototype, "SingleSkillItemNode", void 0), i([M(cc.Node)], t.prototype, "DoubleSkillNode", void 0), i([M(cc.Node)], t.prototype, "CurrentSkillItemNode", void 0), i([M(cc.Label)], t.prototype, "CurrentSkillItemName", void 0), i([M(cc.Node)], t.prototype, "NextSkillItemNode", void 0), i([M(cc.Label)], t.prototype, "NextSkillItemName", void 0), i([M(cc.Label)], t.prototype, "SkillTitle", void 0), i([M(cc.Button)], t.prototype, "UpgradeLevelButton", void 0), i([M(cc.Button)], t.prototype, "UpgradeStarButton", void 0), i([M(cc.Label)], t.prototype, "BtnUpgradeLevelLabel", void 0), i([M(cc.Label)], t.prototype, "BtnUpgradeStarLabel", void 0), i([M(cc.Button)], t.prototype, "UpgradeItemAddButton", void 0), i([M(cc.Label)], t.prototype, "UpgradeItemCount", void 0), i([M(cc.Node)], t.prototype, "UpgradeItemTotalNode", void 0), i([M(cc.Node)], t.prototype, "UpgradeItemNode", void 0), i([M(cc.Label)], t.prototype, "UpMaxStateLabel", void 0), i([M(cc.Label)], t.prototype, "SwitchStarTitle", void 0), i([M(cc.Node)], t.prototype, "SwitchStarToggleContainerNode", void 0), i([M(A.default)], t.prototype, "BottomToggle", void 0), i([M(cc.Node)], t.prototype, "BottomToggleContainer", void 0), i([M(cc.Button)], t.prototype, "ReturnButton", void 0), i([O], t)
        }(p.BaseUIFullScreenPanel);
        n.default = D, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PowerCoreAttributeComponent": "PowerCoreAttributeComponent",
        "../Components/PowerCoreFormComponent": "PowerCoreFormComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "../Components/SwitchStarToggleComponent": "SwitchStarToggleComponent",
        "./CoreUpSelectMaterialPanel": "CoreUpSelectMaterialPanel",
        "./CoreUpgradeSuccessTipPanel": "CoreUpgradeSuccessTipPanel"
    }],
    CoreUpgradeSuccessTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0bf658kOWpEQa85t6+Uw/6q", "CoreUpgradeSuccessTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.UpgradeType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/ItemComponent"),
            d = e("../Components/CoreUpgradeAttrItemComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/SkillItemComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../Components/Components"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property;
        (function(e) {
            e[e.UpLevel = 0] = "UpLevel", e[e.UpStar = 1] = "UpStar"
        })(l = n.UpgradeType || (n.UpgradeType = {}));
        var v = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.UpLevelTitle = null, t.UpStarTitle = null, t.Bg = null, t.CoreNameNode = null, t.CoreNameLabel = null, t.CoreItemNode = null, t.DoubleLevelNode = null, t.CurLvLabel = null, t.NextLvLabel = null, t.DoubleStarsNode = null, t.CurStarsNode = null, t.NextStarsNode = null, t.AttrPatternNode = null, t.AttrTitleLabel = null, t.AttrItemsNode = null, t.SkillPatternNode = null, t.SkillTitleLabel = null, t.SkillItemsNode = null, t.SkillItem1Node = null, t.SkillItem1LevelLabel = null, t.SkillItem2Node = null, t.SkillItem2LevelLabel = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("CoreCultivatePanel/Components/UpSuccessAttrItem", cc.Prefab)];
                            case 1:
                                return t._attrItem = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitData = function(e) {
                this.HideNeedlessBgChildrenNode(), this._displayType = e[0], this._coreDataModel = e[1], this.SetConfig(), this._attrValues = y.default.Instance.GetPowerCoreAttribute(this._coreDataModel.ItemId, this._coreDataModel.Level), this._curStarCount = this._powerCoreConfig.Star, this.SetTipByType()
            }, t.prototype.SetConfig = function() {
                this._coreItemBaseModel = m.ConfigDataComponent.Instance.GetConfigById(g.ItemBase_Config, this._coreDataModel.ItemId), this._powerCoreConfig = m.ConfigDataComponent.Instance.GetConfigById(g.PowerCore_Config, this._coreDataModel.ItemId)
            }, t.prototype.HideNeedlessBgChildrenNode = function() {
                this.Bg.children.forEach(function(e) {
                    e.active = !1
                }), this.AttrPatternNode.active = !0, this.AttrTitleLabel.string = "upgrade_attr".ToUILocale(), this.AttrItemsNode.active = !0
            }, t.prototype.SetTipByType = function() {
                this._displayType == l.UpLevel ? this.SetLevelTip() : this.SetStarTip()
            }, t.prototype.SetLevelTip = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.UpStarTitle.active = !1, this.UpLevelTitle.active = !0, this.CoreNameNode.active = !0, this.CoreNameLabel.string = this._coreDataModel.ItemId.ToItemName(), this.CoreItemNode.active = !0, this._upSuccessAttrValues = y.default.Instance.GetPowerCoreAttribute(this._powerCoreConfig.Id, this._coreDataModel.Level + 1, this._powerCoreConfig.Star), e = this, [4, this.LoadDynamicAsset("ItemsComponent/ItemComponent", cc.Prefab)];
                            case 1:
                                return e._coreItem = n.sent(), this.isValid ? ((t = cc.instantiate(this._coreItem)).setParent(this.CoreItemNode), t.getComponent(p.ItemComponent).Init({
                                    ItemId: this._coreDataModel.ItemId,
                                    StarLevel: this._curStarCount
                                }, p.ItemComponentType.ItemWithStar), this.DoubleLevelNode.active = !0, this.CurLvLabel.string = "allianceBase_level".ToUILocale().Fmt(this._coreDataModel.Level), this.NextLvLabel.string = "allianceBase_level".ToUILocale().Fmt(this._coreDataModel.Level + 1), this.SetAttrItems(this._attrValues.length / 2), [2]) : (u.AssetsManager.Instance.UnloadAsset(this._coreItem), [2])
                        }
                    })
                })
            }, t.prototype.SetStarTip = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.UpLevelTitle.active = !1, this.UpStarTitle.active = !0, this.DoubleStarsNode.active = !0, this._powerCoreConfig.Next && (this._nextPowerCoreConfig = m.ConfigDataComponent.Instance.GetConfigById(g.PowerCore_Config, this._powerCoreConfig.Next)), this._coreQualityConfig = m.ConfigDataComponent.Instance.GetConfigById(g.PowerCoreQuality_Config, this._coreItemBaseModel.Quality), this._upSuccessAttrValues = y.default.Instance.GetPowerCoreAttribute(this._powerCoreConfig.Id, this._coreDataModel.Level, this._powerCoreConfig.Star + 1), this.SetStarsCount(this.CurStarsNode, this._curStarCount, this._coreQualityConfig.StarAttrs.length), this.SetStarsCount(this.NextStarsNode, this._curStarCount + 1, this._coreQualityConfig.StarAttrs.length), this.SetAttrItems(this._attrValues.length / 2), this._nextPowerCoreConfig.Skills[0] && this._powerCoreConfig.Skills[0] != this._nextPowerCoreConfig.Skills[0] ? (this.SkillPatternNode.active = !0, this.SkillItemsNode.active = !0, this.SkillTitleLabel.string = "PowerCore_Skill_Up".ToUILocale(), e = this, [4, this.LoadDynamicAsset("ItemsComponent/SkillItemComponent", cc.Prefab)]) : [3, 2];
                            case 1:
                                if (e._skillItem = t.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._skillItem), [2];
                                this.SetSkillItem(this.SkillItem1Node, this._powerCoreConfig.Skills, this.SkillItem1LevelLabel), this.SetSkillItem(this.SkillItem2Node, this._nextPowerCoreConfig.Skills, this.SkillItem2LevelLabel), t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetSkillItem = function(e, t, n) {
                var o = cc.instantiate(this._skillItem);
                o.parent = e, o.getComponent(f.default).Init(t[1], t[0]), n.string = t[1].ToHeroSkillName()
            }, t.prototype.SetAttrItems = function(e) {
                for (var t = 0; t < e; t++) {
                    var n = cc.instantiate(this._attrItem);
                    n.setParent(this.AttrItemsNode);
                    var o = y.default.GetHeroAttributeIcon(this._attrValues[2 * t]),
                        r = y.default.GetHeroAttributeName(this._attrValues[2 * t]);
                    n.getComponent(d.default).Init(o, r, this._attrValues[2 * t + 1].toString(), this._upSuccessAttrValues[2 * t + 1].toString())
                }
            }, t.prototype.SetStarsCount = function(e, t, n) {
                for (var o = 0; o < n; o++) {
                    var r = new cc.Node;
                    r.setParent(e), r.addComponent(cc.Sprite).spriteFrame = o < t ? h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarIcon") : h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarBg")
                }
            }, i([C(cc.Node)], t.prototype, "UpLevelTitle", void 0), i([C(cc.Node)], t.prototype, "UpStarTitle", void 0), i([C(cc.Node)], t.prototype, "Bg", void 0), i([C(cc.Node)], t.prototype, "CoreNameNode", void 0), i([C(cc.Label)], t.prototype, "CoreNameLabel", void 0), i([C(cc.Node)], t.prototype, "CoreItemNode", void 0), i([C(cc.Node)], t.prototype, "DoubleLevelNode", void 0), i([C(cc.Label)], t.prototype, "CurLvLabel", void 0), i([C(cc.Label)], t.prototype, "NextLvLabel", void 0), i([C(cc.Node)], t.prototype, "DoubleStarsNode", void 0), i([C(cc.Node)], t.prototype, "CurStarsNode", void 0), i([C(cc.Node)], t.prototype, "NextStarsNode", void 0), i([C(cc.Node)], t.prototype, "AttrPatternNode", void 0), i([C(cc.Label)], t.prototype, "AttrTitleLabel", void 0), i([C(cc.Node)], t.prototype, "AttrItemsNode", void 0), i([C(cc.Node)], t.prototype, "SkillPatternNode", void 0), i([C(cc.Label)], t.prototype, "SkillTitleLabel", void 0), i([C(cc.Node)], t.prototype, "SkillItemsNode", void 0), i([C(cc.Node)], t.prototype, "SkillItem1Node", void 0), i([C(cc.Label)], t.prototype, "SkillItem1LevelLabel", void 0), i([C(cc.Node)], t.prototype, "SkillItem2Node", void 0), i([C(cc.Label)], t.prototype, "SkillItem2LevelLabel", void 0), i([_], t)
        }(c.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CoreUpgradeAttrItemComponent": "CoreUpgradeAttrItemComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SkillItemComponent": "SkillItemComponent"
    }],
    CorsairBgAniComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "87917rv4kZLlpSu+lQqRqSr", "CorsairBgAniComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BgIcon = null, t.Spine = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.BgIcon.spriteFrame = e
                }, i([l(cc.Sprite)], t.prototype, "BgIcon", void 0), i([l(sp.Skeleton)], t.prototype, "Spine", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CorsairIslandComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2d2caa+ayVDT4nlem4ScvP1", "CorsairIslandComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.Icon.spriteFrame = e
                }, i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CorsairPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "49171i2vO9KH6ubECm0oD8M", "CorsairPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CorsairBgAniComponent"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../EZFramework/PolyNav/PolyNav2D/PolyNav2D"),
            f = e("../Components/CorsairShipMoveComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.MapScrollView = null, t.BgContainer = null, t.MapGrid = null, t.SceneNode = null, t.SpineNode = null, t.ReturnButton = null, t.ShipButton = null, t.ShipButtonLabel = null, t.MAXPOSCOUNT = 72, t.MINPOSCOUNT = 10, t.Distance = 300, t.NpcShipNodeMap = new Map, t._npcShipIndex = 0, t._npcShipBattleArray = [], t._npcShipDatas = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CorsairPanel/Components/CorsairBgAniComponent", cc.Prefab), n = this.LoadDynamicAsset("CorsairPanel/Components/CorsairIslandComponent", cc.Prefab), o = this.LoadDynamicAsset("CorsairPanel/Components/CorsairShipMoveComponent", cc.Prefab), r = this.LoadDynamicAsset("CorsairPanel/PNG/CorsairAtlas", cc.SpriteAtlas), i = this.LoadDynamicAsset("CorsairPanel/Components/AttackSpine", cc.Prefab), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._bgPrefab = e[0], a._islandPrefab = e[1], a._shipPrefab = e[2], a._corsairAtlas = e[3], a._attackPrefab = e[4]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ShipButton.node.on("click", this.OnShipButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this.SetCirclePosArray()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this._mapConfig = u.ConfigDataComponent.Instance.GetConfigById(c.CorsairMap_Config, 1001), t = this.LoadDynamicAsset("CorsairPanel/PNG/" + this._mapConfig.BgPath, cc.SpriteFrame), n = this.LoadDynamicAsset("CorsairPanel/Map/" + this._mapConfig.Map, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._bgIcon = e[0], o._mapPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.ConfigMapGrid(), this.SetBgContainer(), this.SetShip())
                }, t.prototype.SetCirclePosArray = function() {
                    this._npcShipBattleArray = [];
                    var e = this.NpcShipNodeMap.size > this.MAXPOSCOUNT ? this.MAXPOSCOUNT : this.NpcShipNodeMap.size < this.MINPOSCOUNT ? this.MINPOSCOUNT : this.NpcShipNodeMap.size;
                    this.CirclePosArray = {};
                    for (var t = 360 / e, n = 0; n < e; n++) {
                        var o = 2 * Math.PI / 360 * t * n,
                            r = [Math.floor(Math.cos(o) * this.Distance), Math.floor(Math.sin(o) * this.Distance)],
                            i = Math.ceil(t * n / 90);
                        0 == i && (i = 1), this.CirclePosArray[i] ? this.CirclePosArray[i].push(r) : this.CirclePosArray[i] = [r]
                    }
                }, t.prototype.GetNpcShipBattleArray = function() {
                    return this._npcShipBattleArray
                }, t.prototype.SetNpcShipBattleArray = function(e) {
                    this._npcShipBattleArray.push(e)
                }, t.prototype.GetNearestNpcShip = function() {
                    var e, t = this,
                        n = null,
                        o = this._mainShipNode.getPosition();
                    return this.NpcShipNodeMap.forEach(function(r) {
                        var i = t.GetDistance(o, r.getPosition());
                        (null == n || n > i) && (n = i, e = r)
                    }), e
                }, t.prototype.GetDistance = function(e, t) {
                    return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2))
                }, t.prototype.ConfigMapGrid = function() {
                    var e = cc.instantiate(this._mapPrefab);
                    e.setParent(this.MapGrid), this._mapPolyNav2D = e.getChildByName("Map").getComponent(h.default), this.MapScrollView.content.width = e.width, this.MapScrollView.content.height = e.height, this.MapScrollView.scrollTo(cc.v2(.5, .5))
                }, t.prototype.SetBgContainer = function() {
                    var e = this._bgIcon.getRect(),
                        t = Math.ceil(this.MapScrollView.content.width / e.width),
                        n = Math.ceil(this.MapScrollView.content.height / e.height);
                    this.BgContainer.width = t * e.width;
                    for (var o = 0; o < t * n; o++) {
                        var r = cc.instantiate(this._bgPrefab);
                        r.setParent(this.BgContainer), r.getComponent(p.default).Init(this._bgIcon)
                    }
                }, t.prototype.SetShip = function() {
                    this._mainShipNode = this.GetShipNode(), this._mainShipNode.setParent(this._mapPolyNav2D.node.parent), this._mainShipNode.getComponent(f.default).Init(this._mapPolyNav2D, new cc.Vec2(0, 0), !1, this)
                }, t.prototype.GetRandomCirclePoints = function(e, t) {
                    for (;;) {
                        var n = Math.floor(-t + Math.random() * t * 2),
                            o = Math.floor(-t + Math.random() * t * 2),
                            r = Math.sqrt(Math.pow(n, 2) + Math.pow(o, 2));
                        if (r >= e && r <= t) return [n, o]
                    }
                }, t.prototype.SetPosArray = function() {
                    this._shipPosArray = [];
                    for (var e, t = function(t) {
                            var o = n.GetRandomCirclePoints(500, 1e3);
                            if (n._shipPosArray.some(function(e) {
                                    return e[0] === o[0] && e[1] === o[1]
                                })) return e = --t, "continue";
                            n._shipPosArray.push(o), e = t
                        }, n = this, o = 0; o < 3; o++) t(o), o = e
                }, t.prototype.SetShipArray = function() {
                    for (var e = this._mainShipNode.getPosition(), t = 0; t < this._shipPosArray.length; t++) {
                        var n = this.GetShipNode();
                        n.setParent(this._mapPolyNav2D.node.parent), n.opacity = 255, n.name = this._npcShipIndex.toString();
                        var o = new cc.Vec2(this._shipPosArray[t][0] + e.x, this._shipPosArray[t][1] + e.y);
                        n.getComponent(f.default).Init(this._mapPolyNav2D, o, !0, this, e), this.NpcShipNodeMap.set(this._npcShipIndex, n), this._npcShipIndex++
                    }
                }, t.prototype.GetShipNode = function() {
                    var e = this._shipNodePool;
                    return e ? e.size() > 0 ? e.get() : cc.instantiate(this._shipPrefab) : (e = new cc.NodePool, this._shipNodePool = e, cc.instantiate(this._shipPrefab))
                }, t.prototype.PutShipNode = function(e) {
                    this._shipNodePool || (this._shipNodePool = new cc.NodePool), this._shipNodePool.put(e)
                }, t.prototype.OnShipButtonClick = function() {
                    this.SetPosArray(), this.SetShipArray(), this._mainShipNode.getComponent(f.default).IsLookNpc = !0
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    cc.Tween.stopAllByTag(d.PanelConfig.CorsairPanel.Id), this._shipNodePool && this._shipNodePool.clear()
                }, i([m(cc.ScrollView)], t.prototype, "MapScrollView", void 0), i([m(cc.Node)], t.prototype, "BgContainer", void 0), i([m(cc.Node)], t.prototype, "MapGrid", void 0), i([m(cc.Node)], t.prototype, "SceneNode", void 0), i([m(cc.Node)], t.prototype, "SpineNode", void 0), i([m(cc.Button)], t.prototype, "ReturnButton", void 0), i([m(cc.Button)], t.prototype, "ShipButton", void 0), i([m(cc.Label)], t.prototype, "ShipButtonLabel", void 0), i([g], t)
            }(l.BaseUIFullScreenPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/PolyNav/PolyNav2D/PolyNav2D": "PolyNav2D",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CorsairBgAniComponent": "CorsairBgAniComponent",
        "../Components/CorsairShipMoveComponent": "CorsairShipMoveComponent"
    }],
    CorsairShipComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b3ce6Np8jFLKJU7qO3uKWmw", "CorsairShipComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("./CustomProgressBar"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ShipContainer = null, t.Icon = null, t.ProgressBar = null, t.BarIcon = null, t.YellowBarNode = null, t.WaterSpineNode = null, t.FireSpine = null, t.BombSpine = null, t.AttackSpine = null, t.FloatingLabel = null, t.BARTOTALWIDTH = 144, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_CORSAIR_BATTLE_START, this.BattleStart, this), a.Game.EventDispatcher.On(s.EventKeys.EVENT_CORSAIR_BATTLE_STOP, this.BattleStop, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_CORSAIR_BATTLE_START, this.BattleStart, this), a.Game.EventDispatcher.Off(s.EventKeys.EVENT_CORSAIR_BATTLE_STOP, this.BattleStop, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    if (this._mapComponent = e, this._atlas = t, this._isNpc = n[0], this._shipIndex = n[1], this._mainPanel = o, this._isNpc) this._shipType = 2, this.BarIcon.spriteFrame = this._atlas.getSpriteFrame("progress_red");
                    else {
                        this._shipType = 1, this.BarIcon.spriteFrame = this._atlas.getSpriteFrame("progress_green"), this._routeArray = [173, 158, 144, 143, 142, 141, 156, 172, 173, 172, 156, 141, 142, 143, 144, 158, 173, 187, 202, 203, 204];
                        for (var r = 0; r < this._routeArray.length; r++) {
                            var i = this._mapComponent.NodesInstance[this._routeArray[r]].getPosition();
                            this.SetShipTween(r, i)
                        }
                    }
                    this.Icon.spriteFrame = this._atlas.getSpriteFrame("ship_" + this._shipType + "1"), this.ProgressBar.progress = 1, this.YellowBarNode.width = this.ProgressBar.progress * this.BARTOTALWIDTH
                }, t.prototype.SetShipTween = function(e, t) {
                    var n = this;
                    cc.tween(this.node).delay(e).call(function() {
                        n.SetShipAngle(n.node.getPosition(), t)
                    }).to(1, {
                        position: new cc.Vec3(t.x, t.y, 0)
                    }).call(function() {
                        e == n._routeArray.length - 1 && a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_CORSAIR_BATTLE_START, t)
                    }).start()
                }, t.prototype.SetShipAngle = function(e, t) {
                    var n, o, r, i = t.x - e.x,
                        a = t.y - e.y,
                        s = Math.atan2(i, a) / Math.PI * 180,
                        l = Math.abs(s);
                    l > 120 ? (n = 3, o = [10, -40], r = 60) : l > 60 ? (n = 1, o = [0, -10], r = 0) : l > 0 && (n = 2, o = [-20, -20], r = -50), this.node.scaleX = s > 0 ? -1 : 1, this.ProgressBar.node.scaleX = s > 0 ? -1 : 1, this.Icon.spriteFrame = this._atlas.getSpriteFrame("ship_" + this._shipType + n), this.WaterSpineNode.setPosition(o[0], o[1]), this.WaterSpineNode.angle = r, this.AttackSpine.node.angle = r
                }, t.prototype.BattleStart = function(e) {
                    this._isNpc && this.SetShipAngle(this.node.getPosition(), e), 3 != this._shipIndex && 0 != this._shipIndex || this.SetBattleAni()
                }, t.prototype.SetBattleAni = function() {
                    var e = this;
                    this._isStop || (this.AttackSpine.node.active = !0, this.AttackSpine.setAnimation(0, "Ani_UI_Effect_haizhan_fashe", !1), this.AttackSpine.setCompleteListener(function() {
                        e.ProgressBar.progress = e._isNpc ? e.ProgressBar.progress - .2 : e.ProgressBar.progress - .02, e.SetFloatingAndBarTween(), e.ProgressBar.progress <= .5 && (e.FireSpine.node.active = !0, e.FireSpine.setAnimation(0, "Ani_UI_Effect_haizhan_huo", !0)), e.ProgressBar.progress > 0 ? (e.SetBattleAni(), e._isNpc && e.ProgressBar.progress - .2 <= 0 && a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_CORSAIR_BATTLE_STOP)) : cc.tween(e.node).to(1, {
                            opacity: 0
                        }).start()
                    }))
                }, t.prototype.SetFloatingAndBarTween = function() {
                    this.FloatingLabel.node.scaleX = this.node.scaleX, this.FloatingLabel.node.active = !0, this.FloatingLabel.string = this._isNpc ? "-10" : "-1", this.FloatingLabel.node.setPosition(0, 30, 0), this.FloatingLabel.node.opacity = 255, cc.tween(this.FloatingLabel.node).to(.5, {
                        position: new cc.Vec3(0, 120, 0)
                    }).to(.1, {
                        opacity: 0
                    }).start(), this.ProgressBar.progress >= 0 && cc.tween(this.YellowBarNode).to(.5, {
                        width: this.ProgressBar.progress * this.BARTOTALWIDTH
                    }).start()
                }, t.prototype.BattleStop = function() {
                    this._isStop = !0
                }, t.prototype.onDestroy = function() {
                    cc.Tween.stopAllByTarget(this.node), cc.Tween.stopAllByTarget(this.FloatingLabel.node), cc.Tween.stopAllByTarget(this.YellowBarNode)
                }, i([p(cc.Node)], t.prototype, "ShipContainer", void 0), i([p(cc.Sprite)], t.prototype, "Icon", void 0), i([p(l.default)], t.prototype, "ProgressBar", void 0), i([p(cc.Sprite)], t.prototype, "BarIcon", void 0), i([p(cc.Node)], t.prototype, "YellowBarNode", void 0), i([p(cc.Node)], t.prototype, "WaterSpineNode", void 0), i([p(sp.Skeleton)], t.prototype, "FireSpine", void 0), i([p(sp.Skeleton)], t.prototype, "BombSpine", void 0), i([p(sp.Skeleton)], t.prototype, "AttackSpine", void 0), i([p(cc.Label)], t.prototype, "FloatingLabel", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "./CustomProgressBar": "CustomProgressBar"
    }],
    CorsairShipMoveComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "504594xmLFNK5mSCCQp5rGh", "CorsairShipMoveComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/PolyNav/PolyNav2D/PolyNavAgent"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PolyNavAgent = null, t.ShipIcon = null, t.ATTACK_DISTANCE = 300, t._lastAngle = 0, t.IsLookNpc = !1, t._timeIntervalPos = 0, t._timeIntervalTarget = 0, t._isSetLastPos = !0, t._isSetLastAngel = !0, t._timeIntervalWait = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_CORSAIR_TARGECT_POS, this.OnGetNewPos, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_CORSAIR_TARGECT_POS, this.OnGetNewPos, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._map = e, this._isNpc = n, this._mainPanel = o, this._shipIndex = n ? 2 : 1, this.SetShipIcon(), this.PolyNavAgent.Init(this._map, t), this.PolyNavAgent.Speed = this._isNpc ? 100 : 200, r && this.OnGetNewPos(r, !0)
                }, t.prototype.SetBattle = function(e) {
                    var t = this;
                    this._awaitPos = null, e.getComponent(l.default).Stop(), this.SetAngle(this.node.getPosition(), e.getPosition()), cc.tween(e).tag(p.PanelConfig.CorsairPanel.Id).delay(1).to(1, {
                        opacity: 0
                    }).call(function() {
                        e.getComponent(n).ResetCirclePos(), t._mainPanel.PutShipNode(e), t._mainPanel.NpcShipNodeMap.delete(Number(e.name)), t._isInBattle = !1
                    }).start()
                }, t.prototype.ResetCirclePos = function() {
                    this._circlePosData && (this._mainPanel.CirclePosArray[this._circlePosData[0]].push([this._circlePosData[1], this._circlePosData[2]]), this._circlePosData = null)
                }, t.prototype.SetShipIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, c.AssetsManager.Instance.LoadAsset("CorsairPanel/PNG/CorsairAtlas", cc.SpriteAtlas)];
                                case 1:
                                    return e._atlas = t.sent(), this.isValid ? (this.ShipIcon.spriteFrame = this._atlas.getSpriteFrame("ship_" + this._shipIndex + "1"), [2]) : (c.AssetsManager.Instance.UnloadAsset(this._atlas), [2])
                            }
                        })
                    })
                }, t.prototype.update = function(e) {
                    if (this.PolyNavAgent.IsMove) this.SetAngle(this.node.getPosition(), this.PolyNavAgent.NextPoint), this._isNpc ? this._isSetLastAngel = !1 : (this._isSetLastPos = !1, this._timeIntervalPos += e, this._timeIntervalPos >= 1 && (this._timeIntervalPos = 0, c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CORSAIR_TARGECT_POS, this.node.getPosition(), !1)), this._nearestTarget && this.GetDistance(this._nearestTarget.getPosition()) <= this.ATTACK_DISTANCE && this.PolyNavAgent.Stop());
                    else if (this._isNpc) this._isSetLastAngel || (this._isSetLastAngel = !0, this.SetAngle(this.node.getPosition(), this._targetShipPos), this.GetDistance(this._targetShipPos) <= this.ATTACK_DISTANCE && this._mainPanel.SetNpcShipBattleArray(this.node)), this._awaitPos && (this._timeIntervalWait += e, this._timeIntervalWait >= 1 && (this._timeIntervalWait = 0, this.OnGetNewPos(this._awaitPos, !0)));
                    else {
                        if (!this._isInBattle)
                            if (this._mainPanel.GetNpcShipBattleArray().length > 0) {
                                this._isInBattle = !0, this._nearestTarget = null;
                                var t = this._mainPanel.GetNpcShipBattleArray().shift();
                                this.SetBattle(t)
                            } else this.IsLookNpc && !this._nearestTarget && (this._nearestTarget = this._mainPanel.GetNearestNpcShip(), this._nearestTarget ? this.PolyNavAgent.SetDestination(this._nearestTarget.getPosition()) : this.IsLookNpc = !1);
                        this._isSetLastPos || (this._isSetLastPos = !0, this._mainPanel.SetCirclePosArray(), c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CORSAIR_TARGECT_POS, this.node.getPosition(), !0))
                    }
                }, t.prototype.SetAngle = function(e, t) {
                    var n = t.x - e.x,
                        o = t.y - e.y,
                        r = Math.atan2(n, o),
                        i = Math.floor(r / Math.PI * 180);
                    if (this._lastAngle != i) {
                        this._lastAngle = i;
                        var a = Math.abs(i);
                        if (0 == a) return;
                        var s = void 0;
                        a > 120 ? s = 3 : a > 60 ? s = 1 : a > 0 && (s = 2), this.ShipIcon.spriteFrame = this._atlas.getSpriteFrame("ship_" + this._shipIndex + s), this.node.scaleX = i > 0 ? -1 : 1
                    }
                }, t.prototype.GetDistance = function(e) {
                    var t = this.node.getPosition();
                    return Math.floor(Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)))
                }, t.prototype.GetAngleX = function(e) {
                    var t = this.node.getPosition(),
                        n = Math.atan2(t.y - e.y, t.x - e.x),
                        o = Math.floor(n / Math.PI * 180);
                    return o < 0 && (o += 360), o
                }, t.prototype.GetPosFromCircle = function(e) {
                    var t = this._mainPanel.CirclePosArray[e];
                    if (t.length > 0) {
                        var n = t.shift();
                        return this._circlePosData = [e, n[0], n[1]], n
                    }
                    return null
                }, t.prototype.OnCliclMap = function(e) {
                    this.PolyNavAgent.SetDestination(this._map.node.convertToNodeSpaceAR(e.getLocation()))
                }, t.prototype.OnGetNewPos = function(e, t) {
                    if (this._isNpc) {
                        if (this._awaitPos = null, this._circlePosData = null, this.GetDistance(e) <= this.ATTACK_DISTANCE) return this.SetAngle(this.node.getPosition(), e), void this._mainPanel.SetNpcShipBattleArray(this.node);
                        if (!t) return void this.PolyNavAgent.SetDestination(e);
                        this._targetShipPos = e;
                        var n = this.GetAngleX(e),
                            o = Math.ceil(n / 90),
                            r = this.GetPosFromCircle(o);
                        if (null === r)
                            for (var i = 1; i <= 2 && null === (r = this.GetPosFromCircle((o - 1 + i) % 4 + 1)) && null === (r = this.GetPosFromCircle((o - 1 - i + 4) % 4 + 1)); i++);
                        if (null === r) return this.PolyNavAgent.Stop(), void(this._awaitPos = e);
                        var a = new cc.Vec2(e.x + r[0], e.y + r[1]);
                        this.PolyNavAgent.SetDestination(a)
                    }
                }, t.prototype.onDestroy = function() {}, i([f(l.default)], t.prototype, "PolyNavAgent", void 0), i([f(cc.Sprite)], t.prototype, "ShipIcon", void 0), n = i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/PolyNav/PolyNav2D/PolyNavAgent": "PolyNavAgent",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine"
    }],
    CountDownMaskComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "47c5888TixES6KwOCR2/r/P", "CountDownMaskComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/RpcComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Mask = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._maxHeight = this.Mask.node.height
                }, t.prototype.onEnable = function() {
                    this._deadLineTime && this.SetTimeValue()
                }, t.prototype.onDisable = function() {
                    this.unschedule(this.RefreshLeftTime)
                }, t.prototype.SetDeadLine = function(e, t, n) {
                    void 0 === n && (n = .1), this._deadLineTime = e, this._maxTime = t, this._dt = n, this.SetTimeValue()
                }, t.prototype.SetTimeValue = function() {
                    this.RefreshLeftTime(), this.unschedule(this.RefreshLeftTime), this.schedule(this.RefreshLeftTime, this._dt)
                }, t.prototype.RefreshLeftTime = function() {
                    var e = this._deadLineTime - a.RpcComponent.Instance.ServerTime;
                    e <= 0 ? (e = 0, this.Mask.node.height = 0, this.unschedule(this.RefreshLeftTime)) : this.Mask.node.height = this._maxHeight * e / this._maxTime
                }, i([c(cc.Mask)], t.prototype, "Mask", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Components/RpcComponent": "RpcComponent"
    }],
    CountdownLabel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "690f1lYJpBON7WhW3R4QiZ8", "CountdownLabel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../../../Consts/Consts"),
            c = e("../../../EZFramework/EZFramework"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Time = null, t._reset = !0, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    void 0 === t && (t = ""), this._endTime = e, this._showString = t, this.SetTime()
                }, t.prototype.SetTime = function() {
                    var e = a.RpcComponent.Instance.ServerTime,
                        t = this._endTime - e;
                    if (t < 0) this.Time.string = this._showString;
                    else {
                        var n = s.default.ActivityTimeLeftFormat(t);
                        if (this.Time.string = n, this._reset) {
                            var o = this.GetNextTime(t);
                            o > 0 ? this.scheduleOnce(this.SetTime, o / 1e3) : (this.schedule(this.SetTime, 1), this._reset = !1)
                        }
                    }
                }, t.prototype.GetNextTime = function(e) {
                    return e > l.Etc.DayDuration ? e % l.Etc.HourDuration : 0
                }, t.prototype.onDestroy = function() {
                    c.EZLog.Log("in onDestroy"), this.unscheduleAllCallbacks()
                }, i([d(cc.Label)], t.prototype, "Time", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    CouponGiftPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "808844ct+1MHJ4XYVmyVjI1", "CouponGiftPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = e("../../Channel/ChannelManager"),
            l = e("../Panel/LimitTimePurchasetListItem"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/DataCenter"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../Consts/Etc"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Components/RpcComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BlueBtnNode = null, t.Back = null, t.BlueBtnLabel = null, t.CouponTagNode = null, t.CouponTagLabel = null, t.VipNode = null, t._needShowCoupon = !1, t._packsMap = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    e.prototype.onEnable.call(this), this.BlueBtnNode.on("click", this.OnClickBlueBtn, this)
                }, t.prototype.onDisable = function() {
                    e.prototype.onDisable.call(this), this.BlueBtnNode.off("click", this.OnClickBlueBtn, this)
                }, t.prototype.SetActivityData = function(e, t) {
                    var n, o = this;
                    this._config = u.DataCenter.Instance.ActivityConfigs[e], this._packId = t, this._discoutnPackId = null === (n = this._config.__LowPricePack.filter(function(e) {
                        return e.PackId == o._packId
                    })[0]) || void 0 === n ? void 0 : n.Id, this._config._Packs.forEach(function(e) {
                        o._packsMap[e.Id] = e
                    }), this._needShowCoupon = a.default.NeedShowCoupon(t, e), this._deadLine = a.default.Instance.ComputeDeadTime(this._config.Common)
                }, t.prototype.SetPrice = function(t, n, o) {
                    if (this._needShowCoupon) {
                        if (this.CouponTagNode.active = !0, this.VipNode.active = !1, this.DiscountValue.node.parent.active = !1, !this._discoutnPackId) return;
                        var r = this._packsMap[this._discoutnPackId].Money;
                        this.BuyButtonLabel.string = r > 0 ? s.default.Instance.CurrencySymbol + s.default.Instance.ExchangeMoney(r) : "shop_buyFree".ToUILocale(), this.RedDot.active = null == r || 0 == r, this.CouponTagLabel.string = "Coupon_text".ToUILocale();
                        var i = this._packsMap[this._packId].Money;
                        this.BlueBtnLabel.string = i > 0 ? s.default.Instance.CurrencySymbol + s.default.Instance.ExchangeMoney(i) : "shop_buyFree".ToUILocale()
                    } else this.DiscountValue.node.parent.active = !0, e.prototype.SetPrice.call(this, t, n, o), this.CouponTagNode.active = !1, this.VipNode.active = !0
                }, t.prototype.SetPurchaseLimit = function(t, n, o) {
                    var r, i = this._packsMap[this._packId],
                        a = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._config._id);
                    return r = (a.Packs[i.Id] ? a.Packs[i.Id].Items[0] : 0) + (a.Packs[this._discoutnPackId] ? a.Packs[this._discoutnPackId].Items[0] : 0), t = i.LimitCount - r, n = i.LimitCount, (o = i.LimitType) && t <= 0 || !this._needShowCoupon ? this.BlueBtnNode.active = !1 : this.BlueBtnNode.active = !0, e.prototype.SetPurchaseLimit.call(this, t, n, o), this
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = this;
                    this._needShowCoupon ? p.UIUtlity.ShowHintPanel(null, "Coupon_continue".ToUILocale().Fmt(this.BlueBtnLabel.string, this.BuyButtonLabel.string), "", null, "", function() {
                        e.BuyDiscountPack(e._discoutnPackId)
                    }) : this.BuyDiscountPack(this._packId)
                }, t.prototype.OnClickBlueBtn = function() {
                    var e = this;
                    this._needShowCoupon && p.UIUtlity.ShowHintPanel(null, "Coupon_continue2".ToUILocale().Fmt(this.BlueBtnLabel.string, this.BuyButtonLabel.string), "", null, "", function() {
                        e.BuyDiscountPack(e._packId)
                    })
                }, t.prototype.BuyDiscountPack = function(e) {
                    if (this._config.Common.Type == f.ActivityType.SupportHero && this._deadLine - y.RpcComponent.Instance.ServerTime <= 3 * h.Etc.HourDuration) return p.UIUtlity.ShowFloatingHint("campSupport_supportOver".ToUILocale()), void d.UIManager.Instance.BackUIPanel();
                    if (null == this._packsMap[e].Money || 0 == this._packsMap[e].Money) {
                        var t = new c.Req_Pay_ByDiamond;
                        t.Id = e, t.ActivityId = this._config._id, y.RpcComponent.Instance.Call(t, function(e) {
                            p.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else s.default.Instance.Pay(e, this._config._id)
                }, i([I(cc.Node)], t.prototype, "BlueBtnNode", void 0), i([I(cc.Node)], t.prototype, "Back", void 0), i([I(cc.Label)], t.prototype, "BlueBtnLabel", void 0), i([I(cc.Node)], t.prototype, "CouponTagNode", void 0), i([I(cc.Label)], t.prototype, "CouponTagLabel", void 0), i([I(cc.Node)], t.prototype, "VipNode", void 0), i([m], t)
            }(l.default);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/LimitTimePurchasetListItem": "LimitTimePurchasetListItem"
    }],
    CrazyDiscountsPack: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dffe6m/o95Ng7K32i5hF+Dw", "CrazyDiscountsPack");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Channel/ChannelManager"),
            l = e("./ItemComponent"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NameLabel = null, t.ItemNode = null, t.ItemLayoutNode = null, t.LimitCount = null, t.PriceNode = null, t.ItemIcon = null, t.PriceLabel = null, t.SellOutNode = null, t._itemComponents = [], t._itemScale = [153 / 218, .5, 87 / 218], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._pack = e, this._buyCount = t, this._itemPrefab = n, this._activityId = o, this.NameLabel.string = e.Name, e.LimitCount > 0 ? (this.LimitCount.node.active = !0, this.LimitCount.string = "stockUp_limit_buy".ToUILocale().Fmt(e.LimitCount > t ? e.LimitCount - t : 0, e.LimitCount), t >= e.LimitCount ? (this.SellOutNode.active = !0, this.PriceNode.active = !1) : (this.SellOutNode.active = !1, this.PriceNode.active = !0)) : (this.LimitCount.node.active = !1, this.SellOutNode.active = !1, this.PriceNode.active = !0), this.node.hasEventListener("click") || this.node.on("click", this.OnPackClick, this), this.SetPackPrice(), this.ConfigPackItems()
                }, t.prototype.SetPackPrice = function() {
                    this.PriceLabel.string = c.default.Instance.GetFormatPrice(this._pack.Money)
                }, t.prototype.ConfigPackItems = function() {
                    for (var e = this._itemComponents.length; e < this._pack.Items.length; e++) {
                        var t = cc.instantiate(this._itemPrefab);
                        this._itemComponents.push(t.getComponent(l.ItemComponent))
                    }
                    this.ItemNode.active = !1, this.ItemLayoutNode.active = !1;
                    var n = this._itemComponents[0];
                    if (1 == this._pack.Items.length) this.ItemNode.active = !0, this.ItemNode.scale = this._itemScale[0], this.ItemNode.y = 13, n.node.active = !0, n.node.setParent(this.ItemNode), n.node.setPosition(0, 0), n.Init({
                        ItemId: this._pack.Items[0].Items[0],
                        Count: this._pack.Items[0].Items[1]
                    }, l.ItemComponentType.ItemCommon);
                    else if (2 == this._pack.Items.length)
                        for (this.ItemLayoutNode.active = !0, this.ItemLayoutNode.scale = this._itemScale[1], this.ItemLayoutNode.y = 13, e = 0; e < 2; e++)(o = this._itemComponents[e]).node.active = !0, o.node.setParent(this.ItemLayoutNode), o.Init({
                            ItemId: this._pack.Items[e].Items[0],
                            Count: this._pack.Items[e].Items[1]
                        }, l.ItemComponentType.ItemCommon);
                    else if (3 == this._pack.Items.length)
                        for (this.ItemNode.active = !0, this.ItemLayoutNode.active = !0, this.ItemLayoutNode.scale = this._itemScale[2], this.ItemLayoutNode.y = -40, this.ItemNode.scale = this._itemScale[2], this.ItemNode.y = 52, n.node.active = !0, n.node.setParent(this.ItemNode), n.node.setPosition(0, 0), n.Init({
                                ItemId: this._pack.Items[0].Items[0],
                                Count: this._pack.Items[0].Items[1]
                            }, l.ItemComponentType.ItemCommon), e = 1; e < 3; e++)(o = this._itemComponents[e]).node.active = !0, o.node.setParent(this.ItemLayoutNode), o.Init({
                            ItemId: this._pack.Items[e].Items[0],
                            Count: this._pack.Items[e].Items[1]
                        }, l.ItemComponentType.ItemCommon);
                    else if (4 == this._pack.Items.length)
                        for (this.ItemLayoutNode.active = !0, this.ItemLayoutNode.scale = this._itemScale[2], this.ItemLayoutNode.y = 6, e = 0; e < 4; e++) {
                            var o;
                            (o = this._itemComponents[e]).node.active = !0, o.node.setParent(this.ItemLayoutNode), o.Init({
                                ItemId: this._pack.Items[e].Items[0],
                                Count: this._pack.Items[e].Items[1]
                            }, l.ItemComponentType.ItemCommon)
                        }
                    for (e = this._pack.Items.length; e < this._itemComponents.length; e++) this._itemComponents[e].node.active = !1
                }, t.prototype.OnPackClick = function() {
                    this._pack.LimitCount > 0 && this._buyCount >= this._pack.LimitCount || s.default.Instance.Pay(this._pack.Id, this._activityId)
                }, t.prototype.OnItemClick = function(e, t) {
                    this._itemComponents.findIndex(function(e) {
                        return e.node == t
                    }) >= 0 && p.UIUtlity.ShowItemTip(t.getComponent(l.ItemComponent).ItemId, t)
                }, i([f(cc.Label)], t.prototype, "NameLabel", void 0), i([f(cc.Node)], t.prototype, "ItemNode", void 0), i([f(cc.Node)], t.prototype, "ItemLayoutNode", void 0), i([f(cc.Label)], t.prototype, "LimitCount", void 0), i([f(cc.Node)], t.prototype, "PriceNode", void 0), i([f(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([f(cc.Label)], t.prototype, "PriceLabel", void 0), i([f(cc.Node)], t.prototype, "SellOutNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    CrazyDiscountsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "15ce3uu0UdGkLnPBHeJnZbq", "CrazyDiscountsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/CustomProgressBar"),
            p = e("../Components/CustomLayout"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../Components/Components"),
            f = e("../Components/ItemComponent"),
            y = e("../Components/CrazyDiscountsPack"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Channel/ChannelManager"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../../ShareConsts/EnumType"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.DiscountRichText = null, t.CustomProgressBar = null, t.CountLabel = null, t.ProgressDotContainer = null, t.FreeItemButton = null, t.FreeItemButtonLabel = null, t.TagLabel = null, t.NameLabel = null, t.LimitCountLabel = null, t.Content = null, t.SellOutNode = null, t.BuyButton = null, t.PriceNode = null, t.HintRichText = null, t.CustomLayout = null, t.RuleButton = null, t.Title = null, t.ActivityTimeRichText = null, t.CurrencyBarItem = null, t.BackButton = null, t._giftItemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_PAY_SUCCESS, this.PaySuccess, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_PAY_SUCCESS, this.PaySuccess, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("CrazyDiscountsPanel/CrazyDiscountsPack", cc.Prefab), this.LoadDynamicAsset(_.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("CrazyDiscountsPanel/Png/CrazyDiscountsPanel", cc.SpriteAtlas)]).then(function(e) {
                                        t._packPrefab = e[0], t._itemPrefab = e[1], t._panelAtlas = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TagLabel.string = "crazyDiscounts_tag".ToUILocale(), this.FreeItemButtonLabel.string = "recharge_feedback_free".ToUILocale(), this.FreeItemButton.node.on("click", this.OnFreeItemButtonClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.CustomLayout.Init(this._packPrefab)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t);
                    var o = t[0];
                    this._activityConfig = h.DataCenter.Instance.ActivityConfigs[o], this._activityModel = h.DataCenter.Instance.GetDataById(c.UserActivity_Model, o), this._deadLine = C.default.Instance.ComputeDeadTime(this._activityConfig.Common), this.Title.string = this._activityConfig.Common.Title, this._packs = {}, this._activityConfig._Packs.forEach(function(e) {
                        n._packs[e.Id] = e
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this._activityConfig.CustomPart.Banner ? (t = this.Bg, [4, C.default.LoadActivityTexture(this._activityConfig.CustomPart.Banner)]) : [3, 2];
                                case 1:
                                    return t.spriteFrame = o.sent(), [3, 4];
                                case 2:
                                    return n = this.Bg, [4, this.LoadDynamicAsset("CrazyDiscountsPanel/Png/Bg", cc.SpriteFrame)];
                                case 3:
                                    n.spriteFrame = o.sent(), o.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n = this._activityConfig.CustomPart.Discount;
                    this.DiscountRichText.string = "<outline color=#240000 width=4>" + "crazyDiscount_text".ToUILocale().Fmt("<outline color=#240000 width=6><color=#FE5068><size=80>" + n[n.length - 1].Items[1] + "%</size></color></outline>") + "</outline>", this.CurrencyBarItem.Init(b.CommonItemId.Diamond), this._comonPackIds = this._activityConfig.CustomPart.CommonPackIds, this._comonPackIds.sort(this.SortPackIds.bind(this)), this._buyPackCount = this.GetBuyPackCount(), this._currentDiscountIndex = this.GetCurrentDiscountIndex(), this.ActivityCountDown(), this.unschedule(this.ActivityCountDown), this.schedule(this.ActivityCountDown, 1), this.SetFreeItemBtn(), this.SetProgressBar(), this.ConfigBigGift(), this.RenderCustomLayout()
                }, t.prototype.SortPackIds = function(e, t) {
                    var n = this._activityModel.Packs[e],
                        o = this._activityModel.Packs[t],
                        r = n ? n.Items[0] : 0,
                        i = o ? o.Items[0] : 0,
                        a = this._packs[e].LimitCount > 0 && r >= this._packs[e].LimitCount,
                        s = this._packs[t].LimitCount > 0 && i >= this._packs[t].LimitCount;
                    return a && !s ? 1 : !a && s ? -1 : this._packs[e].SortId - this._packs[t].SortId
                }, t.prototype.GetBuyPackCount = function() {
                    for (var e = 0, t = 0; t < this._comonPackIds.length; t++) {
                        var n = this._activityModel.Packs[this._comonPackIds[t]];
                        n && (e += n.Items[0])
                    }
                    return e
                }, t.prototype.GetCurrentDiscountIndex = function() {
                    for (var e = 0; e < this._activityConfig.CustomPart.Discount.length; e++)
                        if (this._buyPackCount < this._activityConfig.CustomPart.Discount[e].Items[0]) return e - 1;
                    return this._activityConfig.CustomPart.Discount.length - 1
                }, t.prototype.GetBigGiftBuyCount = function() {
                    var e = 0,
                        t = this._activityModel.Packs[this._activityConfig.CustomPart.PackId];
                    t && (e = t.Items[0]);
                    for (var n = 0; n < this._activityConfig.CustomPart.Discount.length; n++) {
                        var o = this._activityModel.Packs[this._activityConfig.CustomPart.Discount[n].Items[2]];
                        o && (e += o.Items[0])
                    }
                    return e
                }, t.prototype.ActivityCountDown = function() {
                    var e = this._deadLine - h.RpcComponent.Instance.ServerTime;
                    e < 0 && l.UIManager.Instance.BackUIPanel(), this.ActivityTimeRichText.string = "gift_remainderTime".ToUILocale() + "<color=#00ff00>" + C.default.ActivityTimeLeftFormat(e) + "</color>"
                }, t.prototype.SetFreeItemBtn = function() {
                    this._activityModel.DailyRewards ? I.UIUtlity.OnNodeGray(this.FreeItemButton.node) : I.UIUtlity.OffNodeGray(this.FreeItemButton.node), v.RedDotManager.Instance.BindInstance(this.FreeItemButton.node, v.RedDotManager.Instance.InstanceRedDot.CrazyDiscountFreeItemNode, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.SetProgressBar = function() {
                    for (var e = this._activityConfig.CustomPart.Discount.length, t = 880 / e, n = 0, o = 0, r = 0; r < e; r++) {
                        var i = this._activityConfig.CustomPart.Discount[r];
                        if (this._buyPackCount <= i.Items[0]) {
                            n += t * (this._buyPackCount - o) / (i.Items[0] - o);
                            break
                        }
                        o = i.Items[0], n += t
                    }
                    for (this.CustomProgressBar.progress = n / this.CustomProgressBar.TotalLength, this.CountLabel.string = "assistant_consume_times".ToUILocale().Fmt(this._buyPackCount), r = this.ProgressDotContainer.childrenCount; r < e; r++) {
                        var a = cc.instantiate(this.ProgressDotContainer.children[0]);
                        this.ProgressDotContainer.addChild(a)
                    }
                    for (r = 0; r < e; r++) {
                        i = this._activityConfig.CustomPart.Discount[r];
                        var s = this.ProgressDotContainer.children[r],
                            l = s.getComponent(T);
                        l || (l = s.addComponent(T)), s.active = !0, l.DiscountBg.node.scale = 1 - .06 * (e - r), s.x = (r + 1) * t;
                        var c = [];
                        i.Items[0] <= this._buyPackCount ? (c[0] = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeUnlock"), c[1] = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("tag1")) : (c[0] = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeLock"), c[1] = this._panelAtlas.getSpriteFrame("discountBg")), l.Init(c, i.Items[1])
                    }
                    for (r = e; r < this.ProgressDotContainer.childrenCount; r++) this.ProgressDotContainer.children[r].active = !1
                }, t.prototype.ConfigBigGift = function() {
                    var e;
                    e = this._currentDiscountIndex >= 0 ? this._activityConfig.CustomPart.Discount[this._currentDiscountIndex].Items[2] : this._activityConfig.CustomPart.PackId;
                    var t = this._packs[e];
                    this.NameLabel.string = t.Name;
                    var n = this.GetBigGiftBuyCount();
                    this.LimitCountLabel.string = "stockUp_limit_buy".ToUILocale().Fmt(t.LimitCount > n ? t.LimitCount - n : 0, t.LimitCount), this.ConfigBagGiftItems(t.Items), n < t.LimitCount ? (this.BuyButton.node.active = !0, this.SellOutNode.active = !1, this.SetBigGiftPrice(t)) : (this.BuyButton.node.active = !1, this.SellOutNode.active = !0), this.SetHintRichText(this._buyPackCount, this._currentDiscountIndex + 1, n >= t.LimitCount)
                }, t.prototype.ConfigBagGiftItems = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        var n = this._giftItemComponents[t];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(this.Content), n = o.getComponent(f.ItemComponent), this._giftItemComponents.push(n)
                        }
                        n.node.active = !0, n.Init({
                            ItemId: e[t].Items[0],
                            Count: e[t].Items[1]
                        }, f.ItemComponentType.ItemCommon)
                    }
                    for (t = e.length; t < this._giftItemComponents.length; t++) this._giftItemComponents[t].node.active = !1
                }, t.prototype.SetBigGiftPrice = function(e) {
                    var t;
                    this._priceComponent || (this._priceComponent = this.PriceNode.addComponent(R)), t = -1 == this._currentDiscountIndex ? 100 : this._activityConfig.CustomPart.Discount[this._currentDiscountIndex].Items[1];
                    var n = this._packs[this._activityConfig.CustomPart.PackId];
                    this._priceComponent.Init(n.Money, e.Money, t)
                }, t.prototype.SetHintRichText = function(e, t, n) {
                    if (t < this._activityConfig.CustomPart.Discount.length)
                        if (n) this.HintRichText.string = "bought".ToUILocale();
                        else {
                            var o = this._activityConfig.CustomPart.Discount[t].Items;
                            this.HintRichText.string = "<outline color=#000000c0 width=2>" + "crazyDiscounts_discountHint".ToUILocale().Fmt("<color=#94e514>" + (o[0] - e) + "</color>", "<color=#94e514>" + o[1] / 10 + "</color>") + "</outline>"
                        }
                    else this.HintRichText.string = "crazyDiscounts_discountHint2".ToUILocale()
                }, t.prototype.RenderCustomLayout = function() {
                    this.CustomLayout.RenderLayOut(this._comonPackIds.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        if (t < n._comonPackIds.length) {
                            e.active = !0;
                            var o = e.getComponent(y.default),
                                r = n._comonPackIds[t],
                                i = n._activityModel.Packs[r];
                            o.Init(n._packs[r], i ? i.Items[0] : 0, n._itemPrefab, n._activityConfig._id)
                        } else e.active = !1
                    })
                }, t.prototype.OnFreeItemButtonClick = function() {
                    var e = this;
                    if (this._activityModel.DailyRewards) I.UIUtlity.ShowHintPanel("reward".ToUILocale(), [{
                        ItemId: this._activityConfig.CustomPart.DailyRewards[0].Items[0],
                        Count: this._activityConfig.CustomPart.DailyRewards[0].Items[1]
                    }]);
                    else {
                        var t = c.Req_Activity_CommonDailyRewards.create();
                        t.ActivityId = this._activityConfig._id, h.RpcComponent.Instance.Call(t, function(t) {
                            e._activityModel = h.DataCenter.Instance.GetDataById(c.UserActivity_Model, e._activityConfig._id), e.SetFreeItemBtn(), I.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                        })
                    }
                }, t.prototype.OnBuyButtonClick = function() {
                    var e, t = this;
                    e = -1 == this._currentDiscountIndex ? this._activityConfig.CustomPart.PackId : this._activityConfig.CustomPart.Discount[this._currentDiscountIndex].Items[2], this._currentDiscountIndex + 1 < this._activityConfig.CustomPart.Discount.length ? I.UIUtlity.ShowHintPanel("", "crazyDiscounts_buyHint".ToUILocale(), "", null, "Activity_Story_Task_Btn_Buy".ToUILocale(), function() {
                        m.default.Instance.Pay(e, t._activityConfig._id)
                    }) : m.default.Instance.Pay(e, this._activityConfig._id)
                }, t.prototype.OnRuleButtonClick = function() {
                    I.UIUtlity.ShowRulePanel({
                        name: "crazyDiscounts_ruleName".ToUILocale(),
                        titles: ["crazyDiscounts_ruleTitle".ToUILocale()],
                        contents: ["crazyDiscounts_ruleDesc".ToUILocale()]
                    })
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.PaySuccess = function() {
                    this._activityModel = h.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this._buyPackCount = this.GetBuyPackCount(), this._currentDiscountIndex = this.GetCurrentDiscountIndex(), this.SetProgressBar(), this.ConfigBigGift(), this.RenderCustomLayout()
                }, t.prototype.OnItemClick = function(e, t) {
                    this._giftItemComponents.findIndex(function(e) {
                        return e.node == t
                    }) >= 0 && I.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, i([P(cc.Sprite)], t.prototype, "Bg", void 0), i([P(cc.RichText)], t.prototype, "DiscountRichText", void 0), i([P(u.default)], t.prototype, "CustomProgressBar", void 0), i([P(cc.Label)], t.prototype, "CountLabel", void 0), i([P(cc.Node)], t.prototype, "ProgressDotContainer", void 0), i([P(cc.Button)], t.prototype, "FreeItemButton", void 0), i([P(cc.Label)], t.prototype, "FreeItemButtonLabel", void 0), i([P(cc.Label)], t.prototype, "TagLabel", void 0), i([P(cc.Label)], t.prototype, "NameLabel", void 0), i([P(cc.Label)], t.prototype, "LimitCountLabel", void 0), i([P(cc.Node)], t.prototype, "Content", void 0), i([P(cc.Node)], t.prototype, "SellOutNode", void 0), i([P(cc.Button)], t.prototype, "BuyButton", void 0), i([P(cc.Node)], t.prototype, "PriceNode", void 0), i([P(cc.RichText)], t.prototype, "HintRichText", void 0), i([P(p.default)], t.prototype, "CustomLayout", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.RichText)], t.prototype, "ActivityTimeRichText", void 0), i([P(d.default)], t.prototype, "CurrencyBarItem", void 0), i([P(cc.Button)], t.prototype, "BackButton", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A;
        var T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Dot = null, t.DiscountBg = null, t.DiscountRichText = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Dot = this.node.getComponent(cc.Sprite), this.DiscountBg = this.node.getChildByName("DiscountBg").getComponent(cc.Sprite), this.DiscountRichText = this.DiscountBg.node.getChildByName("DiscountRichText").getComponent(cc.RichText)
                }, t.prototype.Init = function(e, t) {
                    this.Dot.spriteFrame = e[0], this.DiscountBg.spriteFrame = e[1], this.DiscountRichText.string = "<outline width=2 color=#000000><size=46>" + t + "</size><size=24>%</size><br/><color=#fed94a><size=30>" + "cashMall_tag4".ToUILocale() + "</size></color></outline>"
                }, i([P(cc.Sprite)], t.prototype, "Dot", void 0), i([P(cc.Sprite)], t.prototype, "DiscountBg", void 0), i([P(cc.RichText)], t.prototype, "DiscountRichText", void 0), t
            }(cc.Component),
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.OriginalPriceNode = null, t.OriginalTagLabel = null, t.OriginalItemIcon = null, t.OriginalPriceLabel = null, t.CurrentItemIcon = null, t.CurrentPriceLabel = null, t.DiscountNode = null, t.DiscountLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.OriginalPriceNode = cc.find("Layout/OriginalPriceNode", this.node), this.OriginalTagLabel = cc.find("Layout/OriginalTagLabel", this.OriginalPriceNode).getComponent(cc.Label), this.OriginalItemIcon = cc.find("Layout/OriginalItemIcon", this.OriginalPriceNode).getComponent(cc.Sprite), this.OriginalPriceLabel = cc.find("Layout/OriginalPriceLabel", this.OriginalPriceNode).getComponent(cc.Label), this.CurrentItemIcon = cc.find("Layout/Layout/CurrentItemIcon", this.node).getComponent(cc.Sprite), this.CurrentPriceLabel = cc.find("Layout/Layout/CurrentPriceLabel", this.node).getComponent(cc.Label), this.DiscountNode = cc.find("Discount", this.node), this.DiscountLabel = cc.find("DiscountLabel", this.DiscountNode).getComponent(cc.Label)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._discount = n, n < 100 ? (this.OriginalPriceNode.active = !0, this.DiscountNode.active = !0, this.OriginalTagLabel.string = "mall_originPrice".ToUILocale(), this.OriginalPriceLabel.string = o ? e.toString() : C.default.Instance.GetFormatPrice(e), this.DiscountLabel.string = "-" + (100 - n) + "%") : (this.OriginalPriceNode.active = !1, this.DiscountNode.active = !1), this.CurrentPriceLabel.string = C.default.Instance.GetFormatPrice(t), this.SetItemIcon(o)
                }, t.prototype.SetItemIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e ? this._itemIcon ? [3, 2] : (t = C.default.Instance.GetItemPathById(e), [4, l.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)]) : [3, 3];
                                case 1:
                                    if (n = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._itemIcon = n, o.label = 2;
                                case 2:
                                    return this.CurrentItemIcon.node.active = !0, this.CurrentItemIcon.spriteFrame = this._itemIcon, this._discount < 100 && (this.OriginalItemIcon.node.active = !0, this.OriginalItemIcon.spriteFrame = this._itemIcon), [3, 4];
                                case 3:
                                    this.OriginalItemIcon.node.active = !1, this.CurrentItemIcon.node.active = !1, o.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._itemIcon), this._itemIcon = null
                }, i([P(cc.Node)], t.prototype, "OriginalPriceNode", void 0), i([P(cc.Label)], t.prototype, "OriginalTagLabel", void 0), i([P(cc.Sprite)], t.prototype, "OriginalItemIcon", void 0), i([P(cc.Label)], t.prototype, "OriginalPriceLabel", void 0), i([P(cc.Sprite)], t.prototype, "CurrentItemIcon", void 0), i([P(cc.Label)], t.prototype, "CurrentPriceLabel", void 0), i([P(cc.Node)], t.prototype, "DiscountNode", void 0), i([P(cc.Label)], t.prototype, "DiscountLabel", void 0), t
            }(cc.Component);
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CrazyDiscountsPack": "CrazyDiscountsPack",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CrazyWheelMessageComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "64467ATq+hMNr8NOJLhPY3G", "CrazyWheelMessageComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), i([s], t)
            }(cc.Component));
        n.default = l, cc._RF.pop()
    }, {}],
    CrazyWheelPanelRateShowComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dc7bcldDFxFNogGVjwfqFyq", "CrazyWheelPanelRateShowComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.label = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n) {
                    this.label.string = "CrazyWheel_BigRewardRateShow".ToUILocale().Fmt(t, n)
                }, i([l(cc.RichText)], t.prototype, "label", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CrazyWheelPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "95896aKPLxD4YM7Al4z3F8e", "CrazyWheelPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/DataCenter"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Components/RpcComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/ScrollNumberComponent"),
            y = e("../Components/CustomProgressBar"),
            g = e("../Components/CrazyWheelRewardsComponent"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../Components/CurrencyBarItem"),
            C = e("../Components/ItemComponent"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Components/NodeJiggling"),
            S = e("./CommonRatePanel"),
            w = e("./ActivityJumpBtnComponent"),
            P = e("../Components/ItemClickComponent"),
            A = e("./WinnerInfoShow"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RuleBtnNode = null, t.Title = null, t.LeftTimeRichText = null, t.ProgressBar = null, t.ProgressBarLabel = null, t.ProgressBarBtnNode = null, t.CircleCenter = null, t.BigRewardNode = null, t.BigRewardItemName = null, t.ToggleNode = null, t.ToggleTips = null, t.SingleSummonNode = null, t.SingleSummonLabel = null, t.TenSummonNode = null, t.TenSummonLabel = null, t.BackNode = null, t.ShopNode = null, t.ShopLabel = null, t.PackNode = null, t.PackLabel = null, t.NumberComponent = null, t.CurrencyBarItemLeft = null, t.CurrencyBarItemRight = null, t.BlockAllEvent = null, t.BoxJump = null, t.BoxEffect = null, t.ShowRateBtnNode = null, t.ShowRateBtnLabel = null, t.LayoutNode = null, t.Pointer = null, t.WinnerInfoShow = null, t.BigRewardNotice = null, t._radius = 390, t._taskModel = {}, t._needSummonAnimation = !0, t._rewards = [], t._rewardsComponents = [], t._materialId_single = 1, t._materialCount_single = 1, t._materialId_ten = 1, t._materialCount_ten = 1, t._tweening = !1, t._showRewardState = !1, t._effectIndex = 0, t._secondScorll = 0, t._tweenValue = {
                        value: 0
                    }, t._tweenCount = 0, t._rewardsMap = {}, t._bigRewardsArray = [], t._bigRewardItemId = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrazyWheelPanel/Components/CrazyWheelRewardsComponent", cc.Prefab), n = this.LoadDynamicAsset("StarTemplePanel/Effect/UI_effect_xinghuizhili_po", sp.SkeletonData), o = this.LoadDynamicAsset(m.BundlePath.ItemComponent, cc.Prefab), r = this.LoadDynamicAsset("CrazyWheelPanel/Components/Message", cc.Prefab), [4, Promise.all([t, n, o, r])];
                                case 1:
                                    return i = s.sent(), this.itemPrefab = i[0], this._boxEffect = i[1], this._messagePrefab = i[3], a = cc.instantiate(i[2]), this._bigRewardItem = a.getComponent(C.ItemComponent), a.getComponent(P.default).enabled = !1, this.BigRewardNode.addChild(a), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.RuleBtnNode.on("click", this.OnClickRuleBtn, this), this.ProgressBarBtnNode.on("click", this.OnClickProgressBarBtn, this), this.ToggleNode.on("toggle", this.OnToggleRuleBtn, this), this.SingleSummonNode.on("click", this.OnClickSingle, this), this.TenSummonNode.on("click", this.OnClickTen, this), this.BackNode.on("click", this.OnClickBack, this), this.ShopNode.on("click", this.OnClickShop, this), this.PackNode.on("click", this.OnClickPack, this), this.ShowRateBtnNode.on("click", this.OnClickRate, this), this.Title.string = "CrazyWheel_Title".ToUILocale(), this.ToggleTips.string = "CrazyWheel_SkipAnimation".ToUILocale(), this.SingleSummonLabel.string = "CrazyWheel_Summon1".ToUILocale(), this.TenSummonLabel.string = "CrazyWheel_Summon10".ToUILocale(), this.ShopLabel.string = "exchange_shop".ToUILocale(), this.PackLabel.string = "LuckyDraw_pack".ToUILocale(), this.ShowRateBtnLabel.string = "ratepanel_tittle".ToUILocale(), this.WinnerInfoShow.Init(this._messagePrefab, function(e, n) {
                        e.getComponent(cc.RichText).string = t.GetNoticeText(n)
                    }, 2, 46)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this), this._activityId = t[0], this._config = u.DataCenter.Instance.ActivityConfigs[this._activityId], this._bigRewardItemId = this._config.CustomPart.ItemId, this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), this._config._Tasks.forEach(function(e) {
                        n._taskModel[e.Id] = u.DataCenter.Instance.GetDataById(c.UserTask_Model, e.Id + 1e4 * n._activityId)
                    }), this._materialId_single = this._config.__CommonSummon[0].ConsumeItem[0].Items[0], this._materialCount_single = this._config.__CommonSummon[0].ConsumeItem[0].Items[1], this._materialId_ten = this._config.__CommonSummon[1].ConsumeItem[0].Items[0], this._materialCount_ten = this._config.__CommonSummon[1].ConsumeItem[0].Items[1];
                    var o = [];
                    this._config.CustomPart.SortList.forEach(function(e, t) {
                        var r = Math.floor(e / 1e3),
                            i = e - 1e3 * r;
                        if (!(i < 0)) {
                            var a = n._config.__RandomLib.findIndex(function(e) {
                                    return e.Id == r
                                }),
                                s = n._config.__RandomLib[a].Rewards[i];
                            0 == s.Items[0] && n._bigRewardsArray.push({
                                Index: t,
                                ThousandPointRatio: s.Items[1],
                                Diff: 0
                            }), 0 != s.Items[0] ? n._rewards.push({
                                ItemId: s.Items[0],
                                Count: s.Items[1]
                            }) : o.push({
                                Percent: s.Items[1] / 10
                            })
                        }
                    }), this._bigRewardsArray.sort(function(e, t) {
                        return e.ThousandPointRatio - t.ThousandPointRatio
                    }), o.sort(function(e, t) {
                        return e.Percent - t.Percent
                    });
                    var r = Math.floor(this._rewards.length / o.length);
                    o.forEach(function(e, t) {
                        var o = t * r + t;
                        n._bigRewardsArray[t].Index = o, n._rewards.splice(o, 0, e)
                    }), this._rewards.forEach(function(e, t) {
                        n._rewardsMap[e.ItemId + "_" + e.Count] = t
                    }), this.ShopNode.active = this._config._Shops && this._config._Shops.length > 0
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._config.Common.JumpIds && this._config.Common.JumpIds.length > 0 ? [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)] : [3, 2];
                                case 1:
                                    for (e = r.sent(), t = 0; t < this._config.Common.JumpIds.length; t++) n = this._config.Common.JumpIds[t], (o = cc.instantiate(e)).parent = this.LayoutNode, o.getComponent(w.default).Init(n, this._config.Common.JumpIcons[t]);
                                    r.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    return a(this, void 0, Promise, function() {
                        var n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this, t), this.IsReDisPlay ? [3, 2] : (this.OnDataChange(), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), this.InitItems(), this.InitValue(), this.InitEffect(), this.RenderCurrency(), n = p.default.Instance.GetItemPathById(this._bigRewardItemId), o = this, [4, l.AssetsManager.Instance.LoadAsset(n, cc.SpriteFrame)]);
                                case 1:
                                    return o._bigRewardSpriteFrame = i.sent(), this.isValid ? (this._bigRewardItem.Init({
                                        ItemId: this._bigRewardItemId
                                    }), this.BigRewardItemName.string = this._bigRewardItemId.ToItemName(), d.RpcComponent.Instance.ServerTime > p.default.Instance.ComputeExtraShowDeadTime(this._config.Common) && (h.UIUtlity.OnNodeGray(this.SingleSummonNode), h.UIUtlity.OnNodeGray(this.TenSummonNode)), [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(this._bigRewardSpriteFrame), [2]);
                                case 2:
                                    1 == this._tweening && this._showRewardState && (this._showRewardState = !1, this.scheduleOnce(function() {
                                        r._tweening = !1
                                    }, 0)), i.label = 3;
                                case 3:
                                    return this._needSummonAnimation = !p.default.GetFunctionSkipState(I.FunctionSkipKey.CrazyWheel), this.ToggleNode.getComponent(cc.Toggle).isChecked = !this._needSummonAnimation, this.BindRedDot(), this.OnDataChange(), this.InitNotice(), [2]
                            }
                        })
                    })
                }, t.prototype.BindRedDot = function() {
                    v.RedDotManager.Instance.BindInstance(this.SingleSummonNode, v.RedDotManager.Instance.InstanceRedDot.CrazyWheelSummonBtn1, {
                        Value1: this._activityId
                    }), v.RedDotManager.Instance.BindInstance(this.TenSummonNode, v.RedDotManager.Instance.InstanceRedDot.CrazyWheelSummonBtn2, {
                        Value1: this._activityId
                    }), v.RedDotManager.Instance.BindInstance(this.PackNode, v.RedDotManager.Instance.InstanceRedDot.CrazyWheelPack, {
                        Value1: this._activityId
                    })
                }, t.prototype.OnDataChange = function() {
                    var e = this;
                    this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), this._config._Tasks.forEach(function(t) {
                        e._taskModel[t.Id] = u.DataCenter.Instance.GetDataById(c.UserTask_Model, t.Id + 1e4 * e._activityId)
                    }), this.RenderProgressBar(), this.RenderCurrency()
                }, t.prototype.OnClickRuleBtn = function() {
                    var e = {
                        name: "CrazyWheel_Title".ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: ["CrazyWheel_ruleContent".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnClickProgressBarBtn = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonTaskPanel.Path, [{
                        Tasks: this._config._Tasks,
                        IsActivity: !0,
                        Title: "explore_times_reward".ToUILocale(),
                        Reddot: this.ProgressBarBtnNode,
                        ActivityId: this._activityId
                    }])
                }, t.prototype.OnToggleRuleBtn = function() {
                    this._needSummonAnimation = !this.ToggleNode.getComponent(cc.Toggle).isChecked, p.default.SetFunctionSkipState(I.FunctionSkipKey.CrazyWheel, !this._needSummonAnimation)
                }, t.prototype.OnClickSingle = function() {
                    this.Summon(1)
                }, t.prototype.OnClickTen = function() {
                    this.Summon(10)
                }, t.prototype.OnClickBack = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickShop = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.ActivityExchangeShopPanel.Path, this._activityId)
                }, t.prototype.OnClickPack = function() {
                    var e = {
                        ActivityId: this._activityId,
                        ActivityGiftPackData: this._config._Packs,
                        Deadline: p.default.Instance.ComputeDeadTime(this._config.Common),
                        BannerPath: this._config.Common.Pictures[0],
                        Title: "LuckyDraw_pack".ToUILocale()
                    };
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonGiftPackPanel.Path, e)
                }, t.prototype.OnClickRate = function() {
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonRatePanel.Path, S.ShowRateType.CrazyWheel, this._config.__ShowChance[0].ShowLib, this._config.__RandomLib)
                }, t.prototype.RefreshDeadLine = function() {
                    var e = p.default.Instance.ComputeExtraShowDeadTime(this._config.Common) - d.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTimeRichText.string = "HeroRisingStarPackagePanel_DeadlineTimeRichText".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(e))
                }, t.prototype.RenderProgressBar = function() {
                    var e = this._config._Tasks[this._config._Tasks.length - 1];
                    this._summonProgress = this._taskModel[e.Id].Progress, this._summonNeedProgress = void 0;
                    for (var t = 0; t < this._config._Tasks.length; t++) {
                        var n = this._config._Tasks[t];
                        if (0 == this._taskModel[n.Id].IsCompleted) {
                            this._summonNeedProgress = n.TotalCount;
                            break
                        }
                    }
                    null == this._summonNeedProgress && (this._summonNeedProgress = e.TotalCount), this.ProgressBar.progress = this._summonProgress / this._summonNeedProgress, this.ProgressBarLabel.string = this._summonProgress + "/" + this._summonNeedProgress, this.ProgressBar.progress >= 1 ? (this.BoxJump.Enable(), this.BoxEffect.skeletonData || (this.BoxEffect.skeletonData = this._boxEffect, this.BoxEffect.setAnimation(0, "UI_effect_xinghuizhili_po", !0)), this.BoxEffect.node.active = !0) : (this.BoxJump.Disable(), this.BoxEffect.node.active = !1)
                }, t.prototype.InitItems = function() {
                    var e = this,
                        t = -360 / this._rewards.length;
                    this._rewards.forEach(function(n, o) {
                        var r = new cc.Node,
                            i = cc.instantiate(e.itemPrefab);
                        r.addChild(i), e.CircleCenter.addChild(r), i.y = e._radius, r.angle = o * t, i.angle = -r.angle;
                        var a = i.getComponent(g.default);
                        e._rewardsComponents.push(a);
                        var s = null == n.Percent ? g.CrazyWheelRewardType.Item : g.CrazyWheelRewardType.BigReward;
                        a.Set(s, n)
                    })
                }, t.prototype.InitValue = function() {
                    var e = this;
                    this.NumberComponent.Init(0);
                    var t = new c.Req_Activity_CrazyWheelEnter;
                    t.ActivityId = this._activityId, d.RpcComponent.Instance.Call(t, function(t) {
                        e._value = t.Count, e.SetValue()
                    })
                }, t.prototype.InitEffect = function() {
                    var e = this;
                    this.EffectEverySecond(), this.schedule(function() {
                        e.EffectEverySecond()
                    }, 1)
                }, t.prototype.RenderCurrency = function() {
                    this.HaveFreeCount() ? this.SingleSummonLabel.string = "shop_buyFree".ToUILocale() : this.SingleSummonLabel.string = "CrazyWheel_Summon1".ToUILocale(), this.CurrencyBarItemLeft.Init(this._materialId_single, !1, void 0, this._materialCount_single), this.CurrencyBarItemRight.Init(this._materialId_single, !1, void 0, this._materialCount_ten)
                }, t.prototype.EffectEverySecond = function() {
                    if (!this._tweening) {
                        this._secondScorll++;
                        var e = this._secondScorll % this._rewards.length;
                        this.SetEffect(e)
                    }
                }, t.prototype.SetEffect = function(e) {
                    var t = -360 / this._rewards.length;
                    this.Pointer.angle = e * t, this._rewardsComponents[this._effectIndex].StopEffect(), this._rewardsComponents[e].PlayEffect(), this._effectIndex = e, this._secondScorll = this._effectIndex
                }, t.prototype.SummonTween = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.BlockAllEvent.active = !0, this._tweening = !0, t = this._rewards.length, n = 2, this._spinCount = 0, this._spinMaxCount = 3 * t, [4, new Promise(function(e) {
                                        r._spinWheel = r.SpinWheel.bind(r, n, e), r.schedule(r._spinWheel, .3 / (t / 2))
                                    })];
                                case 1:
                                    return i.sent(), this._spinCount = 0, [4, new Promise(function(e) {
                                        r._spinWheel = r.SpinWheel.bind(r, n, e), r.schedule(r._spinWheel, .6 / (t / 2))
                                    })];
                                case 2:
                                    return i.sent(), n = 1, this._spinCount = 0, o = (e - this._effectIndex + t) % t, this._spinMaxCount = o < t / 2 ? t + o : o, [4, new Promise(function(e) {
                                        r._spinWheel = r.SpinWheel.bind(r, n, e), r.schedule(r._spinWheel, 1.8 / t)
                                    })];
                                case 3:
                                    return i.sent(), [4, new Promise(function(e) {
                                        r.scheduleOnce(function() {
                                            e(!0)
                                        }, .1)
                                    })];
                                case 4:
                                    return i.sent(), this._blinkCount = 0, this._blinkMaxCount = 6, [4, new Promise(function(e) {
                                        r._blinkReward = r.BlinkReward.bind(r, e), r.schedule(r._blinkReward, .1)
                                    })];
                                case 5:
                                    return i.sent(), this.BlockAllEvent.active = !1, [2]
                            }
                        })
                    })
                }, t.prototype.SpinWheel = function(e, t) {
                    var n = (this._effectIndex + e) % this._rewards.length;
                    this.SetEffect(n), this._spinCount += e, this._spinCount >= this._spinMaxCount && (this.unschedule(this._spinWheel), t(!0))
                }, t.prototype.BlinkReward = function(e) {
                    this._blinkCount++, this._blinkCount % 2 ? this._rewardsComponents[this._effectIndex].StopEffect() : this._rewardsComponents[this._effectIndex].PlayEffect(), this.Pointer.active = !this.Pointer.active, this._blinkCount >= this._blinkMaxCount && (this.unschedule(this._blinkReward), e(!0))
                }, t.prototype.SetValue = function() {
                    this.NumberComponent.Set(this._value)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), l.AssetsManager.Instance.UnloadAsset(this._bigRewardSpriteFrame)
                }, t.prototype.Summon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, c, f = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._config.CustomPart.DoNotCheck || p.default.Instance.IsCanGetNewHero(1) ? this.HaveFreeCount() && 1 == e || !(1 == e && this._materialCount_single > u.DataCenter.Instance.GetItemCount(this._materialId_single) || 10 == e && this._materialCount_ten > u.DataCenter.Instance.GetItemCount(this._materialId_ten)) ? d.RpcComponent.Instance.ServerTime > p.default.Instance.ComputeDeadTime(this._config.Common) ? (h.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()), [2]) : [4, this.DoSummonCall(e)] : (1 == e ? h.UIUtlity.ShowFloatingHint("ChaosSummon_TicketNotEngough".ToUILocale().Fmt(this._materialId_single.ToItemName())) : h.UIUtlity.ShowFloatingHint("ChaosSummon_TicketNotEngough".ToUILocale().Fmt(this._materialId_ten.ToItemName())), this.OnClickPack(), [2]) : (t = p.default.Instance.GetHeroCountLimit(), n = "Summonbox_heroLimit".ToUILocale().Fmt(t), h.UIUtlity.ShowHintPanel("", n, "", null, "go_to_treat".ToUILocale(), function() {
                                        l.UIManager.Instance.ShowUIPanel(m.PanelConfig.HeroPalacePanel.Path, 1)
                                    }), [2]);
                                case 1:
                                    if (o = s.sent(), !this.isValid) return [2];
                                    if (!this._needSummonAnimation) return [3, 3];
                                    if (r = 0, 0 == (i = o.Items[o.Items.length - 1].Items)[0]) {
                                        for (a = 0; a < this._bigRewardsArray.length; a++)
                                            if (i[1] == this._bigRewardsArray[a].ThousandPointRatio) {
                                                r = this._bigRewardsArray[a].Index;
                                                break
                                            }
                                    } else r = this._rewardsMap[i[0] + "_" + i[1]];
                                    return r < 0 && (r = 0), [4, this.SummonTween(r)];
                                case 2:
                                    s.sent(), s.label = 3;
                                case 3:
                                    return this.isValid ? (c = o.Items.map(function(e) {
                                        if (0 == e.Items[0]) {
                                            var t = e.Items[1] / 10;
                                            return {
                                                ItemId: f._bigRewardItemId,
                                                Count: e.Items[4],
                                                DiscountValue: t
                                            }
                                        }
                                        return {
                                            ItemId: e.Items[0],
                                            Count: e.Items[1]
                                        }
                                    }), h.UIUtlity.ShwDisplayRewardPanel(c, void 0, void 0, !0), this._showRewardState = !0, this.NumberComponent.Init(o.ExtraParam[0].Items[0]), this._value = o.ExtraParam[0].Items[1], this.SetValue(), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.DoSummonCall = function(e) {
                    var t = this,
                        n = new c.Req_Activity_CommonSummon;
                    if (1 == e) n.Type = this._config.__CommonSummon[0].Id;
                    else {
                        if (10 != e) return;
                        n.Type = this._config.__CommonSummon[1].Id
                    }
                    return n.ActivityId = this._activityId, this.HaveFreeCount() && 1 == e ? n.ItemId = 0 : n.ItemId = this._materialId_single, new Promise(function(e) {
                        d.RpcComponent.Instance.Call(n, function(n) {
                            t.OnDataChange(), e(n)
                        })
                    })
                }, t.prototype.HaveFreeCount = function() {
                    if (this._model && this._model.Summons && this._model.Summons[this._config.__SummonType[0].Id]) {
                        if (this._model.Summons[this._config.__SummonType[0].Id].FreeCount) return !0
                    } else if (this._config.__SummonType[0].StartFreeCount) return !0;
                    return !1
                }, t.prototype.InitNotice = function() {
                    var e = this,
                        t = new c.Req_Notice_GetByType;
                    t.Type = I.NoticeType.ActivitySummon, t.ActivityId = this._activityId, d.RpcComponent.Instance.Call(t, function(t) {
                        if (t.Notice && (t.Notice.Normal && t.Notice.Normal.length > 0 && e.WinnerInfoShow.Render(t.Notice.Normal), t.Notice.Advance && t.Notice.Advance.length > 0)) {
                            var n = t.Notice.Advance[0];
                            e.BigRewardNotice.string = e.GetNoticeText(n)
                        }
                    })
                }, t.prototype.GetNoticeText = function(e) {
                    var t = e.StringParams[0],
                        n = e.IntParams[0].ToItemName(),
                        o = e.IntParams[1].toString();
                    return e.IntParams[2] && (o = o + "(" + e.IntParams[2] / 10 + "%)"), "<outline color=#202434 width=3><color=#6eeea7>" + t + "</c> " + "CrazyWheel_get".ToUILocale() + " <color=#f7d349>" + n + "</c> <color=#fbe283>x" + o + "</c></outline>"
                }, i([L(cc.Node)], t.prototype, "RuleBtnNode", void 0), i([L(cc.Label)], t.prototype, "Title", void 0), i([L(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([L(y.default)], t.prototype, "ProgressBar", void 0), i([L(cc.Label)], t.prototype, "ProgressBarLabel", void 0), i([L(cc.Node)], t.prototype, "ProgressBarBtnNode", void 0), i([L(cc.Node)], t.prototype, "CircleCenter", void 0), i([L(cc.Node)], t.prototype, "BigRewardNode", void 0), i([L(cc.Label)], t.prototype, "BigRewardItemName", void 0), i([L(cc.Node)], t.prototype, "ToggleNode", void 0), i([L(cc.Label)], t.prototype, "ToggleTips", void 0), i([L(cc.Node)], t.prototype, "SingleSummonNode", void 0), i([L(cc.Label)], t.prototype, "SingleSummonLabel", void 0), i([L(cc.Node)], t.prototype, "TenSummonNode", void 0), i([L(cc.Label)], t.prototype, "TenSummonLabel", void 0), i([L(cc.Node)], t.prototype, "BackNode", void 0), i([L(cc.Node)], t.prototype, "ShopNode", void 0), i([L(cc.Label)], t.prototype, "ShopLabel", void 0), i([L(cc.Node)], t.prototype, "PackNode", void 0), i([L(cc.Label)], t.prototype, "PackLabel", void 0), i([L(f.default)], t.prototype, "NumberComponent", void 0), i([L(_.default)], t.prototype, "CurrencyBarItemLeft", void 0), i([L(_.default)], t.prototype, "CurrencyBarItemRight", void 0), i([L(cc.Node)], t.prototype, "BlockAllEvent", void 0), i([L(b.default)], t.prototype, "BoxJump", void 0), i([L(sp.Skeleton)], t.prototype, "BoxEffect", void 0), i([L(cc.Node)], t.prototype, "ShowRateBtnNode", void 0), i([L(cc.Label)], t.prototype, "ShowRateBtnLabel", void 0), i([L(cc.Node)], t.prototype, "LayoutNode", void 0), i([L(cc.Node)], t.prototype, "Pointer", void 0), i([L(A.default)], t.prototype, "WinnerInfoShow", void 0), i([L(cc.RichText)], t.prototype, "BigRewardNotice", void 0), i([R], t)
            }(l.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CrazyWheelRewardsComponent": "CrazyWheelRewardsComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/NodeJiggling": "NodeJiggling",
        "../Components/ScrollNumberComponent": "ScrollNumberComponent",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent",
        "./CommonRatePanel": "CommonRatePanel",
        "./WinnerInfoShow": "WinnerInfoShow"
    }],
    CrazyWheelRewardsComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2a370wSbNVNN4C5yQX70Pt/", "CrazyWheelRewardsComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CrazyWheelRewardType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./ItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property;
        (function(e) {
            e[e.Item = 0] = "Item", e[e.BigReward = 1] = "BigReward"
        })(l = n.CrazyWheelRewardType || (n.CrazyWheelRewardType = {}));
        var m = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ItemContainer = null, t.Effect = null, t.BigRewardsEffect = null, t.BigRewardsLabel = null, t.BigRewardsBack = null, t._unloadAssets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), this.node.on("click", this.OnClickSelf, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), this.node.off("click", this.OnClickSelf, this)
            }, t.prototype.Set = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return this._data = t, this._type = e, e != l.Item ? [3, 3] : (this._effectNode = this.Effect, this.BigRewardsBack.active = !1, this.ItemContainer.parent.active = !0, this._itemPrefab ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab)]);
                            case 1:
                                n = a.sent(), this.isValid || c.AssetsManager.Instance.UnloadAsset(n), this._unloadAssets.push(n), this._itemPrefab = n, a.label = 2;
                            case 2:
                                return o = cc.instantiate(this._itemPrefab), this.ItemContainer.addChild(o), (r = o.getComponent(h.ItemComponent)).Init(this._data), r.SetCountFontSize(26, 110), [3, 4];
                            case 3:
                                switch (this._effectNode = this.BigRewardsEffect, this.ItemContainer.parent.active = !1, this.BigRewardsBack.active = !0, this.BigRewardsLabel.string = this._data.Percent + "%", i = this.node.angle, this.BigRewardsBack.angle = -i, this.BigRewardsEffect.angle = -i, i) {
                                    case 90:
                                        this.BigRewardsLabel.node.setPosition(10, 0);
                                        break;
                                    case 180:
                                        this.BigRewardsLabel.node.setPosition(0, -26);
                                        break;
                                    case 270:
                                        this.BigRewardsLabel.node.setPosition(-10, 0)
                                }
                                a.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.PlayEffect = function() {
                this._effectNode.active = !0
            }, t.prototype.StopEffect = function() {
                this._effectNode.active = !1
            }, t.prototype.onDestroy = function() {
                this._unloadAssets.forEach(function(e) {
                    e && c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, t.prototype.OnClickItem = function(e, t) {
                this.isValid && -1 != this.ItemContainer.children.indexOf(t) && d.UIUtlity.ShowItemTip(this._data.ItemId, t)
            }, t.prototype.OnClickSelf = function() {
                this._type == l.BigReward && d.UIUtlity.ShowFloatingHint("CrazyWheel_ClickBigRewardTip".ToUILocale().Fmt(this._data.Percent))
            }, i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Node)], t.prototype, "Effect", void 0), i([g(cc.Node)], t.prototype, "BigRewardsEffect", void 0), i([g(cc.Label)], t.prototype, "BigRewardsLabel", void 0), i([g(cc.Node)], t.prototype, "BigRewardsBack", void 0), i([y], t)
        }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    CrossServerAllianceDifficultSelectItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7b011dbIIlNyavIxq0+zaYK", "CrossServerAllianceDifficultSelectItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../RedDot/RedDotManager"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Difficult = null, t.BottomStar = [], t.TopStar = [], t.Score = null, t.ChallengeButton = null, t.ChallengeLabel = null, t._index = 0, t._rank = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ChallengeButton.node.on("click", this.clickChallengeButton, this), this.ChallengeLabel.string = "allianceWar_challeneg".ToUILocale()
                }, t.prototype.onDisable = function() {
                    this.ChallengeButton.node.off("click", this.clickChallengeButton, this)
                }, t.prototype.InitData = function(e, t) {
                    this._index = e, this._rank = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetDifficult(), this.SetStars(), this.SetScore(), this.SetRedDot()
                }, t.prototype.SetDifficult = function() {
                    var e = l.ConfigDataComponent.Instance.GetConfigById(s.LevelParam_Config, c.LevelParamType.AllianceChallengeStarBonus).Data[this._index];
                    this.Difficult.string = "allianceWar_difficult".ToUILocale().Fmt(Math.round(100 * e / 1e3))
                }, t.prototype.SetStars = function() {
                    var e = this;
                    this.TopStar.forEach(function(t, n) {
                        t.active = n < e._index + 1
                    });
                    for (var t = this.BottomStar.length - 1; t >= 0; t--) this.BottomStar[t].active = t >= this._index + 1
                }, t.prototype.SetScore = function() {
                    var e = l.ConfigDataComponent.Instance.GetConfigById(s.AllianceChallengeScore_Config, this._rank);
                    if (e) {
                        var t = e.Score[this._index];
                        this.Score.string = "allianceWar_get_score".ToUILocale().Fmt(t)
                    }
                }, t.prototype.SetRedDot = function() {
                    var e;
                    switch (this._index) {
                        case 0:
                            e = p.RedDotManager.Instance.RedDot.AllianceChalleneg1BtnNode;
                            break;
                        case 1:
                            e = p.RedDotManager.Instance.RedDot.AllianceChalleneg2BtnNode;
                            break;
                        case 2:
                            e = p.RedDotManager.Instance.RedDot.AllianceChalleneg3BtnNode
                    }
                    p.RedDotManager.Instance.Bind(this.ChallengeButton.node, e)
                }, t.prototype.clickChallengeButton = function() {
                    a.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CLICK_ALLIANCE_CHANLLENGE, this._index)
                }, i([f(cc.Label)], t.prototype, "Difficult", void 0), i([f(cc.Node)], t.prototype, "BottomStar", void 0), i([f(cc.Node)], t.prototype, "TopStar", void 0), i([f(cc.Label)], t.prototype, "Score", void 0), i([f(cc.Button)], t.prototype, "ChallengeButton", void 0), i([f(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager"
    }],
    CrossServerAllianceEnemyMemberPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "61f32tVMkhC3Kxek+0Nn/9I", "CrossServerAllianceEnemyMemberPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../Consts/Consts"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Components/HeadComponent"),
            _ = e("./CrossServerAllianceDifficultSelectItem"),
            C = e("./AllianceBaseMainPanel"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../Components/Components"),
            S = e("./CrossServerAllianceWarPanel"),
            w = e("../../RedDot/RedDotManager"),
            P = e("../../../Util/TimeUtil"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.HeadNode = null, t.Name = null, t.DefTimes = null, t.BottomStar = [], t.TopStar = [], t.WeakenButton = null, t.WeakenLabel = null, t.ReportButton = null, t.ReportLabel = null, t.EnemyFormation = null, t.Power = null, t.FormationNode = null, t.DifficultSelectNode = null, t.DescLabel = null, t.DifficultDesc = null, t.DifficultNodes = [], t.UpNode = null, t.CurLv = null, t.NextLv = null, t.AttrIcon = [], t.AttrName = [], t.AttrNextValue = [], t.UpDesc = null, t.Score = null, t.BeatButton = null, t.BeatLabel = null, t.FormationBg = null, t._itemPrefab = null, t._headPrefab = null, t._itemNodes = [], t._playerInfo = null, t._headNode = null, t._starNum = 0, t._formation = null, t._defTimes = 0, t._rank = 0, t._bonus = 0, t._data = null, t._targetUid = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_CLICK_ALLIANCE_CHANLLENGE, this.OnClickChallenge, this), l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_CLICK_ALLIANCE_CHANLLENGE, this.OnClickChallenge, this), l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.HeadComponent, cc.Prefab), this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        t._headPrefab = e[0], t._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "allianceWar_enemy_member".ToUILocale(), this.WeakenLabel.string = "allianceWar_enemy_weaken".ToUILocale(), this.ReportLabel.string = "allianceWar_look_report".ToUILocale(), this.EnemyFormation.string = "allianceWar_enemy_def_formation".ToUILocale(), this.DifficultDesc.string = "allianceWar_score_get_more".ToUILocale(), this.UpDesc.string = "allianceWar_bead_up_self".ToUILocale(), this.BeatLabel.string = "allianceWar_beat".ToUILocale(), this.WeakenButton.node.on("click", this.ClickWeakenButton, this), this.ReportButton.node.on("click", this.ClickReportButton, this), this.BeatButton.node.on("click", this.ClickBeatButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._formation = t[0], this._rank = t[1], this._defTimes = t[2], this._starNum = t[3], this._data = t[4];
                    var n = P.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime),
                        o = this._data.MyAlliance.Data[n];
                    o && (this._bonus = o.Bonus);
                    var r = this._data.EnemyAlliance.Data[n];
                    if (r && r.Player[this._rank]) {
                        var i = r.Player[this._rank].Items[0];
                        i > 0 && (this._playerInfo = this._data.TargetInfo.find(function(e) {
                            return e.Uid == i
                        }))
                    }
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetPlayerInfo(), this.SetFormation(), this._starNum > 0 ? this.SetDifficultNode() : this.SetUpNode(), w.RedDotManager.Instance.Bind(this.BeatButton.node, w.RedDotManager.Instance.RedDot.AllianceBeatBtnNode)
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this.DifficultSelectNode.active = this._starNum > 0, this.UpNode.active = 0 == this._starNum, this.FormationBg.height = this._starNum > 0 ? 265 : 495, this.DescLabel.string = this._starNum > 0 ? "allianceWar_select_difficult".ToUILocale() : "allianceWar_attr_up".ToUILocale()
                }, t.prototype.SetPlayerInfo = function() {
                    var e = this,
                        t = 0,
                        n = 0,
                        o = "",
                        r = 0,
                        i = "";
                    if (this._playerInfo) t = this._playerInfo.HeadIcon, n = this._playerInfo.HeadFrame, o = this._playerInfo.Name, r = this._playerInfo.Level, i = this._playerInfo.Country;
                    else {
                        var a = p.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, f.LevelParamType.AllianceChallengeRobot),
                            s = a.Data[3],
                            l = p.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, s);
                        r = a.Data[0], t = a.Data[1], n = a.Data[2], l && (o = l.Id.ToMapName())
                    }
                    if (this.DefTimes.string = "allianceWar_def_times".ToUILocale().Fmt(this._defTimes), !this._headNode) {
                        var c = cc.instantiate(this._headPrefab);
                        c.parent = this.HeadNode, this._headNode = c
                    }
                    var d = this._headNode.getComponent(I.default);
                    d.SetUI(t, n), d.SetLevel(r), d.SetCountry(i), this.Name.string = o, this.TopStar.forEach(function(t, n) {
                        t.active = n < e._starNum
                    });
                    for (var h = this.BottomStar.length - 1; h >= 0; h--) this.BottomStar[h].active = h >= this._starNum
                }, t.prototype.SetFormation = function() {
                    var e = this;
                    if (this._playerInfo && this._formation && this._formation.Heros.length > 0) {
                        var t = 0,
                            n = [];
                        this._formation.Heros.forEach(function(e) {
                            e && e.Sid > 0 && n.push(e)
                        }), n.forEach(function(n, o) {
                            if (!e._itemNodes[o]) {
                                var r = cc.instantiate(e._itemPrefab);
                                r.parent = e.FormationNode, e._itemNodes[o] = r
                            }
                            t += n.Power;
                            var i = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, n.HeroId);
                            e._itemNodes[o].active = !0, e._itemNodes[o].name = n.Sid.toString(), e._itemNodes[o].getComponent(y.ItemComponent).Init({
                                ItemId: n.HeroId,
                                StarLevel: n.StarLevel,
                                ElementType: i.ElementType,
                                Level: n.Level,
                                TempleLevel: n.TempleLevel
                            }, y.ItemComponentType.HeroInfo)
                        }), this.Power.string = t.toString()
                    } else {
                        var o = p.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, f.LevelParamType.AllianceChallengeRobot).Data[3],
                            r = p.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, o),
                            i = r.BattlePower;
                        r.Heros.forEach(function(t, n) {
                            var o = t.Items[1];
                            if (!e._itemNodes[n]) {
                                var i = cc.instantiate(e._itemPrefab);
                                i.parent = e.FormationNode, e._itemNodes[n] = i
                            }
                            var a = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, o);
                            e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(y.ItemComponent).Init({
                                ItemId: o,
                                StarLevel: r.Strength[0],
                                ElementType: a.ElementType,
                                Level: r.Strength[1]
                            }, y.ItemComponentType.HeroInfo)
                        }), this.Power.string = i.toString()
                    }
                }, t.prototype.SetDifficultNode = function() {
                    var e = this;
                    this.DifficultNodes.forEach(function(t, n) {
                        t.getComponent(_.default).InitData(n, e._rank + 1)
                    })
                }, t.prototype.SetUpNode = function() {
                    var e = this;
                    this.CurLv.string = "Lv.{0}".Fmt(this._bonus), this.NextLv.string = "Lv.{0}".Fmt(this._bonus + 1), p.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, f.LevelParamType.AllianceChallengeBeatBonus).Data2.forEach(function(t, n) {
                        if (e.AttrIcon[n]) {
                            var o = g.default.GetHeroAttribute(t.Items[0], t.Items[1] * e._bonus),
                                r = g.default.GetHeroAttribute(t.Items[0], t.Items[1] * (e._bonus + 1));
                            e.AttrIcon[n].spriteFrame = o.Icon, e.AttrName[n].string = o.Name, e.AttrNextValue[n].string = "+{0}".Fmt(r.Value)
                        }
                    });
                    var t = p.ConfigDataComponent.Instance.GetConfigById(u.AllianceChallengeScore_Config, this._rank + 1);
                    if (t) {
                        var n = t.Score[3];
                        this.Score.string = "allianceWar_get_score".ToUILocale().Fmt(n)
                    }
                }, t.prototype.ClickWeakenButton = function() {
                    var e = this,
                        t = P.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime),
                        n = this._data.EnemyAlliance.Data[t];
                    if (n) {
                        var o = [],
                            r = [];
                        if (n.Player.forEach(function(e) {
                                e.Items[0] && o.push(e.Items[0])
                            }), o.length > 0) {
                            var i = new c.Req_Player_GetPlayerFormations;
                            i.Uids = o, i.Id = f.FormationIdType.AllianceChallengeDefend2, p.RpcComponent.Instance.Call(i, function(t) {
                                r = t.Formations, l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CrossServerAllianceLogisticsListPanel.Path, 1, r, n.Player, e._data.TargetInfo)
                            })
                        } else l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CrossServerAllianceLogisticsListPanel.Path, 1, r, n.Player, this._data.TargetInfo)
                    }
                }, t.prototype.ClickReportButton = function() {
                    var e = this,
                        t = new c.Req_Alliance_ChallengeDailyReports;
                    p.RpcComponent.Instance.Call(t, function(t) {
                        l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CrossServerAllianceReportPanel.Path, e._data, t.Reports)
                    })
                }, t.prototype.ClickBeatButton = function() {
                    var e = this;
                    if (2 != C.default.GetCrossServerAllianceTimeType()) return v.UIUtlity.ShowFloatingHint("allianceWar_not_in_time".ToUILocale());
                    if (this._starNum > 0) return v.UIUtlity.ShowFloatingHint("allianceWar_cant_beat".ToUILocale());
                    var t = b.DataCenter.Instance.GetIntData(d.UserDataKey.AllianceChallengeStatus),
                        n = g.default.GetBit(t, 2),
                        o = g.default.GetBit(t, 3),
                        r = g.default.GetBit(t, 4);
                    if (n && o || r) return v.UIUtlity.ShowFloatingHint("allianceWar_atk_times_not_enough".ToUILocale());
                    var i = p.DataCenter.Instance.GetDataById(c.UserFormation_Model, f.FormationIdType.AllianceChallengeAttack1);
                    if (g.default.CheckFormationIsEmpty(f.FormationIdType.AllianceChallengeAttack1)) return v.UIUtlity.ShowFloatingHint("allianceWar_set_atk_team".ToUILocale());
                    if (this._playerInfo && this._playerInfo.Uid > 0 && this._playerInfo.Uid == b.DataCenter.Instance.Uid) return v.UIUtlity.ShowFloatingHint("allianceWar_cant_challenge_self".ToUILocale());
                    var a = new c.Req_Alliance_Challenge;
                    a.Index = this._rank, a.Type = f.AllianceChallengeType.Beat, a.Formations = [i], p.RpcComponent.Instance.Call(a, function(t) {
                        var n = [t.MyScore, t.EnemyScore];
                        l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_UPDATE_ALLIANCE_DATA, n), e.OnUpdateData(), v.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    })
                }, t.prototype.OnClickChallenge = function(e) {
                    var t = this;
                    if (2 != C.default.GetCrossServerAllianceTimeType()) return v.UIUtlity.ShowFloatingHint("allianceWar_not_in_time".ToUILocale());
                    if (this._starNum <= 0) return v.UIUtlity.ShowFloatingHint("allianceWar_cant_challeneg".ToUILocale());
                    var n = b.DataCenter.Instance.GetIntData(d.UserDataKey.AllianceChallengeStatus),
                        o = g.default.GetBit(n, 2),
                        r = g.default.GetBit(n, 3),
                        i = g.default.GetBit(n, 4);
                    if (o && r || i) return v.UIUtlity.ShowFloatingHint("allianceWar_atk_times_not_enough".ToUILocale());
                    var a = 0;
                    o || i || (a = 1);
                    var s = p.DataCenter.Instance.GetDataById(c.UserFormation_Model, f.FormationIdType.AllianceChallengeAttack1);
                    return g.default.CheckFormationIsEmpty(f.FormationIdType.AllianceChallengeAttack1) ? v.UIUtlity.ShowFloatingHint("allianceWar_set_atk_team".ToUILocale()) : this._playerInfo && this._playerInfo.Uid > 0 && this._playerInfo.Uid == b.DataCenter.Instance.Uid ? v.UIUtlity.ShowFloatingHint("allianceWar_cant_challenge_self".ToUILocale()) : void v.UIUtlity.ShowHintPanel("", "allianceWar_check_challenge".ToUILocale().Fmt(e + 1, a), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        var n = new c.Req_Alliance_Challenge;
                        n.Index = t._rank, n.Type = f.AllianceChallengeType.Main, n.Star = e + 1, n.Formations = [s], p.RpcComponent.Instance.Call(n, t.RequestSuccess.bind(t), t.RequestFail.bind(t))
                    })
                }, t.prototype.RequestSuccess = function(e) {
                    var t = [e.MyScore, e.EnemyScore];
                    l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_UPDATE_ALLIANCE_DATA, t), this.OnUpdateData(), S.default.BattleInfo = e, S.default.StartBattle(!1)
                }, t.prototype.RequestFail = function(e) {
                    if (e == d.ErrCode.AllianceChallengeParamError || e == d.ErrCode.AllianceChallengeUserLocked || e == d.ErrCode.AllianceChallengeTodayChallenged || e == d.ErrCode.AllianceChallengeTodayRaided) {
                        var t = new c.Req_Alliance_ChallengeEnter;
                        p.RpcComponent.Instance.Call(t, function(e) {
                            e && l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_UPDATE_ALLIANCE_ALL_DATA, e)
                        })
                    }
                }, t.prototype.OnUpdateData = function() {
                    var e = P.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime),
                        t = this._data.EnemyAlliance.Data[e];
                    t && (this._defTimes = t.Player[this._rank].Items[3], this._starNum = t.Player[this._rank].Items[1]);
                    var n = this._data.MyAlliance.Data[e];
                    n && (this._bonus = n.Bonus)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.FormationNode.children.indexOf(t) && (this._playerInfo && this._playerInfo.Uid ? l.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroDetailPanel.Path, e, this._playerInfo.Uid) : v.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale()))
                }, i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.Node)], t.prototype, "HeadNode", void 0), i([R(cc.Label)], t.prototype, "Name", void 0), i([R(cc.RichText)], t.prototype, "DefTimes", void 0), i([R(cc.Node)], t.prototype, "BottomStar", void 0), i([R(cc.Node)], t.prototype, "TopStar", void 0), i([R(cc.Button)], t.prototype, "WeakenButton", void 0), i([R(cc.Label)], t.prototype, "WeakenLabel", void 0), i([R(cc.Button)], t.prototype, "ReportButton", void 0), i([R(cc.Label)], t.prototype, "ReportLabel", void 0), i([R(cc.Label)], t.prototype, "EnemyFormation", void 0), i([R(cc.Label)], t.prototype, "Power", void 0), i([R(cc.Node)], t.prototype, "FormationNode", void 0), i([R(cc.Node)], t.prototype, "DifficultSelectNode", void 0), i([R(cc.Label)], t.prototype, "DescLabel", void 0), i([R(cc.Label)], t.prototype, "DifficultDesc", void 0), i([R(cc.Node)], t.prototype, "DifficultNodes", void 0), i([R(cc.Node)], t.prototype, "UpNode", void 0), i([R(cc.Label)], t.prototype, "CurLv", void 0), i([R(cc.Label)], t.prototype, "NextLv", void 0), i([R(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([R(cc.Label)], t.prototype, "AttrName", void 0), i([R(cc.Label)], t.prototype, "AttrNextValue", void 0), i([R(cc.Label)], t.prototype, "UpDesc", void 0), i([R(cc.Label)], t.prototype, "Score", void 0), i([R(cc.Button)], t.prototype, "BeatButton", void 0), i([R(cc.Label)], t.prototype, "BeatLabel", void 0), i([R(cc.Node)], t.prototype, "FormationBg", void 0), i([T], t)
            }(l.BaseUIPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel",
        "./CrossServerAllianceDifficultSelectItem": "CrossServerAllianceDifficultSelectItem",
        "./CrossServerAllianceWarPanel": "CrossServerAllianceWarPanel"
    }],
    CrossServerAllianceFightInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d7f6a0L+pNBo636Iy5Ib9Qa", "CrossServerAllianceFightInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../Consts/Consts"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CustomToggle"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../../Util/TimeUtil"),
            I = e("../../Components/Components"),
            _ = e("./CrossServerAlliancePlatformItem"),
            C = e("./AllianceBaseMainPanel"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../Consts/Consts"),
            S = e("./CrossServerAllianceMemberPanel"),
            w = e("../../Auxiliary/EventKeys"),
            P = e("../../RedDot/RedDotManager"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.Self = 0] = "Self", e[e.Enemy = 1] = "Enemy"
        })(l || (l = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Bg = null, t.Bgs = [], t.Title = null, t.RuleButton = null, t.BuffButton = null, t.DescTime = null, t.Time = null, t.MyStarNum = null, t.EnemyStarNum = null, t.RewardButton = null, t.RewardLabel = null, t.RankButton = null, t.RankLabel = null, t.MidNode = null, t.AttackRichText = null, t.SpyRichText = null, t.InfoLabel = null, t.FlagBg = null, t.Flag = null, t.AllianceName = null, t.ZoneDesc = null, t.Zone = null, t.PresidentDesc = null, t.President = null, t.ReportButton = null, t.ReportLabel = null, t.PersonalRankButton = null, t.PersonalRankLabel = null, t.LogisticsButton = null, t.LogisticsLabel = null, t.DefenseButton = null, t.DefenseLabel = null, t.AttackButton = null, t.AttackLabel = null, t.Toggles = [], t.ReturnButton = null, t.BuffNode = null, t.MaskButton = null, t.BuffTitles = [], t.BuffContents = [], t.InfoBg = null, t.InfoBorder = null, t.MaskBg = null, t._cellPrefab = null, t._selectIndex = 0, t._isReDisplay = !1, t._cellNodes = [], t._screenMaxOffset = 0, t._type = 0, t._data = null, t._allianceAltas = null, t._selfScoreData = null, t._enemyScoreData = null, t._allianceLabel = [], t._altas = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.Bg.node.on(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this.Bg.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), c.Game.EventDispatcher.On(w.EventKeys.EVENT_UPDATE_ALLIANCE_DATA, this.OnUpdateData, this), c.Game.EventDispatcher.On(w.EventKeys.EVENT_UPDATE_ALLIANCE_ALL_DATA, this.OnUpdateAllData, this)
            }, t.prototype.onDisable = function() {
                this.Bg.node.off(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove), this.Bg.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd), c.Game.EventDispatcher.Off(w.EventKeys.EVENT_UPDATE_ALLIANCE_DATA, this.OnUpdateData, this), c.Game.EventDispatcher.Off(w.EventKeys.EVENT_UPDATE_ALLIANCE_ALL_DATA, this.OnUpdateAllData, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("CrossServerAllianceWarPanel/SubItems/CrossServerAlliancePlatformItem", cc.Prefab), this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas), this.LoadDynamicAsset("CrossServerAllianceWarPanel/PNG/CrossServerAllianceWar", cc.SpriteAtlas)]).then(function(e) {
                                    t._cellPrefab = e[0], t._allianceAltas = e[1], t._altas = e[2]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.RewardLabel.string = "reward".ToUILocale(), this.RankLabel.string = "allianceWar_alliance_rank".ToUILocale(), this.ReportLabel.string = "allianceWar_report".ToUILocale(), this.PersonalRankLabel.string = "allianceWar_personal_rank".ToUILocale(), this.DefenseLabel.string = "allianceWar_def_formation".ToUILocale(), this.AttackLabel.string = "allianceWar_atk_formation".ToUILocale(), this._allianceLabel = ["allianceWar_self".ToUILocale(), "allianceWar_enemy".ToUILocale()], this.ZoneDesc.string = "serverSelect_zone".ToUILocale(), this.PresidentDesc.string = "alliance_leader".ToUILocale(), this.Title.string = "allianceWar_title".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.BuffButton.node.on("click", this.OnBuffButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnBtnClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.ReportButton.node.on("click", this.OnReportButtonClick, this), this.PersonalRankButton.node.on("click", this.OnPersonalRankButtonClick, this), this.LogisticsButton.node.on("click", this.OnLogisticsButtonClick, this), this.DefenseButton.node.on("click", this.OnDefenseButtonClick, this), this.AttackButton.node.on("click", this.OnAttackButtonClick, this), this.MaskButton.node.on("click", this.OnMaskButtonClick, this), this.Toggles.forEach(function(e) {
                    e.node.on("toggle", t.ClickToggle, t)
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._data = t[0], this._selectIndex = t[1]
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                this.SetData(), this._isReDisplay || (this.SetTime(), this.SetMaxMoveDistance()), this.SetToggle(), this.SetBuffNode(), this.SetStarNum(), this.SetAttackTimes(), this.SetAllianceInfoNode(), this.SetMidNode(), P.RedDotManager.Instance.Bind(this.AttackButton.node, P.RedDotManager.Instance.RedDot.AllianceAtkFormationBtnNode), P.RedDotManager.Instance.Bind(this.DefenseButton.node, P.RedDotManager.Instance.RedDot.AllianceDefFormationBtnNode)
            }, t.prototype.UpdateContent = function() {
                this.SetToggle(), this.SetAllianceInfoNode(), this.SetMidNode()
            }, t.prototype.SetData = function() {
                var e = m.TimeUtil.Get0ClockTs(h.RpcComponent.Instance.ServerTime);
                this._selfScoreData = this._data.MyAlliance.Data[e], this._enemyScoreData = this._data.EnemyAlliance.Data[e]
            }, t.prototype.SetToggle = function() {
                var e = this;
                this.Toggles.forEach(function(t, n) {
                    t.isChecked = n == e._selectIndex, t.Init(e._allianceLabel[n])
                })
            }, t.prototype.SetTime = function() {
                this._type = C.default.GetCrossServerAllianceTimeType(), this.CountDownTime(), this._type && this.schedule(this.CountDownTime, 1)
            }, t.prototype.CountDownTime = function() {
                switch (this._type = C.default.GetCrossServerAllianceTimeType(), this._type) {
                    case 0:
                        this.DescTime.string = "allianceWar_stop_time".ToUILocale(), this.Time.string = "00:00~24:00";
                        break;
                    case 1:
                        this.DescTime.string = "allianceWar_prepare_time".ToUILocale(), this.Time.string = "01:00~12:00";
                        break;
                    case 2:
                        this.DescTime.string = "allianceWar_attack_moment".ToUILocale(), this.Time.string = "12:00~23:00";
                        break;
                    case 3:
                        this.DescTime.string = "allianceWar_end_time".ToUILocale(), this.Time.string = "23:00~01:00"
                }
            }, t.prototype.SetMaxMoveDistance = function() {
                var e;
                e = 1 == this._selectIndex ? this._selfScoreData.Player.length : this._enemyScoreData.Player.length;
                var t = Math.abs(this.CalculatePosition(e)[1]);
                this._screenMaxOffset = t
            }, t.prototype.SetBuffNode = function() {
                var e = 100 * I.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneAllianceChallengeLogisticsBonus") / 1e3,
                    t = I.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, b.LevelParamType.AllianceChallengeRaidWeaken),
                    n = [],
                    o = this._selfScoreData.Weaken;
                t.Data2.forEach(function(e) {
                    var t = v.default.GetHeroAttribute(e.Items[0], e.Items[1] * o);
                    n.push(t)
                }), this.BuffTitles.forEach(function(e, t) {
                    e.string = t ? "allianceWar_spy_enemy".ToUILocale() : "allianceWar_logistice_help".ToUILocale()
                }), this.BuffContents.forEach(function(t, o) {
                    if (o) {
                        var r = "";
                        n.forEach(function(e) {
                            r += e.Name + "<color=#ff0000>" + e.Value + "</c> "
                        }), t.string = "allianceWar_weaken_enemy".ToUILocale().Fmt(r)
                    } else t.string = "allianceWar_up_self".ToUILocale().Fmt(e, e)
                })
            }, t.prototype.SetStarNum = function() {
                if (this._selfScoreData) {
                    var e = 0,
                        t = 3 * this._selfScoreData.Player.length;
                    this._selfScoreData.Player.forEach(function(t) {
                        t.Items.length > 1 && (e += t.Items[1])
                    });
                    var n = t - e >= 0 ? t - e : 0;
                    this.EnemyStarNum.string = n.toString()
                }
                if (this._enemyScoreData) {
                    var o = 0,
                        r = 3 * this._enemyScoreData.Player.length;
                    this._enemyScoreData.Player.forEach(function(e) {
                        e.Items.length > 1 && (o += e.Items[1])
                    });
                    var i = r - o >= 0 ? r - o : 0;
                    this.MyStarNum.string = i.toString()
                }
            }, t.prototype.SetAttackTimes = function() {
                var e = I.DataCenter.Instance.GetIntData(d.UserDataKey.AllianceChallengeStatus),
                    t = v.default.GetBit(e, 0),
                    n = v.default.GetBit(e, 2),
                    o = v.default.GetBit(e, 3),
                    r = v.default.GetBit(e, 4),
                    i = 1,
                    a = "#ffffff",
                    s = 1,
                    l = "#ffffff";
                (n && o || r) && (i = 0, a = "#ff4b4b"), t && (s = 0, l = "#ff4b4b"), this.AttackRichText.string = "allianceWar_attack_times".ToUILocale().Fmt(a, i, 1), this.SpyRichText.string = "allianceWar_spy_times".ToUILocale().Fmt(l, s, 1)
            }, t.prototype.SetAllianceInfoNode = function() {
                this.Bg.spriteFrame = this.Bgs[this._selectIndex], this.InfoBg.spriteFrame = this._selectIndex == l.Self ? this._altas.getSpriteFrame("blueBg") : this._altas.getSpriteFrame("redBg"), this.InfoBorder.spriteFrame = this._selectIndex == l.Self ? this._altas.getSpriteFrame("blueBorder") : this._altas.getSpriteFrame("redBorder"), this.MaskBg.spriteFrame = this._selectIndex == l.Self ? this._altas.getSpriteFrame("blue") : this._altas.getSpriteFrame("red"), this.AttackButton.node.active = !1, this.DefenseButton.node.active = !1;
                var e = null,
                    t = null;
                if (this._selectIndex == l.Self ? (this.InfoLabel.string = "allianceWar_self_info".ToUILocale(), this.DefenseButton.node.active = !0, t = this._data.MyAlliance, e = h.ConfigDataComponent.Instance.GetConfigById(p.AllianceIcon_Config, this._data.MyAlliance.AllianceInfo.Icon), this.LogisticsLabel.string = "allianceWar_check_logistics".ToUILocale()) : (this.InfoLabel.string = "allianceWar_enemy_info".ToUILocale(), this.AttackButton.node.active = !0, t = this._data.EnemyAlliance, e = h.ConfigDataComponent.Instance.GetConfigById(p.AllianceIcon_Config, this._data.EnemyAlliance.AllianceInfo.Icon), this.LogisticsLabel.string = "allianceWar_check_logistics2".ToUILocale()), t && (this.AllianceName.string = t.AllianceInfo.Name, this.Zone.string = "S" + t.Zone, this.President.string = t.AllianceInfo.LeaderName), e) {
                    var n = e.LogoID,
                        o = e.FlagID;
                    this.Flag.spriteFrame = this._allianceAltas.getSpriteFrame("flagLogo" + n), this.FlagBg.spriteFrame = this._allianceAltas.getSpriteFrame("flagBg" + o)
                }
            }, t.prototype.SetMidNode = function() {
                var e = this;
                if (this._selectIndex == l.Self)
                    for (var t = function(t) {
                            if (!n._cellNodes[t]) {
                                var o = cc.instantiate(n._cellPrefab);
                                o.parent = n.MidNode, n._cellNodes[t] = o;
                                var r = n.CalculatePosition(t);
                                o.setPosition(r[0], r[1])
                            }
                            var i = null;
                            n._selfScoreData.Player[t].Items[0] && (i = n._data.Info.find(function(n) {
                                return n.Uid == e._selfScoreData.Player[t].Items[0]
                            })), n._cellNodes[t].active = !0, n._cellNodes[t].getComponent(_.default).InitData(t, n._selectIndex, i, n._selfScoreData, n._data)
                        }, n = this, o = 0; o < this._selfScoreData.Player.length; o++) t(o);
                else {
                    var r = function(t) {
                            if (!i._cellNodes[t]) {
                                var n = cc.instantiate(i._cellPrefab);
                                n.parent = i.MidNode, i._cellNodes[t] = n;
                                var o = i.CalculatePosition(t);
                                n.setPosition(o[0], o[1])
                            }
                            var r = null;
                            i._enemyScoreData.Player[t].Items[0] && (r = i._data.TargetInfo.find(function(n) {
                                return n.Uid == e._enemyScoreData.Player[t].Items[0]
                            })), i._cellNodes[t].active = !0, i._cellNodes[t].getComponent(_.default).InitData(t, i._selectIndex, r, i._enemyScoreData, i._data)
                        },
                        i = this;
                    for (o = 0; o < this._enemyScoreData.Player.length; o++) r(o)
                }
            }, t.prototype.CalculatePosition = function(e) {
                var t = e % 3;
                return [0 == t ? 0 : 1 == t ? -296 : 296, -254 * (2 * Math.floor(e / 3) + (t > 0 ? 1 : 0))]
            }, t.prototype.OnBuffButtonClick = function() {
                this.BuffNode.active = !0
            }, t.prototype.OnRewardButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceRewardPanel.Path)
            }, t.prototype.OnRankButtonClick = function() {
                var e = m.TimeUtil.Get0ClockTs(I.RpcComponent.Instance.ServerTime),
                    t = e + 23 * b.Etc.HourDuration,
                    n = e + 23 * b.Etc.HourDuration + 10 * b.Etc.MinuteDuration;
                if (I.RpcComponent.Instance.ServerTime >= t && I.RpcComponent.Instance.ServerTime < n) return f.UIUtlity.ShowFloatingHint("allianceWar_settleing".ToUILocale());
                var o = new u.Req_Player_GetRank;
                o.RankType = d.RankTypeId.CrossZoneAllianceChallenge, I.RpcComponent.Instance.Call(o, this.ShowAllianceRank.bind(this))
            }, t.prototype.ShowAllianceRank = function(e) {
                if (0 == e.Data.Rows.length) return f.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale());
                c.UIManager.Instance.ShowUIPanel(g.PanelConfig.RankDetailPanel.Path, d.RankTypeId.CrossZoneAllianceChallenge, e.Data.Rows, e.Data.Achievements, e.MyRank, e.MyRankData)
            }, t.prototype.OnReportButtonClick = function() {
                var e = this,
                    t = new u.Req_Alliance_ChallengeDailyReports;
                h.RpcComponent.Instance.Call(t, function(t) {
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceReportPanel.Path, e._data, t.Reports)
                })
            }, t.prototype.OnPersonalRankButtonClick = function() {
                var e = new u.Req_Alliance_ChallengeDailyRank;
                e.Type = this._selectIndex + 1, I.RpcComponent.Instance.Call(e, this.ShowPersoanlRank.bind(this))
            }, t.prototype.ShowPersoanlRank = function(e) {
                if (0 == e.Data.Rows.length) return f.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale());
                c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAlliancePersonalRankPanel.Path, this._selectIndex, e)
            }, t.prototype.OnLogisticsButtonClick = function() {
                var e = this,
                    t = null,
                    n = [],
                    o = [];
                this._selectIndex > 0 ? (n = this._enemyScoreData.Player, o = this._data.TargetInfo, t = this._enemyScoreData) : (n = this._selfScoreData.Player, o = this._data.Info, t = this._selfScoreData);
                var r = [];
                if (t.Player.forEach(function(e) {
                        e.Items[0] && r.push(e.Items[0])
                    }), r.length > 0) {
                    var i = new u.Req_Player_GetPlayerFormations;
                    i.Uids = r, i.Id = b.FormationIdType.AllianceChallengeDefend2, h.RpcComponent.Instance.Call(i, function(t) {
                        c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceLogisticsListPanel.Path, e._selectIndex, t.Formations, n, o)
                    })
                } else c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceLogisticsListPanel.Path, this._selectIndex, null, n, o)
            }, t.prototype.OnDefenseButtonClick = function() {
                var e = this._selfScoreData.Player.findIndex(function(e) {
                    return I.DataCenter.Instance.Uid == e.Items[0]
                });
                if (-1 == e) return f.UIUtlity.ShowFloatingHint("allianceWar_no_def_formation".ToUILocale().Fmt(this._selfScoreData.Player.length));
                var t = this._data.Info.find(function(e) {
                        return e.Uid == I.DataCenter.Instance.Uid
                    }),
                    n = I.DataCenter.Instance.GetDataById(u.UserFormation_Model, b.FormationIdType.AllianceChallengeDefend1),
                    o = new u.UserFormation;
                n && n.HeroIds.forEach(function(e) {
                    if (e > 0) {
                        var t = I.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                        o.Heros.push(t)
                    }
                }), c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceMemberPanel.Path, S.CrossServerAllianceMemberType.Defense, t, this._selfScoreData.Player[e], o, this._data)
            }, t.prototype.OnAttackButtonClick = function() {
                var e = this._selfScoreData.Player.findIndex(function(e) {
                        return I.DataCenter.Instance.Uid == e.Items[0]
                    }),
                    t = this._data.Info.find(function(e) {
                        return e.Uid == I.DataCenter.Instance.Uid
                    }),
                    n = null;
                e > -1 && (n = this._selfScoreData.Player[e]), t || ((t = new u.PlayerSimpleInfo).Uid = I.DataCenter.Instance.Uid, t.Zone = I.DataCenter.Zone, t.Name = I.DataCenter.Instance.GetStringData(b.UserDataKey.RoleName), t.HeadIcon = I.DataCenter.Instance.GetIntData(b.UserDataKey.HeadIcon), t.HeadFrame = I.DataCenter.Instance.GetIntData(b.UserDataKey.HeadFrame), t.Level = I.DataCenter.Instance.GetIntData(b.UserDataKey.PlayerLevel), t.Power = I.DataCenter.Instance.GetIntData(b.UserDataKey.Power));
                var o = I.DataCenter.Instance.GetDataById(u.UserFormation_Model, b.FormationIdType.AllianceChallengeAttack1),
                    r = new u.UserFormation;
                o && o.HeroIds.forEach(function(e) {
                    if (e > 0) {
                        var t = I.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                        r.Heros.push(t)
                    }
                }), c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceMemberPanel.Path, S.CrossServerAllianceMemberType.Attack, t, n, r, this._data)
            }, t.prototype.OnMaskButtonClick = function() {
                this.BuffNode.active = !1
            }, t.prototype.OnTouchMove = function(e) {
                var t = e.getDelta(),
                    n = this.MidNode.position.add(cc.v3(t)).y;
                n < this._screenMaxOffset && n > 0 && (this.MidNode.y = n), Math.abs(t.y) > 5 && (_.default.isCanClick = !1)
            }, t.prototype.OnTouchEnd = function() {
                _.default.isCanClick = !0
            }, t.prototype.ClickToggle = function(e) {
                var t = Number(e.node.name);
                this._selectIndex != t && (this._selectIndex = t, this.UpdateContent())
            }, t.prototype.OnReturnBtnClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "allianceWar_title".ToUILocale(),
                    titles: ["allianceWar_rule_sub".ToUILocale()],
                    contents: ["allianceWar_rule_content".ToUILocale()]
                };
                f.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnUpdateData = function(e) {
                var t = m.TimeUtil.Get0ClockTs(h.RpcComponent.Instance.ServerTime);
                this._data.MyAlliance.Data[t] && (this._data.MyAlliance.Data[t] = e[0]), this._data.EnemyAlliance.Data[t] && (this._data.EnemyAlliance.Data[t] = e[1])
            }, t.prototype.OnUpdateAllData = function(e) {
                this._data = e
            }, t.prototype.onDestroy = function() {
                this.unschedule(this.CountDownTime)
            }, i([R(cc.Sprite)], t.prototype, "Bg", void 0), i([R(cc.SpriteFrame)], t.prototype, "Bgs", void 0), i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.Button)], t.prototype, "RuleButton", void 0), i([R(cc.Button)], t.prototype, "BuffButton", void 0), i([R(cc.Label)], t.prototype, "DescTime", void 0), i([R(cc.Label)], t.prototype, "Time", void 0), i([R(cc.Label)], t.prototype, "MyStarNum", void 0), i([R(cc.Label)], t.prototype, "EnemyStarNum", void 0), i([R(cc.Button)], t.prototype, "RewardButton", void 0), i([R(cc.Label)], t.prototype, "RewardLabel", void 0), i([R(cc.Button)], t.prototype, "RankButton", void 0), i([R(cc.Label)], t.prototype, "RankLabel", void 0), i([R(cc.Node)], t.prototype, "MidNode", void 0), i([R(cc.RichText)], t.prototype, "AttackRichText", void 0), i([R(cc.RichText)], t.prototype, "SpyRichText", void 0), i([R(cc.Label)], t.prototype, "InfoLabel", void 0), i([R(cc.Sprite)], t.prototype, "FlagBg", void 0), i([R(cc.Sprite)], t.prototype, "Flag", void 0), i([R(cc.Label)], t.prototype, "AllianceName", void 0), i([R(cc.Label)], t.prototype, "ZoneDesc", void 0), i([R(cc.Label)], t.prototype, "Zone", void 0), i([R(cc.Label)], t.prototype, "PresidentDesc", void 0), i([R(cc.Label)], t.prototype, "President", void 0), i([R(cc.Button)], t.prototype, "ReportButton", void 0), i([R(cc.Label)], t.prototype, "ReportLabel", void 0), i([R(cc.Button)], t.prototype, "PersonalRankButton", void 0), i([R(cc.Label)], t.prototype, "PersonalRankLabel", void 0), i([R(cc.Button)], t.prototype, "LogisticsButton", void 0), i([R(cc.Label)], t.prototype, "LogisticsLabel", void 0), i([R(cc.Button)], t.prototype, "DefenseButton", void 0), i([R(cc.Label)], t.prototype, "DefenseLabel", void 0), i([R(cc.Button)], t.prototype, "AttackButton", void 0), i([R(cc.Label)], t.prototype, "AttackLabel", void 0), i([R(y.default)], t.prototype, "Toggles", void 0), i([R(cc.Button)], t.prototype, "ReturnButton", void 0), i([R(cc.Node)], t.prototype, "BuffNode", void 0), i([R(cc.Button)], t.prototype, "MaskButton", void 0), i([R(cc.RichText)], t.prototype, "BuffTitles", void 0), i([R(cc.RichText)], t.prototype, "BuffContents", void 0), i([R(cc.Sprite)], t.prototype, "InfoBg", void 0), i([R(cc.Sprite)], t.prototype, "InfoBorder", void 0), i([R(cc.Sprite)], t.prototype, "MaskBg", void 0), i([T], t)
        }(c.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel",
        "./CrossServerAllianceMemberPanel": "CrossServerAllianceMemberPanel",
        "./CrossServerAlliancePlatformItem": "CrossServerAlliancePlatformItem"
    }],
    CrossServerAllianceLogisticsListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "192df9yJrhCboVD3pvFYGYE", "CrossServerAllianceLogisticsListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("../Components/ItemComponent"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../Components/HeadComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Name = null, t.Power = null, t.Head = null, t.Formation = null, t.Selected = null, t.SelfButton = null, t._itemNodes = [], t._type = 0, t._headPrefab = null, t._itemPrefab = null, t._headNode = null, t._spriteAtlas = null, t._data = null, t._robotData = null, t._selectIndex = -1, t._index = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.SelfButton.node.on("click", this.ClickSelf, this)
                }, t.prototype.onDisable = function() {
                    this.SelfButton.node.off("click", this.ClickSelf, this)
                }, t.prototype.InitData = function(e, t, n, o, r, i, a) {
                    this._type = e, this._headPrefab = n, this._itemPrefab = o, this._spriteAtlas = r, this._data = t, this._selectIndex = i, this._index = a, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetCamp(), this.SetHead(), this.SetFormation()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.GetRobotData = function() {
                    var e = {},
                        t = l.ConfigDataComponent.Instance.GetConfigById(s.LevelParam_Config, p.LevelParamType.AllianceChallengeRobot),
                        n = t.Data[3],
                        o = l.ConfigDataComponent.Instance.GetConfigById(s.MapBase_Config, n),
                        r = t.Data[0],
                        i = t.Data[1],
                        a = t.Data[2],
                        c = "",
                        u = 0;
                    return o && (c = o.Id.ToMapName(), u = o.BattlePower), e.level = r, e.headIcon = i, e.headFrame = a, e.name = c, e.power = u, e
                }, t.prototype.SetCamp = function() {
                    if (this._robotData || (this._robotData = this.GetRobotData()), this._type > 0)
                        if (this.Title.spriteFrame = this._spriteAtlas.getSpriteFrame("title4"), this.Selected.active = this._selectIndex == this._index, this._data.info) {
                            var e = 0;
                            this._data.formation && this._data.formation.Heros.length > 0 && this._data.formation.Heros.forEach(function(t) {
                                t && t.Sid > 0 && (e += t.Power)
                            }), this.Name.string = "allianceWar_enemy_logistice_name".ToUILocale().Fmt(this._data.info.Name), this.Power.string = e.toString()
                        } else this.Name.string = "allianceWar_enemy_logistice_name".ToUILocale().Fmt(this._robotData.name), this.Power.string = this._robotData.power.toString();
                    else if (this.Title.spriteFrame = this._spriteAtlas.getSpriteFrame("title5"), this.Selected.active = !1, this._data.info) {
                        var t = 0;
                        this._data.formation && this._data.formation.Heros.length > 0 && this._data.formation.Heros.forEach(function(e) {
                            e && e.Sid > 0 && (t += e.Power)
                        }), this.Name.string = "allianceWar_self_logistice_name".ToUILocale().Fmt(this._data.info.Name), this.Power.string = t.toString()
                    } else this.Name.string = "allianceWar_self_logistice_name".ToUILocale().Fmt(this._robotData.name), this.Power.string = this._robotData.power.toString()
                }, t.prototype.SetSelectSprite = function(e) {
                    this._selectIndex = e, this._type > 0 ? this.Selected.active = this._selectIndex == this._index : this.Selected.active = !1
                }, t.prototype.SetHead = function() {
                    if (!this._headNode) {
                        var e = cc.instantiate(this._headPrefab);
                        e.parent = this.Head, this._headNode = e
                    }
                    var t;
                    this._data.info ? ((t = this._headNode.getComponent(d.default)).SetUI(this._data.info.HeadIcon, this._data.info.HeadFrame), t.SetLevel(this._data.info.Level), t.SetCountry(this._data.info.Country)) : ((t = this._headNode.getComponent(d.default)).SetUI(this._robotData.headIcon, this._robotData.headFrame), t.SetLevel(this._robotData.level), t.SetCountry(null))
                }, t.prototype.SetFormation = function() {
                    var e = this;
                    if (this._data.formation && this._data.formation.Heros.length > 0) {
                        var t = [];
                        this._data.formation.Heros.forEach(function(e) {
                            e && e.Sid > 0 && t.push(e)
                        }), t.forEach(function(t, n) {
                            if (!e._itemNodes[n]) {
                                var o = cc.instantiate(e._itemPrefab);
                                o.parent = e.Formation, e._itemNodes[n] = o
                            }
                            e._itemNodes[n].active = !0;
                            var r = l.ConfigDataComponent.Instance.GetConfigById(s.HeroBase_Config, t.HeroId);
                            e._itemNodes[n].getComponent(c.ItemComponent).Init({
                                ItemId: t.HeroId,
                                StarLevel: t.StarLevel,
                                ElementType: r.ElementType,
                                Level: t.Level,
                                TempleLevel: t.TempleLevel
                            }, c.ItemComponentType.HeroInfo)
                        })
                    } else {
                        var n = l.ConfigDataComponent.Instance.GetConfigById(s.LevelParam_Config, p.LevelParamType.AllianceChallengeRobot).Data[3],
                            o = l.ConfigDataComponent.Instance.GetConfigById(s.MapBase_Config, n);
                        o.Heros.forEach(function(t, n) {
                            var r = t.Items[1];
                            if (!e._itemNodes[n]) {
                                var i = cc.instantiate(e._itemPrefab);
                                i.parent = e.Formation, e._itemNodes[n] = i
                            }
                            var a = l.ConfigDataComponent.Instance.GetConfigById(s.HeroBase_Config, r);
                            e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(c.ItemComponent).Init({
                                ItemId: r,
                                StarLevel: o.Strength[0],
                                ElementType: a.ElementType,
                                Level: o.Strength[1]
                            }, c.ItemComponentType.HeroInfo)
                        })
                    }
                }, t.prototype.ClickSelf = function() {
                    a.Game.EventDispatcher.Emit(u.EventKeys.EVENT_UPDATE_ALLIANCE_SELECT, this._index)
                }, i([y(cc.Sprite)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Label)], t.prototype, "Power", void 0), i([y(cc.Node)], t.prototype, "Head", void 0), i([y(cc.Node)], t.prototype, "Formation", void 0), i([y(cc.Node)], t.prototype, "Selected", void 0), i([y(cc.Button)], t.prototype, "SelfButton", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CrossServerAllianceLogisticsListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "12e4eMyW5VP3K8jL2MsFUep", "CrossServerAllianceLogisticsListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("./CrossServerAllianceLogisticsListItem"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./AllianceBaseMainPanel"),
            m = e("../../Components/Components"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../../Consts/Consts"),
            C = e("./CrossServerAllianceWarPanel"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Components/CustomLayout"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RichText1 = null, t.RichText2 = null, t.LogisticsTeam = null, t.RemainTeam = null, t.ScrollView = null, t.CustomLayout = null, t.Desc = null, t.SetLogisticsButton = null, t.SetLogisticsLabel = null, t.AttackButton = null, t.AttackLabel = null, t._headPrefab = null, t._itemPrefab = null, t._cellPrefab = null, t._spriteAtlas = null, t._type = 0, t._formations = [], t._players = [], t._showPlayers = [], t._playerInfo = [], t._isLayoutInit = !1, t._selectIndex = -1, t._remainTeams = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_UPDATE_ALLIANCE_SELECT, this.UpdateSelect, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_UPDATE_ALLIANCE_SELECT, this.UpdateSelect, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(d.BundlePath.HeadComponent, cc.Prefab), this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("CrossServerAllianceWarPanel/SubItems/CrossServerAllianceLogisticsListItem", cc.Prefab), this.LoadDynamicAsset("CrossServerAllianceWarPanel/PNG/CrossServerAllianceWar", cc.SpriteAtlas)]).then(function(e) {
                                        t._headPrefab = e[0], t._itemPrefab = e[1], t._cellPrefab = e[2], t._spriteAtlas = e[3]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RichText1.string = "allianceWar_set_other_team".ToUILocale(), this.RichText2.string = "allianceWar_up_main_def".ToUILocale(), this.Desc.string = "allianceWar_cant_same".ToUILocale(), this.SetLogisticsLabel.string = "allianceWar_set_logistice".ToUILocale(), this.AttackLabel.string = "allianceWar_take_spy".ToUILocale(), this.SetLogisticsButton.node.on("click", this.ClickSelfLogisticsButton, this), this.AttackButton.node.on("click", this.ClickAttackButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._type = t[0], this._formations = t[1], this._players = t[2], this._playerInfo = t[3]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetListData(), this.SetButtons(), this.SetRemainTeams(), this.InitCustomLayout(), this.SetList(), v.RedDotManager.Instance.Bind(this.AttackButton.node, v.RedDotManager.Instance.RedDot.AllianceSpyBtnNode), v.RedDotManager.Instance.RefreshRedDotNode(v.RedDotManager.Instance.RedDot.AllianceSpyBtnNode)
                }, t.prototype.SetButtons = function() {
                    this.SetLogisticsButton.node.active = 0 == this._type, this.AttackButton.node.active = 1 == this._type
                }, t.prototype.SetListData = function() {
                    var e = this;
                    this._remainTeams = 0, this._showPlayers = [];
                    var t = this._players.concat();
                    t.forEach(function(e, t) {
                        e.Items[4] = t
                    }), t.sort(function(e, t) {
                        return e.Items[2] - t.Items[2]
                    }), t.forEach(function(t) {
                        var n = t.Items[0];
                        if (!t.Items[2]) {
                            var o = !1;
                            if (n > 0) {
                                var r = e._formations.find(function(e) {
                                        return e.Uid == n
                                    }),
                                    i = e._playerInfo.find(function(e) {
                                        return e.Uid == n
                                    });
                                r && r.Heros.length > 0 && (o = !0, (a = {}).playerData = t, a.formation = r, a.info = i, e._showPlayers.push(a))
                            } else {
                                var a;
                                o = !0, (a = {}).playerData = t, a.formation = null, a.info = null, e._showPlayers.push(a)
                            }!t.Items[2] && o && e._remainTeams++
                        }
                    })
                }, t.prototype.SetRemainTeams = function() {
                    this.Title.string = 1 == this._type ? "allianceWar_enemy_logistice".ToUILocale() : "allianceWar_self_logistice".ToUILocale(), this.LogisticsTeam.string = 1 == this._type ? "allianceWar_enemy_logistice_team".ToUILocale() : "allianceWar_self_logistice_team".ToUILocale(), this.RemainTeam.string = "allianceWar_remain_team".ToUILocale().Fmt(this._remainTeams)
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab))
                }, t.prototype.SetList = function() {
                    this.CustomLayout.RenderLayOut(this._showPlayers.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        e.name = t.toString(), e.getComponent(f.default).InitData(n._type, n._showPlayers[t], n._headPrefab, n._itemPrefab, n._spriteAtlas, n._selectIndex, t)
                    })
                }, t.prototype.ClickSelfLogisticsButton = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), [6, 6], {
                        IsSaveFormationState: !0,
                        IsDefense: !0,
                        TeamIndex: 1
                    })
                }, t.prototype.OnSetFormation = function(e) {
                    var t = new c.Req_Hero_SetFormation;
                    t.Formations = e, p.RpcComponent.Instance.Call(t, function() {
                        y.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale())
                    })
                }, t.prototype.ClickAttackButton = function() {
                    if (2 != g.default.GetCrossServerAllianceTimeType()) return y.UIUtlity.ShowFloatingHint("allianceWar_not_in_time".ToUILocale());
                    var e = m.DataCenter.Instance.GetIntData(u.UserDataKey.AllianceChallengeStatus);
                    if (I.default.GetBit(e, 0)) return y.UIUtlity.ShowFloatingHint("allianceWar_spy_time_not_enough".ToUILocale());
                    var t = p.DataCenter.Instance.GetDataById(c.UserFormation_Model, _.FormationIdType.AllianceChallengeAttack2);
                    if (I.default.CheckFormationIsEmpty(_.FormationIdType.AllianceChallengeAttack2)) return y.UIUtlity.ShowFloatingHint("allianceWar_set_spy_team".ToUILocale());
                    if (-1 == this._selectIndex) return y.UIUtlity.ShowFloatingHint("allianceWar_select_first".ToUILocale());
                    if (this._showPlayers[this._selectIndex] && this._showPlayers[this._selectIndex].playerData.Items[0] == m.DataCenter.Instance.Uid) return y.UIUtlity.ShowFloatingHint("allianceWar_cant_challenge_self".ToUILocale());
                    var n = new c.Req_Alliance_Challenge;
                    n.Index = this._showPlayers[this._selectIndex].playerData.Items[4], n.Type = _.AllianceChallengeType.Raid, n.Formations = [t], p.RpcComponent.Instance.Call(n, this.RequestSuccess.bind(this), this.RequestFail.bind(this))
                }, t.prototype.RequestSuccess = function(e) {
                    var t = [e.MyScore, e.EnemyScore];
                    l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_UPDATE_ALLIANCE_DATA, t), this.OnUpdateData(t), C.default.BattleInfo = e, C.default.StartBattle(!1)
                }, t.prototype.RequestFail = function(e) {
                    if (e == u.ErrCode.AllianceChallengeParamError || e == u.ErrCode.AllianceChallengeUserLocked || e == u.ErrCode.AllianceChallengeTodayChallenged || e == u.ErrCode.AllianceChallengeTodayRaided) {
                        var t = new c.Req_Alliance_ChallengeEnter;
                        p.RpcComponent.Instance.Call(t, function(e) {
                            e && l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_UPDATE_ALLIANCE_ALL_DATA, e)
                        })
                    }
                }, t.prototype.UpdateSelect = function(e) {
                    var t = this;
                    this._selectIndex != e && (this.CustomLayout.node.children.forEach(function(n) {
                        n.name != e.toString() && n.name != t._selectIndex.toString() || n.getComponent(f.default).SetSelectSprite(e)
                    }), this._selectIndex = e)
                }, t.prototype.OnUpdateData = function(e) {
                    this._players = e[this._type].Player
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.RichText)], t.prototype, "RichText1", void 0), i([P(cc.RichText)], t.prototype, "RichText2", void 0), i([P(cc.Label)], t.prototype, "LogisticsTeam", void 0), i([P(cc.RichText)], t.prototype, "RemainTeam", void 0), i([P(cc.Node)], t.prototype, "ScrollView", void 0), i([P(b.default)], t.prototype, "CustomLayout", void 0), i([P(cc.Label)], t.prototype, "Desc", void 0), i([P(cc.Button)], t.prototype, "SetLogisticsButton", void 0), i([P(cc.Label)], t.prototype, "SetLogisticsLabel", void 0), i([P(cc.Button)], t.prototype, "AttackButton", void 0), i([P(cc.Label)], t.prototype, "AttackLabel", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel",
        "./CrossServerAllianceLogisticsListItem": "CrossServerAllianceLogisticsListItem",
        "./CrossServerAllianceWarPanel": "CrossServerAllianceWarPanel"
    }],
    CrossServerAllianceLogisticsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9ba79XaGYFCoqWu2HlRvGGL", "CrossServerAllianceLogisticsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../../../Consts/Consts"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../Util/TimeUtil"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RichText1 = null, t.RichText2 = null, t.MyLogistics = null, t.LogisticsTeam = null, t.Power = null, t.FormationNode = null, t.UpLabel = null, t.AttrIcon = [], t.AttrName = [], t.AttrValue = [], t.Desc = null, t.SelfLogisticsButton = null, t.SelfLogisticsLabel = null, t.SetLogisticsButton = null, t.SetLogisticsLabel = null, t._itemPrefab = null, t._itemNodes = [], t._data = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RichText1.string = "allianceWar_set_other_team".ToUILocale(), this.RichText2.string = "allianceWar_up_main_def".ToUILocale(), this.MyLogistics.string = "allianceWar_my_logistice_team".ToUILocale(), this.LogisticsTeam.string = "allianceWar_logistice_team".ToUILocale(), this.UpLabel.string = "allianceWar_up_main".ToUILocale(), this.Desc.string = "allianceWar_cant_same".ToUILocale(), this.SelfLogisticsLabel.string = "allianceWar_self_logistice".ToUILocale(), this.SetLogisticsLabel.string = "allianceWar_set_logistice".ToUILocale(), this.Title.string = "allianceWar_logistice_team".ToUILocale(), this.SelfLogisticsButton.node.on("click", this.ClickSelfLogisticsButton, this), this.SetLogisticsButton.node.on("click", this.ClickSetLogisticsButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetFormation(), this.SetAttr()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetFormation = function() {
                    var e = this,
                        t = h.DataCenter.Instance.GetDataById(c.UserFormation_Model, f.FormationIdType.AllianceChallengeDefend2),
                        n = 0;
                    if (t && t.HeroIds.length > 0) t.HeroIds.forEach(function(t, o) {
                        if (!e._itemNodes[o]) {
                            var r = cc.instantiate(e._itemPrefab);
                            r.parent = e.FormationNode, e._itemNodes[o] = r
                        }
                        var i = p.DataCenter.Instance.GetDataById(c.UserHero_Model, t);
                        if (i) {
                            var a = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, i.HeroId);
                            n += i.Power, e._itemNodes[o].active = !0, e._itemNodes[o].getComponent(y.ItemComponent).Init({
                                ItemId: i.HeroId,
                                StarLevel: i.StarLevel,
                                ElementType: a.ElementType,
                                Level: i.Level,
                                TempleLevel: i.TempleLevel
                            }, y.ItemComponentType.HeroInfo)
                        } else e._itemNodes[o].active = !1
                    });
                    else
                        for (var o = 0; o < 5; o++) {
                            if (!this._itemNodes[o]) {
                                var r = cc.instantiate(this._itemPrefab);
                                r.parent = this.FormationNode, this._itemNodes[o] = r
                            }
                            this._itemNodes[o].active = !0;
                            var i = this._itemNodes[o].getComponent(y.ItemComponent);
                            i.SetHeroSimpleState(), i.SetCustomIcon(m.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180), i.node.name = "-1"
                        }
                    this.Power.string = n.toString()
                }, t.prototype.SetAttr = function() {
                    var e = this,
                        t = h.DataCenter.Instance.GetDataById(c.UserFormation_Model, f.FormationIdType.AllianceChallengeDefend2),
                        n = g.default.GetHeroAttribute(0, 20),
                        o = g.default.GetHeroAttribute(1, 20),
                        r = [0, 0];
                    if (t && t.HeroIds.length > 0) {
                        var i = 0,
                            a = 0;
                        t.HeroIds.forEach(function(e) {
                            var t = p.DataCenter.Instance.GetDataById(c.UserHero_Model, e);
                            t && t.Attrs && t.Attrs[0] && (i += t.Attrs[0]), t && t.Attrs && t.Attrs[1] && (a += t.Attrs[1])
                        }), r[0] = Math.floor(i / 5), r[1] = Math.floor(a / 5)
                    } [n, o].forEach(function(t, n) {
                        e.AttrIcon[n] && (e.AttrIcon[n].spriteFrame = t.Icon, e.AttrName[n].string = t.Name, e.AttrValue[n].string = "+" + r[n])
                    })
                }, t.prototype.UpdateForamtions = function() {
                    var e = this;
                    this.InitNodes();
                    var t = p.DataCenter.Instance.GetDataById(c.UserFormation_Model, f.FormationIdType.AllianceChallengeDefend2),
                        n = [];
                    if (t) {
                        t.HeroIds.forEach(function(e) {
                            var t = p.DataCenter.Instance.GetDataById(c.UserHero_Model, e);
                            t && n.push(t)
                        });
                        var o = 0;
                        n.forEach(function(t, n) {
                            if (!e._itemNodes[n]) {
                                var r = cc.instantiate(e._itemPrefab);
                                r.parent = e.FormationNode, e._itemNodes[n] = r
                            }
                            o += t.Power;
                            var i = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, t.HeroId);
                            e._itemNodes[n].active = !0, e._itemNodes[n].name = t.Sid.toString(), e._itemNodes[n].getComponent(y.ItemComponent).Init({
                                ItemId: t.HeroId,
                                StarLevel: t.StarLevel,
                                ElementType: i.ElementType,
                                Level: t.Level,
                                TempleLevel: t.TempleLevel
                            }, y.ItemComponentType.HeroInfo)
                        }), this.Power.string = o.toString()
                    }
                    this.SetAttr()
                }, t.prototype.ClickSelfLogisticsButton = function() {
                    var e = this,
                        t = I.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime),
                        n = this._data.MyAlliance.Data[t];
                    if (n) {
                        var o = [],
                            r = [];
                        if (n.Player.forEach(function(e) {
                                e.Items[0] && o.push(e.Items[0])
                            }), o.length > 0) {
                            var i = new c.Req_Player_GetPlayerFormations;
                            i.Uids = o, i.Id = f.FormationIdType.AllianceChallengeDefend2, p.RpcComponent.Instance.Call(i, function(t) {
                                r = t.Formations, l.UIManager.Instance.ShowUIPanel(d.PanelConfig.CrossServerAllianceLogisticsListPanel.Path, 0, r, n.Player, e._data.Info)
                            })
                        } else l.UIManager.Instance.ShowUIPanel(d.PanelConfig.CrossServerAllianceLogisticsListPanel.Path, 0, r, n.Player, this._data.Info)
                    }
                }, t.prototype.ClickSetLogisticsButton = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), [6, 6], {
                        IsSaveFormationState: !0,
                        IsDefense: !0,
                        TeamIndex: 1
                    })
                }, t.prototype.OnSetFormation = function(e) {
                    var t = this,
                        n = new c.Req_Hero_SetFormation;
                    n.Formations = e, p.RpcComponent.Instance.Call(n, function() {
                        m.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale()), t.UpdateForamtions()
                    })
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.RichText)], t.prototype, "RichText1", void 0), i([v(cc.RichText)], t.prototype, "RichText2", void 0), i([v(cc.Label)], t.prototype, "MyLogistics", void 0), i([v(cc.Label)], t.prototype, "LogisticsTeam", void 0), i([v(cc.Label)], t.prototype, "Power", void 0), i([v(cc.Node)], t.prototype, "FormationNode", void 0), i([v(cc.Label)], t.prototype, "UpLabel", void 0), i([v(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([v(cc.Label)], t.prototype, "AttrName", void 0), i([v(cc.Label)], t.prototype, "AttrValue", void 0), i([v(cc.Label)], t.prototype, "Desc", void 0), i([v(cc.Button)], t.prototype, "SelfLogisticsButton", void 0), i([v(cc.Label)], t.prototype, "SelfLogisticsLabel", void 0), i([v(cc.Button)], t.prototype, "SetLogisticsButton", void 0), i([v(cc.Label)], t.prototype, "SetLogisticsLabel", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CrossServerAllianceMemberPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5be4FYd91LnoGfcjIqCw4K", "CrossServerAllianceMemberPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CrossServerAllianceMemberType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../Consts/Consts"),
            y = e("../Components/HeadComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../../Components/Components"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../RedDot/RedDotManager"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.SelfMember = 0] = "SelfMember", e[e.EnemyMember = 1] = "EnemyMember", e[e.Defense = 2] = "Defense", e[e.Attack = 3] = "Attack"
        })(l = n.CrossServerAllianceMemberType || (n.CrossServerAllianceMemberType = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.HeadNode = null, t.Name = null, t.DefTimes = null, t.BottomStar = [], t.TopStar = [], t.FormationSprite = null, t.FormationLabel = null, t.Power = null, t.FormationNode = null, t.SetFormationButton = null, t.SetFormationLabel = null, t.LogisticsButton = null, t.LogisticsLabel = null, t._headPrefab = null, t._itemPrefab = null, t._headNode = null, t._itemNodes = [], t._type = 0, t._playerInfo = null, t._starNum = 0, t._formation = null, t._data = null, t._player = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.HeadComponent, cc.Prefab), this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("CrossServerAllianceWarPanel/PNG/CrossServerAllianceWar", cc.SpriteAtlas)]).then(function(e) {
                                    t._headPrefab = e[0], t._itemPrefab = e[1], t._atlas = e[2]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetFormationLabel.string = "allianceWar_set_formation".ToUILocale(), this.LogisticsLabel.string = "allianceWar_my_logistice".ToUILocale(), this.SetFormationButton.node.on("click", this.ClickSetFormationButton, this), this.LogisticsButton.node.on("click", this.ClickLogisticsButton, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._type = t[0], this._playerInfo = t[1], this._player = t[2], this._formation = t[3], this._data = t[4], this._player && this._player.Items[1] ? this._starNum = this._player.Items[1] : this._starNum = 0
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || this.SetUIContent(), this._type == l.Defense || this._type == l.SelfMember ? C.RedDotManager.Instance.Bind(this.SetFormationButton.node, C.RedDotManager.Instance.RedDot.AllianceSetDefTeamBtnNode) : this._type == l.Attack && C.RedDotManager.Instance.Bind(this.SetFormationButton.node, C.RedDotManager.Instance.RedDot.AllianceSetAtkTeamBtnNode), C.RedDotManager.Instance.Bind(this.LogisticsButton.node, C.RedDotManager.Instance.RedDot.AllianceSetLogisticsTeamBtnNode)
            }, t.prototype.SetUIContent = function() {
                this.InitItems(), this.SetTitle(), this.SetPlayerInfo(), this.SetButtons(), this.SetFormation()
            }, t.prototype.InitItems = function() {
                this._itemNodes.forEach(function(e) {
                    e.active = !1
                })
            }, t.prototype.SetTitle = function() {
                switch (this._type) {
                    case l.SelfMember:
                        this.Title.string = "allianceWar_self_member".ToUILocale(), this.FormationLabel.string = "allianceWar_self_def_formation".ToUILocale(), this.FormationSprite.spriteFrame = this._atlas.getSpriteFrame("title1");
                        break;
                    case l.EnemyMember:
                        this.Title.string = "allianceWar_enemy_member".ToUILocale(), this.FormationLabel.string = "allianceWar_enemy_def_formation".ToUILocale(), this.FormationSprite.spriteFrame = this._atlas.getSpriteFrame("title2");
                        break;
                    case l.Defense:
                        this.Title.string = "allianceWar_def_formation".ToUILocale(), this.FormationLabel.string = "allianceWar_self_def_formation".ToUILocale(), this.FormationSprite.spriteFrame = this._atlas.getSpriteFrame("title1");
                        break;
                    case l.Attack:
                        this.Title.string = "allianceWar_atk_formation".ToUILocale(), this.FormationLabel.string = "allianceWar_self_atk_formation".ToUILocale(), this.FormationSprite.spriteFrame = this._atlas.getSpriteFrame("title1")
                }
            }, t.prototype.SetPlayerInfo = function() {
                var e = this,
                    t = 0,
                    n = 0,
                    o = "",
                    r = 0,
                    i = "";
                if (this._playerInfo) t = this._playerInfo.HeadIcon, n = this._playerInfo.HeadFrame, o = this._playerInfo.Name, r = this._playerInfo.Level, i = this._playerInfo.Country;
                else {
                    var a = d.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, f.LevelParamType.AllianceChallengeRobot),
                        s = a.Data[3],
                        l = d.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, s);
                    r = a.Data[0], t = a.Data[1], n = a.Data[2], l && (o = l.Id.ToMapName())
                }
                if (!this._headNode) {
                    var c = cc.instantiate(this._headPrefab);
                    c.parent = this.HeadNode, this._headNode = c
                }
                var u = this._headNode.getComponent(y.default);
                u.SetUI(t, n), u.SetLevel(r), u.SetCountry(i), this.Name.string = o, this.TopStar.forEach(function(t, n) {
                    t.active = n < e._starNum
                });
                for (var h = this.BottomStar.length - 1; h >= 0; h--) this.BottomStar[h].active = h >= this._starNum;
                var g = 0;
                this._player && this._player.Items[3] && (g = this._player.Items[3]), this.DefTimes.string = "allianceWar_def_times".ToUILocale().Fmt(g)
            }, t.prototype.SetButtons = function() {
                this.SetFormationButton.node.active = this._type == l.Defense || this._type == l.Attack || this._type == l.SelfMember && this._playerInfo && this._playerInfo.Uid == I.DataCenter.Instance.Uid, this.LogisticsButton.node.active = this._type == l.Defense || this._type == l.Attack
            }, t.prototype.SetFormation = function() {
                var e = this;
                if (this._playerInfo && this._formation && this._formation.Heros.length > 0) {
                    var t = 0,
                        n = [];
                    this._formation.Heros.forEach(function(e) {
                        e && e.Sid > 0 && n.push(e)
                    }), n.forEach(function(n, o) {
                        if (!e._itemNodes[o]) {
                            var r = cc.instantiate(e._itemPrefab);
                            r.parent = e.FormationNode, e._itemNodes[o] = r
                        }
                        t += n.Power;
                        var i = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, n.HeroId);
                        e._itemNodes[o].active = !0, e._itemNodes[o].name = n.Sid.toString(), e._itemNodes[o].getComponent(m.ItemComponent).Init({
                            ItemId: n.HeroId,
                            StarLevel: n.StarLevel,
                            ElementType: i.ElementType,
                            Level: n.Level,
                            TempleLevel: n.TempleLevel
                        }, m.ItemComponentType.HeroInfo)
                    }), this.Power.string = t.toString()
                } else if (this._playerInfo)
                    for (var o = 0; o < 5; o++) {
                        if (!this._itemNodes[o]) {
                            var r = cc.instantiate(this._itemPrefab);
                            r.parent = this.FormationNode, this._itemNodes[o] = r
                        }
                        var i = this._itemNodes[o].getComponent(m.ItemComponent);
                        i.SetHeroSimpleState(), i.SetCustomIcon(g.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180), i.node.name = "-1"
                    } else {
                        var a = d.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, f.LevelParamType.AllianceChallengeRobot).Data[3],
                            s = d.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, a),
                            l = s.BattlePower;
                        s.Heros.forEach(function(t, n) {
                            var o = t.Items[1];
                            if (!e._itemNodes[n]) {
                                var r = cc.instantiate(e._itemPrefab);
                                r.parent = e.FormationNode, e._itemNodes[n] = r
                            }
                            var i = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, o);
                            e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(m.ItemComponent).Init({
                                ItemId: o,
                                StarLevel: s.Strength[0],
                                ElementType: i.ElementType,
                                Level: s.Strength[1]
                            }, m.ItemComponentType.HeroInfo)
                        }), this.Power.string = l.toString()
                    }
            }, t.prototype.UpdateForamtions = function() {
                var e = this;
                this.InitItems();
                var t = this._type == l.Defense || this._type == l.SelfMember ? f.FormationIdType.AllianceChallengeDefend1 : f.FormationIdType.AllianceChallengeAttack1,
                    n = d.DataCenter.Instance.GetDataById(u.UserFormation_Model, t),
                    o = [];
                if (n) {
                    n.HeroIds.forEach(function(e) {
                        var t = d.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                        t && o.push(t)
                    });
                    var r = 0;
                    o.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.FormationNode, e._itemNodes[n] = o
                        }
                        r += t.Power;
                        var i = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, t.HeroId);
                        e._itemNodes[n].active = !0, e._itemNodes[n].name = t.Sid.toString(), e._itemNodes[n].getComponent(m.ItemComponent).Init({
                            ItemId: t.HeroId,
                            StarLevel: t.StarLevel,
                            ElementType: i.ElementType,
                            Level: t.Level,
                            TempleLevel: t.TempleLevel
                        }, m.ItemComponentType.HeroInfo)
                    }), this.Power.string = r.toString()
                }
            }, t.prototype.ClickSetFormationButton = function() {
                var e = this._type == l.Defense || this._type == l.SelfMember;
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), [6, 6], {
                    IsSaveFormationState: !0,
                    IsDefense: e,
                    TeamIndex: 0
                })
            }, t.prototype.OnSetFormation = function(e) {
                var t = this,
                    n = new u.Req_Hero_SetFormation;
                n.Formations = e, d.RpcComponent.Instance.Call(n, function() {
                    g.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale()), t._playerInfo && t._playerInfo.Uid == I.DataCenter.Instance.Uid && t.UpdateForamtions()
                })
            }, t.prototype.ClickLogisticsButton = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.CrossServerAllianceLogisticsPanel.Path, this._data)
            }, t.prototype.OnItemClick = function(e, t) {
                if (-1 != this.FormationNode.children.indexOf(t))
                    if (this._playerInfo && this._playerInfo.Uid) {
                        if (-1 == e) return;
                        c.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroDetailPanel.Path, e, this._playerInfo.Uid, this._playerInfo.Zone, this._playerInfo.NotShow)
                    } else g.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale())
            }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Node)], t.prototype, "HeadNode", void 0), i([S(cc.Label)], t.prototype, "Name", void 0), i([S(cc.RichText)], t.prototype, "DefTimes", void 0), i([S(cc.Node)], t.prototype, "BottomStar", void 0), i([S(cc.Node)], t.prototype, "TopStar", void 0), i([S(cc.Sprite)], t.prototype, "FormationSprite", void 0), i([S(cc.Label)], t.prototype, "FormationLabel", void 0), i([S(cc.Label)], t.prototype, "Power", void 0), i([S(cc.Node)], t.prototype, "FormationNode", void 0), i([S(cc.Button)], t.prototype, "SetFormationButton", void 0), i([S(cc.Label)], t.prototype, "SetFormationLabel", void 0), i([S(cc.Button)], t.prototype, "LogisticsButton", void 0), i([S(cc.Label)], t.prototype, "LogisticsLabel", void 0), i([b], t)
        }(c.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CrossServerAlliancePersonalRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "24d7eQ//1hIC4u1YgBbsqPb", "CrossServerAlliancePersonalRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/RankDetailComponent"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomToggle"),
            h = e("../../../Consts/Consts"),
            f = e("../Auxiliary/UIUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.CenterNode = null, t.ReturnButton = null, t.SelfToggle = null, t.EnemyToggle = null, t._type = 0, t._rank_detail_item = null, t._rankData = null, t._rankDataArr = {}, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent")];
                                case 1:
                                    return t._rankPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "allianceWar_rank_title".ToUILocale(), this.SelfToggle.Init("allianceWar_self".ToUILocale()), this.EnemyToggle.Init("allianceWar_enemy".ToUILocale()), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.SelfToggle.node.on("toggle", this.OnSelfToggleClick, this), this.EnemyToggle.node.on("toggle", this.OnEnemyToggleClick, this), this.FixedValueAssign()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._type = t[0], this._rankData = t[1], this._rankDataArr[this._type] || (this._rankDataArr[this._type] = this._rankData)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUI(), this.SetTog()
                }, t.prototype.SetUI = function() {
                    this._rankDataArr[this._type] ? this._rank_detail_item.SetUI(h.RankTypeId.CrossZoneAlliancePersonal, this._rankDataArr[this._type].Data.Rows, null, null, !1, !1) : this._rank_detail_item.SetUI(h.RankTypeId.CrossZoneAlliancePersonal, [], null, null, !1, !1), this._rank_detail_item.SetMyRankRootActivie(1 != this._type)
                }, t.prototype.SetTog = function() {
                    this.SelfToggle.isChecked = 0 == this._type, this.EnemyToggle.isChecked = 1 == this._type
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._rankPrefab);
                    e.setParent(this.CenterNode), this._rank_detail_item = e.getComponent(u.default)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnSelfToggleClick = function(e) {
                    var t = this;
                    if (Number.parseInt(e.name) != this._type)
                        if (this._rankDataArr[0]) this.SelfToggle.isChecked = !0, this._type = 0, this.SetUI();
                        else {
                            var n = new c.Req_Alliance_ChallengeDailyRank;
                            n.Type = 1, p.RpcComponent.Instance.Call(n, function(e) {
                                e.Data && e.Data.Rows && e.Data.Rows.length > 0 ? (t.SelfToggle.isChecked = !0, t._type = 0, t._rankDataArr[t._type] = e, t.SetUI()) : (t.EnemyToggle.isChecked = !0, f.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale()))
                            })
                        }
                }, t.prototype.OnEnemyToggleClick = function(e) {
                    var t = this;
                    if (Number.parseInt(e.name) != this._type)
                        if (this._rankDataArr[1]) this.EnemyToggle.isChecked = !0, this._type = 1, this.SetUI();
                        else {
                            var n = new c.Req_Alliance_ChallengeDailyRank;
                            n.Type = 2, p.RpcComponent.Instance.Call(n, function(e) {
                                e.Data && e.Data.Rows && e.Data.Rows.length > 0 ? (t.EnemyToggle.isChecked = !0, t._type = 1, t._rankDataArr[t._type] = e, t.SetUI()) : (t.SelfToggle.isChecked = !0, f.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale()))
                            })
                        }
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Node)], t.prototype, "CenterNode", void 0), i([m(cc.Button)], t.prototype, "ReturnButton", void 0), i([m(d.default)], t.prototype, "SelfToggle", void 0), i([m(d.default)], t.prototype, "EnemyToggle", void 0), i([g], t)
            }(l.BaseUIFullScreenPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    CrossServerAlliancePlatformItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fa4daYJKO1Hfor+l7cx5Hvq", "CrossServerAlliancePlatformItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../../Components/Components"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../../Consts/Consts"),
            I = e("./AllianceBaseMainPanel"),
            _ = e("./CrossServerAllianceMemberPanel"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelfNode = null, t.EnemyNode = null, t.AvatarNode = null, t.BuffNode = null, t.BottomStars = [], t.TopStars = [], t.NameLabel = null, t.PowerLabel = null, t.Zone = null, t._index = 0, t._type = 0, t._playerInfo = null, t._scoreData = null, t._data = null, t._assets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
                }, t.prototype.InitData = function(e, t, n, o, r) {
                    this._index = e, this._type = t, this._playerInfo = n, this._scoreData = o, this._data = r, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetCamp(), this.SetStars(), this.SetPlayerInfo(), this.SetAvatar(), this.SetVertigoBuff()
                }, t.prototype.SetCamp = function() {
                    this.EnemyNode.active = 1 == this._type, this.SelfNode.active = 0 == this._type, 1 == this._type ? this.SetStairs(this.EnemyNode) : this.SetStairs(this.SelfNode)
                }, t.prototype.SetStars = function() {
                    if (this._scoreData) {
                        var e = 0 | this._scoreData.Player[this._index].Items[1];
                        this.TopStars.forEach(function(t, n) {
                            t.active = n < e
                        });
                        for (var t = this.BottomStars.length - 1; t >= 0; t--) this.BottomStars[t].active = t >= e
                    }
                }, t.prototype.SetAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e = 0, this._playerInfo ? e = this._playerInfo.HeadIcon : (t = h.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, f.LevelParamType.AllianceChallengeRobot), e = t.Data[1]), e ? ((n = h.ConfigDataComponent.Instance.GetConfigById(c.HeroSkin_Config, e)) || (n = h.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, e)), n ? [4, y.AssetsManager.Instance.LoadAsset("Hero_" + n.Model + "/HeroAvatar")] : [3, 2]) : [3, 2];
                                case 1:
                                    if (o = i.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this.AvatarNode.destroyAllChildren(), this._assets.push(o), (r = cc.instantiate(o)).setParent(this.AvatarNode), r.getComponent(sp.Skeleton).clearTracks(), r.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0), i.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetVertigoBuff = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = 0 | this._scoreData.Player[this._index].Items[1], this.BuffNode.destroyAllChildren(), e ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("BattleGeneralEffect/101/BuffEffect", cc.Prefab)];
                                case 1:
                                    if (t = r.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._assets.push(t), (n = cc.instantiate(t)).parent = this.BuffNode, (o = n.getComponent(sp.Skeleton)).clearTracks(), o.setAnimation(0, "play", !0), r.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetPlayerInfo = function() {
                    if (this._playerInfo) this.NameLabel.string = this._playerInfo.Name, this.PowerLabel.string = this._playerInfo.Power.toString(), this.Zone.string = "S" + this._playerInfo.Zone;
                    else {
                        var e = h.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, f.LevelParamType.AllianceChallengeRobot).Data[3],
                            t = h.ConfigDataComponent.Instance.GetConfigById(c.MapBase_Config, e);
                        t && (this.NameLabel.string = t.Id.ToMapName(), this.PowerLabel.string = t.BattlePower.toString(), this.Zone.string = "S1")
                    }
                }, t.prototype.SetStairs = function(e) {
                    var t = e.getChildByName("Stairs1"),
                        n = e.getChildByName("Stairs2"),
                        o = this._index % 3;
                    0 == o && (t.active = this._index + 1 <= this._scoreData.Player.length - 1, n.active = this._index + 2 <= this._scoreData.Player.length - 1), 1 == o && (t.active = !1, n.active = this._index + 2 <= this._scoreData.Player.length - 1), 2 == o && (t.active = this._index + 1 <= this._scoreData.Player.length - 1, n.active = !1)
                }, t.prototype.OnTouchEnd = function() {
                    var e = this;
                    if (n.isCanClick) {
                        var t = I.default.GetCrossServerAllianceTimeType();
                        if (this._type > 0)
                            if (2 == t) {
                                var o = 0 | this._scoreData.Player[this._index].Items[1],
                                    r = 0 | this._scoreData.Player[this._index].Items[3],
                                    i = new u.Req_Player_GetPlayerFormations;
                                this._playerInfo && this._playerInfo.Uid ? (i.Uids = [this._playerInfo.Uid], i.Id = m.FormationIdType.AllianceChallengeDefend1, d.RpcComponent.Instance.Call(i, function(t) {
                                    t.Formations.length > 0 && l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceEnemyMemberPanel.Path, t.Formations[0], e._index, r, o, e._data)
                                })) : l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceEnemyMemberPanel.Path, null, this._index, r, o, this._data)
                            } else 1 != t && 0 != t || (this._playerInfo && this._playerInfo.Uid ? ((i = new u.Req_Player_GetPlayerFormations).Uids = [this._playerInfo.Uid], i.Id = m.FormationIdType.AllianceChallengeDefend1, d.RpcComponent.Instance.Call(i, function(t) {
                                t.Formations.length > 0 && l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceMemberPanel.Path, _.CrossServerAllianceMemberType.EnemyMember, e._playerInfo, e._scoreData.Player[e._index], t.Formations[0], e._data)
                            })) : l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceMemberPanel.Path, _.CrossServerAllianceMemberType.EnemyMember, this._playerInfo, this._scoreData.Player[this._index], null, this._data));
                        else this._playerInfo && this._playerInfo.Uid ? ((i = new u.Req_Player_GetPlayerFormations).Uids = [this._playerInfo.Uid], i.Id = m.FormationIdType.AllianceChallengeDefend1, d.RpcComponent.Instance.Call(i, function(t) {
                            t.Formations.length > 0 && l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceMemberPanel.Path, _.CrossServerAllianceMemberType.SelfMember, e._playerInfo, e._scoreData.Player[e._index], t.Formations[0], e._data)
                        })) : l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceMemberPanel.Path, _.CrossServerAllianceMemberType.SelfMember, this._playerInfo, this._scoreData.Player[this._index], null, this._data)
                    } else n.isCanClick = !0
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        y.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.isCanClick = !0, i([b(cc.Node)], t.prototype, "SelfNode", void 0), i([b(cc.Node)], t.prototype, "EnemyNode", void 0), i([b(cc.Node)], t.prototype, "AvatarNode", void 0), i([b(cc.Node)], t.prototype, "BuffNode", void 0), i([b(cc.Node)], t.prototype, "BottomStars", void 0), i([b(cc.Node)], t.prototype, "TopStars", void 0), i([b(cc.Label)], t.prototype, "NameLabel", void 0), i([b(cc.Label)], t.prototype, "PowerLabel", void 0), i([b(cc.Label)], t.prototype, "Zone", void 0), n = i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel",
        "./CrossServerAllianceMemberPanel": "CrossServerAllianceMemberPanel"
    }],
    CrossServerAllianceRankItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "af4222WAAtI/r4hzK0hGi57", "CrossServerAllianceRankItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/HeadComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RankNumber = null, t.HeadNode = null, t.Name = null, t.ScoreDesc = null, t.ScoreNum = null, t._rankData = null, t._headPrefab = null, t._headNode = null, t._rank = 0, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ScoreDesc.string = "allianceWar_fight_score".ToUILocale()
                }, t.prototype.InitData = function(e, t) {
                    this._rankData = e, this._rank = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this.RankNumber.string = (this._rank + 1).toString(), this.Name.string = this._rankData.PlayerInfo.Name, this.ScoreNum.string = Math.floor(this._rankData.Value / 10).toString(), this._headPrefab ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.HeadComponent, cc.Prefab)]);
                                case 1:
                                    if (e._headPrefab = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._headPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    return this._headNode || ((t = cc.instantiate(this._headPrefab)).parent = this.HeadNode, this._headNode = t), (n = this._headNode.getComponent(u.default)).SetUI(this._rankData.PlayerInfo.HeadIcon, this._rankData.PlayerInfo.HeadFrame), n.SetLevel(this._rankData.PlayerInfo.Level), n.SetCountry(this._rankData.PlayerInfo.Country), [2]
                            }
                        })
                    })
                }, i([h(cc.Label)], t.prototype, "RankNumber", void 0), i([h(cc.Node)], t.prototype, "HeadNode", void 0), i([h(cc.Label)], t.prototype, "Name", void 0), i([h(cc.Label)], t.prototype, "ScoreDesc", void 0), i([h(cc.Label)], t.prototype, "ScoreNum", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/HeadComponent": "HeadComponent"
    }],
    CrossServerAllianceReportInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "65f42i6F5ZOBLXUla19kLF1", "CrossServerAllianceReportInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/HeadComponent"),
            y = e("./CrossServerAllianceReportPanel"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Head = null, t.AllianceFlagNode = null, t.AllianceFlagBg = null, t.AllianceFlag = null, t.DesignationSprite = null, t.Name = null, t.Zone = null, t.Win = null, t.Lose = null, t.Bgs = [], t._type = 0, t._report = null, t._headPrefab = null, t._headNode = null, t._data = null, t._reportType = 0, t._settleData = {}, t._enemyZone = 0, t._loadAsset = [], t
                }
                return r(t, e), t.prototype.InitUI = function(e, t, n, o, r) {
                    this._type = e, this._report = t, this._data = n, this._reportType = o, this._enemyZone = r, this.SetUIContent()
                }, t.prototype.InitSettleUI = function(e, t, n, o) {
                    this._type = e, this._settleData = t, this._data = n, this._reportType = o, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetDesignation(), this.SetInfo()
                }, t.prototype.SetDesignation = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return 1 == this._reportType ? (this.DesignationSprite.node.active = !1, [2]) : (e = this._report.AAllianceId == u.DataCenter.Instance.AllianceId, (t = 1 == this._type ? e ? this._report.Defender : this._report.Attacker : e ? this._report.Attacker : this._report.Defender) && t.Designation ? (n = t.Designation, this.DesignationSprite.node.active = !0, [4, g.default.GetUserTitleIconById(n)]) : (this.DesignationSprite.node.active = !1, [2]));
                                case 1:
                                    return (o = r.sent()) ? (this.DesignationSprite.spriteFrame = o, [2]) : (this.DesignationSprite.node.active = !1, [2])
                            }
                        })
                    })
                }, t.prototype.SetInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.Head.active = 0 == this._reportType, this.AllianceFlagNode.active = 1 == this._reportType, 0 != this._reportType ? [3, 3] : this._headPrefab ? [3, 2] : [4, d.AssetsManager.Instance.LoadAsset(h.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._loadAsset.push(e), this._headPrefab = e, i.label = 2;
                                case 2:
                                    return this._headNode || ((t = cc.instantiate(this._headPrefab)).parent = this.Head, this._headNode = t), n = this._report.AAllianceId == u.DataCenter.Instance.AllianceId, 1 == this._type ? (o = n ? this._report.Defender : this._report.Attacker, r = this.CheckSelfIsWin(), this.Win.active = !r, this.Lose.active = r, this.SetPlayerInfo(o)) : (o = n ? this._report.Attacker : this._report.Defender, r = this.CheckSelfIsWin(), this.Win.active = r, this.Lose.active = !r, this.SetPlayerInfo(o)), [3, 4];
                                case 3:
                                    1 == this._type ? (this._settleData.SelfData.EnemyId > 0 && this._settleData.EnemyData ? (this.Win.active = this._settleData.SelfData.Score < this._settleData.EnemyData.Score, this.Lose.active = this._settleData.SelfData.Score >= this._settleData.EnemyData.Score) : (this.Win.active = !1, this.Lose.active = !1), this.SetAllianceInfo(this._settleData.EnemyData, this._settleData.EnemyAllianceInfo, this._settleData.EnemyZone)) : (this._settleData.SelfData.EnemyId > 0 && this._settleData.EnemyData ? (this.Win.active = this._settleData.SelfData.Score > this._settleData.EnemyData.Score, this.Lose.active = this._settleData.SelfData.Score <= this._settleData.EnemyData.Score) : (this.Win.active = !0, this.Lose.active = !1), this.SetAllianceInfo(this._settleData.SelfData, this._settleData.SelfAllianceInfo, this._settleData.SelfZone)), i.label = 4;
                                case 4:
                                    return this.Bgs[0].active = this.Lose.active, this.Bgs[1].active = this.Win.active, [2]
                            }
                        })
                    })
                }, t.prototype.SetPlayerInfo = function(e) {
                    var t = 0,
                        n = 0,
                        o = 0,
                        r = "",
                        i = 0,
                        a = "";
                    if (e && e.Uid > 0) t = e.HeadIcon, n = e.HeadFrame, o = e.Level, r = e.Name, i = e.Zone, a = e.Country;
                    else {
                        var s = c.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, p.LevelParamType.AllianceChallengeRobot),
                            u = s.Data[3],
                            d = c.ConfigDataComponent.Instance.GetConfigById(l.MapBase_Config, u);
                        o = s.Data[0], t = s.Data[1], n = s.Data[2], i = this._data ? this._data.EnemyAlliance.Zone : this._enemyZone, d && (r = d.Id.ToMapName())
                    }
                    var h = this._headNode.getComponent(f.default);
                    h.SetUI(t, n), h.SetLevel(o), h.SetCountry(a), this.Name.string = r, this.Zone.string = "[S{0}]".Fmt(i), this.Name.node.active = !0, this.Zone.node.active = !0
                }, t.prototype.SetAllianceInfo = function(e, t, n) {
                    if (e && t) {
                        this.AllianceFlagNode.active = !0, this.Name.node.active = !0, this.Zone.node.active = !0, this.Name.string = "[S{0}]".Fmt(n) + t.Name, this.Zone.string = "allianceWar_end_score".ToUILocale().Fmt(e.Score);
                        var o = c.ConfigDataComponent.Instance.GetConfigById(l.AllianceIcon_Config, t.Icon),
                            r = o.LogoID,
                            i = o.FlagID;
                        this.AllianceFlag.spriteFrame = y.default.Altas.getSpriteFrame("flagLogo" + r), this.AllianceFlagBg.spriteFrame = y.default.Altas.getSpriteFrame("flagBg" + i)
                    } else this.AllianceFlagNode.active = !1, this.Name.node.active = !1, this.Zone.node.active = !1
                }, t.prototype.CheckSelfIsWin = function() {
                    var e = !1;
                    return (this._report.AAllianceId == u.DataCenter.Instance.AllianceId && 1 == this._report.Result || this._report.DAllianceId == u.DataCenter.Instance.AllianceId && 0 == this._report.Result) && (e = !0), e
                }, t.prototype.onDestroy = function() {
                    this._loadAsset.forEach(function(e) {
                        d.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([_(cc.Node)], t.prototype, "Head", void 0), i([_(cc.Node)], t.prototype, "AllianceFlagNode", void 0), i([_(cc.Sprite)], t.prototype, "AllianceFlagBg", void 0), i([_(cc.Sprite)], t.prototype, "AllianceFlag", void 0), i([_(cc.Sprite)], t.prototype, "DesignationSprite", void 0), i([_(cc.Label)], t.prototype, "Name", void 0), i([_(cc.Label)], t.prototype, "Zone", void 0), i([_(cc.Node)], t.prototype, "Win", void 0), i([_(cc.Node)], t.prototype, "Lose", void 0), i([_(cc.Node)], t.prototype, "Bgs", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/HeadComponent": "HeadComponent",
        "./CrossServerAllianceReportPanel": "CrossServerAllianceReportPanel"
    }],
    CrossServerAllianceReportItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "413b7ncb4pErYF5/rMTL1hj", "CrossServerAllianceReportItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../ShareConsts/EnumType"),
            c = e("../../Components/DataCenter"),
            u = e("../../../Util/TimeUtil"),
            p = e("./CrossServerAllianceReportInfoComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./CrossServerAllianceWarPanel"),
            f = e("../../Components/RpcComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LayoutNode = null, t.Difficult = null, t.BottomStar = [], t.TopStar = [], t.Time = null, t.InfoNodes = [], t.ReplayButton = null, t.AttackType = null, t._report = null, t._data = null, t._settleData = {}, t._type = 0, t._enemyZone = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ReplayButton.node.on("click", this.ClickReplay, this)
                }, t.prototype.onDisable = function() {
                    this.ReplayButton.node.off("click", this.ClickReplay, this)
                }, t.prototype.InitData = function(e, t, n, o) {
                    this._report = e, this._data = t, this._type = n, this._enemyZone = o, this.SetUIContent()
                }, t.prototype.InitSettleData = function(e, t) {
                    this._settleData = e, this._type = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetInfo(), this.SetPlayerInfo()
                }, t.prototype.SetInfo = function() {
                    if (this.AttackType.node.active = 0 == this._type, 0 == this._type) {
                        this.AttackType.string = this._report.Type == l.AllianceChallengeType.Main ? "allianceWar_attack".ToUILocale() : "allianceWar_spy".ToUILocale(), this.LayoutNode.active = this._report.Type == l.AllianceChallengeType.Main;
                        var e = u.TimeUtil.Format("YYYY/MM/DD", this._report.CreateTime),
                            t = u.TimeUtil.Format("HH:mm:ss", this._report.CreateTime);
                        if (this.Time.string = e + " " + t, this._report.Type == l.AllianceChallengeType.Main) {
                            this.Difficult.string = "allianceWar_difficult_desc".ToUILocale();
                            var n = this._report.ChallengeStar;
                            this.TopStar.forEach(function(e, t) {
                                e.active = t < n
                            });
                            for (var o = this.BottomStar.length - 1; o >= 0; o--) this.BottomStar[o].active = o >= n
                        }
                    } else this.LayoutNode.active = !1, e = u.TimeUtil.Format("YYYY/MM/DD", this._settleData.SelfData.Start), this.Time.string = e
                }, t.prototype.SetPlayerInfo = function() {
                    var e = this;
                    0 == this._type ? this.InfoNodes.forEach(function(t, n) {
                        t.getComponent(p.default).InitUI(n, e._report, e._data, e._type, e._enemyZone)
                    }) : this.InfoNodes.forEach(function(t, n) {
                        t.getComponent(p.default).InitSettleUI(n, e._settleData, e._data, e._type)
                    })
                }, t.prototype.CheckSelfIsWin = function() {
                    var e = !1;
                    return (this._report.AAllianceId == c.DataCenter.Instance.AllianceId && 1 == this._report.Result || this._report.DAllianceId == c.DataCenter.Instance.AllianceId && 0 == this._report.Result) && (e = !0), e
                }, t.prototype.ClickReplay = function() {
                    var e = this;
                    if (1 == this._type) {
                        if (!this._settleData.SelfData.EnemyId || !this._settleData.EnemyData) return d.UIUtlity.ShowFloatingHint("allianceWar_current_empty".ToUILocale());
                        (t = new a.Req_Alliance_ChallengeDailyReports).Date = this._settleData.Date, f.RpcComponent.Instance.Call(t, function(t) {
                            s.UIManager.Instance.ShowUIPanel(y.PanelConfig.CrossServerAllianceSettleReportPanel.Path, e._settleData, t.Reports)
                        })
                    } else {
                        if (this._report.Type == l.AllianceChallengeType.Beat) return d.UIUtlity.ShowFloatingHint("allianceWar_beat_no_report".ToUILocale());
                        var t;
                        (t = new a.Req_Player_GetCommonReport).Id = this._report.ReportId, f.RpcComponent.Instance.Call(t, function(t) {
                            var n = {};
                            n.Data = e._report, n.Reports = t.Reports, h.default.BattleInfo = n, h.default.StartBattle(!0)
                        })
                    }
                }, i([I(cc.Node)], t.prototype, "LayoutNode", void 0), i([I(cc.Label)], t.prototype, "Difficult", void 0), i([I(cc.Node)], t.prototype, "BottomStar", void 0), i([I(cc.Node)], t.prototype, "TopStar", void 0), i([I(cc.Label)], t.prototype, "Time", void 0), i([I(cc.Node)], t.prototype, "InfoNodes", void 0), i([I(cc.Button)], t.prototype, "ReplayButton", void 0), i([I(cc.Label)], t.prototype, "AttackType", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CrossServerAllianceReportInfoComponent": "CrossServerAllianceReportInfoComponent",
        "./CrossServerAllianceWarPanel": "CrossServerAllianceWarPanel"
    }],
    CrossServerAllianceReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b11a3wMOihP0I8caPZo+eOp", "CrossServerAllianceReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomToggle"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/CustomLayout"),
            y = e("../../Components/Components"),
            g = e("./CrossServerAllianceReportItem"),
            m = e("../../../Consts/Etc"),
            I = e("../../../Util/TimeUtil"),
            _ = e("../Auxiliary/UIUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.SelfFlagBg = null, t.SelfFlag = null, t.SelfName = null, t.EnemyFlagBg = null, t.EnemyFlag = null, t.EnemyName = null, t.ScrollerNode = null, t.EmptyLabel = null, t.CustomLayout = null, t.Toggles = [], t.MyAllianceTitleNode = null, t.EnemyAllianceTitleNode = null, t._selectIndex = 0, t._toggleNames = [], t._isLayoutInit = !1, t._cellPrefab = null, t._reports = [], t._curReports = [], t._data = null, t._settleData = null, t._settleDatas = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset("CrossServerAllianceWarPanel/SubItems/CrossServerAllianceReportItem", cc.Prefab), this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas)]).then(function(t) {
                                        e._cellPrefab = t[0], n.Altas = t[1]
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.Title.string = "allianceWar_report".ToUILocale(), this.EmptyLabel.string = "allianceWar_no_report".ToUILocale(), this._toggleNames = ["allianceWar_all_reports".ToUILocale(), "allianceWar_my_reports".ToUILocale(), "allianceWar_end_report".ToUILocale()], this.Toggles.forEach(function(e) {
                        e.node.on("toggle", t.ClickToggle, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0], this._reports = t[1]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetReportData(), this.SetAllianceInfo(), this.SetScrollerActive(), this.SetToggles(), this.InitCustomLayout()
                }, t.prototype.UpdateContent = function() {
                    this.SetReportData(), this.SetScrollerActive(), this.SetToggles(), this.InitCustomLayout()
                }, t.prototype.SetReportData = function() {
                    var e = this;
                    if (1 == this._selectIndex) this._curReports = [], this._reports.forEach(function(t) {
                        (t.Attacker.Uid == y.DataCenter.Instance.Uid || t.Defender && t.Defender.Uid == y.DataCenter.Instance.Uid) && e._curReports.push(t)
                    }), this._curReports.sort(function(e, t) {
                        return t.CreateTime - e.CreateTime
                    });
                    else if (0 == this._selectIndex) this._curReports = this._reports.concat(), this._curReports.sort(function(e, t) {
                        return t.CreateTime - e.CreateTime
                    });
                    else {
                        this._settleDatas = [];
                        for (var t = this._settleData.MyAlliance.Season, n = function(e) {
                                var n = t + e * m.Etc.DayDuration;
                                if (o._settleData.MyAlliance.Data && o._settleData.MyAlliance.Data[n.toString()]) {
                                    var r = o._settleData.MyAlliance.Data[n.toString()],
                                        i = null,
                                        a = null,
                                        s = 0;
                                    if (r.EnemyId) {
                                        var l = o._settleData.EnemyAlliances.find(function(e) {
                                            var t = 0;
                                            for (var o in e.Data) t = Number(o);
                                            return n == t
                                        });
                                        l && (i = l.Data[n], a = l.AllianceInfo, s = l.Zone)
                                    }
                                    var c = {};
                                    c.SelfData = r, c.EnemyData = i, c.SelfAllianceInfo = o._settleData.MyAlliance.AllianceInfo, c.EnemyAllianceInfo = a, c.SelfZone = o._settleData.MyAlliance.Zone, c.EnemyZone = s, c.Date = n, o._settleDatas.push(c)
                                }
                            }, o = this, r = 0; r < 7; r++) n(r)
                    }
                }, t.prototype.SetAllianceInfo = function() {
                    if (2 != this._selectIndex) {
                        var e = p.ConfigDataComponent.Instance.GetConfigById(c.AllianceIcon_Config, this._data.MyAlliance.AllianceInfo.Icon),
                            t = e.LogoID,
                            o = e.FlagID;
                        this.SelfFlag.spriteFrame = n.Altas.getSpriteFrame("flagLogo" + t), this.SelfFlagBg.spriteFrame = n.Altas.getSpriteFrame("flagBg" + o), this.SelfName.string = this._data.MyAlliance.AllianceInfo.Name;
                        var r = p.ConfigDataComponent.Instance.GetConfigById(c.AllianceIcon_Config, this._data.EnemyAlliance.AllianceInfo.Icon),
                            i = r.LogoID,
                            a = r.FlagID;
                        this.EnemyFlag.spriteFrame = n.Altas.getSpriteFrame("flagLogo" + i), this.EnemyFlagBg.spriteFrame = n.Altas.getSpriteFrame("flagBg" + a), this.EnemyName.string = this._data.EnemyAlliance.AllianceInfo.Name
                    }
                }, t.prototype.SetScrollerActive = function() {
                    this.MyAllianceTitleNode.active = 2 != this._selectIndex, this.EnemyAllianceTitleNode.active = 2 != this._selectIndex, 2 != this._selectIndex ? (this.EmptyLabel.node.active = 0 == this._curReports.length, this.ScrollerNode.active = this._curReports.length > 0) : (this.EmptyLabel.node.active = 0 == this._settleDatas.length, this.ScrollerNode.active = this._settleDatas.length > 0)
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this.Toggles.forEach(function(t, n) {
                        t.isChecked = n == e._selectIndex, t.Init(e._toggleNames[n])
                    }), this.Toggles[2].node.active = !0
                }, t.prototype.InitCustomLayout = function() {
                    if (this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab)), 2 != this._selectIndex) {
                        var e = this._curReports.length;
                        this.CustomLayout.RenderLayOut(e)
                    } else e = this._settleDatas.length, this.CustomLayout.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        2 != n._selectIndex ? n._curReports[t] && e.getComponent(g.default).InitData(n._curReports[t], n._data, 0) : n._settleDatas[t] && e.getComponent(g.default).InitSettleData(n._settleDatas[t], 1)
                    })
                }, t.prototype.ClickToggle = function(e) {
                    var t = this,
                        n = Number(e.node.name);
                    if (this._selectIndex != n) {
                        if (2 == n) {
                            var o = I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime),
                                r = o + 23 * m.Etc.HourDuration,
                                i = o + 23 * m.Etc.HourDuration + 10 * m.Etc.MinuteDuration;
                            if (y.RpcComponent.Instance.ServerTime >= r && y.RpcComponent.Instance.ServerTime < i) return _.UIUtlity.ShowFloatingHint("allianceWar_settleing".ToUILocale())
                        }
                        if (this._selectIndex = n, 2 == this._selectIndex)
                            if (this._settleData) this.UpdateContent();
                            else {
                                var a = new u.Req_Alliance_ChallengeSeason;
                                p.RpcComponent.Instance.Call(a, function(e) {
                                    t._settleData = e, t.UpdateContent()
                                })
                            }
                        else this.UpdateContent()
                    }
                }, t.Altas = null, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Sprite)], t.prototype, "SelfFlagBg", void 0), i([b(cc.Sprite)], t.prototype, "SelfFlag", void 0), i([b(cc.Label)], t.prototype, "SelfName", void 0), i([b(cc.Sprite)], t.prototype, "EnemyFlagBg", void 0), i([b(cc.Sprite)], t.prototype, "EnemyFlag", void 0), i([b(cc.Label)], t.prototype, "EnemyName", void 0), i([b(cc.Node)], t.prototype, "ScrollerNode", void 0), i([b(cc.Label)], t.prototype, "EmptyLabel", void 0), i([b(f.default)], t.prototype, "CustomLayout", void 0), i([b(d.default)], t.prototype, "Toggles", void 0), i([b(cc.Node)], t.prototype, "MyAllianceTitleNode", void 0), i([b(cc.Node)], t.prototype, "EnemyAllianceTitleNode", void 0), n = i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./CrossServerAllianceReportItem": "CrossServerAllianceReportItem"
    }],
    CrossServerAllianceResultPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "70942G8x/xGbqwbktIXsV9o", "CrossServerAllianceResultPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Components/Components"),
            f = e("../Components/CrossServerAllianceVSInfoComponent"),
            y = e("../Components/CustomLayout"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("./CrossServerAllianceWarPanel"),
            I = e("../Components/RankDetailListItem"),
            _ = e("./CrossServerAllianceRankItem"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../../../Util/TimeUtil"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.WinNode = null, t.LoseNode = null, t.RuleButton = null, t.RuleLabel = null, t.RankButton = null, t.RankLabel = null, t.Title = null, t.AllianceNodes = [], t.RankDesc = null, t.Top3 = [], t.CustomLayout = null, t.EmailSend = null, t.ReviewButton = null, t.ReviewLabel = null, t._topThreePrefab = [], t._topThreeNodes = [], t._rankPrefab = null, t._atlas = null, t._isLayoutInit = !1, t._data = null, t._rankData = [], t._rankListData = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("RankPanel/Private/TopOne", cc.Prefab), this.LoadDynamicAsset("RankPanel/Private/TopTwo", cc.Prefab), this.LoadDynamicAsset("RankPanel/Private/TopThree", cc.Prefab), this.LoadDynamicAsset("CrossServerAllianceWarPanel/SubItems/CrossServerAllianceRankItem", cc.Prefab), this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas)]).then(function(e) {
                                        for (var n = 0; n < 3; n++) t._topThreePrefab[n] = e[n];
                                        t._rankPrefab = e[3], t._atlas = e[4]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RuleLabel.string = "HeroTalent_Rule".ToUILocale(), this.RankLabel.string = "allianceWar_alliance_rank".ToUILocale(), this.RankDesc.string = "allianceWar_peroson_rank".ToUILocale(), this.EmailSend.string = "allianceWar_send_reward_email".ToUILocale(), this.ReviewLabel.string = "allianceWar_review".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.ReviewButton.node.on("click", this.OnReviewButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0], this._rankData = t[1]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetListData(), this.SetResult(), this.SetRound(), this.SetAllianceInfo(), this.SetTopThree(), this.InitCustomLayout()
                }, t.prototype.SetListData = function() {
                    var e = this;
                    this._rankListData = [], this._rankData.forEach(function(t, n) {
                        n > 2 && e._rankListData.push(t)
                    })
                }, t.prototype.SetResult = function() {
                    var e = v.TimeUtil.Get0ClockTs(p.RpcComponent.Instance.ServerTime),
                        t = this._data.MyAlliance.Data[e],
                        n = this._data.EnemyAlliance.Data[e];
                    t && n && (this.WinNode.active = t.Score > n.Score, this.LoseNode.active = t.Score <= n.Score)
                }, t.prototype.SetRound = function() {
                    var e = m.default.GetTimes([1, 2, 3, 4, 5, 6, 7], this._data.MyAlliance.Season, h.RpcComponent.Instance.ServerTime);
                    this.Title.string = "allianceWar_round_main".ToUILocale().Fmt(e)
                }, t.prototype.SetAllianceInfo = function() {
                    var e = this;
                    this.AllianceNodes.forEach(function(t, n) {
                        1 == n ? t.getComponent(f.default).InitUI(e._data.EnemyAlliance, e._data.MyAlliance, e._atlas) : t.getComponent(f.default).InitUI(e._data.MyAlliance, e._data.EnemyAlliance, e._atlas)
                    })
                }, t.prototype.SetTopThree = function() {
                    var e = this;
                    this.Top3.forEach(function(t, n) {
                        if (!e._topThreeNodes[n]) {
                            var o = cc.instantiate(e._topThreePrefab[n]);
                            o.parent = t, e._topThreeNodes[n] = o
                        }
                        var r = {};
                        r.ConfigId = u.RankTypeId.CrossZoneAllianceSettlement, r.RowData = e._rankData[n], r.Order = n + 1, r.IsMyRank = !1, r.MyRankData = null, r.IsActivity = !1, e._topThreeNodes[n].getComponent(I.default).SetUI(r)
                    })
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._rankPrefab));
                    var e = this._rankListData.length;
                    this.CustomLayout.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._rankListData[t];
                        e.getComponent(_.default).InitData(o, t + 3)
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "allianceWar_title".ToUILocale(),
                        titles: ["allianceWar_rule_sub".ToUILocale()],
                        contents: ["allianceWar_rule_content".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnRankButtonClick = function() {
                    var e = new c.Req_Player_GetRank;
                    e.RankType = u.RankTypeId.CrossZoneAllianceChallenge, h.RpcComponent.Instance.Call(e, this.ShowAllianceRank.bind(this))
                }, t.prototype.ShowAllianceRank = function(e) {
                    if (0 == e.Data.Rows.length) return d.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale());
                    l.UIManager.Instance.ShowUIPanel(C.PanelConfig.RankDetailPanel.Path, u.RankTypeId.CrossZoneAllianceChallenge, e.Data.Rows, e.Data.Achievements, e.MyRank, e.MyRankData)
                }, t.prototype.OnReviewButtonClick = function() {
                    var e = new c.Req_Alliance_ChallengeEnter;
                    h.RpcComponent.Instance.Call(e, function(e) {
                        if (!e.MyAlliance) return d.UIUtlity.ShowFloatingHint("allianceWar_no_status".ToUILocale());
                        l.UIManager.Instance.ShowUIPanel(C.PanelConfig.CrossServerAllianceFightInfoPanel.Path, e, 0)
                    })
                }, i([w(cc.Node)], t.prototype, "WinNode", void 0), i([w(cc.Node)], t.prototype, "LoseNode", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.Label)], t.prototype, "RuleLabel", void 0), i([w(cc.Button)], t.prototype, "RankButton", void 0), i([w(cc.Label)], t.prototype, "RankLabel", void 0), i([w(cc.RichText)], t.prototype, "Title", void 0), i([w(cc.Node)], t.prototype, "AllianceNodes", void 0), i([w(cc.Label)], t.prototype, "RankDesc", void 0), i([w(cc.Node)], t.prototype, "Top3", void 0), i([w(y.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Label)], t.prototype, "EmailSend", void 0), i([w(cc.Button)], t.prototype, "ReviewButton", void 0), i([w(cc.Label)], t.prototype, "ReviewLabel", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CrossServerAllianceVSInfoComponent": "CrossServerAllianceVSInfoComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/RankDetailListItem": "RankDetailListItem",
        "./CrossServerAllianceRankItem": "CrossServerAllianceRankItem",
        "./CrossServerAllianceWarPanel": "CrossServerAllianceWarPanel"
    }],
    CrossServerAllianceRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b17c4d668ZJPqMpO8qQFCCX", "CrossServerAllianceRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("./CrossServerAllianceRewardPanel"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.No1Tag = null, t.No2Tag = null, t.No3Tag = null, t.No5Tag = null, t.RankNumber = null, t.RewardNode = null, t._data = null, t._itemPrefab = null, t._itemNodes = [], t._attackLabels = [], t._resultLabels = [], t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitData = function(e) {
                    this._data = e, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetRank(), this.SetReward()
                }, t.prototype.SetRank = function() {
                    switch (this.No1Tag.node.active = !1, this.No2Tag.node.active = !1, this.No3Tag.node.active = !1, this.No5Tag.node.active = !1, this.RankNumber.node.active = !1, this._data.type) {
                        case d.CrossServerAllianceRewardType.Attack:
                            this.RankNumber.node.active = !0, this.RankNumber.string = this._attackLabels[this._data.index], this.RankNumber.node.x = -295;
                            break;
                        case d.CrossServerAllianceRewardType.Record:
                        case d.CrossServerAllianceRewardType.Server:
                            this.SetRankBg(), this.RankNumber.node.x = -342, this._data.rank[0] == this._data.rank[1] && this._data.rank[0] < 4 && this._data.rank[0] > 0 ? (this.No1Tag.node.active = 1 == this._data.rank[0], this.No2Tag.node.active = 2 == this._data.rank[0], this.No3Tag.node.active = 3 == this._data.rank[0]) : (this.No5Tag.node.active = !0, this.RankNumber.node.active = !0, this._data.rank[1] ? this.RankNumber.string = this._data.rank[0] + "-" + this._data.rank[1] : this.RankNumber.string = this._data.rank[0] + "+");
                            break;
                        case d.CrossServerAllianceRewardType.Result:
                            this.RankNumber.node.active = !0, this.RankNumber.string = this._resultLabels[this._data.index], this.RankNumber.node.x = -295
                    }
                }, t.prototype.SetRankBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._atlas ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("RankPanel/Png/RankAtlas", cc.SpriteAtlas)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._atlas = e, this._loadAssets.push(e), this.No1Tag.spriteFrame = this._atlas.getSpriteFrame("tag1"), this.No2Tag.spriteFrame = this._atlas.getSpriteFrame("tag2"), this.No3Tag.spriteFrame = this._atlas.getSpriteFrame("tag3"), this.No5Tag.spriteFrame = this._atlas.getSpriteFrame("tag5"), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitNodes = function() {
                    this._attackLabels = ["allianceWar_atk_win".ToUILocale(), "allianceWar_atk_fail".ToUILocale(), "allianceWar_beat_reward".ToUILocale()], this._resultLabels = ["allianceWar_win".ToUILocale(), "allianceWar_has_null".ToUILocale(), "allianceWar_lose".ToUILocale()], this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetReward = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._loadAssets.push(e), o.label = 2;
                                case 2:
                                    return this._data.type == d.CrossServerAllianceRewardType.Result ? (this._itemNodes[0] || ((t = cc.instantiate(this._itemPrefab)).parent = this.RewardNode, this._itemNodes[0] = t), this._itemNodes[0].active = !0, this._itemNodes[0].getComponent(p.ItemComponent).Init({
                                        ItemId: this._data.rewardArray.Items[0],
                                        Count: this._data.rewardArray.Items[1]
                                    }, p.ItemComponentType.ItemCommon)) : this._data.rewardData.forEach(function(e, t) {
                                        if (!n._itemNodes[t]) {
                                            var o = cc.instantiate(n._itemPrefab);
                                            o.parent = n.RewardNode, n._itemNodes[t] = o
                                        }
                                        n._itemNodes[t].active = !0, n._itemNodes[t].getComponent(p.ItemComponent).Init({
                                            ItemId: e.Items[0],
                                            Count: e.Items[1]
                                        }, p.ItemComponentType.ItemCommon)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([m(cc.Sprite)], t.prototype, "No1Tag", void 0), i([m(cc.Sprite)], t.prototype, "No2Tag", void 0), i([m(cc.Sprite)], t.prototype, "No3Tag", void 0), i([m(cc.Sprite)], t.prototype, "No5Tag", void 0), i([m(cc.Label)], t.prototype, "RankNumber", void 0), i([m(cc.Node)], t.prototype, "RewardNode", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerAllianceRewardPanel": "CrossServerAllianceRewardPanel"
    }],
    CrossServerAllianceRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "12a34XJsN9PhIh6ZCb8pEGG", "CrossServerAllianceRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CrossServerAllianceRewardType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/CustomToggle"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/CustomLayout"),
            y = e("./CrossServerAllianceRewardItem"),
            g = e("../../Components/Components"),
            m = e("../../../Consts/Consts"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property;
        (function(e) {
            e[e.Attack = 0] = "Attack", e[e.Record = 1] = "Record", e[e.Result = 2] = "Result", e[e.Server = 3] = "Server"
        })(l = n.CrossServerAllianceRewardType || (n.CrossServerAllianceRewardType = {}));
        var v = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.CustomLayout = null, t.Desc = null, t.Toggles = [], t.Season = null, t._selectIndex = 0, t._toggleNames = [], t._descs = [], t._isLayoutInit = !1, t._cellPrefab = null, t._datas = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._cellPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("CrossServerAllianceWarPanel/SubItems/CrossServerAllianceRewardItem", cc.Prefab)]);
                            case 1:
                                e._cellPrefab = t.sent(), t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this._toggleNames = ["allianceWar_atk_reward".ToUILocale(), "allianceWar_score_reward".ToUILocale(), "allianceWar_result_reward".ToUILocale(), "allianceWar_server_reward".ToUILocale()], this._descs = ["allianceWar_atk_reward_desc".ToUILocale(), "allianceWar_score_reward_desc".ToUILocale(), "allianceWar_result_reward_desc".ToUILocale(), "allianceWar_server_reward_desc".ToUILocale()], this.Season.string = "allianceWar_serson".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.Toggles.forEach(function(e) {
                    e.node.on("toggle", t.ClickToggle, t)
                })
            }, t.prototype.InitData = function() {
                e.prototype.InitData.call(this)
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                this.SetTitleAndDesc(), this.SetToggleName(), this.SetToggles(), this.SetRewardData(), this.InitCustomLayout()
            }, t.prototype.UpdateContent = function() {
                this.SetToggles(), this.SetTitleAndDesc(), this.SetRewardData(), this.InitCustomLayout()
            }, t.prototype.SetTitleAndDesc = function() {
                this.Title.string = this._toggleNames[this._selectIndex], this.Desc.string = this._descs[this._selectIndex]
            }, t.prototype.SetToggleName = function() {
                var e = this;
                this.Toggles.forEach(function(t, n) {
                    t.Init(e._toggleNames[n])
                })
            }, t.prototype.SetToggles = function() {
                var e = this;
                this.Toggles.forEach(function(t, n) {
                    t.isChecked = n == e._selectIndex
                })
            }, t.prototype.InitCustomLayout = function() {
                this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab));
                var e = this._datas[this._selectIndex].length;
                this.CustomLayout.RenderLayOut(e)
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                t == this.CustomLayout && e.forEach(function(e, t) {
                    if (t < n._datas[n._selectIndex].length) {
                        var o = n._datas[n._selectIndex][t];
                        e.getComponent(y.default).InitData(o)
                    }
                })
            }, t.prototype.SetRewardData = function() {
                if (!this._datas[this._selectIndex]) {
                    var e = [];
                    switch (this._selectIndex) {
                        case l.Attack:
                            var t = g.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, m.LevelParamType.AllianceChallengeWin),
                                n = g.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, m.LevelParamType.AllianceChallengeLose),
                                o = g.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, m.LevelParamType.AllianceChallengeBeat);
                            [t.Data2, n.Data2, o.Data2].forEach(function(t, n) {
                                var o = {};
                                o.type = l.Attack, o.index = n, o.rewardData = t, e.push(o)
                            }), this._datas[this._selectIndex] = e;
                            break;
                        case l.Record:
                            g.ConfigDataComponent.Instance.GetArrayConfig(u.AllianceChallengeDailyRewards_Config).forEach(function(t, n) {
                                var o = {};
                                o.type = l.Record, o.index = n, o.rank = t.Rank, o.rewardData = t.Rewards, e.push(o)
                            }), this._datas[this._selectIndex] = e;
                            break;
                        case l.Result:
                            g.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, m.LevelParamType.AllianceChallengeRewards).Data2.forEach(function(t, n) {
                                var o = {};
                                o.type = l.Result, o.index = n, o.rewardArray = t, e.push(o)
                            }), this._datas[this._selectIndex] = e;
                            break;
                        case l.Server:
                            g.ConfigDataComponent.Instance.GetArrayConfig(u.AllianceChallengeSeasonRewards_Config).forEach(function(t, n) {
                                var o = {};
                                o.type = l.Server, o.index = n, o.rank = t.Rank, o.rewardData = t.Rewards, e.push(o)
                            }), this._datas[this._selectIndex] = e
                    }
                }
            }, t.prototype.ClickToggle = function(e) {
                var t = Number(e.node.name);
                this._selectIndex != t && (this._selectIndex = t, this.UpdateContent())
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "allianceWar_rule_reward_title".ToUILocale(),
                    titles: ["allianceWar_rule_reward_sub".ToUILocale()],
                    contents: ["allianceWar_rule_reward_content".ToUILocale()]
                };
                p.UIUtlity.ShowRulePanel(e)
            }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Button)], t.prototype, "RuleButton", void 0), i([C(f.default)], t.prototype, "CustomLayout", void 0), i([C(cc.Label)], t.prototype, "Desc", void 0), i([C(d.default)], t.prototype, "Toggles", void 0), i([C(cc.Label)], t.prototype, "Season", void 0), i([_], t)
        }(c.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./CrossServerAllianceRewardItem": "CrossServerAllianceRewardItem"
    }],
    CrossServerAllianceSettleReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c9bd7Vfw/xBmoPiv2ZafxVW", "CrossServerAllianceSettleReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomToggle"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/CustomLayout"),
            f = e("../../Components/Components"),
            y = e("./CrossServerAllianceReportItem"),
            g = e("../../../Consts/Etc"),
            m = e("../../../Util/TimeUtil"),
            I = e("../Auxiliary/UIUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.SelfFlagBg = null, t.SelfFlag = null, t.SelfName = null, t.EnemyFlagBg = null, t.EnemyFlag = null, t.EnemyName = null, t.ScrollerNode = null, t.EmptyLabel = null, t.CustomLayout = null, t.Toggles = [], t._selectIndex = 0, t._toggleNames = [], t._isLayoutInit = !1, t._cellPrefab = null, t._reports = [], t._curReports = [], t._data = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset("CrossServerAllianceWarPanel/SubItems/CrossServerAllianceReportItem", cc.Prefab), this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas)]).then(function(t) {
                                        e._cellPrefab = t[0], n.Altas = t[1]
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.Title.string = "allianceWar_end_report".ToUILocale(), this.EmptyLabel.string = "allianceWar_no_report".ToUILocale(), this._toggleNames = ["allianceWar_all_reports".ToUILocale(), "allianceWar_my_reports".ToUILocale()], this.Toggles.forEach(function(e) {
                        e.node.on("toggle", t.ClickToggle, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0], this._reports = t[1]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetReportData(), this.SetAllianceInfo(), this.SetScrollerActive(), this.SetToggles(), this.InitCustomLayout()
                }, t.prototype.UpdateContent = function() {
                    this.SetReportData(), this.SetScrollerActive(), this.SetToggles(), this.InitCustomLayout()
                }, t.prototype.SetReportData = function() {
                    var e = this;
                    1 == this._selectIndex ? (this._curReports = [], this._reports.forEach(function(t) {
                        (t.Attacker.Uid == f.DataCenter.Instance.Uid || t.Defender && t.Defender.Uid == f.DataCenter.Instance.Uid) && e._curReports.push(t)
                    }), this._curReports.sort(function(e, t) {
                        return t.CreateTime - e.CreateTime
                    })) : 0 == this._selectIndex && (this._curReports = this._reports.concat(), this._curReports.sort(function(e, t) {
                        return t.CreateTime - e.CreateTime
                    }))
                }, t.prototype.SetAllianceInfo = function() {
                    var e = u.ConfigDataComponent.Instance.GetConfigById(c.AllianceIcon_Config, this._data.SelfAllianceInfo.Icon),
                        t = e.LogoID,
                        o = e.FlagID;
                    this.SelfFlag.spriteFrame = n.Altas.getSpriteFrame("flagLogo" + t), this.SelfFlagBg.spriteFrame = n.Altas.getSpriteFrame("flagBg" + o), this.SelfName.string = this._data.SelfAllianceInfo.Name;
                    var r = u.ConfigDataComponent.Instance.GetConfigById(c.AllianceIcon_Config, this._data.EnemyAllianceInfo.Icon),
                        i = r.LogoID,
                        a = r.FlagID;
                    this.EnemyFlag.spriteFrame = n.Altas.getSpriteFrame("flagLogo" + i), this.EnemyFlagBg.spriteFrame = n.Altas.getSpriteFrame("flagBg" + a), this.EnemyName.string = this._data.EnemyAllianceInfo.Name
                }, t.prototype.SetScrollerActive = function() {
                    this.EmptyLabel.node.active = 0 == this._curReports.length, this.ScrollerNode.active = this._curReports.length > 0
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this.Toggles.forEach(function(t, n) {
                        t.isChecked = n == e._selectIndex, t.Init(e._toggleNames[n])
                    })
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab));
                    var e = this._curReports.length;
                    this.CustomLayout.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        n._curReports[t] && e.getComponent(y.default).InitData(n._curReports[t], null, 0, n._data.EnemyZone)
                    })
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number(e.node.name);
                    if (this._selectIndex != t) {
                        if (2 == t) {
                            var n = m.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime),
                                o = n + 23 * g.Etc.HourDuration,
                                r = n + 23 * g.Etc.HourDuration + 10 * g.Etc.MinuteDuration;
                            if (f.RpcComponent.Instance.ServerTime >= o && f.RpcComponent.Instance.ServerTime < r) return I.UIUtlity.ShowFloatingHint("allianceWar_settleing".ToUILocale())
                        }
                        this._selectIndex = t, this.UpdateContent()
                    }
                }, t.Altas = null, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Sprite)], t.prototype, "SelfFlagBg", void 0), i([v(cc.Sprite)], t.prototype, "SelfFlag", void 0), i([v(cc.Label)], t.prototype, "SelfName", void 0), i([v(cc.Sprite)], t.prototype, "EnemyFlagBg", void 0), i([v(cc.Sprite)], t.prototype, "EnemyFlag", void 0), i([v(cc.Label)], t.prototype, "EnemyName", void 0), i([v(cc.Node)], t.prototype, "ScrollerNode", void 0), i([v(cc.Label)], t.prototype, "EmptyLabel", void 0), i([v(h.default)], t.prototype, "CustomLayout", void 0), i([v(p.default)], t.prototype, "Toggles", void 0), n = i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./CrossServerAllianceReportItem": "CrossServerAllianceReportItem"
    }],
    CrossServerAllianceSettlementItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1ae4c2sO39CJp9UPOwedhj0", "CrossServerAllianceSettlementItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/SettlementBaseComponent"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../../ShareConsts/BattleConsts"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../Components/HeadComponent"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../Components/ItemComponent"),
            v = e("./AllianceBaseMainPanel"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttackName = null, t.AttackHeadNode = null, t.DefenseName = null, t.DefenseHeadNode = null, t.RewardDesc = null, t.RewardNode = null, t.RichText = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t.ReturnToFunctionButton = null, t.ReturnToFunctionButtonLabel = null, t.LeftWinNode = null, t.LeftLoseNode = null, t.RightWinNode = null, t.RightLoseNode = null, t.ScoreSprite = null, t._itemPrefab = null, t._itemNodes = [], t._headPrefab = null, t._attackHeadNode = null, t._defensekHeadNode = null, t._data = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.RewardDesc.string = "allianceWar_get_reward".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.ReturnToFunctionButtonLabel.string = "allianceWar_back".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this), this.ReturnToFunctionButton.node.on("click", this.OnReturnToFunctionButtonClicked, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && y.UIUtlity.ShowItemTip(t.getComponent(C.ItemComponent).ItemId, t)
                }, t.prototype.SetUI = function(t, n) {
                    e.prototype.SetUI.call(this, t, n), this._data = t.SettleParams[0], this.SetBtnState(), this.SetRichText(), this.SetPlayerInfo(), this.SetRewards()
                }, t.prototype.SetBtnState = function() {
                    if (null != l.UIManager.Instance.GetUIPanel(f.PanelConfig.CrossServerAllianceWarPanel.Path)) this.ReturnToFunctionButton.node.active = !1;
                    else {
                        var e = v.default.GetCrossServerAllianceTimeType();
                        this.ReturnToFunctionButton.node.active = 1 == e || 2 == e
                    }
                }, t.prototype.SetRichText = function() {
                    this.RichText.fontSize = 1 == this._data.Data.Result ? 30 : 26, 1 == this._data.Data.Result ? this._data.Data.Type != _.AllianceChallengeType.Raid ? this.RichText.string = "allianceWar_score".ToUILocale().Fmt(this._data.Data.Score) : this.ScoreSprite.node.active = !1 : this._data.Data.Type == _.AllianceChallengeType.Main ? (this.RichText.string = "allianceWar_remain_protect_times".ToUILocale().Fmt(0), this.ScoreSprite.enabled = !1) : this.ScoreSprite.node.active = !1
                }, t.prototype.SetPlayerInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._headPrefab ? [3, 2] : (e = this, [4, m.AssetsManager.Instance.LoadAsset(f.BundlePath.HeadComponent, cc.Prefab)]);
                                case 1:
                                    if (e._headPrefab = n.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(this._headPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._BattleData.Reports[this._BattleData.Reports.length - 1].Players.forEach(function(e) {
                                        var n;
                                        if (e.Camp == g.CampType.Attacker) t.AttackName.string = e.RoleName, t._attackHeadNode || ((n = cc.instantiate(t._headPrefab)).parent = t.AttackHeadNode, t._attackHeadNode = n), t.LeftWinNode.active = 1 == t._data.Data.Result, t.LeftLoseNode.active = 1 != t._data.Data.Result, (a = t._attackHeadNode.getComponent(I.default)).SetUI(t._data.Data.Attacker.HeadIcon, t._data.Data.Attacker.HeadFrame), a.SetLevel(t._data.Data.Attacker.Level), a.SetCountry(t._data.Data.Attacker.Country);
                                        else if (t._defensekHeadNode || ((n = cc.instantiate(t._headPrefab)).parent = t.DefenseHeadNode, t._defensekHeadNode = n), t.RightWinNode.active = 1 != t._data.Data.Result, t.RightLoseNode.active = 1 == t._data.Data.Result, t._data.Data.Defender) t.DefenseName.string = e.RoleName, (a = t._defensekHeadNode.getComponent(I.default)).SetUI(t._data.Data.Defender.HeadIcon, t._data.Data.Defender.HeadFrame), a.SetLevel(t._data.Data.Defender.Level), a.SetCountry(t._data.Data.Defender.Country);
                                        else {
                                            var o = u.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, _.LevelParamType.AllianceChallengeRobot),
                                                r = o.Data[3],
                                                i = u.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, r);
                                            t.DefenseName.string = i.Id.ToMapName();
                                            var a, s = o.Data[1],
                                                l = o.Data[2];
                                            (a = t._defensekHeadNode.getComponent(I.default)).SetUI(s, l), a.SetLevel(o.Data[0]), a.SetCountry(null)
                                        }
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, m.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(this._headPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._itemNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._data.Rewards && this._data.Rewards.length > 0 && this._data.Rewards.forEach(function(e, n) {
                                        if (!t._itemNodes[n]) {
                                            var o = cc.instantiate(t._itemPrefab);
                                            o.parent = t.RewardNode, t._itemNodes[n] = o
                                        }
                                        t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(C.ItemComponent).Init(e, C.ItemComponentType.ItemCommon)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnConfirmButtonClicked = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnReturnToFunctionButtonClicked = function() {
                    l.UIManager.Instance.BackUIPanel();
                    var e = new c.Req_Alliance_ChallengeEnter;
                    u.RpcComponent.Instance.Call(e, function(e) {
                        l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrossServerAllianceWarPanel.Path, e)
                    })
                }, i([w(cc.Label)], t.prototype, "AttackName", void 0), i([w(cc.Node)], t.prototype, "AttackHeadNode", void 0), i([w(cc.Label)], t.prototype, "DefenseName", void 0), i([w(cc.Node)], t.prototype, "DefenseHeadNode", void 0), i([w(cc.Label)], t.prototype, "RewardDesc", void 0), i([w(cc.Node)], t.prototype, "RewardNode", void 0), i([w(cc.RichText)], t.prototype, "RichText", void 0), i([w(cc.Button)], t.prototype, "ConfirmButton", void 0), i([w(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([w(cc.Button)], t.prototype, "ReturnToFunctionButton", void 0), i([w(cc.Label)], t.prototype, "ReturnToFunctionButtonLabel", void 0), i([w(cc.Node)], t.prototype, "LeftWinNode", void 0), i([w(cc.Node)], t.prototype, "LeftLoseNode", void 0), i([w(cc.Node)], t.prototype, "RightWinNode", void 0), i([w(cc.Node)], t.prototype, "RightLoseNode", void 0), i([w(cc.Sprite)], t.prototype, "ScoreSprite", void 0), i([S], t)
            }(h.default);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel"
    }],
    CrossServerAllianceVSInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "43f8dPr9fFNgK//uQcCHM67", "CrossServerAllianceVSInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = e("../../../Util/TimeUtil"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FlagBg = null, t.Flag = null, t.Zone = null, t.Name = null, t.President = null, t.StarNum = null, t._data = null, t._enemyData = null, t._altas = null, t
                }
                return r(t, e), t.prototype.InitUI = function(e, t, n) {
                    this._data = e, this._enemyData = t, this._altas = n, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetInfo(), this.SetFlag()
                }, t.prototype.SetInfo = function() {
                    this.Zone.string = "[S{0}]".Fmt(this._data.Zone), this.Name.string = this._data.AllianceInfo.Name, this.President.string = this._data.AllianceInfo.LeaderName;
                    var e = null,
                        t = l.TimeUtil.Get0ClockTs(s.RpcComponent.Instance.ServerTime);
                    if (this._enemyData) {
                        if (e = this._enemyData.Data[t]) {
                            var n = 0,
                                o = 3 * e.Player.length;
                            e.Player.forEach(function(e) {
                                e.Items.length > 1 && (n += e.Items[1])
                            });
                            var r = o - n >= 0 ? o - n : 0;
                            this.StarNum.string = r.toString()
                        }
                    } else this.StarNum.string = "0"
                }, t.prototype.SetFlag = function() {
                    var e = s.ConfigDataComponent.Instance.GetConfigById(a.AllianceIcon_Config, this._data.AllianceInfo.Icon),
                        t = e.LogoID,
                        n = e.FlagID;
                    this.Flag.spriteFrame = this._altas.getSpriteFrame("flagLogo" + t), this.FlagBg.spriteFrame = this._altas.getSpriteFrame("flagBg" + n)
                }, i([p(cc.Sprite)], t.prototype, "FlagBg", void 0), i([p(cc.Sprite)], t.prototype, "Flag", void 0), i([p(cc.Label)], t.prototype, "Zone", void 0), i([p(cc.Label)], t.prototype, "Name", void 0), i([p(cc.Label)], t.prototype, "President", void 0), i([p(cc.Label)], t.prototype, "StarNum", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Components/Components": "Components"
    }],
    CrossServerAllianceWarPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "851b3vZm0RJpoiMEkc+ixSm", "CrossServerAllianceWarPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Components/Components"),
            y = e("../../../Util/TimeUtil"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../../Consts/Consts"),
            I = e("./AllianceBaseMainPanel"),
            _ = e("../Components/CrossServerAllianceVSInfoComponent"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../Battle/BattleManager"),
            b = e("../../RedDot/RedDotManager"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.DescTime = null, t.Time = null, t.TImesRichText = null, t.RewardButton = null, t.RewardLabel = null, t.RankButton = null, t.RankLabel = null, t.EnemyNode = null, t.EnemyEmptyNode = null, t.EmptyLabel = null, t.DescNode = null, t.DescRichText = null, t.ButtonsNode = null, t.SpyButton = null, t.SpyLabel = null, t.ProtectionButton = null, t.ProtectionLabel = null, t.AttackButton = null, t.AttackLabel = null, t.ReturnButton = null, t.SelfVsInfo = null, t.EnemyVsInfo = null, t.VsNode = null, t.RoundNode = null, t.LastRankButton = null, t.LastRankLabel = null, t.DescLimitNode = null, t.LimitDesc = null, t.LimitLevel = null, t.LimitCount = null, t.DescButton = null, t.LimitBgNode = null, t.RuleLabel = null, t.DescUnlockNode = null, t.WaitLabel = null, t.TimeDesc = null, t.RealTime = null, t.TopTimeNode = null, t.SettleTimeNode = null, t.SettleDescTime = null, t.SettleTime = null, t._isRedisplay = !1, t._data = null, t._type = 0, t._altas = null, t._times = 0, t._isShowLimitRule = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._altas ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas)]);
                                case 1:
                                    e._altas = t.sent(), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "allianceWar_title".ToUILocale(), this.RewardLabel.string = "reward".ToUILocale(), this.RankLabel.string = "allianceWar_alliance_rank".ToUILocale(), this.SpyLabel.string = "allianceWar_spy_time".ToUILocale(), this.ProtectionLabel.string = "allianceWar_protect_time".ToUILocale(), this.AttackLabel.string = "allianceWar_attack_time".ToUILocale(), this.LastRankLabel.string = "crossServer_last_rank".ToUILocale(), this.LimitDesc.string = "allianceWar_limit_hint".ToUILocale(), this.WaitLabel.string = "allianceWar_next_open".ToUILocale(), this.TimeDesc.string = "allianceWar_openTime".ToUILocale(), this.SettleDescTime.string = "allianceWar_settle_time".ToUILocale(), this.RuleLabel.string = "allianceWar_limit_rule".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnBtnClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.SpyButton.node.on("click", this.OnSpyButtonClick, this), this.ProtectionButton.node.on("click", this.OnProtectionButtonClick, this), this.AttackButton.node.on("click", this.OnAttackButtonClick, this), this.LastRankButton.node.on("click", this.OnLastRankButtonClick, this), this.DescButton.node.on("click", this.OnDescButtonClick, this), this.LimitBgNode.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isRedisplay = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._isRedisplay || this.SetTime();
                    var e = y.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime);
                    this._data && this._data.MyAlliance && this._data.MyAlliance.Data[e] ? (this.SetCurTimes(), this.SetVsInfo(), this.SetBottom(), this.SetRemainTeam()) : (this.RoundNode.active = !1, this.VsNode.active = !1, this.ButtonsNode.active = !1, this.SetBottom())
                }, t.prototype.SetTime = function() {
                    this.SetNextOpenTime(), this.CountDownTime(), this.schedule(this.CountDownTime, 1)
                }, t.prototype.CountDownTime = function() {
                    var e = I.default.GetCrossServerAllianceTimeType();
                    if (e != this._type || 3 == e) {
                        switch (this._type = e, this._type) {
                            case 0:
                                this.DescTime.string = "allianceWar_stop_time".ToUILocale(), this.Time.string = "00:00~24:00", this.TopTimeNode.active = !0, this.SettleTimeNode.active = !1;
                                break;
                            case 1:
                                this.DescTime.string = "allianceWar_prepare_time".ToUILocale(), this.Time.string = "01:00~12:00", this.TopTimeNode.active = !0, this.SettleTimeNode.active = !1;
                                break;
                            case 2:
                                this.DescTime.string = "allianceWar_attack_moment".ToUILocale(), this.Time.string = "12:00~23:00", this.TopTimeNode.active = !0, this.SettleTimeNode.active = !1;
                                break;
                            case 3:
                                var t = y.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime);
                                if (this._data.MyAlliance && this._data.MyAlliance.Data && this._data.MyAlliance.Data[t]) {
                                    this.TopTimeNode.active = !1, this.SettleTimeNode.active = !0;
                                    var n = this._nextOpenTime - d.RpcComponent.Instance.ServerTime;
                                    n < 0 ? this.SettleTimeNode.active = !1 : this.SettleTime.string = C.default.ActivityTimeLeftFormat(n)
                                } else this.DescTime.string = "allianceWar_end_time".ToUILocale(), this.Time.string = "23:00~01:00", this.TopTimeNode.active = !0, this.SettleTimeNode.active = !1
                        }
                        var o = y.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime);
                        this._data && this._data.MyAlliance && this._data.MyAlliance.Data && this._data.MyAlliance.Data[o] && this.SetBottom()
                    }
                }, t.prototype.SetVsInfo = function() {
                    this.EnemyNode.active = !1, this.EnemyEmptyNode.active = !1;
                    var e = y.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime),
                        t = this._data.MyAlliance.Data[e];
                    t && t.EnemyId ? (this.EnemyNode.active = !0, this.EnemyVsInfo.InitUI(this._data.EnemyAlliance, this._data.MyAlliance, this._altas)) : this.EnemyEmptyNode.active = !0, this.SelfVsInfo.InitUI(this._data.MyAlliance, this._data.EnemyAlliance, this._altas), this.TImesRichText.string = "allianceWar_round".ToUILocale().Fmt(this._times)
                }, t.prototype.SetBottom = function() {
                    this.DescNode.active = !1, this.ButtonsNode.active = !1, this.SpyButton.node.active = !1, this.ProtectionButton.node.active = !1, this.AttackButton.node.active = !1, this.DescLimitNode.active = !1, this.DescUnlockNode.active = !1, this.SettleTimeNode.active = !1;
                    var e = y.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime),
                        t = this._data.MyAlliance && this._data.MyAlliance.Data && this._data.MyAlliance.Data[e];
                    if (t)
                        if (t.EnemyId) switch (this.ButtonsNode.active = !0, this._type) {
                            case 1:
                                this.SpyButton.node.active = !0, this.ProtectionButton.node.active = !0;
                                break;
                            case 2:
                                this.AttackButton.node.active = !0, this.DescNode.active = !0;
                                var n = f.DataCenter.Instance.GetIntData(p.UserDataKey.AllianceChallengeStatus),
                                    o = C.default.GetBit(n, 2),
                                    r = C.default.GetBit(n, 3),
                                    i = C.default.GetBit(n, 4),
                                    a = 1,
                                    s = "#6ceea6";
                                (o && r || i) && (a = 0, s = "#ff4b4b"), this.DescRichText.string = "allianceWar_today_attack_times".ToUILocale().Fmt(s, a, 1);
                                break;
                            case 3:
                                this.SettleTimeNode.active = !0
                        } else this.DescNode.active = !0, this.DescRichText.string = "allianceWar_null".ToUILocale(), this.SettleTimeNode.active = !0;
                        else {
                            var l = f.DataCenter.Instance.AllianceInfo,
                                c = 0;
                            l && l.Level && (c = l.Level), this._limitLevel = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneAllianceChallengeLevel"), this._limitCount = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneAllianceChallengeMemberCount"), c < this._limitLevel || this._data.Count < this._limitCount ? (this.DescLimitNode.active = !0, this.SetLimitNode()) : (this.DescUnlockNode.active = !0, this.SetUnlockNode())
                        }
                }, t.prototype.SetLimitNode = function() {
                    var e = f.DataCenter.Instance.AllianceInfo,
                        t = 0;
                    e && e.Level && (t = e.Level);
                    var n = e.Level >= this._limitLevel ? "#ffffff" : "#ff403e";
                    this.LimitLevel.string = "allianceWar_limit_level".ToUILocale().Fmt(t, this._limitLevel, n);
                    var o = this._data.Count >= this._limitCount ? "#ffffff" : "#ff403e";
                    this.LimitCount.string = "allianceWar_limit_count".ToUILocale().Fmt(this._data.Count, this._limitCount, o)
                }, t.prototype.SetNextOpenTime = function() {
                    for (var e = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, p.LevelParamType.AllianceChallengeOpenTime), t = y.TimeUtil.GetWeekDay(f.RpcComponent.Instance.ServerTime), n = y.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime), o = 0; o < e.Data.length; o++) {
                        var r = e.Data[o];
                        if (t < r) {
                            this._nextOpenTime = (r - t) * m.Etc.DayDuration + n + 1 * m.Etc.HourDuration;
                            break
                        }
                        t == r && e.Data[e.Data.length - 1] == t && (this._nextOpenTime = (7 - r + e.Data[0]) * m.Etc.DayDuration + n + 1 * m.Etc.HourDuration)
                    }
                }, t.prototype.SetUnlockNode = function() {
                    this.SetNextOpenTime(), this.SetOpenCountDown(), this.unschedule(this.SetOpenCountDown), this.schedule(this.SetOpenCountDown, 1)
                }, t.prototype.SetOpenCountDown = function() {
                    var e = this._nextOpenTime - d.RpcComponent.Instance.ServerTime;
                    e < 0 ? (this.unschedule(this.SetOpenCountDown), this.DescUnlockNode.active = !1) : this.RealTime.string = C.default.ActivityTimeLeftFormat(e)
                }, t.prototype.SetRemainTeam = function() {
                    var e = this,
                        t = [];
                    if (this._data && this._data.EnemyAlliance) {
                        var o = y.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime),
                            r = this._data.EnemyAlliance.Data[o];
                        if (r && (r.Player.forEach(function(e) {
                                !e.Items[2] && e.Items[0] > 0 && t.push(e.Items[0])
                            }), t.length > 0)) {
                            var i = new c.Req_Player_GetPlayerFormations;
                            i.Uids = t, i.Id = p.FormationIdType.AllianceChallengeDefend2, d.RpcComponent.Instance.Call(i, function(t) {
                                var o = 0;
                                t.Formations.forEach(function(e) {
                                    e.Heros && e.Heros.length > 0 && o++
                                }), n.RemainTeam = o, b.RedDotManager.Instance.Bind(e.AttackButton.node, b.RedDotManager.Instance.RedDot.AllianceAttackBtnNode)
                            })
                        }
                    }
                    0 == t.length && (n.RemainTeam = 0, b.RedDotManager.Instance.Bind(this.AttackButton.node, b.RedDotManager.Instance.RedDot.AllianceAttackBtnNode))
                }, t.prototype.SetCurTimes = function() {
                    this._times = n.GetTimes([1, 2, 3, 4, 5, 6, 7], this._data.MyAlliance.Season, f.RpcComponent.Instance.ServerTime)
                }, t.GetTimes = function(e, t, n) {
                    for (var o = y.TimeUtil.GetDiffDays(t, n, !0), r = o % 7, i = Math.floor(o / 7) * e.length, a = 0, s = e.length - 1; s >= 0; s--)
                        if (r + 1 >= e[s]) {
                            a = s + 1;
                            break
                        } return i + a
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "allianceWar_title".ToUILocale(),
                        titles: ["allianceWar_rule_sub".ToUILocale()],
                        contents: ["allianceWar_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnBtnClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRewardButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceRewardPanel.Path)
                }, t.prototype.OnRankButtonClick = function() {
                    var e = y.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime),
                        t = e + 23 * m.Etc.HourDuration,
                        n = e + 23 * m.Etc.HourDuration + 10 * m.Etc.MinuteDuration;
                    if (f.RpcComponent.Instance.ServerTime >= t && f.RpcComponent.Instance.ServerTime < n) return h.UIUtlity.ShowFloatingHint("allianceWar_settleing".ToUILocale());
                    var o = new c.Req_Player_GetRank;
                    o.RankType = p.RankTypeId.CrossZoneAllianceChallenge, f.RpcComponent.Instance.Call(o, this.ShowAllianceRank.bind(this))
                }, t.prototype.ShowAllianceRank = function(e) {
                    if (0 == e.Data.Rows.length) return h.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale());
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.RankDetailPanel.Path, p.RankTypeId.CrossZoneAllianceChallenge, e.Data.Rows, e.Data.Achievements, e.MyRank, e.MyRankData)
                }, t.prototype.OnSpyButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceFightInfoPanel.Path, this._data, 1)
                }, t.prototype.OnProtectionButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceFightInfoPanel.Path, this._data, 0)
                }, t.prototype.OnAttackButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CrossServerAllianceFightInfoPanel.Path, this._data, 1)
                }, t.prototype.OnLastRankButtonClick = function() {
                    var e = new c.Req_Player_GetRank;
                    e.RankType = p.RankTypeId.CrossZoneAllianceChallengePrevious, f.RpcComponent.Instance.Call(e, this.ShowAllianceRank.bind(this))
                }, t.prototype.OnDescButtonClick = function() {
                    this._isShowLimitRule = !this._isShowLimitRule, this.LimitBgNode.active = this._isShowLimitRule
                }, t.prototype.OnTouch = function() {
                    this._isShowLimitRule = !1, this.LimitBgNode.active = !1
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.CountDownTime)
                }, t.InitBattle = function() {
                    l.Game.EventDispatcher.Only(p.GameEventIds.StartBattle.Fmt(p.MapType.CrossZoneAllianceChallenge), n.StartBattle, n), l.Game.EventDispatcher.Only(p.GameEventIds.SettleBattle.Fmt(p.MapType.CrossZoneAllianceChallenge), n.SettleBattle, n)
                }, t.StartBattle = function(e) {
                    void 0 === e && (e = !1);
                    var t = !1;
                    C.default.Instance.IsGameModuleOpen(p.GameModuleType.CrossZoneAllianceChallengeSkip) && C.default.Instance.IsGameModuleUnlock(p.GameModuleType.CrossZoneAllianceChallengeSkip)[0] && (t = !0);
                    var o, r = n.BattleInfo.Reports[0],
                        i = {};
                    i = {
                        Reports: [r],
                        ExtraParam: o = {
                            CanSkipPlay: t,
                            CanPlayInBackground: !1,
                            CanRestart: !1,
                            CanCanel: !1
                        }
                    }, i = v.BattleManager.Instance.StartPlay(r, o), e && (i.SettleParams = [n.BattleInfo])
                }, t.SettleBattle = function(e) {
                    if (e.SettleParams) {
                        var t = n.settlement_prefab_path;
                        n.CheckIsSelfWin(e.SettleParams[0]) ? v.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementWinPanel.Path, t, e) : v.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementFailPanel.Path, t, e)
                    } else n.BattleInfo && n.BattleInfo.Reports ? n.RequestCrossServerRankSettlement(n.BattleInfo.Reports) : n.RequestCrossServerRankSettlement(e.Reports)
                }, t.RequestCrossServerRankSettlement = function(e) {
                    var t = {
                            Reports: e,
                            MapType: m.MapType.CrossZoneAllianceChallenge
                        },
                        o = new c.Req_Map_BattleSettlement;
                    o.MapType = t.MapType, f.RpcComponent.Instance.Call(o, function(o) {
                        var r = n.settlement_prefab_path;
                        n.CheckAllReports(e) ? (t.SettleParams = [JSON.parse(o.StringParam)], v.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementWinPanel.Path, r, t, o.Rewards)) : (t.SettleParams = [JSON.parse(o.StringParam)], v.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementFailPanel.Path, r, t, o.Rewards))
                    })
                }, t.CheckIsSelfWin = function(e) {
                    var t = e.Reports[0].Players.find(function(e) {
                        return e.Uid == f.DataCenter.Instance.Uid
                    });
                    return t ? t.Camp == m.CampType.Attacker && 1 == e.Data.Result || t.Camp == m.CampType.Defender && 1 != e.Data.Result : 1 == e.Data.Result
                }, t.CheckAllReports = function(e) {
                    var t = 0,
                        n = 0,
                        o = e[0].Players.find(function(e) {
                            return e.Uid == f.DataCenter.Instance.Uid
                        });
                    return e.forEach(function(e) {
                        o && (o.Camp == m.CampType.Attacker && e.Result == p.BattleResult.AttackerWin || o.Camp == m.CampType.Defender && (e.Result == p.BattleResult.DefenderWin || e.Result == p.BattleResult.Timeout) ? t++ : n++)
                    }), t > n
                }, t.settlement_prefab_path = "CrossServerAllianceWarPanel/SubItems/CrossServerAllianceSettlementItem", t.RemainTeam = 0, t.BattleInfo = null, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.Label)], t.prototype, "DescTime", void 0), i([P(cc.Label)], t.prototype, "Time", void 0), i([P(cc.RichText)], t.prototype, "TImesRichText", void 0), i([P(cc.Button)], t.prototype, "RewardButton", void 0), i([P(cc.Label)], t.prototype, "RewardLabel", void 0), i([P(cc.Button)], t.prototype, "RankButton", void 0), i([P(cc.Label)], t.prototype, "RankLabel", void 0), i([P(cc.Node)], t.prototype, "EnemyNode", void 0), i([P(cc.Node)], t.prototype, "EnemyEmptyNode", void 0), i([P(cc.Label)], t.prototype, "EmptyLabel", void 0), i([P(cc.Node)], t.prototype, "DescNode", void 0), i([P(cc.RichText)], t.prototype, "DescRichText", void 0), i([P(cc.Node)], t.prototype, "ButtonsNode", void 0), i([P(cc.Button)], t.prototype, "SpyButton", void 0), i([P(cc.Label)], t.prototype, "SpyLabel", void 0), i([P(cc.Button)], t.prototype, "ProtectionButton", void 0), i([P(cc.Label)], t.prototype, "ProtectionLabel", void 0), i([P(cc.Button)], t.prototype, "AttackButton", void 0), i([P(cc.Label)], t.prototype, "AttackLabel", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([P(_.default)], t.prototype, "SelfVsInfo", void 0), i([P(_.default)], t.prototype, "EnemyVsInfo", void 0), i([P(cc.Node)], t.prototype, "VsNode", void 0), i([P(cc.Node)], t.prototype, "RoundNode", void 0), i([P(cc.Button)], t.prototype, "LastRankButton", void 0), i([P(cc.Label)], t.prototype, "LastRankLabel", void 0), i([P(cc.Node)], t.prototype, "DescLimitNode", void 0), i([P(cc.Label)], t.prototype, "LimitDesc", void 0), i([P(cc.RichText)], t.prototype, "LimitLevel", void 0), i([P(cc.RichText)], t.prototype, "LimitCount", void 0), i([P(cc.Button)], t.prototype, "DescButton", void 0), i([P(cc.Node)], t.prototype, "LimitBgNode", void 0), i([P(cc.Label)], t.prototype, "RuleLabel", void 0), i([P(cc.Node)], t.prototype, "DescUnlockNode", void 0), i([P(cc.Label)], t.prototype, "WaitLabel", void 0), i([P(cc.Label)], t.prototype, "TimeDesc", void 0), i([P(cc.Label)], t.prototype, "RealTime", void 0), i([P(cc.Node)], t.prototype, "TopTimeNode", void 0), i([P(cc.Node)], t.prototype, "SettleTimeNode", void 0), i([P(cc.Label)], t.prototype, "SettleDescTime", void 0), i([P(cc.Label)], t.prototype, "SettleTime", void 0), n = i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CrossServerAllianceVSInfoComponent": "CrossServerAllianceVSInfoComponent",
        "./AllianceBaseMainPanel": "AllianceBaseMainPanel"
    }],
    CrossServerAllianceWarResultTip: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9fc0caoqIZDEaPSHhYpT/El", "CrossServerAllianceWarResultTip");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../../Util/TimeUtil"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../Consts/Etc"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.TimeTipLabel = null, t.AllianceFlagSpriteArray = [], t.AllianceIconSpriteArray = [], t.NameLabelArray = [], t.AllianceNameLabelArray = [], t.LevelLabelArray = [], t.NumCountLabelArray = [], t.ServerLabelArray = [], t.PowerTagLabelArray = [], t.PowerValueLabelArray = [], t.OKButton = null, t.OKButtonLabel = null, t._allianceAtlas = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("AllianceBasePanel/PNG/allianceBase", cc.SpriteAtlas)];
                                case 1:
                                    return t._allianceAtlas = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OKButtonLabel.string = "button_confirm".ToUILocale(), this.OKButton.node.on("click", this.Close, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._allianceDataArray = t[0], this.SetTimeInfo(), this.SetAllianceInfo()
                }, t.prototype.SetTimeInfo = function() {
                    var e = c.default.GetNextMonday0ClockTs() - 14 * h.Etc.DayDuration,
                        t = e + 7 * h.Etc.DayDuration,
                        n = u.TimeUtil.Format("YYYY/MM/DD", e) + u.TimeUtil.Format("YYYY/MM/DD", t);
                    this.TimeTipLabel.string = "CrossServerChampion_RankingTip_Time".ToUILocale().Fmt(n)
                }, t.prototype.SetAllianceInfo = function() {
                    for (var e = 0; e < 3; e++) {
                        var t = this._allianceDataArray[e];
                        if (t) {
                            this.NameLabelArray[e].string = t.AllianceInfo.LeaderName, this.AllianceNameLabelArray[e].string = t.AllianceInfo.Name, this.LevelLabelArray[e].string = "Lv." + t.AllianceInfo.Level;
                            var n = p.ConfigDataComponent.Instance.GetConfigById(d.AllianceLevel_Config, t.AllianceInfo.Level);
                            this.NumCountLabelArray[e].string = t.AllianceInfo.MemberCount + "/" + n.MemberCount, this.ServerLabelArray[e].string = "[S" + t.Zone + "]", this.PowerTagLabelArray[e].string = "totalPower".ToUILocale(), this.PowerValueLabelArray[e].string = t.AllianceInfo.Power.toString();
                            var o = t.AllianceInfo.Icon,
                                r = p.ConfigDataComponent.Instance.GetConfigById(d.AllianceIcon_Config, o),
                                i = r.LogoID,
                                a = r.FlagID;
                            this.AllianceFlagSpriteArray[e].spriteFrame = this._allianceAtlas.getSpriteFrame("flagBg" + a), this.AllianceIconSpriteArray[e].spriteFrame = this._allianceAtlas.getSpriteFrame("flagLogo" + i)
                        }
                    }
                }, i([g(cc.Label)], t.prototype, "TimeTipLabel", void 0), i([g([cc.Sprite])], t.prototype, "AllianceFlagSpriteArray", void 0), i([g([cc.Sprite])], t.prototype, "AllianceIconSpriteArray", void 0), i([g([cc.Label])], t.prototype, "NameLabelArray", void 0), i([g([cc.Label])], t.prototype, "AllianceNameLabelArray", void 0), i([g([cc.Label])], t.prototype, "LevelLabelArray", void 0), i([g([cc.Label])], t.prototype, "NumCountLabelArray", void 0), i([g([cc.Label])], t.prototype, "ServerLabelArray", void 0), i([g([cc.Label])], t.prototype, "PowerTagLabelArray", void 0), i([g([cc.Label])], t.prototype, "PowerValueLabelArray", void 0), i([g(cc.Button)], t.prototype, "OKButton", void 0), i([g(cc.Label)], t.prototype, "OKButtonLabel", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    CrossServerBattleReportItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7d366m69yVBBJ365Z+4Llvj", "CrossServerBattleReportItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../../Util/TimeUtil"),
            p = e("../../Components/DataCenter"),
            d = e("./HeadComponent"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttackerTag = null, t.DefenderTag = null, t.WinTag = null, t.LoseTag = null, t.ScoreUpLabel = null, t.ScoreDownLabel = null, t.ScoreUpTag = null, t.ScoreDownTag = null, t.HeaderPos = null, t.PlayerName = null, t.DateLabel = null, t.TimeLabel = null, t.ReplayButton = null, t.DesignationSprite = null, t._reportData = null, t._panelInstance = null, t._spriteFrame = null, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ReplayButton.node.on("click", this.OnReplayButtonClicked, this)
                }, t.prototype.Init = function(e, t) {
                    null == this._headComponent && (this._headComponent = cc.instantiate(t.HeadPrefab).getComponent(d.default), this._headComponent.node.parent = this.HeaderPos), this._reportData = e, this._panelInstance = t;
                    var n = p.DataCenter.Instance.Uid == e.AttackerInfo.Uid,
                        o = n ? e.AttackerInfo.Value1 : e.DefenderInfo.Value1,
                        r = n ? e.DefenderInfo : e.AttackerInfo,
                        i = e.IntParams[0] - o;
                    this.AttackerTag.node.active = n, this.DefenderTag.node.active = !n;
                    var a = !1;
                    n && e.Result ? a = !0 : n || e.Result || (a = !0), a ? (this.ScoreUpLabel.string = "+" + i, this.ScoreUpLabel.node.active = !0, this.ScoreDownLabel.node.active = !1) : (this.ScoreUpLabel.node.active = !1, this.ScoreDownLabel.string = (e.IntParams[1] - r.Value1).toString(), this.ScoreDownLabel.node.active = !0), this.WinTag.node.active = a, this.LoseTag.node.active = !this.WinTag.node.active, this.ScoreUpTag.node.active = this.WinTag.node.active, this.ScoreDownTag.node.active = this.LoseTag.node.active, this._headComponent.SetUI(r.HeadIcon, r.HeadFrame), this._headComponent.SetLevel(r.Level), this.PlayerName.string = r.Name, h.default.SetDesignationIcon(r.Designation, this.DesignationSprite), this.DateLabel.string = u.TimeUtil.Format("YYYY/MM/DD", e.Ts), this.TimeLabel.string = u.TimeUtil.Format("HH:mm:ss", e.Ts)
                }, t.prototype.SetResourceIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = h.default.Instance.GetItemPathById(c.CommonItemId.SeniorArenaCoin), [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._unloadAssets.push(t), this._spriteFrame = t, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.OnReplayButtonClicked = function() {
                    this._panelInstance.OnReplayButtonClicked(this._reportData)
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([g(cc.Sprite)], t.prototype, "AttackerTag", void 0), i([g(cc.Sprite)], t.prototype, "DefenderTag", void 0), i([g(cc.Sprite)], t.prototype, "WinTag", void 0), i([g(cc.Sprite)], t.prototype, "LoseTag", void 0), i([g(cc.Label)], t.prototype, "ScoreUpLabel", void 0), i([g(cc.Label)], t.prototype, "ScoreDownLabel", void 0), i([g(cc.Sprite)], t.prototype, "ScoreUpTag", void 0), i([g(cc.Sprite)], t.prototype, "ScoreDownTag", void 0), i([g(cc.Node)], t.prototype, "HeaderPos", void 0), i([g(cc.Label)], t.prototype, "PlayerName", void 0), i([g(cc.Label)], t.prototype, "DateLabel", void 0), i([g(cc.Label)], t.prototype, "TimeLabel", void 0), i([g(cc.Button)], t.prototype, "ReplayButton", void 0), i([g(cc.Sprite)], t.prototype, "DesignationSprite", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/DataCenter": "DataCenter",
        "./HeadComponent": "HeadComponent"
    }],
    CrossServerBattleReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "39c2cOa465P6JLmiNvJpmER", "CrossServerBattleReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Components/RpcComponent"),
            p = e("../Components/CrossServerBattleReportItem"),
            d = e("../Components/CustomLayout"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../Battle/BattleManager"),
            y = e("../../../Consts/Consts"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.PanelNameLabel = null, t.EmptyTipLabel = null, t.ReportScrollView = null, t.ReportListContainer = null, t._customLayout = null, t._reportsData = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshRankList, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshRankList, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerPortPanel/CrossServerBattleReportItem"), n = this.LoadDynamicAsset(g.BundlePath.HeadComponent), [4, Promise.all([t, n]).then(function(e) {
                                        o._listItemPrefab = e[0], o.HeadPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelNameLabel.string = "allianceWar_report".ToUILocale(), this.EmptyTipLabel.string = "arena_reportPanelEmptyDesc".ToUILocale(), this._customLayout = this.ReportListContainer.getComponent(d.default)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.sendRequest()
                }, t.prototype.sendRequest = function() {
                    var e = new h.Req_Player_GetBattleMessages;
                    e.Type = y.BattleMessageType.LadderRace, u.RpcComponent.Instance.Call(e, this.OnRequestSuccess.bind(this))
                }, t.prototype.OnRequestSuccess = function(e) {
                    this._reportsData = e.Data, this._reportsData.sort(function(e, t) {
                        return e.Ts > t.Ts ? -1 : 1
                    }), this._reportsData.length > 0 ? (this.EmptyTipLabel.node.active = !1, this.SetListView()) : this.EmptyTipLabel.node.active = !0
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._customLayout.Init(this._listItemPrefab), this._customLayout.RenderLayOut(this._reportsData.length), [2]
                        })
                    })
                }, t.prototype.OnRefreshRankList = function(e, t) {
                    var n = this;
                    this._customLayout == t && e.forEach(function(e, t) {
                        e.getComponent(p.default).Init(n._reportsData[t], n)
                    })
                }, t.prototype.OnReplayButtonClicked = function(e) {
                    var t = new h.Req_Player_GetCommonReport;
                    t.Id = e.Report, u.RpcComponent.Instance.Call(t, function(t) {
                        f.BattleManager.Instance.StartPlay(t.Reports[0], {
                            CanCanel: !1,
                            CanRestart: !1,
                            CanPlayInBackground: !1,
                            CanSkipPlay: !0
                        }).SettleParams = [e]
                    })
                }, i([_(cc.Label)], t.prototype, "PanelNameLabel", void 0), i([_(cc.Label)], t.prototype, "EmptyTipLabel", void 0), i([_(cc.ScrollView)], t.prototype, "ReportScrollView", void 0), i([_(cc.Node)], t.prototype, "ReportListContainer", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CrossServerBattleReportItem": "CrossServerBattleReportItem",
        "../Components/CustomLayout": "CustomLayout"
    }],
    CrossServerChampionReportItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6c3f769Um5FbJ6BS+Y7i6Li", "CrossServerChampionReportItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Components/Components"),
            h = e("../../Components/RpcComponent"),
            f = e("../Panel/CrossServerChampionShipPanel"),
            y = e("../Panel/CrossServerChampionStartPanel"),
            g = e("./HeadComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RoundLabel = null, t.GuessResult = null, t.GuessItemIcon = null, t.ScoreTagLabel = null, t.ScoreCountLabel = null, t.LeftPlayerHeaderRoot = null, t.LeftPlayerNameLabel = null, t.LeftPlayerZoneLabel = null, t.LeftPlayerWinIcon = null, t.LeftPlayerLoseIcon = null, t.RightPlayerHeaderRoot = null, t.RightPlayerNameLabel = null, t.RightPlayerZoneLabel = null, t.RightPlayerWinIcon = null, t.RightPlayerLoseIcon = null, t.ReplayButton = null, t.LeftWinBgNode = null, t.RightWinBgNode = null, t.SCORE_COLORS = [new cc.Color(110, 238, 167), new cc.Color(255, 64, 62)], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ScoreTagLabel.string = "activityBoss_score".ToUILocale(), this.ReplayButton.node.on("click", this.OnReplayButtonClicked, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    this._currentItemType = e, this._currentChampionType = t, this._currentBattleInfo = o, this._groupRound = n, this.SetMatchInfoView(), this.SetPlayerInfoView(r), i && (this.GuessItemIcon.spriteFrame = i)
                }, t.prototype.SetMatchInfoView = function() {
                    var e, t;
                    if (this.ScoreTagLabel.node.active = 0 == this._currentItemType, this.GuessItemIcon.node.active = !this.ScoreTagLabel.node.active, this._currentChampionType == y.ChampionShipType.Normal && (this._currentBattleInfo.IntParams[0] >= 0 ? (this.ScoreCountLabel.string = "+" + this._currentBattleInfo.IntParams[0], this.ScoreCountLabel.node.color = this.SCORE_COLORS[0]) : (this.ScoreCountLabel.string = this._currentBattleInfo.IntParams[0].toString(), this.ScoreCountLabel.node.color = this.SCORE_COLORS[1])), 0 == this._currentItemType) e = this._currentBattleInfo.IntParams[1], this.GuessResult.node.active = !1, this.ScoreCountLabel.node.active = this._currentChampionType == y.ChampionShipType.Normal;
                    else {
                        t = this._currentBattleInfo.IntParams[1], e = this._currentBattleInfo.IntParams[2];
                        var n = t == this._currentBattleInfo.Result;
                        if (this.GuessResult.string = n ? "CrossServerChampionReportItem_GuessRight".ToUILocale() : "CrossServerChampionReportItem_GuessWring".ToUILocale(), this.GuessResult.node.color = n ? new cc.Color(110, 238, 167) : new cc.Color(255, 64, 62), this._currentChampionType == y.ChampionShipType.AllZone) {
                            var o = d.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, u.LevelParamType.AllZoneChampionBetRightReward).Data2[0].Items[1],
                                r = d.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, u.LevelParamType.AllZoneChampionBetWrongReward).Data2[0].Items[1];
                            this.ScoreCountLabel.string = "+" + (n ? o : r), this.ScoreCountLabel.node.color = this.SCORE_COLORS[0]
                        }
                    }
                    this.RoundLabel.string = p.default.GetChampionShipRoundStringByRound(this._currentChampionType, e, this._groupRound)
                }, t.prototype.SetPlayerInfoView = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function() {
                            return t = f.default.RejustBattleResultAndReports(this._currentBattleInfo.AttackerInfo, this._currentBattleInfo.DefenderInfo, this._currentBattleInfo.Result), n = t[0], o = t[1], r = t[2], t[3], this._leftPlayerInfo = n, this._rightPlayerInfo = o, this._isLeftPlayerWin = 1 == r, this.LeftPlayerNameLabel.string = this._leftPlayerInfo.Name, this.LeftPlayerZoneLabel.string = "[" + this._leftPlayerInfo.Zone + "]", this.RightPlayerNameLabel.string = this._rightPlayerInfo.Name, this.RightPlayerZoneLabel.string = "[" + this._rightPlayerInfo.Zone + "]", this.LeftPlayerWinIcon.node.active = this._isLeftPlayerWin, this.LeftPlayerLoseIcon.node.active = !this.LeftPlayerWinIcon.node.active, this.RightPlayerWinIcon.node.active = !this.LeftPlayerWinIcon.node.active, this.RightPlayerLoseIcon.node.active = this.LeftPlayerWinIcon.node.active, this.LeftWinBgNode.active = this.LeftPlayerWinIcon.node.active, this.RightWinBgNode.active = !this.LeftWinBgNode.active, this.RenderHeaderView(this.LeftPlayerHeaderRoot, this._leftPlayerInfo, e), this.RenderHeaderView(this.RightPlayerHeaderRoot, this._rightPlayerInfo, e), [2]
                        })
                    })
                }, t.prototype.RenderHeaderView = function(e, t, n) {
                    var o = cc.instantiate(n),
                        r = o.getComponent(g.default);
                    o.setParent(e), r.SetUI(t.HeadIcon, t.HeadFrame, t.Title), r.SetLevel(t.Level)
                }, t.prototype.OnReplayButtonClicked = function() {
                    var e = this,
                        t = new c.Req_Player_GetCommonReport;
                    t.Id = this._currentBattleInfo.Report, h.RpcComponent.Instance.Call(t, function(t) {
                        var n = f.default.RejustBattleResultAndReports(e._currentBattleInfo.AttackerInfo, e._currentBattleInfo.DefenderInfo, e._currentBattleInfo.Result, t.Reports),
                            o = (n[0], n[1], n[2], n[3]);
                        f.default.BattleInfo = {
                            Result: e._isLeftPlayerWin ? 1 : 0,
                            AttackerInfo: e._leftPlayerInfo,
                            DefenderInfo: e._rightPlayerInfo
                        }, f.default.Reports = o, f.default.StartBattle(f.default.MapTypesByChampionType[e._currentChampionType], e._currentRoundString)
                    })
                }, i([_(cc.Label)], t.prototype, "RoundLabel", void 0), i([_(cc.Label)], t.prototype, "GuessResult", void 0), i([_(cc.Sprite)], t.prototype, "GuessItemIcon", void 0), i([_(cc.Label)], t.prototype, "ScoreTagLabel", void 0), i([_(cc.Label)], t.prototype, "ScoreCountLabel", void 0), i([_(cc.Node)], t.prototype, "LeftPlayerHeaderRoot", void 0), i([_(cc.Label)], t.prototype, "LeftPlayerNameLabel", void 0), i([_(cc.Label)], t.prototype, "LeftPlayerZoneLabel", void 0), i([_(cc.Sprite)], t.prototype, "LeftPlayerWinIcon", void 0), i([_(cc.Sprite)], t.prototype, "LeftPlayerLoseIcon", void 0), i([_(cc.Node)], t.prototype, "RightPlayerHeaderRoot", void 0), i([_(cc.Label)], t.prototype, "RightPlayerNameLabel", void 0), i([_(cc.Label)], t.prototype, "RightPlayerZoneLabel", void 0), i([_(cc.Sprite)], t.prototype, "RightPlayerWinIcon", void 0), i([_(cc.Sprite)], t.prototype, "RightPlayerLoseIcon", void 0), i([_(cc.Button)], t.prototype, "ReplayButton", void 0), i([_(cc.Node)], t.prototype, "LeftWinBgNode", void 0), i([_(cc.Node)], t.prototype, "RightWinBgNode", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../Panel/CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "../Panel/CrossServerChampionStartPanel": "CrossServerChampionStartPanel",
        "./HeadComponent": "HeadComponent"
    }],
    CrossServerChampionReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eac4a25UmVCcZ/NrM3qP7Wt", "CrossServerChampionReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/DataCenter"),
            f = e("../Components/CrossServerChampionReportItem"),
            y = e("../Components/CustomLayout"),
            g = e("./CrossServerChampionStartPanel"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.PanelTitleLabel = null, t.ScoreNode = null, t.ScoreTagLabel = null, t.ScoreLabel = null, t.GuessCoinIcon = null, t.ContenLayout = null, t._scoreLabelColors = [new cc.Color(254, 217, 74, 255), new cc.Color(255, 255, 255, 255)], t._itemCount = 0, t._groupRound = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshList, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshList, this)
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = u.default.Instance.GetItemPathById(this._currencyId), [4, Promise.all([this.LoadDynamicAsset(d.BundlePath.HeadComponent), this.LoadDynamicAsset("CrossServerChampionShip/Private/CrossServerChampionReportItem"), this.LoadDynamicAsset(t)]).then(function(e) {
                                        if (!n.isValid) return l.AssetsManager.Instance.UnloadAsset(e[0]), l.AssetsManager.Instance.UnloadAsset(e[1]), void l.AssetsManager.Instance.UnloadAsset(e[2]);
                                        n._headerPrefab = e[0], n._reportItemPrefab = e[1], n._currencyIconSprite = e[2]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ScoreTagLabel.string = "CrossServerChampionReportPanel_ScoreTag".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._currentPanelType = t[0], this._battleInfos = t[1].Reports, this._groupRound = t[1].ScoreRound, this._currentChampionType = t[2], this._currencyId = this._currentChampionType == g.ChampionShipType.Normal ? c.CommonItemId.ChampionGuessCoin : c.CommonItemId.ChampinonCoin
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetPanelInfo(), this.SetListView()
                }, t.prototype.SetPanelInfo = function() {
                    var e = this;
                    this.GuessCoinIcon.spriteFrame = this._currencyIconSprite, this.PanelTitleLabel.string = 0 == this._currentPanelType ? "allianceWar_report".ToUILocale() : "CrossServerChampionReportPanel_GuessHistoryTitle".ToUILocale(), this.ScoreLabel.node.color = this._scoreLabelColors[this._currentPanelType], this._currentChampionType == g.ChampionShipType.Normal ? (this.ScoreTagLabel.node.active = 0 == this._currentPanelType, this.GuessCoinIcon.node.active = !this.ScoreTagLabel.node.active, this._battleInfos.forEach(function(t) {
                        e._itemCount += t.IntParams[0]
                    }), this.ScoreLabel.string = this._itemCount.toString()) : (this.ScoreTagLabel.node.parent.active = !1, 1 == this._currentPanelType ? (this.GuessCoinIcon.node.active = !0, this._itemCount = h.DataCenter.Instance.GetItemCount(this._currencyId), this.ScoreLabel.string = this._itemCount.toString()) : (this.GuessCoinIcon.node.active = !1, this.ScoreNode.active = !1))
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.ContenLayout.Init(this._reportItemPrefab), this.ContenLayout.RenderLayOut(this._battleInfos.length), [2]
                        })
                    })
                }, t.prototype.OnRefreshList = function(e, t) {
                    var n = this;
                    this.ContenLayout == t && e.forEach(function(e, t) {
                        e.getComponent(f.default).Init(n._currentPanelType, n._currentChampionType, n._groupRound, n._battleInfos[t], n._headerPrefab, n._currencyIconSprite)
                    })
                }, i([_(cc.Label)], t.prototype, "PanelTitleLabel", void 0), i([_(cc.Node)], t.prototype, "ScoreNode", void 0), i([_(cc.Label)], t.prototype, "ScoreTagLabel", void 0), i([_(cc.Label)], t.prototype, "ScoreLabel", void 0), i([_(cc.Sprite)], t.prototype, "GuessCoinIcon", void 0), i([_(y.default)], t.prototype, "ContenLayout", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CrossServerChampionReportItem": "CrossServerChampionReportItem",
        "../Components/CustomLayout": "CustomLayout",
        "./CrossServerChampionStartPanel": "CrossServerChampionStartPanel"
    }],
    CrossServerChampionRuleTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "34e59h8W4RBLrHggpdk4kJ9", "CrossServerChampionRuleTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/CustomToggle"),
            y = e("../Components/ItemComponent"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("./CrossServerChampionStartPanel"),
            C = e("../../Auxiliary/DataUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.Compete = 0] = "Compete", e[e.TakeTheCrown = 1] = "TakeTheCrown", e[e.HappyGuessing = 2] = "HappyGuessing"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1), t.Title = null, t.Bg = null, t.TitleMultilangSprite = null, t.RuleRichText = null, t.ToggleContainer = null, t.RulePartNodeArray = [], t.CurrentRankingRichText = null, t.GoButton = null, t.GoButtonLabel = null, t.GuessingRewardItemNodeArray = [], t.GUESSING_REWARD_ITEM_ID = [141, 142], t._currentToggleIndex = -1, t._bgIconArray = [], t._isSetRanking = !1, t._isSetGuessingReward = !1, t._toggles = [], t.MultilangNamesByTabAndType = [
                    ["ChampionRaceCompeteQualification", "AllZoneChampionRaceCompeteQualification"],
                    ["ChampionRaceTakeTheCrown", "ChampionRaceTakeTheCrown"],
                    ["ChampionRaceHappyGuessing", "ChampionRaceHappyGuessing"]
                ], t.PanelNameTitleKeysByType = ["CrossServerChampion_RuleTip_Title", "AllZoneChampion_RuleTip_Title"], t.TabPrefixsByChampionType = ["CrossServerChampion_RuleTip_ToggleName_", "AllZoneChampion_RuleTip_ToggleName_"], t.RulePrefixsByChampionType = ["CrossServerChampion_RuleTip_Rule_", "AllZoneChampion_RuleTip_Rule_"], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                g.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                g.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("Buttons/Toggle1", cc.Prefab)];
                            case 1:
                                return t._togglePrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.GoButtonLabel.string = "CrossServerChampion_RuleTip_Go".ToUILocale(), this.GoButton.node.on("click", this.OnGoButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._championType = t[0], this.Title.string = this.PanelNameTitleKeysByType[this._championType].ToUILocale()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.SetToggleContainer(), this.OnSwitchToggle(this._toggles[0])
            }, t.prototype.OnGoButtonClick = function() {
                g.UIManager.Instance.ShowUIPanel(h.PanelConfig.ArenaPanel.Path)
            }, t.prototype.SetToggleContainer = function() {
                for (var e = 0; e < this.RulePartNodeArray.length; e++) {
                    var t = cc.instantiate(this._togglePrefab);
                    t.width = 230, t.height = 97, t.setParent(this.ToggleContainer);
                    var n = t.getComponent(f.default);
                    n.Init(("" + this.TabPrefixsByChampionType[this._championType] + e).ToUILocale()), t.name = e.toString(), t.on("toggle", this.OnSwitchToggle, this), this._toggles.push(n)
                }
            }, t.prototype.OnSwitchToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentToggleIndex != t && (this._currentToggleIndex = t, e.isChecked = !0, this.SetCurrentPart())
            }, t.prototype.SetCurrentPart = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, f, g;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e = _.default._SPRITE_ATLAS_PREFIXS[this._championType], this._bgIconArray[this._currentToggleIndex] ? [3, 2] : (t = this._bgIconArray, n = this._currentToggleIndex, [4, this.LoadDynamicAsset("CrossServerChampionShip/PNG/" + e + "RuleTipBg_" + this._currentToggleIndex, cc.SpriteFrame)]);
                            case 1:
                                if (t[n] = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._bgIconArray[this._currentToggleIndex]), [2];
                                s.label = 2;
                            case 2:
                                return this.Bg.spriteFrame = this._bgIconArray[this._currentToggleIndex], o = this.MultilangNamesByTabAndType[this._currentToggleIndex][this._championType], r = this.TitleMultilangSprite, [4, I.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame(o)];
                            case 3:
                                for (r.spriteFrame = s.sent(), this.RuleRichText.string = ("" + this.RulePrefixsByChampionType[this._championType] + this._currentToggleIndex).ToUILocale(), f = 0; f < this.RulePartNodeArray.length; f++) this.RulePartNodeArray[f].active = f == this._currentToggleIndex;
                                return this._currentToggleIndex != l.Compete || this._isSetRanking || (this.GoButton.node.active = this._championType != _.ChampionShipType.AllZone, this._isSetRanking = !0, (i = new u.Req_Player_GetRank).RankType = C.default.IsCrossServerConditonsEnable() ? d.RankTypeId.CrossArena : d.RankTypeId.ZoneArena, p.RpcComponent.Instance.Call(i, this.SetRanking.bind(this))), this._currentToggleIndex != l.HappyGuessing || this._isSetGuessingReward ? [3, 6] : this._championType != _.ChampionShipType.AllZone ? [3, 4] : (this.GuessingRewardItemNodeArray.forEach(function(e) {
                                    e.active = !1
                                }), [3, 6]);
                            case 4:
                                return this._isSetGuessingReward = !0, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                            case 5:
                                if (a = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(a), [2];
                                for (f = 0; f < this.GuessingRewardItemNodeArray.length; f++)(g = cc.instantiate(a)).setParent(this.GuessingRewardItemNodeArray[f]), g.name = this.GUESSING_REWARD_ITEM_ID[f].toString(), g.getComponent(y.ItemComponent).Init({
                                    ItemId: this.GUESSING_REWARD_ITEM_ID[f]
                                });
                                s.label = 6;
                            case 6:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetRanking = function(e) {
                e.MyRank ? this.CurrentRankingRichText.string = "CrossServerChampion_RuleTip_CurrentRanking".ToUILocale().Fmt(e.MyRank) : this.CurrentRankingRichText.string = "CrossServerChampion_RuleTip_CurrentRanking".ToUILocale().Fmt("CrossServerChampion_Start_UnRanking".ToUILocale())
            }, t.prototype.OnItemClick = function(e, t) {
                t.parent != this.GuessingRewardItemNodeArray[0] && t.parent != this.GuessingRewardItemNodeArray[1] || I.UIUtlity.ShowItemTip(e, t)
            }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Sprite)], t.prototype, "Bg", void 0), i([S(cc.Sprite)], t.prototype, "TitleMultilangSprite", void 0), i([S(cc.RichText)], t.prototype, "RuleRichText", void 0), i([S(cc.Node)], t.prototype, "ToggleContainer", void 0), i([S([cc.Node])], t.prototype, "RulePartNodeArray", void 0), i([S(cc.RichText)], t.prototype, "CurrentRankingRichText", void 0), i([S(cc.Button)], t.prototype, "GoButton", void 0), i([S(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([S([cc.Node])], t.prototype, "GuessingRewardItemNodeArray", void 0), i([b], t)
        }(c.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerChampionStartPanel": "CrossServerChampionStartPanel"
    }],
    CrossServerChampionShipEntranceItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "639e0oy81NEWaOMJFdDNYed", "CrossServerChampionShipEntranceItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../Consts/Etc"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../Components/RpcComponent"),
            f = e("../../RedDot/RedDotManager"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Battle/BattleManager"),
            m = e("../Panel/CrossServerChampionStartPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TimeRichText = null, t.LockNode = null, t.UnlockConditionLabel = null, t
                }
                return r(t, e), t.prototype.Init = function() {
                    if (this._unlockStatus = u.default.Instance.IsGameModuleUnlock(c.GameModuleType.CrossZoneChampionRace), 1 != this._unlockStatus[0]) return this.LockNode.active = !0, void(this.UnlockConditionLabel.string = this._unlockStatus[1]);
                    this.LockNode.active = !1, this.RequestMyChampionRankInfo()
                }, t.prototype.RequestMyChampionRankInfo = function() {
                    var e = new a.Req_CrossZone_GetMyChampionHistoryRank;
                    h.RpcComponent.Instance.Call(e, this.OnGetMyChampionInfo.bind(this))
                }, t.prototype.OnGetMyChampionInfo = function(e) {
                    this._championData = e, 1 == e.Status ? this.TimeRichText.string = "CrossServerChampion_Start_CurrentState_LackOfPlayer".ToUILocale() : (this.SetChampionShipOpenTime(), f.RedDotManager.Instance.Bind(this.node, f.RedDotManager.Instance.RedDot.CrossServerChampionGuessNode, -40, -40)), this.node.on(cc.Node.EventType.TOUCH_END, this.OnClickWeekChamping, this)
                }, t.prototype.SetChampionShipOpenTime = function() {
                    var e, t = u.default.GetChampionShipOpenTime(m.ChampionShipType.Normal) - h.RpcComponent.Instance.ServerTime,
                        n = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossChampionRaceRoundGuessDuration") + d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossChampionRaceRoundBattleDuration");
                    if (t > 0) this.TimeRichText.string = "CrossServerChampion_Start_OpenTime".ToUILocale().Fmt(u.default.ActivityTimeLeftFormat(t)), e = t > s.Etc.DayDuration ? Math.ceil(t % s.Etc.DayDuration / 1e3) : 1, this.unschedule(this.SetChampionShipOpenTime), this.schedule(this.SetChampionShipOpenTime, e);
                    else {
                        var o = void 0;
                        if (t + 6 * n > 0) e = t + 6 * n, o = "CrossServerChampion_Start_PointRace".ToUILocale();
                        else {
                            if (!(t + 12 * n > 0)) return o = "CrossServerChampion_Start_OverRace".ToUILocale(), this.TimeRichText.string = "CrossServerChampion_Start_OpenTime".ToUILocale().Fmt(o), void this.unschedule(this.SetChampionShipOpenTime);
                            e = t + 12 * n, o = "CrossServerChampion_Start_PromotionRace".ToUILocale()
                        }
                        this.TimeRichText.string = "CrossServerChampion_Start_OpenTime".ToUILocale().Fmt(o), this.unschedule(this.SetChampionShipOpenTime), this.schedule(this.SetChampionShipOpenTime, e / 1e3)
                    }
                }, t.prototype.OnClickWeekChamping = function() {
                    var e = u.default.Instance.IsGameModuleUnlock(c.GameModuleType.CrossZoneChampionRace);
                    if (!e[0]) return y.UIUtlity.ShowFloatingHint(e[1]);
                    g.BattleManager.Instance.IsInBattle(c.MapType.CrossServerChampionShip) ? g.BattleManager.Instance.ResumePlayBattle(c.MapType.CrossServerChampionShip) : l.UIManager.Instance.ShowUIPanel(p.PanelConfig.CrossServerChampionStartPanel.Path, m.ChampionShipType.Normal, this._championData)
                }, i([C(cc.RichText)], t.prototype, "TimeRichText", void 0), i([C(cc.Node)], t.prototype, "LockNode", void 0), i([C(cc.Label)], t.prototype, "UnlockConditionLabel", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Panel/CrossServerChampionStartPanel": "CrossServerChampionStartPanel"
    }],
    CrossServerChampionShipGuessResultPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5d0b5e1ut9K67eqXhCjbjqB", "CrossServerChampionShipGuessResultPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/HeadComponent"),
            g = e("../Components/ItemComponent"),
            m = e("./CrossServerChampionStartPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.LeftHeaderRoot = null, t.LeftWinIcon = null, t.LeftLoseIcon = null, t.LeftNameLabel = null, t.SupportLeftIcon = null, t.RightHeaderRoot = null, t.RightWinIcon = null, t.RightLoseIcon = null, t.RightNameLabel = null, t.SupportRightIcon = null, t.RewardTitleLabel = null, t.RewardContainer = null, t.GuessResultLabel = null, t.TipLabel = null, t.GoToGuessButton = null, t.GoToGuessButtonLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function() {
                            return e.prototype.Preload.call(this), Promise.all([this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset(d.BundlePath.HeadComponent)]).then(function(e) {
                                if (!t.isValid) return c.AssetsManager.Instance.UnloadAsset(e[0]), void c.AssetsManager.Instance.UnloadAsset(e[1]);
                                t._itemPrefab = e[0], t._headerPrefab = e[1]
                            }), [2]
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._championShipType = t[0], this._leftPlayerInfo = t[1], this._rightPlayerInfo = t[2], this._myChoice = t[3], this._result = t[4], this._rewardCount = t[5], this._callback = t[6]
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GoToGuessButton.node.on("click", this.OnGoToGuessButtonClicked, this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.LeftNameLabel.string = this._leftPlayerInfo.Name, this.RightNameLabel.string = this._rightPlayerInfo.Name, this.SupportLeftIcon.node.active = 1 == this._myChoice, this.SupportRightIcon.node.active = !this.SupportLeftIcon.node.active, this.LeftWinIcon.node.active = 1 == this._result, this.LeftLoseIcon.node.active = !this.LeftWinIcon.node.active, this.RightWinIcon.node.active = !this.LeftWinIcon.node.active, this.RightLoseIcon.node.active = !this.RightWinIcon.node.active, this.RenderHeader(this.LeftHeaderRoot, this._leftPlayerInfo), this.RenderHeader(this.RightHeaderRoot, this._rightPlayerInfo), this.SetRewardView(), this.SetLabelContent()
                }, t.prototype.SetLabelContent = function() {
                    this.TipLabel.string = (m.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "ShipGuessResult_NextRoundStartTip").ToUILocale(), this.GoToGuessButtonLabel.string = (m.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "ShipGuessResult_GoToGuess").ToUILocale(), this.RewardTitleLabel.string = (m.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "ShipGuessResult_RewardTitle").ToUILocale(), this.GuessResultLabel.string = this._myChoice == this._result ? (m.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "ShipGuessResult_GuessWin").ToUILocale() : (m.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "ShipGuessResult_GuessLose").ToUILocale()
                }, t.prototype.RenderHeader = function(e, t) {
                    var n = cc.instantiate(this._headerPrefab).getComponent(y.default);
                    n.node.setParent(e), n.SetUI(t.HeadIcon, t.HeadFrame, t.Title), n.SetLevel(t.Level)
                }, t.prototype.SetRewardView = function() {
                    var e = cc.instantiate(this._itemPrefab),
                        t = e.getComponent(g.ItemComponent),
                        n = this._championShipType == m.ChampionShipType.Normal ? u.CommonItemId.ChampionGuessCoin : u.CommonItemId.ChampinonCoin;
                    if (this._championShipType == m.ChampionShipType.AllZone) {
                        var o = h.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, u.LevelParamType.AllZoneChampionBetRightReward).Data2[0].Items[1],
                            r = h.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, u.LevelParamType.AllZoneChampionBetWrongReward).Data2[0].Items[1];
                        this._rewardCount = this._myChoice == this._result ? o : r
                    }
                    t.Init({
                        ItemId: n,
                        Count: this._rewardCount
                    }), e.name = n.toString(), this.RewardContainer.addChild(e)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContainer.children.indexOf(t) && e > 0 && f.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnGoToGuessButtonClicked = function() {
                    this._callback(), this.Close()
                }, i([C(cc.Node)], t.prototype, "LeftHeaderRoot", void 0), i([C(cc.Sprite)], t.prototype, "LeftWinIcon", void 0), i([C(cc.Sprite)], t.prototype, "LeftLoseIcon", void 0), i([C(cc.Label)], t.prototype, "LeftNameLabel", void 0), i([C(cc.Sprite)], t.prototype, "SupportLeftIcon", void 0), i([C(cc.Node)], t.prototype, "RightHeaderRoot", void 0), i([C(cc.Sprite)], t.prototype, "RightWinIcon", void 0), i([C(cc.Sprite)], t.prototype, "RightLoseIcon", void 0), i([C(cc.Label)], t.prototype, "RightNameLabel", void 0), i([C(cc.Sprite)], t.prototype, "SupportRightIcon", void 0), i([C(cc.Label)], t.prototype, "RewardTitleLabel", void 0), i([C(cc.Node)], t.prototype, "RewardContainer", void 0), i([C(cc.Label)], t.prototype, "GuessResultLabel", void 0), i([C(cc.Label)], t.prototype, "TipLabel", void 0), i([C(cc.Button)], t.prototype, "GoToGuessButton", void 0), i([C(cc.Label)], t.prototype, "GoToGuessButtonLabel", void 0), i([_], t)
            }(c.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerChampionStartPanel": "CrossServerChampionStartPanel"
    }],
    CrossServerChampionShipHeader: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "146c5rTmAJMlY44pxPmeULg", "CrossServerChampionShipHeader");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../../Components/RpcComponent"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../Panel/ActivityChampionPanel"),
            p = e("../Panel/CrossServerChampionShipPanel"),
            d = e("../Panel/CrossServerChampionStartPanel"),
            h = e("./HeadComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeaderRoot = null, t.MatchDetailButton = null, t.PlayerNameContainer = null, t.PlayerNameLabel = null, t.FightingIcon = null, t.DesignationIcon = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.MatchDetailButton.node.on("click", this.OnMatchDetialButtonClicked, this)
                }, t.prototype.InitUI = function(e, t, n, o, r, i, a) {
                    if (void 0 === i && (i = !0), this._championType = e, null == n) return this.HeaderRoot.active = !1, this.PlayerNameContainer.active = !1, this.DesignationIcon.node.active = !1, this.FightingIcon.node.active = !0, void(this.MatchDetailButton.node.active = !1);
                    if (this.HeaderRoot.active = !0, this.PlayerNameContainer.active = i, this.DesignationIcon.node.active = !1, this.FightingIcon.node.active = !1, this._playInfo = n, !this._headerComponent) {
                        var l = cc.instantiate(t);
                        this._headerComponent = l.getComponent(h.default), l.setParent(this.HeaderRoot), l.on(cc.Node.EventType.TOUCH_END, this.OnHeaderClicked, this)
                    }
                    this._headerComponent.SetUI(this._playInfo.HeadIcon, this._playInfo.HeadFrame, this._playInfo.Title), this.PlayerNameLabel.string = this._playInfo.Name, s.default.SetDesignationIcon(this._playInfo.Designation, this.DesignationIcon), o || r ? c.UIUtlity.OffNodeGray(this.HeaderRoot) : c.UIUtlity.OnNodeGray(this.HeaderRoot), this.FightingIcon.node.active = !1, this._matchInfo = a, this.MatchDetailButton.node.active = !!this._matchInfo
                }, t.prototype.OnMatchDetialButtonClicked = function() {
                    var e = this;
                    switch (this._championType) {
                        case d.ChampionShipType.Activity:
                            u.default.BattleInfo = {
                                Result: this._matchInfo.Result,
                                AttackerInfo: this._matchInfo.User1,
                                DefenderInfo: this._matchInfo.User2
                            }, u.default.StartBattle(this._matchInfo.ReportId);
                            break;
                        case d.ChampionShipType.AllZone:
                        case d.ChampionShipType.Normal:
                            var t = new a.Req_Player_GetCommonReport;
                            t.Id = this._matchInfo.ReportId, l.RpcComponent.Instance.Call(t, function(t) {
                                var n = p.default.RejustBattleResultAndReports(e._matchInfo.User1, e._matchInfo.User2, e._matchInfo.Result, t.Reports),
                                    o = n[0],
                                    r = n[1],
                                    i = n[2],
                                    a = n[3];
                                p.default.BattleInfo = {
                                    Result: i,
                                    AttackerInfo: o,
                                    DefenderInfo: r
                                }, p.default.Reports = a, p.default.ScoreInfo = null, p.default.ShowSettlement = !0, p.default.StartBattle(p.default.MapTypesByChampionType[e._championType])
                            })
                    }
                }, t.prototype.OnHeaderClicked = function() {}, i([g(cc.Node)], t.prototype, "HeaderRoot", void 0), i([g(cc.Button)], t.prototype, "MatchDetailButton", void 0), i([g(cc.Node)], t.prototype, "PlayerNameContainer", void 0), i([g(cc.Label)], t.prototype, "PlayerNameLabel", void 0), i([g(cc.Sprite)], t.prototype, "FightingIcon", void 0), i([g(cc.Sprite)], t.prototype, "DesignationIcon", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ActivityChampionPanel": "ActivityChampionPanel",
        "../Panel/CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "../Panel/CrossServerChampionStartPanel": "CrossServerChampionStartPanel",
        "./HeadComponent": "HeadComponent"
    }],
    CrossServerChampionShipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2d7a7vQ70NKR4nyRQFfjvRZ", "CrossServerChampionShipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChampionShipRound = void 0;
        var l, c, u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Etc"),
            h = e("../../../Consts/GameEventIds"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../../ShareConsts/BattleConsts"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../Components/Components"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../Battle/BattleData"),
            w = e("../Battle/BattleManager"),
            P = e("../Components/CrossServerChampionShipHeader"),
            A = e("../Components/CurrencyBarItem"),
            T = e("../Components/CustomToggle"),
            R = e("../Components/ElementEffectItem"),
            L = e("../Components/HeadComponent"),
            k = e("../Components/ItemComponent"),
            O = e("./CrossServerChampionStartPanel"),
            M = e("./CrossServerPortPanel"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property;
        (function(e) {
            e[e.NotOpen = 0] = "NotOpen", e[e.RaceInGroup = 1] = "RaceInGroup", e[e.RaceInRound64 = 2] = "RaceInRound64", e[e.RaceInRound8 = 3] = "RaceInRound8", e[e.Closed = 4] = "Closed"
        })(l || (l = {})),
        function(e) {
            e[e.RACE_Group_ROUND = 6] = "RACE_Group_ROUND", e[e.RACE_64_ROUND = 3] = "RACE_64_ROUND", e[e.RACE_8_ROUND = 3] = "RACE_8_ROUND"
        }(c = n.ChampionShipRound || (n.ChampionShipRound = {}));
        var E = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new f.UIPanelType(f.UINodeType.Fixed, !0), t.PanelNameLabel = null, t.RuleButton = null, t.GuessCoinBar = null, t.ChampionCoinBar = null, t.RewardButton = null, t.RewardButtonLabel = null, t.MyGuessButton = null, t.MyGuessButtonLabel = null, t.ExchangeShopButton = null, t.ExchangeShopButtonLabel = null, t.RankButton = null, t.RankButtonLabel = null, t.ReturnButton = null, t.Tabs = [], t.RaceInfoView = null, t.RaceDetailNode = null, t.RaceStateDescRichText = null, t.RaceTimeLeftRichText = null, t.ArenaRankInfoRichText = null, t.GoToArenaButton = null, t.GoToArenaButtonLabel = null, t.MyRaceButtonBar = null, t.BattleReportButton = null, t.BattleReportButtonLabel = null, t.EditTeamButton = null, t.EditTeamButtonLabel = null, t.MyRaceView = null, t.CurrentRoundNode = null, t.CurrentRoundLabel = null, t.CurrentRoundStateNode = null, t.CurrentRoundStateRichText = null, t.TeamTogglesContainer = null, t.TeamToggles = [], t.LeftTeamElemetEffect = null, t.LeftTeamPowerLabel = null, t.LeftTeamSlots = [], t.LeftHeaderNode = null, t.LeftPlayerNameLabel = null, t.LeftPlayerServerInfoRichText = null, t.RightTeamElemetEffect = null, t.RightTeamPowerLabel = null, t.RightTeamSlots = [], t.RightHeaderNode = null, t.RightPlayerNameLabel = null, t.RightPlayerServerInfoRichText = null, t.ReplayButton = null, t.GuessBarNode = null, t.GuessBar = null, t.SupportLeftButton = null, t.SupportLeftButtonLabelActive = null, t.SupportLeftButtonLabelGrey = null, t.SupportLeftRateLabel = null, t.SupportRightButton = null, t.SupportRightButtonLabelActive = null, t.SupportRightButtonLabelGrey = null, t.SupportRightRateLabel = null, t.RaceMapView = null, t.PlayerNodesRound0 = [], t.VictoryLinesRound0 = [], t.PlayerNodesRound1 = [], t.VictoryLinesRound1 = [], t.PlayerNodesRound2 = [], t.VictoryLinesRound2 = [], t.PlayerNodeFinal = null, t.RaceMapPageNode = null, t.PreviousGroupButton = null, t.NextGroupButton = null, t.CurrentGroupNameLabel = null, t.PanelBackground = null, t.InfoViewBackground = null, t.PredictButton = null, t.PredictButtonLabel = null, t.TeamChampionCupIcon = null, t.RaceInfoTitleNodes = [], t.RaceInfoTitleLabels = [], t.BottomButtonsBarLeft = null, t.BottomButtonsBarRight = null, t.BottomButtonBarOneRow = null, t.BattleGuessDurationKeysByType = ["CrossChampionRaceRoundGuessDuration", "AllZoneChampionRaceRoundGuessDuration"], t.BattleDurationKeysByType = ["CrossChampionRaceRoundBattleDuration", "AllZoneChampionRaceRoundBattleDuration"], t.StartWeekDayKeysByType = ["CrossChampionRaceStartWeekDay", "AllZoneChampionRaceStartWeekDay"], t.RaceStartHourKeysByType = ["CrossChampionRaceStartHour", "AllZoneChampionRaceStartHour"], t.RaceRunDataHourKeysByType = ["CrossChampionRaceRunDataHour", "AllZoneChampionRaceRunDataHour"], t.GetMyChampionRace_RequestFunctions = [p.Req_CrossZone_GetMyChampionRace, p.Req_AllZoneChampion_GetMyRace], t.GetMyChampionBetInfo_RequestFunctions = [p.Req_CrossZone_GetMyChampionBetInfo, p.Req_AllZoneChampion_GetMyBet], t.GetChampionCurrentGuessRaceInfo_RequestFunctions = [p.Req_CrossZone_GetChampionCurrentGuessRaceInfo, p.Req_AllZoneChampion_GetCurrentBet], t.GetChampionMatchInfo_RequestFunctions = [p.Req_CrossZone_GetChampionMatchInfo, p.Req_AllZoneChampion_GetRace], t.GetMyChampionBetHistory_RequestFunctions = [p.Req_CrossZone_GetMyChampionHistoryReports, p.Req_AllZoneChampion_GetMyBets], t.ChampionGuessBet_RequestFunctions = [p.Req_CrossZone_ChampionGuessBet, p.Req_AllZoneChampion_Bet], t.GetMyHistoryRank_RequestFunctions = [p.Req_CrossZone_GetMyChampionHistoryRank, p.Req_AllZoneChampion_Enter], t.RankRewardTypesByChampionType = ["ChampionRaceRewards", "AllZoneChampionRace"], t.ToggleSpriteNames = ["toggleMyRace", "toggleGuess", "toggle64Race", "toggle8Race"], t._tabKeys = ["CrossServerChampionShip_ToggleMyRace", "CrossServerChampionShip_ToggleGuess", "CrossServerChampionShip_ToggleRound64", "CrossServerChampionShip_ToggleRound8"], t._raceMapConfig = null, t.PLAYER_PER_PAGE = 8, t._LADDER_BUTTON_LABEL_KEYS = ["arena_mainTitle", "CrossServerChampion_Start_Rule_Name"], t._teamToggleInited = !1, t._currentTabIndex = -1, t._currentTeamIndex = -1, t._currentGroupPageIndex = 0, t._currentRaceRound = 0, t._myTargetRaceInfos = {}, t._myGuessRaceInfos = {}, t._baseMatchIds = [], t._leftTeamInfo = {}, t._rightTeamInfo = {}, t._battlePlayedRound = 0, t.itemComponents = [], t._mapHeaderComponents = [], t._currentItemComponentIndex = 0, t._currentButtonViewStatus = -1, t.MaxRankByChampionType = [256, 64], t.GetMyChampionHistoryReports_RequestFunctions = [p.Req_CrossZone_GetMyChampionHistoryReports, p.Req_AllZoneChampion_GetMyReports], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onDestroy = function() {
                this.itemComponents.length > 0 && this.itemComponents.forEach(function(e) {
                    e.node && e.node.destroy()
                }), this._mapHeaderComponents.length > 0 && this._mapHeaderComponents.forEach(function(e) {
                    e.node && e.node.destroy()
                }), this.itemComponents = [], this._mapHeaderComponents = [], this.unscheduleAllCallbacks()
            }, t.prototype.onEnable = function() {
                f.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChanges, this), f.Game.EventDispatcher.On(h.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChanges, this), f.Game.EventDispatcher.On(h.GameEventIds.RemoveDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChanges, this)
            }, t.prototype.onDisable = function() {
                f.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChanges), f.Game.EventDispatcher.Off(h.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChanges), f.Game.EventDispatcher.Off(h.GameEventIds.RemoveDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChanges)
            }, t.prototype.OnUserItemChanges = function(e) {
                for (var t in e) switch (Number.parseInt(t)) {
                    case g.CommonItemId.ChampinonCoin:
                    case g.CommonItemId.ChampionGuessCoin:
                        this.SetCurrencyView()
                }
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), t = this._championShipType == O.ChampionShipType.AllZone ? "CommonBg/PanelBg41" : "CommonBg/PanelBg40", [4, Promise.all([this.LoadDynamicAsset(_.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset(_.BundlePath.HeadComponent), this.LoadDynamicAsset("CrossServerChampionShip/Private/CrossServerChampionShipHeader"), this.LoadDynamicAsset("CrossServerChampionShip/PNG/" + O.default._SPRITE_ATLAS_PREFIXS[this._championShipType] + "ChampionShip", cc.SpriteAtlas), this.LoadDynamicAsset(t, cc.SpriteFrame)]).then(function(e) {
                                    if (!n.isValid) return f.AssetsManager.Instance.UnloadAsset(e[0]), f.AssetsManager.Instance.UnloadAsset(e[1]), void f.AssetsManager.Instance.UnloadAsset(e[2]);
                                    n._itemPrefab = e[0], n._headerPrefab = e[1], n._mapHeaderPrefab = e[2], n._spriteAtlas = e[3], n.PanelBackground.spriteFrame = e[4]
                                })];
                            case 1:
                                return o.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), n.PanelInstance = this
            }, t.prototype.InitStaticLabels = function() {
                this.PanelNameLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_PanelName").ToUILocale(), this.RewardButtonLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Reward").ToUILocale(), this.MyGuessButtonLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_MyGuess").ToUILocale(), this.ExchangeShopButtonLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_ShopButton").ToUILocale(), this.RankButtonLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_RankButton").ToUILocale(), this.GoToArenaButtonLabel.string = this._LADDER_BUTTON_LABEL_KEYS[this._championShipType].ToUILocale(), this.BattleReportButtonLabel.string = "allianceWar_report".ToUILocale(), this.EditTeamButtonLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_EditTeam").ToUILocale(), this.PredictButtonLabel.string = "AllZoneChampionShip_PredictButton".ToUILocale()
            }, t.prototype.InitButtonEvent = function() {
                this.ReturnButton.node.on("click", this.OnReturnButtonClicked, this), this.RewardButton.node.on("click", this.OnRewardButtonClicked, this), this.MyGuessButton.node.on("click", this.OnMyGuessButtonClicked, this), this.ExchangeShopButton.node.on("click", this.OnShopButtonClicked, this), this.RankButton.node.on("click", this.OnRankButtonClicked, this), this.GoToArenaButton.node.on("click", this.OnGoToArenaButtonClicked, this), this.BattleReportButton.node.on("click", this.OnBattleReportButtonClicked, this), this.EditTeamButton.node.on("click", this.OnEditTeamButtonClicked, this), this.ReplayButton.node.on("click", this.OnReplayButtonClicked, this), this.SupportLeftButton.node.on("click", this.OnSupportLeftButtonClicked, this), this.SupportRightButton.node.on("click", this.OnSupportRightButtonClicked, this), this.PreviousGroupButton.node.on("click", this.OnPreviousGroupButtonClicked, this), this.NextGroupButton.node.on("click", this.OnNextGroupButtonClicked, this), this.RuleButton.node.on("click", this.OnRuleButtonClicked, this), this.PredictButton.node.on("click", this.OnPredictButtonClicked, this), this.PredictButton.node.active = this._championShipType == O.ChampionShipType.AllZone
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._championShipType = t[0], this._championShipStatus = t[1], this.GROUP_ROUND = this._championShipType == O.ChampionShipType.Normal ? C.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceScoreRound") : 0, this._raceMapConfig = C.ConfigDataComponent.Instance.GetArrayConfig(u.ChampionFinalRace_Config), this.BATTLE_GUESS_DURATION = C.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this.BattleGuessDurationKeysByType[this._championShipType]), this.BATTLE_DURATION = C.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this.BattleDurationKeysByType[this._championShipType]), this.ONE_ROUND_DURATION = this.BATTLE_GUESS_DURATION + this.BATTLE_DURATION;
                var n = m.default.GetCrossServerChampionShipStartWeekDay(),
                    o = m.default.GetCrossServerChampionShipNextStartDay(n),
                    r = C.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this.RaceStartHourKeysByType[this._championShipType]),
                    i = C.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this.RaceRunDataHourKeysByType[this._championShipType]);
                this._currentRaceStartTime = m.default.GetChampionShipOpenTime(), this._editTeamEndTime = this._currentRaceStartTime + d.Etc.HourDuration * (i - r), this._nextRaceStartTime = o > n ? this._currentRaceStartTime + d.Etc.DayDuration * (o - n) : this._currentRaceStartTime + d.Etc.DayDuration * (o + 7 - n), this.GuessCoinBar.node.active = this._championShipType == O.ChampionShipType.Normal, this.InitButtonEvent(), this.InitStaticLabels()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t ? this.SwitchTabView() : this.InitTabView(), this.SetCurrencyView(), this.SetBackgroundsByType()
            }, t.prototype.SetBackgroundsByType = function() {}, t.prototype.BindRedDot = function() {
                if (1 != this._championShipStatus) switch (this._championShipType) {
                    case O.ChampionShipType.Normal:
                        v.RedDotManager.Instance.RedDot.CrossServerChampionGuessNode.NeedRefresh = !0, v.RedDotManager.Instance.Bind(this.Tabs[1].node, v.RedDotManager.Instance.RedDot.CrossServerChampionGuessNode);
                        break;
                    case O.ChampionShipType.AllZone:
                        v.RedDotManager.Instance.RedDot.AllZoneChampionGuessNode.NeedRefresh = !0, v.RedDotManager.Instance.RedDot.AllZoneChampionPredictNode.NeedRefresh = !0, v.RedDotManager.Instance.Bind(this.Tabs[1].node, v.RedDotManager.Instance.RedDot.AllZoneChampionGuessNode), v.RedDotManager.Instance.Bind(this.PredictButton.node, v.RedDotManager.Instance.RedDot.AllZoneChampionPredictNode)
                }
            }, t.prototype.SetCurrencyView = function() {
                var e = this;
                if (this.ChampionCoinBar.Init(g.CommonItemId.ChampinonCoin), this._championShipType == O.ChampionShipType.Normal)
                    if (this._currentState == l.NotOpen || this._currentState == l.Closed) this.GuessCoinBar.Init(g.CommonItemId.ChampionGuessCoin, !1, 0);
                    else {
                        var t = new p.Req_CrossZone_GetMyChampionBetCoinNum;
                        C.RpcComponent.Instance.Call(t, function(t) {
                            f.EZLog.Log("SetCurrencyView GuessCoinCount: " + t.Count), e.GuessCoinBar.Init(g.CommonItemId.ChampionGuessCoin, !1, t.Count)
                        })
                    }
            }, t.prototype.InitTabView = function() {
                var e = this;
                this.Tabs.forEach(function(t, n) {
                    t.Init(e._tabKeys[n].ToUILocale()), t.node.name = n.toString(), t.node.on("toggle", e.OnSwitchTab, e)
                }), this.Tabs[0].check(), this.OnSwitchTab(this.Tabs[0])
            }, t.prototype.OnSwitchTab = function(e) {
                var t = parseInt(e.node.name);
                this._currentTabIndex != t && (this._currentTabIndex = t, this.SwitchTabView())
            }, t.prototype.SetButtonBarView = function(e) {
                if (this._currentButtonViewStatus != e) switch (e) {
                    case 0:
                        this.RewardButton.node.setParent(this.BottomButtonsBarLeft), this.MyGuessButton.node.setParent(this.BottomButtonsBarLeft), this.ExchangeShopButton.node.setParent(this.BottomButtonsBarRight), this.RankButton.node.setParent(this.BottomButtonsBarRight), this.RewardButton.node.x = 0, this.MyGuessButton.node.x = 0, this.ExchangeShopButton.node.x = 0, this.RankButton.node.x = 0, this.BottomButtonsBarLeft.getComponent(cc.Layout).updateLayout(), this.BottomButtonsBarRight.getComponent(cc.Layout).updateLayout(), this._currentButtonViewStatus = e;
                        break;
                    case 1:
                        this.RankButton.node.setParent(this.BottomButtonBarOneRow), this.ExchangeShopButton.node.setParent(this.BottomButtonBarOneRow), this.RewardButton.node.setParent(this.BottomButtonBarOneRow), this.MyGuessButton.node.setParent(this.BottomButtonBarOneRow), this.RewardButton.node.y = 0, this.MyGuessButton.node.y = 0, this.ExchangeShopButton.node.y = 0, this.RankButton.node.y = 0, this.BottomButtonBarOneRow.getComponent(cc.Layout).updateLayout(), this._currentButtonViewStatus = e
                }
            }, t.prototype.ShowChampionRaceInfoLackOfPlayer = function() {
                this.HideMainPartView(), this.SetButtonBarView(0), this.RaceInfoView.active = !0, this.TeamTogglesContainer.active = !1;
                var e = "CrossServerChampionShip_LackOfPlayer_Title".ToUILocale();
                switch (this.ShowRaceInfoTitleNodes(0, e), this.MyRaceButtonBar.active = !0, this.RaceStateDescRichText.string = "CrossServerChampionShip_LackOfPlayer_Rule".ToUILocale(), this.RaceTimeLeftRichText.node.active = !0, this.RaceStateDescRichText.node.active = !0, this._championShipType) {
                    case O.ChampionShipType.Normal:
                        this.RequestMyArenaInfo();
                        break;
                    case O.ChampionShipType.AllZone:
                        this.RequestMyChampionShipInfo()
                }
                this.OnRaceTimeLeftSchedule(), this.schedule(this.OnRaceTimeLeftSchedule, 1)
            }, t.prototype.SwitchTabView = function() {
                switch (this.RefreshCurrentState(), this.unscheduleAllCallbacks(), this.BindRedDot(), this._currentTabIndex) {
                    case 0:
                        if (1 == this._championShipStatus) this.ShowChampionRaceInfoLackOfPlayer();
                        else {
                            switch (this._currentState) {
                                case l.NotOpen:
                                case l.Closed:
                                    this.ShowMyRaceNoInMatchView();
                                    break;
                                case l.RaceInGroup:
                                case l.RaceInRound64:
                                case l.RaceInRound8:
                                    this.RequestGetMyChampionRace()
                            }
                            this.SetRefreshOnTheEnd()
                        }
                        break;
                    case 1:
                        if (1 == this._championShipStatus) this.ShowChampionRaceInfoLackOfPlayer();
                        else {
                            switch (this._currentState) {
                                case l.NotOpen:
                                case l.Closed:
                                    this.ShowGuessNoInMatchView();
                                    break;
                                case l.RaceInGroup:
                                case l.RaceInRound64:
                                case l.RaceInRound8:
                                    this.HideMainPartView(), this.RequestCurrentGuessInfo()
                            }
                            this.SetRefreshOnTheEnd()
                        }
                        break;
                    case 2:
                        if (1 == this._championShipStatus) this.ShowRaceMapNotInMatchView(64);
                        else switch (this._currentState) {
                            case l.NotOpen:
                            case l.Closed:
                            case l.RaceInRound64:
                            case l.RaceInRound8:
                                this.HideMainPartView(), this.RefreshBaseMatchIds(64), this.ShowRaceMapView();
                                break;
                            case l.RaceInGroup:
                                this.ShowRaceMapNotInMatchView(64)
                        }
                        break;
                    case 3:
                        if (1 == this._championShipStatus) this.ShowRaceMapNotInMatchView(8);
                        else switch (this._currentState) {
                            case l.RaceInGroup:
                            case l.RaceInRound64:
                                this.ShowRaceMapNotInMatchView(8);
                                break;
                            case l.NotOpen:
                            case l.Closed:
                            case l.RaceInRound8:
                                this.HideMainPartView(), this.RefreshBaseMatchIds(8), this.ShowRaceMapView()
                        }
                }
            }, t.prototype.RefreshCurrentState = function() {
                var e = C.RpcComponent.Instance.ServerTime;
                e < this._currentRaceStartTime ? (this._currentState = l.NotOpen, this._currentRaceRound = 0) : e < this._currentRaceStartTime + this.ONE_ROUND_DURATION * this.GROUP_ROUND ? (this._currentState = l.RaceInGroup, this._currentRaceRound = Math.ceil((e - this._currentRaceStartTime) / this.ONE_ROUND_DURATION)) : e < this._currentRaceStartTime + this.ONE_ROUND_DURATION * (this.GROUP_ROUND + c.RACE_64_ROUND) ? (this._currentState = l.RaceInRound64, this._currentRaceRound = Math.ceil((e - this._currentRaceStartTime) / this.ONE_ROUND_DURATION)) : e < this._currentRaceStartTime + this.ONE_ROUND_DURATION * (this.GROUP_ROUND + c.RACE_64_ROUND + c.RACE_8_ROUND) ? (this._currentState = l.RaceInRound8, this._currentRaceRound = Math.ceil((e - this._currentRaceStartTime) / this.ONE_ROUND_DURATION)) : (this._currentState = l.Closed, this._currentRaceRound = 0)
            }, t.prototype.GetCurrentRoundTimePassed = function() {
                return C.RpcComponent.Instance.ServerTime - this._currentRaceStartTime - (this._currentRaceRound - 1) * this.ONE_ROUND_DURATION
            }, t.prototype.HideMainPartView = function() {
                this.RaceInfoView.active = !1, this.MyRaceView.active = !1, this.GuessBarNode.active = !1, this.RaceMapView.active = !1, this.CurrentRoundNode.active = !1, this.CurrentRoundStateNode.active = !1, this.MyRaceButtonBar.active = !1, this.TeamTogglesContainer.active = !1
            }, t.prototype.ShowRaceInfoTitleNodes = function(e, t) {
                for (var n = 0; n < this.RaceInfoTitleNodes.length; n++) n == e ? (this.RaceInfoTitleNodes[n].active = !0, this.RaceInfoTitleLabels[n].string = t) : this.RaceInfoTitleNodes[n].active = !1
            }, t.prototype.ShowMyRaceNoInMatchView = function() {
                this.HideMainPartView(), this.SetButtonBarView(0), this.RaceInfoView.active = !0, this.TeamTogglesContainer.active = !1;
                var e = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotOpen").ToUILocale();
                switch (this.ShowRaceInfoTitleNodes(0, e), this.MyRaceButtonBar.active = !0, this.OnRaceTimeLeftSchedule(), this.schedule(this.OnRaceTimeLeftSchedule, 1), this._championShipType) {
                    case O.ChampionShipType.Normal:
                        this.RequestMyArenaInfo();
                        break;
                    case O.ChampionShipType.AllZone:
                        this.RequestMyChampionShipInfo()
                }
                this.ShowRuleInRaceStateDescRichText()
            }, t.prototype.ShowRuleInRaceStateDescRichText = function() {
                var e = C.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this.RaceStartHourKeysByType[this._championShipType]),
                    t = C.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this.RaceRunDataHourKeysByType[this._championShipType]);
                switch (this._championShipType) {
                    case O.ChampionShipType.Normal:
                        this.RaceStateDescRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_RaceDesc").ToUILocale().Fmt(e, t, t);
                        break;
                    case O.ChampionShipType.AllZone:
                        this.RaceStateDescRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_RaceDesc").ToUILocale().Fmt(e, t)
                }
                this.RaceStateDescRichText.node.active = !0
            }, t.prototype.RequestMyArenaInfo = function() {
                var e = m.default.IsCrossServerConditonsEnable(),
                    t = new p.Req_Player_GetRank;
                t.RankType = e ? g.RankTypeId.CrossArena : g.RankTypeId.ZoneArena, C.RpcComponent.Instance.Call(t, this.OnRequestMyArenaInfoSuccess.bind(this))
            }, t.prototype.OnRequestMyArenaInfoSuccess = function(e) {
                this.ArenaRankInfoRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_ArenaTag").ToUILocale().Fmt(e.MyRank)
            }, t.prototype.RequestMyChampionShipInfo = function() {
                var e = new p.Req_AllZoneChampion_GetContestants;
                C.RpcComponent.Instance.Call(e, this.RequestMyChampionShipInfoSuccess.bind(this))
            }, t.prototype.RequestMyChampionShipInfoSuccess = function(e) {
                for (var t = 0, n = 0; n < e.Infos.length; n++)
                    if (e.Infos[n].Uid == C.DataCenter.Instance.Uid) {
                        t = n + 1;
                        break
                    } this.ArenaRankInfoRichText.string = t > 0 ? (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_ArenaTag").ToUILocale().Fmt(t) : "AllZoneChampion_Start_UnRanking".ToUILocale()
            }, t.prototype.RequestGetMyChampionRace = function() {
                if (this.HideMainPartView(), this.SetCurrencyView(), this._currentState > l.NotOpen && this._currentState < l.Closed && !this._myTargetRaceInfos[this._currentRaceRound]) {
                    var e = new this.GetMyChampionRace_RequestFunctions[this._championShipType];
                    e.Round = this._currentRaceRound, C.RpcComponent.Instance.Call(e, this.OnGetMyChampionRaceSuccess.bind(this))
                } else this.OnGetMyChampionRaceSuccess(this._myTargetRaceInfos[this._currentRaceRound])
            }, t.prototype.PreRequestMyChampionRace = function() {
                var e = this,
                    t = new this.GetMyChampionRace_RequestFunctions[this._championShipType];
                t.Round = this._currentRaceRound + 1, C.RpcComponent.Instance.CallWithoutMask(t, function(n) {
                    f.EZLog.Log("PreRequestMyChampionRace GetInfo. Round: " + t.Round), e._myTargetRaceInfos[t.Round] = n
                })
            }, t.prototype.OnGetMyChampionRaceSuccess = function(e) {
                if (this.MyRaceButtonBar.active = !0, e.TargetInfo) {
                    if (this._myTargetRaceInfo = e, this._myTargetRaceInfos[this._currentRaceRound] = e, this.TeamTogglesContainer.active = !0, this.ShowMyRaceView(), this.SetButtonBarView(1), this._currentRaceRound < this.GROUP_ROUND + c.RACE_64_ROUND + c.RACE_8_ROUND && !this._myTargetRaceInfos[this._currentRaceRound + 1]) {
                        var t = this.GetPreRequestTimeInterval();
                        this.scheduleOnce(this.PreRequestMyChampionRace, t)
                    }
                } else if (this._currentState == l.RaceInGroup || 0 == e.MyCurrentRank) {
                    this.TeamTogglesContainer.active = !1, this.RaceInfoView.active = !0;
                    var n = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotReachRquirement").ToUILocale();
                    this.ShowRaceInfoTitleNodes(1, n), this.RaceDetailNode.active = !1, this.SetButtonBarView(0)
                } else this.RaceInfoView.active = !0, this.RaceStateDescRichText.node.active = !0, this.TeamTogglesContainer.active = !1, n = void 0, n = e.MyCurrentRank > 64 ? (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInCurrentRound").ToUILocale().Fmt(64) : e.MyCurrentRank > 32 ? (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInCurrentRound").ToUILocale().Fmt(32) : e.MyCurrentRank > 16 ? (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInCurrentRound").ToUILocale().Fmt(16) : e.MyCurrentRank > 8 ? (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInCurrentRound").ToUILocale().Fmt(8) : e.MyCurrentRank > 4 ? (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInCurrentRound").ToUILocale().Fmt(4) : (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInFinalRace").ToUILocale(), this.ShowRaceInfoTitleNodes(1, n), this.RaceStateDescRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_MyFinalRank").ToUILocale().Fmt(e.MyCurrentRank), this.SetButtonBarView(0)
            }, t.prototype.GetPreRequestTimeInterval = function() {
                var e = this.GetCurrentRoundTimePassed(),
                    t = e > this.BATTLE_GUESS_DURATION ? this.ONE_ROUND_DURATION - e : this.BATTLE_DURATION;
                return Math.floor((this.ONE_ROUND_DURATION - e - Math.random() * t) / d.Etc.SecondDuration)
            }, t.prototype.ShowMyRaceView = function() {
                this._leftTeamInfo = this._myTargetRaceInfo.MyInfo, this._rightTeamInfo = this._myTargetRaceInfo.TargetInfo, this.MyRaceView.active = !0, this.CurrentRoundStateNode.active = !0, this.CurrentRoundNode.active = !0, this._currentItemComponentIndex = 0, this._currentTeamIndex = 0, this.SetMyRaceStateTitle(), this.SetTeamPlayerInfoView(this._leftTeamInfo, this._rightTeamInfo), this._teamToggleInited ? this.SwitchTeamView() : (this.InitTeamToggleView(), this.SwitchTeamView()), this.TeamTogglesContainer.active = !0, this.OnMyRaceBattleRoundSchedule(), this.schedule(this.OnMyRaceBattleRoundSchedule, 1)
            }, t.prototype.SetMyRaceStateTitle = function() {
                switch (this._currentState) {
                    case l.Closed:
                    case l.NotOpen:
                        this.ShowMyRaceNoInMatchView();
                        break;
                    case l.RaceInGroup:
                        this.CurrentRoundNode.active = !0, this.CurrentRoundLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_GuessInGropuStateTitle").ToUILocale().Fmt(this._currentRaceRound);
                        break;
                    case l.RaceInRound64:
                        this.CurrentRoundNode.active = !0, this.CurrentRoundLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_GuessIn64And8Title").ToUILocale().Fmt(64);
                        break;
                    case l.RaceInRound8:
                        this.CurrentRoundNode.active = !0, this.CurrentRoundLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_GuessIn64And8Title").ToUILocale().Fmt(8)
                }
            }, t.prototype.SetTeamPlayerInfoView = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n;
                    return s(this, function() {
                        return this._leftHeadComponent || (n = cc.instantiate(this._headerPrefab), this._leftHeadComponent = n.getComponent(L.default), this._leftHeadComponent.node.setParent(this.LeftHeaderNode)), this._leftHeadComponent.SetUI(e.HeadIcon, e.HeadFrame, e.Title), this._leftHeadComponent.SetLevel(e.Level), this.LeftPlayerNameLabel.string = e.Name, this.LeftPlayerServerInfoRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_ZoneAndAlliance").ToUILocale().Fmt(e.Zone, e.AllianceName), this._rightHeadComponent || (n = cc.instantiate(this._headerPrefab), this._rightHeadComponent = n.getComponent(L.default), this._rightHeadComponent.node.setParent(this.RightHeaderNode)), this._rightHeadComponent.SetUI(t.HeadIcon, t.HeadFrame, t.Title), this._rightHeadComponent.SetLevel(t.Level), this.RightPlayerNameLabel.string = t.Name, this.RightPlayerServerInfoRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_ZoneAndAlliance").ToUILocale().Fmt(t.Zone, t.AllianceName), [2]
                    })
                })
            }, t.prototype.InitTeamToggleView = function() {
                var e = this;
                this._teamToggleInited = !0, this.TeamToggles.forEach(function(t, n) {
                    t.node.name = n.toString(), t.Init((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[e._championShipType] + "Ship_TeamToggleName").ToUILocale().Fmt(n + 1)), t.node.on("toggle", e.OnSwitchTeam, e)
                }), this.OnSwitchTeam(this.TeamToggles[0]), this.TeamToggles[0].check()
            }, t.prototype.OnSwitchTeam = function(e) {
                var t = parseInt(e.node.name);
                this._currentTeamIndex != t && (this._currentTeamIndex = t, this.SwitchTeamView())
            }, t.prototype.SwitchTeamView = function() {
                var e = this._leftTeamInfo.Formations[this._currentTeamIndex],
                    t = this._rightTeamInfo.Formations[this._currentTeamIndex];
                this.RenderTeamView(this.LeftTeamSlots, this.LeftTeamElemetEffect, this.LeftTeamPowerLabel, e.FormationType, e.Heros, e.Power), this.RenderTeamView(this.RightTeamSlots, this.RightTeamElemetEffect, this.RightTeamPowerLabel, t.FormationType, t.Heros, t.Power)
            }, t.prototype.RenderTeamView = function(e, t, n, o, r, i) {
                var a = C.ConfigDataComponent.Instance.GetConfigById(u.FormationType_Config, o),
                    s = [];
                e.forEach(function(e) {
                    e.removeAllChildren()
                });
                for (var l = 0; l < r.length; l++) {
                    var c = r[l];
                    if (c) {
                        var p = this.itemComponents[this._currentItemComponentIndex];
                        p || (p = cc.instantiate(this._itemPrefab).getComponent(k.ItemComponent), this.itemComponents.push(p)), p.node.setParent(e[a.Data[l] - 1]), 0 != c.HeroId ? p.Init({
                            ItemId: c.HeroId,
                            StarLevel: c.StarLevel,
                            Level: c.Level,
                            TempleLevel: c.TempleLevel
                        }, k.ItemComponentType.HeroInfo) : p.SetHeroSimpleState(), s.push({
                            HeroId: c.HeroId,
                            StarLevel: c.StarLevel
                        }), this._currentItemComponentIndex++
                    }
                }
                t.InitByHeroId(s), n.string = i.toString()
            }, t.prototype.OnMyRaceBattleRoundSchedule = function() {
                var e = this.GetCurrentRoundTimePassed();
                e < this.BATTLE_GUESS_DURATION ? this.CurrentRoundStateRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_GuessState").ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(this.BATTLE_GUESS_DURATION - e)) : e < this.ONE_ROUND_DURATION ? (this.CurrentRoundStateRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_InBattleState").ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(this.ONE_ROUND_DURATION - e)), this._battlePlayedRound < this._currentRaceRound && (this._battlePlayedRound = this._currentRaceRound, this.StartCurrentBattlePlay(), this.scheduleOnce(this.OnBattlePlayEndSchedule, (this.ONE_ROUND_DURATION - e) / d.Etc.SecondDuration))) : (this.unschedule(this.OnMyRaceBattleRoundSchedule), w.BattleManager.Instance.IsInBattle(n.MapTypesByChampionType[this._championShipType]) || this.HandleMyRaceEnd())
            }, t.prototype.HandleMyRaceEnd = function() {
                this.RefreshCurrentState(), this.RequestGetMyChampionRace()
            }, t.prototype.OnBattlePlayEndSchedule = function() {
                switch (f.EZLog.Log("Enter OnBattlePlayEndSchedule"), this._currentTabIndex) {
                    case 0:
                        n.BattleEndCallback = this.HandleMyRaceEnd.bind(this), n.ShowSettlement = !0, n.StopBattleByTimeEnd();
                        break;
                    case 1:
                        n.BattleEndCallback = this.HandelGuessEnd.bind(this), n.ShowSettlement = !1, n.StopBattleByTimeEnd()
                }
            }, t.prototype.ShowGuessNoInMatchView = function() {
                this.HideMainPartView(), this.RaceInfoView.active = !0, this.TeamTogglesContainer.active = !1, this.SetButtonBarView(0);
                var e = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotOpen").ToUILocale();
                this.ShowRaceInfoTitleNodes(0, e), this.OnRaceTimeLeftSchedule(), this.schedule(this.OnRaceTimeLeftSchedule, 1), this.ShowRuleInRaceStateDescRichText()
            }, t.prototype.ShowGuessView = function() {
                this.MyRaceView.active = !0, this.CurrentRoundStateNode.active = !0, this.GuessBarNode.active = !0, this._leftTeamInfo = this._currentGuessRaceInfo.User1, this._rightTeamInfo = this._currentGuessRaceInfo.User2, this.SetButtonBarView(1), this.SetGuessStateTitle(), this.OnGuessRoundSchedule(), this.schedule(this.OnGuessRoundSchedule, 1), this.SetTeamPlayerInfoView(this._leftTeamInfo, this._rightTeamInfo), this._currentItemComponentIndex = 0, this._currentTeamIndex = 0, this._teamToggleInited ? this.SwitchTeamView() : (this.InitTeamToggleView(), this.SwitchTeamView()), this.TeamTogglesContainer.active = !0
            }, t.prototype.SetGuessStateTitle = function() {
                switch (this._currentState) {
                    case l.Closed:
                    case l.NotOpen:
                        this.ShowGuessNoInMatchView();
                        break;
                    case l.RaceInGroup:
                        this.CurrentRoundNode.active = !0, this.CurrentRoundLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_GuessInGropuStateTitle").ToUILocale().Fmt(this._currentRaceRound);
                        break;
                    case l.RaceInRound64:
                        this.CurrentRoundNode.active = !0, this.CurrentRoundLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_GuessIn64And8Title").ToUILocale().Fmt(64);
                        break;
                    case l.RaceInRound8:
                        this.CurrentRoundNode.active = !0, this.CurrentRoundLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_GuessIn64And8Title").ToUILocale().Fmt(8)
                }
            }, t.prototype.SetGuessBar = function(e) {
                this.GuessBar.progress = (this._currentGuessRaceInfo.BetNums1 + 1) / (this._currentGuessRaceInfo.BetNums1 + 1 + this._currentGuessRaceInfo.BetNums2 + 1), e && this._currentGuessRaceInfo.State <= 0 ? (b.UIUtlity.OnNodeGray(this.SupportLeftButton.node), b.UIUtlity.OnNodeGray(this.SupportRightButton.node), this.SupportLeftButtonLabelActive.node.active = !1, this.SupportRightButtonLabelActive.node.active = !1, this.SupportLeftButtonLabelGrey.node.active = !0, this.SupportRightButtonLabelGrey.node.active = !0, this.SupportLeftButtonLabelGrey.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Support").ToUILocale(), this.SupportRightButtonLabelGrey.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Support").ToUILocale()) : 0 == this._currentGuessRaceInfo.State ? (b.UIUtlity.OffNodeGray(this.SupportLeftButton.node), b.UIUtlity.OffNodeGray(this.SupportRightButton.node), this.SupportLeftButtonLabelActive.node.active = !0, this.SupportRightButtonLabelActive.node.active = !0, this.SupportLeftButtonLabelGrey.node.active = !1, this.SupportRightButtonLabelGrey.node.active = !1, this.SupportLeftButtonLabelActive.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Support").ToUILocale(), this.SupportRightButtonLabelActive.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Support").ToUILocale()) : 1 == this._currentGuessRaceInfo.State ? (b.UIUtlity.OffNodeGray(this.SupportLeftButton.node), b.UIUtlity.OnNodeGray(this.SupportRightButton.node), this.SupportLeftButtonLabelActive.node.active = !0, this.SupportRightButtonLabelActive.node.active = !1, this.SupportLeftButtonLabelGrey.node.active = !1, this.SupportRightButtonLabelGrey.node.active = !0, this.SupportLeftButtonLabelActive.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Supported").ToUILocale(), this.SupportRightButtonLabelGrey.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Support").ToUILocale()) : 2 == this._currentGuessRaceInfo.State && (b.UIUtlity.OnNodeGray(this.SupportLeftButton.node), b.UIUtlity.OffNodeGray(this.SupportRightButton.node), this.SupportLeftButtonLabelActive.node.active = !1, this.SupportRightButtonLabelActive.node.active = !0, this.SupportLeftButtonLabelGrey.node.active = !0, this.SupportRightButtonLabelGrey.node.active = !1, this.SupportLeftButtonLabelGrey.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Support").ToUILocale(), this.SupportRightButtonLabelActive.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Supported").ToUILocale())
            }, t.prototype.OnGuessRoundSchedule = function() {
                var e = this.GetCurrentRoundTimePassed();
                e < this.BATTLE_GUESS_DURATION ? (this.CurrentRoundStateRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_GuessState").ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(this.BATTLE_GUESS_DURATION - e)), this.SetGuessBar(!1)) : e < this.ONE_ROUND_DURATION ? (this._currentRaceRound > this._battlePlayedRound && (this._battlePlayedRound = this._currentRaceRound, this.StartCurrentBattlePlay(), this.scheduleOnce(this.OnBattlePlayEndSchedule, (this.ONE_ROUND_DURATION - e) / d.Etc.SecondDuration)), this.CurrentRoundStateRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_InBattleState").ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(this.ONE_ROUND_DURATION - e)), this.SetGuessBar(!0)) : (this.unschedule(this.OnGuessRoundSchedule), w.BattleManager.Instance.IsInBattle(g.MapType.CrossServerChampionShip) || this.HandelGuessEnd())
            }, t.prototype.HandelGuessEnd = function() {
                f.EZLog.Log("HandelGuessEnd"), this._currentGuessRaceInfo.State > 0 ? (this.RequestGuessResultInfo(), this.RefreshCurrentState()) : (this.RefreshCurrentState(), this.RequestCurrentGuessInfo())
            }, t.prototype.RequestGuessResultInfo = function() {
                var e = new this.GetMyChampionBetInfo_RequestFunctions[this._championShipType];
                e.Round = this._currentRaceRound, C.RpcComponent.Instance.Call(e, this.OnRequestGuessResultInfoSuccess.bind(this))
            }, t.prototype.OnRequestGuessResultInfoSuccess = function(e) {
                f.UIManager.Instance.ShowUIPanel(_.PanelConfig.CrossServerChampionShipGuessResultPanel.Path, this._championShipType, this._currentGuessRaceInfo.User1, this._currentGuessRaceInfo.User2, e.BetId, e.Result, e.TotalPoint, this.RequestCurrentGuessInfo.bind(this))
            }, t.prototype.RequestCurrentGuessInfo = function() {
                if (f.EZLog.Log("RequestCurrentGuessInfo _currentRaceRound: " + this._currentRaceRound), this._currentState <= l.NotOpen || this._currentState >= l.Closed) this.ShowGuessNoInMatchView();
                else if (this._myGuessRaceInfos[this._currentRaceRound]) f.EZLog.Log("RequestCurrentGuessInfo Use Cache"), this.OnRequestCurrentGuessInfoSuccess(this._myGuessRaceInfos[this._currentRaceRound]);
                else {
                    f.EZLog.Log("RequestCurrentGuessInfo Request");
                    var e = new this.GetChampionCurrentGuessRaceInfo_RequestFunctions[this._championShipType];
                    e.Round = this._currentRaceRound, C.RpcComponent.Instance.Call(e, this.OnRequestCurrentGuessInfoSuccess.bind(this))
                }
            }, t.prototype.PreRequestGuessInfo = function() {
                var e = this,
                    t = new this.GetChampionCurrentGuessRaceInfo_RequestFunctions[this._championShipType];
                t.Round = this._currentRaceRound + 1, C.RpcComponent.Instance.CallWithoutMask(t, function(n) {
                    f.EZLog.Log("PreRequestGuessInfo GetInfo . Round : " + t.Round), e._myGuessRaceInfos[t.Round] = n
                })
            }, t.prototype.OnRequestCurrentGuessInfoSuccess = function(e) {
                if (f.EZLog.Log("OnRequestCurrentGuessInfoSuccess"), this.SetCurrencyView(), 0 == e.Id) f.EZLog.Log("OnRequestCurrentGuessInfoSuccess res.Id == 0"), this.ShowGuessNoInMatchView(), this.TeamTogglesContainer.active = !1;
                else if (this._currentGuessRaceInfo = e, this._myGuessRaceInfos[this._currentRaceRound] = e, this._leftTeamInfo = e.User1, this._rightTeamInfo = e.User2, this.ShowGuessView(), this.TeamTogglesContainer.active = !0, this._currentRaceRound < this.GROUP_ROUND + c.RACE_64_ROUND + c.RACE_8_ROUND && !this._myGuessRaceInfos[this._currentRaceRound + 1]) {
                    var t = this.GetPreRequestTimeInterval();
                    f.EZLog.Log("OnRequestCurrentGuessInfoSuccess randomTime : " + t), this.scheduleOnce(this.PreRequestGuessInfo, t)
                }
            }, t.prototype.RefreshBaseMatchIds = function(e) {
                var t = e / this.PLAYER_PER_PAGE;
                this._baseMatchIds = [];
                for (var n = 0; n < this._raceMapConfig.length; n++) this._raceMapConfig[n].Id > 100 * t && this._raceMapConfig[n].Id < 200 * t && this._baseMatchIds.push(this._raceMapConfig[n].Id)
            }, t.prototype.GetMatchIdsByPlayerCount = function(e, t) {
                void 0 === t && (t = 0);
                for (var n = e, o = e / this.PLAYER_PER_PAGE, r = [], i = 0; i < this._raceMapConfig.length; i++) this._raceMapConfig[i].Id > 100 * o && this._raceMapConfig[i].Id < 100 * n && r.push(this._raceMapConfig[i].Id);
                return r
            }, t.prototype.GetPageMatchIdsByBaseId = function(e) {
                var t = [],
                    n = Math.log2(this.PLAYER_PER_PAGE);
                t[0] = [e];
                for (var o = function(e) {
                        t[e - 1].forEach(function(n) {
                            var o = C.ConfigDataComponent.Instance.GetConfigById(u.ChampionFinalRace_Config, n);
                            t[e] || (t[e] = []), t[e].push(o.P1), t[e].push(o.P2)
                        })
                    }, r = 1; r < n; r++) o(r);
                return t
            }, t.prototype.RequestChampionMatchInfo = function(e) {
                var t = this,
                    n = !1,
                    o = [];
                if (e.forEach(function(e) {
                        e.forEach(function(e) {
                            t._currentRaceMapInfos[e] && (n = !0), o.push(e)
                        })
                    }), n) f.EZLog.Log("RequestChampionMatchInfo use cache"), this.OnRequestChampionMatchInfosSuccess();
                else {
                    var r = new this.GetChampionMatchInfo_RequestFunctions[this._championShipType];
                    r.MatchIds = o, C.RpcComponent.Instance.Call(r, this.OnRequestChampionMatchInfosSuccess.bind(this))
                }
            }, t.prototype.OnRequestChampionMatchInfosSuccess = function(e) {
                if (e)
                    for (var t in e.MatchInfos) this._currentRaceMapInfos[t] = e.MatchInfos[t];
                this.RenderMapView()
            }, t.prototype.ShowRaceMapView = function() {
                this._currentRaceMapInfos = {}, this._baseMatchIds.sort(function(e, t) {
                    return e - t
                }), this.RaceMapPageNode.active = this._baseMatchIds.length > 1, this._currentGroupPageIndex = 0, this.SetButtonBarView(1), this.SetMapStateInfoView(), this.RequestChampionMatchInfo(this.GetPageMatchIdsByBaseId(this._baseMatchIds[this._currentGroupPageIndex]))
            }, t.prototype.SetMapStateInfoView = function() {
                this.CurrentRoundNode.active = !0, this.CurrentRoundLabel.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_MapStateTitle").ToUILocale().Fmt(this.PLAYER_PER_PAGE * this._baseMatchIds.length, this._currentGroupPageIndex + 1), this._baseMatchIds.length > 1 || this._championShipType == O.ChampionShipType.AllZone ? (this.RaceMapPageNode.active = !0, this.CurrentGroupNameLabel.string = this.CurrentRoundLabel.string) : this.RaceMapPageNode.active = !1, this.RaceStateDescRichText.node.active = !0, this.OnMapRoundCountDown(), this.schedule(this.OnMapRoundCountDown, 1)
            }, t.prototype.OnMapRoundCountDown = function() {
                var e = this.GetCurrentRoundTimePassed();
                e < this.BATTLE_GUESS_DURATION ? this.RaceStateDescRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_MapRoundGuessState").ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(this.BATTLE_GUESS_DURATION - e)) : e < this.ONE_ROUND_DURATION ? this.RaceStateDescRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_MapRoundInBattleState").ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(this.ONE_ROUND_DURATION - e)) : this.unschedule(this.OnMapRoundCountDown)
            }, t.prototype.RenderMapView = function() {
                var e = this;
                f.EZLog.Log("RenderMapView CurrentRound: " + this._currentRaceRound);
                for (var t = 0, n = this.GetPageMatchIdsByBaseId(this._baseMatchIds[this._currentGroupPageIndex]), o = !0, r = function(r) {
                        n[r].forEach(function(i, a) {
                            var s = e._currentRaceMapInfos[i],
                                l = 2 == r;
                            if (0 != s.Id) {
                                o = !1;
                                var c = e.GetRoundByLast64MatchId(s.Id),
                                    p = e.GetCurrentRoundTimePassed(),
                                    d = e._currentRaceRound == c && p < e.BATTLE_GUESS_DURATION,
                                    h = C.ConfigDataComponent.Instance.GetConfigById(u.ChampionFinalRace_Config, s.Id);
                                if (0 == r && !d) {
                                    var f = 1 == s.Result ? s.User1 : s.User2;
                                    e.RenderHeaderItem(e.PlayerNodeFinal, t, !0, f, !1, !1, s), t++
                                }
                                n.forEach(function(e) {
                                    e.forEach(function() {
                                        h.P1
                                    })
                                }), e.RenderHeaderItem(e["PlayerNodesRound" + r][2 * a], t, 1 == s.Result, s.User1, d, l, e._currentRaceMapInfos[h.P1]), t++, e.RenderHeaderItem(e["PlayerNodesRound" + r][2 * a + 1], t, 2 == s.Result, s.User2, d, l, e._currentRaceMapInfos[h.P2]), t++, d ? (e["VictoryLinesRound" + r][2 * a].active = !1, e["VictoryLinesRound" + r][2 * a + 1].active = !1, e["PlayerNodesRound" + (r - 1)] && (e.RenderHeaderItem(e["PlayerNodesRound" + (r - 1)][a], t, !1, null, !0, !1, null), t++)) : (e["VictoryLinesRound" + r][2 * a].active = 1 == s.Result, e["VictoryLinesRound" + r][2 * a + 1].active = !(1 == s.Result), e["PlayerNodesRound" + (r - 1)] && (e.RenderHeaderItem(e["PlayerNodesRound" + (r - 1)][a], t, !0, 1 == s.Result ? s.User1 : s.User2, !1, !1, s), t++))
                            } else e["PlayerNodesRound" + r][2 * a].removeAllChildren(), e["PlayerNodesRound" + r][2 * a + 1].removeAllChildren(), e["VictoryLinesRound" + r][2 * a].active = !1, e["VictoryLinesRound" + r][2 * a + 1].active = !1
                        })
                    }, i = 0; i < n.length; i++) r(i);
                o && this._championShipType != O.ChampionShipType.AllZone ? this.ShowRaceMapNotInMatchView(2 == this._currentTabIndex ? 64 : 8) : (this.RaceMapView.active = !0, this.CurrentRoundNode.active = !0)
            }, t.prototype.RenderHeaderItem = function(e, t, n, o, r, i, a) {
                if (void 0 === i && (i = !0), !this._mapHeaderComponents[t]) {
                    var s = cc.instantiate(this._mapHeaderPrefab);
                    this._mapHeaderComponents.push(s.getComponent(P.default))
                }
                this._mapHeaderComponents[t].node.setParent(e), this._mapHeaderComponents[t].InitUI(this._championShipType, this._headerPrefab, o, r, n, i, a)
            }, t.prototype.GetRoundByLast64MatchId = function(e) {
                var t = Math.floor(e / 100),
                    n = c.RACE_64_ROUND + c.RACE_8_ROUND - Math.log2(t) + this.GROUP_ROUND;
                return f.EZLog.Log("GetRoundByLast64MatchId matchId : " + e), f.EZLog.Log("GetRoundByLast64MatchId roundByMatchId : " + n), f.EZLog.Log("GetRoundByLast64MatchId currentRound : " + this._currentRaceRound), c.RACE_64_ROUND + c.RACE_8_ROUND - Math.log2(t) + this.GROUP_ROUND
            }, t.prototype.ShowRaceMapNotInMatchView = function(e) {
                this.HideMainPartView(), this.SetButtonBarView(1), this.RaceMapView.active = !0, this.CurrentRoundNode.active = !0, O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType], this.CurrentRoundLabel.string = O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType].ToUILocale().Fmt(e), this.PlayerNodesRound0.forEach(function(e) {
                    e.removeAllChildren()
                }), this.PlayerNodesRound1.forEach(function(e) {
                    e.removeAllChildren()
                }), this.PlayerNodesRound2.forEach(function(e) {
                    e.removeAllChildren()
                }), this.VictoryLinesRound0.forEach(function(e) {
                    e.active = !1
                }), this.VictoryLinesRound1.forEach(function(e) {
                    e.active = !1
                }), this.VictoryLinesRound2.forEach(function(e) {
                    e.active = !1
                }), this.PlayerNodeFinal.removeAllChildren(), this.RaceMapPageNode.active = !1
            }, t.prototype.OnReturnButtonClicked = function() {
                f.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRewardButtonClicked = function() {
                var e = this,
                    t = new this.GetMyHistoryRank_RequestFunctions[this._championShipType];
                C.RpcComponent.Instance.Call(t, function(t) {
                    var n = e.RankRewardTypesByChampionType[e._championShipType],
                        o = O.default._CHAMPION_PANEL_LOCAL_PREFIXES[e._championShipType] + "Ship_rewardPanelTitleWeekly",
                        r = O.default._CHAMPION_PANEL_LOCAL_PREFIXES[e._championShipType] + "Ship_RewardRule",
                        i = C.RpcComponent.Instance.ServerTime,
                        a = i > e._editTeamEndTime && i < e._currentRaceStartTime || e._currentState == l.RaceInGroup || e._currentState == l.RaceInRound64 || e._currentState == l.RaceInRound8 ? -1 : t.MyLastRank;
                    f.UIManager.Instance.ShowUIPanel(_.PanelConfig.TimedRankRewardPanel.Path, a, n, o, r, e.MaxRankByChampionType[e._championShipType])
                })
            }, t.prototype.OnMyGuessButtonClicked = function() {
                var e = this,
                    t = new this.GetMyChampionBetHistory_RequestFunctions[this._championShipType];
                t.Type = 2, C.RpcComponent.Instance.Call(t, function(t) {
                    0 != t.Reports.length ? f.UIManager.Instance.ShowUIPanel(_.PanelConfig.CrossServerChampionReportPanel.Path, 1, t, e._championShipType) : b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[e._championShipType] + "Ship_NoGuessHistory").ToUILocale())
                })
            }, t.prototype.OnShopButtonClicked = function() {
                f.UIManager.Instance.ShowUIPanel(_.PanelConfig.ShopPanel.Path, 2, 102)
            }, t.prototype.OnRankButtonClicked = function() {
                var e = this;
                if (1 == this._championShipStatus) b.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale());
                else {
                    if (this._currentState == l.RaceInGroup || this._currentState == l.RaceInRound64 || this._currentState == l.RaceInRound8) return void b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInRankTime").ToUILocale());
                    var t = m.default.IsCrossServerConditonsEnable(),
                        n = new p.Req_Player_GetRank;
                    n.RankType = t ? g.RankTypeId.CrossZoneChampionRace : g.RankTypeId.ZoneChampionRace, C.RpcComponent.Instance.Call(n, function(t) {
                        if (t.Data.Rows.length > 0) {
                            var n = m.default.GetCrossServerChampionShipRankData(t);
                            f.UIManager.Instance.ShowUIPanel(_.PanelConfig.RankDetailPanel.Path, O.default._CHAMPION_RANK_ID_BY_TYPE[e._championShipType], n.Data.Rows, n.Data.Achievements, n.MyRank, n.MyRankData)
                        } else b.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())
                    })
                }
            }, t.prototype.OnGoToArenaButtonClicked = function() {
                switch (this._championShipType) {
                    case O.ChampionShipType.Normal:
                        f.UIManager.Instance.ShowUIPanel(_.PanelConfig.ArenaPanel.Path);
                        break;
                    case O.ChampionShipType.AllZone:
                        var e = m.default.Instance.IsGameModuleUnlock(g.GameModuleType.CrossZoneChampionRace);
                        if (!e[0]) return b.UIUtlity.ShowFloatingHint(e[1]);
                        if (w.BattleManager.Instance.IsInBattle(g.MapType.CrossServerChampionShip)) return void w.BattleManager.Instance.ResumePlayBattle(g.MapType.CrossServerChampionShip);
                        if (!M.default.CrossServerLimitConditions()) return;
                        var t = new p.Req_CrossZone_GetMyChampionHistoryRank;
                        C.RpcComponent.Instance.Call(t, this.OnGetChampionInfo.bind(this))
                }
            }, t.prototype.OnGetLadderInfo = function(e) {
                f.UIManager.Instance.ShowUIPanel(_.PanelConfig.CrossServerLadderPanel.Path, e)
            }, t.prototype.OnGetChampionInfo = function(e) {
                f.UIManager.Instance.ShowUIPanel(_.PanelConfig.CrossServerChampionStartPanel.Path, e, O.ChampionShipType.Normal)
            }, t.prototype.OnBattleReportButtonClicked = function() {
                var e = this,
                    t = new this.GetMyChampionHistoryReports_RequestFunctions[this._championShipType];
                t.Type = 1, C.RpcComponent.Instance.Call(t, function(t) {
                    0 != t.Reports.length ? f.UIManager.Instance.ShowUIPanel(_.PanelConfig.CrossServerChampionReportPanel.Path, 0, t, e._championShipType) : b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[e._championShipType] + "Ship_NoBattleReports").ToUILocale())
                })
            }, t.prototype.OnEditTeamButtonClicked = function() {
                var e = C.RpcComponent.Instance.ServerTime;
                if (e > this._editTeamEndTime && e < this._currentRaceStartTime || this._currentState == l.RaceInGroup || this._currentState == l.RaceInRound64 || this._currentState == l.RaceInRound8) {
                    var t = C.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this.RaceStartHourKeysByType[this._championShipType]),
                        n = C.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this.RaceRunDataHourKeysByType[this._championShipType]);
                    b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_CantEditTeam").ToUILocale().Fmt(t - n))
                } else {
                    var o = 0;
                    switch (this._championShipType) {
                        case O.ChampionShipType.Normal:
                            o = 9;
                            break;
                        case O.ChampionShipType.AllZone:
                            o = 16
                    }
                    f.UIManager.Instance.ShowUIPanel(_.PanelConfig.BattleFormationPanel.Path, this.RequestSaveFormation.bind(this), [o, o, o], {
                        IsSaveFormationState: !0
                    })
                }
            }, t.prototype.RequestSaveFormation = function(e) {
                var t = new p.Req_Hero_SetFormation;
                t.Formations = e, C.RpcComponent.Instance.Call(t, function() {
                    b.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale())
                })
            }, t.prototype.OnSupportLeftButtonClicked = function() {
                this.HandleGuessSupport(!0)
            }, t.prototype.OnSupportRightButtonClicked = function() {
                this.HandleGuessSupport(!1)
            }, t.prototype.HandleGuessSupport = function(e) {
                var t = this.GetCurrentRoundTimePassed();
                if (t < this.BATTLE_GUESS_DURATION) {
                    if (this._currentGuessRaceInfo.State > 0) return void b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Guessed").ToUILocale());
                    this.GuessCoinBar.Init(g.CommonItemId.ChampionGuessCoin, !1, 0), this._currentGuessRaceInfo.State = e ? 1 : 2, this.RequestChampionGuessBet(this._currentGuessRaceInfo.State)
                } else t < this.ONE_ROUND_DURATION && b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInGuessTime").ToUILocale())
            }, t.prototype.RequestChampionGuessBet = function(e) {
                var t = new this.ChampionGuessBet_RequestFunctions[this._championShipType];
                t.BetId = e, C.RpcComponent.Instance.Call(t, this.OnRequestChampionGuessBetSuccess.bind(this))
            }, t.prototype.OnRequestChampionGuessBetSuccess = function(e) {
                switch (f.EZLog.Log("OnRequestChampionGuessBetSuccess res.state: " + e.State), e.State) {
                    case -1:
                        b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInGuessTime").ToUILocale());
                        break;
                    case 0:
                        b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_Guessed").ToUILocale());
                        break;
                    case 1:
                        switch (b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_GuessSuccess").ToUILocale()), this._championShipType) {
                            case O.ChampionShipType.AllZone:
                                I.default.SetItem(I.GameRecordDefine.AllZoneChampionShipGuessRedDote, this._currentRaceStartTime + "_" + this._currentRaceRound);
                                break;
                            case O.ChampionShipType.Normal:
                                I.default.SetItem(I.GameRecordDefine.ChampionShipGuessRedDote, this._currentRaceStartTime + "_" + this._currentRaceRound)
                        }
                        this.BindRedDot()
                }
                this._currentGuessRaceInfo.BetNums1 = e.BetNums1, this._currentGuessRaceInfo.BetNums2 = e.BetNums2, this.OnGuessRoundSchedule()
            }, t.prototype.OnReplayButtonClicked = function() {
                this.GetCurrentRoundTimePassed() < this.BATTLE_GUESS_DURATION ? b.UIUtlity.ShowFloatingHint((O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_NotInBattleTime").ToUILocale()) : this.StartCurrentBattlePlay()
            }, t.prototype.StartCurrentBattlePlay = function() {
                var e = this;
                f.EZLog.Log("StartCurrentBattlePlay _currentRaceRound :" + this._currentRaceRound);
                var t = m.default.GetChampionShipRoundStringByRound(this._championShipType, this._currentRaceRound);
                switch (this._currentTabIndex) {
                    case 0:
                        n.BattleInfo = {
                            Result: this._myTargetRaceInfo.Result,
                            AttackerInfo: this._myTargetRaceInfo.MyInfo,
                            DefenderInfo: this._myTargetRaceInfo.TargetInfo
                        }, n.Reports = this._myTargetRaceInfo.Reports, n.ScoreInfo = [this._myTargetRaceInfo.MyScoreChange, this._myTargetRaceInfo.TargetScoreChange], n.ShowSettlement = !0, n.StartBattle(n.MapTypesByChampionType[this._championShipType], t);
                        break;
                    case 1:
                        var o = new p.Req_Player_GetCommonReport;
                        o.Id = this._currentGuessRaceInfo.ReportId, C.RpcComponent.Instance.Call(o, function(o) {
                            n.BattleInfo = {
                                Result: e._currentGuessRaceInfo.Result,
                                AttackerInfo: e._currentGuessRaceInfo.User1,
                                DefenderInfo: e._currentGuessRaceInfo.User2
                            }, n.Reports = o.Reports, n.ScoreInfo = null, n.ShowSettlement = !0, n.StartBattle(n.MapTypesByChampionType[e._championShipType], t)
                        })
                }
            }, t.prototype.OnPreviousGroupButtonClicked = function() {
                this._currentGroupPageIndex > 0 && (this._currentGroupPageIndex--, this.SetMapStateInfoView(), this.RequestChampionMatchInfo(this.GetPageMatchIdsByBaseId(this._baseMatchIds[this._currentGroupPageIndex])))
            }, t.prototype.OnNextGroupButtonClicked = function() {
                this._currentGroupPageIndex < this._baseMatchIds.length - 1 && (this._currentGroupPageIndex++, this.SetMapStateInfoView(), this.RequestChampionMatchInfo(this.GetPageMatchIdsByBaseId(this._baseMatchIds[this._currentGroupPageIndex])))
            }, t.prototype.OnRaceTimeLeftSchedule = function() {
                var e;
                if (1 == this._championShipStatus) e = this._nextRaceStartTime - C.RpcComponent.Instance.ServerTime;
                else switch (this._currentState) {
                    case l.NotOpen:
                        e = this._currentRaceStartTime - C.RpcComponent.Instance.ServerTime;
                        break;
                    case l.Closed:
                        e = this._nextRaceStartTime - C.RpcComponent.Instance.ServerTime;
                        break;
                    default:
                        e = 0
                }
                e > 0 ? this.RaceTimeLeftRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_RaceTimeLeftTag").ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(e)) : (this.RaceTimeLeftRichText.string = (O.default._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "Ship_RaceTimeLeftTag").ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(0)), this.unschedule(this.OnRaceTimeLeftSchedule), this.SwitchTabView())
            }, t.prototype.OnRuleButtonClicked = function() {
                var e = {
                    name: (O.default._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_Rule_Name").ToUILocale(),
                    titles: [(O.default._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_Title").ToUILocale()],
                    contents: [(O.default._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_Rule_Content").ToUILocale()]
                };
                b.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnPredictButtonClicked = function() {
                var e = this,
                    t = new p.Req_CrossZone_GetForecastData;
                t.Id = g.ForecastType.AllZoneChampionRace, t.Type = g.ForecastContentType.WinUid, t.DataType = 1, t.IsGetRank = 0, C.RpcComponent.Instance.Call(t, function(t) {
                    f.UIManager.Instance.ShowUIPanel(_.PanelConfig.ChampionPreviewPanel.Path, O.ChampionShipType.AllZone, t, null, e._currentRaceRound)
                })
            }, t.prototype.SetRefreshOnTheEnd = function() {
                var e = C.RpcComponent.Instance.ServerTime,
                    t = this.ONE_ROUND_DURATION * (this.GROUP_ROUND + c.RACE_64_ROUND + c.RACE_8_ROUND),
                    n = (this._currentRaceStartTime + t - e) / d.Etc.SecondDuration;
                n > 0 && this.scheduleOnce(this.SwitchTabView, n)
            }, t.RejustBattleResultAndReports = function(e, t, n, o) {
                var r, i, a, s = C.DataCenter.Instance.GetStringData(g.UserDataKey.RoleName),
                    l = [];
                if (e.Uid == C.DataCenter.Instance.Uid || e.Name == s || t.Uid == C.DataCenter.Instance.Uid || t.Name == s) {
                    if (e.Uid == C.DataCenter.Instance.Uid || e.Name == s) r = e, i = t, a = n, l = o;
                    else if (r = t, i = e, a = 1 == n ? 0 : 1, o)
                        for (var c = 0; c < o.length; c++) l.push(o[c]), o[c].Result == y.BattleResult.AttackerWin ? l[c].Result = y.BattleResult.DefenderWin : l[c].Result = y.BattleResult.AttackerWin
                } else r = e, i = t, a = n, l = o;
                return [r, i, a, l]
            }, t.InitBattle = function() {
                f.Game.EventDispatcher.Only(h.GameEventIds.StartBattle.Fmt(g.MapType.CrossServerChampionShip), n.StartBattle, n), f.Game.EventDispatcher.Only(h.GameEventIds.SettleBattle.Fmt(g.MapType.CrossServerChampionShip), n.SettleBattle, n), f.Game.EventDispatcher.Only(h.GameEventIds.SettleAllBattle.Fmt(g.MapType.CrossServerChampionShip), n.SettleFunction, n), f.Game.EventDispatcher.Only(h.GameEventIds.StartBattle.Fmt(g.MapType.AllZoneChampionRace), n.StartBattle, n), f.Game.EventDispatcher.Only(h.GameEventIds.SettleBattle.Fmt(g.MapType.AllZoneChampionRace), n.SettleBattle, n), f.Game.EventDispatcher.Only(h.GameEventIds.SettleAllBattle.Fmt(g.MapType.AllZoneChampionRace), n.SettleFunction, n)
            }, t.StartBattle = function(e, t) {
                f.EZLog.Log("Enter StartBattle"), n.CurrentBattleMapType = e, n.NextBattleIndex = 0;
                var o, r = n.GetNextBattleReport(),
                    i = {};
                o = {
                    MultiBattleResult: [0, 0, 0],
                    DontCloseOnEnd: !0,
                    CanSwitchSpeed: !0,
                    CanSkipPlay: !0,
                    CanPlayInBackground: !1,
                    CanSkipAllPlay: !0
                }, n.HasSelf = !1, r.Players.forEach(function(e) {
                    e.Uid == C.DataCenter.Instance.Uid && (n.HasSelf = !0)
                }), (i = w.BattleManager.Instance.StartPlay(r, o)).SettleParams = [n.BattleInfo, n.Reports, t, n.ScoreInfo], n.HasSelf ? f.UIManager.Instance.ShowUIPanel(_.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, y.CampType.Attacker, i) : f.UIManager.Instance.ShowUIPanel(_.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, null, i)
            }, t.GetNextBattleReport = function() {
                f.EZLog.Log("Enter GetNextBattleReport");
                var e = null;
                return n.BattleInfo && n.NextBattleIndex < n.Reports.length && (e = n.Reports[n.NextBattleIndex], n.NextBattleIndex += 1), e
            }, t.SettleBattle = function(e) {
                f.EZLog.Log("Enter SettleBattle");
                var t = n.GetNextBattleReport();
                if (t) {
                    f.EZLog.Log("Enter SettleBattle Start Next Battle"), e.Reports[0] = t;
                    var o = n.Reports[n.NextBattleIndex - 2].Result;
                    if (n.HasSelf) {
                        var r = !1;
                        n.Reports[n.NextBattleIndex - 2].Players.forEach(function(e) {
                            e.Uid == C.DataCenter.Instance.Uid && e.Camp == y.CampType.Attacker ? r = o == y.BattleResult.AttackerWin : e.Uid == C.DataCenter.Instance.Uid && e.Camp == y.CampType.Defender && (r = o != y.BattleResult.AttackerWin)
                        }), e.ExtraParam.MultiBattleResult[n.NextBattleIndex - 2] = r ? 1 : -1, f.UIManager.Instance.ShowUIPanel(_.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, y.CampType.Attacker, e, n.ShowNextBattle)
                    } else e.ExtraParam.MultiBattleResult[n.NextBattleIndex - 2] = o == y.BattleResult.AttackerWin ? 1 : -1, f.UIManager.Instance.ShowUIPanel(_.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, null, e, n.ShowNextBattle)
                } else f.EZLog.Log("Enter SettleBattle StartSettle"), n.SettleFunction(e)
            }, t.SettleFunction = function(e) {
                if (e.InBackground || f.Game.EventDispatcher.Emit(h.GameEventIds.DelayCloseBattlePanel), delete S.BattleData.PlayingBattleDatas[n.CurrentBattleMapType], n.ShowSettlement) {
                    if (f.EZLog.Log("Enter SettleBattle ShowSettlement Is True"), e.SettleParams) {
                        f.EZLog.Log("Enter SettleBattle SettleParams Is Not Empty");
                        var t = "CrossServerChampionShip/CrossServerChampionShipSettlement",
                            o = e.SettleParams[0];
                        o.Result, 1 == o.Result ? w.BattleManager.Instance.ShowSettlePanel(_.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : w.BattleManager.Instance.ShowSettlePanel(_.PanelConfig.SettlementFailPanel.Path, t, e), n.PanelInstance.unschedule(n.PanelInstance.OnBattlePlayEndSchedule)
                    }
                } else n.BattleEndCallback && n.BattleEndCallback()
            }, t.ShowNextBattle = function(e) {
                f.EZLog.Log("ShowNextBattle "), w.BattleManager.Instance.NextWave(e)
            }, t.StopBattleByTimeEnd = function() {
                f.EZLog.Log("StopBattleByTimeEnd"), w.BattleManager.Instance.StopBattle(n.CurrentBattleMapType, S.CloseBattleType.Cancel), n.BattleEndCallback && n.BattleEndCallback()
            }, t.MapTypesByChampionType = [g.MapType.CrossServerChampionShip, g.MapType.AllZoneChampionRace], t.CurrentStageIndex = 0, t.CurrentShownMode = 0, t.CurrentResult = 0, t.SelectedBuffIndex = 0, t.CacheWave = 0, t.BattleInfo = null, t.Reports = null, t.ScoreInfo = null, t.ShowSettlement = !0, t.HasSelf = !1, t.NextBattleIndex = 0, i([N(cc.Label)], t.prototype, "PanelNameLabel", void 0), i([N(cc.Button)], t.prototype, "RuleButton", void 0), i([N(A.default)], t.prototype, "GuessCoinBar", void 0), i([N(A.default)], t.prototype, "ChampionCoinBar", void 0), i([N(cc.Button)], t.prototype, "RewardButton", void 0), i([N(cc.Label)], t.prototype, "RewardButtonLabel", void 0), i([N(cc.Button)], t.prototype, "MyGuessButton", void 0), i([N(cc.Label)], t.prototype, "MyGuessButtonLabel", void 0), i([N(cc.Button)], t.prototype, "ExchangeShopButton", void 0), i([N(cc.Label)], t.prototype, "ExchangeShopButtonLabel", void 0), i([N(cc.Button)], t.prototype, "RankButton", void 0), i([N(cc.Label)], t.prototype, "RankButtonLabel", void 0), i([N(cc.Button)], t.prototype, "ReturnButton", void 0), i([N([T.default])], t.prototype, "Tabs", void 0), i([N(cc.Node)], t.prototype, "RaceInfoView", void 0), i([N(cc.Node)], t.prototype, "RaceDetailNode", void 0), i([N(cc.RichText)], t.prototype, "RaceStateDescRichText", void 0), i([N(cc.RichText)], t.prototype, "RaceTimeLeftRichText", void 0), i([N(cc.RichText)], t.prototype, "ArenaRankInfoRichText", void 0), i([N(cc.Button)], t.prototype, "GoToArenaButton", void 0), i([N(cc.Label)], t.prototype, "GoToArenaButtonLabel", void 0), i([N(cc.Node)], t.prototype, "MyRaceButtonBar", void 0), i([N(cc.Button)], t.prototype, "BattleReportButton", void 0), i([N(cc.Label)], t.prototype, "BattleReportButtonLabel", void 0), i([N(cc.Button)], t.prototype, "EditTeamButton", void 0), i([N(cc.Label)], t.prototype, "EditTeamButtonLabel", void 0), i([N(cc.Node)], t.prototype, "MyRaceView", void 0), i([N(cc.Node)], t.prototype, "CurrentRoundNode", void 0), i([N(cc.Label)], t.prototype, "CurrentRoundLabel", void 0), i([N(cc.Node)], t.prototype, "CurrentRoundStateNode", void 0), i([N(cc.RichText)], t.prototype, "CurrentRoundStateRichText", void 0), i([N(cc.Node)], t.prototype, "TeamTogglesContainer", void 0), i([N([T.default])], t.prototype, "TeamToggles", void 0), i([N(R.default)], t.prototype, "LeftTeamElemetEffect", void 0), i([N(cc.Label)], t.prototype, "LeftTeamPowerLabel", void 0), i([N(cc.Node)], t.prototype, "LeftTeamSlots", void 0), i([N(cc.Node)], t.prototype, "LeftHeaderNode", void 0), i([N(cc.Label)], t.prototype, "LeftPlayerNameLabel", void 0), i([N(cc.RichText)], t.prototype, "LeftPlayerServerInfoRichText", void 0), i([N(R.default)], t.prototype, "RightTeamElemetEffect", void 0), i([N(cc.Label)], t.prototype, "RightTeamPowerLabel", void 0), i([N([cc.Node])], t.prototype, "RightTeamSlots", void 0), i([N(cc.Node)], t.prototype, "RightHeaderNode", void 0), i([N(cc.Label)], t.prototype, "RightPlayerNameLabel", void 0), i([N(cc.RichText)], t.prototype, "RightPlayerServerInfoRichText", void 0), i([N(cc.Button)], t.prototype, "ReplayButton", void 0), i([N(cc.Node)], t.prototype, "GuessBarNode", void 0), i([N(cc.ProgressBar)], t.prototype, "GuessBar", void 0), i([N(cc.Button)], t.prototype, "SupportLeftButton", void 0), i([N(cc.Label)], t.prototype, "SupportLeftButtonLabelActive", void 0), i([N(cc.Label)], t.prototype, "SupportLeftButtonLabelGrey", void 0), i([N(cc.Label)], t.prototype, "SupportLeftRateLabel", void 0), i([N(cc.Button)], t.prototype, "SupportRightButton", void 0), i([N(cc.Label)], t.prototype, "SupportRightButtonLabelActive", void 0), i([N(cc.Label)], t.prototype, "SupportRightButtonLabelGrey", void 0), i([N(cc.Label)], t.prototype, "SupportRightRateLabel", void 0), i([N(cc.Node)], t.prototype, "RaceMapView", void 0), i([N([cc.Node])], t.prototype, "PlayerNodesRound0", void 0), i([N([cc.Node])], t.prototype, "VictoryLinesRound0", void 0), i([N([cc.Node])], t.prototype, "PlayerNodesRound1", void 0), i([N([cc.Node])], t.prototype, "VictoryLinesRound1", void 0), i([N([cc.Node])], t.prototype, "PlayerNodesRound2", void 0), i([N([cc.Node])], t.prototype, "VictoryLinesRound2", void 0), i([N(cc.Node)], t.prototype, "PlayerNodeFinal", void 0), i([N(cc.Node)], t.prototype, "RaceMapPageNode", void 0), i([N(cc.Button)], t.prototype, "PreviousGroupButton", void 0), i([N(cc.Button)], t.prototype, "NextGroupButton", void 0), i([N(cc.Label)], t.prototype, "CurrentGroupNameLabel", void 0), i([N(cc.Sprite)], t.prototype, "PanelBackground", void 0), i([N(cc.Sprite)], t.prototype, "InfoViewBackground", void 0), i([N(cc.Button)], t.prototype, "PredictButton", void 0), i([N(cc.Label)], t.prototype, "PredictButtonLabel", void 0), i([N(cc.Sprite)], t.prototype, "TeamChampionCupIcon", void 0), i([N([cc.Node])], t.prototype, "RaceInfoTitleNodes", void 0), i([N([cc.Label])], t.prototype, "RaceInfoTitleLabels", void 0), i([N(cc.Node)], t.prototype, "BottomButtonsBarLeft", void 0), i([N(cc.Node)], t.prototype, "BottomButtonsBarRight", void 0), i([N(cc.Node)], t.prototype, "BottomButtonBarOneRow", void 0), n = i([B], t)
        }(f.BaseUIFullScreenPanel);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CrossServerChampionShipHeader": "CrossServerChampionShipHeader",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ElementEffectItem": "ElementEffectItem",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerChampionStartPanel": "CrossServerChampionStartPanel",
        "./CrossServerPortPanel": "CrossServerPortPanel"
    }],
    CrossServerChampionShipResultTip: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06170OFt7tLsZxcYSgQa3CX", "CrossServerChampionShipResultTip");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/HeadComponent"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../../Util/TimeUtil"),
            h = e("../../Components/Components"),
            f = e("./CrossServerChampionStartPanel"),
            y = e("./CrossServerChampionShipPanel"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.PanelBackground = null, t.TimeTipLabel = null, t.HeadComponentNodeArray = [], t.NameLabelArray = [], t.ServerLabelArray = [], t.OKButton = null, t.OKButtonLabel = null, t.PanelBackgroundNameByChampionType = ["CrossServerChampionShipResultBg", "AllZoneChampionShipResultBg"], t.RaceRoundPrepareDurationKeys = ["CrossChampionRaceRoundPrepareDuration", "CrossChampionRaceRoundPrepareDuration"], t.RaceRoundBattleDurationKeys = ["CrossChampionRaceRoundBattleDuration", "AllZoneChampionRaceRoundBattleDuration"], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    return t._headPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this.PanelBackground, [4, this.LoadDynamicAsset("CrossServerChampionShip/PNG/" + this.PanelBackgroundNameByChampionType[this._championShipType], cc.SpriteFrame)];
                                case 1:
                                    return t.spriteFrame = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OKButtonLabel.string = "button_confirm".ToUILocale(), this.OKButton.node.on("click", this.Close, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._playerDataArray = t[0], this._championShipType = t[1], this.SetPlayerInfo(), this.SetTimeInfo()
                }, t.prototype.SetTimeInfo = function() {
                    var e = p.default.GetChampionShipOpenTime(this._championShipType),
                        t = h.ConfigDataComponent.Instance.GetGlobalSettingByKey(this.RaceRoundPrepareDurationKeys[this._championShipType]),
                        n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey(this.RaceRoundBattleDurationKeys[this._championShipType]),
                        o = e + ((this._championShipType == f.ChampionShipType.AllZone ? 0 : h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceScoreRound")) + y.ChampionShipRound.RACE_64_ROUND + y.ChampionShipRound.RACE_8_ROUND) * (t + n),
                        r = d.TimeUtil.Format("YYYY/MM/DD    HH:mm:ss", e) + d.TimeUtil.Format("-HH:mm:ss", o);
                    this.TimeTipLabel.string = "CrossServerChampion_RankingTip_Time".ToUILocale().Fmt(r)
                }, t.prototype.SetPlayerInfo = function() {
                    for (var e = 0; e < this.HeadComponentNodeArray.length; e++) {
                        var t = this._playerDataArray[e];
                        if (t) {
                            var n = cc.instantiate(this._headPrefab);
                            n.parent = this.HeadComponentNodeArray[e];
                            var o = n.getComponent(u.default);
                            o.SetUI(t.PlayerInfo.HeadIcon, t.PlayerInfo.HeadFrame), o.SetLevel(t.PlayerInfo.Level), this.NameLabelArray[e].string = t.PlayerInfo.Name, this.ServerLabelArray[e].string = "S" + t.Zone
                        }
                    }
                }, i([I(cc.Sprite)], t.prototype, "PanelBackground", void 0), i([I(cc.Label)], t.prototype, "TimeTipLabel", void 0), i([I([cc.Node])], t.prototype, "HeadComponentNodeArray", void 0), i([I([cc.Label])], t.prototype, "NameLabelArray", void 0), i([I([cc.Label])], t.prototype, "ServerLabelArray", void 0), i([I(cc.Button)], t.prototype, "OKButton", void 0), i([I(cc.Label)], t.prototype, "OKButtonLabel", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/HeadComponent": "HeadComponent",
        "./CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "./CrossServerChampionStartPanel": "CrossServerChampionStartPanel"
    }],
    CrossServerChampionShipSettlement: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0b2edT0KjtDrp7jzQfNsVmp", "CrossServerChampionShipSettlement");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Panel/CrossServerChampionShipPanel"),
            d = e("./HeadComponent"),
            h = e("./SettlementBaseComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RaceRoundLabel = null, t.LeftHeaderRoot = null, t.LeftWinIcon = null, t.LeftLoseIcon = null, t.LeftNameLabel = null, t.LeftScoreTagLabel = null, t.LeftScoreChangeLabel = null, t.RightHeaderRoot = null, t.RightWinIcon = null, t.RightLoseIcon = null, t.RightNameLabel = null, t.RightScoreTagLabel = null, t.RightScoreChangeLabel = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t._loadedAssets = [], t._leftScoreChange = 0, t._rightScoreChange = 0, t._Reports = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.LeftScoreTagLabel.string = "CrossServerChampionShip_Score".ToUILocale(), this.RightScoreTagLabel.string = "CrossServerChampionShip_Score".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this)
                }, t.prototype.SetUI = function(t) {
                    var n = t.SettleParams[0];
                    if (this._BattleMessage = n, this._leftPlayerInfo = this._BattleMessage.AttackerInfo, this._rightPlayerInfo = this._BattleMessage.DefenderInfo, this._Reports = t.SettleParams[1], t.SettleParams[2] ? this.RaceRoundLabel.string = t.SettleParams[2] : this.RaceRoundLabel.node.active = !1, t.SettleParams[3]) {
                        var o = t.SettleParams[3];
                        this._leftScoreChange = o[0], this._rightScoreChange = o[1], this.LeftScoreChangeLabel.node.active = !0, this.RightScoreChangeLabel.node.active = !0
                    } else this.LeftScoreChangeLabel.node.active = !1, this.RightScoreChangeLabel.node.active = !1;
                    e.prototype.SetUI.call(this, t, null), this.SetPlayerInfoView()
                }, t.prototype.SetPlayerInfoView = function() {
                    p.default.CurrentBattleMapType == c.MapType.AllZoneChampionRace ? (this.LeftScoreTagLabel.node.active = !1, this.LeftScoreChangeLabel.node.active = !1, this.RightScoreTagLabel.node.active = !1, this.RightScoreChangeLabel.node.active = !1) : (this._leftScoreChange >= 0 ? (this.LeftScoreChangeLabel.string = "+" + this._leftScoreChange.toString(), this.LeftScoreChangeLabel.node.color = cc.Color.GREEN) : (this.LeftScoreChangeLabel.string = this._leftScoreChange.toString(), this.LeftScoreChangeLabel.node.color = cc.Color.RED), this._rightScoreChange > 0 ? (this.RightScoreChangeLabel.string = "+" + this._rightScoreChange.toString(), this.RightScoreChangeLabel.node.color = cc.Color.GREEN) : (this.RightScoreChangeLabel.string = this._rightScoreChange.toString(), this.RightScoreChangeLabel.node.color = cc.Color.RED)), this.LeftNameLabel.string = this._leftPlayerInfo.Name, this.RightNameLabel.string = this._rightPlayerInfo.Name, this.LeftWinIcon.node.active = 1 == this._BattleMessage.Result, this.LeftLoseIcon.node.active = !this.LeftWinIcon.node.active, this.RightWinIcon.node.active = !this.LeftWinIcon.node.active, this.RightLoseIcon.node.active = !this.RightWinIcon.node.active, this.SetHeaderView()
                }, t.prototype.SetHeaderView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    return e = i.sent(), this.isValid ? (this._loadedAssets.push(e), t = cc.instantiate(e), (n = t.getComponent(d.default)).SetHeadIcon(this._leftPlayerInfo.HeadIcon), n.SetHeadFrame(this._leftPlayerInfo.HeadFrame), n.LevelNode.active = !1, t.parent = this.LeftHeaderRoot, o = cc.instantiate(e), (r = o.getComponent(d.default)).SetHeadIcon(this._rightPlayerInfo.HeadIcon), r.SetHeadFrame(this._rightPlayerInfo.HeadFrame), r.LevelNode.active = !1, o.parent = this.RightHeaderRoot, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.OnConfirmButtonClicked = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets && (this._loadedAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssets = [])
                }, i([g(cc.Label)], t.prototype, "RaceRoundLabel", void 0), i([g(cc.Node)], t.prototype, "LeftHeaderRoot", void 0), i([g(cc.Sprite)], t.prototype, "LeftWinIcon", void 0), i([g(cc.Sprite)], t.prototype, "LeftLoseIcon", void 0), i([g(cc.Label)], t.prototype, "LeftNameLabel", void 0), i([g(cc.Label)], t.prototype, "LeftScoreTagLabel", void 0), i([g(cc.Label)], t.prototype, "LeftScoreChangeLabel", void 0), i([g(cc.Node)], t.prototype, "RightHeaderRoot", void 0), i([g(cc.Sprite)], t.prototype, "RightWinIcon", void 0), i([g(cc.Sprite)], t.prototype, "RightLoseIcon", void 0), i([g(cc.Label)], t.prototype, "RightNameLabel", void 0), i([g(cc.Label)], t.prototype, "RightScoreTagLabel", void 0), i([g(cc.Label)], t.prototype, "RightScoreChangeLabel", void 0), i([g(cc.Button)], t.prototype, "ConfirmButton", void 0), i([g(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([y], t)
            }(h.default);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Panel/CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "./HeadComponent": "HeadComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    CrossServerChampionStartPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "77e4bRuCKlJfKv8oxz6N0Xq", "CrossServerChampionStartPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ChampionShipType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/ChampionStartPlayerComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Components/Components"),
            m = e("../../../Consts/Consts"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../RedDot/RedDotManager"),
            v = e("./CrossServerChampionShipPanel"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.AllZone = 1] = "AllZone", e[e.Activity = 2] = "Activity"
        })(l = n.ChampionShipType || (n.ChampionShipType = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.OpenTimeRichText = null, t.OpenTimeTipNode = null, t.PlayerItemContainer = [], t.CurrentRaceTitle = null, t.CurrentRaceValue = null, t.LastRankingTitle = null, t.LastRankingValue = null, t.HighestRamkingTitle = null, t.HighestRamkingValue = null, t.EnterButton = null, t.EnterButtonLabel = null, t.BattleArrayButton = null, t.BattleArrayButtonLabel = null, t.ReturnButton = null, t.PanelBackground = null, t._championShipType = null, t._components = [], t._globalConfigKeys = ["CrossChampion", "AllZoneChampion", " ActivityChampion"], t._rankPlayerAvatarTypes = [h.RankPlayerAvatarType.ChampionShip, h.RankPlayerAvatarType.AllZoneChampionShip], t.GameRecordKeyByChampionType = [I.GameRecordDefine.CrossServerChampionRuleTip, I.GameRecordDefine.AllZoneChampionRuleTip], t
            }
            var n;
            return r(t, e), n = t, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.EnterButton.node.on("click", this.OnEnterButtonClick, this), this.BattleArrayButton.node.on("click", this.OnBattleArrayButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._championShipType !== t[0] && (this._needRefresh = !0), this._championShipType = t[0], this._championData = t[1], this.InitKeys(), this._openTime = y.default.GetChampionShipOpenTime(this._championShipType), this._oneRaceTime = this._roundPrepareDuration + this._roundGuessDuration + this._roundBattleDuration
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    var t, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), t = this.LoadDynamicAsset("CrossServerChampionShip/Private/ChampionStartPlayerComponent", cc.Prefab), o = this.LoadDynamicAsset("CrossServerChampionShip/PNG/" + n._SPRITE_ATLAS_PREFIXS[this._championShipType] + "ChampionShip", cc.SpriteAtlas), [4, Promise.all([t, o]).then(function(e) {
                                    r._playerItemPrefab = e[0], r._spriteAtlas = e[1]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitKeys = function() {
                this._roundPrepareDuration = p.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this._globalConfigKeys[this._championShipType] + "RaceRoundPrepareDuration"), this._roundGuessDuration = p.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this._globalConfigKeys[this._championShipType] + "RaceRoundGuessDuration"), this._roundBattleDuration = p.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this._globalConfigKeys[this._championShipType] + "RaceRoundBattleDuration"), this._runDataHour = p.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this._globalConfigKeys[this._championShipType] + "RaceRunDataHour"), this._raceStartHour = p.ConfigDataComponent.Instance.GetIntGlobalSettingByKey(this._globalConfigKeys[this._championShipType] + "RaceStartHour"), this.Title.string = (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_Title").ToUILocale(), this.CurrentRaceTitle.string = (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_CurrentRace").ToUILocale(), this.LastRankingTitle.string = (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_LastRanking").ToUILocale(), this.HighestRamkingTitle.string = (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_HighestRanking").ToUILocale(), this.EnterButtonLabel.string = (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_Enter").ToUILocale(), this.BattleArrayButtonLabel.string = "allianceWar_set_formation".ToUILocale()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.SetPlayerInfo(), t || (this.LastRankingValue.string = this._championData.MyLastRank ? this._championData.MyLastRank.toString() : (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_UnRanking").ToUILocale(), this.HighestRamkingValue.string = this._championData.MyHistoryRank ? this._championData.MyHistoryRank.toString() : "openServer_heroTest_noRatingYet".ToUILocale(), this.SetOpenTime(), this.SetCurrentRaceValue()), this.SetRedDot()
            }, t.prototype.SetRedDot = function() {
                if (1 != this._championData.Status) switch (this._championShipType) {
                    case l.Normal:
                        C.RedDotManager.Instance.Bind(this.EnterButton.node, C.RedDotManager.Instance.RedDot.CrossServerChampionGuessNode);
                        break;
                    case l.AllZone:
                        C.RedDotManager.Instance.RedDot.AllZoneChampionEntryNode.NeedRefresh = !0, C.RedDotManager.Instance.Bind(this.EnterButton.node, C.RedDotManager.Instance.RedDot.AllZoneChampionEntryNode)
                }
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: (n._CHAMPION_PANEL_LOCAL_PREFIXES[this._championShipType] + "_Start_Rule_Title").ToUILocale(),
                    titles: [(n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_Title").ToUILocale()],
                    contents: [(n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_Rule_Content").ToUILocale()]
                };
                f.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnEnterButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(_.PanelConfig.CrossServerChampionShipPanel.Path, this._championShipType, this._championData.Status)
            }, t.prototype.OnBattleArrayButtonClick = function() {
                var e = p.RpcComponent.Instance.ServerTime,
                    t = this._openTime + 12 * this._oneRaceTime,
                    n = this._raceStartHour - this._runDataHour;
                if (e > this._openTime - n * m.Etc.HourDuration && e < t) f.UIUtlity.ShowFloatingHint("CrossServerChampionShip_CantEditTeam".ToUILocale().Fmt(n));
                else {
                    var o = 0;
                    switch (this._championShipType) {
                        case l.Normal:
                            o = 9;
                            break;
                        case l.AllZone:
                            o = 16
                    }
                    c.UIManager.Instance.ShowUIPanel(_.PanelConfig.BattleFormationPanel.Path, this.RequestSaveFormation.bind(this), [o, o, o], {
                        IsSaveFormationState: !0
                    })
                }
            }, t.prototype.RequestSaveFormation = function(e) {
                var t = new u.Req_Hero_SetFormation;
                t.Formations = e, p.RpcComponent.Instance.Call(t, function() {
                    f.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale())
                })
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.SetOpenTime = function() {
                var e, t = 1;
                if (1 == this._championData.Status) {
                    var o = y.default.GetCrossServerChampionShipStartWeekDay(),
                        r = y.default.GetCrossServerChampionShipNextStartDay(o);
                    t = r > o ? this._openTime + m.Etc.DayDuration * (r - o) - g.RpcComponent.Instance.ServerTime : this._openTime + m.Etc.DayDuration * (r + 7 - o) - g.RpcComponent.Instance.ServerTime
                } else t = this._openTime - g.RpcComponent.Instance.ServerTime;
                t > 0 ? (this.OpenTimeRichText.string = (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_OpenTime").ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(t)), e = t > m.Etc.DayDuration ? Math.ceil(t % m.Etc.DayDuration / 1e3) : 1, this.unschedule(this.SetOpenTime), this.schedule(this.SetOpenTime, e)) : (this.unschedule(this.SetOpenTime), this.OpenTimeTipNode.active = !1)
            }, t.prototype.SetCurrentRaceValue = function() {
                if (1 == this._championData.Status) this.CurrentRaceValue.string = "CrossServerChampion_Start_CurrentState_LackOfPlayer".ToUILocale();
                else {
                    var e = void 0,
                        t = this._openTime - g.RpcComponent.Instance.ServerTime,
                        o = this._championShipType == l.AllZone ? 0 : p.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceScoreRound"),
                        r = o + v.ChampionShipRound.RACE_64_ROUND + v.ChampionShipRound.RACE_8_ROUND;
                    if (t > 0) this.ShowRuleTip(), e = t, this.CurrentRaceValue.string = "CrossServerChampionShip_NotOpen".ToUILocale();
                    else if (t + o * this._oneRaceTime > 0) e = t + o * this._oneRaceTime, this.CurrentRaceValue.string = (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_PointRace").ToUILocale();
                    else {
                        if (!(t + r * this._oneRaceTime > 0)) return this.CurrentRaceValue.string = (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_OverRace").ToUILocale(), void this.unschedule(this.SetCurrentRaceValue);
                        e = t + r * this._oneRaceTime, this.CurrentRaceValue.string = (n._CHAMPION_START_PANEL_LOCAL_PREFIXES[this._championShipType] + "_PromotionRace").ToUILocale()
                    }
                    this.unschedule(this.SetCurrentRaceValue), this.schedule(this.SetCurrentRaceValue, e / 1e3)
                }
            }, t.prototype.ShowRuleTip = function() {
                var e = this.GameRecordKeyByChampionType[this._championShipType];
                I.default.GetItem(e) || (c.UIManager.Instance.ShowUIPanel(_.PanelConfig.CrossServerChampionRuleTipPanel.Path, this._championShipType), I.default.SetItem(e, p.RpcComponent.Instance.ServerTime))
            }, t.prototype.SetPlayerInfo = function() {
                if (this._needRefresh) {
                    var e = y.default.IsCrossServerConditonsEnable(),
                        t = new u.Req_Player_GetRank;
                    t.CustomCount = 3, t.RankType = e ? d.RankTypeId.CrossZoneChampionRace : d.RankTypeId.ZoneChampionRace, p.RpcComponent.Instance.Call(t, this.OnRequestSuccess.bind(this), this.OnReturnButtonClick.bind(this))
                }
            }, t.prototype.OnRequestSuccess = function(e) {
                this._needRefresh = !1, this._playerDataArray = e.Data.Rows ? e.Data.Rows : [], this.SetPlayerItemContainer()
            }, t.prototype.SetPlayerItemContainer = function() {
                var e = p.DataCenter.Instance.GetDataById(u.UserRankLike_Model, n._CHAMPION_RANK_ID_BY_TYPE[this._championShipType]),
                    t = e ? e.LikeUids : [];
                this._components.forEach(function(e) {
                    e.node.active = !1
                });
                for (var o = 0; o < this.PlayerItemContainer.length; o++) {
                    if (!this._components[o]) {
                        var r = cc.instantiate(this._playerItemPrefab);
                        r.setParent(this.PlayerItemContainer[o]), this._components[o] = r.getComponent(h.default)
                    }
                    this._components[o].node.active = !0, this._components[o].Init(this._playerDataArray[o], t, o, this._spriteAtlas, this._rankPlayerAvatarTypes[this._championShipType])
                }
            }, t.prototype.OnGetServerGroupInfo = function(e) {
                e.Zones.length > 0 ? c.UIManager.Instance.ShowUIPanel(_.PanelConfig.CrossServerSpaceTimePanel.Path, e) : f.UIUtlity.ShowFloatingHint("CrossServerLimitHint".ToUILocale())
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, t._CHAMPION_RANK_ID_BY_TYPE = [d.RankTypeId.CrossZoneChampionRace, d.RankTypeId.AllZoneChampionRace], t._CHAMPION_START_PANEL_LOCAL_PREFIXES = ["CrossServerChampion_Start", "AllZoneChampion_Start", "ActivityChampion_Start"], t._CHAMPION_PANEL_LOCAL_PREFIXES = ["CrossServerChampion", "AllZoneChampion", "ActivityChampion"], t._SPRITE_ATLAS_PREFIXS = ["CrossServer", "AllZone", "Activity"], i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.RichText)], t.prototype, "OpenTimeRichText", void 0), i([w(cc.Node)], t.prototype, "OpenTimeTipNode", void 0), i([w([cc.Node])], t.prototype, "PlayerItemContainer", void 0), i([w(cc.Label)], t.prototype, "CurrentRaceTitle", void 0), i([w(cc.Label)], t.prototype, "CurrentRaceValue", void 0), i([w(cc.Label)], t.prototype, "LastRankingTitle", void 0), i([w(cc.Label)], t.prototype, "LastRankingValue", void 0), i([w(cc.Label)], t.prototype, "HighestRamkingTitle", void 0), i([w(cc.Label)], t.prototype, "HighestRamkingValue", void 0), i([w(cc.Button)], t.prototype, "EnterButton", void 0), i([w(cc.Label)], t.prototype, "EnterButtonLabel", void 0), i([w(cc.Button)], t.prototype, "BattleArrayButton", void 0), i([w(cc.Label)], t.prototype, "BattleArrayButtonLabel", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([w(cc.Sprite)], t.prototype, "PanelBackground", void 0), n = i([S], t)
        }(c.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ChampionStartPlayerComponent": "ChampionStartPlayerComponent",
        "./CrossServerChampionShipPanel": "CrossServerChampionShipPanel"
    }],
    CrossServerHeroPalacePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "03321W6WxJA+6qjt2dd+jD9", "CrossServerHeroPalacePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Components/CrossServerPalaceTable"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Hint = null, t.Containers = [], t.ReturnBtn = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("CrossServerPortPanel/CrossServerPalaceTable")];
                                case 1:
                                    return t._playerInfoPrefab = i.sent(), n = this.LoadDynamicAsset("CrossServerPortPanel/CrossServerPalaceTable"), o = this.LoadDynamicAsset("CrossServerPortPanel/Png/CrossServerPortPanel", cc.SpriteAtlas), [4, Promise.all([n, o]).then(function(e) {
                                        r._playerInfoPrefab = e[0], r._panelAtlas = e[1]
                                    })];
                                case 2:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "crossServerSpaceTime".ToUILocale(), this.Hint.string = "CrossServerBeLikeHint".ToUILocale(), this.ReturnBtn.node.on("click", this.OnClose, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rankDatas = t[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigHeroesInfo()
                }, t.prototype.ConfigHeroesInfo = function() {
                    var e, t = u.DataCenter.Instance.GetDataById(c.UserRankLike_Model, p.RankTypeId.CrossZoneArena);
                    e = t ? t.LikeUids : [];
                    for (var n = 0; n < 3; n++) {
                        var o = cc.instantiate(this._playerInfoPrefab),
                            r = Math.floor((n + 1) / 2);
                        o.setParent(this.Containers[r]), o.getComponent(h.default).Init(this._rankDatas[n], e, n + 1, this._panelAtlas)
                    }
                }, t.prototype.OnClose = function() {
                    d.UIManager.Instance.BackUIPanel()
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "Hint", void 0), i([g(cc.Node)], t.prototype, "Containers", void 0), i([g(cc.Button)], t.prototype, "ReturnBtn", void 0), i([y], t)
            }(l.BaseUIFullScreenPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../Components/CrossServerPalaceTable": "CrossServerPalaceTable"
    }],
    CrossServerHeroTable: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d8e3dlUYXRNM4SEUuNozwn6", "CrossServerHeroTable");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("./CrossServerLadderPanel"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroContainer = null, t.ServerName = null, t.PlayerName = null, t.BattlePower = null, t.RankLabel = null, t.Country = null, t.ClickNode = null, t.FriendSprite = null, t.AllianceSprite = null, t.Designation = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._targetInfo = e, this._isInit || (this._isInit = !0, this.ClickNode.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this)), this.ConfigAvatar(), this.ConfigPlayerInfo()
                }, t.prototype.OnTouch = function() {
                    if (f.default.LeftChallengeCount <= 0) return y.UIUtlity.ShowFloatingHint("allianceTest_chanceRunOut".ToUILocale());
                    var e = new u.Req_Player_GetPlayerDetailInfo;
                    e.Uid = this._targetInfo.Uid, e.Zone = this._targetInfo.Zone, e.FormationIds = [h.FormationIdType.LadderRaceDefense], this._targetInfo.Uid < 0 && (e.PlayerType = h.PlayerInfoType.Robot), d.RpcComponent.Instance.Call(e, this.OnGetDetailInfo.bind(this))
                }, t.prototype.OnGetDetailInfo = function(e) {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ChalengePlayerInfoPanel.Path, this._targetInfo, e.Info)
                }, t.prototype.ConfigAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._avatarId == this._targetInfo.HeadIcon ? [2] : (this.HeroContainer.destroyAllChildren(), this._avatarId = this._targetInfo.HeadIcon, (e = d.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, this._avatarId)) || (e = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._avatarId)), t = "Hero_" + e.Model + "/HeroAvatar", [4, l.AssetsManager.Instance.LoadAsset(t)]);
                                case 1:
                                    return n = r.sent(), this.isValid ? (n.name == t ? (this.HeroContainer.destroyAllChildren(), this._loadedAssets.push(n), (o = cc.instantiate(n)).setParent(this.HeroContainer), o.getComponent(sp.Skeleton).setAnimation(0, h.SkillAnimationType.Standby, !0)) : l.AssetsManager.Instance.UnloadAsset(n), [2]) : (l.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.ConfigPlayerInfo = function() {
                    this.ServerName.string = "S" + this._targetInfo.Zone, this.PlayerName.string = this._targetInfo.Name, g.default.SetDesignationIcon(this._targetInfo.Designation, this.Designation), this.Designation.node.parent.active = this.Designation.node.active, this.BattlePower.string = this._targetInfo.Power.toString(), this.RankLabel.string = "SeniorArena_MyRank".ToUILocale().Fmt(this._targetInfo.Value1), this._targetInfo.Country ? (this.Country.node.active = !0, y.UIUtlity.SetCountrySpriteFrame(this.Country, this._targetInfo.Country)) : this.Country.node.active = !1, this.FriendSprite.node.active = this._targetInfo.IsFriend, this.AllianceSprite.node.active = this._targetInfo.SameAlliance
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([_(cc.Node)], t.prototype, "HeroContainer", void 0), i([_(cc.Label)], t.prototype, "ServerName", void 0), i([_(cc.Label)], t.prototype, "PlayerName", void 0), i([_(cc.Label)], t.prototype, "BattlePower", void 0), i([_(cc.Label)], t.prototype, "RankLabel", void 0), i([_(cc.Sprite)], t.prototype, "Country", void 0), i([_(cc.Node)], t.prototype, "ClickNode", void 0), i([_(cc.Sprite)], t.prototype, "FriendSprite", void 0), i([_(cc.Sprite)], t.prototype, "AllianceSprite", void 0), i([_(cc.Sprite)], t.prototype, "Designation", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CrossServerLadderPanel": "CrossServerLadderPanel"
    }],
    CrossServerInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "72d96HmnNJAvIxdakt/w3oy", "CrossServerInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../GamePlay/Components/Components"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Bg = null, t.ServerTag = null, t.ServerName = null, t.LevelTag = null, t.Level = null, t.Line = null, t.LocalServerSpine = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    void 0 === r && (r = !1), void 0 === i && (i = !0), c.DataCenter.Zone == t ? (this.ServerTag.string = "serverSelect_currZone".ToUILocale(), this.ServerTag.node.color = new cc.Color(0, 255, 0), this.ServerName.node.color = new cc.Color(0, 255, 0), this.Bg.spriteFrame = e.getSpriteFrame("CrossServerLogo1"), this.LocalServerSpine.node.active = !0, this.ConfigLocalServerSpine()) : (this.ServerTag.string = "serverSelect_zone".ToUILocale(), this.Bg.spriteFrame = e.getSpriteFrame("CrossServerLogo2"), this.LocalServerSpine.node.active = !1), this.ServerName.string = "S" + t, this.LevelTag.string = "worldLevel".ToUILocale(), this.Level.string = "Lv." + o, this.Title.string = n, r && (this.Line.active = !1)
                }, t.prototype.ConfigLocalServerSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._skeletonData ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset("CrossServerPortPanel/Spine/UI_Effect_kuafushikong_benfu", sp.SkeletonData)]);
                                case 1:
                                    if (e._skeletonData = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._skeletonData), [2];
                                    t.label = 2;
                                case 2:
                                    return this.LocalServerSpine.skeletonData = this._skeletonData, this.LocalServerSpine.setAnimation(0, "Ani_UI_Effect_kuafushikong_benfu", !0), [2]
                            }
                        })
                    })
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.onDestroy = function() {
                    this._skeletonData && l.AssetsManager.Instance.UnloadAsset(this._skeletonData)
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Sprite)], t.prototype, "Bg", void 0), i([h(cc.Label)], t.prototype, "ServerTag", void 0), i([h(cc.Label)], t.prototype, "ServerName", void 0), i([h(cc.Label)], t.prototype, "LevelTag", void 0), i([h(cc.Label)], t.prototype, "Level", void 0), i([h(cc.Node)], t.prototype, "Line", void 0), i([h(sp.Skeleton)], t.prototype, "LocalServerSpine", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    CrossServerLadderPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "360b2e7R99GvqjNXXwmefDH", "CrossServerLadderPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/CurrencyBarItem"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./CrossServerHeroTable"),
            m = e("../../Auxiliary/GameRecord"),
            I = e("../Components/HeadComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../../Util/TimeUtil"),
            S = e("../../../Consts/Consts"),
            w = e("./BuyAndSellItemPanel"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.TimeHint = null, t.Containers = [], t.InfoTitle = null, t.UserName = null, t.UserHeadNode = null, t.BattlePower = null, t.RankLabel = null, t.DefenseBtn = null, t.DefenseBtnLabel = null, t.ReportBtn = null, t.ReportBtnLabel = null, t.RankBtn = null, t.RankBtnLabel = null, t.RewardsBtn = null, t.RewardsBtnLabel = null, t.MaterialCurrencyBarItem = null, t.ChalengeTimes = null, t.BuyChalengeBtn = null, t.SkipAnimationToggle = null, t.SkipHint = null, t.ReturnBtn = null, t.RefreshBtn = null, t.RefreshBtnLabel = null, t.ShopBtn = null, t.ShopBtnLabel = null, t.HeroPalaceBtn = null, t.HeroPalaceBtnLabel = null, t.GrayBtn = null, t.GrayBtnLabel = null, t.RuleBtn = null, t.PvpButton = null, t.SelfDesignationSprite = null, t.Bg = null, t.PalaceBtnIcon = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(C.EventKeys.EVENT_REFRESH_CROSSSERVER_LADDER, this.OnChangeTargetHeroes, this), l.Game.EventDispatcher.On(C.EventKeys.EVENT_REFRESH_CROSSSERVER_RANK, this.OnRankChanged, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(C.EventKeys.EVENT_REFRESH_CROSSSERVER_LADDER, this.OnChangeTargetHeroes, this), l.Game.EventDispatcher.Off(C.EventKeys.EVENT_REFRESH_CROSSSERVER_RANK, this.OnRankChanged, this), this.unscheduleAllCallbacks()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerPortPanel/CrossServerHeroTable"), n = this.LoadDynamicAsset(y.BundlePath.HeadComponent), [4, Promise.all([t, n]).then(function(e) {
                                        o._heroTablePrefab = e[0], o._headPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "crossServerLadder".ToUILocale(), this.SkipHint.string = "secretArea_skipBattle".ToUILocale(), this.DefenseBtnLabel.string = "arena_selfInfoDefendFormationBtnText".ToUILocale(), this.ReportBtnLabel.string = "allianceWar_report".ToUILocale(), this.RankBtnLabel.string = "holyArea_rank".ToUILocale(), this.RewardsBtnLabel.string = "rank_rewards".ToUILocale(), this.RefreshBtnLabel.string = "refresh".ToUILocale(), this.ShopBtnLabel.string = 101..ToShopName(), this.HeroPalaceBtnLabel.string = "CrossServerHeroPalace".ToUILocale(), this.ReturnBtn.node.on("click", this.OnReturn, this), this.SkipAnimationToggle.node.on("toggle", this.OnClickSkip, this), this.DefenseBtn.node.on("click", this.OnShowDefenseFormation, this), this.ReportBtn.node.on("click", this.OnShowDReport, this), this.RankBtn.node.on("click", this.OnShowRank, this), this.RewardsBtn.node.on("click", this.OnShowRewards, this), this.ShopBtn.node.on("click", this.OnClickShop, this), this.HeroPalaceBtn.node.on("click", this.OnClickPalace, this), this.RefreshBtn.node.on("click", this.OnRefreshEnemies, this), this.BuyChalengeBtn.node.on("click", this.OnBuyChallengeTimes, this), this.RuleBtn.node.on("click", this.OnRuleClick, this), this.PvpButton.node.on("click", this.OnPvpButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._ladderRaceData = t[0]
                }, t.prototype.ResetPanelState = function() {
                    this.RefreshBtn.node.active = !0, this.GrayBtn.node.active = !1
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || this.ConfigHeroTables(), this.ConfigUserInfo(), this.BindRedDot(), this.ConfigLeftTime();
                    var o = m.default.GetItem(m.GameRecordDefine.SkipCrossServerBattle);
                    this.SkipAnimationToggle.isChecked = 1 == o, n.IsSkipBattle = this.SkipAnimationToggle.isChecked
                }, t.prototype.BindRedDot = function() {
                    v.RedDotManager.Instance.Bind(this.HeroPalaceBtn.node, v.RedDotManager.Instance.RedDot.CrossServePalaceNode)
                }, t.prototype.ConfigLeftTime = function() {
                    this._endTime = b.TimeUtil.GetMondayClock0Ts(u.RpcComponent.Instance.ServerTime) + 7 * S.Etc.DayDuration - 3 * S.Etc.HourDuration, this.CountDownTime(), this.schedule(this.CountDownTime, 1)
                }, t.prototype.CountDownTime = function() {
                    var e = u.RpcComponent.Instance.ServerTime,
                        t = this._endTime - e;
                    this.TimeHint.string = t <= 0 ? "CrossServerChallengeTimeHint".ToUILocale() : "timeLimited_wishCall_leftTime".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(t))
                }, t.prototype.ConfigHeroTables = function() {
                    if (!this._heroTables) {
                        this._heroTables = [];
                        for (var e = 0; e < this._ladderRaceData.Targets.length; e++) {
                            var t = cc.instantiate(this._heroTablePrefab),
                                n = Math.floor((e + 1) / 2);
                            t.setParent(this.Containers[n]);
                            var o = t.getComponent(g.default);
                            this._heroTables.push(o)
                        }
                    }
                    for (e = 0; e < this._heroTables.length; e++) {
                        var r = this._ladderRaceData.Targets[e];
                        this._heroTables[e].Init(r)
                    }
                }, t.prototype.ConfigUserInfo = function() {
                    if (!this._headComponent) {
                        var e = cc.instantiate(this._headPrefab);
                        e.setParent(this.UserHeadNode), this._headComponent = e.getComponent(I.default)
                    }
                    var t = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon),
                        n = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame);
                    this._headComponent.SetUI(t, n), this.UserName.string = u.DataCenter.Instance.GetStringData(p.UserDataKey.RoleName);
                    var o = u.DataCenter.Instance.GetSimpleData(p.UserDataKey.Designation);
                    o && d.default.SetDesignationIcon(o.V, this.SelfDesignationSprite), this.BattlePower.string = u.DataCenter.Instance.GetIntData(p.UserDataKey.Power).toString(), this.MaterialCurrencyBarItem.Init(p.CommonItemId.CorssServerLadderScore), this.InfoTitle.string = "arena_mainPanelSeparatorText".ToUILocale(), this.RankLabel.string = this._ladderRaceData.MyRank.toString(), this.RefreshChallengeCount()
                }, t.prototype.OnRankChanged = function(e) {
                    this._ladderRaceData.MyRank = e
                }, t.prototype.RefreshChallengeCount = function() {
                    var e = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("LadderRaceDailyFreeCount"),
                        t = u.DataCenter.Instance.GetIntData(p.UserDataKey.LadderRaceBuyCount),
                        o = u.DataCenter.Instance.GetIntData(p.UserDataKey.LadderRaceChallengeCount);
                    n.LeftChallengeCount = e + t - o, this.ChalengeTimes.string = "challenge_times".ToUILocale().Fmt(n.LeftChallengeCount)
                }, t.prototype.OnClickSkip = function(e) {
                    e.isChecked ? m.default.SetItem(m.GameRecordDefine.SkipCrossServerBattle, 1) : m.default.SetItem(m.GameRecordDefine.SkipCrossServerBattle, 0), n.IsSkipBattle = this.SkipAnimationToggle.isChecked
                }, t.prototype.OnShowDefenseFormation = function() {
                    h.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), [4], {
                        IsDefense: !0
                    })
                }, t.prototype.OnSetFormation = function(e) {
                    var t = new c.Req_Hero_SetFormation;
                    t.Formations = e, u.RpcComponent.Instance.Call(t, function() {
                        _.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale())
                    })
                }, t.prototype.OnRefreshEnemies = function() {
                    if (!this._isRefreshing) {
                        var e = new c.Req_CrossZone_EnterLadderRace;
                        e.RefreshTarget = !0, u.RpcComponent.Instance.Call(e, this.OnRefreshLadderInfo.bind(this))
                    }
                }, t.prototype.OnRefreshLadderInfo = function(e) {
                    this._ladderRaceData = e, this.ConfigHeroTables(), this.WaitingRefresh()
                }, t.prototype.WaitingRefresh = function() {
                    var e = this;
                    this._isRefreshing = !0, this.RefreshBtn.node.active = !1, this.GrayBtn.node.active = !0;
                    var t = 3;
                    this.GrayBtnLabel.string = "SeniorArenaChallenge_RefreshButton".ToUILocale().Fmt(t), this.schedule(function() {
                        t <= 0 && (e._isRefreshing = !1, e.RefreshBtn.node.active = !0, e.GrayBtn.node.active = !1, e.unscheduleAllCallbacks()), t -= 1, e.GrayBtnLabel.string = "SeniorArenaChallenge_RefreshButton".ToUILocale().Fmt(t)
                    }, 1, 3)
                }, t.prototype.OnChangeTargetHeroes = function(e) {
                    e.length > 0 && (this._ladderRaceData.Targets = e, this.ConfigHeroTables())
                }, t.prototype.OnShowDReport = function() {
                    h.UIManager.Instance.ShowUIPanel(y.PanelConfig.CrossServerBattleReportPanel.Path)
                }, t.prototype.OnShowRank = function() {
                    var e = new c.Req_Player_GetRank;
                    e.RankType = p.RankTypeId.CrossZoneArena, u.RpcComponent.Instance.Call(e, this.OnGetRankInfo.bind(this))
                }, t.prototype.OnGetRankInfo = function(e) {
                    e.Data.Rows.length > 0 ? h.UIManager.Instance.ShowUIPanel(y.PanelConfig.RankDetailPanel.Path, p.RankTypeId.CrossZoneArena, e.Data.Rows, e.Data.Achievements, e.MyRank, e.MyRankData) : _.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())
                }, t.prototype.OnShowRewards = function() {
                    h.UIManager.Instance.ShowUIPanel(y.PanelConfig.TimedRankRewardPanel.Path, this._ladderRaceData.MyRank, "LadderRaceRewards", "arena_rewardPanelTitleWeekly", "SeniorArenaWeeklyReward_Rule")
                }, t.prototype.OnReturn = function() {
                    h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickShop = function() {
                    h.UIManager.Instance.ShowUIPanel(y.PanelConfig.ShopPanel.Path, 2, 101)
                }, t.prototype.OnClickPalace = function() {
                    var e = new c.Req_Player_GetRank;
                    e.RankType = p.RankTypeId.CrossZoneArena, e.CustomCount = 3, u.RpcComponent.Instance.Call(e, this.OnGetPalaceInfo.bind(this))
                }, t.prototype.OnGetPalaceInfo = function(e) {
                    h.UIManager.Instance.ShowUIPanel(y.PanelConfig.CrossServerHeroPalacePanel.Path, e.Data.Rows)
                }, t.prototype.OnBuyChallengeTimes = function() {
                    var e = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("LadderRaceDailyBuyCount") - u.DataCenter.Instance.GetIntData(p.UserDataKey.LadderRaceBuyCount);
                    if (e <= 0) return _.UIUtlity.ShowFloatingHint("CrossServerLadderBuyCountLimit".ToUILocale());
                    var t = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("LadderRaceCountBuyPrice"),
                        o = {
                            UseItemId: p.CommonItemId.Diamond,
                            MaxCount: e,
                            PerItemCount: t,
                            Title: null,
                            Callback: this.RequestBuyCount.bind(this)
                        };
                    h.UIManager.Instance.ShowUIPanel(y.PanelConfig.BuyAndSellItemPanel.Path, null, null, n.LeftChallengeCount, w.BuyAndSellType.BuyTimes, w.GoodsType.CrossServerBattleTimes, null, o)
                }, t.prototype.RequestBuyCount = function(e) {
                    var t = new c.Req_CrossZone_LadderRaceBuyCount;
                    t.Count = e, u.RpcComponent.Instance.Call(t, this.OnBuySuccess.bind(this))
                }, t.prototype.OnBuySuccess = function() {
                    this.RefreshChallengeCount(), _.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale())
                }, t.prototype.OnRuleClick = function() {
                    var e = "crossServerLadder".ToUILocale(),
                        t = ["crossServer_ladder_tag".ToUILocale()],
                        n = ["crossServer_ladder_info".ToUILocale()];
                    _.UIUtlity.ShowRulePanel({
                        name: e,
                        titles: t,
                        contents: n
                    })
                }, t.prototype.OnPvpButtonClick = function() {
                    var e = {};
                    e.Title = "common_pvp_title".ToUILocale(), e.Desc1 = "commono_pvp_attr_from".ToUILocale(), h.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonSPHeroDescPanel.Path, e)
                }, i([T(cc.Label)], t.prototype, "Title", void 0), i([T(cc.RichText)], t.prototype, "TimeHint", void 0), i([T(cc.Node)], t.prototype, "Containers", void 0), i([T(cc.Label)], t.prototype, "InfoTitle", void 0), i([T(cc.Label)], t.prototype, "UserName", void 0), i([T(cc.Node)], t.prototype, "UserHeadNode", void 0), i([T(cc.Label)], t.prototype, "BattlePower", void 0), i([T(cc.Label)], t.prototype, "RankLabel", void 0), i([T(cc.Button)], t.prototype, "DefenseBtn", void 0), i([T(cc.Label)], t.prototype, "DefenseBtnLabel", void 0), i([T(cc.Button)], t.prototype, "ReportBtn", void 0), i([T(cc.Label)], t.prototype, "ReportBtnLabel", void 0), i([T(cc.Button)], t.prototype, "RankBtn", void 0), i([T(cc.Label)], t.prototype, "RankBtnLabel", void 0), i([T(cc.Button)], t.prototype, "RewardsBtn", void 0), i([T(cc.Label)], t.prototype, "RewardsBtnLabel", void 0), i([T(f.default)], t.prototype, "MaterialCurrencyBarItem", void 0), i([T(cc.RichText)], t.prototype, "ChalengeTimes", void 0), i([T(cc.Button)], t.prototype, "BuyChalengeBtn", void 0), i([T(cc.Toggle)], t.prototype, "SkipAnimationToggle", void 0), i([T(cc.Label)], t.prototype, "SkipHint", void 0), i([T(cc.Button)], t.prototype, "ReturnBtn", void 0), i([T(cc.Button)], t.prototype, "RefreshBtn", void 0), i([T(cc.Label)], t.prototype, "RefreshBtnLabel", void 0), i([T(cc.Button)], t.prototype, "ShopBtn", void 0), i([T(cc.Label)], t.prototype, "ShopBtnLabel", void 0), i([T(cc.Button)], t.prototype, "HeroPalaceBtn", void 0), i([T(cc.Label)], t.prototype, "HeroPalaceBtnLabel", void 0), i([T(cc.Button)], t.prototype, "GrayBtn", void 0), i([T(cc.Label)], t.prototype, "GrayBtnLabel", void 0), i([T(cc.Button)], t.prototype, "RuleBtn", void 0), i([T(cc.Button)], t.prototype, "PvpButton", void 0), i([T(cc.Sprite)], t.prototype, "SelfDesignationSprite", void 0), i([T(cc.Sprite)], t.prototype, "Bg", void 0), i([T(cc.Sprite)], t.prototype, "PalaceBtnIcon", void 0), n = i([A], t)
            }(l.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/HeadComponent": "HeadComponent",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./CrossServerHeroTable": "CrossServerHeroTable"
    }],
    CrossServerPalaceTable: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bd805YB4nZIz6Wfrw6NjZDA", "CrossServerPalaceTable");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../GamePlay/Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroContainer = null, t.ServerName = null, t.PlayerName = null, t.BattlePower = null, t.RankLabel = null, t.BeLikeCount = null, t.BeLikeBtn = null, t.Flag = null, t.Country = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this._rankData = e, this._likeUIDS = t, this._rank = n, this._panelAtlas = o, this._rankTypeConfig = c.ConfigDataComponent.Instance.GetConfigById(u.RankType_Config, p.RankTypeId.CrossZoneArena), this._isInit || (this._isInit = !0, this.BeLikeBtn.node.on(cc.Node.EventType.TOUCH_END, this.OnClickLikeBtn, this)), this.ConfigAvatar(), this.ConfigPlayerInfo(), this.RefreshBelikeBtn()
                }, t.prototype.ConfigAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._avatarId == this._rankData.PlayerInfo.HeadIcon ? [2] : (this.HeroContainer.destroyAllChildren(), this._avatarId = this._rankData.PlayerInfo.HeadIcon, (e = c.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, this._avatarId)) || (e = c.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._avatarId)), this._avatarPath = "Hero_" + e.Model + "/HeroAvatar", [4, d.AssetsManager.Instance.LoadAsset(this._avatarPath)]);
                                case 1:
                                    return t = o.sent(), this.isValid ? (t.name == this._avatarPath ? (this._loadedAssets.push(t), (n = cc.instantiate(t)).setParent(this.HeroContainer), n.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Standby, !0)) : d.AssetsManager.Instance.UnloadAsset(t), [2]) : (d.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.ConfigPlayerInfo = function() {
                    this.ServerName.string = "S" + this._rankData.Zone, this.PlayerName.string = this._rankData.PlayerInfo.Name, this.BattlePower.string = this._rankData.Value.toString(), this.RankLabel.string = "SeniorArena_MyRank".ToUILocale().Fmt(this._rank), this.Flag.spriteFrame = this._panelAtlas.getSpriteFrame("Flag" + this._rank), this._rankData.PlayerInfo.Country ? (this.Country.node.active = !0, h.UIUtlity.SetCountrySpriteFrame(this.Country, this._rankData.PlayerInfo.Country)) : this.Country.node.active = !1
                }, t.prototype.RefreshBelikeBtn = function() {
                    this._likeUIDS.length >= this._rankTypeConfig.DailyLikeCount ? (this._canClickLike = !1, h.UIUtlity.OnNodeGray(this.BeLikeBtn.node)) : this._likeUIDS.indexOf(this._rankData.PlayerInfo.Uid) > -1 ? (this._canClickLike = !1, h.UIUtlity.OnNodeGray(this.BeLikeBtn.node)) : (this._canClickLike = !0, h.UIUtlity.OffNodeGray(this.BeLikeBtn.node)), this.BeLikeCount.string = this._rankData.BeLikeCount.toString()
                }, t.prototype.OnClickLikeBtn = function() {
                    if (this._canClickLike) {
                        var e = new l.Req_Player_RankLike;
                        e.RankType = p.RankTypeId.CrossZoneArena, e.TargetUid = this._rankData.PlayerInfo.Uid, c.RpcComponent.Instance.Call(e, this.OnBeLike.bind(this))
                    }
                }, t.prototype.OnBeLike = function() {
                    var e = c.DataCenter.Instance.GetDataById(l.UserRankLike_Model, p.RankTypeId.CrossZoneArena);
                    this._likeUIDS = e.LikeUids, this._rankData.BeLikeCount += 1, this.RefreshBelikeBtn();
                    var t = this._rankTypeConfig.LikeRewards[0].Items;
                    h.UIUtlity.ShowFloatingHint("CrossServerBeLikeSuccess".ToUILocale().Fmt(t[0].ToItemName() + " x " + t[1]))
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) d.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([g(cc.Node)], t.prototype, "HeroContainer", void 0), i([g(cc.Label)], t.prototype, "ServerName", void 0), i([g(cc.Label)], t.prototype, "PlayerName", void 0), i([g(cc.Label)], t.prototype, "BattlePower", void 0), i([g(cc.Label)], t.prototype, "RankLabel", void 0), i([g(cc.Label)], t.prototype, "BeLikeCount", void 0), i([g(cc.Button)], t.prototype, "BeLikeBtn", void 0), i([g(cc.Sprite)], t.prototype, "Flag", void 0), i([g(cc.Sprite)], t.prototype, "Country", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CrossServerPortPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "04fc3Pl2iVHE785M+oPPJPx", "CrossServerPortPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Battle/BattleManager"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../../Consts/Consts"),
            _ = e("./CrossServerRankPanel"),
            C = e("../../Components/Components"),
            v = e("./CrossServerChampionStartPanel"),
            b = e("./CrossServerChampionShipPanel"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Layout = null, t.ReturnBtn = null, t.SpaceTimeBtn = null, t.SpaceTimeBtnLabel = null, t.RuleBtn = null, t.WorldLevelBtn = null, t.WorldLevelBubble = null, t.WorldLeveBubbleTag = null, t.WorldLeveBubbleLeveValue = null, t.WorldLeveBubbleInfo = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerPortPanel/ItemLadderRace"), n = this.LoadDynamicAsset("CrossServerPortPanel/ItemWeekChampingRace"), o = this.LoadDynamicAsset("CrossServerPortPanel/ItemMoonRace"), r = this.LoadDynamicAsset("CrossServerPortPanel/ItemRankRace"), i = this.LoadDynamicAsset("CrossServerPortPanel/ItemAngelPvpRace"), a = this.LoadDynamicAsset("CrossServerPortPanel/AllZoneChampionRace"), [4, Promise.all([t, n, o, r, i, a]).then(function(e) {
                                        l._itemLaderRacePrefab = e[0], l._itemWeekChampingRacePrefab = e[1], l._itemMoonRacePrefab = e[2], l._itemRankRacePrefab = e[3], l._itemAngelPrefab = e[4], l._itemAllZoneChampionRacePrefab = e[5]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "crossServerTitle".ToUILocale(), this.SpaceTimeBtnLabel.string = "crossServerSpaceTime".ToUILocale(), this.ReturnBtn.node.on("click", this.OnReturnBtnClicked, this), this.SpaceTimeBtn.node.on("click", this.OnSpaceTimeBtnClicked, this), this._spaceTimeWorldLevelLimit = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneGroupMinWorldLevel"), this.RuleBtn.node.on("click", this.OnRuleClick, this), this.WorldLevelBtn.node.on("click", this.OnShowWorldLevelBubble, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigItemLader(), d.default.Instance.IsGameModuleOpen(I.GameModuleType.AllZoneChampionRace) && this.ConfigItemAllZoneChampion(), d.default.Instance.IsGameModuleOpen(I.GameModuleType.CrossZoneChampionRace) && this.ConfigIteWeekChamping(), d.default.Instance.IsGameModuleOpen(I.GameModuleType.AngelPvp) && this.ConfigItemAngel(), d.default.Instance.IsGameModuleOpen(I.GameModuleType.MoonTemple) && this.ConfigItemMoon(), d.default.Instance.IsGameModuleOpen(I.GameModuleType.CrossZoneRank) && this.ConfigItemRank()
                }, t.prototype.ConfigItemLader = function() {
                    this._itemLaderNode || (this._itemLaderNode = cc.instantiate(this._itemLaderRacePrefab), this._itemLaderNode.setParent(this.Layout)), cc.find("TimeInfo/Label", this._itemLaderNode).getComponent(cc.RichText).string = "CrossServerSettlement".ToUILocale(), this._itemLaderNode.on(cc.Node.EventType.TOUCH_END, this.OnClickLaderRace, this), m.RedDotManager.Instance.Bind(this._itemLaderNode, m.RedDotManager.Instance.RedDot.CrossServerLadderNode, -40, -40)
                }, t.prototype.ConfigIteWeekChamping = function() {
                    this._itemWeekChampingrNode || (this._itemWeekChampingrNode = cc.instantiate(this._itemWeekChampingRacePrefab), this._itemWeekChampingrNode.setParent(this.Layout)), this._championShipTimeRichText = cc.find("TimeInfo/Label", this._itemWeekChampingrNode).getComponent(cc.RichText), this.SetChampionShipOpenTime(), this._itemWeekChampingrNode.on(cc.Node.EventType.TOUCH_END, this.OnClickWeekChamping, this), m.RedDotManager.Instance.Bind(this._itemWeekChampingrNode, m.RedDotManager.Instance.RedDot.CrossServerChampionGuessNode, -40, -40)
                }, t.prototype.ConfigItemAllZoneChampion = function() {
                    this._itemAllZoneChampionNode || (this._itemAllZoneChampionNode = cc.instantiate(this._itemAllZoneChampionRacePrefab), this._itemAllZoneChampionNode.setParent(this.Layout), this._allZoneChampionShipTimeRichText = cc.find("TimeInfo/Label", this._itemAllZoneChampionNode).getComponent(cc.RichText)), this.SetAllZoneChampionShipOpenTime(), this._itemAllZoneChampionNode.on(cc.Node.EventType.TOUCH_END, this.OnClickAllZoneChampion, this), m.RedDotManager.Instance.Bind(this._itemWeekChampingrNode, m.RedDotManager.Instance.RedDot.AllZoneChampionEntryNode, -40, -40)
                }, t.prototype.SetChampionShipOpenTime = function() {
                    var e, t = d.default.GetChampionShipOpenTime(v.ChampionShipType.Normal) - C.RpcComponent.Instance.ServerTime,
                        n = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossChampionRaceRoundGuessDuration") + u.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossChampionRaceRoundBattleDuration");
                    if (t > 0) this._championShipTimeRichText.string = "CrossServerChampion_Start_OpenTime".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(t)), e = t > I.Etc.DayDuration ? Math.ceil(t % I.Etc.DayDuration / 1e3) : 1, this.unschedule(this.SetChampionShipOpenTime), this.schedule(this.SetChampionShipOpenTime, e);
                    else {
                        var o = void 0;
                        if (t + 6 * n > 0) e = t + 6 * n, o = "CrossServerChampion_Start_PointRace".ToUILocale();
                        else {
                            if (!(t + 12 * n > 0)) return o = "CrossServerChampion_Start_OverRace".ToUILocale(), this._championShipTimeRichText.string = "CrossServerChampion_Start_OpenTime".ToUILocale().Fmt(o), void this.unschedule(this.SetChampionShipOpenTime);
                            e = t + 12 * n, o = "CrossServerChampion_Start_PromotionRace".ToUILocale()
                        }
                        this._championShipTimeRichText.string = "CrossServerChampion_Start_OpenTime".ToUILocale().Fmt(o), this.unschedule(this.SetChampionShipOpenTime), this.schedule(this.SetChampionShipOpenTime, e / 1e3)
                    }
                }, t.prototype.SetAllZoneChampionShipOpenTime = function() {
                    var e, t = d.default.GetChampionShipOpenTime(v.ChampionShipType.AllZone) - C.RpcComponent.Instance.ServerTime,
                        n = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllZoneChampionRaceRoundGuessDuration") + u.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllZoneChampionRaceRoundBattleDuration");
                    if (t > 0) this._allZoneChampionShipTimeRichText.string = "AllZoneChampion_Start_OpenTime".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(t)), e = t > I.Etc.DayDuration ? Math.ceil(t % I.Etc.DayDuration / 1e3) : 1, this.unschedule(this.SetAllZoneChampionShipOpenTime), this.schedule(this.SetAllZoneChampionShipOpenTime, e);
                    else {
                        var o = void 0;
                        if (!(t + (b.ChampionShipRound.RACE_64_ROUND + b.ChampionShipRound.RACE_8_ROUND) * n > 0)) return o = "AllZoneChampion_Start_OverRace".ToUILocale(), this._allZoneChampionShipTimeRichText.string = "AllZoneChampion_Start_OpenTime".ToUILocale().Fmt(o), void this.unschedule(this.SetAllZoneChampionShipOpenTime);
                        e = t + 12 * n, o = "AllZoneChampion_Start_PromotionRace".ToUILocale(), this._allZoneChampionShipTimeRichText.string = "AllZoneChampion_Start_OpenTime".ToUILocale().Fmt(o), this.unschedule(this.SetAllZoneChampionShipOpenTime), this.schedule(this.SetAllZoneChampionShipOpenTime, e / 1e3)
                    }
                }, t.prototype.ConfigItemMoon = function() {
                    this._itemMoonNode || (this._itemMoonNode = cc.instantiate(this._itemMoonRacePrefab), this._itemMoonNode.setParent(this.Layout)), cc.find("TimeInfo/Label", this._itemMoonNode).getComponent(cc.RichText).string = "moonTemple_closeTime".ToUILocale(), this._itemMoonNode.on(cc.Node.EventType.TOUCH_END, this.OnClickMoonRace, this), m.RedDotManager.Instance.Bind(this._itemMoonNode, m.RedDotManager.Instance.RedDot.MoonTakenTempleNode, -40, -40)
                }, t.prototype.ConfigItemRank = function() {
                    this._itemRankNode || (this._itemRankNode = cc.instantiate(this._itemRankRacePrefab), this._itemRankNode.setParent(this.Layout)), cc.find("TimeInfo/Label", this._itemRankNode).getComponent(cc.RichText).string = "CrossServerSettlement".ToUILocale(), this._itemRankNode.on(cc.Node.EventType.TOUCH_END, this.OnClickRankRace, this), m.RedDotManager.Instance.Bind(this._itemRankNode, m.RedDotManager.Instance.RedDot.CrossServerRankNode, -40, -40)
                }, t.prototype.ConfigItemAngel = function() {
                    this._itemAngelNode || (this._itemAngelNode = cc.instantiate(this._itemAngelPrefab), this._itemAngelNode.setParent(this.Layout)), cc.find("TimeInfo/Label", this._itemAngelNode).getComponent(cc.RichText).string = "CrossServerSettlement".ToUILocale(), this._itemAngelNode.on(cc.Node.EventType.TOUCH_END, this.OnClickAngelPvpRace, this), m.RedDotManager.Instance.Bind(this._itemAngelNode, m.RedDotManager.Instance.RedDot.AngelPvpNode, -40, -40)
                }, t.prototype.OnClickLaderRace = function() {
                    if (g.BattleManager.Instance.IsInBattle(p.MapType.CrossServerArena)) g.BattleManager.Instance.ResumePlayBattle(p.MapType.CrossServerArena);
                    else if (n.CrossServerLimitConditions()) {
                        var e = new c.Req_CrossZone_EnterLadderRace;
                        e.RefreshTarget = !1, u.RpcComponent.Instance.Call(e, this.OnGetLadderInfo.bind(this))
                    }
                }, t.prototype.OnGetLadderInfo = function(e) {
                    h.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrossServerLadderPanel.Path, e)
                }, t.prototype.OnClickWeekChamping = function() {
                    var e = d.default.Instance.IsGameModuleUnlock(p.GameModuleType.CrossZoneChampionRace);
                    if (!e[0]) return y.UIUtlity.ShowFloatingHint(e[1]);
                    if (g.BattleManager.Instance.IsInBattle(p.MapType.CrossServerChampionShip)) g.BattleManager.Instance.ResumePlayBattle(p.MapType.CrossServerChampionShip);
                    else if (n.CrossServerLimitConditions()) {
                        var t = new c.Req_CrossZone_GetMyChampionHistoryRank;
                        u.RpcComponent.Instance.Call(t, this.OnGetChampionInfo.bind(this))
                    }
                }, t.prototype.OnClickAllZoneChampion = function() {
                    var e = d.default.Instance.IsGameModuleUnlock(p.GameModuleType.AllZoneChampionRace);
                    if (!e[0]) return y.UIUtlity.ShowFloatingHint(e[1]);
                    if (g.BattleManager.Instance.IsInBattle(p.MapType.AllZoneChampionRace)) g.BattleManager.Instance.ResumePlayBattle(p.MapType.AllZoneChampionRace);
                    else if (n.CrossServerLimitConditions()) {
                        var t = new c.Req_AllZoneChampion_Enter;
                        u.RpcComponent.Instance.Call(t, this.OnGetRegionChampionInfo.bind(this))
                    }
                }, t.prototype.OnClickMoonRace = function() {
                    var e = d.default.Instance.IsGameModuleUnlock(p.GameModuleType.MoonTemple);
                    if (!e[0]) return y.UIUtlity.ShowFloatingHint(e[1]);
                    if (g.BattleManager.Instance.IsInBattle(p.MapType.MoonTemple)) g.BattleManager.Instance.ResumePlayBattle(p.MapType.MoonTemple);
                    else if (n.CrossServerLimitConditions()) {
                        var t = new c.Req_Map_MoonTempleEnter;
                        u.RpcComponent.Instance.Call(t, this.OnGetMoonInfo.bind(this))
                    }
                }, t.prototype.OnClickRankRace = function() {
                    var e = d.default.Instance.IsGameModuleUnlock(p.GameModuleType.CrossZoneRank);
                    if (!e[0]) return y.UIUtlity.ShowFloatingHint(e[1]);
                    if (_.default.IsAssistantComplete || !g.BattleManager.Instance.IsInBattle(p.MapType.CrossZoneRank)) {
                        if (n.CrossServerLimitConditions()) {
                            var t = new c.Req_Map_CrossZoneRankEnter;
                            u.RpcComponent.Instance.Call(t, this.OnGetRankInfo.bind(this))
                        }
                    } else g.BattleManager.Instance.ResumePlayBattle(p.MapType.CrossZoneRank)
                }, t.prototype.OnClickAngelPvpRace = function() {
                    var e = d.default.Instance.IsGameModuleUnlock(p.GameModuleType.AngelPvp);
                    if (!e[0]) return y.UIUtlity.ShowFloatingHint(e[1]);
                    if (g.BattleManager.Instance.IsInBattle(p.MapType.GodLandDuel)) g.BattleManager.Instance.ResumePlayBattle(p.MapType.GodLandDuel);
                    else if (n.CrossServerLimitConditions()) {
                        var t = new c.Req_Map_GodLandDuelEnter;
                        u.RpcComponent.Instance.Call(t, this.OnGetAngelPvpInfo.bind(this))
                    }
                }, t.prototype.OnGetChampionInfo = function(e) {
                    h.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrossServerChampionStartPanel.Path, e, v.ChampionShipType.Normal)
                }, t.prototype.OnGetRegionChampionInfo = function(e) {
                    h.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrossServerChampionStartPanel.Path, e, v.ChampionShipType.AllZone)
                }, t.prototype.OnGetMoonInfo = function(e) {
                    h.UIManager.Instance.ShowUIPanel(f.PanelConfig.MonthTakenTemplePanel.Path, e)
                }, t.prototype.OnGetRankInfo = function(e) {
                    h.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrossServerRankPanel.Path, e)
                }, t.prototype.OnGetAngelPvpInfo = function(e) {
                    h.UIManager.Instance.ShowUIPanel(f.PanelConfig.AngelPvpPanel.Path, e)
                }, t.prototype.OnReturnBtnClicked = function() {
                    h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnSpaceTimeBtnClicked = function() {
                    var e = d.default.Instance.IsGameModuleUnlock(p.GameModuleType.CrossServerSpaceTime);
                    if (!e[0]) return y.UIUtlity.ShowFloatingHint(e[1]);
                    if (u.DataCenter.Instance.WorldLevel < this._spaceTimeWorldLevelLimit) return y.UIUtlity.ShowFloatingHint("CrossServerSpaceTimeLevelLimit".ToUILocale().Fmt(this._spaceTimeWorldLevelLimit));
                    if (u.DataCenter.Instance.Zones[u.DataCenter.Zone].Group <= 0) return y.UIUtlity.ShowFloatingHint("CrossServerLimitHint".ToUILocale());
                    if (!d.default.IsCrossServerTimeEnable()) return y.UIUtlity.ShowFloatingHint("CrossServerTimeLimitHint".ToUILocale().Fmt(10));
                    var t = new c.Req_CrossZone_GetGroupInfo;
                    u.RpcComponent.Instance.Call(t, this.OnGetServerGroupInfo.bind(this))
                }, t.prototype.OnGetServerGroupInfo = function(e) {
                    e.Zones.length > 0 ? h.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrossServerSpaceTimePanel.Path, e) : y.UIUtlity.ShowFloatingHint("CrossServerLimitHint".ToUILocale())
                }, t.CrossServerLimitConditions = function(e) {
                    void 0 === e && (e = !0);
                    var t = !0;
                    return u.DataCenter.Instance.Zones[u.DataCenter.Zone].Group <= 0 && (e && y.UIUtlity.ShowFloatingHint("CrossServerLimitHint".ToUILocale()), t = !1), d.default.IsCrossServerTimeEnable() || (e && y.UIUtlity.ShowFloatingHint("CrossServerTimeLimitHint".ToUILocale().Fmt(10)), t = !1), t
                }, t.prototype.OnRuleClick = function() {
                    var e = "crossServer_port_title".ToUILocale(),
                        t = ["crossServer_port_tag".ToUILocale()],
                        n = ["crossServer_port_info".ToUILocale()];
                    y.UIUtlity.ShowRulePanel({
                        name: e,
                        titles: t,
                        contents: n
                    })
                }, t.prototype.OnShowWorldLevelBubble = function() {
                    if (this.WorldLevelBubble.active = !this.WorldLevelBubble.active, this.WorldLevelBubble.active) {
                        this.WorldLeveBubbleTag.string = "worldLevel".ToUILocale(), this.WorldLeveBubbleLeveValue.string = "Lv." + u.DataCenter.Instance.WorldLevel;
                        var e = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("ZoneWorldLevelUserCount");
                        this.WorldLeveBubbleInfo.string = "worldLevelHint".ToUILocale().Fmt(e)
                    }
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Node)], t.prototype, "Layout", void 0), i([P(cc.Button)], t.prototype, "ReturnBtn", void 0), i([P(cc.Button)], t.prototype, "SpaceTimeBtn", void 0), i([P(cc.Label)], t.prototype, "SpaceTimeBtnLabel", void 0), i([P(cc.Button)], t.prototype, "RuleBtn", void 0), i([P(cc.Button)], t.prototype, "WorldLevelBtn", void 0), i([P(cc.Node)], t.prototype, "WorldLevelBubble", void 0), i([P(cc.Label)], t.prototype, "WorldLeveBubbleTag", void 0), i([P(cc.Label)], t.prototype, "WorldLeveBubbleLeveValue", void 0), i([P(cc.Label)], t.prototype, "WorldLeveBubbleInfo", void 0), n = i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "./CrossServerChampionStartPanel": "CrossServerChampionStartPanel",
        "./CrossServerRankPanel": "CrossServerRankPanel"
    }],
    CrossServerRankEditTeamPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "426a2KLfFxCfqY24rQLEv/c", "CrossServerRankEditTeamPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CrossServerRankEditTeamType = void 0;
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./CrossServerRankPanel"),
            y = e("../../../Consts/Consts"),
            g = e("./CrossServerRankTeamEditItem"),
            m = e("./ContinuousFightPanel"),
            I = e("../Components/GameModuleGuideManager"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../RedDot/RedDotManager");
        (function(e) {
            e[e.CrossServerRank = 0] = "CrossServerRank", e[e.BreakOutMatch = 1] = "BreakOutMatch", e[e.RankMatch = 2] = "RankMatch", e[e.ContinuousFight = 3] = "ContinuousFight"
        })(l = n.CrossServerRankEditTeamType || (n.CrossServerRankEditTeamType = {}));
        var v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.TitleLabel1 = null, t.TeamNode1 = null, t.ScrollView = null, t.BgNode = null, t.Content = null, t.Hint = null, t._itemPrefab = null, t._editTeamPrefab = null, t._editTeamComponents = [], t.LayoutTeamCount = 5, t._isShowGuide = !1, t._guideStepIndex = 0, t._guideGroupId = 0, t._moduleGuideGroupIds = [10002], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(_.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(_.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerRankPanel/SubItems/CrossServerRankTeamEditItem", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._editTeamPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent(), this.ShowGameModuleGuide()
                }, t.prototype.SetUIContent = function() {
                    this.TitleLabel1.string = "formation_title".ToUILocale(), this.SetEditItems()
                }, t.prototype.SetEditItems = function() {
                    var e, t = this,
                        n = [],
                        o = !1,
                        r = [];
                    switch (this._data.Type) {
                        case l.CrossServerRank:
                            var i = f.default.GetGradeByScore(this._data.Param),
                                a = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankAdvanceStage");
                            o = i.Id < a, n = [y.FormationIdType.CrossZoneRankAttack1, y.FormationIdType.CrossZoneRankAttack2, y.FormationIdType.CrossZoneRankAttack3];
                            break;
                        case l.RankMatch:
                            e = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("RankMatchChallengeMoreTeamRank"), o = this._data.Param < e, n = [y.FormationIdType.RankMatch1, y.FormationIdType.RankMatch2, y.FormationIdType.RankMatch3];
                            break;
                        case l.BreakOutMatch:
                            var s = this._data.Param,
                                u = d.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, s.CustomPart.MapId),
                                h = d.ConfigDataComponent.Instance.GetConfigById(p.MapType_Config, u.Type);
                            s.CustomPart.Condition.forEach(function(e, t) {
                                h.AttackerFormation[t] && (n.push(h.AttackerFormation[t]), r.push(e.Items))
                            });
                            break;
                        case l.ContinuousFight:
                            n = m.default.formationTypes
                    }
                    this.ScrollView.node.active = n.length > this.LayoutTeamCount, this.TeamNode1.active = n.length <= this.LayoutTeamCount;
                    var I = n.length <= this.LayoutTeamCount ? this.TeamNode1 : this.Content;
                    n.forEach(function(e, n) {
                        if (!t._editTeamComponents[n]) {
                            var i = cc.instantiate(t._editTeamPrefab);
                            i.parent = I, t._editTeamComponents[n] = i.getComponent(g.default)
                        }
                        var a = d.DataCenter.Instance.GetDataById(c.UserFormation_Model, e),
                            s = [];
                        a && a.HeroIds.forEach(function(e) {
                            var t = d.DataCenter.Instance.GetDataById(c.UserHero_Model, e);
                            s.push(t)
                        });
                        var u = {};
                        if (u.Heros = s, u.Index = n, u.Instance = t, u.ItemPrefab = t._itemPrefab, u.Type = t._data.Type, t._data.Type == l.ContinuousFight) {
                            var p = m.default.GetGradeByScore(t._data.Param);
                            u.IsShowLockLabel = p && p.FormationNum < n + 1
                        } else u.IsShowLockLabel = o;
                        t._data.Type == l.BreakOutMatch ? u.LabelParam = r[n] : t._data.Type == l.RankMatch && (u.LabelParam = [t._data.Param]), t._editTeamComponents[n].InitUI(u)
                    }), this.BgNode.getComponent(cc.Layout).updateLayout()
                }, t.prototype.ShowGameModuleGuide = function() {
                    this._isShowGuide || (this._isShowGuide = !0, this.ShowGameGuid())
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = I.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = d.ConfigDataComponent.Instance.GetConfigById(p.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 4:
                                            I.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 5:
                                            I.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.Hint);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t), this._data.Type == l.ContinuousFight && this.SetContinuousFightFormationState()
                }, t.prototype.SetContinuousFightFormationState = function() {
                    for (var e = d.ConfigDataComponent.Instance.GetArrayConfig(p.CrossZoneContinueWarRankStage_Config), t = 0; t < e.length; t++) {
                        var n = e[t];
                        if (this._data.Param < n.Score) break;
                        m.default.GetShowState(n.Id) || (m.default.SetShowState(n.Id, 1), C.RedDotManager.Instance.RedDot.ContinuousFightFormationBtn.NeedRefresh = !0)
                    }
                }, i([S(cc.Label)], t.prototype, "TitleLabel1", void 0), i([S(cc.Node)], t.prototype, "TeamNode1", void 0), i([S(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([S(cc.Node)], t.prototype, "BgNode", void 0), i([S(cc.Node)], t.prototype, "Content", void 0), i([S(cc.Node)], t.prototype, "Hint", void 0), i([b], t)
            }(u.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "./ContinuousFightPanel": "ContinuousFightPanel",
        "./CrossServerRankPanel": "CrossServerRankPanel",
        "./CrossServerRankTeamEditItem": "CrossServerRankTeamEditItem"
    }],
    CrossServerRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7f8f3VZtZtB/b6eAPtTpx9q", "CrossServerRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("./SmallRankComponent"),
            g = e("./TeamInfoComponent"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../Components/ItemComponent"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../Components/CustomToggle"),
            b = e("../Components/HeadComponent"),
            S = e("../../../Util/TimeUtil"),
            w = e("../../../Consts/Consts"),
            P = e("../../Components/Components"),
            A = e("../Battle/BattleManager"),
            T = e("../Battle/BattleData"),
            R = e("../../RedDot/RedDotManager"),
            L = e("../../Channel/ChannelManager"),
            k = e("./NewAssistantPanel"),
            O = e("./CrossServerRankEditTeamPanel"),
            M = e("../Components/CustomProgressBar"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property,
            E = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new h.UIPanelType(h.UINodeType.Fixed, !0), t.NameLabel = null, t.TimeDescLabel = null, t.TimeValueLabel = null, t.GradeImage = null, t.GradeLabel = null, t.GradeScore = null, t.GradeScoreProgressBar = null, t.ScoreLabel = null, t.SmallRankComponent = null, t.DailyButton = null, t.DailyLabel = null, t.WeeklyButton = null, t.WeeklyLabel = null, t.RewardLabel = null, t.DetailButton = null, t.RewardNode = null, t.TogglesNode = null, t.Toggles = [], t.AttrDescLabel = null, t.TeamInfoComponent = null, t.RuleButton = null, t.ReturnButton = null, t.MatchingButton = null, t.MatchingLabel = null, t.StopAssistantButton = null, t.StopAssistantLabel = null, t.MatchTimesLabel = null, t.ReportButton = null, t.ReportLabel = null, t.FormationButton = null, t.FormationLabel = null, t.VSNode = null, t.Effect1 = null, t.Effect2 = null, t.Effect3 = null, t.MyHead = null, t.MyNameLabel = null, t.EnemyHead = null, t.EnemyNode = null, t.EnemyNameLabel = null, t.FloatHead = null, t.FloatNode = null, t.FloatNameLabel = null, t.PvpButton = null, t._deadLine = 0, t._itemPrefab = null, t._itemNodes = [], t._selectTog = 0, t._isReDisplay = !1, t._rankData = null, t._data = null, t._myTeamDatas = [], t._enemyInfo = null, t._curConfig = null, t._headIcons = null, t._headFrames = null, t._isMatchFinished = !1, t._isMatching = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerRankPanel/PNG/CrossServerRank", cc.SpriteAtlas), o = this.LoadDynamicAsset(C.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, o]).then(function(e) {
                                        n.CrossServerRankAtlas = e[0], r._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_CROSSSERVER_RANK_UPDATE, this.OnUpdateContent.bind(this), this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_CROSSSERVER_RANK_UPDATE, this.OnUpdateContent.bind(this), this)
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.NameLabel.string = "crossServerRank_Title".ToUILocale(), this.TimeDescLabel.string = "crossServerRank_remain".ToUILocale(), this.GradeScore.string = "crossServerRank_grade_score".ToUILocale(), this.RewardLabel.string = "crossServerRank_grade_reward".ToUILocale(), this.DailyLabel.string = "crossServerRank_daily_reward".ToUILocale(), this.WeeklyLabel.string = "crossServerRank_weekly_reward".ToUILocale(), this.AttrDescLabel.string = "crossServerRank_pvp_attr".ToUILocale(), this.MatchingLabel.string = "crossServerRank_matching".ToUILocale(), this.ReportLabel.string = "allianceWar_report".ToUILocale(), this.FormationLabel.string = "formation_title".ToUILocale(), this.StopAssistantLabel.string = "continuousFight_stop".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.DailyButton.node.on("click", this.OnDailyButtonClick, this), this.WeeklyButton.node.on("click", this.OnWeeklyButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.MatchingButton.node.on("click", this.OnMatchingButtonClick, this), this.ReportButton.node.on("click", this.OnReportButtonClick, this), this.FormationButton.node.on("click", this.OnFormationButtonClick, this), this.PvpButton.node.on("click", this.OnPvpButtonClick, this), this.StopAssistantButton.node.on("click", this.OnClickStopAssistantButton, this), this.Toggles.forEach(function(e) {
                        e.node.on("toggle", t.OnToggleSwitch, t)
                    }), this.VSNode.active = !1
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0], this._isMatching = !1
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), this._isReDisplay = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._curConfig = n.GetGradeByScore(this._data.MyScore), this.InitNodes(), this.SetTime(), this.SetGradeInfo(), this.SetSamllRankInfo(), this.SetReward(), this.SetToggles(), this.SetTeamInfo(), this.SetButtonInfo(), R.RedDotManager.Instance.Bind(this.DailyButton.node, R.RedDotManager.Instance.RedDot.CrossServerRankDayilyNode), R.RedDotManager.Instance.Bind(this.WeeklyButton.node, R.RedDotManager.Instance.RedDot.CrossServerRankWeekilyNode)
                }, t.prototype.InitNodes = function() {
                    this.Effect1.node.active = !1, this.Effect2.node.active = !1, this.Effect3.node.active = !1, this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetTime = function() {
                    this._isReDisplay || (this._deadLine = S.TimeUtil.GetMondayClock0Ts(d.RpcComponent.Instance.ServerTime) + 7 * w.Etc.DayDuration - 3 * w.Etc.HourDuration, this.CountDownTime(), this.schedule(this.CountDownTime, 1))
                }, t.prototype.CountDownTime = function() {
                    var e = d.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    if (t < 0) return this.TimeValueLabel.string = "crossServerRank_end".ToUILocale(), void this.unschedule(this.CountDownTime);
                    this.TimeValueLabel.string = m.default.ActivityTimeLeftFormat(t)
                }, t.prototype.SetGradeInfo = function() {
                    var e = P.ConfigDataComponent.Instance.GetConfigById(u.CrossZoneRankStage_Config, this._curConfig.Id + 1);
                    if (this.GradeImage.spriteFrame = n.CrossServerRankAtlas.getSpriteFrame("grade_" + this._curConfig.Id), this.GradeLabel.string = this._curConfig.Id.ToCrossZoneRankStageName(), e) {
                        var t = e.Score,
                            o = this._data.MyScore;
                        this.GradeScoreProgressBar.progress = o / t, this.ScoreLabel.string = o + "/" + t
                    } else t = this._curConfig.Score, o = this._data.MyScore, this.GradeScoreProgressBar.progress = o / t, this.ScoreLabel.string = o + "/" + t
                }, t.prototype.SetSamllRankInfo = function() {
                    if (this._isReDisplay) this.GetRankData(this._rankData);
                    else {
                        var e = new l.Req_Player_GetRank;
                        e.RankType = p.RankTypeId.CrossZoneRank, e.CustomCount = 3, P.RpcComponent.Instance.Call(e, this.GetRankData.bind(this))
                    }
                }, t.prototype.GetRankData = function(e) {
                    this._rankData = e;
                    var t = e && e.Data && e.Data.Rows && e.Data.Rows.length > 0 ? e.Data.Rows : [];
                    this.SmallRankComponent.InitData(t, function() {
                        var e = this,
                            t = new l.Req_Player_GetRank;
                        t.RankType = p.RankTypeId.CrossZoneRank, P.RpcComponent.Instance.Call(t, function(t) {
                            e._rankData = t, t.Data.Rows.length > 0 ? h.UIManager.Instance.ShowUIPanel(C.PanelConfig.RankDetailPanel.Path, p.RankTypeId.CrossZoneRank, t.Data.Rows, t.Data.Achievements, t.MyRank, t.MyRankData) : f.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())
                        })
                    }, p.RankTypeId.CrossZoneRank, null == e ? void 0 : e.MyRank)
                }, t.prototype.SetReward = function() {
                    var e = this;
                    this._curConfig.Rewards.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.RewardNode, e._itemNodes[n] = o
                        }
                        e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(_.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        }, _.ItemComponentType.ItemCommon)
                    })
                }, t.prototype.SetToggles = function() {
                    this.Toggles.forEach(function(e, t) {
                        e.Init("formation_index".ToUILocale().Fmt(t + 1))
                    })
                }, t.prototype.SetTeamInfo = function() {
                    this._myTeamDatas = [];
                    var e = P.DataCenter.Instance.GetDataById(l.UserFormation_Model, w.FormationIdType.CrossZoneRankAttack1),
                        t = P.DataCenter.Instance.GetDataById(l.UserFormation_Model, w.FormationIdType.CrossZoneRankAttack2),
                        n = P.DataCenter.Instance.GetDataById(l.UserFormation_Model, w.FormationIdType.CrossZoneRankAttack3);
                    e && this._myTeamDatas.push(e), t && this._myTeamDatas.push(t), n && this._myTeamDatas.push(n), this._myTeamDatas.forEach(function(e) {
                        for (var t = 0; t < 5; t++) e.HeroIds[t] || (e.HeroIds[t] = 0)
                    }), this.TeamInfoComponent.InitData(this._itemPrefab, this._selectTog)
                }, t.prototype.SetButtonInfo = function() {
                    if (n.IsAssistantComplete) this.MatchingButton.node.active = !1, this.StopAssistantButton.node.active = !0;
                    else {
                        var e, t = P.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankDailyFreeChallengeCount"),
                            o = P.DataCenter.Instance.GetIntData(p.UserDataKey.CrossZoneRankChallengeCount);
                        e = t - o > 0 ? t - o : 0, this.MatchTimesLabel.string = "crossServerRank_challengeTimes".ToUILocale().Fmt(e, t), this.MatchingButton.node.active = !0, this.StopAssistantButton.node.active = !1
                    }
                }, t.prototype.SetVsNode = function() {
                    var e, t = P.DataCenter.Instance.GetIntData(w.UserDataKey.HeadIcon),
                        n = P.DataCenter.Instance.GetIntData(w.UserDataKey.HeadFrame),
                        o = P.DataCenter.Instance.GetStringData(w.UserDataKey.RoleName);
                    this.VSNode.active = !0, this.MyHead.SetUI(t, n), this.MyHead.SetLevel(P.DataCenter.Instance.GetIntData(w.UserDataKey.PlayerLevel)), (e = P.DataCenter.Instance.GetStringData(w.UserDataKey.Country)) || (e = L.default.Instance.Localization_Country), e = 0 == P.DataCenter.Instance.GetIntData(w.UserDataKey.CountryShowState) ? e : "", this.MyHead.SetCountry(e), this.MyNameLabel.string = o, this._isMatchFinished = !1, this.SetHeroHeadNodeFloat(), this.SetEffect()
                }, t.prototype.SetEffect = function() {
                    var e = this;
                    this.Effect1.node.active = !0, this.Effect1.setAnimation(0, "Ai_UI_effect_pipeizhong", !1), this.scheduleOnce(function() {
                        e.Effect1.node.active = !1, e.Effect2.node.active = !0, e.Effect2.setAnimation(0, "Ai_UI_effect_pipeizhong2", !0), e.scheduleOnce(function() {
                            e._enemyInfo ? (e._isMatchFinished = !0, e.EnemyHead.SetUI(e._enemyInfo.HeadIcon, e._enemyInfo.HeadFrame), e.EnemyHead.SetLevel(e._enemyInfo.Level), e.EnemyHead.SetCountry(e._enemyInfo.Country), e.EnemyNameLabel.string = e._enemyInfo.Name, e.FloatNode.opacity = 0, e.EnemyNode.opacity = 255, e.Effect3.node.active = !0, e.Effect3.setAnimation(0, "Ani_UI_effect_pipeizhong_chenggong", !1), e.scheduleOnce(function() {
                                this.VSNode.active = !1, this.Effect1.node.active = !1, this.Effect2.node.active = !1, this.Effect3.node.active = !1, n.StartBattle()
                            }, 1)) : (e._isMatchFinished = !0, e.VSNode.active = !1, e.Effect1.node.active = !1, e.Effect2.node.active = !1, e.Effect3.node.active = !1)
                        }, 1)
                    }, .3)
                }, t.prototype.SetHeroHeadNodeFloat = function() {
                    var e = this;
                    if (!this._isMatchFinished) {
                        this.FloatNode.opacity = 255, this.EnemyNode.opacity = 0;
                        for (var t = [this.EnemyHead, this.FloatHead], n = [this.EnemyNameLabel, this.FloatNameLabel], o = 0; o < t.length; o++) {
                            var r = this.GetRandomHeadIcon(),
                                i = this.GetRandomHeadFrame();
                            n[o].string = this.GetRandomName(), t[o].SetUI(r, i), t[o].SetLevel(0), t[o].SetCountry(null)
                        }
                        cc.tween(this.FloatNode).to(.166, {
                            y: 75,
                            opacity: 0
                        }).call(function() {
                            e.FloatNode.y = 0, e._isMatchFinished || (e.FloatNode.opacity = 255)
                        }).start(), cc.tween(this.EnemyNode).to(.166, {
                            opacity: 255
                        }).call(function() {
                            e.SetHeroHeadNodeFloat()
                        }).start()
                    }
                }, t.prototype.GetRandomHeadIcon = function() {
                    null == this._headIcons && (this._headIcons = P.ConfigDataComponent.Instance.GetArrayConfig(u.HeadIcon_Config));
                    var e = this._headIcons.length,
                        t = Math.floor(Math.random() * e),
                        n = 0;
                    return this._headIcons[t] && (n = this._headIcons[t].Id), n
                }, t.prototype.GetRandomHeadFrame = function() {
                    null == this._headFrames && (this._headFrames = P.ConfigDataComponent.Instance.GetArrayConfig(u.HeadFrame_Config));
                    var e = this._headFrames.length,
                        t = Math.floor(Math.random() * e),
                        n = 0;
                    return this._headFrames[t] && (n = this._headFrames[t].Id), n
                }, t.prototype.GetRandomName = function() {
                    for (var e = d.ConfigCacheComponent.Instance.GetRandomNamesConfigs(), t = [this.GetNamePool1, this.GetNamePool2, this.GetNamePool3], n = "", o = 0; o < t.length; o++) n += this.GetValidName(e, t[o].bind(this));
                    return n
                }, t.prototype.GetValidName = function(e, t) {
                    return t(e[Math.floor(Math.random() * e.length)])
                }, t.prototype.GetNamePool1 = function(e) {
                    return e.NamePool1
                }, t.prototype.GetNamePool2 = function(e) {
                    return e.NamePool2
                }, t.prototype.GetNamePool3 = function(e) {
                    return e.NamePool3
                }, t.prototype.OnToggleSwitch = function(e) {
                    var t = Number.parseInt(e.name);
                    this._selectTog != t && (this._selectTog = t, this.SetTeamInfo())
                }, t.prototype.OnDailyButtonClick = function() {
                    h.UIManager.Instance.ShowUIPanel(C.PanelConfig.CrossServerRankTaskRewardPanel.Path, w.TaskType.CrossZoneRankDaily, p.GameModuleType.CrossZoneRank)
                }, t.prototype.OnWeeklyButtonClick = function() {
                    h.UIManager.Instance.ShowUIPanel(C.PanelConfig.CrossServerRankTaskRewardPanel.Path, w.TaskType.CrossZoneRankWeekly, p.GameModuleType.CrossZoneRank)
                }, t.prototype.OnDetailButtonClick = function() {
                    h.UIManager.Instance.ShowUIPanel(C.PanelConfig.CrossServerRankRewardPanel.Path, this._data.MyScore, p.RankTypeId.CrossZoneRank)
                }, t.prototype.OnMatchingButtonClick = function() {
                    if (!m.default.IsCrossServerLadderChallengeEnable()) return f.UIUtlity.ShowFloatingHint("crossServerRank_cant_challenge".ToUILocale());
                    var e = P.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankDailyFreeChallengeCount");
                    if (P.DataCenter.Instance.GetIntData(p.UserDataKey.CrossZoneRankChallengeCount) >= e) f.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale());
                    else if (!this._isMatching) {
                        var t = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankAdvanceStage"),
                            o = n.GetGradeByScore(this._data.MyScore),
                            r = !0;
                        if (o.Id >= t) {
                            if (this._myTeamDatas.length < 3) return void f.UIUtlity.ShowFloatingHint("crossServerRank_set_formation".ToUILocale());
                            for (var i = function(e) {
                                    var t = !1;
                                    if (a._myTeamDatas[e].HeroIds && a._myTeamDatas[e].HeroIds.forEach(function(e) {
                                            e > 0 && (t = !0)
                                        }), !t) return r = !1, "break"
                                }, a = this, s = 0; s < this._myTeamDatas.length && "break" !== i(s); s++);
                        } else {
                            var c = !1;
                            this._myTeamDatas[0] && this._myTeamDatas[0].HeroIds && this._myTeamDatas[0].HeroIds.forEach(function(e) {
                                e > 0 && (c = !0)
                            }), c || (r = !1)
                        }
                        if (r) {
                            this._isMatching = !0;
                            var u = new l.Req_Map_CrossZoneRankChallenge;
                            u.Formations = this._myTeamDatas, P.RpcComponent.Instance.Call(u, this.OnRequestMatchingSuccess.bind(this), this.OnRequestMatchingFail.bind(this))
                        } else f.UIUtlity.ShowFloatingHint("crossServerRank_set_formation".ToUILocale())
                    }
                }, t.prototype.OnRequestMatchingSuccess = function(e) {
                    this._enemyInfo = e.TargetInfo, this._data.MyScore = e.Params[0], n.BattleInfo = e, n.BattleReports = e.Reports, A.BattleManager.Instance.CanShowBattleSettlePanel = !1, this.SetVsNode()
                }, t.prototype.OnRequestMatchingFail = function() {
                    var e = new l.Req_Map_CrossZoneRankEnter;
                    P.RpcComponent.Instance.Call(e, this.RefreshData.bind(this))
                }, t.prototype.RefreshData = function(e) {
                    this._data = e, this._isReDisplay = !0, this.SetUIContent()
                }, t.prototype.OnFormationButtonClick = function() {
                    var e = {};
                    e.Param = this._data.MyScore, e.Type = O.CrossServerRankEditTeamType.CrossServerRank, h.UIManager.Instance.ShowUIPanel(C.PanelConfig.CrossServerRankEditTeamPanel.Path, e)
                }, t.prototype.OnPvpButtonClick = function() {
                    var e = {};
                    e.Title = "common_pvp_title".ToUILocale(), e.Desc1 = "commono_pvp_attr_from".ToUILocale(), h.UIManager.Instance.ShowUIPanel(C.PanelConfig.CommonSPHeroDescPanel.Path, e)
                }, t.prototype.OnClickStopAssistantButton = function() {
                    n.IsAssistantComplete = !1, this.SetButtonInfo()
                }, t.prototype.OnReportButtonClick = function() {
                    var e = new l.Req_Player_GetBattleMessages;
                    e.Type = p.BattleMessageType.CrossZoneRank, P.RpcComponent.Instance.Call(e, function(e) {
                        h.UIManager.Instance.ShowUIPanel(C.PanelConfig.CrossServerRankReportPanel.Path, e, p.GameModuleType.CrossZoneRank)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                }, t.prototype.OnReturnButtonClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "assistant_crossServerRank".ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: ["crossServerRank_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.GetGradeByScore = function(e) {
                    var t = null,
                        n = P.ConfigDataComponent.Instance.GetArrayConfig(u.CrossZoneRankStage_Config);
                    if (e < n[0].Score) t = n[0];
                    else
                        for (var o = 0; o < n.length; o++) e >= n[o].Score && (t = n[o]);
                    return t
                }, t.GetThreeTeamConfig = function() {
                    for (var e = null, t = P.ConfigDataComponent.Instance.GetArrayConfig(u.CrossZoneRankStage_Config), n = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankAdvanceStage"), o = 0; o < t.length; o++)
                        if (t[o].Id >= n) {
                            e = t[o];
                            break
                        } return e
                }, t.prototype.OnUpdateContent = function() {
                    this._data && (this._isMatching = !1, this._isReDisplay = !0, this.SetUIContent())
                }, t.InitBattle = function() {
                    var e = w.MapType.CrossZoneRank;
                    h.Game.EventDispatcher.Only(w.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), h.Game.EventDispatcher.Only(w.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), h.Game.EventDispatcher.Only(w.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n), h.Game.EventDispatcher.Only(w.GameEventIds.SettleAllBattle.Fmt(e), n.SettleFunction, n)
                }, t.StartBattle = function(e) {
                    void 0 === e && (e = !1), n.NextBattleIndex = 0;
                    var t, o = n.GetNextBattleReport();
                    if (t = e ? {
                            MultiBattleResult: [0, 0, 0],
                            DontCloseOnEnd: !0,
                            CanSwitchSpeed: !0,
                            CanSkipPlay: !0,
                            CanPlayInBackground: !1,
                            CanCanel: !1,
                            CanRestart: !1,
                            CanSkipAllPlay: !0
                        } : {
                            MultiBattleResult: [0, 0, 0],
                            DontCloseOnEnd: !0,
                            CanSwitchSpeed: !0,
                            CanSkipPlay: !0,
                            CanPlayInBackground: !0,
                            CanCanel: !1,
                            CanRestart: !1,
                            CanSkipAllPlay: !0
                        }, n.IsAssistantComplete) A.BattleManager.Instance.StartPlay(o, t, !0);
                    else {
                        var r = {
                                Reports: [o],
                                Players: [],
                                ExtraParam: t,
                                IsDouble: !1,
                                ActiveIndex: 0,
                                ViewPortIds: [],
                                InBackground: !1,
                                SettleParams: null
                            },
                            i = d.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, r.Reports[0].MapId);
                        r.MapType = i.Type;
                        var a = 1;
                        n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                            e.Uid == P.DataCenter.Instance.Uid && (a = e.Camp)
                        }), h.UIManager.Instance.ShowUIPanel(C.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, a, r, function() {
                            var r = A.BattleManager.Instance.StartPlay(o, t);
                            e && (r.SettleParams = [n.BattleInfo, n.BattleReports])
                        })
                    }
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.BattleInfo && n.NextBattleIndex < n.BattleReports.length && (e = n.BattleReports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.SettleBattle = function(e) {
                    var t = n.GetNextBattleReport();
                    if (t) {
                        e.Reports[0] = t;
                        var o = m.default.CheckIsSelfBattleWin(n.BattleReports[n.NextBattleIndex - 2], !0);
                        if (e.ExtraParam.MultiBattleResult[n.NextBattleIndex - 2] = o ? 1 : -1, e.InBackground) A.BattleManager.Instance.NextWave(e);
                        else {
                            var r = 1;
                            n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                                e.Uid == P.DataCenter.Instance.Uid && (r = e.Camp)
                            }), h.UIManager.Instance.ShowUIPanel(C.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, r, e, n.ShowNextBattle)
                        }
                    } else n.SettleFunction(e)
                }, t.SettleFunction = function(e) {
                    if (e.InBackground || h.Game.EventDispatcher.Emit(w.GameEventIds.DelayCloseBattlePanel), delete T.BattleData.PlayingBattleDatas[w.MapType.CrossZoneRank], e.SettleParams) {
                        var t = "CrossServerRankPanel/CrossServerRankSettlementComponent",
                            o = e.SettleParams[0];
                        P.DataCenter.Instance.Uid == o.AttackerInfo.Uid == !!o.Result ? e.InBackground ? A.BattleManager.Instance.ShowSettlePanel(C.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : c.UIManager.Instance.ShowUIPanel(C.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : e.InBackground ? A.BattleManager.Instance.ShowSettlePanel(C.PanelConfig.SettlementFailPanel.Path, t, e) : c.UIManager.Instance.ShowUIPanel(C.PanelConfig.SettlementFailPanel.Path, t, e)
                    } else n.RequestCrossServerRankSettlement(n.BattleReports, !1, e.InBackground);
                    A.BattleManager.Instance.CanShowBattleSettlePanel = !0
                }, t.RequestCrossServerRankSettlement = function(e, t, o) {
                    void 0 === o && (o = !0);
                    var r = {
                            Reports: e,
                            MapType: w.MapType.CrossZoneRank
                        },
                        i = new l.Req_Map_BattleSettlement;
                    i.MapType = w.MapType.CrossZoneRank, P.RpcComponent.Instance.Call(i, function(i) {
                        if (n.IsAssistantComplete) k.default.SetCrossServerRankAutoComplete(), c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_CROSSSERVER_RANK_UPDATE);
                        else {
                            r.SettleParams = [JSON.parse(i.StringParam)], r.SettleParams[0].Reports = e;
                            var a = "CrossServerRankPanel/CrossServerRankSettlementComponent";
                            1 == i.Result ? o ? A.BattleManager.Instance.ShowSettlePanel(C.PanelConfig.SettlementWinPanel.Path, a, r, null, i.Result) : c.UIManager.Instance.ShowUIPanel(C.PanelConfig.SettlementWinPanel.Path, a, r, null, i.Result) : o ? A.BattleManager.Instance.ShowSettlePanel(C.PanelConfig.SettlementFailPanel.Path, a, r) : c.UIManager.Instance.ShowUIPanel(C.PanelConfig.SettlementFailPanel.Path, a, r)
                        }
                        t && delete T.BattleData.PlayingBattleDatas[w.MapType.CrossZoneRank]
                    }, null)
                }, t.ShowNextBattle = function(e) {
                    A.BattleManager.Instance.NextWave(e)
                }, t.OnBattleSwitchToBackground = function() {
                    h.UIManager.Instance.QuitPanelStack(C.PanelConfig.CrossServerRankPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.CountDownTime), A.BattleManager.Instance.CanShowBattleSettlePanel = !0
                }, t.CrossServerRankAtlas = null, t.BattleInfo = null, t.BattleReports = null, t.IsAssistantComplete = !1, t.NextBattleIndex = 0, i([N(cc.Label)], t.prototype, "NameLabel", void 0), i([N(cc.Label)], t.prototype, "TimeDescLabel", void 0), i([N(cc.Label)], t.prototype, "TimeValueLabel", void 0), i([N(cc.Sprite)], t.prototype, "GradeImage", void 0), i([N(cc.Label)], t.prototype, "GradeLabel", void 0), i([N(cc.Label)], t.prototype, "GradeScore", void 0), i([N(M.default)], t.prototype, "GradeScoreProgressBar", void 0), i([N(cc.Label)], t.prototype, "ScoreLabel", void 0), i([N(y.default)], t.prototype, "SmallRankComponent", void 0), i([N(cc.Button)], t.prototype, "DailyButton", void 0), i([N(cc.Label)], t.prototype, "DailyLabel", void 0), i([N(cc.Button)], t.prototype, "WeeklyButton", void 0), i([N(cc.Label)], t.prototype, "WeeklyLabel", void 0), i([N(cc.Label)], t.prototype, "RewardLabel", void 0), i([N(cc.Button)], t.prototype, "DetailButton", void 0), i([N(cc.Node)], t.prototype, "RewardNode", void 0), i([N(cc.Node)], t.prototype, "TogglesNode", void 0), i([N(v.default)], t.prototype, "Toggles", void 0), i([N(cc.Label)], t.prototype, "AttrDescLabel", void 0), i([N(g.default)], t.prototype, "TeamInfoComponent", void 0), i([N(cc.Button)], t.prototype, "RuleButton", void 0), i([N(cc.Button)], t.prototype, "ReturnButton", void 0), i([N(cc.Button)], t.prototype, "MatchingButton", void 0), i([N(cc.Label)], t.prototype, "MatchingLabel", void 0), i([N(cc.Button)], t.prototype, "StopAssistantButton", void 0), i([N(cc.Label)], t.prototype, "StopAssistantLabel", void 0), i([N(cc.Label)], t.prototype, "MatchTimesLabel", void 0), i([N(cc.Button)], t.prototype, "ReportButton", void 0), i([N(cc.Label)], t.prototype, "ReportLabel", void 0), i([N(cc.Button)], t.prototype, "FormationButton", void 0), i([N(cc.Label)], t.prototype, "FormationLabel", void 0), i([N(cc.Node)], t.prototype, "VSNode", void 0), i([N(sp.Skeleton)], t.prototype, "Effect1", void 0), i([N(sp.Skeleton)], t.prototype, "Effect2", void 0), i([N(sp.Skeleton)], t.prototype, "Effect3", void 0), i([N(b.default)], t.prototype, "MyHead", void 0), i([N(cc.Label)], t.prototype, "MyNameLabel", void 0), i([N(b.default)], t.prototype, "EnemyHead", void 0), i([N(cc.Node)], t.prototype, "EnemyNode", void 0), i([N(cc.Label)], t.prototype, "EnemyNameLabel", void 0), i([N(b.default)], t.prototype, "FloatHead", void 0), i([N(cc.Node)], t.prototype, "FloatNode", void 0), i([N(cc.Label)], t.prototype, "FloatNameLabel", void 0), i([N(cc.Button)], t.prototype, "PvpButton", void 0), n = i([B], t)
            }(c.BaseUIFullScreenPanel);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerRankEditTeamPanel": "CrossServerRankEditTeamPanel",
        "./NewAssistantPanel": "NewAssistantPanel",
        "./SmallRankComponent": "SmallRankComponent",
        "./TeamInfoComponent": "TeamInfoComponent"
    }],
    CrossServerRankReportItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1af6eHmD/dLUbS0/P1G4KaF", "CrossServerRankReportItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../Consts/Consts"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../Components/HeadComponent"),
            d = e("../../../Util/TimeUtil"),
            h = e("./CrossServerRankPanel"),
            f = e("./ContinuousFightPanel"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./ActivityHeroPKPanel"),
            m = e("./AngelPvpComponent"),
            I = e("./AngelPvpPanel"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("./BreakOutMatchChallengePanel"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.WinNode = null, t.FailNode = null, t.UpLabel = null, t.DownLabel = null, t.AttackNode = null, t.DefendNode = null, t.RankImage = null, t.Header = null, t.ReplayButton = null, t.NameLabel = null, t.DateLabel = null, t.TimeLabel = null, t.UpScoreNode = null, t.UpLevelNode = null, t.CurUpLevel = null, t.NextUpLevel = null, t.UpLevelArrow = null, t.DownScoreNode = null, t.DownLevelNode = null, t.CurDownLevel = null, t.NextDownLevel = null, t.DownLevelArrow = null, t._data = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ReplayButton.node.on("click", this.OnReplayButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.ReplayButton.node.off("click", this.OnReplayButtonClick, this)
                }, t.prototype.InitUI = function(e) {
                    this._data = e, this.SetInfo()
                }, t.prototype.SetInfo = function() {
                    var e, t = !1;
                    (e = c.DataCenter.Instance.Uid == this._data.Data.AttackerInfo.Uid) && this._data.Data.Result ? t = !0 : e || this._data.Data.Result || (t = !0);
                    var n = e ? this._data.Data.DefenderInfo : this._data.Data.AttackerInfo;
                    if (this.WinNode.active = t, this.FailNode.active = !t, this.AttackNode.active = e, this.DefendNode.active = !e, this.UpScoreNode.active = !(this._data.ActivityId && this._data.Type == s.ActivityType.Breakou), this.DownScoreNode.active = !(this._data.ActivityId && this._data.Type == s.ActivityType.Breakou), this.UpLevelNode.active = this._data.ActivityId && this._data.Type == s.ActivityType.Breakou, this.DownLevelNode.active = this._data.ActivityId && this._data.Type == s.ActivityType.Breakou, this.Header.SetHeadIcon(n.HeadIcon), this.Header.SetHeadFrame(n.HeadFrame), this.Header.SetLevel(n.Level), this.Header.SetCountry(n.Country), this.NameLabel.string = n.Name, this.DateLabel.string = d.TimeUtil.Format("YYYY/MM/DD", this._data.Data.Ts), this.TimeLabel.string = d.TimeUtil.Format("HH:mm:ss", this._data.Data.Ts), this._data.ActivityId && this._data.Type == s.ActivityType.Breakou) t ? (this.CurUpLevel.string = this._data.Data.IntParams[2].toString(), this.NextUpLevel.string = this._data.Data.IntParams[1].toString(), this.UpLevelArrow.spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green")) : (this.CurDownLevel.string = this._data.Data.IntParams[2].toString(), this.NextDownLevel.string = this._data.Data.IntParams[1].toString(), this.DownLevelArrow.spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red"));
                    else {
                        var o = this._data.ActivityId && this._data.Type == s.ActivityType.HeroPK ? this._data.Data.IntParams[0] : this._data.Data.IntParams[1];
                        t ? this.UpLabel.string = "+" + o : this.DownLabel.string = "-" + o
                    }
                    if (!this._data.ActivityId) {
                        var r = 0,
                            i = "grade_" + r;
                        switch (this.RankImage.node.scale = .2, this._data.Type) {
                            case s.GameModuleType.CrossZoneRank:
                                r = h.default.GetGradeByScore(this._data.Data.IntParams[0]).Id;
                                break;
                            case s.GameModuleType.ContinuousFight:
                                i = "badge_" + (r = f.default.GetGradeByScore(this._data.Data.IntParams[0]).Id), this.RankImage.node.scale = .5;
                                break;
                            case s.GameModuleType.GodLandDuel:
                                r = m.default.GetStageConfig(this._data.Data.IntParams[0]).Id
                        }
                        this.RankImage.spriteFrame = this._data.ImagesPrefab.getSpriteFrame(i)
                    }
                }, t.prototype.OnReplayButtonClick = function() {
                    var e = this;
                    if (this._data.Type == s.GameModuleType.ContinuousFight && !this.CheckReportIsInTime()) return y.UIUtlity.ShowFloatingHint("error_hint_content_code_1107".ToUILocale());
                    var t = new a.Req_Player_GetCommonReport;
                    t.Id = this._data.Data.Report, c.RpcComponent.Instance.Call(t, function(t) {
                        if (e._data.ActivityId) switch (e._data.Type) {
                            case s.ActivityType.HeroPK:
                                g.default.BattleInfo = e._data.Data, g.default.BattleReports = t.Reports, g.default.StartBattle(null, null, null, !0);
                                break;
                            case s.ActivityType.Breakou:
                                var n = c.DataCenter.Instance.ActivityConfigs[e._data.ActivityId],
                                    o = new a.Req_Player_GetCommonReport;
                                o.Id = e._data.Data.Report, c.RpcComponent.Instance.Call(o, function(t) {
                                    var o = {};
                                    o.ActivityConfig = n, o.Type = C.BreakOutMatchChallengeType.Report, o.ReportInfo = e._data.Data, o.Reports = t.Reports, l.UIManager.Instance.ShowUIPanel(_.PanelConfig.BreakOutMatchChallengePanel.Path, o)
                                })
                        } else switch (e._data.Type) {
                            case s.GameModuleType.CrossZoneRank:
                                h.default.BattleInfo = e._data.Data, h.default.BattleReports = t.Reports, h.default.StartBattle(!0);
                                break;
                            case s.GameModuleType.ContinuousFight:
                                f.default.BattleInfo = e._data.Data, f.default.BattleReports = t.Reports, f.default.StartBattle(!0);
                                break;
                            case s.GameModuleType.GodLandDuel:
                                I.default.BattleInfo = e._data.Data, I.default.BattleReports = t.Reports, I.default.StartBattle(!0)
                        }
                    })
                }, t.prototype.CheckReportIsInTime = function() {
                    return c.RpcComponent.Instance.ServerTime - this._data.Data.Ts < u.Etc.DayDuration
                }, i([S(cc.Node)], t.prototype, "WinNode", void 0), i([S(cc.Node)], t.prototype, "FailNode", void 0), i([S(cc.Label)], t.prototype, "UpLabel", void 0), i([S(cc.Label)], t.prototype, "DownLabel", void 0), i([S(cc.Node)], t.prototype, "AttackNode", void 0), i([S(cc.Node)], t.prototype, "DefendNode", void 0), i([S(cc.Sprite)], t.prototype, "RankImage", void 0), i([S(p.default)], t.prototype, "Header", void 0), i([S(cc.Button)], t.prototype, "ReplayButton", void 0), i([S(cc.Label)], t.prototype, "NameLabel", void 0), i([S(cc.Label)], t.prototype, "DateLabel", void 0), i([S(cc.Label)], t.prototype, "TimeLabel", void 0), i([S(cc.Node)], t.prototype, "UpScoreNode", void 0), i([S(cc.Node)], t.prototype, "UpLevelNode", void 0), i([S(cc.Label)], t.prototype, "CurUpLevel", void 0), i([S(cc.Label)], t.prototype, "NextUpLevel", void 0), i([S(cc.Sprite)], t.prototype, "UpLevelArrow", void 0), i([S(cc.Node)], t.prototype, "DownScoreNode", void 0), i([S(cc.Node)], t.prototype, "DownLevelNode", void 0), i([S(cc.Label)], t.prototype, "CurDownLevel", void 0), i([S(cc.Label)], t.prototype, "NextDownLevel", void 0), i([S(cc.Sprite)], t.prototype, "DownLevelArrow", void 0), i([b], t)
            }(cc.Component);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "./ActivityHeroPKPanel": "ActivityHeroPKPanel",
        "./AngelPvpComponent": "AngelPvpComponent",
        "./AngelPvpPanel": "AngelPvpPanel",
        "./BreakOutMatchChallengePanel": "BreakOutMatchChallengePanel",
        "./ContinuousFightPanel": "ContinuousFightPanel",
        "./CrossServerRankPanel": "CrossServerRankPanel"
    }],
    CrossServerRankReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1b517lu2xdChJjKb3OZ9Etc", "CrossServerRankReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../Consts/Consts"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("./CrossServerRankReportItem"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.TitleLabel = null, t.Content = null, t.EmptyNode = null, t._itemPrefab = null, t._imagesPrefab = null, t._data = null, t._customLayout = null, t._sortReports = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshRankList, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshRankList, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerRankPanel/PNG/CrossServerRank", cc.SpriteAtlas), n = this.LoadDynamicAsset("CrossServerRankPanel/SubItems/CrossServerRankReportItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._imagesPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._customLayout = this.Content.getComponent(p.default)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0], this._type = t[1], t[2] && (this._activityId = t[2])
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this._activityId && this._type == l.ActivityType.Breakou ? (t = this, [4, this.LoadDynamicAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas)]) : [3, 2];
                                case 1:
                                    t._globalChampionAtlas = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetInfo(), this.SetListView()
                }, t.prototype.SetInfo = function() {
                    this.TitleLabel.string = "allianceWar_report".ToUILocale(), this.EmptyNode.string = "allianceWar_no_report".ToUILocale(), this.EmptyNode.node.active = !this._data || !this._data.Data || !this._data.Data.length, this.Content.active = this._data && this._data.Data && this._data.Data.length > 0
                }, t.prototype.SetListView = function() {
                    this._customLayout.Init(this._itemPrefab), this.SortReports(), this._customLayout.RenderLayOut(this._data.Data.length)
                }, t.prototype.SortReports = function() {
                    var e = this;
                    this._sortReports = [], this._data.Data.forEach(function(t) {
                        e._sortReports.push(t)
                    }), this._sortReports.sort(function(e, t) {
                        return t.Ts - e.Ts
                    })
                }, t.prototype.OnRefreshRankList = function(e, t) {
                    var n = this;
                    this._customLayout == t && e.forEach(function(e, t) {
                        var o = e.getComponent(u.default);
                        if (n._sortReports.length > 0) {
                            var r = {};
                            r.Data = n._sortReports[t], r.ImagesPrefab = n._imagesPrefab, r.ActivityId = n._activityId, r.Type = n._type, r.GlobalChampionAtlas = n._globalChampionAtlas, o.InitUI(r)
                        }
                    })
                }, i([y(cc.Label)], t.prototype, "TitleLabel", void 0), i([y(cc.Node)], t.prototype, "Content", void 0), i([y(cc.Label)], t.prototype, "EmptyNode", void 0), i([f], t)
            }(c.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/CustomLayout": "CustomLayout",
        "./CrossServerRankReportItem": "CrossServerRankReportItem"
    }],
    CrossServerRankRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b4642JBWA1EAZVCjFoC7Cvp", "CrossServerRankRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../Consts/Consts"),
            l = e("../Components/ItemComponent"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("./CrossServerRankPanel"),
            d = e("./StrongholdWarMainPanel"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ScoreLabel = null, t.GradeImage = null, t.RewardNode = null, t._itemPrefab = null, t._itemNodes = [], t._data = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function(e, t, n) {
                    this._itemPrefab = e, this._data = t, this._rankTypeId = n, this.SetInfo(), this.SetRewardNodes()
                }, t.prototype.SetInfo = function() {
                    var e;
                    switch (this._rankTypeId) {
                        case s.RankTypeId.CrossZoneRank:
                            e = p.default.CrossServerRankAtlas.getSpriteFrame("grade_" + this._data.Id);
                            break;
                        case s.RankTypeId.WarSeasonScore:
                            this.GradeImage.node.width = 150, this.GradeImage.node.height = 150, e = d.default.StrongholdWarAtlas.getSpriteFrame("RankTag_" + this._data.Id)
                    }
                    this.ScoreLabel.string = this._data.Score.toString(), this.GradeImage.spriteFrame = e, this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetRewardNodes = function() {
                    var e = this;
                    this._data.Rewards.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.RewardNode, e._itemNodes[n] = o
                        }
                        e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(l.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        }, l.ItemComponentType.ItemCommon)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && u.UIUtlity.ShowItemTip(t.getComponent(l.ItemComponent).ItemId, t)
                }, i([y(cc.Label)], t.prototype, "ScoreLabel", void 0), i([y(cc.Sprite)], t.prototype, "GradeImage", void 0), i([y(cc.Node)], t.prototype, "RewardNode", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerRankPanel": "CrossServerRankPanel",
        "./StrongholdWarMainPanel": "StrongholdWarMainPanel"
    }],
    CrossServerRankRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c2778oN1VZHi7xDPq2eSCeo", "CrossServerRankRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../Components/Components"),
            m = e("./CrossServerRankPanel"),
            I = e("./CrossServerRankRewardItem"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("./StrongholdWarMainPanel"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.TitleLabel = null, t.DescLabel = null, t.MyRankDescLabel = null, t.NoRankLabel = null, t.CustomLayout = null, t.MyRankNode = null, t.GradeImage = null, t.ScoreLabel = null, t.MyRewardNode = null, t._itemPrefab = null, t._rewardPrefab = null, t._isLayoutInit = !1, t._sortConfigs = [], t._score = 0, t._rewardNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerRankPanel/SubItems/CrossServerRankRewardItem", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._rewardPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "crossServerRank_reward".ToUILocale(), this.DescLabel.string = "crossServerRank_settlement".ToUILocale(), this.MyRankDescLabel.string = "crossServerRank_myReward".ToUILocale(), this.NoRankLabel.string = "crossServerRank_empty_grade".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._score = t[0], this._rankTypeId = t[1], this.SetConfigData()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent()
                }, t.prototype.SetConfigData = function() {
                    var e = this;
                    switch (this._sortConfigs = [], this._rankTypeId) {
                        case _.RankTypeId.WarSeasonScore:
                            g.ConfigDataComponent.Instance.GetArrayConfig(c.WarStage_Config).forEach(function(t) {
                                var n = {};
                                n.Id = t.Id, n.Score = t.Score, n.Rewards = t.Rewards, e._sortConfigs.push(n), e._score >= t.Score && (e._currentScoreReward = n)
                            }), this._sortConfigs.sort(function(e, t) {
                                return e.Id - t.Id
                            });
                            break;
                        case _.RankTypeId.CrossZoneRank:
                            g.ConfigDataComponent.Instance.GetArrayConfig(c.CrossZoneRankStage_Config).forEach(function(t) {
                                var n = {};
                                n.Id = t.Id, n.Score = t.Score, n.Rewards = t.Rewards, e._sortConfigs.push(n), e._score >= t.Score && (e._currentScoreReward = n)
                            }), this._sortConfigs.sort(function(e, t) {
                                return t.Id - e.Id
                            })
                    }
                    this._currentScoreReward || (this._currentScoreReward = this._sortConfigs[this._sortConfigs.length - 1])
                }, t.prototype.SetUIContent = function() {
                    this.SetInfo(), this.InitCustomLayout()
                }, t.prototype.SetInfo = function() {
                    var e = this;
                    if (this.DescLabel.node.active = this._rankTypeId == _.RankTypeId.CrossZoneRank, this._currentScoreReward) {
                        switch (this.NoRankLabel.node.active = !1, this.MyRankNode.active = !0, this._rankTypeId) {
                            case _.RankTypeId.CrossZoneRank:
                                this.GradeImage.spriteFrame = m.default.CrossServerRankAtlas.getSpriteFrame("grade_" + this._currentScoreReward.Id);
                                break;
                            case _.RankTypeId.WarSeasonScore:
                                this.GradeImage.node.width = 150, this.GradeImage.node.height = 150, this.GradeImage.spriteFrame = C.default.StrongholdWarAtlas.getSpriteFrame("RankTag_" + this._currentScoreReward.Id)
                        }
                        this.ScoreLabel.string = this._score.toString(), this._currentScoreReward.Rewards.forEach(function(t, n) {
                            if (!e._rewardNodes[n]) {
                                var o = cc.instantiate(e._itemPrefab);
                                o.parent = e.MyRewardNode, e._rewardNodes[n] = o
                            }
                            e._rewardNodes[n].getComponent(y.ItemComponent).Init({
                                ItemId: t.Items[0],
                                Count: t.Items[1]
                            }, y.ItemComponentType.ItemCommon)
                        })
                    } else this.NoRankLabel.node.active = !0, this.MyRankNode.active = !1
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._rewardPrefab)), this.CustomLayout.RenderLayOut(this._sortConfigs.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = e.getComponent(I.default),
                            r = n._sortConfigs[t];
                        o.InitUI(n._itemPrefab, r, n._rankTypeId)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.MyRewardNode.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                }, i([S(cc.Label)], t.prototype, "TitleLabel", void 0), i([S(cc.Label)], t.prototype, "DescLabel", void 0), i([S(cc.Label)], t.prototype, "MyRankDescLabel", void 0), i([S(cc.Label)], t.prototype, "NoRankLabel", void 0), i([S(d.default)], t.prototype, "CustomLayout", void 0), i([S(cc.Node)], t.prototype, "MyRankNode", void 0), i([S(cc.Sprite)], t.prototype, "GradeImage", void 0), i([S(cc.Label)], t.prototype, "ScoreLabel", void 0), i([S(cc.Node)], t.prototype, "MyRewardNode", void 0), i([b], t)
            }(u.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./CrossServerRankPanel": "CrossServerRankPanel",
        "./CrossServerRankRewardItem": "CrossServerRankRewardItem",
        "./StrongholdWarMainPanel": "StrongholdWarMainPanel"
    }],
    CrossServerRankSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "98eeaSEk8ZGp4XpHdht52M7", "CrossServerRankSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/Components"),
            g = e("../../Components/DataCenter"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/HeadComponent"),
            _ = e("../Components/ItemComponent"),
            C = e("../Components/SeniorArenaSettlementItem"),
            v = e("../Components/SettlementBaseComponent"),
            b = e("./CrossServerRankPanel"),
            S = e("../../Channel/ChannelManager"),
            w = e("../../Auxiliary/DataUtlity"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ReportPartTitleLabel = null, t.MyHeaderNode = null, t.MyGrade = null, t.MyNameLabel = null, t.MyCurrentScoreLabel = null, t.MyScoreChangedLabel = null, t.MyScoreChangedTag = null, t.VSResultLacel = null, t.OpponentGrade = null, t.OpponentNameLabel = null, t.OpponentCurrentScoreLabel = null, t.OpponentScoreChangedLabel = null, t.OpponentHeaderNode = null, t.OpponentScoreChangedTag = null, t.BattleReportsContainer = null, t.RewardsPartTitleLabel = null, t.RewardsContainer = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t.ReturnToFunctionButton = null, t.ReturnToFunctionButtonLabel = null, t._loadedAssets = [], t._TargetInfo = null, t._MyScore = 0, t._MyScoreChange = 0, t._TargetScoreChange = 0, t._Reports = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ReportPartTitleLabel.string = "SeniorArenaSettlement_ReportPartTitle".ToUILocale(), this.RewardsPartTitleLabel.string = "reward".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.ReturnToFunctionButtonLabel.string = "crossServerRank_return".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this), this.ReturnToFunctionButton.node.on("click", this.OnReturnToFunctionButtonClicked, this), this.LoadRewardData()
                }, t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsContainer.children.indexOf(t) && m.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.SetUI = function(t) {
                    var n = t.SettleParams[0];
                    if (n.TargetInfo) {
                        var o = n;
                        this._TargetInfo = o.TargetInfo, this._MyScore = o.Params[0], this._MyScoreChange = o.Params[1], this._TargetScoreChange = o.Params[2], this._Reports = o.Reports
                    } else {
                        var r = n,
                            i = g.DataCenter.Instance.Uid == r.AttackerInfo.Uid;
                        this._TargetInfo = i ? r.DefenderInfo : r.AttackerInfo, this._MyScore = r.IntParams[0], this._MyScoreChange = r.IntParams[1], this._TargetScoreChange = r.IntParams[2], this._Reports = t.SettleParams[1]
                    }
                    e.prototype.SetUI.call(this, t, null, this.SetCallBack.bind(this)), l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_CROSSSERVER_RANK_UPDATE), this.SetBtnState(), this.SetPlayerInfoView(), this.SetGradeInfo(), this.SetListView(), this.SetRewardsView()
                }, t.prototype.SetCallBack = function() {
                    p.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattleStatisticsPanel.Path, this._Reports)
                }, t.prototype.SetBtnState = function() {
                    var e = p.UIManager.Instance.GetUIPanel(f.PanelConfig.CrossServerRankPanel.Path);
                    this.ReturnToFunctionButton.node.active = null == e
                }, t.prototype.LoadRewardData = function() {
                    var e = y.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, d.LevelParamType.CrossZoneRankChallengeReward);
                    this._rewardData = e.Data2
                }, t.prototype.SetGradeInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset("CrossServerRankPanel/PNG/CrossServerRank", cc.SpriteAtlas)];
                                case 1:
                                    return e = o.sent(), this.isValid || p.AssetsManager.Instance.UnloadAsset(e), this._loadedAssets.push(e), t = b.default.GetGradeByScore(this._MyScore), n = b.default.GetGradeByScore(this._TargetInfo.Value1), this.MyGrade.spriteFrame = e.getSpriteFrame("grade_" + t.Id), this.OpponentGrade.spriteFrame = e.getSpriteFrame("grade_" + n.Id), [2]
                            }
                        })
                    })
                }, t.prototype.SetPlayerInfoView = function() {
                    this.MyNameLabel.string = g.DataCenter.Instance.GetStringData(d.UserDataKey.RoleName), this.MyCurrentScoreLabel.string = this._MyScore.toString(), this.OpponentNameLabel.string = this._TargetInfo.Name, this.OpponentCurrentScoreLabel.string = this._TargetInfo.Value1.toString();
                    var e = this.GetVSResult()[0] > this.GetVSResult()[1];
                    e ? (this.MyScoreChangedLabel.string = "+" + this._MyScoreChange.toString(), this.MyScoreChangedLabel.node.color = cc.Color.GREEN, this.MyScoreChangedTag.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green")) : (this.MyScoreChangedLabel.string = "-" + Math.abs(this._MyScoreChange), this.MyScoreChangedLabel.node.color = cc.Color.RED, this.MyScoreChangedTag.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red")), e ? (this.OpponentScoreChangedLabel.string = "-" + Math.abs(this._TargetScoreChange), this.OpponentScoreChangedLabel.node.color = cc.Color.RED, this.OpponentScoreChangedTag.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red")) : (this.OpponentScoreChangedLabel.node.color = cc.Color.GREEN, this.OpponentScoreChangedTag.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green"), this.OpponentScoreChangedLabel.string = "+" + this._TargetScoreChange.toString()), this.VSResultLacel.string = this.GetVSResult()[0] + ":" + this.GetVSResult()[1], this.SetHeaderView()
                }, t.prototype.SetHeaderView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return [4, p.AssetsManager.Instance.LoadAsset(f.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    return e = a.sent(), this.isValid ? (this._loadedAssets.push(e), t = cc.instantiate(e), (n = t.getComponent(I.default)).SetHeadIcon(g.DataCenter.Instance.GetIntData(d.UserDataKey.HeadIcon)), n.SetHeadFrame(g.DataCenter.Instance.GetIntData(d.UserDataKey.HeadFrame)), n.LevelNode.active = !1, t.parent = this.MyHeaderNode, n.SetLevel(g.DataCenter.Instance.GetIntData(d.UserDataKey.PlayerLevel)), (o = g.DataCenter.Instance.GetStringData(d.UserDataKey.Country)) || (o = S.default.Instance.Localization_Country), o = 0 == g.DataCenter.Instance.GetIntData(d.UserDataKey.CountryShowState) ? o : "", n.SetCountry(o), r = cc.instantiate(e), (i = r.getComponent(I.default)).SetHeadIcon(this._TargetInfo.HeadIcon), i.SetHeadFrame(this._TargetInfo.HeadFrame), i.LevelNode.active = !1, r.parent = this.OpponentHeaderNode, i.SetLevel(this._TargetInfo.Level), i.SetCountry(this._TargetInfo.Country), [2]) : (p.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.GetVSResult = function() {
                    for (var e = 0, t = 0, n = 0; n < this._Reports.length; n++) {
                        var o = this._Reports[n];
                        w.default.CheckIsSelfBattleWin(o, !0) ? e++ : t++
                    }
                    return [e, t]
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, p.AssetsManager.Instance.LoadAsset("Arena/SeniorArenaPrivate/SeniorArenaSettlementItem", cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), t = 0; t < this._Reports.length; t++)(n = cc.instantiate(e)).getComponent(C.default).Init(this._Reports[t], t, !0), this.BattleReportsContainer.addChild(n);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetRewardsView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return [4, p.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), t = 0; t < this._rewardData.length; t++) n = this._rewardData[t].Items[0], o = this._rewardData[t].Items[1], (r = cc.instantiate(e).getComponent(_.ItemComponent)).Init({
                                        ItemId: n,
                                        Count: o
                                    }, _.ItemComponentType.ItemCommon), r.node.name = n.toString(), r.node.parent = this.RewardsContainer;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnConfirmButtonClicked = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnReturnToFunctionButtonClicked = function() {
                    p.UIManager.Instance.BackUIPanel();
                    var e = new u.Req_Map_CrossZoneRankEnter;
                    y.RpcComponent.Instance.Call(e, function(e) {
                        p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrossServerRankPanel.Path, e)
                    })
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets && (this._loadedAssets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssets = [])
                }, i([T(cc.Label)], t.prototype, "ReportPartTitleLabel", void 0), i([T(cc.Node)], t.prototype, "MyHeaderNode", void 0), i([T(cc.Sprite)], t.prototype, "MyGrade", void 0), i([T(cc.Label)], t.prototype, "MyNameLabel", void 0), i([T(cc.Label)], t.prototype, "MyCurrentScoreLabel", void 0), i([T(cc.Label)], t.prototype, "MyScoreChangedLabel", void 0), i([T(cc.Sprite)], t.prototype, "MyScoreChangedTag", void 0), i([T(cc.Label)], t.prototype, "VSResultLacel", void 0), i([T(cc.Sprite)], t.prototype, "OpponentGrade", void 0), i([T(cc.Label)], t.prototype, "OpponentNameLabel", void 0), i([T(cc.Label)], t.prototype, "OpponentCurrentScoreLabel", void 0), i([T(cc.Label)], t.prototype, "OpponentScoreChangedLabel", void 0), i([T(cc.Node)], t.prototype, "OpponentHeaderNode", void 0), i([T(cc.Sprite)], t.prototype, "OpponentScoreChangedTag", void 0), i([T(cc.Node)], t.prototype, "BattleReportsContainer", void 0), i([T(cc.Label)], t.prototype, "RewardsPartTitleLabel", void 0), i([T(cc.Node)], t.prototype, "RewardsContainer", void 0), i([T(cc.Button)], t.prototype, "ConfirmButton", void 0), i([T(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([T(cc.Button)], t.prototype, "ReturnToFunctionButton", void 0), i([T(cc.Label)], t.prototype, "ReturnToFunctionButtonLabel", void 0), i([A], t)
            }(v.default);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SeniorArenaSettlementItem": "SeniorArenaSettlementItem",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent",
        "./CrossServerRankPanel": "CrossServerRankPanel"
    }],
    CrossServerRankTaskRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "41936eTx8dOnpxHRBUA6K0Y", "CrossServerRankTaskRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../Components/ItemComponent"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Components/Components"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TaskName = null, t.TaskLimit = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.GoButton = null, t.GoLabel = null, t.HasReceivedNode = null, t.HasReceiveLabel = null, t.RewardNode = null, t._itemPrefab = null, t._itemNodes = [], t._config = null, t._configs = [], t._model = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.ReceiveButton.node.on("click", this.OnReceiveBtnClick, this), this.GoButton.node.on("click", this.OnBtnGoClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.ReceiveButton.node.off("click", this.OnReceiveBtnClick, this), this.GoButton.node.off("click", this.OnBtnGoClick, this)
                }, t.prototype.InitUI = function(e, t, n) {
                    this._itemPrefab = e, this._config = t, this._configs = n, this._model = l.DataCenter.Instance.GetDataById(s.UserTask_Model, t.Id), this.SetInfo(), this.SetRewardNodes()
                }, t.prototype.SetInfo = function() {
                    this.ReceiveLabel.string = "receive".ToUILocale(), this.GoLabel.string = "task_goto".ToUILocale(), this.HasReceiveLabel.string = "already_receive".ToUILocale(), this.TaskName.string = "<outline color=#202434 width=3>" + this._config.Id.ToTaskDesc() + "</outline>";
                    var e = 0;
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this._model ? (this.ReceiveButton.node.active = !this._model.IsCompleted && this._model.Progress >= this._config.TotalCount, this.GoButton.node.active = !this._model.IsCompleted && this._model.Progress < this._config.TotalCount, this.HasReceivedNode.active = this._model.IsCompleted, e = this._model.Progress) : (this.ReceiveButton.node.active = !1, this.GoButton.node.active = !0, this.HasReceivedNode.active = !1);
                    var t = e >= this._config.TotalCount ? "#00ff00" : "#ffffff";
                    this.TaskLimit.string = "<color={0}>{1}/{2}</c>".Fmt(t, e, this._config.TotalCount)
                }, t.prototype.SetRewardNodes = function() {
                    var e = this;
                    this._config.Rewards.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.RewardNode, o.y = -20, e._itemNodes[n] = o
                        }
                        e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(c.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        }, c.ItemComponentType.ItemCommon), e._model && e._itemNodes[n].getComponent(c.ItemComponent).SetSelectFlagState(e._model.IsCompleted)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t)
                }, t.prototype.OnReceiveBtnClick = function() {
                    this.RequestDrawTaskReward()
                }, t.prototype.OnBtnGoClick = function() {
                    this._config.GetWayId ? d.default.ShowPanelByGetWayId(this._config.GetWayId) : a.Game.EventDispatcher.Emit(u.EventKeys.EVENT_TASK_PANEL_CLOSE)
                }, t.prototype.RequestDrawTaskReward = function() {
                    var e = this.CheckAllTasks();
                    if (e.length > 0) {
                        var t = new s.Req_Task_DrawReward;
                        t.TaskIds = e, h.RpcComponent.Instance.Call(t, this.ResponseDrawTaskRewardSuccess.bind(this))
                    }
                }, t.prototype.CheckAllTasks = function() {
                    var e = [];
                    return this._configs.forEach(function(t) {
                        var n = l.DataCenter.Instance.GetDataById(s.UserTask_Model, t.Id);
                        n && !n.IsCompleted && n.Progress >= t.TotalCount && e.push(t.Id)
                    }), e
                }, t.prototype.ResponseDrawTaskRewardSuccess = function(e) {
                    p.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, i([g(cc.RichText)], t.prototype, "TaskName", void 0), i([g(cc.RichText)], t.prototype, "TaskLimit", void 0), i([g(cc.Button)], t.prototype, "ReceiveButton", void 0), i([g(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([g(cc.Button)], t.prototype, "GoButton", void 0), i([g(cc.Label)], t.prototype, "GoLabel", void 0), i([g(cc.Node)], t.prototype, "HasReceivedNode", void 0), i([g(cc.Label)], t.prototype, "HasReceiveLabel", void 0), i([g(cc.Node)], t.prototype, "RewardNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CrossServerRankTaskRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a9b82w/q2ZMFKHI/FPyJZSL", "CrossServerRankTaskRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/CustomToggle"),
            y = e("../../../Consts/Consts"),
            g = e("./CrossServerRankTaskRewardItem"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../Components/CustomLayout"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/GameModuleGuideManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new h.UIPanelType(h.UINodeType.Fixed), t.TitleLabel = null, t.CustomLayout = null, t.CustomToggles = [], t.Hint = null, t._rewardPrefab = null, t._itemPrefab = null, t._itemNodes = [], t._type = 0, t._isLayoutInit = !1, t._taskMap = new Map, t._isShowGuide = !1, t._guideStepIndex = 0, t._guideGroupId = 0, t._moduleGuideGroupIds = [10003], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_TASK_PANEL_CLOSE, this.ClosePanel, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_TASK_PANEL_CLOSE, this.ClosePanel, this), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerRankPanel/SubItems/CrossServerRankTaskRewardItem", cc.Prefab), n = this.LoadDynamicAsset(m.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._rewardPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this);
                    var n = ["crossServerRank_daily_reward".ToUILocale(), "crossServerRank_weekly_reward".ToUILocale()];
                    this.CustomToggles.forEach(function(e, o) {
                        e.Init(n[o]), e.node.on("toggle", t.OnToggleSwitch, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._type = t[0], this._moduleType = t[1]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent(), this.ShowGameModuleGuide()
                }, t.prototype.SetUIContent = function() {
                    this.SetTaskDatas(), this.SortTaskConfigs(), this.SetInfo(), this.InitCustomLayout(), this.BindReddot()
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._rewardPrefab));
                    var e = this._taskMap.get(this._type);
                    this.CustomLayout.RenderLayOut(e.length)
                }, t.prototype.BindReddot = function() {
                    this._moduleType == p.GameModuleType.CrossZoneRank ? (C.RedDotManager.Instance.Bind(this.CustomToggles[0].node, C.RedDotManager.Instance.RedDot.CrossServerRankDayilyNode), C.RedDotManager.Instance.Bind(this.CustomToggles[1].node, C.RedDotManager.Instance.RedDot.CrossServerRankWeekilyNode)) : this._moduleType == p.GameModuleType.ContinuousFight ? (C.RedDotManager.Instance.Bind(this.CustomToggles[0].node, C.RedDotManager.Instance.RedDot.ContinuousFightDailyToggle), C.RedDotManager.Instance.Bind(this.CustomToggles[1].node, C.RedDotManager.Instance.RedDot.ContinuousFightWeeklyToggle)) : this._moduleType == p.GameModuleType.AngelPvp && (C.RedDotManager.Instance.Bind(this.CustomToggles[0].node, C.RedDotManager.Instance.RedDot.AngelPvpDailyToggle), C.RedDotManager.Instance.Bind(this.CustomToggles[1].node, C.RedDotManager.Instance.RedDot.AngelPvpWeeklyToggle))
                }, t.prototype.SetTaskDatas = function() {
                    var e = this,
                        t = this._taskMap.get(this._type);
                    if (!t || 0 == t.length) {
                        var n = [];
                        d.ConfigDataComponent.Instance.GetArrayConfig(u.TaskBase_Config).forEach(function(t) {
                            t.Type == e._type && n.push(t)
                        }), this._taskMap.set(this._type, n)
                    }
                }, t.prototype.SortTaskConfigs = function() {
                    this._taskMap.forEach(function(e) {
                        e.sort(function(e, t) {
                            var n = d.DataCenter.Instance.GetDataById(l.UserTask_Model, e.Id),
                                o = d.DataCenter.Instance.GetDataById(l.UserTask_Model, t.Id);
                            return !n.IsCompleted && o.IsCompleted ? -1 : n.IsCompleted && !o.IsCompleted ? 1 : n.Progress < e.TotalCount && o.Progress >= t.TotalCount ? 1 : n.Progress >= e.TotalCount && o.Progress < t.TotalCount ? -1 : e.SortId - t.SortId
                        })
                    })
                }, t.prototype.SetInfo = function() {
                    var e = this,
                        t = ["crossServerRank_daily_reward".ToUILocale(), "crossServerRank_weekly_reward".ToUILocale()];
                    switch (this._type) {
                        case y.TaskType.CrossZoneRankDaily:
                            this.TitleLabel.string = t[0];
                            break;
                        case y.TaskType.CrossZoneRankWeekly:
                            this.TitleLabel.string = t[1];
                            break;
                        case y.TaskType.CrossZoneContinueWarRankDaily:
                            this.TitleLabel.string = t[0];
                            break;
                        case y.TaskType.CrossZoneContinueWarRankWeekly:
                            this.TitleLabel.string = t[1];
                            break;
                        case y.TaskType.GodLandDuelDaily:
                            this.TitleLabel.string = t[0];
                            break;
                        case y.TaskType.GodLandDuelWeekly:
                            this.TitleLabel.string = t[1]
                    }
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this.CustomToggles.forEach(function(t, n) {
                        e._moduleType == p.GameModuleType.CrossZoneRank ? t.isChecked = e._type - y.TaskType.CrossZoneRankDaily == n : e._moduleType == p.GameModuleType.ContinuousFight ? t.isChecked = e._type - y.TaskType.CrossZoneContinueWarRankDaily == n : e._moduleType == p.GameModuleType.AngelPvp && (t.isChecked = e._type - y.TaskType.GodLandDuelDaily == n)
                    })
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (t == this.CustomLayout) {
                        var o = this._taskMap.get(this._type);
                        e.forEach(function(e, t) {
                            var r, i = e.getComponent(g.default);
                            r = o[t], i.InitUI(n._itemPrefab, r, o)
                        })
                    }
                }, t.prototype.OnToggleSwitch = function(e) {
                    var t = Number.parseInt(e.name);
                    this._moduleType == p.GameModuleType.CrossZoneRank ? this._type = 0 == t ? y.TaskType.CrossZoneRankDaily : y.TaskType.CrossZoneRankWeekly : this._moduleType == p.GameModuleType.ContinuousFight ? this._type = 0 == t ? y.TaskType.CrossZoneContinueWarRankDaily : y.TaskType.CrossZoneContinueWarRankWeekly : this._moduleType == p.GameModuleType.AngelPvp && (this._type = 0 == t ? y.TaskType.GodLandDuelDaily : y.TaskType.GodLandDuelWeekly), this.SetUIContent()
                }, t.prototype.ClosePanel = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.ShowGameModuleGuide = function() {
                    this._isShowGuide || (this._isShowGuide = !0, this.ShowGameGuid())
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = v.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = d.ConfigDataComponent.Instance.GetConfigById(u.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 7:
                                            v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 8:
                                            v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.Hint);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([w(cc.Label)], t.prototype, "TitleLabel", void 0), i([w(_.default)], t.prototype, "CustomLayout", void 0), i([w(f.default)], t.prototype, "CustomToggles", void 0), i([w(cc.Node)], t.prototype, "Hint", void 0), i([S], t)
            }(h.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "./CrossServerRankTaskRewardItem": "CrossServerRankTaskRewardItem"
    }],
    CrossServerRankTeamEditItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e7512zF0DFJ/rKtJ21UN5vr", "CrossServerRankTeamEditItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../Components/ItemComponent"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("./CrossServerRankEditTeamPanel"),
            m = e("./CrossServerRankPanel"),
            I = e("./ContinuousFightPanel"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.IndexLabel = null, t.LockLabel = null, t.PowerLabel = null, t.HeroNode = null, t.EditButton = null, t.EditLabel = null, t.Reddot = null, t._heroNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.EditButton.node.on("click", this.OnEditButtonClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.EditButton.node.off("click", this.OnEditButtonClick, this)
                }, t.prototype.InitUI = function(e) {
                    this._data = e, this.SetInfo(), this.SetHeroNodes(), this.SetReddot()
                }, t.prototype.SetInfo = function() {
                    switch (this.EditLabel.string = "crossServerRank_edit".ToUILocale(), this.LockLabel.node.active = !1, this._data.Type) {
                        case g.CrossServerRankEditTeamType.CrossServerRank:
                            this.IndexLabel.string = "formation_index".ToUILocale().Fmt(this._data.Index + 1), (t = m.default.GetThreeTeamConfig()) && (this.LockLabel.node.active = this._data.Index > 0 && this._data.IsShowLockLabel, this.LockLabel.node.color = new cc.Color(255, 75, 75), this.LockLabel.node.anchorX = 0, this.LockLabel.node.x = 140, this.LockLabel.string = "crossServerRank_unLock_team".ToUILocale().Fmt(t.Id.ToCrossZoneRankStageName()));
                            break;
                        case g.CrossServerRankEditTeamType.RankMatch:
                            if (this.IndexLabel.string = "formation_index".ToUILocale().Fmt(this._data.Index + 1), this._data.IsShowLockLabel) {
                                this.LockLabel.node.active = this._data.Index > 0, this.LockLabel.node.color = new cc.Color(255, 75, 75), this.LockLabel.node.anchorX = 0, this.LockLabel.node.x = 140;
                                var e = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("RankMatchChallengeMoreTeamRank");
                                this.LockLabel.string = "RankMatch_unLock_team".ToUILocale().Fmt(e.ToRankMatchName())
                            } else this.LockLabel.node.active = !1;
                            break;
                        case g.CrossServerRankEditTeamType.BreakOutMatch:
                            this.IndexLabel.string = this._data.LabelParam[0] + "V" + this._data.LabelParam[0], this.LockLabel.node.active = !0, this.LockLabel.node.color = new cc.Color(255, 255, 255), this.LockLabel.node.anchorX = 1, this.LockLabel.node.x = 418, this.LockLabel.string = "breakOutMatch_get_score".ToUILocale().Fmt(this._data.LabelParam[1]);
                            break;
                        case g.CrossServerRankEditTeamType.ContinuousFight:
                            var t;
                            this.IndexLabel.string = "formation_index".ToUILocale().Fmt(this._data.Index + 1), this._data.IsShowLockLabel ? (this.LockLabel.node.active = !0, this.LockLabel.node.color = new cc.Color(255, 75, 75), this.LockLabel.node.anchorX = 0, this.LockLabel.node.x = 140, (t = this.GetContinuousWarUnLockConfig()) && (this.LockLabel.string = "continuousFight_unlock_team".ToUILocale().Fmt(t.Id.ToContinueWarRankStageName()))) : this.LockLabel.node.active = !1
                    }
                    var n = [];
                    this._data.Heros.forEach(function(e) {
                        e && n.push(e.Sid)
                    });
                    var o = f.default.Instance.GetTeamPowerByHeroIds(n);
                    this.PowerLabel.string = o.toString()
                }, t.prototype.SetHeroNodes = function() {
                    for (var e = 0; e < 5; e++) {
                        if (!this._heroNodes[e]) {
                            var t = cc.instantiate(this._data.ItemPrefab);
                            t.parent = this.HeroNode, this._heroNodes[e] = t
                        }
                        var n = this._heroNodes[e].getComponent(u.ItemComponent);
                        this._data.Heros[e] ? (n.Init(this._data.Heros[e], u.ItemComponentType.HeroInfo), n.node.name = this._data.Heros[e].Sid.toString()) : (n.SetHeroSimpleState(), n.SetCustomIcon(d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180), n.node.name = "-1")
                    }
                }, t.prototype.OnEditButtonClick = function() {
                    switch (this._data.Type) {
                        case g.CrossServerRankEditTeamType.RankMatch:
                            y.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), [27, 27, 27], {
                                IsSaveFormationState: !0,
                                TeamIndex: this._data.Index,
                                CanSwitchFormation: !0
                            });
                            break;
                        case g.CrossServerRankEditTeamType.ContinuousFight:
                            y.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), [8, 8, 8, 8, 8], {
                                IsSaveFormationState: !0,
                                TeamIndex: this._data.Index,
                                TeamNum: 5
                            });
                            break;
                        default:
                            y.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), [5, 5, 5], {
                                IsSaveFormationState: !0,
                                TeamIndex: this._data.Index,
                                TeamNum: 3
                            })
                    }
                }, t.prototype.OnSetFormation = function(e) {
                    var t = this,
                        n = new s.Req_Hero_SetFormation;
                    n.Formations = e, c.RpcComponent.Instance.Call(n, function() {
                        d.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale()), t._data.Instance.SetUIContent()
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.HeroNode.children.indexOf(t) && e > 0 && a.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroDetailPanel.Path, e)
                }, t.prototype.GetContinuousWarUnLockConfig = function() {
                    for (var e = null, t = c.ConfigDataComponent.Instance.GetArrayConfig(l.CrossZoneContinueWarRankStage_Config), n = 0; n < t.length; n++)
                        if (this._data.Index + 1 == t[n].FormationNum) {
                            e = t[n];
                            break
                        } return e
                }, t.prototype.SetReddot = function() {
                    if (this.Reddot.active = !1, this._data.Type == g.CrossServerRankEditTeamType.ContinuousFight && !this._data.IsShowLockLabel) {
                        var e = this.GetContinuousWarUnLockConfig();
                        if (I.default.GetShowState(e.Id)) {
                            for (var t = !0, n = 0; n < this._data.Heros.length; n++) {
                                var o = this._data.Heros[n];
                                if (o && o.Sid > 0) {
                                    t = !1;
                                    break
                                }
                            }
                            this.Reddot.active = t
                        } else this.Reddot.active = !0
                    }
                }, i([v(cc.Label)], t.prototype, "IndexLabel", void 0), i([v(cc.Label)], t.prototype, "LockLabel", void 0), i([v(cc.Label)], t.prototype, "PowerLabel", void 0), i([v(cc.Node)], t.prototype, "HeroNode", void 0), i([v(cc.Button)], t.prototype, "EditButton", void 0), i([v(cc.Label)], t.prototype, "EditLabel", void 0), i([v(cc.Node)], t.prototype, "Reddot", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./ContinuousFightPanel": "ContinuousFightPanel",
        "./CrossServerRankEditTeamPanel": "CrossServerRankEditTeamPanel",
        "./CrossServerRankPanel": "CrossServerRankPanel"
    }],
    CrossServerSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eeb04nkgaZPFqYkX5q+1CKm", "CrossServerSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("../../../EZFramework/UIFrame/UIManager"),
            u = e("../../Components/DataCenter"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("./HeadComponent"),
            h = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("./ItemComponent"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../Channel/ChannelManager"),
            b = e("../../Auxiliary/DataUtlity"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LeftPlayerName = null, t.RightPlayerName = null, t.MyScore = null, t.EnemyScore = null, t.MyScoreChange = null, t.EnemyScoreChange = null, t.MyGreenArrow = null, t.MyRedArrow = null, t.EnemyGreenArrow = null, t.EnemyRedArrow = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnSure = null, t.LabelBtnReturn = null, t.LeftHeadRoot = null, t.RightHeadRoot = null, t.RewardGrid = null, t.LineTitle = null, t.DesignationLeft = null, t.DesignationRight = null, t._isInit = !1, t._TargetInfo = null, t._MyRank = 0, t._TargetRank = 0, t._MyOriginalRank = 0, t._TargetOriginalRank = 0, t._IsWin = !1, t.color_green = new cc.Color(35, 225, 35), t.color_red = new cc.Color(255, 75, 75), t._headItemPrefab = null, t._commonItemPrefab = null, t._itemArray = [], t._leftHeadItem = null, t._rightHeadItem = null, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    I.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    I.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardGrid.children.indexOf(t) && C.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t);
                    var n = t.SettleParams[0],
                        o = u.DataCenter.Instance.Uid == n.AttackerInfo.Uid;
                    this._TargetInfo = o ? n.DefenderInfo : n.AttackerInfo, this._MyRank = o ? n.AttackerInfo.Value1 : n.DefenderInfo.Value1, this._TargetRank = this._TargetInfo.Value1, this._MyOriginalRank = n.IntParams[0], this._TargetOriginalRank = n.IntParams[1], this._IsWin = !1, o && n.Result ? this._IsWin = !0 : o || n.Result || (this._IsWin = !0), this._isInit || (this._isInit = !0, this.LoadLevelParam(), this.SetStaticLocalText(), this.SetClickEvent()), this.SetPlayerInfo(), this.LoadPlayerHead(), this.LoadRewardItem(), this.SetBtnState()
                }, t.prototype.LoadLevelParam = function() {
                    var e;
                    e = this._IsWin ? g.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, p.LevelParamType.LadderRaceChallengeWinReward) : g.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, p.LevelParamType.LadderRaceChallengeLoseReward), this._rewardData = e.Data2
                }, t.prototype.SetStaticLocalText = function() {
                    this.LabelBtnSure.string = "ok".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LineTitle.string = "has_got_reward".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this)
                }, t.prototype.SetPlayerInfo = function() {
                    var e = u.DataCenter.Instance.GetStringData(p.UserDataKey.RoleName),
                        t = this._TargetInfo.Name;
                    this.LeftPlayerName.string = e, this.RightPlayerName.string = t;
                    var n = u.DataCenter.Instance.GetSimpleData(p.UserDataKey.Designation);
                    n && b.default.SetDesignationIcon(n.V, this.DesignationLeft), b.default.SetDesignationIcon(this._TargetInfo.Designation, this.DesignationRight), this.MyScore.string = this._MyRank.toString(), this.EnemyScore.string = this._TargetRank.toString();
                    var o = this._MyOriginalRank - this._MyRank;
                    this._IsWin ? (this.MyGreenArrow.active = !0, this.MyRedArrow.active = !1, this.MyScoreChange.string = "+" + o, this.MyScoreChange.node.color = this.color_green) : (this.MyGreenArrow.active = !1, this.MyRedArrow.active = !0, this.MyScoreChange.string = o.toString(), this.MyScoreChange.node.color = this.color_red);
                    var r = this._TargetOriginalRank - this._TargetRank;
                    this._IsWin ? (this.EnemyGreenArrow.active = !1, this.EnemyRedArrow.active = !0, this.EnemyScoreChange.string = r.toString(), this.EnemyScoreChange.node.color = this.color_red) : (this.EnemyGreenArrow.active = !0, this.EnemyRedArrow.active = !1, this.EnemyScoreChange.string = "+" + r, this.EnemyScoreChange.node.color = this.color_green)
                }, t.prototype.LoadPlayerHead = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != this._headItemPrefab ? [3, 2] : [4, h.AssetsManager.Instance.LoadAsset(f.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    if (e = s.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._headItemPrefab = e, s.label = 2;
                                case 2:
                                    return null == this._leftHeadItem && (this._leftHeadItem = cc.instantiate(this._headItemPrefab).getComponent(d.default), this._leftHeadItem.node.parent = this.LeftHeadRoot), null == this._rightHeadItem && (this._rightHeadItem = cc.instantiate(this._headItemPrefab).getComponent(d.default), this._rightHeadItem.node.parent = this.RightHeadRoot), t = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon), n = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame), o = u.DataCenter.Instance.GetIntData(p.UserDataKey.Title), this._leftHeadItem.SetUI(t, n, o), this._leftHeadItem.SetLevel(u.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel)), (r = u.DataCenter.Instance.GetStringData(p.UserDataKey.Country)) || (r = v.default.Instance.Localization_Country), r = 0 == u.DataCenter.Instance.GetIntData(p.UserDataKey.CountryShowState) ? r : "", this._leftHeadItem.SetCountry(r), i = this._TargetInfo.HeadIcon, a = this._TargetInfo.HeadFrame, this._rightHeadItem.SetUI(i, a), this._rightHeadItem.SetLevel(this._TargetInfo.Level), this._rightHeadItem.SetCountry(this._TargetInfo.Country), [2]
                            }
                        })
                    })
                }, t.prototype.LoadRewardItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : [4, h.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._commonItemPrefab = e, i.label = 2;
                                case 2:
                                    for (t = 0; t < this._itemArray.length; t++) this._itemArray[t].node.active = !1;
                                    for (t = 0; t < this._rewardData.length; t++) n = this._rewardData[t].Items[0], o = this._rewardData[t].Items[1], null == this._itemArray[t] && ((r = cc.instantiate(this._commonItemPrefab).getComponent(m.ItemComponent)).node.parent = this.RewardGrid, r.node.name = n.toString(), this._itemArray[t] = r), this._itemArray[t].Init({
                                        ItemId: n,
                                        Count: o
                                    }, m.ItemComponentType.ItemCommon);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetBtnState = function() {
                    this.BtnReturn.node.active = !1
                }, t.prototype.OnBtnSureClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    c.UIManager.Instance.BackUIPanel(), c.UIManager.Instance.ShowUIPanel(f.PanelConfig.ArenaPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && I.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([P(cc.Label)], t.prototype, "LeftPlayerName", void 0), i([P(cc.Label)], t.prototype, "RightPlayerName", void 0), i([P(cc.Label)], t.prototype, "MyScore", void 0), i([P(cc.Label)], t.prototype, "EnemyScore", void 0), i([P(cc.Label)], t.prototype, "MyScoreChange", void 0), i([P(cc.Label)], t.prototype, "EnemyScoreChange", void 0), i([P(cc.Node)], t.prototype, "MyGreenArrow", void 0), i([P(cc.Node)], t.prototype, "MyRedArrow", void 0), i([P(cc.Node)], t.prototype, "EnemyGreenArrow", void 0), i([P(cc.Node)], t.prototype, "EnemyRedArrow", void 0), i([P(cc.Button)], t.prototype, "BtnReturn", void 0), i([P(cc.Button)], t.prototype, "BtnSure", void 0), i([P(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([P(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([P(cc.Node)], t.prototype, "LeftHeadRoot", void 0), i([P(cc.Node)], t.prototype, "RightHeadRoot", void 0), i([P(cc.Node)], t.prototype, "RewardGrid", void 0), i([P(cc.Label)], t.prototype, "LineTitle", void 0), i([P(cc.Sprite)], t.prototype, "DesignationLeft", void 0), i([P(cc.Sprite)], t.prototype, "DesignationRight", void 0), i([w], t)
            }(l.default);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeadComponent": "HeadComponent",
        "./ItemComponent": "ItemComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    CrossServerSpaceTimePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b616bnO0tNPQI6yET5xLk/G", "CrossServerSpaceTimePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../GamePlay/Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/CrossServerInfoComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.LayoutNode = null, t.RuleBtn = null, t.Ranktn = null, t.RanktnBtn = null, t.ReturnBtn = null, t.TimeTag = null, t.TimeValue = null, t.WorldLevelBtn = null, t.WorldLevelBtnLabel = null, t.WorldLevelBubble = null, t.WorldLeveBubbleTag = null, t.WorldLeveBubbleLeveValue = null, t.WorldLeveBubbleInfo = null, t.ScrollView = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CrossServerPortPanel/ServerInfoComponentLeft"), n = this.LoadDynamicAsset("CrossServerPortPanel/ServerInfoComponentRight"), o = this.LoadDynamicAsset("CrossServerPortPanel/Png/CrossServerPortPanel", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._serverInfoLeftPrefab = e[0], r._serverInfoRightPrefab = e[1], r._panelAtlas = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "crossServerSpaceTime".ToUILocale(), this.TimeTag.string = "holyArea_resetTime".ToUILocale(), this.WorldLevelBtnLabel.string = "Lv." + c.DataCenter.Instance.WorldLevel, this.ReturnBtn.node.on("click", this.OnClose, this), this.RuleBtn.node.on("click", this.OnRuleClick, this), this.WorldLevelBtn.node.on("click", this.OnShowWorldLevelBubble, this);
                    var t = this.ScrollView.node.getBoundingBoxToWorld();
                    this._scrollViewRect = new cc.Rect(t.x, t.y, this.ScrollView.node.width, this.ScrollView.node.height), this.ScrollView.node.on("scrolling", this.OnScrolling, this)
                }, t.prototype.OnScrolling = function() {
                    l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_CHECK_BUNDINGBOX, this._scrollViewRect)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._groupInfo = t[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigTimeHint(), t || this.ConfigServerInfo()
                }, t.prototype.ConfigTimeHint = function() {
                    this.TimeValue.string = "days_one".ToUILocale() + "  " + "timeDuration".ToUILocale().Fmt(0, 10)
                }, t.prototype.ConfigServerInfo = function() {
                    for (var e = this._groupInfo.Zones.length, t = 0; t < e; t++) {
                        var n = t % 2,
                            o = void 0;
                        (o = 0 == n ? cc.instantiate(this._serverInfoLeftPrefab) : cc.instantiate(this._serverInfoRightPrefab)).setParent(this.LayoutNode);
                        var r = t == e - 1;
                        o.getComponent(d.default).Init(this._panelAtlas, this._groupInfo.Zones[t], this._groupInfo.TopUserNames[t], this._groupInfo.WorldLevels[t], r, 0 == n)
                    }
                    this.ScrollView.scrollToTop(), l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_CHECK_BUNDINGBOX, this._scrollViewRect)
                }, t.prototype.OnRuleClick = function() {
                    var e = "crossServerSpaceTime".ToUILocale(),
                        t = ["crossServer_port_tag".ToUILocale()],
                        n = ["crossServer_spaceTime_info".ToUILocale()];
                    p.UIUtlity.ShowRulePanel({
                        name: e,
                        titles: t,
                        contents: n
                    })
                }, t.prototype.OnShowWorldLevelBubble = function() {
                    if (this.WorldLevelBubble.active = !this.WorldLevelBubble.active, this.WorldLevelBubble.active) {
                        this.WorldLeveBubbleTag.string = "worldLevel".ToUILocale(), this.WorldLeveBubbleLeveValue.string = "Lv." + c.DataCenter.Instance.WorldLevel;
                        var e = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("ZoneWorldLevelUserCount");
                        this.WorldLeveBubbleInfo.string = "worldLevelHint".ToUILocale().Fmt(e)
                    }
                }, t.prototype.OnClose = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Node)], t.prototype, "LayoutNode", void 0), i([g(cc.Button)], t.prototype, "RuleBtn", void 0), i([g(cc.Button)], t.prototype, "Ranktn", void 0), i([g(cc.Label)], t.prototype, "RanktnBtn", void 0), i([g(cc.Button)], t.prototype, "ReturnBtn", void 0), i([g(cc.Label)], t.prototype, "TimeTag", void 0), i([g(cc.Label)], t.prototype, "TimeValue", void 0), i([g(cc.Button)], t.prototype, "WorldLevelBtn", void 0), i([g(cc.Label)], t.prototype, "WorldLevelBtnLabel", void 0), i([g(cc.Node)], t.prototype, "WorldLevelBubble", void 0), i([g(cc.Label)], t.prototype, "WorldLeveBubbleTag", void 0), i([g(cc.Label)], t.prototype, "WorldLeveBubbleLeveValue", void 0), i([g(cc.Label)], t.prototype, "WorldLeveBubbleInfo", void 0), i([g(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([y], t)
            }(l.BaseUIFullScreenPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CrossServerInfoComponent": "CrossServerInfoComponent"
    }],
    CrownGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7b976vwz+dEAqJuoCATgXIx", "CrownGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("./LimitTimePurchasetListItem"),
            m = e("../../Components/Components"),
            I = e("./NodePool"),
            _ = e("../../Channel/ChannelManager"),
            C = e("./CommonTaskTipComponent"),
            v = e("../../../Consts/Consts"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Content = null, t.BannerImage = null, t.CommonTaskTipComponent = null, t._giftListItemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CollectionPavilionPanel/Components/CrownGiftListItem", cc.Prefab), n = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._listItemPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "CollectionPavilion_Btn_CrownGift".ToUILocale(), this.CommonTaskTipComponent.InitData(), this._itemPool = new I.default(this._itemPrefab)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this);
                    var t = m.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, v.LevelParamType.CollectKingGift);
                    this._giftIdArray = t.Data, this._giftConfigArray = [];
                    for (var n = 0; n < this._giftIdArray.length; n++) {
                        var o = m.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._giftIdArray[n]);
                        this._giftConfigArray.push(o)
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._giftConfigArray.sort(this.SortGiftArray.bind(this)), this.SetGiftItems()
                }, t.prototype.SortGiftArray = function(e, t) {
                    var n = p.DataCenter.Instance.GetDataById(c.GiftPack_Model, e.Id),
                        o = p.DataCenter.Instance.GetDataById(c.GiftPack_Model, t.Id);
                    return n && n.Count == e.LimitCount ? 1 : o && o.Count == t.LimitCount ? -1 : void 0
                }, t.prototype.OnItemClick = function(e, t) {
                    "RewardGrid3" == t.parent.name && f.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                }, t.prototype.OnButtonClick = function(e) {
                    if (null == this._giftConfigArray[e].Money || 0 == this._giftConfigArray[e].Money) {
                        var t = new c.Req_Pay_ByDiamond;
                        t.Id = this._giftConfigArray[e].Id, p.RpcComponent.Instance.Call(t, function(e) {
                            f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else _.default.Instance.Pay(this._giftConfigArray[e].Id)
                }, t.prototype.SetGiftItems = function() {
                    for (var e = 0; e < this._giftConfigArray.length; e++) {
                        var t = this._giftListItemComponents[e];
                        if (!t) {
                            var n = cc.instantiate(this._listItemPrefab);
                            n.setParent(this.Content), t = n.getComponent(g.default), this._giftListItemComponents[e] = t
                        }
                        t.node.active = !0;
                        var o, r = this._giftConfigArray[e],
                            i = p.DataCenter.Instance.GetDataById(c.GiftPack_Model, r.Id);
                        o = i && i.Count ? i.Count : 0, t.SetName(r.Id.ToGiftPackName(), e).SetPurchaseLimit(r.LimitCount - o, r.LimitCount, r.LimitType).SetItems(r.Items, this._itemPool).SetPrice(r.Money, r.VipPoint, r.Discount)
                    }
                    if (this._giftConfigArray.length < this._giftListItemComponents.length)
                        for (e = this._giftConfigArray.length; e < this._giftListItemComponents.length; e++) this._giftListItemComponents[e].node.active = !1
                }, t.prototype.onDestroy = function() {
                    var e;
                    null === (e = this._itemPool) || void 0 === e || e.Clear()
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Node)], t.prototype, "Content", void 0), i([w(cc.Sprite)], t.prototype, "BannerImage", void 0), i([w(C.default)], t.prototype, "CommonTaskTipComponent", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent",
        "./LimitTimePurchasetListItem": "LimitTimePurchasetListItem",
        "./NodePool": "NodePool"
    }],
    CurrencyBarItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "53bb8uf9gpLZLT9rs2wL9KA", "CurrencyBarItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/DataCenter"),
            c = e("./CustomRichText"),
            u = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../../Consts/Consts"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CurrencyIcon = null, t.BtnAdd = null, t.CountLabel = null, t.bgNode = null, t.IconWidget = null, t.BtnAddWidget = null, t.TitleBarWidth = 0, t._isInit = !1, t.NORMAL_WIDTH = 176, t.SPECIAL_WIDTH = 360, t._currencyType = null, t._tempValue = 0, t._lastCount = -1, t._loadedAssets = [], t._clickCallBack = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r, i) {
                    void 0 === t && (t = !1), o && (this._max = o), this._needTween = t, this._currencyType = e, this._activityId = i, null == n ? this.ConfigCurrencyCount(e) : this.ConfigFixedCount(n), this.TitleBarWidth && (this.bgNode.width = this.TitleBarWidth), null != this.IconWidget && this.IconWidget.updateAlignment(), null != this.BtnAddWidget && this.BtnAddWidget.updateAlignment(), this.UpdateCountWidget(), this._isInit || (this._isInit = !0, this.BtnAdd.node.on("click", this.OnBtnAddClick, this)), r && this.CurrencyIcon.node.on(cc.Node.EventType.TOUCH_START, this.ShowItemTip, this), this.LoadIcon()
                }, t.prototype.SetCount = function(e) {
                    this.ConfigFixedCount(e), this.TitleBarWidth && (this.bgNode.width = this.TitleBarWidth), null != this.IconWidget && this.IconWidget.updateAlignment(), null != this.BtnAddWidget && this.BtnAddWidget.updateAlignment(), this.UpdateCountWidget()
                }, t.prototype.SetMaxCount = function(e) {
                    this._max = e
                }, t.prototype.SetCurrencyItem = function() {
                    this.Init(y.CommonItemId.Currency), this.CountLabel.Init("<outline color=#202434 width=3>" + f.default.GetCurrencyItemCount() + "</outline>")
                }, t.prototype.SetFixedWidth = function(e) {
                    this.bgNode.width = e, null != this.IconWidget && this.IconWidget.updateAlignment(), null != this.BtnAddWidget && this.BtnAddWidget.updateAlignment(), this.UpdateCountWidget()
                }, t.prototype.UpdateCountWidget = function() {
                    var e = this.CountLabel.node.getComponent(cc.Widget);
                    e && e.updateAlignment()
                }, t.prototype.SetFixedColor = function(e) {
                    this.CountLabel.node.color = e
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.CurrencyIcon.spriteFrame = null, this._iconpath = f.default.Instance.GetItemPathById(this._currencyType), [4, u.AssetsManager.Instance.LoadAsset(this._iconpath, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid && e.name == this._iconpath ? (this._loadedAssets.push(e), this.CurrencyIcon.spriteFrame = e, [2]) : (d.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.HideBtnAdd = function() {
                    this.BtnAdd.node.active = !1, this.BtnAdd.target && (this.BtnAdd.target.active = !1)
                }, t.prototype.HideIcon = function() {
                    this.CurrencyIcon.node.active = !1
                }, t.prototype.ConfigCurrencyCount = function(e) {
                    var t = this,
                        n = l.DataCenter.Instance.GetItemCount(e);
                    if (n = l.DataCenter.Instance.GetItemCount(e), this._tempValue = this._lastCount, this._lastCount = n, this._tempValue != n || !this._needTween)
                        if (null == this._max)
                            if (this._needTween) {
                                this._tween && (this._tween.stop(), this._tween = null);
                                var o = this._tempValue;
                                (r = {})._tempValue = n, this._tween = cc.tween(this).to(.8, r, {
                                    progress: function(e, r, i, a) {
                                        var s = a >= 1 ? n : o + Math.floor((n - o) * a);
                                        t.CountLabel.Init("<outline color=#202434 width=3>" + s.FmtCurrency() + "</outline>")
                                    },
                                    easing: "cubicOut"
                                }).start()
                            } else this.CountLabel.Init("<outline color=#202434 width=3>" + n.FmtCurrency() + "</outline>");
                    else if ("string" == typeof this._max) this.CountLabel.Init("item_count_enough".ToUILocale().Fmt(n, this._max));
                    else if (this._needTween) {
                        this._tween && (this._tween.stop(), this._tween = null);
                        var r, i = this._tempValue;
                        (r = {})._tempValue = n, this._tween = cc.tween(this).to(.8, r, {
                            progress: function(e, o, r, a) {
                                var s = a >= 1 ? n : i + Math.floor((n - i) * a);
                                n >= t._max ? t.CountLabel.Init("item_count_enough".ToUILocale().Fmt(s.FmtCurrency(), t._max.FmtCurrency())) : t.CountLabel.Init("item_count_not_enough".ToUILocale().Fmt(s.FmtCurrency(), t._max.FmtCurrency()))
                            },
                            easing: "cubicOut"
                        }).start()
                    } else n >= this._max ? this.CountLabel.Init("item_count_enough".ToUILocale().Fmt(n.FmtCurrency(), this._max.FmtCurrency())) : this.CountLabel.Init("item_count_not_enough".ToUILocale().Fmt(n.FmtCurrency(), this._max.FmtCurrency()))
                }, t.prototype.ConfigFixedCount = function(e) {
                    null == this._max ? this.CountLabel.Init("<outline color=#202434 width=3>" + e.FmtCurrency() + "</outline>") : this.CountLabel.Init("item_count_enough".ToUILocale().Fmt(e, this._max))
                }, t.prototype.SetClickCallBack = function(e) {
                    this._clickCallBack = e
                }, t.prototype.OnBtnAddClick = function() {
                    null != this._clickCallBack ? this._clickCallBack() : h.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, this._currencyType, !1)
                }, t.prototype.GetCurrencyType = function() {
                    return this._currencyType
                }, t.prototype.ShowItemTip = function() {
                    h.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemTipPanel.Path, this._currencyType, this.CurrencyIcon.node)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) d.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([I(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([I(cc.Button)], t.prototype, "BtnAdd", void 0), i([I(c.CustomRichText)], t.prototype, "CountLabel", void 0), i([I(cc.Node)], t.prototype, "bgNode", void 0), i([I(cc.Widget)], t.prototype, "IconWidget", void 0), i([I(cc.Widget)], t.prototype, "BtnAddWidget", void 0), i([I], t.prototype, "TitleBarWidth", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "./CustomRichText": "CustomRichText"
    }],
    CurrencyDiscountItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "92bceLiOl9HJJOZWTIo77+X", "CurrencyDiscountItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = e("../Components/ItemComponent"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Channel/ChannelManager"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.ItemDesc = null, t.CheckNode = null, t.LockNode = null, t.LeftTimeNode = null, t.LeftTimeTag = null, t.LeftTimeValue = null, t.LockTimeNode = null, t.LockTimeTag = null, t.LockTimeValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._itemPrefab = e, this._ticket = t, this._panel = n, this.InitUI(), this.ConfigTicketItem(), this.ConfigTimeNode(), this.ConfigDesc()
                }, t.prototype.InitUI = function() {
                    this.node.on("toggle", this.OnToggleSelect, this), this.LeftTimeTag.string = "valid_time".ToUILocale() + ":", this.LockTimeTag.string = "cooldown".ToUILocale() + ":"
                }, t.prototype.ConfigTicketItem = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.ItemContainer), e.getComponent(l.ItemComponent).Init({
                        ItemId: this._ticket.ItemId
                    }), e.on(cc.Node.EventType.TOUCH_END, this.ShowTip, this)
                }, t.prototype.ConfigTimeNode = function() {
                    var e = this.node.getComponent(cc.Toggle);
                    this._ticket.UnlockTime > s.RpcComponent.Instance.ServerTime ? (this.LockTimeNode.active = !0, e.enabled = !1, this.LockNode.active = !0, this.SetLockTimeCountDown(), this.schedule(this.SetLockTimeCountDown, 1)) : this._ticket.Time > s.RpcComponent.Instance.ServerTime ? (this.LockTimeNode.active = !1, e.enabled = !0, this.LockNode.active = !1, this.SetValidTimeCountDown(), this.schedule(this.SetValidTimeCountDown, 1)) : this.SetPastState()
                }, t.prototype.SetPastState = function() {
                    var e = this.node.getComponent(cc.Toggle);
                    this.LockTimeNode.active = !1, e.enabled = !1, this.LockNode.active = !0, this.unscheduleAllCallbacks()
                }, t.prototype.SetValidTimeCountDown = function() {
                    var e = this._ticket.Time - s.RpcComponent.Instance.ServerTime;
                    this.LeftTimeValue.string = u.default.ActivityTimeLeftFormat(e), e <= 0 && this.SetPastState()
                }, t.prototype.SetLockTimeCountDown = function() {
                    var e = this._ticket.UnlockTime - s.RpcComponent.Instance.ServerTime;
                    this.LockTimeValue.string = u.default.ActivityTimeLeftFormat(e), e <= 0 && (this.unschedule(this.SetLockTimeCountDown), this.ConfigTimeNode())
                }, t.prototype.ConfigDesc = function() {
                    var e = s.ConfigDataComponent.Instance.GetConfigById(a.ItemCurrencyDiscount_Config, this._ticket.ItemId),
                        t = "" + p.default.Instance.CurrencySymbol + p.default.Instance.ExchangeMoney(e.Type),
                        n = "" + p.default.Instance.CurrencySymbol + p.default.Instance.ExchangeMoney(e.NewPrice);
                    this.ItemDesc.string = "discountTicket_use_hint".ToUILocale().Fmt(1, t, n)
                }, t.prototype.OnToggleSelect = function(e) {
                    this._panel.SelectTicketSid = Number.parseInt(e.name)
                }, t.prototype.ShowTip = function() {
                    c.UIUtlity.ShowItemTip(this._ticket.ItemId, this.ItemContainer)
                }, i([f(cc.Node)], t.prototype, "ItemContainer", void 0), i([f(cc.RichText)], t.prototype, "ItemDesc", void 0), i([f(cc.Node)], t.prototype, "CheckNode", void 0), i([f(cc.Node)], t.prototype, "LockNode", void 0), i([f(cc.Node)], t.prototype, "LeftTimeNode", void 0), i([f(cc.Label)], t.prototype, "LeftTimeTag", void 0), i([f(cc.Label)], t.prototype, "LeftTimeValue", void 0), i([f(cc.Node)], t.prototype, "LockTimeNode", void 0), i([f(cc.Label)], t.prototype, "LockTimeTag", void 0), i([f(cc.Label)], t.prototype, "LockTimeValue", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CurrencyDiscountPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9659ccTTCRAPIqy7LQ1g0Un", "CurrencyDiscountPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("./CurrencyDiscountItem"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1), t.TitleLabel = null, t.Desc = null, t.Rule = null, t.DiscountItemNode = null, t.CancelBtn = null, t.CancelLabel = null, t.UseTicketBtn = null, t.UseTicketBtnLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), n = this.LoadDynamicAsset("CurrencyDiscountPanel/CurrencyDiscountItem"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._discountItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "discountTicketName".ToUILocale(), this.Desc.string = "discountTicket_hint".ToUILocale(), this.CancelLabel.string = "discountTicket_none_use".ToUILocale(), this.UseTicketBtnLabel.string = "use".ToUILocale(), this.Rule.string = "discountTicket_rule".ToUILocale().Fmt(p.ConfigDataComponent.Instance.GetGlobalSettingByKey("CurrencyDiscountTicketLockDuration")), this.CancelBtn.node.on("click", this.OnCancel, this), this.UseTicketBtn.node.on("click", this.OnUseTicket, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._tickets = t[0], this._callback = t[1], this._tickets.sort(this.SortTickets.bind(this))
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigDiscountItems()
                }, t.prototype.SortTickets = function(e, t) {
                    if (e.UnlockTime <= p.RpcComponent.Instance.ServerTime && t.UnlockTime > p.RpcComponent.Instance.ServerTime) return -1;
                    if (e.UnlockTime > p.RpcComponent.Instance.ServerTime && t.UnlockTime <= p.RpcComponent.Instance.ServerTime) return 1;
                    var n = p.ConfigDataComponent.Instance.GetConfigById(u.ItemCurrencyDiscount_Config, e.ItemId),
                        o = p.ConfigDataComponent.Instance.GetConfigById(u.ItemCurrencyDiscount_Config, t.ItemId);
                    return n.NewPrice < o.NewPrice ? -1 : n.NewPrice > o.NewPrice ? 1 : e.IsPerpetual && !t.IsPerpetual ? 1 : !e.IsPerpetual && t.IsPerpetual ? -1 : e.Time < t.Time ? -1 : e.Time > t.Time ? 1 : 0
                }, t.prototype.ConfigDiscountItems = function() {
                    for (var e = 0; e < this._tickets.length; e++) {
                        var t = this._tickets[e],
                            n = cc.instantiate(this._discountItemPrefab);
                        n.setParent(this.DiscountItemNode), n.name = t.Sid.toString(), n.getComponent(d.default).Init(this._itemPrefab, t, this)
                    }
                }, t.prototype.OnCancel = function() {
                    this.Close(), null != this._callback && this._callback(0)
                }, t.prototype.OnUseTicket = function() {
                    if (!this.SelectTicketSid) return h.UIUtlity.ShowFloatingHint("discountTicket_select_hint".ToUILocale());
                    this.Close(), null != this._callback && this._callback(this.SelectTicketSid)
                }, i([g(cc.Label)], t.prototype, "TitleLabel", void 0), i([g(cc.Label)], t.prototype, "Desc", void 0), i([g(cc.Label)], t.prototype, "Rule", void 0), i([g(cc.Node)], t.prototype, "DiscountItemNode", void 0), i([g(cc.Button)], t.prototype, "CancelBtn", void 0), i([g(cc.Label)], t.prototype, "CancelLabel", void 0), i([g(cc.Button)], t.prototype, "UseTicketBtn", void 0), i([g(cc.Label)], t.prototype, "UseTicketBtnLabel", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CurrencyDiscountItem": "CurrencyDiscountItem"
    }],
    CustomActivityContent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "19687CbyRhDdZJsLgJXOitX", "CustomActivityContent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FrameNodeType = void 0;
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../Components/Components"),
            c = e("../../../Consts/Consts"),
            u = e("./ActivityBaseContent"),
            p = e("../../../Util/TimeUtil"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("./CustomFrameComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("./TimeLimitedActivityPanel"),
            I = e("./CustomFrameSubComponent");
        (function(e) {
            e[e.StaticNode = 1] = "StaticNode", e[e.TurnPage = 2] = "TurnPage", e[e.ActivityEntrance = 3] = "ActivityEntrance"
        })(a = n.FrameNodeType || (n.FrameNodeType = {}));
        var _ = cc._decorator,
            C = _.ccclass,
            v = (_.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.onLoad = function() {
                    s.Game.EventDispatcher.On(g.EventKeys.EVENT_ACTIVITY_REFRESHREDDOT, this.RefreshActivityReddots, this)
                }, t.prototype.Init = function(t) {
                    var n = this;
                    e.prototype.Init.call(this, t), this._customFrameConfig = t, this._isInit || (this._frameNodeIdToMap = {}, this._frameSubNodeIdToMap = {}, this._frameNodeIdToComponent = {}, this._needSetMaskSubIds = {}, this._turnPageNodeIndex = {}, this._countdowmEventDatas = [], this._nextRefreshTime = 0, this._totalEndTime = d.default.Instance.ComputeDeadTime(this._customFrameConfig.Common), this._customFrameConfig.SubNodes.forEach(function(e) {
                        var t = {};
                        t.Config = e, n._frameSubNodeIdToMap[e.Id] = t, n.CheckTimeNeedRefresh(e, 2)
                    }), this._customFrameConfig.Nodes.forEach(function(e) {
                        n._frameNodeIdToMap[e.Id] = e, e.SubNode.forEach(function(t, o) {
                            if (n._frameSubNodeIdToMap[t] && (n._frameSubNodeIdToMap[t].ParentConfig = e), e.Type == a.TurnPage && n._frameSubNodeIdToMap[t].Config.Type == I.FrameSubNodeType.TurnPageSubNode)
                                for (var r = 0; r < n._frameSubNodeIdToMap[t].Config.Params.length; r++) {
                                    var i = n._frameSubNodeIdToMap[t].Config.Params[r];
                                    n._frameSubNodeIdToMap[i].Config.Type >= I.FrameSubNodeType.HeroModel && n._frameSubNodeIdToMap[i].Config.Type <= I.FrameSubNodeType.SkinModel && (n._needSetMaskSubIds[i] = !0), n._turnPageNodeIndex[i] = [o, t, e.Id]
                                }
                        }), n.CheckTimeNeedRefresh(e, 1), n.SetFrameNode(e)
                    }), this._countdowmEventDatas.sort(function(e, t) {
                        return e.Time - t.Time
                    }), this.SetCountDownEvents(), this._isInit = !0), this.RefreshActivityReddots()
                }, t.prototype.GetSubIdInTurnPageIndex = function(e) {
                    if (this._turnPageNodeIndex[e])
                        for (var t = this._turnPageNodeIndex[e][2], n = this._turnPageNodeIndex[e][1], o = 0, r = 0; r < this._frameNodeIdToMap[t].SubNode.length; r++) {
                            var i = this._frameNodeIdToMap[t].SubNode[r];
                            if (2 == this.GetCurNodeTimeState(this._frameSubNodeIdToMap[i].Config.Show[0].Items, this._frameSubNodeIdToMap[i].Config.Show[1].Items)) {
                                if (n == i) return o;
                                o++
                            }
                        }
                    return -1
                }, t.prototype.GetTime = function(e) {
                    var t = e[0],
                        n = e[1],
                        o = d.default.Instance.ComputeActivitStartTime(this._customFrameConfig.Common);
                    return p.TimeUtil.Get0ClockTs(o) + (t - 1) * c.Etc.DayDuration + n * c.Etc.HourDuration
                }, t.prototype.CheckTimeNeedRefresh = function(e, t) {
                    var n = this;
                    if (e.Show[0] && e.Show[1]) {
                        var o = this.GetTime(e.Show[0].Items),
                            r = this.GetTime(e.Show[1].Items),
                            i = function(e, t, o) {
                                var r = {};
                                r.Time = e, 1 == t ? r.FrameNodeId = o : r.FrameSubNodeId = o, n._countdowmEventDatas.push(r)
                            };
                        l.RpcComponent.Instance.ServerTime >= o && l.RpcComponent.Instance.ServerTime < r && r < this._totalEndTime ? i(r, t, e.Id) : l.RpcComponent.Instance.ServerTime < o && i(o, t, e.Id)
                    }
                }, t.prototype.SetFrameNode = function(e) {
                    if (e.Show[0] && e.Show[1]) {
                        var t = this.GetTime(e.Show[0].Items),
                            n = this.GetTime(e.Show[1].Items);
                        if (l.RpcComponent.Instance.ServerTime < t || l.RpcComponent.Instance.ServerTime >= n) return
                    }
                    this.CreatFrameNode(e)
                }, t.prototype.CreatFrameNode = function(e) {
                    if (!this._frameNodeIdToComponent[e.Id]) {
                        var t = new cc.Node;
                        t.name = e.Id.toString();
                        var n = t.addComponent(y.default);
                        this._frameNodeIdToComponent[e.Id] = n
                    }
                    this._frameNodeIdToComponent[e.Id].node.parent = this.node, this.SetNodePos(e, this._frameNodeIdToComponent[e.Id].node), this._frameNodeIdToComponent[e.Id].Init(e, this)
                }, t.prototype.SetNodePos = function(e, t) {
                    var n = e.Positions[0] || 0,
                        o = e.Positions[1] || 0,
                        r = e.Size[0] || 0,
                        i = e.Size[1] || 0,
                        a = n - 540,
                        s = 960 - o;
                    if (t.setContentSize(r, i), e.Size.length > 2) {
                        t.setPosition(cc.v2(a, s));
                        var l = 960 - s - i / 2,
                            c = s + 960 - i / 2,
                            u = a + 540 - r / 2,
                            p = 540 - a - r / 2,
                            d = t.addComponent(cc.Widget);
                        e.Size[2] && (d.isAlignTop = !0, d.top = l), e.Size[3] && (d.isAlignRight = !0, d.right = p), e.Size[4] && (d.isAlignBottom = !0, d.bottom = c), e.Size[5] && (d.isAlignLeft = !0, d.left = u)
                    } else t.setPosition(cc.v2(a, s))
                }, t.prototype.SetCountDownEvents = function() {
                    if (this._countdowmEventDatas.length) {
                        var e = this._countdowmEventDatas[0];
                        this._nextRefreshTime = e.Time;
                        var t = (this._nextRefreshTime - l.RpcComponent.Instance.ServerTime) / 1e3;
                        this.scheduleOnce(this.RefreshUINodes, t)
                    } else this.unschedule(this.RefreshUINodes)
                }, t.prototype.GetRealParentFrameNode = function(e) {
                    for (var t = 0, n = 0; n < this._customFrameConfig.SubNodes.length; n++) {
                        var o = this._customFrameConfig.SubNodes[n];
                        if (o.Type == I.FrameSubNodeType.TurnPageSubNode && o.Params.includes(e)) {
                            t = o.Id;
                            break
                        }
                    }
                    return t && this._frameSubNodeIdToMap[t] ? this._frameSubNodeIdToMap[t].ParentConfig : null
                }, t.prototype.RefreshUINodes = function() {
                    var e = this;
                    if (l.RpcComponent.Instance.ServerTime > this._totalEndTime) return s.UIManager.Instance.QuitPanelStack(h.PanelConfig.TimeLimitedActivityPanel.Path), void f.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    this.UpdateActivityConfigByStrId();
                    for (var t = [], n = 0; n < this._countdowmEventDatas.length; n++) {
                        var o = this._countdowmEventDatas[n];
                        if (o.Time != this._nextRefreshTime) {
                            this._nextRefreshTime = o.Time;
                            var r = (this._nextRefreshTime - l.RpcComponent.Instance.ServerTime) / 1e3;
                            this.scheduleOnce(this.RefreshUINodes, r);
                            break
                        }
                        if (o.FrameNodeId) {
                            if (!(c = this._frameNodeIdToMap[o.FrameNodeId])) continue;
                            var i = this.GetCurNodeTimeState(c.Show[0].Items, c.Show[1].Items);
                            if (!i) continue;
                            if (1 == i)(a = this._frameNodeIdToComponent[o.FrameNodeId]) && (this._frameNodeIdToComponent[o.FrameNodeId].node.removeFromParent(), this._frameNodeIdToComponent[o.FrameNodeId].node.destroy(), delete this._frameNodeIdToComponent[o.FrameNodeId]);
                            else if (2 == i) {
                                var a = (new cc.Node).addComponent(y.default);
                                this._frameNodeIdToComponent[o.FrameNodeId] = a
                            }
                        } else if (o.FrameSubNodeId) {
                            var c;
                            if (!(c = this._frameSubNodeIdToMap[o.FrameSubNodeId])) continue;
                            if (c.ParentConfig) t.includes(c.ParentConfig.Id) || (t.push(c.ParentConfig.Id), s.Game.EventDispatcher.Emit(g.EventKeys.EVENT_FRAME_SUB_NODE_REFRESH, c.ParentConfig.Id));
                            else {
                                var u = this.GetRealParentFrameNode(c.Config.Id);
                                u && (t.push(u.Id), s.Game.EventDispatcher.Emit(g.EventKeys.EVENT_FRAME_SUB_NODE_REFRESH, u.Id))
                            }
                        }
                    }
                    for (var p in this._frameNodeIdToComponent) this._frameNodeIdToComponent[p].node.removeFromParent();
                    this._customFrameConfig.Nodes.forEach(function(t) {
                        e.SetFrameNode(t)
                    })
                }, t.prototype.GetCurNodeTimeState = function(e, t) {
                    var n = 0,
                        o = this.GetTime(e),
                        r = this.GetTime(t);
                    return l.RpcComponent.Instance.ServerTime >= o && l.RpcComponent.Instance.ServerTime < r ? n = 2 : l.RpcComponent.Instance.ServerTime >= r && (n = 1), n
                }, Object.defineProperty(t.prototype, "FrameNodeIdToMap", {
                    get: function() {
                        return this._frameNodeIdToMap
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "FrameSubNodeIdToMap", {
                    get: function() {
                        return this._frameSubNodeIdToMap
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "NeedSetMaskSubIds", {
                    get: function() {
                        return this._needSetMaskSubIds
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.GetFrameNodeComponentById = function(e) {
                    return this._frameNodeIdToComponent[e]
                }, t.prototype.GetActivityConfigByStrId = function(e) {
                    if (!this._activityStrIdToConfig)
                        for (var t in this._activityStrIdToConfig = {}, l.DataCenter.Instance.ActivityConfigs) {
                            var n = l.DataCenter.Instance.ActivityConfigs[t];
                            this._activityStrIdToConfig[n.Name] = n
                        }
                    return this._activityStrIdToConfig[e]
                }, t.prototype.UpdateActivityConfigByStrId = function() {
                    for (var e in this._activityStrIdToConfig = {}, l.DataCenter.Instance.ActivityConfigs) {
                        var t = l.DataCenter.Instance.ActivityConfigs[e];
                        this._activityStrIdToConfig[t.Name] = t
                    }
                }, Object.defineProperty(t.prototype, "CustomFrameConfig", {
                    get: function() {
                        return this._customFrameConfig
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.RefreshActivityReddots = function() {
                    for (var e in this._frameNodeIdToComponent) {
                        var t = this._frameNodeIdToComponent[e];
                        if (t.ActivityId) {
                            var n = l.DataCenter.Instance.ActivityConfigs[t.ActivityId],
                                o = m.ActivityData.GetTopicActivityTypeToRedDot(n.Common.Type),
                                r = !(!o || !o.callBackFunc) && o.callBackFunc({
                                    Value1: t.ActivityId
                                });
                            t.SetReddotIsShow(r)
                        }
                    }
                }, t.prototype.onDestroy = function() {
                    for (var e in this._isInit = !1, this._frameNodeIdToComponent) this._frameNodeIdToComponent[e] && this._frameNodeIdToComponent[e].node && this._frameNodeIdToComponent[e].node.destroy();
                    this.unscheduleAllCallbacks(), s.Game.EventDispatcher.Off(g.EventKeys.EVENT_ACTIVITY_REFRESHREDDOT, this.RefreshActivityReddots, this)
                }, i([C], t)
            }(u.default));
        n.default = v, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ActivityBaseContent": "ActivityBaseContent",
        "./CustomFrameComponent": "CustomFrameComponent",
        "./CustomFrameSubComponent": "CustomFrameSubComponent",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    CustomFrameComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8b0cckL1MVLyoaDkTGGKxaM", "CustomFrameComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, e("../../../EZFramework/EZFramework")),
            c = e("./CustomActivityContent"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("./CustomFrameSubComponent"),
            d = function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.onLoad = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_FRAME_SUB_NODE_REFRESH, this.RefreshSubNodes, this), l.Game.EventDispatcher.On(u.EventKeys.EVENT_FRAME_NODE_TURN_PAGE, this.RefreshTurnPage, this)
                }, t.prototype.Init = function(e, t) {
                    var n = this;
                    if (this._frameNode = e, this._instance = t, !this._isInit) {
                        this._reddotSubId = 0, this._turnPageIndex = 0, this._isTurning = !1, this._frameSubNodeIdToComponent = {}, e.SubNode.forEach(function(o) {
                            var r = t.FrameSubNodeIdToMap[o].Config;
                            if (2 == n._instance.GetCurNodeTimeState(r.Show[0].Items, r.Show[1].Items) && e.Type == c.FrameNodeType.ActivityEntrance && r.Type == p.FrameSubNodeType.ActivityJump) {
                                var i = t.GetActivityConfigByStrId(r.StrParam);
                                i && (n._activityId = i._id)
                            }
                        });
                        for (var o = 0; o < e.SubNode.length; o++) {
                            var r = e.SubNode[o],
                                i = t.FrameSubNodeIdToMap[r].Config;
                            2 == this._instance.GetCurNodeTimeState(i.Show[0].Items, i.Show[1].Items) && (i.Type == p.FrameSubNodeType.TurnPageSubNode ? i.Params.forEach(function(e) {
                                var o = t.FrameSubNodeIdToMap[e];
                                o.ParentConfig || n.CreatFrameSubNode(o.Config)
                            }) : this.CreatFrameSubNode(i))
                        }
                        e.Type == c.FrameNodeType.TurnPage && e.Params[0] > 0 && this.SetTurnPage(), this._isInit = !0
                    }
                }, t.prototype.GetCurNodeTimeState = function(e, t) {
                    return this._instance.GetCurNodeTimeState(e, t)
                }, t.prototype.CreatFrameSubNode = function(e) {
                    if (!this._frameSubNodeIdToComponent[e.Id]) {
                        var t = new cc.Node;
                        t.name = e.Id.toString();
                        var n = t.addComponent(p.default);
                        this._frameSubNodeIdToComponent[e.Id] = n
                    }
                    var o = this._instance.FrameSubNodeIdToMap[e.Id].ParentConfig;
                    if (o) {
                        var r = this._instance.GetFrameNodeComponentById(o.Id);
                        this._frameSubNodeIdToComponent[e.Id].node.parent = r.node, this.SetNodePos(e, this._frameSubNodeIdToComponent[e.Id].node, r.node)
                    } else this._frameSubNodeIdToComponent[e.Id].node.parent = this.node, this.SetNodePos(e, this._frameSubNodeIdToComponent[e.Id].node, this.node);
                    var i = this._instance.GetSubIdInTurnPageIndex(e.Id),
                        a = 0;
                    if (i > -1) {
                        var s = this._frameSubNodeIdToComponent[e.Id].node.x;
                        this._frameSubNodeIdToComponent[e.Id].node.x = s + 1080 * i, a = i > 0 ? 2 * i : 0
                    }
                    this._frameSubNodeIdToComponent[e.Id].Init(e, this, a), this._instance.NeedSetMaskSubIds[e.Id] && (this._frameSubNodeIdToComponent[e.Id].node.setContentSize(1080, 3520), this._frameSubNodeIdToComponent[e.Id].node.addComponent(cc.Mask)), e.Type == p.FrameSubNodeType.RedDot && (this._reddotSubId = e.Id)
                }, t.prototype.SetNodePos = function(e, t, n) {
                    var o = e.Positions[0] || 0,
                        r = -(e.Positions[1] || 0),
                        i = e.Size[0] || 0,
                        a = e.Size[1] || 0;
                    if (t.angle = e.Rotation, t.setContentSize(i, a), e.Size.length > 2) {
                        var s = n.height / 2 - r - a / 2,
                            l = r - a / 2 + n.height / 2,
                            c = o - i / 2 + n.width / 2,
                            u = n.width / 2 - o - i / 2,
                            p = t.addComponent(cc.Widget);
                        e.Size[2] && (p.isAlignTop = !0, p.top = s), e.Size[3] && (p.isAlignRight = !0, p.right = u), e.Size[4] && (p.isAlignBottom = !0, p.bottom = l), e.Size[5] && (p.isAlignLeft = !0, p.left = c)
                    } else t.setPosition(cc.v2(o, r))
                }, t.prototype.RefreshSubNodes = function(e) {
                    if (e == this._frameNode.Id) {
                        for (var t in this._frameSubNodeIdToComponent) this._frameSubNodeIdToComponent[t].node.removeFromParent();
                        var n = this;
                        n._frameNode.SubNode.forEach(function(e) {
                            var t, o = n._instance.FrameSubNodeIdToMap[e].Config;
                            if (2 == n._instance.GetCurNodeTimeState(o.Show[0].Items, o.Show[1].Items)) {
                                if (n._frameNode.Type == c.FrameNodeType.ActivityEntrance && o.Type == p.FrameSubNodeType.ActivityJump) {
                                    var r = n._instance.GetActivityConfigByStrId(o.StrParam);
                                    r && (n._activityId = r._id)
                                }
                                o.Type == p.FrameSubNodeType.TurnPageSubNode ? o.Params.forEach(function(e) {
                                    var t = n._instance.FrameSubNodeIdToMap[e];
                                    t.ParentConfig || n.CreatFrameSubNode(t.Config)
                                }) : n.CreatFrameSubNode(o)
                            } else o.Type == p.FrameSubNodeType.TurnPageSubNode ? o.Params.forEach(function(e) {
                                var t;
                                null === (t = n._frameSubNodeIdToComponent[e]) || void 0 === t || t.node.destroy(), delete n._frameSubNodeIdToComponent[e]
                            }) : (null === (t = n._frameSubNodeIdToComponent[e]) || void 0 === t || t.node.destroy(), delete n._frameSubNodeIdToComponent[e])
                        })
                    }
                }, t.prototype.SetTurnPage = function() {
                    var e = this,
                        t = .3 + this._frameNode.Params[0];
                    this.schedule(function() {
                        e.SetTurnPageCallBack()
                    }, t)
                }, t.prototype.SetTurnPageCallBack = function() {
                    this.TurnPage(2, !1)
                }, t.prototype.GetActivieTurnPageSubIds = function(e) {
                    var t = this,
                        n = [];
                    return e.SubNode.forEach(function(e) {
                        var o = t._instance.FrameSubNodeIdToMap[e].Config;
                        2 == t._instance.GetCurNodeTimeState(o.Show[0].Items, o.Show[1].Items) && o.Type == p.FrameSubNodeType.TurnPageSubNode && n.push(e)
                    }), n
                }, t.prototype.TurnPage = function(e, t) {
                    if (!this._isTurning) {
                        var n = this.GetActivieTurnPageSubIds(this._frameNode);
                        if (n.length) {
                            var o;
                            if (this._isTurning = !0, 2 == e)
                                if (this._turnPageIndex >= n.length - 1) {
                                    if (t) return void(this._isTurning = !1);
                                    o = 0
                                } else o = this._turnPageIndex + 1;
                            else if (1 == e) {
                                if (0 == this._turnPageIndex) return void(this._isTurning = !1);
                                o = this._turnPageIndex - 1
                            }
                            for (var r = this, i = function(e) {
                                    for (var t = n[e], i = 0; i < r._instance.FrameSubNodeIdToMap[t].Config.Params.length; i++) {
                                        var a = r._instance.FrameSubNodeIdToMap[t].Config.Params[i];
                                        if (r._frameSubNodeIdToComponent[a]) {
                                            var s = 1080 * -o + r._frameSubNodeIdToComponent[a].InitPos.x;
                                            cc.tween(r._frameSubNodeIdToComponent[a].node).to(.3, {
                                                x: s
                                            }, {
                                                easing: "sineInOut"
                                            }).call(function() {
                                                e == n.length - 1 && (r._instance.FrameSubNodeIdToMap[t].Config.Type == p.FrameSubNodeType.TurnPagePoint ? (r._turnPageIndex = o, r._isTurning = !1, r.RefreshToggle()) : (r._turnPageIndex = o, r._isTurning = !1))
                                            }).start()
                                        } else e == n.length - 1 && (r._isTurning = !1)
                                    }
                                }, a = 0; a < n.length; a++) i(a)
                        }
                    }
                }, t.prototype.RefreshTurnPage = function(e, t) {
                    this._frameNode && e == this._frameNode.Id && this.TurnPage(t, !0)
                }, t.prototype.RefreshToggle = function() {
                    var e = this._frameNode.SubNode[this._frameNode.SubNode.length - 1];
                    if (this._frameSubNodeIdToComponent[e].node.children[this._turnPageIndex]) {
                        var t = this._frameSubNodeIdToComponent[e].node.children[this._turnPageIndex].getComponent(cc.Toggle);
                        t && (t.isChecked = !0)
                    }
                }, t.prototype.GetFrameNodeBySubId = function(e) {
                    return this._instance.FrameSubNodeIdToMap[e] && this._instance.FrameSubNodeIdToMap[e].ParentConfig ? this._instance.FrameSubNodeIdToMap[e].ParentConfig : null
                }, t.prototype.GetFrameSubNodeBySubId = function(e) {
                    return this._instance.FrameSubNodeIdToMap[e] && this._instance.FrameSubNodeIdToMap[e].Config ? this._instance.FrameSubNodeIdToMap[e].Config : null
                }, Object.defineProperty(t.prototype, "ActivityId", {
                    get: function() {
                        return this._activityId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.SetReddotIsShow = function(e) {
                    var t;
                    this._reddotSubId && (null === (t = this._frameSubNodeIdToComponent[this._reddotSubId]) || void 0 === t || t.SetReddotIsShow(e))
                }, t.prototype.GetCustomFrameConfig = function() {
                    return this._instance.CustomFrameConfig
                }, t.prototype.onDestroy = function() {
                    for (var e in l.Game.EventDispatcher.Off(u.EventKeys.EVENT_FRAME_SUB_NODE_REFRESH, this.RefreshSubNodes, this), l.Game.EventDispatcher.Off(u.EventKeys.EVENT_FRAME_NODE_TURN_PAGE, this.RefreshTurnPage, this), this.unscheduleAllCallbacks(), this._frameSubNodeIdToComponent) this._frameSubNodeIdToComponent[e] && this._frameSubNodeIdToComponent[e].node && this._frameSubNodeIdToComponent[e].node.destroy()
                }, i([s], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "./CustomActivityContent": "CustomActivityContent",
        "./CustomFrameSubComponent": "CustomFrameSubComponent"
    }],
    CustomFrameItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "99b70ZF3pdGYbG1DVYgkx/w", "CustomFrameItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./CustomFrameItem"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContent = null, t.Widgets = [], t.ScrollView = null, t.MidNode = null, t.ItemHeight = 179, t._loadAssets = [], t._items = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, u, p;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return t = e.length / 2, this.ScrollView.enabled = t > 4, n = t > 4 ? 4 : t, this.MidNode.height = this.ItemHeight * n, this.ScrollView.node.height = this.ItemHeight * n, this.Widgets.forEach(function(e) {
                                        e.updateAlignment()
                                    }), this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/Component/CustomFrameItem", cc.Prefab)];
                                case 1:
                                    if (o = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this._loadAssets.push(o), this._itemPrefab = o, s.label = 2;
                                case 2:
                                    for (this._items.forEach(function(e) {
                                            e.node.active = !1
                                        }), r = 0; r < e.length; r += 2) i = e[r], a = 1 == e[r + 1], u = r / 2, this._items[u] || ((p = cc.instantiate(this._itemPrefab)).parent = this.ItemContent, p.y = -20, this._items[u] = p.getComponent(c.default)), this._items[u].node.active = !0, this._items[u].Init(i, u, a);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([d(cc.Node)], t.prototype, "ItemContent", void 0), i([d(cc.Widget)], t.prototype, "Widgets", void 0), i([d(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([d(cc.Node)], t.prototype, "MidNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./CustomFrameItem": "CustomFrameItem"
    }],
    CustomFrameItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dc783b8j1tPe7cqFsUtgufl", "CustomFrameItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Components/ItemComponent"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.Line1 = null, t.Line2 = null, t.NewNode = null, t.GetWayButton = null, t.GetWayLabel = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.GetWayLabel.string = "artifact_getway".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.GetWayButton.node.on(cc.Node.EventType.TOUCH_END, this.OnGetWayButtonClick, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    this.GetWayButton.node.off(cc.Node.EventType.TOUCH_END, this.OnGetWayButtonClick, this), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._itemId = e, this.Line1.active = t > 0, this.Line2.active = 0 == t, this.NewNode.active = n, this.SetItem()
                }, t.prototype.SetItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemCompoennt ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    t = cc.instantiate(e), this._itemCompoennt = t.getComponent(u.ItemComponent), this._loadAssets.push(e), this.ItemNode.addChild(t), t.y = -18, n.label = 2;
                                case 2:
                                    return this._itemCompoennt.node.name = this._itemId.toString(), this._itemCompoennt.Init({
                                        ItemId: this._itemId
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnGetWayButtonClick = function() {
                    d.default.ShowItemGetWay(this._itemId)
                }, t.prototype.OnClickItem = function(e, t) {
                    this.ItemNode.children.indexOf(t) > -1 && h.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([g(cc.Node)], t.prototype, "ItemNode", void 0), i([g(cc.Node)], t.prototype, "Line1", void 0), i([g(cc.Node)], t.prototype, "Line2", void 0), i([g(cc.Node)], t.prototype, "NewNode", void 0), i([g(cc.Button)], t.prototype, "GetWayButton", void 0), i([g(cc.Label)], t.prototype, "GetWayLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CustomFrameSubComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d1269kR32RB/Lozi8e2giyp", "CustomFrameSubComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FrameSubNodeType = void 0;
        var l, c = cc._decorator,
            u = c.ccclass,
            p = (c.property, e("../../../EZFramework/EZFramework")),
            d = e("../../Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/ActivityCountDownComponent"),
            m = e("../../../Util/TimeUtil"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("./ActivityBaseContent"),
            v = e("../../../ShareConsts/BattleConsts"),
            b = e("./CustomFrameItemComponent"),
            S = e("./StarPiecePanel");
        (function(e) {
            e[e.None = 0] = "None", e[e.ActivityTitle = 1] = "ActivityTitle", e[e.CustomTitle = 2] = "CustomTitle", e[e.ActivityCountDown = 3] = "ActivityCountDown", e[e.CustomCountDown = 4] = "CustomCountDown", e[e.Sprite = 5] = "Sprite", e[e.AtlasSprite = 6] = "AtlasSprite", e[e.ActivityJump = 7] = "ActivityJump", e[e.HeroModel = 8] = "HeroModel", e[e.PersonlityModel = 9] = "PersonlityModel", e[e.SkinModel = 10] = "SkinModel", e[e.TurnPageBtn = 11] = "TurnPageBtn", e[e.RedDot = 12] = "RedDot", e[e.TurnPagePoint = 13] = "TurnPagePoint", e[e.TurnPageSubNode = 14] = "TurnPageSubNode", e[e.HeroSD = 15] = "HeroSD", e[e.SkinSD = 16] = "SkinSD", e[e.Effect = 17] = "Effect", e[e.CoreItems = 18] = "CoreItems", e[e.PetModel = 19] = "PetModel", e[e.StarPieceModel = 20] = "StarPieceModel", e[e.EmbattleModel = 21] = "EmbattleModel"
        })(l = n.FrameSubNodeType || (n.FrameSubNodeType = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._loadAssets = [], t._isReddotShow = !1, t
            }
            return r(t, e), t.prototype.Init = function(e, t, n) {
                this._frameSubNode = e, this._instance = t, this._delayLoadTime = n, this._isInit || (this._customFrameConfig = t.GetCustomFrameConfig(), this.SetSubNodeTypeContent(), this._initPos = this.node.position, this._isInit = !0)
            }, t.prototype.SetSubNodeTypeContent = function() {
                switch (this._frameSubNode.Type) {
                    case l.ActivityTitle:
                        this.SetActivityTitle();
                        break;
                    case l.CustomTitle:
                        this.SetCustomTitle();
                        break;
                    case l.ActivityCountDown:
                        this.SetActivityCountDown();
                        break;
                    case l.CustomCountDown:
                        this.SetCustomCountDown();
                        break;
                    case l.Sprite:
                        this.SetDelayFunction(this.SetSprite.bind(this));
                        break;
                    case l.AtlasSprite:
                        this.SetAtlasSprite();
                        break;
                    case l.ActivityJump:
                        this.SetActivityJump();
                        break;
                    case l.HeroModel:
                        this.SetDelayFunction(this.SetHeroModel.bind(this));
                        break;
                    case l.PersonlityModel:
                        this.SetDelayFunction(this.SetPersonalityModel.bind(this));
                        break;
                    case l.SkinModel:
                        this.SetDelayFunction(this.SetSkinModel.bind(this));
                        break;
                    case l.TurnPageBtn:
                        this.SetCarouselMapBtn();
                        break;
                    case l.RedDot:
                        this.SetReddot();
                        break;
                    case l.TurnPagePoint:
                        this.SetTurnPagePoint();
                        break;
                    case l.HeroSD:
                        this.SetHeroSD();
                        break;
                    case l.SkinSD:
                        this.SetSkinSD();
                        break;
                    case l.Effect:
                        this.SetEffect();
                        break;
                    case l.CoreItems:
                        this.SetCoreItems();
                        break;
                    case l.PetModel:
                        this.SetDelayFunction(this.SetPetModel.bind(this));
                        break;
                    case l.StarPieceModel:
                        this.SetDelayFunction(this.SetStarPieceModel.bind(this));
                        break;
                    case l.EmbattleModel:
                        this.SetDelayFunction(this.SetEmbattleModel.bind(this))
                }
            }, t.prototype.SetDelayFunction = function(e) {
                this._delayLoadTime > 0 ? this.scheduleOnce(e, this._delayLoadTime) : e()
            }, t.prototype.SetActivityTitle = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = this.node.addComponent(cc.Label), t = this.node.addComponent(cc.LabelOutline), n = this.node.addComponent(cc.LabelShadow), [4, this.LoadFont()];
                            case 1:
                                return o.sent(), this.isValid ? (e.font = this._font, e.fontSize = 50, t.color = cc.color(98, 78, 55), t.width = 2, n.color = cc.color(0, 0, 0, 75), n.offset = cc.v2(0, -3), n.blur = 3, e.string = this._customFrameConfig.Common.Title, [2]) : [2]
                        }
                    })
                })
            }, t.prototype.SetCustomTitle = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return (e = this.node.addComponent(cc.RichText)).string = "", [4, this.LoadFont()];
                            case 1:
                                return n.sent(), this.isValid ? (e.font = this._font, t = this.GetMulitLableContent(this._frameSubNode.Params[0]), e.string = t, [2]) : [2]
                        }
                    })
                })
            }, t.prototype.SetActivityCountDown = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return [4, p.AssetsManager.Instance.LoadAsset("ItemsComponent/ActivityCountDownComponent", cc.Prefab)];
                            case 1:
                                return e = n.sent(), this.isValid ? (this._loadAssets.push(e), (t = cc.instantiate(e)).parent = this.node, t.setContentSize(this._frameSubNode.Size[0], this._frameSubNode.Size[1]), t.getComponent(g.default).Init(this._customFrameConfig.Common), [2]) : (p.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.SetCustomCountDown = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return (e = this.node.addComponent(cc.RichText)).string = "", [4, this.LoadFont()];
                            case 1:
                                return r.sent(), this.isValid ? (e.font = this._font, t = this.GetMulitLableContent(this._frameSubNode.Params[0]), n = m.TimeUtil.StrToTime(this._frameSubNode.StrParam), o = I.default.ActivityTimeLeftFormat(n), e.string = t.Fmt(o), [2]) : [2]
                        }
                    })
                })
            }, t.prototype.SetSprite = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return 1 != this._frameSubNode.Params[0] ? [3, 2] : (t = this._frameSubNode.StrParam, this._frameSubNode.StrParam.startsWith("Multilang") && (t = d.GlobalConfigComponent.GetMultilangKey(this._frameSubNode.StrParam)), [4, p.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)]);
                            case 1:
                                return e = r.sent(), [3, 4];
                            case 2:
                                return [4, I.default.LoadActivityTexture(this._frameSubNode.StrParam)];
                            case 3:
                                e = r.sent(), r.label = 4;
                            case 4:
                                return this.isValid ? (this._loadAssets.push(e), (n = this.node.addComponent(cc.Sprite)).spriteFrame = e, 1 == this._frameSubNode.Params[1] && (n.type = cc.Sprite.Type.SLICED), this._frameSubNode.Size.length > 0 && this.node.setContentSize(this._frameSubNode.Size[0], this._frameSubNode.Size[1]), o = this._frameSubNode.Gray > 0, f.UIUtlity.SetGray(n, o, !1), [2]) : (p.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.SetAtlasSprite = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e = this._frameSubNode.StrParam.lastIndexOf("/"), t = this._frameSubNode.StrParam.slice(0, e), n = this._frameSubNode.StrParam.slice(e + 1, this._frameSubNode.StrParam.length), o = t.startsWith("Multilang") ? d.GlobalConfigComponent.GetMultilangKey(t) : t, [4, p.AssetsManager.Instance.LoadAsset(o, cc.SpriteAtlas)];
                            case 1:
                                return r = a.sent(), this.isValid ? (this._loadAssets.push(r), (i = this.node.addComponent(cc.Sprite)).spriteFrame = r.getSpriteFrame(n), this._frameSubNode.Size.length > 0 && (i.type = cc.Sprite.Type.SLICED, this.node.setContentSize(this._frameSubNode.Size[0], this._frameSubNode.Size[1])), [2]) : (p.AssetsManager.Instance.UnloadAsset(r), [2])
                        }
                    })
                })
            }, t.prototype.SetActivityJump = function() {
                this.node.addComponent(cc.Button).node.on("click", this.OnBtnClick, this)
            }, t.prototype.OnBtnClick = function() {
                this._instance.ActivityId && C.default.OpenActivityPanel(this._instance.ActivityId)
            }, t.prototype.SetHeroModel = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e = d.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, this._frameSubNode.Params[0]), t = e.UIAvatar + "/Avatar", [4, p.AssetsManager.Instance.LoadAsset(t, cc.Prefab)];
                            case 1:
                                return n = r.sent(), this.isValid ? (this._loadAssets.push(n), (o = cc.instantiate(n)).parent = this.node, I.default.Instance.SetHeroAvatarSkin(o, e.Id, e.StarLevel), [2]) : (p.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.SetPersonalityModel = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e = "AdultPicture" + this._frameSubNode.Params[0] + "/Avatar", [4, p.AssetsManager.Instance.LoadAsset(e, cc.Prefab)];
                            case 1:
                                return t = n.sent(), this.isValid ? (this._loadAssets.push(t), cc.instantiate(t).parent = this.node, [2]) : (p.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.SetSkinModel = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = d.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, this._frameSubNode.Params[0]), t = e.UIAvatar + "/Avatar", [4, p.AssetsManager.Instance.LoadAsset(t, cc.Prefab)];
                            case 1:
                                return n = o.sent(), this.isValid ? (this._loadAssets.push(n), cc.instantiate(n).parent = this.node, [2]) : (p.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.SetCarouselMapBtn = function() {
                var e = this.node.addComponent(cc.Button);
                this.node.name = this._frameSubNode.Params[1].toString(), e.node.on("click", this.OnCarouselMapBtnClick, this)
            }, t.prototype.OnCarouselMapBtnClick = function(e) {
                var t = Number(e.node.name);
                p.Game.EventDispatcher.Emit(_.EventKeys.EVENT_FRAME_NODE_TURN_PAGE, this._frameSubNode.Params[0], t)
            }, t.prototype.SetReddot = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._instance.ActivityId ? [4, p.AssetsManager.Instance.LoadAsset(y.BundlePath.RED_DOT_PREFAB, cc.Prefab)] : [2];
                            case 1:
                                return e = t.sent(), this.isValid ? (this._loadAssets.push(e), this._reddotNode || (this._reddotNode = cc.instantiate(e), this._reddotNode.parent = this.node, this.SetReddotIsShow(this._isReddotShow)), [2]) : (p.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.SetTurnPagePoint = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, c, u, d, h, f, y, g;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                if (!(e = this._instance.GetFrameNodeBySubId(this._frameSubNode.Id))) return [2];
                                for (t = 0, h = 0; h < e.SubNode.length; h++) n = e.SubNode[h], o = this._instance.GetFrameSubNodeBySubId(n), 2 == this._instance.GetCurNodeTimeState(o.Show[0].Items, o.Show[1].Items) && o.Type == l.TurnPageSubNode && t++;
                                return (r = this.node.addComponent(cc.Layout)).type = cc.Layout.Type.HORIZONTAL, r.resizeMode = cc.Layout.ResizeMode.CONTAINER, r.spacingX = 10, this.node.addComponent(cc.ToggleContainer), [4, p.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/Component/ActivityTurnPageToggle", cc.Prefab)];
                            case 1:
                                return i = s.sent(), this.isValid ? (this._loadAssets.push(i), u = this._frameSubNode.Params[0], d = this._frameSubNode.Params[1], [4, this.LoadSpriteAsset(u)]) : (p.AssetsManager.Instance.UnloadAsset(i), [2]);
                            case 2:
                                return a = s.sent(), this.isValid ? [4, this.LoadSpriteAsset(d)] : [2];
                            case 3:
                                if (c = s.sent(), !this.isValid) return [2];
                                for (this.node.destroyAllChildren(), h = 0; h < t; h++)(f = cc.instantiate(i)).parent = this.node, f.getComponent(cc.Toggle).isChecked = 0 == h, (y = f.getChildByName("Background")) && a && (y.getComponent(cc.Sprite).spriteFrame = a), (g = f.getChildByName("checkmark")) && c && (g.getComponent(cc.Sprite).spriteFrame = c);
                                return [2]
                        }
                    })
                })
            }, t.prototype.LoadSpriteAsset = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, c;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return (t = this._instance.GetFrameSubNodeBySubId(e)) ? t.Type != l.Sprite ? [3, 2] : [4, I.default.LoadActivityTexture(t.StrParam)] : [2, null];
                            case 1:
                                return n = s.sent(), this.isValid ? (this._loadAssets.push(n), [2, n]) : (p.AssetsManager.Instance.UnloadAsset(n), [2]);
                            case 2:
                                return t.Type != l.AtlasSprite ? [3, 4] : (o = t.StrParam.lastIndexOf("/"), r = t.StrParam.slice(0, o), i = t.StrParam.slice(o + 1, t.StrParam.length), void 0, a = r.startsWith("Multilang") ? d.GlobalConfigComponent.GetMultilangKey(r) : r, [4, p.AssetsManager.Instance.LoadAsset(a, cc.SpriteAtlas)]);
                            case 3:
                                return c = s.sent(), this.isValid ? (this._loadAssets.push(c), [2, c.getSpriteFrame(i)]) : (p.AssetsManager.Instance.UnloadAsset(c), [2]);
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetHeroSD = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e = d.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, this._frameSubNode.Params[0]), t = "Hero_" + e.Model + "/HeroAvatar", [4, p.AssetsManager.Instance.LoadAsset(t, cc.Prefab)];
                            case 1:
                                return n = r.sent(), this.isValid ? (this._loadAssets.push(n), (o = cc.instantiate(n)).parent = this.node, o.getComponent(sp.Skeleton).setAnimation(0, v.SkillAnimationType.Standby, !0), [2]) : (p.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.SetSkinSD = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e = this._frameSubNode.Params[0], (t = d.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, e)) ? (n = "Hero_" + t.Model + "/HeroAvatar", [4, p.AssetsManager.Instance.LoadAsset(n, cc.Prefab)]) : [3, 2];
                            case 1:
                                if (o = i.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(o), [2];
                                this._loadAssets.push(o), (r = cc.instantiate(o)).parent = this.node, r.getComponent(sp.Skeleton).setAnimation(0, v.SkillAnimationType.Standby, !0), i.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetEffect = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e = this._frameSubNode.StrParam.split("|"), [4, p.AssetsManager.Instance.LoadAsset(e[0], sp.SkeletonData)];
                            case 1:
                                return t = r.sent(), this.isValid ? (this._loadAssets.push(t), (n = this.node.addComponent(sp.Skeleton)).skeletonData = t, o = this._frameSubNode.Params && 1 == this._frameSubNode.Params[0], n.setAnimation(0, e[1], o), [2]) : (p.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.SetReddotIsShow = function(e) {
                this._reddotNode ? this._reddotNode.active = e : this._isReddotShow = e
            }, t.prototype.SetCoreItems = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._customFrameItem ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/Component/CustomFrameItemComponent", cc.Prefab)];
                            case 1:
                                if (e = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._loadAssets.push(e), (t = cc.instantiate(e)).parent = this.node, this._customFrameItem = t.getComponent(b.default), n.label = 2;
                            case 2:
                                return this._customFrameItem.Init(this._frameSubNode.Params), [2]
                        }
                    })
                })
            }, t.prototype.SetPetModel = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e = d.ConfigDataComponent.Instance.GetConfigById(h.PetBase_Config, this._frameSubNode.Params[0]), t = e.UIAvatar + "/Avatar", [4, p.AssetsManager.Instance.LoadAsset(t, cc.Prefab)];
                            case 1:
                                return n = r.sent(), this.isValid ? (this._loadAssets.push(n), (o = cc.instantiate(n)).parent = this.node, o.y = -400, [2]) : (p.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.SetStarPieceModel = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, c;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e = this._frameSubNode.Params[0], t = this._frameSubNode.Params[1], e == S.StarTemplePieceType.Exclusive ? n = 6 : (o = d.ConfigDataComponent.Instance.GetConfigById(h.StarPiece_Config, t), n = o.QualityId), n >= 5 ? (r = "StarPieceAvatar/" + t + "/Avatar", [4, p.AssetsManager.Instance.LoadAsset(r, cc.Prefab)]) : [3, 2];
                            case 1:
                                return i = s.sent(), this.isValid ? (this._loadAssets.push(i), (c = cc.instantiate(i)).parent = this.node, c.y = -190, [3, 4]) : (p.AssetsManager.Instance.UnloadAsset(i), [2]);
                            case 2:
                                return a = "StarPieceIcons/" + t, [4, p.AssetsManager.Instance.LoadAsset(a, cc.SpriteFrame)];
                            case 3:
                                if (l = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(l), [2];
                                (c = new cc.Node).addComponent(cc.Sprite).spriteFrame = l, c.parent = this.node, this.PlayAvatarEffect(c), s.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.PlayAvatarEffect = function(e) {
                cc.Tween.stopAllByTarget(e), e.y = -190, cc.tween(e).to(1, {
                    y: -160
                }, {
                    easing: "sineInOut"
                }).to(1, {
                    y: -190
                }, {
                    easing: "sineInOut"
                }).union().repeatForever().start()
            }, t.prototype.SetEmbattleModel = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e = d.ConfigDataComponent.Instance.GetConfigById(h.MagicCircleBase_Config, this._frameSubNode.Params[0]), t = e.Model + "/HeroAvatar", [4, p.AssetsManager.Instance.LoadAsset(t, cc.Prefab)];
                            case 1:
                                return n = i.sent(), this.isValid ? (this._loadAssets.push(n), (o = cc.instantiate(n)).parent = this.node, o.y = -400, o.scale = 2, o.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), (r = cc.instantiate(n)).parent = this.node, r.y = -400, r.scale = 2, r.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), [2]) : (p.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.LoadFont = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._font ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("Font/EZFont", cc.TTFFont)];
                            case 1:
                                if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._loadAssets.push(this._font), this._font = e, t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.GetMulitLableContent = function(e) {
                var t = this;
                return this._labelContetnMap || (this._labelContetnMap = {}, this._customFrameConfig._Locale.forEach(function(e) {
                    t._labelContetnMap[e.Id] = e
                })), this._labelContetnMap[e].Content
            }, Object.defineProperty(t.prototype, "InitPos", {
                get: function() {
                    return this._initPos
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    p.AssetsManager.Instance.UnloadAsset(e)
                }), this.unscheduleAllCallbacks()
            }, i([u], t)
        }(cc.Component);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "./ActivityBaseContent": "ActivityBaseContent",
        "./CustomFrameItemComponent": "CustomFrameItemComponent",
        "./StarPiecePanel": "StarPiecePanel"
    }],
    CustomGiftPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0ef2eZfkUdIxYdW5z5Mbufn", "CustomGiftPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Channel/ChannelManager"),
            h = e("./GiftPackItem"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.BG = null, t.PurchaseLimit = null, t.AttainLabel = null, t.AttainNumber = null, t.PurchaseButton = null, t.PurchaseButtonLabel = null, t.SellOutTag = null, t.ItemContainer = null, t.RightUpTag = null, t.RightUpTagLabel = null, t.RightUpTagValue = null, t.ScrollView = null, t._items = [], t._packItems = [], t._spriteFrames = [], t
                }
                return r(t, e), t.prototype.SetTitle = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    this.AttainLabel.string = "task_get_score_tag".ToUILocale(), n = ["MallGiftPackPanel/PNG/BGImages/" + e, p.GlobalConfigComponent.GetMultilangKey("MultilangGiftName/" + t)], o = [this.BG, this.Title], r = 0, s.label = 1;
                                case 1:
                                    return r < n.length ? (i = this._spriteFrames, a = r, [4, l.AssetsManager.Instance.LoadAsset(n[r], cc.SpriteFrame)]) : [3, 4];
                                case 2:
                                    if (i[a] = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._spriteFrames[r]), [2];
                                    null != o[r].spriteFrame && l.AssetsManager.Instance.UnloadAsset(o[r].spriteFrame), o[r].spriteFrame = this._spriteFrames[r], s.label = 3;
                                case 3:
                                    return r++, [3, 1];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetPurchaseLimit = function(e, t, n) {
                    var o;
                    return this.PurchaseLimit.node.parent.active = 0 != n, e > 0 || 0 == n ? (o = "<color = ffffff>" + ("mall_buyLimit_" + n).ToUILocale().Fmt(e, t) + "</>", this.SellOutTag.active = !1) : (o = "<color = ffffff>" + ("mall_buyLimit_" + n).ToUILocale().Fmt("<color = ff0000>" + e + "</c>", t) + "</>", this.SellOutTag.active = !0), this.PurchaseButton.node.active = !this.SellOutTag.active, this.PurchaseLimit.string = "<outline color = 000000 width = 2>" + o + "</>", this
                }, t.prototype.SetItems = function(e, t, n) {
                    if (n.length > this._packItems.length) {
                        for (var o = 0; o < this._packItems.length; o++) this.SetPackItem(n, o, e);
                        for (o = this._packItems.length; o < n.length; o++) {
                            var r = t.Get();
                            r.active = !0, r.setParent(this.ItemContainer), this._packItems[o] = r.getComponent(h.default), this.SetPackItem(n, o, e)
                        }
                    } else {
                        for (o = 0; o < n.length; o++) this.SetPackItem(n, o, e);
                        for (o = n.length; o < this._packItems.length; o++) this._packItems[o].node.active = !1, t.Put(this._packItems[o].node);
                        this._packItems.length = n.length
                    }
                    return this.ScrollView.enabled = n.length > 5, this
                }, t.prototype.SetButtonLabel = function(e, t) {
                    return this.SellOutTag.active = e < 0, this.PurchaseButton.node.active = !this.SellOutTag.active, this.PurchaseButton.node.active && (this.AttainNumber.node.parent.active = e > 0, this.AttainNumber.node.parent.active ? (this.PurchaseButtonLabel.string = d.default.Instance.CurrencySymbol + e, this.PurchaseButtonLabel.node.y = 16, this.AttainNumber.string = "x" + t) : (this.PurchaseButtonLabel.string = "shop_buyFree".ToUILocale(), this.PurchaseButtonLabel.node.y = 0)), this
                }, t.prototype.SetTag = function(e) {
                    return null == e || e <= 0 ? (this.RightUpTag.active = !1, this) : (this.RightUpTag.active = !0, this.RightUpTagLabel.string = "mall_giftPack_superValue".ToUILocale(), this.RightUpTagValue.string = e + "%", this)
                }, t.prototype.SetButtonClick = function(e, t) {
                    return this._index = e, this._giftId = t, this.PurchaseButton.node.on("click", this.OnPurchaseButtonClick, this), this
                }, t.prototype.OnPurchaseButtonClick = function() {
                    l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_MALL_BUTTONCLICK, this._index, this._giftId)
                }, t.prototype.onDisable = function() {
                    this.PurchaseButton.node.off("click", this.OnPurchaseButtonClick, this)
                }, t.prototype.SetPackItem = function(e, t, n) {
                    var o = e[t],
                        r = p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, o.Items[0]);
                    this._packItems[t].SetItem(n, o, r.Star).SetMultiple(o.Items[3]), this.PlayEffect(this._packItems[t].GetItem(), o.Items[2])
                }, t.prototype.PlayEffect = function(e, t) {
                    if (null != t && (1 == t || 2 == t || 3 == t || 4 == t)) {
                        var n = t;
                        e.PlayLightingCircleEffect(n)
                    }
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._spriteFrames.length; e++) null != this._spriteFrames[e] && l.AssetsManager.Instance.UnloadAsset(this._spriteFrames[e]);
                    this._spriteFrames = null
                }, i([g(cc.Sprite)], t.prototype, "Title", void 0), i([g(cc.Sprite)], t.prototype, "BG", void 0), i([g(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([g(cc.Label)], t.prototype, "AttainLabel", void 0), i([g(cc.Label)], t.prototype, "AttainNumber", void 0), i([g(cc.Button)], t.prototype, "PurchaseButton", void 0), i([g(cc.Label)], t.prototype, "PurchaseButtonLabel", void 0), i([g(cc.Node)], t.prototype, "SellOutTag", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Node)], t.prototype, "RightUpTag", void 0), i([g(cc.Label)], t.prototype, "RightUpTagLabel", void 0), i([g(cc.Label)], t.prototype, "RightUpTagValue", void 0), i([g(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "./GiftPackItem": "GiftPackItem"
    }],
    CustomGiftPackListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6f48f9UJKxMX7+xEIL9F2sN", "CustomGiftPackListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/ItemComponent"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Channel/ChannelManager"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("./CustomGiftPackPanel"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FixNode = null, t.RewardNodes = [], t.Title = null, t.LimitRichText = null, t.BuyButton = null, t.BuyLabel = null, t.VipGetLabel = null, t.VipLabel = null, t.DiscountNode = null, t.DiscountLabel = null, t.SoldOut = null, t.RedDot = null, t.GrayNode = null, t.SellOut = null, t._itemIndex = -1, t._itemNodes = [], t._itemPrefab = null, t._fixNode = null, t._gift = null, t._model = null, t._clickIndex = -1, t._sortList = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.SellOut.string = "soldOut".ToUILocale()
                }, t.prototype.onEnable = function() {
                    var e = this;
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.RewardNodes.forEach(function(t) {
                        t.node.on("click", e.OnRewardButtonClick, e)
                    })
                }, t.prototype.onDisable = function() {
                    var e = this;
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BuyButton.node.off("click", this.OnBuyButtonClick, this), this.RewardNodes.forEach(function(t) {
                        t.node.off("click", e.OnRewardButtonClick, e)
                    })
                }, t.prototype.initData = function(e, t, n, o) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._configData = e, this._itemIndex = t, this._gift = n, this._sortList = o, this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), [4, this.InitNode()];
                                case 1:
                                    return r.sent(), this.isValid ? (this.SetFixNode(), this.SetInfo(), this.SetRewards(), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.InitNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.RedDot.active = !1, this._itemNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._itemPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = t.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetFixNode = function() {
                    if (this._itemPrefab && (this._fixNode || (this._fixNode = cc.instantiate(this._itemPrefab), this._fixNode.parent = this.FixNode), this._gift)) {
                        var e = this._gift.Items[0].Items[0],
                            t = this._gift.Items[0].Items[1],
                            n = this._fixNode.getComponent(h.ItemComponent);
                        n.Init({
                            ItemId: e,
                            Count: t
                        }, h.ItemComponentType.ItemCommon), m.default.CheckHeroSkinIsMaxLevel(e) ? n.EnableMask() : n.DisableMask()
                    }
                }, t.prototype.SetInfo = function() {
                    var e = this._model.Packs && this._model.Packs[this._gift.Id] && this._model.Packs[this._gift.Id].Items[0] ? this._model.Packs[this._gift.Id].Items[0] : 0;
                    this._gift.LimitCount ? (this.BuyButton.node.active = e < this._gift.LimitCount, this.SoldOut.active = e >= this._gift.LimitCount) : (this.BuyButton.node.active = !0, this.SoldOut.active = !1), this.Title.string = this._gift.Name;
                    var t = this._gift.LimitCount - e >= 0 ? this._gift.LimitCount - e : 0,
                        n = this._gift.LimitCount,
                        o = t > 0 ? "#6eeea7" : "ff0000";
                    n ? (this.LimitRichText.node.active = !0, this.LimitRichText.string = "customGift_limit_times".ToUILocale().Fmt(o, t, n)) : this.LimitRichText.node.active = !1, this.VipGetLabel.string = "task_get_score_tag".ToUILocale(), null == this._gift.Discount || this._gift.Discount <= 0 ? this.DiscountNode.active = !1 : this.DiscountNode.active = e < this._gift.LimitCount, this.DiscountLabel.string = this._gift.Discount + "%" + "mall_giftPack_superValue".ToUILocale(), this.BuyButton.node.active && (this.VipLabel.node.parent.active = g.default.Instance.ExchangeMoney(this._gift.Money) > 0, this.VipLabel.node.parent.active ? (this.BuyLabel.string = g.default.Instance.CurrencySymbol + g.default.Instance.ExchangeMoney(this._gift.Money), this.VipLabel.string = "x" + this._gift.VipPoint) : this.BuyLabel.string = "shop_buyFree".ToUILocale(), this._configData.CustomPart.Count > 0 && ((i = I.default.GetTotalBuyCount(this._configData)) >= this._configData.CustomPart.Count ? d.UIUtlity.SetGray(this.GrayNode, !0, !0) : d.UIUtlity.SetGray(this.GrayNode, !1, !0)));
                    var r = this._model.Packs[this._gift.Id] && this._model.Packs[this._gift.Id].Items[0] ? this._model.Packs[this._gift.Id].Items[0] : 0;
                    if (this._configData.CustomPart.Count > 0) {
                        var i = I.default.GetTotalBuyCount(this._configData);
                        !g.default.Instance.ExchangeMoney(this._gift.Money) && !r && i < this._configData.CustomPart.Count && (this.RedDot.active = !0)
                    } else g.default.Instance.ExchangeMoney(this._gift.Money) || r || (this.RedDot.active = !0)
                }, t.prototype.SetRewards = function() {
                    var e = this,
                        t = this._configData.__Custom.find(function(t) {
                            return t.Id == e._gift.Id
                        });
                    this.RewardNodes.forEach(function(e) {
                        e.node.active = !1
                    }), t && t.RewardIds.forEach(function(t, n) {
                        if (e.RewardNodes[n]) {
                            var o = e.GetRewardSelectIndex(n);
                            e.RewardNodes[n].node.active = !0;
                            var r = e.RewardNodes[n].node.getChildByName("Normal"),
                                i = e.RewardNodes[n].node.getChildByName("Reward"),
                                a = e.RewardNodes[n].node.getChildByName("Change");
                            if (r.active = -1 == o, i.active = o > -1, a.active = o > -1, !e._itemNodes[n]) {
                                var s = cc.instantiate(e._itemPrefab);
                                e._itemNodes[n] = s, e._itemNodes[n].name = n.toString(), e._itemNodes[n].parent = i
                            }
                            if (o > -1) {
                                var l = e._configData.__Reward.find(function(e) {
                                    return e.Id == t
                                });
                                if (l && o < l.Rewards.length) {
                                    var c = l.Rewards[o].Items[0],
                                        u = l.Rewards[o].Items[1];
                                    e._itemNodes[n].active = !0;
                                    var p = e._itemNodes[n].getComponent(h.ItemComponent);
                                    p.Init({
                                        ItemId: c,
                                        Count: u
                                    }, h.ItemComponentType.ItemCommon), m.default.CheckHeroSkinIsMaxLevel(c) ? p.EnableMask() : p.DisableMask()
                                }
                            }
                        }
                    })
                }, t.prototype.InitSelect = function() {
                    this.RewardNodes.forEach(function(e) {
                        e.node.getChildByName("Select").active = !1
                    })
                }, t.prototype.SetSelect = function(e, t) {
                    this.RewardNodes[e] && (this._clickIndex = e, this.RewardNodes[e].node.getChildByName("Select").active = t)
                }, t.prototype.UpdateSelectReward = function(e, t) {
                    this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    var n = 0;
                    if (this._sortList[this._itemIndex] && this._sortList[this._itemIndex].RewardIds[this._clickIndex] && (n = this._sortList[this._itemIndex].RewardIds[this._clickIndex]), n) {
                        var o = this._configData.__Reward.find(function(e) {
                            return e.Id == n
                        });
                        if (o && o.Rewards[t] && this.RewardNodes[e]) {
                            var r = this._itemNodes[e].getComponent(h.ItemComponent);
                            r.Init({
                                ItemId: o.Rewards[t].Items[0],
                                Count: o.Rewards[t].Items[1]
                            }, h.ItemComponentType.ItemCommon), m.default.CheckHeroSkinIsMaxLevel(o.Rewards[t].Items[0]) ? r.EnableMask() : r.DisableMask();
                            var i = this.RewardNodes[e].node.getChildByName("Normal"),
                                a = this.RewardNodes[e].node.getChildByName("Reward"),
                                s = this.RewardNodes[e].node.getChildByName("Change");
                            i.active = !1, a.active = !0, s.active = !0, this._itemNodes[e].active = !0
                        }
                    }
                }, t.prototype.GetRewardSelectIndex = function(e) {
                    var t = this;
                    this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    var n = this._configData.__Custom.findIndex(function(e) {
                        return e.Id == t._sortList[t._itemIndex].Id
                    });
                    return n > -1 && this._model.Int2DArray[n] && this._model.Int2DArray[n].Items.length > e && this._model.Int2DArray[n].Items[e] > -1 ? this._model.Int2DArray[n].Items[e] : -1
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.FixNode.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t), -1 != this._itemNodes.indexOf(t)) {
                        var n = e;
                        l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_CLICK_ITEM_REWARD, this._itemIndex, n, t)
                    }
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = this;
                    this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    var t = this._model.Packs && this._model.Packs[this._gift.Id] && this._model.Packs[this._gift.Id].Items[0] ? this._model.Packs[this._gift.Id].Items[0] : 0;
                    if (!(this._gift.LimitCount && t >= this._gift.LimitCount)) {
                        var n = !0,
                            o = this._configData.__Custom.findIndex(function(t) {
                                return t.Id == e._sortList[e._itemIndex].Id
                            });
                        if (this._model.Int2DArray[o] && this._model.Int2DArray[o].Items.length > 0) {
                            for (var r = 0; r < this._model.Int2DArray[o].Items.length; r++)
                                if (this._model.Int2DArray[o].Items[r] < 0) {
                                    n = !1;
                                    break
                                }
                        } else n = !1;
                        var i = I.default.GetTotalBuyCount(this._configData);
                        if (n) {
                            var a = this.CheckSkinIsMaxLevel(),
                                s = function() {
                                    if (e._configData.CustomPart.Count > 0) {
                                        var t = e._configData.CustomPart.Count - i > 0 ? e._configData.CustomPart.Count - i : 0;
                                        t > 0 ? d.UIUtlity.ShowHintPanel(null, "customGiftPack_buy_limit_desc".ToUILocale().Fmt(t), "", null, "", function() {
                                            g.default.Instance.Pay(e._gift.Id, e._configData._id)
                                        }) : d.UIUtlity.ShowFloatingHint("customGiftPack_count_max".ToUILocale())
                                    } else g.default.Instance.Pay(e._gift.Id, e._configData._id)
                                };
                            a ? d.UIUtlity.ShowHintPanel(null, "customGift_maxLevel_buy_hint".ToUILocale(), "", null, "", function() {
                                s()
                            }) : s()
                        } else this._configData.CustomPart.Count > 0 && i >= this._configData.CustomPart.Count ? d.UIUtlity.ShowFloatingHint("customGiftPack_count_max".ToUILocale()) : d.UIUtlity.ShowFloatingHint("customGift_select_first".ToUILocale())
                    }
                }, t.prototype.CheckSkinIsMaxLevel = function() {
                    var e = this,
                        t = !1,
                        n = this._configData.__Custom.find(function(t) {
                            return t.Id == e._gift.Id
                        });
                    return n && n.RewardIds.forEach(function(n, o) {
                        if (e.RewardNodes[o]) {
                            var r = e.GetRewardSelectIndex(o);
                            if (r > -1) {
                                var i = e._configData.__Reward.find(function(e) {
                                    return e.Id == n
                                });
                                if (i && r < i.Rewards.length) {
                                    var a = i.Rewards[r].Items[0];
                                    t = m.default.CheckHeroSkinIsMaxLevel(a)
                                }
                            }
                        }
                    }), t
                }, t.prototype.OnRewardButtonClick = function(e) {
                    if (e.node && e.node.name) {
                        this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                        var t = this._model.Packs && this._model.Packs[this._gift.Id] && this._model.Packs[this._gift.Id].Items[0] ? this._model.Packs[this._gift.Id].Items[0] : 0;
                        if (this._gift.LimitCount && t >= this._gift.LimitCount) d.UIUtlity.ShowFloatingHint("custom_giftPack_cant_select".ToUILocale());
                        else {
                            var n = Number(e.node.name);
                            l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_CLICK_ITEM_REWARD, this._itemIndex, n, e.node)
                        }
                    }
                }, t.prototype.onDestroy = function() {
                    f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemPrefab = null, this._fixNode = null, this._itemNodes = []
                }, i([v(cc.Node)], t.prototype, "FixNode", void 0), i([v(cc.Button)], t.prototype, "RewardNodes", void 0), i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.RichText)], t.prototype, "LimitRichText", void 0), i([v(cc.Button)], t.prototype, "BuyButton", void 0), i([v(cc.Label)], t.prototype, "BuyLabel", void 0), i([v(cc.Label)], t.prototype, "VipGetLabel", void 0), i([v(cc.Label)], t.prototype, "VipLabel", void 0), i([v(cc.Node)], t.prototype, "DiscountNode", void 0), i([v(cc.Label)], t.prototype, "DiscountLabel", void 0), i([v(cc.Node)], t.prototype, "SoldOut", void 0), i([v(cc.Node)], t.prototype, "RedDot", void 0), i([v(cc.Node)], t.prototype, "GrayNode", void 0), i([v(cc.Label)], t.prototype, "SellOut", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CustomGiftPackPanel": "CustomGiftPackPanel"
    }],
    CustomGiftPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b1cefkkH1JDSL4yvBrhIrvg", "CustomGiftPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("./CustomGiftPackListItem"),
            f = e("../../Auxiliary/GameRecord"),
            y = e("../../Components/Components"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.BgNode = null, t.ActivityTimeLabel = null, t.TimeLabel = null, t.ScrollViewBgNode = null, t.ScrollView = null, t.ScrollViewMaskNode = null, t.Layout = null, t.MaskHint = null, t._cellPrefab = null, t._deadLine = 0, t._itemNodes = [], t._model = null, t._sortList = [], t.offsetY = 212, t.maxHeight = 984, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CLICK_ITEM_REWARD, this.UpdateSelectNodeIndex, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_REFRESH_CUSTOMGIFT_SELECT, this.UpdateSelectReward, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CLICK_ITEM_REWARD, this.UpdateSelectNodeIndex, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_REFRESH_CUSTOMGIFT_SELECT, this.UpdateSelectReward, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleCustomGiftPack/CustomGiftPackListItem", cc.Prefab)];
                                case 1:
                                    return t._cellPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    n && (this._configData = c.DataCenter.Instance.ActivityConfigs[n], this._deadLine = p.default.Instance.ComputeDeadTime(this._configData.Common), this.TitleLabel.string = this._configData.Common.Title)
                }, t.prototype.InitUI = function() {
                    this.ActivityTimeLabel.string = "secretArea_activeTime".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), f.default.SetItem(f.GameRecordDefine.CustomGiftPackRedDot, y.RpcComponent.Instance.ServerTime), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._configData._id), this.SetUIContetn()
                }, t.prototype.SetUIContetn = function() {
                    this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1), this.InitNodes(), this.SetSortList(), this.SetItemList()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetSortList = function() {
                    var e = this,
                        t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    this._sortList = [], this._configData.__Custom.forEach(function(t) {
                        e._configData._Packs.find(function(e) {
                            return e.Id == t.Id
                        }) && e._sortList.push(t)
                    }), t && t.Packs && this._sortList.sort(function(e, n) {
                        var o = this._configData._Packs.find(function(t) {
                                return t.Id == e.Id
                            }),
                            r = this._configData._Packs.find(function(e) {
                                return e.Id == n.Id
                            }),
                            i = t.Packs[o.Id.toString()] && t.Packs[o.Id.toString()].Items[0] ? t.Packs[o.Id.toString()].Items[0] : 0,
                            a = t.Packs[r.Id.toString()] && t.Packs[r.Id.toString()].Items[0] ? t.Packs[r.Id.toString()].Items[0] : 0;
                        return i >= o.LimitCount && (a < r.LimitCount || !r.LimitCount) ? 1 : (i < o.LimitCount || !o.LimitCount) && a >= r.LimitCount ? -1 : void 0
                    }.bind(this))
                }, t.GetTotalBuyCount = function(e) {
                    var t = 0,
                        n = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, e._id);
                    return e.__Custom.forEach(function(o) {
                        var r = e._Packs.find(function(e) {
                            return e.Id == o.Id
                        });
                        if (r) {
                            var i = n.Packs[r.Id.toString()] && n.Packs[r.Id.toString()].Items[0] ? n.Packs[r.Id.toString()].Items[0] : 0;
                            t += i
                        }
                    }), t
                }, t.prototype.SetBgHeight = function() {
                    var e = this;
                    this._configData._Packs.length < 5 ? (this.ScrollViewBgNode.height = 14 + this.offsetY * this._configData._Packs.length, this.ScrollView.node.height = this.ScrollViewBgNode.height - 24, this.ScrollViewMaskNode.height = this.ScrollViewBgNode.height - 24) : this.ScrollViewBgNode.height = this.maxHeight, this.ScrollView.node.height = this.ScrollViewBgNode.height - 24, this.ScrollViewMaskNode.height = this.ScrollViewBgNode.height - 24, this.scheduleOnce(function() {
                        e.BgNode.getComponent(cc.Layout).updateLayout(), e.MaskHint.y = -e.BgNode.height / 2 - 40
                    }, 0)
                }, t.prototype.SetItemList = function() {
                    var e = this;
                    this._sortList.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._cellPrefab);
                            e._itemNodes[n] = o, e._itemNodes[n].parent = e.Layout.node
                        }
                        var r = e._configData._Packs.find(function(e) {
                            return e.Id == t.Id
                        });
                        r ? (e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(h.default).initData(e._configData, n, r, e._sortList)) : e._itemNodes[n].active = !1
                    })
                }, t.prototype.UpdateSelectNodeIndex = function(e, t) {
                    this._itemNodes.forEach(function(n, o) {
                        n.getComponent(h.default).InitSelect(), o == e && n.getComponent(h.default).SetSelect(t, !1)
                    });
                    var n = this.GetRewardSelectIndex(e, t),
                        o = {
                            Type: 0
                        };
                    o.ConfigData = this._configData, o.ClickIndex = t, o.SelectIndex = n, o.ItemIndex = e, o.SortList = this._sortList, g.UIManager.Instance.ShowUIPanel(m.PanelConfig.CustomGiftPackRewardPanel.Path, o)
                }, t.prototype.UpdateSelectReward = function(e, t, n) {
                    this._itemNodes[e].getComponent(h.default).UpdateSelectReward(t, n)
                }, t.prototype.GetRewardSelectIndex = function(e, t) {
                    var n = this;
                    if (this._sortList[e]) {
                        var o = this._configData.__Custom.findIndex(function(t) {
                            return t.Id == n._sortList[e].Id
                        });
                        if (o > -1 && (this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), this._model.Int2DArray[o] && this._model.Int2DArray[o].Items.length > t && this._model.Int2DArray[o].Items[t] > -1)) return this._model.Int2DArray[o].Items[t]
                    }
                    return -1
                }, t.prototype.CountDownActivityTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 && l.UIManager.Instance.BackUIPanel(), this.TimeLabel.string = "explore_time".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(t))
                }, t.prototype.onDestroy = function() {
                    this._itemNodes = [], this.unscheduleAllCallbacks()
                }, i([C(cc.Label)], t.prototype, "TitleLabel", void 0), i([C(cc.Node)], t.prototype, "BgNode", void 0), i([C(cc.Label)], t.prototype, "ActivityTimeLabel", void 0), i([C(cc.Label)], t.prototype, "TimeLabel", void 0), i([C(cc.Node)], t.prototype, "ScrollViewBgNode", void 0), i([C(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([C(cc.Node)], t.prototype, "ScrollViewMaskNode", void 0), i([C(cc.Layout)], t.prototype, "Layout", void 0), i([C(cc.Node)], t.prototype, "MaskHint", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./CustomGiftPackListItem": "CustomGiftPackListItem"
    }],
    CustomGiftPackRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a05655SwKhHRJEh2LX3q5dI", "CustomGiftPackRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/ItemComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Tag = null, t.RewardNode = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t._itemPrefab = null, t._rewardNodes = [], t._clickIndex = -1, t._selectIndex = -1, t._color624d3c = new cc.Color(98, 78, 60), t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._itemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)]);
                                case 1:
                                    t._itemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "custom_giftPack_select".ToUILocale(), this.Tag.string = "custom_giftPack_please_select".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale(), this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0], this._clickIndex = this._data.ClickIndex, this._selectIndex = this._data.SelectIndex, this.InitNodes(), this.SetRewards()
                }, t.prototype.InitNodes = function() {
                    this._rewardNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function() {
                            return e = [], 0 == this._data.Type ? (t = 0, this._data.SortList[this._data.ItemIndex] && this._data.SortList[this._data.ItemIndex].RewardIds[this._clickIndex] && (t = this._data.SortList[this._data.ItemIndex].RewardIds[this._clickIndex]), t && (n = this._data.ConfigData.__Reward.find(function(e) {
                                return e.Id == t
                            })) && (e = n.Rewards)) : e = this._data.Rewards || [], e.forEach(function(e, t) {
                                if (!o._rewardNodes[t]) {
                                    var n = cc.instantiate(o._itemPrefab),
                                        r = n.getComponent(h.ItemComponent);
                                    r.Name.node.color = o._color624d3c, r.Name.getComponent(cc.LabelOutline).enabled = !1, o._rewardNodes[t] = n, o._rewardNodes[t].parent = o.RewardNode
                                }
                                o._rewardNodes[t].name = t.toString(), o._rewardNodes[t].active = !0;
                                var i = o._rewardNodes[t].getComponent(h.ItemComponent);
                                i.Init({
                                    ItemId: e.Items[0],
                                    Count: e.Items[1]
                                }, h.ItemComponentType.ItemWithName), o._selectIndex == t ? i.SetSelectFlagState(!0) : i.SetSelectFlagState(!1), y.default.CheckHeroSkinIsMaxLevel(e.Items[0]) ? i.EnableMask() : o._selectIndex == t ? i.EnableMask() : i.DisableMask()
                            }), [2]
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.RewardNode.children.indexOf(t)) {
                        var n = t.getComponent(h.ItemComponent).ItemId,
                            o = y.default.CheckHeroSkinIsMaxLevel(n);
                        if (f.UIUtlity.ShowItemTip(n, t), o) f.UIUtlity.ShowFloatingHint("customGift_maxLevel_cant_select".ToUILocale());
                        else {
                            if (this._selectIndex >= 0 && this._rewardNodes[this._selectIndex]) {
                                var r = this._rewardNodes[this._selectIndex].getComponent(h.ItemComponent),
                                    i = r.ItemId,
                                    a = y.default.CheckHeroSkinIsMaxLevel(i);
                                r.SetSelectFlagState(!1), a ? r.EnableMask() : r.DisableMask()
                            }
                            this._rewardNodes[e] && this._rewardNodes[e].getComponent(h.ItemComponent).SetSelectFlagState(!0), this._selectIndex = e
                        }
                    }
                }, t.prototype.OnBtnCancelClick = function() {
                    this.Close()
                }, t.prototype.OnBtnSureClick = function() {
                    var e, t = this;
                    this._selectIndex < 0 ? f.UIUtlity.ShowFloatingHint("custom_giftPack_please_select".ToUILocale()) : 0 == this._data.Type ? ((e = new c.Req_Activity_CustomGiftPackSelect).ActivityId = this._data.ConfigData._id, e.PackId = this._data.SortList[this._data.ItemIndex].Id, e.Index = this._clickIndex, e.RewardIndex = this._selectIndex, u.RpcComponent.Instance.Call(e, function() {
                        l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_CUSTOMGIFT_SELECT, t._data.ItemIndex, t._clickIndex, t._selectIndex), t.Close()
                    })) : ((e = new c.Req_Activity_SinglePagePackSelect).ActivityId = this._data.ActivityId, e.PackId = this._data.Pack.Id, e.Index = this._clickIndex, e.RewardIndex = this._selectIndex, u.RpcComponent.Instance.Call(e, function() {
                        l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_SINGLEPACK_SELECT, t._data.Pack, t._clickIndex), t.Close()
                    }))
                }, t.prototype.onDestroy = function() {
                    this._rewardNodes = [], this._data.ItemIndex = -1, this._clickIndex = -1, this._selectIndex = -1
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Label)], t.prototype, "Tag", void 0), i([I(cc.Node)], t.prototype, "RewardNode", void 0), i([I(cc.Button)], t.prototype, "BtnCancel", void 0), i([I(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([I(cc.Button)], t.prototype, "BtnSure", void 0), i([I(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    CustomLayout: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3c1b8DTQ25KCJO4jGUmLHpy", "CustomLayout");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.Up = 1] = "Up", e[e.Down = 2] = "Down"
        })(l || (l = {})),
        function(e) {
            e[e.Top_Bottom = 0] = "Top_Bottom", e[e.Bottom_Top = 1] = "Bottom_Top"
        }(c || (c = {}));
        var y = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LayoutMode = c.Top_Bottom, t.TopPadding = 0, t.ScrollView = null, t.CellWidth = 0, t.CellHeight = 0, t.SpaceX = 0, t.SpaceY = 0, t._layOutScale = 1, t._dataCount = 13, t._cellsPosition = new Map, t._lastScrollLevel = 0, t._refreshData = new Map, t
            }
            return r(t, e), t.prototype.Init = function(e, t) {
                return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this.ScrollView.node.on("scrolling", this.OnScrolling, this), this._layOutScale = this.node.scale, this._cellPrefab = e, this._cellAssetPools = [], this._needFill = t, [2]
                    })
                })
            }, t.prototype.RenderLayOut = function(e, t, n, o) {
                void 0 === t && (t = 0), void 0 === n && (n = 0), this.ScrollView.scrollToTop(), this.ScrollView.stopAutoScroll(), this._dataCount = e, this._offsetSpaceY = n, this.ResetData(), this.ResetAssets(), this.CalculateLayout(), this.CalculateCellPosition(), this.InstantiateCellAssets(), this.RenderScrollview(t, o)
            }, t.prototype.ReRender = function() {
                var e, t = Math.min(this._lastScrollLevel, this._maxOffsetLevelLimit) * this._displayColum,
                    n = t + this._displayColum * this._displayRow;
                n = Math.min(n, this._dataCount), t = t < 0 ? 0 : t, this._refreshData.clear(), e = this._needFill ? n : Math.min(n, this._dataCount);
                for (var o = 0, r = t; r < e; r++) {
                    switch (this.LayoutMode) {
                        case c.Top_Bottom:
                            this._refreshData.set(r, this.node.children[o]);
                            break;
                        case c.Bottom_Top:
                            this._refreshData.set(this._dataCount - 1 - r, this.node.children[o])
                    }
                    o++
                }
                u.Game.EventDispatcher.Emit(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this._refreshData, this)
            }, t.prototype.ResetData = function() {
                this._lastScrollOffset = 0, this._lastScrollLevel = 0, this._curOffestLevel = 0, this._scrollType = l.None
            }, t.prototype.ResetAssets = function() {
                for (; this.node.childrenCount > 0;) {
                    var e = this.node.children[0];
                    this._cellAssetPools.push(e), e.scale = 1, this.node.removeChild(e, !1)
                }
            }, t.prototype.CalculateLayout = function() {
                var e = this.CellWidth * this._layOutScale;
                this._scaleCellHeight = this.CellHeight * this._layOutScale;
                var t, n = this.SpaceX * this._layOutScale;
                this._scaleSpaceY = (this.SpaceY + this._offsetSpaceY) * this._layOutScale, this._displayColum = Math.floor((this.ScrollView.node.width + n) / e), this._displayRow = Math.ceil((this.ScrollView.node.height + this._scaleSpaceY) / (this._scaleCellHeight + this._scaleSpaceY)) + 1, this._totalRow = Math.ceil(this._dataCount / this._displayColum), this._needFill ? this._totalRow = Math.max(this._totalRow, this._displayRow) : this._displayRow = Math.min(this._totalRow, this._displayRow), this._maxOffsetLevelLimit = this._totalRow - this._displayRow, this._displayCellCount = this._displayColum * this._displayRow, this.node.width = ((e + n) * this._displayColum - this.SpaceX) / this._layOutScale, t = this._needFill ? Math.max(this._displayRow, this._totalRow) : this._totalRow, this._totalCellCount = this._displayColum * t, this.node.height = (this._scaleCellHeight + this._scaleSpaceY) * t - this._scaleSpaceY + this.TopPadding
            }, t.prototype.CalculateCellPosition = function() {
                this._cellsPosition.clear();
                var e, t = this.CellHeight / 2 + this.TopPadding,
                    n = [],
                    o = this._displayColum % 2,
                    r = Math.floor(this._displayColum / 2),
                    i = this.node.width / this._displayColum;
                e = 0 === o ? i / 2 : 0;
                for (var a = 0; a < this._displayColum; a++) n.push((a - r) * i + e);
                var s = Math.max(this._totalRow, this._displayRow);
                for (a = 0; a < s; a++) {
                    for (var l = [], c = 0; c < n.length; c++) {
                        var u = -(t + a * (this.CellHeight + this.SpaceY + this._offsetSpaceY)),
                            p = {
                                x: n[c],
                                y: u
                            };
                        l.push(p)
                    }
                    this._cellsPosition.set(a, l)
                }
            }, t.prototype.InstantiateCellAssets = function() {
                var e = this._cellAssetPools.length;
                if (e < this._displayCellCount)
                    for (var t = this._displayCellCount - e, n = 0; n < t; n++) {
                        var o = cc.instantiate(this._cellPrefab);
                        this._cellAssetPools.push(o)
                    }
            }, t.prototype.RenderScrollview = function(e, t) {
                var n, o = this;
                void 0 === e && (e = 0);
                var r = Math.floor(e / this._displayColum),
                    i = 0;
                switch (this.LayoutMode) {
                    case c.Top_Bottom:
                        if (0 == (n = Math.floor(e / this._displayColum))) i = 0;
                        else {
                            var a = n + this._displayRow;
                            i = a < this._totalRow ? n * this._displayColum : (n -= a - this._totalRow) * this._displayColum
                        }
                        this.RenderItems(i), this.NotifyCellsIndex(i, this._displayCellCount + i), this.timeOutIndex = setTimeout(function() {
                            t ? o.ScrollView.scrollToOffset(t, .1) : 0 == r ? o.ScrollView.scrollToTop() : (o.ScrollView.scrollToOffset(cc.v2(0, (o._scaleCellHeight + o._scaleSpaceY) * r)), o._lastScrollLevel = r, o._lastScrollOffset = o.ScrollView.getScrollOffset().y)
                        }, 1e3 * cc.director.getDeltaTime());
                        break;
                    case c.Bottom_Top:
                        var s = Math.floor((this._dataCount - e - 1) / this._displayColum),
                            l = (n = s) + this._displayRow;
                        i = l < this._totalRow ? n * this._displayColum : (n -= l - this._totalRow) * this._displayColum, this.RenderItems(i), this.NotifyCellsIndex(i, this._displayCellCount + i), this.timeOutIndex = setTimeout(function() {
                            o._totalRow - s < o._displayRow - 1 ? o.ScrollView.scrollToBottom() : o.ScrollView.scrollToOffset(cc.v2(0, (o._scaleCellHeight + o._scaleSpaceY) * n)), o._lastScrollLevel = n, o._lastScrollOffset = o.ScrollView.getScrollOffset().y
                        }, 1e3 * cc.director.getDeltaTime())
                }
            }, t.prototype.RenderItems = function(e) {
                for (var t = 0, n = e; t < this._displayCellCount;) {
                    var o = Math.floor(n / this._displayColum),
                        r = n - o * this._displayColum;
                    if (++n <= this._dataCount || this._needFill) {
                        var i = this._cellAssetPools.pop(),
                            a = this._cellsPosition.get(o)[r];
                        i.setParent(this.node), i.setPosition(a.x, a.y), i.active = !0
                    }
                    t++
                }
            }, t.prototype.OnScrolling = function() {
                this._lastScrollOffset = this.ScrollView.getScrollOffset().y, this._curOffestLevel = Math.floor(this.ScrollView.getScrollOffset().y / (this._scaleCellHeight + this._scaleSpaceY)), this._curOffestLevel = this._curOffestLevel < 0 ? 0 : this._curOffestLevel, this._curOffestLevel != this._lastScrollLevel && (this._curOffestLevel < this._lastScrollLevel ? this._scrollType = l.Down : this._curOffestLevel > this._lastScrollLevel && (this._scrollType = l.Up), this._lastScrollLevel = this._curOffestLevel, this.RefreshScrollView(), this.CheckState())
            }, t.prototype.OnScrollEnd = function() {}, t.prototype.RefreshScrollView = function() {
                var e, t, n, o, r;
                switch (this._scrollType) {
                    case l.Up:
                        t = -1, e = 0, this._curOffestLevel > this._maxOffsetLevelLimit ? (n = 0, o = 0) : (n = this._displayColum, this._futureScrollLevel = this._curOffestLevel + (this._displayRow - 1), o = (r = this._dataCount - this._futureScrollLevel * this._displayColum) > this._displayColum || this._needFill ? this._displayColum : r);
                        break;
                    case l.Down:
                        t = 0, this._curOffestLevel >= this._maxOffsetLevelLimit ? (n = 0, o = 0, e = 0) : (e = this._displayCellCount - this._displayColum, this._futureScrollLevel = this._curOffestLevel, n = (r = this._dataCount - (this._curOffestLevel + this._displayRow) * this._displayColum) > this._displayColum || this._needFill ? this._displayColum : r, o = this._displayColum)
                }
                if (!(this._futureScrollLevel < 0 || this._futureScrollLevel >= this._totalRow)) {
                    if (-1 == t)
                        for (var i = e; i < e + n; i++) {
                            var a = this.node.children[e];
                            this._cellAssetPools.push(a), a.scale = 1, this.node.removeChild(a, !1)
                        } else
                            for (i = e; i < e + n; i++) {
                                var s = this.node.childrenCount - 1;
                                a = this.node.children[s], this._cellAssetPools.push(a), a.scale = 1, this.node.removeChild(a, !1)
                            }
                    for (i = 0; i < o; i++) {
                        a = this._cellAssetPools.shift(), 0 == t ? (this.node.addChild(a), a.setSiblingIndex(t + i)) : this.node.addChild(a), a.active || (a.active = !0);
                        var c = this._cellsPosition.get(this._futureScrollLevel)[i];
                        a.setPosition(c.x, c.y)
                    }
                    if (o > 0) {
                        var u = this._futureScrollLevel * this._displayColum,
                            p = u + this._displayColum;
                        this.NotifyCellsIndex(u, p)
                    }
                }
            }, t.prototype.NotifyCellsIndex = function(e, t) {
                var n, o;
                switch (e = e < 0 ? 0 : e, this._refreshData.clear(), n = this._needFill ? t : Math.min(t, this._dataCount), this._scrollType) {
                    case l.Up:
                        o = (this._displayRow - 1) * this._displayColum;
                        break;
                    case l.Down:
                    default:
                        o = 0
                }
                for (var r = e; r < n; r++) {
                    switch (this.LayoutMode) {
                        case c.Top_Bottom:
                            this._refreshData.set(r, this.node.children[o]);
                            break;
                        case c.Bottom_Top:
                            this._refreshData.set(this._dataCount - 1 - r, this.node.children[o])
                    }
                    o++
                }
                u.Game.EventDispatcher.Emit(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this._refreshData, this)
            }, t.prototype.CheckState = function() {
                var e = 0,
                    t = this._curOffestLevel;
                this._curOffestLevel > this._maxOffsetLevelLimit && (t = this._maxOffsetLevelLimit);
                for (var n = 0; n < this.node.childrenCount; n++) {
                    var o = this.node.children[n].position.y;
                    if (o != this._cellsPosition.get(t + e)[0].y) {
                        var r, i = this._dataCount - t * this._displayColum;
                        r = i > this._displayColum || this._needFill ? this._displayColum : i, this._refreshData.clear();
                        for (var a = 0; a < r; a++) {
                            var s = (t + e) * this._displayColum + a;
                            if (!(s >= this._dataCount)) {
                                var l = this.node.children[n + a],
                                    d = this._cellsPosition.get(t + e)[a];
                                switch (l.setPosition(d.x, d.y), o = d.y, this.LayoutMode) {
                                    case c.Top_Bottom:
                                        this._refreshData.set(s, l);
                                        break;
                                    case c.Bottom_Top:
                                        this._refreshData.set(this._dataCount - 1 - s, l)
                                }
                            }
                        }
                        u.Game.EventDispatcher.Emit(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this._refreshData, this)
                    }
                    n += this._displayColum - 1, e++
                }
            }, t.prototype.Clear = function() {
                if (this.node.removeAllChildren(), this._cellAssetPools) {
                    for (var e = this._cellAssetPools.length - 1; e >= 0; e--) this._cellAssetPools[e].destroy();
                    this._cellAssetPools = []
                }
            }, t.prototype.onDestroy = function() {
                this.timeOutIndex && clearTimeout(this.timeOutIndex)
            }, i([f({
                type: cc.Enum(c),
                displayName: "\u5e03\u5c40\u65b9\u5f0f"
            })], t.prototype, "LayoutMode", void 0), i([f({
                type: cc.Integer,
                displayName: "Top Padding"
            })], t.prototype, "TopPadding", void 0), i([f(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([f], t.prototype, "CellWidth", void 0), i([f], t.prototype, "CellHeight", void 0), i([f], t.prototype, "SpaceX", void 0), i([f], t.prototype, "SpaceY", void 0), i([h], t)
        }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    CustomMask: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca4dcvgfOhJq6dbctR2URoR", "CustomMask");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._cornerRadius = 100, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "CornerRadius", {
                    get: function() {
                        return this._cornerRadius
                    },
                    set: function(e) {
                        this._cornerRadius = e, this._updateGraphics()
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    e.prototype.onEnable.call(this), this.type = cc.Mask.Type.RECT
                }, t.prototype._updateGraphics = function() {
                    if (this.enabledInHierarchy) {
                        var e = this.node,
                            t = this._graphics;
                        t.clear(!1);
                        var n = e._contentSize.width,
                            o = e._contentSize.height,
                            r = -n * e._anchorPoint.x,
                            i = -o * e._anchorPoint.y,
                            a = this._cornerRadius;
                        t.moveTo(r, i + a);
                        var s = this.segements / 4;
                        this.DrawCircle(r, i, a, s, .5 * Math.PI, 0), t.lineTo(r + n - a, i), this.DrawCircle(r + n, i, a, s, Math.PI, .5 * Math.PI), t.lineTo(r + n, i + o - a), this.DrawCircle(r + n, i + o, a, s, 1.5 * Math.PI, Math.PI), t.lineTo(r + a, i + o), this.DrawCircle(r, i + o, a, s, 0, .5 * -Math.PI), t.lineTo(r, i + a), t.close(), t.fill(), this.setVertsDirty()
                    }
                }, t.prototype.DrawCircle = function(e, t, n, o, r, i) {
                    void 0 === o && (o = 8);
                    for (var a = this._graphics, s = (i - r) / o, l = r, c = 0; c <= o; ++c) a.lineTo(n * Math.cos(l) + e, n * Math.sin(l) + t), l += s
                }, i([l({
                    type: cc.Integer,
                    tooltip: "\u5185\u51f9\u5706\u89d2\u534a\u5f84"
                })], t.prototype, "CornerRadius", null), i([l], t.prototype, "_cornerRadius", void 0), i([s], t)
            }(cc.Mask);
        n.default = c, cc._RF.pop()
    }, {}],
    CustomProgressBar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d0572CzuU9DDq6upWERcX5a", "CustomProgressBar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bar = null, t.Mask = null, t.Container = null, t.barSprite = null, t._progress = .5, t._totalLength = 100, t._reverse = !1, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "TotalLength", {
                    get: function() {
                        return this._totalLength
                    },
                    set: function(e) {
                        this._totalLength = e, this.Container.width = this._totalLength, this.Mask.width = this._totalLength * this._progress, this.RefreshBarSize(), this.Bar.x = 0
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "progress", {
                    get: function() {
                        return this._progress
                    },
                    set: function(e) {
                        this._progress = e, this.Mask.width = Math.min(this._totalLength, this.Bar.width) * this._progress, this.Mask.x = (this.Reverse ? 1 : -1) * this.Bar.width / 2, this.RefreshBarSize()
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Reverse", {
                    get: function() {
                        return this._reverse
                    },
                    set: function(e) {
                        this._reverse = e, this._reverse ? (this.Mask.x = this._totalLength / 2, this.Mask.anchorX = 1, this.Bar.anchorX = 1) : (this.Mask.x = -this._totalLength / 2, this.Mask.anchorX = 0, this.Bar.anchorX = 0), this.Bar.x = -1 * this.Bar.x
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    this._totalLength = this.Container.width
                }, t.prototype.RefreshBarSize = function() {
                    this.Bar.getComponent(cc.Widget).updateAlignment()
                }, i([l], t.prototype, "TotalLength", null), i([l({
                    type: cc.Float,
                    min: 0,
                    max: 1,
                    slide: !0,
                    step: .01
                })], t.prototype, "progress", null), i([l], t.prototype, "Reverse", null), i([l(cc.Node)], t.prototype, "Bar", void 0), i([l(cc.Node)], t.prototype, "Mask", void 0), i([l(cc.Node)], t.prototype, "Container", void 0), i([l(cc.Sprite)], t.prototype, "barSprite", void 0), i([l], t.prototype, "_progress", void 0), i([l], t.prototype, "_totalLength", void 0), i([l], t.prototype, "_reverse", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    CustomRichText: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a2ddfWSfuBGPrPLJwP4xcia", "CustomRichText");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.CustomRichText = void 0;
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomText = null, t
                }
                return r(t, e), t.prototype.start = function() {}, t.prototype.Init = function(e) {
                    if (this._textInfo = "", "string" == typeof e) this._textInfo = e;
                    else if (e instanceof Array)
                        for (var t = 0; t < e.length; t++) this.ConfigRichText(e[t]);
                    else this.ConfigRichText(e);
                    this.CustomText.string = this._textInfo
                }, t.prototype.ConfigRichText = function(e) {
                    if (e.msgKey || e.msgInfo && (this._textInfo += e.msgInfo), e.icon)
                        if (e.icon instanceof Array)
                            for (var t = 0; t < e.icon.length; t++) this.ConfigIconInfo(e.icon[t]);
                        else this.ConfigIconInfo(e.icon)
                }, t.prototype.ConfigIconInfo = function(e) {
                    e.itemId || e.name && (this._textInfo += " <img src='" + e.name + "' height=50  width=50/>"), e.count && e.count > 0 && (this._textInfo += "<color=#00ff00>x" + e.count + "</c> ")
                }, t.prototype.Handler = function(e, t) {
                    cc.sys.openURL(t)
                }, i([l(cc.RichText)], t.prototype, "CustomText", void 0), i([s], t)
            }(cc.Component);
        n.CustomRichText = c, cc._RF.pop()
    }, {}],
    CustomTogglePlus: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3c8f58k0O9EDp0ZrfIvDJJo", "CustomTogglePlus");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./CustomToggle"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UnCheckIcon = null, t.CheckIcon = null, t.DisableIcon = null, t
                }
                return r(t, e), t.prototype.Init = function(t, n) {
                    e.prototype.Init.call(this, t), this.UnCheckIcon.spriteFrame = n, this.CheckIcon.spriteFrame = n, this.DisableIcon.spriteFrame = n
                }, i([c(cc.Sprite)], t.prototype, "UnCheckIcon", void 0), i([c(cc.Sprite)], t.prototype, "CheckIcon", void 0), i([c(cc.Sprite)], t.prototype, "DisableIcon", void 0), i([l], t)
            }(a.default);
        n.default = u, cc._RF.pop()
    }, {
        "./CustomToggle": "CustomToggle"
    }],
    CustomToggleRollingLabel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7fb06o6AOhEBZQ1hOauSL6O", "CustomToggleRollingLabel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../Panel/CommonLongLabelRollComponent"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UnCheckLabel = null, t.UnCheckIcon = null, t.CheckLabel = null, t.CheckIcon = null, t.DisableLabel = null, t.DisableIcon = null, t.DisableNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    null != this.DisableNode && this.DisableNode.on(cc.Node.EventType.TOUCH_END, this.OnClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    void 0 === t && (t = 32), this._disableHintInfo = void 0, this.UnCheckLabel.SetUI(e, this.UnCheckLabel.node.width, t), this.CheckLabel.SetUI(e, this.UnCheckLabel.node.width, t), this.DisableLabel.SetUI(e, this.UnCheckLabel.node.width, t), n && (this.UnCheckIcon.spriteFrame = n, this.CheckIcon.spriteFrame = n, this.DisableIcon.spriteFrame = n)
                }, t.prototype.SetInteractable = function(e, t) {
                    this.interactable = e, this.DisableNode.active = !e, this.DisableLabel.node.active = !e, this._disableHintInfo = t
                }, t.prototype.IsToggleCanClick = function() {
                    return !this.DisableNode.active || (this.OnClick(), !1)
                }, t.prototype.OnClick = function() {
                    this._disableHintInfo && a.UIUtlity.ShowFloatingHint(this._disableHintInfo)
                }, i([u(s.default)], t.prototype, "UnCheckLabel", void 0), i([u(cc.Sprite)], t.prototype, "UnCheckIcon", void 0), i([u(s.default)], t.prototype, "CheckLabel", void 0), i([u(cc.Sprite)], t.prototype, "CheckIcon", void 0), i([u(s.default)], t.prototype, "DisableLabel", void 0), i([u(cc.Sprite)], t.prototype, "DisableIcon", void 0), i([u(cc.Node)], t.prototype, "DisableNode", void 0), i([c], t)
            }(cc.Toggle);
        n.default = p, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/CommonLongLabelRollComponent": "CommonLongLabelRollComponent"
    }],
    CustomToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ad223PYAqBGUqmiZb5+G2y0", "CustomToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UnCheckLabel = null, t.CheckLabel = null, t.DisableLabel = null, t.DisableNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    null != this.DisableNode && this.DisableNode.on(cc.Node.EventType.TOUCH_END, this.OnClick, this)
                }, t.prototype.Init = function(e) {
                    this._disableHintInfo = void 0, this.UnCheckLabel.string = e, this.CheckLabel.string = e, this.DisableLabel.string = e
                }, t.prototype.SetInteractable = function(e, t) {
                    this.interactable = e, this.DisableNode.active = !e, this.DisableLabel.node.active = !e, this._disableHintInfo = t, this.UnCheckLabel.node.active = e
                }, t.prototype.OnClick = function() {
                    this._disableHintInfo && a.UIUtlity.ShowFloatingHint(this._disableHintInfo)
                }, t.prototype.SetLabelActive = function(e) {
                    this.interactable ? (this.UnCheckLabel.node.active = !e, this.CheckLabel.node.active = e) : this.UnCheckLabel.node.active = !1
                }, t.prototype.SetLabelFontSize = function(e) {
                    this.UnCheckLabel.fontSize = e, this.CheckLabel.fontSize = e, this.DisableLabel.fontSize = e
                }, i([c(cc.Label)], t.prototype, "UnCheckLabel", void 0), i([c(cc.Label)], t.prototype, "CheckLabel", void 0), i([c(cc.Label)], t.prototype, "DisableLabel", void 0), i([c(cc.Node)], t.prototype, "DisableNode", void 0), i([l], t)
            }(cc.Toggle);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    CustomizeMainScenePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fe624maQEVHTbmI/oYHz7tx", "CustomizeMainScenePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/CustomToggle"),
            f = e("../Components/CustomLayout"),
            y = e("../Components/HeroElementGroup"),
            g = e("../../Components/DataCenter"),
            m = e("../../Components/Components"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("./MainSceneCustomItem"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../../Consts/Consts"),
            b = e("../Components/MainSceneHeroHeaderItem"),
            S = e("../../../EZFramework/EZFramework"),
            w = e("../Auxiliary/UIUtlity"),
            P = e("../../RedDot/RedDotManager"),
            A = e("../../Auxiliary/GameRecord"),
            T = e("./HeroInfoPanel"),
            R = e("./HeroSkinPanel"),
            L = e("./CollectionPavilionPanel"),
            k = e("../Components/MainSceneAngelCardItem"),
            O = e("../../../Util/TimeUtil"),
            M = e("../Components/MainSceneNewPersonalityItem"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property,
            E = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0), t.Title = null, t.ToggleScrollView = null, t.Toggles = [], t.HeroElementGroup = null, t.PersonalScrollView = null, t.HeroScrollView = null, t.SceneScrollView = null, t.AngelScrollView = null, t.NewPersonalityScrollView = null, t.PersonalCustomLayout = null, t.HeroCustomLayout = null, t.SceneCustomLayout = null, t.AngelCustomLayout = null, t.NewPersonalityCustomLayout = null, t.PersonalityEmptyLabel = null, t.ConfirmBtn = null, t.ConfirmBtnLabel = null, t.GoToCheckBtn = null, t.GoToCheckBtnLabel = null, t.BottomTip = null, t._ownedPersonalIds = [], t._ownedHeroIds = [], t._ownedNewPersonalityIds = [], t._selectedBackgroundIds = [], t._currentSelectedId = -1, t._allAvailabelHeroIds = {}, t._allAvailabelPersonalIds = {}, t._personalIdMap = {}, t._isSelectedItemLocked = !1, t._sceneIdsSeen = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.OnSelectedChanged, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.OnSelectedChanged, this)
                }, t.prototype.Close = function(t) {
                    var n = this;
                    e.prototype.Close.call(this, t);
                    var o = [];
                    this.ConfigOwnHeroIds(), o = o.concat(this._ownedHeroIds), this.ConfigUnLockPersonalData(), o = o.concat(this._ownedPersonalIds), this.ConfigOwnNewPersonalityIds(), o = o.concat(this._ownedNewPersonalityIds), this._sceneItemConfigs.forEach(function(e) {
                        o.push(e.Id)
                    }), this._angelAvatarConfigs && this._angelAvatarConfigs.forEach(function(e) {
                        var t = g.DataCenter.Instance.GetDataById(u.UserAngel_Model, e.Angel);
                        t && n._angelAvatarNeedStarLevel[e.Id] <= t.StarLevel && o.push(e.Id)
                    }), A.default.SetItem(A.GameRecordDefine.CustomizeMainSceneIdsSeen, JSON.stringify(o)), P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode0.NeedRefresh = !0, P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode1.NeedRefresh = !0, P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode2.NeedRefresh = !0, P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode3.NeedRefresh = !0, P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode4.NeedRefresh = !0, P.RedDotManager.Instance.RedDot.PlayerHeadNode.NeedRefresh = !0, P.RedDotManager.Instance.RefreshRedDotNode(P.RedDotManager.Instance.RedDot.CustomizeMainSceneNode)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CustomizeMainScenePanel/MainSceneCustomItem"), n = this.LoadDynamicAsset("CustomizeMainScenePanel/MainSceneHeroHeaderItem"), o = this.LoadDynamicAsset("CustomizeMainScenePanel/MainSceneAngelCardItem", cc.Prefab), r = this.LoadDynamicAsset("CustomizeMainScenePanel/MainSceneNewPersonalityItem", cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._mainSceneCustomItem = e[0], i._cardPrefab = e[1], i._angelCardPrefab = e[2], i._newPersonalityCardPrefab = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "Personalise_title".ToUILocale(), this.PersonalityEmptyLabel.string = "CustomizeMainScene_PersonalityEmpty".ToUILocale(), this.ConfirmBtnLabel.string = "CustomizeMainScene_ConfirmButton".ToUILocale(), this.ConfirmBtn.node.on("click", this.OnConfirmButtonClicked, this), this.GoToCheckBtnLabel.string = "openServer_goLook".ToUILocale(), this.GoToCheckBtn.node.on("click", this.OnGoToCheckButtonClicked, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = A.default.GetItem(A.GameRecordDefine.CustomizeMainSceneIdsSeen);
                    this._sceneIdsSeen = n ? JSON.parse(n) : [], this.ConfigSelectedData(), this.ConfigOwnHeroIds(), this.ConfigOwnedSceneData()
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this._currentElement = -1
                }, t.prototype.DisPlay = function(t) {
                    var n;
                    if (void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), !t) {
                        for (var o = [P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode0, P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode1, P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode2, P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode3, P.RedDotManager.Instance.RedDot.CustomizeMainSceneTagNode4], r = [c.GameModuleType.Personality, null, null, c.GameModuleType.Angel, c.GameModuleType.NewPersonalityMainScene], i = 0, a = 0; a < this.Toggles.length; a++) {
                            var s = this.Toggles[a],
                                l = C.default.Instance.IsGameModuleOpen(r[a]);
                            if (!r[a] || l) {
                                if (null == n && (n = a), s.Init(("CustomizeMainScene_Toggle" + a).ToUILocale()), i++, r[a]) {
                                    var u = C.default.Instance.IsGameModuleUnlock(r[a]);
                                    if (!u[0]) {
                                        s.SetInteractable(!1, u[1]);
                                        continue
                                    }
                                }
                                s.node.on("toggle", this.OnSwitchTab, this), P.RedDotManager.Instance.Bind(s.node, o[a])
                            } else s.node.active = !1
                        }
                        this.ToggleScrollView.enabled = i > 4, i > 4 && this.ToggleScrollView.scrollToLeft()
                    }
                    var p = null == n ? this._currentTab : n;
                    this._currentTab = v.CustomizeMainSceneType.None;
                    var d = this.Toggles[p];
                    d.isChecked = !0, this.OnSwitchTab(d)
                }, t.prototype.ConfigSelectedData = function() {
                    if (this._selectedBackgroundIds = g.DataCenter.Instance.GetArrayData(v.UserDataKey.MainBackground), !this._selectedBackgroundIds || 0 == this._selectedBackgroundIds.length) {
                        var e = m.ConfigDataComponent.Instance.GetArrayConfig(p.ItemMainSceneBackground_Config)[0].Id;
                        this._selectedBackgroundIds = [0, 0, e]
                    }
                }, t.prototype.ConfigOwnedSceneData = function() {
                    var e = this;
                    this._sceneItemConfigs = [], m.ConfigDataComponent.Instance.GetArrayConfig(p.ItemMainSceneBackground_Config).forEach(function(t) {
                        C.default.GetMainSceneLockState(t.Id) || e._sceneItemConfigs.push(t)
                    }), this._sceneItemConfigs.sort(function(e, t) {
                        return e.Order - t.Order
                    })
                }, t.prototype.ConfigAllAvailabelHeroData = function() {
                    var e = this;
                    this._allAvailabelHeroIds = {}, this._allAvailabelHeroIds[v.HeroElementType.All] = [], this._allHeroConfigs || (this._allHeroConfigs = m.ConfigDataComponent.Instance.GetArrayConfig(p.HeroBase_Config), this._allHeroConfigs.sort(this.SortAvailabelHeroIds.bind(this))), this._allHeroConfigs.forEach(function(t) {
                        C.default.IsHeroShownAvailable(t) && t.Type == c.HeroRoleType.Hero && (e._allAvailabelHeroIds[t.ElementType] || (e._allAvailabelHeroIds[t.ElementType] = []), e._allAvailabelHeroIds[t.ElementType].push(t.Id), e._allAvailabelHeroIds[v.HeroElementType.All].push(t.Id))
                    }), m.ConfigDataComponent.Instance.GetArrayConfig(p.HeroSkin_Config).forEach(function(t) {
                        if (C.default.IsSkinShownAvailable(t)) {
                            var n = g.DataCenter.Instance.GetDataById(u.HeroSkin_Model, t.Id),
                                o = t.HeroId,
                                r = m.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, o);
                            if (n) {
                                var i = e._allAvailabelHeroIds[v.HeroElementType.All].indexOf(o);
                                i >= 0 && e._allAvailabelHeroIds[v.HeroElementType.All].splice(i + 1, 0, t.Id);
                                var a = e._allAvailabelHeroIds[r.ElementType].indexOf(o);
                                a >= 0 && e._allAvailabelHeroIds[r.ElementType].splice(a + 1, 0, t.Id)
                            } else e._allAvailabelHeroIds[v.HeroElementType.All].push(t.Id), e._allAvailabelHeroIds[r.ElementType].push(t.Id)
                        }
                    })
                }, t.prototype.SortAvailabelHeroIds = function(e, t) {
                    var n = g.DataCenter.Instance.GetDataById(u.HeroInfo_Model, e.Id),
                        o = g.DataCenter.Instance.GetDataById(u.HeroInfo_Model, t.Id);
                    return n && o ? e.ElementType != t.ElementType ? e.ElementType - t.ElementType : t.Id - e.Id : n ? -1 : o ? 1 : e.ElementType != t.ElementType ? e.ElementType - t.ElementType : t.Id - e.Id
                }, t.prototype.ConfigAllAvailabelPersonalData = function() {
                    var e = this;
                    this._allAvailabelPersonalIds = {}, this._allHeroConfigs || (this._allHeroConfigs = m.ConfigDataComponent.Instance.GetArrayConfig(p.HeroBase_Config), this._allHeroConfigs.sort(this.SortAvailabelHeroIds.bind(this))), this._allAvailabelPersonalIds[v.HeroElementType.All] = [], this._allHeroConfigs.forEach(function(t) {
                        C.default.IsHeroShownAvailable(t) && t.AdultPictures && t.AdultPictures.forEach(function(n) {
                            e._personalIdMap[n.Items[0]] = t.Id, e._allAvailabelPersonalIds[v.HeroElementType.All].push(n.Items[0])
                        })
                    }), this._allAvailabelPersonalIds[v.HeroElementType.All].sort(this.SortAvailabelPersonalIds.bind(this));
                    for (var t = 0; t < this._allAvailabelPersonalIds[v.HeroElementType.All].length; t++) {
                        var n = this._allAvailabelPersonalIds[v.HeroElementType.All][t],
                            o = this._personalIdMap[n],
                            r = m.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, o);
                        this._allAvailabelPersonalIds[r.ElementType] || (this._allAvailabelPersonalIds[r.ElementType] = []), this._allAvailabelPersonalIds[r.ElementType].push(n)
                    }
                }, t.prototype.SortAvailabelPersonalIds = function(e, t) {
                    var n = this._personalIdMap[e],
                        o = this._personalIdMap[t],
                        r = m.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, n),
                        i = m.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, o),
                        a = C.default.GetPersonalRequiredStar(r, e),
                        s = C.default.GetPersonalRequiredStar(i, t),
                        l = g.DataCenter.Instance.GetDataById(u.HeroInfo_Model, n),
                        c = g.DataCenter.Instance.GetDataById(u.HeroInfo_Model, o),
                        d = l && l.PersonalityStar >= a,
                        h = c && c.PersonalityStar >= s;
                    return d && !h ? -1 : !d && h ? 1 : r.ElementType < i.ElementType ? -1 : r.ElementType > i.ElementType ? 1 : t - e
                }, t.prototype.ConfigAllAvailabelSceneData = function() {
                    var e = this;
                    this._sceneItemConfigs = [], m.ConfigDataComponent.Instance.GetArrayConfig(p.ItemMainSceneBackground_Config).forEach(function(t) {
                        (!t.Start || O.TimeUtil.StrToTime(t.Start) <= m.RpcComponent.Instance.ServerTime) && e._sceneItemConfigs.push(t)
                    }), this._sceneItemConfigs.sort(this.SortAvailabelSceneConfigs.bind(this))
                }, t.prototype.SortAvailabelSceneConfigs = function(e, t) {
                    var n = g.DataCenter.Instance.GetDataById(u.MainSceneBackground_Model, e.Id),
                        o = g.DataCenter.Instance.GetDataById(u.MainSceneBackground_Model, t.Id);
                    return C.default.GetMainSceneLockState(e.Id) && !C.default.GetMainSceneLockState(t.Id) ? 1 : !C.default.GetMainSceneLockState(e.Id) && C.default.GetMainSceneLockState(t.Id) ? -1 : C.default.GetMainSceneLockState(e.Id) || C.default.GetMainSceneLockState(t.Id) ? e.Order - t.Order : n.IsPerpetual && !o.IsPerpetual ? -1 : !n.IsPerpetual && o.IsPerpetual ? 1 : e.Order - t.Order
                }, t.prototype.ConfigAllAvailabelAngelData = function() {
                    var e = this;
                    if (!this._angelAvatarConfigs) {
                        this._angelAvatarConfigs = [];
                        for (var t = m.ConfigDataComponent.Instance.GetArrayConfig(p.AngelGodAvatar_Config), n = 0; n < t.length; n++) {
                            var o = t[n],
                                r = m.ConfigDataComponent.Instance.GetConfigById(p.AngelBase_Config, o.Angel);
                            if (r.AvailableStartTime && O.TimeUtil.StrToTime(r.AvailableStartTime) > m.RpcComponent.Instance.ServerTime) break;
                            this._angelAvatarConfigs.push(o)
                        }
                    }
                    this._angelAvatarNeedStarLevel || (this._angelAvatarNeedStarLevel = {}, this._angelAvatarConfigs.forEach(function(t) {
                        for (var n = m.ConfigDataComponent.Instance.GetConfigById(p.AngelBase_Config, t.Angel), o = 1e3 * t.Angel, r = 1e3 * t.Angel + n.MaxStarLevel, i = o; i <= r; i++)
                            if (m.ConfigDataComponent.Instance.GetConfigById(p.AngelStar_Config, i).AngelShape == t.Id) {
                                e._angelAvatarNeedStarLevel[t.Id] = i % 100;
                                break
                            }
                    }))
                }, t.prototype.ConfigAllAvailabelNewPersonalityData = function() {
                    if (!this._newPersonalityDatas) {
                        this._newPersonalityDatas = [];
                        var e = [],
                            t = [];
                        this._newPersonalityConfigMap = {};
                        for (var o = m.ConfigDataComponent.Instance.GetArrayConfig(p.NewPersonalityBase_Config), r = 0; r < o.length; r++) {
                            var i = o[r];
                            if (C.default.IsNewPersonalityShowAvailable(i))
                                for (var a = g.DataCenter.Instance.GetDataById(u.NewPersonality_Model, i.Id), s = 0; s < i.PersonalityIds.length; s++) {
                                    var l = i.PersonalityIds[s];
                                    this._newPersonalityConfigMap[l] = i;
                                    for (var c = m.ConfigDataComponent.Instance.GetConfigById(p.NewPersonality_Config, l), d = m.ConfigDataComponent.Instance.GetConfigById(p.InteractiveSpineAvatar_Config, c.AvatarId), h = 0; h < d.TotalState; h++) {
                                        var f = {};
                                        f.BaseConfig = i, f.NewPersonalityConfig = c, f.StateIndex = h;
                                        var y;
                                        y = !(!a || !a.Map[l]) && (!(h > 0) || n.CheckNewPersonalityActionIsTake(i.Id, l, h)), f.IsUnLock = y, y ? e.push(f) : t.push(f)
                                    }
                                }
                        }
                        this._newPersonalityDatas = e.concat(t)
                    }
                }, t.CheckNewPersonalityActionIsTake = function(e, t, n) {
                    for (var o = m.ConfigDataComponent.Instance.GetConfigById(p.NewPersonality_Config, t), r = 0; r < o.ActionIds.length; r++) {
                        var i = o.ActionIds[r],
                            a = m.ConfigDataComponent.Instance.GetConfigById(p.NewPersonalityAction_Config, i);
                        if (a.NextState == n + 1) {
                            var s = g.DataCenter.Instance.GetDataById(u.NewPersonality_Model, e);
                            if (s && s.Map[t] && s.Map[t].Items && s.Map[t].Items.includes(a.Id)) return !0;
                            break
                        }
                    }
                    return !1
                }, t.prototype.ConfigUnLockPersonalData = function() {
                    this._ownedPersonalIds = [];
                    for (var e = 0; e < this._ownedHeroIds.length; e++) {
                        var t = g.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._ownedHeroIds[e]);
                        if (t) {
                            var n = t.PersonalityStar;
                            if (n && n > 0)
                                for (var o = m.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, t.HeroId), r = 0; r < o.AdultPictures.length; r++) {
                                    var i = o.AdultPictures[r].Items[0];
                                    n >= o.AdultPictures[r].Items[1] && this._ownedPersonalIds.push(i)
                                }
                        }
                    }
                }, t.prototype.ConfigOwnHeroIds = function() {
                    this._ownedHeroIds = [];
                    for (var e = g.DataCenter.Instance.GetDataList(u.HeroInfo_Model), t = 0; t < e.length; t++) this._ownedHeroIds.push(e[t].HeroId);
                    var n = g.DataCenter.Instance.GetDataList(u.HeroSkin_Model);
                    for (t = 0; t < n.length; t++) {
                        var o = m.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, n[t].Sid);
                        this._ownedHeroIds.push(o.Id)
                    }
                }, t.prototype.ConfigOwnNewPersonalityIds = function() {
                    var e = C.default.Instance.IsGameModuleOpen(c.GameModuleType.NewPersonality);
                    if (this._ownedNewPersonalityIds = [], e)
                        for (var t = g.DataCenter.Instance.GetDataList(u.NewPersonality_Model), n = 0; n < t.length; n++) {
                            var o = t[n];
                            if (o && o.Map)
                                for (var r in o.Map) {
                                    var i = Number(r);
                                    this._ownedNewPersonalityIds.push(i)
                                }
                        }
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.name);
                    if (this._currentTab != t) {
                        var n = this._currentElement < 0 ? 0 : this._currentElement;
                        switch (this._currentElement = -1, this._currentTab = t, this.OnSelectedChanged(-1, !1), this.HeroElementGroup.node.active = !1, this.PersonalScrollView.node.active = !1, this.HeroScrollView.node.active = !1, this.SceneScrollView.node.active = !1, this.AngelScrollView.node.active = !1, this.NewPersonalityScrollView.node.active = !1, this.BottomTip.node.active = !1, t) {
                            case v.CustomizeMainSceneType.Personal:
                                this.HeroElementGroup.node.active = !0, this.PersonalScrollView.node.active = !0, this.HeroElementGroup.SetElementModeByIndex(n);
                                break;
                            case v.CustomizeMainSceneType.Hero:
                                this.HeroElementGroup.node.active = !0, this.HeroScrollView.node.active = !0, this.HeroElementGroup.SetElementModeByIndex(n);
                                break;
                            case v.CustomizeMainSceneType.Scene:
                                this.SceneScrollView.node.active = !0, this.RenderLayout();
                                break;
                            case v.CustomizeMainSceneType.Angel:
                                this.AngelScrollView.node.active = !0, this.RenderLayout();
                                break;
                            case v.CustomizeMainSceneType.NewPersonality:
                                this.NewPersonalityScrollView.node.active = !0, this.RenderLayout()
                        }
                    }
                }, t.prototype.OnSwitchHeroElement = function(e) {
                    this._currentElement != e && (this._currentElement = e, this.RenderLayout())
                }, t.prototype.RenderLayout = function() {
                    var e = 0;
                    switch (this._currentTab) {
                        case v.CustomizeMainSceneType.Personal:
                            this.InitPersonalCustomLayout(), this.ConfigAllAvailabelPersonalData(), e = this._allAvailabelPersonalIds[this._currentElement] ? this._allAvailabelPersonalIds[this._currentElement].length : 0, this.PersonalCustomLayout.RenderLayOut(e), this.PersonalityEmptyLabel.node.active = 0 == e;
                            break;
                        case v.CustomizeMainSceneType.Hero:
                            this.InitHeroCustomLayout(), this.ConfigAllAvailabelHeroData(), e = this._allAvailabelHeroIds[this._currentElement] ? this._allAvailabelHeroIds[this._currentElement].length : 0, this.HeroCustomLayout.RenderLayOut(e), this.PersonalityEmptyLabel.node.active = !1;
                            break;
                        case v.CustomizeMainSceneType.Scene:
                            this.InitSceneCustomLayout(), this.ConfigAllAvailabelSceneData(), e = this._sceneItemConfigs ? this._sceneItemConfigs.length : 0, this.SceneCustomLayout.RenderLayOut(e), this.PersonalityEmptyLabel.node.active = !1;
                            break;
                        case v.CustomizeMainSceneType.Angel:
                            this.InitAngelCustomLayout(), this.ConfigAllAvailabelAngelData(), e = this._angelAvatarConfigs ? this._angelAvatarConfigs.length : 0, this.AngelCustomLayout.RenderLayOut(e), this.PersonalityEmptyLabel.node.active = !1;
                            break;
                        case v.CustomizeMainSceneType.NewPersonality:
                            this.InitNewPersonalityCustomLayout(), this.ConfigAllAvailabelNewPersonalityData(), e = this._newPersonalityDatas ? this._newPersonalityDatas.length : 0, this.NewPersonalityCustomLayout.RenderLayOut(e), this.PersonalityEmptyLabel.node.active = !1
                    }
                }, t.prototype.InitPersonalCustomLayout = function() {
                    this._isPersonalLayoutInit || (this._isPersonalLayoutInit = !0, this.PersonalCustomLayout.Init(this._mainSceneCustomItem))
                }, t.prototype.InitHeroCustomLayout = function() {
                    this._isHeroLayoutInit || (this._isHeroLayoutInit = !0, this.HeroCustomLayout.Init(this._cardPrefab))
                }, t.prototype.InitSceneCustomLayout = function() {
                    this._isSceneLayoutInit || (this._isSceneLayoutInit = !0, this.SceneCustomLayout.Init(this._mainSceneCustomItem))
                }, t.prototype.InitAngelCustomLayout = function() {
                    this._isAngelLayoutInit || (this._isAngelLayoutInit = !0, this.AngelCustomLayout.Init(this._angelCardPrefab))
                }, t.prototype.InitNewPersonalityCustomLayout = function() {
                    this._isNewPersonalityLayoutInit || (this._isNewPersonalityLayoutInit = !0, this.NewPersonalityCustomLayout.Init(this._newPersonalityCardPrefab))
                }, t.prototype.RefreshScrollView = function(e, t) {
                    t == this.PersonalCustomLayout ? this.DoRenderPersonalJob(e) : t == this.HeroCustomLayout ? this.DoRenderHeroJob(e) : t == this.SceneCustomLayout ? this.DoRenderSceneJob(e) : t == this.AngelCustomLayout ? this.DoRenderAngelJob(e) : t == this.NewPersonalityCustomLayout && this.DoRenderNewPersonalityJob(e)
                }, t.prototype.DoRenderPersonalJob = function(e) {
                    var t = this,
                        n = this._allAvailabelPersonalIds[this._currentElement];
                    e.forEach(function(e, o) {
                        var r = e.getComponent(_.default),
                            i = n[o];
                        r.Init(i, t._currentTab, t.IsInSelected(i), t.IsInUse(i), t.IsNew(i), t._personalIdMap[i])
                    })
                }, t.prototype.DoRenderHeroJob = function(e) {
                    var t = this,
                        n = this._allAvailabelHeroIds[this._currentElement];
                    e.forEach(function(e, o) {
                        var r = e.getComponent(b.default),
                            i = n[o];
                        r.Init(i, t.IsInSelected(i), t.IsInUse(i), t.IsNew(i))
                    })
                }, t.prototype.DoRenderSceneJob = function(e) {
                    var t = this;
                    e.forEach(function(e, n) {
                        var o = e.getComponent(_.default),
                            r = t._sceneItemConfigs[n];
                        o.Init(r.Id, t._currentTab, t.IsInSelected(r.Id), t.IsInUse(r.Id), t.IsNew(r.Id))
                    })
                }, t.prototype.DoRenderAngelJob = function(e) {
                    var t = this;
                    e.forEach(function(e, n) {
                        var o = t._angelAvatarConfigs[n];
                        e.getComponent(k.default).Init(o.Id, t._angelAvatarNeedStarLevel[o.Id], t.IsInSelected(o.Id), t.IsInUse(o.Id), t.IsNew(o.Id))
                    })
                }, t.prototype.DoRenderNewPersonalityJob = function(e) {
                    var t = this;
                    e.forEach(function(e, n) {
                        var o = t._newPersonalityDatas[n],
                            r = 100 * o.NewPersonalityConfig.Id + o.StateIndex + 1;
                        e.getComponent(M.default).Init(o, t.IsInSelected(r), t.IsInUse(r), !1)
                    })
                }, t.prototype.IsInUse = function(e) {
                    return this._selectedBackgroundIds[this._currentTab] == e
                }, t.prototype.IsInSelected = function(e) {
                    return this._currentSelectedId == e
                }, t.prototype.IsNew = function(e) {
                    return this._sceneIdsSeen.indexOf(e) < 0
                }, t.prototype.OnSelectedChanged = function(e, t) {
                    switch (this._currentSelectedId = e, this._isSelectedItemLocked = t, this._sceneIdsSeen.indexOf(e) < 0 && this._sceneIdsSeen.push(e), this.ConfirmBtn.node.active = !t, this.GoToCheckBtn.node.active = t, this.BottomTip.node.active = !1, this._currentTab) {
                        case v.CustomizeMainSceneType.Angel:
                            if (t) {
                                this.BottomTip.node.active = !0;
                                var n = m.ConfigDataComponent.Instance.GetConfigById(p.AngelGodAvatar_Config, e);
                                this.BottomTip.string = "CustomizeMainScene_Angel_Tip".ToUILocale().Fmt(n.Angel.ToAngelTitle(), this._angelAvatarNeedStarLevel[e])
                            }
                    }
                }, t.prototype.OnConfirmButtonClicked = function() {
                    if (this._currentSelectedId > 0) {
                        for (var e = [], t = 0; t <= v.CustomizeMainSceneType.NewPersonality; t++) t == this._currentTab ? e.push(this._currentSelectedId) : e.push(0);
                        var n = g.DataCenter.Instance.GetArrayData(v.UserDataKey.MainBackground),
                            o = !0;
                        if (n.length > 0) {
                            for (t = 0; t < e.length; t++)
                                if ((n[t] > 0 ? n[t] : 0) != e[t]) {
                                    o = !1;
                                    break
                                }
                        } else o = !1;
                        if (o) return void w.UIUtlity.ShowFloatingHint("CustomizeMainScene_UsingNow".ToUILocale());
                        var r = new u.Req_Player_SetMainBackground;
                        r.Data = e, m.RpcComponent.Instance.Call(r, this.OnRequestSetmainBackgroundSuccess.bind(this))
                    } else w.UIUtlity.ShowFloatingHint("CustomizeMainScene_NoSelectedScene".ToUILocale())
                }, t.prototype.OnGoToCheckButtonClicked = function() {
                    switch (this._currentTab) {
                        case v.CustomizeMainSceneType.Personal:
                            var e = this._personalIdMap[this._currentSelectedId];
                            if (g.DataCenter.Instance.GetDataById(u.HeroInfo_Model, e)) {
                                for (var t = g.DataCenter.Instance.GetDataList(u.UserHero_Model), n = 0; n < t.length; n++)
                                    if (t[n].HeroId == e) {
                                        S.UIManager.Instance.ShowUIPanel(I.PanelConfig.HeroInfoPanel.Path, t[n].Sid, [], T.Tab.Personality);
                                        break
                                    }
                            } else S.UIManager.Instance.ShowUIPanel(I.PanelConfig.HeroHandbookPanel.Path, e);
                            break;
                        case v.CustomizeMainSceneType.Hero:
                            if (m.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._currentSelectedId)) S.UIManager.Instance.ShowUIPanel(I.PanelConfig.HeroHandbookPanel.Path, this._currentSelectedId);
                            else {
                                var o = m.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, this._currentSelectedId);
                                g.DataCenter.Instance.GetDataById(u.HeroInfo_Model, o.HeroId) ? S.UIManager.Instance.ShowUIPanel(I.PanelConfig.HeroSkinPanel.Path, o.HeroId, R.HeroSkinShowType.Activity, this._currentSelectedId) : S.UIManager.Instance.ShowUIPanel(I.PanelConfig.HeroHandbookPanel.Path, o.HeroId)
                            }
                            break;
                        case v.CustomizeMainSceneType.Scene:
                            S.UIManager.Instance.ShowUIPanel(I.PanelConfig.CollectionPavilionPanel.Path, L.CollectionPavilionEntryItem.MainScene, this._currentSelectedId);
                            break;
                        case v.CustomizeMainSceneType.Angel:
                            C.default.Instance.IsGameModuleUnlock(c.GameModuleType.Angel)[0] && C.default.Instance.IsGameModuleOpen(c.GameModuleType.Angel) && l.UIManager.Instance.ShowUIPanel(I.PanelConfig.AngelPanel.Path);
                            break;
                        case v.CustomizeMainSceneType.NewPersonality:
                            if (C.default.Instance.IsGameModuleUnlock(c.GameModuleType.NewPersonality)[0] && C.default.Instance.IsGameModuleOpen(c.GameModuleType.NewPersonality)) {
                                var r = Math.floor(this._currentSelectedId / 100),
                                    i = this._newPersonalityConfigMap[r];
                                l.UIManager.Instance.ShowUIPanel(I.PanelConfig.NewPersonalityInfoPanel.Path, i, r)
                            }
                    }
                }, t.prototype.OnRequestSetmainBackgroundSuccess = function() {
                    S.Game.EventDispatcher.Emit(d.EventKeys.EVENT_CUSTOMIZE_SCENE_CHANGED), w.UIUtlity.ShowFloatingHint("CustomizeMainScene_ChangeSuccess".ToUILocale()), S.AudioManager.Instance.PlayMainSceneMusic(), S.UIManager.Instance.BackUIPanel()
                }, i([N(cc.Label)], t.prototype, "Title", void 0), i([N(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([N(h.default)], t.prototype, "Toggles", void 0), i([N(y.default)], t.prototype, "HeroElementGroup", void 0), i([N(cc.ScrollView)], t.prototype, "PersonalScrollView", void 0), i([N(cc.ScrollView)], t.prototype, "HeroScrollView", void 0), i([N(cc.ScrollView)], t.prototype, "SceneScrollView", void 0), i([N(cc.ScrollView)], t.prototype, "AngelScrollView", void 0), i([N(cc.ScrollView)], t.prototype, "NewPersonalityScrollView", void 0), i([N(f.default)], t.prototype, "PersonalCustomLayout", void 0), i([N(f.default)], t.prototype, "HeroCustomLayout", void 0), i([N(f.default)], t.prototype, "SceneCustomLayout", void 0), i([N(f.default)], t.prototype, "AngelCustomLayout", void 0), i([N(f.default)], t.prototype, "NewPersonalityCustomLayout", void 0), i([N(cc.Label)], t.prototype, "PersonalityEmptyLabel", void 0), i([N(cc.Button)], t.prototype, "ConfirmBtn", void 0), i([N(cc.Label)], t.prototype, "ConfirmBtnLabel", void 0), i([N(cc.Button)], t.prototype, "GoToCheckBtn", void 0), i([N(cc.Label)], t.prototype, "GoToCheckBtnLabel", void 0), i([N(cc.Label)], t.prototype, "BottomTip", void 0), n = i([B], t)
            }(l.BaseUIPanel);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/MainSceneAngelCardItem": "MainSceneAngelCardItem",
        "../Components/MainSceneHeroHeaderItem": "MainSceneHeroHeaderItem",
        "../Components/MainSceneNewPersonalityItem": "MainSceneNewPersonalityItem",
        "./CollectionPavilionPanel": "CollectionPavilionPanel",
        "./HeroInfoPanel": "HeroInfoPanel",
        "./HeroSkinPanel": "HeroSkinPanel",
        "./MainSceneCustomItem": "MainSceneCustomItem"
    }],
    CutPriceGiftPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0c1b4/W1mxGC7K6hfSsN1pI", "CutPriceGiftPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomToggle"),
            h = e("../../../Consts/Etc"),
            f = e("../../../Consts/Consts"),
            y = e("../../Channel/ChannelManager"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Components/ItemComponent"),
            I = e("../Components/LoadAssetHelper"),
            _ = e("../../../Util/TimeUtil"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../Auxiliary/GlobalDefine"),
            S = e("../../Auxiliary/GameRecord"),
            w = e("../../RedDot/RedDotManager"),
            P = e("../../RedDot/RedDotDataHandler"),
            A = e("../Components/ActivityCountDownComponent"),
            T = e("./ChattingMiniPanel"),
            R = e("../Components/StrongholdWarMiniChatting"),
            L = e("../Components/PanelBottomToggles"),
            k = e("../Components/OrangeBubbleTipComponent"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property,
            B = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.AvatarNode = null, t.TaskButton = null, t.TaskButtonLabel = null, t.PlayerMessagesNode = null, t.ItemTitleLabel = null, t.ItemsContainer = null, t.BoughtNode = null, t.BoughtLabel = null, t.GraySendButton = null, t.GraySendButtonLabel = null, t.SendButton = null, t.SendButtonLabel = null, t.BuyButton = null, t.BuyButtonLabel = null, t.PointNode = null, t.ItemIcon = null, t.PointLabel1 = null, t.PointLabel2 = null, t.InitialPriceTag = null, t.InitialPriceLabel = null, t.CurrentPriceLabel = null, t.ChannelList = null, t.ChanelButton = null, t.ChanelButtonLabel = null, t.ChannelToggleArr = [], t.ChannelLabelArr = [], t.LogTitle = null, t.LogScrollView = null, t.LogLeaveCount = null, t.ChatNode = null, t.Title = null, t.RuleButton = null, t.ActivityCountDownComponent = null, t.BackButton = null, t.PanelBottomToggles = null, t._currentChannelIndex = 0, t._itemComponentArr = [], t._pageToggleArr = [], t._togglesRedDot = [], t._logNodeArr = [], t._assetParams = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_PAY_SUCCESS, this.PaySuccess, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_PAY_SUCCESS, this.PaySuccess, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = t.getComponent(m.ItemComponent);
                    n && this._itemComponentArr.includes(n) && C.UIUtlity.ShowItemTip(n.ItemId, t)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = v.default.Instance.GetItemPathById(f.CommonItemId.VipPoint), [4, Promise.all([this.LoadDynamicAsset(b.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("Buttons/Toggle2", cc.Prefab), this.LoadDynamicAsset(t, cc.SpriteFrame), this.LoadDynamicAsset("StrongholdWarPanel/Components/StrongholdWarMiniChatting", cc.Prefab), this.LoadDynamicAsset("LabelsComponent/OrangeBubbleTipComponent", cc.Prefab)]).then(function(e) {
                                        n._itemPrefab = e[0], n._togglePrefab = e[1], n.ItemIcon.spriteFrame = e[2], n._chattingMiniPanel = cc.instantiate(e[3]), n._bubbleTipPrefab = e[4], n._chattingMiniPanel.setParent(n.ChatNode);
                                        var t = n._chattingMiniPanel.getComponent(R.default);
                                        t && t.SetChatChannelType(f.ChatChannelType.World)
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.GraySendButton.node.on("click", this.OnGraySendButtonClick, this), this.SendButton.node.on("click", this.OnSendButtonClick, this), this.ChanelButton.node.on("click", this.OnChanelButtonClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.ChannelToggleArr.forEach(function(e, n) {
                        e.node.name = n.toString(), e.node.on("toggle", t.OnSwitchChannelToggle, t)
                    }), this.TaskButtonLabel.string = "btn_task".ToUILocale(), this.GraySendButtonLabel.string = this.SendButtonLabel.string = "cutPrice_sendBtn".ToUILocale(), this.BuyButtonLabel.string = "cutPrice_buyBtn".ToUILocale(), this.ChannelLabelArr[0].string = "cutPrice_channel1".ToUILocale(), this.ChannelLabelArr[1].string = "cutPrice_channel2".ToUILocale(), this.PointLabel1.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.InitialPriceTag.string = "cutPrice_initialPrice".ToUILocale(), this.LogTitle.string = "cutPrice_log".ToUILocale(), this.BoughtLabel.string = "bought".ToUILocale(), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(I.default))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._activityConfig = p.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._activityConfig.Common.Title, this.ActivityCountDownComponent.Init(this._activityConfig.Common), this._pageDatas = {};
                    for (var o = 0; o < this._activityConfig.Pages.length; o++) this._togglesRedDot[o] || (this._togglesRedDot[o] = {});
                    this.SetLocaleContentMap(), this.SetGiftPackMap(), this.SetPageTimeStampMap()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.RenderTabToggles(), t || (this.SetDefaultChannel(), this.RequestCutPriceGiftInfo()), w.RedDotManager.Instance.BindInstance(this.TaskButton.node, w.RedDotManager.Instance.InstanceRedDot.CutPriceGiftPackTaskNode, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.SetLocaleContentMap = function() {
                    var e = this;
                    this._localContentMap = {}, this._activityConfig._Locale.forEach(function(t) {
                        e._localContentMap[t.Id] = t.Content
                    })
                }, t.prototype.SetGiftPackMap = function() {
                    var e = this;
                    this._giftPackMap = {}, this._activityConfig._Packs.forEach(function(t) {
                        e._giftPackMap[t.Id] = t
                    })
                }, t.prototype.SetPageTimeStampMap = function() {
                    var e = this;
                    this._pageTimeStampMap = {};
                    var t = this._activityConfig.Common.StartTime;
                    this._activityConfig.Pages.forEach(function(n) {
                        e._pageTimeStampMap[n.Id] = [n.StartTime ? _.TimeUtil.GetOffsetHourTs(n.StartTime, t) : t, _.TimeUtil.GetOffsetHourTs(n.EndTime, t)]
                    })
                }, t.prototype.SetDefaultChannel = function() {
                    this.ChannelList.active = !1, this._currentChannelIndex = 0, this.ChannelToggleArr[this._currentChannelIndex].isChecked = !0, this.SetSelectChannel()
                }, t.prototype.OnSwitchChannelToggle = function(e) {
                    this.ChannelList.active = !1;
                    var t = parseInt(e.node.name);
                    this._currentChannelIndex != t && (this._currentChannelIndex = t, this.SetSelectChannel())
                }, t.prototype.SetSelectChannel = function() {
                    var e = this;
                    this.ChanelButtonLabel.string = this.ChannelLabelArr[this._currentChannelIndex].string, this.ChannelLabelArr.forEach(function(t, n) {
                        n == e._currentChannelIndex ? t.node.color = (new cc.Color).fromHEX("#6eeea7") : t.node.color = cc.Color.WHITE
                    })
                }, t.prototype.RenderTabToggles = function() {
                    for (var e = 0; e < this._activityConfig.Pages.length; e++) {
                        var t = this._pageToggleArr[e];
                        if (!t) {
                            var n = cc.instantiate(this._togglePrefab);
                            n.parent = this.PanelBottomToggles.Content, t = n.addComponent(N), this._pageToggleArr.push(t), n.name = e.toString(), n.on("toggle", this.OnSwitchTab, this), t.SetBubbleTipPrefab(this._bubbleTipPrefab)
                        }
                        var o = this._activityConfig.Pages[e].Id,
                            r = this._pageTimeStampMap[o];
                        t.Init(r[0], r[1], this._localContentMap[o])
                    }
                    this.PanelBottomToggles.RefreshUIStyle()
                }, t.prototype.RefreshAllToggleRedDot = function() {
                    for (var e = 0; e < this._pageToggleArr.length; e++) this.BindToggleRedDot(e)
                }, t.prototype.BindToggleRedDot = function(e) {
                    w.RedDotManager.Instance.BindNodeByResult(this._pageToggleArr[e].node, this._togglesRedDot[e], this.GetToggleRedDotState(e))
                }, t.prototype.GetToggleRedDotState = function(e) {
                    var t = p.RpcComponent.Instance.ServerTime,
                        n = this._pageTimeStampMap[this._activityConfig.Pages[e].Id],
                        o = !1;
                    return t >= n[0] && t <= n[1] && this._pageDatas[e] && !this._pageDatas[e].ResPageData.BuyGiftId && !(o = P.RedDotDataHandler.Instance.CutPriceGiftPackSend({
                        Value1: this._activityConfig._id,
                        extra: this._activityConfig.Pages[e].Id
                    })) && this.GetLeaveCutCount(e) <= 0 && (o = !0), o
                }, t.prototype.OnSwitchTab = function(e) {
                    this.ChannelList.active = !1;
                    var t = parseInt(e.node.name);
                    t != this._currentPageIndex && (this._currentPageIndex = t, this.RefreshPanel())
                }, t.prototype.RefreshPanel = function() {
                    this.SetItemTitleLabel(), this.LoadBgAsset(), this.RequestCutPriceGiftInfo()
                }, t.prototype.ChannelTouchEnd = function(e) {
                    if (this.GetLeaveCutCount() <= 0) C.UIUtlity.ShowFloatingHint("cutPrice_noHelpCount".ToUILocale());
                    else switch (parseInt(e.target.name)) {
                        case 0:
                            this.RequestSendHelp(f.ChatChannelType.World);
                            break;
                        case 1:
                            p.DataCenter.Instance.AllianceId ? this.RequestSendHelp(f.ChatChannelType.Alliance) : C.UIUtlity.ShowFloatingHint("chatting_privateNotInAnyAlliance".ToUILocale())
                    }
                }, t.prototype.GetLeaveCutCount = function(e) {
                    var t, n;
                    return null != e ? (t = this._pageDatas[e].ResPageData, n = this._activityConfig.Pages[e]) : (t = this.GetCurrentPageData().ResPageData, n = this.GetCurrentPageConfig()), n.Group[t.GroupIndex].Items.length - 2 - t.PlayerNames.length
                }, t.prototype.GetCurrentPageConfig = function() {
                    return this._activityConfig.Pages[this._currentPageIndex]
                }, t.prototype.GetCurrentPageData = function() {
                    return this._pageDatas[this._currentPageIndex]
                }, t.prototype.RequestSendHelp = function(e) {
                    var t = c.Req_Activity_CutPriceGiftPublishHelp.create();
                    t.ActivityId = this._activityConfig._id, t.PageId = this.GetCurrentPageConfig().Id, t.Type = e, p.RpcComponent.Instance.Call(t, function(e) {
                        C.UIUtlity.ShowFloatingHint("cutPrice_senSuccess".ToUILocale()), p.DataCenter.Instance.AddPublicChatMessage(e.Msg), T.default.OnPublicMessagesComing(e.Msg), R.default.OnPublicMessagesComing(e.Msg)
                    })
                }, t.prototype.AfterSendHelpStorage = function() {
                    var e = JSON.parse(S.default.GetItem(S.GameRecordDefine.CutPriceGiftPackSend));
                    e || (e = {}), e[this._activityConfig._id] || (e[this._activityConfig._id] = {}), e[this._activityConfig._id][this.GetCurrentPageConfig().Id] = 1, S.default.SetItem(S.GameRecordDefine.CutPriceGiftPackSend, JSON.stringify(e)), w.RedDotManager.Instance.BindInstance(this.SendButton.node, w.RedDotManager.Instance.InstanceRedDot.CutPriceGiftPackSendBtn, {
                        Value1: this._activityConfig._id,
                        extra: this.GetCurrentPageConfig().Id
                    }), l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._activityConfig._id)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "cutPrice_rulePanel".ToUILocale(),
                        titles: ["cutPrice_ruleTitle".ToUILocale()],
                        contents: ["cutPrice_ruleText".ToUILocale()]
                    };
                    C.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnTaskButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(b.PanelConfig.CommonTaskPanel.Path, [{
                        ActivityId: this._activityConfig._id,
                        IsActivity: !0,
                        Title: "btn_task".ToUILocale(),
                        Tasks: this._activityConfig._Tasks
                    }])
                }, t.prototype.OnGraySendButtonClick = function() {
                    this.OnSendButtonClick()
                }, t.prototype.OnSendButtonClick = function() {
                    if (this.AfterSendHelpStorage(), this.BindToggleRedDot(this._currentPageIndex), this.ChannelList.active = !1, this._pageDatas && this.GetCurrentPageData() && this.GetCurrentPageData().ResPageData.BuyGiftId) C.UIUtlity.ShowFloatingHint("cutPrice_packBought".ToUILocale());
                    else if (this.GetLeaveCutCount() <= 0) C.UIUtlity.ShowFloatingHint("cutPrice_noHelpCount".ToUILocale());
                    else switch (this._currentChannelIndex) {
                        case 0:
                            this.RequestSendHelp(f.ChatChannelType.World);
                            break;
                        case 1:
                            p.DataCenter.Instance.AllianceId ? this.RequestSendHelp(f.ChatChannelType.Alliance) : C.UIUtlity.ShowFloatingHint("chatting_privateNotInAnyAlliance".ToUILocale())
                    }
                }, t.prototype.OnChanelButtonClick = function() {
                    this.ChannelList.active = !this.ChannelList.active
                }, t.prototype.OnBuyButtonClick = function() {
                    this.ChannelList.active = !1, this.CheckCanBuyPack() && v.default.Instance.SendBuyGiftPackRequest(this.GetCurrentPageData().CurrentGiftPack, this._activityConfig._id)
                }, t.prototype.CheckCanBuyPack = function() {
                    return !(this.GetCurrentPageData().ResPageData.BuyGiftId || p.RpcComponent.Instance.ServerTime >= this._pageTimeStampMap[this.GetCurrentPageConfig().Id][1] && (C.UIUtlity.ShowFloatingHint("cutPrice_packEnd".ToUILocale()), 1))
                }, t.prototype.PaySuccess = function() {
                    this.RequestCutPriceGiftInfo(!0)
                }, t.prototype.RefreshSpecialRedDot = function() {
                    var e;
                    for (var t in this._pageDatas)
                        if (!this._pageDatas[t].ResPageData.BuyGiftId && this.GetLeaveCutCount(Number(t)) <= 0) {
                            e = 1;
                            break
                        } e || p.DataCenter.Instance.SetSpecialRedDot(f.SpecialRedDotType.CutPriceGiftHelp, 0), l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._activityConfig._id)
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.SetItemTitleLabel = function() {
                    this.ItemTitleLabel.string = this._localContentMap[this.GetCurrentPageConfig().Id]
                }, t.prototype.LoadBgAsset = function() {
                    var e = this.GetCurrentPageConfig();
                    if (e.Picture && this._loadAssetHelper.LoadSpriteFrame(e.Picture, this.Bg, null, 1, !0), e.AvatarId) {
                        var t = void 0,
                            n = p.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, e.AvatarId);
                        t = n ? "Hero_" + n.Model + "/HeroAvatar" : "Hero_" + p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, e.AvatarId).Model + "/HeroAvatar", this._loadAssetHelper.LoadPrefab(t, this.AvatarNode, null, 2)
                    }
                }, t.prototype.LoadSpriteFrame = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    if (o = this._assetParams[n]) {
                                        if (o.Path == e) return o.Sprite = t, o.LoadedAsset && o.LoadedAsset.name == e && (o.Sprite.spriteFrame = o.LoadedAsset), [2];
                                        o.Path = e, o.Sprite = t
                                    } else o = {
                                        Path: e,
                                        Sprite: t
                                    }, this._assetParams[n] = o;
                                    return [4, v.default.LoadActivityTexture(o.Path)];
                                case 1:
                                    return r = i.sent(), !this.isValid || e != o.Path || o.LoadedAsset && o.LoadedAsset.name == r.name ? (l.AssetsManager.Instance.UnloadAsset(r), [2]) : (o.LoadedAsset && l.AssetsManager.Instance.UnloadAsset(o.LoadedAsset), o.LoadedAsset = r, o.Sprite && (o.Sprite.spriteFrame = o.LoadedAsset), [2])
                            }
                        })
                    })
                }, t.prototype.SetDefaultPageIndex = function() {
                    if (null == this._defaultPageIndex) {
                        for (var e = -1, t = 0; t < this._activityConfig.Pages.length; t++)
                            if (this.GetToggleRedDotState(t)) {
                                e = t;
                                break
                            } if (-1 == e) {
                            var n = function(t) {
                                    var n = o._pageTimeStampMap[t];
                                    p.RpcComponent.Instance.ServerTime >= n[0] && p.RpcComponent.Instance.ServerTime < n[1] && (e = Math.max(e, o._activityConfig.Pages.findIndex(function(e) {
                                        return e.Id == Number(t)
                                    })))
                                },
                                o = this;
                            for (var r in this._pageTimeStampMap) n(r)
                        }
                        this._defaultPageIndex = Math.max(e, 0), this._currentPageIndex = this._defaultPageIndex, this._pageToggleArr[this._defaultPageIndex].Toggle.isChecked = !0, this.SetItemTitleLabel(), this.LoadBgAsset()
                    }
                }, t.prototype.RequestCutPriceGiftInfo = function(e) {
                    var t = this;
                    void 0 === e && (e = !1);
                    var n = c.Req_Activity_CutPriceGiftInfo.create();
                    n.ActivityId = this._activityConfig._id, p.RpcComponent.Instance.Call(n, function(n) {
                        t._lastPageIndex = t._currentPageIndex, t.SetPageData(n), t.SetDefaultPageIndex(), t.SetGiftPackInfo(t._pageDatas[t._currentPageIndex]), t.SetCutPriceRecord(t._pageDatas[t._currentPageIndex]), t.SetBuyBtn(), t.RefreshSendBtnState(), t.RefreshAllToggleRedDot(), e && t.RefreshSpecialRedDot()
                    }, function() {
                        t._pageDatas[t._currentPageIndex] ? (t.SetGiftPackInfo(t._pageDatas[t._currentPageIndex]), t.SetCutPriceRecord(t._pageDatas[t._currentPageIndex]), t.SetBuyBtn(), t.RefreshSendBtnState()) : t._lastPageIndex >= 0 && (t._currentPageIndex = t._lastPageIndex, t._pageToggleArr[t._currentPageIndex].Toggle.isChecked = !0, t.SetItemTitleLabel(), t.LoadBgAsset())
                    })
                }, t.prototype.SetPageData = function(e) {
                    for (var t = 0; t < e.Info.length; t++) {
                        var n = e.Info[t],
                            o = this._activityConfig.Pages[t].Group[n.GroupIndex].Items,
                            r = this._giftPackMap[o[1]],
                            i = void 0;
                        if (n.PlayerNames.length > 0)
                            if (n.BuyGiftId) i = this._giftPackMap[n.BuyGiftId];
                            else {
                                var a = Math.min(o.length - 2, n.PlayerNames.length) - 1;
                                i = this._giftPackMap[o[a + 2]]
                            }
                        else i = r;
                        this._pageDatas[t] = {
                            ResPageData: n,
                            InitialGiftPack: r,
                            CurrentGiftPack: i
                        }
                    }
                }, t.prototype.SetGiftPackInfo = function(e) {
                    this.GetCurrentPageConfig().Group[e.ResPageData.GroupIndex].Items, e.ResPageData.PlayerNames.length > 0 ? (this.InitialPriceLabel.node.active = !0, this.InitialPriceLabel.string = this.GetFormatPrice(e.InitialGiftPack.Money), this.CurrentPriceLabel.node.x = 116) : (this.InitialPriceLabel.node.active = !1, this.CurrentPriceLabel.node.x = 0), this.CurrentPriceLabel.string = this.GetFormatPrice(e.CurrentGiftPack.Money), this.PointLabel2.string = "\xd7" + e.CurrentGiftPack.VipPoint, this.SetGiftPackItems(e.CurrentGiftPack)
                }, t.prototype.SetGiftPackItems = function(e) {
                    for (var t = 0; t < e.Items.length; t++) {
                        var n = this._itemComponentArr[t];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(this.ItemsContainer), n = o.getComponent(m.ItemComponent), this._itemComponentArr[t] = n
                        }
                        n.node.active = !0;
                        var r = e.Items[t].Items;
                        n.Init({
                            ItemId: r[0],
                            Count: r[1]
                        }, m.ItemComponentType.ItemCommon)
                    }
                    for (t = e.Items.length; t < this._itemComponentArr.length; t++) this._itemComponentArr[t].node.active = !1
                }, t.prototype.SetCutPriceRecord = function(e) {
                    var t = e.ResPageData,
                        n = [],
                        o = this.GetCurrentPageConfig().Group[t.GroupIndex].Items.slice(2);
                    if (t.BuyGiftId) {
                        var r = o.indexOf(t.BuyGiftId);
                        n = t.PlayerNames.slice(0, r + 1)
                    } else n = t.PlayerNames.length > o.length ? t.PlayerNames.slice(0, o.length - 1) : t.PlayerNames;
                    this.LogLeaveCount.string = "<outline width=3 color=#834323>" + "cutPrice_logTitle".ToUILocale().Fmt("<color=03d703>" + (o.length - n.length) + "</color>/" + o.length) + "</outline>", this.LogLeaveCount.string = "cutPrice_leaveCount".ToUILocale().Fmt("<color=#6eeea7>" + (o.length - n.length) + "/" + o.length + "</color>"), this.CreateLogNode(n.length);
                    for (var i = 0; i < n.length; i++) {
                        var a = this._giftPackMap[o[i]],
                            s = void 0;
                        if (0 == i) s = this.GetCutPriceMoney(e.InitialGiftPack, a);
                        else {
                            var l = this._giftPackMap[o[i - 1]];
                            s = this.GetCutPriceMoney(l, a)
                        }
                        this._logNodeArr[i].node.active = !0, this._logNodeArr[i].Init("" + n[i], "cutPrice_price".ToUILocale().Fmt(s))
                    }
                    for (i = n.length; i < this._logNodeArr.length; i++) this._logNodeArr[i].node.active = !1
                }, t.prototype.GetFormatPrice = function(e, t) {
                    return void 0 === t && (t = !0), t ? "" + y.default.Instance.CurrencySymbol + y.default.Instance.ExchangeMoney(e) : y.default.Instance.ExchangeMoney(e).toString()
                }, t.prototype.GetCutPriceMoney = function(e, t) {
                    var n = y.default.Instance.ExchangeMoney(e.Money),
                        o = y.default.Instance.ExchangeMoney(t.Money);
                    return "" + y.default.Instance.CurrencySymbol + Math.max(0, n - o).ToFixedExact(2)
                }, t.prototype.CreateLogNode = function(e) {
                    if (this._cloneLogNode || (this._cloneLogNode = cc.instantiate(this.LogScrollView.content.children[0])), this.LogScrollView.content.childrenCount < e)
                        for (var t = this.LogScrollView.content.childrenCount; t < e; t++) cc.instantiate(this._cloneLogNode).parent = this.LogScrollView.content;
                    if (this._logNodeArr.length < e)
                        for (t = this._logNodeArr.length; t < e; t++) {
                            var n = this.LogScrollView.content.children[t].getComponent(E);
                            n || (n = this.LogScrollView.content.children[t].addComponent(E)), this._logNodeArr[t] = n
                        }
                }, t.prototype.SetBuyBtn = function() {
                    this._pageDatas[this._currentPageIndex].ResPageData.BuyGiftId ? (this.BuyButton.node.active = !1, this.BoughtNode.active = !0, this.PointNode.active = !1) : (this.BuyButton.node.active = !0, this.BoughtNode.active = !1, this.PointNode.active = !0, w.RedDotManager.Instance.BindNodeByResult(this.BuyButton.node, w.RedDotManager.Instance.InstanceRedDot.CutPriceGiftPackBuyBtn, !(this.GetLeaveCutCount() > 0)))
                }, t.prototype.RefreshSendBtnState = function() {
                    this.GetLeaveCutCount() > 0 && !this._pageDatas[this._currentPageIndex].ResPageData.BuyGiftId ? (this.SendButton.node.active = !0, this.GraySendButton.node.active = !1, w.RedDotManager.Instance.BindInstance(this.SendButton.node, w.RedDotManager.Instance.InstanceRedDot.CutPriceGiftPackSendBtn, {
                        Value1: this._activityConfig._id,
                        extra: this.GetCurrentPageConfig().Id
                    })) : (this.SendButton.node.active = !1, this.GraySendButton.node.active = !0, this.AfterSendHelpStorage())
                }, t.prototype.onDestroy = function() {
                    for (var e in this._assetParams) {
                        var t = this._assetParams[e].LoadedAsset;
                        t && l.AssetsManager.Instance.UnloadAsset(t)
                    }
                    this._assetParams = {}
                }, i([D(cc.Sprite)], t.prototype, "Bg", void 0), i([D(cc.Node)], t.prototype, "AvatarNode", void 0), i([D(cc.Button)], t.prototype, "TaskButton", void 0), i([D(cc.Label)], t.prototype, "TaskButtonLabel", void 0), i([D(cc.Node)], t.prototype, "PlayerMessagesNode", void 0), i([D(cc.Label)], t.prototype, "ItemTitleLabel", void 0), i([D(cc.Node)], t.prototype, "ItemsContainer", void 0), i([D(cc.Node)], t.prototype, "BoughtNode", void 0), i([D(cc.Label)], t.prototype, "BoughtLabel", void 0), i([D(cc.Button)], t.prototype, "GraySendButton", void 0), i([D(cc.Label)], t.prototype, "GraySendButtonLabel", void 0), i([D(cc.Button)], t.prototype, "SendButton", void 0), i([D(cc.Label)], t.prototype, "SendButtonLabel", void 0), i([D(cc.Button)], t.prototype, "BuyButton", void 0), i([D(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([D(cc.Node)], t.prototype, "PointNode", void 0), i([D(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([D(cc.Label)], t.prototype, "PointLabel1", void 0), i([D(cc.Label)], t.prototype, "PointLabel2", void 0), i([D(cc.Label)], t.prototype, "InitialPriceTag", void 0), i([D(cc.Label)], t.prototype, "InitialPriceLabel", void 0), i([D(cc.Label)], t.prototype, "CurrentPriceLabel", void 0), i([D(cc.Node)], t.prototype, "ChannelList", void 0), i([D(cc.Button)], t.prototype, "ChanelButton", void 0), i([D(cc.Label)], t.prototype, "ChanelButtonLabel", void 0), i([D(cc.Toggle)], t.prototype, "ChannelToggleArr", void 0), i([D(cc.Label)], t.prototype, "ChannelLabelArr", void 0), i([D(cc.Label)], t.prototype, "LogTitle", void 0), i([D(cc.ScrollView)], t.prototype, "LogScrollView", void 0), i([D(cc.RichText)], t.prototype, "LogLeaveCount", void 0), i([D(cc.Node)], t.prototype, "ChatNode", void 0), i([D(cc.Label)], t.prototype, "Title", void 0), i([D(cc.Button)], t.prototype, "RuleButton", void 0), i([D(A.default)], t.prototype, "ActivityCountDownComponent", void 0), i([D(cc.Button)], t.prototype, "BackButton", void 0), i([D(L.default)], t.prototype, "PanelBottomToggles", void 0), i([M], t)
            }(l.BaseUIFullScreenPanel);
        n.default = B;
        var N = function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Toggle = this.node.getComponent(d.default)
                }, t.prototype.SetBubbleTipPrefab = function(e) {
                    this._bubbleTipPrefab = e
                }, t.prototype.Init = function(e, t, n) {
                    this.StartTime = e, this.EndTime = t, this.PackName = n, this._isEnd = !1, this.Toggle.Init(this.PackName), this.HideCountDownBubble();
                    var o = p.RpcComponent.Instance.ServerTime;
                    o < this.StartTime ? (this._second = Math.floor((this.StartTime - o) / h.Etc.SecondDuration), this.ShowCountDownBubble(v.default.ActivityTimeLeftFormat(this.StartTime - o)), this.Toggle.SetInteractable(!1)) : o > this.EndTime ? (this._isEnd = !0, this.Toggle.SetInteractable(!1, "cutPrice_packEnd".ToUILocale())) : (this._isEnd = !0, this.Toggle.SetInteractable(!0))
                }, t.prototype.ShowCountDownBubble = function(e) {
                    if (!this._bubbleTipComponent) {
                        var t = cc.instantiate(this._bubbleTipPrefab);
                        t.setParent(this.node), this._bubbleTipComponent = t.getComponent(k.default), t.x = 0, t.y = 82, this._bubbleTipComponent.Tip.node.color = (new cc.Color).fromHEX("#6eeea7")
                    }
                    this._bubbleTipComponent.node.active = !0, this._bubbleTipComponent.Init(e)
                }, t.prototype.HideCountDownBubble = function() {
                    this._bubbleTipComponent && (this._bubbleTipComponent.node.active = !1)
                }, t.prototype.update = function() {
                    if (!this._isEnd) {
                        var e = p.RpcComponent.Instance.ServerTime;
                        if (e < this.StartTime) {
                            var t = Math.floor((this.StartTime - e) / h.Etc.SecondDuration);
                            t != this._second && (this._second = t, this.ShowCountDownBubble(v.default.ActivityTimeLeftFormat(this.StartTime - e)), this.Toggle.SetInteractable(!1))
                        } else e > this.EndTime ? (this._isEnd = !0, this.HideCountDownBubble(), this.Toggle.SetInteractable(!1, "cutPrice_packEnd".ToUILocale())) : (this._isEnd = !0, this.HideCountDownBubble(), this.Toggle.SetInteractable(!0))
                    }
                }, t
            }(cc.Component),
            E = function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.PlayerNameLabel = this.node.getChildByName("PlayerNameLabel").getComponent(cc.Label), this.BargainPriceLabel = this.node.getChildByName("BargainPriceLabel").getComponent(cc.Label)
                }, t.prototype.Init = function(e, t) {
                    this.PlayerNameLabel.string = e, this.BargainPriceLabel.string = t
                }, t
            }(cc.Component);
        (function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.RichTextArr = [], t._initialPosYArr = [], t._interval = 3, t._newMessageIndex = 0, t
            }
            r(t, e), t.prototype.onLoad = function() {
                var e = this;
                this.node.children.forEach(function(t) {
                    e._initialPosYArr.push(t.y), e.RichTextArr.push(t.getComponent(cc.RichText)), t.active = !1
                })
            }, t.prototype.Init = function(e) {
                if (this._messagesArr = e, this._newMessageIndex = 0, this.RichTextArr.forEach(function(e) {
                        e.node.active = !1
                    }), this.unscheduleAllCallbacks(), this._messagesArr.length > 0) {
                    this._stepArr = [];
                    for (var t = Math.min(3, this._messagesArr.length), n = 0; n < t; n++) {
                        this._stepArr.length < this._initialPosYArr.length && this._newMessageIndex < t && (this._stepArr.push(this._initialPosYArr.length - 1), (r = this.RichTextArr[this._stepArr.length - 1]).node.active = !0, r.node.y = this._initialPosYArr[this._initialPosYArr.length - 1], r.string = this.GetNewMessage());
                        for (var o = 0; o < this._stepArr.length; o++) {
                            var r;
                            o < this._stepArr.length - 1 && (this._stepArr[o]--, (r = this.RichTextArr[o]).node.y = this._initialPosYArr[this._stepArr[o]])
                        }
                    }
                    this._messagesArr.length > this.RichTextArr.length && this.schedule(this.ScheduleCallBack, this._interval + .4)
                }
            }, t.prototype.ScheduleCallBack = function() {
                for (var e = this, t = function(t) {
                        var o = n.RichTextArr[t];
                        if (0 == n._stepArr[t]) return n._stepArr[t] = n._initialPosYArr.length - 1, o.node.active = !1, n.scheduleOnce(function() {
                            o.node.active = !0, o.node.y = e._initialPosYArr[e._stepArr[t]], o.string = e.GetNewMessage()
                        }, .4), "continue";
                        cc.tween(o.node).to(.4, {
                            y: n._initialPosYArr[n._stepArr[t] - 1]
                        }).start(), n._stepArr[t]--
                    }, n = this, o = 0; o < this._stepArr.length; o++) t(o)
            }, t.prototype.GetNewMessage = function() {
                var e = this._messagesArr[this._newMessageIndex];
                return this._newMessageIndex++, this._newMessageIndex == this._messagesArr.length && (this._newMessageIndex = 0), e
            }
        })(cc.Component), cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/OrangeBubbleTipComponent": "OrangeBubbleTipComponent",
        "../Components/PanelBottomToggles": "PanelBottomToggles",
        "../Components/StrongholdWarMiniChatting": "StrongholdWarMiniChatting",
        "./ChattingMiniPanel": "ChattingMiniPanel"
    }],
    DailyBuffCard: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c1ae1+AYeVBSYbvOB38/ZLL", "DailyBuffCard");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("./CountdownLabel"),
            d = e("../../Components/Components"),
            h = e("../../../Util/TimeUtil"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../RedDot/RedDotManager"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CardFrontSprite = null, t.CardBackSprite = null, t.NameLabel = null, t.Icon = null, t.DescRichText = null, t.GetButton = null, t.GetButtonLabel = null, t.BtnMaskNode = null, t.CountdownLabel = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    if (void 0 === n && (n = !1), n && this.PlayAnimation(), this._id = e, this._index = t, this._isInit || (this._isInit = !0, this.GetButton.node.on("click", this.OnGetButtonClick, this), this.GetButtonLabel.string = "shop_buyFree".ToUILocale()), e) {
                        switch (e < 0 ? (this.BtnMaskNode.active = !1, this.GetButtonLabel.node.active = !0) : (this.BtnMaskNode.active = !0, this.GetButtonLabel.node.active = !1, this.CountdownLabel.Init(h.TimeUtil.GetOffsetDayTs(1, h.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime)))), this._dailyBuffConfig = d.ConfigDataComponent.Instance.GetConfigById(u.DailyBuff_Config, Math.abs(e)), this.NameLabel.string = this._dailyBuffConfig.Id.ToDailyBuffTitle(), this.DescRichText.string = this._dailyBuffConfig.Id.ToDailyBuffDesc(), this._dailyBuffConfig.Type) {
                            case f.DailyBuffType.ModuleBonus:
                                var o = this._dailyBuffConfig.Params[0].Items[0];
                                if (o < f.ModuleBonusType.UnlockKeyStart) switch (o) {
                                    case f.ModuleBonusType.BuyCoin:
                                    case f.ModuleBonusType.AllianceTestFirst:
                                    case f.ModuleBonusType.BuyBattlePoint:
                                    case f.ModuleBonusType.DailyInstanceAngel:
                                        this.DescRichText.string += "<br/><color=#00ff00>+" + this._dailyBuffConfig.Params[0].Items[1] / 10 + "%</color>";
                                        break;
                                    default:
                                        o <= f.ModuleBonusType.HangUpXpWater ? this.DescRichText.string += "<br/><color=#00ff00>+" + this._dailyBuffConfig.Params[0].Items[1] / 10 + "%</color>" : o >= f.ModuleBonusType.HangUpIntelligence && o <= f.ModuleBonusType.DailyInstanceCharm ? this.DescRichText.string += "<br/><color=#00ff00>+" + this._dailyBuffConfig.Params[0].Items[1] / 10 + "%</color>" : this.DescRichText.string += "<br/><color=#00ff00>+" + this._dailyBuffConfig.Params[0].Items[1] + "</color>"
                                }
                                break;
                            case f.DailyBuffType.Items:
                            case f.DailyBuffType.MoneyPackDiamond:
                                this.DescRichText.string += "<br/><color=#00ff00>+" + this._dailyBuffConfig.Params[0].Items[1] + "</color>";
                                break;
                            case f.DailyBuffType.AllBattleAttrs:
                            case f.DailyBuffType.PvpBattleAttrs:
                            case f.DailyBuffType.PveBattleAttrs:
                                this.DescRichText.string += "<br/><color=#00ff00>+" + this._dailyBuffConfig.Params[0].Items[1] / 10 + "%</color>"
                        }
                        this.SetIcon(), this.BindRedDot()
                    }
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return void 0 !== this._icon ? [3, 2] : (this._icon = null, [4, l.AssetsManager.Instance.LoadAsset(this._dailyBuffConfig.Icon, cc.SpriteFrame)]);
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._icon = e, [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    if (!this._icon) return [2];
                                    t.label = 3;
                                case 3:
                                    return this.Icon.spriteFrame = this._icon, [2]
                            }
                        })
                    })
                }, t.prototype.BindRedDot = function() {
                    for (var e = d.DataCenter.Instance.GetArrayData(f.UserDataKey.DailyBuff), t = g.default.GetModuleBonusByType(f.ModuleBonusType.DailyBuffCount) + 1, n = 0; n < e.length; n++) e[n] > 0 && t--;
                    this._redDotNode || (this._redDotNode = {}), m.RedDotManager.Instance.BindNodeByResult(this.GetButton.node, this._redDotNode, this._id < 0 && t > 0)
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._icon)
                }, t.prototype.OnGetButtonClick = function() {
                    var e = d.DataCenter.Instance.GetArrayData(f.UserDataKey.DailyBuff);
                    if (!(e[this._index] > 0)) {
                        for (var t = g.default.GetModuleBonusByType(f.ModuleBonusType.DailyBuffCount) + 1, n = 0; n < e.length; n++) e[n] > 0 && t--;
                        if (t > 0) {
                            var o = [this._index];
                            for (t--, n = 0; n < e.length; n++) this._index != e[n] && e[n] < 0 && t > 0 && (o.push(n), t--);
                            this.RequestReward(o)
                        } else l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [f.MallPageType.DailySelected, f.GiftPackType.MonthCard])
                    }
                }, t.prototype.RequestReward = function(e) {
                    var t = new c.Req_Player_DailyBuffReward;
                    t.Indexs = e, d.RpcComponent.Instance.Call(t, function(e) {
                        e.Rewards && e.Rewards.length > 0 && l.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                    })
                }, t.prototype.PlayAnimation = function() {
                    var e = this;
                    this.CardBackSprite.node.active = !0, cc.tween(this.CardFrontSprite.node).to(.15, {
                        scaleX: 0
                    }).call(function() {
                        e.CardBackSprite.node.active = !1
                    }).to(.15, {
                        scaleX: 1
                    }).start()
                }, i([C(cc.Sprite)], t.prototype, "CardFrontSprite", void 0), i([C(cc.Sprite)], t.prototype, "CardBackSprite", void 0), i([C(cc.Label)], t.prototype, "NameLabel", void 0), i([C(cc.Sprite)], t.prototype, "Icon", void 0), i([C(cc.RichText)], t.prototype, "DescRichText", void 0), i([C(cc.Button)], t.prototype, "GetButton", void 0), i([C(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([C(cc.Node)], t.prototype, "BtnMaskNode", void 0), i([C(p.default)], t.prototype, "CountdownLabel", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "./CountdownLabel": "CountdownLabel"
    }],
    DailyBuffPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "392c6YinjVM+YuhfKV6ifqq", "DailyBuffPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/DailyBuffCard"),
            p = e("../../Components/DataCenter"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../Components/IconTimeBtn"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../Consts/GameEventIds"),
            g = e("../../Auxiliary/GameRecord"),
            m = e("../../Components/RpcComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HintLabel = null, t.CardContainer = null, t.HintRichText = null, t.ActivityLabel = null, t._cardComponents = [], t._assets = [], t
                }
                return r(t, e), t.prototype.start = function() {
                    this._playAnimation = "DailyBuffPanel" == this.node.parent.name, this.HintLabel.string = "dailyBuff_selectHint".ToUILocale(), this.ActivityLabel.string = "hangUpDropOnDrop".ToUILocale(), this.SetCards(), this.SetMonthCardButton(), g.default.SetItem(g.GameRecordDefine.DailyBuffLastOpenTime, m.RpcComponent.Instance.ServerTime)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(c.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), l.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(c.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), l.Game.EventDispatcher.On(y.GameEventIds.RemoveDataDetail.Fmt(c.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), l.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(c.MallActivity_Model._n_), this.OnMallModuleChange, this), l.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(c.MallActivity_Model._n_), this.OnMallModuleChange, this), l.Game.EventDispatcher.On(y.GameEventIds.RemoveDataDetail.Fmt(c.MallActivity_Model._n_), this.OnMallModuleChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(c.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), l.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(c.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), l.Game.EventDispatcher.Off(y.GameEventIds.RemoveDataDetail.Fmt(c.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), l.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(c.MallActivity_Model._n_), this.OnMallModuleChange, this), l.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(c.MallActivity_Model._n_), this.OnMallModuleChange, this), l.Game.EventDispatcher.Off(y.GameEventIds.RemoveDataDetail.Fmt(c.MallActivity_Model._n_), this.OnMallModuleChange, this)
                }, t.prototype.SetCards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return void 0 !== this._cardPrefab ? [3, 2] : (this._cardPrefab = null, [4, l.AssetsManager.Instance.LoadAsset("WelfarePanel/Component/DailyBuffCard", cc.Prefab)]);
                                case 1:
                                    return e = i.sent(), this.isValid ? (this._cardPrefab = e, this._assets.push(e), [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    if (!this._cardPrefab) return [2];
                                    i.label = 3;
                                case 3:
                                    for (t = p.DataCenter.Instance.GetArrayData(d.UserDataKey.DailyBuff), n = 0; n < 3; n++)(o = this._cardComponents[n]) || (r = cc.instantiate(this._cardPrefab), o = r.getComponent(u.default), this.CardContainer.addChild(r), this._cardComponents[n] = o), o.Init(t[n], n, this._playAnimation);
                                    return this._playAnimation = !1, [2]
                            }
                        })
                    })
                }, t.prototype.SetMonthCardButton = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this.CheckIsShowMonthCardButton() ? (this.HintRichText.string = "<outline width=3 color=#440000>" + "dailyBuff_cardHint".ToUILocale() + "</outline>", this._monthCardNode ? [3, 4] : void 0 !== this._iconTimeBtnPrefab ? [3, 2] : (this._iconTimeBtnPrefab = null, [4, l.AssetsManager.Instance.LoadAsset(f.BundlePath.ICON_TIME_BUTTON, cc.Prefab)])) : (this._monthCardNode && (this._monthCardNode.active = !1), this.HintRichText.string = "<outline width=3 color=#440000>" + "dailyBuff_cardHint".ToUILocale() + "<color=#00ff00>(" + "monthCard_active".ToUILocale() + ")</color></outline>", [2]);
                                case 1:
                                    return e = o.sent(), this.isValid ? (this._iconTimeBtnPrefab = e, this._assets.push(e), [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    if (!this._iconTimeBtnPrefab) return [2];
                                    o.label = 3;
                                case 3:
                                    this._monthCardNode = cc.instantiate(this._iconTimeBtnPrefab), this._monthCardNode.parent = this.node, this._monthCardNode.on("click", this.ClickMonthCard, this), this._monthCardNode.setPosition(380, this.HintRichText.node.y + 66), o.label = 4;
                                case 4:
                                    return t = this._monthCardNode.getComponent(h.default), [4, l.AssetsManager.Instance.LoadAsset("MainPanel/UI/MainUIIcons/monthCard", cc.SpriteFrame)];
                                case 5:
                                    return n = o.sent(), this.isValid ? (this._btnIcon = n, this._assets.push(n), t.LoadIcon(n), t.SetNameLabel("mainUI_monthCard".ToUILocale()), t.SetReddot(!1), t.SetSpineEffect(["UI_effect_xinyuanzhaohuan_xinyuanzhuli2", "Ani_effect_xinyuanzhaohuan_xinyuanzhuli2"]), [2]) : (l.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.CheckIsShowMonthCardButton = function() {
                    var e = p.DataCenter.Instance.GetDataById(c.MallActivity_Model, d.GiftPackType.MonthCard).Int2DArray[d.MonthCardType.Perfect - 1];
                    return !(e && e.Items.length > 2 && e.Items[2] < e.Items[1])
                }, t.prototype.ClickMonthCard = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.MallNewPanel.Path, [d.MallPageType.DailySelected, d.GiftPackType.MonthCard])
                }, t.prototype.OnUserSimpleDataChange = function(e) {
                    for (var t in e)
                        if (Number(t) == d.UserDataKey.DailyBuff) {
                            this.SetCards();
                            break
                        }
                }, t.prototype.OnMallModuleChange = function() {
                    this.SetMonthCardButton()
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([C(cc.Label)], t.prototype, "HintLabel", void 0), i([C(cc.Node)], t.prototype, "CardContainer", void 0), i([C(cc.RichText)], t.prototype, "HintRichText", void 0), i([C(cc.Label)], t.prototype, "ActivityLabel", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/DailyBuffCard": "DailyBuffCard",
        "../Components/IconTimeBtn": "IconTimeBtn"
    }],
    DailyBuffPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "865e14oVsBEYp8EQL/wC8+Y", "DailyBuffPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = cc._decorator,
            l = s.ccclass,
            c = (s.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t
                }
                return r(t, e), i([l], t)
            }(a.BaseUIPanel));
        n.default = c, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    DailyCheckInActivityComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "90adauDDZpEfoCQ4QbSFgU+", "DailyCheckInActivityComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Etc"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/RpcComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/ItemComponent");
        (function(e) {
            e[e.Lock = 0] = "Lock", e[e.Normal = 1] = "Normal", e[e.Received = 2] = "Received"
        })(a || (a = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.IndexLabel = null, t.ItemsContainer = null, t.ReceiveBtn = null, t.ReceiveBtnGray = null, t.ReceivedTip = null, t.ReceiveLabel = null, t.ReceiveLabelGray = null, t.LeftTimeLabel = null, t._packConfig = void 0, t._packState = a.Normal, t._received = !1, t._startTime = 0, t._itemPrefab = null, t._itemComponentList = [], t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.ReceiveLabel.string = "receive".ToUILocale(), this.ReceiveLabelGray.string = "CollectionPavilion_Item_Lock".ToUILocale(), this.ReceiveBtn.on("click", this.OnReceiveGift, this)
            }, t.prototype.onEnable = function() {
                d.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                d.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDestroy = function() {
                this.unschedule(this.RefreshStartTime)
            }, t.prototype.Init = function(e, t, n) {
                this._activityId = e, this.packIndex = t;
                var o = y.DataCenter.Instance.ActivityConfigs[this._activityId];
                this._packConfig = o.DailyRewards[t], this._itemPrefab = n, this._received = this.JudgePackReceive(this.packIndex), this._startTime = h.default.Instance.ComputeActivitStartTime(o.Common) + t * p.Etc.DayDuration, this.IndexLabel.string = "" + (this.packIndex + 1), this.RefreshPackState(), this.RenderItems(), this.ChangeItemBtnState();
                var r = this.TimeToUnLocke();
                r > 0 && (this.unschedule(this.UnlockPackStyle), this.scheduleOnce(this.UnlockPackStyle, r / p.Etc.SecondDuration)), this._packState == a.Lock ? (this.LeftTimeLabel.node.active = !0, this.RefreshStartTime(), this.unschedule(this.RefreshStartTime), this.schedule(this.RefreshStartTime, 1)) : this.LeftTimeLabel.node.active = !1
            }, t.prototype.RenderItems = function() {
                for (var e = 0; e < this._packConfig.Rewards.length; e++) {
                    var t = this._packConfig.Rewards[e];
                    if (this._itemComponentList[e]) this._itemComponentList[e].node.active = !0, this._itemComponentList[e].Init({
                        ItemId: t.Items[0],
                        Count: t.Items[1]
                    });
                    else {
                        var n = this.CreateItem(t.Items[0], t.Items[1]);
                        this._itemComponentList.push(n)
                    }
                }
                for (; e < this._itemComponentList.length; e++) this._itemComponentList[e].node.active = !1
            }, t.prototype.CreateItem = function(e, t) {
                var n = cc.instantiate(this._itemPrefab),
                    o = n.getComponent(I.ItemComponent);
                return o.Init({
                    ItemId: e,
                    Count: t
                }), this.ItemsContainer.addChild(n), o
            }, t.prototype.ChangeItemBtnState = function() {
                var e = this;
                this.ReceiveBtnGray.active = !1, this.ReceiveBtn.active = !1, this.ReceivedTip.active = !1;
                var t = [];
                switch (this._packState) {
                    case a.Lock:
                        this.ReceiveBtnGray.active = !0, t = [!1, !0, !1];
                        break;
                    case a.Normal:
                        this.ReceiveBtn.active = !0, t = [!1, !1, !1];
                        break;
                    case a.Received:
                        this.ReceivedTip.active = !0, t = [!0, !1, !0]
                }
                this._itemComponentList.forEach(function(n) {
                    e.SetItemMask(t, n)
                })
            }, t.prototype.SetItemMask = function(e, t) {
                t.SetSelectFlagState(e[0]), t.SetLockFlag(e[1]), t.ItemMask.node.active = e[2]
            }, t.prototype.OnReceiveGift = function() {
                var e = new u.Req_Activity_DailySigninRewards;
                e.ActivityId = this._activityId, g.RpcComponent.Instance.Call(e, function(e) {
                    m.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                })
            }, t.prototype.RefreshStartTime = function() {
                var e = this.TimeToUnLocke();
                e > 0 && (this.LeftTimeLabel.string = "DailyCheckIn_LeftTime".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e)))
            }, t.prototype.UnlockPackStyle = function() {
                this.RefreshPackState(), this.ChangeItemBtnState(), this._packState != a.Lock && (this.unschedule(this.RefreshStartTime), this.LeftTimeLabel.node.active = !1)
            }, t.prototype.RefreshPackState = function() {
                this._received = this.JudgePackReceive(this.packIndex), this.TimeToUnLocke() > 0 ? this._packState = a.Lock : this._received ? this._packState = a.Received : this._packState = a.Normal
            }, t.prototype.OnItemClick = function(e, t) {
                t.parent == this.ItemsContainer && m.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t)
            }, t.prototype.TimeToUnLocke = function() {
                return this._startTime - g.RpcComponent.Instance.ServerTime
            }, t.prototype.JudgePackReceive = function(e) {
                return e + 1 <= y.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId).IntValue
            }, i([c(cc.Label)], t.prototype, "IndexLabel", void 0), i([c(cc.Node)], t.prototype, "ItemsContainer", void 0), i([c(cc.Node)], t.prototype, "ReceiveBtn", void 0), i([c(cc.Node)], t.prototype, "ReceiveBtnGray", void 0), i([c(cc.Node)], t.prototype, "ReceivedTip", void 0), i([c(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([c(cc.Label)], t.prototype, "ReceiveLabelGray", void 0), i([c(cc.Label)], t.prototype, "LeftTimeLabel", void 0), i([l], t)
        }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    DailyCheckInActivityPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1ca8d/4iOZFNLw8ymevGEQT", "DailyCheckInActivityPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/DataCenter"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Components/RpcComponent"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./DailyCheckInActivityComponent"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Components/CustomLayout"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleSprite = null, t.BackGroundSprite = null, t.TipsRichText = null, t.LeftTimeRichText = null, t.PackContainer = null, t.LastDayComponent = null, t.PackCustomLayout = null, t._activityId = 0, t._activityConfig = null, t._activityModel = null, t._itemPrefab = null, t._packPrefab = null, t._loadAssets = [], t._lastDayIsReceived = !1, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "ActivityModel", {
                    get: function() {
                        return this._activityModel
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    y.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    y.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("DailyCheckInActivityPanel/DailyCheckInActivityComponent", cc.Prefab), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._itemPrefab = o[0], this._packPrefab = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TipsRichText.string = "DailyCheckInActivity_tip".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityId = t[0], this._activityConfig = u.DataCenter.Instance.ActivityConfigs[this._activityId]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this._activityConfig.Common.Pictures, n = p.default.LoadActivityTexture(t[0]), o = p.default.LoadActivityTexture(t[1]), [4, Promise.all([n, o])];
                                case 1:
                                    return r = i.sent(), this._loadAssets.push(r[0]), this._loadAssets.push(r[1]), this.BackGroundSprite.spriteFrame = r[0], this.TitleSprite.spriteFrame = r[1], [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.RefreshModel(), t ? this._activityModel.IntValue == this._activityConfig.DailyRewards.length && 0 == this._lastDayIsReceived && (this._lastDayIsReceived = !0, this.LastDayComponent.UnlockPackStyle()) : (this.PackCustomLayout.Init(this._packPrefab), this.RenderLastDayStyle(), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), this._activityModel.IntValue == this._activityConfig.DailyRewards.length && (this._lastDayIsReceived = !0)), this.RenderPackLayout()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.unschedule(this.RefreshDeadLine)
                }, t.prototype.RefreshDeadLine = function() {
                    var e = p.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - d.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTimeRichText.string = "HeroRisingStarPackagePanel_DeadlineTimeRichText".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(e))
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.PackCustomLayout == t && e.forEach(function(e, t) {
                        e.getComponent(f.default).Init(n._activityId, t, n._itemPrefab)
                    })
                }, t.prototype.RenderPackLayout = function() {
                    var e = this._activityConfig.DailyRewards.length;
                    this.PackCustomLayout.RenderLayOut(e - 1, Math.min(this._activityModel.IntValue), this.PackCustomLayout.SpaceY)
                }, t.prototype.RenderLastDayStyle = function() {
                    var e = this._activityConfig.DailyRewards.length - 1;
                    this.LastDayComponent.Init(this._activityId, e, this._itemPrefab)
                }, t.prototype.RefreshModel = function() {
                    this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId)
                }, i([C(cc.Sprite)], t.prototype, "TitleSprite", void 0), i([C(cc.Sprite)], t.prototype, "BackGroundSprite", void 0), i([C(cc.RichText)], t.prototype, "TipsRichText", void 0), i([C(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([C(cc.Node)], t.prototype, "PackContainer", void 0), i([C(f.default)], t.prototype, "LastDayComponent", void 0), i([C(m.default)], t.prototype, "PackCustomLayout", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/CustomLayout": "CustomLayout",
        "./DailyCheckInActivityComponent": "DailyCheckInActivityComponent"
    }],
    DailyCheckInRunnerPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c0c93dezYRG8buOpR8Du01T", "DailyCheckInRunnerPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DailyCheckRunnerPanelType = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/DailyScrollCircleComponent "),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../../Consts/GameEventIds"),
            y = e("../../Components/DataCenter"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../Components/RpcComponent"),
            I = e("../Components/DailyCheckScrollItemComponent"),
            _ = e("../../../Consts/Etc"),
            C = e("../../../../Proto/Static/ConfigProto"),
            v = e("../../Components/Components"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../Channel/ChannelManager");
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Charge = 1] = "Charge"
        })(l = n.DailyCheckRunnerPanelType || (n.DailyCheckRunnerPanelType = {})),
        function(e) {
            e[e.Back = 0] = "Back", e[e.Front = 1] = "Front"
        }(c || (c = {}));
        var w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.EffectBack = null, t.EffectFront = null, t.TextNodes = [], t.BackSprite = null, t.HeroContainer = null, t.CircleSprite = null, t.Circle = null, t.BuyNode = null, t.BuyTipsSprite = null, t.BottomNodes = [], t.backNode = null, t.BottomLabels = [], t.Arrows = [], t.LeftTimeRichText = null, t.BtnShowNode = null, t.VipLeftLabel = null, t.VipRightLabel = null, t.DiscountUpLabel = null, t.DiscountDownLabel = null, t.BuyBtnLabel = null, t.ReceivedNode = null, t.BtnTips = null, t.BottomToggleLabels = [], t._activityModel = null, t._type = l.Normal, t._backSpriteCache = [void 0, void 0], t._itemsNodes = [], t._effectCache = [{}, {}], t._loadAssets = [], t._heroAvatarPrefab = null, t._circleFlag = !1, t._charged = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(f.GameEventIds.AddDataDetail.Fmt(d.UserActivity_Model._n_), this.OnDataChange, this), u.Game.EventDispatcher.On(f.GameEventIds.ChangeDataDetail.Fmt(d.UserActivity_Model._n_), this.OnDataChange, this), u.Game.EventDispatcher.On(f.GameEventIds.RemoveDataDetail.Fmt(d.UserActivity_Model._n_), this.OnDataChange, this), u.Game.EventDispatcher.On(h.EventKeys.EVENT_PAY_SUCCESS, this.OnDataChange, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(f.GameEventIds.AddDataDetail.Fmt(d.UserActivity_Model._n_), this.OnDataChange, this), u.Game.EventDispatcher.Off(f.GameEventIds.ChangeDataDetail.Fmt(d.UserActivity_Model._n_), this.OnDataChange, this), u.Game.EventDispatcher.Off(f.GameEventIds.RemoveDataDetail.Fmt(d.UserActivity_Model._n_), this.OnDataChange, this), u.Game.EventDispatcher.Off(h.EventKeys.EVENT_PAY_SUCCESS, this.OnDataChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("DailyCheckInRunnerPanel/PNG/DailyCheckInRunnerPanel", cc.SpriteAtlas), n = this.LoadDynamicAsset("DailyCheckInRunnerPanel/Components/DailyCheckScrollItemComponent", cc.Prefab), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._atlas = o[0], this._itemPrefab = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.Title.string = ("NewSignIn_" + l[this._type]).ToUILocale(), this.BtnTips.string = "NewSignIn_NeedCharge".ToUILocale(), this.BottomToggleLabels[0].string = "NewSignIn_Normal".ToUILocale(), this.BottomToggleLabels[1].string = "NewSignIn_Normal".ToUILocale(), this.BottomToggleLabels[2].string = "NewSignIn_Charge".ToUILocale(), this.BottomToggleLabels[3].string = "NewSignIn_Charge".ToUILocale(), this.BuyNode.on("click", this.OnClickBuy, this), this.backNode.on("click", this.OnClickBack, this), this.BottomNodes.forEach(function(e) {
                        e.on("toggle", t.OnClickToggle, t)
                    }), this.Arrows[0].on("click", this.OnClickArrows, this), this.Arrows[1].on("click", this.OnClickArrows, this)
                }, t.prototype.InitData = function(t) {
                    var n;
                    e.prototype.InitData.call(this);
                    var o = t[0];
                    this._config = y.DataCenter.Instance.ActivityConfigs[o], this._backPath = this._config.Common.Pictures, this._activityModel = y.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._config._id);
                    var r = null === (n = this._activityModel) || void 0 === n ? void 0 : n.Packs[this._config._Packs[0].Id];
                    this._charged = (r ? r.Items[0] : 0) > 0, this._pastDays = Math.ceil((m.RpcComponent.Instance.ServerTime - g.default.Instance.ComputeActivitStartTime(this._config.Common)) / _.Etc.DayDuration)
                }, t.prototype.DisPlay = function(t) {
                    return a(this, void 0, Promise, function() {
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this, t), t ? [3, 2] : (this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), [4, this.Render()]);
                                case 1:
                                    n.sent(), this.RenderBtn(), this.RenderEffect(c.Back), this.RenderEffect(c.Front), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnDataChange = function() {
                    var e;
                    this._activityModel = y.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._config._id);
                    var t = null === (e = this._activityModel) || void 0 === e ? void 0 : e.Packs[this._config._Packs[0].Id];
                    this._charged = (t ? t.Items[0] : 0) > 0, this.RanderCircleItems(), this.RenderBtn()
                }, t.prototype.OnClickBuy = function() {
                    S.default.Instance.Pay(this._config._Packs[0].Id, this._config._id)
                }, t.prototype.OnClickToggle = function(e) {
                    var t = this.BottomNodes.indexOf(e.node); - 1 == t || t > 1 || t == this._type || (this._type = t, this.Render(), this.RenderBtn())
                }, t.prototype.OnclickBubble = function(e, t) {
                    if (!t.CanReceive) return t.Data.Charged ? e.UnLock ? e.Received : b.UIUtlity.ShowFloatingHint("NewSignIn_CanNotReceive".ToUILocale().Fmt(e.Day - this._pastDays)) : b.UIUtlity.ShowFloatingHint("NewSignIn_ChargeGet".ToUILocale()), void b.UIUtlity.ShowItemTip(e.ItemData.ItemId, t.node);
                    var n = new d.Req_Activity_NewSignInReceiveRewards;
                    n.ActivityId = this._config._id, n.Type = this._type + 1, m.RpcComponent.Instance.Call(n, function(e) {
                        b.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnClickBack = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickArrows = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return t = 360 / this._itemsNodes.length, e.node != this.Arrows[0] ? [3, 2] : (this.Arrows[0].active = !1, this.Arrows[1].active = !1, [4, this.Circle.ScrollByAngle(t)]);
                                case 1:
                                    return n.sent(), this.Arrows[0].active = !0, this.Arrows[1].active = !0, [3, 4];
                                case 2:
                                    return this.Arrows[0].active = !1, this.Arrows[1].active = !1, [4, this.Circle.ScrollByAngle(t, .1, -1)];
                                case 3:
                                    n.sent(), this.Arrows[0].active = !0, this.Arrows[1].active = !0, n.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.RefreshDeadLine = function() {
                    var e = g.default.Instance.ComputeExtraShowDeadTime(this._config.Common) - m.RpcComponent.Instance.ServerTime;
                    e < 0 ? u.UIManager.Instance.BackUIPanel() : this.LeftTimeRichText.string = "HeroRisingStarPackagePanel_DeadlineTimeRichText".ToUILocale().Fmt(g.default.ActivityTimeLeftFormat(e))
                }, t.prototype.Close = function() {
                    var t, n, o, r;
                    e.prototype.Close.call(this), this.unschedule(this.RefreshDeadLine), this._heroAvatarPrefab && u.AssetsManager.Instance.UnloadAsset(this._heroAvatarPrefab), u.AssetsManager.Instance.UnloadAsset(null === (t = this._effectCache[l.Normal][c.Back]) || void 0 === t ? void 0 : t.effect), u.AssetsManager.Instance.UnloadAsset(null === (n = this._effectCache[l.Normal][c.Front]) || void 0 === n ? void 0 : n.effect), u.AssetsManager.Instance.UnloadAsset(null === (o = this._effectCache[l.Charge][c.Back]) || void 0 === o ? void 0 : o.effect), u.AssetsManager.Instance.UnloadAsset(null === (r = this._effectCache[l.Charge][c.Front]) || void 0 === r ? void 0 : r.effect)
                }, t.prototype.RanderCircleItems = function() {
                    for (var e = this._config.Rewards, t = e.length - 1; t >= 0; t--) {
                        var n = e.length - 1 - t,
                            o = e[t],
                            r = this._type == l.Normal,
                            i = o[(r ? "Free" : "") + "Rewards"],
                            a = g.default.Instance.ComputeActivitStartTime(this._config.Common),
                            s = m.RpcComponent.Instance.ServerTime,
                            c = this._activityModel && this._activityModel.IntArray[this._type] ? this._activityModel.IntArray[this._type] : 0,
                            u = {
                                ItemData: {
                                    ItemId: i[0].Items[0],
                                    Count: i[0].Items[1]
                                },
                                UnLock: (s - a) / _.Etc.DayDuration >= o.Id - 1,
                                Day: o.Id,
                                Received: o.Id <= c,
                                Charged: !!r || this._charged
                            };
                        if (!this._itemsNodes[n]) {
                            var p = cc.instantiate(this._itemPrefab);
                            this._itemsNodes.push(p)
                        }
                        this._itemsNodes[n].getComponent(I.default).Set(u, this.OnclickBubble.bind(this))
                    }
                    this._circleFlag || (this._circleFlag = !0, this.Circle.Set(this._itemsNodes, -(30 + 21 * this._itemsNodes.length), 21, this._itemsNodes.length > 7 ? 21 * (this._itemsNodes.length - 7) : .1))
                }, t.prototype.Render = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this.Title.string = ("NewSignIn_" + l[this._type]).ToUILocale(), this._backSpriteCache[this._type] ? [3, 2] : [4, g.default.LoadActivityTexture(this._backPath[this._type])];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._loadAssets.push(e), this._backSpriteCache[this._type] = e, o.label = 2;
                                case 2:
                                    return this.BackSprite.spriteFrame = this._backSpriteCache[this._type], this.RenderEffect(c.Back), this.RenderEffect(c.Front), this.RenderAvatar(), this.CircleSprite.spriteFrame = this._atlas.getSpriteFrame("DailyCheckInRunnerPanelCircle" + (this._type + 1)), this.RanderCircleItems(), this.TextNodes[0].active = this._type == l.Normal, this.TextNodes[1].active = !this.TextNodes[0].active, this._pastDays >= 1 && (t = 360 / this._config.Rewards.length, n = this._activityModel.IntArray[this._type] ? this._activityModel.IntArray[this._type] : 0, this.Circle.SetAngle(t * (n - 1) + this.Circle.StartAngle)), [2]
                            }
                        })
                    })
                }, t.prototype.RenderAvatar = function() {
                    var e;
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    switch (t = this._config.CustomPart.BgHeros[this._type].Items[0], n = this._config.CustomPart.BgHeros[this._type].Items[1], t) {
                                        case 1:
                                        case 2:
                                            if (null == (r = v.ConfigDataComponent.Instance.GetConfigById(C.HeroBase_Config, n))) break;
                                            o = r.UIAvatar + "/Avatar";
                                            break;
                                        case 3:
                                            o = (null === (e = v.ConfigDataComponent.Instance.GetConfigById(C.HeroSkin_Config, n)) || void 0 === e ? void 0 : e.UIAvatar) + "/Avatar"
                                    }
                                    return n ? [4, this.LoadDynamicAsset(o, cc.Prefab)] : [2];
                                case 1:
                                    return i = s.sent(), this.isValid ? (u.AssetsManager.Instance.UnloadAsset(this._heroAvatarPrefab), this._heroAvatarPrefab = i, a = cc.instantiate(this._heroAvatarPrefab), this.HeroContainer.destroyAllChildren(), this.HeroContainer.addChild(a), r && g.default.Instance.SetHeroAvatarSkin(a, r.Id, r.StarLevel), [2]) : (u.AssetsManager.Instance.UnloadAsset(i), [2])
                            }
                        })
                    })
                }, t.prototype.RenderBtn = function() {
                    this._type == l.Normal ? this.BtnShowNode.active = !1 : this.BtnShowNode.active = !0, this.ReceivedNode.active = this._charged, this.BuyNode.active = !this._charged;
                    var e = this._config._Packs[0],
                        t = e.Money;
                    this.BuyBtnLabel.string = t > 0 ? S.default.Instance.CurrencySymbol + S.default.Instance.ExchangeMoney(t) : "shop_buyFree".ToUILocale(), this.VipLeftLabel.node.parent.active = e.VipPoint > 0, this.VipLeftLabel.string = "task_get_score_tag".ToUILocale(), this.VipRightLabel.string = "x" + e.VipPoint, g.default.Instance.SetDisCount(e.Discount, this.DiscountUpLabel, this.DiscountDownLabel)
                }, t.prototype.RenderEffect = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._effectCache[e][this._type] ? (e == c.Back ? (this.EffectBack.skeletonData = this._effectCache[e][this._type].effect, this.EffectBack.setAnimation(0, this._effectCache[e][this._type].effectName, !0)) : (this.EffectFront.skeletonData = this._effectCache[e][this._type].effect, this.EffectFront.setAnimation(0, this._effectCache[e][this._type].effectName, !0)), [2]) : (t = this._type == l.Charge ? e == c.Back ? this._config.CustomPart.BgEffect : this._config.CustomPart.FgEffect : e == c.Back ? this._config.CustomPart.FreeBgEffect : this._config.CustomPart.FreeFgEffect) && "" != t ? [4, g.default.LoadActivityEffect(t)] : [2];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this._effectCache[e][this._type] = n, e == c.Back ? (this.EffectBack.skeletonData = this._effectCache[e][this._type].effect, this.EffectBack.setAnimation(0, n.effectName, !0)) : (this.EffectFront.skeletonData = this._effectCache[e][this._type].effect, this.EffectFront.setAnimation(0, n.effectName, !0)), [2]) : (u.AssetsManager.Instance.UnloadAsset(n.effect), [2])
                            }
                        })
                    })
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(sp.Skeleton)], t.prototype, "EffectBack", void 0), i([A(sp.Skeleton)], t.prototype, "EffectFront", void 0), i([A([cc.Node])], t.prototype, "TextNodes", void 0), i([A(cc.Sprite)], t.prototype, "BackSprite", void 0), i([A(cc.Node)], t.prototype, "HeroContainer", void 0), i([A(cc.Sprite)], t.prototype, "CircleSprite", void 0), i([A(p.default)], t.prototype, "Circle", void 0), i([A(cc.Node)], t.prototype, "BuyNode", void 0), i([A(cc.Sprite)], t.prototype, "BuyTipsSprite", void 0), i([A([cc.Node])], t.prototype, "BottomNodes", void 0), i([A(cc.Node)], t.prototype, "backNode", void 0), i([A([cc.Label])], t.prototype, "BottomLabels", void 0), i([A([cc.Node])], t.prototype, "Arrows", void 0), i([A(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([A(cc.Node)], t.prototype, "BtnShowNode", void 0), i([A(cc.Label)], t.prototype, "VipLeftLabel", void 0), i([A(cc.Label)], t.prototype, "VipRightLabel", void 0), i([A(cc.Label)], t.prototype, "DiscountUpLabel", void 0), i([A(cc.Label)], t.prototype, "DiscountDownLabel", void 0), i([A(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([A(cc.Node)], t.prototype, "ReceivedNode", void 0), i([A(cc.Label)], t.prototype, "BtnTips", void 0), i([A([cc.Label])], t.prototype, "BottomToggleLabels", void 0), i([P], t)
            }(u.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/DailyCheckScrollItemComponent": "DailyCheckScrollItemComponent",
        "../Components/DailyScrollCircleComponent ": "DailyScrollCircleComponent "
    }],
    DailyCheckScrollItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "83ef2tg2Z5Kx4bZWynAg8VQ", "DailyCheckScrollItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./ItemComponent"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Day = null, t.ItemContainer = null, t.Lock = null, t.ReceivedNode = null, t.Bubble = null, t._haveEventFlag = !1, t._unloadAssets = [], t.Received = !1, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Data", {
                    get: function() {
                        return this._itemData
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Set = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._itemData = e, this._itemComponent ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (n = r.sent(), !this.isValid) return [2];
                                    this._unloadAssets.push(n), this._itemPrefab = n, o = cc.instantiate(n), this.ItemContainer.addChild(o), this._itemComponent = o.getComponent(l.ItemComponent), r.label = 2;
                                case 2:
                                    return this._itemComponent.Init(this._itemData.ItemData), this.Lock.active = !this._itemData.Charged, this.Day.string = "firstCharge_dayth".ToUILocale().Fmt(this._itemData.Day), this.ReceivedNode.active = this._itemData.Received, !this._itemData.Received && this._itemData.UnLock && this._itemData.Charged ? (this._itemComponent.PlayGetRewardEffect(), this.CanReceive = !0) : (this._itemComponent.PauseGetRewardEffect(), this.CanReceive = !1), this._haveEventFlag || (this._haveEventFlag = !0, this._clickCallBack = t), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && p.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && this._clickCallBack(this._itemData, this)
                }, i([y(cc.Label)], t.prototype, "Day", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Node)], t.prototype, "Lock", void 0), i([y(cc.Node)], t.prototype, "ReceivedNode", void 0), i([y(cc.Sprite)], t.prototype, "Bubble", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./ItemComponent": "ItemComponent"
    }],
    DailyChooseComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "646e1dfykVBQruVD+WQlxLY", "DailyChooseComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../Channel/ChannelManager"),
            d = e("../../Auxiliary/DataUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.PurchaseLimit = null, t.AttainLabel = null, t.AttainNumber = null, t.PurchaseButton = null, t.PurchaseButtonLabel = null, t.SellOutMask = null, t.SellOutTag = null, t.ItemContainer = null, t.EXPNode = null, t.RedNode = null, t.DiscountLabel = null, t.DiscountValue = null, t._items = [], t
                }
                return r(t, e), t.prototype.SetTitle = function(e) {
                    return this.Title.string = e, this
                }, t.prototype.SetPurchaseLimit = function(e, t, n) {
                    var o;
                    return this.PurchaseLimit.node.parent.active = 0 != n, e <= 0 ? (o = ("mall_buyLimit_" + n).ToUILocale().Fmt("<color = ff0000>" + e + "</c>", t), this.SellOutTag.active = !0) : (o = ("mall_buyLimit_" + n).ToUILocale().Fmt("</c><color = 33ff8e>" + e, t), this.SellOutTag.active = !1), this.SellOutMask.active = this.SellOutTag.active, this.PurchaseButton.node.active = !this.SellOutTag.active, this.PurchaseLimit.string = "<color = ffffff>" + o + "</>", this
                }, t.prototype.SetPrice = function(e, t, n) {
                    return this.PurchaseButton.node.y = 0 == e ? -22 : -44, this.PurchaseButtonLabel.string = 0 == e ? "shop_buyFree".ToUILocale() : p.default.Instance.CurrencySymbol + p.default.Instance.ExchangeMoney(e), this.AttainLabel.node.active = 0 != e, this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.AttainNumber.node.active = 0 != e, this.RedNode.active = 0 == e, this.EXPNode.active = 0 != e, this.AttainNumber.string = "x" + t, d.default.Instance.SetDisCount(n, this.DiscountValue, this.DiscountLabel), this
                }, t.prototype.SetItems = function(e, t) {
                    var n;
                    if (t.length > this._items.length) {
                        for (var o = 0; o < this._items.length; o++) n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this._items[o].node.name = t[o].Items[0].toString();
                        for (o = this._items.length; o < t.length; o++) {
                            var r = e.Get();
                            r.active = !0, r.name = t[o].Items[0].toString(), r.setParent(this.ItemContainer), this._items[o] = r.getComponent(l.ItemComponent), n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                                ItemId: t[o].Items[0],
                                Count: t[o].Items[1]
                            }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon)
                        }
                    } else {
                        for (o = 0; o < t.length; o++) n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this._items[o].node.name = t[o].Items[0].toString();
                        for (o = t.length; o < this._items.length; o++) this._items[o].node.active = !1, e.Put(this._items[o].node);
                        this._items.length = t.length
                    }
                    return this
                }, t.prototype.SetButtonClick = function(e) {
                    this._index = e, this.PurchaseButton.node.on("click", this.OnPurchaseButtonClick, this)
                }, t.prototype.OnPurchaseButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_MALL_BUTTONCLICK, this._index)
                }, t.prototype.onDisable = function() {
                    this.PurchaseButton.node.off("click", this.OnPurchaseButtonClick, this)
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([y(cc.Label)], t.prototype, "AttainLabel", void 0), i([y(cc.Label)], t.prototype, "AttainNumber", void 0), i([y(cc.Button)], t.prototype, "PurchaseButton", void 0), i([y(cc.Label)], t.prototype, "PurchaseButtonLabel", void 0), i([y(cc.Node)], t.prototype, "SellOutMask", void 0), i([y(cc.Node)], t.prototype, "SellOutTag", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Node)], t.prototype, "EXPNode", void 0), i([y(cc.Node)], t.prototype, "RedNode", void 0), i([y(cc.Label)], t.prototype, "DiscountLabel", void 0), i([y(cc.Label)], t.prototype, "DiscountValue", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    DailyInstanceListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a27932tF2xGOLl93NSNt6PZ", "DailyInstanceListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("./ItemComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../../Consts/Consts"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../Components/DataCenter"),
            m = e("../../Components/RpcComponent"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../Channel/ChannelManager"),
            b = e("../../Components/Components"),
            S = e("../Battle/BattleManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.InstanceName = null, t.DungenNameLabelOutline = null, t.PowerCondition = null, t.ItemRoot = null, t.CurrencyIcon = null, t.CurrencyCount = null, t.BtnQuickFight = null, t.LabelBtnQuickFight = null, t.BtnFight = null, t.LabelBtnFight = null, t.BtnUnOpen = null, t.LabelBtnUnOpen = null, t.RecommendTag = null, t.SmallTittleSprite = null, t.BattlingSpine = null, t.BtnCantMop = null, t.LabelBtnCantMop = null, t._requestInstanceType = 0, t._dailyInstanceType = 0, t._mopCost = 0, t._itemIndex = 0, t._freeBattleCountDaily = 0, t._maxBattleCountDaily = 0, t._bonus = 0, t._uiStylePath = null, t._itemPrefab = null, t._itemSprite = null, t._unloadAssets = [], t._itemComponentTable = [], t._isInit = !1, t._isBusy = !1, t._isFree = !1, t._isCanMop = !1, t._addationVipCount = 0, t.POWER_CONDITION_WIDTH = 300, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    I.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    I.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemRoot.children.indexOf(t) && d.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.InitUI = function(e, t, n, o) {
                    if (this._baseData = e, this._mapId = this._baseData.Id, this._dailyInstanceType = t, this._requestInstanceType = t, this._mopCost = o, this._itemIndex = n, this._mapConfig = b.ConfigDataComponent.Instance.GetConfigById(l.MapBase_Config, this._baseData.Id), this.SetBaseUI(), !this._isInit) {
                        this._isInit = !0;
                        var r = v.default.Instance.IsHighSchoolChannel();
                        this.CurrencyIcon.node.scale = r ? .9 : 1, this.CurrencyCount.node.scale = r ? 1.1 : 1, this.CurrencyCount.node.x = 0, this.SetClickEvent(), this.SetLocalText(), this.LoadItemIcon(), this.InitGlobalSettingData(), this.GetVipAddationNum()
                    }
                    this.SetRewardItem(), this.SetCurrencyCount(), this.CheckBattleState(), this.SetRecommendState(!1)
                }, t.prototype.SetBonus = function(e, t) {
                    this._freeBattleCountDaily = e, this._maxBattleCountDaily = t
                }, t.prototype.GetVipAddationNum = function() {
                    var e = C.default.GetModuleBonusByType(h.ModuleBonusType.DailyInstance);
                    this._addationVipCount = e
                }, t.prototype.LoadItemIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._itemSprite ? [3, 2] : (e = C.default.Instance.GetItemPathById(h.CommonItemId.Diamond), [4, c.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)]);
                                case 1:
                                    if (t = n.sent(), !this.isValid) return I.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._unloadAssets.push(t), this._itemSprite = t, n.label = 2;
                                case 2:
                                    return this.CurrencyIcon.spriteFrame = this._itemSprite, [2]
                            }
                        })
                    })
                }, t.prototype.InitGlobalSettingData = function() {}, t.prototype.CheckBattleState = function() {
                    var e = g.DataCenter.Instance.GetDataById(y.DailyInstance_Model, this._dailyInstanceType),
                        t = null == e.MapId ? 0 : e.MapId,
                        n = g.DataCenter.Instance.GetIntData(h.UserDataKey.HighestPower),
                        o = this._baseData.RequirePower;
                    if (this.BattlingSpine.node.active = !1, this._isInBattle = S.BattleManager.Instance.IsInBattle(this._mapConfig.Type), n < o) this.DisableCurrLevel(!0);
                    else {
                        if (0 == t && 0 == this._itemIndex) return this._isCanMop = !1, this._isFree = !0, this.EnableBtnFight(!1, !0), this.PowerCondition.node.active = !1, void(this._isInBattle && (this.BattlingSpine.node.active = !0, this.BattlingSpine.setAnimation(0, "Ani_UI_shilianzhita_dangqiantiaozhan", !0)));
                        if (this._baseData.Id <= t) {
                            this._isCanMop = !0, e.FreeBattleCount < this._freeBattleCountDaily ? (this._isFree = !0, this.EnableBtnFight(!0, !0)) : (this._isFree = !1, this.EnableBtnFight(!0, !1)), this.PowerCondition.node.active = !1;
                            var r = !this._isFree && e.BattleCount + e.FreeBattleCount >= this._maxBattleCountDaily + this._addationVipCount;
                            this.BtnCantMop.node.active = r
                        } else this._baseData.Id == t + 1 ? (this._isCanMop = !1, this._isFree = !0, this.EnableBtnFight(!1, !0), this.PowerCondition.node.active = !1, this._isInBattle && (this.BattlingSpine.node.active = !0, this.BattlingSpine.setAnimation(0, "Ani_UI_shilianzhita_dangqiantiaozhan", !0))) : (this.DisableCurrLevel(!1), this.PowerCondition.node.active = !0, this.PowerCondition.string = "dailyInstance_need_last".ToUILocale(), this.SetPowerConditionType())
                    }
                }, t.prototype.DisableCurrLevel = function(e) {
                    e && (this.PowerCondition.node.active = !0), this._isFree = !1, this._isCanMop = !1, this.EnableBtnUnOpen()
                }, t.prototype.SetBaseUI = function() {
                    this.InstanceName.string = this._baseData.Id.ToMapName(), this.PowerCondition.string = "dailyInstance_power_condition".ToUILocale().Fmt(this._baseData.RequirePower), this.SetPowerConditionType()
                }, t.prototype.SetPowerConditionType = function() {
                    var e = this;
                    this.scheduleOnce(function() {
                        e.PowerCondition.node.width > e.POWER_CONDITION_WIDTH ? (e.PowerCondition.node.anchorX = 1, e.PowerCondition.node.x = 456) : (e.PowerCondition.node.anchorX = .5, e.PowerCondition.node.x = 304)
                    }, 0)
                }, t.prototype.SetClickEvent = function() {
                    this.BtnFight.node.on("click", this.OnBtnFightClick, this), this.BtnQuickFight.node.on("click", this.OnBtnFightClick, this), this.BtnCantMop.node.on("click", this.OnBtnCantMopClick, this)
                }, t.prototype.SetLocalText = function() {
                    this.LabelBtnUnOpen.string = "dailyInstance_unopen".ToUILocale(), this.LabelBtnQuickFight.string = "dailyInstance_mop".ToUILocale(), this.LabelBtnCantMop.string = "dailyInstance_mop".ToUILocale()
                }, t.prototype.SetUIStyle = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return null != this._uiStylePath && this._uiStylePath == e || (this._uiStylePath = e, this.SmallTittleSprite.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame(e), this.DungenNameLabelOutline.color = n.Instance_NAME_OULINE_COLOR[this._dailyInstanceType - 1]), [2]
                        })
                    })
                }, t.prototype.SetRewardItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return I.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._itemPrefab = e, i.label = 2;
                                case 2:
                                    for (n = 0; n < this._itemComponentTable.length; n++) this._itemComponentTable[n].node.active = !1;
                                    for (t = this._baseData.Rewards.length, n = 0; n < t; n++) null == this._itemComponentTable[n] && (this._itemComponentTable[n] = cc.instantiate(this._itemPrefab).getComponent(p.ItemComponent)), this._itemComponentTable[n].node.parent = this.ItemRoot, o = this._baseData.Rewards[n].Items[0], r = this._baseData.Rewards[n].Items[1], this._itemComponentTable[n].node.name = o.toString(), this._itemComponentTable[n].Init({
                                        ItemId: o,
                                        Count: r
                                    }, p.ItemComponentType.ItemCommon), this._itemComponentTable[n].node.active = !0;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetCurrencyCount = function() {
                    this.CurrencyCount.string = this._mopCost.toString()
                }, t.prototype.EnableBtnFight = function(e, t) {
                    this.BtnFight.node.active = !e, this.BtnQuickFight.node.active = e, this.BtnUnOpen.node.active = !1, this.BtnCantMop.node.active = !1, e || (this.LabelBtnFight.string = this._isInBattle ? "idlebattle_inBattle".ToUILocale() : "dailyInstance_challenge".ToUILocale()), this.CurrencyIcon.node.active = !t, d.UIUtlity.SetGray(this.BtnFight.node, this._isInBattle && e, !0)
                }, t.prototype.EnableBtnUnOpen = function() {
                    this.BtnFight.node.active = !1, this.BtnCantMop.node.active = !1, this.BtnQuickFight.node.active = !1, this.BtnUnOpen.node.active = !0
                }, t.prototype.SetRecommendState = function(e) {
                    this.RecommendTag.active = e
                }, t.prototype.OnBtnCantMopClick = function() {
                    d.UIUtlity.ShowFloatingHint("dailyDungen_no_more_times".ToUILocale())
                }, t.prototype.OnBtnFightClick = function() {
                    if (!this._isBusy) {
                        var e = g.DataCenter.Instance.GetDataById(y.DailyInstance_Model, this._dailyInstanceType);
                        this._isInBattle ? this._isCanMop ? d.UIUtlity.ShowFloatingHint("inBattle".ToUILocale()) : S.BattleManager.Instance.ResumePlayBattle(this._mapConfig.Type) : this._isFree ? this._isCanMop ? this.RequestDailyInstanceQuickBattle() : I.Game.EventDispatcher.Emit(f.GameEventIds.StartBattle.Fmt(this._mapConfig.Type), this._baseData.Id) : e.BattleCount + e.FreeBattleCount < this._maxBattleCountDaily + this._addationVipCount ? this.CheckQuickBattleMoney() : d.UIUtlity.ShowFloatingHint("dailyDungen_no_more_times".ToUILocale())
                    }
                }, t.prototype.CheckQuickBattleMoney = function() {
                    var e = h.CommonItemId.Diamond.ToItemName();
                    g.DataCenter.Instance.IsItemEnough(h.CommonItemId.Diamond, this._mopCost) ? this.RequestDailyInstanceQuickBattle() : d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e))
                }, t.prototype.RequestDailyInstanceQuickBattle = function() {
                    this._isBusy = !0;
                    var e = new y.Req_Map_DailyInstanceQuickBattle;
                    this._requestInstanceType = this._dailyInstanceType, e.Type = this._dailyInstanceType, e.MapId = this._mapId, e.Count = 1, m.RpcComponent.Instance.Call(e, this.ResponseDailyInstanceQuickBattle.bind(this), this.ResponseFailed.bind(this))
                }, t.prototype.ResponseDailyInstanceQuickBattle = function(e) {
                    null != this && (this._isBusy = !1, this._requestInstanceType == this._dailyInstanceType && this.node.active && (this.CheckBattleState(), d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)))
                }, t.prototype.ResponseFailed = function() {
                    null != this && (this._isBusy = !1)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && I.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.settlement_win_prefab_path = "DailyInstancePanel/DailyInstanceSettlementComponent", t.settlement_fail_prefab_path = "SettlementPanel/CommonFailSettlementComponent", t.Instance_NAME_OULINE_COLOR = [new cc.Color(129, 81, 28), new cc.Color(30, 129, 28), new cc.Color(28, 80, 129), new cc.Color(129, 28, 28), new cc.Color(110, 85, 172)], i([A(cc.Label)], t.prototype, "InstanceName", void 0), i([A(cc.LabelOutline)], t.prototype, "DungenNameLabelOutline", void 0), i([A(cc.Label)], t.prototype, "PowerCondition", void 0), i([A(cc.Node)], t.prototype, "ItemRoot", void 0), i([A(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([A(cc.Label)], t.prototype, "CurrencyCount", void 0), i([A(cc.Button)], t.prototype, "BtnQuickFight", void 0), i([A(cc.Label)], t.prototype, "LabelBtnQuickFight", void 0), i([A(cc.Button)], t.prototype, "BtnFight", void 0), i([A(cc.Label)], t.prototype, "LabelBtnFight", void 0), i([A(cc.Button)], t.prototype, "BtnUnOpen", void 0), i([A(cc.Label)], t.prototype, "LabelBtnUnOpen", void 0), i([A(cc.Node)], t.prototype, "RecommendTag", void 0), i([A(cc.Sprite)], t.prototype, "SmallTittleSprite", void 0), i([A(sp.Skeleton)], t.prototype, "BattlingSpine", void 0), i([A(cc.Button)], t.prototype, "BtnCantMop", void 0), i([A(cc.Label)], t.prototype, "LabelBtnCantMop", void 0), n = i([P], t)
            }(cc.Component);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./ItemComponent": "ItemComponent"
    }],
    DailyInstancePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d0fe2vYheZAO5wVzksONrHk", "DailyInstancePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DailyInstanceType = void 0;
        var l, c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../Components/CustomToggle"),
            d = e("../../../Util/AppUtil"),
            h = e("../../../Consts/Consts"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../Components/ConfigData/ConfigDataComponent"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../../../../Proto/Static/RpcProto"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../../Components/DataCenter"),
            S = e("../../Components/RpcComponent"),
            w = e("../Components/DailyInstanceListItem"),
            P = e("../../RedDot/RedDotManager"),
            A = e("../../Auxiliary/GlobalDefine"),
            T = e("../../Auxiliary/DataUtlity"),
            R = e("../Battle/BattleManager"),
            L = e("../../Auxiliary/GuideManager"),
            k = e("../../Auxiliary/ModuleGuideManager"),
            O = e("./CommonPriviledgeTipComponent"),
            M = e("../../Components/GlobalConfigComponent"),
            D = e("../Components/AsyncLayout"),
            B = cc._decorator,
            N = B.ccclass,
            E = B.property;
        (function(e) {
            e[e.Coin = 1] = "Coin", e[e.Exp = 2] = "Exp", e[e.Fighter = 3] = "Fighter", e[e.Rune = 4] = "Rune", e[e.Angel = 5] = "Angel", e[e.Gem = 6] = "Gem", e[e.All = 1e3] = "All"
        })(l = n.DailyInstanceType || (n.DailyInstanceType = {}));
        var U = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(u.UINodeType.Fixed), t.MainTittle = null, t.TopLevelToggles = [], t.ItemScroll = null, t.TopScroll = null, t.LeftArrow = null, t.RightArrow = null, t.Grid = null, t.MultilangBg = null, t.InstanceTypeBg = null, t.TodayCountLabel = null, t.BtnReturn = null, t.BtnRule = null, t.BtnFastMop = null, t.BtnFastMopGrey = null, t.FastMopBtnLabel = null, t.FastMopBtnGreyLabel = null, t.PriviledgeNode = null, t.LIST_ITEM_HEIGHT = 221, t.LIST_ITEM_PREFAB_PATH = "DailyInstancePanel/DailyInstanceListItem", t.ATLAS_PATH = "DailyInstancePanel/DailyInstance", t.MULTILANG_BG_PREFEIX = "dailyInstance_", t.INSTANCE_TYPE_BG_PREFEIX = "bg_", t.UI_STYLE_PREFEIX = "small_tittle_", t._rewardBonusTypes = [0, h.ModuleBonusType.DailyInstanceCoin, h.ModuleBonusType.DailyInstanceXp, h.ModuleBonusType.DailyInstanceHero, h.ModuleBonusType.DailyInstanceCharm, h.ModuleBonusType.DailyInstanceAngel, null], t._chanceBonusTypes = [0, h.ModuleBonusType.DailyInstanceCoinCount, h.ModuleBonusType.DailyInstanceXpCount, h.ModuleBonusType.DailyInstanceHeroCount, h.ModuleBonusType.DailyInstanceCharmCount, h.ModuleBonusType.DailyInstanceAngelCount, null], t._freeChances = [0, 0, 0, 0, 0, 0, 0], t._maxChances = [0, 0, 0, 0, 0, 0, 0], t._paidChances = [0, 0, 0, 0, 0, 0, 0], t._isLayoutInit = !1, t._isBusy = !1, t._currLeftTime = 0, t._freeBattleCountDaily = 0, t._maxBattleCountDaily = 0, t._recommendLevelIndex = 0, t._fastMopMapId = 0, t._recommendMapId = 0, t._listItemMap = new Map, t._currInstanceType = l.Coin, t._requestInstanceType = l.Coin, t._InstanceBaseDataMap = new Map, t._currInstanceUserData = null, t._isPlayedAnim = !1, t._jumpIndex = -1, t._isInit = !1, t._bonusKeyValue = null, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                y.Game.EventDispatcher.On(m.EventKeys.EVENT_REFRESH_DAILYINSTANCE, this.RefreshDailyInstance, this), y.Game.EventDispatcher.On(m.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this)
            }, t.prototype.onDisable = function() {
                y.Game.EventDispatcher.Off(m.EventKeys.EVENT_REFRESH_DAILYINSTANCE, this.RefreshDailyInstance), y.Game.EventDispatcher.Off(m.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this)
            }, t.prototype.RefreshDailyInstance = function() {
                this.ReloadInstanceUserData(), this.SetBattleCountUI(), this.SetQuickBattleBtnState(), this.InitCustomLayout()
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(this.LIST_ITEM_PREFAB_PATH, cc.Prefab), n = this.LoadDynamicAsset(this.ATLAS_PATH, cc.SpriteAtlas), o = this.LoadDynamicAsset("CommonPanel/SubItems/CommonPriviledgeTipComponent", cc.Prefab), r = this.LoadDynamicAsset(M.GlobalConfigComponent.GetMultilangKey(A.BundlePath.MultilangAtlasHighSchool), cc.SpriteAtlas), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._listItemPrefab = e[0], i._dailyInstanceAtlas = e[1], i._priviledgePrefab = e[2], i._atlas6 = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var e = this;
                this.SetClickEvent(), this.SetStaticLocalText(), this._idToConfig = {}, I.ConfigDataComponent.Instance.GetArrayConfig(_.MapDailyInstance_Config).forEach(function(t) {
                    e._idToConfig[t.Id] = d.AppUtil.FullCloneObj(t)
                }), I.ConfigDataComponent.Instance.GetArrayConfig(_.DailyInstance_Config).forEach(function(t) {
                    var n = T.default.GetModuleBonusByType(e._rewardBonusTypes[t.Id]);
                    t.Maps.forEach(function(t) {
                        for (var o = e._idToConfig[t].Rewards, r = 0; r < o.length; r++) o[r].Items[1] = Math.floor((1e3 + n) * o[r].Items[1] / 1e3)
                    })
                }), this._bonusKeyValue = T.default.GetModuleBonus(), this._priviledgeNode || (this._priviledgeNode = cc.instantiate(this._priviledgePrefab), this._priviledgeNode.parent = this.PriviledgeNode), this._priviledgeNode.getComponent(O.default).InitData(9, 564, 118)
            }, t.prototype.SetClickEvent = function() {
                this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnFastMop.node.on("click", this.OnBtnFastMopClick, this), this.BtnFastMopGrey.node.on("click", this.OnBtnFastMopGreyClick, this), this.LeftArrow.node.on("click", this.OnClickLeftArrow, this), this.RightArrow.node.on("click", this.OnClickRightArrow, this);
                for (var e = 0; e < this.TopLevelToggles.length; e++) this.TopLevelToggles[e].node.on("toggle", this.OnTopLevelToggleClick, this)
            }, t.prototype.SetStaticLocalText = function() {
                this.MainTittle.string = ("dailyInstance_type_" + this._currInstanceType).ToUILocale();
                for (var e = 0; e < this.TopLevelToggles.length; e++) this.TopLevelToggles[e].Init(("dailyInstance_type_" + (e + 1)).ToUILocale());
                this.FastMopBtnLabel.string = "dailyInstance_quickBattle".ToUILocale(), this.FastMopBtnGreyLabel.string = "dailyInstance_quickBattle".ToUILocale()
            }, t.prototype.OnTopLevelToggleClick = function(e) {
                var t = d.AppUtil.ToInt(e.node.name);
                if (this.TopPageClick(t), k.default.instance.CheckNeedRequestGameModule(v.GameModuleType.DailyInstanceCoin)) {
                    var n = new C.Req_Player_CompleteGameModuleGuide;
                    n.Id = v.GameModuleType.DailyInstanceCoin, S.RpcComponent.Instance.Call(n, function() {
                        y.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_GUIDE_MODULE)
                    })
                }
                this.TopLevelToggles.forEach(function(e) {
                    e.SetLabelActive(e.isChecked)
                })
            }, t.prototype.TopPageClick = function(e) {
                this._currInstanceType != e && (this._currInstanceType = e, this.MainTittle.string = ("dailyInstance_type_" + this._currInstanceType).ToUILocale(), this._isPlayedAnim = !1, this.RefreshDailyInstance(), this.SetMultiLangBg(), this.SetInstanceTypeBg())
            }, t.prototype.OnClickLeftArrow = function() {
                this._currInstanceType > 1 ? (this.TopLevelToggles[this._currInstanceType - 2].check(), this.TopPageClick(this._currInstanceType - 1), this.TopScroll.scrollTo(cc.v2(this._currInstanceType / (this._InstanceBaseDataMap.size - 1), 0), .8)) : this.TopScroll.scrollToLeft()
            }, t.prototype.OnClickRightArrow = function() {
                if (this._currInstanceType < this._InstanceBaseDataMap.size) {
                    if (this._currInstanceType + 1 == l.Angel) {
                        var e = T.default.Instance.IsGameModuleOpen(v.GameModuleType.DailyInstanceAngel),
                            t = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceAngel);
                        if (!e || !t) return
                    }
                    this.TopLevelToggles[this._currInstanceType].check(), this.TopPageClick(this._currInstanceType + 1), this.TopScroll.scrollTo(cc.v2(cc.v2(this._currInstanceType / (this._InstanceBaseDataMap.size - 1), 0)), .8)
                } else this.TopScroll.scrollToRight()
            }, t.prototype.InitData = function(e) {
                null != e[0] && (this._jumpIndex = e[0])
            }, t.prototype.LoadInstanceBaseData = function() {
                if (0 == this._InstanceBaseDataMap.size) {
                    var e = I.ConfigDataComponent.Instance.GetConfig(_.DailyInstance_Config);
                    for (var t in e) this._InstanceBaseDataMap.set(e[t].Id, e[t])
                }
                this._currInstanceType = l.Coin, this._requestInstanceType = l.Coin
            }, t.prototype.ReloadInstanceUserData = function() {
                this._currInstanceUserData = b.DataCenter.Instance.GetDataById(C.DailyInstance_Model, this._currInstanceType)
            }, t.prototype.InitGlobalSettingData = function() {
                this._freeBattleCountDaily = I.ConfigDataComponent.Instance.GetGlobalSettingByKey("DailyInstanceFreeBattleCountDaily"), this._maxBattleCountDaily = I.ConfigDataComponent.Instance.GetGlobalSettingByKey("DailyInstanceMaxBattleCountDaily");
                for (var e = 1; e < this._chanceBonusTypes.length; e++) {
                    var t = this._bonusKeyValue[this._chanceBonusTypes[e]];
                    (null == t || Number.isNaN(t)) && (t = 0), this._freeChances[e] = this._freeBattleCountDaily + t, this._maxChances[e] = this._maxBattleCountDaily + t, (null == (t = this._bonusKeyValue[h.ModuleBonusType.DailyInstance]) || Number.isNaN(t)) && (t = 0), this._paidChances[e] = this._maxBattleCountDaily - this._freeBattleCountDaily + t
                }
            }, t.prototype.GetInstanceBaseDataByType = function(e) {
                return this._InstanceBaseDataMap.get(e)
            }, t.prototype.SetArrowState = function() {
                this.LeftArrow.node.active = !1, this.RightArrow.node.active = !1
            }, t.prototype.SetQuickBattleBtnState = function() {
                this._currLeftTime <= 0 || 0 == this._currInstanceUserData.MapId ? (this.BtnFastMop.node.active = !1, this.BtnFastMopGrey.node.active = !0) : (this.BtnFastMop.node.active = !0, this.BtnFastMopGrey.node.active = !1)
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isInit || (this.ResetToggle(), this._isInit = !0), this._isPlayedAnim = !0, this.BindRedDotUI(), this.ReloadInstanceUserData(), this.SetMultiLangBg(), this.SetInstanceTypeBg(), this.SetBattleCountUI(), this.InitCustomLayout(), this.SetArrowState(), this.SetQuickBattleBtnState(), this.ShowModuleGuide()
            }, t.prototype.BindRedDotUI = function() {
                for (var e = 0; e < this.TopLevelToggles.length; e++) {
                    var t = !0,
                        n = void 0;
                    switch (e + 1) {
                        case l.Coin:
                            (n = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceCoin))[0] && P.RedDotManager.Instance.Bind(this.TopLevelToggles[e].node, P.RedDotManager.Instance.RedDot.CoinInstanceBtnNode, -15, -15);
                            break;
                        case l.Exp:
                            (n = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceExp))[0] && P.RedDotManager.Instance.Bind(this.TopLevelToggles[e].node, P.RedDotManager.Instance.RedDot.ExpInstanceBtnNode, -15, -15);
                            break;
                        case l.Fighter:
                            (n = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceFighter))[0] && P.RedDotManager.Instance.Bind(this.TopLevelToggles[e].node, P.RedDotManager.Instance.RedDot.FighterInstanceBtnNode, -15, -15);
                            break;
                        case l.Rune:
                            (n = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceRune))[0] && P.RedDotManager.Instance.Bind(this.TopLevelToggles[e].node, P.RedDotManager.Instance.RedDot.RuneInstanceBtnNode, -15, -15);
                            break;
                        case l.Angel:
                            n = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceAngel), t = T.default.Instance.IsGameModuleOpen(v.GameModuleType.DailyInstanceAngel), n[0] && t && P.RedDotManager.Instance.Bind(this.TopLevelToggles[e].node, P.RedDotManager.Instance.RedDot.AngelInstanceBtnNode, -15, -15);
                            break;
                        case l.Gem:
                            n = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceGem), t = T.default.Instance.IsGameModuleOpen(v.GameModuleType.DailyInstanceGem), n[0] && t && P.RedDotManager.Instance.Bind(this.TopLevelToggles[e].node, P.RedDotManager.Instance.RedDot.GemInstanceBtnNode, -15, -15)
                    }
                }
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this.LoadInstanceBaseData(), this.InitGlobalSettingData(), this._vipData = T.default.GetModuleBonusByType(v.ModuleBonusType.DailyInstance)
            }, t.prototype.ResetToggle = function() {
                -1 != this._jumpIndex ? this._currInstanceType = this._jumpIndex : this._currInstanceType = l.Coin, this._jumpIndex = -1, this.TopLevelToggles[this._currInstanceType - 1].isChecked = !0, this.MainTittle.string = ("dailyInstance_type_" + this._currInstanceType).ToUILocale();
                for (var e = 0, t = 0; t < this.TopLevelToggles.length; t++) {
                    var n, o = !0,
                        r = void 0;
                    switch (t + 1) {
                        case l.Coin:
                            r = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceCoin);
                            break;
                        case l.Exp:
                            r = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceExp);
                            break;
                        case l.Fighter:
                            r = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceFighter);
                            break;
                        case l.Rune:
                            r = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceRune);
                            break;
                        case l.Angel:
                            r = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceAngel), o = T.default.Instance.IsGameModuleOpen(v.GameModuleType.DailyInstanceAngel);
                            break;
                        case l.Gem:
                            r = T.default.Instance.IsGameModuleUnlock(v.GameModuleType.DailyInstanceGem), o = T.default.Instance.IsGameModuleOpen(v.GameModuleType.DailyInstanceGem)
                    }
                    if (this.TopLevelToggles[t].node.active = o, o) {
                        o && e++, n = r[0];
                        var i = r[1];
                        n ? (f.UIUtlity.OffNodeGray(this.TopLevelToggles[t].node.children[0]), this.TopLevelToggles[t].SetInteractable(!0)) : (f.UIUtlity.OnNodeGray(this.TopLevelToggles[t].node.children[0]), this.TopLevelToggles[t].SetInteractable(!1, i)), this.TopScroll.enabled = e > 5, e > 5 ? this.TopScroll.scrollToLeft() : this.TopScroll.content.x = 0
                    }
                }
            }, t.prototype.SetBattleCountUI = function() {
                this._currInstanceUserData.FreeBattleCount < this._freeChances[this._currInstanceType] ? (this._currLeftTime = this._freeChances[this._currInstanceType] - this._currInstanceUserData.FreeBattleCount, this.TodayCountLabel.string = "dailyInstance_everyDay_freeCount".ToUILocale().Fmt(this._currLeftTime)) : (this._currLeftTime = this._paidChances[this._currInstanceType] - this._currInstanceUserData.BattleCount, this.TodayCountLabel.string = "dailyInstance_everyDay_leftCount".ToUILocale().Fmt(this._currLeftTime))
            }, t.prototype.InitCustomLayout = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._listItemPrefab, this.RefreshScrollView.bind(this))), this.RenderLayout(), [2]
                    })
                })
            }, t.prototype.RenderLayout = function() {
                var e = 0,
                    t = this.GetInstanceBaseDataByType(this._currInstanceType);
                null != t && (e = t.Maps.length), this.ItemScroll.stopAutoScroll(), this.CalcRecommendItem(t), this._recommendLevelIndex >= 0 && !this._isPlayedAnim ? this.Grid.RenderLayout(e, this._recommendLevelIndex) : !this.IsReDisPlay || this.Grid.node.children.length <= 0 ? this._recommendLevelIndex >= 0 ? this.Grid.RenderLayout(e, this._recommendLevelIndex) : this.Grid.RenderLayout(e) : this.Grid.RenderLayout(e, this._recommendLevelIndex), this._isPlayedAnim && this.IsReDisPlay || (f.UIUtlity.AnimationItemsByType1(this.Grid.node.children), this._isPlayedAnim = !0), setTimeout(function() {}, 30)
            }, t.prototype.CalcRecommendItem = function(e) {
                var t = b.DataCenter.Instance.GetIntData(v.UserDataKey.HighestPower),
                    n = e.Maps.length;
                this._recommendLevelIndex = -1, this._fastMopMapId = 0;
                for (var o = 0; o < n; o++) {
                    var r = this.GetMapDailyInstanceDataById(e.Maps[o]);
                    if (e.Maps[o] <= this._currInstanceUserData.MapId + 1 || 0 == this._currInstanceUserData.MapId && 0 == o) {
                        if (!(t >= r.RequirePower)) break;
                        this._recommendLevelIndex = o, this._recommendMapId = e.Maps[o], this._fastMopMapId < this._currInstanceUserData.MapId && (this._fastMopMapId = e.Maps[o])
                    }
                }
            }, t.prototype.ScrollToRecommendLevel = function() {
                var e = this._recommendLevelIndex;
                this.ItemScroll.scrollToOffset(cc.v2(0, e * this.LIST_ITEM_HEIGHT), .2)
            }, t.prototype.SetMultiLangBg = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function() {
                        return e = "" + this.MULTILANG_BG_PREFEIX + l[this._currInstanceType].toLowerCase(), this._currInstanceType == l.Angel ? this.MultilangBg.spriteFrame = null : this.MultilangBg.spriteFrame = this._atlas6.getSpriteFrame(e), [2]
                    })
                })
            }, t.prototype.SetInstanceTypeBg = function() {
                var e = "" + this.INSTANCE_TYPE_BG_PREFEIX + l[this._currInstanceType].toLowerCase();
                this.InstanceTypeBg.spriteFrame = this._dailyInstanceAtlas.getSpriteFrame(e)
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this.GetInstanceBaseDataByType(this._currInstanceType),
                    o = e.getComponent(w.default),
                    r = n.Maps[t],
                    i = this.GetMapDailyInstanceDataById(r);
                this._listItemMap.set(r, o), o.SetBonus(this._freeChances[this._currInstanceType], this._maxChances[this._currInstanceType]), o.InitUI(i, n.Id, t, n.BattlePrice), t == this._recommendLevelIndex && o.SetRecommendState(!0)
            }, t.prototype.GetMapDailyInstanceDataById = function(e) {
                return this._idToConfig[e]
            }, t.prototype.GetListItemUIStylePath = function() {
                return this.UI_STYLE_PREFEIX + "purple"
            }, t.prototype.OnBtnReturnClick = function() {
                g.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnBtnRuleClick = function() {
                var e = {
                    name: "assistant_daily_battle".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["dailyInstance_rule_text".ToUILocale()]
                };
                f.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnBtnFastMopClick = function() {
                var e = this;
                if (!this._isBusy) {
                    var t = this.GetInstanceBaseDataByType(this._currInstanceType),
                        n = t.Maps[0],
                        o = I.ConfigDataComponent.Instance.GetConfigById(_.MapBase_Config, n);
                    if (R.BattleManager.Instance.IsInBattle(o.Type)) f.UIUtlity.ShowFloatingHint("inBattle".ToUILocale());
                    else {
                        var r, i, a = 0,
                            s = (this._vipData, this._paidChances[this._currInstanceType]);
                        this._currInstanceUserData.FreeBattleCount < this._freeChances[this._currInstanceType] && (a = this._freeChances[this._currInstanceType] - this._currInstanceUserData.FreeBattleCount), r = s - this._currInstanceUserData.BattleCount, i = r * t.BattlePrice;
                        var l = "dailyInstance_quickBattleTips".ToUILocale().Fmt(a, r, i);
                        f.UIUtlity.ShowHintPanel("", l, "", null, "", function() {
                            e.CheckQuickBattleMoney(i, r + a)
                        })
                    }
                }
            }, t.prototype.OnBtnFastMopGreyClick = function() {
                var e = this._vipData;
                this._currInstanceUserData.BattleCount + this._currInstanceUserData.FreeBattleCount >= this._maxChances[this._currInstanceType] + e ? f.UIUtlity.ShowFloatingHint("dailyDungen_no_more_times".ToUILocale()) : 0 != this._currInstanceUserData.MapId || f.UIUtlity.ShowFloatingHint("dailyInstance_no_level_can_mop".ToUILocale())
            }, t.prototype.CheckQuickBattleMoney = function(e, t) {
                v.CommonItemId.Diamond.ToItemName(), b.DataCenter.Instance.IsItemEnough(v.CommonItemId.Diamond, e) ? this.RequestDailyInstanceQuickBattle(t) : g.UIManager.Instance.ShowUIPanel(A.PanelConfig.MallNewPanel.Path, [h.MallPageType.DiamondShop, h.GiftPackType.BuyDiamond])
            }, t.prototype.RequestDailyInstanceQuickBattle = function(e) {
                g.EZLog.Log("\u8bf7\u6c42\u4e00\u952e\u626b\u8361"), this._isBusy = !0;
                var t = new C.Req_Map_DailyInstanceQuickBattle;
                this._requestInstanceType = this._currInstanceType, t.Type = this._currInstanceType, t.MapId = this._fastMopMapId, t.Count = e, g.EZLog.Log(this._fastMopMapId), S.RpcComponent.Instance.Call(t, this.ResponseDailyInstanceQuickBattle.bind(this))
            }, t.prototype.ResponseDailyInstanceQuickBattle = function(e) {
                this._requestInstanceType == this._currInstanceType && this.node.active && (this._listItemMap.get(this._recommendMapId).CheckBattleState(), this.RefreshDailyInstance(), f.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this._isBusy = !1)
            }, t.prototype.ShowModuleGuide = function() {
                if (!L.default.Instance.IsInGuide) {
                    var e = k.default.instance.GetNextGuideModule();
                    e > 0 && e == v.GameModuleType.DailyInstanceCoin ? k.default.instance.AddFingerNode(this.TopLevelToggles[0].node) : k.default.instance.RemoveFingerNode(this.TopLevelToggles[0].node)
                }
            }, t.InitBattle = function() {
                n._CurrentBattleMapId = 0, [h.MapType.DailyInstanceCoin, h.MapType.DailyInstanceXp, h.MapType.DailyInstanceHero, h.MapType.DailyInstanceLuckyCharm, h.MapType.DailyInstanceAngel, h.MapType.DailyInstanceGem].forEach(function(e) {
                    y.Game.EventDispatcher.Only(h.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), y.Game.EventDispatcher.Only(h.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), y.Game.EventDispatcher.Only(h.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), y.Game.EventDispatcher.Only(h.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), y.Game.EventDispatcher.Only(h.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                })
            }, t.RestartBattle = function(e) {
                var t = e.Reports[0].MapId;
                n.StartBattle(t)
            }, t.StartBattle = function(e) {
                n._CurrentBattleMapId = e, g.UIManager.Instance.ShowUIPanel(A.PanelConfig.BattleFormationPanel.Path, function(e) {
                    n.RequestDailyInstanceChallenge(e)
                }, [e])
            }, t.RequestDailyInstanceChallenge = function(e) {
                if (n._CurrentBattleMapId) {
                    var t = new C.Req_Map_DailyInstanceChallenge;
                    t.MapId = n._CurrentBattleMapId, t.Formations = e, t.Type = 1;
                    var o = I.ConfigDataComponent.Instance.GetConfig(_.DailyInstance_Config);
                    for (var r in o) {
                        var i = o[r]; - 1 != i.Maps.indexOf(t.MapId) && (t.Type = i.Id)
                    }
                    var a, s = !1;
                    switch (t.Type) {
                        case 1:
                            a = v.GameModuleType.DailyInstanceCoinSkip;
                            break;
                        case 2:
                            a = v.GameModuleType.DailyInstanceExpSkip;
                            break;
                        case 3:
                            a = v.GameModuleType.DailyInstanceFighterSkip;
                            break;
                        case 4:
                            a = v.GameModuleType.DailyInstanceRuneSkip
                    }
                    a && T.default.Instance.IsGameModuleOpen(a) && T.default.Instance.IsGameModuleUnlock(a)[0] && (s = !0), S.RpcComponent.Instance.Call(t, function(e) {
                        R.BattleManager.Instance.StartPlay(e.Report, {
                            CanSkipPlay: s,
                            CanPlayInBackground: !1
                        }), y.Game.EventDispatcher.Emit(m.EventKeys.EVENT_MAINBATTLEANI_REFRESH)
                    })
                }
            }, t.SettleBattle = function(e) {
                var t = new C.Req_Map_BattleSettlement;
                t.MapType = e.MapType, S.RpcComponent.Instance.Call(t, function(t) {
                    var n;
                    1 == t.Result ? (n = w.default.settlement_win_prefab_path, R.BattleManager.Instance.ShowSettlePanel(A.PanelConfig.SettlementWinPanel.Path, n, e, t.Rewards)) : (n = w.default.settlement_fail_prefab_path, R.BattleManager.Instance.ShowSettlePanel(A.PanelConfig.SettlementFailPanel.Path, n, e)), y.Game.EventDispatcher.Emit(m.EventKeys.EVENT_MAINBATTLEANI_REFRESH)
                })
            }, t.CancelBattle = function(e) {
                var t = new C.Req_Map_CancelChallenge;
                t.MapType = e.MapType, S.RpcComponent.Instance.Call(t, function() {
                    y.Game.EventDispatcher.Emit(m.EventKeys.EVENT_MAINBATTLEANI_REFRESH)
                })
            }, t.OnBattleSwitchToBackground = function() {}, t._CurrentBattleMapId = 0, i([E(cc.Label)], t.prototype, "MainTittle", void 0), i([E(p.default)], t.prototype, "TopLevelToggles", void 0), i([E(cc.ScrollView)], t.prototype, "ItemScroll", void 0), i([E(cc.ScrollView)], t.prototype, "TopScroll", void 0), i([E(cc.Button)], t.prototype, "LeftArrow", void 0), i([E(cc.Button)], t.prototype, "RightArrow", void 0), i([E(D.default)], t.prototype, "Grid", void 0), i([E(cc.Sprite)], t.prototype, "MultilangBg", void 0), i([E(cc.Sprite)], t.prototype, "InstanceTypeBg", void 0), i([E(cc.RichText)], t.prototype, "TodayCountLabel", void 0), i([E(cc.Button)], t.prototype, "BtnReturn", void 0), i([E(cc.Button)], t.prototype, "BtnRule", void 0), i([E(cc.Button)], t.prototype, "BtnFastMop", void 0), i([E(cc.Button)], t.prototype, "BtnFastMopGrey", void 0), i([E(cc.Label)], t.prototype, "FastMopBtnLabel", void 0), i([E(cc.Label)], t.prototype, "FastMopBtnGreyLabel", void 0), i([E(cc.Node)], t.prototype, "PriviledgeNode", void 0), n = i([N], t)
        }(y.BaseUIFullScreenPanel);
        n.default = U, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/DailyInstanceListItem": "DailyInstanceListItem",
        "./CommonPriviledgeTipComponent": "CommonPriviledgeTipComponent"
    }],
    DailyInstanceSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c1999rgCihP+phvdFHOt9IO", "DailyInstanceSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("../../../EZFramework/Auxiliary/EZLog"),
            u = e("./CustomRichText"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../EZFramework/UIFrame/UIManager"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./DisplayRewardsComponent"),
            g = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            m = e("../../../EZFramework/EZFramework"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Content = null, t.LineText = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t.BattleName = null, t._mapId = 0, t._isInit = !1, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.SetUI = function(e, t) {
                    this._mapId = e.Reports[0].MapId, this._srewards = t, this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.GetInstanceType(), this.SetBattleName(), this.SetBtnState(), this.LoadReward(), this.RenderContent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.LineText.string = "win_get_reward".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this)
                }, t.prototype.SetBtnState = function() {
                    var e = h.UIManager.Instance.GetUIPanel(f.PanelConfig.DailyInstancePanel.Path);
                    this.BtnReturn.node.active = null == e
                }, t.prototype.OnBtnSureClick = function() {
                    h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    h.UIManager.Instance.BackUIPanel(), h.UIManager.Instance.ShowUIPanel(f.PanelConfig.DailyInstancePanel.Path)
                }, t.prototype.GetInstanceType = function() {
                    var e = d.ConfigDataComponent.Instance.GetArrayConfig(p.DailyInstance_Config),
                        t = e.length;
                    c.EZLog.Log(this._mapId);
                    for (var n = 0; n < t; n++) {
                        var o = e[n].Maps.indexOf(this._mapId);
                        if (c.EZLog.Log(o), o >= 0) {
                            this._instanceType = e[n].Id, this._layerIndex = o + 1;
                            break
                        }
                    }
                }, t.prototype.SetBattleName = function() {
                    this.ConfigBattleName()
                }, t.prototype.ConfigBattleName = function() {
                    var e = ("dailyInstance_type_" + this._instanceType).ToUILocale(),
                        t = "win_layer_type".ToUILocale().Fmt(e, this._layerIndex);
                    this.BattleName.Init(t)
                }, t.prototype.LoadReward = function() {
                    this._rewardData = [];
                    for (var e = 0; e < this._srewards.length; e++) this._rewardData.push({
                        ItemId: this._srewards[e].ItemId,
                        Count: this._srewards[e].Count
                    })
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : [4, g.AssetsManager.Instance.LoadAsset(f.BundlePath.DisplayRewardsComponent)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._displayRewardPrefab = e, n.label = 2;
                                case 2:
                                    return t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(y.DisplayRewardsComponent), this.Content.addChild(t), this._rewardComponent.Init(this._rewardData, this.Content.height), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && m.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([C(cc.Node)], t.prototype, "Content", void 0), i([C(cc.Label)], t.prototype, "LineText", void 0), i([C(cc.Button)], t.prototype, "BtnReturn", void 0), i([C(cc.Button)], t.prototype, "BtnSure", void 0), i([C(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([C(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([C(u.CustomRichText)], t.prototype, "BattleName", void 0), i([_], t)
            }(l.default);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "./CustomRichText": "CustomRichText",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    DailyRewardListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c1dd60+CydL17eZdfiYIjEU", "DailyRewardListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = e("../Components/ItemComponent"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelLabel = null, t.NoRatingLabel = null, t.ItemContainer = null, t.LevelLogo = null, t._items = [], t
                }
                return r(t, e), t.prototype.SetLevel = function(e, t) {
                    e > 0 ? (this.LevelLabel.node.active = !0, this.LevelLogo.node.active = !0, this.NoRatingLabel.node.active = !1, this.LevelLogo.spriteFrame = t, this.LevelLabel.string = "openServer_heroTest_level".ToUILocale().Fmt(e)) : (this.LevelLabel.node.active = !1, this.LevelLogo.node.active = !1, this.NoRatingLabel.node.active = !0, this.NoRatingLabel.string = "openServer_heroTest_noRatingYet".ToUILocale())
                }, t.prototype.SetItems = function(e, t) {
                    if (null == e && (e = []), this._items.length > e.length) {
                        for (var n = 0; n < e.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = e.length; n < this._items.length; n++) this._items[n].node.active = !1, t.Put(this._items[n].node);
                        this._items.length = e.length
                    } else {
                        for (n = 0; n < this._items.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = this._items.length; n < e.length; n++) {
                            var o = t.Get();
                            o.active = !0, o.setParent(this.ItemContainer), this._items[n] = o.getComponent(l.ItemComponent), this.SetItem(n, e[n].Items)
                        }
                    }
                    return this
                }, t.prototype.SetItem = function(e, t) {
                    var n = s.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, t[0]);
                    this._items[e].Init({
                        ItemId: t[0],
                        Count: t[1]
                    }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon)
                }, i([p(cc.Label)], t.prototype, "LevelLabel", void 0), i([p(cc.Label)], t.prototype, "NoRatingLabel", void 0), i([p(cc.Node)], t.prototype, "ItemContainer", void 0), i([p(cc.Sprite)], t.prototype, "LevelLogo", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    DailyRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9e149N37iBFAaU+C0bMPfRy", "DailyRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../Util/AppUtil"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../Components/CustomLayout"),
            p = e("../Components/ItemComponent"),
            d = e("./DailyRewardListItem"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip), t.Title = null, t.MyRatingLabel = null, t.View = null, t.BottomListItem = null, t._initLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), a.Game.EventDispatcher.On(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), a.Game.EventDispatcher.Off(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "arena_rewardPanelTitleDaily".ToUILocale(), this.MyRatingLabel.string = "openServer_heroTest_myRating".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._singlePrefab = t[0], this._itemPool = t[1], this._rawData = t[2], this._rewardsData = s.AppUtil.FullCloneObj(t[2]), this._myRating = null == t[3] ? 0 : t[3], this._atlas = t[4]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._initLayout && (this.View.Init(this._singlePrefab), this._initLayout = !1), this._rewardsData.sort(function(e, t) {
                        return t.Id - e.Id
                    }), a.EZLog.Log("data = ", this._rewardsData), a.EZLog.Log("myRating = ", this._myRating), this.View.RenderLayOut(this._rewardsData.length, this._rewardsData.length - this._myRating);
                    var n = this._myRating > 0 ? this._rawData[this._myRating - 1].Rewards : null;
                    this.BottomListItem.SetItems(n, this._itemPool).SetLevel(this._myRating, this._atlas.getSpriteFrame("alliance_sign_" + this._rawData[(this._myRating > 0 ? this._myRating : 1) - 1].MedalLevel))
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.View && e.forEach(function(e, t) {
                        e.getComponent(d.default).SetItems(n._rewardsData[t].Rewards, n._itemPool).SetLevel(n._rewardsData[t].Id, n._atlas.getSpriteFrame("alliance_sign_" + n._rewardsData[t].MedalLevel))
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "errorCOntainer" == t.parent.name && c.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "MyRatingLabel", void 0), i([y(u.default)], t.prototype, "View", void 0), i([y(d.default)], t.prototype, "BottomListItem", void 0), i([f], t)
            }(a.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./DailyRewardListItem": "DailyRewardListItem"
    }],
    "DailyScrollCircleComponent ": [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9370aXW+NNOo4/61eOchkVY", "DailyScrollCircleComponent ");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Radius = 100, t.DisplayRange = new cc.Vec2(1, 359), t.TransitionRange = 0, t.ScaleTargetValue = 0, t.HaveScrollBorder = 180, t.Circle = null, t.Scrollview = null, t.ScrollviewContent = null, t._nodes = [], t._contentLastPosition = 0, t._lastAngel = 0, t._nowAngel = 0, t._initFlag = !1, t._clickButtonFlag = !1, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "StartAngle", {
                    get: function() {
                        return this._startAngle
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Set = function(e, t, n, o) {
                    void 0 === t && (t = 0), this._nodes = e, n && (this._angleInterval = n), null != o && (this.HaveScrollBorder = o), this._initFlag || (this._initFlag = !0, this.DisplayRange.x = this.MapAngle(this.DisplayRange.x), this.DisplayRange.y = this.MapAngle(this.DisplayRange.y), this.InitNodes()), this.Scrollview.node.on("scrolling", this.OnScrolling, this), this.Scrollview.node.on("scroll-ended", this.ResetScrollView, this), this.Scrollview.node.on("scroll-began", this.ResetScrollView, this), this.Scrollview.node.on(cc.Node.EventType.MOUSE_DOWN, this.ResetScrollView, this), this._perimeter = 2 * this.Radius * Math.PI;
                    var r = this.Scrollview.node.height,
                        i = this.Scrollview.node.width;
                    this.HaveScrollBorder ? this.Scrollview.horizontal ? (this.ScrollviewContent.anchorX = 1, this.ScrollviewContent.width = this._perimeter + this.Scrollview.node.width - 10) : (this.ScrollviewContent.anchorY = 1, this.ScrollviewContent.height = this._perimeter * (this.HaveScrollBorder / 360) + this.Scrollview.node.height - 10) : this.Scrollview.horizontal ? this.ScrollviewContent.height = r + 3840 : this.ScrollviewContent.width = i + 2160, this._startAngle = this.MapAngle(t), this.Circle.angle = this._startAngle, this.SetNodes()
                }, t.prototype.InitNodes = function() {
                    var e = this;
                    this._nodes.forEach(function(t, n) {
                        var o = new cc.Node;
                        o.on(cc.Node.EventType.MOUSE_DOWN, function() {
                            e._clickButtonFlag = !0
                        }, e), o.on(cc.Node.EventType.MOUSE_UP, function() {
                            e._clickButtonFlag = !1
                        }, e), e.Circle.addChild(o), o.addChild(t), t.y = e.Radius, e._angleInterval ? o.angle = n * e._angleInterval : o.angle = n / e._nodes.length * 360
                    })
                }, t.prototype.OnScrolling = function() {
                    this.Scrollview.horizontal ? this._scrollDistance = this.ScrollviewContent.x - this._contentLastPosition : this._scrollDistance = this.ScrollviewContent.y - this._contentLastPosition, this.SetNodes();
                    var e = this._scrollDistance / this._perimeter * 360;
                    this.Circle.angle = this._lastAngel + e, this._nowAngel = this.Circle.angle
                }, t.prototype.ResetScrollView = function() {
                    this._scrollTween && (this._scrollTween.stop(), this.StopScrollTween()), this._clickButtonFlag || (this.HaveScrollBorder || (this.Scrollview.horizontal ? this.ScrollviewContent.x = 0 : this.ScrollviewContent.y = 0), this._lastAngel = this.Circle.angle, this._contentLastPosition = this.Scrollview.horizontal ? this.ScrollviewContent.x : this.ScrollviewContent.y)
                }, t.prototype.MapAngle = function(e) {
                    if (0 == e) return 0;
                    var t = Math.abs(e);
                    return (e / t * (t % 360) + 360) % 360
                }, t.prototype.ScrollByAngle = function(e, t, n) {
                    var o = this;
                    void 0 === t && (t = .1), void 0 === n && (n = 1), this._lastScrollData = {
                        angle: e,
                        direction: n
                    }, this.Scrollview.stopAutoScroll();
                    var r = this.Circle.angle + n * e;
                    return this.HaveScrollBorder && (r < this._startAngle ? r = this._startAngle : r > this._startAngle + this.HaveScrollBorder && (r = this._startAngle + this.HaveScrollBorder)), new Promise(function(e) {
                        o._tweeningResolve = e, o._scrollTween = cc.tween(o.Circle).to(t, {
                            angle: r
                        }, {
                            progress: function(e, t, n, r) {
                                return o.OnScrolling(), e + (t - e) * r
                            }
                        }).call(function() {
                            o.SetNodes(), o.StopScrollTween()
                        }).start()
                    })
                }, t.prototype.SetAngle = function(e) {
                    this.Scrollview.stopAutoScroll(), e = this.MapAngle(e), e = Math.max(e, this._startAngle);
                    var t = (e = Math.min(e, this.HaveScrollBorder + this._startAngle)) - this.Circle.angle,
                        n = Math.abs(t),
                        o = t / n;
                    this.Circle.angle = e, this.SetNodes(), this.HaveScrollBorder && n && (this.ScrollviewContent.y = this.ScrollviewContent.y + o * (n / 360) * this._perimeter)
                }, t.prototype.StopScrollTween = function() {
                    this._lastScrollData && this._tweeningResolve && this._scrollTween && this._tweeningResolve && (this.HaveScrollBorder && this._lastScrollData.angle && (this.ScrollviewContent.y = this.ScrollviewContent.y + this._lastScrollData.direction * (this._lastScrollData.angle / 360) * this._perimeter), this._lastScrollData = void 0, this._tweeningResolve(!0), this._scrollTween = void 0, this._tweeningResolve = void 0)
                }, t.prototype.SetNodes = function() {
                    var e = this;
                    this._nodes.forEach(function(t) {
                        var n = e.Circle.angle,
                            o = t.parent.angle,
                            r = n + o;
                        t.angle = -n - o;
                        var i = e.MapAngle(r);
                        if (i > e.DisplayRange.x && i < e.DisplayRange.y) t.scaleX = 1, t.scaleY = 1, t.opacity = 255;
                        else if (i < e.DisplayRange.x) {
                            var a = Math.abs(i - e.DisplayRange.x),
                                s = Math.max(1 - a / e.TransitionRange, 0);
                            t.opacity = 255 * s;
                            var l = 1 - (1 - e.ScaleTargetValue) * (1 - s);
                            t.scaleX = l, t.scaleY = l
                        } else i > e.DisplayRange.y ? (a = Math.abs(i - e.DisplayRange.y), s = Math.max(1 - a / e.TransitionRange, 0), t.opacity = 255 * s, l = 1 - (1 - e.ScaleTargetValue) * (1 - s), t.scaleX = l, t.scaleY = l) : i > e.DisplayRange.x - e.TransitionRange && i < e.DisplayRange.y + e.TransitionRange && (t.opacity = 0)
                    })
                }, i([l], t.prototype, "Radius", void 0), i([l(cc.Vec2)], t.prototype, "DisplayRange", void 0), i([l], t.prototype, "TransitionRange", void 0), i([l], t.prototype, "ScaleTargetValue", void 0), i([l], t.prototype, "HaveScrollBorder", void 0), i([l(cc.Node)], t.prototype, "Circle", void 0), i([l(cc.ScrollView)], t.prototype, "Scrollview", void 0), i([l(cc.Node)], t.prototype, "ScrollviewContent", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    DailySignContent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "94d11AHLIhM1oEVXKLy8BOi", "DailySignContent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("./DailySignRewardItem"),
            m = e("./NodePool"),
            I = e("../../Components/Components"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../Auxiliary/DataUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RewardsContainer = null, t.Ad = null, t.SignetFather = null, t.ScrollView = null, t.Widgets = [], t.RuleButton = null, t._itemPool = null, t._chosenItem = null, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_WELFRAME_REFRESH, this.SetUI, this), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_WELFRAME_SETCOUNTER, !0, this.Ad), e = l.AssetsManager.Instance.LoadAsset("WelfarePanel/Component/DailySignRewardItem", cc.Prefab), t = l.AssetsManager.Instance.LoadAsset("WelfarePanel/PNG/Welfare", cc.SpriteAtlas), n = l.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([e, t, n]).then(function(e) {
                                        o.isValid ? (o._rewardsPrefab = e[0], o._atlas = e[1], o._itemPrefab = e[2], o._assets = e) : e.forEach(function(e) {
                                            l.AssetsManager.Instance.UnloadAsset(e)
                                        })
                                    })];
                                case 1:
                                    return r.sent(), this._itemPool = new m.default(this._itemPrefab), this.SetUI(), this.RuleButton.node.on("click", this.OnRule, this), [2]
                            }
                        })
                    })
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_WELFRAME_REFRESH, this.SetUI, this), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_WELFRAME_SETCOUNTER, !1), this._assets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemPool && (this._itemPool.Clear(), this._itemPool = null), this.RuleButton.node.off("click", this.OnRule, this)
                }, t.prototype.SetUI = function() {
                    this.node.height = f.UIUtlity.DESIGN_SCREEN_HEIGHT - 570;
                    for (var e = 0; e < this.Widgets.length; e++) this.Widgets[e].updateAlignment();
                    this.RewardsContainer.destroyAllChildren(), this._configs = I.ConfigDataComponent.Instance.GetArrayConfig(c.ClockIn_Config);
                    var t, n = u.DataCenter.Instance.GetIntData(_.UserDataKey.ClockInIndex) - 1;
                    t = this.IsSigned() && !this.IsResigned() ? 1 : 0;
                    for (var o = 0; o < this._configs.length; o++) {
                        var r = cc.instantiate(this._rewardsPrefab);
                        r.setParent(this.RewardsContainer), r.getComponent(g.default).SetBG(o == n).SetItem(this._itemPool, this._configs[o].Rewards[0].Items[0], this._configs[o].Rewards[0].Items[1], o).SetMask(o < n || o == n && this.IsSigned()).SetTag(o < n ? 0 : t), o == n && (this._chosenItem = r.getComponent(g.default), this.IsSigned() ? this._chosenItem.SetEffect(!1) : this._chosenItem.SetEffect(!0))
                    }
                    n > 25 && this.ScrollView.scrollToBottom(.1)
                }, t.prototype.OnOrangeButtonClick = function() {
                    var e = this;
                    if (!this.IsSigned() || this.IsCharged()) {
                        var t = new p.Req_Player_ClockIn;
                        u.RpcComponent.Instance.Call(t, function(t) {
                            var n = e.IsSigned() && !e.IsResigned() ? 1 : 0;
                            e._chosenItem.SetMask(!0).SetTag(n), e._chosenItem.Signet(t.Rewards, e.SignetFather, e.ScrollView), e._chosenItem.SetEffect(!1)
                        })
                    } else f.UIUtlity.ShowHintPanel(null, "dailySign_OneMoreDesc".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        C.default.Instance.HasBoughtFirstPay() ? l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path) : C.default.ShowActivityFirstPayPanel(!0)
                    })
                }, t.prototype.OnGrayButtonClick = function() {
                    f.UIUtlity.ShowFloatingHint("heroIntrodice_has_receive".ToUILocale())
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemContainerx1" == t.parent.name && (f.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t), u.DataCenter.Instance.GetIntData(_.UserDataKey.ClockInIndex) - 1 == Number(t.name) && (this.IsSigned() && this.IsResigned() ? this.OnGrayButtonClick() : this.OnOrangeButtonClick()))
                }, t.prototype.IsSigned = function() {
                    var e = u.DataCenter.Instance.GetIntData(_.UserDataKey.ClockInInfo);
                    return this.JudgeBit(e, 0)
                }, t.prototype.IsCharged = function() {
                    var e = u.DataCenter.Instance.GetIntData(_.UserDataKey.ClockInInfo);
                    return this.JudgeBit(e, 1)
                }, t.prototype.IsResigned = function() {
                    var e = u.DataCenter.Instance.GetIntData(_.UserDataKey.ClockInInfo);
                    return this.JudgeBit(e, 2)
                }, t.prototype.JudgeBit = function(e, t) {
                    return 1 == (e >> t & 1)
                }, t.prototype.OnRule = function() {
                    var e = {
                        name: "dailySign_ruleName".ToUILocale(),
                        titles: ["dailySign_rule".ToUILocale()],
                        contents: ["dailySign_ruleContent".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, i([S(cc.Node)], t.prototype, "RewardsContainer", void 0), i([S(cc.Node)], t.prototype, "Ad", void 0), i([S(cc.Node)], t.prototype, "SignetFather", void 0), i([S(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([S(cc.Widget)], t.prototype, "Widgets", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([b], t)
            }(cc.Component);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./DailySignRewardItem": "DailySignRewardItem",
        "./NodePool": "NodePool"
    }],
    DailySignRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fefdfsGPGNLrpk5h8fjarFG", "DailySignRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../../Components/Components"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../Components/ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CanGetBg = null, t.Tag = null, t.Mask = null, t.ItemContainer = null, t.GetAgain = null, t.TweenNode = null, t
                }
                return r(t, e), t.prototype.SetBG = function(e) {
                    return void 0 === e && (e = !1), this.CanGetBg.node.active = e, this.SetCanGetBgTween(this.CanGetBg.node.active), this
                }, t.prototype.SetItem = function(e, t, n, o) {
                    if (null == this._item) {
                        var r = e.Get();
                        r.setParent(this.ItemContainer), this._item = r.getComponent(u.ItemComponent)
                    }
                    this._item.node.name = o.toString();
                    var i = l.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, t);
                    return this._item.Init({
                        ItemId: t,
                        Count: n
                    }, i.Star ? u.ItemComponentType.ItemWithStar : u.ItemComponentType.ItemCommon), this._item.SetCountFontSize(26, 141), this
                }, t.prototype.SetMask = function(e) {
                    return void 0 === e && (e = !1), e && (this.CanGetBg.node.active = !e, this.SetCanGetBgTween(this.CanGetBg.node.active)), this.Mask.active = e, this
                }, t.prototype.SetTag = function(e) {
                    return 0 == e ? (this.Tag.node.active = !0, this.GetAgain.node.active = !1) : (this.Tag.node.active = !1, this.GetAgain.node.active = !0, this.GetAgain.string = "dailySign_receiveOneMore".ToUILocale()), this
                }, t.prototype.SetEffect = function(e) {
                    e ? this._item.PlayGetRewardEffect() : this._item.PauseGetRewardEffect()
                }, t.prototype.Signet = function(e, t, n) {
                    var o = this;
                    n.stopAutoScroll(), n.enabled = !1, this.TweenNode.setPosition(s.default.Instance.GetNodePositionUnderContainer(this.Tag.node, t)), this.TweenNode.setParent(t), this.TweenNode.scale = 5, this.TweenNode.opacity = 0, cc.tween(this.TweenNode).to(.5, {
                        scale: 1,
                        opacity: 255
                    }).call(function() {
                        c.UIUtlity.ShwDisplayRewardPanel(e), o.TweenNode.setPosition(s.default.Instance.GetNodePositionUnderContainer(o.TweenNode, o.Mask)), o.TweenNode.setParent(o.Mask), n.enabled = !0
                    }).start()
                }, t.prototype.SetCanGetBgTween = function(e) {
                    cc.Tween.stopAllByTarget(this.CanGetBg), this.CanGetBg.node.scale = 1, e && cc.tween(this.CanGetBg.node).to(.5, {
                        scale: 1.1
                    }, {
                        easing: "quadInOut"
                    }).to(.5, {
                        scale: 1
                    }, {
                        easing: "quadInOut"
                    }).union().repeatForever().start()
                }, t.prototype.onDestroy = function() {
                    cc.Tween.stopAllByTarget(this.CanGetBg.node)
                }, i([h(cc.Sprite)], t.prototype, "CanGetBg", void 0), i([h(cc.Sprite)], t.prototype, "Tag", void 0), i([h(cc.Node)], t.prototype, "Mask", void 0), i([h(cc.Node)], t.prototype, "ItemContainer", void 0), i([h(cc.Label)], t.prototype, "GetAgain", void 0), i([h(cc.Node)], t.prototype, "TweenNode", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    DailySummonPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "37bb43/EalMjK+jhBWvueYP", "DailySummonPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./CommonRatePanel"),
            y = e("../../Components/Components"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("./BuyAndSellItemPanel"),
            C = e("./DisplayRewardsPanel"),
            v = e("../Components/SectorProgressBar"),
            b = e("../../RedDot/RedDotManager"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroNameSprite = null, t.RateButton = null, t.RateButtonLabel = null, t.BtnLayoutNode = null, t.ProgressRewards = null, t.SummonButtonLayout = null, t.AutoButton = null, t.AutoButtonLabel = null, t.SummonOnceButton = null, t.SummonOnceButtonLabel = null, t.SummonTenButton = null, t.SummonTenButtonLabel = null, t.CurrencyBarOnce = null, t.CurrencyBarTen = null, t.CurrencyBarAuto = null, t._showHeroId = 16516, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(p.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.OnUserItemChange = function(e) {
                    for (var t in e) {
                        var n = Number.parseInt(t);
                        n == p.CommonItemId.DailySummonTicket ? this.ConfigSummonCurrencyBar() : n == p.CommonItemId.ProgressRewardsDaily && this.RefreshProgressRewards()
                    }
                }, t.prototype.Display = function() {
                    if (!this._isInit) {
                        this._isInit = !0;
                        var e = this.node.addComponent(cc.Widget);
                        e.isAlignTop = !0, e.isAlignBottom = !0, this.RateButton.node.on("click", this.OnRateButtonClick, this), this.AutoButton.node.on("click", this.OnAutoButtonClick, this), this.SummonOnceButton.node.on("click", this.OnSummonOnceButtonClick, this), this.SummonTenButton.node.on("click", this.OnSummonTenButtonClick, this), this.ProgressRewards.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEndProgressRewards, this), this.RateButtonLabel.string = "ratepanel_tittle".ToUILocale(), this.AutoButtonLabel.string = "auto_summon".ToUILocale(), this.SummonOnceButtonLabel.string = "summon_times".ToUILocale().Fmt(1), this.SummonTenButtonLabel.string = "summon_times".ToUILocale().Fmt(10), this.SetHeroAvatar(), this.SetActivityBtns()
                    }
                    this.ConfigSummonCurrencyBar(), this.RefreshProgressRewards(), b.RedDotManager.Instance.Bind(this.ProgressRewards.node, b.RedDotManager.Instance.RedDot.ProgressRewardsDaily)
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), l.AssetsManager.Instance.UnloadAsset(this._heroName), l.AssetsManager.Instance.UnloadAsset(this._iconBtnPrefab), l.AssetsManager.Instance.UnloadAsset(this._btnIcon)
                }, t.prototype.SetHeroAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([l.AssetsManager.Instance.LoadAsset(g.default.GetActivityModelPath([1, this._showHeroId]), cc.Prefab), l.AssetsManager.Instance.LoadAsset(y.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/" + this._showHeroId), cc.SpriteFrame)]).then(function(t) {
                                        if (!e.isValid) return l.AssetsManager.Instance.UnloadAsset(t[0]), void l.AssetsManager.Instance.UnloadAsset(t[1]);
                                        e._avatarPrefab = t[0], e._heroName = t[1];
                                        var n = cc.instantiate(e._avatarPrefab);
                                        e.node.insertChild(n, 0), n.y = 375, e.HeroNameSprite.spriteFrame = e._heroName
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetActivityBtns = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e = y.ConfigDataComponent.Instance.GetConfigById(u.WarTokenType_Config, p.WarTokenType.DailySummon), !(t = y.ConfigCacheComponent.Instance.GetWarTokenGameModule(e.Id)) || g.default.Instance.IsGameModuleOpen(t) && g.default.Instance.IsGameModuleUnlock(t) ? (n = y.DataCenter.Instance.GetDataById(c.WarToken_Model, e.Id), o = y.DataCenter.Instance.GetIntData(p.UserDataKey.VipLevel), n && n.StartTime > 0 && o >= e.VIP ? 0 != this.BtnLayoutNode.childrenCount ? [3, 2] : [4, Promise.all([l.AssetsManager.Instance.LoadAsset(h.BundlePath.ICON_BUTTON, cc.Prefab), l.AssetsManager.Instance.LoadAsset("SummonHeroPanel/Png/TokenBtn", cc.SpriteFrame)]).then(function(t) {
                                        if (!r.isValid) return l.AssetsManager.Instance.UnloadAsset(t[0]), void l.AssetsManager.Instance.UnloadAsset(t[1]);
                                        r._iconBtnPrefab = t[0], r._btnIcon = t[1];
                                        var n = cc.instantiate(r._iconBtnPrefab);
                                        r.BtnLayoutNode.addChild(n), n.width = 120, n.height = 120, n.children[0].getComponent(cc.Sprite).spriteFrame = r._btnIcon, n.children[0].children[0].getComponent(cc.Label).string = e.Id.ToWarTokenName(), n.on("click", function() {
                                            l.UIManager.Instance.ShowUIPanel(h.PanelConfig.WarTokenListPanel.Path, !1, e.Id)
                                        }, r)
                                    })] : [3, 2]) : [2];
                                case 1:
                                    i.sent(), i.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ConfigSummonCurrencyBar = function() {
                    for (var e = y.ConfigDataComponent.Instance.GetConfigById(u.CardCommonSummon_Config, p.CardCommonSummonType.DailySummon), t = y.ConfigDataComponent.Instance.GetConfigById(u.CardCommonSummon_Config, p.CardCommonSummonType.DailySummon10), n = 0; n < e.ConsumeItem.length; n++) {
                        var o = e.ConsumeItem[n];
                        if (this._summonOnceCurrencyId = o.Items[0], this._summonOnceCurrencyCount = o.Items[1], y.DataCenter.Instance.GetItemCount(this._summonOnceCurrencyId) >= this._summonOnceCurrencyCount) break
                    }
                    for (n = 0; n < t.ConsumeItem.length && (o = t.ConsumeItem[n], this._summonTenCurrencyId = o.Items[0], this._summonTenCurrencyCount = o.Items[1], !(y.DataCenter.Instance.GetItemCount(this._summonTenCurrencyId) >= this._summonTenCurrencyCount)); n++);
                    this.CurrencyBarOnce.Init(this._summonOnceCurrencyId, !1, this._summonOnceCurrencyCount);
                    var r = y.DataCenter.Instance.IsItemEnough(this._summonOnceCurrencyId, this._summonOnceCurrencyCount);
                    this.CurrencyBarOnce.SetFixedColor(r ? cc.Color.WHITE : cc.Color.RED), this.CurrencyBarTen.Init(this._summonTenCurrencyId, !1, this._summonTenCurrencyCount);
                    var i = y.DataCenter.Instance.IsItemEnough(this._summonTenCurrencyId, this._summonTenCurrencyCount);
                    this.CurrencyBarTen.SetFixedColor(i ? cc.Color.WHITE : cc.Color.RED);
                    var a = g.default.Instance.IsGameModuleUnlock(p.GameModuleType.SummonAutoConsumeItem)[0];
                    if (this.AutoButton.node.parent.active = a, this.SummonButtonLayout.spacingX = a ? 30 : 130, a) {
                        var s = 0,
                            l = !1;
                        for (this._summonAutoCurrencyId = 0, n = 0; n < e.ConsumeItem.length; n++)
                            if ((o = e.ConsumeItem[n]).Items[0] != p.CommonItemId.Diamond && (l || (s = n, l = !0), y.DataCenter.Instance.GetItemCount(o.Items[0]) >= o.Items[1])) {
                                this._summonAutoCurrencyId = o.Items[0], this._summonAutoCurrencyCount = o.Items[1];
                                break
                            } 0 == this._summonAutoCurrencyId && (this._summonAutoCurrencyId = e.ConsumeItem[s].Items[0], this._summonAutoCurrencyCount = e.ConsumeItem[s].Items[1]);
                        var c = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit") * this._summonAutoCurrencyCount,
                            d = y.DataCenter.Instance.GetItemCount(this._summonAutoCurrencyId),
                            h = d > c ? c : d;
                        this.CurrencyBarAuto.Init(this._summonAutoCurrencyId, !1, h)
                    }
                }, t.prototype.RefreshProgressRewards = function() {
                    var e = g.default.GetProgressRewardsByType(p.ProgressRewardsType.Daily);
                    this.ProgressRewards.Init(e.value, e.maxValue, e.itemId, "progress_rewards_senior".ToUILocale()), this.ProgressRewards.SetBubbleNode("online_canGet".ToUILocale())
                }, t.prototype.OnRateButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonRatePanel.Path, f.ShowRateType.Common, p.CardCommonSummonType.DailySummon)
                }, t.prototype.OnAutoButtonClick = function() {
                    if (this._summonAutoCurrencyId) {
                        var e = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit"),
                            t = y.DataCenter.Instance.GetItemCount(this._summonAutoCurrencyId);
                        if (t >= this._summonAutoCurrencyCount) {
                            var n = Math.floor(t / this._summonAutoCurrencyCount),
                                o = n > e ? e : n;
                            this.DisplayUseItemPanel(o)
                        } else m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._summonAutoCurrencyId.ToItemName()))
                    }
                }, t.prototype.DisplayUseItemPanel = function(e) {
                    var t = {};
                    t.UseItemId = this._summonAutoCurrencyId, t.Title = "use".ToUILocale(), t.MaxCount = e, t.PerItemCount = this._summonAutoCurrencyCount, t.Callback = this.RequestAutoSummon.bind(this), l.UIManager.Instance.ShowUIPanel(h.PanelConfig.BuyAndSellItemPanel.Path, null, null, null, _.BuyAndSellType.Use, null, null, t)
                }, t.prototype.RequestAutoSummon = function(e) {
                    var t = new c.Req_Card_CommonSummon;
                    t.Type = p.CardCommonSummonType.DailySummon, t.ItemId = this._summonAutoCurrencyId, t.Count = e, y.RpcComponent.Instance.Call(t, this.RequestAutoSummonSuccess.bind(this))
                }, t.prototype.RequestAutoSummonSuccess = function(e) {
                    var t = [];
                    e.Items.forEach(function(e) {
                        var n = new c.UserItem_Model;
                        n.ItemId = e.Items[0], n.Count = e.Items[1], t.push(n)
                    }), l.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.DisplayRewardsPanel.Path, t, C.RewardPanelSpineType.SpineFlash)
                }, t.prototype.OnSummonOnceButtonClick = function() {
                    this._currentSummonType = p.CardCommonSummonType.DailySummon, this.RequestSummon(this._summonOnceCurrencyId, this._summonOnceCurrencyCount, 1)
                }, t.prototype.OnSummonTenButtonClick = function() {
                    this._currentSummonType = p.CardCommonSummonType.DailySummon10, this.RequestSummon(this._summonTenCurrencyId, this._summonTenCurrencyCount, 10)
                }, t.prototype.RequestSummon = function(e, t, n, o) {
                    var r = this;
                    void 0 === o && (o = !1);
                    var i = y.DataCenter.Instance.GetItemCount(e);
                    if (!o && i < t) e == p.CommonItemId.Diamond ? l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [p.MallPageType.DiamondShop, p.GiftPackType.BuyDiamond]) : m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.ToItemName()));
                    else {
                        if (!o && e == p.CommonItemId.Diamond && !I.default.GetItem(I.GameRecordDefine.SummonCostDiamondHint)) return m.UIUtlity.ShowHintPanel(null, "costDiamondSummonHint".ToUILocale().Fmt(t), "", null, "", function() {
                            r.DoRequestSummonJob(o, e)
                        }, void 0, I.GameRecordDefine.SummonCostDiamondHint);
                        this.DoRequestSummonJob(o, e, n)
                    }
                }, t.prototype.DoRequestSummonJob = function(e, t, n) {
                    void 0 === n && (n = 0);
                    var o = new c.Req_Card_CommonSummon;
                    o.Type = this._currentSummonType, o.ItemId = e ? 0 : t, y.RpcComponent.Instance.Call(o, this.OnSummonSucces.bind(this))
                }, t.prototype.OnSummonSucces = function(e) {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.DailySummonResultPanel.Path, e.Items, this._currentSummonType)
                }, t.prototype.OnTouchEndProgressRewards = function() {
                    var e = this,
                        t = g.default.GetProgressRewardsByType(p.ProgressRewardsType.Daily);
                    if (t.value < t.maxValue) return m.UIUtlity.ShowItemTip(t.itemId, this.ProgressRewards.node), m.UIUtlity.ShowFloatingHint("progress_rewards_progress_not_enough".ToUILocale());
                    var n = new c.Req_Card_ReceiveProgressRewards;
                    n.Type = p.ProgressRewardsType.Daily, y.RpcComponent.Instance.Call(n, function(t) {
                        e.RefreshProgressRewards(), t.Rewards.length > 0 && m.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    })
                }, i([P(cc.Sprite)], t.prototype, "HeroNameSprite", void 0), i([P(cc.Button)], t.prototype, "RateButton", void 0), i([P(cc.Label)], t.prototype, "RateButtonLabel", void 0), i([P(cc.Node)], t.prototype, "BtnLayoutNode", void 0), i([P(v.default)], t.prototype, "ProgressRewards", void 0), i([P(cc.Layout)], t.prototype, "SummonButtonLayout", void 0), i([P(cc.Button)], t.prototype, "AutoButton", void 0), i([P(cc.Label)], t.prototype, "AutoButtonLabel", void 0), i([P(cc.Button)], t.prototype, "SummonOnceButton", void 0), i([P(cc.Label)], t.prototype, "SummonOnceButtonLabel", void 0), i([P(cc.Button)], t.prototype, "SummonTenButton", void 0), i([P(cc.Label)], t.prototype, "SummonTenButtonLabel", void 0), i([P(d.default)], t.prototype, "CurrencyBarOnce", void 0), i([P(d.default)], t.prototype, "CurrencyBarTen", void 0), i([P(d.default)], t.prototype, "CurrencyBarAuto", void 0), i([w], t)
            }(cc.Component);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/SectorProgressBar": "SectorProgressBar",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./CommonRatePanel": "CommonRatePanel",
        "./DisplayRewardsPanel": "DisplayRewardsPanel"
    }],
    DailySummonResultPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "99a7f3JCWBEjrQvRbs5p0B7", "DailySummonResultPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = e("./NodePool"),
            g = e("./WishCallRewardComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../Components/ItemComponent"),
            C = e("../../Auxiliary/EventKeys"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.RewardCenter = null, t.CloseButton = null, t.CloseButtonLabel = null, t.OnceButton = null, t.OnceButtonLabel = null, t.TenButton = null, t.TenButtonLabel = null, t.CurrencyBarOnce = null, t.CurrencyBarTen = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(p.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(p.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.OnUserItemChange = function(e) {
                    for (var t in e) Number.parseInt(t) == p.CommonItemId.DailySummonTicket && this.ConfigSummonCurrencyBar()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = l.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab), n = l.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/Component/Message", cc.Prefab), o = l.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/Component/RewardFlyingStarBlue", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._messagePrefab = e[1], r._loadedAssets.push(e[0]), r._loadedAssets.push(e[1]), r._loadedAssets.push(e[2]), r._itemPool = new y.default(r._itemPrefab), r._messagePool = new y.default(r._messagePrefab)
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CloseButtonLabel.string = "SendLog_return".ToUILocale(), this.OnceButtonLabel.string = "timeLimited_callSpecificTimes".ToUILocale().Fmt(1), this.TenButtonLabel.string = "timeLimited_callSpecificTimes".ToUILocale().Fmt(10), this.CloseButton.node.on("click", this.OnCloseButtonClick, this), this.TenButton.node.on("click", this.OnTenButtonClick, this), this.OnceButton.node.on("click", this.OnOnceButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._items = t[0], this._currentSummonType = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._items.length > 1 ? (this.OnceButton.node.active = !1, this.TenButton.node.active = !0) : (this.OnceButton.node.active = !0, this.TenButton.node.active = !1), this.RewardCenter.SpreadOut(this._items, null), this.ConfigSummonCurrencyBar()
                }, t.prototype.ConfigSummonCurrencyBar = function() {
                    if (this._items.length > 1) {
                        for (var e = f.ConfigDataComponent.Instance.GetConfigById(u.CardCommonSummon_Config, p.CardCommonSummonType.DailySummon10), t = 0; t < e.ConsumeItem.length; t++) {
                            var n = e.ConsumeItem[t];
                            if (this._summonTenCurrencyId = n.Items[0], this._summonTenCurrencyCount = n.Items[1], f.DataCenter.Instance.GetItemCount(this._summonTenCurrencyId) >= this._summonTenCurrencyCount) break
                        }
                        this.CurrencyBarTen.Init(this._summonTenCurrencyId, !1, this._summonTenCurrencyCount);
                        var o = f.DataCenter.Instance.IsItemEnough(this._summonTenCurrencyId, this._summonTenCurrencyCount);
                        this.CurrencyBarTen.SetFixedColor(o ? cc.Color.WHITE : cc.Color.RED)
                    } else {
                        var r = f.ConfigDataComponent.Instance.GetConfigById(u.CardCommonSummon_Config, p.CardCommonSummonType.DailySummon);
                        for (t = 0; t < r.ConsumeItem.length && (n = r.ConsumeItem[t], this._summonOnceCurrencyId = n.Items[0], this._summonOnceCurrencyCount = n.Items[1], !(f.DataCenter.Instance.GetItemCount(this._summonOnceCurrencyId) >= this._summonOnceCurrencyCount)); t++);
                        this.CurrencyBarOnce.Init(this._summonOnceCurrencyId, !1, this._summonOnceCurrencyCount);
                        var i = f.DataCenter.Instance.IsItemEnough(this._summonOnceCurrencyId, this._summonOnceCurrencyCount);
                        this.CurrencyBarOnce.SetFixedColor(i ? cc.Color.WHITE : cc.Color.RED)
                    }
                }, t.prototype.OnCloseButtonClick = function() {
                    this.Close()
                }, t.prototype.OnOnceButtonClick = function() {
                    this._currentSummonType = p.CardCommonSummonType.DailySummon, this.RequestSummon(this._summonOnceCurrencyId, this._summonOnceCurrencyCount)
                }, t.prototype.OnTenButtonClick = function() {
                    this._currentSummonType = p.CardCommonSummonType.DailySummon10, this.RequestSummon(this._summonTenCurrencyId, this._summonTenCurrencyCount)
                }, t.prototype.RequestSummon = function(e, t) {
                    var n = this;
                    if (f.DataCenter.Instance.GetItemCount(e) < t) e == p.CommonItemId.Diamond ? l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [p.MallPageType.DiamondShop, p.GiftPackType.BuyDiamond]) : m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.ToItemName()));
                    else {
                        if (e == p.CommonItemId.Diamond && !I.default.GetItem(I.GameRecordDefine.SummonCostDiamondHint)) return m.UIUtlity.ShowHintPanel(null, "costDiamondSummonHint".ToUILocale().Fmt(t), "", null, "", function() {
                            n.DoRequestSummonJob(e)
                        }, void 0, I.GameRecordDefine.SummonCostDiamondHint);
                        this.DoRequestSummonJob(e)
                    }
                }, t.prototype.DoRequestSummonJob = function(e) {
                    var t = new c.Req_Card_CommonSummon;
                    t.Type = this._currentSummonType, t.ItemId = e, f.RpcComponent.Instance.Call(t, this.OnSummonSucces.bind(this))
                }, t.prototype.OnSummonSucces = function(e) {
                    this._items = e.Items, this.RewardCenter.SpreadOut(this._items, null)
                }, t.prototype.OnItemClick = function(e, t) {
                    "content999" == t.parent.name && m.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                }, i([S(g.default)], t.prototype, "RewardCenter", void 0), i([S(cc.Button)], t.prototype, "CloseButton", void 0), i([S(cc.Label)], t.prototype, "CloseButtonLabel", void 0), i([S(cc.Button)], t.prototype, "OnceButton", void 0), i([S(cc.Label)], t.prototype, "OnceButtonLabel", void 0), i([S(cc.Button)], t.prototype, "TenButton", void 0), i([S(cc.Label)], t.prototype, "TenButtonLabel", void 0), i([S(d.default)], t.prototype, "CurrencyBarOnce", void 0), i([S(d.default)], t.prototype, "CurrencyBarTen", void 0), i([b], t)
            }(l.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "./NodePool": "NodePool",
        "./WishCallRewardComponent": "WishCallRewardComponent"
    }],
    DataCenter: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "07a87SNUeBJfZ80wPk7jv9N", "DataCenter");
        var o, r = this && this.__extends || (o = function(e, t) {
            return (o = Object.setPrototypeOf || {
                    __proto__: []
                }
                instanceof Array && function(e, t) {
                    e.__proto__ = t
                } || function(e, t) {
                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                })(e, t)
        }, function(e, t) {
            function n() {
                this.constructor = e
            }
            o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
        });
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DataCenter = void 0;
        var i = e("../../Consts/Consts"),
            a = e("../../Util/index"),
            s = e("../../EZFramework/EZFramework"),
            l = e("../Components/Components"),
            c = e("../../../Proto/Static/RpcProto"),
            u = e("../../../Proto/Static/ConfigProto"),
            p = e("./ConfigData/ConfigDataComponent"),
            d = e("../Auxiliary/EventKeys"),
            h = e("../Auxiliary/DataUtlity"),
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._UserData = {}, t._UserDataVersion = {}, t.RankAchievements = [], t.PlayingBattles = [], t.OnLineDurationTime = 0, t.TranslateEmojiCodeFunc = null, t.TriggerGifts = {}, t.LoadActivityConfigsTime = 0, t.ActivityConfigs = {}, t.ActivityFrameMap = {}, t.ActivityFrameNameMap = {}, t.ActivityNameMap = {}, t.ClosedModuleIds = null, t.WorldLevel = 0, t.ZoneGroupResetTime = 0, t.CacheEventIds = null, t.SystemMaintainModel = [], t._SpecailRedDot = {}, t._MyBlackList = {}, t._CurrentChannel = 0, t._Announcements = [], t._ModuleAvailableStartTimeMap = {}, t._CacheDataVersion = {}, t._HeroFormationsCache = {}, t._heroEquipCache = {}, t._heroGemCache = {}, t._heroCoreCache = {}, t._heroPetCache = {}, t._angelSoulCache = {}, t._heroHolyEquipCache = {}, t._heroLuckyCharmCache = {}, t._superWeaponCache = {}, t._seasonWeaponHeroCache = {}, t._magicCircleCache = {}, t.TriggerGiftWaitingSet = new Set, t.SettlementWaitingMap = new Map, t.LoginBroadcastWaitingArr = [], t._gameTempData = {}, t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return t._Instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "NewestZoneId", {
                    get: function() {
                        for (var e = s.Game.Scene.GetComponent("RpcComponent").ServerTime, t = this.TopZoneId; t > 0; t--) {
                            var n = this.Zones[t];
                            if (n && !(n.OpenTime > e)) return t
                        }
                        return 1
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function() {
                    t._Instance = this, this.Zones = {}, this.TopZoneId = 0, e.prototype.Init.call(this)
                }, t.prototype.Dispose = function() {
                    this.IsDisposed || (t._Instance = null, e.prototype.Dispose.call(this))
                }, t.prototype.GetUserDataVersion = function(e) {
                    var t = e._n_;
                    return this._UserDataVersion[t] || 0
                }, t.prototype.GetIntData = function(e) {
                    var t = this.GetSimpleData(e);
                    return t ? a.AppUtil.ToInt(t.V) : 0
                }, t.prototype.GetStringData = function(e) {
                    var t = this.GetSimpleData(e);
                    return t && t.Str || ""
                }, t.prototype.GetArrayData = function(e) {
                    var t = this.GetSimpleData(e);
                    return t && t.IntArray || []
                }, t.prototype.GetSimpleData = function(e) {
                    var t = c.UserSimpleData_Model._n_;
                    return this._UserData[t] && this._UserData[t][e] ? this._UserData[t][e] : null
                }, t.prototype.SetSimpleData = function(e, t) {
                    var n = c.UserSimpleData_Model._n_;
                    if (this._UserData) {
                        var o = this._UserData[n][e];
                        this._UserData[n][e] || ((o = new c.UserSimpleData_Model).K = e, this._UserData[n][e] = o), e > i.UserDataKey.ArrayKeyStart ? o.IntArray = t : e < i.UserDataKey.StrKeyStart ? o.V = t : o.Str = t
                    }
                }, t.prototype.SetClientStorageData = function(e, t) {
                    if (this._UserData) {
                        var n = c.ClientStorage_Model._n_;
                        this._UserData[n] || (this._UserData[n] = {});
                        var o = {
                            Sid: e,
                            Value: t
                        };
                        this._UserData[n][e] = o
                    }
                }, t.prototype.GetUserData = function(e) {
                    var t = e._n_;
                    return this._UserData[t] ? this._UserData[t] : {}
                }, t.prototype.GetDataList = function(e) {
                    var t = [],
                        n = this.GetUserData(e);
                    for (var o in n) t.push(n[o]);
                    return t
                }, t.prototype.GetDataById = function(e, t) {
                    var n = this.GetUserData(e);
                    return n[t] ? n[t] : null
                }, t.prototype.GetDataByIdOrDefault = function(e, t) {
                    var n = this.GetUserData(e);
                    return n[t] ? n[t] : e ? new e : {}
                }, t.prototype.GetItemCount = function(e) {
                    var t = this.GetDataById(c.UserItem_Model, e);
                    return t ? t.Count : 0
                }, t.prototype.IsItemEnough = function(e, t) {
                    return t <= 0 || this.GetItemCount(e) >= t
                }, t.prototype.ApplyChangeData = function(e, t) {
                    void 0 === t && (t = !1);
                    for (var n = [], o = 0; o < e.length; o++) {
                        var r = e[o],
                            a = s.OpCodeComponent.Instance.GetType(r.Opcode);
                        a && (this._ChangeTypeData(a, r, t), n.push(a._n_))
                    }
                    s.Game.EventDispatcher.Emit(i.GameEventIds.UserDataChange, n)
                }, t.prototype._ChangeTypeData = function(e, t, n) {
                    void 0 === n && (n = !1), n && this._ClearDataByType(e);
                    var o = e._n_;
                    this._UserData[o] || (this._UserData[o] = {});
                    var r = {},
                        a = {},
                        l = !1,
                        c = !1;
                    for (var u in t.DataList) {
                        var p = null;
                        try {
                            p = e.decode(t.DataList[u])
                        } catch (g) {
                            s.EZLog.Error("decode change data error. type: " + o + ", msg: " + g)
                        }
                        p && (this._UserData[o][u] ? (r[u] = this._UserData[o][u], l = !0) : (a[u] = p, c = !0), this._UserData[o][u] = p)
                    }
                    this._UserDataVersion[o] || (this._UserDataVersion[o] = 0), this._UserDataVersion[o]++, l && (s.Game.EventDispatcher.Emit(i.GameEventIds.ChangeDataDetail.Fmt(o), r), s.EZLog.Log("emit data modify event: " + JSON.stringify(Object.getOwnPropertyNames(r)))), c && (s.Game.EventDispatcher.Emit(i.GameEventIds.AddDataDetail.Fmt(o), a), s.EZLog.Log("emit data add event: " + JSON.stringify(Object.getOwnPropertyNames(a))));
                    for (var d = {}, h = !1, f = 0; f < t.RemoveIds.length; f++) {
                        var y = t.RemoveIds[f];
                        this._UserData[o] && this._UserData[o][y] && (d[y] = this._UserData[o][y], h = !0, delete this._UserData[o][y])
                    }
                    h && (s.Game.EventDispatcher.Emit(i.GameEventIds.RemoveDataDetail.Fmt(o), d), s.EZLog.Log("emit data remove event: " + JSON.stringify(Object.getOwnPropertyNames(d))))
                }, t.prototype._ClearDataByType = function(e) {
                    var t = e._n_;
                    if (this._UserData[t]) {
                        var n = this._UserData[t];
                        this._UserData[t] = {};
                        var o = !1;
                        for (var r in n) {
                            o = !0;
                            break
                        }
                        o && (s.Game.EventDispatcher.Emit(i.GameEventIds.RemoveDataDetail.Fmt(t), n), s.EZLog.Log("emit data remove event: " + JSON.stringify(Object.getOwnPropertyNames(n))))
                    }
                }, Object.defineProperty(t.prototype, "AllianceId", {
                    get: function() {
                        return this._SpecailRedDot[i.SpecialRedDotType.AllianceId] || 0
                    },
                    set: function(e) {
                        this._SpecailRedDot[i.SpecialRedDotType.AllianceId] = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "AllianceTestId", {
                    get: function() {
                        return this._SpecailRedDot[i.SpecialRedDotType.AllianceTest] || 0
                    },
                    set: function(e) {
                        this._SpecailRedDot[i.SpecialRedDotType.AllianceTest] = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "AllianceWar", {
                    get: function() {
                        return this._SpecailRedDot[i.SpecialRedDotType.AllianceChallenge] || 0
                    },
                    set: function(e) {
                        this._SpecailRedDot[i.SpecialRedDotType.AllianceChallenge] = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "PrivateChat", {
                    get: function() {
                        return this._PrivateChat
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.CheckSpecialRedDot = function(e) {
                    if (e)
                        for (var t in e)(this._SpecailRedDot[t] || 0) != e[t] && (this._SpecailRedDot[t] = e[t], s.Game.EventDispatcher.Emit(i.GameEventIds.SpecialRedDotChange.Fmt(t), this._SpecailRedDot[t]))
                }, t.prototype.GetSpecialRedDot = function(e) {
                    return this._SpecailRedDot[e] || 0
                }, t.prototype.SetSpecialRedDot = function(e, t) {
                    this._SpecailRedDot[e] = t
                }, t.prototype.InMyBlackList = function(e) {
                    return !!this._MyBlackList[e]
                }, t.prototype.AddToMyBlackList = function(e) {
                    this._MyBlackList[e] = e, s.Game.EventDispatcher.Emit(d.EventKeys.EVENT_BLACK_LIST_CHANGE)
                }, t.prototype.RemoveFromMyBlackList = function(e) {
                    this._MyBlackList[e] && (delete this._MyBlackList[e], s.Game.EventDispatcher.Emit(d.EventKeys.EVENT_BLACK_LIST_CHANGE))
                }, t.prototype.LoadActivityConfigs = function(e) {
                    this.ActivityConfigs = {}, this.ActivityFrameMap = {}, this.ActivityFrameNameMap = {};
                    for (var t = 0; t < e.ActivityConfigs.length; t++) {
                        var n = e.ActivityConfigs[t],
                            o = s.OpCodeComponent.Instance.GetType(n.Opcode);
                        if (o) try {
                            var r = o.decode(n.Data, n.Data.length),
                                a = l.DataCenter.Instance.GetDataById(c.UserActivity_Model, r._id);
                            r.Common && r.Common.Type < 100 ? (this.ActivityConfigs[r._id] = r, this.ActivityFrameNameMap[r.Name] = r) : a && a.Fit && (this.ActivityConfigs[r._id] = r)
                        } catch (f) {
                            s.EZLog.Warn("decode activity config error: " + n.Opcode)
                        }
                    }
                    for (var u in this.ActivityConfigs)
                        if (r = this.ActivityConfigs[u], this.ActivityNameMap[r.Name] = r, r.Common && r.Common.FrameId) {
                            if (!this.ActivityFrameNameMap[r.Common.FrameId]) continue;
                            var p = this.ActivityFrameNameMap[r.Common.FrameId]._id;
                            this.ActivityFrameMap[p] || (this.ActivityFrameMap[p] = []), this.ActivityFrameMap[p].push(r._id)
                        } for (var u in e.ActivityLocaleMap) {
                        var d = u.split(".");
                        d.length && this.ActivityNameMap[d[0]] && this.SetActivityConfigMuitilang(this.ActivityNameMap, d, 0, e.ActivityLocaleMap[u])
                    }
                    s.EZLog.Debug("===== all activity ====="), s.EZLog.Debug(this.ActivityConfigs), h.default.Instance.ArrangementActivityData(), s.Game.EventDispatcher.Emit(i.GameEventIds.ActivityConfigChange)
                }, t.prototype.SetActivityConfigMuitilang = function(e, t, n, o) {
                    if (n < t.length - 1) {
                        if (!e[t[n]]) return;
                        var r = n + 1;
                        this.SetActivityConfigMuitilang(e[t[n]], t, r, o)
                    } else e[t[n]] = o
                }, t.prototype.GetActivityConfigsByActId = function(e) {
                    return this.ActivityConfigs[e]
                }, t.prototype.LoadChatData = function(e) {
                    if (this._PublicChatUnreadCount = {}, this._PrivateChatUnreadCount = {}, this._MyBlackList = {}, e.MyBlackList)
                        for (var t = 0; t < e.MyBlackList.length; t++) this._MyBlackList[e.MyBlackList[t]] = e.MyBlackList[t];
                    this._PublicChat = {};
                    for (var n = i.ChatChannelType.System; n <= i.ChatChannelType.AssaultOperation; n++) n != i.ChatChannelType.Private && (this._PublicChat[n] = [], this._PublicChatUnreadCount[n] = []);
                    for (t = 0; t < e.PublicChat.length; t++) this.AddPublicChatMessage(e.PublicChat[t]);
                    for (this._PrivateChat = {}, t = 0; t < e.PrivateChat.length; t++) {
                        this._PrivateChat[e.PrivateChat[t].Sid] = e.PrivateChat[t];
                        for (var o = e.PrivateChat[t].Messages, r = 0, a = e.PrivateChat[t].ViewTs, s = o.length - 1; s >= 0; s--) a < o[s].Ts && r++;
                        r > 0 && (this._PrivateChatUnreadCount[e.PrivateChat[t].Sid] = r)
                    }
                }, t.prototype.LoadAnnouncements = function(e) {
                    if (this._Announcements = [], e.Announcements)
                        for (var t = 0; t < e.Announcements.length; t++) this._Announcements.push(e.Announcements[t])
                }, t.prototype.GetAnnouncements = function() {
                    return this._Announcements
                }, t.prototype.LoadModuleAvailableStartTime = function(e) {
                    if (this._ModuleAvailableStartTimeMap = {}, e.ModuleStartTimes)
                        for (var t = 0; t < e.ModuleStartTimes.length; t++) {
                            var n = e.ModuleStartTimes[t];
                            this._ModuleAvailableStartTimeMap[n.Type] || (this._ModuleAvailableStartTimeMap[n.Type] = {}), this._ModuleAvailableStartTimeMap[n.Type][n.ModuleId] = a.TimeUtil.StrToTime(n.OpenTime)
                        }
                }, t.prototype.GetModuleAvailableStartTime = function(e, t) {
                    return this._ModuleAvailableStartTimeMap[e] && this._ModuleAvailableStartTimeMap[e][t] || 0
                }, t.prototype.AddPublicChatMessage = function(e) {
                    if (e.Tag < 0 && (e.Tag = i.ChatChannelType.Alliance), this._PublicChat[e.Tag]) {
                        for (var t = this._PublicChat[e.Tag].length - 1; t >= 0; t--) {
                            if (e._id == this._PublicChat[e.Tag][t]._id) return;
                            if (this._PublicChat[e.Tag][t]._id < e._id) break
                        }
                        this._PublicChat[e.Tag].push(e);
                        var n = this.GetIntData(i.UserDataKey.ChatViewTsSystem - i.ChatChannelType.System + e.Tag);
                        e._id > n && this._PublicChatUnreadCount[e.Tag].push(e), e.Tag == this._CurrentChannel && this.SetChannelViewd(this._CurrentChannel)
                    }
                }, t.prototype.AddPrivateChatMessage = function(e, t, n) {
                    void 0 === n && (n = 0);
                    var o = t.Uid,
                        r = this._PrivateChat[o];
                    r || ((r = new c.PrivateChatMessage_Model).Sid = o, r.Messages = [], r.ViewTs = 0, this._PrivateChat[o] = r), this._PrivateChat[o].TargetInfo = t, r.Messages.push(e), n > 0 ? (r.ViewTs = n, delete this._PrivateChatUnreadCount[o]) : (this._PrivateChatUnreadCount[o] || (this._PrivateChatUnreadCount[o] = 0), this._PrivateChatUnreadCount[o]++, this._CurrentChannel == -o && this.SetPrivateTargetViewd(o))
                }, t.prototype.GetChatMessagesByChannel = function(e) {
                    return this._PublicChat[e] || []
                }, t.prototype.GetChatMessagesByUid = function(e) {
                    return this._PrivateChat[e] || null
                }, t.prototype.GetAllUnreadMessageCount = function() {
                    for (var e = 0, t = i.ChatChannelType.System; t <= i.ChatChannelType.BossHunt; t++) e += this.GetUnreadMessageCountByChannel(t);
                    return e
                }, t.prototype.GetUnreadMessageCountByChannel = function(e) {
                    var n;
                    if (n = this.GetIntData(i.UserDataKey.ChatShowCountSystem - i.ChatChannelType.System + e), e == i.ChatChannelType.System) {
                        if (0 == n) return 0
                    } else if (1 == n) return 0;
                    var o = 0;
                    if (e == i.ChatChannelType.Private)
                        for (var r in this._PrivateChatUnreadCount) o += this._PrivateChatUnreadCount[r];
                    else if (o = 0, this._PublicChatUnreadCount[e])
                        for (var a = 0, s = this._PublicChatUnreadCount[e]; a < s.length; a++) {
                            var l = s[a];
                            l.Sender && t.Instance.InMyBlackList(l.Sender.Uid) || o++
                        }
                    return o
                }, t.prototype.GetUnreadMessageCountByUid = function(e) {
                    return this._PrivateChatUnreadCount[e] ? this._PrivateChatUnreadCount[e] : 0
                }, t.prototype.SetChannelViewd = function(e) {
                    if (this._PublicChatUnreadCount[e] && !(this._PublicChatUnreadCount[e].length <= 0) && (this._PublicChatUnreadCount[e] = [], this._PublicChat[e] && this._PublicChat[e].length > 0)) {
                        var n = this._PublicChat[e][this._PublicChat[e].length - 1]._id;
                        this.SetSimpleData(i.UserDataKey.ChatViewTsSystem - i.ChatChannelType.System + e, n);
                        var o = new c.UserModelChange;
                        o.Opcode = 8502562, o.DataList = {}, o.RemoveIds = [], t.Instance.ApplyChangeData([o]);
                        var r = new c.Req_Chat_SetPublicChatViewTs;
                        r.Channel = e, r.ViewTs = n;
                        var a = s.Game.Scene.GetComponent("RpcComponent");
                        null == a || a.Send(r)
                    }
                }, t.prototype.SetPrivateTargetViewd = function(e) {
                    if (this._PrivateChatUnreadCount[e] && (delete this._PrivateChatUnreadCount[e], this._PrivateChat[e] && this._PrivateChat[e].Messages.length > 0)) {
                        var t = this._PrivateChat[e].Messages[this._PrivateChat[e].Messages.length - 1].Ts;
                        this._PrivateChat[e].ViewTs = t;
                        var n = new c.Req_Chat_SetPrivateChatViewTs;
                        n.TargetUid = e, n.ViewTs = t;
                        var o = s.Game.Scene.GetComponent("RpcComponent");
                        null == o || o.Send(n)
                    }
                }, Object.defineProperty(t.prototype, "CurrentChannel", {
                    set: function(e) {
                        if (this._CurrentChannel != e)
                            if (e < 0) {
                                var t = Math.abs(e);
                                this.SetPrivateTargetViewd(t)
                            } else this.SetChannelViewd(e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.GetPrivateChatData = function() {
                    return this._PrivateChat
                }, t.prototype.UpdateRankData = function(e) {
                    for (var t = !1, n = 0; n < this.RankAchievements.length; n++)
                        if (this.RankAchievements[n].RankType == e.RankType) {
                            this.RankAchievements.splice(n, 1, e), t = !0;
                            break
                        } t || this.RankAchievements.push(e), s.Game.EventDispatcher.Emit(d.EventKeys.EVENT_UPDATE_RANK_DATA, e)
                }, t.prototype.CheckNeedUpdateCache = function(e) {
                    var t = e._n_,
                        n = this.GetUserDataVersion(e);
                    return (this._CacheDataVersion[t] || 0) != n && (this._CacheDataVersion[t] = n, !0)
                }, t.prototype.IsHeroInFormation = function(e, t) {
                    return this.UpdateUserFormationCache(), !(!this._HeroFormationsCache[e] || -1 == this._HeroFormationsCache[e].indexOf(t))
                }, t.prototype.GetHeroFormations = function(e) {
                    return this.UpdateUserFormationCache(), this._HeroFormationsCache[e] || []
                }, t.prototype.UpdateUserFormationCache = function() {
                    if (this.CheckNeedUpdateCache(c.UserFormation_Model)) {
                        this._HeroFormationsCache = {};
                        var e = this.GetUserData(c.UserFormation_Model);
                        for (var t in e)
                            for (var n = e[t], o = 0; o < n.HeroIds.length; o++) {
                                var r = n.HeroIds[o];
                                r <= 0 || (this._HeroFormationsCache[r] || (this._HeroFormationsCache[r] = []), -1 == this._HeroFormationsCache[r].indexOf(n.Sid) && this._HeroFormationsCache[r].push(n.Sid))
                            }
                    }
                }, t.prototype.UpdateUserEquipmentCache = function() {
                    if (this.CheckNeedUpdateCache(c.Equipment_Model)) {
                        this._heroEquipCache = {};
                        var e = this.GetUserData(c.Equipment_Model);
                        for (var t in e) {
                            var n = e[t],
                                o = n.OwnerId;
                            if (o && (this._heroEquipCache[o] || (this._heroEquipCache[o] = [0, 0, 0, 0]), -1 == this._heroEquipCache[o].indexOf(n.Sid))) {
                                var r = p.ConfigDataComponent.Instance.GetConfigById(u.ItemEquipment_Config, n.ItemId);
                                this._heroEquipCache[o][r.Type - 1] = n.Sid
                            }
                        }
                    }
                }, t.prototype.GetHeroEquips = function(e) {
                    this.UpdateUserEquipmentCache();
                    var t = this._heroEquipCache[e];
                    return t || (t = [0, 0, 0, 0]), t
                }, t.prototype.UpdateUserGemCache = function() {
                    if (this.CheckNeedUpdateCache(c.GemEquip_Model)) {
                        this._heroGemCache = {};
                        var e = this.GetUserData(c.GemEquip_Model);
                        for (var t in e) {
                            var n = e[t],
                                o = n.OwnerId;
                            o && (this._heroGemCache[o] || (this._heroGemCache[o] = [0, 0, 0, 0, 0, 0]), this._heroGemCache[o][n.SlotId - 1] = n.Sid)
                        }
                    }
                }, t.prototype.GetHeroGems = function(e) {
                    this.UpdateUserGemCache();
                    var t = this._heroGemCache[e];
                    return t || (t = [0, 0, 0, 0, 0, 0]), t
                }, t.prototype.UpdateUserCoreCache = function() {
                    if (this.CheckNeedUpdateCache(c.PowerCore_Model)) {
                        this._heroCoreCache = {};
                        var e = this.GetUserData(c.PowerCore_Model);
                        for (var t in e) {
                            var n = e[t],
                                o = n.OwnerId;
                            o && (this._heroCoreCache[o] || (this._heroCoreCache[o] = []), this._heroCoreCache[o].push(n.Sid))
                        }
                    }
                }, t.prototype.GetHeroCores = function(e) {
                    this.UpdateUserCoreCache();
                    var t = this._heroCoreCache[e];
                    return t || (t = []), t
                }, t.prototype.UpdateUserPetCache = function() {
                    if (this.CheckNeedUpdateCache(c.UserPet_Model)) {
                        this._heroPetCache = {};
                        var e = this.GetUserData(c.UserPet_Model);
                        for (var t in e)
                            for (var n = e[t], o = 0, r = n.Owners; o < r.length; o++) {
                                var i = r[o];
                                i && (this._heroPetCache[i] || (this._heroPetCache[i] = []), this._heroPetCache[i].push(n.Sid))
                            }
                    }
                }, t.prototype.GetHeroPet = function(e) {
                    this.UpdateUserPetCache();
                    var t = this._heroPetCache[e];
                    return t || (t = []), t
                }, t.prototype.UpdateUserGodSoulCache = function() {
                    if (this.CheckNeedUpdateCache(c.UserGodSoul_Model)) {
                        this._angelSoulCache = {};
                        var e = this.GetUserData(c.UserGodSoul_Model);
                        for (var t in e) {
                            var n = e[t],
                                o = n.OwnerId;
                            o && (this._angelSoulCache[o] || (this._angelSoulCache[o] = []), this._angelSoulCache[o].push(n.Sid))
                        }
                    }
                }, t.prototype.GetAngelSoul = function(e) {
                    this.UpdateUserGodSoulCache();
                    var t = this._angelSoulCache[e];
                    return t || (t = []), t
                }, t.prototype.UpdateUserHolyEquipmentCache = function() {
                    if (this.CheckNeedUpdateCache(c.HolyEquipment_Model)) {
                        this._heroHolyEquipCache = {};
                        var e = this.GetUserData(c.HolyEquipment_Model);
                        for (var t in e) {
                            var n = e[t],
                                o = n.OwnerId;
                            if (o) {
                                this._heroHolyEquipCache[o] || (this._heroHolyEquipCache[o] = [0, 0, 0, 0]);
                                var r = p.ConfigDataComponent.Instance.GetConfigById(u.HolyEquipment_Config, n.ItemId);
                                this._heroHolyEquipCache[o][r.Type - 1] = n.Sid
                            }
                        }
                    }
                }, t.prototype.GetHeroHolyEquips = function(e) {
                    this.UpdateUserHolyEquipmentCache();
                    var t = this._heroHolyEquipCache[e];
                    return t || (t = [0, 0, 0, 0]), t
                }, t.prototype.UpdateUserLuckyCharmCache = function() {
                    if (this.CheckNeedUpdateCache(c.LuckyCharmEquip_Model)) {
                        this._heroLuckyCharmCache = {};
                        var e = this.GetUserData(c.LuckyCharmEquip_Model);
                        for (var t in e) {
                            var n = e[t],
                                o = n.OwnerId;
                            o && (this._heroLuckyCharmCache[o] || (this._heroLuckyCharmCache[o] = [0, 0]), this._heroLuckyCharmCache[o][n.SlotId - 1] = n.Sid)
                        }
                    }
                }, t.prototype.GetHeroLuckCharmEquips = function(e) {
                    this.UpdateUserLuckyCharmCache();
                    var t = this._heroLuckyCharmCache[e];
                    return t || (t = [0, 0]), t
                }, t.prototype.UpdateSuperWeaponCache = function() {
                    if (this.CheckNeedUpdateCache(c.StarPiece_Model) || this.CheckNeedUpdateCache(c.ExclusiveWeapon_Model)) {
                        this._superWeaponCache = {};
                        var e = this.GetUserData(c.StarPiece_Model),
                            t = this.GetUserData(c.ExclusiveWeapon_Model);
                        for (var n in e)(r = (o = e[n]).SuperId) && (this._superWeaponCache[r] || (this._superWeaponCache[r] = [0, 0, 0, 0, 0, 0]), this._superWeaponCache[r][o.SuperSlot] = o.Sid);
                        for (var n in t) {
                            var o, r;
                            (r = (o = t[n]).SuperId) && (this._superWeaponCache[r] || (this._superWeaponCache[r] = [0, 0, 0, 0, 0, 0]), this._superWeaponCache[r][o.SuperSlot] = o.Sid)
                        }
                    }
                }, t.prototype.GetSuperWeaponItems = function(e) {
                    this.UpdateSuperWeaponCache();
                    var t = this._superWeaponCache[e];
                    return t || (t = [0, 0, 0, 0, 0, 0]), t
                }, t.prototype.UpdateSeasonWeaponCache = function() {
                    if (this.CheckNeedUpdateCache(c.SeasonWeapon_Model)) {
                        this._seasonWeaponHeroCache = {};
                        for (var e = t.Instance.GetDataList(c.SeasonWeapon_Model), n = 0; n < e.length; n++) e[n].Owner && (this._seasonWeaponHeroCache[e[n].Owner] = e[n].Sid)
                    }
                }, t.prototype.GetFlyHeroSeasonWeaponId = function(e) {
                    var t;
                    return this.UpdateSeasonWeaponCache(), null !== (t = this._seasonWeaponHeroCache[e]) && void 0 !== t ? t : 0
                }, t.prototype.DealWithActivityTrailers = function(e) {
                    var n = {};
                    for (var o in e.ActivityTrailers.forEach(function(e) {
                            n[e._id] = e
                        }), e.ActTrailersLocaleMap) {
                        var r = o.split(".");
                        r.length && n[r[0]] && this.SetActivityConfigMuitilang(n, r, 0, e.ActTrailersLocaleMap[o])
                    }
                    t.Instance.ActivityTrailers = e.ActivityTrailers
                }, t.prototype.UpdateMagicCircleCache = function() {
                    if (this.CheckNeedUpdateCache(c.MagicCircle_Model)) {
                        this._magicCircleCache = {};
                        var e = this.GetUserData(c.MagicCircle_Model);
                        for (var t in e) {
                            var n = e[t];
                            n.HeroId && (this._magicCircleCache[n.HeroId] = n.Sid)
                        }
                    }
                }, t.prototype.GetHeroMagicCircle = function(e) {
                    return this.UpdateMagicCircleCache(), this._magicCircleCache[e]
                }, t.prototype.SetAutoBattleRewards = function(e, n) {
                    var o = this.GetAutoBattleRewards(e);
                    if (o)
                        for (var r = function(e) {
                                var t = o.find(function(t) {
                                    return t.ItemId == n[e].ItemId
                                });
                                t ? t.Count += n[e].Count : o.push(n[e])
                            }, i = 0; i < n.length; i++) r(i);
                    else o = n;
                    t.Instance.SetTempData("AutoBattle" + e, o), t.Instance.SetTempData("AutoBattleMapCount" + e, this.GetAutoBattleMapCount(e) + 1)
                }, t.prototype.GetAutoBattleRewards = function(e) {
                    return t.Instance.GetTempData("AutoBattle" + e)
                }, t.prototype.GetAutoBattleMapCount = function(e) {
                    var n;
                    return null !== (n = t.Instance.GetTempData("AutoBattleMapCount" + e)) && void 0 !== n ? n : 0
                }, t.prototype.DeleteAutoBattleRewards = function(e) {
                    t.Instance.DeleteTempData("AutoBattle" + e), t.Instance.DeleteTempData("AutoBattleMapCount" + e)
                }, t.prototype.SetTempData = function(e, t) {
                    this._gameTempData[e] = t
                }, t.prototype.GetTempData = function(e) {
                    return this._gameTempData[e]
                }, t.prototype.DeleteTempData = function(e) {
                    this._gameTempData[e] && (this._gameTempData[e] = null)
                }, t.prototype.ClearTempData = function() {
                    this._gameTempData = {}
                }, Object.defineProperty(t.prototype, "MyPost", {
                    get: function() {
                        return t.Instance.AllianceInfo && t.Instance.AllianceInfo.Members && t.Instance.AllianceInfo.Members[t.Instance.Uid] ? t.Instance.AllianceInfo.Members[t.Instance.Uid] : null
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.CompName = "DataCenter", t
            }(s.Component);
        n.DataCenter = f, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../Consts/Consts": "Consts",
        "../../EZFramework/EZFramework": "EZFramework",
        "../../Util/index": "index",
        "../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/EventKeys": "EventKeys",
        "../Components/Components": "Components",
        "./ConfigData/ConfigDataComponent": "ConfigDataComponent"
    }],
    DataUtlity: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8d70a6zF+lCzJ+P2vdD4xpW", "DataUtlity");
        var o = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            r = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            i = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            a = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.UpStarHeroMaterialType = n.ActivityState = n.ActivityListType = void 0;
        var s, l, c, u, p, d = e("../../Consts/Consts"),
            h = e("../../../Proto/Static/ConfigProto"),
            f = e("../Components/Components"),
            y = e("../../../Proto/Static/RpcProto"),
            g = e("../../Consts/Consts"),
            m = e("../UI/Auxiliary/UIUtlity"),
            I = e("../../EZFramework/Auxiliary/EZLog"),
            _ = e("../../EZFramework/UIFrame/UIManager"),
            C = e("./GlobalDefine"),
            v = e("../UI/Panel/StarTemplePanel"),
            b = e("../../Util/index"),
            S = e("../../EZFramework/EZFramework"),
            w = e("./EventKeys"),
            P = e("../UI/Panel/MainUIPanel"),
            A = e("../Components/Components"),
            T = e("../../Util/index"),
            R = e("../InitHelper"),
            L = e("../UI/Battle/BattleManager"),
            k = e("../UI/Panel/FavorUpgradePanel"),
            O = e("../UI/Panel/SeniorArenaPanel"),
            M = e("../UI/Panel/QueenSummonPanel"),
            D = e("../UI/Components/ItemComponent"),
            B = e("../Channel/ChannelManager"),
            N = e("../UI/Panel/StarPiecePanel"),
            E = e("../UI/Panel/SummonActivityListPanel"),
            U = e("./GameRecord"),
            G = e("../UI/Panel/SortHeroRulePanel"),
            x = e("../UI/Panel/GiftPackListPanel"),
            H = e("../UI/Panel/WarTokenListPanel"),
            F = e("../UI/Panel/SortPetRulePanel"),
            j = e("../UI/Panel/CrossServerChampionShipPanel"),
            W = e("../UI/Panel/ExclusiveWeaponGalleryPanel"),
            z = e("./GameDataChecker"),
            q = e("../UI/Panel/CrossServerChampionStartPanel"),
            V = e("../UI/Panel/MallSkinPackPanel"),
            Z = e("../UI/Panel/TimeLimitedActivityPanel"),
            K = e("./GuideManager"),
            J = e("../UI/Panel/GlobalChampionShipPanel"),
            X = e("../UI/Panel/GlobalChampionMainPanel"),
            Q = e("../UI/Panel/ActivityBaseContent"),
            Y = e("../UI/Panel/RiskPortPanel"),
            $ = e("../UI/Panel/AllianceBaseMainPanel"),
            ee = cc._decorator,
            te = ee.ccclass;
        ee.property,
            function(e) {
                e[e.None = 0] = "None", e[e.Summon = 1] = "Summon", e[e.GiftPack = 2] = "GiftPack", e[e.WarToken = 3] = "WarToken"
            }(s = n.ActivityListType || (n.ActivityListType = {})),
            function(e) {
                e[e.ForAll = 1] = "ForAll", e[e.ForElement = 2] = "ForElement", e[e.ForSelf = 3] = "ForSelf"
            }(l || (l = {})),
            function(e) {
                e[e.Normal = 0] = "Normal", e[e.Hide = 1] = "Hide", e[e.Lock = 2] = "Lock"
            }(c = n.ActivityState || (n.ActivityState = {})),
            function(e) {
                e[e.Hero = 1] = "Hero", e[e.Item = 2] = "Item", e[e.Compose = 3] = "Compose"
            }(u = n.UpStarHeroMaterialType || (n.UpStarHeroMaterialType = {})),
            function(e) {
                e[e.HeroSoulNormal = 0] = "HeroSoulNormal", e[e.HeroSoulSingleElement = 1] = "HeroSoulSingleElement", e[e.HeroSoulThreeElement = 2] = "HeroSoulThreeElement", e[e.HeroSoulTwoElement = 3] = "HeroSoulTwoElement", e[e.HeroPieceNormal = 4] = "HeroPieceNormal", e[e.ComposedHeroNormal = 5] = "ComposedHeroNormal", e[e.ExistHeroNormal = 6] = "ExistHeroNormal", e[e.HeroSoulAllElement = 7] = "HeroSoulAllElement", e[e.HeroPieceElite = 8] = "HeroPieceElite", e[e.ComposedHeroElite = 9] = "ComposedHeroElite", e[e.ExistHeroElite = 10] = "ExistHeroElite", e[e.HeroPieceCore = 11] = "HeroPieceCore", e[e.ComposedHeroCore = 12] = "ComposedHeroCore", e[e.ExistHeroCore = 13] = "ExistHeroCore", e[e.SelectCard = 14] = "SelectCard", e[e.UniversalHero = 15] = "UniversalHero"
            }(p || (p = {}));
        var ne = function() {
            function e() {
                this.HEROCAREER_SORT = [d.CareerType.Tank, d.CareerType.Warrior, d.CareerType.Master, d.CareerType.Support], this._customSortFunc = [this.SortByHeroLevelOnly, this.SortByHeroQualityOnly, this.SortByHeroStarOnly, this.SortByHeroPowerOnly], this._petSortFunc = [this.SortByPetStarOnly, this.SortByPetLevelOnly], this._attrScopeKeys = ["FavorUpgrade_NextNodeAttrSelf", "FavorUpgrade_NextNodeAttrElement", "FavorUpgrade_NextNodeAttrAll"]
            }
            var t;
            return t = e, Object.defineProperty(e, "Instance", {
                get: function() {
                    return null === this._instance && (this._instance = new t), this._instance
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.GetSkillUnlockConfig = function() {
                return void 0 === this._skillUnlockConfig && (this._skillUnlockConfig = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, d.LevelParamType.HeroSkillUnlockCondition)), this._skillUnlockConfig
            }, e.GetHeroSkills = function(e, n, o) {
                for (var r = [], i = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e).Skills, a = i.length, s = t.Instance.GetSkillUnlockConfig().Data2, l = 0; l < a; l++) {
                    for (var c = i[l].Items, u = void 0, p = !1, d = 0, y = 0; y < c.length; y++) {
                        var g = c[y];
                        0 == y && (u = g);
                        var m = s[l],
                            I = m.Items[0],
                            _ = 0;
                        if (y > 0 && (_ = m.Items[y]), n >= I && (p = !0), !(o >= _)) break;
                        u = g, d = y + 1
                    }
                    var C = {
                        SkillId: u,
                        Level: d,
                        Active: p
                    };
                    r.push(C)
                }
                return r
            }, e.GetAngelPersonalSkills = function(e, t, n) {
                for (var o = [], r = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e).Skills, i = r.length, a = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, d.LevelParamType.AngelPersonalBattleSkillUnlock).Data2, s = 0; s < i; s++) {
                    for (var l = r[s].Items, c = void 0, u = !1, p = 0, y = 0; y < l.length; y++) {
                        var g = l[y];
                        0 == y && (c = g);
                        var m = a[s],
                            I = m.Items[0],
                            _ = 0;
                        if (y > 0 && (_ = m.Items[y]), t >= I && (u = !0), !(n >= _)) break;
                        c = g, p = y + 1
                    }
                    var C = {
                        SkillId: c,
                        Level: p,
                        Active: u
                    };
                    o.push(C)
                }
                return o
            }, e.GetHeroUpStarPools = function(e, n, o, r, i, a, s, l) {
                var c;
                switch (e) {
                    case 1:
                    case 2:
                        c = t.GetHeroByItemIdAndStar(n, o, i, a, !1, s, l);
                        break;
                    case 3:
                        c = t.GetHeroByStarAndElement(o, r, r, i, a, s);
                        break;
                    case 4:
                        c = t.GetHeroByStarAndElement(o, d.HeroElementType.All, r, i, a, s);
                        break;
                    case 5:
                        c = t.GetHeroByItemIdAndStar(n, o, i, a, !0, s, l)
                }
                return c
            }, e.GetHeroByItemIdAndStar = function(e, n, o, r, i, a, s) {
                var l = A.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e),
                    c = l && l.ElementType >= 0 ? l.ElementType : 0;
                return t.GetHeroByItemIdAndStarDetail(e, n, c, o, r, i, a, s)
            }, e.GetHeroByItemIdAndStarDetail = function(e, n, o, r, i, a, s, l) {
                var c = [],
                    p = f.DataCenter.Instance.GetDataList(y.UserHero_Model),
                    d = f.DataCenter.Instance.GetIntData(g.UserDataKey.CurrentBeDisplaceHero);
                if (!a)
                    for (var m = this.GetUniversalHeroItems(n, o, e), I = 0; I < m.length; I++) c.push({
                        Type: u.Item,
                        Id: -m[I]
                    });
                if (!s) {
                    var _ = this.GetHeroSubstitutesForUpStar(e, n);
                    for (I = 0; I < _.length; I++) c.push({
                        Type: u.Item,
                        Id: -_[I]
                    })
                }
                if (!l && 5 == n) {
                    var C = f.ConfigCacheComponent.Instance.Get5StarPieceIdByHeroId(e);
                    if (C) {
                        var v = f.ConfigDataComponent.Instance.GetConfigById(h.ItemPiece_Config, C);
                        if (v && f.DataCenter.Instance.IsItemEnough(C, v.RequireCount)) {
                            var b = Math.floor(f.DataCenter.Instance.GetItemCount(C) / v.RequireCount);
                            for (I = 0; I < b; I++) c.push({
                                Type: u.Item,
                                Id: -C,
                                Count: v.RequireCount
                            })
                        }
                    }
                }
                if (r)
                    for (I = 0; I < r.length; I++) {
                        var S = r[I];
                        switch (S.Type) {
                            case u.Item:
                                (T = this.GetUpStarMaterialIndex(u.Item, S.Id, c)) >= 0 && c.splice(T, 1);
                                break;
                            case u.Compose:
                                for (var w = 0; w < S.Param.length; w++) {
                                    var P = S.Param[w];
                                    if (P.Type == u.Item) {
                                        var A = this.GetUpStarMaterialIndex(u.Item, P.Id, c);
                                        A >= 0 && c.splice(A, 1)
                                    }
                                }
                        }
                    }
                for (I = 0; I < p.length; I++) {
                    var T, R = p[I];
                    if (R.Sid != d && R.HeroId == e && R.StarLevel == n && (T = this.GetUpStarMaterialIndex(u.Hero, R.Sid, r)) < 0) {
                        if (i && !t.Instance.IsHeroCanBeConsume(R)) continue;
                        c.push({
                            Type: u.Hero,
                            Id: R.Sid
                        })
                    }
                }
                return s || (c = c.concat(t.GetCanBeComposedHeroByIdAndStar(e, n, r))), c.sort(this.SortUpStarHeroPools.bind(this)), c
            }, e.GetHeroByStarAndElement = function(e, n, o, r, i, a) {
                for (var s = [], l = this.GetHeroSoulItems(e, n), c = 0; c < l.length; c++) s.push({
                    Type: u.Item,
                    Id: -l[c]
                });
                var p = this.GetUniversalHeroItems(e, n);
                for (c = 0; c < p.length; c++) s.push({
                    Type: u.Item,
                    Id: -p[c]
                });
                if (r)
                    for (c = 0; c < r.length; c++) {
                        var m = r[c];
                        switch (m.Type) {
                            case u.Item:
                                (P = this.GetUpStarMaterialIndex(u.Item, m.Id, s)) >= 0 && s.splice(P, 1);
                                break;
                            case u.Compose:
                                for (var I = 0; I < m.Param.length; I++) {
                                    var _ = m.Param[I];
                                    if (_.Type == u.Item) {
                                        var C = this.GetUpStarMaterialIndex(u.Item, _.Id, s);
                                        C >= 0 && s.splice(C, 1)
                                    }
                                }
                        }
                    }
                var v = f.DataCenter.Instance.GetDataList(y.UserHero_Model);
                for (c = 0; c < v.length; c++) {
                    var b = v[c],
                        S = f.DataCenter.Instance.GetIntData(g.UserDataKey.CurrentBeDisplaceHero),
                        w = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, b.HeroId);
                    if (b.Sid != S && !(w.CoreHero >= d.CoreHeroTag.UR)) switch (n) {
                        case d.HeroElementType.All:
                            if (b.StarLevel == e) {
                                if (o != d.HeroElementType.Chaos && w.ElementType == d.HeroElementType.Chaos) continue;
                                if ((P = this.GetUpStarMaterialIndex(u.Hero, b.Sid, r)) < 0) {
                                    if (i && !t.Instance.IsHeroCanBeConsume(b)) continue;
                                    s.push({
                                        Type: u.Hero,
                                        Id: b.Sid
                                    })
                                }
                            }
                            break;
                        default:
                            var P;
                            if (w.ElementType == n && b.StarLevel == e && (P = this.GetUpStarMaterialIndex(u.Hero, b.Sid, r)) < 0) {
                                if (i && !t.Instance.IsHeroCanBeConsume(b)) continue;
                                s.push({
                                    Type: u.Hero,
                                    Id: b.Sid
                                })
                            }
                    }
                }
                return a || (s = s.concat(t.GetCanBeComposedHeroByElementAndStar(n, e, r))), s.sort(this.SortUpStarHeroPools.bind(this)), s
            }, e.GetCanBeComposedHeroByIdAndStar = function(e, n, o) {
                if (n < 6) return [];
                for (var r = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e), i = [], a = f.DataCenter.Instance.GetDataList(y.UserHero_Model), s = 0; s < a.length; s++) {
                    var l = a[s];
                    if (l.HeroId == e && l.StarLevel < n && r.MaxStarLevel >= n) {
                        if (!t.Instance.IsHeroCanBeConsume(l)) continue;
                        i.push(l)
                    }
                }
                return 0 == i.length ? [] : t.DoChooseComposeMaterialJob(n, i, o)
            }, e.GetCanBeComposedHeroByElementAndStar = function(e, n, o) {
                for (var r = [], i = f.DataCenter.Instance.GetDataList(y.UserHero_Model), a = 0; a < i.length; a++) {
                    var s = i[a],
                        l = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, s.HeroId);
                    if (!(l.CoreHero >= d.CoreHeroTag.UR) && t.Instance.IsHeroCanBeConsume(s) && !(l.MaxStarLevel < n)) switch (e) {
                        case d.HeroElementType.All:
                            s.StarLevel < n && this.GetUpStarMaterialIndex(u.Hero, s.Sid, o) < 0 && r.push(s);
                            break;
                        default:
                            l.ElementType == e && s.StarLevel < n && this.GetUpStarMaterialIndex(u.Hero, s.Sid, o) < 0 && r.push(s)
                    }
                }
                return 0 == r.length ? [] : t.DoChooseComposeMaterialJob(n, r, o)
            }, e.DoChooseComposeMaterialJob = function(e, n, o) {
                var r = [],
                    i = [];
                o && (i = i.concat(o)), n.sort(t.SortMaterialHeroes.bind(this));
                for (var a = {}, s = 0; s < n.length; s++) {
                    var l = n[s];
                    if (!(t.GetUpStarMaterialIndex(u.Hero, l.Sid, i) >= 0)) {
                        var c = a[l.HeroId];
                        if (!(c && c.indexOf(l.StarLevel) > -1)) {
                            var p = !0,
                                y = {
                                    Type: u.Compose,
                                    Id: l.Sid,
                                    TargetStar: e,
                                    Param: []
                                },
                                g = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, l.HeroId),
                                m = [],
                                I = void 0;
                            m.push({
                                Type: u.Hero,
                                Id: l.Sid
                            });
                            for (var _ = l.StarLevel; _ < e; _++) {
                                I = _ + 1;
                                for (var C = f.ConfigDataComponent.Instance.GetConfigById(h.HeroStar_Config, _ + 1), v = g.ElementType == d.HeroElementType.Chaos ? C.ChaosHeroMaterials : C.HeroMaterials, b = 0; b < v.length; b++) {
                                    var S = v[b].Items,
                                        w = S[0],
                                        P = S[1],
                                        A = S[2],
                                        T = void 0,
                                        R = g.ElementType;
                                    switch (w) {
                                        case 1:
                                            T = l.HeroId;
                                            break;
                                        case 2:
                                            T = g.BondHero;
                                            break;
                                        case 3:
                                            T = 0, R = g.ElementType;
                                            break;
                                        case 4:
                                            R = 0, T = 0;
                                            break;
                                        case 5:
                                            T = l.HeroId
                                    }
                                    for (var L = m.concat(i), k = t.GetHeroUpStarPools(w, T, P, R, L, !0, !0), O = 0, M = 0; M < k.length; M++) {
                                        var D = k[M];
                                        if (y.Param.push(D), m.push(D), ++O >= A) break
                                    }
                                    if (O < A) {
                                        p = !1;
                                        break
                                    }
                                }
                                if (!p) break
                            }
                            if (p && I == e) r.push(y), i.push(y);
                            else {
                                var B = a[l.HeroId];
                                B || (B = []), B.push(l.StarLevel), a[l.HeroId] = B
                            }
                        }
                    }
                }
                return r
            }, e.GetUpStarMaterialIndex = function(e, t, n) {
                if (!n) return -1;
                for (var o = 0; o < n.length; o++) {
                    var r = n[o];
                    switch (r.Type) {
                        case u.Compose:
                            if (e == u.Hero && r.Id == t) return o;
                            for (var i = 0; i < r.Param.length; i++) {
                                var a = r.Param[i];
                                if (a.Type == e && a.Id == t) return o
                            }
                            break;
                        default:
                            if (r.Type == e && r.Id == t) return o
                    }
                }
                return -1
            }, e.SortMaterialHeroes = function(e, t) {
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e.HeroId),
                    o = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t.HeroId);
                return n.CoreHero && !o.CoreHero ? 1 : !n.CoreHero && o.CoreHero ? -1 : n.MaxStarLevel < o.MaxStarLevel ? -1 : n.MaxStarLevel > o.MaxStarLevel ? 1 : 0
            }, e.GetHeroCountByLevel = function(e) {
                for (var t = [], n = f.DataCenter.Instance.GetDataList(y.UserHero_Model), o = 0; o < n.length; o++) {
                    var r = n[o];
                    r.Level >= e && t.push(r.Sid)
                }
                return t.length
            }, e.GetHeroSoulItems = function(e, t) {
                for (var n = [], o = f.DataCenter.Instance.GetDataList(y.UserItem_Model), r = 0; r < o.length; r++) {
                    var i = o[r];
                    if (!(i.Count <= 0)) {
                        var a = f.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, i.ItemId);
                        if (a.Type == d.ItemType.Consume && a.Star == e) {
                            var s = f.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, i.ItemId);
                            if (s.SubType == d.ConsumeItemType.HeroSoul) {
                                var l = a.ElementType;
                                switch (t) {
                                    case d.HeroElementType.All:
                                        for (var c = 0; c < i.Count; c++) n.push(s.Id);
                                        break;
                                    case d.HeroElementType.Heart:
                                    case d.HeroElementType.Power:
                                    case d.HeroElementType.Tech:
                                        if (l == t || l == d.HeroElementType.Combine5 || l == d.HeroElementType.Combine3)
                                            for (c = 0; c < i.Count; c++) n.push(s.Id);
                                        break;
                                    case d.HeroElementType.Break:
                                    case d.HeroElementType.Fight:
                                        if (l == t || l == d.HeroElementType.Combine5 || l == d.HeroElementType.Combine2)
                                            for (c = 0; c < i.Count; c++) n.push(s.Id);
                                        break;
                                    case d.HeroElementType.Chaos:
                                        if (l == t || l == d.HeroElementType.SPChaos)
                                            for (c = 0; c < i.Count; c++) n.push(s.Id)
                                }
                            }
                        }
                    }
                }
                return n
            }, e.GetUniversalHeroItems = function(e, t, n) {
                var o, r;
                if (n && !f.DataCenter.Instance.GetDataById(y.HeroInfo_Model, n)) return [];
                for (var i = [], a = f.DataCenter.Instance.GetDataList(y.UserItem_Model), s = 0; s < a.length; s++) {
                    var l = a[s];
                    if (!(l.Count <= 0)) {
                        var c = f.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, l.ItemId);
                        if (c.Type == d.ItemType.Consume && c.Star == e) {
                            if (!n) return [];
                            var u = A.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, n),
                                p = f.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, l.ItemId);
                            if (p.SubType == d.ConsumeItemType.CommonHero) {
                                var g = (null === (o = p.Param[0]) || void 0 === o ? void 0 : o.Items) || [],
                                    m = (null === (r = p.Param[1]) || void 0 === r ? void 0 : r.Items) || [];
                                if (!g.includes(u.ElementType)) continue;
                                if (!m.includes(u.CoreHero)) continue;
                                for (var I = 0; I < l.Count; I++) i.push(p.Id)
                            }
                        }
                    }
                }
                return i
            }, e.GetHeroSubstitutesForUpStar = function(e, t) {
                if (5 != t && 6 != t) return [];
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e);
                if (!n || n.Substitute.length <= 0) return [];
                for (var o = [], r = 0; r < n.Substitute.length; r++) {
                    var i = n.Substitute[r].Items;
                    if (i[0] == t) {
                        for (var a = 1; a < i.length; a++) {
                            var s = i[a],
                                l = f.DataCenter.Instance.GetItemCount(s);
                            if (l > 0) {
                                var c = Array(l).fill(s);
                                o = o.concat(c)
                            }
                        }
                        break
                    }
                }
                return o
            }, e.SortUpStarHeroPools = function(e, t) {
                var n, o;
                switch (e.Type) {
                    case u.Hero:
                        (l = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e.Id)) && (n = (c = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, l.HeroId)).CoreHero ? p.ExistHeroCore : c.MaxStarLevel > 9 ? p.ExistHeroElite : p.ExistHeroNormal);
                        break;
                    case u.Item:
                        var r = Math.abs(e.Id);
                        if (e.Count > 1) {
                            var i = f.ConfigDataComponent.Instance.GetConfigById(h.ItemPiece_Config, r),
                                a = f.ConfigDataComponent.Instance.GetConfigById(h.ItemHeroCard_Config, i.CardId);
                            n = (c = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, a.HeroId)).CoreHero ? p.HeroPieceCore : c.MaxStarLevel > 9 ? p.HeroPieceElite : p.HeroPieceNormal
                        } else(s = f.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, r)) && (s.SubType == d.ConsumeItemType.HeroSoul ? 0 == s.Param.length ? n = p.HeroSoulNormal : 1 == s.Param[0].Items.length ? n = p.HeroSoulSingleElement : 3 == s.Param[0].Items.length ? n = p.HeroSoulThreeElement : 2 == s.Param[0].Items.length ? n = p.HeroSoulTwoElement : s.Param[0].Items.length >= 5 && (n = p.HeroSoulAllElement) : s.SubType == d.ConsumeItemType.ManualBox ? n = p.SelectCard : s.SubType == d.ConsumeItemType.CommonHero && (n = p.UniversalHero));
                        break;
                    case u.Compose:
                        (l = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e.Id)) && (n = (c = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, l.HeroId)).CoreHero ? p.ComposedHeroCore : c.MaxStarLevel > 9 ? p.ComposedHeroElite : p.ComposedHeroNormal)
                }
                switch (t.Type) {
                    case u.Hero:
                        (l = f.DataCenter.Instance.GetDataById(y.UserHero_Model, t.Id)) && (o = (c = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, l.HeroId)).CoreHero ? p.ExistHeroCore : c.MaxStarLevel > 9 ? p.ExistHeroElite : p.ExistHeroNormal);
                        break;
                    case u.Item:
                        var s;
                        if (r = Math.abs(t.Id), t.Count > 1) i = f.ConfigDataComponent.Instance.GetConfigById(h.ItemPiece_Config, r), a = f.ConfigDataComponent.Instance.GetConfigById(h.ItemHeroCard_Config, i.CardId), o = (c = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, a.HeroId)).CoreHero ? p.HeroPieceCore : c.MaxStarLevel > 9 ? p.HeroPieceElite : p.HeroPieceNormal;
                        else(s = f.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, r)) && (s.SubType == d.ConsumeItemType.HeroSoul ? 0 == s.Param.length ? o = p.HeroSoulNormal : 1 == s.Param[0].Items.length ? o = p.HeroSoulSingleElement : 3 == s.Param[0].Items.length ? o = p.HeroSoulThreeElement : 2 == s.Param[0].Items.length ? o = p.HeroSoulTwoElement : s.Param[0].Items.length >= 5 && (o = p.HeroSoulAllElement) : s.SubType == d.ConsumeItemType.ManualBox ? o = p.SelectCard : s.SubType == d.ConsumeItemType.CommonHero && (o = p.UniversalHero));
                        break;
                    case u.Compose:
                        var l, c;
                        (l = f.DataCenter.Instance.GetDataById(y.UserHero_Model, t.Id)) && (o = (c = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, l.HeroId)).CoreHero ? p.ComposedHeroCore : c.MaxStarLevel > 9 ? p.ComposedHeroElite : p.ComposedHeroNormal)
                }
                if (n < o) return -1;
                if (n > o) return 1;
                var g = 0,
                    m = 0,
                    I = 0,
                    _ = 0;
                switch (n) {
                    case p.HeroPieceNormal:
                    case p.HeroPieceElite:
                    case p.HeroPieceCore:
                        I = Math.abs(e.Id);
                        var C = f.ConfigDataComponent.Instance.GetConfigById(h.ItemPiece_Config, I),
                            v = f.ConfigDataComponent.Instance.GetConfigById(h.ItemHeroCard_Config, C.CardId);
                        g = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, v.HeroId).ElementType, _ = Math.abs(t.Id);
                        var b = f.ConfigDataComponent.Instance.GetConfigById(h.ItemPiece_Config, _),
                            S = f.ConfigDataComponent.Instance.GetConfigById(h.ItemHeroCard_Config, b.CardId);
                        m = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, S.HeroId).ElementType;
                        break;
                    case p.ExistHeroNormal:
                    case p.ExistHeroElite:
                    case p.ExistHeroCore:
                    case p.ComposedHeroNormal:
                    case p.ComposedHeroElite:
                    case p.ComposedHeroCore:
                        var w = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e.Id);
                        I = w.HeroId, g = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, w.HeroId).ElementType;
                        var P = f.DataCenter.Instance.GetDataById(y.UserHero_Model, t.Id);
                        _ = P.HeroId, m = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, P.HeroId).ElementType
                }
                return g != m ? g - m : I - _
            }, e.SortHeroPools = function(e, n) {
                var o, r, i = !1,
                    a = !1;
                if (e.Type == u.Item) {
                    if (e.Count > 1) return -1;
                    (o = f.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, Math.abs(e.Id))) && (i = o.SubType == d.ConsumeItemType.HeroSoul && o.Param.length > 0 && 5 == o.Param[0].Items.length)
                }
                if (n.Type == u.Item) {
                    if (n.Count > 1) return 1;
                    (r = f.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, Math.abs(n.Id))) && (a = r.SubType == d.ConsumeItemType.HeroSoul && r.Param.length > 0 && 5 == r.Param[0].Items.length)
                }
                if (o && !r) return o.SubType == d.ConsumeItemType.ManualBox ? 1 : o.SubType == d.ConsumeItemType.CommonHero ? 1 : i ? 1 : -1;
                if (!o && r) return r.SubType == d.ConsumeItemType.ManualBox ? -1 : r.SubType == d.ConsumeItemType.CommonHero ? -1 : a ? -1 : 1;
                if (o && r) {
                    if (o.SubType == d.ConsumeItemType.CommonHero) return 1;
                    if (r.SubType == d.ConsumeItemType.CommonHero) return -1;
                    if (o.SubType == d.ConsumeItemType.HeroSoul && r.SubType == d.ConsumeItemType.HeroSoul) {
                        var s = 0 == o.Param.length,
                            l = 0 == r.Param.length;
                        return s && !l ? -1 : !s && l ? 1 : s && l ? -1 : o.Param[0].Items.length - r.Param[0].Items.length
                    }
                    return 0
                }
                if (!o && !r) {
                    var c = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e.Id),
                        p = f.DataCenter.Instance.GetDataById(y.UserHero_Model, n.Id),
                        g = t.Instance.IsHeroCanBeConsume(c),
                        m = t.Instance.IsHeroCanBeConsume(p);
                    if (g && !m) return -1;
                    if (m && !g) return 1;
                    if (e.Type == u.Compose && n.Type != u.Compose) return 1;
                    if (e.Type != u.Compose && n.Type == u.Compose) return -1;
                    var I = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, c.HeroId),
                        _ = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, p.HeroId);
                    if (I.CoreHero >= 1 && 0 == _.CoreHero) return 1;
                    if (0 == I.CoreHero && _.CoreHero >= 1) return -1;
                    if (0 == I.CoreHero && 0 == _.CoreHero) return I.MaxStarLevel - _.MaxStarLevel;
                    if (I.CoreHero > 0 && _.CoreHero > 0) return I.CoreHero - _.CoreHero;
                    if (I.StarLevel < _.StarLevel) return -1;
                    if (I.StarLevel > _.StarLevel) return 1;
                    if (c.Level < p.Level) return -1;
                    if (c.Level > p.Level) return 1;
                    if (I.ElementType < _.ElementType) return -1;
                    if (I.ElementType > _.ElementType) return 1;
                    if (I.Id > _.Id) return 1;
                    if (I.Id < _.Id) return -1
                }
                return 0
            }, e.prototype.GetHeroCountLimit = function() {
                var e = t.GetModuleBonusByType(g.ModuleBonusType.HeroBaseCountLimit);
                return f.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroBaseCountLimit") + e
            }, e.prototype.IsCanGetNewHero = function(e) {
                var t = this.GetHeroCountLimit();
                return I.EZLog.Log(t), !(f.DataCenter.Instance.GetDataList(y.UserHero_Model).length + e > t)
            }, e.prototype.SortData = function(e, t, n) {
                var o, r = d.SortDataType,
                    i = ((o = {})[r.Hero] = {
                        ConfigClass: h.HeroBase_Config,
                        ItemKey: "HeroId"
                    }, o[r.HolyEquip] = {
                        ConfigClass: h.HolyEquipment_Config,
                        ItemKey: "ItemId"
                    }, o[r.Pet] = {
                        ConfigClass: h.PetBase_Config,
                        ItemKey: "PetId"
                    }, o[r.LuckyCharm] = {
                        ConfigClass: h.ItemBase_Config,
                        ItemKey: "ItemId"
                    }, o[r.Gem] = {
                        ConfigClass: h.GemEquip_Config,
                        ItemKey: "ItemId"
                    }, o[r.PowerCore] = {
                        ConfigClass: h.ItemBase_Config,
                        ItemKey: "ItemId"
                    }, o[r.ItemPiece] = {
                        ConfigClass: h.ItemBase_Config,
                        ItemKey: "ItemId",
                        ConfigClass2: h.ItemPiece_Config,
                        ItemKey2: "ItemId"
                    }, o[r.ItemHeroSoul] = {
                        ConfigClass: h.ItemBase_Config,
                        ItemKey: "ItemId",
                        ConfigClass2: h.ItemConsume_Config,
                        ItemKey2: "ItemId"
                    }, o[r.HeadIcon] = {
                        ConfigClass: h.HeadIcon_Config,
                        ItemKey: "Id"
                    }, o[r.Equip] = {
                        ConfigClass: h.ItemBase_Config,
                        ItemKey: "ItemId"
                    }, o[r.ItemEquip] = {
                        ConfigClass: h.ItemBase_Config,
                        ItemKey: "ItemId"
                    }, o)[e],
                    a = f.ConfigDataComponent.Instance.GetConfig(i.ConfigClass),
                    s = f.ConfigDataComponent.Instance.GetConfig(i.ConfigClass);
                null != i.ConfigClass2 && (s = f.ConfigDataComponent.Instance.GetConfig(i.ConfigClass2)), t.sort(function(e, t) {
                    for (var o = 0, r = n; o < r.length; o++) {
                        var l = r[o],
                            c = l.Items[0],
                            u = l.Items[1],
                            p = l.Items.slice(2),
                            h = d.SortType[c];
                        if (null != h) {
                            var g = 0,
                                m = 0;
                            if (c > d.SortType.SpecialType) switch (c) {
                                case d.SortType.InFormation:
                                    var I = f.DataCenter.Instance.GetHeroFormations(e.Sid),
                                        _ = f.DataCenter.Instance.GetHeroFormations(t.Sid);
                                    g = I.length > 0 ? 1 : 0, m = _.length > 0 ? 1 : 0;
                                    break;
                                case d.SortType.AppointHeroId:
                                    g = p.includes(e.HeroId) ? 1 : 0, m = p.includes(t.HeroId) ? 1 : 0;
                                    break;
                                case d.SortType.AppointSid:
                                    g = p.includes(e.Sid) ? 1 : 0, m = p.includes(t.Sid) ? 1 : 0;
                                    break;
                                case d.SortType.InPutOn:
                                    g = e.OwnerId > 0 ? 1 : 0, m = t.OwnerId > 0 ? 1 : 0;
                                    break;
                                case d.SortType.AppointOwnerId:
                                    g = p.includes(e.OwnerId) ? 1 : 0, m = p.includes(t.OwnerId) ? 1 : 0;
                                    break;
                                case d.SortType.CanCompose:
                                    g = e.Count >= s[e[i.ItemKey]].RequireCount ? 1 : 0, m = t.Count >= s[t[i.ItemKey]].RequireCount ? 1 : 0;
                                    break;
                                case d.SortType.CanComposeCard:
                                    g = s[e[i.ItemKey]].CardId > 0 ? 1 : 0, m = s[t[i.ItemKey]].CardId > 0 ? 1 : 0;
                                    break;
                                case d.SortType.HeroLevel:
                                    g = Math.max(e.Level, e.TempleLevel), m = Math.max(t.Level, t.TempleLevel);
                                    break;
                                case d.SortType.HeroSoulElements:
                                    g = null != s[e[i.ItemKey]].Param[0] ? s[e[i.ItemKey]].Param[0].Items.length : 0, m = null != s[t[i.ItemKey]].Param[0] ? s[t[i.ItemKey]].Param[0].Items.length : 0;
                                    break;
                                case d.SortType.HeadIconIsUnlock:
                                    if (e.Type == d.HeadIconType.Hero ? g = f.DataCenter.Instance.GetDataById(y.HeroInfo_Model, e.Param) ? 1 : 0 : e.Type == d.HeadIconType.HeroSkin && (g = (C = f.DataCenter.Instance.GetDataById(y.HeroSkin_Model, e.Param)) && C.IsPerpetual ? 1 : 0), t.Type == d.HeadIconType.Hero) m = f.DataCenter.Instance.GetDataById(y.HeroInfo_Model, t.Param) ? 1 : 0;
                                    else if (t.Type == d.HeadIconType.HeroSkin) {
                                        var C;
                                        m = (C = f.DataCenter.Instance.GetDataById(y.HeroSkin_Model, t.Param)) && C.IsPerpetual ? 1 : 0
                                    }
                                    break;
                                case d.SortType.OriginalLuckyCharm:
                                    g = (e.StarSkills || []).length, m = (t.StarSkills || []).length
                            } else c > d.SortType.Config2tart ? (h = h.slice(7), g = s[e[i.ItemKey2 || i.ItemKey]][h] || 0, m = s[t[i.ItemKey2 || i.ItemKey]][h] || 0) : c > d.SortType.ConfigStart ? (h = h.slice(6), g = a[e[i.ItemKey]][h] || 0, m = a[t[i.ItemKey]][h] || 0) : (g = e[h] || 0, m = t[h] || 0);
                            if (g != m) return u * (g > m ? 1 : -1)
                        }
                    }
                    return 0
                })
            }, e.prototype.SortHeroByRule1 = function(e, t) {
                void 0 === t && (t = d.FormationIdType.MainLine), this._currentFormationId = t, e.sort(this.SortByFormation.bind(this))
            }, e.prototype.SortHeroByRule2 = function(e) {
                e.sort(this.SortByHeroPower.bind(this))
            }, e.prototype.SortByFormation = function(e, t) {
                var n = f.DataCenter.Instance.IsHeroInFormation(e.Sid, this._currentFormationId),
                    o = f.DataCenter.Instance.IsHeroInFormation(t.Sid, this._currentFormationId);
                return n && o ? this.SortByHeroPower(e, t) : n ? -1 : o ? 1 : this.SortByHeroPower(e, t)
            }, e.prototype.SortByHeroPower = function(e, t) {
                return e.Power > t.Power ? -1 : e.Power < t.Power ? 1 : this.SortByHeroLevel(e, t)
            }, e.prototype.SortByHeroLevel = function(e, t) {
                return e.Level > t.Level ? -1 : e.Level < t.Level ? 1 : this.SortByHeroStar(e, t)
            }, e.prototype.SortByHeroStar = function(e, t) {
                return e.StarLevel > t.StarLevel ? -1 : e.StarLevel < t.StarLevel ? 1 : this.SortByElement(e, t)
            }, e.prototype.SortByElement = function(e, t) {
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e.HeroId),
                    o = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t.HeroId);
                return n.ElementType < o.ElementType ? -1 : n.ElementType > o.ElementType ? 1 : n.Id > o.Id ? -1 : (n.Id, o.Id, 1)
            }, e.prototype.SortHeroByCareer = function(e) {
                e.sort(this.DoSortHeroByCareerJob.bind(this))
            }, e.prototype.DoSortHeroByCareerJob = function(e, t) {
                var n = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e),
                    o = f.DataCenter.Instance.GetDataById(y.UserHero_Model, t);
                if (!n || !o) return 0;
                var r = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, n.HeroId),
                    i = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, o.HeroId);
                if (!r || !i) return 0;
                var a = this.HEROCAREER_SORT.indexOf(r.Career),
                    s = this.HEROCAREER_SORT.indexOf(i.Career);
                return a < s ? -1 : a > s ? 1 : 0
            }, e.prototype.SortHeroByLotFormations = function(e) {
                var t = this,
                    n = f.DataCenter.Instance.GetDataList(y.UserHero_Model);
                return G.SortType.Level, G.SortType.Quality, G.SortType.Star, G.SortType.BattlePower, this._currentFormationId = e[0], n.sort(function(n, o) {
                    return t.SortHeroByLotFormationsModel(0, e, n, o)
                }), n
            }, e.prototype.SortHeroByLotFormationsModel = function(e, t, n, o) {
                if (e >= t.length) {
                    for (var r = [G.SortType.Level, G.SortType.Quality, G.SortType.Star, G.SortType.BattlePower], i = 0; i < r.length; i++) {
                        var a = r[i],
                            s = this._customSortFunc[a](n, o);
                        if (0 != s) return s
                    }
                    return this.SortByElement(n, o)
                }
                var l = f.DataCenter.Instance.IsHeroInFormation(n.Sid, t[e]),
                    c = f.DataCenter.Instance.IsHeroInFormation(o.Sid, t[e]);
                return l && !c ? -1 : !l && c ? 1 : this.SortHeroByLotFormationsModel(e + 1, t, n, o)
            }, e.prototype.CustomSortHeroList = function(e, t) {
                var n = this;
                void 0 === t && (t = d.FormationIdType.MainLine);
                var o = [G.SortType.Level, G.SortType.Quality, G.SortType.Star, G.SortType.BattlePower];
                this._currentFormationId = t, e.sort(function(e, t) {
                    var r = f.DataCenter.Instance.IsHeroInFormation(e.Sid, n._currentFormationId),
                        i = f.DataCenter.Instance.IsHeroInFormation(t.Sid, n._currentFormationId);
                    if (r && !i) return -1;
                    if (!r && i) return 1;
                    for (var a = 0; a < o.length; a++) {
                        var s = o[a],
                            l = n._customSortFunc[s](e, t);
                        if (0 != l) return l
                    }
                    return n.SortByElement(e, t)
                })
            }, e.prototype.SortPetDatas = function(e) {
                var t, n = this,
                    o = U.default.GetItem(U.GameRecordDefine.SortPetSetting);
                t = o ? JSON.parse(o) : [F.PetSortType.Star, F.PetSortType.Level], e.sort(function(e, o) {
                    if (n.GetPetOwnerCountByModel(e) > 0 && 0 == n.GetPetOwnerCountByModel(o)) return -1;
                    if (0 == n.GetPetOwnerCountByModel(e) && n.GetPetOwnerCountByModel(o) > 0) return 1;
                    for (var r = 0; r < t.length; r++) {
                        var i = t[r],
                            a = n._petSortFunc[i](e, o);
                        if (0 != a) return a
                    }
                    return 0
                })
            }, e.prototype.GetPetOwnerCountByModel = function(e) {
                for (var t = 0, n = 0, o = e.Owners; n < o.length; n++) o[n] > 0 && t++;
                return t
            }, e.prototype.SortByHeroQualityOnly = function(e, t) {
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e.HeroId),
                    o = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t.HeroId);
                return n.Quality > o.Quality ? -1 : n.Quality < o.Quality ? 1 : 0
            }, e.prototype.SortByHeroPowerOnly = function(e, t) {
                return e.Power > t.Power ? -1 : e.Power < t.Power ? 1 : 0
            }, e.prototype.SortByHeroStarOnly = function(e, t) {
                return e.StarLevel > t.StarLevel ? -1 : e.StarLevel < t.StarLevel ? 1 : 0
            }, e.prototype.SortByHeroLevelOnly = function(e, t) {
                var n = e.Level;
                e.TemplePosition > 0 && (n = e.TempleLevel);
                var o = t.Level;
                return t.TemplePosition > 0 && (o = t.TempleLevel), n > o ? -1 : n < o ? 1 : 0
            }, e.prototype.SortByPetStarOnly = function(e, t) {
                return e.Star > t.Star ? -1 : e.Star < t.Star ? 1 : 0
            }, e.prototype.SortByPetLevelOnly = function(e, t) {
                return e.Level > t.Level ? -1 : e.Level < t.Level ? 1 : 0
            }, e.prototype.GetChapterConfigByMapId = function(e) {
                for (var t = f.ConfigDataComponent.Instance.GetArrayConfig(h.AdventureChapter_Config), n = t[t.length - 1], o = n.MapIds[n.MapIds.length - 1], r = Math.min(e, o), i = t.length, a = 0; a < i; a++) {
                    var s = t[a].MapIds[0],
                        l = t[a].MapIds[t[a].MapIds.length - 1];
                    if (r >= s && r <= l) return t[a].Id
                }
            }, e.prototype.GetMapChapterInfo = function(e) {
                for (var t, n, o = f.ConfigDataComponent.Instance.GetArrayConfig(h.AdventureChapter_Config), r = 0; r < o.length; r++)
                    if ((n = o[r].MapIds.indexOf(e)) > -1) {
                        t = o[r].Id;
                        break
                    } return [t, n + 1]
            }, e.prototype.IsIntelligencePropOverFlow = function(e) {
                return f.DataCenter.Instance.GetItemCount(g.CommonItemId.Intelligence) + e > f.ConfigDataComponent.Instance.GetItemMax(g.CommonItemId.Intelligence)
            }, e.prototype.SelectIntelligenceTaskHeros = function(e, t) {
                var n;
                void 0 === t && (t = []);
                for (var o, r = {
                        Status: 0,
                        Heros: []
                    }, i = f.DataCenter.Instance.GetDataById(y.IntelligenceTask_Model, e), a = f.ConfigDataComponent.Instance.GetConfigById(h.IntelligenceTask_Config, i.TaskId), s = a.Requirements[0], l = {}, c = 1; c < a.Requirements.length; c++) {
                    var u = a.Requirements[c];
                    null == l[u] && (l[u] = {
                        Count: 0,
                        Heros: []
                    }), l[u].Count += 1
                }
                for (var p = 0, d = f.DataCenter.Instance.GetDataList(y.UserHero_Model); p < d.length; p++) {
                    var g = d[p];
                    if (!t.includes(g.Sid) && (g.StarLevel >= s && (null == o || g.StarLevel < o.StarLevel) && (o = g), null != (I = l[f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, g.HeroId).ElementType]))) {
                        if (g.StarLevel >= s && (null == I.StarHero || g.StarLevel < I.StarHero.StarLevel) && (I.StarHero = g), 0 == I.Heros.length) I.Heros.push(g);
                        else if (g.StarLevel >= I.Heros[I.Heros.length - 1].StarLevel) I.Heros.push(g);
                        else
                            for (c = 0; c < I.Heros.length; c++)
                                if (g.StarLevel < I.Heros[c].StarLevel) {
                                    I.Heros.splice(c, 0, g);
                                    break
                                } I.Heros.splice(I.Count)
                    }
                }
                var m = !1;
                for (var c in l) {
                    var I;
                    if ((I = l[c]).Heros.length < I.Count) return r.Status = 1, r.Heros = [], r;
                    if (m || null == I.StarHero)(n = r.Heros).push.apply(n, I.Heros);
                    else {
                        m = !0, o = I.StarHero;
                        for (var _ = 0, C = 0, v = I.Heros; C < v.length; C++) {
                            var b = v[C];
                            if (_ + 1 >= I.Count) break;
                            b.Sid != I.StarHero.Sid && (_ += 1, r.Heros.push(b))
                        }
                    }
                }
                return null == o ? (r.Status = 1, r.Heros = [], r) : (r.Heros.unshift(o), r)
            }, e.prototype.IsHeroCanBeConsume = function(e) {
                return !(e && (!(t = e instanceof y.UserHero_Model ? e : f.DataCenter.Instance.GetDataById(y.UserHero_Model, e)) || t.Locked || f.DataCenter.Instance.GetHeroFormations(t.Sid).length > 0 || f.DataCenter.Instance.GetFlyHeroSeasonWeaponId(t.Sid)));
                var t
            }, e.prototype.GetHolyEquipScore = function(e, t) {
                var n = t || f.DataCenter.Instance.GetDataById(y.HolyEquipment_Model, e),
                    o = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentLevel_Config, n.Level),
                    r = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, n.Star),
                    i = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipmentScore"),
                    a = o.Score,
                    s = r.Score,
                    l = n.Blessing1.BlessingId,
                    c = n.Blessing2.BlessingId,
                    u = 0;
                l > 0 && (u = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipBlessing_Config, l).Score);
                var p = 0;
                c > 0 && (p = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipBlessing_Config, c).Score);
                var d = 0;
                return n.Stage > 0 && (d = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipSoul_Config, n.Stage).Attr / 1e3), Math.floor((i + a + s + u + p) * (1 + d))
            }, e.GetHeroAttribute = function(e, t, n) {
                void 0 === n && (n = !1);
                var o = f.ConfigDataComponent.Instance.GetConfigById(h.HeroAttribute_Config, e);
                return {
                    Name: this.GetHeroAttributeName(void 0, o),
                    Value: this.GetHeroAttributeValue(t, void 0, o, n),
                    Icon: this.GetHeroAttributeIcon(void 0, o)
                }
            }, e.GetHeroAttributeName = function(e, t) {
                return t || (t = f.ConfigDataComponent.Instance.GetConfigById(h.HeroAttribute_Config, e)), t.Name.ToUILocale()
            }, e.GetHeroAttributeValue = function(e, t, n, o) {
                var r;
                switch (n || (n = f.ConfigDataComponent.Instance.GetConfigById(h.HeroAttribute_Config, t)), n.Format) {
                    case 1:
                        r = (e + n.InitialValue).toString();
                        break;
                    case 2:
                        r = (e + (o ? 0 : n.InitialValue)) / 10 + "%"
                }
                return r
            }, e.prototype.FormatRuinsWarAttributeValue = function(e, t) {
                var n;
                switch (e) {
                    case 1:
                        n = t.toString();
                        break;
                    case 2:
                        n = t / 100 + "%"
                }
                return n
            }, e.GetHeroAttributeIcon = function(e, t) {
                return t || (t = f.ConfigDataComponent.Instance.GetConfigById(h.HeroAttribute_Config, e)), m.UIUtlity.HERO_ATTR_ICON_ATLAS.getSpriteFrame(t.Icon)
            }, e.IsHolyEquipSuitActive = function(e, t) {
                if (0 == e) return [0, 0];
                for (var n = 0, o = 0, r = 0, i = 0, a = f.DataCenter.Instance.GetHeroHolyEquips(e), s = 0; s < a.length; s++)
                    if (0 != a[s]) {
                        var l = f.DataCenter.Instance.GetDataById(y.HolyEquipment_Model, a[s]);
                        f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipment_Config, l.ItemId).SuitId == t && (r++, l.Step && i++)
                    } var c = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipSuit_Config, t);
                return r >= 4 && (o = i >= 4 ? c.UpStepSkillFourId : c.SkillFourId), r >= 2 && (n = i >= 2 ? c.UpStepSkillTwoId : c.SkillTwoId), [n, o]
            }, e.GetHeroHolyEquipSkills = function(e) {
                for (var t = f.DataCenter.Instance.GetHeroHolyEquips(e), n = {}, o = {}, r = 0; r < t.length; r++)
                    if (0 != t[r]) {
                        var i = f.DataCenter.Instance.GetDataById(y.HolyEquipment_Model, t[r]),
                            a = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipment_Config, i.ItemId);
                        n[a.SuitId] ? n[a.SuitId] += 1 : n[a.SuitId] = 1, i.Step && (o[a.SuitId] ? o[a.SuitId] += 1 : o[a.SuitId] = 1)
                    } var s = {};
                for (var l in n) {
                    var c = Number.parseInt(l);
                    n[c] >= 4 ? (s[c] = 2, o[c] >= 4 && (s[c] = 4)) : n[c] >= 2 && (s[c] = 1, o[c] >= 2 && (s[c] = 3))
                }
                return s
            }, e.prototype.IsGameModuleUnlock = function(e) {
                if (!e) return [!0, null];
                var t = f.DataCenter.Instance.GetDataById(y.GameModule_Model, e),
                    n = f.ConfigDataComponent.Instance.GetConfigById(h.GameModule_Config, e);
                if (null != t && t.IsUnlocked) return [!0, null];
                for (var o = "", r = 0; r < n.Requirements1.length; r++) {
                    var i = n.Requirements1[r].Items[0],
                        a = n.Requirements1[r].Items[1];
                    if (r > 0 && r <= n.Requirements1.length - 1 && (o += "\u3001"), i == g.ModuleRequirementType.MainLineProgress) {
                        for (var s = f.ConfigDataComponent.Instance.GetArrayConfig(h.AdventureChapter_Config), l = void 0, c = void 0, u = 0; u < s.length; u++) {
                            var p = s[u].MapIds[0],
                                d = s[u].MapIds[s[u].MapIds.length - 1];
                            if (a >= p && a <= d) {
                                l = s[u], c = s[u].MapIds.indexOf(a) + 1;
                                break
                            }
                        }
                        var m = l.Id.ToChapterName(),
                            I = "level".ToUILocale().Fmt(c);
                        o += "unlock_condition_3".ToUILocale().Fmt(m + " " + I)
                    } else if (i == g.ModuleRequirementType.TestTower) {
                        var _ = n.Requirements1[r].Items[2],
                            C = ("climbTower_rule_maintittle_" + (99 == a || 199 == a ? a - 99 : a)).ToUILocale();
                        o = "climb_pass_limit".ToUILocale().Fmt(C, _)
                    } else o += ("unlock_condition_" + i).ToUILocale().Fmt(a)
                }
                var v = "";
                for (r = 0; r < n.Requirements2.length; r++)
                    if (i = n.Requirements2[r].Items[0], a = n.Requirements2[r].Items[1], r > 0 && r < n.Requirements2.length && (v += "\u3001"), i == g.ModuleRequirementType.MainLineProgress) {
                        s = f.ConfigDataComponent.Instance.GetArrayConfig(h.AdventureChapter_Config), l = void 0, c = void 0;
                        for (var b = 0; b < s.length; b++)
                            if (p = s[b].MapIds[0], d = s[b].MapIds[s[b].MapIds.length - 1], a >= p && a <= d) {
                                l = s[b], c = s[b].MapIds.indexOf(a) + 1;
                                break
                            } m = l.Id.ToChapterName(), I = "level".ToUILocale().Fmt(c), v += "unlock_condition_3".ToUILocale().Fmt(m + " " + I)
                    } else v += ("unlock_condition_" + i).ToUILocale().Fmt(a);
                return [!1, n.Requirements2.length > 0 ? "unlock_condition".ToUILocale().Fmt("a_or_b".ToUILocale().Fmt(o, v)) : "unlock_condition".ToUILocale().Fmt(o)]
            }, e.prototype.IsGameModuleOpen = function(e) {
                return !f.DataCenter.Instance.ClosedModuleIds.includes(e)
            }, e.prototype.GetAllianceTalentLevel = function(e) {
                var t;
                switch (e) {
                    case g.HeroElementType.All:
                        t = f.DataCenter.Instance.GetIntData(g.UserDataKey.AllianceTalentAll);
                        break;
                    case g.HeroElementType.Heart:
                        t = f.DataCenter.Instance.GetIntData(g.UserDataKey.AllianceTalentHeart);
                        break;
                    case g.HeroElementType.Power:
                        t = f.DataCenter.Instance.GetIntData(g.UserDataKey.AllianceTalentPower);
                        break;
                    case g.HeroElementType.Tech:
                        t = f.DataCenter.Instance.GetIntData(g.UserDataKey.AllianceTalentTech);
                        break;
                    case g.HeroElementType.Break:
                        t = f.DataCenter.Instance.GetIntData(g.UserDataKey.AllianceTalentBreak);
                        break;
                    case g.HeroElementType.Fight:
                        t = f.DataCenter.Instance.GetIntData(g.UserDataKey.AllianceTalentFight)
                }
                return Math.floor(t / 6)
            }, e.prototype.GetStarHolyStateLevel = function() {
                return f.DataCenter.Instance.GetIntData(g.UserDataKey.StarHolyStatueLevel)
            }, e.prototype.GetStarPowerLevel = function(e) {
                var t = f.DataCenter.Instance.GetArrayData(g.UserDataKey.StarPowerLevel);
                return null == t[e - 1] ? 0 : t[e - 1]
            }, e.prototype.ToAllianceTalent = function() {
                var e = t.Instance.IsGameModuleUnlock(g.GameModuleType.Alliance);
                if (e[0]) f.DataCenter.Instance.AllianceId <= 0 ? _.UIManager.Instance.ShowUIPanel(C.PanelConfig.AllianceListPanel.Path, !1) : _.UIManager.Instance.ShowUIPanel(C.PanelConfig.AllianceTalentPanel.Path);
                else {
                    var n = e[1];
                    m.UIUtlity.ShowFloatingHint(n)
                }
            }, e.prototype.ToStarHolyStatue = function() {
                var e = t.Instance.IsGameModuleUnlock(g.GameModuleType.StarTemple);
                if (e[0]) _.UIManager.Instance.ShowUIPanel(C.PanelConfig.StarTemplePanel.Path);
                else {
                    var n = e[1];
                    m.UIUtlity.ShowFloatingHint(n)
                }
            }, e.prototype.ToStarPower = function(e) {
                var n = t.Instance.IsGameModuleUnlock(g.GameModuleType.ElementTower);
                if (n[0]) _.UIManager.Instance.ShowUIPanel(C.PanelConfig.StarTemplePanel.Path, v.TempleMode.Power, e);
                else {
                    var o = n[1];
                    m.UIUtlity.ShowFloatingHint(o)
                }
            }, e.prototype.HeroCanNotOffFormations = function(e) {
                for (var t = [], n = f.DataCenter.Instance.GetHeroFormations(e), o = 0; o < n.length; o++) {
                    var r = n[o];
                    if (0 == f.ConfigDataComponent.Instance.GetConfigById(h.FormationInstance_Config, r).CanBeEmpty) {
                        for (var i = 0, a = f.DataCenter.Instance.GetDataById(y.UserFormation_Model, r), s = 0; s < a.HeroIds.length; s++) 0 != a.HeroIds[s] && i++;
                        i <= 1 && t.push(r)
                    }
                }
                return t
            }, e.prototype.GetElementNatureEnemy = function(e) {
                var t;
                switch (e) {
                    case g.HeroElementType.Heart:
                        t = g.HeroElementType.Tech;
                        break;
                    case g.HeroElementType.Power:
                        t = g.HeroElementType.Heart;
                        break;
                    case g.HeroElementType.Tech:
                        t = g.HeroElementType.Power;
                        break;
                    case g.HeroElementType.Break:
                        t = g.HeroElementType.Fight;
                        break;
                    case g.HeroElementType.Fight:
                        t = g.HeroElementType.Break
                }
                return t
            }, e.prototype.GetAttrByStarAndLevel = function(e, t, n, o) {
                var r = this,
                    i = {},
                    a = [];
                if (o == N.StarTemplePieceType.Exclusive) {
                    var s = f.ConfigDataComponent.Instance.GetConfigById(h.ExclusiveWeaponStar_Config, t),
                        l = f.ConfigDataComponent.Instance.GetConfigById(h.ExclusiveWeaponLevel_Config, n);
                    s.Attrs.forEach(function(e) {
                        r.AddAttr(i, e.Items[0], e.Items[1])
                    }), l.Attrs.forEach(function(e) {
                        r.AddAttr(i, e.Items[0], e.Items[1])
                    })
                } else if (o == N.StarTemplePieceType.SuperWeapon) s = f.ConfigDataComponent.Instance.GetConfigById(h.SuperWeaponStar_Config, t), l = f.ConfigDataComponent.Instance.GetConfigById(h.SuperWeaponLevel_Config, n), s.Attrs.forEach(function(e) {
                    r.AddAttr(i, e.Items[0], e.Items[1])
                }), l.Attrs.forEach(function(e) {
                    r.AddAttr(i, e.Items[0], e.Items[1])
                });
                else {
                    for (var c = f.ConfigDataComponent.Instance.GetConfigById(h.StarPiece_Config, e), u = c.StarAttrs[t - 1], p = 0; p + 1 < u.Items.length; p += 2) {
                        var d = u.Items[p],
                            y = u.Items[p + 1];
                        this.AddAttr(i, d, y)
                    }
                    for (var g = n, m = 0, _ = !0, C = 0, v = c.AddedAttrs; C < v.length; C++) {
                        var b = v[C];
                        if (I.EZLog.Log("\u5224\u65ad\u7b49\u7ea7\uff1a" + g + ", " + b.Items[0]), !(g > b.Items[0])) {
                            for (p = 1; p + 1 < b.Items.length; p += 2) d = b.Items[p], y = b.Items[p + 1] * (g - m), this.AddAttr(i, d, y), I.EZLog.Log("\u5c0f\u4e8e\u5c5e\u6027\uff1a" + d + ", " + y);
                            _ = !1;
                            break
                        }
                        for (p = 1; p + 1 < b.Items.length; p += 2) {
                            d = b.Items[p], y = b.Items[p + 1] * (b.Items[0] - m);
                            this.AddAttr(i, d, y), I.EZLog.Log("\u5927\u4e8e\u5c5e\u6027\uff1a" + d + ", " + y)
                        }
                        m = b.Items[0]
                    }
                    if (_)
                        for (b = c.AddedAttrs[c.AddedAttrs.length - 1], p = 1; p + 1 < b.Items.length; p += 2) d = b.Items[p], y = b.Items[p + 1] * (g - b.Items[0]), this.AddAttr(i, d, y)
                }
                for (var d in i) I.EZLog.Log(Number.parseInt(d) + "," + i[d]), a.push([Number.parseInt(d), i[d]]);
                return a
            }, e.prototype.AddAttr = function(e, t, n) {
                e && 0 != n && (e[t] || (e[t] = 0), e[t] += n)
            }, e.Get5ClockTs = function(e) {
                return void 0 === e && (e = 0), e <= 0 && (e = b.TimeUtil.Now()), b.TimeUtil.StrToTime(b.TimeUtil.Format("YYYY-MM-DD", e) + " 05:00:00")
            }, e.Get23ClockTs = function(e) {
                return void 0 === e && (e = 0), e <= 0 && (e = b.TimeUtil.Now()), b.TimeUtil.StrToTime(b.TimeUtil.Format("YYYY-MM-DD", e) + " 23:00:00")
            }, e.GetActivityByGetWay = function(e) {
                if (!t._activityGetWayData)
                    for (var n in t._activityGetWayData = {}, A.DataCenter.Instance.ActivityConfigs) {
                        var o = A.DataCenter.Instance.ActivityConfigs[n].Common.GetWayId;
                        o > 0 && (t._activityGetWayData[o] = Number(n))
                    }
                return t._activityGetWayData[e]
            }, e.prototype.CheckItemGetWayCanShow = function(e) {
                var n = !0,
                    o = "";
                if (e.GameModuleId) {
                    var r = t.Instance.IsGameModuleUnlock(e.GameModuleId);
                    r[0] || (n = !1, o = r[1]), t.Instance.IsGameModuleOpen(e.GameModuleId) || (n = !1, o = "module_not_open".ToUILocale())
                }
                return e.WeekLimit.length > 0 && (t.Instance.IsInWeekLimit(e.WeekLimit) || (n = !1, o = "week_limit".ToUILocale())), [n, o]
            }, e.ShowPanelByGetWayId = function(e, n, o, r, i) {
                var s;
                void 0 === n && (n = !0), void 0 === o && (o = !0), n = !1, e ? s = f.ConfigDataComponent.Instance.GetConfigById(h.ItemGetWay_Config, e) : r && (s = r);
                var l = t.Instance.CheckItemGetWayCanShow(s);
                if (l[0]) {
                    switch (s.PanelInfo[0]) {
                        case C.PanelConfig.IdleBattleMainPanel.Id:
                            S.Game.EventDispatcher.Emit(w.EventKeys.EVENT_HIDE_MAINUIPANEL, P.DockTab.Battle);
                            break;
                        case C.PanelConfig.WildoutPanel.Id:
                            S.Game.EventDispatcher.Emit(w.EventKeys.EVENT_HIDE_MAINUIPANEL, P.DockTab.World);
                            break;
                        case C.PanelConfig.HeroListPanel.Id:
                            S.Game.EventDispatcher.Emit(w.EventKeys.EVENT_HIDE_MAINUIPANEL, P.DockTab.Hero);
                            break;
                        case C.PanelConfig.MallDailyChoosePanel.Id:
                        case C.PanelConfig.LuckyWheelPanel.Id:
                            o = !1;
                            break;
                        case C.PanelConfig.HeroInfoPanel.Id:
                            if (-1 == s.PanelInfo[1]) {
                                for (var c = A.DataCenter.Instance.GetDataList(y.UserHero_Model), u = c[0].Sid, p = c[0].Power, I = 1; I < c.length; I++) c[I].Power > p && (p = c[I].Power, u = c[I].Sid);
                                s.PanelInfo[1] = u
                            }
                            break;
                        case C.PanelConfig.ActivityFirstPayPanel.Id:
                            var v = s.PanelInfo[1],
                                b = t.Instance.GetActivityIdByActivityTypeAndJumpIndex(g.ActivityType.FirstPay, v);
                            if (!A.DataCenter.Instance.ActivityConfigs[b]) return;
                            break;
                        case C.PanelConfig.MallSuperFundPanel.Id:
                            return void t.DisplayMallSuperFundPanel(s);
                        case C.PanelConfig.CampSupportPanel.Id:
                            return void t.Instance.ShowCampSupportPanel(s);
                        case C.PanelConfig.StrongholdWarMainPanel.Id:
                            return n && _.UIManager.Instance.HideAllPanels(o), void t.Instance.ShowStrongholdWarMainPanel();
                        case C.PanelConfig.GiftPackListPanel.Id:
                            if (1 == s.JumpPanelType) {
                                var T = {
                                    IsActivity: !1
                                };
                                T.Id = s.PanelInfo[1], _.UIManager.Instance.ShowUIPanel(C.PanelConfig.GiftPackListPanel.Path, T)
                            } else _.UIManager.Instance.ShowUIPanel(C.PanelConfig.GiftPackListPanel.Path, null, s.PanelInfo[1]);
                            return;
                        case C.PanelConfig.WarTokenListPanel.Id:
                            if (1 == s.JumpPanelType) _.UIManager.Instance.ShowUIPanel(C.PanelConfig.WarTokenListPanel.Path, !1, s.PanelInfo[1]);
                            else {
                                var R = t.GetActivityByGetWay(s.PanelInfo[1]);
                                R > 0 && _.UIManager.Instance.ShowUIPanel(C.PanelConfig.WarTokenListPanel.Path, !0, R)
                            }
                            return;
                        case C.PanelConfig.ItemSelectUsePanel.Id:
                            var L = _.UIManager.Instance.GetUIPanel(C.PanelConfig.ItemGetWayPanel.Path);
                            L && L.Close();
                            var k = s.ItemSource;
                            return void S.UIManager.Instance.ShowUIPanel(C.PanelConfig.ItemSelectUsePanel.Path, k);
                        case C.PanelConfig.HolyAreaMainPanel.Id:
                            return void Y.default.ShowHolyAreaPanel();
                        case C.PanelConfig.AllianceBossPanel.Id:
                            var O = t.Instance.IsGameModuleUnlock(d.GameModuleType.AllianceBOSSBattle);
                            if (!O[0]) return m.UIUtlity.ShowFloatingHint(O[1]);
                            var M = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceBossLevel");
                            if (!f.DataCenter.Instance.AllianceId || 1 != f.DataCenter.Instance.GetSpecialRedDot(d.SpecialRedDotType.AllianceBOSSLevel)) return m.UIUtlity.ShowFloatingHint("allianceBoss_levelLimit".ToUILocale().Fmt(M));
                            var D = new y.Req_Alliance_GetMemeberList;
                            return void f.RpcComponent.Instance.Call(D, function(e) {
                                var t, n = [];
                                e.MemberList.forEach(function(e) {
                                    e.AlliancePost == d.AlliancePostType.Leader ? t = e.Uid : e.AlliancePost == d.AlliancePostType.ViceLeader && n.push(e.Uid)
                                }), S.UIManager.Instance.ShowUIPanel(C.PanelConfig.AllianceBossPanel.Path, t, n)
                            })
                    }
                    var B = Z.ActivityData.GetActivityTypeByPanelId(s.PanelInfo[0]);
                    if (B && 0 == s.JumpPanelType) {
                        var N = void 0;
                        switch (B) {
                            case d.ActivityType.ChaosSummon:
                                return N = t.Instance.GetActivityIdByActivityTypeAndJumpIndex(B, s.PanelInfo[3]), void m.UIUtlity.ShowPanelById(C.PanelConfig.ChaosSummonPanel.Id, s.PanelInfo[1], N);
                            default:
                                N = t.Instance.GetActivityIdByActivityTypeAndJumpIndex(B, s.PanelInfo[1])
                        }
                        Q.default.OpenActivityPanel(N)
                    } else {
                        switch (s.PanelGroup) {
                            case 1:
                                if (f.DataCenter.Instance.AllianceId <= 0) return n && _.UIManager.Instance.HideAllPanels(o), void _.UIManager.Instance.ShowUIPanel(C.PanelConfig.AllianceListPanel.Path, !1);
                                break;
                            case 2:
                                return n && _.UIManager.Instance.HideAllPanels(!1), void t.Instance.ShowSecretExplorePanel();
                            case 3:
                                return D = y.Req_Map_EnterScoreMatch.create(), void f.RpcComponent.Instance.Call(D, function(e) {
                                    _.UIManager.Instance.ShowUIPanel(C.PanelConfig.RankMatchArenaPanel.Path, e)
                                });
                            case 4:
                                var E = new y.Req_CrossZone_GetMyChampionHistoryRank;
                                return void f.RpcComponent.Instance.Call(E, function(e) {
                                    _.UIManager.Instance.ShowUIPanel(C.PanelConfig.CrossServerChampionShipPanel.Path, q.ChampionShipType.Normal, e.Status)
                                })
                        }
                        for (var U = s.PanelInfo[0], G = [], x = 1; x < s.PanelInfo.length; x++) G.push(s.PanelInfo[x]);
                        switch (n && _.UIManager.Instance.HideAllPanels(o), U) {
                            case C.PanelConfig.HeroInfoPanel.Id:
                                var H = f.DataCenter.Instance.GetDataList(y.UserHero_Model);
                                t.Instance.SortHeroByRule1(H);
                                var F = [];
                                H.forEach(function(e) {
                                    F.push(e.Sid)
                                }), G[1] = F;
                                break;
                            case C.PanelConfig.ItemInfoPanel.Id:
                                i && (G = [s.PanelInfo[1], void 0, void 0, void 0, i]);
                                break;
                            case C.PanelConfig.CrossServerAllianceWarPanel.Id:
                                return void $.default.ShowAllianceWarPanel()
                        }
                        m.UIUtlity.ShowPanelById.apply(m.UIUtlity, a([U], G))
                    }
                } else m.UIUtlity.ShowFloatingHint(l[1])
            }, e.DisplayMallSuperFundPanel = function(e) {
                return r(this, void 0, void 0, function() {
                    var t, n, o, r;
                    return i(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return t = e.PanelInfo[0], n = e.PanelInfo[1], o = m.UIUtlity.PanelMap[t], r = m.UIUtlity.PanelMap[n], [4, S.UIManager.Instance.ShowUIPanel(o.Path)];
                            case 1:
                                return i.sent(), [4, S.UIManager.Instance.ShowUIPanel(r.Path)];
                            case 2:
                                return i.sent(), [2]
                        }
                    })
                })
            }, e.prototype.ShowCampSupportPanel = function(e) {
                var n = t.GetActivityIdByType(g.ActivityType.SupportHero),
                    o = new y.Req_Activity_RefreshSupportInfo;
                o.ActivityId = n, f.RpcComponent.Instance.Call(o, function(t) {
                    m.UIUtlity.ShowPanelById(e.PanelInfo[0], n, t)
                })
            }, e.prototype.ShowStrongholdWarMainPanel = function() {
                if (-1 == f.DataCenter.Instance.GetArrayData(g.UserDataKey.CityWarGuide).indexOf(g.StrongholdWarGuideArray.Entry)) {
                    var e = new y.Req_AllianceCityWar_UpdateGuide;
                    e.Id = g.StrongholdWarGuideArray.Entry, A.RpcComponent.Instance.Call(e, function() {})
                }
                var t = new y.Req_War_Action;
                t.Type = d.WarActionType.Enter, A.RpcComponent.Instance.Call(t, function(e) {
                    S.UIManager.Instance.ShowUIPanel(C.PanelConfig.StrongholdWarMainPanel.Path, e)
                })
            }, e.prototype.ShowActivityPanel = function(e, t) {
                m.UIUtlity.ShowPanelById(e, this.GetActivityIdByActivityTypeAndJumpIndex(this.GetActivityTypeByPanelId(e), t))
            }, e.prototype.GetActivityTypeByPanelId = function(e) {
                return null == this._panelIdToActivityType && (this._panelIdToActivityType = new Map, this._panelIdToActivityType.set(C.PanelConfig.CarnivalPanel.Id, d.ActivityType.Carnival), this._panelIdToActivityType.set(C.PanelConfig.FatePrayPanel.Id, d.ActivityType.FatePray), this._panelIdToActivityType.set(C.PanelConfig.LimitTimePurchasePanel.Id, d.ActivityType.GiftPack), this._panelIdToActivityType.set(C.PanelConfig.HeroTestPanel.Id, d.ActivityType.HeroTest), this._panelIdToActivityType.set(C.PanelConfig.LimitTimeTaskPanel.Id, d.ActivityType.LimitTimeTask), this._panelIdToActivityType.set(C.PanelConfig.WishCallPanel.Id, d.ActivityType.WishSummon), this._panelIdToActivityType.set(C.PanelConfig.WeekCardPanel.Id, d.ActivityType.WeekCard), this._panelIdToActivityType.set(C.PanelConfig.SevenDaysActiveWarTokenPanel.Id, d.ActivityType.ActiveWarToken), this._panelIdToActivityType.set(C.PanelConfig.UpgradeStarPanel.Id, d.ActivityType.UpgradeStar), this._panelIdToActivityType.set(C.PanelConfig.HappyTurnPanel.Id, d.ActivityType.HappyTurn), this._panelIdToActivityType.set(C.PanelConfig.MazeExplorePanel.Id, d.ActivityType.MazeExplore), this._panelIdToActivityType.set(C.PanelConfig.OptionalUpgradeStarPanel.Id, d.ActivityType.OptionalUpgradeStar), this._panelIdToActivityType.set(C.PanelConfig.ActivityFeedBackDrawPanel.Id, d.ActivityType.RebateSummon), this._panelIdToActivityType.set(C.PanelConfig.ActivitySinglePageGiftPanel.Id, d.ActivityType.SinglePagePack), this._panelIdToActivityType.set(C.PanelConfig.ActivityExchangeShopPanel.Id, d.ActivityType.ExchangeShop), this._panelIdToActivityType.set(C.PanelConfig.ActivityGiftDrawPanel.Id, d.ActivityType.GiftPackSummon), this._panelIdToActivityType.set(C.PanelConfig.SecretJourneyEntrance.Id, d.ActivityType.SecretArea), this._panelIdToActivityType.set(C.PanelConfig.DailyCheckInActivityPanel.Id, d.ActivityType.DailySignin), this._panelIdToActivityType.set(C.PanelConfig.ActivityContinuousPurchasePanel.Id, d.ActivityType.ContinuousPack), this._panelIdToActivityType.set(C.PanelConfig.RuinsWarEntrancePanel.Id, d.ActivityType.RuinsWar), this._panelIdToActivityType.set(C.PanelConfig.SeasonSecretJourneyPanel.Id, d.ActivityType.SeasonExpedition)), this._panelIdToActivityType.get(e)
            }, e.prototype.GetActivityIdByActivityTypeAndJumpIndex = function(e, t) {
                if (null == this._activityTypeToJumpIndexToActivityId) {
                    var n = void 0;
                    for (var o in this._activityTypeToJumpIndexToActivityId = new Map, f.DataCenter.Instance.ActivityConfigs) {
                        var r = f.DataCenter.Instance.ActivityConfigs[o];
                        null != r.Common.GetWayId && r.Common.GetWayId > 0 && (null == (n = this._activityTypeToJumpIndexToActivityId.get(r.Common.Type)) && (n = new Map, this._activityTypeToJumpIndexToActivityId.set(r.Common.Type, n)), n.set(r.Common.GetWayId, r._id))
                    }
                }
                if (e == d.ActivityType.WishSummon) {
                    var i = [d.ActivityType.WishSummon, d.ActivityType.NewHeroSummon, d.ActivityType.DiamondSummon];
                    e = null;
                    for (var a = function(n) {
                            var o = s._activityTypeToJumpIndexToActivityId.get(i[n]);
                            return null == o ? "continue" : (o.forEach(function(o, r) {
                                t != r || (e = i[n])
                            }), null != e ? "break" : void 0)
                        }, s = this, l = 0; l < i.length && "break" !== a(l); l++);
                }
                if (null != this._activityTypeToJumpIndexToActivityId) {
                    var c = this._activityTypeToJumpIndexToActivityId.get(e);
                    if (null != c) {
                        var u = c.get(t);
                        if (null != u) {
                            var p = null;
                            for (var o in f.DataCenter.Instance.ActivityConfigs) f.DataCenter.Instance.ActivityConfigs[o]._id == u && (p = u);
                            return p
                        }
                    }
                }
                return null
            }, e.prototype.IsJumpIdExist = function(e, t) {
                void 0 === t && (t = !1);
                var n = null != e && e > 0;
                if (n)
                    if (t) n = !0;
                    else {
                        n = !1;
                        var o = A.ConfigDataComponent.Instance.GetConfigById(h.ItemGetWay_Config, e);
                        if (null != o && null != o.PanelInfo && null != o.PanelInfo[0]) {
                            var r = this.GetActivityTypeByPanelId(o.PanelInfo[0]);
                            null != r && null != o.PanelInfo[1] && (n = null != this.GetActivityIdByActivityTypeAndJumpIndex(r, o.PanelInfo[1]))
                        }
                    } return n
            }, e.prototype.ShowSecretExplorePanel = function() {
                var e = f.DataCenter.Instance.GetDataById(y.SecretAreaExplore_Model, 1),
                    t = f.ConfigDataComponent.Instance.GetConfigById(h.SecretAreaMap_Config, e.Index);
                if (null != t) {
                    var n = new y.Req_Secret_GetMap;
                    f.RpcComponent.Instance.Call(n, function(e) {
                        S.UIManager.Instance.ShowUIPanel(C.PanelConfig.CloudsTurnPanel.Path, function() {
                            S.UIManager.Instance.ShowUIPanel(C.PanelConfig.SecretAreaExplorePanel.Path, e, t.Type == d.SecretAreaMapType.Reward)
                        })
                    })
                } else m.UIUtlity.ShowFloatingHint("secretArea_moduleClose".ToUILocale())
            }, e.prototype.ShowClimbTowerPanel = function() {
                this.IsGameModuleUnlock(d.GameModuleType.ElementTower)[0] || L.BattleManager.Instance.IsInBattle(d.MapType.TestTower) ? _.UIManager.Instance.ShowUIPanel(C.PanelConfig.ClimbTowerEntrancePanel.Path) : this.IsGameModuleUnlock(d.GameModuleType.TestTower)[0] && _.UIManager.Instance.ShowUIPanel(C.PanelConfig.ClimbTowerPanel.Path)
            }, e.ShowAlliancePanel = function() {
                f.DataCenter.Instance.AllianceId <= 0 ? _.UIManager.Instance.ShowUIPanel(C.PanelConfig.AllianceListPanel.Path, !1) : _.UIManager.Instance.ShowUIPanel(C.PanelConfig.AllianceBaseMainPanel.Path)
            }, e.ShowAlliancePanelByGuide = function() {
                return r(this, void 0, void 0, function() {
                    return i(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return f.DataCenter.Instance.AllianceId <= 0 ? [4, _.UIManager.Instance.ShowUIPanel(C.PanelConfig.AllianceListPanel.Path, !1)] : [3, 2];
                            case 1:
                                return e.sent(), [3, 4];
                            case 2:
                                return [4, _.UIManager.Instance.ShowUIPanel(C.PanelConfig.AllianceBaseMainPanel.Path)];
                            case 3:
                                e.sent(), e.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, e.ActivityTimeLeftFormat = function(e) {
                var t = e,
                    n = 0,
                    o = 0,
                    r = 0,
                    i = 0;
                return t > g.Etc.DayDuration ? (n = Math.floor(t / g.Etc.DayDuration), o = Math.floor(t % g.Etc.DayDuration / g.Etc.HourDuration), "activityTimeLeft_moreThanOneDay".ToUILocale().Fmt(n, o)) : (o = Math.floor(t / g.Etc.HourDuration), r = Math.floor(t % g.Etc.HourDuration / g.Etc.MinuteDuration), i = Math.floor(t % g.Etc.MinuteDuration / 1e3), "activityTimeLeft_lessThanOneDay".ToUILocale().Fmt(o, r < 10 ? "0" + r : r, i < 10 ? "0" + i : i))
            }, e.TimeFormat = function(e) {
                var t = e,
                    n = 0,
                    o = 0;
                return t > g.Etc.DayDuration ? (n = Math.floor(t / g.Etc.DayDuration), o = Math.floor(t % g.Etc.DayDuration / g.Etc.HourDuration), "activityTimeLeft_moreThanOneDay".ToUILocale().Fmt(n, o)) : (o = Math.floor(t / g.Etc.HourDuration), "activityTimeLeft_moreThanOneDay".ToUILocale().Fmt(0, o))
            }, e.GetStarPieceModuleBonus = function() {
                for (var e = {}, n = 0, o = f.ConfigCacheComponent.Instance.GetStarPieceConfig(); n < o.length; n++) {
                    var r = o[n],
                        i = f.DataCenter.Instance.GetDataById(y.StarPiece_Model, r.Id);
                    if (null != i) {
                        if (2 == r.Exclusive[0].Items[0]) {
                            var a = r.Exclusive[0].Items[2],
                                s = r.Exclusive[i.Star];
                            if (null == s) continue;
                            t.AddBonusToObject(e, a, s.Items)
                        }
                        if (i.IsAwakening)
                            for (var l = 0, c = r.Awakening; l < c.length; l++) {
                                var u = c[l];
                                if (2 == u.Items[0]) {
                                    a = u.Items[2];
                                    for (var p = [], d = 3; d < u.Items.length; d++) p.push(u.Items[d]);
                                    t.AddBonusToObject(e, a, p)
                                }
                            }
                    }
                }
                return e
            }, e.AddBonusToObject = function(e, t, n) {
                t < d.ModuleBonusType.UnlockKeyStart ? null != n && 0 != n.length && 0 != n[0] && (null == e[t] && (e[t] = 0), e[t] += n[0]) : t < d.ModuleBonusType.CanNotStackKeyStart || null != n && (null == e[t] && (e[t] = []), e[t].push(n))
            }, e.GetAllModuleBonus = function() {
                var e = f.RpcComponent.Instance.ServerTime,
                    n = this.GetStarPieceModuleBonus(),
                    o = f.DataCenter.Instance.GetIntData(d.UserDataKey.VipLevel),
                    r = f.ConfigDataComponent.Instance.GetConfigById(h.VipLevel_Config, o);
                if (null != r)
                    for (var i = 0, a = r.Privilege; i < a.length; i++) {
                        for (var s = (v = a[i]).Items[0], l = [], c = 1; c < v.Items.length; c++) l.push(v.Items[c]);
                        t.AddBonusToObject(n, s, l)
                    }
                for (var u = 0, p = f.DataCenter.Instance.GetDataList(y.SubscribePrivilege_Model); u < p.length; u++) {
                    var g = p[u];
                    if ((b = f.ConfigDataComponent.Instance.GetConfigById(h.SubscribePrivilege_Config, g.Sid)) && (-1 == g.CanDay || Math.ceil((e - g.Time) / d.Etc.DayDuration) <= g.CanDay))
                        for (var m = 0, I = b.Privilege; m < I.length; m++) {
                            s = (c = I[m]).Items[0], l = [];
                            for (var _ = 1; _ < c.Items.length; _++) l.push(c.Items[_]);
                            t.AddBonusToObject(n, s, l)
                        }
                }
                var C = f.ConfigDataComponent.Instance.GetConfig(h.ItemPrivilegeToken_Config);
                for (var v in C) {
                    var b = C[v],
                        S = f.DataCenter.Instance.GetItemCount(b.Id);
                    if (S)
                        for (var w = 0, P = b.Privilege; w < P.length; w++) {
                            var A = P[w];
                            s = A.Items[0], (l = A.Items.slice(1))[0] && (l[0] *= S), t.AddBonusToObject(n, s, l)
                        }
                }
                return n
            }, e.GetModuleBonus = function(e) {
                var n = A.RpcComponent.Instance.ServerTime,
                    o = t.GetStarPieceModuleBonus(e),
                    r = f.DataCenter.Instance.GetIntData(d.UserDataKey.VipLevel);
                if (0 != r)
                    for (var i = 0, a = f.ConfigDataComponent.Instance.GetConfigById(h.VipLevel_Config, r).Privilege; i < a.length; i++) {
                        var s = (k = a[i]).Items[0];
                        if (null == e || s == e) {
                            for (var l = [], c = 1; c < k.Items.length; c++) l.push(k.Items[c]);
                            t.AddBonusToObject(o, s, l)
                        }
                    }
                for (var u = 0, p = f.DataCenter.Instance.GetDataList(y.SubscribePrivilege_Model); u < p.length; u++) {
                    var m = p[u];
                    if ((O = f.ConfigDataComponent.Instance.GetConfigById(h.SubscribePrivilege_Config, m.Sid)) && (-1 == m.CanDay || Math.ceil((n - m.Time) / d.Etc.DayDuration) <= m.CanDay))
                        for (var I = 0, _ = O.Privilege; I < _.length; I++)
                            if (s = (c = _[I]).Items[0], null == e || s == e) {
                                l = [];
                                for (var C = 1; C < c.Items.length; C++) l.push(c.Items[C]);
                                t.AddBonusToObject(o, s, l)
                            }
                }
                for (var v = 0, b = f.DataCenter.Instance.GetArrayData(d.UserDataKey.DailyBuff); v < b.length; v++)
                    if (!((k = b[v]) <= 0) && (O = f.ConfigDataComponent.Instance.GetConfigById(h.DailyBuff_Config, k)) && O.Type == d.DailyBuffType.ModuleBonus)
                        for (var S = 0, w = O.Params; S < w.length; S++) {
                            var P = (c = w[S]).Items,
                                T = P[0],
                                R = P.slice(1);
                            t.AddBonusToObject(o, T, R)
                        }
                var L = f.ConfigDataComponent.Instance.GetConfig(h.ItemPrivilegeToken_Config);
                for (var k in L) {
                    var O = L[k],
                        M = f.DataCenter.Instance.GetItemCount(O.Id);
                    if (M)
                        for (var D = 0, B = O.Privilege; D < B.length; D++) {
                            var N = B[D];
                            s = N.Items[0], null != e && s != e || ((l = N.Items.slice(1))[0] && (l[0] *= M), t.AddBonusToObject(o, s, l))
                        }
                }
                if (t.Instance.IsGameModuleOpen(g.GameModuleType.AllianceBadge) && t.Instance.IsGameModuleUnlock(g.GameModuleType.AllianceBadge)[0]) {
                    var E = f.DataCenter.Instance.GetDataList(y.AllianceBadge_Model);
                    if (E && E.length > 0)
                        for (var U = 0, G = E; U < G.length; U++)
                            if (m = G[U], (O = f.ConfigDataComponent.Instance.GetConfigById(h.AllianceBadge_Config, m.Sid)) && O.Privilege[m.Level - 1]) {
                                var x = O.Privilege[m.Level - 1];
                                if (s = x.Items[0], null != e && s != e) continue;
                                for (l = [], C = 1; C < x.Items.length; C++) l.push(x.Items[C]);
                                t.AddBonusToObject(o, s, l)
                            }
                }
                return o
            }, e.GetModuleBonusByType = function(e) {
                return t.GetModuleBonus(e)[e] ? t.GetModuleBonus(e)[e] : 0
            }, e.prototype.GetCurrentChapter = function() {
                var e = A.ConfigCacheComponent.Instance.IsFinalMap(f.DataCenter.Instance.GetIntData(d.UserDataKey.MainLineProgress)),
                    t = f.ConfigCacheComponent.Instance.GetChapterIdByMapId(e),
                    n = f.ConfigCacheComponent.Instance.GetAreaIdByChapterId(t);
                return [f.ConfigDataComponent.Instance.GetLocale("MapWorld_name_" + n), t, f.ConfigCacheComponent.Instance.GetLevelIndexByMapId(e)]
            }, e.prototype.IsInWeekLimit = function(e) {
                if (e.length <= 0) return !0;
                var t = f.RpcComponent.Instance.ServerTime,
                    n = T.TimeUtil.GetWeekDay(t);
                return !!e.includes(n)
            }, e.prototype.GetHeroFavorAttrByHeroId = function(e) {
                var t, n = f.DataCenter.Instance.GetDataById(y.HeroInfo_Model, e),
                    o = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e),
                    r = (f.ConfigDataComponent.Instance.GetArrayConfig(h.FavorLevel_Config), new Map),
                    i = new Map,
                    a = new Map,
                    s = 0;
                5 == o.StarLevel && (s = 1e4);
                for (var c = 0, u = 1; u <= n.FavorLevel; u++) {
                    t = f.ConfigDataComponent.Instance.GetConfigById(h.FavorLevel_Config, s + u);
                    for (var p = 0; p < t.NodeAttr.length; p++) switch (c = t.NodeAttr[p][1], t.NodeAttr[p][0]) {
                        case l.ForAll:
                            r.has(c) ? r.set(c, t.NodeAttr[p][2] + r.get(c)) : r.set(c, t.NodeAttr[p][2]);
                            break;
                        case l.ForElement:
                            i.has(c) ? i.set(c, t.NodeAttr[p][2] + i.get(c)) : i.set(c, t.NodeAttr[p][2]);
                            break;
                        case l.ForSelf:
                            a.has(c) ? a.set(c, t.NodeAttr[p][2] + a.get(c)) : a.set(c, t.NodeAttr[p][2])
                    }
                }
            }, e.prototype.GetHeroFavorConfigIdByHeroId = function(e) {
                var t = f.DataCenter.Instance.GetDataById(y.HeroInfo_Model, e).FavorLevel,
                    n = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e);
                return 4 == n.StarLevel ? t : 5 == n.StarLevel ? k.default.FavorLevelIdPrefix + t : -1
            }, e.prototype.GetHeroFavorConfigNextIdByHeroId = function(e) {
                var t = this.GetHeroFavorConfigIdByHeroId(e);
                return null != f.ConfigDataComponent.Instance.GetConfigById(h.FavorLevel_Config, t + 1) ? t + 1 : -1
            }, e.prototype.GetFavorNodeAttrStringByConfigId = function(e) {
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.FavorLevel_Config, e).NodeAttr[0].Items,
                    o = n[0],
                    r = n[1],
                    i = n[2],
                    a = f.ConfigDataComponent.Instance.GetConfigById(h.HeroAttribute_Config, r);
                return [this._attrScopeKeys[o - 1].ToUILocale().Fmt(a.Name.ToUILocale()), t.GetHeroAttributeValue(i, r, a, !0)]
            }, e.prototype.GetFavorRoadLevel = function() {
                for (var e = f.DataCenter.Instance.GetDataList(y.HeroInfo_Model), t = 0, n = 0; n < e.length; n++) null != e[n] && null != e[n] && (t += e[n].FavorLevel);
                return t
            }, e.prototype.GetArrayRankedFromMap = function(e) {
                var t = new Array;
                return e.size <= 0 ? null : (e.forEach(function(e, n) {
                    t.push([n, e])
                }), t.sort(function(e, t) {
                    return e[0] < t[0] ? 1 : -1
                }))
            }, e.prototype.ShowWinPanelWrapper = function(e, t, n) {
                f.DataCenter.Instance.IsInBattle ? f.DataCenter.Instance.SettlementWaitingMap.set(t, {
                    basePath: C.PanelConfig.SettlementWinPanel.Path,
                    prefabPath: e,
                    mapId: t,
                    paramsArray: n
                }) : f.DataCenter.Instance.SettlementWaitingMap.size > 0 ? (f.DataCenter.Instance.SettlementWaitingMap.forEach(function(e, t) {
                    _.UIManager.Instance.ShowUIPanelByQueue(e.basePath, e.prefabPath, e.mapId, e.paramsArray), f.DataCenter.Instance.SettlementWaitingMap.delete(t)
                }), _.UIManager.Instance.ShowUIPanelByQueue(C.PanelConfig.SettlementWinPanel.Path, e, t, n)) : _.UIManager.Instance.ShowUIPanelByQueue(C.PanelConfig.SettlementWinPanel.Path, e, t, n)
            }, e.prototype.ShowFailPanelWrapper = function(e, t, n) {
                f.DataCenter.Instance.IsInBattle ? f.DataCenter.Instance.SettlementWaitingMap.set(t, {
                    basePath: C.PanelConfig.SettlementFailPanel.Path,
                    prefabPath: e,
                    mapId: t,
                    paramsArray: n
                }) : f.DataCenter.Instance.SettlementWaitingMap.size > 0 ? (f.DataCenter.Instance.SettlementWaitingMap.forEach(function(e, t) {
                    _.UIManager.Instance.ShowUIPanelByQueue(e.basePath, e.prefabPath, e.mapId, e.paramsArray), f.DataCenter.Instance.SettlementWaitingMap.delete(t)
                }), _.UIManager.Instance.ShowUIPanelByQueue(C.PanelConfig.SettlementFailPanel.Path, e, t, n)) : _.UIManager.Instance.ShowUIPanelByQueue(C.PanelConfig.SettlementFailPanel.Path, e, t, n)
            }, e.prototype.CheckBattleResultPanel = function() {
                f.DataCenter.Instance.SettlementWaitingMap.size > 0 && f.DataCenter.Instance.SettlementWaitingMap.forEach(function(e, t) {
                    _.UIManager.Instance.ShowUIPanelByQueue(e.basePath, e.prefabPath, e.mapId, e.paramsArray), f.DataCenter.Instance.SettlementWaitingMap.delete(t)
                })
            }, e.LoadActivityEffect = function(e) {
                return r(this, void 0, Promise, function() {
                    var t, n, o;
                    return i(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return t = e.split("|"), n = t[0], o = t[1], [4, S.AssetsManager.Instance.LoadAsset("ActivitySpine/" + n, sp.SkeletonData)];
                            case 1:
                                return [2, {
                                    effect: r.sent(),
                                    effectName: o
                                }]
                        }
                    })
                })
            }, e.LoadActivityTexture = function(e) {
                return r(this, void 0, void 0, function() {
                    var t, n, o, r;
                    return i(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return t = null, this.USE_PROJECT_ASSETS ? e.split("/").length > 1 ? (r = "", r = e.startsWith("Multilang") ? A.GlobalConfigComponent.GetMultilangKey(e) : e, [4, S.AssetsManager.Instance.LoadAsset(r, cc.SpriteFrame)]) : [3, 2] : [3, 5];
                            case 1:
                                return t = i.sent(), [3, 4];
                            case 2:
                                return r = A.GlobalConfigComponent.GetMultilangKey("MultilangActivity/" + e), [4, S.AssetsManager.Instance.LoadAsset(r, cc.SpriteFrame)];
                            case 3:
                                t = i.sent(), i.label = 4;
                            case 4:
                                return [3, 7];
                            case 5:
                                return n = void 0, e.startsWith("Common/") ? n = m.UIUtlity.ActivityConfigImages[e] : (o = "MultiLanguage/" + A.GlobalConfigComponent.MultilangBundlePrefix + "/" + e, n = m.UIUtlity.ActivityConfigImages[o]), n ? (r = m.UIUtlity.ACTIVITYIMAGE_URL + "/" + n + m.UIUtlity.ACTIVITYIMANGE_EXTENTION, [4, S.AssetsManager.Instance.LoadRemoteTexture(r)]) : [3, 7];
                            case 6:
                                t = i.sent(), i.label = 7;
                            case 7:
                                return [2, t]
                        }
                    })
                })
            }, e.IsRemoteImageNamEequal = function(e, t) {
                var n;
                if (t.startsWith("Common/")) n = m.UIUtlity.ActivityConfigImages[t];
                else {
                    var o = "MultiLanguage/" + A.GlobalConfigComponent.Instance.Locale.toUpperCase() + "/" + t;
                    n = m.UIUtlity.ActivityConfigImages[o]
                }
                return !(!n || e != m.UIUtlity.ACTIVITYIMAGE_URL + "/" + n + m.UIUtlity.ACTIVITYIMANGE_EXTENTION)
            }, e.prototype.GetMallDeadTime = function(e, n) {
                var o = A.ConfigDataComponent.Instance.GetConfigById(h.MallActivity_Config, e);
                return o.ResetType == d.ResetType.Interval ? 0 == o.Interval ? null : n + o.Interval * d.Etc.DayDuration : o.ResetType == d.ResetType.Daily ? T.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime) + g.Etc.DayDuration : o.ResetType == d.ResetType.Week ? T.TimeUtil.GetMondayClock0Ts(f.RpcComponent.Instance.ServerTime) + 7 * g.Etc.DayDuration : o.ResetType == d.ResetType.Month ? t.GetFirstDayOfNextMonthClock0Ts(f.RpcComponent.Instance.ServerTime) : 0
            }, e.GetFirstDayOfNextMonthClock0Ts = function(e) {
                void 0 === e && (e = 0), e = e || T.TimeUtil.Now();
                var t = T.TimeUtil.GetFirstDayOfMonthClock0Ts(e),
                    n = T.TimeUtil.GetFirstDayOfMonthClock0Ts(T.TimeUtil.GetOffsetDayTs(16, e));
                return n == t && (n = T.TimeUtil.GetFirstDayOfMonthClock0Ts(T.TimeUtil.GetOffsetDayTs(32, e))), n
            }, e.GetNextMonday0ClockTs = function() {
                var e = f.RpcComponent.Instance.ServerTime,
                    t = b.TimeUtil.Get0ClockTs(e),
                    n = b.TimeUtil.GetWeekDay(e);
                return b.TimeUtil.GetOffsetDayTs(8 - n, t)
            }, e.GetIndexClockTs = function(e, t) {
                var n = f.RpcComponent.Instance.ServerTime,
                    o = b.TimeUtil.GetIndexClockTs(n, t),
                    r = b.TimeUtil.GetWeekDay(n),
                    i = e - r >= 0 ? e - r : e - r + 7;
                return b.TimeUtil.GetOffsetDayTs(i, o)
            }, e.prototype.HasBoughtFirstPay = function() {
                var e;
                for (var t in A.DataCenter.Instance.ActivityConfigs) {
                    var n = A.DataCenter.Instance.ActivityConfigs[t];
                    if (n.Common.Type == d.ActivityType.FirstPay) {
                        e = n;
                        break
                    }
                }
                if (!e) return !1;
                for (var o = A.DataCenter.Instance.GetDataById(y.UserActivity_Model, e._id), r = function(t) {
                        var n = e._Packs[t];
                        if (o && o.Int2DArray) {
                            var r = o.Int2DArray.find(function(e) {
                                return e.Items[0] == n.Id
                            });
                            if (!r || !r.Items[1]) return {
                                value: !1
                            }
                        }
                    }, i = 0; i < e._Packs.length; i++) {
                    var a = r(i);
                    if ("object" == typeof a) return a.value
                }
                return !0
            }, e.IsTaskCanShow = function(e) {
                if (null == f.DataCenter.Instance.GetDataById(y.UserTask_Model, e)) return !1;
                for (var t = f.ConfigDataComponent.Instance.GetConfigById(h.TaskBase_Config, e), n = 0; n < t.ShowConditon.length; n++) {
                    var o = t.ShowConditon[n].Items,
                        r = o[0],
                        i = o[1],
                        a = o[2];
                    switch (r) {
                        case d.TaskUnlockConditionType.PlayerLevel:
                            var s = f.DataCenter.Instance.GetIntData(g.UserDataKey.PlayerLevel);
                            if (null == a) {
                                if (s < i) return !1
                            } else if (s < i || s > a) return !1;
                            break;
                        case d.TaskUnlockConditionType.PreTask:
                            for (var l = 1; l < o.length; l++)
                                if (!f.DataCenter.Instance.GetDataById(y.UserTask_Model, o[l]).IsCompleted) return !1;
                            break;
                        case d.TaskUnlockConditionType.GameModule:
                            for (var c = 1; c < o.length; c++)
                                if (!f.DataCenter.Instance.GetDataById(y.GameModule_Model, o[c])) return !1;
                            break;
                        case d.TaskUnlockConditionType.VipLevel:
                            var u = f.DataCenter.Instance.GetIntData(g.UserDataKey.VipLevel);
                            if (null == a) {
                                if (u < i) return !1
                            } else if (u < i || u > i) return !1
                    }
                }
                return !0
            }, e.prototype.ShowDiamondBuyQuery = function(e, t, n) {
                return r(this, void 0, void 0, function() {
                    return i(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return [4, m.UIUtlity.ShowHintPanel(null, "mall_query_costDiamondBuy".ToUILocale().Fmt(e, t), "cancel".ToUILocale(), function() {}, "ok".ToUILocale(), n)];
                            case 1:
                                return o.sent(), [2]
                        }
                    })
                })
            }, e.prototype.ComputeDeadTime = function(e) {
                return e.IsZoneOpen ? this.GetOpenZeroTime() + (e.Duration + e.RequireOpenDays - 1) * g.Etc.DayDuration : e.StartTime + e.Duration * g.Etc.DayDuration
            }, e.prototype.GetActivityEndTime = function(e) {
                var t = f.DataCenter.Instance.ActivityConfigs[e];
                return t ? this.ComputeDeadTime(t.Common) : -1
            }, e.prototype.ActivityIdleTimeStamp = function(e) {
                var t = this.ComputeDeadTime(e.Common);
                switch (e.Common.Type) {
                    case d.ActivityType.ChaosSummon:
                    case d.ActivityType.ActivityBoss:
                        t = b.TimeUtil.GetOffsetHourTs(e.CustomPart.EndTime - 24, t);
                        break;
                    case d.ActivityType.SupportHero:
                        t = b.TimeUtil.GetOffsetHourTs(-21, t)
                }
                return t
            }, e.prototype.ComputeMainUIShowOffTime = function(e) {
                return e.IsZoneOpen ? this.GetOpenZeroTime() + (e.ShowDays + e.RequireOpenDays - 1) * g.Etc.DayDuration : e.StartTime + e.ShowDays * g.Etc.DayDuration
            }, e.prototype.ComputeExtraShowDeadTime = function(e) {
                return (e.IsZoneOpen ? this.GetOpenZeroTime() + (e.Duration + e.RequireOpenDays - 1) * g.Etc.DayDuration : e.StartTime + e.Duration * g.Etc.DayDuration) + e.ExtraShowDays * g.Etc.DayDuration
            }, e.prototype.ComputeContiuousTime = function(e) {
                var t;
                return t = e.IsZoneOpen ? this.GetOpenZeroTime() + (e.RequireOpenDays - 1) * g.Etc.DayDuration : e.StartTime, Math.ceil((f.RpcComponent.Instance.ServerTime - T.TimeUtil.Get0ClockTs(t)) / g.Etc.DayDuration)
            }, e.prototype.ComputeActivitStartTime = function(e) {
                return e.IsZoneOpen ? this.GetOpenZeroTime() + (e.RequireOpenDays - 1) * g.Etc.DayDuration : e.StartTime
            }, e.prototype.ShowHeroInfoPanel = function(e) {
                var n = f.DataCenter.Instance.GetDataList(y.UserHero_Model);
                t.Instance.SortHeroByRule1(n);
                for (var o = [], r = 0; r < n.length; r++) o.push(n[r].Sid);
                _.UIManager.Instance.ShowUIPanel(C.PanelConfig.HeroInfoPanel.Path, o[0], o, e)
            }, e.prototype.GetActivityDataByType = function(e) {
                for (var t in f.DataCenter.Instance.ActivityFrameMap)
                    for (var n = f.DataCenter.Instance.ActivityFrameMap[t], o = 0; o < n.length; o++) {
                        var r = f.DataCenter.Instance.ActivityConfigs[n[o]];
                        if (r.Common.Type == e) return r
                    }
                return null
            }, e.prototype.ClearDataWhenLogOut = function() {
                this._activityTypeToJumpIndexToActivityId = null
            }, e.prototype.GetSecondTime = function(e) {
                return (Math.floor(e / 60) >= 10 ? Math.floor(e / 60).toString() : "0" + Math.floor(e / 60)) + ":" + (e % 60 >= 10 ? (e % 60).toString() : "0" + e % 60)
            }, e.prototype.IsSameDay = function(e, t) {
                return null != e && null != t && T.TimeUtil.Get0ClockTs(e) == T.TimeUtil.Get0ClockTs(t)
            }, e.prototype.IsToday = function(e) {
                return this.IsSameDay(e, A.RpcComponent.Instance.ServerTime)
            }, e.prototype.SetDisCount = function(e, t, n) {
                null != e && e > 0 ? (t.node.parent.active = !0, t.string = e + "%", n.string = "mall_giftPack_superValue".ToUILocale()) : t.node.parent.active = !1
            }, e.prototype.GetNodePositionUnderContainer = function(e, t) {
                return t.convertToNodeSpaceAR(e.convertToWorldSpaceAR(cc.v3()))
            }, e.prototype.GetGiftBuyCount = function(e) {
                var t = A.DataCenter.Instance.GetDataById(y.GiftPack_Model, e);
                return null == t ? 0 : null == t.Count ? 0 : t.Count
            }, e.prototype.ShowRestartGamePanel = function(e, t) {
                switch (t || (t = ("error_hint_content_code_" + e).ToUILocale()), e) {
                    case d.ErrCode.AssetVerIsNotAvailable:
                    case d.ErrCode.ConfigVerIsNotAvailable:
                        m.UIUtlity.ShowForceConfirmPanel("", "assets_update_hint".ToUILocale(), "", R.InitHelper.RestartWeb.bind(this));
                        break;
                    case d.ErrCode.ServerMaintenance:
                        _.UIManager.Instance.ShowUIPanel(C.PanelConfig.OffServicePanel.Path, t);
                        break;
                    default:
                        m.UIUtlity.ShowForceConfirmPanel("", t, "", R.InitHelper.RestartWeb.bind(this))
                }
            }, e.prototype.GetShopDeadLine = function(e) {
                var n = e.RefreshType[0].Items;
                if (2 == n[0]) {
                    var o = A.RpcComponent.Instance.ServerTime;
                    switch (n[1]) {
                        case 1:
                            return d.Etc.DayDuration + T.TimeUtil.Get0ClockTs(o);
                        case 2:
                            return 7 * d.Etc.DayDuration + T.TimeUtil.GetMondayClock0Ts(o);
                        case 3:
                            return t.GetFirstDayOfNextMonthClock0Ts(o);
                        default:
                            return null
                    }
                }
                return null
            }, e.prototype.GetOpenZeroTime = function() {
                var e = f.DataCenter.Instance.Zones[f.DataCenter.Zone];
                return T.TimeUtil.Get0ClockTs(e.OpenTime)
            }, e.prototype.GetGiftDeadTime = function(e) {
                var n = A.ConfigDataComponent.Instance.GetConfigById(h.GiftPack_Config, e);
                if (n) {
                    if (n.LimitType == d.LimitBuyType.Daily) return T.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime) + g.Etc.DayDuration;
                    if (n.LimitType == d.LimitBuyType.Week) return T.TimeUtil.GetMondayClock0Ts(f.RpcComponent.Instance.ServerTime) + 7 * g.Etc.DayDuration;
                    if (n.LimitType == d.LimitBuyType.Month) return t.GetFirstDayOfNextMonthClock0Ts(f.RpcComponent.Instance.ServerTime)
                }
                return 0
            }, e.prototype.GetTeamPowerByHeroIds = function(e) {
                for (var t = 0, n = 0; n < e.length; n++) {
                    var o = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e[n]);
                    o && (t += o.Power)
                }
                return t
            }, e.prototype.GetTeamPowerByIUserHero_Models = function(e) {
                for (var t = 0, n = 0; n < e.length; n++) t += e[n].Power;
                return t
            }, e.prototype.GetSeniorResourceRateByScore = function(e) {
                var t = f.ConfigDataComponent.Instance.GetArrayConfig(h.SeniorArenaReward_Config),
                    n = 0;
                if (e <= t[0].Id) n = t[0].Output;
                else if (e >= t[t.length - 1].Id) n = t[t.length - 1].Output;
                else
                    for (var o = 0; o < t.length; o++) e >= t[o].Id && e < t[o + 1].Id && (n = t[o].Output);
                return Math.round(O.default.GetRealSeniorArenaResource(n * g.Etc.HourDuration / 1e3))
            }, e.prototype.FilterLockedHero = function(e) {
                for (var t = [], n = 0; n < e.length; n++) {
                    var o = e[n];
                    if (o > 0) {
                        var r = f.DataCenter.Instance.GetDataById(y.UserHero_Model, o);
                        if (null == r || r.Locked) continue
                    }
                    t.push(o)
                }
                return t
            }, e.prototype.HasCoreHeroInRewards = function(e) {
                if (I.EZLog.Log("HasCoreHeroInRewards"), e)
                    for (var t = 0; t < e.length; t++) {
                        var n = e[t].ItemId,
                            o = f.ConfigDataComponent.Instance.GetConfigById(h.ItemHeroCard_Config, n);
                        if (o && f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, o.HeroId).CoreHero >= 1) return !0
                    }
                return !1
            }, e.prototype.GetAudioRandomNumByType = function(e, t) {
                void 0 === t && (t = -1);
                var n = null;
                if (n = e == d.RandomAudioType.FavorUpgrade ? f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t).FavorUpgradeAudio : [
                        [11, 12, 13, 14, 15, 16, 17],
                        [21, 22, 23, 24, 25, 26],
                        [31, 32, 33, 34, 35, 36, 37],
                        [41, 42, 43, 44, 45, 46, 47, 48],
                        [51, 52, 53, 54],
                        [61, 62, 63, 64, 65, 66]
                    ][e]) {
                    var o = this.GetRandomInt(0, n.length - 1);
                    return I.EZLog.Log("GetAudioRandomNumByType audioId : " + n[o]), n[o]
                }
                return -1
            }, e.prototype.GetRandomInt = function(e, t) {
                return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1)) + e
            }, e.ParseActivityParams = function(e) {
                var t = e[0];
                return f.DataCenter.Instance.ActivityConfigs[t]
            }, e.GetAndShowHero = function(e) {
                S.UIManager.Instance.ShowUIPanelByQueue(C.PanelConfig.SummonResultPanel.Path, M.default.ACTIVITY_SUMMON_ONCE_ID, [
                    [e, 1]
                ])
            }, e.GetTaskDesc = function(e) {
                for (var t = ("common_task_condtion_" + e.Condition[0]).ToUILocale(), n = [e.TotalCount], o = 1; o < e.Condition.length; o++)
                    if (e.Condition[0]) {
                        var r = !1;
                        switch (e.Condition[0]) {
                            case g.TaskConditionType.UseItem:
                            case g.TaskConditionType.GetItem:
                            case g.TaskConditionType.GetQualityLuckyCharm:
                                if (e.Condition[1] && e.Condition[1] > 0) {
                                    var i = e.Condition[1].ToItemName();
                                    n.push(i)
                                }
                                r = !0;
                                break;
                            case g.TaskConditionType.ShopBuyItem:
                                e.Condition[1] && e.Condition[1] > 0 && (i = e.Condition[1].ToShopName(), n.push(i)), r = !0;
                                break;
                            case g.TaskConditionType.DropedItemAndCount:
                                if (n = [], e.Condition[1] && e.Condition[1] > 0) {
                                    var a = e.Condition[1].ToItemGetWayName();
                                    n.push(a)
                                }
                                e.Condition[2] && e.Condition[2] > 0 && (i = e.Condition[2].ToItemName(), n.push(i)), n.push(e.TotalCount), r = !0;
                                break;
                            case g.TaskConditionType.StoryChallenge:
                                (n = []).push(e.Condition[1].ToMapName()), r = !0;
                                break;
                            case g.TaskConditionType.HeroFavorUpgradeLevel:
                            case g.TaskConditionType.HeroPersonalityUpgradeStar:
                                n.push(e.Condition[1].ToHeroTitle()), r = !0;
                                break;
                            case g.TaskConditionType.HaveHeroSkin:
                                n.push(e.Condition[1].ToSkinName());
                                var s = A.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, e.Condition[1]);
                                s && n.push(s.HeroId.ToHeroTitle()), r = !0;
                                break;
                            case g.TaskConditionType.GetQualityPet:
                                n.push(("item_quality_color" + e.Condition[1]).ToUILocale()), r = !0;
                                break;
                            case g.TaskConditionType.OwnedElementStarHero:
                                1 == o ? n.push(e.Condition[o].ToHeroElementName()) : n.push(e.Condition[o]), 1 == e.TotalCount && (t = "common_task_condtion_2026_1".ToUILocale());
                                break;
                            case g.TaskConditionType.OwnedHeroStar:
                                1 == o ? n.push(e.Condition[o].ToHeroTitle()) : n.push(e.Condition[o]);
                                break;
                            case g.TaskConditionType.KnifeTrainingScore:
                            case g.TaskConditionType.KnifeTrainingMap:
                                1 == e.Condition[2] ? n.push("knife_common".ToUILocale()) : 2 == e.Condition[2] && n.push("knife_challenge".ToUILocale());
                                break;
                            case g.TaskConditionType.ShopBuyGoods:
                                i = A.ConfigDataComponent.Instance.GetConfigById(h.ShopItem_Config, e.Condition[1]).ItemId.ToItemName(), n.push(i);
                                break;
                            case g.TaskConditionType.GetPuzzleItem:
                            case g.TaskConditionType.DecomposePuzzleItem:
                                if (2 == o) {
                                    var l = ("paraPuzzle_quality" + e.Condition[o]).ToUILocale();
                                    n.push(l)
                                } else n.push(e.Condition[o]);
                                break;
                            case g.TaskConditionType.GetCoreHero:
                                n.push(["", "hero_type_normal", "hero_type_middle", "hero_type_high", "handbook_sp", "handbook_ur", "handbook_lr"][e.Condition[1]].ToUILocale());
                                break;
                            case g.TaskConditionType.DailyInstance:
                                n.push(("dailyInstance_type_" + e.Condition[1]).ToUILocale());
                                break;
                            case g.TaskConditionType.DispatchTaskAbove:
                                n.push(e.Condition[1].ToIntelligenceQualityName());
                                break;
                            default:
                                e.Condition[o] >= 0 ? n.push(e.Condition[o]) : n.push(Math.abs(e.Condition[o]))
                        }
                        if (r) break
                    } else e.Condition[o] >= 0 ? n.push(e.Condition[o]) : n.push(Math.abs(e.Condition[o]));
                if (e.Condition[0] == g.TaskConditionType.PlayerPower) n[0] = n[0].FmtCurrency();
                else if (e.Condition[0] == g.TaskConditionType.Adventure) {
                    var c = Math.ceil(e.TotalCount / 40),
                        u = e.TotalCount % 40;
                    n = [c + "-" + (0 == u ? 40 : u)]
                }
                return t.Fmt.apply(t, n)
            }, e.FilterHeroByPerk = function(e, t) {
                if (!t) return e;
                var n = [];
                return e.forEach(function(e) {
                    if (e < 0) {
                        var o = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e);
                        A.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, o.HeroId).Career == t && n.push(e)
                    } else n.push(e)
                }), n
            }, e.FilterHeroByStar = function(e, t) {
                if (!t) return e;
                var n = [];
                return e.forEach(function(e) {
                    e > 0 ? f.DataCenter.Instance.GetDataById(y.UserHero_Model, e).StarLevel == t && n.push(e) : n.push(e)
                }), n
            }, e.FilterHeroByElement = function(e, t) {
                if (!t) return e;
                var n = [];
                return e.forEach(function(e) {
                    if (e > 0) {
                        var o = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e);
                        A.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, o.HeroId).ElementType == t && n.push(e)
                    } else n.push(e)
                }), n
            }, e.FilterHeroById = function(e, t) {
                if (!t) return e;
                var n = [];
                return e.forEach(function(e) {
                    e > 0 && f.DataCenter.Instance.GetDataById(y.UserHero_Model, e).HeroId == t && n.push(e)
                }), n
            }, e.FilterHeroByCanConsume = function(e) {
                var n = [];
                return e.forEach(function(e) {
                    e > 0 ? t.Instance.IsHeroCanBeConsume(e) && n.push(e) : n.push(e)
                }), n
            }, e.FilterUpStarMaterialByCanConsume = function(e) {
                for (var n = [], o = 0; o < e.length; o++) {
                    var r = e[o];
                    r.Type == u.Hero ? t.Instance.IsHeroCanBeConsume(r.Id) && n.push(r) : n.push(r)
                }
                return n
            }, e.GetHeroSids = function(e) {
                void 0 === e && (e = []);
                var t = f.DataCenter.Instance.GetDataList(y.UserHero_Model),
                    n = [];
                return t.forEach(function(t) {
                    e && 0 != e.length && e.includes(t.Sid) || n.push(t.Sid)
                }), n
            }, e.IsHeroEnoughByPieceCondition = function(e) {
                if (e.length < 5) return !0;
                var n = t.GetHeroSids();
                n = t.FilterHeroByPerk(n, e[1]), n = t.FilterHeroById(n, e[0]), n = t.FilterHeroByElement(n, e[2]), n = t.FilterHeroByStar(n, e[3]);
                for (var o = this.GetUniversalHeroItems(e[3], e[2]), r = 0; r < o.length; r++) n.push(-o[r]);
                return n.length >= e[4]
            }, e.GetHeroSidByPieceCondition = function(e, n) {
                var o = n;
                o = t.FilterHeroByPerk(o, e[1]), o = t.FilterHeroById(o, e[0]), o = t.FilterHeroByElement(o, e[2]), o = t.FilterHeroByStar(o, e[3]);
                for (var r = this.GetUniversalHeroItems(e[3], e[2], e[0]), i = 0; i < r.length; i++) o.push(-r[i]);
                return o
            }, e.GetAbridgeString = function(e, t, n, o) {
                if (!n) return t;
                switch (A.GlobalConfigComponent.Instance.Locale) {
                    case d.GameLocales.Jp:
                    case d.GameLocales.Cn:
                        return t
                }
                var r, i = e.fontSize,
                    a = 0,
                    s = e.node.getComponent(cc.LabelOutline);
                s && (a = s.width);
                var l = i / 2 + a;
                if (o) r = Math.floor(e.node.height / e.lineHeight) <= o ? t : t.match(/.{0,18}/) + "...";
                else if (t.length * l <= n) r = t;
                else {
                    var c = Math.floor(n / l),
                        u = Math.min(c - 1, t.length);
                    r = t.substring(0, u - 1) + "..."
                }
                return r
            }, e.IsNumberString = function(e) {
                return !isNaN(Number(e))
            }, e.GetFuckingHolyEquipAllAttrs = function(e, t, n, o) {
                var r, i = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipment_Config, e);
                r = o > 0 ? f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, 100 * d.HolyEquipmentState.Step + o) : f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, 100 * d.HolyEquipmentState.Star + t);
                var a, s, l = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentLevel_Config, n),
                    c = i.Attrs,
                    u = {};
                if (l) switch (i.Type) {
                    case d.HeroEquipmentType.Weapon:
                        a = l.Weapon;
                        break;
                    case d.HeroEquipmentType.Coat:
                        a = l.Coat;
                        break;
                    case d.HeroEquipmentType.Glove:
                        a = l.Glove;
                        break;
                    case d.HeroEquipmentType.Shoes:
                        a = l.Shoes
                } else a = [];
                switch (i.Type) {
                    case d.HeroEquipmentType.Weapon:
                        s = r.Weapon;
                        break;
                    case d.HeroEquipmentType.Coat:
                        s = r.Coat;
                        break;
                    case d.HeroEquipmentType.Glove:
                        s = r.Glove;
                        break;
                    case d.HeroEquipmentType.Shoes:
                        s = r.Shoes
                }
                for (var p = 0; p < c.length; p++) u[c[p].Items[0]] = c[p].Items[1];
                for (p = 0; p < a.length; p++) {
                    var y = a[p].Items[0],
                        g = a[p].Items[1];
                    (m = u[y]) || (m = 0), u[y] = m + g
                }
                for (p = 0; p < s.length; p++) {
                    var m;
                    y = s[p].Items[0], g = s[p].Items[1], (m = u[y]) || (m = 0), u[y] = m + g
                }
                return u
            }, e.JudgeIfTaskCompleted = function(e, t) {
                var n;
                if (t && t.length > 0) {
                    for (var o = void 0, r = 0; r < t.length; r++)
                        if (!(n = A.DataCenter.Instance.GetDataById(y.UserTask_Model, 1e4 * e + t[r].Id)) || !n.IsCompleted) {
                            o = t[r].TotalCount;
                            break
                        } if (o || (o = t[t.length - 1].TotalCount), n.Progress >= o && !n.IsCompleted) return !0
                }
                return !1
            }, e.InitStarItem = function(e, t, n) {
                var o = A.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, t);
                e.Init({
                    ItemId: t,
                    Count: n
                }, o.Star ? D.ItemComponentType.ItemWithStar : D.ItemComponentType.ItemCommon)
            }, e.AddPlusSign = function(e) {
                return e < 0 ? e.toString() : "+" + e
            }, e.ConverIIntArraysToUserItems = function(e) {
                for (var t = [], n = 0; n < e.length; n++) t.push({
                    ItemId: e[n].Items[0],
                    Count: e[n].Items[1]
                });
                return t
            }, e.FilterGemsBySid = function(e, t) {
                void 0 === t && (t = null);
                var n = [];
                if (null == t && (t = A.DataCenter.Instance.GetDataList(y.GemEquip_Model)), null != t)
                    for (var o = 0; o < t.length; o++) t[o].OwnerId == e && n.push(t[o]);
                return n
            }, e.FilterAvailableGems = function(e) {
                void 0 === e && (e = !1);
                var t = [],
                    n = A.DataCenter.Instance.GetDataList(y.GemEquip_Model);
                if (null != n)
                    for (var o = 0; o < n.length; o++)(e || null == n[o].OwnerId || 0 == n[o].OwnerId) && t.push(n[o]);
                return t
            }, e.FilterGemsExcludeSid = function(e, t) {
                void 0 === t && (t = null);
                var n = [];
                if (null == t && (t = A.DataCenter.Instance.GetDataList(y.GemEquip_Model)), null != t)
                    for (var o = 0; o < t.length; o++) t[o].OwnerId != e && n.push(t[o]);
                return n
            }, e.GetAllGemsSid = function() {
                var e = [];
                return A.DataCenter.Instance.GetDataList(y.GemEquip_Model).forEach(function(t) {
                    e.push(t.Sid)
                }), e
            }, e.FilterGemsByType = function(e) {
                var n = [],
                    o = t.GetGemsArrayByType();
                return null != o[e] && (n = o[e]), n
            }, e.GetGemsArrayByType = function(e, t) {
                void 0 === e && (e = null);
                var n = {};
                if (null == e && (e = A.DataCenter.Instance.GetDataList(y.GemEquip_Model)), null != e)
                    for (var o = 0; o < e.length; o++) {
                        var r = A.ConfigDataComponent.Instance.GetConfigById(h.GemEquip_Config, e[o].ItemId),
                            i = r.Type;
                        null == n[i] && (n[i] = []), (!t || t && t == r.Quality) && n[i].push(e[o])
                    }
                return n
            }, e.GetGemsArrayByAttr = function(e) {
                void 0 === e && (e = null);
                var t = {};
                if (null == e && (e = A.DataCenter.Instance.GetDataList(y.GemEquip_Model)), null != e)
                    for (var n = 0; n < e.length; n++) {
                        var o = e[n].Attrs[0].Items[0];
                        null == t[o] && (t[o] = []), t[o].push(e[n])
                    }
                return t
            }, e.GetGemsArrayByQuality = function(e) {
                void 0 === e && (e = null);
                var t = {};
                if (null == e && (e = A.DataCenter.Instance.GetDataList(y.GemEquip_Model)), null != e)
                    for (var n = 0; n < e.length; n++) {
                        var o = A.ConfigDataComponent.Instance.GetConfigById(h.GemEquip_Config, e[n].ItemId).Quality;
                        null == t[o] && (t[o] = []), t[o].push(e[n])
                    }
                return t
            }, e.FilterGemsExcludeLocked = function(e) {
                void 0 === e && (e = null);
                var t = [];
                if (null == e && (e = A.DataCenter.Instance.GetDataList(y.GemEquip_Model)), null != e)
                    for (var n = 0; n < e.length; n++) e[n].Locked || t.push(e[n]);
                return t
            }, e.ShowItemGetWay = function(e, t) {
                switch (e) {
                    case g.CommonItemId.Diamond:
                        _.UIManager.Instance.ShowUIPanel(C.PanelConfig.MallNewPanel.Path, [d.MallPageType.DiamondShop, g.GiftPackType.BuyDiamond]);
                        break;
                    default:
                        _.UIManager.Instance.ShowUIPanel(C.PanelConfig.ItemGetWayPanel.Path, e, void 0, void 0, t)
                }
            }, e.CallBackAfterFrames = function(e, n, o) {
                n <= 0 ? e() : o.scheduleOnce(function() {
                    t.CallBackAfterFrames(e, n - 1, o)
                }, 0)
            }, e.GetAttrText = function(e, t) {
                var n = "";
                return t >= 0 && (n = "+"), n + (2 == A.ConfigDataComponent.Instance.GetConfigById(h.HeroAttribute_Config, e).Format ? t / 10 + "%" : t.toString())
            }, e.GetAttrIcon = function(e) {
                var t, n = A.ConfigDataComponent.Instance.GetConfigById(h.HeroAttribute_Config, e);
                return n && (t = m.UIUtlity.HERO_ATTR_ICON_ATLAS.getSpriteFrame(n.Icon)), t
            }, e.GetColorAttrIcon = function(e) {
                var t, n = A.ConfigDataComponent.Instance.GetConfigById(h.HeroAttribute_Config, e);
                return n && (t = m.UIUtlity.HERO_ATTR_ICON_ATLAS.getSpriteFrame(n.ColorAttrIcon)), t
            }, e.CheckHeroCanWearGem = function(e) {
                var n = t.Instance.IsGameModuleUnlock(g.GameModuleType.Gem)[0];
                if (!t.Instance.IsGameModuleOpen(g.GameModuleType.Gem) || !n) return !1;
                if (!t.CheckHeroGemUnlock(e)) return !1;
                var o = t.FilterAvailableGems();
                if (0 == o.length) return !1;
                var r = t.FilterGemsBySid(e),
                    i = A.DataCenter.Instance.GetDataById(y.UserHero_Model, e);
                if (null == i) return !1;
                if (6 == r.length || r.length >= f.ConfigCacheComponent.Instance.GetHeroStarLevelToGemsCount(i.StarLevel)) return !1;
                for (var a = t.GetGemsArrayByType(o), s = t.GetGemSlotStateBySid(e), l = 1; l < s.length; l++)
                    if (0 == s[l]) {
                        var c = Math.ceil(l / 2);
                        if (null != a[c] && a[c].length > 0) return !0
                    } return !1
            }, e.CheckHeroGemUnlock = function(e) {
                var t = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e),
                    n = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroGemUnlockHeroLevel");
                return !!(t && t.Level >= n)
            }, e.CheckHeroCanWearHigherGem = function(e) {
                var n = t.Instance.IsGameModuleUnlock(g.GameModuleType.Gem)[0];
                if (!t.Instance.IsGameModuleOpen(g.GameModuleType.Gem) || !n) return !1;
                if (!t.CheckHeroGemUnlock(e)) return !1;
                for (var o = t.FilterAvailableGems(), r = t.FilterGemsBySid(e), i = t.GetGemsArrayByType(o), a = t.GetGemsArrayByType(r), s = !1, l = function(e) {
                        var t = i[e],
                            n = a[e];
                        return null == n || null == t ? "continue" : (n.forEach(function(e) {
                            for (var n = 0; n < t.length && !s; n++) f.ConfigCacheComponent.Instance.GetGemQualityByItemId(e.ItemId) < f.ConfigCacheComponent.Instance.GetGemQualityByItemId(t[n].ItemId) && (s = !0)
                        }), s ? {
                            value: !0
                        } : void 0)
                    }, c = d.GemType.Attacking; c <= d.GemType.Special; c++) {
                    var u = l(c);
                    if ("object" == typeof u) return u.value
                }
                return !1
            }, e.GetGemSlotStateBySid = function(e) {
                for (var n = A.DataCenter.Instance.GetDataById(y.UserHero_Model, e), o = t.FilterGemsBySid(e), r = [], i = 0; i <= 6; i++) r[i] = 0;
                o.forEach(function(e) {
                    r[e.SlotId] = e.Sid
                });
                var a = f.ConfigCacheComponent.Instance.GetGemUnlockData();
                for (i = 0; i < r.length; i++) n.StarLevel < a[i] && (r[i] = -a[i]);
                return r
            }, e.IsCrossServerTimeEnable = function() {
                if (1 == T.TimeUtil.GetWeekDay(f.RpcComponent.Instance.ServerTime)) {
                    var e = T.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime),
                        t = e + 36e6;
                    if (f.RpcComponent.Instance.ServerTime >= e && f.RpcComponent.Instance.ServerTime < t) return !1
                }
                return !0
            }, e.IsCrossServerConditonsZoneEnable = function() {
                var e = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneGroupMinWorldLevel");
                return !(f.DataCenter.Instance.WorldLevel < e || f.DataCenter.Instance.Zones[f.DataCenter.Zone].Group <= 0)
            }, e.IsCrossServerConditonsEnable = function() {
                if (!t.Instance.IsGameModuleUnlock(d.GameModuleType.CrossServerSpaceTime)[0]) return !1;
                var e = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneGroupMinWorldLevel");
                return !(f.DataCenter.Instance.WorldLevel < e || f.DataCenter.Instance.Zones[f.DataCenter.Zone].Group <= 0)
            }, e.IsCrossServerLadderChallengeEnable = function() {
                var e = T.TimeUtil.GetWeekDay(f.RpcComponent.Instance.ServerTime);
                if (7 == e || 1 == e) {
                    var t = T.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime);
                    if (1 == e) {
                        var n = t,
                            o = t + 10 * g.Etc.HourDuration;
                        if (f.RpcComponent.Instance.ServerTime >= n && f.RpcComponent.Instance.ServerTime < o) return !1
                    } else if (n = t + 21 * g.Etc.HourDuration, o = t + 24 * g.Etc.HourDuration, f.RpcComponent.Instance.ServerTime >= n && f.RpcComponent.Instance.ServerTime <= o) return !1
                }
                return !0
            }, e.RequestBuyActivityGift = function(e, n, o) {
                if (e >= n.LimitCount && 0 != n.LimitType) m.UIUtlity.ShowFloatingHint("buy_count_limit".ToUILocale());
                else if (n.PayId && "" != n.PayId) B.default.Instance.Pay(n.Id, o);
                else if (A.DataCenter.Instance.IsItemEnough(g.CommonItemId.Diamond, n.Money)) t.Instance.ShowDiamondBuyQuery(n.Money, n.Name, function() {
                    var e = new y.Req_Pay_ByDiamond;
                    e.Id = n.Id, e.ActivityId = o, A.RpcComponent.Instance.Call(e, function(e) {
                        null == e ? m.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale()) : m.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                });
                else {
                    var r = g.CommonItemId.Diamond.ToItemName();
                    m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(r))
                }
            }, e.GetActivityModelPath = function(e) {
                var t = "";
                if (e.length > 1) switch (e[0]) {
                    case 1:
                        var n = e[1],
                            o = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, n);
                        o && (t = o.UIAvatar + "/Avatar");
                        break;
                    case 2:
                        t = "AdultPicture" + e[1] + "/Avatar";
                        break;
                    case 3:
                        var r = e[1],
                            i = f.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, r);
                        i && (t = i.UIAvatar + "/Avatar")
                }
                return t
            }, e.GetTopActivityHeroId = function(e) {
                var t = 0;
                if (e.length > 1) switch (e[0]) {
                    case 1:
                        t = e[1];
                        break;
                    case 2:
                        var n = e[1],
                            o = f.ConfigDataComponent.Instance.GetConfigById(h.ItemPersonality_Config, n);
                        o && (t = o.HeroId);
                        break;
                    case 3:
                        var r = e[1],
                            i = f.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, r);
                        i && (t = i.HeroId)
                }
                return t
            }, e.GetSpecificActivityList = function(e) {
                var n = [],
                    o = A.DataCenter.Instance.GetIntData(d.UserDataKey.TotalPay);
                for (var r in f.DataCenter.Instance.ActivityConfigs) {
                    var i = f.DataCenter.Instance.ActivityConfigs[r],
                        a = void 0;
                    switch (e) {
                        case s.Summon:
                            a = i && E.default.SummonActivityType.indexOf(i.Common.Type) > -1 && i.Common.IsSummon > 0;
                            break;
                        case s.GiftPack:
                            a = i.Common.Type == g.ActivityType.FirstPay ? x.default.CheckCanAddFirstPayData(i._id) : i && (x.default.CompeleteGiftPackActivityType.indexOf(i.Common.Type) > -1 && i.Common.IsSummon > 0 || x.default.HaveGiftPackActivityType.indexOf(i.Common.Type) > -1);
                            break;
                        case s.WarToken:
                            a = i && H.default._activityTypes.indexOf(i.Common.Type) > -1;
                            break;
                        default:
                            a = !1
                    }
                    if (a) {
                        var l = !0;
                        i.Common.TotalPay && (l = o >= i.Common.TotalPay);
                        var c = !0;
                        if (i.Common.GameModule && (c = t.Instance.IsGameModuleUnlock(i.Common.GameModule)[0]), l && c) {
                            var u = t.Instance.ComputeExtraShowDeadTime(i.Common);
                            A.RpcComponent.Instance.ServerTime < u && n.push(i)
                        }
                    }
                }
                return n.length > 1 && (e == s.Summon ? n.sort(function(e, t) {
                    return e.Common.SummonSort - t.Common.SummonSort
                }) : e == s.GiftPack && n.sort(function(e, t) {
                    var n = x.default.CompeleteGiftPackActivityType.indexOf(e.Common.Type),
                        o = x.default.CompeleteGiftPackActivityType.indexOf(t.Common.Type);
                    return n > -1 && -1 == o ? -1 : o > -1 && -1 == n ? 1 : n > -1 && o > -1 ? e.Common.SummonSort == t.Common.SummonSort ? t._id - e._id : e.Common.SummonSort - t.Common.SummonSort : e.Common.StartTime == t.Common.StartTime ? t._id - e._id : t.Common.StartTime - e.Common.StartTime
                })), n
            }, e.GetBit = function(e, t) {
                return 1 == (e >> t & 1)
            }, e.CheckFormationIsEmpty = function(e) {
                var t = !0,
                    n = A.DataCenter.Instance.GetDataById(y.UserFormation_Model, e);
                if (n && n.HeroIds && n.HeroIds.length > 0)
                    for (var o = 0; o < n.HeroIds.length; o++)
                        if (n.HeroIds[o] > 0) {
                            t = !1;
                            break
                        } return t
            }, e.prototype.IsModuleShowAvailable = function(e, t) {
                var n = f.DataCenter.Instance.GetModuleAvailableStartTime(e, t);
                if (n > 0) return f.RpcComponent.Instance.ServerTime >= n;
                switch (e) {
                    case d.ModuleStartTime.Hero:
                        var o = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t);
                        o && o.AvailableStartTime && (n = T.TimeUtil.StrToTime(o.AvailableStartTime));
                        break;
                    case d.ModuleStartTime.HeroSkin:
                        var r = f.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, t);
                        r && r.AvailableStartTime && (n = T.TimeUtil.StrToTime(r.AvailableStartTime));
                        break;
                    case d.ModuleStartTime.Pet:
                        var i = f.ConfigDataComponent.Instance.GetConfigById(h.PetBase_Config, t);
                        i && i.AvailableStartTime && (n = T.TimeUtil.StrToTime(i.AvailableStartTime));
                        break;
                    case d.ModuleStartTime.NewPersonality:
                        var a = f.ConfigDataComponent.Instance.GetConfigById(h.NewPersonalityBase_Config, t);
                        a && a.AvailableStartTime && (n = T.TimeUtil.StrToTime(a.AvailableStartTime))
                }
                return f.RpcComponent.Instance.ServerTime >= n
            }, e.IsHeroShownAvailable = function(e) {
                var t = f.DataCenter.Instance.GetModuleAvailableStartTime(d.ModuleStartTime.Hero, e.Id);
                if (t > 0) return f.RpcComponent.Instance.ServerTime >= t;
                var n = e.AvailableStartTime ? T.TimeUtil.StrToTime(e.AvailableStartTime) : 0;
                return f.RpcComponent.Instance.ServerTime >= n
            }, e.IsSkinShownAvailable = function(e) {
                var t = f.DataCenter.Instance.GetModuleAvailableStartTime(d.ModuleStartTime.HeroSkin, e.Id);
                if (t > 0) return f.RpcComponent.Instance.ServerTime >= t;
                var n = e.AvailableStartTime ? T.TimeUtil.StrToTime(e.AvailableStartTime) : 0;
                return f.RpcComponent.Instance.ServerTime >= n
            }, e.IsNewPersonalityShowAvailable = function(e) {
                var t = f.DataCenter.Instance.GetModuleAvailableStartTime(d.ModuleStartTime.NewPersonality, e.Id);
                if (t > 0) return f.RpcComponent.Instance.ServerTime >= t;
                var n = e.AvailableStartTime ? T.TimeUtil.StrToTime(e.AvailableStartTime) : 0;
                return f.RpcComponent.Instance.ServerTime >= n
            }, e.GetCoreFormId = function(e) {
                for (var t, n = 0; n < e.CoreForm.length && e.Id >= e.CoreForm[n]; n++) t = e.CoreForm[n];
                return t
            }, e.prototype.GetPowerCoreAttribute = function(e, t, n) {
                var o = f.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, e),
                    r = f.ConfigDataComponent.Instance.GetConfigById(h.PowerCoreQuality_Config, o.Quality),
                    i = r.LevelAttrs.length,
                    a = [];
                n || (n = f.ConfigDataComponent.Instance.GetConfigById(h.PowerCore_Config, e).Star);
                for (var s = 0; s < r.LevelAttrs[0].Items.length - 1; s++) a[s] = 0;
                if (t > 0) {
                    for (s = 0; s < i - 1; s++) {
                        var l = r.LevelAttrs[s].Items;
                        if (t >= l[0])
                            if (t < r.LevelAttrs[s + 1].Items[0])
                                for (var c = 1; c < l.length; c += 2) a[c] += l[c + 1] * (t - l[0] + 1);
                            else
                                for (c = 1; c < l.length; c += 2) a[c] += l[c + 1] * (r.LevelAttrs[s + 1].Items[0] - l[0])
                    }
                    var u = r.LevelAttrs[i - 1].Items;
                    if (t >= u[0])
                        for (c = 1; c < u.length; c += 2) a[c] += u[c + 1] * (t - u[0] + 1)
                }
                for (s = 0; s < a.length; s += 2) a[s] = r.StarAttrs[n - 1].Items[s], a[s + 1] += r.StarAttrs[n - 1].Items[s + 1];
                return a
            }, e.CheckIsSelfBattleWin = function(e, n) {
                void 0 === n && (n = !1);
                var o = !1;
                return e.Players[0].Uid == f.DataCenter.Instance.Uid && e.Players[0].Camp == d.CampType.Attacker || e.Players[1].Uid == f.DataCenter.Instance.Uid && e.Players[1].Camp == d.CampType.Attacker ? e.Result == d.BattleResult.AttackerWin ? o = !0 : e.Result == d.BattleResult.Timeout && n && (o = t.CheckPerMilHpIsAttackWIn(e)) : e.Result == d.BattleResult.DefenderWin ? o = !0 : e.Result == d.BattleResult.Timeout && (o = !n || !t.CheckPerMilHpIsAttackWIn(e)), o
            }, e.CheckPerMilHpIsAttackWIn = function(e) {
                for (var t = 0, n = 0, o = 0, r = e.Heros; o < r.length; o++) {
                    var i = r[o];
                    if (!(i.Id < 0)) {
                        var a = null != i.StatHp ? Math.ceil(1e3 * i.StatHp / i.StatHpMax) : 1e3;
                        switch (i.Camp) {
                            case d.CampType.Attacker:
                                t += a;
                                break;
                            case d.CampType.Defender:
                                n += a
                        }
                    }
                }
                return t >= n
            }, e.GetMainSceneLockState = function(e) {
                var t = f.DataCenter.Instance.GetDataById(y.MainSceneBackground_Model, e);
                return !t || !(t.IsPerpetual || t.Time - A.RpcComponent.Instance.ServerTime > 0)
            }, e.GetCurrentSelctedMainSceneInfo = function() {
                var e = f.DataCenter.Instance.GetArrayData(g.UserDataKey.MainBackground);
                if (!(e && e.length > 0)) return null;
                for (var t = 0; t < e.length; t++)
                    if (e[t] > 0) return [e[t], t]
            }, e.GetGiftPack = function(e, t) {
                var n, o = f.DataCenter.Instance.GetActivityConfigsByActId(e);
                if (o) {
                    var r = o._Packs;
                    if (r)
                        for (var i = 0; i < r.length; i++) {
                            var a = r[i];
                            if (a.Id == t) {
                                n = a;
                                break
                            }
                        }
                }
                return n
            }, e.GetCurrencyItemCount = function() {
                var e = f.DataCenter.Instance.GetItemCount(B.default.Instance.CurrencyItemID);
                return (e /= 100) > 1e4 ? e.FmtCurrency() : e
            }, e.GetDiscountTickets = function(e) {
                for (var t = [], n = f.DataCenter.Instance.GetDataList(y.CurrencyDiscountTicket_Model), o = 0; o < n.length; o++)
                    if (!(n[o].Time <= f.RpcComponent.Instance.ServerTime)) {
                        var r = f.ConfigDataComponent.Instance.GetConfigById(h.ItemCurrencyDiscount_Config, n[o].ItemId);
                        0 != r.NewPrice && r.Type == e && t.push(n[o])
                    } return t
            }, e.GetVoucherTickets = function(e) {
                for (var t = [], n = f.DataCenter.Instance.GetDataList(y.CurrencyDiscountTicket_Model), o = 0; o < n.length; o++)
                    if (!(n[o].Time <= f.RpcComponent.Instance.ServerTime)) {
                        var r = f.ConfigDataComponent.Instance.GetConfigById(h.ItemCurrencyDiscount_Config, n[o].ItemId);
                        0 == r.NewPrice && r.Type == e && t.push(n[o])
                    } return t.sort(this.SortVoucherTickets.bind(this)), t
            }, e.SortVoucherTickets = function(e, t) {
                return e.Time < t.Time ? -1 : e.Time > t.Time ? 1 : 0
            }, e.SortGodSoul = function(e) {
                e.sort(function(e, t) {
                    var n = f.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, e.ItemId),
                        o = f.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, t.ItemId);
                    return n.Level > o.Level ? -1 : n.Level < o.Level ? 1 : n.Quality > o.Quality ? -1 : (n.Quality, o.Quality, 1)
                })
            }, e.GetGodSoulNum = function(e) {
                var t = f.DataCenter.Instance.GetDataList(y.UserGodSoul_Model),
                    n = 0;
                return t.forEach(function(t) {
                    t.ItemId == e && n++
                }), n
            }, e.GetActivityUnlockState = function(e) {
                var n = !0,
                    o = A.DataCenter.Instance.GetIntData(d.UserDataKey.TotalPay);
                if (e.TotalPay && (n = o >= e.TotalPay), !n) return !1;
                var r = !0;
                return e.GameModule && (r = t.Instance.IsGameModuleUnlock(e.GameModule)[0]), !!r
            }, e.GetSkipAnimationState = function(e) {
                var t = f.DataCenter.Instance.GetSimpleData(e);
                return !!t && 1 == t.V
            }, e.GetStarPieceIdByFragmentId = function(e, t) {
                if (t == N.StarTemplePieceType.Exclusive) {
                    for (var n = f.ConfigDataComponent.Instance.GetArrayConfig(h.ExclusiveWeapon_Config), o = 0; o < n.length; o++)
                        if (n[o].PieceId == e) return n[o].Id
                } else if (t == N.StarTemplePieceType.SuperWeapon) {
                    for (n = f.ConfigDataComponent.Instance.GetArrayConfig(h.SuperWeapon_Config), o = 0; o < n.length; o++)
                        if (n[o].PieceId == e) return n[o].Id
                } else {
                    var r = f.ConfigDataComponent.Instance.GetArrayConfig(h.StarPiece_Config);
                    for (o = 0; o < r.length; o++)
                        if (r[o].ItemId == e) return r[o].Id
                }
                return 0
            }, e.GetNewYearWeaponPieceIdByFragmentId = function(e) {
                for (var t = f.ConfigDataComponent.Instance.GetArrayConfig(h.NewYearWeapon_Config), n = 0; n < t.length; n++)
                    if (t[n].PieceId == e) return t[n].Id;
                return 0
            }, e.GetIncrementalCount = function(e, t, n, o) {
                void 0 === n && (n = 0), void 0 === o && (o = 1);
                for (var r = n + t, i = 0, a = e.length - 1; a >= 0 && r != n; a--) {
                    var s = e[a].Items[0],
                        l = e[a].Items[o];
                    if (r >= s) {
                        var c = Math.max(s - 1, n);
                        i += (r - c) * l, r = c
                    }
                }
                return i
            }, e.GetSummonCurrencyIdBySummonType = function(e, t) {
                void 0 === t && (t = 0);
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.CardCommonSummon_Config, e);
                return n ? n.ConsumeItem[t].Items[0] : 0
            }, e.GetRankRewardData = function(e, t) {
                if (!t) return null;
                var n = null;
                return e.forEach(function(e) {
                    var o = e.Rank[0],
                        r = e.Rank[1];
                    t >= o && t <= r ? n = e : t >= o && 0 == r && (n = e)
                }), n
            }, e.GetChampionShipOpenTime = function(e) {
                var n, o;
                void 0 === e && (e = q.ChampionShipType.Normal);
                var r = b.TimeUtil.GetWeekDay(f.RpcComponent.Instance.ServerTime);
                switch (e) {
                    case q.ChampionShipType.Normal:
                        f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, d.LevelParamType.ChampionRaceWeekDays).Data, (n = t.GetCrossServerChampionShipStartWeekDay()) < r && (n += 7), o = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossChampionRaceStartHour");
                        break;
                    case q.ChampionShipType.AllZone:
                        n = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllZoneChampionRaceStartWeekDay"), o = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllZoneChampionRaceStartHour")
                }
                return this.GetIndexClockTs(n, o)
            }, e.GetCrossServerChampionShipStartWeekDay = function() {
                for (var e = T.TimeUtil.GetWeekDay(f.RpcComponent.Instance.ServerTime), t = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, g.LevelParamType.ChampionRaceWeekDays).Data, n = 0; n < t.length; n++)
                    if (t[n] >= e) return t[n];
                return t[0]
            }, e.GetCrossServerChampionShipNextStartDay = function(e) {
                for (var t = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, g.LevelParamType.ChampionRaceWeekDays).Data, n = 0; n < t.length; n++)
                    if (t[n] > e) return t[n];
                return t[0]
            }, e.GetChampionShipRoundStringByRound = function(e, n, o) {
                var r;
                return n <= (r = o || (e == q.ChampionShipType.Normal ? f.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceScoreRound") : 0)) ? "CrossServerChampionShip_GuessInGropuStateTitle".ToUILocale().Fmt(n) : n != r + j.ChampionShipRound.RACE_64_ROUND + j.ChampionShipRound.RACE_8_ROUND ? "CrossServerChampionShip_GuessIn64And8Title".ToUILocale().Fmt(t.ChampionShipGetPlayerLeftByRound(e, n)) : "CrossServerChampionShip_FinalRaceTitle".ToUILocale()
            }, e.ChampionShipGetPlayerLeftByRound = function(e, t) {
                var n = e == q.ChampionShipType.Normal ? f.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceScoreRound") : 0;
                return 64 / Math.pow(2, t - n - 1)
            }, e.SetServerRecordString = function(e, t, n) {
                var o = new y.Req_Game_SetFrontStatusData;
                o.Type = e, o.Value = t, f.RpcComponent.Instance.Call(o, function() {
                    n && n()
                })
            }, e.GetServerRecordString = function(e) {
                return A.DataCenter.Instance.GetStringData(e)
            }, e.SetServerRecordNumber = function(e, t) {
                var n = [],
                    o = f.DataCenter.Instance.GetSimpleData(g.UserDataKey.SkipOrNotPrompt);
                o && (n = o.IntArray);
                var r = g.FunctionSkipKey.Length;
                if (n.length < r)
                    for (var i = n.length; i < r; i++) i == g.FunctionSkipKey.InfiniteTenSummon || i == g.FunctionSkipKey.ManualBox ? n.push(1) : n.push(0);
                if (I.EZLog.Log(n), n[e] != t) {
                    n[e] = t;
                    var a = new y.Req_Player_SetSkip;
                    a.Values = n, f.RpcComponent.Instance.CallWithoutMask(a, function() {})
                }
            }, e.GetServerRecordNumber = function(e) {
                var n = f.DataCenter.Instance.GetSimpleData(g.UserDataKey.SkipOrNotPrompt);
                if (!n || null == n.IntArray[e]) {
                    var o = 0;
                    return e != g.FunctionSkipKey.InfiniteTenSummon && e != g.FunctionSkipKey.ManualBox || (o = 1), t.SetServerRecordNumber(e, o), o
                }
                return n.IntArray[e]
            }, e.SetFunctionSkipState = function(e, t, n) {
                var o = [],
                    r = f.DataCenter.Instance.GetSimpleData(g.UserDataKey.SkipOrNotPrompt);
                r && (o = r.IntArray);
                var i = g.FunctionSkipKey.Length;
                if (o.length < i)
                    for (var a = o.length; a < i; a++) a == g.FunctionSkipKey.InfiniteTenSummon || a == g.FunctionSkipKey.ManualBox ? o.push(1) : o.push(0);
                I.EZLog.Log(o);
                var s = t ? 1 : 0;
                if (o[e] != s) {
                    o[e] = s;
                    var l = new y.Req_Player_SetSkip;
                    l.Values = o, f.RpcComponent.Instance.CallWithoutMask(l, function() {
                        n && n()
                    })
                }
            }, e.GetFunctionSkipState = function(e) {
                var n = f.DataCenter.Instance.GetSimpleData(g.UserDataKey.SkipOrNotPrompt);
                if (!n || null == n.IntArray[e]) {
                    var o = 0;
                    return e != g.FunctionSkipKey.InfiniteTenSummon && e != g.FunctionSkipKey.ManualBox || (o = 1), t.SetFunctionSkipState(e, 1 == o), 1 == o
                }
                return 1 == n.IntArray[e]
            }, e.GetCrossServerChampionShipRankData = function(e) {
                var t = 0,
                    n = Math.pow(2, j.ChampionShipRound.RACE_64_ROUND + j.ChampionShipRound.RACE_8_ROUND);
                return e.Data.Rows.forEach(function(e, o) {
                    var r = Math.pow(2, t);
                    o >= n ? e.Value = -1 : o < r ? e.Value = j.ChampionShipRound.RACE_64_ROUND + j.ChampionShipRound.RACE_8_ROUND - t : o < Math.pow(2, t + 1) && o < n && (e.Value = j.ChampionShipRound.RACE_64_ROUND + j.ChampionShipRound.RACE_8_ROUND - t - 1, t++)
                }), 0 == e.MyRank ? (e.MyRankData = new y.RankRowData, e.MyRankData.Value = -1) : e.MyRankData.Value = e.Data.Rows[e.MyRank - 1].Value, e
            }, e.ActivityPreTaskrelationship = function(e) {
                var t = {};
                return e.forEach(function(e) {
                    e.PreTask ? (t[e.PreTask] ? t[e.PreTask].backTaskId = e.Id : t[e.PreTask] = {
                        frontTasKId: void 0,
                        backTaskId: e.Id
                    }, t[e.Id] ? t[e.Id].frontTasKId = e.PreTask : t[e.Id] = {
                        frontTasKId: e.PreTask,
                        backTaskId: void 0
                    }) : t[e.Id] || (t[e.Id] = {
                        frontTasKId: void 0,
                        backTaskId: void 0
                    })
                }), t
            }, e.GetActivityTaskCanShow = function(e, n) {
                var o = t.ActivityPreTaskrelationship(e),
                    r = [];
                return Object.keys(o).forEach(function(e) {
                    var t, i = o[e];
                    i.frontTasKId && (t = f.DataCenter.Instance.GetDataById(y.UserTask_Model, i.frontTasKId + 1e4 * n)) && 0 == t.IsCompleted || i.backTaskId && (t = f.DataCenter.Instance.GetDataById(y.UserTask_Model, Number(e) + 1e4 * n)) && t.IsCompleted || r.push(Number(e))
                }), r
            }, e.ChaosHeroCanReplaceElement = function(e, t) {
                var n = A.ConfigDataComponent.Instance.GetConfigById(h.HeroStar_Config, e);
                return !!n && n.ChaosExtraAddon.length > 0 && n.ChaosExtraAddon[0].Items[0] >= t
            }, e.GetStrongholdWarTeamState = function(e) {
                for (var t = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, g.LevelParamType.AllianceCityWarFormationUnlock), n = 0; n < t.Data2.length; n++) {
                    var o = t.Data2[n].Items;
                    if (e == o[0]) return f.DataCenter.Instance.GetIntData(g.UserDataKey.PlayerLevel) >= o[1] ? 0 : o[1]
                }
            }, e.GetAngelActiveSkills = function(e, n) {
                var o = [],
                    r = A.DataCenter.Instance.GetDataById(y.UserAngel_Model, e),
                    i = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, g.LevelParamType.AngelSkillPosUnlock);
                if (r)
                    for (var a = 0; a < 3; a++) {
                        var s = {};
                        r.Skills[a] ? (s.SkillId = r.Skills[a], s.Level = t.GetAngelSkillLevelBySkillId(e, r.Skills[a], 1), s.Active = !0) : (n >= (l = i.Data2[a].Items[0]) ? (s.Active = !0, s.Level = 0) : (s.Active = !1, s.Level = l), s.SkillId = 0), o.push(s)
                    } else
                        for (a = 0; a < 3; a++) {
                            var l;
                            s = {}, n >= (l = i.Data2[a].Items[0]) ? (s.Active = !0, s.Level = 0) : (s.Active = !1, s.Level = l), s.SkillId = 0, o.push(s)
                        }
                return o
            }, e.GetAngelSkillLevelBySkillId = function(e, n, o) {
                var r = t.GetAngelSkillUnlockLevel(e, n, o);
                return r && r.level ? r.level : 1
            }, e.GetAngelGlobalSkills = function(e, n) {
                for (var o = [], r = f.ConfigDataComponent.Instance.GetConfigById(h.AngelStar_Config, 1e3 * e + n), i = 0; i < 2; i++) {
                    var a = {};
                    if (r && r.GlobalSkills.length > 0 && r.GlobalSkills[i] > 0) {
                        var s = t.GetAngelSkillLevelBySkillId(e, r.GlobalSkills[i], 2);
                        a.SkillId = r.GlobalSkills[i], a.Level = s, a.Active = !0
                    } else {
                        var l = t.GetAngelGlobalSkillUnlockStar(e, i);
                        a.SkillId = 0, a.Level = l, a.Active = !1
                    }
                    o.push(a)
                }
                return o
            }, e.GetAngelGlobalSkillUnlockStar = function(e, t) {
                var n = 0,
                    o = f.ConfigDataComponent.Instance.GetConfigById(h.AngelBase_Config, e);
                if (o)
                    for (var r = 1e3 * e, i = r + o.MaxStarLevel, a = r; a <= i; a++) {
                        var s = f.ConfigDataComponent.Instance.GetConfigById(h.AngelStar_Config, a);
                        if (s && s.GlobalSkills.length > 0 && s.GlobalSkills[t] > 0) {
                            n = a - r;
                            break
                        }
                    }
                return n
            }, e.GetSkillTypeStr = function(e) {
                return ["", "normalAttack", "activeSkill", "passiveSkill", "PowerCore_Type", "petSkillType", "angleSkillType", "urSkillType", "", "lrSkillType"][e].ToUILocale()
            }, e.GetAngelSouls = function(e) {
                var t = [],
                    n = A.DataCenter.Instance.GetDataById(y.UserAngel_Model, e);
                if (n) {
                    var o = f.DataCenter.Instance.GetAngelSoul(e),
                        r = [];
                    o.forEach(function(e) {
                        var t = A.DataCenter.Instance.GetDataById(y.UserGodSoul_Model, e);
                        t && r.push(t)
                    });
                    for (var i = f.ConfigDataComponent.Instance.GetArrayConfig(h.AngelFatePage_Config), a = f.ConfigDataComponent.Instance.GetArrayConfig(h.AngelGodSoul_Config), s = function(e, t) {
                            e.Active = !0;
                            var n = r.find(function(e) {
                                return e.SlotId == t
                            });
                            if (n) {
                                e.SkillId = n.Sid;
                                var o = a.find(function(e) {
                                    return e.Id == n.ItemId
                                });
                                e.Level = o ? o.Level : 0
                            } else e.SkillId = 0, e.Level = 0
                        }, l = function(e) {
                            var o = {},
                                r = f.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoulPos_Config, e);
                            if (r.FatePoint > 0)
                                if (n.FatePoints.indexOf(r.FatePoint) > -1) s(o, e);
                                else {
                                    o.Active = !1, o.SkillId = 0;
                                    var a = i.find(function(e) {
                                        return e.FateIds[1] == r.FatePoint
                                    });
                                    o.Level = a ? a.Id - 1e3 : 0
                                }
                            else s(o, e);
                            t.push(o)
                        }, c = 1; c < 6; c++) l(c)
                }
                return t
            }, e.GetAngelSkillUnlockLevel = function(e, t, n) {
                var o = {},
                    r = f.ConfigDataComponent.Instance.GetConfigById(h.AngelBase_Config, e);
                if (1 == n) {
                    for (var i = 0; i < r.Skills.length; i++)
                        if ((u = (c = r.Skills[i]).Items.findIndex(function(e) {
                                return e == t
                            })) > -1) return o.skillIds = c.Items, o.level = u + 1, o;
                    var a = f.ConfigCacheComponent.Instance.GetAngelGodAvatars(e);
                    if (a.length > 0)
                        for (i = 0; i < a.length; i++) {
                            var s = f.ConfigDataComponent.Instance.GetConfigById(h.AngelGodAvatar_Config, a[i]);
                            if (s && s.Skills.length > 0)
                                for (var l = 0; l < s.Skills.length; l++)
                                    if ((u = (c = s.Skills[l]).Items.findIndex(function(e) {
                                            return e == t
                                        })) > -1) return o.skillIds = c.Items, o.level = u + 1, o
                        }
                } else if (2 == n)
                    for (i = 0; i < r.GlobalSkills.length; i++) {
                        var c, u;
                        if ((c = r.GlobalSkills[i]) && (u = c.Items.findIndex(function(e) {
                                return e == t
                            })) > -1) return o.skillIds = c.Items, o.level = u + 1, o
                    }
                return o
            }, e.GetAngelSkillUnlockCondition = function(e, t, n) {
                if (1 == n)
                    for (var o = f.ConfigDataComponent.Instance.GetArrayConfig(h.AngelFatePage_Config), r = 0; r < o.length; r++) {
                        var i = f.ConfigDataComponent.Instance.GetConfigById(h.AngelFate_Config, o[r].FateIds[1]);
                        if (i && i.GlobalSkills.length > 0)
                            for (var a = 0; a < i.GlobalSkills.length; a++)
                                if ((d = i.GlobalSkills[a]).Items[0] == e)
                                    for (var s = 1; s < d.Items.length; s++)
                                        if (d.Items[s] == t) return r + 1
                    } else if (2 == n)
                        for (var l = 1e3 * e, c = l + f.ConfigDataComponent.Instance.GetConfigById(h.AngelBase_Config, e).MaxStarLevel, u = l; u <= c; u++) {
                            var p = f.ConfigDataComponent.Instance.GetConfigById(h.AngelStar_Config, u);
                            for (a = 0; a < p.GlobalSkills.length; a++) {
                                var d;
                                if ((d = p.GlobalSkills[a]) == t) return u - l
                            }
                        }
                return 0
            }, e.GetAngelFormationIds = function(e) {
                var t = [],
                    n = A.DataCenter.Instance.GetDataList(y.UserFormation_Model);
                if (n && n.length > 0)
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        r.Angel && r.Angel.AngelId == e && t.push(n[o].Sid)
                    }
                return t
            }, e.CheckIsSameFormationGroup = function(e, t) {
                if (e.length > 0)
                    for (var n = 0; n < e.length; n++) {
                        var o = e[n],
                            r = A.ConfigDataComponent.Instance.GetConfigById(h.FormationInstance_Config, o);
                        if (r && r.Group == t) return !0
                    }
                return !1
            }, e.GetDistance = function(e, t) {
                return e.sub(t).mag()
            }, e.GetAngle = function(e, t) {
                var n = t.x - e.x,
                    o = t.y - e.y;
                return -cc.v2(n, o).signAngle(cc.v2(1, 0)) / Math.PI * 180
            }, e.GetUserTitleData = function() {
                return r(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return i(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e = f.DataCenter.Instance.GetSimpleData(g.UserDataKey.Designation), t = e ? e.V : 0, n = f.ConfigDataComponent.Instance.GetConfig(h.Designation_Config), [4, m.UIUtlity.GetUserDesignationAtlas()];
                            case 1:
                                return o = i.sent(), (r = n[t] ? n[t].Id : void 0) ? [2, {
                                    id: r,
                                    nowLevel: t,
                                    name: n[t].Id.ToDesignationName(),
                                    spriteFrame: o.getSpriteFrame("TitleIcon_" + t)
                                }] : [2]
                        }
                    })
                })
            }, e.GetAngelGodSoulData = function(e) {
                var t = f.DataCenter.Instance.GetDataList(y.UserGodSoul_Model);
                if (t) {
                    var n = [];
                    return t.forEach(function(t) {
                        t && t.OwnerId == e && t.SlotId && n.push({
                            slotId: t.SlotId,
                            soulSid: t.Sid
                        })
                    }), n
                }
            }, e.GetUserTitleIconById = function(e) {
                return r(this, void 0, void 0, function() {
                    return i(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, m.UIUtlity.GetUserDesignationAtlas()];
                            case 1:
                                return [2, t.sent().getSpriteFrame("TitleIcon_" + e)]
                        }
                    })
                })
            }, e.CheckHeroSkinCanBuy = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, e);
                if (t && t.SubType == d.ConsumeItemType.HeroSkin) {
                    var n = t.Param[0].Items[0],
                        o = A.DataCenter.Instance.GetDataById(y.HeroSkin_Model, n);
                    if (o && o.IsPerpetual) return !1
                }
                return !0
            }, e.CheckHeroSkinIsMaxLevel = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, e);
                if (t && t.SubType == d.ConsumeItemType.HeroSkin) {
                    var n = t.Param[0].Items[0],
                        o = A.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, n);
                    if (V.default.GetSkinPackRemainCount(n, o, 1)[1]) return !0
                }
                return !1
            }, e.CheckActivityFirstPayIsExist = function() {
                var e;
                for (var t in A.DataCenter.Instance.ActivityConfigs) {
                    var n = A.DataCenter.Instance.ActivityConfigs[t];
                    if (n.Common.Type == d.ActivityType.FirstPay) {
                        e = n._id;
                        break
                    }
                }
                if (e)
                    for (var o = A.DataCenter.Instance.ActivityConfigs[e], r = A.DataCenter.Instance.GetDataById(y.UserActivity_Model, e), i = function(t) {
                            var n = o._Packs[t],
                                i = r.Int2DArray.find(function(e) {
                                    return e.Items[0] == n.Id
                                });
                            if (!i || 0 == i.Items[1]) return {
                                value: e
                            }
                        }, a = 0; a < o._Packs.length; a++) {
                        var s = i(a);
                        if ("object" == typeof s) return s.value
                    }
                return null
            }, e.ShowActivityFirstPayPanel = function(e) {
                void 0 === e && (e = !1);
                var n = t.CheckActivityFirstPayIsExist();
                n ? S.UIManager.Instance.ShowUIPanel(C.PanelConfig.ActivityFirstPayPanel.Path, n) : e && S.UIManager.Instance.ShowUIPanel(C.PanelConfig.MallNewPanel.Path)
            }, e.GetPersonalRequiredStar = function(e, t) {
                for (var n = 0; n < e.AdultPictures.length; n++) {
                    var o = e.AdultPictures[n];
                    if (o.Items[0] == t) return o.Items[1]
                }
            }, e.SetDesignationIcon = function(e, n) {
                return r(this, void 0, void 0, function() {
                    var o, r, a;
                    return i(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return n ? (o = t.Instance.IsGameModuleOpen(d.GameModuleType.Designation), r = t.Instance.IsGameModuleUnlock(d.GameModuleType.Designation)[0], o && r ? e ? [4, t.GetUserTitleIconById(e)] : (n.node.active = !1, [2]) : [3, 2]) : [2];
                            case 1:
                                return (a = i.sent()) ? (n.sizeMode = cc.Sprite.SizeMode.TRIMMED, n.spriteFrame = a, n.node.active = !0, [3, 3]) : (n.node.active = !1, [2]);
                            case 2:
                                n.node.active = !1, i.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, e.CheckEffectiveCondtion = function(e) {
                if (!(e instanceof Array) || e.length < 1) return !0;
                for (var n = function(n) {
                        var o = e[n];
                        switch (o.Items[0]) {
                            case d.EffectiveCondtionType.MainLineProgress:
                                var r = f.DataCenter.Instance.GetIntData(d.UserDataKey.MainLineProgress);
                                if (o.Items[1] && o.Items[1] > r) return {
                                    value: !1
                                };
                                if (o.Items[2] && o.Items[2] < r) return {
                                    value: !1
                                };
                                break;
                            case d.EffectiveCondtionType.PlayerLevel:
                                var i = f.DataCenter.Instance.GetIntData(d.UserDataKey.PlayerLevel);
                                if (o.Items[1] && o.Items[1] > i) return {
                                    value: !1
                                };
                                if (o.Items[2] && o.Items[2] < i) return {
                                    value: !1
                                };
                                break;
                            case d.EffectiveCondtionType.Designation:
                                var a = f.DataCenter.Instance.GetIntData(d.UserDataKey.Designation);
                                if (o.Items[1] && o.Items[1] > a) return {
                                    value: !1
                                };
                                if (o.Items[2] && o.Items[2] < a) return {
                                    value: !1
                                };
                                break;
                            case d.EffectiveCondtionType.HighestPower:
                                if (a = f.DataCenter.Instance.GetIntData(d.UserDataKey.HighestPower), o.Items[1] && o.Items[1] > a) return {
                                    value: !1
                                };
                                if (o.Items[2] && o.Items[2] < a) return {
                                    value: !1
                                };
                                break;
                            case d.EffectiveCondtionType.StoryTask:
                                var s = void 0;
                                for (var l in f.DataCenter.Instance.ActivityConfigs) {
                                    var c = f.DataCenter.Instance.ActivityConfigs[l];
                                    if (c.Common.Type == g.ActivityType.Story) {
                                        s = c;
                                        break
                                    }
                                }
                                if (!s) return {
                                    value: !1
                                };
                                for (var u = A.DataCenter.Instance.GetDataById(y.UserActivity_Model, s._id), p = 0, h = function(e) {
                                        var t = o.Items[e],
                                            n = s.__TaskGroup.find(function(e) {
                                                return e.TaskIds.includes(t)
                                            });
                                        if (!n) return {
                                            value: !1
                                        };
                                        if (p = n.Id, n.UnlockCon[0] && u.IntArray[1] < n.UnlockCon[0]) return p = 0, "break";
                                        if (n.UnlockCon[1]) {
                                            for (var r = s.__TaskGroup.find(function(e) {
                                                    return e.Id == n.UnlockCon[1]
                                                }), i = !0, a = 0; a < r.TaskIds.length; a++) {
                                                var l = r.TaskIds[a],
                                                    c = A.DataCenter.Instance.GetDataById(y.UserTask_Model, s._id * g.Etc.Multiplier + l);
                                                if (!c || !c.IsCompleted) {
                                                    i = !1;
                                                    break
                                                }
                                            }
                                            if (!i) return p = 0, "break"
                                        }
                                    }, m = 1; m < o.Items.length; m++) {
                                    var I = h(m);
                                    if ("object" == typeof I) return I;
                                    if ("break" === I) break
                                }
                                if (!(p > 0)) return {
                                    value: !1
                                };
                                var _ = s.__Chapter.find(function(e) {
                                    return e.TaskGroupIds.includes(p)
                                });
                                if (!_) return {
                                    value: !1
                                };
                                var C = t.Instance.ComputeDeadTime(s.Common);
                                if (f.RpcComponent.Instance.ServerTime < _.UnlockDay * g.Etc.DayDuration + s.Common.StartTime || f.RpcComponent.Instance.ServerTime > C) return {
                                    value: !1
                                };
                            case d.EffectiveCondtionType.AngelPveProgress:
                                var v = A.DataCenter.Instance.GetIntData(g.UserDataKey.StarLightSecretProgress);
                                if (o.Items[1] && o.Items[1] > v) return {
                                    value: !1
                                };
                                if (o.Items[2] && o.Items[2] < v) return {
                                    value: !1
                                }
                        }
                    }, o = 0; o < e.length; o++) {
                    var r = n(o);
                    if ("object" == typeof r) return r.value
                }
                return !0
            }, e.GetActivityIdByType = function(e) {
                var t = f.DataCenter.Instance.ActivityConfigs;
                for (var n in t) {
                    var o = t[n];
                    if (o.Common.Type == e) return o._id
                }
            }, e.CalculateFitSoulGraphState = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.FighterSpiritGraph_Config, e),
                    n = f.DataCenter.Instance.GetDataById(y.FighterSpirit_Model, 1),
                    o = {
                        Start: !1,
                        SoulEnough: !1,
                        MaterialsEnough: !1,
                        Full: !1
                    };
                n && null != n.GraphStar[e] ? (o.Start = !0, n.GraphStar[e] >= t.MaxStar ? o.Full = !0 : o.Full = !1) : o.Start = !1;
                var r = t.FighterSpiritIds,
                    i = 0;
                for (var a in o.SoulEnough = !0, r) {
                    var s = r[a];
                    if (!f.DataCenter.Instance.GetItemCount(s)) {
                        o.SoulEnough = !1;
                        var l = f.ConfigDataComponent.Instance.GetConfigById(h.FighterSpiritItem_Config, s);
                        if (!l) continue;
                        var c = f.ConfigDataComponent.Instance.GetConfigById(h.ShopItem_Config, l.ShopId);
                        i += c ? c.Price : 0
                    }
                }
                return f.DataCenter.Instance.GetItemCount(g.CommonItemId.FighterSpiritEssence) >= i ? o.MaterialsEnough = !0 : o.MaterialsEnough = !1, o
            }, e.GetSoulRecordSkillUpLevelState = function(e, t) {
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.FighterSpiritChapter_Config, e),
                    o = f.DataCenter.Instance.GetDataById(y.FighterSpirit_Model, 1),
                    r = o && o.ChapterSkills[e] && o.ChapterSkills[e].Items[t - 1] ? o.ChapterSkills[e].Items[t - 1] : 0,
                    i = this.GetSoulRecordChapterValue(e),
                    a = n.SkillsUnlock[t - 1].Items[r],
                    s = n["Consume" + t][r];
                if (s) {
                    var l = f.DataCenter.Instance.GetItemCount(s.Items[0]);
                    return i >= a && l >= s.Items[1]
                }
            }, e.prototype.CreateRpcInitArray = function() {
                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                var n = new y.IntArray,
                    o = 0;
                for (var r in e) n.Items[o] = e[r], o += 1;
                return n
            }, e.SetDiscountInfo = function(e, t) {
                var n = {
                    reduced: 0,
                    need: 0,
                    willreduce: 0
                };
                if (0 == t.TabConfig.length) return e.string = "", n;
                null == t.NowDiscountIndex ? (n.need = t.TabConfig[0].full - t.Price, n.willreduce = t.TabConfig[0].discount) : t.NowDiscountIndex == t.TabConfig.length - 1 ? n.reduced = t.TabConfig[t.NowDiscountIndex].discount : (n.reduced = t.TabConfig[t.NowDiscountIndex].discount, n.need = t.TabConfig[t.NowDiscountIndex + 1].full - t.Price, n.willreduce = t.TabConfig[t.NowDiscountIndex + 1].discount);
                var o;
                return o = 0 != n.reduced ? 0 == n.need ? "Ass_DiscountInfo3".ToUILocale().Fmt(n.reduced) : "Ass_DiscountInfo2".ToUILocale().Fmt(n.reduced, n.need, n.willreduce) : "Ass_DiscountInfo1".ToUILocale().Fmt(n.need, n.willreduce), e.string = o, n
            }, e.GetSoulRecordChapterValue = function(e) {
                var t = f.DataCenter.Instance.GetDataById(y.FighterSpirit_Model, 1);
                return t && t.ChapterValue[e] ? t.ChapterValue[e] : 0
            }, e.GetSummonActivityElementType = function(e) {
                var t, n, o, r, i, a, s;
                if (!e) return 0;
                var l = d.HeroElementType,
                    c = d.CoreHeroTag;
                return ((t = {})[l.Heart] = ((n = {})[c.Normal] = l.Heart, n[c.Core] = l.Heart, n[c.SP] = l.SPCombine3, n[c.UR] = l.URCombine3, n[c.LR] = l.LRCombine3, n), t[l.Power] = ((o = {})[c.Normal] = l.Heart, o[c.Core] = l.Heart, o[c.SP] = l.SPCombine3, o[c.UR] = l.URCombine3, o[c.LR] = l.LRCombine3, o), t[l.Tech] = ((r = {})[c.Normal] = l.Heart, r[c.Core] = l.Heart, r[c.SP] = l.SPCombine3, r[c.UR] = l.URCombine3, r[c.LR] = l.LRCombine3, r), t[l.Break] = ((i = {})[c.Normal] = l.Break, i[c.Core] = l.Break, i[c.SP] = l.SPCombine2, i[c.UR] = l.URCombine2, i[c.LR] = l.LRCombine2, i), t[l.Fight] = ((a = {})[c.Normal] = l.Break, a[c.Core] = l.Break, a[c.SP] = l.SPCombine2, a[c.UR] = l.URCombine2, a[c.LR] = l.LRCombine2, a), t[l.Chaos] = ((s = {})[c.Normal] = l.Chaos, s[c.Core] = l.Chaos, s[c.SP] = l.SPChaos, s[c.UR] = l.URChaos, s[c.LR] = l.LRChaos, s), t)[e.ElementType][e.CoreHero]
            }, e.BinarySearch = function(e, t) {
                var n = e.length;
                if (!n) return -1;
                for (var o = 0, r = n - 1; o <= r;) {
                    var i = Math.floor((o + r) / 2),
                        a = e[i];
                    if (t < a) r = i - 1;
                    else if (t > a) o = i + 1;
                    else if (t === a) return i
                }
                return -1
            }, e.JudgeObjectEmpty = function(e) {
                for (var t in e) return !1;
                return !0
            }, e.GetHeroGrading = function(e) {
                var t = A.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e);
                return t.CoreHero == d.CoreHeroTag.LR ? d.HeroGrading.LR : t.ElementType == d.HeroElementType.Chaos ? d.HeroGrading.Chaos : t.CoreHero == d.CoreHeroTag.UR ? d.HeroGrading.UR : t.CoreHero == d.CoreHeroTag.SP ? d.HeroGrading.SP : t.CoreHero == d.CoreHeroTag.Core ? d.HeroGrading.Core : 12 == t.MaxStarLevel ? d.HeroGrading.Normal : t.StarLevel
            }, e.GetProgressRewardsByType = function(e) {
                var t, n = d.ProgressRewardsType,
                    o = d.UserDataKey,
                    r = d.LevelParamType,
                    i = d.CommonItemId,
                    a = ((t = {})[n.Senior] = {
                        data: o.ProgressRewardsSenior,
                        param: r.ProgressRewardsSenior,
                        item: i.ProgressRewardsSenior
                    }, t[n.Personality] = {
                        data: o.ProgressRewardsPersonality,
                        param: r.ProgressRewardsPersonality,
                        item: i.ProgressRewardsPersonality
                    }, t[n.Daily] = {
                        data: o.ProgressRewardsDaily,
                        param: r.ProgressRewardsDaily,
                        item: i.ProgressRewardsDaily
                    }, t);
                if (a[e]) {
                    var s = {
                            value: 0,
                            maxValue: 0,
                            itemId: 0
                        },
                        l = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, a[e].param),
                        c = f.DataCenter.Instance.GetIntData(a[e].data),
                        u = l.Data2.reduce(function(e, t) {
                            return e + t.Items[0]
                        }, 0),
                        p = f.DataCenter.Instance.GetItemCount(a[e].item);
                    p += c % u - c, c %= u;
                    for (var y, g, m = p >= u ? u : p, I = Math.floor(p / u) - 1, _ = p >= u ? p % u : 0, C = 0, v = 0, b = l.Data2; v < b.length; v++) {
                        var S = b[v],
                            w = S.Items[0],
                            P = S.Items[1];
                        c >= C && c < C + w && (s.value = p - C, s.maxValue = w, y = S.Items), C += w, (I > 0 || C > c && C <= m || C <= _) && (!g || g[1] < P) && (g = S.Items)
                    }
                    var A = g || y;
                    return s.itemId = A[2], s
                }
            }, e.GetHeroElementIncludeElement = function(e) {
                var t, n = ((t = {})[d.HeroElementType.All] = [1, 2, 3, 4, 5, 6], t[d.HeroElementType.Heart] = [1], t[d.HeroElementType.Power] = [2], t[d.HeroElementType.Tech] = [3], t[d.HeroElementType.Break] = [4], t[d.HeroElementType.Fight] = [5], t[d.HeroElementType.Chaos] = [6], t[d.HeroElementType.SPHeart] = [1], t[d.HeroElementType.SPPower] = [2], t[d.HeroElementType.SPTech] = [3], t[d.HeroElementType.SPBreak] = [4], t[d.HeroElementType.SPFight] = [5], t[d.HeroElementType.SPChaos] = [6], t[d.HeroElementType.Combine5] = [1, 2, 3, 4, 5], t[d.HeroElementType.Combine3] = [1, 2, 3], t[d.HeroElementType.Combine2] = [4, 5], t[d.HeroElementType.SPCombine5] = [1, 2, 3, 4, 5], t[d.HeroElementType.SPCombine3] = [1, 2, 3], t[d.HeroElementType.SPCombine2] = [4, 5], t);
                return n[e] ? n[e] : []
            }, e.GetCurrentCareerMaxLevelLimit = function(e) {
                if (0 == e) {
                    if (o = f.DataCenter.Instance.GetSimpleData(g.UserDataKey.ExclusiveWeaponGalleryLevel).IntArray) {
                        for (var t = Math.min(o[1], o[2]), n = 1; n < o.length; n++) t = Math.min(t, o[n]);
                        return t
                    }
                    return 1
                }
                var o, r = (o = f.DataCenter.Instance.GetSimpleData(g.UserDataKey.ExclusiveWeaponGalleryLevel).IntArray) ? o[0] : 1,
                    i = f.ConfigDataComponent.Instance.GetArrayConfig(h.ExclusiveWeaponGalleryLevel_Config);
                if (i[r - 1].LevelLimit) return i[r - 1].LevelLimit;
                for (n = r - 1; n > 0; n--)
                    if (i[n].LevelLimit) return i[n].LevelLimit
            }, e.GetExclusiveGalleryTalentRedDotState = function(e) {
                var n = f.DataCenter.Instance.GetSimpleData(g.UserDataKey.ExclusiveWeaponGalleryLevel).IntArray,
                    o = f.ConfigDataComponent.Instance.GetArrayConfig(h.ExclusiveWeaponGalleryLevel_Config).length,
                    r = t.GetCurrentCareerMaxLevelLimit(e),
                    i = n ? n[e] : 1;
                if (i < r && i < o) {
                    if (0 == e) return !0;
                    var a = f.ConfigDataComponent.Instance.GetConfigById(h.ExclusiveWeaponGalleryLevel_Config, i),
                        s = f.ConfigDataComponent.Instance.GetConfigById(h.ExclusiveWeaponGalleryLevel_Config, i + 1),
                        l = W.default.UPGRADE_MATERIAL_KEY_BY_CAREER_TYPE[e],
                        c = s[l],
                        u = c[0].Items[0],
                        p = a[l].length > 0 ? a[l][0].Items[1] : 0,
                        d = c[0].Items[1] - p;
                    if (f.DataCenter.Instance.IsItemEnough(u, d)) return !0
                }
                return !1
            }, e.ShowFlyingItems = function(e, t, n, o, a, s) {
                return void 0 === a && (a = 5), void 0 === s && (s = .2), r(this, void 0, void 0, function() {
                    var r, l, c, u, p;
                    return i(this, function() {
                        for (r = 0; r < e.length; r++)
                            for (l = t[r], c = o[r], u = function(e) {
                                    var t = new cc.Node;
                                    I.EZLog.Log("fly node create ++++++"), t.addComponent(cc.Sprite).spriteFrame = l, t.scale = s, t.parent = n, t.setPosition(new cc.Vec2(n.x + 200 * Math.random() - 100, n.y + 200 * Math.random() - 100));
                                    var o = c.parent.convertToWorldSpaceAR(c.position),
                                        r = n.parent.convertToNodeSpaceAR(o);
                                    cc.tween(t).delay(.06 * e).call(function() {
                                        t.active = !0
                                    }).to(.3, {
                                        x: r.x,
                                        y: r.y
                                    }, {
                                        easing: "sineIn"
                                    }).call(function() {
                                        t.active = !1, t.removeFromParent(), t.destroy(), I.EZLog.Log("fly node desctroy -----")
                                    }).start()
                                }, p = 0; p < a; p++) u(p);
                        return [2]
                    })
                })
            }, e.GetHeroArtifactId = function(e) {
                var t = A.DataCenter.Instance.GetDataList(y.Artefact_Model);
                if (t.length > 0)
                    for (var n = 0; n < t.length; n++)
                        if (t[n].Owners.includes(e)) return t[n].Sid;
                return 0
            }, e.prototype.HolyRelicPickHero = function(e, t) {
                void 0 === t && (t = 0);
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.ArtefactRelicMap_Config, e),
                    o = n.Conditions;
                t = n.MapIds.length;
                var r = {},
                    i = {},
                    a = 0,
                    s = 5 * t;
                o.forEach(function(e) {
                    var t = e.Items[0],
                        n = e.Items[1];
                    switch (t) {
                        case 1:
                            r[n] ? r[n] += 1 : r[n] = 1;
                            break;
                        case 2:
                            i[n] ? i[n] += e.Items[2] : i[n] = e.Items[2];
                            break;
                        case 3:
                            a += n
                    }
                });
                var l = [],
                    c = [],
                    u = f.DataCenter.Instance.GetDataList(y.UserHero_Model);
                if (s > u.length) return {
                    success: !1,
                    failMsg: "HeroHandbook_Material_Not_Enough".ToUILocale(),
                    result: this.ConvertHeroListToFormationInfo([], t)
                };
                u.sort(function(e, t) {
                    return e.StarLevel > t.StarLevel ? -1 : e.StarLevel < t.StarLevel ? 1 : t.Power - e.Power
                });
                for (var p = 0; p < u.length; p++) {
                    var d = u[p],
                        g = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, d.HeroId);
                    if (!l[d.HeroId]) {
                        var m = !0;
                        for (var I in r)
                            if (Number(I) && r[I]) {
                                m = !1;
                                break
                            }! m && r[d.HeroId] && (r[d.HeroId]--, c.push(d.Sid), l[d.HeroId] = !0);
                        var _ = !0;
                        for (var I in i)
                            if (i[I]) {
                                _ = !1;
                                break
                            } if (!_ && i[g.ElementType] && (l[d.HeroId] || (i[g.ElementType]--, c.push(d.Sid), l[d.HeroId] = !0)), _ && m) break
                    }
                }
                var C = !0;
                for (var I in r)
                    if (Number(I) && r[I]) {
                        C = !1;
                        break
                    } if (!C) return {
                    success: !1,
                    failMsg: "HolyRelic_notHero".ToUILocale(),
                    result: this.ConvertHeroListToFormationInfo([], t)
                };
                var v = !0;
                for (var I in i)
                    if (i[I]) {
                        v = !1;
                        break
                    } if (!v) return {
                    success: !1,
                    failMsg: "HolyRelic_noElement".ToUILocale(),
                    result: this.ConvertHeroListToFormationInfo([], t)
                };
                for (p = 0; p < u.length && (l[(d = u[p]).HeroId] || (c.push(d.Sid), l[d.HeroId] = !0), !(c.length >= s)); p++);
                var b = this.ConvertHeroListToFormationInfo(c, t),
                    S = 0;
                for (p = 0; p < b.length; p++) b[p].forEach(function(e) {
                    var t = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e);
                    t && (S += t.StarLevel)
                });
                return S < a ? {
                    success: !1,
                    failMsg: "HolyRelic_noStar".ToUILocale(),
                    result: this.ConvertHeroListToFormationInfo([], t)
                } : {
                    success: !0,
                    failMsg: "",
                    result: b
                }
            }, e.prototype.HolyRelicCanFight = function(e, t) {
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.ArtefactRelicMap_Config, e).Conditions,
                    o = {},
                    r = {},
                    i = 0;
                n.forEach(function(e) {
                    var t = e.Items[0],
                        n = e.Items[1];
                    switch (t) {
                        case 1:
                            o[n] = 1;
                            break;
                        case 2:
                            r[n] = e.Items[2];
                            break;
                        case 3:
                            i = n
                    }
                });
                for (var a = 0; a < t.length; a++)
                    for (var s = t[a].HeroIds, l = 0; l < s.length; l++) {
                        var c = s[l];
                        if (c) {
                            var u = f.DataCenter.Instance.GetDataById(y.UserHero_Model, c),
                                p = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, u.HeroId);
                            o[u.HeroId] && o[u.HeroId] > 0 && (o[u.HeroId] -= 1), r[p.ElementType] && r[p.ElementType] > 0 && (r[p.ElementType] -= 1), i > 0 && (i -= u.StarLevel)
                        }
                    }
                for (var d in o)
                    if (o[d] > 0) return !1;
                for (var d in r)
                    if (r[d] > 0) return !1;
                return !(i > 0)
            }, e.prototype.HolyRelicPassCheckPoint = function() {
                var e = f.ConfigDataComponent.Instance.GetArrayConfig(h.ArtefactRelic_Config).map(function(e) {
                        return e.Id
                    }),
                    t = 0;
                return e.forEach(function(e) {
                    var n = f.DataCenter.Instance.GetDataById(y.ArtefactRelic_Model, e);
                    n && (t += 10 * n.Index + n.MapIndex + 1)
                }), t
            }, e.prototype.HolyRelicGetUserEqu = function() {
                for (var e = [], t = 1; t <= 4; t++) e.push(this.HolyRelicGetSomeTypeEqu(t));
                return e
            }, e.prototype.HolyRelicGetSomeTypeEqu = function(e) {
                for (var t = [], n = f.DataCenter.Instance.GetDataList(y.HolyEquipment_Model), o = 0; o < n.length; o++) {
                    var r = n[o];
                    if ((l = f.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipment_Config, r.ItemId)).Type == e) {
                        var i = {
                            Sid: r.Sid,
                            ItemId: r.ItemId,
                            Count: 1,
                            OwnerId: r.OwnerId,
                            Xp: r.Xp,
                            IsHolyEquip: !0,
                            Star: r.Star
                        };
                        t.push(i)
                    }
                }
                var a = f.DataCenter.Instance.GetDataList(y.Equipment_Model);
                for (o = 0; o < a.length; o++) r = a[o], (l = f.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, r.ItemId)).Type == e && (i = {
                    Sid: r.Sid,
                    ItemId: r.ItemId,
                    Count: 1,
                    OwnerId: r.OwnerId,
                    Xp: r.Xp + l.Xp,
                    IsHolyEquip: !1
                }, t.push(i));
                var s = f.DataCenter.Instance.GetDataList(y.UserItem_Model);
                for (o = 0; o < s.length; o++)
                    if (!((r = s[o]).Count <= 0) && f.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, r.ItemId).Type == d.ItemType.Equip) {
                        var l;
                        if ((l = f.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, r.ItemId)).Type != e) continue;
                        i = {
                            Sid: 0,
                            ItemId: r.ItemId,
                            Count: r.Count,
                            OwnerId: 0,
                            Xp: l.Xp,
                            IsHolyEquip: !1
                        }, t.push(i)
                    } return t.length > 0 && t.sort(this.SortEquips.bind(this)), t
            }, e.prototype.GetHolyRelicCheckPointProgress = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.ArtefactRelic_Config, e);
                if (!t) return [0, 0];
                var n = 10 * t.Maps.length,
                    o = f.DataCenter.Instance.GetDataById(y.ArtefactRelic_Model, e);
                if (!o) return [0, n];
                var r = (null == o.MapIndex ? -1 : o.MapIndex) + 1;
                return [10 * o.Index + r, n]
            }, e.prototype.SortEquips = function(e, t) {
                return e.IsHolyEquip && !t.IsHolyEquip ? -1 : !e.IsHolyEquip && t.IsHolyEquip ? 1 : e.IsHolyEquip && t.IsHolyEquip ? e.Star > t.Star ? -1 : e.Star < t.Star ? 1 : e.OwnerId && !t.OwnerId ? 1 : !e.OwnerId && t.OwnerId ? -1 : 0 : e.Xp > t.Xp ? -1 : e.Xp < t.Xp ? 1 : e.OwnerId && !t.OwnerId ? 1 : !e.OwnerId && t.OwnerId ? -1 : 0
            }, e.prototype.GetEquipMaterialsByType = function(e) {
                for (var t = [], n = f.DataCenter.Instance.GetDataList(y.Equipment_Model), o = 0; o < n.length; o++)
                    if (0 == (a = n[o]).OwnerId && (s = f.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, a.ItemId)).Type == e) {
                        var r = {
                            Sid: a.Sid,
                            ItemId: a.ItemId,
                            Count: 1,
                            Xp: a.Xp + s.Xp
                        };
                        t.push(r)
                    } var i = f.DataCenter.Instance.GetDataList(y.UserItem_Model);
                for (o = 0; o < i.length; o++) {
                    var a, s;
                    (a = i[o]).Count <= 0 || f.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, a.ItemId).Type == d.ItemType.Equip && (s = f.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, a.ItemId)).Type == e && (r = {
                        Sid: 0,
                        ItemId: a.ItemId,
                        Count: a.Count,
                        Xp: s.Xp
                    }, t.push(r))
                }
                return t.sort(this.SortEquipDataByXp.bind(this)), t
            }, e.prototype.SortEquipDataByXp = function(e, t) {
                return e.Xp <= t.Xp ? -1 : 1
            }, e.prototype.ConvertHeroListToFormationInfo = function(e, t) {
                for (var n = [], o = 0; o < t; o++) {
                    n[o] = [];
                    for (var r = 0; r < 5; r++) {
                        var i = e[t * r + o];
                        n[o][r] = i || 0
                    }
                }
                return n
            }, e.prototype.GetTaskBaseConfigByType = function(e) {
                var t = this;
                return this._taskBaseTypeMap || (this._taskBaseTypeMap = {}, A.ConfigDataComponent.Instance.GetArrayConfig(h.TaskBase_Config).forEach(function(e) {
                    t._taskBaseTypeMap[e.Type] ? t._taskBaseTypeMap[e.Type].push(e) : t._taskBaseTypeMap[e.Type] = [e]
                })), this._taskBaseTypeMap[e] ? this._taskBaseTypeMap[e] : []
            }, e.CheckLuckyCharmIsOrigin = function(e) {
                return !(!e || e.ItemId != g.CommonItemId.PrimordialLuckyCharm)
            }, e.NeedShowCoupon = function(e, t) {
                var n = f.DataCenter.Instance.ActivityConfigs[t];
                if (!n) return !1;
                if (!n.__LowPricePack) return !1;
                var o, r = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, t);
                if (!r) return !1;
                var i = !1,
                    a = 0;
                if (n.__LowPricePack.forEach(function(t, n) {
                        t.PackId == e && t.PackId != t.Id && (i = !0, a = n, o = t.ItemId)
                    }), f.DataCenter.Instance.GetItemCount(o) < 1) return !1;
                if (!i) return !1;
                if (!r.Packs || !r.Packs[e]) return !0;
                var s = r.Packs[e].Items[0],
                    l = n._Packs[a].LimitCount;
                return !l || s < l || void 0
            }, e.GetActivityEffectPath = function(e) {
                var t = [],
                    n = e.split("|");
                return n.length > 1 && (t = ["ActivitySpine/" + n[0], n[1]]), t
            }, e.prototype.IsHolyAreaCompleteMaxStar = function() {
                var e = f.DataCenter.Instance.GetDataById(y.AncientSacred_Model, 1),
                    t = f.ConfigDataComponent.Instance.GetArrayConfig(h.AncientSacredMap_Config),
                    n = 0;
                if (t.forEach(function(e) {
                        n = Math.max(n, e.Id)
                    }), e.HighestMap) {
                    var o = f.ConfigDataComponent.Instance.GetConfigById(h.AncientSacredMap_Config, n),
                        r = o.MonsterType[o.MonsterType.length - 1].Items[0],
                        i = Math.floor(e.HighestMap / 100),
                        a = e.HighestMap % 100;
                    if (i == n && a == 3 * r) return !0
                }
                return !1
            }, e.prototype.GetItemRecycleTime = function(e) {
                var t = 0,
                    n = 0,
                    o = f.ConfigDataComponent.Instance.GetConfigById(h.ItemRecycle_Config, e);
                return o && (n = (t = o.StartDate ? T.TimeUtil.StrToTime(o.StartDate) : this.GetOpenZeroTime() + (o.OpenDays - 1) * g.Etc.DayDuration) + g.Etc.DayDuration * o.Duration), [t, n]
            }, e.prototype.GetItemGetWayActivityConfigs = function(e) {
                var n = this;
                if (!this._customItemGetWayConfigs) {
                    this._customItemGetWayConfigs = {};
                    var o = function(e) {
                            var o = A.DataCenter.Instance.ActivityConfigs[e];
                            if (o.Common.Type == d.ActivityType.ItemGetWay) {
                                r._itemGetWayActivity = o;
                                var i = {};
                                r._itemGetWayActivity.__GetWays.forEach(function(e) {
                                    i[e.Id] = e
                                });
                                var a = {};
                                r._itemGetWayActivity._Locale.forEach(function(e) {
                                    a[e.Id] = e
                                }), r._itemGetWayActivity.__Items.forEach(function(e) {
                                    var t = e.EndTime.split("|");
                                    e.GetWays.forEach(function(o, r) {
                                        var s, l, c = {};
                                        if (c.SortId = e.SortIds[r] || 0, c.GetWayConfig = i[o], c.Name = (null === (s = a[o]) || void 0 === s ? void 0 : s.Content) || "", c.Desc = (null === (l = a[o + 1]) || void 0 === l ? void 0 : l.Content) || "", t[r]) {
                                            var u = T.TimeUtil.StrToTime(t[r]);
                                            c.EndTime = u
                                        } else c.EndTime = 0;
                                        n._customItemGetWayConfigs[e.Id] ? n._customItemGetWayConfigs[e.Id].push(c) : n._customItemGetWayConfigs[e.Id] = [c]
                                    })
                                })
                            } else o._ItemGetWay && o._ItemGetWay.length > 0 && o._ItemGetWay.forEach(function(e) {
                                var r = {};
                                r.SortId = e.Sort, r.Name = o.Common.Title, r.Desc = "", r.EndTime = t.Instance.ComputeDeadTime(o.Common), r.ActivityId = o._id, r.ItemId = e.ItemId, r.Params = e.Params, 1 == e.Params[0] && (r.UseId = o.Name), n._customItemGetWayConfigs[e.ItemId] ? n._customItemGetWayConfigs[e.ItemId].push(r) : n._customItemGetWayConfigs[e.ItemId] = [r]
                            })
                        },
                        r = this;
                    for (var i in A.DataCenter.Instance.ActivityConfigs) o(i)
                }
                return this._customItemGetWayConfigs[e]
            }, e.GetArtefactRelicMapCount = function() {
                var e = A.ConfigDataComponent.Instance.GetConfig(h.ArtefactRelic_Config),
                    t = 0;
                for (var n in e) {
                    var o = e[n],
                        r = f.DataCenter.Instance.GetDataById(y.ArtefactRelic_Model, o.Id);
                    if (r)
                        for (var i = 0; i < o.Maps.length; i++) i == r.Index ? t += r.MapIndex + 1 : i < r.Index && (t += o.Maps[i].Items.length)
                }
                return t
            }, e.prototype.CheckLimitTypeIsUnlock = function(e) {
                if (0 == e.length) return !0;
                for (var n = 0; n < e.length; n++) switch (e[n].Items[0]) {
                    case d.ModuleRequirementType.PlayerLevel:
                        if (f.DataCenter.Instance.GetIntData(g.UserDataKey.PlayerLevel) < e[n].Items[1]) return !1;
                        break;
                    case d.ModuleRequirementType.OpenDays:
                        var o = this.GetOpenZeroTime();
                        if (T.TimeUtil.GetDiffDays(o, f.RpcComponent.Instance.ServerTime, !0) + 1 < e[n].Items[1]) return !1;
                        break;
                    case d.ModuleRequirementType.MainLineProgress:
                        if (f.DataCenter.Instance.GetIntData(g.UserDataKey.MainLineProgress) <= e[n].Items[1]) return !1;
                        break;
                    case d.ModuleRequirementType.VipLevel:
                        if (f.DataCenter.Instance.GetIntData(g.UserDataKey.VipLevel) < e[n].Items[1]) return !1;
                        break;
                    case d.ModuleRequirementType.HighestPower:
                        if (f.DataCenter.Instance.GetIntData(g.UserDataKey.HighestPower) < e[n].Items[1]) return !1;
                        break;
                    case d.ModuleRequirementType.ArtefactRelic:
                        if (t.GetArtefactRelicMapCount() < e[n].Items[1]) return !1;
                        break;
                    case d.ModuleRequirementType.TestTowerIndex:
                        var r = f.DataCenter.Instance.GetDataById(y.TestTower_Model, 99);
                        if (!r || r.MapIndex < e[n].Items[1]) return !1
                }
                return !0
            }, e.prototype.CheckGiftPackIsUnlock = function(e) {
                if (!e.UnlockCondition) return !0;
                var t = e.UnlockCondition,
                    n = A.ConfigDataComponent.Instance.GetConfigById(h.GiftPack_Config, t),
                    o = f.DataCenter.Instance.GetDataById(y.GiftPack_Model, t);
                return !!(o && o.Count >= n.LimitCount)
            }, e.GetSubscribePrivilegeIsActive = function(e) {
                var t = !1,
                    n = A.DataCenter.Instance.GetDataById(y.SubscribePrivilege_Model, e);
                return n && (-1 == n.CanDay || Math.ceil((f.RpcComponent.Instance.ServerTime - n.Time) / d.Etc.DayDuration) <= n.CanDay) && (t = !0), t
            }, e.GetSkillIconId = function(e) {
                var t = A.ConfigDataComponent.Instance.GetConfigById(h.SkillBase_Config, e);
                return t && t.SkillIcon > 0 ? t.SkillIcon : e
            }, e.GetBuffIconId = function(e) {
                var t = A.ConfigDataComponent.Instance.GetConfigById(h.BuffDescription_Config, e);
                return t && t.BuffIcon > 0 ? t.BuffIcon : e
            }, e.GetShowCouponDatas = function(e, n) {
                var o = A.DataCenter.Instance.GetDataList(y.CurrencyDiscountTicket_Model),
                    r = [],
                    i = [],
                    a = A.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, d.LevelParamType.CannotTicketType).Data2.find(function(e) {
                        return n == e.Items[0]
                    });
                a && a.Items.length > 1 && (i = a.Items.slice(1, a.Items.length));
                for (var s = 0; s < o.length; s++) {
                    var l = o[s],
                        c = A.ConfigDataComponent.Instance.GetConfigById(h.ItemCurrencyDiscount_Config, l.ItemId);
                    if (!i.includes(c.SubType) && (l.IsPerpetual || l.Time > A.RpcComponent.Instance.ServerTime) && A.RpcComponent.Instance.ServerTime > l.UnlockTime) {
                        var u = 0,
                            p = t.CheckCouponConditionUnLock(e, c.Condition);
                        switch (c.SubType) {
                            case d.TicketSubType.Change:
                                u = e - c.Param[0];
                                break;
                            case d.TicketSubType.Reduce:
                                u = c.Param[0];
                                break;
                            case d.TicketSubType.Discount:
                                u = Math.floor((1e3 - c.Param[0]) * e / 1e3)
                        }
                        var f = {};
                        f.Sid = l.Sid, f.Config = c, f.CouponPrice = u, f.CanUse = p, r.push(f)
                    }
                }
                return r.sort(function(e, t) {
                    return e.CanUse && !t.CanUse ? -1 : !e.CanUse && t.CanUse ? 1 : t.CouponPrice - e.CouponPrice
                }), r
            }, e.CheckCouponConditionUnLock = function(e, t) {
                for (var n = A.DataCenter.Instance.GetIntData(d.UserDataKey.VipLevel), o = 0; o < t.length; o++) switch (t[o].Items[0]) {
                    case d.TicketConditionType.SumCount:
                        if (e < t[o].Items[1] || t[o].Items[2] > 0 && e > t[o].Items[2]) return !1;
                        break;
                    case d.TicketConditionType.Vip:
                        if (n < t[o].Items[1]) return !1
                }
                return !0
            }, e.GetAngelPower = function(e) {
                var t = 0,
                    n = A.DataCenter.Instance.GetDataById(y.UserAngel_Model, e),
                    o = A.DataCenter.Instance.GetDataById(y.UserFormation_Model, g.FormationIdType.MainLine);
                if (n) {
                    var r = A.ConfigDataComponent.Instance.GetConfigById(h.AngelStar_Config, 1e3 * e + n.StarLevel),
                        i = n.Power,
                        a = 0,
                        s = 0;
                    o && o.HeroIds.length > 0 && o.HeroIds.forEach(function(e) {
                        if (e > 0) {
                            var t = A.DataCenter.Instance.GetDataById(y.UserHero_Model, e),
                                n = t && t.Attrs[d.HeroAttributeType.Attack] > 0 ? t.Attrs[d.HeroAttributeType.Attack] : 0;
                            a += n, s++
                        }
                    });
                    var l = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, d.LevelParamType.AngelAttributePowerParam).FloatData[d.HeroAttributeType.AngelAttack - d.HeroAttributeType.AngelStartAttrId];
                    t = i + Math.floor(a * r.PercentAttr * l / 1e3 / s)
                }
                return t
            }, e.GetAngelAttack = function(e) {
                var t = 0,
                    n = A.DataCenter.Instance.GetDataById(y.UserAngel_Model, e),
                    o = A.DataCenter.Instance.GetDataById(y.UserFormation_Model, g.FormationIdType.MainLine);
                if (n) {
                    var r = A.ConfigDataComponent.Instance.GetConfigById(h.AngelStar_Config, 1e3 * e + n.StarLevel),
                        i = n.Attrs[d.HeroAttributeType.AngelAttack] || 0,
                        a = 0,
                        s = 0;
                    o && o.HeroIds.length > 0 && o.HeroIds.forEach(function(e) {
                        if (e > 0) {
                            var t = A.DataCenter.Instance.GetDataById(y.UserHero_Model, e),
                                n = t && t.Attrs[d.HeroAttributeType.Attack] > 0 ? t.Attrs[d.HeroAttributeType.Attack] : 0;
                            a += n, s++
                        }
                    }), t = i + Math.floor(a * r.PercentAttr / 1e3 / s)
                }
                return t
            }, e.CheckActivityIsEnd = function(e, n, o) {
                void 0 === n && (n = !1);
                var r = t.Instance.ComputeDeadTime(e);
                return f.RpcComponent.Instance.ServerTime > r && (n && (o ? m.UIUtlity.ShowFloatingHint(o) : m.UIUtlity.ShowFloatingHint("activity_end".ToUILocale())), !0)
            }, e.prototype.SortAngels = function(e) {
                e.sort(function(e, t) {
                    return e.Power == t.Power ? t.Power - e.Power : e.StarLevel == t.StarLevel ? t.StarLevel - e.StarLevel : e.Level == t.Level ? t.Level - e.Level : t.AngelId - e.AngelId
                })
            }, e.prototype.GetAngelGodAvatarConfig = function(e, t) {
                var n;
                if (t) return n = t.SkinId ? t.SkinId : A.ConfigDataComponent.Instance.GetConfigById(h.AngelStar_Config, 1e3 * t.AngelId + t.StarLevel).AngelShape, A.ConfigDataComponent.Instance.GetConfigById(h.AngelGodAvatar_Config, n);
                A.ConfigDataComponent.Instance.GetConfigById(h.AngelGodAvatar_Config, e)
            }, e.prototype.GetHeroIdToAngelId = function(e) {
                var t = this,
                    n = 0;
                return this._heroIdToAngelId || (this._heroIdToAngelId = {}, A.ConfigDataComponent.Instance.GetArrayConfig(h.AngelBase_Config).forEach(function(e) {
                    e.HeroId && (t._heroIdToAngelId[e.HeroId] = e.Id)
                })), this._heroIdToAngelId[e] && (n = this._heroIdToAngelId[e]), n
            }, e.prototype.SendBuyGiftPackRequest = function(e, t) {
                if (e.PayId) B.default.Instance.Pay(e.Id, t);
                else {
                    var n = new y.Req_Pay_ByDiamond;
                    n.Id = e.Id, n.ActivityId = t, A.RpcComponent.Instance.Call(n, function(e) {
                        m.UIUtlity.ShwDisplayRewardPanel(e.Rewards), S.Game.EventDispatcher.Emit(w.EventKeys.EVENT_PAY_SUCCESS)
                    })
                }
            }, e.prototype.ShowColorDiamondEntrance = function() {
                B.default.Instance.IsVNChannel() && !K.default.Instance.IsInGuide && _.UIManager.Instance.ShowUIPanel(C.PanelConfig.ColorDiamondRechargeEntrance.Path)
            }, e.GetWarSeasonAndRound = function(e) {
                void 0 === e && (e = f.RpcComponent.Instance.ServerTime);
                var t = (e - d.SpecialDataKey.WarFirstSeason) % (56 * d.Etc.DayDuration);
                return t < 0 && (t += 56 * d.Etc.DayDuration), [e - t, Math.ceil(t / (7 * d.Etc.DayDuration))]
            }, e.prototype.EnterStrongholdWarPanel = function() {
                var e = T.TimeUtil.GetMondayClock0Ts(A.RpcComponent.Instance.ServerTime) + 10 * g.Etc.HourDuration;
                if (A.RpcComponent.Instance.ServerTime < e) {
                    var n = A.RpcComponent.Instance.ServerTime - 7 * g.Etc.DayDuration,
                        o = t.GetWarSeasonAndRound(n);
                    return (a = new y.Req_War_Season).Season = o[0], a.Round = o[1], void A.RpcComponent.Instance.Call(a, function(e) {
                        if (e && e.Datas[0] && e.Datas[0].AMap[f.DataCenter.Instance.AllianceId] && e.Datas[0].AMap[f.DataCenter.Instance.AllianceId].Rank) {
                            var n = t.GetWarSeasonAndRound(f.RpcComponent.Instance.ServerTime);
                            S.UIManager.Instance.ShowUIPanel(C.PanelConfig.StrongholdWarRoundEndPanel.Path, e.Datas[0].AMap[f.DataCenter.Instance.AllianceId], n[1] - 1)
                        } else m.UIUtlity.ShowFloatingHint("StrongholdWar_Round_End_Tip".ToUILocale())
                    })
                }
                var r = T.TimeUtil.Get0ClockTs(A.RpcComponent.Instance.ServerTime) + 1 * g.Etc.HourDuration,
                    i = T.TimeUtil.Get0ClockTs(A.RpcComponent.Instance.ServerTime) + 23 * g.Etc.HourDuration;
                if (A.RpcComponent.Instance.ServerTime < r || A.RpcComponent.Instance.ServerTime > i) m.UIUtlity.ShowFloatingHint("StrongholdWar_Enter_Time_Tip".ToUILocale());
                else {
                    if (-1 == f.DataCenter.Instance.GetArrayData(g.UserDataKey.CityWarGuide).indexOf(g.StrongholdWarGuideArray.Entry)) {
                        var a;
                        (a = new y.Req_AllianceCityWar_UpdateGuide).Id = g.StrongholdWarGuideArray.Entry, A.RpcComponent.Instance.Call(a, function() {});
                        var s = new y.Req_Player_CompleteGameModuleGuide;
                        s.Id = g.GameModuleType.AllianceCityWar, f.RpcComponent.Instance.Call(s, function() {
                            S.Game.EventDispatcher.Emit(w.EventKeys.EVENT_REFRESH_GUIDE_MODULE)
                        })
                    }
                    var l = new y.Req_War_Action;
                    l.Type = d.WarActionType.Enter, f.RpcComponent.Instance.Call(l, function(e) {
                        S.UIManager.Instance.ShowUIPanel(C.PanelConfig.StrongholdWarMainPanel.Path, e)
                    })
                }
            }, e.prototype.GetFormatPrice = function(e) {
                return e ? "" + B.default.Instance.CurrencySymbol + B.default.Instance.ExchangeMoney(e).toString() : "free".ToUILocale()
            }, e.prototype.GetHeroDefaultStarLevelSkinName = function(e, t) {
                var n = 1,
                    o = A.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e);
                if (o && o.StarShape && o.StarShape.length > 0)
                    for (var r = o.StarShape.length - 1; r >= 0; r--)
                        if (t >= o.StarShape[r]) {
                            n = r + 2;
                            break
                        } return "skin" + n
            }, e.prototype.SetHeroAvatarSkin = function(e, t, n) {
                var o = B.default.Instance.IsVNChannel(),
                    r = e.getComponent(sp.Skeleton),
                    i = this.GetHeroDefaultStarLevelSkinName(t, n);
                o ? setTimeout(function() {
                    for (var t = r.skeletonData._skeletonCache && r.skeletonData._skeletonCache.skins ? r.skeletonData._skeletonCache.skins : [], n = !1, o = 0; o < t.length; o++)
                        if (t[o].name == i) {
                            n = !0;
                            break
                        } n && e.isValid && r.setSkin(i)
                }) : r.setSkin(i)
            }, e.prototype.DisplayGlobalChampionPanel = function(e) {
                var t, n = U.default.GetItem(U.GameRecordDefine.GlobalChampionRewardTip),
                    o = !0;
                n ? (t = JSON.parse(n)) && t[e] || (o = !1) : (t = {}, o = !1), o ? this.JoinGlobalChampionShip(!1, e) : (_.UIManager.Instance.ShowUIPanel(C.PanelConfig.GlobalChampionMainPanel.Path, e), t[e] = !0, U.default.SetItem(U.GameRecordDefine.GlobalChampionRewardTip, JSON.stringify(t)))
            }, e.prototype.JoinGlobalChampionShip = function(e, t) {
                var n = this;
                if (e) this.SetFormationJoin(t);
                else if (this.CheckChampionShipFormation()) {
                    var o = y.Req_Activity_ChampionshipEnter.create();
                    o.ActivityId = t, o.GetCount = 1, f.RpcComponent.Instance.Call(o, function(e) {
                        n.OpenGlobalChampionShipPanel([], t, e)
                    })
                } else this.SetFormationJoin(t)
            }, e.prototype.CheckChampionShipFormation = function() {
                for (var e = !1, t = f.ConfigDataComponent.Instance.GetConfigById(h.MapType_Config, d.MapType.ActChampionship), n = 0; n < t.AttackerFormation.length && !e; n++) {
                    var o = t.AttackerFormation[n],
                        r = f.DataCenter.Instance.GetDataById(y.UserFormation_Model, o);
                    if (r)
                        for (var i = 0; i < r.HeroIds.length; i++)
                            if (r.HeroIds[i]) {
                                e = !0;
                                break
                            }
                }
                return e
            }, e.prototype.GetInitScore = function(e, t) {
                for (var n = t.__Groups.length - 1, o = 1; o < t.__Groups.length; o++) {
                    var r = t.__Groups[o];
                    if (r.Power && e >= r.Power) {
                        n = o;
                        break
                    }
                }
                var i = t.__Groups[n],
                    a = t.__Groups[n - 1];
                return a.Power ? Math.floor((e - i.Power) * (a.Score - i.Score) / (a.Power - i.Power)) + i.Score : i.Score
            }, e.prototype.SetFormationJoin = function(e) {
                for (var t = f.DataCenter.Instance.ActivityConfigs[e], n = A.DataCenter.Instance.GetIntData(g.UserDataKey.HighestPower), o = this.GetInitScore(n, t), r = J.default.GetCurGroupGradeId(0, o, t), i = X.default.GetGroupIdToStage2Map(t), a = X.default.GetStage2IdToStageMap(t)[i[r].Id], s = [], l = 0; l < a.Count; l++) s.push(t.CustomPart.MapId);
                _.UIManager.Instance.ShowUIPanel(C.PanelConfig.BattleFormationPanel.Path, this.OpenGlobalChampionShipPanel.bind(this), s, {
                    IsSaveFormationState: !0,
                    TeamNum: a.Count,
                    ActivityId: e
                })
            }, e.prototype.OpenGlobalChampionShipPanel = function(e, t, n) {
                if (L.BattleManager.Instance.IsInBattle(d.MapType.ActChampionship)) L.BattleManager.Instance.ResumePlayBattle(d.MapType.ActChampionship);
                else if (n) _.UIManager.Instance.ShowUIPanel(C.PanelConfig.GlobalChampionShipPanel.Path, t, n);
                else {
                    var o = y.Req_Activity_ChampionshipEnter.create();
                    o.Formations = e, o.ActivityId = t, o.GetCount = 1, f.RpcComponent.Instance.Call(o, function(e) {
                        _.UIManager.Instance.ShowUIPanel(C.PanelConfig.GlobalChampionShipPanel.Path, t, e)
                    })
                }
            }, e.prototype.CheckGiftPackIsAllBuy = function(e, n) {
                var o = !1,
                    r = 0;
                if (n) {
                    var i = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, n);
                    i && i.Packs && i.Packs[e.Id] && i.Packs[e.Id].Items && i.Packs[e.Id].Items[0] && (r = i.Packs[e.Id].Items[0]), o = r >= e.LimitCount && e.LimitType > 0
                } else o = (r = t.Instance.GetGiftBuyCount(e.Id)) >= e.LimitCount && e.LimitType > 0;
                return o
            }, e.prototype.GetHeroTagDesc = function(e) {
                var t = ["", "SSR", "SP", "UR", "LR"];
                return t[e] ? t[e] : ""
            }, e.prototype.GetRandomIconAndFrame = function() {
                for (var e, t = A.ConfigDataComponent.Instance.GetArrayConfig(h.HeadIcon_Config), n = [], o = 0; o < t.length; o++) t[o].ForRandom && n.push(t[o]);
                e = n[Math.floor(Math.random() * n.length)].Id;
                var r = A.ConfigDataComponent.Instance.GetArrayConfig(h.HeadFrame_Config);
                return [e, r[Math.floor(Math.random() * r.length)].Id]
            }, e.prototype.GetActivityTicketCost = function(e, t, n) {
                for (var o = 0, r = t.Tickets && t.Tickets[1] ? t.Tickets[1] : 0, i = 0, a = e; i < a.length; i++) {
                    var s = a[i].Items,
                        l = s[0],
                        c = s[1];
                    if (l) {
                        if (r >= l) continue;
                        if (r + n > l) {
                            n -= l - r, o += c * (l - r);
                            continue
                        }
                    }
                    o += c * n;
                    break
                }
                return o
            }, e.GetActivityStartChallengeTime = function(e, n) {
                var o = t.Instance.ComputeActivitStartTime(e);
                return T.TimeUtil.Get0ClockTs(o) + d.Etc.HourDuration * n
            }, e.prototype.GetActivitySummonData = function(e) {
                var t, n, o = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, e),
                    r = f.DataCenter.Instance.ActivityConfigs[e],
                    i = r.__CommonSummon[0].SummonType,
                    a = r.__SummonType.find(function(e) {
                        return e.Id == i
                    }),
                    s = o.Summons[i];
                return s ? (t = s.LibStatus[1] || 0, n = s.FreeCount) : (t = 0, n = a.StartFreeCount || 0), [t, n]
            }, e.prototype.RequestCutPrice = function(e, n, o) {
                if (n != f.DataCenter.Instance.Uid) {
                    var r = e.IntParams[0],
                        i = e.IntParams[1],
                        a = f.DataCenter.Instance.ActivityConfigs[r];
                    if (a) {
                        if (!t.CheckActivityIsEnd(a.Common, !0)) {
                            var s = y.Req_Activity_CutPriceGiftHelp.create();
                            s.ActivityId = r, s.PageId = i, s.TargetUid = n, f.RpcComponent.Instance.Call(s, function(e) {
                                var t = a.Pages.find(function(e) {
                                        return e.Id == i
                                    }).Group[e.GroupIndex].Items,
                                    n = t[e.CutPriceCount + 1],
                                    r = t[e.CutPriceCount],
                                    s = a._Packs.find(function(e) {
                                        return e.Id == n
                                    }),
                                    l = a._Packs.find(function(e) {
                                        return e.Id == r
                                    }),
                                    c = B.default.Instance.ExchangeMoney(l.Money),
                                    u = B.default.Instance.ExchangeMoney(s.Money),
                                    p = "" + B.default.Instance.CurrencySymbol + Math.max(0, c - u).ToFixedExact(2);
                                m.UIUtlity.ShowFloatingHint("cutPrice_helpSuccess".ToUILocale().Fmt(o, p))
                            }, function(e) {
                                switch (e) {
                                    case d.ErrCode.CutPriceGiftTimeExpired:
                                        m.UIUtlity.ShowFloatingHint("cutPrice_err1".ToUILocale().Fmt(o));
                                        break;
                                    case d.ErrCode.CutPriceGiftHelped:
                                        m.UIUtlity.ShowFloatingHint("cutPrice_err2".ToUILocale());
                                        break;
                                    case d.ErrCode.CutPriceGiftCountLimit:
                                        m.UIUtlity.ShowFloatingHint("cutPrice_err3".ToUILocale().Fmt(o))
                                }
                            })
                        }
                    } else m.UIUtlity.ShowFloatingHint("activity_end".ToUILocale())
                } else m.UIUtlity.ShowFloatingHint("cutPrice_notHelpSelf".ToUILocale())
            }, e.prototype.PayGuideBuyOver = function(e) {
                var t = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, e);
                if (!t) return !1;
                if (!t.IntValue) return !0;
                if (!t.IntMap) return !0;
                for (var n in t.IntMap)
                    if (0 == t.IntMap[n]) return !0;
                return !1
            }, e.prototype.GetShowFrameConfigs = function() {
                var e = [];
                for (var n in f.DataCenter.Instance.ActivityFrameMap) {
                    var o = f.DataCenter.Instance.ActivityConfigs[Number(n)];
                    if (t.GetActivityUnlockState(o.Common) && o.Common.Type != g.ActivityType.Frame6 && f.DataCenter.Instance.ActivityFrameMap[n] && f.DataCenter.Instance.ActivityFrameMap[n].length) {
                        if (o.Common.Type == g.ActivityType.Frame2) {
                            for (var r = 0, i = !0, a = 0; a < f.DataCenter.Instance.ActivityFrameMap[n].length; a++) {
                                var s = f.DataCenter.Instance.ActivityFrameMap[n][a];
                                f.DataCenter.Instance.ActivityConfigs[s].Common.Type == g.ActivityType.PayGuide && (r++, this.PayGuideBuyOver(s) && (i = !1))
                            }
                            if (i && f.DataCenter.Instance.ActivityFrameMap[n].length == r) continue
                        }
                        o.Common.Positions && o.Common.Positions[0] && o.Common.Positions[0].Items[0] == Z.ActivityShowPostion.NoFrame || e.push(o)
                    }
                }
                return e
            }, e.ClearBinaryByIndex = function(e, t) {
                return e & ~(1 << t)
            }, e.SetBinaryByIndex = function(e, t) {
                return e | Math.pow(2, t)
            }, e.GetBinaryDigitCount = function(e, t) {
                void 0 === t && (t = 1);
                var n = 0;
                if (e <= 0) return 0 == t ? 1 : 0;
                for (; e > 0;)(1 & e) == t && (n += 1), e >>= 1;
                return n
            }, e.GetBinaryValueByIndex = function(e, t) {
                return void 0 === t && (t = 0), (e & Math.pow(2, t)) >> t
            }, e.prototype.GetActivityPositionAndSort = function(e) {
                var t = [0, 0],
                    n = [0, 0];
                return e.Positions && e.Positions.length > 0 ? e.Positions.forEach(function(e) {
                    var o = e.Items[0],
                        r = e.Items[1] || 0;
                    o >= Z.ActivityShowPostion.MainLeft && o <= Z.ActivityShowPostion.MainRightTop || o == Z.ActivityShowPostion.InFrame ? t = [o, r] : o >= Z.ActivityShowPostion.BattleLeft && o <= Z.ActivityShowPostion.BattleRight && (n = [o, r])
                }) : (t = [e.MainPosition, e.MainSort], n = [e.IdlePosition, e.IdleSort]), [t, n]
            }, e.prototype.GetActivityWarmingUpTimeLeftTSS = function(e) {
                var t = 3600 * e.WarmUpDuration;
                return (e.IsZoneOpen ? this.GetOpenZeroTime() + (e.RequireOpenDays - 1) * g.Etc.DayDuration : e.StartTime) / 1e3 + t - f.RpcComponent.Instance.ServerTime / 1e3
            }, e.prototype.GetItemPathById = function(e) {
                var t = A.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, e);
                return t.CustomIcon ? C.BundlePath.ItemIcon + "/" + t.CustomIcon : C.BundlePath.ItemIcon + "/" + e
            }, e.prototype.FormatNumber = function(e, t) {
                var n = e.toString().split("."),
                    o = (n[0], n[1]);
                return !o || o.length <= t ? e.toString() : e.toFixed(t)
            }, e.prototype.GetImagePath = function(e) {
                return e.startsWith("Multilang") ? A.GlobalConfigComponent.GetMultilangKey(e) : e
            }, e.prototype.GetPiggyBankBeforeRoundConsumeCOunt = function(e, t) {
                for (var n = 0, o = 0; o < e; o++) {
                    var r = [],
                        i = t[o];
                    switch (i.Action[0]) {
                        case d.PiggyBankActionType.CostItem:
                            r.push(i.Action[2]), r.push(i.Action[3])
                    }
                    n += Math.ceil((i.Progress[1] - i.Progress[0]) / r[1] * r[0])
                }
                return n
            }, e.prototype.GetPiggyBankEnterBubble = function(e) {
                var n, o = f.DataCenter.Instance.ActivityConfigs[e],
                    r = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, e);
                n = !r.IntArray || r.IntArray.length <= 0 ? 0 : r.IntArray[0], n = Math.min(o.Round.length - 1, n);
                var i = r.IntValue,
                    a = [],
                    s = o.Round[n];
                switch (s.Action[0]) {
                    case d.PiggyBankActionType.CostItem:
                        a.push(s.Action[2]), a.push(s.Action[3])
                }
                o.CustomPart.ResetProgress <= 0 && (i -= t.Instance.GetPiggyBankBeforeRoundConsumeCOunt(n, o.Round));
                var l = Math.floor(i / a[0] * a[1]),
                    c = (l = Math.max(l, 0)) / (s.Progress[1] - s.Progress[0]);
                return [(c = Math.min(1, c)) >= 1 ? s.Progress[1] : l + s.Progress[0], s]
            }, e.prototype.CheckPetRefineAttrUnlock = function(e, t) {
                for (var n = f.DataCenter.Instance.GetDataById(y.UserPet_Model, e), o = 0; o < t.length; o += 2) {
                    var r = t[o],
                        i = t[o + 1];
                    switch (r) {
                        case 1:
                            if (n.Level < i) return !1;
                            break;
                        case 2:
                            if (n.Star < i) return !1
                    }
                }
                return !0
            }, e.prototype.GetPetHatchNeedTime = function(e) {
                var n = f.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, e).Param[0].Items[0];
                n *= g.Etc.HourDuration;
                var o = t.GetModuleBonusByType(g.ModuleBonusType.PetNestRatio);
                return o && (n = Math.ceil(n * (1e3 - o) / 1e3)), n
            }, e.prototype.GetPetCardIdByPetId = function(e) {
                return Number("10" + e)
            }, e.prototype.GetNextStrongPathTask = function() {
                for (var e, t, n, o = f.DataCenter.Instance.GetIntData(d.UserDataKey.StrongPathCount), r = [], i = f.ConfigDataComponent.Instance.GetArrayConfig(h.StrongPathTask_Config), a = 0; a < i.length; a++) r.push(i[a].Id);
                r.sort(function(e, t) {
                    var n = A.ConfigDataComponent.Instance.GetConfigById(h.StrongPathTask_Config, e),
                        o = A.ConfigDataComponent.Instance.GetConfigById(h.StrongPathTask_Config, t);
                    return n.Count > o.Count ? 1 : -1
                });
                for (var s = 0, l = r; s < l.length; s++) {
                    var c = l[s],
                        u = A.ConfigDataComponent.Instance.GetConfigById(h.StrongPathTask_Config, c);
                    if (u.Id.ToStrongPathTaskTitle() && (t = u, u.Count > o)) break
                }
                var p = f.DataCenter.Instance.GetArrayData(d.UserDataKey.StrongPathTasks);
                for (a = 0; a < r.length; a++) {
                    var y = A.ConfigDataComponent.Instance.GetConfigById(h.StrongPathTask_Config, r[a]),
                        g = a > 0 ? A.ConfigDataComponent.Instance.GetConfigById(h.StrongPathTask_Config, r[a - 1]) : null;
                    if (!p.includes(y.Id)) {
                        e = g, n = y;
                        break
                    }
                    a === r.length - 1 && (n = y, e = g)
                }
                return [t, e, n]
            }, e.prototype.CheckPackPayUnlock = function(e) {
                if (!e || 0 == e.length) return !0;
                for (var t = 0, n = e; t < n.length; t++) {
                    var o = n[t],
                        r = o.Items[0],
                        i = o.Items[1];
                    if (r == g.ModuleRequirementType.VipLevel && f.DataCenter.Instance.GetIntData(g.UserDataKey.VipLevel) >= i) return !0
                }
                return !1
            }, e.prototype.GetActivitySummonConsumeCount = function(e, t, n) {
                if (!e) return t.ConsumeItem[n].Items[1];
                var o = Math.floor(e.ItemCount / t.SummonCount);
                if (n >= t.ConsumeItem.length) return 0;
                var r = Math.min(o, t.ConsumeItem[n].Items.length - 2);
                return t.ConsumeItem[n].Items[r + 1]
            }, e.prototype.GetElementName = function(e) {
                var t;
                switch (e) {
                    case d.HeroElementType.Heart:
                        t = "element_heart";
                        break;
                    case d.HeroElementType.Power:
                        t = "element_power";
                        break;
                    case d.HeroElementType.Tech:
                        t = "element_tech";
                        break;
                    case d.HeroElementType.Break:
                        t = "element_break";
                        break;
                    case d.HeroElementType.Fight:
                        t = "element_fight"
                }
                return t
            }, e.prototype.GetAutoDecomposeStar = function() {
                var e = U.default.GetItem(U.GameRecordDefine.AutoDecomposeStar);
                return null == e || null == e ? 2 : Number.parseInt(e)
            }, e.prototype.GetMapNameKeyByType = function(e) {
                switch (e) {
                    case d.MapType.MainLine:
                        return "assistant_toggle_0";
                    case d.MapType.TestTower:
                        return "assistant_tower_name_99";
                    case d.MapType.TowerHeart:
                        return "assistant_tower_name_1";
                    case d.MapType.TowerPower:
                        return "assistant_tower_name_2";
                    case d.MapType.TowerTech:
                        return "assistant_tower_name_3";
                    case d.MapType.TowerBreak:
                        return "assistant_tower_name_4";
                    case d.MapType.TowerFight:
                        return "assistant_tower_name_5";
                    case d.MapType.EndlessAbyssSingle:
                    case d.MapType.EndlessAbyssMulti:
                        return "abyss_marshAssassin";
                    case d.MapType.TestTowerHard:
                        return "assistant_tower_name_199"
                }
                return ""
            }, e.prototype.CheckAutoBattleUnlock = function(e, n, o) {
                return void 0 === o && (o = !1), !!(t.Instance.IsGameModuleOpen(g.GameModuleType.FloatIcon) && t.Instance.IsGameModuleUnlock(g.GameModuleType.FloatIcon)[0] && t.Instance.IsGameModuleOpen(e) && t.Instance.IsGameModuleUnlock(e)[0] && (o || f.DataCenter.Instance.GetTempData("OnlineStartBattle" + n)))
            }, e.prototype.SetOnlineStartBattleTempData = function(e) {
                f.DataCenter.Instance.SetTempData("OnlineStartBattle" + e, !0)
            }, e.prototype.IsOnlineStartBattle = function(e) {
                return f.DataCenter.Instance.GetTempData("OnlineStartBattle" + e)
            }, e.prototype.ShowBattleRewardPanel = function(e) {
                var n = f.DataCenter.Instance.GetAutoBattleRewards(e);
                n && n.length > 0 && (L.BattleManager.Instance.ShowSettlePanel(C.PanelConfig.BattleDisplayRewardsPanel.Path, n, "battleReward_hint".ToUILocale().Fmt(t.Instance.GetMapNameKeyByType(e).ToUILocale(), f.DataCenter.Instance.GetAutoBattleMapCount(e))), f.DataCenter.Instance.DeleteAutoBattleRewards(e))
            }, e.prototype.IsTestTowerOpenTime = function(e) {
                if (e.OpenTime && e.OpenTime.length > 0) {
                    var t = T.TimeUtil.GetWeekDay(A.RpcComponent.Instance.ServerTime);
                    return e.OpenTime.includes(t)
                }
                return !0
            }, e.prototype.CheckLuckyCharmComposeQuality = function(e) {
                for (var t = A.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmComposeEquipQuality"), n = 0; n < e.length; n++) {
                    var o = A.DataCenter.Instance.GetDataById(y.LuckyCharmEquip_Model, e[n]);
                    if (o.OwnerId && A.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, o.ItemId).Quality >= t) return !0
                }
                return !1
            }, e.prototype.CheckGemComposeQuality = function(e) {
                for (var t = A.ConfigDataComponent.Instance.GetGlobalSettingByKey("GemComposeEquipQuality"), n = 0; n < e.length; n++)
                    for (var o = 0; o < e[n].Items.length; o++) {
                        var r = e[n].Items[o],
                            i = A.DataCenter.Instance.GetDataById(y.GemEquip_Model, r);
                        if (i.OwnerId && A.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, i.ItemId).Quality >= t) return !0
                    }
                return !1
            }, e.prototype.GetNewMallActivityModel = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.MallActivity_Config, e),
                    n = new y.MallActivity_Model;
                n.Sid = e, n.RefreshTime = T.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime), n.PackIds = [], n.IntValue = 0, n.IntArray = [], n.Int2DArray = [];
                var o = 0;
                if (!t.Gifts || t.Gifts.length <= 0) n.Phase = 0, n.PackIds = [];
                else {
                    for (var r = 0; r < t.Gifts.length; r++) t.Gifts[r].Items[1] >= t.Gifts[o].Items[1] && (o = r);
                    n.Phase = t.Gifts[o].Items[1]
                }
                switch (e) {
                    case g.GiftPackType.NewGoodFund:
                    case g.GiftPackType.NewGoodFund2:
                        n.PackIds.push(t.Gifts[o].Items[0]), n.IntArray.push(0)
                }
                return n
            }, e.prototype.GetRankMatchConfigByRankNum = function(e) {
                for (var t = f.ConfigDataComponent.Instance.GetArrayConfig(h.RankMatch_Config), n = t.length - 1; n >= 0; n--) {
                    var o = t[n].Range;
                    if (!o || o.length <= 0) return null;
                    if (o[1]) {
                        if (e >= o[0] && e <= o[1]) return t[n].Id
                    } else if (e == o[0]) return t[n].Id
                }
                return null
            }, e.prototype.CheckEightSignShow = function(e) {
                var t = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, e);
                return !!t && (t.IntArray[0] < 8 || t.IntArray[1] < 8)
            }, e.prototype.GetSortedActiveMultipleGift = function(e) {
                var t, n = [],
                    o = A.DataCenter.Instance.ActivityConfigs[e],
                    r = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, e),
                    i = {};
                if (!o) return n;
                for (var a = 0; a < o._Packs.length; a++) {
                    var s = o._Packs[a];
                    i[s.Id] = s
                }
                if (o.Common.IsZoneOpen) {
                    var l = f.DataCenter.Instance.Zones[f.DataCenter.Zone].OpenTime,
                        c = o.Common.RequireOpenDays - 1;
                    c = c < 0 ? 0 : c, t = T.TimeUtil.Get0ClockTs(l) + c * g.Etc.DayDuration
                } else t = o.Common.StartTime;
                for (var u = T.TimeUtil.GetDiffDays(t, A.RpcComponent.Instance.ServerTime, !0) + 1, p = 0; p < o.__PageType.length; p++)
                    if (o.__PageType[p].StartTime <= u && (!o.__PageType[p].EndTime || o.__PageType[p].EndTime > u)) {
                        for (var d = !0, h = 0; h < o.__PageType[p].GiftIds.length; h++)
                            if (r.Packs[o.__PageType[p].GiftIds[h]].Items[0] < i[o.__PageType[p].GiftIds[h]].LimitCount) {
                                d = !1;
                                break
                            } d && r.IntMap[o.__PageType[p].Id] || n.push(o.__PageType[p])
                    } return n.sort(this.SortMultipleGiftPageConfig.bind(this)), n
            }, e.prototype.SortMultipleGiftPageConfig = function(e, t) {
                return e.SortId && !t.SortId ? -1 : !e.SortId && t.SortId ? 1 : e.SortId || t.SortId ? e.SortId < t.SortId ? 1 : -1 : 0
            }, e.prototype.IsCumulativeBuyGiftEnterenceClose = function(e) {
                var t = f.DataCenter.Instance.ActivityConfigs[e];
                if (!t) return !0;
                var n = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, e);
                if (!(n.IntValue >= 0)) return !1;
                for (var o = 0; o < t.CustomPart.PackIds.length; o++) {
                    var r = t.CustomPart.PackIds[o].Items[0];
                    if (!n.Packs[r] || n.Packs[r].Items[0] <= 0) return !1
                }
                return !0
            }, e.prototype.GetSinglePageGiftTypeThreeIconAndName = function(e) {
                var t, n, o = f.DataCenter.Instance.ActivityConfigs[e],
                    r = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, e),
                    i = [null, null];
                if (i = o.Common.ShortName ? [null, o.Common.ShortName] : [null, o.Common.Title], !r || !r.IntArray) return t = m.UIUtlity.GetIconPath(o.Common.Icon), i[0] = t, i;
                for (var a = function(e) {
                        var a = o.__PackExtend.findIndex(function(t) {
                            return t.Id == r.IntArray[e]
                        });
                        if (a > -1) {
                            if (!o.__PackExtend[a].Icon) return "continue";
                            n || (n = o.__PackExtend[a].Icon);
                            for (var s = o.__PackExtend[a].Packs, l = 0; l < s.length; l++)
                                for (var c = 0; c < o._Packs.length; c++)
                                    if (o._Packs[c].Id == s[l]) {
                                        var u = o._Packs[c];
                                        if (!u.LimitType) return t = o.__PackExtend[a].Icon, i[0] = t, i[1] = u.Name, {
                                            value: i
                                        };
                                        var p = 0;
                                        if (r && r.Packs && r.Packs[u.Id] && r.Packs[u.Id].Items && r.Packs[u.Id].Items.length > 0 && (p = r.Packs[u.Id].Items[0]), p < u.LimitCount) return t = o.__PackExtend[a].Icon, i[0] = t, i[1] = u.Name, {
                                            value: i
                                        }
                                    }
                        }
                    }, s = 0; s < r.IntArray.length; s++) {
                    var l = a(s);
                    if ("object" == typeof l) return l.value
                }
                return n ? (i[0] = n, i) : (i[0] = m.UIUtlity.GetIconPath(o.Common.Icon), i)
            }, e.prototype.ArrangementActivityData = function() {
                for (var e in this.ActivityGetWayItems = {}, this.ActivityRecoveryItems = {}, this.ActivityAllianceMazeIds = [], this.ActivityAllianceTraderIds = [], this.ActivityAssaultOpeationId = null, f.DataCenter.Instance.ActivityConfigs) {
                    var t = f.DataCenter.Instance.ActivityConfigs[e],
                        n = this.ComputeDeadTime(t.Common);
                    if (!(f.RpcComponent.Instance.ServerTime >= n) && this.GetActivityState(t._id) == c.Normal) {
                        var o = t._ItemGetWay;
                        if (o)
                            for (var r = 0; r < o.length; r++) {
                                var i = o[r],
                                    a = this.ActivityGetWayItems[i.ItemId];
                                a || (a = [], this.ActivityGetWayItems[i.ItemId] = a), a.push({
                                    ActivityId: t._id,
                                    GetWayInfo: i,
                                    IsShowEndTime: n
                                })
                            }
                        var s = t._ItemRecycle;
                        if (s)
                            for (r = 0; r < s.length; r++) {
                                var l = s[r];
                                this.ActivityRecoveryItems[l.ItemId] = {
                                    ActivityId: t._id,
                                    TransformInfo: l.Items
                                }
                            }
                        switch (t.Common.Type) {
                            case d.ActivityType.AllianceMaze:
                                this.ActivityAllianceMazeIds.push(t._id);
                                break;
                            case d.ActivityType.AllianceTrader:
                                this.ActivityAllianceTraderIds.push(t._id);
                                break;
                            case d.ActivityType.AssaultOperation:
                                this.ActivityAssaultOpeationId = t._id
                        }
                    }
                }
                z.default.Instance.CheckActivitySideButtons()
            }, e.prototype.GetActivityState = function(e) {
                var t = c.Normal,
                    n = f.DataCenter.Instance.ActivityConfigs[e];
                return n ? n.Common.GameModule && !this.IsGameModuleUnlock(n.Common.GameModule)[0] ? c.Lock : t : c.Hide
            }, e.prototype.SubscribePrivilegeIsEffective = function(e) {
                var t = A.DataCenter.Instance.GetDataById(y.SubscribePrivilege_Model, e);
                if (!t) return !1;
                if (-1 == t.CanDay) return !0;
                var n = T.TimeUtil.Get0ClockTs(t.Time + t.CanDay * g.Etc.DayDuration);
                return !(T.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime) >= n)
            }, e.prototype.GetSaintsWarResetData = function() {
                var e = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("SaintsAttrBonusLoop_Timestamp"),
                    t = f.RpcComponent.Instance.ServerTime;
                if (t - e < 0) return null;
                var n = Math.floor((t - e) / g.Etc.DayDuration / 7),
                    o = f.ConfigDataComponent.Instance.GetArrayConfig(h.SaintsWarResetData_Config);
                return o[Math.floor(n % o.length)]
            }, e.prototype.GetSaintsWarLuckyHeroIds = function() {
                for (var e = [], t = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, g.LevelParamType.SaintsWarHeros), n = 0; n < d.SaintsWarType.None - 1; n++) {
                    var o = f.DataCenter.Instance.GetDataById(y.SaintsWar_Model, n + 1);
                    o && o.HeroId ? e.push(o.HeroId) : e.push(t.Data2[n].Items[0])
                }
                return e
            }, e.prototype.GetSinglePageEndTime = function() {
                var e = f.DataCenter.Instance.GetIntData(g.UserDataKey.SinglePagePackTs);
                return e || (e = T.TimeUtil.Get0ClockTs(T.TimeUtil.GetOffsetDayTs(1, f.RpcComponent.Instance.ServerTime))), e + f.ConfigDataComponent.Instance.GetGlobalSettingByKey("SinglePagePackDays") * g.Etc.DayDuration
            }, e.prototype.GetActivitySummonTodayCountByItemId = function(e, t, n) {
                var o = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, e);
                return o.Summons && o.Summons[n] && o.Summons[n].TodayItem && o.Summons[n].TodayItem[t] ? o.Summons[n].TodayItem[t] : 0
            }, e.prototype.GetActivitySummonDailyLimitCount = function(e, t, n) {
                for (var o = 0, r = f.DataCenter.Instance.ActivityConfigs[e], i = r && r.__SummonType, a = 0; a < i.length; a++) {
                    var s = i[a];
                    if (s.Id == n)
                        for (var l = 0; l < s.ItemLimit.length; l++) {
                            var c = s.ItemLimit[l];
                            if (c.Items[0] == t) {
                                o = c.Items[1];
                                break
                            }
                        }
                }
                return o
            }, e.prototype.CheckDailyActivitySummonLimit = function(e, t, n, o) {
                var r = !1,
                    i = 0,
                    a = this.GetActivitySummonTodayCountByItemId(e, t, n),
                    s = this.GetActivitySummonDailyLimitCount(e, t, n);
                return s > 0 && (r = a + o >= s, i = s), [r, i]
            }, e.prototype.GetCurrentHeroFavorConfigs = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e),
                    n = f.DataCenter.Instance.GetDataById(y.HeroInfo_Model, e).FavorLevel + 1,
                    o = 1,
                    r = f.ConfigDataComponent.Instance.GetArrayConfig(h.FavorLevel_Config),
                    i = [],
                    a = [];
                if (4 == t.StarLevel)
                    for (var s = 0, l = r; s < l.length; s++)(p = l[s]).Id < n ? i.push(p) : p.Id == n ? (p.Grade, o = p.Grade, a.push(p)) : p.Id > n && p.Grade == o && p.Id < k.default.FavorLevelIdPrefix && a.push(p);
                else if (5 == t.StarLevel) {
                    n += k.default.FavorLevelIdPrefix;
                    for (var c = 0, u = r; c < u.length; c++) {
                        var p;
                        (p = u[c]).Id < n ? p.Id > k.default.FavorLevelIdPrefix && i.push(p) : p.Id == n ? (p.Grade, o = p.Grade, a.push(p)) : p.Id > n && p.Grade == o && a.push(p)
                    }
                }
                return a.sort(function(e, t) {
                    return e.Id > t.Id ? 1 : -1
                }), [i, a]
            }, e.prototype.GetFavorGiftsForCurrentGrade = function(e) {
                for (var t = [], n = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e), o = f.ConfigDataComponent.Instance.GetArrayConfig(h.ItemFavor_Config), r = 0; r < o.length; r++) {
                    var i = o[r].Favor[0],
                        a = o[r].Favor[1];
                    i != k.ItemFavorType.ForAll || a != n.ElementType && 0 != a || t.push(o[r])
                }
                return t
            }, e.prototype.GetCurrentAllianceMazeStrength = function(e, t) {
                var n = f.DataCenter.Instance.GetDataById(y.UserActivity_Model, e),
                    o = f.DataCenter.Instance.ActivityConfigs[e],
                    r = n.IntArray[0],
                    i = o.CustomPart.EnergyCap;
                if (r >= i) return r;
                var a = 0;
                if (t) {
                    for (var s = null, l = 0; l < o.Holy.length && !(t < o.Holy[l].Exp); l++) s = o.Holy[l];
                    s && (a = s.EnergyResumeAddon)
                }
                a = (1e3 - a) / 1e3;
                var c = n.IntArray[1],
                    u = o.CustomPart.InitEnergyResume * a * d.Etc.SecondDuration,
                    p = r + Math.floor((f.RpcComponent.Instance.ServerTime - c) / u);
                return p > i ? i : p
            }, e.prototype.GetHeroSDAvatarPathById = function(e) {
                var t = f.DataCenter.Instance.GetDataById(y.UserHero_Model, e);
                if (!t) return "";
                if (t.SkinId) {
                    var n = f.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, t.SkinId);
                    if (n) return "Hero_" + n.Model + "/HeroAvatar"
                }
                return "Hero_" + f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t.HeroId).Model + "/HeroAvatar"
            }, e.prototype.AssaultOperationSetTaskConfig = function(e) {
                for (var t = [], n = 0; n < e.length; n++) {
                    for (var o = {
                            Id: n,
                            Limit: e[n].Items[0],
                            Rewards: []
                        }, r = 1; r < e[n].Items.length; r += 2) {
                        var i = {
                            Items: [e[n].Items[r], e[n].Items[r + 1]]
                        };
                        o.Rewards.push(i)
                    }
                    t.push(o)
                }
                return t
            }, e.prototype.ComputeAssaultOperationLastSettlementTime = function(e) {
                var t = f.DataCenter.Instance.ActivityConfigs[e],
                    n = t.Common.StartTime + t.CustomPart.PreparationPeriodTime * d.Etc.HourDuration,
                    o = b.TimeUtil.Get0ClockTs(n),
                    r = b.TimeUtil.GetOffsetDayTs(2, o);
                return b.TimeUtil.GetOffsetHourTs(t.CustomPart.BattlePeriodTime[1], r)
            }, e.prototype.ComputeAssaultOperationFirstBatlleTime = function(e) {
                var t = f.DataCenter.Instance.ActivityConfigs[e],
                    n = t.Common.StartTime;
                return T.TimeUtil.GetIndexClockTs(n, t.CustomPart.BattlePeriodTime[0])
            }, e.prototype.GetAssaultOperationSpecialEffectDesc = function(e, t) {
                var n = ("assaultOperation_specialType_" + e).ToUILocale();
                switch (e) {
                    case d.AssaultOperationSpecialResourceType.AddEnergyLimit:
                    case d.AssaultOperationSpecialResourceType.AddEnergyRecoverySpeed:
                    case d.AssaultOperationSpecialResourceType.AddMoveSpeed:
                        t /= 100
                }
                return n.Fmt(t)
            }, e.prototype.GetElementTowerBreakthroughUnlock = function(e) {
                var n;
                switch (e) {
                    case d.HeroElementType.Heart:
                        n = d.GameModuleType.HeartStarPowerAwaken;
                        break;
                    case d.HeroElementType.Power:
                        n = d.GameModuleType.PowerStarPowerAwaken;
                        break;
                    case d.HeroElementType.Tech:
                        n = d.GameModuleType.TechStarPowerAwaken;
                        break;
                    case d.HeroElementType.Break:
                        n = d.GameModuleType.BreakStarPowerAwaken;
                        break;
                    case d.HeroElementType.Fight:
                        n = d.GameModuleType.FightStarPowerAwaken
                }
                if (!n) return [!1, !1, ""];
                var o = t.Instance.IsGameModuleOpen(n),
                    r = t.Instance.IsGameModuleUnlock(n);
                return [o, r[0], r[1]]
            }, e.prototype.GetHeroSublimingMaxLevelByHeroId = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e);
                return t && t.Sublime && t.Sublime[0] ? t.Sublime[1] - t.Sublime[0] + 1 : 0
            }, e.prototype.GetAllianceInsigniaUpLevel = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.AllianceBadge_Config, e);
                if (!t || !t.Task || t.Task.length <= 0) return 0;
                var n = f.DataCenter.Instance.AllianceInfo;
                if (!n) return 0;
                var o = 0,
                    r = n.Tasks;
                r && r[t.Task[0]] ? o = r[t.Task[0]] : t.Task[0] == d.AllianceTaskType.AllianceLevel && f.DataCenter.Instance.AllianceInfo && f.DataCenter.Instance.AllianceInfo.Level && (o = f.DataCenter.Instance.AllianceInfo.Level);
                var i, a = 0,
                    s = f.DataCenter.Instance.GetDataById(y.AllianceBadge_Model, t.Id);
                switch (i = s && s.Level ? s.Level : 0, t.Task[0]) {
                    case d.AllianceTaskType.SendRedPacket:
                    case d.AllianceTaskType.AllianceTraderBuyPack:
                    case d.AllianceTaskType.AllianceTest:
                    case d.AllianceTaskType.AllianceLevel:
                        for (var l = i + 1; l < t.Task.length && o >= t.Task[l]; l++) a++;
                        break;
                    case d.AllianceTaskType.AllianceChallengeRank:
                    case d.AllianceTaskType.AllianceBossRank:
                    case d.AllianceTaskType.AllianceMazeRank:
                        for (o = -o, l = i + 1; l < t.Task.length; l++) {
                            var c = -t.Task[l];
                            if (0 == o) break;
                            if (!(o <= c)) break;
                            a++
                        }
                }
                return a
            }, e.prototype.GetHeroGetWayItemId = function(e, t, n, o) {
                var r;
                switch (e) {
                    case 1:
                        r = t + 11e5;
                        break;
                    case 3:
                    case 4:
                        for (var i = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, g.LevelParamType.HeroGetWayItemParam), a = 100 * e + o, s = 0; s < i.Data2.length; s++)
                            if (a == i.Data2[s].Items[0]) {
                                if (3 == e) {
                                    if (n) r = i.Data2[s].Items[n];
                                    else if (t) {
                                        var l = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t);
                                        r = i.Data2[s].Items[l.ElementType]
                                    }
                                    r || (r = i.Data2[s].Items[1])
                                } else r = i.Data2[s].Items[1];
                                break
                            }
                }
                return r || d.CommonItemId.AbstractHeroId
            }, e.prototype.GetLess100RomanNumerals = function(e) {
                if (e < 1 || e > 3999) return null;
                for (var t = "", n = e, o = 0, r = [
                        [1e3, "M"],
                        [900, "CM"],
                        [500, "D"],
                        [400, "CD"],
                        [100, "C"],
                        [90, "XC"],
                        [50, "L"],
                        [40, "XL"],
                        [10, "X"],
                        [9, "IX"],
                        [5, "V"],
                        [4, "IV"],
                        [1, "I"]
                    ]; o < r.length; o++) {
                    for (var i = r[o], a = i[0], s = i[1]; n >= a;) t += s, n -= a;
                    if (0 === n) break
                }
                return t
            }, e.prototype.SetAllianceInfo = function(e) {
                e || (f.DataCenter.Instance.AllianceInfo = void 0), f.DataCenter.Instance.AllianceInfo ? (f.DataCenter.Instance.AllianceInfo.Xp = e.Xp || f.DataCenter.Instance.AllianceInfo.Xp, f.DataCenter.Instance.AllianceInfo.Level = e.Level || f.DataCenter.Instance.AllianceInfo.Level, f.DataCenter.Instance.AllianceInfo.Name = e.Name || f.DataCenter.Instance.AllianceInfo.Name, f.DataCenter.Instance.AllianceInfo.Notice = e.Notice || f.DataCenter.Instance.AllianceInfo.Notice, f.DataCenter.Instance.AllianceInfo.Icon = e.Icon || f.DataCenter.Instance.AllianceInfo.Icon, f.DataCenter.Instance.AllianceInfo.RequireLevel = e.RequireLevel || f.DataCenter.Instance.AllianceInfo.RequireLevel, f.DataCenter.Instance.AllianceInfo.RequirePower = e.RequirePower || f.DataCenter.Instance.AllianceInfo.RequirePower, f.DataCenter.Instance.AllianceInfo.NeedVerify = e.NeedVerify || f.DataCenter.Instance.AllianceInfo.NeedVerify, f.DataCenter.Instance.AllianceInfo.Tasks = e.Tasks || f.DataCenter.Instance.AllianceInfo.Tasks) : f.DataCenter.Instance.AllianceInfo = {
                    _id: e.Id,
                    Xp: e.Xp || 0,
                    Level: e.Level || 0,
                    Name: e.Name || "",
                    Notice: e.Notice || "",
                    Icon: e.Icon,
                    RequireLevel: e.RequireLevel || 0,
                    RequirePower: e.RequirePower || 0,
                    NeedVerify: e.NeedVerify || 0,
                    Zone: f.DataCenter.Zone,
                    Members: {},
                    RequestUsers: {},
                    Tasks: e.Tasks || {}
                }
            }, e.prototype.CheckAllianceInsigniaCanUp = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.AllianceBadge_Config, e);
                if (!t || !t.Task || t.Task.length <= 0) return !0;
                var n = !0,
                    o = f.RpcComponent.Instance.ServerTime;
                switch (t.Task[0]) {
                    case d.AllianceTaskType.AllianceBossRank:
                        var r = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, g.LevelParamType.AllianceBOSSBattleTime);
                        if (!r || r.Data.length < 3) break;
                        var i = T.TimeUtil.GetIndexClockTs(o, r.Data[2]);
                        if (r.Data.length >= 4 && (i += r.Data[3] * g.Etc.MinuteDuration), o < i) break;
                        var a = T.TimeUtil.Get0ClockTs(i);
                        o <= T.TimeUtil.GetOffsetDayTs(1, a) && (n = !1);
                        break;
                    case d.AllianceTaskType.AllianceChallengeRank:
                    case d.AllianceTaskType.AllianceMazeRank:
                        var s = T.TimeUtil.GetMondayClock0Ts(o),
                            l = T.TimeUtil.GetIndexClockTs(s, 1);
                        o >= s && o <= l && (n = !1);
                        break;
                    default:
                        n = !0
                }
                return n
            }, e.prototype.GetAllianceInsigniaDeadLineById = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.AllianceBadge_Config, e);
                if (!t || !t.Task || t.Task.length <= 0) return -1;
                var n = f.RpcComponent.Instance.ServerTime,
                    o = 0;
                switch (t.Task[0]) {
                    case d.AllianceTaskType.AllianceChallengeRank:
                        var r = T.TimeUtil.GetOffsetDayTs(7, n);
                        o = T.TimeUtil.GetMondayClock0Ts(r);
                        break;
                    case d.AllianceTaskType.AllianceBossRank:
                        var i = f.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, g.LevelParamType.AllianceBOSSBattleTime);
                        if (!i || i.Data.length < 3) break;
                        var a = T.TimeUtil.GetIndexClockTs(n, i.Data[2]);
                        i.Data.length >= 4 && (a += i.Data[3] * g.Etc.MinuteDuration), o = a;
                        break;
                    case d.AllianceTaskType.AllianceMazeRank:
                        var s = T.TimeUtil.GetMondayClock0Ts(n);
                        o = T.TimeUtil.GetOffsetDayTs(7, s);
                        break;
                    default:
                        o = -1
                }
                return o
            }, e.prototype.ActivityPackPopSetItem = function(e) {
                var t = U.default.GetItem(U.GameRecordDefine.ActivityPackPop),
                    n = {},
                    o = f.RpcComponent.Instance.ServerTime;
                if (t) {
                    var r = JSON.parse(t);
                    for (var i in r) {
                        var a = parseInt(i);
                        f.DataCenter.Instance.ActivityConfigs[i] && o < this.GetActivityEndTime(a) && (n[a] = r[i])
                    }
                }
                for (var s = 0; s < e.length; s++) !f.DataCenter.Instance.ActivityConfigs[e[s]] || this.GetActivityEndTime(e[s]) <= o || (n[e[s]] = o);
                U.default.SetItem(U.GameRecordDefine.ActivityPackPop, JSON.stringify(n))
            }, e._instance = null, e.USE_PROJECT_ASSETS = !1, t = o([te], e)
        }();
        n.default = ne, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../Consts/Consts": "Consts",
        "../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../EZFramework/EZFramework": "EZFramework",
        "../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Util/index": "index",
        "../Channel/ChannelManager": "ChannelManager",
        "../Components/Components": "Components",
        "../InitHelper": "InitHelper",
        "../UI/Auxiliary/UIUtlity": "UIUtlity",
        "../UI/Battle/BattleManager": "BattleManager",
        "../UI/Components/ItemComponent": "ItemComponent",
        "../UI/Panel/ActivityBaseContent": "ActivityBaseContent",
        "../UI/Panel/AllianceBaseMainPanel": "AllianceBaseMainPanel",
        "../UI/Panel/CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "../UI/Panel/CrossServerChampionStartPanel": "CrossServerChampionStartPanel",
        "../UI/Panel/ExclusiveWeaponGalleryPanel": "ExclusiveWeaponGalleryPanel",
        "../UI/Panel/FavorUpgradePanel": "FavorUpgradePanel",
        "../UI/Panel/GiftPackListPanel": "GiftPackListPanel",
        "../UI/Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "../UI/Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "../UI/Panel/MainUIPanel": "MainUIPanel",
        "../UI/Panel/MallSkinPackPanel": "MallSkinPackPanel",
        "../UI/Panel/QueenSummonPanel": "QueenSummonPanel",
        "../UI/Panel/RiskPortPanel": "RiskPortPanel",
        "../UI/Panel/SeniorArenaPanel": "SeniorArenaPanel",
        "../UI/Panel/SortHeroRulePanel": "SortHeroRulePanel",
        "../UI/Panel/SortPetRulePanel": "SortPetRulePanel",
        "../UI/Panel/StarPiecePanel": "StarPiecePanel",
        "../UI/Panel/StarTemplePanel": "StarTemplePanel",
        "../UI/Panel/SummonActivityListPanel": "SummonActivityListPanel",
        "../UI/Panel/TimeLimitedActivityPanel": "TimeLimitedActivityPanel",
        "../UI/Panel/WarTokenListPanel": "WarTokenListPanel",
        "./EventKeys": "EventKeys",
        "./GameDataChecker": "GameDataChecker",
        "./GameRecord": "GameRecord",
        "./GlobalDefine": "GlobalDefine",
        "./GuideManager": "GuideManager"
    }],
    DaysGiftComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "38cb5F2O2FCro9/sBZYx46W", "DaysGiftComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.GetTimeProgress = null, t.GetButton = null, t.GetButtonLabel = null, t.GoButton = null, t.GoButtonLabel = null, t.UnopenButton = null, t.UnopenButtonLabel = null, t.ReceivedTag = null, t.ItemContainer = null, t._items = [], t
                }
                return r(t, e), t.prototype.SetTitle = function(e) {
                    return this.Title.string = e, this
                }, t.prototype.SetPurchaseLimit = function(e, t, n, o) {
                    return this.GetTimeProgress.string = e < t ? "<color = ffffff>" + e + "/" + t + "</c>" : "<color = 00ff00>" + t + "/" + t + "</c>", this.GoButton.node.active = e == t - 1 && n, this.UnopenButton.node.active = e < t && !this.GoButton.node.active, this.GetButton.node.active = e >= t && !o, this.ReceivedTag.active = o, this.GetButtonLabel.string = "receive".ToUILocale(), this.GoButtonLabel.string = "task_goto".ToUILocale(), this.UnopenButtonLabel.string = "dailyInstance_unopen".ToUILocale(), this
                }, t.prototype.SetItems = function(e, t) {
                    var n;
                    if (t.length > this._items.length) {
                        for (var o = 0; o < this._items.length; o++) this._items[o].node.name = t[o].Items[0].toString(), n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), (i = t[o].Items[2]) && this._items[o].PlayLightingCircleEffect(i);
                        for (o = this._items.length; o < t.length; o++) {
                            var r = e.Get();
                            r.active = !0, r.setParent(this.ItemContainer), r.name = t[o].Items[0].toString(), this._items[o] = r.getComponent(l.ItemComponent), n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                                ItemId: t[o].Items[0],
                                Count: t[o].Items[1]
                            }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), (i = t[o].Items[2]) && this._items[o].PlayLightingCircleEffect(i)
                        }
                    } else {
                        for (o = 0; o < t.length; o++) {
                            var i;
                            this._items[o].node.name = t[o].Items[0].toString(), n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                                ItemId: t[o].Items[0],
                                Count: t[o].Items[1]
                            }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), (i = t[o].Items[2]) && this._items[o].PlayLightingCircleEffect(i)
                        }
                        for (o = t.length; o < this._items.length; o++) this._items[o].node.active = !1, e.Put(this._items[o].node);
                        this._items.length = t.length
                    }
                    return this
                }, t.prototype.SetButtonClick = function(e) {
                    this._index = e, this.GetButton.node.on("click", this.OnPurchaseButtonClick, this)
                }, t.prototype.OnPurchaseButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_DAYSGIFT_GETBUTTONCLICK, this._index)
                }, t.prototype.OnGoButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_DAYSGIFT_GOBUTTONCLICK, this._index)
                }, t.prototype.OnUnopenButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_DAYSGIFT_UNOPENBUTTONCLICK, this._index)
                }, t.prototype.onEnable = function() {
                    this.GoButton.node.on("click", this.OnGoButtonClick, this), this.UnopenButton.node.on("click", this.OnUnopenButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.GetButton.node.off("click", this.OnPurchaseButtonClick, this), this.GoButton.node.off("click", this.OnGoButtonClick, this), this.UnopenButton.node.off("click", this.OnUnopenButtonClick, this)
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.RichText)], t.prototype, "GetTimeProgress", void 0), i([h(cc.Button)], t.prototype, "GetButton", void 0), i([h(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([h(cc.Button)], t.prototype, "GoButton", void 0), i([h(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([h(cc.Button)], t.prototype, "UnopenButton", void 0), i([h(cc.Label)], t.prototype, "UnopenButtonLabel", void 0), i([h(cc.Node)], t.prototype, "ReceivedTag", void 0), i([h(cc.Node)], t.prototype, "ItemContainer", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    DaysPayItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f99e6o4jnlP8bNdHUdycW39", "DaysPayItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/ItemComponent"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Components/RpcComponent"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../RedDot/RedDotManager"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Days = null, t.RewardNode = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.BuyButton = null, t.BuyLabel = null, t.HasBuy = null, t._itemPrefab = null, t._itemNodes = [], t._data = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.initData = function(e) {
                    this._data = e, this.InitNode(), this.SetRedDot(), this.SetInfo(), this.SetItems()
                }, t.prototype.InitNode = function() {
                    this.ReceiveButton.node.active = !1, this.BuyButton.node.active = !1, this.HasBuy.active = !1, this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this.ReceiveLabel.string = "receive".ToUILocale(), 0 == this._data.type ? this.BuyLabel.string = "mall_luckyStar_goCharge".ToUILocale() : this.BuyLabel.string = "task_goto".ToUILocale()
                }, t.prototype.SetRedDot = function() {
                    _.RedDotManager.Instance.BindNodeByResult(this.ReceiveButton.node, _.RedDotManager.Instance.InstanceRedDot.TaskTalentNode, 1 == this._data.State)
                }, t.prototype.SetInfo = function() {
                    this.Title.string = this._data.Title;
                    var e = this._data.CurValue < this._data.MaxValue ? "#ff4b4b" : "#ffffff";
                    this.Days.string = "<outline width = 2 color = #000000><color = {0}>{1}</c><color = #ffffff>/{2}</c></outline>".Fmt(e, this._data.CurValue, this._data.MaxValue), this.ReceiveButton.node.active = 1 == this._data.State, this.BuyButton.node.active = 0 == this._data.State, this.HasBuy.active = 2 == this._data.State
                }, t.prototype.SetItems = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._data.Rewards.forEach(function(e, n) {
                                        var o = e.Items[0],
                                            r = e.Items[1];
                                        if (t._itemNodes[n]) t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(h.ItemComponent).Init({
                                            ItemId: o,
                                            Count: r
                                        }, h.ItemComponentType.ItemCommon);
                                        else {
                                            var i = cc.instantiate(t._itemPrefab);
                                            i.active = !0, t._itemNodes[n] = i, t._itemNodes[n].parent = t.RewardNode, t._itemNodes[n].getComponent(h.ItemComponent).Init({
                                                ItemId: o,
                                                Count: r
                                            }, h.ItemComponentType.ItemCommon)
                                        }
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e;
                    0 == this._data.type ? ((e = new c.Req_Player_DaysPayReward).Type = g.ReceiveRewardType.Task, e.Id = this._data.Id, m.RpcComponent.Instance.Call(e, function(e) {
                        l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_REFRESH_DAYSPAY, e), d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })) : ((e = new c.Req_Activity_CommonTaskReward).ActivityId = this._data.ActivityId, e.TaskIds = [this._data.Id], u.RpcComponent.Instance.Call(e, function(e) {
                        d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    }))
                }, t.prototype.OnBuyButtonClick = function() {
                    0 == this._data.type ? 1 == I.default.Instance.HasBoughtFirstPay() ? l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path) : I.default.ShowActivityFirstPayPanel(!0) : I.default.ShowPanelByGetWayId(this._data.GetWayId)
                }, t.prototype.onDestroy = function() {
                    f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemPrefab = null, this._itemNodes = []
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.RichText)], t.prototype, "Days", void 0), i([b(cc.Node)], t.prototype, "RewardNode", void 0), i([b(cc.Button)], t.prototype, "ReceiveButton", void 0), i([b(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([b(cc.Button)], t.prototype, "BuyButton", void 0), i([b(cc.Label)], t.prototype, "BuyLabel", void 0), i([b(cc.Node)], t.prototype, "HasBuy", void 0), i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    DaysPayPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a75ddRxnlZGo6/1+/iWNGFJ", "DaysPayPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../Consts/Consts"),
            f = e("./DaysPayItem"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../../Components/Components"),
            b = e("../../../Consts/Consts"),
            S = e("../../../EZFramework/EZFramework"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.DaysPay = 0] = "DaysPay", e[e.TaskTalent = 1] = "TaskTalent"
        })(l || (l = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Banner = null, t.Title = null, t.FreeButton = null, t.FreeLabel = null, t.FreeReceive = null, t.FinalTitle = null, t.FinalTimes = null, t.FinalRewards = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.NoGetButton = null, t.NoGetLabel = null, t.FinalReceive = null, t.ScrollView = null, t.ParentNode = null, t.ReturnButton = null, t.MoveDownNode = null, t.TimeDesc = null, t.TimeValue = null, t._cellPrefab = null, t._itemPrefab = null, t._cellNodes = [], t._fianlItemNodes = [], t._type = l.DaysPay, t._deadLine = 0, t._daysPayConfig = null, t._daysPayModel = null, t._canShowMoveDown = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(p.GameModule_Model._n_), this.OnGameModuleStateChange, this), c.Game.EventDispatcher.On(g.EventKeys.EVENT_REFRESH_DAYSPAY, this.OnRefreshData, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(p.GameModule_Model._n_), this.OnGameModuleStateChange, this), c.Game.EventDispatcher.Off(g.EventKeys.EVENT_REFRESH_DAYSPAY, this.OnRefreshData, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = this.LoadDynamicAsset("DaysPayPanel/DaysPayItem", cc.Prefab), t = this.LoadDynamicAsset(I.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([e, t]).then(function(e) {
                                    n._cellPrefab = e[0], n._itemPrefab = e[1]
                                })];
                            case 1:
                                return o.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t);
                var n = t[0];
                n && (this._configData = u.DataCenter.Instance.ActivityConfigs[n], this._deadLine = _.default.Instance.ComputeDeadTime(this._configData.Common)), this._type = t[1], this._daysPayModel = t[2], this._type == l.DaysPay && (this._daysPayConfig = v.ConfigDataComponent.Instance.GetConfig(d.DaysPay_Config))
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), this._type != l.TaskTalent ? [3, 2] : (t = this, [4, _.default.LoadActivityTexture(this._configData.Common.Pictures[0])]);
                            case 1:
                                return t._banner = n.sent(), this.isValid ? (this.Banner.spriteFrame = this._banner, this.Banner.node.active = !0, [3, 3]) : (S.AssetsManager.Instance.UnloadAsset(this._banner), [2]);
                            case 2:
                                this.Banner.node.active = !0, this.Title.node.active = !0, n.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                this.FreeLabel.string = "daysPay_daily".ToUILocale(), this.ReceiveLabel.string = "receive".ToUILocale(), this.NoGetLabel.string = "mall_notReach".ToUILocale(), this.FinalTitle.string = "daysPay_complete".ToUILocale(), this.FreeButton.node.on("click", this.OnFreeButtonClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.Banner.node.active = !1, this.Title.node.active = !1
            }, t.prototype.update = function() {
                this._canShowMoveDown && (this.ScrollView.getScrollOffset().y >= this.ScrollView.getMaxScrollOffset().y ? this.MoveDownNode.active = !1 : this.MoveDownNode.active = !0)
            }, t.prototype.DisPlay = function(t) {
                var n = this;
                if (void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._type == l.TaskTalent) this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this.SetUIContetn();
                else if (u.DataCenter.Instance.GetIntData(b.UserDataKey.DailyPay) >= u.ConfigDataComponent.Instance.GetConfigById(d.PayCount_Config, h.PayCountId.DaysPay).Count) {
                    var o = new p.Req_Player_DaysPayEnter;
                    v.RpcComponent.Instance.Call(o, function(e) {
                        n._daysPayModel = e, n.SetUIContetn()
                    })
                } else this.SetUIContetn()
            }, t.prototype.SetUIContetn = function() {
                this.InitNodes(), this.SetInfo(), this.SetTime(), this.SetList(), this.SetMoveDown()
            }, t.prototype.InitNodes = function() {
                this._cellNodes.forEach(function(e) {
                    e.active = !1
                }), this._fianlItemNodes.forEach(function(e) {
                    e.active = !1
                }), this.FreeReceive.active = !1, this.FinalReceive.active = !1, this.ReceiveButton.node.active = !1, this.NoGetButton.node.active = !1
            }, t.prototype.SetInfo = function() {
                var e = this;
                if (this.FinalRewards.destroyAllChildren(), this._fianlItemNodes = [], this._type == l.DaysPay) {
                    var t = 0;
                    for (var n in this._daysPayConfig) t = Math.max(this._daysPayConfig[n].Id, t);
                    if (this._daysPayModel) {
                        var o = this._daysPayModel.DaysPayDays < t ? "#ff4b4b" : "#ffffff";
                        this.FreeReceive.active = 1 == this._daysPayModel.DaysPayDailyReward, this.FinalTimes.string = "<outline width = 2 color = #000000><color = {0}>{1}</c><color = #ffffff>/{2}</c></outline>".Fmt(o, this._daysPayModel.DaysPayDays, t), this.FinalReceive.active = 1 == this._daysPayModel.DaysPayFinallyReward, this.ReceiveButton.node.active = 1 != this._daysPayModel.DaysPayFinallyReward && this._daysPayModel.DaysPayDays >= t, this.NoGetButton.node.active = this._daysPayModel.DaysPayDays < t
                    }
                    u.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, h.LevelParamType.DaysPayFinallyReward).Data2.forEach(function(t, n) {
                        var o = t.Items[0],
                            r = t.Items[1];
                        if (!e._fianlItemNodes[n]) {
                            var i = cc.instantiate(e._itemPrefab);
                            e._fianlItemNodes[n] = i, e._fianlItemNodes[n].parent = e.FinalRewards
                        }
                        e._fianlItemNodes[n].active = !0, e._fianlItemNodes[n].getComponent(y.ItemComponent).Init({
                            ItemId: o,
                            Count: r
                        }, y.ItemComponentType.ItemCommon)
                    });
                    var r = 1 != this._daysPayModel.DaysPayFinallyReward && this._daysPayModel.DaysPayDays >= t;
                    C.RedDotManager.Instance.BindNodeByResult(this.FreeButton.node, C.RedDotManager.Instance.RedDot.DaysPayFreeBtnNode, 1 != this._daysPayModel.DaysPayDailyReward), C.RedDotManager.Instance.BindNodeByResult(this.ReceiveButton.node, C.RedDotManager.Instance.RedDot.DaysPayFinalBtnNode, r)
                } else {
                    var i = 0,
                        a = 0,
                        s = this._configData.CustomPart.Count,
                        c = this._model.IntValue || 0;
                    this._model.IntArray && this._model.IntArray.length > 1 && (i = this._model.IntArray[0], a = this._model.IntArray[1]), o = c < s ? "#ff4b4b" : "#ffffff", this.FreeReceive.active = 1 == i, this.FinalTimes.string = "<outline width = 2 color = #000000><color = {0}>{1}</c><color = #ffffff>/{2}</c></outline>".Fmt(o, c, s), this.FinalReceive.active = 1 == a, this.ReceiveButton.node.active = 1 != a && c >= s, this.NoGetButton.node.active = c < s, this._configData.CustomPart.Finally.forEach(function(t, n) {
                        var o = t.Items[0],
                            r = t.Items[1];
                        if (!e._fianlItemNodes[n]) {
                            var i = cc.instantiate(e._itemPrefab);
                            e._fianlItemNodes[n] = i, e._fianlItemNodes[n].parent = e.FinalRewards
                        }
                        e._fianlItemNodes[n].active = !0, e._fianlItemNodes[n].getComponent(y.ItemComponent).Init({
                            ItemId: o,
                            Count: r
                        }, y.ItemComponentType.ItemCommon)
                    }), C.RedDotManager.Instance.BindNodeByResult(this.FreeButton.node, C.RedDotManager.Instance.RedDot.DaysPayFreeBtnNode, 1 != i), C.RedDotManager.Instance.BindNodeByResult(this.ReceiveButton.node, C.RedDotManager.Instance.RedDot.DaysPayFinalBtnNode, 1 != a && c >= s)
                }
            }, t.prototype.SetTime = function() {
                if (this._type == l.TaskTalent) this.TimeDesc.string = "gift_remainderTime".ToUILocale(), this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1);
                else {
                    var e = u.DataCenter.Instance.GetIntData(b.UserDataKey.DailyPay);
                    this.TimeDesc.string = "daysPay_today_recharge".ToUILocale(), this.TimeValue.string = e.toString()
                }
            }, t.prototype.CountDownActivityTime = function() {
                var e = u.RpcComponent.Instance.ServerTime,
                    t = this._deadLine - e;
                t < 0 && c.UIManager.Instance.BackUIPanel(), this.TimeValue.string = _.default.ActivityTimeLeftFormat(t)
            }, t.prototype.SetList = function() {
                var e = this;
                if (this.ParentNode.destroyAllChildren(), this._cellNodes = [], this._type == l.DaysPay) {
                    var t = [];
                    for (var n in this._daysPayConfig) t.push(this._daysPayConfig[n]);
                    t.forEach(function(t, n) {
                        if (!e._cellNodes[n]) {
                            var o = cc.instantiate(e._cellPrefab);
                            o.parent = e.ParentNode, e._cellNodes[n] = o
                        }
                        var r;
                        e._cellNodes[n].active = !0, r = e.DealDaysPayItemData(t), e._cellNodes[n].getComponent(f.default).initData(r)
                    })
                } else this.GetSortTaskList().forEach(function(t, n) {
                    if (!e._cellNodes[n]) {
                        var o = cc.instantiate(e._cellPrefab);
                        o.parent = e.ParentNode, e._cellNodes[n] = o
                    }
                    e._cellNodes[n].active = !0, e._cellNodes[n].getComponent(f.default).initData(t)
                })
            }, t.prototype.SetMoveDown = function() {
                if (this._type == l.DaysPay) {
                    var e = 0;
                    for (var t in this._daysPayConfig) e += 1;
                    this._canShowMoveDown = e > 3
                } else this._canShowMoveDown = this._configData._Tasks.length > 3;
                if (this._canShowMoveDown) {
                    this.ScrollView;
                    var n = cc.tween(this.MoveDownNode).to(.3, {
                            y: 290
                        }),
                        o = cc.tween(this.MoveDownNode).to(.3, {
                            y: 260
                        });
                    cc.tween(this.MoveDownNode).sequence(n, o).repeatForever().start()
                }
            }, t.prototype.DealDaysPayItemData = function(e) {
                var t = {},
                    n = u.ConfigDataComponent.Instance.GetConfigById(d.PayCount_Config, h.PayCountId.DaysPay).Count,
                    o = this._daysPayModel.DaysPayRewards,
                    r = this.GetBit(o, e.Id - 1);
                return t.Id = e.Id, t.Title = "daysPay_recharge_get".ToUILocale().Fmt(e.Id, n), t.MaxValue = e.Id, t.Rewards = e.Rewards, this._daysPayModel && (t.CurValue = this._daysPayModel.DaysPayDays, t.State = r ? 2 : this._daysPayModel.DaysPayDays >= e.Id ? 1 : 0), t.type = l.DaysPay, t
            }, t.prototype.GetBit = function(e, t) {
                return 1 == (e >> t & 1)
            }, t.prototype.DealTaskTalentItemData = function(e) {
                var t = {},
                    n = this._configData._id * b.Etc.Multiplier + e.Id,
                    o = v.DataCenter.Instance.GetDataById(p.UserTask_Model, n);
                return t.Id = e.Id, t.Title = _.default.GetTaskDesc(e), t.CurValue = o.Progress, t.MaxValue = e.TotalCount, t.Rewards = e.Rewards, t.State = 1 == o.IsCompleted ? 2 : o.Progress >= e.TotalCount ? 1 : 0, t.ActivityId = this._configData._id, t.type = l.TaskTalent, t.GetWayId = e.GetWayId, t
            }, t.prototype.GetSortTaskList = function() {
                var e = this,
                    t = [];
                return this._configData._Tasks.forEach(function(n) {
                    var o;
                    o = e.DealTaskTalentItemData(n), t.push(o)
                }), t.sort(function(e, t) {
                    return 1 == e.State && 1 == t.State ? -1 : 1 == e.State ? -1 : 1 == t.State ? 1 : e.State - t.State
                }), t
            }, t.prototype.OnGameModuleStateChange = function() {}, t.prototype.OnFreeButtonClick = function() {
                var e = this;
                if (this._type == l.DaysPay) {
                    if (this._daysPayModel && 1 == this._daysPayModel.DaysPayDailyReward) return;
                    (t = new p.Req_Player_DaysPayReward).Type = b.ReceiveRewardType.Daily, v.RpcComponent.Instance.Call(t, function(t) {
                        e._daysPayModel.DaysPayDailyReward = t.DaysPayDailyReward;
                        var n = e.CheckRedDot();
                        c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_REFRESH_DAYSPAY_REDDOT, n), m.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    })
                } else {
                    var t;
                    (t = new p.Req_Activity_TaskTalentReward).ActivityId = this._configData._id, t.Type = b.ReceiveRewardType.Daily, v.RpcComponent.Instance.Call(t, function(e) {
                        m.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }
            }, t.prototype.OnReceiveButtonClick = function() {
                var e = this;
                if (this._type == l.DaysPay) {
                    if (this._daysPayModel && 1 == this._daysPayModel.DaysPayFinallyReward) return;
                    (t = new p.Req_Player_DaysPayReward).Type = b.ReceiveRewardType.Finally, v.RpcComponent.Instance.Call(t, function(t) {
                        e._daysPayModel.DaysPayFinallyReward = t.DaysPayFinallyReward;
                        var n = e.CheckRedDot();
                        c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_REFRESH_DAYSPAY_REDDOT, n), m.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    })
                } else {
                    var t;
                    (t = new p.Req_Activity_TaskTalentReward).ActivityId = this._configData._id, t.Type = b.ReceiveRewardType.Finally, v.RpcComponent.Instance.Call(t, function(e) {
                        m.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.FinalRewards.children.indexOf(t) && m.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
            }, t.prototype.OnRefreshData = function(e) {
                this._daysPayModel.DaysPayRewards = e.DaysPayRewards;
                var t = this.CheckRedDot();
                c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_REFRESH_DAYSPAY_REDDOT, t)
            }, t.prototype.CheckRedDot = function() {
                var e, t = !1,
                    n = 1 != this._daysPayModel.DaysPayDailyReward,
                    o = 0;
                for (var r in this._daysPayConfig) o = Math.max(this._daysPayConfig[r].Id, o);
                for (var r in e = 1 != this._daysPayModel.DaysPayFinallyReward && this._daysPayModel.DaysPayDays >= o, this._daysPayConfig) 1 == this.DealDaysPayItemData(this._daysPayConfig[r]).State && (t = !0);
                return e || n || t
            }, t.prototype.onDestroy = function() {
                S.AssetsManager.Instance.UnloadAsset(this._banner), this.unscheduleAllCallbacks()
            }, i([A(cc.Sprite)], t.prototype, "Banner", void 0), i([A(cc.Sprite)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "FreeButton", void 0), i([A(cc.Label)], t.prototype, "FreeLabel", void 0), i([A(cc.Node)], t.prototype, "FreeReceive", void 0), i([A(cc.Label)], t.prototype, "FinalTitle", void 0), i([A(cc.RichText)], t.prototype, "FinalTimes", void 0), i([A(cc.Node)], t.prototype, "FinalRewards", void 0), i([A(cc.Button)], t.prototype, "ReceiveButton", void 0), i([A(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([A(cc.Button)], t.prototype, "NoGetButton", void 0), i([A(cc.Label)], t.prototype, "NoGetLabel", void 0), i([A(cc.Node)], t.prototype, "FinalReceive", void 0), i([A(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([A(cc.Node)], t.prototype, "ParentNode", void 0), i([A(cc.Button)], t.prototype, "ReturnButton", void 0), i([A(cc.Node)], t.prototype, "MoveDownNode", void 0), i([A(cc.Label)], t.prototype, "TimeDesc", void 0), i([A(cc.Label)], t.prototype, "TimeValue", void 0), i([P], t)
        }(c.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./DaysPayItem": "DaysPayItem"
    }],
    DiamondShopItemGoodComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e798dyd7XVPlqKRCIQWJtc9", "DiamondShopItemGoodComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/EventKeys"),
            s = e("../../../EZFramework/EZFramework"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagLabel0 = null, t.TagLabel1 = null, t.Tag = null, t.CenterSprite = null, t.DiamondIcon = null, t.DiamondCount = null, t.PriceLabel = null, t.VipNode = null, t.PurchaseButton = null, t.VipLeft = null, t.VipValue = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.PurchaseButton.node.on("click", this.OnPurchaseButtonClick, this), this.VipLeft.string = "diamondShop_vipQuantity".ToUILocale(), this.node.on(cc.Node.EventType.TOUCH_END, this.OnPurchaseButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.PurchaseButton.node.off("click", this.OnPurchaseButtonClick, this), this.node.off(cc.Node.EventType.TOUCH_END, this.OnPurchaseButtonClick, this)
                }, t.prototype.OnPurchaseButtonClick = function() {
                    this._purchaseCall && this._purchaseCall(this.name), s.Game.EventDispatcher.Emit(a.EventKeys.EVENT_DIAMONDSHOP_BUYDIAMOND, Number.parseInt(this.name))
                }, t.prototype.SetTag = function(e, t) {
                    return void 0 === e && (e = null), this.Tag.node.active = t, this.Tag.node.active && (this.Tag.spriteFrame = e), this
                }, t.prototype.SetTag2 = function(e, t, n) {
                    return this.Tag.node.active = e, e && (this.TagLabel0.string = t, this.TagLabel1.string = n), this
                }, t.prototype.SetBg = function() {
                    return this
                }, t.prototype.SetPrefixLabel = function(e, t) {
                    return this.TagLabel0.string = e, this.TagLabel0.getComponent(cc.LabelOutline).color = t, this.TagLabel1.getComponent(cc.LabelOutline).color = t, this
                }, t.prototype.SetSuffixLabel = function(e) {
                    return this.TagLabel1.string = e, this
                }, t.prototype.SetIcon = function(e) {
                    return this.CenterSprite.spriteFrame = e, this
                }, t.prototype.SetDiamondCount = function(e) {
                    return this.DiamondCount.string = e.toString(), this
                }, t.prototype.SetButtonLabel = function(e) {
                    return this.PriceLabel.string = e.toString(), this
                }, t.prototype.SetVipPoint = function(e) {
                    return e ? (this.VipNode.active = !0, this.VipValue.string = "x" + e.toString()) : this.VipNode.active = !1, this
                }, i([u(cc.Label)], t.prototype, "TagLabel0", void 0), i([u(cc.Label)], t.prototype, "TagLabel1", void 0), i([u(cc.Sprite)], t.prototype, "Tag", void 0), i([u(cc.Sprite)], t.prototype, "CenterSprite", void 0), i([u(cc.Sprite)], t.prototype, "DiamondIcon", void 0), i([u(cc.Label)], t.prototype, "DiamondCount", void 0), i([u(cc.Label)], t.prototype, "PriceLabel", void 0), i([u(cc.Node)], t.prototype, "VipNode", void 0), i([u(cc.Button)], t.prototype, "PurchaseButton", void 0), i([u(cc.Label)], t.prototype, "VipLeft", void 0), i([u(cc.Label)], t.prototype, "VipValue", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    DiamondShopPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eb9eeVYJy1CybFL6SKe7xeL", "DiamondShopPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/DiamondShopItemGoodComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Channel/ChannelManager"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/CustomProgressBar"),
            C = e("./DiamondShopPanel"),
            v = e("../Components/LoadAssetHelper"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.GetEXPButton = null, t.GetEXPButtonLabel = null, t.DialogueRichText = null, t.LevelUpProgress = null, t.VipText = null, t.LevelLabel = null, t.ValueLabel = null, t.GoodContainer = null, t.VipIcon = null, t.DiamondText = null, t.CurrencyText = null, t.Bg = null, t.HeroBg = null, t.LoadAssetHelper = null, t._diamondId = 3, t._vipEXPId = 2, t._vipLevel = 0, t._configs = [], t._firstOutlineColor = new cc.Color(87, 0, 0), t._lowPriceOutlineColor = new cc.Color(0, 29, 87), t._firstGet = "diamondShop_firstGive", t._lowPriceGet = "diamondShop_chargeGive", t._goodArray = [], t._dataArray = [], t._giftIdArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(y.EventKeys.EVENT_DIAMONDSHOP_BUYDIAMOND, this.OnChargeButtonClick, this), p.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnVipInfoChange, this), p.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(d.UserItem_Model._n_), this.OnVipInfoChange, this), p.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(d.UserItem_Model._n_), this.OnUserItemDataChange, this), p.Game.EventDispatcher.On(u.GameEventIds.AddDataDetail.Fmt(d.UserItem_Model._n_), this.OnUserItemDataChange, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(y.EventKeys.EVENT_DIAMONDSHOP_BUYDIAMOND, this.OnChargeButtonClick), p.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnVipInfoChange, this), p.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(d.UserItem_Model._n_), this.OnVipInfoChange, this), p.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(d.UserItem_Model._n_), this.OnUserItemDataChange, this), p.Game.EventDispatcher.Off(u.GameEventIds.AddDataDetail.Fmt(d.UserItem_Model._n_), this.OnUserItemDataChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("DiamondShopPanel/Component/ItemGood", cc.Prefab), n = this.LoadDynamicAsset("DiamondShopPanel/PNG/diamondShop", cc.SpriteAtlas), o = this.LoadDynamicAsset(h.BundlePath.ItemIcon + "/" + u.CommonItemId.VipPoint, cc.SpriteFrame), r = this.LoadDynamicAsset(h.BundlePath.ItemIcon + "/" + u.CommonItemId.Diamond, cc.SpriteFrame), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._goodPrefab = e[0], i._astlas = e[1], i.VipIcon.spriteFrame = e[2], i._diamondIcon = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetEXPButton.node.on("click", this.OnGetEXPButtonClick, this), this.GetEXPButtonLabel.string = "diamondShop_acquire".ToUILocale(), this._firstTag = this._astlas.getSpriteFrame("tag_firstCharge"), this._lowPriceTag = this._astlas.getSpriteFrame("tag_lowPrice"), this._configs = c.ConfigCacheComponent.Instance.GetVipLevelConfigs(), this.VipText.string = "vip".ToUILocale()
                }, t.prototype.OnGetEXPButtonClick = function() {
                    p.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, u.CommonItemId.VipPoint)
                }, t.prototype.OnChargeButtonClick = function(e) {
                    if (this._currentTab == C.DiamondShopTabType.Currency) g.default.Instance.Pay(this._giftIdArray[e]);
                    else {
                        if (g.default.Instance.IsVNChannel() && !c.DataCenter.Instance.IsItemEnough(u.CommonItemId.ColorDiamond, this._dataArray[e].Money)) return void I.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(u.CommonItemId.ColorDiamond.ToItemName()));
                        g.default.Instance.Pay(this._giftIdArray[e])
                    }
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._currentTab = t[0], this._currentTab == C.DiamondShopTabType.Currency ? this._giftIdArray = c.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, u.LevelParamType.BuyCurrency).Data : this._giftIdArray = c.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, u.LevelParamType.BuyDiamond).Data
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.PreloadByData.call(this), this._currentTab == C.DiamondShopTabType.Currency ? (this.LoadAssetHelper.LoadSpriteFrame("DiamondShopPanel/PNG/bg1", this.Bg, null, 1), this.LoadAssetHelper.LoadSpriteFrame("DiamondShopPanel/PNG/hero1", this.HeroBg, null, 2)) : (this.LoadAssetHelper.LoadSpriteFrame("DiamondShopPanel/PNG/bg2", this.Bg, null, 1), this.LoadAssetHelper.LoadSpriteFrame("DiamondShopPanel/PNG/hero2", this.HeroBg, null, 2)), [2]
                        })
                    })
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetVipInfo(), this._currentTab == C.DiamondShopTabType.Currency ? (this.CurrencyText.active = !0, this.DiamondText.active = !1, this._dataArray = c.ConfigCacheComponent.Instance.GetCurrencyShopGiftsConfigs()) : (this.DiamondText.active = !0, this.CurrencyText.active = !1, this._dataArray = c.ConfigCacheComponent.Instance.GetDiamondShopGiftsConfigs()), this.InitByGift()
                }, t.prototype.InitByGift = function() {
                    for (var e = 0; e < this._dataArray.length; e++)
                        if (null == this._goodArray[e]) {
                            var t = cc.instantiate(this._goodPrefab);
                            t.setParent(this.GoodContainer), t.name = e.toString(), this._goodArray[e] = t.getComponent(f.default)
                        } this.SetGoods()
                }, t.prototype.SetGoods = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function() {
                            for (i = 0; i < this._dataArray.length; i++) e = i < 9 ? i : 8, t = m.default.Instance.GetGiftBuyCount(this._giftIdArray[i]) > 0, n = this._dataArray[i].Items[0].Items[t ? 3 : 2], o = g.default.Instance.ExchangeMoney(this._dataArray[i].Money), this._currentTab == C.DiamondShopTabType.Currency ? (this._goodArray[i].SetIcon(this._astlas.getSpriteFrame("currency_" + (e + 1))), this._goodArray[i].SetBg(this._astlas.getSpriteFrame("itemBG1")), r = g.default.Instance.ExchangeMoney(this._dataArray[i].Items[0].Items[1]), this._goodArray[i].SetDiamondCount(r, null)) : (this._goodArray[i].SetIcon(this._astlas.getSpriteFrame("diamond_" + (e + 1))), this._goodArray[i].SetBg(this._astlas.getSpriteFrame("itemBG")), this._goodArray[i].SetDiamondCount(this._dataArray[i].Items[0].Items[1], this._diamondIcon)), this._goodArray[i].node.active = !0, this._goodArray[i].SetTag(t ? this._lowPriceTag : this._firstTag, n > 0).SetPrefixLabel(t ? this._lowPriceGet.ToUILocale() : this._firstGet.ToUILocale(), t ? this._lowPriceOutlineColor : this._firstOutlineColor).SetSuffixLabel("diamondShop_diamondNumber".ToUILocale().Fmt(n)).SetButtonLabel(g.default.Instance.CurrencySymbol + o).SetDesc(this._dataArray[i].VipPoint, this.VipIcon.spriteFrame);
                            for (i = this._dataArray.length; i < this._goodArray.length; i++) this._goodArray[i].node.active = !1;
                            return [2]
                        })
                    })
                }, t.prototype.OnVipInfoChange = function(e) {
                    for (var t in e) Number.parseInt(t) != u.UserDataKey.VipLevel && Number.parseInt(t) != u.CommonItemId.VipPoint || this.SetVipInfo()
                }, t.prototype.SetVipInfo = function() {
                    var e, t;
                    this._vipLevel = c.DataCenter.Instance.GetIntData(u.UserDataKey.VipLevel), this._vipLevel >= this._configs.length ? (this._vipLevel = this._configs.length, e = t = this._configs[this._vipLevel - 1].Point - this._configs[this._vipLevel - 2].Point) : this._vipLevel > 0 ? (e = c.DataCenter.Instance.GetItemCount(this._vipEXPId) - this._configs[this._vipLevel - 1].Point, t = this._configs[this._vipLevel].Point - this._configs[this._vipLevel - 1].Point) : (e = c.DataCenter.Instance.GetItemCount(this._vipEXPId), t = this._configs[this._vipLevel].Point);
                    var n = t - e;
                    this.DialogueRichText.string = (this._vipLevel == this._configs.length ? "diamondShop_maxVipLevel" : "diamondShop_moreItemToVipUp").ToUILocale().Fmt(n > 0 ? n : 0), this.GetEXPButton.node.active = !(this._vipLevel >= this._configs.length), this.ValueLabel.string = e + "/" + t, this.LevelLabel.string = "allianceBase_level".ToUILocale().Fmt(this._vipLevel.toString()), this.LevelUpProgress.progress = e / t
                }, t.prototype.CalculateVipLevel = function() {
                    var e = c.DataCenter.Instance.GetItemCount(u.CommonItemId.VipPoint);
                    this._vipLevel = 0;
                    for (var t = 0; t < this._configs.length && this._configs[t].Point <= e; t++) this._vipLevel = this._configs[t].Id;
                    this._vipLevel == this._configs[this._configs.length - 1].Id && e >= this._configs[this._configs.length - 1].Point && this._vipLevel++
                }, t.prototype.OnUserItemDataChange = function() {
                    this.DisPlay()
                }, i([w(cc.Button)], t.prototype, "GetEXPButton", void 0), i([w(cc.Label)], t.prototype, "GetEXPButtonLabel", void 0), i([w(cc.RichText)], t.prototype, "DialogueRichText", void 0), i([w(_.default)], t.prototype, "LevelUpProgress", void 0), i([w(cc.Label)], t.prototype, "VipText", void 0), i([w(cc.Label)], t.prototype, "LevelLabel", void 0), i([w(cc.Label)], t.prototype, "ValueLabel", void 0), i([w(cc.Node)], t.prototype, "GoodContainer", void 0), i([w(cc.Sprite)], t.prototype, "VipIcon", void 0), i([w(cc.Node)], t.prototype, "DiamondText", void 0), i([w(cc.Node)], t.prototype, "CurrencyText", void 0), i([w(cc.Sprite)], t.prototype, "Bg", void 0), i([w(cc.Sprite)], t.prototype, "HeroBg", void 0), i([w(v.default)], t.prototype, "LoadAssetHelper", void 0), i([S], t)
            }(p.BaseUIPage);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/DiamondShopItemGoodComponent": "DiamondShopItemGoodComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./DiamondShopPanel": "DiamondShopPanel"
    }],
    DiamondShopPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4ab4dCK6OJOpKYTdFdEQdKZ", "DiamondShopPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DiamondShopTabType = void 0;
        var a, s = e("../../../Consts/Consts"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/CurrencyBarItem"),
            p = e("../../RedDot/RedDotManager");
        (function(e) {
            e[e.Currency = 0] = "Currency", e[e.Diamond = 1] = "Diamond", e[e.VIP = 2] = "VIP"
        })(a = n.DiamondShopTabType || (n.DiamondShopTabType = {}));
        var d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.HeaderCurrency1 = null, t.HeaderCurrency2 = null, t.RuleBtn = null, t.ReturnBtn = null, t.PageBtns = [], t.Select = null, t.PageComponents = ["DiamondShopPanel/DiamondShopPage", "DiamondShopPanel/DiamondShopPage"], t.TabLocales = ["diamondShop_diamond", "diamondShop_currency", "famePriviledge"], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(s.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemDataChange, this), l.Game.EventDispatcher.On(s.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemDataChange, this), l.Game.EventDispatcher.On(s.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemDataChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(s.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemDataChange, this), l.Game.EventDispatcher.Off(s.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemDataChange, this), l.Game.EventDispatcher.Off(s.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemDataChange, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "diamondShop".ToUILocale(), this.ReturnBtn.on("click", this.OnReturnButtonClick, this);
                    for (var t = 0; t < this.PageBtns.length; t++) this.PageBtns[t].on("click", this.OnSwitchTab, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._currentTab = t[0], null == this._currentTab && (this._currentTab = a.Currency), this.SetTab(this._currentTab)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetTab(this._currentTab), this.HeaderCurrency1.SetCurrencyItem(), this.HeaderCurrency2.Init(s.CommonItemId.Diamond), p.RedDotManager.Instance.Bind(this.PageBtns[a.VIP], p.RedDotManager.Instance.RedDot.VIPPageTab, -10)
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = parseInt(e.node.name);
                    t != this._currentTab && this.SetTab(t)
                }, t.prototype.SetTab = function(e) {
                    this._currentTab = e, this.Select.parent = this.PageBtns[this._currentTab], this.Select.setPosition(cc.Vec2.ZERO), this.Title.string = this.TabLocales[this._currentTab].ToUILocale(), this.ShowPage(this.PageComponents[this._currentTab], this._currentTab)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnUserItemDataChange = function() {
                    this.DisPlay()
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(u.default)], t.prototype, "HeaderCurrency1", void 0), i([f(u.default)], t.prototype, "HeaderCurrency2", void 0), i([f(cc.Node)], t.prototype, "RuleBtn", void 0), i([f(cc.Node)], t.prototype, "ReturnBtn", void 0), i([f(cc.Node)], t.prototype, "PageBtns", void 0), i([f(cc.Node)], t.prototype, "Select", void 0), i([h], t)
            }(l.BaseUIFullScreenFrame);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/CurrencyBarItem": "CurrencyBarItem"
    }],
    DiscountTicketBagPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7236eK645NNZp0DIVihZDJI", "DiscountTicketBagPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/CustomLayout"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/DataCenter"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Components/DiscountTicketItemComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.TipsLabel = null, t.ScrollView = null, t.CustomLayout = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CurrencyDiscountPanel/Components/DiscountTicketItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._ticketItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "DiscountTicketBag_Title".ToUILocale(), this.TipsLabel.string = "DiscountTicketBag_Tips".ToUILocale(), this.CustomLayout.Init(this._ticketItemPrefab, !0)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n = d.DataCenter.Instance.GetDataList(p.CurrencyDiscountTicket_Model);
                    this.SetItemModelList(n), this._itemModelList.sort(this.SortModelList.bind(this)), this.CustomLayout.RenderLayOut(this._itemModelList.length)
                }, t.prototype.SetItemModelList = function(e) {
                    this._itemModelList = [];
                    for (var t = 0; t < e.length; t++) f.ConfigDataComponent.Instance.GetConfigById(y.ItemCurrencyDiscount_Config, e[t].ItemId).NewPrice && this._itemModelList.push(e[t])
                }, t.prototype.SortModelList = function(e, t) {
                    var n = f.ConfigDataComponent.Instance.GetConfigById(y.ItemCurrencyDiscount_Config, e.ItemId),
                        o = f.ConfigDataComponent.Instance.GetConfigById(y.ItemCurrencyDiscount_Config, t.ItemId);
                    return n.Type != o.Type ? o.Type - n.Type : n.NewPrice != o.NewPrice ? n.NewPrice - o.NewPrice : e.IsPerpetual && !t.IsPerpetual ? 1 : !e.IsPerpetual && t.IsPerpetual ? -1 : e.IsPerpetual || t.IsPerpetual ? 0 : e.Time - t.Time
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = e.getComponent(g.default),
                            r = n._itemModelList[t];
                        t >= n._itemModelList.length ? o.Init(0, void 0, n._itemPrefab) : o.Init(r.ItemId, r, n._itemPrefab)
                    })
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "TipsLabel", void 0), i([_(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([_(u.default)], t.prototype, "CustomLayout", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/DiscountTicketItemComponent": "DiscountTicketItemComponent"
    }],
    DiscountTicketItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "732d4tiCQpE9YxQoUohZgnJ", "DiscountTicketItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./ItemComponent"),
            l = e("../../Components/Components"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../../Consts/Etc"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.UnlockTimeRichText = null, t.LeftTimeLabel = null, t.LeftTimeNode = null, t._leftTimer = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.unscheduleAllCallbacks()
                }, t.prototype.Init = function(e, t, n) {
                    if (!this._itemComponent) {
                        var o = cc.instantiate(n);
                        o.parent = this.ItemNode, this._itemComponent = o.getComponent(s.ItemComponent)
                    }
                    this._itemComponent.node.name = e.toString(), this._itemComponent.DisableItemMask(), this.UnlockTimeRichText.node.active = !1, this.LeftTimeNode.active = !1, 0 == e ? this._itemComponent.SetItemSimpleState() : (this._currentModel = t, t.IsPerpetual || (this.LeftTimeNode.active = !0, this.SetLeftTime()), this._itemComponent.Init({
                        ItemId: e
                    }, s.ItemComponentType.ItemCommon), this._currentModel.UnlockTime - l.RpcComponent.Instance.ServerTime > 0 && (this._itemComponent.EnableItemMask(), this.UnlockTimeRichText.node.active = !0, this.SetUnlockTime(), this.schedule(this.SetUnlockTime, 1)))
                }, t.prototype.SetLeftTime = function() {
                    var e = this._currentModel.Time - l.RpcComponent.Instance.ServerTime;
                    e > 0 ? (e > d.Etc.DayDuration ? (this.LeftTimeLabel.string = "workTime".ToUILocale().Fmt(Math.floor(e / d.Etc.DayDuration)), this._leftTimer = Math.ceil(e % d.Etc.DayDuration / 1e3)) : e > d.Etc.HourDuration ? (this.LeftTimeLabel.string = "DiscountTicketBag_Item_Time_Hour".ToUILocale().Fmt(Math.floor(e / d.Etc.HourDuration)), this._leftTimer = Math.ceil(e % d.Etc.HourDuration / 1e3)) : (this.LeftTimeLabel.string = Math.floor(e / d.Etc.MinuteDuration) + "minutes".ToUILocale(), this._leftTimer = Math.ceil(e % d.Etc.MinuteDuration / 1e3)), this.unschedule(this.SetLeftTime), this.schedule(this.SetLeftTime, this._leftTimer)) : (this.LeftTimeNode.active = !1, this.UnlockTimeRichText.node.active = !1, this.unscheduleAllCallbacks(), this._itemComponent.SetItemSimpleState(), this._itemComponent.node.name = "0")
                }, t.prototype.SetUnlockTime = function() {
                    var e = this._currentModel.UnlockTime - l.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this._itemComponent.DisableItemMask(), this.UnlockTimeRichText.node.active = !1, void this.unschedule(this.SetUnlockTime);
                    this.UnlockTimeRichText.string = "DiscountTicketBag_Item_LeftTime".ToUILocale().Fmt(c.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OnItemClick = function(e, t) {
                    if (t.parent == this.ItemNode) {
                        if (0 == e) return;
                        u.UIUtlity.ShowItemTip(e, t)
                    }
                }, i([y(cc.Node)], t.prototype, "ItemNode", void 0), i([y(cc.RichText)], t.prototype, "UnlockTimeRichText", void 0), i([y(cc.Label)], t.prototype, "LeftTimeLabel", void 0), i([y(cc.Node)], t.prototype, "LeftTimeNode", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    DisplayRewardsComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c4aefR1V65JdpsFzjzH2Wts", "DisplayRewardsComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DisplayRewardsComponent = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("./ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("./DisplayRewardsItem"),
            y = e("../Panel/DisplayRewardsPanel"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Content = null, t.COLUMN_MAX = 5, t.VIEW_HEIGHT = 300, t.CELL_WIDTH = p.UIUtlity.ITEM_COMPONENT_WIDTH, t._assets = [], t._disableItemTip = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._scrollView = this.getComponent(cc.ScrollView), this._layout = this.Content.getComponent(cc.Layout)
                }, t.prototype.Init = function(e, t, n, o) {
                    return void 0 === t && (t = this.VIEW_HEIGHT), void 0 === n && (n = d.ItemComponentType.ItemCommon), void 0 === o && (o = y.RewardPanelSpineType.Normal), a(this, void 0, void 0, function() {
                        var r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return void 0 !== this._componentPrefab ? [3, 2] : [4, Promise.all([l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab), l.AssetsManager.Instance.LoadAsset("HintPanel/Components/DisplayRewardsItem", cc.Prefab)]).then(function(e) {
                                        r = e[0], i = e[1]
                                    })];
                                case 1:
                                    if (s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(r), c.AssetsManager.Instance.UnloadAsset(i), [2];
                                    this._assets.push(r), this._assets.push(i), this._componentPrefab = r, this._displayRewardItemPrefab = i, s.label = 2;
                                case 2:
                                    return o != y.RewardPanelSpineType.SpineFlash ? [3, 4] : [4, l.AssetsManager.Instance.LoadAsset("HintPanel/Spine/UI_effect_kuaisuhuoqu", sp.SkeletonData)];
                                case 3:
                                    return a = s.sent(), this.isValid ? (this._assets.push(a), this._spineData = a, [3, 5]) : (c.AssetsManager.Instance.UnloadAsset(a), [2]);
                                case 4:
                                    this._spineData = null, s.label = 5;
                                case 5:
                                    return this._rewardData = e, this._componentType = n, this._spineType = o, this.node.height = t, this.InstantiateItems(), this.SetContentSize(t), o == y.RewardPanelSpineType.SpineFlash ? (l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_SET_LOGICMAKS_ACTIVE, !0), p.UIUtlity.AnimationItemsByType2(this._scrollView, this.Content.children, this._spineData, "Ani_UI_effect_kuaisuhuoqu", !1, .1, this.COLUMN_MAX)) : p.UIUtlity.AnimationItemsByType1(this.Content.children), [2]
                            }
                        })
                    })
                }, t.prototype.DisableItemTip = function() {
                    this._disableItemTip = !0
                }, t.prototype.InstantiateItems = function() {
                    this._itemsCount = this._rewardData.length;
                    for (var e = 0; e < this._itemsCount; e++) {
                        var t = this.Content.children[e];
                        void 0 === t ? (t = cc.instantiate(this._displayRewardItemPrefab), this.Content.addChild(t)) : t.active = !0, t.getComponent(f.DisplayRewardsItem).Init(this._rewardData[e], this._componentType, this._componentPrefab, this._disableItemTip)
                    }
                    for (e = this._itemsCount; e < this.Content.childrenCount; e++) this.Content.children[e].active = !1
                }, t.prototype.SetContentSize = function(e) {
                    var t = this._itemsCount;
                    t <= this.COLUMN_MAX ? this.Content.width = this.CELL_WIDTH * t + this._layout.spacingX * (t - 1) : this.Content.width = this.CELL_WIDTH * this.COLUMN_MAX + this._layout.spacingX * (this.COLUMN_MAX - 1), this._layout.updateLayout(), t <= this.COLUMN_MAX ? (this._scrollView.enabled = !1, this.Content.y = 0) : (this._scrollView.enabled = !0, this.Content.y = (e - this.Content.height) / 2)
                }, t.prototype.Dispose = function() {
                    this.Content && this.Content.destroyAllChildren()
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([I(cc.Node)], t.prototype, "Content", void 0), i([m], t)
            }(cc.Component);
        n.DisplayRewardsComponent = _, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/DisplayRewardsPanel": "DisplayRewardsPanel",
        "./DisplayRewardsItem": "DisplayRewardsItem",
        "./ItemComponent": "ItemComponent"
    }],
    DisplayRewardsItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a5faeYSSfxGxKxtA8mu4I07", "DisplayRewardsItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DisplayRewardsItem = void 0;
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./ItemComponent"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GuideManager"),
            f = e("./ItemClickComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.ItemSpine = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(l.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(l.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    if (void 0 === o && (o = !1), !this._itemNode) {
                        var r = cc.instantiate(n);
                        r.parent = this.ItemNode, this._itemNode = r
                    }
                    var i = this._itemNode.getComponent(s.ItemComponent);
                    if (i.Init(e, t), e.ItemId) {
                        if (u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, e.ItemId).Type == p.ItemType.GodSoul) {
                            var a = u.ConfigDataComponent.Instance.GetConfigById(c.AngelGodSoul_Config, e.ItemId);
                            i.SetLeftTopTag(!0, d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg6"), a.Level)
                        }
                        e.DiscountValue && i.SetDiscountValue(!0, e.DiscountValue.toString() + "%")
                    }
                    this.ItemSpine.node.active = !1, (h.default.Instance.IsInGuide || o) && (this._itemNode.getComponent(f.default).enabled = !1)
                }, t.prototype.OnClickItem = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && t.getComponent(s.ItemComponent).ShowItemTip()
                }, i([m(cc.Node)], t.prototype, "ItemNode", void 0), i([m(sp.Skeleton)], t.prototype, "ItemSpine", void 0), i([g], t)
            }(cc.Component);
        n.DisplayRewardsItem = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent"
    }],
    DisplayRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "26a3efHgP1O5ITdXco2vLSl", "DisplayRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DisplayRewardsPanel = n.RewardPanelSpineType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/DisplayRewardsComponent"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Auxiliary/GuideManager"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Components/Components"),
            _ = e("../../../Consts/Consts"),
            C = e("../Battle/BattleManager"),
            v = e("../../Auxiliary/DataUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.BoxSpine = 1] = "BoxSpine", e[e.SpineFlash = 2] = "SpineFlash", e[e.MultipleSpine = 3] = "MultipleSpine"
        })(l = n.RewardPanelSpineType || (n.RewardPanelSpineType = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.PopUp, !0, !1, !0, c.AssetUnloadMode.Normal, !1), t.LogicMask = null, t.Content = null, t.Bg = null, t.RewardsNode = null, t.SpineContainer = null, t.TitleNode = null, t.MaskHintNode = null, t.EffectMaskNode = null, t.ButtonsNode = null, t.CloseBtn = null, t.CloseBtnLabel = null, t.UseBtn = null, t.UseBtnLabel = null, t.MultipleNode = null, t.MultipleItemContent = null, t.MultipleLabel = null, t.VipPointNode = null, t.VipPointTagLabel = null, t.VipPointCountLabel = null, t.BottomWidget = null, t.NormalSpineEffect = null, t.DefaultBgHeight = 719, t.DefaultContentHeight = 580, t.SpineFlashHeight = 700, t.BtnsHeight = 112, t._itemNodes = [], t._multipleNumbers = [], t._intParams = [], t._useNowItems = [], t._manualBoxs = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(g.EventKeys.EVENT_SET_LOGICMAKS_ACTIVE, this.OnSetLogicMaskActive, this), c.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(g.EventKeys.EVENT_SET_LOGICMAKS_ACTIVE, this.OnSetLogicMaskActive, this), c.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.CloseBtnLabel.string = "close".ToUILocale(), this.UseBtnLabel.string = "common_use_now".ToUILocale(), this.LogicMask.active = !1, this.EffectMaskNode.on(cc.Node.EventType.TOUCH_END, this.OnEffectMaskTouch, this), this.LogicMask.on(cc.Node.EventType.TOUCH_END, this.OnLogicMaskTouch, this), this.CloseBtn.node.on("click", this.Close, this), this.UseBtn.node.on("click", this.OnUseRewards, this)
            }, t.prototype.InitData = function(e) {
                if (this._rewardData ? this._rewardData = this._rewardData.concat(e[0]) : this._rewardData = e[0], !e[3]) {
                    for (var t = [], n = {}, o = 0, r = this._rewardData; o < r.length; o++)(i = r[o]) instanceof d.UserHero_Model || i.Count <= 0 ? t.push(i) : (null == n[i.ItemId] && (n[i.ItemId] = 0), n[i.ItemId] += i.Count);
                    for (var i in n) {
                        var a = new d.UserItem_Model;
                        a.ItemId = parseInt(i), a.Count = n[i], t.unshift(a)
                    }
                    this._rewardData = t
                }
                e[1] ? this._spineType = e[1] : this._spineType = l.Normal, e[2] && (this._intParams = e[2]);
                for (var s = [], c = I.ConfigDataComponent.Instance.GetGlobalSettingByKey("UseItemCountLimit"), u = 0, p = this._rewardData; u < p.length; u++)
                    if ((i = p[u]) instanceof d.UserItem_Model) {
                        var f = I.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, i.ItemId);
                        if (f && f.Type == _.ItemType.Consume) {
                            var y = I.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, i.ItemId);
                            if (!y) continue;
                            if (y.SubType == _.ConsumeItemType.FixedBox || y.SubType == _.ConsumeItemType.RandomBox) {
                                if (!v.default.Instance.IsGameModuleUnlock(y.GameModule)[0]) continue;
                                if (i.Count > c) {
                                    var g = new d.UserItem_Model;
                                    g.ItemId = i.ItemId, g.Count = c, this._useNowItems.push(g)
                                } else this._useNowItems.push(i)
                            } else y.SubType == _.ConsumeItemType.ManualBox && s.push(i)
                        }
                    } var b = v.default.GetFunctionSkipState(_.FunctionSkipKey.ManualBox);
                s.length > 0 && b && m.UIUtlity.ShowIndependentManualBoxPanel(s, C.BattleManager.Instance.ActivityCanShowBattleSettlePanel), this.EffectMaskNode.active = this._spineType == l.BoxSpine
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), this._spineType != l.MultipleSpine ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab)]);
                            case 1:
                                t._itemPrefab = n.sent(), this.EffectMaskNode.off(cc.Node.EventType.TOUCH_END, this.OnEffectMaskTouch, this), n.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                if (void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), !t) {
                    switch (this.SetContentHeight(), this.MultipleNode.active = !1, this.NormalSpineEffect.node.active = !1, this._spineType) {
                        case l.BoxSpine:
                            this.PlayBoxEffect();
                            break;
                        case l.MultipleSpine:
                            this.PlayMultipleEffect();
                            break;
                        default:
                            this.SpineContainer.active = !1, this.NormalSpineEffect.node.active = !0, this.RenderContent()
                    }
                    this.ShowGuide()
                }
                this.ButtonsNode.active = this._useNowItems.length > 0
            }, t.prototype.SetContentHeight = function() {
                this.Content.height = this.DefaultContentHeight, this.Bg.height = this.DefaultBgHeight, this.BottomWidget.updateAlignment()
            }, t.prototype.PlayBoxEffect = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this.Bg.active = !1, this.RewardsNode.active = !1, this.TitleNode.active = !1, this.MaskHintNode.active = !1, this.Content.active = !1, this._boxSpine ? [3, 2] : [4, this.LoadDynamicAsset("HintPanel/Spine/BoxSpine")];
                            case 1:
                                if (e = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                (t = cc.instantiate(e)).setParent(this.SpineContainer), this._boxSpine = t.getComponent(sp.Skeleton), o.label = 2;
                            case 2:
                                return this.SpineContainer.active = !0, this._boxSpine.setAnimation(0, this._boxSpine.animation, !1), setTimeout(function() {
                                    n.isValid && !n.Bg.active && (n.EffectMaskNode.active = !1, n.RenderContent())
                                }, 1e3), [2]
                        }
                    })
                })
            }, t.prototype.PlayMultipleEffect = function() {
                var e = this;
                this.SpineContainer.active = !1, this.Content.active = !1, this.MultipleNode.active = !0, this.Bg.active = !0, this.RewardsNode.active = !1, this.TitleNode.active = !0, this.MaskHintNode.active = !0, this.EffectMaskNode.active = !0, this._multiple = this._intParams && this._intParams[0] > 1 ? this._intParams[0] : 1, this._itemNodes.forEach(function(e) {
                    e.active = !1
                });
                var t = 0;
                this._rewardData.forEach(function(n, o) {
                    var r = n.ItemId,
                        i = n.Count;
                    if (r == _.CommonItemId.VipPoint) t = i;
                    else {
                        if (!e._itemNodes[o]) {
                            var a = cc.instantiate(e._itemPrefab);
                            a.y = -25, a.parent = e.MultipleItemContent, e._itemNodes[o] = a
                        }
                        e._itemNodes[o].active = !0, e._itemNodes[o].getComponent(y.ItemComponent).Init({
                            ItemId: r,
                            Count: Math.floor(i / e._multiple)
                        }, y.ItemComponentType.ItemCommon)
                    }
                }), t > 0 && (this.VipPointTagLabel.string = "luckyGift_get".ToUILocale(), this.VipPointCountLabel.string = "x{0}".Fmt(t)), this.VipPointNode.active = t > 0, this._multiTime = 0, this._multipleIndex = 0, this.SetMulipleNumbers(), this.schedule(this.SetMultipleLabel, .05), 1 == this._intParams[4] && this.scheduleOnce(function() {
                    e._spineType = l.Normal, e.Content && e.Content.destroyAllChildren(), e.DisPlay(!1)
                }, 3)
            }, t.prototype.SetMulipleNumbers = function() {
                var e = this;
                this._multipleNumbers = [];
                var t = this._intParams[2],
                    n = this._intParams[3],
                    o = I.DataCenter.Instance.ActivityConfigs[t];
                if (o) {
                    var r = o.Prob.find(function(e) {
                        return e.Id == n
                    });
                    r && r.Prob.forEach(function(t) {
                        e._multipleNumbers.push(t.Items[0])
                    })
                }
            }, t.prototype.SetMultipleLabel = function() {
                var e = this;
                if (this._multiTime >= 2) this.MultipleLabel.string = this._multiple.toString(), cc.tween(this.MultipleLabel.node).to(.6, {
                    scale: 2
                }).to(.6, {
                    scale: 1
                }).call(function() {
                    e.EffectMaskNode.active = !1
                }).start(), this.unschedule(this.SetMultipleLabel);
                else {
                    if (this._multipleNumbers.length > 0) {
                        var t = this._multipleIndex % this._multipleNumbers.length;
                        this.MultipleLabel.string = this._multipleNumbers[t].toString()
                    } else this.MultipleLabel.string = Math.floor(9 * Math.random() + 1).toString();
                    this._multipleIndex++, this._multiTime += .2
                }
            }, t.prototype.RenderContent = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.Bg.active = !0, this.RewardsNode.active = !0, this.TitleNode.active = !0, this.MaskHintNode.active = !0, this.Content.active = !0, void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(u.BundlePath.DisplayRewardsComponent)]);
                            case 1:
                                if (e._displayRewardPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                n.label = 2;
                            case 2:
                                return null == this._rewardComponent && (t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(p.DisplayRewardsComponent), this.Content.addChild(t)), this._rewardComponent.Init(this._rewardData, this.Content.height, y.ItemComponentType.ItemCommon, this._spineType), [2]
                        }
                    })
                })
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), this._rewardComponent && this._rewardComponent.Dispose(), this.Content && this.Content.destroyAllChildren(), c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_COMMON_REWARDS_PANEL_CLOSE, this._rewardData)
            }, t.prototype.ShowGuide = function() {
                if (f.default.Instance.IsInGuide) switch (f.default.Instance.CurrentStep) {
                    case 4104:
                    case 5106:
                    case 8803:
                        f.default.Instance.ShowGuide(this.MaskHintNode)
                }
            }, t.prototype.OnEffectMaskTouch = function() {
                this.EffectMaskNode.active = !1, this.RenderContent()
            }, t.prototype.OnLogicMaskTouch = function() {
                this._rewardComponent && m.UIUtlity.StopAnimationItemsByType2(this._rewardComponent.getComponent(cc.ScrollView)), this.LogicMask.active = !1
            }, t.prototype.OnSetLogicMaskActive = function(e) {
                this.LogicMask.active = e
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.MultipleItemContent.children.indexOf(t) && m.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
            }, t.prototype.OnUseRewards = function() {
                var e = this,
                    t = new d.Req_Item_UseItems;
                t.Items = this._useNowItems.map(function(e) {
                    return {
                        Items: [e.ItemId, e.Count]
                    }
                }), I.RpcComponent.Instance.Call(t, function(t) {
                    t.Rewards.length > 0 && (e.Close(), m.UIUtlity.ShwDisplayRewardPanel(t.Rewards))
                })
            }, t.prototype.onDestroy = function() {
                this.unschedule(this.SetMultipleLabel)
            }, i([w(cc.Node)], t.prototype, "LogicMask", void 0), i([w(cc.Node)], t.prototype, "Content", void 0), i([w(cc.Node)], t.prototype, "Bg", void 0), i([w(cc.Node)], t.prototype, "RewardsNode", void 0), i([w(cc.Node)], t.prototype, "SpineContainer", void 0), i([w(cc.Node)], t.prototype, "TitleNode", void 0), i([w(cc.Node)], t.prototype, "MaskHintNode", void 0), i([w(cc.Node)], t.prototype, "EffectMaskNode", void 0), i([w(cc.Node)], t.prototype, "ButtonsNode", void 0), i([w(cc.Button)], t.prototype, "CloseBtn", void 0), i([w(cc.Label)], t.prototype, "CloseBtnLabel", void 0), i([w(cc.Button)], t.prototype, "UseBtn", void 0), i([w(cc.Label)], t.prototype, "UseBtnLabel", void 0), i([w(cc.Node)], t.prototype, "MultipleNode", void 0), i([w(cc.Node)], t.prototype, "MultipleItemContent", void 0), i([w(cc.Label)], t.prototype, "MultipleLabel", void 0), i([w(cc.Node)], t.prototype, "VipPointNode", void 0), i([w(cc.Label)], t.prototype, "VipPointTagLabel", void 0), i([w(cc.Label)], t.prototype, "VipPointCountLabel", void 0), i([w(cc.Widget)], t.prototype, "BottomWidget", void 0), i([w(sp.Skeleton)], t.prototype, "NormalSpineEffect", void 0), i([S], t)
        }(c.BaseUIPanel);
        n.DisplayRewardsPanel = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/DisplayRewardsComponent": "DisplayRewardsComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    DisplayUserTItlePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c3e04GhC8tM8onJ/eeIj33F", "DisplayUserTItlePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/ItemComponent"),
            p = e("../Components/UserTitleAttrChangeComponent"),
            d = e("./UserTitlePanel"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.OldTitle = null, t.NewTitle = null, t.AttrTitle = null, t.AttrContainer = null, t.ItemContainer = null, t.ItemTitle = null, t.ItemTitleNode = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("UserTitlePanel/Component/UserTitleAttrChangeComponent", cc.Prefab), n = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._attrPrefab = o[0], this._itemPrefab = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.AttrTitle.string = "UserTitle_PropetyDdd".ToUILocale(), this.ItemTitle.string = "StrongholdWar_Battle_Result_GetReward".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    this._config = e[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.RenderAttr()
                }, t.prototype.RenderAttr = function() {
                    var e = this,
                        t = d.default.GetTitleConfigById(this._config.OldTitleId),
                        n = d.default.GetTitleConfigById(this._config.NewTitleId);
                    if (n)
                        if (this.OldTitle.string = t ? t.Id.ToDesignationName() : "UserTitle_NoTitle".ToUILocale(), this.NewTitle.string = n.Id.ToDesignationName(), n.Attrs.forEach(function(n) {
                                var o;
                                if (t) {
                                    var r = t.Attrs.findIndex(function(e) {
                                        return e.Items[0] == n.Items[0]
                                    });
                                    o = -1 == r || null == r ? 0 : t.Attrs[r].Items[1]
                                } else o = 0;
                                var i = n.Items[1];
                                if (o != i) {
                                    var a = cc.instantiate(e._attrPrefab);
                                    e.AttrContainer.addChild(a), a.getComponent(p.default).Set(n.Items[0], o, i)
                                }
                            }), n.Rewards) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.y = -20, o.getComponent(u.ItemComponent).Init({
                                ItemId: n.Rewards[0].Items[0],
                                Count: n.Rewards[0].Items[1]
                            }), this.ItemContainer.addChild(o), o.on(cc.Node.EventType.TOUCH_END, this.ShowTip, this)
                        } else this.ItemTitleNode.active = !1, this.ItemContainer.active = !1
                }, t.prototype.ShowTip = function() {
                    var e = d.default.GetTitleConfigById(this._config.NewTitleId);
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemTipPanel.Path, e.Rewards[0].Items[0])
                }, i([y(cc.Label)], t.prototype, "OldTitle", void 0), i([y(cc.Label)], t.prototype, "NewTitle", void 0), i([y(cc.Label)], t.prototype, "AttrTitle", void 0), i([y(cc.Node)], t.prototype, "AttrContainer", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Label)], t.prototype, "ItemTitle", void 0), i([y(cc.Node)], t.prototype, "ItemTitleNode", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/UserTitleAttrChangeComponent": "UserTitleAttrChangeComponent",
        "./UserTitlePanel": "UserTitlePanel"
    }],
    Dollars: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7b6f3evQslH7ZeL7B9AtCl3", "Dollars");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Point = void 0;
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NumUnistrokes = 6, t.NumPoints = 64, t.SquareSize = 250, t.Origin = new c(0, 0), t.Diagonal = Math.sqrt(t.SquareSize * t.SquareSize + t.SquareSize * t.SquareSize), t.HalfDiagonal = .5 * t.Diagonal, t.AngleRange = t.Deg2Rad(45), t.AnglePrecision = t.Deg2Rad(2), t.Phi = .5 * (-1 + Math.sqrt(5)), t.Unistrokes = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Unistrokes = new Array(this.NumUnistrokes), this.Unistrokes[0] = new p("^", new Array(new c(113, 287), new c(113, 286), new c(113, 284), new c(113, 283), new c(113, 281), new c(115, 279), new c(116, 278), new c(116, 277), new c(116, 276), new c(117, 274), new c(117, 273), new c(118, 272), new c(118, 271), new c(118, 269), new c(120, 267), new c(121, 266), new c(121, 263), new c(122, 262), new c(123, 261), new c(123, 258), new c(125, 257), new c(126, 254), new c(127, 252), new c(128, 251), new c(130, 248), new c(130, 247), new c(131, 246), new c(132, 243), new c(133, 241), new c(135, 239), new c(135, 237), new c(137, 234), new c(138, 232), new c(140, 231), new c(141, 228), new c(141, 226), new c(143, 224), new c(145, 221), new c(146, 218), new c(147, 217), new c(148, 214), new c(150, 211), new c(151, 208), new c(152, 206), new c(153, 203), new c(155, 201), new c(156, 198), new c(157, 196), new c(158, 193), new c(158, 189), new c(161, 187), new c(162, 184), new c(163, 182), new c(165, 179), new c(166, 177), new c(167, 173), new c(168, 172), new c(170, 168), new c(170, 166), new c(171, 163), new c(172, 161), new c(173, 158), new c(176, 154), new c(177, 152), new c(177, 151), new c(179, 148), new c(181, 144), new c(181, 143), new c(182, 141), new c(183, 138), new c(183, 136), new c(184, 133), new c(186, 132), new c(186, 129), new c(187, 127), new c(188, 124), new c(189, 123), new c(189, 121), new c(192, 119), new c(192, 118), new c(192, 116), new c(193, 114), new c(194, 113), new c(194, 111), new c(196, 109), new c(197, 107), new c(197, 106), new c(198, 103), new c(199, 103), new c(199, 102), new c(199, 101), new c(201, 99), new c(202, 98), new c(202, 97), new c(203, 97), new c(204, 96), new c(204, 94), new c(206, 94), new c(207, 93), new c(208, 93), new c(209, 93), new c(209, 92), new c(211, 92), new c(212, 92), new c(213, 92), new c(214, 92), new c(214, 93), new c(216, 93), new c(216, 94), new c(217, 94), new c(217, 96), new c(218, 96), new c(219, 97), new c(219, 98), new c(221, 99), new c(221, 101), new c(222, 101), new c(223, 103), new c(223, 104), new c(226, 106), new c(226, 107), new c(228, 108), new c(228, 111), new c(231, 112), new c(231, 114), new c(233, 117), new c(234, 118), new c(236, 121), new c(238, 123), new c(239, 126), new c(241, 128), new c(242, 131), new c(244, 133), new c(244, 136), new c(247, 139), new c(248, 142), new c(251, 146), new c(253, 148), new c(254, 151), new c(257, 156), new c(258, 158), new c(261, 161), new c(262, 164), new c(263, 168), new c(266, 172), new c(267, 174), new c(269, 178), new c(272, 181), new c(273, 186), new c(274, 189), new c(277, 193), new c(279, 196), new c(281, 201), new c(283, 204), new c(284, 207), new c(287, 211), new c(288, 214), new c(289, 218), new c(292, 221), new c(293, 224), new c(294, 227), new c(297, 231), new c(298, 234), new c(301, 237), new c(302, 239), new c(303, 243), new c(304, 246), new c(307, 248), new c(307, 251), new c(309, 253), new c(311, 256), new c(312, 258), new c(313, 261), new c(317, 267), new c(318, 269), new c(318, 272), new c(319, 272), new c(321, 276), new c(322, 277), new c(323, 278), new c(323, 281), new c(324, 282), new c(326, 283), new c(326, 284), new c(327, 286), new c(327, 287), new c(328, 288), new c(329, 289)), this), this.Unistrokes[1] = new p("circle", new Array(new c(127, 141), new c(124, 140), new c(120, 139), new c(118, 139), new c(116, 139), new c(111, 140), new c(109, 141), new c(104, 144), new c(100, 147), new c(96, 152), new c(93, 157), new c(90, 163), new c(87, 169), new c(85, 175), new c(83, 181), new c(82, 190), new c(82, 195), new c(83, 200), new c(84, 205), new c(88, 213), new c(91, 216), new c(96, 219), new c(103, 222), new c(108, 224), new c(111, 224), new c(120, 224), new c(133, 223), new c(142, 222), new c(152, 218), new c(160, 214), new c(167, 210), new c(173, 204), new c(178, 198), new c(179, 196), new c(182, 188), new c(182, 177), new c(178, 167), new c(170, 150), new c(163, 138), new c(152, 130), new c(143, 129), new c(140, 131), new c(129, 136), new c(126, 139)), this), this.Unistrokes[2] = new p("triangle", new Array(new c(137, 139), new c(135, 141), new c(133, 144), new c(132, 146), new c(130, 149), new c(128, 151), new c(126, 155), new c(123, 160), new c(120, 166), new c(116, 171), new c(112, 177), new c(107, 183), new c(102, 188), new c(100, 191), new c(95, 195), new c(90, 199), new c(86, 203), new c(82, 206), new c(80, 209), new c(75, 213), new c(73, 213), new c(70, 216), new c(67, 219), new c(64, 221), new c(61, 223), new c(60, 225), new c(62, 226), new c(65, 225), new c(67, 226), new c(74, 226), new c(77, 227), new c(85, 229), new c(91, 230), new c(99, 231), new c(108, 232), new c(116, 233), new c(125, 233), new c(134, 234), new c(145, 233), new c(153, 232), new c(160, 233), new c(170, 234), new c(177, 235), new c(179, 236), new c(186, 237), new c(193, 238), new c(198, 239), new c(200, 237), new c(202, 239), new c(204, 238), new c(206, 234), new c(205, 230), new c(202, 222), new c(197, 216), new c(192, 207), new c(186, 198), new c(179, 189), new c(174, 183), new c(170, 178), new c(164, 171), new c(161, 168), new c(154, 160), new c(148, 155), new c(143, 150), new c(138, 148), new c(136, 148)), this), this.Unistrokes[3] = new p("vv", new Array(new c(70, 123), new c(71, 123), new c(72, 123), new c(73, 123), new c(75, 123), new c(76, 123), new c(77, 123), new c(78, 123), new c(80, 123), new c(81, 123), new c(82, 122), new c(83, 122), new c(85, 121), new c(86, 121), new c(87, 121), new c(88, 121), new c(90, 121), new c(91, 121), new c(92, 121), new c(93, 121), new c(95, 121), new c(96, 119), new c(97, 119), new c(98, 119), new c(101, 119), new c(102, 119), new c(103, 119), new c(106, 119), new c(107, 119), new c(111, 118), new c(113, 118), new c(115, 118), new c(118, 117), new c(122, 117), new c(123, 117), new c(126, 117), new c(133, 116), new c(135, 116), new c(137, 116), new c(140, 116), new c(142, 116), new c(145, 114), new c(147, 114), new c(150, 114), new c(152, 113), new c(155, 113), new c(157, 113), new c(161, 113), new c(163, 112), new c(166, 112), new c(168, 112), new c(171, 112), new c(176, 112), new c(178, 112), new c(181, 112), new c(184, 111), new c(187, 111), new c(189, 111), new c(192, 111), new c(194, 111), new c(197, 111), new c(201, 111), new c(203, 111), new c(207, 111), new c(209, 111), new c(212, 109), new c(214, 109), new c(217, 109), new c(221, 109), new c(223, 109), new c(226, 109), new c(229, 109), new c(232, 109), new c(233, 109), new c(237, 109), new c(239, 109), new c(242, 109), new c(246, 109), new c(247, 109), new c(249, 109), new c(252, 109), new c(254, 109), new c(257, 109), new c(259, 109), new c(262, 109), new c(263, 109), new c(266, 109), new c(268, 109), new c(271, 109), new c(272, 109), new c(273, 109), new c(276, 109), new c(278, 109), new c(279, 109), new c(281, 109), new c(282, 109), new c(284, 109), new c(286, 109), new c(287, 109), new c(288, 109), new c(289, 109), new c(291, 109), new c(292, 109), new c(294, 109), new c(296, 109), new c(297, 109), new c(298, 109), new c(299, 109), new c(299, 111), new c(298, 111), new c(297, 112), new c(297, 113), new c(296, 113), new c(296, 114), new c(296, 116), new c(294, 116), new c(293, 117), new c(292, 118), new c(292, 119), new c(291, 119), new c(291, 121), new c(289, 121), new c(289, 122), new c(288, 122), new c(288, 123), new c(287, 124), new c(286, 126), new c(284, 127), new c(283, 128), new c(282, 129), new c(282, 131), new c(281, 132), new c(279, 132), new c(278, 134), new c(277, 134), new c(274, 137), new c(274, 138), new c(272, 138), new c(272, 139), new c(271, 141), new c(269, 142), new c(268, 143), new c(267, 144), new c(264, 144), new c(264, 146), new c(263, 146), new c(261, 148), new c(258, 149), new c(256, 152), new c(253, 153), new c(252, 154), new c(249, 156), new c(248, 157), new c(247, 158), new c(244, 159), new c(243, 159), new c(241, 162), new c(239, 163), new c(237, 163), new c(234, 166), new c(233, 166), new c(231, 167), new c(229, 168), new c(224, 171), new c(222, 172), new c(219, 172), new c(217, 173), new c(214, 176), new c(212, 176), new c(208, 178), new c(206, 179), new c(204, 179), new c(201, 181), new c(199, 182), new c(196, 183), new c(193, 184), new c(192, 186), new c(188, 186), new c(184, 187), new c(182, 188), new c(179, 189), new c(178, 191), new c(173, 192), new c(170, 193), new c(167, 193), new c(165, 194), new c(162, 197), new c(160, 197), new c(156, 198), new c(153, 199), new c(150, 199), new c(147, 202), new c(145, 203), new c(141, 203), new c(138, 204), new c(136, 207), new c(135, 207), new c(131, 208), new c(128, 209), new c(125, 212), new c(123, 212), new c(121, 213), new c(117, 214), new c(115, 214), new c(112, 217), new c(110, 218), new c(107, 218), new c(105, 219), new c(102, 222), new c(101, 222), new c(97, 223), new c(95, 226), new c(93, 226), new c(91, 227), new c(88, 228), new c(86, 229), new c(85, 231), new c(82, 232), new c(81, 232), new c(78, 233), new c(76, 234), new c(75, 234), new c(73, 236), new c(71, 237), new c(70, 237), new c(67, 239), new c(66, 241), new c(65, 241), new c(62, 242), new c(61, 243), new c(60, 243), new c(58, 244), new c(57, 244), new c(55, 246), new c(55, 247), new c(53, 247), new c(51, 248), new c(48, 249), new c(47, 251), new c(46, 251), new c(45, 252), new c(43, 253), new c(41, 253), new c(40, 254), new c(38, 254), new c(37, 254), new c(36, 256), new c(36, 257), new c(35, 257), new c(33, 257), new c(32, 257), new c(32, 258), new c(31, 258), new c(32, 258), new c(33, 258), new c(35, 258), new c(36, 258), new c(37, 258), new c(38, 258), new c(40, 258), new c(42, 258), new c(43, 258), new c(45, 258), new c(46, 258), new c(47, 258), new c(50, 258), new c(51, 258), new c(53, 258), new c(56, 258), new c(57, 259), new c(58, 259), new c(61, 259), new c(63, 259), new c(66, 261), new c(67, 261), new c(70, 261), new c(73, 261), new c(76, 261), new c(78, 261), new c(81, 261), new c(85, 261), new c(87, 261), new c(90, 262), new c(93, 262), new c(97, 262), new c(101, 262), new c(105, 263), new c(108, 263), new c(112, 263), new c(116, 264), new c(120, 264), new c(123, 264), new c(127, 264), new c(131, 264), new c(135, 264), new c(138, 266), new c(142, 266), new c(146, 266), new c(151, 267), new c(155, 267), new c(158, 267), new c(162, 268), new c(167, 268), new c(171, 269), new c(176, 269), new c(179, 269), new c(183, 269), new c(187, 269), new c(191, 269), new c(196, 271), new c(199, 271), new c(203, 271), new c(207, 272), new c(211, 272), new c(214, 272), new c(219, 273), new c(223, 273), new c(227, 274), new c(231, 274), new c(236, 274), new c(238, 274), new c(243, 274), new c(246, 274), new c(249, 276), new c(253, 276), new c(257, 276), new c(261, 277), new c(264, 277), new c(268, 277), new c(271, 278), new c(274, 278), new c(278, 278), new c(282, 278), new c(286, 278), new c(288, 278), new c(292, 278), new c(296, 279), new c(299, 279), new c(303, 279), new c(306, 279), new c(308, 279), new c(312, 281), new c(314, 281), new c(317, 281), new c(319, 281), new c(322, 281), new c(326, 281), new c(328, 281), new c(331, 281), new c(332, 282), new c(334, 282), new c(337, 282), new c(338, 282), new c(339, 282), new c(341, 282), new c(343, 282), new c(344, 282), new c(346, 282), new c(347, 282), new c(348, 282), new c(349, 282), new c(351, 282)), this), this.Unistrokes[4] = new p("c", new Array(new c(125, 257), new c(125, 256), new c(125, 254), new c(125, 253), new c(125, 252), new c(125, 251), new c(125, 249), new c(125, 248), new c(125, 247), new c(125, 246), new c(125, 244), new c(123, 243), new c(123, 242), new c(123, 241), new c(123, 239), new c(123, 238), new c(123, 237), new c(123, 236), new c(122, 234), new c(122, 233), new c(122, 231), new c(122, 229), new c(122, 228), new c(122, 227), new c(122, 226), new c(122, 224), new c(122, 223), new c(122, 222), new c(122, 221), new c(121, 219), new c(121, 218), new c(121, 216), new c(121, 214), new c(121, 212), new c(121, 211), new c(121, 208), new c(121, 207), new c(121, 206), new c(121, 204), new c(121, 202), new c(121, 201), new c(121, 199), new c(121, 196), new c(121, 193), new c(122, 192), new c(122, 189), new c(122, 188), new c(122, 186), new c(122, 184), new c(122, 182), new c(122, 179), new c(122, 178), new c(123, 177), new c(123, 173), new c(123, 172), new c(123, 171), new c(123, 168), new c(123, 166), new c(125, 163), new c(125, 162), new c(125, 161), new c(126, 157), new c(126, 154), new c(126, 152), new c(126, 149), new c(126, 147), new c(126, 146), new c(127, 144), new c(127, 141), new c(127, 139), new c(128, 138), new c(128, 137), new c(128, 134), new c(128, 133), new c(128, 131), new c(128, 128), new c(128, 127), new c(130, 126), new c(131, 123), new c(131, 122), new c(131, 121), new c(131, 119), new c(131, 118), new c(131, 117), new c(132, 114), new c(132, 113), new c(132, 112), new c(132, 111), new c(132, 109), new c(133, 108), new c(135, 106), new c(135, 104), new c(135, 102), new c(135, 101), new c(136, 99), new c(137, 98), new c(137, 97), new c(137, 96), new c(137, 94), new c(138, 93), new c(138, 91), new c(140, 91), new c(140, 89), new c(141, 89), new c(141, 88), new c(141, 87), new c(142, 86), new c(142, 84), new c(142, 83), new c(143, 82), new c(145, 82), new c(145, 81), new c(146, 81), new c(146, 79), new c(147, 78), new c(147, 77), new c(148, 76), new c(148, 74), new c(150, 74), new c(150, 73), new c(151, 73), new c(151, 72), new c(151, 71), new c(152, 71), new c(152, 69), new c(153, 69), new c(153, 68), new c(155, 67), new c(156, 67), new c(156, 66), new c(157, 66), new c(157, 64), new c(158, 64), new c(158, 63), new c(160, 63), new c(161, 63), new c(162, 63), new c(163, 63), new c(165, 63), new c(166, 63), new c(167, 63), new c(168, 63), new c(170, 63), new c(171, 63), new c(173, 63), new c(176, 63), new c(177, 63), new c(178, 63), new c(179, 63), new c(181, 63), new c(183, 63), new c(184, 63), new c(187, 63), new c(188, 63), new c(189, 63), new c(191, 63), new c(192, 63), new c(193, 63), new c(196, 63), new c(197, 64), new c(198, 64), new c(201, 64), new c(202, 66), new c(203, 66), new c(206, 66), new c(207, 66), new c(209, 66), new c(211, 67), new c(212, 67), new c(216, 67), new c(217, 68), new c(219, 68), new c(221, 68), new c(223, 68), new c(226, 68), new c(227, 68), new c(228, 69), new c(232, 69), new c(233, 69), new c(234, 71), new c(237, 71), new c(239, 72), new c(241, 72), new c(242, 72), new c(246, 72), new c(247, 72), new c(248, 72), new c(249, 73), new c(252, 73), new c(253, 73), new c(254, 74), new c(257, 74), new c(258, 74), new c(261, 74), new c(263, 76), new c(264, 76), new c(266, 76), new c(267, 76), new c(268, 76), new c(269, 77), new c(271, 77), new c(272, 78), new c(273, 78), new c(276, 78), new c(276, 79), new c(277, 79), new c(278, 79), new c(278, 81), new c(279, 81), new c(281, 81), new c(281, 82), new c(282, 83), new c(282, 84), new c(283, 84), new c(283, 86), new c(283, 87), new c(283, 88), new c(283, 89), new c(283, 91), new c(284, 91), new c(284, 92), new c(284, 93), new c(284, 94), new c(284, 96), new c(284, 97), new c(284, 98), new c(284, 99), new c(284, 101), new c(284, 102), new c(284, 103), new c(286, 104), new c(286, 107), new c(286, 108), new c(286, 109), new c(287, 111), new c(287, 112), new c(287, 113), new c(287, 116), new c(287, 117), new c(287, 119), new c(287, 121), new c(288, 122), new c(288, 124), new c(288, 127), new c(289, 128), new c(289, 131), new c(289, 133), new c(291, 137), new c(291, 138), new c(292, 141), new c(293, 143), new c(293, 144), new c(293, 147), new c(294, 148), new c(294, 151), new c(294, 153), new c(296, 156), new c(296, 157), new c(296, 158), new c(296, 161), new c(297, 163), new c(297, 164), new c(298, 166), new c(298, 168), new c(298, 169), new c(298, 172), new c(299, 173), new c(299, 176), new c(301, 178), new c(301, 181), new c(301, 182), new c(301, 183), new c(301, 184), new c(301, 186), new c(301, 187), new c(302, 189), new c(302, 191), new c(302, 193), new c(302, 194), new c(302, 196), new c(302, 197), new c(302, 198), new c(302, 199), new c(302, 201), new c(302, 202), new c(302, 203), new c(302, 204), new c(302, 206), new c(302, 207), new c(302, 208), new c(302, 209), new c(302, 211), new c(302, 212), new c(302, 213), new c(302, 214), new c(302, 216), new c(302, 217), new c(302, 218), new c(302, 219), new c(302, 221), new c(302, 222), new c(302, 223), new c(302, 224), new c(302, 226), new c(302, 227), new c(302, 228), new c(302, 229), new c(302, 231), new c(302, 232), new c(302, 233), new c(302, 234), new c(301, 236), new c(301, 237), new c(301, 238), new c(301, 239), new c(299, 241), new c(299, 242), new c(299, 243), new c(298, 244), new c(298, 246), new c(298, 247), new c(298, 248), new c(298, 249), new c(298, 251)), this), this.Unistrokes[5] = new p("N", new Array(new c(112, 77), new c(112, 78), new c(112, 79), new c(112, 81), new c(112, 82), new c(112, 83), new c(112, 86), new c(112, 87), new c(112, 88), new c(112, 89), new c(112, 91), new c(112, 92), new c(112, 93), new c(112, 94), new c(112, 96), new c(112, 98), new c(112, 99), new c(112, 101), new c(112, 102), new c(112, 103), new c(112, 104), new c(112, 106), new c(112, 107), new c(112, 108), new c(112, 111), new c(112, 112), new c(112, 114), new c(112, 116), new c(112, 117), new c(112, 119), new c(112, 121), new c(112, 122), new c(112, 123), new c(112, 126), new c(112, 127), new c(112, 128), new c(112, 131), new c(112, 133), new c(112, 134), new c(112, 136), new c(112, 138), new c(112, 139), new c(112, 141), new c(112, 143), new c(111, 146), new c(111, 147), new c(111, 148), new c(111, 151), new c(111, 153), new c(111, 154), new c(111, 156), new c(111, 158), new c(111, 161), new c(111, 162), new c(111, 164), new c(111, 166), new c(111, 168), new c(111, 172), new c(111, 173), new c(111, 174), new c(111, 177), new c(111, 179), new c(111, 181), new c(111, 183), new c(111, 184), new c(111, 187), new c(111, 189), new c(110, 192), new c(110, 193), new c(110, 194), new c(110, 198), new c(110, 199), new c(108, 202), new c(108, 203), new c(108, 206), new c(108, 207), new c(108, 208), new c(108, 211), new c(108, 213), new c(107, 214), new c(107, 216), new c(107, 218), new c(107, 221), new c(107, 222), new c(107, 223), new c(107, 224), new c(107, 226), new c(107, 228), new c(107, 231), new c(107, 232), new c(106, 234), new c(106, 236), new c(106, 237), new c(106, 238), new c(106, 239), new c(106, 241), new c(106, 243), new c(105, 243), new c(105, 244), new c(105, 247), new c(105, 248), new c(105, 251), new c(105, 252), new c(105, 253), new c(105, 254), new c(105, 256), new c(105, 257), new c(105, 258), new c(105, 259), new c(103, 261), new c(103, 262), new c(103, 263), new c(103, 264), new c(103, 266), new c(103, 268), new c(103, 271), new c(103, 272), new c(103, 274), new c(103, 276), new c(103, 277), new c(103, 278), new c(103, 279), new c(103, 281), new c(103, 282), new c(103, 283), new c(103, 284), new c(103, 286), new c(103, 287), new c(103, 289), new c(103, 291), new c(103, 292), new c(103, 293), new c(103, 294), new c(103, 296), new c(103, 297), new c(103, 298), new c(105, 298), new c(105, 299), new c(106, 299), new c(106, 301), new c(107, 301), new c(108, 301), new c(110, 301), new c(111, 301), new c(112, 301), new c(113, 301), new c(113, 299), new c(115, 299), new c(116, 298), new c(117, 297), new c(118, 296), new c(120, 296), new c(121, 294), new c(122, 294), new c(122, 293), new c(123, 292), new c(125, 291), new c(126, 291), new c(126, 289), new c(127, 289), new c(128, 288), new c(128, 287), new c(130, 287), new c(131, 286), new c(132, 284), new c(135, 283), new c(135, 282), new c(136, 282), new c(136, 281), new c(138, 279), new c(138, 278), new c(140, 278), new c(140, 277), new c(142, 277), new c(142, 276), new c(143, 274), new c(146, 272), new c(147, 271), new c(148, 269), new c(150, 268), new c(152, 267), new c(152, 266), new c(153, 264), new c(155, 263), new c(156, 262), new c(157, 262), new c(157, 261), new c(158, 261), new c(160, 258), new c(161, 257), new c(163, 256), new c(163, 254), new c(165, 254), new c(166, 253), new c(166, 252), new c(167, 251), new c(167, 249), new c(168, 249), new c(168, 248), new c(171, 247), new c(171, 246), new c(171, 244), new c(172, 243), new c(173, 243), new c(173, 242), new c(177, 241), new c(177, 238), new c(178, 238), new c(178, 237), new c(178, 236), new c(181, 234), new c(181, 233), new c(182, 232), new c(183, 229), new c(184, 228), new c(184, 227), new c(186, 226), new c(187, 223), new c(187, 222), new c(188, 221), new c(189, 219), new c(189, 218), new c(191, 217), new c(192, 214), new c(193, 212), new c(194, 209), new c(194, 208), new c(196, 207), new c(197, 204), new c(197, 202), new c(199, 199), new c(199, 198), new c(199, 197), new c(201, 194), new c(202, 193), new c(202, 192), new c(203, 189), new c(204, 188), new c(204, 186), new c(206, 183), new c(207, 182), new c(207, 181), new c(208, 178), new c(208, 176), new c(209, 174), new c(211, 172), new c(211, 171), new c(211, 169), new c(212, 167), new c(213, 164), new c(213, 163), new c(213, 161), new c(214, 159), new c(216, 158), new c(216, 156), new c(216, 153), new c(217, 152), new c(218, 149), new c(218, 148), new c(219, 147), new c(219, 144), new c(221, 143), new c(222, 141), new c(222, 139), new c(223, 138), new c(224, 136), new c(224, 134), new c(224, 132), new c(227, 131), new c(227, 129), new c(227, 128), new c(228, 127), new c(228, 124), new c(228, 123), new c(229, 122), new c(229, 121), new c(231, 119), new c(232, 118), new c(232, 117), new c(233, 116), new c(233, 114), new c(234, 113), new c(234, 112), new c(234, 111), new c(236, 111), new c(237, 109), new c(237, 108), new c(238, 107), new c(238, 106), new c(238, 104), new c(239, 104), new c(239, 103), new c(239, 102), new c(241, 102), new c(241, 101), new c(242, 99), new c(243, 98), new c(243, 97), new c(243, 96), new c(244, 96), new c(244, 94), new c(244, 93), new c(246, 93), new c(247, 92), new c(247, 91), new c(247, 89), new c(248, 89), new c(248, 88), new c(249, 88), new c(249, 87), new c(249, 86), new c(251, 86), new c(251, 84), new c(252, 83), new c(253, 83), new c(254, 83), new c(256, 83), new c(257, 83), new c(257, 84), new c(257, 86), new c(258, 87), new c(258, 88), new c(258, 89), new c(259, 91), new c(259, 92), new c(261, 93), new c(261, 94), new c(261, 96), new c(262, 97), new c(262, 99), new c(263, 101), new c(263, 103), new c(263, 104), new c(264, 106), new c(264, 108), new c(264, 111), new c(264, 112), new c(264, 114), new c(264, 116), new c(266, 119), new c(266, 121), new c(266, 123), new c(267, 126), new c(267, 128), new c(267, 132), new c(267, 133), new c(267, 137), new c(267, 139), new c(267, 142), new c(267, 144), new c(267, 147), new c(267, 151), new c(267, 153), new c(267, 157), new c(267, 161), new c(267, 164), new c(267, 168), new c(267, 171), new c(267, 174), new c(267, 178), new c(267, 181), new c(267, 186), new c(267, 188), new c(267, 192), new c(266, 196), new c(266, 199), new c(266, 203), new c(266, 206), new c(264, 209), new c(264, 213), new c(264, 216), new c(264, 219), new c(263, 223), new c(263, 227), new c(263, 229), new c(263, 233), new c(262, 236), new c(262, 242), new c(262, 246), new c(262, 248), new c(262, 251), new c(262, 254), new c(262, 257), new c(262, 259), new c(262, 262), new c(262, 264), new c(262, 267), new c(262, 269), new c(262, 272), new c(262, 277), new c(262, 281), new c(262, 283), new c(262, 286), new c(262, 287), new c(262, 288), new c(262, 291), new c(262, 293), new c(262, 294), new c(262, 296), new c(262, 298), new c(262, 299), new c(262, 301), new c(262, 304), new c(262, 305), new c(262, 307), new c(262, 308), new c(262, 310), new c(262, 312), new c(262, 314), new c(262, 315), new c(262, 317), new c(262, 318), new c(263, 320), new c(263, 322), new c(263, 323), new c(263, 324), new c(263, 325), new c(263, 327), new c(263, 328), new c(263, 329), new c(264, 330), new c(264, 332), new c(264, 333), new c(264, 334), new c(264, 335), new c(264, 337), new c(264, 338), new c(264, 339), new c(266, 339), new c(266, 340), new c(267, 340), new c(267, 342), new c(267, 343), new c(267, 344), new c(268, 344), new c(268, 345)), this)
                }, t.prototype.recognize = function(e, t) {
                    for (var n = Date.now(), o = new p("recognize", e, this), r = e.slice().reverse(), i = new p("recognize", r, this), a = -1, s = 1 / 0, l = 0; l < this.Unistrokes.length; l++) {
                        var c = void 0,
                            u = void 0;
                        t ? (c = this.OptimalCosineDistance(this.Unistrokes[l].Vector, o.Vector), u = this.OptimalCosineDistance(this.Unistrokes[l].Vector, i.Vector)) : (c = this.DistanceAtBestAngle(o.Points, this.Unistrokes[l], -this.AngleRange, +this.AngleRange, this.AnglePrecision), u = this.DistanceAtBestAngle(i.Points, this.Unistrokes[l], -this.AngleRange, +this.AngleRange, this.AnglePrecision));
                        var h = Math.min(c, u);
                        h < s && (s = h, a = l)
                    }
                    var f = Date.now();
                    return -1 == a ? new d(-1, 0, f - n) : new d(a, t ? 1 - s : 1 - s / this.HalfDiagonal, f - n)
                }, t.prototype.OptimalCosineDistance = function(e, t) {
                    for (var n = 0, o = 0, r = 0; r < e.length; r += 2) n += e[r] * t[r] + e[r + 1] * t[r + 1], o += e[r] * t[r + 1] - e[r + 1] * t[r];
                    var i = Math.atan(o / n);
                    return Math.acos(n * Math.cos(i) + o * Math.sin(i))
                }, t.prototype.DistanceAtBestAngle = function(e, t, n, o, r) {
                    for (var i = this.Phi * n + (1 - this.Phi) * o, a = this.DistanceAtAngle(e, t, i), s = (1 - this.Phi) * n + this.Phi * o, l = this.DistanceAtAngle(e, t, s); Math.abs(o - n) > r;) a < l ? (o = s, s = i, l = a, i = this.Phi * n + (1 - this.Phi) * o, a = this.DistanceAtAngle(e, t, i)) : (n = i, i = s, a = l, s = (1 - this.Phi) * n + this.Phi * o, l = this.DistanceAtAngle(e, t, s));
                    return Math.min(a, l)
                }, t.prototype.DistanceAtAngle = function(e, t, n) {
                    var o = this.RotateBy(e, n);
                    return this.PathDistance(o, t.Points)
                }, t.prototype.Resample = function(e, t) {
                    for (var n = this.PathLength(e) / (t - 1), o = 0, r = new Array(e[0]), i = 1; i < e.length; i++) {
                        var a = this.Distance(e[i - 1], e[i]);
                        if (o + a >= n) {
                            var s = (n - o) / a,
                                l = e[i - 1].X + s * (e[i].X - e[i - 1].X),
                                u = e[i - 1].Y + s * (e[i].Y - e[i - 1].Y),
                                p = new c(l, u);
                            r[r.length] = p, e.splice(i, 0, p), o = 0
                        } else o += a
                    }
                    return r.length == t - 1 && (r[r.length] = new c(e[e.length - 1].X, e[e.length - 1].Y)), r
                }, t.prototype.IndicativeAngle = function(e) {
                    var t = this.Centroid(e);
                    return Math.atan2(t.Y - e[0].Y, t.X - e[0].X)
                }, t.prototype.RotateBy = function(e, t) {
                    for (var n = this.Centroid(e), o = Math.cos(t), r = Math.sin(t), i = new Array, a = 0; a < e.length; a++) {
                        var s = (e[a].X - n.X) * o - (e[a].Y - n.Y) * r + n.X,
                            l = (e[a].X - n.X) * r + (e[a].Y - n.Y) * o + n.Y;
                        i[i.length] = new c(s, l)
                    }
                    return i
                }, t.prototype.ScaleTo = function(e, t) {
                    for (var n = this.BoundingBox(e), o = new Array, r = 0; r < e.length; r++) {
                        var i = e[r].X * (t / n.Width),
                            a = e[r].Y * (t / n.Height);
                        o[o.length] = new c(i, a)
                    }
                    return o
                }, t.prototype.TranslateTo = function(e, t) {
                    for (var n = this.Centroid(e), o = new Array, r = 0; r < e.length; r++) {
                        var i = e[r].X + t.X - n.X,
                            a = e[r].Y + t.Y - n.Y;
                        o[o.length] = new c(i, a)
                    }
                    return o
                }, t.prototype.Vectorize = function(e) {
                    for (var t = 0, n = new Array, o = 0; o < e.length; o++) n[n.length] = e[o].X, n[n.length] = e[o].Y, t += e[o].X * e[o].X + e[o].Y * e[o].Y;
                    var r = Math.sqrt(t);
                    for (o = 0; o < n.length; o++) n[o] /= r;
                    return n
                }, t.prototype.BoundingBox = function(e) {
                    for (var t = 1 / 0, n = -1 / 0, o = 1 / 0, r = -1 / 0, i = 0; i < e.length; i++) t = Math.min(t, e[i].X), o = Math.min(o, e[i].Y), n = Math.max(n, e[i].X), r = Math.max(r, e[i].Y);
                    return new u(t, o, n - t, r - o)
                }, t.prototype.PathDistance = function(e, t) {
                    for (var n = 0, o = 0; o < e.length; o++) n += this.Distance(e[o], t[o]);
                    return n / e.length
                }, t.prototype.PathLength = function(e) {
                    for (var t = 0, n = 1; n < e.length; n++) t += this.Distance(e[n - 1], e[n]);
                    return t
                }, t.prototype.Distance = function(e, t) {
                    var n = t.X - e.X,
                        o = t.Y - e.Y;
                    return Math.sqrt(n * n + o * o)
                }, t.prototype.Deg2Rad = function(e) {
                    return e * Math.PI / 180
                }, t.prototype.Centroid = function(e) {
                    for (var t = 0, n = 0, o = 0; o < e.length; o++) t += e[o].X, n += e[o].Y;
                    return t /= e.length, n /= e.length, new c(t, n)
                }, i([s], t)
            }(cc.Component));
        n.default = l;
        var c = function(e, t) {
            this.X = e, this.Y = t
        };
        n.Point = c;
        var u = function(e, t, n, o) {
                this.X = e, this.Y = t, this.Width = n, this.Height = o
            },
            p = function(e, t, n) {
                this.Name = e, this.Points = n.Resample(t, n.NumPoints);
                var o = n.IndicativeAngle(this.Points);
                this.Points = n.RotateBy(this.Points, -o), this.Points = n.ScaleTo(this.Points, n.SquareSize), this.Points = n.TranslateTo(this.Points, n.Origin), this.Vector = n.Vectorize(this.Points)
            },
            d = function(e, t, n) {
                this.Index = e, this.Score = t, this.Time = n
            };
        cc._RF.pop()
    }, {}],
    DoubleBattleUIPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0b1029hE1JPaYik0LgW+5AU", "DoubleBattleUIPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/BattlePlayerScreen"),
            h = e("./StarConditionComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property;
        (function(e) {
            e[e.unsure = 0] = "unsure", e[e.win = 1] = "win", e[e.lose = 2] = "lose"
        })(l || (l = {}));
        var m = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.PopUp, !1), t.LeftArrow = null, t.RightArrow = null, t.BattleInfoNode = null, t.BattleInfoWidget = null, t.ProgressNode = null, t.PlayerProgress = null, t.EnemyProgress = null, t.WinSign = null, t.LoseSign = null, t.WinBoard = null, t.BtnCondition = null, t.StarConditionComponent = null, t.WaitingAnotherBattleHint = null, t.isAnim = !1, t.isInit = !1, t.isStart = !1, t
            }
            var n;
            return r(t, e), n = t, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return e.prototype.Preload.call(this), [2]
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetClickEvent(), this.WaitingAnotherBattleHint.string = "waitingAnotherBattle".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnCondition.node.on("click", this.OnBtnConditionClick, this), this.BattleInfoNode.on(cc.Node.EventType.TOUCH_END, this.OnSwitchBattle, this)
            }, t.prototype.OnSwitchBattle = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return this.isAnim ? [2] : n.isLeft ? (n.isLeft = !1, this.isAnim = !0, this.BattleInfoNode.active = !1, this.LeftArrow.active = !1, this.RightArrow.active = !1, [4, d.default.SwitchOnScreenBattle(n.rightBattleId)]) : [3, 2];
                            case 1:
                                return e.sent(), [3, 4];
                            case 2:
                                return n.isLeft = !0, this.isAnim = !0, this.BattleInfoNode.active = !1, this.LeftArrow.active = !1, this.RightArrow.active = !1, [4, d.default.SwitchOnScreenBattle(n.leftBattleId)];
                            case 3:
                                e.sent(), e.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetDefaultSwitch = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return n.isLeft = !0, this.ShowLeftHp(), n.currBattleId = n.leftBattleId, [2]
                    })
                })
            }, t.prototype.HideBattleInfoNode = function() {
                this.BattleInfoNode.active = !1, this.BattleInfoNode.opacity = 0, this.BtnCondition.node.active = !1, this.StarConditionComponent.node.opacity = 0
            }, t.prototype.ResetSwitch = function() {
                this.isInit ? (p.EZLog.Log("\u5207\u6362\u5207\u6362\u5207\u6362"), n.isLeft ? (this.ShowLeftHp(), n.currBattleId = n.leftBattleId) : (this.ShowRightHp(), n.currBattleId = n.rightBattleId)) : (this.BattleInfoNode.active = !0, n.isLeft = !0, this.BattleInfoWidget.isAlignLeft = !1, this.BattleInfoWidget.isAlignRight = !0, this.BattleInfoWidget.right = 30, this.BattleInfoWidget.updateAlignment(), this.LeftArrow.active = !1, this.RightArrow.active = !0, cc.tween(this.BattleInfoNode).delay(.5).to(.3, {
                    opacity: 255
                }).start(), n.currBattleId = n.leftBattleId, this.isInit = !0), this.BtnCondition.node.active = !0, this.StarConditionComponent.node.opacity = 255
            }, t.prototype.OnBtnConditionClick = function() {
                this.StarConditionComponent.node.active = !this.StarConditionComponent.node.active
            }, t.prototype.ShowLeftHp = function() {
                var e = this;
                this.isAnim = !0, this.BattleInfoNode.active = !0, this.BattleInfoNode.opacity = 0, this.BattleInfoWidget.isAlignLeft = !1, this.BattleInfoWidget.isAlignRight = !0, this.BattleInfoWidget.right = 30, this.BattleInfoWidget.updateAlignment(), this.LeftArrow.active = !1, this.RightArrow.active = !0, cc.tween(this.BattleInfoNode).to(.3, {
                    opacity: 255
                }).call(function() {
                    e.isAnim = !1
                }).start()
            }, t.prototype.ShowRightHp = function() {
                var e = this;
                this.isAnim = !0, this.BattleInfoNode.active = !0, this.BattleInfoNode.opacity = 0, this.BattleInfoWidget.isAlignLeft = !0, this.BattleInfoWidget.isAlignRight = !1, this.BattleInfoWidget.left = 30, this.BattleInfoWidget.updateAlignment(), this.LeftArrow.active = !0, this.RightArrow.active = !1, cc.tween(this.BattleInfoNode).to(.3, {
                    opacity: 255
                }).call(function() {
                    e.isAnim = !1
                }).start()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), n.leftBattleId = t[0], n.rightBattleId = t[1], this.levelId = t[2]
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this.isStart = !1, n.leftBattleState = l.unsure, n.rightBattleState = l.unsure, n.currBattleId = n.leftBattleId, n.isSettlement = !1, this.ProgressNode.active = !0, this.WinSign.active = !1, this.LoseSign.active = !1, n.isLeft = !0
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.StarConditionComponent.node.active = !1, this.ResetStarCondition(), this.isInit = !1
            }, t.prototype.ResetStarCondition = function() {
                this.StarConditionComponent.SetUI(this.levelId - 1)
            }, t.SetBattleUI = function(e) {
                switch (n.attackersTotalHP = e.attackersTotalHP, n.attackersTotalHPMax = e.attackersTotalHPMax, n.defendersTotalHP = e.defendersTotalHP, n.defendersTotalHPMax = e.defendersTotalHPMax, n.hpShowId = e.battleId, null != e.heroHpArray && n.herosHpDataMap.set(e.battleId, e.heroHpArray), e.battleId) {
                    case n.leftBattleId:
                        n.defendersTotalHP <= 0 && (n.leftBattleState = l.win), n.attackersTotalHP <= 0 && (n.leftBattleState = l.lose);
                        break;
                    case n.rightBattleId:
                        n.defendersTotalHP <= 0 && (n.rightBattleState = l.win), n.attackersTotalHP <= 0 && (n.rightBattleState = l.lose)
                }
            }, t.settlement_win_prefab_path = "HolyAreaPanel/Private/HolyAreaSuccessSettlementComponent", t.settlement_fail_prefab_path = "HolyAreaPanel/Private/HolyAreaFailSettlementComponent", t.herosHpDataMap = new Map, t.isLeft = !0, t.isSettlement = !1, t.leftBattleState = l.unsure, t.rightBattleState = l.unsure, i([g(cc.Node)], t.prototype, "LeftArrow", void 0), i([g(cc.Node)], t.prototype, "RightArrow", void 0), i([g(cc.Node)], t.prototype, "BattleInfoNode", void 0), i([g(cc.Widget)], t.prototype, "BattleInfoWidget", void 0), i([g(cc.Node)], t.prototype, "ProgressNode", void 0), i([g(cc.ProgressBar)], t.prototype, "PlayerProgress", void 0), i([g(cc.ProgressBar)], t.prototype, "EnemyProgress", void 0), i([g(cc.Node)], t.prototype, "WinSign", void 0), i([g(cc.Node)], t.prototype, "LoseSign", void 0), i([g(cc.Node)], t.prototype, "WinBoard", void 0), i([g(cc.Button)], t.prototype, "BtnCondition", void 0), i([g(h.default)], t.prototype, "StarConditionComponent", void 0), i([g(cc.RichText)], t.prototype, "WaitingAnotherBattleHint", void 0), n = i([y], t)
        }(c.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../Components/BattlePlayerScreen": "BattlePlayerScreen",
        "./StarConditionComponent": "StarConditionComponent"
    }],
    DoubleProgressBar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "00d64K3MmxK7JaY9fmvx62o", "DoubleProgressBar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GroupName = null, t.ProgressLabelLeft = null, t.ProgressLabelRight = null, t.Backs = [], t.ProgressSprites = [], t.ProgressList = [], t._initFlag = !1, t._backIdxCache = 0, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n, o) {
                    return void 0 === n && (n = ""), void 0 === o && (o = 0), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._initFlag || (this._initFlag = !0), this.ProgressList[0].progress = e / 2 + .5, this.ProgressList[1].progress = t / 2 + .5, this.ProgressLabelLeft.string = Math.floor(100 * e).toString() + "%", this.ProgressLabelRight.string = Math.floor(100 * t).toString() + "%", "" != n && (this.GroupName.string = n), o != this._backIdxCache && this.ConfigBack(o), n && "" != n && this.GroupName.string != n && (this.GroupName.string = n), [2]
                        })
                    })
                }, t.prototype.ConfigBack = function(e) {
                    this.Backs[e].active = !0, 0 == e ? this.Backs[1].active = !1 : this.Backs[0].active = !1, this._backIdxCache = e
                }, i([u(cc.Label)], t.prototype, "GroupName", void 0), i([u(cc.Label)], t.prototype, "ProgressLabelLeft", void 0), i([u(cc.Label)], t.prototype, "ProgressLabelRight", void 0), i([u([cc.Node])], t.prototype, "Backs", void 0), i([u([cc.Sprite])], t.prototype, "ProgressSprites", void 0), i([u([cc.ProgressBar])], t.prototype, "ProgressList", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {}],
    DragMoveComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "382b9jc+LNIroC/0HNVjkh5", "DragMoveComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/EventKeys"),
            s = cc._decorator,
            l = s.ccclass,
            c = (s.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._distance = new cc.Vec2, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.MOUSE_DOWN, this.OnMouseDown, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.MOUSE_DOWN, this.OnMouseDown, this), this.node.off(cc.Node.EventType.MOUSE_MOVE, this.OnMouseMove, this), this.node.off(cc.Node.EventType.MOUSE_UP, this.OnMouseUp, this), this.node.off(cc.Node.EventType.MOUSE_LEAVE, this.OnMouseUp, this)
                }, t.prototype.OnMouseDown = function(e) {
                    this.node.on(cc.Node.EventType.MOUSE_MOVE, this.OnMouseMove, this), this.node.on(cc.Node.EventType.MOUSE_UP, this.OnMouseUp, this), this.node.on(cc.Node.EventType.MOUSE_LEAVE, this.OnMouseUp, this);
                    var t = e.getLocation(),
                        n = this.node.parent.convertToNodeSpaceAR(t);
                    this._distance.x = n.x - this.node.x, this._distance.y = n.y - this.node.y, this.node.zIndex = this.FindMaxZIndexChild(this.node.parent) + 1, this.OnMove(e), this.node.emit(a.EventKeys.DRAGMOVE_MOUSEDOWN, e)
                }, t.prototype.OnMouseMove = function(e) {
                    this.OnMove(e), this.node.emit(a.EventKeys.DRAGMOVE_MOUSEMOVE, e)
                }, t.prototype.OnMouseUp = function(e) {
                    this.node.off(cc.Node.EventType.MOUSE_MOVE, this.OnMouseMove, this), this.node.off(cc.Node.EventType.MOUSE_UP, this.OnMouseUp, this), this.node.off(cc.Node.EventType.MOUSE_LEAVE, this.OnMouseUp, this), this.OnMove(e), this.node.emit(a.EventKeys.DRAGMOVE_MOUSEUP, e)
                }, t.prototype.OnMove = function(e) {
                    var t = e.getLocation(),
                        n = this.node.parent.convertToNodeSpaceAR(t),
                        o = new cc.Vec3(n.x - this._distance.x, n.y - this._distance.y, 0);
                    this.node.position = this.MoveBehavior(o)
                }, t.prototype.MoveBehavior = function(e) {
                    return e
                }, t.prototype.ChangeMoveBehavior = function(e) {
                    this.MoveBehavior = e
                }, t.prototype.FindMaxZIndexChild = function(e) {
                    var t = 0;
                    return e.children.forEach(function(e) {
                        t = Math.max(t, e.zIndex)
                    }), t
                }, i([l], t)
            }(cc.Component));
        n.default = c, cc._RF.pop()
    }, {
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    DragMoveSortGroupComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "add27N7juBNv70ZRJ5CAv7w", "DragMoveSortGroupComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Auxiliary/EventKeys"),
            c = cc._decorator,
            u = c.ccclass,
            p = (c.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._needSortNodes = [], t._startPositions = [], t._sortCache = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "SortCache", {
                    get: function() {
                        return this._sortCache
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e) {
                    var t = this;
                    this._needSortNodes = e, this._sortCache = e.sort(function(e, n) {
                        var o = t.GetPosition(e);
                        return t.GetPosition(n) - o
                    }), this.RemoveAllEvent(), this.InitEvent(), 0 == this._startPositions.length && this._needSortNodes.forEach(function(e) {
                        t._startPositions.push(t.GetPosition(e))
                    })
                }, t.prototype.SwapNodePosition = function(e) {
                    if (!(e[0] < 0 || e[0] >= this._needSortNodes.length || e[1] < 0 || e[1] >= this._needSortNodes.length)) {
                        this.TweenToPosition(this._sortCache[e[0]], this._startPositions[e[1]]), this.TweenToPosition(this._sortCache[e[1]], this._startPositions[e[0]]);
                        var t = this._sortCache[e[0]];
                        this._sortCache[e[0]] = this._sortCache[e[1]], this._sortCache[e[1]] = t, this.node.emit(l.EventKeys.DRAGMOVESORTGROUP_CHANGE, this)
                    }
                }, t.prototype.onDestroy = function() {
                    this.RemoveAllEvent()
                }, t.prototype.OnMouseDown = function(e) {
                    this._chosenNode = e.target, this._onMouseDownChosenNodeIndex = this.CheckNodePositionIndex(this._chosenNode)
                }, t.prototype.OnMouseMove = function() {
                    this._onMouseMoveUsePosition = this.CheckNodePositionIndex(this._chosenNode), this._onMouseMoveUsePosition != this._onMouseDownChosenNodeIndex && this._onMouseMoveUsePosition != this._tweenedPosition && (this.SortNodesByPosition(), this._tweenedPosition = this._onMouseMoveUsePosition)
                }, t.prototype.OnMouseUp = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function() {
                            return e = this._sortCache.findIndex(function(e) {
                                return e == t._chosenNode
                            }), this.TweenToPosition(this._chosenNode, this._startPositions[e]), this._chosenNode = void 0, this._onMouseDownChosenNodeIndex = void 0, this._tweenedPosition = void 0, this.node.emit(l.EventKeys.DRAGMOVESORTGROUP_CHANGE, this), [2]
                        })
                    })
                }, t.prototype.InitEvent = function() {
                    var e = this;
                    this._needSortNodes.forEach(function(t) {
                        t.on(l.EventKeys.DRAGMOVE_MOUSEDOWN, e.OnMouseDown, e), t.on(l.EventKeys.DRAGMOVE_MOUSEMOVE, e.OnMouseMove, e), t.on(l.EventKeys.DRAGMOVE_MOUSEUP, e.OnMouseUp, e)
                    })
                }, t.prototype.RemoveAllEvent = function() {
                    var e = this;
                    this._needSortNodes.forEach(function(t) {
                        t.off(l.EventKeys.DRAGMOVE_MOUSEDOWN, e.OnMouseDown, e), t.off(l.EventKeys.DRAGMOVE_MOUSEMOVE, e.OnMouseMove, e), t.off(l.EventKeys.DRAGMOVE_MOUSEUP, e.OnMouseUp, e)
                    })
                }, t.prototype.GetPosition = function(e) {
                    return e.y
                }, t.prototype.TweenToPosition = function(e, t) {
                    if (e && null != t) return cc.Tween.stopAllByTarget(e), new Promise(function(n) {
                        cc.tween(e).to(.1, {
                            y: t
                        }).call(function() {
                            n(null)
                        }).start()
                    })
                }, t.prototype.SortNodesByPosition = function() {
                    var e = this,
                        t = this._sortCache.findIndex(function(t) {
                            return t == e._chosenNode
                        });
                    this._sortCache.splice(t, 1), this._sortCache.splice(this._onMouseMoveUsePosition, 0, this._chosenNode), this.RemoveAllNodesTween();
                    for (var n = 0; n < this._sortCache.length; n++) {
                        var o = this._sortCache[n];
                        o != this._chosenNode && n != this._onMouseMoveUsePosition && (Math.abs(this.GetPosition(o) - this._startPositions[n]) <= 1 || this.TweenToPosition(o, this._startPositions[n]))
                    }
                    this.node.emit(l.EventKeys.DRAGMOVESORTGROUP_CHANGE, this)
                }, t.prototype.CheckNodePositionIndex = function(e) {
                    if (e) {
                        for (var t = this.GetPosition(e), n = [], o = 0; o < this._startPositions.length; o++) {
                            if (t == this._startPositions[o]) return o;
                            n.push(Math.abs(t - this._startPositions[o]))
                        }
                        var r = 0,
                            i = n[0];
                        return n.forEach(function(e, t) {
                            0 != t && e < i && (i = e, r = t)
                        }), r
                    }
                }, t.prototype.RemoveAllNodesTween = function() {
                    this._needSortNodes.forEach(function(e) {
                        cc.Tween.stopAllByTarget(e)
                    })
                }, i([u], t)
            }(cc.Component));
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    DrawAgainRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "183657a1C9C4baey/91pLIM", "DrawAgainRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DrawAgainRewardsPanelType = n.WheelCellData = n.PointRewardData = n.LuckyWheelType = void 0;
        var l, c, u, p = e("../../../EZFramework/EZFramework"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/DisplayRewardsComponent"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../Components/CustomRichText"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Components/DataCenter"),
            _ = e("../../Components/RpcComponent"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../../Auxiliary/DataUtlity");
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Advance = 1] = "Advance"
        })(l = n.LuckyWheelType || (n.LuckyWheelType = {})),
        function(e) {
            e[e.Point = 0] = "Point", e[e.ItemId = 1] = "ItemId", e[e.Count = 2] = "Count"
        }(n.PointRewardData || (n.PointRewardData = {})),
        function(e) {
            e[e.RewardType = 0] = "RewardType", e[e.Id = 1] = "Id", e[e.Count = 2] = "Count", e[e.IsDrawed = 3] = "IsDrawed", e[e.FixMod = 4] = "FixMod"
        }(c = n.WheelCellData || (n.WheelCellData = {})),
        function(e) {
            e[e.LuckyWheel = 0] = "LuckyWheel", e[e.OracleSummon = 1] = "OracleSummon", e[e.OracleExchange = 2] = "OracleExchange"
        }(u = n.DrawAgainRewardsPanelType || (n.DrawAgainRewardsPanelType = {}));
        var S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Tip, !0, !1, !0), t.Content = null, t.BtnReturn = null, t.ButtonDraw = null, t.ButtonDrawLabel = null, t.LabelReturn = null, t.TicketIcon = null, t.TicketCount = null, t.CELLTYPE3 = 10, t.CELLTYPE4 = 11, t._displayRewardPrefab = null, t._rewardComponent = null, t._panelType = u.LuckyWheel, t._wheelType = l.Normal, t._itemSprite = null, t._isBusy = !1, t
                }
                return r(t, e), t.prototype.InitData = function(e) {
                    this._rewardData = e[0], this._ticketId = e[1], this._needTicketCount = e[2], this._panelType = e[3], this._panelType == u.LuckyWheel ? this._wheelType = e[4] : this._summonElement = e[4]
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.LabelReturn.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.ButtonDraw.node.on("click", this.OnDrawButtonCliced, this)
                }, t.prototype.InitTicketUI = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._itemSprite ? [3, 2] : (e = b.default.Instance.GetItemPathById(this._ticketId), t = this, [4, this.LoadDynamicAsset(e, cc.SpriteFrame)]);
                                case 1:
                                    if (t._itemSprite = n.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._itemSprite), [2];
                                    n.label = 2;
                                case 2:
                                    return this.TicketIcon.spriteFrame = this._itemSprite, this.UpdateTicketLabel(), [2]
                            }
                        })
                    })
                }, t.prototype.UpdateTicketLabel = function() {
                    var e, t = I.DataCenter.Instance.GetItemCount(this._ticketId);
                    e = t >= this._needTicketCount ? "item_count_enough".ToUILocale().Fmt(t.FmtCurrency(), this._needTicketCount.FmtCurrency()) : "item_count_not_enough".ToUILocale().Fmt(t.FmtCurrency(), this._needTicketCount.FmtCurrency()), this.TicketCount.Init(e)
                }, t.prototype.InitDrawBtn = function() {
                    this._panelType == u.OracleSummon ? (d.EZLog.Log("InitDrawBtn OracleSummon"), this.ButtonDrawLabel.string = this._needTicketCount > 1 ? "ElementSummon_drawTenTimesAgain".ToUILocale() : "ElementSummon_drawOneceAgain".ToUILocale()) : this._panelType == u.LuckyWheel ? (d.EZLog.Log("InitDrawBtn LuckyWheel"), this.ButtonDrawLabel.string = this._needTicketCount > 1 ? "luckywheel_draw_tens_more".ToUILocale() : "luckywheel_draw_once_more".ToUILocale()) : this._panelType == u.OracleExchange && (this.ButtonDrawLabel.string = "ElementSummon_exchangeAgain".ToUILocale())
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.RenderContent(), this.InitTicketUI(), this.InitDrawBtn()
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.Content.children.length > 0 ? [2] : null !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(h.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (e._displayRewardPrefab = n.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return null == this._rewardComponent && (t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(f.DisplayRewardsComponent)), this.Content.addChild(this._rewardComponent.node), this._rewardComponent.Init(this._rewardData, this.Content.height), [2]
                            }
                        })
                    })
                }, t.prototype.OnDrawButtonCliced = function() {
                    switch (this._panelType) {
                        case u.OracleSummon:
                        case u.OracleExchange:
                            this.ExecSummon();
                            break;
                        case u.LuckyWheel:
                            this.ExecHunt(1 != this._needTicketCount)
                    }
                }, t.prototype.ExecHunt = function(e) {
                    var t = this;
                    if (!this._isBusy)
                        if (I.DataCenter.Instance.IsItemEnough(this._ticketId, this._needTicketCount))
                            if (this.IsNeedSuggest()) {
                                var n = "luckywheel_suggest".ToUILocale();
                                m.UIUtlity.ShowHintPanel("", n, "", null, "", function() {
                                    t.RequestTreasureHunt(e)
                                })
                            } else this.RequestTreasureHunt(e);
                    else {
                        var o = this._ticketId.ToItemName();
                        m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o)), d.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, this._ticketId)
                    }
                }, t.prototype.ExecSummon = function() {
                    this.IsSummonValid() && this.RequestSummon()
                }, t.prototype.IsSummonValid = function() {
                    var e = this._panelType == u.OracleExchange ? 1 : this._needTicketCount;
                    if (!b.default.Instance.IsCanGetNewHero(e)) {
                        var t = b.default.Instance.GetHeroCountLimit(),
                            n = "drawCard_heroCount_limit".ToUILocale().Fmt(t);
                        return m.UIUtlity.ShowHintPanel("", n, "", null, "go_to_treat".ToUILocale(), function() {
                            p.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroPalacePanel.Path, 1)
                        }), !1
                    }
                    if (!I.DataCenter.Instance.IsItemEnough(this._ticketId, this._needTicketCount)) {
                        var o = this._ticketId.ToItemName();
                        return m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o)), d.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, this._ticketId), !1
                    }
                    return !0
                }, t.prototype.RequestSummon = function() {
                    this._isBusy = !0;
                    var e = new y.Req_Card_ProphetSummon;
                    if (this._panelType == u.OracleSummon ? e.Type = this._needTicketCount > 1 ? v.ProphetSummonType.Prophet10 : v.ProphetSummonType.Prophet : this._panelType == u.OracleExchange && (e.Type = v.ProphetSummonType.Crystal), e.ElementType = this._summonElement, !b.default.Instance.IsCanGetNewHero(1)) {
                        var t = b.default.Instance.GetHeroCountLimit(),
                            n = "drawCard_heroCount_limit".ToUILocale().Fmt(t);
                        return m.UIUtlity.ShowHintPanel("", n, "", null, "go_to_treat".ToUILocale(), function() {
                            p.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroPalacePanel.Path, 1)
                        }), void this.Close()
                    }
                    this._panelType == u.OracleSummon ? _.RpcComponent.Instance.Call(e, this.ResponseOracleSummonSuccess.bind(this), this.ResponseFailed.bind(this)) : this._panelType == u.OracleExchange && _.RpcComponent.Instance.Call(e, this.ResponseOracleExchangeSuccess.bind(this), this.ResponseFailed.bind(this))
                }, t.prototype.ResponseOracleSummonSuccess = function(e) {
                    this._isBusy = !1, this.RefreshUI(e.Rewards), this.CheckPlayRandomAudio(e)
                }, t.prototype.ResponseOracleExchangeSuccess = function(e) {
                    this._isBusy = !1, this.RefreshUI(e.Rewards), p.Game.EventDispatcher.Emit(C.EventKeys.EVENT_ORACLE_EXCHANGE_SUCCESS), this.CheckPlayRandomAudio(e)
                }, t.prototype.ResponseFailed = function() {
                    this._isBusy = !1
                }, t.prototype.RefreshUI = function(e) {
                    this._rewardData = e, this.UpdateTicketLabel(), this._rewardComponent.Init(this._rewardData, this.Content.height)
                }, t.prototype.IsNeedSuggest = function() {
                    var e = 1;
                    this._wheelType == l.Advance && (e = 2);
                    var t = I.DataCenter.Instance.GetDataById(y.TreasureHunt_Model, e),
                        n = t.Cells[this.CELLTYPE3].Items[c.IsDrawed],
                        o = t.Cells[this.CELLTYPE4].Items[c.IsDrawed];
                    return !(!n || !o)
                }, t.prototype.RequestTreasureHunt = function(e) {
                    this._isBusy = !0;
                    var t = new y.Req_TreasureHunt_Hunt;
                    this._wheelType == l.Normal ? t.Type = 1 : t.Type = 2, t.IsTen = e, _.RpcComponent.Instance.Call(t, this.RequestTreasureHuntSuccess.bind(this), this.ResponseFailed.bind(this))
                }, t.prototype.RequestTreasureHuntSuccess = function(e) {
                    this._isBusy = !1, this.RefreshUI(e.Rewards), p.Game.EventDispatcher.Emit(C.EventKeys.EVENT_REFRESH_LUCKYWHEEL, !1), e.Refresh && e.Refresh > 0 && m.UIUtlity.ShowFloatingHint("luckywheel_autoRefreshHint".ToUILocale())
                }, t.prototype.CheckPlayRandomAudio = function(e) {
                    b.default.Instance.HasCoreHeroInRewards(e.Rewards) && d.AudioManager.Instance.PlayEffect(b.default.Instance.GetAudioRandomNumByType(v.RandomAudioType.GetCoreHero))
                }, t.prototype.OnBtnReturnClick = function() {
                    this._isBusy || (this._rewardComponent.Dispose(), this.Content.destroyAllChildren(), p.Game.EventDispatcher.Emit(C.EventKeys.EVENT_DRAW_AGAIN_REWARDS_PANEL_CLOSE), d.UIManager.Instance.BackUIPanel())
                }, i([P(cc.Node)], t.prototype, "Content", void 0), i([P(cc.Button)], t.prototype, "BtnReturn", void 0), i([P(cc.Button)], t.prototype, "ButtonDraw", void 0), i([P(cc.Label)], t.prototype, "ButtonDrawLabel", void 0), i([P(cc.Label)], t.prototype, "LabelReturn", void 0), i([P(cc.Sprite)], t.prototype, "TicketIcon", void 0), i([P(g.CustomRichText)], t.prototype, "TicketCount", void 0), i([w], t)
            }(p.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/DisplayRewardsComponent": "DisplayRewardsComponent"
    }],
    DrawBattleCustomToggle2: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b3246/4gmZO975SJ4gjYLQ5", "DrawBattleCustomToggle2");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = e("../../Components/RpcComponent"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../Components/CustomToggle"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NameLabel = null, t.NameLabel2 = null, t.CheckTag = null, t.UncheackIcon0 = null, t.UncheackIcon1 = null, t.DisableIcon0 = null, t.DisableIcon1 = null, t.RedDotNode = null, t.SpriteAtlas = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    null != this.DisableNode && this.DisableNode.on(cc.Node.EventType.TOUCH_END, this.OnToggleClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    if (void 0 === n && (n = !1), this.CheckTag.active = !1, t ? (this.NameLabel.node.active = !0, this.NameLabel.string = t, this.NameLabel2.node.active = !0, this.NameLabel2.string = t) : (this.NameLabel.node.active = !1, this.NameLabel2.node.active = !1), o < 10) this.UncheackIcon0.spriteFrame = this.DisableIcon0.spriteFrame = this.SpriteAtlas.getSpriteFrame(o.toString()), this.UncheackIcon1.node.active = this.DisableIcon1.node.active = !1;
                    else {
                        var r = Math.floor(o / 10),
                            i = o - 10 * r;
                        this.UncheackIcon0.spriteFrame = this.DisableIcon0.spriteFrame = this.SpriteAtlas.getSpriteFrame(i.toString()), this.UncheackIcon1.spriteFrame = this.DisableIcon1.spriteFrame = this.SpriteAtlas.getSpriteFrame(r.toString()), this.UncheackIcon1.node.active = this.DisableIcon1.node.active = !0
                    }
                    this.RedDotNode.active = n
                }, t.prototype.SetCheckTag = function(e) {
                    void 0 === e && (e = !1), this.CheckTag.active = e
                }, t.prototype.SetInteractable = function(t, n, o) {
                    e.prototype.SetInteractable.call(this, t, n), this._unlockTime = o
                }, t.prototype.OnToggleClick = function() {
                    if (this._unlockTime) {
                        var e = this._unlockTime - s.RpcComponent.Instance.ServerTime;
                        if (e <= 0) this.SetInteractable(!0);
                        else {
                            var t = a.default.ActivityTimeLeftFormat(e),
                                n = "ActiveCollection_OpenTimeLabel".ToUILocale().Fmt(t);
                            l.UIUtlity.ShowFloatingHint(n)
                        }
                    } else this.OnClick()
                }, i([d(cc.Label)], t.prototype, "NameLabel", void 0), i([d(cc.Label)], t.prototype, "NameLabel2", void 0), i([d(cc.Node)], t.prototype, "CheckTag", void 0), i([d(cc.Sprite)], t.prototype, "UncheackIcon0", void 0), i([d(cc.Sprite)], t.prototype, "UncheackIcon1", void 0), i([d(cc.Sprite)], t.prototype, "DisableIcon0", void 0), i([d(cc.Sprite)], t.prototype, "DisableIcon1", void 0), i([d(cc.Node)], t.prototype, "RedDotNode", void 0), i([d(cc.SpriteAtlas)], t.prototype, "SpriteAtlas", void 0), i([p], t)
            }(c.default);
        n.default = h, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle"
    }],
    DrawBattleCustomToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dd170lK1LVEYpMbNmp/u0Av", "DrawBattleCustomToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = e("../../Components/RpcComponent"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../Components/CustomToggle"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NameLabel = null, t.NameLabel2 = null, t.CheckTag = null, t.UncheackIcon0 = null, t.UncheackIcon1 = null, t.DisableIcon0 = null, t.DisableIcon1 = null, t.RedDotNode = null, t.SpriteAtlas = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    null != this.DisableNode && this.DisableNode.on(cc.Node.EventType.TOUCH_END, this.OnToggleClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    if (void 0 === n && (n = !1), this.CheckTag.active = !1, t ? (this.NameLabel.node.active = !0, this.NameLabel.string = t, this.NameLabel2.node.active = !0, this.NameLabel2.string = t) : (this.NameLabel.node.active = !1, this.NameLabel2.node.active = !1), o < 10) this.UncheackIcon0.spriteFrame = this.DisableIcon0.spriteFrame = this.SpriteAtlas.getSpriteFrame(o.toString()), this.UncheackIcon1.node.active = this.DisableIcon1.node.active = !1;
                    else {
                        var r = Math.floor(o / 10),
                            i = o - 10 * r;
                        this.UncheackIcon0.spriteFrame = this.DisableIcon0.spriteFrame = this.SpriteAtlas.getSpriteFrame(i.toString()), this.UncheackIcon1.spriteFrame = this.DisableIcon1.spriteFrame = this.SpriteAtlas.getSpriteFrame(r.toString()), this.UncheackIcon1.node.active = this.DisableIcon1.node.active = !0
                    }
                    this.RedDotNode.active = n
                }, t.prototype.SetCheckTag = function(e) {
                    void 0 === e && (e = !1), this.CheckTag.active = e
                }, t.prototype.SetInteractable = function(t, n, o) {
                    e.prototype.SetInteractable.call(this, t, n), this._unlockTime = o
                }, t.prototype.OnToggleClick = function() {
                    if (this._unlockTime) {
                        var e = this._unlockTime - s.RpcComponent.Instance.ServerTime;
                        if (e <= 0) this.SetInteractable(!0);
                        else {
                            var t = a.default.ActivityTimeLeftFormat(e),
                                n = "ActiveCollection_OpenTimeLabel".ToUILocale().Fmt(t);
                            l.UIUtlity.ShowFloatingHint(n)
                        }
                    } else this.OnClick()
                }, i([d(cc.Label)], t.prototype, "NameLabel", void 0), i([d(cc.Label)], t.prototype, "NameLabel2", void 0), i([d(cc.Node)], t.prototype, "CheckTag", void 0), i([d(cc.Sprite)], t.prototype, "UncheackIcon0", void 0), i([d(cc.Sprite)], t.prototype, "UncheackIcon1", void 0), i([d(cc.Sprite)], t.prototype, "DisableIcon0", void 0), i([d(cc.Sprite)], t.prototype, "DisableIcon1", void 0), i([d(cc.Node)], t.prototype, "RedDotNode", void 0), i([d(cc.SpriteAtlas)], t.prototype, "SpriteAtlas", void 0), i([p], t)
            }(c.default);
        n.default = h, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle"
    }],
    DrawBattleGamePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5dccRSvHVBMYWBEoU84MDg", "DrawBattleGamePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GameState = void 0;
        var l, c = e("../Components/CustomProgressBar"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/RpcComponent"),
            h = e("../Components/Dollars"),
            f = e("../Components/DrawBattleMonster"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/ConfigData/ConfigDataComponent"),
            _ = e("../../../ShareConsts/BattleConsts"),
            C = e("../../../Consts/Consts"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.InGame = 0] = "InGame", e[e.Success = 1] = "Success", e[e.Fail = 2] = "Fail", e[e.None = 99] = "None"
        })(l = n.GameState || (n.GameState = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.CountDownNode = null, t.CountDownLabel = null, t.LeftMonsterLabel = null, t.LeftMonsterProgressBar = null, t.LeftMonsterCount = null, t.DrawNode = null, t.MonsterNode = null, t.BulletNode = null, t.PauseButtom = null, t.Graphics = null, t.HpNodesBg = null, t.HpNodes = [], t.HeroAvatar = null, t.GameSettlementNode = null, t.WinNode = null, t.FailNode = null, t.PauseNode = null, t.WinLeftMonsterLabel = null, t.FailLeftMonsterLabel = null, t.PauseTips = null, t.StarNodes = [], t.BackBtn = null, t.BackBtnLabel = null, t.ReChallengeBtn = null, t.ReChallengeBtnLabel = null, t.Atlas = null, t.Dollars = null, t._gameState = l.None, t._countDownTime = 3, t.drawing = !1, t.points = [], t.LINE_COLOR = cc.Color.RED, t.MARK_COLOR = [cc.color().fromHEX("#FA6476"), cc.color().fromHEX("#18DDFE"), cc.color().fromHEX("#FCBD62"), cc.color().fromHEX("#984FE1"), cc.color().fromHEX("#4FE1CB"), cc.color().fromHEX("#F9753F")], t._monsterPool = new cc.NodePool, t._bulletPool = new cc.NodePool, t.GameNodeWidth = [-420, 420], t._needShowTutorial = !1, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "progress", {
                set: function(e) {
                    this._progress = e, this.LeftMonsterProgressBar.progress = this._progress / this._mapConfig.Target, this.LeftMonsterCount.string = this._progress + "/" + this._mapConfig.Target
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "hp", {
                set: function(e) {
                    this._hp = e;
                    for (var t = 0; t < this._maxHp; t++) {
                        var n = this.HpNodes[t].getComponent(cc.Sprite);
                        t < this._hp ? n.spriteFrame = this.Atlas.getSpriteFrame("hp_1") : n.spriteFrame = this.Atlas.getSpriteFrame("hp_0")
                    }
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "maxHp", {
                set: function(e) {
                    this._maxHp = e;
                    for (var t = 0; t < this._maxHp; t++) {
                        var n = this.HpNodes[t];
                        n || ((n = cc.instantiate(this.HpNodes[0])).setParent(this.HpNodes[0].parent), this.HpNodes.push(n)), n.active = !0
                    }
                    for (t = this._maxHp; t < this.HpNodes.length; t++) this.HpNodes[t].active = !1
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.update = function(e) {
                this._gameState == l.InGame && (this._monsterInterval -= e, this._monsterInterval < 0 && (this.CreateMonster(), this._monsterInterval = this._mapConfig.RefreshSpeed[this._monsterCount - 1] || this._mapConfig.RefreshSpeed[this._mapConfig.RefreshSpeed.length - 1]))
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("DrawBattlePanel/DrawBattleMonster", cc.Prefab)];
                            case 1:
                                return t._monsterPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.LeftMonsterLabel.string = "drawBattle_progress".ToUILocale(), this.PauseButtom.node.on("click", this.ShowGameSettlementNode, this), this.BackBtn.node.on("click", this.OnBackBtnClick, this), this.ReChallengeBtn.node.on("click", this.OnReChallengeClick, this), this.BackBtnLabel.string = "quit".ToUILocale(), this.Graphics.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this), this.Graphics.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this), this.Graphics.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this), this.Graphics.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd, this)
            }, t.prototype.InitData = function(t) {
                if (e.prototype.InitData.call(this, t), this._activityConfig = t[0], this._mapConfig = t[1], this._currentHpData = t[2], this._needShowTutorial = t[3], !this.MonsterMap) {
                    this.MonsterMap = {};
                    for (var n = 0; n < this._activityConfig.Monsters.length; n++) {
                        var o = this._activityConfig.Monsters[n];
                        this.MonsterMap[o.Id] = o
                    }
                }
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), t = I.ConfigDataComponent.Instance.GetConfigById(m.HeroBase_Config, this._activityConfig.CustomPart.Hero), n = this.LoadDynamicAsset("Hero_" + t.Model + "/HeroAvatar", cc.Prefab), [4, Promise.all([n]).then(function(e) {
                                    o._heroPrefab = e[0]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                var n = this;
                if (e.prototype.DisPlay.call(this, t), !t)
                    if (this.InitAvatarAndBullet(), this._needShowTutorial) {
                        if (!this._guidleSpritePaths) {
                            this._guidleSpritePaths = [], this._guidleTipIds = [];
                            for (var o = 0; o < this._activityConfig.Tutorial.length; o++) this._guidleSpritePaths.push(this._activityConfig.Tutorial[o].Picture), this._guidleTipIds.push(this._activityConfig.Tutorial[o].LocaleId)
                        }
                        y.UIManager.Instance.ShowUIPanel(v.PanelConfig.RhythmTutorialPanel.Path, {
                            GuideSpritePaths: this._guidleSpritePaths,
                            TipIds: this._guidleTipIds,
                            ActivityLocale: this._activityConfig._Locale,
                            OnCloseCallBack: function() {
                                n.RestartGame()
                            },
                            ActivityId: this._activityConfig._id
                        })
                    } else this.RestartGame()
            }, t.prototype.InitAvatarAndBullet = function() {
                var e = cc.instantiate(this._heroPrefab);
                e.parent = this.HeroAvatar, this._heroAvatar = e.getComponent(sp.Skeleton), this._heroAvatar.setAnimation(0, _.SkillAnimationType.Standby, !0), this.HpNodes[0].parent.y = e.height + 20, this.HpNodes[0].parent.x = 0, this.HpNodes[0].parent.active = !0, this.HpNodesBg.y = e.height + 20, this.HpNodesBg.x = 0, this.HpNodesBg.active = !0, this.GameNodeHeight = Math.floor(this.DrawNode.height), this.maxHp = this._mapConfig.Hp
            }, t.prototype.RestartGame = function() {
                this.hp = this._maxHp, this.progress = 0, this.CountDownNode.active = !0, this._countDownTime = 3, this._monsterCount = 0, this.CountDownLabel.spriteFrame = this.Atlas.getSpriteFrame("countdown_" + this._countDownTime), this.GameSettlementNode.active = !1, this.schedule(this.Countdown, 1, 3, 1)
            }, t.prototype.Countdown = function() {
                if (this._countDownTime--, !this._countDownTime) return this.CountDownNode.active = !1, void this.StartGame();
                this.CountDownLabel.spriteFrame = this.Atlas.getSpriteFrame("countdown_" + this._countDownTime)
            }, t.prototype.StartGame = function() {
                this._monsterInterval = this._mapConfig.RefreshSpeed[0], this._gameState = l.InGame, this._monsterCount = 0, this.CreateMonster()
            }, t.prototype.CreateMonster = function() {
                this._monsterCount++;
                var e = null;
                (e = this._monsterPool.size() > 0 ? this._monsterPool.get() : cc.instantiate(this._monsterPrefab)).parent = this.MonsterNode;
                var t = e.getComponent(f.default),
                    n = this.GetRandomMonsterId();
                t.Init(this, this.MonsterMap[n]), t.MonsterCount = this._monsterCount
            }, t.prototype.CreateBullet = function() {
                var e = null;
                return (e = this._bulletPool.size() > 0 ? this._bulletPool.get() : cc.instantiate(this.BulletNode.children[0])).parent = this.BulletNode, e.active = !1, e
            }, t.prototype.GetRandomMonsterId = function() {
                var e = this._mapConfig.Monsters;
                return e[Math.floor(Math.random() * e.length)]
            }, t.prototype.ShowGameSettlementNode = function() {
                switch (this.WinNode.active = !1, this.FailNode.active = !1, this.PauseNode.active = !1, this.GameSettlementNode.active = !0, this._gameState) {
                    case l.InGame:
                        this.PauseTips.string = "gameExitConfirm".ToUILocale(), this.ReChallengeBtnLabel.string = "drawBattle_continue".ToUILocale(), this.PauseNode.active = !0;
                        break;
                    case l.Success:
                        this.ReChallengeBtnLabel.string = "reChallenge".ToUILocale(), this.WinLeftMonsterLabel.string = "" + "hpLeft".ToUILocale();
                        for (var e = 0; e < this._maxHp; e++) {
                            var t = this.StarNodes[e];
                            t || ((t = cc.instantiate(this.StarNodes[0])).setParent(this.StarNodes[0].parent), this.StarNodes.push(t)), t.active = !0;
                            var n = t.getComponent(cc.Sprite);
                            e < this._hp ? n.spriteFrame = this.Atlas.getSpriteFrame("hp_1") : n.spriteFrame = this.Atlas.getSpriteFrame("hp_0")
                        }
                        for (e = this._maxHp; e < this.StarNodes.length; e++) this.StarNodes[e].active = !1;
                        this.WinNode.active = !0;
                        break;
                    case l.Fail:
                        this.ReChallengeBtnLabel.string = "reChallenge".ToUILocale(), this.FailLeftMonsterLabel.string = "" + "drawBattle_progress1".ToUILocale() + this._progress + "/" + this._mapConfig.Target, this.FailNode.active = !0
                }
                this.GameSettlementNode.active = !0
            }, t.prototype.onTouchStart = function(e) {
                this.Graphics.clear(), this.unscheduleAllCallbacks(), this.drawing = !0, this.points = [];
                var t = e.getLocation(),
                    n = this.Graphics.node.convertToNodeSpaceAR(t);
                this.Graphics.strokeColor = this.LINE_COLOR, this.Graphics.moveTo(n.x, n.y), this.points.push(n)
            }, t.prototype.onTouchMove = function(e) {
                if (this.drawing) {
                    var t = e.getLocation(),
                        n = this.Graphics.node.convertToNodeSpaceAR(t);
                    this.Graphics.lineTo(n.x, n.y), this.Graphics.stroke(), this.Graphics.moveTo(n.x, n.y), this.points.push(n)
                }
            }, t.prototype.onTouchEnd = function() {
                this.drawing = !1, this.points.length > 2e3 ? this.Graphics.clear() : this.CheckGraphic()
            }, t.prototype.CheckGraphic = function() {
                var e = this,
                    t = [];
                this.points.forEach(function(e) {
                    t.push(new h.Point(Math.floor(e.x), Math.floor(e.y)))
                });
                var n = this.Dollars.recognize(t, !1);
                n.Index >= 0 && n.Score >= .75 ? (y.Game.EventDispatcher.Emit(g.EventKeys.EVENT_DRAWBATTLE_DRAW, n.Index + 1), this.ChangeLineColor(n.Index), this._heroAvatar.clearTracks(), this._heroAvatar.setToSetupPose(), this._heroAvatar.setAnimation(1, C.SkillAnimationType.BurstAttack2, !1), this._heroAvatar.setCompleteListener(function() {
                    e._heroAvatar.clearTracks(), e._heroAvatar.setAnimation(0, C.SkillAnimationType.Standby, !0)
                })) : this.Graphics.clear()
            }, t.prototype.ChangeLineColor = function(e) {
                var t = this,
                    n = 0,
                    o = this.Graphics.strokeColor.clone(),
                    r = this.MARK_COLOR[e];
                this.schedule(function() {
                    var e = ++n / 10,
                        i = o.lerp(r, e);
                    t.Graphics.strokeColor = i, t.Graphics.clear(), t.Graphics.moveTo(t.points[0].x, t.points[0].y);
                    for (var a = 1; a < t.points.length; a++) t.Graphics.lineTo(t.points[a].x, t.points[a].y);
                    t.Graphics.stroke(), n >= 10 && (t.unscheduleAllCallbacks(), cc.tween(t.Graphics.node).to(.2, {
                        scale: 1.02
                    }).to(.2, {
                        scale: 1
                    }).call(function() {
                        t.drawing || t.Graphics.clear()
                    }).start())
                }, .02, 10)
            }, t.prototype.OnBackBtnClick = function() {
                if (this._gameState == l.Success && this._hp > this._currentHpData) {
                    var e = p.Req_Activity_ActGameEnd.create();
                    e.ActivityId = this._activityConfig._id, e.Id = this._mapConfig.Id, e.Hp = this._hp, d.RpcComponent.Instance.Call(e, function() {
                        y.UIManager.Instance.BackUIPanel()
                    }, function() {
                        y.UIManager.Instance.BackUIPanel()
                    })
                } else y.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnReChallengeClick = function() {
                this._gameState == l.InGame ? this.GameSettlementNode.active = !1 : this.RestartGame()
            }, t.prototype.RecycleMonster = function(e, t) {
                if (this._gameState != l.InGame) return e.node.removeFromParent(), e.node.active = !1, void this._monsterPool.put(e.node);
                t == l.Success ? (this.progress = this._progress + 1, this._progress >= this._mapConfig.Target && (this._gameState = l.Success, this.GameSettlementNode.active = !0, y.Game.EventDispatcher.Emit(g.EventKeys.EVENT_DRAWBATTLE_END), this.ShowGameSettlementNode())) : t == l.Fail && (this.hp = this._hp - 1, this._hp <= 0 && (this._gameState = l.Fail, this.GameSettlementNode.active = !0, y.Game.EventDispatcher.Emit(g.EventKeys.EVENT_DRAWBATTLE_END), this.ShowGameSettlementNode())), e.node.removeFromParent(), e.node.active = !1, this._monsterPool.put(e.node)
            }, t.prototype.onDestroy = function() {
                this._monsterPool.clear(), this._bulletPool.clear()
            }, t.prototype.Shooting = function(e, t) {
                var n = this,
                    o = this.CreateBullet();
                o.setPosition(0, 0);
                var r = e.node.convertToWorldSpaceAR(cc.Vec2.ZERO),
                    i = this.BulletNode.convertToNodeSpaceAR(r),
                    a = Math.atan2(i.y, i.x);
                o.angle = 180 * a / Math.PI, o.active = !0, o.getComponent(sp.Skeleton).setAnimation(0, "attack_bullet_effect", !0), cc.tween(o).to(.2, {
                    x: i.x,
                    y: i.y
                }).call(function() {
                    o.removeFromParent(), e.Hit(t), n._bulletPool.put(o)
                }).start()
            }, i([w(cc.Node)], t.prototype, "CountDownNode", void 0), i([w(cc.Sprite)], t.prototype, "CountDownLabel", void 0), i([w(cc.Label)], t.prototype, "LeftMonsterLabel", void 0), i([w(c.default)], t.prototype, "LeftMonsterProgressBar", void 0), i([w(cc.Label)], t.prototype, "LeftMonsterCount", void 0), i([w(cc.Node)], t.prototype, "DrawNode", void 0), i([w(cc.Node)], t.prototype, "MonsterNode", void 0), i([w(cc.Node)], t.prototype, "BulletNode", void 0), i([w(cc.Button)], t.prototype, "PauseButtom", void 0), i([w(cc.Graphics)], t.prototype, "Graphics", void 0), i([w(cc.Node)], t.prototype, "HpNodesBg", void 0), i([w(cc.Node)], t.prototype, "HpNodes", void 0), i([w(cc.Node)], t.prototype, "HeroAvatar", void 0), i([w(cc.Node)], t.prototype, "GameSettlementNode", void 0), i([w(cc.Node)], t.prototype, "WinNode", void 0), i([w(cc.Node)], t.prototype, "FailNode", void 0), i([w(cc.Node)], t.prototype, "PauseNode", void 0), i([w(cc.Label)], t.prototype, "WinLeftMonsterLabel", void 0), i([w(cc.Label)], t.prototype, "FailLeftMonsterLabel", void 0), i([w(cc.Label)], t.prototype, "PauseTips", void 0), i([w(cc.Node)], t.prototype, "StarNodes", void 0), i([w(cc.Button)], t.prototype, "BackBtn", void 0), i([w(cc.Label)], t.prototype, "BackBtnLabel", void 0), i([w(cc.Button)], t.prototype, "ReChallengeBtn", void 0), i([w(cc.Label)], t.prototype, "ReChallengeBtnLabel", void 0), i([w(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([w(h.default)], t.prototype, "Dollars", void 0), i([S], t)
        }(u.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/Dollars": "Dollars",
        "../Components/DrawBattleMonster": "DrawBattleMonster"
    }],
    DrawBattleMonsterMark: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "09dd4ehvEpGkrioZ/UwWxF3", "DrawBattleMonsterMark");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MarkBg = null, t.Mark = null, t.ExplosionEffect = null, t.Atlas = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this._baseComponent = e, this.MarkId = n, this.node.setPosition(t.x, t.y), this.MarkBg.node.angle = t.bgAngle, this.Mark.node.setPosition(t.markX, t.markY), this.ExplosionEffect.node.setPosition(t.markX, t.markY), this.Mark.spriteFrame = this.Atlas.getSpriteFrame("mark" + n), this.MarkBg.spriteFrame = this.Atlas.getSpriteFrame("markBg" + o), this.Mark.node.active = !0, this.MarkBg.node.active = !0, this.ExplosionEffect.setCompleteListener(null)
                }, t.prototype.Explosion = function() {
                    var e = this;
                    this.ExplosionEffect.setAnimation(0, "Ani_UI_Effect_hfxyx_shouji", !1), this.Mark.node.active = !1, this.MarkBg.node.active = !1, this.ExplosionEffect.setCompleteListener(function() {
                        e.node.active = !1, e._baseComponent.MarkMove()
                    })
                }, t.prototype.Move = function(e) {
                    cc.Tween.stopAllByTarget(this.node), cc.Tween.stopAllByTarget(this.ExplosionEffect.node), cc.Tween.stopAllByTarget(this.MarkBg), cc.Tween.stopAllByTarget(this.Mark.node), cc.tween(this.node).to(.2, {
                        position: new cc.Vec3(e.x, e.y, 0)
                    }).start(), cc.tween(this.MarkBg.node).to(.2, {
                        angle: e.bgAngle
                    }).start(), cc.tween(this.Mark.node).to(.2, {
                        position: new cc.Vec3(e.markX, e.markY, 0)
                    }).start(), cc.tween(this.ExplosionEffect.node).to(.2, {
                        position: new cc.Vec3(e.markX, e.markY, 0)
                    }).start()
                }, i([l(cc.Sprite)], t.prototype, "MarkBg", void 0), i([l(cc.Sprite)], t.prototype, "Mark", void 0), i([l(sp.Skeleton)], t.prototype, "ExplosionEffect", void 0), i([l(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    DrawBattleMonster: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "01e0aOgatdAB4kBFA7VgyVK", "DrawBattleMonster");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Panel/DrawBattleGamePanel"),
            s = e("./DrawBattleMonsterMark"),
            l = e("./LoadAssetHelper"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LoadAssetHelper = null, t.Monster = null, t.MarkComponents = [], t.LandSkeleton = null, t.SpriteAtlas = null, t.MARK_LOCATION = [{
                        x: -90,
                        y: -30,
                        bgAngle: 20,
                        markX: -12,
                        markY: 135
                    }, {
                        x: 0,
                        y: 0,
                        bgAngle: 0,
                        markX: 0,
                        markY: 140
                    }, {
                        x: 90,
                        y: -30,
                        bgAngle: -20,
                        markX: 12,
                        markY: 135
                    }, {
                        x: -50,
                        y: 0,
                        bgAngle: 10,
                        markX: -6,
                        markY: 140
                    }, {
                        x: 50,
                        y: 0,
                        bgAngle: -10,
                        markX: 6,
                        markY: 140
                    }], t.MARK_LOCATION_BY_COUNT = [
                        [],
                        [1],
                        [3, 4],
                        [0, 1, 2]
                    ], t._basePanel = null, t._fallTime = 0, t.MonsterCount = -1, t._shootMonsterCount = -1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_DRAWBATTLE_DRAW, this.CheckDrawMark, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_DRAWBATTLE_END, this.Recycle, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_DRAWBATTLE_DRAW, this.CheckDrawMark, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_DRAWBATTLE_END, this.Recycle, this)
                }, t.prototype.Init = function(e, t) {
                    this._basePanel = e, this._monsterComfig = t, this.resetMonsterState(), this.Monster.node.active = !0, this.Monster.spriteFrame = this.SpriteAtlas.getSpriteFrame("box" + this._monsterComfig.HeroId), this.startFallingAnimation()
                }, t.prototype.resetMonsterState = function() {
                    this.LandSkeleton.node.active = !1, this.InitMarks(), this.node.opacity = 255, this.node.active = !0, cc.Tween.stopAllByTarget(this.node), this.node.setPosition(this.GetRandomPosition())
                }, t.prototype.InitMarks = function() {
                    this._marks = [];
                    for (var e = 0; e < this._monsterComfig.Icon.length; e++) this.MarkComponents[e].Init(this, this.MARK_LOCATION[this.MARK_LOCATION_BY_COUNT[this._monsterComfig.Icon.length][e]], this._monsterComfig.Icon[e], this._monsterComfig.HeroId), this.MarkComponents[e].node.active = !0, this._marks.push(this.MarkComponents[e]);
                    for (e = this._monsterComfig.Icon.length; e < this.MarkComponents.length; e++) this.MarkComponents[e].node.active = !1
                }, t.prototype.Land = function() {
                    for (var e = this, t = 0; t < this.MarkComponents.length; t++) this.MarkComponents[t].node.active = !1;
                    this.LandSkeleton.node.active = !0, this.LandSkeleton.setAnimation(0, "Ani_UI_Effect_hfxyx_gongji", !1), this.Monster.node.active = !1, this.MonsterCount = -1, this.LandSkeleton.setCompleteListener(function() {
                        e._basePanel.RecycleMonster(e, a.GameState.Fail)
                    })
                }, t.prototype.Dead = function() {
                    var e = this;
                    cc.tween(this.node).to(.2, {
                        opacity: 130
                    }).to(.2, {
                        opacity: 255
                    }).to(.2, {
                        opacity: 0
                    }).call(function() {
                        e._basePanel.RecycleMonster(e, a.GameState.Success)
                    }).start()
                }, t.prototype.Fall = function() {
                    var e = this;
                    this.MonsterCount = -1, cc.Tween.stopAllByTarget(this.node), cc.tween(this.node).by(.2, {
                        y: 60
                    }).to((-this._basePanel.GameNodeHeight / 2 - this.node.y) / (-this._basePanel.GameNodeHeight / 2) * this._fallTime / 20, {
                        y: -this._basePanel.GameNodeHeight / 2
                    }).call(function() {
                        e.Dead()
                    }).start()
                }, t.prototype.CheckDrawMark = function(e) {
                    if (this.node.active)
                        for (var t = 0; t < this._marks.length; t++)
                            if (this._marks[t].MarkId === e) {
                                this._basePanel.Shooting(this, t), this._shootMonsterCount = this.MonsterCount;
                                break
                            }
                }, t.prototype.Hit = function(e) {
                    this._shootMonsterCount == this.MonsterCount && (this._marks[e].Explosion(), this._marks.splice(e, 1), this._marks.length <= 0 && this.Fall())
                }, t.prototype.Recycle = function() {
                    this.MonsterCount = -1, this._basePanel.RecycleMonster(this, a.GameState.None)
                }, t.prototype.MarkMove = function() {
                    if (!(this._marks.length <= 0))
                        for (var e = this.MARK_LOCATION_BY_COUNT[this._marks.length], t = 0; t < e.length; t++) this._marks[t].Move(this.MARK_LOCATION[e[t]])
                }, t.prototype.GetRandomPosition = function() {
                    this._cachedPosition || (this._cachedPosition = new cc.Vec3);
                    var e = this._basePanel.GameNodeWidth[0] + Math.random() * (this._basePanel.GameNodeWidth[1] - this._basePanel.GameNodeWidth[0]);
                    return this._cachedPosition.x = e, this._cachedPosition.y = this._basePanel.GameNodeHeight / 2, this._cachedPosition.z = 0, this._cachedPosition
                }, t.prototype.startFallingAnimation = function() {
                    var e = this;
                    this._fallTime = this._basePanel.GameNodeHeight / 1650 / this._monsterComfig.Speed * 1e4, cc.tween(this.node).to(this._fallTime, {
                        y: -this._basePanel.GameNodeHeight / 2
                    }).call(function() {
                        e.Land()
                    }).start()
                }, i([h(l.default)], t.prototype, "LoadAssetHelper", void 0), i([h(cc.Sprite)], t.prototype, "Monster", void 0), i([h(s.default)], t.prototype, "MarkComponents", void 0), i([h(sp.Skeleton)], t.prototype, "LandSkeleton", void 0), i([h(cc.SpriteAtlas)], t.prototype, "SpriteAtlas", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Panel/DrawBattleGamePanel": "DrawBattleGamePanel",
        "./DrawBattleMonsterMark": "DrawBattleMonsterMark",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    DrawBattlePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8eab8pC4ttCDqCB9NfFoVtY", "DrawBattlePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/AsyncLayout"),
            y = e("../Components/ActivityCountDownComponent"),
            g = e("../../../Util/TimeUtil"),
            m = e("../../../Consts/Consts"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/DrawBattleTaskItem"),
            C = e("../Components/DrawBattleCustomToggle2"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.NotComplete = 0] = "NotComplete", e[e.CanGet = 1] = "CanGet", e[e.Got = 2] = "Got"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.RuleBtn = null, t.PanelTitle = null, t.CountDownComponent = null, t.TaskScrollView = null, t.TaskAsyncLayout = null, t.ToggleScrollView = null, t.ToggleAsyncLayout = null, t.BackBtn = null, t.ChallengeBtn = null, t.ChallengeBtnLabel = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("DrawBattlePanel/DrawBattleCustomToggle2", cc.Prefab), n = this.LoadDynamicAsset("DrawBattlePanel/DrawBattleTaskItem", cc.Prefab), o = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._togglePrefab = e[0], r._taskComponentPrefab = e[1], r._itemComponentPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ChallengeBtnLabel.string = "HolyRelic_challenge".ToUILocale(), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.ChallengeBtn.node.on("click", this.OnChallengeBtnClick, this), this.BackBtn.node.on("click", this.OnBackBtnClick, this), this.ToggleAsyncLayout.Init(this._togglePrefab, this.OnRenderToggleItem.bind(this)), this.TaskAsyncLayout.Init(this._taskComponentPrefab, this.OnRenderRewardTask.bind(this))
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this);
                var n = t[0];
                this._activityConfig = d.DataCenter.Instance.ActivityConfigs[n], this._curDay = g.TimeUtil.GetDiffDays(this._activityConfig.Common.StartTime, d.RpcComponent.Instance.ServerTime, !0) + 1, this.PanelTitle.string = this._activityConfig.Common.Title
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._activityData = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), t ? (this.ToggleAsyncLayout.ReRender(), this.TaskAsyncLayout.ReRender()) : (this._curLevelIndex = this.GetFirstEnterIndex(), this.ToggleAsyncLayout.RenderLayout(this._activityConfig.__Maps.length, this._curLevelIndex), this.CountDownComponent.Init(this._activityConfig.Common), this.TaskAsyncLayout.RenderLayout(this._activityConfig.__Maps[this._curLevelIndex].Rewards.length))
            }, t.prototype.GetFirstEnterIndex = function() {
                for (var e = 0; e < this._activityConfig.__Maps.length; e++)
                    if (this.IsAllLevelRewardGot(e) != l.Got) return this._activityConfig.__Maps[e].StartDay <= this._curDay ? e : e - 1;
                return this._activityConfig.__Maps.length - 1
            }, t.prototype.OnRenderToggleItem = function(e, t) {
                var n, o = this._activityConfig.__Maps[t],
                    r = o.StartDay <= this._curDay;
                r || (n = this._activityConfig.Common.StartTime + (o.StartDay - 1) * m.Etc.DayDuration), e.name = t.toString(), e.on("toggle", this.SwitchLevel, this);
                var i = e.getComponent(C.default),
                    a = this.IsAllLevelRewardGot(t),
                    s = a == l.CanGet;
                i.Init((t + 1).toString(), "allianceWar_difficult_desc".ToUILocale(), s, t + 1), r ? (i.SetInteractable(!0), i.SetCheckTag(a == l.Got)) : i.SetInteractable(!1, null, n), this._curLevelIndex == t ? (i.isChecked = !0, i.interactable = !1) : (i.isChecked = !1, i.interactable = !i.DisableNode.active)
            }, t.prototype.IsAllLevelRewardGot = function(e) {
                var t = this._activityData.Int2DArray[e].Items;
                if (t) {
                    if (t[1] >= this._activityConfig.__Maps[e].Rewards[this._activityConfig.__Maps[e].Rewards.length - 1].Items[0]) return l.Got;
                    for (var n = 0; n < this._activityConfig.__Maps[e].Rewards.length; n++) {
                        var o = this._activityConfig.__Maps[e].Rewards[n].Items[0];
                        if (t[0] >= o && t[1] < o) return l.CanGet
                    }
                }
                return l.NotComplete
            }, t.prototype.SwitchLevel = function(e) {
                if (!e.node.getComponent(C.default).DisableNode.active) {
                    var t = Number.parseInt(e.node.name);
                    if (this._curLevelIndex != t) {
                        this._curLevelIndex = t, this.TaskAsyncLayout.RenderLayout(this._activityConfig.__Maps[this._curLevelIndex].Rewards.length);
                        for (var n = 0; n < this.ToggleAsyncLayout.node.children.length; n++) {
                            var o = this.ToggleAsyncLayout.node.children[n].getComponent(C.default);
                            o.DisableNode.active || (o.interactable = !0)
                        }
                        e.node.getComponent(C.default).interactable = !1
                    }
                }
            }, t.prototype.OnRenderRewardTask = function(e, t) {
                var n, o = this._activityConfig.__Maps[this._curLevelIndex],
                    r = e.getComponent(_.default),
                    i = o.Rewards[t].Items;
                this._activityData.Int2DArray[this._curLevelIndex] || (n = _.DrawBattleTaskState.UnComplete);
                var a = this._activityData.Int2DArray[this._curLevelIndex].Items,
                    s = o.Rewards[t].Items[0];
                n = a[1] >= s ? _.DrawBattleTaskState.Completed : a[0] >= s ? _.DrawBattleTaskState.CanGet : _.DrawBattleTaskState.UnComplete, r.Init(this._itemComponentPrefab, this._activityConfig._id, s, o.Id, i, n)
            }, t.prototype.OnBackBtnClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRuleBtnClick = function() {
                var e = {
                    name: this._activityConfig.Common.Title,
                    titles: ["payGuide_rule_sub".ToUILocale()],
                    contents: ["drawBattle_ruleContent".ToUILocale()]
                };
                I.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnChallengeBtnClick = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.DrawBattleGamePanel.Path, this._activityConfig, this._activityConfig.__Maps[this._curLevelIndex], this._activityData.Int2DArray[this._curLevelIndex] ? this._activityData.Int2DArray[this._curLevelIndex].Items[0] : 0, !this._curLevelIndex)
            }, i([S(cc.Button)], t.prototype, "RuleBtn", void 0), i([S(cc.Label)], t.prototype, "PanelTitle", void 0), i([S(y.default)], t.prototype, "CountDownComponent", void 0), i([S(cc.ScrollView)], t.prototype, "TaskScrollView", void 0), i([S(f.default)], t.prototype, "TaskAsyncLayout", void 0), i([S(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([S(f.default)], t.prototype, "ToggleAsyncLayout", void 0), i([S(cc.Button)], t.prototype, "BackBtn", void 0), i([S(cc.Button)], t.prototype, "ChallengeBtn", void 0), i([S(cc.Label)], t.prototype, "ChallengeBtnLabel", void 0), i([b], t)
        }(p.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/DrawBattleCustomToggle2": "DrawBattleCustomToggle2",
        "../Components/DrawBattleTaskItem": "DrawBattleTaskItem"
    }],
    DrawBattleTaskItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d8804Au/C1HTIpjJ7J5cDbT", "DrawBattleTaskItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DrawBattleTaskState = void 0;
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/RpcComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property;
        (function(e) {
            e[e.CanGet = 1] = "CanGet", e[e.UnComplete = 0] = "UnComplete", e[e.Completed = 2] = "Completed"
        })(a = n.DrawBattleTaskState || (n.DrawBattleTaskState = {}));
        var m = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HpRequireLabel = null, t.StarNodes = [], t.RewardContainer = null, t.GetBtn = null, t.GetBtnLabel = null, t.UnCompleteBtn = null, t.UnCompleteBtnLabel = null, t.CompleteTag = null, t.CompleteTagLabel = null, t._rewardItems = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                s.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                s.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Init = function(e, t, n, o, r, i) {
                switch (this._itemPrefab = e, this._activityId = t, this._mapId = o, this._hpValue = n, this._mapId = o, this._isInit || (this._isInit = !0, this.GetBtn.node.on("click", this.OnGetBtnClick, this), this.GetBtnLabel.string = "receive".ToUILocale(), this.UnCompleteBtnLabel.string = "mall_notReach".ToUILocale(), this.CompleteTagLabel.string = "already_receive".ToUILocale()), this.HpRequireLabel.string = "hpLeftCount".ToUILocale().Fmt(n), this.SetStar(), this.ResetState(), i) {
                    case a.CanGet:
                        this.GetBtn.node.active = !0;
                        break;
                    case a.Completed:
                        this.CompleteTag.active = !0;
                        break;
                    case a.UnComplete:
                        this.UnCompleteBtn.node.active = !0
                }
                this.ConfigReward(r, i == a.Completed)
            }, t.prototype.ConfigReward = function(e, t) {
                for (var n = 0, o = 1; o < e.length; o += 2) {
                    var r = e[o],
                        i = e[o + 1],
                        a = this._rewardItems[n];
                    if (!a) {
                        var s = cc.instantiate(this._itemPrefab);
                        s.setParent(this.RewardContainer), a = s.getComponent(d.ItemComponent), this._rewardItems.push(a)
                    }
                    a.node.active = !0, a.Init({
                        ItemId: r,
                        Count: i
                    }), a.SetReceivedTagState(t), n += 1
                }
                for (o = n; o < this._rewardItems.length; o++) this._rewardItems[o].node.active = !1
            }, t.prototype.ResetState = function() {
                this.GetBtn.node.active = !1, this.CompleteTag.active = !1, this.UnCompleteBtn.node.active = !1
            }, t.prototype.SetStar = function() {
                for (var e = 0; e < this._hpValue; e++) {
                    var t = this.StarNodes[e];
                    t || ((t = cc.instantiate(this.StarNodes[0])).setParent(this.StarNodes[0].parent), this.StarNodes.push(t)), t.active = !0
                }
                for (e = this._hpValue; e < this.StarNodes.length; e++) this.StarNodes[e].active = !1
            }, t.prototype.OnGetBtnClick = function() {
                var e = l.Req_Activity_ActGameRewards.create();
                e.ActivityId = this._activityId, e.Id = this._mapId, c.RpcComponent.Instance.Call(e, function(e) {
                    u.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                })
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.RewardContainer.children.indexOf(t) && t.getComponent(d.ItemComponent).ShowItemTip()
            }, i([g(cc.RichText)], t.prototype, "HpRequireLabel", void 0), i([g(cc.Node)], t.prototype, "StarNodes", void 0), i([g(cc.Node)], t.prototype, "RewardContainer", void 0), i([g(cc.Button)], t.prototype, "GetBtn", void 0), i([g(cc.Label)], t.prototype, "GetBtnLabel", void 0), i([g(cc.Button)], t.prototype, "UnCompleteBtn", void 0), i([g(cc.Label)], t.prototype, "UnCompleteBtnLabel", void 0), i([g(cc.Node)], t.prototype, "CompleteTag", void 0), i([g(cc.Label)], t.prototype, "CompleteTagLabel", void 0), i([y], t)
        }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    DropDownItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ba891MTnntMQaD0jmLQug7g", "DropDownItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ShowLabel = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Index", {
                    get: function() {
                        return this._Index
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e, t) {
                    this._DropDownPanel = e, this._Index = t;
                    var n = e.OptionsData[t];
                    n && (this.ShowLabel.string = n.Label), this.node.off("click"), this.node.on("click", this.OnClickItem.bind(this))
                }, t.prototype.OnClickItem = function() {
                    this._DropDownPanel.OnDropDownClicked(this._Index)
                }, i([l(cc.Label)], t.prototype, "ShowLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    DropDownPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0d80bH+yFpFup2UWUyriU19", "DropDownPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = e("../../EZFramework/EZFramework"),
            u = e("../../Consts/Consts"),
            p = e("./DropDownItem"),
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DropDownViewHeight = 260, t.ContentNode = null, t.ItemPool = null, t.ItemPrefab = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "OptionsData", {
                    get: function() {
                        return this._DropDownTarget.OptionsData
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onLoad = function() {
                    this._OptionItemPool = [], this._CurrentShowItems = [], c.Game.EventDispatcher.Only(u.GameEventIds.SeShowDropDown, this.Show, this), c.Game.EventDispatcher.Only(u.GameEventIds.SeHideDropDown, this.Hide, this), this.node.off("click"), this.node.on("click", this.OnDropDownClicked.bind(this)), this.node.parent.off("click"), this.node.parent.on("click", this.OnMaskClicked.bind(this)), cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyDown, this), this.Hide()
                }, t.prototype.Show = function(e) {
                    this._DropDownTarget = e, this.node.parent.active = !0, this.node.setContentSize(e.node.getContentSize().width, 0);
                    var t = e.node.parent.convertToWorldSpaceAR(e.node.position),
                        n = e.node.getContentSize().height / 2 + 4,
                        o = this;
                    this.scheduleOnce(function() {
                        o.RefreshItems(), o.node.position = o.node.parent.convertToNodeSpaceAR(new cc.Vec3(t.x, t.y - n, t.z))
                    }, .01)
                }, t.prototype.Hide = function() {
                    this.node.parent.active = !1
                }, t.prototype.OnDropDownClicked = function(e) {
                    this.Hide(), this._DropDownTarget && this._DropDownTarget.SetSelectedIndex(e)
                }, t.prototype.OnMaskClicked = function() {
                    this.Hide(), this._DropDownTarget && this._DropDownTarget.OnDropDownClicked()
                }, t.prototype.RefreshItems = function() {
                    for (var e = 0; e < this._CurrentShowItems.length; e++) this.RecycleItem(this._CurrentShowItems[e]);
                    this._CurrentShowItems = [];
                    var t = 0;
                    for (e = 0; e < this.OptionsData.length; e++) {
                        var n = this.FetchItem();
                        n.getComponent(p.default).Init(this, e), n.parent = this.ContentNode, this._CurrentShowItems.push(n), t += n.height + 2
                    }
                    this.ContentNode.height = t, this.node.height = Math.min(this.DropDownViewHeight, this.ContentNode.height)
                }, t.prototype.FetchItem = function() {
                    var e = this._OptionItemPool.pop();
                    return e || (e = cc.instantiate(this.ItemPrefab)), e
                }, t.prototype.RecycleItem = function(e) {
                    this._OptionItemPool.push(e), e.parent = this.ItemPool
                }, t.prototype.onKeyDown = function(e) {
                    if (this.node.parent.active && this.ContentNode.childrenCount) {
                        var t = this.node.getComponent(cc.ScrollView);
                        if (t)
                            for (var n = 0; n < this.ContentNode.children.length; n++) {
                                var o = this.ContentNode.children[n].getComponent(p.default);
                                if (o && o.ShowLabel && o.ShowLabel.string && o.ShowLabel.string.length > 0 && o.ShowLabel.string.toUpperCase().charCodeAt(0) == e.keyCode) {
                                    t.scrollToOffset(cc.v2(0, Math.abs(o.node.y) - o.node.height / 2), .1);
                                    break
                                }
                            }
                    }
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), cc.systemEvent.off(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyDown, this)
                }, i([l(cc.Node)], t.prototype, "ContentNode", void 0), i([l(cc.Node)], t.prototype, "ItemPool", void 0), i([l(cc.Prefab)], t.prototype, "ItemPrefab", void 0), i([s], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../Consts/Consts": "Consts",
        "../../EZFramework/EZFramework": "EZFramework",
        "./DropDownItem": "DropDownItem"
    }],
    DropDown: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1a068etcHNF9LRX2h6W184l", "DropDown");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = e("../../EZFramework/EZFramework"),
            u = e("../../Consts/Consts"),
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DropDownViewHeight = 240, t.Triangle = null, t.SelectedLabel = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "SelectedIndex", {
                    get: function() {
                        return this._SelectedIndex
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.SetSelectedIndex = function(e, t) {
                    void 0 === t && (t = !1), this._OptionsData[e] ? this.SelectedLabel.string = this._OptionsData[e].Label : this.SelectedLabel.string = "No Option", this._SelectedIndex != e ? (this._SelectedIndex = e, this.node.emit(u.GameEventIds.SeDropDownValueChange, this.SelectedData)) : t && this.node.emit(u.GameEventIds.SeDropDownValueChange, this.SelectedData), this._IsExtended && (this._IsExtended = !1, cc.tween(this.Triangle).to(.2, {
                        angle: -90
                    }, {
                        easing: "cubicOut"
                    }).start())
                }, Object.defineProperty(t.prototype, "OptionsData", {
                    get: function() {
                        return this._OptionsData
                    },
                    set: function(e) {
                        this._OptionsData = e, this.SetSelectedIndex(0, !0)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "IsExtended", {
                    get: function() {
                        return this._IsExtended
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "SelectedData", {
                    get: function() {
                        return this._SelectedIndex < this._OptionsData.length ? this._OptionsData[this._SelectedIndex] : null
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onLoad = function() {
                    this._IsExtended = !1, this._OptionsData = [], this._SelectedIndex = 0, this.node.off("click"), this.node.on("click", this.OnDropDownClicked.bind(this))
                }, t.prototype.OnDropDownClicked = function() {
                    this._IsExtended ? (this._IsExtended = !1, cc.tween(this.Triangle).to(.2, {
                        angle: -90
                    }, {
                        easing: "cubicOut"
                    }).start(), c.Game.EventDispatcher.Emit(u.GameEventIds.SeHideDropDown)) : (this._IsExtended = !0, cc.tween(this.Triangle).to(.2, {
                        angle: 0
                    }, {
                        easing: "cubicOut"
                    }).start(), c.Game.EventDispatcher.Emit(u.GameEventIds.SeShowDropDown, this))
                }, i([l(cc.Node)], t.prototype, "Triangle", void 0), i([l(cc.Label)], t.prototype, "SelectedLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Consts/Consts": "Consts",
        "../../EZFramework/EZFramework": "EZFramework"
    }],
    DukeScrollComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a333agaBEVBzZC+B8W0DH8M", "DukeScrollComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../Components/PolygonPowerComponent"),
            I = e("../Components/ElementTypeItem"),
            _ = e("../Components/EquipAttrInfoItem"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Polygon = null, t.ScrollTitle = null, t.ReBornBtn = null, t.ReBornBtnLabel = null, t.Attrs = null, t.SkillDesc = null, t.ConsumeCountText = null, t.UpgradeBtn = null, t.UpgradeBtnLabel = null, t.UpgradeBtnRedDot = null, t.FullLabel = null, t.ELEMENT_ARRAY = [u.HeroElementType.Fight, u.HeroElementType.Chaos, u.HeroElementType.Heart, u.HeroElementType.Power, u.HeroElementType.Tech, u.HeroElementType.Break], t._loadedAssets = [], t._currentIndex = 4, t._level = 0, t._isInitUI = !1, t._attrItemTable = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(d.EventKeys.EVENT_SELECT_ELEMENT_TYPE_ITEM, this.OnClickElementNode, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(d.EventKeys.EVENT_SELECT_ELEMENT_TYPE_ITEM, this.OnClickElementNode)
                }, t.prototype.InitUI = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.UpgradeBtnLabel.string = "common_upgrade_level".ToUILocale(), this.ReBornBtnLabel.string = "common_reset".ToUILocale(), this.FullLabel.string = "common_max_level".ToUILocale(), this.UpgradeBtn.node.on("click", this.OnUpgradeBtnClick, this), this.ReBornBtn.node.on("click", this.OnReBornBtnClick, this), [2]
                        })
                    })
                }, t.prototype.Init = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._isInitUI || (this._isInitUI = !0, this.InitUI()), this._elementPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset("HeroElement/ElementTypeItem", cc.Prefab)]);
                                case 1:
                                    if (e._elementPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._elementPrefab), [2];
                                    this._loadedAssets.push(this._elementPrefab), s.label = 2;
                                case 2:
                                    return this._attrItemPrefab ? [3, 4] : (t = this, [4, f.AssetsManager.Instance.LoadAsset("ItemsComponent/EquipAttrInfoItem")]);
                                case 3:
                                    if (t._attrItemPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._attrItemPrefab), [2];
                                    s.label = 4;
                                case 4:
                                    for (n = l.ConfigDataComponent.Instance.GetGlobalSettingByKey("DukeScrollMaxLevel"), o = new m.PolygonPowerConfig({
                                            Count: this.ELEMENT_ARRAY.length,
                                            Radius: 280,
                                            MaxScale: n,
                                            InitialAngle: 30
                                        }), this.Polygon.Init(o, this._elementPrefab), r = [], a = 0; a < this.ELEMENT_ARRAY.length; a++) i = l.DataCenter.Instance.GetDataById(y.DukeScroll_Model, this.ELEMENT_ARRAY[a]), r.push(i ? i.Level : 0);
                                    for (this.Polygon.Render(r), a = 0; a < this.Polygon.TitleNodes.length; a++) this.Polygon.TitleNodes[a].getComponent(I.default).Init(this.ELEMENT_ARRAY[a], "Lv." + r[a]);
                                    return this.Polygon.UpdateTitles(), this.ChangeElementType(this._currentIndex), [2]
                            }
                        })
                    })
                }, t.prototype.GetCurrentIndex = function() {
                    return this._currentIndex
                }, t.prototype.ChangeElementType = function(e) {
                    this._currentIndex = e;
                    var t = l.DataCenter.Instance.GetDataById(y.DukeScroll_Model, this.ELEMENT_ARRAY[this._currentIndex]),
                        n = this.ELEMENT_ARRAY[this._currentIndex].ToHeroElementName();
                    this._level = t ? t.Level : 0;
                    var o = l.DataCenter.Instance.GetItemCount(u.CommonItemId.DukePoint);
                    this._levelConfig = l.ConfigDataComponent.Instance.GetConfigById(g.DukeScrollLevel_Config, this._level), this._nextConfig = l.ConfigDataComponent.Instance.GetConfigById(g.DukeScrollLevel_Config, this._level + 1);
                    var r = !!this._nextConfig;
                    if (this.ScrollTitle.string = "duke_scroll_title".ToUILocale().Fmt(n, this._level), this.SkillDesc.string = "duke_scroll_desc".ToUILocale().Fmt(n), this.ConsumeCountText.node.active = r, this.UpgradeBtn.node.active = r, this.FullLabel.node.active = !r, r) {
                        var i = this._nextConfig.MaterialCount - (this._levelConfig ? this._levelConfig.MaterialCount : 0),
                            a = o.toString();
                        o < i && (a = "<color=#ff4b4b>" + o + "</c>"), this.ConsumeCountText.string = "duke_scroll_consume_count".ToUILocale().Fmt(a, i)
                    }
                    for (var s = 0; s < this.Polygon.TitleNodes.length; s++)(b = this.Polygon.TitleNodes[s]).getComponent(I.default).ShowBg(s == this._currentIndex);
                    var c = {};
                    if (this._levelConfig)
                        for (var p = 0, d = this._levelConfig.Attrs; p < d.length; p++) {
                            var h = (s = d[p]).Items[0],
                                f = s.Items[1];
                            c[h] || (c[h] = {
                                old: 0,
                                new: 0
                            }), c[h].old = f
                        }
                    if (this._nextConfig)
                        for (var m = 0, C = this._nextConfig.Attrs; m < C.length; m++) h = (s = C[m]).Items[0], f = s.Items[1], c[h] || (c[h] = {
                            old: 0,
                            new: 0
                        }), c[h].new = f;
                    for (s = 0; s < this._attrItemTable.length; s++) this._attrItemTable[s].node.active = !1;
                    var v = 0;
                    for (var s in c) {
                        if (!this._attrItemTable[v]) {
                            var b, S = (b = cc.instantiate(this._attrItemPrefab)).getComponent(_.default);
                            b.setParent(this.Attrs), this._attrItemTable[v] = S, b.x = 10, S.ValueNode.width = 782, S.AttrContentLabel.maxWidth = 762
                        }
                        var w = [h = parseInt(s), c[s].old];
                        c[s].new - c[s].old > 0 && w.push(c[s].new - c[s].old), this._attrItemTable[v].SetUI(w), this._attrItemTable[v].node.active = !0, v++
                    }
                    this.CheckRedDot()
                }, t.prototype.CheckRedDot = function() {
                    if (this._nextConfig) {
                        var e = l.DataCenter.Instance.GetIntData(u.UserDataKey.Duke),
                            t = l.ConfigDataComponent.Instance.GetConfigById(g.Duke_Config, e);
                        if (0 == e || this._level + 1 > t.MaxLevel) return void(this.UpgradeBtnRedDot.active = !1);
                        var n = this._nextConfig.MaterialCount - (this._levelConfig ? this._levelConfig.MaterialCount : 0);
                        if (!l.DataCenter.Instance.IsItemEnough(u.CommonItemId.DukePoint, n)) return void(this.UpgradeBtnRedDot.active = !1);
                        this.UpgradeBtnRedDot.active = !0
                    } else this.UpgradeBtnRedDot.active = !1
                }, t.prototype.OnReBornBtnClick = function() {
                    var e = "duke_scroll_hint".ToUILocale();
                    h.UIUtlity.ShowHintPanel("", e, "", null, "", this.Reset.bind(this))
                }, t.prototype.Reset = function() {
                    var e = this,
                        t = new y.Req_Team_DukeScrollReset;
                    l.RpcComponent.Instance.Call(t, function() {
                        e.Init()
                    })
                }, t.prototype.OnUpgradeBtnClick = function() {
                    var e = this,
                        t = l.DataCenter.Instance.GetIntData(u.UserDataKey.Duke),
                        n = l.ConfigDataComponent.Instance.GetConfigById(g.Duke_Config, t);
                    if (0 == t || this._level + 1 > n.MaxLevel) h.UIUtlity.ShowFloatingHint("duke_scroll_duke_not_enough".ToUILocale());
                    else {
                        var o = this._nextConfig.MaterialCount - (this._levelConfig ? this._levelConfig.MaterialCount : 0);
                        if (l.DataCenter.Instance.IsItemEnough(u.CommonItemId.DukePoint, o)) {
                            var r = l.DataCenter.Instance.GetIntData(u.UserDataKey.Power),
                                i = new y.Req_Team_DukeScrollUpgradeLevel;
                            i.Sid = this.ELEMENT_ARRAY[this._currentIndex], i.NewLevel = this._level + 1, l.RpcComponent.Instance.Call(i, function() {
                                var t = l.DataCenter.Instance.GetIntData(u.UserDataKey.Power);
                                f.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattlePowerChangePanel.Path, r, t), e.Init()
                            })
                        } else {
                            var a = u.CommonItemId.DukePoint.ToItemName();
                            h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(a))
                        }
                    }
                }, t.prototype.OnClickElementNode = function(e) {
                    var t = this.ELEMENT_ARRAY.indexOf(e);
                    this.ChangeElementType(t)
                }, t.prototype.onDestroy = function() {
                    if (this._loadedAssets.length > 0) {
                        for (var e = 0; e < this._loadedAssets.length; e++) f.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                        this._loadedAssets = []
                    }
                }, i([b(m.default)], t.prototype, "Polygon", void 0), i([b(cc.Label)], t.prototype, "ScrollTitle", void 0), i([b(cc.Button)], t.prototype, "ReBornBtn", void 0), i([b(cc.Label)], t.prototype, "ReBornBtnLabel", void 0), i([b(cc.Node)], t.prototype, "Attrs", void 0), i([b(cc.Label)], t.prototype, "SkillDesc", void 0), i([b(cc.RichText)], t.prototype, "ConsumeCountText", void 0), i([b(cc.Button)], t.prototype, "UpgradeBtn", void 0), i([b(cc.Label)], t.prototype, "UpgradeBtnLabel", void 0), i([b(cc.Node)], t.prototype, "UpgradeBtnRedDot", void 0), i([b(cc.Label)], t.prototype, "FullLabel", void 0), i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ElementTypeItem": "ElementTypeItem",
        "../Components/EquipAttrInfoItem": "EquipAttrInfoItem",
        "../Components/PolygonPowerComponent": "PolygonPowerComponent"
    }],
    EZFramework: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "98f04QzMM1ATKyQaumKFCpH", "EZFramework");
        var o = this && this.__createBinding || (Object.create ? function(e, t, n, o) {
                void 0 === o && (o = n), Object.defineProperty(e, o, {
                    enumerable: !0,
                    get: function() {
                        return t[n]
                    }
                })
            } : function(e, t, n, o) {
                void 0 === o && (o = n), e[o] = t[n]
            }),
            r = this && this.__exportStar || function(e, t) {
                for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n)
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), r(e("./AssetsLoader/AssetsManager"), n), r(e("./EZDefine/SysDefine"), n), r(e("./UIFrame/BaseUIPanel"), n), r(e("./UIFrame/BaseUIFullScreenFrame"), n), r(e("./UIFrame/BaseUIFrame"), n), r(e("./UIFrame/BaseUIPage"), n), r(e("./UIFrame/BaseUIFullScreenPanel"), n), r(e("./UIFrame/UIManager"), n), r(e("./UIFrame/UIPanelType"), n), r(e("./Audio/AudioManager"), n), r(e("./Auxiliary/EZLog"), n), r(e("./Base/GameError"), n), r(e("./Base/IPEndPoint"), n), r(e("./Base/Game"), n), r(e("./Base/Session"), n), r(e("./Components/OpCodeComponent"), n), r(e("./Components/TimerComponent"), n), cc._RF.pop()
    }, {
        "./AssetsLoader/AssetsManager": "AssetsManager",
        "./Audio/AudioManager": "AudioManager",
        "./Auxiliary/EZLog": "EZLog",
        "./Base/Game": "Game",
        "./Base/GameError": "GameError",
        "./Base/IPEndPoint": "IPEndPoint",
        "./Base/Session": "Session",
        "./Components/OpCodeComponent": "OpCodeComponent",
        "./Components/TimerComponent": "TimerComponent",
        "./EZDefine/SysDefine": "SysDefine",
        "./UIFrame/BaseUIFrame": "BaseUIFrame",
        "./UIFrame/BaseUIFullScreenFrame": "BaseUIFullScreenFrame",
        "./UIFrame/BaseUIFullScreenPanel": "BaseUIFullScreenPanel",
        "./UIFrame/BaseUIPage": "BaseUIPage",
        "./UIFrame/BaseUIPanel": "BaseUIPanel",
        "./UIFrame/UIManager": "UIManager",
        "./UIFrame/UIPanelType": "UIPanelType"
    }],
    EZLog: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1c6c0ml6iRO37O0Ry0g9zsl", "EZLog"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.EZLog = void 0;
        var o = function() {
            function e() {}
            return Object.defineProperty(e, "Enabled", {
                get: function() {
                    return !0
                },
                enumerable: !1,
                configurable: !0
            }), e.Debug = function() {
                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]
            }, e.Log = function() {
                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]
            }, e.Warn = function() {
                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]
            }, e.Error = function() {
                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]
            }, e
        }();
        n.EZLog = o, cc._RF.pop()
    }, {}],
    EightDaysPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "63b06iIFm1E4qaMXhU/lKHW", "EightDaysPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../../Consts/Etc"),
            I = e("../../../Util/TimeUtil"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("./EightDaysReward"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("./QueenSummonPanel"),
            S = e("../../Auxiliary/GameRecord"),
            w = e("../Components/CustomToggle"),
            P = e("../../Components/Components"),
            A = e("../../RedDot/RedDotManager"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property;
        (function(e) {
            e[e.Free = 1] = "Free", e[e.Pay = 2] = "Pay"
        })(l || (l = {}));
        var k = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.CheckDetail = null, t.CheckButton = null, t.RewardsContainer = null, t.GirlSprite = null, t.PayButton = null, t.PayLabel = null, t.CustomToggles = [], t._shownRewards = [], t._selectIndex = 0, t._assets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(g.EventKeys.EVENT_EIGHTDAYS_BIND_COUNTDOWN, this.OnLabelCountDown, this), c.Game.EventDispatcher.On(g.EventKeys.EVENT_EIGHTDAYS_GET_REWARD, this.OnGetReward, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(g.EventKeys.EVENT_EIGHTDAYS_BIND_COUNTDOWN, this.OnLabelCountDown, this), c.Game.EventDispatcher.Off(g.EventKeys.EVENT_EIGHTDAYS_GET_REWARD, this.OnGetReward, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent), this.LoadDynamicAsset("EightDaysPanel/Components/EightDaysReward", cc.Prefab), this.LoadDynamicAsset("EightDaysPanel/PNG/eightDays", cc.SpriteAtlas)]).then(function(e) {
                                    t._itemPrefab = e[0], t._rewardPrefab = e[1], t._atlas = e[2]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.CheckDetail.string = "eightDays_lookDetail".ToUILocale(), this.PayLabel.string = "mall_luckyStar_goCharge".ToUILocale(), this.CustomToggles.forEach(function(e, n) {
                    e.Init(("eightDays_toggle" + n).ToUILocale()), e.node.on("toggle", t.OnSwitchTab, t)
                }), this.CheckButton.node.on("click", this.OnCheckButtonClick, this), this.PayButton.node.on("click", this.OnPayButtonClick, this), this._deadLine = I.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime) + m.Etc.DayDuration;
                for (var n = 0; n < 8; n++) {
                    var o = cc.instantiate(this._rewardPrefab);
                    o.setParent(this.RewardsContainer), this._shownRewards[n] = o.getComponent(C.default)
                }
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = P.DataCenter.Instance.ActivityConfigs[this._activityId], this._activityData = P.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), this.SetConfigs()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                if (this._configs = this._configMap[this._selectIndex + 1], S.default.SetItem(S.GameRecordDefine.EightDaysTip, d.RpcComponent.Instance.ServerTime.toString()), this._activityData.IntArray[0] >= this._configMap[l.Free].length && this._activityData.IntArray[1] >= this._configMap[l.Pay].length) return c.UIManager.Instance.BackUIPanel(), void c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_SET_VERTICAL_BUTTON, 20, -1);
                var e;
                this._today = _.default.Instance.ComputeContiuousTime(this._activityConfig.Common);
                for (var t = 0; t < this._shownRewards.length; t++) {
                    e = this._configs[t];
                    var n = d.ConfigDataComponent.Instance.GetLocale("EightDays_desc_" + e.Id),
                        o = this._activityData.IntArray[this._selectIndex] > t;
                    this._shownRewards[t].SetItem(e.Rewards, this._itemPrefab, t).SetDay(t + 1, this._today, o).SetCanGetShown(n, this._atlas, t)
                }
                this.SetGirlSprite(), this.PayButton.node.active = 0 != this._selectIndex, A.RedDotManager.Instance.BindInstance(this.CustomToggles[1].node, A.RedDotManager.Instance.InstanceRedDot.EightDaysPayToggle, {
                    Value1: this._activityId
                })
            }, t.prototype.SetConfigs = function() {
                var e = this,
                    t = this._activityConfig.__Rewards;
                for (var n in this._configMap = {}, t.forEach(function(t) {
                        e._configMap[t.Type] ? e._configMap[t.Type].push(t) : e._configMap[t.Type] = [t]
                    }), this._configMap) this._configMap[n].sort(function(e, t) {
                    return e.Id - t.Id
                })
            }, t.prototype.OnItemClick = function(e, t) {
                "RewardContainer" == t.parent.name && (f.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t), this.OnSpriteChange(e))
            }, t.prototype.OnLabelCountDown = function(e) {
                this._countDownLabel = e, this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1)
            }, t.prototype.OnGetReward = function() {
                var e = this;
                if (1 == this._selectIndex) {
                    var t = P.DataCenter.Instance.GetIntData(v.UserDataKey.TotalPay) - this._activityData.IntValue,
                        n = this._activityConfig.CustomPart.TotalPay;
                    if (t < n) return void f.UIUtlity.ShowFloatingHint("eightDays_pay_limit".ToUILocale().Fmt(n))
                }
                var o = new p.Req_Activity_EightDaysRewards;
                o.ActivityId = this._activityId, o.Type = this._selectIndex + 1, d.RpcComponent.Instance.Call(o, function(t) {
                    1 == t.Rewards.length && d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, t.Rewards[0].ItemId).Type == v.ItemType.Hero ? c.UIManager.Instance.ShowUIPanel(h.PanelConfig.SummonResultPanel.Path, b.default.ACTIVITY_SUMMON_ONCE_ID, [
                        [t.Rewards[0].ItemId, t.Rewards[0].Count]
                    ]) : f.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e._activityData = P.DataCenter.Instance.GetDataById(p.UserActivity_Model, e._activityId), e._activityData.IntArray[0] >= e._configMap[l.Free].length && e._activityData.IntArray[1] >= e._configMap[l.Pay].length && (c.UIManager.Instance.QuitPanelStack(e), c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_SET_VERTICAL_BUTTON, 20, -1))
                })
            }, t.prototype.OnCheckButtonClick = function() {
                var e = this._today - 1;
                e >= this._configs.length && (e = this._configs.length - 1), c.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroHandbookPanel.Path, this._configs[this._showIndex].HeroId, null, 11)
            }, t.prototype.OnSpriteChange = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._showIndex = e, t = this._configs[e].Texture, [4, _.default.LoadActivityTexture(t)];
                            case 1:
                                return n = o.sent(), this.isValid ? (this._assets.push(n), this.GirlSprite.spriteFrame = n, [2]) : (c.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.OnPayButtonClick = function() {
                _.default.Instance.HasBoughtFirstPay() ? c.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path) : _.default.ShowActivityFirstPayPanel(!0)
            }, t.prototype.OnSwitchTab = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function() {
                        return t = Number.parseInt(e.name), this._selectIndex == t ? [2] : (this._selectIndex = t, 1 == t && (S.default.SetItem(S.GameRecordDefine.EightDaysPayReddot, d.RpcComponent.Instance.ServerTime.toString()), A.RedDotManager.Instance.BindInstance(this.CustomToggles[1].node, A.RedDotManager.Instance.InstanceRedDot.EightDaysPayToggle, {
                            Value1: this._activityId
                        })), this.SetUIContent(), [2])
                    })
                })
            }, t.prototype.CountDown = function() {
                var e = this._deadLine - d.RpcComponent.Instance.ServerTime;
                e < 0 && this.DisPlay(), this._countDownLabel.string = _.default.ActivityTimeLeftFormat(e)
            }, t.prototype.SetGirlSprite = function() {
                var e = this._today - 1;
                e >= this._configs.length && (e = this._configs.length - 1), null != this._configs[e].Texture && this.OnSpriteChange(e)
            }, t.prototype.onDestroy = function() {
                this._assets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                }), this.unscheduleAllCallbacks()
            }, i([L(cc.Label)], t.prototype, "CheckDetail", void 0), i([L(cc.Button)], t.prototype, "CheckButton", void 0), i([L(cc.Node)], t.prototype, "RewardsContainer", void 0), i([L(cc.Sprite)], t.prototype, "GirlSprite", void 0), i([L(cc.Button)], t.prototype, "PayButton", void 0), i([L(cc.Label)], t.prototype, "PayLabel", void 0), i([L(w.default)], t.prototype, "CustomToggles", void 0), i([R], t)
        }(c.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "./EightDaysReward": "EightDaysReward",
        "./QueenSummonPanel": "QueenSummonPanel"
    }],
    EightDaysReward: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "43e4fYSyplIf4yZClAzfP43", "EightDaysReward");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../Components/Components"),
            u = e("../Components/ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DaythLabel = null, t.RewardNameLabel = null, t.CrystalBall = null, t.ItemContainer = null, t.TouchNode = null, t.Focus = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._color33FF8E = new cc.Color(51, 255, 142)
                }, t.prototype.onEnable = function() {
                    this.TouchNode.on(cc.Node.EventType.TOUCH_END, this.OnMaskTouch, this)
                }, t.prototype.onDisable = function() {
                    this.TouchNode.off(cc.Node.EventType.TOUCH_END, this.OnMaskTouch, this)
                }, t.prototype.SetDay = function(e, t, n) {
                    var o = cc.Color.WHITE;
                    this._isCanGet = !1;
                    var r = "firstCharge_dayth".ToUILocale().Fmt(e);
                    return this._item.SetReceivedTagState(!1), n ? this._item.SetReceivedTagState(!0) : e <= t ? this._isCanGet = !0 : e == t + 1 ? (o = this._color33FF8E, r = null) : e > t + 1 && (r = "eightDays_daysAfter".ToUILocale().Fmt(e - t)), this.DaythLabel.node.color = o, null != r ? this.DaythLabel.string = r : s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_EIGHTDAYS_BIND_COUNTDOWN, this.DaythLabel), this
                }, t.prototype.SetItem = function(e, t, n) {
                    var o = c.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, e[0]);
                    if (null == this._item) {
                        var r = cc.instantiate(t);
                        r.setParent(this.ItemContainer), this._item = r.getComponent(u.ItemComponent)
                    }
                    return this._item.node.name = n.toString(), this._item.Init({
                        ItemId: o.Id,
                        Count: e[1]
                    }, o.Star ? u.ItemComponentType.ItemWithStar : u.ItemComponentType.ItemCommon), this._item.SetCountFontSize(26, 141), this
                }, t.prototype.SetCanGetShown = function(e, t, n) {
                    var o;
                    this._isCanGet ? (this.RewardNameLabel.string = "online_canGet".ToUILocale(), o = "bg2", this._item.PlayGetRewardEffect(), this.TouchNode.active = !0, this.Focus.active = !0) : (this.RewardNameLabel.string = e, o = "bg1", this._item.PauseGetRewardEffect(), this.TouchNode.active = !1, this.Focus.active = !1), this.CrystalBall.spriteFrame = t.getSpriteFrame(o), this._index = n
                }, t.prototype.OnMaskTouch = function() {
                    s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_EIGHTDAYS_GET_REWARD, this._index)
                }, i([h(cc.Label)], t.prototype, "DaythLabel", void 0), i([h(cc.Label)], t.prototype, "RewardNameLabel", void 0), i([h(cc.Sprite)], t.prototype, "CrystalBall", void 0), i([h(cc.Node)], t.prototype, "ItemContainer", void 0), i([h(cc.Node)], t.prototype, "TouchNode", void 0), i([h(cc.Node)], t.prototype, "Focus", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ElderGiftPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bf24fUgYVBPTLGIqjKe6NRS", "ElderGiftPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../Channel/ChannelManager"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.PurchaseLimit = null, t.AttainLabel = null, t.AttainNumber = null, t.FreeButton = null, t.FreeButtonLabel = null, t.PurchaseButton = null, t.PurchaseButtonLabel = null, t.DiamondIconNode = null, t.SellOutTag = null, t.SellOutLabel = null, t.ItemContainer = null, t.Reddot = null, t.DiscountLabel = null, t.MaskNode = null, t._items = [], t._isFreeGift = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent == this.ItemContainer && d.UIUtlity.ShowItemTip(t.getComponent(l.ItemComponent).ItemId, t)
                }, t.prototype.SetNodSize = function(e, t, n) {
                    if (n) {
                        var o = this.ItemContainer.parent.parent.getComponent(cc.Widget);
                        o.isAlignBottom = !0, o.bottom = n, o.updateAlignment()
                    }
                    return this.node.width = e, this.node.height = t, this
                }, t.prototype.SetTitle = function(e) {
                    return this.Title.string = e, this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.SellOutLabel.string = "bought".ToUILocale(), this
                }, t.prototype.SetPurchaseLimit = function(e, t, n) {
                    var o;
                    return this.PurchaseLimit.node.parent.parent.active = 0 != n, e > 0 || 0 == n ? (o = "<color = ffffff>" + ("mall_buyLimit_" + n).ToUILocale().Fmt("</c><color = 6EEEA7>" + e, t) + "</>", this.SellOutTag.active = !1, this.MaskNode.active = !1) : (o = "<color = ffffff>" + ("mall_buyLimit_" + n).ToUILocale().Fmt("<color = ff0000>" + e + "</c>", t) + "</>", this.SellOutTag.active = !0, this.MaskNode.active = !0), this.PurchaseButton.node.active = (e > 0 || 0 == n) && !this._isFreeGift, this.FreeButton.node.active = (e > 0 || 0 == n) && this._isFreeGift, this.PurchaseLimit.string = o, this
                }, t.prototype.SetItems = function(e, t) {
                    var n;
                    if (t.length > this._items.length) {
                        for (var o = 0; o < this._items.length; o++) n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon);
                        for (o = this._items.length; o < t.length; o++) {
                            var r = e.Get();
                            r.active = !0, r.setParent(this.ItemContainer), this._items[o] = r.getComponent(l.ItemComponent), n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), r.name = t[o].Items[0].toString(), this._items[o].Init({
                                ItemId: t[o].Items[0],
                                Count: t[o].Items[1]
                            }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon)
                        }
                    } else {
                        for (o = 0; o < t.length; o++) n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].node.name = t[o].Items[0].toString(), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon);
                        for (o = t.length; o < this._items.length; o++) this._items[o].node.active = !1, e.Put(this._items[o].node);
                        this._items.length = t.length
                    }
                    return this
                }, t.prototype.SetButtonLabel = function(e, t, n) {
                    return this.SellOutTag.active = e < 0, this.MaskNode.active = e < 0, this.PurchaseButton.node.active = !1, this.FreeButton.node.active = !1, this._isFreeGift = !1, e >= 0 && (this.AttainNumber.string = "x" + t, this.PurchaseButton.node.active = !0, this.DiamondIconNode.active = !1, this.Reddot.active = !1, 0 == e || n > 0 ? (n > 0 ? (this.PurchaseButtonLabel.string = n.toString(), this.DiamondIconNode.active = !0) : (this.PurchaseButton.node.active = !1, this.FreeButton.node.active = !0, this.FreeButtonLabel.string = "shop_buyFree".ToUILocale(), this.Reddot.active = !0, this._isFreeGift = !0), this.AttainNumber.node.parent.active = !1, this.AttainLabel.node.active = !1) : (this.PurchaseButtonLabel.string = p.default.Instance.CurrencySymbol + e, this.AttainNumber.node.parent.active = !0, this.AttainLabel.node.active = !0)), this
                }, t.prototype.SetButtonClick = function(e) {
                    this._index = e, this.PurchaseButton.node.on("click", this.OnPurchaseButtonClick, this), this.FreeButton.node.on("click", this.OnPurchaseButtonClick, this)
                }, t.prototype.SetDiscount = function(e) {
                    return this.DiscountLabel.string = e + "%" + "mall_giftPack_superValue".ToUILocale(), this
                }, t.prototype.OnPurchaseButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_MALL_BUTTONCLICK, this._index)
                }, t.prototype.onDisable = function() {
                    this.PurchaseButton.node.off("click", this.OnPurchaseButtonClick, this), this.FreeButton.node.off("click", this.OnPurchaseButtonClick, this), a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([y(cc.Label)], t.prototype, "AttainLabel", void 0), i([y(cc.Label)], t.prototype, "AttainNumber", void 0), i([y(cc.Button)], t.prototype, "FreeButton", void 0), i([y(cc.Label)], t.prototype, "FreeButtonLabel", void 0), i([y(cc.Button)], t.prototype, "PurchaseButton", void 0), i([y(cc.Label)], t.prototype, "PurchaseButtonLabel", void 0), i([y(cc.Node)], t.prototype, "DiamondIconNode", void 0), i([y(cc.Node)], t.prototype, "SellOutTag", void 0), i([y(cc.Label)], t.prototype, "SellOutLabel", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Node)], t.prototype, "Reddot", void 0), i([y(cc.Label)], t.prototype, "DiscountLabel", void 0), i([y(cc.Node)], t.prototype, "MaskNode", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ElementArenaComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f219c3IbaZBzq6Z8I/p5EIA", "ElementArenaComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("./ItemComponent"),
            h = e("../../Components/DataCenter"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/EventKeys"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.ItemLayoutNode = null, t.RemainRichText = null, t.ExchangeButton = null, t.ExchangeLabel = null, t._assets = [], t._consumeNodes = [], t._consumeItemNodes = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ExchangeButton.node.on("click", this.ClickExchangeButton, this), this.ExchangeLabel.string = "LuckyDraw_exchange".ToUILocale()
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t) {
                    this._configData = e, this._config = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, this.LoadAssets()];
                                case 1:
                                    return e.sent(), this.isValid ? (this.SetItemNode(), this.SetConsumeNodes(), this.SetExchangeButton(), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.LoadAssets = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab || this._consumeItemPrefab ? [3, 2] : [4, Promise.all([c.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab), c.AssetsManager.Instance.LoadAsset("ElementArenaPanel/Components/ElementArenaItemComponent", cc.Prefab)]).then(function(n) {
                                        e = n[0], t = n[1]
                                    })];
                                case 1:
                                    if (n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), c.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._itemPrefab = e, this._consumeItemPrefab = t, this._assets.push(e), this._assets.push(t), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetItemNode = function() {
                    this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.setParent(this.ItemNode), this._itemNode.y = -20), this._itemNode.getComponent(d.ItemComponent).Init({
                        ItemId: this._config.ExchangeItems[0].Items[0],
                        Count: this._config.ExchangeItems[0].Items[1]
                    })
                }, t.prototype.SetConsumeNodes = function() {
                    var e = this;
                    this._consumeNodes.forEach(function(e) {
                        e.active = !1
                    }), this._config.UseItems.forEach(function(t, n) {
                        e._consumeNodes[n] || ((o = cc.instantiate(e._consumeItemPrefab)).parent = e.ItemLayoutNode, e._consumeNodes[n] = o), e._consumeNodes[n].active = n < 3;
                        var o, r = e._consumeNodes[n].getChildByName("ItemNode"),
                            i = e._consumeNodes[n].getChildByName("CountRichText").getComponent(cc.RichText);
                        e._consumeItemNodes[n] || ((o = cc.instantiate(e._itemPrefab)).parent = r, o.y = -20, e._consumeItemNodes[n] = o), e._consumeItemNodes[n].getComponent(d.ItemComponent).Init({
                            ItemId: t.Items[0]
                        });
                        var a = h.DataCenter.Instance.GetItemCount(t.Items[0]),
                            s = a >= t.Items[1] ? "#00ff00" : "#ff2947";
                        i.string = "<color={0}>{1}</c><color=#ffffff>/{2}</c>".Fmt(s, a, t.Items[1])
                    })
                }, t.prototype.SetExchangeButton = function() {
                    var e = !1;
                    if (this.RemainRichText.node.active = this._config.LimitType > 0, this.ExchangeButton.node.y = this._config.LimitType > 0 ? -24 : 0, this._model = u.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._configData._id), this._config.LimitType > 0) {
                        var t = this._model.IntMap[this._config.Id] || 0,
                            n = this._config.LimitCount - t > 0 ? this._config.LimitCount - t : 0;
                        e = 0 == n, this.RemainRichText.string = ("elementArena_remain_exhcnage" + this._config.LimitType).ToUILocale().Fmt(n)
                    }
                    f.UIUtlity.SetGray(this.ExchangeButton.node, e, !0)
                }, t.prototype.CheckConsumeIsEnough = function() {
                    for (var e = 0; e < this._config.UseItems.length; e++) {
                        var t = this._config.UseItems[e];
                        if (!h.DataCenter.Instance.IsItemEnough(t.Items[0], t.Items[1])) return f.UIUtlity.ShowFloatingHint("elementArena_cant_exchange".ToUILocale().Fmt(t.Items[0].ToItemName())), !1
                    }
                    return !0
                }, t.prototype.ClickExchangeButton = function() {
                    if (this._model = u.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._configData._id), this._config.LimitType > 0) {
                        var e = this._model.IntMap[this._config.Id] || 0;
                        if (0 == (this._config.LimitCount - e > 0 ? this._config.LimitCount - e : 0)) return void f.UIUtlity.ShowFloatingHint("elementArena_count_limit".ToUILocale())
                    }
                    if (this.CheckConsumeIsEnough()) {
                        var t = new l.Req_Activity_ElementArenaExchangeBadge;
                        t.ActivityId = this._configData._id, t.Count = 1, t.Id = this._config.Id, u.RpcComponent.Instance.Call(t, function(e) {
                            f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 == this.ItemNode.children.indexOf(t) ? this.ItemLayoutNode.children.forEach(function(e) {
                        -1 == e.getChildByName("ItemNode").children.indexOf(t) || f.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                    }) : f.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([I(cc.Node)], t.prototype, "ItemNode", void 0), i([I(cc.Node)], t.prototype, "ItemLayoutNode", void 0), i([I(cc.RichText)], t.prototype, "RemainRichText", void 0), i([I(cc.Button)], t.prototype, "ExchangeButton", void 0), i([I(cc.Label)], t.prototype, "ExchangeLabel", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ElementArenaEnemyPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca1c8Z0B4FKkIg1G47iNJCY", "ElementArenaEnemyPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GameRecord"),
            g = e("../Components/ItemComponent"),
            m = e("../Battle/BattleManager"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.EnemyPower = null, t.Power = null, t.HeroContent = null, t.ExchangeCount = null, t.ChallengeCount = null, t.ExchangeButton = null, t.ExchangeIcon = null, t.ExchangeLabel = null, t.ChallengeButton = null, t.ChallengeLabel = null, t.RedDotNode = null, t._itemNodes = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.EnemyPower.string = "elementArena_enemy_power".ToUILocale(), this.Title.string = "elementArena_target".ToUILocale(), this.ChallengeLabel.string = "elementArena_challenge".ToUILocale(), this.ExchangeButton.node.on("click", this.ClickExchangeButton, this), this.ChallengeButton.node.on("click", this.ClickChallengeButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0], this._enemyInfo = t[1]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = I.default.Instance.GetItemPathById(this._configData.CustomPart.ChangeCostItems[0].Items[0]), [4, this.LoadDynamicAsset(t, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.ExchangeIcon.spriteFrame = n, [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), this.SetLabelInfo(), this.SetFormation()
                }, t.prototype.SetLabelInfo = function() {
                    this.Power.string = this._enemyInfo.Info.Power.toString();
                    var e = this._model.IntArray[0] || 0,
                        t = this._configData.CustomPart.FreeChangeCount,
                        n = t - e > 0 ? t - e : 0;
                    this.ExchangeCount.string = "{0}/{1}".Fmt(n, t);
                    var o = this._configData.CustomPart.FalseIsCostCount ? this._model.IntValue : this._model.IntArray[3] || 0,
                        r = this._configData.CustomPart.ChallengeCount,
                        i = r - o > 0 ? r - o : 0;
                    this.ChallengeCount.string = "{0}/{1}".Fmt(i, r), this.RedDotNode.active = i > 0;
                    var a = this._model.IntArray[1] || 0,
                        s = this._configData.CustomPart.ChangeCount;
                    this.ExchangeIcon.node.active = e >= t && a < s, this.ExchangeLabel.string = e >= t && a < s ? this._configData.CustomPart.ChangeCostItems[0].Items[1].toString() : "elementArena_exchange_enemy".ToUILocale()
                }, t.prototype.SetFormation = function() {
                    var e = this,
                        t = [];
                    this._enemyInfo.Info.Formations[0] && this._enemyInfo.Info.Formations[0].Heros && this._enemyInfo.Info.Formations[0].Heros.forEach(function(e) {
                        e && e.Sid > 0 ? t.push(e) : t.push(null)
                    }), this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), t.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.HeroContent, e._itemNodes[n] = o
                        }
                        e._itemNodes[n].active = !0;
                        var r = e._itemNodes[n].getComponent(g.ItemComponent);
                        t ? r.Init(t, g.ItemComponentType.HeroInfo) : (r.SetHeroSimpleState(), r.SetCustomIcon(f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180))
                    })
                }, t.prototype.ClickExchangeButton = function() {
                    var e = this;
                    if (!I.default.CheckActivityIsEnd(this._configData.Common, !0)) {
                        var t = this._model.IntArray[0] || 0,
                            n = this._configData.CustomPart.FreeChangeCount,
                            o = this._model.IntArray[1] || 0,
                            r = this._configData.CustomPart.ChangeCount;
                        if (t < n) this.RequestTarget();
                        else if (o < r)
                            if (y.default.GetItem(y.GameRecordDefine.ElementArenaExchangeCountTip)) this.RequestTarget();
                            else {
                                var i = this._configData.CustomPart.ChangeCostItems[0].Items[0],
                                    a = this._configData.CustomPart.ChangeCostItems[0].Items[1];
                                f.UIUtlity.ShowHintPanel("", "elementArena_use_item_change".ToUILocale().Fmt(a, i.ToItemName()), "", null, "", function() {
                                    e.RequestTarget()
                                }, null, y.GameRecordDefine.ElementArenaExchangeCountTip)
                            }
                        else f.UIUtlity.ShowFloatingHint("elementArena_count_not_enough".ToUILocale())
                    }
                }, t.prototype.RequestTarget = function() {
                    var e = new u.Req_Activity_ElementArenaMatchOpponent;
                    e.ActivityId = this._configData._id, c.RpcComponent.Instance.Call(e, function(e) {
                        var t = new u.Req_Player_GetPlayerDetailInfo;
                        t.Uid = e.Uid, e.Uid < 0 && (t.PlayerType = p.PlayerInfoType.Robot), c.RpcComponent.Instance.Call(t, function(e) {
                            var t;
                            l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_UPDATE_TARGET_INFO, e), l.UIManager.Instance.QuitPanelStack(d.PanelConfig.ElementArenaEnemyPanel.Path), e && e.Info && ((t = {}).Country = e.Info.Country, t.HeadFrame = e.Info.HeadFrame, t.HeadIcon = e.Info.HeadIcon, t.Level = e.Info.Level, t.Name = e.Info.Name), l.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonVSPanel.Path, t)
                        })
                    })
                }, t.prototype.ClickChallengeButton = function() {
                    if (!I.default.CheckActivityIsEnd(this._configData.Common, !0)) {
                        var e = this._configData.CustomPart.FalseIsCostCount ? this._model.IntValue : this._model.IntArray[3] || 0,
                            t = this._configData.CustomPart.ChallengeCount;
                        0 != (t - e > 0 ? t - e : 0) ? (n.StartBattle(this._configData, [this._enemyInfo.Info]), l.UIManager.Instance.QuitPanelStack(d.PanelConfig.ElementArenaEnemyPanel.Path)) : f.UIUtlity.ShowFloatingHint("elementArena_cant_match".ToUILocale())
                    }
                }, t.InitBattle = function() {
                    [p.MapType.ElementArena].forEach(function(e) {
                        l.Game.EventDispatcher.Only(p.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(p.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(p.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(p.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(p.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                    })
                }, t.RestartBattle = function() {
                    n.StartBattle(n._CurrentActivityConfig, n._PlayerDetailInfos)
                }, t.StartBattle = function(e, t) {
                    n._CurrentActivityConfig = e;
                    var o = {
                        PlayerDetailInfos: t,
                        ActivityId: n._CurrentActivityConfig._id
                    };
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.RequestChallenge(e)
                    }, [15], o)
                }, t.RequestChallenge = function(e) {
                    var t;
                    t = {
                        CanSwitchSpeed: !0,
                        CanSkipPlay: !0,
                        CanPlayInBackground: !0,
                        CanCanel: !1,
                        CanRestart: !1
                    };
                    var o = new u.Req_Activity_ElementArenaBattle;
                    o.ActivityId = n._CurrentActivityConfig._id, o.Formations = e, c.RpcComponent.Instance.Call(o, function(e) {
                        m.BattleManager.Instance.StartPlay(e.Reports[0], t)
                    }.bind(this))
                }, t.SettleBattle = function(e) {
                    var t = new u.Req_Map_BattleSettlement;
                    t.MapType = e.MapType, c.RpcComponent.Instance.Call(t, function(t) {
                        var n, o = "ElementArenaPanel/Components/ElementArenaSettlementComponent";
                        t.StringParam && (n = JSON.parse(t.StringParam)), e.SettleParams = [n, e.Reports], 1 == t.Result ? e.InBackground ? m.BattleManager.Instance.ShowSettlePanel(d.PanelConfig.SettlementWinPanel.Path, o, e) : l.UIManager.Instance.ShowUIPanel(d.PanelConfig.SettlementWinPanel.Path, o, e) : e.InBackground ? m.BattleManager.Instance.ShowSettlePanel(d.PanelConfig.SettlementFailPanel.Path, o, e) : l.UIManager.Instance.ShowUIPanel(d.PanelConfig.SettlementFailPanel.Path, o, e)
                    })
                }, t.CancelBattle = function(e) {
                    var t = new u.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, c.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {
                    l.UIManager.Instance.QuitPanelStack(d.PanelConfig.ElementArenaEnemyPanel.Path), l.UIManager.Instance.QuitPanelStack(d.PanelConfig.ElementArenaPanel.Path)
                }, t._CurrentActivityConfig = null, t._PlayerDetailInfos = [], i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Label)], t.prototype, "EnemyPower", void 0), i([v(cc.Label)], t.prototype, "Power", void 0), i([v(cc.Node)], t.prototype, "HeroContent", void 0), i([v(cc.Label)], t.prototype, "ExchangeCount", void 0), i([v(cc.Label)], t.prototype, "ChallengeCount", void 0), i([v(cc.Button)], t.prototype, "ExchangeButton", void 0), i([v(cc.Sprite)], t.prototype, "ExchangeIcon", void 0), i([v(cc.Label)], t.prototype, "ExchangeLabel", void 0), i([v(cc.Button)], t.prototype, "ChallengeButton", void 0), i([v(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([v(cc.Node)], t.prototype, "RedDotNode", void 0), n = i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ElementArenaPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "be5d4oNOqhBo6ZBDAdkxfAE", "ElementArenaPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/CurrencyBarItem"),
            _ = e("../Components/ElementArenaComponent"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.ItemContent = null, t.RuleButton = null, t.TimeRichText = null, t.CustomLayout = null, t.CountNode = null, t.CountRichText = null, t.ReturnButton = null, t.ChallengeButton = null, t.ChallengeLabel = null, t.ShopButton = null, t.ShopLabel = null, t.WarTokenButton = null, t.WarTokenSprite = null, t.WarTokenLabel = null, t.RedDotNode = null, t._currencyBarNodes = [], t._isLayoutInit = !1, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_VS_COMPLETE, this.ShowTargetPanel, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_UPDATE_TARGET_INFO, this.UpdateTargetInfo, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_VS_COMPLETE, this.ShowTargetPanel, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_UPDATE_TARGET_INFO, this.UpdateTargetInfo, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.CurrencyBarComponent, cc.Prefab), n = this.LoadDynamicAsset("ElementArenaPanel/Components/ElementArenaComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._currencyBarPrefab = e[0], o._listItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ChallengeLabel.string = "elementArena_trail".ToUILocale(), this.ShopLabel.string = "allianceBase_mainPageShop".ToUILocale(), this.WarTokenLabel.string = "HolyRelic_WarToken".ToUILocale(), this.RuleButton.node.on("click", this.ClickRuleButton, this), this.ReturnButton.node.on("click", this.ClickReturnButton, this), this.ChallengeButton.node.on("click", this.ClickChallengeButton, this), this.ShopButton.node.on("click", this.ClickShopButton, this), this.WarTokenButton.node.on("click", this.ClickWarTokenButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    n && (this._configData = c.DataCenter.Instance.ActivityConfigs[n], this._deadLine = m.default.Instance.ComputeExtraShowDeadTime(this._configData.Common), this._challengeDeadLine = m.default.Instance.ComputeDeadTime(this._configData.Common))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._model = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), t || this.SetTime(), this.SetTopItems(), this.InitList(), this.SetChallengeInfo()
                }, t.prototype.SetTopItems = function() {
                    var e = this,
                        t = [];
                    this._configData.CustomPart.BadgeRewards.forEach(function(e) {
                        t.push(e.Items[1])
                    }), this._currencyBarNodes.forEach(function(e) {
                        e.active = !1
                    }), t.forEach(function(t, n) {
                        if (!e._currencyBarNodes[n]) {
                            var o = cc.instantiate(e._currencyBarPrefab);
                            o.parent = e.ItemContent, e._currencyBarNodes[n] = o
                        }
                        e._currencyBarNodes[n].active = !0;
                        var r = e._currencyBarNodes[n].getComponent(I.default);
                        r.Init(t), r.SetFixedWidth(140), r.HideBtnAdd()
                    })
                }, t.prototype.SetTime = function() {
                    this.CountDown(), this.schedule(this.CountDown, 1)
                }, t.prototype.CountDown = function() {
                    var e;
                    if (c.RpcComponent.Instance.ServerTime < this._challengeDeadLine) e = this._challengeDeadLine - c.RpcComponent.Instance.ServerTime, this.TimeRichText.string = "elementArena_time".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(e));
                    else {
                        if (!(c.RpcComponent.Instance.ServerTime < this._deadLine)) return this.unschedule(this.CountDown), void l.UIManager.Instance.BackUIPanel();
                        e = this._deadLine - c.RpcComponent.Instance.ServerTime, this.TimeRichText.string = "activity_show_end_time".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(e))
                    }
                }, t.prototype.SetDataList = function() {
                    var e = this;
                    this._sortConfigs = [], this._configData.__Exchangebadge.forEach(function(t) {
                        e._sortConfigs.push(t)
                    }), this._sortConfigs.sort(function(t, n) {
                        if (0 == t.LimitType && 0 != n.LimitType) return -1;
                        if (0 != t.LimitType && 0 == n.LimitType) return 1;
                        if (0 != t.LimitType && 0 != n.LimitType) {
                            var o = e._model.IntMap[t.Id] || 0,
                                r = e._model.IntMap[n.Id] || 0,
                                i = t.LimitCount - o > 0 ? t.LimitCount - o : 0,
                                a = n.LimitCount - r > 0 ? n.LimitCount - r : 0;
                            return 0 == i && a > 0 ? 1 : -1
                        }
                        return -1
                    })
                }, t.prototype.InitList = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._listItemPrefab)), this.SetDataList();
                    var e = this._sortConfigs.length;
                    this.CustomLayout.RenderLayOut(e)
                }, t.prototype.SetChallengeInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, p;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = this._configData.CustomPart.FalseIsCostCount ? this._model.IntValue : this._model.IntArray[3] || 0, t = this._configData.CustomPart.ChallengeCount, n = t - e > 0 ? t - e : 0, this.CountRichText.string = "elementArena_challenge_count".ToUILocale().Fmt(n, t), this.RedDotNode.active = n > 0, this.CountNode.active = c.RpcComponent.Instance.ServerTime <= this._challengeDeadLine, this.ChallengeButton.node.active = c.RpcComponent.Instance.ServerTime <= this._challengeDeadLine, this.WarTokenButton.node.active = this._configData.Common.JumpId > 0, this._configData.Common.JumpId > 0 && !this.WarTokenSprite.spriteFrame ? (o = c.ConfigDataComponent.Instance.GetConfigById(u.ItemGetWay_Config, this._configData.Common.JumpId), r = m.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(d.ActivityType.WarToken, o.PanelInfo[1]), i = c.DataCenter.Instance.ActivityConfigs[r], a = g.UIUtlity.GetIconPath(i.Common.Icon), [4, m.default.LoadActivityTexture(a)]) : [3, 2];
                                case 1:
                                    if (p = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(p), [2];
                                    this._loadAssets.push(p), this.WarTokenSprite.spriteFrame = p, s.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(_.default).Init(n._configData, n._sortConfigs[t])
                    })
                }, t.prototype.ClickRuleButton = function() {
                    var e = {
                        name: "elementArena_rule_main_title".ToUILocale(),
                        titles: ["elementArena_rule_main_title".ToUILocale()],
                        contents: ["elementArena_rule_content".ToUILocale()]
                    };
                    g.UIUtlity.ShowRulePanel(e)
                }, t.prototype.ClickReturnButton = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.ClickChallengeButton = function() {
                    var e = this;
                    if (!m.default.CheckActivityIsEnd(this._configData.Common, !0)) {
                        var t, n = this._configData.CustomPart.FalseIsCostCount ? this._model.IntValue : this._model.IntArray[3] || 0,
                            o = this._configData.CustomPart.ChallengeCount;
                        0 != (o - n > 0 ? o - n : 0) ? (this._model = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this._model.IntArray[2] ? this._targetInfo && this._targetInfo.Info.Uid == this._model.IntArray[2] ? this.ShowTargetPanel() : ((t = new p.Req_Player_GetPlayerDetailInfo).Uid = this._model.IntArray[2], this._model.IntArray[2] < 0 && (t.PlayerType = d.PlayerInfoType.Robot), c.RpcComponent.Instance.Call(t, function(t) {
                            e._targetInfo = t, e.ShowTargetPanel()
                        })) : ((t = new p.Req_Activity_ElementArenaMatchOpponent).ActivityId = this._configData._id, c.RpcComponent.Instance.Call(t, function(t) {
                            var n = new p.Req_Player_GetPlayerDetailInfo;
                            n.Uid = t.Uid, t.Uid < 0 && (n.PlayerType = d.PlayerInfoType.Robot), c.RpcComponent.Instance.Call(n, function(t) {
                                var n;
                                e._targetInfo = t, t && t.Info && ((n = {}).Country = t.Info.Country, n.HeadFrame = t.Info.HeadFrame, n.HeadIcon = t.Info.HeadIcon, n.Level = t.Info.Level, n.Name = t.Info.Name), l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonVSPanel.Path, n)
                            })
                        }))) : g.UIUtlity.ShowFloatingHint("elementArena_cant_match".ToUILocale())
                    }
                }, t.prototype.UpdateTargetInfo = function(e) {
                    this._targetInfo = e
                }, t.prototype.ShowTargetPanel = function() {
                    l.UIManager.Instance.GetUIPanel(y.PanelConfig.ElementArenaEnemyPanel.Path) || l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ElementArenaEnemyPanel.Path, this._configData, this._targetInfo)
                }, t.prototype.ClickShopButton = function() {
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ActivityExchangeShopPanel.Path, this._configData._id, 1)
                }, t.prototype.ClickWarTokenButton = function() {
                    if (this._configData.Common.JumpId) {
                        var e = c.ConfigDataComponent.Instance.GetConfigById(u.ItemGetWay_Config, this._configData.Common.JumpId);
                        if (e) {
                            var t = m.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(d.ActivityType.WarToken, e.PanelInfo[1]);
                            t > 0 && l.UIManager.Instance.ShowUIPanel(y.PanelConfig.WarTokenListPanel.Path, !0, t)
                        }
                    }
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([b(cc.Node)], t.prototype, "ItemContent", void 0), i([b(cc.Button)], t.prototype, "RuleButton", void 0), i([b(cc.RichText)], t.prototype, "TimeRichText", void 0), i([b(h.default)], t.prototype, "CustomLayout", void 0), i([b(cc.Node)], t.prototype, "CountNode", void 0), i([b(cc.RichText)], t.prototype, "CountRichText", void 0), i([b(cc.Button)], t.prototype, "ReturnButton", void 0), i([b(cc.Button)], t.prototype, "ChallengeButton", void 0), i([b(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([b(cc.Button)], t.prototype, "ShopButton", void 0), i([b(cc.Label)], t.prototype, "ShopLabel", void 0), i([b(cc.Button)], t.prototype, "WarTokenButton", void 0), i([b(cc.Sprite)], t.prototype, "WarTokenSprite", void 0), i([b(cc.Label)], t.prototype, "WarTokenLabel", void 0), i([b(cc.Node)], t.prototype, "RedDotNode", void 0), i([v], t)
            }(l.BaseUIFullScreenPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ElementArenaComponent": "ElementArenaComponent"
    }],
    ElementArenaSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "94b7dDI6olOdpvbhSQ0Lkh8", "ElementArenaSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/HeadComponent"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/SeniorArenaSettlementItem"),
            m = e("../Components/SettlementBaseComponent"),
            I = e("../../Channel/ChannelManager"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ReportPartTitleLabel = null, t.MyHeaderNode = null, t.MyNameLabel = null, t.OpponentNameLabel = null, t.OpponentHeaderNode = null, t.BattleReportsContainer = null, t.RewardsPartTitleLabel = null, t.RewardsScrollView = null, t.RewardsContainer = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t._loadedAssets = [], t._rewardData = [], t._TargetInfo = null, t._Reports = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ReportPartTitleLabel.string = "SeniorArenaSettlement_ReportPartTitle".ToUILocale(), this.RewardsPartTitleLabel.string = "reward".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsContainer.children.indexOf(t) && h.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t);
                    var n = t.SettleParams[0];
                    this._TargetInfo = n.TargetInfo, this._rewardData = n.Rewards, this._Reports = t.SettleParams[1], this.SetPlayerInfoView(), this.SetListView(), this.SetRewardsView()
                }, t.prototype.SetPlayerInfoView = function() {
                    this.MyNameLabel.string = d.DataCenter.Instance.GetStringData(c.UserDataKey.RoleName), this.OpponentNameLabel.string = this._TargetInfo.Name, this.SetHeaderView()
                }, t.prototype.SetHeaderView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    return e = a.sent(), this.isValid || l.AssetsManager.Instance.UnloadAsset(e), this._loadedAssets.push(e), t = cc.instantiate(e), (n = t.getComponent(f.default)).SetHeadIcon(d.DataCenter.Instance.GetIntData(c.UserDataKey.HeadIcon)), n.SetHeadFrame(d.DataCenter.Instance.GetIntData(c.UserDataKey.HeadFrame)), n.LevelNode.active = !1, t.parent = this.MyHeaderNode, n.SetLevel(d.DataCenter.Instance.GetIntData(c.UserDataKey.PlayerLevel)), (o = d.DataCenter.Instance.GetStringData(c.UserDataKey.Country)) || (o = I.default.Instance.Localization_Country), o = 0 == d.DataCenter.Instance.GetIntData(c.UserDataKey.CountryShowState) ? o : "", n.SetCountry(o), r = cc.instantiate(e), (i = r.getComponent(f.default)).SetHeadIcon(this._TargetInfo.HeadIcon), i.SetHeadFrame(this._TargetInfo.HeadFrame), i.LevelNode.active = !1, r.parent = this.OpponentHeaderNode, i.SetLevel(this._TargetInfo.Level), i.SetCountry(this._TargetInfo.Country), [2]
                            }
                        })
                    })
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset("Arena/SeniorArenaPrivate/SeniorArenaSettlementItem", cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), t = 0; t < this._Reports.length; t++)(n = cc.instantiate(e)).getComponent(g.default).Init(this._Reports[t], t, !0), this.BattleReportsContainer.addChild(n);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetRewardsView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), this.RewardsScrollView.enabled = this._rewardData.length > 4, t = 0; t < this._rewardData.length; t++)(n = cc.instantiate(e).getComponent(y.ItemComponent)).Init({
                                        ItemId: this._rewardData[t].ItemId,
                                        Count: this._rewardData[t].Count
                                    }, y.ItemComponentType.ItemCommon), n.node.name = this._rewardData[t].ItemId.toString(), n.node.parent = this.RewardsContainer, n.node.y = -20;
                                    return this._rewardData.length > 4 && this.RewardsScrollView.scrollToLeft(), [2]
                            }
                        })
                    })
                }, t.prototype.OnConfirmButtonClicked = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets && (this._loadedAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssets = null)
                }, i([v(cc.Label)], t.prototype, "ReportPartTitleLabel", void 0), i([v(cc.Node)], t.prototype, "MyHeaderNode", void 0), i([v(cc.Label)], t.prototype, "MyNameLabel", void 0), i([v(cc.Label)], t.prototype, "OpponentNameLabel", void 0), i([v(cc.Node)], t.prototype, "OpponentHeaderNode", void 0), i([v(cc.Node)], t.prototype, "BattleReportsContainer", void 0), i([v(cc.Label)], t.prototype, "RewardsPartTitleLabel", void 0), i([v(cc.ScrollView)], t.prototype, "RewardsScrollView", void 0), i([v(cc.Node)], t.prototype, "RewardsContainer", void 0), i([v(cc.Button)], t.prototype, "ConfirmButton", void 0), i([v(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([C], t)
            }(m.default);
        n.default = b, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SeniorArenaSettlementItem": "SeniorArenaSettlementItem",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent"
    }],
    ElementDescItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2793dDMM51D0ZxvFj4j62vg", "ElementDescItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../Panel/ElementPanel"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Icon = null, t.Desc = null, t.ActiveFlag = null, t.ActivityLabel = null, t.SelectBg = null, t.Layout = null, t.Line = null, t._attrMap = new Map, t.MIN_HEIGHT = 351, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._isInit || (this._isInit = !0, this.ActivityLabel.string = "artifact_has_active".ToUILocale()), this._config = e, this.EffectId = e.Id, this.ConfigInfo()
                }, t.prototype.ConfigInfo = function() {
                    this.Title.string = this._config.Id.ToElementEffectName(), this._elementName = ("hero_element_" + this._config.Id).ToUILocale(), this.ElementType = this._config.Type, this.SetIcon()
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._config.Id != p.default.URElementId && this._config.Id != p.default.LRElementId ? [3, 3] : this._qualityTitleAtlas ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("Common/QualityTitle", cc.SpriteAtlas)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._qualityTitleAtlas = e, this._loadAssets.push(e), t.label = 2;
                                case 2:
                                    return this.Icon.spriteFrame = this._qualityTitleAtlas.getSpriteFrame(this._config.Icon), [3, 4];
                                case 3:
                                    100 == this._config.Id ? this.Icon.spriteFrame = u.UIUtlity.COMMON_ATLAS5.getSpriteFrame("element_100") : this.Icon.spriteFrame = u.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this._config.Icon), t.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ConfigDesc = function(e) {
                    this._attrMap.clear(), this.Desc.string = "";
                    for (var t = 0; t < this._config.Effect.length; t++) {
                        for (var n = this._config.Effect[t], o = n.Items[0], r = "", i = 1; i < n.Items.length; i++) {
                            var a = n.Items[i];
                            if (i % 2 == 0) r += o == e ? "<outline color=#000000 width=2><color=#6EEEA7>+" + a / 10 + "%</c></outline>" : "+" + a / 10 + "%", i != n.Items.length - 1 && (r += "  ");
                            else {
                                var s = c.default.GetHeroAttributeName(a);
                                o == e ? (r += "<color=#624E3C>" + s + "</c>", this._attrMap.set(a, n.Items[i + 1])) : r += s
                            }
                        }
                        var l;
                        l = o == e ? "#624E3C" : "#999999", p.default.ElementIdToCoreTag[this.EffectId] ? this.Desc.string += ("element_effect_desc_" + p.default.ElementIdToCoreTag[this.EffectId]).ToUILocale().Fmt(l, o, r) + "<br/>" : this.Desc.string += "element_effect_desc".ToUILocale().Fmt(l, o, this._elementName, r) + "<br/>"
                    }
                    return e > 0 ? (u.UIUtlity.OffSpriteGray(this.Icon), this.ActiveFlag.active = !0, this.SelectBg.node.active = !0, this.Title.node.color = new cc.Color(98, 78, 60), this.Line.active = !0) : (u.UIUtlity.OnSpriteGray(this.Icon), this.ActiveFlag.active = !1, this.SelectBg.node.active = !1, this.Title.node.color = new cc.Color(153, 153, 153), this.Line.active = !1), this.Layout.updateLayout(), this.Layout.node.height >= this.MIN_HEIGHT && (this.node.height = this.Layout.node.height + 30), this._attrMap
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Sprite)], t.prototype, "Icon", void 0), i([f(cc.RichText)], t.prototype, "Desc", void 0), i([f(cc.Node)], t.prototype, "ActiveFlag", void 0), i([f(cc.Label)], t.prototype, "ActivityLabel", void 0), i([f(cc.Sprite)], t.prototype, "SelectBg", void 0), i([f(cc.Layout)], t.prototype, "Layout", void 0), i([f(cc.Node)], t.prototype, "Line", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ElementPanel": "ElementPanel"
    }],
    ElementEffectItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3f462/YL0NM0IBejTf+DIDp", "ElementEffectItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/DataCenter"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Panel/TrialHeroPanel"),
            g = e("../Panel/ActivityHeroTestTowerEntryPanel"),
            m = e("../Panel/ActivitySinglePageGiftPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Border = null, t.Icon = null, t.Name = null, t.BottomNode = null, t.BottomCount = null, t.LeftNode = null, t.LeftCount = null, t.RightNode = null, t.RightCount = null, t.TagNodes = null, t.Tag1 = null, t.Tag2 = null, t.Tag3 = null, t.ElementMap = new Map, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.InitBySid = function(e, t) {
                    if (t != c.MapType.StarLightSecretLand && t != c.MapType.GodLandDuel && t != c.MapType.WarAngel) {
                        for (var n = [], o = 0; o < e.length; o++) {
                            var r = void 0;
                            if (e[o] < 0) switch (t) {
                                case c.MapType.ActivityHeroTry:
                                case c.MapType.ActivityHeroTry2:
                                case c.MapType.ActivityHeroTry3:
                                case c.MapType.ActivityHeroTry4:
                                case c.MapType.ActivityHeroTry5:
                                case c.MapType.ActivityHeroTry6:
                                case c.MapType.ActivityHeroTry7:
                                case c.MapType.ActivityHeroTry8:
                                case c.MapType.ActivityHeroTry9:
                                case c.MapType.ActivityHeroTry10:
                                    r = p.DataCenter.Instance.GetTempData(y.default.TEMP_TRIALUSERHEROES_DATA + e[o])[0];
                                    break;
                                case c.MapType.ActivitySkinTry:
                                case c.MapType.ActivitySkinTry2:
                                case c.MapType.ActivitySkinTry3:
                                case c.MapType.ActivitySkinTry4:
                                    r = p.DataCenter.Instance.GetTempData(m.default.TEMP_SKIN_TRIALUSERHEROES_DATA + e[o])[0];
                                    break;
                                case c.MapType.HeroTestTower1:
                                case c.MapType.HeroTestTower2:
                                case c.MapType.HeroTestTower3:
                                case c.MapType.HeroTestTower4:
                                case c.MapType.HeroTestTower5:
                                case c.MapType.HeroTestTower6:
                                case c.MapType.HeroTestTower7:
                                case c.MapType.HeroTestTower8:
                                case c.MapType.HeroTestTower9:
                                    for (var i = p.DataCenter.Instance.GetTempData(g.default.TEMP_HEROTESTTOWER_HEROSID + t), a = p.DataCenter.Instance.GetTempData(g.default.TEMP_HEROTESTTOWER_HERODATAS + i), s = 0; s < a.length; s++) e[o] == a[s].Sid && (r = a[s]);
                                    break;
                                case c.MapType.HeroPK:
                                    (r = new u.UserHero_Model).HeroId = -e[o], r.StarLevel = 5
                            } else r = p.DataCenter.Instance.GetDataById(u.UserHero_Model, e[o]);
                            n.push({
                                HeroId: r.HeroId,
                                StarLevel: r.StarLevel
                            })
                        }
                        this.DoInitJob(n)
                    }
                }, t.prototype.InitByHeroId = function(e) {
                    this.DoInitJob(e)
                }, t.prototype.DoInitJob = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._elements = [], this.ElementMap.clear(), this._chaosHeroesData = [], this.SPHeroCount = 0, this.URHeroCount = 0, this.LRHeroCount = 0, this._elementAtlas ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("Common/ElementEffect", cc.SpriteAtlas)];
                                case 1:
                                    if (t = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._unloadAssets.push(t), this._elementAtlas = t, i.label = 2;
                                case 2:
                                    for (n = 0; n < e.length; n++) 0 != (o = e[n].HeroId) && ((r = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, o)).ElementType != c.HeroElementType.Chaos ? this._elements.push(r.ElementType) : this._chaosHeroesData.push(e[n]), 2 == r.CoreHero ? this.SPHeroCount += 1 : 3 == r.CoreHero ? this.URHeroCount += 1 : r.CoreHero == c.CoreHeroTag.LR && (this.LRHeroCount += 1));
                                    return this._chaosHeroesData.length > 1 && this._chaosHeroesData.sort(this.SortChaosHero.bind(this)), this.ConfigEffect(), this.CopnfigBorder(), this.ConfigIcon(), [2]
                            }
                        })
                    })
                }, t.prototype.SortChaosHero = function(e, t) {
                    return e.StarLevel < t.StarLevel ? -1 : e.StarLevel > t.StarLevel ? 1 : 0
                }, t.prototype.ConfigEffect = function() {
                    for (var e = this, t = 0; t < this._elements.length; t++) {
                        var n = this._elements[t],
                            o = this.ElementMap.get(n);
                        o ? this.ElementMap.set(n, o + 1) : this.ElementMap.set(n, 1)
                    }
                    if (5 == this._chaosHeroesData.length) this.ElementMap.set(c.HeroElementType.Chaos, 5);
                    else if (this._chaosHeroesData.length > 0) {
                        var r = function(e) {
                                var t = i._chaosHeroesData[e],
                                    n = h.ConfigDataComponent.Instance.GetConfigById(d.HeroStar_Config, t.StarLevel).ChaosExtraAddon[0].Items[0],
                                    o = -1,
                                    r = 0;
                                i.ElementMap.forEach(function(e, t) {
                                    var i = t,
                                        a = e;
                                    i <= n && (o < 0 ? (o = t, r = e) : r < a ? (o = i, r = a) : r == a && (i == c.HeroElementType.Break ? (o = i, r = a) : i == c.HeroElementType.Fight ? o < c.HeroElementType.Break && (o = i, r = a) : o < c.HeroElementType.Break && i < o && (o = i, r = a)))
                                }), -1 == o && (o = n >= c.HeroElementType.Break ? c.HeroElementType.Break : c.HeroElementType.Heart, r = 1);
                                var a = i.ElementMap.get(o);
                                a ? i.ElementMap.set(o, a + 1) : i.ElementMap.set(o, 1)
                            },
                            i = this;
                        for (t = 0; t < this._chaosHeroesData.length; t++) r(t)
                    }
                    5 != this.ElementMap.size ? this.ElementMap.forEach(function(t, n) {
                        switch (n) {
                            case c.HeroElementType.Heart:
                            case c.HeroElementType.Power:
                            case c.HeroElementType.Tech:
                                1 == t && e.ElementMap.delete(n)
                        }
                    }) : this.ElementMap.forEach(function(t, n) {
                        e.ElementMap.set(n, 0)
                    })
                }, t.prototype.CopnfigBorder = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.LRHeroCount > 0 ? [4, this.LoadQualityTitleAtlas()] : [3, 2];
                                case 1:
                                    return t.sent(), this.isValid ? (this.Border.spriteFrame = this._qualityTitleAtlas.getSpriteFrame("lrCircle"), [3, 6]) : [2];
                                case 2:
                                    return this.URHeroCount > 0 ? (e = this.Border, [4, f.UIUtlity.GetCommonAtlas3Sprite("urCircle")]) : [3, 5];
                                case 3:
                                    return e.spriteFrame = t.sent(), this.isValid ? [4, this.LoadQualityTitleAtlas()] : [2];
                                case 4:
                                    return t.sent(), [3, 6];
                                case 5:
                                    this.SPHeroCount > 0 ? this.Border.spriteFrame = f.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spCricle") : this.Border.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("btn_bg"), t.label = 6;
                                case 6:
                                    return this.SetTags(), [2]
                            }
                        })
                    })
                }, t.prototype.SetTags = function() {
                    if (this.Tag1 && !this.Tag2 && !this.Tag3) {
                        this.Tag1.node.active = !1, this.Tag2.node.active = !1, this.Tag3.node.active = !1;
                        var e = 0,
                            t = [];
                        this.LRHeroCount > 0 && (e++, t.push(this._qualityTitleAtlas.getSpriteFrame("elementLR"))), this.URHeroCount > 0 && (e++, t.push(this._qualityTitleAtlas.getSpriteFrame("elementUR"))), this.SPHeroCount > 0 && e++, this.Tag1.node.active = 1 == e || 3 == e, this.Tag2.node.active = 2 == e || 3 == e, this.Tag3.node.active = 2 == e || 3 == e;
                        for (var n = 0, o = 0; o < this.TagNodes.children.length; o++) this.TagNodes.children[o].active && t[n] && (this.TagNodes.children[o].getComponent(cc.Sprite).spriteFrame = t[n], n++)
                    }
                }, t.prototype.LoadQualityTitleAtlas = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._qualityTitleAtlas ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("Common/QualityTitle", cc.SpriteAtlas)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._qualityTitleAtlas = e, t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ConfigIcon = function() {
                    this.BottomNode.active = !1, this.LeftNode.active = !1, this.RightNode.active = !1;
                    var e = [],
                        t = this.ElementMap.size;
                    switch (t) {
                        case 0:
                            return void(this.Icon.spriteFrame = this._elementAtlas.getSpriteFrame("0"));
                        case 1:
                            this.BottomNode.active = !0;
                            break;
                        case 2:
                            this.LeftNode.active = !0, this.RightNode.active = !0;
                            break;
                        case 3:
                            this.BottomNode.active = !0, this.LeftNode.active = !0, this.RightNode.active = !0
                    }
                    for (var n, o, r, i, a, s = this.ElementMap.keys(); !(n = s.next()).done;) {
                        var l = n.value;
                        e.push(l)
                    }
                    switch (t) {
                        case 1:
                            o = (r = e[0]).toString(), this.BottomCount.string = this.ElementMap.get(r).toString();
                            break;
                        case 2:
                            e.sort(this.Sort2Effect.bind(this)), o = (r = e[0]) + "_" + (i = e[1]), this.LeftCount.string = this.ElementMap.get(r).toString(), this.RightCount.string = this.ElementMap.get(i).toString();
                            break;
                        case 3:
                            e.sort(this.Sort3Effect.bind(this)), r = e[0], i = e[1], a = e[2];
                            var c = this.ElementMap.get(r),
                                u = this.ElementMap.get(i),
                                p = this.ElementMap.get(a);
                            u == c ? (o = a + "_" + r + "_" + i, this.BottomCount.string = this.ElementMap.get(a).toString(), this.LeftCount.string = this.ElementMap.get(r).toString(), this.RightCount.string = this.ElementMap.get(i).toString()) : u == p && (o = r + "_" + i + "_" + a, this.BottomCount.string = this.ElementMap.get(r).toString(), this.LeftCount.string = this.ElementMap.get(i).toString(), this.RightCount.string = this.ElementMap.get(a).toString());
                            break;
                        case 5:
                            o = "all"
                    }
                    this.Icon.spriteFrame = this._elementAtlas.getSpriteFrame(o)
                }, t.prototype.Sort2Effect = function(e, t) {
                    var n = this.ElementMap.get(e),
                        o = this.ElementMap.get(t);
                    return n > o ? -1 : n == o && e > t ? -1 : 1
                }, t.prototype.Sort3Effect = function(e, t) {
                    var n = this.ElementMap.get(e),
                        o = this.ElementMap.get(t);
                    return n > o ? 1 : n == o && e > t ? 1 : -1
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([C(cc.Sprite)], t.prototype, "Border", void 0), i([C(cc.Sprite)], t.prototype, "Icon", void 0), i([C(cc.Label)], t.prototype, "Name", void 0), i([C(cc.Node)], t.prototype, "BottomNode", void 0), i([C(cc.Label)], t.prototype, "BottomCount", void 0), i([C(cc.Node)], t.prototype, "LeftNode", void 0), i([C(cc.Label)], t.prototype, "LeftCount", void 0), i([C(cc.Node)], t.prototype, "RightNode", void 0), i([C(cc.Label)], t.prototype, "RightCount", void 0), i([C(cc.Node)], t.prototype, "TagNodes", void 0), i([C(cc.Sprite)], t.prototype, "Tag1", void 0), i([C(cc.Sprite)], t.prototype, "Tag2", void 0), i([C(cc.Sprite)], t.prototype, "Tag3", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ActivityHeroTestTowerEntryPanel": "ActivityHeroTestTowerEntryPanel",
        "../Panel/ActivitySinglePageGiftPanel": "ActivitySinglePageGiftPanel",
        "../Panel/TrialHeroPanel": "TrialHeroPanel"
    }],
    ElementGiftShopPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3405exboY9GuqIMgIZWisoP", "ElementGiftShopPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Channel/ChannelManager"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../../Proto/Static/RpcProto"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp), t.Hint = null, t.Bg = null, t.LblImg = null, t.RewardsNode = null, t.BuyBtn = null, t.BuyLbl = null, t.GetLbl = null, t.NumLbl = null, t.LimitLbl = null, t.DiscountNode = null, t.DiscountLbl = null, t.DescLbl = null, t.SoldOut = null, t.SoldOutLbl = null, t.TimeLbl = null, t.TimeValueLbl = null, t._itemPrefab = null, t._rewards = [], t._giftConfigs = [], t._curGiftConfig = null, t._texture1 = null, t._texture2 = null, t._isFirstIn = !1, t._deadLine = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BuyBtn.node.on("click", this.OnBuyBtnClick, this), l.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(_.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), this.BuyBtn.node.off("click", this.OnBuyBtnClick, this), l.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(_.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), this._itemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    t._itemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetLbl.string = "task_get_score_tag".ToUILocale(), this.TimeLbl.string = "element_timeLbl".ToUILocale(), this.SoldOutLbl.string = "bought".ToUILocale()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this.GetCurGiftConfig(), this._curGiftConfig ? this._curGiftConfig.BannerImage ? (t = this, [4, this.LoadDynamicAsset("MallGiftPackPanel/PNG/BGImages/" + this._curGiftConfig.BannerImage, cc.SpriteFrame)]) : [3, 2] : [3, 5];
                                case 1:
                                    t._texture1 = o.sent(), o.label = 2;
                                case 2:
                                    return this._curGiftConfig.GiftNameImage ? (n = this, [4, this.LoadDynamicAsset(h.GlobalConfigComponent.GetMultilangKey("MultilangGiftName/" + this._curGiftConfig.GiftNameImage), cc.SpriteFrame)]) : [3, 4];
                                case 3:
                                    n._texture2 = o.sent(), o.label = 4;
                                case 4:
                                    this._isFirstIn = !0, o.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function() {
                    var t = this;
                    e.prototype.InitData.call(this), this._giftConfigs = [];
                    var n = h.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, u.LevelParamType.Prophet);
                    n && n.Data && n.Data.forEach(function(e) {
                        var n = p.ConfigDataComponent.Instance.GetConfigById(c.GiftPack_Config, e);
                        n && t._giftConfigs.push(n)
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.GetCurGiftConfig(), this.InitRewardsNode(), this.SetTag(), this.SetButtonLabel(), this.SetRewards(), this.SetRefreshTime(), this.SetImg(), [2]
                        })
                    })
                }, t.prototype.InitRewardsNode = function() {
                    this._rewards.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetRewards = function() {
                    var e = this,
                        t = f.default.Instance.GetGiftBuyCount(this._curGiftConfig.Id);
                    this._curGiftConfig.Items.forEach(function(n, o) {
                        var r = n.Items[0],
                            i = n.Items[1];
                        if (o < 5) {
                            var a = null;
                            if (!e._rewards[o]) {
                                var s = cc.instantiate(e._itemPrefab);
                                s.parent = e.RewardsNode, e._rewards[o] = s
                            }
                            e._rewards[o].active = !0, (a = e._rewards[o].getComponent(g.ItemComponent)).Init({
                                ItemId: r,
                                Count: i
                            }, g.ItemComponentType.ItemCommon), a.SetSelectFlagState(t >= e._curGiftConfig.LimitCount), a.SetCountFontSize(32, 150)
                        }
                    })
                }, t.prototype.SetButtonLabel = function() {
                    var e = f.default.Instance.GetGiftBuyCount(this._curGiftConfig.Id);
                    this.Hint.y = e >= this._curGiftConfig.LimitCount ? -712.36 : -761.18, this.SoldOut.active = e >= this._curGiftConfig.LimitCount, this.BuyBtn.node.active = e < this._curGiftConfig.LimitCount, this.LimitLbl.node.active = e < this._curGiftConfig.LimitCount, this.LimitLbl.string = "element_gift_limit".ToUILocale().Fmt(this._curGiftConfig.LimitCount - e, this._curGiftConfig.LimitCount), this.BuyBtn.node.active && (this.NumLbl.node.parent.active = this._curGiftConfig.Money > 0, this.NumLbl.node.parent.active ? (this.BuyLbl.string = y.default.Instance.CurrencySymbol + y.default.Instance.ExchangeMoney(this._curGiftConfig.Money), this.NumLbl.string = "x" + this._curGiftConfig.VipPoint) : this.BuyLbl.string = "shop_buyFree".ToUILocale())
                }, t.prototype.SetTag = function() {
                    if (null == this._curGiftConfig.Discount || this._curGiftConfig.Discount <= 0) this.DiscountNode.active = !1;
                    else {
                        var e = f.default.Instance.GetGiftBuyCount(this._curGiftConfig.Id);
                        this.DiscountNode.active = e < this._curGiftConfig.LimitCount
                    }
                    this.DiscountLbl.string = this._curGiftConfig.Discount + "%", this.DescLbl.string = "mall_giftPack_superValue".ToUILocale()
                }, t.prototype.SetRefreshTime = function() {
                    this._deadLine = f.default.Instance.GetGiftDeadTime(this._curGiftConfig.Id);
                    var e = this._deadLine - p.RpcComponent.Instance.ServerTime;
                    e > 0 && (this.TimeValueLbl.string = f.default.ActivityTimeLeftFormat(e), this.schedule(this.CountDownTime, 1))
                }, t.prototype.CountDownTime = function() {
                    var e = this._deadLine - p.RpcComponent.Instance.ServerTime;
                    e > 0 ? this.TimeValueLbl.string = f.default.ActivityTimeLeftFormat(e) : (this.TimeValueLbl.string = f.default.ActivityTimeLeftFormat(0), this.unschedule(this.CountDownTime), this.SetRefreshTime())
                }, t.prototype.SetImg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._isFirstIn ? [3, 4] : this._curGiftConfig.BannerImage ? (e = this, [4, this.LoadDynamicAsset("MallGiftPackPanel/PNG/BGImages/" + this._curGiftConfig.BannerImage, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    e._texture1 = n.sent(), n.label = 2;
                                case 2:
                                    return this._curGiftConfig.GiftNameImage ? (t = this, [4, this.LoadDynamicAsset(h.GlobalConfigComponent.GetMultilangKey("MultilangGiftName/" + this._curGiftConfig.GiftNameImage), cc.SpriteFrame)]) : [3, 4];
                                case 3:
                                    t._texture2 = n.sent(), n.label = 4;
                                case 4:
                                    return this._isFirstIn = !1, this._texture1 && (this.Bg.spriteFrame = this._texture1), this._texture2 && (this.LblImg.spriteFrame = this._texture2), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsNode.children.indexOf(t) && I.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.GetCurGiftConfig = function() {
                    for (var e = function(e) {
                            var n = t._giftConfigs[e],
                                o = f.default.Instance.GetGiftBuyCount(n.Id);
                            if (n.UnlockCondition) {
                                var r = t._giftConfigs.findIndex(function(e) {
                                    return e.Id == n.UnlockCondition
                                });
                                if (r > -1 && f.default.Instance.GetGiftBuyCount(t._giftConfigs[r].Id) >= t._giftConfigs[r].LimitCount && o < n.LimitCount) return t._curGiftConfig = n, "break"
                            } else if (o < n.LimitCount) return t._curGiftConfig = n, "break"
                        }, t = this, n = 0; n < this._giftConfigs.length && "break" !== e(n); n++);
                    if (!this._curGiftConfig) {
                        var o = this._giftConfigs.length;
                        this._curGiftConfig = this._giftConfigs[o - 1]
                    }
                }, t.prototype.OnBuyBtnClick = function() {
                    y.default.Instance.Pay(this._curGiftConfig.Id)
                }, t.prototype.onDestroy = function() {
                    this._rewards = null, this.unschedule(this.CountDownTime)
                }, i([b(cc.Node)], t.prototype, "Hint", void 0), i([b(cc.Sprite)], t.prototype, "Bg", void 0), i([b(cc.Sprite)], t.prototype, "LblImg", void 0), i([b(cc.Node)], t.prototype, "RewardsNode", void 0), i([b(cc.Button)], t.prototype, "BuyBtn", void 0), i([b(cc.Label)], t.prototype, "BuyLbl", void 0), i([b(cc.Label)], t.prototype, "GetLbl", void 0), i([b(cc.Label)], t.prototype, "NumLbl", void 0), i([b(cc.Label)], t.prototype, "LimitLbl", void 0), i([b(cc.Node)], t.prototype, "DiscountNode", void 0), i([b(cc.Label)], t.prototype, "DiscountLbl", void 0), i([b(cc.Label)], t.prototype, "DescLbl", void 0), i([b(cc.Node)], t.prototype, "SoldOut", void 0), i([b(cc.Label)], t.prototype, "SoldOutLbl", void 0), i([b(cc.Label)], t.prototype, "TimeLbl", void 0), i([b(cc.Label)], t.prototype, "TimeValueLbl", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ElementPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3d390rgGu5G96UdXfQ0oDSk", "ElementPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/ElementDescItem"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../Consts/Consts"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.Title = null, t.ScrollView = null, t.LayoutNode = null, t.AllAttrBonusTitle = null, t.AllAttrBonus = null, t.RestraintHintTitle = null, t.RestraintHint = null, t.ChaosHint = null, t.ChaosNode = null, t._descItemArr = [], t._allAttriBouns = new Map, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), this._descItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset("FormationPanel/ElementDescItem")]);
                                case 1:
                                    t._descItemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "formation_halo".ToUILocale(), this.ChaosHint.string = "chaos_element_hint".ToUILocale(), this.ConfigItems(), this.RestraintHintTitle.string = "element_restraint_title".ToUILocale(), this.AllAttrBonusTitle.string = "element_effect_bonus_title".ToUILocale();
                    var t = d.default.Instance.IsGameModuleOpen(h.GameModuleType.ChaosSummon);
                    this.ChaosNode.active = t
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._elementMap = t[0], this._spHeroCount = t[1], this._urHeroCount = t[2], this._lrHeroCount = t[3]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.RefreshItems(), this.ScrollView.scrollToTop()
                }, t.prototype.ConfigItems = function() {
                    for (var e = p.ConfigDataComponent.Instance.GetArrayConfig(u.ElementEffect_Config), t = 0; t < e.length; t++) {
                        var n = e[t],
                            o = cc.instantiate(this._descItemPrefab),
                            r = o.getComponent(c.default);
                        r.Init(n), n.Type == h.HeroElementType.Chaos ? (this._descItemArr.splice(0, 0, r), o.setParent(this.LayoutNode), o.setSiblingIndex(0)) : (this._descItemArr.push(r), o.setParent(this.LayoutNode))
                    }
                    var i = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("RepressElementDamageAddon"),
                        a = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("RepressElementHitChanceAddon");
                    this.RestraintHint.string = "element_restraint_hint".ToUILocale().Fmt(i / 10 + "%", a / 10 + "%")
                }, t.prototype.RefreshItems = function() {
                    var e = this;
                    this._allAttriBouns.clear();
                    for (var t = 0; t < this._descItemArr.length; t++) {
                        var o = this._descItemArr[t],
                            r = this._elementMap.get(o.ElementType);
                        o.ElementType == h.HeroElementType.All && (o.EffectId == n.SPElementId ? r = this._spHeroCount : o.EffectId == n.URElementId ? r = this._urHeroCount : o.EffectId == n.LRElementId ? r = this._lrHeroCount : 5 == this._elementMap.size && (r = 5)), r ? o.node.setSiblingIndex(0) : r = 0, o.ConfigDesc(r).forEach(function(t, n) {
                            var o = e._allAttriBouns.get(n);
                            o = null != o ? o : 0, e._allAttriBouns.set(n, o + t)
                        })
                    }
                    var i = "";
                    this._allAttriBouns.forEach(function(e, t) {
                        var n = d.default.GetHeroAttributeName(t);
                        i += "<color=#FFFFFF>" + n + "</c><color=#6EEEA7>+" + e / 10 + "%</c>  "
                    }), this.AllAttrBonus.string = i
                }, t.SPElementId = 99, t.URElementId = 98, t.LRElementId = 97, t.ElementIdToCoreTag = {
                    99: h.CoreHeroTag.SP,
                    98: h.CoreHeroTag.UR,
                    97: h.CoreHeroTag.LR
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([g(cc.Node)], t.prototype, "LayoutNode", void 0), i([g(cc.Label)], t.prototype, "AllAttrBonusTitle", void 0), i([g(cc.RichText)], t.prototype, "AllAttrBonus", void 0), i([g(cc.Label)], t.prototype, "RestraintHintTitle", void 0), i([g(cc.RichText)], t.prototype, "RestraintHint", void 0), i([g(cc.Label)], t.prototype, "ChaosHint", void 0), i([g(cc.Node)], t.prototype, "ChaosNode", void 0), n = i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/ElementDescItem": "ElementDescItem"
    }],
    ElementScriptureListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0cef1mhXDFDeLq7tKK7ohTQ", "ElementScriptureListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u, p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/DataCenter"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./ItemComponent"),
            m = e("../../Components/RpcComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../EZFramework/UIFrame/UIManager"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../../Components/ConfigData/ConfigDataComponent"),
            b = e("./CustomProgressBar"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property;
        (function(e) {
            e[e.Top = 0] = "Top", e[e.Bottom = 1] = "Bottom"
        })(l || (l = {})),
        function(e) {
            e[e.Id = 0] = "Id", e[e.Count = 1] = "Count"
        }(c || (c = {})),
        function(e) {
            e[e.Lock = 0] = "Lock", e[e.NotReceive = 1] = "NotReceive", e[e.PartReceive = 2] = "PartReceive", e[e.ReceiveOver = 3] = "ReceiveOver"
        }(u || (u = {}));
        var A = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.TopProgressNode = null, t.BottomProgressNode = null, t.TopProgress = null, t.BottomProgress = null, t.LevelCountBlue = null, t.LevelCountGrey = null, t.NeedScore = null, t.QuadBlue = null, t.QuadGrey = null, t.ItemGrid = null, t.BtnReceive = null, t.BtnLock = null, t.ReceiveBtnLabel = null, t.LockBtnLabel = null, t.SCORE_INTERVAL = 5, t.MAX_PROGRESS = 5, t._isInit = !0, t._itemPrefab = null, t._itemComponentTable = [], t._userData = null, t._configData = null, t._level = 0, t._maxLevel = 0, t._maxCanReceiveLevel = 0, t._currRewardState = u.Lock, t._unloadAssets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {}, t.prototype.onDisable = function() {}, t.prototype.OnItemClick = function(e, t) {
                null != this.ItemGrid.children.indexOf(t) && I.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.InitUI = function(e, t, n, o) {
                this._configData = e, this._level = t, this._maxLevel = n, this._warTokenTypeId = o, this._isInit && (this._isInit = !1, this.SetStaticLocalText(), this.SetClickEvent()), this.ReloadUserData(), this.LoadWarTokenBaseData(), this.SetRewardState(), this.SetUIStyle(), this.SetRewardItem(), this.Fill(), this.SetLevelCountLabel(), this.SetNeedScore(), this.SetBtnState()
            }, t.prototype.SetStaticLocalText = function() {}, t.prototype.SetClickEvent = function() {
                this.BtnReceive.node.on("click", this.OnBtnReceiveClick, this)
            }, t.prototype.ReloadUserData = function() {
                this._userData = d.DataCenter.Instance.GetDataById(h.WarToken_Model, this._warTokenTypeId)
            }, t.prototype.SetUIStyle = function() {
                this._configData.RequirePoint <= this._userData.Point ? (this.QuadBlue.active = !0, this.QuadGrey.active = !1) : (this.QuadBlue.active = !1, this.QuadGrey.active = !0)
            }, t.prototype.SetRewardItem = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return null != this._itemPrefab ? [3, 2] : [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent)];
                            case 1:
                                if (e = a.sent(), !this.isValid) return C.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._unloadAssets.push(e), this._itemPrefab = e, a.label = 2;
                            case 2:
                                for (t = this._configData.NormalReward.length + this._configData.AdvanceReward.length, n = this._configData.NormalReward.length, o = 0; o < t; o++) null == this._itemComponentTable[o] && (this._itemComponentTable[o] = cc.instantiate(this._itemPrefab).getComponent(g.ItemComponent)), this._itemComponentTable[o].node.parent = this.ItemGrid, r = void 0, i = void 0, o < this._configData.NormalReward.length ? (r = this._configData.NormalReward[o].Items[c.Id], i = this._configData.NormalReward[o].Items[c.Count]) : (r = this._configData.AdvanceReward[o - n].Items[c.Id], i = this._configData.AdvanceReward[o - n].Items[c.Count]), this._itemComponentTable[o].node.name = r.toString(), this._itemComponentTable[o].Init({
                                    ItemId: r,
                                    Count: i
                                }, g.ItemComponentType.ItemCommon), this._itemComponentTable[o].node.active = !0, this._itemComponentTable[o].DisableItemMask(), this._currRewardState == u.PartReceive ? o < this._configData.NormalReward.length ? (this._itemComponentTable[o].SetReceivedTagState(!0), this._itemComponentTable[o].SetLockFlag(!1), this._itemComponentTable[o].EnableItemMask()) : (this._itemComponentTable[o].SetReceivedTagState(!1), this._userData.ActivePrivilege ? this._itemComponentTable[o].SetLockFlag(!1) : this._itemComponentTable[o].SetLockFlag(!0, "lock_yellow")) : this._currRewardState == u.ReceiveOver ? (this._itemComponentTable[o].SetReceivedTagState(!0), this._itemComponentTable[o].SetLockFlag(!1), this._itemComponentTable[o].EnableItemMask()) : (this._itemComponentTable[o].SetReceivedTagState(!1), o >= this._configData.NormalReward.length ? this._userData.ActivePrivilege ? this._itemComponentTable[o].SetLockFlag(!1) : this._itemComponentTable[o].SetLockFlag(!0, "lock_yellow") : this._itemComponentTable[o].SetLockFlag(!1));
                                return [2]
                        }
                    })
                })
            }, t.prototype.Fill = function() {
                if (0 == this._configData.RequirePoint ? this.TopProgressNode.active = !1 : this.TopProgressNode.active = !0, this._level < this._maxLevel ? this.BottomProgressNode.active = !0 : this.BottomProgressNode.active = !1, this._userData.Point <= this._configData.RequirePoint) {
                    var e = Math.max(this.MAX_PROGRESS - (this._configData.RequirePoint - this._userData.Point), 0);
                    this.SetProgress(e, l.Top), this.SetProgress(0, l.Bottom)
                } else e = Math.min(this._userData.Point - this._configData.RequirePoint, this.MAX_PROGRESS), this.SetProgress(this.MAX_PROGRESS, l.Top), this.SetProgress(e, l.Bottom)
            }, t.prototype.SetProgress = function(e, t) {
                var n = e / this.MAX_PROGRESS;
                t == l.Top ? this.TopProgress.progress = n : this.BottomProgress.progress = n
            }, t.prototype.SetLevelCountLabel = function() {
                this.LevelCountBlue.string = this._level.toString(), this.LevelCountGrey.string = this._level.toString()
            }, t.prototype.SetNeedScore = function() {
                this.NeedScore.string = this._configData.RequirePoint.toString()
            }, t.prototype.SetRewardState = function() {
                this._userData.Point < this._configData.RequirePoint ? this._currRewardState = u.Lock : this._userData.RewardIndex >= this._level + 1 ? this._userData.ActivePrivilege ? this._currRewardState = u.ReceiveOver : this._currRewardState = u.PartReceive : this._currRewardState = u.NotReceive
            }, t.prototype.LoadWarTokenBaseData = function() {
                for (var e = v.ConfigDataComponent.Instance.GetConfigById(p.WarTokenType_Config, this._warTokenTypeId), t = e.TaskList.length, n = 0; n < t; n++) {
                    var o = e.TaskList[n],
                        r = v.ConfigDataComponent.Instance.GetConfigById(p.WarTokenTask_Config, o);
                    this._userData.Point >= r.RequirePoint && (this._maxCanReceiveLevel = n)
                }
            }, t.prototype.SetBtnState = function() {
                switch (this.SwitchBtn(!1), this._currRewardState) {
                    case u.Lock:
                        this.SwitchBtn(!0), this.LockBtnLabel.string = "unlock".ToUILocale();
                        break;
                    case u.NotReceive:
                        this.ReceiveBtnLabel.string = "receive".ToUILocale();
                        break;
                    case u.PartReceive:
                        this.ReceiveBtnLabel.string = "receive_continue".ToUILocale();
                        break;
                    case u.ReceiveOver:
                        this.SwitchBtn(!0), this.LockBtnLabel.string = "already_receive".ToUILocale()
                }
            }, t.prototype.SwitchBtn = function(e) {
                e ? (this.BtnReceive.node.active = !1, this.BtnLock.node.active = !0) : (this.BtnReceive.node.active = !0, this.BtnLock.node.active = !1)
            }, t.prototype.OnBtnReceiveClick = function() {
                if (this._currRewardState == u.PartReceive) _.UIManager.Instance.ShowUIPanel(y.PanelConfig.ActivePrivilegePanel.Path, this._warTokenTypeId);
                else {
                    var e = new h.Req_Activity_WarTokenReward;
                    e.Type = this._warTokenTypeId, e.RewardIndex = this._maxCanReceiveLevel + 1, m.RpcComponent.Instance.Call(e, this.ResponseDrawReward.bind(this))
                }
            }, t.prototype.ResponseDrawReward = function(e) {
                I.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                this._unloadAssets.forEach(function(e) {
                    e && C.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([P(cc.Node)], t.prototype, "TopProgressNode", void 0), i([P(cc.Node)], t.prototype, "BottomProgressNode", void 0), i([P(b.default)], t.prototype, "TopProgress", void 0), i([P(b.default)], t.prototype, "BottomProgress", void 0), i([P(cc.Label)], t.prototype, "LevelCountBlue", void 0), i([P(cc.Label)], t.prototype, "LevelCountGrey", void 0), i([P(cc.Label)], t.prototype, "NeedScore", void 0), i([P(cc.Node)], t.prototype, "QuadBlue", void 0), i([P(cc.Node)], t.prototype, "QuadGrey", void 0), i([P(cc.Node)], t.prototype, "ItemGrid", void 0), i([P(cc.Button)], t.prototype, "BtnReceive", void 0), i([P(cc.Button)], t.prototype, "BtnLock", void 0), i([P(cc.Label)], t.prototype, "ReceiveBtnLabel", void 0), i([P(cc.Label)], t.prototype, "LockBtnLabel", void 0), i([w], t)
        }(cc.Component);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomProgressBar": "CustomProgressBar",
        "./ItemComponent": "ItemComponent"
    }],
    ElementScripturePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e1237FQAwZNPKjT8RrMGTCs", "ElementScripturePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/CustomLayout"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../Components/ElementScriptureListItem"),
            C = e("../../Components/DataCenter"),
            v = e("../Components/CustomRichText"),
            b = e("../../Auxiliary/GlobalDefine"),
            S = e("../Components/ItemComponent"),
            w = e("../../../ShareConsts/EnumType"),
            P = e("../../../Consts/GameEventIds"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.Id = 0] = "Id", e[e.Count = 1] = "Count"
        })(l || (l = {})),
        function(e) {
            e[e.Lock = 0] = "Lock", e[e.NotReceive = 1] = "NotReceive", e[e.PartReceive = 2] = "PartReceive", e[e.ReceiveOver = 3] = "ReceiveOver"
        }(c || (c = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new I.UIPanelType(I.UINodeType.Tip), t.Scroll = null, t.Grid = null, t.TipsLabel = null, t.ScoreLabel = null, t.OpenStateLabel = null, t.UnLockHighBtnLabel = null, t.BtnUnLockHighBattleRing = null, t.QuadBlue = null, t.QuadGrey = null, t.LevelCountBlue = null, t.LevelCountGrey = null, t.RewardPreviewItemGrid = null, t.Tittle = null, t.MoudleName = null, t.PreviewLabel = null, t.BtnRule = null, t.BtnGo = null, t.PREVIEW_KEY_INTERVAL = 10, t.LIST_ITEM_PREFAB_PATH = "ClimbTowerPanel/ElementScriptureListItem", t._climbTowerInstance = null, t._isLayoutInit = !1, t._itemComponentTable = [], t.warTokenConfigData = [], t._userData = null, t._topItemKey = 0, t._recordKey = 0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                p.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), p.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.On(P.GameEventIds.ChangeDataDetail.Fmt(y.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.onDisable = function() {
                p.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), p.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.Off(P.GameEventIds.ChangeDataDetail.Fmt(y.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.RewardPreviewItemGrid.children.indexOf(t) && f.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(this.LIST_ITEM_PREFAB_PATH, cc.Prefab), n = this.LoadDynamicAsset(b.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._listItemPrefab = e[0], o._commonItemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.SetStaticLocalText = function() {
                this.TipsLabel.string = "warToken_tower_unlockText".ToUILocale(), this.OpenStateLabel.string = "open_forever".ToUILocale(), this.UnLockHighBtnLabel.string = "climbTower_scripture_unlock_high".ToUILocale(), this.Tittle.string = "climbTower_scripture_tittle".ToUILocale(), this.MoudleName.string = "rewards_preview".ToUILocale(), this.PreviewLabel.string = "rewards_preview".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnUnLockHighBattleRing.node.on("click", this.ShowActivePrivilegePanel, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnGo.node.on("click", this.OnBtnGoClick, this)
            }, t.prototype.OnBtnGoClick = function() {
                I.UIManager.Instance.BackUIPanel()
            }, t.prototype.InitData = function(e) {
                this._climbTowerInstance = e[0]
            }, t.prototype.LoadWarTokenBaseData = function() {
                this.warTokenConfigData = [];
                for (var e = m.ConfigDataComponent.Instance.GetConfigById(g.WarTokenType_Config, w.WarTokenType.ElementTower), t = e.TaskList.length, n = 0; n < t; n++) {
                    var o = e.TaskList[n],
                        r = m.ConfigDataComponent.Instance.GetConfigById(g.WarTokenTask_Config, o);
                    this.warTokenConfigData.push(r)
                }
            }, t.prototype.ReloadUserData = function() {
                this._userData = C.DataCenter.Instance.GetDataById(y.WarToken_Model, w.WarTokenType.ElementTower)
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._recordKey = 0, this.ReloadUserData(), this.RefreshView()
            }, t.prototype.ResetPanelState = function() {
                this.LoadWarTokenBaseData()
            }, t.prototype.RefreshView = function() {
                this.InitCustomLayout(), this.SetCountLabel(), this.SetBtnState()
            }, t.prototype.SetBtnState = function() {
                this._userData.ActivePrivilege ? this.BtnUnLockHighBattleRing.node.active = !1 : this.BtnUnLockHighBattleRing.node.active = !0
            }, t.prototype.SetCountLabel = function() {
                this.ScoreLabel.Init("climbTower_scripture_grandTotal_layer".ToUILocale().Fmt(this._userData.Point))
            }, t.prototype.InitCustomLayout = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._listItemPrefab, !1)), this.RenderLayout(), [2]
                    })
                })
            }, t.prototype.RenderLayout = function() {
                var e = this.warTokenConfigData.length;
                this.Scroll.stopAutoScroll(), this.Grid.RenderLayOut(e, this._userData.RewardIndex), this.IsReDisPlay || f.UIUtlity.AnimationItemsByType1(this.Grid.node.children)
            }, t.prototype.GetWarTokenData = function() {}, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (t == this.Grid) {
                    var o = this.warTokenConfigData.length - 1,
                        r = -1;
                    e.forEach(function(e, t) {
                        var i = n.warTokenConfigData[t],
                            a = e.getComponent(_.default);
                        a.node.name = t.toString(), a.InitUI(i, t, o, 1), r < 0 && (r = t)
                    });
                    var i = this.Grid.node.children[this.Grid.node.children.length - 1].name;
                    this._topItemKey = Number.parseInt(i), this.SetRewardPreviewUI()
                }
            }, t.prototype.SetRewardPreviewUI = function() {
                var e = Math.max(0, this._topItemKey - 1),
                    t = (Math.floor(e / this.PREVIEW_KEY_INTERVAL) + 1) * this.PREVIEW_KEY_INTERVAL;
                this.warTokenConfigData[t].RequirePoint <= this._userData.Point ? (this.QuadBlue.active = !0, this.QuadGrey.active = !1) : (this.QuadBlue.active = !1, this.QuadGrey.active = !0), this.LevelCountBlue.string = t.toString(), this.LevelCountGrey.string = t.toString(), this.SetPrevirwRewardItem(t)
            }, t.prototype.SetPrevirwRewardItem = function(e) {
                if (this._recordKey != e) {
                    this._recordKey = e;
                    for (var t = this.warTokenConfigData[e], n = t.NormalReward.length + t.AdvanceReward.length, o = t.NormalReward.length, r = this.GetRewardState(e), i = 0; i < n; i++) {
                        null == this._itemComponentTable[i] && (this._itemComponentTable[i] = cc.instantiate(this._commonItemPrefab).getComponent(S.ItemComponent)), this._itemComponentTable[i].node.parent = this.RewardPreviewItemGrid;
                        var a = void 0,
                            s = void 0;
                        i < t.NormalReward.length ? (a = t.NormalReward[i].Items[l.Id], s = t.NormalReward[i].Items[l.Count]) : (a = t.AdvanceReward[i - o].Items[l.Id], s = t.AdvanceReward[i - o].Items[l.Count]), this._itemComponentTable[i].node.name = a.toString(), this._itemComponentTable[i].Init({
                            ItemId: a,
                            Count: s
                        }, S.ItemComponentType.ItemCommon), this._itemComponentTable[i].node.active = !0, r == c.PartReceive ? i < t.NormalReward.length ? this._itemComponentTable[i].SetReceivedTagState(!0) : this._itemComponentTable[i].SetReceivedTagState(!1) : r == c.ReceiveOver ? this._itemComponentTable[i].SetReceivedTagState(!0) : this._itemComponentTable[i].SetReceivedTagState(!1), r == c.PartReceive ? i < t.NormalReward.length ? (this._itemComponentTable[i].SetReceivedTagState(!0), this._itemComponentTable[i].SetLockFlag(!1)) : (this._itemComponentTable[i].SetReceivedTagState(!1), this._userData.ActivePrivilege ? this._itemComponentTable[i].SetLockFlag(!1) : this._itemComponentTable[i].SetLockFlag(!0, "lock_yellow")) : r == c.ReceiveOver ? (this._itemComponentTable[i].SetReceivedTagState(!0), this._itemComponentTable[i].SetLockFlag(!1)) : (this._itemComponentTable[i].SetReceivedTagState(!1), i >= t.NormalReward.length ? this._userData.ActivePrivilege ? this._itemComponentTable[i].SetLockFlag(!1) : this._itemComponentTable[i].SetLockFlag(!0, "lock_yellow") : this._itemComponentTable[i].SetLockFlag(!1))
                    }
                }
            }, t.prototype.GetRewardState = function(e) {
                var t = this.warTokenConfigData[e];
                return this._userData.Point < t.RequirePoint ? c.Lock : this._userData.RewardIndex >= e + 1 ? this._userData.ActivePrivilege ? c.ReceiveOver : c.PartReceive : c.NotReceive
            }, t.prototype.ShowActivePrivilegePanel = function() {
                I.UIManager.Instance.ShowUIPanel(b.PanelConfig.ActivePrivilegePanel.Path, w.WarTokenType.ElementTower)
            }, t.prototype.OnBtnRuleClick = function() {
                var e = {
                    name: "climbTower_scripture_tittle".ToUILocale(),
                    titles: ["warToken_tower_subTitle".ToUILocale()],
                    contents: ["warToken_tower_ruleText".ToUILocale()]
                };
                f.UIUtlity.ShowRulePanel(e)
            }, t.prototype.Close = function() {
                this.node.active && this._climbTowerInstance.RegistScrollEvent(), e.prototype.Close.call(this)
            }, i([R(cc.ScrollView)], t.prototype, "Scroll", void 0), i([R(h.default)], t.prototype, "Grid", void 0), i([R(cc.Label)], t.prototype, "TipsLabel", void 0), i([R(v.CustomRichText)], t.prototype, "ScoreLabel", void 0), i([R(cc.Label)], t.prototype, "OpenStateLabel", void 0), i([R(cc.Label)], t.prototype, "UnLockHighBtnLabel", void 0), i([R(cc.Button)], t.prototype, "BtnUnLockHighBattleRing", void 0), i([R(cc.Node)], t.prototype, "QuadBlue", void 0), i([R(cc.Node)], t.prototype, "QuadGrey", void 0), i([R(cc.Label)], t.prototype, "LevelCountBlue", void 0), i([R(cc.Label)], t.prototype, "LevelCountGrey", void 0), i([R(cc.Node)], t.prototype, "RewardPreviewItemGrid", void 0), i([R(cc.Label)], t.prototype, "Tittle", void 0), i([R(cc.Label)], t.prototype, "MoudleName", void 0), i([R(cc.Label)], t.prototype, "PreviewLabel", void 0), i([R(cc.Button)], t.prototype, "BtnRule", void 0), i([R(cc.Button)], t.prototype, "BtnGo", void 0), i([T], t)
        }(u.BaseUIPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/ElementScriptureListItem": "ElementScriptureListItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ElementStrengthenAddItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c249ftYI0REy6wQFCC7y2XX", "ElementStrengthenAddItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./LevelComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelComponent = null, t.ValueLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.LevelComponent.Init(e.Star), this.ValueLabel.string = (e.NotOnValue / 10).ToFixedExact(2) + "%"
                }, i([c(a.LevelComponent)], t.prototype, "LevelComponent", void 0), i([c(cc.Label)], t.prototype, "ValueLabel", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./LevelComponent": "LevelComponent"
    }],
    ElementStrengthenAddListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1b720b5rnBCMamVxjYY7TrH", "ElementStrengthenAddListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../Components/ElementStrengthenAddItem"),
            p = e("../../Components/Components"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Content = null, t._componentArr = [], t._qualityArr = [52], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ClimbTowerPanel/ElementStrengthenAddItem", cc.Prefab)];
                                case 1:
                                    return t._prefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "elementStrengthen_title".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._supressConfigArr = [];
                    for (var n = 5; n <= 12; n++) {
                        var o = p.ConfigDataComponent.Instance.GetConfigById(c.StarPowerSuppress_Config, 100 * this._qualityArr[0] + n);
                        o && this._supressConfigArr.push(o)
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    for (var n = 0; n < this._supressConfigArr.length; n++) {
                        var o = this._componentArr[n];
                        if (!o) {
                            var r = cc.instantiate(this._prefab);
                            o = r.getComponent(u.default), this.Content.addChild(r), this._componentArr[n] = o
                        }
                        o.Init(this._supressConfigArr[n])
                    }
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Node)], t.prototype, "Content", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Components/ElementStrengthenAddItem": "ElementStrengthenAddItem"
    }],
    ElementStrengthenComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a1c87WgSrxHGIdXPifx2Q9I", "ElementStrengthenComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ElementStrengthenParamType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("./TowerLayerItem"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/RpcComponent"),
            m = e("../../../Consts/GameEventIds"),
            I = e("../../RedDot/RedDotDataHandler");
        (function(e) {
            e[e.TestTowerType = 1] = "TestTowerType", e[e.MapType = 2] = "MapType"
        })(l = n.ElementStrengthenParamType || (n.ElementStrengthenParamType = {}));
        var _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.CountLabel = null, t.RedDot = null, t._isInit = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(m.GameEventIds.AddDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), c.Game.EventDispatcher.On(m.GameEventIds.ChangeDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(m.GameEventIds.AddDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), c.Game.EventDispatcher.Off(m.GameEventIds.ChangeDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this)
                }, t.prototype.Init = function(e, t, o, r) {
                    var i;
                    switch (void 0 === o && (o = !0), void 0 === r && (r = !1), t) {
                        case l.TestTowerType:
                            this._testTowerType = e, this._element = n.GetHeroElementTypeByTestTowerType(e);
                            break;
                        case l.MapType:
                            i = this.GetHeroElementTypeByMapType(e), this._element = i[0], this._testTowerType = i[1]
                    }
                    this._isInit || (this._isInit = !0, o && this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)), this.LoadIcon(), this.SetCountLabel(), r && this.SetRedDot()
                }, t.prototype.GetHeroElementTypeByMapType = function(e) {
                    switch (e) {
                        case d.MapType.TowerHeart:
                            return [d.HeroElementType.Heart, h.TestTowerType.Heart];
                        case d.MapType.TowerPower:
                            return [d.HeroElementType.Power, h.TestTowerType.Power];
                        case d.MapType.TowerTech:
                            return [d.HeroElementType.Tech, h.TestTowerType.Tech];
                        case d.MapType.TowerBreak:
                            return [d.HeroElementType.Break, h.TestTowerType.Break];
                        case d.MapType.TowerFight:
                            return [d.HeroElementType.Fight, h.TestTowerType.Fight]
                    }
                }, t.prototype.OnTouchEnd = function() {
                    c.UIManager.Instance.ShowUIPanel(p.PanelConfig.ElementStrengthenInfoPanel.Path, this._element, this._testTowerType)
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return void 0 !== this._atlas ? [3, 2] : (this._atlas = null, [4, c.AssetsManager.Instance.LoadAsset("StarGarrison/PNG/StarGarrison", cc.SpriteAtlas)]);
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._atlas = e, [3, 3]) : (c.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    if (!this._atlas) return [2];
                                    t.label = 3;
                                case 3:
                                    return this.Icon.spriteFrame = this._atlas.getSpriteFrame("" + this._element), [2]
                            }
                        })
                    })
                }, t.prototype.SetCountLabel = function() {
                    var e = this;
                    if (y.DataCenter.Instance.GetIntData(d.UserDataKey.ElementTowerSuppressCompute)) {
                        var t = new u.Req_Map_ElementTowerSuppress;
                        t.Type = this._testTowerType, g.RpcComponent.Instance.Call(t, function(t) {
                            t && t.Suppress ? e.CountLabel.string = "+" + (t.Suppress / 10).ToFixedExact(2) + "%" : e.CountLabel.string = "+0%"
                        })
                    } else {
                        var n = y.DataCenter.Instance.GetArrayData(d.UserDataKey.StarTowerSuppressCurrent),
                            o = y.DataCenter.Instance.GetArrayData(d.UserDataKey.StarTowerSuppressMax);
                        this.CountLabel.string = "+" + (Math.min(n[this._element - 1] || 0, o[this._element - 1] || 0) / 10).ToFixedExact(2) + "%"
                    }
                }, t.prototype.SetRedDot = function() {
                    this.RedDot.active = I.RedDotDataHandler.Instance.RefreshElementStrengthenStateByElement(this._element)
                }, t.prototype.OnUserSimpleDataChange = function(e) {
                    for (var t in e) switch (Number.parseInt(t)) {
                        case d.UserDataKey.ElementTowerSuppressCompute:
                        case d.UserDataKey.StarTowerSuppressCurrent:
                        case d.UserDataKey.StarTowerSuppressMax:
                            return this.SetCountLabel(), void this.SetRedDot()
                    }
                }, t.prototype.onDestroy = function() {
                    c.AssetsManager.Instance.UnloadAsset(this._atlas), this._atlas = null
                }, t.GetHeroElementTypeByTestTowerType = function(e) {
                    switch (e) {
                        case h.TestTowerType.Heart:
                            return d.HeroElementType.Heart;
                        case h.TestTowerType.Power:
                            return d.HeroElementType.Power;
                        case h.TestTowerType.Tech:
                            return d.HeroElementType.Tech;
                        case h.TestTowerType.Break:
                            return d.HeroElementType.Break;
                        case h.TestTowerType.Fight:
                            return d.HeroElementType.Fight
                    }
                }, t.GetElementStrengthenUnlockInfo = function(e, t) {
                    var n;
                    switch (t) {
                        case l.TestTowerType:
                            switch (e) {
                                case h.TestTowerType.Heart:
                                    n = d.GameModuleType.HeartTowerSuppress;
                                    break;
                                case h.TestTowerType.Power:
                                    n = d.GameModuleType.PowerTowerSuppress;
                                    break;
                                case h.TestTowerType.Tech:
                                    n = d.GameModuleType.TechTowerSuppress;
                                    break;
                                case h.TestTowerType.Break:
                                    n = d.GameModuleType.BreakTowerSuppress;
                                    break;
                                case h.TestTowerType.Fight:
                                    n = d.GameModuleType.FightTowerSuppress
                            }
                            break;
                        case l.MapType:
                            switch (e) {
                                case d.MapType.TowerHeart:
                                    n = d.GameModuleType.HeartTowerSuppress;
                                    break;
                                case d.MapType.TowerPower:
                                    n = d.GameModuleType.PowerTowerSuppress;
                                    break;
                                case d.MapType.TowerTech:
                                    n = d.GameModuleType.TechTowerSuppress;
                                    break;
                                case d.MapType.TowerBreak:
                                    n = d.GameModuleType.BreakTowerSuppress;
                                    break;
                                case d.MapType.TowerFight:
                                    n = d.GameModuleType.FightTowerSuppress
                            }
                    }
                    if (!n) return [!1, !1, ""];
                    var o = f.default.Instance.IsGameModuleOpen(n),
                        r = f.default.Instance.IsGameModuleUnlock(n);
                    return [o, r[0], r[1]]
                }, i([v(cc.Sprite)], t.prototype, "Icon", void 0), i([v(cc.Label)], t.prototype, "CountLabel", void 0), i([v(cc.Node)], t.prototype, "RedDot", void 0), n = i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "./TowerLayerItem": "TowerLayerItem"
    }],
    ElementStrengthenInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a574erg24JCZ5ZPNnPXgY1G", "ElementStrengthenInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/AsyncLayout"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../Components/GameModuleGuideManager"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../../Consts/Etc"),
            C = e("../Auxiliary/UIUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Icon = null, t.CountLabel = null, t.DetailButton = null, t.ListTitleLabel = null, t.AddTagLabel = null, t.OldValueLabel = null, t.NewValueLabel = null, t.ArrowNode = null, t.AsyncLayout = null, t.OkButton = null, t.OkButtonLabel = null, t.GrayButton = null, t.GrayButtonLabel = null, t.RedDot = null, t.TipsLabel = null, t._elementGuideGroupIds = [10017, 10018, 10019, 10020, 10021], t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("StarGarrison/PNG/StarGarrison", cc.SpriteAtlas)]).then(function(e) {
                                        t._itemPrefab = e[0], t._iconAtlas = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.OkButton.node.on("click", this.OnOkButtonClick, this), this.Title.string = "elementStrengthen_title".ToUILocale(), this.ListTitleLabel.string = "elementStrengthen_hint1".ToUILocale(), this.AddTagLabel.string = "elementStrengthen_addTag".ToUILocale(), this.GrayButtonLabel.string = this.OkButtonLabel.string = "ChaosTemple_Active".ToUILocale(), this.TipsLabel.string = "elementStrengthen_hint2".ToUILocale(), this.AsyncLayout.Init(this._itemPrefab, this.OnInitializeItem.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._element = t[0], this._testTowerType = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.Icon.spriteFrame = this._iconAtlas.getSpriteFrame("" + this._element), this.SetCurrentAddCount(), this.SetShowHeroData(), this.SetNewCount(), this.AsyncLayout.RenderLayout(this._showHeroConfigArr.length), this.SetRedDot(), this.ShowGameGuid()
                }, t.prototype.SetCurrentAddCount = function(e) {
                    if (e) this.OldValueLabel.string = this.CountLabel.string = "+" + (e / 10).ToFixedExact(2) + "%", this._currentValue = e;
                    else {
                        var t = h.DataCenter.Instance.GetArrayData(g.UserDataKey.StarTowerSuppressCurrent),
                            n = h.DataCenter.Instance.GetArrayData(g.UserDataKey.StarTowerSuppressMax);
                        this._currentValue = Math.min(t[this._element - 1] || 0, n[this._element - 1] || 0), this.OldValueLabel.string = this.CountLabel.string = "+" + (this._currentValue / 10).ToFixedExact(2) + "%"
                    }
                }, t.prototype.SetShowHeroData = function() {
                    var e = this;
                    this._showHeroConfigArr = [];
                    var t = this._element;
                    h.ConfigDataComponent.Instance.GetArrayConfig(u.HeroBase_Config).forEach(function(n) {
                        n.ElementType == t && f.default.IsHeroShownAvailable(n) && n.Quality && n.Quality >= 52 && e._showHeroConfigArr.push(n)
                    });
                    var n = this._showHeroConfigArr.map(function(e) {
                        return e.Id
                    });
                    this._showHeroModelMap = new Map, h.DataCenter.Instance.GetDataList(c.UserHero_Model).forEach(function(t) {
                        n.includes(t.HeroId) && (e._showHeroModelMap.has(t.HeroId) ? e._showHeroModelMap.get(t.HeroId).StarLevel < t.StarLevel && e._showHeroModelMap.set(t.HeroId, t) : e._showHeroModelMap.set(t.HeroId, t))
                    }), this._showHeroConfigArr.sort(function(t, n) {
                        var o = e._showHeroModelMap.get(t.Id),
                            r = e._showHeroModelMap.get(n.Id);
                        return !o && r ? 1 : o && !r ? -1 : o && r ? o.StarLevel < r.StarLevel ? 1 : o.StarLevel > r.StarLevel ? -1 : (t.Id, void n.Id) : t.Id - n.Id
                    })
                }, t.prototype.SetNewCount = function() {
                    var e = 0;
                    this._showHeroModelMap.forEach(function(t) {
                        var n = h.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, t.HeroId);
                        if (n.Quality) {
                            var o = h.ConfigDataComponent.Instance.GetConfigById(u.StarPowerSuppress_Config, 100 * n.Quality + t.StarLevel);
                            o && (e += o.NotOnValue)
                        }
                    }), this._newValue = e, e > this._currentValue ? (this.NewValueLabel.node.active = !0, this.ArrowNode.active = !0, this.NewValueLabel.string = "+" + (e / 10).ToFixedExact(2) + "%") : (this.NewValueLabel.node.active = !1, this.ArrowNode.active = !1), this.SetBtnState()
                }, t.prototype.SetBtnState = function() {
                    this._currentValue >= this._newValue ? (this.OkButton.node.active = !1, this.GrayButton.node.active = !0) : (this.OkButton.node.active = !0, this.GrayButton.node.active = !1)
                }, t.prototype.SetRedDot = function() {
                    this.RedDot.active = this._newValue > this._currentValue
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(y.ItemComponent);
                    e.name = this._showHeroConfigArr[t].Id.toString();
                    var o = this._showHeroModelMap.get(this._showHeroConfigArr[t].Id);
                    o ? (C.UIUtlity.OffNodeGray(e), n.Init(o, y.ItemComponentType.HeroInfo)) : (C.UIUtlity.OnNodeGray(e), n.Init({
                        ItemId: this._showHeroConfigArr[t].Id
                    }, y.ItemComponentType.HeroInfo))
                }, t.prototype.OnDetailButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ElementStrengthenAddListPanel.Path)
                }, t.prototype.OnOkButtonClick = function() {
                    var e = this;
                    if (!(this._currentValue >= this._newValue)) {
                        var t = new c.Req_Map_ElementTowerSuppress;
                        t.Type = this._testTowerType, t.CountMax = 1, h.RpcComponent.Instance.Call(t, function(t) {
                            e.SetCurrentAddCount(t.Suppress), e.SetNewCount(), e.SetRedDot()
                        })
                    }
                }, t.prototype.OnItemClick = function(e) {
                    e && !this._showHeroModelMap.has(e) && l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemGetWayPanel.Path, e + _.Etc.HeroCardPrefix)
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = m.default.Instance.GetCurrentGroupId(this._elementGuideGroupIds);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = h.ConfigDataComponent.Instance.GetConfigById(u.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 53:
                                            m.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Sprite)], t.prototype, "Icon", void 0), i([S(cc.Label)], t.prototype, "CountLabel", void 0), i([S(cc.Button)], t.prototype, "DetailButton", void 0), i([S(cc.Label)], t.prototype, "ListTitleLabel", void 0), i([S(cc.Label)], t.prototype, "AddTagLabel", void 0), i([S(cc.Label)], t.prototype, "OldValueLabel", void 0), i([S(cc.Label)], t.prototype, "NewValueLabel", void 0), i([S(cc.Node)], t.prototype, "ArrowNode", void 0), i([S(p.default)], t.prototype, "AsyncLayout", void 0), i([S(cc.Button)], t.prototype, "OkButton", void 0), i([S(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([S(cc.Button)], t.prototype, "GrayButton", void 0), i([S(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([S(cc.Node)], t.prototype, "RedDot", void 0), i([S(cc.Label)], t.prototype, "TipsLabel", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ElementSummonPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "33f36K5S7JAKLqnoqynbypM", "ElementSummonPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.OracleDrawHeroType = void 0;
        var l, c, u = e("../../../EZFramework/UIFrame/UIManager"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../Util/AppUtil"),
            f = e("../Components/CustomRichText"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/Components"),
            _ = e("../../Components/DataCenter"),
            C = e("../Components/CurrencyBarItem"),
            v = e("../../Components/RpcComponent"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../../../EZFramework/EZFramework"),
            A = e("../../RedDot/RedDotManager"),
            T = e("../Panel/DrawAgainRewardsPanel"),
            R = e("../Panel/SummonRatePanel"),
            L = e("../../../ShareConsts/EnumType"),
            k = e("../../../Consts/Consts"),
            O = e("../../Auxiliary/GameRecord"),
            M = e("../Components/SectorProgressBar"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property;
        (function(e) {
            e[e.ShopMoney = 0] = "ShopMoney", e[e.HeroDisplace = 1] = "HeroDisplace", e[e.Ticket = 2] = "Ticket"
        })(l || (l = {})),
        function(e) {
            e[e.None = 0] = "None", e[e.Heart = 1] = "Heart", e[e.Power = 2] = "Power", e[e.Tech = 3] = "Tech", e[e.Other = 4] = "Other"
        }(c = n.OracleDrawHeroType || (n.OracleDrawHeroType = {}));
        var E = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.BtnGift = null, t.GiftBtnLabel = null, t.BtnShop = null, t.ShopBtnLabel = null, t.BtnHeroDisplace = null, t.HeroDisplaceBtnLabel = null, t.BtnStatue = null, t.TipsLabel = null, t.ElementToggleContainer = null, t.ElementToggles = [], t.Totems = [], t.TalkBubbleContent = null, t.BtnRate = null, t.PageAnimLeft = null, t.PageAnimRight = null, t.PageAnimSummon = null, t.ToggleSelectEffect = null, t.RateBtnLabel = null, t.SummonButtonOne = null, t.SummonButtonLabelOne = null, t.SummonCurrencyBarOne = null, t.SummonButtonTen = null, t.SummonButtonLabelTen = null, t.SummonCurrencyBarTen = null, t.GiftPackageButton = null, t.GiftPackageButtonLabel = null, t.DeskNode = null, t.CrystalEngeryProgressBar = null, t._currHeroElement = c.None, t._summonConfig = null, t._summonTenConfig = null, t._crystalConfig = null, t._isBusy = !1, t._isPlayingAnimation = !1, t._skelonPrefab = null, t._loadAssets = [], t.HeroAvatarContainer = null, t._avatarPrefab = null, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                P.EZLog.Log("ElementSummonPage onEnable"), b.Game.EventDispatcher.On(S.EventKeys.EVENT_DRAW_AGAIN_REWARDS_PANEL_CLOSE, this.OnRewardsPanelClose, this)
            }, t.prototype.onDisable = function() {
                P.EZLog.Log("ElementSummonPage onDisable"), b.Game.EventDispatcher.Off(S.EventKeys.EVENT_DRAW_AGAIN_REWARDS_PANEL_CLOSE, this.OnRewardsPanelClose), this.BindRedDotUI()
            }, t.prototype.OnRewardsPanelClose = function() {
                this.SetCrystalEngeryCount(), this.ShowTotemByElementType()
            }, t.prototype.DisPlay = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return this._isUIInit ? [3, 3] : (this._isUIInit = !0, this.InitUI(), [4, this.LoadEffectAssets()]);
                            case 1:
                                return e.sent(), this.isValid ? (this.AdjustDeskSize(), this.ResetPanelState(), this.ResetToggle(), [4, this.LoadTitleAvatar()]) : [2];
                            case 2:
                                if (e.sent(), !this.isValid) return [2];
                                e.label = 3;
                            case 3:
                                return this.ResetAnim(), this.ShowTotemByElementType(), this.BindRedDotUI(), this.InitCurrencyBar(), this.SetUI(), this.ShowBtnRate(), this.SetCrystalEngeryCount(), this.scheduleOnce(function() {
                                    O.default.SetItem(O.GameRecordDefine.ElementSummonDailyRedDot, I.RpcComponent.Instance.ServerTime)
                                }, 0), [2]
                        }
                    })
                })
            }, t.prototype.AdjustDeskSize = function() {
                var e = this.DeskNode.y + this.node.height / 2;
                this.DeskNode.height < e && (this.DeskNode.height = e)
            }, t.prototype.LoadEffectAssets = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e = b.AssetsManager.Instance.LoadAsset("ElementSummonPanel/Effect/BookPage/UI_Effect_shuxingzhaohuan_fanye", sp.SkeletonData), t = b.AssetsManager.Instance.LoadAsset("ElementSummonPanel/Effect/Summon/UI_Effect_shuxingzhaohuan_zhaohuan", sp.SkeletonData), [4, Promise.all([e, t]).then(function(e) {
                                    n = e[0], o = e[1]
                                })];
                            case 1:
                                return r.sent(), this.isValid ? (this._loadAssets.push(n), this._loadAssets.push(o), this.PageAnimLeft.skeletonData = n, this.PageAnimRight.skeletonData = n, this.PageAnimSummon.skeletonData = o, [2]) : (b.AssetsManager.Instance.UnloadAsset(n), b.AssetsManager.Instance.UnloadAsset(o), [2])
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var e = this.node.addComponent(cc.Widget);
                e.isAlignTop = !0, e.isAlignBottom = !0, this.InitAnimEvent(), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.ResetPanelState = function() {
                this._currHeroElement = c.None, this.LoadBaseConfig()
            }, t.prototype.InitAnimEvent = function() {
                var e = this;
                this.PageAnimLeft.setCompleteListener(function() {
                    e.ShowTotemByElementType(), e.SetElementToggleState(!0), e.BtnRate.node.active = !0, e._isPlayingAnimation = !1
                }), this.PageAnimRight.setCompleteListener(function() {
                    e.ShowTotemByElementType(), e.SetElementToggleState(!0), e.BtnRate.node.active = !0, e._isPlayingAnimation = !1
                }), this.PageAnimSummon.setCompleteListener(function() {
                    e.BtnRate.node.active = !0, e.PageAnimSummon.node.active = !1, e.BtnStatue.interactable = !0
                })
            }, t.prototype.SetStaticLocalText = function() {
                this.GiftBtnLabel.string = L.SubscribePrivilegeType.Summon.ToSubscribePrivilegeName(), this.ShopBtnLabel.string = "oracleDraw_shop".ToUILocale(), this.HeroDisplaceBtnLabel.string = "oracleDraw_heroDisplace".ToUILocale(), this.CrystalEngeryProgressBar.SetName("oracleDraw_crystalDraw".ToUILocale()), this.TipsLabel.Init("oracleDraw_tips".ToUILocale()), this.RateBtnLabel.string = "showRate".ToUILocale(), this.SummonButtonLabelOne.string = "summon_times".ToUILocale().Fmt("1"), this.SummonButtonLabelTen.string = "summon_times".ToUILocale().Fmt("10"), this.GiftPackageButtonLabel.string = "elementSummon_giftPackage".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnGift.node.on("click", this.OnBtnGiftClick, this), this.BtnShop.node.on("click", this.OnBtnShopClick, this), this.BtnHeroDisplace.node.on("click", this.OnBtnHeroDisplaceClick, this), this.BtnStatue.node.on("click", this.OnBtnStatueClick, this), this.BtnRate.node.on("click", this.OnBtnRateClick, this), this.SummonButtonOne.node.on("click", this.OnBtnSummonClick, this), this.SummonButtonTen.node.on("click", this.OnBtnSummonTenClick, this);
                for (var e = 0; e < this.ElementToggles.length; e++) this.ElementToggles[e].node.on("click", this.OnElementToggleClick, this);
                this.GiftPackageButton.node.on("click", this.OnGiftPackageButtonClicked, this)
            }, t.prototype.LoadTitleAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return P.EZLog.Log("ElementSummonPage LoadTitleAvatar"), this.HeroAvatarContainer.destroyAllChildren(), e = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_ElementSummon_HeroId"), t = g.ConfigDataComponent.Instance.GetConfigById(m.HeroBase_Config, e), this._avatarPrefab ? [3, 2] : (n = this, [4, P.AssetsManager.Instance.LoadAsset(t.UIAvatar + "/Avatar")]);
                            case 1:
                                if (n._avatarPrefab = r.sent(), !this.isValid) return P.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), [2];
                                r.label = 2;
                            case 2:
                                return (o = cc.instantiate(this._avatarPrefab)).setParent(this.HeroAvatarContainer), w.default.Instance.SetHeroAvatarSkin(o, t.Id, t.StarLevel), this._avatarAlphaTween && this._avatarAlphaTween.stop(), o.opacity = 20, this._avatarAlphaTween = cc.tween(o).to(.25, {
                                    opacity: 255
                                }, {
                                    easing: "cubicIn"
                                }).start(), [2]
                        }
                    })
                })
            }, t.prototype.OnGiftPackageButtonClicked = function() {
                u.UIManager.Instance.ShowUIPanel(p.PanelConfig.ElementGiftShopPanel.Path)
            }, t.prototype.LoadBaseConfig = function() {
                this._summonConfig = g.ConfigDataComponent.Instance.GetConfigById(m.CardProphetSummon_Config, L.ProphetSummonType.Prophet), this._summonTenConfig = g.ConfigDataComponent.Instance.GetConfigById(m.CardProphetSummon_Config, L.ProphetSummonType.Prophet10), this._crystalConfig = g.ConfigDataComponent.Instance.GetConfigById(m.CardProphetSummon_Config, L.ProphetSummonType.Crystal)
            }, t.prototype.BindRedDotUI = function() {
                A.RedDotManager.Instance.Bind(this.BtnStatue.node, A.RedDotManager.Instance.RedDot.CrystalSummonBtnNode), A.RedDotManager.Instance.Bind(this.SummonButtonTen.node, A.RedDotManager.Instance.RedDot.OracleSummonTenBtnNode), A.RedDotManager.Instance.Bind(this.SummonButtonOne.node, A.RedDotManager.Instance.RedDot.OracleSummonBtnNode), A.RedDotManager.Instance.Bind(this.BtnShop.node, A.RedDotManager.Instance.RedDot.ElementSummonShopNode), A.RedDotManager.Instance.RefreshRedDotNode(A.RedDotManager.Instance.RedDot.CrystalSummonBtnNode), A.RedDotManager.Instance.RefreshRedDotNode(A.RedDotManager.Instance.RedDot.OracleSummonTenBtnNode), A.RedDotManager.Instance.RefreshRedDotNode(A.RedDotManager.Instance.RedDot.OracleSummonBtnNode), A.RedDotManager.Instance.RefreshRedDotNode(A.RedDotManager.Instance.RedDot.ElementSummonShopNode)
            }, t.prototype.InitCurrencyBar = function() {
                this.SummonCurrencyBarOne.Init(this._summonConfig.CurrencyId, !1, this._summonConfig.BaseCurrencyCount);
                var e = _.DataCenter.Instance.IsItemEnough(this._summonConfig.CurrencyId, this._summonConfig.BaseCurrencyCount);
                this.SummonCurrencyBarOne.SetFixedColor(e ? cc.Color.WHITE : cc.Color.RED), this.SummonCurrencyBarTen.Init(this._summonTenConfig.CurrencyId, !1, this._summonTenConfig.BaseCurrencyCount);
                var t = _.DataCenter.Instance.IsItemEnough(this._summonTenConfig.CurrencyId, this._summonTenConfig.BaseCurrencyCount);
                this.SummonCurrencyBarTen.SetFixedColor(t ? cc.Color.WHITE : cc.Color.RED)
            }, t.prototype.ResetAnim = function() {
                this._isPlayingAnimation = !1, this.PageAnimLeft.node.active = !1, this.PageAnimRight.node.active = !1, this.PageAnimSummon.node.active = !1
            }, t.prototype.OnElementToggleClick = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return t = h.AppUtil.ToInt(e.target.name), this._currHeroElement == t ? [2] : this._isPlayingAnimation ? [2] : null != this._skelonPrefab ? [3, 2] : (n = this, [4, P.AssetsManager.Instance.LoadAsset("ElementSummonPanel/Effect/ToggleSelect/UI_Effect_shuxingzhaohuan_anniu", sp.SkeletonData)]);
                            case 1:
                                if (n._skelonPrefab = r.sent(), !this.isValid) return P.AssetsManager.Instance.UnloadAsset(this._skelonPrefab), [2];
                                this.ToggleSelectEffect.skeletonData = this._skelonPrefab, r.label = 2;
                            case 2:
                                return this.ToggleSelectEffect.node.setParent(e.target), this.ToggleSelectEffect.setAnimation(0, "Ani_UI_Effect_shuxingzhaohuan_anniu", !0), o = t - this._currHeroElement, this._currHeroElement = t, this.PlayPageAnimation(o), this.SetUI(), [2]
                        }
                    })
                })
            }, t.prototype.SetElementToggleState = function(e) {
                for (var t = 0; t < this.ElementToggles.length; t++) this.ElementToggles[t].interactable = e
            }, t.prototype.PlayPageAnimation = function(e) {
                this._isPlayingAnimation = !0, this.SetElementToggleState(!1), this.BtnRate.node.active = !1, e > 0 ? (e > 1 && this.HideAllTotem(), this.PageAnimLeft.node.active = !0, this.PageAnimRight.node.active = !1, this.PageAnimLeft.setAnimation(0, n.PAGE_ANIMATION_NAMES_L[e - 1], !1)) : (this.HideAllTotem(), this.PageAnimLeft.node.active = !1, this.PageAnimRight.node.active = !0, this.PageAnimRight.setAnimation(0, n.PAGE_ANIMATION_NAMES_R[-1 * e - 1], !1))
            }, t.prototype.ResetToggle = function() {
                var e = this;
                this.ElementToggleContainer.allowSwitchOff = !0;
                for (var t = 0; t < this.ElementToggles.length; t++) this.ElementToggles[t].interactable = !0, this.ElementToggles[t].isChecked = !1;
                setTimeout(function() {
                    e.ElementToggleContainer.allowSwitchOff = !1
                }, 1e3 * cc.director.getDeltaTime())
            }, t.prototype.SetUI = function() {
                this.ShowTalkContentByElementType()
            }, t.prototype.ShowBtnRate = function() {
                this._currHeroElement == c.None ? this.BtnRate.node.active = !1 : this.BtnRate.node.active = !0
            }, t.prototype.ShowTotemByElementType = function() {
                this.HideAllTotem(), this._currHeroElement != c.None && (this.Totems[this._currHeroElement - 1].active = !0)
            }, t.prototype.HideCurrTotem = function() {
                this.Totems[this._currHeroElement - 1].active = !1
            }, t.prototype.HideAllTotem = function() {
                for (var e = 0; e < this.Totems.length; e++) this.Totems[e].active = !1
            }, t.prototype.ShowTalkContentByElementType = function() {
                this.TalkBubbleContent.string = ("oracleDraw_girlTalk_" + this._currHeroElement).ToUILocale(), this.TalkBubbleContent.string.length <= Math.floor(this.TalkBubbleContent.node.width / this.TalkBubbleContent.fontSize) ? this.TalkBubbleContent.horizontalAlign = cc.Label.HorizontalAlign.CENTER : this.TalkBubbleContent.horizontalAlign = cc.Label.HorizontalAlign.LEFT
            }, t.prototype.SetCrystalEngeryCount = function() {
                var e = _.DataCenter.Instance.GetItemCount(this._crystalConfig.CurrencyId),
                    t = this._crystalConfig.BaseCurrencyCount;
                this.CrystalEngeryProgressBar.SetValue(e, t)
            }, t.prototype.IsItemCountEnough = function(e, t) {
                return _.DataCenter.Instance.IsItemEnough(e, t)
            }, t.prototype.OnBtnGiftClick = function() {
                b.UIManager.Instance.ShowUIPanel(p.PanelConfig.MallNewPanel.Path, [k.MallPageType.Privilege, k.GiftPackType.SubscribePrivilege])
            }, t.prototype.OnBtnShopClick = function() {
                u.UIManager.Instance.ShowUIPanel(p.PanelConfig.OracleShopPanel.Path), O.default.SetItem(O.GameRecordDefine.ElementSummonShopRedDot, v.RpcComponent.Instance.ServerTime), A.RedDotManager.Instance.RedDot.ElementSummonShopNode.NeedRefresh = !0
            }, t.prototype.OnBtnHeroDisplaceClick = function() {
                u.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroRandomReplacePanel.Path)
            }, t.prototype.OnBtnStatueClick = function() {
                this._isBusy || u.UIManager.Instance.ShowUIPanel(p.PanelConfig.OracleExchangePanel.Path)
            }, t.prototype.CheckSummonValid = function(e) {
                if (this._isBusy || this._isPlayingAnimation) return !1;
                if (this._currHeroElement == c.None) return d.UIUtlity.ShowFloatingHint("oracleDraw_unknow_element".ToUILocale()), !1;
                var t = this._summonConfig.CurrencyId.ToItemName();
                if (!w.default.Instance.IsCanGetNewHero(e)) {
                    var n = w.default.Instance.GetHeroCountLimit(),
                        o = "drawCard_heroCount_limit".ToUILocale().Fmt(n);
                    return d.UIUtlity.ShowHintPanel("", o, "", null, "go_to_treat".ToUILocale(), function() {
                        b.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroPalacePanel.Path, 1)
                    }), !1
                }
                return !!this.IsItemCountEnough(this._summonConfig.CurrencyId, e) || (d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t)), u.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, this._summonConfig.CurrencyId), !1)
            }, t.prototype.OnBtnSummonClick = function() {
                var e = this._currHeroElement == c.Other ? this._summonConfig.AdvCurrencyCount : this._summonConfig.BaseCurrencyCount;
                this.CheckSummonValid(e) && (this._currentSummonType = L.ProphetSummonType.Prophet, this.RequestSummon(L.ProphetSummonType.Prophet))
            }, t.prototype.OnBtnSummonTenClick = function() {
                var e = this._currHeroElement == c.Other ? this._summonTenConfig.AdvCurrencyCount : this._summonTenConfig.BaseCurrencyCount;
                this.CheckSummonValid(e) && (this._currentSummonType = L.ProphetSummonType.Prophet10, this.RequestSummon(L.ProphetSummonType.Prophet10))
            }, t.prototype.RequestSummon = function(e) {
                this._isBusy = !0;
                var t = new y.Req_Card_ProphetSummon;
                t.Type = e, t.ElementType = this._currHeroElement, v.RpcComponent.Instance.Call(t, this.ResponseSummonSuccess.bind(this), this.ResponseSummonFailed.bind(this))
            }, t.prototype.ResponseSummonSuccess = function(e) {
                var t = this;
                null != this && (this.HideCurrTotem(), this.SetElementToggleState(!1), this.BtnRate.node.active = !1, this.BtnStatue.interactable = !1, this.PageAnimSummon.node.active = !0, this.PageAnimSummon.setAnimation(0, "Ani_UI_Effect_shuxingzhaohuan_zhaohuan", !1), setTimeout(function() {
                    var n;
                    n = t._currentSummonType == L.ProphetSummonType.Prophet ? t._currHeroElement == c.Other ? t._summonConfig.AdvCurrencyCount : t._summonConfig.BaseCurrencyCount : t._currHeroElement == c.Other ? t._summonTenConfig.AdvCurrencyCount : t._summonTenConfig.BaseCurrencyCount, t.SetElementToggleState(!0), d.UIUtlity.ShwDrawAgainlRewardsPanel(e.Rewards, L.CommonItemId.OracleDrawItemId, n, T.DrawAgainRewardsPanelType.OracleSummon, t._currHeroElement), setTimeout(function() {
                        t._isBusy = !1
                    }, 500), w.default.Instance.HasCoreHeroInRewards(e.Rewards) && P.AudioManager.Instance.PlayEffect(w.default.Instance.GetAudioRandomNumByType(k.RandomAudioType.GetCoreHero))
                }, cc.director.getDeltaTime() * n.ANIM_EVENT_DELAY_TIME))
            }, t.prototype.ResponseSummonFailed = function() {
                null != this && (P.EZLog.Log("\u8bf7\u6c42\u5931\u8d25"), this._isBusy = !1)
            }, t.prototype.OnBtnRateClick = function() {
                u.UIManager.Instance.ShowUIPanel(p.PanelConfig.SummonRatePanel.Path, R.RatePanelType.Multi, this._currHeroElement)
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                this._skelonPrefab && P.AssetsManager.Instance.UnloadAsset(this._skelonPrefab), this._avatarPrefab && P.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), this._avatarAlphaTween && this._avatarAlphaTween.stop(), this._loadAssets.forEach(function(e) {
                    b.AssetsManager.Instance.UnloadAsset(e)
                })
            }, t.ANIM_EVENT_DELAY_TIME = 4e4, t.PAGE_ANIMATION_NAMES_L = ["Ani_UI_shuxingzhaohuan_fanye_L1", "Ani_UI_shuxingzhaohuan_fanye_L2", "Ani_UI_shuxingzhaohuan_fanye_L3", "Ani_UI_shuxingzhaohuan_fanye_L4"], t.PAGE_ANIMATION_NAMES_R = ["Ani_UI_shuxingzhaohuan_fanye_R1", "Ani_UI_shuxingzhaohuan_fanye_R2", "Ani_UI_shuxingzhaohuan_fanye_R3"], i([N(cc.Button)], t.prototype, "BtnGift", void 0), i([N(cc.Label)], t.prototype, "GiftBtnLabel", void 0), i([N(cc.Button)], t.prototype, "BtnShop", void 0), i([N(cc.Label)], t.prototype, "ShopBtnLabel", void 0), i([N(cc.Button)], t.prototype, "BtnHeroDisplace", void 0), i([N(cc.Label)], t.prototype, "HeroDisplaceBtnLabel", void 0), i([N(cc.Button)], t.prototype, "BtnStatue", void 0), i([N(f.CustomRichText)], t.prototype, "TipsLabel", void 0), i([N(cc.ToggleContainer)], t.prototype, "ElementToggleContainer", void 0), i([N(cc.Toggle)], t.prototype, "ElementToggles", void 0), i([N(cc.Node)], t.prototype, "Totems", void 0), i([N(cc.Label)], t.prototype, "TalkBubbleContent", void 0), i([N(cc.Button)], t.prototype, "BtnRate", void 0), i([N(sp.Skeleton)], t.prototype, "PageAnimLeft", void 0), i([N(sp.Skeleton)], t.prototype, "PageAnimRight", void 0), i([N(sp.Skeleton)], t.prototype, "PageAnimSummon", void 0), i([N(sp.Skeleton)], t.prototype, "ToggleSelectEffect", void 0), i([N(cc.Label)], t.prototype, "RateBtnLabel", void 0), i([N(cc.Button)], t.prototype, "SummonButtonOne", void 0), i([N(cc.Label)], t.prototype, "SummonButtonLabelOne", void 0), i([N(C.default)], t.prototype, "SummonCurrencyBarOne", void 0), i([N(cc.Button)], t.prototype, "SummonButtonTen", void 0), i([N(cc.Label)], t.prototype, "SummonButtonLabelTen", void 0), i([N(C.default)], t.prototype, "SummonCurrencyBarTen", void 0), i([N(cc.Button)], t.prototype, "GiftPackageButton", void 0), i([N(cc.Label)], t.prototype, "GiftPackageButtonLabel", void 0), i([N(cc.Node)], t.prototype, "DeskNode", void 0), i([N(M.default)], t.prototype, "CrystalEngeryProgressBar", void 0), i([N(cc.Node)], t.prototype, "HeroAvatarContainer", void 0), n = i([B], t)
        }(cc.Component);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/SectorProgressBar": "SectorProgressBar",
        "../Panel/DrawAgainRewardsPanel": "DrawAgainRewardsPanel",
        "../Panel/SummonRatePanel": "SummonRatePanel"
    }],
    ElementTempleBlessAddtionComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "822abDe9r9F37AQNbvZ/tsv", "ElementTempleBlessAddtionComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Panel/ChaosHeroTempleUpPanel"),
            s = e("./ItemComponent"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("./AttrComponent2"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./StarPieceStarGroupsItem"),
            m = e("../Panel/StarPiecePanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.StarPieceStarItem = null, t.ItemName = null, t.AttrContainer = null, t.ActiveButton = null, t.ActiveButtonLabel = null, t.UnActiveButton = null, t.UnActiveButtonLabel = null, t.ActiveTip = null, t.InfoButton = null, t._attrComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ActiveButtonLabel.string = "ChaosTemple_Active".ToUILocale(), this.UnActiveButtonLabel.string = "ChaosTemple_Active".ToUILocale(), this.ActiveButton.node.on("click", this.OnActiveButtonClick, this), this.UnActiveButton.node.on("click", this.OnUnActiveButtonClick, this), this.InfoButton.node.on("click", this.OnInfoButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    this._blessType = e, this._blessCondition = t, this._heroInfoModel = n, this._blessHeroIndex = o, this._itemPrefab = r, this._attrPrefab = i, this._templeBlessConfig = p.ConfigDataComponent.Instance.GetConfigById(c.ElementTempleBless_Config, this._blessCondition[0]), this._blessHeroInfo = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._templeBlessConfig.HeroId), this.SetCurrentShow(), this.SetItemNode()
                }, t.prototype.SetCurrentShow = function() {
                    this.AttrContainer.active = !1, this.ActiveButton.node.active = !1, this.UnActiveButton.node.active = !1, this.ActiveTip.node.active = !1;
                    var e = this._heroInfoModel.ElementTempleBless.length > 0 ? this._heroInfoModel.ElementTempleBless[this._blessHeroIndex].Items : [];
                    switch (this._blessType) {
                        case a.ChaosTempleToggle.Hero:
                            e[0] ? (this.AttrContainer.active = !0, this.SetAttrContaienr()) : (this.ActiveTip.node.active = !0, this.ActiveTip.string = this._heroInfoModel.HeroId.ToHeroTitle() + "ChaosTemple_Cultivate_Hero_Limit_Lock".ToUILocale().Fmt(this._blessCondition[1]), this.ActiveButton.node.active = this._blessHeroInfo && this._heroInfoModel.MaxStar >= this._blessCondition[1], this.UnActiveButton.node.active = !this._blessHeroInfo || this._heroInfoModel.MaxStar < this._blessCondition[1]);
                            break;
                        case a.ChaosTempleToggle.Personality:
                            e[1] ? (this.AttrContainer.active = !0, this.SetAttrContaienr()) : (this.ActiveTip.node.active = !0, this.ActiveTip.string = this._heroInfoModel.HeroId.ToHeroTitle() + "ChaosTemple_Cultivate_Personality_Limit_Lock".ToUILocale().Fmt(this._blessCondition[2]), this.ActiveButton.node.active = this._blessHeroInfo && this._heroInfoModel.PersonalityStar >= this._blessCondition[2], this.UnActiveButton.node.active = !this._blessHeroInfo || this._heroInfoModel.PersonalityStar < this._blessCondition[2]);
                            break;
                        case a.ChaosTempleToggle.Treasure:
                            if (e[2]) this.AttrContainer.active = !0, this.SetAttrContaienr();
                            else {
                                this.ActiveTip.node.active = !0;
                                var t = p.ConfigDataComponent.Instance.GetConfigById(c.ExclusiveWeapon_Config, this._heroInfoModel.HeroId);
                                this.ActiveTip.string = t.ItemBaseId.ToItemName() + "ChaosTemple_Cultivate_Treasure_Limit_Lock".ToUILocale().Fmt(this._blessCondition[3]);
                                var n = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, this._heroInfoModel.HeroId),
                                    o = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, this._templeBlessConfig.HeroId),
                                    r = n ? n.Star : 0;
                                this.ActiveButton.node.active = o && r >= this._blessCondition[3], this.UnActiveButton.node.active = !o || r < this._blessCondition[3]
                            }
                    }
                }, t.prototype.SetItemNode = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.ItemNode);
                    var t = e.getComponent(s.ItemComponent),
                        n = this._heroInfoModel.ElementTempleBless.length > 0 ? this._heroInfoModel.ElementTempleBless[this._blessHeroIndex].Items : [];
                    switch (this.StarPieceStarItem.node.active = !1, this._blessType) {
                        case a.ChaosTempleToggle.Hero:
                            if (n[0]) t.Init({
                                ItemId: this._templeBlessConfig.HeroId,
                                StarLevel: this._blessHeroInfo.MaxStar
                            }, s.ItemComponentType.HeroInfo);
                            else {
                                var o = this._blessHeroInfo ? this._blessHeroInfo.MaxStar : 0;
                                t.Init({
                                    ItemId: this._templeBlessConfig.HeroId,
                                    StarLevel: o
                                }, s.ItemComponentType.HeroInfo)
                            }
                            this.ItemName.string = this._templeBlessConfig.HeroId.ToHeroTitle();
                            break;
                        case a.ChaosTempleToggle.Personality:
                            if (t.Init({
                                    ItemId: this._templeBlessConfig.HeroId
                                }, s.ItemComponentType.HeroInfo), n[1]) t.SetPersonalityParam(!1, this._blessHeroInfo.PersonalityStar);
                            else {
                                var r = this._blessHeroInfo ? this._blessHeroInfo.PersonalityStar : 0;
                                t.SetPersonalityParam(!1, r)
                            }
                            this.ItemName.string = this._templeBlessConfig.HeroId.ToHeroTitle();
                            break;
                        case a.ChaosTempleToggle.Treasure:
                            this.StarPieceStarItem.node.active = !0;
                            var i = p.ConfigDataComponent.Instance.GetConfigById(c.ExclusiveWeapon_Config, this._templeBlessConfig.HeroId),
                                l = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, this._heroInfoModel.HeroId);
                            n[2] ? t.Init({
                                ItemId: i.ItemBaseId,
                                StarLevel: l.Star
                            }, s.ItemComponentType.StarPiece) : (o = l ? l.Star : 0, t.Init({
                                ItemId: i.ItemBaseId,
                                StarLevel: o
                            }, s.ItemComponentType.StarPiece)), this.ItemName.string = i.ItemBaseId.ToItemName();
                            var d = !!l && l.IsAwakening;
                            this.StarPieceStarItem.SetUI(l, m.default.Exclusive_Max_Star, d)
                    }
                }, t.prototype.SetAttrContaienr = function() {
                    var e;
                    switch (this._blessType) {
                        case a.ChaosTempleToggle.Hero:
                            if (!this._blessHeroInfo) return this.ActiveTip.node.active = !0, void(this.ActiveTip.string = "CollectionPavilion_Tip_UnAttr".ToUILocale());
                            e = this._templeBlessConfig.HeroAttrIds[this._blessHeroInfo.MaxStar - 5];
                            break;
                        case a.ChaosTempleToggle.Personality:
                            if (!this._blessHeroInfo || !this._blessHeroInfo.PersonalityStar) return this.ActiveTip.node.active = !0, void(this.ActiveTip.string = "CollectionPavilion_Tip_UnAttr".ToUILocale());
                            e = this._templeBlessConfig.PersonalityAttrIds[this._blessHeroInfo.PersonalityStar - 1];
                            break;
                        case a.ChaosTempleToggle.Treasure:
                            var t = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, this._templeBlessConfig.HeroId);
                            if (!t) return this.ActiveTip.node.active = !0, void(this.ActiveTip.string = "CollectionPavilion_Tip_UnAttr".ToUILocale());
                            e = this._templeBlessConfig.WeaponAttrIds[t.Star - 1]
                    }
                    for (var n = p.ConfigDataComponent.Instance.GetConfigById(c.ElementTempleAttrs_Config, e), o = 0; o < n.Attrs.length; o++) {
                        var r = this._attrComponentArray[o];
                        if (!r) {
                            var i = cc.instantiate(this._attrPrefab);
                            i.setParent(this.AttrContainer), r = i.getComponent(h.default), this._attrComponentArray[o] = r
                        }
                        r.node.active = !0, r.Init(n.Attrs[o].Items[0], n.Attrs[o].Items[1]), r.SetAttrValueStyle(556, 258, h.AttrComponent2Style.Right, h.AttrComponent2Style.Right), r.SetPrefix("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                    }
                    if (n.Attrs.length < this._attrComponentArray.length)
                        for (o = n.Attrs.length; o < this._attrComponentArray.length; o++) this._attrComponentArray[o].node.active = !1
                }, t.prototype.OnActiveButtonClick = function() {
                    var e, t = this;
                    switch (this._blessType) {
                        case a.ChaosTempleToggle.Hero:
                            e = d.HeroDataType.Hero;
                            break;
                        case a.ChaosTempleToggle.Personality:
                            e = d.HeroDataType.Personality;
                            break;
                        case a.ChaosTempleToggle.Treasure:
                            e = d.HeroDataType.ExclusiveWeapon
                    }
                    var n = new u.Req_Team2_ElementTempleBless;
                    n.HeroId = this._heroInfoModel.HeroId, n.Index = this._blessHeroIndex, n.Type = e, p.RpcComponent.Instance.Call(n, function() {
                        f.UIUtlity.ShowFloatingHint("ChaosTemple_Cultivate_Success".ToUILocale());
                        var e = p.DataCenter.Instance.GetTempData("UserOldBattlePowerData"),
                            n = p.DataCenter.Instance.GetIntData(d.UserDataKey.Power);
                        n > e && l.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattlePowerChangePanel.Path, e, n), t._heroInfoModel = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, t._heroInfoModel.HeroId), t.SetCurrentShow()
                    })
                }, t.prototype.OnUnActiveButtonClick = function() {
                    switch (this._blessType) {
                        case a.ChaosTempleToggle.Hero:
                            f.UIUtlity.ShowFloatingHint(this._heroInfoModel.HeroId.ToHeroTitle() + "ChaosTemple_Cultivate_Hero_Limit_Lock".ToUILocale().Fmt(this._blessCondition[1]));
                            break;
                        case a.ChaosTempleToggle.Personality:
                            f.UIUtlity.ShowFloatingHint(this._heroInfoModel.HeroId.ToHeroTitle() + "ChaosTemple_Cultivate_Personality_Limit_Lock".ToUILocale().Fmt(this._blessCondition[2]));
                            break;
                        case a.ChaosTempleToggle.Treasure:
                            var e = p.ConfigDataComponent.Instance.GetConfigById(c.ExclusiveWeapon_Config, this._heroInfoModel.HeroId);
                            f.UIUtlity.ShowFloatingHint(e.ItemBaseId.ToItemName() + "ChaosTemple_Cultivate_Treasure_Limit_Lock".ToUILocale().Fmt(this._blessCondition[3]))
                    }
                }, t.prototype.OnInfoButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ElementTempleBlessInfoPanel.Path, this._blessType, this._blessCondition[0])
                }, i([C(cc.Node)], t.prototype, "ItemNode", void 0), i([C(g.default)], t.prototype, "StarPieceStarItem", void 0), i([C(cc.Label)], t.prototype, "ItemName", void 0), i([C(cc.Node)], t.prototype, "AttrContainer", void 0), i([C(cc.Button)], t.prototype, "ActiveButton", void 0), i([C(cc.Label)], t.prototype, "ActiveButtonLabel", void 0), i([C(cc.Button)], t.prototype, "UnActiveButton", void 0), i([C(cc.Label)], t.prototype, "UnActiveButtonLabel", void 0), i([C(cc.Label)], t.prototype, "ActiveTip", void 0), i([C(cc.Button)], t.prototype, "InfoButton", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ChaosHeroTempleUpPanel": "ChaosHeroTempleUpPanel",
        "../Panel/StarPiecePanel": "StarPiecePanel",
        "./AttrComponent2": "AttrComponent2",
        "./ItemComponent": "ItemComponent",
        "./StarPieceStarGroupsItem": "StarPieceStarGroupsItem"
    }],
    ElementTempleBlessInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2b6cemMRb1CpJrIfevx/d0R", "ElementTempleBlessInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("./ChaosHeroTempleUpPanel"),
            d = e("../Components/TempleBlessInfoAddtionComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.AddtionContainer = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ElementTemplePanel/Components/TempleBlessInfoAddtionComponent", cc.Prefab)];
                                case 1:
                                    return t._addtionPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ChaosTemple_Bless_Preview".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._blessType = t[0], this._blessConfig = u.ConfigDataComponent.Instance.GetConfigById(c.ElementTempleBless_Config, t[1])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetAddtionContainer()
                }, t.prototype.SetAddtionContainer = function() {
                    var e;
                    switch (this._blessType) {
                        case p.ChaosTempleToggle.Hero:
                            e = this._blessConfig.HeroAttrIds;
                            break;
                        case p.ChaosTempleToggle.Personality:
                            e = this._blessConfig.PersonalityAttrIds;
                            break;
                        case p.ChaosTempleToggle.Treasure:
                            e = this._blessConfig.WeaponAttrIds
                    }
                    for (var t = 0; t < e.length; t++) {
                        var n = cc.instantiate(this._addtionPrefab);
                        n.setParent(this.AddtionContainer), n.getComponent(d.default).Init(e[t], this._blessType, t)
                    }
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Node)], t.prototype, "AddtionContainer", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Components/TempleBlessInfoAddtionComponent": "TempleBlessInfoAddtionComponent",
        "./ChaosHeroTempleUpPanel": "ChaosHeroTempleUpPanel"
    }],
    ElementTempleBlessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "99af60cnDRC/bWYQdTfiBgA", "ElementTempleBlessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ElementTempleBlessAddtionComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.AddtionTitle = null, t.InfoButton = null, t.AddtionContainer = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ElementTemplePanel/Components/ElementTempleBlessAddtionComponent", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/AttrComponent2", cc.Prefab), o = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._addtionPrefab = e[0], r._attrPrefab = e[1], r._itemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ChaosTemple_Bless".ToUILocale(), this.AddtionTitle.string = "ChaosTemple_Bless_Addtion_Title".ToUILocale(), this.InfoButton.node.on("click", this.OnInfoButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._blessType = t[0], this._heroBaseConfig = p.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, t[1])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetAddtionContainer()
                }, t.prototype.SetAddtionContainer = function() {
                    for (var e = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._heroBaseConfig.Id), t = 0; t < this._heroBaseConfig.BlessHero.length; t++) {
                        var n = cc.instantiate(this._addtionPrefab);
                        n.setParent(this.AddtionContainer), n.getComponent(h.default).Init(this._blessType, this._heroBaseConfig.BlessHero[t].Items, e, t, this._itemPrefab, this._attrPrefab)
                    }
                }, t.prototype.OnInfoButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ElementTempleBlessInfoPanel.Path, this._blessType, this._heroBaseConfig.BlessHero[0].Items[0])
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "AddtionTitle", void 0), i([g(cc.Button)], t.prototype, "InfoButton", void 0), i([g(cc.Node)], t.prototype, "AddtionContainer", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ElementTempleBlessAddtionComponent": "ElementTempleBlessAddtionComponent"
    }],
    ElementTemplePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c5611+4JBRKlru+BZCL/lJR", "ElementTemplePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroTempleType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../Components/CustomLayout"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/ChaosHeroListItemComponent"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("./ChaosHeroTempleTotalAttrPanel"),
            C = e("../../Auxiliary/EventKeys"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.Chaos = 0] = "Chaos", e[e.Element = 1] = "Element", e[e.LR = 2] = "LR", e[e.TotalCount = 3] = "TotalCount"
        })(l = n.HeroTempleType || (n.HeroTempleType = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.TotalAddationButton = null, t.TotalAddationButtonLabel = null, t.ChaosHeroCustomLayout = null, t.ElementHeroCustomLayout = null, t.LRHeroCustomLayout = null, t.PartContainer = [], t.ReturnButton = null, t.BottomToggleContainer = null, t._currentBottomToggleIndex = 0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("Buttons/ToggleTopDownPageRollingLabel", cc.Prefab), n = this.LoadDynamicAsset("ElementTemplePanel/PNG/ElementTempleAtlas", cc.SpriteAtlas), o = this.LoadDynamicAsset("CollectionPavilionPanel/Components/ChaosHeroListItemComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._bottomTogglePrefab = e[0], r._atlas = e[1], r._chaosHeroItemPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.TotalAddationButtonLabel.string = "CollectionPavilion_Btn_totalAdd".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.TotalAddationButton.node.on("click", this.OnTotalAddtionButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._toggleModuleTypeArray = [, f.GameModuleType.ElementTemple, f.GameModuleType.LRHeroPalace]
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.SetCurrentToggle()
            }, t.prototype.SetCurrentToggle = function() {
                var e = this;
                switch (this.PartContainer.forEach(function(t, n) {
                        t.active = n == e._currentBottomToggleIndex
                    }), this.Title.string = ("ChaosTemple_Title_" + this._currentBottomToggleIndex).ToUILocale(), this.scheduleOnce(function() {
                        e.RuleButton.node.getComponent(cc.Widget).updateAlignment()
                    }), this._currentBottomToggleIndex) {
                    case l.Chaos:
                        if (!this._chaosHeroConfigArray) {
                            this._chaosHeroConfigArray = [];
                            for (var t = u.ConfigDataComponent.Instance.GetArrayConfig(p.ChaosTemple_Config), n = 0; n < t.length; n++) y.default.Instance.IsModuleShowAvailable(f.ModuleStartTime.Hero, t[n].Id) && this._chaosHeroConfigArray.push(t[n]);
                            this._chaosHeroConfigArray.sort(this.SortChaosHeroArray.bind(this)), this.ChaosHeroCustomLayout.Init(this._chaosHeroItemPrefab)
                        }
                        this.ChaosHeroCustomLayout.RenderLayOut(this._chaosHeroConfigArray.length);
                        break;
                    case l.Element:
                        this._elementHeroConfigArray || (this._elementHeroConfigArray = [], u.ConfigDataComponent.Instance.GetArrayConfig(p.HeroBase_Config).forEach(function(t) {
                            t.CoreHero == f.CoreHeroTag.UR && t.ElementType != f.HeroElementType.Chaos && y.default.Instance.IsModuleShowAvailable(f.ModuleStartTime.Hero, t.Id) && e._elementHeroConfigArray.push(t)
                        }), this._elementHeroConfigArray.sort(this.SortElementHeroArray.bind(this)), this.ElementHeroCustomLayout.Init(this._chaosHeroItemPrefab)), this.ElementHeroCustomLayout.RenderLayOut(this._elementHeroConfigArray.length);
                        break;
                    case l.LR:
                        this._lrHeroConfigArray || (this._lrHeroConfigArray = [], u.ConfigDataComponent.Instance.GetArrayConfig(p.HeroBase_Config).forEach(function(t) {
                            t.CoreHero == f.CoreHeroTag.LR && t.ElementType != f.HeroElementType.Chaos && y.default.Instance.IsModuleShowAvailable(f.ModuleStartTime.Hero, t.Id) && e._lrHeroConfigArray.push(t)
                        }), this._lrHeroConfigArray.sort(this.SortElementHeroArray.bind(this)), this.LRHeroCustomLayout.Init(this._chaosHeroItemPrefab)), this.LRHeroCustomLayout.RenderLayOut(this._lrHeroConfigArray.length)
                }
            }, t.prototype.SortChaosHeroArray = function(e, t) {
                var n = u.DataCenter.Instance.GetDataById(d.HeroInfo_Model, e.Id),
                    o = u.DataCenter.Instance.GetDataById(d.HeroInfo_Model, t.Id);
                return n && !o ? -1 : !n && o ? 1 : t.Id - e.Id
            }, t.prototype.SortElementHeroArray = function(e, t) {
                var n = u.DataCenter.Instance.GetDataById(d.HeroInfo_Model, e.Id),
                    o = u.DataCenter.Instance.GetDataById(d.HeroInfo_Model, t.Id);
                return n && !o ? -1 : !n && o ? 1 : t.Id - e.Id
            }, t.prototype.OnRuleButtonClick = function() {
                var e, t, n;
                switch (this._currentBottomToggleIndex) {
                    case l.Element:
                        e = "ElementTemple_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["ElementTemple_Rule_Content".ToUILocale()];
                        break;
                    case l.Chaos:
                        e = "CollectionPavilion_ChaosTemple_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["CollectionPavilion_ChaosTemple_Rule_Content".ToUILocale()];
                        break;
                    case l.LR:
                        e = "ElementTemple_LR_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["ElementTemple_LR_Rule_Content".ToUILocale()]
                }
                var o = {
                    name: e,
                    titles: t,
                    contents: n
                };
                g.UIUtlity.ShowRulePanel(o)
            }, t.prototype.OnTotalAddtionButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(I.PanelConfig.ChaosHeroTempleTotalAttrPanel.Path, _.ChaosHeroTempleAttrType.TotalAttr, this._currentBottomToggleIndex)
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                t == this.ChaosHeroCustomLayout ? e.forEach(function(e, t) {
                    e.getComponent(m.default).Init(n._chaosHeroConfigArray[t].Id, l.Chaos, n._atlas)
                }) : t == this.ElementHeroCustomLayout ? e.forEach(function(e, t) {
                    e.getComponent(m.default).Init(n._elementHeroConfigArray[t].Id, l.Element, n._atlas)
                }) : t == this.LRHeroCustomLayout && e.forEach(function(e, t) {
                    e.getComponent(m.default).Init(n._lrHeroConfigArray[t].Id, l.LR, n._atlas)
                })
            }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.Button)], t.prototype, "TotalAddationButton", void 0), i([S(cc.Label)], t.prototype, "TotalAddationButtonLabel", void 0), i([S(h.default)], t.prototype, "ChaosHeroCustomLayout", void 0), i([S(h.default)], t.prototype, "ElementHeroCustomLayout", void 0), i([S(h.default)], t.prototype, "LRHeroCustomLayout", void 0), i([S({
                type: [cc.Node]
            })], t.prototype, "PartContainer", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([S(cc.Node)], t.prototype, "BottomToggleContainer", void 0), i([b], t)
        }(c.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ChaosHeroListItemComponent": "ChaosHeroListItemComponent",
        "../Components/CustomLayout": "CustomLayout",
        "./ChaosHeroTempleTotalAttrPanel": "ChaosHeroTempleTotalAttrPanel"
    }],
    ElementTrialListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ed097PYzrlHApPAhTc96SQM", "ElementTrialListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ElementTrailState = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = new cc.Color(98, 78, 60),
            y = new cc.Color(235, 97, 0);
        (function(e) {
            e[e.LOCKED = 0] = "LOCKED", e[e.ONGOING = 1] = "ONGOING", e[e.FINISHED = 2] = "FINISHED"
        })(l = n.ElementTrailState || (n.ElementTrailState = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LeftIcon = null, t.LeftTag = null, t.Figure = null, t.Bg = null, t.LightenBg = null, t.CoverGirl = null, t.StageTag = null, t.ProcessTag = null, t.FinishedMask = null, t.Icons = [], t.Tags = [], t._herosFilefolder = "HeroIcon/HeroIllustration/", t._curLevel = 0, t._loadedAssets = [], t
            }
            return r(t, e), t.prototype.InitUI = function(e, t) {
                this._data = e, this._curLevel = t, this.SetState(), this.SetInfo(), this.SetGirl()
            }, t.prototype.SetState = function() {
                this._data.Id <= this._curLevel ? this._state = l.FINISHED : this._data.Id - this._curLevel == 1 ? this._state = l.ONGOING : this._data.Id - this._curLevel >= 2 && (this._state = l.LOCKED)
            }, t.prototype.SetInfo = function() {
                this.LeftIcon.spriteFrame = this.Icons[this._state], this.LeftTag.spriteFrame = this._state == l.ONGOING ? this.Tags[1] : this.Tags[0], this.Bg.active = this._state != l.ONGOING, this.LightenBg.active = this._state == l.ONGOING, this.StageTag.node.color = this._state == l.ONGOING ? y : f, this.StageTag.string = "stage_index".ToUILocale().Fmt(this._data.Id), this.ProcessTag.string = this._state > l.LOCKED ? this._state > l.ONGOING ? "secretArea_doneAllStage".ToUILocale() : "elementTrial_currentLevel".ToUILocale() : "elementTrial_lock".ToUILocale(), this.FinishedMask.active = this._state == l.FINISHED
            }, t.prototype.SetGirl = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._state == l.LOCKED ? u.UIUtlity.OnSpriteGray(this.CoverGirl) : u.UIUtlity.OffSpriteGray(this.CoverGirl), e = this._herosFilefolder + this._data.HeroId.toString(), [4, c.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                            case 1:
                                return t = n.sent(), this.isValid ? (this._loadedAssets.push(t), this.CoverGirl.spriteFrame = t, [2]) : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                for (var e = 0; e < this._loadedAssets.length; e++) c.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                this._loadedAssets = []
            }, i([h(cc.Sprite)], t.prototype, "LeftIcon", void 0), i([h(cc.Sprite)], t.prototype, "LeftTag", void 0), i([h(cc.Node)], t.prototype, "Figure", void 0), i([h(cc.Node)], t.prototype, "Bg", void 0), i([h(cc.Node)], t.prototype, "LightenBg", void 0), i([h(cc.Sprite)], t.prototype, "CoverGirl", void 0), i([h(cc.Label)], t.prototype, "StageTag", void 0), i([h(cc.Label)], t.prototype, "ProcessTag", void 0), i([h(cc.Node)], t.prototype, "FinishedMask", void 0), i([h(cc.SpriteFrame)], t.prototype, "Icons", void 0), i([h(cc.SpriteFrame)], t.prototype, "Tags", void 0), i([d], t)
        }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    ElementTrialPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f7f2ey4IGhG+LCFfgboapgv", "ElementTrialPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../Consts/Consts"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CustomLayout"),
            g = e("../Components/SmallRankListComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../Components/ItemComponent"),
            C = e("./ElementTrialListItem"),
            v = e("../../../EZFramework/EZFramework"),
            b = e("../../Auxiliary/GlobalDefine"),
            S = e("../../../Consts/Consts"),
            w = e("../../Components/Components"),
            P = e("../Battle/BattleManager"),
            A = e("../../RedDot/RedDotManager"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property;
        (function(e) {
            e[e.ThreeSeries = 0] = "ThreeSeries", e[e.LightDark = 1] = "LightDark"
        })(l || (l = {}));
        var k = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.TitleLabel = null, t.TimeLabel = null, t.ElementDescLabel = null, t.ThemeElementSprite = null, t.Bg = null, t.WeakenDescLabel = null, t.WeakenValueLabel = null, t.ElementSprite = null, t.StageScrollView = null, t.StageScrollViewCustomLayout = null, t.FightDescLabel = null, t.FightValueLabel = null, t.CurMaxLevelDescLabel = null, t.CurMaxLevelValueLabel = null, t.CurMaxLevelNoClearLabel = null, t.CurRankDescLabel = null, t.CurRankValueLabel = null, t.CurRankNoClearLabel = null, t.GetLabel = null, t.NoClearedLabel = null, t.NoRankLabel = null, t.RewardNode = null, t.RewardsButton = null, t.ChallengeButton = null, t.ChallengeLabel = null, t.RuleButton = null, t.ReturnButton = null, t.ThreeSeriesToggle = null, t.LightDarkToggle = null, t.ThreeSeriesToggleLabels = [], t.LightDarkToggleLabels = [], t.ThreeSeriesToggleIcons = [], t.LightDarkToggleIcons = [], t.RankComponent = null, t.RankDelayLabel = null, t.ActivityEndLabel = null, t._isLayoutInit = !1, t._itemNodes = [], t._curElement = 0, t._deadLine = 0, t._rankData = null, t._configDataArr = {}, t._rankDataArr = {}, t._elementSpriteName = ["", "heart", "power", "tech", "break", "fight"], t._bgs = ["", "Cave", "UndergroundCave", "Forest", "Desert", "DarkForest"], t._assets = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                this._assets = [], e = 1, a.label = 1;
                            case 1:
                                return e <= 5 ? (t = "BattleBg/" + this._bgs[e], [4, this.LoadDynamicAsset(t, cc.SpriteFrame)]) : [3, 4];
                            case 2:
                                n = a.sent(), this._assets.push(n), a.label = 3;
                            case 3:
                                return e++, [3, 1];
                            case 4:
                                return o = this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleElementTrial/SubItems/ElementTrialListItem", cc.Prefab), r = this.LoadDynamicAsset(b.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([o, r]).then(function(e) {
                                    i._levelPrefab = e[0], i._itemPrefab = e[1]
                                })];
                            case 5:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t);
                var n = t[0];
                n && (this._configData = u.DataCenter.Instance.ActivityConfigs[n], this._deadLine = I.default.Instance.ComputeExtraShowDeadTime(this._configData.Common), this.TitleLabel.string = this._configData.Common.Title), this._curElement = this._configData.CustomPart.Element, t[1] && (this._rankData = t[1]), t[2] ? this._curType = t[2] : this._curType = l.ThreeSeries, this._configDataArr[this._curType] = this._configData, this._rankDataArr[this._curType] = this._rankData, this.GetAllConfigs()
            }, t.prototype.InitUI = function() {
                this.ElementDescLabel.string = "elementTrial_element".ToUILocale(), this.WeakenDescLabel.string = "elementTrial_weaken".ToUILocale(), this.FightDescLabel.string = "elementTrial_recommond".ToUILocale(), this.CurMaxLevelDescLabel.string = "elementTrial_curLevel".ToUILocale(), this.CurRankDescLabel.string = "bossWar_rank".ToUILocale(), this.CurMaxLevelNoClearLabel.string = "elementTrial_noGet".ToUILocale(), this.CurRankNoClearLabel.string = "rank_out_max_rank".ToUILocale(), this.NoClearedLabel.string = "elementTrial_noGet".ToUILocale(), this.ChallengeLabel.string = "SeniorArenaChallenge".ToUILocale(), this.NoRankLabel.string = "rank_out_max_rank".ToUILocale(), this.RankDelayLabel.string = "elementTrail_rank_delay".ToUILocale(), this.ActivityEndLabel.string = "activity_end".ToUILocale(), this.RewardsButton.node.on("click", this.OnRewardsButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ThreeSeriesToggle.node.on("click", this.OnThreeSeriesToggleClick, this), this.LightDarkToggle.node.on("click", this.OnLightDarkToggleClick, this)
            }, t.prototype.DisPlay = function(t) {
                for (var n in void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this.SetUIContent(), this._configDataArr) {
                    var o = "ElementTrialLastEnterTime_{0}";
                    o = o.Fmt(this._configDataArr[n]._id), cc.sys.localStorage.setItem(o, u.RpcComponent.Instance.ServerTime)
                }
                A.RedDotManager.Instance.RefreshInstanceRedDotNode(A.RedDotManager.Instance.InstanceRedDot.ElementTrialNode, {
                    Value1: this._configData._id
                })
            }, t.prototype.SetUIContent = function() {
                this.InitNodes(), this.InitCustomLayout(), this.SetTime(), this.SetInfo(), this.SetRankList(), this.SetButtons(), this.SetReward(), this.SetImages()
            }, t.prototype.InitNodes = function() {
                this.CurMaxLevelNoClearLabel.node.active = !1, this.CurMaxLevelValueLabel.node.active = !1, this.CurRankValueLabel.node.active = !1, this.CurRankNoClearLabel.node.active = !1, this.NoClearedLabel.node.active = !1, this.NoRankLabel.node.active = !1, this.GetLabel.node.active = !1, this.RewardNode.active = !1, this._itemNodes.forEach(function(e) {
                    e.active = !1
                })
            }, t.prototype.InitCustomLayout = function() {
                this._isLayoutInit || (this._isLayoutInit = !0, this.StageScrollViewCustomLayout.Init(this._levelPrefab));
                var e = this._configData.Maps.length,
                    t = this._model && this._model.IntValue > 0 ? this._model.IntValue - 1 : 0;
                this.StageScrollViewCustomLayout.RenderLayOut(e, t)
            }, t.prototype.ScrollToCurrFightLayer = function() {
                var e = this._model && this._model.IntValue > 0 ? this._model.IntValue - 1 : 0;
                this.StageScrollView.scrollToOffset(cc.v2(0, 206 * e), .5)
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                t == this.StageScrollViewCustomLayout && e.forEach(function(e, t) {
                    e.getComponent(C.default).InitUI(n._configData.Maps[t], n._model.IntValue)
                })
            }, t.prototype.SetTime = function() {
                this.ActivityEndLabel.node.active = !1, this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1)
            }, t.prototype.CountDownActivityTime = function() {
                var e, t = u.RpcComponent.Instance.ServerTime,
                    n = this._deadLine - t;
                n < S.Etc.DayDuration * this._configData.Common.ExtraShowDays ? (this.ActivityEndLabel.node.active = !0, this.ChallengeButton.node.active = !1, this.FightDescLabel.node.active = !1, this.TimeLabel.string = "activityTime_show".ToUILocale() + I.default.ActivityTimeLeftFormat(n)) : (e = n - S.Etc.DayDuration * this._configData.Common.ExtraShowDays, this.ChallengeButton.node.active = !0, this.TimeLabel.string = "gift_remainderTime".ToUILocale() + I.default.ActivityTimeLeftFormat(e));
                n < 0 && c.UIManager.Instance.BackUIPanel()
            }, t.prototype.GetMaxRankNum = function() {
                var e = 0;
                return this._configData.Rewards.forEach(function(t) {
                    e = Math.max(t.Rank, e)
                }), e
            }, t.prototype.GetNewMaxRankNum = function() {
                var e = 0,
                    t = 0;
                return this._configData._RankRewards.forEach(function(n) {
                    n.Rank[0] > t && (t = n.Rank[0], e = n.Rank[1])
                }), e
            }, t.prototype.SetInfo = function() {
                var e = this,
                    t = this.GetWillChallengeLevel();
                if (t) {
                    var n = u.RpcComponent.Instance.ServerTime;
                    this._deadLine - n - S.Etc.DayDuration * this._configData.Common.ExtraShowDays >= 0 && (this.FightDescLabel.node.active = !0, this.FightValueLabel.string = t.RecommendPower.toString())
                } else this.FightDescLabel.node.active = !1;
                var o = this.GetNewMaxRankNum();
                0 == o ? (this.NoRankLabel.node.active = !this._rankData || !this._rankData.MyRank, this.RewardNode.active = this._model && this._model.IntValue > 0 && this._rankData && this._rankData.MyRank > 0) : (this.NoRankLabel.node.active = this._rankData && this._rankData.MyRank && this._rankData.MyRank > o || this._model.IntValue > 0 && (!this._rankData || !this._rankData.MyRank), this.RewardNode.active = this._model && this._model.IntValue > 0 && this._rankData && this._rankData.MyRank && this._rankData.MyRank < o), this.WeakenValueLabel.string = Math.round(this._configData.CustomPart.AttrWeaken / 10) + "%", this.NoClearedLabel.node.active = this._model && 0 == this._model.IntValue, this.CurMaxLevelNoClearLabel.node.active = this._model && 0 == this._model.IntValue, this.CurMaxLevelValueLabel.node.active = this._model && this._model.IntValue > 0, this.CurRankNoClearLabel.node.active = this._rankData && !this._rankData.MyRank, this.CurRankValueLabel.node.active = this._rankData && this._rankData.MyRank && this._rankData.MyRank > 0;
                var r = u.RpcComponent.Instance.ServerTime;
                this._deadLine - r > S.Etc.DayDuration * this._configData.Common.ExtraShowDays && this._model && this._model.IntValue > 0 && (this.CountDownRewardTime(), this.unschedule(this.CountDownRewardTime), this.schedule(this.CountDownRewardTime, 1)), this._model && this._model.IntValue > 0 && (this.CurMaxLevelValueLabel.string = this._model.IntValue.toString()), this._rankData && this._rankData.MyRank && this._rankData.MyRank > 0 && (this.CurRankValueLabel.string = this._rankData.MyRank.toString(), this.GetLabel.node.active = !0), this.ThreeSeriesToggleLabels.forEach(function(t) {
                    var n = e._configDataArr[l.ThreeSeries].CustomPart.Element;
                    t.string = ("elementTrial_type_" + n).ToUILocale()
                }), this.LightDarkToggleLabels.forEach(function(t) {
                    var n = e._configDataArr[l.LightDark].CustomPart.Element;
                    t.string = ("elementTrial_type_" + n).ToUILocale()
                }), this.ThreeSeriesToggle.isChecked = this._curType == l.ThreeSeries, this.LightDarkToggle.isChecked = this._curType == l.LightDark
            }, t.prototype.CountDownRewardTime = function() {
                var e = u.RpcComponent.Instance.ServerTime,
                    t = this._deadLine - e;
                t - S.Etc.DayDuration * this._configData.Common.ExtraShowDays < 0 && (this.GetLabel.node.active = !1, this.unschedule(this.CountDownRewardTime)), this.GetLabel.string = "elementTrial_canGet".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(t - S.Etc.DayDuration * this._configData.Common.ExtraShowDays))
            }, t.prototype.SetRankList = function() {
                var e = this;
                this.RankComponent.InitUIForActivity(this._configData._id, "holyArea_rank".ToUILocale(), function() {
                    var t = new p.Req_Activity_GetRank;
                    t.ActivityId = e._configData._id, u.RpcComponent.Instance.Call(t, function(t) {
                        e._rankData = t, e._rankDataArr[e._curType] = t, v.UIManager.Instance.ShowUIPanel(b.PanelConfig.ElementTrialRankPanel.Path, e._curType, e._configDataArr, e._rankDataArr)
                    }.bind(this))
                }, this._rankData)
            }, t.prototype.SetButtons = function() {
                this.GetWillChallengeLevel() ? f.UIUtlity.OffNodeGray(this.ChallengeButton.node) : f.UIUtlity.OnNodeGray(this.ChallengeButton.node)
            }, t.prototype.SetReward = function() {
                var e = this;
                if (this._rankData && this._rankData.MyRank && this._rankData.MyRank > 0) {
                    var t = void 0;
                    (t = I.default.GetRankRewardData(this._configData._RankRewards, this._rankData.MyRank)) && t.Rewards.forEach(function(t, n) {
                        var o = t.Items[0],
                            r = t.Items[1];
                        if (!e._itemNodes[n]) {
                            var i = cc.instantiate(e._itemPrefab);
                            i.parent = e.RewardNode, e._itemNodes[n] = i
                        }
                        e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(_.ItemComponent).Init({
                            ItemId: o,
                            Count: r
                        }, _.ItemComponentType.ItemCommon)
                    })
                }
            }, t.prototype.SetImages = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function() {
                        return this.ThemeElementSprite.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_" + this._elementSpriteName[this._curElement]), this.ElementSprite.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_" + this._elementSpriteName[this._curElement]), this.Bg.spriteFrame = this._assets[this._curElement - 1], this.ThreeSeriesToggleIcons.forEach(function(t) {
                            var n = e._configDataArr[l.ThreeSeries].CustomPart.Element;
                            t.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_" + e._elementSpriteName[n])
                        }), this.LightDarkToggleIcons.forEach(function(t) {
                            var n = e._configDataArr[l.LightDark].CustomPart.Element;
                            t.spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_" + e._elementSpriteName[n])
                        }), [2]
                    })
                })
            }, t.prototype.GetRankRewar = function(e) {
                for (var t = null, n = 0; n < this._configData.Rewards.length; n++) {
                    var o = this._configData.Rewards[n];
                    if (e <= o.Rank) {
                        t = o;
                        break
                    }
                }
                return t
            }, t.prototype.GetAllConfigs = function() {
                var e = 0,
                    t = 0,
                    n = this._configDataArr[l.ThreeSeries],
                    o = this._configDataArr[l.LightDark];
                if (n && (e = this._configDataArr[l.ThreeSeries]._id), o && (t = this._configDataArr[l.LightDark]._id), !e)
                    for (var r in w.DataCenter.Instance.ActivityConfigs)(i = w.DataCenter.Instance.ActivityConfigs[r]).Common.Type == S.ActivityType.ElementTest && i.Common.StartTime == this._configDataArr[l.LightDark].Common.StartTime && i.Common.FrameId == this._configDataArr[l.LightDark].Common.FrameId && i._id != t && (this._configDataArr[l.ThreeSeries] = i);
                if (!t)
                    for (var r in w.DataCenter.Instance.ActivityConfigs) {
                        var i;
                        (i = w.DataCenter.Instance.ActivityConfigs[r]).Common.Type == S.ActivityType.ElementTest && i.Common.StartTime == this._configDataArr[l.ThreeSeries].Common.StartTime && i.Common.FrameId == this._configDataArr[l.ThreeSeries].Common.FrameId && i._id != e && (this._configDataArr[l.LightDark] = i)
                    }
            }, t.prototype.GetWillChallengeLevel = function() {
                var e;
                if (this._model.IntValue) {
                    var t = this._model.IntValue + 1,
                        n = this._configData.Maps.findIndex(function(e) {
                            return e.Id == t
                        });
                    e = n > -1 ? this._configData.Maps[n] : null
                } else e = this._configData.Maps[0];
                return e
            }, t.prototype.GetCurFormationPower = function() {
                var e = this,
                    t = 0,
                    n = this.GetFormationType(this._curElement),
                    o = w.DataCenter.Instance.GetDataById(p.UserFormation_Model, n);
                return o && o.HeroIds.forEach(function(n) {
                    var o, r = u.DataCenter.Instance.GetDataById(p.UserHero_Model, n);
                    r && (o = w.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, r.HeroId).ElementType != e._curElement ? Math.floor(r.Power * (1 - e._configData.CustomPart.PowerWeaken / 1e3)) : r.Power, t += o)
                }), t
            }, t.prototype.GetFormationType = function(e) {
                var t;
                switch (e) {
                    case 1:
                        t = S.FormationIdType.ElementTestHeart;
                        break;
                    case 2:
                        t = S.FormationIdType.ElementTestPower;
                        break;
                    case 3:
                        t = S.FormationIdType.ElementTestTech;
                        break;
                    case 4:
                        t = S.FormationIdType.ElementTestBreak;
                        break;
                    case 5:
                        t = S.FormationIdType.ElementTestFight
                }
                return t
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.RewardNode.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
            }, t.prototype.OnRewardsButtonClick = function() {
                var e = {},
                    t = [];
                this._configData._RankRewards.forEach(function(e) {
                    var n = {};
                    n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                }), e.MyRank = this._rankData.MyRank, e.Data = t, e.IsInRank = this._rankData.MyRank > 0, c.UIManager.Instance.ShowUIPanel(b.PanelConfig.CommonRankRewardPanel.Path, e)
            }, t.prototype.OnChallengeButtonClick = function() {
                if (!I.default.CheckActivityIsEnd(this._configData.Common, !0)) {
                    var e, t = this.GetCurFormationPower(),
                        n = this.GetWillChallengeLevel();
                    if (n)
                        if (e = n.MapId, t < n.QuickPower) c.Game.EventDispatcher.Emit(h.GameEventIds.StartBattle.Fmt(h.MapType.ActivityElementHeart), e, this._configData);
                        else {
                            for (var o = new p.Req_Activity_ElementTestQuickBattle, r = this.GetFormationType(this._curElement), i = w.DataCenter.Instance.GetDataById(p.UserFormation_Model, r), a = 0, s = n.Id - 1; s < this._configData.Maps.length && t >= this._configData.Maps[s].QuickPower; s++) a = this._configData.Maps[s].Id;
                            o.ActivityId = this._configData._id, o.Formations = [i], o.EndMapId = a, u.RpcComponent.Instance.Call(o, function(e) {
                                f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            }.bind(this))
                        }
                    else f.UIUtlity.ShowFloatingHint("elementTrial_allGet".ToUILocale())
                }
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "elementTrial".ToUILocale(),
                    titles: ["elementTrial_sub_rule".ToUILocale()],
                    contents: ["elementTrial_content_rule".ToUILocale()]
                };
                f.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnThreeSeriesToggleClick = function() {
                this.UpdateInfo(l.ThreeSeries)
            }, t.prototype.OnLightDarkToggleClick = function() {
                this.UpdateInfo(l.LightDark)
            }, t.prototype.UpdateInfo = function(e) {
                if (this._curType = e, this._configData = u.DataCenter.Instance.ActivityConfigs[this._configDataArr[e]._id], this._curElement = this._configData.CustomPart.Element, this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this._rankDataArr[e]) this._rankData = this._rankDataArr[e], this.SetUIContent();
                else {
                    var t = new p.Req_Activity_GetRank;
                    t.ActivityId = this._configData._id, u.RpcComponent.Instance.Call(t, function(t) {
                        this._rankData = t, this._rankDataArr[e] = t, this.SetUIContent()
                    }.bind(this))
                }
            }, t.InitBattle = function() {
                var e = h.MapType.ActivityElementHeart;
                c.Game.EventDispatcher.Only(h.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), c.Game.EventDispatcher.Only(h.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), c.Game.EventDispatcher.Only(h.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), c.Game.EventDispatcher.Only(h.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), c.Game.EventDispatcher.Only(h.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
            }, t.RestartBattle = function() {
                n.StartBattle(n._CurrentBattleMapId, n._CurrentActivityConfig)
            }, t.StartBattle = function(e, t) {
                n._CurrentBattleMapId = e, n._CurrentActivityConfig = t, v.UIManager.Instance.ShowUIPanel(b.PanelConfig.BattleFormationPanel.Path, function(e) {
                    n.RequestChallenge(e)
                }, [e], n._CurrentActivityConfig._id)
            }, t.RequestChallenge = function(e) {
                var t = v.UIManager.Instance.GetUIPanel(b.PanelConfig.ElementTrialPanel.Path);
                if (t) {
                    var o = 0;
                    e[0].HeroIds.forEach(function(e) {
                        var n, r = u.DataCenter.Instance.GetDataById(p.UserHero_Model, e);
                        r && (n = w.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, r.HeroId).ElementType != t._curElement ? Math.round(r.Power * (1 - t._configData.CustomPart.PowerWeaken / 1e3)) : r.Power, o += n)
                    });
                    var r = t.GetWillChallengeLevel();
                    if (!r) return;
                    if (o < r.QuickPower)(i = new p.Req_Activity_ElementTestChallenge).ActivityId = n._CurrentActivityConfig._id, i.Formations = e, u.RpcComponent.Instance.Call(i, function(e) {
                        P.BattleManager.Instance.StartPlay(e.Report)
                    }.bind(this));
                    else {
                        for (var i = new p.Req_Activity_ElementTestQuickBattle, a = 0, s = r.Id - 1; s < t._configData.Maps.length && o >= t._configData.Maps[s].QuickPower; s++) a = t._configData.Maps[s].Id;
                        i.ActivityId = t._configData._id, i.Formations = e, i.EndMapId = a, u.RpcComponent.Instance.Call(i, function(e) {
                            f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        }.bind(this))
                    }
                } else(i = new p.Req_Activity_ElementTestChallenge).ActivityId = n._CurrentActivityConfig._id, i.Formations = e, u.RpcComponent.Instance.Call(i, function(e) {
                    P.BattleManager.Instance.StartPlay(e.Report)
                }.bind(this))
            }, t.SettleBattle = function(e) {
                var t = new p.Req_Map_BattleSettlement;
                t.MapType = e.MapType, w.RpcComponent.Instance.Call(t, function(t) {
                    var o = t.ExtraParam[0].Items[0];
                    if (u.DataCenter.Instance.ActivityConfigs[o]) {
                        var r;
                        1 == t.Result ? (r = n.settlement_win_prefab_path, e.SettleParams = [t.ExtraParam[0].Items[0]], P.BattleManager.Instance.ShowSettlePanel(b.PanelConfig.SettlementWinPanel.Path, r, e)) : (r = n.settlement_fail_prefab_path, e.SettleParams = [t.ExtraParam[0].Items[0]], P.BattleManager.Instance.ShowSettlePanel(b.PanelConfig.SettlementFailPanel.Path, r, e));
                        var i = v.UIManager.Instance.GetUIPanel(b.PanelConfig.ElementTrialPanel.Path);
                        i && i.ScrollToCurrFightLayer()
                    }
                })
            }, t.CancelBattle = function(e) {
                var t = new p.Req_Map_CancelChallenge;
                t.MapType = e.MapType, w.RpcComponent.Instance.Call(t, null)
            }, t.OnBattleSwitchToBackground = function() {
                v.UIManager.Instance.QuitPanelStack(b.PanelConfig.ElementTrialPanel.Path)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, t.settlement_win_prefab_path = "TimeLimitedActivityPanel/ModuleElementTrial/SubItems/ElementTrialSettlementComponent", t.settlement_fail_prefab_path = "SettlementPanel/CommonFailSettlementComponent", t._CurrentBattleMapId = 0, t._CurrentActivityConfig = null, i([L(cc.Label)], t.prototype, "TitleLabel", void 0), i([L(cc.Label)], t.prototype, "TimeLabel", void 0), i([L(cc.Label)], t.prototype, "ElementDescLabel", void 0), i([L(cc.Sprite)], t.prototype, "ThemeElementSprite", void 0), i([L(cc.Sprite)], t.prototype, "Bg", void 0), i([L(cc.Label)], t.prototype, "WeakenDescLabel", void 0), i([L(cc.Label)], t.prototype, "WeakenValueLabel", void 0), i([L(cc.Sprite)], t.prototype, "ElementSprite", void 0), i([L(cc.ScrollView)], t.prototype, "StageScrollView", void 0), i([L(y.default)], t.prototype, "StageScrollViewCustomLayout", void 0), i([L(cc.Label)], t.prototype, "FightDescLabel", void 0), i([L(cc.Label)], t.prototype, "FightValueLabel", void 0), i([L(cc.Label)], t.prototype, "CurMaxLevelDescLabel", void 0), i([L(cc.Label)], t.prototype, "CurMaxLevelValueLabel", void 0), i([L(cc.Label)], t.prototype, "CurMaxLevelNoClearLabel", void 0), i([L(cc.Label)], t.prototype, "CurRankDescLabel", void 0), i([L(cc.Label)], t.prototype, "CurRankValueLabel", void 0), i([L(cc.Label)], t.prototype, "CurRankNoClearLabel", void 0), i([L(cc.RichText)], t.prototype, "GetLabel", void 0), i([L(cc.Label)], t.prototype, "NoClearedLabel", void 0), i([L(cc.Label)], t.prototype, "NoRankLabel", void 0), i([L(cc.Node)], t.prototype, "RewardNode", void 0), i([L(cc.Button)], t.prototype, "RewardsButton", void 0), i([L(cc.Button)], t.prototype, "ChallengeButton", void 0), i([L(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([L(cc.Button)], t.prototype, "RuleButton", void 0), i([L(cc.Button)], t.prototype, "ReturnButton", void 0), i([L(cc.Toggle)], t.prototype, "ThreeSeriesToggle", void 0), i([L(cc.Toggle)], t.prototype, "LightDarkToggle", void 0), i([L(cc.Label)], t.prototype, "ThreeSeriesToggleLabels", void 0), i([L(cc.Label)], t.prototype, "LightDarkToggleLabels", void 0), i([L(cc.Sprite)], t.prototype, "ThreeSeriesToggleIcons", void 0), i([L(cc.Sprite)], t.prototype, "LightDarkToggleIcons", void 0), i([L(g.default)], t.prototype, "RankComponent", void 0), i([L(cc.Label)], t.prototype, "RankDelayLabel", void 0), i([L(cc.Label)], t.prototype, "ActivityEndLabel", void 0), n = i([R], t)
        }(c.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent",
        "./ElementTrialListItem": "ElementTrialListItem"
    }],
    ElementTrialRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b2b8eTAzUFKs4UPwval6bYs", "ElementTrialRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/RankDetailComponent"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1, !1), t.Title = null, t.CenterNode = null, t.ReturnButton = null, t.ThreeSeriesToggle = null, t.LightDarkToggle = null, t.ThreeSeriesToggleLabels = [], t.LightDarkToggleLabels = [], t.ThreeSeriesToggleIcons = [], t.LightDarkToggleIcons = [], t._type = 0, t._configDataArr = {}, t._rankDataArr = {}, t._enemyElementSpriteName = ["", "heart", "power", "tech", "break", "fight"], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent")];
                                case 1:
                                    return t._rankPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetImages(), this.SetUI(), this.SetTog()
                }, t.prototype.SetUI = function() {
                    this._rankDataArr[this._type] ? this._rank_detail_item.SetUI(this._configDataArr[this._type]._id, this._rankDataArr[this._type].Rows, this._rankDataArr[this._type].MyRank, this._rankDataArr[this._type].MyRankData, !1, !0) : this._rank_detail_item.SetUI(this._configDataArr[this._type]._id, [], null, null, !1, !0)
                }, t.prototype.SetTog = function() {
                    this.ThreeSeriesToggle.isChecked = 0 == this._type, this.LightDarkToggle.isChecked = 1 == this._type
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._type = t[0], this._configDataArr = t[1], this._rankDataArr = t[2]
                }, t.prototype.SetImages = function() {
                    var e = this;
                    this.ThreeSeriesToggleIcons.forEach(function(t) {
                        var n = e._configDataArr[0].CustomPart.Element;
                        t.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_" + e._enemyElementSpriteName[n])
                    }), this.LightDarkToggleIcons.forEach(function(t) {
                        var n = e._configDataArr[1].CustomPart.Element;
                        t.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_" + e._enemyElementSpriteName[n])
                    })
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "elementTrial_rank".ToUILocale(), this.ThreeSeriesToggleLabels.forEach(function(e) {
                        e.string = "elementTrial_three".ToUILocale()
                    }), this.LightDarkToggleLabels.forEach(function(e) {
                        e.string = "elementTrial_light".ToUILocale()
                    })
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._rankPrefab);
                    e.setParent(this.CenterNode), this._rank_detail_item = e.getComponent(u.default)
                }, t.prototype.OnEvent = function() {
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ThreeSeriesToggle.node.on("click", this.OnThreeSeriesToggleClick, this), this.LightDarkToggle.node.on("click", this.OnLightDarkToggleClick, this)
                }, t.prototype.OnReturnButtonClick = function() {
                    this.Close()
                }, t.prototype.OnThreeSeriesToggleClick = function() {
                    var e = this;
                    if (this.ThreeSeriesToggle.isChecked = !0, this._type = 0, e._rankDataArr[e._type]) e.SetUI();
                    else {
                        var t = new c.Req_Activity_GetRank;
                        t.ActivityId = e._configDataArr[e._type]._id, p.RpcComponent.Instance.Call(t, function(t) {
                            e._rankDataArr[e._type] = t, e.SetUI()
                        }.bind(this))
                    }
                }, t.prototype.OnLightDarkToggleClick = function() {
                    var e = this;
                    if (this.LightDarkToggle.isChecked = !0, this._type = 1, e._rankDataArr[e._type]) e.SetUI();
                    else {
                        var t = new c.Req_Activity_GetRank;
                        t.ActivityId = e._configDataArr[e._type]._id, p.RpcComponent.Instance.Call(t, function(t) {
                            e._rankDataArr[e._type] = t, e.SetUI()
                        }.bind(this))
                    }
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Node)], t.prototype, "CenterNode", void 0), i([y(cc.Button)], t.prototype, "ReturnButton", void 0), i([y(cc.Toggle)], t.prototype, "ThreeSeriesToggle", void 0), i([y(cc.Toggle)], t.prototype, "LightDarkToggle", void 0), i([y(cc.Label)], t.prototype, "ThreeSeriesToggleLabels", void 0), i([y(cc.Label)], t.prototype, "LightDarkToggleLabels", void 0), i([y(cc.Sprite)], t.prototype, "ThreeSeriesToggleIcons", void 0), i([y(cc.Sprite)], t.prototype, "LightDarkToggleIcons", void 0), i([f], t)
            }(l.BaseUIFullScreenPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    ElementTrialRewardListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "08f16iCBktCva2jy56W441/", "ElementTrialRewardListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Rank = null, t.No1 = null, t.No2 = null, t.No3 = null, t.RewardNode = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function(e, t) {
                    this._data = e, this._ranks = t, this.InitNodes(), this.SetRank(), this.SetReward()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetRank = function() {
                    this.No1.active = 1 == this._data.Rank, this.No2.active = 2 == this._data.Rank, this.No3.active = 3 == this._data.Rank, this.Rank.node.active = this._data.Rank > 3, this.Rank.string = this._ranks[0] + "-" + this._ranks[1]
                }, t.prototype.SetReward = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._data.Rewards.forEach(function(e, n) {
                                        if (!t._itemNodes[n]) {
                                            var o = e.Items[0],
                                                r = e.Items[1];
                                            if (!t._itemNodes[n]) {
                                                var i = cc.instantiate(t._itemPrefab);
                                                i.parent = t.RewardNode, t._itemNodes[n] = i
                                            }
                                            t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(p.ItemComponent).Init({
                                                ItemId: o,
                                                Count: r
                                            }, p.ItemComponentType.ItemCommon)
                                        }
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemNodes = []
                }, i([g(cc.Label)], t.prototype, "Rank", void 0), i([g(cc.Node)], t.prototype, "No1", void 0), i([g(cc.Node)], t.prototype, "No2", void 0), i([g(cc.Node)], t.prototype, "No3", void 0), i([g(cc.Node)], t.prototype, "RewardNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ElementTrialRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "82b5dtMVGNJ4IgCE8gi2SWi", "ElementTrialRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ElementTrialRewardListItem"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Components/ItemComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.ParentNode = null, t.RankDescLabel = null, t.MyRankNode = null, t.MyRankLabel = null, t.RewardNode = null, t.NoRankLabel = null, t._itemNodes = [], t._cellNodes = [], t._myRank = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleElementTrial/SubItems/ElementTrialRewardListItem", cc.Prefab), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([e, t]).then(function(e) {
                                        n._cellPrefab = e[0], n._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0], this._myRank = t[1]
                }, t.prototype.InitUI = function() {
                    this.TitleLabel.string = "elementTrial_rank_reward".ToUILocale(), this.RankDescLabel.string = "elementTrial_myRank".ToUILocale(), this.NoRankLabel.string = "openServer_heroTest_noRatingYet".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetMyRank(), this.SetRewardList()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this._cellNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetMyRank = function() {
                    var e = this;
                    if (this.NoRankLabel.node.active = !this._myRank, this.MyRankNode.active = this._myRank && this._myRank > 0, this._myRank && this._myRank > 0 && (this.MyRankLabel.string = this._myRank.toString()), this._myRank && this._myRank > 0) {
                        var t = this.FindMyReward(this._myRank);
                        t && t.Rewards.length > 0 && t.Rewards.forEach(function(t, n) {
                            if (!e._itemNodes[n]) {
                                var o = t.Items[0],
                                    r = t.Items[1];
                                if (!e._itemNodes[n]) {
                                    var i = cc.instantiate(e._itemPrefab);
                                    i.parent = e.RewardNode, e._itemNodes[n] = i
                                }
                                e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(d.ItemComponent).Init({
                                    ItemId: o,
                                    Count: r
                                }, d.ItemComponentType.ItemCommon)
                            }
                        })
                    }
                }, t.prototype.SetRewardList = function() {
                    var e = this;
                    this._configData.Rewards.forEach(function(t, n) {
                        if (!e._cellNodes[n]) {
                            var o = cc.instantiate(e._cellPrefab);
                            o.parent = e.ParentNode, e._itemNodes[n] = o
                        }
                        e._itemNodes[n].active = !0;
                        var r = e.GetRankArean(t.Id);
                        e._itemNodes[n].getComponent(u.default).InitUI(t, r)
                    })
                }, t.prototype.GetRankArean = function(e) {
                    var t = this._configData.Rewards.find(function(t) {
                            return t.Id == e
                        }),
                        n = this._configData.Rewards.find(function(t) {
                            return t.Id == e - 1
                        });
                    return n ? t.Rank - n.Rank == 1 ? [t.Rank, t.Rank] : [n.Rank + 1, t.Rank] : [1, 1]
                }, t.prototype.FindMyReward = function(e) {
                    for (var t = null, n = 0; n < this._configData.Rewards.length; n++)
                        if (e <= this._configData.Rewards[n].Rank) {
                            t = this._configData.Rewards[n];
                            break
                        } return t
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._itemNodes = [], this._cellNodes = []
                }, i([g(cc.Label)], t.prototype, "TitleLabel", void 0), i([g(cc.Node)], t.prototype, "ParentNode", void 0), i([g(cc.Label)], t.prototype, "RankDescLabel", void 0), i([g(cc.Node)], t.prototype, "MyRankNode", void 0), i([g(cc.Label)], t.prototype, "MyRankLabel", void 0), i([g(cc.Node)], t.prototype, "RewardNode", void 0), i([g(cc.Label)], t.prototype, "NoRankLabel", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./ElementTrialRewardListItem": "ElementTrialRewardListItem"
    }],
    ElementTrialSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9514cN4ugpHo7LGSLeQFZ5W", "ElementTrialSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("./CustomRichText"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/UIFrame/UIManager"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./DisplayRewardsComponent"),
            f = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Components/Components"),
            m = e("../../Components/Components"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Battle/BattleManager"),
            C = e("../../Auxiliary/DataUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Content = null, t.LineText = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t.BattleName = null, t.BtnNextLevel = null, t.LabelBtnNextLevel = null, t._mapId = 0, t._isInit = !1, t._activityId = 0, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t), this._mapId = t.Reports[0].MapId, this._activityId = t.SettleParams[0], this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.GetInstanceType(), this.SetBattleName(), this.SetBtnState(), this.LoadReward(), this.RenderContent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.LineText.string = "win_get_reward".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale(), this.LabelBtnNextLevel.string = "idleBattle_main_nextLevel".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnNextLevel.node.on("click", this.OnBtnNextClick, this)
                }, t.prototype.SetBtnState = function() {
                    var e = p.UIManager.Instance.GetUIPanel(d.PanelConfig.ElementTrialPanel.Path);
                    this.BtnReturn.node.active = null == e
                }, t.prototype.OnBtnSureClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    if (p.UIManager.Instance.BackUIPanel(), this._activityId) {
                        var e = m.DataCenter.Instance.ActivityConfigs[this._activityId],
                            t = 0;
                        e && (t = e.CustomPart.Element < 4 ? 0 : 1);
                        var n = new u.Req_Activity_GetRank;
                        n.ActivityId = this._activityId, g.RpcComponent.Instance.Call(n, function(e) {
                            p.UIManager.Instance.ShowUIPanel(d.PanelConfig.ElementTrialPanel.Path, this._activityId, e, t)
                        }.bind(this))
                    }
                }, t.prototype.OnBtnNextClick = function() {
                    if (p.UIManager.Instance.BackUIPanel(), this.CheckCanNextLevel()) {
                        var e = !1;
                        this._BattleData.InBackground && (e = !0), this._BattleData.InBackground ? (I.UIUtlity.ShowFloatingHint("idleBattle_startNext".ToUILocale()), this.RequestElementChallenge(null, e)) : this.RequestElementChallenge(null, e)
                    }
                }, t.prototype.RequestElementChallenge = function(e, t) {
                    var n = new u.Req_Activity_ElementTestChallenge;
                    n.ActivityId = this._activityId, n.Formations = e, g.RpcComponent.Instance.Call(n, function(e) {
                        _.BattleManager.Instance.StartPlay(e.Report, null, t)
                    }.bind(this))
                }, t.prototype.CheckCanNextLevel = function() {
                    var e = !0,
                        t = g.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId),
                        n = g.DataCenter.Instance.ActivityConfigs[this._activityId],
                        o = n.Maps.length;
                    if (t) {
                        var r = C.default.Instance.ComputeDeadTime(n.Common);
                        if (g.RpcComponent.Instance.ServerTime > r) return I.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()), !1;
                        t.IntValue + 1 > o && (I.UIUtlity.ShowFloatingHint("climbTower_limit_max_level".ToUILocale()), e = !1)
                    }
                    return e
                }, t.prototype.GetInstanceType = function() {
                    var e = this,
                        t = g.DataCenter.Instance.ActivityConfigs[this._activityId],
                        n = t.Maps.findIndex(function(t) {
                            return t.MapId == e._mapId
                        });
                    n > -1 && (this._instanceType = t.CustomPart.Element, this._layerIndex = n + 1)
                }, t.prototype.SetBattleName = function() {
                    this.ConfigBattleName()
                }, t.prototype.ConfigBattleName = function() {
                    var e = ("elementTrial_type_" + this._instanceType).ToUILocale(),
                        t = "win_layer_type".ToUILocale().Fmt(e, this._layerIndex);
                    this.BattleName.Init(t)
                }, t.prototype.LoadReward = function() {
                    var e = this;
                    this._rewardData = [];
                    var t = g.DataCenter.Instance.ActivityConfigs[this._activityId],
                        n = t.Maps.findIndex(function(t) {
                            return t.MapId == e._mapId
                        });
                    if (n > -1)
                        for (var o = 0; o < t.Maps[n].Rewards.length; o++) {
                            var r = t.Maps[n].Rewards[o].Items[0],
                                i = t.Maps[n].Rewards[o].Items[1];
                            this._rewardData.push({
                                ItemId: r,
                                Count: i
                            })
                        }
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : [4, f.AssetsManager.Instance.LoadAsset(d.BundlePath.DisplayRewardsComponent)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._displayRewardPrefab = e, n.label = 2;
                                case 2:
                                    return t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(h.DisplayRewardsComponent), this.Content.addChild(t), this._rewardComponent.Init(this._rewardData, this.Content.height), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && y.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([S(cc.Node)], t.prototype, "Content", void 0), i([S(cc.Label)], t.prototype, "LineText", void 0), i([S(cc.Button)], t.prototype, "BtnReturn", void 0), i([S(cc.Button)], t.prototype, "BtnSure", void 0), i([S(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([S(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([S(c.CustomRichText)], t.prototype, "BattleName", void 0), i([S(cc.Button)], t.prototype, "BtnNextLevel", void 0), i([S(cc.Label)], t.prototype, "LabelBtnNextLevel", void 0), i([b], t)
            }(l.default);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./CustomRichText": "CustomRichText",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    ElementTypeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6ab04o6U8hM5bjTPvJAy+7n", "ElementTypeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ElementTypeItem = null, t.SelectBgNode = null, t.ElementBg = null, t.Name = null, t._isInitUI = !1, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.ElementTypeItem.on(cc.Node.EventType.TOUCH_END, this.OnElementTypeItemClick, this), [2]
                        })
                    })
                }, t.prototype.Init = function(e, t) {
                    this._isInitUI || (this._isInitUI = !0, this.InitUI()), this._elementType = e, this.ElementBg.spriteFrame = c.UIUtlity.GetHeroElementIcon(e), this.Name.string = t
                }, t.prototype.ShowBg = function(e) {
                    this.SelectBgNode.active = e
                }, t.prototype.OnElementTypeItemClick = function() {
                    l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SELECT_ELEMENT_TYPE_ITEM, this._elementType)
                }, i([h(cc.Node)], t.prototype, "ElementTypeItem", void 0), i([h(cc.Node)], t.prototype, "SelectBgNode", void 0), i([h(cc.Sprite)], t.prototype, "ElementBg", void 0), i([h(cc.Label)], t.prototype, "Name", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    EliteFormationListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6206bQrvw5GfaJh7ilFF+Xt", "EliteFormationListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ItemComponent"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/DataCenter"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("./HeadComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../../EZFramework/EZFramework"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FormationGrid = null, t.DescLabel = null, t.PlayerNameLabel = null, t.HeadRoot = null, t._commonItemPrefab = null, t._headItemPrefab = null, t._headItem = null, t._itemArray = [], t._isInit = !1, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    y.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnHeroClick, this)
                }, t.prototype.onDisable = function() {
                    y.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnHeroClick)
                }, t.prototype.OnHeroClick = function(e, t) {
                    -1 != this.FormationGrid.node.children.indexOf(t) && I.UIManager.Instance.ShowUIPanel(c.PanelConfig.HeroHandbookPanel.Path, e)
                }, t.prototype.SetUI = function(e, t, n) {
                    this._playerInfo = e, this._datas = t, this._formationIndex = n, this._isInit || (this.SetClickEvent(), this._isInit = !0), this.SetBaseUI(), this.SetFormationShow(), this.LoadPlayerHead()
                }, t.prototype.SetBaseUI = function() {
                    this.DescLabel.string = "iWantStrong_elite_formation_tag".ToUILocale().Fmt(this._formationIndex), this.PlayerNameLabel.string = this._playerInfo.Name
                }, t.prototype.SetClickEvent = function() {
                    this.HeadRoot.on("click", this.OnBtnHeaderClick, this)
                }, t.prototype.SetFormationShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._commonItemPrefab = e, i.label = 2;
                                case 2:
                                    for (t = 0; t < this._datas.length; t++) n = this._datas[t], null == this._itemArray[t] && ((o = cc.instantiate(this._commonItemPrefab).getComponent(u.ItemComponent)).node.parent = this.FormationGrid.node, o.node.name = n.HeroId.toString(), this._itemArray[t] = o), r = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, n.HeroId), this._itemArray[t].Init({
                                        ItemId: r.Id,
                                        StarLevel: n.StarLevel,
                                        ElementType: r.ElementType
                                    }, u.ItemComponentType.HeroInfo), null == f.DataCenter.Instance.GetDataById(h.HeroInfo_Model, n.HeroId) ? this._itemArray[t].OnIconGray(!0) : this._itemArray[t].OffIconGray();
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.LoadPlayerHead = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return null != this._headItemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._headItemPrefab = e, this._unloadAssets.push(e), o.label = 2;
                                case 2:
                                    return null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(g.default), this._headItem.node.parent = this.HeadRoot), t = this._playerInfo.HeadIcon, n = this._playerInfo.HeadFrame, this._headItem.SetUI(t, n), [2]
                            }
                        })
                    })
                }, t.prototype.OnBtnHeaderClick = function() {
                    this._playerInfo.Uid != f.DataCenter.Instance.Uid && y.UIManager.Instance.ShowUIPanel(c.PanelConfig.PlayerInfoPanel.Path, this._playerInfo.Uid)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && y.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([v(cc.Layout)], t.prototype, "FormationGrid", void 0), i([v(cc.Label)], t.prototype, "DescLabel", void 0), i([v(cc.Label)], t.prototype, "PlayerNameLabel", void 0), i([v(cc.Node)], t.prototype, "HeadRoot", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "./HeadComponent": "HeadComponent",
        "./ItemComponent": "ItemComponent"
    }],
    EliteFormationModule: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ece73ORVD5M0oHYezMOQ6SL", "EliteFormationModule");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("./EliteFormationListItem"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FormationGrid = null, t._isInit = !1, t._listItemPrefab = null, t._listItemArray = [], t._unloadAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Display = function(e) {
                    this._formationData = e, this.SetListItemShow()
                }, t.prototype.SetListItemShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != this._listItemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(n.ListItemPath, cc.Prefab)];
                                case 1:
                                    if (e = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._unloadAssets.push(e), this._listItemPrefab = e, r.label = 2;
                                case 2:
                                    for (t = 0; t < this._listItemArray.length; t++) this._listItemArray[t].node.active = !1;
                                    for (t = 0; t < this._formationData.length; t++) null == this._listItemArray[t] && ((o = cc.instantiate(this._listItemPrefab).getComponent(u.default)).node.parent = this.FormationGrid.node, this._listItemArray[t] = o), this._listItemArray[t].SetUI(this._formationData[t].PlayerInfo, this._formationData[t].Formation, t + 1), this._listItemArray[t].node.active = !0;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.ListItemPath = "IWantStrongPanel/Private/EliteFormationListItem", i([h(cc.Layout)], t.prototype, "FormationGrid", void 0), n = i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "./EliteFormationListItem": "EliteFormationListItem"
    }],
    EmaPrayCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "96c90HTnjBOeKqeb28/cXD5", "EmaPrayCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("./ItemComponent"),
            p = e("../../Auxiliary/EventKeys"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.ItemNode = null, t.PrayButton = null, t.PrayButtonLabel = null, t.UnPrayButton = null, t.UnPrayButtonLabel = null, t.SelectIconNode = null, t.ReceivedLabel = null, t.MaskIcon = null, t.BgIcon = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.PrayButtonLabel.string = "Activity_EmaPray_Pray".ToUILocale(), this.UnPrayButtonLabel.string = "Activity_EmaPray_Pray".ToUILocale(), this.ReceivedLabel.string = "Activity_EmaPray_Received".ToUILocale(), this.PrayButton.node.on("click", this.OnPrayButtonClick, this), this.UnPrayButton.node.on("click", this.OnUnprayButtonClick, this)
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o, r, i, a, s) {
                    this._prayCardConfig = e, this._selectedArray = t, this._activityId = o, this._index = r, this._itemPrefab = s, this.BgIcon.spriteFrame = a, this.MaskIcon.spriteFrame = a, this.SetItemNode(), this.Name.string = i, this._isSelect = t.includes(this._index), this.SelectIconNode.active = this._isSelect, this.PrayButton.node.active = !this._isSelect && t.length < n, this.UnPrayButton.node.active = t.length >= n && !this._isSelect
                }, t.prototype.SetItemNode = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemNode), this._itemComponent = e.getComponent(u.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: this._prayCardConfig.ItemId,
                        Count: this._prayCardConfig.Count[0]
                    })
                }, t.prototype.OnPrayButtonClick = function() {
                    var e = new l.Req_Activity_EmaPrayChooseRewards;
                    e.ActivityId = this._activityId, e.Index = this._index, c.RpcComponent.Instance.Call(e, function(e) {
                        s.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnUnprayButtonClick = function() {
                    s.UIUtlity.ShowFloatingHint("Activity_EmaPray_Pray_NoneTimes_Tip".ToUILocale())
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && s.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, i([f(cc.Label)], t.prototype, "Name", void 0), i([f(cc.Node)], t.prototype, "ItemNode", void 0), i([f(cc.Button)], t.prototype, "PrayButton", void 0), i([f(cc.Label)], t.prototype, "PrayButtonLabel", void 0), i([f(cc.Button)], t.prototype, "UnPrayButton", void 0), i([f(cc.Label)], t.prototype, "UnPrayButtonLabel", void 0), i([f(cc.Node)], t.prototype, "SelectIconNode", void 0), i([f(cc.Label)], t.prototype, "ReceivedLabel", void 0), i([f(cc.Sprite)], t.prototype, "MaskIcon", void 0), i([f(cc.Sprite)], t.prototype, "BgIcon", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    EmoticonScrollComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5a091BnwRRM25g80K3MXzev", "EmoticonScrollComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("./CustomLayout"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomLayout = null, t.Container = null, t._initFlag = !1, t._emojiIds = [], t._emoticomSprites = [], t._emojiConfigMap = {}, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return p.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), [2]
                        })
                    })
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Set = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return t = l.ConfigDataComponent.Instance.GetConfigById(c.EmojiType_Config, e), this._emojiIds = t.EmojiIds, this._initFlag ? [3, 2] : (this._initFlag = !0, [4, p.AssetsManager.Instance.LoadAsset("Chatting/Private/EmoticonComponent", cc.Prefab)]);
                                case 1:
                                    if (n = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._unloadAssets.push(n), this._emoticonPrefab = n, this._emojiConfigMap = l.ConfigDataComponent.Instance.GetConfig(c.EmojiImage_Config), s.label = 2;
                                case 2:
                                    return o = "MultilangEmoticon", (r = l.ConfigDataComponent.Instance.GetConfigById(c.EmojiImage_Config, t.EmojiIds[0])).IsMultilang > 1 && (o = "MultilangEmoticon" + r.IsMultilang), i = l.GlobalConfigComponent.GetMultilangKey("Multilang/" + o), [4, p.AssetsManager.Instance.LoadAsset(i, cc.SpriteAtlas)];
                                case 3:
                                    return a = s.sent(), this.isValid ? (this._unloadAssets.push(a), this._emojiAtlasMul = a, this.CustomLayout.Init(this._emoticonPrefab), this.CustomLayout.RenderLayOut(this._emojiIds.length), [2]) : (p.AssetsManager.Instance.UnloadAsset(a), [2])
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && p.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        if (n._emojiIds[t]) {
                            var o = e.getComponent(cc.Sprite);
                            e.name = n._emojiIds[t].toString(), e.on("click", n.onClickEmoji, n);
                            var r, i = "Emoticon" + n._emojiIds[t];
                            n._emojiConfigMap[n._emojiIds[t]].IsMultilang && (r = n._emojiAtlasMul), r && (o.spriteFrame = r.getSpriteFrame(i))
                        }
                    })
                }, t.prototype.onClickEmoji = function(e) {
                    var t = Number.parseInt(e.node.name);
                    p.Game.EventDispatcher.Emit(d.EventKeys.EVENT_SEND_EMOJI, t)
                }, i([y(u.default)], t.prototype, "CustomLayout", void 0), i([y(cc.Node)], t.prototype, "Container", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "./CustomLayout": "CustomLayout"
    }],
    EmoticonToggleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2daa94EQ6lLP4hr1RpEv69g", "EmoticonToggleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../Consts/Etc"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../Components/RpcComponent"),
            u = e("./CustomToggle"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Toggle = null, t.SpriteList = [], t.Time = null, t.Reddot = null, t.IconSprite = null, t
                }
                return r(t, e), t.prototype.SetIconSprite = function(e) {
                    this.IconSprite.spriteFrame = e
                }, t.prototype.SetState = function(e) {
                    this.Toggle.isChecked = e
                }, t.prototype.SetReddot = function(e) {
                    this.Reddot.active = e
                }, t.prototype.SetTime = function(e) {
                    e > 0 ? (this.Time.node.color = (new cc.Color).fromHEX("#23e123"), this._endTime = e, this.SetCountDown()) : 0 == e ? (this.unschedule(this.SetCountDown), this.Time.string = "") : e < 0 && (this.unschedule(this.SetCountDown), this.Time.string = "CollectionPavilion_Item_Lock".ToUILocale(), this.Time.node.color = (new cc.Color).fromHEX("#ff4848"))
                }, t.prototype.SetCountDown = function() {
                    if (this._endTime - c.RpcComponent.Instance.ServerTime < 0) this.Time.string = "CollectionPavilion_Item_Lock".ToUILocale(), this.Time.node.color = (new cc.Color).fromHEX("#ff4848"), this.unschedule(this.SetCountDown), s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_PAID_EMOJI_REFRESH);
                    else {
                        this.unschedule(this.SetCountDown);
                        var e = this._endTime - c.RpcComponent.Instance.ServerTime;
                        e > a.Etc.DayDuration ? (this.Time.string = "workTime".ToUILocale().Fmt(Math.floor(e / a.Etc.DayDuration)), this._leftTimer = Math.ceil(e % a.Etc.DayDuration / 1e3)) : e > a.Etc.HourDuration ? (this.Time.string = "DiscountTicketBag_Item_Time_Hour".ToUILocale().Fmt(Math.floor(e / a.Etc.HourDuration)), this._leftTimer = Math.ceil(e % a.Etc.HourDuration / 1e3)) : (this.Time.string = Math.floor(e / a.Etc.MinuteDuration) + "minutes".ToUILocale(), this._leftTimer = Math.ceil(e % a.Etc.MinuteDuration / 1e3)), this.schedule(this.SetCountDown, this._leftTimer)
                    }
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([h(u.default)], t.prototype, "Toggle", void 0), i([h([cc.Sprite])], t.prototype, "SpriteList", void 0), i([h(cc.Label)], t.prototype, "Time", void 0), i([h(cc.Node)], t.prototype, "Reddot", void 0), i([h(cc.Sprite)], t.prototype, "IconSprite", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/RpcComponent": "RpcComponent",
        "./CustomToggle": "CustomToggle"
    }],
    EndlessAbyssAwardHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "50157AkrXNKHb9t6pUpRvmE", "EndlessAbyssAwardHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/DataCenter"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../Components/Components"),
            m = e("../Components/CustomLayout"),
            I = e("../Components/EndlessAbyssSingleStageAwardComponent"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../Components/CustomToggle"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.ModeToggles = [], t.Scroll = null, t.CustomLayoutContent = null, t.TitleLabel = null, t.StageAwardLabel = null, t.WavesLabel = [], t._mode = void 0, t._playerModel = null, t._mapConfig = null, t._totalStagesOnModes = null, t._awardPointsWaveIndex = null, t._isLayoutInit = !1, t._isFirstSet = !0, t
                }
                return r(t, e), t.prototype.onDisable = function() {
                    this.OffEvent()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("EndlessAbyssPanel/Component/SingleStageAward")];
                                case 1:
                                    return t._stagePrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    if ("awardContainer" == t.parent.name) {
                        var n = Math.floor(e / 10),
                            o = e % 10,
                            r = this._awardPointsWaveIndex[o];
                        this.IsAwardExist(n, o, r) && this._playerModel.PointReward.includes(10 * n + o) ? this.GetPointReward(this._mode) : f.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                    }
                }, t.prototype.IsAwardExist = function(e, t, n) {
                    return this._playerModel.PointReward.includes(10 * e + t) || e > this._playerModel.MapIndex + 1 || e == this._playerModel.MapIndex + 1 && n > this._playerModel.RewardIndex
                }, t.prototype.GetAwardPointsDataArray = function(e) {
                    for (var t = Array(), n = 0; n < this._mapConfig.PointReward.length; n++) t.push({
                        WaveIndex: this._awardPointsWaveIndex[n],
                        ItemId: this._mapConfig.PointReward[n].Items[0],
                        ItemCount: this._mapConfig.PointReward[n].Items[1],
                        ItemExist: this.IsAwardExist(e, n, this._awardPointsWaveIndex[n])
                    });
                    return t
                }, t.prototype.GetPointReward = function(e) {
                    var t = this,
                        n = new c.Req_Map_EndlessAbyssPointReward;
                    n.Type = e, g.RpcComponent.Instance.Call(n, function(e) {
                        f.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t.SetAwardItems(!1)
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "abyss_firstPassAward".ToUILocale(), this.StageAwardLabel.string = "stage_award".ToUILocale();
                    for (var t = 0; t < this.ModeToggles.length; t++) this.ModeToggles[t].node.on("toggle", this.OnSwitchToggle, this), this.ModeToggles[t].Init(("abyss_toggleLabel" + t).ToUILocale())
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitUI.call(this), this._mode = t[0], this._totalStagesOnModes = t[1], this._awardPointsWaveIndex = t[2]
                }, t.prototype.RefreshPlayerData = function() {
                    this._playerModel = p.DataCenter.Instance.GetDataById(c.EndlessAbyss_Model, this._mode)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.OffEvent(), this.OnEvent(), this.RefreshPlayerData();
                    var t = this.ModeToggles[this._mode - 1];
                    if (t.isChecked = !0, this.InitCustomLayout(), this._mode = _.EndlessAbyssType.None, this.OnSwitchToggle(t), this._isFirstSet) {
                        for (var n = 0; n < this.WavesLabel.length; n++) this.WavesLabel[n].string = "abyss_levelIndex".ToUILocale().Fmt(this._awardPointsWaveIndex[n]);
                        this._isFirstSet = !1
                    }
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayoutContent.Init(this._stagePrefab, !1))
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    this._mode != t && (this._mode = t, this.Scroll.stopAutoScroll(), this.SetAwardItems())
                }, t.prototype.SetAwardItems = function(e) {
                    return void 0 === e && (e = !0), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.RefreshPlayerData(), this.CustomLayoutContent.RenderLayOut(this._totalStagesOnModes[this._mode], this._playerModel.MapIndex > 0 ? this._playerModel.MapIndex - 1 : 0), e && f.UIUtlity.AnimationItemsByType1(this.CustomLayoutContent.node.children), [2]
                        })
                    })
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayoutContent && e.forEach(function(e, t) {
                        var o = t + 1,
                            r = d.ConfigDataComponent.Instance.GetConfigById(u.EndlessAbyssType_Config, n._mode);
                        n._mapConfig = d.ConfigDataComponent.Instance.GetConfigById(u.MapEndlessAbyss_Config, r.MapIdPrefix + o), e.getComponent(I.default).Set(o, n.GetAwardPointsDataArray(o), n._playerModel.PointReward)
                    })
                }, t.prototype.OnEvent = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.OffEvent = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, i([S(C.default)], t.prototype, "ModeToggles", void 0), i([S(cc.ScrollView)], t.prototype, "Scroll", void 0), i([S(m.default)], t.prototype, "CustomLayoutContent", void 0), i([S(cc.Label)], t.prototype, "TitleLabel", void 0), i([S(cc.Label)], t.prototype, "StageAwardLabel", void 0), i([S({
                    type: cc.Label
                })], t.prototype, "WavesLabel", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/EndlessAbyssSingleStageAwardComponent": "EndlessAbyssSingleStageAwardComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    EndlessAbyssBuffChooseHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8d43b8+sblONqX586ghgX8n", "EndlessAbyssBuffChooseHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Components/Components"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.Title = null, t.BuffCardArray = [], t.ConfirmButtonLabel = null, t.ConfirmButton = null, t.TimeRemainTip = null, t.HighLightBG = null, t._buffNameName = "Name", t._buffSpriteName = "Sprite", t._buffDescName = "Desc", t._buffIdArray = [], t._textures = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "abyss_pleaseChooseABuff".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._timeRemainderLimit = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("EndlessAbyssBuffChooseTimeLimit"), this._timeRemainder = this._timeRemainderLimit, this.RefreshRemainderTime(), [2]
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._buffIdArray = t[0], l.EZLog.Log("buff id array = ", this._buffIdArray)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.VariedValueAssign(), this.SetCardArray()
                }, t.prototype.VariedValueAssign = function() {
                    var e = this;
                    this.HighLightBG.enabled = !1, this._chosenCardIndex = -1, this._timeRemainder = this._timeRemainderLimit, this.schedule(function() {
                        e._timeRemainder--, e.RefreshRemainderTime(), e._timeRemainder < 0 && (e._chosenCardIndex = Math.floor(3 * Math.random()), e.OnConfirmButtonClick())
                    }, 1)
                }, t.prototype.RefreshRemainderTime = function() {
                    var e = "<color = #33FF8E>" + this._timeRemainder + "</c>";
                    this.TimeRemainTip.string = "<outline width = 3 color = #202434>" + "abyss_buffAutoChooseAndClose".ToUILocale().Fmt(e) + "</outline>"
                }, t.prototype.SetCardArray = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    for (t = 0; t < this.BuffCardArray.length; t++) this.BuffCardArray[t].node.getChildByName(this._buffNameName).getComponent(cc.Label).string = u.ConfigDataComponent.Instance.GetLocale("EndlessAbyssBuff_name_" + this._buffIdArray[t]), this.BuffCardArray[t].node.getChildByName(this._buffDescName).getComponent(cc.RichText).string = u.ConfigDataComponent.Instance.GetLocale("EndlessAbyssBuff_desc_" + this._buffIdArray[t]);
                                    for (e = [], t = 0; t < this._buffIdArray.length; t++) e[t] = l.AssetsManager.Instance.LoadAsset("EndlessAbyssPanel/BuffIcon/" + this._buffIdArray[t], cc.SpriteFrame);
                                    return [4, Promise.all(e).then(function(e) {
                                        n.isValid ? n._textures = e : e.forEach(function(e) {
                                            l.AssetsManager.Instance.UnloadAsset(e)
                                        })
                                    })];
                                case 1:
                                    if (o.sent(), !this.isValid) return [2];
                                    for (t = 0; t < this.BuffCardArray.length; t++) this.BuffCardArray[t].node.getChildByName(this._buffSpriteName).getComponent(cc.Sprite).spriteFrame = this._textures[t];
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnEvent = function() {
                    var e = this;
                    this.ConfirmButton.node.on("click", this.OnConfirmButtonClick, this), this.BuffCardArray.forEach(function(t) {
                        t.node.on(cc.Node.EventType.TOUCH_END, e.OnCardTouch, e)
                    })
                }, t.prototype.OnConfirmButtonClick = function() {
                    this._chosenCardIndex < 0 ? p.UIUtlity.ShowFloatingHint("abyss_pleaseChooseABuff".ToUILocale()) : (this.Close(), this.unscheduleAllCallbacks(), l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_ABYSS_BUFF_CHOSEN, this._chosenCardIndex))
                }, t.prototype.OnCardTouch = function(e) {
                    var t = e.currentTarget;
                    this.HighLightBG.enabled = !0, this.HighLightBG.node.position = t.position, this._chosenCardIndex = Number.parseInt(t.name)
                }, t.prototype.onDestroy = function() {
                    this._textures.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e), l.EZLog.Log("<<<<< \u8d44\u6e90\u5df2\u91ca\u653e")
                    }), this._textures = [], this.unscheduleAllCallbacks()
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f({
                    type: [cc.Sprite]
                })], t.prototype, "BuffCardArray", void 0), i([f(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([f(cc.Button)], t.prototype, "ConfirmButton", void 0), i([f(cc.RichText)], t.prototype, "TimeRemainTip", void 0), i([f(cc.Sprite)], t.prototype, "HighLightBG", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    EndlessAbyssBuffPrefab: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "17ed1ghzApCIJ4R6Sj7wWU6", "EndlessAbyssBuffPrefab");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.Desc = null, t.BuffSprite = null, t
                }
                return r(t, e), t.prototype.SetName = function(e) {
                    return this.Name.string = e, this
                }, t.prototype.SetDesc = function(e) {
                    return this.Desc.string = e, this
                }, t.prototype.SetBuff = function(e) {
                    return this.BuffSprite.spriteFrame = e, this
                }, t.prototype.SetSplitLine = function() {
                    return this
                }, i([l(cc.Label)], t.prototype, "Name", void 0), i([l(cc.RichText)], t.prototype, "Desc", void 0), i([l(cc.Sprite)], t.prototype, "BuffSprite", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    EndlessAbyssMyBuffHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dfbbdIJTD1Bip2Nr8A/QK0g", "EndlessAbyssMyBuffHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("./EndlessAbyssBuffPrefab"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.Title = null, t.ViewCustomLayout = null, t.DefaultLabel = null, t._initLayout = !0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("EndlessAbyssPanel/Component/EndlessAbyssBuffPrefab"), [4, Promise.all([t]).then(function(e) {
                                        n._buffCardPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "abyss_myBuff".ToUILocale(), this.DefaultLabel.string = "abyss_currentNoBuff".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._currentMode = t[0]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this);
                    var t = u.DataCenter.Instance.GetDataById(d.EndlessAbyss_Model, this._currentMode);
                    this._buffsArray = t.BuffIds, this.DefaultLabel.node.active = 0 == this._buffsArray.length, this._initLayout && (this.ViewCustomLayout.Init(this._buffCardPrefab), this._initLayout = !1), this.ViewCustomLayout.RenderLayOut(this._buffsArray.length)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnLayoutRefresh, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_BATTLEFINISHED, this.Close, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_ABYSS_BUFF_SHOW, this.Close, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnLayoutRefresh), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_BATTLEFINISHED, this.Close), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ABYSS_BUFF_SHOW, this.Close, this)
                }, t.prototype.OnLayoutRefresh = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function() {
                            return this.ViewCustomLayout != t ? [2] : (e.forEach(function(e, t) {
                                return a(n, void 0, void 0, function() {
                                    var n, o;
                                    return s(this, function(r) {
                                        switch (r.label) {
                                            case 0:
                                                return n = this._buffsArray[t], [4, this.LoadDynamicAsset("EndlessAbyssPanel/BuffIcon/" + n, cc.SpriteFrame)];
                                            case 1:
                                                return o = r.sent(), this.isValid ? (e.getComponent(h.default).SetName(u.ConfigDataComponent.Instance.GetLocale("EndlessAbyssBuff_name_" + n)).SetDesc(u.ConfigDataComponent.Instance.GetLocale("EndlessAbyssBuff_desc_" + n)).SetBuff(o), [2]) : (l.AssetsManager.Instance.UnloadAsset(o), [2])
                                        }
                                    })
                                })
                            }), [2])
                        })
                    })
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(p.default)], t.prototype, "ViewCustomLayout", void 0), i([g(cc.Label)], t.prototype, "DefaultLabel", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "./EndlessAbyssBuffPrefab": "EndlessAbyssBuffPrefab"
    }],
    EndlessAbyssRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c40d2Wr9yVBG4w7DRshBrp8", "EndlessAbyssRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/RankDetailComponent"),
            f = e("../Components/CustomToggle"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.ReturnButton = null, t.Toggles = [], t.Center = null, t._toggleNames = [], t._rankPrefab = null, t._modeToRankType = [0, c.RankTypeId.EndlessAbyss_Single, c.RankTypeId.EndlessAbyss_Multi], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent", cc.Prefab)];
                                case 1:
                                    return t._rankPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "abyss_marshRank".ToUILocale();
                    for (var t = 0; t < this.Toggles.length; t++) this.Toggles[t].node.on("toggle", this.OnToggleSwitch, this);
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this);
                    var n = cc.instantiate(this._rankPrefab);
                    n.setParent(this.Center), this._rankComponent = n.getComponent(h.default)
                }, t.prototype.OnToggleSwitch = function(e) {
                    this._currentToggleIndex = Number.parseInt(e.name), this.RequestRankDataByType()
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._toggleNames = t[0], this._currentToggleIndex = t[1]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.VariedValueAssign()
                }, t.prototype.VariedValueAssign = function() {
                    for (var e = this, t = function(t) {
                            n.Toggles[t].Init(n._toggleNames[t]);
                            var o = new u.Req_Player_GetRank;
                            o.RankType = n._modeToRankType[t + 1], p.RpcComponent.Instance.Call(o, function(n) {
                                e.Toggles[t].SetInteractable(null != n.Data && n.Data.Rows.length > 0, "rank_empty_list".ToUILocale())
                            })
                        }, n = this, o = 0; o < this.Toggles.length; o++) t(o);
                    this.Toggles[this._currentToggleIndex - 1].isChecked = !0, this.RequestRankDataByType()
                }, t.prototype.RequestRankDataByType = function() {
                    var e = new u.Req_Player_GetRank;
                    e.RankType = this._modeToRankType[this._currentToggleIndex], p.RpcComponent.Instance.Call(e, this.ResponseRankDataSuccess.bind(this))
                }, t.prototype.ResponseRankDataSuccess = function(e) {
                    this._rankData = e.Data, e.MyRank ? this._myValue = e.MyRankData.Value : this._myValue = 0, null != this._rankData && 0 != this._rankData.Rows.length ? this._rankComponent.SetUI(this._modeToRankType[this._currentToggleIndex], this._rankData.Rows, e.MyRank, e.MyRankData) : d.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale())
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Button)], t.prototype, "ReturnButton", void 0), i([m({
                    type: [f.default]
                })], t.prototype, "Toggles", void 0), i([m(cc.Node)], t.prototype, "Center", void 0), i([g], t)
            }(l.BaseUIFullScreenPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    EndlessAbyssSettleContent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a3ef7RMoRxCGbiFOptBf0Dl", "EndlessAbyssSettleContent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/DataCenter"),
            p = e("../Components/ItemComponent"),
            d = e("../Components/SettlementBaseComponent"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../../Consts/Consts"),
            m = e("../../Components/Components"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("./EndlessAbyssUIPanel"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("./NodePool"),
            b = e("../Battle/BattleManager"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleRichText = null, t.RewardGotTag = null, t.BtnConfirm = null, t.BtnConfirmLabel = null, t.BtnReturn = null, t.BtnReturnLabel = null, t.RewardScrollView = null, t.RewardLayout = null, t.NoRewardLabel = null, t.BtnNextLevel = null, t.LabelBtnNextLevel = null, t._itemLineCount = 5, t
                }
                return r(t, e), t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t), this._battleData = t, this._mapId = t.Reports[0].MapId;
                    var n = t.SettleParams;
                    this._reward = n[0], this._currentWaveIndex = n[3], this._totalWaveNumber = n[4], this._stage = n[7], this.MultiLanguageAssign(), this.SetReward(), this.SetButtons()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.TitleRichText.string = "endlessAbyss_settlePanelTitle".ToUILocale().Fmt(this._stage, this._currentWaveIndex), this.RewardGotTag.string = "win_get_reward".ToUILocale(), this.BtnConfirmLabel.string = "ok".ToUILocale(), this.BtnReturnLabel.string = "win_return".ToUILocale(), this.NoRewardLabel.string = "temporaryNoReward".ToUILocale(), this.LabelBtnNextLevel.string = "idleBattle_main_nextLevel".ToUILocale()
                }, t.prototype.SetReward = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return 0 == this._reward.length ? (this.RewardScrollView.node.active = !1, this.RewardLayout.active = !1, this.NoRewardLabel.node.active = !0, [2]) : (this.RewardScrollView.enabled = this._reward.length > this._itemLineCount, this.NoRewardLabel.node.active = !1, e = this, [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    for (this._itemNodePool || (this._itemNodePool = new v.default(this._itemPrefab)), n = 0; n < this._reward.length; n++)(o = this._itemNodePool.Get()).setParent(this.RewardLayout), o.name = this._reward[n].ItemId.toString(), t = m.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, this._reward[n].ItemId), o.getComponent(p.ItemComponent).Init({
                                        ItemId: this._reward[n].ItemId,
                                        Count: this._reward[n].Count
                                    }, t.Star ? p.ItemComponentType.ItemWithStar : p.ItemComponentType.ItemCommon);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetButtons = function() {
                    this.BtnReturn.node.active = this._BattleData.InBackground;
                    var e = this._battleData.MapType == g.MapType.EndlessAbyssSingle ? 1 : 2,
                        t = u.DataCenter.Instance.GetDataById(h.EndlessAbyss_Model, e),
                        n = this.GetLevelNum(e);
                    this.BtnNextLevel.node.active = this._currentWaveIndex >= this._totalWaveNumber && t.MapIndex < n
                }, t.prototype.onEnable = function() {
                    this.BtnConfirm.node.on("click", this.OnBtnConfirmClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnNextLevel.node.on("click", this.OnBtnNextClick, this), l.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    var e = this;
                    this.BtnConfirm.node.off("click", this.OnBtnConfirmClick), this.BtnReturn.node.off("click", this.OnBtnReturnClick, this), this.BtnNextLevel.node.off("click", this.OnBtnNextClick, this), l.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), this.RewardLayout.children.forEach(function(t) {
                        e._itemNodePool.Put(t)
                    })
                }, t.prototype.OnBtnConfirmClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    l.UIManager.Instance.BackUIPanel(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.EndlessAbyssPanel.Path)
                }, t.prototype.OnItemClick = function(e, t) {
                    "SingleLineContainer" != t.parent.name && "NextRewardItemContainer" != t.parent.name && "content5" != t.parent.name || I.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnBtnNextClick = function() {
                    if (this.CheckCanNextLevel()) {
                        var e = !1;
                        this._BattleData.InBackground && (e = !0), this._BattleData.InBackground ? (I.UIUtlity.ShowFloatingHint("idleBattle_startNext".ToUILocale()), this.RequestHolyAreaChallenge(_.default.CurrentFormation, e)) : this.RequestHolyAreaChallenge(_.default.CurrentFormation, e)
                    }
                }, t.prototype.RequestHolyAreaChallenge = function(e, t) {
                    var n = this._battleData.MapType == g.MapType.EndlessAbyssSingle ? 1 : 2,
                        o = u.DataCenter.Instance.GetDataById(h.EndlessAbyss_Model, n);
                    _.default.CurrentStageIndex = o.MapIndex + 1;
                    var r = new h.Req_Map_EndlessAbyssChallenge;
                    r.Formations = e, r.MapIndex = o.MapIndex + 1, r.Type = n, r.ChallengeType = 1, r.BuffIndex = null, m.RpcComponent.Instance.Call(r, function(e) {
                        l.UIManager.Instance.QuitPanelStack(c.PanelConfig.SettlementWinPanel.Path), _.default.CurrentResult = e.Result, _.default.CurrentBuffIdArray = e.Params, b.BattleManager.Instance.StartPlay(e.Reports, {
                            BattleWaveNumber: 1,
                            DontCloseOnEnd: !0,
                            ShowHaloBtn: !0
                        }, t)
                    })
                }, t.prototype.CheckCanNextLevel = function() {
                    var e = !0,
                        t = this._battleData.MapType == g.MapType.EndlessAbyssSingle ? 1 : 2,
                        n = u.DataCenter.Instance.GetDataById(h.EndlessAbyss_Model, t),
                        o = this.GetLevelNum(t);
                    return n.MapIndex >= o && (I.UIUtlity.ShowFloatingHint("climbTower_limit_max_level".ToUILocale()), e = !1), e
                }, t.prototype.GetLevelNum = function(e) {
                    var t = 0,
                        n = f.ConfigDataComponent.Instance.GetConfigById(y.EndlessAbyssType_Config, e);
                    return f.ConfigDataComponent.Instance.GetArrayConfig(y.MapEndlessAbyss_Config).forEach(function(e) {
                        e.Id - n.MapIdPrefix > 0 && e.Id - n.MapIdPrefix < 1e4 && t++
                    }), t
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemNodePool && this._itemNodePool.Clear()
                }, i([P(cc.RichText)], t.prototype, "TitleRichText", void 0), i([P(cc.Label)], t.prototype, "RewardGotTag", void 0), i([P(cc.Button)], t.prototype, "BtnConfirm", void 0), i([P(cc.Label)], t.prototype, "BtnConfirmLabel", void 0), i([P(cc.Button)], t.prototype, "BtnReturn", void 0), i([P(cc.Label)], t.prototype, "BtnReturnLabel", void 0), i([P(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([P(cc.Node)], t.prototype, "RewardLayout", void 0), i([P(cc.Label)], t.prototype, "NoRewardLabel", void 0), i([P(cc.Button)], t.prototype, "BtnNextLevel", void 0), i([P(cc.Label)], t.prototype, "LabelBtnNextLevel", void 0), i([w], t)
            }(d.default);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent",
        "./EndlessAbyssUIPanel": "EndlessAbyssUIPanel",
        "./NodePool": "NodePool"
    }],
    EndlessAbyssSingleStageAwardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "528cfuRSkNOwLQypSsEvB13", "EndlessAbyssSingleStageAwardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/ItemComponent"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.StageTag = null, t.ItemContainer = null, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.Set = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i, a, h, f, y;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return void 0 !== this._componentPrefab ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent)];
                                case 1:
                                    if (o = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this._unloadAssets.push(o), this._componentPrefab = o, s.label = 2;
                                case 2:
                                    if (this.StageTag.string = "stage_index".ToUILocale().Fmt(e), r = 1 / this.ItemContainer.scale, this.ItemContainer.children.length >= 3)
                                        for (a = 0; a < 3; a++) f = 10 * e + 2 - a, y = t[2 - a], this.ItemContainer.children[a].name = f.toString(), i = p.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, y.ItemId), this.ItemContainer.children[a].getComponent(l.ItemComponent).Init({
                                            ItemId: y.ItemId,
                                            Count: y.ItemCount
                                        }, i.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this.ItemContainer.children[a].getComponent(l.ItemComponent).SetReceivedTagState(!y.ItemExist), this.ItemContainer.children[a].getComponent(l.ItemComponent).SetRedDotState(n.includes(f), r);
                                    else
                                        for (a = 0; a < 3; a++) h = cc.instantiate(this._componentPrefab), this.ItemContainer.addChild(h), f = 10 * e + 2 - a, y = t[2 - a], h.name = f.toString(), h.getComponent(l.ItemComponent).Init({
                                            ItemId: y.ItemId,
                                            Count: y.ItemCount
                                        }), this.ItemContainer.children[a].getComponent(l.ItemComponent).SetReceivedTagState(!y.ItemExist), this.ItemContainer.children[a].getComponent(l.ItemComponent).SetRedDotState(n.includes(f), r);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.Dispose = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, i([y(cc.Label)], t.prototype, "StageTag", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    EndlessAbyssSingleStageComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "44691hIWZFPApD8ShRb+bso", "EndlessAbyssSingleStageComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.STAGESTATE = void 0;
        var l, c = e("../Auxiliary/UIUtlity"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Battle/BattleManager"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property;
        (function(e) {
            e[e.FINISHED = 0] = "FINISHED", e[e.ONGOING = 1] = "ONGOING", e[e.LOCKED = 2] = "LOCKED"
        })(l = n.STAGESTATE || (n.STAGESTATE = {}));
        var m = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LockNode = null, t.BattlingTag = null, t.CompletedNode = null, t.LightenBg = null, t.CoverGirl = null, t.StageTag = null, t.StageTagOutline = null, t.ProcessNode = null, t.ProcessTag = null, t.ProcessTagValue = null, t.UnlockInfo = null, t.FinishedMask = null, t.CompleteLabel = null, t._herosFilefolder = "HeroIcon/HeroIllustration/", t.OnGoingColor = new cc.Color(255, 230, 133), t._unloadAssets = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.TouchResponse, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.TouchResponse, this)
            }, t.prototype.TouchResponse = function() {
                u.Game.EventDispatcher.Emit(p.EventKeys.EVENT_ABYSS_STAGE_CHOSEN, this._stageIndex), this.OnChosen()
            }, t.prototype.Set = function(e, t, o, r, i, u) {
                return a(this, void 0, void 0, function() {
                    var a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._isInit || (this._isInit = !0, this.UnlockInfo.string = "elementTrial_lock".ToUILocale(), this.ProcessTag.string = "abyss_waveIndex".ToUILocale(), this.CompleteLabel.string = "completed".ToUILocale()), this.StageTag.string = "stage_index".ToUILocale().Fmt(e), this._stageIndex = e, this.CompletedNode.active = !1, this.BattlingTag.node.active = !1, this.LockNode.active = !1, t == l.FINISHED ? (this.SetProperties(!0, cc.Color.WHITE, r + "/" + r), this.CompletedNode.active = !0, c.UIUtlity.OffSpriteGray(this.CoverGirl)) : t == l.ONGOING ? (this.SetProperties(!1, this.OnGoingColor, i + "/" + r), this.BattlingTag.node.active = !0, this.BattlingTag.setAnimation(0, this.BattlingTag.defaultAnimation, !0), h.BattleManager.Instance.IsInBattle(u) || this.BattlingTag.clearTracks(), c.UIUtlity.OffSpriteGray(this.CoverGirl)) : t == l.LOCKED && (this.SetProperties(!1, cc.Color.WHITE), this.LockNode.active = !0, c.UIUtlity.OnSpriteGray(this.CoverGirl)), this._stageIndex == n._chosenIndex ? this.TouchResponse() : this.SetChosenAction(!1), this._texturePath = this._herosFilefolder + o, [4, d.AssetsManager.Instance.LoadAsset(this._texturePath, cc.SpriteFrame)];
                            case 1:
                                return a = s.sent(), this.isValid && a.name == this._texturePath ? (this._unloadAssets.push(a), this.CoverGirl.spriteFrame = a, [2]) : (d.AssetsManager.Instance.UnloadAsset(a), [2])
                        }
                    })
                })
            }, t.SetChosenIndex = function(e) {
                this._chosenIndex = e
            }, t.prototype.SetProperties = function(e, t, n) {
                this.FinishedMask.active = e, this.StageTag.node.color = t, n ? (this.UnlockInfo.node.active = !1, this.ProcessNode.active = !0, this.ProcessTagValue.string = n) : (this.ProcessNode.active = !1, this.UnlockInfo.node.active = !0)
            }, t.prototype.OnChosen = function() {
                null != n._lastSingleStage && n._lastSingleStage != this && n._lastSingleStage.SetChosenAction(!1), n._chosenIndex = this._stageIndex, n._lastSingleStage = this, this.SetChosenAction(!0)
            }, t.prototype.SetChosenAction = function(e) {
                this.LightenBg.active = e
            }, t.prototype.onDestroy = function() {
                u.EZLog.Log(" -- -- -- --\x3e Stage On Destroy..."), null != n._lastSingleStage && (n._lastSingleStage = null), this._unloadAssets.forEach(function(e) {
                    e && u.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([g(cc.Node)], t.prototype, "LockNode", void 0), i([g(sp.Skeleton)], t.prototype, "BattlingTag", void 0), i([g(cc.Node)], t.prototype, "CompletedNode", void 0), i([g(cc.Node)], t.prototype, "LightenBg", void 0), i([g(cc.Sprite)], t.prototype, "CoverGirl", void 0), i([g(cc.Label)], t.prototype, "StageTag", void 0), i([g(cc.LabelOutline)], t.prototype, "StageTagOutline", void 0), i([g(cc.Node)], t.prototype, "ProcessNode", void 0), i([g(cc.Label)], t.prototype, "ProcessTag", void 0), i([g(cc.Label)], t.prototype, "ProcessTagValue", void 0), i([g(cc.Label)], t.prototype, "UnlockInfo", void 0), i([g(cc.Node)], t.prototype, "FinishedMask", void 0), i([g(cc.Label)], t.prototype, "CompleteLabel", void 0), n = i([y], t)
        }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager"
    }],
    EndlessAbyssStageAwardPointComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "532824q4U9PH6ZXEQ1+yI0T", "EndlessAbyssStageAwardPointComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./ItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CanGetBg = null, t.NormalBg = null, t.NodeIcon = null, t.WaveTag = null, t.ItemFather = null, t.BlockMask = null, t.ItemComp = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                    this.WaveTag.string = "abyss_levelIndex".ToUILocale().Fmt(e.WaveIndex), this.ItemComp || (this.ItemComp = cc.instantiate(r), this.ItemComp.setParent(this.ItemFather)), this.CanGetBg.active = t, this.NormalBg.active = !this.CanGetBg.active;
                    var i = n ? "progressNode_on" : "progressNode_off";
                    this.NodeIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS5.getSpriteFrame(i), this.BlockMask.zIndex = 99, this.ItemComp.name = o.toString(), this.ItemComp.parent.name = e.ItemId.toString();
                    var s = p.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e.ItemId);
                    this.ItemComp.getComponent(a.ItemComponent).Init({
                        ItemId: e.ItemId,
                        Count: e.ItemCount
                    }, s.Star ? a.ItemComponentType.ItemWithStar : a.ItemComponentType.ItemCommon), this.SetExist(e.ItemExist)
                }, t.prototype.SetExist = function(e) {
                    this.SetSelectFlagState(!e), this.SetRedDot(e)
                }, t.prototype.SetRedDot = function(e) {
                    this.ItemComp.getComponent(a.ItemComponent).SetRedDotState(e, 2)
                }, t.prototype.SetSelectFlagState = function(e) {
                    this.ItemComp.getComponent(a.ItemComponent).SetReceivedTagState(e)
                }, i([c(cc.Node)], t.prototype, "CanGetBg", void 0), i([c(cc.Node)], t.prototype, "NormalBg", void 0), i([c(cc.Sprite)], t.prototype, "NodeIcon", void 0), i([c(cc.Label)], t.prototype, "WaveTag", void 0), i([c(cc.Node)], t.prototype, "ItemFather", void 0), i([c(cc.Node)], t.prototype, "BlockMask", void 0), i([l], t)
            }(cc.Component);
        n.default = u;
        var p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../Auxiliary/UIUtlity");
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    EndlessAbyssUIPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7764aplZK5JbbGZ3xmXq+/R", "EndlessAbyssUIPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../../Consts/Consts"),
            g = e("../../Components/DataCenter"),
            m = e("../../Components/Components"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Components/Components"),
            C = e("../Components/CurrencyBarItem"),
            v = e("../Components/CustomLayout"),
            b = e("../../../Util/TimeUtil"),
            S = e("../Components/EndlessAbyssSingleStageComponent"),
            w = e("../Components/EndlessAbyssStageAwardPointComponent"),
            P = e("../../../ShareConsts/EnumType"),
            A = e("../Components/SmallRankListComponent"),
            T = e("../../../Consts/GameEventIds"),
            R = e("../../RedDot/RedDotManager"),
            L = e("../Battle/BattleData"),
            k = e("../Battle/BattleManager"),
            O = e("./NewAssistantPanel"),
            M = e("../../Auxiliary/ModuleGuideManager"),
            D = e("../Components/CustomProgressBar"),
            B = e("../Components/CustomToggle"),
            N = e("../../Auxiliary/DataUtlity"),
            E = cc._decorator,
            U = E.ccclass,
            G = E.property;
        (function(e) {
            e[e.Finish = 0] = "Finish", e[e.Battle = 1] = "Battle"
        })(l || (l = {}));
        var x = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.LevelLabel = null, t.BtnChallengeLabel = null, t.FirstPassAwardLabel = null, t.RecommandPowerLabel = null, t.BtnAwardLabel = null, t.OpenInfos = [], t.CurrencyItem = null, t.RecommandPower = null, t.BtnRule = null, t.BtnAward = null, t.RedDotAward = null, t.BtnReturn = null, t.BtnChallenge = null, t.BtnRank = null, t.BtnRank1 = null, t.SingleModeToggle = null, t.MultiModeToggle = null, t.StageTag = null, t.DiamondAtStart = null, t.Bar = null, t.StageProcessBar = null, t.StageScrollView = null, t.StageScrollViewCustomLayout = null, t.RankComponents = [], t.Reddot = null, t._currencyIconNumber = 13, t._awardPointWaveConfigId = 101, t._marshShopId = 9, t._orangeBtnLabelOutLineColor = new cc.Color(104, 76, 24), t._grayBtnLabelOutLineColor = new cc.Color(32, 36, 52), t._nodeAwardItemParentsParentName = "StageAwardPoint", t._barSpirteName = ["", "progress_3", "progress_5"], t._rankConfigId = [0, 411, 412], t._PointRewardsArray = [], t._model = null, t._mapLevelsByModeIndex = [], t._openInfoDayOfWeeds = [], t._awardPointsWavesIndex = [], t._isLayoutInit = !1, t._smallDiamondPic = "", t._openedModeId = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("EndlessAbyssPanel/Component/SingleStage", cc.Prefab), n = this.LoadDynamicAsset("EndlessAbyssPanel/Component/StageAwardPoint", cc.Prefab), o = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._stagePrefab = e[0], r._pointPrefab = e[1], r._itemPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), n.PanelInstance = this, this.BtnAward.node.on("click", this.OnFirstPassAwardHint, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnChallenge.node.on("click", this.OnChallengeButtonClick, this), this.SingleModeToggle.node.on("toggle", this.OnSwitchToggle, this), this.MultiModeToggle.node.on("toggle", this.OnSwitchToggle, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnRank.interactable = !1, this.BtnRank1.interactable = !1;
                for (var t = 1; t < this.RankComponents.length; t++) this.RankComponents[t].node.on(cc.Node.EventType.TOUCH_END, this.OnBtnRankClick, this);
                for (var o = 0; o < this.OpenInfos.length; o++) this.OpenInfos[o].getComponent(cc.RichText).string = _.ConfigDataComponent.Instance.GetLocale("EndlessAbyssType_desc_" + (o + 1));
                this.Title.string = "abyss_marshAssassin".ToUILocale(), this.LevelLabel.string = "common_layer".ToUILocale(), this.FirstPassAwardLabel.string = "abyss_firstPassAward".ToUILocale(), this.RecommandPowerLabel.string = "abyss_recommandPower".ToUILocale(), this.BtnAwardLabel.string = "reward".ToUILocale(), this.SingleModeToggle.Init("abyss_toggleLabel0".ToUILocale()), this.MultiModeToggle.Init("abyss_toggleLabel1".ToUILocale()), this._openInfoHidePos = new cc.Vec3(-3e4, -3e4), this._openInfoVisiblePos = this.OpenInfos[0].position;
                var r = _.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, 102);
                g.DataCenter.Instance.SetTempData("EndlessAbyss_buffWaveIndexArray", r.Data)
            }, t.prototype.DisPlay = function(t) {
                var o = this;
                if (e.prototype.DisPlay.call(this), this.OffEvent(), this.OnEvent(), R.RedDotManager.Instance.Bind(this.SingleModeToggle.node, R.RedDotManager.Instance.RedDot.AbyssSingleModelBtnNode), R.RedDotManager.Instance.Bind(this.MultiModeToggle.node, R.RedDotManager.Instance.RedDot.AbyssMultiModelBtnNode), t) this.ResetBar(), this.ResetStages(!1), this.RefreshChallengeBtnLabel(), this.SetRedDot(), this.UpdateReddot();
                else {
                    this._currentChosenStage = -1;
                    for (var r = 0; r < 3; r++) this._mapLevelsByModeIndex[r] = [];
                    for (r = 0; r < 3; r++) this._openInfoDayOfWeeds[r] = [];
                    m.ConfigDataComponent.Instance.GetArrayConfig(f.MapEndlessAbyss_Config).forEach(function(e) {
                        o.IsMapLevelInMode(e.Id, P.EndlessAbyssType.SingleMode) ? o._mapLevelsByModeIndex[P.EndlessAbyssType.SingleMode].push(e) : o.IsMapLevelInMode(e.Id, P.EndlessAbyssType.MultiMode) && o._mapLevelsByModeIndex[P.EndlessAbyssType.MultiMode].push(e)
                    }), g.DataCenter.Instance.SetTempData("EndlessAbyss_mapLevelsByModeIndex", this._mapLevelsByModeIndex), this._openInfoDayOfWeeds[P.EndlessAbyssType.SingleMode] = m.ConfigDataComponent.Instance.GetConfigById(f.EndlessAbyssType_Config, P.EndlessAbyssType.SingleMode).OpenTime, this._openInfoDayOfWeeds[P.EndlessAbyssType.MultiMode] = m.ConfigDataComponent.Instance.GetConfigById(f.EndlessAbyssType_Config, P.EndlessAbyssType.MultiMode).OpenTime, this._awardPointsWavesIndex = m.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, this._awardPointWaveConfigId).Data, g.DataCenter.Instance.SetTempData("EndlessAbyss_awardPointsWavesIndex", this._awardPointsWavesIndex), this.CurrencyItem.Init(this._currencyIconNumber), this.InitCustomLayout(), this.GetAvailableMode(), this.SetToggleByAvailableMode();
                    var i = m.ConfigDataComponent.Instance.GetConfigById(f.EndlessAbyssType_Config, this._currentAvailableMode),
                        a = (i.MapIdPrefix, this._model.MapIndex);
                    a = this._model.MapIndex == this._mapLevelsByModeIndex[this._currentShownMode].length ? i.MapIdPrefix + this._model.MapIndex : i.MapIdPrefix + this._model.MapIndex + 1, n._mapConfig = m.ConfigDataComponent.Instance.GetConfigById(f.MapEndlessAbyss_Config, a);
                    for (var s = 0; s < this.RankComponents.length; s++) this.RankComponents[s] && this.RankComponents[s].InitUI(this._rankConfigId[s])
                }
                this.ShowGuide()
            }, t.prototype.RefreshChallengeBtnLabel = function() {
                var e = this._currentShownMode == P.EndlessAbyssType.SingleMode ? y.MapType.EndlessAbyssSingle : y.MapType.EndlessAbyssMulti;
                k.BattleManager.Instance.IsInBattle(e) ? this.BtnChallengeLabel.string = "idlebattle_inBattle".ToUILocale() : this.BtnChallengeLabel.string = "dailyInstance_challenge".ToUILocale()
            }, t.prototype.GetModel = function() {
                this._model = g.DataCenter.Instance.GetDataById(h.EndlessAbyss_Model, this._currentShownMode)
            }, t.prototype.IsMapLevelInMode = function(e, t) {
                var n = m.ConfigDataComponent.Instance.GetConfigById(f.EndlessAbyssType_Config, t);
                return e - n.MapIdPrefix > 0 && e - n.MapIdPrefix < 1e4
            }, t.prototype.InitCustomLayout = function() {
                this._isLayoutInit || (this._isLayoutInit = !0, this.StageScrollViewCustomLayout.Init(this._stagePrefab, !1))
            }, t.prototype.GetReward = function(e) {
                var t = this,
                    n = new h.Req_Map_EndlessAbyssPointReward;
                n.Type = e, _.RpcComponent.Instance.Call(n, function(e) {
                    t.GetModel(), t.SetRedDot(), d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                })
            }, t.prototype.OnBtnReturnClick = function() {
                u.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnBtnRuleClick = function() {
                u.UIManager.Instance.ShowUIPanel(p.PanelConfig.RulePanel.Path, {
                    name: "abyss_marshAssassin".ToUILocale(),
                    titles: ["rule_subtittle".ToUILocale(), "abyss_RuleSubtitle1".ToUILocale()],
                    contents: ["abyss_RuleText".ToUILocale(), "abyss_RuleText1".ToUILocale()]
                })
            }, t.prototype.OnBtnRankClick = function() {
                this.RankComponents[this._currentShownMode].IsNoneInList() || u.UIManager.Instance.ShowUIPanel(p.PanelConfig.EndlessAbyssRankPanel.Path, ["abyss_toggleLabel0".ToUILocale(), "abyss_toggleLabel1".ToUILocale()], this._currentShownMode)
            }, t.prototype.OnFirstPassAwardHint = function() {
                this.OffEvent();
                var e = [0, this._mapLevelsByModeIndex[P.EndlessAbyssType.SingleMode].length, this._mapLevelsByModeIndex[P.EndlessAbyssType.MultiMode].length];
                u.UIManager.Instance.ShowUIPanel(p.PanelConfig.EndlessAbyssAwardHint.Path, this._currentShownMode, e, this._awardPointsWavesIndex)
            }, t.prototype.GetAvailableMode = function() {
                var e = b.TimeUtil.GetWeekDay(m.RpcComponent.Instance.ServerTime);
                this._openInfoDayOfWeeds[P.EndlessAbyssType.SingleMode].includes(e) ? this._currentAvailableMode = P.EndlessAbyssType.SingleMode : this._openInfoDayOfWeeds[P.EndlessAbyssType.MultiMode].includes(e) && (this._currentAvailableMode = P.EndlessAbyssType.MultiMode), g.DataCenter.Instance.SetTempData("EndlessAbyss_currentAvailableMode", this._currentAvailableMode)
            }, t.prototype.SetToggleByAvailableMode = function() {
                this._currentAvailableMode == P.EndlessAbyssType.MultiMode ? (this.MultiModeToggle.isChecked = !0, this.OnSwitchToggle(this.MultiModeToggle)) : this._currentAvailableMode == P.EndlessAbyssType.SingleMode && (this.SingleModeToggle.isChecked = !0, this.OnSwitchToggle(this.SingleModeToggle))
            }, t.prototype.OnSwitchToggle = function(e) {
                if (e == this.MultiModeToggle || e == this.SingleModeToggle) {
                    var t = Number.parseInt(e.name);
                    if (this._currentShownMode != t) {
                        this._currentShownMode = t, this.SetOpenInfoLabel();
                        for (var n = 0; n < this.RankComponents.length; n++) this.RankComponents[n] && (this.RankComponents[n].node.active = n == this._currentShownMode);
                        this.GetModel(), this.OnStageChosen(this.GetCurrentStageIndex(), !0), this.ResetStages(), this.UpdateReddot(), this.RefreshChallengeBtnLabel()
                    }
                }
            }, t.prototype.UpdateReddot = function() {
                var e = m.RpcComponent.Instance.ServerTime,
                    t = b.TimeUtil.GetWeekDay(e);
                m.ConfigDataComponent.Instance.GetConfigById(f.EndlessAbyssType_Config, this._currentShownMode).OpenTime.includes(t) ? g.DataCenter.Instance.GetDataById(h.EndlessAbyss_Model, this._currentShownMode).IsDrawDailyReward ? this.Reddot.active = !1 : this.Reddot.active = !0 : this.Reddot.active = !1
            }, t.prototype.GetShownStagesNumber = function() {
                return Math.min(this._model.MapIndex + 4, this._mapLevelsByModeIndex[this._currentShownMode].length)
            }, t.prototype.SetOpenInfoLabel = function() {
                for (var e = 0; e < this.OpenInfos.length; e++) this.OpenInfos[e].position = this._openInfoHidePos;
                this.OpenInfos[this._currentShownMode - 1].position = this._openInfoVisiblePos
            }, t.prototype.GetAwardPointsDataArray = function() {
                for (var e = Array(), t = 0; t < n._mapConfig.PointReward.length; t++) e.push({
                    WaveIndex: this._awardPointsWavesIndex[t],
                    ItemId: n._mapConfig.PointReward[t].Items[0],
                    ItemCount: n._mapConfig.PointReward[t].Items[1],
                    ItemExist: this.IsAwardExist(this._currentChosenStage, t, this._awardPointsWavesIndex[t])
                });
                return e
            }, t.prototype.OnChallengeButtonClick = function() {
                if (this._currentAvailableMode == this._currentShownMode) {
                    var e = n.GetCurrentMapType();
                    if (k.BattleManager.Instance.IsInBattle(e)) return void k.BattleManager.Instance.ResumePlayBattle(e);
                    this._currentChosenStage < this._model.MapIndex ? d.UIUtlity.ShowFloatingHint("abyss_stage_tip_cantChallengeAgain".ToUILocale()) : this._currentChosenStage == this._model.MapIndex ? this._model.MapIndex != this._mapLevelsByModeIndex[this._currentShownMode].length ? d.UIUtlity.ShowFloatingHint("abyss_stage_tip_cantChallengeAgain".ToUILocale()) : (g.DataCenter.Instance.SetTempData("EndlessAbyss_currentWaveIndex", 0), N.default.Instance.SetOnlineStartBattleTempData(e), n.StartBattle()) : this._currentChosenStage > this.GetCurrentStageIndex() ? d.UIUtlity.ShowFloatingHint("abyss_stage_lockedStage".ToUILocale()) : (g.DataCenter.Instance.SetTempData("EndlessAbyss_currentWaveIndex", 0), N.default.Instance.SetOnlineStartBattleTempData(e), n.StartBattle())
                } else d.UIUtlity.ShowFloatingHint("abyss_notAtTime".ToUILocale())
            }, t.prototype.ResetBar = function() {
                this.StageTag.string = this._currentChosenStage.toString(), this.Bar.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this._barSpirteName[this._currentShownMode]), this._currentChosenStage > this.GetCurrentStageIndex() ? this.StageProcessBar.progress = 0 : this._currentChosenStage < this.GetCurrentStageIndex() || this._model.MapIndex == g.DataCenter.Instance.GetTempData("EndlessAbyss_mapLevelsByModeIndex")[this._currentShownMode].length ? this.StageProcessBar.progress = 1 : this.StageProcessBar.progress = this._model.RewardIndex / n._mapConfig.Monsters.length, this.ResetAwardPoints()
            }, t.prototype.ResetAwardPoints = function() {
                var e = this.GetAwardPointsDataArray();
                if (e.length < this._PointRewardsArray.length) {
                    for (var t = 0; t < e.length; t++) this._PointRewardsArray[t].active = !0, this.ResetAwardPointByIndex(t, e[t]);
                    for (t = e.length; t < this._PointRewardsArray.length; t++) this._PointRewardsArray[t].active = !1
                } else {
                    for (t = 0; t < this._PointRewardsArray.length; t++) this._PointRewardsArray[t].active = !0, this.ResetAwardPointByIndex(t, e[t]);
                    for (t = this._PointRewardsArray.length; t < e.length; t++) {
                        var n = cc.instantiate(this._pointPrefab);
                        this._PointRewardsArray[t] = n, n.setParent(this.StageProcessBar.node), this.ResetAwardPointByIndex(t, e[t])
                    }
                }
            }, t.prototype.ResetStages = function(e) {
                void 0 === e && (e = !0);
                var t = this.GetShownStagesNumber();
                t < 5 && (t = 5);
                var n = this._model.MapIndex;
                this.StageScrollViewCustomLayout.RenderLayOut(t, n), e && d.UIUtlity.AnimationItemsByType1(this.StageScrollViewCustomLayout.node.children)
            }, t.prototype.GetCurrentStageIndex = function() {
                return Math.min(this._model.MapIndex + 1, g.DataCenter.Instance.GetTempData("EndlessAbyss_mapLevelsByModeIndex")[this._currentShownMode].length)
            }, t.prototype.ResetAwardPointByIndex = function(e, t) {
                var o;
                o = !(this._currentChosenStage > this.GetCurrentStageIndex()) && (this._currentChosenStage < this.GetCurrentStageIndex() || this._model.MapIndex == g.DataCenter.Instance.GetTempData("EndlessAbyss_mapLevelsByModeIndex")[this._currentShownMode].length || e < this._model.RewardIndex);
                var r = this._model.PointReward.includes(10 * this._currentChosenStage + e),
                    i = e + 10 * this._currentChosenStage;
                this._PointRewardsArray[e].position = new cc.Vec3(this.StageProcessBar.TotalLength * (t.WaveIndex / n._mapConfig.Monsters.length - .5), 0, 0), this._PointRewardsArray[e].getComponent(w.default).Init(t, r, o, i, this._itemPrefab)
            }, t.prototype.IsAwardExist = function(e, t, n) {
                return this.GetModel(), this._model.PointReward.includes(10 * e + t) || this.GetCurrentStageIndex() < e || this.GetCurrentStageIndex() == e && this._model.RewardIndex < n
            }, t.prototype.RefreshScrollView = function(e, t) {
                if (t == this.StageScrollViewCustomLayout) {
                    var n, o = this._model.MapIndex,
                        r = this._mapLevelsByModeIndex[this._currentShownMode],
                        i = this._model.MapIndex < r.length ? this._model.RewardIndex : r[r.length - 1].Monsters.length,
                        a = this._currentShownMode == P.EndlessAbyssType.SingleMode ? y.MapType.EndlessAbyssSingle : y.MapType.EndlessAbyssMulti;
                    S.default.SetChosenIndex(this._model.MapIndex < r.length ? this._model.MapIndex + 1 : this._model.MapIndex), e.forEach(function(e, t) {
                        o == r.length && (o -= 1), n = t < o ? S.STAGESTATE.FINISHED : t > o ? S.STAGESTATE.LOCKED : S.STAGESTATE.ONGOING;
                        var s = r[t];
                        e.getComponent(S.default).Set(t + 1, n, s.HeroId.toString(), s.Monsters.length, i, a)
                    })
                }
            }, t.prototype.OnEvent = function() {
                u.Game.EventDispatcher.On(I.EventKeys.EVENT_ABYSS_STAGE_CHOSEN, this.OnStageChosen, this), u.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnAwardItemClick, this), u.Game.EventDispatcher.On(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), u.Game.EventDispatcher.On(I.EventKeys.EVENT_ABYSSBATTLE_REFRESH, this.DisPlay, this)
            }, t.prototype.OffEvent = function() {
                u.Game.EventDispatcher.Off(I.EventKeys.EVENT_ABYSS_STAGE_CHOSEN, this.OnStageChosen, this), u.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnAwardItemClick, this), u.Game.EventDispatcher.Off(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), u.Game.EventDispatcher.Off(I.EventKeys.EVENT_ABYSSBATTLE_REFRESH, this.DisPlay, this)
            }, t.prototype.OnStageChosen = function(e, t) {
                void 0 === t && (t = !1), (this._currentChosenStage != e || t) && (n._mapConfig = this._mapLevelsByModeIndex[this._currentShownMode][e - 1], this._currentChosenStage = e, this.RecommandPower.string = n._mapConfig.RecommendPower.toString(), this.ResetBar(), this.SetRedDot())
            }, t.prototype.OnAwardItemClick = function(e, t) {
                if (t.parent.parent.name == this._nodeAwardItemParentsParentName) {
                    this.GetModel();
                    var n = Math.floor(e / 10),
                        o = e % 10,
                        r = this._awardPointsWavesIndex[o],
                        i = Number.parseInt(t.parent.name);
                    this.IsAwardExist(n, o, r) && this._model.PointReward.includes(e) ? this.GetReward(this._currentShownMode) : d.UIUtlity.ShowItemTip(i, t)
                }
            }, t.prototype.SetRedDot = function() {
                for (var e = 0; e < this._PointRewardsArray.length; e++) {
                    var t = this._PointRewardsArray[e].getComponent(w.default);
                    this._model.PointReward.includes(e + 10 * this._currentChosenStage) ? t.SetExist(!0) : this._currentChosenStage <= this._model.MapIndex || this._awardPointsWavesIndex[e] <= this._model.RewardIndex ? t.SetExist(!1) : (t.SetRedDot(!1), t.SetSelectFlagState(!1))
                }
                this.RedDotAward.active = this._model.PointReward.length > 0
            }, t.prototype.Dispose = function() {
                c.AssetsManager.Instance.UnloadAsset(this._stagePrefab), c.AssetsManager.Instance.UnloadAsset(this._pointPrefab), e.prototype.Dispose.call(this)
            }, t.prototype.OnModelChange = function() {
                var e = this._currentAvailableMode;
                this.GetAvailableMode(), e != this._currentAvailableMode && u.UIManager.Instance.ShowUIPanel(p.PanelConfig.EndlessAbyssPanel.Path)
            }, t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(h.UserItem_Model._n_), this.OnItemChanges, this), u.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(h.UserItem_Model._n_), this.OnItemChanges, this), u.Game.EventDispatcher.On(T.GameEventIds.ChangeDataDetail.Fmt(h.EndlessAbyss_Model._n_), this.OnModelChange, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(h.UserItem_Model._n_), this.OnItemChanges, this), u.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(h.UserItem_Model._n_), this.OnItemChanges, this), u.Game.EventDispatcher.Off(T.GameEventIds.ChangeDataDetail.Fmt(h.EndlessAbyss_Model._n_), this.OnModelChange, this), this.OffEvent()
            }, t.InitBattle = function() {
                n.CurrentBattleMapId = 0, n.CurrentStageIndex = 0, n.CurrentShownMode = 0, n.CurrentResult = 0, n.SelectedBuffIndex = 0, n.CurrentBuffIdArray = null, n.CurrentFormation = null, n.NextBattleInfo = null, n.StartBattleTime = 0;
                var e = [y.MapType.EndlessAbyssSingle, y.MapType.EndlessAbyssMulti];
                u.Game.EventDispatcher.Only(I.EventKeys.EVENT_ABYSS_BUFF_CHOSEN, this.OnBuffChosen, this), e.forEach(function(e) {
                    u.Game.EventDispatcher.Only(y.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), u.Game.EventDispatcher.Only(y.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), u.Game.EventDispatcher.Only(y.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), u.Game.EventDispatcher.Only(y.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), u.Game.EventDispatcher.Only(y.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                })
            }, t.RestartBattle = function() {
                n.StartBattle()
            }, t.CancelBattle = function() {
                var e = new h.Req_Map_CancelChallenge;
                e.MapType = n.GetCurrentMapType(), _.RpcComponent.Instance.Call(e, function() {
                    n.IsAssistantComplete && (n.IsAssistantComplete = !1), u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_MAINBATTLEANI_REFRESH)
                })
            }, t.StartBattle = function() {
                var e = n.PanelInstance;
                n.CurrentStageIndex = e._currentChosenStage, n.CurrentShownMode = e._currentShownMode;
                var t = _.ConfigDataComponent.Instance.GetConfigById(f.EndlessAbyssType_Config, n.CurrentShownMode),
                    o = _.ConfigDataComponent.Instance.GetConfigById(f.MapEndlessAbyss_Config, n.CurrentStageIndex + t.MapIdPrefix);
                n.CurrentBattleMapId = o.Monsters[0], n.StartBattleTime = _.RpcComponent.Instance.ServerTime, c.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattleFormationPanel.Path, n.RequestAbyssChallenge.bind(n), [n.CurrentBattleMapId])
            }, t.RequestAbyssChallenge = function(e, t, o) {
                if (void 0 === t && (t = !1), void 0 === o && (o = !1), !N.default.Instance.IsToday(n.StartBattleTime)) {
                    var r = m.ConfigDataComponent.Instance.GetConfigById(f.EndlessAbyssType_Config, n.CurrentShownMode).OpenTime,
                        i = b.TimeUtil.GetWeekDay(m.RpcComponent.Instance.ServerTime);
                    if (!r.includes(i)) {
                        var a = n.CurrentShownMode == P.EndlessAbyssType.SingleMode ? y.MapType.EndlessAbyssSingle : y.MapType.EndlessAbyssMulti;
                        return void k.BattleManager.Instance.StopBattle(a, L.CloseBattleType.Cancel)
                    }
                }
                e && (n.CurrentFormation = e);
                var s = new h.Req_Map_EndlessAbyssChallenge;
                s.Formations = n.CurrentFormation, s.MapIndex = n.CurrentStageIndex, s.Type = n.CurrentShownMode, s.ChallengeType = null != e ? 1 : 2, s.BuffIndex = n.SelectedBuffIndex, _.RpcComponent.Instance.Call(s, function(e) {
                    t ? n.NextBattleInfo = {
                        Report: e.Reports[0],
                        Result: e.Result,
                        BuffIdArray: e.Params
                    } : (n.CurrentResult = e.Result, n.CurrentBuffIdArray = e.Params, n.ResponseChallengeSuccess(e.Reports[0], o), u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_MAINBATTLEANI_REFRESH))
                })
            }, t.ResponseChallengeSuccess = function(e, t) {
                void 0 === t && (t = !1);
                var o = _.ConfigDataComponent.Instance.GetConfigById(f.MapBase_Config, e.MapId),
                    r = y.MapType.EndlessAbyssSingle;
                o && (r = o.Type);
                var i = L.BattleData.PlayingBattleDatas[r];
                i ? (i.ExtraParam.BattleWaveNumber += n.CacheWave, i.Reports[0] = e, k.BattleManager.Instance.NextWave(i)) : (k.BattleManager.Instance.StartPlay(e, {
                    BattleWaveNumber: 1,
                    DontCloseOnEnd: !0,
                    ShowHaloBtn: !0
                }, t), u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_ABYSSBATTLE_REFRESH, !0)), e.Result == y.BattleResult.AttackerWin ? n.CacheWave = 1 : n.CacheWave = 0, n.NextBattleInfo = null, n.CanFetchNextReport() && n.RequestAbyssChallenge(null, !0)
            }, t.SettleBattle = function(e) {
                if (null != n.NextBattleInfo) return e.Reports[0] = n.NextBattleInfo.Report, n.CurrentResult = n.NextBattleInfo.Result, n.CurrentBuffIdArray = n.NextBattleInfo.BuffIdArray, void n.ResponseChallengeSuccess(n.NextBattleInfo.Report);
                if (n.CurrentResult != l.Battle) {
                    u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_BATTLEFINISHED), u.EZLog.Log(">>\u7ed3\u7b97\u8bf7\u6c42---");
                    var t = new h.Req_Map_BattleSettlement;
                    t.MapType = e.MapType, _.RpcComponent.Instance.Call(t, function(t) {
                        if (e.InBackground || u.Game.EventDispatcher.Emit(y.GameEventIds.DelayCloseBattlePanel), delete L.BattleData.PlayingBattleDatas[e.MapType], t.ExtraParam && 0 != t.ExtraParam.length) {
                            var o = e.MapType == y.MapType.EndlessAbyssMulti ? P.EndlessAbyssType.MultiMode : P.EndlessAbyssType.SingleMode,
                                r = _.DataCenter.Instance.GetDataById(h.EndlessAbyss_Model, o),
                                i = r.MapIndex + 1,
                                a = _.ConfigDataComponent.Instance.GetConfigById(f.EndlessAbyssType_Config, o),
                                s = r.MapIndex + 1 + a.MapIdPrefix,
                                l = _.ConfigDataComponent.Instance.GetConfigById(f.MapEndlessAbyss_Config, s);
                            null == l && (l = _.ConfigDataComponent.Instance.GetConfigById(f.MapEndlessAbyss_Config, s - 1), i = r.MapIndex), u.EZLog.Log("mapConfig = ", l);
                            var c, d, C = t.ExtraParam[0].Items[0];
                            if (C == l.Monsters.length) c = -1;
                            else {
                                for (var v = 0; v < g.DataCenter.Instance.GetTempData("EndlessAbyss_awardPointsWavesIndex").length; v++) {
                                    var S = g.DataCenter.Instance.GetTempData("EndlessAbyss_awardPointsWavesIndex")[v] - C;
                                    S > 0 && (c = S, d = l.PointReward[v].Items)
                                }
                                c = -1
                            }
                            if (C >= l.Monsters.length && r.MapIndex < n.GetLevelNum(o) && n.CheckCanNextLevel(e) && N.default.Instance.CheckAutoBattleUnlock(P.GameModuleType.AbyssAutoBattle, e.MapType) && e.InBackground && a.OpenTime.includes(b.TimeUtil.GetWeekDay(m.RpcComponent.Instance.ServerTime))) return u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_ABYSSBATTLE_REFRESH, !0), g.DataCenter.Instance.SetAutoBattleRewards(e.MapType, t.Rewards), n.CurrentStageIndex = r.MapIndex + 1, n.SelectedBuffIndex = 0, n.RequestAbyssChallenge(n.CurrentFormation, !1, !0), u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_MAINBATTLEANI_REFRESH), void u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_BATTLECHANGE, e);
                            e.SettleParams = [t.Rewards, c, d, t.ExtraParam[0].Items[0], l.Monsters.length, ["", "progress_blue1", "progress_orange1"][o],
                                ["", "progress_blue2", "progress_orange2"][o], i
                            ], k.BattleManager.Instance.ShowSettlePanel(p.PanelConfig.SettlementWinPanel.Path, "EndlessAbyssPanel/Component/EndlessAbyssSettleContent", e), N.default.Instance.ShowBattleRewardPanel(e.MapType), n.IsAssistantComplete && (C == l.Monsters.length ? O.default.CheckEndlessAbyssBattle(o) && O.default.SetEndlessAbyssAutoComplete(o) : n.IsAssistantComplete = !1), u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_MAINBATTLEANI_REFRESH), u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_BATTLECHANGE, e)
                        }
                    })
                } else n.CurrentBuffIdArray && n.CurrentBuffIdArray.length > 0 ? e.InBackground ? (n.SelectedBuffIndex = Math.floor(Math.random() * n.CurrentBuffIdArray.length), n.RequestAbyssChallenge(null, !1)) : (u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_ABYSS_BUFF_SHOW), u.UIManager.Instance.ShowUIPanel(p.PanelConfig.EndlessAbyssBuffChooseHint.Path, n.CurrentBuffIdArray)) : n.RequestAbyssChallenge(null, !1)
            }, t.GetLevelNum = function(e) {
                var t = 0,
                    n = m.ConfigDataComponent.Instance.GetConfigById(f.EndlessAbyssType_Config, e);
                return m.ConfigDataComponent.Instance.GetArrayConfig(f.MapEndlessAbyss_Config).forEach(function(e) {
                    e.Id - n.MapIdPrefix > 0 && e.Id - n.MapIdPrefix < 1e4 && t++
                }), t
            }, t.CheckCanNextLevel = function(e) {
                var t = !0,
                    o = e.MapType == y.MapType.EndlessAbyssSingle ? 1 : 2,
                    r = g.DataCenter.Instance.GetDataById(h.EndlessAbyss_Model, o),
                    i = n.GetLevelNum(o);
                return r.MapIndex >= i && (d.UIUtlity.ShowFloatingHint("climbTower_limit_max_level".ToUILocale()), t = !1), t
            }, t.OnBattleSwitchToBackground = function(e) {
                u.Game.EventDispatcher.Emit(I.EventKeys.EVENT_BATTLESWITCHTOBACKGROUND, e)
            }, t.CanFetchNextReport = function() {
                return n.CurrentResult == l.Battle && !(n.CurrentBuffIdArray && n.CurrentBuffIdArray.length > 0)
            }, t.OnBuffChosen = function(e) {
                n.SelectedBuffIndex = e, n.RequestAbyssChallenge(null, !1)
            }, t.GetCurrentMapType = function() {
                return g.DataCenter.Instance.GetTempData("EndlessAbyss_currentAvailableMode") == P.EndlessAbyssType.SingleMode ? P.MapType.EndlessAbyssSingle : P.MapType.EndlessAbyssMulti
            }, t.prototype.OnItemChanges = function(e) {
                for (var t in e) switch (Number.parseInt(t)) {
                    case this._currencyIconNumber:
                        this.CurrencyItem.Init(this._currencyIconNumber)
                }
            }, t.prototype.ShowGuide = function() {
                M.default.instance.CheckGameModeuleGuideNeedShow(y.GameModuleType.EndlessAbyss) && (M.default.instance.ShowNPCDialogs([1034]), M.default.instance.CompleteGameModuleWeakGuide(y.GameModuleType.EndlessAbyss))
            }, t.PanelInstance = null, t._mapConfig = null, t.CurrentBattleMapId = 0, t.CurrentStageIndex = 0, t.CurrentShownMode = 0, t.CurrentResult = 0, t.SelectedBuffIndex = 0, t.CacheWave = 0, t.CurrentBuffIdArray = null, t.CurrentFormation = null, t.NextBattleInfo = null, t.IsAssistantComplete = !1, t.StartBattleTime = 0, i([G(cc.Label)], t.prototype, "Title", void 0), i([G(cc.Label)], t.prototype, "LevelLabel", void 0), i([G(cc.Label)], t.prototype, "BtnChallengeLabel", void 0), i([G(cc.Label)], t.prototype, "FirstPassAwardLabel", void 0), i([G(cc.Label)], t.prototype, "RecommandPowerLabel", void 0), i([G(cc.Label)], t.prototype, "BtnAwardLabel", void 0), i([G({
                type: [cc.Node]
            })], t.prototype, "OpenInfos", void 0), i([G(C.default)], t.prototype, "CurrencyItem", void 0), i([G(cc.Label)], t.prototype, "RecommandPower", void 0), i([G(cc.Button)], t.prototype, "BtnRule", void 0), i([G(cc.Button)], t.prototype, "BtnAward", void 0), i([G(cc.Node)], t.prototype, "RedDotAward", void 0), i([G(cc.Button)], t.prototype, "BtnReturn", void 0), i([G(cc.Button)], t.prototype, "BtnChallenge", void 0), i([G(cc.Button)], t.prototype, "BtnRank", void 0), i([G(cc.Button)], t.prototype, "BtnRank1", void 0), i([G(B.default)], t.prototype, "SingleModeToggle", void 0), i([G(B.default)], t.prototype, "MultiModeToggle", void 0), i([G(cc.Label)], t.prototype, "StageTag", void 0), i([G(cc.Sprite)], t.prototype, "DiamondAtStart", void 0), i([G(cc.Sprite)], t.prototype, "Bar", void 0), i([G(D.default)], t.prototype, "StageProcessBar", void 0), i([G(cc.ScrollView)], t.prototype, "StageScrollView", void 0), i([G(v.default)], t.prototype, "StageScrollViewCustomLayout", void 0), i([G({
                type: [A.default]
            })], t.prototype, "RankComponents", void 0), i([G(cc.Node)], t.prototype, "Reddot", void 0), n = i([U], t)
        }(u.BaseUIFullScreenPanel);
        n.default = x, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/EndlessAbyssSingleStageComponent": "EndlessAbyssSingleStageComponent",
        "../Components/EndlessAbyssStageAwardPointComponent": "EndlessAbyssStageAwardPointComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent",
        "./NewAssistantPanel": "NewAssistantPanel"
    }],
    EngraveComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "987e4A8en1Ezow4Fw3/C8yB", "EngraveComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../Components/AttrComponent2"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/LevelComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("./ChaosElementEffectPanel"),
            v = e("../../RedDot/RedDotManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelUpNode = null, t.MaxLevelNode = null, t.BeforeItemSprite = null, t.BeforeItemLevelNode = null, t.BeforeItemName = null, t.AfterItemSprite = null, t.AfterItemLevelNode = null, t.AfterItemName = null, t.MaxLevelItemSprite = null, t.MaxLevelItemLevelNode = null, t.MaxLevelItemName = null, t.AttrTitle = null, t.AttrComponent2s = [], t.EffectTitle = null, t.EffectSelectNode = null, t.EffectNodes = [], t.EffectNames = [], t.SkillTitle = null, t.DetailButton = null, t.ScrollViewContent = null, t.MaterialTitle = null, t.MaxLevelLabel = null, t.MaterialContent = null, t.EngraveButton = null, t.EngraveLabel = null, t.TitleBgs = [], t._loadAssets = [], t._maxLevel = 0, t._descNodes = [], t._itemNodes = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    var e = this;
                    this.AttrTitle.string = "engrave_attr_title".ToUILocale(), this.EffectTitle.string = "engrave_effect_name".ToUILocale(), this.MaterialTitle.string = "engrave_material".ToUILocale(), this.EngraveLabel.string = "luckycharm_engrave".ToUILocale(), this.SkillTitle.string = "engrave_skill_desc".ToUILocale();
                    var t = ["engrave_effect1".ToUILocale(), "engrave_effect2".ToUILocale(), "engrave_effect3".ToUILocale(), "engrave_effect4".ToUILocale(), "engrave_effect5".ToUILocale()];
                    this.EffectNames.forEach(function(e, n) {
                        t[n] && (e.string = t[n])
                    }), this._positions = [], this.EffectNodes.forEach(function(t) {
                        t.on(cc.Node.EventType.TOUCH_END, e.OnEffectIconClick, e), e._positions.push(t.position)
                    }), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.EngraveButton.node.on("click", this.OnEngraveButtonClick, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    this._luckyCharmSid = e, this._luckyCharmModel = d.DataCenter.Instance.GetDataById(c.LuckyCharmEquip_Model, e), this._maxLevel || this.GetMaxLevel(), this.SetSelectIndex(), this.SetTitleBgs(), this.SetItemNode(), this.SetAttrNodes(), this.SetEffectNodes(), this.SetSkillDesc(), this.SetMaterialNode(), this.SetReddot()
                }, t.prototype.SetReddot = function() {
                    v.RedDotManager.Instance.BindInstance(this.EngraveButton.node, v.RedDotManager.Instance.InstanceRedDot.LuckyCharmEngraveNode, {
                        Value1: this._luckyCharmSid
                    })
                }, t.prototype.GetMaxLevel = function() {
                    for (var e = d.ConfigDataComponent.Instance.GetArrayConfig(u.LuckyCharmStar_Config), t = 0; t < e.length; t++) {
                        var n = e[t];
                        Math.floor(n.Id / 100) == p.CommonItemId.GloryLuckyCharm && this._maxLevel++
                    }
                    return this._maxLevel
                }, t.prototype.SetSelectIndex = function() {
                    this._luckyCharmModel.GloryStar > 0 ? this._selectIndex = this._luckyCharmModel.GloryStar < this._maxLevel ? this._luckyCharmModel.GloryStar : this._maxLevel - 1 : this._selectIndex = 0
                }, t.prototype.SetTitleBgs = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._luckyCharmModel.ItemId != p.CommonItemId.PrimordialLuckyCharm ? [3, 1] : (e = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_color"), this.AttrTitle.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(7)[1], this.EffectTitle.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(7)[1], [3, 3]);
                                case 1:
                                    return this._luckyCharmModel.ItemId != p.CommonItemId.GloryLuckyCharm ? [3, 3] : [4, g.UIUtlity.GetQualityTitleAtlasSprite("small_tittle_ur")];
                                case 2:
                                    e = t.sent(), this.AttrTitle.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(6)[1], this.EffectTitle.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(6)[1], t.label = 3;
                                case 3:
                                    return this.TitleBgs.forEach(function(t) {
                                        t.spriteFrame = e
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetItemNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this.LevelUpNode.active = this._luckyCharmModel.GloryStar < this._maxLevel, this.MaxLevelNode.active = this._luckyCharmModel.GloryStar == this._maxLevel, this._higherSprite && this._lowerSprite ? [3, 2] : (e = I.default.Instance.GetItemPathById(p.CommonItemId.PrimordialLuckyCharm), t = I.default.Instance.GetItemPathById(p.CommonItemId.GloryLuckyCharm), n = l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame), o = l.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame), r = l.AssetsManager.Instance.LoadAsset(f.BundlePath.LevelComponent, cc.Prefab), [4, Promise.all([n, o, r]).then(function(e) {
                                        a._lowerSprite = e[0], a._higherSprite = e[1], a._levelCompPrefab = e[2]
                                    })]);
                                case 1:
                                    if (s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._lowerSprite), l.AssetsManager.Instance.UnloadAsset(this._higherSprite), l.AssetsManager.Instance.UnloadAsset(this._levelCompPrefab), [2];
                                    this._loadAssets.push(this._lowerSprite), this._loadAssets.push(this._higherSprite), this._loadAssets.push(this._levelCompPrefab), s.label = 2;
                                case 2:
                                    return this._luckyCharmModel.GloryStar < this._maxLevel ? ((i = this._luckyCharmModel.ItemId) == p.CommonItemId.GloryLuckyCharm ? (this.BeforeItemSprite.spriteFrame = this._higherSprite, this.AfterItemSprite.spriteFrame = this._higherSprite) : (this.BeforeItemSprite.spriteFrame = this._lowerSprite, this.AfterItemSprite.spriteFrame = this._higherSprite), this._beforeLevelNode || (this._beforeLevelNode = cc.instantiate(this._levelCompPrefab), this._beforeLevelNode.parent = this.BeforeItemLevelNode), this._beforeLevelNode.getComponent(y.LevelComponent).Init(this._luckyCharmModel.StarSkills.length, p.ItemType.LuckyCharm, y.StarLayoutMode.Middle, y.HighLevelType.Common, this._luckyCharmModel.GloryStar), this._afterLevelNode || (this._afterLevelNode = cc.instantiate(this._levelCompPrefab), this._afterLevelNode.parent = this.AfterItemLevelNode), this._afterLevelNode.getComponent(y.LevelComponent).Init(this._luckyCharmModel.StarSkills.length, p.ItemType.LuckyCharm, y.StarLayoutMode.Middle, y.HighLevelType.Common, this._luckyCharmModel.GloryStar + 1), this.BeforeItemName.string = i.ToItemName(), this.AfterItemName.string = p.CommonItemId.GloryLuckyCharm.ToItemName()) : (this.MaxLevelItemSprite.spriteFrame = this._higherSprite, this._maxLevelNode || (this._maxLevelNode = cc.instantiate(this._levelCompPrefab), this._maxLevelNode.parent = this.MaxLevelItemLevelNode), this._maxLevelNode.getComponent(y.LevelComponent).Init(this._luckyCharmModel.StarSkills.length, p.ItemType.LuckyCharm, y.StarLayoutMode.Middle, y.HighLevelType.Common, this._luckyCharmModel.GloryStar), this.MaxLevelItemName.string = p.CommonItemId.GloryLuckyCharm.ToItemName()), [2]
                            }
                        })
                    })
                }, t.prototype.SetAttrNodes = function() {
                    var e = this._luckyCharmModel.StarSkills.length,
                        t = this._luckyCharmModel.GloryStar,
                        n = this._luckyCharmModel.GloryStar + 1,
                        o = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * p.CommonItemId.PrimordialLuckyCharm + e),
                        r = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * p.CommonItemId.GloryLuckyCharm + t),
                        i = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * p.CommonItemId.GloryLuckyCharm + n),
                        a = {},
                        s = {};
                    o.Attrs.forEach(function(e) {
                        a[e.Items[0]] ? a[e.Items[0]] += e.Items[1] : a[e.Items[0]] = e.Items[1]
                    }), r && r.Attrs.forEach(function(e) {
                        a[e.Items[0]] ? a[e.Items[0]] += e.Items[1] : a[e.Items[0]] = e.Items[1]
                    }), i && i.Attrs.forEach(function(e) {
                        if (r) {
                            var t = r.Attrs.find(function(t) {
                                    return e.Items[0] == t.Items[0]
                                }),
                                n = t && t.Items[1] ? t.Items[1] : 0;
                            s[e.Items[0]] ? s[e.Items[0]] += e.Items[1] - n : s[e.Items[0]] = e.Items[1] - n
                        } else s[e.Items[0]] ? s[e.Items[0]] += e.Items[1] : s[e.Items[0]] = e.Items[1]
                    });
                    var l = 0;
                    for (var c in a) this.AttrComponent2s[l] && (s[c] ? this.AttrComponent2s[l].Init(Number(c), a[c], s[c]) : this.AttrComponent2s[l].Init(Number(c), a[c])), l++
                }, t.prototype.SetEffectNodes = function() {
                    var e = this._luckyCharmModel.GloryStar;
                    this.EffectNodes.forEach(function(t, n) {
                        var o = n >= e;
                        g.UIUtlity.SetGray(t, o)
                    }), this.EffectSelectNode.setPosition(this._positions[this._selectIndex])
                }, t.GetEngraveDescDatas = function(e, t) {
                    void 0 === t && (t = !1);
                    var n = [],
                        o = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * p.CommonItemId.GloryLuckyCharm + e),
                        r = o.Attrs2[0].Items[0];
                    if (101 == r) {
                        var i = {};
                        return i.type = r, i.param = 0, i.desc = o.Id.ToLuckyCharmStarEffectDesc(), n.push(i), n
                    }
                    for (var a = function(e) {
                            var t = {},
                                i = o.Attrs2[0].Items[e],
                                a = o.Attrs2[0].Items[e] % 10,
                                s = d.ConfigDataComponent.Instance.GetConfigById(u.CommonAttrs_Config, i),
                                l = "";
                            s.Attrs.forEach(function(e, t) {
                                var n = I.default.GetHeroAttribute(e.Items[0], e.Items[1]);
                                t == s.Attrs.length - 1 ? l += n.Name + "+" + n.Value : l += n.Name + "+" + n.Value + ","
                            }), t.type = r, t.param = a, t.desc = l, n.push(t)
                        }, s = 1; s < o.Attrs2[0].Items.length; s++) a(s);
                    if (o.EntranceSkill.length > 0 && t) {
                        var l = {},
                            c = o.Id.ToLuckyCharmStarEffectDesc();
                        l.type = r, l.param = 0, l.desc = c, n.push(l)
                    }
                    return n
                }, t.prototype.SetSkillDesc = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a, p, h, f, y = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = this._selectIndex + 1, this._descPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("LuckyCharms/Components/EngraveSkillDescComponent", cc.Prefab)];
                                case 1:
                                    if (t = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._descPrefab = t, this._loadAssets.push(t), s.label = 2;
                                case 2:
                                    if (this._descNodes.forEach(function(e) {
                                            e.active = !1
                                        }), o = [], r = n.GetEngraveDescDatas(e, !0), i = r[0].type, this.DetailButton.node.active = 101 != i, a = d.DataCenter.Instance.GetDataById(c.UserHero_Model, this._luckyCharmModel.OwnerId), p = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, a.HeroId), 1 == i)
                                        for (h = 0; h < r.length; h++)(f = r[h]).param != p.Career && 0 != f.param || o.push(f);
                                    else if (2 == i)
                                        for (h = 0; h < r.length; h++)(f = r[h]).param != p.ElementType && 0 != f.param || o.push(f);
                                    else if (101 == i)
                                        for (h = 0; h < r.length; h++) 0 == (f = r[h]).param && o.push(f);
                                    return o.forEach(function(e, t) {
                                        if (!y._descNodes[t]) {
                                            var n = cc.instantiate(y._descPrefab);
                                            n.parent = y.ScrollViewContent, y._descNodes[t] = n
                                        }
                                        y._descNodes[t].active = !0, y._descNodes[t].getChildByName("SkillLabel").getComponent(cc.Label).string = e.desc
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetMaterialNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, h, y, g, I, _ = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = 0, this.EngraveButton.node.active = !1, this._luckyCharmModel.GloryStar == this._maxLevel ? (this.MaterialContent.active = !1, this.MaxLevelLabel.node.active = !0, this.MaxLevelLabel.string = "common_max_level".ToUILocale()) : this._selectIndex < this._luckyCharmModel.GloryStar ? (this.MaterialContent.active = !1, this.MaxLevelLabel.node.active = !0, this.MaxLevelLabel.string = "artifact_has_active".ToUILocale()) : 0 == this._selectIndex && 0 == this._luckyCharmModel.GloryStar ? (this.MaterialContent.active = !0, this.MaxLevelLabel.node.active = !1, this.EngraveButton.node.active = !0, e = 1) : (t = this._selectIndex + 1, r = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * p.CommonItemId.GloryLuckyCharm + t), n = r.Unlock[0] || 0, o = r.Unlock[1] || 0, this._luckyCharmModel.StarSkills.length >= n && this._luckyCharmModel.GloryStar >= o && t == this._luckyCharmModel.GloryStar + 1 ? (this.MaterialContent.active = !0, this.MaxLevelLabel.node.active = !1, this.EngraveButton.node.active = !0, e = t) : (this.MaterialContent.active = !1, this.MaxLevelLabel.node.active = !0, this.MaxLevelLabel.string = "engrave_front_limit".ToUILocale())), e > 0 ? (r = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * p.CommonItemId.GloryLuckyCharm + e), this._materialData = {}, r.Materials.forEach(function(e) {
                                        _._materialData[e.Items[0]] ? _._materialData[e.Items[0]] += e.Items[1] : _._materialData[e.Items[0]] = e.Items[1]
                                    }), this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)]) : [3, 3];
                                case 1:
                                    if (i = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(i), [2];
                                    this._itemPrefab = i, this._loadAssets.push(i), s.label = 2;
                                case 2:
                                    for (c in this._itemNodes.forEach(function(e) {
                                            e.active = !1
                                        }), a = 0, this._materialData) this._itemNodes[a] || ((h = cc.instantiate(this._itemPrefab)).parent = this.MaterialContent, this._itemNodes[a] = h), this._itemNodes[a].active = !0, (y = this._itemNodes[a].getComponent(m.ItemComponent)).Init({
                                        ItemId: Number(c),
                                        Count: this._materialData[c]
                                    }), g = d.DataCenter.Instance.GetItemCount(Number(c)), I = g >= this._materialData[c] ? this._materialData[c] : g, y.SetProgressBar(I, this._materialData[c]), a++;
                                    return [3, 4];
                                case 3:
                                    this._materialData = null, s.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnEffectIconClick = function(e) {
                    var t = Number.parseInt(e.target.name);
                    t != this._selectIndex && (this._selectIndex = t, this.SetEffectNodes(), this.SetSkillDesc(), this.SetMaterialNode())
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = d.DataCenter.Instance.GetDataById(c.UserHero_Model, this._luckyCharmModel.OwnerId);
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.ChaosElementEffectPanel.Path, this._selectIndex + 1, C.ChaosElementEffectType.GloryLuckyCharm, e.HeroId)
                }, t.prototype.OnEngraveButtonClick = function() {
                    var e = this,
                        t = this._luckyCharmModel.GloryStar + 1;
                    if (d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * p.CommonItemId.GloryLuckyCharm + t)) {
                        if (this._materialData) {
                            for (var n in this._materialData)
                                if (!d.DataCenter.Instance.IsItemEnough(Number(n), this._materialData[n])) return g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(Number(n).ToItemName())), void I.default.ShowItemGetWay(Number(n));
                            var o = d.DataCenter.Instance.GetIntData(p.UserDataKey.Power),
                                r = new c.Req_Item_LuckyCharmUpgradeStar;
                            r.Sid = this._luckyCharmSid, r.ItemId = p.CommonItemId.GloryLuckyCharm, d.RpcComponent.Instance.Call(r, function() {
                                var t = d.DataCenter.Instance.GetIntData(p.UserDataKey.Power);
                                o < t && l.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattlePowerChangePanel.Path, o, t), g.UIUtlity.ShowFloatingHint("engrave_success".ToUILocale()), e.RefreshUIContent()
                            })
                        }
                    } else g.UIUtlity.ShowFloatingHint("common_max_level".ToUILocale())
                }, t.prototype.RefreshUIContent = function() {
                    this._luckyCharmModel = d.DataCenter.Instance.GetDataById(c.LuckyCharmEquip_Model, this._luckyCharmSid), this.SetItemNode(), this.SetAttrNodes(), this.SetEffectNodes(), this.SetMaterialNode(), this.SetReddot(), l.Game.EventDispatcher.Emit(_.EventKeys.EVENT_LUCKYCHARM_REDDOT_REFRESH)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.MaterialContent.children.indexOf(t) && g.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([w(cc.Node)], t.prototype, "LevelUpNode", void 0), i([w(cc.Node)], t.prototype, "MaxLevelNode", void 0), i([w(cc.Sprite)], t.prototype, "BeforeItemSprite", void 0), i([w(cc.Node)], t.prototype, "BeforeItemLevelNode", void 0), i([w(cc.Label)], t.prototype, "BeforeItemName", void 0), i([w(cc.Sprite)], t.prototype, "AfterItemSprite", void 0), i([w(cc.Node)], t.prototype, "AfterItemLevelNode", void 0), i([w(cc.Label)], t.prototype, "AfterItemName", void 0), i([w(cc.Sprite)], t.prototype, "MaxLevelItemSprite", void 0), i([w(cc.Node)], t.prototype, "MaxLevelItemLevelNode", void 0), i([w(cc.Label)], t.prototype, "MaxLevelItemName", void 0), i([w(cc.Label)], t.prototype, "AttrTitle", void 0), i([w(h.default)], t.prototype, "AttrComponent2s", void 0), i([w(cc.Label)], t.prototype, "EffectTitle", void 0), i([w(cc.Node)], t.prototype, "EffectSelectNode", void 0), i([w(cc.Node)], t.prototype, "EffectNodes", void 0), i([w(cc.Label)], t.prototype, "EffectNames", void 0), i([w(cc.Label)], t.prototype, "SkillTitle", void 0), i([w(cc.Button)], t.prototype, "DetailButton", void 0), i([w(cc.Node)], t.prototype, "ScrollViewContent", void 0), i([w(cc.Label)], t.prototype, "MaterialTitle", void 0), i([w(cc.Label)], t.prototype, "MaxLevelLabel", void 0), i([w(cc.Node)], t.prototype, "MaterialContent", void 0), i([w(cc.Button)], t.prototype, "EngraveButton", void 0), i([w(cc.Label)], t.prototype, "EngraveLabel", void 0), i([w(cc.Sprite)], t.prototype, "TitleBgs", void 0), n = i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "./ChaosElementEffectPanel": "ChaosElementEffectPanel"
    }],
    EnumType: [function(e, t, n) {
        "use strict";
        var o, r, i;
        cc._RF.push(t, "84dd1FknnpOy7sbrXjgVvxz", "EnumType"), Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.GameModuleType = n.ProphetSummonType = n.TeamBonusType = n.PetNestUnlockType = n.HeroFavorAttrType = n.HeroFavorType = n.CareerType = n.HeroElementTypeRestrained = n.HeroElementTypeRestrain = n.HeroGrading = n.HeroElementType = n.HeroMaterialType = n.HeroEquipmentType = n.ModuleRequirementType = n.WarTokenType = n.ShopParentType = n.CardCommonSummonType = n.TreasureHuntRewardType = n.NoticeType = n.TreasureHuntType = n.EquipmentStorageType = n.CommonItemId = n.EffectiveCondtionType = n.RefreshCycleType = n.ShopRefreshType = n.RadioType = n.LuckyCharmStarSkillType = n.ItemPieceType = n.HeadIconType = n.ConsumeItemType = n.QualityTypeName = n.QualityType = n.ItemTypeName = n.ItemType = n.TaskConditionType = n.TaskType = n.TaskUnlockConditionType = n.GetSimpleInfoType = n.FriendRequestType = n.ReceiveGiftStatus = n.FriendStatus = n.MonthCardType = n.SubscribePrivilegeType = n.GoodFundType = n.PayCountId = n.PayCurrencyType = n.SpecialRedDotType = n.ModuleBonusType = n.UserType = n.UserDataKey = void 0, n.ActivityTypeName = n.ActivityType = n.FailureCondition = n.TriggerCondition = n.ResetType = n.LimitBuyType = n.CurrencyType = n.MallName = n.GiftPackType = n.BattleMessageType = n.ChatMessageType = n.ChatChannelType = n.AllianceLogType = n.AlliancePostType = n.PlayerInfoType = n.MapType = n.ReceiveRewardType = n.PersonalityMaterialType = n.PersonalityPictureType = n.MainUIBtnId = n.CacheEventType = n.HeroAttributeType = n.PointBoxRewardType = n.LevelParamType = n.RankTypeId = n.GemType = n.IntelligenceQuality = n.AncientSacredTaskType = n.HeroOrderType = n.SortType = n.SortDataType = n.StarResonanceOrderType = n.SecretAreaBuffType = n.SecretAreaGrassType = n.SecretAreaPropType = n.SecretAreaMonsterType = n.SecretDeviceType = n.SecretAreaMapBlockType = n.SecretActivityMapType = n.SecretAreaMapType = n.RelicTreasureHuntEventType = n.RelicTreasureHuntHieronType = n.RelicTreasureHuntGoodsType = n.RelicTreasureHuntDiceType = n.RelicTreasureHuntFork = n.HangUpRewardType = n.AdventureLevel = n.EndlessAbyssBuffType = n.EndlessAbyssType = n.UserDungeonMapType = void 0, n.CouponPackType = n.HeroDataType = n.ElementTempleUpgradeLevelType = n.ArtefactRelicConditionType = n.ArtefactRelicEquipType = n.StandaloneEquipType = n.ArtefactRelicEquipIndex = n.ArtefactForgeType = n.ArtefactUpgradeStarType = n.OldPlayerRecallType = n.ParanormalPuzzleAttrType = n.ParanormalPuzzleUnlockType = n.KnifeTrainingPropType = n.RankRange = n.ChaosTempleType = n.ProgressRewardsType = n.StarGarrisonSlotConditionType = n.StarGarrisonType = n.StrongholdWarHangSettingIndex = n.StrongholdWarGuideArray = n.TreasureHouseAttr = n.DukeRequirementType = n.HeroTalentType = n.DesignationRequirementType = n.StrongholdState = n.FormationConditionType = n.ShopItemBuyLimitType = n.CommonBuyCountType = n.FunctionSkipKey = n.EZUserAccountType = n.SaintsWarType = n.LoverArrowConsumeType = n.HelperOperationType = n.MapPowerLevelType = n.CustomizeMainSceneType = n.AnswerType = n.RoomStatus = n.CoreHeroTag = n.SpecialDataKey = n.SecretPutType = n.MonopolyGridType = n.AllianceChallengeType = n.HeroRoleType = n.HeroBonusType = n.WorldBossType = n.OuterRewardType = n.RandomAudioType = n.HappyTurnType = n.SettleActivity = n.SettleActivityType = void 0, n.AngelCardAngelEffect = n.AngelCardDeckEffect = n.MysteryBoxItem = n.ItemPotionType = n.UserAgeType = n.Int2DArrayType = n.DailyBuffType = n.RuinsWarStrongPointCompeteType = n.RuinsWarAllianceState = n.RuinsWarNoticeType = n.RuinsWarStrongPointType = n.RuinsWarAttrType = n.RuinsWarPlayerBattleType = n.RuinsWarPlayerActionType = n.FantasticPastureObjectEffect = n.FantasticPastureItemEffect = n.Game2048UseItemType = n.Game2048MoveType = n.PushMessageEventIndex = n.FightingMiniGameCommandSubIndex = n.FightingMiniGameRoomType = n.HeroShowGrading = n.LimitTimeImpactRankType = n.DrawCardFightIntArrayType = n.HeroUnlockConditionType = n.ActivityForecastIdType = n.WarActionType = n.WarNoticeType = n.WarHeroStatus = n.WarHangUpIndex = n.WarTaskIndex = n.WarCityStatus = n.WarCityType = n.BannerCampaignType = n.CircusMazeGameType = n.CircusMazeEventType = n.VnPayMethods = n.HardTestTowerTypeId = n.RankType = n.AllZoneRankType = n.StarEmbattleUnlockType = n.RunningTrainItemConsumeType = n.TicketConditionType = n.TicketSubType = n.PacksOrderId = n.HolyEquipmentState = n.LuckyCharmStarAttr2Type = n.UpdateHeroSkinItemType = n.ForecastContentType = n.ForecastType = void 0, n.AJGlobalParamType = n.ModuleStartTimeName = n.ModuleStartTime = n.AllianceTaskType = n.AssaultOperationBattleInfo = n.AssaultOperationRankType = n.AssaultOperationPlayerOperation = n.AssaultOperationSpecialResourceType = n.AssaultOperationResourceType = n.AssaultOperationMessageType = n.StarryPrayerRewardType = n.AllianceRedPacket = n.StatEventTrackingActionType = n.StatEventTrackingType = n.AllianceMazeStateType = n.AllianceMazeEventType = n.MagicCircleTalentEffect = n.HorseRaceLampType = n.MallPageType = n.DataAnalysisType = n.RankMatchDataCase = n.SingleRankActivityType = n.StrongPathTasksType = n.WeightChangeType = n.PiggyBankActionType = n.AngelCardColor = n.AngelCardBlessBuffer = n.AngelCardBasicAttr = n.AngelCardStageType = n.AngelCardHandCardType = void 0,
            function(e) {
                e[e.PlayerLevel = 1] = "PlayerLevel", e[e.HeadIcon = 2] = "HeadIcon", e[e.HeadFrame = 3] = "HeadFrame", e[e.Avatar = 4] = "Avatar", e[e.VipLevel = 5] = "VipLevel", e[e.LastLogin = 6] = "LastLogin", e[e.Power = 7] = "Power", e[e.CreateTime = 8] = "CreateTime", e[e.LastResetTime = 9] = "LastResetTime", e[e.MainLineProgress = 10] = "MainLineProgress", e[e.HighestPower = 11] = "HighestPower", e[e.CurrentBeDisplaceHero = 12] = "CurrentBeDisplaceHero", e[e.CurrentNewDisplaceHero = 13] = "CurrentNewDisplaceHero", e[e.IntelligenceFreeCount = 15] = "IntelligenceFreeCount", e[e.IntelligenceCount = 16] = "IntelligenceCount", e[e.ArenaChallengeCount = 17] = "ArenaChallengeCount", e[e.LuckyCharmFailPiece = 18] = "LuckyCharmFailPiece", e[e.AllianceAdvertiseCount = 19] = "AllianceAdvertiseCount", e[e.SeniorArenaChallengeCount = 20] = "SeniorArenaChallengeCount", e[e.StarHolyStatueLevel = 21] = "StarHolyStatueLevel", e[e.StarHolyStatueCount = 22] = "StarHolyStatueCount", e[e.AllianceTestCount = 23] = "AllianceTestCount", e[e.AllianceTestPass = 24] = "AllianceTestPass", e[e.AllianceTestRedPacket = 25] = "AllianceTestRedPacket", e[e.Title = 26] = "Title", e[e.RenameCount = 27] = "RenameCount", e[e.GiveGiftCount = 28] = "GiveGiftCount", e[e.AcceptGiftCount = 29] = "AcceptGiftCount", e[e.OnlineRewardIndex = 30] = "OnlineRewardIndex", e[e.AdventureRewardIndex = 31] = "AdventureRewardIndex", e[e.BuyCoinTime = 32] = "BuyCoinTime", e[e.BuyCoinCount1 = 33] = "BuyCoinCount1", e[e.BuyCoinCount2 = 34] = "BuyCoinCount2", e[e.BuyCoinCount3 = 35] = "BuyCoinCount3", e[e.RadioMusicOld = 36] = "RadioMusicOld", e[e.RadioSoundOld = 37] = "RadioSoundOld", e[e.VipGift = 38] = "VipGift", e[e.ClockInInfo = 39] = "ClockInInfo", e[e.ClockInIndex = 40] = "ClockInIndex", e[e.FormationsRewards = 42] = "FormationsRewards", e[e.LastActiveTime = 43] = "LastActiveTime", e[e.EightDays = 44] = "EightDays", e[e.FeedbackGiftStartTime = 45] = "FeedbackGiftStartTime", e[e.CloudTreasureHuntId = 48] = "CloudTreasureHuntId", e[e.CloudTreasureHuntCount = 49] = "CloudTreasureHuntCount", e[e.HeroGiftFirstTime = 50] = "HeroGiftFirstTime", e[e.LetterFromDeveloper = 51] = "LetterFromDeveloper", e[e.LetterFromDeveloperTime = 52] = "LetterFromDeveloperTime", e[e.InfiniteTenSummonTime = 53] = "InfiniteTenSummonTime", e[e.SummonWelfare = 54] = "SummonWelfare", e[e.SummonWelfareTime = 55] = "SummonWelfareTime", e[e.SeniorArenaBuyTicketCount = 56] = "SeniorArenaBuyTicketCount", e[e.SeniorArenaStoredCoin = 57] = "SeniorArenaStoredCoin", e[e.SeniorArenaCoinSettleTime = 58] = "SeniorArenaCoinSettleTime", e[e.SeniorArenaBestRank = 59] = "SeniorArenaBestRank", e[e.ArenaBestRank = 60] = "ArenaBestRank", e[e.NewPlayerStrategy = 62] = "NewPlayerStrategy", e[e.DaysPay = 63] = "DaysPay", e[e.MoonTempleCount = 64] = "MoonTempleCount", e[e.MoonTempleTime = 65] = "MoonTempleTime", e[e.LadderRaceChallengeCount = 66] = "LadderRaceChallengeCount", e[e.LadderRaceBuyCount = 67] = "LadderRaceBuyCount", e[e.CrossZoneRankChallengeCount = 68] = "CrossZoneRankChallengeCount", e[e.SinglePagePackIsEnd = 69] = "SinglePagePackIsEnd", e[e.CurrentBeDisplacePersonality = 70] = "CurrentBeDisplacePersonality", e[e.CurrentNewDisplacePersonality = 71] = "CurrentNewDisplacePersonality", e[e.AllianceChallengeStatus = 72] = "AllianceChallengeStatus", e[e.CrossZoneContinueWarRankChallengeCount = 74] = "CrossZoneContinueWarRankChallengeCount", e[e.CountryShowState = 75] = "CountryShowState", e[e.TopRankAlertShowState = 76] = "TopRankAlertShowState", e[e.TopRankAlertIsShow = 77] = "TopRankAlertIsShow", e[e.SinglePagePackIsEnd2 = 78] = "SinglePagePackIsEnd2", e[e.PetWishItemId = 79] = "PetWishItemId", e[e.PetWishCount = 80] = "PetWishCount", e[e.CurrentBeDisplacePet = 81] = "CurrentBeDisplacePet", e[e.CurrentNewDisplacePet = 82] = "CurrentNewDisplacePet", e[e.SaintsWarDaySetFormation = 84] = "SaintsWarDaySetFormation", e[e.SaintsWarDifficultyLevel = 85] = "SaintsWarDifficultyLevel", e[e.SaintsWarDifficultyCanInc = 86] = "SaintsWarDifficultyCanInc", e[e.SaintsWarWeekDecDiffLevel = 87] = "SaintsWarWeekDecDiffLevel", e[e.ChampionRaceGuessCoin = 88] = "ChampionRaceGuessCoin", e[e.GodSoulFailPiece = 89] = "GodSoulFailPiece", e[e.BuyBattlePointTime = 90] = "BuyBattlePointTime", e[e.BuyBattlePointCount1 = 91] = "BuyBattlePointCount1", e[e.BuyBattlePointCount2 = 92] = "BuyBattlePointCount2", e[e.BuyBattlePointCount3 = 93] = "BuyBattlePointCount3", e[e.Designation = 94] = "Designation", e[e.Duke = 95] = "Duke", e[e.AllianceCityWarReceiveFreePoint = 96] = "AllianceCityWarReceiveFreePoint", e[e.EightDaysPaid = 97] = "EightDaysPaid", e[e.SinglePagePackIsEnd3 = 98] = "SinglePagePackIsEnd3", e[e.SinglePagePackIsEnd4 = 99] = "SinglePagePackIsEnd4", e[e.GemGalleryLevel = 100] = "GemGalleryLevel", e[e.IsJoinAllianceCityWar = 101] = "IsJoinAllianceCityWar", e[e.AngelGuide = 102] = "AngelGuide", e[e.ProgressRewardsSenior = 103] = "ProgressRewardsSenior", e[e.ProgressRewardsPersonality = 104] = "ProgressRewardsPersonality", e[e.ArtefactRelicSettleTime = 105] = "ArtefactRelicSettleTime", e[e.ArtefactRelicPayCount = 106] = "ArtefactRelicPayCount", e[e.ArtefactRelicUsedCount = 107] = "ArtefactRelicUsedCount", e[e.ArtefactRelicExtraCount = 108] = "ArtefactRelicExtraCount", e[e.PetShowHouseLevel = 109] = "PetShowHouseLevel", e[e.LuckyCharmShowHouseLevel = 110] = "LuckyCharmShowHouseLevel", e[e.PowerCoreGalleryLevel = 111] = "PowerCoreGalleryLevel", e[e.StarHolyGemMasterLevel = 112] = "StarHolyGemMasterLevel", e[e.StarLightSecretProgress = 113] = "StarLightSecretProgress", e[e.StarLightSecretTodayCount = 114] = "StarLightSecretTodayCount", e[e.GodLandDuelDailyCount = 115] = "GodLandDuelDailyCount", e[e.ChatWindow = 116] = "ChatWindow", e[e.ProgressRewardsDaily = 117] = "ProgressRewardsDaily", e[e.SnsRewards = 118] = "SnsRewards", e[e.PetRefineLevel = 119] = "PetRefineLevel", e[e.PetRefineXp = 120] = "PetRefineXp", e[e.StrongPathCount = 121] = "StrongPathCount", e[e.TotalArenaChallengeCount = 122] = "TotalArenaChallengeCount", e[e.RankMatchTicketIsRecover = 123] = "RankMatchTicketIsRecover", e[e.InfiniteTenSummonCount = 124] = "InfiniteTenSummonCount", e[e.SinglePagePackTs = 125] = "SinglePagePackTs", e[e.AllianceRedPacketOpenCount = 126] = "AllianceRedPacketOpenCount", e[e.AllianceBossReward = 127] = "AllianceBossReward", e[e.AllianceBossApply = 128] = "AllianceBossApply", e[e.ElementTowerSuppressCompute = 129] = "ElementTowerSuppressCompute", e[e.ShowMagicCircle = 130] = "ShowMagicCircle", e[e.ShowPet = 131] = "ShowPet", e[e.WorldBossMaxDamage = 132] = "WorldBossMaxDamage", e[e.WorldBossChallengeCount = 133] = "WorldBossChallengeCount", e[e.AllianceTalentAll = 1e3] = "AllianceTalentAll", e[e.AllianceTalentHeart = 1001] = "AllianceTalentHeart", e[e.AllianceTalentPower = 1002] = "AllianceTalentPower", e[e.AllianceTalentTech = 1003] = "AllianceTalentTech", e[e.AllianceTalentBreak = 1004] = "AllianceTalentBreak", e[e.AllianceTalentFight = 1005] = "AllianceTalentFight", e[e.ChatViewTsSystem = 1011] = "ChatViewTsSystem", e[e.ChatViewTsAlliance = 1013] = "ChatViewTsAlliance", e[e.ChatViewTsWorld = 1014] = "ChatViewTsWorld", e[e.ChatViewTsCrossZone = 1015] = "ChatViewTsCrossZone", e[e.ChatShowCountSystem = 1021] = "ChatShowCountSystem", e[e.ChatShowCountPrivate = 1022] = "ChatShowCountPrivate", e[e.ChatShowCountAlliance = 1023] = "ChatShowCountAlliance", e[e.ChatShowCountWorld = 1024] = "ChatShowCountWorld", e[e.ChatShowCountCrossZone = 1025] = "ChatShowCountCrossZone", e[e.RankGemEquip = 1101] = "RankGemEquip", e[e.RankHolyEquip = 1102] = "RankHolyEquip", e[e.RankPersonality = 1103] = "RankPersonality", e[e.RankFavor = 1104] = "RankFavor", e[e.RankHolyStatue = 1105] = "RankHolyStatue", e[e.RankPiece = 1106] = "RankPiece", e[e.RankFighterSpirit = 1107] = "RankFighterSpirit", e[e.RankPowerCore = 1108] = "RankPowerCore", e[e.RankPuzzle = 1109] = "RankPuzzle", e[e.RankPet = 1110] = "RankPet", e[e.WarRewardTs = 1201] = "WarRewardTs", e[e.WarPointTs = 1202] = "WarPointTs", e[e.TotalPay = 2e3] = "TotalPay", e[e.DailyPay = 2001] = "DailyPay", e[e.DropedItem = 2002] = "DropedItem", e[e.ChaosSummonRemainedPoint = 2003] = "ChaosSummonRemainedPoint", e[e.LastPayTime = 2004] = "LastPayTime", e[e.MonthlyPay = 2005] = "MonthlyPay", e[e.PayScore = 2006] = "PayScore", e[e.HangUpActivityId = 2041] = "HangUpActivityId", e[e.HangUpActivityTime = 2042] = "HangUpActivityTime", e[e.LastHangUpActivityId = 2043] = "LastHangUpActivityId", e[e.LevelGiftNormalIndex = 2061] = "LevelGiftNormalIndex", e[e.LevelGiftAdvanceIndex = 2062] = "LevelGiftAdvanceIndex", e[e.JuniorAndSeniorSummonSkip = 3001] = "JuniorAndSeniorSummonSkip", e[e.NormalAndAdvanceTreasureHuntSkip = 3002] = "NormalAndAdvanceTreasureHuntSkip", e[e.CloudTreasureHuntSkip = 3003] = "CloudTreasureHuntSkip", e[e.LastSkip = 3004] = "LastSkip", e[e.DoubleTest = 10001] = "DoubleTest", e[e.StrKeyStart = 2e4] = "StrKeyStart", e[e.RoleName = 20001] = "RoleName", e[e.UDID = 20002] = "UDID", e[e.LoginIp = 20003] = "LoginIp", e[e.Country = 20005] = "Country", e[e.RadioMusic = 20006] = "RadioMusic", e[e.RadioSound = 20007] = "RadioSound", e[e.Signature = 20008] = "Signature", e[e.Helper = 21001] = "Helper", e[e.Helper2 = 21002] = "Helper2", e[e.Intelligence = 21003] = "Intelligence", e[e.FightingGameGuide = 21004] = "FightingGameGuide", e[e.NewPersonalityGuide = 21005] = "NewPersonalityGuide", e[e.LastFrontStatus = 21006] = "LastFrontStatus", e[e.ArrayKeyStart = 3e4] = "ArrayKeyStart", e[e.DrawedRankRewards = 30001] = "DrawedRankRewards", e[e.DrawedSystemRewards = 30002] = "DrawedSystemRewards", e[e.StarHolyStatueHeros = 30004] = "StarHolyStatueHeros", e[e.StarPowerLevel = 30005] = "StarPowerLevel", e[e.AllianceTestOwners = 30006] = "AllianceTestOwners", e[e.CompletedGuides = 30007] = "CompletedGuides", e[e.LadderRaceTargets = 30008] = "LadderRaceTargets", e[e.DrawedOuterRewards = 30009] = "DrawedOuterRewards", e[e.AllianceChallengeLikeUids = 30010] = "AllianceChallengeLikeUids", e[e.StarHolyStatuePoint = 30011] = "StarHolyStatuePoint", e[e.MainBackground = 30012] = "MainBackground", e[e.SharedTypes = 30013] = "SharedTypes", e[e.TwentyOneGameRandomCards = 30014] = "TwentyOneGameRandomCards", e[e.SPHeroTryMapIds = 30016] = "SPHeroTryMapIds", e[e.SkipOrNotPrompt = 30017] = "SkipOrNotPrompt", e[e.ActivePersonalityIds = 30018] = "ActivePersonalityIds", e[e.ActiveSkinIds = 30019] = "ActiveSkinIds", e[e.ActivePersonalityIdLevels = 30021] = "ActivePersonalityIdLevels", e[e.StarPieceResonance = 30022] = "StarPieceResonance", e[e.CityWarGuide = 30023] = "CityWarGuide", e[e.ChaosTempleLevel = 30024] = "ChaosTempleLevel", e[e.HolyEquipGalleryLevel = 30025] = "HolyEquipGalleryLevel", e[e.GameModuleGuide = 30026] = "GameModuleGuide", e[e.ExclusiveWeaponGalleryLevel = 30027] = "ExclusiveWeaponGalleryLevel", e[e.CityWarHangSetting = 30028] = "CityWarHangSetting", e[e.PlayerDetailNotShow = 30029] = "PlayerDetailNotShow", e[e.OldPlayerRecall = 30030] = "OldPlayerRecall", e[e.CrossChampionRaceRewardsState = 30031] = "CrossChampionRaceRewardsState", e[e.AllZoneChampionRaceRewardsState = 30032] = "AllZoneChampionRaceRewardsState", e[e.HeroElementHighestPower = 30033] = "HeroElementHighestPower", e[e.WarHangUp = 30034] = "WarHangUp", e[e.AllianceChallengeOwners = 30035] = "AllianceChallengeOwners", e[e.PushMessageEvent = 30036] = "PushMessageEvent", e[e.DailyBuff = 30037] = "DailyBuff", e[e.PetNest = 30038] = "PetNest", e[e.StrongPathTasks = 30039] = "StrongPathTasks", e[e.RankMatchClassificationRobots = 30040] = "RankMatchClassificationRobots", e[e.RankMatchClassificationInfo = 30041] = "RankMatchClassificationInfo", e[e.RankMatchChallengeTargetUids = 30042] = "RankMatchChallengeTargetUids", e[e.GameModulePopGuide = 30043] = "GameModulePopGuide", e[e.GameModulePopGuidePage = 30044] = "GameModulePopGuidePage", e[e.GameGuideArray = 30045] = "GameGuideArray", e[e.AllianceRedPacketIds = 30050] = "AllianceRedPacketIds", e[e.StarPowerAwaken = 30051] = "StarPowerAwaken", e[e.StarTowerSuppressCurrent = 30052] = "StarTowerSuppressCurrent", e[e.StarTowerSuppressMax = 30053] = "StarTowerSuppressMax", e[e.CloudTreasureHuntPack = 32002] = "CloudTreasureHuntPack"
            }(n.UserDataKey || (n.UserDataKey = {})),
            function(e) {
                e[e.LontTimeUser = 0] = "LontTimeUser", e[e.ZoneNewUser = 1] = "ZoneNewUser", e[e.NewUser = 2] = "NewUser"
            }(n.UserType || (n.UserType = {})),
            function(e) {
                e[e.HangUpCoin = 1] = "HangUpCoin", e[e.HangUpXp = 2] = "HangUpXp", e[e.HangUpXpWater = 3] = "HangUpXpWater", e[e.HangUpRewardTime = 4] = "HangUpRewardTime", e[e.HeroBaseCountLimit = 5] = "HeroBaseCountLimit", e[e.BuyCoin = 6] = "BuyCoin", e[e.RelicBuyDice = 7] = "RelicBuyDice", e[e.AllianceTestFirst = 8] = "AllianceTestFirst", e[e.DailyInstance = 9] = "DailyInstance", e[e.QuickBattleDiamond = 11] = "QuickBattleDiamond", e[e.QuickBattleFree = 10] = "QuickBattleFree", e[e.ItlgcTaskRefresh = 12] = "ItlgcTaskRefresh", e[e.HangUpIntelligence = 13] = "HangUpIntelligence", e[e.DailyInstanceCoin = 14] = "DailyInstanceCoin", e[e.DailyInstanceXp = 15] = "DailyInstanceXp", e[e.DailyInstanceHero = 16] = "DailyInstanceHero", e[e.DailyInstanceCharm = 17] = "DailyInstanceCharm", e[e.DailyInstanceCoinCount = 18] = "DailyInstanceCoinCount", e[e.DailyInstanceXpCount = 19] = "DailyInstanceXpCount", e[e.DailyInstanceHeroCount = 20] = "DailyInstanceHeroCount", e[e.DailyInstanceCharmCount = 21] = "DailyInstanceCharmCount", e[e.BuyBattlePoint = 22] = "BuyBattlePoint", e[e.DailyInstanceAngel = 23] = "DailyInstanceAngel", e[e.DailyInstanceAngelCount = 24] = "DailyInstanceAngelCount", e[e.DailyBuffCount = 25] = "DailyBuffCount", e[e.PetNestRatio = 26] = "PetNestRatio", e[e.UnlockKeyStart = 100] = "UnlockKeyStart", e[e.UnlockTreasureHuntNormalTen = 101] = "UnlockTreasureHuntNormalTen", e[e.UnlockProphetPointSummon = 102] = "UnlockProphetPointSummon", e[e.UnlockCrystal = 103] = "UnlockCrystal", e[e.GetHeadFrame = 104] = "GetHeadFrame", e[e.BattleSpeedAndCutOut = 105] = "BattleSpeedAndCutOut", e[e.CanNotStackKeyStart = 200] = "CanNotStackKeyStart", e[e.BeSureToIntelligence = 201] = "BeSureToIntelligence", e[e.SendItems = 202] = "SendItems", e[e.BattleSpeed = 203] = "BattleSpeed", e[e.BattleCutOut = 204] = "BattleCutOut", e[e.Helper = 205] = "Helper", e[e.PetNest = 206] = "PetNest", e[e.VipMoney = 207] = "VipMoney"
            }(n.ModuleBonusType || (n.ModuleBonusType = {})),
            function(e) {
                e[e.AllianceId = 1] = "AllianceId", e[e.FriendRequest = 2] = "FriendRequest", e[e.FriendGift = 3] = "FriendGift", e[e.UnreadMail = 4] = "UnreadMail", e[e.AllianceTest = 5] = "AllianceTest", e[e.DaysPay = 6] = "DaysPay", e[e.AllianceChallenge = 7] = "AllianceChallenge", e[e.VnPayOrder = 8] = "VnPayOrder", e[e.War = 9] = "War", e[e.NoviceTrainingZoneReward = 10] = "NoviceTrainingZoneReward", e[e.RuinsWarLevleUpgrade = 11] = "RuinsWarLevleUpgrade", e[e.CutPriceGiftHelp = 12] = "CutPriceGiftHelp", e[e.TradeWarGoCityEndTime = 13] = "TradeWarGoCityEndTime", e[e.TradeWarJoin = 14] = "TradeWarJoin", e[e.BossHuntJoin = 15] = "BossHuntJoin", e[e.BossHuntRoundReward = 16] = "BossHuntRoundReward", e[e.UniversalBenefitsReward = 17] = "UniversalBenefitsReward", e[e.RankMatchRankId = 18] = "RankMatchRankId", e[e.AllianceMazeLevelReward = 19] = "AllianceMazeLevelReward", e[e.AllianceMazeShowReward = 20] = "AllianceMazeShowReward", e[e.AllianceMazeCanSetShow = 21] = "AllianceMazeCanSetShow", e[e.SendAllianceRedPacket = 22] = "SendAllianceRedPacket", e[e.ReceiveNorAllianceRedPacket = 23] = "ReceiveNorAllianceRedPacket", e[e.ReceiveHigAllianceRedPacket = 24] = "ReceiveHigAllianceRedPacket", e[e.AllianceBOSSReward = 25] = "AllianceBOSSReward", e[e.AllianceBOSSLevel = 26] = "AllianceBOSSLevel", e[e.AssaultOperationContribute = 27] = "AssaultOperationContribute", e[e.SlgPersonalBattleMessage = 28] = "SlgPersonalBattleMessage", e[e.SlgAllianceBattleMessage = 29] = "SlgAllianceBattleMessage", e[e.SlgGrassExperienceMessage = 30] = "SlgGrassExperienceMessage", e[e.SlgGrassLiquidMessage = 31] = "SlgGrassLiquidMessage", e[e.SlgAllianceHelpMessage = 32] = "SlgAllianceHelpMessage", e[e.SlgSignUp = 33] = "SlgSignUp", e[e.AssaultOperationNotGetReward = 34] = "AssaultOperationNotGetReward", e[e.AllianceMazeResource = 35] = "AllianceMazeResource", e[e.AllianceBadge = 36] = "AllianceBadge", e[e.EndTypeId = 37] = "EndTypeId"
            }(n.SpecialRedDotType || (n.SpecialRedDotType = {})),
            function(e) {
                e[e.Platform = 1] = "Platform", e[e.VipPoint = 2] = "VipPoint"
            }(n.PayCurrencyType || (n.PayCurrencyType = {})),
            function(e) {
                e[e.DaysGift = 1] = "DaysGift", e[e.LuckyStar = 2] = "LuckyStar", e[e.DaysPay = 3] = "DaysPay"
            }(n.PayCountId || (n.PayCountId = {})),
            function(e) {
                e[e.GoodFund = 1] = "GoodFund", e[e.GoodFund2 = 2] = "GoodFund2", e[e.GoodFund3 = 3] = "GoodFund3", e[e.GoodFund4 = 4] = "GoodFund4"
            }(n.GoodFundType || (n.GoodFundType = {})),
            function(e) {
                e[e.Intelligence = 1] = "Intelligence", e[e.Summon = 2] = "Summon", e[e.Battle = 3] = "Battle", e[e.Diamond = 4] = "Diamond", e[e.Helper = 5] = "Helper", e[e.PetNest = 6] = "PetNest", e[e.VipMoney = 7] = "VipMoney"
            }(n.SubscribePrivilegeType || (n.SubscribePrivilegeType = {})),
            function(e) {
                e[e.Glory = 1] = "Glory", e[e.Supreme = 2] = "Supreme", e[e.Perfect = 3] = "Perfect", e[e.King = 4] = "King", e[e.End = 5] = "End"
            }(n.MonthCardType || (n.MonthCardType = {})),
            function(e) {
                e[e.NotSend = 0] = "NotSend", e[e.NotAgreed = 1] = "NotAgreed", e[e.Friend = 2] = "Friend"
            }(n.FriendStatus || (n.FriendStatus = {})),
            function(e) {
                e[e.NotGive = 0] = "NotGive", e[e.NotReceive = 1] = "NotReceive", e[e.Received = 2] = "Received"
            }(n.ReceiveGiftStatus || (n.ReceiveGiftStatus = {})),
            function(e) {
                e[e.SendApplication = 1] = "SendApplication", e[e.RefuseApplication = 2] = "RefuseApplication", e[e.AgreedApplication = 3] = "AgreedApplication", e[e.RemoveFriend = 4] = "RemoveFriend", e[e.JoinBlackList = 5] = "JoinBlackList", e[e.RemoveBlackList = 6] = "RemoveBlackList"
            }(n.FriendRequestType || (n.FriendRequestType = {})),
            function(e) {
                e[e.Friend = 0] = "Friend", e[e.Blicklist = 1] = "Blicklist", e[e.Application = 2] = "Application"
            }(n.GetSimpleInfoType || (n.GetSimpleInfoType = {})),
            function(e) {
                e[e.PlayerLevel = 1] = "PlayerLevel", e[e.PreTask = 2] = "PreTask", e[e.GameModule = 3] = "GameModule", e[e.VipLevel = 4] = "VipLevel"
            }(n.TaskUnlockConditionType || (n.TaskUnlockConditionType = {})),
            function(e) {
                e[e.MainLine = 1] = "MainLine", e[e.Daily = 2] = "Daily", e[e.Weekly = 3] = "Weekly", e[e.Activity = 4] = "Activity", e[e.CrossZoneRankDaily = 5] = "CrossZoneRankDaily", e[e.CrossZoneRankWeekly = 6] = "CrossZoneRankWeekly", e[e.CrossZoneContinueWarRankDaily = 7] = "CrossZoneContinueWarRankDaily", e[e.CrossZoneContinueWarRankWeekly = 8] = "CrossZoneContinueWarRankWeekly", e[e.AllianceCityWarDaily = 9] = "AllianceCityWarDaily", e[e.AllianceCityWarWeekly = 10] = "AllianceCityWarWeekly", e[e.ChaosSummon = 11] = "ChaosSummon", e[e.ParanormalPuzzle = 12] = "ParanormalPuzzle", e[e.Artefact = 13] = "Artefact", e[e.GodLandDuelDaily = 14] = "GodLandDuelDaily", e[e.GodLandDuelWeekly = 15] = "GodLandDuelWeekly", e[e.WarDaily = 16] = "WarDaily", e[e.WarWeekly = 17] = "WarWeekly"
            }(n.TaskType || (n.TaskType = {})),
            function(e) {
                e[e.ActLoginGame = 1001] = "ActLoginGame", e[e.ReceiveHangUpReward = 1002] = "ReceiveHangUpReward", e[e.DispatchTask = 1003] = "DispatchTask", e[e.SeniorSummon = 1004] = "SeniorSummon", e[e.Summon = 1005] = "Summon", e[e.ArenaChallenge = 1006] = "ArenaChallenge", e[e.RelicThrowingDice = 1007] = "RelicThrowingDice", e[e.BuyCoin = 1008] = "BuyCoin", e[e.DailyInstanceQuickBattle = 1009] = "DailyInstanceQuickBattle", e[e.QuickBattle = 1010] = "QuickBattle", e[e.DecomposeHero = 1011] = "DecomposeHero", e[e.ProphetSummon = 1012] = "ProphetSummon", e[e.TestTowerChallenge = 1013] = "TestTowerChallenge", e[e.TreasureHuntNormal = 1014] = "TreasureHuntNormal", e[e.TreasureHuntAdvance = 1015] = "TreasureHuntAdvance", e[e.GetHero5 = 1016] = "GetHero5", e[e.GetHero4 = 1017] = "GetHero4", e[e.GetHolyEquipment = 1018] = "GetHolyEquipment", e[e.SmelterSmelt = 1019] = "SmelterSmelt", e[e.LuckyCharmCompose = 1020] = "LuckyCharmCompose", e[e.LuckyCharmCast = 1021] = "LuckyCharmCast", e[e.EndlessAbyssJoin = 1022] = "EndlessAbyssJoin", e[e.SecretAreaExplorePass = 1023] = "SecretAreaExplorePass", e[e.AllianceTestJoin = 1024] = "AllianceTestJoin", e[e.DispatchTaskSS = 1025] = "DispatchTaskSS", e[e.DispatchTaskS = 1026] = "DispatchTaskS", e[e.GetHero6 = 1027] = "GetHero6", e[e.Rename = 1033] = "Rename", e[e.PersonalitySummon = 1034] = "PersonalitySummon", e[e.SeniorArenaChallenge = 1035] = "SeniorArenaChallenge", e[e.SeniorArenaWin = 1036] = "SeniorArenaWin", e[e.GetSeniorArenaCoin = 1037] = "GetSeniorArenaCoin", e[e.BuyAnyPack = 1038] = "BuyAnyPack", e[e.PayDays = 1039] = "PayDays", e[e.AncientSacredPass = 1040] = "AncientSacredPass", e[e.ElementTowerChallenge = 1041] = "ElementTowerChallenge", e[e.DispatchTaskAbove = 1042] = "DispatchTaskAbove", e[e.WorldChat = 1043] = "WorldChat", e[e.HolyEquipmentStrengthen = 1044] = "HolyEquipmentStrengthen", e[e.HolyEquipmentBless = 1045] = "HolyEquipmentBless", e[e.ShopBuyItem = 1046] = "ShopBuyItem", e[e.Favor = 1047] = "Favor", e[e.PayCount = 1048] = "PayCount", e[e.SetGem = 1049] = "SetGem", e[e.ActivitySummon = 1050] = "ActivitySummon", e[e.SinglePayCount = 1051] = "SinglePayCount", e[e.UseItem = 1052] = "UseItem", e[e.GemForge = 1053] = "GemForge", e[e.GemCompose = 1054] = "GemCompose", e[e.CrossZoneRankChallenge = 1055] = "CrossZoneRankChallenge", e[e.CrossZoneRankWin = 1056] = "CrossZoneRankWin", e[e.WishTreeSummon = 1057] = "WishTreeSummon", e[e.AllUserPuzzleGiveBlock = 1058] = "AllUserPuzzleGiveBlock", e[e.DailyTaskPoint = 1059] = "DailyTaskPoint", e[e.WorldBossCount = 1060] = "WorldBossCount", e[e.WorldBossSumDamage = 1061] = "WorldBossSumDamage", e[e.LoginGame = 1062] = "LoginGame", e[e.GetItem = 1063] = "GetItem", e[e.MonopolyThrow = 1064] = "MonopolyThrow", e[e.CrossZoneContinueWarRankChallenge = 1065] = "CrossZoneContinueWarRankChallenge", e[e.CrossZoneContinueWarRankWin = 1066] = "CrossZoneContinueWarRankWin", e[e.EquipmentForging = 1067] = "EquipmentForging", e[e.ClockIn = 1068] = "ClockIn", e[e.TwentyOneGameCount = 1069] = "TwentyOneGameCount", e[e.TwentyOneGameWin = 1070] = "TwentyOneGameWin", e[e.DropedItemAndCount = 1071] = "DropedItemAndCount", e[e.ActivityBossCount = 1072] = "ActivityBossCount", e[e.ActivityBossSumDamage = 1073] = "ActivityBossSumDamage", e[e.GetQualityPet = 1074] = "GetQualityPet", e[e.GetPersonalityItem = 1075] = "GetPersonalityItem", e[e.PersonalityUpgradeStar = 1076] = "PersonalityUpgradeStar", e[e.GetQualityGem = 1077] = "GetQualityGem", e[e.StarHolyStatueUpgradeLevel = 1078] = "StarHolyStatueUpgradeLevel", e[e.Cloud = 1079] = "Cloud", e[e.SummonPerson = 1080] = "SummonPerson", e[e.PVETalentUpgradeLevel = 1081] = "PVETalentUpgradeLevel", e[e.PVPTalentUpgradeLevel = 1082] = "PVPTalentUpgradeLevel", e[e.GetQualityLuckyCharm = 1083] = "GetQualityLuckyCharm", e[e.GetPowerCore = 1084] = "GetPowerCore", e[e.PowerCoreUpgradeLevel = 1085] = "PowerCoreUpgradeLevel", e[e.PowerCoreUpgradeStar = 1086] = "PowerCoreUpgradeStar", e[e.GetLevelGodSoul = 1087] = "GetLevelGodSoul", e[e.TreasureHouseItem = 1088] = "TreasureHouseItem", e[e.TreasureHouseSerials = 1089] = "TreasureHouseSerials", e[e.TreasureHouseSkills = 1090] = "TreasureHouseSkills", e[e.TreasureHouseItem2 = 1091] = "TreasureHouseItem2", e[e.TreasureHouseSerials2 = 1092] = "TreasureHouseSerials2", e[e.ChaosSummon = 1093] = "ChaosSummon", e[e.StoryChallenge = 1094] = "StoryChallenge", e[e.ShopBuyGoods = 1095] = "ShopBuyGoods", e[e.GetPuzzleItem = 1096] = "GetPuzzleItem", e[e.DecomposePuzzleItem = 1097] = "DecomposePuzzleItem", e[e.ArtefactForgeCount = 1098] = "ArtefactForgeCount", e[e.GodLandDuelTakePart = 1099] = "GodLandDuelTakePart", e[e.GodLandDuelWin = 1100] = "GodLandDuelWin", e[e.GetHeroScore = 1101] = "GetHeroScore", e[e.JobOpen = 1102] = "JobOpen", e[e.JobChange = 1103] = "JobChange", e[e.WeaponUpgradeLevel = 1104] = "WeaponUpgradeLevel", e[e.PetUpgradeLevel = 1105] = "PetUpgradeLevel", e[e.PetUpgradeStar = 1106] = "PetUpgradeStar", e[e.PetRefine = 1107] = "PetRefine", e[e.RankMatchChallengeCount = 1108] = "RankMatchChallengeCount", e[e.TestTowerChallengeSuccess = 1109] = "TestTowerChallengeSuccess", e[e.TestTowerHardChallengeSuccess = 1110] = "TestTowerHardChallengeSuccess", e[e.AllianceBossChallenge = 1111] = "AllianceBossChallenge", e[e.CrossWorldBossCount = 1112] = "CrossWorldBossCount", e[e.CrossWorldBossSumDamage = 1113] = "CrossWorldBossSumDamage", e[e.CountExclusiveStart = 1800] = "CountExclusiveStart", e[e.SummonBoxSummon = 1801] = "SummonBoxSummon", e[e.KnifeTrainingCount1 = 1802] = "KnifeTrainingCount1", e[e.KnifeTrainingCount2 = 1803] = "KnifeTrainingCount2", e[e.PickFoodCount = 1804] = "PickFoodCount", e[e.PickFoodScore = 1805] = "PickFoodScore", e[e.PickFoodTotalScore = 1806] = "PickFoodTotalScore", e[e.FinishActivityDailyTaskDays = 1807] = "FinishActivityDailyTaskDays", e[e.HeroPKCount = 1808] = "HeroPKCount", e[e.HeroPKWinCount = 1809] = "HeroPKWinCount", e[e.NinjaMiniGameCount = 1810] = "NinjaMiniGameCount", e[e.NinjaMiniGameMeters = 1811] = "NinjaMiniGameMeters", e[e.ActChampionshipChallenge = 1812] = "ActChampionshipChallenge", e[e.ActChampionshipWin = 1813] = "ActChampionshipWin", e[e.ActBreakouChallenge = 1814] = "ActBreakouChallenge", e[e.ActBreakouWin = 1815] = "ActBreakouWin", e[e.FightingMiniGamePlayCount = 1816] = "FightingMiniGamePlayCount", e[e.FightingMiniGameWinCount = 1817] = "FightingMiniGameWinCount", e[e.TradeWarMoveCount = 1818] = "TradeWarMoveCount", e[e.TradeWarAttackCount = 1819] = "TradeWarAttackCount", e[e.FightingMiniGameFixedHero = 1820] = "FightingMiniGameFixedHero", e[e.CutPriceGiftHelp = 1821] = "CutPriceGiftHelp", e[e.CutPriceGiftBuy = 1822] = "CutPriceGiftBuy", e[e.RuinsWarBattleUpgarde = 1823] = "RuinsWarBattleUpgarde", e[e.BossHuntChallengeCount = 1824] = "BossHuntChallengeCount", e[e.ActCloud = 1825] = "ActCloud", e[e.CountExclusiveEnd = 1826] = "CountExclusiveEnd", e[e.StatusCondtionId = 2e3] = "StatusCondtionId", e[e.Adventure = 2001] = "Adventure", e[e.StarPiece = 2002] = "StarPiece", e[e.PlayerLevel = 2003] = "PlayerLevel", e[e.PlayerPower = 2004] = "PlayerPower", e[e.ArenaScore = 2005] = "ArenaScore", e[e.TestTowerLayer = 2006] = "TestTowerLayer", e[e.OwnedLevelHero = 2007] = "OwnedLevelHero", e[e.OwnedStarLevelHero = 2008] = "OwnedStarLevelHero", e[e.PayPoint = 2009] = "PayPoint", e[e.AncientSacredAllStarPass = 2010] = "AncientSacredAllStarPass", e[e.EndlessAbyss_Single = 2011] = "EndlessAbyss_Single", e[e.EndlessAbyss_Multi = 2012] = "EndlessAbyss_Multi", e[e.AllianceTalentAllFit = 2013] = "AllianceTalentAllFit", e[e.AllianceTalentAnyOneFit = 2014] = "AllianceTalentAnyOneFit", e[e.ArenaRank = 2015] = "ArenaRank", e[e.SeniorArenaRank = 2016] = "SeniorArenaRank", e[e.BuyManyPack = 2017] = "BuyManyPack", e[e.CrossZoneRankStage = 2018] = "CrossZoneRankStage", e[e.ZoneWishTreeSummon = 2019] = "ZoneWishTreeSummon", e[e.WeeklyTaskPoint = 2020] = "WeeklyTaskPoint", e[e.WorldBossDamage = 2021] = "WorldBossDamage", e[e.MonopolyRound = 2022] = "MonopolyRound", e[e.CrossZoneContinueWarRankStage = 2023] = "CrossZoneContinueWarRankStage", e[e.ActivityBossDamage = 2024] = "ActivityBossDamage", e[e.VipLevel = 2025] = "VipLevel", e[e.OwnedElementStarHero = 2026] = "OwnedElementStarHero", e[e.OwnedHeroStar = 2027] = "OwnedHeroStar", e[e.HeroFavorUpgradeLevel = 2028] = "HeroFavorUpgradeLevel", e[e.HeroPersonalityUpgradeStar = 2029] = "HeroPersonalityUpgradeStar", e[e.HaveHeroSkin = 2030] = "HaveHeroSkin", e[e.CityWarAllianceOwnCitys = 2031] = "CityWarAllianceOwnCitys", e[e.CityWarAllianceKills = 2032] = "CityWarAllianceKills", e[e.CityWarAllianceDefenseKills = 2033] = "CityWarAllianceDefenseKills", e[e.CityWarAllianceDefenseWins = 2034] = "CityWarAllianceDefenseWins", e[e.CityWarUserKills = 2035] = "CityWarUserKills", e[e.CityWarUserDefenseKills = 2036] = "CityWarUserDefenseKills", e[e.CityWarUserDefenseWins = 2037] = "CityWarUserDefenseWins", e[e.AngelLevelCount = 2038] = "AngelLevelCount", e[e.AngelFateCount = 2039] = "AngelFateCount", e[e.AngelFavorCount = 2040] = "AngelFavorCount", e[e.CityWarUserDamage = 2041] = "CityWarUserDamage", e[e.CityWarAllianceDamage = 2042] = "CityWarAllianceDamage", e[e.CityWarUserJoinAttack = 2043] = "CityWarUserJoinAttack", e[e.CityWarUserJoinDefense = 2044] = "CityWarUserJoinDefense", e[e.HeroDungeonPassX = 2045] = "HeroDungeonPassX", e[e.ArtefactForgeHave = 2046] = "ArtefactForgeHave", e[e.ArtefactStarHave = 2047] = "ArtefactStarHave", e[e.GetCoreHero = 2048] = "GetCoreHero", e[e.SeasonWeaponLevel = 2049] = "SeasonWeaponLevel", e[e.SeasonWeaponStar = 2050] = "SeasonWeaponStar", e[e.DailyInstance = 2051] = "DailyInstance", e[e.StarResonanceSlot = 2052] = "StarResonanceSlot", e[e.HaveAlliance = 2053] = "HaveAlliance", e[e.MagicCircleTotalStar = 2054] = "MagicCircleTotalStar", e[e.CrossWorldBossDamage = 2055] = "CrossWorldBossDamage", e[e.AssaultOperationContribute = 2056] = "AssaultOperationContribute", e[e.WarStart = 2800] = "WarStart", e[e.WarDamage = 2800] = "WarDamage", e[e.WarKills = 2801] = "WarKills", e[e.WarAttack = 2802] = "WarAttack", e[e.WarDefend = 2803] = "WarDefend", e[e.WarAllianceCitys = 2804] = "WarAllianceCitys", e[e.PlayerCountPower = 2901] = "PlayerCountPower", e[e.BuyManyActivityPack = 3001] = "BuyManyActivityPack", e[e.KnifeTrainingScore = 3002] = "KnifeTrainingScore", e[e.KnifeTrainingMap = 3003] = "KnifeTrainingMap", e[e.HeroPKTotalScore = 3004] = "HeroPKTotalScore", e[e.TradeWarScore = 3005] = "TradeWarScore", e[e.TradeWarTraderLevel = 3006] = "TradeWarTraderLevel", e[e.TradeWarRobberLevel = 3007] = "TradeWarRobberLevel", e[e.RuinsWarKillTarget = 3008] = "RuinsWarKillTarget", e[e.RuinsWarHarmful = 3009] = "RuinsWarHarmful", e[e.BossHuntLevelFinished = 3010] = "BossHuntLevelFinished", e[e.SeasonExpeditionPass = 3011] = "SeasonExpeditionPass", e[e.SeasonExpeditionMapIndex = 3012] = "SeasonExpeditionMapIndex", e[e.SeasonExpeditionPower = 3013] = "SeasonExpeditionPower"
            }(n.TaskConditionType || (n.TaskConditionType = {})),
            function(e) {
                e[e.Currency = 1] = "Currency", e[e.Consume = 2] = "Consume", e[e.Equip = 3] = "Equip", e[e.ItemPiece = 4] = "ItemPiece", e[e.Hero = 5] = "Hero", e[e.HolyEquip = 6] = "HolyEquip", e[e.LuckyCharm = 7] = "LuckyCharm", e[e.TemplePiece = 8] = "TemplePiece", e[e.FavorGift = 9] = "FavorGift", e[e.Personality = 10] = "Personality", e[e.Gem = 11] = "Gem", e[e.ExclusiveTemplePiece = 12] = "ExclusiveTemplePiece", e[e.PowerCore = 13] = "PowerCore", e[e.CurrencyDiscountTicket = 14] = "CurrencyDiscountTicket", e[e.Pet = 15] = "Pet", e[e.HeroLuckyCharm = 16] = "HeroLuckyCharm", e[e.GodSoul = 18] = "GodSoul", e[e.FighterSpirit = 19] = "FighterSpirit", e[e.Puzzle = 20] = "Puzzle", e[e.ArtefactCard = 21] = "ArtefactCard", e[e.SkinPiece = 22] = "SkinPiece", e[e.HeroJob = 24] = "HeroJob", e[e.NewPersonality = 25] = "NewPersonality", e[e.Entry = 26] = "Entry", e[e.Potion = 27] = "Potion", e[e.Voucher = 28] = "Voucher", e[e.PrivilegeToken = 29] = "PrivilegeToken", e[e.MagicCircle = 30] = "MagicCircle", e[e.AllianceRedPacket = 31] = "AllianceRedPacket", e[e.ActStory = 32] = "ActStory", e[e.Virtual = 99] = "Virtual"
            }(n.ItemType || (n.ItemType = {})),
            function(e) {
                e[e["\u8d27\u5e01"] = 1] = "\u8d27\u5e01", e[e["\u9053\u5177"] = 2] = "\u9053\u5177", e[e["\u88c5\u5907"] = 3] = "\u88c5\u5907", e[e["\u7269\u54c1\u788e\u7247"] = 4] = "\u7269\u54c1\u788e\u7247", e[e["\u82f1\u96c4\u6574\u5361"] = 5] = "\u82f1\u96c4\u6574\u5361", e[e["\u795e\u88c5"] = 6] = "\u795e\u88c5", e[e["\u7b26\u6587"] = 7] = "\u7b26\u6587", e[e["\u79d8\u5b9d\u788e\u7247"] = 8] = "\u79d8\u5b9d\u788e\u7247", e[e["\u597d\u611f\u5ea6\u793c\u7269"] = 9] = "\u597d\u611f\u5ea6\u793c\u7269", e[e["\u5b8c\u6574\u4eba\u683c"] = 10] = "\u5b8c\u6574\u4eba\u683c", e[e["\u5b9d\u77f3"] = 11] = "\u5b9d\u77f3", e[e["\u4e13\u5c5e\u79d8\u5b9d\u788e\u7247"] = 12] = "\u4e13\u5c5e\u79d8\u5b9d\u788e\u7247", e[e["\u5f02\u80fd\u6838\u5fc3"] = 13] = "\u5f02\u80fd\u6838\u5fc3", e[e["\u8d27\u5e01\u6253\u6298\u5238"] = 14] = "\u8d27\u5e01\u6253\u6298\u5238", e[e["\u4f7f\u9b54"] = 15] = "\u4f7f\u9b54", e[e["\u82f1\u96c4\u7b26\u6587\u6280\u80fd"] = 16] = "\u82f1\u96c4\u7b26\u6587\u6280\u80fd", e[e["\u795e\u9b42"] = 18] = "\u795e\u9b42", e[e["\u6597\u9b42"] = 19] = "\u6597\u9b42", e[e["\u62fc\u56fe\u5757"] = 20] = "\u62fc\u56fe\u5757", e[e["\u795e\u5668\u6574\u5361"] = 21] = "\u795e\u5668\u6574\u5361", e[e["\u76ae\u80a4\u788e\u7247"] = 22] = "\u76ae\u80a4\u788e\u7247", e[e["\u82f1\u96c4\u804c\u4e1a\u5361"] = 24] = "\u82f1\u96c4\u804c\u4e1a\u5361", e[e["\u9650\u5b9a\u65b0\u4eba\u683c\u89e3\u9501"] = 25] = "\u9650\u5b9a\u65b0\u4eba\u683c\u89e3\u9501", e[e["\u8d5b\u5b63\u79d8\u5b9d\u8bcd\u6761"] = 26] = "\u8d5b\u5b63\u79d8\u5b9d\u8bcd\u6761", e[e["\u836f\u5242"] = 27] = "\u836f\u5242", e[e["\u4ee3\u5e01"] = 28] = "\u4ee3\u5e01", e[e["\u7279\u6743\u4ee4"] = 29] = "\u7279\u6743\u4ee4", e[e["\u865a\u62df\u7269\u54c1"] = 99] = "\u865a\u62df\u7269\u54c1"
            }(n.ItemTypeName || (n.ItemTypeName = {})),
            function(e) {
                e[e.All = 0] = "All", e[e.C = 1] = "C", e[e.N = 2] = "N", e[e.R = 3] = "R", e[e.SR = 4] = "SR", e[e.SSR = 5] = "SSR", e[e.UR = 6] = "UR", e[e.LR = 7] = "LR", e[e.None = 99] = "None"
            }(n.QualityType || (n.QualityType = {})),
            function(e) {
                e[e["\u767d\u8272"] = 1] = "\u767d\u8272", e[e["\u7eff\u8272"] = 2] = "\u7eff\u8272", e[e["\u84dd\u8272"] = 3] = "\u84dd\u8272", e[e["\u7d2b\u8272"] = 4] = "\u7d2b\u8272", e[e["\u6a59\u8272"] = 5] = "\u6a59\u8272", e[e["\u7ea2\u8272"] = 6] = "\u7ea2\u8272", e[e["\u5f69\u8272"] = 7] = "\u5f69\u8272"
            }(n.QualityTypeName || (n.QualityTypeName = {})),
            function(e) {
                e[e.FixedBox = 1] = "FixedBox", e[e.RandomBox = 2] = "RandomBox", e[e.ManualBox = 3] = "ManualBox", e[e.DynamicBox = 4] = "DynamicBox", e[e.RandomBoxAutomatically = 5] = "RandomBoxAutomatically", e[e.LockedFixedBox = 6] = "LockedFixedBox", e[e.LockedRandomBox = 7] = "LockedRandomBox", e[e.FixedBoxAutomatically = 8] = "FixedBoxAutomatically", e[e.HeadIcon = 11] = "HeadIcon", e[e.HeadFrame = 12] = "HeadFrame", e[e.Title = 13] = "Title", e[e.ChatWindow = 14] = "ChatWindow", e[e.PaidEmoji = 15] = "PaidEmoji", e[e.HeroSoul = 21] = "HeroSoul", e[e.HeroSkin = 31] = "HeroSkin", e[e.MainSceneBackground = 32] = "MainSceneBackground", e[e.PetEgg = 33] = "PetEgg", e[e.AngelSkin = 34] = "AngelSkin", e[e.AngelStarMaterial = 35] = "AngelStarMaterial", e[e.Coupon = 37] = "Coupon", e[e.PrivilegeCard = 38] = "PrivilegeCard", e[e.UpgradeCard = 39] = "UpgradeCard", e[e.CommonHero = 41] = "CommonHero", e[e.CommonPersonality = 42] = "CommonPersonality", e[e.StoryStar = 51] = "StoryStar", e[e.UncertifiedReel = 52] = "UncertifiedReel", e[e.UsableReel = 53] = "UsableReel", e[e.Noraml = 99] = "Noraml", e[e.HeroFixedBox = 901] = "HeroFixedBox", e[e.HeroRandomBox = 902] = "HeroRandomBox", e[e.HeroManualBox = 903] = "HeroManualBox"
            }(n.ConsumeItemType || (n.ConsumeItemType = {})),
            function(e) {
                e[e.Hero = 1] = "Hero", e[e.HeroSkin = 2] = "HeroSkin"
            }(n.HeadIconType || (n.HeadIconType = {})),
            function(e) {
                e[e.HeroPiece = 1] = "HeroPiece", e[e.HolyEquipPiece = 2] = "HolyEquipPiece", e[e.PersonalityPiece = 3] = "PersonalityPiece", e[e.CommonHeroPiece = 4] = "CommonHeroPiece", e[e.CommonPersonalityPiece = 5] = "CommonPersonalityPiece", e[e.PowerCorePiece = 6] = "PowerCorePiece", e[e.PetPiece = 7] = "PetPiece", e[e.ArtefactPiece = 8] = "ArtefactPiece", e[e.SuperWeaponPiece = 9] = "SuperWeaponPiece", e[e.HeroJobPiece = 10] = "HeroJobPiece", e[e.NewPersonality = 11] = "NewPersonality", e[e.SeasonWeapon = 12] = "SeasonWeapon"
            }(n.ItemPieceType || (n.ItemPieceType = {})),
            function(e) {
                e[e.Yin = 2] = "Yin", e[e.Yang = 3] = "Yang", e[e.DoubleYin = 4] = "DoubleYin", e[e.YinYang = 5] = "YinYang", e[e.DoubleYang = 6] = "DoubleYang"
            }(n.LuckyCharmStarSkillType || (n.LuckyCharmStarSkillType = {})),
            function(e) {
                e[e.Music = 1] = "Music", e[e.Sound = 2] = "Sound"
            }(n.RadioType || (n.RadioType = {})),
            function(e) {
                e[e.ItemCycle = 1] = "ItemCycle", e[e.Cycle = 2] = "Cycle", e[e.AddFreeCount = 3] = "AddFreeCount", e[e.Currency = 4] = "Currency", e[e.BuyOut = 5] = "BuyOut"
            }(n.ShopRefreshType || (n.ShopRefreshType = {})),
            function(e) {
                e[e.Not = 0] = "Not", e[e.Day = 1] = "Day", e[e.Week = 2] = "Week", e[e.Month = 3] = "Month"
            }(n.RefreshCycleType || (n.RefreshCycleType = {})),
            function(e) {
                e[e.MainLineProgress = 1] = "MainLineProgress", e[e.PlayerLevel = 2] = "PlayerLevel", e[e.Designation = 3] = "Designation", e[e.HighestPower = 4] = "HighestPower", e[e.StoryTask = 5] = "StoryTask", e[e.OpenDays = 6] = "OpenDays", e[e.AngelPveProgress = 7] = "AngelPveProgress", e[e.LoginWithin = 8] = "LoginWithin", e[e.LoginWithout = 9] = "LoginWithout", e[e.Offline = 10] = "Offline", e[e.GameModule = 1001] = "GameModule"
            }(n.EffectiveCondtionType || (n.EffectiveCondtionType = {})),
            function(e) {
                e[e.Coin = 1] = "Coin", e[e.VipPoint = 2] = "VipPoint", e[e.Diamond = 3] = "Diamond", e[e.ColorDiamond = 4] = "ColorDiamond", e[e.Xp = 5] = "Xp", e[e.Currency = 6] = "Currency", e[e.Intelligence = 7] = "Intelligence", e[e.SeniorArenaCoin = 9] = "SeniorArenaCoin", e[e.Activebadge = 12] = "Activebadge", e[e.SummonScore = 17] = "SummonScore", e[e.AngelWings = 19] = "AngelWings", e[e.AngelMilk = 20] = "AngelMilk", e[e.XpWater = 22] = "XpWater", e[e.WishSummonTicket = 23] = "WishSummonTicket", e[e.OracleShopItemId = 24] = "OracleShopItemId", e[e.AllianceMedal = 26] = "AllianceMedal", e[e.ChaosPersonalityTicket = 27] = "ChaosPersonalityTicket", e[e.IntelligencePrivilege = 31] = "IntelligencePrivilege", e[e.SummonPrivilege = 32] = "SummonPrivilege", e[e.BattlePrivilege = 33] = "BattlePrivilege", e[e.DiamondPrivilege = 34] = "DiamondPrivilege", e[e.DoBattlePrivilege = 35] = "DoBattlePrivilege", e[e.PersonalSummonTicket = 37] = "PersonalSummonTicket", e[e.OracleExchangeItemId = 39] = "OracleExchangeItemId", e[e.DiceId = 41] = "DiceId", e[e.RemoteControlDiceId = 42] = "RemoteControlDiceId", e[e.StarHolyStatueEnergy = 43] = "StarHolyStatueEnergy", e[e.StarGem = 44] = "StarGem", e[e.HonorableLotteryTicket = 46] = "HonorableLotteryTicket", e[e.CorssServerLadderScore = 48] = "CorssServerLadderScore", e[e.PersonalSwitchTicket = 50] = "PersonalSwitchTicket", e[e.StarPowerMaterialHeart = 51] = "StarPowerMaterialHeart", e[e.StarPowerMaterialPower = 52] = "StarPowerMaterialPower", e[e.StarPowerMaterialTech = 53] = "StarPowerMaterialTech", e[e.StarPowerMaterialBreak = 54] = "StarPowerMaterialBreak", e[e.StarPowerMaterialFight = 55] = "StarPowerMaterialFight", e[e.StarPieceIntentsifyMaterial = 60] = "StarPieceIntentsifyMaterial", e[e.StarPieceNormalMaterialBlue = 63] = "StarPieceNormalMaterialBlue", e[e.StarPieceNormalMaterialPurple = 64] = "StarPieceNormalMaterialPurple", e[e.StarPieceNormalMaterialOrange = 65] = "StarPieceNormalMaterialOrange", e[e.StarPieceNormalMaterialRed = 66] = "StarPieceNormalMaterialRed", e[e.HelperPrivilege = 78] = "HelperPrivilege", e[e.PetStone = 87] = "PetStone", e[e.StrategyPoint = 90] = "StrategyPoint", e[e.DukePoint = 91] = "DukePoint", e[e.Maginite = 95] = "Maginite", e[e.ChaosSummonTicket = 99] = "ChaosSummonTicket", e[e.HolyEqptXpPrimary = 101] = "HolyEqptXpPrimary", e[e.HolyEqptXpMiddle = 102] = "HolyEqptXpMiddle", e[e.HolyEqptXpAdvanced = 103] = "HolyEqptXpAdvanced", e[e.HolyEqptXpSuper = 104] = "HolyEqptXpSuper", e[e.HolyEqptStarPrimary = 105] = "HolyEqptStarPrimary", e[e.HolyEqptStarMiddle = 106] = "HolyEqptStarMiddle", e[e.HolyEqptStarAdvanced = 107] = "HolyEqptStarAdvanced", e[e.PetNestPrivilege = 108] = "PetNestPrivilege", e[e.PuzzleCoin = 109] = "PuzzleCoin", e[e.BlessingPowder = 110] = "BlessingPowder", e[e.SmelterSmeltMaterial = 111] = "SmelterSmeltMaterial", e[e.HolyEqptPiece = 112] = "HolyEqptPiece", e[e.SmelterSmeltCount = 113] = "SmelterSmeltCount", e[e.CrownCoin = 114] = "CrownCoin", e[e.CityWarActionPoint = 116] = "CityWarActionPoint", e[e.FighterSpiritEssence = 119] = "FighterSpiritEssence", e[e.PetWishItem = 126] = "PetWishItem", e[e.ChampionGuessCoin = 141] = "ChampionGuessCoin", e[e.ChampinonCoin = 142] = "ChampinonCoin", e[e.ProgressRewardsSenior = 158] = "ProgressRewardsSenior", e[e.ProgressRewardsPersonality = 159] = "ProgressRewardsPersonality", e[e.WarPoint = 199] = "WarPoint", e[e.AssistantExperienceCard = 206] = "AssistantExperienceCard", e[e.ProgressRewardsDaily = 220] = "ProgressRewardsDaily", e[e.MonopolyDice = 267] = "MonopolyDice", e[e.AdvancedDice = 268] = "AdvancedDice", e[e.AllianceMazeHolyExp = 540] = "AllianceMazeHolyExp", e[e.AllianceMazeScore = 541] = "AllianceMazeScore", e[e.AllianceMazeStrength = 542] = "AllianceMazeStrength", e[e.AllianceMazeCoin = 543] = "AllianceMazeCoin", e[e.DailySummonTicket = 550] = "DailySummonTicket", e[e.AdventureJournalGameCoin = 650] = "AdventureJournalGameCoin", e[e.AssaultOperationFruit = 1030] = "AssaultOperationFruit", e[e.AssaultOperationSpiritCrystal = 1034] = "AssaultOperationSpiritCrystal", e[e.PetEssence = 1100] = "PetEssence", e[e.PetRefine = 1101] = "PetRefine", e[e.PetMagic1 = 1103] = "PetMagic1", e[e.PetMagic2 = 1104] = "PetMagic2", e[e.PetMagic3 = 1105] = "PetMagic3", e[e.MagicCircleMaterial1 = 1130] = "MagicCircleMaterial1", e[e.MagicCircleMaterial2 = 1131] = "MagicCircleMaterial2", e[e.WarriorTelekinesis = 1401] = "WarriorTelekinesis", e[e.MasterTelekinesis = 1402] = "MasterTelekinesis", e[e.TankTelekinesis = 1403] = "TankTelekinesis", e[e.SupportTelekinesis = 1404] = "SupportTelekinesis", e[e.VipMoneyPrivilege = 1700] = "VipMoneyPrivilege", e[e.RuinsWarBook = 1834] = "RuinsWarBook", e[e.RuinsWarBattleFlagBook = 1835] = "RuinsWarBattleFlagBook", e[e.NoElementFiveStarHeroSoul = 6005] = "NoElementFiveStarHeroSoul", e[e.GodSoulPiece = 9831] = "GodSoulPiece", e[e.SteppingStone = 10001] = "SteppingStone", e[e.IntelligenceRefresh = 10002] = "IntelligenceRefresh", e[e.GemComposeBook = 10005] = "GemComposeBook", e[e.GemComposeJade = 10006] = "GemComposeJade", e[e.ArenaChallengeTicket = 10103] = "ArenaChallengeTicket", e[e.SeniorArenaChallengeTicket = 10104] = "SeniorArenaChallengeTicket", e[e.RankMatchTicket = 10105] = "RankMatchTicket", e[e.JuniorSummonTicket = 10401] = "JuniorSummonTicket", e[e.SeniorSummonTicket = 10403] = "SeniorSummonTicket", e[e.LuckyCharmPiece = 10450] = "LuckyCharmPiece", e[e.PrimordialLuckyCharm = 10456] = "PrimordialLuckyCharm", e[e.GloryLuckyCharm = 10457] = "GloryLuckyCharm", e[e.StarResonanceCrumbs = 10480] = "StarResonanceCrumbs", e[e.OracleDrawItemId = 14001] = "OracleDrawItemId", e[e.HeroRandomDisplaceItemId = 14002] = "HeroRandomDisplaceItemId", e[e.AbstractHeroId = 29960] = "AbstractHeroId", e[e.AbstractPowerCoreId = 29961] = "AbstractPowerCoreId", e[e.AbstractPetId = 29962] = "AbstractPetId", e[e.NormalTreasureTicket = 37001] = "NormalTreasureTicket", e[e.AdvanceTreasureTicket = 37002] = "AdvanceTreasureTicket", e[e.HeroDisplaceItemId = 37005] = "HeroDisplaceItemId", e[e.AllianceRedPacket = 50010] = "AllianceRedPacket"
            }(n.CommonItemId || (n.CommonItemId = {})),
            function(e) {
                e[e.Items = 1] = "Items", e[e.Equipment = 2] = "Equipment", e[e.Holy = 3] = "Holy"
            }(n.EquipmentStorageType || (n.EquipmentStorageType = {})),
            function(e) {
                e[e.Normal = 1] = "Normal", e[e.Advance = 2] = "Advance"
            }(n.TreasureHuntType || (n.TreasureHuntType = {})),
            function(e) {
                e[e.Normal = 1] = "Normal", e[e.Advance = 2] = "Advance", e[e.ChaosSummon = 3] = "ChaosSummon", e[e.ChaosPersonalitySummon = 4] = "ChaosPersonalitySummon", e[e.Cloud = 5] = "Cloud", e[e.RankAchievement = 6] = "RankAchievement", e[e.LuckyPack = 10] = "LuckyPack", e[e.ActivitySummon = 101] = "ActivitySummon", e[e.WishTree = 102] = "WishTree"
            }(n.NoticeType || (n.NoticeType = {})),
            function(e) {
                e[e.Low = 1] = "Low", e[e.Noraml = 2] = "Noraml", e[e.Advance = 3] = "Advance", e[e.Final = 4] = "Final"
            }(n.TreasureHuntRewardType || (n.TreasureHuntRewardType = {})),
            function(e) {
                e[e.NormalSummon = 1] = "NormalSummon", e[e.NormalSummon10 = 2] = "NormalSummon10", e[e.AdvanceSummon = 3] = "AdvanceSummon", e[e.AdvanceSummon10 = 4] = "AdvanceSummon10", e[e.ScoreSummon = 5] = "ScoreSummon", e[e.ChaosSummon = 6] = "ChaosSummon", e[e.ChaosSummon10 = 7] = "ChaosSummon10", e[e.ChaosPersonalitySummon = 8] = "ChaosPersonalitySummon", e[e.ChaosPersonalitySummon10 = 9] = "ChaosPersonalitySummon10", e[e.DailySummon = 10] = "DailySummon", e[e.DailySummon10 = 11] = "DailySummon10", e[e.MazeExplore = 23] = "MazeExplore", e[e.InfiniteTenSummon = 41] = "InfiniteTenSummon", e[e.GemForgeSummon = 51] = "GemForgeSummon", e[e.GemForgeSummon10 = 52] = "GemForgeSummon10", e[e.SmelterSmelt = 53] = "SmelterSmelt", e[e.SmelterSmelt5 = 54] = "SmelterSmelt5", e[e.PersonalitySummon = 61] = "PersonalitySummon", e[e.PersonalitySummon10 = 62] = "PersonalitySummon10"
            }(n.CardCommonSummonType || (n.CardCommonSummonType = {})),
            function(e) {
                e[e.Type1 = 1] = "Type1", e[e.Type2 = 2] = "Type2", e[e.Type3 = 3] = "Type3", e[e.Type4 = 4] = "Type4", e[e.None = 5] = "None"
            }(n.ShopParentType || (n.ShopParentType = {})),
            function(e) {
                e[e.ElementTower = 1] = "ElementTower", e[e.SacredTreasury = 2] = "SacredTreasury", e[e.Active = 3] = "Active", e[e.ElementTower2 = 11] = "ElementTower2", e[e.ElementTower3 = 12] = "ElementTower3", e[e.ElementTower4 = 13] = "ElementTower4", e[e.ElementTower5 = 14] = "ElementTower5", e[e.ElementTower6 = 15] = "ElementTower6", e[e.ArtefactRelic1 = 31] = "ArtefactRelic1", e[e.DailySummon = 41] = "DailySummon", e[e.RelicTreasureHunt = 42] = "RelicTreasureHunt"
            }(n.WarTokenType || (n.WarTokenType = {})),
            function(e) {
                e[e.PlayerLevel = 1] = "PlayerLevel", e[e.OpenDays = 2] = "OpenDays", e[e.MainLineProgress = 3] = "MainLineProgress", e[e.VipLevel = 4] = "VipLevel", e[e.HighestPower = 5] = "HighestPower", e[e.ArtefactRelic = 6] = "ArtefactRelic", e[e.StarLightSecretLand = 7] = "StarLightSecretLand", e[e.ArenaChallengeCount = 8] = "ArenaChallengeCount", e[e.TestTowerIndex = 101] = "TestTowerIndex", e[e.TestTower = 102] = "TestTower"
            }(n.ModuleRequirementType || (n.ModuleRequirementType = {})),
            function(e) {
                e[e.Weapon = 1] = "Weapon", e[e.Coat = 2] = "Coat", e[e.Glove = 3] = "Glove", e[e.Shoes = 4] = "Shoes"
            }(n.HeroEquipmentType || (n.HeroEquipmentType = {})),
            function(e) {
                e[e.Self = 1] = "Self", e[e.Bond = 2] = "Bond", e[e.Element = 3] = "Element", e[e.Any = 4] = "Any", e[e.SelfOnly = 5] = "SelfOnly"
            }(n.HeroMaterialType || (n.HeroMaterialType = {})),
            function(e) {
                e[e.All = 0] = "All", e[e.Heart = 1] = "Heart", e[e.Power = 2] = "Power", e[e.Tech = 3] = "Tech", e[e.Break = 4] = "Break", e[e.Fight = 5] = "Fight", e[e.Chaos = 6] = "Chaos", e[e.SPHeart = 201] = "SPHeart", e[e.SPPower = 202] = "SPPower", e[e.SPTech = 203] = "SPTech", e[e.SPBreak = 204] = "SPBreak", e[e.SPFight = 205] = "SPFight", e[e.SPChaos = 206] = "SPChaos", e[e.URHeart = 301] = "URHeart", e[e.URPower = 302] = "URPower", e[e.URTech = 303] = "URTech", e[e.URBreak = 304] = "URBreak", e[e.URFight = 305] = "URFight", e[e.URChaos = 306] = "URChaos", e[e.LRHeart = 401] = "LRHeart", e[e.LRPower = 402] = "LRPower", e[e.LRTech = 403] = "LRTech", e[e.LRBreak = 404] = "LRBreak", e[e.LRFight = 405] = "LRFight", e[e.LRChaos = 406] = "LRChaos", e[e.Combine5 = 100] = "Combine5", e[e.Combine3 = 101] = "Combine3", e[e.Combine2 = 102] = "Combine2", e[e.SPCombine5 = 220] = "SPCombine5", e[e.SPCombine3 = 221] = "SPCombine3", e[e.SPCombine2 = 222] = "SPCombine2", e[e.URCombine5 = 320] = "URCombine5", e[e.URCombine3 = 321] = "URCombine3", e[e.URCombine2 = 322] = "URCombine2", e[e.LRCombine5 = 420] = "LRCombine5", e[e.LRCombine3 = 421] = "LRCombine3", e[e.LRCombine2 = 422] = "LRCombine2", e[e.None = 423] = "None"
            }(n.HeroElementType || (n.HeroElementType = {})),
            function(e) {
                e[e.Star1 = 1] = "Star1", e[e.Star2 = 2] = "Star2", e[e.Star3 = 3] = "Star3", e[e.Star4 = 4] = "Star4", e[e.Star5 = 5] = "Star5", e[e.Normal = 6] = "Normal", e[e.Core = 7] = "Core", e[e.SP = 8] = "SP", e[e.Chaos = 9] = "Chaos", e[e.UR = 10] = "UR", e[e.LR = 11] = "LR"
            }(n.HeroGrading || (n.HeroGrading = {})),
            function(e) {
                e[e.Heart = 2] = "Heart", e[e.Power = 3] = "Power", e[e.Tech = 1] = "Tech", e[e.Break = 5] = "Break", e[e.Fight = 4] = "Fight"
            }(n.HeroElementTypeRestrain || (n.HeroElementTypeRestrain = {})),
            function(e) {
                e[e.Heart = 3] = "Heart", e[e.Power = 1] = "Power", e[e.Tech = 2] = "Tech", e[e.Break = 5] = "Break", e[e.Fight = 4] = "Fight"
            }(n.HeroElementTypeRestrained || (n.HeroElementTypeRestrained = {})),
            function(e) {
                e[e.Any = 0] = "Any", e[e.Warrior = 1] = "Warrior", e[e.Master = 2] = "Master", e[e.Tank = 3] = "Tank", e[e.Support = 4] = "Support"
            }(n.CareerType || (n.CareerType = {})),
            function(e) {
                e[e.ElementType = 1] = "ElementType", e[e.Hero = 2] = "Hero"
            }(n.HeroFavorType || (n.HeroFavorType = {})),
            function(e) {
                e[e.Own = 1] = "Own", e[e.ElementType = 2] = "ElementType", e[e.All = 3] = "All"
            }(n.HeroFavorAttrType || (n.HeroFavorAttrType = {})),
            function(e) {
                e[e.PlayerLevel = 1] = "PlayerLevel", e[e.PetLevel = 2] = "PetLevel", e[e.VipLevel = 3] = "VipLevel"
            }(n.PetNestUnlockType || (n.PetNestUnlockType = {})),
            function(e) {
                e[e.AllianceTalent = 101] = "AllianceTalent", e[e.StarHolyStatue = 102] = "StarHolyStatue", e[e.StarPower = 103] = "StarPower", e[e.StarPiece = 104] = "StarPiece", e[e.HeroFavor = 105] = "HeroFavor", e[e.HeroFavorRoad = 106] = "HeroFavorRoad", e[e.UserIcon = 107] = "UserIcon", e[e.MoonTemple = 108] = "MoonTemple", e[e.StarEmbattle = 109] = "StarEmbattle", e[e.MainSceneBackground = 110] = "MainSceneBackground", e[e.CollectHouse = 111] = "CollectHouse", e[e.HeroFetter = 112] = "HeroFetter", e[e.PersonalityPic = 113] = "PersonalityPic", e[e.SkinPic = 114] = "SkinPic", e[e.Angel = 115] = "Angel", e[e.StarPieceResonance = 116] = "StarPieceResonance", e[e.Designation = 117] = "Designation", e[e.Strategy = 118] = "Strategy", e[e.Duke = 119] = "Duke", e[e.HeroTalentResonance = 120] = "HeroTalentResonance", e[e.TreasureHouseTreasure = 121] = "TreasureHouseTreasure", e[e.TreasureHouseAss = 122] = "TreasureHouseAss", e[e.TreasureHouseStone = 123] = "TreasureHouseStone", e[e.FighterSpirit = 124] = "FighterSpirit", e[e.GemGallery = 125] = "GemGallery", e[e.ChaosTemple = 126] = "ChaosTemple", e[e.StarGarrison = 127] = "StarGarrison", e[e.DukeScroll = 128] = "DukeScroll", e[e.HolyEquipGallery = 129] = "HolyEquipGallery", e[e.ExclusiveWeaponGallery = 130] = "ExclusiveWeaponGallery", e[e.HeroHandbook = 131] = "HeroHandbook", e[e.ParanormalPuzzle = 132] = "ParanormalPuzzle", e[e.Artefact = 133] = "Artefact", e[e.ArtefactResonance = 134] = "ArtefactResonance", e[e.ElementTemple = 135] = "ElementTemple", e[e.PetShowHouse = 136] = "PetShowHouse", e[e.LuckyCharmShowHouse = 137] = "LuckyCharmShowHouse", e[e.URHeroStar = 138] = "URHeroStar", e[e.PowerCoreGallery = 139] = "PowerCoreGallery", e[e.SuperWeapon = 140] = "SuperWeapon", e[e.AngelHandbook = 141] = "AngelHandbook", e[e.NewPersonality = 142] = "NewPersonality", e[e.NewYearWeapon = 143] = "NewYearWeapon", e[e.SeasonWeapon = 144] = "SeasonWeapon", e[e.PetRefine = 145] = "PetRefine", e[e.PetHandBook = 146] = "PetHandBook", e[e.StrongPath = 147] = "StrongPath", e[e.MagicCircleHandBook = 148] = "MagicCircleHandBook", e[e.SkillStart = 1e4] = "SkillStart", e[e.SkillHeroFetter = 10112] = "SkillHeroFetter", e[e.SkillDesignation = 10117] = "SkillDesignation", e[e.SkillStrategy = 10118] = "SkillStrategy", e[e.SkillTreasureHouse = 10121] = "SkillTreasureHouse", e[e.SkillTreasureStone = 10123] = "SkillTreasureStone", e[e.SkillFightSpirit = 10124] = "SkillFightSpirit"
            }(n.TeamBonusType || (n.TeamBonusType = {})),
            function(e) {
                e[e.Prophet = 1] = "Prophet", e[e.Crystal = 2] = "Crystal", e[e.Displace4 = 3] = "Displace4", e[e.Displace5 = 4] = "Displace5", e[e.Prophet10 = 5] = "Prophet10", e[e.DisplacePersonality5 = 6] = "DisplacePersonality5"
            }(n.ProphetSummonType || (n.ProphetSummonType = {})),
            function(e) {
                e[e.HeroLevel = 1] = "HeroLevel", e[e.HeroEquipment = 2] = "HeroEquipment", e[e.HeroStar = 3] = "HeroStar", e[e.Favor = 5] = "Favor", e[e.Personality = 6] = "Personality", e[e.Gem = 7] = "Gem", e[e.StaticImage = 8] = "StaticImage", e[e.HeroSkin = 9] = "HeroSkin", e[e.LuckyCharmUpgrade = 10] = "LuckyCharmUpgrade", e[e.ChaosSummon = 11] = "ChaosSummon", e[e.StarEmbattle = 12] = "StarEmbattle", e[e.PowerCore = 13] = "PowerCore", e[e.HeroTalent = 14] = "HeroTalent", e[e.Pet = 15] = "Pet", e[e.ActivityPreview = 17] = "ActivityPreview", e[e.QuickUpgradeStar = 18] = "QuickUpgradeStar", e[e.Duke = 19] = "Duke", e[e.PopupGift = 20] = "PopupGift", e[e.OldPlayerRecall = 21] = "OldPlayerRecall", e[e.UpgradeHeroSkin = 22] = "UpgradeHeroSkin", e[e.LuckyCharmEngrave = 23] = "LuckyCharmEngrave", e[e.PushMessage = 24] = "PushMessage", e[e.BattleSkillEffect = 25] = "BattleSkillEffect", e[e.MainUISimplifyMode = 26] = "MainUISimplifyMode", e[e.MagicCircle = 30] = "MagicCircle", e[e.AssaultOperation = 31] = "AssaultOperation", e[e.MainCity = 1e3] = "MainCity", e[e.SummonCard = 1001] = "SummonCard", e[e.TreasureHunt = 1002] = "TreasureHunt", e[e.ItemShop = 1003] = "ItemShop", e[e.ScoreSummon = 1004] = "ScoreSummon", e[e.Alliance = 1005] = "Alliance", e[e.TreasureHuntDrawTen = 1006] = "TreasureHuntDrawTen", e[e.TreasureHuntAdvance = 1007] = "TreasureHuntAdvance", e[e.HeroPalace = 1008] = "HeroPalace", e[e.HeroPalaceSPHero = 1009] = "HeroPalaceSPHero", e[e.Activity = 1010] = "Activity", e[e.CustomizeMainScene = 1011] = "CustomizeMainScene", e[e.TopRankAlert = 1012] = "TopRankAlert", e[e.CollectionHall = 1013] = "CollectionHall", e[e.MainSceneBackground = 1014] = "MainSceneBackground", e[e.Helper = 1015] = "Helper", e[e.Story = 1016] = "Story", e[e.HeroFetter = 1017] = "HeroFetter", e[e.SkinPersonalityPic = 1018] = "SkinPersonalityPic", e[e.Designation = 1019] = "Designation", e[e.Friends = 1020] = "Friends", e[e.Rank = 1021] = "Rank", e[e.Mail = 1022] = "Mail", e[e.Task = 1023] = "Task", e[e.RankUI = 1024] = "RankUI", e[e.MailNotice = 1025] = "MailNotice", e[e.FriendPK = 1027] = "FriendPK", e[e.ParanormalPuzzle = 1028] = "ParanormalPuzzle", e[e.CrossZoneChat = 1032] = "CrossZoneChat", e[e.WorldChatSend = 1033] = "WorldChatSend", e[e.CrossZoneChatSend = 1034] = "CrossZoneChatSend", e[e.DailyClockIn = 1040] = "DailyClockIn", e[e.HangUpActivity = 1041] = "HangUpActivity", e[e.LevelGift = 1043] = "LevelGift", e[e.Attention = 1044] = "Attention", e[e.BindReward = 1045] = "BindReward", e[e.FirstPay = 1051] = "FirstPay", e[e.FeedbackGift = 1052] = "FeedbackGift", e[e.Trigger = 1053] = "Trigger", e[e.EightDays = 1054] = "EightDays", e[e.CloudTreasureHunt = 1055] = "CloudTreasureHunt", e[e.InfiniteTenSummon = 1056] = "InfiniteTenSummon", e[e.LetterFromDeveloper = 1057] = "LetterFromDeveloper", e[e.SinglePagePack = 1059] = "SinglePagePack", e[e.SinglePagePack2 = 1059] = "SinglePagePack2", e[e.SinglePagePack3 = 1059] = "SinglePagePack3", e[e.SinglePagePack4 = 1059] = "SinglePagePack4", e[e.WarTokenList = 1060] = "WarTokenList", e[e.NoviceGuideTaskUnlock = 1061] = "NoviceGuideTaskUnlock", e[e.NoviceGuideTaskHide = 1062] = "NoviceGuideTaskHide", e[e.SummonAutoConsumeItem = 1063] = "SummonAutoConsumeItem", e[e.GiftPackList = 1064] = "GiftPackList", e[e.FighterSpirit = 1065] = "FighterSpirit", e[e.TreasureHouse = 1066] = "TreasureHouse", e[e.GemGallery = 1067] = "GemGallery", e[e.GemUpgrade = 1068] = "GemUpgrade", e[e.ExclusiveWeaponGallery = 1069] = "ExclusiveWeaponGallery", e[e.ChaosTemple = 1070] = "ChaosTemple", e[e.HeroHandbook = 1071] = "HeroHandbook", e[e.ElementTemple = 1072] = "ElementTemple", e[e.PetShowHouse = 1073] = "PetShowHouse", e[e.LuckyCharmShowHouse = 1074] = "LuckyCharmShowHouse", e[e.PowerCoreGallery = 1075] = "PowerCoreGallery", e[e.UpStepHolyEquipShow = 1076] = "UpStepHolyEquipShow", e[e.CashMall = 1077] = "CashMall", e[e.AllZoneRankShow = 1079] = "AllZoneRankShow", e[e.AngelHandbook = 1080] = "AngelHandbook", e[e.HeroJob = 1081] = "HeroJob", e[e.LRHeroPalace = 1082] = "LRHeroPalace", e[e.HeroCollectShow = 1084] = "HeroCollectShow", e[e.DailyBuff = 1085] = "DailyBuff", e[e.NewPersonality = 1086] = "NewPersonality", e[e.SeasonWeapon = 1087] = "SeasonWeapon", e[e.SmallGameEntry = 1089] = "SmallGameEntry", e[e.HeroShop = 1101] = "HeroShop", e[e.ProphetSummon = 1201] = "ProphetSummon", e[e.CrystalSummon = 1202] = "CrystalSummon", e[e.ProgressRewards = 1203] = "ProgressRewards", e[e.DailySummon = 1204] = "DailySummon", e[e.StarTemple = 1301] = "StarTemple", e[e.StarResonance = 1302] = "StarResonance", e[e.StarPiece = 1304] = "StarPiece", e[e.Angel = 1305] = "Angel", e[e.StarPieceResonance = 1306] = "StarPieceResonance", e[e.StarGarrison = 1307] = "StarGarrison", e[e.Artifact = 1308] = "Artifact", e[e.AngelFormScale = 1310] = "AngelFormScale", e[e.ArtifactAuto = 1311] = "ArtifactAuto", e[e.SuperWeapon = 1312] = "SuperWeapon", e[e.AngelPve = 1313] = "AngelPve", e[e.GodLandDuel = 1314] = "GodLandDuel", e[e.NewYearWeapon = 1315] = "NewYearWeapon", e[e.StarHolyStatueEffect = 1316] = "StarHolyStatueEffect", e[e.StarPieceRedAndColorful = 1317] = "StarPieceRedAndColorful", e[e.PetWish = 1501] = "PetWish", e[e.HolyRelicsWarToken = 1997] = "HolyRelicsWarToken", e[e.HolyRelicsShowAuto = 1998] = "HolyRelicsShowAuto", e[e.HolyRelics = 1999] = "HolyRelics", e[e.Outdoor = 2e3] = "Outdoor", e[e.TestTower = 2001] = "TestTower", e[e.ElementTower = 2002] = "ElementTower", e[e.ElementTower2 = 2003] = "ElementTower2", e[e.ElementTowerShow = 2004] = "ElementTowerShow", e[e.EndlessAbyss = 2005] = "EndlessAbyss", e[e.Arena = 2006] = "Arena", e[e.ArenaSkipBattle = 2007] = "ArenaSkipBattle", e[e.SeniorArena = 2008] = "SeniorArena", e[e.SeniorArenaSkipBattle = 2009] = "SeniorArenaSkipBattle", e[e.DailyInstanceCoin = 2010] = "DailyInstanceCoin", e[e.DailyInstanceExp = 2011] = "DailyInstanceExp", e[e.DailyInstanceFighter = 2012] = "DailyInstanceFighter", e[e.DailyInstanceRune = 2013] = "DailyInstanceRune", e[e.DailyInstanceAngel = 2014] = "DailyInstanceAngel", e[e.RelicTreasureHunt = 2015] = "RelicTreasureHunt", e[e.SecretAreaExplore = 2016] = "SecretAreaExplore", e[e.SecretAreaExploreSkip = 2017] = "SecretAreaExploreSkip", e[e.CrossServerArena = 2018] = "CrossServerArena", e[e.MoonTemple = 2019] = "MoonTemple", e[e.AncientSacred = 2020] = "AncientSacred", e[e.SecretAreaReward = 2021] = "SecretAreaReward", e[e.GemForge = 2022] = "GemForge", e[e.SaintsWar = 2023] = "SaintsWar", e[e.HolyEquipmentDisplace = 2024] = "HolyEquipmentDisplace", e[e.GemDisplace = 2025] = "GemDisplace", e[e.HolyEquipGallery = 2026] = "HolyEquipGallery", e[e.SecretAreaAuto = 2027] = "SecretAreaAuto", e[e.ClimbTowerHard = 2028] = "ClimbTowerHard", e[e.HeartHardTower = 2029] = "HeartHardTower", e[e.PowerHardTower = 2030] = "PowerHardTower", e[e.TechHardTower = 2031] = "TechHardTower", e[e.BreakHardTower = 2032] = "BreakHardTower", e[e.FightHardTower = 2033] = "FightHardTower", e[e.MainHardTower = 2034] = "MainHardTower", e[e.DailyInstanceGem = 2035] = "DailyInstanceGem", e[e.MainHardTowerPage = 2036] = "MainHardTowerPage", e[e.CrossServerSpaceTime = 2101] = "CrossServerSpaceTime", e[e.CrossZoneRank = 2104] = "CrossZoneRank", e[e.CrossZoneChampionRace = 2105] = "CrossZoneChampionRace", e[e.AllianceCityWar = 2106] = "AllianceCityWar", e[e.AllZoneChampionRace = 2107] = "AllZoneChampionRace", e[e.AngelPvp = 2108] = "AngelPvp", e[e.AllianceWar = 2110] = "AllianceWar", e[e.ZoneBoss = 2201] = "ZoneBoss", e[e.AllianceBoss = 2202] = "AllianceBoss", e[e.CrossZoneBoss = 2203] = "CrossZoneBoss", e[e.ContinuousFight = 2301] = "ContinuousFight", e[e.BattleSpeed = 3001] = "BattleSpeed", e[e.QuickBattle = 3003] = "QuickBattle", e[e.BackgroundBattle = 3004] = "BackgroundBattle", e[e.AdventureReward = 3005] = "AdventureReward", e[e.OnlineTime = 3006] = "OnlineTime", e[e.IWantStrong = 3007] = "IWantStrong", e[e.HotFormation = 3008] = "HotFormation", e[e.ExpQuickGet = 3009] = "ExpQuickGet", e[e.NextLevelBtn = 3010] = "NextLevelBtn", e[e.IntelligenceTask = 3020] = "IntelligenceTask", e[e.GetWayQuickUse = 3021] = "GetWayQuickUse", e[e.Mall = 4e3] = "Mall", e[e.DailySelectionShow = 4001] = "DailySelectionShow", e[e.DailySelection = 4002] = "DailySelection", e[e.DailyRecommendShow = 4003] = "DailyRecommendShow", e[e.DailyRecommend = 4004] = "DailyRecommend", e[e.DaysGiftShow = 4011] = "DaysGiftShow", e[e.DaysGift = 4012] = "DaysGift", e[e.ContinuousChargeShow = 4013] = "ContinuousChargeShow", e[e.ContinuousCharge = 4014] = "ContinuousCharge", e[e.DailyPayShow = 4021] = "DailyPayShow", e[e.DailyPay = 4022] = "DailyPay", e[e.SevenDayPayShow = 4031] = "SevenDayPayShow", e[e.SevenDayPay = 4032] = "SevenDayPay", e[e.SubscribePrivilegeShow = 4041] = "SubscribePrivilegeShow", e[e.SubscribePrivilege = 4042] = "SubscribePrivilege", e[e.ActiveWarTokenShow = 4051] = "ActiveWarTokenShow", e[e.ActiveWarToken = 4052] = "ActiveWarToken", e[e.GoodFundShow = 4061] = "GoodFundShow", e[e.GoodFund = 4062] = "GoodFund", e[e.NewGoodFund = 4062] = "NewGoodFund", e[e.NewGoodFund2 = 4062] = "NewGoodFund2", e[e.GrowUpFundShow = 4071] = "GrowUpFundShow", e[e.GrowUpFund = 4072] = "GrowUpFund", e[e.GrowUpWishCallShow = 4073] = "GrowUpWishCallShow", e[e.GrowUpWishCall = 4074] = "GrowUpWishCall", e[e.GrowUpSummonChaosShow = 4075] = "GrowUpSummonChaosShow", e[e.GrowUpSummonChaos = 4076] = "GrowUpSummonChaos", e[e.GrowUpPersonalityShow = 4077] = "GrowUpPersonalityShow", e[e.GrowUpPersonality = 4078] = "GrowUpPersonality", e[e.GrowUpSummonPersonShow = 4079] = "GrowUpSummonPersonShow", e[e.GrowUpSummonPerson = 4080] = "GrowUpSummonPerson", e[e.GrowUpLRHeroShow = 4113] = "GrowUpLRHeroShow", e[e.GrowUpLRHero = 4114] = "GrowUpLRHero", e[e.GrowUpLRPersonalityShow = 4116] = "GrowUpLRPersonalityShow", e[e.GrowUpLRPersonality = 4115] = "GrowUpLRPersonality", e[e.HeroGiftShow = 4081] = "HeroGiftShow", e[e.HeroGift = 4082] = "HeroGift", e[e.GrowUpGiftShow = 4091] = "GrowUpGiftShow", e[e.GrowUpGift = 4092] = "GrowUpGift", e[e.LegendGiftShow = 4101] = "LegendGiftShow", e[e.LegendGift = 4102] = "LegendGift", e[e.LegendGift2Show = 4103] = "LegendGift2Show", e[e.LegendGift2 = 4104] = "LegendGift2", e[e.LegendGift3Show = 4105] = "LegendGift3Show", e[e.LegendGift3 = 4106] = "LegendGift3", e[e.LegendGift4Show = 4107] = "LegendGift4Show", e[e.LegendGift4 = 4108] = "LegendGift4", e[e.LegendGift5Show = 4109] = "LegendGift5Show", e[e.LegendGift5 = 4110] = "LegendGift5", e[e.FavorGiftShow = 4111] = "FavorGiftShow", e[e.FavorGift = 4112] = "FavorGift", e[e.MonthCardShow = 4121] = "MonthCardShow", e[e.MonthCard = 4122] = "MonthCard", e[e.LuckyStarShow = 4131] = "LuckyStarShow", e[e.LuckyStar = 4132] = "LuckyStar", e[e.ChosenGiftPackShow = 4141] = "ChosenGiftPackShow", e[e.ChosenGiftPack = 4142] = "ChosenGiftPack", e[e.PermanentPrivilegeShow = 4151] = "PermanentPrivilegeShow", e[e.PermanentPrivilege = 4152] = "PermanentPrivilege", e[e.NewPersonPrivilege = 4153] = "NewPersonPrivilege", e[e.SkinStoreShow = 4161] = "SkinStoreShow", e[e.SkinStore = 4162] = "SkinStore", e[e.DiamondPrivilegeShow = 4171] = "DiamondPrivilegeShow", e[e.HelperPrivilegeShow = 4172] = "HelperPrivilegeShow", e[e.CashMallPrivilegeShow = 4173] = "CashMallPrivilegeShow", e[e.DailySelectionHero = 4174] = "DailySelectionHero", e[e.PersonalSignature = 5002] = "PersonalSignature", e[e.CloudTreasureHuntShow = 5004] = "CloudTreasureHuntShow", e[e.HelperAdventure = 6001] = "HelperAdventure", e[e.HelperAdventureChallenge = 6002] = "HelperAdventureChallenge", e[e.HelperDailyInstance = 6011] = "HelperDailyInstance", e[e.HelperCrossZoneBattle = 6021] = "HelperCrossZoneBattle", e[e.HelperInteraction = 6031] = "HelperInteraction", e[e.HelperGiveAndReceiveGifts = 6032] = "HelperGiveAndReceiveGifts", e[e.HelperAlliance = 6041] = "HelperAlliance", e[e.HelperAllianceCityWar = 6042] = "HelperAllianceCityWar", e[e.HelperEndlessAbyss = 6051] = "HelperEndlessAbyss", e[e.HelperTestTower = 6061] = "HelperTestTower", e[e.HelperElementTower = 6062] = "HelperElementTower", e[e.HelperHardTestTower = 6064] = "HelperHardTestTower", e[e.HelperArtefactRelic = 6071] = "HelperArtefactRelic", e[e.HelperArtefactRelic2 = 6072] = "HelperArtefactRelic2", e[e.HelperRiskPort = 6081] = "HelperRiskPort", e[e.HelperSecretAreaExplore = 6082] = "HelperSecretAreaExplore", e[e.HelperHolyArea = 6083] = "HelperHolyArea", e[e.HelperStarLightSecretLand = 6084] = "HelperStarLightSecretLand", e[e.HelperGodLandDuel = 6085] = "HelperGodLandDuel", e[e.NewPersonalityGuide = 7e3] = "NewPersonalityGuide", e[e.NewPersonalityMainScene = 7001] = "NewPersonalityMainScene", e[e.BagVoucherTab = 10001] = "BagVoucherTab", e[e.HeroHandbookSubliming = 10002] = "HeroHandbookSubliming", e[e.Strategy = 10003] = "Strategy", e[e.SNSConnection = 10004] = "SNSConnection", e[e.StrongPath = 10005] = "StrongPath", e[e.FloatIcon = 10006] = "FloatIcon", e[e.MainLineAutoBattle = 10007] = "MainLineAutoBattle", e[e.TestTowerAutoBattle = 10008] = "TestTowerAutoBattle", e[e.RecommendFormation = 10009] = "RecommendFormation", e[e.AbyssAutoBattle = 10010] = "AbyssAutoBattle", e[e.RankMatch = 10011] = "RankMatch", e[e.RelicTreasureHuntRemoteDice = 10012] = "RelicTreasureHuntRemoteDice", e[e.DailyInstanceCoinSkip = 10013] = "DailyInstanceCoinSkip", e[e.DailyInstanceExpSkip = 10014] = "DailyInstanceExpSkip", e[e.DailyInstanceFighterSkip = 10015] = "DailyInstanceFighterSkip", e[e.DailyInstanceRuneSkip = 10016] = "DailyInstanceRuneSkip", e[e.CrossZoneAllianceChallengeSkip = 10017] = "CrossZoneAllianceChallengeSkip", e[e.SecretAreaSkip = 10018] = "SecretAreaSkip", e[e.RelicTreasureHuntAutoRun = 10019] = "RelicTreasureHuntAutoRun", e[e.ChatWindowShow = 10020] = "ChatWindowShow", e[e.NoviceTrainingSkip = 10021] = "NoviceTrainingSkip", e[e.ArenaSkip = 10022] = "ArenaSkip", e[e.RelicTreasureHuntWartoken = 10024] = "RelicTreasureHuntWartoken", e[e.FavorUpgrade_QuickSend = 10025] = "FavorUpgrade_QuickSend", e[e.AllianceRedPacket = 10026] = "AllianceRedPacket", e[e.AllianceBOSSBattle = 10027] = "AllianceBOSSBattle", e[e.HeartStarPowerAwaken = 10028] = "HeartStarPowerAwaken", e[e.PowerStarPowerAwaken = 10029] = "PowerStarPowerAwaken", e[e.TechStarPowerAwaken = 10030] = "TechStarPowerAwaken", e[e.BreakStarPowerAwaken = 10031] = "BreakStarPowerAwaken", e[e.FightStarPowerAwaken = 10032] = "FightStarPowerAwaken", e[e.HeartTowerSuppress = 10033] = "HeartTowerSuppress", e[e.PowerTowerSuppress = 10034] = "PowerTowerSuppress", e[e.TechTowerSuppress = 10035] = "TechTowerSuppress", e[e.BreakTowerSuppress = 10036] = "BreakTowerSuppress", e[e.FightTowerSuppress = 10037] = "FightTowerSuppress", e[e.GiftCode = 10038] = "GiftCode", e[e.SettingMagicCircleAndPet = 10039] = "SettingMagicCircleAndPet", e[e.WorldBoss = 10040] = "WorldBoss", e[e.AllianceBadge = 10041] = "AllianceBadge", e[e.ShowNetWorkResponseTime = 99999] = "ShowNetWorkResponseTime"
            }(n.GameModuleType || (n.GameModuleType = {})),
            function(e) {
                e[e.Relic = 1] = "Relic", e[e.NextRelic = 2] = "NextRelic", e[e.Secret = 3] = "Secret"
            }(n.UserDungeonMapType || (n.UserDungeonMapType = {})),
            function(e) {
                e[e.SingleMode = 1] = "SingleMode", e[e.MultiMode = 2] = "MultiMode", e[e.None = -1] = "None"
            }(n.EndlessAbyssType || (n.EndlessAbyssType = {})),
            function(e) {
                e[e.Hp = 1] = "Hp", e[e.Skill = 2] = "Skill", e[e.Other = 3] = "Other"
            }(n.EndlessAbyssBuffType || (n.EndlessAbyssBuffType = {})),
            function(e) {
                e[e.First = 100101] = "First"
            }(n.AdventureLevel || (n.AdventureLevel = {})),
            function(e) {
                e[e.Consume = 1] = "Consume", e[e.Common = 2] = "Common"
            }(n.HangUpRewardType || (n.HangUpRewardType = {})),
            function(e) {
                e[e.Left = 1] = "Left", e[e.Right = 2] = "Right"
            }(n.RelicTreasureHuntFork || (n.RelicTreasureHuntFork = {})),
            function(e) {
                e[e.Dice = 1] = "Dice", e[e.RemoteControlDice = 2] = "RemoteControlDice"
            }(n.RelicTreasureHuntDiceType || (n.RelicTreasureHuntDiceType = {})),
            function(e) {
                e[e.NotBought = 0] = "NotBought", e[e.Bought = 1] = "Bought"
            }(n.RelicTreasureHuntGoodsType || (n.RelicTreasureHuntGoodsType = {})),
            function(e) {
                e[e.Charge = 1] = "Charge", e[e.Bumper = 2] = "Bumper", e[e.Deign = 3] = "Deign", e[e.Blessing = 4] = "Blessing"
            }(n.RelicTreasureHuntHieronType || (n.RelicTreasureHuntHieronType = {})),
            function(e) {
                e[e.Items = 1] = "Items", e[e.Blank = 2] = "Blank", e[e.Hieron = 3] = "Hieron", e[e.Pandora = 4] = "Pandora", e[e.Box = 5] = "Box", e[e.SlotMachine = 6] = "SlotMachine", e[e.SlotMachine3 = 7] = "SlotMachine3", e[e.Businessman = 8] = "Businessman", e[e.Fork = 9] = "Fork"
            }(n.RelicTreasureHuntEventType || (n.RelicTreasureHuntEventType = {})),
            function(e) {
                e[e.Map = 1] = "Map", e[e.Reward = 2] = "Reward"
            }(n.SecretAreaMapType || (n.SecretAreaMapType = {})),
            function(e) {
                e[e.Base = 1] = "Base", e[e.Core = 2] = "Core", e[e.Island = 3] = "Island"
            }(n.SecretActivityMapType || (n.SecretActivityMapType = {})),
            function(e) {
                e[e.Blank = 1] = "Blank", e[e.Monster = 2] = "Monster", e[e.Boss = 3] = "Boss", e[e.Prop = 4] = "Prop", e[e.Grass = 5] = "Grass", e[e.Portal = 6] = "Portal", e[e.Device = 7] = "Device", e[e.IslandPortal = 8] = "IslandPortal", e[e.Shop = 9] = "Shop", e[e.Terrain = 10] = "Terrain", e[e.IslandGuardian = 11] = "IslandGuardian", e[e.Rewards = 12] = "Rewards"
            }(n.SecretAreaMapBlockType || (n.SecretAreaMapBlockType = {})),
            function(e) {
                e[e.Switch = 1] = "Switch", e[e.Parclose = 2] = "Parclose"
            }(n.SecretDeviceType || (n.SecretDeviceType = {})),
            function(e) {
                e[e.Common = 1] = "Common", e[e.Power = 2] = "Power", e[e.Elite = 3] = "Elite", e[e.Boss = 4] = "Boss", e[e.ActCommon = 1001] = "ActCommon", e[e.ActPower = 1002] = "ActPower", e[e.ActElite = 1003] = "ActElite", e[e.ActBoss = 1004] = "ActBoss"
            }(n.SecretAreaMonsterType || (n.SecretAreaMonsterType = {})),
            function(e) {
                e[e.Poison = 1] = "Poison", e[e.Bomb = 2] = "Bomb", e[e.Resurgence = 3] = "Resurgence", e[e.Hp = 4] = "Hp", e[e.Flare = 5] = "Flare"
            }(n.SecretAreaPropType || (n.SecretAreaPropType = {})),
            function(e) {
                e[e.Prop = 1] = "Prop", e[e.Monster = 2] = "Monster"
            }(n.SecretAreaGrassType || (n.SecretAreaGrassType = {})),
            function(e) {
                e[e.Grow = 1] = "Grow", e[e.Grace = 2] = "Grace"
            }(n.SecretAreaBuffType || (n.SecretAreaBuffType = {})),
            function(e) {
                e[e.StarLevel = 1] = "StarLevel", e[e.ElementType = 2] = "ElementType", e[e.Level = 3] = "Level", e[e.CoreHero = 4] = "CoreHero", e[e.MaxStarLevel = 5] = "MaxStarLevel"
            }(n.StarResonanceOrderType || (n.StarResonanceOrderType = {})),
            function(e) {
                e[e.Hero = 1] = "Hero", e[e.HolyEquip = 2] = "HolyEquip", e[e.Pet = 3] = "Pet", e[e.LuckyCharm = 4] = "LuckyCharm", e[e.Gem = 5] = "Gem", e[e.PowerCore = 6] = "PowerCore", e[e.ItemPiece = 7] = "ItemPiece", e[e.ItemHeroSoul = 8] = "ItemHeroSoul", e[e.HeadIcon = 9] = "HeadIcon", e[e.Intelligence = 10] = "Intelligence", e[e.Equip = 11] = "Equip", e[e.ItemEquip = 12] = "ItemEquip", e[e.WarAlliance = 13] = "WarAlliance"
            }(n.SortDataType || (n.SortDataType = {})),
            function(e) {
                e[e.StarLevel = 1] = "StarLevel", e[e.Level = 2] = "Level", e[e.Locked = 3] = "Locked", e[e.HeroId = 4] = "HeroId", e[e.Power = 5] = "Power", e[e.Star = 6] = "Star", e[e.Stage = 7] = "Stage", e[e.Xp = 8] = "Xp", e[e.ItemId = 9] = "ItemId", e[e.ElementType = 10] = "ElementType", e[e.Sid = 11] = "Sid", e[e.IsActive = 12] = "IsActive", e[e.SeasonScore = 13] = "SeasonScore", e[e.ConfigStart = 100] = "ConfigStart", e[e.ConfigElementType = 101] = "ConfigElementType", e[e.ConfigCoreHero = 102] = "ConfigCoreHero", e[e.ConfigMaxStarLevel = 103] = "ConfigMaxStarLevel", e[e.ConfigCanDisplace = 104] = "ConfigCanDisplace", e[e.ConfigQuality = 105] = "ConfigQuality", e[e.ConfigStar = 106] = "ConfigStar", e[e.ConfigType = 107] = "ConfigType", e[e.ConfigSortId = 108] = "ConfigSortId", e[e.ConfigQualityId = 109] = "ConfigQualityId", e[e.ConfigCareer = 110] = "ConfigCareer", e[e.Config2tart = 200] = "Config2tart", e[e.Config2SubType = 201] = "Config2SubType", e[e.Config2Quality = 202] = "Config2Quality", e[e.SpecialType = 1e3] = "SpecialType", e[e.InFormation = 1001] = "InFormation", e[e.AppointHeroId = 1002] = "AppointHeroId", e[e.AppointSid = 1003] = "AppointSid", e[e.InPutOn = 1004] = "InPutOn", e[e.AppointOwnerId = 1005] = "AppointOwnerId", e[e.CanCompose = 1006] = "CanCompose", e[e.CanComposeCard = 1007] = "CanComposeCard", e[e.HeroLevel = 1008] = "HeroLevel", e[e.HeroSoulElements = 1009] = "HeroSoulElements", e[e.HeadIconIsUnlock = 1010] = "HeadIconIsUnlock", e[e.OriginalLuckyCharm = 1011] = "OriginalLuckyCharm"
            }(n.SortType || (n.SortType = {})),
            function(e) {
                e[e.StarLevel = 1] = "StarLevel", e[e.Level = 2] = "Level", e[e.Locked = 3] = "Locked", e[e.HeroId = 4] = "HeroId", e[e.Power = 5] = "Power", e[e.ConfigStart = 100] = "ConfigStart", e[e.ElementType = 101] = "ElementType", e[e.CoreHero = 102] = "CoreHero", e[e.MaxStarLevel = 103] = "MaxStarLevel", e[e.SpecialType = 1e3] = "SpecialType", e[e.InFormation = 1001] = "InFormation", e[e.AppointHeroId = 1002] = "AppointHeroId", e[e.AppointSid = 1003] = "AppointSid"
            }(n.HeroOrderType || (n.HeroOrderType = {})),
            function(e) {
                e[e.Victory = 101] = "Victory", e[e.ElementEvery = 201] = "ElementEvery", e[e.ElementSum = 202] = "ElementSum", e[e.Round = 301] = "Round", e[e.DeathEvery = 302] = "DeathEvery", e[e.DeathSum = 303] = "DeathSum", e[e.Hp = 304] = "Hp", e[e.DeathSum1 = 305] = "DeathSum1"
            }(n.AncientSacredTaskType || (n.AncientSacredTaskType = {})),
            function(e) {
                e[e.D = 1] = "D", e[e.C = 2] = "C", e[e.B = 3] = "B", e[e.A = 4] = "A", e[e.S = 5] = "S", e[e.SS = 6] = "SS"
            }(n.IntelligenceQuality || (n.IntelligenceQuality = {})),
            function(e) {
                e[e.Attacking = 1] = "Attacking", e[e.Defensive = 2] = "Defensive", e[e.Special = 3] = "Special"
            }(n.GemType || (n.GemType = {})),
            function(e) {
                e[e.ZonePower = 101] = "ZonePower", e[e.MainLineProgress = 102] = "MainLineProgress", e[e.TestTowerProgress = 103] = "TestTowerProgress", e[e.ZoneArena = 104] = "ZoneArena", e[e.ZoneAlliance = 105] = "ZoneAlliance", e[e.SeniorArena = 106] = "SeniorArena", e[e.HeroPower = 107] = "HeroPower", e[e.ArtefactRelic = 108] = "ArtefactRelic", e[e.AngelPve = 109] = "AngelPve", e[e.ZoneChampionRace = 110] = "ZoneChampionRace", e[e.TestTowerHardProgress = 111] = "TestTowerHardProgress", e[e.WorldBoss = 112] = "WorldBoss", e[e.AllianceBossPoint = 113] = "AllianceBossPoint", e[e.AllianceBoss = 114] = "AllianceBoss", e[e.GemEquip = 151] = "GemEquip", e[e.HolyEquip = 152] = "HolyEquip", e[e.Personality = 153] = "Personality", e[e.Favor = 154] = "Favor", e[e.HolyStatue = 155] = "HolyStatue", e[e.Piece = 156] = "Piece", e[e.FighterSpirit = 157] = "FighterSpirit", e[e.PowerCore = 158] = "PowerCore", e[e.Puzzle = 159] = "Puzzle", e[e.Pet = 160] = "Pet", e[e.Hero_Heart = 201] = "Hero_Heart", e[e.Hero_Power = 202] = "Hero_Power", e[e.Hero_Tech = 203] = "Hero_Tech", e[e.Hero_Break = 204] = "Hero_Break", e[e.Hero_Fight = 205] = "Hero_Fight", e[e.Hero_Chaos = 206] = "Hero_Chaos", e[e.CrossZoneAlliance = 301] = "CrossZoneAlliance", e[e.CrossZonePower = 302] = "CrossZonePower", e[e.CrossZoneArena = 303] = "CrossZoneArena", e[e.CrossZoneRank = 304] = "CrossZoneRank", e[e.CrossZoneAllianceChallenge = 305] = "CrossZoneAllianceChallenge", e[e.CrossZoneContinueWarRank = 306] = "CrossZoneContinueWarRank", e[e.CrossZoneHeroPower = 307] = "CrossZoneHeroPower", e[e.CrossZoneChampionRace = 308] = "CrossZoneChampionRace", e[e.CrossZoneAllianceChallengePrevious = 309] = "CrossZoneAllianceChallengePrevious", e[e.CrossZoneArtefactRelic = 310] = "CrossZoneArtefactRelic", e[e.RegionChampionRace = 311] = "RegionChampionRace", e[e.AllZoneChampionRace = 311] = "AllZoneChampionRace", e[e.CrossZoneAngelPve = 312] = "CrossZoneAngelPve", e[e.CrossArena = 313] = "CrossArena", e[e.CrossZoneGemEquip = 351] = "CrossZoneGemEquip", e[e.CrossZoneHolyEquip = 352] = "CrossZoneHolyEquip", e[e.CrossZonePersonality = 353] = "CrossZonePersonality", e[e.CrossZoneFavor = 354] = "CrossZoneFavor", e[e.CrossZoneHolyStatue = 355] = "CrossZoneHolyStatue", e[e.CrossZonePiece = 356] = "CrossZonePiece", e[e.CrossZonePowerCore = 358] = "CrossZonePowerCore", e[e.CrossZonePuzzle = 359] = "CrossZonePuzzle", e[e.CrossZonePet = 360] = "CrossZonePet", e[e.Tower_Heart = 401] = "Tower_Heart", e[e.Tower_Power = 402] = "Tower_Power", e[e.Tower_Tech = 403] = "Tower_Tech", e[e.Tower_Break = 404] = "Tower_Break", e[e.Tower_Fight = 405] = "Tower_Fight", e[e.EndlessAbyss_Single = 411] = "EndlessAbyss_Single", e[e.EndlessAbyss_Multi = 412] = "EndlessAbyss_Multi", e[e.AncientSacred = 421] = "AncientSacred", e[e.ChaosSummon = 422] = "ChaosSummon", e[e.SaintsWar1 = 431] = "SaintsWar1", e[e.SaintsWar2 = 432] = "SaintsWar2", e[e.SaintsWar3 = 433] = "SaintsWar3", e[e.GodLandDuel = 434] = "GodLandDuel", e[e.AllianceCityWarUserDamageWeekRank = 501] = "AllianceCityWarUserDamageWeekRank", e[e.AllianceCityWarAllianceDamageWeekRank = 502] = "AllianceCityWarAllianceDamageWeekRank", e[e.AllianceCityWarAllianceDamageRank = 503] = "AllianceCityWarAllianceDamageRank", e[e.WarAllianceScore = 504] = "WarAllianceScore", e[e.WarAllianceHolyScore = 505] = "WarAllianceHolyScore", e[e.WarUserScore = 506] = "WarUserScore", e[e.WarCityScore = 507] = "WarCityScore", e[e.WarSeasonScore = 508] = "WarSeasonScore", e[e.CrossZoneHero_Heart = 1201] = "CrossZoneHero_Heart", e[e.CrossZoneHero_Power = 1202] = "CrossZoneHero_Power", e[e.CrossZoneHero_Tech = 1203] = "CrossZoneHero_Tech", e[e.CrossZoneHero_Break = 1204] = "CrossZoneHero_Break", e[e.CrossZoneHero_Fight = 1205] = "CrossZoneHero_Fight", e[e.CrossZoneHero_Chaos = 1206] = "CrossZoneHero_Chaos", e[e.AllZoneBattlePower = 3001] = "AllZoneBattlePower", e[e.RankMatch = 3003] = "RankMatch", e[e.RankMatch1 = 3004] = "RankMatch1", e[e.AllianceTest = 10001] = "AllianceTest", e[e.CrossZoneAlliancePersonal = 10002] = "CrossZoneAlliancePersonal", e[e.CrossZoneAllianceSettlement = 10003] = "CrossZoneAllianceSettlement", e[e.Activity = 2e4] = "Activity", e[e.TotalPay = 999999] = "TotalPay"
            }(n.RankTypeId || (n.RankTypeId = {})),
            function(e) {
                e[e.EndlessAbyssPointRewards = 101] = "EndlessAbyssPointRewards", e[e.EndlessAbyssSelectBuff = 102] = "EndlessAbyssSelectBuff", e[e.AttributePowerParam = 103] = "AttributePowerParam", e[e.FriendsRewards = 104] = "FriendsRewards", e[e.HeroSkillUnlockCondition = 105] = "HeroSkillUnlockCondition", e[e.RelicTreasureHuntMap = 106] = "RelicTreasureHuntMap", e[e.RelicTreasureHuntCompass = 107] = "RelicTreasureHuntCompass", e[e.AdventureHangUpRewardTimeLimit = 108] = "AdventureHangUpRewardTimeLimit", e[e.AdventureQuickBattleDiamond = 109] = "AdventureQuickBattleDiamond", e[e.HeroStageStartLevel = 110] = "HeroStageStartLevel", e[e.ResurgencePrice = 111] = "ResurgencePrice", e[e.ArenaChallengeReward = 112] = "ArenaChallengeReward", e[e.SecretAreaGrass = 113] = "SecretAreaGrass", e[e.IntelligenceSpeedUpCost = 114] = "IntelligenceSpeedUpCost", e[e.StarResonanceUnlockPrice = 115] = "StarResonanceUnlockPrice", e[e.StarResonanceCooldownPrice = 116] = "StarResonanceCooldownPrice", e[e.AllianceLevelRequirementOptions = 117] = "AllianceLevelRequirementOptions", e[e.AlliancePowerRequirementOptions = 118] = "AlliancePowerRequirementOptions", e[e.StarHolyStatueEnergyCount = 119] = "StarHolyStatueEnergyCount", e[e.StarGemAttrs = 120] = "StarGemAttrs", e[e.StarPieceStar = 121] = "StarPieceStar", e[e.StarPieceNode = 122] = "StarPieceNode", e[e.HolyEqptXp = 123] = "HolyEqptXp", e[e.PersonalInfoRenamePrice = 125] = "PersonalInfoRenamePrice", e[e.BuyCoin = 126] = "BuyCoin", e[e.BuyCoinPrice = 127] = "BuyCoinPrice", e[e.BuyCoinTime = 128] = "BuyCoinTime", e[e.OnlineRewards = 129] = "OnlineRewards", e[e.GloryMonthCard = 130] = "GloryMonthCard", e[e.SupremeMonthCard = 131] = "SupremeMonthCard", e[e.GetResourceIds = 132] = "GetResourceIds", e[e.BuyDiamond = 133] = "BuyDiamond", e[e.FavorRoadScore = 134] = "FavorRoadScore", e[e.FavorRoadAttr = 135] = "FavorRoadAttr", e[e.TestTowerSpecialReward = 137] = "TestTowerSpecialReward", e[e.ElementTowerWarToken = 138] = "ElementTowerWarToken", e[e.CloudTreasureHunt = 139] = "CloudTreasureHunt", e[e.ActivityHeroTestBossHp = 140] = "ActivityHeroTestBossHp", e[e.Prophet = 141] = "Prophet", e[e.LetterFromDeveloper = 142] = "LetterFromDeveloper", e[e.LuckyStar = 143] = "LuckyStar", e[e.HotFormation = 144] = "HotFormation", e[e.SeniorArenaChallengeReward = 145] = "SeniorArenaChallengeReward", e[e.SeniorArenaTicketPrice = 146] = "SeniorArenaTicketPrice", e[e.SmelterSmelt = 147] = "SmelterSmelt", e[e.NewPlayerStrategy = 148] = "NewPlayerStrategy", e[e.DaysPayFinallyReward = 149] = "DaysPayFinallyReward", e[e.DaysPayDailyReward = 150] = "DaysPayDailyReward", e[e.LadderRaceSelectTarget = 151] = "LadderRaceSelectTarget", e[e.GemForgeSummon = 152] = "GemForgeSummon", e[e.GemGroove = 153] = "GemGroove", e[e.MoonTempleCount = 154] = "MoonTempleCount", e[e.LadderRaceChallengeWinReward = 155] = "LadderRaceChallengeWinReward", e[e.LadderRaceChallengeLoseReward = 156] = "LadderRaceChallengeLoseReward", e[e.CrossZoneRankChallengeReward = 157] = "CrossZoneRankChallengeReward", e[e.MoonTempleRequirements = 158] = "MoonTempleRequirements", e[e.SinglePagePack = 159] = "SinglePagePack", e[e.RuneProperties = 160] = "RuneProperties", e[e.GemProperties = 161] = "GemProperties", e[e.RuneType = 162] = "RuneType", e[e.ChaosSummonRankReward = 163] = "ChaosSummonRankReward", e[e.ChaosSummonGiftPack = 164] = "ChaosSummonGiftPack", e[e.AllianceChallengeRewards = 165] = "AllianceChallengeRewards", e[e.AllianceChallengeWin = 166] = "AllianceChallengeWin", e[e.AllianceChallengeLose = 167] = "AllianceChallengeLose", e[e.AllianceChallengeBeat = 168] = "AllianceChallengeBeat", e[e.AllianceChallengeRaidWeaken = 169] = "AllianceChallengeRaidWeaken", e[e.AllianceChallengeBeatBonus = 170] = "AllianceChallengeBeatBonus", e[e.AllianceChallengeRobot = 171] = "AllianceChallengeRobot", e[e.AllianceChallengeStarBonus = 172] = "AllianceChallengeStarBonus", e[e.AllianceChallengeRaid = 173] = "AllianceChallengeRaid", e[e.ChaosTaskTip = 174] = "ChaosTaskTip", e[e.StarHolyStatuePointExchange = 175] = "StarHolyStatuePointExchange", e[e.StarHolyStatuePointBonus = 176] = "StarHolyStatuePointBonus", e[e.AllianceChallengeOpenTime = 177] = "AllianceChallengeOpenTime", e[e.ActResurgencePrice = 180] = "ActResurgencePrice", e[e.CrossZoneContinueWarRankChallengeReward = 181] = "CrossZoneContinueWarRankChallengeReward", e[e.PermanentPrivilegeDailyRewards = 182] = "PermanentPrivilegeDailyRewards", e[e.LoverArrowConsume = 183] = "LoverArrowConsume", e[e.TwentyOneGameRewards = 184] = "TwentyOneGameRewards", e[e.TwentyOneGamePropId = 185] = "TwentyOneGamePropId", e[e.HelperOperations = 186] = "HelperOperations", e[e.SinglePagePack2 = 187] = "SinglePagePack2", e[e.PerfectMonthCard = 188] = "PerfectMonthCard", e[e.PetWish = 189] = "PetWish", e[e.PetElementAttr = 190] = "PetElementAttr", e[e.PetElementWeight = 191] = "PetElementWeight", e[e.PetReborn = 192] = "PetReborn", e[e.SaintsCommonRewardBonus = 193] = "SaintsCommonRewardBonus", e[e.PetDisplaceMaterials = 194] = "PetDisplaceMaterials", e[e.NoviceIdleAdventures = 195] = "NoviceIdleAdventures", e[e.ChaosSummonExclusiveWeaponGiftPack = 196] = "ChaosSummonExclusiveWeaponGiftPack", e[e.ChaosSummonPersonalityGiftPack = 197] = "ChaosSummonPersonalityGiftPack", e[e.ElementTowerBuyCountPrice = 198] = "ElementTowerBuyCountPrice", e[e.PetGiftPack = 199] = "PetGiftPack", e[e.CollectKingGift = 201] = "CollectKingGift", e[e.HeroFetterCollectRewards = 202] = "HeroFetterCollectRewards", e[e.HeroFetterStarRequirement = 203] = "HeroFetterStarRequirement", e[e.GemDisplaceGiftPack = 204] = "GemDisplaceGiftPack", e[e.AngelFavorItem = 205] = "AngelFavorItem", e[e.ControlTagIds = 206] = "ControlTagIds", e[e.TreasureHouseStoneSkills = 207] = "TreasureHouseStoneSkills", e[e.SinglePagePack3 = 208] = "SinglePagePack3", e[e.SinglePagePackGameModule3 = 209] = "SinglePagePackGameModule3", e[e.SinglePagePack4 = 210] = "SinglePagePack4", e[e.SinglePagePackGameModule4 = 211] = "SinglePagePackGameModule4", e[e.TreasureHouseStoneNum = 212] = "TreasureHouseStoneNum", e[e.AttackDamageEffMinLimit = 214] = "AttackDamageEffMinLimit", e[e.ProgressRewardsSenior = 215] = "ProgressRewardsSenior", e[e.ProgressRewardsPersonality = 216] = "ProgressRewardsPersonality", e[e.MaintainNotificationInterval = 217] = "MaintainNotificationInterval", e[e.KingMonthCard = 218] = "KingMonthCard", e[e.ArtefactRelicWarToken = 219] = "ArtefactRelicWarToken", e[e.ArtefactRelicBuyCount = 220] = "ArtefactRelicBuyCount", e[e.HeroDetailAttrShowIds = 221] = "HeroDetailAttrShowIds", e[e.PetShowHousePos = 222] = "PetShowHousePos", e[e.LuckyCharmShowHousePos = 223] = "LuckyCharmShowHousePos", e[e.AngelHandbookData = 224] = "AngelHandbookData", e[e.AngelFormScaleParam = 225] = "AngelFormScaleParam", e[e.ArenaSettlementTime = 226] = "ArenaSettlementTime", e[e.SkinStorePack = 227] = "SkinStorePack", e[e.RegionChampionGuessReward = 228] = "RegionChampionGuessReward", e[e.CannotTicketType = 229] = "CannotTicketType", e[e.ArtefactRelicWarTokens = 230] = "ArtefactRelicWarTokens", e[e.ForecastWinRewards = 231] = "ForecastWinRewards", e[e.ForecastFalseRewards = 232] = "ForecastFalseRewards", e[e.AllZoneChampionBetRightReward = 233] = "AllZoneChampionBetRightReward", e[e.AllZoneChampionBetWrongReward = 234] = "AllZoneChampionBetWrongReward", e[e.AngelStageStartLevel = 235] = "AngelStageStartLevel", e[e.GodLandDuelBattleRewrds = 236] = "GodLandDuelBattleRewrds", e[e.AngelPersonalBattleSkillUnlock = 237] = "AngelPersonalBattleSkillUnlock", e[e.AngelPersonalBattlePowerParam = 238] = "AngelPersonalBattlePowerParam", e[e.OneClickComposePieceType = 239] = "OneClickComposePieceType", e[e.SingelPagePackEndTime = 240] = "SingelPagePackEndTime", e[e.GrowUpFundType = 242] = "GrowUpFundType", e[e.HeroHandbookCollect = 243] = "HeroHandbookCollect", e[e.ProgressRewardsDaily = 244] = "ProgressRewardsDaily", e[e.SnsRewards = 245] = "SnsRewards", e[e.DailyPayCountRewards = 246] = "DailyPayCountRewards", e[e.HeroGetWayItemParam = 247] = "HeroGetWayItemParam", e[e.PetHatchIds = 249] = "PetHatchIds", e[e.BuyCurrency = 250] = "BuyCurrency", e[e.HangUpPack = 251] = "HangUpPack", e[e.ChampionRaceWeekDays = 252] = "ChampionRaceWeekDays", e[e.SaintsWarHeros = 253] = "SaintsWarHeros", e[e.AllianceBOSSPrepareTime = 254] = "AllianceBOSSPrepareTime", e[e.AllianceBOSSBattleTime = 255] = "AllianceBOSSBattleTime", e[e.AllianceBOSSPlayerIcon = 256] = "AllianceBOSSPlayerIcon", e[e.MainSceneHeroNoMaskIds = 300] = "MainSceneHeroNoMaskIds", e[e.MainScenePersonalityNoMaskIds = 301] = "MainScenePersonalityNoMaskIds", e[e.MainSceneHeroNoBacgroundIds = 303] = "MainSceneHeroNoBacgroundIds", e[e.MainScenePersonalityNoBacgroundIds = 304] = "MainScenePersonalityNoBacgroundIds", e[e.HeroSkinNotSetScaleIds = 305] = "HeroSkinNotSetScaleIds", e[e.HeroFormScaleParam = 306] = "HeroFormScaleParam", e[e.AllianceCityWarFormationUnlock = 400] = "AllianceCityWarFormationUnlock", e[e.AllianceCityWarCityNumsLevel = 401] = "AllianceCityWarCityNumsLevel", e[e.AllianceCityWarHangRewardBonus = 402] = "AllianceCityWarHangRewardBonus", e[e.AllianceCityWarReviveItems = 403] = "AllianceCityWarReviveItems", e[e.AllianceCityWarLeaderStarBonus = 404] = "AllianceCityWarLeaderStarBonus", e[e.AngelSkillPosUnlock = 405] = "AngelSkillPosUnlock", e[e.AngelAttributePowerParam = 406] = "AngelAttributePowerParam", e[e.AllianceCityWarAbandonCityTime = 407] = "AllianceCityWarAbandonCityTime", e[e.BuyAllianceCityWarBattlePoint = 410] = "BuyAllianceCityWarBattlePoint", e[e.BuyAllianceCityWarBattlePointPrice = 411] = "BuyAllianceCityWarBattlePointPrice", e[e.BuyAllianceCityWarBattlePointTime = 412] = "BuyAllianceCityWarBattlePointTime", e[e.AllianceCityWarOnlookerCount = 413] = "AllianceCityWarOnlookerCount", e[e.WarRevive = 421] = "WarRevive", e[e.WarLeaderStar = 422] = "WarLeaderStar", e[e.WarNpcShow = 423] = "WarNpcShow", e[e.WarHangUpBonus = 424] = "WarHangUpBonus", e[e.WarCoreBonus = 425] = "WarCoreBonus", e[e.StrongPathWishListTaskId = 426] = "StrongPathWishListTaskId", e[e.GuideTaskList = 427] = "GuideTaskList", e[e.InfiniteTenSummon = 429] = "InfiniteTenSummon", e[e.MagicCircleReset = 430] = "MagicCircleReset", e[e.PushMessageChaosSummon = 501] = "PushMessageChaosSummon", e[e.PushMessageMoonTemple = 502] = "PushMessageMoonTemple", e[e.PushMessageLadderRace = 503] = "PushMessageLadderRace", e[e.PushMessageActivity = 504] = "PushMessageActivity", e[e.PushMessageChampionRace = 505] = "PushMessageChampionRace", e[e.ArenaScoreConfig = 506] = "ArenaScoreConfig", e[e.MagicCircleUnlockRewards = 507] = "MagicCircleUnlockRewards", e[e.AssaultOperationEnergyLimit = 508] = "AssaultOperationEnergyLimit", e[e.AssaultOperationEnergyBollLimit = 509] = "AssaultOperationEnergyBollLimit", e[e.AssaultOperationEnergyRecoverySpeed = 510] = "AssaultOperationEnergyRecoverySpeed", e[e.InitAssaultOperationEnergy = 511] = "InitAssaultOperationEnergy", e[e.NewPersonalPrivilegeDailyRewards = 512] = "NewPersonalPrivilegeDailyRewards", e[e.ArtefactItem = 513] = "ArtefactItem", e[e.SailChestHeroIds = 1001] = "SailChestHeroIds", e[e.MallEnterConfigIds = 1002] = "MallEnterConfigIds", e[e.StatisticsPowerStage = 10001] = "StatisticsPowerStage", e[e.StatisticsDiamondStage = 10002] = "StatisticsDiamondStage", e[e.StatisticsBigRReturn = 10003] = "StatisticsBigRReturn", e[e.RobotMessage = 10004] = "RobotMessage", e[e.G123MediumZoneMap = 11001] = "G123MediumZoneMap", e[e.RankMatchChallengeReward = 12e3] = "RankMatchChallengeReward", e[e.RankMatchOpenTs = 12001] = "RankMatchOpenTs", e[e.AllianceBossSkillItems = 13001] = "AllianceBossSkillItems", e[e.WorldBossTime = 14001] = "WorldBossTime", e[e.WorldBossTaskIds = 14002] = "WorldBossTaskIds", e[e.WorldBossHpArray = 14003] = "WorldBossHpArray", e[e.WorldBossSkills = 14004] = "WorldBossSkills"
            }(n.LevelParamType || (n.LevelParamType = {})),
            function(e) {
                e[e.DailyTask = 2] = "DailyTask", e[e.WeeklyTask = 3] = "WeeklyTask", e[e.ArenaChallengeCount = 4] = "ArenaChallengeCount"
            }(n.PointBoxRewardType || (n.PointBoxRewardType = {})),
            function(e) {
                e[e.Attack = 0] = "Attack", e[e.Hp = 1] = "Hp", e[e.Defense = 2] = "Defense", e[e.Speed = 3] = "Speed", e[e.CritChance = 4] = "CritChance", e[e.CritDamageAddon = 5] = "CritDamageAddon", e[e.ControlChance = 6] = "ControlChance", e[e.ResistControl = 7] = "ResistControl", e[e.ResistCritChance = 8] = "ResistCritChance", e[e.HitChance = 9] = "HitChance", e[e.DamageReduce = 10] = "DamageReduce", e[e.DodgeChance = 11] = "DodgeChance", e[e.CureAddon = 12] = "CureAddon", e[e.BeCureAddon = 13] = "BeCureAddon", e[e.DamageAddon = 14] = "DamageAddon", e[e.PhysicDamageAddon = 15] = "PhysicDamageAddon", e[e.MagicDamageAddon = 16] = "MagicDamageAddon", e[e.PhysicDamageReduce = 17] = "PhysicDamageReduce", e[e.MagicDamageReduce = 18] = "MagicDamageReduce", e[e.PvpDamageAddon = 19] = "PvpDamageAddon", e[e.PvpDamageReduce = 20] = "PvpDamageReduce", e[e.Penetrate = 21] = "Penetrate", e[e.AngelResistCritChance = 22] = "AngelResistCritChance", e[e.AngelDamageReduce = 23] = "AngelDamageReduce", e[e.BreakDefense = 24] = "BreakDefense", e[e.ResistBreakDefense = 25] = "ResistBreakDefense", e[e.RealDamageAddon = 26] = "RealDamageAddon", e[e.RealDamageReduce = 27] = "RealDamageReduce", e[e.SpecialDamageAddon = 28] = "SpecialDamageAddon", e[e.SpecialDamageReduce = 29] = "SpecialDamageReduce", e[e.BreakArmor = 31] = "BreakArmor", e[e.IgnoreDefense = 32] = "IgnoreDefense", e[e.IgnoreDefense2 = 33] = "IgnoreDefense2", e[e.FinalDamageAddon = 34] = "FinalDamageAddon", e[e.FinalDamageReduce = 35] = "FinalDamageReduce", e[e.RepressHitChance = 36] = "RepressHitChance", e[e.RepressDamageAddon = 37] = "RepressDamageAddon", e[e.BeRepressDodgeChance = 38] = "BeRepressDodgeChance", e[e.BeRepressDamageReduce = 39] = "BeRepressDamageReduce", e[e.BeCritDamageReduce = 40] = "BeCritDamageReduce", e[e.FinalControlChance = 41] = "FinalControlChance", e[e.WarriorDamageAddon = 42] = "WarriorDamageAddon", e[e.WarriorDamageReduce = 43] = "WarriorDamageReduce", e[e.MasterDamageAddon = 44] = "MasterDamageAddon", e[e.MasterDamageReduce = 45] = "MasterDamageReduce", e[e.TankDamageAddon = 46] = "TankDamageAddon", e[e.TankDamageReduce = 47] = "TankDamageReduce", e[e.SupportDamageAddon = 48] = "SupportDamageAddon", e[e.SupportDamageReduce = 49] = "SupportDamageReduce", e[e.HeartDamageAddon = 50] = "HeartDamageAddon", e[e.HeartDamageReduce = 51] = "HeartDamageReduce", e[e.PowerDamageAddon = 52] = "PowerDamageAddon", e[e.PowerDamageReduce = 53] = "PowerDamageReduce", e[e.TechDamageAddon = 54] = "TechDamageAddon", e[e.TechDamageReduce = 55] = "TechDamageReduce", e[e.BreakDamageAddon = 56] = "BreakDamageAddon", e[e.BreakDamageReduce = 57] = "BreakDamageReduce", e[e.FightDamageAddon = 58] = "FightDamageAddon", e[e.FightDamageReduce = 59] = "FightDamageReduce", e[e.ChaosDamageAddon = 60] = "ChaosDamageAddon", e[e.ChaosDamageReduce = 61] = "ChaosDamageReduce", e[e.WaterDamageAddon = 62] = "WaterDamageAddon", e[e.WaterDamageReduce = 63] = "WaterDamageReduce", e[e.FireDamageAddon = 64] = "FireDamageAddon", e[e.FireDamageReduce = 65] = "FireDamageReduce", e[e.WindDamageAddon = 66] = "WindDamageAddon", e[e.WindDamageReduce = 67] = "WindDamageReduce", e[e.LightDamageAddon = 68] = "LightDamageAddon", e[e.LightDamageReduce = 69] = "LightDamageReduce", e[e.DarkDamageAddon = 70] = "DarkDamageAddon", e[e.DarkDamageReduce = 71] = "DarkDamageReduce", e[e.AllDamageAddon = 72] = "AllDamageAddon", e[e.AllDamageReduce = 73] = "AllDamageReduce", e[e.ChaosElementDamageAddon = 74] = "ChaosElementDamageAddon", e[e.ChaosElementDamageReduce = 75] = "ChaosElementDamageReduce", e[e.SuckHpRate = 76] = "SuckHpRate", e[e.ReboundRate = 77] = "ReboundRate", e[e.PetPowerRecovery = 78] = "PetPowerRecovery", e[e.ScoreLevel = 80] = "ScoreLevel", e[e.ScoreStar = 81] = "ScoreStar", e[e.ScoreEquipment = 82] = "ScoreEquipment", e[e.ScoreLuckyCharm = 83] = "ScoreLuckyCharm", e[e.ScoreFavor = 84] = "ScoreFavor", e[e.ScoreFavorRoad = 85] = "ScoreFavorRoad", e[e.ScoreStarHolyStatue = 86] = "ScoreStarHolyStatue", e[e.ScoreStarPower = 87] = "ScoreStarPower", e[e.ScoreStarPiece = 88] = "ScoreStarPiece", e[e.ScoreAllianceTalent = 89] = "ScoreAllianceTalent", e[e.ScorePersonality = 90] = "ScorePersonality", e[e.ScoreGem = 91] = "ScoreGem", e[e.ScoreHeroSkin = 92] = "ScoreHeroSkin", e[e.ScoreEmbattle = 93] = "ScoreEmbattle", e[e.ScorePowerCore = 94] = "ScorePowerCore", e[e.ScoreUserPet = 95] = "ScoreUserPet", e[e.ScoreMagicCircle = 96] = "ScoreMagicCircle", e[e.EndScoreId = 97] = "EndScoreId", e[e.PanelAttributePrefix = 100] = "PanelAttributePrefix", e[e.PanelAttributeLayer = 2] = "PanelAttributeLayer", e[e.BattleAttributePrefix = 200] = "BattleAttributePrefix", e[e.BattleAttributeLayer = 2] = "BattleAttributeLayer", e[e.PercentAttributeOffset = 4] = "PercentAttributeOffset", e[e.AngelStartAttrId = 301] = "AngelStartAttrId", e[e.AngelAttack = 301] = "AngelAttack", e[e.AngelCritChance = 302] = "AngelCritChance", e[e.AngelDamageAddon = 303] = "AngelDamageAddon", e[e.AngelCritDamageAddon = 304] = "AngelCritDamageAddon", e[e.FrontRowDamageAddon = 401] = "FrontRowDamageAddon", e[e.FrontRowDamageReduce = 402] = "FrontRowDamageReduce", e[e.MiddleRowDamageAddon = 403] = "MiddleRowDamageAddon", e[e.MiddleRowDamageReduce = 404] = "MiddleRowDamageReduce", e[e.BackRowDamageAddon = 405] = "BackRowDamageAddon", e[e.BackRowDamageReduce = 406] = "BackRowDamageReduce", e[e.ElementShieldReduce = 419] = "ElementShieldReduce", e[e.ElementShieldAll = 420] = "ElementShieldAll", e[e.ElementShieldHeart = 421] = "ElementShieldHeart", e[e.ElementShieldPower = 422] = "ElementShieldPower", e[e.ElementShieldTech = 423] = "ElementShieldTech", e[e.ElementShieldBreak = 424] = "ElementShieldBreak", e[e.ElementShieldFight = 425] = "ElementShieldFight", e[e.ElementShieldChaos = 426] = "ElementShieldChaos", e[e.ElementShieldEnd = 427] = "ElementShieldEnd", e[e.PetDamageAddon = 501] = "PetDamageAddon", e[e.PetDamageReduce = 502] = "PetDamageReduce"
            }(n.HeroAttributeType || (n.HeroAttributeType = {})),
            function(e) {
                e[e.OfflinePay = 1] = "OfflinePay", e[e.AllianceCityWarTask = 2] = "AllianceCityWarTask", e[e.VnPayOrder = 3] = "VnPayOrder", e[e.FightingMiniGameReward = 4] = "FightingMiniGameReward", e[e.FightingMiniGameTask = 5] = "FightingMiniGameTask", e[e.OfflinePays = 6] = "OfflinePays"
            }(n.CacheEventType || (n.CacheEventType = {})),
            function(e) {
                e[e.Trigger = 18] = "Trigger"
            }(n.MainUIBtnId || (n.MainUIBtnId = {})),
            function(e) {
                e[e.Adult = 1] = "Adult", e[e.Picture = 2] = "Picture"
            }(n.PersonalityPictureType || (n.PersonalityPictureType = {})),
            function(e) {
                e[e.Self = 1] = "Self", e[e.Personality = 2] = "Personality", e[e.Item = 3] = "Item"
            }(n.PersonalityMaterialType || (n.PersonalityMaterialType = {})),
            function(e) {
                e[e.Finally = 1] = "Finally", e[e.Daily = 2] = "Daily", e[e.Task = 3] = "Task", e[e.Stage = 4] = "Stage"
            }(n.ReceiveRewardType || (n.ReceiveRewardType = {})),
            function(e) {
                e[e.None = 0] = "None", e[e.MainLine = 1] = "MainLine", e[e.DailyInstance = 2] = "DailyInstance", e[e.TestTower = 3] = "TestTower", e[e.Arena = 4] = "Arena", e[e.ChampionShip = 5] = "ChampionShip", e[e.SecretArea = 6] = "SecretArea", e[e.EndlessAbyssSingle = 10] = "EndlessAbyssSingle", e[e.EndlessAbyssMulti = 11] = "EndlessAbyssMulti", e[e.AncientSacred = 12] = "AncientSacred", e[e.AllianceTest = 13] = "AllianceTest", e[e.TowerHeart = 21] = "TowerHeart", e[e.TowerPower = 22] = "TowerPower", e[e.TowerTech = 23] = "TowerTech", e[e.TowerBreak = 24] = "TowerBreak", e[e.TowerFight = 25] = "TowerFight", e[e.SeniorArena = 26] = "SeniorArena", e[e.CrossServerArena = 28] = "CrossServerArena", e[e.CrossServerChampionShip = 29] = "CrossServerChampionShip", e[e.SecretAreaReward = 30] = "SecretAreaReward", e[e.MoonTemple = 31] = "MoonTemple", e[e.CrossZoneRank = 32] = "CrossZoneRank", e[e.CrossZoneAllianceChallenge = 33] = "CrossZoneAllianceChallenge", e[e.CrossZoneContinueWarRank = 35] = "CrossZoneContinueWarRank", e[e.FriendPK = 36] = "FriendPK", e[e.ArtefactRelic = 37] = "ArtefactRelic", e[e.AllZoneChampionRace = 38] = "AllZoneChampionRace", e[e.StarLightSecretLand = 39] = "StarLightSecretLand", e[e.GodLandDuel = 40] = "GodLandDuel", e[e.War = 41] = "War", e[e.WarAngel = 42] = "WarAngel", e[e.DailyInstanceCoin = 51] = "DailyInstanceCoin", e[e.DailyInstanceXp = 52] = "DailyInstanceXp", e[e.DailyInstanceHero = 53] = "DailyInstanceHero", e[e.DailyInstanceLuckyCharm = 54] = "DailyInstanceLuckyCharm", e[e.DailyInstanceAngel = 55] = "DailyInstanceAngel", e[e.DailyInstanceGem = 56] = "DailyInstanceGem", e[e.TestTowerHard = 60] = "TestTowerHard", e[e.ActivityHeroTest = 101] = "ActivityHeroTest", e[e.ActChampionship = 102] = "ActChampionship", e[e.ActBreakou = 103] = "ActBreakou", e[e.ActivityElementHeart = 111] = "ActivityElementHeart", e[e.ActivityElementPower = 112] = "ActivityElementPower", e[e.ActivityElementTech = 113] = "ActivityElementTech", e[e.ActivityElementBreak = 114] = "ActivityElementBreak", e[e.ActivityElementFight = 115] = "ActivityElementFight", e[e.HeroDungeon = 121] = "HeroDungeon", e[e.HeroDungeon2 = 122] = "HeroDungeon2", e[e.HeroDungeon3 = 123] = "HeroDungeon3", e[e.HeroDungeon4 = 124] = "HeroDungeon4", e[e.HeroDungeon5 = 125] = "HeroDungeon5", e[e.HeroDungeon6 = 126] = "HeroDungeon6", e[e.HeroDungeon7 = 127] = "HeroDungeon7", e[e.HeroDungeon8 = 128] = "HeroDungeon8", e[e.HeroDungeon9 = 129] = "HeroDungeon9", e[e.ActivitySecret = 130] = "ActivitySecret", e[e.ActivitySecret1 = 131] = "ActivitySecret1", e[e.ActivitySecret2 = 132] = "ActivitySecret2", e[e.ActivitySecret3 = 133] = "ActivitySecret3", e[e.ActivitySecret4 = 134] = "ActivitySecret4", e[e.ActivitySecret5 = 135] = "ActivitySecret5", e[e.WorldBossZone = 141] = "WorldBossZone", e[e.WorldBossCrossZone = 142] = "WorldBossCrossZone", e[e.WorldBossAlliance = 143] = "WorldBossAlliance", e[e.ActivityBoss = 144] = "ActivityBoss", e[e.ActivityBoss2 = 145] = "ActivityBoss2", e[e.ActivityBoss3 = 146] = "ActivityBoss3", e[e.ActivitySecretUser = 150] = "ActivitySecretUser", e[e.ActivitySecretUser1 = 151] = "ActivitySecretUser1", e[e.ActivitySecretUser2 = 152] = "ActivitySecretUser2", e[e.ActivitySecretUser3 = 153] = "ActivitySecretUser3", e[e.ActivitySecretUser4 = 154] = "ActivitySecretUser4", e[e.ActivitySecretUser5 = 155] = "ActivitySecretUser5", e[e.ActivityHeroTry = 156] = "ActivityHeroTry", e[e.ActivityHeroTry2 = 157] = "ActivityHeroTry2", e[e.ActivityHeroTry3 = 158] = "ActivityHeroTry3", e[e.ActivityHeroTry4 = 159] = "ActivityHeroTry4", e[e.ActivityHeroTry5 = 160] = "ActivityHeroTry5", e[e.ActivityHeroTry6 = 161] = "ActivityHeroTry6", e[e.ActivityHeroTry7 = 162] = "ActivityHeroTry7", e[e.ActivityHeroTry8 = 163] = "ActivityHeroTry8", e[e.ActivityHeroTry9 = 164] = "ActivityHeroTry9", e[e.ActivityHeroTry10 = 165] = "ActivityHeroTry10", e[e.ActivitySkinTry = 166] = "ActivitySkinTry", e[e.ActivitySkinTry2 = 167] = "ActivitySkinTry2", e[e.ActivitySkinTry3 = 168] = "ActivitySkinTry3", e[e.ActivitySkinTry4 = 169] = "ActivitySkinTry4", e[e.SaintsWar1 = 170] = "SaintsWar1", e[e.SaintsWar2 = 171] = "SaintsWar2", e[e.SaintsWar3 = 172] = "SaintsWar3", e[e.AllianceCityWar = 180] = "AllianceCityWar", e[e.HeroTestTower1 = 181] = "HeroTestTower1", e[e.HeroTestTower2 = 182] = "HeroTestTower2", e[e.HeroTestTower3 = 183] = "HeroTestTower3", e[e.HeroTestTower4 = 184] = "HeroTestTower4", e[e.HeroTestTower5 = 185] = "HeroTestTower5", e[e.HeroTestTower6 = 186] = "HeroTestTower6", e[e.HeroTestTower7 = 187] = "HeroTestTower7", e[e.HeroTestTower8 = 188] = "HeroTestTower8", e[e.HeroTestTower9 = 189] = "HeroTestTower9", e[e.Story = 191] = "Story", e[e.StoryBoss = 192] = "StoryBoss", e[e.ElementArena = 201] = "ElementArena", e[e.HeroPK = 202] = "HeroPK", e[e.ActChampion11 = 203] = "ActChampion11", e[e.ActChampion31 = 204] = "ActChampion31", e[e.ActChampion12 = 205] = "ActChampion12", e[e.ActChampion32 = 206] = "ActChampion32", e[e.NoviceTraining = 211] = "NoviceTraining", e[e.BossHunt = 212] = "BossHunt", e[e.AllianceMaze = 213] = "AllianceMaze", e[e.SeasonExpedition = 220] = "SeasonExpedition", e[e.SeasonExpedition1 = 221] = "SeasonExpedition1", e[e.SeasonExpedition2 = 222] = "SeasonExpedition2", e[e.SeasonExpedition3 = 223] = "SeasonExpedition3", e[e.SeasonExpedition4 = 224] = "SeasonExpedition4", e[e.SeasonExpedition5 = 225] = "SeasonExpedition5", e[e.RankMatch = 301] = "RankMatch", e[e.WorldBoss = 302] = "WorldBoss"
            }(n.MapType || (n.MapType = {})),
            function(e) {
                e[e.Player = 1] = "Player", e[e.Monster = 2] = "Monster", e[e.ArenaRobot = 3] = "ArenaRobot", e[e.SeniorArenaRobot = 4] = "SeniorArenaRobot", e[e.LadderRaceRobot = 5] = "LadderRaceRobot", e[e.CrossZoneRankRobot = 6] = "CrossZoneRankRobot", e[e.ActivityRobot = 7] = "ActivityRobot", e[e.GodLandDuelRobot = 8] = "GodLandDuelRobot", e[e.ContinueWarRank = 9] = "ContinueWarRank", e[e.RankMatch = 10] = "RankMatch", e[e.Robot = 101] = "Robot"
            }(n.PlayerInfoType || (n.PlayerInfoType = {})),
            function(e) {
                e[e.Leader = 10] = "Leader", e[e.ViceLeader = 8] = "ViceLeader", e[e.Member = 1] = "Member"
            }(n.AlliancePostType || (n.AlliancePostType = {})),
            function(e) {
                e[e.Join = 1] = "Join", e[e.Quit = 2] = "Quit", e[e.Promotion = 3] = "Promotion", e[e.Demotion = 4] = "Demotion", e[e.Kick = 5] = "Kick", e[e.AppointLeader = 6] = "AppointLeader", e[e.ImpeachLeader = 7] = "ImpeachLeader", e[e.AllianceTest = 8] = "AllianceTest", e[e.CityWarOccupyCity = 9] = "CityWarOccupyCity", e[e.CityWarLoseCity = 10] = "CityWarLoseCity", e[e.ChallengeMain = 11] = "ChallengeMain", e[e.ChallengeRaid = 12] = "ChallengeRaid"
            }(n.AllianceLogType || (n.AllianceLogType = {})),
            function(e) {
                e[e.System = 1] = "System", e[e.Private = 2] = "Private", e[e.Alliance = 3] = "Alliance", e[e.World = 4] = "World", e[e.CrossZone = 5] = "CrossZone", e[e.BossHunt = 6] = "BossHunt", e[e.AssaultOperation = 7] = "AssaultOperation"
            }(n.ChatChannelType || (n.ChatChannelType = {})),
            function(e) {
                e[e.Text = 1] = "Text", e[e.CommonSummon = 11] = "CommonSummon", e[e.ProphetSummon = 12] = "ProphetSummon", e[e.TestTower = 13] = "TestTower", e[e.AllianceAdvertise = 14] = "AllianceAdvertise", e[e.WishSummon = 15] = "WishSummon", e[e.NewHeroSummon = 16] = "NewHeroSummon", e[e.Cloud = 17] = "Cloud", e[e.PersonalitySummon = 18] = "PersonalitySummon", e[e.ChaosSummon = 19] = "ChaosSummon", e[e.EmojiImage = 20] = "EmojiImage", e[e.CutPriceGift = 21] = "CutPriceGift", e[e.RankAchievement = 22] = "RankAchievement", e[e.AssaultOperationSupport = 23] = "AssaultOperationSupport"
            }(n.ChatMessageType || (n.ChatMessageType = {})),
            function(e) {
                e[e.Arena = 1] = "Arena", e[e.SeniorArena = 2] = "SeniorArena", e[e.LadderRace = 3] = "LadderRace", e[e.CrossZoneRank = 4] = "CrossZoneRank", e[e.CrossZoneContinueWarRank = 5] = "CrossZoneContinueWarRank", e[e.GodLandDuel = 6] = "GodLandDuel", e[e.RankMatch = 7] = "RankMatch"
            }(n.BattleMessageType || (n.BattleMessageType = {})),
            function(e) {
                e[e.DailySelection = 1] = "DailySelection", e[e.DaysGift = 2] = "DaysGift", e[e.DailyPay = 3] = "DailyPay", e[e.SevenDayPay = 4] = "SevenDayPay", e[e.SubscribePrivilege = 5] = "SubscribePrivilege", e[e.WarTokenActive = 6] = "WarTokenActive", e[e.GoodFund = 7] = "GoodFund", e[e.GrowUpFund = 8] = "GrowUpFund", e[e.HeroGift = 9] = "HeroGift", e[e.GrowUpGift = 10] = "GrowUpGift", e[e.LegendGift = 11] = "LegendGift", e[e.FavorGift = 12] = "FavorGift", e[e.MonthCard = 13] = "MonthCard", e[e.LuckyStar = 14] = "LuckyStar", e[e.ChosenGiftPack = 15] = "ChosenGiftPack", e[e.PermanentPrivilege = 16] = "PermanentPrivilege", e[e.DailyRecommend = 17] = "DailyRecommend", e[e.GrowUpWishCall = 18] = "GrowUpWishCall", e[e.GrowUpSummonChaos = 19] = "GrowUpSummonChaos", e[e.GrowUpPersonality = 20] = "GrowUpPersonality", e[e.GrowUpSummonPerson = 21] = "GrowUpSummonPerson", e[e.LegendGift2 = 22] = "LegendGift2", e[e.LegendGift3 = 23] = "LegendGift3", e[e.LegendGift4 = 24] = "LegendGift4", e[e.LegendGift5 = 25] = "LegendGift5", e[e.GrowUpLRPersonality = 27] = "GrowUpLRPersonality", e[e.GrowUpLRHero = 28] = "GrowUpLRHero", e[e.ColorDiamond = 29] = "ColorDiamond", e[e.NewGoodFund = 30] = "NewGoodFund", e[e.NewGoodFund2 = 31] = "NewGoodFund2", e[e.NewPersonPrivilege = 34] = "NewPersonPrivilege", e[e.DailySelectionHero = 35] = "DailySelectionHero", e[e.MallEnd = 36] = "MallEnd", e[e.BuyDiamond = 100] = "BuyDiamond", e[e.FirstPay = 101] = "FirstPay", e[e.WarToken = 102] = "WarToken", e[e.Trigger = 103] = "Trigger", e[e.InfiniteTenSummon = 105] = "InfiniteTenSummon", e[e.SinglePagePack = 107] = "SinglePagePack", e[e.ChaosSummon = 108] = "ChaosSummon", e[e.SinglePagePack2 = 109] = "SinglePagePack2", e[e.SinglePagePack3 = 110] = "SinglePagePack3", e[e.SinglePagePack4 = 111] = "SinglePagePack4", e[e.OldPlayerRecall = 112] = "OldPlayerRecall", e[e.BuyCurrency = 113] = "BuyCurrency", e[e.DefaultPack = 9999] = "DefaultPack"
            }(n.GiftPackType || (n.GiftPackType = {})),
            function(e) {
                e[e["\u6bcf\u65e5\u7cbe\u9009"] = 1] = "\u6bcf\u65e5\u7cbe\u9009", e[e["\u79ef\u5929\u8c6a\u793c"] = 2] = "\u79ef\u5929\u8c6a\u793c", e[e["\u6bcf\u65e5\u5145\u503c"] = 3] = "\u6bcf\u65e5\u5145\u503c", e[e["\u4e03\u65e5\u7d2f\u5145"] = 4] = "\u4e03\u65e5\u7d2f\u5145", e[e["\u8ba2\u9605\u7279\u6743"] = 5] = "\u8ba2\u9605\u7279\u6743", e[e["\u6d3b\u8dc3\u6218\u4ee4"] = 6] = "\u6d3b\u8dc3\u6218\u4ee4", e[e["\u8d85\u503c\u57fa\u91d1"] = 7] = "\u8d85\u503c\u57fa\u91d1", e[e["\u6210\u957f\u57fa\u91d1"] = 8] = "\u6210\u957f\u57fa\u91d1", e[e["\u82f1\u96c4\u793c\u5305"] = 9] = "\u82f1\u96c4\u793c\u5305", e[e["\u6210\u957f\u793c\u5305"] = 10] = "\u6210\u957f\u793c\u5305", e[e["\u4f20\u5947\u793c\u5305"] = 11] = "\u4f20\u5947\u793c\u5305", e[e["\u597d\u611f\u5ea6\u793c\u5305"] = 12] = "\u597d\u611f\u5ea6\u793c\u5305", e[e["\u6708\u5361\u793c\u5305"] = 13] = "\u6708\u5361\u793c\u5305", e[e["\u5e78\u8fd0\u661f"] = 14] = "\u5e78\u8fd0\u661f", e[e["\u5929\u9009\u793c\u5305"] = 15] = "\u5929\u9009\u793c\u5305", e[e["\u6c38\u4e45\u7279\u6743"] = 16] = "\u6c38\u4e45\u7279\u6743", e[e["\u6bcf\u65e5\u63a8\u8350"] = 17] = "\u6bcf\u65e5\u63a8\u8350", e[e["\u6210\u957f\u57fa\u91d1_\u82f1\u96c4\u964d\u4e34"] = 18] = "\u6210\u957f\u57fa\u91d1_\u82f1\u96c4\u964d\u4e34", e[e["\u6210\u957f\u57fa\u91d1_\u6df7\u6c8c\u53ec\u5524"] = 19] = "\u6210\u957f\u57fa\u91d1_\u6df7\u6c8c\u53ec\u5524", e[e["\u6210\u957f\u57fa\u91d1_\u4eba\u683c\u53ec\u5524"] = 20] = "\u6210\u957f\u57fa\u91d1_\u4eba\u683c\u53ec\u5524", e[e["\u6210\u957f\u57fa\u91d1_\u4eba\u683c\u7948\u613f"] = 21] = "\u6210\u957f\u57fa\u91d1_\u4eba\u683c\u7948\u613f", e[e["\u4f20\u5947\u793c\u53052"] = 22] = "\u4f20\u5947\u793c\u53052", e[e["\u4f20\u5947\u793c\u53053"] = 23] = "\u4f20\u5947\u793c\u53053", e[e["\u4f20\u5947\u793c\u53054"] = 24] = "\u4f20\u5947\u793c\u53054", e[e["\u4f20\u5947\u793c\u53055"] = 25] = "\u4f20\u5947\u793c\u53055", e[e["\u6210\u957f\u57fa\u91d1_LR\u4eba\u683c\u53ec\u5524"] = 27] = "\u6210\u957f\u57fa\u91d1_LR\u4eba\u683c\u53ec\u5524", e[e["\u6210\u957f\u57fa\u91d1_LR\u82f1\u96c4\u53ec\u5524"] = 28] = "\u6210\u957f\u57fa\u91d1_LR\u82f1\u96c4\u53ec\u5524"
            }(n.MallName || (n.MallName = {})),
            function(e) {
                e[e.Money = 1] = "Money", e[e.Diamond = 2] = "Diamond"
            }(n.CurrencyType || (n.CurrencyType = {})),
            function(e) {
                e[e.Not = 0] = "Not", e[e.Daily = 1] = "Daily", e[e.Week = 2] = "Week", e[e.Month = 3] = "Month", e[e.Phase = 4] = "Phase"
            }(n.LimitBuyType || (n.LimitBuyType = {})),
            function(e) {
                e[e.Daily = 1] = "Daily", e[e.Week = 2] = "Week", e[e.Month = 3] = "Month", e[e.Interval = 4] = "Interval"
            }(n.ResetType || (n.ResetType = {})),
            function(e) {
                e[e.Level = 1] = "Level", e[e.VipLevel = 2] = "VipLevel", e[e.OpenZoneDay = 3] = "OpenZoneDay", e[e.MainLine = 4] = "MainLine", e[e.PayPoint = 5] = "PayPoint", e[e.FirstStar5 = 6] = "FirstStar5", e[e.UpgradeStar = 7] = "UpgradeStar", e[e.TestTower = 8] = "TestTower", e[e.CreateAccountDay = 9] = "CreateAccountDay", e[e.OnlineTime = 10] = "OnlineTime", e[e.PayPointCount = 11] = "PayPointCount", e[e.PreGiftId = 12] = "PreGiftId", e[e.FirstHero = 13] = "FirstHero", e[e.HeroStar5 = 14] = "HeroStar5", e[e.BattleFailed = 15] = "BattleFailed", e[e.ActivityUnlock = 16] = "ActivityUnlock", e[e.PayScore = 17] = "PayScore"
            }(n.TriggerCondition || (n.TriggerCondition = {})),
            function(e) {
                e[e.OpenZoneDay = 1] = "OpenZoneDay", e[e.CreateAccountDay = 2] = "CreateAccountDay", e[e.Level = 3] = "Level", e[e.TestTower = 4] = "TestTower", e[e.MainLine = 5] = "MainLine"
            }(n.FailureCondition || (n.FailureCondition = {})),
            function(e) {
                e[e.Frame1 = 1] = "Frame1", e[e.Frame2 = 2] = "Frame2", e[e.Frame3 = 3] = "Frame3", e[e.Frame4 = 4] = "Frame4", e[e.Frame5 = 5] = "Frame5", e[e.Frame6 = 6] = "Frame6", e[e.Frame7 = 7] = "Frame7", e[e.Frame8 = 8] = "Frame8", e[e.Carnival = 101] = "Carnival", e[e.FatePray = 102] = "FatePray", e[e.GiftPack = 103] = "GiftPack", e[e.HeroTest = 104] = "HeroTest", e[e.LimitTimeTask = 105] = "LimitTimeTask", e[e.AllUserImpactRank = 106] = "AllUserImpactRank", e[e.Bind = 107] = "Bind", e[e.WishSummon = 501] = "WishSummon", e[e.WeekCard = 502] = "WeekCard", e[e.ActiveWarToken = 503] = "ActiveWarToken", e[e.UpgradeStar = 504] = "UpgradeStar", e[e.MazeExplore = 505] = "MazeExplore", e[e.NewHeroSummon = 506] = "NewHeroSummon", e[e.HappyTurn = 507] = "HappyTurn", e[e.OptionalUpgradeStar = 508] = "OptionalUpgradeStar", e[e.ElementTest = 509] = "ElementTest", e[e.PersonalitySummon = 510] = "PersonalitySummon", e[e.HeroDungeon = 511] = "HeroDungeon", e[e.RebateSummon = 512] = "RebateSummon", e[e.SinglePagePack = 513] = "SinglePagePack", e[e.ExchangeShop = 514] = "ExchangeShop", e[e.TaskTalent = 515] = "TaskTalent", e[e.PayGuide = 516] = "PayGuide", e[e.InfiniteGiftPack = 517] = "InfiniteGiftPack", e[e.StockUpFestival = 518] = "StockUpFestival", e[e.CustomGiftPack = 519] = "CustomGiftPack", e[e.FateStarBox = 520] = "FateStarBox", e[e.GiftPackSummon = 521] = "GiftPackSummon", e[e.Ingenuity = 522] = "Ingenuity", e[e.ScoreShop = 523] = "ScoreShop", e[e.TotalPaySummon = 524] = "TotalPaySummon", e[e.DiamondSummon = 525] = "DiamondSummon", e[e.GemForgeSummon = 526] = "GemForgeSummon", e[e.SecretArea = 527] = "SecretArea", e[e.WishTree = 528] = "WishTree", e[e.WorldBoss = 529] = "WorldBoss", e[e.WarToken = 530] = "WarToken", e[e.AllUserPuzzle = 531] = "AllUserPuzzle", e[e.CumulativeBuyGift = 532] = "CumulativeBuyGift", e[e.ExquisiteCustomCard = 534] = "ExquisiteCustomCard", e[e.BadgeCollect = 535] = "BadgeCollect", e[e.SkipInlet = 536] = "SkipInlet", e[e.PlayerReturn = 537] = "PlayerReturn", e[e.Monopoly = 538] = "Monopoly", e[e.ContinuousPay = 539] = "ContinuousPay", e[e.AnswerCompetition = 540] = "AnswerCompetition", e[e.LoveArcher = 541] = "LoveArcher", e[e.ChaosSummon = 542] = "ChaosSummon", e[e.Story = 543] = "Story", e[e.HeroStarGift = 544] = "HeroStarGift", e[e.LuckyBagSummon = 545] = "LuckyBagSummon", e[e.SupportHero = 546] = "SupportHero", e[e.ActivityBoss = 547] = "ActivityBoss", e[e.HeroSuit = 548] = "HeroSuit", e[e.DailySignin = 549] = "DailySignin", e[e.WarmUpAct = 550] = "WarmUpAct", e[e.HeroStarUp = 551] = "HeroStarUp", e[e.CarnivalSkin = 552] = "CarnivalSkin", e[e.CommonSummon = 553] = "CommonSummon", e[e.SummonBox = 554] = "SummonBox", e[e.LuckyPack = 555] = "LuckyPack", e[e.FirstPay = 556] = "FirstPay", e[e.WishPersonality = 557] = "WishPersonality", e[e.NewSignIn = 558] = "NewSignIn", e[e.PickFood = 559] = "PickFood", e[e.KnifeTraining = 560] = "KnifeTraining", e[e.AngelSummon = 561] = "AngelSummon", e[e.CrazyWheel = 562] = "CrazyWheel", e[e.PremiumLuckyBag = 563] = "PremiumLuckyBag", e[e.NewbieCoupon = 564] = "NewbieCoupon", e[e.HeroTestTower = 565] = "HeroTestTower", e[e.LuckyLottery = 566] = "LuckyLottery", e[e.ElementArena = 567] = "ElementArena", e[e.ContinuousPack = 568] = "ContinuousPack", e[e.NewSignIn2 = 569] = "NewSignIn2", e[e.SecondKill = 570] = "SecondKill", e[e.Champion = 571] = "Champion", e[e.EmaPray = 572] = "EmaPray", e[e.MagicCompose = 573] = "MagicCompose", e[e.RunningTrain = 574] = "RunningTrain", e[e.SuperGift = 575] = "SuperGift", e[e.RechargeFeedback = 576] = "RechargeFeedback", e[e.HeroPK = 577] = "HeroPK", e[e.SailingTreasureHunt = 578] = "SailingTreasureHunt", e[e.CashMallDisCount = 579] = "CashMallDisCount", e[e.ScratchCard = 580] = "ScratchCard", e[e.LuckyCake = 581] = "LuckyCake", e[e.CircusMaze = 582] = "CircusMaze", e[e.BannerSkip = 583] = "BannerSkip", e[e.NinjaMiniGame = 584] = "NinjaMiniGame", e[e.WishAngel = 585] = "WishAngel", e[e.Championship = 586] = "Championship", e[e.CrazyDiscount = 587] = "CrazyDiscount", e[e.KnockWatermelon = 588] = "KnockWatermelon", e[e.DrawCardFight = 589] = "DrawCardFight", e[e.LimitTimeImpactRankFrame = 590] = "LimitTimeImpactRankFrame", e[e.LimitTimeImpactRank = 591] = "LimitTimeImpactRank", e[e.NoviceFormation = 592] = "NoviceFormation", e[e.Breakou = 593] = "Breakou", e[e.FightingMiniGame = 594] = "FightingMiniGame", e[e.GiftAllHeroes = 595] = "GiftAllHeroes", e[e.SuperKoi = 596] = "SuperKoi", e[e.TradeWar = 597] = "TradeWar", e[e.Rocket = 598] = "Rocket", e[e.NoviceTraining = 599] = "NoviceTraining", e[e.Game2048 = 600] = "Game2048", e[e.RushUp = 601] = "RushUp", e[e.FantasticPasture = 602] = "FantasticPasture", e[e.Flop = 603] = "Flop", e[e.CutPriceGift = 604] = "CutPriceGift", e[e.NewPersonality = 605] = "NewPersonality", e[e.SeasonExpedition = 606] = "SeasonExpedition", e[e.RuinsWar = 607] = "RuinsWar", e[e.BossHunt = 608] = "BossHunt", e[e.NewWarToken = 609] = "NewWarToken", e[e.Rhythm = 610] = "Rhythm", e[e.MysteryBox = 611] = "MysteryBox", e[e.AngelCard = 612] = "AngelCard", e[e.PowerTask = 613] = "PowerTask", e[e.UniversalBenefits = 614] = "UniversalBenefits", e[e.PiggyBank = 615] = "PiggyBank", e[e.DrawBattle = 616] = "DrawBattle", e[e.SingleRank = 617] = "SingleRank", e[e.MultipleGift = 618] = "MultipleGift", e[e.Archery = 619] = "Archery", e[e.ChainGift = 620] = "ChainGift", e[e.AllianceTrader = 621] = "AllianceTrader", e[e.ClothDamage = 622] = "ClothDamage", e[e.EightDays = 623] = "EightDays", e[e.AllianceMaze = 624] = "AllianceMaze", e[e.TreasureBoxOpen = 625] = "TreasureBoxOpen", e[e.StarryPrayer = 626] = "StarryPrayer", e[e.AssaultOperation = 627] = "AssaultOperation", e[e.LuckySummon = 628] = "LuckySummon", e[e.TaskWarToken = 629] = "TaskWarToken", e[e.OpenBoxChooseOne = 630] = "OpenBoxChooseOne", e[e.Announcement = 1001] = "Announcement", e[e.ItemGetWay = 1002] = "ItemGetWay"
            }(r = n.ActivityType || (n.ActivityType = {})),
            function(e) {
                e[e["\u5f00\u670d\u6d3b\u52a8\u6846\u67b6"] = 1] = "\u5f00\u670d\u6d3b\u52a8\u6846\u67b6", e[e["\u9650\u65f6\u6d3b\u52a8\u6846\u67b6"] = 2] = "\u9650\u65f6\u6d3b\u52a8\u6846\u67b6", e[e["\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6"] = 3] = "\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6", e[e["\u4e03\u5915\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6"] = 4] = "\u4e03\u5915\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6", e[e["\u82f1\u96c4\u964d\u4e34\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6"] = 5] = "\u82f1\u96c4\u964d\u4e34\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6", e[e["\u4e00\u6b21\u6027\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6\uff08\u6bcf\u6b21\u4f7f\u7528\u90fd\u9700\u8981\u91cd\u65b0\u8bbe\u8ba1UI\uff09"] = 6] = "\u4e00\u6b21\u6027\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6\uff08\u6bcf\u6b21\u4f7f\u7528\u90fd\u9700\u8981\u91cd\u65b0\u8bbe\u8ba1UI\uff09", e[e["\u65b0\u82f1\u96c4\u964d\u4e34\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6"] = 7] = "\u65b0\u82f1\u96c4\u964d\u4e34\u4e3b\u9898\u6d3b\u52a8\u6846\u67b6", e[e["\u901a\u7528\u6d3b\u52a8\u6846\u67b6"] = 8] = "\u901a\u7528\u6d3b\u52a8\u6846\u67b6", e[e["\u5609\u5e74\u534e"] = 101] = "\u5609\u5e74\u534e", e[e["\u547d\u8fd0\u7948\u613f"] = 102] = "\u547d\u8fd0\u7948\u613f", e[e["\u76f4\u8d2d"] = 103] = "\u76f4\u8d2d", e[e["\u82f1\u96c4\u8bd5\u70bc"] = 104] = "\u82f1\u96c4\u8bd5\u70bc", e[e["\u9650\u65f6\u4efb\u52a1"] = 105] = "\u9650\u65f6\u4efb\u52a1", e[e["\u5168\u6c11\u51b2\u699c"] = 106] = "\u5168\u6c11\u51b2\u699c", e[e["\u7ed1\u5b9a\u597d\u793c"] = 107] = "\u7ed1\u5b9a\u597d\u793c", e[e["\u5fc3\u613f\u53ec\u5524"] = 501] = "\u5fc3\u613f\u53ec\u5524", e[e["\u5468\u5361"] = 502] = "\u5468\u5361", e[e["\u6d3b\u8dc3\u6218\u4ee4"] = 503] = "\u6d3b\u8dc3\u6218\u4ee4", e[e["\u5e9f\u5f03504"] = 504] = "\u5e9f\u5f03504", e[e["\u8ff7\u9635\u63a2\u5b9d"] = 505] = "\u8ff7\u9635\u63a2\u5b9d", e[e["\u7f8e\u6597\u58eb\u964d\u4e34"] = 506] = "\u7f8e\u6597\u58eb\u964d\u4e34", e[e["\u7ffb\u7ffb\u4e50"] = 507] = "\u7ffb\u7ffb\u4e50", e[e["\u81ea\u9009\u5347\u661f\u4e13\u5c5e"] = 508] = "\u81ea\u9009\u5347\u661f\u4e13\u5c5e", e[e["\u5143\u7d20\u8bd5\u70bc"] = 509] = "\u5143\u7d20\u8bd5\u70bc", e[e["\u4eba\u683c\u53ec\u5524"] = 510] = "\u4eba\u683c\u53ec\u5524", e[e["\u82f1\u96c4\u526f\u672c"] = 511] = "\u82f1\u96c4\u526f\u672c", e[e["\u8fd4\u5229\u62bd\u5956"] = 512] = "\u8fd4\u5229\u62bd\u5956", e[e["\u5355\u9875\u793c\u5305"] = 513] = "\u5355\u9875\u793c\u5305", e[e["\u5151\u6362\u5546\u5e97"] = 514] = "\u5151\u6362\u5546\u5e97", e[e["\u4efb\u52a1\u8fbe\u4eba"] = 515] = "\u4efb\u52a1\u8fbe\u4eba", e[e["\u5145\u503c\u5f15\u5bfc"] = 516] = "\u5145\u503c\u5f15\u5bfc", e[e["\u65e0\u9650\u793c\u5305"] = 517] = "\u65e0\u9650\u793c\u5305", e[e["\u56e4\u8d27\u8282"] = 518] = "\u56e4\u8d27\u8282", e[e["\u81ea\u5b9a\u4e49\u793c\u5305"] = 519] = "\u81ea\u5b9a\u4e49\u793c\u5305", e[e["\u5929\u547d\u661f\u5323"] = 520] = "\u5929\u547d\u661f\u5323", e[e["\u793c\u5305\u62bd\u5956"] = 521] = "\u793c\u5305\u62bd\u5956", e[e["\u5fc3\u7075\u624b\u5de7"] = 522] = "\u5fc3\u7075\u624b\u5de7", e[e["\u79ef\u5206\u5546\u57ce"] = 523] = "\u79ef\u5206\u5546\u57ce", e[e["\u7d2f\u5145\u62bd\u5956"] = 524] = "\u7d2f\u5145\u62bd\u5956", e[e["\u94bb\u77f3\u62bd\u5361"] = 525] = "\u94bb\u77f3\u62bd\u5361", e[e["\u5b9d\u77f3\u953b\u9020\u5c4b\uff08\u4e0d\u53ef\u540c\u65f6\u5171\u5b58\u591a\u671f\uff09"] = 526] = "\u5b9d\u77f3\u953b\u9020\u5c4b\uff08\u4e0d\u53ef\u540c\u65f6\u5171\u5b58\u591a\u671f\uff09", e[e["\u79d8\u5883\u63a2\u9669\u8fdb\u9636\uff08\u4e0d\u53ef\u540c\u65f6\u5171\u5b58\u591a\u671f\uff09"] = 527] = "\u79d8\u5883\u63a2\u9669\u8fdb\u9636\uff08\u4e0d\u53ef\u540c\u65f6\u5171\u5b58\u591a\u671f\uff09", e[e["\u5fc3\u613f\u4e4b\u6811"] = 528] = "\u5fc3\u613f\u4e4b\u6811", e[e["\u4e16\u754cBoss"] = 529] = "\u4e16\u754cBoss", e[e["\u6d3b\u52a8\u6218\u4ee4"] = 530] = "\u6d3b\u52a8\u6218\u4ee4", e[e["\u5168\u6c11\u62fc\u56fe"] = 531] = "\u5168\u6c11\u62fc\u56fe", e[e["\u7d2f\u8d2d\u8d60\u793c"] = 532] = "\u7d2f\u8d2d\u8d60\u793c", e[e["\u7cbe\u9009\u5b9a\u5236\u5468\u5361"] = 534] = "\u7cbe\u9009\u5b9a\u5236\u5468\u5361", e[e["\u5fbd\u7ae0\u6536\u96c6"] = 535] = "\u5fbd\u7ae0\u6536\u96c6", e[e["\u8df3\u8f6c\u5165\u53e3\u6d3b\u52a8\uff08\u65e0\u610f\u4e49\uff0c\u652f\u6301\u914d\u56fe\u548c\u8df3\u8f6c\uff09"] = 536] = "\u8df3\u8f6c\u5165\u53e3\u6d3b\u52a8\uff08\u65e0\u610f\u4e49\uff0c\u652f\u6301\u914d\u56fe\u548c\u8df3\u8f6c\uff09", e[e["\u73a9\u5bb6\u56de\u5f52"] = 537] = "\u73a9\u5bb6\u56de\u5f52", e[e["\u5927\u5bcc\u7fc1"] = 538] = "\u5927\u5bcc\u7fc1", e[e["\u8fde\u7eed\u5145\u503c"] = 539] = "\u8fde\u7eed\u5145\u503c", e[e["\u7b54\u9898\u5927\u8d5b"] = 540] = "\u7b54\u9898\u5927\u8d5b", e[e["\u7231\u5fc3\u4e4b\u7bad"] = 541] = "\u7231\u5fc3\u4e4b\u7bad", e[e["\u6df7\u6c8c\u53ec\u5524"] = 542] = "\u6df7\u6c8c\u53ec\u5524", e[e["\u5267\u60c5\u4efb\u52a1"] = 543] = "\u5267\u60c5\u4efb\u52a1", e[e["\u82f1\u96c4\u5347\u661f\u793c\u5305"] = 544] = "\u82f1\u96c4\u5347\u661f\u793c\u5305", e[e["\u798f\u888b\u6d3b\u52a8"] = 545] = "\u798f\u888b\u6d3b\u52a8", e[e["\u6253\u699c\u6d3b\u52a8"] = 546] = "\u6253\u699c\u6d3b\u52a8", e[e["\u6d3b\u52a8Boss"] = 547] = "\u6d3b\u52a8Boss", e[e["\u82f1\u96c4\u914d\u5957"] = 548] = "\u82f1\u96c4\u914d\u5957", e[e["\u6bcf\u65e5\u7b7e\u5230"] = 549] = "\u6bcf\u65e5\u7b7e\u5230", e[e["\u9884\u70ed\u6d3b\u52a8"] = 550] = "\u9884\u70ed\u6d3b\u52a8", e[e["\u5347\u661f\u6d3b\u52a8"] = 551] = "\u5347\u661f\u6d3b\u52a8", e[e["\u5609\u5e74\u534e\u76ae\u80a4"] = 552] = "\u5609\u5e74\u534e\u76ae\u80a4", e[e["\u901a\u7528\u62bd\u5361"] = 553] = "\u901a\u7528\u62bd\u5361", e[e["\u62bd\u5956\u5b9d\u7bb1"] = 554] = "\u62bd\u5956\u5b9d\u7bb1", e[e["\u5e78\u8fd0\u793c\u5305\uff08\u5956\u52b1\u968f\u673a\u7ffb\u500d\uff09"] = 555] = "\u5e78\u8fd0\u793c\u5305\uff08\u5956\u52b1\u968f\u673a\u7ffb\u500d\uff09", e[e["\u9996\u5145"] = 556] = "\u9996\u5145", e[e["\u5fc3\u613f\u4eba\u683c\u53ec\u5524"] = 557] = "\u5fc3\u613f\u4eba\u683c\u53ec\u5524", e[e["\u65b0\u7248\u7b7e\u5230"] = 558] = "\u65b0\u7248\u7b7e\u5230", e[e["\u53a8\u623f\u5927\u4f5c\u6218"] = 559] = "\u53a8\u623f\u5927\u4f5c\u6218", e[e["\u98de\u5200\u7279\u8bad"] = 560] = "\u98de\u5200\u7279\u8bad", e[e["\u5929\u4f7f\u53ec\u5524"] = 561] = "\u5929\u4f7f\u53ec\u5524", e[e["\u75af\u72c2\u8f6c\u76d8"] = 562] = "\u75af\u72c2\u8f6c\u76d8", e[e["\u7cbe\u9009\u798f\u888b"] = 563] = "\u7cbe\u9009\u798f\u888b", e[e["\u5e9f\u5f03564"] = 564] = "\u5e9f\u5f03564", e[e["\u82f1\u96c4\u8bd5\u70bc\u5854"] = 565] = "\u82f1\u96c4\u8bd5\u70bc\u5854", e[e["\u4e50\u900f"] = 566] = "\u4e50\u900f", e[e["\u5143\u7d20\u7ade\u6280\u573a"] = 567] = "\u5143\u7d20\u7ade\u6280\u573a", e[e["\u8fde\u8d2d\u793c\u5305"] = 568] = "\u8fde\u8d2d\u793c\u5305", e[e["\u65b0\u7248\u7b7e\u52302"] = 569] = "\u65b0\u7248\u7b7e\u52302", e[e["\u79d2\u6740\u793c\u5305"] = 570] = "\u79d2\u6740\u793c\u5305", e[e["\u7eb7\u4e89\u6f14\u6b66"] = 571] = "\u7eb7\u4e89\u6f14\u6b66", e[e["\u7ed8\u9a6c\u7948\u613f"] = 572] = "\u7ed8\u9a6c\u7948\u613f", e[e["\u9b54\u6cd5\u5408\u6210"] = 573] = "\u9b54\u6cd5\u5408\u6210", e[e["\u957f\u8dd1\u7279\u8bad"] = 574] = "\u957f\u8dd1\u7279\u8bad", e[e["\u8d85\u503c\u8c6a\u793c"] = 575] = "\u8d85\u503c\u8c6a\u793c", e[e["\u5145\u503c\u56de\u9988"] = 576] = "\u5145\u503c\u56de\u9988", e[e["\u82f1\u96c4\u5bf9\u51b3"] = 577] = "\u82f1\u96c4\u5bf9\u51b3", e[e["\u822a\u6d77\u5bfb\u5b9d\u4e4b\u65c5"] = 578] = "\u822a\u6d77\u5bfb\u5b9d\u4e4b\u65c5", e[e["\u73b0\u91d1\u5546\u57ce\u6298\u6263"] = 579] = "\u73b0\u91d1\u5546\u57ce\u6298\u6263", e[e["\u522e\u522e\u4e50"] = 580] = "\u522e\u522e\u4e50", e[e["\u5e78\u8fd0\u86cb\u7cd5"] = 581] = "\u5e78\u8fd0\u86cb\u7cd5", e[e["\u9a6c\u620f\u8ff7\u5bab"] = 582] = "\u9a6c\u620f\u8ff7\u5bab", e[e["\u6a2a\u5e45\u8df3\u8f6c"] = 583] = "\u6a2a\u5e45\u8df3\u8f6c", e[e["\u5fcd\u8005\u5c0f\u6e38\u620f"] = 584] = "\u5fcd\u8005\u5c0f\u6e38\u620f", e[e["\u5fc3\u613f\u5929\u4f7f\u53ec\u5524"] = 585] = "\u5fc3\u613f\u5929\u4f7f\u53ec\u5524", e[e["\u5168\u7403\u9526\u6807\u8d5b"] = 586] = "\u5168\u7403\u9526\u6807\u8d5b", e[e["\u75af\u72c2\u6298\u6263"] = 587] = "\u75af\u72c2\u6298\u6263", e[e["\u6572\u897f\u74dc"] = 588] = "\u6572\u897f\u74dc", e[e["\u795e\u7b7e\u964d\u9b54\u796d(\u62bd\u5361\u6253\u602a)"] = 589] = "\u795e\u7b7e\u964d\u9b54\u796d(\u62bd\u5361\u6253\u602a)", e[e["\u9650\u65f6\u51b2\u699c\u6846\u67b6"] = 590] = "\u9650\u65f6\u51b2\u699c\u6846\u67b6", e[e["\u9650\u65f6\u51b2\u699c"] = 591] = "\u9650\u65f6\u51b2\u699c", e[e["\u65b0\u624b\u9635\u5bb9\u793c\u5305"] = 592] = "\u65b0\u624b\u9635\u5bb9\u793c\u5305", e[e["\u5168\u7403\u7a81\u56f4\u8d5b"] = 593] = "\u5168\u7403\u7a81\u56f4\u8d5b", e[e["\u683c\u6597\u5c0f\u6e38\u620f(\u6076\u9b54\u6218\u58eb\u8054\u52a8)"] = 594] = "\u683c\u6597\u5c0f\u6e38\u620f(\u6076\u9b54\u6218\u58eb\u8054\u52a8)", e[e["\u8d60\u9001\u5168\u90e8\u82f1\u96c4(\u6309\u5929\u6570)"] = 595] = "\u8d60\u9001\u5168\u90e8\u82f1\u96c4(\u6309\u5929\u6570)", e[e["\u8d85\u7ea7\u9526\u9ca4"] = 596] = "\u8d85\u7ea7\u9526\u9ca4", e[e["\u5546\u6218"] = 597] = "\u5546\u6218", e[e["\u706b\u7bad\u5c0f\u6e38\u620f"] = 598] = "\u706b\u7bad\u5c0f\u6e38\u620f", e[e["\u65b0\u624b\u8bd5\u70bc"] = 599] = "\u65b0\u624b\u8bd5\u70bc", e[e["2048\u5c0f\u6e38\u620f"] = 600] = "2048\u5c0f\u6e38\u620f", e[e["\u5168\u6c11\u51b2\u51b2\u51b2"] = 601] = "\u5168\u6c11\u51b2\u51b2\u51b2", e[e["\u68a6\u5e7b\u7267\u573a"] = 602] = "\u68a6\u5e7b\u7267\u573a", e[e["\u5168\u6c11\u7ffb\u7ffb\u4e50"] = 603] = "\u5168\u6c11\u7ffb\u7ffb\u4e50", e[e["\u780d\u4ef7\u793c\u5305"] = 604] = "\u780d\u4ef7\u793c\u5305", e[e["\u65b0\u4eba\u683c\u62bd\u5361"] = 605] = "\u65b0\u4eba\u683c\u62bd\u5361", e[e["\u8d5b\u5b63\u8fdc\u5f81"] = 606] = "\u8d5b\u5b63\u8fdc\u5f81", e[e["\u8d44\u6e90\u4e89\u593a\u6218"] = 607] = "\u8d44\u6e90\u4e89\u593a\u6218", e[e["\u9b54\u7269\u8ba8\u4f10\u6218"] = 608] = "\u9b54\u7269\u8ba8\u4f10\u6218", e[e["\u5168\u65b0\u6218\u4ee4"] = 609] = "\u5168\u65b0\u6218\u4ee4", e[e["\u8282\u594f\u5c0f\u6e38\u620f"] = 610] = "\u8282\u594f\u5c0f\u6e38\u620f", e[e["\u75af\u72c2\u76f2\u76d2"] = 611] = "\u75af\u72c2\u76f2\u76d2", e[e["\u5929\u4f7f\u724c"] = 612] = "\u5929\u4f7f\u724c", e[e["\u5168\u6c11\u798f\u5229"] = 614] = "\u5168\u6c11\u798f\u5229", e[e["\u5b58\u94b1\u7f50"] = 615] = "\u5b58\u94b1\u7f50", e[e["\u753b\u7b26\u5c0f\u6e38\u620f"] = 616] = "\u753b\u7b26\u5c0f\u6e38\u620f", e[e["\u6392\u884c\u6d3b\u52a8"] = 617] = "\u6392\u884c\u6d3b\u52a8", e[e["\u591a\u91cd\u8c6a\u793c"] = 618] = "\u591a\u91cd\u8c6a\u793c", e[e["\u5c04\u7bad\u5c0f\u6e38\u620f"] = 619] = "\u5c04\u7bad\u5c0f\u6e38\u620f", e[e["\u8fde\u8d2d\u793c\u5305\uff08\u9b54\u738b\u79fb\u690d\uff09"] = 620] = "\u8fde\u8d2d\u793c\u5305\uff08\u9b54\u738b\u79fb\u690d\uff09", e[e["\u516c\u4f1a\u5546\u4eba"] = 621] = "\u516c\u4f1a\u5546\u4eba", e[e["\u670d\u88c5\u7834\u574f"] = 622] = "\u670d\u88c5\u7834\u574f", e[e["8\u65e5\u7b7e\u5230"] = 623] = "8\u65e5\u7b7e\u5230", e[e["\u516c\u4f1a\u8ff7\u5bab"] = 624] = "\u516c\u4f1a\u8ff7\u5bab", e[e["\u5f00\u542f\u5b9d\u7bb1"] = 625] = "\u5f00\u542f\u5b9d\u7bb1", e[e["\u661f\u8c61\u7948\u613f"] = 626] = "\u661f\u8c61\u7948\u613f", e[e["\u5f3a\u88ad\u4f5c\u6218"] = 627] = "\u5f3a\u88ad\u4f5c\u6218", e[e["\u5e78\u8fd0\u62bd\u5956"] = 628] = "\u5e78\u8fd0\u62bd\u5956", e[e["\u8282\u65e5\u4efb\u52a1\u6218\u4ee4"] = 629] = "\u8282\u65e5\u4efb\u52a1\u6218\u4ee4", e[e["\u5f00\u7bb1\u4e8c\u9009\u4e00"] = 630] = "\u5f00\u7bb1\u4e8c\u9009\u4e00", e[e["\u6d3b\u52a8\u516c\u544a"] = 1001] = "\u6d3b\u52a8\u516c\u544a", e[e["\u83b7\u53d6\u9014\u5f84"] = 1002] = "\u83b7\u53d6\u9014\u5f84"
            }(n.ActivityTypeName || (n.ActivityTypeName = {})),
            function(e) {
                e[e.Field = 1] = "Field", e[e.FieldLocale = 2] = "FieldLocale", e[e.Rank = 99] = "Rank"
            }(i = n.SettleActivityType || (n.SettleActivityType = {})), n.SettleActivity = ((o = {})[r.AllUserImpactRank] = {
                title: "all_user_impact_rank_settlement_rewards_title",
                content: "all_user_impact_rank_settlement_rewards_content"
            }, o[r.ElementTest] = {
                title: "element_test_settlement_rewards_title",
                content: "element_test_settlement_rewards_content"
            }, o[r.PersonalitySummon] = {
                title: "personality_summon_settlement_rewards_title",
                content: "personality_summon_settlement_rewards_content"
            }, o[r.HeroDungeon] = {
                title: "hero_dungeon_settlement_rewards_title",
                content: "hero_dungeon_settlement_rewards_content"
            }, o[r.WorldBoss] = {
                title: "world_boss_zone_rewards_title",
                content: "world_boss_zone_rewards_content"
            }, o[r.ChaosSummon] = {
                title: "chaos_summon_rank_reward_title",
                content: "chaos_summon_rank_reward_content"
            }, o[r.ActivityBoss] = {
                title: "activity_boss_rank_reward_title",
                content: "activity_boss_rank_reward_content"
            }, o[r.SupportHero] = {
                title: "support_hero_rank_reward_win_title",
                content: "support_hero_rank_reward_win_content"
            }, o[r.KnifeTraining] = {
                title: "knife_training_rank_reward_win_title",
                content: "knife_training_rank_reward_win_content"
            }, o[r.HeroTestTower] = {
                title: "hero_test_tower_rank_reward_title",
                content: "hero_test_tower_rank_reward_content"
            }, o[r.RunningTrain] = {
                title: "running_train_rank_reward_title",
                content: "running_train_rank_reward_content"
            }, o[r.HeroPK] = {
                title: "hero_pk_rank_reward_title",
                content: "hero_pk_rank_reward_content"
            }, o[r.Championship] = {
                title: "act_championship_rank_title",
                content: "act_championship_rank_content"
            }, o[r.LimitTimeImpactRank] = {
                title: "limit_time_impact_rank_title",
                content: "limit_time_impact_rank_content"
            }, o[r.Game2048] = {
                title: "act_game2048_rank_title",
                content: "act_game2048_rank_content"
            }, o[r.FantasticPasture] = {
                title: "act_fantasticpasture_rank_title",
                content: "act_fantasticpasture_rank_content"
            }, o[r.TradeWar] = {
                title: "",
                content: ""
            }, o[r.BossHunt] = {
                title: "",
                content: ""
            }, o[r.SingleRank] = {
                title: "act_single_rank_title",
                content: "act_single_rank_content",
                titleParams: [
                    [i.FieldLocale, "Common.Title"]
                ],
                contentParams: [
                    [i.FieldLocale, "Common.Title"],
                    [i.Rank, ""]
                ]
            }, o[r.AllianceMaze] = {
                title: "",
                content: ""
            }, o),
            function(e) {
                e[e.Demo = 1] = "Demo", e[e.Official = 2] = "Official", e[e.PartGame = 3] = "PartGame"
            }(n.HappyTurnType || (n.HappyTurnType = {})),
            function(e) {
                e[e.Login = 0] = "Login", e[e.PlayerLevelUp = 1] = "PlayerLevelUp", e[e.BattleWin = 2] = "BattleWin", e[e.BattleLose = 3] = "BattleLose", e[e.GetCoreHero = 4] = "GetCoreHero", e[e.Recharge = 5] = "Recharge", e[e.FavorUpgrade = 999] = "FavorUpgrade"
            }(n.RandomAudioType || (n.RandomAudioType = {})),
            function(e) {
                e[e.SNS = 1] = "SNS", e[e.Twitter = 2] = "Twitter", e[e.Line = 3] = "Line"
            }(n.OuterRewardType || (n.OuterRewardType = {})),
            function(e) {
                e[e.Zone = 1] = "Zone", e[e.Alliance = 2] = "Alliance", e[e.CrossZone = 3] = "CrossZone"
            }(n.WorldBossType || (n.WorldBossType = {})),
            function(e) {
                e[e.Hero = 1] = "Hero", e[e.ElementType = 2] = "ElementType"
            }(n.HeroBonusType || (n.HeroBonusType = {})),
            function(e) {
                e[e.Hero = 1] = "Hero", e[e.monster = 2] = "monster", e[e.Boss = 3] = "Boss"
            }(n.HeroRoleType || (n.HeroRoleType = {})),
            function(e) {
                e[e.Main = 1] = "Main", e[e.Raid = 2] = "Raid", e[e.Beat = 3] = "Beat"
            }(n.AllianceChallengeType || (n.AllianceChallengeType = {})),
            function(e) {
                e[e.Reward = 1] = "Reward", e[e.ForkReward = 2] = "ForkReward", e[e.Origin = 3] = "Origin", e[e.Fork = 4] = "Fork"
            }(n.MonopolyGridType || (n.MonopolyGridType = {})),
            function(e) {
                e[e.Location = 1] = "Location", e[e.RandomLocation = 2] = "RandomLocation", e[e.Random = 3] = "Random"
            }(n.SecretPutType || (n.SecretPutType = {}));
        var a = function() {
            function e() {}
            return e.MazeExploreSummon = 23, e.ActHeroDungeonRank = 100, e.TempAllianceChallengeTs = 16616988e5, e.MapPowerLevelTs = 16637436e5, e.NewSettleActId = 2123, e.ActHeroTestTowerTime = 1e7, e.WarFirstSeason = 17209692e5, e.StartHour = 2, e.PermanentPrivilegeTime = 17258076e5, e
        }();
        n.SpecialDataKey = a,
            function(e) {
                e[e.Normal = 0] = "Normal", e[e.Core = 1] = "Core", e[e.SP = 2] = "SP", e[e.UR = 3] = "UR", e[e.LR = 4] = "LR", e[e.None = 5] = "None"
            }(n.CoreHeroTag || (n.CoreHeroTag = {})),
            function(e) {
                e[e.Preparation = 1] = "Preparation", e[e.Answer = 2] = "Answer", e[e.End = 3] = "End"
            }(n.RoomStatus || (n.RoomStatus = {})),
            function(e) {
                e[e.False = 0] = "False", e[e.True = 1] = "True", e[e.NotAnswer = 2] = "NotAnswer", e[e.NotReceived = 3] = "NotReceived"
            }(n.AnswerType || (n.AnswerType = {})),
            function(e) {
                e[e.Personal = 0] = "Personal", e[e.Hero = 1] = "Hero", e[e.Scene = 2] = "Scene", e[e.Angel = 3] = "Angel", e[e.NewPersonality = 4] = "NewPersonality", e[e.None = 5] = "None"
            }(n.CustomizeMainSceneType || (n.CustomizeMainSceneType = {})),
            function(e) {
                e[e.SecretArea = 1] = "SecretArea", e[e.ActSecretArea = 2] = "ActSecretArea"
            }(n.MapPowerLevelType || (n.MapPowerLevelType = {})),
            function(e) {
                e[e.AdventureQuickBattle = 1] = "AdventureQuickBattle", e[e.DailyInstanceQuickBattle = 2] = "DailyInstanceQuickBattle", e[e.AdventureReceiveHangUpReward = 3] = "AdventureReceiveHangUpReward", e[e.GiveAndReceiveGifts = 4] = "GiveAndReceiveGifts", e[e.Intelligence = 5] = "Intelligence", e[e.AdventureAutoBattle = 6] = "AdventureAutoBattle", e[e.TestTowerRewards = 7] = "TestTowerRewards", e[e.CityWarKillRewards = 8] = "CityWarKillRewards", e[e.CityWarAllianceRewards = 9] = "CityWarAllianceRewards", e[e.CityWarTaskRewards = 10] = "CityWarTaskRewards", e[e.CityWarBattlePoint = 11] = "CityWarBattlePoint", e[e.CityWarDailyRewards = 12] = "CityWarDailyRewards", e[e.CityWarHang = 13] = "CityWarHang", e[e.CrossZoneContinueWarRank = 1001] = "CrossZoneContinueWarRank", e[e.CrossZoneRank = 1002] = "CrossZoneRank", e[e.GodLandDuel = 1003] = "GodLandDuel", e[e.TestTowerChallenge = 1031] = "TestTowerChallenge", e[e.TowerHeartChallenge = 1032] = "TowerHeartChallenge", e[e.TowerPowerChallenge = 1033] = "TowerPowerChallenge", e[e.TowerTechChallenge = 1034] = "TowerTechChallenge", e[e.TowerBreakChallenge = 1035] = "TowerBreakChallenge", e[e.TowerFightChallenge = 1036] = "TowerFightChallenge", e[e.EndlessAbyssSingle = 1041] = "EndlessAbyssSingle", e[e.EndlessAbyssMulti = 1042] = "EndlessAbyssMulti", e[e.AllianceTest = 1051] = "AllianceTest", e[e.ArtefactRelicBuyCount = 1061] = "ArtefactRelicBuyCount", e[e.ArtefactRelicWater = 1062] = "ArtefactRelicWater", e[e.ArtefactRelicFire = 1063] = "ArtefactRelicFire", e[e.ArtefactRelicWind = 1064] = "ArtefactRelicWind", e[e.ArtefactRelicLight = 1065] = "ArtefactRelicLight", e[e.ArtefactRelicDark = 1066] = "ArtefactRelicDark", e[e.ArtefactRelicChaos = 1067] = "ArtefactRelicChaos", e[e.SecretAreaExplore = 1071] = "SecretAreaExplore", e[e.HolyArea = 1072] = "HolyArea", e[e.StarLightSecret = 1073] = "StarLightSecret", e[e.SaintsWar = 1074] = "SaintsWar", e[e.RelicTreasureHunt = 2001] = "RelicTreasureHunt"
            }(n.HelperOperationType || (n.HelperOperationType = {})),
            function(e) {
                e[e.Frozen = 214] = "Frozen", e[e.SlowDown = 215] = "SlowDown", e[e.AddArrow = 216] = "AddArrow", e[e.ContinuousShooting = 217] = "ContinuousShooting"
            }(n.LoverArrowConsumeType || (n.LoverArrowConsumeType = {})),
            function(e) {
                e[e.Forest = 1] = "Forest", e[e.Desert = 2] = "Desert", e[e.Tomb = 3] = "Tomb", e[e.None = 4] = "None"
            }(n.SaintsWarType || (n.SaintsWarType = {})),
            function(e) {
                e[e.Visitor = 0] = "Visitor", e[e.Google = 1] = "Google", e[e.Normal = 2] = "Normal", e[e.Devepment = 99] = "Devepment"
            }(n.EZUserAccountType || (n.EZUserAccountType = {})),
            function(e) {
                e[e.JuniorAndSeniorSummon = 0] = "JuniorAndSeniorSummon", e[e.NormalAndAdvanceTreasureHunt = 1] = "NormalAndAdvanceTreasureHunt", e[e.CloudTreasureHuntSkip = 2] = "CloudTreasureHuntSkip", e[e.WorldBoss = 3] = "WorldBoss", e[e.WorldBossForAlliance = 4] = "WorldBossForAlliance", e[e.CrossZoneContinueWar = 5] = "CrossZoneContinueWar", e[e.ChampionShipGuidTip = 6] = "ChampionShipGuidTip", e[e.BattlePlaySpeed = 7] = "BattlePlaySpeed", e[e.InfiniteTenSummon = 8] = "InfiniteTenSummon", e[e.ManualBox = 9] = "ManualBox", e[e.CrazyWheel = 10] = "CrazyWheel", e[e.LuckyCharm = 11] = "LuckyCharm", e[e.BattleSkillEffect = 12] = "BattleSkillEffect", e[e.MainUISimplifyMode = 13] = "MainUISimplifyMode", e[e.LuckyCharmSelect = 14] = "LuckyCharmSelect", e[e.AutoBuyElementTowerChallengeCount = 15] = "AutoBuyElementTowerChallengeCount", e[e.Length = 16] = "Length"
            }(n.FunctionSkipKey || (n.FunctionSkipKey = {})),
            function(e) {
                e[e.ElementTower = 1] = "ElementTower"
            }(n.CommonBuyCountType || (n.CommonBuyCountType = {})),
            function(e) {
                e[e.AngelPveProgress = 7] = "AngelPveProgress", e[e.SaintsWar = 100] = "SaintsWar", e[e.CurrencyUsedCount = 102] = "CurrencyUsedCount"
            }(n.ShopItemBuyLimitType || (n.ShopItemBuyLimitType = {})),
            function(e) {
                e[e.MustUseElementCount = 1] = "MustUseElementCount", e[e.CannotUseElement = 2] = "CannotUseElement", e[e.CannotUseElementCount = 3] = "CannotUseElementCount"
            }(n.FormationConditionType || (n.FormationConditionType = {})),
            function(e) {
                e[e.Free = 0] = "Free", e[e.InBattle = 1] = "InBattle", e[e.FreeFromWar = 2] = "FreeFromWar"
            }(n.StrongholdState || (n.StrongholdState = {})),
            function(e) {
                e[e.PlayerLevel = 1] = "PlayerLevel", e[e.HighestPower = 2] = "HighestPower", e[e.TestTower = 3] = "TestTower"
            }(n.DesignationRequirementType || (n.DesignationRequirementType = {})),
            function(e) {
                e[e.PVE = 1] = "PVE", e[e.PVP = 2] = "PVP"
            }(n.HeroTalentType || (n.HeroTalentType = {})),
            function(e) {
                e[e.Designation = 1] = "Designation", e[e.OpenDays = 2] = "OpenDays"
            }(n.DukeRequirementType || (n.DukeRequirementType = {})),
            function(e) {
                e[e.Art = 1] = "Art", e[e.Culture = 2] = "Culture", e[e.Practical = 3] = "Practical"
            }(n.TreasureHouseAttr || (n.TreasureHouseAttr = {})),
            function(e) {
                e[e.Entry = 1] = "Entry", e[e.EditTeamEntry = 2] = "EditTeamEntry", e[e.EditTeamButton = 3] = "EditTeamButton", e[e.OnFormationUpButton = 4] = "OnFormationUpButton", e[e.SaveFormationButton = 6] = "SaveFormationButton", e[e.CityButton = 5] = "CityButton"
            }(n.StrongholdWarGuideArray || (n.StrongholdWarGuideArray = {})),
            function(e) {
                e[e.DefenseCity = 0] = "DefenseCity", e[e.AttackTarget = 1] = "AttackTarget", e[e.AttackAdjacent = 2] = "AttackAdjacent", e[e.LessDefense = 3] = "LessDefense", e[e.None = 4] = "None"
            }(n.StrongholdWarHangSettingIndex || (n.StrongholdWarHangSettingIndex = {})),
            function(e) {
                e[e.ElementType = 1] = "ElementType", e[e.Career = 2] = "Career"
            }(n.StarGarrisonType || (n.StarGarrisonType = {})),
            function(e) {
                e[e.UseItem = 1] = "UseItem"
            }(n.StarGarrisonSlotConditionType || (n.StarGarrisonSlotConditionType = {})),
            function(e) {
                e[e.Senior = 1] = "Senior", e[e.Personality = 2] = "Personality", e[e.Daily = 3] = "Daily"
            }(n.ProgressRewardsType || (n.ProgressRewardsType = {})),
            function(e) {
                e[e.Level = 1] = "Level", e[e.Resonance = 2] = "Resonance"
            }(n.ChaosTempleType || (n.ChaosTempleType = {})),
            function(e) {
                e[e.Zone = 0] = "Zone", e[e.Group = 1] = "Group", e[e.Region = 2] = "Region", e[e.AllZone = 3] = "AllZone"
            }(n.RankRange || (n.RankRange = {})),
            function(e) {
                e[e.ScoreProp = 1] = "ScoreProp", e[e.SectorPlate = 2] = "SectorPlate"
            }(n.KnifeTrainingPropType || (n.KnifeTrainingPropType = {})),
            function(e) {
                e[e.Full = 1] = "Full", e[e.Score = 2] = "Score", e[e.GroupScore = 3] = "GroupScore"
            }(n.ParanormalPuzzleUnlockType || (n.ParanormalPuzzleUnlockType = {})),
            function(e) {
                e[e.Score = 1] = "Score", e[e.Full = 2] = "Full", e[e.FullAndScore = 3] = "FullAndScore"
            }(n.ParanormalPuzzleAttrType || (n.ParanormalPuzzleAttrType = {})),
            function(e) {
                e[e.ClockIn = 1] = "ClockIn", e[e.DailyRewards = 2] = "DailyRewards", e[e.LoginRewards = 3] = "LoginRewards", e[e.GiftPack = 4] = "GiftPack"
            }(n.OldPlayerRecallType || (n.OldPlayerRecallType = {})),
            function(e) {
                e[e.Star = 1] = "Star", e[e.Quality = 2] = "Quality"
            }(n.ArtefactUpgradeStarType || (n.ArtefactUpgradeStarType = {})),
            function(e) {
                e[e.Attack = 1] = "Attack", e[e.Hp = 2] = "Hp", e[e.Speed = 3] = "Speed"
            }(n.ArtefactForgeType || (n.ArtefactForgeType = {})),
            function(e) {
                e[e.Equip = 0] = "Equip", e[e.HolyEquip = 1] = "HolyEquip", e[e.LuckyCharm = 2] = "LuckyCharm", e[e.PowerCore = 3] = "PowerCore", e[e.Gem = 4] = "Gem", e[e.Pet = 5] = "Pet", e[e.MagicCircle = 6] = "MagicCircle"
            }(n.ArtefactRelicEquipIndex || (n.ArtefactRelicEquipIndex = {})),
            function(e) {
                e[e.ArtefactRelic = 0] = "ArtefactRelic", e[e.ElementArena = 1001] = "ElementArena"
            }(n.StandaloneEquipType || (n.StandaloneEquipType = {})),
            function(e) {
                e[e.Replace = 1] = "Replace", e[e.Swap = 2] = "Swap", e[e.Sort = 3] = "Sort"
            }(n.ArtefactRelicEquipType || (n.ArtefactRelicEquipType = {})),
            function(e) {
                e[e.HeroId = 1] = "HeroId", e[e.Element = 2] = "Element", e[e.SumStar = 3] = "SumStar"
            }(n.ArtefactRelicConditionType || (n.ArtefactRelicConditionType = {})),
            function(e) {
                e[e.Hero = 1] = "Hero", e[e.Resonance = 2] = "Resonance"
            }(n.ElementTempleUpgradeLevelType || (n.ElementTempleUpgradeLevelType = {})),
            function(e) {
                e[e.Hero = 1] = "Hero", e[e.Personality = 2] = "Personality", e[e.ExclusiveWeapon = 3] = "ExclusiveWeapon", e[e.None = 4] = "None"
            }(n.HeroDataType || (n.HeroDataType = {})),
            function(e) {
                e[e.Original = 1] = "Original", e[e.Coupon = 2] = "Coupon"
            }(n.CouponPackType || (n.CouponPackType = {})),
            function(e) {
                e[e.CrossChampionRace = 5] = "CrossChampionRace", e[e.AllZoneChampionRace = 6] = "AllZoneChampionRace", e[e.None = 7] = "None"
            }(n.ForecastType || (n.ForecastType = {})),
            function(e) {
                e[e.WinUid = 1] = "WinUid", e[e.HeroAppearanceRate = 2] = "HeroAppearanceRate", e[e.HeroDamage = 3] = "HeroDamage", e[e.HeroTakeDamage = 4] = "HeroTakeDamage", e[e.HeroHeal = 5] = "HeroHeal", e[e.None = 6] = "None"
            }(n.ForecastContentType || (n.ForecastContentType = {})),
            function(e) {
                e[e.NoumenonShard = 1] = "NoumenonShard"
            }(n.UpdateHeroSkinItemType || (n.UpdateHeroSkinItemType = {})),
            function(e) {
                e[e.Career = 1] = "Career", e[e.Element = 2] = "Element", e[e.Enhanced = 101] = "Enhanced"
            }(n.LuckyCharmStarAttr2Type || (n.LuckyCharmStarAttr2Type = {})),
            function(e) {
                e[e.Star = 1] = "Star", e[e.Step = 2] = "Step"
            }(n.HolyEquipmentState || (n.HolyEquipmentState = {})),
            function(e) {
                e[e.CashMall = 1] = "CashMall"
            }(n.PacksOrderId || (n.PacksOrderId = {})),
            function(e) {
                e[e.Change = 1] = "Change", e[e.Reduce = 2] = "Reduce", e[e.Discount = 3] = "Discount"
            }(n.TicketSubType || (n.TicketSubType = {})),
            function(e) {
                e[e.SumCount = 1] = "SumCount", e[e.Vip = 2] = "Vip"
            }(n.TicketConditionType || (n.TicketConditionType = {})),
            function(e) {
                e[e.AddMeters = 1] = "AddMeters"
            }(n.RunningTrainItemConsumeType || (n.RunningTrainItemConsumeType = {})),
            function(e) {
                e[e.EmbattleLevel = 1] = "EmbattleLevel", e[e.EmbattleSkillLevel = 2] = "EmbattleSkillLevel"
            }(n.StarEmbattleUnlockType || (n.StarEmbattleUnlockType = {})),
            function(e) {
                e[e.Power = 1] = "Power"
            }(n.AllZoneRankType || (n.AllZoneRankType = {})),
            function(e) {
                e[e.Special = 0] = "Special", e[e.Group = 100] = "Group", e[e.AllZone = 300] = "AllZone"
            }(n.RankType || (n.RankType = {})),
            function(e) {
                e[e.HeartHardTower = 101] = "HeartHardTower", e[e.PowerHardTower = 102] = "PowerHardTower", e[e.TechHardTower = 103] = "TechHardTower", e[e.BreakHardTower = 104] = "BreakHardTower", e[e.FightHardTower = 105] = "FightHardTower", e[e.MainHardTower = 199] = "MainHardTower"
            }(n.HardTestTowerTypeId || (n.HardTestTowerTypeId = {})),
            function(e) {
                e[e.Gate_ATM = 1] = "Gate_ATM", e[e.CC_VT = 2] = "CC_VT", e[e.CC_Vina = 3] = "CC_Vina", e[e.CC_Mobi = 4] = "CC_Mobi", e[e.CC_GTE = 5] = "CC_GTE", e[e.Gate_Credit = 6] = "Gate_Credit", e[e.Gate_QRCode = 7] = "Gate_QRCode"
            }(n.VnPayMethods || (n.VnPayMethods = {})),
            function(e) {
                e[e.Rewards = 1] = "Rewards", e[e.Empty = 2] = "Empty", e[e.Game = 3] = "Game", e[e.Double = 4] = "Double", e[e.Random = 5] = "Random", e[e.Key = 6] = "Key"
            }(n.CircusMazeEventType || (n.CircusMazeEventType = {})),
            function(e) {
                e[e.Knife = 1] = "Knife", e[e.PickFood = 2] = "PickFood", e[e.Fly = 3] = "Fly"
            }(n.CircusMazeGameType || (n.CircusMazeGameType = {})),
            function(e) {
                e[e.JumpWebsite = 1] = "JumpWebsite", e[e.JumpGift = 2] = "JumpGift"
            }(n.BannerCampaignType || (n.BannerCampaignType = {})),
            function(e) {
                e[e.Small = 1] = "Small", e[e.Medium = 2] = "Medium", e[e.Large = 3] = "Large", e[e.Headquarter = 4] = "Headquarter", e[e.HolyCity = 5] = "HolyCity"
            }(n.WarCityType || (n.WarCityType = {})),
            function(e) {
                e[e.Free = 0] = "Free", e[e.Battle = 1] = "Battle", e[e.Truce = 2] = "Truce"
            }(n.WarCityStatus || (n.WarCityStatus = {})),
            function(e) {
                e[e.Damage = 0] = "Damage", e[e.AtkKills = 1] = "AtkKills", e[e.DfdKills = 2] = "DfdKills", e[e.Attack = 3] = "Attack", e[e.Defend = 4] = "Defend", e[e.AllianceCitys = 5] = "AllianceCitys", e[e.None = 6] = "None"
            }(n.WarTaskIndex || (n.WarTaskIndex = {})),
            function(e) {
                e[e.Defend = 0] = "Defend", e[e.FocusFire = 1] = "FocusFire", e[e.Adjacent = 2] = "Adjacent", e[e.None = 3] = "None"
            }(n.WarHangUpIndex || (n.WarHangUpIndex = {})),
            function(e) {
                e[e.Free = 0] = "Free", e[e.Battle = 1] = "Battle", e[e.Death = 2] = "Death"
            }(n.WarHeroStatus || (n.WarHeroStatus = {})),
            function(e) {
                e[e.Occupy = 1] = "Occupy", e[e.Attacked = 2] = "Attacked"
            }(n.WarNoticeType || (n.WarNoticeType = {})),
            function(e) {
                e[e.Enter = 1] = "Enter", e[e.Leave = 2] = "Leave", e[e.SetFormations = 3] = "SetFormations", e[e.FocusFire = 4] = "FocusFire", e[e.GetBattle = 5] = "GetBattle", e[e.EnterCity = 6] = "EnterCity", e[e.Join = 7] = "Join", e[e.Revive = 8] = "Revive", e[e.Retreat = 9] = "Retreat", e[e.HangUp = 10] = "HangUp", e[e.StopHangUp = 11] = "StopHangUp", e[e.UpdateSetting = 12] = "UpdateSetting", e[e.GetUInfo = 13] = "GetUInfo", e[e.GetReports = 14] = "GetReports", e[e.GetARewards = 15] = "GetARewards", e[e.GetPointRewards = 16] = "GetPointRewards", e[e.GetReserveList = 17] = "GetReserveList", e[e.GetDRewards = 18] = "GetDRewards", e[e.KickOut = 101] = "KickOut", e[e.Reset = 102] = "Reset", e[e.UpdateConfig = 103] = "UpdateConfig", e[e.Settle = 104] = "Settle", e[e.SettleAndSeason = 105] = "SettleAndSeason", e[e.RedDot = 106] = "RedDot", e[e.OnlineCount = 107] = "OnlineCount", e[e.ErrorHero = 108] = "ErrorHero"
            }(n.WarActionType || (n.WarActionType = {})),
            function(e) {
                e[e.Once = 1] = "Once", e[e.Round = 2] = "Round"
            }(n.ActivityForecastIdType || (n.ActivityForecastIdType = {})),
            function(e) {
                e[e.Star = 1] = "Star", e[e.Level = 2] = "Level"
            }(n.HeroUnlockConditionType || (n.HeroUnlockConditionType = {})),
            function(e) {
                e[e.HighestMission = 0] = "HighestMission", e[e.CurrentMission = 1] = "CurrentMission", e[e.DrawCardCount = 2] = "DrawCardCount", e[e.HpIndex = 3] = "HpIndex", e[e.HpValue = 4] = "HpValue", e[e.RefreshCount = 5] = "RefreshCount", e[e.RemoveCount = 6] = "RemoveCount", e[e.EndlessScore = 7] = "EndlessScore"
            }(n.DrawCardFightIntArrayType || (n.DrawCardFightIntArrayType = {})),
            function(e) {
                e[e.Power = 1] = "Power", e[e.GetHero = 2] = "GetHero", e[e.CostItem = 3] = "CostItem", e[e.HighestPower = 4] = "HighestPower", e[e.TestTower = 5] = "TestTower"
            }(n.LimitTimeImpactRankType || (n.LimitTimeImpactRankType = {})),
            function(e) {
                e[e.Normal = 1] = "Normal", e[e.Middle = 2] = "Middle", e[e.High = 3] = "High", e[e.SP = 4] = "SP", e[e.UR = 5] = "UR", e[e.LR = 6] = "LR"
            }(n.HeroShowGrading || (n.HeroShowGrading = {})),
            function(e) {
                e[e.Match = 1] = "Match", e[e.RoundStart = 2] = "RoundStart", e[e.RoundEnd = 3] = "RoundEnd", e[e.Result = 4] = "Result", e[e.ActivityEnd = 99] = "ActivityEnd"
            }(n.FightingMiniGameRoomType || (n.FightingMiniGameRoomType = {})),
            function(e) {
                e[e.Damage = 0] = "Damage", e[e.DamageReduction = 1] = "DamageReduction", e[e.AddMp = 2] = "AddMp"
            }(n.FightingMiniGameCommandSubIndex || (n.FightingMiniGameCommandSubIndex = {})),
            function(e) {
                e[e.ChaosSummon = 0] = "ChaosSummon", e[e.MoonTemple = 1] = "MoonTemple", e[e.LadderRace = 2] = "LadderRace", e[e.Activity = 3] = "Activity", e[e.ChampionRace = 4] = "ChampionRace"
            }(n.PushMessageEventIndex || (n.PushMessageEventIndex = {})),
            function(e) {
                e[e.Left = 1] = "Left", e[e.Right = 2] = "Right", e[e.Up = 3] = "Up", e[e.Down = 4] = "Down"
            }(n.Game2048MoveType || (n.Game2048MoveType = {})),
            function(e) {
                e[e.RemoveOne = 1] = "RemoveOne", e[e.Exchange = 2] = "Exchange", e[e.UpgradeOne = 3] = "UpgradeOne", e[e.Rearrange = 4] = "Rearrange", e[e.AddEnergy = 5] = "AddEnergy"
            }(n.Game2048UseItemType || (n.Game2048UseItemType = {})),
            function(e) {
                e[e.Decompose = 1] = "Decompose", e[e.DecomposeAll = 2] = "DecomposeAll", e[e.Recover = 3] = "Recover", e[e.Convert = 4] = "Convert"
            }(n.FantasticPastureItemEffect || (n.FantasticPastureItemEffect = {})),
            function(e) {
                e[e.Eliminate = 1] = "Eliminate", e[e.Treasure = 2] = "Treasure"
            }(n.FantasticPastureObjectEffect || (n.FantasticPastureObjectEffect = {})),
            function(e) {
                e[e.Delivery = 1] = "Delivery", e[e.Leave = 2] = "Leave"
            }(n.RuinsWarPlayerActionType || (n.RuinsWarPlayerActionType = {})),
            function(e) {
                e[e.Move = 0] = "Move", e[e.Attack = 1] = "Attack", e[e.CritChance = 2] = "CritChance", e[e.Block = 3] = "Block", e[e.AttackAddHp = 4] = "AttackAddHp", e[e.Dead = 99] = "Dead"
            }(n.RuinsWarPlayerBattleType || (n.RuinsWarPlayerBattleType = {})),
            function(e) {
                e[e.CritChance = 1] = "CritChance", e[e.AttackAddHp = 2] = "AttackAddHp", e[e.AttackSpeed = 3] = "AttackSpeed", e[e.Block = 4] = "Block", e[e.Hp = 100] = "Hp", e[e.Attack = 101] = "Attack", e[e.Defend = 102] = "Defend"
            }(n.RuinsWarAttrType || (n.RuinsWarAttrType = {})),
            function(e) {
                e[e.StrongPoint1 = 1] = "StrongPoint1", e[e.StrongPoint2 = 2] = "StrongPoint2", e[e.StrongPoint3 = 3] = "StrongPoint3", e[e.Headquarters = 99] = "Headquarters"
            }(n.RuinsWarStrongPointType || (n.RuinsWarStrongPointType = {})),
            function(e) {
                e[e.Continuekill = 1] = "Continuekill", e[e.OccupyStrongPointCount = 2] = "OccupyStrongPointCount", e[e.AllianceOccupyStrongPoint = 3] = "AllianceOccupyStrongPoint", e[e.OneStepAway = 4] = "OneStepAway"
            }(n.RuinsWarNoticeType || (n.RuinsWarNoticeType = {})),
            function(e) {
                e[e.NotJoin = 1] = "NotJoin", e[e.Join = 2] = "Join", e[e.Settle = 3] = "Settle"
            }(n.RuinsWarAllianceState || (n.RuinsWarAllianceState = {})),
            function(e) {
                e[e.StartCompete = 0] = "StartCompete", e[e.Occupy = 1] = "Occupy", e[e.StopCompete = 2] = "StopCompete"
            }(n.RuinsWarStrongPointCompeteType || (n.RuinsWarStrongPointCompeteType = {})),
            function(e) {
                e[e.ModuleBonus = 1] = "ModuleBonus", e[e.Items = 2] = "Items", e[e.MoneyPackDiamond = 3] = "MoneyPackDiamond", e[e.AllBattleAttrs = 101] = "AllBattleAttrs", e[e.PvpBattleAttrs = 102] = "PvpBattleAttrs", e[e.PveBattleAttrs = 103] = "PveBattleAttrs"
            }(n.DailyBuffType || (n.DailyBuffType = {})),
            function(e) {
                e[e.Default = 1] = "Default", e[e.Numbers = 2] = "Numbers", e[e.Items = 3] = "Items", e[e.Defaults = 4] = "Defaults"
            }(n.Int2DArrayType || (n.Int2DArrayType = {})),
            function(e) {
                e[e.None = 0] = "None", e[e.Under16 = 1] = "Under16", e[e.From16To17 = 2] = "From16To17", e[e.Over18 = 3] = "Over18"
            }(n.UserAgeType || (n.UserAgeType = {})),
            function(e) {
                e[e.Skill = 1] = "Skill", e[e.Count = 2] = "Count", e[e.Level = 3] = "Level", e[e.Quality = 4] = "Quality"
            }(n.ItemPotionType || (n.ItemPotionType = {})),
            function(e) {
                e[e.Treasure = 0] = "Treasure", e[e.Multiply = 1] = "Multiply", e[e.Return = 2] = "Return"
            }(n.MysteryBoxItem || (n.MysteryBoxItem = {})),
            function(e) {
                e[e.AddDisCardTimes = 1] = "AddDisCardTimes", e[e.AddPlayCardTimes = 2] = "AddPlayCardTimes", e[e.AddCoin = 3] = "AddCoin", e[e.AddAngeCardCount = 4] = "AddAngeCardCount", e[e.FixedColor = 5] = "FixedColor", e[e.ReduceNumber = 6] = "ReduceNumber", e[e.RandomColor = 7] = "RandomColor", e[e.RandomNumber = 8] = "RandomNumber"
            }(n.AngelCardDeckEffect || (n.AngelCardDeckEffect = {})),
            function(e) {
                e[e.Color = 1] = "Color", e[e.Number = 2] = "Number"
            }(n.AngelCardAngelEffect || (n.AngelCardAngelEffect = {})),
            function(e) {
                e[e.HighCard = 1] = "HighCard", e[e.OnePair = 2] = "OnePair", e[e.TwoPair = 3] = "TwoPair", e[e.Three = 4] = "Three", e[e.Straight = 5] = "Straight", e[e.Flush = 6] = "Flush", e[e.FullHouse = 7] = "FullHouse", e[e.Four = 8] = "Four", e[e.Five = 9] = "Five", e[e.StraightFlush = 10] = "StraightFlush", e[e.FullHouseFlush = 11] = "FullHouseFlush", e[e.FiveFlush = 12] = "FiveFlush"
            }(n.AngelCardHandCardType || (n.AngelCardHandCardType = {})),
            function(e) {
                e[e.NormalMonster = 1] = "NormalMonster", e[e.Boss = 2] = "Boss", e[e.Shop = 3] = "Shop", e[e.Buffer = 4] = "Buffer"
            }(n.AngelCardStageType || (n.AngelCardStageType = {})),
            function(e) {
                e[e.BuyCardCheapPrecent = 1] = "BuyCardCheapPrecent", e[e.DisCardTimes = 2] = "DisCardTimes", e[e.PlayerCardTimes = 3] = "PlayerCardTimes", e[e.AngelCardExtraQuality = 4] = "AngelCardExtraQuality", e[e.AngelCardCount = 5] = "AngelCardCount", e[e.MagicCardCount = 6] = "MagicCardCount", e[e.MostPlayHandCardType = 7] = "MostPlayHandCardType", e[e.BattleSuccessCoin = 8] = "BattleSuccessCoin", e[e.HandCardCount = 9] = "HandCardCount", e[e.CoinRefreshBossSkill = 10] = "CoinRefreshBossSkill", e[e.ShopRefreshCheap = 11] = "ShopRefreshCheap", e[e.DisCardCount = 100] = "DisCardCount"
            }(n.AngelCardBasicAttr || (n.AngelCardBasicAttr = {})),
            function(e) {
                e[e.BuyCardCheapPrecent = 1] = "BuyCardCheapPrecent", e[e.AddDisCardTimes = 2] = "AddDisCardTimes", e[e.AddPlayerCardTimes = 3] = "AddPlayerCardTimes", e[e.AddAngelCardExtraQuality = 4] = "AddAngelCardExtraQuality", e[e.AddAngeCardCount = 5] = "AddAngeCardCount", e[e.AddMagicCardCount = 6] = "AddMagicCardCount", e[e.MostPlayHandCardType = 7] = "MostPlayHandCardType", e[e.AddBattleSuccessCoin = 8] = "AddBattleSuccessCoin", e[e.AddHandCardCount = 9] = "AddHandCardCount", e[e.CoinRefreshBossSkill = 10] = "CoinRefreshBossSkill", e[e.ShopRefreshCheap = 11] = "ShopRefreshCheap"
            }(n.AngelCardBlessBuffer || (n.AngelCardBlessBuffer = {})),
            function(e) {
                e[e.Heart = 1] = "Heart", e[e.Spade = 2] = "Spade", e[e.Club = 3] = "Club", e[e.Diamond = 4] = "Diamond"
            }(n.AngelCardColor || (n.AngelCardColor = {})),
            function(e) {
                e[e.CostItem = 1] = "CostItem"
            }(n.PiggyBankActionType || (n.PiggyBankActionType = {})),
            function(e) {
                e[e.Set = 1] = "Set", e[e.Add = 2] = "Add", e[e.Ratio = 3] = "Ratio"
            }(n.WeightChangeType || (n.WeightChangeType = {})),
            function(e) {
                e[e.Rewards = 1] = "Rewards", e[e.Bonus = 2] = "Bonus", e[e.GroupOpen = 3] = "GroupOpen", e[e.LibUp = 4] = "LibUp", e[e.ItemPhaseOpen = 5] = "ItemPhaseOpen", e[e.WithPhaseOpen = 6] = "WithPhaseOpen", e[e.Double = 7] = "Double"
            }(n.StrongPathTasksType || (n.StrongPathTasksType = {})),
            function(e) {
                e[e.Item = 1] = "Item", e[e.NewWarToken = 2] = "NewWarToken"
            }(n.SingleRankActivityType || (n.SingleRankActivityType = {})),
            function(e) {
                e[e.Rank = 0] = "Rank", e[e.Ranking = 1] = "Ranking", e[e.Score = 2] = "Score"
            }(n.RankMatchDataCase || (n.RankMatchDataCase = {})),
            function(e) {
                e[e["\u4e3b\u984c\u6d3b\u52d5"] = 1] = "\u4e3b\u984c\u6d3b\u52d5", e[e["\u9650\u6642\u6d3b\u52d5"] = 2] = "\u9650\u6642\u6d3b\u52d5", e[e["\u5e38\u99d0\u5546\u54c1"] = 3] = "\u5e38\u99d0\u5546\u54c1", e[e["\u5faa\u74b0\u6d3b\u52d5"] = 4] = "\u5faa\u74b0\u6d3b\u52d5", e[e["\u958b\u670d\u6d3b\u52d5"] = 5] = "\u958b\u670d\u6d3b\u52d5", e[e[" "] = 99] = " "
            }(n.DataAnalysisType || (n.DataAnalysisType = {})),
            function(e) {
                e[e.DailySelected = 1] = "DailySelected", e[e.GoodGift = 2] = "GoodGift", e[e.Privilege = 3] = "Privilege", e[e.Fund = 4] = "Fund", e[e.DiamondShop = 5] = "DiamondShop"
            }(n.MallPageType || (n.MallPageType = {})),
            function(e) {
                e[e.TopRankAlert = 1] = "TopRankAlert", e[e.RankAchievement = 2] = "RankAchievement"
            }(n.HorseRaceLampType || (n.HorseRaceLampType = {})),
            function(e) {
                e[e.AddAttrValue = 1] = "AddAttrValue", e[e.AddSkill = 2] = "AddSkill", e[e.AddAttrValuePercent = 3] = "AddAttrValuePercent"
            }(n.MagicCircleTalentEffect || (n.MagicCircleTalentEffect = {})),
            function(e) {
                e[e.Start = 101] = "Start", e[e.Normal = 102] = "Normal", e[e.Monster1 = 103] = "Monster1", e[e.Monster2 = 104] = "Monster2", e[e.BossCenter = 105] = "BossCenter", e[e.BossAround = 106] = "BossAround", e[e.ShowItem = 107] = "ShowItem", e[e.ShowHero = 108] = "ShowHero", e[e.Monster3 = 109] = "Monster3", e[e.Obstacle = 110] = "Obstacle", e[e.Resource = 111] = "Resource", e[e.Challenge = 112] = "Challenge"
            }(n.AllianceMazeEventType || (n.AllianceMazeEventType = {})),
            function(e) {
                e[e.Exploring = 1] = "Exploring", e[e.Finished = 2] = "Finished"
            }(n.AllianceMazeStateType || (n.AllianceMazeStateType = {})),
            function(e) {
                e[e.ContinueWar = 1] = "ContinueWar", e[e.AssaultOperation = 2] = "AssaultOperation", e[e.WorldBoss = 3] = "WorldBoss"
            }(n.StatEventTrackingType || (n.StatEventTrackingType = {})),
            function(e) {
                e[e.Enter = 1] = "Enter", e[e.PaidEnter = 2] = "PaidEnter", e[e.UnlockEnterGame = 3] = "UnlockEnterGame", e[e.MainAction = 4] = "MainAction"
            }(n.StatEventTrackingActionType || (n.StatEventTrackingActionType = {})),
            function(e) {
                e[e.Normal = 1] = "Normal", e[e.Higher = 2] = "Higher"
            }(n.AllianceRedPacket || (n.AllianceRedPacket = {})),
            function(e) {
                e[e.FinalReward = 1] = "FinalReward", e[e.HigherReward = 2] = "HigherReward", e[e.LimitCount = 3] = "LimitCount", e[e.Common = 4] = "Common"
            }(n.StarryPrayerRewardType || (n.StarryPrayerRewardType = {})),
            function(e) {
                e[e.BattleInfo = 1] = "BattleInfo", e[e.ResourcePoint = 2] = "ResourcePoint", e[e.PlayerMove = 3] = "PlayerMove", e[e.MoveAccelerate = 4] = "MoveAccelerate"
            }(n.AssaultOperationMessageType || (n.AssaultOperationMessageType = {})),
            function(e) {
                e[e.Spiritvein1 = 1] = "Spiritvein1", e[e.Spiritvein2 = 2] = "Spiritvein2", e[e.Spiritvein3 = 3] = "Spiritvein3", e[e.Spiritvein4 = 4] = "Spiritvein4", e[e.Headquarters = 99] = "Headquarters"
            }(n.AssaultOperationResourceType || (n.AssaultOperationResourceType = {})),
            function(e) {
                e[e.AddEnergyLimit = 1] = "AddEnergyLimit", e[e.AddMonsterCount = 2] = "AddMonsterCount", e[e.AddEnergyRecoverySpeed = 3] = "AddEnergyRecoverySpeed", e[e.AddMoveSpeed = 4] = "AddMoveSpeed"
            }(n.AssaultOperationSpecialResourceType || (n.AssaultOperationSpecialResourceType = {})),
            function(e) {
                e[e.Battle = 1] = "Battle", e[e.Move = 2] = "Move", e[e.Accelerate = 3] = "Accelerate", e[e.GetEnergyValue = 4] = "GetEnergyValue", e[e.RefreshStoragedEnergyValue = 5] = "RefreshStoragedEnergyValue", e[e.SynchronousEnergy = 6] = "SynchronousEnergy", e[e.AddStoredEnergyValue = 7] = "AddStoredEnergyValue", e[e.SetAttackResourcePoint = 8] = "SetAttackResourcePoint"
            }(n.AssaultOperationPlayerOperation || (n.AssaultOperationPlayerOperation = {})),
            function(e) {
                e[e.TotalContinue = 1] = "TotalContinue", e[e.DailyScore = 2] = "DailyScore", e[e.TotalScore = 3] = "TotalScore"
            }(n.AssaultOperationRankType || (n.AssaultOperationRankType = {})),
            function(e) {
                e[e.AttackUid = 0] = "AttackUid", e[e.DefenderUid = 1] = "DefenderUid", e[e.BattleEndTime = 2] = "BattleEndTime", e[e.AttackerLeftEnergyValue = 3] = "AttackerLeftEnergyValue", e[e.DefenderLeftEnergyValue = 4] = "DefenderLeftEnergyValue"
            }(n.AssaultOperationBattleInfo || (n.AssaultOperationBattleInfo = {})),
            function(e) {
                e[e.SendRedPacket = 1] = "SendRedPacket", e[e.AllianceTraderBuyPack = 2] = "AllianceTraderBuyPack", e[e.AllianceTest = 3] = "AllianceTest", e[e.AllianceChallengeRank = 10001] = "AllianceChallengeRank", e[e.AllianceBossRank = 10002] = "AllianceBossRank", e[e.AllianceMazeRank = 10003] = "AllianceMazeRank", e[e.AllianceLevel = 10004] = "AllianceLevel"
            }(n.AllianceTaskType || (n.AllianceTaskType = {})),
            function(e) {
                e[e.Hero = 1] = "Hero", e[e.HeroSkin = 2] = "HeroSkin", e[e.Pet = 3] = "Pet", e[e.MagicCircle = 4] = "MagicCircle", e[e.NewPersonality = 5] = "NewPersonality", e[e.EndId = 6] = "EndId"
            }(n.ModuleStartTime || (n.ModuleStartTime = {})),
            function(e) {
                e[e["\u82f1\u96c4"] = 1] = "\u82f1\u96c4", e[e["\u76ae\u80a4"] = 2] = "\u76ae\u80a4", e[e["\u4f7f\u9b54"] = 3] = "\u4f7f\u9b54", e[e["\u9b54\u6cd5\u9635"] = 4] = "\u9b54\u6cd5\u9635", e[e["\u4eba\u683c"] = 5] = "\u4eba\u683c"
            }(n.ModuleStartTimeName || (n.ModuleStartTimeName = {})),
            function(e) {
                e[e.PowerParam = 1] = "PowerParam", e[e.RefreshSkillCost = 3] = "RefreshSkillCost", e[e.RotaryTable = 4] = "RotaryTable", e[e.SkillSlotMax = 5] = "SkillSlotMax"
            }(n.AJGlobalParamType || (n.AJGlobalParamType = {})), cc._RF.pop()
    }, {}],
    EquConfigTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7102267yyBEoZ0EOZMrsOIj", "EquConfigTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.EquConfigTipsType = void 0;
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = e("../../Components/DataCenter"),
            u = e("../Components/ItemComponent"),
            p = e("../Components/PrefabListContainerComp"),
            d = e("../Components/TipsLocationComponent"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property;
        (function(e) {
            e[e.equ = 0] = "equ", e[e.holy = 1] = "holy", e[e.rune = 2] = "rune", e[e.core = 3] = "core", e[e.charm = 4] = "charm", e[e.pet = 5] = "pet"
        })(a = n.EquConfigTipsType || (n.EquConfigTipsType = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new s.UIPanelType(s.UINodeType.PopUp, !1, !1, !1), t.MaskNode = null, t.ItemsContainer = null, t._equInfo = [], t._holyEquSids = [], t._isHoly = [], t
            }
            return r(t, e), t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1)
            }, t.prototype.onEnable = function() {
                s.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK_START, this.OnClickItem, this)
            }, t.prototype.onDisable = function() {
                s.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK_START, this.OnClickItem, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._clickNode = t[0], this._type = t[1], this._equInfo = t[2], t[3] && (this._call = t[3]), t[4] && (this._holyEquSids = t[4])
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.RenderItem(), this.node.getComponent(d.default).RepositionPanel(this._clickNode), this.node.opacity = 255
            }, t.prototype.RenderItem = function() {
                var e = this;
                this.ItemsContainer.Init(l.BundlePath.ItemComponent, u.ItemComponent, function(t, n) {
                    var o = e._equInfo[n];
                    !o && e._holyEquSids && (o = e._holyEquSids[n]) && (e._isHoly[n] = !0);
                    var r, i = 0;
                    if (e._type == a.equ ? (i = null == (r = e._isHoly[n] ? c.DataCenter.Instance.GetDataById(h.HolyEquipment_Model, o) : c.DataCenter.Instance.GetDataById(h.Equipment_Model, o)) ? void 0 : r.ItemId, r || (r = new h.Equipment_Model, i = o)) : e._type == a.rune ? i = null == (r = c.DataCenter.Instance.GetDataById(h.LuckyCharmEquip_Model, o)) ? void 0 : r.ItemId : e._type == a.charm && (i = null == (r = c.DataCenter.Instance.GetDataById(h.GemEquip_Model, o)) ? void 0 : r.ItemId), t.node.y = -170, o) t.Init({
                        ItemId: i
                    }), t.node.on(cc.Node.EventType.MOUSE_DOWN, e.OnClickItem, e);
                    else switch (t.SetItemSimpleState(), e._type) {
                        case a.equ:
                            t.SetCustomIcon(y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("equip_" + (n + 1)));
                            break;
                        case a.rune:
                            t.SetCustomIcon(y.UIUtlity.COMMON_ATLAS5.getSpriteFrame("equip_luckyCharm"));
                            break;
                        case a.charm:
                            t.SetCustomIcon(y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("gem_shadow"))
                    }
                }), this.ItemsContainer.Set(this._equInfo.length)
            }, t.prototype.OnClickItem = function(e) {
                var t = this.ItemsContainer.CompList.findIndex(function(t) {
                    return t.node == e
                });
                null == t || t >= this.ItemsContainer.CompList.length || t < 0 || (this._call(t, this._type, this._isHoly[t]), this.Close())
            }, i([I(cc.Node)], t.prototype, "MaskNode", void 0), i([I(p.default)], t.prototype, "ItemsContainer", void 0), i([m], t)
        }(s.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PrefabListContainerComp": "PrefabListContainerComp",
        "../Components/TipsLocationComponent": "TipsLocationComponent"
    }],
    EquipAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "385a1/0B0ZNdqUT47mXcCPh", "EquipAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/ConfigData/ConfigDataComponent"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("./EquipAttrInfoItem"),
            f = e("../../../EZFramework/EZFramework"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FlagTag = null, t.AttrGrid = null, t.ATTR_ITEM_PATH = "ItemsComponent/EquipAttrInfoItem", t._attrItemPrefab = null, t._loadAsset = null, t._attrItemTable = [], t._itemEquipConfig = null, t._isUIInit = !1, t
                }
                return r(t, e), t.prototype.SetUI = function(e, t) {
                    this._attrItemPrefab = t, this._equipId = e, this._isUIInit || (this._isUIInit = !0, this.SetStaticLocalText()), this.LoadBaseConfig(), this.LoadAttrItem()
                }, t.prototype.SetStaticLocalText = function() {
                    this.FlagTag.string = "equip_base_attr".ToUILocale()
                }, t.prototype.LoadBaseConfig = function() {
                    this._itemEquipConfig = c.ConfigDataComponent.Instance.GetConfigById(l.ItemEquipment_Config, this._equipId)
                }, t.prototype.LoadAttrItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != this._attrItemPrefab ? [3, 3] : null == (e = f.UIManager.Instance.GetUIPanel(u.PanelConfig.ShopPanel.Path)) || 1 != e.node.active ? [3, 1] : [3, 3];
                                case 1:
                                    return t = this, [4, p.AssetsManager.Instance.LoadAsset(this.ATTR_ITEM_PATH)];
                                case 2:
                                    if (t._loadAsset = i.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._loadAsset), [2];
                                    this._attrItemPrefab = this._loadAsset, i.label = 3;
                                case 3:
                                    for (o = 0; o < this._attrItemTable.length; o++) this._attrItemTable[o].node.active = !1;
                                    for (n = this._itemEquipConfig.Attrs.length, o = 0; o < n; o++) null == this._attrItemTable[o] && ((r = cc.instantiate(this._attrItemPrefab).getComponent(h.default)).node.parent = this.AttrGrid.node, this._attrItemTable[o] = r), this._attrItemTable[o].SetUI(this._itemEquipConfig.Attrs[o].Items, null, null, "6EEEA7", "202434"), this._attrItemTable[o].node.active = !0;
                                    return this.AttrGrid.updateLayout(), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._loadAsset && (d.AssetsManager.Instance.UnloadAsset(this._loadAsset), this._loadAsset = null)
                }, i([m(cc.Label)], t.prototype, "FlagTag", void 0), i([m(cc.Layout)], t.prototype, "AttrGrid", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "./EquipAttrInfoItem": "EquipAttrInfoItem"
    }],
    EquipAttrInfoItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "80bf7HvYDxMI4ufqJC9ZrQS", "EquipAttrInfoItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../Auxiliary/UIUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Rate = 1] = "Rate"
        })(a || (a = {}));
        var p = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.NameNode = null, t.ValueNode = null, t.AttrIcon = null, t.AttrNameLabel = null, t.AttrContentLabel = null, t.FIXED_LEFT_ATTR_UI_WIDTH = 634, t.FIXED_RIGHT_ATTR_UI_WIDTH = 394, t.FIXED_COLOR = new cc.Color(195, 167, 64), t._showType = a.Normal, t
            }
            return r(t, e), t.prototype.SetUI = function(e, t, n, o, r) {
                this._valueColorHex = null == o ? "5ebc12" : o, this._valueOutlineColorHex = r, null != e ? (this._attrData = e, this.CalcAttrTypeAndValue(), this.SetIcon(), this.SetAttrName(), this.SetAttrValue()) : null != t && null != n && this.SetFixedInfo(t, n)
            }, t.prototype.CalcAttrTypeAndValue = function() {
                this._attrData.length < 2 || (this._attrData[0] < 100 ? this._attrType = this._attrData[0] : this._attrType = this._attrData[0] % 10, this._attrType < 4 ? (this._attrValue = this._attrData[1], this._attrValue2 = this._attrData[2], this._showType = a.Normal) : (this._attrValue = this._attrData[1] / 10, this._attrValue2 = null != this._attrData[2] ? this._attrData[2] / 10 : null, this._showType = a.Rate))
            }, t.prototype.SetIcon = function() {
                this._attrData[0] < 100 ? this.AttrIcon.spriteFrame = s.UIUtlity.HERO_ATTR_ICON_ATLAS.getSpriteFrame("attr_" + this._attrType) : this._attrType < 4 ? this.AttrIcon.spriteFrame = s.UIUtlity.HERO_ATTR_ICON_ATLAS.getSpriteFrame("attr_" + this._attrType) : this.AttrIcon.spriteFrame = s.UIUtlity.HERO_ATTR_ICON_ATLAS.getSpriteFrame("attr_" + (this._attrType - 4))
            }, t.prototype.SetAttrName = function() {
                this.AttrNameLabel.string = ("hero_attr_" + this._attrData[0]).ToUILocale()
            }, t.prototype.SetAttrValue = function() {
                var e = ";";
                e = this._showType == a.Normal ? "+" + this._attrValue + (null != this._attrValue2 ? "<color=#" + this._valueColorHex + ">(+" + this._attrValue2 + ")</c>" : "") : "+" + this._attrValue + "%" + (null != this._attrValue2 ? "<color=#" + this._valueColorHex + ">(+" + this._attrValue2 + "%)</c>" : ""), this._valueOutlineColorHex && (e = "<outline width=3 color=#" + this._valueOutlineColorHex + ">" + e + "</outline>"), this.AttrContentLabel.string = e
            }, t.prototype.SetFixedInfo = function(e, t) {
                this.AttrIcon.enabled = !1, this.AttrNameLabel.string = e, this.AttrContentLabel.string = t, this.AttrNameLabel.horizontalAlign = cc.Label.HorizontalAlign.LEFT, this.AttrContentLabel.horizontalAlign = cc.macro.TextAlignment.LEFT, this.AttrContentLabel.node.color = this.FIXED_COLOR, this.NameNode.width = this.FIXED_LEFT_ATTR_UI_WIDTH, this.ValueNode.width = this.FIXED_RIGHT_ATTR_UI_WIDTH
            }, i([u(cc.Node)], t.prototype, "NameNode", void 0), i([u(cc.Node)], t.prototype, "ValueNode", void 0), i([u(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([u(cc.Label)], t.prototype, "AttrNameLabel", void 0), i([u(cc.RichText)], t.prototype, "AttrContentLabel", void 0), i([c], t)
        }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    EquipAttrItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c2f46kIeFhHzI+KkVd1Wc55", "EquipAttrItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Info = null, t.Value = null, t.UpTag = null, t.NewTag = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    void 0 === t && (t = 0);
                    var n = a.default.GetHeroAttribute(e[0], e[1], !0);
                    switch (this.Icon.spriteFrame = n.Icon, this.Info.string = n.Name, this.Value.string = n.Value, t) {
                        case 0:
                            this.UpTag.active = !1, this.NewTag.active = !1, this.Value.node.color = cc.Color.WHITE;
                            break;
                        case 1:
                            this.UpTag.active = !0, this.NewTag.active = !1, this.Value.node.color = cc.color(110, 238, 167);
                            break;
                        case 2:
                            this.UpTag.active = !1, this.NewTag.active = !0, this.Value.node.color = cc.color(110, 238, 167)
                    }
                }, i([c(cc.Sprite)], t.prototype, "Icon", void 0), i([c(cc.Label)], t.prototype, "Info", void 0), i([c(cc.Label)], t.prototype, "Value", void 0), i([c(cc.Node)], t.prototype, "UpTag", void 0), i([c(cc.Node)], t.prototype, "NewTag", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    EquipAutoForgingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "92961XfeHZBHYKnjPsewrxa", "EquipAutoForgingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../GamePlay/Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../Components/ItemComponent"),
            m = e("../Components/CustomLayout"),
            I = e("../Components/CurrencyBarItem"),
            _ = e("./EquipForgingItem"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../../../Consts/Consts"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Hint = null, t.MaterialTitle = null, t.EquipLayout = null, t.MaterialLayout = null, t.CancelBtn = null, t.OkBtn = null, t.CancelBtnLabel = null, t.OkBtnLabel = null, t.CurrencyBar = null, t.NoneEquipHint = null, t._forgingMap = new Map, t._allEquips = new Map, t._isCustomLayoutInit = !1, t._equipForgingItems = [], t._costCoin = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(u.EventKeys.EVENT_EQUIP_FORGINGITEM_CLICK, this.OnForgingItemChanged, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), l.Game.EventDispatcher.Off(u.EventKeys.EVENT_EQUIP_FORGINGITEM_CLICK, this.OnForgingItemChanged)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent), n = this.LoadDynamicAsset("EquipmentPanel/ForgingItem"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._forgingPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CancelBtn.node.on("click", this.OnCancelClick, this), this.OkBtn.node.on("click", this.OnOkClick, this), this.Title.string = "equip_auto_forging".ToUILocale(), this.Hint.string = "equip_forging_hint".ToUILocale(), this.MaterialTitle.string = "equip_forging_material".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.OkBtnLabel.string = "ok".ToUILocale(), this.NoneEquipHint.string = "equip_canNot_forging".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._heroSid = t[0], this._costMod = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("EquipmentXpPrice")
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigEquipMents(), this.ConfigEquipContainer(), this.ConfigMaterialContainer()
                }, t.prototype.ConfigEquipMents = function() {
                    this._hero = h.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid), this._allEquips.clear();
                    for (var e = h.DataCenter.Instance.GetDataList(c.Equipment_Model), t = 0; t < e.length; t++)
                        if (0 == (i = e[t]).OwnerId) {
                            var n = h.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, i.ItemId),
                                o = {
                                    Sid: i.Sid,
                                    ItemId: i.ItemId,
                                    Count: 1,
                                    Xp: i.Xp + n.Xp
                                };
                            (a = this._allEquips.get(n.Type)) || (a = [], this._allEquips.set(n.Type, a)), a.push(o)
                        } var r = h.DataCenter.Instance.GetDataList(c.UserItem_Model);
                    for (t = 0; t < r.length; t++) {
                        var i, a;
                        if (!((i = r[t]).Count <= 0) && h.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, i.ItemId).Type == y.ItemType.Equip) n = h.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, i.ItemId), o = {
                            Sid: 0,
                            ItemId: i.ItemId,
                            Count: i.Count,
                            Xp: n.Xp
                        }, (a = this._allEquips.get(n.Type)) || (a = [], this._allEquips.set(n.Type, a)), a.push(o)
                    }
                }, t.prototype.GetMaterials = function(e, t) {
                    var n = [],
                        o = this._allEquips.get(e);
                    if (!o) return n;
                    o.sort(this.SortEquipDataByXp.bind(this));
                    for (var r = !1, i = 0, a = 0; a < o.length; a++) {
                        var s = o[a];
                        if (0 == s.Sid) {
                            for (var l = 0, c = 0; c < s.Count && (l++, !((i += s.Xp) >= t)); c++);
                            var u = h.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, s.ItemId);
                            if (n.push([1, s.ItemId, l, u.Type, s.Xp]), i >= t) {
                                r = !0;
                                break
                            }
                        } else if (i += s.Xp, u = h.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, s.ItemId), n.push([2, s.Sid, 1, u.Type, s.Xp]), i >= t) {
                            r = !0;
                            break
                        }
                    }
                    return r || (n = []), n
                }, t.prototype.SortMaterialByType = function(e, t) {
                    var n = e[3],
                        o = t[3];
                    return n < o ? -1 : n > o ? 1 : this.SortMaterialByXp(e, t)
                }, t.prototype.SortMaterialByXp = function(e, t) {
                    return e[4] <= t[4] ? -1 : 1
                }, t.prototype.SortEquipDataByXp = function(e, t) {
                    return e.Xp <= t.Xp ? -1 : 1
                }, t.prototype.ConfigEquipContainer = function() {
                    var e = this;
                    this._forgingMap.clear(), this._equipsSid = h.DataCenter.Instance.GetHeroEquips(this._heroSid);
                    for (var t = 0; t < this._equipsSid.length; t++) {
                        var n = this._equipsSid[t];
                        if (0 != n) {
                            var o = h.DataCenter.Instance.GetDataById(c.Equipment_Model, n),
                                r = h.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, o.ItemId);
                            if (0 != r.NextId) {
                                var i = h.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, r.NextId).Xp - (r.Xp + o.Xp),
                                    a = this.GetMaterials(r.Type, i);
                                if (a.length > 0) {
                                    var s = this.ConfirmTargetEquip(o.Xp, a, r.NextId),
                                        l = {
                                            Equips: [r.Id, s],
                                            Materials: a
                                        };
                                    this._forgingMap.set(n, l)
                                }
                            }
                        }
                    }
                    this._selectEquips = [];
                    var u = 0,
                        p = 0;
                    for (this._forgingMap.forEach(function(t, n) {
                            var o = e._equipForgingItems[u];
                            if (!o) {
                                var r = cc.instantiate(e._forgingPrefab);
                                r.setParent(e.EquipLayout.node), o = r.getComponent(_.default), e._equipForgingItems.push(o)
                            }
                            o.Init(e._itemPrefab, n, t.Equips[0], t.Equips[1]);
                            var i = e.GetSingleEquipCoinCost(n);
                            h.DataCenter.Instance.IsItemEnough(v.CommonItemId.Coin, p + i) ? p += i : o.SelectToggle.isChecked = !1, o.SelectToggle.isChecked && e._selectEquips.push(n), u++
                        }), t = u; t < this._equipForgingItems.length; t++) this._equipForgingItems[t].node.active = !1;
                    this._forgingMap.size <= 0 ? this.NoneEquipHint.node.active = !0 : this.NoneEquipHint.node.active = !1
                }, t.prototype.ConfirmTargetEquip = function(e, t, n) {
                    for (var o = h.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, n), r = e, i = 0; i < t.length; i++) r += t[i][4];
                    return 0 == o.NextId ? n : r >= h.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, o.NextId).Xp ? this.ConfirmTargetEquip(e, t, o.NextId) : n
                }, t.prototype.ConfigMaterialContainer = function() {
                    this._isCustomLayoutInit || (this._isCustomLayoutInit = !0, this.MaterialLayout.Init(this._itemPrefab)), this.RefreshMaterials()
                }, t.prototype.RefreshMaterials = function() {
                    this._selectMaterials = [];
                    for (var e = 0; e < this._selectEquips.length; e++) {
                        var t = this._forgingMap.get(this._selectEquips[e]);
                        this._selectMaterials = this._selectMaterials.concat(t.Materials)
                    }
                    this._selectMaterials.sort(this.SortMaterialByType.bind(this)), this.MaterialLayout.RenderLayOut(this._selectMaterials.length), this.RefreshCurrencyBar()
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.MaterialLayout && e.forEach(function(e, t) {
                        var o, r = e.getComponent(g.ItemComponent),
                            i = n._selectMaterials[t];
                        switch (i[0]) {
                            case 1:
                                o = i[1];
                                break;
                            case 2:
                                o = h.DataCenter.Instance.GetDataById(c.Equipment_Model, i[1]).ItemId
                        }
                        r.Init({
                            ItemId: o,
                            Count: i[2]
                        }, g.ItemComponentType.ItemWithStar)
                    })
                }, t.prototype.OnForgingItemChanged = function(e, t) {
                    switch (e) {
                        case "on":
                            this._selectEquips.push(t);
                            break;
                        case "off":
                            var n = this._selectEquips.indexOf(t);
                            this._selectEquips.splice(n, 1)
                    }
                    this.RefreshMaterials()
                }, t.prototype.OnCancelClick = function() {
                    C.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnOkClick = function() {
                    if (this._selectEquips.length <= 0) return d.UIUtlity.ShowFloatingHint("equip_forging_select_hint".ToUILocale().Fmt(y.CommonItemId.Coin.ToItemName()));
                    var e = h.DataCenter.Instance.GetItemCount(y.CommonItemId.Coin);
                    if (this._costCoin > e) return d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(y.CommonItemId.Coin.ToItemName()));
                    d.UIUtlity.ShowMaskPanel();
                    var t = new c.Req_Item_EquipmentOneClickForging;
                    t.OwnerId = this._heroSid;
                    for (var n = 0, o = [], r = 0; r < this._selectEquips.length; r++)
                        for (var i = this._forgingMap.get(this._selectEquips[r]), a = 0; a < i.Materials.length; a++) o[n] = new c.IntArray, o[n].Items = i.Materials[a], n++;
                    t.Materials = o, h.RpcComponent.Instance.Call(t, this.OnForgingSucces.bind(this), this.OnForgingFail.bind(this))
                }, t.prototype.OnForgingSucces = function() {
                    d.UIUtlity.CloseMaskPanel();
                    var e = this._hero.Power,
                        t = this._hero.Attrs[y.HeroAttributeType.Defense],
                        n = this._hero.Attrs[y.HeroAttributeType.Attack],
                        o = this._hero.Attrs[y.HeroAttributeType.Hp];
                    this._hero = h.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid);
                    var r = this._hero.Power - e,
                        i = this._hero.Attrs[y.HeroAttributeType.Defense] - t,
                        a = this._hero.Attrs[y.HeroAttributeType.Attack] - n,
                        s = this._hero.Attrs[y.HeroAttributeType.Hp] - o;
                    C.UIManager.Instance.ShowUIPanel(p.PanelConfig.LevelUpHintPanel.Path, this._hero.Power, r, i, a, s), l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_EQUIP_DATA_REFRESH), this.DisPlay(!0)
                }, t.prototype.OnForgingFail = function() {
                    d.UIUtlity.CloseMaskPanel()
                }, t.prototype.RefreshCurrencyBar = function() {
                    this._costCoin = 0;
                    for (var e = 0; e < this._selectEquips.length; e++) {
                        var t = this._selectEquips[e];
                        this._costCoin += this.GetSingleEquipCoinCost(t)
                    }
                    this.CurrencyBar.Init(y.CommonItemId.Coin, !1, void 0, this._costCoin)
                }, t.prototype.GetSingleEquipCoinCost = function(e) {
                    var t = 0,
                        n = this._forgingMap.get(e),
                        o = h.DataCenter.Instance.GetDataById(c.Equipment_Model, e),
                        r = h.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, o.ItemId).Xp + o.Xp,
                        i = n.Materials.length,
                        a = 0;
                    r > n.Materials[i - 1][4] ? a = i : (t += r, a = i - 1);
                    for (var s = 0; s < a; s++) t += n.Materials[s][4] * n.Materials[s][2];
                    return t * this._costMod
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Label)], t.prototype, "Hint", void 0), i([w(cc.Label)], t.prototype, "MaterialTitle", void 0), i([w(cc.Layout)], t.prototype, "EquipLayout", void 0), i([w(m.default)], t.prototype, "MaterialLayout", void 0), i([w(cc.Button)], t.prototype, "CancelBtn", void 0), i([w(cc.Button)], t.prototype, "OkBtn", void 0), i([w(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([w(cc.Label)], t.prototype, "OkBtnLabel", void 0), i([w(I.default)], t.prototype, "CurrencyBar", void 0), i([w(cc.Label)], t.prototype, "NoneEquipHint", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./EquipForgingItem": "EquipForgingItem"
    }],
    EquipBaseInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a6d10nDeF1D6qKLylLuvJ4b", "EquipBaseInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/ConfigData/ConfigDataComponent"),
            l = e("../../../EZFramework/EZFramework"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemGrid = null, t.EquipTypeText = null, t.EquipType = null, t.ScoreText = null, t.Score = null, t._attrItemPrefab = null, t._itemEquipConfig = null, t
                }
                return r(t, e), t.prototype.SetUI = function(e) {
                    this._equipId = e, this.LoadBaseConfig();
                    var t = this._itemEquipConfig.Type;
                    this.EquipTypeText.string = "equip_type_tag".ToUILocale(), this.EquipType.string = ("equip_type_" + t).ToUILocale(), this.ScoreText.string = "equip_score_tag".ToUILocale(), this.Score.string = this._itemEquipConfig.Score.toString(), this.ItemGrid.updateLayout()
                }, t.prototype.LoadBaseConfig = function() {
                    this._itemEquipConfig = s.ConfigDataComponent.Instance.GetConfigById(a.ItemEquipment_Config, this._equipId)
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._attrItemPrefab)
                }, i([p(cc.Layout)], t.prototype, "ItemGrid", void 0), i([p(cc.Label)], t.prototype, "EquipTypeText", void 0), i([p(cc.Label)], t.prototype, "EquipType", void 0), i([p(cc.Label)], t.prototype, "ScoreText", void 0), i([p(cc.Label)], t.prototype, "Score", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent"
    }],
    EquipForgingItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "743d1DvjTZMKpIKHAuX4CUQ", "EquipForgingItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CurItemNode = null, t.NextItemNode = null, t.SelectToggle = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this._itemPrefab = e, this._equipId = t, this._currentEquipId = n, this._nextEquipId = o, this.InitUI(), this.ConfigItems()
                }, t.prototype.InitUI = function() {
                    this._isInit || (this._isInit = !0, this.SelectToggle.node.on("toggle", this.OnToggle, this))
                }, t.prototype.ConfigItems = function() {
                    if (!this._curItemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.CurItemNode), this._curItemComponent = e.getComponent(l.ItemComponent)
                    }
                    if (this._curItemComponent.Init({
                            ItemId: this._currentEquipId
                        }, l.ItemComponentType.ItemWithStar), !this._nextItemComponent) {
                        var t = cc.instantiate(this._itemPrefab);
                        t.setParent(this.NextItemNode), this._nextItemComponent = t.getComponent(l.ItemComponent)
                    }
                    this._nextItemComponent.Init({
                        ItemId: this._nextEquipId
                    }, l.ItemComponentType.ItemWithStar)
                }, t.prototype.OnToggle = function() {
                    1 == this.SelectToggle.isChecked ? a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_EQUIP_FORGINGITEM_CLICK, "on", this._equipId) : a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_EQUIP_FORGINGITEM_CLICK, "off", this._equipId)
                }, i([p(cc.Node)], t.prototype, "CurItemNode", void 0), i([p(cc.Node)], t.prototype, "NextItemNode", void 0), i([p(cc.Toggle)], t.prototype, "SelectToggle", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/ItemComponent": "ItemComponent"
    }],
    EquipForgingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a72a2dyOvxPcrJjOanydvU6", "EquipForgingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/CustomLayout"),
            m = e("./ForgingMaterialItem"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../Components/CurrencyBarItem"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("./EquipAttrItem"),
            b = e("../Components/CustomProgressBar"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.LeftNode = null, t.Arrow = null, t.RightNode = null, t.Progress = null, t.ProgressLabel = null, t.CustomLayout = null, t.ReturnBtn = null, t.HnadbookBtn = null, t.HnadbookBtnLabel = null, t.CurrencyBar = null, t.AutoSelectBtn = null, t.AutoSelectBtnLabel = null, t.ForgingBtn = null, t.ForgingBtnLabel = null, t.LeftAttrNode = null, t.RightAttrNode = null, t.MaxStarHint = null, t.ForgingSpine = null, t._isCustomLayoutInit = !1, t._totalForgingValue = 0, t._selectForgingValue = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(u.EventKeys.EVENT_EQUIP_SELECT_MATERIAL_REFRESH, this.RefreshForgingValue, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), l.Game.EventDispatcher.Off(u.EventKeys.EVENT_EQUIP_SELECT_MATERIAL_REFRESH, this.RefreshForgingValue)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent), n = this.LoadDynamicAsset("EquipmentPanel/ForgingMaterialItem"), o = this.LoadDynamicAsset("EquipmentPanel/EquipAttrItem"), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._forgingPrefab = e[1], r._equipAttrItemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ReturnBtn.node.on("click", this.OnClose, this), this.HnadbookBtn.node.on("click", this.OnHandbookClick, this), this.AutoSelectBtn.node.on("click", this.OnAutoSelect, this), this.ForgingBtn.node.on("click", this.OnForgeClick, this), this.Title.string = "equip_forging_title".ToUILocale(), this.AutoSelectBtnLabel.string = "equip_auto_select".ToUILocale(), this.ForgingBtnLabel.string = "equip_forge".ToUILocale(), this.MaxStarHint.string = "equip_reach_max_level".ToUILocale(), this.HnadbookBtnLabel.string = "handbook_label".ToUILocale(), this._costMode = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("EquipmentXpPrice")
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._equipSid = t[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigCurrentEquip(), this.ConfigMatarials(), this.RefreshProgressBar(), this.RefreshCurrencyBar(), this.RefreshButtons()
                }, t.prototype.ConfigCurrentEquip = function() {
                    if (!this._currentItemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.LeftNode), this._currentItemComponent = e.getComponent(y.ItemComponent)
                    }
                    this._selectEquipData = d.DataCenter.Instance.GetDataById(c.Equipment_Model, this._equipSid), this._currentEquipConfig = d.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, this._selectEquipData.ItemId), this._currentItemComponent.Init({
                        ItemId: this._selectEquipData.ItemId
                    }, y.ItemComponentType.ItemWithStar), this._selectForgingValue = this._selectEquipData.Xp, this.ConfigEquipAttrs(this._currentEquipConfig.Attrs, this.LeftAttrNode), this.ConfigTargetEquip(this._currentEquipConfig.NextId)
                }, t.prototype.ConfigTargetEquip = function(e) {
                    if (!this._targetItemComponent) {
                        var t = cc.instantiate(this._itemPrefab);
                        t.setParent(this.RightNode), this._targetItemComponent = t.getComponent(y.ItemComponent)
                    }
                    if (0 == e) return this.Arrow.active = !1, void(this.RightNode.active = !1);
                    this.Arrow.active = !0, this.RightNode.active = !0, this._targetItemComponent.Init({
                        ItemId: e
                    }, y.ItemComponentType.ItemWithStar), this._targetEquipConfig = d.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, e), this._totalForgingValue = this._targetEquipConfig.Xp - this._currentEquipConfig.Xp, this.ConfigEquipAttrs(this._targetEquipConfig.Attrs, this.RightAttrNode, !0)
                }, t.prototype.ConfigEquipAttrs = function(e, t, n) {
                    void 0 === n && (n = !1);
                    for (var o = 0, r = 0; r < e.length; r++) {
                        o++;
                        var i = e[r],
                            a = void 0;
                        t.childrenCount > r ? (a = t.children[r]).active = !0 : (a = cc.instantiate(this._equipAttrItemPrefab)).setParent(t);
                        var s = 0;
                        n && (s = o > this._currentEquipConfig.Attrs.length ? 2 : 1), a.getComponent(v.default).Init(i.Items, s)
                    }
                    for (r = o; r < t.childrenCount; r++) t.children[r].active = !1
                }, t.prototype.ConfigMatarials = function() {
                    if (this._allMaterials = [], this._isCustomLayoutInit || (this._isCustomLayoutInit = !0, this.CustomLayout.Init(this._forgingPrefab, !0)), 0 != this._currentEquipConfig.NextId) {
                        for (var e = this._currentEquipConfig.Type, t = d.DataCenter.Instance.GetDataList(c.Equipment_Model), n = 0; n < t.length; n++)
                            if (0 == (i = t[n]).OwnerId && (a = d.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, i.ItemId)).Type == e) {
                                var o = {
                                    Sid: i.Sid,
                                    ItemId: i.ItemId,
                                    Count: 1,
                                    Xp: i.Xp + a.Xp,
                                    SelectCount: 0
                                };
                                this._allMaterials.push(o)
                            } var r = d.DataCenter.Instance.GetDataList(c.UserItem_Model);
                        for (n = 0; n < r.length; n++) {
                            var i, a;
                            (i = r[n]).Count <= 0 || d.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, i.ItemId).Type == f.ItemType.Equip && (a = d.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, i.ItemId)).Type == e && (o = {
                                Sid: 0,
                                ItemId: i.ItemId,
                                Count: i.Count,
                                Xp: a.Xp,
                                SelectCount: 0
                            }, this._allMaterials.push(o))
                        }
                        this._allMaterials.sort(this.SortMaterial.bind(this)), this.CustomLayout.RenderLayOut(this._allMaterials.length)
                    } else this.CustomLayout.node.active = !1
                }, t.prototype.SortMaterial = function(e, t) {
                    return e.Xp <= t.Xp ? -1 : 1
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = e.getComponent(m.default);
                        if (t >= n._allMaterials.length) o.Init(n._itemPrefab, void 0), o.node.name = "0";
                        else {
                            var r = n._allMaterials[t];
                            e.name = t.toString(), o.Init(n._itemPrefab, r)
                        }
                    })
                }, t.prototype.OnClose = function() {
                    I.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnHandbookClick = function() {
                    I.UIManager.Instance.ShowUIPanel(p.PanelConfig.EquipHandbookPanel.Path, this._currentEquipConfig.Id)
                }, t.prototype.RefreshProgressBar = function() {
                    0 == this._currentEquipConfig.NextId ? (this.Progress.progress = 1, this.ProgressLabel.string = this._currentEquipConfig.Xp + "/" + this._currentEquipConfig.Xp) : (this.Progress.progress = this._selectForgingValue / this._totalForgingValue, this.ProgressLabel.string = this._selectForgingValue + "/" + this._totalForgingValue)
                }, t.prototype.RefreshForgingValue = function() {
                    this._selectForgingValue = this._selectEquipData.Xp;
                    for (var e = 0; e < this._allMaterials.length; e++) {
                        var t = this._allMaterials[e];
                        t.SelectCount > 0 && (this._selectForgingValue += t.Xp * t.SelectCount)
                    }
                    this._selectForgingValue >= this._totalForgingValue ? l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_EQUIP_SELECT_FORGING, !0) : l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_EQUIP_SELECT_FORGING, !1), this._selectForgingValue > this._totalForgingValue ? (this._needRefreshTargetEquip = !0, this.ConfirmTargetEquip(this._targetEquipConfig.Id), this.ConfigTargetEquip(this._forgingTartId)) : this._needRefreshTargetEquip && (this._needRefreshTargetEquip = !1, this.ConfigTargetEquip(this._currentEquipConfig.NextId)), this.RefreshProgressBar(), this.RefreshCurrencyBar()
                }, t.prototype.ConfirmTargetEquip = function(e) {
                    if (0 != e) {
                        var t = d.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, e);
                        if (0 != t.NextId) {
                            var n = d.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, t.NextId);
                            this._selectForgingValue < n.Xp ? this._forgingTartId = t.Id : this.ConfirmTargetEquip(n.Id)
                        } else this._forgingTartId = t.Id
                    }
                }, t.prototype.RefreshCurrencyBar = function() {
                    this._selectMaterials = [];
                    for (var e = 0; e < this._allMaterials.length; e++)(i = this._allMaterials[e]).SelectCount > 0 && this._selectMaterials.push(i);
                    var t = this._selectEquipData.Xp + this._currentEquipConfig.Xp,
                        n = this._selectMaterials.length,
                        o = 0,
                        r = 0;
                    for (n > 0 && (t > this._selectMaterials[n - 1].Xp ? o = n : (r = t, o = n - 1)), e = 0; e < o; e++) {
                        var i;
                        r += (i = this._selectMaterials[e]).Xp * i.SelectCount
                    }
                    this._costCoin = r * this._costMode, this.CurrencyBar.Init(f.CommonItemId.Coin, !1, void 0, this._costCoin)
                }, t.prototype.OnAutoSelect = function() {
                    this.ResetAllMaterials(), this.ConfigCurrentEquip();
                    for (var e = this._selectEquipData.Xp, t = 0; t < this._allMaterials.length; t++) {
                        var n = this._allMaterials[t];
                        if (0 == n.Sid) {
                            for (var o = 0; o < n.Count && (e += n.Xp, n.SelectCount = o + 1, !(e >= this._totalForgingValue)); o++);
                            if (e >= this._totalForgingValue) break
                        } else if (e += n.Xp, n.SelectCount = 1, e >= this._totalForgingValue) break
                    }
                    this.CustomLayout.RenderLayOut(this._allMaterials.length), this.RefreshForgingValue()
                }, t.prototype.ResetAllMaterials = function() {
                    for (var e = 0; e < this._allMaterials.length; e++) this._allMaterials[e].SelectCount = 0
                }, t.prototype.OnForgeClick = function() {
                    if (this._selectMaterials.length <= 0) return C.UIUtlity.ShowFloatingHint("equip_material_select_first".ToUILocale());
                    var e = d.DataCenter.Instance.GetItemCount(f.CommonItemId.Coin);
                    if (this._costCoin > e) return C.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(f.CommonItemId.Coin.ToItemName()));
                    C.UIUtlity.ShowMaskPanel();
                    var t = new c.Req_Item_EquipmentForging;
                    t.EquipmentId = this._equipSid;
                    for (var n = [], o = 0; o < this._selectMaterials.length; o++) {
                        var r = this._selectMaterials[o],
                            i = [];
                        switch (r.Sid) {
                            case 0:
                                i = [1, r.ItemId, r.SelectCount];
                                break;
                            default:
                                i = [2, r.Sid, 1]
                        }
                        n[o] = new c.IntArray, n[o].Items = i
                    }
                    t.Materials = n, d.RpcComponent.Instance.Call(t, this.OnForgingSucces.bind(this), this.OnForgingFail.bind(this))
                }, t.prototype.OnForgingSucces = function() {
                    this.PlayBlessingSpine(), C.UIUtlity.CloseMaskPanel(), this.DisPlay(!0), C.UIUtlity.ShowFloatingHint("equip_succes".ToUILocale())
                }, t.prototype.OnForgingFail = function() {
                    C.UIUtlity.CloseMaskPanel()
                }, t.prototype.RefreshButtons = function() {
                    0 == this._currentEquipConfig.NextId ? (this.AutoSelectBtn.node.active = !1, this.ForgingBtn.node.active = !1, this.CurrencyBar.node.active = !1, this.MaxStarHint.node.active = !0) : (this.AutoSelectBtn.node.active = !0, this.ForgingBtn.node.active = !0, this.CurrencyBar.node.active = !0, this.MaxStarHint.node.active = !1)
                }, t.prototype.PlayBlessingSpine = function() {
                    var e = this;
                    this.ForgingSpine.node.active = !0, this.ForgingSpine.setAnimation(0, this.ForgingSpine.animation, !1), this.ForgingSpine.setCompleteListener(function() {
                        e.ForgingSpine.node.active = !1
                    })
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Node)], t.prototype, "LeftNode", void 0), i([P(cc.Node)], t.prototype, "Arrow", void 0), i([P(cc.Node)], t.prototype, "RightNode", void 0), i([P(b.default)], t.prototype, "Progress", void 0), i([P(cc.Label)], t.prototype, "ProgressLabel", void 0), i([P(g.default)], t.prototype, "CustomLayout", void 0), i([P(cc.Button)], t.prototype, "ReturnBtn", void 0), i([P(cc.Button)], t.prototype, "HnadbookBtn", void 0), i([P(cc.Label)], t.prototype, "HnadbookBtnLabel", void 0), i([P(_.default)], t.prototype, "CurrencyBar", void 0), i([P(cc.Button)], t.prototype, "AutoSelectBtn", void 0), i([P(cc.Label)], t.prototype, "AutoSelectBtnLabel", void 0), i([P(cc.Button)], t.prototype, "ForgingBtn", void 0), i([P(cc.Label)], t.prototype, "ForgingBtnLabel", void 0), i([P(cc.Node)], t.prototype, "LeftAttrNode", void 0), i([P(cc.Node)], t.prototype, "RightAttrNode", void 0), i([P(cc.Label)], t.prototype, "MaxStarHint", void 0), i([P(sp.Skeleton)], t.prototype, "ForgingSpine", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./EquipAttrItem": "EquipAttrItem",
        "./ForgingMaterialItem": "ForgingMaterialItem"
    }],
    EquipHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9fb3b8ShiZIEZNqa1YsL6zf", "EquipHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../Components/ItemComponent"),
            y = e("../Components/CustomLayout"),
            g = e("../Components/ItemClickComponent"),
            m = e("../Components/CustomToggle"),
            I = e("../../../Consts/Consts"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.ItemContainer = null, t.ItemName = null, t.AttrsItem = [], t.CustomLayout = null, t.Toggles = [], t._equipMap = new Map, t._isCustomLayoutInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "equip_handbook".ToUILocale(), this.InitToggles()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectId = t[0]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this._currentType = 0
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ConfigSelectItem(), this.ConfigAllEquips(), this.InitCustomLayout();
                    var t = this.Toggles[this._selectType - 1];
                    t.isChecked = !0, this.OnSwitchTab(t)
                }, t.prototype.InitToggles = function() {
                    for (var e = this.Toggles.length, t = 0; t < e; t++) {
                        var n = this.Toggles[t];
                        n.node.on("toggle", this.OnSwitchTab, this), n.Init(("equip_type_" + (t + 1)).ToUILocale())
                    }
                }, t.prototype.ConfigSelectItem = function() {
                    this._itemComponent || ((r = cc.instantiate(this._itemPrefab)).setParent(this.ItemContainer), r.getComponent(g.default).enabled = !1, r.on(cc.Node.EventType.TOUCH_END, this.OnShowSelectItemTip, this), this._itemComponent = r.getComponent(f.ItemComponent));
                    var e, t = d.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, this._selectId);
                    switch (t.Type) {
                        case I.ItemType.Equip:
                            e = d.ConfigDataComponent.Instance.GetConfigById(h.ItemEquipment_Config, this._selectId);
                            break;
                        case I.ItemType.HolyEquip:
                            e = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipment_Config, this._selectId)
                    }
                    this._selectType = e.Type, this._itemComponent.Init({
                        ItemId: this._selectId
                    }, f.ItemComponentType.ItemWithStar), this.ItemName.string = this._selectId.ToItemName(), this.ItemName.node.color = p.UIUtlity.GetLabelColorByQuality(t.Quality);
                    for (var n = 0, o = 0; o < e.Attrs.length && !(o > 1); o++) {
                        var r;
                        n++, (r = this.AttrsItem[o]).active = !0;
                        var i, a = e.Attrs[o].Items,
                            s = a[0],
                            l = a[1],
                            c = s % 4,
                            u = _.default.GetHeroAttribute(s, l);
                        cc.find("Icon", r).getComponent(cc.Sprite).spriteFrame = p.UIUtlity.HERO_ATTR_ICON_ATLAS.getSpriteFrame("attr_" + c), cc.find("Desc", r).getComponent(cc.Label).string = ("hero_attr_" + s).ToUILocale(), i = u.Value, cc.find("Value", r).getComponent(cc.Label).string = "+" + i
                    }
                    for (o = n; o < this.AttrsItem.length; o++) this.AttrsItem[o].active = !1
                }, t.prototype.ConfigAllEquips = function() {
                    this._equipMap.clear();
                    for (var e = d.ConfigDataComponent.Instance.GetArrayConfig(h.ItemEquipment_Config), t = 0; t < e.length; t++) {
                        var n = e[t];
                        (r = this._equipMap.get(n.Type)) || (r = [], this._equipMap.set(n.Type, r)), r.push(n)
                    }
                    var o = d.ConfigDataComponent.Instance.GetArrayConfig(h.HolyEquipment_Config);
                    for (t = 0; t < o.length; t++) {
                        var r;
                        n = o[t], (r = this._equipMap.get(n.Type)) || (r = [], this._equipMap.set(n.Type, r)), r.push(n)
                    }
                }, t.prototype.InitCustomLayout = function() {
                    this._isCustomLayoutInit || (this._isCustomLayoutInit = !0, this.CustomLayout.Init(this._itemPrefab))
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.name);
                    this._currentType != t && (this._currentType = t, this.CustomLayout.RenderLayOut(this._equipMap.get(t).length))
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = e.getComponent(f.ItemComponent),
                            r = n._equipMap.get(n._currentType)[t].Id;
                        o.Init({
                            ItemId: r
                        }, f.ItemComponentType.ItemWithStar), e.name = r.toString(), r == n._selectId ? o.SetSelectFlagState(!0) : o.SetSelectFlagState(!1)
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    var n = this.CustomLayout.node.children;
                    if (!(n.indexOf(t) < 0)) {
                        for (var o = 0; o < n.length; o++) {
                            var r = n[o];
                            if (Number.parseInt(r.name) == this._selectId) {
                                r.getComponent(f.ItemComponent).SetSelectFlagState(!1);
                                break
                            }
                        }
                        this._selectId = e, this.ConfigSelectItem();
                        var i = t.getComponent(f.ItemComponent);
                        i.SetSelectFlagState(!0), i.ShowItemTip()
                    }
                }, t.prototype.OnShowSelectItemTip = function() {
                    this._itemComponent.ShowItemTip()
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Node)], t.prototype, "ItemContainer", void 0), i([b(cc.Label)], t.prototype, "ItemName", void 0), i([b(cc.Node)], t.prototype, "AttrsItem", void 0), i([b(y.default)], t.prototype, "CustomLayout", void 0), i([b(m.default)], t.prototype, "Toggles", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    EquipmentChangeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5ebd6Eo0M5FMblUpUDmob/8", "EquipmentChangeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../../../GamePlay/Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.HeroContainer = null, t.HeroItemContainer = null, t.OwnerNode = null, t.WearName = null, t.ItemName = null, t.ItemScore = null, t.ChangeBtn = null, t.ChangeBtnLabel = null, t.WearBtn = null, t.WearBtnLabel = null, t.TakeOffBtn = null, t.TakeOffLabel = null, t.BtnUpLabel = null, t._isInitial = !1, t._usedByEquipmentSet = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._isInitial || (this._isInitial = !0, this.InitUI()), t.UsedByHolyRelic && (this._usedByEquipmentSet = !0), this._selectHero = e, this._customEquipData = t, this._itemPrefab = n, this.ConfigEquipItem(), this.ConfigHeroItem(), this.ConfigButtons()
                }, t.prototype.InitUI = function() {
                    this.ChangeBtn.node.on("click", this.OnWear, this), this.WearBtn.node.on("click", this.OnWear, this), this.TakeOffBtn.node.on("click", this.ClickTakeOffBtn, this), this.ChangeBtnLabel.string = "equip_replace".ToUILocale(), this.WearBtnLabel.string = "equip_wear".ToUILocale(), this.TakeOffLabel.string = "PowerCore_Remove".ToUILocale()
                }, t.prototype.ConfigEquipItem = function() {
                    if (!this._equipComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._equipComponent = e.getComponent(g.ItemComponent)
                    }
                    if (this._customEquipData.IsHolyEquip) this.ItemScore.string = "equip_score_tag".ToUILocale() + ": " + C.default.Instance.GetHolyEquipScore(this._customEquipData.Sid).toString();
                    else {
                        var t = c.ConfigDataComponent.Instance.GetConfigById(u.ItemEquipment_Config, this._customEquipData.ItemId);
                        this.ItemScore.string = "equip_score_tag".ToUILocale() + ": " + t.Score
                    }
                    this._equipComponent.Init({
                        ItemId: this._customEquipData.ItemId,
                        Sid: this._customEquipData.Sid,
                        StarLevel: this._customEquipData.Star
                    }, g.ItemComponentType.ItemWithStar), this.ItemName.string = this._customEquipData.ItemId.ToItemName()
                }, t.prototype.ConfigHeroItem = function() {
                    if (this._usedByEquipmentSet) this.HeroContainer.active = !1;
                    else {
                        if (!this._heroComponent) {
                            var e = cc.instantiate(this._itemPrefab);
                            e.setParent(this.HeroItemContainer), this._heroComponent = e.getComponent(g.ItemComponent)
                        }
                        this._customEquipData.OwnerId > 0 ? (this._heroComponent.node.active = !0, this._owner = c.DataCenter.Instance.GetDataById(s.UserHero_Model, this._customEquipData.OwnerId), this._heroComponent.Init(this._owner, g.ItemComponentType.HeroInfo), this.WearName.string = "equip_worn_by".ToUILocale().Fmt(this._owner.HeroId.ToHeroName()), this.OwnerNode.active = !0) : (this._owner = void 0, this._heroComponent.node.active = !1, this.OwnerNode.active = !1)
                    }
                }, t.prototype.ConfigButtons = function() {
                    this.TakeOffBtn.node.active = !1, this._usedByEquipmentSet ? (this.TakeOffBtn.node.active = 1 == this._customEquipData.IsSelf, this.ChangeBtn.node.active = !this._customEquipData.IsSelf && (0 === this._customEquipData.EquipmentSetTeamIndex || this._customEquipData.EquipmentSetTeamIndex > 0), this.WearBtn.node.active = !this._customEquipData.IsSelf && (null == this._customEquipData.EquipmentSetTeamIndex || null == this._customEquipData.EquipmentSetTeamIndex), 0 === this._customEquipData.EquipmentSetTeamIndex || this._customEquipData.EquipmentSetTeamIndex > 0 ? this.BtnUpLabel.string = "HolyRelic_wearInfo".ToUILocale().Fmt(this._customEquipData.EquipmentSetTeamIndex + 1, this._customEquipData.EquipmentSetTeamSlot + 1) : this.BtnUpLabel.string = "") : this._owner ? (this.ChangeBtn.node.active = !0, this.WearBtn.node.active = !1) : (this.ChangeBtn.node.active = !1, this.WearBtn.node.active = !0)
                }, t.prototype.OnClickItem = function(e, t) {
                    t == this._equipComponent.node && this._equipComponent.ShowItemTip()
                }, t.prototype.OnWear = function() {
                    if (this._usedByEquipmentSet) a.Game.EventDispatcher.Emit(_.EventKeys.HOLYRELIC_WEAR, this._customEquipData);
                    else {
                        l.UIUtlity.ShowMaskPanel();
                        var e = new s.Req_Item_EquipmentPutOn;
                        0 == this._customEquipData.Sid ? (e.StorageType = m.EquipmentStorageType.Items, e.EquipmentId = this._customEquipData.ItemId) : (this._customEquipData.IsHolyEquip ? e.StorageType = m.EquipmentStorageType.Holy : e.StorageType = m.EquipmentStorageType.Equipment, e.EquipmentId = this._customEquipData.Sid), e.OwnerId = this._selectHero.Sid, this._oldBP = this._selectHero.Power, c.RpcComponent.Instance.Call(e, this.OnWearSucces.bind(this), this.OnWearFail.bind(this))
                    }
                }, t.prototype.OnWearSucces = function() {
                    p.UIManager.Instance.CloseUIPanel(I.PanelConfig.EquipmentChangePanel.Path), l.UIUtlity.CloseMaskPanel(), a.Game.EventDispatcher.Emit(_.EventKeys.EVENT_EQUIP_DATA_REFRESH);
                    var e = c.DataCenter.Instance.GetDataById(s.UserHero_Model, this._selectHero.Sid);
                    p.UIManager.Instance.ShowUIPanel(I.PanelConfig.BattlePowerChangePanel.Path, this._oldBP, e.Power)
                }, t.prototype.OnWearFail = function() {
                    p.UIManager.Instance.CloseUIPanel(I.PanelConfig.EquipmentChangePanel.Path), l.UIUtlity.CloseMaskPanel()
                }, t.prototype.ClickTakeOffBtn = function() {
                    this._usedByEquipmentSet && a.Game.EventDispatcher.Emit(_.EventKeys.HOLYRELIC_WEAR, this._customEquipData)
                }, i([f(cc.Node)], t.prototype, "ItemContainer", void 0), i([f(cc.Node)], t.prototype, "HeroContainer", void 0), i([f(cc.Node)], t.prototype, "HeroItemContainer", void 0), i([f(cc.Node)], t.prototype, "OwnerNode", void 0), i([f(cc.Label)], t.prototype, "WearName", void 0), i([f(cc.Label)], t.prototype, "ItemName", void 0), i([f(cc.Label)], t.prototype, "ItemScore", void 0), i([f(cc.Button)], t.prototype, "ChangeBtn", void 0), i([f(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([f(cc.Button)], t.prototype, "WearBtn", void 0), i([f(cc.Label)], t.prototype, "WearBtnLabel", void 0), i([f(cc.Button)], t.prototype, "TakeOffBtn", void 0), i([f(cc.Label)], t.prototype, "TakeOffLabel", void 0), i([f(cc.Label)], t.prototype, "BtnUpLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y;
        var g = e("../Components/ItemComponent"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../Auxiliary/DataUtlity");
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    EquipmentChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a1d89tiMBpP1osEw9dHJEbH", "EquipmentChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../GamePlay/Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../Components/ItemComponent"),
            I = e("../Components/CustomLayout"),
            _ = e("./EquipmentChangeItem"),
            C = e("../Components/ItemClickComponent"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../Components/LuckyCharmTabComponent"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.ItemContainer = null, t.ItemName = null, t.TagContainer = null, t.TagLabel = null, t.ItemTypeDesc = null, t.ItemTypeValue = null, t.ItemScoreDesc = null, t.ItemScoreValue = null, t.CustomLayout = null, t.NoneEquipHint = null, t.ResetButton = null, t.SelectWearTabButton = null, t.SelectWearTabLabel = null, t.SelectWearTabArrow = null, t.SelectSuitTabButton = null, t.SelectSuitTabLabel = null, t.SelectSuitTabArrow = null, t.HintNode = null, t.HintLayout = null, t.BgNode = null, t._allEquips = [], t._isCusomLayoutInit = !1, t._usedByHolyRelic = !1, t._needFliterSelf = !0, t._selectTabIndexs = [-1, -1], t._selectTab = -1, t._tabComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(p.EventKeys.HOLYRELIC_WEAR, this.OnWearHolyRelicEqu, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.RefreshTab, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), l.Game.EventDispatcher.Off(p.EventKeys.HOLYRELIC_WEAR, this.OnWearHolyRelicEqu, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.RefreshTab, this), this.unscheduleAllCallbacks()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(d.BundlePath.ItemComponent), n = this.LoadDynamicAsset("EquipmentPanel/EquipmentChangeItem"), o = this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmTabComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._changeItemPrefab = e[1], r._tabPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ItemTypeDesc.string = "equip_type_tag".ToUILocale(), this.ItemScoreDesc.string = "equip_score_tag".ToUILocale(), this.TagLabel.string = "equip_current_wear".ToUILocale(), this.NoneEquipHint.string = "equip_empty_hint".ToUILocale(), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.SelectWearTabButton.node.on("click", this.OnSelectWearTabButtonClick, this), this.SelectSuitTabButton.node.on("click", this.OnSelectSuitTabButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectHero = t[0], this._paramId = t[1], t.length > 2 ? this._isHolyEquip = t[2] : this._isHolyEquip = !1, t[3] && (this._usedByHolyRelic = !0, this._needFliterSelf = !1, this._equipmentSetData = t[3]), this.GetWearDescs(), this.GetSuitDescs()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.RefreshEquipData(), this.ConfigSelectItem(), this.InitCusomtLayout(), this.ConfigEquipMents(), this.SetTabNode()
                }, t.prototype.RefreshEquipData = function() {
                    this._paramId < 0 ? (this._equipType = Math.abs(this._paramId), this._selectEquipData = void 0, this._selectHolyEquipData = void 0) : this._isHolyEquip ? (this._selectHolyEquipData = f.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, this._paramId), this._selectHolyEquipItem = f.ConfigDataComponent.Instance.GetConfigById(y.HolyEquipment_Config, this._selectHolyEquipData.ItemId), this._equipType = this._selectHolyEquipItem.Type) : (this._selectEquipData = f.DataCenter.Instance.GetDataById(c.Equipment_Model, this._paramId), this._selectEquipData ? this._selectEquipItem = f.ConfigDataComponent.Instance.GetConfigById(y.ItemEquipment_Config, this._selectEquipData.ItemId) : this._selectEquipItem = f.ConfigDataComponent.Instance.GetConfigById(y.ItemEquipment_Config, this._paramId), this._equipType = this._selectEquipItem.Type)
                }, t.prototype.ConfigSelectItem = function() {
                    if (this.ItemTypeValue.string = ("equip_type_" + this._equipType).ToUILocale(), !this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), e.getComponent(C.default).enabled = !1, this._itemComponent = e.getComponent(m.ItemComponent)
                    }
                    this._selectEquipData ? (this._itemComponent.Init({
                        ItemId: this._selectEquipItem.Id
                    }, m.ItemComponentType.ItemWithStar), this.ItemScoreValue.string = this._selectEquipItem.Score.toString(), this.ItemName.string = this._selectEquipData.ItemId.ToItemName(), this.ItemName.node.color = h.UIUtlity.GetLabelColorByQuality(this._selectEquipItem.Star), this.ItemName.getComponent(cc.LabelOutline).enabled = !0, this.TagContainer.active = !0) : this._selectHolyEquipData ? (this._itemComponent.Init({
                        ItemId: this._selectHolyEquipItem.Id,
                        StarLevel: this._selectHolyEquipData.Star,
                        Sid: this._selectHolyEquipData.Sid
                    }, m.ItemComponentType.ItemWithStar), this.ItemScoreValue.string = v.default.Instance.GetHolyEquipScore(this._selectHolyEquipData.Sid).toString(), this.ItemName.string = this._selectHolyEquipData.ItemId.ToItemName(), this.ItemName.node.color = h.UIUtlity.GetLabelColorByQuality(7), this.ItemName.getComponent(cc.LabelOutline).enabled = !0, this.TagContainer.active = !0) : this._usedByHolyRelic && this._selectEquipItem ? (this._itemComponent.Init({
                        ItemId: this._selectEquipItem.Id
                    }, m.ItemComponentType.ItemWithStar), this.ItemScoreValue.string = this._selectEquipItem.Score.toString(), this.ItemName.string = this._selectEquipItem.Id.ToItemName(), this.ItemName.node.color = h.UIUtlity.GetLabelColorByQuality(this._selectEquipItem.Star), this.ItemName.getComponent(cc.LabelOutline).enabled = !0, this.TagContainer.active = !0) : (this._itemComponent.SetItemSimpleState(), this._itemComponent.SetCustomIcon(h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("equip_" + this._equipType)), this.ItemScoreValue.string = "", this.ItemName.string = "equip_none_select".ToUILocale(), this.ItemName.node.color = new cc.Color(98, 78, 60), this.ItemName.getComponent(cc.LabelOutline).enabled = !1, this.TagContainer.active = !1)
                }, t.prototype.InitCusomtLayout = function() {
                    this._isCusomLayoutInit || (this._isCusomLayoutInit = !0, this.CustomLayout.Init(this._changeItemPrefab))
                }, t.prototype.ConfigEquipMents = function() {
                    this._allEquips = [];
                    for (var e = f.DataCenter.Instance.GetDataList(c.HolyEquipment_Model), t = 0; t < e.length; t++) {
                        var n = e[t],
                            o = f.ConfigDataComponent.Instance.GetConfigById(y.HolyEquipment_Config, n.ItemId);
                        if (!(this._selectHolyEquipData && this._needFliterSelf && n.Sid == this._selectHolyEquipData.Sid || o.Type != this._equipType)) {
                            var r = void 0,
                                i = void 0,
                                a = void 0,
                                s = void 0;
                            this._usedByHolyRelic && (p = this.GetEquipmentSetInfo(n.Sid, 1)) && (r = p.equipmentSetTeamIndex, i = p.equipmentSetTeamSlot, a = p.equipmentSetIndex, s = p.equipmentSetTeamIndex == this._equipmentSetData.TeamIndex && p.equipmentSetTeamSlot == this._equipmentSetData.Slot);
                            var l = {
                                Sid: n.Sid,
                                ItemId: n.ItemId,
                                Count: 1,
                                OwnerId: n.OwnerId,
                                Xp: n.Xp,
                                IsHolyEquip: !0,
                                Star: n.Star,
                                EquipmentSetTeamIndex: r,
                                EquipmentSetTeamSlot: i,
                                EquipmentSetIndex: a,
                                UsedByHolyRelic: this._usedByHolyRelic,
                                IsSelf: s
                            };
                            this.CheckEquipCanShow(n) && this._allEquips.push(l)
                        }
                    }
                    var u = f.DataCenter.Instance.GetDataList(c.Equipment_Model);
                    for (t = 0; t < u.length; t++) {
                        var p;
                        if (n = u[t], o = f.ConfigDataComponent.Instance.GetConfigById(y.ItemEquipment_Config, n.ItemId), !(this._selectEquipData && this._needFliterSelf && n.Sid == this._selectEquipData.Sid || o.Type != this._equipType)) r = void 0, i = void 0, a = void 0, s = void 0, this._usedByHolyRelic && (p = this.GetEquipmentSetInfo(n.Sid, 0)) && (r = p.equipmentSetTeamIndex, i = p.equipmentSetTeamSlot, a = p.equipmentSetIndex, s = p.equipmentSetTeamIndex == this._equipmentSetData.TeamIndex && p.equipmentSetTeamSlot == this._equipmentSetData.Slot), l = {
                            Sid: n.Sid,
                            ItemId: n.ItemId,
                            Count: 1,
                            OwnerId: n.OwnerId,
                            Xp: n.Xp + o.Xp,
                            IsHolyEquip: !1,
                            EquipmentSetTeamIndex: r,
                            EquipmentSetTeamSlot: i,
                            EquipmentSetIndex: a,
                            UsedByHolyRelic: this._usedByHolyRelic,
                            IsSelf: s
                        }, this.CheckEquipCanShow(n) && this._allEquips.push(l)
                    }
                    this._usedByHolyRelic && this.SetEquipmentSetCountMap();
                    var d = f.DataCenter.Instance.GetDataList(c.UserItem_Model);
                    for (t = 0; t < d.length; t++)
                        if (!((n = d[t]).Count <= 0) && f.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, n.ItemId).Type == g.ItemType.Equip) {
                            if ((o = f.ConfigDataComponent.Instance.GetConfigById(y.ItemEquipment_Config, n.ItemId)).Type != this._equipType) continue;
                            if (this._usedByHolyRelic)
                                for (var h = 0; h < n.Count; h++) {
                                    r = void 0, i = void 0, a = void 0, s = void 0;
                                    var m = !1;
                                    if (this._equipmentSetCountMap && this._equipmentSetCountMap[n.ItemId] && this._equipmentSetCountMap[n.ItemId].length > 0) {
                                        var I = this._equipmentSetCountMap[n.ItemId].shift();
                                        r = I.TeamIndex, i = I.Slot, a = I.Index, s = I.TeamIndex == this._equipmentSetData.TeamIndex && I.Slot == this._equipmentSetData.Slot
                                    } else m = !0;
                                    if (l = {
                                            Sid: 0,
                                            ItemId: n.ItemId,
                                            Count: n.Count,
                                            OwnerId: 0,
                                            Xp: o.Xp,
                                            IsHolyEquip: !1,
                                            EquipmentSetTeamIndex: r,
                                            EquipmentSetTeamSlot: i,
                                            EquipmentSetIndex: a,
                                            UsedByHolyRelic: this._usedByHolyRelic,
                                            IsSelf: s
                                        }, this.CheckEquipCanShow(n) && this._allEquips.push(l), m) break
                                } else l = {
                                    Sid: 0,
                                    ItemId: n.ItemId,
                                    Count: n.Count,
                                    OwnerId: 0,
                                    Xp: o.Xp,
                                    IsHolyEquip: !1
                                }, this.CheckEquipCanShow(n) && this._allEquips.push(l)
                        } this._allEquips.length > 0 ? (this.NoneEquipHint.node.active = !1, this._allEquips.sort(this.SortEquips.bind(this))) : this.NoneEquipHint.node.active = !0, this.CustomLayout.RenderLayOut(this._allEquips.length)
                }, t.prototype.CheckEquipCanShow = function(e) {
                    var t = !0;
                    if (this._selectTabIndexs[0] > 0) switch (this._selectTabIndexs[0]) {
                        case 1:
                            t = !(e instanceof c.UserItem_Model) && e.OwnerId > 0;
                            break;
                        case 2:
                            (e instanceof c.HolyEquipment_Model || e instanceof c.Equipment_Model) && (t = !e.OwnerId)
                    }
                    if (t && this._selectTabIndexs[1] > 0)
                        if (e instanceof c.UserItem_Model || e instanceof c.Equipment_Model) t = !1;
                        else {
                            var n = f.ConfigDataComponent.Instance.GetConfigById(y.HolyEquipment_Config, e.ItemId);
                            n && n.SuitId != this._selectTabIndexs[1] && (t = !1)
                        } return t
                }, t.prototype.GetEquipmentSetInfo = function(e, t) {
                    var n, o = f.DataCenter.Instance.GetTempData("EquipmentSetDatas");
                    for (var r in o)
                        for (var i in o[r])
                            for (var a in o[r][i][t])
                                if (o[r][i][t][a].Id == e) return (n = {}).equipmentSetTeamIndex = Number(r), n.equipmentSetTeamSlot = Number(i), n.equipmentSetIndex = Number(a), n;
                    return n
                }, t.prototype.SetEquipmentSetCountMap = function() {
                    var e = this;
                    this._equipmentSetCountMap = {}, this._equipmentSetData.EquipItemDatas.forEach(function(t) {
                        e._equipmentSetCountMap[t.ItemId] ? e._equipmentSetCountMap[t.ItemId].push(t) : e._equipmentSetCountMap[t.ItemId] = [t]
                    })
                }, t.prototype.SortEquips = function(e, t) {
                    return e.IsHolyEquip && !t.IsHolyEquip ? -1 : !e.IsHolyEquip && t.IsHolyEquip ? 1 : e.IsHolyEquip && t.IsHolyEquip ? e.Star > t.Star ? -1 : e.Star < t.Star ? 1 : e.OwnerId && !t.OwnerId ? 1 : !e.OwnerId && t.OwnerId ? -1 : 0 : e.Xp > t.Xp ? -1 : e.Xp < t.Xp ? 1 : e.OwnerId && !t.OwnerId ? 1 : !e.OwnerId && t.OwnerId ? -1 : 0
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(_.default).Init(n._selectHero, n._allEquips[t], n._itemPrefab)
                    })
                }, t.prototype.OnWearHolyRelicEqu = function(e) {
                    var t, n;
                    t = this._isHolyEquip ? u.ArtefactRelicEquipIndex.HolyEquip : this._selectEquipData ? u.ArtefactRelicEquipIndex.Equip : 99, n = e.IsHolyEquip ? u.ArtefactRelicEquipIndex.HolyEquip : e.Sid > 0 ? u.ArtefactRelicEquipIndex.Equip : 99;
                    var o = {};
                    e.IsSelf ? (o.Type = 1, o.CurEquipType = t, o.CurTeamIndex = this._equipmentSetData.TeamIndex, o.CurSlot = this._equipmentSetData.Slot, o.CurIndex = this._equipmentSetData.Index) : this._paramId < 0 && (null == e.EquipmentSetTeamIndex || null == e.EquipmentSetTeamIndex) ? (o.Type = 2, o.CurTeamIndex = this._equipmentSetData.TeamIndex, o.CurSlot = this._equipmentSetData.Slot, o.CurIndex = this._equipmentSetData.Index, o.TargetEquipType = n, o.TargetSid = 99 == n ? e.ItemId : e.Sid) : (o.Type = 3, o.CurEquipType = t, o.CurTeamIndex = this._equipmentSetData.TeamIndex, o.CurSlot = this._equipmentSetData.Slot, o.CurIndex = this._equipmentSetData.Index, o.TargetEquipType = n, o.TargetTeamIndex = e.EquipmentSetTeamIndex, o.TargetSlot = e.EquipmentSetTeamSlot, o.TargetIndex = e.EquipmentSetIndex, o.TargetSid = 99 == n ? e.ItemId : e.Sid), l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_COMMON_EQUIPMENT_SET_DATA, o), this.Close()
                }, t.prototype.SetTabNode = function() {
                    this.SelectWearTabLabel.string = this._selectTabIndexs[0] > -1 ? this._tabWearDescs[this._selectTabIndexs[0]] : "equipSelect_wear".ToUILocale(), this.SelectWearTabArrow.scaleY = 0 == this._selectTab ? 1 : -1, this.SelectSuitTabLabel.string = this._selectTabIndexs[1] > -1 ? this._tabSuitDescs[this._selectTabIndexs[1]] : "equipSelect_suit".ToUILocale(), this.SelectSuitTabArrow.scaleY = 1 == this._selectTab ? 1 : -1
                }, t.prototype.SetTabDescNodes = function() {
                    var e, t = this;
                    if (0 == this._selectTab ? e = this._tabWearDescs : 1 == this._selectTab && (e = this._tabSuitDescs), e && e.length > 0 && (e.forEach(function(n, o) {
                            if (!t._tabComponents[o]) {
                                var r = cc.instantiate(t._tabPrefab);
                                r.parent = t.HintLayout, t._tabComponents[o] = r.getComponent(b.default)
                            }
                            t._tabComponents[o].node.active = !0, t._tabComponents[o].InitUI(t._selectTabIndexs[t._selectTab], o, n, e.length)
                        }), this._tabComponents.length > e.length))
                        for (var n = e.length; n < this._tabComponents.length; n++) this._tabComponents[n].node.active = !1
                }, t.prototype.GetWearDescs = function() {
                    this._tabWearDescs = ["allianceLog_all".ToUILocale(), "heroSkin_hasDress".ToUILocale(), "equipSelect_no_wear".ToUILocale()]
                }, t.prototype.GetSuitDescs = function() {
                    var e = this;
                    this._tabSuitDescs = ["allianceLog_all".ToUILocale()], f.ConfigDataComponent.Instance.GetArrayConfig(y.HolyEquipSuit_Config).forEach(function(t) {
                        e._tabSuitDescs.push(t.Id.ToHolyEquipSuitName())
                    })
                }, t.prototype.SetHintNodePosition = function() {
                    var e;
                    if (0 == this._selectTab ? e = this.SelectWearTabButton : 1 == this._selectTab && (e = this.SelectSuitTabButton), e) {
                        var t = e.node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            n = this.BgNode.convertToNodeSpaceAR(t);
                        this.HintNode.x = n.x
                    }
                }, t.prototype.OnResetButtonClick = function() {
                    this.HintNode.active = !1, this._selectTabIndexs = [-1, -1], this._selectTab = -1, this.SetTabNode(), this.ConfigEquipMents()
                }, t.prototype.OnSelectWearTabButtonClick = function() {
                    this._selectTab = 0 == this._selectTab ? -1 : 0, this.HintNode.active = 0 == this._selectTab, this.SetTabNode(), 0 == this._selectTab && (this.SetTabDescNodes(), this.SetHintNodePosition())
                }, t.prototype.OnSelectSuitTabButtonClick = function() {
                    this._selectTab = 1 == this._selectTab ? -1 : 1, this.HintNode.active = 1 == this._selectTab, this.SetTabNode(), 1 == this._selectTab && (this.SetTabDescNodes(), this.SetHintNodePosition())
                }, t.prototype.RefreshTab = function(e) {
                    -1 != this._selectTab && (this._selectTabIndexs[this._selectTab] = e, this.SetTabNode(), this.SetTabDescNodes(), this.ConfigEquipMents())
                }, i([P(cc.Node)], t.prototype, "ItemContainer", void 0), i([P(cc.Label)], t.prototype, "ItemName", void 0), i([P(cc.Node)], t.prototype, "TagContainer", void 0), i([P(cc.Label)], t.prototype, "TagLabel", void 0), i([P(cc.Label)], t.prototype, "ItemTypeDesc", void 0), i([P(cc.Label)], t.prototype, "ItemTypeValue", void 0), i([P(cc.Label)], t.prototype, "ItemScoreDesc", void 0), i([P(cc.Label)], t.prototype, "ItemScoreValue", void 0), i([P(I.default)], t.prototype, "CustomLayout", void 0), i([P(cc.Label)], t.prototype, "NoneEquipHint", void 0), i([P(cc.Button)], t.prototype, "ResetButton", void 0), i([P(cc.Button)], t.prototype, "SelectWearTabButton", void 0), i([P(cc.Label)], t.prototype, "SelectWearTabLabel", void 0), i([P(cc.Node)], t.prototype, "SelectWearTabArrow", void 0), i([P(cc.Button)], t.prototype, "SelectSuitTabButton", void 0), i([P(cc.Label)], t.prototype, "SelectSuitTabLabel", void 0), i([P(cc.Node)], t.prototype, "SelectSuitTabArrow", void 0), i([P(cc.Node)], t.prototype, "HintNode", void 0), i([P(cc.Node)], t.prototype, "HintLayout", void 0), i([P(cc.Node)], t.prototype, "BgNode", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyCharmTabComponent": "LuckyCharmTabComponent",
        "./EquipmentChangeItem": "EquipmentChangeItem"
    }],
    EquipmentGalleryChangeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5e227P0j29OmKwlErAig8gs", "EquipmentGalleryChangeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("./ItemComponent"),
            p = e("./SimpleAttrComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Components/Components"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.EquipmentItemNode = null, t.AllAddtionTag = null, t.AllAddtionAttrContainer = null, t.SpecialAddtionTag = null, t.SpecialAddtionAttrContainer = null, t.PreviewButton = null, t.HeroTag = null, t.ChangeButton = null, t.ChangeButtonLabel = null, t.AddButton = null, t.AddButtonLabel = null, t.HeroNode = null, t._allAttrComponentArray = [], t._specialAttrComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.AllAddtionTag.string = "HolyEquipmentGallery_Addtion_All".ToUILocale(), this.SpecialAddtionTag.string = "HolyEquipmentGallery_Addtion_Special".ToUILocale(), this.ChangeButtonLabel.string = "HolyEquipmentGallery_Equipment_Change".ToUILocale(), this.AddButtonLabel.string = "HolyEquipmentGallery_Equipment_Add".ToUILocale(), this.PreviewButton.node.on("click", this.OnPreviewButtonClick, this), this.ChangeButton.node.on("click", this.OnChangeButtonClick, this), this.AddButton.node.on("click", this.OnChangeButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._isChange = e, this._equipmentModel = t, this._soltIndex = n, this._itemPrefab = o, this._attrPrefab = r, this.ChangeButton.node.active = e, this.AddButton.node.active = !e, this.SetEquipNode(), this.SetAttrContainer(), this.SetHeroNode()
                }, t.prototype.SetEquipNode = function() {
                    if (!this._equipComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.EquipmentItemNode), this._equipComponent = e.getComponent(u.ItemComponent)
                    }
                    this._equipComponent.Init({
                        ItemId: this._equipmentModel.ItemId,
                        StarLevel: this._equipmentModel.Star,
                        Sid: this._equipmentModel.Sid,
                        URStarLevel: this._equipmentModel.Step
                    }, u.ItemComponentType.ItemWithStar), this.Name.string = this._equipmentModel.ItemId.ToItemName()
                }, t.prototype.SetAttrContainer = function() {
                    var e = {},
                        t = {},
                        n = c.ConfigDataComponent.Instance.GetConfigById(s.HolyEquipment_Config, this._equipmentModel.ItemId),
                        o = 10 + n.Type;
                    if (e = this.GetAttrDataMap(e, o, this._equipmentModel.Star, !1), t = this.GetAttrDataMap(t, o, this._equipmentModel.Star, !0), this._equipmentModel.Step) {
                        var r = 10 * n.State + n.Type;
                        e = this.GetAttrDataMap(e, r, this._equipmentModel.Step - 1, !1), t = this.GetAttrDataMap(t, r, this._equipmentModel.Step - 1, !0)
                    }
                    var i = 0;
                    for (var a in e)(u = this._allAttrComponentArray[i]) || ((d = cc.instantiate(this._attrPrefab)).setParent(this.AllAddtionAttrContainer), u = d.getComponent(p.default), this._allAttrComponentArray[i] = u), u.node.active = !0, u.Init(Number(a), e[a]), i++;
                    var l = 0;
                    for (var a in t) {
                        var u, d;
                        (u = this._specialAttrComponentArray[l]) || ((d = cc.instantiate(this._attrPrefab)).setParent(this.SpecialAddtionAttrContainer), u = d.getComponent(p.default), this._specialAttrComponentArray[l] = u), u.node.active = !0, u.Init(Number(a), t[a]), l++
                    }
                }, t.prototype.GetAttrDataMap = function(e, t, n, o) {
                    for (var r = c.ConfigDataComponent.Instance.GetConfigById(s.HolyEquipSlotAddon_Config, t), i = o ? r.SelfAttrIds[n] : r.AllAttrIds[n], a = c.ConfigDataComponent.Instance.GetConfigById(s.CommonAttrs_Config, i), l = 0; l < a.Attrs.length; l++) {
                        var u = a.Attrs[l].Items[0],
                            p = a.Attrs[l].Items[1];
                        e[u] ? e[u] += p : e[u] = p
                    }
                    return e
                }, t.prototype.SetHeroNode = function() {
                    if (!this._heroComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.HeroNode), this._heroComponent = e.getComponent(u.ItemComponent)
                    }
                    if (this._equipmentModel.OwnerId) {
                        var t = c.DataCenter.Instance.GetDataById(l.UserHero_Model, this._equipmentModel.OwnerId);
                        this._heroComponent.Init({
                            ItemId: t.HeroId,
                            StarLevel: t.StarLevel
                        }, u.ItemComponentType.HeroInfo), this.HeroTag.string = "holyEquip_worn_by".ToUILocale()
                    } else this._heroComponent.SetItemSimpleState(), this.HeroTag.string = "HolyEquipmentGallery_Equipment_Change_unworn".ToUILocale()
                }, t.prototype.OnPreviewButtonClick = function() {
                    a.UIManager.Instance.ShowUIPanel(h.PanelConfig.HolyEquipmentGalleryAddtionPreviewPanel.Path, this._equipmentModel)
                }, t.prototype.OnChangeButtonClick = function() {
                    var e = this,
                        t = y.DataCenter.Instance.GetIntData(f.UserDataKey.Power),
                        n = new l.Req_Team_HolyEquipGalleryPutOn;
                    n.EquipId = this._equipmentModel.Sid, n.Slot = this._soltIndex, c.RpcComponent.Instance.Call(n, function() {
                        a.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattlePowerChangePanel.Path, t, y.DataCenter.Instance.GetIntData(f.UserDataKey.Power)), e._isChange ? d.UIUtlity.ShowFloatingHint("HolyEquipmentGallery_Equipment_Change_Success".ToUILocale()) : d.UIUtlity.ShowFloatingHint("HolyEquipmentGallery_Equipment_Add_Success".ToUILocale()), a.UIManager.Instance.BackUIPanel()
                    })
                }, i([I(cc.Label)], t.prototype, "Name", void 0), i([I(cc.Node)], t.prototype, "EquipmentItemNode", void 0), i([I(cc.Label)], t.prototype, "AllAddtionTag", void 0), i([I(cc.Node)], t.prototype, "AllAddtionAttrContainer", void 0), i([I(cc.Label)], t.prototype, "SpecialAddtionTag", void 0), i([I(cc.Node)], t.prototype, "SpecialAddtionAttrContainer", void 0), i([I(cc.Button)], t.prototype, "PreviewButton", void 0), i([I(cc.Label)], t.prototype, "HeroTag", void 0), i([I(cc.Button)], t.prototype, "ChangeButton", void 0), i([I(cc.Label)], t.prototype, "ChangeButtonLabel", void 0), i([I(cc.Button)], t.prototype, "AddButton", void 0), i([I(cc.Label)], t.prototype, "AddButtonLabel", void 0), i([I(cc.Node)], t.prototype, "HeroNode", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent",
        "./SimpleAttrComponent": "SimpleAttrComponent"
    }],
    EquipmentGalleryEntryItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "737b8N3zi1Oy6IZ8131y55R", "EquipmentGalleryEntryItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.StarCount = null, t.Name = null, t.SpineContainer = null, t.ClickNode = null, t._originPos = new cc.Vec3(0, 0, 0), t._overPos = new cc.Vec3(0, 20, 0), t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ClickNode.on(cc.Node.EventType.TOUCH_END, this.OnEntryItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._type = e, this.StarCount.string = "x" + t, this.Icon.spriteFrame = o.getSpriteFrame("equipment_" + this._type), this.Name.string = ("HolyEquipmentGallery_Equipment_Name_" + this._type).ToUILocale().Fmt(n), this.SetSpineAni()
                }, t.prototype.SetSpineAni = function() {
                    cc.tween(this.SpineContainer).repeatForever(cc.tween().to(1.5, {
                        position: this._overPos
                    }, {
                        easing: "quadInOut"
                    }).to(1.5, {
                        position: this._originPos
                    }, {
                        easing: "quadInOut"
                    })).start()
                }, t.prototype.OnEntryItemClick = function() {
                    a.UIManager.Instance.ShowUIPanel(s.PanelConfig.HolyEquipmentGalleryListPanel.Path, this._type)
                }, t.prototype.onDestroy = function() {
                    cc.Tween.stopAllByTarget(this.SpineContainer)
                }, i([u(cc.Sprite)], t.prototype, "Icon", void 0), i([u(cc.Label)], t.prototype, "StarCount", void 0), i([u(cc.RichText)], t.prototype, "Name", void 0), i([u(cc.Node)], t.prototype, "SpineContainer", void 0), i([u(cc.Node)], t.prototype, "ClickNode", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine"
    }],
    EquipmentGalleryListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "518d5NNRgtGd7/gj6ebAjlt", "EquipmentGalleryListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.EquipmentContainer = null, t.EquipmentIcon = null, t.EquipmentSpine = null, t.StarContainer = null, t.AddContainer = null, t.AddIcon = null, t.AddTip = null, t.LockContainer = null, t.LockIcon = null, t.LevelTip = null, t.HOLY_EQUIPMENT_MAX_STAR = 5, t._starIconArray = [], t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnListItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnListItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._slotConfig = e, this._equipmentModel = t, this._currentLevel = n, this._mainPanel = o, this.EquipmentContainer.active = !1, this.AddContainer.active = !1, this.LockContainer.active = !1, this.EquipmentSpine.node.active = !1, t ? (this.EquipmentContainer.active = !0, this.SetEquipmentContainer()) : e.Requirements <= n ? (this.AddContainer.active = !0, this.AddTip.string = "HolyEquipmentGallery_Add".ToUILocale()) : (this.LockContainer.active = !0, this.LevelTip.string = "allianceBase_level".ToUILocale().Fmt(e.Requirements) + "hero_unlock".ToUILocale())
                }, t.prototype.SetEquipmentContainer = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = h.default.Instance.GetItemPathById(this._equipmentModel.ItemId), [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = s.sent(), this.isValid ? (this._unloadAssets.push(t), this.EquipmentIcon.spriteFrame = t, "" == (n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, this._equipmentModel.ItemId)).SpineEffectName ? [3, 3] : [4, this._mainPanel.GetSpineAsset(n.SpineEffectName)]) : (l.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    o = s.sent(), this.EquipmentSpine.node.active = !0, this.EquipmentSpine.skeletonData = o, this.EquipmentSpine.setAnimation(0, "Ani_" + n.SpineEffectName, !0), s.label = 3;
                                case 3:
                                    for (r = 0; r < this.HOLY_EQUIPMENT_MAX_STAR; r++)(i = this._starIconArray[r]) || ((a = new cc.Node).setParent(this.StarContainer), i = a.addComponent(cc.Sprite), this._starIconArray[r] = i), r < this._equipmentModel.Step ? i.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_equipment2") : r < this._equipmentModel.Star ? i.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_equipment1") : i.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_equipmentBg");
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnListItemClick = function() {
                    this._equipmentModel ? l.UIManager.Instance.ShowUIPanel(d.PanelConfig.HolyEquipmentGalleryItemChangePanel.Path, this._equipmentModel, this._slotConfig) : this._slotConfig.Requirements <= this._currentLevel && l.UIManager.Instance.ShowUIPanel(d.PanelConfig.HolyEquipmentGalleryItemChangePanel.Path, null, this._slotConfig)
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._unloadAssets = []
                }, i([g(cc.Node)], t.prototype, "EquipmentContainer", void 0), i([g(cc.Sprite)], t.prototype, "EquipmentIcon", void 0), i([g(sp.Skeleton)], t.prototype, "EquipmentSpine", void 0), i([g(cc.Node)], t.prototype, "StarContainer", void 0), i([g(cc.Node)], t.prototype, "AddContainer", void 0), i([g(cc.Sprite)], t.prototype, "AddIcon", void 0), i([g(cc.Label)], t.prototype, "AddTip", void 0), i([g(cc.Node)], t.prototype, "LockContainer", void 0), i([g(cc.Sprite)], t.prototype, "LockIcon", void 0), i([g(cc.Label)], t.prototype, "LevelTip", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    EquipmentGalleryResonanceAddtionItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8d1adqtDXhGk4nsKCJe2snz", "EquipmentGalleryResonanceAddtionItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./AttrComponent5"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ActiveTagNode = null, t.ActivieTagLabel = null, t.StarCount = null, t.AttrContainer = null, t._iscurrent = !1, t._attrComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ActivieTagLabel.string = "artifact_has_active".ToUILocale()
                }, t.prototype.Init = function(e, t, n) {
                    this._resonanceConfig = t, this._attrPrefab = n, this._iscurrent = e, this.ActiveTagNode.active = e, this.StarCount.string = "x" + this._resonanceConfig.Requirements, this.SetAttrContaienr()
                }, t.prototype.SetAttrContaienr = function() {
                    for (var e = 0; e < this._resonanceConfig.Attrs.length; e++) {
                        var t = this._attrComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._attrPrefab);
                            n.setParent(this.AttrContainer), t = n.getComponent(a.default), this._attrComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o = this._resonanceConfig.Attrs[e].Items;
                        t.Init(o[0], o[1], {
                            NodeWidth: 388,
                            ValueNodeWidth: 180
                        })
                    }
                    if (this._resonanceConfig.Attrs.length < this._attrComponentArray.length)
                        for (e = this._resonanceConfig.Attrs.length; e < this._attrComponentArray.length; e++) this._attrComponentArray[e].node.active = !1
                }, i([c(cc.Node)], t.prototype, "ActiveTagNode", void 0), i([c(cc.Label)], t.prototype, "ActivieTagLabel", void 0), i([c(cc.Label)], t.prototype, "StarCount", void 0), i([c(cc.Node)], t.prototype, "AttrContainer", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./AttrComponent5": "AttrComponent5"
    }],
    EquipmentGalleryResonanceEquipItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b2c07Mu6MdOLaYUIEwFr4YM", "EquipmentGalleryResonanceEquipItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./ItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.StarCount = null, t.EQUIPMENT_ITEM_ID_ARRAY = [42001, 42002, 42003, 42004], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.StarCount.string = "x" + t;
                    var o = cc.instantiate(n);
                    o.setParent(this.ItemNode), o.getComponent(a.ItemComponent).Init({
                        ItemId: this.EQUIPMENT_ITEM_ID_ARRAY[e - 1]
                    })
                }, i([c(cc.Node)], t.prototype, "ItemNode", void 0), i([c(cc.Label)], t.prototype, "StarCount", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./ItemComponent": "ItemComponent"
    }],
    ErrCode: [function(e, t, n) {
        "use strict";
        var o;
        cc._RF.push(t, "96d96VJFkxPlJN7lyVPIBMj", "ErrCode"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.NoLogErrorCode = n.ErrCode = void 0;
        var r = function() {
            function e() {}
            return e.OK = 0, e.UnknownError = 1e3, e.PackageDecodeError = 1001, e.ConnectionDisconnect = 1002, e.UserError = 1003, e.RpcIdRepeated = 1004, e.ClientParamError = 1005, e.ServerConfigError = 1006, e.GameConfigError = 1007, e.DatabaseError = 1008, e.ChannelError = 1009, e.TimeStampError = 1010, e.SignatureError = 1011, e.VerifyTokenError = 1012, e.LoginTooFrequently = 1013, e.TransIdRepeat = 1014, e.NotBindSession = 1015, e.LoginOnOtherClient = 1016, e.ModuleIsDiabledGlobal = 1017, e.ModuleIsDiabledUser = 1018, e.ModuleIsLocked = 1019, e.RpcRequestTimeout = 1020, e.ServerIsTooBusy = 1021, e.HaveSensitiveWord = 1022, e.ThirdPartyApiError = 1023, e.NeedRefreshData = 1024, e.HaveForbiddenWord = 1025, e.UserBanLogin = 1026, e.UserBanChat = 1027, e.UserBanLogin2 = 1028, e.HeroIsOnFormation = 1101, e.HeroIsDisplacing = 1102, e.OverRankLikeCount = 1103, e.RankLikeUserDuplicate = 1104, e.PlayerNotExist = 1105, e.ItemIsNotEnough = 1106, e.BattleReportExpired = 1107, e.ColorDiamondIsNotEnough = 1108, e.HerohasUesdOnFormation = 1109, e.AllianceNameExist = 1201, e.AlreadyHaveAlliance = 1202, e.NotInAlliance = 1203, e.AllianceNotExist = 1204, e.AlliancePermissionDenied = 1205, e.MemberNotInAlliance = 1206, e.RequestHaveBeenHandled = 1207, e.LeaderCanNotBeImpeached = 1208, e.LeaderHaveBeenImpeached = 1209, e.NotFitAllianceRequirement = 1210, e.OverAllianceMemberCountLimit = 1211, e.TargetAlreadyHaveAlliance = 1212, e.TargetPrivateChatLocked = 1213, e.TargetInBlacklist = 1214, e.SendChatMessageInCd = 1215, e.HeroAlreadyMaxLevel = 1216, e.GiftCodeIsNotExist = 1217, e.GiftCodeConfigIsNotExist = 1218, e.GiftCodeGroupUsed = 1219, e.GiftCodeHaveBeenUsed = 1220, e.GiftCodeHaveExpired = 1221, e.GiftCodeNotFitChannel = 1222, e.LadderRaceTargetIsInBattle = 1223, e.ZoneIsNotGrouped = 1224, e.AllianceCityWarResetting = 1225, e.AllianceBadgeProgressError = 1226, e.HaveCreatedVisitor = 1901, e.AccountNotExist = 1902, e.LoginVerifyFail = 1903, e.AccountTypeError = 1904, e.AccountBindOtherId = 1905, e.AccountHaveExist = 1906, e.VerifyCodeCd = 1907, e.VerifyCodeError = 1908, e.PasswordTooShort = 1909, e.SendVerifyCodeError = 1910, e.CanNotIdCardVerification = 1911, e.IdCardVerificationFail = 1912, e.IdCardVerificationPassed = 1913, e.NoHasIdCardVerification = 1914, e.Under16CanNotPlayGame = 1951, e.From16To17NotInPlayTime = 1952, e.From16To17MonthlyPayLimit = 1953, e.From16To17SinglePay = 1954, e.MyFriendCountLimit = 2001, e.OtherFriendCountLimit = 2002, e.AlreadyInBlackList = 2003, e.NoFriendApplicationReceived = 2004, e.AlreadyFriends = 2005, e.NotInMyBlackList = 2006, e.MyBlackListCountLimit = 2007, e.NotFriend = 2008, e.HasGiveGift = 2009, e.NotReceiveGift = 2010, e.HasAcceptGift = 2011, e.HasSendApply = 2012, e.AcceptGiftOverLimit = 2013, e.GiveGiftOverLimit = 2014, e.LayerError = 2101, e.ModeNotOpen = 2102, e.ChallengeIsOver = 2103, e.ReachedPurchaseLimit = 2201, e.ExceedingPurchaseLimit = 2202, e.NoGoods = 2203, e.NotHaveThisGoods = 2204, e.OverBought = 2205, e.ThrowingCountNotEnough = 2206, e.DiskNotHaveRewards = 2207, e.NoSlotMachine = 2208, e.PointError = 2209, e.BlockCanNotOpen = 2301, e.HeroIsDead = 2302, e.PropBarIsFull = 2303, e.BlockCanNotClick = 2304, e.IsNotRewardMap = 2305, e.NobodyNeedResurgenced = 2306, e.NoProp = 2307, e.BlockIsNotOpen = 2308, e.BlockIsNotMonster = 2309, e.SecretCanNotChallenge = 2310, e.SecretHeroElementTypeError = 2311, e.TaskIsAlreadyDispatch = 2401, e.HeroIsAlreadyDispatch = 2402, e.HerosNotFitBill = 2403, e.NotTimeYet = 2404, e.TaskIsNotDispatch = 2405, e.TempleNoEnergy = 2501, e.TempleQuantityOverLimit = 2502, e.TempleAlreadyAwaken = 2503, e.TempleStarNotReachedUpperLimit = 2504, e.TempleTrenchNotOpen = 2505, e.TempleTrenchNotCoolingDown = 2506, e.TempleTrenchCoolingDown = 2507, e.TempleTrenchHasBeenUsed = 2508, e.TempleHeroInTrench = 2509, e.TempleHeroIsGuardian = 2510, e.TempleTrenchAllUnlock = 2511, e.TempleStageAlreadySecond = 2512, e.TempleGuardiansLessThanFive = 2513, e.TempleLevelNotFitRequirement = 2514, e.StarGarrisonSlotLocked = 2515, e.StarGarrisonSlotUnocked = 2516, e.StarEmbattleLocked = 2517, e.StarHolyGemMasterGemNotEnough = 2518, e.SuperWeaponAlreadyMaxLevel = 2519, e.SuperWeaponStarNotEnough = 2520, e.SuperWeaponQualityNotEnough = 2521, e.EqptBlessingPollFull = 2601, e.EqptTypeError = 2602, e.EqptCountIsNotEnough = 2603, e.EqptNoMaterials = 2604, e.EqptIsNotExist = 2605, e.EqptMaterialsIsNotEnough = 2606, e.EqptStorageTypeError = 2607, e.EqptOverUnlick = 2608, e.EqptNotUnlick = 2609, e.EqptBlessingIsNotExist = 2610, e.EqptStageReachedUpperLimit = 2611, e.EqptStarNotFitRequirement = 2612, e.EqptStarReachedUpperLimit = 2613, e.EqptPowerCoreIsBeingPutOn = 2614, e.PetIsBeingPutOn = 2615, e.PetAlreadyMaxLevel = 2616, e.PetCurrentLevelHigherThanRequest = 2617, e.PetNestNotUnlock = 2618, e.PetNestIsHatching = 2619, e.PetNestNotHatching = 2620, e.PetNestHatchNotEnd = 2621, e.PetLocked = 2622, e.PetNotSelectWishPet = 2623, e.PetDisplacing = 2624, e.EqptTypeIsNotSame = 2625, e.EqptIdIstSame = 2626, e.EqptCannotBeDisplaced = 2627, e.HolyEquipGallerySlotLocked = 2628, e.EqpUpStepNotAchieveLimitStar = 2629, e.PetCanNotOneClick = 2630, e.AncientCanNotChallenge = 2701, e.AncientCanNotPutSameHero = 2702, e.AncientStarIsNotEnough = 2703, e.AncientNotPass = 2704, e.AncientNotPassLast = 2705, e.SaintsWarAlreadySetFormation = 2710, e.AllianceCanNotChallenge = 2801, e.AllianceHeroIsAlreadyUsed = 2802, e.AllianceFormationError = 2803, e.AllianceNotPass = 2804, e.AllianceReceivedOtherAlliance = 2805, e.AllianceNoRedPacket = 2806, e.AllianceReceivedNoRedPacket = 2807, e.AllianceRedPacketHandedOut = 2808, e.AllianceCanNotReceiveReward = 2809, e.AllianceMazeDataChanged = 2810, e.IconHeadIconNotUnlock = 2901, e.IconHeadFrameNotUnlock = 2902, e.IconTitleNotUnlock = 2903, e.IconOutOfDate = 2904, e.RoleNameCharsCountError = 2905, e.RoleNameAlreadyExists = 2906, e.RadioValueError = 2907, e.IconChatWindowNotUnlock = 2908, e.VipGiftIsBought = 3001, e.VipLevelNotFitRequirement = 3002, e.PlayerAlreadyClockIn = 3101, e.OldPlayerRecallEnd = 3102, e.FavorLevelNotFitRequirement = 3201, e.GemTypeError = 3301, e.GemGrooveNotUnlock = 3302, e.GemDisplaceNotSave = 3303, e.GemNotDisplace = 3304, e.GemLucked = 3305, e.GemQualityNotEnough = 3306, e.GemCanNotUpgrade = 3307, e.ArenaRankNotFitRequirement = 3401, e.CrossZoneRankChallengeNotOpen = 3402, e.CrossZoneContinueWarRankChallengeNotOpen = 3403, e.CrossZoneContinueWarRankChallengeNotFindTarget = 3404, e.CrossChampionForecastTimeError = 3405, e.CrossChampionForecastReceivedRewards = 3406, e.CrossChampionNotTakeForecast = 3407, e.ArenaChallengeTimeError = 3408, e.HeroSkinIsExpired = 3501, e.ActivatePersonalityCanNotUsePersonalitySoul = 3502, e.PersonalityCurrentBeDisplace = 3503, e.HeroLuckSkillLocked = 3504, e.HeroHaveLuckSkill = 3505, e.HeroNotHaveLuckSkill = 3506, e.PersonalityStarError = 3507, e.ExclusiveWeaponStarError = 3508, e.NewPersonalityUnlock = 3509, e.NewPersonalityLocked = 3510, e.NewPersonalityNormalLocked = 3511, e.NewPersonalityMaxLevel = 3512, e.NewPersonalityActionLocked = 3513, e.NewPersonalityActionSeen = 3514, e.NotSupportedAngel = 3515, e.HeroIsFlying = 3516, e.NewPersonalityStageError = 3517, e.NotHaveThisStarHero = 3601, e.NotUnlockHeroPersonality = 3602, e.MainSceneBackgroundIsExpired = 3603, e.ItemCannotDecompose = 3604, e.ItemConsumeSubTypeError = 3605, e.ItemUpgradeCardTypeError = 3606, e.ItemConsumeLocked = 3607, e.ItemConsumeCountLimit = 3608, e.AllianceChallengeNotInThisSeason = 3701, e.AllianceChallengeNotInThisRound = 3702, e.AllianceChallengeThisRoundBye = 3703, e.AllianceChallengeTodayChallenged = 3704, e.AllianceChallengeTodayRaided = 3705, e.AllianceChallengeNotOpen = 3706, e.AllianceChallengeCanNotBattleYourself = 3707, e.AllianceChallengeParamError = 3708, e.AllianceChallengeUserLocked = 3709, e.HeroFetterSumStarNotEnough = 3801, e.HeroFetterStarNotEnough = 3802, e.HeroFetterRewardIsReceived = 3803, e.PreStrategyLevelNotEnough = 3901, e.PreStrategyBookPointNotEnough = 3902, e.DesignationMaxLevel = 3903, e.DesignationPlayerLevelNotEnough = 3904, e.DesignationHighestPowerNotEnough = 3905, e.DesignationTestTowerNotEnough = 3906, e.DukeMaxLevel = 3907, e.DukeDesignationNotEnough = 3908, e.DukeOpenDaysNotEnough = 3909, e.GemGallerySlotLocked = 4001, e.ParanormalPuzzleStageLocked = 4002, e.ParanormalPuzzleStageUnlocked = 4003, e.ParanormalPuzzleStageCanNotUnlock = 4004, e.ParanormalPuzzleItemOverlap = 4005, e.ParanormalPuzzleItemExceedBoundaries = 4006, e.HeroHandbookUpperLimit = 4007, e.ArtefactForgeReachUpperLimit = 4008, e.ArtefactRelicLocked = 4009, e.ArtefactRelicMaxMap = 4010, e.ArtefactRelicNotHaveHero = 4011, e.ArtefactRelicElementNotEnough = 4012, e.ArtefactRelicSumStarNotEnough = 4013, e.ArtefactRelicEquipError = 4014, e.PowerCoreGallerySlotLocked = 4015, e.MallGoodFundNotSelectReward = 4101, e.MallSubscribePrivilegeLimit = 4102, e.RankMatchPlayerReChallenge = 4201, e.RankMatchNoPlayerCanChallenge = 4202, e.AssaultOperationHomeBreak = 4301, e.AssaultOperationIsAttack = 4302, e.AssaultOperationrefresh = 4303, e.WarG = 6100, e.WarGSettle = 6101, e.WarGDailyReset = 6102, e.WarC = 6200, e.WarCTruce = 6201, e.WarCNoCity = 6202, e.WarCNotDeath = 6203, e.WarCDeath = 6204, e.WarA = 6300, e.WarANotJoin = 6301, e.WarU = 6400, e.WarUPointNotEnough = 6401, e.WarUNoFormation = 6402, e.WarUNoUser = 6403, e.WarUNotJoin = 6404, e.WarUNotHangUp = 6405, e.WarUOwnCity = 6406, e.WarF = 6500, e.WarFIsHangUp = 6501, e.WarFBusy = 6502, e.WarFNotHave = 6503, e.WarFNoLeader = 6504, e.WarFNoHangUpCount = 6505, e.WarFTypeError = 6506, e.WarFHangUpCount = 6507, e.WarH = 6600, e.WarHIsJoin = 6601, e.WarHMaxRCount = 6602, e.WarO = 6900, e.WarOJoinTs = 6901, e.WarORest = 6902, e.WarOLoading = 6903, e.WarOParamError = 6904, e.ActNotHaveActivity = 7001, e.ActNotSelectHero = 7002, e.ActNoDiamondCounts = 7003, e.ActNoHeroCard = 7004, e.ActNoActivityGiftPack = 7005, e.ActBestRewardIsAlreadyReceived = 7006, e.ActHasBeenReachedMaxStage = 7007, e.ActSummonCountIsNotEnough = 7008, e.ActRewardIsNotUnlock = 7009, e.ActRewardIsNotSelect = 7010, e.ActBestRewardIsNotReceived = 7011, e.ActHappyTurnDataError = 7012, e.ActOptionalNotLocked = 7013, e.ActOptionalNotSelectHero = 7014, e.ActOptionalAlreadyLocked = 7015, e.ActOptionalNotIncludeHero = 7016, e.ActElementTestAlreadyPass = 7017, e.ActHeroDungeonAlreadyPass = 7018, e.ActActivityAlreadyEnd = 7019, e.ActRebateSummonLastRewardNotReceive = 7020, e.ActInfiniteGiftPackCanNotBuy = 7021, e.ActFateStarBoxNotFinallyReward = 7022, e.ActIngenuityDataError = 7023, e.ActNotSelectItem = 7034, e.ActActivityNotopen = 7035, e.ActBossIsDead = 7036, e.ActExquisiteCustomCardCanNotSelect = 7037, e.ActExquisiteCustomCardRewardNotSelect = 7038, e.ActExquisiteCustomCardNotBoughtPack = 7039, e.ActSecretAreaIsAlreadyChallenge = 7040, e.ActBadgeCollectIsAlreadyLighten = 7041, e.ActBadgeCollectIsNotLighten = 7042, e.ActAnswerCompetitionCompeted = 7043, e.ActAnswerCompetitionNotCompeted = 7044, e.ActAnswerCompetitionNotAnswer = 7045, e.ActAnswerCompetitionNotOpen = 7046, e.ActAnswerCompetitionEnd = 7047, e.ActActivityHasEnded = 7048, e.ActWarTokenTypeRewardIsReceived = 7049, e.ActNotBoughtWarTokenGift = 7050, e.ActWarTokenPayCountNotEnough = 7051, e.ActTypeError = 7052, e.ActNoSummonCount = 7053, e.ActNotFitCondition = 7054, e.ActSummonBoxAlreadySelect = 7055, e.ActSummonBoxNotSelect = 7056, e.ActSummonBoxNotSummonAllBigRewards = 7057, e.ActSummonBoxStageMax = 7058, e.ActKnifeTrainingMaxMap = 7059, e.ActNewbieCouponNotEnough = 7060, e.ActHeroTestTowerNoHero = 7061, e.ActElementArenaOverExchange = 7062, e.ActElementArenaOverChange = 7063, e.ActElementArenaOverChallange = 7064, e.ActSecondKillSumNoCounts = 7065, e.ActSecondKillGroupNoCounts = 7066, e.ActSecondKillAllZoneNoCounts = 7067, e.ActSecondKillTimeError = 7068, e.ActEmaPrayContentIsSelected = 7069, e.ActEmaPrayCompletedSelect = 7070, e.ActEmaPrayCannotFindPack = 7071, e.ActEmaPrayNotSelectContent = 7072, e.ActRunningTrainAlreadySelect = 7073, e.ActRunningTrainNotSelect = 7074, e.ActRunningTrainNoReward = 7075, e.ActSuperGiftRewardsLocked = 7076, e.ActRechargeFeedbackAlreadySelect = 7077, e.ActRechargeFeedbackRepeateSelect = 7078, e.ActRechargeFeedbackNotSelect = 7079, e.ActRechargeFeedbackRewardActivated = 7080, e.ActRechargeFeedbackAlreadyMultipleRewards = 7081, e.ActRechargeFeedbackMultipleRewardsLovked = 7082, e.ActHeroPKApplied = 7083, e.ActHeroPKNotApply = 7084, e.ActHeroPKNoMustUseHero = 7085, e.ActHeroPKScoreNotEnough = 7086, e.ActChampionNotStart = 7087, e.ActChampionCanNotApply = 7088, e.ActChampionNotFitCondition = 7089, e.ActChampionAlreadyApply = 7090, e.ActNinjaDataIsCheat = 7091, e.ActChampionshipNotJoin = 7092, e.ActChampionshipDataExpiration = 7093, e.ActChampionshipTimeNotArrived = 7094, e.ActBreakouNotJoin = 7095, e.ActBreakouFloorIsFull = 7096, e.ActBreakouNeedRefresh = 7097, e.ActBindNotBind = 7098, e.ActSuperKoiPackTimeError = 7099, e.ActBreakouFloorError = 7100, e.ActBreakouFloorNotOpen = 7101, e.ActBreakouTimeNotArrived = 7102, e.FightingMiniGameNotInRoom = 7103, e.EffectObjectUseItem = 7104, e.CutPriceGiftTimeExpired = 7105, e.CutPriceGiftHelped = 7106, e.CutPriceGiftCountLimit = 7107, e.ActNewPersonalityNotFirst = 7108, e.FantasticPastureAPNotEnough = 7109, e.ActSeasonExpeditionPotionRepeated = 7110, e.ActSeasonWeaponAlreadyFly = 7111, e.ActSeasonWeaponStarNotEnough = 7112, e.ActSeasonWeaponLevelNotEnough = 7113, e.ActSeasonWeaponEntryTypeError = 7114, e.ActNewWarTokenNoReward = 7115, e.ActCarnivalPackNotOpen = 7117, e.ActRuinsWarLeaveFail = 7118, e.ActRuinsWarMapClose = 7119, e.ActRuinsWarPlayerDead = 7120, e.ActNoTicket = 7901, e.ActCurrencyUsedCount = 7902, e.MoneyCountIsNotEnough = 8001, e.NotBoughtTheGift = 8002, e.PayCountIsNotEnough = 8003, e.StageIsNotExist = 8004, e.AlreadyBoughtTheGift = 8005, e.GiftIsNotExist = 8006, e.GiftIsAlreadyOverdue = 8007, e.IsGiftPackPack = 8008, e.IsNotGiftPackPack = 8009, e.MonthCardDaysUpperLimit = 8010, e.LuckyStarAlreadyOpen = 8011, e.FrontPackIsNotPurchased = 8012, e.DiscountTicketInvalid = 8013, e.DiscountTicketTypeError = 8014, e.DiscountTicketIsLocked = 8015, e.NotBoughtFrontMonthCard = 8016, e.PayTimeEnd = 8017, e.DiscountTicketCondition = 8018, e.PacksMoneyMax = 8019, e.TotalPayNotMeetingConditions = 8020, e.CurrencyCanNotBuyCurrency = 8021, e.AdminNotLogin = 9001, e.AdminModuleNotExist = 9002, e.AdminActionNotExist = 9003, e.AdminPermissionError = 9004, e.AdminParamsError = 9005, e.AdminExecError = 9006, e.MapDoNotExist = 9101, e.RewardIsAlreadyReceive = 9102, e.RewardIsNotExist = 9103, e.LevelNotFitRequirement = 9104, e.LevelReachedUpperLimit = 9105, e.StarNotFitRequirement = 9106, e.StarReachedUpperLimit = 9107, e.NoCounts = 9108, e.HeroMaterialNotEnough = 9109, e.HeroStarError = 9110, e.HeroElementTypeError = 9111, e.HeroCountExceedsUpperLimit = 9112, e.RewardIsCanNotReceive = 9113, e.NoRewardCanReceive = 9114, e.CardCommonSummonTypeError = 9115, e.ItemCountIsNotEnough = 9116, e.NotHaveThisTask = 9117, e.ModuleIsOver = 9118, e.RewardCanNotReceive = 9119, e.AdvanceRewardNotReceive = 9120, e.TimeCoolingDown = 9121, e.HeroIdError = 9122, e.HeroCareerError = 9123, e.FormationIsBlank = 9124, e.NotFitUnlockRequirement = 9125, e.NotUnlocked = 9126, e.NoGiftPack = 9127, e.CardCommonSummonCountError = 9128, e.HeroCoreError = 9129, e.ActTicketNotEnough = 9130, e.FormationHeroCountError = 9131, e.SummonNoWish = 9132, e.SummonWishLocked = 9133, e.SummonWishPhaseLocked = 9134, e.SummonWishNoItem = 9135, e.NoTipError = 10001, e.AssetVerIsNotAvailable = 20001, e.ConfigVerIsNotAvailable = 20002, e.ServerMaintenance = 20003, e
        }();
        n.ErrCode = r, n.NoLogErrorCode = ((o = {})[r.RpcIdRepeated] = 1, o[r.ServerMaintenance] = 1, o[r.AssetVerIsNotAvailable] = 1, o[r.ConfigVerIsNotAvailable] = 1, o[r.HaveSensitiveWord] = 1, o[r.NeedRefreshData] = 1, o[r.HaveForbiddenWord] = 1, o[r.UserBanLogin] = 1, o[r.UserBanChat] = 1, o), cc._RF.pop()
    }, {}],
    Etc: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7cce0h1HrRD+J7/6l6bCPJv", "Etc"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.NativePaths = n.LocalStorageKeys = n.Etc = void 0;
        var o = function() {
            function e() {}
            return e.KB = 1024, e.MB = 1024 * e.KB, e.GB = 1024 * e.MB, e.SecondDuration = 1e3, e.MinuteDuration = 6e4, e.HourDuration = 60 * e.MinuteDuration, e.DayDuration = 24 * e.HourDuration, e.Multiplier = 1e4, e.HeroTalentStageCount = 6, e.ActivityPrefixRatio = 1e4, e.HeroCardPrefix = 11e5, e
        }();
        n.Etc = o;
        var r = function() {
            function e() {}
            return e.CurrentUser = "CurrentUser", e.BattleSpeed = "BattleSpeed", e.ClientChannel = "ClientChannel", e.ServerAddress = "ServerAddress", e.AccountId = "AccountId", e.AccountInfo = "AccountInfo", e.AccountLog = "AccountLog", e
        }();
        n.LocalStorageKeys = r;
        var i = function() {
            function e() {}
            return e.ConfigData = "remote-asset/config-data", e.SkillConfig = "remote-asset/skill-config", e.AssetsRoot = "remote-asset/assets", e.AssetsVersion = "remote-asset/assets-version", e.BasePack = "remote-asset/base-pack", e
        }();
        n.NativePaths = i, cc._RF.pop()
    }, {}],
    EventKeys: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5c26b/cC/JBCoZmHLSFzZPO", "EventKeys"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.EventKeys = void 0;
        var o = function() {
            function e() {}
            return e.EVENT_TEST_1 = "event_test_1", e.EVENT_TEST_2 = "event_test_2", e.EVENT_DELAY_CLOSE_PANEL = "event_delay_close_panel", e.EVENT_GAME_LOG_OUT = "event_game_log_out", e.EVENT_PANEL_CLOSE = "event_panel_close", e.EVENT_SET_MAIL_REDDOT = "event_set_mail_reddot", e.EVENT_SET_LOCAL_STORAGE = "event_set_local_storage", e.EVENT_DELETE_MAIL_DATA = "event_delete_mail_data", e.EVENT_CUSTOMLAYOUT_REFRESH = "event_customlayout_refresh", e.EVENT_SWITCH_HERO_ELEMENT = "event_switch_hero_element", e.EVENT_SWITCH_STAR_PIECE_QUALITY = "event_switch_star_piece_quality", e.EVENT_REFRESH_LUCKYWHEEL = "event_refresh_luckywheel", e.EVENT_LUCKYWHEEL_DRAWOVER = "event_luckywheel_drawwheel", e.EVENT_ITEM_CLICK = "event_item_click", e.HERO_RESOVE_SUCCESS = "hero_resolve_success", e.HERO_DISPLACE_SUCCESS = "hero_displace_success", e.EVENT_UPHERO_TO_MAX = "event_uphero_to_max", e.EVENT_UPSTARHERO_SHOWING_SETTING = "event_upstarhero_showing_setting", e.EVENT_UPEXCLUSIVEWEAPON_TO_MAX = "event_upexclusiveweapon_to_max", e.EVENT_SELECT_HEROSIDS = "event_select_heroids", e.EVENT_REFRESH_HEROLIST_SORT = "event_refresh_herolist_sort", e.EVENT_REFRESH_DAILYINSTANCE = "event_refresh_dailyinstance", e.EVENT_SET_FORMATION = "event_set_formation", e.EVENT_TOWER_LAYER_REFRESH = "event_tower_layer_refresh", e.EVENT_TOWER_GUIDE_REFRESH = "event_tower_guide_refresh", e.EVENT_TOWER_BATTLE_SUCCESS = "event_tower_quick_battle", e.EVENT_TOWER_REFRESH_ENTRANCE = "event_tower_refresh_entrance", e.EVENT_FORMATIONITEM_DRAGMOVE = "event_formationitem_dragmove", e.EVENT_FORMATIONITEM_DRAGCONFIRM = "event_formationitem_dragconfirm", e.EVENT_FORMATIONITEM_ONTEAM = "event_formationitem_onteam", e.EVENT_FORMATIONITEM_OFFTEAM = "event_formationitem_offteam", e.EVENT_FORMATIONDATA_CHANGED = "event_formationdata_changed", e.EVENT_FORMATIONTYPE_CHANGED = "event_formationtype_changed", e.EVENT_BUY_ITEM_SUCCESS = "event_buy_item_success", e.EVENT_BUY_DICE_SUCCESS = "event_buy_dice_success", e.EVENT_ORACLE_SUMMON_SUCCESS = "event_oracle_summon_success", e.EVENT_ORACLE_EXCHANGE_SUCCESS = "event_oracle_exchange_success", e.EVENT_DRAW_AGAIN_REWARDS_PANEL_CLOSE = "event_draw_again_rewards_panel_close", e.EVENT_ABYSS_STAGE_CHOSEN = "event_abyss_stage_chosen", e.EVENT_ABYSS_BUFF_CHOSEN = "event_abyss_buff_chosen", e.EVENT_ABYSS_BUFF_SHOW = "event_abyss_buff_show", e.EVENT_REFRESH_MAINPANEL = "event_refresh_main_panel", e.EVENT_TREASURE_RUINSCHOSEN = "event_treasure_ruinschosen", e.EVENT_TREASURE_REMOTE = "event_treasure_remote", e.EVENT_TREASURE_REFRESHBLOCKS = "event_treasure_refreshblocks", e.EVENT_TREASURE_MACHINE_FINISHED = "event_treasure_machine_finished", e.EVENT_TREASURE_MERCHANT_CLOSE = "event_treasure_merchant_close", e.EVENT_TREASURE_HIERON_CLOSE = "event_treasure_hieron_close", e.EVENT_TREASURE_ICON_CLICK = "event_treasure_icon_click", e.EVENT_DISPLAY_SUMMON_CARD_START = "event_display_summon_card_start", e.EVENT_DISPLAY_SUMMON_CARD_END = "event_display_summon_card_end", e.EVENT_ON_BATTLE_RETURNED = "event_on_battle_returned", e.EVENT_HIDE_MAINUIPANEL = "event_hide_mainuipanel", e.EVENT_SHOW_MAINUIPANEL = "event_show_mainuipanel", e.EVENT_SECRETAREA_CLOUD_CLICK = "event_secretarea_cloud_click", e.EVENT_SECRETAREA_AIM_CLICK = "event_secretarea_aim_click", e.EVENT_SECRETAREA_PICK_PROP_UP = "event_secretarea_pick_prop_up", e.EVENT_SECRETAREA_PROP_USE = "event_secretarea_prop_use", e.EVENT_SECRETAREA_PROP_TIP_SHOW = "event_secretarea_prop_tip_show", e.EVENT_SECRETAREA_ON_MONSTER_CLICK = "event_secretarea_on_monster_click", e.EVENT_SECRETAREA_FLAREBLOCK_CLICK = "event_secretarea_flareblock_click", e.EVENT_SECRETAREA_BLOCK_CLICK = "event_secretarea_block_click", e.EVENT_SECRETAREA_CHALLENGE_ENEMY = "event_secretarea_challenge_enemy", e.EVENT_SECRETAREA_TELEPORT = "event_secretarea_teleport", e.EVENT_SECRETAREA_ON_BUFFCLICK = "event_secretarea_on_buffclick", e.EVENT_SECRETAREA_GET_TREASURE = "event_secretarea_get_treasure", e.EVENT_SECRETAREA_SET_GATE = "event_secretarea_set_gate", e.EVENT_SECRETJOURNEY_CLICKDISABLE = "event_secretjourney_clickdisable", e.EVENT_SECRETJOURNEY_CLICKENABLE = "event_secretjourney_clickenable", e.EVENT_SECRETJOURNEY_STARTBATTLE = "event_secretjourney_startbattle", e.EVENT_SECRETJOURNEY_SETTLEBATTLE = "event_secretjourney_settlebattle", e.EVENT_SECRETJOURNEY_SIGNTARGET = "event_secretjourney_signtarget", e.EVENT_SECRETJOURNEY_CANCELTARGET = "event_secretjourney_canceltarget", e.EVENT_SECRETJOURNEY_MAPDATA_CHANGE = "event_secretjourney_mapdata_change", e.EVENT_EQUIP_FORGINGITEM_CLICK = "event_equip_forgingitem_click", e.EVENT_EQUIP_DATA_REFRESH = "event_equip_data_refresh", e.EVENT_EQUIP_SELECT_MATERIAL_REFRESH = "event_equip_select_material_refresh", e.EVENT_HOLYEQUIP_SELECT_MATERIAL_REFRESH = "event_holyequip_select_material_refresh", e.EVENT_EQUIP_SELECT_FORGING = "event_equip_select_forging", e.EVENT_HOLYEQUIP_SELECT_STRENGTHEN = "event_holyequip_select_strengthen", e.EVENT_HOLYEQUIP_NEED_UPSTAR = "event_holyequip_need_upstar", e.EVENT_HOLYEQUIP_REFRESH_TOGGLES = "event_holyequip_refresh_toggles", e.EVENT_HOLYEQUIP_BLESSING_CHANGE = "event_holyequip_blessing_change", e.EVENT_HOLYEQUIP_DISPLAY_SELECT = "event_holyequip_display_select", e.EVENT_SWITCH_MAINPANEL_TOGGLE = "event_switch_mainpanel_toggle", e.EVENT_RECEIVE_STAR_STATUE_ENGERY = "event_receive_star_statue_engery", e.EVENT_STAR_STATUE_INLAY_SUCCESS = "event_star_statue_inlay_success", e.EVENT_LUCKYCHARM_EQUIP_OR_CHANGE = "event_luckycharm_equip_or_change", e.EVENT_LUCKYCHARM_CHOOSE_CHECK = "event_luckycharm_choose_check", e.EVENT_LUCKYCHARM_SELECT_SKILL = "event_luckycharm_select_skill", e.EVENT_LUCKYCHARM_CHOOSE_CONFIRM = "event_luckycharm_choose_confirm", e.EVENT_LUCKYCHARM_SKILL_TOUCH = "event_luckycharm_skill_touch", e.EVENT_LUCKYCHARM_SKILL_CHANGE = "event_luckycharm_skill_change", e.EVENT_HOLY_AREA_PLAYER_MOVE = "event_holy_area_player_move", e.EVENT_LUCKYCHARM_QUERY_RESULT = "event_luckycharm_query_result", e.EVENT_HANDBOOK_SHOW_BY_ELEMENT = "event_handbook_show_by_element", e.EVENT_REFRESH_HANDBOOK_ITEM = "event_refresh_handbook_item", e.EVENT_RISKPORT_MODULECLOSE = "event_riskport_moduleclose", e.EVENT_HOLYFURNACE_CLOSE = "event_holyfurnace_close", e.EVENT_ALLIANCE_CHALLENGE = "event_alliance_challenge", e.EVENT_ALLIANCE_HEROHEADCLICK = "event_alliance_heroheadclick", e.EVENT_REFRESH_SELECT_MATERIALHERO = "event_refresh_select_materialhero", e.EVENT_ALLIANCE_TREASURE_TOUCH = "event_alliance_treasure_touch", e.EVENT_ALLIANCE_TEST_GET_PACK = "event_alliance_test_get_pack", e.EVENT_REFRESH_FRIENDS_MANAGE_VIEW = "event_refresh_friends_manage_view", e.EVENT_LEVELPASS_ORANGEBUTTON_CLICK = "event_levelpass_orangebutton_click", e.EVENT_LEVELPASS_BLUEBUTTON_CLICK = "event_levelpass_bluebutton_click", e.EVENT_LEVELPASS_GETREWARD = "event_levelpass_getreward", e.EVENT_DIAMONDSHOP_BUYDIAMOND = "event_diamondshop_buydiamond", e.EVENT_CLOSE_SHOWOFFHEROPANEL = "event_close_showoffheropanel", e.EVENT_BATTLEFINISHED = "event_battlefinished", e.EVENT_REFRESH_GUIDE_STEP = "event_refresh_guide_step", e.EVENT_DAILYSIGN_BUTTONSTATE = "event_dailysign_buttonstate", e.EVENT_WELFRAME_REFRESH = "event_welframe_refresh", e.EVENT_WELFRAME_SETCOUNTER = "event_welframe_setcounter", e.EVENT_WELFRAME_SHOW_CURRENCY_BAR = "event_welframe_show_currency_bar", e.EVENT_WELFRAME_HIDE_CURRENCY_BAR = "event_welframe_hide_currency_bar", e.EVENT_DAILYSIGN_BUTTON_BACKCALL = "event_dailysign_button_backcall", e.EVENT_LEVELGIFT_GETGIFT = "event_levelgift_getgift", e.EVENT_SLIDER_DRAG_OVER = "event_slider_drag_over", e.EVENT_REFRESH_USER_HEAD = "event_refresh_user_head", e.EVENT_MALL_BUTTONCLICK = "event_mall_buttonclick", e.EVENT_MALL_ITEMCHOOSE = "event_mall_itemchoose", e.EVENT_DAYSGIFT_GETBUTTONCLICK = "event_daysgift_getbuttonclick", e.EVENT_DAYSGIFT_GOBUTTONCLICK = "event_daysgift_gobuttonclick", e.EVENT_DAYSGIFT_UNOPENBUTTONCLICK = "event_daysgift_unopenbuttonclick", e.EVENT_FLY_ITEM = "event_fly_item", e.EVENT_REMOVE_TRIGGER_GIFT_DATA = "event_remove_trigger_gift_data", e.EVENT_SET_VERTICAL_BUTTON = "event_set_vertical_button", e.EVENT_SET_VERTICAL_ACTIVITYBUTTON = "event_set_vertical_activitybutton", e.EVENT_NAMING_SUCCESS = "event_naming_success", e.EVENT_HOLYAREA_MOVE_NEXTLEVEL = "event_holyarea_move_nextlevel", e.EVENT_EIGHTDAYS_BIND_COUNTDOWN = "event_eightdays_bind_countdown", e.EVENT_EIGHTDAYS_GET_REWARD = "event_eightdays_get_reward", e.EVENT_EIGHTDAYS_TOUCH_OBJECT = "event_eightdays_touch_object", e.EVENT_MAZEEXPLORE_FINALREWARDCLICK = "event_mazeexplore_finalrewardclick", e.EVENT_MAZEEXPLORE_LOCK = "event_mazeexplore_lock", e.EVENT_MAZEEXPLORE_UNLOCK = "event_mazeexplore_unlock", e.EVENT_MAZEEXPLORE_SELECT_REWARD = "event_mazeexplore_select_reward", e.EVENT_MAZEEXPLORE_RECEIVE_REWARD = "event_mazeexplore_receive_reward", e.EVENT_MAZEEXPLORE_CLOSE = "event_mazeexplore_close", e.EVENT_HERO_FAVOR_LEVEL_CHANGED = "event_hero_favor_level_changed", e.EVENT_COMMON_TASK_REFRESH = "event_common_task_refresh", e.EVENT_MAZEEXPLORE_GIFT_REDDOT = "event_mazeexplore_gift_reddot", e.EVENT_MAZEEXPLORE_UPDATE_INFO = "event_mazeexplore_update_info", e.EVENT_HAPPY_TURN_ADD_CARD = "event_happy_turn_add_card", e.EVENT_HAPPY_TURN_RETURN = "event_happy_turn_return", e.EVENT_HAPPY_TURN_RESTART = "event_happy_turn_restart", e.EVENT_HAPPY_SET_ISTURN = "event_happy_turn_set_isturn", e.EVENT_LUCKYSTAR_CLICKCOVER = "event_luckystar_clickcover", e.EVENT_CHECK_BUNDINGBOX = "event_check_bundingbox", e.EVENT_PAY_SUCCESS = "event_pay_success", e.EVENT_VIDEO_PLAY_COMPLETE = "event_video_play_complete", e.EVENT_ENTER_NEXT_AREA = "event_enter_next_area", e.EVENT_ALL_USER_TASK_REFRESH = "event_all_user_task_refresh", e.EVENT_AUDIOEFFECT_VOLUME = "event_audioeffect_volume", e.EVENT_ACTIVITY_REFRESHREDDOT = "event_activity_refreshreddot", e.EVENT_ON_CACHEEVENTIDSCHECK = "event_on_cacheeventidscheck", e.EVENT_REFRESH_MAINUI_REDDOT = "event_refresh_mainui_reddot", e.EVENT_REFRESH_ELEMENT_TRIAL = "event_refresh_element_trial", e.EVENT_REFRESH_PERSONALITY = "event_refresh_personality", e.EVENT_REFRESH_MAINUI_PERSONALITY = "event_refresh_mainui_personality", e.EVENT_REFRESH_HERODUNGEON = "event_refresh_herodungeon", e.EVENT_REFRESH_GUIDE_MODULE = "event_refresh_guide_module", e.EVENT_REFRESH_GUIDE_MODULE_ACTIVE = "event_refresh_guide_module_active", e.EVENT_REFRESH_DAYSPAY = "event_refresh_dayspay", e.EVENT_REFRESH_DAYSPAY_REDDOT = "event_refresh_dayspay_reddot", e.EVENT_CLICK_ITEM_REWARD = "event_clcik_item_reward", e.EVENT_TRIGGER_GIFT_CLOSE = "event_trigger_gift_close", e.EVENT_CONFIRM_LANGUAGE = "event_confirm_language", e.EVENT_REFRESH_CUSTOMGIFT_SELECT = "event_refresh_customgift_select", e.EVENT_MOVE_ITEM_CELL = "event_move_item_cell", e.EVENT_INGENUITY_RETURN = "event_ingenuity_return", e.EVENT_INGENUITY_RESTART = "event_ingenuity_restart", e.EVENT_FATESTARBOX_REFRESH = "event_fatestarbox_refresh", e.EVENT_REFRESH_CROSSSERVER_LADDER = "event_refresh_crossserver_ladder", e.EVENT_REFRESH_CROSSSERVER_RANK = "event_refresh_crossserver_rank", e.EVENT_REFRESH_MOONTEMPLE_DATA = "event_refresh_moontemple_data", e.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT = "event_refresh_vertical_activity_first_reddot", e.EVENT_CUSTOM_GIFT_CLOSE_SELECT = "event_custom_gift_close_select", e.EVENT_CROSSSERVER_RANK_UPDATE = "event_custom_cressserver_rank_update", e.EVENT_SKIN_REFRESH = "event_skin_refresh", e.EVENT_COMMONTASK_RECEIVE = "event_commontask_receive", e.EVENT_COMMONTASK_GO = "event_commontask_go", e.EVENT_SUMMONA_ACTIVITY_CLICK = "event_summon_activity_click", e.EVENT_SELECT_PERSONALITYS = "event_select_personalitys", e.EVENT_REFRESH_PERSONALITY_RANK = "event_refresh_personality_rank", e.EVENT_WISHTREE_SHOW_REWARD = "event_wishtree_show_reward", e.EVENT_ALLUSERPUZZLE_SELECT = "event_alluserpuzzle_select", e.EVENT_ALLUSERPUZZLE_GIVE = "event_alluserpuzzle_give", e.EVENT_ALLUSERPUZZLE_SELECT_NEED = "event_alluserpuzzle_select_need", e.EVENT_ALLUSERPUZZLE_CANCLE_NEED = "event_alluserpuzzle_cancle_need", e.EVENT_ALLUSERPUZZLE_EXCHANGE = "event_alluserpuzzle_exchange", e.EVENT_SUMMONA_LIST_CLOSE = "event_summon_list_close", e.EVENT_SUMMONA_LIST_DELAYCLOSE = "event_summon_list_delayclose", e.EVENT_SUMMONA_LIST_SET_ACTIVE = "event_summon_list_set_active", e.EVENT_LUCKYCHARM_SELECT_TAB = "event_luckycharm_select_tab", e.EVENT_CLICK_ALLIANCE_CHANLLENGE = "event_click_alliance_challeneg", e.EVENT_UPDATE_ALLIANCE_SELECT = "event_update_alliance_select", e.EVENT_UPDATE_ALLIANCE_DATA = "event_update_alliance_data", e.EVENT_MONOPOLY_REMOTE = "event_monopoly_remote", e.EVENT_MONOPOLY_SCROLLING = "event_monopoly_scrolling", e.EVENT_UPDATE_ALLIANCE_ALL_DATA = "event_update_alliance_all_data", e.EVENT_SELECT_TACTICAL_ITEM = "event_select_tactical_item", e.EVENT_CONTINUOUSCHARGE_PROGRESS_SCROLLVIEW = "event_continuouscharge_progress_scrollview", e.EVENT_BADGECOLLECT_LIGHTINGBADGE = "event_badgecollect_lightingbadge", e.EVENT_BADGECOLLECT_TASK_RECEIVE = "event_badgecollect_task_receive", e.EVENT_BADGECOLLECT_TASK_GO = "event_badgecollect_task_go", e.EVENT_CHANGE_MAIN_SCENE_BUTTON_VISIBLE = "event_change_main_scene_button_visible", e.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK = "event_customize_scene_item_click", e.EVENT_CUSTOMIZE_SCENE_CHANGED = "event_customize_scene_changed", e.EVENT_WARTOKEN_ITEM_CLICK = "event_wartoken_item_click", e.EVENT_SELECT_POWERCOREUPMATERIAL = "event_select_powercoreupmaterial", e.EVENT_TASK_PANEL_CLOSE = "event_task_panel_close", e.EVENT_CONTINUOUS_FIGHT_UPDATE = "event_continuous_fight_update", e.EVENT_SET_SELECT_HEROSID = "event_set_select_herosid", e.EVENT_LOGINBROADCAST_SHOW = "event_loginbroadcast_show", e.EVENT_STARTEMPLE_SWITCH = "event_startemple_switch", e.EVENT_GIFTPACK_ITEM_CLICK = "event_giftpack_item_click", e.EVENT_LOVERARROW_PLAY_CONSUME_CLICK = "event_loverarrow_play_consume_click", e.EVENT_LOVERARROW_GAME_OVER = "event_loverarrow_game_over", e.EVENT_LOVERARROW_SLOWDOWN_TIMEOVER = "event_loverarrow_slowdown_timeover", e.EVENT_REFRESH_COLLECTION_NEW = "event_refresh_collection_new", e.EVENT_REFRESH_PETLIST_SORT = "event_refresh_petlist_sort", e.EVENT_SELECT_PETSIDS = "event_select_petsids", e.EVENT_PET_DATA_REFRESH = "event_pet_data_refresh", e.EVENT_RISING_STAR_SELECT_HERO = "rising_star_select_hero", e.EVENT_VIETNAM_VISITORLOGIN = "event_vietnam_visitorlogin", e.EVENT_VIETNAM_SWITCHACCOUNT = "event_vietnam_switchaccount", e.EVENT_PETLIST_SHOW = "event_petlist_show", e.EVENT_REFRESH_PET_CURRENCY = "event_refresh_pet_currency", e.EVENT_REFRESH_POPUPGIFT_DATA = "event_refresh_popupgift_data", e.EVENT_POPUPGIFT_TIME_OUT = "event_popupgift_time_out", e.EVENT_REFRESH_GIFT_PACK_LIST = "event_refresh_gift_pack_list", e.EVENT_POWERCOREPIECE_CLOSETIP = "event_powercorepiece_closetip", e.EVENT_SELECT_ACTIVITY_HERO = "event_select_activity_hero", e.EVENT_SET_LOGICMAKS_ACTIVE = "event_set_logicmask_active", e.EVENT_REFRESH_LUCKYCHARM_SKILLS = "event_refresh_luckycharm_skills", e.EVENT_STUDY_LUCKYCHARM_SKILLS = "event_study_luckycharm_skills", e.EVENT_CAMPSUPPORT_GOTOSUPPORT = "event_campsupport_gotoSupport", e.EVENT_DAILY_GIFT_RECEIVE = "event_daily_gift_receive", e.EVENT_SELECT_QUICK_HERO = "event_select_quick_hero", e.EVENT_MAP_SCROLLTOSTRONGHOLD = "event_map_scrolltostronghold", e.EVENT_SKINHANDBOOK_REFRESH = "event_skinhandbook_refresh", e.EVENT_PERSONALITYHANDBOOK_REFRESH = "event_personalityhandbook_refresh", e.EVENT_SELECT_ALLIANCE = "event_select_alliance", e.EVENT_CLOSE_ACT_PREVIEW_PANEL = "event_close_act_Preview_Panel", e.EVENT_REFRESH_STRONGHOLDLIST = "event_refresh_strongholdList", e.EVENT_REFRESH_ANGELATTRNODE = "event_refresh_angelattrnode", e.EVENT_SUMMONBOX_SELECT_COMPLETE = "event_summonBox_select_complete", e.EVENT_SUMMONBOX_SELECT_RESELECT = "event_summonBox_select_reselect", e.EVENT_REFRESH_HANDBOOK_BTN_STATUS = "event_refresh_handbook_btn_status", e.EVENT_ANGEL_SKIN_REFRESH = "event_skinangel__refresh", e.EVENT_STRONGHOLDWAR_RESULT_CLOSE = "event_strongholdwar_result_close", e.EVENT_STRONGHOLDWAR_GOTO_CITY = "event_strongholdwar_goto_city", e.EVENT_UPDATE_RANK_DATA = "event_update_rank_data", e.EVENT_UNLOCK_PAGE_EFFECT = "event_unlock_page_effect", e.EVENT_ANGEL_DESTINY_REBORN = "event_angel_destiny_reborn", e.EVENT_ANGEL_DESTINY_AUTO_STATUS = "event_angel_destiny_auto_status", e.EVENT_STRONGHOLDWAR_DATA_HANDLER = "event_strongholdwar_data_handler", e.EVENT_SELECT_ELEMENT_TYPE_ITEM = "event_select_element_type_item", e.EVENT_REFRESH_DOUBLE_REDDOT = "event_refresh_double_reddot", e.EVENT_NEW_ASSISTANT_SCROLLVIEW = "event_new_assistant_scrollview", e.EVENT_OFFSERVICE_DATA_REFRESH = "event_offservice_data_refresh", e.EVENT_GODSOUL_SELECT = "event_godSoul_select", e.EVENT_GODSOUL_EQU = "event_godSoul_equ", e.EVENT_GODSOUL_TAKE_OFF = "event_godSoul_take_off", e.EVENT_GODSOUL_CAST_SAVE = "event_godSoul_cast_save", e.EVENT_SEND_EMOJI = "event_send_emoji", e.EVENT_BLACK_LIST_CHANGE = "event_black_list_change", e.EVENT_SELECT_REWARD_BOX = "event_select_reward_box", e.EVENT_SET_MANUAL_BOX_ACTIVE = "event_set_manual_box_active", e.EVENT_GEM_GALLERY_SELECT_CLOSE = "event_gem_gallery_select_close", e.EVENT_FITSOUL_OPENBAG = "event_fitSoul_openBag", e.EVENT_FITSOUL_FIND_GRAPH = "event_fitSoul_find_graph", e.EVENT_REFRESH_STAR_GARRISON = "event_refresh_star_garrison", e.EVENT_SET_FORMATION_ANGEL = "event_set_formation_angel", e.EVENT_CLOSE_CHATPANEL_REFRESH = "event_close_chatpanel_refresh", e.EVENT_FREE_FALL_REFRESH = "event_free_fall_refresh", e.EVENT_KNIFE_TRAIN_BACK = "event_knife_train_back", e.EVENT_KNIFE_TRAIN_REFRESH = "event_knife_train_refresh", e.EVENT_SWITCH_CAREER_TYPE = "event_switch_career_type", e.EVENT_ITEM_HOLD = "event_item_hold", e.EVENT_SECRETAREA_RESTART_AUTO = "event_secretarea_restart_auto", e.EVENT_SECRETAREA_SET_AUTO = "event_secretarea_set_auto", e.EVENT_ASSISTANT_TOGGLE_1_REFRESH = "event_assistant_toggle_1_refresh", e.EVENT_ASSISTANT_TOGGLE_2_REFRESH = "event_assistant_toggle_2_refresh", e.EVENT_ACT_SOCRE_SHOP_ADD_TO_CAR = "event_act_score_shop_add_to_car", e.EVENT_SECRETAREA_PROP_TIP_NULL = "event_secretarea_prop_tip_null", e.EVENT_HERO_HANDBOOK_SCROLLVIEW = "event_hero_handbook_scrollview", e.EVENT_PARANORMAL_PUZZLE_SELECT = "event_paranormal_puzzle_select", e.EVENT_PARANORMAL_PUZZLE_ITEM_CLICK = "event_paranormal_puzzle_item_click", e.EVENT_PARANORMAL_PUZZLE_CLOSE_HINT = "event_paranormal_puzzle_close_hint", e.EVENT_PARANORMAL_PUZZLE_STAGE_REFRESH = "event_paranormal_puzzle_stage_refresh", e.EVENT_PARANORMAL_PUZZLE_MOVE_START = "event_paranormal_puzzle_move_start", e.EVENT_PARANORMAL_PUZZLE_MOVE = "event_paranormal_puzzle_move", e.EVENT_PARANORMAL_PUZZLE_MOVE_END = "event_paranormal_puzzle_move_end", e.EVENT_COMMON_REWARDS_PANEL_CLOSE = "event_common_rewards_panel_close", e.EVENT_CLOSE_NPC_DIALOG = "event_close_npc_dialog", e.EVENT_CLOSE_ATTRTOTAL_COMPONENT = "event_close_attrtotal_component", e.EVENT_CLOSE_PUZZLE_SELECT_TIP = "event_close_puzzle_select_tip", e.EVENT_ITEM_CLICK_START = "event_item_click_start", e.EVENT_ITEM_CLICK_MOVE = "event_item_click_move", e.EVENT_ITEM_CLICK_CANCLE = "event_item_click_cancle", e.EVENT_ARTIFACT_LIST_REFRESH = "event_artifact_list_refresh", e.EVENT_ARTIFACT_FORGE_SELECT = "event_artifact_forge_select", e.EVENT_ARTIFACT_PANEL_REFRESH = "event_artifact_panel_refresh", e.EVENT_ARTIFACT_REFRESH_SHOW_LIST = "event_artifact_refresh_show_list", e.EVENT_ARTIFACT_HERO_REFRESH = "event_artifact_hero_refresh", e.EVENT_PETWISH_PAGE_SHOW = "event_petwish_page_show", e.EVENT_PETHATCH_PAGE_SHOW = "event_pethatch_page_show", e.EVENT_ARTIFACT_RESONANCE_REFRESH = "event_artifact_resonance_refresh", e.EVENT_CLOSE_ITEM_CHANGE_PANEL = "event_close_item_change_panel", e.EVENT_CLOSE_HERO_CHANGE_PANEL = "event_close_hero_change_panel", e.EVENT_ARTIFACT_REDDOT = "event_artifact_reddot", e.EVENT_REFRESH_TRAVEL_GOODS_DATA = "event_refresh_travel_goods_data", e.DRAGMOVE_MOUSEDOWN = "DragMove_MouseDown", e.DRAGMOVE_MOUSEMOVE = "DragMove_MouseMove", e.DRAGMOVE_MOUSEUP = "DragMove_MouseUp", e.DRAGMOVESORTGROUP_CHANGE = "DragMoveSortGroup_change", e.HOLYRELICCONFIGCELL_ARROW = "HolyRelicConfigCell_Arrow", e.HOLYRELICCONFIGHERO_CHECK = "HolyRelicConfigHero_Check", e.HOLYRELIC_WEAR = "HolyRelic_wear", e.HOLYRELIC_CHANGEELEMENTTYPE = "HolyRelic_changeElementType", e.HOLYRELIC_NEXTCHECKPOINT = "HolyRelic_Next_CheckPoint", e.LUCKYDRAWPANEL_EXCHANGE = "LuckyDrawPanel_exchange", e.LUCKYDRAWPANEL_GET = "LuckyDrawPanel_get", e.LUCKYDRAWPANEL_SHOWREWARDS = "LuckyDrawPanel_showRewards", e.EVENT_ARTIFACT_REFRESH_ACTIVE = "event_artifact_refresh_active", e.EVENT_VS_COMPLETE = "event_vs_complete", e.EVENT_COMMON_EQUIPMENT_SET_DATA = "event_common_equipment_set_data", e.EVENT_LUCKYCHARM_QUICK_COMPOSE = "event_luckycharm_quick_compose", e.EVENT_COMMON_EQUIPMENT_MOVE = "event_common_equipment_move", e.EVENT_COMMON_EQUIPMENT_MOVE_START = "event_common_equipment_move_start", e.EVENT_COMMON_EQUIPMENT_MOVING = "event_common_equipment_moving", e.EVENT_COMMON_EQUIPMENT_MOVE_END = "event_common_equipment_move_end", e.EVENT_COMMON_EQUIPMENT_MOVE_CANCEL = "event_common_equipment_move_cancel", e.EVENT_GEM_QUICK_COMPOSE = "event_gem_quick_compose", e.EVENT_ASSISTANT_AUTO_DATA = "event_assistant_auto_data", e.EVENT_SECKILL_GIFT_GROUP_REFRESH = "event_seckill_gift_group_refresh", e.EVENT_SECKILL_GIFT_DATA_REFRESH = "event_seckill_gift_data_refresh", e.EVENT_SKIN_PACK_REFRESH = "event_skin_pack_refresh", e.EVENT_LUCKYCHARM_REDDOT_REFRESH = "event_luckycharm_reddot_refresh", e.EVENT_CASHMALL_REFRESH_REDCOUNT = "event_cashmall_refresh_redcount", e.EVENT_CASHMALL_REFRESH_SHOPCART = "event_cashmall_refresh_shopcart", e.EVENT_CASHMALL_REFRESH_COUPON = "event_cashmall_refresh_coupon", e.EVENT_CASHMALL_REFRESH_COUPON_TIME = "event_cashmall_refresh_coupon_time", e.EVENT_CASHMALL_SELECT_COUPON = "event_cashmall_select_coupon", e.EVENT_CASHMALL_SCROLLVIEW = "event_cashmall_scrollview", e.EVENT_PAY_PICKS_SUCCESS = "event_pay_picks_success", e.EVENT_RUNNINGTRAIN_SELECT_HERO = "event_runningtrain_select_hero", e.EVENT_CHAT_HOLD = "event_chat_hold", e.EVENT_CHAT_RECOVER = "event_chat_recover", e.EVENT_STORY_PLAY_OVER = "event_story_play_over", e.EVENT_RECHARGE_FEEDBACK_REFRESH = "event_recharge_feedback_refresh", e.EVENT_GEM_CHANGE_REFRESH = "event_gem_change_refresh", e.EVENT_UPDATE_TARGET_INFO = "event_update_target_info", e.EVENT_TREASURE_HUNT_SELECT_FINAL = "event_treasure_hunt_select_final", e.EVENT_TREASURE_HUNT_REFRESH = "event_treasure_hunt_refresh", e.EVENT_TREASURE_HUNT_TURN_REFRESH = "event_treasure_hunt_turn_refresh", e.EVENT_TREASURE_HUNT_SET_MOVE = "event_treasure_hunt_set_move", e.EVENT_CHAMPIONPREVIEW_CLEAR_FORECASTDATA = "event_championpreview_clear_forecastdata", e.EVENT_ACTIVITYCHAMPION_EDIT_TEAM = "event_activitychampion_edit_team", e.EVENT_PAID_EMOJI_REFRESH = "event_paid_emoji_refresh", e.EVENT_CIRCUSMAZE_DIAMOND_COUNT = "event_circusmaze_count", e.EVENT_CIRCUSMAZE_REFRESH_ONE = "event_circusmaze_refresh_one", e.EVENT_CIRCUSMAZE_REFRESH_ALL = "event_circusmaze_refresh_all", e.EVENT_HEROJOB_ITEM_SELECT = "event_herojob_item_select", e.EVENT_HEROJOB_REFRESH = "event_herojob_refresh", e.EVENT_ITEM_SELECT_USE_REFRESH = "event_item_select_use_refresh", e.EVENT_WISH_ANGEL_CHANGE = "event_wish_angel_change", e.EVENT_CORE_QUICKUP_RESET_TOGGLE = "event_core_quickup_reset_toggle", e.EVENT_CORSAIR_BATTLE_START = "event_corsair_battle_start", e.EVENT_CORSAIR_BATTLE_STOP = "event_corsair_battle_stop", e.EVENT_CORSAIR_TARGECT_POS = "event_corsair_targect_pos", e.EVENT_CHAMPIONSHIP_REFRESHDATA = "event_championship_refreshdata", e.EVENT_CHAMPIONSHIP_REFRESHPANEL = "event_championship_refreshpanel", e.EVENT_CHAMPIONSHIP_REFRESHREWARD = "event_championship_refreshreward", e.EVENT_CHECK_CHAMPIONLEGEND_BUNDINGBOX = "event_check_championlegend_bundingbox", e.EVENT_REFRESH_BAGPANEL = "event_refresh_bagpanel", e.EVENT_VISITORBIND_SUCCESS = "event_visitorbind_success", e.EVENT_BREAKOUTMATCH_REFRESHDATA = "event_breakoutmatch_refreshdata", e.EVENT_BREAKOUTMATCH_CHALLENGE = "event_breakoutmatch_challenge", e.EVENT_BREAKOUTMATCH_REFRESH_MAIN = "event_breakoutmatch_refresh_main", e.EVENT_FRAME_SUB_NODE_REFRESH = "event_frame_sub_node_refresh", e.EVENT_FIGHTINGMINIGAME_PUSH = "event_fightingminigame_push", e.EVENT_GUIDEHINT_CLOSE = "event_guidehint_close", e.EVENT_FRAME_NODE_TURN_PAGE = "event_frame_node_turn_page", e.EVENT_2048_USE_CONSUME = "event_2048_use_consume", e.EVENT_RUINSWAR_REFRESH_STRONGPOINT = "event_ruinswar_refresh_strongpoint", e.EVENT_RUINSWAR_SCORE_CHANGE = "event_ruinswar_score_change", e.EVENT_RUINSWAR_REPORT_MSG = "event_ruinswar_report_msg", e.EVENT_RUINSWAR_REFRESH_STATE = "event_ruinswar_refresh_state", e.EVENT_RUINSWAR_RECONNECTED = "event_ruinswar_reconnected", e.EVENT_CHANGE_MAINUI_SIMPLFILY = "event_change_mainui_simplfily", e.EVENT_SWITCH_QUALITY = "event_switch_quality", e.EVENT_PRIVILEGE_PAY = "event_privilege_pay", e.EVENT_MAINBATTLEANI_REFRESH = "event_mainbattleani_refresh", e.EVENT_IS_ENTRY_COMPLETED = "event_is_entry_completed", e.EVENT_IS_PLAYANIMATION_COMPLETED = "event_is_playanimation_completed", e.EVENT_IS_INITIAL_COMPLETED = "event_is_initial_completed", e.EVENT_IS_RESTORED = "event_is_restored", e.EVENT_FLOATICON_ACTIVE = "event_floaticon_active", e.EVENT_BATTLECHANGE = "event_battlechange", e.EVENT_ARENABATTLE_REFRESH = "event_arenabattle_refresh", e.EVENT_TOGGLE_FLOATICON = "event_toggle_floaticon", e.EVENT_BATTLESWITCHTOBACKGROUND = "event_battleswitchtobackground", e.EVENT_RANKMATCH_REFRESH = "event_rankmatch_refresh", e.EVENT_ABYSSBATTLE_REFRESH = "event_abyssbattle_refresh", e.EVENT_ACTIVITY_ICON_REFRESH = "event_activity_icon_refresh", e.EVENT_NEWPERSONALITY_ACTIVE_GUIDE = "event_newpersonality_active_guide", e.EVENT_NEWPERSONALITY_HIDE_MAINUI = "event_newpersonality_hide_mainui", e.EVENT_REFRESH_HANG_UP_REWARD_TIME = "event_refresh_hang_up_reward_time", e.EVENT_JOINALLIANCE_SENT = "event_joinalliance_sent", e.EVENT_PANEL_FINALCLOSE = "event_panel_finalclose", e.EVENT_GAMEMODULEGUID_CLICKNEXT = "event_gamemoduleguid_clicknext", e.EVENT_REFRESH_SINGLEPACK_SELECT = "event_refresh_singlepack_select", e.EVENT_DRAWBATTLE_DRAW = "event_drawbattle_draw", e.EVENT_DRAWBATTLE_END = "event_drawbattle_end", e.EVENT_ASSAULT_OPERATION_MOVE = "event_assault_operation_move", e.EVENT_ASSAULT_OPERATION_RESOURCE_CHANGE = "event_assault_operation_resource_change", e.EVENT_ASSAULT_OPERATION_ENERGY_CHANGE = "event_assault_operation_energy_change", e.EVENT_ASSAULT_OPERATION_MAP = "event_assault_operation_map", e.EVENT_ASSAULT_OPERATION_WIN_STEAK = "event_assault_operation_win_steak", e.EVENT_ASSAULT_OPERATION_REFRESH = "event_assault_operation_refresh", e.EVENT_DESTORY_ARTIFACT_NOTICE = "event_destory_artifact_notice", e.EVENT_ALLIANCEBOSS_SKILL_PUSH = "event_allianceboss_skill_push", e
        }();
        n.EventKeys = o, cc._RF.pop()
    }, {}],
    EventManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "34f97SMlpxJCLxrlex1/3uV", "EventManager"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.EventManager = void 0;
        var o = e("../Auxiliary/EZLog"),
            r = function() {
                function e() {
                    this._eventListeners = {}
                }
                return Object.defineProperty(e, "Instance", {
                    get: function() {
                        return null === this._instance && (this._instance = new e), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.prototype.On = function(e, t, n) {
                    this.AddEventListener(e, t, !1, n)
                }, e.prototype.Once = function(e, t, n) {
                    this.AddEventListener(e, t, !0, n)
                }, e.prototype.AddEventListener = function(e, t, n, r) {
                    if (!e) return o.EZLog.Error("Event name is empty"), !1;
                    if (null == t) return o.EZLog.Error("Event callback is null"), !1;
                    var i = {
                        callBackFunc: t,
                        target: r,
                        once: n
                    };
                    return null == this._eventListeners[e] ? this._eventListeners[e] = [i] : -1 == this.IndexOfListener(e, t, r) && this._eventListeners[e].push(i), !0
                }, e.prototype.Off = function(e, t, n) {
                    if (null != this._eventListeners[e]) {
                        var o = this.IndexOfListener(e, t, n);
                        o > 0 && this._eventListeners[e].splice(o, 1)
                    }
                }, e.prototype.Emit = function(e, t) {
                    var n = this._eventListeners[e];
                    if (n)
                        for (var o = 0; o < n.length; o++) {
                            var r = n[o];
                            r.callBackFunc.call(r.target, t), r.once && (n.splice(o, 1), o--)
                        }
                }, e.prototype.IndexOfListener = function(e, t, n) {
                    for (var o = -1, r = this._eventListeners[e].length, i = 0; i < r; i++) {
                        var a = this._eventListeners[e][i];
                        if (a.callBackFunc == t && (!n || a.target == n)) {
                            o = i;
                            break
                        }
                    }
                    return o
                }, e._instance = null, e
            }();
        n.EventManager = r, cc._RF.pop()
    }, {
        "../Auxiliary/EZLog": "EZLog"
    }],
    ExclusiveGiftPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f7d19eMxNZCkImJDLUTnNkA", "ExclusiveGiftPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Components/Components"),
            g = e("./NodePool"),
            m = e("../../Channel/ChannelManager"),
            I = e("./CommonTaskTipComponent"),
            _ = e("../../../Consts/Consts"),
            C = e("../../../../Proto/Static/ConfigProto"),
            v = e("../../../EZFramework/EZFramework"),
            b = e("./ElderGiftPackComponent"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0, !1, !0), t.Title = null, t.TimeRemainderLabel = null, t.GiftPackItemScrollView = null, t.GiftPackItemContainer = null, t.BannerImage = null, t.CommonTaskTipComponent = null, t._customLayout = null, t._itemPrefab = null, t._singlePrefab = null, t._itemPool = null, t._giftConfigs = [], t._activityConfigData = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    v.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), v.Game.EventDispatcher.On(p.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyGiftButtonClick, this), v.Game.EventDispatcher.On(p.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess, this)
                }, t.prototype.onDisable = function() {
                    this.unscheduleAllCallbacks(), v.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh), v.Game.EventDispatcher.Off(p.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyGiftButtonClick), v.Game.EventDispatcher.Off(p.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallElderGiftPackPanel/Component/ElderGiftPackComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1], o._itemPool = new g.default(o._itemPrefab)
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ChaosSummon_StarPieceGiftPack".ToUILocale(), this._customLayout = this.GiftPackItemContainer.getComponent(h.default), this._customLayout.Init(this._singlePrefab)
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this, t), this._heroId = t[0], this._activityConfigData = t[1], this._giftPackType = t[2], this._activityConfigData) this._summonStartTime = this._activityConfigData.Common.StartTime, this._summonEndTime = f.default.Instance.ComputeDeadTime(this._activityConfigData.Common) - 3 * _.Etc.HourDuration;
                    else {
                        var n = y.DataCenter.Instance.ZoneGroupResetTime;
                        this._summonStartTime = n - _.Etc.HourDuration * this._summonOpenHours, this._summonEndTime = n - 3 * _.Etc.HourDuration
                    }
                    this.LoadGiftPackConfig()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetBannerView(), this.SetTimeLeftView(), this.schedule(this.SetTimeLeftView, 1), this._customLayout.RenderLayOut(this._giftConfigs.length)
                }, t.prototype.SetBannerView = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._activityConfigData ? [4, f.default.LoadActivityTexture(this._activityConfigData.Common.ShowImage)] : [2];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._loadAssets.push(e), this.BannerImage.spriteFrame = e, [2]) : (v.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.LoadGiftPackConfig = function() {
                    var e = this;
                    if (this._giftConfigs = [], this._activityConfigData) {
                        var t = [],
                            n = [],
                            o = y.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfigData._id),
                            r = this._activityConfigData.CustomPart.ExclusiveWeaponPackIds,
                            i = [];
                        r.forEach(function(t) {
                            for (var n = 0; n < e._activityConfigData._Packs.length; n++)
                                if (e._activityConfigData._Packs[n].Id == t) {
                                    i.push(e._activityConfigData._Packs[n]);
                                    break
                                }
                        }), i.forEach(function(e) {
                            var r = o.Packs[e.Id] && o.Packs[e.Id].Items[0] ? o.Packs[e.Id].Items[0] : 0;
                            e.LimitCount ? e.LimitCount - r > 0 ? n.push(e) : t.push(e) : n.push(e)
                        }), n.forEach(function(t) {
                            e._giftConfigs.push(t)
                        }), t.forEach(function(t) {
                            e._giftConfigs.push(t)
                        })
                    } else {
                        var a = y.ConfigDataComponent.Instance.GetConfigById(C.LevelParam_Config, this._giftPackType).Data,
                            s = [],
                            l = [];
                        a.forEach(function(e) {
                            var t = y.ConfigDataComponent.Instance.GetConfigById(C.GiftPack_Config, e);
                            t.LimitCount ? t.LimitCount - f.default.Instance.GetGiftBuyCount(t.Id) > 0 ? l.push(t) : s.push(t) : l.push(t)
                        }), l.forEach(function(t) {
                            e._giftConfigs.push(t)
                        }), s.forEach(function(t) {
                            e._giftConfigs.push(t)
                        })
                    }
                }, t.prototype.SetTimeLeftView = function() {
                    this._activityConfigData ? this._summonEndTime - y.RpcComponent.Instance.ServerTime > 0 ? this.TimeRemainderLabel.string = "ChaosSummonGift_TimeLeft".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(this._summonEndTime - y.RpcComponent.Instance.ServerTime)) : (this.TimeRemainderLabel.string = "<outline color=#202434 width=3>" + "activity_end".ToUILocale() + "</outline>", this.unschedule(this.SetTimeLeftView)) : this.TimeRemainderLabel.string = "ChaosSummonGift_TimeLeft".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(Math.max(this._summonEndTime - y.RpcComponent.Instance.ServerTime, 0)))
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    if (t == this._customLayout)
                        if (this._activityConfigData) {
                            var o = y.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfigData._id);
                            e.forEach(function(e, t) {
                                var r = n._giftConfigs[t],
                                    i = null == r.Money || 0 == r.Money ? 0 : m.default.Instance.ExchangeMoney(r.Money),
                                    a = o.Packs[r.Id] && o.Packs[r.Id].Items[0] ? o.Packs[r.Id].Items[0] : 0;
                                e.getComponent(b.default).SetNodSize(840, 244).SetItems(n._itemPool, r.Items).SetButtonLabel(i, r.VipPoint).SetPurchaseLimit(r.LimitCount - a, r.LimitCount, r.LimitType).SetTitle(r.Name).SetDiscount(r.Discount).SetButtonClick(t)
                            })
                        } else e.forEach(function(e, t) {
                            var o = n._giftConfigs[t],
                                r = null == o.Money || 0 == o.Money ? 0 : m.default.Instance.ExchangeMoney(o.Money);
                            e.getComponent(b.default).SetNodSize(840, 244).SetItems(n._itemPool, o.Items).SetButtonLabel(r, o.VipPoint).SetPurchaseLimit(o.LimitCount - f.default.Instance.GetGiftBuyCount(o.Id), o.LimitCount, o.LimitType).SetTitle(y.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id)).SetDiscount(o.Discount).SetButtonClick(t)
                        })
                }, t.prototype.OnBuyGiftButtonClick = function(e) {
                    var t = this,
                        n = y.RpcComponent.Instance.ServerTime;
                    if (n < this._summonStartTime || n > this._summonEndTime) d.UIUtlity.ShowFloatingHint("ChaosSummon_SummonEnd".ToUILocale());
                    else if (0 == this._giftConfigs[e].Money) {
                        var o = new c.Req_Pay_ByDiamond;
                        this._activityConfigData ? (o.Id = this._giftConfigs[e].Id, o.ActivityId = this._activityConfigData._id, y.RpcComponent.Instance.Call(o, function(e) {
                            d.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t.ResetListView()
                        })) : (o.Id = this._giftConfigs[e].Id, y.RpcComponent.Instance.Call(o, function(e) {
                            d.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t.ResetListView()
                        }))
                    } else this._activityConfigData ? m.default.Instance.Pay(this._giftConfigs[e].Id, this._activityConfigData._id) : m.default.Instance.Pay(this._giftConfigs[e].Id)
                }, t.prototype.OnBuyGiftPackSuccess = function() {
                    this.ResetListView()
                }, t.prototype.ResetListView = function() {
                    this.LoadGiftPackConfig(), this._customLayout.RenderLayOut(this._giftConfigs.length)
                }, t.prototype.onDestroy = function() {
                    this._itemPool && this._itemPool.Clear(), this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.RichText)], t.prototype, "TimeRemainderLabel", void 0), i([P(cc.ScrollView)], t.prototype, "GiftPackItemScrollView", void 0), i([P(h.default)], t.prototype, "GiftPackItemContainer", void 0), i([P(cc.Sprite)], t.prototype, "BannerImage", void 0), i([P(I.default)], t.prototype, "CommonTaskTipComponent", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./CommonTaskTipComponent": "CommonTaskTipComponent",
        "./ElderGiftPackComponent": "ElderGiftPackComponent",
        "./NodePool": "NodePool"
    }],
    ExclusiveWeaponGalleryAttributePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "57fb05mHlxA5qydq0M6ooOZ", "ExclusiveWeaponGalleryAttributePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Components/CareerTypeGroup"),
            p = e("../Components/HeroAttributeItem"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.CareerTypeGroup = null, t.Parent = null, t.NoAttrNode = null, t.NoAttrLabel = null, t._itemNodes = [], t._currentGroupCareerType = -1, t._attrsByCareerType = {}, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionHandbookAttributeItem", cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "handbook_attr_total".ToUILocale(), this.NoAttrLabel.string = "CollectionPavilion_Tip_UnAttr".ToUILocale(), l.Game.EventDispatcher.On(c.EventKeys.EVENT_SWITCH_CAREER_TYPE, this.OnSwitchCareerType, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._attrsByCareerType = t[0], this._contentKeys = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), t || (this._contentKeys && this.SetLabels(), this.CareerTypeGroup.SetDefault())
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_SWITCH_CAREER_TYPE, this.OnSwitchCareerType, this)
                }, t.prototype.SetLabels = function() {
                    this.Title.string = this._contentKeys.PanelTitleKey.ToUILocale(), this.NoAttrLabel.string = this._contentKeys.EmptyContentKey.ToUILocale()
                }, t.prototype.OnSwitchCareerType = function(e, t) {
                    t == this.CareerTypeGroup.node && this._currentGroupCareerType != e && (this._currentGroupCareerType = e, this.SetNodeAttributeList())
                }, t.prototype.SetNodeAttributeList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c, u;
                        return s(this, function() {
                            for (n in e = 0, t = {}, 0 == this._currentGroupCareerType ? t = this._attrsByCareerType : t[this._currentGroupCareerType] = this._attrsByCareerType[this._currentGroupCareerType], t)
                                for (i in o = Number(n), r = t[o]) a = Number(i), this._itemNodes[e] || ((l = cc.instantiate(this._itemPrefab)).parent = this.Parent.node, this._itemNodes[e] = l), this._itemNodes[e].active = !0, (c = this._itemNodes[e].getComponent(p.default)).Init(a, r[a], !0), c.SetTagName(("hero_career_" + o).ToUILocale()), e++;
                            for (u = e; u < this._itemNodes.length; u++) this._itemNodes[u].active = !1;
                            return this.NoAttrNode.active = 0 == e, this.Parent.node.active = e > 0, this.Parent.updateLayout(), [2]
                        })
                    })
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(u.default)], t.prototype, "CareerTypeGroup", void 0), i([f(cc.Layout)], t.prototype, "Parent", void 0), i([f(cc.Node)], t.prototype, "NoAttrNode", void 0), i([f(cc.Label)], t.prototype, "NoAttrLabel", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/CareerTypeGroup": "CareerTypeGroup",
        "../Components/HeroAttributeItem": "HeroAttributeItem"
    }],
    ExclusiveWeaponGalleryGroup: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d5a41YnKBVPGp3k9uTLM9Mp", "ExclusiveWeaponGalleryGroup");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Components/Components"),
            f = e("../../Components/DataCenter"),
            y = e("../Panel/StarPiecePanel"),
            g = e("./StarPieceItem"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CareerIcon = null, t.CareerNameLabel = null, t.CareerLevelLabel = null, t.TelekinesisIcon = null, t.CareerPointLabel = null, t.ItemContainer = null, t.MainAtlas = null, t._careerType = -1, t._pieceIds = [], t._itemNodes = [], t._teleninesisMaterialId = -1, t._telekinesisPointCanGet = 0, t._itemPrefab = null, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(d.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(d.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDestroy = function() {
                    this._itemNodes = null, this._unloadAssets.forEach(function(e) {
                        e && u.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.ProID2AtlasIconName = function(e) {
                    switch (e) {
                        case 1:
                            return "pro-small-warrior";
                        case 2:
                            return "pro-small-mage";
                        case 3:
                            return "pro-small-tank";
                        case 4:
                            return "pro-small-con"
                    }
                    return ""
                }, t.prototype.Init = function(e, t, n, o) {
                    this._itemPrefab = e, this._careerType = t, this._pieceIds = n, this._teleninesisMaterialId = o, this.CareerIcon.spriteFrame = this.MainAtlas.getSpriteFrame(this.ProID2AtlasIconName(t)), this.CareerNameLabel.string = ("hero_career_" + t.toString()).ToUILocale(), this.SetCareerTelekinesisInfo(), this.SetItems(), this.LoadTelekinesisIcon()
                }, t.prototype.RefreshGroupInfo = function() {
                    this.SetCareerTelekinesisInfo(), this.SetItems()
                }, t.prototype.GetTelekinesisPointCanGet = function() {
                    return this._telekinesisPointCanGet
                }, t.prototype.SetCareerTelekinesisInfo = function() {
                    for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(l.ExclusiveWeaponLevel_Config), t = h.ConfigDataComponent.Instance.GetArrayConfig(l.ExclusiveWeaponStar_Config), n = 0, o = 0, r = 0, i = 0, a = 0; a < this._pieceIds.length; a++) {
                        var s = f.DataCenter.Instance.GetDataById(c.ExclusiveWeapon_Model, this._pieceIds[a]),
                            p = h.ConfigDataComponent.Instance.GetConfigById(l.ExclusiveWeapon_Config, this._pieceIds[a]),
                            d = y.default.Exclusive_Max_Star;
                        if (r += e[t[d - 1].LevelCap - 1].Telekinesis + t[d - 1].Telekinesis + p.AwakenRewards[0].Items[1], null != s) {
                            11501 == p.Id && u.EZLog.Log("11501"), i++;
                            var g = s.LevelReward,
                                m = s.StarReward,
                                I = s.IsAwakeningReward;
                            n += (g > 0 ? e[g - 1].Telekinesis : 0) + (m > 0 ? t[m - 1].Telekinesis : 0) + (I ? p.AwakenRewards[0].Items[1] : 0);
                            var _ = s.Level,
                                C = s.Star,
                                v = s.IsAwakening;
                            o += (_ > 0 ? e[_ - 1].Telekinesis : 0) + (C > 0 ? t[C - 1].Telekinesis : 0) + (v ? p.AwakenRewards[0].Items[1] : 0)
                        }
                    }
                    this.CareerLevelLabel.string = i.toString() + "/" + this._pieceIds.length.toString(), this.CareerPointLabel.string = n.toString() + "/" + r.toString(), this._telekinesisPointCanGet = o - n
                }, t.prototype.LoadTelekinesisIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = p.default.Instance.GetItemPathById(this._teleninesisMaterialId), [4, u.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._unloadAssets.push(t), this.TelekinesisIcon.spriteFrame = t, [2]) : (u.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetItems = function() {
                    for (var e = 0, t = this._pieceIds.length; e < t; e++) {
                        var n = this._itemNodes[e];
                        n || (n = cc.instantiate(this._itemPrefab), this._itemNodes.push(n), n.parent = this.ItemContainer), n.getComponent(g.default).SetUI(this._pieceIds[e], y.StarTemplePieceType.Exclusive, this._teleninesisMaterialId)
                    }
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, i([_(cc.Sprite)], t.prototype, "CareerIcon", void 0), i([_(cc.Label)], t.prototype, "CareerNameLabel", void 0), i([_(cc.Label)], t.prototype, "CareerLevelLabel", void 0), i([_(cc.Sprite)], t.prototype, "TelekinesisIcon", void 0), i([_(cc.Label)], t.prototype, "CareerPointLabel", void 0), i([_(cc.Node)], t.prototype, "ItemContainer", void 0), i([_(cc.SpriteAtlas)], t.prototype, "MainAtlas", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Panel/StarPiecePanel": "StarPiecePanel",
        "./StarPieceItem": "StarPieceItem"
    }],
    ExclusiveWeaponGalleryPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b13c2bneKJLTKZ+gLRGPfAB", "ExclusiveWeaponGalleryPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Components/Components"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/CareerAttributeChangeComponent"),
            C = e("../Components/CareerTypeGroup"),
            v = e("../Components/CurrencyBarItem"),
            b = e("../Components/CustomToggle"),
            S = e("../Components/ExclusiveWeaponGalleryGroup"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.All = 0] = "All", e[e.Warrior = 1] = "Warrior", e[e.Master = 2] = "Master", e[e.Tank = 3] = "Tank", e[e.Support = 4] = "Support"
        })(l || (l = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !0), t.Background = null, t.Background2 = null, t.CareerTypeGroupRoot = null, t.BottomPartRoot = null, t.PanelNameLabel = null, t.RuleButton = null, t.BottomePart = null, t.BackButton = null, t.Tabs = [], t.CareerTypeGroup = null, t.GroupScrollView = null, t.GroupContainer = null, t.CurrencyBarItems = [], t.TelekinesisTipLabel = null, t.GetAllTelekinesisButton = null, t.GetAllTelekinesisButtonLabel = null, t.FlyingItemStartPositionNode = null, t.TalentPart = null, t.TalentButtons = [], t.TalentButtonLevelLabels = [], t.TalentButtonReddots = [], t.TalentButtonHighlight = null, t.TatalAttributeButton = null, t.TatalAttributeButtonLabel = null, t.AttributeTitleLabel = null, t.AttrNodeLevelLabel = null, t.CurrentLevelLabel = null, t.NextLevelLabel = null, t.Arrow = null, t.Lock = null, t.ReachMaxLevelTipLabel = null, t.AttributeChangeContainer = null, t.UpgradeRequirementTipRichText = null, t.UpgradeMaterialCurrencyBarItem = null, t.UpgradeButton = null, t.UpgradeButtonLabel = null, t.UpgradeButtonReddot = null, t.GreyButton = null, t.GreyButtonLabel = null, t.TELEKINESIS_ITEM_IDs = [0, d.CommonItemId.WarriorTelekinesis, d.CommonItemId.MasterTelekinesis, d.CommonItemId.TankTelekinesis, d.CommonItemId.SupportTelekinesis], t.ATTR_KEY_BY_CAREER_TYPE = ["AllAttrs", "WarriorAttrs", "MasterAttrs", "TankAttrs", "SupportAttrs"], t.TAB_KEYS = ["exclusive_weapon_gallery", "exclusive_talent"], t._careerAttributeNodes = [], t._starPieceItemNodePrefab = null, t._exclusiveWeaponGalleryGroupPrefab = null, t._careerAttributeChangePrefab = null, t._scrollBoundingRect = null, t._currentTabIndex = -1, t._jumpIndex = -1, t._exclusiveWeaponIdsByCareerType = null, t._currentGroupCareerType = -1, t._exclusiveWeaponGalleryGroupMap = null, t._currentSelectedTalentCareer = -1, t._exclusiveWeaponGalleryLevelConfigs = null, t._currentRestrictCareer = -1, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                p.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.onItemClick, this)
            }, t.prototype.onDisable = function() {
                p.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.onItemClick, this)
            }, t.prototype.onItemClick = function() {}, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("StarTemplePanel/Private/StarPieceItem2"), this.LoadDynamicAsset("CollectionPavilionPanel/Components/ExclusiveWeaponGalleryGroup"), this.LoadDynamicAsset("CollectionPavilionPanel/Components/CareerAttributeChangeComponent2")]).then(function(e) {
                                    t._starPieceItemNodePrefab = e[0], t._exclusiveWeaponGalleryGroupPrefab = e[1], t._careerAttributeChangePrefab = e[2]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.GetAllTelekinesisButtonLabel.string = "mail_receiveAllReward".ToUILocale(), this.TatalAttributeButtonLabel.string = "exclusive_weapon_gallery_total_attribute".ToUILocale(), this.UpgradeButtonLabel.string = "common_upgrade_level".ToUILocale(), this.TelekinesisTipLabel.string = "exclusive_weapon_gallery_telekinesis_tip".ToUILocale(), this.ReachMaxLevelTipLabel.string = "exclusive_weapon_gallery_max_level_tips".ToUILocale(), this.AttrNodeLevelLabel.string = "allianceBase_levelSimple".ToUILocale(), this.BackButton.node.on("click", this.OnClickBackButton, this), this.RuleButton.node.on("click", this.OnClickRuleButton, this), this.GetAllTelekinesisButton.node.on("click", this.OnClickGetTelekinesisButton, this), this.UpgradeButton.node.on("click", this.OnClickUpgradeButton, this), this.GreyButton.node.on("click", this.OnGreyButtonClicked, this), this.TatalAttributeButton.node.on("click", this.OnClickTatalAttributeButton, this), this.TalentButtons.forEach(function(e) {
                    e.node.on("click", t.OnClickCareerTalentButton, t)
                }), this._scrollBoundingRect = this.GroupScrollView.node.getBoundingBoxToWorld(), this.GroupScrollView.node.on("scrolling", this.OnScrollGroupView, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_SWITCH_CAREER_TYPE, this.OnSwitchCareerType, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_COMMON_REWARDS_PANEL_CLOSE, this.OnRewardPanelClose, this), this._exclusiveWeaponGalleryLevelConfigs = g.ConfigDataComponent.Instance.GetArrayConfig(c.ExclusiveWeaponGalleryLevel_Config), this._exclusiveWeaponGalleryLevelConfigs.sort(function(e, t) {
                    return e.Id - t.Id
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t)
            }, t.prototype.InitExclusiveWeaponIds = function() {
                var e = this;
                this._exclusiveWeaponIdsByCareerType = [];
                var t = g.ConfigDataComponent.Instance.GetArrayConfig(c.ExclusiveWeapon_Config);
                t.sort(function(e, t) {
                    var n = g.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, e.Id),
                        o = g.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, t.Id);
                    return n && !o ? -1 : !n && o ? 1 : e.Id - t.Id
                }), t.forEach(function(t) {
                    var n = g.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, t.Id);
                    if (n && h.default.IsHeroShownAvailable(n)) {
                        var o = n.Career;
                        e._exclusiveWeaponIdsByCareerType[o] || (e._exclusiveWeaponIdsByCareerType[o] = []), e._exclusiveWeaponIdsByCareerType[o].push(t.Id)
                    }
                })
            }, t.prototype.DisPlay = function(t) {
                return a(this, void 0, void 0, function() {
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.DisPlay.call(this, t), t ? this.SwitchTabView() : (this.InitExclusiveWeaponIds(), this.InitTabView()), [4, this.BindRedDots()];
                            case 1:
                                return n.sent(), this.MergeWeaponGalleryTabRedDotResult(), p.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CHECK_BUNDINGBOX, this._scrollBoundingRect), [2]
                        }
                    })
                })
            }, t.prototype.BindRedDots = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return [4, m.RedDotManager.Instance.Bind(this.Tabs[0].node, m.RedDotManager.Instance.RedDot.ExclusiveGalleryCollectTabNode, 0, 10)];
                            case 1:
                                return e.sent(), [4, m.RedDotManager.Instance.Bind(this.Tabs[1].node, m.RedDotManager.Instance.RedDot.ExclusiveGalleryUpgradeTabNode, 0, 10)];
                            case 2:
                                return e.sent(), [4, m.RedDotManager.Instance.Bind(this.GetAllTelekinesisButton.node, m.RedDotManager.Instance.RedDot.ExclusiveGalleryCollectButtonNode)];
                            case 3:
                                return e.sent(), [4, m.RedDotManager.Instance.Bind(this.UpgradeButton.node, m.RedDotManager.Instance.RedDot.ExclusiveGalleryUpgradeButtonNode)];
                            case 4:
                                return e.sent(), [2]
                        }
                    })
                })
            }, t.prototype.Close = function(t) {
                e.prototype.Close.call(this, t), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_SWITCH_CAREER_TYPE, this.OnSwitchCareerType, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_COMMON_REWARDS_PANEL_CLOSE, this.OnRewardPanelClose, this)
            }, t.prototype.InitTabView = function() {
                var e = this;
                this.Tabs.forEach(function(t, n) {
                    t.Init(e.TAB_KEYS[n].ToUILocale()), t.node.name = n.toString(), t.node.on("toggle", e.OnSwitchTab, e)
                }), this.Tabs[0].check(), this.OnSwitchTab(this.Tabs[0])
            }, t.prototype.OnSwitchTab = function(e) {
                var t = parseInt(e.node.name);
                this._currentTabIndex != t && (this._currentTabIndex = t, this.SwitchTabView()), this.Tabs.forEach(function(e) {
                    e.SetLabelActive(e.isChecked)
                })
            }, t.prototype.SwitchTabView = function() {
                switch (this.TalentPart.active = 1 == this._currentTabIndex, this.PanelNameLabel.string = this.TAB_KEYS[this._currentTabIndex].ToUILocale(), this._currentTabIndex) {
                    case 0:
                        this.SwitchExclusiveWeaponPart(), this.Background.active = !0, this.CareerTypeGroupRoot.active = !0, this.BottomPartRoot.active = !0, this.Background2.active = !1;
                        break;
                    case 1:
                        this.SwitchExclusiveTalentPart(), this.Background.active = !1, this.CareerTypeGroupRoot.active = !1, this.BottomPartRoot.active = !1, this.Background2.active = !0
                }
            }, t.prototype.SwitchExclusiveWeaponPart = function() {
                null == this._exclusiveWeaponGalleryGroupMap ? (this._exclusiveWeaponGalleryGroupMap = {}, this.CreateExclusiveWeaponGalleryGroup()) : this.RefreshExclusiveWeaponGalleryGroup(), this.RefreshTelekinesisCurrencyBar()
            }, t.prototype.CreateExclusiveWeaponGalleryGroup = function() {
                for (var e = this._exclusiveWeaponIdsByCareerType.length, t = 1; t < e; t++) {
                    var n = cc.instantiate(this._exclusiveWeaponGalleryGroupPrefab),
                        o = n.getComponent(S.default);
                    o.Init(this._starPieceItemNodePrefab, t, this._exclusiveWeaponIdsByCareerType[t], this.TELEKINESIS_ITEM_IDs[t]), this.GroupContainer.addChild(n), this._exclusiveWeaponGalleryGroupMap[t] = o
                }
                this.CareerTypeGroup.SetDefault()
            }, t.prototype.RefreshExclusiveWeaponGalleryGroup = function() {
                for (var e in this._exclusiveWeaponGalleryGroupMap) this._exclusiveWeaponGalleryGroupMap[e].RefreshGroupInfo()
            }, t.prototype.MergeWeaponGalleryTabRedDotResult = function() {
                m.RedDotManager.Instance.RedDot.ExclusiveGalleryCollectTabNode && m.RedDotManager.Instance.RedDot.ExclusiveGalleryCollectTabNode.IsActive
            }, t.prototype.RefreshTelekinesisCurrencyBar = function() {
                for (var e = this.TELEKINESIS_ITEM_IDs.length, t = 1; t < e; t++) this.CurrencyBarItems[t - 1].Init(this.TELEKINESIS_ITEM_IDs[t], void 0, void 0, void 0, !0)
            }, t.prototype.OnSwitchCareerType = function(e, t) {
                var n = this;
                if (t == this.CareerTypeGroup.node && this._currentGroupCareerType != e) {
                    if (0 == e)
                        for (var o in this._exclusiveWeaponGalleryGroupMap) this._exclusiveWeaponGalleryGroupMap[o].node.active = !0;
                    else
                        for (var o in this._exclusiveWeaponGalleryGroupMap) this._exclusiveWeaponGalleryGroupMap[o].node.active = parseInt(o) == e;
                    this._currentGroupCareerType = e, this.scheduleOnce(function() {
                        n.isValid && p.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CHECK_BUNDINGBOX, n._scrollBoundingRect)
                    }, .2)
                }
            }, t.prototype.SwitchExclusiveTalentPart = function() {
                this.SetTalentCareerLevel(), this.SetSelectedTalentState(), this.SetTalentRedDotsState()
            }, t.prototype.SetTalentRedDotsState = function() {
                this.TalentButtonReddots.forEach(function(e, t) {
                    e.active = h.default.GetExclusiveGalleryTalentRedDotState(t)
                })
            }, t.prototype.SetTalentCareerLevel = function() {
                for (var e = 0; e < this.TalentButtonLevelLabels.length; e++) this.TalentButtonLevelLabels[e].string = this.GetCurrentCareerTanlentLevel(e).toString()
            }, t.prototype.SetSelectedTalentState = function() {
                var e = this; - 1 == this._currentSelectedTalentCareer ? (this._currentSelectedTalentCareer = l.Warrior, this.TalentButtonHighlight.node.active = !0, this.TalentButtonHighlight.node.position = this.TalentButtons[this._currentSelectedTalentCareer].node.position, this.TalentButtonHighlight.node.position.x -= .5) : (this.TalentButtonHighlight.node.active = !0, this.TalentButtonHighlight.node.position = this.TalentButtons[this._currentSelectedTalentCareer].node.position, this.TalentButtonHighlight.node.position.x -= .5), this.AttributeTitleLabel.string = "exclusiveWeaponGallery_career_attr_title".ToUILocale().Fmt(("hero_career_" + this._currentSelectedTalentCareer).ToUILocale());
                var t = this.GetCurrentCareerTanlentLevel(this._currentSelectedTalentCareer),
                    o = this._exclusiveWeaponGalleryLevelConfigs.length,
                    r = h.default.GetCurrentCareerMaxLevelLimit(this._currentSelectedTalentCareer);
                if (this.CurrentLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(t.toString()), this.CurrentLevelLabel.node.active = t != o, this.NextLevelLabel.node.active = this.Arrow.node.active = t != o, this.ReachMaxLevelTipLabel.node.active = t == o, this.UpgradeMaterialCurrencyBarItem.node.active = t != o && this._currentSelectedTalentCareer != l.All, this.UpgradeButton.node.active = t < o && t < r, this.GreyButton.node.active = !this.UpgradeButton.node.active, this.UpgradeRequirementTipRichText.node.parent.active = t == r && t != o, this.Lock.node.active = t == r && t != o, t == o) {
                    var i = 0;
                    (v = this._exclusiveWeaponGalleryLevelConfigs[t - 1][this.ATTR_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]]) && (i = v.length, v.forEach(function(t, n) {
                        var o = t.Items[0],
                            r = t.Items[1];
                        if (!e._careerAttributeNodes[n]) {
                            var i = cc.instantiate(e._careerAttributeChangePrefab);
                            e._careerAttributeNodes[n] = i, e.AttributeChangeContainer.addChild(i)
                        }
                        e._careerAttributeNodes[n].active = !0, e._careerAttributeNodes[n].getComponent(_.default).Init(e._currentSelectedTalentCareer, o, r)
                    }));
                    for (var a = i; a < this._careerAttributeNodes.length; a++) this._careerAttributeNodes[a].active = !1;
                    this.GreyButtonLabel.string = "common_max_level".ToUILocale()
                } else if (t >= r) {
                    if (this._currentSelectedTalentCareer == l.All) {
                        this.NextLevelLabel.node.active = !0, this.CurrentLevelLabel.node.active = !0, this.Arrow.node.active = !0, this.CurrentLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(t.toString()), this.NextLevelLabel.string = "allianceBase_level".ToUILocale().Fmt((t + 1).toString());
                        var s = this._exclusiveWeaponGalleryLevelConfigs[t - 1],
                            c = this._exclusiveWeaponGalleryLevelConfigs[t],
                            u = s[this.ATTR_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]],
                            f = (b = c[this.ATTR_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]]).length;
                        if (b.forEach(function(t, n) {
                                var o = t.Items[0],
                                    r = t.Items[1],
                                    i = 0;
                                if (s && u.forEach(function(e) {
                                        e.Items[0] == o && (i = e.Items[1])
                                    }), !e._careerAttributeNodes[n]) {
                                    var a = cc.instantiate(e._careerAttributeChangePrefab);
                                    e._careerAttributeNodes[n] = a, e.AttributeChangeContainer.addChild(a)
                                }
                                e._careerAttributeNodes[n].active = !0, e._careerAttributeNodes[n].getComponent(_.default).Init(e._currentSelectedTalentCareer, o, i, r)
                            }), c.LevelLimit && c.LevelLimit > s.LevelLimit) {
                            var y = b.length;
                            if (!this._careerAttributeNodes[y]) {
                                var m = cc.instantiate(this._careerAttributeChangePrefab);
                                this._careerAttributeNodes[y] = m, this.AttributeChangeContainer.addChild(m)
                            }
                            this._careerAttributeNodes[y].active = !0, this._careerAttributeNodes[y].getComponent(_.default).Init(this._currentSelectedTalentCareer, -1, s.LevelLimit, c.LevelLimit, !0), f++
                        }
                        for (a = f; a < this._careerAttributeNodes.length; a++) this._careerAttributeNodes[a].active = !1;
                        var I = g.DataCenter.Instance.GetSimpleData(d.UserDataKey.ExclusiveWeaponGalleryLevel).IntArray,
                            C = 1;
                        if (I)
                            for (a = 1; a < I.length; a++)
                                if (I[a] <= r) {
                                    C = a, I[a];
                                    break
                                } this._currentRestrictCareer = C, this.UpgradeRequirementTipRichText.node.parent.active = !0, this.UpgradeRequirementTipRichText.string = "exclusiveWeaponGallery_talent_upgrade_restrict_specific".ToUILocale().Fmt(t + 1)
                    } else {
                        var v;
                        for (this.CurrentLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(t.toString()), this.NextLevelLabel.string = "allianceBase_level".ToUILocale().Fmt((t + 1).toString()), this.UpgradeMaterialCurrencyBarItem.node.active = !1, i = 0, (v = this._exclusiveWeaponGalleryLevelConfigs[t - 1][this.ATTR_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]]) && (i = v.length, v.forEach(function(t, n) {
                                var o = t.Items[0],
                                    r = t.Items[1];
                                if (!e._careerAttributeNodes[n]) {
                                    var i = cc.instantiate(e._careerAttributeChangePrefab);
                                    e._careerAttributeNodes[n] = i, e.AttributeChangeContainer.addChild(i)
                                }
                                e._careerAttributeNodes[n].active = !0, e._careerAttributeNodes[n].getComponent(_.default).Init(e._currentSelectedTalentCareer, o, r)
                            })), a = i; a < this._careerAttributeNodes.length; a++) this._careerAttributeNodes[a].active = !1;
                        this.UpgradeRequirementTipRichText.string = "exclusiveWeaponGallery_talent_upgrade_restrict_all".ToUILocale().Fmt(this.GetTotalTalentLevelToUnlock(t))
                    }
                    this.GreyButtonLabel.string = "common_upgrade_level".ToUILocale()
                } else {
                    this.NextLevelLabel.node.active = !0, this.CurrentLevelLabel.node.active = !0, this.Arrow.node.active = !0, this.CurrentLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(t.toString()), this.NextLevelLabel.string = "allianceBase_level".ToUILocale().Fmt((t + 1).toString());
                    var b, S = this._exclusiveWeaponGalleryLevelConfigs[t - 1],
                        w = (c = this._exclusiveWeaponGalleryLevelConfigs[t], S[this.ATTR_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]]);
                    for (f = (b = c[this.ATTR_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]]).length, b.forEach(function(t, n) {
                            var o = t.Items[0],
                                r = t.Items[1],
                                i = 0;
                            if (S && w.forEach(function(e) {
                                    e.Items[0] == o && (i = e.Items[1])
                                }), !e._careerAttributeNodes[n]) {
                                var a = cc.instantiate(e._careerAttributeChangePrefab);
                                e._careerAttributeNodes[n] = a, e.AttributeChangeContainer.addChild(a)
                            }
                            e._careerAttributeNodes[n].active = !0, e._careerAttributeNodes[n].getComponent(_.default).Init(e._currentSelectedTalentCareer, o, i, r)
                        }), this._currentSelectedTalentCareer == l.All && (p.EZLog.Log("nextLevelConfig.levelLImit" + c.LevelLimit + "currentLevelConfig.LevelLimit" + S.LevelLimit), c.LevelLimit && c.LevelLimit > S.LevelLimit) && (y = b.length, this._careerAttributeNodes[y] || (m = cc.instantiate(this._careerAttributeChangePrefab), this._careerAttributeNodes[y] = m, this.AttributeChangeContainer.addChild(m)), this._careerAttributeNodes[y].active = !0, this._careerAttributeNodes[y].getComponent(_.default).Init(this._currentSelectedTalentCareer, -1, S.LevelLimit, c.LevelLimit, !0), f++), a = f; a < this._careerAttributeNodes.length; a++) this._careerAttributeNodes[a].active = !1;
                    if (this._currentSelectedTalentCareer != l.All) {
                        var P = 0;
                        S && S[n.UPGRADE_MATERIAL_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]].length > 0 && (P = S[n.UPGRADE_MATERIAL_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]][0].Items[1]);
                        var A = c[n.UPGRADE_MATERIAL_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]];
                        this.UpgradeMaterialCurrencyBarItem.Init(A[0].Items[0], !1, void 0, A[0].Items[1] - P), this.UpgradeButtonReddot.active = g.DataCenter.Instance.GetItemCount(A[0].Items[0]) > A[0].Items[1] - P
                    } else this.UpgradeButtonReddot.active = !0
                }
            }, t.prototype.GetCurrentCareerTanlentLevel = function(e) {
                var t = g.DataCenter.Instance.GetSimpleData(d.UserDataKey.ExclusiveWeaponGalleryLevel).IntArray;
                return t ? t[e] : 1
            }, t.prototype.GetTotalTalentLevelToUnlock = function(e) {
                for (var t = this.GetCurrentCareerTanlentLevel(l.All), n = this._exclusiveWeaponGalleryLevelConfigs[t - 1], o = e; o < this._exclusiveWeaponGalleryLevelConfigs.length; o++)
                    if (this._exclusiveWeaponGalleryLevelConfigs[o].LevelLimit > n.LevelLimit) return o;
                return this._exclusiveWeaponGalleryLevelConfigs.length
            }, t.prototype.OnClickCareerTalentButton = function(e) {
                var t = this.TalentButtons.indexOf(e);
                p.EZLog.Log("OnClickCareerTalentButton index: " + t), this._currentSelectedTalentCareer != t && (this._currentSelectedTalentCareer = t, this.SwitchExclusiveTalentPart())
            }, t.prototype.OnClickGetTelekinesisButton = function() {
                var e = 0;
                for (var t in this._exclusiveWeaponGalleryGroupMap) e += this._exclusiveWeaponGalleryGroupMap[t].GetTelekinesisPointCanGet();
                e > 0 ? this.RequestGetTelekinesis() : I.UIUtlity.ShowFloatingHint("ExclusiveWeaponGallery_NoTelekinesisPointCanGet".ToUILocale())
            }, t.prototype.RequestGetTelekinesis = function() {
                var e = this,
                    t = new u.Req_Temple_ExclusiveWeaponGalleryOneClick;
                g.RpcComponent.Instance.Call(t, function(t) {
                    e.BindRedDots(), e.RefreshExclusiveWeaponGalleryGroup(), e.MergeWeaponGalleryTabRedDotResult(), I.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                })
            }, t.prototype.OnRewardPanelClose = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, c, u = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                for (t = [], n = [], o = function(o) {
                                        r.CurrencyBarItems.forEach(function(r) {
                                            r.GetCurrencyType() == e[o].ItemId && (t.push(e[o].ItemId), n.push(r.node))
                                        })
                                    }, r = this, l = 0; l < e.length; l++) o(l);
                                for (i = [], a = [], l = 0; l < t.length; l++) c = h.default.Instance.GetItemPathById(t[l]), i.push(this.LoadDynamicAsset(c, cc.SpriteFrame));
                                return [4, Promise.all(i).then(function(e) {
                                    u.isValid ? a = e : e.forEach(function(e) {
                                        p.AssetsManager.Instance.UnloadAsset(e)
                                    })
                                })];
                            case 1:
                                return s.sent(), h.default.ShowFlyingItems(t, a, this.FlyingItemStartPositionNode, n), [2]
                        }
                    })
                })
            }, t.prototype.OnClickUpgradeButton = function() {
                if (this._currentSelectedTalentCareer != l.All) {
                    var e = this.GetCurrentCareerTanlentLevel(this._currentSelectedTalentCareer),
                        t = this._exclusiveWeaponGalleryLevelConfigs[e - 1],
                        o = this._exclusiveWeaponGalleryLevelConfigs[e][n.UPGRADE_MATERIAL_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]],
                        r = o[0].Items[0],
                        i = t[n.UPGRADE_MATERIAL_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]].length > 0 ? t[n.UPGRADE_MATERIAL_KEY_BY_CAREER_TYPE[this._currentSelectedTalentCareer]][0].Items[1] : 0,
                        a = o[0].Items[1] - i;
                    if (!g.DataCenter.Instance.IsItemEnough(r, a)) return void I.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(r.ToItemName()));
                    this.RequestUpgradeTalentLevel()
                } else this.RequestUpgradeTalentLevel()
            }, t.prototype.OnGreyButtonClicked = function() {
                this.GetCurrentCareerTanlentLevel(this._currentSelectedTalentCareer) == this._exclusiveWeaponGalleryLevelConfigs.length ? I.UIUtlity.ShowFloatingHint("common_max_level".ToUILocale()) : this._currentSelectedTalentCareer != l.All ? I.UIUtlity.ShowFloatingHint("ExclusiveWeaponGallery_TalentLevelLack".ToUILocale().Fmt("hero_career_0".ToUILocale())) : I.UIUtlity.ShowFloatingHint("ExclusiveWeaponGallery_TalentLevelLack".ToUILocale().Fmt(("hero_career_" + this._currentRestrictCareer).ToUILocale()))
            }, t.prototype.RequestUpgradeTalentLevel = function() {
                var e = this,
                    t = g.DataCenter.Instance.GetIntData(d.UserDataKey.Power),
                    n = new u.Req_Temple_ExclusiveWeaponGalleryLevelUp;
                n.Sid = this._currentSelectedTalentCareer, n.NewLevel = this.GetCurrentCareerTanlentLevel(this._currentSelectedTalentCareer) + 1, g.RpcComponent.Instance.Call(n, function() {
                    if (e.isValid) {
                        e.BindRedDots(), e.SetTalentRedDotsState(), e.SwitchExclusiveTalentPart();
                        var n = g.DataCenter.Instance.GetIntData(d.UserDataKey.Power);
                        p.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattlePowerChangePanel.Path, t, n)
                    }
                })
            }, t.prototype.OnClickTatalAttributeButton = function() {
                p.UIManager.Instance.ShowUIPanel(y.PanelConfig.ExclusiveWeaponGalleryAttributePanel.Path, this.GetExclusiveGalleryTotalAttr(), {
                    PanelTitleKey: "handbook_attr_total",
                    AttributeTitleKey: "heroSkin_attr",
                    EmptyContentKey: "CollectionPavilion_Tip_UnAttr"
                })
            }, t.prototype.GetExclusiveGalleryTotalAttr = function() {
                var e = this,
                    t = {};
                return n.CAREER_TYPES.forEach(function(n) {
                    p.EZLog.Log("GetExclusiveGalleryTotalAttr careerType: " + n);
                    var o = {},
                        r = e.GetCurrentCareerTanlentLevel(n),
                        i = e._exclusiveWeaponGalleryLevelConfigs[r - 1][e.ATTR_KEY_BY_CAREER_TYPE[n]];
                    i && i.forEach(function(e) {
                        var t = e.Items[0],
                            n = e.Items[1];
                        o[t] ? o[t] += n : o[t] = n
                    }), t[n] = o
                }), t
            }, t.prototype.OnScrollGroupView = function() {
                p.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CHECK_BUNDINGBOX, this._scrollBoundingRect)
            }, t.prototype.OnClickRuleButton = function() {
                var e = {
                    name: "HeroTalent_Rule".ToUILocale(),
                    titles: ["ExclusiveWeaponGallery_Rule_Name".ToUILocale()],
                    contents: ["ExclusiveWeaponGallery_Rule_Content".ToUILocale()]
                };
                I.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnClickBackButton = function() {
                p.UIManager.Instance.BackUIPanel()
            }, t.CAREER_TYPES = [l.All, l.Warrior, l.Master, l.Tank, l.Support], t.UPGRADE_MATERIAL_KEY_BY_CAREER_TYPE = ["", "WarriorMaterials", "MasterMaterials", "TankMaterials", "SupportMaterials"], i([A(cc.Node)], t.prototype, "Background", void 0), i([A(cc.Node)], t.prototype, "Background2", void 0), i([A(cc.Node)], t.prototype, "CareerTypeGroupRoot", void 0), i([A(cc.Node)], t.prototype, "BottomPartRoot", void 0), i([A(cc.Label)], t.prototype, "PanelNameLabel", void 0), i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.Node)], t.prototype, "BottomePart", void 0), i([A(cc.Button)], t.prototype, "BackButton", void 0), i([A([b.default])], t.prototype, "Tabs", void 0), i([A(C.default)], t.prototype, "CareerTypeGroup", void 0), i([A(cc.ScrollView)], t.prototype, "GroupScrollView", void 0), i([A(cc.Node)], t.prototype, "GroupContainer", void 0), i([A([v.default])], t.prototype, "CurrencyBarItems", void 0), i([A(cc.Label)], t.prototype, "TelekinesisTipLabel", void 0), i([A(cc.Button)], t.prototype, "GetAllTelekinesisButton", void 0), i([A(cc.Label)], t.prototype, "GetAllTelekinesisButtonLabel", void 0), i([A(cc.Node)], t.prototype, "FlyingItemStartPositionNode", void 0), i([A(cc.Node)], t.prototype, "TalentPart", void 0), i([A([cc.Button])], t.prototype, "TalentButtons", void 0), i([A([cc.Label])], t.prototype, "TalentButtonLevelLabels", void 0), i([A([cc.Node])], t.prototype, "TalentButtonReddots", void 0), i([A(cc.Sprite)], t.prototype, "TalentButtonHighlight", void 0), i([A(cc.Button)], t.prototype, "TatalAttributeButton", void 0), i([A(cc.Label)], t.prototype, "TatalAttributeButtonLabel", void 0), i([A(cc.Label)], t.prototype, "AttributeTitleLabel", void 0), i([A(cc.Label)], t.prototype, "AttrNodeLevelLabel", void 0), i([A(cc.Label)], t.prototype, "CurrentLevelLabel", void 0), i([A(cc.Label)], t.prototype, "NextLevelLabel", void 0), i([A(cc.Sprite)], t.prototype, "Arrow", void 0), i([A(cc.Sprite)], t.prototype, "Lock", void 0), i([A(cc.Label)], t.prototype, "ReachMaxLevelTipLabel", void 0), i([A(cc.Node)], t.prototype, "AttributeChangeContainer", void 0), i([A(cc.RichText)], t.prototype, "UpgradeRequirementTipRichText", void 0), i([A(v.default)], t.prototype, "UpgradeMaterialCurrencyBarItem", void 0), i([A(cc.Button)], t.prototype, "UpgradeButton", void 0), i([A(cc.Label)], t.prototype, "UpgradeButtonLabel", void 0), i([A(cc.Node)], t.prototype, "UpgradeButtonReddot", void 0), i([A(cc.Button)], t.prototype, "GreyButton", void 0), i([A(cc.Label)], t.prototype, "GreyButtonLabel", void 0), n = i([P], t)
        }(p.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CareerAttributeChangeComponent": "CareerAttributeChangeComponent",
        "../Components/CareerTypeGroup": "CareerTypeGroup",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ExclusiveWeaponGalleryGroup": "ExclusiveWeaponGalleryGroup"
    }],
    ExploreItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e2cb67GOzZPf5u/4qbYCS6b", "ExploreItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/ItemComponent"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/GameRecord"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../RedDot/RedDotManager"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.SlmBtn = null, t.SpineSlm = [], t.FinalAni = null, t.OpenAnim = null, t._data = null, t._model = null, t._isLock = !1, t._itemNode = null, t._slmSpine = null, t._isNext = !1, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.SlmBtn.node.on("click", this.OnSlmBtnClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.Init = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._itemNode ? [3, 2] : [4, m.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (n = r.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._assets.push(n), this._itemNode = cc.instantiate(n), this._itemNode.parent = this.ItemNode, r.label = 2;
                                case 2:
                                    return this._data = e, this._isNext = t, this.ItemNode.active = !1, this.SlmBtn.node.active = !1, -1 != e.RewardIdx ? e.ID ? (this.ItemNode.active = !0, this._itemNode.getComponent(h.ItemComponent).Init({
                                        ItemId: e.ItemId,
                                        Count: e.Count
                                    }, h.ItemComponentType.ItemCommon), (o = e.ConfigData.Rewards.findIndex(function(e) {
                                        return 0 == e.ItemId
                                    })) > -1 && (e.ConfigData.Rewards[o].Id == e.ID ? (this.FinalAni.node.active = !0, this.FinalAni.setAnimation(0, "Ani_effect_shangcheng_libao", !0)) : this.FinalAni.node.active = !1)) : (this.SlmBtn.node.active = !0, this.SetSlmSpine()) : (this.FinalAni.node.active = !1, (o = e.ConfigData.Rewards.findIndex(function(t) {
                                        return t.Id == e.ID
                                    })) > -1 && e.ConfigData.Rewards[o].ItemId && (this.ItemNode.active = !0, this._itemNode.getComponent(h.ItemComponent).Init({
                                        ItemId: e.ItemId,
                                        Count: e.Count
                                    }, h.ItemComponentType.ItemCommon))), [2]
                            }
                        })
                    })
                }, t.prototype.SetSlmSpine = function() {
                    var e = this,
                        t = this._data.Index % 4;
                    this._slmSpine || (this.SpineSlm.forEach(function(e) {
                        e.node.active = !1
                    }), this.SpineSlm[t].node.active = !0, this._slmSpine = this.SpineSlm[t]), this._slmSpine.clearTracks(), this._isNext ? (this._slmSpine.setAnimation(0, "Ani_effect_mizhentanbao_01", !1), this._slmSpine.setCompleteListener(function() {
                        e._slmSpine.setAnimation(0, "Ani_effect_mizhentanbao_02", !0)
                    })) : this._slmSpine.setAnimation(0, "Ani_effect_mizhentanbao_02", !0)
                }, t.prototype.OnSlmBtnClick = function() {
                    var e = this;
                    if (!this._isLock) {
                        if (!f.DataCenter.Instance.IsItemEnough(this._data.ConsumeId, this._data.ConsumeNum)) {
                            var t = this._data.ConsumeId.ToItemName();
                            return d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t)), void l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MazeExploreGetTimesPanel.Path, this._data.ConfigData)
                        }
                        if (this.CheckFinalRewardIsGet() && !g.default.GetItem(g.GameRecordDefine.OpenSlmHint)) return d.UIUtlity.ShowHintPanel(null, "explore_hint".ToUILocale(), "", null, "", function() {
                            e.RequestOpenSlm()
                        }, void 0, g.GameRecordDefine.OpenSlmHint);
                        this.RequestOpenSlm()
                    }
                }, t.prototype.RequestOpenSlm = function() {
                    var e = this,
                        t = new u.Req_Card_CommonSummon;
                    t.ActivityId = this._data.ActivityId, t.ExtraParam = [this._data.Index], t.Type = I.CardCommonSummonType.MazeExplore, c.RpcComponent.Instance.Call(t, function(t) {
                        e.UpdateSlmNode(t.Items), _.RedDotManager.Instance.RefreshInstanceRedDotNode(_.RedDotManager.Instance.InstanceRedDot.MazeExploreTimesBtnNode, {
                            Value1: e._data.ConfigData._id
                        }), d.UIUtlity.ShowFloatingHint("rank_belike_hint".ToUILocale().Fmt(t.Items[0].Items[0].ToItemName(), t.Items[0].Items[1]))
                    })
                }, t.prototype.UpdateSlmNode = function(e) {
                    var t = this,
                        n = 0;
                    if (this.SlmBtn.node.active = !1, this.ItemNode.active = !0, this.OpenAnim.node.active = !0, this.OpenAnim.setAnimation(0, "UI_effect_xinghuigongming_shangzhen", !1), this.OpenAnim.setCompleteListener(function() {
                            t.OpenAnim.node.active = !1
                        }), this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data.ActivityId), this._model && this._model.Int2DArray && this._model.IntArray && this._model.IntArray.length > 1) {
                        this._model.Int2DArray.forEach(function(e) {
                            n = e.Items[t._data.Index]
                        });
                        var o = this._data.ConfigData.Rewards.findIndex(function(e) {
                            return e.Id == n
                        });
                        if (o > -1) {
                            var r = this._data.ConfigData.Rewards[o].ItemId,
                                i = this._data.ConfigData.Rewards[o].Count;
                            if (r) this.FinalAni.node.active = !1, this._itemNode.getComponent(h.ItemComponent).Init({
                                ItemId: r,
                                Count: i
                            }, h.ItemComponentType.ItemCommon), l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_MAZEEXPLORE_UPDATE_INFO);
                            else {
                                var a = this._model.IntArray[1],
                                    s = this._data.ConfigData.CustomPart.Rewards[a].Items[0],
                                    d = this._data.ConfigData.CustomPart.Rewards[a].Items[1];
                                this._itemNode.getComponent(h.ItemComponent).Init({
                                    ItemId: s,
                                    Count: d
                                }, h.ItemComponentType.ItemCommon), this.FinalAni.node.active = !0, this.FinalAni.setAnimation(0, "Ani_effect_shangcheng_libao", !0), l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_MAZEEXPLORE_FINALREWARDCLICK, e)
                            }
                        }
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.CheckFinalRewardIsGet = function() {
                    var e = !1,
                        t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data.ConfigData._id);
                    if (t && t.Int2DArray && t.Int2DArray.length > 0) {
                        var n = this._data.ConfigData.Rewards.findIndex(function(e) {
                            return 0 == e.ItemId
                        });
                        if (n > -1) {
                            var o = this._data.ConfigData.Rewards[n].Id;
                            t.Int2DArray[0].Items.findIndex(function(e) {
                                return e == o
                            }) > -1 && (e = !0)
                        }
                    }
                    return e
                }, Object.defineProperty(t.prototype, "isLock", {
                    set: function(e) {
                        this._isLock = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        m.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemNode = null
                }, i([b(cc.Node)], t.prototype, "ItemNode", void 0), i([b(cc.Button)], t.prototype, "SlmBtn", void 0), i([b(sp.Skeleton)], t.prototype, "SpineSlm", void 0), i([b(sp.Skeleton)], t.prototype, "FinalAni", void 0), i([b(sp.Skeleton)], t.prototype, "OpenAnim", void 0), i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ExquisiteCustomCardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8198cChL0NOnbUB/08ZLosb", "ExquisiteCustomCardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/DataCenter"),
            y = e("../../Components/RpcComponent"),
            g = e("../Components/CustomLayout"),
            m = e("../Components/CustomToggle"),
            I = e("../Components/ExquisiteCustomItem"),
            _ = e("../Components/ExquisiteCustomGroup"),
            C = e("../Components/ItemComponent"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../Channel/ChannelManager"),
            S = e("../../../Util/TimeUtil"),
            w = e("../../../Consts/Etc"),
            P = e("../../Auxiliary/GameRecord"),
            A = e("../../RedDot/RedDotManager"),
            T = e("./CommonTaskTipComponent"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property;
        (function(e) {
            e[e.qualityA = 1] = "qualityA", e[e.qualityS = 2] = "qualityS", e[e.qualitySS = 3] = "qualitySS"
        })(l || (l = {}));
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed, !0), t.RuleButton = null, t.TimeLeftRichText = null, t.Toggles = [], t.BoughtToggleTag = null, t.BoughtToggleTagLabel = null, t.ScrollView = null, t.SelectedItemGroup = null, t.ItemGroupCustomLayout = null, t.BuyGiftPackButton = null, t.BuyGiftPackButtonLabel = null, t.DiscountValueLabel = null, t.DiscountDescriptionLabel = null, t.VipPointNode = null, t.VipPointTag = null, t.VipPointLabel = null, t.GetRewardButton = null, t.GetRewardButtonLabel = null, t.GetRewardTimeLeftRichText = null, t.AllRewardGotTag = null, t.CommonTaskTipComponent = null, t._itemPrefab = null, t._customItemPrefab = null, t._groupPrefab = null, t._activityConfig = null, t._activityModel = null, t._boughtPakcId = -1, t._activityEndTime = 0, t._rewardGroupCount = 0, t._toggleChosenIndex = -1, t._toggleJumpToIndex = -1, t._rewardsInfoByGroup = [], t._rewardsInfoMapById = new Map, t._rewardComponentsMapById = new Map, t._customItemComponets = [], t._nextDay0ClickTs = -1, t._toggleKeys = ["ExquisiteCustomCard_ToggleNameA", "ExquisiteCustomCard_ToggleNameS", "ExquisiteCustomCard_ToggleNameSS"], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var e, t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e = this.LoadDynamicAsset(h.BundlePath.ItemComponent), t = this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleExquisiteCustomCard/Private/ExquisiteCustomItem"), n = this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleExquisiteCustomCard/Private/ExquisiteCustomGroup"), [4, Promise.all([e, t, n]).then(function(e) {
                                    o._itemPrefab = e[0], o._customItemPrefab = e[1], o._groupPrefab = e[2]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshLayout, this), u.Game.EventDispatcher.On(d.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshLayout), u.Game.EventDispatcher.Off(d.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.clear()
            }, t.prototype.InitUI = function() {
                this.RuleButton.node.on("click", this.OnRuleButtonClicked, this), this.BuyGiftPackButton.node.on("click", this.OnBuyGiftButtonClicked, this), this.GetRewardButton.node.on("click", this.OnGetRewardButtonClicked, this), this.GetRewardButtonLabel.string = "receive".ToUILocale(), this.BoughtToggleTagLabel.string = "bought".ToUILocale(), this.CommonTaskTipComponent.InitData(), this._itemPool = new cc.NodePool
            }, t.prototype.InitData = function(e) {
                var t = e[0];
                this._activityConfig = f.DataCenter.Instance.GetActivityConfigsByActId(t), this._activityModel = f.DataCenter.Instance.GetDataById(c.UserActivity_Model, t), this._activityEndTime = p.default.Instance.ComputeDeadTime(this._activityConfig.Common), this._toggleJumpToIndex = l.qualitySS - 1, this.CheckBoughtPackId(), this.SetGroupData()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.SetTimeLeftView(), this.schedule(this.SetTimeLeftView, 1), t || (this.InitToggles(), this.InitSelectedItemGroupView(), this.ItemGroupCustomLayout.Init(this._groupPrefab)), this.OnSwitchTab(this.Toggles[this._toggleJumpToIndex]), this.SetToggleBoughtTag(), this.ItemGroupCustomLayout.RenderLayOut(this._rewardGroupCount), P.default.SetItem(P.GameRecordDefine.ExquisiteCustomCard, y.RpcComponent.Instance.ServerTime), A.RedDotManager.Instance.InstanceRedDot.ExquisiteCustomCardNode.NeedRefresh = !0
            }, t.prototype.CheckBoughtPackId = function() {
                for (var e = 0; e < this._activityConfig._Packs.length; e++) {
                    var t = this._activityConfig._Packs[e];
                    if (this._activityModel.Packs[t.Id].Items && this._activityModel.Packs[t.Id].Items[0] > 0) {
                        this._boughtPakcId = t.Id, this._toggleJumpToIndex = e;
                        break
                    }
                }
            }, t.prototype.SetGroupData = function() {
                var e = [
                    [],
                    [],
                    []
                ];
                this._activityConfig.__Rewards.forEach(function(t) {
                    e[t.Stage - 1].push(t)
                }), this._rewardGroupCount = Math.max(Math.ceil(e[l.qualityA - 1].length / 3), e[l.qualityS - 1].length, e[l.qualitySS - 1].length);
                var t = [Math.ceil(e[l.qualityA - 1].length / this._rewardGroupCount), 1, 1];
                this._rewardsInfoByGroup = [];
                for (var n = 0; n < this._rewardGroupCount; n++) this._rewardsInfoByGroup.push([]);
                for (n = 0; n < e.length; n++)
                    for (var o = e[n], r = 0, i = 0; i < o.length; i++) this._rewardsInfoByGroup[r].push(o[i]), this._rewardsInfoMapById.set(o[i].Id, o[i]), (i + 1) % t[n] == 0 && r++
            }, t.prototype.SetTimeLeftView = function() {
                var e = this._activityEndTime - y.RpcComponent.Instance.ServerTime;
                this.TimeLeftRichText.string = "ExquisiteCustomCard_TimeLeft".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(e)), e <= 0 && this.unschedule(this.SetTimeLeftView)
            }, t.prototype.InitToggles = function() {
                for (var e = 0; e < this.Toggles.length; e++) {
                    var t = this.Toggles[e];
                    t.node.on("toggle", this.OnSwitchTab, this), t.Init(this._toggleKeys[e].ToUILocale())
                }
            }, t.prototype.SetToggleBoughtTag = function() {
                if (this._boughtPakcId > 0)
                    for (var e = 0; e < this._activityConfig._Packs.length; e++) this._boughtPakcId == this._activityConfig._Packs[e].Id ? (this.BoughtToggleTag.node.setParent(this.Toggles[e].node), this.BoughtToggleTag.node.active = !0, this.Toggles[e].node.active = !0) : this.Toggles[e].node.active = !1;
                else this.BoughtToggleTag.node.active = !1
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                this._toggleChosenIndex != t && (this._toggleChosenIndex = t, e.check(), this.ShowTabView())
            }, t.prototype.ShowTabView = function() {
                var e = this;
                this._rewardComponentsMapById.forEach(function(t, n) {
                    if (t.node.parent) {
                        var o = e._rewardsInfoMapById.get(n);
                        e._toggleChosenIndex + 1 < o.Stage ? (t.SetSelectFlagState(!1), t.EnableMask()) : e.IsItemSelected(o.Id) ? t.SetSelectFlagState(!0) : t.DisableMask()
                    }
                }), this._customItemComponets.forEach(function(t) {
                    t.ChangeLockStatus(e._toggleChosenIndex + 1)
                }), this.SetButtonView()
            }, t.prototype.OnRefreshLayout = function(e, t) {
                var n = this;
                this.ItemGroupCustomLayout == t && (e.forEach(function(e, t) {
                    for (var o = e.getComponent(_.default), r = n._rewardsInfoByGroup[t], i = [
                            [],
                            [],
                            []
                        ], a = 0; a < r.length; a++) {
                        var s = r[a],
                            l = s.Stage,
                            c = n.GetItemNode(),
                            u = c.getComponent(C.ItemComponent);
                        u.Init({
                            ItemId: s.Rewards[0].Items[0],
                            Count: s.Rewards[0].Items[1]
                        }), c.name = s.Id.toString(), n._toggleChosenIndex + 1 < s.Stage ? (u.SetSelectFlagState(!1), u.EnableMask()) : n.IsItemSelected(s.Id) ? u.SetSelectFlagState(!0) : u.DisableMask(), n._rewardComponentsMapById.set(s.Id, u), i[l - 1].push(c)
                    }
                    o.Init(i, n._itemPool, _.ExquisiteCustomGroupType.NormalItem, n)
                }), u.EZLog.Log("OnRefreshLayout this._rewardComponentsMapById.size : " + this._rewardComponentsMapById.size), u.EZLog.Log("ItemPool Size " + this._itemPool.size()))
            }, t.prototype.GetItemNode = function() {
                var e = this._itemPool.get();
                return e || (e = cc.instantiate(this._itemPrefab)), e
            }, t.prototype.IsItemSelected = function(e) {
                for (var t = 0; t < this._customItemComponets.length; t++)
                    if (this._customItemComponets[t].RewardId == e && this._customItemComponets[t].IsItemSet) return !0;
                return !1
            }, t.prototype.UnSetComponentMapById = function(e) {
                this._rewardComponentsMapById.delete(e)
            }, t.prototype.InitSelectedItemGroupView = function() {
                for (var e = [], t = 0; t < this._activityConfig.CustomPart.Counts.length; t++) {
                    for (var n = [], o = 0; o < this._activityConfig.CustomPart.Counts[t]; o++) {
                        var r = cc.instantiate(this._customItemPrefab),
                            i = r.getComponent(I.default);
                        i.Init(t + 1, this._toggleChosenIndex + 1), this._customItemComponets.push(i);
                        var a = this._activityModel.Int2DArray[t];
                        if (a && a.Items[o]) {
                            var s = this._rewardsInfoMapById.get(a.Items[o]);
                            i.SetItem(s)
                        }
                        n.push(r)
                    }
                    e.push(n)
                }
                this.SelectedItemGroup.Init(e, this._itemPool, _.ExquisiteCustomGroupType.CustomItem, this)
            }, t.prototype.OnNormalItemClicked = function(e) {
                u.EZLog.Log("OnNormalItemClicked packId" + e);
                var t = this._rewardsInfoMapById.get(e);
                if (this._boughtPakcId > 0) v.UIUtlity.ShowItemTip(t.Rewards[0].Items[0], this._rewardComponentsMapById.get(e).node);
                else {
                    var n = this._rewardComponentsMapById.get(e);
                    if (0 == n.GetSelectFlagState()) {
                        if (1 == n.ItemMask.node.active) return void v.UIUtlity.ShowItemTip(t.Rewards[0].Items[0], this._rewardComponentsMapById.get(e).node);
                        for (var o = !1, r = 0; r < this._customItemComponets.length; r++) {
                            var i = this._customItemComponets[r];
                            if (!i.IsItemSet && i.ItemStage == t.Stage) {
                                n.SetSelectFlagState(!0), this._customItemComponets[r].SetItem(t), o = !0;
                                break
                            }
                        }
                        o ? this.RequestSaveRewardSelect() : v.UIUtlity.ShowFloatingHint("ExquisiteCustomCardPanel_ItemFullTip".ToUILocale()), v.UIUtlity.ShowItemTip(t.Rewards[0].Items[0], this._rewardComponentsMapById.get(e).node)
                    } else this.OnSelectedItemClicked(e)
                }
            }, t.prototype.OnSelectedItemClicked = function(e) {
                if (u.EZLog.Log("OnSelectedItemClicked packId" + e), this._boughtPakcId > 0) v.UIUtlity.ShowItemTip(this._rewardsInfoMapById.get(e).Rewards[0].Items[0], this._rewardComponentsMapById.get(e).node);
                else {
                    for (var t = 0; t < this._customItemComponets.length; t++) this._customItemComponets[t].RewardId == e && (this._customItemComponets[t].UnSetItem(), this._rewardComponentsMapById.get(e) && this._rewardComponentsMapById.get(e).SetSelectFlagState(!1));
                    this.RequestSaveRewardSelect()
                }
            }, t.prototype.SetButtonView = function() {
                var e = this._activityConfig._Packs[this._toggleChosenIndex];
                if (this.unschedule(this.SetGetRewardTimeLeftView), this._boughtPakcId <= 0) this.GetRewardButton.node.active = !1, this.BuyGiftPackButton.node.active = !0, this.AllRewardGotTag.node.active = !1, this.BuyGiftPackButtonLabel.string = b.default.Instance.CurrencySymbol + b.default.Instance.ExchangeMoney(e.Money), this.VipPointTag.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.VipPointLabel.string = "*" + e.VipPoint.toString(), p.default.Instance.SetDisCount(e.Discount, this.DiscountValueLabel, this.DiscountDescriptionLabel), this._boughtPakcId > 0 && v.UIUtlity.OnNodeGray(this.BuyGiftPackButton.node);
                else if (this._boughtPakcId == e.Id) {
                    this.GetRewardButton.node.active = !0, this.BuyGiftPackButton.node.active = !1, this.AllRewardGotTag.node.active = !1, this._nextDay0ClickTs = S.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) + w.Etc.DayDuration;
                    var t = p.default.Instance.ComputeContiuousTime(this._activityConfig.Common);
                    t > this._activityModel.IntValue ? (this.GetRewardButtonLabel.node.active = !0, this.GetRewardTimeLeftRichText.node.active = !1) : p.default.Instance.ComputeActivitStartTime(this._activityConfig.Common) + t * w.Etc.DayDuration == this._activityEndTime ? (this.AllRewardGotTag.node.active = !0, this.GetRewardButton.node.active = !1, this.BuyGiftPackButton.node.active = !1) : (this.GetRewardButtonLabel.node.active = !1, this.GetRewardTimeLeftRichText.node.active = !0, this.SetGetRewardTimeLeftView(), this.schedule(this.SetGetRewardTimeLeftView, 1))
                } else this.BuyGiftPackButton.node.active = !1, this.GetRewardButton.node.active = !1, this.AllRewardGotTag.node.active = !1
            }, t.prototype.SetGetRewardTimeLeftView = function() {
                var e = y.RpcComponent.Instance.ServerTime;
                if (e >= this._nextDay0ClickTs) return this.unschedule(this.SetGetRewardTimeLeftView), void this.SetButtonView();
                this.GetRewardTimeLeftRichText.string = "ExquisiteCustomCard_RewardTimeLeft".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(this._nextDay0ClickTs - e))
            }, t.prototype.OnGetRewardButtonClicked = function() {
                p.default.Instance.ComputeContiuousTime(this._activityConfig.Common) > this._activityModel.IntValue ? this.RequestGetReward() : v.UIUtlity.ShowFloatingHint("ExquisiteCustomCard_RewardGot".ToUILocale())
            }, t.prototype.RequestSaveRewardSelect = function() {
                var e = new c.Req_Activity_ExquisiteCustomCardSelect;
                e.ActivityId = this._activityModel.Sid;
                for (var t = [], n = 0; n < l.qualitySS; n++) t[n] = new c.IntArray;
                for (n = 0; n < this._customItemComponets.length; n++) {
                    var o = this._customItemComponets[n];
                    o.IsItemSet && t[o.ItemStage - 1].Items.push(o.RewardId)
                }
                e.SelectIds = t, y.RpcComponent.Instance.Call(e, null)
            }, t.prototype.RequestGetReward = function() {
                var e = new c.Req_Activity_ExquisiteCustomCardReward;
                e.ActivityId = this._activityModel.Sid, y.RpcComponent.Instance.Call(e, this.OnGetRewardSuccess.bind(this))
            }, t.prototype.OnGetRewardSuccess = function(e) {
                v.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this._activityModel = f.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this.SetButtonView()
            }, t.prototype.OnBuyGiftButtonClicked = function() {
                for (var e = [], t = 0; t < this._customItemComponets.length; t++) {
                    if (!this._customItemComponets[t].IsItemSet && this._customItemComponets[t].ItemStage <= this._toggleChosenIndex + 1) return void v.UIUtlity.ShowFloatingHint("ExquisiteCustomCard_EmptySlotRemain".ToUILocale());
                    var n = this._rewardsInfoMapById.get(this._customItemComponets[t].RewardId);
                    n && n.Stage <= this._toggleChosenIndex + 1 && e.push({
                        ItemId: n.Rewards[0].Items[0],
                        Count: n.Rewards[0].Items[1]
                    })
                }
                v.UIUtlity.ShowHintPanel("ExquisiteCustomCard_HintTitle".ToUILocale(), e, "", null, "", this.HandlePay.bind(this), "ExquisiteCustomCard_Description".ToUILocale().Fmt(this._toggleKeys[this._toggleChosenIndex].ToUILocale()))
            }, t.prototype.HandlePay = function() {
                b.default.Instance.Pay(this._activityConfig._Packs[this._toggleChosenIndex].Id, this._activityModel.Sid)
            }, t.prototype.OnBuyGiftPackSuccess = function() {
                this._activityModel = f.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this.CheckBoughtPackId(), this.SetButtonView(), this.SetToggleBoughtTag();
                for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].node.off("toggle", this.OnSwitchTab)
            }, t.prototype.OnRuleButtonClicked = function() {
                var e = {
                    name: "ExquisiteCustomCard_PanelName".ToUILocale(),
                    titles: ["ExquisiteCustomCard_RuleTitle".ToUILocale()],
                    contents: ["ExquisiteCustomCard_RuleContent".ToUILocale()]
                };
                v.UIUtlity.ShowRulePanel(e)
            }, i([k(cc.Button)], t.prototype, "RuleButton", void 0), i([k(cc.RichText)], t.prototype, "TimeLeftRichText", void 0), i([k(m.default)], t.prototype, "Toggles", void 0), i([k(cc.Sprite)], t.prototype, "BoughtToggleTag", void 0), i([k(cc.Label)], t.prototype, "BoughtToggleTagLabel", void 0), i([k(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([k(_.default)], t.prototype, "SelectedItemGroup", void 0), i([k(g.default)], t.prototype, "ItemGroupCustomLayout", void 0), i([k(cc.Button)], t.prototype, "BuyGiftPackButton", void 0), i([k(cc.Label)], t.prototype, "BuyGiftPackButtonLabel", void 0), i([k(cc.Label)], t.prototype, "DiscountValueLabel", void 0), i([k(cc.Label)], t.prototype, "DiscountDescriptionLabel", void 0), i([k(cc.Node)], t.prototype, "VipPointNode", void 0), i([k(cc.Label)], t.prototype, "VipPointTag", void 0), i([k(cc.Label)], t.prototype, "VipPointLabel", void 0), i([k(cc.Button)], t.prototype, "GetRewardButton", void 0), i([k(cc.Label)], t.prototype, "GetRewardButtonLabel", void 0), i([k(cc.RichText)], t.prototype, "GetRewardTimeLeftRichText", void 0), i([k(cc.Sprite)], t.prototype, "AllRewardGotTag", void 0), i([k(T.default)], t.prototype, "CommonTaskTipComponent", void 0), i([L], t)
        }(u.BaseUIPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ExquisiteCustomGroup": "ExquisiteCustomGroup",
        "../Components/ExquisiteCustomItem": "ExquisiteCustomItem",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent"
    }],
    ExquisiteCustomGroup: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "96555Ti/F1JQrSe5DLTI305", "ExquisiteCustomGroup");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ExquisiteCustomGroupType = void 0;
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("./ExquisiteCustomItem"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property;
        (function(e) {
            e[e.NormalItem = 1] = "NormalItem", e[e.CustomItem = 2] = "CustomItem"
        })(a = n.ExquisiteCustomGroupType || (n.ExquisiteCustomGroupType = {}));
        var h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Containers = [], t._currGroupNodes = [], t
            }
            return r(t, e), t.prototype.onDisable = function() {
                var e = this;
                this._currGroupNodes.forEach(function(t) {
                    t.forEach(function(t) {
                        e._panelInstance.UnSetComponentMapById(parseInt(t.name)), e._itemPoolInstance.put(t)
                    }), s.EZLog.Log("ItemPool Size : " + e._itemPoolInstance.size())
                })
            }, t.prototype.Init = function(e, t, n, o) {
                var r = this;
                this._currGroupNodes = e, this._itemPoolInstance = t, this._groupType = n, this._panelInstance = o, e.forEach(function(e, t) {
                    var n = r.Containers[t];
                    n.removeAllChildren(), e.forEach(function(e) {
                        e.x = 0, e.y = 0, n.addChild(e)
                    })
                })
            }, t.prototype.onLoad = function() {
                s.Game.EventDispatcher.On(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked, this)
            }, t.prototype.onDestroy = function() {
                s.Game.EventDispatcher.Off(l.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked)
            }, t.prototype.OnItemClicked = function(e, t) {
                var n = !1;
                if (this._groupType == a.NormalItem ? this._currGroupNodes.forEach(function(e) {
                        e.forEach(function(e) {
                            e == t && (n = !0)
                        })
                    }) : this._currGroupNodes.forEach(function(e) {
                        e.forEach(function(e) {
                            var o = e.getComponent(c.default);
                            o.IsItemSet && o.IsNodeOnThisItem(t) && (n = !0)
                        })
                    }), !n) return !1;
                this._groupType == a.NormalItem ? this._panelInstance.OnNormalItemClicked(parseInt(t.name)) : this._panelInstance.OnSelectedItemClicked(parseInt(t.name))
            }, i([d(cc.Node)], t.prototype, "Containers", void 0), i([p], t)
        }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "./ExquisiteCustomItem": "ExquisiteCustomItem"
    }],
    ExquisiteCustomItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0cac53VmstF1Yy4uiSsPSUY", "ExquisiteCustomItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LockSprite = null, t.UnSelectSprite = null, t.ItemContainer = null, t._itemStage = 1, t._currentSelectedStage = 1, t._currentRewardData = null, t._isSet = !1, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._itemStage = e, this._currentSelectedStage = t;
                    var n = t < this._itemStage;
                    this.LockSprite.node.active = n, this.UnSelectSprite.node.active = !n
                }, t.prototype.SetItem = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._isSet = !0, this._currentRewardData = e, null != this._itemComponent ? [3, 3] : null != this._itemPrefab ? [3, 2] : (t = this, [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent)]);
                                case 1:
                                    if (t._itemPrefab = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    n = cc.instantiate(this._itemPrefab), this._itemComponent = n.getComponent(u.ItemComponent), this.ItemContainer.addChild(n), o.label = 3;
                                case 3:
                                    return this._itemComponent.Init({
                                        ItemId: e.Rewards[0].Items[0],
                                        Count: e.Rewards[0].Items[1]
                                    }), this._itemComponent.node.name = e.Id.toString(), this.ChangeLockStatus(), [2]
                            }
                        })
                    })
                }, t.prototype.UnSetItem = function() {
                    this._isSet = !1, this.ChangeLockStatus(), this._currentRewardData = null
                }, t.prototype.ChangeLockStatus = function(e) {
                    e && (this._currentSelectedStage = e), this._itemStage > this._currentSelectedStage ? (this.LockSprite.node.active = !0, this.UnSelectSprite.node.active = !1, this.ItemContainer.active = !1) : this.IsItemSet ? (this.ItemContainer.active = !0, this.UnSelectSprite.node.active = !1, this.LockSprite.node.active = !1) : (this.UnSelectSprite.node.active = !0, this.ItemContainer.active = !1, this.LockSprite.node.active = !1)
                }, t.prototype.IsNodeOnThisItem = function(e) {
                    return e.parent == this.ItemContainer
                }, Object.defineProperty(t.prototype, "IsItemSet", {
                    get: function() {
                        return this._isSet
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "RewardId", {
                    get: function() {
                        return this._currentRewardData ? this._currentRewardData.Id : -1
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ItemStage", {
                    get: function() {
                        return this._itemStage
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([h(cc.Sprite)], t.prototype, "LockSprite", void 0), i([h(cc.Sprite)], t.prototype, "UnSelectSprite", void 0), i([h(cc.Node)], t.prototype, "ItemContainer", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./ItemComponent": "ItemComponent"
    }],
    Extends: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4db2afCkVlMZaPS3JdlPfnm", "Extends");
        var o = this && this.__createBinding || (Object.create ? function(e, t, n, o) {
                void 0 === o && (o = n), Object.defineProperty(e, o, {
                    enumerable: !0,
                    get: function() {
                        return t[n]
                    }
                })
            } : function(e, t, n, o) {
                void 0 === o && (o = n), e[o] = t[n]
            }),
            r = this && this.__exportStar || function(e, t) {
                for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n)
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), r(e("./StringExtends"), n), cc._RF.pop()
    }, {
        "./StringExtends": "StringExtends"
    }],
    FamePriviledgeLineComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cca26J3HopCq7/N5camELMt", "FamePriviledgeLineComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RichText = null, t.NEWSprite = null, t.QuadSprite = null, t.New_Text_Color = new cc.Color(255, 230, 133), t
                }
                return r(t, e), t.prototype.SetIsNew = function(e, t, n) {
                    return void 0 === e && (e = !1), this.NEWSprite.node.active = e, this.QuadSprite.node.active = !e, this.RichText.node.color = e ? this.New_Text_Color : n, this
                }, t.prototype.SetRichText = function(e, t) {
                    var n = this;
                    return this.RichText.string = t ? e : "<outline color=#221611 width=3>" + e + "</outline>", this.scheduleOnce(function() {
                        n.node.height = n.RichText.node.height
                    }, 0), this
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([l(cc.RichText)], t.prototype, "RichText", void 0), i([l(cc.Sprite)], t.prototype, "NEWSprite", void 0), i([l(cc.Sprite)], t.prototype, "QuadSprite", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    FamePriviledgePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "312f4AwNdtKIY96007HTdwy", "FamePriviledgePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CurrencyBarItem"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./NodePool"),
            g = e("../Components/ItemComponent"),
            m = e("./FamePriviledgeLineComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../Components/CustomProgressBar"),
            v = e("../../Channel/ChannelManager"),
            b = e("../../Auxiliary/DataUtlity"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Currency1 = null, t.Currency2 = null, t.Currency3 = null, t.FameText = null, t.VipLevel = null, t.GetButtonLabel = null, t.FameLevelLabel = null, t.VipText = null, t.BuyButtonLabel = null, t.DiscountLabel = null, t.OriginPriceLabel = null, t.CurrentPriceLabel = null, t.VipLevelLabel = null, t.ProgressBarValueLabel = null, t.GetButton = null, t.BuyButton = null, t.BuyRedDot = null, t.LeftButton = null, t.LeftRedDot = null, t.RightButton = null, t.RightRedDot = null, t.VipEXPProgressBar = null, t.DialogueRichText = null, t.ContentTitle = null, t.RewardTitle = null, t.ItemContainer = null, t.InfoContainer = null, t.BoughtNode = null, t.UnboughtNode = null, t.DiamondSprite = null, t.BoughtLabel = null, t.AttainLabel = null, t.AttainValue = null, t.FreeRewardBtn = null, t.FreeRewardGot = null, t.FreeRewardRedDot = null, t.FreeRewardBtnLabel = null, t._diamondId = 3, t._vipEXPId = 2, t._configs = [], t._items = [], t._infos = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(d.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(d.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(d.GameEventIds.RemoveDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(d.GameEventIds.AddDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChange, this), l.Game.EventDispatcher.On(d.GameEventIds.ChangeDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(d.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(d.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(d.GameEventIds.RemoveDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(d.GameEventIds.AddDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChange, this), l.Game.EventDispatcher.Off(d.GameEventIds.ChangeDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("FamePriviledgePanel/Component/Line", cc.Prefab), o = this.LoadDynamicAsset(f.BundlePath.ItemIcon + "/" + d.CommonItemId.VipPoint, cc.SpriteFrame), r = this.LoadDynamicAsset(f.BundlePath.ItemIcon + "/" + d.CommonItemId.Diamond, cc.SpriteFrame), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._itemPrefab = e[0], i._infoPrefab = e[1], i.DiamondSprite.spriteFrame = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.OnEvent(), this._itemPool = new y.default(this._itemPrefab), this._infoPool = new y.default(this._infoPrefab)
                }, t.prototype.MultiLanguageAssign = function() {
                    this.GetButtonLabel.string = "diamondShop_acquire".ToUILocale(), this.FreeRewardBtnLabel.string = "timeLimited_upgradeStar_freeGet".ToUILocale(), this.VipText.string = "vip".ToUILocale(), this.FameText.string = "vip".ToUILocale(), this.BoughtLabel.string = "BoughtToggleTagLabel".ToUILocale(), this.AttainLabel.string = "task_get_score_tag".ToUILocale()
                }, t.prototype.OnEvent = function() {
                    this.GetButton.node.on("click", this.OnGetButtonClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.LeftButton.node.on("click", this.OnLeftButtonClick, this), this.RightButton.node.on("click", this.OnRightButtonClick, this), this.FreeRewardBtn.node.on("click", this.OnFreeRewardButtonClick, this)
                }, t.prototype.OnGetButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, this._vipEXPId, !1)
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = this;
                    if (u.DataCenter.Instance.GetIntData(d.UserDataKey.VipLevel) < this._vipLevel) I.UIUtlity.ShowFloatingHint("viplevel_not_enough".ToUILocale().Fmt(this._vipLevel));
                    else {
                        if ("" == this._giftPackConfig.PayId) return u.DataCenter.Instance.GetItemCount(d.CommonItemId.Diamond) < this._giftPackConfig.Money ? (I.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(d.CommonItemId.Diamond.ToItemName())), void l.UIManager.Instance.ShowUIPanel(f.PanelConfig.MallNewPanel.Path, [d.MallPageType.DiamondShop, d.GiftPackType.BuyDiamond])) : void I.UIUtlity.ShowHintPanel(null, "mall_query_costDiamondBuy".ToUILocale().Fmt(this._giftPackConfig.Money, "famePriviledge_priviledgeReward".ToUILocale().Fmt(this._vipLevel)), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                            var t = new p.Req_Pay_ByDiamond;
                            t.Id = e._giftPackConfig.Id, u.RpcComponent.Instance.Call(t, function(e) {
                                I.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            })
                        });
                        v.default.Instance.Pay(this._giftPackConfig.Id)
                    }
                }, t.prototype.OnLeftButtonClick = function() {
                    this._vipLevel > 1 && (this._vipLevel--, this.SetContent())
                }, t.prototype.OnRightButtonClick = function() {
                    this._vipLevel < this._configs.length && (this._vipLevel++, this.SetContent())
                }, t.prototype.OnFreeRewardButtonClick = function() {
                    var e = this,
                        t = u.DataCenter.Instance.GetIntData(d.UserDataKey.VipLevel);
                    if (this._vipLevel <= t && !this.IsGotFreeReward(this._vipLevel - 1)) {
                        var n = new p.Req_Vip_BuyGift;
                        n.Id = this._vipLevel, u.RpcComponent.Instance.Call(n, function(n) {
                            I.UIUtlity.ShwDisplayRewardPanel(n.Rewards), e.FreeRewardRedDot.active = e._vipLevel <= t && !e.IsGotFreeReward(e._vipLevel - 1)
                        })
                    } else {
                        for (var o = this._configs[this._vipLevel - 1], r = [], i = 0; i < o.PackageItems.length; i++) {
                            var a = o.PackageItems[i].Items[0],
                                s = o.PackageItems[i].Items[1];
                            r.push({
                                ItemId: a,
                                Count: s
                            })
                        }
                        I.UIUtlity.ShowHintPanel("reward".ToUILocale(), r)
                    }
                }, t.prototype.IsGotFreeReward = function(e) {
                    var t = u.DataCenter.Instance.GetIntData(d.UserDataKey.VipGift);
                    return 1 == (t >> e & 1)
                }, t.prototype.OnUserItemChange = function(e) {
                    var t = Object.keys(e),
                        n = !1;
                    t.forEach(function(e) {
                        switch (Number.parseInt(e)) {
                            case d.CommonItemId.Diamond:
                            case d.CommonItemId.Coin:
                            case d.CommonItemId.Coin:
                                n = !0
                        }
                    }), n && this.SetCurrencyBar()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.VariedValueAssign(), this.SetContent(), this.SetVipLevel(), this.SetCurrencyBar()
                }, t.prototype.SetCurrencyBar = function() {
                    this.Currency1.SetCurrencyItem(), this.Currency2.Init(d.CommonItemId.Diamond), this.Currency3.Init(d.CommonItemId.Coin)
                }, t.prototype.OnSimpleDataChange = function(e) {
                    e[d.UserDataKey.VipLevel] && this.SetVipLevel()
                }, t.prototype.SetVipLevel = function() {
                    this.VipLevel.string = "" + u.DataCenter.Instance.GetIntData(d.UserDataKey.VipLevel)
                }, t.prototype.VariedValueAssign = function() {
                    this._vipLevel = u.DataCenter.Instance.GetIntData(d.UserDataKey.VipLevel);
                    var e, t, n = u.ConfigCacheComponent.Instance.GetVipLevelConfigs();
                    this._configs = [];
                    for (var o = 0; o < n.length && n[o].VisibleVIPLevel <= this._vipLevel; o++) this._configs[o] = n[o];
                    if (this._vipLevel >= this._configs.length ? (this._vipLevel = this._configs.length, e = t = this._configs[this._vipLevel - 1].Point - this._configs[this._vipLevel - 2].Point) : this._vipLevel > 0 ? (e = u.DataCenter.Instance.GetItemCount(this._vipEXPId) - this._configs[this._vipLevel - 1].Point, t = this._configs[this._vipLevel].Point - this._configs[this._vipLevel - 1].Point) : (e = u.DataCenter.Instance.GetItemCount(this._vipEXPId), t = this._configs[this._vipLevel].Point), this._vipLevel == this._configs.length) this.GetButton.node.active = !1, this.DialogueRichText.string = "diamondShop_maxVipLevel".ToUILocale();
                    else {
                        this.GetButton.node.active = !0;
                        var r = t - e;
                        this.DialogueRichText.string = "diamondShop_moreItemToVipUp".ToUILocale().Fmt(r > 0 ? r : 0)
                    }
                    this.ProgressBarValueLabel.string = e + "/" + t, this.VipLevelLabel.string = "allianceBase_level".ToUILocale().Fmt(this._vipLevel.toString()), this.VipEXPProgressBar.progress = e / t
                }, t.prototype.SetContent = function() {
                    this._vipLevel < 1 && (this._vipLevel = 1), this.LeftButton.node.active = this._vipLevel > 1, this.RightButton.node.active = this._vipLevel < this._configs.length;
                    var e = this._configs[this._vipLevel - 1];
                    this.ContentTitle.string = "famePriviledge_upToFameLevel".ToUILocale().Fmt(e.Point), this.RewardTitle.string = "famePriviledge_priviledgeReward".ToUILocale().Fmt(e.Id), this.FameLevelLabel.string = "famePriviledge_Level".ToUILocale().Fmt(e.Id);
                    var t = e.PackIds[0];
                    this._giftPackConfig = u.ConfigDataComponent.Instance.GetConfigById(h.GiftPack_Config, t);
                    var o, r = this._giftPackConfig.Items;
                    if (r.length > this._items.length) {
                        for (var i = 0; i < this._items.length; i++) o = u.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, r[i].Items[0]), this._items[i].Init({
                            ItemId: r[i].Items[0],
                            Count: r[i].Items[1]
                        }, o.Star ? g.ItemComponentType.ItemWithStar : g.ItemComponentType.ItemCommon);
                        for (i = this._items.length; i < r.length; i++)(y = this._itemPool.Get()).active = !0, y.setParent(this.ItemContainer), this._items[i] = y.getComponent(g.ItemComponent), o = u.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, r[i].Items[0]), this._items[i].Init({
                            ItemId: r[i].Items[0],
                            Count: r[i].Items[1]
                        }, o.Star ? g.ItemComponentType.ItemWithStar : g.ItemComponentType.ItemCommon)
                    } else {
                        for (i = 0; i < r.length; i++) o = u.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, r[i].Items[0]), this._items[i].Init({
                            ItemId: r[i].Items[0],
                            Count: r[i].Items[1]
                        }, o.Star ? g.ItemComponentType.ItemWithStar : g.ItemComponentType.ItemCommon);
                        for (i = r.length; i < this._items.length; i++) this._items[i].node.active = !1, this._itemPool.Put(this._items[i].node);
                        this._items.length = r.length
                    }
                    var a = new cc.Color(51, 255, 142),
                        s = cc.Color.WHITE,
                        l = [];
                    for (i = 0; i < e.Privilege.length; i++) {
                        var c, p = e.Privilege[i].Items[0],
                            f = e.Privilege[i].Items[1];
                        c = n.notDevideArray.includes(p) ? f : f / 10, 104 == p ? l.push(("priviledgeDesc_" + p).ToUILocale().Fmt(f.ToItemName())) : l.push(("priviledgeDesc_" + p).ToUILocale().Fmt("33FF8E", c))
                    }
                    if (l.length > this._infos.length) {
                        for (i = 0; i < this._infos.length; i++) this._infos[i].SetIsNew(u.ConfigCacheComponent.Instance.GetNewPrivilegeArray(this._vipLevel, e.Privilege[i].Items[0]), a, s).SetRichText(l[i]);
                        for (i = this._infos.length; i < l.length; i++) {
                            var y;
                            (y = this._infoPool.Get()).active = !0, y.setParent(this.InfoContainer), this._infos[i] = y.getComponent(m.default), this._infos[i].SetIsNew(u.ConfigCacheComponent.Instance.GetNewPrivilegeArray(this._vipLevel, e.Privilege[i].Items[0]), a, s).SetRichText(l[i])
                        }
                    } else {
                        for (i = 0; i < l.length; i++) this._infos[i].SetIsNew(u.ConfigCacheComponent.Instance.GetNewPrivilegeArray(this._vipLevel, e.Privilege[i].Items[0]), a, s).SetRichText(l[i]);
                        for (i = l.length; i < this._infos.length; i++) this._infos[i].node.active = !1, this._infoPool.Put(this._infos[i].node);
                        this._infos.length = l.length
                    }
                    this.IsBuy(this._vipLevel) ? (this.BoughtNode.active = !0, this.UnboughtNode.active = !1) : (this.BoughtNode.active = !1, this.UnboughtNode.active = !0, "" != this._giftPackConfig.PayId ? (this.OriginPriceLabel.node.parent.active = !1, this.AttainValue.node.parent.active = !0, this.SetButtonGiftPack(v.default.Instance.ExchangeMoney(this._giftPackConfig.Money), this._giftPackConfig.VipPoint)) : (this.BuyButtonLabel.string = "buyAndSale_buy".ToUILocale(), this.OriginPriceLabel.node.parent.active = !0, this.AttainValue.node.parent.active = !1, this.OriginPriceLabel.string = this._giftPackConfig.ShowMoney.toString(), this.CurrentPriceLabel.string = this._giftPackConfig.Money.toString()), this.DiscountLabel.string = "famePriviledgePanel_superValue".ToUILocale().Fmt(this._giftPackConfig.Discount + "%"));
                    var I = u.DataCenter.Instance.GetIntData(d.UserDataKey.VipLevel);
                    e.PackageItems.length > 0 ? (this.FreeRewardBtn.node.active = !0, this.IsGotFreeReward(this._vipLevel - 1) ? (this.FreeRewardGot.active = !0, this.FreeRewardRedDot.active = !1) : (this.FreeRewardRedDot.active = this._vipLevel <= I, this.FreeRewardGot.active = !1)) : this.FreeRewardBtn.node.active = !1, this.BuyRedDot.active = this._vipLevel <= I;
                    var _ = !1;
                    for (i = 0; i < this._vipLevel - 1; i++)
                        if (i < I) {
                            if (this.HasRedDot(i + 1)) {
                                _ = !0;
                                break
                            }
                            if (!this.IsGotFreeReward(i) && this._configs[i].PackageItems.length > 0) {
                                _ = !0;
                                break
                            }
                        } this.LeftRedDot.active = _;
                    var C = !1;
                    for (i = this._vipLevel; i < I; i++) {
                        if (this.HasRedDot(i + 1)) {
                            C = !0;
                            break
                        }
                        if (!this.IsGotFreeReward(i) && this._configs[i].PackageItems.length > 0) {
                            C = !0;
                            break
                        }
                    }
                    this.RightRedDot.active = C
                }, t.prototype.SetButtonGiftPack = function(e, t) {
                    return e <= 0 ? (this.BuyButtonLabel.string = "shop_buyFree".ToUILocale(), this.AttainValue.string = "x" + t, this.AttainLabel.node.parent.active = !1) : (this.BuyButtonLabel.string = v.default.Instance.CurrencySymbol + e, this.AttainValue.string = "x" + t, this.AttainLabel.node.parent.active = !0), this
                }, t.prototype.HasRedDot = function(e) {
                    var t = this._configs[e - 1];
                    return b.default.Instance.GetGiftBuyCount(t.PackIds[0]) <= 0
                }, t.prototype.IsBuy = function(e) {
                    var t = this._configs[e - 1];
                    return b.default.Instance.GetGiftBuyCount(t.PackIds[0]) > 0
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemContainer7" == t.parent.name && I.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._itemPool && this._itemPool.Clear(), this._infoPool && this._infoPool.Clear()
                }, t.notDevideArray = [4, 5, 7, 9, 10, 11, 12, 18, 19, 20, 21], i([P(c.default)], t.prototype, "Currency1", void 0), i([P(c.default)], t.prototype, "Currency2", void 0), i([P(c.default)], t.prototype, "Currency3", void 0), i([P(cc.Label)], t.prototype, "FameText", void 0), i([P(cc.Label)], t.prototype, "VipLevel", void 0), i([P(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([P(cc.Label)], t.prototype, "FameLevelLabel", void 0), i([P(cc.Label)], t.prototype, "VipText", void 0), i([P(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([P(cc.Label)], t.prototype, "DiscountLabel", void 0), i([P(cc.Label)], t.prototype, "OriginPriceLabel", void 0), i([P(cc.Label)], t.prototype, "CurrentPriceLabel", void 0), i([P(cc.Label)], t.prototype, "VipLevelLabel", void 0), i([P(cc.Label)], t.prototype, "ProgressBarValueLabel", void 0), i([P(cc.Button)], t.prototype, "GetButton", void 0), i([P(cc.Button)], t.prototype, "BuyButton", void 0), i([P(cc.Node)], t.prototype, "BuyRedDot", void 0), i([P(cc.Button)], t.prototype, "LeftButton", void 0), i([P(cc.Node)], t.prototype, "LeftRedDot", void 0), i([P(cc.Button)], t.prototype, "RightButton", void 0), i([P(cc.Node)], t.prototype, "RightRedDot", void 0), i([P(C.default)], t.prototype, "VipEXPProgressBar", void 0), i([P(cc.RichText)], t.prototype, "DialogueRichText", void 0), i([P(cc.RichText)], t.prototype, "ContentTitle", void 0), i([P(cc.Label)], t.prototype, "RewardTitle", void 0), i([P(cc.Node)], t.prototype, "ItemContainer", void 0), i([P(cc.Node)], t.prototype, "InfoContainer", void 0), i([P(cc.Node)], t.prototype, "BoughtNode", void 0), i([P(cc.Node)], t.prototype, "UnboughtNode", void 0), i([P(cc.Sprite)], t.prototype, "DiamondSprite", void 0), i([P(cc.Label)], t.prototype, "BoughtLabel", void 0), i([P(cc.Label)], t.prototype, "AttainLabel", void 0), i([P(cc.Label)], t.prototype, "AttainValue", void 0), i([P(cc.Button)], t.prototype, "FreeRewardBtn", void 0), i([P(cc.Node)], t.prototype, "FreeRewardGot", void 0), i([P(cc.Node)], t.prototype, "FreeRewardRedDot", void 0), i([P(cc.Label)], t.prototype, "FreeRewardBtnLabel", void 0), n = i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./FamePriviledgeLineComponent": "FamePriviledgeLineComponent",
        "./NodePool": "NodePool"
    }],
    FameUpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a3f54mbpJ9Gb4x60n+kJ0vy", "FameUpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("./FamePriviledgeLineComponent"),
            h = e("./NodePool"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1, !1), t.FameUpLabel = null, t.FamePrivilegeLabel = null, t.LevelBeforeLabel = null, t.LevelAfterLabel = null, t.FameDescContainer = null, t.GoCheckFameButton = null, t.GoCheckFameButtonLabel = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t.Main = null, t._infos = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("FamePriviledgePanel/Component/Line")];
                                case 1:
                                    return t._infoPrefab = n.sent(), this._infoPool = new h.default(this._infoPrefab), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.FameUpLabel.string = "famePriviledge_LevelUp".ToUILocale(), this.FamePrivilegeLabel.string = "famePriviledge".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.GoCheckFameButtonLabel.string = "diamondShop_examinePriviledge".ToUILocale(), this.ConfirmButton.node.on("click", this.Close, this), this.GoCheckFameButton.node.on("click", this.OnGoCheckFameButtonClick.bind(this), this), this.node.opacity = 0
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._vipLevelBefore = t[0]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (!t) {
                        var o = c.DataCenter.Instance.GetIntData(u.UserDataKey.VipLevel);
                        this.LevelAfterLabel.string = "Lv." + o, this.LevelBeforeLabel.string = "Lv." + this._vipLevelBefore;
                        var r = new cc.Color(51, 255, 142),
                            i = new cc.Color(98, 78, 60),
                            a = [],
                            s = [4, 5, 7, 9, 10, 11],
                            l = c.ConfigDataComponent.Instance.GetConfigById(p.VipLevel_Config, o),
                            h = c.ConfigCacheComponent.Instance.GetNewPrivilegeArrayFromAToB(this._vipLevelBefore, o),
                            f = c.ConfigCacheComponent.Instance.GetAlwaysNewPrivilegeArrayFromAToB(this._vipLevelBefore, o);
                        h.push(104);
                        for (var y = 0; y < l.Privilege.length; y++) {
                            var g, m = l.Privilege[y].Items[0],
                                I = l.Privilege[y].Items[1];
                            if (g = s.includes(m) ? I : I / 10, 104 == m) a.push(("priviledgeDesc_" + m).ToUILocale().Fmt(I.ToItemName()));
                            else {
                                var _ = (v = h.includes(m)) ? "33FF8E" : "33FF8E><outline width=3 color=#221611";
                                a.push(("priviledgeDesc_" + m).ToUILocale().Fmt(_, g))
                            }
                        }
                        for (y = 0; y < a.length; y++) {
                            var C = this._infoPool.Get();
                            C.active = !0, C.setParent(this.FameDescContainer), this._infos[y] = C.getComponent(d.default);
                            var v = h.includes(l.Privilege[y].Items[0]);
                            this._infos[y].SetIsNew(v, r, i).SetRichText(a[y], !v)
                        }
                        f.forEach(function(e) {
                            var t = n._infoPool.Get();
                            t.active = !0, t.setParent(n.FameDescContainer);
                            var o = ("priviledgeDesc_" + e[0]).ToUILocale().Fmt(null == e[1] ? "" : e[1].ToItemName());
                            t.getComponent(d.default).SetIsNew(!0, r, i).SetRichText(o)
                        }), this.DelayFrames(4, function() {
                            e.prototype.DisPlay.call(n, t)
                        })
                    }
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.FameDescContainer.removeAllChildren()
                }, t.prototype.OnGoCheckFameButtonClick = function() {
                    this.Close(), l.UIManager.Instance.QuitPanelStack(f.PanelConfig.DisplayRewardsPanel.Path), l.UIManager.Instance.ShowUIPanel(f.PanelConfig.FamePriviledgePanel.Path)
                }, t.prototype.DelayFrames = function(e, t) {
                    var n = this;
                    e < 0 ? this.isValid && t() : this.scheduleOnce(function() {
                        n.DelayFrames(e - 1, t)
                    }, 0)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._infoPool && this._infoPool.Clear()
                }, i([m(cc.Label)], t.prototype, "FameUpLabel", void 0), i([m(cc.Label)], t.prototype, "FamePrivilegeLabel", void 0), i([m(cc.Label)], t.prototype, "LevelBeforeLabel", void 0), i([m(cc.Label)], t.prototype, "LevelAfterLabel", void 0), i([m(cc.Node)], t.prototype, "FameDescContainer", void 0), i([m(cc.Button)], t.prototype, "GoCheckFameButton", void 0), i([m(cc.Label)], t.prototype, "GoCheckFameButtonLabel", void 0), i([m(cc.Button)], t.prototype, "ConfirmButton", void 0), i([m(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([m(cc.Node)], t.prototype, "Main", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./FamePriviledgeLineComponent": "FamePriviledgeLineComponent",
        "./NodePool": "NodePool"
    }],
    FantasticPastureBillingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "83b74N3isxOhqznjhZdIVXX", "FantasticPastureBillingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/DataCenter"),
            c = e("../../Components/RpcComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Score = null, t.Rank = null, t.RankNode = null, t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], t.length > 1 && (this._callBack = t[1])
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        var o = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._activityId);
                        if (!o) return void a.UIManager.Instance.BackUIPanel();
                        var r = s.Req_Activity_GetRank.create();
                        r.ActivityId = this._activityId;
                        var i = o.IntMap[2];
                        this.Score.string = "activity2048_end_score_tip".ToUILocale().Fmt(i), c.RpcComponent.Instance.Call(r, function(e) {
                            var t = e.MyRank;
                            if (t - 1 > e.Rows.length || t <= 0) n.RankNode.active = !1;
                            else if (1 == t) n.RankNode.active = !0, n.Rank.string = "ActivityHeroTestTower_CurrentRank_Title".ToUILocale() + t;
                            else {
                                n.RankNode.active = !0;
                                var o = e.Rows[t - 2];
                                n.Rank.string = "activity2048_end_rank_tip".ToUILocale().Fmt(t, o.Value - i)
                            }
                        }, function() {
                            n.Rank.node.active = !1
                        })
                    }
                }, t.prototype.Close = function() {
                    this._callBack(), e.prototype.Close.call(this)
                }, i([h(cc.RichText)], t.prototype, "Score", void 0), i([h(cc.RichText)], t.prototype, "Rank", void 0), i([h(cc.Node)], t.prototype, "RankNode", void 0), i([d], t)
            }(u.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent"
    }],
    FantasticPastureBlockItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5bdd5uxgtpDzKpKu8sMUj+P", "FantasticPastureBlockItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../ShareConsts/EnumType"),
            c = e("./FantasticPasturePanel"),
            u = e("./FantasticPastureExplodeItem"),
            p = e("../../../EZFramework/EZFramework"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Effect = null, t.ExploadParent = null, t.WhiteNode = null, t._chessConfigs = {}, t._atlas = null, t._exploadItems = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "StartIndex", {
                    get: function() {
                        return this._startIndex
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "EndIndex", {
                    get: function() {
                        return this._endIndex
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "MoveLeftLimit", {
                    get: function() {
                        return this._moveLeftLimit
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "MoveRightLimit", {
                    get: function() {
                        return this._moveRightLimit
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "SpecialType", {
                    get: function() {
                        return this._specialType
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Color", {
                    get: function() {
                        return this._color
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ChessId", {
                    get: function() {
                        return this._chessId
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "BgPath", {
                    get: function() {
                        return this._bgPath
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_START, this.OnTouchStart, this), this.node.on(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchEnd, this), this.node.on("click", this.OnClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_START, this.OnTouchStart, this), this.node.off(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this.node.off(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchEnd, this), this.node.off("click", this.OnClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    void 0 === o && (o = !1), this._isInit || (this._basePanel = e, this._atlas = e.Atlas, this._chessConfigs = e.ChessIdToMap, this._isInit = !0), o && (this.WhiteNode.opacity = 255);
                    for (var r = 0; r < this._exploadItems.length; r++) this._exploadItems[r].node.active = !1, this._exploadItems[r].SetSkeletonNull();
                    this.Bg.node.opacity = 255, this._chessId = n, this._chessConfig = this._chessConfigs[n], this.node.active = !0, this.node.width = this._basePanel.BlockWidths[this._chessConfig.Length - 1], this.Bg.node.width = this.node.width, this._specialType = this._chessConfig.Effect, this._color = this._chessConfig.Color, this.InitBlockIcon(), this.SetPositionIndex(t), this.node.x = this._startIndex * e.ChessWidth, this.node.y = 0
                }, t.prototype.InitBlockIcon = function() {
                    switch (this._chessConfig.Effect) {
                        case l.FantasticPastureObjectEffect.Eliminate:
                        case l.FantasticPastureObjectEffect.Treasure:
                            this._bgPath = "special_" + this._chessConfig.Effect;
                            break;
                        default:
                            this._bgPath = this._color + "0" + this._chessConfig.Length
                    }
                    this.Bg.spriteFrame = this._atlas.getSpriteFrame(this._bgPath)
                }, t.prototype.SetPositionIndex = function(e) {
                    this._startIndex = e, this._endIndex = this._startIndex + this._chessConfig.Length - 1
                }, t.prototype.ComputeMoveLimit = function() {
                    var e = this._startIndex,
                        t = this._endIndex,
                        n = parseInt(this.node.parent.name),
                        o = this._basePanel.LineContainerDatas[n],
                        r = o.ChessList.indexOf(this);
                    0 == r ? (e = 0, t = r == o.ChessList.length - 1 ? this._basePanel.BoardWidth - 1 : o.ChessList[r + 1].StartIndex - 1) : r == o.ChessList.length - 1 ? (e = o.ChessList[r - 1].EndIndex + 1, t = this._basePanel.BoardWidth - 1) : (e = o.ChessList[r - 1].EndIndex + 1, t = o.ChessList[r + 1].StartIndex - 1), this._moveLeftLimit = this.node.x - (this._startIndex - e) * this._basePanel.ChessWidth, this._moveRightLimit = this.node.x + (t - this._endIndex) * this._basePanel.ChessWidth
                }, t.prototype.OnWhite = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, new Promise(function(t) {
                                        e.scheduleOnce(function() {
                                            cc.Tween.stopAllByTarget(e.WhiteNode), e.WhiteNode.opacity = 0, e.WhiteNode.width = e.node.width, cc.tween(e.WhiteNode).to(.1, {
                                                opacity: 255
                                            }).call(function() {
                                                t(null)
                                            }).start()
                                        }, .2)
                                    })];
                                case 1:
                                    return [2, t.sent()]
                            }
                        })
                    })
                }, t.prototype.OffWhite = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, new Promise(function(t) {
                                        e.scheduleOnce(function() {
                                            cc.Tween.stopAllByTarget(e.WhiteNode), e.WhiteNode.opacity = 255, e.WhiteNode.width = e.node.width, cc.tween(e.WhiteNode).to(.1, {
                                                opacity: 0
                                            }).call(function() {
                                                t(null)
                                            }).start()
                                        }, .1)
                                    })];
                                case 1:
                                    return [2, t.sent()]
                            }
                        })
                    })
                }, t.prototype.PlayFlashing = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function() {
                            return [2, new Promise(function(t) {
                                return a(e, void 0, void 0, function() {
                                    var e, n = this;
                                    return s(this, function(o) {
                                        switch (o.label) {
                                            case 0:
                                                return this.Effect.node.x = this.node.width / 2, this._endIndex - this._startIndex + 1 >= 2 ? [4, this._basePanel.GetEffectByKey(c.FantasticPastureEffectKey.Flashing2)] : [3, 2];
                                            case 1:
                                                return e = o.sent(), this.isValid ? (this.Effect.skeletonData = e, [3, 4]) : (e && p.AssetsManager.Instance.UnloadAsset(e), [2]);
                                            case 2:
                                                return [4, this._basePanel.GetEffectByKey(c.FantasticPastureEffectKey.Flashing1)];
                                            case 3:
                                                if (e = o.sent(), !this.isValid) return e && p.AssetsManager.Instance.UnloadAsset(e), [2];
                                                this.Effect.skeletonData = e, o.label = 4;
                                            case 4:
                                                return this.Effect.skeletonData && this.Effect.setAnimation(0, this.Effect.skeletonData.getRuntimeData().animations[0].name, !0), this.scheduleOnce(function() {
                                                    n.Effect.skeletonData = null, t(null)
                                                }, .3), [2]
                                        }
                                    })
                                })
                            })]
                        })
                    })
                }, t.prototype.PlayAxe = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this.Expload()];
                                case 1:
                                    return t.sent(), this.isValid ? (this.scheduleOnce(function() {
                                        e.SetExplodeNull()
                                    }, .233), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.PlayDiffusion = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, new Promise(function(t) {
                                        return a(e, void 0, void 0, function() {
                                            var e, n = this;
                                            return s(this, function(o) {
                                                switch (o.label) {
                                                    case 0:
                                                        return this.Effect.node.x = this.node.width / 2, [4, this._basePanel.GetEffectByKey(c.FantasticPastureEffectKey.Diffusion)];
                                                    case 1:
                                                        return e = o.sent(), this.isValid ? (this.Effect.skeletonData = e, this.Effect.skeletonData && this.Effect.setAnimation(0, this.Effect.skeletonData.getRuntimeData().animations[0].name, !1), this.scheduleOnce(function() {
                                                            return a(n, void 0, void 0, function() {
                                                                var e = this;
                                                                return s(this, function(n) {
                                                                    switch (n.label) {
                                                                        case 0:
                                                                            return [4, this.Expload()];
                                                                        case 1:
                                                                            return n.sent(), this.scheduleOnce(function() {
                                                                                e.SetExplodeNull(), t(null)
                                                                            }, .233), [2]
                                                                    }
                                                                })
                                                            })
                                                        }, .1), [2]) : (e && p.AssetsManager.Instance.UnloadAsset(e), [2])
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, t.sent()]
                            }
                        })
                    })
                }, t.prototype.SetExplodeNull = function() {
                    for (var e = 0; e < this._exploadItems.length; e++) this._exploadItems[e].SetSkeletonNull(), this._exploadItems[e].node.active = !1
                }, t.prototype.Expload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, new Promise(function(t) {
                                        return a(e, void 0, void 0, function() {
                                            var e, n, o, r, i;
                                            return s(this, function(a) {
                                                switch (a.label) {
                                                    case 0:
                                                        e = this._endIndex - this._startIndex + 1, n = 0, a.label = 1;
                                                    case 1:
                                                        if (!(n < e)) return [3, 10];
                                                        switch ((o = this._exploadItems[n]) || ((r = cc.instantiate(this._basePanel.SpineExplode)).setParent(this.ExploadParent), o = r.getComponent(u.default), this._exploadItems.push(o)), o.node.active = !0, i = void 0, this.Color) {
                                                            case "1":
                                                                return [3, 2];
                                                            case "2":
                                                                return [3, 4];
                                                            case "3":
                                                                return [3, 6]
                                                        }
                                                        return [3, 8];
                                                    case 2:
                                                        return [4, this._basePanel.GetEffectByKey(c.FantasticPastureEffectKey.ExplodeRed)];
                                                    case 3:
                                                        return i = a.sent(), [3, 8];
                                                    case 4:
                                                        return [4, this._basePanel.GetEffectByKey(c.FantasticPastureEffectKey.ExplodeGreen)];
                                                    case 5:
                                                        return i = a.sent(), [3, 8];
                                                    case 6:
                                                        return [4, this._basePanel.GetEffectByKey(c.FantasticPastureEffectKey.ExplodePurple)];
                                                    case 7:
                                                        return i = a.sent(), [3, 8];
                                                    case 8:
                                                        if (!this.isValid) return i && p.AssetsManager.Instance.UnloadAsset(i), [2];
                                                        o.Init(i), a.label = 9;
                                                    case 9:
                                                        return n++, [3, 1];
                                                    case 10:
                                                        return cc.Tween.stopAllByTarget(this.Bg.node), cc.tween(this.Bg.node).to(.03, {
                                                            opacity: 0
                                                        }).start(), t(null), [2]
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, t.sent()]
                            }
                        })
                    })
                }, t.prototype.PlayPickaxes = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.Effect.node.x = this.node.width / 2, [4, this._basePanel.GetEffectByKey(c.FantasticPastureEffectKey.Pickaxes)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.Effect.skeletonData = e, this.Effect.skeletonData && this.Effect.setAnimation(0, "Ani_UI_Effect_gaozi", !1), [2]) : (e && p.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.OnTouchStart = function(e) {
                    this.ComputeMoveLimit(), this._basePanel.OnTouchStart(e)
                }, t.prototype.OnTouchMove = function(e) {
                    this._basePanel.OnTouchMove(e)
                }, t.prototype.OnTouchEnd = function(e) {
                    this._basePanel.OnTouchEnd(e)
                }, t.prototype.OnClick = function(e) {
                    this._basePanel.OnClickBlock(e)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([f(cc.Sprite)], t.prototype, "Bg", void 0), i([f(sp.Skeleton)], t.prototype, "Effect", void 0), i([f(cc.Node)], t.prototype, "ExploadParent", void 0), i([f(cc.Node)], t.prototype, "WhiteNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "./FantasticPastureExplodeItem": "FantasticPastureExplodeItem",
        "./FantasticPasturePanel": "FantasticPasturePanel"
    }],
    FantasticPastureExplodeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "26ec0zTQnZCH6lpUdEWL8Z3", "FantasticPastureExplodeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Effect = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.Effect.skeletonData = e, this.Effect.skeletonData && this.Effect.setAnimation(0, this.Effect.skeletonData.getRuntimeData().animations[0].name, !1), [2]
                        })
                    })
                }, t.prototype.SetSkeletonNull = function() {
                    this.Effect.skeletonData = null
                }, i([u(sp.Skeleton)], t.prototype, "Effect", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {}],
    FantasticPastureHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "993f8Iu8RZJPrFsW4HS9jj2", "FantasticPastureHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Title = null, t.HintLabel1 = null, t.UseItemBtn = null, t.UseItemBtnLabel = null, t.ResumeBtn = null, t.ResumeBtnLabel = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "hint".ToUILocale(), this.UseItemBtnLabel.string = "FantasticPasture_useItem".ToUILocale(), this.ResumeBtnLabel.string = "battle_control_restart".ToUILocale(), this.HintLabel1.string = "FantasticPasture_overHint".ToUILocale(), this.UseItemBtn.node.on("click", this.OnUseBtn, this), this.ResumeBtn.node.on("click", this.OnResumeBtn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), t.length > 0 && (this._activityId = t[0]), t.length > 1 && (this._useItemCallBack = t[1]), t.length > 2 && (this._resumeCallBack = t[2])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t)
                }, t.prototype.OnUseBtn = function() {
                    this._useItemCallBack && this._useItemCallBack(), this.Close()
                }, t.prototype.OnResumeBtn = function() {
                    a.UIManager.Instance.ShowUIPanel(l.PanelConfig.FantasticPastureBillingPanel.Path, this._activityId, this._resumeCallBack), this.Close()
                }, i([p(cc.Label)], t.prototype, "Title", void 0), i([p(cc.Label)], t.prototype, "HintLabel1", void 0), i([p(cc.Button)], t.prototype, "UseItemBtn", void 0), i([p(cc.Label)], t.prototype, "UseItemBtnLabel", void 0), i([p(cc.Button)], t.prototype, "ResumeBtn", void 0), i([p(cc.Label)], t.prototype, "ResumeBtnLabel", void 0), i([u], t)
            }(s.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine"
    }],
    FantasticPasturePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1fcf6Z3TaVGj6AEaM5Muera", "FantasticPasturePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FantasticPastureEffectKey = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Components/DataCenter"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Components/RpcComponent"),
            g = e("../../../Consts/Etc"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/Components"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../Components/ItemComponent"),
            S = e("./FantasticPastureBlockItem"),
            w = e("../../../Util/TimeUtil"),
            P = e("./CoiledEliminateItem"),
            A = e("./FantasticPastureProgressRewardBar"),
            T = e("../../../Consts/GameEventIds");
        (function(e) {
            e[e.HistoryScore = 1] = "HistoryScore", e[e.NowScore = 2] = "NowScore", e[e.PrePhycial = 3] = "PrePhycial", e[e.RecoveryTime = 4] = "RecoveryTime", e[e.ToDayHightSocre = 5] = "ToDayHightSocre"
        })(l || (l = {})),
        function(e) {
            e[e.Hammer = 0] = "Hammer", e[e.Flashing1 = 1] = "Flashing1", e[e.Flashing2 = 2] = "Flashing2", e[e.Axe = 3] = "Axe", e[e.SplinterRed = 4] = "SplinterRed", e[e.SplinterGreen = 5] = "SplinterGreen", e[e.SplinterPurple = 6] = "SplinterPurple", e[e.Diffusion = 7] = "Diffusion", e[e.Clear = 8] = "Clear", e[e.ExplodeRed = 9] = "ExplodeRed", e[e.ExplodeGreen = 10] = "ExplodeGreen", e[e.ExplodePurple = 11] = "ExplodePurple", e[e.Pickaxes = 12] = "Pickaxes"
        }(c = n.FantasticPastureEffectKey || (n.FantasticPastureEffectKey = {}));
        var R = cc._decorator,
            L = R.ccclass,
            k = R.property,
            O = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.FantasticPastureProgressRewardBar = null, t.LeftTimeRichText = null, t.DayActivityTime = null, t.ResetHint = null, t.NowScore = null, t.ChessBoard = null, t.LineContainer = null, t.Chess = null, t.RecoveryTimeBg = null, t.RecoveryTimeLabel = null, t.PhysicalName = null, t.Physical = null, t.WhiteHintNode = null, t.MoveMask = null, t.PropParent = null, t.PropTitle = null, t.RankBtn = null, t.RankBtnLabel = null, t.RewardBtn = null, t.RewardBtnLabel = null, t.GiftBtn = null, t.GiftBtnLabel = null, t.WarTokenBtn = null, t.WarTokenBtnLabel = null, t.BackBtn = null, t.NextLineHint = null, t.HintNode = null, t.CoiledEliminateParent = null, t.AddScoreParent = null, t.PropMask = null, t.Effect = null, t.SplinterParent = null, t.Splinter = null, t.QuitHint = null, t.QuitProp = null, t.RuleBtn = null, t.ShadowBlock = null, t.ActivityEndNode = null, t.ActivityEndLabel = null, t.AxeEffect = null, t._rewards = [], t._props = [], t._chessIdToMap = {}, t._chessColorMap = {}, t._propEffectMap = {}, t.BoardWidth = 8, t.BoardHeight = 10, t.ChessWidth = 104, t.ChessHeight = 104, t.DownTime = .2, t.UpTime = .2, t._blockWidths = [], t._canClearLines = [], t._hintNodes = [], t._chessPool = new cc.NodePool, t._lineContainerDatas = [], t._coiledEliminatePool = new cc.NodePool, t._scoreShow = null, t._coiledEliminate = null, t.EffectPaths = ["FantasticPasturePanel/UISpine/Hammer/UI_Effect_chuizi", "FantasticPasturePanel/UISpine/Hammer/UI_Effect_shanshuo", "FantasticPasturePanel/UISpine/Hammer/UI_Effect_shanshuo2", "FantasticPasturePanel/UISpine/Axe/UI_Effect_fuzi", "FantasticPasturePanel/UISpine/Axe/UI_Effect_suipianhong", "FantasticPasturePanel/UISpine/Axe/UI_Effect_suipianlv", "FantasticPasturePanel/UISpine/Axe/UI_Effect_suipian", "FantasticPasturePanel/UISpine/Axe/UI_Effect_kuosan", "FantasticPasturePanel/UISpine/Eliminate/UI_Effect_xiaochu", "FantasticPasturePanel/UISpine/Explode/UI_Effect_baozhahongse", "FantasticPasturePanel/UISpine/Explode/UI_Effect_baozhalvse", "FantasticPasturePanel/UISpine/Explode/UI_Effect_baozhazise", "FantasticPasturePanel/UISpine/Pickaxes/UI_Effect_gaozi"], t._activeStateIndex = -1, t._oldActiveStateIndex = -1, t._continuityCount = 0, t._splinters = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "ChessIdToMap", {
                    get: function() {
                        return this._chessIdToMap
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Atlas", {
                    get: function() {
                        return this._atlas
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "LineContainerDatas", {
                    get: function() {
                        return this._lineContainerDatas
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "BlockWidths", {
                    get: function() {
                        return this._blockWidths
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "SpineExplode", {
                    get: function() {
                        return this._spineExplode
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.GetEffectByKey = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._effectMap || (this._effectMap = {}), this._effectMap[e] ? [2, this._effectMap[e]] : [3, 1];
                                case 1:
                                    return [4, this.LoadDynamicAsset(this.EffectPaths[e], sp.SkeletonData)];
                                case 2:
                                    return t = n.sent(), this.isValid ? (this._effectMap[e] = t, [2, t]) : (u.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), u.Game.EventDispatcher.On(T.GameEventIds.AddDataDetail.Fmt(p.UserActivity_Model._n_), this.RefreshPanel, this), u.Game.EventDispatcher.On(T.GameEventIds.ChangeDataDetail.Fmt(p.UserActivity_Model._n_), this.RefreshPanel, this), u.Game.EventDispatcher.On(T.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.RefrehProps, this), u.Game.EventDispatcher.On(T.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.RefrehProps, this), u.Game.EventDispatcher.On(T.GameEventIds.RemoveDataDetail.Fmt(p.UserItem_Model._n_), this.RefrehProps, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), u.Game.EventDispatcher.Off(T.GameEventIds.AddDataDetail.Fmt(p.UserActivity_Model._n_), this.RefreshPanel, this), u.Game.EventDispatcher.Off(T.GameEventIds.ChangeDataDetail.Fmt(p.UserActivity_Model._n_), this.RefreshPanel, this), u.Game.EventDispatcher.Off(T.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.RefrehProps, this), u.Game.EventDispatcher.Off(T.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.RefrehProps, this), u.Game.EventDispatcher.Off(T.GameEventIds.RemoveDataDetail.Fmt(p.UserItem_Model._n_), this.RefrehProps, this)
                }, t.prototype.RefreshPanel = function() {
                    if (this._needRefresh) {
                        this._needRefresh = !1, this._model = h.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), this._nowScore = this._model.IntMap[l.NowScore], this.RefreshScore(), this.ComputeActivityTime(), this.RefreshProgress(), this._updataTimer = Math.floor((this._gameEndTime - y.RpcComponent.Instance.ServerTime) / g.Etc.SecondDuration), this.unschedule(this.RefreshExceedActionTime), this._updataTimer > 0 && this.scheduleOnce(this.RefreshExceedActionTime, this._updataTimer), this.RefreshEnergy(), this.ReStartLineData();
                        for (var e = 0; e < this._model.Int2DArray.length; e++) this.SetLineData(this._model.Int2DArray[e].Items, e);
                        this.SetNextLineHint()
                    }
                }, t.prototype.RefrehProps = function(e) {
                    for (var t in e)
                        for (var n = parseInt(t), o = 0; o < this._activityConfig.__Item.length; o++)
                            if (this._activityConfig.__Item[o].Id == n) {
                                this.RefreshProp(o);
                                break
                            }
                }, t.prototype.ReStartLineData = function() {
                    for (var e = 0; e < this._lineContainerDatas.length; e++) {
                        for (var t = this._lineContainerDatas[e], n = 0; n < t.ChessList.length; n++) {
                            var o = t.ChessList[n].node;
                            this._chessPool.put(o)
                        }
                        t.ChessList = []
                    }
                }, t.prototype.update = function() {
                    if (this._activeStateIndex != this._oldActiveStateIndex)
                        if (this._oldActiveStateIndex = this._activeStateIndex, this._activeStateIndex >= 0 && this._activeStateIndex < this._activeDatas.Tag.length) {
                            var e = this._activeDatas.Tag[this._activeStateIndex],
                                t = this._activeDatas.Effect[this._activeStateIndex];
                            1 == e ? this.BlocksDownMove(t) : 2 == e ? this.EliminateLine(t) : this.AddLine(t)
                        } else this._activeStateIndex >= this._activeDatas.Tag.length && (this._activeStateIndex = -1, this._oldActiveStateIndex = -1, this._continuityCount = 0, this._model = h.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), this.RefreshProgress(), this._activeDatas.Rewards && this._activeDatas.Rewards.length > 0 ? (u.UIManager.Instance.ShowUIPanel(C.PanelConfig.DisplayRewardsPanel.Path, this._activeDatas.Rewards), this._activeDatas.PointRewards && this._activeDatas.PointRewards.length > 0 && (this._rewards = this._activeDatas.PointRewards)) : this._activeDatas.PointRewards && this._activeDatas.PointRewards.length > 0 && u.UIManager.Instance.ShowUIPanel(C.PanelConfig.DisplayRewardsPanel.Path, this._activeDatas.PointRewards), this._activeDatas = null, this.MoveMask.active = !1, this.PropMask.active = !1, this._propUseing = !1)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(C.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("FantasticPasturePanel/Png/FantasticPasturePanel", cc.SpriteAtlas), o = this.LoadDynamicAsset("FantasticPasturePanel/CoiledEliminateItem", cc.Prefab), r = this.LoadDynamicAsset("FantasticPasturePanel/FantasticPastureExplodeItem", cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._itemPrefab = e[0], i._atlas = e[1], i._coiledEliminatePrefab = e[2], i._spineExplode = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RankBtn.node.on("click", this.OnRankBtn, this), this.RankBtnLabel.string = "continuousFight_rank".ToUILocale(), this.RewardBtn.node.on("click", this.OnRewardBtn, this), this.RewardBtnLabel.string = "reward".ToUILocale(), this.GiftBtn.node.on("click", this.OnGiftBtn, this), this.GiftBtnLabel.string = "LuckyDraw_pack".ToUILocale(), this.WarTokenBtn.node.on("click", this.OnWarTokenBtn, this), this.WarTokenBtnLabel.string = "HolyRelic_WarToken".ToUILocale(), this.BackBtn.node.on("click", this.OnBackBtn, this), this.QuitProp.on("click", this.OnQuitProp, this), this.RuleBtn.node.on("click", this.OnRule, this), this.Title.string = "FantasticPasture_title".ToUILocale(), this.ResetHint.string = "FantasticPasture_resetHint".ToUILocale(), this.PhysicalName.string = "FantasticPasture_physical".ToUILocale(), this.PropTitle.string = "FantasticPasture_specialItem".ToUILocale(), this.QuitHint.string = "FantasticPasture_quitProp".ToUILocale(), this.ActivityEndLabel.string = "activity_end".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = h.DataCenter.Instance.ActivityConfigs[this._activityId], this._effectType = 0
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        if (this._model = h.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), !this._model) return void u.UIManager.Instance.BackUIPanel();
                        this.HindWarToken(), this.ExhibitionStart(), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), this.SetDayActivityTime(), this.ComputeActivityTime(), this.InitProp(), this._activityConfig.__Object.forEach(function(e) {
                            n._chessIdToMap[e.Id] = e;
                            var t = e.Color;
                            n._chessColorMap[t] || (n._chessColorMap[t] = {}), n._chessColorMap[t][e.Length] = e.Id
                        }), this._activityConfig.__Item.forEach(function(e) {
                            n._propEffectMap[e.Effect] = e
                        }), this.InitProgress(), this._nowScore = this._model.IntMap[l.NowScore], this.RefreshScore(), this._isexhibitionStart || (this.SetBlockWidths(), this.RefreshEnergy(), this.InitChessBoard(), this.InitHintLine(), this.SetNextLineHint())
                    }
                    this._rewards.length > 0 && (u.UIManager.Instance.ShowUIPanel(C.PanelConfig.DisplayRewardsPanel.Path, this._rewards), this._rewards = [])
                }, t.prototype.HindWarToken = function() {
                    this.WarTokenBtn.node.active = this._activityConfig.Common.JumpId && this._activityConfig.Common.JumpId > 0
                }, t.prototype.ComputeActivityTime = function() {
                    var e = y.RpcComponent.Instance.ServerTime,
                        t = w.TimeUtil.Get0ClockTs(e),
                        n = this._activityConfig.CustomPart.Time;
                    this._gameStartTime = t;
                    for (var o = 0; o < n[0].Items.length; o++) 0 == o ? this._gameStartTime += n[0].Items[0] * g.Etc.HourDuration : 1 == o ? this._gameStartTime += n[0].Items[1] * g.Etc.MinuteDuration : 2 == o && (this._gameStartTime += n[0].Items[2] * g.Etc.SecondDuration);
                    for (this._gameEndTime = t, o = 0; o < n[1].Items.length; o++) 0 == o ? this._gameEndTime += n[1].Items[0] * g.Etc.HourDuration : 1 == o ? this._gameEndTime += n[1].Items[1] * g.Etc.MinuteDuration : 2 == o && (this._gameEndTime += n[1].Items[2] * g.Etc.SecondDuration)
                }, t.prototype.SetBlockWidths = function() {
                    for (var e = 0; e < this.BoardWidth; e++) this._blockWidths.push((e + 1) * this.ChessWidth)
                }, t.prototype.RefreshExceedActionTime = function() {
                    this._updataTimer = 0, this.RefreshEnergy()
                }, t.prototype.RefreshEnergy = function() {
                    if (null != this._model.IntMap[l.PrePhycial] && this._model.IntMap[l.PrePhycial] > this._activityConfig.CustomPart.ActionPointMax) this._energyCount = this._model.IntMap[l.PrePhycial];
                    else {
                        var e = null != this._model.IntMap[l.PrePhycial] ? this._model.IntMap[l.PrePhycial] : 0,
                            t = Math.floor((y.RpcComponent.Instance.ServerTime - this._model.IntMap[l.RecoveryTime]) / g.Etc.SecondDuration / this._activityConfig.CustomPart.RecoveryTime);
                        t = Math.max(t, 0), this._energyCount = e + t, this._energyCount = Math.min(this._energyCount, this._activityConfig.CustomPart.ActionPointMax)
                    }
                    this.RecoveryTimeBg.active = this._energyCount < this._activityConfig.CustomPart.ActionPointMax, this.RecoveryTimeBg.active ? this._scheduleOpen || (this._scheduleOpen = !0, this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)) : (this.unschedule(this.SetDeadLine), this._scheduleOpen = !1), this.Physical.string = this._energyCount + "/" + this._activityConfig.CustomPart.ActionPointMax
                }, t.prototype.SetDeadLine = function() {
                    var e = this._activityConfig.CustomPart.ActionPointMax;
                    if (this._updataTimer <= 0) return this.Physical.string = "0/" + e, this.RecoveryTimeBg.active = !1, this.unschedule(this.SetDeadLine), void(this._scheduleOpen = !1);
                    if (this._energyCount < e) {
                        var t = Math.floor((y.RpcComponent.Instance.ServerTime - this._model.IntMap[l.RecoveryTime]) / g.Etc.SecondDuration % this._activityConfig.CustomPart.RecoveryTime);
                        t = Math.max(t, 0);
                        var n = this._activityConfig.CustomPart.RecoveryTime - t;
                        n == this._activityConfig.CustomPart.RecoveryTime && (this._model = h.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityConfig._id), this.RefreshEnergy()), this.RecoveryTimeLabel.string = (n * g.Etc.SecondDuration).FmtRemainTime()
                    } else this.unschedule(this.SetDeadLine), this._scheduleOpen = !1
                }, t.prototype.InitProgress = function() {
                    var e = this._model.IntMap[l.ToDayHightSocre];
                    e = e || 0;
                    for (var t = [], n = [], o = this._activityConfig.CustomPart.Reward, r = 0; r < o.length; r++) {
                        t.push(o[r].Items[0]);
                        var i = {
                            Items: [o[r].Items[1], o[r].Items[2]]
                        };
                        n.push(i)
                    }
                    this.FantasticPastureProgressRewardBar.Init({
                        Rewards: n,
                        RewardsProgres: t,
                        Progress: e,
                        GetCount: this._model.IntValue,
                        ItemPrefab: this._itemPrefab
                    })
                }, t.prototype.SetDayActivityTime = function() {
                    var e = this._activityConfig.CustomPart.Time;
                    if (e.length <= 1) this.DayActivityTime.node.active = !1;
                    else {
                        this.DayActivityTime.node.active = !0;
                        for (var t = "", n = "", o = 0; o < 2; o++) o < e[0].Items.length ? t += "" + (e[0].Items[o] >= 10 ? e[0].Items[o] : "0" + e[0].Items[o]) : t += "00", 1 != o && (t += ":");
                        for (o = 0; o < 2; o++) o < e[1].Items.length ? n += e[1].Items[o] : n += "00", 1 != o && (n += ":");
                        this.DayActivityTime.string = "" + "tradeWar_daily_activity_time".ToUILocale() + t + " - " + n
                    }
                }, t.prototype.RefreshDeadLine = function() {
                    var e = f.default.Instance.ComputeDeadTime(this._activityConfig.Common) - y.RpcComponent.Instance.ServerTime;
                    if (e < 0) {
                        var t = f.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - y.RpcComponent.Instance.ServerTime;
                        if (t < 0) return void u.UIManager.Instance.BackUIPanel();
                        this.LeftTimeRichText.string = "<outline color=#202434 width=3>" + "activity_show_end_time".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(t)) + "</outline>", this.ExhibitionStart()
                    } else this.LeftTimeRichText.string = "<outline color=#202434 width=3><color=#FFFFFF>" + "activityGetWayTime".ToUILocale().Fmt("<color=#6EEEA7>" + f.default.ActivityTimeLeftFormat(e) + "</color>") + "</color></outline>"
                }, t.prototype.ExhibitionStart = function() {
                    if (!this._isexhibitionStart && f.default.Instance.ComputeDeadTime(this._activityConfig.Common) - y.RpcComponent.Instance.ServerTime < 0) {
                        this._isexhibitionStart = !0, this.unscheduleAllCallbacks(), this.schedule(this.RefreshDeadLine, 1), this.ReStartLineData();
                        var e = this._activityConfig.CustomPart.ActionPointMax;
                        this.Physical.string = e + "/" + e, this.RecoveryTimeBg.active = !1, this.ActivityEndNode.active = !0, this.GiftBtn.node.active = !1, this.WarTokenBtn.node.active = !1
                    }
                }, t.prototype.InitProp = function() {
                    for (var e = this._activityConfig.__Item, t = 0; t < e.length; t++) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.PropParent), n.name = t.toString();
                        var o = n.getComponent(b.ItemComponent);
                        this._props.push(o), o.Init({
                            ItemId: e[t].Id,
                            Count: h.DataCenter.Instance.GetItemCount(e[t].Id)
                        })
                    }
                }, t.prototype.RefreshProp = function(e) {
                    var t = this._activityConfig.__Item[e].Id,
                        n = this._props[e],
                        o = h.DataCenter.Instance.GetItemCount(t);
                    n.Init({
                        ItemId: t,
                        Count: o
                    })
                }, t.prototype.InitHintLine = function() {
                    for (var e = 0; e < this.BoardWidth; e++) {
                        var t = this._hintNodes[e];
                        t || ((t = cc.instantiate(this.HintNode)).setParent(this.NextLineHint), this._hintNodes.push(t), t.y = 0)
                    }
                }, t.prototype.SetLineData = function(e, t) {
                    var n = this._lineContainerDatas[t];
                    n.ChessList = [];
                    for (var o = 0, r = 0; r < e.length; r++)
                        if (0 != e[r]) {
                            var i = this._chessPool.get();
                            i || (i = cc.instantiate(this.Chess));
                            var a = i.getComponent(S.default);
                            n.ChessList.push(a), i.setParent(n.LineNode), a.Init(this, o, e[r]), o = a.EndIndex + 1
                        } else o++
                }, t.prototype.InitChessBoard = function() {
                    for (var e = this.BoardHeight; e >= 0; e--) {
                        var t = cc.instantiate(this.LineContainer);
                        t.name = e.toString(), t.setParent(this.ChessBoard), t.active = !0;
                        var n = {
                            ChessList: [],
                            LineNode: cc.find("LineNode", t),
                            Effect: cc.find("Effect", t).getComponent(sp.Skeleton)
                        };
                        n.LineNode.name = e.toString(), this._lineContainerDatas.unshift(n)
                    }
                    for (e = 0; e < this._model.Int2DArray.length; e++) this.SetLineData(this._model.Int2DArray[e].Items, e)
                }, t.prototype.RefreshScore = function() {
                    this.NowScore.string = "<outline color=#202434 width=3><color=#FFFFFF>" + "FantasticPasture_nowScore".ToUILocale().Fmt("<color=#FED94A>" + this._nowScore + "</color>") + "</color></outline>"
                }, t.prototype.RefreshProgress = function() {
                    var e = this._model.IntMap[l.ToDayHightSocre];
                    e = e || 0, this.FantasticPastureProgressRewardBar.Refresh(this._model.IntValue, e)
                }, t.prototype.SetNextLineHint = function() {
                    var e = this._lineContainerDatas[0];
                    if (e.ChessList.length <= 0) this.NextLineHint.active = !1;
                    else {
                        this.NextLineHint.active = !0;
                        for (var t = 0; t < e.ChessList.length; t++) {
                            this._hintNodes[t].active = !0;
                            var n = e.ChessList[t];
                            this._hintNodes[t].width = (n.EndIndex - n.StartIndex + 1) * this.ChessWidth, this._hintNodes[t].x = n.StartIndex * this.ChessWidth
                        }
                        for (; t < this._hintNodes.length; t++) this._hintNodes[t].active = !1
                    }
                }, t.prototype.IsActivityTime = function() {
                    var e = y.RpcComponent.Instance.ServerTime,
                        t = !0;
                    return e < this._gameStartTime ? t = !1 : e > this._gameEndTime && (t = !1), t || (this.ComputeActivityTime(), t = !(e < this._gameStartTime || e > this._gameEndTime)), t
                }, t.prototype.OnTouchStart = function(e) {
                    var t = e.target;
                    this._moveBlock = t.getComponent(S.default), this._moveNodePostionX = this._moveBlock.StartIndex, this.WhiteHintNode.width = t.width, this.WhiteHintNode.x = t.x, this.WhiteHintNode.active = !0, this.SetShadowBlock(this._moveBlock)
                }, t.prototype.SetShadowBlock = function(e) {
                    var t = e.node.convertToWorldSpaceAR(cc.Vec3.ZERO),
                        n = this.ShadowBlock.node.parent.convertToNodeSpaceAR(t);
                    this.ShadowBlock.node.position = n, this.ShadowBlock.spriteFrame = this._atlas.getSpriteFrame(e.BgPath), this.ShadowBlock.node.active = !0
                }, t.prototype.OnTouchMove = function(e) {
                    var t = e.getDelta(),
                        n = this._moveBlock.node.x + t.x;
                    n = Math.max(n, this._moveBlock.MoveLeftLimit), n = Math.min(n, this._moveBlock.MoveRightLimit), this._moveBlock.node.x = n;
                    var o = Math.round(n / this.ChessWidth);
                    this.WhiteHintNode.x = this.ChessWidth * o
                }, t.prototype.OnTouchEnd = function() {
                    var e = this;
                    if (this.WhiteHintNode.active = !1, this.ShadowBlock.node.active = !1, this._effectType > 0 || this._energyCount <= 0 || !this.IsActivityTime()) return this._energyCount <= 0 ? _.UIUtlity.ShowFloatingHint("activity2048_energy_not_enough".ToUILocale()) : this.IsActivityTime() || _.UIUtlity.ShowFloatingHint("FantasticPasture_timeError".ToUILocale()), void(this._moveBlock.node.x = this.ChessWidth * this._moveNodePostionX);
                    var t = this._moveBlock,
                        n = parseInt(t.node.parent.name),
                        o = this.GetColumn(this._lineContainerDatas[n].ChessList, t);
                    if (this._moveBlock.node.x = this.WhiteHintNode.x, this._moveBlock.SetPositionIndex(Math.round(this.WhiteHintNode.x / this.ChessWidth)), this.WhiteHintNode.active = !1, this.ShadowBlock.node.active = !1, t.StartIndex != this._moveNodePostionX) {
                        var r = p.Req_Activity_FantasticPastureMove.create();
                        r.ActivityId = this._activityId, r.TargetIndex = o, r.TargetLine = n, r.Target = t.StartIndex - this._moveNodePostionX, this.MoveMask.active = !0, y.RpcComponent.Instance.Call(r, function(n) {
                            return a(e, void 0, void 0, function() {
                                return s(this, function(e) {
                                    switch (e.label) {
                                        case 0:
                                            return n.Gameover ? (t.node.x = this._moveNodePostionX * this.ChessWidth, t.SetPositionIndex(this._moveNodePostionX), this.ShowGameOverPanel(), this.MoveMask.active = !1, [2]) : (this._model = h.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), this.RefreshEnergy(), [4, this.BLockStateChange(n)]);
                                        case 1:
                                            return e.sent(), [2]
                                    }
                                })
                            })
                        }, function() {
                            e._needRefresh = !0, e.MoveMask.active = !1
                        })
                    }
                }, t.prototype.ShowGameOverPanel = function() {
                    _.UIUtlity.ShowHintPanel(null, "FantasticPasture_overHint".ToUILocale(), "FantasticPasture_useItem".ToUILocale(), null, "battle_control_restart".ToUILocale(), this.HintCallBack.bind(this))
                }, t.prototype.HintCallBack = function() {
                    u.UIManager.Instance.ShowUIPanel(C.PanelConfig.FantasticPastureBillingPanel.Path, this._activityId, this.GameReStart.bind(this))
                }, t.prototype.GetColumn = function(e, t) {
                    for (var n = 0, o = e.indexOf(t), r = 0; r <= o; r++) n += 0 == r ? e[r].StartIndex : e[r].StartIndex - e[r - 1].EndIndex - 1, n++;
                    return n - 1
                }, t.prototype.GameReStart = function() {
                    var e = this,
                        t = p.Req_Activity_FantasticPastureReStart.create();
                    t.ActivityId = this._activityId, y.RpcComponent.Instance.Call(t, function() {
                        return a(e, void 0, void 0, function() {
                            var e, t;
                            return s(this, function() {
                                if (this._model = h.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), !this._model) return u.UIManager.Instance.BackUIPanel(), [2];
                                for (this._nowScore = null !== (t = this._model.IntMap[l.NowScore]) && void 0 !== t ? t : 0, this.RefreshScore(), this.RefreshProgress(), this.ReStartLineData(), e = 0; e < this._model.Int2DArray.length; e++) this.SetLineData(this._model.Int2DArray[e].Items, e);
                                return this.SetNextLineHint(), [2]
                            })
                        })
                    }, function() {
                        e._needRefresh = !0
                    })
                }, t.prototype.BLockStateChange = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._activeStateIndex = 0, this._activeDatas = e, this._continuityCount = 0, [2]
                        })
                    })
                }, t.prototype.ScoreOrCoiledEliminateShow = function(e, t, n) {
                    if (void 0 === n && (n = !0), !(t <= 0)) {
                        if (!e) {
                            var o = cc.instantiate(this._coiledEliminatePrefab);
                            n ? (o.setParent(this.CoiledEliminateParent), this._coiledEliminate = o.getComponent(P.default), e = this._coiledEliminate) : (o.setParent(this.AddScoreParent), this._scoreShow = o.getComponent(P.default), e = this._scoreShow)
                        }
                        e.Init(t, this._atlas, n), cc.Tween.stopAllByTarget(e.node), e.node.scale = 0, e.node.opacity = 255, e.node.x = 0, cc.tween(e.node).to(.5, {
                            scale: 1
                        }).delay(.2).to(.3, {
                            x: 300,
                            opacity: 0
                        }).start()
                    }
                }, t.prototype.BlocksDownMove = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l, c, u = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    for (t = [], n = [], o = 0; o < e.Items.length; o += 3)
                                        if (r = e.Items[o], i = e.Items[o + 1], a = e.Items[o + 2], (l = r - a) > 0) {
                                            if (!(c = this.GetBlock(r, i, !0))) continue;
                                            t.push(this.BlockDown(c, a, l)), -1 == n.indexOf(l) && n.push(l)
                                        } return [4, Promise.all(t).then(function() {
                                        if (u.isValid) {
                                            for (var e = 0; e < n.length; e++) u._lineContainerDatas[n[e]].ChessList.sort(function(e, t) {
                                                return e.StartIndex - t.StartIndex
                                            });
                                            u._activeStateIndex++
                                        }
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.GetBlock = function(e, t, n) {
                    void 0 === n && (n = !1);
                    for (var o, r = this._lineContainerDatas[e], i = 0; i < r.ChessList.length; i++)
                        if (r.ChessList[i].StartIndex == t) return o = r.ChessList[i], n && r.ChessList.splice(i, 1), o;
                    return null
                }, t.prototype.BlockDown = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return [4, new Promise(function(r) {
                                        return a(o, void 0, void 0, function() {
                                            var o = this;
                                            return s(this, function() {
                                                return cc.tween(e.node).to(this.DownTime, {
                                                    y: -this.ChessWidth * t
                                                }).call(function() {
                                                    e.node.setParent(o._lineContainerDatas[n].LineNode), e.node.y = 0, o._lineContainerDatas[n].ChessList.push(e), r(null)
                                                }).start(), [2]
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, r.sent()]
                            }
                        })
                    })
                }, t.prototype.EliminateLine = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, l, c, u = this;
                        return s(this, function(p) {
                            switch (p.label) {
                                case 0:
                                    for (t = [], n = [], o = [], c = 2 * e.Items[2] + 3; c < e.Items.length; c += 2) r = e.Items[c], i = e.Items[c + 1], (l = this.GetBlock(r, i, !0)) && t.push(l);
                                    for (c = 3; c < 2 * e.Items[2] + 3; c += 2) 1 == e.Items[c + 1] && o.push(this.EliminateLineEffect(e.Items[c])), n.push(e.Items[c]);
                                    return [4, Promise.all(o).then(function() {
                                        return a(u, void 0, void 0, function() {
                                            var o, r, i, a = this;
                                            return s(this, function(s) {
                                                switch (s.label) {
                                                    case 0:
                                                        if (!this.isValid) return [2];
                                                        for (o = [], r = 0; r < t.length; r++) i = t[r], o.push(this.EiminateStartExplode(i));
                                                        return [4, Promise.all(o).then(function() {
                                                            if (a.isValid)
                                                                for (var e = 0; e < t.length; e++) a._chessPool.put(t[e].node)
                                                        })];
                                                    case 1:
                                                        return s.sent(), [4, this.DealAfterEliminateLine(e, n)];
                                                    case 2:
                                                        return s.sent(), this.isValid ? (this._activeStateIndex++, [2]) : [2]
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return p.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DealAfterEliminateLine = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a, l, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    for (n = e.Items[0] + e.Items[1], this._nowScore += n, this.RefreshScore(), this.ScoreOrCoiledEliminateShow(this._scoreShow, n, !1), this._continuityCount += e.Items[2], this._continuityCount >= 2 && this.ScoreOrCoiledEliminateShow(this._coiledEliminate, this._continuityCount, !0), o = [], r = 0, i = [], a = 1; a <= this.BoardHeight; a++)
                                        if (-1 == t.indexOf(a)) {
                                            if (0 == this._lineContainerDatas[a].ChessList.length) break;
                                            r > 0 && (l = this.DownAllLine(a, r), o.push.apply(o, l), -1 == i.indexOf(a - r) && i.push(a - r))
                                        } else r++;
                                    return [4, Promise.all(o)];
                                case 1:
                                    if (s.sent(), !this.isValid) return [2];
                                    for (c = 0; c < i.length; c++) this._lineContainerDatas[i[c]].ChessList.sort(function(e, t) {
                                        return e.StartIndex - t.StartIndex
                                    });
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.EliminateLineEffect = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, new Promise(function(n) {
                                        return a(t, void 0, void 0, function() {
                                            var t, o, r, i = this;
                                            return s(this, function(l) {
                                                switch (l.label) {
                                                    case 0:
                                                        return t = this._lineContainerDatas[e], [4, this.GetEffectByKey(c.Clear)];
                                                    case 1:
                                                        return o = l.sent(), this.isValid ? (t.Effect.skeletonData = o, t.Effect.skeletonData && t.Effect.setAnimation(0, "Ani_UI_Effect_xiaochu2", !1), r = [], this.scheduleOnce(function() {
                                                            return a(i, void 0, void 0, function() {
                                                                var e, o = this;
                                                                return s(this, function(i) {
                                                                    switch (i.label) {
                                                                        case 0:
                                                                            for (e = 0; e < t.ChessList.length; e++) r.push(t.ChessList[e].Expload());
                                                                            return [4, Promise.all(r).then(function() {
                                                                                o.isValid && o.scheduleOnce(function() {
                                                                                    for (var e = 0; e < t.ChessList.length; e++) t.ChessList[e].SetExplodeNull(), t.ChessList[e].node.parent = null, o._chessPool.put(t.ChessList[e].node);
                                                                                    t.ChessList = [], t.Effect.skeletonData = null, n(null)
                                                                                }, .866)
                                                                            })];
                                                                        case 1:
                                                                            return i.sent(), [2]
                                                                    }
                                                                })
                                                            })
                                                        }, .233), [2]) : (o && u.AssetsManager.Instance.UnloadAsset(o), [2])
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, n.sent()]
                            }
                        })
                    })
                }, t.prototype.EiminateStartExplode = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, new Promise(function(n) {
                                        return a(t, void 0, void 0, function() {
                                            var t = this;
                                            return s(this, function() {
                                                return this.scheduleOnce(function() {
                                                    return a(t, void 0, void 0, function() {
                                                        return s(this, function(t) {
                                                            switch (t.label) {
                                                                case 0:
                                                                    return [4, e.Expload()];
                                                                case 1:
                                                                    return t.sent(), this.isValid ? (this.scheduleOnce(function() {
                                                                        e.SetExplodeNull(), n(null)
                                                                    }, .233), [2]) : [2]
                                                            }
                                                        })
                                                    })
                                                }, .266), [2]
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, n.sent()]
                            }
                        })
                    })
                }, t.prototype.DownAllLine = function(e, t) {
                    var n = this._lineContainerDatas[e],
                        o = e - t;
                    if (!(o <= 0)) {
                        for (var r = [], i = 0; i < n.ChessList.length; i++) r.push(this.BlockDown(n.ChessList[i], t, o));
                        return n.ChessList = [], r
                    }
                }, t.prototype.AddLine = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    for (t = [], n = this.BoardHeight - 1; n >= 0; n--)
                                        for (o = this._lineContainerDatas[n], r = 0; r < o.ChessList.length; r++) t.push(this.UpLinePromise(this._lineContainerDatas[n + 1], o.ChessList[r]));
                                    return [4, Promise.all(t).then(function() {
                                        if (i.isValid) {
                                            for (var t = i.BoardHeight; t >= 1; t--) i._lineContainerDatas[t].ChessList = i._lineContainerDatas[t - 1].ChessList;
                                            i.SetLineData(e.Items, 0), i.SetNextLineHint(), i._activeStateIndex++
                                        }
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.UpLinePromise = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, new Promise(function(o) {
                                        cc.tween(t.node).by(n.UpTime, {
                                            y: n.ChessWidth
                                        }).call(function() {
                                            t.node.setParent(e.LineNode), t.node.y = 0, o(null)
                                        }).start()
                                    })];
                                case 1:
                                    return [2, o.sent()]
                            }
                        })
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    if (this.IsProp(t))
                        if (this.IsActivityTime()) {
                            var n = this._activityConfig.__Item[e].Id,
                                o = this._activityConfig.__Item[e].Effect,
                                r = this._model.IntArray[e];
                            if (this._activityConfig.__Item[e].MaxUseTimes - r <= 0) _.UIUtlity.ShowFloatingHint("FantasticPasture_useLimit".ToUILocale().Fmt(n.ToItemName()));
                            else if (h.DataCenter.Instance.IsItemEnough(n, 1)) {
                                var i = this._activityConfig.__Item[e].MaxUseTimes,
                                    a = !0;
                                switch (o) {
                                    case v.FantasticPastureItemEffect.Decompose:
                                    case v.FantasticPastureItemEffect.DecomposeAll:
                                    case v.FantasticPastureItemEffect.Convert:
                                        a = !0;
                                        break;
                                    case v.FantasticPastureItemEffect.Recover:
                                        a = !1
                                }
                                this._clickType = o, u.UIManager.Instance.ShowUIPanel(C.PanelConfig.FantasticPastureUseItemPanel.Path, {
                                    ItemId: n,
                                    Info: "FantasticPasture_canUseCount".ToUILocale().Fmt(i - r, i),
                                    DefaultUseCount: 1,
                                    MaxUseCount: i - r,
                                    CallBack: this.UseCallBack.bind(this),
                                    IsHindSilder: a
                                })
                            } else _.UIUtlity.ShowFloatingHint("ChaosSummon_TicketNotEngough".ToUILocale().Fmt(n.ToItemName()))
                        } else _.UIUtlity.ShowFloatingHint("FantasticPasture_timeError".ToUILocale())
                }, t.prototype.IsProp = function(e) {
                    for (var t = 0; t < this._props.length; t++)
                        if (e == this._props[t].node) return !0;
                    return !1
                }, t.prototype.UseCallBack = function(e) {
                    var t = this;
                    if (void 0 === e && (e = 1), this.IsActivityTime()) switch (this._effectType = this._clickType, this._effectType) {
                        case v.FantasticPastureItemEffect.Decompose:
                        case v.FantasticPastureItemEffect.Convert:
                            this.PropMask.active = !0;
                            break;
                        case v.FantasticPastureItemEffect.Recover:
                            this.UseSpecialProp3Efect(e);
                            break;
                        case v.FantasticPastureItemEffect.DecomposeAll:
                            if (!this.IsHaveKeyLengthBlock(3)) return _.UIUtlity.ShowFloatingHint("fantasticPasture_blockEnoughLenght".ToUILocale()), void(this._effectType = 0);
                            this.PropMask.active = !0, this._propUseing = !0;
                            var n = this._propEffectMap[this._effectType].Id,
                                o = p.Req_Activity_FantasticPastureUseItem.create();
                            o.ActivityId = this._activityId, o.ItemId = n, o.Count = 1, y.RpcComponent.Instance.Call(o, function(e) {
                                return a(t, void 0, void 0, function() {
                                    return s(this, function(t) {
                                        switch (t.label) {
                                            case 0:
                                                return [4, this.SpecialProp2Efect(e.EffectItem)];
                                            case 1:
                                                return t.sent(), this._effectType = 0, [4, this.BLockStateChange(e)];
                                            case 2:
                                                return t.sent(), this.PropMask.active = !1, this.MoveMask.active = !1, this._propUseing = !1, [2]
                                        }
                                    })
                                })
                            }, function() {
                                t._needRefresh = !0, t.PropMask.active = !1, t.MoveMask.active = !1, t._propUseing = !1
                            })
                    } else _.UIUtlity.ShowFloatingHint("FantasticPasture_timeError".ToUILocale())
                }, t.prototype.IsHaveKeyLengthBlock = function(e) {
                    for (var t = 1; t < this._lineContainerDatas.length; t++)
                        for (var n = 0; n < this._lineContainerDatas[t].ChessList.length; n++) {
                            var o = this._lineContainerDatas[t].ChessList[n];
                            if (o.EndIndex - o.StartIndex + 1 >= e) return !0
                        }
                    return !1
                }, t.prototype.OnClickBlock = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function() {
                            if (!this.IsActivityTime()) return _.UIUtlity.ShowFloatingHint("FantasticPasture_timeError".ToUILocale()), this._effectType = 0, this.PropMask.active = !1, [2];
                            if (0 == this._effectType || this._effectType == v.FantasticPastureItemEffect.Recover || this._effectType == v.FantasticPastureItemEffect.DecomposeAll) return this.PropMask.active = !1, [2];
                            if ((t = e.node.getComponent(S.default)).SpecialType && t.SpecialType > 0) return _.UIUtlity.ShowFloatingHint("FantasticPasture_propConvertSpecial".ToUILocale()), [2];
                            switch (this._propUseing = !0, n = this._propEffectMap[this._effectType].Id, o = parseInt(t.node.parent.name), (r = p.Req_Activity_FantasticPastureUseItem.create()).ActivityId = this._activityId, r.ItemId = n, r.Count = 1, r.LineId = o, r.Target = this.GetColumn(this._lineContainerDatas[o].ChessList, t), this._effectType) {
                                case v.FantasticPastureItemEffect.Decompose:
                                    if (t.EndIndex - t.StartIndex + 1 <= 1) return this._propUseing = !1, _.UIUtlity.ShowFloatingHint("FantasticPasture_propConvertOne".ToUILocale()), [2];
                                    this.MoveMask.active = !0, y.RpcComponent.Instance.Call(r, function(e) {
                                        return a(i, void 0, void 0, function() {
                                            return s(this, function(n) {
                                                switch (n.label) {
                                                    case 0:
                                                        return [4, this.SpecialProp1Efect(t)];
                                                    case 1:
                                                        return n.sent(), this._effectType = 0, [4, this.BLockStateChange(e)];
                                                    case 2:
                                                        return n.sent(), this.PropMask.active = !1, this.MoveMask.active = !1, this._propUseing = !1, [2]
                                                }
                                            })
                                        })
                                    }, function() {
                                        i._needRefresh = !0, i.PropMask.active = !1, i.MoveMask.active = !1, i._propUseing = !1
                                    });
                                    break;
                                case v.FantasticPastureItemEffect.Convert:
                                    this.MoveMask.active = !0, y.RpcComponent.Instance.Call(r, function(e) {
                                        return a(i, void 0, void 0, function() {
                                            return s(this, function(n) {
                                                switch (n.label) {
                                                    case 0:
                                                        return [4, this.SpecialProp4Efect(t, e.EffectItem)];
                                                    case 1:
                                                        return n.sent(), this._effectType = 0, e.ConvertPoint && e.ConvertPoint > 0 && this.ScoreOrCoiledEliminateShow(this._scoreShow, e.ConvertPoint, !1), this._nowScore += e.ConvertPoint, this.RefreshScore(), [4, this.BLockStateChange(e)];
                                                    case 2:
                                                        return n.sent(), this.PropMask.active = !1, this.MoveMask.active = !1, this._propUseing = !1, [2]
                                                }
                                            })
                                        })
                                    }, function() {
                                        i._needRefresh = !0, i._effectType = 0, i.PropMask.active = !1, i.MoveMask.active = !1, i._propUseing = !1
                                    })
                            }
                            return [2]
                        })
                    })
                }, t.prototype.SpecialProp1Efect = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, new Promise(function(n) {
                                        return a(t, void 0, void 0, function() {
                                            var t, o, r, i, l, c, u, p, d, h, f, y = this;
                                            return s(this, function(g) {
                                                switch (g.label) {
                                                    case 0:
                                                        return e.PlayPickaxes(), [4, e.OnWhite()];
                                                    case 1:
                                                        if (g.sent(), t = parseInt(e.node.parent.name), o = this._lineContainerDatas[t], r = o.ChessList.indexOf(e), i = e.EndIndex - e.StartIndex + 1, l = e.StartIndex, c = [], u = [], i > 1)
                                                            for (p = this._chessColorMap[e.Color][1], e.Init(this, l, p), c.push(e.OffWhite()), u.push(e), d = 0; d < i - 1; d++)(h = this._chessPool.get()) || (h = cc.instantiate(this.Chess)), h.setParent(o.LineNode), f = h.getComponent(S.default), l++, f.Init(this, l, p, !0), o.ChessList.splice(r + 1, 0, f), c.push(f.OffWhite()), u.push(f), r++;
                                                        return [4, Promise.all(c).then(function() {
                                                            return a(y, void 0, void 0, function() {
                                                                var e, t;
                                                                return s(this, function(o) {
                                                                    switch (o.label) {
                                                                        case 0:
                                                                            for (e = [], t = 0; t < u.length; t++) e.push(u[t].PlayFlashing());
                                                                            return [4, Promise.all(e).then(function() {
                                                                                n(null)
                                                                            })];
                                                                        case 1:
                                                                            return o.sent(), [2]
                                                                    }
                                                                })
                                                            })
                                                        })];
                                                    case 2:
                                                        return g.sent(), [2]
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, n.sent()]
                            }
                        })
                    })
                }, t.prototype.SpecialProp2Efect = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, new Promise(function(n) {
                                        return a(t, void 0, void 0, function() {
                                            var t, o, r, i, l, p, d, h = this;
                                            return s(this, function(f) {
                                                switch (f.label) {
                                                    case 0:
                                                        return [4, this.GetEffectByKey(c.Hammer)];
                                                    case 1:
                                                        if (t = f.sent(), !this.isValid) return t && u.AssetsManager.Instance.UnloadAsset(t), [2];
                                                        for (o = [], r = [], i = 0; i < e.length; i += 2) l = e[i], p = e[i + 1], d = this.GetBlock(l, p), -1 == r.indexOf(l) && r.push(l), o.push(this.SpecialProp2BlockEffect(d, l));
                                                        return this.Effect.skeletonData = t, this.Effect.skeletonData && this.Effect.setAnimation(0, this.Effect.skeletonData.getRuntimeData().animations[0].name, !1), [4, Promise.all(o).then(function() {
                                                            return a(h, void 0, void 0, function() {
                                                                var e, t, o, i, a;
                                                                return s(this, function(s) {
                                                                    switch (s.label) {
                                                                        case 0:
                                                                            for (this.isValid || n(null), o = 0; o < r.length; o++) this._lineContainerDatas[r[o]].ChessList.sort(function(e, t) {
                                                                                return e.StartIndex - t.StartIndex
                                                                            });
                                                                            for (e = [], o = 1; o < this._lineContainerDatas.length; o++)
                                                                                for (i = this._lineContainerDatas[o], a = 0; a < i.ChessList.length; a++) e.push(i.ChessList[a].OffWhite());
                                                                            return [4, Promise.all(e)];
                                                                        case 1:
                                                                            for (s.sent(), this.isValid || n(null), t = [], o = 1; o < this._lineContainerDatas.length; o++)
                                                                                for (i = this._lineContainerDatas[o], a = 0; a < i.ChessList.length; a++) t.push(i.ChessList[a].PlayFlashing());
                                                                            return [4, Promise.all(t).then(function() {
                                                                                n(null)
                                                                            })];
                                                                        case 2:
                                                                            return s.sent(), [2]
                                                                    }
                                                                })
                                                            })
                                                        })];
                                                    case 2:
                                                        return f.sent(), [2]
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, n.sent()]
                            }
                        })
                    })
                }, t.prototype.SpecialProp2BlockEffect = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, new Promise(function(o) {
                                        return a(n, void 0, void 0, function() {
                                            var n, r, i, a, l, c, u;
                                            return s(this, function(s) {
                                                switch (s.label) {
                                                    case 0:
                                                        return n = e.EndIndex - e.StartIndex + 1, r = e.StartIndex, i = this._lineContainerDatas[t], [4, e.OnWhite()];
                                                    case 1:
                                                        if (s.sent(), this.isValid || o(null), n <= 2) o(null);
                                                        else if (3 == n) {
                                                            for (l = this._chessColorMap[e.Color][1], e.Init(this, r, l), a = 0; a < n - 1; a++)(c = this._chessPool.get()) || (c = cc.instantiate(this.Chess)), u = c.getComponent(S.default), c.setParent(i.LineNode), r++, u.Init(this, r, l, !0), i.ChessList.push(u);
                                                            o(null)
                                                        } else l = this._chessColorMap[e.Color][2], e.Init(this, r, l), (c = this._chessPool.get()) || (c = cc.instantiate(this.Chess)), u = c.getComponent(S.default), c.setParent(i.LineNode), u.Init(this, r + 2, l, !0), i.ChessList.push(u), o(null);
                                                        return [2]
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, o.sent()]
                            }
                        })
                    })
                }, t.prototype.UseSpecialProp3Efect = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function() {
                            return this.IsActivityTime() ? (t = this._activityConfig.__Item[v.FantasticPastureItemEffect.Recover - 1].Id, n = this._activityConfig.CustomPart.RecoveryNum * e, (o = p.Req_Activity_FantasticPastureUseItem.create()).ActivityId = this._activityId, o.ItemId = t, o.Count = e, this._energyCount + n > this._activityConfig.CustomPart.ActionPointMax ? _.UIUtlity.ShowHintPanel("".ToUILocale(), "FantasticPasture_physicalLimit".ToUILocale(), "", function() {
                                r._effectType = 0
                            }, "", function() {
                                return a(r, void 0, void 0, function() {
                                    var n = this;
                                    return s(this, function() {
                                        return this.IsActivityTime() ? (y.RpcComponent.Instance.Call(o, function() {
                                            _.UIUtlity.ShowFloatingHint("fantasticPasture_sucessUse".ToUILocale().Fmt(e, t.ToItemName())), n._effectType = 0, n._model = h.DataCenter.Instance.GetDataById(p.UserActivity_Model, n._activityId), n.RefreshEnergy()
                                        }, function() {
                                            n._needRefresh = !0
                                        }), [2]) : (_.UIUtlity.ShowFloatingHint("FantasticPasture_timeError".ToUILocale()), this._effectType = 0, this.PropMask.active = !1, [2])
                                    })
                                })
                            }) : y.RpcComponent.Instance.Call(o, function() {
                                _.UIUtlity.ShowFloatingHint("fantasticPasture_sucessUse".ToUILocale().Fmt(e, t.ToItemName())), r._effectType = 0, r._model = h.DataCenter.Instance.GetDataById(p.UserActivity_Model, r._activityId), r.RefreshEnergy()
                            }, function() {
                                r._needRefresh = !0
                            }), [2]) : (_.UIUtlity.ShowFloatingHint("FantasticPasture_timeError".ToUILocale()), this._effectType = 0, this.PropMask.active = !1, [2])
                        })
                    })
                }, t.prototype.SpecialProp4Efect = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, new Promise(function(o) {
                                        return a(n, void 0, void 0, function() {
                                            var n, r, i, a, l, c, u, p, d, h = this;
                                            return s(this, function(s) {
                                                switch (s.label) {
                                                    case 0:
                                                        return [4, this.PlayAxe(e)];
                                                    case 1:
                                                        for (s.sent(), e.PlayAxe(), n = [], r = [], i = 0, a = 0; a < t.length; a += 2) l = t[a], c = t[a + 1], u = this.GetBlock(l, c, !0), r.push(u), e != u && ((p = this._splinters[i]) || ((d = cc.instantiate(this.Splinter)).setParent(this.SplinterParent), p = d.getComponent(sp.Skeleton), this._splinters.push(p)), n.push(this.splinterMove(e, u, p)), i++);
                                                        return [4, Promise.all(n).then(function() {
                                                            h.isValid || o(null);
                                                            for (var e = 0; e < r.length; e++) r[e].node.parent = null, h._chessPool.put(r[e].node);
                                                            o(null)
                                                        })];
                                                    case 2:
                                                        return s.sent(), [2]
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, o.sent()]
                            }
                        })
                    })
                }, t.prototype.PlayAxe = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, new Promise(function(n) {
                                        return a(t, void 0, void 0, function() {
                                            var t, o, r, i, a = this;
                                            return s(this, function(s) {
                                                switch (s.label) {
                                                    case 0:
                                                        return t = this._blockWidths[e.EndIndex - e.StartIndex], o = e.node.convertToWorldSpaceAR(cc.v2(t / 2, 0)), r = this.SplinterParent.convertToNodeSpaceAR(o), this.AxeEffect.node.x = r.x, this.AxeEffect.node.y = r.y, [4, this.GetEffectByKey(c.Axe)];
                                                    case 1:
                                                        return i = s.sent(), this.isValid ? (this.AxeEffect.skeletonData = i, this.AxeEffect.skeletonData && this.AxeEffect.setAnimation(0, "Ani_UI_Effect_fuzi", !1), this.scheduleOnce(function() {
                                                            a.AxeEffect.skeletonData = null, n(null)
                                                        }, .233), [2]) : (n(null), [2])
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, n.sent()]
                            }
                        })
                    })
                }, t.prototype.splinterMove = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return [4, new Promise(function(r) {
                                        return a(o, void 0, void 0, function() {
                                            var o, i, l, p, d, h, f, y, g, m, I, _, C = this;
                                            return s(this, function(v) {
                                                switch (v.label) {
                                                    case 0:
                                                        switch (n.node.active = !0, e.Color) {
                                                            case "1":
                                                                return [3, 1];
                                                            case "2":
                                                                return [3, 3];
                                                            case "3":
                                                                return [3, 5]
                                                        }
                                                        return [3, 7];
                                                    case 1:
                                                        return [4, this.GetEffectByKey(c.SplinterRed)];
                                                    case 2:
                                                        return o = v.sent(), [3, 7];
                                                    case 3:
                                                        return [4, this.GetEffectByKey(c.SplinterGreen)];
                                                    case 4:
                                                        return o = v.sent(), [3, 7];
                                                    case 5:
                                                        return [4, this.GetEffectByKey(c.SplinterPurple)];
                                                    case 6:
                                                        return o = v.sent(), [3, 7];
                                                    case 7:
                                                        return this.isValid ? (n.skeletonData = o, i = e.EndIndex - e.StartIndex + 1, l = e.node.convertToWorldSpaceAR(cc.v2(0, 0)), p = this.SplinterParent.convertToNodeSpaceAR(l), d = i / 2 * 104, p.x += d, h = t.EndIndex - t.StartIndex + 1, f = t.node.convertToWorldSpaceAR(cc.v2(0, 0)), y = h / 2 * 104, (g = this.SplinterParent.convertToNodeSpaceAR(f)).x += y, m = g.sub(p), I = m.signAngle(cc.v2(0, -1)), _ = I / Math.PI * 180, n.node.rotation = _, this.scheduleOnce(function() {
                                                            cc.Tween.stopAllByTarget(n.node), n.node.active = !0, n.node.x = p.x, n.node.y = p.y, n.skeletonData && n.setAnimation(0, n.skeletonData.getRuntimeData().animations[0].name, !0), cc.tween(n.node).to(.4, {
                                                                x: g.x,
                                                                y: g.y
                                                            }).call(function() {
                                                                return a(C, void 0, void 0, function() {
                                                                    return s(this, function(e) {
                                                                        switch (e.label) {
                                                                            case 0:
                                                                                return n.skeletonData = null, n.node.active = !1, [4, t.PlayDiffusion()];
                                                                            case 1:
                                                                                return e.sent(), r(null), [2]
                                                                        }
                                                                    })
                                                                })
                                                            }).start()
                                                        }, .233), [2]) : (o && u.AssetsManager.Instance.UnloadAsset(o), [2])
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, r.sent()]
                            }
                        })
                    })
                }, t.prototype.OnRule = function() {
                    var e = {
                        name: "FantasticPasture_ruleTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["FantasticPasture_ruleContent".ToUILocale()]
                    };
                    _.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnRankBtn = function() {
                    var e = this,
                        t = new p.Req_Activity_GetRank;
                    t.ActivityId = this._activityId, y.RpcComponent.Instance.Call(t, function(t) {
                        var n = {};
                        n.ActivityId = e._activityId, n.Title = "bossWar_rank_name".ToUILocale().Fmt(e._activityConfig.Common.Title), n.RankDatas = [t], u.UIManager.Instance.ShowUIPanel(C.PanelConfig.CommonActivityRankPanel.Path, n)
                    }, function() {
                        e._needRefresh = !0
                    })
                }, t.prototype.OnRewardBtn = function() {
                    var e = {},
                        t = [];
                    this._activityConfig._RankRewards.forEach(function(e) {
                        var n = {};
                        n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                    }), e.Data = t, e.IsNotShowMyRank = !0, u.UIManager.Instance.ShowUIPanel(C.PanelConfig.CommonRankRewardPanel.Path, e)
                }, t.prototype.OnGiftBtn = function() {
                    var e = this._activityConfig.Common.ShowImage.split("|"),
                        t = {
                            ActivityId: this._activityId,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: f.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[0],
                            Title: "FantasticPasture_giftTitle".ToUILocale()
                        };
                    u.UIManager.Instance.ShowUIPanel(C.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnWarTokenBtn = function() {
                    if (this._activityConfig.Common.JumpId) {
                        var e = I.ConfigDataComponent.Instance.GetConfigById(m.ItemGetWay_Config, this._activityConfig.Common.JumpId);
                        if (e && e.PanelInfo[1]) {
                            var t = f.default.Instance.GetActivityIdByActivityTypeAndJumpIndex(v.ActivityType.WarToken, e.PanelInfo[1]);
                            t > 0 && u.UIManager.Instance.ShowUIPanel(C.PanelConfig.WarTokenListPanel.Path, !0, t)
                        }
                    }
                }, t.prototype.OnQuitProp = function() {
                    this._propUseing || (this._effectType = 0, this.PropMask.active = !1)
                }, t.prototype.OnBackBtn = function() {
                    this._chessPool.clear(), this._coiledEliminatePool.clear(), u.UIManager.Instance.BackUIPanel()
                }, i([k(cc.Label)], t.prototype, "Title", void 0), i([k(A.default)], t.prototype, "FantasticPastureProgressRewardBar", void 0), i([k(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([k(cc.Label)], t.prototype, "DayActivityTime", void 0), i([k(cc.Label)], t.prototype, "ResetHint", void 0), i([k(cc.RichText)], t.prototype, "NowScore", void 0), i([k(cc.Node)], t.prototype, "ChessBoard", void 0), i([k(cc.Node)], t.prototype, "LineContainer", void 0), i([k(cc.Node)], t.prototype, "Chess", void 0), i([k(cc.Node)], t.prototype, "RecoveryTimeBg", void 0), i([k(cc.Label)], t.prototype, "RecoveryTimeLabel", void 0), i([k(cc.Label)], t.prototype, "PhysicalName", void 0), i([k(cc.Label)], t.prototype, "Physical", void 0), i([k(cc.Node)], t.prototype, "WhiteHintNode", void 0), i([k(cc.Node)], t.prototype, "MoveMask", void 0), i([k(cc.Node)], t.prototype, "PropParent", void 0), i([k(cc.Label)], t.prototype, "PropTitle", void 0), i([k(cc.Button)], t.prototype, "RankBtn", void 0), i([k(cc.Label)], t.prototype, "RankBtnLabel", void 0), i([k(cc.Button)], t.prototype, "RewardBtn", void 0), i([k(cc.Label)], t.prototype, "RewardBtnLabel", void 0), i([k(cc.Button)], t.prototype, "GiftBtn", void 0), i([k(cc.Label)], t.prototype, "GiftBtnLabel", void 0), i([k(cc.Button)], t.prototype, "WarTokenBtn", void 0), i([k(cc.Label)], t.prototype, "WarTokenBtnLabel", void 0), i([k(cc.Button)], t.prototype, "BackBtn", void 0), i([k(cc.Node)], t.prototype, "NextLineHint", void 0), i([k(cc.Node)], t.prototype, "HintNode", void 0), i([k(cc.Node)], t.prototype, "CoiledEliminateParent", void 0), i([k(cc.Node)], t.prototype, "AddScoreParent", void 0), i([k(cc.Node)], t.prototype, "PropMask", void 0), i([k(sp.Skeleton)], t.prototype, "Effect", void 0), i([k(cc.Node)], t.prototype, "SplinterParent", void 0), i([k(cc.Node)], t.prototype, "Splinter", void 0), i([k(cc.Label)], t.prototype, "QuitHint", void 0), i([k(cc.Node)], t.prototype, "QuitProp", void 0), i([k(cc.Button)], t.prototype, "RuleBtn", void 0), i([k(cc.Sprite)], t.prototype, "ShadowBlock", void 0), i([k(cc.Node)], t.prototype, "ActivityEndNode", void 0), i([k(cc.Label)], t.prototype, "ActivityEndLabel", void 0), i([k(sp.Skeleton)], t.prototype, "AxeEffect", void 0), i([L], t)
            }(u.BaseUIFullScreenPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CoiledEliminateItem": "CoiledEliminateItem",
        "./FantasticPastureBlockItem": "FantasticPastureBlockItem",
        "./FantasticPastureProgressRewardBar": "FantasticPastureProgressRewardBar"
    }],
    FantasticPastureProgressRewardBar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "268e14Ub31Az7rFaN5NMjFr", "FantasticPastureProgressRewardBar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/CustomProgressBar"),
            s = e("./FantasticPastureProgressRewardItem"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomProgressBar = null, t.RewardList = null, t.RewardNode = null, t.List = null, t._rewardItems = [], t.RewardSpace = 128, t.RewardSpaceLeft = 96, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "CustomRewardsProgressParam", {
                    get: function() {
                        return this._customRewardsProgressParam
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.OnClickItem = function(e, t) {
                    for (var n = 0; n < this._rewardItems.length; n++)
                        if (this._rewardItems[n].Item.node == t) return void this._rewardItems[n].Item.ShowItemTip()
                }, t.prototype.Init = function(e) {
                    this._data = e, this.SetProgressBar(e.RewardsProgres.length), this.SetProgress(e.Progress), this.InitReward()
                }, t.prototype.SetProgressBar = function(e) {
                    var t = (e - 1) * this.RewardSpace + this.RewardSpaceLeft;
                    this.List.width = t + 64, this.CustomProgressBar.node.width = t, this.CustomProgressBar.TotalLength = t
                }, t.prototype.SetProgress = function(e) {
                    for (var t = 0, n = 0; n < this._data.RewardsProgres.length; n++)
                        if (0 == n) {
                            if (r = (r = e / this._data.RewardsProgres[n]) > 1 ? 1 : r, t += this.RewardSpaceLeft * r, r < 1) break
                        } else if (n == this._data.RewardsProgres.length - 1) r = (r = (e - (o = this._data.RewardsProgres[n - 1])) / (this._data.RewardsProgres[n] - o)) > 1 ? 1 : r, t += this.RewardSpace * r;
                    else {
                        var o, r;
                        if (r = (r = (e - (o = this._data.RewardsProgres[n - 1])) / (this._data.RewardsProgres[n] - o)) > 1 ? 1 : r, t += this.RewardSpace * r, r < 1) break
                    }
                    this.CustomProgressBar.progress = t / this.CustomProgressBar.TotalLength
                }, t.prototype.InitReward = function() {
                    for (var e = 0; e < this._data.Rewards.length; e++) {
                        var t = this._rewardItems[e];
                        if (!t) {
                            var n = cc.instantiate(this.RewardNode);
                            n.setParent(this.RewardList.node), t = n.getComponent(s.default), this._rewardItems.push(t)
                        }
                        t.node.active = !0, t.Init(this._data.ItemPrefab, this._data.RewardsProgres[e], this._data.Rewards[e]), t.RefreshUI(this._data.GetCount > e)
                    }
                }, t.prototype.Refresh = function(e, t) {
                    this.SetProgress(t);
                    for (var n = 0; n < this._data.Rewards.length; n++) this._rewardItems[n].RefreshUI(e > n)
                }, i([d(a.default)], t.prototype, "CustomProgressBar", void 0), i([d(cc.Layout)], t.prototype, "RewardList", void 0), i([d(cc.Node)], t.prototype, "RewardNode", void 0), i([d(cc.Node)], t.prototype, "List", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "./FantasticPastureProgressRewardItem": "FantasticPastureProgressRewardItem"
    }],
    FantasticPastureProgressRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6308elAcIdOcIvPC5DIHMsj", "FantasticPastureProgressRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemParent = null, t.Icon = null, t.Lock = null, t.Score = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Item", {
                    get: function() {
                        return this._itemcomponent
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e, t, n) {
                    if (!this._isInit) {
                        var o = cc.instantiate(e);
                        o.setParent(this.ItemParent), this._itemcomponent = o.getComponent(a.ItemComponent)
                    }
                    this.Score.string = "" + t, this._itemcomponent.Init({
                        ItemId: n.Items[0],
                        Count: n.Items[1]
                    })
                }, t.prototype.RefreshUI = function(e) {
                    void 0 === e && (e = !1), e ? (this.Lock.node.active = !1, this._itemcomponent.SetSelectFlagState(!0, "select", 148, 150)) : (this.Lock.node.active = !0, this._itemcomponent.SetSelectFlagState(!1))
                }, i([c(cc.Node)], t.prototype, "ItemParent", void 0), i([c(cc.Sprite)], t.prototype, "Icon", void 0), i([c(cc.Sprite)], t.prototype, "Lock", void 0), i([c(cc.Label)], t.prototype, "Score", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Components/ItemComponent": "ItemComponent"
    }],
    FantasticPastureUseItemPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f7b51LZcahIC5WMBBF/r/Ky", "FantasticPastureUseItemPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Components/DataCenter"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/SliderComponent"),
            y = e("../Components/CurrencyBarItem"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.ItemName = null, t.ItemDesc = null, t.ItemParent = null, t.SliderNode = null, t.SliderComponent = null, t.SelectCount = null, t.UseCountHint = null, t.UseBtn = null, t.UseBtnLabel = null, t.CurrencyBarItem = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    h.Game.EventDispatcher.On(c.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.onDisable = function() {
                    h.Game.EventDispatcher.Off(c.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return e._itemPrefab = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.UseBtn.node.on("click", this.OnUseBtn, this), this.UseBtnLabel.string = "use".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    var n, o;
                    if (e.prototype.DisPlay.call(this, t), this.Title.string = null !== (n = this._data.Title) && void 0 !== n ? n : "FantasticPasture_useItemTitle".ToUILocale(), this.UseBtnLabel.string = null !== (o = this._data.UseBtnLabel) && void 0 !== o ? o : "CollectionPavilion_Btn_use".ToUILocale(), null != this._data.MaxUseCount ? this._maxUseCount = Math.min(u.DataCenter.Instance.GetItemCount(this._data.ItemId), this._data.MaxUseCount) : this._maxUseCount = u.DataCenter.Instance.GetItemCount(this._data.ItemId), !this._itemComponent) {
                        var r = cc.instantiate(this._itemPrefab);
                        r.setParent(this.ItemParent), this._itemComponent = r.getComponent(d.ItemComponent), this._itemComponent.Init({
                            ItemId: this._data.ItemId
                        })
                    }
                    this.SetUI(), this.SetSlider()
                }, t.prototype.SetUI = function() {
                    this._data.Info ? (this.UseCountHint.node.active = !0, this.UseCountHint.string = this._data.Info, this._data.InfoColor && cc.Color.fromHEX(this.UseCountHint.node.color, this._data.InfoColor)) : this.UseCountHint.node.active = !1, this.ItemName.string = this._data.ItemId.ToItemName(), this.ItemDesc.string = this._data.ItemId.ToItemDesc(), this.CurrencyBarItem.Init(this._data.ItemId)
                }, t.prototype.SetSlider = function() {
                    var e, t;
                    this._data.IsHindSilder ? this.SliderNode.active = !1 : (this.SliderNode.active = !0, this.SliderComponent.SetUI(null !== (e = this._data.DefaultUseCount) && void 0 !== e ? e : 1, this._maxUseCount, 1, !0), this.SelectCount.string = "assistant_consume_times".ToUILocale().Fmt(null !== (t = this._data.DefaultUseCount) && void 0 !== t ? t : 1))
                }, t.prototype.OnSliderDragOver = function(e) {
                    this._selectCount = e, this.SelectCount.string = "assistant_consume_times".ToUILocale().Fmt(this._selectCount)
                }, t.prototype.OnUseBtn = function() {
                    this.Close(), this._data.CallBack && this._data.CallBack(this._selectCount)
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Label)], t.prototype, "ItemName", void 0), i([I(cc.Label)], t.prototype, "ItemDesc", void 0), i([I(cc.Node)], t.prototype, "ItemParent", void 0), i([I(cc.Node)], t.prototype, "SliderNode", void 0), i([I(f.default)], t.prototype, "SliderComponent", void 0), i([I(cc.Label)], t.prototype, "SelectCount", void 0), i([I(cc.Label)], t.prototype, "UseCountHint", void 0), i([I(cc.Button)], t.prototype, "UseBtn", void 0), i([I(cc.Label)], t.prototype, "UseBtnLabel", void 0), i([I(y.default)], t.prototype, "CurrencyBarItem", void 0), i([m], t)
            }(h.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SliderComponent": "SliderComponent"
    }],
    FatePrayPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b7b5ffj32hOMKf4ciLu4BYy", "FatePrayPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            u = e("../../../EZFramework/UIFrame/UIPanelType"),
            p = e("../../../EZFramework/EZDefine/SysDefine"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/DataCenter"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/RpcComponent"),
            g = e("../../../EZFramework/UIFrame/UIManager"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("./ItemComponent"),
            _ = e("../../../EZFramework/Base/Game"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("./CurrencyBarItem"),
            S = e("../../../EZFramework/Auxiliary/EZLog"),
            w = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.Not = 0] = "Not", e[e.Can = 1] = "Can"
        })(l || (l = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(p.UINodeType.Fixed), t.FinalRewardSelectBtn = null, t.SelectRewardGrid = null, t.ChangeNode = null, t.RewardGrids = [], t.LeftTime = null, t.TalkBubble = null, t.BubbleContent = null, t.CurrencyItem = null, t.BtnDraw = null, t.BtnDrawDisable = null, t.DrawBtnDisableLabel = null, t.TicketIcon = null, t.TicketCount = null, t.FreeSign = null, t.SelectBorder = null, t.BtnRule = null, t.BG = null, t.DrawMask = null, t.NORMAL_SPEED = 1, t.FAST_SPEED = .02, t.DRAW_ROTATE_CICLE_TIMES = 2, t.SLOW_DOWN_DISTANCE = 8, t._itemArray = [], t._itemSelectReward = null, t._everyLineMaxCounts = [2, 3, 4], t._userData = null, t._itemNodeList = [], t._currSelectIndex = 0, t._ticketIconNormal = null, t._needRotate = !1, t._timer = 0, t._speedRate = 1, t._currRotateIndex = -1, t._moveTimes = 0, t._endIndex = -1, t.isBlock = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                _.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                _.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.OnItemClick = function(e, t) {
                if (!this.isBlock) {
                    for (var n = !1, o = 0; o < this.RewardGrids.length; o++)
                        if (-1 != this.RewardGrids[o].children.indexOf(t)) {
                            n = !0;
                            break
                        } if (n && v.UIUtlity.ShowItemTip(e, t), -1 != this.SelectRewardGrid.children.indexOf(t)) {
                        if (this._userData.IntArray.includes(0)) return;
                        this._data.CustomPart.CustomReward == l.Can ? this._data.CustomPart.CustomItems.length <= 1 ? v.UIUtlity.ShowItemTip(e, t) : g.UIManager.Instance.ShowUIPanel(d.PanelConfig.FatePraySelectRewardPanel.Path, this._data._id) : v.UIUtlity.ShowItemTip(e, t)
                    }
                }
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                            case 1:
                                return t._itemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.SetStaticLocalText = function() {
                this.DrawBtnDisableLabel.string = "fatePray_title".ToUILocale(), this.BubbleContent.string = "fatePray_bubble".ToUILocale(), this.FreeSign.string = "shop_buyFree".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.FinalRewardSelectBtn.node.on("click", this.OnRewardSelectBtnClick, this), this.BtnDraw.node.on("click", this.OnBtnDrawClick, this), this.BtnDrawDisable.node.on("click", this.OnBtnDrawDisableClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.DrawMask.on("click", this.OnBtnDrawMaskClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t);
                var n = t[0];
                this._data = h.DataCenter.Instance.ActivityConfigs[n], this.ReloadUserData();
                var o = h.DataCenter.Instance.Zones[h.DataCenter.Zone];
                this._startTime = o.OpenTime, this._deadLine = m.default.Instance.ComputeDeadTime(this._data.Common), this.SetBG()
            }, t.prototype.ReloadUserData = function() {
                this._userData = h.DataCenter.Instance.GetDataById(f.UserActivity_Model, this._data._id);
                var e = this._data.CustomPart.CustomItems;
                h.DataCenter.Instance.SetTempData("OpenServer_FatePray_CustomItems", e)
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this)
            }, t.prototype.DisPlay = function(t) {
                var n = this;
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), t ? this.ReloadUserData() : (this.RewardGrids.forEach(function(e) {
                    e.destroyAllChildren(), n._itemArray = []
                }), this.CreateNormalItem()), this.CreateSelectRewardItem(), this.SetItemNodeList(), this.SetBtnState(), this.SetCurrencyItem(), this.SetTicketInfo(), this._needRotate = !0, this.SetChangeNode()
            }, t.prototype.RefreshView = function() {
                this.ReloadUserData(), this.RefreshNormalItem(), this.CreateSelectRewardItem(), this.SetBtnState(), this.SetCurrencyItem(), this.SetTicketInfo(), this._needRotate = !0
            }, t.prototype.CountDown = function() {
                var e = this._deadLine - y.RpcComponent.Instance.ServerTime;
                e < 0 && g.UIManager.Instance.BackUIPanel(), this.LeftTime.string = "openServer_frameCountDown".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(e))
            }, t.prototype.CreateNormalItem = function() {
                for (var e = this._data.RewardItems.length, t = 0; t < this._itemArray.length; t++) this._itemArray[t].node.active = !1;
                var n = this._userData.IntArray,
                    o = 0;
                for (S.EZLog.Log("REWARDITEMS = ", this._data.RewardItems), S.EZLog.Log("GGRID = ", this.RewardGrids), t = 1; t < e; t++) {
                    S.EZLog.Log("I = ", t), S.EZLog.Log("INNDEX = ", o), S.EZLog.Log("NNODE = ", this.RewardGrids[o]), this.RewardGrids[o].children.length >= this._everyLineMaxCounts[o] && o++;
                    var r = this._data.RewardItems[t].ItemId,
                        i = this._data.RewardItems[t].Count,
                        a = this._data.RewardItems[t].EffectId;
                    if (null == this._itemArray[t - 1]) {
                        var s = cc.instantiate(this._itemPrefab).getComponent(I.ItemComponent);
                        s.node.parent = this.RewardGrids[o], s.node.name = r.toString(), this._itemArray[t - 1] = s
                    }
                    this._itemArray[t - 1].node.active = !0, this._itemArray[t - 1].Init({
                        ItemId: r,
                        Count: i
                    }, I.ItemComponentType.ItemCommon), null != a && a > 0 && this._itemArray[t - 1].PlayLightingCircleEffect(a), n.includes(t) && this._itemArray[t - 1].SetReceivedTagState(!0)
                }
            }, t.prototype.RefreshNormalItem = function() {
                for (var e = this._data.RewardItems.length, t = this._userData.IntArray, n = 1; n < e; n++) t.includes(n) && this._itemArray[n - 1].SetReceivedTagState(!0)
            }, t.prototype.CreateSelectRewardItem = function() {
                var e, t, n, o;
                if (this._data.CustomPart.CustomReward == l.Can) {
                    if (this._userData.Int2DArray.length <= 0) return void(this.SelectRewardGrid.active = !1);
                    this.SelectRewardGrid.active = !0, e = this._userData.IntArray, t = this._userData.Int2DArray[0].Items[0], n = this._userData.Int2DArray[0].Items[1], o = this._data.RewardItems[0].EffectId
                } else e = this._userData.IntArray, t = this._data.RewardItems[0].ItemId, n = this._data.RewardItems[0].Count, o = this._data.RewardItems[0].EffectId;
                if (null == this._itemSelectReward) {
                    var r = cc.instantiate(this._itemPrefab).getComponent(I.ItemComponent);
                    r.node.parent = this.SelectRewardGrid, r.node.name = t.toString(), this._itemSelectReward = r
                }
                this._itemSelectReward.node.active = !0, this._itemSelectReward.Init({
                    ItemId: t,
                    Count: n
                }, I.ItemComponentType.ItemCommon), null != o && o > 0 && this._itemSelectReward.PlayLightingCircleEffect(o), e.includes(0) && this._itemSelectReward.SetReceivedTagState(!0)
            }, t.prototype.SetItemNodeList = function() {
                this._itemNodeList = [], null != this._itemSelectReward && this._itemNodeList.push(this._itemSelectReward.node);
                for (var e = 0; e < this._itemArray.length; e++) this._itemNodeList.push(this._itemArray[e].node)
            }, t.prototype.SetBtnState = function() {
                this._data.CustomPart.CustomReward == l.Not ? (this.FinalRewardSelectBtn.node.active = !1, this.TalkBubble.active = !1) : this._userData.Int2DArray.length > 0 ? (this.FinalRewardSelectBtn.node.active = !1, this.TalkBubble.active = !1) : (this.FinalRewardSelectBtn.node.active = !0, this.TalkBubble.active = !0), this._userData.IntArray.length >= this._data.CustomPart.TicketCounts.length ? (this.BtnDraw.node.active = !1, this.BtnDrawDisable.node.active = !0) : (this.BtnDraw.node.active = !0, this.BtnDrawDisable.node.active = !1)
            }, t.prototype.SetCurrencyItem = function() {
                var e = this._data.CustomPart.TicketId,
                    t = h.DataCenter.Instance.GetItemCount(e);
                this.CurrencyItem.Init(e, !1, t), this.CurrencyItem.SetFixedWidth(258), this.CurrencyItem.SetClickCallBack(this.OnCurrencyItemAddClick.bind(this))
            }, t.prototype.OnCurrencyItemAddClick = function() {
                g.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemGetWayPanel.Path, this._data.CustomPart.TicketId, !1)
            }, t.prototype.SetTicketInfo = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return null != this._ticketIconNormal ? [3, 2] : (e = m.default.Instance.GetItemPathById(this._data.CustomPart.TicketId), t = this, [4, this.LoadDynamicAsset(e, cc.SpriteFrame)]);
                            case 1:
                                if (t._ticketIconNormal = r.sent(), !this.isValid) return w.AssetsManager.Instance.UnloadAsset(this._ticketIconNormal), [2];
                                r.label = 2;
                            case 2:
                                return this.TicketIcon.spriteFrame = this._ticketIconNormal, this.FreeSign.node.active = !1, (n = this._userData.IntArray.length) >= this._data.CustomPart.TicketCounts.length ? (this.TicketIcon.node.active = !1, this.TicketCount.node.active = !1) : (o = this._data.CustomPart.TicketCounts[n]) > 0 ? (this.TicketCount.string = "x" + o, this.TicketIcon.node.active = !0, this.TicketCount.node.active = !0) : (this.TicketIcon.node.active = !1, this.TicketCount.node.active = !1, this.FreeSign.node.active = !0), [2]
                        }
                    })
                })
            }, t.prototype.OnRewardSelectBtnClick = function() {
                g.UIManager.Instance.ShowUIPanel(d.PanelConfig.FatePraySelectRewardPanel.Path, this._data._id)
            }, t.prototype.StartDraw = function() {
                this._speedRate = this.FAST_SPEED, this._moveTimes = this._itemNodeList.length * this.DRAW_ROTATE_CICLE_TIMES
            }, t.prototype.StopDraw = function(e) {
                this._moveTimes += Math.floor(2 * this._itemNodeList.length) - this._currRotateIndex + e - this.SLOW_DOWN_DISTANCE, this._moveTimes > 3 * this._itemNodeList.length && (this._moveTimes -= this._itemNodeList.length), this._endIndex = e, this._timer = 1
            }, t.prototype.HuntOver = function() {
                this.RefreshView(), this._speedRate = this.NORMAL_SPEED, v.UIUtlity.ShwDisplayRewardPanel(this._currRewardData), this.isBlock = !1, this.DrawMask.active = !1
            }, t.prototype.update = function() {
                if (this._needRotate)
                    if (this._timer >= this._speedRate) {
                        if (this._moveTimes > 0) this._moveTimes--;
                        else if (this._endIndex >= 0 && (this._speedRate += (this.NORMAL_SPEED - this.FAST_SPEED) / this.SLOW_DOWN_DISTANCE * .6, this._currRotateIndex == this._endIndex)) return this._endIndex = -1, void this.HuntOver();
                        this._currRotateIndex == this._itemNodeList.length - 1 && (this._currRotateIndex = -1), this.SelectBorder.setParent(this._itemNodeList[++this._currRotateIndex]), this.SelectBorder.x = 0, this.SelectBorder.y = 20, this._timer = 0, this.SelectBorder.active = !0
                    } else this._timer += cc.director.getDeltaTime()
            }, t.prototype.OnBtnDrawClick = function() {
                if (!this.isBlock)
                    if (this._data.CustomPart.CustomReward == l.Can && this._userData.Int2DArray.length <= 0) v.UIUtlity.ShowFloatingHint("explore_select_first".ToUILocale());
                    else {
                        var e = this._userData.IntArray.length,
                            t = this._data.CustomPart.TicketCounts[e];
                        h.DataCenter.Instance.IsItemEnough(this._data.CustomPart.TicketId, t) ? (this.StartDraw(), this.RequestDraw(), this.isBlock = !0, this.DrawMask.active = !0) : v.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._data.CustomPart.TicketId.ToItemName()))
                    }
            }, t.prototype.OnBtnDrawMaskClick = function() {
                this.HuntOver()
            }, t.prototype.OnBtnDrawDisableClick = function() {
                v.UIUtlity.ShowFloatingHint("fatePray_has_draw_all".ToUILocale())
            }, t.prototype.OnBtnRuleClick = function() {
                var e = {
                    name: "fatePray_rule_maintittle".ToUILocale(),
                    titles: ["rule_subtittle".ToUILocale()],
                    contents: ["fatePray_rule_text".ToUILocale()]
                };
                v.UIUtlity.ShowRulePanel(e)
            }, t.prototype.RequestDraw = function() {
                var e = new f.Req_Activity_FatePrayDraw;
                e.ActivityId = this._data._id, y.RpcComponent.Instance.Call(e, this.ResponseDrawSuccess.bind(this))
            }, t.prototype.ResponseDrawSuccess = function(e) {
                var t = e.Rewards;
                this._currRewardData = t, this.ReloadUserData();
                var n = this._userData.IntArray[this._userData.IntArray.length - 1];
                this.StopDraw(n)
            }, t.prototype.SetBG = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return e = this, [4, m.default.LoadActivityTexture(this._data.Common.ShowImage)];
                            case 1:
                                return e._bgTexture = t.sent(), this.isValid ? (this.BG.spriteFrame = this._bgTexture, [2]) : (w.AssetsManager.Instance.UnloadAsset(this._bgTexture), [2])
                        }
                    })
                })
            }, t.prototype.SetChangeNode = function() {
                if (this._itemSelectReward) {
                    this.ChangeNode.active = !0;
                    var e = this._userData.IntArray,
                        t = this._data.CustomPart.CustomItems.length;
                    (e.includes(0) || t <= 1) && (this.ChangeNode.active = !1)
                } else this.ChangeNode.active = !1
            }, t.prototype.onDestroy = function() {
                w.AssetsManager.Instance.UnloadAsset(this._bgTexture), this.unscheduleAllCallbacks()
            }, i([T(cc.Button)], t.prototype, "FinalRewardSelectBtn", void 0), i([T(cc.Node)], t.prototype, "SelectRewardGrid", void 0), i([T(cc.Node)], t.prototype, "ChangeNode", void 0), i([T(cc.Node)], t.prototype, "RewardGrids", void 0), i([T(cc.RichText)], t.prototype, "LeftTime", void 0), i([T(cc.Node)], t.prototype, "TalkBubble", void 0), i([T(cc.RichText)], t.prototype, "BubbleContent", void 0), i([T(b.default)], t.prototype, "CurrencyItem", void 0), i([T(cc.Button)], t.prototype, "BtnDraw", void 0), i([T(cc.Button)], t.prototype, "BtnDrawDisable", void 0), i([T(cc.Label)], t.prototype, "DrawBtnDisableLabel", void 0), i([T(cc.Sprite)], t.prototype, "TicketIcon", void 0), i([T(cc.Label)], t.prototype, "TicketCount", void 0), i([T(cc.Label)], t.prototype, "FreeSign", void 0), i([T(cc.Node)], t.prototype, "SelectBorder", void 0), i([T(cc.Button)], t.prototype, "BtnRule", void 0), i([T(cc.Sprite)], t.prototype, "BG", void 0), i([T(cc.Node)], t.prototype, "DrawMask", void 0), i([A], t)
        }(c.BaseUIPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../../EZFramework/Base/Game": "Game",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CurrencyBarItem": "CurrencyBarItem",
        "./ItemComponent": "ItemComponent"
    }],
    FatePraySelectRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a5affg8iQVJhZTwRHPPRxYp", "FatePraySelectRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CustomLayout"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../Components/DataCenter"),
            m = e("../../Components/RpcComponent"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !0), t.Title = null, t.Tag = null, t.ItemScroll = null, t.ItemGrid = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t._commonItemPrefab = null, t._isLayoutInit = !1, t._selectNode = null, t._userData = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), c.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.ItemGrid.node.children.indexOf(t)) {
                        var n = t.getComponent(p.ItemComponent);
                        f.UIUtlity.ShowItemTip(n.ItemId, t), null == this._selectNode ? (n.SetSelectFlagState(!0), this._selectNode = n) : (this._selectNode.SetSelectFlagState(!1), n.SetSelectFlagState(!0), this._selectNode = n)
                    }
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._commonItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent)]);
                                case 1:
                                    t._commonItemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "fatePray_selectReward_title".ToUILocale(), this.Tag.string = "fatePray_selectReward_tag".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._userData = g.DataCenter.Instance.GetDataById(y.UserActivity_Model, this._activityId), this._customItemArray = g.DataCenter.Instance.GetTempData("OpenServer_FatePray_CustomItems")
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this._selectNode = null
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.ItemGrid.Init(this._commonItemPrefab, !1));
                    var e = this._customItemArray.length;
                    this.ItemGrid.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.ItemGrid == t && e.forEach(function(e, t) {
                        var o = e.getComponent(p.ItemComponent),
                            r = n._customItemArray[t].Items,
                            i = r[0],
                            a = r[1];
                        o.node.name = i.toString(), o.Init({
                            ItemId: i,
                            Count: a
                        }, p.ItemComponentType.ItemCommon), null != n._selectNode && n._selectNode.name == o.name ? o.SetSelectFlagState(!0) : o.SetSelectFlagState(!1)
                    })
                }, t.prototype.SetDefaultSelect = function() {
                    if (null == this._selectNode)
                        for (var e = Math.min(this._customItemArray.length, this.ItemGrid.node.children.length), t = 0; t < e; t++)
                            if (this._userData.Int2DArray.length > 0) {
                                var n = this._userData.Int2DArray[0].Items[0],
                                    o = this.ItemGrid.node.children[t];
                                if (o.name == n.toString()) {
                                    this._selectNode = o.getComponent(p.ItemComponent), this._selectNode.SetSelectFlagState(!0), I.EZLog.Log(t);
                                    break
                                }
                            }
                }, t.prototype.OnBtnCancelClick = function() {
                    I.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnSureClick = function() {
                    null == this._selectNode ? f.UIUtlity.ShowFloatingHint("selectReward_selectEmpty".ToUILocale()) : this.RequestSelectReward()
                }, t.prototype.RequestSelectReward = function() {
                    var e = g.DataCenter.Instance.ActivityConfigs[this._activityId];
                    if (!_.default.CheckActivityIsEnd(e.Common, !0)) {
                        var t = new y.Req_Activity_FatePraySelectReward;
                        t.ActivityId = this._activityId, t.RewardIndex = this.ItemGrid.node.children.indexOf(this._selectNode.node), m.RpcComponent.Instance.Call(t, this.ResponseSelectRewardSuccess.bind(this))
                    }
                }, t.prototype.ResponseSelectRewardSuccess = function() {
                    I.UIManager.Instance.BackUIPanel()
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Label)], t.prototype, "Tag", void 0), i([b(cc.ScrollView)], t.prototype, "ItemScroll", void 0), i([b(u.default)], t.prototype, "ItemGrid", void 0), i([b(cc.Button)], t.prototype, "BtnCancel", void 0), i([b(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([b(cc.Button)], t.prototype, "BtnSure", void 0), i([b(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    FateStarBoxGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a94fbEDtS5Bt7Rtj9d/83rG", "FateStarBoxGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("./GiftPackComponent1"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./NodePool"),
            m = e("../../Channel/ChannelManager"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/ItemComponent"),
            C = e("../../../Consts/GameEventIds"),
            v = e("../../../ShareConsts/EnumType"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Tittle = null, t.CustomLayout = null, t.Time = null, t.TimeValue = null, t._configData = null, t._itemPrefab = null, t._cellPrefab = null, t._isLayoutInit = !1, t._deadLine = 0, t._gifts = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnMallButtonClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(C.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnMallButtonClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(C.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/GiftPackComponent"), this.LoadDynamicAsset(y.BundlePath.ItemComponent)]).then(function(e) {
                                        t._cellPrefab = e[0], t._itemPrefab = e[1], t._itemPool = new g.default(t._itemPrefab)
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._configData = t[0], this._deadLine = h.default.Instance.ComputeDeadTime(this._configData.Common), this._gifts = [], this._configData._Packs.forEach(function(e) {
                        n._gifts.push(e)
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "fateStarBox_gift".ToUILocale(), this.Time.string = "explore_remain_time".ToUILocale(), this._offset = cc.v2()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab)), this.SortTaskData();
                    var e = this._gifts.length;
                    this.CustomLayout.RenderLayOut(e, 0, 0, this._offset)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (this.CustomLayout == t) {
                        var o = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                        o && o.Packs && e.forEach(function(e, t) {
                            var r = n._gifts[t].Id,
                                i = null != n._gifts[t].PayId && "" != n._gifts[t].PayId,
                                a = null == o.Packs[r] ? 0 : o.Packs[r].Items[0],
                                s = i ? n._gifts[t].VipPoint : n._gifts[t].ShowMoney;
                            e.getComponent(f.default).SetTitle(n._gifts[t].Name).SetItems(n._itemPool, n._gifts[t].Items).SetButtonLabel(n._gifts[t].Money, s, i).SetDiscount(n._gifts[t].Discount).SetPurchaseLimit(n._gifts[t].LimitCount - a, n._gifts[t].LimitCount, n._gifts[t].LimitType).SetButtonClick(t, r)
                        })
                    }
                }, t.prototype.SortTaskData = function() {
                    var e = this,
                        t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id),
                        n = [];
                    this._gifts = [], this._configData._Packs.forEach(function(t) {
                        e._gifts.push(t)
                    }), t && t.Packs && (this._gifts.sort(function(e, n) {
                        var o = t.Packs[e.Id.toString()] && t.Packs[e.Id.toString()].Items[0] ? t.Packs[e.Id.toString()].Items[0] : 0,
                            r = t.Packs[n.Id.toString()] && t.Packs[n.Id.toString()].Items[0] ? t.Packs[n.Id.toString()].Items[0] : 0;
                        return o >= e.LimitCount && r < n.LimitCount ? 1 : o < e.LimitCount && r >= n.LimitCount ? -1 : e.LimitType && !n.LimitType ? 1 : !e.LimitType && n.LimitType ? -1 : void 0
                    }), this._gifts.forEach(function(o) {
                        if (o.UnlockCondition) {
                            var r = o.UnlockCondition;
                            (t.Packs[r.toString()] && t.Packs[r.toString()].Items[0] ? t.Packs[r.toString()].Items[0] : 0) >= e.FindGiftById(r).LimitCount ? n.push(r) : n.push(o.Id)
                        }
                    }), this.RemoveHiddenGift(n))
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayoutgif" == t.parent.name && I.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                }, t.prototype.OnMallButtonClick = function(e, t) {
                    var n = this;
                    this._offset = this.CustomLayout.ScrollView.getScrollOffset();
                    var o = this._configData._Packs.findIndex(function(e) {
                        return e.Id == t
                    });
                    if (o > -1) {
                        var r = this._configData._Packs[o];
                        r.PayId && "" != r.PayId ? m.default.Instance.Pay(t, this._configData._id) : c.DataCenter.Instance.IsItemEnough(v.CommonItemId.Diamond, r.Money) ? h.default.Instance.ShowDiamondBuyQuery(r.Money, r.Name, function() {
                            var e = new u.Req_Pay_ByDiamond;
                            e.Id = t, e.ActivityId = n._configData._id, c.RpcComponent.Instance.Call(e, function(e) {
                                null == e ? I.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale()) : I.UIUtlity.ShwDisplayRewardPanel(e.Rewards), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_FATESTARBOX_REFRESH)
                            })
                        }) : l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [v.MallPageType.DiamondShop, v.GiftPackType.BuyDiamond])
                    }
                }, t.prototype.CountDown = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 && l.UIManager.Instance.BackUIPanel(), this.TimeValue.string = h.default.ActivityTimeLeftFormat(t)
                }, t.prototype.FindGiftById = function(e) {
                    var t = null,
                        n = this._configData._Packs.findIndex(function(t) {
                            return t.Id == e
                        });
                    return n > -1 && (t = this._configData._Packs[n]), t
                }, t.prototype.RemoveHiddenGift = function(e) {
                    var t = this;
                    e.forEach(function(e) {
                        var n = t._gifts.findIndex(function(t) {
                            return t.Id == e
                        });
                        n > -1 && t._gifts.splice(n)
                    })
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear()
                }, i([w(cc.Label)], t.prototype, "Tittle", void 0), i([w(p.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Label)], t.prototype, "Time", void 0), i([w(cc.Label)], t.prototype, "TimeValue", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./GiftPackComponent1": "GiftPackComponent1",
        "./NodePool": "NodePool"
    }],
    FateStarBoxPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "03937zMWOZCSb0uKwW92Fy6", "FateStarBoxPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/CurrencyBarItem"),
            y = e("../../../Consts/Consts"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/ItemComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("../../Components/Components"),
            v = e("./WinnerInfoShow"),
            b = e("../../../../Proto/Static/ConfigProto"),
            S = e("./SpecialCast"),
            w = e("../../Auxiliary/GameRecord"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = [
                [0, 0],
                [193.727, -98.439],
                [239.014, -245.128],
                [194.832, -386.975],
                [66.696, -461.387],
                [-66.696, -461.387],
                [-194.832, -386.975],
                [-239.014, -245.128],
                [-193.727, -98.439]
            ],
            L = [
                [105.426, 196.989],
                [321.823, 76.894],
                [438.773, -134.884],
                [438.773, -355.256],
                [321.823, -570.535],
                [105.426, -680.436],
                [-105.426, -680.436],
                [-321.823, -570.535],
                [-438.773, -345.266],
                [-438.773, -134.884],
                [-321.823, 76.894],
                [-105.426, 196.989]
            ],
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.LeftItem = null, t.RightItem = null, t.ResetButton = null, t.ResetLabel = null, t.ResetLock = null, t.GiftButton = null, t.GiftLabel = null, t.InerReward = null, t.InerSelectImage = null, t.InerMask = null, t.OuterReward = null, t.OuterSelectImage = null, t.OuterFinal = null, t.OuterFinalLabel = null, t.OuterMask = null, t.OpenLabel = null, t.ConsumeImage = null, t.OpenButton = null, t.WinnerInfoShow = null, t.UnmortalCast = null, t.ActivityTimeLabel = null, t.TimeLabel = null, t.RuleButton = null, t.ReturnButton = null, t.SkipTog = null, t.SkipLabel = null, t._deadLine = 0, t._model = null, t._inerNodes = [], t._outerNodes = [], t._sprite = null, t._diamondSprite = null, t._itemPrefab = null, t._messagePrefab = null, t._isTurning = !1, t._selectId = 0, t._inerIndex = -1, t._outerIndex = -1, t._inerTimes = 0, t._outerTimes = 0, t._summons = null, t._showReward = [], t._skipAniState = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_FATESTARBOX_REFRESH, this.UpdateDiamond, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_FATESTARBOX_REFRESH, this.UpdateDiamond, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/Message", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._messagePrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    n && (this._configData = c.DataCenter.Instance.ActivityConfigs[n], this._deadLine = h.default.Instance.ComputeDeadTime(this._configData.Common), this.TitleLabel.string = this._configData.Common.Title)
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this._configData.__CommonSummon[0].ConsumeItem[0].Items[0], n = h.default.Instance.GetItemPathById(t), o = h.default.Instance.GetItemPathById(y.CommonItemId.Diamond), [4, Promise.all([this.LoadDynamicAsset(n, cc.SpriteFrame), this.LoadDynamicAsset(o, cc.SpriteFrame)]).then(function(e) {
                                        r._sprite = e[0], r._diamondSprite = e[1]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.ActivityTimeLabel.string = "secretArea_activeTime".ToUILocale(), this.ResetLabel.string = "fateStarBox_reset".ToUILocale(), this.GiftLabel.string = "fateStarBox_gift".ToUILocale(), this.OuterFinalLabel.string = "fateStarBox_final".ToUILocale(), this.SkipLabel.string = "LuckWheelPanel_IgnoreAnimation".ToUILocale(), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.OpenButton.node.on("click", this.OnOpenButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.SkipTog.node.on("toggle", this.ClickTog, this);
                    var e = w.default.GetItem(w.GameRecordDefine.SkipFateStar);
                    e ? (e = Number.parseInt(e), this.SkipTog.isChecked = e) : this.SkipTog.isChecked = !1, this.WinnerInfoShow.Init(this._messagePrefab, function(e, t) {
                        var n = c.ConfigDataComponent.Instance.GetConfigById(b.ItemBase_Config, t.IntParams[0]);
                        e.getComponent(cc.RichText).string = "luckywheel_playerList".ToUILocale().Fmt(t.StringParams, d.UIUtlity.GetLabelColorByQuality(n.Quality).toHEX("#rrggbb"), n.Id.ToItemName(), t.IntParams[1])
                    })
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), w.default.SetItem(w.GameRecordDefine.FateStarBoxRedDot, C.RpcComponent.Instance.ServerTime), this.SetUIContetn()
                }, t.prototype.SetUIContetn = function() {
                    this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1), this.InitNodes(), this.SetCurrency(), this.SetInfo(), this.SetInerList(), this.SetOuterList(), this.SetNotice()
                }, t.prototype.InitNodes = function() {
                    this._inerNodes.forEach(function(e) {
                        e.active = !1
                    }), this._outerNodes.forEach(function(e) {
                        e.active = !1
                    }), this.InerMask.active = !1, this.OuterMask.active = !0
                }, t.prototype.SetCurrency = function() {
                    var e = this,
                        t = this._configData.__CommonSummon[0].ConsumeItem[0].Items[0];
                    this.LeftItem.Init(t), this.LeftItem.SetClickCallBack(function() {
                        l.UIManager.Instance.ShowUIPanel(g.PanelConfig.FateStarBoxGiftPanel.Path, e._configData)
                    }), this.RightItem.Init(y.CommonItemId.Diamond), this.RightItem.SetClickCallBack(function() {
                        _.UIManager.Instance.ShowUIPanel(g.PanelConfig.MallNewPanel.Path, [p.MallPageType.DiamondShop, p.GiftPackType.BuyDiamond])
                    })
                }, t.prototype.SetInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function() {
                            return this.ResetLock.active = !this.CheckIsUnLock(), this.GetFreeCount() > 0 ? (this.ConsumeImage.spriteFrame = this._sprite, this.OpenLabel.string = "shop_buyFree".ToUILocale()) : (e = this._configData.__CommonSummon.length > 0 && this._configData.__CommonSummon[0].ConsumeItem.length > 0 ? this._configData.__CommonSummon[0].ConsumeItem[0].Items[0] : 0, t = this._configData.__CommonSummon.length > 0 && this._configData.__CommonSummon[0].ConsumeItem.length > 0 ? this._configData.__CommonSummon[0].ConsumeItem[0].Items[1] : 0, C.DataCenter.Instance.IsItemEnough(e, t) ? (this.ConsumeImage.spriteFrame = this._sprite, this.OpenLabel.string = "treasure_open".ToUILocale()) : (n = this._configData.__CommonSummon.length > 0 && this._configData.__CommonSummon[0].ConsumeItem.length > 1 ? this._configData.__CommonSummon[0].ConsumeItem[1].Items[0] : 0, o = this._configData.__CommonSummon.length > 0 && this._configData.__CommonSummon[0].ConsumeItem.length > 1 ? this._configData.__CommonSummon[0].ConsumeItem[1].Items[1] : 0, n && (this.ConsumeImage.spriteFrame = this._diamondSprite, this.OpenLabel.string = "x" + o))), [2]
                        })
                    })
                }, t.prototype.SetNotice = function() {
                    var e = this,
                        t = new u.Req_Notice_GetByType;
                    t.Type = y.NoticeType.ActivitySummon, t.ActivityId = this._configData._id, c.RpcComponent.Instance.Call(t, function(t) {
                        if (t.Notice && t.Notice.Normal && t.Notice.Normal.length > 0 && e.WinnerInfoShow.Render(t.Notice.Normal), t.Notice && t.Notice.Advance && t.Notice.Advance.length > 0) {
                            var n = t.Notice.Advance[0];
                            if (n.IntParams && n.IntParams[0] && n.IntParams[1]) {
                                e.UnmortalCast.node.active = !0;
                                var o = c.ConfigDataComponent.Instance.GetConfigById(b.ItemBase_Config, n.IntParams[0]),
                                    r = "luckywheel_playerList".ToUILocale().Fmt(n.StringParams, d.UIUtlity.GetLabelColorByQuality(o.Quality).toHEX("#rrggbb"), o.Id.ToItemName(), n.IntParams[1]);
                                e.UnmortalCast.Push(r)
                            }
                        } else e.UnmortalCast.node.active = !1
                    })
                }, t.prototype.SetInerList = function() {
                    if (this._configData.__SummonType.length)
                        for (var e = -1, t = 0; t < this._configData.__SummonType[0].Libs.length; t++) {
                            var n = this._configData.__SummonType[0].Libs[t].Items[1],
                                o = this.GetRewardById(n);
                            if (o.length > 0) {
                                var r = o[0].Items[0],
                                    i = o[0].Items[1];
                                if (r > 0) {
                                    if (e++, !this._inerNodes[e]) {
                                        var a = cc.instantiate(this._itemPrefab);
                                        a.scale = .41, this._inerNodes[e] = a, this._inerNodes[e].parent = this.InerReward
                                    }
                                    var s = this._inerNodes[e].getComponent(m.ItemComponent);
                                    s.Init({
                                        ItemId: r,
                                        Count: i
                                    }, m.ItemComponentType.ItemCommon), e + 1 < R.length && this._inerNodes[e].setPosition(R[e + 1][0], R[e + 1][1]), this._inerNodes[e].active = !0;
                                    var l = this._model.Summons && this._model.Summons[this._configData.__SummonType[0].Id.toString()] ? this._model.Summons[this._configData.__SummonType[0].Id.toString()] : null;
                                    l && l.LibCount && l.LibCount[n] ? s.SetSelectFlagState(!0) : s.SetSelectFlagState(!1);
                                    var c = o[0].Items[3];
                                    c && s.PlayLightingCircleEffect(c)
                                }
                            }
                        }
                }, t.prototype.SetOuterList = function() {
                    if (!(this._configData.__SummonType.length < 2))
                        for (var e = 0; e < this._configData.__SummonType[1].Libs.length; e++) {
                            var t = this._configData.__SummonType[1].Libs[e].Items[1],
                                n = this.GetRewardById(t);
                            if (n.length > 0) {
                                var o = n[0].Items[0],
                                    r = n[0].Items[1];
                                if (!this._outerNodes[e]) {
                                    var i = cc.instantiate(this._itemPrefab);
                                    i.scale = .587, this._outerNodes[e] = i, this._outerNodes[e].parent = this.OuterReward
                                }
                                var a = this._outerNodes[e].getComponent(m.ItemComponent);
                                if (o) a.Init({
                                    ItemId: o,
                                    Count: r
                                }, m.ItemComponentType.ItemCommon);
                                else {
                                    var s = this._configData.CustomPart.Finally.length,
                                        l = this._model.IntValue % s,
                                        c = l > 0 ? this._configData.CustomPart.Finally[l - 1].Items[0] : this._configData.CustomPart.Finally[s - 1].Items[0],
                                        u = l > 0 ? this._configData.CustomPart.Finally[l - 1].Items[1] : this._configData.CustomPart.Finally[s - 1].Items[1];
                                    a.Init({
                                        ItemId: c,
                                        Count: u
                                    }, m.ItemComponentType.ItemCommon), this.OuterFinal.active = !0, this.OuterFinal.setPosition(L[e][0], L[e][1] + 100)
                                }
                                this._outerNodes[e].setPosition(L[e][0], L[e][1]), this._outerNodes[e].active = !0;
                                var p = this._model.Summons && this._model.Summons[this._configData.__SummonType[1].Id.toString()] ? this._model.Summons[this._configData.__SummonType[1].Id.toString()] : null;
                                p && p.LibCount && p.LibCount[t] ? a.SetSelectFlagState(!0) : a.SetSelectFlagState(!1);
                                var d = n[0].Items[3];
                                d && a.PlayLightingCircleEffect(d)
                            }
                        }
                }, t.prototype.CountDownActivityTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 && l.UIManager.Instance.BackUIPanel(), this.TimeLabel.string = "explore_time".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(t))
                }, t.prototype.GetRewardById = function(e) {
                    var t = [],
                        n = this._configData.__RandomLib.find(function(t) {
                            return t.Id == e
                        });
                    return n && n.Rewards.length > 0 && (t = n.Rewards), t
                }, t.prototype.StartTurn = function() {
                    var e = this,
                        t = this._configData.__SummonType[0].Libs.findIndex(function(t) {
                            return t.Items[1] == e._selectId
                        });
                    t = t > -1 ? t : 0, this.InerSelectImage.active = !1, this.OuterSelectImage.active = !1, this._isTurning = !0, this.StartInerTurn(t)
                }, t.prototype.StartInerTurn = function(e) {
                    var t = R.length;
                    this._inerTimes = 2 * t + e, this._inerIndex = 0, this.InerSelectImage.setPosition(R[this._inerIndex][0], R[this._inerIndex][1] + 8), this.InerSelectImage.active = !0, this.schedule(this.InerCountDown, .1)
                }, t.prototype.StartOuterTurn = function(e) {
                    var t = L.length;
                    this._outerTimes = 2 * t + e, this._outerIndex = 0, this.OuterSelectImage.setPosition(L[this._outerIndex][0], L[this._outerIndex][1] + 11), this.OuterSelectImage.active = !0, this.schedule(this.OuterCountDown, .1)
                }, t.prototype.InerCountDown = function() {
                    var e = this;
                    if (this._inerIndex++, this._inerIndex >= this._inerTimes) {
                        var t = this._configData.__SummonType[1].Libs.findIndex(function(t) {
                            return t.Items[1] == e._selectId
                        });
                        if (t > -1) this.InerMask.active = !0, this.OuterMask.active = !1, this.InerSelectImage.active = !1, t > -1 && this.StartOuterTurn(t);
                        else {
                            var n = this._inerIndex % R.length - 1;
                            n < this._inerNodes.length && n >= 0 && this._inerNodes[n].getComponent(m.ItemComponent).SetSelectFlagState(!0);
                            var o = [];
                            this._showReward.forEach(function(e) {
                                if (e.Items[0] > 0) {
                                    var t = new u.UserItem_Model;
                                    t.ItemId = e.Items[0], t.Count = e.Items[1], o.push(t)
                                }
                            }), o.length > 0 && d.UIUtlity.ShwDisplayRewardPanel(o), this._isTurning = !1
                        }
                        this.unschedule(this.InerCountDown)
                    }
                    var r = this._inerIndex % R.length;
                    this.InerSelectImage.setPosition(R[r][0], R[r][1] + 10)
                }, t.prototype.GetFreeCount = function() {
                    return this._model.Summons && this._model.Summons[this._configData.__SummonType[0].Id.toString()] && this._model.Summons[this._configData.__SummonType[0].Id.toString()].hasOwnProperty("FreeCount") ? this._model.Summons[this._configData.__SummonType[0].Id.toString()].FreeCount : this._configData.__SummonType[0].StartFreeCount
                }, t.prototype.OuterCountDown = function() {
                    var e = this;
                    if (this._outerIndex++, this._outerIndex >= this._outerTimes) {
                        var t = this._outerIndex % L.length;
                        t < this._outerNodes.length && this._outerNodes[t].getComponent(m.ItemComponent).SetSelectFlagState(!0);
                        var n = [];
                        this._showReward.forEach(function(t, o) {
                            if (o > 0)
                                if (t.Items[0] > 0)(r = new u.UserItem_Model).ItemId = t.Items[0], r.Count = t.Items[1], n.push(r);
                                else {
                                    var r, i = e._configData.CustomPart.Finally.length,
                                        a = e._model.IntValue % i,
                                        s = a > 0 ? e._configData.CustomPart.Finally[a - 1].Items[0] : e._configData.CustomPart.Finally[i - 1].Items[0],
                                        l = a > 0 ? e._configData.CustomPart.Finally[a - 1].Items[1] : e._configData.CustomPart.Finally[i - 1].Items[1];
                                    (r = new u.UserItem_Model).ItemId = s, r.Count = l, n.push(r)
                                }
                        }), n.length > 0 && d.UIUtlity.ShwDisplayRewardPanel(n), this.InerMask.active = !1, this.OuterMask.active = !0, this._isTurning = !1, this.unschedule(this.OuterCountDown)
                    }
                    var o = this._outerIndex % L.length;
                    this.OuterSelectImage.setPosition(L[o][0], L[o][1] + 13)
                }, t.prototype.CheckIsUnLock = function() {
                    for (var e = 0, t = function(t) {
                            var o = n._configData.__SummonType[1].Libs[t],
                                r = n._configData.__RandomLib.findIndex(function(e) {
                                    return e.Id == o.Items[1] && 0 == e.Rewards[0].Items[0]
                                });
                            if (r > -1) return e = n._configData.__RandomLib[r].Id, "break"
                        }, n = this, o = 0; o < this._configData.__SummonType[1].Libs.length && "break" !== t(o); o++);
                    if (e) {
                        var r = this._model.Summons && this._model.Summons[this._configData.__SummonType[1].Id.toString()] ? this._model.Summons[this._configData.__SummonType[1].Id.toString()] : null;
                        return !!(r && r.LibCount && r.LibCount[e.toString()] && r.LibCount[e.toString()] > 0)
                    }
                    return !1
                }, t.prototype.OnResetButtonClick = function() {
                    var e = this;
                    this.CheckIsUnLock() ? d.UIUtlity.ShowHintPanel("", "fateStarBox_isReset".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        var t = new u.Req_Activity_FateStarBoxReset;
                        t.ActivityId = e._configData._id, c.RpcComponent.Instance.Call(t, function() {
                            e._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, e._configData._id), e.SetUIContetn()
                        })
                    }) : d.UIUtlity.ShowFloatingHint("fateStarBox_active_reset".ToUILocale())
                }, t.prototype.OnGiftButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.FateStarBoxGiftPanel.Path, this._configData)
                }, t.prototype.OnOpenButtonClick = function() {
                    var e = this;
                    if (this._isTurning) d.UIUtlity.ShowFloatingHint("fateStarBox_turning".ToUILocale());
                    else if (this.UpdateSummons(), h.default.Instance.IsCanGetNewHero(1)) {
                        if (!h.default.CheckActivityIsEnd(this._configData.Common, !0))
                            if (this.GetFreeCount() > 0) this.RequestOpen(0);
                            else {
                                var t = this._configData.__CommonSummon.length > 0 && this._configData.__CommonSummon[0].ConsumeItem.length > 0 ? this._configData.__CommonSummon[0].ConsumeItem[0].Items[0] : 0,
                                    n = this._configData.__CommonSummon.length > 0 && this._configData.__CommonSummon[0].ConsumeItem.length > 0 ? this._configData.__CommonSummon[0].ConsumeItem[0].Items[1] : 0;
                                if (C.DataCenter.Instance.IsItemEnough(t, n)) this.RequestOpen(t);
                                else {
                                    var o = this._configData.__CommonSummon.length > 0 && this._configData.__CommonSummon[0].ConsumeItem.length > 1 ? this._configData.__CommonSummon[0].ConsumeItem[1].Items[0] : 0,
                                        r = this._configData.__CommonSummon.length > 0 && this._configData.__CommonSummon[0].ConsumeItem.length > 1 ? this._configData.__CommonSummon[0].ConsumeItem[1].Items[1] : 0;
                                    o && C.DataCenter.Instance.IsItemEnough(o, r) ? this.RequestOpen(o) : d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o.ToItemName()))
                                }
                            }
                    } else {
                        var i = h.default.Instance.GetHeroCountLimit(),
                            a = "infinite_hero_limit".ToUILocale().Fmt(i);
                        d.UIUtlity.ShowHintPanel("", a, "", null, "go_to_treat".ToUILocale(), function() {
                            e.Close(), l.UIManager.Instance.ShowUIPanel(g.PanelConfig.HeroPalacePanel.Path, 1)
                        })
                    }
                }, t.prototype.RequestOpen = function(e) {
                    var t = this,
                        n = new u.Req_Activity_CommonSummon;
                    n.ItemId = e, n.Type = this._configData.__SummonType[0].Id, n.ActivityId = this._configData._id, c.RpcComponent.Instance.Call(n, function(e) {
                        if (t._showReward = e.Items, t.GetSelectId(), t._selectId > 0) {
                            var n = w.default.GetItem(w.GameRecordDefine.SkipFateStar);
                            if (n ? (n = Number.parseInt(n), t._skipAniState = n) : t._skipAniState = !1, t._skipAniState) {
                                var o = [];
                                1 == t._showReward.length ? t._showReward.forEach(function(e) {
                                    if (e.Items[0] > 0) {
                                        var t = new u.UserItem_Model;
                                        t.ItemId = e.Items[0], t.Count = e.Items[1], o.push(t)
                                    }
                                }) : 2 == t._showReward.length && t._showReward.forEach(function(e, n) {
                                    if (n > 0)
                                        if (e.Items[0] > 0)(r = new u.UserItem_Model).ItemId = e.Items[0], r.Count = e.Items[1], o.push(r);
                                        else {
                                            var r, i = t._configData.CustomPart.Finally.length,
                                                a = t._model.IntValue % i,
                                                s = a > 0 ? t._configData.CustomPart.Finally[a - 1].Items[0] : t._configData.CustomPart.Finally[i - 1].Items[0],
                                                l = a > 0 ? t._configData.CustomPart.Finally[a - 1].Items[1] : t._configData.CustomPart.Finally[i - 1].Items[1];
                                            (r = new u.UserItem_Model).ItemId = s, r.Count = l, o.push(r)
                                        }
                                }), o.length > 0 && d.UIUtlity.ShwDisplayRewardPanel(o)
                            } else t.StartTurn()
                        }
                    })
                }, t.prototype.UpdateSummons = function() {
                    this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), this._summons = {};
                    var e = this._model.Summons && this._model.Summons[this._configData.__SummonType[0].Id.toString()] && this._model.Summons[this._configData.__SummonType[0].Id.toString()].LibCount ? this._model.Summons[this._configData.__SummonType[0].Id.toString()].LibCount : {},
                        t = this._model.Summons && this._model.Summons[this._configData.__SummonType[1].Id.toString()] && this._model.Summons[this._configData.__SummonType[1].Id.toString()].LibCount ? this._model.Summons[this._configData.__SummonType[1].Id.toString()].LibCount : {};
                    for (var n in e) this._summons[n] = e[n];
                    for (var n in t) this._summons[n] = t[n]
                }, t.prototype.GetSelectId = function() {
                    var e = this,
                        t = [];
                    this._selectId = 0, this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    var n = this._model.Summons && this._model.Summons[this._configData.__SummonType[0].Id.toString()] && this._model.Summons[this._configData.__SummonType[0].Id.toString()].LibCount ? this._model.Summons[this._configData.__SummonType[0].Id.toString()].LibCount : {},
                        o = this._model.Summons && this._model.Summons[this._configData.__SummonType[1].Id.toString()] && this._model.Summons[this._configData.__SummonType[1].Id.toString()].LibCount ? this._model.Summons[this._configData.__SummonType[1].Id.toString()].LibCount : {};
                    for (var r in n)(!this._summons[r] && n[r] > 0 || this._summons[r] != n[r] && n[r] > 0) && t.push(Number(r));
                    for (var r in o)(!this._summons[r] && o[r] > 0 || this._summons[r] != o[r] && o[r] > 0) && t.push(Number(r));
                    if (t.length > 0) 1 == t.length ? this._selectId = t[0] : 2 == t.length && t.forEach(function(t) {
                        e._configData.__SummonType[1].Libs.findIndex(function(e) {
                            return e.Items[1] == e
                        }) > -1 && (e._selectId = t)
                    });
                    else {
                        var i = this.GetOuterRemainNum();
                        2 == this._showReward.length && 1 == i && this.GetLastSelected()
                    }
                }, t.prototype.GetOuterRemainNum = function() {
                    var e = this,
                        t = 0,
                        n = 0;
                    return this._configData.__SummonType[1].Libs.forEach(function(o) {
                        n++, e._summons[o.Items[1]] && e._summons[o.Items[1]] > 0 && t++
                    }), n - t
                }, t.prototype.GetLastSelected = function() {
                    for (var e = 0; e < this._configData.__SummonType[1].Libs.length; e++) {
                        var t = this._configData.__SummonType[1].Libs[e];
                        if (!this._summons[t.Items[1]] || 0 == this._summons[t.Items[1]]) {
                            this._selectId = t.Items[1];
                            break
                        }
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.InerReward.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t), -1 != this.OuterReward.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.UpdateDiamond = function() {
                    this.SetCurrency()
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "fateStarBox_rule_main".ToUILocale(),
                        titles: ["fateStarBox_rule_sub".ToUILocale()],
                        contents: ["fateStarBox_rule_content".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.ClickTog = function(e) {
                    e.isChecked ? w.default.SetItem(w.GameRecordDefine.SkipFateStar, 1) : w.default.SetItem(w.GameRecordDefine.SkipFateStar, 0)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([T(cc.Label)], t.prototype, "TitleLabel", void 0), i([T(f.default)], t.prototype, "LeftItem", void 0), i([T(f.default)], t.prototype, "RightItem", void 0), i([T(cc.Button)], t.prototype, "ResetButton", void 0), i([T(cc.Label)], t.prototype, "ResetLabel", void 0), i([T(cc.Node)], t.prototype, "ResetLock", void 0), i([T(cc.Button)], t.prototype, "GiftButton", void 0), i([T(cc.Label)], t.prototype, "GiftLabel", void 0), i([T(cc.Node)], t.prototype, "InerReward", void 0), i([T(cc.Node)], t.prototype, "InerSelectImage", void 0), i([T(cc.Node)], t.prototype, "InerMask", void 0), i([T(cc.Node)], t.prototype, "OuterReward", void 0), i([T(cc.Node)], t.prototype, "OuterSelectImage", void 0), i([T(cc.Node)], t.prototype, "OuterFinal", void 0), i([T(cc.Label)], t.prototype, "OuterFinalLabel", void 0), i([T(cc.Node)], t.prototype, "OuterMask", void 0), i([T(cc.Label)], t.prototype, "OpenLabel", void 0), i([T(cc.Sprite)], t.prototype, "ConsumeImage", void 0), i([T(cc.Button)], t.prototype, "OpenButton", void 0), i([T(v.default)], t.prototype, "WinnerInfoShow", void 0), i([T(S.default)], t.prototype, "UnmortalCast", void 0), i([T(cc.Label)], t.prototype, "ActivityTimeLabel", void 0), i([T(cc.Label)], t.prototype, "TimeLabel", void 0), i([T(cc.Button)], t.prototype, "RuleButton", void 0), i([T(cc.Button)], t.prototype, "ReturnButton", void 0), i([T(cc.Toggle)], t.prototype, "SkipTog", void 0), i([T(cc.Label)], t.prototype, "SkipLabel", void 0), i([A], t)
            }(l.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "./SpecialCast": "SpecialCast",
        "./WinnerInfoShow": "WinnerInfoShow"
    }],
    FavorAttrDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f2076F7pmNAv41/gGEQKU8z", "FavorAttrDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../Components/DataCenter"),
            f = e("./FavorNodeAttrItem"),
            y = e("./FavorUpgradePanel"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !1), t.PanelTitle = null, t.CurrHeroAttrTitle = null, t.CurrHeroAttrContainer = null, t.NodeAttrTitle = null, t.NodeAttrContainer = null, t._currHeroAttrMap = null, t._currHeroData = null, t._currHeroConfig = null, t._currHeroFavorConfigs = [], t._attrItemPrefab = null, t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._currHeroAttrMap = t[0], this._currHeroId = t[1], this._currHeroData = h.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._currHeroId), this._currHeroConfig = d.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, this._currHeroId), this.InitNodeAttrData()
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InitLabels()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetCurrHeroAttrView(), this.SetNodeAttrView()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this)
                }, t.prototype.InitLabels = function() {
                    this.PanelTitle.string = "FavorAttrDetail_PanelTitle".ToUILocale(), this.CurrHeroAttrTitle.string = "FavorAttrDetail_CurrHeroAttrTitle".ToUILocale(), this.NodeAttrTitle.string = "FavorAttrDetail_NodeTitle".ToUILocale()
                }, t.prototype.SetCurrHeroAttrView = function() {
                    for (var e = this.CurrHeroAttrContainer.childrenCount, t = 0; t < e; t++) {
                        var n = this.CurrHeroAttrContainer.children[t],
                            o = Number.parseInt(n.name);
                        this._currHeroAttrMap.get(o) ? (this.RenderAttrItem(n), n.active = !0) : n.active = !1
                    }
                }, t.prototype.RenderAttrItem = function(e) {
                    var t = Number.parseInt(e.name),
                        n = this._currHeroAttrMap.get(t);
                    n || (n = 0);
                    var o = p.default.GetHeroAttribute(t, n);
                    cc.find("Icon", e).getComponent(cc.Sprite).spriteFrame = o.Icon, cc.find("Tag", e).getComponent(cc.Label).string = o.Name, cc.find("Value", e).getComponent(cc.Label).string = "" + o.Value
                }, t.prototype.SetNodeAttrView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this.NodeAttrContainer.destroyAllChildren(), null != this._attrItemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroFavorPanel/SubItems/FavorNodeAttrItem")]);
                                case 1:
                                    if (e._attrItemPrefab = a.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._attrItemPrefab), [2];
                                    a.label = 2;
                                case 2:
                                    for (t = y.default.FavorLevelIdPrefix, 4 == this._currHeroConfig.StarLevel && (t = 0), n = 0; n < this._currHeroFavorConfigs.length; n++) o = cc.instantiate(this._attrItemPrefab), r = o.getComponent(f.default), i = this._currHeroFavorConfigs[n].Id - t, r.Init(i, this._currHeroFavorConfigs[n]), this._currHeroData.FavorLevel < i && r.SetToPositive(), this.NodeAttrContainer.addChild(o);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitNodeAttrData = function() {
                    var e = d.ConfigDataComponent.Instance.GetArrayConfig(l.FavorLevel_Config),
                        t = 0,
                        n = 1e5;
                    4 == this._currHeroConfig.StarLevel ? (t = 0, n = y.default.FavorLevelIdPrefix) : 5 == this._currHeroConfig.StarLevel && (t = y.default.FavorLevelIdPrefix);
                    for (var o = 0; o < e.length; o++) e[o].Id >= t && e[o].Id < n && this._currHeroFavorConfigs.push(e[o])
                }, i([I(cc.Label)], t.prototype, "PanelTitle", void 0), i([I(cc.Label)], t.prototype, "CurrHeroAttrTitle", void 0), i([I(cc.Node)], t.prototype, "CurrHeroAttrContainer", void 0), i([I(cc.Label)], t.prototype, "NodeAttrTitle", void 0), i([I(cc.Node)], t.prototype, "NodeAttrContainer", void 0), i([m], t)
            }(u.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "./FavorNodeAttrItem": "FavorNodeAttrItem",
        "./FavorUpgradePanel": "FavorUpgradePanel"
    }],
    FavorGiftItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bfdb5oFk+5G4Zf0ynTb/TU4", "FavorGiftItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../../Components/DataCenter"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/HoldButtonComponent"),
            m = e("../Components/ItemComponent"),
            I = e("./FavorUpgradePanel"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ExpAddedLabel = null, t.PreferTag = null, t.ItemContainer = null, t.ReduceButton = null, t.ItemGetWayButton = null, t.GiftCountLabel = null, t.GiftCountContainer = null, t._itemCountSelected = 0, t._favorAddKey = "FavorGift_FavorAdd", t._currItemNode = null, t._itemNotEnoughKey = "error_hint_content_code_1106", t._expFullKey = "FavorUpgrade_ExpFull", t
                }
                return r(t, e), t.prototype.onLoad = function() {}, t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    return void 0 === n && (n = !1), void 0 === o && (o = !1), a(this, void 0, void 0, function() {
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._currItemId = e, this._panelInstance = t, this._isInPrefer = n, this._isFullExp = o, this._type = r, this._itemAmount = f.DataCenter.Instance.GetItemCount(this._currItemId), this._currItemFavorConfig = h.ConfigDataComponent.Instance.GetConfigById(l.ItemFavor_Config, e), [4, this.LoadAssets()];
                                case 1:
                                    return i.sent(), this.isValid ? (this.InitView(), [2]) : (c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2])
                            }
                        })
                    })
                }, t.prototype.InitView = function() {
                    if (this._currItemNode = cc.instantiate(this._itemPrefab), this._currItemNode.getComponent(m.ItemComponent).Init({
                            ItemId: this._currItemId
                        }, m.ItemComponentType.ItemCommon), this._currItemNode.addComponent(g.default).Init(this.OnAddButtonClicked.bind(this)), this.ItemContainer.addChild(this._currItemNode), this.ReduceButton.node.on("click", this.OnReductButtonClicked, this), this.ReduceButton.node.addComponent(g.default).Init(this.OnReductButtonClicked.bind(this)), this.ItemGetWayButton.node.on("click", this.OnShowGetWayButtonClicked, this), this._isFullExp) this.GiftCountLabel.node.active = !1, this.ExpAddedLabel.node.active = !1, this.ItemGetWayButton.node.active = !1, this.ReduceButton.node.active = !1, this.GiftCountContainer.active = !1;
                    else {
                        var e = void 0;
                        0 == this._type ? e = this._isInPrefer ? this._currItemFavorConfig.FavorXp : this._currItemFavorConfig.NoFeelXp : 1 == this._type && (e = I.default.GetAngelGiftCountById(this._currItemId)), this.ExpAddedLabel.string = this._favorAddKey.ToUILocale().Fmt(e.toString()), this.GiftCountLabel.string = this._itemCountSelected.toString() + "/" + this._itemAmount.toString()
                    }
                    this.PreferTag.node.active = this._isInPrefer, this.SetItemGray(this._itemAmount)
                }, t.prototype.OnItemClicked = function(e, t) {
                    t == this._currItemNode && (this._itemAmount <= 0 ? this.OnShowGetWayButtonClicked() : this.OnAddButtonClicked(null))
                }, t.prototype.OnShowGetWayButtonClicked = function() {
                    u.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemGetWayPanel.Path, this._currItemId)
                }, t.prototype.LoadAssets = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent)]);
                                case 1:
                                    e._itemPrefab = t.sent(), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.RefreshItemStatus = function(e) {
                    this._isFullExp = e, this._itemCountSelected = 0, this._itemAmount = f.DataCenter.Instance.GetItemCount(this._currItemId), this.SetItemGray(this._itemAmount), this.ReduceButton.node.active = !1, this.GiftCountLabel.string = this._itemCountSelected.toString() + "/" + this._itemAmount.toString()
                }, t.prototype.SetItemGray = function(e) {
                    this._currItemNode && (e > 0 ? y.UIUtlity.OffNodeGray(this._currItemNode) : y.UIUtlity.OnNodeGray(this._currItemNode))
                }, t.prototype.OnAddButtonClicked = function(e) {
                    return this._itemCountSelected + 1 > this._itemAmount ? (this.RemoveHoldEvent(e), void y.UIUtlity.ShowFloatingHint(this._itemNotEnoughKey.ToUILocale())) : this._panelInstance.IsCurrGradeExpFull() ? (this.RemoveHoldEvent(e), void y.UIUtlity.ShowFloatingHint(this._expFullKey.ToUILocale())) : (this._itemCountSelected <= 0 && (this.ReduceButton.node.active = !0), this._itemCountSelected += 1, this.GiftCountLabel.string = this._itemCountSelected.toString() + "/" + this._itemAmount.toString(), void this._panelInstance.OnAddGiftButtonClicked(this._currItemId, this._isInPrefer))
                }, t.prototype.RemoveHoldEvent = function(e) {
                    "hold" == e && this._currItemNode && this._currItemNode.getComponent(g.default).OnTouchEnd()
                }, t.prototype.OnReductButtonClicked = function() {
                    1 == this._itemCountSelected && (this.ReduceButton.node.active = !1), this._itemCountSelected <= 0 || (this._itemCountSelected -= 1, this.GiftCountLabel.string = this._itemCountSelected.toString() + "/" + this._itemAmount.toString(), this._panelInstance.OnReduceGiftButtonClicked(this._currItemId, this._isInPrefer))
                }, Object.defineProperty(t.prototype, "itemCountSelected", {
                    get: function() {
                        return this._itemCountSelected
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ItemId", {
                    get: function() {
                        return this._currItemId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked)
                }, t.prototype.onDestroy = function() {
                    this._itemPrefab && c.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, i([v(cc.Label)], t.prototype, "ExpAddedLabel", void 0), i([v(cc.Sprite)], t.prototype, "PreferTag", void 0), i([v(cc.Node)], t.prototype, "ItemContainer", void 0), i([v(cc.Button)], t.prototype, "ReduceButton", void 0), i([v(cc.Button)], t.prototype, "ItemGetWayButton", void 0), i([v(cc.Label)], t.prototype, "GiftCountLabel", void 0), i([v(cc.Node)], t.prototype, "GiftCountContainer", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HoldButtonComponent": "HoldButtonComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./FavorUpgradePanel": "FavorUpgradePanel"
    }],
    FavorHandbookItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0c3a3sPBNxNZrx5XKmunzG0", "FavorHandbookItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BaseNode = null, t.SelectedEffect = null, t.LockedStatus = null, t.HandbookItemBG = null, t.UnlockCondition = null, t.UnlockConditionLabel = null, t.InUseTitle = null, t.InUseTitleLabel = null, t._isInUse = !1, t._unlocked = !1, t._itemId = 0, t._unlockLevel = 0, t._isSelected = !1, t._assets = [], t._inUseKey = "FvorHandbookItem_InUse", t._favorNotReachKey = "FavorHandbookItem_favorNotReach", t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                    void 0 === r && (r = 0), this._panelInstance = e, this._isInUse = t, this._unlocked = n, this._itemId = o, this._unlockLevel = r, this.BaseNode.on(cc.Node.EventType.TOUCH_END, this.OnItemClicked, this), this.InitView()
                }, t.prototype.InitView = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.InUseTitle.active = this._isInUse, this.InUseTitleLabel.string = this._inUseKey.ToUILocale(), this.HandbookItemBG.node.active = this._unlocked, this.LockedStatus.node.active = !this._unlocked, this.UnlockCondition.active = !this._unlocked, this._unlocked ? [4, l.AssetsManager.Instance.LoadAsset("HeroFavorPanel/HandbookPictures/" + this._itemId.toString(), cc.SpriteFrame)] : [3, 2];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.HandbookItemBG.spriteFrame = e, this._assets.push(e), [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    this.UnlockConditionLabel.string = this._unlockLevel.toString(), t.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onLoad = function() {}, t.prototype.onDestroy = function() {
                    this.BaseNode.off(cc.Node.EventType.TOUCH_END, this.OnItemClicked), this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.SetSelecteStatus = function(e) {
                    this._isSelected = e, this.SelectedEffect.node.active = e
                }, t.prototype.SetInUseStatus = function(e) {
                    this._isInUse = e, this.InUseTitle.active = e
                }, Object.defineProperty(t.prototype, "IsInUse", {
                    get: function() {
                        return this._isInUse
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ItemId", {
                    get: function() {
                        return this._itemId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.OnItemClicked = function() {
                    this._unlocked ? this._isSelected ? this._isSelected = !0 : (this.SelectedEffect.node.active = !0, this._panelInstance.OnItemSelected(this._itemId)) : c.UIUtlity.ShowFloatingHint(this._favorNotReachKey.ToUILocale().Fmt(this._unlockLevel.toString()))
                }, i([d(cc.Node)], t.prototype, "BaseNode", void 0), i([d(cc.Sprite)], t.prototype, "SelectedEffect", void 0), i([d(cc.Sprite)], t.prototype, "LockedStatus", void 0), i([d(cc.Sprite)], t.prototype, "HandbookItemBG", void 0), i([d(cc.Node)], t.prototype, "UnlockCondition", void 0), i([d(cc.Label)], t.prototype, "UnlockConditionLabel", void 0), i([d(cc.Node)], t.prototype, "InUseTitle", void 0), i([d(cc.Label)], t.prototype, "InUseTitleLabel", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    FavorHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3ea074K/a1EOr29auNd/Cah", "FavorHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../Components/DataCenter"),
            f = e("../Components/FavorHandbookItem"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !0), t.HandbookItemsContainer = null, t.SetToUseButton = null, t.SetToUseButtonLabel = null, t.SetToCancelButton = null, t.SetToCancelButtonLabel = null, t.PlayButton = null, t.PlayButtonLabel = null, t.ReturnButton = null, t._itemIdSelected = 0, t._handbookItemPrefeb = null, t._itemInstanceMap = new Map, t._setToUseButonKey = "FavorHandbook_SetToUse", t._setToCancelButtonKey = "FavorHandbook_SetToCancel", t._playButtonKey = "FavorHandbook_Play", t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._currHeroId = t[0], u.EZLog.Log("InitData _currHeroId " + this._currHeroId), this._currHeroConfig = d.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, this._currHeroId), this._currHeroData = h.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._currHeroId), this._itemIdSelected = 0
                }, t.prototype.InitUI = function() {
                    this.InitLabels(), this.ReturnButton.node.on("click", this.OnReturnButtonClicked, this), this.SetToCancelButton.node.on("click", this.OnSetToCancelButtonClicked, this), this.SetToUseButton.node.on("click", this.OnSetToUseButtonClicked, this), this.PlayButton.node.on("click", this.OnPlayButtonClicked, this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.InitFavorbookItemList()
                }, t.prototype.InitLabels = function() {
                    this.SetToCancelButtonLabel.string = this._setToCancelButtonKey.ToUILocale(), this.SetToUseButtonLabel.string = this._setToUseButonKey.ToUILocale(), this.PlayButtonLabel.string = this._playButtonKey.ToUILocale()
                }, t.prototype.InitFavorbookItemList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this.HandbookItemsContainer.destroyAllChildren(), this._itemInstanceMap.clear(), e = this.HandbookItemsContainer.getComponent(cc.Layout), this._currHeroConfig.AdultPictures.length <= 3 ? e.type = cc.Layout.Type.HORIZONTAL : e.type = cc.Layout.Type.GRID, null != this._handbookItemPrefeb ? [3, 2] : (t = this, [4, u.AssetsManager.Instance.LoadAsset("HeroFavorPanel/SubItems/FavorHandbookItem")]);
                                case 1:
                                    t._handbookItemPrefeb = s.sent(), s.label = 2;
                                case 2:
                                    for (n = 0; n < this._currHeroConfig.AdultPictures.length; n++) o = this._currHeroConfig.AdultPictures[n].Items[0], r = this._currHeroConfig.AdultPictures[n].Items[1], i = cc.instantiate(this._handbookItemPrefeb), a = i.getComponent(f.default), l = this._currHeroData.AdultPicture == o, c = this._currHeroData.FavorLevel >= r, a.Init(this, l, c, o, r), this.HandbookItemsContainer.addChild(i), this._itemInstanceMap.set(o, a);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetButtonView = function() {
                    if (0 != this._itemIdSelected) {
                        var e = this._itemInstanceMap.get(this._itemIdSelected);
                        this.SetToCancelButton.node.active = e.IsInUse, this.SetToUseButton.node.active = !e.IsInUse, this.PlayButton.node.active = !0
                    } else this.SetToCancelButton.node.active = !1, this.SetToUseButton.node.active = !1, this.PlayButton.node.active = !1
                }, t.prototype.OnItemSelected = function(e) {
                    0 != this._itemIdSelected && this._itemInstanceMap.get(this._itemIdSelected).SetSelecteStatus(!1), this._itemIdSelected = e, this.SetButtonView()
                }, t.prototype.OnReturnButtonClicked = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnSetToUseButtonClicked = function() {
                    var e = new c.Req_Favor_SetAdultPictures;
                    e.HeroId = this._currHeroId;
                    for (var t = 0; t < this._currHeroConfig.AdultPictures.length; t++)
                        if (this._itemIdSelected == this._currHeroConfig.AdultPictures[t].Items[0]) {
                            e.Index = t;
                            break
                        } u.EZLog.Log("OnSetToUseButtonClicked CurrentHeroID " + e.HeroId), d.RpcComponent.Instance.Call(e, this.OnSendRequestSuccess.bind(this))
                }, t.prototype.OnSetToCancelButtonClicked = function() {
                    u.EZLog.Log("OnSetToCancelButtonClicked CurrentHeroID " + this._currHeroId);
                    var e = new c.Req_Favor_SetAdultPictures;
                    e.HeroId = this._currHeroId, e.Index = -1, u.EZLog.Log("OnSetToUseButtonClicked CurrentHeroID " + e.HeroId), d.RpcComponent.Instance.Call(e, this.OnSendRequestSuccess.bind(this))
                }, t.prototype.OnSendRequestSuccess = function() {
                    var e = this;
                    this._currHeroData = h.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._currHeroId), this._itemInstanceMap.forEach(function(t) {
                        t.ItemId == e._currHeroData.AdultPicture ? t.SetInUseStatus(!0) : t.SetInUseStatus(!1)
                    }), this.SetButtonView()
                }, t.prototype.OnPlayButtonClicked = function() {
                    u.UIManager.Instance.ShowUIPanel(p.PanelConfig.ShowOffAdultPicturePanel.Path, this._itemIdSelected)
                }, i([m(cc.Node)], t.prototype, "HandbookItemsContainer", void 0), i([m(cc.Button)], t.prototype, "SetToUseButton", void 0), i([m(cc.Label)], t.prototype, "SetToUseButtonLabel", void 0), i([m(cc.Button)], t.prototype, "SetToCancelButton", void 0), i([m(cc.Label)], t.prototype, "SetToCancelButtonLabel", void 0), i([m(cc.Button)], t.prototype, "PlayButton", void 0), i([m(cc.Label)], t.prototype, "PlayButtonLabel", void 0), i([m(cc.Button)], t.prototype, "ReturnButton", void 0), i([g], t)
            }(u.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/FavorHandbookItem": "FavorHandbookItem"
    }],
    FavorNodeAttrItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cf987jdKkFNUrRak4Nkbzh5", "FavorNodeAttrItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FavorNodeAttrItemType = void 0;
        var a, s = e("../../Auxiliary/DataUtlity"),
            l = e("../Auxiliary/UIUtlity"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Success = 1] = "Success"
        })(a = n.FavorNodeAttrItemType || (n.FavorNodeAttrItemType = {}));
        var d = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Background = null, t.Preground = null, t.HeartPicture = null, t.FavorLabelOnHeart = null, t.FavorLabelOnHeartSuccess = null, t.NormalNode = null, t.SuccessNode = null, t.FavorLabelNormal = null, t.FavorLabelSuccess = null, t.AttributeLabelNormal = null, t.AttributeLabelSuccess = null, t._attrNodeKey = ["FavorUpgradeSuccess_NodeAttrEffect", "FavorUpgradeSuccess_NodeAttrEffectSuccess"], t._favorLevelKey = "FavorUpgradeSuccess_NodeAttrCurrLevel", t._heartSrcs = ["heroFavor_progress_1", "heroFavor_progress_2", "heroFavor_progress_3"], t._currFavorLevelConfig = null, t
            }
            return r(t, e), t.prototype.Init = function(e, t, n) {
                void 0 === n && (n = a.Normal), this.NormalNode.active = n == a.Normal, this.SuccessNode.active = n == a.Success, this._currFavorLevelConfig = t, this.FavorLabelOnHeart.string = e.toString();
                var o = s.default.Instance.GetFavorNodeAttrStringByConfigId(t.Id);
                switch (n) {
                    case a.Normal:
                        this.FavorLabelOnHeart.string = e.toString(), this.FavorLabelNormal.string = this._favorLevelKey.ToUILocale().Fmt(e.toString()), this.AttributeLabelNormal.string = this._attrNodeKey[0].ToUILocale().Fmt(o[0], o[1]);
                        break;
                    case a.Success:
                        this.FavorLabelOnHeartSuccess.string = e.toString(), this.FavorLabelSuccess.string = this._favorLevelKey.ToUILocale().Fmt(e.toString()), this.AttributeLabelSuccess.string = this._attrNodeKey[1].ToUILocale().Fmt(o[0], o[1])
                }
                this.InitHeartPicture()
            }, t.prototype.InitHeartPicture = function() {
                this.HeartPicture.spriteFrame = l.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(this._heartSrcs[this._currFavorLevelConfig.Grade - 1])
            }, t.prototype.SetToPositive = function() {
                this.FavorLabelNormal.node.opacity = 125, this.AttributeLabelNormal.node.opacity = 125
            }, t.prototype.onLoad = function() {}, t.prototype.start = function() {}, i([p(cc.Sprite)], t.prototype, "Background", void 0), i([p(cc.Sprite)], t.prototype, "Preground", void 0), i([p(cc.Sprite)], t.prototype, "HeartPicture", void 0), i([p(cc.Label)], t.prototype, "FavorLabelOnHeart", void 0), i([p(cc.Label)], t.prototype, "FavorLabelOnHeartSuccess", void 0), i([p(cc.Node)], t.prototype, "NormalNode", void 0), i([p(cc.Node)], t.prototype, "SuccessNode", void 0), i([p(cc.Label)], t.prototype, "FavorLabelNormal", void 0), i([p(cc.Label)], t.prototype, "FavorLabelSuccess", void 0), i([p(cc.RichText)], t.prototype, "AttributeLabelNormal", void 0), i([p(cc.RichText)], t.prototype, "AttributeLabelSuccess", void 0), i([u], t)
        }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    FavorRebornPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "88afeiokqxLP64LmSDT2ies", "FavorRebornPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../../Components/RpcComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/CurrencyBarItem"),
            m = e("../Components/HeroFavorListItem"),
            I = e("../Components/ItemComponent"),
            _ = e("./FavorUpgradePanel"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed, !0), t.PanelTitleLabel = null, t.RuleRichText = null, t.LeftHeroContainer = null, t.RightHeroContainer = null, t.ResourcePartTitleLabel = null, t.ResourceItemsContainer = null, t.ConsumeItemBar = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t._favorListItemPrefeb = null, t._itemPrefab = null, t._favorXpItemConfigs = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked, this)
                }, t.prototype.OnItemClicked = function(e, t) {
                    -1 != this.ResourceItemsContainer.children.indexOf(t) && y.UIUtlity.ShowItemTip(parseInt(t.name))
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("HeroListPanel/HeroFavorListItem", cc.Prefab), this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        t._favorListItemPrefeb = e[0], t._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelTitleLabel.string = "FavorRebornPanel_PanelTitle".ToUILocale(), this.ResourcePartTitleLabel.string = "FavorRebornPanel_ResourceToReturn".ToUILocale(), this.ConfirmButtonLabel.string = "FavorRebornPanel_ConfirmReborn".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._heroBaseId = t[0], this._heroBaseConfig = h.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, this._heroBaseId), h.ConfigDataComponent.Instance.GetArrayConfig(l.ItemFavor_Config).forEach(function(e) {
                        if (1 == e.Favor[0]) {
                            var t = e.Favor[1];
                            n._favorXpItemConfigs[t - 1] || (n._favorXpItemConfigs[t - 1] = []), n._favorXpItemConfigs[t - 1].push(e)
                        }
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._heroData = h.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._heroBaseId), this.SetCurrencyBar(), this.SetFavorItemView(), this.SetResourceView(), this.RuleRichText.string = "FavorRebornPanel_Rule".ToUILocale().Fmt(this._heroBaseId.ToHeroName(), this._heroBaseId.ToHeroCharacteristicName(), this._currentFavorLevelConfig.ReturnRatio / 10)
                }, t.prototype.SetCurrencyBar = function() {
                    var e = this._heroData.MaxStar > 4 ? _.default.FavorLevelIdPrefix : 0,
                        t = h.ConfigDataComponent.Instance.GetConfigById(l.FavorLevel_Config, e + this._heroData.FavorLevel);
                    this._consumeItemId = t.ResetMaterials[0].Items[0], this._consumeItemCount = t.ResetMaterials[0].Items[1], this.ConsumeItemBar.Init(this._consumeItemId, !1, this._consumeItemCount), this.ConsumeItemBar.SetFixedWidth(239)
                }, t.prototype.SetFavorItemView = function() {
                    var e = cc.instantiate(this._favorListItemPrefeb);
                    e.getComponent(m.default).Init(this._heroBaseId), e.setParent(this.LeftHeroContainer);
                    var t = cc.instantiate(this._favorListItemPrefeb);
                    t.getComponent(m.default).Init(this._heroBaseId, !0), t.setParent(this.RightHeroContainer)
                }, t.prototype.SetResourceView = function() {
                    var e = this.GetTotalXp(),
                        t = this._favorXpItemConfigs[this._heroBaseConfig.ElementType - 1];
                    t.sort(function(e, t) {
                        return t.FavorXp - e.FavorXp
                    });
                    for (var n = 0; n < t.length; n++)
                        if (e > 0) {
                            var o = t[n],
                                r = n < t.length - 1 ? Math.floor(e / o.FavorXp) : Math.ceil(e / o.FavorXp);
                            r > 0 && this.RenderItem(o.Id, r), e -= r * o.FavorXp
                        }
                }, t.prototype.RenderItem = function(e, t) {
                    var n = cc.instantiate(this._itemPrefab);
                    n.name = e.toString(), n.getComponent(I.ItemComponent).Init({
                        ItemId: e,
                        Count: t
                    }), this.ResourceItemsContainer.addChild(n)
                }, t.prototype.GetTotalXp = function() {
                    var e = h.ConfigDataComponent.Instance.GetArrayConfig(l.FavorLevel_Config),
                        t = [];
                    this._heroData.MaxStar > 4 ? e.forEach(function(e) {
                        e.Id > _.default.FavorLevelIdPrefix && t.push(e)
                    }) : e.forEach(function(e) {
                        e.Id < _.default.FavorLevelIdPrefix && t.push(e)
                    }), t.sort(function(e, t) {
                        return e.Id - t.Id
                    });
                    for (var n = this._heroData.FavorXp, o = 0; o < this._heroData.FavorLevel; o++) n += t[o].Xp;
                    return this._currentFavorLevelConfig = t[this._heroData.FavorLevel - 1], n * this._currentFavorLevelConfig.ReturnRatio / 1e3
                }, t.prototype.OnConfirmButtonClicked = function() {
                    h.DataCenter.Instance.IsItemEnough(this._consumeItemId, this._consumeItemCount) ? (this.RequestFavorReset(), u.UIManager.Instance.BackUIPanel()) : y.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._consumeItemId.ToItemName()))
                }, t.prototype.RequestFavorReset = function() {
                    var e = new c.Req_Favor_Reset;
                    e.HeroId = this._heroBaseId, f.RpcComponent.Instance.Call(e, function(e) {
                        y.UIUtlity.ShwDisplayRewardPanel(e.Rewards), u.Game.EventDispatcher.Emit(p.EventKeys.EVENT_HERO_FAVOR_LEVEL_CHANGED)
                    })
                }, i([b(cc.Label)], t.prototype, "PanelTitleLabel", void 0), i([b(cc.RichText)], t.prototype, "RuleRichText", void 0), i([b(cc.Node)], t.prototype, "LeftHeroContainer", void 0), i([b(cc.Node)], t.prototype, "RightHeroContainer", void 0), i([b(cc.Label)], t.prototype, "ResourcePartTitleLabel", void 0), i([b(cc.Node)], t.prototype, "ResourceItemsContainer", void 0), i([b(g.default)], t.prototype, "ConsumeItemBar", void 0), i([b(cc.Button)], t.prototype, "ConfirmButton", void 0), i([b(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([v], t)
            }(u.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/HeroFavorListItem": "HeroFavorListItem",
        "../Components/ItemComponent": "ItemComponent",
        "./FavorUpgradePanel": "FavorUpgradePanel"
    }],
    FavorRoadAttrDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "deeabisXMdEya7UbM7hSyea", "FavorRoadAttrDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/AttrComponent2"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !0), t.PanelTitleLabel = null, t.PanelScrollView = null, t.NormalAttrTitleLabel = null, t.NoramlAttrTipNode = null, t.NormalAttrTipLabel = null, t.NormalAttrContainer = null, t.SpecialAttrTitleLabel = null, t.SpecialAttrTipNode = null, t.SpecialAttrTipLabel = null, t.SpecialAttrContainer = null, t._panelTitleKey = "FavorRoadAttrDetailPanelTitle", t._noAttrTipkey = "CollectionPavilion_Tip_UnAttr", t._favorRoadAttrData = null, t
                }
                return r(t, e), t.prototype.start = function() {}, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._favorRoadAttrData = t[0]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.InitAttrListView()
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelTitleLabel.string = this._panelTitleKey.ToUILocale(), this.NormalAttrTitleLabel.string = "hero_attr_base".ToUILocale(), this.SpecialAttrTitleLabel.string = "hero_attr_special".ToUILocale(), this.NormalAttrTipLabel.string = this._noAttrTipkey.ToUILocale(), this.SpecialAttrTipLabel.string = this._noAttrTipkey.ToUILocale()
                }, t.prototype.InitAttrListView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset("ItemsComponent/AttrComponent2")];
                                case 1:
                                    if (e = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (t = !1, n = !1, l.EZLog.Log("InitAttrListView length of favorRoadData : " + this._favorRoadAttrData.length), o = 0; o < this._favorRoadAttrData.length; o++) r = this._favorRoadAttrData[o][0], i = this._favorRoadAttrData[o][1], a = cc.instantiate(e), (u = a.getComponent(c.default)).Init(r, i), u.SetAttrValueStyle(421, 214), r < 4 ? (this.NormalAttrContainer.addChild(a), t = !0) : (this.SpecialAttrContainer.addChild(a), n = !0);
                                    return this.NormalAttrContainer.active = t, this.NoramlAttrTipNode.active = !t, this.SpecialAttrContainer.active = n, this.SpecialAttrTipNode.active = !n, this.PanelScrollView.scrollToTop(), [2]
                            }
                        })
                    })
                }, i([d(cc.Label)], t.prototype, "PanelTitleLabel", void 0), i([d(cc.ScrollView)], t.prototype, "PanelScrollView", void 0), i([d(cc.Label)], t.prototype, "NormalAttrTitleLabel", void 0), i([d(cc.Node)], t.prototype, "NoramlAttrTipNode", void 0), i([d(cc.Label)], t.prototype, "NormalAttrTipLabel", void 0), i([d(cc.Node)], t.prototype, "NormalAttrContainer", void 0), i([d(cc.Label)], t.prototype, "SpecialAttrTitleLabel", void 0), i([d(cc.Node)], t.prototype, "SpecialAttrTipNode", void 0), i([d(cc.Label)], t.prototype, "SpecialAttrTipLabel", void 0), i([d(cc.Node)], t.prototype, "SpecialAttrContainer", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/AttrComponent2": "AttrComponent2"
    }],
    FavorRoadItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6b443tP9RVONKezJ4IZb7XM", "FavorRoadItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("./HeroAttributeItem"),
            c = e("../../Auxiliary/EventKeys"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelLabel = null, t.ProgressFillerSprite = null, t.LeftSideTagIcon = null, t.TagIcon = null, t.AttibuteBackgroud = null, t.AttributeItems = [], t.PROGRESS_MAX_WIDTH = 294, t.ATRRIBUTE_WIDTH_NORMAL = 270, t.ATRRIBUTE_WIDTH_HIGHLiGHT = 284, t.ATRRIBUTE_HEIGHT_NORMAL = 44, t.ATRRIBUTE_HEIGHT_HIGHLIGHT = 58, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(c.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(c.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    void 0 === o && (o = !1), this.LeftSideTagIcon.node.active = o;
                    var r = e ? "infoBgHighLight" : "infoBg12",
                        i = e ? "nodeUnlock" : "nodeLock";
                    this.AttibuteBackgroud.node.height = e ? this.ATRRIBUTE_HEIGHT_HIGHLIGHT : this.ATRRIBUTE_HEIGHT_NORMAL, this.AttibuteBackgroud.node.width = e ? this.ATRRIBUTE_WIDTH_HIGHLiGHT : this.ATRRIBUTE_WIDTH_NORMAL, this.LevelLabel.node.color = e ? new cc.Color(255, 230, 133) : new cc.Color(255, 255, 255), this.LevelLabel.string = t[0].Items[0].toString(), this.ProgressFillerSprite.node.width = this.PROGRESS_MAX_WIDTH * n, this.TagIcon.spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame(i);
                    for (var a = e ? new cc.Color(110, 238, 167) : new cc.Color(255, 255, 255), l = 0; l < t.length; l++) this.AttributeItems[l].Init(t[l].Items[1], t[l].Items[2]), this.AttributeItems[l].SetValueLabelColor(a);
                    this.AttibuteBackgroud.spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame(r)
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, i([d(cc.Label)], t.prototype, "LevelLabel", void 0), i([d(cc.Sprite)], t.prototype, "ProgressFillerSprite", void 0), i([d(cc.Sprite)], t.prototype, "LeftSideTagIcon", void 0), i([d(cc.Sprite)], t.prototype, "TagIcon", void 0), i([d(cc.Sprite)], t.prototype, "AttibuteBackgroud", void 0), i([d(l.default)], t.prototype, "AttributeItems", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeroAttributeItem": "HeroAttributeItem"
    }],
    FavorUpgradePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "683dbPzblpBiJpw1iPsOocT", "FavorUpgradePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ItemFavorType = void 0;
        var l, c, u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Components/Components"),
            g = e("../../Components/DataCenter"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/HeroFavorItemComponent"),
            _ = e("./FavorGiftItem"),
            C = e("../../../../Proto/Static/RpcProto"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../../../Consts/Consts"),
            w = e("../../../../Proto/Static/ConfigProto"),
            P = e("../../Components/Components"),
            A = e("../../RedDot/RedDotManager"),
            T = e("../../Channel/ChannelManager"),
            R = e("../Components/CustomProgressBar"),
            L = e("../../Auxiliary/GameRecord"),
            k = e("../../../Util/TimeUtil"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property;
        (function(e) {
            e[e.Hero = 0] = "Hero", e[e.Angel = 1] = "Angel"
        })(l || (l = {})),
        function(e) {
            e[e.Low = 1] = "Low", e[e.Middle = 2] = "Middle", e[e.High = 3] = "High"
        }(c || (c = {})),
        function(e) {
            e[e.ForAll = 1] = "ForAll", e[e.ForHero = 2] = "ForHero"
        }(n.ItemFavorType || (n.ItemFavorType = {}));
        var B = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !0), t.PanelTitleLabel = null, t.PanelSubTitleLabel = null, t.RuleButton = null, t.RebornButton = null, t.RebornButtonLabel = null, t.AvatarContainer = null, t.FavorExpProgressBar = null, t.FavorExpProgressBarEnd = null, t.FavorIncreasedByGiftNode = null, t.FavorIncreasedLabel = null, t.CurrFavorXpLabel = null, t.AttrNextLevelNode = null, t.AttrNextLevelLabel = null, t.ExpBar = null, t.FavorItem = null, t.FavorAttrTitleLabel = null, t.FavorAttrDetailButton = null, t.FavorAttrValueLabel0 = null, t.FavorAttrValueLabel1 = null, t.FavorAttrValueLabel2 = null, t.FavorAttrValueLabel3 = null, t.FavorAttrValueLabel4 = null, t.FavorAttrExtraValueLabel0 = null, t.FavorAttrExtraValueLabel1 = null, t.FavorAttrExtraValueLabel2 = null, t.FavorAttrExtraValueLabel3 = null, t.FavorAttrExtraValueLabel4 = null, t.SendGiftTitleLabel = null, t.GiftsContiner = null, t.SendGiftButton = null, t.SendGiftButtonLabel = null, t.FavorFullPic = null, t.GiftsShopButton = null, t.GiftsShopButtonLabel = null, t.HandbookButton = null, t.HandbookButtonLabel = null, t.ReturnButton = null, t.TipForHoldButtonLabel = null, t.RewardButton = null, t.RewardLabel = null, t.AttrNode = null, t.ConsumeNode = null, t.QuickSendGiftButton = null, t.QuickSendGiftButtonLabel = null, t._favorItemModelsMap = null, t._currHeroId = 0, t._gradeForCurrHero = 1, t._currGradeFavorConfigs = [], t._currHeroGifts = [], t._progressBarSpriteSrcs = [
                    ["progress_bar_purple", "progress_purple"],
                    ["progress_orange1", "progress_orange2"],
                    ["progress_bar_red", "progress_red"]
                ], t._attrScopeKeys = ["FavorUpgrade_NextNodeAttrSelf", "FavorUpgrade_NextNodeAttrElement", "FavorUpgrade_NextNodeAttrAll"], t._attrValueLabelViews = null, t._attrExtraValueLabelViews = null, t._expDivAttrRate = 10, t._giftPrefeb = null, t._isFavorFull = !0, t._currSelectedItemMap = new Map, t._currFavorAddedByGift = 0, t._favorConfigsBeforeCurrLevel = [], t._currGradeFullXpNeed = 0, t._giftComponents = [], t._heroGradeChanged = !1, t._attrAddedMap = new Map, t._favorIncreasedKey = "FavorUpgrade_FavorIncreased", t._nextNodeAttrKey = "FavorUpgrade_NextNode", t._giftFavorXpAddKey = "FavorGift_FavorAdd", t._sendGiftBtnKey = "FavorUpgrade_SendGift", t._attrPartTitleKey = "FavorUpgrade_AttrPartTitle", t._giftShopBtnKey = "FavorUpgrade_GiftShopBtn", t._favorbookBtnKey = "FavorUpgrade_FavorbookBtn", t._favorFullKey = "FavorUpgrade_FavorFull", t._giftNotSelectedHintKey = "FavorUpgrade_GiftNotSelectedHint", t._beforeCurrLevelConfigs = [], t._currLevelConfigs = [], t._quickSendItemsArray = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return [2]
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this), this.GiftsContiner.destroyAllChildren(), this._giftComponents = [], this._type == l.Hero ? this._currHeroConfig = y.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._currHeroId) : this._type == l.Angel && (this._currAngelConfig = y.ConfigDataComponent.Instance.GetConfigById(w.AngelBase_Config, this._angelId)), this.InitHeroData(), this.ConfigFavorLevelConfigs(), this.ConfigGiftsDataForCurrHero(), this.ConfigExpAttrData(), this.InitLabels(), this.SetProgressView(), this.SetAttrView(), this.SetSendGiftView(), this.SetSendGiftButton(), this.SetHeroAvatarView(), this.BindReddot()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), t[1] && t[1] == l.Angel ? (this._type = l.Angel, this._angelId = t[0]) : (this._attrValueLabelViews = new Map([
                    [100, this.FavorAttrValueLabel0],
                    [101, this.FavorAttrValueLabel1],
                    [102, this.FavorAttrValueLabel2],
                    [103, this.FavorAttrValueLabel3],
                    [21, this.FavorAttrValueLabel4]
                ]), this._attrExtraValueLabelViews = new Map([
                    [100, this.FavorAttrExtraValueLabel0],
                    [101, this.FavorAttrExtraValueLabel1],
                    [102, this.FavorAttrExtraValueLabel2],
                    [103, this.FavorAttrExtraValueLabel3],
                    [21, this.FavorAttrExtraValueLabel4]
                ]), this._type = l.Hero, this._currHeroId = t[0]), d.EZLog.Log("FavorUpgradePane InitData : " + this._currHeroId), this.AttrNode.active = this._type == l.Hero, this.GiftsShopButton.node.active = this._type == l.Hero, this.RebornButton.node.active = this._type == l.Hero, this.RewardButton.node.active = this._type == l.Angel
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.RebornButtonLabel.string = "FavorRebornPanel_PanelTitle".ToUILocale(), this.RewardLabel.string = "angel_reward_desc".ToUILocale(), this.QuickSendGiftButtonLabel.string = "FavorUprade_QuickSend".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClicked, this), this.ReturnButton.node.on("click", this.OnReturnButtonClicked, this), this.SendGiftButton.node.on("click", this.OnSendGiftButtonClicked, this), this.HandbookButton.node.on("click", this.OnFavorHandbookButtonClicked, this), this.GiftsShopButton.node.on("click", this.OnGiftShopButtonClicked, this), this.FavorAttrDetailButton.node.on("click", this.OnAttrDetailButtonClicked, this), this.RebornButton.node.on("click", this.OnRebornButtonClicked, this), this.RewardButton.node.on("click", this.OnRewardButtonClicked, this), this.QuickSendGiftButton.node.on("click", this.OnQuickSendGiftButtonClicked, this)
            }, t.prototype.InitHeroData = function() {
                this._type == l.Hero ? this._currHeroFavorData = g.DataCenter.Instance.GetDataById(p.HeroInfo_Model, this._currHeroId) : this._type == l.Angel && (this._angelModel = g.DataCenter.Instance.GetDataById(C.UserAngel_Model, this._angelId))
            }, t.prototype.ConfigFavorLevelConfigs = function() {
                if (this._type == l.Hero) {
                    var e = f.default.Instance.GetCurrentHeroFavorConfigs(this._currHeroId);
                    this._favorConfigsBeforeCurrLevel = e[0], this._currGradeFavorConfigs = e[1], this._currGradeFavorConfigs.length > 0 && this._gradeForCurrHero != this._currGradeFavorConfigs[0].Grade && (this._heroGradeChanged = !0, this._gradeForCurrHero = this._currGradeFavorConfigs[0].Grade), this.IsHeroFavorFull() && (4 == this._currHeroConfig.StarLevel && (this._gradeForCurrHero = c.Middle), 5 == this._currHeroConfig.StarLevel && (this._gradeForCurrHero = c.High)), this._currGradeFullXpNeed = 0;
                    for (var t = 0; t < this._currGradeFavorConfigs.length; t++) this._currGradeFullXpNeed += this._currGradeFavorConfigs[t].Xp;
                    this._currGradeFullXpNeed -= this._currHeroFavorData.FavorXp
                } else if (this._type == l.Angel) {
                    var n = this._angelModel.FavorLevel + 1,
                        o = y.ConfigDataComponent.Instance.GetArrayConfig(w.AngelFavorLevel_Config);
                    this._beforeCurrLevelConfigs = [], this._currLevelConfigs = [], this._currGradeFullXpNeed = 0;
                    for (var r = 0, i = o; r < i.length; r++) {
                        var a = i[r];
                        a.Id < n ? this._beforeCurrLevelConfigs.push(a) : a.Id == n && (this._currLevelConfigs.push(a), this._currGradeFullXpNeed = a.Xp - this._angelModel.FavorXp)
                    }
                }
            }, t.prototype.ConfigGiftsDataForCurrHero = function() {
                this._type == l.Hero && (this._currHeroGifts = f.default.Instance.GetFavorGiftsForCurrentGrade(this._currHeroId))
            }, t.prototype.InitLabels = function() {
                if (this._type == l.Hero) {
                    var e = T.default.Instance.IsVNChannel();
                    this.PanelSubTitleLabel.node.active = !e, e || (this.PanelSubTitleLabel.string = this._currHeroConfig.Id.ToHeroTitle()), this.PanelTitleLabel.string = this._currHeroConfig.Id.ToHeroName(), this.GiftsShopButtonLabel.string = this._giftShopBtnKey.ToUILocale(), this.FavorAttrValueLabel0.string = "+0", this.FavorAttrValueLabel1.string = "+0", this.FavorAttrValueLabel2.string = "+0", this.FavorAttrValueLabel3.string = "+0"
                } else this._type == l.Angel && (this.PanelTitleLabel.string = "", this.PanelSubTitleLabel.string = this._currAngelConfig.Id.ToAngelTitle(), this.HandbookButton.node.active = !1, this.ConsumeNode.y = 110);
                this.FavorAttrTitleLabel.string = this._attrPartTitleKey.ToUILocale(), this.SendGiftTitleLabel.string = this._sendGiftBtnKey.ToUILocale(), this.SendGiftButtonLabel.string = this._sendGiftBtnKey.ToUILocale(), this.HandbookButtonLabel.string = this._favorbookBtnKey.ToUILocale(), this.TipForHoldButtonLabel.string = "FavorUpgrade_TipForHoldButton".ToUILocale()
            }, t.prototype.SetHeroAvatarView = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this.AvatarContainer.destroyAllChildren(), this._type == l.Hero ? e = this._currHeroConfig.UIAvatar : this._type == l.Angel && (t = void 0, this._angelModel.SkinId > 0 ? t = P.ConfigDataComponent.Instance.GetConfigById(w.AngelGodAvatar_Config, this._angelModel.SkinId) : (n = P.ConfigDataComponent.Instance.GetConfigById(w.AngelStar_Config, 1e3 * this._angelId + this._angelModel.StarLevel), t = P.ConfigDataComponent.Instance.GetConfigById(w.AngelGodAvatar_Config, n.AngelShape)), e = t.UIAvatar), [4, this.LoadDynamicAsset(e + "/Avatar")];
                            case 1:
                                return o = i.sent(), this.isValid ? (o.name == e + "/Avatar" && ((r = cc.instantiate(o)).setParent(this.AvatarContainer), this._type == l.Hero && f.default.Instance.SetHeroAvatarSkin(r, this._currHeroConfig.Id, this._currHeroConfig.StarLevel), this._avatarAlphaTween && this._avatarAlphaTween.stop(), this._isReDisplay || (r.opacity = 20, this._avatarAlphaTween = cc.tween(r).to(.25, {
                                    opacity: 255
                                }, {
                                    easing: "cubicIn"
                                }).start()), this._isReDisplay = !1), [2]) : (d.AssetsManager.Instance.UnloadAsset(o), [2])
                        }
                    })
                })
            }, t.prototype.BindReddot = function() {
                this._type == l.Angel && A.RedDotManager.Instance.BindInstance(this.SendGiftButton.node, A.RedDotManager.Instance.InstanceRedDot.AngelFavorSendGiftButton, {
                    Value1: this._angelId
                }), this._type == l.Hero && A.RedDotManager.Instance.BindInstance(this.QuickSendGiftButton.node, A.RedDotManager.Instance.InstanceRedDot.FavorQuickSendNode, {
                    Value1: this._currHeroId
                })
            }, t.prototype.SetProgressView = function() {
                this._type == l.Hero ? this.FavorExpProgressBarEnd.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeUnlock") : this._type == l.Angel && (this.FavorExpProgressBar.barSprite.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("progress_11"), this.FavorExpProgressBarEnd.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeUnlock")), this.RefreshProgressView()
            }, t.prototype.ConfigExpAttrData = function() {
                if (this._currFavorAddedByGift = 0, this._type == l.Hero) {
                    this._attrAddedMap.clear();
                    for (var e = 0; e < this._favorConfigsBeforeCurrLevel.length; e++)
                        for (var t = 0; t < this._favorConfigsBeforeCurrLevel[e].XpAttr.length; t++) {
                            var n = this._favorConfigsBeforeCurrLevel[e].XpAttr[t].Items[0],
                                o = Math.floor(this._favorConfigsBeforeCurrLevel[e].XpAttr[t].Items[1] * this._favorConfigsBeforeCurrLevel[e].Xp / this._expDivAttrRate);
                            0 == this._attrAddedMap.has(n) ? this._attrAddedMap.set(n, o) : this._attrAddedMap.set(n, this._attrAddedMap.get(n) + o)
                        }
                    if (this._currGradeFavorConfigs.length > 0)
                        for (t = 0; t < this._currGradeFavorConfigs[0].XpAttr.length; t++) n = this._currGradeFavorConfigs[0].XpAttr[t].Items[0], o = Math.floor(this._currHeroFavorData.FavorXp * this._currGradeFavorConfigs[0].XpAttr[t].Items[1] / this._expDivAttrRate), 0 == this._attrAddedMap.has(n) ? this._attrAddedMap.set(n, o) : this._attrAddedMap.set(n, this._attrAddedMap.get(n) + o)
                }
            }, t.prototype.SetAttrView = function() {
                var e = this;
                this._type == l.Hero && this._attrAddedMap.forEach(function(t, n) {
                    e._attrValueLabelViews.get(n).string = "+" + f.default.GetHeroAttributeValue(t, n, void 0, !0)
                })
            }, t.prototype.SetAttrViewAddedByGifts = function() {
                if (this._type == l.Hero) {
                    for (var e = new Map, t = this._currFavorAddedByGift, n = 0; n < this._currGradeFavorConfigs.length && !(t <= 0); n++) {
                        for (var o = 0 == n ? this._currGradeFavorConfigs[n].Xp - this._currHeroFavorData.FavorXp : this._currGradeFavorConfigs[n].Xp, r = Math.min(t, o), i = 0; i < this._currGradeFavorConfigs[n].XpAttr.length; i++) {
                            var a = this._currGradeFavorConfigs[n].XpAttr[i].Items[0],
                                s = Math.floor(this._currGradeFavorConfigs[n].XpAttr[i].Items[1] * r / this._expDivAttrRate);
                            e.has(a) ? e.set(a, e.get(a) + s) : e.set(a, s)
                        }
                        t -= r
                    }
                    this._attrExtraValueLabelViews.forEach(function(t, n) {
                        e.has(n) ? t.string = "+" + f.default.GetHeroAttributeValue(e.get(n), n, void 0, !0) : t.string = ""
                    })
                }
            }, t.prototype.refreshSendGiftView = function() {
                var e;
                this._type == l.Hero ? e = this.IsHeroFavorFull() : this._type == l.Angel && (e = this.IsAngelFavorFull());
                for (var t = 0; t < this._giftComponents.length; t++) this._giftComponents[t].RefreshItemStatus(e)
            }, t.prototype.SetSendGiftView = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, c, u, p, f;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return null != this._giftPrefeb ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroFavorPanel/SubItems/FavorGiftItem")]);
                            case 1:
                                if (e._giftPrefeb = s.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._giftPrefeb), [2];
                                s.label = 2;
                            case 2:
                                if (this._type == l.Hero)
                                    for (this._heroGradeChanged && (this.GiftsContiner.destroyAllChildren(), this._giftComponents = []), i = this.IsHeroFavorFull(), c = 0; c < this._currHeroGifts.length; c++) p = cc.instantiate(this._giftPrefeb), f = p.getComponent(_.default), t = this._currHeroGifts[c], n = t.Favor[0], o = t.Favor[1], r = !1, (1 == n && (o == this._currHeroConfig.ElementType || 0 == o) || 2 == n && o == this._currHeroConfig.Id) && (r = !0), f.Init(this._currHeroGifts[c].Id, this, r, i, 0), this.GiftsContiner.addChild(p), this._giftComponents.push(f);
                                else if (this._type == l.Angel)
                                    for (i = this.IsAngelFavorFull(), a = P.ConfigDataComponent.Instance.GetConfigById(w.LevelParam_Config, h.LevelParamType.AngelFavorItem), c = 0; c < a.Data2.length; c++) u = a.Data2[c], p = cc.instantiate(this._giftPrefeb), (f = p.getComponent(_.default)).Init(u.Items[0], this, !0, i, 1), this.GiftsContiner.addChild(p), this._giftComponents.push(f);
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetSendGiftButton = function() {
                this._type == l.Hero ? (this.SendGiftButton.node.active = !this.IsHeroFavorFull(), this.FavorFullPic.node.active = this.IsHeroFavorFull(), this.QuickSendGiftButton.node.active = f.default.Instance.IsGameModuleUnlock(S.GameModuleType.FavorUpgrade_QuickSend)[0] && !this.IsHeroFavorFull()) : this._type == l.Angel && (this.SendGiftButton.node.active = !this.IsAngelFavorFull(), this.FavorFullPic.node.active = this.IsAngelFavorFull())
            }, t.prototype.OnAttrDetailButtonClicked = function() {
                d.UIManager.Instance.ShowUIPanel(v.PanelConfig.FavorAttrDetailPanel.Path, this._attrAddedMap, this._currHeroId)
            }, t.prototype.OnRuleButtonClicked = function() {
                if (this._type == l.Hero) {
                    var e = {
                        name: "Favor_Rule_Title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["Favor_Rule_Content1".ToUILocale()]
                    };
                    m.UIUtlity.ShowRulePanel(e)
                } else this._type == l.Angel && (e = {
                    name: "angel_favor".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["angel_favor_rule_content".ToUILocale()]
                }, m.UIUtlity.ShowRulePanel(e))
            }, t.prototype.OnAddGiftButtonClicked = function(e, t) {
                if (this._currSelectedItemMap.has(e) ? this._currSelectedItemMap.set(e, this._currSelectedItemMap.get(e) + 1) : this._currSelectedItemMap.set(e, 1), this._type == l.Hero) {
                    var o = y.ConfigDataComponent.Instance.GetConfigById(u.ItemFavor_Config, e);
                    this._currFavorAddedByGift += t ? o.FavorXp : o.NoFeelXp
                } else if (this._type == l.Angel) {
                    var r = n.GetAngelGiftCountById(e);
                    this._currFavorAddedByGift += r
                }
                this.SetAttrViewAddedByGifts(), this.RefreshProgressView()
            }, t.prototype.OnReduceGiftButtonClicked = function(e, t) {
                if (this._currSelectedItemMap.set(e, this._currSelectedItemMap.get(e) - 1), this._currSelectedItemMap.get(e) <= 1 && this._currSelectedItemMap.delete(e), this._type == l.Hero) {
                    var o = y.ConfigDataComponent.Instance.GetConfigById(u.ItemFavor_Config, e);
                    this._currFavorAddedByGift -= t ? o.FavorXp : o.NoFeelXp
                } else if (this._type == l.Angel) {
                    var r = n.GetAngelGiftCountById(e);
                    this._currFavorAddedByGift -= r
                }
                this.SetAttrViewAddedByGifts(), this._currFavorAddedByGift <= 0 && this._currSelectedItemMap.clear(), this.RefreshProgressView()
            }, t.GetAngelGiftCountById = function(e) {
                for (var t = P.ConfigDataComponent.Instance.GetConfigById(w.LevelParam_Config, h.LevelParamType.AngelFavorItem), n = 0; n < t.Data2.length; n++) {
                    var o = t.Data2[n];
                    if (o.Items[0] == e) return o.Items[1]
                }
                return 0
            }, t.prototype.RefreshProgressView = function() {
                if (this._type == l.Hero)
                    if (this.FavorItem.Init(this._currHeroId), this.IsHeroFavorFull()) this.CurrFavorXpLabel.string = "", this.FavorExpProgressBar.progress = 1, this.AttrNextLevelNode.active = !1, this.AttrNextLevelLabel.string = "";
                    else {
                        var e = f.default.Instance.GetFavorNodeAttrStringByConfigId(this._currGradeFavorConfigs[0].Id);
                        this.AttrNextLevelLabel.string = this._nextNodeAttrKey.ToUILocale().Fmt(e[0], e[1]), this.CurrFavorXpLabel.string = this._currHeroFavorData.FavorXp + this._currFavorAddedByGift + "/" + this._currGradeFavorConfigs[0].Xp, this.FavorExpProgressBar.progress = Math.min((this._currHeroFavorData.FavorXp + this._currFavorAddedByGift) / this._currGradeFavorConfigs[0].Xp, 1)
                    }
                else this._type == l.Angel && (this.FavorItem.Init(this._angelId, null, I.HeroFavorItemType.Angel), this.AttrNextLevelNode.active = !1, this.IsAngelFavorFull() ? (this.CurrFavorXpLabel.string = "", this.FavorExpProgressBar.progress = 1) : (this.CurrFavorXpLabel.string = this._angelModel.FavorXp + this._currFavorAddedByGift + "/" + this._currLevelConfigs[0].Xp, this.FavorExpProgressBar.progress = Math.min((this._angelModel.FavorXp + this._currFavorAddedByGift) / this._currLevelConfigs[0].Xp, 1)));
                this._currFavorAddedByGift > 0 ? (this.FavorIncreasedByGiftNode.active = !0, this.FavorIncreasedLabel.string = this._favorIncreasedKey.ToUILocale().Fmt(this._currFavorAddedByGift.toString())) : this.FavorIncreasedByGiftNode.active = !1
            }, t.prototype.OnSendGiftButtonClicked = function() {
                if (this._currFavorAddedByGift <= 0) m.UIUtlity.ShowFloatingHint(this._giftNotSelectedHintKey.ToUILocale());
                else if (this._currFavorAddedByGift > this._currGradeFullXpNeed) m.UIUtlity.ShowHintPanel("hint".ToUILocale(), "HeroFavor_XPExpired".ToUILocale().Fmt(this._currFavorAddedByGift - this._currGradeFullXpNeed), null, null, null, this.SendAddFavorRequest.bind(this));
                else {
                    for (var e = [], t = [], n = 0; n < this._giftComponents.length; n++)
                        if (this._giftComponents[n].itemCountSelected > 0) {
                            var o = [this._giftComponents[n].ItemId, this._giftComponents[n].itemCountSelected];
                            e.push(o)
                        } for (n = 0; n < e.length; n++) t[n] = new C.IntArray, t[n].Items = e[n];
                    this.SendAddFavorRequest(t)
                }
            }, t.prototype.SendAddFavorRequest = function(e) {
                if (this._type == l.Hero)(t = new C.Req_Favor_AddFavor).HeroId = this._currHeroId, t.Items = e, y.RpcComponent.Instance.Call(t, this.OnSendGiftSucess.bind(this));
                else if (this._type == l.Angel) {
                    var t;
                    (t = new C.Req_Item_AngelAddFavor).AngelId = this._angelId, t.Items = e, y.RpcComponent.Instance.Call(t, this.OnSendGiftSucess.bind(this))
                }
            }, t.prototype.OnSendGiftSucess = function(e) {
                this._type == l.Hero ? (this._quickSendItemsArray = [], g.DataCenter.Instance.GetDataById(p.HeroInfo_Model, this._currHeroId).FavorLevel != this._currHeroFavorData.FavorLevel ? (d.EZLog.Log("OnSendGiftSucess \u5347\u7ea7\u6210\u529f"), d.UIManager.Instance.ShowUIPanel(v.PanelConfig.FavorUpgradeSuccessPanel.Path, this._currHeroId, this._currHeroFavorData.FavorLevel, this._currGradeFavorConfigs, e.Rewards, 0), this.RefreshPanel(), d.Game.EventDispatcher.Emit(b.EventKeys.EVENT_HERO_FAVOR_LEVEL_CHANGED)) : (d.EZLog.Log("OnSendGiftSucess \u672a\u80fd\u5347\u7ea7"), this.RefreshPanel())) : this._type == l.Angel && (g.DataCenter.Instance.GetDataById(C.UserAngel_Model, this._angelId).FavorLevel != this._angelModel.FavorLevel && d.UIManager.Instance.ShowUIPanel(v.PanelConfig.FavorUpgradeSuccessPanel.Path, this._angelId, this._angelModel.FavorLevel, null, e.Rewards, 1), this.RefreshPanel())
            }, t.prototype.RefreshPanel = function() {
                this.InitHeroData(), this.ConfigFavorLevelConfigs(), this.ConfigGiftsDataForCurrHero(), this.ConfigExpAttrData(), this._type == l.Hero ? this._heroGradeChanged ? this.SetSendGiftView() : this.refreshSendGiftView() : this._type == l.Angel && this.refreshSendGiftView(), this.SetProgressView(), this.SetAttrView(), this.SetAttrViewAddedByGifts(), this.SetSendGiftButton(), this.BindReddot()
            }, t.prototype.OnFavorHandbookButtonClicked = function() {
                this._type == l.Hero && d.UIManager.Instance.ShowUIPanel(v.PanelConfig.FavorHandbookPanel.Path, this._currHeroId)
            }, t.prototype.IsCurrGradeExpFull = function() {
                return this._currFavorAddedByGift >= this._currGradeFullXpNeed
            }, t.prototype.OnReturnButtonClicked = function() {
                d.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnGiftShopButtonClicked = function() {
                this._type == l.Hero && d.UIManager.Instance.ShowUIPanel(v.PanelConfig.MallElderGiftPackPanel.Path, S.GiftPackType.FavorGift)
            }, t.prototype.OnRebornButtonClicked = function() {
                this._type == l.Hero && (this._currHeroFavorData.FavorLevel > 0 ? d.UIManager.Instance.ShowUIPanel(v.PanelConfig.FavorRebornPanel.Path, this._currHeroId) : m.UIUtlity.ShowFloatingHint("FavorUpgrade_NoFavorXp".ToUILocale()))
            }, t.prototype.OnRewardButtonClicked = function() {
                d.UIManager.Instance.ShowUIPanel(v.PanelConfig.AngelFavorRewardPanel.Path)
            }, t.prototype.OnQuickSendGiftButtonClicked = function() {
                var e = this,
                    t = this._currGradeFavorConfigs[0].Xp - this._currHeroFavorData.FavorXp,
                    n = parseInt(L.default.GetItem(L.GameRecordDefine.FavorUpgradeQuickSend)),
                    o = k.TimeUtil.Get0ClockTs(n) == k.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime);
                if (this._quickSendItemsArray.length > 0) o ? this.SendAddFavorRequest(this._quickSendItemsArray) : m.UIUtlity.ShowHintPanel(null, "FavorUpgrade_QuickSend_PanelContent".ToUILocale(), "", null, "", function() {
                    e.SendAddFavorRequest(e._quickSendItemsArray)
                }, null, L.GameRecordDefine.FavorUpgradeQuickSend, !0);
                else {
                    d.EZLog.Log("OnQuickSendGiftButtonClicked Calculate");
                    for (var r = [], i = 0; i < this._currHeroGifts.length; i++) {
                        var a = this._currHeroGifts[i],
                            s = g.DataCenter.Instance.GetItemCount(a.Id);
                        if (!(s <= 0)) {
                            var l = a.Favor[0],
                                c = a.Favor[1],
                                u = !1;
                            (1 == l && (c == this._currHeroConfig.ElementType || 0 == c) || 2 == l && c == this._currHeroConfig.Id) && (u = !0), r.push({
                                itemId: a.Id,
                                xp: u ? a.FavorXp : a.NoFeelXp,
                                amount: s
                            })
                        }
                    }
                    if (r.length > 0) {
                        var p = [];
                        for (r.sort(function(e, t) {
                                return e.xp - t.xp
                            }), i = 0; i < r.length; i++) {
                            var h = r[i],
                                f = new C.IntArray;
                            if (h.xp * h.amount >= t) {
                                f.Items = [h.itemId, Math.ceil(t / h.xp)], p.push(f);
                                break
                            }
                            f.Items = [h.itemId, h.amount], p.push(f), t -= h.xp * h.amount
                        }
                        this._quickSendItemsArray = p, o ? this.SendAddFavorRequest(this._quickSendItemsArray) : m.UIUtlity.ShowHintPanel(null, "FavorUpgrade_QuickSend_PanelContent".ToUILocale(), "", null, "", function() {
                            e.SendAddFavorRequest(e._quickSendItemsArray)
                        }, null, L.GameRecordDefine.FavorUpgradeQuickSend, !0)
                    } else {
                        var I = "FavorUpgrade_QuickSend_NoMaterial".ToUILocale();
                        m.UIUtlity.ShowFloatingHint(I)
                    }
                }
            }, t.prototype.IsHeroFavorFull = function() {
                return 0 == this._currGradeFavorConfigs.length
            }, t.prototype.IsAngelFavorFull = function() {
                return 0 == this._currLevelConfigs.length
            }, t.prototype.OnDispose = function() {
                this._heroGradeChanged = !1
            }, t.FavorLevelIdPrefix = 1e4, i([D(cc.Label)], t.prototype, "PanelTitleLabel", void 0), i([D(cc.Label)], t.prototype, "PanelSubTitleLabel", void 0), i([D(cc.Button)], t.prototype, "RuleButton", void 0), i([D(cc.Button)], t.prototype, "RebornButton", void 0), i([D(cc.Label)], t.prototype, "RebornButtonLabel", void 0), i([D(cc.Node)], t.prototype, "AvatarContainer", void 0), i([D(R.default)], t.prototype, "FavorExpProgressBar", void 0), i([D(cc.Sprite)], t.prototype, "FavorExpProgressBarEnd", void 0), i([D(cc.Node)], t.prototype, "FavorIncreasedByGiftNode", void 0), i([D(cc.RichText)], t.prototype, "FavorIncreasedLabel", void 0), i([D(cc.Label)], t.prototype, "CurrFavorXpLabel", void 0), i([D(cc.Node)], t.prototype, "AttrNextLevelNode", void 0), i([D(cc.RichText)], t.prototype, "AttrNextLevelLabel", void 0), i([D(R.default)], t.prototype, "ExpBar", void 0), i([D(I.default)], t.prototype, "FavorItem", void 0), i([D(cc.Label)], t.prototype, "FavorAttrTitleLabel", void 0), i([D(cc.Button)], t.prototype, "FavorAttrDetailButton", void 0), i([D(cc.Label)], t.prototype, "FavorAttrValueLabel0", void 0), i([D(cc.Label)], t.prototype, "FavorAttrValueLabel1", void 0), i([D(cc.Label)], t.prototype, "FavorAttrValueLabel2", void 0), i([D(cc.Label)], t.prototype, "FavorAttrValueLabel3", void 0), i([D(cc.Label)], t.prototype, "FavorAttrValueLabel4", void 0), i([D(cc.Label)], t.prototype, "FavorAttrExtraValueLabel0", void 0), i([D(cc.Label)], t.prototype, "FavorAttrExtraValueLabel1", void 0), i([D(cc.Label)], t.prototype, "FavorAttrExtraValueLabel2", void 0), i([D(cc.Label)], t.prototype, "FavorAttrExtraValueLabel3", void 0), i([D(cc.Label)], t.prototype, "FavorAttrExtraValueLabel4", void 0), i([D(cc.Label)], t.prototype, "SendGiftTitleLabel", void 0), i([D(cc.Node)], t.prototype, "GiftsContiner", void 0), i([D(cc.Button)], t.prototype, "SendGiftButton", void 0), i([D(cc.Label)], t.prototype, "SendGiftButtonLabel", void 0), i([D(cc.Sprite)], t.prototype, "FavorFullPic", void 0), i([D(cc.Button)], t.prototype, "GiftsShopButton", void 0), i([D(cc.Label)], t.prototype, "GiftsShopButtonLabel", void 0), i([D(cc.Button)], t.prototype, "HandbookButton", void 0), i([D(cc.Label)], t.prototype, "HandbookButtonLabel", void 0), i([D(cc.Button)], t.prototype, "ReturnButton", void 0), i([D(cc.Label)], t.prototype, "TipForHoldButtonLabel", void 0), i([D(cc.Button)], t.prototype, "RewardButton", void 0), i([D(cc.Label)], t.prototype, "RewardLabel", void 0), i([D(cc.Node)], t.prototype, "AttrNode", void 0), i([D(cc.Node)], t.prototype, "ConsumeNode", void 0), i([D(cc.Button)], t.prototype, "QuickSendGiftButton", void 0), i([D(cc.Label)], t.prototype, "QuickSendGiftButtonLabel", void 0), n = i([M], t)
        }(d.BaseUIFullScreenPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/HeroFavorItemComponent": "HeroFavorItemComponent",
        "./FavorGiftItem": "FavorGiftItem"
    }],
    FavorUpgradeSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0a9a74oJR9AEJcKRNS5rwl0", "FavorUpgradeSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Components/Components"),
            I = e("../../Components/DataCenter"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../Components/ItemComponent"),
            v = e("./FavorNodeAttrItem"),
            b = e("./FavorUpgradePanel"),
            S = e("../../Auxiliary/EventKeys"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new h.UIPanelType(h.UINodeType.Tip, !1), t.HeroAvatarContainer = null, t.FavorIncreasedTitleLabel = null, t.PreviousFavorLevelLabel = null, t.PreviousFavorLevelInner = null, t.CurrentFavorLevelLabel = null, t.CurrentFavorLevelInner = null, t.NodeAttributeTitleLabel = null, t.NodeAttrScrollView = null, t.NodeAttrContainer = null, t.RewardTitleLabel = null, t.RewardsScrollView = null, t.RewardsContainer = null, t.AttrNode = null, t._increasedTitleKey = "FavorUpgradeSuccess_IncreasedTitle", t._attributeTitleKey = "FavorUpgradeSuccess_AttributeTitle", t._rewardsTitleKey = "FavorUpgradeSuccess_RewardsTitle", t._currHeroId = 0, t._currHeroData = null, t._currHeroConfig = null, t._currGrade = 1, t._previousLevel = 0, t._previousGrade = 1, t._currGradFavorConfigs = null, t._rewards = null, t._itemPrefab = null, t._attrItemPrefab = null, t._isReDisplay = !1, t._currAngelData = null, t._currAngelConfig = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._previousLevel = t[1], this._currGradFavorConfigs = t[2], this._rewards = t[3], this._type = t[4], 0 == this._type ? (this._currHeroId = t[0], this._currHeroData = I.DataCenter.Instance.GetDataById(d.HeroInfo_Model, this._currHeroId), this._currHeroConfig = m.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, this._currHeroId), this._favorConfigPrefix = b.default.FavorLevelIdPrefix, 4 == this._currHeroConfig.StarLevel && (this._favorConfigPrefix = 0), this._previousLevel > 0 && (this._previousGrade = m.ConfigDataComponent.Instance.GetConfigById(c.FavorLevel_Config, this._previousLevel + this._favorConfigPrefix).Grade), this._currGrade = m.ConfigDataComponent.Instance.GetConfigById(c.FavorLevel_Config, this._currHeroData.FavorLevel + this._favorConfigPrefix).Grade) : 1 == this._type && (this._angelId = t[0], this._currAngelData = I.DataCenter.Instance.GetDataById(d.UserAngel_Model, this._angelId), this._currAngelConfig = m.ConfigDataComponent.Instance.GetConfigById(c.AngelBase_Config, this._angelId), this._previousGrade = 3, this._currGrade = 3)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitLabels = function() {
                    this.FavorIncreasedTitleLabel.string = this._increasedTitleKey.ToUILocale(), this.NodeAttributeTitleLabel.string = this._attributeTitleKey.ToUILocale(), this.RewardTitleLabel.string = this._rewardsTitleKey.ToUILocale(), this.PreviousFavorLevelLabel.string = this._previousLevel.toString(), this.PreviousFavorLevelInner.spriteFrame = _.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("heroFavor_progress_" + this._previousGrade), this.CurrentFavorLevelInner.spriteFrame = _.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("heroFavor_progress_" + this._currGrade), 0 == this._type ? this.CurrentFavorLevelLabel.string = this._currHeroData.FavorLevel.toString() : 1 == this._type && (this.CurrentFavorLevelLabel.string = this._currAngelData.FavorLevel.toString())
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.InitLabels(), this.InitNodeAttributeList(), this.InitRewardsList(), this.LoadTitleAvatar(), this.CheckPlayAudio()
                }, t.prototype.InitNodeAttributeList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return 0 != this._type ? (this.AttrNode.active = !1, [2]) : (this.AttrNode.active = !0, this.NodeAttrContainer.destroyAllChildren(), null != this._attrItemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroFavorPanel/SubItems/FavorNodeAttrItem")]));
                                case 1:
                                    if (e._attrItemPrefab = s.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(this._attrItemPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    for (t = this._currHeroData.FavorLevel, n = b.default.FavorLevelIdPrefix, 4 == this._currHeroConfig.StarLevel && (n = 0), o = 0; o < this._currGradFavorConfigs.length && this._currGradFavorConfigs[o].Id - n <= t; o++) r = cc.instantiate(this._attrItemPrefab), i = r.getComponent(v.default), a = this._currGradFavorConfigs[o].Id - n, i.Init(a, this._currGradFavorConfigs[o], v.FavorNodeAttrItemType.Success), this.NodeAttrContainer.addChild(r);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitRewardsList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this.RewardsContainer.destroyAllChildren(), null != this._itemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(g.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = r.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    for (t = 0; t < this._rewards.length; t++)(n = cc.instantiate(this._itemPrefab)).getComponent(C.ItemComponent).Init({
                                        ItemId: this._rewards[t].ItemId,
                                        Count: this._rewards[t].Count
                                    }), this.RewardsContainer.addChild(n);
                                    return (o = this.RewardsContainer.getComponent(cc.Layout)).type = this._rewards.length <= 5 ? cc.Layout.Type.HORIZONTAL : cc.Layout.Type.GRID, o.updateLayout(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadTitleAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.HeroAvatarContainer.destroyAllChildren(), 0 == this._type ? e = this._currHeroConfig.UIAvatar : 1 == this._type && (t = void 0, this._currAngelData.SkinId > 0 ? t = p.ConfigDataComponent.Instance.GetConfigById(u.AngelGodAvatar_Config, this._currAngelData.SkinId) : (n = p.ConfigDataComponent.Instance.GetConfigById(u.AngelStar_Config, 1e3 * this._angelId + this._currAngelData.StarLevel), t = p.ConfigDataComponent.Instance.GetConfigById(u.AngelGodAvatar_Config, n.AngelShape)), e = t.UIAvatar), [4, this.LoadDynamicAsset(e + "/Avatar")];
                                case 1:
                                    return o = i.sent(), this.isValid ? (o.name == e + "/Avatar" && ((r = cc.instantiate(o)).setParent(this.HeroAvatarContainer), 0 == this._type && y.default.Instance.SetHeroAvatarSkin(r, this._currHeroConfig.Id, this._currHeroConfig.StarLevel), this._avatarAlphaTween && this._avatarAlphaTween.stop(), this._isReDisplay || (r.opacity = 20, this._avatarAlphaTween = cc.tween(r).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start()), this._isReDisplay = !1), this.NodeAttrScrollView.scrollToTop(), [2]) : (h.AssetsManager.Instance.UnloadAsset(o), [2])
                            }
                        })
                    })
                }, t.prototype.CheckPlayAudio = function() {
                    if (0 == this._type) {
                        var e = y.default.Instance.GetAudioRandomNumByType(f.RandomAudioType.FavorUpgrade, this._currHeroId);
                        e > 0 && h.AudioManager.Instance.PlayEffect(e)
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsContainer.children.indexOf(t) && _.UIUtlity.ShowItemTip(t.getComponent(C.ItemComponent).ItemId, t)
                }, i([A(cc.Node)], t.prototype, "HeroAvatarContainer", void 0), i([A(cc.Label)], t.prototype, "FavorIncreasedTitleLabel", void 0), i([A(cc.Label)], t.prototype, "PreviousFavorLevelLabel", void 0), i([A(cc.Sprite)], t.prototype, "PreviousFavorLevelInner", void 0), i([A(cc.Label)], t.prototype, "CurrentFavorLevelLabel", void 0), i([A(cc.Sprite)], t.prototype, "CurrentFavorLevelInner", void 0), i([A(cc.Label)], t.prototype, "NodeAttributeTitleLabel", void 0), i([A(cc.ScrollView)], t.prototype, "NodeAttrScrollView", void 0), i([A(cc.Node)], t.prototype, "NodeAttrContainer", void 0), i([A(cc.Label)], t.prototype, "RewardTitleLabel", void 0), i([A(cc.ScrollView)], t.prototype, "RewardsScrollView", void 0), i([A(cc.Node)], t.prototype, "RewardsContainer", void 0), i([A(cc.Node)], t.prototype, "AttrNode", void 0), i([P], t)
            }(h.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./FavorNodeAttrItem": "FavorNodeAttrItem",
        "./FavorUpgradePanel": "FavorUpgradePanel"
    }],
    FeedBackDrawGood: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2d082NnTXhM4ZeJhOcTBDm5", "FeedBackDrawGood");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DaythLabel = null, t.ItemContainer = null, t.HighLightBG = null, t.RedDotNode = null, t
                }
                return r(t, e), i([l(cc.Label)], t.prototype, "DaythLabel", void 0), i([l(cc.Node)], t.prototype, "ItemContainer", void 0), i([l(cc.Node)], t.prototype, "HighLightBG", void 0), i([l(cc.Node)], t.prototype, "RedDotNode", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    FeedbackGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e8a7elmeYBFQrEONtG0e9p4", "FeedbackGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("./NodePool"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/CustomLayout"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("./FeedbackRewardListItem"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../../Consts/Etc"),
            b = e("../../RedDot/RedDotManager"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.TopTip = null, t.RuleButton = null, t.RemainderTimeRichText = null, t.View = null, t._initLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemTouch, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnGetButtonClick, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_HOLYFURNACE_CLOSE, this.OnGoButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemTouch, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnGetButtonClick, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_HOLYFURNACE_CLOSE, this.OnGoButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(c.BundlePath.ItemComponent), this.LoadDynamicAsset("FeedbackGiftPanel/Private/RewardListItem")]).then(function(e) {
                                        t._itemPrefab = e[0], t._componentPrefab = e[1], t._pool = new h.default(t._itemPrefab)
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TopTip.string = "feedback_toptip".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this._configs = d.ConfigCacheComponent.Instance.GetFeedBackConfigs()
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), d.DataCenter.Instance.GetIntData(C.UserDataKey.FeedbackGiftStartTime) < 0) return l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_SET_VERTICAL_BUTTON, 19, -1), void l.UIManager.Instance.QuitPanelStack(c.PanelConfig.FeedbackGiftPanel.Path);
                    var n = new p.Req_Feedback_Enter;
                    d.RpcComponent.Instance.Call(n, this.OnFeedBackEnter.bind(this)), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1)
                }, t.prototype.CountDown = function() {
                    var e = d.RpcComponent.Instance.ServerTime,
                        t = d.DataCenter.Instance.GetIntData(C.UserDataKey.FeedbackGiftStartTime) + d.ConfigDataComponent.Instance.GetGlobalSettingByKey("FeedbackGiftDurationTime") * v.Etc.DayDuration - e;
                    t < 0 && (this.unschedule(this.CountDown), l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_SET_VERTICAL_BUTTON, 19, -1), l.UIManager.Instance.QuitPanelStack(c.PanelConfig.FeedbackGiftPanel.Path)), this.RemainderTimeRichText.string = "feedback_remainderTime".ToUILocale().Fmt(_.default.ActivityTimeLeftFormat(t))
                }, t.prototype.OnFeedBackEnter = function(e) {
                    this._payCount = e.PayCount, this._receivedData = e.Receive, d.DataCenter.Instance.SetTempData("feedBack_receivedData", e.Receive), this._initLayout && (this._initLayout = !1, this.View.Init(this._componentPrefab)), this.View.RenderLayOut(this._configs.length)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "feedback_RuleMainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["feedback_RuleText".ToUILocale()]
                    };
                    g.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.View && (this._configs.sort(function(e, t) {
                        return n.BitCompare(2 * e.Id - 1) ? 1 : n.BitCompare(2 * t.Id - 1) ? -1 : e.Id - t.Id
                    }), e.forEach(function(e, t) {
                        var o = n._configs[t].Id - 1;
                        e.getComponent(I.default).SetQuota(d.ConfigDataComponent.Instance.GetConfigById(u.PayCount_Config, n._configs[t].CountId).Count, n._payCount).SetRewards(n._pool, n._configs[t].Rewards).SetIndex(t).SetGet(n.BitCompare(2 * o), n.BitCompare(2 * o + 1))
                    }))
                }, t.prototype.OnItemTouch = function(e, t) {
                    "RewardGrid94" == t.parent.name && g.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.OnGetButtonClick = function(e) {
                    var t = new p.Req_Feedback_ReceiveRewards;
                    t.Id = this._configs[e].Id, d.RpcComponent.Instance.Call(t, function(e) {
                        g.UIUtlity.ShwDisplayRewardPanel(e.Rewards), b.RedDotManager.Instance.RefreshRedDotNode(b.RedDotManager.Instance.RedDot.FeedBackNode)
                    })
                }, t.prototype.OnGoButtonClick = function() {
                    _.default.Instance.HasBoughtFirstPay() ? l.UIManager.Instance.ShowUIPanel(c.PanelConfig.MallNewPanel.Path) : _.default.ShowActivityFirstPayPanel(!0)
                }, t.prototype.BitCompare = function(e) {
                    return 1 == (this._receivedData >> e & 1)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._pool && this._pool.Clear()
                }, i([P(cc.Label)], t.prototype, "TopTip", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.RichText)], t.prototype, "RemainderTimeRichText", void 0), i([P(y.default)], t.prototype, "View", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./FeedbackRewardListItem": "FeedbackRewardListItem",
        "./NodePool": "NodePool"
    }],
    FeedbackRewardListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f517dhklURKuosPaQxWZWPX", "FeedbackRewardListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("../../../Util/TimeUtil"),
            u = e("../../../Consts/Etc"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.FractionLabel = null, t.ItemContainer = null, t.GetButton = null, t.GetButtonLabel = null, t.GoButton = null, t.GoButtonLabel = null, t.CountDown = null, t.ReceivedTag = null, t._lastRemainder = Number.POSITIVE_INFINITY, t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.GetButton.node.on("click", this.OnGetButtonClick, this), this.GoButton.node.on("click", this.OnGoButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.GetButton.node.off("click", this.OnGetButtonClick, this), this.GoButton.node.off("click", this.OnGoButtonClick, this)
                }, t.prototype.SetQuota = function(e, t) {
                    return this.Title.string = "feedback_totalCharge".ToUILocale().Fmt(e), this.GetButtonLabel.string = "receive".ToUILocale(), this.GoButtonLabel.string = "task_goto".ToUILocale(), this.FractionLabel.string = t + "/" + e, this.GoButton.node.active = t < e, this._quota = e, this
                }, t.prototype.SetIndex = function(e) {
                    return this._index = e, this
                }, t.prototype.SetRewards = function(e, t) {
                    for (var n, o = 0; o < t.length; o++) {
                        if (null == this._items[o]) {
                            var r = e.Get();
                            r.setParent(this.ItemContainer), this._items[o] = r.getComponent(a.ItemComponent)
                        }
                        this._items[o].node.active = !0, n = l.ConfigDataComponent.Instance.GetConfigById(s.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? a.ItemComponentType.ItemWithStar : a.ItemComponentType.ItemCommon)
                    }
                    for (o = t.length; o < this._items.length; o++) this._items[o].node.active = !1;
                    return this
                }, t.prototype.SetGet = function(e, t) {
                    this.GoButton.node.active ? (this.GetButton.node.active = !1, this.CountDown.node.active = !1, this.ReceivedTag.active = !1) : (this.ReceivedTag.active = t, this.GetButton.node.active = e && !t, this.CountDown.node.active = !e && !t, this.CountDown.node.active && (this.CountDownToMidnight(), this.unschedule(this.CountDownToMidnight), this.schedule(this.CountDownToMidnight, 1)))
                }, t.prototype.CountDownToMidnight = function() {
                    var e = l.RpcComponent.Instance.ServerTime,
                        t = c.TimeUtil.Get0ClockTs(e),
                        n = u.Etc.DayDuration + t - e;
                    this._lastRemainder < n && (this.GetButton.node.active = !0, this.CountDown.node.active = !1, this.unschedule(this.CountDownToMidnight)), this._lastRemainder = n, this.CountDown.string = "feedback_itemCountDown".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(n))
                }, t.prototype.OnGetButtonClick = function() {
                    d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_MALL_BUTTONCLICK, this._index)
                }, t.prototype.OnGoButtonClick = function() {
                    d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_HOLYFURNACE_CLOSE)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([g(cc.RichText)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "FractionLabel", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Button)], t.prototype, "GetButton", void 0), i([g(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([g(cc.Button)], t.prototype, "GoButton", void 0), i([g(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([g(cc.RichText)], t.prototype, "CountDown", void 0), i([g(cc.Node)], t.prototype, "ReceivedTag", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    FetterSkillEffectItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e1ac7fANIBFP7NthSk39/B8", "FetterSkillEffectItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PointIcon = null, t.LevelLabel = null, t.RollText = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.PointIcon.spriteFrame = e ? a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeUnlock") : a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeLock"), this.LevelLabel.string = "CollectionPavilion_HeroFetter_SkillLevel".ToUILocale().Fmt(t), this.RollText.string = n
                }, i([c(cc.Sprite)], t.prototype, "PointIcon", void 0), i([c(cc.Label)], t.prototype, "LevelLabel", void 0), i([c(cc.RichText)], t.prototype, "RollText", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    FetterSkillMaterialComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9e102rTqNBNPZI7gD2SpNtb", "FetterSkillMaterialComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("./CurrencyBarItem"),
            u = e("./ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.CurrencyBarItem = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    if (!this._itemComponent) {
                        var o = cc.instantiate(e);
                        o.setParent(this.ItemNode), this._itemComponent = o.getComponent(u.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: t
                    }, u.ItemComponentType.ItemCommon), this.CurrencyBarItem.HideIcon(), this.CurrencyBarItem.Init(t, !1, null, n), this.CurrencyBarItem.SetFixedWidth(240)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && l.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, i([h(cc.Node)], t.prototype, "ItemNode", void 0), i([h(c.default)], t.prototype, "CurrencyBarItem", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CurrencyBarItem": "CurrencyBarItem",
        "./ItemComponent": "ItemComponent"
    }],
    FetterSkillUpSuccessAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1e00d8UMRRFLbq+GUouBS+c", "FetterSkillUpSuccessAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.AttrName = null, t.AttrValue = null, t.NextAttrValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this.AttrIcon.spriteFrame = e, this.AttrName.string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + t, this.AttrValue.string = "+" + n, this.NextAttrValue.string = "+" + o
                }, i([l(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([l(cc.Label)], t.prototype, "AttrName", void 0), i([l(cc.Label)], t.prototype, "AttrValue", void 0), i([l(cc.Label)], t.prototype, "NextAttrValue", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    FightingGameGuideComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c3ceeW3AcVCSaxc1BRib1ju", "FightingGameGuideComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/ConfigData/ConfigDataComponent"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = (p.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._guideGroupMap = {
                        1: [20001],
                        2: [20101, 20102, 20103, 20104, 20105, 20106, 20107, 20108, 20109, 20110, 20111, 20112, 20113, 20114, 20115, 20116]
                    }, t._isInGuide = !1, t._isPause = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_CLOSE_NPC_DIALOG, this.CheckNextStep, this), a.Game.EventDispatcher.On(u.EventKeys.EVENT_GUIDEHINT_CLOSE, this.CheckNextStep, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.EventKeys.EVENT_CLOSE_NPC_DIALOG, this.CheckNextStep, this), a.Game.EventDispatcher.Off(u.EventKeys.EVENT_GUIDEHINT_CLOSE, this.CheckNextStep, this)
                }, Object.defineProperty(t.prototype, "IsInGuide", {
                    get: function() {
                        return this._isInGuide
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.StartGuide = function(e, t) {
                    this._groupId = e, this._stepIndex = 0, this._showGuideCallBack = t, this._guideGroupMap[this._groupId] && (this._isInGuide = !0, this._showGuideCallBack(this._guideGroupMap[this._groupId][this._stepIndex]))
                }, t.prototype.PauseGuide = function() {
                    this._isPause = !0
                }, t.prototype.GoOnGuide = function() {
                    this._isPause = !1, this.CheckNextStep()
                }, t.prototype.ShowGuide = function(e) {
                    var t = l.ConfigDataComponent.Instance.GetConfigById(s.GuideStep_Config, this._guideGroupMap[this._groupId][this._stepIndex]);
                    if (t) switch (t.Type[0]) {
                        case 1:
                            a.UIManager.Instance.ShowUIPanel(c.PanelConfig.NPCDialog.Path, t.Type[1]);
                            break;
                        case 2:
                            a.UIManager.Instance.ShowUIPanel(c.PanelConfig.GuideHintPanel.Path, t.Type[1], e, !1)
                    }
                }, t.prototype.CheckNextStep = function() {
                    this._isInGuide && !this._isPause && (this._stepIndex++, this._stepIndex < this._guideGroupMap[this._groupId].length ? this._showGuideCallBack(this._guideGroupMap[this._groupId][this._stepIndex]) : (this._isInGuide = !1, this._showGuideCallBack()))
                }, i([d], t)
            }(cc.Component));
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent"
    }],
    FightingMiniGameBattlePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d9bedy9feBN34tKkqx8tdnj", "FightingMiniGameBattlePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u, p = e("../../../EZFramework/EZFramework"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/DataCenter"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Components/RpcComponent"),
            I = e("../../Components/Components"),
            _ = e("../../../Consts/Etc"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../../../ShareConsts/BattleConsts"),
            w = e("../../../Util/AppUtil"),
            P = e("../../Auxiliary/HeroSkillSound"),
            A = e("../Components/FightingGameGuideComponent"),
            T = e("../../../ShareConsts/ErrCode");
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Practice = 1] = "Practice", e[e.Guide = 2] = "Guide", e[e.ActivityTask = 3] = "ActivityTask", e[e.Test = 4] = "Test"
        })(l || (l = {})),
        function(e) {
            e[e.Command1 = 1] = "Command1", e[e.Command2 = 2] = "Command2", e[e.Command3 = 3] = "Command3", e[e.Command4 = 4] = "Command4"
        }(c || (c = {})),
        function(e) {
            e[e.None = 1] = "None", e[e.Fail = 2] = "Fail", e[e.Success = 3] = "Success"
        }(u || (u = {}));
        var R = cc._decorator,
            L = R.ccclass,
            k = R.property,
            O = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Title = null, t.BgNode = null, t.BgMaskNode = null, t.RoundNode = null, t.RoundBar = null, t.RoundLabel = null, t.AutoToggle = null, t.AutoToggleLabel = null, t.HintRichText = null, t.CommandBtns = [], t.CommandBtnsSprite = [], t.CommandBtnsLabel = [], t.CommandCommonEffect = null, t.CommandLightEffect = null, t.LeftBottomEffectNode = null, t.RightBottomEffectNode = null, t.LeftStandByNode = null, t.RightStandByNode = null, t.LeftAttackNode = null, t.RightAttackNode = null, t.LeftShowCommandNode = null, t.RightShowCommandNode = null, t.RemainRoundLabel = null, t.LeftHpBottom = null, t.LeftHp = null, t.LeftMp = null, t.RightHpBottom = null, t.RightHp = null, t.RightMp = null, t.LeftTagNode = null, t.RightTagNode = null, t.LeftMpBarLabel = null, t.RightMpBarLabel = null, t.BackButton = null, t.ResultBgNode = null, t.ResultSprite = null, t._intervalTime = 0, t._roundIntervalEndTimeStamp = 0, t._isAuto = !1, t._currentSkillPlayData = [], t._playingSounds = [], t._standBy = "standby", t._initialPosX = 250, t._targetDistanceX = 0, t._moveXTime = 0, t._hurtDuration = 300, t._bgOriginX = 0, t._bgOriginY = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(y.EventKeys.EVENT_FIGHTINGMINIGAME_PUSH, this.GetPushMessage, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(y.EventKeys.EVENT_FIGHTINGMINIGAME_PUSH, this.GetPushMessage, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("FightingMiniGamePanel/Png/FightingMiniGamePanel", cc.SpriteAtlas), this.LoadDynamicAsset("FightingMiniGamePanel/Skills/BlockSuccess/Skill", cc.Prefab), this.LoadDynamicAsset("FightingMiniGamePanel/Skills/BlockFail/Skill", cc.Prefab)]).then(function(e) {
                                        t._panelAtlas = e[0], t._blockSuccessPrefab = e[1], t._blockFailPrefab = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._playingSounds = [], this._roundBarMaxWidth = this.RoundNode.width, this.LeftTagNode.on(cc.Node.EventType.TOUCH_END, this.OnLeftTagNodeTouchEnd, this), this.RightTagNode.on(cc.Node.EventType.TOUCH_END, this.OnRightTagNodeTouchEnd, this), this.BackButton.node.on("click", this.OnBackButtonClick, this);
                    for (var t = 0; t < this.CommandBtns.length; t++) this.CommandBtns[t].node.name = (t + 1).toString(), this.CommandBtns[t].node.on("click", this.OnCommandButtonClick, this);
                    for (t = 0; t < this.CommandBtnsLabel.length; t++) this.CommandBtnsLabel[t].string = ("fighting_command" + (t + 1)).ToUILocale();
                    this.HintRichText.string = "<outline width=2 color=#3d3111>" + "fighting_battleTips".ToUILocale() + "</outline>", this.ShowBattleResult(!1), this.AutoToggleLabel.string = "fighting_auto".ToUILocale(), this.InitAutoToggle()
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._battleType = t[0];
                    var o = t[1];
                    this._message = this.AdjustPlayerOrder(t[2]), t[3] && (this._extraNumParam = t[3]), this._activityConfig = f.DataCenter.Instance.GetActivityConfigsByActId(o), this.Title.string = this._activityConfig.Common.Title, this._heroConfigMap = {}, this._activityConfig.__Hero.forEach(function(e) {
                        n._heroConfigMap[e.Id] = e
                    }), this._levelConfig = this._activityConfig.__Level.find(function(e) {
                        return e.Id == n._message.RoomInfo.Level
                    }), this._roundMaxTime = this._levelConfig.CountDown * _.Etc.SecondDuration, this._intervalTime = 0, this.InitPlayerComponent()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = I.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, this._message.RoomInfo.P1.HeroId), n = I.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, this._message.RoomInfo.P2.HeroId), this._leftSkillConfig = I.ConfigDataComponent.Instance.GetHeroSkillConfig("FH_" + t.Model), this._rightSkillConfig = I.ConfigDataComponent.Instance.GetHeroSkillConfig("FH_" + n.Model), [4, Promise.all([this.LoadDynamicAsset("FightHero_" + t.Model + "/HeroAvatar", cc.Prefab), this.LoadDynamicAsset("FightHero_" + n.Model + "/HeroAvatar", cc.Prefab), this.LoadDynamicAsset("FightHero_" + t.Model + "/SkillEffect", cc.Prefab), this.LoadDynamicAsset("FightHero_" + n.Model + "/SkillEffect", cc.Prefab), this.LoadDynamicAsset("FightHero_" + t.Model + "/Sounds", cc.Prefab), this.LoadDynamicAsset("FightHero_" + n.Model + "/Sounds", cc.Prefab), this.LoadDynamicAsset("UserInfo/Icon/" + this._message.RoomInfo.P1.HeadIcon, cc.SpriteFrame), this.LoadDynamicAsset("UserInfo/Frame/" + this._message.RoomInfo.P1.HeadFrame, cc.SpriteFrame), this.LoadDynamicAsset("UserInfo/Icon/" + this._message.RoomInfo.P2.HeadIcon, cc.SpriteFrame), this.LoadDynamicAsset("UserInfo/Frame/" + this._message.RoomInfo.P2.HeadFrame, cc.SpriteFrame)]).then(function(e) {
                                        o._leftHeroPrefab = e[0], o._rightHeroPrefab = e[1], o._leftSkillPrefab = e[2], o._rightSkillPrefab = e[3], o._leftSoundPrefab = e[4], o._rightSoundPrefab = e[5], o._leftPlayerIcon = e[6], o._leftPlayerFrame = e[7], o._rightPlayerIcon = e[8], o._rightPlayerFrame = e[9]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) switch (this.InitAvatar(), this._battleType) {
                        case l.Normal:
                            this.RemainRoundLabel.string = this._levelConfig.Round.toString(), this.RequestStartBattle();
                            break;
                        case l.Practice:
                        case l.ActivityTask:
                            this.PracticeBattleRoundStart();
                            break;
                        case l.Guide:
                            this.BackButton.node.active = !1, this.AutoToggle.node.active = !1, this.GuideBattleStart()
                    }
                }, t.prototype.InitAutoToggle = function() {
                    this._isAuto = !1, this.AutoToggle.isChecked = this._isAuto, this.AutoToggle.node.on("toggle", this.OnAutoToggle, this)
                }, t.prototype.OnAutoToggle = function() {
                    this._isAuto = this.AutoToggle.isChecked, this._isAuto && this._message.RoomInfo.Type == g.FightingMiniGameRoomType.RoundStart && this.RequestCommand()
                }, t.prototype.InitPlayerComponent = function() {
                    this._leftPlayer || (this._leftPlayer = new M(this.LeftHpBottom, this.LeftHp, this.LeftMp, this.LeftMpBarLabel), this._leftPlayer.Init(this, this._heroConfigMap[this._message.RoomInfo.P1.HeroId], this._message.RoomInfo.P1)), this._rightPlayer || (this._rightPlayer = new M(this.RightHpBottom, this.RightHp, this.RightMp, this.RightMpBarLabel), this._rightPlayer.Init(this, this._heroConfigMap[this._message.RoomInfo.P2.HeroId], this._message.RoomInfo.P2)), this._message.RoomInfo.P1.Uid == f.DataCenter.Instance.Uid ? this._myselfPlayerCompnent = this._leftPlayer : this._myselfPlayerCompnent = this._rightPlayer
                }, t.prototype.InitAvatar = function() {
                    this._leftPlayerSpine || (this._leftPlayerSpine = {
                        BottomEffect: this.CreateSkeletonNode(this._leftSkillPrefab, this.LeftBottomEffectNode, !1),
                        Hero: this.CreateSkeletonNode(this._leftHeroPrefab, this.LeftStandByNode),
                        Weapon: this.CreateSkeletonNode(this._leftSkillPrefab, this.LeftAttackNode, !1),
                        AttackHitPoint: this.CreateSkeletonNode(this._leftSkillPrefab, this.LeftAttackNode, !1),
                        BlockSuccess: this.CreateSkeletonNode(this._blockSuccessPrefab, this.LeftStandByNode, !1),
                        BlockFail: this.CreateSkeletonNode(this._blockFailPrefab, this.LeftStandByNode, !1),
                        Sound: this.CreateSounds(this._leftSoundPrefab, this.LeftStandByNode)
                    }, this.SetShowCommandComponent(this._leftPlayerSpine, this.LeftShowCommandNode), this._leftPlayerSpine.Hero.setAnimation(0, this._standBy, !0), this._leftPlayerSpine.PlayerIcon.spriteFrame = this._leftPlayerIcon, this._leftPlayerSpine.PlayerFrame.spriteFrame = this._leftPlayerFrame, this._rightPlayerSpine = {
                        BottomEffect: this.CreateSkeletonNode(this._rightSkillPrefab, this.RightBottomEffectNode, !1),
                        Hero: this.CreateSkeletonNode(this._rightHeroPrefab, this.RightStandByNode),
                        Weapon: this.CreateSkeletonNode(this._rightSkillPrefab, this.RightAttackNode, !1),
                        AttackHitPoint: this.CreateSkeletonNode(this._rightSkillPrefab, this.RightAttackNode, !1),
                        BlockSuccess: this.CreateSkeletonNode(this._blockSuccessPrefab, this.RightStandByNode, !1),
                        BlockFail: this.CreateSkeletonNode(this._blockFailPrefab, this.RightStandByNode, !1),
                        Sound: this.CreateSounds(this._rightSoundPrefab, this.RightStandByNode)
                    }, this.SetShowCommandComponent(this._rightPlayerSpine, this.RightShowCommandNode), this._rightPlayerSpine.Hero.setAnimation(0, this._standBy, !0), this._rightPlayerSpine.PlayerIcon.spriteFrame = this._rightPlayerIcon, this._rightPlayerSpine.PlayerFrame.spriteFrame = this._rightPlayerFrame)
                }, t.prototype.CreateSkeletonNode = function(e, t, n) {
                    void 0 === n && (n = !0);
                    var o = cc.instantiate(e).getComponent(sp.Skeleton);
                    return o.node.parent = t, o.node.active = n, o
                }, t.prototype.CreateSounds = function(e, t) {
                    var n = {},
                        o = cc.instantiate(e);
                    o.setParent(t);
                    for (var r = o.getComponent(P.default), i = 0; i < r.Sounds.length; i++) r.Sounds[i] && (n[r.Sounds[i].name] = r.Sounds[i]);
                    return n
                }, t.prototype.SetShowCommandComponent = function(e, t) {
                    e.PlayerIcon = t.getChildByName("PlayerIcon").getComponent(cc.Sprite), e.PlayerFrame = t.getChildByName("PlayerFrame").getComponent(cc.Sprite), e.CommandLabel = t.getChildByName("CommandLabel").getComponent(cc.Label)
                }, t.prototype.OnCommandButtonClick = function(e) {
                    if (!this._isAuto && this._canCommand) {
                        var t = Number(e.node.name);
                        this._myselfPlayerCompnent.CheckCanUseCommand(t, this._message.RoomInfo.P1.Uid == f.DataCenter.Instance.Uid ? this._message.RoomInfo.P1 : this._message.RoomInfo.P2) ? this.RequestCommand(t) : v.UIUtlity.ShowFloatingHint("fighting_noMp".ToUILocale())
                    }
                }, t.prototype.RequestCommand = function(e) {
                    var t = this;
                    if (e || this.GetPlayerRandomCommand(this._myselfPlayerCompnent), this._requestCommandRound = this._message.RoomInfo.Round, this._battleType == l.Practice || this._battleType == l.Guide || this._battleType == l.ActivityTask) this.PracticeBattleCommandEnd(), this.PracticeBattleStartPlay(e);
                    else {
                        if (this._message.RoomInfo.Type == g.FightingMiniGameRoomType.Result) return;
                        this._curCommand = e;
                        var n = new d.Req_Activity_FightingMiniGameRoundCommand;
                        n.ActivityId = this._activityConfig._id, n.Command = e, m.RpcComponent.Instance.Call(n, function() {
                            t.SetCommandBtnState(!1)
                        }, this.ErrNotInRoom.bind(this))
                    }
                }, t.prototype.OnLeftTagNodeTouchEnd = function() {
                    var e = this,
                        t = this._activityConfig._Locale.find(function(t) {
                            return t.Id == e._message.RoomInfo.P1.HeroId
                        });
                    p.UIManager.Instance.ShowUIPanel(C.PanelConfig.HeroInfoTipsPanel.Path, {
                        Text: t ? t.Content : ""
                    }, this.LeftTagNode)
                }, t.prototype.OnRightTagNodeTouchEnd = function() {
                    var e = this,
                        t = this._activityConfig._Locale.find(function(t) {
                            return t.Id == e._message.RoomInfo.P2.HeroId
                        });
                    p.UIManager.Instance.ShowUIPanel(C.PanelConfig.HeroInfoTipsPanel.Path, {
                        Text: t ? t.Content : ""
                    }, this.RightTagNode)
                }, t.prototype.OnBackButtonClick = function() {
                    var e = this;
                    this._message.RoomInfo.Type == g.FightingMiniGameRoomType.Result || this._battleType != l.Normal ? p.UIManager.Instance.BackUIPanel() : v.UIUtlity.ShowHintPanel("", "fighting_exitHint".ToUILocale(), "", null, "", function() {
                        var t = new d.Req_Activity_FightingMiniGameQuit;
                        t.ActivityId = e._activityConfig._id, m.RpcComponent.Instance.Call(t, function() {
                            p.UIManager.Instance.BackUIPanel()
                        })
                    })
                }, t.prototype.SetCommandBtnState = function(e) {
                    if (e) {
                        if (!this._canCommand) {
                            for (var t = 0; t < this.CommandBtnsSprite.length - 1; t++) this.CommandBtnsSprite[t].spriteFrame = this._panelAtlas.getSpriteFrame(t + 1 + "-1");
                            this._myselfPlayerCompnent.CheckCanUseCommand(c.Command4) ? this.CommandBtnsSprite[this.CommandBtnsSprite.length - 1].spriteFrame = this._panelAtlas.getSpriteFrame("4-1") : this.CommandBtnsSprite[this.CommandBtnsSprite.length - 1].spriteFrame = this._panelAtlas.getSpriteFrame("4-2")
                        }
                    } else if (this._canCommand)
                        for (t = 0; t < this.CommandBtnsSprite.length; t++) this.CommandBtnsSprite[t].spriteFrame = this._panelAtlas.getSpriteFrame(t + 1 + "-2");
                    this._canCommand = e
                }, t.prototype.SetNodeActive = function(e, t) {
                    e.active != t && (e.active = t)
                }, t.prototype.RequestStartBattle = function() {
                    var e = this;
                    if (!this._isRequestStart && (this._isRequestStart = !0, this._message.RoomInfo.Type != g.FightingMiniGameRoomType.Result)) {
                        var t = new d.Req_Activity_FightingMiniGameBattleStart;
                        t.ActivityId = this._activityConfig._id, m.RpcComponent.Instance.Call(t, function() {
                            e._isRequestStart = !1
                        }, function(t, n) {
                            e._isRequestStart = !1, e.ErrNotInRoom(t, n)
                        })
                    }
                }, t.prototype.RequestRoundEnd = function(e) {
                    var t = this;
                    if (void 0 === e && (e = !1), this._leftPlayer.RefreshPlayerInfo(this._message.RoomInfo.P1), this._rightPlayer.RefreshPlayerInfo(this._message.RoomInfo.P2), this._leftPlayer.Hp = this._message.RoomInfo.P1.Hp, this._leftPlayer.Mp = this._message.RoomInfo.P1.Mp, this._rightPlayer.Hp = this._message.RoomInfo.P2.Hp, this._rightPlayer.Mp = this._message.RoomInfo.P2.Mp, !this._isRequestRoundEnd && !e && (this._isRequestRoundEnd = !0, this._message.RoomInfo.Type != g.FightingMiniGameRoomType.Result)) {
                        var n = new d.Req_Activity_FightingMiniGameRoundEnd;
                        n.ActivityId = this._activityConfig._id, m.RpcComponent.Instance.Call(n, function() {
                            t._isRequestRoundEnd = !1
                        }, function(e, n) {
                            t._isRequestRoundEnd = !1, t.ErrNotInRoom(e, n)
                        })
                    }
                }, t.prototype.PlayBattle = function() {
                    var e = this,
                        t = this._message.RoomInfo.P1,
                        n = this._message.RoomInfo.P2,
                        o = w.AppUtil.FullCloneObj(this._leftSkillConfig.Skills[this.GetSkillIndexByCommand(t.Command, n.Command)]),
                        r = w.AppUtil.FullCloneObj(this._rightSkillConfig.Skills[this.GetSkillIndexByCommand(n.Command, t.Command)]);
                    t.Command != c.Command1 && t.Command != c.Command2 || n.Command != c.Command4 ? t.Command != c.Command4 || n.Command != c.Command1 && n.Command != c.Command2 || this.Command1Or2ToCommand4(r) : this.Command1Or2ToCommand4(o);
                    var i = this.GetBlockResult(t.Command, n.Command);
                    t.Command == c.Command3 && (o = this.CreateSkillEvent(n.Command, i[0]), i[0] == u.Success && n.Command == c.Command1 && this.AddStrikeBackEvent(o, r, this._leftSkillConfig.Skills[0], n.Hp)), n.Command == c.Command3 && (r = this.CreateSkillEvent(t.Command, i[1]), i[1] == u.Success && t.Command == c.Command1 && this.AddStrikeBackEvent(r, o, this._rightSkillConfig.Skills[0], t.Hp));
                    var a = m.RpcComponent.Instance.ServerTime;
                    this._currentSkillPlayData = [];
                    var s = {
                        StartStamp: a,
                        EndStamp: 0,
                        SkillEvents: [],
                        PlayerSpine: this._leftPlayerSpine,
                        InitialPosX: -this._initialPosX,
                        TargetDistanceX: this._targetDistanceX
                    };
                    s.SkillEvents = s.SkillEvents.concat(o.Events);
                    var l = {
                        StartStamp: a,
                        EndStamp: 0,
                        SkillEvents: [],
                        PlayerSpine: this._rightPlayerSpine,
                        InitialPosX: this._initialPosX,
                        TargetDistanceX: -this._targetDistanceX
                    };
                    l.SkillEvents = l.SkillEvents.concat(r.Events);
                    var p = 0;
                    o && (p = o.Duration), r && (p = Math.max(p, r.Duration)), p || (p = 3e3), s.SkillEvents.push({
                        EventType: S.SkillEventType.MoveTo,
                        StartTime: 0,
                        Duration: this._moveXTime
                    }), 0 == t.Hp ? n.Command != c.Command3 && s.SkillEvents.push(this.CreateDaoDiEvent(o.Duration)) : s.SkillEvents.push({
                        EventType: S.SkillEventType.MoveBack,
                        StartTime: p,
                        Duration: this._moveXTime
                    }), l.SkillEvents.push({
                        EventType: S.SkillEventType.MoveTo,
                        StartTime: 0,
                        Duration: this._moveXTime
                    }), 0 == n.Hp ? t.Command != c.Command3 && l.SkillEvents.push(this.CreateDaoDiEvent(r.Duration)) : l.SkillEvents.push({
                        EventType: S.SkillEventType.MoveBack,
                        StartTime: p,
                        Duration: this._moveXTime
                    }), s.EndStamp = a + p + 2 * this._moveXTime, l.EndStamp = a + p + 2 * this._moveXTime, s.SkillEvents.forEach(function(t) {
                        t.StartTime += e._moveXTime
                    }), this._currentSkillPlayData.push(s), l.SkillEvents.forEach(function(t) {
                        t.StartTime += e._moveXTime
                    }), this._currentSkillPlayData.push(l)
                }, t.prototype.AdjustPlayerOrder = function(e) {
                    if (e.RoomInfo.P2.Uid == f.DataCenter.Instance.Uid) {
                        var t = e.RoomInfo.P1;
                        e.RoomInfo.P1 = e.RoomInfo.P2, e.RoomInfo.P2 = t
                    }
                    return e
                }, t.prototype.GetPushMessage = function(e) {
                    e = this.AdjustPlayerOrder(e), this._message.RoomInfo.P1.Uid == e.RoomInfo.P1.Uid && this._message.RoomInfo.P2.Uid == e.RoomInfo.P2.Uid && (this._message = e, this._curCommand = null, e.RoomInfo.Type == g.FightingMiniGameRoomType.RoundStart ? (this._roundIntervalEndTimeStamp = e.RoomInfo.Ts + this._intervalTime, this._roundEndStamp = this._roundMaxTime + this._roundIntervalEndTimeStamp, this.RemainRoundLabel.string = (this._levelConfig.Round - e.RoomInfo.Round).toString(), this.RoundLabel.string = "Round{0}".Fmt(e.RoomInfo.Round), this.ClearAnimationState(), this._isAuto && this.RequestCommand()) : e.RoomInfo.Type != g.FightingMiniGameRoomType.RoundEnd && e.RoomInfo.Type != g.FightingMiniGameRoomType.Result || (this._roundIntervalEndTimeStamp = 0, this._roundEndStamp = 0, this.PlayBattle()))
                }, t.prototype.update = function() {
                    var e = this;
                    if (this._battleType == l.Normal) {
                        var t, n = m.RpcComponent.Instance.ServerTime;
                        if (this._roundIntervalEndTimeStamp && this._roundIntervalEndTimeStamp > n) return this.SetNodeActive(this.RoundNode, !1), void this.SetCommandBtnState(!1);
                        if (this._roundEndStamp && this._roundEndStamp > n) return this.SetNodeActive(this.RoundNode, !0), this.RoundBar.node.width = this._roundBarMaxWidth * Math.min(1, (this._roundEndStamp - n) / this._roundMaxTime), void(this._curCommand ? this.SetCommandBtnState(!1) : this.SetCommandBtnState(!0));
                        this.SetNodeActive(this.RoundNode, !1), this.SetCommandBtnState(!1), this._requestCommandRound != this._message.RoomInfo.Round && this.RequestCommand();
                        for (var o = 0; o < this._currentSkillPlayData.length; o++) this.PlaySkillEvent(this._currentSkillPlayData[o]) && (t = !0);
                        t && (this.PlayScreenEffect(), this.ShowPlayerCommandLabel(!0, this._leftPlayerSpine, this._message.RoomInfo.P1.Command), this.ShowPlayerCommandLabel(!0, this._rightPlayerSpine, this._message.RoomInfo.P2.Command)), !t && this._currentSkillPlayData.length > 0 && (this.ClearAnimationState(), this._message.RoomInfo.Type == g.FightingMiniGameRoomType.Result ? (this.RequestRoundEnd(!0), this.ShowBattleResult(!0), this.scheduleOnce(function() {
                            p.UIManager.Instance.ShowUIPanel(C.PanelConfig.FightingMiniGameResultPanel.Path, e._activityConfig, e._message.RoomInfo)
                        }, 2)) : this.RequestRoundEnd()), this.SetCommandBtnState(!t)
                    }
                }, t.prototype.PlaySkillEvent = function(e) {
                    var t = m.RpcComponent.Instance.ServerTime;
                    if (t >= e.StartStamp && t <= e.EndStamp) {
                        for (var n = 0; n < e.SkillEvents.length; n++) {
                            var o = e.SkillEvents[n],
                                r = o.EventType,
                                i = o.StartTime + e.StartStamp,
                                a = o.Duration;
                            if (!(t < i || t > i + a)) switch (r) {
                                case S.SkillEventType.MoveTo:
                                    e.PlayerSpine.Hero.node.parent.x = e.InitialPosX + (t - i) / a * e.TargetDistanceX;
                                    break;
                                case S.SkillEventType.MoveBack:
                                    e.PlayerSpine.Hero.node.parent.x = e.InitialPosX + e.TargetDistanceX - (t - i) / a * e.TargetDistanceX;
                                    break;
                                case S.SkillEventType.PlayAction:
                                    this.SetHeroEvent(o, e);
                                    break;
                                case S.SkillEventType.WeaponEffect:
                                    this.SetWeaponEvent(o, e);
                                    break;
                                case S.SkillEventType.HitPoint:
                                    this.SetAttackHitPointEvent(o, e);
                                    break;
                                case S.SkillEventType.PlaySound:
                                    var s = e.PlayerSpine.Sound[o.ActionName];
                                    if (s) {
                                        for (var l = null, c = 0; c < this._playingSounds.length; c++)
                                            if (this._playingSounds[c] && !this._playingSounds[c].isPlaying) {
                                                l = this._playingSounds[c];
                                                break
                                            } if (!l) {
                                            var u = new cc.Node;
                                            u.addComponent(cc.AudioSource), l = u.getComponent(cc.AudioSource), this._playingSounds.push(l)
                                        }
                                        l.clip = s, l.play()
                                    }
                                    break;
                                case S.SkillEventType.ScreenEffect:
                                    switch (o.ActionName) {
                                        case S.SkillScreenEffectType.DarkScreen:
                                            this._darkScreenEventItem || (this._darkScreenEventItem = o, this._darkScreenStartTime = i);
                                            break;
                                        case S.SkillScreenEffectType.ShockScreen:
                                            this._shockScreenEventItem || (this._shockScreenEventItem = o, this._shockScreenStartTime = i)
                                    }
                            }
                        }
                        return !0
                    }
                    return !1
                }, t.prototype.SetHeroEvent = function(e, t) {
                    var n = this;
                    if (t.PlayerSpine.Hero.animation != e.ActionName) {
                        var o = t.PlayerSpine.Hero.setAnimation(0, e.ActionName, !1);
                        t.PlayerSpine.Hero.setTrackCompleteListener(o, function() {
                            "emzs_daodi" != t.PlayerSpine.Hero.animation && t.PlayerSpine.Hero.setAnimation(0, n._standBy, !0)
                        })
                    }
                }, t.prototype.SetWeaponEvent = function(e, t) {
                    var n, o = this;
                    if (e.ActionName && (n = "Ani_UI_Effect_EMZS_GD_chenggong" == e.ActionName ? t.PlayerSpine.BlockSuccess : "Ani_UI_Effect_EMZS_GD_shibai" == e.ActionName ? t.PlayerSpine.BlockFail : e.ShowAtBottom ? t.PlayerSpine.BottomEffect : t.PlayerSpine.Weapon).animation != e.ActionName) {
                        n.node.active = !0, n.node.y = e.OffsetY || 0;
                        var r = n.setAnimation(0, e.ActionName, !1);
                        n.setTrackCompleteListener(r, function() {
                            o.ClearTracks(n)
                        })
                    }
                }, t.prototype.SetAttackHitPointEvent = function(e, t) {
                    var n, o = this;
                    if (n = e.ShowAtBottom ? t.PlayerSpine.BottomEffect : t.PlayerSpine.AttackHitPoint, e.ActionName && n.animation != e.ActionName) {
                        t.PlayerSpine.AttackHitPoint.node.active = !0, n.node.y = e.OffsetY || 0;
                        var r = n.setAnimation(0, e.ActionName, !1);
                        n.setTrackCompleteListener(r, function() {
                            o.ClearTracks(n)
                        })
                    }
                }, t.prototype.ShowPlayerCommandLabel = function(e, t, n) {
                    e ? (t.CommandLabel.node.parent.active = !0, t.CommandLabel.string = ("fighting_command" + n).ToUILocale()) : t.CommandLabel.node.parent.active = !1
                }, t.prototype.ClearTracks = function(e) {
                    e.animation = void 0, e.node.active = !1
                }, t.prototype.ClearAnimationState = function() {
                    this._currentSkillPlayData = [], this._leftPlayerSpine && (this._leftPlayerSpine.Hero.animation != this._standBy && "emzs_daodi" != this._leftPlayerSpine.Hero.animation && this._leftPlayerSpine.Hero.setAnimation(0, this._standBy, !0), this._leftPlayerSpine.Hero.node.parent.x != -this._initialPosX && (this._leftPlayerSpine.Hero.node.parent.x = -this._initialPosX), this.ClearTracks(this._leftPlayerSpine.Weapon), this.ClearTracks(this._leftPlayerSpine.AttackHitPoint), this.ClearTracks(this._leftPlayerSpine.BottomEffect)), this._rightPlayerSpine && (this._rightPlayerSpine.Hero.animation != this._standBy && "emzs_daodi" != this._rightPlayerSpine.Hero.animation && this._rightPlayerSpine.Hero.setAnimation(0, this._standBy, !0), this._rightPlayerSpine.Hero.node.parent.x != this._initialPosX && (this._rightPlayerSpine.Hero.node.parent.x = this._initialPosX), this.ClearTracks(this._rightPlayerSpine.Weapon), this.ClearTracks(this._rightPlayerSpine.AttackHitPoint), this.ClearTracks(this._rightPlayerSpine.BottomEffect));
                    for (var e = 0; e < this._playingSounds.length; e++) this._playingSounds[e] && !this._playingSounds[e].isPlaying && this._playingSounds[e].stop();
                    this._darkScreenEventItem = null, this._shockScreenEventItem = null, this.BgMaskNode.opacity = 0, this.BgNode.stopAllActions(), this.BgNode.setPosition(this._bgOriginX, this._bgOriginY), this.ClearUp(), this.ShowPlayerCommandLabel(!1, this._leftPlayerSpine), this.ShowPlayerCommandLabel(!1, this._rightPlayerSpine)
                }, t.prototype.ClearUp = function() {
                    var e, t;
                    cc.Tween.stopAllByTag(C.PanelConfig.FightingMiniGameBattlePanel.Id);
                    for (var n = 0; n < this._playingSounds.length; n++) this._playingSounds[n] && this._playingSounds[n].isPlaying && (this._playingSounds[n].pause(), null === (t = null === (e = this._playingSounds[n]) || void 0 === e ? void 0 : e.node) || void 0 === t || t.destroy());
                    this._playingSounds = []
                }, t.prototype.ShowBattleResult = function(e) {
                    if (e) {
                        this.ResultBgNode.active = !0, this.ResultSprite.node.active = !0;
                        var t = this.GetBattleResultByUid(f.DataCenter.Instance.Uid),
                            n = void 0;
                        0 == t ? (n = "Lose", this.ResultSprite.spriteFrame = v.UIUtlity.COMMON_ATLAS4.getSpriteFrame(n)) : 1 == t ? (n = "draw1", this.ResultSprite.spriteFrame = v.UIUtlity.COMMON_ATLAS5.getSpriteFrame(n)) : (n = "Win", this.ResultSprite.spriteFrame = v.UIUtlity.COMMON_ATLAS4.getSpriteFrame(n))
                    } else this.ResultBgNode.active = !1, this.ResultSprite.node.active = !1
                }, t.prototype.GetBattleResultByUid = function(e) {
                    return this._message.RoomInfo.P1.Hp <= 0 && this._message.RoomInfo.P2.Hp > 0 ? e == this._message.RoomInfo.P1.Uid ? 0 : 2 : this._message.RoomInfo.P1.Hp > 0 && this._message.RoomInfo.P2.Hp <= 0 ? e == this._message.RoomInfo.P1.Uid ? 2 : 0 : this._message.RoomInfo.P1.Hp <= 0 && this._message.RoomInfo.P2.Hp <= 0 ? 1 : this._message.RoomInfo.P1.Hp > this._message.RoomInfo.P2.Hp ? e == this._message.RoomInfo.P1.Uid ? 2 : 0 : this._message.RoomInfo.P1.Hp < this._message.RoomInfo.P2.Hp ? e == this._message.RoomInfo.P1.Uid ? 0 : 2 : 1
                }, t.prototype.GetPlayerRandomCommand = function(e) {
                    return b.default.Instance.GetRandomInt(1, e.CheckCanUseCommand(4) ? 4 : 3)
                }, t.prototype.PracticeBattleRoundStart = function() {
                    var e = this;
                    this._gameOver || (this._darkScreenEventItem = null, this._shockScreenEventItem = null, this._message.RoomInfo.Round ? this._message.RoomInfo.Round++ : this._message.RoomInfo.Round = 1, this.RoundLabel.string = "Round " + this._message.RoomInfo.Round, this.RemainRoundLabel.string = (this._levelConfig.Round - this._message.RoomInfo.Round).toString(), this._message.RoomInfo.Type = g.FightingMiniGameRoomType.RoundStart, this._remainCommandTime = this._roundMaxTime, this.SetCommandBtnState(!0), this._battleType == l.Guide && this._guideComponent.IsInGuide || (this.RoundNode.active = !0, this.RoundBar.schedule(function(t) {
                        e._remainCommandTime > 0 ? (e._remainCommandTime -= t * _.Etc.SecondDuration, e.RoundBar.node.width = e._roundBarMaxWidth * Math.min(1, e._remainCommandTime / e._roundMaxTime)) : (e.PracticeBattleCommandEnd(), e.PracticeBattleStartPlay())
                    }), this._isAuto && (this.PracticeBattleCommandEnd(), this.RequestCommand())))
                }, t.prototype.PracticeBattleCommandEnd = function() {
                    this.RoundBar.unscheduleAllCallbacks(), this.RoundNode.active = !1, this.SetCommandBtnState(!1), cc.Tween.stopAllByTag(C.PanelConfig.FightingMiniGameBattlePanel.Id), this.unscheduleAllCallbacks()
                }, t.prototype.PracticeBattleStartPlay = function(e) {
                    var t = this;
                    this._message.RoomInfo.Type = g.FightingMiniGameRoomType.RoundEnd, e || (e = this.GetPlayerRandomCommand(this._leftPlayer));
                    var n = this._guideEnemyCommand ? this._guideEnemyCommand : this.GetPlayerRandomCommand(this._rightPlayer);
                    this._message.RoomInfo.P1.Command = e, this._message.RoomInfo.P2.Command = n, this._leftPlayer.CostMp(e), this._rightPlayer.CostMp(n);
                    var o = w.AppUtil.FullCloneObj(this._leftSkillConfig.Skills[this.GetSkillIndexByCommand(e, n)]),
                        r = w.AppUtil.FullCloneObj(this._rightSkillConfig.Skills[this.GetSkillIndexByCommand(n, e)]);
                    e != c.Command1 && e != c.Command2 || n != c.Command4 ? e != c.Command4 || n != c.Command1 && n != c.Command2 || this.Command1Or2ToCommand4(r) : this.Command1Or2ToCommand4(o);
                    var i = this.GetBlockResult(e, n);
                    e == c.Command3 && (o = this.CreateSkillEvent(n, i[0]), i[0] == u.Success && n == c.Command1 && this.AddStrikeBackEvent(o, r, this._leftSkillConfig.Skills[0])), n == c.Command3 && (r = this.CreateSkillEvent(e, i[1]), i[1] == u.Success && e == c.Command1 && this.AddStrikeBackEvent(r, o, this._rightSkillConfig.Skills[0]));
                    var a = this._moveXTime,
                        s = {
                            StartStamp: a,
                            EndStamp: 0,
                            SkillEvents: [],
                            PlayerSpine: this._leftPlayerSpine,
                            InitialPosX: -this._initialPosX,
                            TargetDistanceX: this._targetDistanceX
                        };
                    o && (s.SkillEvents = s.SkillEvents.concat(o.Events));
                    var p = {
                        StartStamp: a,
                        EndStamp: 0,
                        SkillEvents: [],
                        PlayerSpine: this._rightPlayerSpine,
                        InitialPosX: this._initialPosX,
                        TargetDistanceX: -this._targetDistanceX
                    };
                    r && (p.SkillEvents = p.SkillEvents.concat(r.Events));
                    var d = 0;
                    o && (d = o.Duration), r && (d = Math.max(d, r.Duration)), d || (d = 3e3), s.EndStamp = d, p.EndStamp = d, this.PracticeBattleDealSkillPlayData(s), this.PracticeBattleDealSkillPlayData(p), this.ShowPlayerCommandLabel(!0, this._leftPlayerSpine, e), this.ShowPlayerCommandLabel(!0, this._rightPlayerSpine, n), this.scheduleOnce(function() {
                        t.DealCommandResult()
                    }, d / 1e3), this._battleType == l.Guide && this._guideComponent.IsInGuide ? this.scheduleOnce(function() {
                        t._guideComponent.GoOnGuide()
                    }, (d + a) / 1e3) : this.scheduleOnce(function() {
                        t.PracticeBattleRoundStart()
                    }, (d + a) / 1e3)
                }, t.prototype.GetSkillIndexByCommand = function(e, t) {
                    var n, o = ((n = {})[1] = 0, n[2] = 1, n[4] = 2, n[3] = 7, n);
                    return e == t || e == c.Command3 ? o[e] : e == c.Command1 ? t == c.Command4 ? 3 : o[e] : e == c.Command2 ? t == c.Command3 ? o[e] : 4 : e == c.Command4 ? o[e] : void 0
                }, t.prototype.Command1Or2ToCommand4 = function(e) {
                    e.Duration += 300;
                    for (var t = 0; t < e.Events.length; t++) {
                        var n = e.Events[t];
                        n.EventType == S.SkillEventType.PlayAction ? "hurt" == n.ActionName ? n.StartTime = 700 : n.Duration = 700 : n.EventType == S.SkillEventType.WeaponEffect && (n.Duration = 700)
                    }
                }, t.prototype.GetBlockResult = function(e, t) {
                    return e != c.Command3 && t != c.Command3 ? [u.None, u.None] : e == c.Command3 && t == c.Command3 ? [u.Success, u.Success] : e == c.Command3 ? t == c.Command1 ? [u.Success, u.None] : [u.Fail, u.None] : t == c.Command3 ? e == c.Command1 ? [u.None, u.Success] : [u.None, u.Fail] : void 0
                }, t.prototype.CreateSkillEvent = function(e, t, n) {
                    var o = {},
                        r = t == u.Success ? 450 : e == c.Command4 ? 750 : 550;
                    return n && (r += n), o.Events = [], t == u.Success ? (o.Events.push({
                        EventType: S.SkillEventType.PlayAction,
                        ActionName: "emzs_gedang",
                        StartTime: r,
                        Duration: 400
                    }), o.Events.push({
                        EventType: S.SkillEventType.WeaponEffect,
                        ActionName: "Ani_UI_Effect_EMZS_GD_chenggong",
                        StartTime: r,
                        Duration: 834
                    }), o.Duration = r + 834) : t == u.Fail && (o.Events.push({
                        EventType: S.SkillEventType.WeaponEffect,
                        ActionName: "Ani_UI_Effect_EMZS_GD_shibai",
                        StartTime: r,
                        Duration: 1100
                    }), o.Events.push(this.CreateHurtEvent(r)), o.Duration = r + 1100), o
                }, t.prototype.AddStrikeBackEvent = function(e, t, n, o) {
                    void 0 === o && (o = -1);
                    var r = e.Duration,
                        i = w.AppUtil.FullCloneObj(n);
                    i.Events.forEach(function(t) {
                        t.StartTime += r, e.Events.push(t)
                    }), e.Duration += i.Duration, 0 == o ? t.Events.push(this.CreateDaoDiEvent(r + 400)) : t.Events.push(this.CreateHurtEvent(r + 400))
                }, t.prototype.CreateDaoDiEvent = function(e) {
                    return {
                        EventType: S.SkillEventType.PlayAction,
                        ActionName: "emzs_daodi",
                        StartTime: e,
                        Duration: 733
                    }
                }, t.prototype.CreateHurtEvent = function(e) {
                    return {
                        EventType: S.SkillEventType.PlayAction,
                        StartTime: e,
                        ActionName: "hurt",
                        Duration: this._hurtDuration
                    }
                }, t.prototype.PracticeBattleDealSkillPlayData = function(e) {
                    var t = this;
                    cc.tween(e.PlayerSpine.Hero.node.parent).tag(C.PanelConfig.FightingMiniGameBattlePanel.Id).to(e.StartStamp / 1e3, {
                        x: e.InitialPosX + e.TargetDistanceX
                    }).delay((e.EndStamp - e.StartStamp) / 1e3).to(e.StartStamp / 1e3, {
                        x: e.InitialPosX
                    }).start(), e.SkillEvents.forEach(function(n) {
                        var o = n.ActionName,
                            r = n.OffsetY || 0,
                            i = n.ShowAtBottom,
                            a = n.StartTime + e.StartStamp,
                            s = n.Duration;
                        if (s) switch (n.EventType) {
                            case S.SkillEventType.PlayAction:
                                t.scheduleOnce(function() {
                                    var n = e.PlayerSpine.Hero.setAnimation(0, o, !1);
                                    e.PlayerSpine.Hero.setTrackCompleteListener(n, function() {
                                        e.PlayerSpine.Hero.setAnimation(0, t._standBy, !0)
                                    })
                                }, a / 1e3);
                                break;
                            case S.SkillEventType.WeaponEffect:
                                if (!o) return;
                                var l;
                                l = "Ani_UI_Effect_EMZS_GD_chenggong" == o ? e.PlayerSpine.BlockSuccess : "Ani_UI_Effect_EMZS_GD_shibai" == o ? e.PlayerSpine.BlockFail : i ? e.PlayerSpine.BottomEffect : e.PlayerSpine.Weapon, t.scheduleOnce(function() {
                                    l.node.active = !0, l.node.y = r, l.setAnimation(0, o, !1), t.scheduleOnce(function() {
                                        t.ClearTracks(l)
                                    }, s / 1e3)
                                }, a / 1e3);
                                break;
                            case S.SkillEventType.HitPoint:
                                var c;
                                c = i ? e.PlayerSpine.BottomEffect : e.PlayerSpine.AttackHitPoint, t.scheduleOnce(function() {
                                    c.node.active = !0, c.node.y = r, c.setAnimation(0, o, !1), t.scheduleOnce(function() {
                                        t.ClearTracks(c)
                                    }, s / 1e3)
                                }, a / 1e3);
                                break;
                            case S.SkillEventType.PlaySound:
                                t.scheduleOnce(function() {
                                    var n = e.PlayerSpine.Sound[o];
                                    if (n) {
                                        for (var r = null, i = 0; i < t._playingSounds.length; i++)
                                            if (t._playingSounds[i] && !t._playingSounds[i].isPlaying) {
                                                r = t._playingSounds[i];
                                                break
                                            } if (!r) {
                                            var a = new cc.Node;
                                            a.addComponent(cc.AudioSource), r = a.getComponent(cc.AudioSource), t._playingSounds.push(r)
                                        }
                                        r.clip = n, r.play(), t.scheduleOnce(function() {
                                            r.stop()
                                        }, s / 1e3)
                                    }
                                }, a / 1e3);
                                break;
                            case S.SkillEventType.ScreenEffect:
                                t.PlayScreenEffect(n)
                        }
                    })
                }, t.prototype.PlayScreenEffect = function(e) {
                    var t = this;
                    if (this._battleType != l.Normal) {
                        if (e.Duration > 0) switch (e.ActionName) {
                            case S.SkillScreenEffectType.DarkScreen:
                                if (this._darkScreenEventItem) return;
                                this._darkScreenEventItem = e, this.BgMaskNode.cleanup(), cc.tween(this.BgMaskNode).tag(C.PanelConfig.FightingMiniGameBattlePanel.Id).delay(e.StartTime / 1e3).to(Math.min(e.Duration / 1e3, .2), {
                                    opacity: 190
                                }).delay(e.Duration / 1e3).to(.2, {
                                    opacity: 0
                                }).start(), this.scheduleOnce(function() {
                                    cc.Tween.stopAllByTarget(t.BgMaskNode), t.BgMaskNode.opacity = 0, t._darkScreenEventItem = null
                                }, e.Duration / 1e3);
                                break;
                            case S.SkillScreenEffectType.ShockScreen:
                                if (this._shockScreenEventItem) return;
                                this._shockScreenEventItem = e;
                                var n = this._bgOriginX,
                                    o = this._bgOriginY;
                                this.scheduleOnce(function() {
                                    t.StartShockScreenTween()
                                }, e.StartTime / 1e3), this.scheduleOnce(function() {
                                    cc.Tween.stopAllByTarget(t.BgNode), t.BgNode.setPosition(n, o), t._shockScreenEventItem = null
                                }, (e.StartTime + e.Duration) / 1e3)
                        }
                    } else {
                        var r = m.RpcComponent.Instance.ServerTime;
                        if (this._darkScreenEventItem)
                            if (r < this._darkScreenStartTime || r > this._darkScreenStartTime + this._darkScreenEventItem.Duration) this.BgMaskNode.opacity = 0, this._darkScreenEventItem = null;
                            else {
                                var i = r - this._darkScreenStartTime;
                                if (i < 200) this.BgMaskNode.opacity = i / 200 * 190;
                                else if (i < this._darkScreenEventItem.Duration) this.BgMaskNode.opacity = 190;
                                else {
                                    var a = i - this._darkScreenEventItem.Duration;
                                    a < 200 ? this.BgMaskNode.opacity = 190 * (1 - a / 200) : (this.BgMaskNode.opacity = 0, this._darkScreenEventItem = null)
                                }
                            }
                        else this.BgMaskNode.opacity = 0, this._darkScreenEventItem = null;
                        if (this._shockScreenEventItem) {
                            var s = this._bgOriginX,
                                c = this._bgOriginY;
                            r < this._shockScreenStartTime || r > this._shockScreenStartTime + this._shockScreenEventItem.Duration ? (cc.Tween.stopAllByTarget(this.BgNode), this.BgNode.setPosition(s, c), this._shockScreenEventItem = null) : this.BgNode.getNumberOfRunningActions() || this.StartShockScreenTween()
                        }
                    }
                }, t.prototype.StartShockScreenTween = function() {
                    var e = this._bgOriginX,
                        t = this._bgOriginY;
                    return cc.tween(this.BgNode).tag(C.PanelConfig.FightingMiniGameBattlePanel.Id).sequence(cc.moveTo(.02, 5 + e, 7 + t), cc.moveTo(.02, -6 + e, 7 + t), cc.moveTo(.02, -13 + e, 3 + t), cc.moveTo(.02, 3 + e, -6 + t), cc.moveTo(.02, -5 + e, 5 + t), cc.moveTo(.02, 2 + e, -8 + t), cc.moveTo(.02, -8 + e, -10 + t), cc.moveTo(.02, 3 + e, 10 + t), cc.moveTo(.02, 0 + e, 0 + t)).repeatForever().start()
                }, t.prototype.IsHurt = function(e, t) {
                    var n = this._heroConfigMap[e.HeroId]["Command" + e.Command][t.Command - 1].Items;
                    return this._heroConfigMap[t.HeroId]["Command" + t.Command][e.Command - 1].Items[0] > n[1]
                }, t.prototype.DealCommandResult = function() {
                    var e = this,
                        t = this._heroConfigMap[this._message.RoomInfo.P1.HeroId],
                        n = this._heroConfigMap[this._message.RoomInfo.P2.HeroId],
                        o = t["Command" + this._message.RoomInfo.P1.Command],
                        r = n["Command" + this._message.RoomInfo.P2.Command],
                        i = o[this._message.RoomInfo.P2.Command - 1].Items,
                        a = r[this._message.RoomInfo.P1.Command - 1].Items,
                        s = [a[0], i[1], i[2]],
                        c = [i[0], a[1], a[2]];
                    if (this._leftPlayer.SetPlayerResult(s), this._rightPlayer.SetPlayerResult(c), 0 == this._leftPlayer.Hp && this._leftPlayerSpine.Hero.setAnimation(0, "emzs_daodi", !1), 0 == this._rightPlayer.Hp && this._rightPlayerSpine.Hero.setAnimation(0, "emzs_daodi", !1), this.ShowPlayerCommandLabel(!1, this._leftPlayerSpine), this.ShowPlayerCommandLabel(!1, this._rightPlayerSpine), (0 == this._leftPlayer.Hp || 0 == this._rightPlayer.Hp || this._message.RoomInfo.Round == this._levelConfig.Round) && (this._gameOver = !0, this._message.RoomInfo.Type = g.FightingMiniGameRoomType.Result, this.ShowBattleResult(!0), this.scheduleOnce(function() {
                            p.UIManager.Instance.ShowUIPanel(C.PanelConfig.FightingMiniGameResultPanel.Path, e._activityConfig, e._message.RoomInfo)
                        }, 2), this._battleType == l.ActivityTask && 2 == this.GetBattleResultByUid(f.DataCenter.Instance.Uid))) {
                        var u = new d.Req_Activity_FightingMiniGameTask;
                        u.ActivityId = this._extraNumParam[0], u.TaskId = this._extraNumParam[1], m.RpcComponent.Instance.Call(u, function() {})
                    }
                }, t.prototype.GuideBattleStart = function() {
                    var e = this;
                    this._guideComponent || (this._guideComponent = this.node.addComponent(A.default)), this._guideComponent.StartGuide(2, function(t) {
                        if (!e._guideComponent.IsInGuide || !t) return e._guideEnemyCommand = null, void e.PracticeBattleRoundStart();
                        switch (t) {
                            case 20109:
                                e._guideEnemyCommand = c.Command1, e.PracticeBattleRoundStart(), e._guideComponent.PauseGuide(), e._guideComponent.ShowGuide(e.CommandBtns[c.Command3 - 1].node);
                                break;
                            case 20111:
                                e._guideEnemyCommand = c.Command2, e.PracticeBattleRoundStart(), e._guideComponent.PauseGuide(), e._guideComponent.ShowGuide(e.CommandBtns[c.Command1 - 1].node);
                                break;
                            case 20113:
                                e._guideEnemyCommand = c.Command3, e.PracticeBattleRoundStart(), e._guideComponent.PauseGuide(), e._guideComponent.ShowGuide(e.CommandBtns[c.Command2 - 1].node);
                                break;
                            case 20115:
                                e._guideEnemyCommand = c.Command1, e.PracticeBattleRoundStart(), e._guideComponent.PauseGuide(), e._guideComponent.ShowGuide(e.CommandBtns[c.Command4 - 1].node);
                                break;
                            default:
                                e._guideComponent.ShowGuide()
                        }
                    })
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t), this.ClearUp()
                }, t.prototype.ErrNotInRoom = function(e) {
                    e && e == T.ErrCode.FightingMiniGameNotInRoom && v.UIUtlity.ShowHintPanel("", "fighting_notInRoom".ToUILocale(), null, null, "", function() {
                        p.UIManager.Instance.QuitPanelStack(C.PanelConfig.FightingMiniGameBattlePanel.Path)
                    })
                }, i([k(cc.Label)], t.prototype, "Title", void 0), i([k(cc.Node)], t.prototype, "BgNode", void 0), i([k(cc.Node)], t.prototype, "BgMaskNode", void 0), i([k(cc.Node)], t.prototype, "RoundNode", void 0), i([k(cc.Sprite)], t.prototype, "RoundBar", void 0), i([k(cc.Label)], t.prototype, "RoundLabel", void 0), i([k(cc.Toggle)], t.prototype, "AutoToggle", void 0), i([k(cc.Label)], t.prototype, "AutoToggleLabel", void 0), i([k(cc.RichText)], t.prototype, "HintRichText", void 0), i([k(cc.Button)], t.prototype, "CommandBtns", void 0), i([k(cc.Sprite)], t.prototype, "CommandBtnsSprite", void 0), i([k(cc.Label)], t.prototype, "CommandBtnsLabel", void 0), i([k(sp.Skeleton)], t.prototype, "CommandCommonEffect", void 0), i([k(sp.Skeleton)], t.prototype, "CommandLightEffect", void 0), i([k(cc.Node)], t.prototype, "LeftBottomEffectNode", void 0), i([k(cc.Node)], t.prototype, "RightBottomEffectNode", void 0), i([k(cc.Node)], t.prototype, "LeftStandByNode", void 0), i([k(cc.Node)], t.prototype, "RightStandByNode", void 0), i([k(cc.Node)], t.prototype, "LeftAttackNode", void 0), i([k(cc.Node)], t.prototype, "RightAttackNode", void 0), i([k(cc.Node)], t.prototype, "LeftShowCommandNode", void 0), i([k(cc.Node)], t.prototype, "RightShowCommandNode", void 0), i([k(cc.Label)], t.prototype, "RemainRoundLabel", void 0), i([k(cc.Node)], t.prototype, "LeftHpBottom", void 0), i([k(cc.Node)], t.prototype, "LeftHp", void 0), i([k(cc.Sprite)], t.prototype, "LeftMp", void 0), i([k(cc.Node)], t.prototype, "RightHpBottom", void 0), i([k(cc.Node)], t.prototype, "RightHp", void 0), i([k(cc.Sprite)], t.prototype, "RightMp", void 0), i([k(cc.Node)], t.prototype, "LeftTagNode", void 0), i([k(cc.Node)], t.prototype, "RightTagNode", void 0), i([k(cc.Label)], t.prototype, "LeftMpBarLabel", void 0), i([k(cc.Label)], t.prototype, "RightMpBarLabel", void 0), i([k(cc.Button)], t.prototype, "BackButton", void 0), i([k(cc.Node)], t.prototype, "ResultBgNode", void 0), i([k(cc.Sprite)], t.prototype, "ResultSprite", void 0), i([L], t)
            }(p.BaseUIFullScreenPanel);
        n.default = O;
        var M = function() {
            function e(e, t, n, o) {
                this.HpBottomBar = null, this.HpBar = null, this.MpBar = null, this.MpBarLabel = null, this.MpAddSpine = null, this.SkillMpAniNode = null, this.FireSpine = null, this._mpSpineArray = [], this.HpBottomBar = e, this.HpBar = t, this.MpBar = n, this.MpBarLabel = o, this._hpMaxWidth = this.HpBar.parent.width, this._mpBarWidth = this.MpBar.spriteFrame.getRect().width, this.MpAddSpine = n.node.getChildByName("MpAddSpine").getComponent(sp.Skeleton), this.SkillMpAniNode = n.node.getChildByName("SkillMpAniNode"), this.FireSpine = n.node.getChildByName("FireSpine").getComponent(sp.Skeleton)
            }
            return e.prototype.Init = function(e, t, n) {
                this._basePanel = e, this._heroConfig = t, this._playerInfo = n, this._maxHp = t.InitialHp, this._maxMp = t.MpBar * t.MpPoint, this._maxMp = t.MpPoint, this._hp = this._maxHp, this.HpBottomBar.width = this._hpMaxWidth * this._hp / this._maxHp, this._mp = t.InitialMp, this.SetMpBarWidthByMp(this._mp), this.SetMpBarLabel()
            }, e.prototype.RefreshPlayerInfo = function(e) {
                this._playerInfo = e
            }, e.prototype.SetMpBarWidthByMp = function(e) {
                e % this._heroConfig.MpPoint == 0 ? this.MpBar.node.width = e > 0 ? this._mpBarWidth * this._heroConfig.MpPoint : 0 : this.MpBar.node.width = this._mpBarWidth * (e % this._heroConfig.MpPoint)
            }, e.prototype.SetMpBarLabel = function() {
                this._mp % this._heroConfig.MpPoint == 0 ? this.MpBarLabel.string = Math.max(Math.floor(this._mp / this._heroConfig.MpPoint) - 1, 0).toString() : this.MpBarLabel.string = Math.floor(this._mp / this._heroConfig.MpPoint).toString()
            }, e.prototype.CheckCanUseCommand = function(e, t) {
                return t && (this._playerInfo = t), this._playerInfo.Mp >= this._heroConfig.CostMp[e - 1]
            }, e.prototype.CostMp = function(e) {
                this._heroConfig.CostMp[e - 1] > 0 && (this._playerInfo.Mp = Math.max(0, this._playerInfo.Mp - this._heroConfig.CostMp[e - 1]), this.Mp = this._playerInfo.Mp)
            }, e.prototype.SetPlayerResult = function(e) {
                this._playerInfo.Hp = Math.max(0, this._playerInfo.Hp - Math.max(0, e[0] - e[1])), this._playerInfo.Mp = Math.min(this._heroConfig.MpPoint, this._playerInfo.Mp + e[2]), this.Hp = this._playerInfo.Hp, this.Mp = this._playerInfo.Mp
            }, e.prototype.ChangeHp = function(e) {
                this.Hp = this.Hp + e
            }, e.prototype.ChangeMp = function(e) {
                this.Mp = this.Mp + e
            }, Object.defineProperty(e.prototype, "Hp", {
                get: function() {
                    return this._hp
                },
                set: function(e) {
                    var t = this._hp;
                    this._hp = e < 0 ? 0 : Math.min(this._maxHp, e), this.PlayHpAnimation(t, this._hp)
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(e.prototype, "Mp", {
                get: function() {
                    return this._mp
                },
                set: function(e) {
                    var t = this._mp;
                    this._mp = e < 0 ? 0 : Math.min(this._maxMp, e), this.SetMpBarLabel(), t >= this._mp ? (this.SetMpBarWidthByMp(this._mp), this.PlayUinqueSkillAni()) : this.PlayMpAddAni(t), this.PlayCommandEffect(t, this._mp)
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.PlayHpAnimation = function(e, t) {
                var n = this;
                this.HpBar.width = this._hpMaxWidth * t / this._maxHp, this._hpCountDown = (e - t) / this._maxHp * 3e3;
                var o = this.HpBottomBar.getComponent(cc.Mask);
                o.schedule(function(e) {
                    n._hpCountDown > 0 ? (n._hpCountDown -= 1e3 * e, n.HpBottomBar.width = n._hpMaxWidth * (n._hpCountDown / 3e3 + t / n._maxHp)) : (n.HpBottomBar.width = n._hpMaxWidth * t / n._maxHp, o.unscheduleAllCallbacks())
                })
            }, e.prototype.PlayMpAddAni = function(e) {
                var t = this;
                this.MpBar.unscheduleAllCallbacks(), e < this._mp ? (e++, this.SetMpBarWidthByMp(e), this.MpAddSpine.node.active = !0, this.MpAddSpine.node.setPosition((e - 1 + .5) * this._mpBarWidth), this.MpAddSpine.setAnimation(0, "Ani_UI_Effect_EMZS_NLT_zengzhang", !1)) : (this.MpAddSpine.node.active = !1, this.PlayUinqueSkillAni()), this.MpBar.schedule(function() {
                    e < t._mp ? (e++, t.SetMpBarWidthByMp(e), t.MpAddSpine.node.active = !0, t.MpAddSpine.node.setPosition((e % t._heroConfig.MpPoint - 1 + .5) * t._mpBarWidth), t.MpAddSpine.setAnimation(0, "Ani_UI_Effect_EMZS_NLT_zengzhang", !1)) : (t.MpAddSpine.node.active = !1, t.PlayUinqueSkillAni(), t.MpBar.unscheduleAllCallbacks())
                }, .2)
            }, e.prototype.PlayUinqueSkillAni = function() {
                if (this.CheckCanUseCommand(4)) {
                    this.SkillMpAniNode.active || (this.SkillMpAniNode.active = !0, this.FireSpine.node.active = !0);
                    for (var e = 0; e < this._mp; e++) {
                        var t = this._mpSpineArray[e];
                        if (!t) {
                            var n = this.SkillMpAniNode.children[e];
                            n || (n = cc.instantiate(this.SkillMpAniNode.children[0])).setParent(this.SkillMpAniNode), t = n.getComponent(sp.Skeleton)
                        }
                        t.node.setPosition((e + .5) * this._mpBarWidth, 0), t.node.active = !0, t.setAnimation(0, "Ani_UI_Effect_EMZS_NLT_yige", !0)
                    }
                    this.FireSpine.setAnimation(0, "Ani_UI_Effect_EMZS_NLT_huo", !0)
                } else this.SkillMpAniNode.active = !1, this.FireSpine.node.active = !1;
                for (e = this._mp; e < this._mpSpineArray.length; e++) this._mpSpineArray[e].node.active = !1
            }, e.prototype.PlayCommandEffect = function(e, t) {
                var n = this;
                if (this._playerInfo.Uid == f.DataCenter.Instance.Uid) {
                    var o = this._heroConfig.CostMp[c.Command4 - 1];
                    if (e < o && t >= o) {
                        this._basePanel.CommandLightEffect.node.active = !0;
                        var r = this._basePanel.CommandLightEffect.setAnimation(0, "Ani_UI_Effect_EMZS_BS_dianliang", !1);
                        this._basePanel.CommandLightEffect.setTrackCompleteListener(r, function() {
                            n._basePanel.CommandLightEffect.node.active = !1
                        })
                    }
                    t >= o ? this._basePanel.SetNodeActive(this._basePanel.CommandCommonEffect.node, !0) : this._basePanel.SetNodeActive(this._basePanel.CommandCommonEffect.node, !1)
                }
            }, e
        }();
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../ShareConsts/ErrCode": "ErrCode",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/HeroSkillSound": "HeroSkillSound",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/FightingGameGuideComponent": "FightingGameGuideComponent"
    }],
    FightingMiniGameMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ef7ccXtCBpBAbgysIr9C+NG", "FightingMiniGameMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/ActivityCountDownComponent"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../Components/DataCenter"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/LoadAssetHelper"),
            g = e("../../Components/Components"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../Consts/Etc"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../Consts/Consts"),
            S = e("../Components/FightingGameGuideComponent"),
            w = e("../../RedDot/RedDotManager"),
            P = e("../Components/CustomToggle"),
            A = e("./ActivityJumpBtnComponent"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.LeftAvatarMaskNode = null, t.RightAvatarMaskNode = null, t.LeftSDAvatarNode = null, t.RightSDAvatarNode = null, t.LeftTagNode = null, t.RightTagNode = null, t.MatchingRichText = null, t.RolePoolNode = null, t.RolePoolItemNode = null, t.SelectedRoleBorder1 = null, t.Border2P = null, t.SelectedRoleBorder2Node = null, t.SelectCountBg = null, t.ArrowButton = null, t.ItemIcon1 = null, t.ItemIcon2 = null, t.ItemTagLabel1 = null, t.ItemTagLabel2 = null, t.CostCountLabel = null, t.RewardCountLabel = null, t.MatchButton = null, t.MatchButtonLabel = null, t.RuleButton = null, t.Title = null, t.ActivityCountDownComponent = null, t.CurrencyBarItem = null, t.TaskButton = null, t.TaskButtonLabel = null, t.ShopButton = null, t.ShopButtonLabel = null, t.GiftPackButton = null, t.GiftPackButtonLabel = null, t.ReportButton = null, t.ReportButtonLabel = null, t.BackButton = null, t.BtnLayoutNode = null, t.MatchingBlockNode = null, t.StopMatchButton = null, t.StopMatchButtonLabel = null, t.PracticeButton = null, t.PracticeButtonLabel = null, t.GuideButton = null, t.GuideButtonLabel = null, t.FightingGameGuideComponent = null, t._rolePoolItemArray = [], t._roleItemPos = [cc.v2(0, 179), cc.v2(-154, 90), cc.v2(154, 90), cc.v2(-308, 0), cc.v2(0, 0), cc.v2(308, 0), cc.v2(-154, -90), cc.v2(154, -90), cc.v2(0, -179)], t._leftAvatarFlag = 100, t._leftSDAvatarFlag = 101, t._rightAvatarFlag = 200, t._rightSDAvatarFlag = 201, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_FIGHTINGMINIGAME_PUSH, this.GetPushMessage, this), l.Game.EventDispatcher.On(b.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.InitCurrencyBarItem, this), l.Game.EventDispatcher.On(b.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.InitCurrencyBarItem, this), l.Game.EventDispatcher.On(b.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.InitCurrencyBarItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_FIGHTINGMINIGAME_PUSH, this.GetPushMessage, this), l.Game.EventDispatcher.Off(b.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.InitCurrencyBarItem, this), l.Game.EventDispatcher.Off(b.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.InitCurrencyBarItem, this), l.Game.EventDispatcher.Off(b.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.InitCurrencyBarItem, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("FightingMiniGamePanel/Png/FightingMiniGamePanel", cc.SpriteAtlas)];
                                case 1:
                                    return t._panelAtlas = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ItemTagLabel1.string = "finghting_input".ToUILocale(), this.ItemTagLabel2.string = "finghting_winReward".ToUILocale(), this.MatchButtonLabel.string = "Activity_HeroPK_Battle".ToUILocale(), this.StopMatchButtonLabel.string = "finghting_cancelMatch".ToUILocale(), this.PracticeButtonLabel.string = "finghting_practiceField".ToUILocale(), this.GuideButtonLabel.string = "finghting_guide".ToUILocale(), this.TaskButtonLabel.string = "btn_task".ToUILocale(), this.ShopButtonLabel.string = "shop_mainTittle".ToUILocale(), this.GiftPackButtonLabel.string = "LuckyDraw_pack".ToUILocale(), this.ReportButtonLabel.string = "allianceWar_fight_score".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.LeftTagNode.on(cc.Node.EventType.TOUCH_END, this.OnLeftTagNodeTouchEnd, this), this.RightTagNode.on(cc.Node.EventType.TOUCH_END, this.OnRightTagNodeTouchEnd, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this), this.GiftPackButton.node.on("click", this.OnGiftPackButtonClick, this), this.ReportButton.node.on("click", this.OnReportButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.ArrowButton.node.on("click", this.OnArrowButtonClick, this), this.MatchButton.node.on("click", this.OnMatchButtonClick, this), this.StopMatchButton.node.on("click", this.OnStopMatchButtonClick, this), this.PracticeButton.node.on("click", this.OnPracticeButtonClick, this), this.GuideButton.node.on("click", this.OnGuideButtonClick, this), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(y.default))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._activityConfig = h.DataCenter.Instance.GetActivityConfigsByActId(n), this.Title.string = this._activityConfig.Common.Title, this.ActivityCountDownComponent.Init(this._activityConfig.Common), this._activityConfig._Shops && this._activityConfig._Shops.length > 0 ? this.ShopButton.node.active = !0 : this.ShopButton.node.active = !1
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r, i, a, l = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = v.default.Instance.GetItemPathById(this._activityConfig.CustomPart.ItemId), n = [this.LoadDynamicAsset(t, cc.SpriteFrame)], this._activityConfig.__Hero.forEach(function(e) {
                                        n.push(l.LoadDynamicAsset("HeroIcon/HeroHeader/" + e.Id, cc.SpriteFrame))
                                    }), [4, Promise.all(n).then(function(e) {
                                        l.ItemIcon1.spriteFrame = l.ItemIcon2.spriteFrame = e[0], l._heroIconArray = e.slice(1)
                                    })];
                                case 1:
                                    return s.sent(), this._activityConfig.Common.JumpIds && this._activityConfig.Common.JumpIds.length > 0 ? [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)] : [3, 3];
                                case 2:
                                    for (o = s.sent(), r = 0; r < this._activityConfig.Common.JumpIds.length; r++) i = this._activityConfig.Common.JumpIds[r], (a = cc.instantiate(o)).parent = this.BtnLayoutNode, a.getComponent(A.default).Init(i, this._activityConfig.Common.JumpIcons[r]);
                                    s.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t ? this.SetSelectedRoleBorder(this._player1Index, void 0) : (this.InitCurrencyBarItem(), this.CreateRolePoolItems(), this.SelectLevel(0), this._player1Index || this.SetSelectedRoleBorder(0, void 0), this.StartGuide()), w.RedDotManager.Instance.BindInstance(this.TaskButton.node, w.RedDotManager.Instance.InstanceRedDot.FightingMiniGameTaskNode, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.InitCurrencyBarItem = function() {
                    this.CurrencyBarItem.Init(this._activityConfig.CustomPart.ItemId)
                }, t.prototype.StartGuide = function() {
                    var e = this;
                    if (!h.DataCenter.Instance.GetStringData(C.UserDataKey.FightingGameGuide)) {
                        var t = new c.Req_Game_SetFrontStatusData;
                        t.Type = C.UserDataKey.FightingGameGuide, t.Value = "1", g.RpcComponent.Instance.Call(t, function() {}), this.FightingGameGuideComponent.StartGuide(1, function(t) {
                            20010 == t ? e.FightingGameGuideComponent.ShowGuide(e.GuideButton.node) : e.FightingGameGuideComponent.ShowGuide()
                        })
                    }
                }, t.prototype.CreateRolePoolItems = function() {
                    for (var e = this, t = this.RolePoolNode.childrenCount; t < this._activityConfig.__Hero.length + 1; t++) cc.instantiate(this.RolePoolItemNode).setParent(this.RolePoolNode);
                    for (t = 0; t < this.RolePoolNode.childrenCount; t++) {
                        var n = this._rolePoolItemArray[t];
                        if (!n) {
                            var o = this.RolePoolNode.children[t];
                            o.setPosition(this._roleItemPos[t]), n = o.addComponent(O), this._rolePoolItemArray[t] = n
                        }
                        n.Init(t, t < this._activityConfig.__Hero.length ? this._heroIconArray[t] : this._panelAtlas.getSpriteFrame("nobody"), function(t) {
                            e.SetSelectedRoleBorder(t, void 0)
                        })
                    }
                }, t.prototype.SetSelectedRoleBorder = function(e, t) {
                    if (e > -1 ? this._player1Index != e && (this._player1Index = e, this.SelectedRoleBorder1.node.active || (this.SelectedRoleBorder1.node.active = !0), this._player1Index < this._activityConfig.__Hero.length ? (this.unschedule(this.LoadScheduleCallBack), this.LoadLeftHeroAvatar(e)) : (this._lastRandomIndex = void 0, this.schedule(this.LoadScheduleCallBack, .2))) : this.LoadLeftHeroAvatar(this._player1Index), t > -1 && this._player2Index != t && t < this._activityConfig.__Hero.length) {
                        this.RightSDAvatarNode.active = !0, this.RightTagNode.active = !0;
                        var n = g.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._activityConfig.__Hero[t].Id);
                        this._loadAssetHelper.LoadPrefab("Hero_" + n.Model + "/HeroAvatar", this.RightSDAvatarNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, "standby", !0)
                        }, this._rightSDAvatarFlag, !1)
                    } else this.RightSDAvatarNode.active = !1, this.RightTagNode.active = !1;
                    this._player2Index = t, this._player1Index > -1 ? (this.SelectedRoleBorder1.node.active = !0, this.SelectedRoleBorder1.node.setPosition(this._roleItemPos[e].x, this._roleItemPos[e].y - 125), this._player2Index > -1 ? this._player1Index == this._player2Index ? (this.SelectedRoleBorder1.spriteFrame = this._panelAtlas.getSpriteFrame("border_color"), this.Border2P.active = !0, this.SelectedRoleBorder2Node.active = !1) : (this.SelectedRoleBorder1.spriteFrame = this._panelAtlas.getSpriteFrame("border_blue"), this.Border2P.active = !1, this.SelectedRoleBorder2Node.active = !0, this.SelectedRoleBorder2Node.setPosition(this._roleItemPos[t].x, this._roleItemPos[t].y - 125)) : (this.SelectedRoleBorder1.spriteFrame = this._panelAtlas.getSpriteFrame("border_blue"), this.Border2P.active = !1, this.SelectedRoleBorder2Node.active = !1)) : (this.SelectedRoleBorder1.node.active = !1, this._player2Index > -1 ? (this.SelectedRoleBorder2Node.active = !0, this.SelectedRoleBorder2Node.setPosition(this._roleItemPos[t].x, this._roleItemPos[t].y - 125)) : this.SelectedRoleBorder2Node.active = !1)
                }, t.prototype.LoadScheduleCallBack = function() {
                    var e;
                    if (!e) {
                        do {
                            e = v.default.Instance.GetRandomInt(0, this._activityConfig.__Hero.length - 1)
                        } while (e == this._lastRandomIndex);
                        this._lastRandomIndex = e
                    }
                    this.LoadLeftHeroAvatar(e)
                }, t.prototype.LoadLeftHeroAvatar = function(e) {
                    var t = g.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._activityConfig.__Hero[e].Id);
                    this._loadAssetHelper.LoadPrefab("Hero_" + t.Model + "/HeroAvatar", this.LeftSDAvatarNode, function(e) {
                        e.getComponent(sp.Skeleton).setAnimation(0, "standby", !0)
                    }, this._leftSDAvatarFlag, !1)
                }, t.prototype.SelectLevel = function(e) {
                    this._selectedLevelIndex = e;
                    var t = this._activityConfig.__Level[e];
                    this.CostCountLabel.string = t.CostItemCount.toString(), this.RewardCountLabel.string = t.WinReward.toString()
                }, t.prototype.GetRandomName = function() {
                    var e = g.ConfigDataComponent.Instance.GetArrayConfig(u.FirstNamePool_Config),
                        t = g.ConfigDataComponent.Instance.GetArrayConfig(u.LastNamePool_Config),
                        n = e[Math.floor(Math.random() * e.length)],
                        o = t[Math.floor(Math.random() * t.length)];
                    return n.Name + o.Name
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "fighting_RuleMainTitle".ToUILocale(),
                        titles: ["fighting_RuleMainTitle".ToUILocale()],
                        contents: ["fighting_RuleText".ToUILocale()]
                    };
                    m.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnLeftTagNodeTouchEnd = function() {
                    var e = this,
                        t = this._activityConfig._Locale.find(function(t) {
                            var n;
                            return t.Id == (null === (n = e._activityConfig.__Hero[e._player1Index]) || void 0 === n ? void 0 : n.Id)
                        });
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroInfoTipsPanel.Path, {
                        Text: t ? t.Content : ""
                    }, this.LeftTagNode)
                }, t.prototype.OnRightTagNodeTouchEnd = function() {
                    var e = this,
                        t = this._activityConfig._Locale.find(function(t) {
                            var n;
                            return t.Id == (null === (n = e._activityConfig.__Hero[e._player2Index]) || void 0 === n ? void 0 : n.Id)
                        });
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroInfoTipsPanel.Path, {
                        Text: t ? t.Content : ""
                    }, this.RightTagNode)
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = [{
                        IsActivity: !0,
                        Title: "knife_daily_task".ToUILocale(),
                        ActivityId: this._activityConfig._id,
                        Reddot: w.RedDotManager.Instance.InstanceRedDot.FightingMiniGameDailyTaskNode,
                        Tasks: []
                    }, {
                        IsActivity: !0,
                        Title: "fighting_accumulateTask".ToUILocale(),
                        ActivityId: this._activityConfig._id,
                        Reddot: w.RedDotManager.Instance.InstanceRedDot.FightingMiniGameAccumulateTaskNode,
                        Tasks: []
                    }];
                    this._activityConfig._Tasks.forEach(function(t) {
                        1 == t.IsDaily ? e[0].Tasks.push(t) : e[1].Tasks.push(t)
                    }), l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonTaskPanel.Path, e)
                }, t.prototype.OnShopButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.ActivityExchangeShopPanel.Path, this._activityConfig._id)
                }, t.prototype.OnGiftPackButtonClick = function() {
                    var e = {
                        ActivityId: this._activityConfig._id,
                        ActivityGiftPackData: this._activityConfig._Packs,
                        Deadline: v.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                        BannerPath: this._activityConfig.Common.Pictures[0],
                        Title: "LuckyDraw_pack".ToUILocale()
                    };
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonGiftPackPanel.Path, e)
                }, t.prototype.OnReportButtonClick = function() {
                    var e = this,
                        t = new c.Req_Activity_FightingMiniGameReports;
                    t.ActivityId = this._activityConfig._id, g.RpcComponent.Instance.Call(t, function(t) {
                        l.UIManager.Instance.ShowUIPanel(f.PanelConfig.FightingMiniGameReportPanel.Path, t, e._activityConfig._id)
                    })
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnPracticeButtonClick = function() {
                    if (this.unschedule(this.LoadScheduleCallBack), !isNaN(this._player1Index)) {
                        this._player1Index != this._activityConfig.__Hero.length || isNaN(this._lastRandomIndex) || (this._player1Index = this._lastRandomIndex);
                        var e = this._activityConfig.__Hero[this._player1Index],
                            t = this._activityConfig.__Hero[v.default.Instance.GetRandomInt(0, this._activityConfig.__Hero.length - 1)],
                            n = v.default.Instance.GetRandomIconAndFrame(),
                            o = new c.Push_OnFightingMiniGameMessage;
                        o.RoomInfo = {
                            P1: {
                                Uid: h.DataCenter.Instance.Uid,
                                Zone: h.DataCenter.Zone,
                                HeroId: e.Id,
                                Hp: e.InitialHp,
                                Mp: e.InitialMp,
                                Name: h.DataCenter.Instance.GetStringData(C.UserDataKey.RoleName),
                                HeadIcon: h.DataCenter.Instance.GetIntData(C.UserDataKey.HeadIcon),
                                HeadFrame: h.DataCenter.Instance.GetIntData(C.UserDataKey.HeadFrame)
                            },
                            P2: {
                                Uid: -1,
                                Zone: 0,
                                HeroId: t.Id,
                                Hp: t.InitialHp,
                                Mp: t.InitialMp,
                                Name: this.GetRandomName(),
                                HeadIcon: n[0],
                                HeadFrame: n[1]
                            },
                            Level: 102,
                            Round: 0,
                            ActivityId: this._activityConfig._id,
                            Type: C.FightingMiniGameRoomType.Match
                        }, l.UIManager.Instance.ShowUIPanel(f.PanelConfig.FightingMiniGameBattlePanel.Path, 1, this._activityConfig._id, o)
                    }
                }, t.prototype.OnGuideButtonClick = function() {
                    this.unschedule(this.LoadScheduleCallBack), this._player1Index != this._activityConfig.__Hero.length || isNaN(this._lastRandomIndex) || (this._player1Index = this._lastRandomIndex);
                    var e = this._activityConfig.__Hero.find(function(e) {
                            return 13507 == e.Id
                        }),
                        t = this._activityConfig.__Hero.find(function(e) {
                            return 12402 == e.Id
                        }),
                        n = v.default.Instance.GetRandomIconAndFrame(),
                        o = new c.Push_OnFightingMiniGameMessage;
                    o.RoomInfo = {
                        P1: {
                            Uid: h.DataCenter.Instance.Uid,
                            Zone: h.DataCenter.Zone,
                            HeroId: e.Id,
                            Hp: e.InitialHp,
                            Mp: e.InitialMp,
                            Name: h.DataCenter.Instance.GetStringData(C.UserDataKey.RoleName),
                            HeadIcon: h.DataCenter.Instance.GetIntData(C.UserDataKey.HeadIcon),
                            HeadFrame: h.DataCenter.Instance.GetIntData(C.UserDataKey.HeadFrame)
                        },
                        P2: {
                            Uid: -1,
                            Zone: 0,
                            HeroId: t.Id,
                            Hp: t.InitialHp,
                            Mp: t.InitialMp,
                            Name: this.GetRandomName(),
                            HeadIcon: n[0],
                            HeadFrame: n[1]
                        },
                        Level: 102,
                        Round: 0,
                        ActivityId: this._activityConfig._id,
                        Type: C.FightingMiniGameRoomType.Match
                    }, l.UIManager.Instance.ShowUIPanel(f.PanelConfig.FightingMiniGameBattlePanel.Path, 2, this._activityConfig._id, o)
                }, t.prototype.OnArrowButtonClick = function() {
                    if (this.SelectCountBg.active) this.SelectCountBg.active = !1;
                    else if (this.SelectCountBg.active = !0, !this._levelListLabelArray) {
                        this._levelListLabelArray = [];
                        for (var e = 0; e < this._activityConfig.__Level.length; e++)
                            if (!(this._activityConfig.__Level[e].Id > 100)) {
                                var t = this.SelectCountBg.children[e],
                                    n = void 0;
                                t || (t = cc.instantiate(this.SelectCountBg.children[1])).setParent(this.SelectCountBg), t.name = e.toString(), t.on("toggle", this.OnLevelTouchEnd.bind(this)), n = t.getComponent(P.default), this._levelListLabelArray.push(n), n.Init(this._activityConfig.__Level[e].CostItemCount.toString())
                            } this._levelListLabelArray[this._selectedLevelIndex].isChecked = !0
                    }
                }, t.prototype.OnLevelTouchEnd = function(e) {
                    var t = Number(e.node.name);
                    this.SelectLevel(t), this.SelectCountBg.active = !1
                }, t.prototype.OnMatchButtonClick = function() {
                    var e = this,
                        t = this._activityConfig.__Level[this._selectedLevelIndex];
                    if (!h.DataCenter.Instance.IsItemEnough(this._activityConfig.CustomPart.ItemId, t.CostItemCount)) return m.UIUtlity.ShowFloatingHint("fighting_notEnough".ToUILocale()), l.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, this._activityConfig.CustomPart.ItemId), this.unschedule(this.LoadScheduleCallBack), void(this._player1Index == this._activityConfig.__Hero.length && this.SetSelectedRoleBorder(this._lastRandomIndex, void 0));
                    if (!isNaN(this._player1Index)) {
                        var n;
                        this._player1Index == this._activityConfig.__Hero.length ? (n = v.default.Instance.GetRandomInt(0, this._activityConfig.__Hero.length - 1), this._randomRoleIndex = n) : n = this._player1Index, this._startMatchTime = g.RpcComponent.Instance.ServerTime, this.MatchingRichText.node.active = !0, this.SetMatchingRichText(), this.schedule(this.SetMatchingRichText, 1);
                        var o = new c.Req_Activity_FightingMiniGameMatchStart;
                        o.ActivityId = this._activityConfig._id, o.Level = t.Id, o.HeroId = this._activityConfig.__Hero[n].Id, g.RpcComponent.Instance.Call(o, function() {
                            e.MatchingBlockNode.active = !0
                        }, this.MatchOver.bind(this))
                    }
                }, t.prototype.OnStopMatchButtonClick = function() {
                    var e = new c.Req_Activity_FightingMiniGameMatchCancel;
                    e.ActivityId = this._activityConfig._id, e.Level = this._activityConfig.__Level[this._selectedLevelIndex].Id, g.RpcComponent.Instance.Call(e, this.MatchOver.bind(this))
                }, t.prototype.MatchOver = function() {
                    this.MatchingBlockNode.active = !1, this.unschedule(this.SetMatchingRichText), this.MatchingRichText.node.active = !1
                }, t.prototype.SetMatchingRichText = function() {
                    var e = g.RpcComponent.Instance.ServerTime,
                        t = Math.ceil((e - this._startMatchTime) / I.Etc.SecondDuration),
                        n = Math.floor(t / 60),
                        o = t % 60,
                        r = String(n).padStart(2, "0") + ":" + String(o).padStart(2, "0");
                    this.MatchingRichText.string = "<outline width=3 color=#000000>" + "fighting_matching".ToUILocale() + "<br/>" + r + "<outline>"
                }, t.prototype.GetPushMessage = function(e) {
                    e.RoomInfo.Type == C.FightingMiniGameRoomType.Match && (this.MatchOver(), this.unschedule(this.LoadScheduleCallBack), e.RoomInfo.P1.Uid == h.DataCenter.Instance.Uid ? this.SetSelectedRoleBorder(this._activityConfig.__Hero.findIndex(function(t) {
                        return t.Id == e.RoomInfo.P1.HeroId
                    }), this._activityConfig.__Hero.findIndex(function(t) {
                        return t.Id == e.RoomInfo.P2.HeroId
                    })) : this.SetSelectedRoleBorder(this._activityConfig.__Hero.findIndex(function(t) {
                        return t.Id == e.RoomInfo.P2.HeroId
                    }), this._activityConfig.__Hero.findIndex(function(t) {
                        return t.Id == e.RoomInfo.P1.HeroId
                    })), l.UIManager.Instance.ShowUIPanel(f.PanelConfig.FightingMiniGameBattlePanel.Path, 0, this._activityConfig._id, e))
                }, i([L(cc.Node)], t.prototype, "LeftAvatarMaskNode", void 0), i([L(cc.Node)], t.prototype, "RightAvatarMaskNode", void 0), i([L(cc.Node)], t.prototype, "LeftSDAvatarNode", void 0), i([L(cc.Node)], t.prototype, "RightSDAvatarNode", void 0), i([L(cc.Node)], t.prototype, "LeftTagNode", void 0), i([L(cc.Node)], t.prototype, "RightTagNode", void 0), i([L(cc.RichText)], t.prototype, "MatchingRichText", void 0), i([L(cc.Node)], t.prototype, "RolePoolNode", void 0), i([L(cc.Node)], t.prototype, "RolePoolItemNode", void 0), i([L(cc.Sprite)], t.prototype, "SelectedRoleBorder1", void 0), i([L(cc.Node)], t.prototype, "Border2P", void 0), i([L(cc.Node)], t.prototype, "SelectedRoleBorder2Node", void 0), i([L(cc.Node)], t.prototype, "SelectCountBg", void 0), i([L(cc.Button)], t.prototype, "ArrowButton", void 0), i([L(cc.Sprite)], t.prototype, "ItemIcon1", void 0), i([L(cc.Sprite)], t.prototype, "ItemIcon2", void 0), i([L(cc.Label)], t.prototype, "ItemTagLabel1", void 0), i([L(cc.Label)], t.prototype, "ItemTagLabel2", void 0), i([L(cc.Label)], t.prototype, "CostCountLabel", void 0), i([L(cc.Label)], t.prototype, "RewardCountLabel", void 0), i([L(cc.Button)], t.prototype, "MatchButton", void 0), i([L(cc.Label)], t.prototype, "MatchButtonLabel", void 0), i([L(cc.Button)], t.prototype, "RuleButton", void 0), i([L(cc.Label)], t.prototype, "Title", void 0), i([L(p.default)], t.prototype, "ActivityCountDownComponent", void 0), i([L(d.default)], t.prototype, "CurrencyBarItem", void 0), i([L(cc.Button)], t.prototype, "TaskButton", void 0), i([L(cc.Label)], t.prototype, "TaskButtonLabel", void 0), i([L(cc.Button)], t.prototype, "ShopButton", void 0), i([L(cc.Label)], t.prototype, "ShopButtonLabel", void 0), i([L(cc.Button)], t.prototype, "GiftPackButton", void 0), i([L(cc.Label)], t.prototype, "GiftPackButtonLabel", void 0), i([L(cc.Button)], t.prototype, "ReportButton", void 0), i([L(cc.Label)], t.prototype, "ReportButtonLabel", void 0), i([L(cc.Button)], t.prototype, "BackButton", void 0), i([L(cc.Node)], t.prototype, "BtnLayoutNode", void 0), i([L(cc.Node)], t.prototype, "MatchingBlockNode", void 0), i([L(cc.Button)], t.prototype, "StopMatchButton", void 0), i([L(cc.Label)], t.prototype, "StopMatchButtonLabel", void 0), i([L(cc.Button)], t.prototype, "PracticeButton", void 0), i([L(cc.Label)], t.prototype, "PracticeButtonLabel", void 0), i([L(cc.Button)], t.prototype, "GuideButton", void 0), i([L(cc.Label)], t.prototype, "GuideButtonLabel", void 0), i([L(S.default)], t.prototype, "FightingGameGuideComponent", void 0), i([R], t)
            }(l.BaseUIFullScreenPanel);
        n.default = k;
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.RoleIcon = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.RoleIcon = cc.find("IconMask/Icon", this.node).getComponent(cc.Sprite), this.RoleIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnIconTouchEnd, this)
            }, t.prototype.Init = function(e, t, n) {
                this._index = e, this.RoleIcon.spriteFrame = t, this._selectedCallback = n
            }, t.prototype.OnIconTouchEnd = function() {
                this._selectedCallback(this._index)
            }, i([L(cc.Sprite)], t.prototype, "RoleIcon", void 0), t
        }(cc.Component);
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/FightingGameGuideComponent": "FightingGameGuideComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent"
    }],
    FightingMiniGameReportItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "da1fc/m5nBD5bBVcUivz4pA", "FightingMiniGameReportItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./HeadComponent"),
            s = e("../../../Util/TimeUtil"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ResultSprite = null, t.LevelItemIcon = null, t.RewardItemIcon = null, t.HeadNode = null, t.LevelNameLabel = null, t.LevelItemCount = null, t.PlayerNameLabel = null, t.TimeLabel = null, t.NoRewardHint = null, t.RewardItemCount = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r, i) {
                    var l = e.IntParams[1],
                        c = e.IntParams[2],
                        u = e.IntParams[4],
                        p = e.IntParams[5],
                        d = e.StringParams[0];
                    if (this.ResultSprite.spriteFrame = r, this.LevelItemIcon.spriteFrame = i, this.RewardItemIcon.spriteFrame = i, this.LevelNameLabel.string = n || "", this.LevelItemCount.string = t.CostItemCount.toString(), !this._headComponent) {
                        var h = cc.instantiate(o);
                        h.setParent(this.HeadNode), this._headComponent = h.getComponent(a.default)
                    }
                    this._headComponent.SetUI(u, p), this.PlayerNameLabel.string = d, this.TimeLabel.string = s.TimeUtil.Format("YYYY-MM-DD HH:mm", c), 0 == l ? (this.RewardItemIcon.node.active = !0, this.RewardItemCount.node.active = !0, this.NoRewardHint.node.active = !1, this.RewardItemCount.string = t.WinReward.toString()) : (this.RewardItemIcon.node.active = !1, this.RewardItemCount.node.active = !1, this.NoRewardHint.node.active = !0, this.NoRewardHint.string = 2 == l ? "fighting_rewardDraw".ToUILocale() : "heroSkin_notGet".ToUILocale())
                }, i([u(cc.Sprite)], t.prototype, "ResultSprite", void 0), i([u(cc.Sprite)], t.prototype, "LevelItemIcon", void 0), i([u(cc.Sprite)], t.prototype, "RewardItemIcon", void 0), i([u(cc.Node)], t.prototype, "HeadNode", void 0), i([u(cc.Label)], t.prototype, "LevelNameLabel", void 0), i([u(cc.Label)], t.prototype, "LevelItemCount", void 0), i([u(cc.Label)], t.prototype, "PlayerNameLabel", void 0), i([u(cc.Label)], t.prototype, "TimeLabel", void 0), i([u(cc.Label)], t.prototype, "NoRewardHint", void 0), i([u(cc.Label)], t.prototype, "RewardItemCount", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../Util/TimeUtil": "TimeUtil",
        "./HeadComponent": "HeadComponent"
    }],
    FightingMiniGameReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "61db4V6YGFNxqFw/B25Nq2z", "FightingMiniGameReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CustomLayout"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/FightingMiniGameReportItem"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Auxiliary/UIUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.CustomLayout = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("FightingMiniGamePanel/FightingMiniGameReportItem", cc.Prefab), this.LoadDynamicAsset(h.BundlePath.HeadComponent, cc.Prefab)]).then(function(e) {
                                        t._listItemPrefab = e[0], t._headPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "allianceWar_report".ToUILocale(), this.InitCustomLayout()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._reports = t[0], this._reports.Reports = this._reports.Reports.filter(function(e) {
                        return e.IntParams[3] != d.DataCenter.Instance.Uid
                    }), this._reports.Reports.sort(function(e, t) {
                        return t.IntParams[2] - e.IntParams[2]
                    }), this._activityConfig = d.DataCenter.Instance.GetActivityConfigsByActId(t[1]), this._resultIcons = [y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Win"), y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Lose"), y.UIUtlity.COMMON_ATLAS5.getSpriteFrame("draw1")]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = [], n = f.default.Instance.GetItemPathById(this._activityConfig.CustomPart.ItemId), t.push(this.LoadDynamicAsset(n, cc.SpriteFrame)), [4, Promise.all(t).then(function(e) {
                                        o._itemIcon = e[e.length - 1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.RenderCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this.CustomLayout.Init(this._listItemPrefab)
                }, t.prototype.RenderCustomLayout = function() {
                    this.CustomLayout.RenderLayOut(this._reports.Reports.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o;
                        if (t < n._reports.Reports.length) {
                            e.active = !0;
                            var r = n._reports.Reports[t],
                                i = r.IntParams[0];
                            e.getComponent(p.default).Init(r, n._activityConfig.__Level.find(function(e) {
                                return e.Id == i
                            }), null === (o = n._activityConfig._Locale.find(function(e) {
                                return e.Id == i
                            })) || void 0 === o ? void 0 : o.Content, n._headPrefab, n._resultIcons[r.IntParams[1]], n._itemIcon)
                        } else e.active = !1
                    })
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(c.default)], t.prototype, "CustomLayout", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/FightingMiniGameReportItem": "FightingMiniGameReportItem"
    }],
    FightingMiniGameResultPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "786f8hzIHdM9a/SVYCuJW3j", "FightingMiniGameResultPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/HeadComponent"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/CustomProgressBar"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.WinBgNode = null, t.LoseBgNode = null, t.DrawBgNode = null, t.NameLabel = null, t.Player1Node = null, t.Player2Node = null, t.SettleTitleLabel1 = null, t.SettleTitleLabel2 = null, t.ItemIcon = null, t.ItemCountLabel = null, t.OkButton = null, t.OkButtonLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    return t._userHeaderPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SettleTitleLabel1.string = "SeniorArenaSettlement_ReportPartTitle".ToUILocale(), this.SettleTitleLabel2.string = "reward".ToUILocale(), this.OkButtonLabel.string = "ok".ToUILocale(), this.OkButton.node.on("click", this.OnOkButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityConfig = t[0], this._roomInfo = t[1], this._results = this.GetBattleResult()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = h.default.Instance.GetItemPathById(this._activityConfig.CustomPart.ItemId), [4, Promise.all([this.LoadDynamicAsset(t, cc.SpriteFrame), this.LoadDynamicAsset(c.BundlePath.HeadIcon + "/" + this._roomInfo.P1.HeroId, cc.SpriteFrame), this.LoadDynamicAsset(c.BundlePath.HeadIcon + "/" + this._roomInfo.P2.HeroId, cc.SpriteFrame)]).then(function(e) {
                                        n.ItemIcon.spriteFrame = e[0], n._player1HeroIcon = e[1], n._player2HeroIcon = e[2]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    var n, o = this;
                    if (e.prototype.DisPlay.call(this, t), p.DataCenter.Instance.Uid == this._roomInfo.P1.Uid)
                        if (this.SetTitleResultSpriteFrame(this._results[0]), 2 == this._results[0]) {
                            var r = this._activityConfig.__Level.find(function(e) {
                                return e.Id == o._roomInfo.Level
                            });
                            this.ItemCountLabel.string = r.WinReward.toString()
                        } else this.ItemCountLabel.string = "0";
                    else this.SetTitleResultSpriteFrame(this._results[1]), 2 == this._results[0] ? (r = this._activityConfig.__Level.find(function(e) {
                        return e.Id == o._roomInfo.Level
                    }), this.ItemCountLabel.string = r.WinReward.toString()) : this.ItemCountLabel.string = "0";
                    this._player1Component || (this._player1Component = this.Player1Node.addComponent(_)), this._player1Component.Init(this._roomInfo.P1, this._activityConfig.__Hero.find(function(e) {
                        return e.Id == o._roomInfo.P1.HeroId
                    }).InitialHp, this._userHeaderPrefab, this._player1HeroIcon, this.GetResultSpriteFrameName(this._results[0])), this._player2Component || (this._player2Component = this.Player2Node.addComponent(_)), this._player2Component.Init(this._roomInfo.P2, this._activityConfig.__Hero.find(function(e) {
                        return e.Id == o._roomInfo.P2.HeroId
                    }).InitialHp, this._userHeaderPrefab, this._player2HeroIcon, this.GetResultSpriteFrameName(this._results[1])), this.NameLabel.string = (null === (n = this._activityConfig._Locale.find(function(e) {
                        return e.Id == o._roomInfo.Level
                    })) || void 0 === n ? void 0 : n.Content) || ""
                }, t.prototype.GetBattleResult = function() {
                    return this._roomInfo.P1.Hp <= 0 && this._roomInfo.P2.Hp > 0 ? [0, 2] : this._roomInfo.P1.Hp > 0 && this._roomInfo.P2.Hp <= 0 ? [2, 0] : this._roomInfo.P1.Hp <= 0 && this._roomInfo.P2.Hp <= 0 ? [1, 1] : this._roomInfo.P1.Hp > this._roomInfo.P2.Hp ? [2, 0] : this._roomInfo.P1.Hp < this._roomInfo.P2.Hp ? [0, 2] : [1, 1]
                }, t.prototype.GetResultSpriteFrameName = function(e) {
                    return 0 == e ? d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Lose") : 1 == e ? d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("draw1") : d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("Win")
                }, t.prototype.SetTitleResultSpriteFrame = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            switch (this.WinBgNode.active = !1, this.LoseBgNode.active = !1, this.DrawBgNode.active = !1, e) {
                                case 0:
                                    this.LoseBgNode.active = !0;
                                    break;
                                case 1:
                                    this.DrawBgNode.active = !0;
                                    break;
                                case 2:
                                    this.WinBgNode.active = !0
                            }
                            return [2]
                        })
                    })
                }, t.prototype.OnOkButtonClick = function() {
                    this.Close(), l.UIManager.Instance.QuitPanelStack(c.PanelConfig.FightingMiniGameBattlePanel.Path)
                }, i([m(cc.Node)], t.prototype, "WinBgNode", void 0), i([m(cc.Node)], t.prototype, "LoseBgNode", void 0), i([m(cc.Node)], t.prototype, "DrawBgNode", void 0), i([m(cc.Label)], t.prototype, "NameLabel", void 0), i([m(cc.Node)], t.prototype, "Player1Node", void 0), i([m(cc.Node)], t.prototype, "Player2Node", void 0), i([m(cc.Label)], t.prototype, "SettleTitleLabel1", void 0), i([m(cc.Label)], t.prototype, "SettleTitleLabel2", void 0), i([m(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([m(cc.Label)], t.prototype, "ItemCountLabel", void 0), i([m(cc.Button)], t.prototype, "OkButton", void 0), i([m(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I;
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ZoneLabel = null, t.UserNameLabel = null, t.UserHeadNode = null, t.HeroHeader = null, t.Result = null, t.HpTagLabel = null, t.ResultHpBar = null, t.HpLabel = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.ZoneLabel = cc.find("UserInfoNode/ZoneLabel", this.node).getComponent(cc.Label), this.UserNameLabel = cc.find("UserInfoNode/UserNameLabel", this.node).getComponent(cc.Label), this.UserHeadNode = cc.find("UserInfoNode/UserHeadNode", this.node), this.HeroHeader = cc.find("HeroHeaderMask/HeroHeader", this.node).getComponent(cc.Sprite), this.Result = cc.find("Result", this.node).getComponent(cc.Sprite), this.HpTagLabel = cc.find("HpTagLabel", this.node).getComponent(cc.Label), this.ResultHpBar = cc.find("ResultHpBar", this.node).getComponent(f.default), this.HpLabel = cc.find("ResultHpBar/HpValue", this.node).getComponent(cc.Label), this.HpTagLabel.string = "fighting_resultHp".ToUILocale()
            }, t.prototype.Init = function(e, t, n, o, r) {
                var i = e.Hp / t;
                if (this.HpLabel.string = "{0}%".Fmt(Math.floor(100 * i)), this.ResultHpBar.progress = i, this.HeroHeader.spriteFrame = o, this.Result.spriteFrame = r, !this._headComponent) {
                    var a = cc.instantiate(n);
                    a.setParent(this.UserHeadNode), this._headComponent = a.getComponent(u.default)
                }
                this.ZoneLabel.string = "S{0}".Fmt(e.Zone), this.UserNameLabel.string = e.Name, this._headComponent.SetUI(e.HeadIcon, e.HeadFrame)
            }, i([m(cc.Label)], t.prototype, "ZoneLabel", void 0), i([m(cc.Label)], t.prototype, "UserNameLabel", void 0), i([m(cc.Node)], t.prototype, "UserHeadNode", void 0), i([m(cc.Sprite)], t.prototype, "HeroHeader", void 0), i([m(cc.Sprite)], t.prototype, "Result", void 0), i([m(cc.Label)], t.prototype, "HpTagLabel", void 0), i([m(f.default)], t.prototype, "ResultHpBar", void 0), i([m(cc.Label)], t.prototype, "HpLabel", void 0), t
        }(cc.Component);
        cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/HeadComponent": "HeadComponent"
    }],
    FirstPayToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d4a573coW9KDKffJJuTaVHH", "FirstPayToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Labels = [], t.RedDot = null, t
                }
                return r(t, e), t.prototype.SetLabels = function(e) {
                    this.Labels.forEach(function(t) {
                        t.string = e
                    })
                }, i([l({
                    type: [cc.Label]
                })], t.prototype, "Labels", void 0), i([l(cc.Node)], t.prototype, "RedDot", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    FitSoulSkillTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "548a3xa8ZlCA4PQU16N0qDR", "FitSoulSkillTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/SoulRecordSkillItem"),
            d = e("../../Components/Components"),
            h = e("../Components/TipsLocationComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.PopUp, !1, !1, !1), t.SkillName = null, t.Condiciton = null, t.SkillDescList = [], t.Stars = [], t.MaskNode = null, t.SkillContainer = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("SoulRecordPanel/Components/SoulRecordSkillItem", cc.Prefab), n = this.LoadDynamicAsset("SoulRecordPanel/PNG/SoulRecordPanel", cc.SpriteAtlas), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._skillPrefab = o[0], this._starAtlas = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._clickNode = t[0], this._chapterId = t[1], this._skillIndex = t[2]
                }, t.prototype.DisPlay = function(t) {
                    return a(this, void 0, Promise, function() {
                        var n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this, t), n = d.DataCenter.Instance.GetDataById(l.FighterSpirit_Model, 1), o = cc.instantiate(this._skillPrefab), r = o.getComponent(p.default), i = n && n.ChapterSkills[this._chapterId] && n.ChapterSkills[this._chapterId].Items[this._skillIndex] ? n.ChapterSkills[this._chapterId].Items[this._skillIndex] : 0, [4, r.Set(this._chapterId, this._skillIndex, i, !1, !1, !1)];
                                case 1:
                                    return s.sent(), this.isValid ? (this.SkillName.string = r.Name, r.Condiction ? this.Condiciton.string = r.Condiction : this.Condiciton.node.active = !1, this.SkillContainer.addChild(o), d.ConfigDataComponent.Instance.GetConfigById(c.FighterSpiritChapter_Config, this._chapterId)["Skills" + (this._skillIndex + 1)].forEach(function(e, t) {
                                        var n = e.Items[0];
                                        a.SkillDescList[t].string = n.ToHeroSkillDesc()
                                    }), this.Stars.forEach(function(e) {
                                        e.spriteFrame = a._starAtlas.getSpriteFrame("SkillStar1")
                                    }), this.node.getComponent(h.default).RepositionPanel(this._clickNode), this.node.opacity = 255, r && r.Level > 0 && (this.SkillDescList[r.Level - 1].node.color = (new cc.Color).fromHEX("#23e123")), [2]) : [2]
                            }
                        })
                    })
                }, i([g(cc.Label)], t.prototype, "SkillName", void 0), i([g(cc.Label)], t.prototype, "Condiciton", void 0), i([g([cc.Label])], t.prototype, "SkillDescList", void 0), i([g([cc.Sprite])], t.prototype, "Stars", void 0), i([g(cc.Node)], t.prototype, "MaskNode", void 0), i([g(cc.Node)], t.prototype, "SkillContainer", void 0), i([y], t)
            }(u.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Components/SoulRecordSkillItem": "SoulRecordSkillItem",
        "../Components/TipsLocationComponent": "TipsLocationComponent"
    }],
    FitSoulTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "70aa9f2KB1HUbmTHxmSFdJg", "FitSoulTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/TipsLocationComponent"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../Components/DataCenter"),
            f = e("../Components/SoulRecordItemComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1, !1, !1), t.GraphName = null, t.GoLabel = null, t.attrsLabel = null, t.Stars = [], t.GoNode = null, t.SoulContainer = null, t.MaskNode = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("SoulRecordPanel/Components/SoulRecordItemComponent", cc.Prefab), n = this.LoadDynamicAsset("SoulRecordPanel/PNG/SoulRecordPanel", cc.SpriteAtlas), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._soulPrefab = o[0], this._starAtlas = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1), this.GoLabel.string = "task_goto".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._grpahId = t[0], this._clickNode = t[1]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t);
                    var o = d.ConfigDataComponent.Instance.GetConfigById(p.FighterSpiritGraph_Config, this._grpahId),
                        r = h.DataCenter.Instance.GetDataById(u.FighterSpirit_Model, 1);
                    this.GraphName.string = this._grpahId.ToSoulGraphName(), this.GoNode.on("click", this.OnClickGo, this);
                    var i = this._starAtlas.getSpriteFrame("GraphStar"),
                        a = r && r.GraphStar[this._grpahId] ? r.GraphStar[this._grpahId] : 0;
                    for (var s in this.Stars) {
                        if (!(Number(s) < a)) break;
                        this.Stars[s].spriteFrame = i
                    }
                    o.FighterSpiritIds.forEach(function(e) {
                        var t = cc.instantiate(n._soulPrefab);
                        n.SoulContainer.addChild(t), t.getComponent(f.default).Set(e, !1, !1)
                    });
                    var l = o.Attrs[a].Items;
                    for (s = 0; s < l.length;) {
                        var g = y.default.GetHeroAttribute(l[s], l[s + 1]);
                        this.attrsLabel.string += g.Name + " +" + g.Value + "   ", s += 2
                    }
                    this.node.getComponent(c.default).RepositionPanel(this._clickNode), this.node.opacity = 255
                }, t.prototype.OnClickGo = function() {
                    for (var e, t = d.ConfigDataComponent.Instance.GetArrayConfig(p.FighterSpiritChapter_Config), n = 0; n < t.length; n++) {
                        for (var o = t[n], r = 0; r < o.GraphIds.length; r++)
                            if (o.GraphIds[r] == this._grpahId) {
                                e = o.Id;
                                break
                            } if (null != e) break
                    }
                    this.Close(), l.Game.EventDispatcher.Emit("EVENT_FITSOUL_FIND_GRAPH", e, this._grpahId)
                }, i([I(cc.Label)], t.prototype, "GraphName", void 0), i([I(cc.Label)], t.prototype, "GoLabel", void 0), i([I(cc.Label)], t.prototype, "attrsLabel", void 0), i([I([cc.Sprite])], t.prototype, "Stars", void 0), i([I(cc.Node)], t.prototype, "GoNode", void 0), i([I(cc.Node)], t.prototype, "SoulContainer", void 0), i([I(cc.Node)], t.prototype, "MaskNode", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/SoulRecordItemComponent": "SoulRecordItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent"
    }],
    FlappyBirdPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4d9b9KtIgtJu76CPiU36iol", "FlappyBirdPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Components/Components"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("./FlappyBirdPillarComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.BgNode = null, t.Bg1 = null, t.Bg2 = null, t.LandNode1 = null, t.LandNode2 = null, t.FlyPillarNode = null, t.FlyNode = null, t.ReturnButton = null, t.TimeLabel = null, t.HintLabel = null, t.TimeThreeNode = null, t.TimeImage = null, t.DownG = -1400, t.UpG = 4e4, t.BgMoveSpeed = 400, t.GameTime = 3e4, t.PillarTimeOffSet = 2e3, t.PassAreaHeight = 500, t._startGameTime = 0, t._nodePool = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("FlappyBirdPanel/Components/FlappyBirdPillarComponent", cc.Prefab)];
                                case 1:
                                    return t._pillarPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.HintLabel.string = "flappyBaird_click_fly".ToUILocale(), this.BgNode.on(cc.Node.EventType.TOUCH_END, this.OnClickBg, this), this.ReturnButton.node.on("click", this.OnClickReturnButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._circusGameIndex = t[0], this.FlyNode.setPosition(0, 0), this._isStart = !1, this._isPause = !1, this._curG = this.DownG, this._vy = 0, this._nodePool = []
                }, t.prototype.update = function(e) {
                    if (this._isStart && !this._isPause) {
                        var t = u.RpcComponent.Instance.ServerTime,
                            n = t - this._startGameTime - this._pauseTime;
                        if (n >= this.GameTime) this.SettleGame();
                        else {
                            var o = Math.floor((this.GameTime - n) / 1e3);
                            this.TimeLabel.string != o.toString() && (this.TimeLabel.string = o.toString()), this.LandNode1.x <= -1080 ? (this.LandNode1.x = this.LandNode2.x + 1080 - this.BgMoveSpeed * e, this.Bg1.x = this.LandNode2.x + 1080 - this.BgMoveSpeed * e) : (this.LandNode1.x -= this.BgMoveSpeed * e, this.Bg1.x -= this.BgMoveSpeed * e), this.LandNode2.x <= -1080 ? (this.LandNode2.x = this.LandNode1.x + 1080 - this.BgMoveSpeed * e, this.Bg2.x = this.LandNode1.x + 1080 - this.BgMoveSpeed * e) : (this.LandNode2.x -= this.BgMoveSpeed * e, this.Bg2.x -= this.BgMoveSpeed * e);
                            var r = this.FlyNode.y,
                                i = this._vy * e + .5 * this._curG * e * e;
                            this._vy += this._curG * e, this.FlyNode.y = r + i, this._curG != this.DownG && (this._curG = this.DownG);
                            for (var a = Math.floor(n / this.PillarTimeOffSet), s = a + 2, l = 0, c = this.FlyPillarNode.children.length - 1; c >= 0; c--) {
                                var h = (b = this.FlyPillarNode.children[c]).getComponent(d.default);
                                b.x -= this.BgMoveSpeed * e, l = Math.max(l, h.PillarId), b.x < -(p.UIUtlity.DESIGN_SCREEN_WIDTH + b.width) / 2 && (b.removeFromParent(), this._nodePool.push(b))
                            }
                            if (l - s < 2)
                                for (c = l + 1; c <= s; c++)
                                    for (var f = (this._startGameTime + c * this.PillarTimeOffSet - t + this._pauseTime) * this.BgMoveSpeed / 1e3, y = this.CalculateRandowY(), g = 0; g < 2; g++) {
                                        var m = void 0;
                                        (m = this._nodePool.length > 0 ? this._nodePool.shift() : cc.instantiate(this._pillarPrefab)).parent = this.FlyPillarNode, m.x = f;
                                        var I = 0 == g ? d.FlappyBirdPillarType.Top : d.FlappyBirdPillarType.Bottom,
                                            _ = 0 == g ? this.FlyPillarNode.height / 2 - y - this.PassAreaHeight / 2 : y + this.FlyPillarNode.height / 2 - this.PassAreaHeight / 2;
                                        m.getComponent(d.default).Init(I, _, this.FlyPillarNode, c)
                                    }
                            this.FlyNode.y - this.FlyNode.height / 2 <= this.FlyPillarNode.y - this.FlyPillarNode.height / 2 && this.SettleGame();
                            var C = this.FlyNode.convertToWorldSpaceAR(cc.v2(0, 0)),
                                v = new cc.Rect(C.x - this.FlyNode.width / 2, C.y - this.FlyNode.height / 2, this.FlyNode.width, this.FlyNode.height);
                            for (c = this.FlyPillarNode.children.length - 1; c >= 0; c--) {
                                var b;
                                if (a == (h = (b = this.FlyPillarNode.children[c]).getComponent(d.default)).PillarId || a + 1 == h.PillarId) {
                                    var S = b.getBoundingBoxToWorld();
                                    v.intersects(S) && this.SettleGame()
                                }
                            }
                        }
                    }
                }, t.prototype.CalculateRandowY = function() {
                    var e = .3 * this.FlyPillarNode.height,
                        t = .6 * this.FlyPillarNode.height - this.PassAreaHeight;
                    return -e + this.PassAreaHeight / 2 + Math.random() * t
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.InitTime()
                }, t.prototype.InitTime = function() {
                    this._countDownThree = 3, this._startGameTime = 0, this._pauseTime = 0, this.TimeLabel.node.active = !1, this.TimeThreeNode.active = !0, this.TimeImage.spriteFrame = p.UIUtlity.COMMON_ATLAS2.getSpriteFrame("3"), this.HintLabel.node.active = !0, this.schedule(this.CountDownThree, 1)
                }, t.prototype.CountDownThree = function() {
                    if (this._countDownThree--, this._countDownThree >= 0)
                        if (this._countDownThree > 0) {
                            var e = Math.round(this._countDownThree);
                            this.TimeImage.spriteFrame = p.UIUtlity.COMMON_ATLAS2.getSpriteFrame(e.toString())
                        } else this.TimeImage.spriteFrame = p.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("go");
                    else this.HintLabel.node.active = !1, this.TimeThreeNode.active = !1, this.TimeLabel.node.active = !0, this.unschedule(this.CountDownThree), this._isStart = !0, this._startGameTime = u.RpcComponent.Instance.ServerTime
                }, t.prototype.OnClickBg = function() {
                    this._vy = 0, this._curG = this.DownG + this.UpG
                }, t.prototype.OnClickReturnButton = function() {
                    var e = this;
                    this._isPause = !0;
                    var t = u.RpcComponent.Instance.ServerTime;
                    p.UIUtlity.ShowHintPanel(null, "flappyBaird_back_hint".ToUILocale(), "", function() {
                        e._isPause = !1, e._pauseTime += u.RpcComponent.Instance.ServerTime - t
                    }, "", function() {
                        e.SettleGame()
                    })
                }, t.prototype.SettleGame = function() {
                    this._isStart = !1, this._isPause = !1, this._nodePool = [], this.unscheduleAllCallbacks();
                    var e = u.RpcComponent.Instance.ServerTime - this._startGameTime - this._pauseTime,
                        t = Math.floor(e / 1e3);
                    l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_CIRCUSMAZE_DIAMOND_COUNT, this._circusGameIndex, t), l.UIManager.Instance.BackUIPanel()
                }, i([y(cc.Node)], t.prototype, "BgNode", void 0), i([y(cc.Node)], t.prototype, "Bg1", void 0), i([y(cc.Node)], t.prototype, "Bg2", void 0), i([y(cc.Node)], t.prototype, "LandNode1", void 0), i([y(cc.Node)], t.prototype, "LandNode2", void 0), i([y(cc.Node)], t.prototype, "FlyPillarNode", void 0), i([y(cc.Node)], t.prototype, "FlyNode", void 0), i([y(cc.Button)], t.prototype, "ReturnButton", void 0), i([y(cc.Label)], t.prototype, "TimeLabel", void 0), i([y(cc.Label)], t.prototype, "HintLabel", void 0), i([y(cc.Node)], t.prototype, "TimeThreeNode", void 0), i([y(cc.Sprite)], t.prototype, "TimeImage", void 0), i([f], t)
            }(l.BaseUIFullScreenPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./FlappyBirdPillarComponent": "FlappyBirdPillarComponent"
    }],
    FlappyBirdPillarComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e4c9aupeR5Kkor4Hfr5AHp6", "FlappyBirdPillarComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FlappyBirdPillarType = void 0;
        var a, s = cc._decorator,
            l = s.ccclass,
            c = s.property;
        (function(e) {
            e[e.Top = 0] = "Top", e[e.Bottom = 1] = "Bottom"
        })(a = n.FlappyBirdPillarType || (n.FlappyBirdPillarType = {}));
        var u = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Pillar1 = null, t.Pillar2 = null, t
            }
            return r(t, e), t.prototype.Init = function(e, t, n, o) {
                this._pillarId = o, this.node.anchorY = e == a.Top ? 1 : 0, this.Pillar1.anchorY = e == a.Top ? 1 : 0, this.node.height = t, this.Pillar1.height = t - this.Pillar2.height / 2, this.node.y = e == a.Top ? n.height / 2 : -n.height / 2, this.Pillar2.y = e == a.Top ? -this.Pillar1.height : this.Pillar1.height
            }, Object.defineProperty(t.prototype, "PillarId", {
                get: function() {
                    return this._pillarId
                },
                enumerable: !1,
                configurable: !0
            }), i([c(cc.Node)], t.prototype, "Pillar1", void 0), i([c(cc.Node)], t.prototype, "Pillar2", void 0), i([l], t)
        }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {}],
    FlipHappyCardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "613faL8PJpJlYsoPz6pOtzZ", "FlipHappyCardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./FlipHappyPanel"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Icon = null, t.CountBg = null, t.Count = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Target", {
                    get: function() {
                        return this._target
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "State", {
                    get: function() {
                        return this._state
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._isInit || (this._basepanel = e, this._isInit = !0), this._target = t, n = e.ActivityModel.IntArray[t], o = e.ActivityModel.IntArray[t + 1], 0 != n ? [3, 1] : (this.CountBg.active = !1, 0 == o ? (this._state = l.FlipHappyCardState.Back, this.Icon.node.active = !1, this.Bg.spriteFrame = e.Atlas.getSpriteFrame("card0")) : (this._state = l.FlipHappyCardState.Front, this.Icon.node.active = !0, this.Bg.spriteFrame = e.Atlas.getSpriteFrame("card1"), this.Icon.spriteFrame = e.Atlas.getSpriteFrame("boom")), [3, 3]);
                                case 1:
                                    return this.CountBg.active = !0, this._state = l.FlipHappyCardState.Front, this.Bg.spriteFrame = e.Atlas.getSpriteFrame("card1"), this.Icon.node.active = !0, r = this.Icon, [4, e.GetSpriteframe(n)];
                                case 2:
                                    r.spriteFrame = i.sent(), this.Count.string = "" + o, i.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.FilpCard = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, new Promise(function(o) {
                                        cc.tween(n.node).to(.3, {
                                            scaleX: 0
                                        }, {
                                            easing: "cubicOut"
                                        }).call(function() {
                                            return a(n, void 0, void 0, function() {
                                                var n;
                                                return s(this, function(o) {
                                                    switch (o.label) {
                                                        case 0:
                                                            return e > 0 ? (this.Icon.node.active = !0, this.CountBg.active = !0, n = this.Icon, [4, this._basepanel.GetSpriteframe(e)]) : [3, 2];
                                                        case 1:
                                                            return n.spriteFrame = o.sent(), this.Count.string = "" + t, [3, 3];
                                                        case 2:
                                                            this.Icon.node.active = !0, this.Icon.spriteFrame = this._basepanel.Atlas.getSpriteFrame("boom"), o.label = 3;
                                                        case 3:
                                                            return this.Bg.spriteFrame = this._basepanel.Atlas.getSpriteFrame("card1"), this._state = l.FlipHappyCardState.Front, [2]
                                                    }
                                                })
                                            })
                                        }).to(.3, {
                                            scaleX: 1
                                        }).call(function() {
                                            o(null)
                                        }).start()
                                    })];
                                case 1:
                                    return [2, o.sent()]
                            }
                        })
                    })
                }, i([p(cc.Sprite)], t.prototype, "Bg", void 0), i([p(cc.Sprite)], t.prototype, "Icon", void 0), i([p(cc.Node)], t.prototype, "CountBg", void 0), i([p(cc.Label)], t.prototype, "Count", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "./FlipHappyPanel": "FlipHappyPanel"
    }],
    FlipHappyOpenNextRoundPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a69d5VLNmFDpa2CHEk5kWv1", "FlipHappyOpenNextRoundPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../Components/LoadAssetHelper"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Round = null, t.BigRewardIcon = null, t.Count = null, t.RewardTitle = null, t.Hint = null, t.RewardList = null, t.NextBtn = null, t.NextBtnLabel = null, t.LoadAssetHelper = null, t._rewards = [], t._items = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return e._itemPrefab = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.NextBtn.node.on("click", this.OnNext, this), this.Hint.string = "tradeWar_roundReward".ToUILocale(), this.RewardTitle.string = "fateStarBox_final".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._rewards = t[0], this._round = t[1], this._callBack = t[2], this._isLastRound = t[3]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isLastRound ? this.NextBtnLabel.string = "ok".ToUILocale() : this.NextBtnLabel.string = "flipHappy_openNext".ToUILocale();
                    var n = this._rewards.length,
                        o = this._rewards[n - 1],
                        r = c.default.Instance.GetItemPathById(o.ItemId);
                    this.LoadAssetHelper.LoadSpriteFrame(r, this.BigRewardIcon, null), this.Count.string = "flipHappy_count".ToUILocale().Fmt(o.Count), this.Round.string = "Activity_HeroPK_Round_Tag".ToUILocale().Fmt(this._round), this.InitReward()
                }, t.prototype.InitReward = function() {
                    for (var e = 0; e < this._rewards.length - 1; e++)
                        if (0 != this._rewards[e].ItemId) {
                            var t = this._items[e];
                            if (!t) {
                                var n = cc.instantiate(this._itemPrefab);
                                n.setParent(this.RewardList), t = n.getComponent(p.ItemComponent), this._items.push(t)
                            }
                            t.Init({
                                ItemId: this._rewards[e].ItemId,
                                Count: this._rewards[e].Count
                            }), t.node.active = !0
                        } for (; e < this._items.length; e++) this._items[e].node.active = !1
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this._callBack && this._callBack(this._isLastRound)
                }, t.prototype.OnNext = function() {
                    this.Close()
                }, i([y(cc.Label)], t.prototype, "Round", void 0), i([y(cc.Sprite)], t.prototype, "BigRewardIcon", void 0), i([y(cc.Label)], t.prototype, "Count", void 0), i([y(cc.Label)], t.prototype, "RewardTitle", void 0), i([y(cc.Label)], t.prototype, "Hint", void 0), i([y(cc.Node)], t.prototype, "RewardList", void 0), i([y(cc.Button)], t.prototype, "NextBtn", void 0), i([y(cc.Label)], t.prototype, "NextBtnLabel", void 0), i([y(d.default)], t.prototype, "LoadAssetHelper", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper"
    }],
    FlipHappyPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6ef5aKwiupFX7jT4J6H66tP", "FlipHappyPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FlipHappyCardState = void 0;
        var l, c, u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Components/DataCenter"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../Components/LoadAssetHelper"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../Util/TimeUtil"),
            C = e("../../RedDot/RedDotDataHandler"),
            v = e("../../RedDot/RedDotManager"),
            b = e("./FlipHappyCardItem"),
            S = e("../Components/CustomProgressBar"),
            w = e("./FlipHappyRoundProgressReward"),
            P = e("../../Auxiliary/EventKeys"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.Front = 0] = "Front", e[e.Back = 1] = "Back"
        })(l = n.FlipHappyCardState || (n.FlipHappyCardState = {})),
        function(e) {
            e[e.Round = 1] = "Round", e[e.ResetCount = 3] = "ResetCount", e[e.GetCount = 4] = "GetCount"
        }(c || (c = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !0), t.Title = null, t.ActivityEndTime = null, t.CurrencyBarItem = null, t.BigReward = null, t.BigRewardCount = null, t.BigRewardTitle = null, t.Hint = null, t.DealCardStart = null, t.CardList = null, t.BackBtn = null, t.TaskBtn = null, t.TaskBtnLabel = null, t.GiftBtn = null, t.GiftBtnLabel = null, t.ShopBtn = null, t.ShopBtnLabel = null, t.RuleBtn = null, t.LoadAssetHelper = null, t.BlockInput = null, t.StartFlipCard = null, t.FlipCardHint = null, t.FloatHintList = null, t.FloatHintNode = null, t.FlloatingNodes = [], t.CustomProgressBar = null, t.RewardItem = null, t.Content = null, t.RewardParent = null, t.Round = null, t._spriteframeMap = {}, t._cardItems = [], t._taskRedDot = {}, t._giftRedDot = {}, t.BoardSize = 5, t.DealCardSpeed = 2e-4, t.RewardSpace = 165, t.RewardSpaceLeft = 120, t._rewardItems = [], t
            }
            return r(t, e), Object.defineProperty(t.prototype, "ItemPrefab", {
                get: function() {
                    return this._itemPrefab
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Atlas", {
                get: function() {
                    return this._atlas
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ActivityModel", {
                get: function() {
                    return this._activityModel
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                p.Game.EventDispatcher.On(P.EventKeys.EVENT_ITEM_CLICK, this.OnGetProgressReward, this)
            }, t.prototype.onDisable = function() {
                p.Game.EventDispatcher.Off(P.EventKeys.EVENT_ITEM_CLICK, this.OnGetProgressReward, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("FlipHappyPanel/FlipHappyCardItem", cc.Prefab), o = this.LoadDynamicAsset("FlipHappyPanel/Png/FlipHappyPanel", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._itemPrefab = e[0], r._cardPrefab = e[1], r._atlas = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.BackBtn.node.on("click", this.OnBack, this), this.TaskBtn.node.on("click", this.OnOpneTaskPanel, this), this.GiftBtn.node.on("click", this.OnOpenGiftPanel, this), this.RuleBtn.node.on("click", this.OnRule, this), this.ShopBtn.node.on("click", this.OnShop, this), this.Title.string = "flipHappy_title".ToUILocale(), this.TaskBtnLabel.string = "btn_task".ToUILocale(), this.GiftBtnLabel.string = "LuckyDraw_pack".ToUILocale(), this.ShopBtnLabel.string = "allianceBase_mainPageShop".ToUILocale(), this.BigRewardTitle.string = "fateStarBox_final".ToUILocale(), this.FlipCardHint.string = "flipHappy_flipHint".ToUILocale()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = d.DataCenter.Instance.ActivityConfigs[this._activityId], this._activeItemId = this._activityConfig.CustomPart.ItemId
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), !t) {
                    if (this._activityModel = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId), !this._activityModel) return void p.UIManager.Instance.BackUIPanel();
                    this.CurrencyBarItem.Init(this._activeItemId), this.RefreshActivityTime(), this.unschedule(this.RefreshActivityTime), this.schedule(this.RefreshActivityTime, 1);
                    var n = _.TimeUtil.GetHour(this._activityConfig.Common.StartTime);
                    this.Hint.string = "flipHappy_hint".ToUILocale().Fmt(this._activityConfig.__Rounds.length, n), this.RefreshBigRewards(), this.InitProgress(), this.InitCardItems()
                }
                this.RefreshRedDot()
            }, t.prototype.RefreshActivityTime = function() {
                var e = m.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - h.RpcComponent.Instance.ServerTime;
                e < 0 ? p.UIManager.Instance.BackUIPanel() : this.ActivityEndTime.string = "HeroRisingStarPackagePanel_DeadlineTimeRichText".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(e))
            }, t.prototype.RefreshRedDot = function() {
                var e = C.RedDotDataHandler.Instance.RefreshFlipHappyGiftPackNode({
                    Value1: this._activityId
                });
                v.RedDotManager.Instance.BindNodeByResult(this.GiftBtn.node, this._giftRedDot, e);
                var t = C.RedDotDataHandler.Instance.RefreshFlipHappyTaskNode({
                    Value1: this._activityId
                });
                v.RedDotManager.Instance.BindNodeByResult(this.TaskBtn.node, this._taskRedDot, t)
            }, t.prototype.RefreshProgress = function() {
                var e = this._activityModel.IntMap[c.Round] <= 0 ? 1 : this._activityModel.IntMap[c.Round];
                this.RefreshProgressBar(this._activityModel.IntMap[c.GetCount], e)
            }, t.prototype.InitCardItems = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                for (this.BlockInput.active = !0, e = 0, t = 0; e < this._activityModel.IntArray.length; e += 2)(n = this._cardItems[t]) || ((o = cc.instantiate(this._cardPrefab)).setParent(this.CardList.children[t]), o.on("click", this.OnClickCard, this), o.name = "" + t, n = o.getComponent(b.default), this._cardItems.push(n)), n.node.active = !1, n.Init(this, e), t++;
                                for (r = [], i = 0; i < this._cardItems.length; i++) r.push(this.DealCard(this._cardItems[i].node, .05 * i));
                                return [4, Promise.all(r).then(function() {
                                    a.BlockInput.active = !1
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.GetSpriteframe = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return (t = this._spriteframeMap[e]) ? [3, 2] : (n = m.default.Instance.GetItemPathById(e), [4, this.LoadDynamicAsset(n, cc.SpriteFrame)]);
                            case 1:
                                t = o.sent(), this._spriteframeMap[e] = t, o.label = 2;
                            case 2:
                                return [2, t]
                        }
                    })
                })
            }, t.prototype.DealCard = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return [4, new Promise(function(o) {
                                    var r = n.DealCardStart.convertToWorldSpaceAR(cc.Vec3.ZERO),
                                        i = e.parent.convertToNodeSpaceAR(r);
                                    e.x = i.x, e.y = i.y;
                                    var a = Math.abs(e.x),
                                        s = Math.abs(e.y),
                                        l = Math.sqrt(Math.pow(a, 2) + Math.pow(s, 2)) * n.DealCardSpeed;
                                    n.scheduleOnce(function() {
                                        e.active = !0, cc.tween(e).to(l, {
                                            x: 0,
                                            y: 0
                                        }, {
                                            easing: "cubicOut"
                                        }).call(function() {
                                            o(null)
                                        }).start()
                                    }, t)
                                })];
                            case 1:
                                return [2, o.sent()]
                        }
                    })
                })
            }, t.prototype.RefreshBigRewards = function() {
                var e, t = null !== (e = this._activityModel.IntMap[c.Round]) && void 0 !== e ? e : 0;
                0 == t && (t = 1), t = Math.min(t, this._activityConfig.__Rounds.length);
                var n = this._activityConfig.__Rounds[t - 1].Reward,
                    o = m.default.Instance.GetItemPathById(n[0]);
                this.LoadAssetHelper.LoadSpriteFrame(o, this.BigReward, null, 5), this.BigRewardCount.string = "flipHappy_count".ToUILocale().Fmt(n[1])
            }, t.prototype.OnClickCard = function(e) {
                var t = this;
                if (d.DataCenter.Instance.IsItemEnough(this._activeItemId, 1)) {
                    var n = parseInt(e.node.name),
                        o = this._cardItems[n];
                    if (o.State != l.Front) {
                        this.BlockInput.active = !0;
                        var r = u.Req_Activity_Flop.create();
                        r.ActivityId = this._activityId, r.Target = o.Target, h.RpcComponent.Instance.Call(r, function(e) {
                            return a(t, void 0, void 0, function() {
                                var t, n, r, i, a, l, u = this;
                                return s(this, function(s) {
                                    switch (s.label) {
                                        case 0:
                                            return this.CurrencyBarItem.Init(this._activeItemId), e.Bomb ? [3, 2] : [4, o.FilpCard(e.Rewards[0].ItemId, e.Rewards[0].Count)];
                                        case 1:
                                            return s.sent(), this.BlockInput.active = !1, r = "rank_belike_hint".ToUILocale().Fmt(e.Rewards[0].ItemId.ToItemName(), e.Rewards[0].Count), I.UIUtlity.ShowFloatingHint(r), [3, 4];
                                        case 2:
                                            for ((t = []).push(o.FilpCard(0, -1)), n = 0, r = [], i = 0; i < e.Index.length; i++) t.push(this._cardItems[e.Index[i] / 2].FilpCard(e.Rewards[n].ItemId, e.Rewards[n].Count)), r.push("rank_belike_hint".ToUILocale().Fmt(e.Rewards[n].ItemId.ToItemName(), e.Rewards[n].Count)), n++;
                                            return [4, Promise.all(t).then(function() {
                                                u.BlockInput.active = !1
                                            })];
                                        case 3:
                                            s.sent(), I.UIUtlity.ShowFloatingHint(r), s.label = 4;
                                        case 4:
                                            return e.RoundFinish && (a = this._activityModel.IntMap[c.Round] > 0 ? this._activityModel.IntMap[c.Round] : 1, l = a >= this._activityConfig.__Rounds.length, p.UIManager.Instance.ShowUIPanel(f.PanelConfig.FlipHappyOpenNextRoundPanel.Path, e.Rewards, a, this.OpenNextRound.bind(this), l)), [2]
                                    }
                                })
                            })
                        }, function() {
                            t.BlockInput.active = !1, t.RefreshPanel()
                        })
                    }
                } else p.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, this._activeItemId)
            }, t.prototype.RefreshPanel = function() {
                this._activityModel = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId), this._activityModel ? (this.CurrencyBarItem.Init(this._activeItemId), this.RefreshBigRewards(), this.InitProgress(), this.InitCardItems(), this.RefreshRedDot()) : p.UIManager.Instance.BackUIPanel()
            }, t.prototype.OpenNextRound = function(e) {
                return a(this, void 0, void 0, function() {
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return e ? (this._activityModel = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId), this.RefreshProgress(), [2]) : (this.BlockInput.active = !0, this._activityModel = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId), this.RefreshBigRewards(), this.RefreshProgress(), [4, this.InitCardItems()]);
                            case 1:
                                return t.sent(), [4, this.StartFlipCardShow()];
                            case 2:
                                return t.sent(), this.BlockInput.active = !1, [2]
                        }
                    })
                })
            }, t.prototype.StartFlipCardShow = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, new Promise(function(t) {
                                    cc.Tween.stopAllByTarget(e.StartFlipCard), e.StartFlipCard.x = -e.StartFlipCard.width, cc.Tween.stopAllByTarget(e.FlipCardHint.node), e.FlipCardHint.node.opacity = 0, e.StartFlipCard.opacity = 255, e.StartFlipCard.active = !0, cc.tween(e.StartFlipCard).to(.5, {
                                        x: 0
                                    }, {
                                        easing: "expoOut"
                                    }).call(function() {
                                        cc.tween(e.FlipCardHint.node).to(.35, {
                                            opacity: 255
                                        }, {
                                            easing: "cubicIn"
                                        }).start()
                                    }).delay(.7).to(.5, {
                                        opacity: 0
                                    }, {
                                        easing: "quadIn"
                                    }).call(function() {
                                        e.StartFlipCard.active = !1, t(null)
                                    }).start()
                                })];
                            case 1:
                                return [2, t.sent()]
                        }
                    })
                })
            }, t.prototype.OnOpneTaskPanel = function() {
                p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonTaskPanel.Path, [{
                    Tasks: this._activityConfig._Tasks,
                    IsActivity: !0,
                    Title: "btn_task".ToUILocale(),
                    Reddot: this._taskRedDot,
                    ActivityId: this._activityId
                }])
            }, t.prototype.OnOpenGiftPanel = function() {
                var e = this._activityConfig.Common.BannerImage.split("|"),
                    t = {
                        ActivityId: this._activityId,
                        ActivityGiftPackData: this._activityConfig._Packs,
                        Deadline: m.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                        BannerPath: e[0],
                        Title: "timeLimited_gift".ToUILocale()
                    };
                p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonGiftPackPanel.Path, t)
            }, t.prototype.OnRule = function() {
                var e = {
                    name: "flipHappy_rule_title".ToUILocale(),
                    titles: ["flipHappy_rule_name".ToUILocale()],
                    contents: ["flipHappy_rule_content".ToUILocale()]
                };
                I.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnShop = function() {
                var e = this._activityConfig.Common.ShowImage.split("|");
                p.UIManager.Instance.ShowUIPanel(f.PanelConfig.ActivityExchangeShopPanel.Path, this._activityId, 0, e[0], null, null)
            }, t.prototype.OnBack = function() {
                p.UIManager.Instance.BackUIPanel()
            }, t.prototype.InitProgress = function() {
                var e = this._activityModel.IntMap[c.Round] <= 0 ? 1 : this._activityModel.IntMap[c.Round];
                this.RefreshRound(e), this.SetProgressBar(), this.SetProgress(e), this.InitReward(e)
            }, t.prototype.RefreshRound = function(e) {
                var t = e;
                e <= 0 ? t = 1 : e > this._activityConfig.__Rounds.length && (t = this._activityConfig.__Rounds.length), this.Round.string = "flipHappy_round".ToUILocale().Fmt(t, this._activityConfig.__Rounds.length)
            }, t.prototype.SetProgressBar = function() {
                var e = (this._activityConfig.__Rounds.length - 1) * this.RewardSpace + this.RewardSpaceLeft;
                this.Content.width = e + 70, this.CustomProgressBar.node.width = e, this.CustomProgressBar.node.x = e / 2, this.CustomProgressBar.TotalLength = e
            }, t.prototype.SetProgress = function(e) {
                if (e != this._activityConfig.__Rounds.length + 1) {
                    for (var t = 0, n = 1; n <= e - 1; n++) t += 1 == n ? this.RewardSpaceLeft : this.RewardSpace;
                    this.CustomProgressBar.progress = t / this.CustomProgressBar.TotalLength
                } else this.CustomProgressBar.progress = 1
            }, t.prototype.InitReward = function(e) {
                for (var t = 0; t < this._activityConfig.__Rounds.length; t++) {
                    var n = this._rewardItems[t],
                        o = this._activityConfig.__Rounds[t].Reward;
                    if (!n) {
                        var r = cc.instantiate(this.RewardItem);
                        r.setParent(this.RewardParent), n = r.getComponent(w.default), this._rewardItems.push(n), r.name = t.toString()
                    }
                    n.node.active = !0, n.Init(this._itemPrefab, t + 1, o), n.RefreshGetState(this._activityModel.IntMap[c.GetCount] > t, e > t + 1)
                }
            }, t.prototype.RefreshProgressBar = function(e, t) {
                this.SetProgress(t), this.RefreshRound(t);
                for (var n = 0; n < this._activityConfig.__Rounds.length; n++) this._rewardItems[n].RefreshGetState(e > n, t > n + 1)
            }, t.prototype.OnGetProgressReward = function(e, t) {
                var n = this;
                if (e && !(e >= this._rewardItems.length)) {
                    var o = this._rewardItems[e];
                    if (o.Item.node === t)
                        if (o.IsCanGet) {
                            var r = u.Req_Activity_CommonRewards.create();
                            r.ActivityId = this._activityId, h.RpcComponent.Instance.Call(r, function(e) {
                                p.UIManager.Instance.ShowUIPanel(f.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), n._activityModel = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, n._activityId), n.RefreshProgress()
                            })
                        } else o.Item.ShowItemTip()
                }
            }, i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.RichText)], t.prototype, "ActivityEndTime", void 0), i([R(y.default)], t.prototype, "CurrencyBarItem", void 0), i([R(cc.Sprite)], t.prototype, "BigReward", void 0), i([R(cc.Label)], t.prototype, "BigRewardCount", void 0), i([R(cc.Label)], t.prototype, "BigRewardTitle", void 0), i([R(cc.RichText)], t.prototype, "Hint", void 0), i([R(cc.Node)], t.prototype, "DealCardStart", void 0), i([R(cc.Node)], t.prototype, "CardList", void 0), i([R(cc.Button)], t.prototype, "BackBtn", void 0), i([R(cc.Button)], t.prototype, "TaskBtn", void 0), i([R(cc.Label)], t.prototype, "TaskBtnLabel", void 0), i([R(cc.Button)], t.prototype, "GiftBtn", void 0), i([R(cc.Label)], t.prototype, "GiftBtnLabel", void 0), i([R(cc.Button)], t.prototype, "ShopBtn", void 0), i([R(cc.Label)], t.prototype, "ShopBtnLabel", void 0), i([R(cc.Button)], t.prototype, "RuleBtn", void 0), i([R(g.default)], t.prototype, "LoadAssetHelper", void 0), i([R(cc.Node)], t.prototype, "BlockInput", void 0), i([R(cc.Node)], t.prototype, "StartFlipCard", void 0), i([R(cc.RichText)], t.prototype, "FlipCardHint", void 0), i([R(cc.Node)], t.prototype, "FloatHintList", void 0), i([R(cc.Node)], t.prototype, "FloatHintNode", void 0), i([R(cc.Node)], t.prototype, "FlloatingNodes", void 0), i([R(S.default)], t.prototype, "CustomProgressBar", void 0), i([R(cc.Node)], t.prototype, "RewardItem", void 0), i([R(cc.Node)], t.prototype, "Content", void 0), i([R(cc.Node)], t.prototype, "RewardParent", void 0), i([R(cc.Label)], t.prototype, "Round", void 0), i([T], t)
        }(p.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./FlipHappyCardItem": "FlipHappyCardItem",
        "./FlipHappyRoundProgressReward": "FlipHappyRoundProgressReward"
    }],
    FlipHappyRoundProgressReward: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7368a3aw3ZAn4caYcCCum13", "FlipHappyRoundProgressReward");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Round = null, t.ItemParent = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Item", {
                    get: function() {
                        return this._item
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "IsCanGet", {
                    get: function() {
                        return this._isCanGet
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e, t, n) {
                    if (!this._item) {
                        var o = cc.instantiate(e);
                        o.setParent(this.ItemParent), o.name = this.node.name, this._item = o.getComponent(a.ItemComponent)
                    }
                    this._item.Init({
                        ItemId: n[0],
                        Count: n[1]
                    }), this.Round.string = "flipHappy_roundCount".ToUILocale().Fmt(t)
                }, t.prototype.RefreshGetState = function(e, t) {
                    e ? (this._item.SetSelectFlagState(!0), this._isCanGet = !1, this._item.SetRedDotState(!1)) : (this._item.SetSelectFlagState(!1), this._isCanGet = t, t ? this._item.SetRedDotState(!0) : this._item.SetRedDotState(!1))
                }, i([c(cc.Label)], t.prototype, "Round", void 0), i([c(cc.Node)], t.prototype, "ItemParent", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Components/ItemComponent": "ItemComponent"
    }],
    FloatIconPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "46215gndBlBq5RDCL3rNSjj", "FloatIconPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/GotoBattleComponent"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../Battle/BattleManager"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Components/DataCenter"),
            g = e("../Components/TowerLayerItem"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Battle/BattleData"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../Components/ListLayout"),
            v = e("../../Auxiliary/ModuleGuideManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Independent, !1), t.IconButton = null, t.IconSkeleton = null, t.RedDotNode = null, t.MaskNode = null, t.HintSprite = null, t.Title = null, t.Main = null, t.ListLayout = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_FLOATICON_ACTIVE, this.OnEventSetIconActive, this), l.Game.EventDispatcher.On(m.EventKeys.EVENT_BATTLECHANGE, this.OnEventBattle, this), l.Game.EventDispatcher.On(m.EventKeys.EVENT_BATTLESWITCHTOBACKGROUND, this.OnBattleSwitchToBackground, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_FLOATICON_ACTIVE, this.OnEventSetIconActive, this), l.Game.EventDispatcher.Off(m.EventKeys.EVENT_BATTLECHANGE, this.OnEventBattle, this), l.Game.EventDispatcher.Off(m.EventKeys.EVENT_BATTLESWITCHTOBACKGROUND, this.OnBattleSwitchToBackground, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("FloatIconPanel/Components/GotoBattleComponent")];
                                case 1:
                                    return t._prefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "floatIcon_title".ToUILocale(), this.IconButton.node.on(cc.Node.EventType.TOUCH_START, this.OnBtnTouchStart, this), this.IconButton.node.on(cc.Node.EventType.TOUCH_MOVE, this.OnBtnTouchMove, this), this.IconButton.node.on(cc.Node.EventType.TOUCH_END, this.OnBtnTouchEnd, this), this.IconButton.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnBtnTouchCancel, this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.OnTouchEndMask, this), f.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL && (this.HintSprite.spriteFrame = f.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("click_anywhere_hint")), this.HidePanel(), this._mapTypes = [p.MapType.MainLine, p.MapType.TestTower, p.MapType.TowerHeart, p.MapType.TowerPower, p.MapType.TowerTech, p.MapType.TowerBreak, p.MapType.TowerFight, p.MapType.EndlessAbyssSingle, p.MapType.EndlessAbyssMulti, p.MapType.TestTowerHard], this.ListLayout.Init(this._prefab, this.OnInitializeItem.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._needShowRedDot = t[0], this._needShowRedDot && (this.RedDotNode.active = !0), this._battleMapArr = []
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._eventIconActive = !0, this._xLimit = this.node.width / 2 - 60, this._yLimit = this.node.height / 2 - 60, this.InitBattleMapArr(), this.SetIconBtnActive()
                }, t.prototype.ReloginCancelBattle = function() {
                    for (var e = 0; e < this._mapTypes.length; e++) !h.default.Instance.IsOnlineStartBattle(this._mapTypes[e]) && d.BattleManager.Instance.IsInBattle(this._mapTypes[e]) && d.BattleManager.Instance.StopBattle(this._mapTypes[e], I.CloseBattleType.Cancel)
                }, t.prototype.InitBattleMapArr = function() {
                    this._battleMapArr = [];
                    for (var e = 0; e < this._mapTypes.length; e++) {
                        var t = this._mapTypes[e];
                        d.BattleManager.Instance.IsInBattle(t) && this._battleMapArr.push(t)
                    }
                }, t.prototype.SetIconBtnActive = function() {
                    this._eventIconActive ? (this.IconButton.node.active = this._battleMapArr.length > 0, this.SetNormalAni()) : this.IconButton.node.active = !1
                }, t.prototype.SetNormalAni = function() {
                    this.IconButton.node.active && "Ani_UI_Effect_XFQ_tongguan" != this.IconSkeleton.animation && this.IconSkeleton.setAnimation(0, "Ani_UI_Effect_XFQ_zhandou", !0)
                }, t.prototype.SetBattleEndAni = function() {
                    var e = this;
                    this.IconButton.node.active && "Ani_UI_Effect_XFQ_tongguan" != this.IconSkeleton.animation && (this.IconSkeleton.setAnimation(0, "Ani_UI_Effect_XFQ_tongguan", !1), this.IconSkeleton.setCompleteListener(function() {
                        e.SetIconBtnActive(), e.IconSkeleton.setAnimation(0, "Ani_UI_Effect_XFQ_zhandou", !0)
                    }))
                }, t.prototype.OnTouchEndMask = function() {
                    this.HidePanel()
                }, t.prototype.ShowPanel = function() {
                    this.MaskNode.active = !0, this.Main.active = !0, this.RedDotNode.active && (this.RedDotNode.active = !1), this.RenderLayout()
                }, t.prototype.HidePanel = function() {
                    this.MaskNode.active = !1, this.Main.active = !1
                }, t.prototype.OnEventSetIconActive = function(e) {
                    this._eventIconActive = e, this.SetIconBtnActive()
                }, t.prototype.OnEventBattle = function(e) {
                    if (l.EZLog.Log("OnEventBattle", e, d.BattleManager.Instance.IsInBattle(e.MapType)), this._mapTypes.includes(e.MapType)) {
                        var t = !1,
                            n = this._battleMapArr.indexOf(e.MapType);
                        d.BattleManager.Instance.IsInBattle(e.MapType) ? n < 0 && this._battleMapArr.push(e.MapType) : (n >= 0 && this._battleMapArr.splice(n, 1), t = !0, this.SetBattleEndAni()), t || this.SetIconBtnActive(), this.RefreshMainPanel()
                    }
                }, t.prototype.OnBattleSwitchToBackground = function(e) {
                    switch (e.MapType) {
                        case p.MapType.MainLine:
                        case p.MapType.TestTower:
                        case p.MapType.EndlessAbyssSingle:
                        case p.MapType.EndlessAbyssMulti:
                            v.default.instance.CheckGameModeuleGuideNeedShow(p.GameModuleType.BackgroundBattle) && (v.default.instance.AddFingerNode(this.IconButton.node), v.default.instance.ShowNPCDialogs([1035]), v.default.instance.CompleteGameModuleWeakGuide(p.GameModuleType.BackgroundBattle))
                    }
                }, t.prototype.RefreshMainPanel = function() {
                    this._battleMapArr.length > 0 && this.Main.active && this.RenderLayout()
                }, t.prototype.OnBtnTouchStart = function() {
                    this._currentMoveVec = cc.Vec2.ZERO
                }, t.prototype.OnBtnTouchMove = function(e) {
                    var t = e.getDelta();
                    if (!this._isMoving) {
                        if (this._currentMoveVec = cc.v2(this._currentMoveVec.x + t.x, this._currentMoveVec.y + t.y), cc.Vec2.distance(this._currentMoveVec, cc.Vec2.ZERO) < 8) return;
                        this._isMoving = !0
                    }
                    var n = this.IconButton.node.x + t.x,
                        o = this.IconButton.node.y + t.y;
                    n >= this._xLimit ? n = this._xLimit : n <= -this._xLimit && (n = -this._xLimit), o >= this._yLimit ? o = this._yLimit : o <= -this._yLimit && (o = -this._yLimit), this.IconButton.node.setPosition(n, o)
                }, t.prototype.OnBtnTouchEnd = function() {
                    v.default.instance.RemoveFingerNode(this.IconButton.node), this._isMoving ? this._isMoving = !1 : this.ShowPanel()
                }, t.prototype.OnBtnTouchCancel = function() {
                    this.OnBtnTouchEnd()
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(u.default),
                        o = this._battleMapArr[t];
                    n.Init(o, h.default.Instance.GetMapNameKeyByType(o), this.GetLevelStr(o), this.GotoCallBack.bind(this))
                }, t.prototype.RenderLayout = function() {
                    this.InitBattleMapArr(), this.ListLayout.RenderLayOut(this._battleMapArr.length, 0)
                }, t.prototype.GetLevelStr = function(e) {
                    switch (e) {
                        case p.MapType.MainLine:
                            var t = h.default.Instance.GetCurrentChapter();
                            return t[1] + "-" + t[2];
                        case p.MapType.TestTower:
                            return this.GetTowerLevelByType(g.TestTowerType.Normal);
                        case p.MapType.TowerHeart:
                            return this.GetTowerLevelByType(g.TestTowerType.Heart);
                        case p.MapType.TowerPower:
                            return this.GetTowerLevelByType(g.TestTowerType.Power);
                        case p.MapType.TowerTech:
                            return this.GetTowerLevelByType(g.TestTowerType.Tech);
                        case p.MapType.TowerBreak:
                            return this.GetTowerLevelByType(g.TestTowerType.Break);
                        case p.MapType.TowerFight:
                            return this.GetTowerLevelByType(g.TestTowerType.Fight);
                        case p.MapType.EndlessAbyssSingle:
                            var n = y.DataCenter.Instance.GetDataById(c.EndlessAbyss_Model, p.EndlessAbyssType.SingleMode);
                            return "abyss_toggleLabel0".ToUILocale() + "elementTrial_level".ToUILocale().Fmt(n.MapIndex + 1);
                        case p.MapType.EndlessAbyssMulti:
                            return n = y.DataCenter.Instance.GetDataById(c.EndlessAbyss_Model, p.EndlessAbyssType.MultiMode), "abyss_toggleLabel1".ToUILocale() + "elementTrial_level".ToUILocale().Fmt(n.MapIndex + 1);
                        case p.MapType.TestTowerHard:
                            return this.GetTowerLevelByType(g.TestTowerType.HardNormal)
                    }
                    return ""
                }, t.prototype.GetTowerLevelByType = function(e) {
                    var t = y.DataCenter.Instance.GetDataById(c.TestTower_Model, e);
                    return "climbTower_entrance_layer".ToUILocale().Fmt(t.MapIndex + 1)
                }, t.prototype.GotoCallBack = function(e) {
                    this.HidePanel(), d.BattleManager.Instance.ResumePlayBattle(e)
                }, t.prototype.GotoMainLine = function() {
                    h.default.ShowPanelByGetWayId(2101)
                }, t.prototype.GotoTestTower = function() {
                    this.ShowTowerByGetWay(1702)
                }, t.prototype.GotoTowerHeart = function() {
                    this.ShowTowerByGetWay(1703)
                }, t.prototype.GotoTowerPower = function() {
                    this.ShowTowerByGetWay(1704)
                }, t.prototype.GotoTowerTech = function() {
                    this.ShowTowerByGetWay(1705)
                }, t.prototype.GotoTowerBreak = function() {
                    this.ShowTowerByGetWay(1706)
                }, t.prototype.GotoTowerFight = function() {
                    this.ShowTowerByGetWay(1707)
                }, t.prototype.ShowTowerByGetWay = function(e) {
                    l.UIManager.Instance.QuitPanelStack(_.PanelConfig.ClimbTowerPanel.Path), h.default.ShowPanelByGetWayId(e)
                }, t.prototype.GotoEndlessAbyssSingle = function() {
                    h.default.ShowPanelByGetWayId(2501)
                }, t.prototype.GotoEndlessAbyssMulti = function() {
                    h.default.ShowPanelByGetWayId(2501)
                }, i([w(cc.Button)], t.prototype, "IconButton", void 0), i([w(sp.Skeleton)], t.prototype, "IconSkeleton", void 0), i([w(cc.Node)], t.prototype, "RedDotNode", void 0), i([w(cc.Node)], t.prototype, "MaskNode", void 0), i([w(cc.Sprite)], t.prototype, "HintSprite", void 0), i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Node)], t.prototype, "Main", void 0), i([w(C.default)], t.prototype, "ListLayout", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/GotoBattleComponent": "GotoBattleComponent",
        "../Components/ListLayout": "ListLayout",
        "../Components/TowerLayerItem": "TowerLayerItem"
    }],
    FloatingFlyingNumberComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d518cRZZ/xIy5FIHHlpsYuH", "FloatingFlyingNumberComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/DataCenter"),
            s = e("./BattleInstance"),
            l = e("./BattlePlayerCommonDefines"),
            c = e("./FlyingNumber"),
            u = cc._decorator,
            p = u.ccclass,
            d = (u.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FLOATING_OFFSET_Y = 200, t.FLOATING_OFFSET_INTENAL = 40, t.FLOATING_START_POS = -20, t.FLOATING_SPEED = 200, t.MaxCount = 3, t.TWEENTAG = 1e3, t
                }
                return r(t, e), t.prototype.Init = function() {
                    this._tweenArr = [], this.node.removeAllChildren()
                }, t.prototype.Show = function(e) {
                    this._flyingNode = e, this.AddFloatingHint(), this.RefreshFloatingList()
                }, t.prototype.AddFloatingHint = function() {
                    this.node.childrenCount >= this.MaxCount && (this.StopAllTweens(), this.RemoveFloatingHint()), this.node.addChild(this._flyingNode), this._flyingNode.setPosition(0, this.FLOATING_START_POS)
                }, t.prototype.RemoveFloatingHint = function() {
                    var e = this.node.children[0];
                    this.node.removeChild(e), c.default.nodeMap.delete(e.uuid), c.default.pool.put(e)
                }, t.prototype.StopAllTweens = function() {
                    for (var e = 0; e < this._tweenArr.length; e++) this._tweenArr[e].stop()
                }, t.prototype.RefreshFloatingList = function() {
                    var e = this;
                    a.DataCenter.Instance.IsInBattle ? this._timeScale = s.default.GetGlobalReplaySpeed() : this._timeScale = l.BattleReplaySpeed.X1;
                    for (var t = this.node.childrenCount, n = function(n) {
                            var r = o.node.children[n],
                                i = (t - 1 - n) * o.FLOATING_OFFSET_INTENAL,
                                a = (i - r.y) / o.FLOATING_SPEED / o._timeScale;
                            null != o._tweenArr[n] && o._tweenArr[n].stop();
                            var s = (.6 * n + .7) / o._timeScale;
                            o._tweenArr[n] = cc.tween(r).to(a, {
                                y: i
                            }, {
                                easing: "backOut"
                            }).delay(s).call(function() {
                                var t = (e.FLOATING_OFFSET_Y - r.y) / e.FLOATING_SPEED / e._timeScale;
                                cc.tween(r).tag(e.TWEENTAG).to(t, {
                                    y: e.FLOATING_OFFSET_Y,
                                    opacity: 0
                                }, {
                                    easing: "backOut"
                                }).call(function() {
                                    e.RemoveFloatingHint()
                                }).start()
                            }).start()
                        }, o = this, r = 0; r < t; r++) n(r)
                }, i([p], t)
            }(cc.Component));
        n.default = d, cc._RF.pop()
    }, {
        "../../Components/DataCenter": "DataCenter",
        "./BattleInstance": "BattleInstance",
        "./BattlePlayerCommonDefines": "BattlePlayerCommonDefines",
        "./FlyingNumber": "FlyingNumber"
    }],
    FloatingHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "77588OFF5NH2ZES5OR3fbdE", "FloatingHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../Components/CustomRichText"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Independent, !1, !1, !1, s.AssetUnloadMode.Resident), t.FlloatingNodes = [], t._messages = [], t.FLOATING_OFFSET_Y = 360, t.FLOATING_OFFSET_INTENAL = 80, t.FLOATING_START_POS = 80, t.FLOATING_SPEED = 500, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ConfigTexts()
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this), "string" == typeof t[0]) this._messages.push(t[0]), this._isArray = !1;
                    else {
                        for (var n = 0; n < t[0].length; n++) this._messages.push(t[0][n]);
                        this._isArray = !0
                    }
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t);
                    var n = 1;
                    this._isArray && (n = this._messages.length);
                    for (var o = 0; o < n; o++) this.AddFloatingHint(), this.RefreshFloatingList()
                }, t.prototype.ConfigTexts = function() {
                    this._showingIds = [], this._customRichText = [], this._tweenArr = [], this._nextId = 0, this._allNodesLen = this.FlloatingNodes.length;
                    for (var e = 0; e < this._allNodesLen; e++) {
                        var t = this.FlloatingNodes[e];
                        t.y = this.FLOATING_START_POS;
                        var n = t.getChildByName("CustomRichText").getComponent(l.CustomRichText);
                        this._customRichText.push(n), t.active = !1
                    }
                }, t.prototype.AddFloatingHint = function() {
                    this._showingIds.length >= this._allNodesLen && (this.StopAllTweens(), this.RemoveFloatingHint()), this._showingIds.push(this._nextId), this._customRichText[this._nextId].Init(this._messages[0]), this._messages.splice(0, 1), this._nextId += 1, this._nextId = this._nextId > this._allNodesLen - 1 ? 0 : this._nextId
                }, t.prototype.RemoveFloatingHint = function() {
                    if (!(this._showingIds.length <= 0)) {
                        var e = this._showingIds[0],
                            t = this.FlloatingNodes[e];
                        t.y = this.FLOATING_START_POS, t.active = !1, this._showingIds.splice(0, 1)
                    }
                }, t.prototype.RefreshFloatingList = function() {
                    for (var e = this, t = 0; t < this._showingIds.length; t++) {
                        var n = this._showingIds[t],
                            o = this.FlloatingNodes[n];
                        o.active = !0;
                        var r = this.FLOATING_OFFSET_Y - t * this.FLOATING_OFFSET_INTENAL,
                            i = (r - o.y) / this.FLOATING_SPEED;
                        null != this._tweenArr[n] && this._tweenArr[n].stop(), this._tweenArr[n] = cc.tween(o).to(i, {
                            position: cc.v3(0, r, 0)
                        }, {
                            easing: "backOut"
                        }).delay(1.7).call(function() {
                            e.RemoveFloatingHint(), e.RefreshFloatingList()
                        }).start()
                    }
                }, t.prototype.StopAllTweens = function() {
                    for (var e = 0; e < this._tweenArr.length; e++) this._tweenArr[e].stop()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this);
                    for (var t = 0; t < this._allNodesLen; t++) this.FlloatingNodes[t].active = !1;
                    this._showingIds = [], this._nextId = 0, this._tweenArr = []
                }, i([p(cc.Node)], t.prototype, "FlloatingNodes", void 0), i([u], t)
            }(a.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/CustomRichText": "CustomRichText"
    }],
    FlyingNumber: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ad1fbB7srNMHKUphcIuDCOJ", "FlyingNumber");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FlyingNumberType = n.FlyingPictureType = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property;
        (function(e) {
            e[e.Dodge = 0] = "Dodge"
        })(l = n.FlyingPictureType || (n.FlyingPictureType = {})),
        function(e) {
            e[e.Normal = 0] = "Normal", e[e.Restrain = 1] = "Restrain", e[e.Critical = 2] = "Critical", e[e.Additional = 3] = "Additional", e[e.Healing = 4] = "Healing", e[e.Absorb = 5] = "Absorb"
        }(c = n.FlyingNumberType || (n.FlyingNumberType = {}));
        var y = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.dicorationSprite = null, t.signSprite = null, t.digitSprites = [], t.numberContainerNode = null, t.iconSprite = null, t.textLabel = null, t.buffContainerNode = null, t.picSprite = null, t.pictureContainerNode = null, t.type = 0, t.value = 0, t
            }
            var n;
            return r(t, e), n = t, t.Init = function(e, t) {
                return a(this, void 0, void 0, function() {
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return n.spritesAtlas = e, n.multiLangAtlas = t, [4, n.CreateStaticClassDataStructure()];
                            case 1:
                                return o.sent(), [2]
                        }
                    })
                })
            }, t.ShowNumber = function(e, t, o) {
                if (n.available) {
                    var r = n.GetFlyingNumber();
                    n.nodeMap.set(r.uuid, r);
                    var i = n.currentActivatedFlyingNumberInstance;
                    n.currentActivatedFlyingNumberInstance = null, r.cleanup(), r.opacity = 0, e.Show(r), r.scale = 1, r.active = !0, i.type = t, i.value = o <= n.maxNumberBeforeOverflow ? o : n.maxNumberBeforeOverflow, i.ItsFlyingNumberShowTime()
                }
            }, t.ShowPicture = function(e, t) {
                if (n.available) {
                    var o = n.GetFlyingNumber();
                    n.nodeMap.set(o.uuid, o);
                    var r = n.currentActivatedFlyingNumberInstance;
                    n.currentActivatedFlyingNumberInstance = null, o.cleanup(), e.Show(o), o.opacity = 0, o.scale = 1, o.active = !0, r.type = t, r.ItsFlyingPictureShowTime()
                }
            }, t.ShowBuff = function(e, t, o, r) {
                if (n.available) {
                    var i = n.GetFlyingNumber();
                    n.nodeMap.set(i.uuid, i);
                    var a = n.currentActivatedFlyingNumberInstance;
                    n.currentActivatedFlyingNumberInstance = null, i.cleanup(), e.Show(i), i.opacity = 0, i.scale = 1, i.active = !0, a.ItsFlyingBuffShowTime(t, o, r)
                }
            }, t.CreateStaticClassDataStructure = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return n.pool = new cc.NodePool(n.classNameString), e = this, [4, u.AssetsManager.Instance.LoadAsset(n.instanceNodePathName)];
                            case 1:
                                if (e.FlyingNumberPrefab = r.sent(), this.FlyingNumberPrefab)
                                    for (t = 0; t < n.poolCapacity; ++t)(o = cc.instantiate(this.FlyingNumberPrefab)).getComponent(n.classNameString).instanceName = t.toString(), n.pool.put(o);
                                else p.EZLog.Debug("ok in FlyingNumber.CreateStaticClassDataStructure ... loading " + n.instanceNodePathName + " failed.");
                                return n.available = !0, [2]
                        }
                    })
                })
            }, t.GetFlyingNumber = function() {
                var e = n.pool.get();
                return e || (e = this.InstantiateFlyingNumber(), n.pool.put(e), e = n.pool.get()), e
            }, t.InstantiateFlyingNumber = function() {
                if (this.FlyingNumberPrefab) return cc.instantiate(this.FlyingNumberPrefab)
            }, t.prototype.onLoad = function() {}, t.prototype.EnableSprite = function(e, t, n, o, r) {
                e.spriteFrame = t, e.node.opacity = 255, e.node.setContentSize(n), e.node.setPosition(o, r)
            }, t.prototype.DisableSprite = function(e) {
                e.node.opacity = 0
            }, t.prototype.Reset = function() {
                this.node.cleanup(), this.DisableSprite(this.dicorationSprite), this.DisableSprite(this.signSprite);
                for (var e = 0, t = this.digitSprites.length; e < t; ++e) this.DisableSprite(this.digitSprites[e]);
                this.node.opacity = 0, this.node.active = !1, this.numberContainerNode.active = !1, this.buffContainerNode.active = !1, this.pictureContainerNode.active = !1
            }, t.prototype.unuse = function() {
                this.Reset()
            }, t.prototype.reuse = function() {
                n.currentActivatedFlyingNumberInstance = this
            }, t.prototype.PrepareSprites = function() {
                var e = n.flyingNumberStyleInfo[this.type],
                    t = 0,
                    o = e.dimension.width + e.gap,
                    r = 0,
                    i = Math.abs(this.value);
                if (0 == i) this.EnableSprite(this.digitSprites[0], n.spritesAtlas.getSpriteFrame(e.digits[0]), e.dimension, -t, 0), t += o, r = 1;
                else
                    for (var a; i > 0;) a = Math.floor(i % 10), this.EnableSprite(this.digitSprites[r], n.spritesAtlas.getSpriteFrame(e.digits[a]), e.dimension, -t, 0), t += o, i = Math.floor(i / 10), ++r;
                this.EnableSprite(this.signSprite, n.spritesAtlas.getSpriteFrame(e.sign), e.dimension, -t, 0);
                var s = (r + 1) * e.dimension.width + r * e.gap;
                e.dicoration.length > 0 && (t += o, this.EnableSprite(this.dicorationSprite, n.multiLangAtlas.getSpriteFrame(e.dicoration), e.dicorationDimension, -t, e.dicorationDimension.height - e.dimension.height), s += e.dicorationDimension.width + e.gap), this.numberContainerNode.setContentSize(s, e.dimension.height), this.numberContainerNode.setPosition(.5 * s, .5 * e.dimension.height), this.numberContainerNode.active = !0
            }, t.prototype.ItsFlyingNumberShowTime = function() {
                this.PrepareSprites();
                var e = cc.tween;
                switch (this.type) {
                    case c.Normal:
                    case c.Critical:
                    case c.Additional:
                    case c.Restrain:
                        var t = .1,
                            n = this.type == c.Critical ? 2.5 : 2;
                        e(this.node).parallel(e().to(t, {
                            opacity: 255
                        }, {
                            easing: "cubicIn"
                        }), e().to(t, {
                            scale: n
                        })).to(.1, {
                            scale: 1
                        }).start();
                        break;
                    case c.Absorb:
                    case c.Healing:
                        t = .35, e(this.node).to(t, {
                            opacity: 255
                        }, {
                            easing: "cubicIn"
                        }).start()
                }
            }, t.prototype.ItsFlyingPictureShowTime = function() {
                this.pictureContainerNode.active = !0;
                var e = n.flyingPictureStyleInfo[this.type];
                this.EnableSprite(this.picSprite, n.multiLangAtlas.getSpriteFrame(e.spriteName), e.dimension, 0, 0);
                var t = cc.tween;
                switch (this.type) {
                    case l.Dodge:
                        t(this.node).parallel(t().to(.1, {
                            opacity: 255
                        }, {
                            easing: "cubicIn"
                        }), t().to(.1, {
                            scale: 1
                        })).to(.1, {
                            scale: 1
                        }).start()
                }
            }, t.prototype.ItsFlyingBuffShowTime = function(e, t, o) {
                this.buffContainerNode.active = !0, e ? (this.iconSprite.spriteFrame = e, this.iconSprite.node.opacity = 255, this.iconSprite.node.setContentSize(32, 32), this.iconSprite.node.active = !0) : this.iconSprite.node.active = !1, this.textLabel.string = t;
                var r = n.buffEffectNameColors.get(o);
                r && (this.textLabel.node.color = r);
                var i = cc.tween;
                i(this.node).parallel(i().to(.1, {
                    opacity: 255
                }, {
                    easing: "cubicIn"
                }), i().to(.1, {
                    scale: 1
                })).to(.1, {
                    scale: 1
                }).start()
            }, t.ClearAll = function() {
                n.nodeMap.forEach(function(e) {
                    n.pool.put(e)
                }), n.nodeMap.clear()
            }, t.classNameString = "FlyingNumber", t.instanceNodePathName = "BattlePlayer/Private/FlyingNumber", t.poolCapacity = 128, t.maxNumberBeforeOverflow = 99999999, t.available = !1, t.currentActivatedFlyingNumberInstance = null, t.buffEffectNameColors = new Map([
                [0, new cc.Color(255, 255, 255)],
                [1, new cc.Color(112, 255, 255)],
                [2, new cc.Color(215, 145, 255)],
                [3, new cc.Color(255, 108, 108)]
            ]), t.nodeMap = new Map, t.flyingNumberStyleInfo = [{
                dimension: new cc.Size(28, 34),
                gap: -5,
                positive: "num_normal_+",
                negtive: "num_normal_-",
                sign: "num_normal_-",
                percentage: "num_normal_%",
                digits: ["num_normal_0", "num_normal_1", "num_normal_2", "num_normal_3", "num_normal_4", "num_normal_5", "num_normal_6", "num_normal_7", "num_normal_8", "num_normal_9"],
                dicoration: "",
                dicorationDimension: new cc.Size(0, 0),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(28, 34),
                gap: -5,
                positive: "num_restrain_+",
                negtive: "num_restrain_-",
                sign: "num_restrain_-",
                percentage: "num_restrain_%",
                digits: ["num_restrain_0", "num_restrain_1", "num_restrain_2", "num_restrain_3", "num_restrain_4", "num_restrain_5", "num_restrain_6", "num_restrain_7", "num_restrain_8", "num_restrain_9"],
                dicoration: "label_Restrain",
                dicorationDimension: new cc.Size(129, 49),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(28, 34),
                gap: -5,
                positive: "num_critical_+",
                negtive: "num_critical_-",
                sign: "num_critical_-",
                percentage: "num_critical_%",
                digits: ["num_critical_0", "num_critical_1", "num_critical_2", "num_critical_3", "num_critical_4", "num_critical_5", "num_critical_6", "num_critical_7", "num_critical_8", "num_critical_9"],
                dicoration: "label_Critical",
                dicorationDimension: new cc.Size(131, 57),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(24, 30),
                gap: -5,
                positive: "num_persist_+",
                negtive: "num_persist_-",
                sign: "num_persist_-",
                percentage: "num_persist_%",
                digits: ["num_persist_0", "num_persist_1", "num_persist_2", "num_persist_3", "num_persist_4", "num_persist_5", "num_persist_6", "num_persist_7", "num_persist_8", "num_persist_9"],
                dicoration: "",
                dicorationDimension: new cc.Size(0, 0),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(24, 30),
                gap: -5,
                positive: "num_cure_+",
                negtive: "num_cure_-",
                sign: "num_cure_+",
                percentage: "num_cure_%",
                digits: ["num_cure_0", "num_cure_1", "num_cure_2", "num_cure_3", "num_cure_4", "num_cure_5", "num_cure_6", "num_cure_7", "num_cure_8", "num_cure_9"],
                dicoration: "",
                dicorationDimension: new cc.Size(0, 0),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(24, 30),
                gap: -5,
                positive: "num_absorb_+",
                negtive: "num_absorb_-",
                sign: "num_absorb_+",
                percentage: "num_absorb_%",
                digits: ["num_absorb_0", "num_absorb_1", "num_absorb_2", "num_absorb_3", "num_absorb_4", "num_absorb_5", "num_absorb_6", "num_absorb_7", "num_absorb_8", "num_absorb_9"],
                dicoration: "label_Absorb",
                dicorationDimension: new cc.Size(103, 40),
                duration: .5,
                speed: 230
            }, {
                dimension: new cc.Size(24, 30),
                gap: -5,
                positive: "",
                negtive: "",
                sign: "",
                percentage: "",
                digits: ["", "", "", "", "", "", "", "", "", ""],
                dicoration: "status_Miss",
                dicorationDimension: new cc.Size(72, 38),
                duration: .5,
                speed: 230
            }], t.flyingPictureStyleInfo = [{
                dimension: new cc.Size(72, 38),
                spriteName: "status_Miss",
                duration: .5,
                speed: 230
            }], i([f(cc.Sprite)], t.prototype, "dicorationSprite", void 0), i([f(cc.Sprite)], t.prototype, "signSprite", void 0), i([f([cc.Sprite])], t.prototype, "digitSprites", void 0), i([f(cc.Node)], t.prototype, "numberContainerNode", void 0), i([f(cc.Sprite)], t.prototype, "iconSprite", void 0), i([f(cc.Label)], t.prototype, "textLabel", void 0), i([f(cc.Node)], t.prototype, "buffContainerNode", void 0), i([f(cc.Sprite)], t.prototype, "picSprite", void 0), i([f(cc.Node)], t.prototype, "pictureContainerNode", void 0), n = i([h], t)
        }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    ForgingMaterialItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "490a2RNcXNOlpV3AFWf85VS", "ForgingMaterialItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../Components/CustomProgressBar"),
            u = e("../Components/ItemClickComponent"),
            p = e("../Components/ItemComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.CustomProgressBar = null, t.Count = null, t.CountNode = null, t.Tag = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnItemAdd, this), this.Tag.on(cc.Node.EventType.TOUCH_END, this.OnItemReduce, this), a.Game.EventDispatcher.On(s.EventKeys.EVENT_EQUIP_SELECT_FORGING, this.RefreshForging, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnItemAdd, this), this.Tag.off(cc.Node.EventType.TOUCH_END, this.OnItemReduce, this), a.Game.EventDispatcher.Off(s.EventKeys.EVENT_EQUIP_SELECT_FORGING, this.RefreshForging)
                }, t.prototype.Init = function(e, t) {
                    if (!this._itemComponent) {
                        var n = cc.instantiate(e);
                        n.setParent(this.ItemNode), n.getComponent(u.default).enabled = !1, n.getComponent(cc.BlockInputEvents).enabled = !1, this._itemComponent = n.getComponent(p.ItemComponent)
                    }
                    this._isMaxForging = !1, t ? (this.CountNode.active = !0, this._equipMaterialData = t, this._itemComponent.Init({
                        ItemId: t.ItemId
                    }, p.ItemComponentType.ItemWithStar), this.RefreshCount()) : (this._equipMaterialData = void 0, this.SetSimpleState())
                }, t.prototype.RefreshCount = function() {
                    var e = this;
                    this.Count.string = this._equipMaterialData.SelectCount + "/" + this._equipMaterialData.Count, this.CustomProgressBar.progress = this._equipMaterialData.SelectCount / this._equipMaterialData.Count, this._equipMaterialData.SelectCount <= 0 ? this.scheduleOnce(function() {
                        e.Tag.active = !1
                    }, 0) : this.Tag.active = !0
                }, t.prototype.SetSimpleState = function() {
                    this.CountNode.active = !1, this.Tag.active = !1, this._itemComponent.SetItemSimpleState()
                }, t.prototype.OnItemAdd = function() {
                    if (this._equipMaterialData) return this._isMaxForging ? l.UIUtlity.ShowFloatingHint("equip_material_full".ToUILocale()) : void(this._equipMaterialData.SelectCount < this._equipMaterialData.Count ? (this._equipMaterialData.SelectCount++, this.RefreshCount(), a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_EQUIP_SELECT_MATERIAL_REFRESH)) : l.UIUtlity.ShowFloatingHint("equip_material_all_select".ToUILocale()))
                }, t.prototype.OnItemReduce = function() {
                    this._equipMaterialData && this._equipMaterialData.SelectCount > 0 && (this._equipMaterialData.SelectCount--, this.RefreshCount(), a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_EQUIP_SELECT_MATERIAL_REFRESH))
                }, t.prototype.RefreshForging = function(e) {
                    this._isMaxForging = e
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([f(cc.Node)], t.prototype, "ItemNode", void 0), i([f(c.default)], t.prototype, "CustomProgressBar", void 0), i([f(cc.Label)], t.prototype, "Count", void 0), i([f(cc.Node)], t.prototype, "CountNode", void 0), i([f(cc.Node)], t.prototype, "Tag", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    FormationHeroItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "36768jOpE9IEpnwQaMbrYli", "FormationHeroItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/DataCenter"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/Components"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Channel/ChannelManager"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../../ShareConsts/BattleConsts"),
            _ = e("./LoadAssetHelper"),
            C = e("../../../Consts/Consts"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.Pet = 1] = "Pet", e[e.MagicCircleBottom = 2] = "MagicCircleBottom", e[e.MagicCircleTop = 3] = "MagicCircleTop"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.MagicCircleBottomNode = null, t.HeroNode = null, t.MagicCircleTopNode = null, t.PetNode = null, t.BottomOn = null, t.BottomOff = null, t.LevelContainer = null, t.Level = null, t.Element = null, t.Num = null, t.LoadAssetHelper = null, t.BattlePower = 0, t.DragScale = .85, t._barOffsetY = 0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(d.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this.OnDragMove, this), c.Game.EventDispatcher.On(d.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, this.OnDragMoveConfirm, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(d.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this.OnDragMove, this), c.Game.EventDispatcher.Off(d.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, this.OnDragMoveConfirm, this)
            }, t.prototype.Init = function(e, t) {
                this.FormationNumber = e, this._dragContainer = t, this.HeroNode.active = !1, this._worldPos = this.HeroNode.convertToWorldSpaceAR(cc.v2(0, 0))
            }, t.prototype.SetWhiteBoardState = function(e, t) {
                this.BottomOff.active = e, this.BottomOn.active = !e, this.IsActive = !e, this.Num.string = t > 0 ? t.toString() : ""
            }, t.prototype.SetHeroData = function(e) {
                if (this.HeroSid = e, 0 != e) {
                    this.HeroNode.active = !0;
                    var t = p.DataCenter.Instance.GetDataById(u.UserHero_Model, e),
                        n = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t.HeroId);
                    this.HeroId = t.HeroId, this.BattlePower = t.Power, this.LevelContainer.active = !0, this.SetHeroImage(n, t), this.SetInfo(t, n), this.ResetHeroNode(), this.SetPetAvatar(), this.SetMagicCircleAvatar()
                } else this.LevelContainer.active = !1, this.HeroId = 0, this.BattlePower = 0, this.ResetHeroNode(), this.RemovePetAvatar(), this.RemoveMagicCircle(), this.HeroNode.active = !1
            }, t.prototype.SetHeroImage = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r, i, a, l, u, p;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return void 0 !== t.SkinId && t.SkinId > 0 ? (o = !0, (r = f.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, t.SkinId)) && (n = "Hero_" + r.Model + "/HeroAvatar")) : n = "Hero_" + e.Model + "/HeroAvatar", n || (n = "Hero_" + e.Model + "/HeroAvatar"), [4, c.AssetsManager.Instance.LoadAsset(n)];
                            case 1:
                                return i = s.sent(), this.isValid ? (this.HeroNode && (this.OffEvent(), this.HeroNode.destroyAllChildren()), this._heroPrefab && c.AssetsManager.Instance.UnloadAsset(this._heroPrefab), this._heroPrefab = i, this.HeroAvatar = cc.instantiate(this._heroPrefab), this.HeroAvatar.setParent(this.HeroNode), a = this.HeroAvatar.getComponent(sp.Skeleton), !o && t && t.Sid > 0 && (l = m.default.Instance.GetHeroDefaultStarLevelSkinName(t.HeroId, t.StarLevel), a.setSkin(l)), u = I.SkillAnimationType.Standby, a.setAnimation(0, u, !0), this.SetEvent(), p = g.default.Instance.IsVNChannel(), this._barOffsetY = p && e ? e.HUDOffsetY + 15 : .85 * this.HeroNode.height, this.LevelContainer.position = cc.v3(0, this._barOffsetY, 0), [2]) : (c.AssetsManager.Instance.UnloadAsset(i), [2])
                        }
                    })
                })
            }, t.prototype.SetInfo = function(e, t) {
                this.Element.spriteFrame = y.UIUtlity.GetHeroElementIcon(t.ElementType), y.UIUtlity.SetHeroLevel(e, this.Level)
            }, t.prototype.ResetHeroNode = function() {
                this.HeroAvatar && (this.HeroAvatar.setParent(this.HeroNode), this.HeroAvatar.setPosition(cc.v2(0, 0)), this.LevelContainer.position = cc.v3(0, this._barOffsetY, 0)), this.ResetMagicCircleParent()
            }, t.prototype.SetPetAvatar = function() {
                if (this.RemovePetAvatar(), this.HeroSid) {
                    var e = p.DataCenter.Instance.GetHeroPet(this.HeroSid);
                    if (!(e.length <= 0)) {
                        var t = p.DataCenter.Instance.GetDataById(u.UserPet_Model, e[0]);
                        t && this.SetPetAvatarByItemId(t.Sid)
                    }
                }
            }, t.prototype.SetPetAvatarByItemId = function(e) {
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.PetBase_Config, e);
                if (t) {
                    var n = t.Model + "/HeroAvatar";
                    this.LoadAssetHelper.LoadPrefab(n, this.PetNode, function(e) {
                        e.getComponent(sp.Skeleton).setAnimation(0, C.SkillAnimationType.Standby, !0)
                    }, l.Pet)
                }
            }, t.prototype.RemovePetAvatar = function() {
                this.LoadAssetHelper.RemoveAsset(l.Pet)
            }, t.prototype.SetMagicCircleAvatar = function() {
                if (this.RemoveMagicCircle(), this.HeroSid) {
                    var e = p.DataCenter.Instance.GetHeroMagicCircle(this.HeroSid);
                    if (e) {
                        var t = p.DataCenter.Instance.GetDataById(u.MagicCircle_Model, e);
                        t && this.SetMagicCircleByItemId(t.Sid)
                    }
                }
            }, t.prototype.SetMagicCircleByItemId = function(e, t) {
                var n = this;
                if (void 0 === t && (t = !1), e) {
                    var o = f.ConfigDataComponent.Instance.GetConfigById(h.MagicCircleBase_Config, e);
                    if (o) {
                        var r, i, a = o.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(a, this.MagicCircleBottomNode, function(e) {
                            r = e, n._magicCircleBottomNode = e, i && r && (r.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), i.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleBottom), this.LoadAssetHelper.LoadPrefab(a, this.MagicCircleTopNode, function(e) {
                            i = e, n._magicCircleTopNode = e, i && r && (r.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), i.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, l.MagicCircleTop)
                    }
                } else this.RemoveMagicCircle()
            }, t.prototype.RemoveMagicCircle = function() {
                this.LoadAssetHelper.RemoveAsset(l.MagicCircleBottom), this.LoadAssetHelper.RemoveAsset(l.MagicCircleTop), this._magicCircleBottomNode = null, this._magicCircleTopNode = null
            }, t.prototype.SetEvent = function() {
                this.HeroNode.on(cc.Node.EventType.TOUCH_START, this.OnMoveStart, this), this.HeroNode.on(cc.Node.EventType.TOUCH_MOVE, this.OnMoving, this), this.HeroNode.on(cc.Node.EventType.TOUCH_CANCEL, this.OnMoveCancel, this), this.HeroNode.on(cc.Node.EventType.TOUCH_END, this.OnMoveEnd, this)
            }, t.prototype.OffEvent = function() {
                this.HeroNode.off(cc.Node.EventType.TOUCH_START, this.OnMoveStart, this), this.HeroNode.off(cc.Node.EventType.TOUCH_MOVE, this.OnMoving, this), this.HeroNode.off(cc.Node.EventType.TOUCH_CANCEL, this.OnMoveCancel, this), this.HeroNode.off(cc.Node.EventType.TOUCH_END, this.OnMoveEnd, this)
            }, t.prototype.OnMoveStart = function() {
                this._dragMoveCounter = 0
            }, t.prototype.OnMoving = function(e) {
                if (!this._isMoved) {
                    this._isMoved = !0;
                    var t = this.HeroAvatar.convertToWorldSpaceAR(cc.v2(0, 0)),
                        n = this._dragContainer.convertToNodeSpaceAR(t);
                    this._magicCircleBottomNode && (this._magicCircleBottomNode.setParent(this._dragContainer), this._magicCircleBottomNode.setPosition(n)), this.HeroAvatar.setParent(this._dragContainer), this._magicCircleTopNode && (this._magicCircleTopNode.setParent(this._dragContainer), this._magicCircleTopNode.setPosition(n)), this.HeroAvatar.setPosition(n.x, n.y)
                }
                var o = e.getDelta();
                this.HeroAvatar.setPosition(cc.v2(this.HeroAvatar.x + o.x, this.HeroAvatar.y + o.y)), this.RefreshInfoBarPos(), this.RefreshMagicCirclePos()
            }, t.prototype.RefreshInfoBarPos = function() {
                var e = this.HeroAvatar.convertToWorldSpaceAR(cc.v2(0, 0)),
                    t = this.node.convertToNodeSpaceAR(e);
                this.LevelContainer.position = cc.v3(t.x, t.y + this._barOffsetY + 20, 0)
            }, t.prototype.RefreshMagicCirclePos = function() {
                this._magicCircleBottomNode && (this._magicCircleBottomNode.position = this.HeroAvatar.position), this._magicCircleTopNode && (this._magicCircleTopNode.position = this.HeroAvatar.position)
            }, t.prototype.ResetMagicCircleParent = function() {
                this._magicCircleBottomNode && (this._magicCircleBottomNode.setParent(this.MagicCircleBottomNode), this._magicCircleBottomNode.setPosition(cc.v2(0, 0))), this._magicCircleTopNode && (this._magicCircleTopNode.setParent(this.MagicCircleTopNode), this._magicCircleTopNode.setPosition(cc.v2(0, 0)))
            }, t.prototype.OnMoveEnd = function() {
                this._isMoved ? (this._isMoved = !1, c.Game.EventDispatcher.Emit(d.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this)) : c.Game.EventDispatcher.Emit(d.EventKeys.EVENT_FORMATIONITEM_OFFTEAM, this.HeroSid)
            }, t.prototype.OnMoveCancel = function() {
                this.OnMoveEnd()
            }, t.prototype.OnDragMove = function(e) {
                if (this.IsActive && this.FormationNumber != e.FormationNumber) {
                    var t = e.HeroAvatar.convertToWorldSpaceAR(cc.v2(0, 0)),
                        n = this._worldPos.sub(t).mag();
                    c.Game.EventDispatcher.Emit(d.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, e, this, n)
                }
            }, t.prototype.OnDragMoveConfirm = function(e, t, n) {
                if (this.IsActive && e.FormationNumber == this.FormationNumber) {
                    if (n <= 120) {
                        var o = e.HeroSid,
                            r = t.HeroSid;
                        return this._dragContainer.removeAllChildren(), e.SetHeroData(r), void t.SetHeroData(o)
                    }
                    this._dragMoveCounter++, this._dragMoveCounter >= 4 && this.ResetHeroNode()
                }
            }, t.prototype.onDestroy = function() {
                this._heroPrefab && c.AssetsManager.Instance.UnloadAsset(this._heroPrefab)
            }, i([S(cc.Node)], t.prototype, "MagicCircleBottomNode", void 0), i([S(cc.Node)], t.prototype, "HeroNode", void 0), i([S(cc.Node)], t.prototype, "MagicCircleTopNode", void 0), i([S(cc.Node)], t.prototype, "PetNode", void 0), i([S(cc.Node)], t.prototype, "BottomOn", void 0), i([S(cc.Node)], t.prototype, "BottomOff", void 0), i([S(cc.Node)], t.prototype, "LevelContainer", void 0), i([S(cc.Label)], t.prototype, "Level", void 0), i([S(cc.Sprite)], t.prototype, "Element", void 0), i([S(cc.Label)], t.prototype, "Num", void 0), i([S(_.default)], t.prototype, "LoadAssetHelper", void 0), i([b], t)
        }(cc.Component);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    FormationItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fcf7fskMHhDb7RRkcsQnTIl", "FormationItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./ItemComponent"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/DataCenter"),
            u = e("./ItemClickComponent"),
            p = e("../../Auxiliary/EventKeys"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Board = null, t.ItemNode = null, t.BattlePower = 0, t.DragScale = .75, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(p.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this.OnDragMove, this), a.Game.EventDispatcher.On(p.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, this.OnDragMoveConfirm, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(p.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this.OnDragMove, this), a.Game.EventDispatcher.Off(p.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, this.OnDragMoveConfirm, this)
                }, t.prototype.Init = function(e, t) {
                    this.FormationNumber = e, this._dragContainer = t, this.ItemNode.active = !1
                }, t.prototype.SetWhiteBoardState = function(e) {
                    this.Board.active = e, this.IsActive = !e
                }, t.prototype.SetHeroData = function(e, t) {
                    if (this.HeroSid = e, t && (this._itemPrefab = t), null == this._itemComponent && (this.HeroNode = cc.instantiate(this._itemPrefab), this._itemComponent = this.HeroNode.getComponent(s.ItemComponent), this.SetEvent()), 0 != e) {
                        this.ItemNode.active = !0;
                        var n = c.DataCenter.Instance.GetDataById(l.UserHero_Model, e);
                        this.HeroId = n.HeroId, this.BattlePower = n.Power, this._itemComponent.Init(n, s.ItemComponentType.HeroInfo), this.ResetHeroNode()
                    } else this.HeroId = 0, this.BattlePower = 0, this.ResetHeroNode(), this.ItemNode.active = !1
                }, t.prototype.ResetHeroNode = function() {
                    this.HeroNode && (this.HeroNode.setParent(this.ItemNode), this.HeroNode.scale = 1, this.HeroNode.setPosition(cc.v2(0, 0)))
                }, t.prototype.SetEvent = function() {
                    this.HeroNode.getComponent(u.default).enabled = !1, this.HeroNode.on(cc.Node.EventType.TOUCH_START, this.OnMoveStart, this), this.HeroNode.on(cc.Node.EventType.TOUCH_MOVE, this.OnMoving, this), this.HeroNode.on(cc.Node.EventType.TOUCH_CANCEL, this.OnMoveCancel, this), this.HeroNode.on(cc.Node.EventType.TOUCH_END, this.OnMoveEnd, this)
                }, t.prototype.OnMoveStart = function() {
                    this._dragMoveCounter = 0
                }, t.prototype.OnMoving = function(e) {
                    if (!this._isMoved) {
                        this._isMoved = !0;
                        var t = this.HeroNode.convertToWorldSpaceAR(cc.v2(0, 0));
                        this.HeroNode.setParent(this._dragContainer);
                        var n = this._dragContainer.convertToNodeSpaceAR(t);
                        this.HeroNode.scale = this.DragScale, this.HeroNode.setPosition(n)
                    }
                    var o = e.getDelta();
                    this.HeroNode.setPosition(cc.v2(this.HeroNode.x + o.x, this.HeroNode.y + o.y))
                }, t.prototype.OnMoveEnd = function() {
                    this._isMoved ? (this._isMoved = !1, a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_FORMATIONITEM_DRAGMOVE, this)) : a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_FORMATIONITEM_OFFTEAM, this.HeroSid)
                }, t.prototype.OnMoveCancel = function() {
                    this.OnMoveEnd()
                }, t.prototype.OnDragMove = function(e) {
                    if (this.IsActive && this.FormationNumber != e.FormationNumber) {
                        this._worldPos = this.ItemNode.convertToWorldSpaceAR(cc.v2(0, 0));
                        var t = e.HeroNode.convertToWorldSpaceAR(cc.v2(0, 0)),
                            n = this._worldPos.sub(t).mag();
                        a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_FORMATIONITEM_DRAGCONFIRM, e, this, n)
                    }
                }, t.prototype.OnDragMoveConfirm = function(e, t, n) {
                    if (this.IsActive && e.FormationNumber == this.FormationNumber) {
                        if (n <= 120) {
                            var o = e.HeroSid,
                                r = t.HeroSid;
                            return e.SetHeroData(r), void t.SetHeroData(o)
                        }
                        this._dragMoveCounter++, this._dragMoveCounter >= 4 && this.ResetHeroNode()
                    }
                }, i([f(cc.Node)], t.prototype, "Board", void 0), i([f(cc.Node)], t.prototype, "ItemNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/DataCenter": "DataCenter",
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent"
    }],
    FormationPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6c0a6ZKQnpBzKStqvEQbDOi", "FormationPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../GamePlay/Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Components/CustomToggle"),
            m = e("../Components/HeroListComponent"),
            I = e("../Components/ItemComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../Components/ElementEffectItem"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("./AngelBtnComponent"),
            w = e("../Components/FormationHeroItem"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.Main = 0] = "Main", e[e.PVP_Defense = 1] = "PVP_Defense", e[e.AllianceChallengeDefense = 2] = "AllianceChallengeDefense", e[e.AllianceChallengeLogistics = 3] = "AllianceChallengeLogistics", e[e.LadderRaceDefense = 4] = "LadderRaceDefense", e[e.None = 5] = "None"
        })(l || (l = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Title = null, t.HeroListComponent = null, t.TabLayout = null, t.FormationLayout1 = null, t.ReturnBtn = null, t.FormationBtn = null, t.FormationIcon = null, t.ElementEffectBtn = null, t.ElementEffectItem = null, t.ElementEffectLabel = null, t.FormationLabel = null, t.Mask = null, t.ConfirmBtn = null, t.ConfirmBtnLabel = null, t.AutoFormationBtn = null, t.AutoFormationBtnLabel = null, t.BattlePower = null, t.TabScrollview = null, t.AngelBtnNode = null, t.FormationContainer = [], t.MoveNode = null, t._isFormation1Init = !1, t._formation1Items = [], t._angelIds = [], t.Formation_Sids = [u.FormationIdType.MainLine, u.FormationIdType.ArenaDefense, u.FormationIdType.AllianceChallengeDefend1, u.FormationIdType.AllianceChallengeDefend2, u.FormationIdType.LadderRaceDefense], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(d.EventKeys.EVENT_FORMATIONITEM_ONTEAM, this.HeroOnFormation, this), c.Game.EventDispatcher.On(d.EventKeys.EVENT_FORMATIONITEM_OFFTEAM, this.HeroOffFormation, this), c.Game.EventDispatcher.On(d.EventKeys.EVENT_FORMATIONTYPE_CHANGED, this.OnFormationChanged, this), c.Game.EventDispatcher.On(d.EventKeys.EVENT_SET_FORMATION_ANGEL, this.SetFormationAngel, this), c.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(p.UserHero_Model._n_), this.OnUserHeroChange, this), c.Game.EventDispatcher.On(u.GameEventIds.RemoveDataDetail.Fmt(p.UserHero_Model._n_), this.OnUserHeroChange, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(d.EventKeys.EVENT_FORMATIONITEM_ONTEAM, this.HeroOnFormation), c.Game.EventDispatcher.Off(d.EventKeys.EVENT_FORMATIONITEM_OFFTEAM, this.HeroOffFormation), c.Game.EventDispatcher.Off(d.EventKeys.EVENT_FORMATIONTYPE_CHANGED, this.OnFormationChanged), c.Game.EventDispatcher.Off(d.EventKeys.EVENT_SET_FORMATION_ANGEL, this.SetFormationAngel, this), c.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(p.UserHero_Model._n_), this.OnUserHeroChange, this), c.Game.EventDispatcher.Off(u.GameEventIds.RemoveDataDetail.Fmt(p.UserHero_Model._n_), this.OnUserHeroChange, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.ItemComponent), n = this.LoadDynamicAsset("FormationPanel/FormationHeroItem"), o = this.LoadDynamicAsset("HeroInfoPanel/Components/AngelBtnComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._itemPrefab = e[0], r._formationItemPrefab = e[1], r._angelBtnPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.FormationBtn.node.on("click", this.OnFormationBtnClick, this), this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this), this.ConfirmBtn.node.on("click", this.OnConfirm, this), this.AutoFormationBtn.node.on("click", this.OnAutoFormation, this), this.ElementEffectBtn.node.on("click", this.OnClickElementEffect, this), this.Title.string = "formation_title".ToUILocale(), this.ConfirmBtnLabel.string = "ok".ToUILocale(), this.AutoFormationBtnLabel.string = "formation_auto".ToUILocale(), this.FormationLabel.string = "formation_change".ToUILocale(), this.ElementEffectLabel.string = "formation_halo".ToUILocale()
            }, t.prototype.InitData = function() {
                e.prototype.InitData.call(this), this.ConfigFormationGroup()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.AngelBtnNode.active = b.default.Instance.IsGameModuleOpen(u.GameModuleType.Angel), this.HeroListComponent.SetItemClickNeedHold(!0), this.HeroListComponent.Init(m.HeroListType.FormationLocked), this.HeroListComponent.SetItemClickCallback(this.OnClickHerolistComponent.bind(this)), this.HeroListComponent.SetItemHoldCallback(this.OnHoldHerolistComponent.bind(this)), this.ConfigTabContainer(), t || (this.Reset(), this.SetAngelButton())
            }, t.prototype.ConfigFormationGroup = function() {
                this._groupData = {};
                for (var e = 0; e < this.Formation_Sids.length; e++) {
                    var t = this.Formation_Sids[e],
                        n = f.ConfigDataComponent.Instance.GetConfigById(y.FormationInstance_Config, t).Group,
                        o = this._groupData[n];
                    o ? o.push(t) : ((o = []).push(t), this._groupData[n] = o)
                }
            }, t.prototype.SetAngelButton = function() {
                this._angelBtnNode || (this._angelBtnNode = cc.instantiate(this._angelBtnPrefab), this._angelBtnNode.parent = this.AngelBtnNode, this._angelBtnNode.on("click", this.OnClickAngelBtn, this));
                var e = this._angelBtnNode.getComponent(S.default);
                e.Init(this._angelIds[0], !0, !0), e.SetBtnScale(.82)
            }, t.prototype.Reset = function() {
                this._currentTabType = l.None;
                var e = this._toggleGroup[l.Main];
                e.isChecked = !0, this.OnSwitchTab(e)
            }, t.prototype.ConfigTabContainer = function() {
                this._toggleGroup = [];
                for (var e = this.TabLayout.childrenCount, t = 0; t < e; t++) {
                    var n = this.TabLayout.children[t];
                    n.name = t.toString(), n.on("toggle", this.OnSwitchTab, this);
                    var o = n.getComponent(g.default);
                    this._toggleGroup.push(o);
                    var r = void 0,
                        i = void 0,
                        a = void 0;
                    switch (t) {
                        case l.AllianceChallengeDefense:
                        case l.AllianceChallengeLogistics:
                            r = (a = b.default.Instance.IsGameModuleUnlock(u.GameModuleType.Alliance))[0], i = a[1];
                            break;
                        case l.LadderRaceDefense:
                            r = (a = b.default.Instance.IsGameModuleUnlock(u.GameModuleType.CrossServerArena))[0], i = a[1];
                            break;
                        default:
                            r = !0
                    }
                    o.Init(("formation_toggle_" + t).ToUILocale()), o.SetInteractable(r, i)
                }
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentTabType != t && (this._currentTabType = t, this.ConfigFormationByTab(), this.SetAngelButton())
            }, t.prototype.ConfigFormationByTab = function() {
                this._formationSid = this.Formation_Sids[this._currentTabType], this._formationData = f.DataCenter.Instance.GetDataById(p.UserFormation_Model, this._formationSid), this._formationData ? this._formationType = this._formationData.FormationType : this._formationSid < 100 ? this._formationData = f.DataCenter.Instance.GetDataById(p.UserFormation_Model, u.FormationIdType.MainLine) : this._formationType = 101, this._formationConfig = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, this._formationType), this.SetFormationIncon(), this.ConfigFormationLayout(), this.InitAngelData()
            }, t.prototype.SetFormationIncon = function() {
                this.FormationIcon.spriteFrame = _.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this._formationConfig.Icon)
            }, t.prototype.ConfigFormationLayout = function() {
                if (!this._isFormation1Init) {
                    this._isFormation1Init = !0;
                    for (var e = 0; e < this.FormationContainer.length; e++) {
                        var t = cc.instantiate(this._formationItemPrefab);
                        t.setParent(this.FormationContainer[e]);
                        var n = t.getComponent(w.default);
                        this._formation1Items.push(n), n.Init(e, this.MoveNode)
                    }
                    this.FormationLayout1.updateLayout()
                }
                var o;
                o = this._formationData ? this._formationData.HeroIds : [], this.ConfigHeroFormation(o)
            }, t.prototype.InitAngelData = function() {
                this._angelIds = [];
                var e = f.DataCenter.Instance.GetDataById(p.UserFormation_Model, this._formationSid);
                e && e.Angel && e.Angel.AngelId > 0 ? this._angelIds.push(e.Angel.AngelId) : this._angelIds.push(0)
            }, t.prototype.ConfigHeroFormation = function(e) {
                var t = 0;
                this._lockedHeroes = this.GetLockedHeroSids(), this.HeroListComponent.RefreshScrollViewBySIds(e, this._lockedHeroes);
                for (var n = 0; n < this._formation1Items.length; n++) {
                    var o = this._formation1Items[n],
                        r = n + 1;
                    if (this._formationConfig.Data.indexOf(r) > -1) {
                        o.SetWhiteBoardState(!1, t + 1);
                        var i = e[t];
                        i || (i = 0), o.SetHeroData(i, this._itemPrefab), t++
                    } else o.SetHeroData(0, this._itemPrefab), o.SetWhiteBoardState(!0, 0)
                }
                this.RefreshPanelState()
            }, t.prototype.GetLockedHeroSids = function() {
                var e = [],
                    t = f.ConfigDataComponent.Instance.GetConfigById(y.FormationInstance_Config, this._formationSid),
                    n = this._groupData[t.Group];
                if (n && n.length > 1)
                    for (var o = 0; o < n.length; o++)
                        if (n[o] != this._formationSid) {
                            var r = f.DataCenter.Instance.GetDataById(p.UserFormation_Model, n[o]);
                            if (r)
                                for (var i = 0; i < r.HeroIds.length; i++) e.push(r.HeroIds[i])
                        } return e
            }, t.prototype.HeroOnFormation = function(e) {
                var t = this.GetHeroSlot(e);
                t && (t.SetHeroData(e), this.RefreshPanelState())
            }, t.prototype.HeroOffFormation = function(e, t) {
                var n = this.GetFormationItem(e);
                if (t) n.HeroNode.convertToNodeSpaceAR(t);
                else {
                    var o = void 0,
                        r = this.HeroListComponent.UnselectHeroItemNode(e),
                        i = this.HeroListComponent.node.convertToWorldSpaceAR(cc.v2(0, 0));
                    null != r ? (o = r.convertToWorldSpaceAR(cc.v2(0, 0))).y < i.y - 300 ? o = cc.v2(i.x, i.y - 300) : o.y > i.y + 200 && (o = cc.v2(o.x, i.y + 150)) : o = cc.v2(i.x, i.y - 300), n.HeroNode.convertToNodeSpaceAR(o)
                }
                n.HeroNode.scale = .8, n.SetHeroData(0), this.RefreshPanelState()
            }, t.prototype.GetHeroSlot = function(e) {
                var t = f.DataCenter.Instance.GetDataById(p.UserHero_Model, e),
                    n = [];
                switch (f.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, t.HeroId).Career) {
                    case u.CareerType.Master:
                    case u.CareerType.Support:
                        n = [8, 7, 6, 5, 4, 3, 2, 1, 0];
                        break;
                    case u.CareerType.Tank:
                        n = [0, 1, 2, 3, 4, 5, 6, 7, 8];
                        break;
                    case u.CareerType.Warrior:
                        n = [5, 4, 3, 2, 1, 0, 8, 7, 6]
                }
                for (var o = 0; o < n.length; o++) {
                    var r = n[o],
                        i = this._formation1Items[r];
                    if (i.IsActive && 0 == i.HeroSid) return i
                }
                return null
            }, t.prototype.GetFormationItem = function(e) {
                for (var t = 0; t < this._formation1Items.length; t++) {
                    var n = this._formation1Items[t];
                    if (n.IsActive && n.HeroSid == e) return n
                }
            }, t.prototype.OnClickHerolistComponent = function(e, t) {
                var n = t.getComponent(I.ItemComponent),
                    o = this.HeroListComponent.SelectSIds.indexOf(e);
                if (o > -1) {
                    n.SetSelectFlagState(!1), this.HeroListComponent.SelectSIds.splice(o, 1);
                    var r = t.convertToWorldSpaceAR(cc.v2(0, 0));
                    c.Game.EventDispatcher.Emit(d.EventKeys.EVENT_FORMATIONITEM_OFFTEAM, e, r)
                } else {
                    if (this.HeroListComponent.SelectSIds.length >= _.UIUtlity.TeamMemberCount) return void _.UIUtlity.ShowFloatingHint("select_teamMember_enough".ToUILocale());
                    var i = this.IsSelectSameHero(e);
                    if (1 == i) return _.UIUtlity.ShowFloatingHint("formation_forbiddon_sameHero".ToUILocale());
                    if (2 == i) return _.UIUtlity.ShowFloatingHint("formation_forbiddon_teamsSameHero".ToUILocale());
                    if (this._lockedHeroes.indexOf(e) > -1) return _.UIUtlity.ShowFloatingHint("formation_hero_locked".ToUILocale());
                    n.SetSelectFlagState(!0), this.HeroListComponent.SelectSIds.push(e);
                    var a = t.convertToWorldSpaceAR(cc.v2(0, 0));
                    c.Game.EventDispatcher.Emit(d.EventKeys.EVENT_FORMATIONITEM_ONTEAM, e, a)
                }
            }, t.prototype.OnHoldHerolistComponent = function(e) {
                f.DataCenter.Instance.GetDataById(p.UserHero_Model, e) && c.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroInfoPanel.Path, e)
            }, t.prototype.IsSelectSameHero = function(e) {
                for (var t = f.DataCenter.Instance.GetDataById(p.UserHero_Model, e), n = 0; n < this._formation1Items.length; n++)
                    if (this._formation1Items[n].HeroId == t.HeroId) return 1;
                if (this._lockedHeroes)
                    for (n = 0; n < this._lockedHeroes.length; n++) {
                        var o = this._lockedHeroes[n];
                        if (o && f.DataCenter.Instance.GetDataById(p.UserHero_Model, o).HeroId == t.HeroId) return 2
                    }
                return 0
            }, t.prototype.OnFormationBtnClick = function() {
                C.UIManager.Instance.ShowUIPanel(h.PanelConfig.SelectFormationTypePanel.Path, this._formationType)
            }, t.prototype.OnReturnBtnClick = function() {
                C.UIManager.Instance.BackUIPanel()
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), c.Game.EventDispatcher.Emit(d.EventKeys.EVENT_SET_FORMATION)
            }, t.prototype.OnFormationChanged = function(e) {
                this._formationType = e, this._formationConfig = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, this._formationType), this.SetFormationIncon(), this.ConfigFormationLayout()
            }, t.prototype.SetFormationAngel = function(e, t) {
                this._angelIds[0] = t, this.SetAngelButton()
            }, t.prototype.RefreshPanelState = function() {
                this.RefreshBattlePower(), this.RefreshElementEffect()
            }, t.prototype.RefreshBattlePower = function() {
                for (var e = 0, t = 0; t < this._formation1Items.length; t++) e += this._formation1Items[t].BattlePower;
                this.BattlePower.string = e.toString()
            }, t.prototype.RefreshElementEffect = function() {
                for (var e = [], t = 0; t < this._formation1Items.length; t++) {
                    var n = this._formation1Items[t];
                    n.IsActive && 0 != n.HeroSid && e.push(n.HeroSid)
                }
                this.ElementEffectItem.InitBySid(e)
            }, t.prototype.OnConfirm = function() {
                for (var e = [], t = !1, n = 0; n < this._formation1Items.length; n++) {
                    var o = this._formation1Items[n];
                    o.IsActive && (e.push(o.HeroSid), o.HeroSid > 0 && (t = !0))
                }
                if (t) {
                    var r = new p.Req_Hero_SetFormation,
                        i = new p.UserFormation_Model;
                    i.Sid = this._formationSid, i.FormationType = this._formationType, i.HeroIds = e;
                    var a = this._angelIds[0] > 0 ? this._angelIds[0] : 0;
                    a > 0 && (i.Angel = new p.UserAngel_Model, i.Angel.AngelId = a), r.Formations = [i], f.RpcComponent.Instance.Call(r, this.OnFormationConfirm.bind(this))
                } else _.UIUtlity.ShowFloatingHint("secretArea_SelectHeroesToBattle".ToUILocale())
            }, t.prototype.OnFormationConfirm = function() {
                _.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale()), this._formationData = f.DataCenter.Instance.GetDataById(p.UserFormation_Model, this._formationSid)
            }, t.prototype.OnAutoFormation = function() {
                for (var e = this.HeroListComponent.GetBestTeamMembers(this._lockedHeroes), t = [], n = 0; n < e.length; n++) t.push(e[n].Sid);
                b.default.Instance.SortHeroByCareer(t), this.ConfigHeroFormation(t), this.OnConfirm()
            }, t.prototype.OnClickElementEffect = function() {
                C.UIManager.Instance.ShowUIPanel(h.PanelConfig.ElementPanel.Path, this.ElementEffectItem.ElementMap, this.ElementEffectItem.SPHeroCount, this.ElementEffectItem.URHeroCount, this.ElementEffectItem.LRHeroCount)
            }, t.prototype.OnClickAngelBtn = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.AngelSelectPanel.Path, [this._formationSid], this._angelIds, 0)
            }, t.prototype.OnUserHeroChange = function() {
                for (var e = !1, t = 0; t < this._formation1Items.length; t++) {
                    var n = this._formation1Items[t];
                    if (n.IsActive && n.HeroSid > 0) {
                        var o = f.DataCenter.Instance.GetDataById(p.UserHero_Model, n.HeroSid);
                        o ? n.SetHeroData(o.Sid) : (n.SetHeroData(0), e = !0)
                    }
                }
                e && this.RefreshPanelState()
            }, i([T(cc.Label)], t.prototype, "Title", void 0), i([T(m.default)], t.prototype, "HeroListComponent", void 0), i([T(cc.Node)], t.prototype, "TabLayout", void 0), i([T(cc.Layout)], t.prototype, "FormationLayout1", void 0), i([T(cc.Button)], t.prototype, "ReturnBtn", void 0), i([T(cc.Button)], t.prototype, "FormationBtn", void 0), i([T(cc.Sprite)], t.prototype, "FormationIcon", void 0), i([T(cc.Button)], t.prototype, "ElementEffectBtn", void 0), i([T(v.default)], t.prototype, "ElementEffectItem", void 0), i([T(cc.Label)], t.prototype, "ElementEffectLabel", void 0), i([T(cc.Label)], t.prototype, "FormationLabel", void 0), i([T(cc.Node)], t.prototype, "Mask", void 0), i([T(cc.Button)], t.prototype, "ConfirmBtn", void 0), i([T(cc.Label)], t.prototype, "ConfirmBtnLabel", void 0), i([T(cc.Button)], t.prototype, "AutoFormationBtn", void 0), i([T(cc.Label)], t.prototype, "AutoFormationBtnLabel", void 0), i([T(cc.Label)], t.prototype, "BattlePower", void 0), i([T(cc.ScrollView)], t.prototype, "TabScrollview", void 0), i([T(cc.Node)], t.prototype, "AngelBtnNode", void 0), i([T(cc.Node)], t.prototype, "FormationContainer", void 0), i([T(cc.Node)], t.prototype, "MoveNode", void 0), i([A], t)
        }(c.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ElementEffectItem": "ElementEffectItem",
        "../Components/FormationHeroItem": "FormationHeroItem",
        "../Components/HeroListComponent": "HeroListComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./AngelBtnComponent": "AngelBtnComponent"
    }],
    FormationSwitchBtn: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eaa520+FaRNH73t1smdfXG8", "FormationSwitchBtn");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LeftBtn = null, t.RightBtn = null, t.Tag1Info = null, t.Tag2Node = null, t.Tag2Low = null, t.Tag2Middle = null, t.Tag2High = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.LeftBtn.node.on("click", this.OnClickLeft, this), this.RightBtn.node.on("click", this.OnClickRight, this)
                }, t.prototype.Init = function(e, t, n) {
                    switch (this._type = e, this._teamIndex = t, this._callback = n, e) {
                        case 1:
                        case 2:
                            this.ConfigTag1()
                    }
                }, t.prototype.ConfigTag1 = function() {
                    this.Tag1Info.node.active = !0, this.Tag2Node.active = !1, this.Tag1Info.string = "formation_index".ToUILocale().Fmt(this._teamIndex + 1)
                }, t.prototype.ConfigTag2 = function(e) {
                    switch (this.Tag1Info.node.active = !1, this.Tag2Node.active = !0, this.Tag2Low.active = !1, this.Tag2Middle.active = !1, this.Tag2High.active = !1, e) {
                        case 0:
                            this.Tag2Low.active = !0;
                            break;
                        case 1:
                            this.Tag2Middle.active = !0;
                            break;
                        case 2:
                            this.Tag2High.active = !0
                    }
                }, t.prototype.SetPowerSort = function(e) {
                    this._powerSortArray = e, this.ConfigTag1()
                }, t.prototype.OnClickLeft = function() {
                    this._teamIndex--, this._teamIndex < 0 && (this._teamIndex = 2), this.HandleCallback()
                }, t.prototype.OnClickRight = function() {
                    this._teamIndex++, this._teamIndex > 2 && (this._teamIndex = 0), this.HandleCallback()
                }, t.prototype.HandleCallback = function() {
                    if (this._callback) {
                        switch (this._type) {
                            case 1:
                            case 2:
                                this.ConfigTag1()
                        }
                        this._callback(this._teamIndex)
                    }
                }, i([l(cc.Button)], t.prototype, "LeftBtn", void 0), i([l(cc.Button)], t.prototype, "RightBtn", void 0), i([l(cc.Label)], t.prototype, "Tag1Info", void 0), i([l(cc.Node)], t.prototype, "Tag2Node", void 0), i([l(cc.Node)], t.prototype, "Tag2Low", void 0), i([l(cc.Node)], t.prototype, "Tag2Middle", void 0), i([l(cc.Node)], t.prototype, "Tag2High", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    FrameComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7ccc5pjR6BOEIGIqhs5FGxJ", "FrameComponent");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FrameComponent = void 0;
        var i = e("../AssetsLoader/AssetsManager"),
            a = e("../../GamePlay/UI/Auxiliary/UIUtlity"),
            s = e("../../EZFramework/EZFramework"),
            l = function() {
                function e(e, t) {
                    this._pageParentNode = null, this._maxPageCount = 0, this.__pageConfigs = null, this.__currentShow = null, this.__pageAccessOrder = null, this._pageParentNode = e, this._maxPageCount = t, this.__pageConfigs = new Map, this.__pageAccessOrder = []
                }
                return e.prototype.ReShowPage = function() {
                    return o(this, void 0, void 0, function() {
                        var e;
                        return r(this, function() {
                            return this.__pageConfigs.has(this.__currentShow) ? (null != (e = this.__pageConfigs.get(this.__currentShow)).ComponentInstance && e.ComponentInstance.__ReDisplay(!0), [2]) : (console.error(this.__currentShow + " Not In instantiate"), [2])
                        })
                    })
                }, e.prototype.ShowPage = function(e) {
                    for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                    return o(this, void 0, void 0, function() {
                        var n, o, l, c, u, p, d = this;
                        return r(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return n = this.__currentShow, null == e || "" == e ? (a.UIUtlity.ShowFloatingHint("No Page"), [2]) : (this.__currentShow = e, -1 !== (o = this.__pageAccessOrder.indexOf(e)) && this.__pageAccessOrder.splice(o, 1), this.__pageAccessOrder.push(e), this.__pageConfigs.has(e) ? l = this.__pageConfigs.get(e) : (l = {
                                        Path: e,
                                        PrefabAsset: null,
                                        ComponentInstance: null,
                                        IsInit: !1
                                    }, this.__pageConfigs.set(e, l)), c = !1, null != l.ComponentInstance ? [3, 2] : (c = !0, a.UIUtlity.ShowMaskPanel(), [4, this.LoadDynamicAsset(l.Path)]));
                                case 1:
                                    if (u = r.sent(), !this._pageParentNode.isValid) return a.UIUtlity.CloseMaskPanel(), i.AssetsManager.Instance.UnloadAsset(u), [2];
                                    l.PrefabAsset = u, (p = cc.instantiate(u)).active = !1, p.setParent(this._pageParentNode), l.ComponentInstance = p.getComponent(s.BaseUIPage), l.ComponentInstance.ParentFrameComponent = this, l.ComponentInstance.UIPageName = e, r.label = 2;
                                case 2:
                                    return this.__currentShow != e ? [3, 5] : [4, l.ComponentInstance.__PreInit(t)];
                                case 3:
                                    return r.sent(), this._pageParentNode.isValid ? (this.PreOnClose(n), [4, l.ComponentInstance.__PreDisplay()]) : (a.UIUtlity.CloseMaskPanel(), [2]);
                                case 4:
                                    return r.sent(), this.DisableLastShow(n), this._pageParentNode.isValid ? [3, 6] : (a.UIUtlity.CloseMaskPanel(), [2]);
                                case 5:
                                    this.PreOnClose(n), this.DisableLastShow(n), r.label = 6;
                                case 6:
                                    return c && a.UIUtlity.CloseMaskPanel(), this._maxPageCount > 0 && this.__pageConfigs.size > this._maxPageCount && this.__pageAccessOrder.splice(0, this.__pageConfigs.size - this._maxPageCount).forEach(function(e) {
                                        d.UnloadPage(e)
                                    }), [2]
                            }
                        })
                    })
                }, e.prototype.UnloadPage = function(e) {
                    var t = this.__pageConfigs.get(e);
                    t && t.ComponentInstance && (this.__pageConfigs.delete(e), t.ComponentInstance.node.active && t.ComponentInstance.OnClose(), t.ComponentInstance.Dispose(), t.ComponentInstance.node.destroy(), t.ComponentInstance = null, t.IsInit = !1, i.AssetsManager.Instance.UnloadAsset(t.PrefabAsset))
                }, e.prototype.DisableLastShow = function(e) {
                    if (this.__currentShow != e && null != e) {
                        var t = this.__pageConfigs.get(e).ComponentInstance;
                        t && (t.node.active = !1), -1 == this._maxPageCount && this.UnloadPage(e)
                    }
                }, e.prototype.PreOnClose = function(e) {
                    var t = this.__pageConfigs.get(e);
                    t && t.ComponentInstance && t.ComponentInstance.OnClose()
                }, e.prototype.ClosePage = function(e) {
                    if (this.__currentShow == e && (this.__currentShow = null), null != e) {
                        var t = this.__pageConfigs.get(e);
                        if (t) {
                            var n = t.ComponentInstance;
                            n && (n.OnClose(), n.node.active = !1)
                        } - 1 == this._maxPageCount && this.UnloadPage(e)
                    }
                }, e.prototype.LoadDynamicAsset = function(e, t) {
                    return o(this, void 0, void 0, function() {
                        return r(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, i.AssetsManager.Instance.LoadAsset(e, t)];
                                case 1:
                                    return [2, n.sent()]
                            }
                        })
                    })
                }, e.prototype.Dispose = function() {
                    this.__pageConfigs && (this.__pageConfigs.forEach(function(e) {
                        e.ComponentInstance && (e.ComponentInstance.node.active && e.ComponentInstance.OnClose(), e.ComponentInstance.Dispose(), i.AssetsManager.Instance.UnloadAsset(e.PrefabAsset))
                    }), this.__pageConfigs = null)
                }, e
            }();
        n.FrameComponent = l, cc._RF.pop()
    }, {
        "../../EZFramework/EZFramework": "EZFramework",
        "../../GamePlay/UI/Auxiliary/UIUtlity": "UIUtlity",
        "../AssetsLoader/AssetsManager": "AssetsManager"
    }],
    FrameSevenComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3fecd/UvMdLOoOU6GrQULAa", "FrameSevenComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("./ActivityBaseComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ActivityNameSprite = null, t.RemainTime = null, t.MaskNode = null, t.LangTagLabel = null, t
                }
                return r(t, e), t.prototype.Init2 = function(e, t) {
                    e ? (this._data = e, this._endTime = c.default.Instance.ComputeDeadTime(e), this._showoffTime = c.default.Instance.ComputeExtraShowDeadTime(e)) : (this._endTime = 0, this._showoffTime = 0), this.LangTagLabel.string || (this.LangTagLabel.string = "Activity_HeroPK_Round_Tag_End".ToUILocale()), this.LoadNameIcon(t), this.SetStateSprite(), this.SetTime()
                }, t.prototype.LoadNameIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return t = this.ActivityNameSprite, [4, c.default.LoadActivityTexture(e)];
                                case 1:
                                    return t.spriteFrame = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetStateSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return this.MaskNode ? (e = !1, this._data && (e = this._data.GameModule > 0 && !c.default.Instance.IsGameModuleUnlock(this._data.GameModule)[0]), this.MaskNode.active = l.RpcComponent.Instance.ServerTime > this._showoffTime || e, [2]) : [2]
                        })
                    })
                }, t.prototype.SetTime = function() {
                    this.CountDownTime(), l.RpcComponent.Instance.ServerTime <= this._showoffTime && (this.RemainTime.node.active = !0, this.unschedule(this.CountDownTime), this.schedule(this.CountDownTime, 1))
                }, t.prototype.CountDownTime = function() {
                    var e = this._endTime - l.RpcComponent.Instance.ServerTime;
                    e > 0 ? this.RemainTime.string = "<outline color=#202434 width = 3>{0}</o>".Fmt(c.default.ActivityTimeLeftFormat(e)) : l.RpcComponent.Instance.ServerTime < this._showoffTime ? this.RemainTime.string = "<outline color=#202434 width = 3>{0}</o>".Fmt(c.default.ActivityTimeLeftFormat(this._showoffTime - l.RpcComponent.Instance.ServerTime)) : this.RemainTime.string = "<outline color=#202434 width = 3><color=#ff5b5b>{0}</color></o>".Fmt(c.default.ActivityTimeLeftFormat(0))
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.CountDownTime)
                }, i([h(cc.Sprite)], t.prototype, "ActivityNameSprite", void 0), i([h(cc.RichText)], t.prototype, "RemainTime", void 0), i([h(cc.Node)], t.prototype, "MaskNode", void 0), i([h(cc.Label)], t.prototype, "LangTagLabel", void 0), i([d], t)
            }(u.default);
        n.default = f, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "./ActivityBaseComponent": "ActivityBaseComponent"
    }],
    FrameSevenContent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f91aaa7cqBLBYj1Unzww5zc", "FrameSevenContent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Components/Components"),
            f = e("./ActivityBaseContent"),
            y = e("./FrameSevenComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroAvatar = null, t.SDAvatarNode = null, t.HeroTitle = null, t.Quality = null, t.Element = null, t.Bg = null, t.EntranceComponents = [], t.DetailButton = null, t.DetailButtonLabel = null, t.GiftButton = null, t.GiftButtonLabel = null, t._assets = [], t
                }
                return r(t, e), t.prototype.start = function() {
                    this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this)
                }, t.prototype.Init = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function() {
                            return e.prototype.Init.call(this, t, !0, !0), n = this._frameConfig, o = n.CustomPart.NewRelevancy[0].Items[1], this._heroConfig = h.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, o), this._activityTypes = [d.ActivityType.OptionalUpgradeStar, d.ActivityType.ActiveWarToken, d.ActivityType.NewHeroSummon, d.ActivityType.HeroTestTower, d.ActivityType.ExchangeShop], this._assets = [], this.DetailButtonLabel.string || (this.DetailButtonLabel.string = "ChaosSummon_HeroDetail".ToUILocale(), this.GiftButtonLabel.string = "timeLimited_wishGiftNew".ToUILocale()), this.Quality.spriteFrame = g.UIUtlity.GetSRByQuality(this._heroConfig.Quality), this.SetElement(), this.SetHeroName(), this.SetAvatar(), this.SetSDAvatar(), this.SetPanelBg(), this.SetEntranceComponents(), [2]
                        })
                    })
                }, t.prototype.SetElement = function() {
                    this.Element.spriteFrame = g.UIUtlity.GetHeroElementIcon(this._heroConfig.ElementType)
                }, t.prototype.SetHeroName = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.HeroTitle.spriteFrame ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/" + this._heroConfig.Id), cc.SpriteFrame)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this.HeroTitle.spriteFrame = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._avataPrefab ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset(this._heroConfig.UIAvatar + "/Avatar", cc.Prefab)]);
                                case 1:
                                    if (e._avataPrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._avataPrefab), [2];
                                    this._assets.push(this._avataPrefab), (t = cc.instantiate(this._avataPrefab)).parent = this.HeroAvatar, t.y = this._frameConfig ? this._frameConfig.CustomPart.HeroHeight : 0, m.default.Instance.SetHeroAvatarSkin(t, this._heroConfig.Id, this._heroConfig.StarLevel), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetSDAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._sdAvatarPrefab ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset("Hero_" + this._heroConfig.Model + "/HeroAvatar", cc.Prefab)]);
                                case 1:
                                    if (e._sdAvatarPrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._sdAvatarPrefab), [2];
                                    this._assets.push(this._sdAvatarPrefab), (t = cc.instantiate(this._sdAvatarPrefab)).parent = this.SDAvatarNode, m.default.Instance.SetHeroAvatarSkin(t, this._heroConfig.Id, this._heroConfig.StarLevel), t.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetPanelBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this.Bg, [4, m.default.LoadActivityTexture(this._frameConfig.CustomPart.BackgroundImage)];
                                case 1:
                                    return e.spriteFrame = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetEntranceComponents = function() {
                    var e = this;
                    for (var t in this.EntranceComponents.forEach(function(t, n) {
                            if (e._activityTypes[n]) {
                                t.node.active = !0;
                                var o, r = void 0;
                                o = e._heroConfig.ElementType != d.HeroElementType.Chaos || e._activityTypes[n] != d.ActivityType.NewHeroSummon && e._activityTypes[n] != d.ActivityType.PersonalitySummon ? e._activityTypes[n] : d.ActivityType.SkipInlet;
                                var i = e._activityDatas.find(function(e) {
                                    return o == d.ActivityType.SkipInlet ? e.Common.Type == o && n == e.Common.SortId - 1 : e.Common.Type == o
                                });
                                i ? (t.node.name = i._id.toString(), r = i.Common, e._activityIdToNode[i._id] = t.node) : (t.node.name = "0", r = null), t.Init2(r, "frame7_name" + (n + 1)), t.node.on(cc.Node.EventType.TOUCH_END, e.OnModuleTouch, e)
                            } else t.node.active = !1
                        }), this._activityIdToNode) {
                        var n = Number.parseInt(t),
                            o = c.DataCenter.Instance.ActivityConfigs[t],
                            r = o.Common.Type,
                            i = void 0;
                        if (o.Common.Type == d.ActivityType.SkipInlet && o.Common.JumpId > 0) {
                            var a = void 0;
                            if (c.ConfigDataComponent.Instance.GetConfigById(u.ItemGetWay_Config, o.Common.JumpId))
                                for (var s in c.DataCenter.Instance.ActivityConfigs)
                                    if (c.DataCenter.Instance.ActivityConfigs[s].Common.GetWayId == o.Common.JumpId) {
                                        a = c.DataCenter.Instance.ActivityConfigs[s];
                                        break
                                    } a && (r = a.Common.Type, i = a._id)
                        }
                        this.BindRedDot(r, n, i)
                    }
                }, t.prototype.OnModuleTouch = function(e) {
                    var t = Number.parseInt(e.currentTarget.name);
                    if (t) {
                        var n = c.DataCenter.Instance.ActivityConfigs[t];
                        if (n.Common.GameModule > 0) {
                            var o = m.default.Instance.IsGameModuleUnlock(n.Common.GameModule);
                            if (!o[0]) return void g.UIUtlity.ShowFloatingHint(o[1])
                        }
                        var r = m.default.Instance.ComputeExtraShowDeadTime(n.Common);
                        if (c.RpcComponent.Instance.ServerTime > r) return void g.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                        n.Common.Type == d.ActivityType.SkipInlet ? m.default.ShowPanelByGetWayId(n.Common.JumpId) : f.default.OpenActivityPanel(t)
                    } else g.UIUtlity.ShowFloatingHint("activity_end".ToUILocale())
                }, t.prototype.OnDetailButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(I.PanelConfig.HeroHandbookPanel.Path, this._heroConfig.Id)
                }, t.prototype.OnGiftButtonClick = function() {
                    var e = this._activityDatas.find(function(e) {
                        return e.Common.Type == d.ActivityType.NewHeroSummon
                    });
                    e && l.UIManager.Instance.ShowUIPanel(I.PanelConfig.WishGiftPanel.Path, e)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._assets = null
                }, i([v(cc.Node)], t.prototype, "HeroAvatar", void 0), i([v(cc.Node)], t.prototype, "SDAvatarNode", void 0), i([v(cc.Sprite)], t.prototype, "HeroTitle", void 0), i([v(cc.Sprite)], t.prototype, "Quality", void 0), i([v(cc.Sprite)], t.prototype, "Element", void 0), i([v(cc.Sprite)], t.prototype, "Bg", void 0), i([v(y.default)], t.prototype, "EntranceComponents", void 0), i([v(cc.Button)], t.prototype, "DetailButton", void 0), i([v(cc.Label)], t.prototype, "DetailButtonLabel", void 0), i([v(cc.Button)], t.prototype, "GiftButton", void 0), i([v(cc.Label)], t.prototype, "GiftButtonLabel", void 0), i([C], t)
            }(f.default);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ActivityBaseContent": "ActivityBaseContent",
        "./FrameSevenComponent": "FrameSevenComponent"
    }],
    FreeFallComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8dc68ApXY1GnZbg0bgjXLrQ", "FreeFallComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = (l.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._isMoving = !1, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._param = e, this._nodeViewRect = t;
                    var n = this._param.Angle * Math.PI / 180;
                    this._vx = this._param.Speed * Math.cos(n), this._vy = this._param.Speed * Math.sin(n), this._isMoving = !0
                }, t.prototype.update = function(e) {
                    if (this._isMoving) {
                        var t = this._vx * e;
                        this.node.x += t;
                        var n = this._vy * e + .5 + this._param.G * e * e;
                        this._vy = this._vy + this._param.G * e, this.node.y += n, this.node.getBoundingBoxToWorld().intersects(this._nodeViewRect) ? this.node.opacity = 255 : (this.node.opacity = 0, this._isMoving = !1, a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_FREE_FALL_REFRESH, this.node))
                    }
                }, t.prototype.InitStatus = function(e, t) {
                    this._isMoving = e, this.node.opacity = t
                }, i([c], t)
            }(cc.Component));
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    FriendPKSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dea047N6JREe73fAas/Qest", "FriendPKSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Channel/ChannelManager"),
            h = e("../../Components/DataCenter"),
            f = e("./HeadComponent"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("./SettlementBaseComponent"),
            m = e("../../Components/RpcComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LeftNameLabel = null, t.LeftDesignation = null, t.LeftHeadContainer = null, t.LeftPower = null, t.LeftZone = null, t.RightNameLabel = null, t.RightDesignation = null, t.RightHeadContainer = null, t.RightPower = null, t.RightZone = null, t.ConfirmBtn = null, t.ConfirmLabel = null, t._headItemPrefab = null, t._leftHeadItem = null, t._rightHeadItem = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ConfirmBtn.on("click", this.Back, this)
                }, t.prototype.onDisable = function() {
                    this.ConfirmBtn.off("click", this.Back, this)
                }, t.prototype.SetUI = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i;
                        return s(this, function() {
                            return e.prototype.SetUI.call(this, t), n = t.Reports[0].Players[0], o = t.SettleParams[0].TargetInfo, this.ConfirmLabel.string = "ok".ToUILocale(), this.LeftNameLabel.string = n.RoleName, this.RightNameLabel.string = o.Name, (r = h.DataCenter.Instance.GetSimpleData(c.UserDataKey.Designation)) && u.default.SetDesignationIcon(r.V, this.LeftDesignation), u.default.SetDesignationIcon(o.Designation, this.RightDesignation), this.LoadPlayerHead(o), i = h.DataCenter.Instance.GetSimpleData(c.UserDataKey.Power).V, this.LeftPower.string = "" + i, this.RightPower.string = o.Power.toString(), this.LeftZone.string = "allianceWar_zone".ToUILocale().Fmt(h.DataCenter.Zone), this.RightZone.string = "allianceWar_zone".ToUILocale().Fmt(o.Zone), [2]
                        })
                    })
                }, t.prototype.LoadPlayerHead = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != this._headItemPrefab ? [3, 2] : (t = this, [4, l.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadComponent, cc.Prefab)]);
                                case 1:
                                    if (t._headItemPrefab = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    return null == this._leftHeadItem && (this._leftHeadItem = cc.instantiate(this._headItemPrefab).getComponent(f.default), this._leftHeadItem.node.parent = this.LeftHeadContainer), null == this._rightHeadItem && (this._rightHeadItem = cc.instantiate(this._headItemPrefab).getComponent(f.default), this._rightHeadItem.node.parent = this.RightHeadContainer), n = h.DataCenter.Instance.GetIntData(c.UserDataKey.HeadIcon), o = h.DataCenter.Instance.GetIntData(c.UserDataKey.HeadFrame), r = h.DataCenter.Instance.GetIntData(c.UserDataKey.Title), this._leftHeadItem.SetUI(n, o, r), this._leftHeadItem.SetLevel(h.DataCenter.Instance.GetIntData(c.UserDataKey.PlayerLevel)), (i = h.DataCenter.Instance.GetStringData(c.UserDataKey.Country)) || (i = d.default.Instance.Localization_Country), i = 0 == h.DataCenter.Instance.GetIntData(c.UserDataKey.CountryShowState) ? i : "", this._leftHeadItem.SetCountry(i), a = e.HeadIcon, u = e.HeadFrame, this._rightHeadItem.SetUI(a, u), this._rightHeadItem.SetLevel(e.Level), this._rightHeadItem.SetCountry(e.Country), [2]
                            }
                        })
                    })
                }, t.prototype.RequestUserDetailInfo = function(e, t) {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return [2, new Promise(function(n) {
                                var o = new y.Req_Player_GetPlayerDetailInfo;
                                o.Uid = e, o.Zone = t, m.RpcComponent.Instance.Call(o, function(e) {
                                    n(e)
                                })
                            })]
                        })
                    })
                }, t.prototype.Back = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._headItemPrefab)
                }, i([C(cc.Label)], t.prototype, "LeftNameLabel", void 0), i([C(cc.Sprite)], t.prototype, "LeftDesignation", void 0), i([C(cc.Node)], t.prototype, "LeftHeadContainer", void 0), i([C(cc.Label)], t.prototype, "LeftPower", void 0), i([C(cc.Label)], t.prototype, "LeftZone", void 0), i([C(cc.Label)], t.prototype, "RightNameLabel", void 0), i([C(cc.Sprite)], t.prototype, "RightDesignation", void 0), i([C(cc.Node)], t.prototype, "RightHeadContainer", void 0), i([C(cc.Label)], t.prototype, "RightPower", void 0), i([C(cc.Label)], t.prototype, "RightZone", void 0), i([C(cc.Node)], t.prototype, "ConfirmBtn", void 0), i([C(cc.Label)], t.prototype, "ConfirmLabel", void 0), i([_], t)
            }(g.default);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "./HeadComponent": "HeadComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    FriendsItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "88b2cGXt5tKA6BExkcmSioa", "FriendsItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.FriendsItemType = void 0;
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/DataCenter"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Components/RpcComponent"),
            h = e("../../../Consts/Etc"),
            f = e("../../Components/ConfigData/ConfigDataComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("./HeadComponent"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../Panel/FriendsPanel"),
            b = e("../../Auxiliary/DataUtlity"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property;
        (function(e) {
            e[e.FriendsList = 0] = "FriendsList", e[e.AddFriendsList = 1] = "AddFriendsList", e[e.ApplyFriendsList = 2] = "ApplyFriendsList", e[e.RemoveFirendsList = 3] = "RemoveFirendsList", e[e.BlackList = 4] = "BlackList"
        })(l = n.FriendsItemType || (n.FriendsItemType = {}));
        var A = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.PlayerName = null, t.BattlePower = null, t.LoginTime = null, t.HeadRoot = null, t.BtnGive = null, t.BtnReceive = null, t.BtnNoReward = null, t.BtnApply = null, t.ApplyBtnLabel = null, t.BtnHasApply = null, t.HasApplyBtnLabel = null, t.BtnAgree = null, t.BtnRefuse = null, t.BtnDeleteFriend = null, t.DeleteFriendLabel = null, t.BtnRemoveFromBlackList = null, t.RemoveFromBListLabel = null, t.DesignationIcon = null, t._showType = l.FriendsList, t._isInit = !0, t._isGiveBusy = !1, t._isReceiveBusy = !1, t._isApplyBusy = !1, t._isAgreeBusy = !1, t._isRefuseBusy = !1, t._isDeleteBusy = !1, t._isRemoveFromBListBusy = !1, t._headItemPrefab = null, t._headItem = null, t.NeedPkBtn = !1, t
            }
            var n;
            return r(t, e), n = t, t.prototype.SetUI = function(e, t) {
                this._detailInfoData = e, this._showType = t, this._isInit && (this.LoadGlobalSetting(), this.SetStaticLocalText(), this.SetClickEvent(), this._isInit = !1), this.LoadPlayerHead(), this.SetItemBaseUI()
            }, t.prototype.SetStaticLocalText = function() {
                this.ApplyBtnLabel.string = "apply".ToUILocale(), this.HasApplyBtnLabel.string = "has_apply".ToUILocale(), this.DeleteFriendLabel.string = "delete".ToUILocale(), this.RemoveFromBListLabel.string = "remove".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.HeadRoot.on("click", this.OnBtnHeaderClick, this), this.BtnGive.node.on("click", this.OnBtnGiveClick, this), this.BtnReceive.node.on("click", this.OnBtnReceiveClick, this), this.BtnApply.node.on("click", this.OnBtnApplyClick, this), this.BtnAgree.node.on("click", this.OnBtnAgreeClick, this), this.BtnRefuse.node.on("click", this.OnBtnRefuseClick, this), this.BtnDeleteFriend.node.on("click", this.OnBtnDeleteFriendClick, this), this.BtnRemoveFromBlackList.node.on("click", this.OnBtnRemoveFromBlackList, this)
            }, t.prototype.LoadGlobalSetting = function() {
                n._friendAcceptGiftCountLimit = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendAcceptGiftCountLimit"), n._friendGiveGiftCountLimit = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendGiveGiftCountLimit")
            }, t.prototype.LoadPlayerHead = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return null != this._headItemPrefab ? [3, 2] : (e = this, [4, C.AssetsManager.Instance.LoadAsset(I.BundlePath.HeadComponent, cc.Prefab)]);
                            case 1:
                                if (e._headItemPrefab = o.sent(), !this.isValid) return C.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                o.label = 2;
                            case 2:
                                return null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(_.default), this._headItem.node.parent = this.HeadRoot), t = this._detailInfoData.HeadIcon, n = this._detailInfoData.HeadFrame, this._headItem.SetUI(t, n), this._headItem.SetLevel(this._detailInfoData.Level), this._headItem.SetCountry(this._detailInfoData.Country), [2]
                        }
                    })
                })
            }, t.prototype.SetItemBaseUI = function() {
                this.PlayerName.string = this._detailInfoData.Name, b.default.SetDesignationIcon(this._detailInfoData.Designation, this.DesignationIcon), this.BattlePower.string = this._detailInfoData.Power.toString();
                var e = d.RpcComponent.Instance.ServerTime,
                    t = this._detailInfoData.LastActiveTime,
                    n = e - t; - 1 == t ? this.LoginTime.string = "friends_state_online".ToUILocale() : n < h.Etc.MinuteDuration ? this.LoginTime.string = "last".ToUILocale() : n < 7 * h.Etc.DayDuration ? this.LoginTime.string = "time_duration_ago".ToUILocale().Fmt(n.FmtSimpleRemainTime()) : this.LoginTime.string = "more_than_week".ToUILocale()
            }, t.prototype.SetBtnState = function(e, t) {
                switch (void 0 === e && (e = 0), void 0 === t && (t = 0), this.HideAllBtn(), this._showType != l.FriendsList && (this.LoginTime.node.parent.active = !1), this._showType) {
                    case l.FriendsList:
                        this.CheckFriendListBtnState(e, t);
                        break;
                    case l.AddFriendsList:
                        this.CheckAddFriendListBtnState();
                        break;
                    case l.ApplyFriendsList:
                        this.BtnAgree.node.active = !0, this.BtnRefuse.node.active = !0, this.LoginTime.node.parent.active = !0;
                        break;
                    case l.RemoveFirendsList:
                        this.BtnDeleteFriend.node.active = !0;
                        break;
                    case l.BlackList:
                        this.LoginTime.node.parent.active = !1, this.BtnRemoveFromBlackList.node.active = !0
                }
            }, t.prototype.HideAllBtn = function() {
                this.BtnGive.node.active = !1, this.BtnReceive.node.active = !1, this.BtnNoReward.node.active = !1, this.BtnApply.node.active = !1, this.BtnHasApply.node.active = !1, this.BtnAgree.node.active = !1, this.BtnRefuse.node.active = !1, this.BtnDeleteFriend.node.active = !1, this.BtnRemoveFromBlackList.node.active = !1
            }, t.prototype.CheckFriendListBtnState = function(e, t) {
                this.IsCanReceive(e) && this._detailInfoData.CanAcceptedGift ? this.BtnReceive.node.active = !0 : this.IsCanGive(t) && !this._detailInfoData.IsGivedGift ? this.BtnGive.node.active = !0 : this.BtnNoReward.node.active = !0
            }, t.prototype.CheckAddFriendListBtnState = function() {
                this._detailInfoData.IsFriend ? this.BtnHasApply.node.active = !0 : this.BtnApply.node.active = !0
            }, t.prototype.IsCanReceive = function(e) {
                return e < n._friendAcceptGiftCountLimit || 0 == n._friendAcceptGiftCountLimit
            }, t.prototype.IsCanGive = function(e) {
                return e < n._friendGiveGiftCountLimit || 0 == n._friendGiveGiftCountLimit
            }, t.prototype.OnBtnHeaderClick = function() {
                g.UIManager.Instance.ShowUIPanel(I.PanelConfig.PlayerInfoPanel.Path, this._detailInfoData.Uid, void 0, this.NeedPkBtn)
            }, t.prototype.OnBtnGiveClick = function() {
                this._isGiveBusy || this.RequestGiveGift()
            }, t.prototype.RequestGiveGift = function() {
                this._isGiveBusy = !0;
                var e = new c.Req_Player_GiveGift;
                e.TargetUid = this._detailInfoData.Uid, d.RpcComponent.Instance.Call(e, this.ResponseGiveGiftSuccess.bind(this), this.ResponseGiveGiftFailed.bind(this))
            }, t.prototype.ResponseGiveGiftSuccess = function() {
                this._isGiveBusy = !1, y.UIUtlity.ShowFloatingHint("friends_has_give".ToUILocale()), this._detailInfoData.IsGivedGift = !0;
                var e = u.DataCenter.Instance.GetIntData(p.UserDataKey.GiveGiftCount),
                    t = u.DataCenter.Instance.GetIntData(p.UserDataKey.AcceptGiftCount);
                this.SetBtnState(t, e)
            }, t.prototype.ResponseGiveGiftFailed = function() {
                this._isGiveBusy = !1
            }, t.prototype.OnBtnReceiveClick = function() {
                this._isReceiveBusy || this.RequestReceiveGift()
            }, t.prototype.RequestReceiveGift = function() {
                this._isReceiveBusy = !0;
                var e = new c.Req_Player_AcceptGift;
                e.TargetUid = this._detailInfoData.Uid, d.RpcComponent.Instance.Call(e, this.ResponseReceiveGiftSuccess.bind(this), this.ResponseReceiveGiftFailed.bind(this))
            }, t.prototype.ResponseReceiveGiftSuccess = function(e) {
                this._isReceiveBusy = !1, this._detailInfoData.CanAcceptedGift = !1;
                var t = u.DataCenter.Instance.GetIntData(p.UserDataKey.GiveGiftCount),
                    n = u.DataCenter.Instance.GetIntData(p.UserDataKey.AcceptGiftCount);
                this.SetBtnState(n, t), v.default.needRefresh = !1, y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.ResponseReceiveGiftFailed = function() {
                this._isGiveBusy = !1
            }, t.prototype.OnBtnApplyClick = function() {
                this._isApplyBusy || this.RequestApplyFriend()
            }, t.prototype.RequestApplyFriend = function() {
                this._isApplyBusy = !0;
                var e = new c.Req_Player_ApplyFriend;
                e.TargetUid = this._detailInfoData.Uid, d.RpcComponent.Instance.Call(e, this.ResponseApplyFriendSuccess.bind(this), this.ResponseApplyFriendFailed.bind(this))
            }, t.prototype.ResponseApplyFriendSuccess = function() {
                this._isApplyBusy = !1, y.UIUtlity.ShowFloatingHint("friends_has_send_apply".ToUILocale()), this.BtnApply.node.active = !1, this.BtnHasApply.node.active = !0
            }, t.prototype.ResponseApplyFriendFailed = function() {
                this._isApplyBusy = !1
            }, t.prototype.OnBtnAgreeClick = function() {
                this._isAgreeBusy || this.RequestAgreeFriendApply()
            }, t.prototype.RequestAgreeFriendApply = function() {
                this._isAgreeBusy = !0;
                var e = new c.Req_Player_HandleFriendRequest;
                e.TargetUid = this._detailInfoData.Uid, e.IsAgree = !0, d.RpcComponent.Instance.Call(e, this.ResponseAgreeFriendApplySuccess.bind(this), this.ResponseAgreeFriendApplyFailed.bind(this))
            }, t.prototype.ResponseAgreeFriendApplySuccess = function() {
                this._isAgreeBusy = !1, y.UIUtlity.ShowFloatingHint("friends_add_success".ToUILocale()), g.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_FRIENDS_MANAGE_VIEW, 1)
            }, t.prototype.ResponseAgreeFriendApplyFailed = function() {
                this._isAgreeBusy = !1
            }, t.prototype.OnBtnRefuseClick = function() {
                this._isRefuseBusy || this.RequestRefuseFriendApply()
            }, t.prototype.RequestRefuseFriendApply = function() {
                this._isRefuseBusy = !0;
                var e = new c.Req_Player_HandleFriendRequest;
                e.TargetUid = this._detailInfoData.Uid, e.IsAgree = !1, d.RpcComponent.Instance.Call(e, this.ResponseRefuseFriendApplySuccess.bind(this), this.ResponseRefuseFriendApplyFailed.bind(this))
            }, t.prototype.ResponseRefuseFriendApplySuccess = function() {
                this._isRefuseBusy = !1, g.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_FRIENDS_MANAGE_VIEW)
            }, t.prototype.ResponseRefuseFriendApplyFailed = function() {
                this._isRefuseBusy = !1
            }, t.prototype.OnBtnDeleteFriendClick = function() {
                var e = this;
                this._isDeleteBusy || y.UIUtlity.ShowHintPanel("", "friends_delete_hint".ToUILocale(), "", null, "", function() {
                    e.RequestDeleteFirend()
                })
            }, t.prototype.RequestDeleteFirend = function() {
                this._isDeleteBusy = !0;
                var e = new c.Req_Player_RemoveFriend;
                e.TargetUid = this._detailInfoData.Uid, d.RpcComponent.Instance.Call(e, this.ResponseDeleteFriendSuccess.bind(this), this.ResponseDeleteFriendFailed.bind(this))
            }, t.prototype.ResponseDeleteFriendSuccess = function() {
                this._isDeleteBusy = !1, y.UIUtlity.ShowFloatingHint("friends_delete_success".ToUILocale()), g.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_FRIENDS_MANAGE_VIEW, -1)
            }, t.prototype.ResponseDeleteFriendFailed = function() {
                this._isDeleteBusy = !1
            }, t.prototype.OnBtnRemoveFromBlackList = function() {
                var e = this;
                this._isRemoveFromBListBusy || y.UIUtlity.ShowHintPanel("", "friends_blackList_remove_hint".ToUILocale(), "", null, "", function() {
                    e.RequestRemoveFromBlackList()
                })
            }, t.prototype.RequestRemoveFromBlackList = function() {
                this._isRemoveFromBListBusy = !0;
                var e = new c.Req_Player_RemoveBlacklist;
                e.TargetUid = this._detailInfoData.Uid, d.RpcComponent.Instance.Call(e, this.ResponseRemoveFromBlackListSuccess.bind(this), this.ResponseRemoveFromBlackListFailed.bind(this))
            }, t.prototype.ResponseRemoveFromBlackListSuccess = function() {
                this._isRemoveFromBListBusy = !1, u.DataCenter.Instance.RemoveFromMyBlackList(this._detailInfoData.Uid), y.UIUtlity.ShowFloatingHint("friends_blackList_remove_success".ToUILocale()), g.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_FRIENDS_MANAGE_VIEW)
            }, t.prototype.ResponseRemoveFromBlackListFailed = function() {
                this._isRemoveFromBListBusy = !1
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                null != this._headItemPrefab && g.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), this._headItemPrefab = null
            }, t._yellow = new cc.Color(178, 136, 80), t._green = new cc.Color(86, 143, 0), i([P(cc.Label)], t.prototype, "PlayerName", void 0), i([P(cc.Label)], t.prototype, "BattlePower", void 0), i([P(cc.Label)], t.prototype, "LoginTime", void 0), i([P(cc.Node)], t.prototype, "HeadRoot", void 0), i([P(cc.Button)], t.prototype, "BtnGive", void 0), i([P(cc.Button)], t.prototype, "BtnReceive", void 0), i([P(cc.Button)], t.prototype, "BtnNoReward", void 0), i([P(cc.Button)], t.prototype, "BtnApply", void 0), i([P(cc.Label)], t.prototype, "ApplyBtnLabel", void 0), i([P(cc.Button)], t.prototype, "BtnHasApply", void 0), i([P(cc.Label)], t.prototype, "HasApplyBtnLabel", void 0), i([P(cc.Button)], t.prototype, "BtnAgree", void 0), i([P(cc.Button)], t.prototype, "BtnRefuse", void 0), i([P(cc.Button)], t.prototype, "BtnDeleteFriend", void 0), i([P(cc.Label)], t.prototype, "DeleteFriendLabel", void 0), i([P(cc.Button)], t.prototype, "BtnRemoveFromBlackList", void 0), i([P(cc.Label)], t.prototype, "RemoveFromBListLabel", void 0), i([P(cc.Sprite)], t.prototype, "DesignationIcon", void 0), n = i([w], t)
        }(cc.Component);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/FriendsPanel": "FriendsPanel",
        "./HeadComponent": "HeadComponent"
    }],
    FriendsManagePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "45849TAP1pG8a/CTrRTRllt", "FriendsManagePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            p = e("../../../EZFramework/UIFrame/UIPanelType"),
            d = e("../../../EZFramework/EZDefine/SysDefine"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/CustomLayout"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("../../Components/RpcComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../Components/FriendsItem"),
            b = e("../Components/CustomToggle"),
            S = e("../../../Util/AppUtil"),
            w = e("../../Components/DataCenter"),
            P = e("../../RedDot/RedDotManager"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.Add = 0] = "Add", e[e.Apply = 1] = "Apply", e[e.Delete = 2] = "Delete", e[e.BlackList = 3] = "BlackList", e[e.Search = 5] = "Search"
        })(l || (l = {})),
        function(e) {
            e[e.Simple = 0] = "Simple", e[e.Complex = 1] = "Complex"
        }(c || (c = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(d.UINodeType.Fixed), t.Tittle = null, t.FriendCount = null, t.SearchEditBox = null, t.BtnCancelInput = null, t.BtnRandom = null, t.RandomBtnLabel = null, t.ContentBgNode = null, t.ScrollWidget = null, t.ViewWidget = null, t.CountWidget = null, t.FriendSearchNode = null, t.BtnSearch = null, t.ListItemScroll = null, t.Grid = null, t.FunctionToggle = [], t.EmptyStateLabel = null, t.ZoneEditBox = null, t.RuleButton = null, t.LIST_ITEM_PREFAB_PATH = "FriendsPanel/FriendsItem", t.ContentBgHeightShort = 810, t.ContentBgHeightLong = 1e3, t._friendNameNumberCountLimit = 0, t._listItemPrefab = null, t._isLayoutInit = !1, t._randomUserInfoData = [], t._searchResultData = [], t._applyUserData = null, t._deleteUserData = null, t._blackListUserData = null, t._currFunctionType = l.Add, t._currUIStyle = c.Complex, t._currFriendCount = 0, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                h.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), h.Game.EventDispatcher.On(f.EventKeys.EVENT_REFRESH_FRIENDS_MANAGE_VIEW, this.SwitchTab, this)
            }, t.prototype.onDisable = function() {
                h.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH), h.Game.EventDispatcher.Off(f.EventKeys.EVENT_REFRESH_FRIENDS_MANAGE_VIEW, this.SwitchTab)
            }, t.prototype.OnFriendDataAdd = function() {
                this.RequestUserDataByFunctionType()
            }, t.prototype.OnFriendDataRemove = function() {
                this.RequestUserDataByFunctionType()
            }, t.prototype.OnFriendDataChange = function(e) {
                for (var t in C.EZLog.Log("\u68c0\u67e5\u5230\u6570\u636e\u6539\u53d8"), e) {
                    var n = Number.parseInt(t),
                        o = w.DataCenter.Instance.GetDataById(m.UserFriend_Model, n);
                    if (o.Status != e[t].Status || o.FriendApplication != e[t].FriendApplication || o.BlackList != e[t].BlackList) {
                        this.RequestUserDataByFunctionType();
                        break
                    }
                }
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.LIST_ITEM_PREFAB_PATH, cc.Prefab)];
                            case 1:
                                return t._listItemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.SetStaticLocalText = function() {
                this.SearchEditBox.placeholder = "friends_editbox_hint".ToUILocale(), this.ZoneEditBox.placeholder = "friend_zone".ToUILocale(), this.RandomBtnLabel.string = "friends_random".ToUILocale(), this.FunctionToggle[l.Add].Init("friends_manage_add".ToUILocale()), this.FunctionToggle[l.Apply].Init("friends_manage_apply".ToUILocale()), this.FunctionToggle[l.Delete].Init("friends_manage_delele".ToUILocale()), this.FunctionToggle[l.BlackList].Init("friends_manage_blackList".ToUILocale())
            }, t.prototype.SetClickEvent = function() {
                this.BtnRandom.node.on("click", this.OnBtnRandomClick, this), this.BtnCancelInput.node.on("click", this.OnBtnCancelInputClick, this), this.SearchEditBox.node.on("text-changed", this.OnEditBoxTextChange, this), this.BtnSearch.node.on("click", this.OnSearchBtnClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this);
                for (var e = 0; e < this.FunctionToggle.length; e++) this.FunctionToggle[e].node.on("toggle", this.OnFunctionToggleSwitch, this)
            }, t.prototype.OnFunctionToggleSwitch = function(e) {
                var t = S.AppUtil.ToInt(e.node.name);
                t != this._currFunctionType && (this._currFunctionType = t, this.SwitchTab())
            }, t.prototype.SwitchTab = function(e) {
                switch (void 0 === e && (e = 0), this.ListItemScroll.node.active = !1, this.SetTittle(), this.CleanEditBox(), this._currFriendCount += e, this.ShowActivityUI(), this.FriendCount.node.active = !0, this._currFunctionType) {
                    case l.Add:
                        this._currUIStyle = c.Complex, this._randomUserInfoData.length > 0 && (this.ListItemScroll.node.active = !0, this.RenderLayout(this._randomUserInfoData.length), this.ShowEmptyStateLabel(!1)), this.BtnRandom.node.active = !0;
                        break;
                    case l.Apply:
                        this._currUIStyle = c.Simple, this.RequestApplyUserData();
                        break;
                    case l.Delete:
                        this._currUIStyle = c.Simple, this.RequestDeleteUserData();
                        break;
                    case l.BlackList:
                        this._currUIStyle = c.Simple, this.RequestBlackListUserData()
                }
                this.SetUIByStyle()
            }, t.prototype.RequestUserDataByFunctionType = function() {
                switch (this._currFunctionType) {
                    case l.Add:
                        this.RenderLayout(this._randomUserInfoData.length);
                        break;
                    case l.Search:
                        this.RenderLayout(this._searchResultData.length)
                }
                this.RequestApplyUserData(), this.RequestDeleteUserData(), this.RequestBlackListUserData()
            }, t.prototype.ShowActivityUI = function() {
                this.FriendCount.string = "friends_friendsCount".ToUILocale().Fmt(this._currFriendCount, n._friendsCountLimit)
            }, t.prototype.ShowBlackListCount = function() {
                this.FriendCount.node.active = !0, this.FriendCount.string = "friends_blackListCount".ToUILocale().Fmt(this._blackListUserData.length, n._blackListCountLimit)
            }, t.prototype.InitData = function(e) {
                this._currFriendCount = e[0]
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this.ResetToggle(), this.ResetUIStyle(), this.ShowEmptyStateLabel(!1), this.LoadGlobalSetting()
            }, t.prototype.ResetToggle = function() {
                this._currFunctionType = l.Add, this.FunctionToggle[this._currFunctionType].isChecked = !0
            }, t.prototype.ResetUIStyle = function() {
                this._currUIStyle = c.Complex, this.SetUIByStyle()
            }, t.prototype.SetUIByStyle = function() {
                this._currUIStyle == c.Complex ? (this.BtnRandom.node.active = !0, this.FriendSearchNode.active = !0, this.ContentBgNode.height = this.ContentBgHeightShort) : (this.BtnRandom.node.active = !1, this.FriendSearchNode.active = !1, this.ContentBgNode.height = this.ContentBgHeightLong), this.ScrollWidget.updateAlignment(), this.ViewWidget.updateAlignment(), this.CountWidget.updateAlignment()
            }, t.prototype.LoadGlobalSetting = function() {
                n._friendSearchInputMinCh = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("PlayerRoleNameMinChars"), n._friendSearchInputMaxCh = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("PlayerRoleNameMaxChars"), n._blackListCountLimit = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendBlackListCountLimit"), n._friendsCountLimit = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendsMaxCount"), this._friendNameNumberCountLimit = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendNameNumberCount")
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.BindRedDotUI(), this.InitCustomLayout(), this.SetBtnState(), this._currFunctionType != l.BlackList ? this.ShowActivityUI() : this.ShowBlackListCount(), this._currFunctionType == l.Add && this.RequestRandmonUserData(), this.SetTittle()
            }, t.prototype.BindRedDotUI = function() {
                P.RedDotManager.Instance.Bind(this.FunctionToggle[l.Apply].node, P.RedDotManager.Instance.RedDot.FriendApplyToggleNode, 0, 0)
            }, t.prototype.SetTittle = function() {
                switch (this._currFunctionType) {
                    case l.Add:
                        this.Tittle.string = "friends_manage_add".ToUILocale();
                        break;
                    case l.Apply:
                        this.Tittle.string = "friends_manage_apply".ToUILocale();
                        break;
                    case l.Delete:
                        this.Tittle.string = "friends_manage_delele".ToUILocale();
                        break;
                    case l.BlackList:
                        this.Tittle.string = "friends_manage_blackList".ToUILocale()
                }
            }, t.prototype.SetBtnState = function() {
                this.BtnCancelInput.node.active = !1
            }, t.prototype.RequestRandmonUserData = function() {
                if (this._randomUserInfoData.length > 0) this.ListItemScroll.node.active = !0, this.RenderLayout(this._randomUserInfoData.length);
                else {
                    var e = new m.Req_Player_SearchUser;
                    I.RpcComponent.Instance.Call(e, this.ResponseRandomUserData.bind(this), this.ResponseFailed.bind(this))
                }
            }, t.prototype.ResponseRandomUserData = function(e) {
                this._randomUserInfoData = e.Users, this._currFunctionType == l.Add && (e.Users.length > 0 ? (this.SortDataListByLoginTime(this._randomUserInfoData), this.ListItemScroll.node.active = !0, this.RenderLayout(this._randomUserInfoData.length), this.ShowEmptyStateLabel(!1)) : (_.UIUtlity.ShowFloatingHint("friends_random_result_empty".ToUILocale()), this.ListItemScroll.node.active = !1, this.ShowEmptyStateLabel(!0)))
            }, t.prototype.SortDataListByLoginTime = function(e, t) {
                void 0 === t && (t = !0), e.sort(function(e, n) {
                    return -1 == e.LastActiveTime && -1 != n.LastActiveTime ? t ? 1 : -1 : -1 != e.LastActiveTime && -1 == n.LastActiveTime ? t ? 1 : -1 : e.LastActiveTime < n.LastActiveTime ? t ? 1 : -1 : e.LastActiveTime > n.LastActiveTime ? t ? -1 : 1 : 0
                })
            }, t.prototype.InitCustomLayout = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._listItemPrefab, !1)), this.ListItemScroll.scrollToTop(), [2]
                    })
                })
            }, t.prototype.RenderLayout = function(e) {
                var t = this;
                this._currScrollOffset = this.ListItemScroll.getScrollOffset(), e > 0 && (this.ListItemScroll.node.active = !0), this.Grid.RenderLayOut(e), setTimeout(function() {
                    t.ListItemScroll.scrollToOffset(t._currScrollOffset)
                }, 50)
            }, t.prototype.ResponseFailed = function() {}, t.prototype.OnSearchBtnClick = function() {
                var e = this.ZoneEditBox.string,
                    t = this.SearchEditBox.string;
                if (t.length < n._friendSearchInputMinCh) _.UIUtlity.ShowFloatingHint("friends_search_name_too_short".ToUILocale().Fmt(n._friendSearchInputMinCh));
                else {
                    if (/^\d+$/.test(t)) {
                        if (t.length > this._friendNameNumberCountLimit) return void _.UIUtlity.ShowFloatingHint("friend_name_number_limit".ToUILocale().Fmt(this._friendNameNumberCountLimit))
                    } else if (t.length > n._friendSearchInputMaxCh) return void _.UIUtlity.ShowFloatingHint("friends_search_name_too_long".ToUILocale().Fmt(n._friendSearchInputMaxCh));
                    this._currFunctionType = l.Search, this.ShowEmptyStateLabel(!1), this.RequestSearchUser(t, e)
                }
            }, t.prototype.OnRuleButtonClick = function() {
                _.UIUtlity.ShowHintPanel("", "friend_zone_rule".ToUILocale(), "", null, "", null)
            }, t.prototype.RequestSearchUser = function(e, t) {
                var n;
                t.length > 0 && /^\d+$/.test(t) && (n = parseInt(t));
                var o = new m.Req_Player_SearchUser;
                o.Name = e, n > 0 && (o.Zone = n), I.RpcComponent.Instance.Call(o, this.ResponseSearchUser.bind(this), this.ResponseFailed.bind(this))
            }, t.prototype.ResponseSearchUser = function(e) {
                this._searchResultData = e.Users, this._currFunctionType == l.Search && (e.Users.length > 0 ? (this.SortDataListByLoginTime(this._searchResultData), this.ListItemScroll.node.active = !0, this.RenderLayout(this._searchResultData.length), this.ShowEmptyStateLabel(!1)) : (_.UIUtlity.ShowFloatingHint("friends_search_result_empty".ToUILocale()), this.ListItemScroll.node.active = !1, this.ShowEmptyStateLabel(!0)), this.BtnRandom.node.active = !1)
            }, t.prototype.RequestApplyUserData = function() {
                var e = new m.Req_Player_GetFriendRequests;
                I.RpcComponent.Instance.Call(e, this.ResponseApplyUserData.bind(this), this.ResponseFailed.bind(this))
            }, t.prototype.ResponseApplyUserData = function(e) {
                this._applyUserData = e.Users, this._currFunctionType == l.Apply && (e.Users.length > 0 ? (this.SortDataListByLoginTime(this._applyUserData), this.ListItemScroll.node.active = !0, this.RenderLayout(this._applyUserData.length), this.ShowEmptyStateLabel(!1)) : (this.ListItemScroll.node.active = !1, this.ShowEmptyStateLabel(!0)))
            }, t.prototype.RequestDeleteUserData = function() {
                var e = new m.Req_Player_GetFriendList;
                I.RpcComponent.Instance.Call(e, this.ResponseDeleteUserData.bind(this))
            }, t.prototype.ResponseDeleteUserData = function(e) {
                this._deleteUserData = e.Users, this._currFunctionType == l.Delete && (e.Users.length > 0 ? (this.SortDataListByLoginTime(this._deleteUserData, !1), this.ListItemScroll.node.active = !0, this.RenderLayout(this._deleteUserData.length), this.ShowEmptyStateLabel(!1)) : (this.ListItemScroll.node.active = !1, this.ShowEmptyStateLabel(!0)))
            }, t.prototype.RequestBlackListUserData = function() {
                var e = new m.Req_Player_GetBlacklist;
                I.RpcComponent.Instance.Call(e, this.ResponseBlackListUserData.bind(this), this.ResponseFailed.bind(this))
            }, t.prototype.ResponseBlackListUserData = function(e) {
                this._blackListUserData = e.Users, this._currFunctionType == l.BlackList && (e.Users.length > 0 ? (this.ListItemScroll.node.active = !0, this.RenderLayout(this._blackListUserData.length), this.ShowEmptyStateLabel(!1)) : (this.ListItemScroll.node.active = !1, this.ShowEmptyStateLabel(!0)), this.ShowBlackListCount())
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                this.Grid == t && e.forEach(function(e, t) {
                    var o = e.getComponent(v.default);
                    switch (n._currFunctionType) {
                        case l.Add:
                            o.SetUI(n._randomUserInfoData[t], v.FriendsItemType.AddFriendsList);
                            break;
                        case l.Apply:
                            o.SetUI(n._applyUserData[t], v.FriendsItemType.ApplyFriendsList);
                            break;
                        case l.Delete:
                            o.SetUI(n._deleteUserData[t], v.FriendsItemType.RemoveFirendsList);
                            break;
                        case l.BlackList:
                            o.SetUI(n._blackListUserData[t], v.FriendsItemType.BlackList);
                            break;
                        case l.Search:
                            o.SetUI(n._searchResultData[t], v.FriendsItemType.AddFriendsList)
                    }
                    o.SetBtnState()
                })
            }, t.prototype.ShowEmptyStateLabel = function(e) {
                if (e) switch (this.EmptyStateLabel.node.active = !0, this._currFunctionType) {
                    case l.Add:
                        this.EmptyStateLabel.string = "friends_random_result_empty".ToUILocale();
                        break;
                    case l.Apply:
                        this.EmptyStateLabel.string = "friends_no_apply".ToUILocale();
                        break;
                    case l.Delete:
                        this.EmptyStateLabel.string = "friends_delete_list_empty".ToUILocale();
                        break;
                    case l.BlackList:
                        this.EmptyStateLabel.string = "friends_blackList_list_empty".ToUILocale();
                        break;
                    case l.Search:
                        this.EmptyStateLabel.string = "friends_search_result_empty".ToUILocale()
                } else this.EmptyStateLabel.node.active = !1
            }, t.prototype.OnEditBoxTextChange = function() {
                this.SearchEditBox.string.length > 0 ? this.BtnCancelInput.node.active = !0 : this.BtnCancelInput.node.active = !1
            }, t.prototype.OnBtnCancelInputClick = function() {
                this.CleanEditBox(), this._currFunctionType = l.Add, this.SwitchTab()
            }, t.prototype.CleanEditBox = function() {
                this.SearchEditBox.string = "", this.BtnCancelInput.node.active = !1
            }, t.prototype.OnBtnRandomClick = function() {
                this._currFunctionType = l.Add, this._randomUserInfoData = [], this.RequestRandmonUserData()
            }, t._friendSearchInputMinCh = 0, t._friendSearchInputMaxCh = 0, t._friendsCountLimit = 0, t._friendGiftCountLimit = 0, t._blackListCountLimit = 0, i([R(cc.Label)], t.prototype, "Tittle", void 0), i([R(cc.RichText)], t.prototype, "FriendCount", void 0), i([R(cc.EditBox)], t.prototype, "SearchEditBox", void 0), i([R(cc.Button)], t.prototype, "BtnCancelInput", void 0), i([R(cc.Button)], t.prototype, "BtnRandom", void 0), i([R(cc.Label)], t.prototype, "RandomBtnLabel", void 0), i([R(cc.Node)], t.prototype, "ContentBgNode", void 0), i([R(cc.Widget)], t.prototype, "ScrollWidget", void 0), i([R(cc.Widget)], t.prototype, "ViewWidget", void 0), i([R(cc.Widget)], t.prototype, "CountWidget", void 0), i([R(cc.Node)], t.prototype, "FriendSearchNode", void 0), i([R(cc.Button)], t.prototype, "BtnSearch", void 0), i([R(cc.ScrollView)], t.prototype, "ListItemScroll", void 0), i([R(y.default)], t.prototype, "Grid", void 0), i([R(b.default)], t.prototype, "FunctionToggle", void 0), i([R(cc.Label)], t.prototype, "EmptyStateLabel", void 0), i([R(cc.EditBox)], t.prototype, "ZoneEditBox", void 0), i([R(cc.Button)], t.prototype, "RuleButton", void 0), n = i([T], t)
        }(u.BaseUIPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/FriendsItem": "FriendsItem"
    }],
    FriendsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e0686V3rLBHH4fODpiy3YUf", "FriendsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../Components/CustomLayout"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Components/DataCenter"),
            m = e("../Components/FriendsItem"),
            I = e("../../Components/RpcComponent"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../Components/ConfigData/ConfigDataComponent"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = e("../../RedDot/RedDotManager"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Fixed), t.Tittle = null, t.FriendCount = null, t.TodayReceiveTag = null, t.TodayReceiveCount = null, t.BtnFriendsManage = null, t.FriendsManageBtnLabel = null, t.BtnOneKey = null, t.BtnRule = null, t.OneKeyBtnLabel = null, t.FriendsItemScroll = null, t.Grid = null, t.EmptyStateLabel = null, t.LIST_ITEM_PREFAB_PATH = "FriendsPanel/FriendsItem", t._listItemPrefab = null, t._isLayoutInit = !1, t._friendUserData = [], t._todayGiveCount = 0, t._todayReceiveCount = 0, t._isTop = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onDisable = function() {
                    this.UnRegistCustomLayoutEvent()
                }, t.prototype.RegistCustomLayoutEvent = function() {
                    h.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH), h.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.UnRegistCustomLayoutEvent = function() {
                    h.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.LIST_ITEM_PREFAB_PATH, cc.Prefab)];
                                case 1:
                                    return t._listItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "friends_tittle".ToUILocale(), this.FriendsManageBtnLabel.string = "friends_manage".ToUILocale(), this.OneKeyBtnLabel.string = "friends_oneKey".ToUILocale(), this.EmptyStateLabel.string = "friends_no_friends".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnFriendsManage.node.on("click", this.OnManageBtnClick, this), this.BtnOneKey.node.on("click", this.OnOneKeyBtnClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this)
                }, t.prototype.OnManageBtnClick = function() {
                    this._isTop = !1, h.UIManager.Instance.ShowUIPanel(v.PanelConfig.FriendsManagePanel.Path, this._friendUserData.length)
                }, t.prototype.OnOneKeyBtnClick = function() {
                    this.RequestOneKeyGift()
                }, t.prototype.RequestOneKeyGift = function() {
                    if (this._friendUserData.length <= 0) y.UIUtlity.ShowFloatingHint("friends_oneKey_no_friends".ToUILocale());
                    else {
                        this.ReloadReceiveCount();
                        for (var e = [], t = [], o = 0; o < this._friendUserData.length; o++) !this._friendUserData[o].IsGivedGift && this._todayGiveCount + e.length + 1 <= n._friendGiveGiftCountLimit && e.push(this._friendUserData[o].Uid), this._friendUserData[o].CanAcceptedGift && this._todayReceiveCount + t.length + 1 <= n._friendAcceptGiftCountLimit && t.push(this._friendUserData[o].Uid);
                        if (this._todayReceiveCount < n._friendAcceptGiftCountLimit) {
                            if (t.length <= 0) {
                                if (!(e.length > 0 && this._todayGiveCount < n._friendGiveGiftCountLimit)) return void y.UIUtlity.ShowFloatingHint("friends_oneKey_no_gift".ToUILocale());
                                y.UIUtlity.ShowFloatingHint("friends_has_give".ToUILocale())
                            }
                        } else {
                            if (!(e.length > 0 && this._todayGiveCount < n._friendGiveGiftCountLimit)) return void y.UIUtlity.ShowFloatingHint("error_hint_content_code_2013".ToUILocale());
                            y.UIUtlity.ShowFloatingHint("friends_has_give".ToUILocale())
                        }
                        var r = new p.Req_Player_GiveAndReceiveGifts;
                        r.GiveUids = e, r.AcceptUids = t, I.RpcComponent.Instance.Call(r, this.ResponseOnKeyGift.bind(this), this.ResponseFailed.bind(this))
                    }
                }, t.prototype.ResponseOnKeyGift = function(e) {
                    e.Rewards.length > 0 && y.UIUtlity.ShwDisplayRewardPanel(e.Rewards);
                    for (var t = new Map, o = 0; o < this._friendUserData.length; o++) t.set(this._friendUserData[o].Uid, this._friendUserData[o]);
                    if (e.Changes.length <= 0) y.UIUtlity.ShowFloatingHint("friends_oneKey_fail".ToUILocale());
                    else {
                        for (o = 0; o < e.Changes.length; o++)
                            if (t.has(e.Changes[o].Uid)) {
                                var r = t.get(e.Changes[o].Uid);
                                r.CanAcceptedGift = e.Changes[o].CanAcceptedGift, r.IsGivedGift = e.Changes[o].IsGivedGift
                            } n.needRefresh = !1, this.RequestFriendData()
                    }
                }, t.prototype.InitData = function() {}, t.prototype.ResetPanelState = function() {
                    this.LoadGlobalSetting()
                }, t.prototype.LoadGlobalSetting = function() {
                    n._friendsCountLimit = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendsMaxCount"), n._friendAcceptGiftCountLimit = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendAcceptGiftCountLimit"), n._friendGiveGiftCountLimit = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendGiveGiftCountLimit")
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._isTop = !0, this.Grid.enabled = !1, this.EmptyStateLabel.node.active = !1, this.BindRedDotUI(), this.RequestFriendData()
                }, t.prototype.RefreshTodayReceiveLabel = function() {
                    this.ReloadReceiveCount(), this.TodayReceiveCount.string = "friends_today_receive_count".ToUILocale().Fmt(this._todayReceiveCount, n._friendAcceptGiftCountLimit)
                }, t.prototype.BindRedDotUI = function() {
                    b.RedDotManager.Instance.Bind(this.BtnOneKey.node, b.RedDotManager.Instance.RedDot.FriendOneKeyBtnNode, 0, 0), b.RedDotManager.Instance.Bind(this.BtnFriendsManage.node, b.RedDotManager.Instance.RedDot.FriendManageBtnNode, 0, 0)
                }, t.prototype.RefreshGiftState = function() {
                    this.RequestFriendData(), this.SortFriendList(), this.Grid.RenderLayOut(this._friendUserData.length)
                }, t.prototype.ReloadReceiveCount = function() {
                    this._todayGiveCount = g.DataCenter.Instance.GetIntData(_.UserDataKey.GiveGiftCount), this._todayReceiveCount = g.DataCenter.Instance.GetIntData(_.UserDataKey.AcceptGiftCount)
                }, t.prototype.RequestFriendData = function() {
                    this.ReloadReceiveCount();
                    var e = new p.Req_Player_GetFriendList;
                    I.RpcComponent.Instance.Call(e, this.ResponseFriendData.bind(this))
                }, t.prototype.ResponseFriendData = function(e) {
                    this._friendUserData = [];
                    for (var t = 0; t < e.Users.length; t++) this._friendUserData.push(e.Users[t]);
                    this._friendUserData.length > 0 ? this.EmptyStateLabel.node.active = !1 : this.EmptyStateLabel.node.active = !0, this.Grid.enabled = !0, this.RegistCustomLayoutEvent(), this.SortFriendList(), this.InitCustomLayout(), this.ShowActivityUI()
                }, t.prototype.SortFriendList = function() {
                    this._friendUserData.sort(function(e, t) {
                        return -1 == e.LastActiveTime && -1 != t.LastActiveTime ? -1 : -1 != e.LastActiveTime && -1 == t.LastActiveTime ? 1 : e.LastActiveTime < t.LastActiveTime ? 1 : e.LastActiveTime > t.LastActiveTime ? -1 : 0
                    })
                }, t.prototype.ResponseFailed = function() {}, t.prototype.InitCustomLayout = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._listItemPrefab, !1)), this.RenderLayout(), [2]
                        })
                    })
                }, t.prototype.RenderLayout = function() {
                    this.FriendsItemScroll.scrollToTop(), this.Grid.RenderLayOut(this._friendUserData.length)
                }, t.prototype.ShowActivityUI = function() {
                    this.FriendCount.string = "friends_friendsCount".ToUILocale().Fmt(this._friendUserData.length, n._friendsCountLimit), this.TodayReceiveTag.string = "friends_today_receive_count".ToUILocale(), this.TodayReceiveCount.string = "{0}/{1}".Fmt(this._todayReceiveCount, n._friendAcceptGiftCountLimit)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.Grid == t && e.forEach(function(e, t) {
                        var o = e.getComponent(m.default);
                        o.NeedPkBtn = !0, o.node.name = t.toString();
                        var r = n._friendUserData[t];
                        o.SetUI(r, m.FriendsItemType.FriendsList), o.SetBtnState(n._todayReceiveCount, n._todayGiveCount)
                    })
                }, t.prototype.RefreshVisbleItem = function() {
                    for (var e = 0; e < this.Grid.node.children.length; e++) {
                        var t = this.Grid.node.children[e],
                            n = t.getComponent(m.default),
                            o = this._friendUserData[Number.parseInt(t.name)];
                        n.SetUI(o, m.FriendsItemType.FriendsList), n.SetBtnState(this._todayReceiveCount, this._todayGiveCount)
                    }
                }, t.prototype.OnBtnRuleClick = function() {
                    var e = {
                        name: "friends_rule_maintittle".ToUILocale(),
                        titles: ["friends_rule_subtittle".ToUILocale()],
                        contents: ["friends_rule_text".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.needRefresh = !0, t._friendsCountLimit = 0, i([P(cc.Label)], t.prototype, "Tittle", void 0), i([P(cc.RichText)], t.prototype, "FriendCount", void 0), i([P(cc.Label)], t.prototype, "TodayReceiveTag", void 0), i([P(cc.Label)], t.prototype, "TodayReceiveCount", void 0), i([P(cc.Button)], t.prototype, "BtnFriendsManage", void 0), i([P(cc.Label)], t.prototype, "FriendsManageBtnLabel", void 0), i([P(cc.Button)], t.prototype, "BtnOneKey", void 0), i([P(cc.Button)], t.prototype, "BtnRule", void 0), i([P(cc.Label)], t.prototype, "OneKeyBtnLabel", void 0), i([P(cc.ScrollView)], t.prototype, "FriendsItemScroll", void 0), i([P(d.default)], t.prototype, "Grid", void 0), i([P(cc.Label)], t.prototype, "EmptyStateLabel", void 0), n = i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/FriendsItem": "FriendsItem"
    }],
    FutureMapLevelInfo: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "df2d1lhVNRM8ZR1AxLqPNDI", "FutureMapLevelInfo");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.MapNames = [], t.BattlePowers = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.Title.string = "saintsWar_mapName_feature".ToUILocale().Fmt(("saintsWar_mapName_" + t).ToUILocale());
                    for (var n = 0; n < e.length; n++) {
                        var o = s.ConfigDataComponent.Instance.GetConfigById(a.MapBase_Config, e[n]);
                        this.MapNames[n].string = o.Id.ToMapName(), this.BattlePowers[n].string = o.BattlePower.toString()
                    }
                }, i([u(cc.Label)], t.prototype, "Title", void 0), i([u(cc.Label)], t.prototype, "MapNames", void 0), i([u(cc.Label)], t.prototype, "BattlePowers", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components"
    }],
    G123Action: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "52760rBTkdBMaf12d0O/F2e", "G123Action");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/DataCenter"),
            s = e("../../Consts/Consts"),
            l = e("../Components/Components"),
            c = e("../../../Proto/Static/ConfigProto"),
            u = e("./ChannelManager"),
            p = e("../Auxiliary/DataUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = (d.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.PostMessage = function(e, t, n) {
                    var o = {
                            diamond: a.DataCenter.Instance.GetItemCount(s.CommonItemId.Diamond).toString(),
                            coin: a.DataCenter.Instance.GetItemCount(s.CommonItemId.Coin).toString()
                        },
                        r = a.DataCenter.Zone,
                        i = {
                            reg_server_id: r.toString(),
                            battle_power: a.DataCenter.Instance.GetIntData(s.UserDataKey.Power).toString()
                        },
                        d = {
                            id: a.DataCenter.Instance.Uid.toString(),
                            level: a.DataCenter.Instance.GetIntData(s.UserDataKey.PlayerLevel).toString(),
                            exp: a.DataCenter.Instance.GetItemCount(s.CommonItemId.Xp).toString(),
                            vip_level: a.DataCenter.Instance.GetIntData(s.UserDataKey.VipLevel).toString(),
                            vip_exp: a.DataCenter.Instance.GetItemCount(s.CommonItemId.VipPoint).toString(),
                            virtual_balance: o,
                            custom: i
                        },
                        h = {
                            id: "",
                            type: "",
                            name: "",
                            count: "",
                            price: "",
                            balance: "",
                            desc: "",
                            content: "",
                            referer: "",
                            payment_type: "",
                            custom: {}
                        },
                        f = l.GlobalConfigComponent.Instance.ServerAddress.lastIndexOf("/"),
                        y = l.GlobalConfigComponent.Instance.ServerAddress.lastIndexOf(":"),
                        g = {
                            physical_server: l.GlobalConfigComponent.Instance.ServerAddress.substring(f + 1, y)
                        };
                    switch (e) {
                        case u.ActionType.MapMileStone:
                            var m = p.default.Instance.GetMapChapterInfo(t);
                            g.milestone = {
                                name: "MapProgress:" + m[0] + "-" + m[1]
                            }, e = "g_milestone";
                            break;
                        case u.ActionType.PayRequest:
                        case u.ActionType.PayEnd:
                            if (t > 0)
                                if (n) {
                                    var I = p.default.GetGiftPack(n, t);
                                    I && (h.id = n.toString() + t.toString(), h.name = I.Name, h.type = "GameActivity", "" == I.PayId ? (h.price = I.Money.toString(), h.payment_type = "Diamond") : (h.price = I.PayId, h.payment_type = "Currency"))
                                } else {
                                    var _ = l.ConfigDataComponent.Instance.GetConfigById(c.GiftPack_Config, t);
                                    _ && (h.id = t.toString(), h.type = "GameFunction", h.name = t.ToGiftPackName(), "" == _.PayId ? (h.price = _.Money.toString(), h.payment_type = "Diamond") : (h.price = _.PayId, h.payment_type = "Currency"))
                                }
                            else {
                                var C = Math.abs(t),
                                    v = a.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts")[C];
                                v && (h.type = "gift", h.id = v.GiftId.toString(), h.price = u.default.Instance.ExchangeMoney(v.Money).toString(), h.payment_type = u.default.Instance.Localization_Currency, h.name = l.ConfigDataComponent.Instance.GetLocale("locale_server_popup_gift_name"))
                            }
                    }
                    var b = {
                            game_server_id: r.toString(),
                            game_user_id: a.DataCenter.Instance.Uid.toString(),
                            role: d,
                            item: h,
                            custom: g
                        },
                        S = {
                            version: this.ActionVersion,
                            action: e,
                            data: b
                        };
                    window.top.postMessage(JSON.stringify(S), "*")
                }, t.PostCustomMessage = function(e, t) {
                    var n = {
                        version: this.ActionVersion,
                        action: e,
                        data: {
                            custom: {
                                message: t
                            }
                        }
                    };
                    window.top.postMessage(JSON.stringify(n), "*")
                }, t.ActionVersion = "v2", i([h], t)
            }(cc.Component));
        n.default = f, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Consts/Consts": "Consts",
        "../Auxiliary/DataUtlity": "DataUtlity",
        "../Components/Components": "Components",
        "../Components/DataCenter": "DataCenter",
        "./ChannelManager": "ChannelManager"
    }],
    GameDataChecker: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8ceb5P9u2JNGI9VA73PrBQ/", "GameDataChecker");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../EZFramework/EZFramework"),
            s = e("../../EZFramework/EZFramework"),
            l = e("../Components/Components"),
            c = e("../../Consts/Consts"),
            u = e("../../../Proto/Static/ConfigProto"),
            p = e("./EventKeys"),
            d = e("../Components/Components"),
            h = e("../../../Proto/Static/RpcProto"),
            f = e("./GlobalDefine"),
            y = e("../UI/Auxiliary/UIUtlity"),
            g = e("./GuideManager"),
            m = e("./DataUtlity"),
            I = e("../UI/Battle/BattleManager"),
            _ = e("../UI/Panel/HeroTestPanel"),
            C = e("../UI/Panel/AllianceTestPanel"),
            v = e("../../Consts/Consts"),
            b = e("./GameRecord"),
            S = e("../UI/Panel/SeniorArenaChallengeConfirmPanel"),
            w = e("./ModuleGuideManager"),
            P = e("../RedDot/RedDotDataHandler"),
            A = e("../../Util/TimeUtil"),
            T = e("../UI/Panel/CrossServerRankPanel"),
            R = e("../UI/Panel/SummonActivityListPanel"),
            L = e("../UI/Panel/SecretJourneyPanel"),
            k = e("../UI/Panel/ContinuousFightPanel"),
            O = e("../UI/Panel/SaintsWarChallengePanel"),
            M = e("../UI/Panel/RecommendedGiftPackPanel"),
            D = e("../UI/Panel/OldPlayerRecallPanel"),
            B = e("../UI/Panel/CommonRenewPanel"),
            N = e("../UI/Panel/WarTokenListPanel"),
            E = e("../UI/Panel/BreakOutMatchPanel"),
            U = e("../UI/Panel/CrossServerPortPanel"),
            G = e("../UI/Panel/CrossServerChampionStartPanel"),
            x = cc._decorator,
            H = x.ccclass,
            F = (x.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._isReqSids = {}, t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return null === this._instance && (this._instance = cc.find(s.SysDefine.SYS_SCRIPTNODE).addComponent(this)), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.SetChangeFrontNeedRefreshId = function(e, t) {
                    this._changeFrontNeedRefresh || (this._changeFrontNeedRefresh = {}), this._changeFrontNeedRefresh[e] = t
                }, t.prototype.onEnable = function() {
                    cc.game.on(cc.game.EVENT_SHOW, this.ChangeFront, this)
                }, t.prototype.onDisable = function() {
                    cc.game.off(cc.game.EVENT_SHOW, this.ChangeFront, this)
                }, t.prototype.ChangeFront = function() {
                    if (this._changeFrontNeedRefresh)
                        for (var e in this._changeFrontNeedRefresh) switch (parseInt(e)) {
                            case 18:
                                this._changeFrontNeedRefresh[e] && (this.SetChangeFrontNeedRefreshId(18, !1), this.TriggerGiftCheck())
                        }
                }, t.prototype.Init = function() {
                    this.StartCheck()
                }, t.prototype.StartCheck = function() {
                    this.UnSettlementBattleCheck(), g.default.Instance.IsInGuide || (this.CheckDailyBuff(), this.CheckAnnouncements(), this.CheckADs(), this.ChechArtifactNotice(), this.CheckActivitySinglePage(), this.CheckCustomGiftPack(), this.CheckReturnWelfare(), this.LimitPurchseCheck(), this.CheckPopupGift(), this.RequestTriggerStart(), this.InfiniteCheck(), this.LetterDeveloperCheck(), this.CheckEightDays(), this.AngelDataCheckUnlock(), this.CheckOldPlayerRecallGift(), this.CheckRenewTip(), this.CheckNewYearWeapon(), this.CheckChampionShipResultTip(), this.CheckAllianceWarResultTip())
                }, t.prototype.IdleStartCheck = function() {
                    this.LimitPurchseCheck(), this.InfiniteCheck(), this.LetterDeveloperCheck()
                }, t.prototype.FeedBackCheck = function() {
                    var e = this,
                        t = l.DataCenter.Instance.GetIntData(c.UserDataKey.FeedbackGiftStartTime);
                    if (m.default.Instance.IsGameModuleUnlock(c.GameModuleType.FeedbackGift)[0] && t > 0) {
                        var n = new h.Req_Feedback_Enter;
                        l.RpcComponent.Instance.Call(n, function(n) {
                            if (e.IsHideFeedBack(n.Receive)) a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 19, -1);
                            else {
                                var o = l.ConfigDataComponent.Instance.GetGlobalSettingByKey("FeedbackGiftDurationTime") * c.Etc.DayDuration;
                                t > 0 && l.RpcComponent.Instance.ServerTime < t + o && (a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 19, t + o), setTimeout(function() {
                                    a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 19)
                                }, t + o - l.RpcComponent.Instance.ServerTime))
                            }
                        })
                    }
                }, t.prototype.CheckGameModules = function() {
                    var e = w.default.instance.GetHasUnLockModuleGuide(),
                        t = d.DataCenter.Instance.GetArrayData(v.UserDataKey.GameModuleGuide),
                        n = [];
                    if (e.forEach(function(e) {
                            t.includes(e) || n.push(e)
                        }), n.length > 0) {
                        var o = new h.Req_Player_CompleteGameModuleGuide;
                        o.Ids = n, d.RpcComponent.Instance.Call(o, function() {
                            a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_REFRESH_GUIDE_MODULE)
                        })
                    }
                }, t.prototype.CheckEightDays = function(e) {
                    void 0 === e && (e = !1);
                    var t = -1;
                    if (m.default.Instance.IsGameModuleUnlock(c.GameModuleType.Activity)[0])
                        for (var n in d.DataCenter.Instance.ActivityConfigs) {
                            var o = d.DataCenter.Instance.ActivityConfigs[n];
                            if (o.Common.Type == c.ActivityType.EightDays) {
                                var r = d.DataCenter.Instance.GetDataById(h.UserActivity_Model, o._id);
                                if (r.IntArray[0] >= 8 && r.IntArray[1] >= 8) return;
                                var i = b.default.GetItem(b.GameRecordDefine.EightDaysTip);
                                (null == i || A.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime) != A.TimeUtil.Get0ClockTs(parseInt(i))) && (t = o._id, 0 == e && a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.EightDaysPanel.Path, o._id));
                                break
                            }
                        }
                    return t
                }, t.prototype.LimitPurchseCheck = function() {
                    if (m.default.Instance.IsGameModuleUnlock(1010)[0]) {
                        var e = void 0,
                            t = this.GetActivityFrame(c.ActivityType.Frame1);
                        if (null == t) return !1;
                        for (var n = 0; n < t.length; n++) {
                            var o = t[n];
                            d.DataCenter.Instance.ActivityConfigs[o].Common.Type == c.ActivityType.GiftPack && (e = d.DataCenter.Instance.ActivityConfigs[o].Common)
                        }
                        if (null == e) return;
                        var r = m.default.Instance.GetOpenZeroTime() + (e.Duration + e.RequireOpenDays - 1) * v.Etc.DayDuration;
                        l.RpcComponent.Instance.ServerTime < r && (a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 27, r), setTimeout(function() {
                            a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 27)
                        }, r - l.RpcComponent.Instance.ServerTime))
                    }
                }, t.prototype.InfiniteCheck = function() {
                    var e = m.default.Instance.IsGameModuleUnlock(c.GameModuleType.InfiniteTenSummon)[0],
                        t = m.default.Instance.IsGameModuleOpen(c.GameModuleType.InfiniteTenSummon);
                    if (e && t) {
                        var n = l.DataCenter.Instance.GetIntData(c.UserDataKey.InfiniteTenSummonCount),
                            o = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, c.LevelParamType.InfiniteTenSummon),
                            r = o.Data2[n].Items[0],
                            i = d.DataCenter.Instance.GetIntData(v.UserDataKey.InfiniteTenSummonTime),
                            s = o.Data2[n].Items[2],
                            h = l.RpcComponent.Instance.ServerTime,
                            f = i + s * v.Etc.DayDuration - h,
                            y = m.default.Instance.GetGiftBuyCount(r);
                        if (!i || i < 0 || f <= 0 || y > 0) return void a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 25, -1);
                        a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 25, i + s * v.Etc.HourDuration), setTimeout(function() {
                            a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 25)
                        }, i + s * v.Etc.HourDuration - l.RpcComponent.Instance.ServerTime)
                    }
                }, t.prototype.LetterDeveloperCheck = function() {}, t.prototype.CheckDailyBuff = function() {
                    if (m.default.Instance.IsGameModuleOpen(c.GameModuleType.DailyBuff) && m.default.Instance.IsGameModuleUnlock(c.GameModuleType.DailyBuff)[0]) {
                        for (var e = d.DataCenter.Instance.GetArrayData(v.UserDataKey.DailyBuff), t = 0; t < e.length; t++)
                            if (e[t] > 0) return;
                        var n = b.default.GetItem(b.GameRecordDefine.DailyBuffLastOpenTime);
                        (!n || d.RpcComponent.Instance.ServerTime - n > v.Etc.DayDuration) && s.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.DailyBuffPanel.Path)
                    }
                }, t.prototype.CheckAnnouncements = function() {
                    if (m.default.Instance.IsGameModuleUnlock(c.GameModuleType.MailNotice)[0]) {
                        var e = d.DataCenter.Instance.GetAnnouncements(),
                            t = [],
                            n = [];
                        e.forEach(function(e) {
                            -2 != e.WindowCount ? t.push(e) : n.push(e)
                        });
                        var o = l.RpcComponent.Instance.ServerTime,
                            r = b.default.GetItem(b.GameRecordDefine.DailyAnnouncements);
                        if (r) {
                            var i = JSON.parse(r);
                            n.forEach(function(e) {
                                if (i[e.Sid]) {
                                    var n = i[e.Sid];
                                    A.TimeUtil.Get0ClockTs(n) != A.TimeUtil.Get0ClockTs(o) && (i[e.Sid] = o, t.push(e))
                                } else i[e.Sid] = o, t.push(e)
                            }), b.default.SetItem(b.GameRecordDefine.DailyAnnouncements, JSON.stringify(i))
                        } else {
                            var s = {};
                            n.forEach(function(e) {
                                s[e.Sid] = o, t.push(e)
                            }), b.default.SetItem(b.GameRecordDefine.DailyAnnouncements, JSON.stringify(s))
                        }
                        t.sort(function(e, t) {
                            return t.SortId - e.SortId
                        }), t.forEach(function(e) {
                            a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.MailContent.Path, e)
                        })
                    }
                }, t.prototype.CheckADs = function() {
                    if (null == d.DataCenter.Instance.GetTempData("CheckADs")) {
                        d.DataCenter.Instance.SetTempData("CheckADs", 1);
                        var e, t = [],
                            n = {};
                        for (var o in d.DataCenter.Instance.ActivityConfigs)
                            if ((_ = d.DataCenter.Instance.ActivityConfigs[o]).Common.Type == c.ActivityType.Announcement)(s = {}).ActivityConfig = _, s.AnnouncementConfig = _.CustomPart, t.push(s), n[_._id] = 1;
                            else if (_._Announcement && _._Announcement.length > 0)
                            for (var r = _._Announcement, i = 0; i < r.length; i++) {
                                var s, l = r[i];
                                (s = {}).ActivityConfig = _, s.AnnouncementConfig = l, s.Index = i, t.push(s), n[S = 1e3 * _._id + i] = 1
                            }
                        var u = b.default.GetItem(b.GameRecordDefine.AnnouncementShowData);
                        if (null == u) e = {};
                        else
                            for (var p in e = JSON.parse(u)) n[Number(p)] || delete e[p];
                        for (var y = [], g = m.default.Instance.IsGameModuleUnlock(c.GameModuleType.Activity)[0], I = 0; I < t.length; I++) {
                            var _ = t[I],
                                C = d.DataCenter.Instance.GetDataById(h.UserActivity_Model, _.ActivityConfig._id);
                            if (null != _.Index) {
                                if (m.default.GetBinaryValueByIndex(C.NotPrompt, _.Index) > 0) continue
                            } else if (C && C.NotPrompt) continue;
                            var S = void 0;
                            null == e[S = null != _.Index ? 1e3 * _.ActivityConfig._id + _.Index : _.ActivityConfig._id] && (e[S] = {}, e[S].TotalCount = 0, e[S].LastTime = 1e3, e[S].HourData = {});
                            var w = !m.default.Instance.IsSameDay(e[S].LastTime, d.RpcComponent.Instance.ServerTime),
                                P = m.default.Instance.ComputeActivitStartTime(_.ActivityConfig.Common),
                                A = m.default.Instance.ComputeDeadTime(_.ActivityConfig.Common);
                            if (!(d.RpcComponent.Instance.ServerTime < P || d.RpcComponent.Instance.ServerTime >= A) && _.AnnouncementConfig.ShowCount > e[S].TotalCount && g && (!_.ActivityConfig.Common.GameModule || m.default.Instance.IsGameModuleUnlock(_.ActivityConfig.Common.GameModule)[0]))
                                if (_.AnnouncementConfig.Hour && _.AnnouncementConfig.Hour.length > 1) {
                                    var T = Math.floor((d.RpcComponent.Instance.ServerTime - P) / (_.AnnouncementConfig.Hour[0] * v.Etc.HourDuration));
                                    if (e[S].HourData[T]) {
                                        if (e[S].HourData[T] >= _.AnnouncementConfig.Hour[1]) continue;
                                        e[S].HourData[T]++, e[S].TotalCount++, e[S].LastTime = d.RpcComponent.Instance.ServerTime, y.push(_)
                                    } else e[S].HourData[T] = 1, e[S].TotalCount++, e[S].LastTime = d.RpcComponent.Instance.ServerTime, y.push(_)
                                } else _.AnnouncementConfig.IsDaily ? w && (e[S].TotalCount++, e[S].LastTime = d.RpcComponent.Instance.ServerTime, y.push(_)) : (e[S].TotalCount++, e[S].LastTime = d.RpcComponent.Instance.ServerTime, y.push(_))
                        }
                        y.sort(function(e, t) {
                            return t.AnnouncementConfig.SortId - e.AnnouncementConfig.SortId
                        }), (t = y).length > 0 && (a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.ActivityShowOffPanel.Path, t), b.default.SetItem(b.GameRecordDefine.AnnouncementShowData, JSON.stringify(e)))
                    }
                }, t.prototype.CheckSinglePageAndActivityGift = function() {
                    if (null == d.DataCenter.Instance.GetTempData("CheckSinglePageAndActivityGift")) {
                        d.DataCenter.Instance.SetTempData("CheckSinglePageAndActivityGift", 1);
                        var e = [];
                        for (var t in d.DataCenter.Instance.ActivityConfigs)(o = d.DataCenter.Instance.ActivityConfigs[t]).Common.Type == c.ActivityType.SinglePagePack && (r = o).CustomPart && r.CustomPart.AutoShow && e.push(r);
                        e.length > 0 && a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.ActivitySinglePageGiftPanel.Path, e[0]._id);
                        var n = [];
                        for (var t in d.DataCenter.Instance.ActivityConfigs) {
                            var o, r;
                            (o = d.DataCenter.Instance.ActivityConfigs[t]).Common.Type == c.ActivityType.GiftPack && (r = o).CustomPart && r.CustomPart.AutoShow && n.push(r)
                        }
                        n.length > 0 && a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.LimitTimePurchasePanel.Path, n[0]._id)
                    }
                }, t.prototype.CheckActivitySinglePage = function() {
                    if (m.default.Instance.IsGameModuleUnlock(1010)[0]) {
                        var e = [],
                            t = [],
                            n = b.default.GetItem(b.GameRecordDefine.ActivityPackPop),
                            o = {};
                        for (var r in n && (o = JSON.parse(n)), d.DataCenter.Instance.ActivityConfigs) {
                            var i = d.DataCenter.Instance.ActivityConfigs[r];
                            if (i.Common.Type == c.ActivityType.SinglePagePack) {
                                var s = i;
                                if (s.Common.GameModule && !m.default.Instance.IsGameModuleUnlock(s.Common.GameModule)[0]) continue;
                                if (s.CustomPart && 3 == s.CustomPart.Type) {
                                    var l = d.DataCenter.Instance.GetDataById(h.UserActivity_Model, s._id);
                                    if (l && l.Packs[s._Packs[0].Id].Items[0]) continue
                                }
                                if (s.CustomPart && s.CustomPart.AutoShow) {
                                    if (this.CheckSinglePageIsAllBuy(i)) continue;
                                    var u = m.default.Instance.GetActivityEndTime(i._id);
                                    if (u <= d.RpcComponent.Instance.ServerTime) continue;
                                    if (o && o[i._id]) {
                                        var p = o[i._id];
                                        if (p && p >= i.Common.StartTime && p <= u) continue;
                                        t.push(i._id), e.push(s)
                                    } else t.push(i._id), e.push(s)
                                }
                            }
                        }
                        e.length > 0 && (m.default.Instance.ActivityPackPopSetItem(t), e.forEach(function(e) {
                            a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.ActivitySinglePageGiftPanel.Path, e._id)
                        }))
                    }
                }, t.prototype.CheckReturnWelfare = function() {
                    if (m.default.Instance.IsGameModuleUnlock(1010)[0])
                        for (var e in d.DataCenter.Instance.ActivityConfigs) {
                            var t = d.DataCenter.Instance.ActivityConfigs[e];
                            if (t.Common.Type == c.ActivityType.PlayerReturn && !l.DataCenter.Instance.GetDataById(h.UserActivity_Model, t._id).IntValue) {
                                a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.ReturnWelfarePanel.Path, t._id);
                                break
                            }
                        }
                }, t.prototype.CheckCustomGiftPack = function() {
                    if (m.default.Instance.IsGameModuleUnlock(1010)[0]) {
                        var e = [],
                            t = d.RpcComponent.Instance.ServerTime;
                        for (var n in d.DataCenter.Instance.ActivityConfigs) {
                            var o = d.DataCenter.Instance.ActivityConfigs[n];
                            if (o.Common.Type == c.ActivityType.CustomGiftPack) {
                                var r = o;
                                if (r.CustomPart && r.CustomPart.AutoShow) {
                                    var i = b.default.GetItem(b.GameRecordDefine.ActivityPackPop);
                                    if (m.default.Instance.GetActivityEndTime(o._id) <= t) continue;
                                    if (i) {
                                        var s = JSON.parse(i);
                                        if (s[o._id]) {
                                            var l = s[o._id],
                                                u = m.default.Instance.GetActivityEndTime(o._id);
                                            if (l && l >= o.Common.StartTime && l < u) continue;
                                            null != l && A.TimeUtil.Get0ClockTs(l) == A.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime) || (e.push(o._id), a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.CustomGiftPackPanel.Path, o._id))
                                        } else e.push(o._id), a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.CustomGiftPackPanel.Path, o._id)
                                    } else e.push(o._id), a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.CustomGiftPackPanel.Path, o._id)
                                }
                            }
                        }
                        e.length > 0 && m.default.Instance.ActivityPackPopSetItem(e)
                    }
                }, t.prototype.CheckPopupGift = function() {
                    if (m.default.Instance.IsGameModuleUnlock(v.GameModuleType.PopupGift)[0] && m.default.Instance.IsGameModuleOpen(v.GameModuleType.PopupGift)) {
                        var e = d.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts"),
                            t = {},
                            n = [],
                            o = [];
                        for (var r in e) {
                            var i = (c = e[r]).ExtraInfo ? JSON.parse(c.ExtraInfo) : null;
                            200 != (i ? Number(i.template_id) : 0) ? n.push(c) : c && (!c.ExpireTs || c.ExpireTs > l.RpcComponent.Instance.ServerTime) && c.BuyCount < c.MaxCount && o.push(c), c && (!c.ExpireTs || c.BuyCount < c.MaxCount && c.ExpireTs > l.RpcComponent.Instance.ServerTime) && (t[c.Sid] = c)
                        }
                        d.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", t), o && o.length > 0 && s.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.RecommendedGiftPackPanel.Path, null, M.RecommendedGiftsType.Mall, o);
                        for (var a = 0; a < n.length; a++) {
                            var c;
                            (c = n[a]) && !c.ExpireTs ? s.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.RecommendedGiftPackPanel.Path, c) : c && 0 == c.Money && c.ExpireTs > l.RpcComponent.Instance.ServerTime && s.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.RecommendedGiftPackPanel.Path, c)
                        }
                    }
                }, t.prototype.CheckDailySkyChooseGift = function() {
                    var e = b.default.GetItem(b.GameRecordDefine.SkyChoosePopTime),
                        t = !0;
                    if (null != e && "undefined" != e) {
                        var n = JSON.parse(e);
                        t = !m.default.Instance.IsSameDay(n, d.RpcComponent.Instance.ServerTime)
                    }
                    t && m.default.Instance.IsGameModuleUnlock(c.GameModuleType.ChosenGiftPack)[0] && (a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.MallChosenGiftPackPanel.Path), b.default.SetItem(b.GameRecordDefine.SkyChoosePopTime, d.RpcComponent.Instance.ServerTime))
                }, t.prototype.RequestTriggerStart = function() {
                    var e = this,
                        t = {};
                    l.ConfigDataComponent.Instance.GetArrayConfig(u.TriggerGiftType_Config).forEach(function(e) {
                        if (13 == e.TriggerCondition[0].Items[0]) {
                            var n = [];
                            e.Gifts.forEach(function(e) {
                                n.push(l.ConfigDataComponent.Instance.GetConfigById(u.TriggerGift_Config, e))
                            }), t[e.TriggerCondition[0].Items[1]] = n
                        }
                    }), l.DataCenter.Instance.SetTempData("HeroTriggerGiftData", t), s.EZLog.Log("GameDataChecker RequestTriggerStart function");
                    var n = new h.Req_Trigger_StartTheTime,
                        o = [];
                    for (var r in d.DataCenter.Instance.TriggerGifts) {
                        var i = d.DataCenter.Instance.TriggerGifts[r];
                        !i.IsEnd && !i.IsStart && i.Time > 0 && !this._isReqSids[i.Sid] && o.push(i.Sid)
                    }
                    o.length > 0 ? (o.forEach(function(t) {
                        e._isReqSids[t] = !0
                    }), n.Sids = o, d.RpcComponent.Instance.CallWithoutMask(n, function(e) {
                        for (var t = 0; t < e.Gifts.length; t++) {
                            var n = e.Gifts[t];
                            this._isReqSids[n.Sid] && (this._isReqSids[n.Sid] = !1), d.DataCenter.Instance.TriggerGifts[n.Sid] && (d.DataCenter.Instance.TriggerGifts[n.Sid].Time = n.Time, d.DataCenter.Instance.TriggerGifts[n.Sid].Count = n.Count, d.DataCenter.Instance.TriggerGifts[n.Sid].IsStart = n.IsStart)
                        }
                        this.TriggerGiftCheck() && s.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.TriggerGiftPanel.Path, e.Gifts)
                    }.bind(this))) : this.TriggerGiftCheck()
                }, t.prototype.TriggerGiftCheck = function() {
                    var e, t = 0;
                    if (m.default.Instance.IsGameModuleUnlock(v.GameModuleType.PopupGift)[0] && m.default.Instance.IsGameModuleOpen(v.GameModuleType.PopupGift)) {
                        var n = d.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts");
                        for (var o in n) {
                            var r = n[o];
                            0 != r.Money && (r.ExpireTs && r.ExpireTs < l.RpcComponent.Instance.ServerTime || r.BuyCount >= r.MaxCount ? delete n[o] : (t++, r.ExpireTs && (!e || r.ExpireTs < e) && (e = r.ExpireTs)))
                        }
                    }
                    var i = !1,
                        s = 0;
                    for (var o in d.DataCenter.Instance.TriggerGifts)
                        if (d.DataCenter.Instance.TriggerGifts[o]) {
                            s++;
                            break
                        } if (s + t > 0) {
                        var h = 0,
                            f = 0,
                            y = void 0;
                        for (var o in d.DataCenter.Instance.TriggerGifts) {
                            var g = d.DataCenter.Instance.TriggerGifts[o],
                                I = d.ConfigDataComponent.Instance.GetConfigById(u.TriggerGift_Config, g.Sid),
                                _ = g.Time,
                                C = I.Duration * c.Etc.MinuteDuration,
                                b = d.RpcComponent.Instance.ServerTime;
                            b - _ <= C ? (h++, (0 == f || f >= _ + C - b) && (f = _ + C - b, y = _ + C)) : delete d.DataCenter.Instance.TriggerGifts[o]
                        }
                        if (h > 0 && (i = !0), h + t > 0) {
                            var S;
                            S = e ? y && e > y ? y : e : y, a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 18, S), this.unschedule(this.TriggerOrPopupGiftTimeOut), this.SetChangeFrontNeedRefreshId(18, !0), this.scheduleOnce(this.TriggerOrPopupGiftTimeOut, Math.floor(S - l.RpcComponent.Instance.ServerTime) / 1e3)
                        } else a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 18)
                    } else a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 18);
                    return i
                }, t.prototype.TriggerOrPopupGiftTimeOut = function() {
                    a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 18), this.SetChangeFrontNeedRefreshId(18, !1), this.scheduleOnce(this.TriggerGiftCheck, .01)
                }, t.prototype.RequestSeniorArenaSettlement = function(e) {
                    var t = {
                            Reports: e,
                            MapType: v.MapType.SeniorArena
                        },
                        n = new h.Req_Map_BattleSettlement;
                    n.MapType = v.MapType.SeniorArena, d.RpcComponent.Instance.Call(n, function(n) {
                        t.SettleParams = [JSON.parse(n.StringParam)], t.SettleParams[0].Reports = e;
                        var o = "Arena/SeniorArenaPrivate/SeniorArenaSettlementComponent";
                        1 == n.Result ? I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementWinPanel.Path, o, t) : I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementFailPanel.Path, o, t)
                    }, null)
                }, t.prototype.UnSettlementBattleCheck = function() {
                    for (var e = 0; e < d.DataCenter.Instance.PlayingBattles.length; e++) {
                        var t = {
                            StartTime: d.DataCenter.Instance.PlayingBattles[e].StartTime
                        };
                        g.default.Instance.IsInGuide && (t.StartTime = 1);
                        var n = d.DataCenter.Instance.PlayingBattles[e].Sid,
                            o = d.DataCenter.Instance.PlayingBattles[e].Reports;
                        switch (d.DataCenter.Instance.PlayingBattles[e].ExtraParam, t.MapType = n, n) {
                            case c.MapType.MainLine:
                                if (g.default.Instance.IsInGuide) break;
                                continue;
                            case c.MapType.TestTower:
                            case c.MapType.TowerHeart:
                            case c.MapType.TowerPower:
                            case c.MapType.TowerTech:
                            case c.MapType.TowerBreak:
                            case c.MapType.TowerFight:
                            case c.MapType.EndlessAbyssSingle:
                            case c.MapType.EndlessAbyssMulti:
                            case c.MapType.TestTowerHard:
                                continue;
                            case c.MapType.DailyInstanceCoin:
                            case c.MapType.DailyInstanceXp:
                            case c.MapType.DailyInstanceHero:
                            case c.MapType.DailyInstanceLuckyCharm:
                            case c.MapType.DailyInstanceAngel:
                            case c.MapType.DailyInstanceGem:
                                break;
                            case c.MapType.Arena:
                                t.CanSkipPlay = m.default.Instance.IsGameModuleUnlock(c.GameModuleType.ArenaSkip)[0], t.CanCanel = !1, t.CanRestart = !1, t.CanPlayInBackground = !1;
                                break;
                            case c.MapType.CrossServerArena:
                                t.CanSkipPlay = !0, t.CanCanel = !1, t.CanRestart = !1;
                                break;
                            case c.MapType.SeniorArena:
                                S.default.RequestSeniorArenaSettlement(o);
                                continue;
                            case c.MapType.SecretArea:
                                t.CanRestart = !1, t.UserParams = {};
                                break;
                            case c.MapType.AncientSacred:
                                t.CanRestart = !1, t.SettleAllWhenOneFailed = !0, t.UserParams = {
                                    LevelId: d.DataCenter.Instance.PlayingBattles[e].ExtraParam[0]
                                };
                                break;
                            case c.MapType.AllianceTest:
                                var r = l.ConfigDataComponent.Instance.GetConfigById(u.AllianceTest_Config, d.DataCenter.Instance.PlayingBattles[e].ExtraParam[3]);
                                C.default.CurrentBossIndex = d.DataCenter.Instance.PlayingBattles[e].ExtraParam[2], C.default.CurrentTestConfig = r;
                                var i = l.ConfigDataComponent.Instance.GetConfigById(u.AllianceTestType_Config, C.default.CurrentTestConfig.Type);
                                t.BossHPBarCapacityArray = i.Hp;
                                break;
                            case c.MapType.ActivityHeroTest:
                                if (_.default.CurrentActivityConfig = d.DataCenter.Instance.ActivityConfigs[d.DataCenter.Instance.PlayingBattles[e].ExtraParam[0]], _.default.CurrentActivityConfig) {
                                    var a = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, c.LevelParamType.ActivityHeroTestBossHp);
                                    t.BossHPBarCapacityArray = a.Data
                                }
                                break;
                            case c.MapType.CrossZoneRank:
                                T.default.RequestCrossServerRankSettlement(o, !0);
                                continue;
                            case c.MapType.CrossZoneContinueWarRank:
                                k.default.RequestContinuousFightSettlement(o, !0);
                                continue;
                            case c.MapType.WorldBossZone:
                            case c.MapType.WorldBossCrossZone:
                            case c.MapType.WorldBossAlliance:
                                (s = d.DataCenter.Instance.ActivityConfigs[d.DataCenter.Instance.PlayingBattles[e].ExtraParam[0]]) && (t.BossHPBarCapacityArray = s.CustomPart.Hps);
                                break;
                            case c.MapType.ActivityBoss:
                            case c.MapType.ActivityBoss2:
                            case c.MapType.ActivityBoss3:
                                var s;
                                (s = d.DataCenter.Instance.ActivityConfigs[d.DataCenter.Instance.PlayingBattles[e].ExtraParam[0]]) && (t.BossHPBarCapacityArray = s.CustomPart.Hps, t.DontCloseOnEnd = !0);
                                break;
                            case c.MapType.ActivitySecret:
                            case c.MapType.ActivitySecret1:
                            case c.MapType.ActivitySecret2:
                            case c.MapType.ActivitySecret3:
                            case c.MapType.ActivitySecret4:
                            case c.MapType.ActivitySecret5:
                                t.CanSkipPlay = !0, t.CanCanel = !1, t.CanRestart = !1, L.default.ActivityId = d.DataCenter.Instance.PlayingBattles[e].ExtraParam[0], L.default.MapBaseType = n, L.default.SecretMapId = d.DataCenter.Instance.PlayingBattles[e].ExtraParam[1];
                                var p = d.ConfigDataComponent.Instance.GetConfigById(u.MapType_Config, n);
                                L.default.CurrentFormationSid = p.AttackerFormation;
                                break;
                            case c.MapType.ActivitySecretUser:
                            case c.MapType.ActivitySecretUser1:
                            case c.MapType.ActivitySecretUser2:
                            case c.MapType.ActivitySecretUser3:
                            case c.MapType.ActivitySecretUser5:
                                L.default.ActivityId = d.DataCenter.Instance.PlayingBattles[e].ExtraParam[0], L.default.MapBaseType = n, L.default.SecretMapId = d.DataCenter.Instance.PlayingBattles[e].ExtraParam[1];
                                var h = d.ConfigDataComponent.Instance.GetConfigById(u.MapType_Config, n);
                                L.default.CurrentFormationSid = h.AttackerFormation;
                                var f = {
                                    Reports: o,
                                    MapType: L.default.MapBaseType
                                };
                                L.default.SettleBattle(f);
                                break;
                            case c.MapType.SaintsWar1:
                                O.default.SaintsMapIndex[0] = d.DataCenter.Instance.PlayingBattles[e].ExtraParam[1];
                                break;
                            case c.MapType.SaintsWar2:
                                O.default.SaintsMapIndex[1] = d.DataCenter.Instance.PlayingBattles[e].ExtraParam[1];
                                break;
                            case c.MapType.SaintsWar3:
                                O.default.SaintsMapIndex[2] = d.DataCenter.Instance.PlayingBattles[e].ExtraParam[1];
                                break;
                            case c.MapType.HeroTestTower1:
                            case c.MapType.HeroTestTower2:
                            case c.MapType.HeroTestTower3:
                            case c.MapType.HeroTestTower4:
                            case c.MapType.HeroTestTower5:
                            case c.MapType.HeroTestTower6:
                            case c.MapType.HeroTestTower7:
                            case c.MapType.HeroTestTower8:
                            case c.MapType.HeroTestTower9:
                                var y = !0,
                                    v = l.DataCenter.Instance.ActivityConfigs[d.DataCenter.Instance.PlayingBattles[e].ExtraParam[0]];
                                if (v)
                                    for (var b = 0; b < v.__Maps.length; b++)
                                        if (v.__Maps[b].MapId == o[0].MapId && v.__Maps[b].CanSkip) {
                                            y = !1;
                                            break
                                        } t.CanSkipPlay = y, t.CanPlayInBackground = !1;
                                break;
                            case c.MapType.NoviceTraining:
                                t.CanSkipPlay = m.default.Instance.IsGameModuleUnlock(c.GameModuleType.NoviceTrainingSkip)[0], t.CanPlayInBackground = !1;
                                break;
                            case c.MapType.ActChampionship:
                                t.CanSkipPlay = !0, t.CanCanel = !1, t.CanRestart = !1;
                                break;
                            case c.MapType.ActBreakou:
                                E.default.RequestBreakOutMatchSettlement(o, !0);
                                continue
                        }
                        I.BattleManager.Instance.StartPlay(o, t, !0)
                    }
                    d.DataCenter.Instance.PlayingBattles = []
                }, t.prototype.ClearZeroInArray = function(e) {
                    var t = [];
                    return e.forEach(function(e) {
                        e > 0 && t.push(e)
                    }), t
                }, t.prototype.GetHeroHPBySidArray = function(e, t) {
                    for (var n = [], o = function(o) {
                            t.Hp.forEach(function(t) {
                                t.Items[0] == e[o] && n.push(t.Items[1])
                            })
                        }, r = 0; r < e.length; r++) o(r);
                    return n
                }, t.prototype.IUserItemModelToArray = function(e) {
                    for (var t = [], n = 0; n < e.length; n++) t[n] = [e[n].ItemId, e[n].Count];
                    return t
                }, t.prototype.IsHideFeedBack = function(e) {
                    for (var t = l.ConfigCacheComponent.Instance.GetFeedBackConfigs(), n = !0, o = 0; o < t.length; o++)
                        if (0 == (e >> 2 * o + 1 & 1)) {
                            n = !1;
                            break
                        } return n
                }, t.prototype.GetActivityFrame = function(e) {
                    var t = [];
                    if (null == d.DataCenter.Instance.ActivityFrameMap) return null;
                    for (var n in d.DataCenter.Instance.ActivityFrameMap) d.DataCenter.Instance.ActivityConfigs[n].Common.Type == e && (t = d.DataCenter.Instance.ActivityFrameMap[n]);
                    return t
                }, t.prototype.CheckActivitySideButtons = function() {
                    if (0 != m.default.Instance.IsGameModuleUnlock(1010)[0]) {
                        var e = [];
                        for (var t in d.DataCenter.Instance.ActivityConfigs) {
                            var n = d.DataCenter.Instance.ActivityConfigs[t],
                                o = !0,
                                r = l.DataCenter.Instance.GetIntData(c.UserDataKey.TotalPay);
                            n.Common.TotalPay && (o = r >= n.Common.TotalPay);
                            var i = !0;
                            n.Common.GameModule && (i = m.default.Instance.IsGameModuleUnlock(n.Common.GameModule)[0]);
                            var s = m.default.Instance.GetActivityPositionAndSort(n.Common);
                            if (i && o && (s[0][0] > 0 || s[1][0] > 0)) {
                                var u = void 0;
                                if (u = n.Common.ShowDays ? m.default.Instance.ComputeMainUIShowOffTime(n.Common) : m.default.Instance.ComputeExtraShowDeadTime(n.Common), n.Common.Type == v.ActivityType.SinglePagePack) {
                                    if (this.CheckSinglePageIsAllBuy(n)) continue
                                } else if (n.Common.Type == v.ActivityType.HeroStarUp) {
                                    if (d.DataCenter.Instance.ActivityConfigs[n._id].CustomPart.IsPermanent) {
                                        y(d.DataCenter.Instance.ActivityConfigs[t], 1);
                                        continue
                                    }
                                } else if (n.Common.Type == v.ActivityType.FirstPay) {
                                    if (this.CheckIsHideFirstPay(n._id)) continue;
                                    var h = l.ConfigDataComponent.Instance.GetGlobalSettingByKey("FirstPay_ShowTime_OutSide");
                                    u = m.default.Instance.GetOpenZeroTime() + v.Etc.DayDuration * h
                                } else if (n.Common.Type == v.ActivityType.SuperGift) u = A.TimeUtil.Get0ClockTs(m.default.Instance.ComputeActivitStartTime(n.Common)) + 7 * v.Etc.DayDuration;
                                else if (n.Common.Type == v.ActivityType.GiftAllHeroes) {
                                    if (this.CheckGiftAllHeroesIsGetAll(n)) continue
                                } else if (n.Common.Type == v.ActivityType.PayGuide) {
                                    if (this.CheckPayGuideIsGetAll(n)) continue
                                } else if (n.Common.Type == v.ActivityType.LimitTimeTask) {
                                    if (this.CheckLimitTaskIsGetAll(n)) continue
                                } else if (n.Common.Type == v.ActivityType.MultipleGift) {
                                    if (this.CheckMultipleGiftIsGetAll(n)) continue
                                } else if (n.Common.Type == v.ActivityType.CumulativeBuyGift && m.default.Instance.IsCumulativeBuyGiftEnterenceClose(n._id)) continue;
                                u > d.RpcComponent.Instance.ServerTime && y(d.DataCenter.Instance.ActivityConfigs[t], u)
                            }
                        }
                        var f = Math.pow(2, 31) - 1;
                        e.sort(function(e, t) {
                            var n = m.default.Instance.GetActivityPositionAndSort(e.config.Common),
                                o = m.default.Instance.GetActivityPositionAndSort(t.config.Common);
                            return n[0][1] - o[0][1]
                        }), e.forEach(function(e) {
                            a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, e.config._id, e.deadLine);
                            var t = Math.min(f, e.deadLine - l.RpcComponent.Instance.ServerTime);
                            e.deadLine > d.RpcComponent.Instance.ServerTime && setTimeout(function() {
                                a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, e.config._id)
                            }, t)
                        })
                    }

                    function y(t, n) {
                        var o = {};
                        o.config = t, o.deadLine = n, e.push(o)
                    }
                }, t.prototype.CheckSummonActivityList = function() {
                    if (m.default.Instance.IsGameModuleUnlock(1010)[0]) {
                        var e = 0,
                            t = l.DataCenter.Instance.GetIntData(c.UserDataKey.TotalPay);
                        for (var n in d.DataCenter.Instance.ActivityConfigs) {
                            var o = d.DataCenter.Instance.ActivityConfigs[n];
                            if (o && R.default.SummonActivityType.indexOf(o.Common.Type) > -1 && o.Common.IsSummon) {
                                var r = !0;
                                o.Common.TotalPay && (r = t >= o.Common.TotalPay);
                                var i = !0;
                                if (o.Common.GameModule && (i = m.default.Instance.IsGameModuleUnlock(o.Common.GameModule)[0]), r && i) {
                                    var s = m.default.Instance.ComputeDeadTime(o.Common);
                                    e = Math.max(e, s)
                                }
                            }
                        }
                        e && e > d.RpcComponent.Instance.ServerTime && (a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 30, 1), setTimeout(function() {
                            a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 30, -1)
                        }, e - l.RpcComponent.Instance.ServerTime))
                    }
                }, t.prototype.CheckSinglePageIsAllBuy = function(e) {
                    var t = !1,
                        n = [],
                        o = e,
                        r = l.DataCenter.Instance.GetDataById(h.UserActivity_Model, o._id);
                    if (r.IntArray && r.IntArray.length > 0) {
                        var i = 0;
                        r.IntArray.forEach(function(e) {
                            e > 0 && i++
                        }), r.IntArray.length == i && (t = !0)
                    }
                    t ? r.IntArray.forEach(function(e) {
                        var t = o.__PackExtend.findIndex(function(t) {
                            return t.Id == e
                        });
                        if (t > -1) {
                            var r = o.__PackExtend[t].Packs;
                            n.push(r)
                        }
                    }) : n = [o.CustomPart.Packs1, o.CustomPart.Packs2];
                    for (var a = function(e) {
                            for (var t = n[e], i = function(e) {
                                    var n = o._Packs.find(function(n) {
                                        return t[e] == n.Id
                                    });
                                    if (n) {
                                        if (0 == n.LimitType) return {
                                            value: !1
                                        };
                                        var i = r.Packs[n.Id];
                                        if ((null == i || null == i.Items[0] ? 0 : i.Items[0]) < n.LimitCount) return {
                                            value: !1
                                        }
                                    }
                                }, a = 0; a < t.length; a++) {
                                var s = i(a);
                                if ("object" == typeof s) return s
                            }
                        }, s = 0; s < n.length; s++) {
                        var c = a(s);
                        if ("object" == typeof c) return c.value
                    }
                    return !0
                }, t.prototype.CheckGiftAllHeroesIsGetAll = function(e) {
                    var t = e,
                        n = l.DataCenter.Instance.GetDataById(h.UserActivity_Model, t._id);
                    return !!(n.IntArray && n.IntArray[0] >= t.Rewards.length && n.IntArray[1] >= t.Rewards.length)
                }, t.prototype.CheckPayGuideIsGetAll = function(e) {
                    for (var t = e, n = l.DataCenter.Instance.GetDataById(h.UserActivity_Model, t._id), o = !0, r = 0; r < t.Stage.length; r++)
                        if (!n.IntMap[t.Stage[r].Id]) {
                            o = !1;
                            break
                        } return !(!n.IntValue || !o)
                }, t.prototype.CheckMultipleGiftIsGetAll = function(e) {
                    return 0 == m.default.Instance.GetSortedActiveMultipleGift(e._id).length
                }, t.prototype.CheckLimitTaskIsGetAll = function(e) {
                    for (var t = e, n = 1e4 * t._id, o = 0; o < t._Tasks.length; o++)
                        if (!d.DataCenter.Instance.GetDataById(h.UserTask_Model, n + t._Tasks[o].Id).IsCompleted) return !1;
                    return !0
                }, t.prototype.AngelDataCheckUnlock = function(e) {
                    var t = this;
                    if (void 0 === e && (e = !1), m.default.Instance.IsGameModuleOpen(v.GameModuleType.Angel)) {
                        var n = l.ConfigDataComponent.Instance.GetArrayConfig(u.AngelBase_Config),
                            o = m.default.Instance.IsGameModuleUnlock(v.GameModuleType.Angel)[0];
                        n.forEach(function(n) {
                            if (n.Unlock.length > 0 && !l.DataCenter.Instance.GetDataById(h.UserAngel_Model, n.Id)) switch (n.Unlock[0]) {
                                case 1:
                                    o && t.UnlockAngel(n.Id, e);
                                    break;
                                case 2:
                                    for (var r = 0, i = l.DataCenter.Instance.GetDataList(h.UserHero_Model), a = 0; a < i.length; a++) {
                                        var s = i[a];
                                        if (r >= n.Unlock[2]) {
                                            t.UnlockAngel(n.Id, e);
                                            break
                                        }
                                        s.StarLevel >= n.Unlock[1] && r++
                                    }
                            }
                        })
                    }
                }, t.prototype.UnlockAngel = function(e, t) {
                    void 0 === t && (t = !1);
                    var n = new h.Req_Item_AngelUnlock;
                    n.AngelId = e, l.RpcComponent.Instance.Call(n, function() {
                        t && y.UIUtlity.ShowFloatingHint("angel_unlocked".ToUILocale().Fmt(e.ToAngelTitle()))
                    })
                }, t.prototype.CheckOldPlayerRecallGift = function() {
                    var e = m.default.Instance.IsGameModuleUnlock(c.GameModuleType.OldPlayerRecall)[0],
                        t = m.default.Instance.IsGameModuleOpen(c.GameModuleType.OldPlayerRecall);
                    if (e && t) {
                        var n = l.DataCenter.Instance.GetArrayData(v.UserDataKey.OldPlayerRecall);
                        if (n && n[D.OldPlayerDataIndex.ActiveTime] < l.RpcComponent.Instance.ServerTime) {
                            var o = l.ConfigDataComponent.Instance.GetGlobalSettingByKey("OldPlayerRecallDuration");
                            l.RpcComponent.Instance.ServerTime < n[D.OldPlayerDataIndex.ActiveTime] + o * v.Etc.DayDuration && a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_BUTTON, 34, n[D.OldPlayerDataIndex.ActiveTime] + o * v.Etc.DayDuration)
                        }
                    }
                }, t.prototype.CheckRenewTip = function() {
                    var e = b.default.GetItem(b.GameRecordDefine.RenewPanelTip),
                        t = e ? JSON.parse(e) : {};
                    if (!m.default.Instance.IsSameDay(t[B.RenewPanelType.WarToken], l.RpcComponent.Instance.ServerTime)) {
                        for (var n = N.default.GetWarTokenListData(), o = [], r = 0; r < n.length; r++) {
                            var i = n[r];
                            if (i.IsActivity) {
                                var s = l.DataCenter.Instance.ActivityConfigs[i.Id];
                                if (1 == s.CustomPart.Type || 2 == s.CustomPart.Type || 3 == s.CustomPart.Type || 4 == s.CustomPart.Type || 5 == s.CustomPart.Type || 8 == s.CustomPart.Type || 9 == s.CustomPart.Type || 13 == s.CustomPart.Type || 14 == s.CustomPart.Type || 15 == s.CustomPart.Type) {
                                    var u = l.DataCenter.Instance.GetDataById(h.UserActivity_Model, i.Id),
                                        p = l.DataCenter.Instance.GetDataById(h.ActivityWarTokenType_Model, s.CustomPart.Type),
                                        d = m.default.Instance.ComputeDeadTime(s.Common) - l.RpcComponent.Instance.ServerTime;
                                    u && p && 0 == u.IntArray[0] && p.ContinuousCount >= 2 && d > 0 && d < 3 * c.Etc.DayDuration && o.push([s.CustomPart.Type, s._id])
                                }
                            }
                        }
                        o.length > 0 && a.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.CommonRenewPanel.Path, B.RenewPanelType.WarToken, o)
                    }
                }, t.prototype.CheckNewYearWeapon = function() {
                    P.RedDotDataHandler.RefreshNewYearWeaponRedDot()
                }, t.prototype.CheckIsHideFirstPay = function(e) {
                    for (var t = l.DataCenter.Instance.ActivityConfigs[e], n = l.DataCenter.Instance.GetDataById(h.UserActivity_Model, e), o = function(e) {
                            var o = n.Int2DArray.find(function(n) {
                                return n.Items[0] == t._Packs[e].Id
                            });
                            if (!o || !o.Items[1] || o.Items[2] < 3) return {
                                value: !1
                            }
                        }, r = 0; r < t._Packs.length; r++) {
                        var i = o(r);
                        if ("object" == typeof i) return i.value
                    }
                    return !(t.CustomPart && t.CustomPart.Rewards && t.CustomPart.Rewards.length > 0 && !(n && n.IntValue > 0))
                }, t.prototype.CheckChampionShipResultTip = function() {
                    if (m.default.Instance.IsGameModuleOpen(c.GameModuleType.CrossZoneChampionRace) && m.default.Instance.IsGameModuleUnlock(c.GameModuleType.CrossZoneChampionRace)[0] && U.default.CrossServerLimitConditions(!1)) {
                        var e = b.default.GetItem(b.GameRecordDefine.CrossServerChampionShipResultTip);
                        if (e) {
                            var t = m.default.GetChampionShipOpenTime(),
                                n = l.RpcComponent.Instance.ServerTime;
                            if (parseInt(e) < t && n >= t) {
                                var o = new h.Req_Player_GetRank;
                                o.CustomCount = 3, o.RankType = c.RankTypeId.CrossZoneChampionRace, d.RpcComponent.Instance.Call(o, this.OnRequestChampionShipSuccess.bind(this))
                            }
                        } else b.default.SetItem(b.GameRecordDefine.CrossServerChampionShipResultTip, d.RpcComponent.Instance.ServerTime.toString())
                    }
                }, t.prototype.OnRequestChampionShipSuccess = function(e) {
                    e && e.Data && e.Data.Rows.length > 0 && (a.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrossServerChampionShipResultTip.Path, e.Data.Rows, G.ChampionShipType.Normal), b.default.SetItem(b.GameRecordDefine.CrossServerChampionShipResultTip, d.RpcComponent.Instance.ServerTime.toString()))
                }, t.prototype.CheckAllianceWarResultTip = function() {
                    if (m.default.Instance.IsGameModuleOpen(c.GameModuleType.AllianceWar) && m.default.Instance.IsGameModuleUnlock(c.GameModuleType.AllianceWar)[0] && d.DataCenter.Instance.AllianceId && !(d.DataCenter.Instance.AllianceId <= 0)) {
                        var e = b.default.GetItem(b.GameRecordDefine.CrossServerAllianceWarResultTip);
                        if (e) {
                            var t = m.default.GetNextMonday0ClockTs() - 7 * v.Etc.DayDuration;
                            if (parseInt(e) < t) {
                                var n = new h.Req_Player_GetRank;
                                n.CustomCount = 3, n.RankType = c.RankTypeId.CrossZoneAllianceChallengePrevious, d.RpcComponent.Instance.Call(n, this.OnRequestAllianceWarSuccess.bind(this))
                            }
                        } else b.default.SetItem(b.GameRecordDefine.CrossServerAllianceWarResultTip, d.RpcComponent.Instance.ServerTime.toString())
                    }
                }, t.prototype.ChechArtifactNotice = function() {
                    var e = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("ArtifactOpenTime"),
                        t = e - d.ConfigDataComponent.Instance.GetGlobalSettingByKey("ArtifactNoticeShowTime") * v.Etc.HourDuration;
                    if (!(d.RpcComponent.Instance.ServerTime >= e || d.RpcComponent.Instance.ServerTime < t)) {
                        var n = b.default.GetItem(b.GameRecordDefine.ArtifactNoticeTime),
                            o = b.default.GetItem(b.GameRecordDefine.ArtifactNotice),
                            r = o && Number(o) > 0,
                            i = !1;
                        if (n) {
                            var s = Number(n);
                            i = A.TimeUtil.Get0ClockTs(s) != A.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime)
                        } else i = !0;
                        i && !r && (a.UIManager.Instance.ShowUIPanel(f.PanelConfig.ArtifactNoticePanel.Path), b.default.SetItem(b.GameRecordDefine.ArtifactNoticeTime, d.RpcComponent.Instance.ServerTime))
                    }
                }, t.prototype.OnRequestAllianceWarSuccess = function(e) {
                    e && e.Data && e.Data.Rows.length > 0 && (a.UIManager.Instance.ShowUIPanel(f.PanelConfig.CrossServerAllianceWarResultTip.Path, e.Data.Rows), b.default.SetItem(b.GameRecordDefine.CrossServerAllianceWarResultTip, d.RpcComponent.Instance.ServerTime.toString()))
                }, t._instance = null, i([H], t)
            }(cc.Component));
        n.default = F, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../Consts/Consts": "Consts",
        "../../EZFramework/EZFramework": "EZFramework",
        "../../Util/TimeUtil": "TimeUtil",
        "../Components/Components": "Components",
        "../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../UI/Auxiliary/UIUtlity": "UIUtlity",
        "../UI/Battle/BattleManager": "BattleManager",
        "../UI/Panel/AllianceTestPanel": "AllianceTestPanel",
        "../UI/Panel/BreakOutMatchPanel": "BreakOutMatchPanel",
        "../UI/Panel/CommonRenewPanel": "CommonRenewPanel",
        "../UI/Panel/ContinuousFightPanel": "ContinuousFightPanel",
        "../UI/Panel/CrossServerChampionStartPanel": "CrossServerChampionStartPanel",
        "../UI/Panel/CrossServerPortPanel": "CrossServerPortPanel",
        "../UI/Panel/CrossServerRankPanel": "CrossServerRankPanel",
        "../UI/Panel/HeroTestPanel": "HeroTestPanel",
        "../UI/Panel/OldPlayerRecallPanel": "OldPlayerRecallPanel",
        "../UI/Panel/RecommendedGiftPackPanel": "RecommendedGiftPackPanel",
        "../UI/Panel/SaintsWarChallengePanel": "SaintsWarChallengePanel",
        "../UI/Panel/SecretJourneyPanel": "SecretJourneyPanel",
        "../UI/Panel/SeniorArenaChallengeConfirmPanel": "SeniorArenaChallengeConfirmPanel",
        "../UI/Panel/SummonActivityListPanel": "SummonActivityListPanel",
        "../UI/Panel/WarTokenListPanel": "WarTokenListPanel",
        "./DataUtlity": "DataUtlity",
        "./EventKeys": "EventKeys",
        "./GameRecord": "GameRecord",
        "./GlobalDefine": "GlobalDefine",
        "./GuideManager": "GuideManager",
        "./ModuleGuideManager": "ModuleGuideManager"
    }],
    GameError: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b3f8bz3yu9AgZLOjzoziLsw", "GameError");
        var o, r = this && this.__extends || (o = function(e, t) {
            return (o = Object.setPrototypeOf || {
                    __proto__: []
                }
                instanceof Array && function(e, t) {
                    e.__proto__ = t
                } || function(e, t) {
                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                })(e, t)
        }, function(e, t) {
            function n() {
                this.constructor = e
            }
            o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
        });
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GameError = void 0;
        var i = function(e) {
            function t(t, n) {
                void 0 === t && (t = ""), void 0 === n && (n = 0);
                var o = e.call(this) || this;
                return o.message = t, o.Code = n, o.name = "GameError", o
            }
            return r(t, e), t
        }(Error);
        n.GameError = i, cc._RF.pop()
    }, {}],
    GameEventIds: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bb6c3SYiOBIooj4LgOHFdvd", "GameEventIds"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GameEventIds = void 0;
        var o = function() {
            function e() {}
            return e.ServerConnecting = "ServerConnecting", e.ServerConnected = "ServerConnected", e.ServerDisconnect = "ServerDisconnect", e.ConfigDownloadError = "ConfigLoadError", e.ConfigDownloadComplete = "ConfigDownloadComplete", e.HotUpdateComplete = "HotUpdateComplete", e.ChangeSelectZone = "ChangeSelectZone", e.UserLoginSuccess = "UserLoginSuccess", e.LoginStatusChange = "LoginStatusChange", e.UserDataChange = "UserDataChange", e.ChangeDataDetail = "ChangeDataDetail_{0}", e.AddDataDetail = "AddDataDetail_{0}", e.RemoveDataDetail = "RemoveDataDetail_{0}", e.DailyResetDataComplete = "DailyResetDataComplete", e.SpecialRedDotChange = "SpecialRedDotChange_{0}", e.ActivityConfigChange = "ActivityConfigChange", e.DelayCloseBattlePanel = "DelayCloseBattlePanel", e.SettleBattle = "SettleBattle_{0}", e.SettleAllBattle = "SettleAllBattle_{0}", e.RestartBattle = "RestartBattle_{0}", e.CancelBattle = "CancelBattle_{0}", e.StartBattle = "StartBattle_{0}", e.StartNextWave = "StartNextWave", e.BattleSwitchToBackground = "BattleSwitchToBackground_{0}", e.ErrorCodeEvent = "ErrorCodeEvent_{0}", e.ShowUILoading = "ShowUILoading", e.SeCloseEditorPanel = "SeCloseEditorPanel", e.SeShowDropDown = "SeShowDropDown", e.SeHideDropDown = "SeHideDropDown", e.SeDropDownValueChange = "SeDropDownValueChange", e.SeShowTipPanel = "SeShowTipPanel", e.SeShowEditConfigPanel = "SeShowEditConfigPanel", e.SeShowLoginPanel = "SeShowLoginPanel", e.SeRefreshConfigList = "SeRefreshConfigList", e.SeSelectFileChange = "SeSelectFileChange", e.SePreviewActionAnim = "SePreviewActionAnim", e.SePreviewEffectAnim = "SePreviewEffectAnim", e.SeRemoveEventCell = "SeRemoveEventCell", e.SeMoveUpEventCell = "SeMoveUpEventCell", e.SeMoveDownEventCell = "SeMoveDownEventCell", e.SePlaySkillEvents = "SePlaySkillEvents", e.SeRefreshHeroAsset = "SeRefreshHeroAsset", e
        }();
        n.GameEventIds = o, cc._RF.pop()
    }, {}],
    GameEventsListener: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a7fb5ml2o9LpKXBicCnIJvU", "GameEventsListener");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../EZFramework/EZFramework"),
            s = e("../Auxiliary/EventKeys"),
            l = e("../../../../assets/Script/Consts/Consts"),
            c = e("../../EZFramework/EZFramework"),
            u = e("../../../Proto/Static/RpcProto"),
            p = e("./GlobalDefine"),
            d = e("../Components/Components"),
            h = e("./DataUtlity"),
            f = e("../../../../assets/Script/Consts/Consts"),
            y = e("../Components/Components"),
            g = e("../Channel/ChannelManager"),
            m = cc._decorator.ccclass,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._allianceQuit = !1, t._lastTimeRefreshActivityTime = 0, t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return null === this._instance && (this._instance = cc.find(a.SysDefine.SYS_UIROOT_NAME).addComponent(this)), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.RegisteEvents = function() {
                    a.Game.EventDispatcher.On(l.GameEventIds.ChangeDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnVipLevelChange, this), a.Game.EventDispatcher.On(l.GameEventIds.AddDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnVipLevelAdd, this), a.Game.EventDispatcher.On(l.GameEventIds.ChangeDataDetail.Fmt(u.GameModule_Model._n_), this.OnGameModuleChange, this), a.Game.EventDispatcher.On(s.EventKeys.EVENT_GAME_LOG_OUT, this.OnGameLogOut, this), a.Game.EventDispatcher.On(s.EventKeys.EVENT_ON_CACHEEVENTIDSCHECK, this.OnCacheEventIdsCheck, this), a.Game.EventDispatcher.On(l.GameEventIds.ChangeDataDetail.Fmt(u.UserActivity_Model._n_), this.OnUserActivityDataChange, this), c.Game.EventDispatcher.On(l.GameEventIds.SpecialRedDotChange.Fmt(l.SpecialRedDotType.AllianceId), this.OnAllianceIdChange, this)
                }, t.prototype.UnRegisteEvents = function() {
                    a.Game.EventDispatcher.Off(l.GameEventIds.ChangeDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnVipLevelChange, this), a.Game.EventDispatcher.Off(l.GameEventIds.AddDataDetail.Fmt(u.UserSimpleData_Model._n_), this.OnVipLevelAdd, this), a.Game.EventDispatcher.Off(l.GameEventIds.ChangeDataDetail.Fmt(u.GameModule_Model._n_), this.OnGameModuleChange, this), a.Game.EventDispatcher.Off(s.EventKeys.EVENT_GAME_LOG_OUT, this.OnGameLogOut, this), a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ON_CACHEEVENTIDSCHECK, this.OnCacheEventIdsCheck, this), a.Game.EventDispatcher.Off(l.GameEventIds.ChangeDataDetail.Fmt(u.UserActivity_Model._n_), this.OnUserActivityDataChange, this), c.Game.EventDispatcher.Off(l.GameEventIds.SpecialRedDotChange.Fmt(l.SpecialRedDotType.AllianceId), this.OnAllianceIdChange, this)
                }, t.prototype.OnVipLevelChange = function(e) {
                    for (var t in e) switch (Number.parseInt(t)) {
                        case l.UserDataKey.VipLevel:
                            a.UIManager.Instance.ShowUIPanel(p.PanelConfig.FameUpPanel.Path, e[t].V);
                            break;
                        case l.UserDataKey.Power:
                            y.DataCenter.Instance.SetTempData("UserOldBattlePowerData", e[t].V)
                    }
                }, t.prototype.OnVipLevelAdd = function(e) {
                    for (var t in e) switch (Number.parseInt(t)) {
                        case l.UserDataKey.VipLevel:
                            a.UIManager.Instance.ShowUIPanel(p.PanelConfig.FameUpPanel.Path, 0)
                    }
                }, t.prototype.OnGameModuleChange = function(e) {
                    for (var t in e) switch (Number.parseInt(t)) {
                        case 1050:
                            h.default.ShowActivityFirstPayPanel();
                            break;
                        case f.GameModuleType.InfiniteTenSummon:
                            var n = h.default.Instance.IsGameModuleUnlock(f.GameModuleType.InfiniteTenSummon)[0],
                                o = h.default.Instance.IsGameModuleOpen(f.GameModuleType.InfiniteTenSummon);
                            n && o && a.UIManager.Instance.ShowUIPanel(p.PanelConfig.InfiniteJumpPanel.Path);
                            break;
                        case f.GameModuleType.TreasureHunt:
                        case f.GameModuleType.ItemShop:
                        case f.GameModuleType.SummonCard:
                        case f.GameModuleType.StarTemple:
                        case f.GameModuleType.TestTower:
                        case f.GameModuleType.EndlessAbyss:
                        case f.GameModuleType.Arena:
                        case f.GameModuleType.DailyInstanceCoin:
                        case f.GameModuleType.RelicTreasureHunt:
                        case f.GameModuleType.IntelligenceTask:
                        case f.GameModuleType.StarResonance:
                        case f.GameModuleType.StarPiece:
                        case f.GameModuleType.ElementTower:
                        case f.GameModuleType.Alliance:
                        case f.GameModuleType.AncientSacred:
                        case f.GameModuleType.HeroPalace:
                        case f.GameModuleType.SaintsWar:
                        case f.GameModuleType.PersonalSignature:
                        case f.GameModuleType.AllianceCityWar:
                        case f.GameModuleType.StarGarrison:
                            c.Game.EventDispatcher.Emit(s.EventKeys.EVENT_REFRESH_GUIDE_MODULE), h.default.Instance.ArrangementActivityData();
                            break;
                        case f.GameModuleType.GiftPackList:
                            h.default.GetSpecificActivityList(h.ActivityListType.GiftPack).length > 0 && c.Game.EventDispatcher.Emit(s.EventKeys.EVENT_SET_VERTICAL_BUTTON, 33, 1)
                    }
                }, t.prototype.OnGameLogOut = function() {
                    h.default.Instance.ClearDataWhenLogOut()
                }, t.prototype.OnCacheEventIdsCheck = function(e) {
                    if (e && e.length > 0) {
                        var t = new u.Req_Player_ProcessCacheEvent;
                        t.CacheEventIds = e, d.RpcComponent.Instance.Call(t, function(e) {
                            a.EZLog.Log(e);
                            var t = e.Rewards.find(function(e) {
                                return -4 == e.ItemId
                            });
                            t && g.default.Instance.FireBaseLogEventPay("purchase", t.Count)
                        }, null)
                    }
                }, t.prototype.OnUserActivityDataChange = function() {
                    h.default.Instance.IsSameDay(this._lastTimeRefreshActivityTime, d.RpcComponent.Instance.ServerTime) || (this._lastTimeRefreshActivityTime = d.RpcComponent.Instance.ServerTime, this._zeroRefreshPanel && this._zeroRefreshPanel.isValid && this._zeroRefreshPanel.DisPlay && this._zeroRefreshPanel.DisPlay())
                }, t.prototype.OnAllianceIdChange = function(e) {
                    0 == e && (y.DataCenter.Instance.AllianceId = 0, y.DataCenter.Instance.AllianceInfo = void 0)
                }, t._instance = null, i([m], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../assets/Script/Consts/Consts": "Consts",
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/EventKeys": "EventKeys",
        "../Channel/ChannelManager": "ChannelManager",
        "../Components/Components": "Components",
        "./DataUtlity": "DataUtlity",
        "./GlobalDefine": "GlobalDefine"
    }],
    GameModuleGuideManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4197aAtILNKW6ynld0uH0BY", "GameModuleGuideManager");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            l = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Components/DataCenter"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/RpcComponent"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/Components"),
            _ = e("./GameUnlockFingerComponent"),
            C = e("../../../Consts/Consts"),
            v = e("../Auxiliary/UIUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = (b.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._openPanelDatas = {}, t._assets = [], t._npcDiaLogIds = [], t._npcParam = [], t
                }
                var n;
                return r(t, e), n = t, Object.defineProperty(t, "Instance", {
                    get: function() {
                        return this._instance || (this._instance = cc.find(f.SysDefine.SYS_UIROOT_NAME).addComponent(this)), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "IsHaveGuide", {
                    get: function() {
                        return this._isHaveGuide
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.RegisteEvents = function() {
                    f.Game.EventDispatcher.On(y.EventKeys.EVENT_PANEL_CLOSE, this.EventClosePanel, this), f.Game.EventDispatcher.On(y.EventKeys.EVENT_GAME_LOG_OUT, this.ResetData, this)
                }, t.prototype.UnRegisteEvents = function() {
                    f.Game.EventDispatcher.Off(y.EventKeys.EVENT_PANEL_CLOSE, this.EventClosePanel, this), f.Game.EventDispatcher.Off(y.EventKeys.EVENT_GAME_LOG_OUT, this.ResetData, this)
                }, t.prototype.ResetData = function() {
                    this._openPanelDatas = {}
                }, t.prototype.EventClosePanel = function(e) {
                    if (this._openPanelDatas && this._openPanelDatas[e.UIPanelName]) {
                        var t = this._openPanelDatas[e.UIPanelName];
                        if (!t) return;
                        if (t.IsDataChange) f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, t.GroupId);
                        else if (I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, t.GroupId).KeyStep == t.StepId) {
                            var n = new d.Req_Player_CompleteGameModuleGuide;
                            n.Type = 2, n.Ids = [t.GroupId], h.RpcComponent.Instance.Call(n, function() {
                                f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, t.GroupId)
                            })
                        } else f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, t.GroupId);
                        this._openPanelDatas[e.UIPanelName] = null
                    }
                }, t.prototype.CheckNeedRequestGameModule = function(e) {
                    return !p.DataCenter.Instance.GetArrayData(c.UserDataKey.GameModuleGuide).includes(e)
                }, t.prototype.LoadPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._fingerEffect && this._fingerPrefab ? [2] : [4, new Promise(function(t) {
                                        return a(e, void 0, void 0, function() {
                                            var e = this;
                                            return s(this, function(n) {
                                                switch (n.label) {
                                                    case 0:
                                                        return [4, Promise.all([f.AssetsManager.Instance.LoadAsset("ItemsComponent/Finger", cc.Prefab), f.AssetsManager.Instance.LoadAsset("GameUnLockPopPanel/GameUnlockFingerComponent", cc.Prefab)]).then(function(n) {
                                                            var o;
                                                            if (e.isValid)(o = e._assets).push.apply(o, n), e._fingerEffect = n[0], e._fingerPrefab = n[1], t(null);
                                                            else {
                                                                for (var r = 0; r < n.length; r++) f.AssetsManager.Instance.UnloadAsset(n[r]);
                                                                t(null)
                                                            }
                                                        })];
                                                    case 1:
                                                        return n.sent(), [2]
                                                }
                                            })
                                        })
                                    })];
                                case 1:
                                    return [2, t.sent()]
                            }
                        })
                    })
                }, t.prototype.AddFingerNode = function(e, t, n, o) {
                    return void 0 === o && (o = !1), a(this, void 0, void 0, function() {
                        var r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e ? (r = e.getChildByName("fingerModule")) ? [3, 2] : [4, this.LoadPrefab()] : [2, -1];
                                case 1:
                                    if (s.sent(), !this.isValid || !e.isValid) return [2, 0];
                                    (r = cc.instantiate(this._fingerPrefab)).name = "fingerModule", i = e.children.length, e.addChild(r, i), s.label = 2;
                                case 2:
                                    return r.active = !0, (a = this.GetStepFingerConfig(t, n)) ? (r.y += a.OffsetY, r.width = a.Size && a.Size[0] ? a.Size[0] : e.width, r.height = a.Size && a.Size[1] ? a.Size[1] : e.height) : (r.width = e.width, r.height = e.height), r.opacity = 255, this._isHaveGuide = !0, r.getComponent(_.default).Init(this._fingerEffect).SetGuidGroup(t, n).SetCallBack(this.OnClickFinger.bind(this)).SetIsDataChange(o), [2]
                            }
                        })
                    })
                }, t.prototype.GetStepFingerConfig = function(e, t) {
                    var n = I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, e);
                    if (!n) return null;
                    if (t > n.GameModuleGuideStepIds.length) return null;
                    var o = n.GameModuleGuideStepIds[t],
                        r = I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleUnlockGuideStep_Config, o);
                    return r && 2 == r.Type[0] && I.ConfigDataComponent.Instance.GetConfigById(m.GuideFingerHint_Config, r.Type[1]) || null
                }, t.prototype.OnClickFinger = function(e, t, n, o) {
                    var r = this;
                    void 0 === o && (o = !1), this.scheduleOnce(function() {
                        if (o) return n.removeFromParent(), n.destroy(), r._isHaveGuide = !1, void f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e);
                        var i = I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, e),
                            a = i.GameModuleGuideStepIds.indexOf(t);
                        if (i.KeyStep == t) {
                            var s = new d.Req_Player_CompleteGameModuleGuide;
                            s.Type = 2, s.Ids = [e], h.RpcComponent.Instance.Call(s, function() {
                                n.removeFromParent(), n.destroy(), r._isHaveGuide = !1, f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e, a)
                            })
                        } else n.removeFromParent(), n.destroy(), r._isHaveGuide = !1, f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e, a)
                    })
                }, t.prototype.ShowNPCDialogs = function(e, t, n, o) {
                    void 0 === o && (o = !1), e && 0 != e.length && (this._npcParam = [t, n], o ? this._npcParam.push(1) : this._npcParam.push(0), this._isHaveGuide = !0, this._npcDiaLogIds = e, this.OnCloseNPCDialog(), f.Game.EventDispatcher.On(y.EventKeys.EVENT_CLOSE_NPC_DIALOG, this.OnCloseNPCDialog, this))
                }, t.prototype.OnCloseNPCDialog = function() {
                    if (this._npcDiaLogIds.length <= 0) return f.Game.EventDispatcher.Off(y.EventKeys.EVENT_CLOSE_NPC_DIALOG, this.OnCloseNPCDialog, this), void this.FinishStep(this._npcParam[0], this._npcParam[1]);
                    f.UIManager.Instance.ShowUIPanel(g.PanelConfig.NPCDialog.Path, this._npcDiaLogIds.pop())
                }, t.prototype.ShowJumpPanel = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i, a;
                        return s(this, function() {
                            if (!(o = I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleUnlockGuideStep_Config, t)) || !o.Type || o.Type.length <= 1 || 3 != o.Type[0]) return [2];
                            for (r = o.Type[1], i = [], a = 2; a < o.Type.length; a++) i.push(o.Type[a]);
                            return this._openPanelDatas[v.UIUtlity.PanelMap[r].Path] = {
                                GroupId: e,
                                StepId: t,
                                IsDataChange: n
                            }, v.UIUtlity.ShowPanelById.apply(v.UIUtlity, l([r], i)), [2]
                        })
                    })
                }, t.prototype.FinishStep = function(e, t, n) {
                    var o = this;
                    if (void 0 === n && (n = !1), n) return this._isHaveGuide = !1, void f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e);
                    if (I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, e).KeyStep == t) {
                        var r = new d.Req_Player_CompleteGameModuleGuide;
                        r.Type = 2, r.Ids = [e], h.RpcComponent.Instance.Call(r, function() {
                            o.scheduleOnce(function() {
                                o._isHaveGuide = !1, f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e)
                            })
                        })
                    } else this._isHaveGuide = !1, f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e)
                }, t.prototype.ShowMandatory = function(e, t, n, o) {
                    void 0 === o && (o = !1);
                    var r = {
                        TargetNode: e,
                        GroupId: t,
                        StepId: n,
                        IsDatachenge: o,
                        CallBack: this.OnClickMandatoryFinger.bind(this),
                        IsMandatory: !0
                    };
                    f.UIManager.Instance.ShowUIPanel(g.PanelConfig.NewGameGuideFingerPanel.Path, r)
                }, t.prototype.ShoNormalFIngerPanel = function(e, t, n, o) {
                    void 0 === o && (o = !1);
                    var r = {
                        TargetNode: e,
                        GroupId: t,
                        StepId: n,
                        IsDatachenge: o,
                        CallBack: this.OnClickMandatoryFinger.bind(this),
                        IsMandatory: !1
                    };
                    f.UIManager.Instance.ShowUIPanel(g.PanelConfig.NewGameGuideFingerPanel.Path, r)
                }, t.prototype.OnClickMandatoryFinger = function(e, t, n) {
                    var o = this;
                    void 0 === n && (n = !1), this.scheduleOnce(function() {
                        if (n) return o._isHaveGuide = !1, void f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e);
                        var r = I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, e),
                            i = r.GameModuleGuideStepIds.indexOf(t);
                        if (r.KeyStep == t) {
                            var a = new d.Req_Player_CompleteGameModuleGuide;
                            a.Type = 2, a.Ids = [e], h.RpcComponent.Instance.Call(a, function() {
                                o._isHaveGuide = !1, f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e, i)
                            })
                        } else o._isHaveGuide = !1, f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e, i)
                    })
                }, t.prototype.IsFinishGuideGroupId = function(e) {
                    var t = p.DataCenter.Instance.GetSimpleData(c.UserDataKey.GameGuideArray);
                    if (!t || !t.IntArray || t.IntArray.length <= 0) return !1;
                    if (t.IntArray.includes(e)) return !0;
                    var n = I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, e);
                    if (!n || !n.AutoFinishGroupIds || n.AutoFinishGroupIds.length <= 0) return !1;
                    for (var o = 0; o < n.AutoFinishGroupIds.length; o++)
                        if (t.IntArray.includes(n.AutoFinishGroupIds[o])) return !0;
                    return !1
                }, t.prototype.FinishGuideStep = function(e) {
                    f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e)
                }, t.prototype.DoGuideJob = function(e, t, o, r, i) {
                    if (void 0 === r && (r = !1), void 0 === i && (i = !1), e <= 0) return -2;
                    var a = I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, e);
                    if (!a) return -2;
                    if (t >= a.GameModuleGuideStepIds.length) return -2;
                    var s = I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleUnlockGuideStep_Config, a.GameModuleGuideStepIds[t]);
                    if (!s) return -2;
                    if (2 == s.Type[0] && !o) return -2;
                    var l = a.GameModuleGuideStepIds[t];
                    switch (s.Type[0]) {
                        case 1:
                            n.Instance.ShowNPCDialogs([s.Type[1]], e, l), t++;
                            break;
                        case 2:
                            n.Instance.AddFingerNode(o, e, l, r), t++;
                        case 3:
                            n.Instance.ShowJumpPanel(e, l, r), t++;
                            break;
                        case 4:
                            n.Instance.ShowMandatory(o, e, l, r), t++
                    }
                    return 1
                }, t.prototype.GetCurrentGroupId = function(e, t, n) {
                    if (void 0 === n && (n = 0), !e || e.length <= 0) return 0;
                    for (var o = 0 + n; o < e.length; o++) {
                        var r = I.ConfigDataComponent.Instance.GetConfigById(m.GameModuleGuideGroup_Config, e[o]);
                        if (r && (t || !this.IsFinishGuideGroupId(e[o]))) {
                            for (var i = !0, a = 0; a < r.Trigger.length; a++)
                                if (!this.IsTrigger(r.Trigger[a].Items)) {
                                    i = !1;
                                    break
                                } if (i) return e[o]
                        }
                    }
                    return 0
                }, t.prototype.IsTrigger = function(e) {
                    if (!e || e.length <= 0) return !0;
                    var t = !1;
                    switch (e[0]) {
                        case 1:
                            var n = e[1];
                            if (!n) break;
                            if (u.default.Instance.IsGameModuleOpen(n) && u.default.Instance.IsGameModuleUnlock(n)[0]) return !0;
                            break;
                        case 2:
                            var o = p.DataCenter.Instance.GetDataList(d.MagicCircle_Model);
                            if (!o || o.length <= 0) return !1;
                            for (var r = 0; r < o.length; r++)
                                if (o[r].HeroId) return !1;
                            t = !0;
                            break;
                        case 3:
                            t = p.DataCenter.Instance.GetSpecialRedDot(C.SpecialRedDotType.SendAllianceRedPacket) > 0;
                            break;
                        case 4:
                            t = p.DataCenter.Instance.GetSpecialRedDot(C.SpecialRedDotType.ReceiveNorAllianceRedPacket) > 0;
                            break;
                        case 5:
                            var i = !1,
                                a = I.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroPutOnArtefactStar"),
                                s = p.DataCenter.Instance.GetDataList(d.UserHero_Model);
                            for (r = 0; r < s.length; r++)
                                if (s[r].StarLevel >= a) {
                                    i = !0;
                                    break
                                } if (i) {
                                var l = !1,
                                    c = I.ConfigDataComponent.Instance.GetArrayConfig(m.Artefact_Config);
                                for (r = 0; r < c.length; r++) {
                                    var h = c[r],
                                        f = p.DataCenter.Instance.GetDataById(d.Artefact_Model, h.Id);
                                    if (f && f.Owners && f.Owners.length > 0)
                                        for (var y = 0; y < f.Owners.length; y++)
                                            if (f.Owners[y]) {
                                                l = !0;
                                                break
                                            }
                                }
                                t = !l
                            } else t = !1
                    }
                    return t
                }, t.prototype.ReMoveFinger = function(e, t) {
                    var n = e.getChildByName("fingerModule");
                    if (n && (n.removeFromParent(), n.destroy()), t) {
                        var o = n.getComponent(_.default);
                        f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, o.GuideGropId)
                    }
                }, t.prototype.EmitEvent = function(e) {
                    f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e)
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) f.AssetsManager.Instance.UnloadAsset(this._assets[e])
                }, t.prototype.JumpCurGroup = function(e) {
                    void 0 === e && (e = -1), f.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, e)
                }, t.prototype.HideFinger = function(e, t) {
                    void 0 === t && (t = !0);
                    var n = e.getChildByName("fingerModule");
                    return n && (n.active = !t), n
                }, t.prototype.GetFingerComponent = function(e) {
                    var t = e.getChildByName("fingerModule");
                    return t && t.getComponent(_.default) || null
                }, t._instance = null, n = i([S], t)
            }(cc.Component));
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./GameUnlockFingerComponent": "GameUnlockFingerComponent"
    }],
    GameModuleOpenHintComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "af7acODJn5LZquX+FQhq2vE", "GameModuleOpenHintComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Tip = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    var n = this;
                    this.Tip.string = e;
                    var o = t || 10;
                    this.scheduleOnce(function() {
                        n.node.active = !1
                    }, o)
                }, i([l(cc.RichText)], t.prototype, "Tip", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    GameOPVideoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7f3c410TLtBBZZTUj2R3sKh", "GameOPVideoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Components/Components"),
            p = e("../Components/RichtextTypeWriter"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !0, !1, !0), t.OPSpine = null, t.SkipBtn = null, t.TypeWriters = [], t.ACTORLINES_TIMENODE = [.7, 3.2, 6.5, 13.2, 15.2, 28.5, 31, 34.5], t.ACTORLINES_SPEED = [580, 510, 240, 700, 500, 500, 240, 450], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OPSpine.node.active = !1, this.SkipBtn.node.on("click", this.OnSkip, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._isNewRole = t[0]
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this, t), [4, this.WaitingSeconds()];
                                case 1:
                                    return o.sent(), this.ResetState(), this._trackEntry = this.OPSpine.setAnimation(0, this.OPSpine.defaultAnimation, !1), this.OPSpine.setCompleteListener(function() {
                                        n.OnSpinePlayCompleted()
                                    }), this.SkipBtn.node.active = !0, l.AudioManager.Instance.PlayMainSceneMusic(), l.AssetsManager.Instance.LoadAsset("MainPanel/MainScenePanel", cc.Prefab), [2]
                            }
                        })
                    })
                }, t.prototype.ResetState = function() {
                    this._isPlaying = !0, this._currentStep = -1, this.OPSpine.node.active = !0, this.SkipBtn.node.active = !1
                }, t.prototype.OnSpinePlayCompleted = function() {
                    this._isPlaying = !1, this.OPSpine.setCompleteListener(null), this.OPSpine.node.active = !1, this.SkipBtn.node.active = !1, this.DelayClose(), l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_VIDEO_PLAY_COMPLETE), u.RpcComponent.Instance.ConnectServer()
                }, t.prototype.OnSkip = function() {
                    this.OnSpinePlayCompleted()
                }, t.prototype.update = function() {
                    if (this._isPlaying && this._trackEntry) {
                        var e = this._currentStep + 1;
                        if (e >= this.ACTORLINES_TIMENODE.length) return;
                        this._trackEntry.trackTime >= this.ACTORLINES_TIMENODE[e] && (this._currentStep = e, this.PlayTypeWriter())
                    }
                }, t.prototype.PlayTypeWriter = function() {
                    var e = this.TypeWriters[this._currentStep],
                        t = this.ACTORLINES_SPEED[this._currentStep];
                    e.Play(("gameOP_actorLine_" + (this._currentStep + 1)).ToUILocale(), void 0, t), this._currentStep == this.ACTORLINES_TIMENODE.length - 1 && cc.tween(e.node).delay(6.8).to(.7, {
                        opacity: 0
                    }).start()
                }, t.prototype.WaitingSeconds = function(e) {
                    return void 0 === e && (e = .5), a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function() {
                            return [2, new Promise(function(n) {
                                setTimeout(function() {
                                    t.isValid && n(void 0)
                                }, 1e3 * e)
                            })]
                        })
                    })
                }, i([f(sp.Skeleton)], t.prototype, "OPSpine", void 0), i([f(cc.Button)], t.prototype, "SkipBtn", void 0), i([f(p.default)], t.prototype, "TypeWriters", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/RichtextTypeWriter": "RichtextTypeWriter"
    }],
    GameRecord: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bf3085+No5Bt5wUOpOLWSrf", "GameRecord");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GameRecordDefine = n.GameRecordType = void 0;
        var a, s, l = e("../../EZFramework/EZFramework"),
            c = e("../Components/DataCenter"),
            u = e("../Components/Components"),
            p = e("./EventKeys"),
            d = e("../../../Proto/Static/RpcProto"),
            h = cc._decorator,
            f = h.ccclass;
        h.property,
            function(e) {
                e[e.None = 0] = "None", e[e.RunTime = 1] = "RunTime", e[e.LocalStorage = 2] = "LocalStorage", e[e.Server = 3] = "Server"
            }(a = n.GameRecordType || (n.GameRecordType = {})),
            function(e) {
                e[e.None = 0] = "None", e[e.EightDaysTip = 1] = "EightDaysTip", e[e.EightDaysRed = 2] = "EightDaysRed", e[e.MallActivityBubble = 3] = "MallActivityBubble", e[e.CrossServerChampionResult = 4] = "CrossServerChampionResult", e[e.ContinuousFight = 5] = "ContinuousFight", e[e.AllianceRankResult = 6] = "AllianceRankResult", e[e.AnnouncementShowData = 7] = "AnnouncementShowData", e[e.NewPersonalityHintRedDot = 8] = "NewPersonalityHintRedDot", e[e.DailySelectionHeroBatch = 9] = "DailySelectionHeroBatch", e[e.UpStarHeroMaterialSetting = 10] = "UpStarHeroMaterialSetting", e[e.ActivityPackPop = 11] = "ActivityPackPop", e[e.NewPersonalityHintDialog = 12] = "NewPersonalityHintDialog"
            }(s || (s = {}));
        var y = function() {
            function e() {}
            return e.G123Init = {
                Name: "G123Init",
                Type: a.LocalStorage
            }, e.ClientEvent = {
                Name: "ClientEvent",
                Type: a.LocalStorage
            }, e.TestWebSet = {
                Name: "TestWebSet",
                Type: a.LocalStorage
            }, e.LanguageType = {
                Name: "LanguageType",
                Type: a.LocalStorage,
                NeedServerAdress: !0
            }, e.ClearHolyBlessingHint = {
                Name: "ClearHolyBlessingHint",
                Type: a.RunTime
            }, e.HolyBlessingLevelHigerHint = {
                Name: "HolyBlessingLevelHigerHint",
                Type: a.RunTime
            }, e.HolyBlessingMaxLevelHint = {
                Name: "HolyBlessingMaxLevelHint",
                Type: a.RunTime
            }, e.LuckyCharmComposeTip = {
                Name: "LuckyCharmComposeTip",
                Type: a.RunTime
            }, e.WishCallCostDiamond = {
                Name: "WishCallCostDiamond",
                Type: a.RunTime
            }, e.CarnivalRedDot = {
                Name: "CarnivalRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.UpgradeStarRedDot = {
                Name: "UpgradeStarRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.MazeExploreRedDot = {
                Name: "MazeExploreRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SevenDayRedDot = {
                Name: "SevenDayRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.DailyChargeRedDot = {
                Name: "DailyChargeRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SuperFundRedDot = {
                Name: "SuperFundRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RespectFundRedDot = {
                Name: "RespectFundRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ChaosRedDot = {
                Name: "ChaosRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.CheapRedDot = {
                Name: "CheapRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.DailySignShow = {
                Name: "DailySignShow",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.OpenSlmHint = {
                Name: "OpenSlmHint",
                Type: a.RunTime
            }, e.SummonCostDiamondHint = {
                Name: "SummonCostDiamondHint",
                Type: a.RunTime
            }, e.SkipSecretBattle = {
                Name: "SkipSecretBattle",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SkipCrossServerBattle = {
                Name: "SkipCrossServerBattle",
                Type: a.RunTime,
                NeedUID: !0
            }, e.InfiniteSummonHint = {
                Name: "InfiniteSummonHint",
                Type: a.LocalStorage
            }, e.HeroListRecommond = {
                Name: "HeroListRecommond",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.LuckyWheelAdvance10 = {
                Name: "LuckyWheelAdvance10",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.LuckyWheelNormal10 = {
                Name: "LuckyWheelNormal10",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.NewPersonality = {
                Name: "NewPersonality",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ADShowTimes = {
                Name: "ADShowTimes",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RebateSummonTime = {
                Name: "RebateSummonTime",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SeniorArenaSkipEditTeam = {
                Name: "SeniorArenaSkipEditTeam",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SeniorArenaSkipBattle = {
                Name: "SeniorArenaSkipBattle",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SeniorArenaTeamEdited = {
                Name: "SeniorArenaTeamEdited",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ModuleGuideNew = {
                Name: "ModuleGuideNew",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.QueenSummonScoreSummon = {
                Name: "QueenSummonScoreSummon",
                Type: a.RunTime,
                NeedUID: !0
            }, e.RechargeGuideRedDot = {
                Name: "RechargeGuideRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.InfiniteGiftPackRedDot = {
                Name: "InfiniteGiftPackRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.CustomGiftPackRedDot = {
                Name: "CustomGiftPackRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.FateStarBoxRedDot = {
                Name: "FateStarBoxRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ElementSummonShopRedDot = {
                Name: "ElementSummonShopRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.GiftDrawRedDot = {
                Name: "GiftDrawRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SkipFateStar = {
                Name: "SkipFateStar",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.GemComposeTip = {
                Name: "GemComposeTip",
                Type: a.LocalStorage
            }, e.MallChosenGift = {
                Name: "MallChosenGift",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SecretAreaSkipBattle = {
                Name: "SecretAreaSkipBattle",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.DailyAnnouncements = {
                Name: "DailyAnnouncements",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ADLastShowTime = {
                Name: "ADLastShowTime1",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ATReddot = {
                Name: "ATReddot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SkyChoosePopTime = {
                Name: "SkyChoosePopTime",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.MoonTakenTempleRedDot = {
                Name: "MoonTakenTempleRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ExchangeShopTime = {
                Name: "ExchangeShopTime",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.HeroSkinRedDot = {
                Name: "HeroSkinRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.WishTreeRedDot = {
                Name: "WishTreeRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SinglePagePop = {
                Name: "SinglePagePop",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SelectIntelligenceSet = {
                Name: "SelectIntelligenceSet",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AccumulateRecharge = {
                Name: "AccumulateRecharge",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AllianceTrader = {
                Name: "AllianceTrader",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ExquisiteCustomCard = {
                Name: "ExquisiteCustomCard",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.BossWarGuideTip = {
                Name: "BossWarGuideTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.BadgeCollectRedDot = {
                Name: "BadgeCollectRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.CustomizeMainSceneIdsSeen = {
                Name: "CustomizeMainSceneIdsSeen",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.EightDaysTip = {
                Name: "EightDaysTip",
                Type: a.Server,
                NeedUID: !0,
                Sid: s.EightDaysTip
            }, e.InfiniteSummonRedDot = {
                Name: "InfiniteSummonRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.HeroDungeonRedDot = {
                Name: "HeroDungeonRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ContinuousFightPanelGuideTip = {
                Name: "ContinuousFightPanelGuideTip",
                Type: a.Server,
                NeedUID: !0,
                Sid: s.ContinuousFight
            }, e.HerolistShowMode = {
                Name: "HerolistShowMode",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AllianceTalentRedDot = {
                Name: "AllianceTalentRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ElementSummonDailyRedDot = {
                Name: "ElementSummonDailyRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SortHeroSetting = {
                Name: "SortHeroSetting",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SortPetSetting = {
                Name: "SortPetSetting",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ShowBagPanelTabRedDot = {
                Name: "ShowBagPanelTabRedDot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SkipWildoutGuide = {
                Name: "SkipWildoutGuide",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AutoDecomposeStar = {
                Name: "AutoDecomposeStar",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.HeroDungeonHint = {
                Name: "HeroDungeonHint",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SkipLoverArrowTip = {
                Name: "SkipLoverArrowTip",
                Type: a.RunTime,
                NeedUID: !0
            }, e.AssistantSelect = {
                Name: "AssistantSelect",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AssistantDailyReddot = {
                Name: "AssistantDailyReddot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.CustomGiftPackPop = {
                Name: "CustomGiftPackPop",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ActivityPreviewHaveSeenInfo = {
                Name: "ActivityPreviewHaveSeenInfo",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ActivityPreviewHaveSeen = {
                Name: "ActivityPreviewHaveSeen",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.TrialHeroHint = {
                Name: "TrialHeroHint",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.TrialHeroEverydayLogin = {
                Name: "TrialHeroEverydayLogin",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.CollectionNew = {
                Name: "CollectionNew",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SkipWildoutGuideNew = {
                Name: "SkipWildoutGuideNew",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.CrossServerChampionRuleTip = {
                Name: "CrossServerChampionRuleTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.CrossServerChampionShipResultTip = {
                Name: "CrossServerChampionShipResultTip",
                Type: a.Server,
                NeedUID: !0,
                Sid: s.CrossServerChampionResult
            }, e.ChampionShipGuidTip = {
                Name: "ChampionShipGuidTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ChampionShipGuessRedDote = {
                Name: "ChampionShipGuessRedDote",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.HeroResolveSettingStar = {
                Name: "HeroResolveSettingStar",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RefreshIntelligenceTask = {
                Name: "RefreshIntelligenceTask",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RefreshLuckyWheel = {
                Name: "RefreshLuckyWheel",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ActivityStoryBuyTaskTip = {
                Name: "ActivityStoryBuyTaskTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ImportantMailDeleteCheck = {
                Name: "ImportantMailDeleteCheck",
                Type: a.RunTime,
                NeedUID: !0
            }, e.GemResetSaveCheck = {
                Name: "GemResetSaveCheck",
                Type: a.RunTime,
                NeedUID: !0
            }, e.HolyEquipDisplaceCheck = {
                Name: "HolyEquipDisplaceCheck",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ViewedHeroChange = {
                Name: "ViewedHeroChange",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SummonBoxPlayAni = {
                Name: "SummonBoxPlayAni",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.StrongholdWarHangUpDailyHint = {
                Name: "StrongholdWarHangUpDailyHint",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SummonBoxHint = {
                Name: "SummonBoxHint",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SummonBoxReset = {
                Name: "SummonBoxReset",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.StrongholdWarGuide = {
                Name: "StrongholdWarGuide",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.EightDaysPayReddot = {
                Name: "EightDaysPayReddot",
                Type: a.Server,
                NeedUID: !0,
                Sid: s.EightDaysRed
            }, e.TestTowerNextCheck = {
                Name: "TestTowerNextCheck",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.KnifeRwardReceiveCheck = {
                Name: "KnifeRwardReceiveCheck",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SoulGraphUpStar = {
                Name: "SoulGraphUpStar",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.OpenLockedBox = {
                Name: "OpenLockedBox",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AdvanceSummonHeroTen = {
                Name: "AdvanceSummonHeroTen",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.NormalSummonHeroTen = {
                Name: "NormalSummonHeroTen",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.PersonalitySummonTen = {
                Name: "PersonalitySummonTen",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ShopRefreshBtnReddot = {
                Name: "ShopRefreshBtn",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SkipStrongholdwarReviveAllTip = {
                Name: "SkipStrongholdwarReviveAllTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SecretAreaAutoSet = {
                Name: "SecretAreaAutoSet",
                Type: a.RunTime,
                NeedUID: !0
            }, e.AssBuyCartNotDiscount = {
                Name: "AssBuyCartNotDiscount",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ParanormalPuzzleQuickSet = {
                Name: "ParanormalPuzzleQuickSet",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SkipElementTowerBuyTimesTip = {
                Name: "SkipElementTowerBuyTimesTip",
                Type: a.RunTime,
                NeedUID: !0
            }, e.ElementArenaExchangeCountTip = {
                Name: "ElementArenaExchangeCountTip",
                Type: a.RunTime,
                NeedUID: !0
            }, e.FormationEquipAutoSet = {
                Name: "FormationEquipAutoSet",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SeckillGiftShowGroupArray = {
                Name: "SeckillGiftShowGroupArray",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.CashMallSelectPackMap = {
                Name: "CashMallSelectPackMap",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RunningTrainProgressData = {
                Name: "RunningTrainProgressData",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SuperPackDailyReddot = {
                Name: "SuperPackDailyReddot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RechargeFeedbackSelectTip = {
                Name: "RechargeFeedbackSelectTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RechargeFeedbackOpenTip = {
                Name: "RechargeFeedbackOpenTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.PersonalityCallCostDiamond = {
                Name: "PersonalityCallCostDiamond",
                Type: a.RunTime
            }, e.TreasureHuntOpenTip = {
                Name: "TreasureHuntOpenTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.TreasureHuntAutoTip = {
                Name: "TreasureHuntAutoTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RenewPanelTip = {
                Name: "RenewPanelTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.PaidEmojiReddot = {
                Name: "PaidEmojiReddot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.LuckyCakeSkipAni = {
                Name: "LuckyCakeSkipAni",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SecretJourneyAutoSet = {
                Name: "SecretJourneyAutoSet",
                Type: a.RunTime,
                NeedUID: !0
            }, e.SoulRecordUseMaterial = {
                Name: "SoulRecordUseMaterial",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AllZoneChampionRuleTip = {
                Name: "AllZoneChampionRuleTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AllZoneChampionShipResultTip = {
                Name: "AllZoneChampionShipResultTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AllZoneChampionShipGuessRedDote = {
                Name: "AllZoneChampionShipGuessRedDote",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.StrongholdWarEntryState = {
                Name: "StrongholdWarEntryState",
                Type: a.RunTime,
                NeedUID: !0
            }, e.StrongholdWarShowRoundEndTime = {
                Name: "StrongholdWarShowRoundEndTime",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.GlobalChampionRewardTip = {
                Name: "GlobalChampionRewardTip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ChampionShipRefresh = {
                Name: "ChampionShipRefresh",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.NoviceFormationDaily = {
                Name: "NoviceFormationDaily",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.LastSendCodeTime = {
                Name: "LastSendCodeTime",
                Type: a.LocalStorage
            }, e.BreakOutMatchRefresh = {
                Name: "BreakOutMatchRefresh",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.BreakOutMatchJumpBattle = {
                Name: "BreakOutMatchJumpBattle",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.BreakOutMatchJumpAll = {
                Name: "BreakOutMatchJumpAll",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AccountActivityDaily = {
                Name: "AccountActivityDaily",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.DailyBuffLastOpenTime = {
                Name: "DailyBuffLastOpenTime",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.NewPersonalityReddot = {
                Name: "NewPersonalityReddot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RuinsWarCampNoticeState = {
                Name: "RuinsWarCampNoticeState",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RuinsWarBattleNoticeState = {
                Name: "RuinsWarBattleNoticeState",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RuinsWarBattleStart = {
                Name: "RuinsWarBattleStart",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.RuinsWarBattleFlag = {
                Name: "RuinsWarBattleFlag",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.CutPriceGiftPackSend = {
                Name: "CutPriceGiftPackSend",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SeasonSecretJourneyFirstEnter = {
                Name: "SeasonSecretJourneyFirstEnter",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SeasonSecretJourneyMapUnlockEnter = {
                Name: "SeasonSecretJourneyMapUnlockEnter",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.TrySkinReddot = {
                Name: "TrySkinReddot",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.PiggyBankRedDot = {
                Name: "PiggyBankRedDot",
                Type: a.RunTime,
                NeedUID: !0
            }, e.ShopRefreshHint = {
                Name: "ShopRefreshHint",
                Type: a.RunTime,
                NeedUID: !0
            }, e.UseCurrencyTip = {
                Name: "UseCurrencyTip",
                Type: a.RunTime,
                NeedUID: !0
            }, e.NewPersonalityLoginShow = {
                Name: "NewPersonalityLoginShow",
                Type: a.RunTime,
                NeedUID: !0
            }, e.FirstPayPanelPopCount = {
                Name: "FirstPayPanelPopCount",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.GemComposeEpuiped = {
                Name: "GemComposeEpuiped",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.GemComposeSameType = {
                Name: "GemComposeSameType",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.GemComposeSameAttr = {
                Name: "GemComposeSameAttr",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.GemComposeSkip = {
                Name: "GemComposeSkip",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.SkipWishSummon = {
                Name: "SkipWishSummon",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.NewPersonalityShowState = {
                Name: "NewPersonalityShowState",
                Type: a.RunTime,
                NeedUID: !0
            }, e.ActivityHeroTestDaily = {
                Name: "ActivityHeroTestDaily",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.NewActivityGoToBubble = {
                Name: "NewActivityGoToBubble",
                Type: a.RunTime,
                NeedUID: !0
            }, e.MallActivityGoToBubble = {
                Name: "MallActivityGoToBubble",
                Type: a.Server,
                NeedUID: !0,
                Sid: s.MallActivityBubble
            }, e.FavorUpgradeQuickSend = {
                Name: "FavorUpgradeQuickSend",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ScratchCardNewShowState = {
                Name: "ScratchCardNewShowState",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ContinuousFightFormation = {
                Name: "ContinuousFightFormation",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AllianceMazeRedDotByFirstLogin = {
                Name: "AllianceMazeRedDotByFirstLogin",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AssaultOperationAccelerateHint = {
                Name: "AssaultOperationAccelerateHint",
                Type: a.RunTime,
                NeedUID: !0
            }, e.CrossServerAllianceWarResultTip = {
                Name: "CrossServerAllianceWarResultTip",
                Type: a.Server,
                NeedUID: !0,
                Sid: s.AllianceRankResult
            }, e.ArtifactNotice = {
                Name: "ArtifactNotice",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.ArtifactNoticeTime = {
                Name: "ArtifactNoticeTime",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.AnnouncementShowData = {
                Name: "AnnouncementShowData",
                Type: a.Server,
                NeedUID: !0,
                Sid: s.AnnouncementShowData
            }, e.HeroChaosElementHint = {
                Name: "HeroChaosElementHint",
                Type: a.LocalStorage,
                NeedUID: !0
            }, e.NewPersonalityHintRedDot = {
                Name: "NewPersonalityHintRedDot",
                Type: a.Server,
                Sid: s.NewPersonalityHintRedDot
            }, e.NewPersonalityHintDialog = {
                Name: "NewPersonalityHintDialog",
                Type: a.Server,
                Sid: s.NewPersonalityHintDialog
            }, e.UpStarHeroMaterialSetting = {
                Name: "UpStarHeroMaterialSetting",
                Type: a.Server,
                Sid: s.UpStarHeroMaterialSetting
            }, e.DailySelectionHeroBatch = {
                Name: "DailySelectionHeroBatch",
                Type: a.Server,
                NeedUID: !0,
                Sid: s.DailySelectionHeroBatch
            }, e.ActivityPackPop = {
                Name: "ActivityPackPop",
                Type: a.Server,
                NeedUID: !0,
                Sid: s.ActivityPackPop
            }, e
        }();
        n.GameRecordDefine = y;
        var g = function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            var n;
            return r(t, e), n = t, t.SetItem = function(e, t) {
                var o = this.GetKey(e);
                switch (e.Type) {
                    case a.RunTime:
                        n.RunTimeRecord[o] = t;
                        break;
                    case a.LocalStorage:
                        cc.sys.localStorage.setItem(o, t), l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_LOCAL_STORAGE, o, t);
                        break;
                    case a.Server:
                        var r = d.Req_Player_SaveClientStorage.create(),
                            i = {
                                Sid: o,
                                Value: t
                            };
                        r.Data = [i], u.RpcComponent.Instance.CallWithoutMask(r, null), c.DataCenter.Instance.SetClientStorageData(o, i.Value)
                }
            }, t.GetItem = function(e) {
                var t, o = this.GetKey(e);
                switch (e.Type) {
                    case a.RunTime:
                        t = n.RunTimeRecord[o];
                        break;
                    case a.LocalStorage:
                        t = cc.sys.localStorage.getItem(o);
                        break;
                    case a.Server:
                        var r = c.DataCenter.Instance.GetDataById(d.ClientStorage_Model, o);
                        t = r ? r.Value : null
                }
                return t
            }, t.GetKey = function(e) {
                switch (e.Type) {
                    case a.RunTime:
                    case a.LocalStorage:
                        var t = e.Name;
                        return e.NeedUID && (t += c.DataCenter.Instance.Uid), e.NeedServerAdress && (t += u.GlobalConfigComponent.Instance.ServerAddress), t;
                    case a.Server:
                        return e.Sid
                }
            }, t.RunTimeRecord = {}, n = i([f], t)
        }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../EZFramework/EZFramework": "EZFramework",
        "../Components/Components": "Components",
        "../Components/DataCenter": "DataCenter",
        "./EventKeys": "EventKeys"
    }],
    GameServerConsts: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "13c1cINafpASY1xMNKWkTFZ", "GameServerConsts"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GameLocales = n.GameChannels = n.GameCDNAddresses = n.GameServerAddresses = void 0;
        var o = function() {
            function e() {}
            return e.Development_local = "http://127.0.0.1:3021", e.Development_60 = "http://10.1.1.60:13001", e.Development_Test1 = "http://10.1.1.60:13011", e.Development_15 = "http://10.1.1.15:23021", e.LocalTest1 = "http://10.1.1.8:13021", e.LocalTest2 = "http://10.1.1.8:13022", e.PublicTest1 = "https://gtest2.veryeazy.com:13121", e.PublicTest3 = "http://gtest2.veryeazy.com:13023", e.G123Test1 = "https://test1.g123-queensblade.com:13002", e.G123Test2 = "https://test1.g123-queensblade.com:23002", e.G123Live = "https://game2.g123-queensblade.com:13002", e.VnLive = "https://server1.mongafk.com:13002", e.VnTest1 = "https://midle-test.veryeazy.com:13002", e.VnTest2 = "https://midle-test.veryeazy.com:23002", e.HighSchoolLocalTest1 = "http://10.1.1.12:13024", e.HighSchoolPublicTest1 = "https://highschool-test.g123-puyo.com:13002", e.HighSchoolPublicTest2 = "https://highschool-test.g123-puyo.com:23002", e.HighSchoolLive = "https://highschool-game1.g123-puyo.com:13002", e
        }();
        n.GameServerAddresses = o;
        var r = function() {
            function e() {}
            return e.G123Test1 = "https://cdn-stg.g123-queensblade.com/G123Test1", e.G123Test2 = "https://cdn-stg.g123-queensblade.com/G123Test2", e.G123Public = "https://cdn.g123-queensblade.com/G123Live", e.LocalTest = "http://10.1.1.12/CDN", e
        }();
        n.GameCDNAddresses = r;
        var i = function() {
            function e() {}
            return e.EzIos = "ez_ios", e.EzAndroid = "ez_android", e.G123JP_WebMobile = "g123jp_webmobile", e.VN_iOS = "vn_ios", e.VN_Android = "vn_android", e.VN_WebMobile = "vn_webmobile", e.Mainland_Check = "mainland_check", e
        }();
        n.GameChannels = i;
        var a = function() {
            function e() {}
            return e.Cn = "cn", e.En = "en", e.Jp = "jp", e.Tw = "tw", e.Ko = "ko", e.Es = "es", e.It = "it", e.Fr = "fr", e.Nl = "nl", e.Pt = "pt", e.EsES = "es-ES", e.De = "de", e.Th = "th", e.ID = "id", e.VI = "vi", e.TL = "tl", e.AR = "ar", e.SL = "sl", e.TR = "tr", e.DA = "da", e.PL = "pl", e.RU = "ru", e.SV = "sv", e.UK = "uk", e.SUPPORT_LANGUAGETYPE_G123 = [e.Jp, e.En, e.Tw, e.Ko], e
        }();
        n.GameLocales = a, cc._RF.pop()
    }, {}],
    GameSharePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5ca6PcBs5DApiKd3Jvj6Wg", "GameSharePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.label = null, t.text = "hello", t
                }
                return r(t, e), t.prototype.start = function() {}, i([l(cc.Label)], t.prototype, "label", void 0), i([l], t.prototype, "text", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    GameUnlockFingerComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ce5bfjVgsRNkrccqsJQAA7y", "GameUnlockFingerComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), Object.defineProperty(t.prototype, "GuideGropId", {
                    get: function() {
                        return this._guideGropId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this, !0), this.node._touchListener.setSwallowTouches(!1)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
                }, t.prototype.OnTouch = function() {
                    this.Event()
                }, t.prototype.Event = function() {
                    this._callBack && (this._guideGropId && this._guideStepId ? this._callBack(this._guideGropId, this._guideStepId, this.node, this._isdataChange) : null != this._moudelType && this._callBack(this._moudelType, this.node))
                }, t.prototype.Init = function(e) {
                    return this._prefab = e, this._fingerNode || (this._fingerNode = cc.instantiate(this._prefab), this._fingerNode.setParent(this.node)), this
                }, t.prototype.SetModuleType = function(e) {
                    return this._moudelType = e, this
                }, t.prototype.SetGuidGroup = function(e, t) {
                    return this._guideGropId = e, this._guideStepId = t, this
                }, t.prototype.SetCallBack = function(e) {
                    return this._callBack = e, this
                }, t.prototype.SetIsDataChange = function(e) {
                    return void 0 === e && (e = !1), this._isdataChange = e, this
                }, t.prototype.ManualClick = function() {
                    this.Event()
                }, i([s], t)
            }(cc.Component));
        n.default = l, cc._RF.pop()
    }, {}],
    GameUnlockFingerListener: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "218cfvN3iNAObeIKJrqlfW7", "GameUnlockFingerListener");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GameUnlockMoudelType = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/RpcComponent"),
            h = e("../../Components/DataCenter"),
            f = e("./GameUnlockFingerComponent"),
            y = e("../../Components/Components"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass;
        m.property,
            function(e) {
                e[e.MainStarTempleBtn = 1001] = "MainStarTempleBtn", e[e.MainCollectionHallBtn = 1002] = "MainCollectionHallBtn", e[e.MainPetBtn = 1003] = "MainPetBtn", e[e.MainAllianceBtn = 1004] = "MainAllianceBtn", e[e.MainProphetSummonBtn = 1005] = "MainProphetSummonBtn", e[e.MainItemShopBtn = 1006] = "MainItemShopBtn", e[e.MainQuickUpgradeStarBtn = 1007] = "MainQuickUpgradeStarBtn", e[e.MainAncientSacredBtn = 1008] = "MainAncientSacredBtn", e[e.WorldDailyInstanceCoinBtn = 2001] = "WorldDailyInstanceCoinBtn", e[e.WorldTestTowerBtn = 2002] = "WorldTestTowerBtn", e[e.WorldArenaBtn = 2003] = "WorldArenaBtn", e[e.WorldRelicTreasureHuntBtn = 2004] = "WorldRelicTreasureHuntBtn", e[e.WorldCrossServerArenaBtn = 2006] = "WorldCrossServerArenaBtn", e[e.WorldEndlessAbyssBtn = 2007] = "WorldEndlessAbyssBtn", e[e.BattleIntelligenceTaskBtn = 3001] = "BattleIntelligenceTaskBtn"
            }(n.GameUnlockMoudelType || (n.GameUnlockMoudelType = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._assets = [], t
            }
            var n;
            return r(t, e), n = t, Object.defineProperty(t, "Instance", {
                get: function() {
                    return null === this._instance && (this._instance = cc.find(l.SysDefine.SYS_UIROOT_NAME).addComponent(this)), this._instance
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SetMoudelIdsByPage = function() {
                var e = y.ConfigDataComponent.Instance.GetArrayConfig(c.GameModuleUnlockPop_Config);
                this._moudelIdsByPage = [
                    [],
                    [],
                    [],
                    [],
                    []
                ];
                for (var t = 0; t < e.length; t++) {
                    var n = e[t].Type - 1;
                    this._moudelIdsByPage[n].push(e[t].Id)
                }
            }, t.prototype.LoadPrefab = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._fingerEffect && this._fingerPrefab ? [2] : [4, new Promise(function(t) {
                                    return a(e, void 0, void 0, function() {
                                        var e = this;
                                        return s(this, function(n) {
                                            switch (n.label) {
                                                case 0:
                                                    return [4, Promise.all([l.AssetsManager.Instance.LoadAsset("ItemsComponent/Finger", cc.Prefab), l.AssetsManager.Instance.LoadAsset("GameUnLockPopPanel/GameUnlockFingerComponent", cc.Prefab)]).then(function(n) {
                                                        var o;
                                                        if (e.isValid)(o = e._assets).push.apply(o, n), e._fingerEffect = n[0], e._fingerPrefab = n[1], t(null);
                                                        else {
                                                            for (var r = 0; r < n.length; r++) l.AssetsManager.Instance.UnloadAsset(n[r]);
                                                            t(null)
                                                        }
                                                    })];
                                                case 1:
                                                    return n.sent(), [2]
                                            }
                                        })
                                    })
                                })];
                            case 1:
                                return [2, t.sent()]
                        }
                    })
                })
            }, Object.defineProperty(t.prototype, "CurrencyMoudleId", {
                get: function() {
                    if (this._currencyMoudelState = h.DataCenter.Instance.GetDataById(p.UserSimpleData_Model, u.UserDataKey.GameModulePopGuide), !this._currencyMoudelState || !this._currencyMoudelState.IntArray || this._currencyMoudelState.IntArray.length <= 0) return -1;
                    for (var e = 0; e < this._currencyMoudelState.IntArray.length; e++) {
                        var t = y.ConfigDataComponent.Instance.GetConfigById(c.GameModuleUnlockPop_Config, this._currencyMoudelState.IntArray[e]);
                        if (t && g.default.Instance.IsGameModuleOpen(t.GameModuleId) && !this.IsFinishByOther(this._currencyMoudelState.IntArray[e])) return this._currencyMoudelState.IntArray[e]
                    }
                    return -1
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SetPageFinger = function(e, t, n, o) {
                return void 0 === t && (t = 0), void 0 === n && (n = 0), void 0 === o && (o = 0), a(this, void 0, void 0, function() {
                    var r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return [4, this.LoadPrefab()];
                            case 1:
                                return a.sent(), this.isValid && e.isValid ? ((r = e.getChildByName("gameUnlockPopFinger")) || ((r = cc.instantiate(this._fingerPrefab)).name = "gameUnlockPopFinger", r.y += n, r.x += o, i = e.children.length, e.addChild(r, i)), this.scheduleOnce(function() {
                                    r && (r.opacity = 255)
                                }, t), r.getComponent(f.default).Init(this._fingerEffect).SetModuleType(2).SetCallBack(this.OnClickFinger.bind(this)), [2]) : [2]
                        }
                    })
                })
            }, t.prototype.SetFinger = function(e, t, o, r, i, l) {
                return void 0 === o && (o = 0), void 0 === r && (r = 0), void 0 === i && (i = 0), void 0 === l && (l = !0), a(this, void 0, void 0, function() {
                    var a, c, u, p, d, h;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return !(a = n.Instance.CurrencyMoudleId) || a < 0 || a != t ? ((c = e.getChildByName("gameUnlockPopFinger")) && c.isValid && (c.removeFromParent(), c.destroy()), [2]) : [4, this.LoadPrefab()];
                            case 1:
                                return s.sent(), this.isValid && e.isValid ? ((u = e.getChildByName("gameUnlockPopFinger")) || ((u = cc.instantiate(this._fingerPrefab)).name = "gameUnlockPopFinger", u.y += o, u.x += r, p = e.children.length, e.addChild(u, p)), u.height = e.height, u.width = e.width, this.scheduleOnce(function() {
                                    u && (u.opacity = 255)
                                }, i), d = u.getComponent(f.default), h = l ? 1 : 2, d.Init(this._fingerEffect).SetModuleType(h).SetCallBack(this.OnClickFinger.bind(this)), [2]) : [2]
                        }
                    })
                })
            }, t.prototype.RemoveFinger = function(e) {
                var t = e.getChildByName("gameUnlockPopFinger");
                t && t.isValid && (t.removeFromParent(), t.destroy())
            }, t.prototype.ComputePageLastMoudel = function(e) {
                if (this._moudelIdsByPage || this.SetMoudelIdsByPage(), !this._currencyMoudelState || !this._currencyMoudelState.IntArray || this._currencyMoudelState.IntArray.length <= 0) return -1;
                for (var t = this._moudelIdsByPage[e], n = -1, o = 0; o < this._currencyMoudelState.IntArray.length; o++) - 1 != t.indexOf(this._currencyMoudelState.IntArray[o]) && (n = this._currencyMoudelState.IntArray[o]);
                return n
            }, t.prototype.OnClickFinger = function(e, t) {
                var o = this;
                this.scheduleOnce(function() {
                    if (1 == e) {
                        var r = n.Instance.CurrencyMoudleId;
                        if (!r || r < 0) return void(t.isValid && (t.removeFromParent(), t.destroy()));
                        var i = o.GetAllFinishId();
                        i.push(r);
                        var a = new p.Req_Player_CompleteGameModuleGuide;
                        a.Type = e, a.Ids = i, d.RpcComponent.Instance.Call(a, function() {
                            t.isValid && (t.removeFromParent(), t.destroy())
                        })
                    } else t.isValid && (t.removeFromParent(), t.destroy())
                })
            }, t.prototype.IsFinishByOther = function(e) {
                var t = y.ConfigDataComponent.Instance.GetConfigById(c.GameModuleUnlockPop_Config, e),
                    n = h.DataCenter.Instance.GetDataById(p.UserSimpleData_Model, u.UserDataKey.GameGuideArray);
                if (n && n.IntArray && n.IntArray.length > 0 && t && t.GameModuleGuideGroupIds && t.GameModuleGuideGroupIds.length > 0) {
                    for (var o = !0, r = 0; r < t.GameModuleGuideGroupIds.length; r++)
                        if (!n.IntArray.includes(t.GameModuleGuideGroupIds[r])) {
                            o = !1;
                            break
                        } if (o) return !0
                }
                if (n && n.IntArray && n.IntArray.length > 0)
                    for (r = 0; r < n.IntArray.length; r++) {
                        var i = y.ConfigDataComponent.Instance.GetConfigById(c.GameModuleGuideGroup_Config, n.IntArray[r]);
                        if (i && i.ClearUnlockGuideId && i.ClearUnlockGuideId == e) return !0
                    }
                return !1
            }, t.prototype.GetAllFinishId = function() {
                var e = [];
                if (this._currencyMoudelState = h.DataCenter.Instance.GetDataById(p.UserSimpleData_Model, u.UserDataKey.GameModulePopGuide), !this._currencyMoudelState || !this._currencyMoudelState.IntArray || this._currencyMoudelState.IntArray.length <= 0) return e;
                for (var t = 0; t < this._currencyMoudelState.IntArray.length; t++) this.IsFinishByOther(this._currencyMoudelState.IntArray[t]) && e.push(this._currencyMoudelState.IntArray[t]);
                return e
            }, t.prototype.onDestroy = function() {
                for (var e = 0; e < this._assets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._assets[e])
            }, t._instance = null, n = i([I], t)
        }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "./GameUnlockFingerComponent": "GameUnlockFingerComponent"
    }],
    GameUnlockPopListener: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d1a80jSEKxNxaq7Hu3NaTG5", "GameUnlockPopListener");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../Consts/GameEventIds"),
            d = e("../../Auxiliary/GuideManager"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = cc._decorator,
            g = y.ccclass,
            m = (y.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                var n;
                return r(t, e), n = t, Object.defineProperty(t, "Instance", {
                    get: function() {
                        return null === this._instance && (this._instance = cc.find(a.SysDefine.SYS_UIROOT_NAME).addComponent(this), this.SetGameMoudelUnlockConfig()), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "PopPanelIsOpen", {
                    get: function() {
                        return this._popPanelIsOpen
                    },
                    set: function(e) {
                        this._popPanelIsOpen = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "GameModelConfig", {
                    get: function() {
                        return !n._gameMoudelUnlockStack || n._gameMoudelUnlockStack.length <= 0 ? null : n._gameMoudelUnlockStack.shift()
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "GameModelConfigSize", {
                    get: function() {
                        return !n._gameMoudelUnlockStack || n._gameMoudelUnlockStack.length <= 0 ? 0 : n._gameMoudelUnlockStack.length
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.SetGameMoudelUnlockConfig = function() {
                    n._gameMoudelUnlockConfigs = [], n._gameMoudelUnlockConfigs = c.ConfigDataComponent.Instance.GetArrayConfig(l.GameModuleUnlockPop_Config)
                }, t.prototype.RegisteEvents = function() {
                    a.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(s.GameModule_Model._n_), this.OnGameModuleChange, this), a.Game.EventDispatcher.On(f.EventKeys.EVENT_GAME_LOG_OUT, this.ResetData, this)
                }, t.prototype.UnRegisteEvents = function() {
                    a.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(s.GameModule_Model._n_), this.OnGameModuleChange, this), a.Game.EventDispatcher.Off(f.EventKeys.EVENT_GAME_LOG_OUT, this.ResetData, this)
                }, t.prototype.ResetData = function() {
                    this._isOpenMainUIPanel = !1, this._popPanelIsOpen = !1, n._gameMoudelUnlockStack = []
                }, t.prototype.FiltrationData = function() {
                    if (this._isOpenMainUIPanel && n._gameMoudelUnlockStack) {
                        for (var e = [], t = 0; t < n._gameMoudelUnlockStack.length; t++) e.push(n._gameMoudelUnlockStack[t]);
                        if (n._gameMoudelUnlockStack = [], e)
                            for (t = 0; t < e.length; t++) h.default.Instance.IsGameModuleOpen(e[t].GameModuleId) && h.default.Instance.IsGameModuleUnlock(e[t].GameModuleId)[0] && n._gameMoudelUnlockStack.push(e[t])
                    }
                }, t.prototype.OnGameModuleChange = function(e) {
                    for (var t in n._gameMoudelUnlockStack || (n._gameMoudelUnlockStack = []), e)
                        for (var o = parseInt(t), r = 0; r < n._gameMoudelUnlockConfigs.length; r++) n._gameMoudelUnlockConfigs[r].GameModuleId == o && n._gameMoudelUnlockConfigs[r].Icon && n._gameMoudelUnlockStack.push(n._gameMoudelUnlockConfigs[r]);
                    this._isOpenMainUIPanel && (this.FiltrationData(), this.ShowPopPanel())
                }, t.ClearUnlockStack = function() {
                    this._gameMoudelUnlockStack = []
                }, t.prototype.MainUIPanelIsOpen = function() {
                    var e = this;
                    this.scheduleOnce(function() {
                        e._isOpenMainUIPanel = !0, e.FiltrationData(), e.ShowPopPanel()
                    })
                }, t.prototype.ShowPopPanel = function() {
                    this._isOpenMainUIPanel && (d.default.Instance.IsInGuide ? n.ClearUnlockStack() : !n._gameMoudelUnlockStack || n._gameMoudelUnlockStack.length <= 0 || this._popPanelIsOpen || a.UIManager.Instance.ShowUIPanel(u.PanelConfig.GameUnLockPopPanel.Path))
                }, t._instance = null, t._gameMoudelUnlockStack = [], n = i([g], t)
            }(cc.Component));
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components"
    }],
    GameUnlockPopPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "20c791efOhLa6rq+vNutPeU", "GameUnlockPopPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/GameUnlockPopListener"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0), t.Title = null, t.Name = null, t.Icon = null, t.ClossBtn = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "gameUnlcokPop_title".ToUILocale(), this.ClossBtn.node.on("click", this.OnClose, this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (c.default.Instance.PopPanelIsOpen || this.SetUI(), c.default.Instance.PopPanelIsOpen = !0)
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset("GameUnLockPopPanel/Png/Icon/" + this._gameModelConfig.Icon, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.Icon.spriteFrame = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.OnClose = function() {
                    var e = c.default.Instance.GameModelConfigSize;
                    e && e > 0 ? (this.SetUI(), this.DisPlay(!1)) : (l.UIManager.Instance.BackUIPanel(), c.default.Instance.PopPanelIsOpen = !1)
                }, t.prototype.SetUI = function() {
                    this.Icon.spriteFrame = null, this._gameModelConfig = c.default.Instance.GameModelConfig, this._gameModelConfig && (this.Name.string = this._gameModelConfig.Id.ToGameUnlockPopName(), this.LoadIcon())
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Label)], t.prototype, "Name", void 0), i([d(cc.Sprite)], t.prototype, "Icon", void 0), i([d(cc.Button)], t.prototype, "ClossBtn", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/GameUnlockPopListener": "GameUnlockPopListener"
    }],
    Game: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9ce9ci9i5VOH54hJfuMSMHb", "Game");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ComponentFactory = n.Listener = n.EventEmitter = n.ObjectPool = n.ComponentQueue = n.Scene = n.EventSystem = n.Entity = n.Component = n.Game = void 0;
        var a = e("../../Util/index"),
            s = function() {
                function e() {}
                return Object.defineProperty(e, "EventSystem", {
                    get: function() {
                        return e._EventSystem || (e._EventSystem = new u), e._EventSystem
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e, "Scene", {
                    get: function() {
                        return e._Scene || (e._Scene = g.CreateWithoutPool(p, "Scene")), e._Scene
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e, "ObjectPool", {
                    get: function() {
                        return e._ObjectPool || (e._ObjectPool = g.CreateWithoutPool(h)), e._ObjectPool
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e, "EventDispatcher", {
                    get: function() {
                        return e._EventDispatcher || (e._EventDispatcher = g.CreateWithoutPool(f)), e._EventDispatcher
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.Close = function() {
                    var t, n, o;
                    null === (t = e._Scene) || void 0 === t || t.Dispose(), null === (n = e._EventDispatcher) || void 0 === n || n.Dispose(), null === (o = e._ObjectPool) || void 0 === o || o.Dispose(), e._Scene = null, e._EventDispatcher = null, e._ObjectPool = null, e._EventSystem = null
                }, e
            }();
        n.Game = s;
        var l = function() {
            function e(e) {
                void 0 === e && (e = 0), this._InstanceId = a.GenIdUtil.GenerateInstanceId(), this.Id = 0 != e ? e : this._InstanceId, this._CompName = this.constructor.CompName || "Component"
            }
            return Object.defineProperty(e.prototype, "CompName", {
                get: function() {
                    return this._CompName
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(e.prototype, "IsFromPool", {
                get: function() {
                    return this._IsFromPool
                },
                set: function(e) {
                    this._IsFromPool = e, this.IsFromPool && 0 == this._InstanceId && (this._InstanceId = a.GenIdUtil.GenerateInstanceId())
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.Init = function() {
                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                s.EventSystem.Add(this)
            }, e.prototype.InitWithParent = function(e) {
                for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                this.Parent = e, this.Init.apply(this, t)
            }, e.prototype.InitWithId = function(e) {
                for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                this.Id = e, this.Init.apply(this, t)
            }, Object.defineProperty(e.prototype, "InstanceId", {
                get: function() {
                    return this._InstanceId
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.GetParent = function() {
                return this.Parent
            }, Object.defineProperty(e.prototype, "IsDisposed", {
                get: function() {
                    return 0 == this.InstanceId
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.Dispose = function() {
                this.IsDisposed || (s.EventSystem.Remove(this.InstanceId), this._InstanceId = 0, this.IsFromPool && s.ObjectPool.Recycle(this))
            }, e.CompName = "Component", e
        }();
        n.Component = l;
        var c = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._ComponentDict = {}, t._Children = {}, t
            }
            return r(t, e), t.prototype.AddComponent = function(e) {
                for (var t, n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
                "function" == typeof e ? t = new e : "object" == typeof e && (t = e);
                var r = t.CompName;
                if (null != this._ComponentDict[r]) throw new Error("AddComponent, component already exist. type: " + r);
                return t.Parent = this, t.Init.apply(t, n), this._ComponentDict[r] = t, t
            }, t.prototype.RemoveComponent = function(e) {
                var t;
                "function" == typeof e ? t = e.CompName : "object" == typeof e ? t = e.CompName : "string" == typeof e && (t = e);
                var n = this._ComponentDict[t];
                null != n && (delete this._ComponentDict[t], n.Dispose())
            }, t.prototype.GetComponent = function(e) {
                var t;
                return "function" == typeof e ? t = e.CompName : "string" == typeof e && (t = e), this._ComponentDict[t] || null
            }, t.prototype.AddChild = function(e) {
                if (!e.IsDisposed) {
                    if (null != this._Children[e.InstanceId]) throw new Error("AddChild, component already exist. id: " + e.InstanceId);
                    return this._Children[e.InstanceId] = e, e
                }
            }, t.prototype.RemoveChild = function(e) {
                "object" == typeof e && (e = e.InstanceId), delete this._Children[e]
            }, t.prototype.Dispose = function() {
                if (!this.IsDisposed) {
                    for (var t in this._ComponentDict)
                        if (o = this._ComponentDict[t]) try {
                            o.Dispose()
                        } catch (r) {
                            console.error(r)
                        }
                    for (var n in this._ComponentDict = {}, this._Children) {
                        var o;
                        if (null != (o = this._Children[n])) {
                            if (o.IsDisposed || o.InstanceId.toString() != n) continue;
                            try {
                                o.Dispose()
                            } catch (r) {
                                console.error(r)
                            }
                        }
                    }
                    this._Children = {}, e.prototype.Dispose.call(this)
                }
            }, t.CompName = "Entity", t
        }(l);
        n.Entity = c;
        var u = function() {
            function e() {
                this._AllComponents = {}, this._StartQueen = [], this._UpdateQueenIndex = 0, this._UpdateQueen0 = [], this._UpdateQueen1 = [], this._LateUpdateQueenIndex = 0, this._LateUpdateQueen0 = [], this._LateUpdateQueen1 = [], this._LoadQueenIndex = 0, this._LoadQueen0 = [], this._LoadQueen1 = []
            }
            return e.prototype.Add = function(e) {
                this._AllComponents[e.InstanceId] = e, "function" == typeof e.OnStart && this._StartQueen.push(e.InstanceId), "function" == typeof e.OnUpdate && this.GetUpdateQueue().push(e.InstanceId), "function" == typeof e.OnLateUpdate && this.GetLateUpdateQueen().push(e.InstanceId), "function" == typeof e.OnLoad && this.GetLoadQueen().push(e.InstanceId)
            }, e.prototype.Remove = function(e) {
                delete this._AllComponents[e]
            }, e.prototype.Get = function(e) {
                return this._AllComponents[e] || null
            }, e.prototype.OnStart = function() {
                for (; this._StartQueen.length > 0;) {
                    var e = this._StartQueen.shift(),
                        t = this._AllComponents[e] || null;
                    if (null != t && !t.IsDisposed && "function" == typeof t.OnStart) try {
                        t.OnStart()
                    } catch (n) {
                        console.error(n)
                    }
                }
            }, e.prototype.OnUpdate = function(e) {
                this.OnStart();
                for (var t = this.GetUpdateQueue(), n = this.GetUpdateQueue2(); t.length > 0;) {
                    var o = t.shift(),
                        r = this._AllComponents[o] || null;
                    if (null != r && !r.IsDisposed && "function" == typeof r.OnUpdate) {
                        n.push(o);
                        try {
                            r.OnUpdate(e)
                        } catch (i) {
                            console.error(i)
                        }
                    }
                }
                this._UpdateQueenIndex++
            }, e.prototype.OnLateUpdate = function() {
                for (var e = this.GetLateUpdateQueen(), t = this.GetLateUpdateQueen2(); e.length > 0;) {
                    var n = e.shift(),
                        o = this._AllComponents[n] || null;
                    if (null != o && !o.IsDisposed && "function" == typeof o.OnLateUpdate) {
                        t.push(n);
                        try {
                            o.OnLateUpdate()
                        } catch (r) {
                            console.error(r)
                        }
                    }
                }
                this._LateUpdateQueenIndex++
            }, e.prototype.OnLoad = function() {
                for (var e = this.GetLoadQueen(), t = this.GetLateUpdateQueen2(); e.length > 0;) {
                    var n = e.shift(),
                        o = this._AllComponents[n] || null;
                    if (null != o && !o.IsDisposed && "function" == typeof o.OnLoad) {
                        t.push(n);
                        try {
                            o.OnLoad()
                        } catch (r) {
                            console.error(r)
                        }
                    }
                }
                this._LoadQueenIndex++
            }, e.prototype.GetUpdateQueue = function() {
                return this._UpdateQueenIndex % 2 == 0 ? this._UpdateQueen0 : this._UpdateQueen1
            }, e.prototype.GetUpdateQueue2 = function() {
                return this._UpdateQueenIndex % 2 == 1 ? this._UpdateQueen0 : this._UpdateQueen1
            }, e.prototype.GetLateUpdateQueen = function() {
                return this._LateUpdateQueenIndex % 2 == 0 ? this._LateUpdateQueen0 : this._LateUpdateQueen1
            }, e.prototype.GetLateUpdateQueen2 = function() {
                return this._LateUpdateQueenIndex % 2 == 1 ? this._LateUpdateQueen0 : this._LateUpdateQueen1
            }, e.prototype.GetLoadQueen = function() {
                return this._LoadQueenIndex % 2 == 0 ? this._LoadQueen0 : this._LoadQueen1
            }, e.prototype.GetLoadQueen2 = function() {
                return this._LoadQueenIndex % 2 == 1 ? this._LoadQueen0 : this._LoadQueen1
            }, e
        }();
        n.EventSystem = u;
        var p = function(e) {
            function t() {
                var t = e.call(this) || this;
                return t._CompName = "Scene", t
            }
            return r(t, e), t.prototype.Init = function(t) {
                this.Name = t, e.prototype.Init.call(this)
            }, t.prototype.Dispose = function() {
                this.IsDisposed || (this.Name = "", e.prototype.Dispose.call(this))
            }, t
        }(c);
        n.Scene = p;
        var d = function(e) {
            function t(t) {
                var n = e.call(this) || this;
                return n._Queue = [], n._TypeName = t, n
            }
            return r(t, e), Object.defineProperty(t.prototype, "TypeName", {
                get: function() {
                    return this._TypeName
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Enqueue = function(e) {
                e.Parent = this, this._Queue.push(e)
            }, t.prototype.Dequeue = function() {
                return this._Queue.length > 0 ? this._Queue.shift() : null
            }, t.prototype.Peek = function() {
                return this._Queue.length > 0 ? this._Queue[0] : null
            }, Object.defineProperty(t.prototype, "Count", {
                get: function() {
                    return this._Queue.length
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Dispose = function() {
                for (; this._Queue.length > 0;) {
                    var t = this._Queue.shift();
                    t.IsFromPool = !1, t.Dispose()
                }
                this.IsDisposed || e.prototype.Dispose.call(this)
            }, t.CompName = "ComponentQueue", t
        }(l);
        n.ComponentQueue = d;
        var h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._PoolMap = new Map, t
            }
            return r(t, e), t.prototype.Fetch = function(e) {
                var t, n = this._PoolMap.get(e.name);
                return (t = n && 0 != n.Count ? n.Dequeue() : new e).IsFromPool = !0, t
            }, t.prototype.Recycle = function(e) {
                e.Parent = this;
                var t = e.CompName,
                    n = this._PoolMap.get(t);
                n || ((n = new d(t)).Parent = this, this._PoolMap.set(t, n)), n.Enqueue(e)
            }, t.prototype.Clear = function() {
                for (var e in this._PoolMap) {
                    var t = this._PoolMap.get(e);
                    t.IsFromPool = !1, t.Dispose()
                }
                this._PoolMap.clear()
            }, t.CompName = "ObjectPool", t
        }(l);
        n.ObjectPool = h;
        var f = function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            return r(t, e), t.prototype.Init = function() {
                this._EventListeners = {}, e.prototype.Init.call(this)
            }, t.prototype.Dispose = function() {
                this.IsDisposed || (this._EventListeners = null, e.prototype.Dispose.call(this))
            }, t.prototype.On = function(e, t, n) {
                return void 0 === n && (n = null), this.AddListener(e, t, n, !1)
            }, t.prototype.Once = function(e, t, n) {
                return void 0 === n && (n = null), this.AddListener(e, t, n, !0)
            }, t.prototype.Only = function(e, t, n) {
                return void 0 === n && (n = null), this.Off(e), this.AddListener(e, t, n, !1)
            }, t.prototype.OnlyOnce = function(e, t, n) {
                return void 0 === n && (n = null), this.Off(e), this.AddListener(e, t, n, !0)
            }, t.prototype.Off = function(e, t, n) {
                void 0 === e && (e = null), void 0 === t && (t = null), this.RemoveListener(e, t, n)
            }, t.prototype.AddListener = function(e, t, n, o) {
                if (void 0 === n && (n = null), void 0 === o && (o = !1), e) {
                    var r = new y(this, e, t, n, o),
                        i = this._EventListeners[e];
                    return i ? i.push(r) : (i = [r], this._EventListeners[e] = i), r
                }
            }, t.prototype.RemoveListener = function(e, t, n) {
                if (void 0 === e && (e = null), void 0 === t && (t = null), e)
                    if ("object" == typeof e) this.Off(e.Event, e.Handler);
                    else if (this._EventListeners[e])
                    if (t) {
                        for (var o = this._EventListeners[e], r = o.length - 1; r >= 0; r--) o[r].Handler == t && (n ? o[r].Target == n && o.splice(r, 1) : o.splice(r, 1));
                        o.length <= 0 && delete this._EventListeners[e]
                    } else delete this._EventListeners[e]
            }, t.prototype.RemoveAllListeners = function() {
                this._EventListeners = {}
            }, t.prototype.Emit = function(e) {
                for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                if (this._EventListeners[e])
                    for (var o = this._EventListeners[e], r = o.length - 1; r >= 0; r--) {
                        var i = o[r];
                        if (i) {
                            i.TriggerOnce && o.splice(r, 1);
                            try {
                                i.Handler.apply(i.Target, t)
                            } catch (a) {
                                cc.error("emit event " + e + " error", a)
                            }
                        }
                    }
            }, t.CompName = "EventEmitter", t
        }(l);
        n.EventEmitter = f;
        var y = function() {
            function e(e, t, n, o, r) {
                void 0 === o && (o = null), void 0 === r && (r = !1), this._Owner = e, this._Event = t, this._Handler = n, this._Target = o, this._TriggerOnce = r
            }
            return Object.defineProperty(e.prototype, "Owner", {
                get: function() {
                    return this._Owner
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(e.prototype, "Event", {
                get: function() {
                    return this._Event
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(e.prototype, "Handler", {
                get: function() {
                    return this._Handler
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(e.prototype, "Target", {
                get: function() {
                    return this._Target
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(e.prototype, "TriggerOnce", {
                get: function() {
                    return this._TriggerOnce
                },
                enumerable: !1,
                configurable: !0
            }), e.CompName = "Listener", e
        }();
        n.Listener = y;
        var g = function() {
            function e() {}
            return e.Create = function(e) {
                for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                var o = s.ObjectPool.Fetch(e);
                return o.Init.apply(o, t), o
            }, e.CreateWithoutPool = function(e) {
                for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                var o = new e;
                return o.Init.apply(o, t), o
            }, e.CreateWithParent = function(e, t) {
                for (var n = [], o = 2; o < arguments.length; o++) n[o - 2] = arguments[o];
                var r = s.ObjectPool.Fetch(e);
                return r.InitWithParent.apply(r, i([t], n)), r
            }, e.CreateWithId = function(e, t) {
                for (var n = [], o = 2; o < arguments.length; o++) n[o - 2] = arguments[o];
                var r = s.ObjectPool.Fetch(e);
                return r.InitWithId.apply(r, i([t], n)), r
            }, e
        }();
        n.ComponentFactory = g, cc._RF.pop()
    }, {
        "../../Util/index": "index"
    }],
    GemChooseComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "de841/v5XxDkbUkX2wlBeiN", "GemChooseComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Toggles = [], t.F = null, t.type = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    var e = this;
                    this.Toggles.forEach(function(t) {
                        t.node.on("toggle", e.OnSwitchToggle, e)
                    })
                }, t.prototype.onDisable = function() {
                    var e = this;
                    this.Toggles.forEach(function(t) {
                        t.node.off("toggle", e.OnSwitchToggle, e)
                    })
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this.F && this.F(t)
                }, t.prototype.SwitchToggleByType = function(e) {
                    this.OnSwitchToggle(this.Toggles[e]), this.Toggles[e].isChecked = !0
                }, i([l({
                    type: [cc.Toggle]
                })], t.prototype, "Toggles", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    GemChooseHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e2546qEqlxKb5Mdi3yUoOa7", "GemChooseHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/CustomLayout"),
            y = e("./GemComposePanel"),
            g = e("./LuckyCharmChooseShell"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/Components"),
            _ = e("../../../Consts/Consts"),
            C = e("../Components/LuckyCharmTabComponent"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Title = null, t.ChooseLabel = null, t.ChooseValue = null, t.OrangeButtonLabel = null, t.OrangeButton = null, t.TheCL = null, t.ResetButton = null, t.SelectButtons = [], t.HintNode = null, t.HintLayout = null, t._initLayout = !0, t._selectModels = [], t._tabPrefab = null, t._selectIndex = -1, t._selectTabs = [-1, -1, -1], t._tabNodes = [], t._staticDesc = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CHECK, this.OnShellCheck, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CHECK, this.OnShellCheck, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("Gems/Components/Shell"), this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmTabComponent", cc.Prefab)]).then(function(e) {
                                        t._shellPrefab = e[0], t._tabPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this._staticDesc = ["screen_gemType".ToUILocale(), "screen_lv".ToUILocale(), "angel_toggle_0".ToUILocale()], this.Title.string = "gem_choose".ToUILocale(), this.ChooseLabel.string = "luckycharm_alreadyChosen".ToUILocale(), this.OrangeButtonLabel.string = "ok".ToUILocale(), this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.SelectButtons.forEach(function(e) {
                        e.node.on("click", t.OnSelectButtonClick, t)
                    })
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this), this._chosenModels = t[0], this._entireModels = t[1], this._showModels = this._entireModels, this._selectModels = [], this._chosenModels.forEach(function(e) {
                        n._selectModels.push(e)
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._initLayout && (this._initLayout = !1, this.TheCL.Init(this._shellPrefab)), this.UpdateCustomLayout(), this.SetSelectNode(t)
                }, t.prototype.OnOrangeButtonClick = function() {
                    y.default.S.SlotGems = this._selectModels, this._chosenModels = this._selectModels, c.UIManager.Instance.BackUIPanel()
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.TheCL && e.forEach(function(e, t) {
                        e.getComponent(g.default).Init(n._showModels[t].ItemId, n._selectModels.includes(n._showModels[t]), t), e.getComponent(g.default).SetItemTeamFlag(null != n._showModels[t].OwnerId && 0 != n._showModels[t].OwnerId), e.getComponent(g.default).SetGemAttr(n._showModels[t]), e.getComponent(g.default).SetGemSelect(n._showModels[t]), e.name = t.toString()
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    if ("ItemContainer_gem" == t.parent.name) {
                        var n = Number.parseInt(t.parent.parent.name);
                        c.UIManager.Instance.ShowUIPanel(p.PanelConfig.GemTipPanel.Path, this._showModels[n], t)
                    }
                }, t.prototype.OnShellCheck = function(e) {
                    if (e.CheckMark.active) {
                        e.SetCheckMark(!1);
                        var t = Number.parseInt(e.node.name),
                            n = this._selectModels;
                        this._selectModels = [];
                        for (var o = 0; o < n.length; o++) n[o] != this._showModels[t] && this._selectModels.push(n[o])
                    } else if (this._selectModels.length < 5) {
                        if (t = Number.parseInt(e.node.name), this._selectModels.length > 0) {
                            var r = d.ConfigDataComponent.Instance.GetConfigById(l.GemEquip_Config, this._selectModels[0].ItemId);
                            if (d.ConfigDataComponent.Instance.GetConfigById(l.GemEquip_Config, this._showModels[t].ItemId).Quality != r.Quality) return void h.UIUtlity.ShowFloatingHint("gem_choose_qualitySame".ToUILocale())
                        }
                        e.SetCheckMark(!0), this._selectModels.push(this._showModels[t])
                    } else h.UIUtlity.ShowFloatingHint("heroPalace_resolve_count_limit".ToUILocale());
                    this.ChooseValue.string = this._selectModels.length + "/5"
                }, t.prototype.OnSelectTab = function(e) {
                    if (this._selectIndex < this._selectTabs.length) {
                        if (this._selectTabs[this._selectIndex] == e) return this.HintNode.active = !1, this._selectIndex = -1, void this.SetSelectNode(!0);
                        this._selectTabs[this._selectIndex] = e, this.SetSelectTabHint(), this.FilterGemArray(), this.UpdateCustomLayout(), this._selectIndex = -1, this.HintNode.active = !1, this.SetSelectNode(!0)
                    }
                }, t.prototype.GetPropertyList = function(e) {
                    var t = [];
                    switch (e) {
                        case 0:
                            t = [-1, _.GemType.Attacking, _.GemType.Defensive, _.GemType.Special];
                            break;
                        case 1:
                            var n = d.ConfigDataComponent.Instance.GetArrayConfig(m.GemQuality_Config);
                            t = [-1], n.forEach(function(e) {
                                e.NextId > 0 && t.push(e.Id)
                            });
                            break;
                        case 2:
                            var o = d.ConfigDataComponent.Instance.GetConfigById(m.LevelParam_Config, _.LevelParamType.GemProperties);
                            t = [-1], o.Data2.forEach(function(e) {
                                t.push.apply(t, e.Items)
                            })
                    }
                    return t
                }, t.prototype.GetDesc = function(e, t) {
                    var n = "";
                    switch (e) {
                        case 0:
                            n = t < 0 ? "screen_all".ToUILocale() : ("gemTip_type" + t).ToUILocale();
                            break;
                        case 1:
                            if (t < 0) n = "screen_all".ToUILocale();
                            else {
                                var o = d.ConfigDataComponent.Instance.GetConfigById(m.GemQuality_Config, t);
                                o && (n = "screen_level".ToUILocale().Fmt(o.Id - 1))
                            }
                            break;
                        case 2:
                            if (t < 0) n = "screen_all".ToUILocale();
                            else {
                                var r = d.ConfigDataComponent.Instance.GetConfigById(m.HeroAttribute_Config, t);
                                r && (n = r.Name.ToUILocale())
                            }
                    }
                    return n
                }, t.prototype.SetHintNodePosition = function() {
                    if (this.SelectButtons[this._selectIndex]) {
                        var e = this.SelectButtons[this._selectIndex].node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            t = this.node.convertToNodeSpaceAR(e);
                        this.HintNode.x = t.x, this.HintNode.y = t.y + 40
                    }
                }, t.prototype.OnResetButtonClick = function() {
                    this._selectTabs = [-1, -1, -1], this._selectIndex = -1, this.HintNode.active = !1, this._showModels = this._entireModels, this.SetSelectNode(!1), this.UpdateCustomLayout()
                }, t.prototype.UpdateCustomLayout = function() {
                    var e = this;
                    this._showModels.length || h.UIUtlity.ShowFloatingHint("screen_no_match_gem".ToUILocale()), this._showModels.sort(function(t, n) {
                        if (e._selectModels.includes(t) && !e._selectModels.includes(n)) return -1;
                        if (!e._selectModels.includes(t) && e._selectModels.includes(n)) return 1;
                        var o = d.ConfigDataComponent.Instance.GetConfigById(l.GemEquip_Config, t.ItemId),
                            r = d.ConfigDataComponent.Instance.GetConfigById(l.GemEquip_Config, n.ItemId);
                        return o.Quality > r.Quality ? 1 : o.Quality < r.Quality ? -1 : o.Type - r.Type
                    }), this.TheCL.RenderLayOut(this._showModels.length), this.ChooseValue.string = this._selectModels.length + "/5"
                }, t.prototype.OnSelectButtonClick = function(e) {
                    var t = Number(e.node.name);
                    t == this._selectIndex ? (this._selectIndex = -1, this.HintNode.active = !1) : (this._selectIndex = t, this.HintNode.active = !0, this.InitTabNodes(), this.SetSelectTabHint(), this.SetHintNodePosition()), this.SetSelectNode(!0)
                }, t.prototype.InitTabNodes = function() {
                    this._tabNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetSelectNode = function(e) {
                    var t = this;
                    this.SelectButtons.forEach(function(n, o) {
                        var r = cc.find("Background/SelectLabel", n.node).getComponent(cc.Label);
                        if (cc.find("ArrowSprite", n.node).scaleY = t._selectIndex == o ? 1 : -1, e) {
                            var i = t.GetPropertyList(o),
                                a = i[0];
                            if (o < t._selectTabs.length) {
                                var s = t._selectTabs[o];
                                if (s < i.length && s >= 0) {
                                    a = i[s];
                                    var l = t.GetDesc(o, a);
                                    r.string = l
                                }
                            }
                        } else r.string = t._staticDesc[o]
                    })
                }, t.prototype.SetSelectTabHint = function() {
                    var e = this;
                    if (this.HintNode.active = this._selectIndex > -1, this._selectIndex > -1 && this._selectIndex < this._selectTabs.length) {
                        var t = this.GetPropertyList(this._selectIndex),
                            n = t.length;
                        t.forEach(function(t, o) {
                            if (!e._tabNodes[o]) {
                                var r = cc.instantiate(e._tabPrefab);
                                r.parent = e.HintLayout, e._tabNodes[o] = r
                            }
                            e._tabNodes[o].active = !0;
                            var i = e._selectTabs[e._selectIndex],
                                a = e.GetDesc(e._selectIndex, t);
                            e._tabNodes[o].getComponent(C.default).InitUI(i, o, a, n)
                        })
                    }
                }, t.prototype.FilterGemArray = function() {
                    var e = [],
                        t = [],
                        n = 0;
                    e = this._entireModels;
                    for (var o = function() {
                            t = [];
                            var o = r.GetPropertyList(n),
                                i = -1;
                            if (r._selectTabs[n] < o.length) {
                                var a = -1 == r._selectTabs[n] ? 0 : r._selectTabs[n];
                                i = o[a]
                            }
                            if (-1 == i) return n++, "continue";
                            switch (n) {
                                case 0:
                                    e.forEach(function(e) {
                                        d.ConfigDataComponent.Instance.GetConfigById(m.GemEquip_Config, e.ItemId).Type == i && t.push(e)
                                    });
                                    break;
                                case 1:
                                    e.forEach(function(e) {
                                        I.ConfigCacheComponent.Instance.GetGemQualityByItemId(e.ItemId) == i && t.push(e)
                                    });
                                    break;
                                case 2:
                                    e.forEach(function(e) {
                                        e.Attrs.findIndex(function(e) {
                                            return e.Items[0] == i
                                        }) > -1 && t.push(e)
                                    });
                                    break;
                                default:
                                    t = e
                            }
                            e = t, n++
                        }, r = this; n < 3;) o();
                    this._showModels = e
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Label)], t.prototype, "ChooseLabel", void 0), i([S(cc.Label)], t.prototype, "ChooseValue", void 0), i([S(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([S(cc.Button)], t.prototype, "OrangeButton", void 0), i([S(f.default)], t.prototype, "TheCL", void 0), i([S(cc.Button)], t.prototype, "ResetButton", void 0), i([S(cc.Button)], t.prototype, "SelectButtons", void 0), i([S(cc.Node)], t.prototype, "HintNode", void 0), i([S(cc.Node)], t.prototype, "HintLayout", void 0), i([b], t)
            }(c.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/LuckyCharmTabComponent": "LuckyCharmTabComponent",
        "./GemComposePanel": "GemComposePanel",
        "./LuckyCharmChooseShell": "LuckyCharmChooseShell"
    }],
    GemComposePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f6ce8OYHZdKlbOpu1Ea/alt", "GemComposePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/CurrencyBarItem"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Auxiliary/GameRecord"),
            C = e("../../../Consts/GameEventIds"),
            v = e("../../../Consts/Consts"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.QuickCombineButton = null, t.QuickCombineButtonLabel = null, t.Label0 = null, t.RectangleLabel0 = null, t.RectangleLabel1 = null, t.LeftValue = null, t.RightValue = null, t.FillButton = null, t.FillButtonLabel = null, t.TakeButton = null, t.TakeButtonLabel = null, t.SuccessTip = null, t.CostCurrencyBarContainer = null, t.AddButton = null, t.AddButtonLabel = null, t.ComposeButton = null, t.ComposeButtonLabel = null, t.InfoButton = null, t.EpuipedToggle = null, t.EpuipedLabel = null, t.SameTypeToggle = null, t.SameTypeLabel = null, t.SameAttrToggle = null, t.SameAttrLabel = null, t.ReturnButton = null, t.GemDrawButton = null, t.GemDrawButtonLabel = null, t.SlotContainerFather = null, t.SlotAddSignFather = null, t.CenterItemContainer = null, t.CenterCheck = null, t.FillAniFather = null, t.ComposeAniFather = null, t.FullScreenMask = null, t.IlluminatedButton = null, t.IlluminatedButtonLabel = null, t.AutoUnloadLabel = null, t.AutoUnloadButton = null, t.SkipToggle = null, t.SkipLabel = null, t.ConsumeLabel = null, t.ComposeSuccess = null, t._slotItems = [], t._currbars = [], t.MAX_QUALITY = 6, t.HIDE_LUCKYSTONE = !0, t._slotGems = [], t._allGems = [], t._redColor = new cc.Color(255, 91, 91), t._greenColor = new cc.Color(51, 255, 142), t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_GEM_QUICK_COMPOSE, this.RefreshCurrentShow, this), l.Game.EventDispatcher.On(C.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnItemChanges, this), this.IlluminatedButton.node.on("click", this.OnIlluminatedButtonClick, this), n.S = this
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_GEM_QUICK_COMPOSE, this.RefreshCurrentShow, this), l.Game.EventDispatcher.Off(C.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnItemChanges, this), this.IlluminatedButton.node.off("click", this.OnIlluminatedButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(c.BundlePath.ItemComponent), this.LoadDynamicAsset(c.BundlePath.CurrencyBarComponent), this.LoadDynamicAsset("LuckyCharms/Components/UI_effect_fuwen_chenggong")]).then(function(e) {
                                        t._itemPrefab = e[0], t._currencyBarPrefab = e[1], t._composeSuccessAniPrefab = e[2], d.DataCenter.Instance.SetTempData("Gem_Item", t._itemPrefab)
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "gem_compose".ToUILocale(), this.Label0.string = "gem_label0".ToUILocale(), this.RectangleLabel0.string = "gem_rectlabel0".ToUILocale().Fmt(m.CommonItemId.GemComposeJade.ToItemName()), this.RectangleLabel1.string = "luckycharm_rateOfSuccess".ToUILocale().Fmt("100%"), this.FillButtonLabel.string = "gem_putin".ToUILocale(), this.TakeButtonLabel.string = "gem_getoff".ToUILocale(), this.SuccessTip.string = "luckycharm_rateOfSuccess".ToUILocale().Fmt("0%"), this.AddButtonLabel.string = "luckycharm_addAllIngredients".ToUILocale(), this.ComposeButtonLabel.string = "compose".ToUILocale(), this.SameTypeLabel.string = "gem_addgem_sameType".ToUILocale(), this.EpuipedLabel.string = "gem_addgem_equiped".ToUILocale(), this.SameAttrLabel.string = "gem_addgem_sameAttr".ToUILocale(), this.GemDrawButtonLabel.string = "gemfurnace".ToUILocale(), this.IlluminatedButtonLabel.string = "handbook_label".ToUILocale(), this.AutoUnloadLabel.string = "gem_auto_unload".ToUILocale(), this.SkipLabel.string = "sail_skip".ToUILocale(), this.QuickCombineButtonLabel.string = "compose_auto".ToUILocale(), this.ConsumeLabel.string = "luckycharm_consume".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.AddButton.node.on("click", this.OnAddButtonClick, this), this.ComposeButton.node.on("click", this.OnComposeButtonClick, this), this.FillButton.node.on("click", this.OnFillButtonClick, this), this.TakeButton.node.on("click", this.OnTakeButtonClick, this), this.InfoButton.node.on("click", this.OnInfoButtonClick, this), this.GemDrawButton.node.on("click", this.OnGemDrawButtonClick, this), this.AutoUnloadButton.node.on("click", this.OnAutoUnloadButtonClick, this), this.QuickCombineButton.node.on("click", this.OnQuickCombineButtonClick, this);
                    for (var t = 0; t < this.SlotAddSignFather.childrenCount; t++) this.SlotAddSignFather.children[t].on(cc.Node.EventType.TOUCH_END, this.OnAddSignClick, this);
                    for (this._slotItems = [], t = 0; t < this.SlotContainerFather.childrenCount; t++)(n = cc.instantiate(this._itemPrefab)).setParent(this.SlotContainerFather.children[t]), this._slotItems[t] = n.getComponent(y.ItemComponent);
                    var n;
                    for (this.HIDE_LUCKYSTONE ? (this.RectangleLabel0.node.parent.active = !1, this.LeftValue.node.parent.parent.active = !1, this.TakeButton.node.active = !1, this.FillButton.node.active = !1, this.CenterCheck.active = !1) : ((n = cc.instantiate(this._itemPrefab)).setParent(this.CenterItemContainer), this._centerItem = n.getComponent(y.ItemComponent), this._centerItem.Init({
                            ItemId: m.CommonItemId.GemComposeJade
                        }), this.RectangleLabel0.node.parent.active = !0, this.LeftValue.node.parent.parent.active = !0), this.GemDrawButton.node.active = g.default.Instance.IsGameModuleUnlock(2022)[0], this._fillAniArray = [], t = 0; t < this.FillAniFather.childrenCount; t++) this._fillAniArray.push(this.FillAniFather.children[t].getComponent(sp.Skeleton));
                    for (this._composeAniArray = [], t = 0; t < this.ComposeAniFather.childrenCount; t++) this._composeAniArray.push(this.ComposeAniFather.children[t].getComponent(sp.Skeleton));
                    this.SetCenterCheck(!1), this.FullScreenMask.active = !1, this.SameTypeToggle.node.on("toggle", this.OnSameTypeToggleChange, this), this.SameAttrToggle.node.on("toggle", this.OnSameAttrToggleChange, this), this.SkipToggle.node.on("toggle", this.OnSkipToggleChange, this), this.EpuipedToggle.node.on("toggle", this.OnEpuipedToggleChange, this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.EpuipedToggle.isChecked = this.GetToggleState(_.GameRecordDefine.GemComposeEpuiped), this.SameTypeToggle.isChecked = this.GetToggleState(_.GameRecordDefine.GemComposeSameType), this.SameAttrToggle.isChecked = this.GetToggleState(_.GameRecordDefine.GemComposeSameAttr), this.SkipToggle.isChecked = this.GetToggleState(_.GameRecordDefine.GemComposeSkip), this.ApplySlotGems(), this.RefreshSuccessTip(), this.RefreshCenterMaterials()
                }, t.prototype.OnSameTypeToggleChange = function() {
                    _.default.SetItem(_.GameRecordDefine.GemComposeSameType, this.SameTypeToggle.isChecked)
                }, t.prototype.OnSameAttrToggleChange = function() {
                    _.default.SetItem(_.GameRecordDefine.GemComposeSameAttr, this.SameAttrToggle.isChecked)
                }, t.prototype.OnSkipToggleChange = function() {
                    _.default.SetItem(_.GameRecordDefine.GemComposeSkip, this.SkipToggle.isChecked)
                }, t.prototype.OnEpuipedToggleChange = function() {
                    _.default.SetItem(_.GameRecordDefine.GemComposeEpuiped, this.EpuipedToggle.isChecked), this.OnAutoUnloadButtonClick()
                }, t.prototype.GetToggleState = function(e) {
                    var t = _.default.GetItem(e);
                    return null == t ? e == _.GameRecordDefine.GemComposeEpuiped : JSON.parse(t)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "gem_compose_RuleMainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["gem_compose_RuleText".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnInfoButtonClick = function() {
                    var e = {
                        name: "gem_fill_RuleMainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["gem_fill_RuleText".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnGemDrawButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.HolyFurnacePanel.Path, 1)
                }, t.prototype.OnAutoUnloadButtonClick = function() {
                    this._slotGems.length > 0 && (this._slotGems = [], this.ApplySlotGems())
                }, t.prototype.OnQuickCombineButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.CommonQuickCombinePanel.Path, 1)
                }, t.prototype.OnAddButtonClick = function() {
                    var e, t, n = !1;
                    this.SameAttrToggle.isChecked ? (e = g.default.GetGemsArrayByAttr, t = "gem_notEnough_sameAttr") : this.SameTypeToggle.isChecked ? (e = g.default.GetGemsArrayByType, t = "gem_notEnough_sameType") : (e = g.default.GetGemsArrayByQuality, t = "gem_notEnough_sameQuality", n = !0);
                    var o, r = g.default.FilterAvailableGems(this.EpuipedToggle.isChecked),
                        i = e(r = g.default.FilterGemsExcludeLocked(r));
                    for (var a in i)
                        if (null == o)
                            if (n) i[a].length >= 5 && Number.parseInt(a) < this.MAX_QUALITY && (o = i[a]);
                            else {
                                var s = i[a],
                                    l = g.default.GetGemsArrayByQuality(s);
                                for (var c in l) null == o && l[c].length >= 5 && Number.parseInt(c) < this.MAX_QUALITY && (o = l[c])
                            } if (null == o) h.UIUtlity.ShowFloatingHint(t.ToUILocale());
                    else {
                        this._slotGems = [];
                        for (var u = 0; u < 5; u++) this._slotGems.push(o[u]);
                        this.ApplySlotGems(), this.SetGemOnSlot()
                    }
                }, t.prototype.OnComposeButtonClick = function() {
                    var e = this;
                    if (this._slotGems.length < 5) h.UIUtlity.ShowFloatingHint("gem_notEnough".ToUILocale());
                    else {
                        var t = this._currentConfig.ComposeData[1];
                        if (!d.DataCenter.Instance.IsItemEnough(t, this._currentConfig.ComposeData[2])) return h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t.ToItemName())), void g.default.ShowItemGetWay(t);
                        var n = [];
                        if (n[0] = {
                                Items: []
                            }, this._slotGems.forEach(function(e) {
                                n[0].Items.push(e.Sid)
                            }), g.default.Instance.CheckGemComposeQuality(n)) h.UIUtlity.ShowHintPanel(null, "luckyCharm_gemComposeQuality_hint".ToUILocale(), "", null, "", function() {
                            e.Compose()
                        });
                        else {
                            for (var o = !1, r = 0; r < this._slotGems.length; r++)
                                if (this._slotGems[r].GallerySlot > 0) {
                                    o = !0;
                                    break
                                } o ? h.UIUtlity.ShowHintPanel("", "gem_compose_hint".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                e.Compose()
                            }) : _.default.GetItem(_.GameRecordDefine.GemComposeTip) ? this.Compose() : h.UIUtlity.ShowHintPanel("", "gem_compose_query".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                e.Compose()
                            }, void 0, _.GameRecordDefine.GemComposeTip)
                        }
                    }
                }, t.prototype.OnFillButtonClick = function() {
                    if (!this._isAbsoluteAvailible) return h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(m.CommonItemId.GemComposeJade.ToItemName())), void g.default.ShowItemGetWay(m.CommonItemId.GemComposeJade);
                    this.SetCenterCheck(!0)
                }, t.prototype.OnTakeButtonClick = function() {
                    this.SetCenterCheck(!1)
                }, t.prototype.OnAddSignClick = function() {
                    var e = this;
                    this._allGems = g.default.FilterAvailableGems(this.EpuipedToggle.isChecked);
                    var t = [];
                    this._allGems.forEach(function(n) {
                        d.ConfigDataComponent.Instance.GetConfigById(p.GemEquip_Config, n.ItemId).Quality < e.MAX_QUALITY && t.push(n)
                    }), t = g.default.FilterGemsExcludeLocked(t), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.GemChooseHint.Path, this._slotGems, t)
                }, t.prototype.OnItemClick = function(e, t) {
                    "SlotItemContainers" == t.parent.parent.name && this.OnAddSignClick(null)
                }, t.prototype.RefreshCurrentShow = function() {
                    this.SlotGems = [], this.SetCenterCheck(!1)
                }, t.prototype.OnItemChanges = function(e) {
                    if (this._currentConfig)
                        for (var t in e) Number.parseInt(t) == this._currentConfig.ComposeData[1] && this.SetCurrencyBars(this._currentConfig.ComposeData[2])
                }, t.prototype.SetCurrencyBars = function(e) {
                    for (var t = [{
                            Items: [this._currentConfig.ComposeData[1], e]
                        }], n = 0; n < t.length; n++) {
                        if (null == this._currbars[n]) {
                            var o = cc.instantiate(this._currencyBarPrefab);
                            o.setParent(this.CostCurrencyBarContainer), this._currbars[n] = o.getComponent(f.default), this._currbars[n].SetFixedWidth(287)
                        }
                        this._currbars[n].node.active = !0;
                        var r = t[n].Items;
                        this._currbars[n].Init(r[0], !1, null, r[1])
                    }
                    for (this.ConsumeLabel.node.active = t.length > 1, n = t.length; n < this._currbars.length; n++) this._currbars[n].node.active = !1
                }, t.prototype.SetCenterCheck = function(e) {
                    this.HIDE_LUCKYSTONE || (this.CenterCheck.active = e, this.TakeButton.node.active = this.CenterCheck.active, this.FillButton.node.active = !this.TakeButton.node.active, this.RefreshSuccessTip())
                }, t.prototype.ApplySlotGems = function() {
                    for (var e = 0; e < this._slotGems.length; e++) this._slotItems[e].node.active = !0, this._slotItems[e].Init({
                        ItemId: this._slotGems[e].ItemId
                    }), this._slotItems[e].SetGemAttrSprite(this._slotGems[e]), this._slotItems[e].SetGemSelect(this._slotGems[e].GallerySlot > 0, "gemGallery_show".ToUILocale()), this._slotGems[e].OwnerId ? (this._slotItems[e].TeamFlag.active = !0, this._slotItems[e].TeamFlag.getComponent(cc.Sprite).spriteFrame = h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("party_tag")) : this._slotItems[e].TeamFlag.active = !1;
                    for (e = this._slotGems.length; e < this._slotItems.length; e++) this._slotItems[e].node.active = !1
                }, t.prototype.RefreshSuccessTip = function() {
                    this._slotGems.length < 5 || null == this._currentConfig ? this.SuccessTip.node.parent.active = !1 : (this.SuccessTip.node.parent.active = !0, this._successRate = this.CenterCheck.active ? 100 : this._currentConfig.ComposeData[0] / 10, this.SuccessTip.string = "luckycharm_rateOfSuccess".ToUILocale().Fmt(this._successRate + "%"), 100 === this._successRate ? this.SuccessTip.node.color = this._greenColor : this.SuccessTip.node.color = this._redColor)
                }, t.prototype.RefreshCenterMaterials = function() {
                    if (!this.HIDE_LUCKYSTONE) {
                        var e = d.DataCenter.Instance.GetItemCount(m.CommonItemId.GemComposeJade);
                        this.LeftValue.string = e.toString(), this.LeftValue.node.color = cc.Color.WHITE, this.RightValue.node.active = null != this._currentConfig, this.FillButton.node.active = null != this._currentConfig && !this.CenterCheck.active, this.TakeButton.node.active = null != this._currentConfig && this.CenterCheck.active, this._currentConfig && (this.RightValue.string = "/" + this._currentConfig.ComposeData[2], this._isAbsoluteAvailible = !0, e < this._currentConfig.ComposeData[2] && (this.LeftValue.node.color = cc.Color.RED, this._isAbsoluteAvailible = !1))
                    }
                }, t.prototype.SetGemOnSlot = function() {
                    for (var e = 0; e < this._slotGems.length; e++) this._fillAniArray[e].setAnimation(0, "Ani_UI_effect_baoshi_yijiantianchong", !1);
                    if (this._slotGems.length > 0) {
                        var t = d.ConfigDataComponent.Instance.GetConfigById(p.GemEquip_Config, this._slotGems[0].ItemId);
                        this._currentConfig = d.ConfigDataComponent.Instance.GetConfigById(p.GemQuality_Config, t.Quality), this.SetCurrencyBars(this._currentConfig.ComposeData[2]), this.RefreshSuccessTip(), this.RefreshCenterMaterials()
                    } else this._currentConfig = null
                }, t.prototype.Compose = function() {
                    var e = this,
                        t = new u.Req_Item_CommonCompose;
                    t.Materials = [{}], t.Materials[0].Items = [], this._slotGems.forEach(function(e) {
                        t.Materials[0].Items.push(e.Sid)
                    }), t.Type = v.ItemType.Gem, this.FullScreenMask.active = !0, d.RpcComponent.Instance.Call(t, function(t) {
                        if (e.SkipToggle.isChecked || e._composeAniArray.forEach(function(e) {
                                e.setAnimation(0, "Ani_UI_effect_baoshi_hecheng", !1)
                            }), e.SetCurrencyBars(e._currentConfig.ComposeData[2]), e.SkipToggle.isChecked) {
                            var n = {
                                ItemId: -t.Rewards[0].ItemId,
                                Count: 1
                            };
                            h.UIUtlity.ShwDisplayRewardPanel([n]), e.SlotGems = [], e.SetCenterCheck(!1), e.FullScreenMask.active = !1
                        } else e.scheduleOnce(function() {
                            if (null == e._composeSuccessAni) {
                                var t = cc.instantiate(e._composeSuccessAniPrefab);
                                t.setParent(e.ComposeSuccess), e._composeSuccessAni = t.getComponent(sp.Skeleton)
                            }
                            e._composeSuccessAni.setAnimation(0, "UI_effect_fuwen_chenggong", !1)
                        }, .7), e.scheduleOnce(function() {
                            var n = {
                                ItemId: -t.Rewards[0].ItemId,
                                Count: 1
                            };
                            h.UIUtlity.ShwDisplayRewardPanel([n]), e.SlotGems = [], e.SetCenterCheck(!1), e.FullScreenMask.active = !1
                        }, 2)
                    }, function() {
                        e.FullScreenMask.active = !1
                    })
                }, Object.defineProperty(t.prototype, "SlotGems", {
                    set: function(e) {
                        this._slotGems = e, this.SetGemOnSlot(), this.RefreshSuccessTip()
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.OnIlluminatedButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.GemIllustratedPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.Button)], t.prototype, "QuickCombineButton", void 0), i([w(cc.Label)], t.prototype, "QuickCombineButtonLabel", void 0), i([w(cc.Label)], t.prototype, "Label0", void 0), i([w(cc.Label)], t.prototype, "RectangleLabel0", void 0), i([w(cc.Label)], t.prototype, "RectangleLabel1", void 0), i([w(cc.Label)], t.prototype, "LeftValue", void 0), i([w(cc.Label)], t.prototype, "RightValue", void 0), i([w(cc.Button)], t.prototype, "FillButton", void 0), i([w(cc.Label)], t.prototype, "FillButtonLabel", void 0), i([w(cc.Button)], t.prototype, "TakeButton", void 0), i([w(cc.Label)], t.prototype, "TakeButtonLabel", void 0), i([w(cc.Label)], t.prototype, "SuccessTip", void 0), i([w(cc.Node)], t.prototype, "CostCurrencyBarContainer", void 0), i([w(cc.Button)], t.prototype, "AddButton", void 0), i([w(cc.Label)], t.prototype, "AddButtonLabel", void 0), i([w(cc.Button)], t.prototype, "ComposeButton", void 0), i([w(cc.Label)], t.prototype, "ComposeButtonLabel", void 0), i([w(cc.Button)], t.prototype, "InfoButton", void 0), i([w(cc.Toggle)], t.prototype, "EpuipedToggle", void 0), i([w(cc.Label)], t.prototype, "EpuipedLabel", void 0), i([w(cc.Toggle)], t.prototype, "SameTypeToggle", void 0), i([w(cc.Label)], t.prototype, "SameTypeLabel", void 0), i([w(cc.Toggle)], t.prototype, "SameAttrToggle", void 0), i([w(cc.Label)], t.prototype, "SameAttrLabel", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([w(cc.Button)], t.prototype, "GemDrawButton", void 0), i([w(cc.Label)], t.prototype, "GemDrawButtonLabel", void 0), i([w(cc.Node)], t.prototype, "SlotContainerFather", void 0), i([w(cc.Node)], t.prototype, "SlotAddSignFather", void 0), i([w(cc.Node)], t.prototype, "CenterItemContainer", void 0), i([w(cc.Node)], t.prototype, "CenterCheck", void 0), i([w(cc.Node)], t.prototype, "FillAniFather", void 0), i([w(cc.Node)], t.prototype, "ComposeAniFather", void 0), i([w(cc.Node)], t.prototype, "FullScreenMask", void 0), i([w(cc.Button)], t.prototype, "IlluminatedButton", void 0), i([w(cc.Label)], t.prototype, "IlluminatedButtonLabel", void 0), i([w(cc.Label)], t.prototype, "AutoUnloadLabel", void 0), i([w(cc.Button)], t.prototype, "AutoUnloadButton", void 0), i([w(cc.Toggle)], t.prototype, "SkipToggle", void 0), i([w(cc.Label)], t.prototype, "SkipLabel", void 0), i([w(cc.Label)], t.prototype, "ConsumeLabel", void 0), i([w(cc.Node)], t.prototype, "ComposeSuccess", void 0), n = i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    GemGalleryListComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "94df2u9QD9BVrWxt0YGfScS", "GemGalleryListComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Panel/GemInfoPanel"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.GemSprite = null, t.Add = null, t.Lock = null, t.Label1 = null, t.Label2 = null, t.Reddot = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on("click", this.ClickGem, this)
                }, t.prototype.onDisable = function() {
                    this.node.off("click", this.ClickGem, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    this._isInit || (this.Label2.string = "common_unlock".ToUILocale(), this._isInit = !0), this._basePanel = e, this._gemModel = t, this._galleryLevel = n, this._config = o, this._slotId = r, this._type = i, this.SetState(), this.SetBg(), this.SetGemIcon(), this.SetLabels(), this.SetReddot()
                }, t.prototype.SetState = function() {
                    this._galleryLevel >= this._config.Requirements ? this._gemModel ? this._state = 2 : this._state = 1 : this._state = 0, this.Lock.node.active = 0 == this._state, this.Add.node.active = 1 == this._state
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.Bg.spriteFrame = this._basePanel.PanelAtlas.getSpriteFrame("gemItemBg" + this._type), [2]
                        })
                    })
                }, t.prototype.SetGemIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.GemSprite.node.active = 2 == this._state, 2 != this._state ? [3, 2] : (this._gemSprite && (l.AssetsManager.Instance.UnloadAsset(this._gemSprite), this._gemSprite = null), e = y.default.Instance.GetItemPathById(this._gemModel.ItemId), [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)]);
                                case 1:
                                    if (t = n.sent(), !this.isValid || t.name != e) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._gemSprite = t, this.GemSprite.spriteFrame = this._gemSprite, n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetLabels = function() {
                    this.Label1.node.active = 1 == this._state || 0 == this._state && this._slotId == this._config.Id, this.Label2.node.active = 0 == this._state && this._slotId == this._config.Id, this._color1 || (this._color1 = new cc.Color(208, 208, 208)), 0 == this._state && this._slotId == this._config.Id ? (this.Label1.node.color = this._color1, this.Label1.string = "gallery_level".ToUILocale().Fmt(this._config.Requirements)) : 1 == this._state && (this._color2 || (this._color2 = new cc.Color(254, 217, 74)), this.Label1.node.color = this._color2, this.Label1.string = "gallery_set".ToUILocale()), this.Label2.node.color = this._color1
                }, t.prototype.SetReddot = function() {
                    var e = !1,
                        t = !1,
                        n = p.DataCenter.Instance.GetDataList(u.GemEquip_Model);
                    if (2 == this._state) {
                        if (n.length > 0)
                            for (var o = 0; o < n.length; o++)
                                if (p.ConfigDataComponent.Instance.GetConfigById(c.GemEquip_Config, n[o].ItemId).Type == this._type && n[o].Sid != this._gemModel.Sid && !n[o].GallerySlot && n[o].ItemId > this._gemModel.ItemId) {
                                    e = !0;
                                    break
                                }
                    } else if (1 == this._state && n.length > 0)
                        for (o = 0; o < n.length; o++)
                            if (p.ConfigDataComponent.Instance.GetConfigById(c.GemEquip_Config, n[o].ItemId).Type == this._type && !n[o].GallerySlot) {
                                t = !0;
                                break
                            } this.Reddot.active = 1 == this._state && t || e
                }, t.prototype.ClickGem = function() {
                    switch (this._state) {
                        case 0:
                            h.UIUtlity.ShowFloatingHint("gallery_limit".ToUILocale().Fmt(this._config.Requirements));
                            break;
                        case 1:
                            l.UIManager.Instance.ShowUIPanel(d.PanelConfig.GemGallerySelectPanel.Path, this._gemModel, this._config.Id, this._type);
                            break;
                        case 2:
                            l.UIManager.Instance.ShowUIPanel(d.PanelConfig.GemInfoPanel.Path, this._gemModel, !0, f.GemInfoType.GemGallery, this._config.Id)
                    }
                }, t.prototype.onDestroy = function() {
                    this._gemSprite && l.AssetsManager.Instance.UnloadAsset(this._gemSprite)
                }, i([I(cc.Sprite)], t.prototype, "Bg", void 0), i([I(cc.Sprite)], t.prototype, "GemSprite", void 0), i([I(cc.Sprite)], t.prototype, "Add", void 0), i([I(cc.Sprite)], t.prototype, "Lock", void 0), i([I(cc.Label)], t.prototype, "Label1", void 0), i([I(cc.Label)], t.prototype, "Label2", void 0), i([I(cc.Node)], t.prototype, "Reddot", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/GemInfoPanel": "GemInfoPanel"
    }],
    GemGalleryListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4199cfihcBNpLyND4fGVw1Q", "GemGalleryListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/CustomLayout"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/GemGalleryListComponent"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("./GemGalleryPanel"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../Components/AttrComponent5"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.RuleButton = null, t.SubTitleRichText = null, t.GemList = null, t.BgSprite = null, t.TopBgSprite = null, t.BottomBgSprite = null, t.GemIcon = null, t.LeftButton = null, t.RightButton = null, t.AttrTitleLabel = null, t.AttrContent = null, t.DetailButton = null, t.DetailLabel = null, t.ReturnButton = null, t.NoAttrLabel = null, t.PanelAtlas = null, t._attrNodes = [], t._isLayoutInit = !1, t._types = [1, 2, 3], t._gemName = [], t._configs = [], t._showCount = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_GEM_CHANGE_REFRESH, this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_GEM_CHANGE_REFRESH, this.DisPlay, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemsComponent/AttrComponent5", cc.Prefab), n = this.LoadDynamicAsset("Gems/Components/GemGralleryListComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._attrPrefab = e[0], o._gemItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "gallery_list".ToUILocale(), this.DetailLabel.string = "PetGalleryListPanel_Total_Addtion".ToUILocale(), this._gemName = ["gallery_atk_gem".ToUILocale(), "gallery_def_gem".ToUILocale(), "gallery_special_gem".ToUILocale()], this.NoAttrLabel.string = "heroSkin_no_attr".ToUILocale(), this.AttrTitleLabel.string = "gallery_attr_up".ToUILocale(), this.LeftButton.node.on("click", this.OnLeftButtonClick, this), this.RightButton.node.on("click", this.OnRightButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._selectIndex = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetData(), this.SetSubTitle(), this.SetBg(), this.SetTopBg(), this.SetBottomBg(), this.SetAttrNode(), this.SetButtons(), this.InitCustomLayout()
                }, t.prototype.SetData = function() {
                    var e = this;
                    this._models = p.DataCenter.Instance.GetDataList(u.GemEquip_Model), this._gemTypeData = h.default.GetGemsArrayByType(this._models), this._selectType = this._types[this._selectIndex], this._configs = this.GetGemTypeSlots(this._selectType), this._gemListData = {}, this._showCount = 0, this._gemTypeData[this._selectType] && this._gemTypeData[this._selectType].forEach(function(t) {
                        t.GallerySlot > 0 && (e._showCount++, e._gemListData[t.GallerySlot] = t)
                    })
                }, t.prototype.SetSubTitle = function() {
                    this.SubTitleRichText.string = "<outline color=#202434 width=3><color=#ffffff>{0}</c><color=#33ff8e>({1}/{2})</c></o>".Fmt(this._gemName[this._selectIndex], this._showCount, this._configs.length)
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._bgSprite ? this._bgSprite.name == "Gems/PNG/GemBg" + this._selectType ? [3, 2] : (l.AssetsManager.Instance.UnloadAsset(this._bgSprite), this._bgSprite = null, e = this, [4, l.AssetsManager.Instance.LoadAsset("Gems/PNG/GemBg" + this._selectType, cc.SpriteFrame)]) : [3, 3];
                                case 1:
                                    if (e._bgSprite = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._bgSprite), [2];
                                    n.label = 2;
                                case 2:
                                    return [3, 5];
                                case 3:
                                    return t = this, [4, l.AssetsManager.Instance.LoadAsset("Gems/PNG/GemBg" + this._selectType, cc.SpriteFrame)];
                                case 4:
                                    if (t._bgSprite = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._bgSprite), [2];
                                    n.label = 5;
                                case 5:
                                    return this.BgSprite.spriteFrame = this._bgSprite, [2]
                            }
                        })
                    })
                }, t.prototype.SetTopBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._topBgSprite ? this._topBgSprite.name == "Gems/PNG/GemTop" + this._selectType ? [3, 2] : (l.AssetsManager.Instance.UnloadAsset(this._topBgSprite), this._topBgSprite = null, this.TopBgSprite.node.opacity = 0, e = this, [4, l.AssetsManager.Instance.LoadAsset("Gems/PNG/GemTop" + this._selectType, cc.SpriteFrame)]) : [3, 3];
                                case 1:
                                    if (e._topBgSprite = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._topBgSprite), [2];
                                    n.label = 2;
                                case 2:
                                    return [3, 5];
                                case 3:
                                    return t = this, [4, l.AssetsManager.Instance.LoadAsset("Gems/PNG/GemTop" + this._selectType, cc.SpriteFrame)];
                                case 4:
                                    if (t._topBgSprite = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._topBgSprite), [2];
                                    n.label = 5;
                                case 5:
                                    return this.TopBgSprite.node.opacity = 255, this.TopBgSprite.spriteFrame = this._topBgSprite, [2]
                            }
                        })
                    })
                }, t.prototype.SetBottomBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.GemIcon.spriteFrame = this.PanelAtlas.getSpriteFrame("typeBg" + this._selectType), this._bottomBgSprite ? this._bottomBgSprite.name == "Gems/PNG/GemBottom" + this._selectType ? [3, 2] : (l.AssetsManager.Instance.UnloadAsset(this._bottomBgSprite), this._bottomBgSprite = null, this.BottomBgSprite.node.opacity = 0, e = this, [4, l.AssetsManager.Instance.LoadAsset("Gems/PNG/GemBottom" + this._selectType, cc.SpriteFrame)]) : [3, 3];
                                case 1:
                                    if (e._bottomBgSprite = n.sent(), !this._bottomBgSprite.isValid) return l.AssetsManager.Instance.UnloadAsset(this._bottomBgSprite), [2];
                                    n.label = 2;
                                case 2:
                                    return [3, 5];
                                case 3:
                                    return t = this, [4, l.AssetsManager.Instance.LoadAsset("Gems/PNG/GemBottom" + this._selectType, cc.SpriteFrame)];
                                case 4:
                                    if (t._bottomBgSprite = n.sent(), !this._bottomBgSprite.isValid) return l.AssetsManager.Instance.UnloadAsset(this._bottomBgSprite), [2];
                                    n.label = 5;
                                case 5:
                                    return this.BottomBgSprite.node.opacity = 255, this.BottomBgSprite.spriteFrame = this._bottomBgSprite, [2]
                            }
                        })
                    })
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.GemList.Init(this._gemItemPrefab)), this.GemList.RenderLayOut(this._configs.length)
                }, t.prototype.SetAttrNode = function() {
                    this._attrNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var e = {};
                    for (var t in this._gemListData) {
                        var n = this._gemListData[t].ItemId;
                        p.ConfigDataComponent.Instance.GetConfigById(c.GemEquip_Config, n).AttrsGallery.forEach(function(t) {
                            e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1]
                        })
                    }
                    var o = 0;
                    for (var t in e) {
                        if (!this._attrNodes[o]) {
                            var r = cc.instantiate(this._attrPrefab);
                            r.parent = this.AttrContent, this._attrNodes[o] = r
                        }
                        this._attrNodes[o].active = !0, this._attrNodes[o].getComponent(C.default).Init(Number(t), e[t], {
                            NodeWidth: 480,
                            ValueNodeWidth: 251,
                            AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                        }), o++
                    }
                    this.NoAttrLabel.node.active = 0 == o
                }, t.prototype.SetButtons = function() {
                    this.LeftButton.node.active = this._selectIndex > 0, this.RightButton.node.active = this._selectIndex < this._types.length - 1
                }, t.prototype.FindFirstLockSlot = function() {
                    for (var e = 0, t = p.DataCenter.Instance.GetSimpleData(m.UserDataKey.GemGalleryLevel), n = t && t.V ? t.V : 0, o = 0; o < this._configs.length; o++)
                        if (n < this._configs[o].Requirements) {
                            e = this._configs[o].Id;
                            break
                        } return e
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (this.GemList == t) {
                        var o = p.DataCenter.Instance.GetSimpleData(m.UserDataKey.GemGalleryLevel),
                            r = o && o.V ? o.V : 0,
                            i = this.FindFirstLockSlot();
                        e.forEach(function(e, t) {
                            var o, a = n._configs[t];
                            o = n._gemListData && n._gemListData[a.Id] ? n._gemListData[a.Id] : null, e.getComponent(g.default).Init(n, o, r, a, i, n._selectType)
                        })
                    }
                }, t.prototype.GetGemTypeSlots = function(e) {
                    var t = this;
                    return this._gemSlotConfigs || (this._gemSlotConfigs = {}, p.ConfigDataComponent.Instance.GetArrayConfig(c.GemGallerySlot_Config).forEach(function(e) {
                        t._gemSlotConfigs[e.Type] ? t._gemSlotConfigs[e.Type].push(e) : t._gemSlotConfigs[e.Type] = [e]
                    })), this._gemSlotConfigs[e]
                }, t.prototype.OnLeftButtonClick = function() {
                    this._selectIndex = this._selectIndex - 1 >= 0 ? this._selectIndex - 1 : 0, this.DisPlay(!0)
                }, t.prototype.OnRightButtonClick = function() {
                    this._selectIndex = this._selectIndex + 1 <= this._types.length - 1 ? this._selectIndex + 1 : this._types.length - 1, this.DisPlay(!0)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "gallery_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["gallery_rule_content".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = I.default.GetTotalAttrData();
                    l.UIManager.Instance.ShowUIPanel(_.PanelConfig.CommonTotalAttrPanel.Path, e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._bgSprite && l.AssetsManager.Instance.UnloadAsset(this._bgSprite), this._topBgSprite && l.AssetsManager.Instance.UnloadAsset(this._topBgSprite), this._bottomBgSprite && l.AssetsManager.Instance.UnloadAsset(this._bottomBgSprite)
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.RichText)], t.prototype, "SubTitleRichText", void 0), i([S(f.default)], t.prototype, "GemList", void 0), i([S(cc.Sprite)], t.prototype, "BgSprite", void 0), i([S(cc.Sprite)], t.prototype, "TopBgSprite", void 0), i([S(cc.Sprite)], t.prototype, "BottomBgSprite", void 0), i([S(cc.Sprite)], t.prototype, "GemIcon", void 0), i([S(cc.Button)], t.prototype, "LeftButton", void 0), i([S(cc.Button)], t.prototype, "RightButton", void 0), i([S(cc.Label)], t.prototype, "AttrTitleLabel", void 0), i([S(cc.Node)], t.prototype, "AttrContent", void 0), i([S(cc.Button)], t.prototype, "DetailButton", void 0), i([S(cc.Label)], t.prototype, "DetailLabel", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([S(cc.Label)], t.prototype, "NoAttrLabel", void 0), i([S(cc.SpriteAtlas)], t.prototype, "PanelAtlas", void 0), i([b], t)
            }(l.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent5": "AttrComponent5",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/GemGalleryListComponent": "GemGalleryListComponent",
        "./GemGalleryPanel": "GemGalleryPanel"
    }],
    GemGalleryPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a28edXEJK1G0ZJ3vPVPXSx2", "GemGalleryPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../Components/AttrComponent4"),
            I = e("../Components/CurrencyBarItem"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.RuleButton = null, t.IconNames = [], t.IconCounts = [], t.GalleryButtons = [], t.GalleryAttrLabel = null, t.LevelUpNode = null, t.LevelHint = null, t.CurLv = null, t.NextLv = null, t.MaxLv = null, t.AttrScrollView = null, t.AttrContent = null, t.ConsumeContent = null, t.LevelUpButton = null, t.LevelUpLabel = null, t.DetailButton = null, t.DetailLabel = null, t.ReturnButton = null, t.MaxLevelNode = null, t.MaxLevelLabel = null, t._attrNodes = [], t._consuemNodes = [], t._models = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemsComponent/AttrComponent4", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/CurrencyBarItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._attrPrefab = e[0], o._consumePrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this);
                    var n = ["gallery_atk_gem".ToUILocale(), "gallery_def_gem".ToUILocale(), "gallery_special_gem".ToUILocale()];
                    this.Title.string = "gallery_rule_title".ToUILocale(), this.GalleryAttrLabel.string = "gallery_attr".ToUILocale(), this.DetailLabel.string = "PetGalleryListPanel_Total_Addtion".ToUILocale(), this.LevelUpLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), this.MaxLevelLabel.string = "gallery_max_level".ToUILocale(), this.LevelHint.string = "starPiece_detail_level_add".ToUILocale(), this.IconNames.forEach(function(e, t) {
                        e.string = n[t]
                    }), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.LevelUpButton.node.on("click", this.OnLevelUpButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.GalleryButtons.forEach(function(e) {
                        e.node.on("click", t.OnGalleryButtonsClick, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetGalleryData(), this.SetGemNode(), this.SetLvel(), this.SetAttrNode(), this.SetConsumeNode(), this.SetReddot()
                }, t.prototype.SetGalleryData = function() {
                    this._models = p.DataCenter.Instance.GetDataList(u.GemEquip_Model);
                    var e = p.DataCenter.Instance.GetSimpleData(h.UserDataKey.GemGalleryLevel);
                    this._curLevel = e && e.V ? e.V : 0, this._curConfig = p.ConfigDataComponent.Instance.GetConfigById(c.GemGalleryLevel_Config, this._curLevel)
                }, t.prototype.SetGemNode = function() {
                    for (var e = f.default.GetGemsArrayByType(this._models), t = function(t) {
                            var o = n.GetGemTypeSlots(t + 1),
                                r = n.IconCounts[t],
                                i = 0;
                            e[t + 1] && e[t + 1].forEach(function(e) {
                                e.GallerySlot > 0 && i++
                            }), r.string = "(" + i + "/" + o.length + ")"
                        }, n = this, o = 0; o < this.IconCounts.length; o++) t(o)
                }, t.prototype.SetLvel = function() {
                    p.ConfigDataComponent.Instance.GetConfigById(c.GemGalleryLevel_Config, this._curLevel + 1) ? (this.LevelUpNode.active = !0, this.MaxLv.node.active = !1, this.CurLv.string = "Lv." + this._curLevel, this.NextLv.string = (this._curLevel + 1).toString()) : (this.LevelUpNode.active = !1, this.MaxLv.node.active = !0, this.MaxLv.string = "Lv." + this._curLevel)
                }, t.prototype.SetAttrNode = function() {
                    var e = this;
                    this._attrNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var t = p.ConfigDataComponent.Instance.GetConfigById(c.GemGalleryLevel_Config, this._curLevel + 1);
                    if (t) {
                        var n = {},
                            o = {};
                        t.Attrs.forEach(function(e) {
                            n[e.Items[0]] ? n[e.Items[0]] += e.Items[1] : n[e.Items[0]] = e.Items[1]
                        }), this._curConfig.Attrs.forEach(function(e) {
                            n[e.Items[0]] && (n[e.Items[0]] -= e.Items[1]), o[e.Items[0]] = e.Items[1]
                        });
                        var r = 0;
                        for (var i in n) {
                            if (!this._attrNodes[r]) {
                                var a = cc.instantiate(this._attrPrefab);
                                a.parent = this.AttrContent, this._attrNodes[r] = a
                            }
                            this._attrNodes[r].active = !0, this._attrNodes[r].getComponent(m.default).Init(Number(i), o[i], {
                                NodeWidth: 946,
                                ValueNodeWidth: 548,
                                AddValue: n[i],
                                AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                            }), r++
                        }
                    } else this._curConfig.Attrs.forEach(function(t, n) {
                        if (!e._attrNodes[n]) {
                            var o = cc.instantiate(e._attrPrefab);
                            o.parent = e.AttrContent, e._attrNodes[n] = o
                        }
                        e._attrNodes[n].active = !0, e._attrNodes[n].getComponent(m.default).Init(t.Items[0], t.Items[1], {
                            NodeWidth: 946,
                            ValueNodeWidth: 548,
                            AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                        })
                    });
                    this.AttrScrollView.enabled = !1, this._curConfig && this._curConfig.Attrs.length > 2 && (this.AttrScrollView.enabled = !0)
                }, t.prototype.SetConsumeNode = function() {
                    var e = this,
                        t = p.ConfigDataComponent.Instance.GetConfigById(c.GemGalleryLevel_Config, this._curLevel + 1);
                    if (t) {
                        this.ConsumeContent.active = !0, this.LevelUpButton.node.active = !0, this.MaxLevelNode.active = !1, this._consumeData = {}, t.Materials.forEach(function(t) {
                            var n = t.Items[0],
                                o = t.Items[1];
                            e._consumeData[n] ? e._consumeData[n] += o : e._consumeData[n] = o
                        }), this._curConfig.Materials && this._curConfig.Materials.forEach(function(t) {
                            var n = t.Items[0],
                                o = t.Items[1];
                            e._consumeData[n] && (e._consumeData[n] -= o)
                        });
                        var n = 0;
                        for (var o in this._consuemNodes.forEach(function(e) {
                                e.active = !1
                            }), this._consumeData) {
                            if (!this._consuemNodes[n]) {
                                var r = cc.instantiate(this._consumePrefab);
                                r.parent = this.ConsumeContent, this._consuemNodes[n] = r
                            }
                            this._consuemNodes[n].active = !0;
                            var i = this._consuemNodes[n].getComponent(I.default);
                            i.Init(Number(o), !1, null, this._consumeData[o]), i.SetFixedWidth(224), n++
                        }
                    } else this.ConsumeContent.active = !1, this.LevelUpButton.node.active = !1, this.MaxLevelNode.active = !0
                }, t.prototype.SetReddot = function() {
                    this.CheckItemIsEnough(!1) && (g.RedDotManager.Instance.RedDot.GemGalleryLevelUp.NeedRefresh = !0), g.RedDotManager.Instance.Bind(this.LevelUpButton.node, g.RedDotManager.Instance.RedDot.GemGalleryLevelUp, 10, 10), g.RedDotManager.Instance.Bind(this.GalleryButtons[0].node, g.RedDotManager.Instance.RedDot.GemGallerySlot1, -100, -100), g.RedDotManager.Instance.Bind(this.GalleryButtons[1].node, g.RedDotManager.Instance.RedDot.GemGallerySlot2, -100, -100), g.RedDotManager.Instance.Bind(this.GalleryButtons[2].node, g.RedDotManager.Instance.RedDot.GemGallerySlot3, -100, -100)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "gallery_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["gallery_rule_content".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.CheckItemIsEnough = function(e) {
                    for (var t in this._consumeData)
                        if (!p.DataCenter.Instance.IsItemEnough(Number(t), this._consumeData[t])) return e && (d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(Number(t).ToItemName())), f.default.ShowItemGetWay(Number(t))), !1;
                    return !0
                }, t.prototype.OnLevelUpButtonClick = function() {
                    var e = this;
                    if (this.CheckItemIsEnough(!0)) {
                        var t = p.DataCenter.Instance.GetIntData(h.UserDataKey.Power),
                            n = new u.Req_Team_GemGalleryUpgradeLevel;
                        n.NewLevel = this._curLevel + 1, p.RpcComponent.Instance.Call(n, function() {
                            d.UIUtlity.ShowFloatingHint("gallery_levelUp_success".ToUILocale());
                            var n = p.DataCenter.Instance.GetIntData(h.UserDataKey.Power);
                            l.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattlePowerChangePanel.Path, t, n), e.DisPlay(!0)
                        })
                    }
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = n.GetTotalAttrData();
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonTotalAttrPanel.Path, e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnGalleryButtonsClick = function(e) {
                    var t = Number(e.node.name);
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.GemGalleryListPanel.Path, t)
                }, t.prototype.GetGemTypeSlots = function(e) {
                    var t = this;
                    return this._gemSlotConfigs || (this._gemSlotConfigs = {}, p.ConfigDataComponent.Instance.GetArrayConfig(c.GemGallerySlot_Config).forEach(function(e) {
                        t._gemSlotConfigs[e.Type] ? t._gemSlotConfigs[e.Type].push(e) : t._gemSlotConfigs[e.Type] = [e]
                    })), this._gemSlotConfigs[e]
                }, t.GetTotalAttrData = function() {
                    var e = [],
                        t = p.DataCenter.Instance.GetSimpleData(h.UserDataKey.GemGalleryLevel),
                        n = t && t.V ? t.V : 0,
                        o = p.ConfigDataComponent.Instance.GetConfigById(c.GemGalleryLevel_Config, n),
                        r = {};
                    r.Title = "gallery_all_attr_up".ToUILocale(), r.IsShowAddAttr = !0, r.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale();
                    var i = [];
                    o.Attrs.forEach(function(e) {
                        var t = {};
                        t.attrId = e.Items[0], t.attrvalue = e.Items[1], i.push(t)
                    }), r.AttrArray = i, e.push(r);
                    var a = {};
                    a.Title = "gallery_gem_attr".ToUILocale(), a.IsShowAddAttr = !0, a.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale();
                    var s = [],
                        l = {},
                        d = p.DataCenter.Instance.GetDataList(u.GemEquip_Model);
                    for (var f in d.forEach(function(e) {
                            e.GallerySlot > 0 && p.ConfigDataComponent.Instance.GetConfigById(c.GemEquip_Config, e.ItemId).AttrsGallery.forEach(function(e) {
                                l[e.Items[0]] ? l[e.Items[0]] += e.Items[1] : l[e.Items[0]] = e.Items[1]
                            })
                        }), l) {
                        var y = {};
                        y.attrId = Number(f), y.attrvalue = l[f], s.push(y)
                    }
                    return a.AttrArray = s, e.push(a), e
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Label)], t.prototype, "IconNames", void 0), i([v(cc.Label)], t.prototype, "IconCounts", void 0), i([v(cc.Button)], t.prototype, "GalleryButtons", void 0), i([v(cc.Label)], t.prototype, "GalleryAttrLabel", void 0), i([v(cc.Node)], t.prototype, "LevelUpNode", void 0), i([v(cc.Label)], t.prototype, "LevelHint", void 0), i([v(cc.Label)], t.prototype, "CurLv", void 0), i([v(cc.Label)], t.prototype, "NextLv", void 0), i([v(cc.Label)], t.prototype, "MaxLv", void 0), i([v(cc.ScrollView)], t.prototype, "AttrScrollView", void 0), i([v(cc.Node)], t.prototype, "AttrContent", void 0), i([v(cc.Node)], t.prototype, "ConsumeContent", void 0), i([v(cc.Button)], t.prototype, "LevelUpButton", void 0), i([v(cc.Label)], t.prototype, "LevelUpLabel", void 0), i([v(cc.Button)], t.prototype, "DetailButton", void 0), i([v(cc.Label)], t.prototype, "DetailLabel", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([v(cc.Node)], t.prototype, "MaxLevelNode", void 0), i([v(cc.Label)], t.prototype, "MaxLevelLabel", void 0), n = i([C], t)
            }(l.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent4": "AttrComponent4",
        "../Components/CurrencyBarItem": "CurrencyBarItem"
    }],
    GemGallerySelectListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "acb67LAkOxOYaHEBhtHpfEK", "GemGallerySelectListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../Components/ItemClickComponent"),
            c = e("../Components/ItemComponent"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/EventKeys"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.GemContainer = null, t.AttrNodes = [], t.AttrNames = [], t.AttrValues = [], t.ChangeButton = null, t.AddButton = null, t.ChangeButtonLabel = null, t.AddButtonLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ChangeButton.node.on("click", this.OnOrangeButtonClick, this), this.AddButton.node.on("click", this.OnOrangeButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.ChangeButton.node.off("click", this.OnOrangeButtonClick, this), this.AddButton.node.off("click", this.OnOrangeButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    var r = this;
                    if (this._model = e, this._slot = n, this._curModel = o, this.Name.string = e.ItemId.ToItemName(), null == this._gemItem) {
                        var i = cc.instantiate(t);
                        i.setParent(this.GemContainer), this._gemItem = i.getComponent(c.ItemComponent), this._gemItem.getComponent(l.default).enabled = !1
                    }
                    this._gemItem.Init(e, c.ItemComponentType.Gem);
                    var a = u.ConfigDataComponent.Instance.GetConfigById(p.GemEquip_Config, e.ItemId);
                    this.AttrNodes.forEach(function(e) {
                        e.active = !1
                    }), a.AttrsGallery.forEach(function(e, t) {
                        if (r.AttrNodes[t]) {
                            var n = s.default.GetHeroAttribute(e.Items[0], e.Items[1]);
                            r.AttrNodes[t].active = !0, r.AttrNames[t].string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + n.Name, r.AttrValues[t].string = s.default.GetAttrText(e.Items[0], e.Items[1])
                        }
                    }), this.AddButton.node.active = 0 == e.GallerySlot && !this._curModel, this.ChangeButton.node.active = e.GallerySlot > 0 || this._curModel && 0 == e.GallerySlot, this.ChangeButtonLabel.string = "equip_replace".ToUILocale(), this.AddButtonLabel.string = "gallery_equip".ToUILocale()
                }, t.prototype.OnOrangeButtonClick = function() {
                    var e = u.DataCenter.Instance.GetIntData(h.UserDataKey.Power),
                        t = new d.Req_Team_GemGalleryPutOn;
                    t.GemId = this._model.Sid, t.Slot = this._slot, u.RpcComponent.Instance.Call(t, function() {
                        f.UIUtlity.ShowFloatingHint("gallery_equip_success".ToUILocale());
                        var t = u.DataCenter.Instance.GetIntData(h.UserDataKey.Power);
                        a.Game.EventDispatcher.Emit(g.EventKeys.EVENT_GEM_GALLERY_SELECT_CLOSE), a.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattlePowerChangePanel.Path, e, t)
                    })
                }, i([_(cc.Label)], t.prototype, "Name", void 0), i([_(cc.Node)], t.prototype, "GemContainer", void 0), i([_(cc.Node)], t.prototype, "AttrNodes", void 0), i([_(cc.Label)], t.prototype, "AttrNames", void 0), i([_(cc.Label)], t.prototype, "AttrValues", void 0), i([_(cc.Button)], t.prototype, "ChangeButton", void 0), i([_(cc.Button)], t.prototype, "AddButton", void 0), i([_(cc.Label)], t.prototype, "ChangeButtonLabel", void 0), i([_(cc.Label)], t.prototype, "AddButtonLabel", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    GemGallerySelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c24c01c839OCJ9n6GWt5XlQ", "GemGallerySelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/CustomLayout"),
            f = e("../Components/ItemComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("./GemGallerySelectListItem"),
            I = e("../Components/AttrComponent5"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.ItemContent = null, t.GemName = null, t.TagNode = null, t.Tag = null, t.AttrNode = null, t.AttrComponents = [], t.CustomLayout = null, t.EmptyLabel = null, t._models = [], t._isLayoutInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_GEM_GALLERY_SELECT_CLOSE, this.ClosePanel, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_GEM_GALLERY_SELECT_CLOSE, this.ClosePanel, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(d.BundlePath.ItemComponent), this.LoadDynamicAsset("Gems/Components/GemGallerySelectListItem")]).then(function(e) {
                                        t._itemPrefab = e[0], t._listItemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tag.string = "gallery_cur_show".ToUILocale(), this.EmptyLabel.string = "gallery_no_select_gem".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._gemModel = t[0], this._slot = t[1], this._type = t[2]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetGemData(), this.SetGemTopInfo(), this.InitCustomLayout()
                }, t.prototype.SetGemData = function() {
                    this._gemModel && (this._curConfig = p.ConfigDataComponent.Instance.GetConfigById(c.GemEquip_Config, this._gemModel.ItemId));
                    var e = p.DataCenter.Instance.GetDataList(u.GemEquip_Model),
                        t = this._gemModel && this._gemModel.Sid > 0 ? this._gemModel.Sid : 0;
                    this._models = [];
                    for (var n = 0; n < e.length; n++) t != e[n].Sid && p.ConfigDataComponent.Instance.GetConfigById(c.GemEquip_Config, e[n].ItemId).Type == this._type && this._models.push(e[n]);
                    this._models.length > 0 && this._models.sort(function(e, t) {
                        return e.GallerySlot > 0 && !t.GallerySlot ? 1 : !e.GallerySlot && t.GallerySlot > 0 ? -1 : t.ItemId - e.ItemId
                    })
                }, t.prototype.SetGemTopInfo = function() {
                    if (this.TagNode.active = !1, this.AttrNode.active = !1, !this._gemItemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.parent = this.ItemContent, this._gemItemComponent = e.getComponent(f.ItemComponent)
                    }
                    this._gemModel ? (this.TagNode.active = !0, this.AttrNode.active = !0, this._gemItemComponent.Init(this._gemModel, f.ItemComponentType.Gem), this.GemName.node.color = y.UIUtlity.GetLabelColorByQuality(this._curConfig.Quality), this.GemName.string = this._gemModel.ItemId.ToItemName(), this.SetGemAttr()) : (this.GemName.string = "gallery_no_gem".ToUILocale(), this._gemItemComponent.SetItemSimpleState()), this.EmptyLabel.node.active = 0 == this._models.length
                }, t.prototype.SetGemAttr = function() {
                    for (var e = this, t = 0; t < this.AttrComponents.length; t++) this.AttrComponents[t].node.active = !1;
                    this._curConfig.AttrsGallery.forEach(function(t, n) {
                        e.AttrComponents[n] && (e.AttrComponents[n].node.active = !0, e.AttrComponents[n].Init(t.Items[0], t.Items[1], {
                            AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                        }))
                    })
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._listItemPrefab)), this.CustomLayout.RenderLayOut(this._models.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        e.getComponent(m.default).Init(n._models[t], n._itemPrefab, n._slot, n._gemModel)
                    })
                }, t.prototype.ClosePanel = function() {
                    l.UIManager.Instance.QuitPanelStack(this)
                }, i([v(cc.Node)], t.prototype, "ItemContent", void 0), i([v(cc.Label)], t.prototype, "GemName", void 0), i([v(cc.Node)], t.prototype, "TagNode", void 0), i([v(cc.Label)], t.prototype, "Tag", void 0), i([v(cc.Node)], t.prototype, "AttrNode", void 0), i([v(I.default)], t.prototype, "AttrComponents", void 0), i([v(h.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Label)], t.prototype, "EmptyLabel", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent5": "AttrComponent5",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./GemGallerySelectListItem": "GemGallerySelectListItem"
    }],
    GemIllustratedPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "14a07G9U8hN16fWyIqWtmK+", "GemIllustratedPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/CustomToggle"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/CustomLayout"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("./IllustratedListItem"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Title = null, t.Toggles = [], t.TheCL = null, t._initLayout = !0, t._type = 1, t.dataKey = "All_Gem_Data", t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent), this.LoadDynamicAsset("Gems/Components/IllustratedListItem")]).then(function(t) {
                                        e._itemPrefab = t[0], e._listItem = t[1]
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.Title.string = "gemIllustrated".ToUILocale();
                    for (var n = 1; n < 4; n++) {
                        var o = this.Toggles[n - 1];
                        o.Init(("gemTip_type" + n).ToUILocale()), o.node.on("toggle", this.OnToggleSwitch, this)
                    }
                    this._models = d.DataCenter.Instance.GetTempData(this.dataKey), null == this._models && (this._models = [], d.ConfigDataComponent.Instance.GetArrayConfig(u.GemEquip_Config).forEach(function(e) {
                        e.AttrLib.forEach(function(n) {
                            var o = new p.GemEquip_Model;
                            o.ItemId = e.Id, o.Attrs = [n], t._models.push(o)
                        })
                    }), this._models.sort(function(e, t) {
                        return t.ItemId - e.ItemId
                    }), d.DataCenter.Instance.SetTempData(this.dataKey, this._models))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), t[0] && (this._quality = t[0]), this._modelData = y.default.GetGemsArrayByType(this._models, this._quality)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.Toggles[0].check(), this._models = this._modelData[this._type]), this._initLayout && (this.TheCL.Init(this._listItem), this._initLayout = !1), this.TheCL.RenderLayOut(this._models.length)
                }, t.prototype.OnToggleSwitch = function(e) {
                    var t = Number.parseInt(e.name);
                    t != this._type && (this._type = t, this._models = this._modelData[t], this.TheCL.RenderLayOut(this._models.length))
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.TheCL && e.forEach(function(e, t) {
                        e.getComponent(m.default).Set(n._models[t], n._itemPrefab)
                    })
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C({
                    type: [l.default]
                })], t.prototype, "Toggles", void 0), i([C(f.default)], t.prototype, "TheCL", void 0), i([_], t)
            }(c.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./IllustratedListItem": "IllustratedListItem"
    }],
    GemInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "95058y1wddFPbzzG+zf/aKS", "GemInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GemInfoType = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/Components"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/ItemComponent"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/AttrComponent4"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.InnerGemModule = 1] = "InnerGemModule", e[e.BagGemModule = 0] = "BagGemModule"
        })(l || (l = {})),
        function(e) {
            e[e.Hero = 0] = "Hero", e[e.GemGallery = 1] = "GemGallery"
        }(c = n.GemInfoType || (n.GemInfoType = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !1), t.GemName = null, t.GemType = null, t.TypeLabel = null, t.AttrAdditionLabel = null, t.DescLabel = null, t.TakeDownButtonLabel = null, t.ChangeButtonLabel = null, t.ComposeButtonLabel = null, t.AttrComponents = [], t.SpecialAttr = null, t.ObjectDesc = null, t.ItemContainer = null, t.QuestionMarkButton = null, t.LockButton = null, t.GetWayButton = null, t.TakeDownButton = null, t.ChangeButton = null, t.ComposeButton = null, t.LockSprite = null, t.ResetButton = null, t.ResetLabel = null, t.ProcessingButton = null, t.ProcessingLabel = null, t.Layout = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(g.EventKeys.EVENT_GEM_GALLERY_SELECT_CLOSE, this.Close, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(g.EventKeys.EVENT_GEM_GALLERY_SELECT_CLOSE, this.Close, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)];
                            case 1:
                                return t._itemPrefab = o.sent(), n = this, [4, this.LoadDynamicAsset("ItemsComponent/AttrComponent4", cc.Prefab)];
                            case 2:
                                return n._attrPrefab = o.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this);
                var t = cc.instantiate(this._itemPrefab);
                t.setParent(this.ItemContainer), this._item = t.getComponent(I.ItemComponent), this.TypeLabel.string = "equip_type_tag".ToUILocale(), this.AttrAdditionLabel.string = "heroSkin_attr".ToUILocale(), this.DescLabel.string = "itemDesc".ToUILocale(), this.TakeDownButtonLabel.string = "PowerCore_Remove".ToUILocale(), this.ChangeButtonLabel.string = "equip_change".ToUILocale(), this.ComposeButtonLabel.string = "compose".ToUILocale(), this.ResetLabel.string = "gem_reset".ToUILocale(), this.ProcessingLabel.string = "gem_processing".ToUILocale(), this.QuestionMarkButton.node.on("click", this.OnQuestionMarkButtonClick, this), this.LockButton.node.on("click", this.OnLockButtonClick, this), this.GetWayButton.node.on("click", this.OnGetWayButtonClick, this), this.TakeDownButton.node.on("click", this.OnTakeDownButtonClick, this), this.ChangeButton.node.on("click", this.OnChangeButtonClick, this), this.ComposeButton.node.on("click", this.OnComposeButtonClick, this), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.ProcessingButton.node.on("click", this.OnProcessingButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), "number" == typeof t[0] ? this._model = f.DataCenter.Instance.GetDataById(h.GemEquip_Model, t[0]) : this._model = t[0], this.ChangeButton.node.active = !1, this.TakeDownButton.node.active = !1, t[1] && (this.ChangeButton.node.active = !0, this.TakeDownButton.node.active = !0), t[2] && (this._type = t[2]), t[3] && (this._slotId = t[3])
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), t) {
                    if (this._model = f.DataCenter.Instance.GetDataById(h.GemEquip_Model, this._model.Sid), !this._model) return void this.Close();
                    this.ChangeButton.node.active = this._model.OwnerId > 0, this.TakeDownButton.node.active = this._model.OwnerId > 0
                }
                this._itemId = this._model.ItemId, this._config = f.ConfigDataComponent.Instance.GetConfigById(d.GemEquip_Config, this._itemId), this._itemType = this._config.Type, this._item.Init({
                    ItemId: this._itemId
                }), this._item.SetGemAttrSprite(this._model), this.GemName.string = this._itemId.ToItemName(), this.GemType.string = ("gemTip_type" + this._itemType).ToUILocale(), this.SpecialAttr.node.parent.active = !1;
                var n = this._model.Attrs[0].Items[0],
                    o = this._model.Attrs[0].Items[1];
                this.AttrComponents[0].Init(n, o, {
                    ValueAlign: v.AttrComponent4Align.Mid,
                    NotChangeTagNodeWidth: !0
                }), this.AttrComponents[1].Init(this._config.BaseAttrs[0].Items[0], this._config.BaseAttrs[0].Items[1], {
                    ValueAlign: v.AttrComponent4Align.Mid,
                    NotChangeTagNodeWidth: !0
                }), this.ObjectDesc.string = this._itemId.ToItemDesc(), this.isLock = this._model.Locked;
                var r = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("GemDisplaceQualityLimit"),
                    i = m.default.Instance.IsGameModuleOpen(_.GameModuleType.GemDisplace),
                    a = m.default.Instance.IsGameModuleUnlock(_.GameModuleType.GemDisplace)[0];
                this.ComposeButton.node.active = this._config.Quality < r, this.ResetButton.node.active = i && a && this._config.Quality >= r;
                var s = m.default.Instance.IsGameModuleOpen(_.GameModuleType.GemUpgrade),
                    l = m.default.Instance.IsGameModuleUnlock(_.GameModuleType.GemUpgrade)[0];
                this.ProcessingButton.node.active = s && l && this._config.NextId > 0, this.SetReddot(), this.SetButtonsLayout()
            }, t.prototype.SetReddot = function() {
                C.RedDotManager.Instance.BindInstance(this.ProcessingButton.node, C.RedDotManager.Instance.InstanceRedDot.GemProcessingBtnNode, {
                    Value1: this._model.Sid
                }, 20, 20)
            }, t.prototype.SetButtonsLayout = function() {
                var e, t = 0;
                this.Layout.node.children.forEach(function(n, o) {
                    n.active && (t++, e = o)
                }), 1 == t ? (this.Layout.enabled = !1, this.Layout.node.children[e].x = 0) : this.Layout.enabled = !0
            }, t.prototype.OnQuestionMarkButtonClick = function() {
                var e = {
                    name: "bagPanel_tab_6".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["gem_RuleText".ToUILocale()]
                };
                y.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnLockButtonClick = function() {
                var e = this,
                    t = new h.Req_Item_GemLock;
                t.Locked = !this._isLocked, t.Sid = this._model.Sid, f.RpcComponent.Instance.Call(t, function() {
                    e.isLock = t.Locked;
                    var n = t.Locked ? "luckycharm_locked" : "luckycharm_unlocked";
                    y.UIUtlity.ShowFloatingHint(n.ToUILocale())
                })
            }, t.prototype.OnGetWayButtonClick = function() {
                m.default.ShowItemGetWay(this._model.ItemId)
            }, t.prototype.OnTakeDownButtonClick = function() {
                var e, t = this;
                this._type == c.GemGallery ? ((e = new h.Req_Team_GemGalleryPutOff).GemId = this._model.Sid, f.RpcComponent.Instance.Call(e, function() {
                    u.Game.EventDispatcher.Emit(g.EventKeys.EVENT_GEM_CHANGE_REFRESH), t.Close()
                })) : ((e = new h.Req_Item_GemPutOff).Sid = this._model.Sid, f.RpcComponent.Instance.Call(e, function() {
                    u.Game.EventDispatcher.Emit(g.EventKeys.EVENT_GEM_CHANGE_REFRESH), t.Close()
                }))
            }, t.prototype.OnChangeButtonClick = function() {
                if (this._type == c.GemGallery) {
                    var e = f.ConfigDataComponent.Instance.GetConfigById(d.GemEquip_Config, this._model.ItemId);
                    u.UIManager.Instance.ShowUIPanel(p.PanelConfig.GemGallerySelectPanel.Path, this._model, this._slotId, e.Type)
                } else u.UIManager.Instance.ShowUIPanel(p.PanelConfig.GemSelectHint.Path, this._model.Sid)
            }, t.prototype.OnComposeButtonClick = function() {
                this.Close(), u.UIManager.Instance.ShowUIPanel(p.PanelConfig.GemComposePanel.Path)
            }, t.prototype.OnResetButtonClick = function() {
                if (m.default.Instance.IsGameModuleOpen(_.GameModuleType.GemDisplace)) {
                    var e = m.default.Instance.IsGameModuleUnlock(_.GameModuleType.GemDisplace);
                    if (!e[0]) return y.UIUtlity.ShowFloatingHint(e[1]);
                    this._isLocked ? y.UIUtlity.ShowFloatingHint("gem_lock_limit".ToUILocale()) : u.UIManager.Instance.ShowUIPanel(p.PanelConfig.GemResetPanel.Path, this._model)
                }
            }, t.prototype.OnProcessingButtonClick = function() {
                u.UIManager.Instance.ShowUIPanel(p.PanelConfig.GemProcessingPanel.Path, this._model.Sid)
            }, Object.defineProperty(t.prototype, "isLock", {
                set: function(e) {
                    this._isLocked = e, this.LockSprite.spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame(e ? "smallBtn_lock" : "smallBtn_unlock")
                },
                enumerable: !1,
                configurable: !0
            }), i([w(cc.Label)], t.prototype, "GemName", void 0), i([w(cc.Label)], t.prototype, "GemType", void 0), i([w(cc.Label)], t.prototype, "TypeLabel", void 0), i([w(cc.Label)], t.prototype, "AttrAdditionLabel", void 0), i([w(cc.Label)], t.prototype, "DescLabel", void 0), i([w(cc.Label)], t.prototype, "TakeDownButtonLabel", void 0), i([w(cc.Label)], t.prototype, "ChangeButtonLabel", void 0), i([w(cc.Label)], t.prototype, "ComposeButtonLabel", void 0), i([w(v.default)], t.prototype, "AttrComponents", void 0), i([w(cc.RichText)], t.prototype, "SpecialAttr", void 0), i([w(cc.Label)], t.prototype, "ObjectDesc", void 0), i([w(cc.Node)], t.prototype, "ItemContainer", void 0), i([w(cc.Button)], t.prototype, "QuestionMarkButton", void 0), i([w(cc.Button)], t.prototype, "LockButton", void 0), i([w(cc.Button)], t.prototype, "GetWayButton", void 0), i([w(cc.Button)], t.prototype, "TakeDownButton", void 0), i([w(cc.Button)], t.prototype, "ChangeButton", void 0), i([w(cc.Button)], t.prototype, "ComposeButton", void 0), i([w(cc.Sprite)], t.prototype, "LockSprite", void 0), i([w(cc.Button)], t.prototype, "ResetButton", void 0), i([w(cc.Label)], t.prototype, "ResetLabel", void 0), i([w(cc.Button)], t.prototype, "ProcessingButton", void 0), i([w(cc.Label)], t.prototype, "ProcessingLabel", void 0), i([w(cc.Layout)], t.prototype, "Layout", void 0), i([S], t)
        }(u.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent4": "AttrComponent4",
        "../Components/ItemComponent": "ItemComponent"
    }],
    GemProcessingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a8bd2u9Ja9AF4Pu2s9ZLfA2", "GemProcessingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/ItemComponent"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../Components/ConsumeComponent"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../Components/AttrComponent2"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.RuleButton = null, t.LeftGem = null, t.RightGem = null, t.BaseAttrLabel = null, t.AttrContent = null, t.ProcessingDesc = null, t.ConsumeContent = null, t.ProcessingButton = null, t.ProcessingLabel = null, t.DetailButton = null, t.DetailLabel = null, t._attrNodes = [], t._consuemNodes = [], t._nameColor = new cc.Color(98, 78, 60), t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/AttrComponent2", cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/ConsumeComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._attrPrefab = e[1], r._consumePrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "gem_processing_title".ToUILocale(), this.BaseAttrLabel.string = "equip_base_attr".ToUILocale(), this.ProcessingDesc.string = "gem_processing_material".ToUILocale(), this.ProcessingLabel.string = "gem_processing".ToUILocale(), this.DetailLabel.string = "gem_processing_detail_attr".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ProcessingButton.node.on("click", this.OnProcessingButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._gemSid = t[0]
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this._model = d.DataCenter.Instance.GetDataById(p.GemEquip_Model, this._gemSid), this._config = d.ConfigDataComponent.Instance.GetConfigById(u.GemEquip_Config, this._model.ItemId), !this._config.NextId) return h.UIUtlity.ShowFloatingHint("gem_processing_max_quality".ToUILocale()), void l.UIManager.Instance.QuitPanelStack(this);
                    this._nextConfig = d.ConfigDataComponent.Instance.GetConfigById(u.GemEquip_Config, this._config.NextId), this.SetGemNode(), this.SetAttrNode(), this.SetConsumeNode(), this.SetReddot()
                }, t.prototype.SetGemNode = function() {
                    this._leftGemNode || (this._leftGemNode = cc.instantiate(this._itemPrefab)), this._rightGemNode || (this._rightGemNode = cc.instantiate(this._itemPrefab));
                    var e = this._leftGemNode.getComponent(f.ItemComponent);
                    this._leftGemNode.parent = this.LeftGem, e.Init(this._model, f.ItemComponentType.Gem), e.SetNameAndActive(this._model.ItemId.ToItemName(), !0), e.SetNameColorAndOutline(this._nameColor, null);
                    var t = this._rightGemNode.getComponent(f.ItemComponent);
                    this._rightGemNode.parent = this.RightGem, t.Init({
                        ItemId: this._config.NextId
                    }, f.ItemComponentType.Gem), t.SetGemAttrSprite(this._model), t.SetNameAndActive(this._config.NextId.ToItemName(), !0), t.SetNameColorAndOutline(this._nameColor, null)
                }, t.prototype.SetAttrNode = function() {
                    var e = {};
                    if (this._nextConfig) {
                        for (var t = 0; t < this._nextConfig.BaseAttrs.length; t++) {
                            var n = this._nextConfig.BaseAttrs[t].Items[0],
                                o = this._nextConfig.BaseAttrs[t].Items[1];
                            e[n] ? e[n] += o : e[n] = o
                        }
                        for (t = 0; t < this._config.BaseAttrs.length; t++) n = this._config.BaseAttrs[t].Items[0], o = this._config.BaseAttrs[t].Items[1], e[n] && (e[n] -= o);
                        var r = 0;
                        for (var i in this._attrNodes.forEach(function(e) {
                                e.active = !1
                            }), e) {
                            if (!this._attrNodes[r]) {
                                var a = cc.instantiate(this._attrPrefab);
                                a.width = 411, a.parent = this.AttrContent, this._attrNodes[r] = a
                            }
                            this._attrNodes[r].active = !0, this._attrNodes[r].getComponent(I.default).Init(Number(i), e[i]), r++
                        }
                    }
                }, t.prototype.SetConsumeNode = function() {
                    var e = this;
                    if (this._nextConfig) {
                        this._consumeData = {};
                        var t = this._config.Quality,
                            n = this._nextConfig.Quality,
                            o = d.ConfigDataComponent.Instance.GetConfigById(u.GemQuality_Config, t);
                        d.ConfigDataComponent.Instance.GetConfigById(u.GemQuality_Config, n).UpgradeMaterials.forEach(function(t) {
                            var n = t.Items[0],
                                o = t.Items[1];
                            e._consumeData[n] ? e._consumeData[n] += o : e._consumeData[n] = o
                        }), o.UpgradeMaterials && o.UpgradeMaterials.forEach(function(t) {
                            var n = t.Items[0],
                                o = t.Items[1];
                            e._consumeData[n] && (e._consumeData[n] -= o)
                        });
                        var r = 0;
                        for (var i in this._consuemNodes.forEach(function(e) {
                                e.active = !1
                            }), this._consumeData) {
                            if (!this._consuemNodes[r]) {
                                var a = cc.instantiate(this._consumePrefab);
                                a.parent = this.ConsumeContent, this._consuemNodes[r] = a
                            }
                            this._consuemNodes[r].active = !0;
                            var s = this._consuemNodes[r].getComponent(g.default);
                            s.Init(this._itemPrefab, Number(i), this._consumeData[i]), s.SetFixedWidth(250), r++
                        }
                    }
                }, t.prototype.SetReddot = function() {
                    m.RedDotManager.Instance.BindInstance(this.ProcessingButton.node, m.RedDotManager.Instance.InstanceRedDot.GemProcessingNode, {
                        Value1: this._model.Sid
                    }, 10, 10)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "gem_processing_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["gem_processing_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.CheckItemIsEnough = function() {
                    for (var e in this._consumeData)
                        if (!d.DataCenter.Instance.IsItemEnough(Number(e), this._consumeData[e])) return h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(Number(e).ToItemName())), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, Number(e)), !1;
                    return !0
                }, t.prototype.OnProcessingButtonClick = function() {
                    var e = this;
                    if (this.CheckItemIsEnough()) {
                        var t = d.DataCenter.Instance.GetIntData(y.UserDataKey.Power),
                            n = new p.Req_Item_GemUpgrade;
                        n.Sid = this._gemSid, d.RpcComponent.Instance.Call(n, function() {
                            h.UIUtlity.ShowFloatingHint("gem_processing_success".ToUILocale());
                            var n = d.DataCenter.Instance.GetIntData(y.UserDataKey.Power);
                            l.UIManager.Instance.ShowUIPanel(c.PanelConfig.BattlePowerChangePanel.Path, t, n), e.DisPlay(!0)
                        })
                    }
                }, t.prototype.OnDetailButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.GemIllustratedPanel.Path, 7)
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Node)], t.prototype, "LeftGem", void 0), i([v(cc.Node)], t.prototype, "RightGem", void 0), i([v(cc.Label)], t.prototype, "BaseAttrLabel", void 0), i([v(cc.Node)], t.prototype, "AttrContent", void 0), i([v(cc.Label)], t.prototype, "ProcessingDesc", void 0), i([v(cc.Node)], t.prototype, "ConsumeContent", void 0), i([v(cc.Button)], t.prototype, "ProcessingButton", void 0), i([v(cc.Label)], t.prototype, "ProcessingLabel", void 0), i([v(cc.Button)], t.prototype, "DetailButton", void 0), i([v(cc.Label)], t.prototype, "DetailLabel", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/ConsumeComponent": "ConsumeComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    GemResetPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dbc739159FCoK9xeJJIfaky", "GemResetPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/CurrencyBarItem"),
            m = e("../../Components/Components"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../Components/AttrComponent4"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.Attr = 0] = "Attr", e[e.Type = 1] = "Type"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Title = null, t.RuleButton = null, t.Desc = null, t.BeforeNode = null, t.AfterNode = null, t.BeforeName = null, t.AfterName = null, t.BeforeLabel = null, t.AfterLabel = null, t.OldAttrs = [], t.NewAttrs = [], t.EmptyAttrs = [], t.TypeLabel = null, t.RuleLabel = null, t.GemAttrLabel = null, t.GemTypeLabel = null, t.ConsumeNode = null, t.ResetButton = null, t.ResetLabel = null, t.SaveButton = null, t.SaveLabel = null, t.ResetAgainButton = null, t.ResetAgainLabel = null, t.GiftButton = null, t.GiftLabel = null, t.Toggles = [], t._selectIndex = 0, t._consumeNodes = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset(f.BundlePath.CurrencyBarComponent, cc.Prefab)]).then(function(e) {
                                    t._itemPrefab = e[0], t._currencyPrefab = e[1]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.Title.string = "gem_reset_title".ToUILocale(), this.Desc.string = "gem_reset_desc".ToUILocale(), this.BeforeLabel.string = "gem_reset_before".ToUILocale(), this.AfterLabel.string = "gem_reset_after".ToUILocale(), this.TypeLabel.string = "gem_reset_type".ToUILocale(), this.RuleLabel.string = "gem_reset_select_rule".ToUILocale(), this.GemAttrLabel.string = "gem_base_attr_reset".ToUILocale(), this.GemTypeLabel.string = "gem_type_reset".ToUILocale(), this.ResetLabel.string = "gem_reset".ToUILocale(), this.SaveLabel.string = "save".ToUILocale(), this.ResetAgainLabel.string = "gem_reset_again".ToUILocale(), this.GiftLabel.string = "gem_reset_gift".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.SaveButton.node.on("click", this.OnSaveButtonClick, this), this.ResetAgainButton.node.on("click", this.OnResetButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.Toggles.forEach(function(e) {
                    e.node.on("toggle", t.OnSwitchToggle, t)
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._gemModel = t[0], this._gemConfig = d.ConfigDataComponent.Instance.GetConfigById(u.GemEquip_Config, this._gemModel.ItemId), this._gemQualityConfig = d.ConfigDataComponent.Instance.GetConfigById(u.GemQuality_Config, this._gemConfig.Quality)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                this.SetResetGemItem(), this.SetGemAttr(), this.SetConsumeNode(), this.SetButtons()
            }, t.prototype.SetResetGemItem = function() {
                this._beforeItemNode || (this._beforeItemNode = cc.instantiate(this._itemPrefab), this._beforeItemNode.parent = this.BeforeNode), this._beforeItemNode.getComponent(y.ItemComponent).Init(this._gemModel, y.ItemComponentType.Gem), this.BeforeName.string = this._gemModel.ItemId.ToItemName(), this.AfterName.string = this._gemModel.ItemId.ToItemName(), this.AfterName.node.active = !0, this._afterItemNode || (this._afterItemNode = cc.instantiate(this._itemPrefab), this._afterItemNode.parent = this.AfterNode);
                var e = this._afterItemNode.getComponent(y.ItemComponent);
                this._gemModel.CastAttrs && this._gemModel.CastAttrs.length > 0 ? (this._resetState = 1, this._gemModel.CastItemId > 0 ? (e.Init({
                    ItemId: this._gemModel.CastItemId,
                    Count: 1
                }, y.ItemComponentType.ItemCommon), e.SetGemAttrSpriteByAttrId(this._gemModel.CastAttrs[0].Items[0])) : (e.Init(this._gemModel, y.ItemComponentType.Gem), e.SetGemAttrSpriteByAttrId(this._gemModel.CastAttrs[0].Items[0]))) : (this._resetState = 0, this._selectIndex == l.Attr ? (e.Init(this._gemModel, y.ItemComponentType.Gem), e.SetGemAttrSpriteByAttrId(0)) : (this.AfterName.node.active = !1, e.SetItemSimpleState(), e.SetCenterTagSprite(!0, h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("question_mark1"))))
            }, t.prototype.SetGemAttr = function() {
                for (var e = 0, t = this.OldAttrs; e < t.length; e++)(s = t[e]).node.active = !1;
                for (var n = 0, o = this.NewAttrs; n < o.length; n++)(s = o[n]).node.active = !1;
                for (var r = 0, i = this.EmptyAttrs; r < i.length; r++)(s = i[r]).active = !1;
                this.OldAttrs[0].node.active = !0, this.OldAttrs[0].Init(this._gemModel.Attrs[0].Items[0], this._gemModel.Attrs[0].Items[1], {
                    ValueAlign: C.AttrComponent4Align.Mid,
                    NotChangeTagNodeWidth: !0
                }), this.OldAttrs[1].node.active = !0, this.OldAttrs[1].Init(this._gemConfig.BaseAttrs[0].Items[0], this._gemConfig.BaseAttrs[0].Items[1], {
                    ValueAlign: C.AttrComponent4Align.Mid,
                    NotChangeTagNodeWidth: !0
                });
                var a = this._gemConfig.BaseAttrs.length + 1;
                if (0 == this._resetState)
                    for (var s = 0; s < a; s++) this.EmptyAttrs[s].active = !0;
                else if (1 == this._resetState)
                    if (this.NewAttrs[0].node.active = !0, this.NewAttrs[0].Init(this._gemModel.CastAttrs[0].Items[0], this._gemModel.CastAttrs[0].Items[1], {
                            ValueAlign: C.AttrComponent4Align.Mid,
                            NotChangeTagNodeWidth: !0
                        }), this._gemModel.CastItemId > 0) {
                        var l = d.ConfigDataComponent.Instance.GetConfigById(u.GemEquip_Config, this._gemModel.CastItemId);
                        this.NewAttrs[1].node.active = !0, this.NewAttrs[1].Init(l.BaseAttrs[0].Items[0], l.BaseAttrs[0].Items[1], {
                            ValueAlign: C.AttrComponent4Align.Mid,
                            NotChangeTagNodeWidth: !0
                        })
                    } else this.NewAttrs[1].node.active = !0, this.NewAttrs[1].Init(this._gemConfig.BaseAttrs[0].Items[0], this._gemConfig.BaseAttrs[0].Items[1], {
                        ValueAlign: C.AttrComponent4Align.Mid,
                        NotChangeTagNodeWidth: !0
                    })
            }, t.prototype.SetConsumeNode = function() {
                var e = this,
                    t = this._selectIndex == l.Attr ? this._gemQualityConfig.AttrMaterials : this._gemQualityConfig.TypeMaterials;
                this._consumeNodes.forEach(function(e) {
                    e.active = !1
                }), t.forEach(function(t, n) {
                    if (!e._consumeNodes[n]) {
                        var o = cc.instantiate(e._currencyPrefab);
                        o.parent = e.ConsumeNode, e._consumeNodes[n] = o
                    }
                    e._consumeNodes[n].active = !0;
                    var r = e._consumeNodes[n].getComponent(g.default);
                    r.Init(t.Items[0], !1, null, t.Items[1]), r.SetFixedWidth(219), r.SetClickCallBack(e.OnGiftButtonClick.bind(e))
                })
            }, t.prototype.SetButtons = function() {
                this.ResetButton.node.active = 0 == this._resetState, this.SaveButton.node.active = 1 == this._resetState, this.ResetAgainButton.node.active = 1 == this._resetState
            }, t.prototype.CheckConsumeIsEnough = function() {
                for (var e = this._selectIndex == l.Attr ? this._gemQualityConfig.AttrMaterials : this._gemQualityConfig.TypeMaterials, t = 0; t < e.length; t++)
                    if (!m.DataCenter.Instance.IsItemEnough(e[t].Items[0], e[t].Items[1])) return h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e[t].Items[0].ToItemName())), !1;
                return !0
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "gem_reset_title".ToUILocale(),
                    titles: ["gem_reset_rule_sub_title".ToUILocale()],
                    contents: ["gem_reset_rule_content".ToUILocale()]
                };
                h.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnGiftButtonClick = function() {
                var e = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, _.LevelParamType.GemDisplaceGiftPack),
                    t = [];
                e.Data.forEach(function(e) {
                    var n = d.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, e);
                    t.push(n)
                });
                var n = {};
                n.Title = "gem_reset_gift".ToUILocale(), n.BannerPath = "CommonPanel/CommonGiftPackPNG/gem_reset", n.ModuleGiftPackData = t, c.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonGiftPackPanel.Path, n)
            }, t.prototype.OnResetButtonClick = function() {
                var e = this;
                this.CheckConsumeIsEnough() && (this._selectIndex == l.Type && this._gemModel.GallerySlot > 0 ? h.UIUtlity.ShowHintPanel("", "gallery_reset_hint".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                    e.RequestReset()
                }) : this.RequestReset())
            }, t.prototype.RequestReset = function() {
                var e = this,
                    t = new p.Req_Card_GemDisplace;
                t.Sid = this._gemModel.Sid, t.Type = this._selectIndex + 1, d.RpcComponent.Instance.Call(t, function() {
                    e._gemModel = d.DataCenter.Instance.GetDataById(p.GemEquip_Model, e._gemModel.Sid), e._selectIndex == l.Type && (e._gemConfig = d.ConfigDataComponent.Instance.GetConfigById(u.GemEquip_Config, e._gemModel.ItemId)), h.UIUtlity.ShowFloatingHint("gem_reset_success".ToUILocale()), e.SetUIContent()
                })
            }, t.prototype.OnSaveButtonClick = function() {
                var e = this,
                    t = this._selectIndex == l.Attr ? "gem_reset_save_check".ToUILocale() : "gem_reset_save_check2".ToUILocale();
                I.default.GetItem(I.GameRecordDefine.GemResetSaveCheck) ? this.RequestSave() : h.UIUtlity.ShowHintPanel("", t, "", null, "", function() {
                    e.RequestSave()
                }, null, I.GameRecordDefine.GemResetSaveCheck)
            }, t.prototype.RequestSave = function() {
                var e = this,
                    t = new p.Req_Card_GemDisplaceSave;
                t.Sid = this._gemModel.Sid, d.RpcComponent.Instance.Call(t, function() {
                    e._gemModel = d.DataCenter.Instance.GetDataById(p.GemEquip_Model, e._gemModel.Sid), h.UIUtlity.ShowFloatingHint("gem_reset_save_success".ToUILocale()), c.UIManager.Instance.QuitPanelStack(e)
                })
            }, t.prototype.OnSwitchToggle = function(e) {
                var t = Number.parseInt(e.name);
                this._selectIndex != t && (this._selectIndex = t, this.SetConsumeNode())
            }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.Label)], t.prototype, "Desc", void 0), i([S(cc.Node)], t.prototype, "BeforeNode", void 0), i([S(cc.Node)], t.prototype, "AfterNode", void 0), i([S(cc.Label)], t.prototype, "BeforeName", void 0), i([S(cc.Label)], t.prototype, "AfterName", void 0), i([S(cc.Label)], t.prototype, "BeforeLabel", void 0), i([S(cc.Label)], t.prototype, "AfterLabel", void 0), i([S(C.default)], t.prototype, "OldAttrs", void 0), i([S(C.default)], t.prototype, "NewAttrs", void 0), i([S(cc.Node)], t.prototype, "EmptyAttrs", void 0), i([S(cc.Label)], t.prototype, "TypeLabel", void 0), i([S(cc.Label)], t.prototype, "RuleLabel", void 0), i([S(cc.Label)], t.prototype, "GemAttrLabel", void 0), i([S(cc.Label)], t.prototype, "GemTypeLabel", void 0), i([S(cc.Node)], t.prototype, "ConsumeNode", void 0), i([S(cc.Button)], t.prototype, "ResetButton", void 0), i([S(cc.Label)], t.prototype, "ResetLabel", void 0), i([S(cc.Button)], t.prototype, "SaveButton", void 0), i([S(cc.Label)], t.prototype, "SaveLabel", void 0), i([S(cc.Button)], t.prototype, "ResetAgainButton", void 0), i([S(cc.Label)], t.prototype, "ResetAgainLabel", void 0), i([S(cc.Button)], t.prototype, "GiftButton", void 0), i([S(cc.Label)], t.prototype, "GiftLabel", void 0), i([S(cc.Toggle)], t.prototype, "Toggles", void 0), i([b], t)
        }(c.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent4": "AttrComponent4",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    GemSelectHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "80b74uJKItBvLkgGVpYOV1c", "GemSelectHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/CustomLayout"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("./HeroInfoTabGem"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("./GemSelectListItem"),
            C = e("../Components/LuckyCharmTabComponent"),
            v = e("../../Components/Components"),
            b = e("../../../Consts/Consts"),
            S = e("../Components/AttrComponent3"),
            w = e("./GemTipPanel"),
            P = e("../../../EZFramework/EZFramework"),
            A = e("./SelectLuckyCharmHint"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.UnwearNode = null, t.WearNode = null, t.ItemContainer = null, t.ItemName = null, t.CurrentWear = null, t.TypeLabel = null, t.GemType = null, t.GemAttrs = null, t.TheCL = null, t.EmptyWearLabel = null, t.GetWayButtonLabel = null, t.GetWayButton = null, t.ResetButton = null, t.SelectButtons = [], t.HintNode = null, t.HintLayout = null, t.HintTab = null, t._lowestQualityGemIds = [0, 701, 711, 721], t._init = !0, t._selectIndex = -1, t._selectTabs = [-1, -1, -1], t._tabNodes = [], t._sortGemsModelArray = [], t._staticDesc = [], t._gemAttrs = [], t._usedByEquipmentSet = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this), l.Game.EventDispatcher.On(I.EventKeys.HOLYRELIC_WEAR, this.OnWearHolyRelicEqu, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this), l.Game.EventDispatcher.Off(I.EventKeys.HOLYRELIC_WEAR, this.OnWearHolyRelicEqu, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(c.BundlePath.ItemComponent), this.LoadDynamicAsset("Gems/Components/GemSelectListItem"), this.LoadDynamicAsset("ItemsComponent/AttrComponent3", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._listItemPrefab = e[1], t._attrPrefab = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.CurrentWear.string = "equip_current_wear".ToUILocale(), this.TypeLabel.string = "equip_type_tag".ToUILocale(), this.EmptyWearLabel.string = "gem_notwear".ToUILocale(), this.GetWayButtonLabel.string = "Personalise_getway".ToUILocale(), this._staticDesc = ["screen_isDress".ToUILocale(), "screen_lv".ToUILocale(), "angel_toggle_0".ToUILocale()], this.GetWayButton.node.on("click", this.OnGetWayButtonClick, this), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.SelectButtons.forEach(function(e) {
                        e.node.on("click", t.OnSelectButtonClick, t)
                    }), this.GemAttrs.on("click", this.OnTotalAttrPreviewClick, this);
                    var n = cc.instantiate(this._itemPrefab);
                    n.setParent(this.ItemContainer), this._item = n.getComponent(f.ItemComponent)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._item.SetItemSimpleState();
                    var n = !1;
                    if (t[2] && (this._usedByEquipmentSet = !0, this._commonEquipSetData = t[2]), t && t[0]) {
                        n = !0;
                        var o = t[0];
                        this._model = h.DataCenter.Instance.GetDataById(d.GemEquip_Model, o), this.ItemName.string = this._model.ItemId.ToItemName(), this._item.Init({
                            ItemId: this._model.ItemId
                        }), this._item.SetGemAttrSprite(this._model);
                        var r = h.ConfigDataComponent.Instance.GetConfigById(p.GemEquip_Config, this._model.ItemId);
                        this.GemType.string = ("gemTip_type" + r.Type).ToUILocale();
                        var i = this._model.Attrs[0].Items[0],
                            a = this._model.Attrs[0].Items[1];
                        this._gemAttrs[0] || ((c = cc.instantiate(this._attrPrefab)).setParent(this.GemAttrs), this._gemAttrs[0] = c.getComponent(S.default)), this._gemAttrs[0].Init(i, a);
                        var s = v.ConfigDataComponent.Instance.GetConfigById(p.GemEquip_Config, this._model.ItemId);
                        if (s)
                            for (var l = 0; l < s.BaseAttrs.length; l++) {
                                var c, u = s.BaseAttrs[l].Items[0],
                                    f = s.BaseAttrs[l].Items[1];
                                this._gemAttrs[l + 1] || ((c = cc.instantiate(this._attrPrefab)).setParent(this.GemAttrs), this._gemAttrs[l + 1] = c.getComponent(S.default)), this._gemAttrs[l + 1].Init(u, f)
                            }
                    }
                    if (this._getWayItemId = this._lowestQualityGemIds[t[1]], this.WearNode.active = n, this.UnwearNode.active = !this.WearNode.active, this._usedByEquipmentSet) {
                        var g = y.default.FilterGemsByType(Math.ceil((this._commonEquipSetData.Index + 1) / 2));
                        this._models = g
                    } else g = y.default.FilterGemsByType(m.default.S.GemType), this._models = y.default.FilterGemsExcludeSid(m.default.S.HeroSid, g);
                    this._models.sort(function(e, t) {
                        var n = v.ConfigDataComponent.Instance.GetConfigById(p.GemEquip_Config, e.ItemId),
                            o = v.ConfigDataComponent.Instance.GetConfigById(p.GemEquip_Config, t.ItemId);
                        return n.Quality > o.Quality ? -1 : n.Quality < o.Quality ? 1 : e.OwnerId && !t.OwnerId ? 1 : !e.OwnerId && t.OwnerId ? -1 : 0
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._init && (this.TheCL.Init(this._listItemPrefab), this._init = !1), this._sortGemsModelArray = this._models.concat(), this.TheCL.RenderLayOut(this._sortGemsModelArray.length), this.SetSelectNode(t)
                }, t.prototype.UpdateCustomLayout = function() {
                    this._sortGemsModelArray.length || g.UIUtlity.ShowFloatingHint("screen_no_match_gem".ToUILocale()), this.TheCL.RenderLayOut(this._sortGemsModelArray.length)
                }, t.prototype.OnGetWayButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._getWayItemId)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.TheCL && e.forEach(function(e, t) {
                        if (n._usedByEquipmentSet) {
                            var o = A.default.GetEquipmentSetInfo(n._sortGemsModelArray[t].Sid, b.ArtefactRelicEquipIndex.Gem),
                                r = {};
                            r.Sid = n._sortGemsModelArray[t].Sid, r.IsSelf = n._model && n._sortGemsModelArray[t].Sid == n._model.Sid, o && (r.EquipmentSetTeamIndex = o.equipmentSetTeamIndex, r.EquipmentSetTeamSlot = o.equipmentSetTeamSlot, r.EquipmentSetIndex = o.equipmentSetIndex), e.getComponent(_.default).Set(n._sortGemsModelArray[t], n._itemPrefab, r)
                        } else e.getComponent(_.default).Set(n._sortGemsModelArray[t], n._itemPrefab)
                    })
                }, t.prototype.InitTabNodes = function() {
                    this._tabNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetSelectNode = function(e) {
                    var t = this;
                    this.SelectButtons.forEach(function(n, o) {
                        var r = cc.find("Background/SelectLabel", n.node).getComponent(cc.Label);
                        if (cc.find("ArrowSprite", n.node).scaleY = t._selectIndex == o ? 1 : -1, e) {
                            var i = t.GetPropertyList(o),
                                a = i[0];
                            if (o < t._selectTabs.length) {
                                var s = t._selectTabs[o];
                                if (s < i.length && s >= 0) {
                                    a = i[s];
                                    var l = t.GetDesc(o, a);
                                    r.string = l
                                }
                            }
                        } else r.string = t._staticDesc[o]
                    })
                }, t.prototype.SetSelectTabHint = function() {
                    var e = this;
                    if (this.HintNode.active = this._selectIndex > -1, this._selectIndex > -1 && this._selectIndex < this._selectTabs.length) {
                        var t = this.GetPropertyList(this._selectIndex),
                            n = t.length;
                        t.forEach(function(t, o) {
                            if (!e._tabNodes[o]) {
                                var r = cc.instantiate(e.HintTab);
                                r.parent = e.HintLayout, r.active = !0, e._tabNodes[o] = r
                            }
                            e._tabNodes[o].active = !0;
                            var i = e._selectTabs[e._selectIndex],
                                a = e.GetDesc(e._selectIndex, t);
                            e._tabNodes[o].getComponent(C.default).InitUI(i, o, a, n)
                        })
                    }
                }, t.prototype.GetPropertyList = function(e) {
                    var t = [];
                    switch (e) {
                        case 0:
                            t = [-1, 1, 0];
                            break;
                        case 1:
                            var n = v.ConfigDataComponent.Instance.GetArrayConfig(p.GemQuality_Config);
                            t = [-1], n.forEach(function(e) {
                                t.push(e.Id)
                            });
                            break;
                        case 2:
                            var o = v.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, b.LevelParamType.GemProperties);
                            t = [-1];
                            var r = m.default.S.GemType - 1;
                            o.Data2[r].Items.forEach(function(e) {
                                t.push(e)
                            })
                    }
                    return t
                }, t.prototype.GetDesc = function(e, t) {
                    var n = "";
                    switch (e) {
                        case 0:
                            n = t >= 0 ? t > 0 ? "screen_dress".ToUILocale() : "screen_undress".ToUILocale() : "screen_all".ToUILocale();
                            break;
                        case 1:
                            if (t < 0) n = "screen_all".ToUILocale();
                            else {
                                var o = v.ConfigDataComponent.Instance.GetConfigById(p.GemQuality_Config, t);
                                o && (n = "screen_level".ToUILocale().Fmt(o.Id - 1))
                            }
                            break;
                        case 2:
                            if (t < 0) n = "screen_all".ToUILocale();
                            else {
                                var r = v.ConfigDataComponent.Instance.GetConfigById(p.HeroAttribute_Config, t);
                                r && (n = r.Name.ToUILocale())
                            }
                    }
                    return n
                }, t.prototype.SetHintNodePosition = function() {
                    if (this.SelectButtons[this._selectIndex]) {
                        var e = this.SelectButtons[this._selectIndex].node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            t = this.HintNode.parent.convertToNodeSpaceAR(e);
                        this.HintNode.x = t.x, this.HintNode.y = t.y + 40
                    }
                }, t.prototype.OnResetButtonClick = function() {
                    this._selectTabs = [-1, -1, -1], this._selectIndex = -1, this.HintNode.active = !1, this._sortGemsModelArray = this._models, this.SetSelectNode(!1), this.UpdateCustomLayout()
                }, t.prototype.OnSelectButtonClick = function(e) {
                    var t = Number(e.node.name);
                    t == this._selectIndex ? (this._selectIndex = -1, this.HintNode.active = !1) : (this._selectIndex = t, this.HintNode.active = !0, this.InitTabNodes(), this.SetSelectTabHint(), this.SetHintNodePosition()), this.SetSelectNode(!0)
                }, t.prototype.OnSelectTab = function(e) {
                    if (this._selectIndex < this._selectTabs.length) {
                        if (this._selectTabs[this._selectIndex] == e) return this.HintNode.active = !1, this._selectIndex = -1, void this.SetSelectNode(!0);
                        this._selectTabs[this._selectIndex] = e, this.SetSelectTabHint(), this.SortArray(), this.UpdateCustomLayout(), this._selectIndex = -1, this.HintNode.active = !1, this.SetSelectNode(!0)
                    }
                }, t.prototype.SortArray = function() {
                    var e = [],
                        t = [],
                        n = 0;
                    e = this._models.concat();
                    for (var o = function() {
                            t = [];
                            var o = r.GetPropertyList(n),
                                i = -1;
                            if (r._selectTabs[n] < o.length) {
                                var a = -1 == r._selectTabs[n] ? 0 : r._selectTabs[n];
                                i = o[a]
                            }
                            if (-1 == i) return n++, "continue";
                            switch (n) {
                                case 0:
                                    i > 0 ? e.forEach(function(e) {
                                        e.OwnerId && t.push(e)
                                    }) : 0 == i && e.forEach(function(e) {
                                        e.OwnerId || t.push(e)
                                    });
                                    break;
                                case 1:
                                    e.forEach(function(e) {
                                        h.ConfigCacheComponent.Instance.GetGemQualityByItemId(e.ItemId) == i && t.push(e)
                                    });
                                    break;
                                case 2:
                                    e.forEach(function(e) {
                                        e.Attrs.findIndex(function(e) {
                                            return e.Items[0] == i
                                        }) > -1 && t.push(e)
                                    });
                                    break;
                                default:
                                    t = e
                            }
                            e = t, n++
                        }, r = this; n < 3;) o();
                    this._sortGemsModelArray = e
                }, t.prototype.OnTotalAttrPreviewClick = function() {
                    var e = w.default.GetGemDatas(this._model),
                        t = {},
                        n = [];
                    e.forEach(function(e) {
                        var t = {};
                        t.attrId = e.attrId, t.attrvalue = e.value, n.push(t)
                    }), t.Title = "heroSkin_attr".ToUILocale(), t.IsShowAddAttr = !0, t.AttrArray = n, P.UIManager.Instance.ShowUIPanel(c.PanelConfig.CommonTotalAttrPanel.Path, [t])
                }, t.prototype.OnWearHolyRelicEqu = function(e) {
                    var t, n;
                    t = b.ArtefactRelicEquipIndex.Gem, n = b.ArtefactRelicEquipIndex.Gem;
                    var o = {};
                    e.IsSelf ? (o.Type = 1, o.CurEquipType = t, o.CurTeamIndex = this._commonEquipSetData.TeamIndex, o.CurSlot = this._commonEquipSetData.Slot, o.CurIndex = this._commonEquipSetData.Index) : this._model || null != e.EquipmentSetTeamIndex && null != e.EquipmentSetTeamIndex ? (o.Type = 3, o.CurEquipType = t, o.CurTeamIndex = this._commonEquipSetData.TeamIndex, o.CurSlot = this._commonEquipSetData.Slot, o.CurIndex = this._commonEquipSetData.Index, o.TargetEquipType = n, o.TargetTeamIndex = e.EquipmentSetTeamIndex, o.TargetSlot = e.EquipmentSetTeamSlot, o.TargetIndex = e.EquipmentSetIndex, o.TargetSid = e.Sid) : (o.Type = 2, o.CurTeamIndex = this._commonEquipSetData.TeamIndex, o.CurSlot = this._commonEquipSetData.Slot, o.CurIndex = this._commonEquipSetData.Index, o.TargetEquipType = n, o.TargetSid = e.Sid), l.Game.EventDispatcher.Emit(I.EventKeys.EVENT_COMMON_EQUIPMENT_SET_DATA, o), l.UIManager.Instance.BackUIPanel()
                }, i([L(cc.Node)], t.prototype, "UnwearNode", void 0), i([L(cc.Node)], t.prototype, "WearNode", void 0), i([L(cc.Node)], t.prototype, "ItemContainer", void 0), i([L(cc.Label)], t.prototype, "ItemName", void 0), i([L(cc.Label)], t.prototype, "CurrentWear", void 0), i([L(cc.Label)], t.prototype, "TypeLabel", void 0), i([L(cc.Label)], t.prototype, "GemType", void 0), i([L(cc.Node)], t.prototype, "GemAttrs", void 0), i([L(u.default)], t.prototype, "TheCL", void 0), i([L(cc.Label)], t.prototype, "EmptyWearLabel", void 0), i([L(cc.Label)], t.prototype, "GetWayButtonLabel", void 0), i([L(cc.Button)], t.prototype, "GetWayButton", void 0), i([L(cc.Button)], t.prototype, "ResetButton", void 0), i([L(cc.Button)], t.prototype, "SelectButtons", void 0), i([L(cc.Node)], t.prototype, "HintNode", void 0), i([L(cc.Node)], t.prototype, "HintLayout", void 0), i([L(cc.Node)], t.prototype, "HintTab", void 0), i([R], t)
            }(l.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent3": "AttrComponent3",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyCharmTabComponent": "LuckyCharmTabComponent",
        "./GemSelectListItem": "GemSelectListItem",
        "./GemTipPanel": "GemTipPanel",
        "./HeroInfoTabGem": "HeroInfoTabGem",
        "./SelectLuckyCharmHint": "SelectLuckyCharmHint"
    }],
    GemSelectListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e3e9aqOicNCBrudvAsk7hnR", "GemSelectListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/DataCenter"),
            p = e("../../Components/RpcComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/ItemClickComponent"),
            f = e("../Components/ItemComponent"),
            y = e("./HeroInfoTabGem"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("./GemTipPanel"),
            I = e("../../Auxiliary/EventKeys"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.GemContainer = null, t.AttrIcons = [], t.AttrValues = [], t.SpecialAttr = null, t.OwnerName = null, t.OwnerContainer = null, t.BlueButton = null, t.OrangeButton = null, t.BlueButtonLabel = null, t.OrangeButtonLabel = null, t.BtnUpLabel = null, t.TakeOffBtn = null, t.TakeOffLabel = null, t._usedByHolyRelic = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.BlueButton.node.on("click", this.OnOrangeButtonClick, this), this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.TakeOffBtn.node.on("click", this.ClickTakeOffBtn, this)
                }, t.prototype.onDisable = function() {
                    this.BlueButton.node.off("click", this.OnOrangeButtonClick, this), this.OrangeButton.node.off("click", this.OnOrangeButtonClick, this), this.TakeOffBtn.node.off("click", this.ClickTakeOffBtn, this)
                }, t.prototype.Set = function(e, t, n) {
                    if (this._model = e, n && (this._usedByHolyRelic = !0, this._commonEquipSetData = n), this.Name.string = e.ItemId.ToItemName(), null == this._gemItem && ((o = cc.instantiate(t)).setParent(this.GemContainer), this._gemItem = o.getComponent(f.ItemComponent), this._gemItem.getComponent(h.default).enabled = !1), this._gemItem.Init({
                            ItemId: e.ItemId
                        }), this._gemItem.SetGemAttrSprite(e), this.SpecialAttr.node.active = !1, this.SetAttrNodes(), this.OwnerName.node.active = !1, this.OwnerContainer.active = !1, this.BlueButton.node.active = !1, this.TakeOffBtn.node.active = !1, this.BlueButtonLabel.string = "equip_replace".ToUILocale(), this.OrangeButtonLabel.string = "equip_wear".ToUILocale(), this.TakeOffLabel.string = "PowerCore_Remove".ToUILocale(), e.OwnerId && !this._usedByHolyRelic) {
                        this.OwnerName.node.active = !0, this.OwnerContainer.active = !0;
                        var o, r = u.DataCenter.Instance.GetDataById(a.UserHero_Model, e.OwnerId);
                        this.OwnerName.string = "runeOwner".ToUILocale(), null == this._heroItem && ((o = cc.instantiate(t)).setParent(this.OwnerContainer), this._heroItem = o.getComponent(f.ItemComponent), this._heroItem.getComponent(h.default).enabled = !1), this._heroItem.Init(r, f.ItemComponentType.HeroInfo), this.BlueButton.node.active = !0
                    }
                    this._usedByHolyRelic && (0 === this._commonEquipSetData.EquipmentSetTeamIndex || this._commonEquipSetData.EquipmentSetTeamIndex > 0) && (this.BlueButton.node.active = !0), this._usedByHolyRelic && (0 === this._commonEquipSetData.EquipmentSetTeamIndex || this._commonEquipSetData.EquipmentSetTeamIndex > 0) ? this.BtnUpLabel.string = "HolyRelic_wearInfo".ToUILocale().Fmt(this._commonEquipSetData.EquipmentSetTeamIndex + 1, this._commonEquipSetData.EquipmentSetTeamSlot + 1) : this.BtnUpLabel.string = "", this._usedByHolyRelic ? (this.TakeOffBtn.node.active = this._commonEquipSetData.IsSelf, this.BlueButton.node.active = !this._commonEquipSetData.IsSelf && (0 === this._commonEquipSetData.EquipmentSetTeamIndex || this._commonEquipSetData.EquipmentSetTeamIndex > 0), this.OrangeButton.node.active = !this._commonEquipSetData.IsSelf && (null == this._commonEquipSetData.EquipmentSetTeamIndex || null == this._commonEquipSetData.EquipmentSetTeamIndex)) : this.OrangeButton.node.active = !this.BlueButton.node.active
                }, t.prototype.SetAttrNodes = function() {
                    var e = this;
                    m.default.GetGemDatas(this._model).forEach(function(t, n) {
                        e.AttrIcons[n] && (e.AttrIcons[n].spriteFrame = l.default.GetAttrIcon(t.attrId), e.AttrValues[n].string = l.default.GetAttrText(t.attrId, t.value))
                    })
                }, t.prototype.OnOrangeButtonClick = function() {
                    var e = this;
                    if (this._usedByHolyRelic) return d.UIUtlity.CloseMaskPanel(), void s.Game.EventDispatcher.Emit(I.EventKeys.HOLYRELIC_WEAR, this._commonEquipSetData);
                    if (y.default.S.HeroSid) {
                        var t = u.DataCenter.Instance.GetDataById(g.UserHero_Model, y.default.S.HeroSid);
                        this._oldBP = t.Power
                    }
                    var n = new a.Req_Item_GemPutOn;
                    n.Sid = this._model.Sid, n.OwnerId = y.default.S.HeroSid, n.SlotId = y.default.S.SlotId, p.RpcComponent.Instance.Call(n, function() {
                        if (d.UIUtlity.ShowFloatingHint("gem_wearSuccess".ToUILocale()), y.default.S.Refresh(), y.default.S.HeroSid) {
                            var t = u.DataCenter.Instance.GetDataById(g.UserHero_Model, y.default.S.HeroSid);
                            s.UIManager.Instance.ShowUIPanel(c.PanelConfig.BattlePowerChangePanel.Path, e._oldBP, t.Power)
                        }
                        s.UIManager.Instance.QuitPanelStack(c.PanelConfig.GemSelectHint.Path), s.Game.EventDispatcher.Emit(I.EventKeys.EVENT_GEM_GALLERY_SELECT_CLOSE)
                    })
                }, t.prototype.OnTotalAttrPreviewClick = function() {
                    var e = m.default.GetGemDatas(this._model),
                        t = {},
                        n = [];
                    e.forEach(function(e) {
                        var t = {};
                        t.attrId = e.attrId, t.attrvalue = e.value, n.push(t)
                    }), t.Title = "heroSkin_attr".ToUILocale(), t.IsShowAddAttr = !0, t.AttrArray = n, s.UIManager.Instance.ShowUIPanel(c.PanelConfig.CommonTotalAttrPanel.Path, [t])
                }, t.prototype.ClickTakeOffBtn = function() {
                    this._usedByHolyRelic && s.Game.EventDispatcher.Emit(I.EventKeys.HOLYRELIC_WEAR, this._commonEquipSetData)
                }, i([v(cc.Label)], t.prototype, "Name", void 0), i([v(cc.Node)], t.prototype, "GemContainer", void 0), i([v(cc.Sprite)], t.prototype, "AttrIcons", void 0), i([v(cc.Label)], t.prototype, "AttrValues", void 0), i([v(cc.RichText)], t.prototype, "SpecialAttr", void 0), i([v(cc.Label)], t.prototype, "OwnerName", void 0), i([v(cc.Node)], t.prototype, "OwnerContainer", void 0), i([v(cc.Button)], t.prototype, "BlueButton", void 0), i([v(cc.Button)], t.prototype, "OrangeButton", void 0), i([v(cc.Label)], t.prototype, "BlueButtonLabel", void 0), i([v(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([v(cc.Label)], t.prototype, "BtnUpLabel", void 0), i([v(cc.Button)], t.prototype, "TakeOffBtn", void 0), i([v(cc.Label)], t.prototype, "TakeOffLabel", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./GemTipPanel": "GemTipPanel",
        "./HeroInfoTabGem": "HeroInfoTabGem"
    }],
    GemTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "41ff5RJPiBFFKuwXGYPkHR/", "GemTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/DataCenter"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/Components"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/TipsLocationComponent"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../Components/HeroAttributeItem"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.PopUp, !1, !1, !1), t.MaskNode = null, t.TitleBG = null, t.ItemRoot = null, t.NameLabel = null, t.TypeRichText = null, t.AttrLabel = null, t.Layout = null, t.DescRichText = null, t._gemtypePre = "gemTip_type", t._attrNodes = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemTipsPanel/Atlas/ItemTipsPanel", cc.SpriteAtlas), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("ItemTipsPanel/Private/GemTipComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemTipsAtlas = e[0], r._commonItemPrefab = e[1], r._attrPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrLabel.string = "gemTip_attr".ToUILocale();
                    var t = cc.instantiate(this._commonItemPrefab);
                    t.setParent(this.ItemRoot), this._item = t.getComponent(d.ItemComponent), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), "number" == typeof t[0] ? this._model = f.DataCenter.Instance.GetDataById(h.GemEquip_Model, t[0]) : this._model = t[0], this._clickNode = t[1], this._config = g.ConfigDataComponent.Instance.GetConfigById(y.GemEquip_Config, this._model.ItemId), this.NameLabel.string = this._model.ItemId.ToItemName(), this._type = this._config.Type, this.TypeRichText.string = "<outline color=#000000 width=3>" + "miraculousEquipTipType".ToUILocale().Fmt("<color = ffffff>" + (this._gemtypePre + this._type).ToUILocale()) + "</></outline>", this._item.Init({
                        ItemId: this._model.ItemId
                    });
                    var n = this._config.Quality;
                    this.TitleBG.spriteFrame = this._itemTipsAtlas.getSpriteFrame("detail_quality_" + n), this.DescRichText.string = "<outline color=#000000 width=3>" + this._model.ItemId.ToItemDesc() + "</outline>"
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.node.opacity = 0, m.default.CallBackAfterFrames(this.Locate.bind(this), 3, this), this.SetAttrNodes()
                }, t.prototype.SetAttrNodes = function() {
                    var e = this,
                        t = n.GetGemDatas(this._model);
                    this._attrNodes.forEach(function(e) {
                        e.active = !1
                    }), t.forEach(function(t, n) {
                        if (!e._attrNodes[n]) {
                            var o = cc.instantiate(e._attrPrefab);
                            o.parent = e.Layout, e._attrNodes[n] = o
                        }
                        e._attrNodes[n].active = !0, e._attrNodes[n].getComponent(C.default).Init(t.attrId, t.value, !0)
                    })
                }, t.prototype.Locate = function() {
                    this.getComponent(I.default).RepositionPanel(this._clickNode), this.node.opacity = 255
                }, t.GetGemDatas = function(e) {
                    var t = [];
                    if (e) {
                        var n = {},
                            o = e.ItemId,
                            r = g.ConfigDataComponent.Instance.GetConfigById(_.GemEquip_Config, o);
                        r && r.BaseAttrs.forEach(function(e) {
                            if (n[e.Items[0]]) n[e.Items[0]].value += e.Items[1];
                            else {
                                var t = {};
                                t.value = e.Items[1], t.isFixed = !0, n[e.Items[0]] = t
                            }
                        });
                        var i = e.Attrs[0].Items;
                        if (i && i.length > 1)
                            if (n[i[0]]) n[i[0]].value += i[1];
                            else {
                                var a = {};
                                a.value = i[1], a.isFixed = !1, n[i[0]] = a
                            } for (var s in n) {
                            var l = {};
                            l.attrId = Number(s), l.isFixed = n[s].isFixed, l.value = n[s].value, t.push(l)
                        }
                        t.sort(function(e, t) {
                            return e.isFixed && !t.isFixed ? -1 : !e.isFixed && t.isFixed ? 1 : e.attrId - t.attrId
                        })
                    }
                    return t
                }, i([S(cc.Node)], t.prototype, "MaskNode", void 0), i([S(cc.Sprite)], t.prototype, "TitleBG", void 0), i([S(cc.Node)], t.prototype, "ItemRoot", void 0), i([S(cc.Label)], t.prototype, "NameLabel", void 0), i([S(cc.RichText)], t.prototype, "TypeRichText", void 0), i([S(cc.Label)], t.prototype, "AttrLabel", void 0), i([S(cc.Node)], t.prototype, "Layout", void 0), i([S(cc.RichText)], t.prototype, "DescRichText", void 0), n = i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/HeroAttributeItem": "HeroAttributeItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent"
    }],
    GenIdUtil: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "85193zipUhAgJ0S/RYP5TW3", "GenIdUtil"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GenIdUtil = void 0;
        var o = e("./TimeUtil"),
            r = function() {
                function e() {}
                return Object.defineProperty(e, "AppId", {
                    set: function(t) {
                        e._AppId = t, e._InstanceIdGenerator = e._AppId << 48
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.GenerateId = function() {
                    var t = o.TimeUtil.NowInSeconds();
                    return e._AppId * e.AppIdScaleMod + t * e.TimeScaleMod + ++e._Index
                }, e.GenerateInstanceId = function() {
                    return ++e._InstanceIdGenerator
                }, e.GetAppId = function(e) {
                    return e >> 48
                }, e.AppIdScaleMod = Math.pow(2, 47), e.TimeScaleMod = Math.pow(2, 15), e._InstanceIdGenerator = 0, e._AppId = 0, e._Index = 0, e
            }();
        n.GenIdUtil = r, cc._RF.pop()
    }, {
        "./TimeUtil": "TimeUtil"
    }],
    GetResourceListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c82f89HT2pJO4RpEtgAVuY4", "GetResourceListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("./ItemComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemName = null, t.ItemDesc = null, t.ItemRoot = null, t.BtnGetway = null, t.GetwayBtnLabel = null, t._item = null, t._commonItemPrefab = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.SetUI = function(e) {
                    this._itemId = e, this._isInit || (this.SetStaticLocalText(), this.SetClickEvent(), this._isInit = !0), this.SetBaseUI()
                }, t.prototype.SetStaticLocalText = function() {
                    this.GetwayBtnLabel.string = "iWantStrong_receive".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnGetway.node.on("click", this.OnBtnGetwayClick, this)
                }, t.prototype.SetBaseUI = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.ItemName.string = this._itemId.ToItemName(), this.ItemDesc.string = this._itemId.ToItemDesc(), null != this._commonItemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._commonItemPrefab = t.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    return null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(p.ItemComponent), this._item.node.parent = this.ItemRoot), this._item.Init({
                                        ItemId: this._itemId,
                                        Count: 0
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnBtnGetwayClick = function() {
                    c.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, this._itemId)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._commonItemPrefab && l.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), this._commonItemPrefab = null
                }, i([f(cc.Label)], t.prototype, "ItemName", void 0), i([f(cc.Label)], t.prototype, "ItemDesc", void 0), i([f(cc.Node)], t.prototype, "ItemRoot", void 0), i([f(cc.Button)], t.prototype, "BtnGetway", void 0), i([f(cc.Label)], t.prototype, "GetwayBtnLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./ItemComponent": "ItemComponent"
    }],
    GetResourcePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "20476cySUNI8onCfuSBFSFV", "GetResourcePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/GetResourceListItem"),
            c = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../ShareConsts/EnumType"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ListItemGrid = null, t._listItemPrefab = null, t._listItemArray = [], t._isInit = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Display = function() {
                    this._isInit || (this.LoadLevelParam(), this._isInit = !0), this.SetListItemShow()
                }, t.prototype.LoadLevelParam = function() {
                    var e = d.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, h.LevelParamType.GetResourceIds);
                    this._itemIds = e.Data
                }, t.prototype.SetListItemShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != this._listItemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(n.ListItemPath, cc.Prefab)]);
                                case 1:
                                    if (e._listItemPrefab = r.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    for (t = 0; t < this._listItemArray.length; t++) this._listItemArray[t].node.active = !1;
                                    for (t = 0; t < this._itemIds.length; t++) null == this._listItemArray[t] && ((o = cc.instantiate(this._listItemPrefab).getComponent(l.default)).node.parent = this.ListItemGrid.node, this._listItemArray[t] = o), this._listItemArray[t].SetUI(this._itemIds[t]), this._listItemArray[t].node.active = !0;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._listItemPrefab && u.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), this._listItemPrefab = null
                }, t.ListItemPath = "IWantStrongPanel/Private/GetResourceListItem", i([g(cc.Layout)], t.prototype, "ListItemGrid", void 0), n = i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Components/GetResourceListItem": "GetResourceListItem"
    }],
    GetWayItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4328fC656BBrLSocKU2Bd+Y", "GetWayItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("./ActivityBaseContent"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/ItemComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TopNameBgNode = null, t.TopName = null, t.CountRichText = null, t.ItemLayoutNode = null, t.NameLayoutNode = null, t.Name = null, t.Desc = null, t.GoToBtn = null, t.GoToBtnLabel = null, t.RemainTime = null, t.UseBtn = null, t.UseBtnLabel = null, t.QuickUseButton = null, t.QuickUseButtonLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._itemGetWayConfig = e, this._activityItemGetWayConfig = n, this._instance = t, this._isInInitial || (this._isInInitial = !0, this.GoToBtnLabel.string = "task_goto".ToUILocale(), this.GoToBtn.node.on("click", this.OnGoToPanel, this), this.UseBtnLabel.string = "use".ToUILocale(), this.UseBtn.node.on("click", this.OnGoToPanel, this), this.QuickUseButtonLabel.string = "itemGetWay_quickUse".ToUILocale(), this.QuickUseButton.node.on("click", this.OnQuickUseButtonClick, this));
                    var o = this._itemGetWayConfig ? this._itemGetWayConfig.ItemSource : null;
                    this.UseBtn.node.active = (this._itemGetWayConfig && this._itemGetWayConfig.PanelInfo.length > 0 || this._activityItemGetWayConfig && (this._activityItemGetWayConfig.GetWayConfig && this._activityItemGetWayConfig.GetWayConfig.PanelInfo.length > 0 || this._activityItemGetWayConfig.UseId)) && o && o.length > 0, this.GoToBtn.node.active = (this._itemGetWayConfig && this._itemGetWayConfig.PanelInfo.length > 0 || this._activityItemGetWayConfig && (this._activityItemGetWayConfig.GetWayConfig && this._activityItemGetWayConfig.GetWayConfig.PanelInfo.length > 0 || this._activityItemGetWayConfig.UseId)) && (!o || 0 == o.length), u.default.Instance.IsGameModuleOpen(d.GameModuleType.GetWayQuickUse) && u.default.Instance.IsGameModuleUnlock(d.GameModuleType.GetWayQuickUse)[0] && this.UseBtn.node.active && this._instance.Params.ShowProgressBar && !c.DataCenter.Instance.IsItemEnough(this._instance.ItemId, this._instance.Params.MaxCount) ? this.QuickUseButton.node.active = !0 : this.QuickUseButton.node.active = !1, this.SetUI(), this.unschedule(this.SetTime), n && c.RpcComponent.Instance.ServerTime < n.EndTime && (this.RemainTime.node.active = !0, this.SetTime(), this.schedule(this.SetTime, 1))
                }, t.prototype.SetUI = function() {
                    if (this._itemGetWayConfig && this._itemGetWayConfig.ItemSource && this._itemGetWayConfig.ItemSource.length > 0) {
                        var e = this._itemGetWayConfig.ItemSource[0],
                            t = c.ConfigDataComponent.Instance.GetConfigById(l.ItemConsume_Config, e);
                        if (t && (t.SubType == d.ConsumeItemType.FixedBox || t.SubType == d.ConsumeItemType.ManualBox)) return this.UseBtn.node.y = -21, this.GoToBtn.node.y = -21, this.TopNameBgNode.active = !0, this.NameLayoutNode.active = !1, this.TopName.string = c.ConfigDataComponent.Instance.GetLocale("ItemGetWay_name_" + this._itemGetWayConfig.Id), this.CountRichText.string = "hold".ToUILocale() + ":<color=#6eeea7>" + c.DataCenter.Instance.GetItemCount(e) + "</color>", void this.SetItemComponent(e)
                    }
                    var n, o;
                    if (this.UseBtn.node.y = 0, this.GoToBtn.node.y = 0, this.TopNameBgNode.active = !1, this.NameLayoutNode.active = !0, this._itemGetWayConfig) {
                        var r = "ItemGetWay_name_" + this._itemGetWayConfig.Id,
                            i = "ItemGetWay_desc_" + this._itemGetWayConfig.Id;
                        n = c.ConfigDataComponent.Instance.GetLocale(r), o = c.ConfigDataComponent.Instance.GetLocale(i)
                    } else this._activityItemGetWayConfig && (n = this._activityItemGetWayConfig.Name, o = this._activityItemGetWayConfig.Desc);
                    this.Name.string = n;
                    var a = o;
                    a.length > 0 ? (this.Desc.node.active = !0, this.Desc.string = a) : this.Desc.node.active = !1
                }, t.prototype.SetItemComponent = function(e) {
                    if (!this._itemComponent) {
                        var t = cc.instantiate(this._instance.ItemPrefab);
                        t.setParent(this.ItemLayoutNode), this._itemComponent = t.getComponent(h.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: e
                    }, h.ItemComponentType.ItemCommon)
                }, t.prototype.SetTime = function() {
                    var e = this._activityItemGetWayConfig.EndTime - c.RpcComponent.Instance.ServerTime;
                    e > 0 ? this.RemainTime.string = "activityGetWayTime".ToUILocale().Fmt(u.default.ActivityTimeLeftFormat(e)) : (this.RemainTime.node.active = !1, this.unschedule(this.SetTime), this.node.destroy())
                }, t.prototype.OnGoToPanel = function() {
                    if (this._itemGetWayConfig && this._itemGetWayConfig.PanelInfo.length > 0) u.default.ShowPanelByGetWayId(this._itemGetWayConfig.Id, !0, !1, void 0, this._instance.ItemId);
                    else if (this._activityItemGetWayConfig && this._activityItemGetWayConfig.GetWayConfig && this._activityItemGetWayConfig.GetWayConfig.PanelInfo.length > 0) u.default.ShowPanelByGetWayId(null, !0, !1, this._activityItemGetWayConfig.GetWayConfig);
                    else if (this._activityItemGetWayConfig && this._activityItemGetWayConfig.UseId) {
                        var e = this._activityItemGetWayConfig.UseId.split(":"),
                            t = c.DataCenter.Instance.ActivityNameMap[e[0]];
                        p.default.OpenActivityPanel(t._id, e[1])
                    }
                    this._instance.Close()
                }, t.prototype.OnQuickUseButtonClick = function() {
                    var e = c.DataCenter.Instance.GetItemCount(this._instance.ItemId);
                    if (!(e >= this._instance.Params.MaxCount))
                        for (var t = this._itemGetWayConfig.ItemSource[0], n = c.ConfigDataComponent.Instance.GetConfigById(l.ItemConsume_Config, t), o = 0; o < n.Param.length; o++) {
                            var r = n.Param[o].Items;
                            if (r[0] == this._instance.ItemId) {
                                var i = this._instance.Params.MaxCount - e,
                                    a = Math.ceil(i / r[1]);
                                this.RequestUseItems({
                                    Items: [t, Math.min(c.DataCenter.Instance.GetItemCount(t), a), o]
                                });
                                break
                            }
                        }
                }, t.prototype.RequestUseItems = function(e) {
                    var t = new s.Req_Item_UseItems;
                    t.Items = [e], c.RpcComponent.Instance.Call(t, function(t) {
                        a.Game.EventDispatcher.Emit(f.EventKeys.EVENT_SELECT_REWARD_BOX, e.Items[0], e.Items[1]), t.Rewards.length > 0 && y.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    this._itemComponent && this._itemComponent.node == t && t.getComponent(h.ItemComponent).ShowItemTip()
                }, i([I(cc.Node)], t.prototype, "TopNameBgNode", void 0), i([I(cc.Label)], t.prototype, "TopName", void 0), i([I(cc.RichText)], t.prototype, "CountRichText", void 0), i([I(cc.Node)], t.prototype, "ItemLayoutNode", void 0), i([I(cc.Node)], t.prototype, "NameLayoutNode", void 0), i([I(cc.Label)], t.prototype, "Name", void 0), i([I(cc.Label)], t.prototype, "Desc", void 0), i([I(cc.Button)], t.prototype, "GoToBtn", void 0), i([I(cc.Label)], t.prototype, "GoToBtnLabel", void 0), i([I(cc.Label)], t.prototype, "RemainTime", void 0), i([I(cc.Button)], t.prototype, "UseBtn", void 0), i([I(cc.Label)], t.prototype, "UseBtnLabel", void 0), i([I(cc.Button)], t.prototype, "QuickUseButton", void 0), i([I(cc.Label)], t.prototype, "QuickUseButtonLabel", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./ActivityBaseContent": "ActivityBaseContent"
    }],
    GiftAllHeroesHeroCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "61830oaYqtIo6q7gnnd6RfQ", "GiftAllHeroesHeroCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../Panel/GiftAllHeroesPanel"),
            m = e("../Panel/HeroInfoPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Icon = null, t.Border = null, t.ElementIcon = null, t.RedDot = null, t.IconSpine = null, t.SPBorder = null, t.SPElementBg = null, t.HeroProfessionIcon = null, t.SelectBg = null, t.CanGetNode = null, t.CanGetLabel = null, t.CantGetNode = null, t.CantGetLabel = null, t.Mask = null, t.CardButton = null, t.GetButton = null, t._starLevel = 0, t._loadedAssets = [], t._borderSpineMap = {}, t._charged = !1, t._needInit = !0, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this._needInit && (this._needInit = !1, this._basePanel = o, this.CardButton.node.on("click", this.OnCardButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this)), this.HideAllNode(), this._heroData = null, this._heroId = 0, this._starLevel = 0, this._heroId = e, this._index = t, this.ConfigHeroInfo(), this._charged = n, this.node.name = t.toString()
                }, t.prototype.SetCardState = function(e) {
                    switch (this._state = e, this._state) {
                        case g.GiftAllHeroesCardState.CantGet:
                            this.CantGetNode.active = !0, this.CantGetLabel.string = "firstCharge_dayth".ToUILocale().Fmt(this._index + 1);
                            break;
                        case g.GiftAllHeroesCardState.HasGot:
                            this.CantGetNode.active = !0, this.CantGetLabel.string = "firstCharge_dayth".ToUILocale().Fmt(this._index + 1), this.Mask.active = !0;
                            break;
                        case g.GiftAllHeroesCardState.CanGet:
                            this.CanGetNode.active = !0, this.CanGetLabel.string = "climbTower_canGet".ToUILocale(), this.SelectBg.node.active = !0, this._charged ? this.RedDot.active = !0 : this.RedDot.active = !1
                    }
                }, t.prototype.HideAllNode = function() {
                    this.node.children.forEach(function(e) {
                        e.active = !1
                    }), this.Bg.node.active = !0, this.Border.node.active = !0
                }, t.prototype.ConfigHeroInfo = function() {
                    this._heroConfig = u.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, this._heroId), this._starLevel = this._heroConfig.StarLevel, this.SetHeroBorderAndBg(), this.SetIcon(), this.SetHeroElementIcon(this._heroConfig.ElementType), this.SetSPHero(), this.SetHeroProfession()
                }, t.prototype.SetHeroBorderAndBg = function() {
                    var e, t, n = this._starLevel;
                    n = n > p.UIUtlity.Max_Quality_Level ? p.UIUtlity.Max_Quality_Level : n, p.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero] ? (e = p.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero].CardBorder || "card_border_" + n, t = p.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero].CardBg || "card_bg_" + n, this.SetSpine()) : this._heroConfig.ElementType == f.HeroElementType.Chaos || this._heroConfig.CoreHero == f.CoreHeroTag.SP ? (e = "card_border_7", t = "card_bg_7", this.SetChaosSpine()) : (e = "card_border_" + n, t = "card_bg_" + n, this.HindeChaosSpine());
                    var o = p.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(e),
                        r = p.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(t);
                    this.Border.spriteFrame = o, this.Bg.spriteFrame = r
                }, t.prototype.SetChaosSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.IconSpine.node.active = !0, this._iconSpine ? [3, 2] : [4, y.AssetsManager.Instance.LoadAsset("ItemsComponent/Spine/ChaosSpine/UI_Effect_hundun_liuguang", sp.SkeletonData)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._iconSpine = e, this._loadedAssets.push(e), t.label = 2;
                                case 2:
                                    return this.IconSpine.skeletonData = this._iconSpine, this.isValid ? this._heroConfig.ElementType != f.HeroElementType.Chaos ? (this.HindeChaosSpine(), [2]) : (this.IconSpine.setAnimation(0, "Ani_UI_Effect_hundun_liuguang", !0), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.SetSpine = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.HindeChaosSpine(), this._heroConfig.ElementType == f.HeroElementType.Chaos && this.SetChaosSpine(), [2]
                        })
                    })
                }, t.prototype.HindeChaosSpine = function() {
                    this.IconSpine.node.active = !1
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = 0, t = null, this._heroData && this._heroData.SkinId ? (e = this._heroData.SkinId, [4, d.AssetsManager.Instance.LoadAsset(h.BundlePath.HeroCardIcon + "/" + e, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    return t = n.sent(), this.isValid && e == this._heroData.SkinId ? [3, 4] : (d.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    return e = this._heroId, [4, d.AssetsManager.Instance.LoadAsset(h.BundlePath.HeroCardIcon + "/" + e, cc.SpriteFrame)];
                                case 3:
                                    if (t = n.sent(), !this.isValid || e != this._heroId) return d.AssetsManager.Instance.UnloadAsset(t), [2];
                                    n.label = 4;
                                case 4:
                                    return null != this.Icon.spriteFrame && d.AssetsManager.Instance.UnloadAsset(this.Icon.spriteFrame), this._loadedAssets.push(t), this.Icon.spriteFrame = t, this.Icon.node.active = !0, [2]
                            }
                        })
                    })
                }, t.prototype.SetHeroElementIcon = function(e) {
                    this.ElementIcon.node.active = !0;
                    var t = p.UIUtlity.GetHeroElementIcon(e);
                    this.ElementIcon.spriteFrame = t
                }, t.prototype.SetSPHero = function() {
                    this.SPBorder && (2 == this._heroConfig.CoreHero ? (this.SPBorder.node.active = !0, this.SPBorder.spriteFrame = p.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spBottom"), this.SPElementBg.node.active = !0, this.SPElementBg.spriteFrame = p.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spCricle")) : p.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero] ? (this.SPBorder.node.active = !0, this.SPBorder.spriteFrame = p.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(p.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero].Bottom), this.SPElementBg.node.active = !0, this.SPElementBg.spriteFrame = p.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(p.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero].Cricle)) : (this.SPBorder.node.active = !1, this.SPElementBg.node.active = !1))
                }, t.prototype.SetHeroProfession = function() {
                    this.HeroProfessionIcon.node.active = !0, this.HeroProfessionIcon.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("profession_" + this._heroConfig.Career)
                }, t.prototype.SetRedDotState = function(e, t) {
                    this.RedDot.active = e, t && (this.RedDot.scale = t)
                }, t.prototype.SetSelectSpriteNodeState = function(e) {
                    e && !this.SelectBg.spriteFrame && (this.SelectBg.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("select_border2")), this.SelectBg.node.active = e
                }, t.prototype.SetBgAndHeroIconGray = function(e) {
                    e ? (p.UIUtlity.OnSpriteGray(this.Bg), p.UIUtlity.OnSpriteGray(this.Icon)) : (p.UIUtlity.OffSpriteGray(this.Bg), p.UIUtlity.OffSpriteGray(this.Icon))
                }, t.prototype.OnCardButtonClick = function() {
                    if (u.DataCenter.Instance.GetDataById(l.HeroInfo_Model, this._heroId)) {
                        for (var e = u.DataCenter.Instance.GetDataList(l.UserHero_Model), t = 0; t < e.length; t++)
                            if (e[t].HeroId == this._heroId) {
                                y.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroInfoPanel.Path, e[t].Sid, [], m.Tab.Attr);
                                break
                            }
                    } else y.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroHandbookPanel.Path, this._heroId)
                }, t.prototype.OnGetButtonClick = function() {
                    this._basePanel.OnClickHero(this._index)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) d.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = [], this._borderSpineMap = null
                }, i([C(cc.Sprite)], t.prototype, "Bg", void 0), i([C(cc.Sprite)], t.prototype, "Icon", void 0), i([C(cc.Sprite)], t.prototype, "Border", void 0), i([C(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([C(cc.Node)], t.prototype, "RedDot", void 0), i([C(sp.Skeleton)], t.prototype, "IconSpine", void 0), i([C(cc.Sprite)], t.prototype, "SPBorder", void 0), i([C(cc.Sprite)], t.prototype, "SPElementBg", void 0), i([C(cc.Sprite)], t.prototype, "HeroProfessionIcon", void 0), i([C(cc.Sprite)], t.prototype, "SelectBg", void 0), i([C(cc.Node)], t.prototype, "CanGetNode", void 0), i([C(cc.Label)], t.prototype, "CanGetLabel", void 0), i([C(cc.Node)], t.prototype, "CantGetNode", void 0), i([C(cc.Label)], t.prototype, "CantGetLabel", void 0), i([C(cc.Node)], t.prototype, "Mask", void 0), i([C(cc.Button)], t.prototype, "CardButton", void 0), i([C(cc.Button)], t.prototype, "GetButton", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/GiftAllHeroesPanel": "GiftAllHeroesPanel",
        "../Panel/HeroInfoPanel": "HeroInfoPanel"
    }],
    GiftAllHeroesPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "08c4dB03XtB8pv8/FBp7EhF", "GiftAllHeroesPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GiftAllHeroesCardState = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Channel/ChannelManager"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/LoadAssetHelper"),
            m = e("../../../Util/TimeUtil"),
            I = e("../../Components/Components"),
            _ = e("../Components/CustomProgressBar"),
            C = e("../Components/ProgressRewardItem"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../Components/CustomLayout"),
            S = e("../Components/GiftAllHeroesHeroCardComponent"),
            w = e("./CommonTaskTipComponent"),
            P = e("../../Auxiliary/DataUtlity"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.CanGet = 0] = "CanGet", e[e.HasGot = 1] = "HasGot", e[e.CantGet = 2] = "CantGet"
        })(l = n.GiftAllHeroesCardState || (n.GiftAllHeroesCardState = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !0), t.RuleBtn = null, t.Banner = null, t.ArtLabel = null, t.InfoLabel = null, t.FreeRwardScrollView = null, t.ProgressBarNode = null, t.CustomProgressBar = null, t.FreeRewardsContainer = null, t.ProgressBarMask = null, t.BallWidget = null, t.FreeRewardsContainerWidget = null, t.DayCount = null, t.DayCountLabel = null, t.ItemCustomLayout = null, t.ReturnButton = null, t.BuyButton = null, t.BuyLabel = null, t.GotoButton = null, t.GotoButtonLabel = null, t.BuyLabelLeft = null, t.BuyLabelLeftRight = null, t.HasBuyNode = null, t.CommonTaskTipComponent = null, t.AccumulatedConsumptionTips = null, t.LoadAssetHelper = null, t._canGetReward = !1, t._needInitProgressBar = !0, t._rewardComponentList = [], t._activityAssets = {}, t.PROGRESS_EVERY_DAY_LENGTH = 180, t.JUMP_PANEL_ID = 1001, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(v.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(v.EventKeys.EVENT_PAY_SUCCESS, this.RefreshUIByData, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(v.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(v.EventKeys.EVENT_PAY_SUCCESS, this.RefreshUIByData, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("GiftAllHeroesPanel/GiftAllHeroesHeroCardComponent", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/ProgressRewardItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._heroCardPrefab = e[0], o._rewardPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.InfoLabel.string = "GiftAllHeroes_tips".ToUILocale(), this.DayCountLabel.string = "GiftAllHeroes_dayCount".ToUILocale(), this.BuyLabelLeft.string = "task_get_score_tag".ToUILocale(), this.GotoButtonLabel.string = "mall_luckyStar_goCharge".ToUILocale(), this.RuleBtn.node.on("click", this.ShowRulePanel, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.GotoButton.node.on("click", this.OnGotoButtonClick, this), this.ItemCustomLayout.Init(this._heroCardPrefab)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = u.DataCenter.Instance.ActivityConfigs[this._activityId], this._activityConfig.CustomPart.PayScore ? this._consumeVaule = this._activityConfig.CustomPart.PayScore : this._giftPack = this._activityConfig._Packs[0]
            }, t.prototype.DisPlay = function(t) {
                var n, o;
                if (e.prototype.DisPlay.call(this, t), !t) {
                    var r = void 0;
                    if (this._activityConfig.Common.IsZoneOpen) {
                        var i = I.DataCenter.Instance.Zones[I.DataCenter.Zone].OpenTime,
                            a = this._activityConfig.Common.RequireOpenDays - 1;
                        a = a < 0 ? 0 : a, r = m.TimeUtil.Get0ClockTs(i) + a * p.Etc.DayDuration
                    } else r = this._activityConfig.Common.StartTime;
                    this._currentDay = m.TimeUtil.GetDiffDays(r, u.RpcComponent.Instance.ServerTime, !0) + 1, this.DayCount.string = this._currentDay.toString(), this.SetBannerBg()
                }
                if (this._activityModel = I.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._activityId), this._consumeVaule) {
                    var s = I.DataCenter.Instance.GetIntData(p.UserDataKey.TotalPay),
                        l = null === (n = this._activityModel) || void 0 === n ? void 0 : n.IntValue;
                    this._canGetReward = s >= this._consumeVaule + l
                } else {
                    var c = null === (o = this._activityModel) || void 0 === o ? void 0 : o.Packs[this._giftPack.Id];
                    this._canGetReward = (c ? c.Items[0] : 0) > 0
                }
                this.SetBuyButton(), this.InitProgressBar(), t || this.ItemCustomLayout.RenderLayOut(this._activityConfig.Rewards.length, this._activityModel.IntArray[1])
            }, t.prototype.RefreshUIByData = function() {
                this._activityModel = I.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._activityId), this.ItemCustomLayout.RenderLayOut(this._activityConfig.Rewards.length, this._activityModel.IntArray[1])
            }, t.prototype.InitProgressBar = function() {
                if (this._needInitProgressBar) {
                    this._needInitProgressBar = !1, this._freeReward = [];
                    for (var e = 0; e < this._activityConfig.Rewards.length; e++) this._activityConfig.Rewards[e].FreeRewards && this._activityConfig.Rewards[e].FreeRewards.length > 0 && this._freeReward.push(this._activityConfig.Rewards[e]);
                    var t = this._freeReward.length,
                        n = t * this.PROGRESS_EVERY_DAY_LENGTH;
                    this.CustomProgressBar.TotalLength = n, this.ProgressBarNode.width = n, this.ProgressBarMask.updateAlignment(), this.BallWidget.updateAlignment(), this.FreeRewardsContainerWidget.updateAlignment();
                    var o = void 0;
                    for (e = 0; e < this._freeReward.length; e++) {
                        var r = cc.instantiate(this._rewardPrefab);
                        r.x = (e + 1) * this.PROGRESS_EVERY_DAY_LENGTH, this.FreeRewardsContainer.addChild(r);
                        var i = r.getComponent(C.default);
                        if (this._rewardComponentList.push(i), i.InitUI({
                                Id: this._freeReward[e].Id,
                                Type: 1,
                                ItemId: this._freeReward[e].FreeRewards[0].Items[0],
                                ItemNum: this._freeReward[e].FreeRewards[0].Items[1],
                                Point: this._freeReward[e].Id,
                                CurProgress: this._currentDay,
                                IsReceive: this._freeReward[e].Id <= this._activityModel.IntArray[0],
                                Callback: this.ReceiveFreeReward.bind(this)
                            }), void 0 === o) {
                            if (this._currentDay > this._freeReward[e].Id) {
                                e == this._freeReward.length - 1 && (o = 1, this.CustomProgressBar.progress = o, this.FreeRwardScrollView.scrollTo(new cc.Vec2(o, 0), .1));
                                continue
                            }
                            o = 0 == e ? this._currentDay / this._freeReward[e].Id / t : (e + (this._currentDay - this._freeReward[e - 1].Id) / (this._freeReward[e].Id - this._freeReward[e - 1].Id)) / t, this.CustomProgressBar.progress = o, this.FreeRwardScrollView.scrollTo(new cc.Vec2(o, 0), .1)
                        }
                    }
                }
            }, t.prototype.SetBannerBg = function() {
                var e, t, n = this._activityConfig.Rewards.length;
                this._currentDay <= n ? (e = this._activityConfig.CustomPart.PicPath[0], t = this._activityConfig.CustomPart.PicPath[1]) : (e = this._activityConfig.CustomPart.PicPath[2], t = this._activityConfig.CustomPart.PicPath[3]), this.LoadSpriteFrame(e, this.Banner), this.LoadSpriteFrame(t, this.ArtLabel)
            }, t.prototype.LoadSpriteFrame = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._activityAssets[e] ? [3, 2] : [4, P.default.LoadActivityTexture(e)];
                            case 1:
                                if (n = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(n), [2];
                                this._activityAssets[e] = n, o.label = 2;
                            case 2:
                                return t.spriteFrame = this._activityAssets[e], [2]
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                for (var e in this._activityAssets) c.AssetsManager.Instance.UnloadAsset(this._activityAssets[e])
            }, t.prototype.SetBuyButton = function() {
                if (this._consumeVaule)
                    if (this.BuyButton.node.active = !1, this.HasBuyNode.active = !1, this.AccumulatedConsumptionTips.node.active = !0, this._canGetReward) this.AccumulatedConsumptionTips.string = "GiftAllHeroes_canGetAllHeros".ToUILocale(), this.GotoButton.node.active = !1;
                    else {
                        var e = I.DataCenter.Instance.GetIntData(p.UserDataKey.TotalPay);
                        this.AccumulatedConsumptionTips.string = "GiftAllHeroes_ConsumeTips".ToUILocale().Fmt(e - this._activityModel.IntValue, this._consumeVaule), this.GotoButton.node.active = !0
                    }
                else this.GotoButton.node.active = !1, this.CommonTaskTipComponent.InitData(), this._canGetReward ? (this.BuyButton.node.active = !1, this.HasBuyNode.active = !0) : (this.BuyButton.node.active = !0, this.HasBuyNode.active = !1, this.BuyLabel.string = f.default.Instance.CurrencySymbol + f.default.Instance.ExchangeMoney(this._giftPack.Money), this.BuyLabelLeftRight.string = this._giftPack.VipPoint.toString())
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                this.ItemCustomLayout == t && e.forEach(function(e, t) {
                    var o, r = n._activityConfig.Rewards[t].Rewards[0].Items[0] % 1e5,
                        i = e.getComponent(S.default);
                    i.Init(r, t, n._canGetReward, n), o = n._currentDay >= t + 1 ? n._activityModel.IntArray[1] >= t + 1 ? l.HasGot : l.CanGet : l.CantGet, i.SetCardState(o)
                })
            }, t.prototype.ReceiveFreeReward = function() {
                var e = this,
                    t = new d.Req_Activity_GiftAllHeroesGetFreeRewrads;
                t.ActivityId = this._activityId, I.RpcComponent.Instance.Call(t, function(t) {
                    if (h.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.isValid) {
                        e._activityModel = I.DataCenter.Instance.GetDataById(d.UserActivity_Model, e._activityId);
                        for (var n = 0; n < e._freeReward.length; n++) e._rewardComponentList[n].RefreshStyle(e._currentDay, e._freeReward[n].Id <= e._activityModel.IntArray[0]);
                        e.ShouldHide() && (c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, e._activityConfig._id, -1), c.UIManager.Instance.QuitPanelStack(e), h.UIUtlity.ShowFloatingHint("eightDays_moduleClose".ToUILocale()))
                    }
                })
            }, t.prototype.OnClickHero = function(e) {
                if (this._currentDay >= e + 1 && this._activityModel.IntArray[1] < e + 1) {
                    if (!this._canGetReward) {
                        var t = void 0;
                        if (this._consumeVaule) {
                            var n = I.DataCenter.Instance.GetIntData(p.UserDataKey.TotalPay);
                            t = "GiftAllHeroes_ConsumeTips".ToUILocale().Fmt(n - this._activityModel.IntValue, this._consumeVaule)
                        } else t = "NewSignIn_ChargeGet".ToUILocale();
                        return void h.UIUtlity.ShowFloatingHint(t)
                    }
                    this.ReceiveReward()
                }
            }, t.prototype.ReceiveReward = function() {
                var e = this,
                    t = new d.Req_Activity_GiftAllHeroesGetPayRewrads;
                t.ActivityId = this._activityId, I.RpcComponent.Instance.Call(t, function(t) {
                    h.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.isValid && (e.RefreshUIByData(), e.ShouldHide() && (c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, e._activityConfig._id, -1), c.UIManager.Instance.QuitPanelStack(e), h.UIUtlity.ShowFloatingHint("eightDays_moduleClose".ToUILocale())))
                })
            }, t.prototype.ShowRulePanel = function() {
                var e = {
                    name: "GiftAllHeroes_ruleTip".ToUILocale(),
                    titles: ["GiftAllHeroes_ruleTip1".ToUILocale()],
                    contents: ["GiftAllHeroes_ruleContent".ToUILocale()]
                };
                h.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnBuyButtonClick = function() {
                f.default.Instance.Pay(this._activityConfig._Packs[0].Id, this._activityId)
            }, t.prototype.OnGotoButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallPrivilegeGiftPanel.Path)
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.ShouldHide = function() {
                var e = u.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._activityConfig._id);
                return !!(e.IntArray && e.IntArray[0] >= this._activityConfig.Rewards.length && e.IntArray[1] >= this._activityConfig.Rewards.length)
            }, i([R(cc.Button)], t.prototype, "RuleBtn", void 0), i([R(cc.Sprite)], t.prototype, "Banner", void 0), i([R(cc.Sprite)], t.prototype, "ArtLabel", void 0), i([R(cc.Label)], t.prototype, "InfoLabel", void 0), i([R(cc.ScrollView)], t.prototype, "FreeRwardScrollView", void 0), i([R(cc.Node)], t.prototype, "ProgressBarNode", void 0), i([R(_.default)], t.prototype, "CustomProgressBar", void 0), i([R(cc.Node)], t.prototype, "FreeRewardsContainer", void 0), i([R(cc.Widget)], t.prototype, "ProgressBarMask", void 0), i([R(cc.Widget)], t.prototype, "BallWidget", void 0), i([R(cc.Widget)], t.prototype, "FreeRewardsContainerWidget", void 0), i([R(cc.Label)], t.prototype, "DayCount", void 0), i([R(cc.Label)], t.prototype, "DayCountLabel", void 0), i([R(b.default)], t.prototype, "ItemCustomLayout", void 0), i([R(cc.Button)], t.prototype, "ReturnButton", void 0), i([R(cc.Button)], t.prototype, "BuyButton", void 0), i([R(cc.Label)], t.prototype, "BuyLabel", void 0), i([R(cc.Button)], t.prototype, "GotoButton", void 0), i([R(cc.Label)], t.prototype, "GotoButtonLabel", void 0), i([R(cc.Label)], t.prototype, "BuyLabelLeft", void 0), i([R(cc.Label)], t.prototype, "BuyLabelLeftRight", void 0), i([R(cc.Node)], t.prototype, "HasBuyNode", void 0), i([R(w.default)], t.prototype, "CommonTaskTipComponent", void 0), i([R(cc.RichText)], t.prototype, "AccumulatedConsumptionTips", void 0), i([R(g.default)], t.prototype, "LoadAssetHelper", void 0), i([T], t)
        }(c.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GiftAllHeroesHeroCardComponent": "GiftAllHeroesHeroCardComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/ProgressRewardItem": "ProgressRewardItem",
        "./CommonTaskTipComponent": "CommonTaskTipComponent"
    }],
    GiftCodePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9cf23hQ/1RKYZ3t49sGe/a0", "GiftCodePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/ConfigData/ConfigDataComponent"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/RpcComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Channel/AdjustAction"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.CodeEditorBox = null, t.HolderLabel = null, t.BtnReceive = null, t.ReceiveBtnLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "GiftCode_title".ToUILocale(), this.ReceiveBtnLabel.string = "receive".ToUILocale(), this.HolderLabel.string = "GiftCode_input_holder".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnReceive.node.on("click", this.OnBtnReceiveClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadGlobalSetting()
                }, t.prototype.LoadGlobalSetting = function() {
                    this._codeMaxLen = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("GiftCodeMaxLen")
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUI()
                }, t.prototype.SetUI = function() {
                    this.CodeEditorBox.string = "", this.CodeEditorBox.maxLength = this._codeMaxLen
                }, t.prototype.OnBtnReceiveClick = function() {
                    this.CodeEditorBox.string.length <= 0 ? h.UIUtlity.ShowFloatingHint("GiftCode_input_empty".ToUILocale()) : this.RequestUseCode()
                }, t.prototype.RequestUseCode = function() {
                    var e = new p.Req_Player_UseGiftCode;
                    e.Code = this.CodeEditorBox.string, d.RpcComponent.Instance.Call(e, this.ResponseUseCodeSuccess.bind(this))
                }, t.prototype.ResponseUseCodeSuccess = function(e) {
                    f.default.AdjustTrackEvent(f.AdjustEventToken.GiftCode), e.Rewards.length > 0 && h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.EditBox)], t.prototype, "CodeEditorBox", void 0), i([m(cc.Label)], t.prototype, "HolderLabel", void 0), i([m(cc.Button)], t.prototype, "BtnReceive", void 0), i([m(cc.Label)], t.prototype, "ReceiveBtnLabel", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Channel/AdjustAction": "AdjustAction",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    GiftPackCenterBase: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4abfbHXozJNr7hnC9YZSQ+4", "GiftPackCenterBase");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = cc._decorator,
            c = l.ccclass,
            u = (l.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._isFirstIn = !0, t
                }
                return r(t, e), t.prototype.InitData = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._giftPackData = e, this._isFirstIn ? [4, this.Preload()] : [3, 2];
                                case 1:
                                    t.sent(), this.InitUI(), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {}, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return [2]
                        })
                    })
                }, i([c], t)
            }(cc.Component));
        n.default = u, cc._RF.pop()
    }, {}],
    GiftPackComponent1: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "15230wgWgNJdIuRSDPUjTDF", "GiftPackComponent1");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../ShareConsts/EnumType"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Channel/ChannelManager"),
            p = e("../../Components/DataCenter"),
            d = e("./GiftPackComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DiamondCount = null, t.DiamondOriginalPrice = null, t.DiamondButtonLabel = null, t.DiamondRelated = [], t.MoneyRelated = [], t.DiamondAttains = [], t.MoneyAttains = [], t.DiscountNode = null, t.DiscountLabel = null, t.DiscountValue = null, t.LangTagLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.LangTagLabel && (this.LangTagLabel.string = "soldOut".ToUILocale())
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(c.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(c.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.SetButtonLabel = function(e, t, n) {
                    void 0 === n && (n = !0), this.DiamondRelated.forEach(function(e) {
                        e.active = !n
                    }), this.MoneyRelated.forEach(function(e) {
                        e.active = n
                    }), n ? (this.PurchaseButtonLabel.string = 0 == e ? "shop_buyFree".ToUILocale() : u.default.Instance.CurrencySymbol + u.default.Instance.ExchangeMoney(e), this.AttainNumber.string = "x" + t) : (this.DiamondCount.string = "x" + t, this.DiamondButtonLabel.node.parent.children[0].active = 0 != e, this.DiamondButtonLabel.string = 0 == e ? "shop_buyFree".ToUILocale() : e.toString(), this.DiamondButtonLabel.node.color = p.DataCenter.Instance.GetItemCount(s.CommonItemId.Diamond) < e ? cc.Color.RED : cc.Color.WHITE, this.DiamondOriginalPrice.string = "firstCharge_originalPrice".ToUILocale());
                    var o = t > 0;
                    return this.PurchaseButton.node.y = o ? -44 : -25, (n ? this.MoneyAttains : this.DiamondAttains).forEach(function(e) {
                        e.active = o
                    }), this
                }, t.prototype.SetDiscount = function(e) {
                    return e ? (this.DiscountNode.active = !0, l.default.Instance.SetDisCount(e, this.DiscountValue, this.DiscountLabel)) : this.DiscountNode.active = !1, this
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, i([y(cc.Label)], t.prototype, "DiamondCount", void 0), i([y(cc.Label)], t.prototype, "DiamondOriginalPrice", void 0), i([y(cc.Label)], t.prototype, "DiamondButtonLabel", void 0), i([y({
                    type: [cc.Node]
                })], t.prototype, "DiamondRelated", void 0), i([y({
                    type: [cc.Node]
                })], t.prototype, "MoneyRelated", void 0), i([y({
                    type: [cc.Node]
                })], t.prototype, "DiamondAttains", void 0), i([y({
                    type: [cc.Node]
                })], t.prototype, "MoneyAttains", void 0), i([y(cc.Node)], t.prototype, "DiscountNode", void 0), i([y(cc.Label)], t.prototype, "DiscountLabel", void 0), i([y(cc.Label)], t.prototype, "DiscountValue", void 0), i([y(cc.Label)], t.prototype, "LangTagLabel", void 0), i([f], t)
            }(d.default);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter",
        "./GiftPackComponent": "GiftPackComponent"
    }],
    GiftPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "27542cbRvhE0p6b7qJWA1XE", "GiftPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../Channel/ChannelManager"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.PurchaseLimit = null, t.AttainLabel = null, t.AttainNumber = null, t.PurchaseButton = null, t.PurchaseButtonLabel = null, t.SellOutTag = null, t.ItemContainer = null, t._items = [], t
                }
                return r(t, e), t.prototype.SetTitle = function(e) {
                    return this.Title.string = e, this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this
                }, t.prototype.SetPurchaseLimit = function(e, t, n) {
                    var o;
                    return this.PurchaseLimit.node.parent.active = 0 != n, e > 0 || 0 == n ? (o = "<color = ffffff>" + ("mall_buyLimit_" + n).ToUILocale().Fmt("<color = #33ff8e>" + e, t + "</c>") + "</>", this.SellOutTag.active = !1) : (o = "<color = ffffff>" + ("mall_buyLimit_" + n).ToUILocale().Fmt("<color = #ff5b5b>" + e, t + "</c>") + "</>", this.SellOutTag.active = !0), this.PurchaseButton.node.active = !this.SellOutTag.active, this.PurchaseLimit.string = o, this
                }, t.prototype.SetItems = function(e, t) {
                    var n;
                    if (t.length > this._items.length) {
                        for (var o = 0; o < this._items.length; o++) n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this.PlayEffect(this._items[o], t[o].Items[2]);
                        for (o = this._items.length; o < t.length; o++) {
                            var r = e.Get();
                            r.active = !0, r.setParent(this.ItemContainer), this._items[o] = r.getComponent(l.ItemComponent), n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                                ItemId: t[o].Items[0],
                                Count: t[o].Items[1]
                            }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this.PlayEffect(this._items[o], t[o].Items[2])
                        }
                    } else {
                        for (o = 0; o < t.length; o++) n = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this.PlayEffect(this._items[o], t[o].Items[2]);
                        for (o = t.length; o < this._items.length; o++) this._items[o].node.active = !1, e.Put(this._items[o].node);
                        this._items.length = t.length
                    }
                    return this
                }, t.prototype.SetButtonLabel = function(e, t) {
                    return this.SellOutTag.active = e < 0, this.PurchaseButton.node.active = !this.SellOutTag.active, this.PurchaseButton.node.active && (this.PurchaseButtonLabel.string = 0 == e ? "shop_buyFree".ToUILocale() : p.default.Instance.CurrencySymbol + e, this.AttainNumber.string = "x" + t), this
                }, t.prototype.SetButtonClick = function(e, t) {
                    this._index = e, this._giftId = t, this.PurchaseButton.node.on("click", this.OnPurchaseButtonClick, this)
                }, t.prototype.OnPurchaseButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_MALL_BUTTONCLICK, this._index, this._giftId)
                }, t.prototype.onDisable = function() {
                    this.PurchaseButton.node.off("click", this.OnPurchaseButtonClick, this)
                }, t.prototype.PlayEffect = function(e, t) {
                    if (null != t && (1 == t || 2 == t || 3 == t || 4 == t)) {
                        var n = t;
                        e.PlayLightingCircleEffect(n)
                    }
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([f(cc.Label)], t.prototype, "AttainLabel", void 0), i([f(cc.Label)], t.prototype, "AttainNumber", void 0), i([f(cc.Button)], t.prototype, "PurchaseButton", void 0), i([f(cc.Label)], t.prototype, "PurchaseButtonLabel", void 0), i([f(cc.Node)], t.prototype, "SellOutTag", void 0), i([f(cc.Node)], t.prototype, "ItemContainer", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    GiftPackDirectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "59ef5IXL7VLGbU8wR6gJFtb", "GiftPackDirectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("./GiftPackCenterBase"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("./NodePool"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../Components/ItemComponent"),
            v = e("../Components/CouponGiftPackComponent"),
            b = e("../Components/CommonCouponGiftPackComponent"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BannerImage = null, t.TimeRemainLabel = null, t.Title = null, t.Content = null, t._packsMap = {}, t._PackDiscountMap = {}, t._loadedAssets = [], t._sortArray = [], t._gifts = [], t._upToDown = {}, t._giftPackListItems = [], t._couponListItems = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyButtonClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyButtonClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = y.AssetsManager.Instance.LoadAsset("CommonPanel/SubItems/CommonCouponGiftPackComponent", cc.Prefab), n = y.AssetsManager.Instance.LoadAsset(g.BundlePath.ItemComponent, cc.Prefab), o = y.AssetsManager.Instance.LoadAsset("OpenServerActivity/Private/CouponGiftPackComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        if (r._limitTimeItemPrefab = e[0], r._itemPrefab = e[1], r._couponItemPrefab = e[2], !r.isValid) return y.AssetsManager.Instance.UnloadAsset(r._limitTimeItemPrefab), y.AssetsManager.Instance.UnloadAsset(r._itemPrefab), void y.AssetsManager.Instance.UnloadAsset(r._couponItemPrefab);
                                        r._loadedAssets.push(r._limitTimeItemPrefab), r._loadedAssets.push(r._itemPrefab), r._loadedAssets.push(r._couponItemPrefab), r._itemPool = new m.default(r._itemPrefab)
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return [4, e.prototype.InitData.call(this, t)];
                                case 1:
                                    return i.sent(), this._giftPackData.IsActivity ? (n = c.DataCenter.Instance.ActivityConfigs[this._giftPackData.Id], this._config = n, this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._config._id), this._config._Packs.forEach(function(e) {
                                        r._packsMap[e.Id] = e
                                    }), this._config.Common.Type == h.ActivityType.NewbieCoupon && this._config.__LowPricePack.forEach(function(e) {
                                        r._PackDiscountMap[e.PackId] = e.Id
                                    }), this._giftPackDirectData = {}, this._giftPackDirectData.DeadLine = f.default.Instance.ComputeExtraShowDeadTime(n.Common), this._giftPackDirectData.Packs = n._Packs, this._giftPackDirectData.Title = n.Common.Title, n.Common.Type == h.ActivityType.GiftPack ? (this._giftPackDirectData.BannerPath = n.Common.ShowImage, this._giftPackDirectData.LoadWay = 0) : this._giftPackDirectData.BannerPath = this.GetGiftPackBannerPath(n), n.Common.Type != h.ActivityType.NewbieCoupon ? [3, 3] : (o = this, [4, y.AssetsManager.Instance.LoadAsset("OpenServerActivity/Private/CouponGiftPackComponent", cc.Prefab)])) : [3, 3];
                                case 2:
                                    o._limitTimeItemPrefab = i.sent(), i.label = 3;
                                case 3:
                                    return this.DisPlay(!1), this._isFirstIn = !1, [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function() {
                    this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetRemainTime(), this.SetTitle(), this.SetGiftPackList(), this.SetBanner()
                }, t.prototype.SetRemainTime = function() {
                    this._giftPackDirectData.DeadLine - c.RpcComponent.Instance.ServerTime > 0 && (this.TimeRemainLabel.node.active = !0), this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1)
                }, t.prototype.CountDownActivityTime = function() {
                    var e = this._giftPackDirectData.DeadLine - c.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this.unschedule(this.CountDownActivityTime), void l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_GIFT_PACK_LIST);
                    this.TimeRemainLabel.string = "ChaosSummonGift_TimeLeft".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetTitle = function() {
                    this.Title.string = this._giftPackDirectData.Title
                }, t.prototype.SetGiftPackList = function() {
                    this._giftPackData.IsActivity && (this.SetGiftPackkData(), this.SetGiftPackNode())
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._giftPackDirectData.LoadWay ? [4, l.AssetsManager.Instance.LoadAsset(this._giftPackDirectData.BannerPath, cc.SpriteFrame)] : [3, 2];
                                case 1:
                                    return e = t.sent(), [3, 4];
                                case 2:
                                    return [4, f.default.LoadActivityTexture(this._giftPackDirectData.BannerPath)];
                                case 3:
                                    e = t.sent(), t.label = 4;
                                case 4:
                                    return this.isValid ? (this._loadedAssets.push(e), this.BannerImage.spriteFrame = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetGiftPackkData = function() {
                    var e = this;
                    this._config.Common.Type == h.ActivityType.NewbieCoupon ? this.InitCouponGiftConfig() : this.InitGiftConfig(), this._sortArray = [];
                    for (var t = 0; t < this._gifts.length; t++) this._sortArray[t] = t;
                    this.PeelGifts(), this._sortArray.sort(function(t, n) {
                        var o = e._gifts[t],
                            r = e._gifts[n],
                            i = 0 != o.LimitType && e.BoughtTimes(o.Id) >= o.LimitCount,
                            a = 0 != r.LimitType && e.BoughtTimes(r.Id) >= r.LimitCount;
                        return i && !a ? 1 : !i && a ? -1 : o.SortId != r.SortId ? o.SortId - r.SortId : o.Id - r.Id
                    })
                }, t.prototype.PeelGifts = function() {
                    for (var e = 0; e < this._gifts.length; e++)
                        for (var t = this._gifts[e].Id; this._gifts[e].LimitCount <= this.GetGiftBuyCount(t, this._giftPackData.Id) && null != this._upToDown[t];) this._gifts[e] = this.GetGiftById(this._upToDown[t]), t = this._gifts[e].Id
                }, t.prototype.GetGiftById = function(e) {
                    if (this._giftMap || (this._giftMap = {}), !this._giftMap[this._config._id]) {
                        this._giftMap[this._config._id] = {};
                        var t = {};
                        this._config._Packs.forEach(function(e) {
                            t[e.Id] = e
                        }), this._giftMap[this._config._id] = t
                    }
                    return this._giftMap[this._config._id][e]
                }, t.prototype.GetGiftBuyCount = function(e, t) {
                    var n = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, t);
                    return n && n.Packs && n.Packs[e] && n.Packs[e].Items && n.Packs[e].Items[0] ? n.Packs[e].Items[0] : 0
                }, t.prototype.SetGiftPackNode = function() {
                    this._giftPackListItems.forEach(function(e) {
                        e.active = !1
                    }), this._couponListItems.forEach(function(e) {
                        return e.active = !1
                    });
                    for (var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._giftPackData.Id), t = 0; t < this._gifts.length; t++) {
                        var n = void 0;
                        this._config.Common.Type == h.ActivityType.NewbieCoupon ? (this._couponListItems[t] || ((n = cc.instantiate(this._couponItemPrefab)).setParent(this.Content), this._couponListItems[t] = n), this._couponListItems[t].active = !0) : (this._giftPackListItems[t] || ((n = cc.instantiate(this._limitTimeItemPrefab)).setParent(this.Content), this._giftPackListItems[t] = n), this._giftPackListItems[t].active = !0);
                        var o, r = this._gifts[this._sortArray[t]];
                        o = e && e.Packs && e.Packs[r.Id] && e.Packs[r.Id].Items ? e.Packs[r.Id].Items[0] : 0;
                        var i = void 0;
                        if (this._config.Common.Type == h.ActivityType.NewbieCoupon)(i = this._couponListItems[t].getComponent(v.default)).SetActivityData(this._config._id, r.Id), i.SetName(r.Name, this._sortArray[t]).SetPurchaseLimit(r.LimitCount - o, r.LimitCount, r.LimitType).SetItems(r.Items, this._itemPool).SetPrice(r.Money, r.VipPoint, r.Discount);
                        else {
                            i = this._giftPackListItems[t].getComponent(b.default);
                            var a = {};
                            if (a.ActivityId = this._config._id, a.ActivityGiftPackConfig = r, a.ItemPrefab = this._itemPrefab, r.Coupon && r.Coupon.length > 0 && r.Coupon[0] == h.CouponPackType.Original) {
                                var s = this.GetGiftById(r.Coupon[1]);
                                s && (a.ActivityCouponGiftPackConfig = s)
                            }
                            i.Init(a)
                        }
                    }
                }, t.prototype.GetGiftPackBannerPath = function(e) {
                    var t;
                    switch (e.Common.Type) {
                        case h.ActivityType.PersonalitySummon:
                            t = "zthd_rgzh_libao", this._giftPackDirectData.LoadWay = 0;
                            break;
                        case h.ActivityType.ScoreShop:
                            t = "GiftPackListPanel/PNG/xshd_jfsc_banner001", this._giftPackDirectData.LoadWay = 1;
                            break;
                        case h.ActivityType.Monopoly:
                            t = e.Common.ShowImage.split("|")[1], this._giftPackDirectData.LoadWay = 0;
                            break;
                        case h.ActivityType.WishTree:
                            t = e.CustomPart.PackBanner, this._giftPackDirectData.LoadWay = 0;
                            break;
                        case h.ActivityType.BadgeCollect:
                            t = "BadgeCollectPanel/PNG/activitePng", this._giftPackDirectData.LoadWay = 1;
                            break;
                        default:
                            t = e.Common.ShowImage, this._giftPackDirectData.LoadWay = 0
                    }
                    return t
                }, t.prototype.OnBuyButtonClick = function(e) {
                    if (this._giftPackData.IsActivity)
                        if (null == this._gifts[e].Money || 0 == this._gifts[e].Money) {
                            var t = new u.Req_Pay_ByDiamond;
                            t.Id = this._gifts[e].Id, t.ActivityId = this._giftPackData.Id, c.RpcComponent.Instance.Call(t, function(e) {
                                I.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            })
                        } else _.default.Instance.Pay(this._gifts[e].Id, this._giftPackData.Id)
                }, t.prototype.OnItemClick = function(e, t) {
                    "RewardGrid3" == t.parent.name && I.UIUtlity.ShowItemTip(t.getComponent(C.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets.forEach(function(e) {
                        y.AssetsManager.Instance.UnloadAsset(e)
                    }), this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear()
                }, t.prototype.InitGiftConfig = function() {
                    this._gifts = [];
                    for (var e = 0; e < this._config._Packs.length; e++) {
                        var t = this._config._Packs[e];
                        t.Coupon && t.Coupon.length > 0 && t.Coupon[0] == h.CouponPackType.Coupon || (null == t.UnlockCondition || 0 == t.UnlockCondition ? this._gifts.push(t) : this._upToDown[t.UnlockCondition] = t.Id)
                    }
                }, t.prototype.InitCouponGiftConfig = function() {
                    var e = this._config;
                    this._gifts = [];
                    for (var t = 0; t < e.__LowPricePack.length; t++) {
                        var n = this._packsMap[e.__LowPricePack[t].PackId];
                        null == n.UnlockCondition || 0 == n.UnlockCondition ? this._gifts.push(n) : this._upToDown[n.UnlockCondition] = n.Id
                    }
                }, t.prototype.BoughtTimes = function(e) {
                    var t = this._model.Packs[e];
                    if (this._config.Common.Type == h.ActivityType.NewbieCoupon) {
                        var n = this._model.Packs[this._PackDiscountMap[e]];
                        return (t ? t.Items[0] : 0) + (n ? n.Items[0] : 0)
                    }
                    return t ? t.Items[0] : 0
                }, i([P(cc.Sprite)], t.prototype, "BannerImage", void 0), i([P(cc.RichText)], t.prototype, "TimeRemainLabel", void 0), i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Node)], t.prototype, "Content", void 0), i([w], t)
            }(p.default);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CommonCouponGiftPackComponent": "CommonCouponGiftPackComponent",
        "../Components/CouponGiftPackComponent": "CouponGiftPackComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./GiftPackCenterBase": "GiftPackCenterBase",
        "./NodePool": "NodePool"
    }],
    GiftPackFirstPayComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ac17ePX/2hNI7A0THZAWlHh", "GiftPackFirstPayComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/ItemComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../../Util/TimeUtil"),
            m = e("../../../Consts/Etc"),
            I = e("../../Channel/ChannelManager"),
            _ = e("./FirstPayToggle"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("./GiftPackCenterBase"),
            S = e("../../../EZFramework/EZFramework"),
            w = e("./ProgressRewardComponent"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DaysLabel = [], t.DaysItemContainers = [], t.ToggleNode = null, t.OriginalPriceLabel = null, t.OriginalPriceValue = null, t.AttainValue = null, t.AttainLabel = null, t.PayButtonLabel = null, t.PayButton = null, t.GetButton = null, t.GetButtonLabel = null, t.GrayButton = null, t.GrayButtonLabel = null, t.ShowOutTag = null, t.AlreadyGotNodes = [], t.Sprite = null, t.DiscountLabel = null, t.DiscountValue = null, t.ProgressRewardNode = null, t._selectIndex = 0, t._toggles = [], t._itemComponents = [], t._itemCount = 0, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftPackSuccess, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent, cc.Prefab), l.AssetsManager.Instance.LoadAsset("FirstChargePanel/Components/FirstPayToggle", cc.Prefab), l.AssetsManager.Instance.LoadAsset("FirstChargePanel/Components/ProgressRewardComponent", cc.Prefab)]).then(function(e) {
                                        if (!t.isValid) return S.AssetsManager.Instance.UnloadAsset(e[0]), S.AssetsManager.Instance.UnloadAsset(e[1]), void S.AssetsManager.Instance.UnloadAsset(e[2]);
                                        t._itemPrefab = e[0], t._togglePrefab = e[1], t._progressRewardPrefab = e[2], e.forEach(function(e) {
                                            t._loadedAssets.push(e)
                                        })
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OriginalPriceLabel.string = "firstCharge_originalPrice".ToUILocale(), this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.GetButtonLabel.string = "receive".ToUILocale(), this.GrayButtonLabel.string = "receive".ToUILocale(), this.PayButton.node.on("click", this.OnButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return [4, e.prototype.InitData.call(this, t)];
                                case 1:
                                    for (a.sent(), this._configData = d.DataCenter.Instance.ActivityConfigs[this._giftPackData.Id], this._sortPacks = [], this._firstPayDatas = [], this._configData._Packs.forEach(function(e) {
                                            i._sortPacks.push(e)
                                        }), this._sortPacks.sort(function(e, t) {
                                            return e.VipPoint - t.VipPoint
                                        }), n = function(e) {
                                            var t = o._sortPacks[e];
                                            if (t.UnlockCondition && 0 == o._model.Packs[t.UnlockCondition].Items[0]) return "continue";
                                            var n = o.GetReceiveData(t.Id);
                                            if (n && n.Items[1] && n.Items[2] >= 3) return "continue";
                                            var r = o._configData.__Rewards.find(function(e) {
                                                    return e.Id == t.Id
                                                }),
                                                i = {};
                                            i.Pack = t, i.RewardData = r, o._firstPayDatas.push(i)
                                        }, o = this, r = 0; r < this._sortPacks.length; r++) n(r);
                                    return this._firstPayDatas[this._selectIndex] || (this._selectIndex = this._firstPayDatas.length - 1), this.DisPlay(!1), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function() {
                    this._model = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._firstPayDatas.length ? (this.SetBg(), this.SetToggles(), this.SetRewards(), this.SetButtons(), this.SetProgressRewardNode(), C.RedDotManager.Instance.BindInstance(this.ProgressRewardNode, C.RedDotManager.Instance.InstanceRedDot.FirstPayComponentItemNode, {
                        Value1: this._configData._id
                    })) : l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REFRESH_GIFT_PACK_LIST)
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, v.default.LoadActivityTexture(this._firstPayDatas[this._selectIndex].RewardData.Texture)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.Sprite.spriteFrame = e, this._loadedAssets.push(e), [2]) : (S.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this._toggles.forEach(function(e) {
                        e.node.active = !1
                    }), this._firstPayDatas.forEach(function(t, n) {
                        if (!e._toggles[n]) {
                            var o = cc.instantiate(e._togglePrefab);
                            o.parent = e.ToggleNode, e._toggles[n] = o.getComponent(_.default), o.name = n.toString(), o.on("toggle", e.ClickToggle, e)
                        }
                        e._toggles[n].node.active = !0, e._toggles[n].node.getComponent(cc.Toggle).isChecked = n == e._selectIndex, e._toggles[n].SetLabels(I.default.Instance.CurrencySymbol + I.default.Instance.ExchangeMoney(t.Pack.Money)), e._toggles[n].RedDot.active = C.RedDotManager.DataHandler.RefreshActivityFirstPayToggle({
                            Value1: e._configData._id,
                            extra: t.Pack.Id
                        })
                    })
                }, t.prototype.SetRewards = function() {
                    for (var e = 0; e < 3; e++) this.DaysLabel[e].string = "firstCharge_dayth".ToUILocale().Fmt(e + 1);
                    this._itemComponents.forEach(function(e) {
                        e.node.active = !1
                    }), this._itemCount = 0, this.SetRewardNode(this._firstPayDatas[this._selectIndex].RewardData.Rewards1, 0), this.SetRewardNode(this._firstPayDatas[this._selectIndex].RewardData.Rewards2, 1), this.SetRewardNode(this._firstPayDatas[this._selectIndex].RewardData.Rewards3, 2)
                }, t.prototype.SetRewardNode = function(e, t) {
                    var n = this;
                    e.forEach(function(e) {
                        if (!n._itemComponents[n._itemCount]) {
                            var o = cc.instantiate(n._itemPrefab);
                            o.parent = n.DaysItemContainers[t], n._itemComponents[n._itemCount] = o.getComponent(f.ItemComponent)
                        }
                        var r = d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, e.Items[0]);
                        n._itemComponents[n._itemCount].node.active = !0, n._itemComponents[n._itemCount].node.name = e.Items[0].toString(), n._itemComponents[n._itemCount].Init({
                            ItemId: e.Items[0],
                            Count: e.Items[1]
                        }, r && r.Star ? f.ItemComponentType.ItemWithStar : f.ItemComponentType.ItemCommon), n._itemCount++
                    })
                }, t.prototype.SetButtons = function() {
                    var e, t, n, o = this._firstPayDatas[this._selectIndex],
                        r = this.GetReceiveData(o.Pack.Id);
                    r && r.Items[1] > 0 ? (e = r.Items[1] > 0, t = Math.max(0, r.Items[2]), n = e ? this.TimeToNowInDay(r.Items[1]) : 0) : (e = !1, t = 0, n = 0), this.ShowOutTag.active = 3 == t, this.PayButton.node.active = !e, this.PayButtonLabel.string = I.default.Instance.CurrencySymbol + I.default.Instance.ExchangeMoney(o.Pack.Money), this.OriginalPriceValue.string = I.default.Instance.CurrencySymbol + I.default.Instance.ExchangeMoney(o.Pack.ShowMoney), this.AttainValue.string = "x" + o.Pack.VipPoint, this.GetButton.node.active = e && n > t && 3 != t, this.GrayButton.node.active = e && n <= t && 3 != t, v.default.Instance.SetDisCount(o.Pack.Discount, this.DiscountValue, this.DiscountLabel), this._itemComponents.forEach(function(e) {
                        e.node.active && (e.SetReceivedTagState(!1), e.PauseGetRewardEffect())
                    });
                    for (var i = 0; i < t; i++) this.DaysItemContainers[i].children.forEach(function(e) {
                        e.getComponent(f.ItemComponent).SetReceivedTagState(!0)
                    });
                    for (i = t; i < Math.min(n, 3); i++) this.DaysItemContainers[i].children.forEach(function(e) {
                        e.getComponent(f.ItemComponent).PlayGetRewardEffect()
                    })
                }, t.prototype.GetReceiveData = function(e) {
                    return this._model = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this._model.Int2DArray.find(function(t) {
                        return t.Items[0] == e
                    })
                }, t.prototype.ShouldHide = function() {
                    for (var e = 0; e < this._firstPayDatas.length; e++) {
                        var t = this.GetReceiveData(this._firstPayDatas[e].Pack.Id);
                        if (!t || !t.Items[1] || t.Items[2] < 3) return !1
                    }
                    return !(this._configData.CustomPart && this._configData.CustomPart.Rewards && this._configData.CustomPart.Rewards.length > 0 && !(this._model && this._model.IntValue > 0))
                }, t.prototype.TimeToNowInDay = function(e) {
                    var t = d.RpcComponent.Instance.ServerTime,
                        n = g.TimeUtil.Get0ClockTs(e);
                    return Math.ceil((t - n) / m.Etc.DayDuration)
                }, t.prototype.OnItemClick = function(e, t) {
                    this.DaysItemContainers.forEach(function(n) {
                        n.children.indexOf(t) > -1 && y.UIUtlity.ShowItemTip(e, t)
                    })
                }, t.prototype.OnButtonClick = function() {
                    v.default.Instance.SendBuyGiftPackRequest(this._firstPayDatas[this._selectIndex].Pack, this._configData._id)
                }, t.prototype.OnGetButtonClick = function() {
                    var e = this,
                        t = new p.Req_Activity_CommonRewards;
                    t.Params = [this._firstPayDatas[this._selectIndex].Pack.Id], t.ActivityId = this._configData._id, t.Type = 1, d.RpcComponent.Instance.Call(t, function(t) {
                        y.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.CheckClosePanel()
                    })
                }, t.prototype.CheckClosePanel = function() {
                    this.ShouldHide() && (l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REFRESH_GIFT_PACK_LIST), y.UIUtlity.ShowFloatingHint("eightDays_moduleClose".ToUILocale()))
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    t != this._selectIndex && (this._selectIndex = t, this.SetBg(), this.SetRewards(), this.SetButtons())
                }, t.prototype.OnBuyGiftPackSuccess = function() {
                    if (this._progressRewardComponent) {
                        this._model = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id);
                        var e = this.GetBuyCount(),
                            t = this._model && this._model.IntValue > 0;
                        this._progressRewardComponent.UpdateInfo(e, t)
                    }
                }, t.prototype.SetProgressRewardNode = function() {
                    if (!this._progressRewardComponent) {
                        var e = cc.instantiate(this._progressRewardPrefab);
                        e.parent = this.ProgressRewardNode, this._progressRewardComponent = e.getComponent(w.default)
                    }
                    var t = {};
                    t.ItemId = this._configData.CustomPart.Rewards[0].Items[0], t.Desc = "progressReward_buy_all_get".ToUILocale(), t.CurValue = this.GetBuyCount(), t.TotalValue = this._firstPayDatas.length, t.IsReceive = this._model && this._model.IntValue > 0, t.ReceiveCallback = this.RequestGetAllBuyReward.bind(this), this._progressRewardComponent.Init(t)
                }, t.prototype.RequestGetAllBuyReward = function() {
                    var e = this,
                        t = new p.Req_Activity_CommonRewards;
                    t.Type = 2, t.ActivityId = this._configData._id, d.RpcComponent.Instance.Call(t, function(t) {
                        y.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.CheckClosePanel()
                    })
                }, t.prototype.GetBuyCount = function() {
                    var e = this,
                        t = 0;
                    return this._firstPayDatas.forEach(function(n) {
                        var o = e.GetReceiveData(n.Pack.Id);
                        o && o.Items[1] > 0 && t++
                    }), t
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets.forEach(function(e) {
                        S.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([T({
                    type: [cc.Label]
                })], t.prototype, "DaysLabel", void 0), i([T({
                    type: [cc.Node]
                })], t.prototype, "DaysItemContainers", void 0), i([T(cc.Node)], t.prototype, "ToggleNode", void 0), i([T(cc.Label)], t.prototype, "OriginalPriceLabel", void 0), i([T(cc.Label)], t.prototype, "OriginalPriceValue", void 0), i([T(cc.Label)], t.prototype, "AttainValue", void 0), i([T(cc.Label)], t.prototype, "AttainLabel", void 0), i([T(cc.Label)], t.prototype, "PayButtonLabel", void 0), i([T(cc.Button)], t.prototype, "PayButton", void 0), i([T(cc.Button)], t.prototype, "GetButton", void 0), i([T(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([T(cc.Button)], t.prototype, "GrayButton", void 0), i([T(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([T(cc.Node)], t.prototype, "ShowOutTag", void 0), i([T({
                    type: [cc.Node]
                })], t.prototype, "AlreadyGotNodes", void 0), i([T(cc.Sprite)], t.prototype, "Sprite", void 0), i([T(cc.Label)], t.prototype, "DiscountLabel", void 0), i([T(cc.Label)], t.prototype, "DiscountValue", void 0), i([T(cc.Node)], t.prototype, "ProgressRewardNode", void 0), i([A], t)
            }(b.default);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./FirstPayToggle": "FirstPayToggle",
        "./GiftPackCenterBase": "GiftPackCenterBase",
        "./ProgressRewardComponent": "ProgressRewardComponent"
    }],
    GiftPackItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a8b11jytkpGcqH0Mcy1OCzd", "GiftPackItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Tag = null, t.ItemFather = null, t
                }
                return r(t, e), t.prototype.SetItem = function(e, t, n) {
                    if (null == this._item) {
                        var o = e.Get();
                        o.setParent(this.ItemFather), this._item = o.getComponent(a.ItemComponent)
                    }
                    return this._item.Init({
                        ItemId: t.Items[0],
                        Count: t.Items[1]
                    }, n ? a.ItemComponentType.ItemWithStar : a.ItemComponentType.ItemCommon), this
                }, t.prototype.SetMultiple = function(e) {
                    null == e || e <= 1 ? this.Tag.node.parent.active = !1 : (this.Tag.node.parent.active = !0, this.Tag.string = "mall_giftPack_tag".ToUILocale().Fmt(e))
                }, t.prototype.GetItem = function() {
                    return this._item
                }, i([c(cc.Label)], t.prototype, "Tag", void 0), i([c(cc.Node)], t.prototype, "ItemFather", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Components/ItemComponent": "ItemComponent"
    }],
    GiftPackListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f5371av34BF0ps+qdMQiijN", "GiftPackListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("./CommonTaskTipComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("./GiftPackListTabItem"),
            C = e("../Components/VerticalButtonSlider"),
            v = e("./TimeLimitedActivityPanel"),
            b = e("../../../Consts/Consts"),
            S = e("../../RedDot/RedDotManager"),
            w = e("./GiftPackCenterBase");
        (function(e) {
            e[e.SinglePack = 0] = "SinglePack", e[e.GiftPack = 1] = "GiftPack", e[e.ActivityPacks = 2] = "ActivityPacks", e[e.FirstPay = 3] = "FirstPay", e[e.Lucky = 4] = "Lucky"
        })(l || (l = {}));
        var P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.ScrollView = null, t.TabContent = null, t.ArrowLeftButton = null, t.ArrowRightButton = null, t.CenterNode = null, t.CommonTaskTipComponent = null, t.ReturnButton = null, t.DiscountBagButton = null, t.DiscountBagLabel = null, t.DiscountBagTipLabel = null, t._iconNodes = [], t._selectIndex = 0, t._giftPackDatas = [], t._centerData = {}, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("GiftPackListPanel/SubItems/GiftPackListTabItem", cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                        n._tabIconPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(g.EventKeys.EVENT_GIFTPACK_ITEM_CLICK, this.ClickIcons, this), c.Game.EventDispatcher.On(g.EventKeys.EVENT_REFRESH_GIFT_PACK_LIST, this.RefreshGiftPackList, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(g.EventKeys.EVENT_GIFTPACK_ITEM_CLICK, this.ClickIcons, this), c.Game.EventDispatcher.Off(g.EventKeys.EVENT_REFRESH_GIFT_PACK_LIST, this.RefreshGiftPackList, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.DiscountBagLabel.string = "DiscountTicketBag_Title".ToUILocale(), this.DiscountBagTipLabel.string = "DiscountTicketBag_Bubble_Tip".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ArrowLeftButton.node.on("click", this.OnArrowLeftButtonClick, this), this.ArrowRightButton.node.on("click", this.OnArrowRightButtonClick, this), this.DiscountBagButton.node.on("click", this.OnDiscountBagButtonClick, this), this.CommonTaskTipComponent.InitData()
                }, t.prototype.InitData = function(t) {
                    var o = this;
                    if (e.prototype.InitData.call(this, t), t[0]) {
                        this._getWayData = t[0];
                        var r = (i = n.GetGiftPacksData()).findIndex(function(e) {
                            return e.IsActivity == o._getWayData.IsActivity && e.Id == o._getWayData.Id
                        });
                        r > -1 && (this._selectIndex = r)
                    } else if (t[1]) {
                        this._getWayId = t[1];
                        for (var i = n.GetGiftPacksData(), a = 0; a < i.length; a++) {
                            var s = i[a];
                            if (s.IsActivity) {
                                var l = p.DataCenter.Instance.ActivityConfigs[s.Id];
                                if (l && l.Common.GetWayId == this._getWayId) {
                                    this._selectIndex = a;
                                    break
                                }
                            }
                        }
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), this._isReDisplay = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._giftPackDatas = n.GetGiftPacksData(), 0 != this._giftPackDatas.length ? (this.InitNodes(), this.SetIcons(), this.SetDiscountBag(), this.SetGiftPackContent()) : c.UIManager.Instance.BackUIPanel()
                }, t.prototype.InitNodes = function() {
                    this._iconNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetIcons = function() {
                    var e = this;
                    this._selectIndex >= this._giftPackDatas.length && (this._selectIndex = this._giftPackDatas.length - 1), this._giftPackDatas.forEach(function(t, o) {
                        if (!e._iconNodes[o]) {
                            var r = cc.instantiate(e._tabIconPrefab);
                            r.parent = e.TabContent, e._iconNodes[o] = r
                        }
                        e._iconNodes[o].active = !0;
                        var i = e._iconNodes[o].getComponent(_.default);
                        i.InitData(e._selectIndex, o, t);
                        var a = !1;
                        if (t.IsActivity) {
                            var s = p.DataCenter.Instance.ActivityConfigs[t.Id];
                            if (n.CompeleteGiftPackActivityType.indexOf(s.Common.Type) > -1) {
                                var l = v.ActivityData.GetTopicActivityTypeToRedDot(s.Common.Type);
                                l && l.callBackFunc && l.callBackFunc({
                                    Value1: t.Id
                                }) && (a = !0), i.SetRedDot(a)
                            } else a = S.RedDotManager.DataHandler.CheckActivityRedDotState(s), i.SetRedDot(a)
                        }
                        var c = C.default.CheckHasNewByData("giftPackList", t.Id.toString());
                        i.SetNewNode(c)
                    })
                }, t.prototype.SetGiftPackContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    if (e = this._giftPackDatas[this._selectIndex], this._centerData[e.UIType]) return [3, 2];
                                    switch (t = void 0, e.UIType) {
                                        case l.FirstPay:
                                            t = "GiftPackFirstPayComponent";
                                            break;
                                        case l.SinglePack:
                                            t = "GiftPackSingleComponent";
                                            break;
                                        case l.GiftPack:
                                        case l.ActivityPacks:
                                            t = "GiftPackDirectComponent";
                                            break;
                                        case l.Lucky:
                                            t = "GiftPackLuckyComponent"
                                    }
                                    return n = "GiftPackListPanel/SubItems/" + t, [4, this.LoadDynamicAsset(n, cc.Prefab)];
                                case 1:
                                    o = a.sent(), (r = cc.instantiate(o)).parent = this.CenterNode, this._centerData[e.UIType] = r, a.label = 2;
                                case 2:
                                    for (i in this._centerData[e.UIType].getComponent(w.default).InitData(e), this._centerData) this._centerData[i].active = Number(i) == e.UIType;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetDiscountBag = function() {
                    if (this._giftPackDatas[this._selectIndex]) {
                        var e = this._giftPackDatas[this._selectIndex],
                            t = !1;
                        e.IsActivity && p.DataCenter.Instance.ActivityConfigs[e.Id].Common.CanDiscount && (t = !0), this.DiscountBagButton.node.active = t
                    } else this.DiscountBagButton.node.active = !1
                }, t.GetGiftPacksData = function() {
                    var e = p.DataCenter.Instance.GetIntData(d.UserDataKey.TotalPay),
                        t = [],
                        o = [];
                    for (var r in p.DataCenter.Instance.ActivityConfigs) {
                        var i = p.DataCenter.Instance.ActivityConfigs[r];
                        if (i.Common.Type == h.ActivityType.FirstPay ? n.CheckCanAddFirstPayData(i._id) : i && (n.CompeleteGiftPackActivityType.indexOf(i.Common.Type) > -1 && i.Common.IsSummon > 0 || n.HaveGiftPackActivityType.indexOf(i.Common.Type) > -1)) {
                            var a = !0;
                            i.Common.TotalPay && (a = e >= i.Common.TotalPay);
                            var s = !0;
                            i.Common.GameModule && (s = y.default.Instance.IsGameModuleUnlock(i.Common.GameModule)[0]);
                            var c = y.default.Instance.ComputeDeadTime(i.Common);
                            if (a && s && p.RpcComponent.Instance.ServerTime < c) {
                                var u = {
                                    IsActivity: !0
                                };
                                switch (u.Id = i._id, u.Icon = i.Common.Icon, u.Title = i.Common.Title, i.Common.Type) {
                                    case h.ActivityType.SinglePagePack:
                                        u.UIType = l.SinglePack, t.push(u);
                                        break;
                                    case h.ActivityType.GiftPack:
                                        u.UIType = l.GiftPack, t.push(u);
                                        break;
                                    case h.ActivityType.FirstPay:
                                        u.UIType = l.FirstPay, t.push(u);
                                        break;
                                    case h.ActivityType.LuckyPack:
                                        u.UIType = l.Lucky, t.push(u);
                                        break;
                                    default:
                                        u.UIType = l.ActivityPacks, o.push(u)
                                }
                            }
                        }
                    }
                    return t.sort(function(e, t) {
                        var n = p.DataCenter.Instance.ActivityConfigs[e.Id],
                            o = p.DataCenter.Instance.ActivityConfigs[t.Id];
                        return n.Common.SummonSort == o.Common.SummonSort ? o._id - n._id : n.Common.SummonSort - o.Common.SummonSort
                    }), o.sort(function(e, t) {
                        var n = p.DataCenter.Instance.ActivityConfigs[e.Id],
                            o = p.DataCenter.Instance.ActivityConfigs[t.Id];
                        return n.Common.StartTime == o.Common.StartTime ? o._id - n._id : o.Common.StartTime - n.Common.StartTime
                    }), t.concat(o)
                }, t.CheckCanAddFirstPayData = function(e) {
                    var t = !0;
                    if (n.CheckFirstPayIsAllReceive(e)) t = !1;
                    else {
                        var o = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("FirstPay_ShowTime_OutSide"),
                            r = y.default.Instance.GetOpenZeroTime() + b.Etc.DayDuration * o;
                        t = p.RpcComponent.Instance.ServerTime > r
                    }
                    return t
                }, t.CheckFirstPayIsAllReceive = function(e) {
                    for (var t = p.DataCenter.Instance.ActivityConfigs[e], o = 0; o < t._Packs.length; o++) {
                        var r = n.GetReceiveData(t._Packs[o].Id, e);
                        if (!r || !r.Items[1] || r.Items[2] < 3) return !1
                    }
                    var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e);
                    return !(!i || !i.IntValue)
                }, t.GetReceiveData = function(e, t) {
                    return p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t).Int2DArray.find(function(t) {
                        return t.Items[0] == e
                    })
                }, t.prototype.ClickIcons = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._selectIndex == e ? [2] : (this._selectIndex = e, this._isReDisplay = !0, this.SetUIContent(), [2])
                        })
                    })
                }, t.prototype.RefreshGiftPackList = function() {
                    this.SetUIContent()
                }, t.prototype.OnArrowLeftButtonClick = function() {
                    var e = this.ScrollView.getScrollOffset().x + 128;
                    this.ScrollView.scrollToOffset(cc.v2(-e, this.ScrollView.getScrollOffset().y), .2)
                }, t.prototype.OnArrowRightButtonClick = function() {
                    var e = this.ScrollView.getScrollOffset().x - 128;
                    this.ScrollView.scrollToOffset(cc.v2(-e, this.ScrollView.getScrollOffset().y), .2)
                }, t.prototype.OnReturnButtonClick = function() {
                    if (this._giftPackDatas && this._giftPackDatas.length > 0) {
                        var e, t = I.default.GetItem(I.GameRecordDefine.CollectionNew);
                        if (t) {
                            if (!(e = JSON.parse(t)).giftPackList) {
                                var n = [];
                                e.giftPackList = n
                            }
                        } else(e = {}).giftPackList = n = [];
                        this._giftPackDatas.forEach(function(t) {
                            -1 == e.giftPackList.indexOf(t.Id.toString()) && e.giftPackList.push(t.Id.toString())
                        }), I.default.SetItem(I.GameRecordDefine.CollectionNew, JSON.stringify(e)), c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_REFRESH_COLLECTION_NEW, y.ActivityListType.GiftPack)
                    }
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnDiscountBagButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(m.PanelConfig.DiscountTicketBagPanel.Path)
                }, t.CompeleteGiftPackActivityType = [h.ActivityType.SinglePagePack, h.ActivityType.GiftPack, h.ActivityType.FirstPay, h.ActivityType.LuckyPack, h.ActivityType.NewbieCoupon], t.HaveGiftPackActivityType = [h.ActivityType.ScoreShop, h.ActivityType.WishTree, h.ActivityType.BadgeCollect], i([T(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([T(cc.Node)], t.prototype, "TabContent", void 0), i([T(cc.Button)], t.prototype, "ArrowLeftButton", void 0), i([T(cc.Button)], t.prototype, "ArrowRightButton", void 0), i([T(cc.Node)], t.prototype, "CenterNode", void 0), i([T(f.default)], t.prototype, "CommonTaskTipComponent", void 0), i([T(cc.Button)], t.prototype, "ReturnButton", void 0), i([T(cc.Button)], t.prototype, "DiscountBagButton", void 0), i([T(cc.Label)], t.prototype, "DiscountBagLabel", void 0), i([T(cc.Label)], t.prototype, "DiscountBagTipLabel", void 0), n = i([A], t)
            }(c.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/VerticalButtonSlider": "VerticalButtonSlider",
        "./CommonTaskTipComponent": "CommonTaskTipComponent",
        "./GiftPackCenterBase": "GiftPackCenterBase",
        "./GiftPackListTabItem": "GiftPackListTabItem",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    GiftPackListTabItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3ce44Lcl6lHlLh0EBhBbV6B", "GiftPackListTabItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/DataUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BgNode = null, t.Icon = null, t.Arrow = null, t.Name = null, t.RedDotNode = null, t.NewSpriteNode = null, t._selectIndex = 0, t._index = 0, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.ClickSelf, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.ClickSelf, this)
                }, t.prototype.InitData = function(e, t, n) {
                    this._selectIndex = e, this._index = t, this._data = n, this.InitUI()
                }, t.prototype.InitUI = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.BgNode.active = this._selectIndex == this._index, this.Arrow.active = this._selectIndex == this._index, this.Name.string = this._data.Title, this._data.Icon ? (e = p.UIUtlity.GetIconPath(this._data.Icon), [4, d.default.LoadActivityTexture(e)]) : [3, 2];
                                case 1:
                                    if (t = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._assets.push(t), this.Icon.spriteFrame = t, n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetIconNameActive = function(e) {
                    this.Name.node.active = e
                }, t.prototype.SetRedDot = function(e) {
                    this.RedDotNode.active = e
                }, t.prototype.SetNewNode = function(e) {
                    this.NewSpriteNode.active = e
                }, t.prototype.ClickSelf = function() {
                    l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_GIFTPACK_ITEM_CLICK, this._index)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Node)], t.prototype, "BgNode", void 0), i([y(cc.Sprite)], t.prototype, "Icon", void 0), i([y(cc.Node)], t.prototype, "Arrow", void 0), i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Node)], t.prototype, "RedDotNode", void 0), i([y(cc.Node)], t.prototype, "NewSpriteNode", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    GiftPackLuckyComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "24e9cYyLGtG5Yb3E2yVj1AU", "GiftPackLuckyComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("./GiftPackCenterBase"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("./WinnerInfoShow"),
            I = e("./SpecialCast"),
            _ = e("./GiftPackLuckyListItem"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TimeRemainLabel = null, t.WinnerInfoShow = null, t.UnmortalCast = null, t.Content = null, t.RateButton = null, t.RateLabel = null, t._loadedAssets = [], t._gifts = [], t._upToDown = {}, t._giftPackListItems = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = f.AssetsManager.Instance.LoadAsset("GiftPackListPanel/SubItems/GiftPackLuckyListItem", cc.Prefab), n = f.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent, cc.Prefab), o = f.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/Component/Message", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        if (r._listItemPrefab = e[0], r._itemPrefab = e[1], r._messagePrefab = e[2], !r.isValid) return f.AssetsManager.Instance.UnloadAsset(r._listItemPrefab), f.AssetsManager.Instance.UnloadAsset(r._itemPrefab), void f.AssetsManager.Instance.UnloadAsset(r._messagePrefab);
                                        r._loadedAssets.push(r._listItemPrefab), r._loadedAssets.push(r._itemPrefab), r._loadedAssets.push(r._messagePrefab)
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.WinnerInfoShow.Init(this._messagePrefab, function(e, n) {
                        var o = e.getComponent(cc.RichText),
                            r = t.GetGiftById(n.IntParams[1], t._activityConfig._Packs);
                        r && (o.string = "luckyGift_reward_tip".ToUILocale().Fmt(n.StringParams[0], n.IntParams[0], r.Name))
                    }), this.RateLabel.string = "luckyGift_rate".ToUILocale(), this.RateButton.node.on("click", this.ClickRateButton, this)
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, e.prototype.InitData.call(this, t)];
                                case 1:
                                    return n.sent(), this._activityConfig = c.DataCenter.Instance.ActivityConfigs[this._giftPackData.Id], this._deadLine = h.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common), this.DisPlay(!1), this._isFirstIn = !1, this._currentId = this._giftPackData.Id, [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function() {
                    this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetRemainTime(), this.SetWinnerInfoShow(), this.SetGiftPackList()
                }, t.prototype.SetRemainTime = function() {
                    var e = this._deadLine - c.RpcComponent.Instance.ServerTime;
                    this.TimeRemainLabel.node.active = e > 0, this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1)
                }, t.prototype.CountDownActivityTime = function() {
                    var e = this._deadLine - c.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this.unschedule(this.CountDownActivityTime), void l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_GIFT_PACK_LIST);
                    this.TimeRemainLabel.string = "ChaosSummonGift_TimeLeft".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetWinnerInfoShow = function() {
                    var e = this;
                    if (this._currentId != this._giftPackData.Id) {
                        var t = new u.Req_Notice_GetByType;
                        t.Type = g.NoticeType.LuckyPack, t.ActivityId = this._giftPackData.Id, c.RpcComponent.Instance.Call(t, function(t) {
                            if (t.Notice && t.Notice.Normal && t.Notice.Normal.length > 0 && e.WinnerInfoShow.Render(t.Notice.Normal), t.Notice && t.Notice.Advance && t.Notice.Advance.length > 0) {
                                var n = t.Notice.Advance[0];
                                if (n.IntParams && n.IntParams[0] && n.IntParams[1]) {
                                    e.UnmortalCast.node.active = !0;
                                    var o = e.GetGiftById(n.IntParams[1], e._activityConfig._Packs);
                                    if (o) {
                                        var r = "luckyGift_reward_tip".ToUILocale().Fmt(n.StringParams[0], n.IntParams[0], o.Name);
                                        e.UnmortalCast.Push(r)
                                    }
                                }
                            } else e.UnmortalCast.node.active = !1
                        })
                    }
                }, t.prototype.SetGiftPackList = function() {
                    this.SetGiftPackkData(), this.SetGiftPackNode()
                }, t.prototype.SetGiftPackNode = function() {
                    this._giftPackListItems.forEach(function(e) {
                        e.active = !1
                    });
                    for (var e = 0; e < this._gifts.length; e++) {
                        if (!this._giftPackListItems[e]) {
                            var t = cc.instantiate(this._listItemPrefab);
                            t.setParent(this.Content), this._giftPackListItems[e] = t
                        }
                        this._giftPackListItems[e].active = !0;
                        var n = this._gifts[e];
                        this._giftPackListItems[e].getComponent(_.default).Init(this._itemPrefab, n, this._activityConfig)
                    }
                }, t.prototype.SetGiftPackkData = function() {
                    this._gifts = [];
                    for (var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._giftPackData.Id), t = 0; t < this._activityConfig._Packs.length; t++) {
                        var n = this._activityConfig._Packs[t];
                        null == n.UnlockCondition || 0 == n.UnlockCondition ? this._gifts.push(n) : this._upToDown[n.UnlockCondition] = n.Id
                    }
                    this.PeelGifts(), this._gifts.sort(function(t, n) {
                        var o = 0 != t.LimitType && e.Packs[t.Id].Items[0] >= t.LimitCount,
                            r = 0 != n.LimitType && e.Packs[n.Id].Items[0] >= n.LimitCount;
                        return o && !r ? 1 : !o && r ? -1 : t.SortId != n.SortId ? t.SortId - n.SortId : t.Id - n.Id
                    })
                }, t.prototype.PeelGifts = function() {
                    for (var e = 0; e < this._gifts.length; e++)
                        for (var t = this._gifts[e].Id; this._gifts[e].LimitCount <= this.GetGiftBuyCount(t, this._giftPackData.Id) && null != this._upToDown[t];) this._gifts[e] = this.GetGiftById(this._upToDown[t], this._activityConfig._Packs), t = this._gifts[e].Id
                }, t.prototype.GetGiftById = function(e, t) {
                    for (var n = 0; n < t.length; n++)
                        if (t[n].Id == e) return t[n];
                    return null
                }, t.prototype.GetGiftBuyCount = function(e, t) {
                    var n = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, t);
                    return n && n.Packs && n.Packs[e] && n.Packs[e].Items && n.Packs[e].Items[0] ? n.Packs[e].Items[0] : 0
                }, t.prototype.ClickRateButton = function() {
                    if (this._activityConfig.Prob.length > 0) {
                        var e = [],
                            t = 0,
                            n = this._activityConfig.Prob[0].Prob;
                        n.forEach(function(e) {
                            t += e.Items[1]
                        }), n.forEach(function(n) {
                            var o = Math.floor(100 * n.Items[1] / t),
                                r = "luckyGift_show_rate".ToUILocale().Fmt(n.Items[0], o);
                            e.push(r)
                        }), l.UIManager.Instance.ShowUIPanel(y.PanelConfig.LuckyGiftPackRatePanel.Path, e)
                    }
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets.forEach(function(e) {
                        f.AssetsManager.Instance.UnloadAsset(e)
                    }), this.unschedule(this.CountDownActivityTime)
                }, i([b(cc.RichText)], t.prototype, "TimeRemainLabel", void 0), i([b(m.default)], t.prototype, "WinnerInfoShow", void 0), i([b(I.default)], t.prototype, "UnmortalCast", void 0), i([b(cc.Node)], t.prototype, "Content", void 0), i([b(cc.Button)], t.prototype, "RateButton", void 0), i([b(cc.Label)], t.prototype, "RateLabel", void 0), i([v], t)
            }(p.default);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./GiftPackCenterBase": "GiftPackCenterBase",
        "./GiftPackLuckyListItem": "GiftPackLuckyListItem",
        "./SpecialCast": "SpecialCast",
        "./WinnerInfoShow": "WinnerInfoShow"
    }],
    GiftPackLuckyListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "69654/ubIZH+bmF7tsOw8+b", "GiftPackLuckyListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Channel/ChannelManager"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/ItemComponent"),
            h = e("./DisplayRewardsPanel"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.PurchaseLimit = null, t.ItemContainer = null, t.GetLabel = null, t.GetValue = null, t.MultiLabel = null, t.MultiDescLabel = null, t.BuyButton = null, t.BuyButtonLabel = null, t.ShowOutTag = null, t.RedDot = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.BuyButton.node.on("click", this.OnBuyButtonClick, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.BuyButton.node.off("click", this.OnBuyButtonClick, this), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    var o = this;
                    this._giftPackConfig = t, this._activityConfig = n;
                    var r = 0,
                        i = a.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._activityConfig._id);
                    this.Name.string = t.Name, i && i.Packs && i.Packs[t.Id] && i.Packs[t.Id].Items && i.Packs[t.Id].Items[0] && (r = i.Packs[t.Id].Items[0]);
                    var l, c = t.LimitCount - r;
                    this.PurchaseLimit.node.parent.active = 0 != t.LimitType, l = c > 0 ? c.toString() : "<color = ff0000>0</>", this.PurchaseLimit.string = ("mall_buyLimit_" + t.LimitType).ToUILocale().Fmt(l, t.LimitCount), t.LimitType ? (this.ShowOutTag.active = c <= 0, this.BuyButton.node.active = c > 0) : (this.ShowOutTag.active = !1, this.BuyButton.node.active = !0), this.BuyButtonLabel.string = t.Money > 0 ? u.default.Instance.CurrencySymbol + u.default.Instance.ExchangeMoney(t.Money) : "shop_buyFree".ToUILocale(), this.GetLabel.node.parent.active = t.VipPoint > 0, this.GetLabel.string = "task_get_score_tag".ToUILocale(), this.GetValue.string = "x" + t.VipPoint, this.RedDot.active = null == t.Money || 0 == t.Money, this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), t.Items.forEach(function(t, n) {
                        if (!o._itemNodes[n]) {
                            var r = cc.instantiate(e);
                            r.parent = o.ItemContainer, r.y = -25, o._itemNodes[n] = r
                        }
                        o._itemNodes[n].active = !0, o._itemNodes[n].getComponent(d.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        })
                    });
                    var p = this.GetGiftMultis(),
                        h = "";
                    p.forEach(function(e, t) {
                        t != p.length - 1 ? h += e + "\u3001" : h += e.toString()
                    }), this.MultiLabel.string = "?", this.MultiDescLabel.string = "luckyGift_multi".ToUILocale().Fmt(h)
                }, t.prototype.GetGiftMultis = function() {
                    var e = this,
                        t = [],
                        n = this._activityConfig.Prob.find(function(t) {
                            return t.Id == e._giftPackConfig.Id
                        });
                    return n && n.Prob.forEach(function(e) {
                        t.push(e.Items[0])
                    }), t
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = this;
                    if (null == this._giftPackConfig.Money || 0 == this._giftPackConfig.Money) {
                        var t = new s.Req_Pay_ByDiamond;
                        t.Id = this._giftPackConfig.Id, t.ActivityId = this._activityConfig._id, a.RpcComponent.Instance.Call(t, function(t) {
                            if (t.IntParams && t.IntParams[0]) {
                                var n = [t.IntParams[0], t.IntParams[1], e._activityConfig._id, e._giftPackConfig.Id];
                                p.UIUtlity.ShwDisplayRewardPanel(t.Rewards, h.RewardPanelSpineType.MultipleSpine, n)
                            } else p.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                        })
                    } else u.default.Instance.Pay(this._giftPackConfig.Id, this._activityConfig._id)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, i([g(cc.Label)], t.prototype, "Name", void 0), i([g(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Label)], t.prototype, "GetLabel", void 0), i([g(cc.Label)], t.prototype, "GetValue", void 0), i([g(cc.Label)], t.prototype, "MultiLabel", void 0), i([g(cc.Label)], t.prototype, "MultiDescLabel", void 0), i([g(cc.Button)], t.prototype, "BuyButton", void 0), i([g(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([g(cc.Node)], t.prototype, "ShowOutTag", void 0), i([g(cc.Node)], t.prototype, "RedDot", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./DisplayRewardsPanel": "DisplayRewardsPanel"
    }],
    GiftPackSingleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3344dRnxhhOR4x6rkC+dWkf", "GiftPackSingleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./NodePool"),
            g = e("./SinglePageGiftComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../Channel/ChannelManager"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../Components/ItemComponent"),
            v = e("../../Components/Components"),
            b = e("../../../Consts/Consts"),
            S = e("./GiftPackCenterBase"),
            w = e("../../../EZFramework/EZFramework"),
            P = e("../Components/OpenBubbleComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CommonNode = null, t.LeftTimeRichText = null, t.GiftContainer = null, t.BannerSprite = null, t.TitleSprite = null, t.SkinNode = null, t.HeroSkinNode = null, t.CitySkinNode = null, t.CitySkinBg = null, t.HeroUIContainer = null, t.HeroAvatarContainer = null, t.HeroNameImage = null, t.SkinNameImage = null, t.SkinTimeNode = null, t.SkinTimeRichText = null, t.SkinGiftContainer = null, t.GoButton = null, t.GoLabel = null, t.OpenBubbleComponent = null, t._nextGiftMap = {}, t._isNewActivity = !1, t._packDatas = [], t._heroSkinPosX = 257, t._loadedAssets = [], t._giftListItemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyButtonClick, this), l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnBuyButtonClick, this), l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([w.AssetsManager.Instance.LoadAsset("ActivitySinglePageGiftPanel/Components/SinglePageGiftComponent", cc.Prefab), w.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        if (!t.isValid) return w.AssetsManager.Instance.UnloadAsset(e[0]), void w.AssetsManager.Instance.UnloadAsset(e[1]);
                                        t._giftListItemPrefab = e[0], t._itemPool = new y.default(e[1]), t._loadedAssets.push(t._giftListItemPrefab), t._loadedAssets.push(e[1])
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GoLabel.string = "skinGift_go".ToUILocale(), this.GoButton.node.on("click", this.OnGoButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return [4, e.prototype.InitData.call(this, t)];
                                case 1:
                                    return r.sent(), this._data = c.DataCenter.Instance.ActivityConfigs[this._giftPackData.Id], this._deadLine = h.default.Instance.ComputeDeadTime(this._data.Common), this._data.CustomPart.Type || this.SetBanner(), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this._giftListItems = [], this._nextGiftMap = {}, this._packDatas = [], this._model = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._data._id), this._model.IntArray && this._model.IntArray.length > 0 && (n = 0, this._model.IntArray.forEach(function(e) {
                                        e > 0 && n++
                                    }), this._model.IntArray.length == n && (this._isNewActivity = !0)), this._isNewActivity ? this._model.IntArray.forEach(function(e) {
                                        var t = o._data.__PackExtend.findIndex(function(t) {
                                            return t.Id == e
                                        });
                                        if (t > -1) {
                                            var n = o._data.__PackExtend[t].Packs;
                                            o._packDatas.push(n)
                                        }
                                    }) : this._packDatas = [this._data.CustomPart.Packs1, this._data.CustomPart.Packs2], this._giftListItemNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._packDatas.forEach(function(e, t) {
                                        if (e && e.length > 0) {
                                            if (!o._giftListItemNodes[t]) {
                                                var n = cc.instantiate(o._giftListItemPrefab);
                                                o._giftListItemNodes[t] = n
                                            }
                                            o._giftListItemNodes[t].active = !0, o._data.CustomPart.Type ? o._giftListItemNodes[t].setParent(o.SkinGiftContainer) : o._giftListItemNodes[t].setParent(o.GiftContainer);
                                            var r = o._giftListItemNodes[t].getComponent(g.default);
                                            o._giftListItems.push(r);
                                            for (var i = 0; i < e.length; i++) {
                                                var a = o.GetGiftData(e[i]);
                                                a.UnlockCondition ? o._nextGiftMap[a.UnlockCondition] = a.Id : r.SetGiftId(a.Id)
                                            }
                                        }
                                    }), [4, this.PreloadByData()];
                                case 2:
                                    return r.sent(), this.DisPlay(!1), this._isFirstIn = !1, [2]
                            }
                        })
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return 2 != this._data.CustomPart.Type ? [3, 2] : [4, h.default.LoadActivityTexture(this._data.Common.ShowImage)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return w.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this.CitySkinBg.spriteFrame = e, this._loadedAssets.push(e), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function() {
                    switch (this.CommonNode.active = !this._data.CustomPart.Type || 0 == this._data.CustomPart.Type, this.SkinNode.active = 0 != this._data.CustomPart.Type, this.HeroSkinNode.active = 1 == this._data.CustomPart.Type, this.CitySkinNode.active = 2 == this._data.CustomPart.Type, this._data.CustomPart.Type) {
                        case 1:
                            this.SkinTimeNode.x = this._heroSkinPosX;
                            break;
                        case 2:
                            this.SkinTimeNode.x = 0;
                            break;
                        default:
                            this.SkinTimeNode.x = this._heroSkinPosX
                    }
                    this._model = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._data._id);
                    for (var e = 0; e < this._giftListItems.length; e++) {
                        for (var t = this._giftListItems[e].GetGiftId(), n = this.GetGiftData(t), o = this._nextGiftMap[t]; this.GetGiftBuyCount(t) >= n.LimitCount && o;) t = o, n = this.GetGiftData(t), o = this._nextGiftMap[t];
                        this._giftListItems[e].SetTitle(n.Name).SetItems(this._itemPool, n.Items).SetButtonLabel(I.default.Instance.ExchangeMoney(n.Money), n.VipPoint).SetPurchaseLimit(n.LimitCount - this.GetGiftBuyCount(t), n.LimitCount, n.LimitType).SetDiscount(n.Discount).SetButtonClick(e), this._giftListItems[e].SetGiftId(t)
                    }
                    1 == this._data.CustomPart.Type && this.SetSkinContent(), this.CheckIsAllBuy() && l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, this._data._id, -1)
                }, t.prototype.SetSkinContent = function() {
                    this.SetHeroName(), this.SetSkinName(), this.SetOpenBubbleComponent(), this.SetHeroAvatar()
                }, t.prototype.SetOpenBubbleComponent = function() {
                    this.OpenBubbleComponent.node.active = !1;
                    var e = v.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, this._data.CustomPart.Param[0]);
                    if (e) {
                        var t = e.Id.ToSkinDesc();
                        if (t) {
                            this.OpenBubbleComponent.node.active = !0;
                            var n = {};
                            n.Desc = t, this.OpenBubbleComponent.Init(n)
                        }
                    }
                }, t.prototype.CheckIsAllBuy = function() {
                    for (var e = 0; e < this._packDatas.length; e++)
                        for (var t = this._packDatas[e], n = 0; n < t.length; n++) {
                            var o = this.GetGiftData(t[n]);
                            if (this.GetGiftBuyCount(o.Id) < o.LimitCount) return !1
                        }
                    return !0
                }, t.prototype.SetHeroName = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = this._data.CustomPart.Param[0], t = v.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, e), [4, w.AssetsManager.Instance.LoadAsset(c.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/" + t.HeroId), cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this.HeroNameImage.spriteFrame = n, this._loadedAssets.push(n), [2]) : (l.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.SetSkinName = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, h.default.LoadActivityTexture(this._data.Common.ShowImage)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.SkinNameImage.spriteFrame = e, this._loadedAssets.push(e), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetHeroAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return n = this._data.CustomPart.Param[0], (o = v.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, n)) ? (r = w.AssetsManager.Instance.LoadAsset(o.UIAvatar + "/Avatar"), i = w.AssetsManager.Instance.LoadAsset("Hero_" + o.Model + "/HeroAvatar"), [4, Promise.all([r, i]).then(function(n) {
                                        e = n[0], t = n[1]
                                    })]) : [3, 2];
                                case 1:
                                    if (s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._loadedAssets.push(e), this._loadedAssets.push(t), this.HeroUIContainer.destroyAllChildren(), this.HeroAvatarContainer.destroyAllChildren(), (a = cc.instantiate(e)).setParent(this.HeroUIContainer), (c = cc.instantiate(t)).setParent(this.HeroAvatarContainer), a.getComponent(sp.Skeleton).clearTracks(), a.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0), c.getComponent(sp.Skeleton).clearTracks(), c.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0), s.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - c.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this.unschedule(this.CountDown), void l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_GIFT_PACK_LIST);
                    this._data.CustomPart.Type ? this.SkinTimeRichText.string = "openServer_frameCountDown".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e)) : this.LeftTimeRichText.string = "openServer_frameCountDown".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return (e = this._data.Common.ShowImage.split("|")).length > 1 ? (t = e[0], n = e[1], [4, h.default.LoadActivityTexture(n)]) : [3, 3];
                                case 1:
                                    return o = a.sent(), [4, h.default.LoadActivityTexture(t)];
                                case 2:
                                    return r = a.sent(), this.isValid ? (this._loadedAssets.push(o), this._loadedAssets.push(r), this.TitleSprite.spriteFrame = o, this.BannerSprite.spriteFrame = r, [3, 5]) : (l.AssetsManager.Instance.UnloadAsset(o), l.AssetsManager.Instance.UnloadAsset(r), [2]);
                                case 3:
                                    return e.length > 0 ? (this.TitleSprite.node.active = !1, [4, h.default.LoadActivityTexture(this._data.Common.ShowImage)]) : [3, 5];
                                case 4:
                                    if (i = a.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(i), [2];
                                    this.BannerSprite.spriteFrame = i, this._loadedAssets.push(i), a.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetGiftData = function(e) {
                    for (var t = 0; t < this._data._Packs.length; t++)
                        if (e == this._data._Packs[t].Id) return this._data._Packs[t]
                }, t.prototype.GetGiftBuyCount = function(e) {
                    var t = this._model.Packs[e];
                    return null == t || null == t.Items[0] ? 0 : t.Items[0]
                }, t.prototype.OnBuyButtonClick = function(e, t) {
                    var n = this,
                        o = !0;
                    1 == this._data.CustomPart.Type && this.GetGiftData(t).Items.forEach(function(e) {
                        var r = e.Items[0],
                            i = v.ConfigDataComponent.Instance.GetConfigById(d.ItemConsume_Config, r);
                        if (i && i.SubType == b.ConsumeItemType.HeroSkin) {
                            var a = i.Param[0].Items[0],
                                s = c.DataCenter.Instance.GetDataById(p.HeroSkin_Model, a);
                            s && s.IsPerpetual && (o = !1, _.UIUtlity.ShowHintPanel("", "skinGift_hint".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                I.default.Instance.Pay(t, n._data._id)
                            }))
                        }
                    }), o && I.default.Instance.Pay(t, this._data._id)
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemFather0" == t.parent.name && _.UIUtlity.ShowItemTip(t.getComponent(C.ItemComponent).ItemId, t)
                }, t.prototype.OnGoButtonClick = function() {
                    if (1 == this._data.CustomPart.Type) {
                        var e = this._data.CustomPart.Param[0],
                            t = v.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, e);
                        l.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroSkinPanel.Path, t.HeroId, 2, e)
                    } else 2 == this._data.CustomPart.Type && l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CollectionPreviewPanel.Path, this._data.CustomPart.Param[0])
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets.forEach(function(e) {
                        w.AssetsManager.Instance.UnloadAsset(e)
                    }), this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear()
                }, i([R(cc.Node)], t.prototype, "CommonNode", void 0), i([R(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([R(cc.Node)], t.prototype, "GiftContainer", void 0), i([R(cc.Sprite)], t.prototype, "BannerSprite", void 0), i([R(cc.Sprite)], t.prototype, "TitleSprite", void 0), i([R(cc.Node)], t.prototype, "SkinNode", void 0), i([R(cc.Node)], t.prototype, "HeroSkinNode", void 0), i([R(cc.Node)], t.prototype, "CitySkinNode", void 0), i([R(cc.Sprite)], t.prototype, "CitySkinBg", void 0), i([R(cc.Node)], t.prototype, "HeroUIContainer", void 0), i([R(cc.Node)], t.prototype, "HeroAvatarContainer", void 0), i([R(cc.Sprite)], t.prototype, "HeroNameImage", void 0), i([R(cc.Sprite)], t.prototype, "SkinNameImage", void 0), i([R(cc.Node)], t.prototype, "SkinTimeNode", void 0), i([R(cc.RichText)], t.prototype, "SkinTimeRichText", void 0), i([R(cc.Node)], t.prototype, "SkinGiftContainer", void 0), i([R(cc.Button)], t.prototype, "GoButton", void 0), i([R(cc.Label)], t.prototype, "GoLabel", void 0), i([R(P.default)], t.prototype, "OpenBubbleComponent", void 0), i([T], t)
            }(S.default);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/OpenBubbleComponent": "OpenBubbleComponent",
        "./GiftPackCenterBase": "GiftPackCenterBase",
        "./NodePool": "NodePool",
        "./SinglePageGiftComponent": "SinglePageGiftComponent"
    }],
    GiftPacksPreviewGroup: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7bafbfcX45EoII8NqSvz23j", "GiftPacksPreviewGroup");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./GiftPacksPreviewItem"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleLabel = null, t.ItemContianer = null, t._itemPrefab = null, t
                }
                return r(t, e), t.prototype.onDestroy = function() {
                    this._itemPrefab && l.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, t.prototype.Init = function(e) {
                    this.TitleLabel.string = e.title, this.SetItemView(e.packInfos)
                }, t.prototype.SetItemView = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/ModuleRewardByAccumulateRecharge/Private/GiftPacksPreviewItem")];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._itemPrefab = t, o.label = 2;
                                case 2:
                                    return e.forEach(function(e) {
                                        var t = cc.instantiate(n._itemPrefab);
                                        t.getComponent(c.default).Init(e), n.ItemContianer.addChild(t)
                                    }), [2]
                            }
                        })
                    })
                }, i([d(cc.Label)], t.prototype, "TitleLabel", void 0), i([d(cc.Node)], t.prototype, "ItemContianer", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./GiftPacksPreviewItem": "GiftPacksPreviewItem"
    }],
    GiftPacksPreviewItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "74f07qkZNpPnrmW/UD7HBTv", "GiftPacksPreviewItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Channel/ChannelManager"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./ItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PackTitle = null, t.ItemContainer = null, t.PriceTagLabel = null, t.PriceLabel = null, t.CostEffectiveTagLabel = null, t.CostEffectiveLabel = null, t.PurchaseLimitTagLabel = null, t.PurchaseLimitLabel = null, t._packInfo = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.PriceTagLabel.string = "AccumulateRecharge_ItemPriceTag".ToUILocale(), this.CostEffectiveTagLabel.string = "AccumulateRecharge_CostEffectiveTag".ToUILocale(), this.PurchaseLimitTagLabel.string = "AccumulateRecharge_BuyLimitTag".ToUILocale()
                }, t.prototype.onDestroy = function() {
                    this._itemPrefab && l.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    this._packInfo = e, this.PackTitle.string = this._packInfo.Name, this.SetItemView(), this.SetPackInfoView()
                }, t.prototype.SetItemView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, o.label = 2;
                                case 2:
                                    for (t = 0; t < this._packInfo.Items.length; t++)(n = cc.instantiate(this._itemPrefab)).getComponent(h.ItemComponent).Init({
                                        ItemId: this._packInfo.Items[t].Items[0],
                                        Count: this._packInfo.Items[t].Items[1]
                                    }), this.ItemContainer.addChild(n), n.name = this._packInfo.Items[t].Items[0].toString();
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetPackInfoView = function() {
                    this.PriceLabel.string = p.default.Instance.ExchangeMoney(this._packInfo.Money).toString(), this.CostEffectiveLabel.string = this._packInfo.Discount + "%", this.PurchaseLimitLabel.string = this._packInfo.LimitCount.toString()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && d.UIUtlity.ShowItemTip(e, t)
                }, i([g(cc.Label)], t.prototype, "PackTitle", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Label)], t.prototype, "PriceTagLabel", void 0), i([g(cc.Label)], t.prototype, "PriceLabel", void 0), i([g(cc.Label)], t.prototype, "CostEffectiveTagLabel", void 0), i([g(cc.Label)], t.prototype, "CostEffectiveLabel", void 0), i([g(cc.Label)], t.prototype, "PurchaseLimitTagLabel", void 0), i([g(cc.Label)], t.prototype, "PurchaseLimitLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    GiftPacksPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "be6cfAG2O1DOrUP+zPpIih1", "GiftPacksPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/GiftPacksPreviewGroup"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.PanelTitle = null, t.GroupContainer = null, t._groupPrefab = null, t._packInfos = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleRewardByAccumulateRecharge/Private/GiftPacksPreviewGroup", cc.Prefab)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._groupPrefab = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this.PanelTitle.string = t[0], this._packInfos = t[1]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this._packInfos.forEach(function(e) {
                        var t = cc.instantiate(n._groupPrefab);
                        t.getComponent(c.default).Init(e), n.GroupContainer.addChild(t)
                    })
                }, i([d(cc.Label)], t.prototype, "PanelTitle", void 0), i([d(cc.Node)], t.prototype, "GroupContainer", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/GiftPacksPreviewGroup": "GiftPacksPreviewGroup"
    }],
    GiveANamePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6a7c3igzWpFu50hZyzMRR5B", "GiveANamePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Auxiliary/GuideManager"),
            p = e("../../Auxiliary/EventKeys"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1, !1), t.WhatsYourName = null, t.BlueButton = null, t.BlueButtonLabel = null, t.OrangeButton = null, t.OrangeButtonLabel = null, t.InputField = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.WhatsYourName.string = "giveAName_tip".ToUILocale(), this.BlueButtonLabel.string = "giveAName_randomGenerate".ToUILocale(), this.OrangeButtonLabel.string = "ok".ToUILocale(), this.BlueButton.node.on("click", this.OnBlueButtonClick, this), this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this._minCharNumber = l.ConfigDataComponent.Instance.GetGlobalSettingByKey("PlayerRoleNameMinChars"), this._maxCharNumber = l.ConfigDataComponent.Instance.GetGlobalSettingByKey("PlayerRoleNameMaxChars"), this.InputField.maxLength = this._maxCharNumber
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.OnBlueButtonClick()
                }, t.prototype.OnBlueButtonClick = function() {
                    for (var e = l.ConfigCacheComponent.Instance.GetRandomNamesConfigs(), t = [this.GetNamePool1, this.GetNamePool2, this.GetNamePool3], n = "", o = 0; o < t.length; o++) n += this.GetValidName(e, t[o].bind(this));
                    this.InputField.string = n
                }, t.prototype.GetValidName = function(e, t) {
                    for (var n = Math.floor(Math.random() * e.length), o = t(e[n]); null == o || "" == o;) o = t(e[n = Math.floor(n / 2)]);
                    return o
                }, t.prototype.GetNamePool1 = function(e) {
                    return e.NamePool1
                }, t.prototype.GetNamePool2 = function(e) {
                    return e.NamePool2
                }, t.prototype.GetNamePool3 = function(e) {
                    return e.NamePool3
                }, t.prototype.OnOrangeButtonClick = function() {
                    var e = this;
                    if (this.InputField.string.length < this._minCharNumber) c.UIUtlity.ShowFloatingHint("giveAName_leastLength".ToUILocale().Fmt(this._minCharNumber));
                    else {
                        var t = new RegExp("[ _+-/`~!@#$%^&*()=|{}':;',\\[\\].<>/?\uff01@#\uffe5\u2026\u2026&*\uff08\uff09\u2014\u2014|{}\xb7\u3010\u3011\u2018\uff1b\uff1a\u201d\u201c'\u3002\uff0c\u3001\uff1f]");
                        if (a.EZLog.Log("\u7279\u6b8a\u5b57\u7b26\u5e93\uff1a", t), a.EZLog.Log("\u7279\u6b8a\u5b57\u7b26\u5339\u914d\u7ed3\u679c\uff1a", this.InputField.string.match(t)), null == this.InputField.string.match(t)) {
                            var n = new s.Req_Player_Rename;
                            n.RoleName = this.InputField.string, l.RpcComponent.Instance.Call(n, function() {
                                u.default.Instance.CheckNextStep(), c.UIUtlity.ShowFloatingHint("giveAName_nameSuccess".ToUILocale()), a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_NAMING_SUCCESS), e.Close()
                            }, null, u.default.Instance.CurrentGroup)
                        } else c.UIUtlity.ShowFloatingHint("giveAName_illegalInput".ToUILocale())
                    }
                }, i([f(cc.Label)], t.prototype, "WhatsYourName", void 0), i([f(cc.Button)], t.prototype, "BlueButton", void 0), i([f(cc.Label)], t.prototype, "BlueButtonLabel", void 0), i([f(cc.Button)], t.prototype, "OrangeButton", void 0), i([f(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([f(cc.EditBox)], t.prototype, "InputField", void 0), i([h], t)
            }(a.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    GlobalChampionGradeRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2e16cyJaORHPL+KL3OJfmKe", "GlobalChampionGradeRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./ItemComponent"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Panel/GlobalChampionShipPanel"),
            h = e("../Panel/GlobalChampionMainPanel"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GradeLabel = null, t.GradeSprite = null, t.ItemContent = null, t._itemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    var t = this;
                    this._data = e, this.GradeLabel.string = this.GetGradeName(), this.GradeSprite.spriteFrame = e.Atlas.getSpriteFrame("cup" + this._stageConfig.Id), this._itemComponents.forEach(function(e) {
                        e.node.active = !1
                    });
                    var n = 0,
                        o = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, e.ActivityConfig._id);
                    this._data.Data.Groups.forEach(function(r) {
                        r.Rewards.forEach(function(i) {
                            if (!t._itemComponents[n]) {
                                var a = cc.instantiate(e.ItemPrefab);
                                a.parent = t.ItemContent, a.y = -20, t._itemComponents[n] = a.getComponent(u.ItemComponent)
                            }
                            if (t._itemComponents[n].node.active = !0, t._itemComponents[n].Init({
                                    ItemId: i.Items[0],
                                    Count: i.Items[1]
                                }), t._itemComponents[n].SetSelectFlagState(!1), !e.IsFirstIn) {
                                var s = o.IntArray[0] && r.Id >= o.IntArray[0];
                                t._itemComponents[n].SetSelectFlagState(s)
                            }
                            n++
                        })
                    })
                }, t.prototype.GetGradeName = function() {
                    var e = this,
                        t = "";
                    if (this._stageConfig = this._data.ActivityConfig.__Stages.find(function(t) {
                            return t.Id == e._data.Data.Config.Stage
                        }), t = this._data.ActivityConfig._Locale.find(function(t) {
                            return t.Id == e._stageConfig.NameKey
                        }).Content, this._data.Data.Config.Stage > this._data.ActivityConfig.__Stages[d.GlobalChampionShipGrade.Grade2].Id) {
                        var n = h.default.GetGradeToStages(this._data.ActivityConfig)[this._data.Data.Config.Stage].findIndex(function(t) {
                            return t.Id == e._data.Data.Config.Id
                        });
                        n > -1 && (t += c.UIUtlity.GetRomanNumerals(n + 1))
                    }
                    return t
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContent.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, i([g(cc.Label)], t.prototype, "GradeLabel", void 0), i([g(cc.Sprite)], t.prototype, "GradeSprite", void 0), i([g(cc.Node)], t.prototype, "ItemContent", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "../Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "./ItemComponent": "ItemComponent"
    }],
    GlobalChampionLegendComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1324aY5DbZG7L2f2tAo3Ltg", "GlobalChampionLegendComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./GlobalChampionPlayerComponent"),
            l = e("../../Auxiliary/EventKeys"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LeftGlobalChampionPlayerComponent = null, t.RightGlobalChampionPlayerComponent = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(l.EventKeys.EVENT_CHECK_CHAMPIONLEGEND_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(l.EventKeys.EVENT_CHECK_CHAMPIONLEGEND_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.Init = function(e) {
                    if (this._data = e, this.LeftGlobalChampionPlayerComponent.node.active = !1, this.RightGlobalChampionPlayerComponent.node.active = !1, e.LeftRankRowData) {
                        this.LeftGlobalChampionPlayerComponent.node.active = !0;
                        var t = {};
                        t.ActivityConfig = e.ActivityConfig, t.HeadPrefab = e.HeadPrefab, t.PlayerInfo = e.LeftRankRowData.PlayerInfo, t.ShowType = e.ShowType, t.Rank = e.LeftRankId, t.Score = 0, t.IsLengend = !0, t.MyRank = e.MyRank, t.Zone = e.LeftRankRowData.Zone, this.LeftGlobalChampionPlayerComponent.Init(t)
                    }
                    if (e.RightRankRowData) {
                        this.RightGlobalChampionPlayerComponent.node.active = !0;
                        var n = {};
                        n.ActivityConfig = e.ActivityConfig, n.HeadPrefab = e.HeadPrefab, n.PlayerInfo = e.RightRankRowData.PlayerInfo, n.ShowType = e.ShowType, n.Rank = e.RightRankId, n.Score = 0, n.IsLengend = !0, n.MyRank = e.MyRank, n.Zone = e.RightRankRowData.Zone, this.RightGlobalChampionPlayerComponent.Init(n)
                    }
                }, Object.defineProperty(t.prototype, "LegendData", {
                    get: function() {
                        return this._data
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, i([p(s.default)], t.prototype, "LeftGlobalChampionPlayerComponent", void 0), i([p(s.default)], t.prototype, "RightGlobalChampionPlayerComponent", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "./GlobalChampionPlayerComponent": "GlobalChampionPlayerComponent"
    }],
    GlobalChampionMainComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6a381MNaglFJ4ayX88L5YZc", "GlobalChampionMainComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Panel/GlobalChampionMainPanel"),
            l = e("./ItemComponent"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.CupSprite = null, t.NameLabel = null, t.CupLabel = null, t.CupNode = null, t.RankLabel = null, t.ItemContent = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    this._data = e, this.Bg.spriteFrame = e.Atlas.getSpriteFrame("gradeBg" + (8 - e.Config.Id)), this.CupSprite.spriteFrame = e.Atlas.getSpriteFrame("cup" + e.Config.Id);
                    var t = e.ActivityConfig.__Stages[0];
                    if (this.CupNode.active = e.Config.Id != t.Id, this.RankLabel.node.active = e.Config.Id == t.Id, e.Config.Id == t.Id) this.RankLabel.string = this._data.ActivityConfig.CustomPart.RankCount.toString();
                    else {
                        var n = this.GetGradeCup();
                        this.CupLabel.string = n.toString()
                    }
                    this.SetGradeNameLabel(), this.SetItemContent()
                }, t.prototype.GetGradeCup = function() {
                    var e = s.default.GetGradeToStages(this._data.ActivityConfig),
                        t = s.default.GetStageToStage2s(this._data.ActivityConfig),
                        n = e[this._data.Config.Id].length,
                        o = e[this._data.Config.Id][n - 1].Id,
                        r = t[o].length;
                    return t[o][r - 1].Score
                }, t.prototype.SetGradeNameLabel = function() {
                    var e = this,
                        t = this._data.ActivityConfig._Locale.find(function(t) {
                            return t.Id == e._data.Config.Id
                        });
                    t && (this.NameLabel.string = t.Content)
                }, t.prototype.SetItemContent = function() {
                    var e = this;
                    this._data.Config.Rewards.forEach(function(t) {
                        var n = cc.instantiate(e._data.ItemPrefab);
                        n.parent = e.ItemContent, n.y = -20, n.getComponent(l.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContent.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(l.ItemComponent).ItemId, t)
                }, i([h(cc.Sprite)], t.prototype, "Bg", void 0), i([h(cc.Sprite)], t.prototype, "CupSprite", void 0), i([h(cc.Label)], t.prototype, "NameLabel", void 0), i([h(cc.Label)], t.prototype, "CupLabel", void 0), i([h(cc.Node)], t.prototype, "CupNode", void 0), i([h(cc.Label)], t.prototype, "RankLabel", void 0), i([h(cc.Node)], t.prototype, "ItemContent", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "./ItemComponent": "ItemComponent"
    }],
    GlobalChampionMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ea399FXFuROd6FSdtmZHiku", "GlobalChampionMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/GlobalChampionMainComponent"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../Consts/Etc"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.RuleButton = null, t.TimeDesc = null, t.Time = null, t.RewardButton = null, t.RewardLabel = null, t.GradeContent = null, t.ReturnButton = null, t.JoinButton = null, t.JoinLabel = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas), n = this.LoadDynamicAsset("GlobalChampionShipPanel/Components/GlobalChampionMainComponent", cc.Prefab), o = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._atlas = e[0], r._gradePrefab = e[1], r._itemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RewardLabel.string = "reward".ToUILocale(), this.JoinLabel.string = "championShip_join".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.JoinButton.node.on("click", this.OnJoinButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._activityConfig = c.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._activityConfig.Common.Title, this._deadLine = d.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetActivityTime(), this.SetGradeNodes()
                }, t.prototype.SetActivityTime = function() {
                    this.CountDownActivityTime(), this.schedule(this.CountDownActivityTime, 1)
                }, t.prototype.CountDownActivityTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    if (t < 0) this.unschedule(this.CountDownActivityTime), l.UIManager.Instance.BackUIPanel();
                    else {
                        this.TimeDesc.string = t > this._activityConfig.Common.ExtraShowDays * f.Etc.DayDuration ? "activityBoss_remain_time".ToUILocale() : "activityBoss_show_time".ToUILocale();
                        var n = t > this._activityConfig.Common.ExtraShowDays * f.Etc.DayDuration ? t - this._activityConfig.Common.ExtraShowDays * f.Etc.DayDuration : t;
                        this.Time.string = d.default.ActivityTimeLeftFormat(n)
                    }
                }, t.prototype.SetGradeNodes = function() {
                    var e = this,
                        t = [];
                    this._activityConfig.__Stages.forEach(function(e, n) {
                        n < 6 && t.push(e)
                    }), t.sort(function(e, t) {
                        return t.Id - e.Id
                    }), t.forEach(function(t) {
                        var n = cc.instantiate(e._gradePrefab);
                        n.parent = e.GradeContent;
                        var o = {};
                        o.ActivityConfig = e._activityConfig, o.Atlas = e._atlas, o.Config = t, o.ItemPrefab = e._itemPrefab, n.getComponent(p.default).Init(o)
                    })
                }, t.GetGradeToStages = function(e) {
                    var t = {};
                    return e.__Stages2.forEach(function(e) {
                        t[e.Stage] || (t[e.Stage] = []), t[e.Stage].push(e)
                    }), t
                }, t.GetStageToStage2s = function(e) {
                    var t = {};
                    return e.__Groups.forEach(function(e) {
                        t[e.Stage2] || (t[e.Stage2] = []), t[e.Stage2].push(e)
                    }), t
                }, t.GetGroupIdToStage2Map = function(e) {
                    if (!n.GroupIdToStage2Config) {
                        n.GroupIdToStage2Config = {};
                        var t = {};
                        e.__Stages2.forEach(function(e) {
                            t[e.Id] = e
                        }), e.__Groups.forEach(function(e) {
                            n.GroupIdToStage2Config[e.Id] = t[e.Stage2]
                        })
                    }
                    return n.GroupIdToStage2Config
                }, t.GetStage2IdToStageMap = function(e) {
                    if (!n.Stage2IdToStageConfig) {
                        n.Stage2IdToStageConfig = {};
                        var t = {};
                        e.__Stages.forEach(function(e) {
                            t[e.Id] = e
                        }), e.__Stages2.forEach(function(e) {
                            n.Stage2IdToStageConfig[e.Id] = t[e.Stage]
                        })
                    }
                    return n.Stage2IdToStageConfig
                }, t.prototype.OnJoinButtonClick = function() {
                    d.default.Instance.JoinGlobalChampionShip(!0, this._activityConfig._id)
                }, t.prototype.OnRewardButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.GlobalChampionRewardPanel.Path, this._activityConfig, !0)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "championShip_rule_title".ToUILocale(),
                        titles: ["championShip_rule_title".ToUILocale()],
                        contents: ["championShip_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    this.Close()
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Button)], t.prototype, "RuleButton", void 0), i([m(cc.Label)], t.prototype, "TimeDesc", void 0), i([m(cc.Label)], t.prototype, "Time", void 0), i([m(cc.Button)], t.prototype, "RewardButton", void 0), i([m(cc.Label)], t.prototype, "RewardLabel", void 0), i([m(cc.Node)], t.prototype, "GradeContent", void 0), i([m(cc.Button)], t.prototype, "ReturnButton", void 0), i([m(cc.Button)], t.prototype, "JoinButton", void 0), i([m(cc.Label)], t.prototype, "JoinLabel", void 0), n = i([g], t)
            }(l.BaseUIFullScreenPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/GlobalChampionMainComponent": "GlobalChampionMainComponent"
    }],
    GlobalChampionPlayerComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e294foOI2dNU5mkMX5+GEA0", "GlobalChampionPlayerComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GlobalChampionPlayerShowType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Panel/GlobalChampionShipPanel"),
            h = e("../Panel/GlobalChampionMainPanel"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("./HeadComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/DataUtlity");
        (function(e) {
            e[e.Power = 0] = "Power", e[e.NoPower = 1] = "NoPower"
        })(l = n.GlobalChampionPlayerShowType || (n.GlobalChampionPlayerShowType = {}));
        var _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadNode = null, t.Name = null, t.BattlePower = null, t.ChallengeButton = null, t.ChallengeButtonSprite = null, t.ChallengeLabel = null, t.ItemSprite = null, t.ItemCount = null, t._loadAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    this.ChallengeLabel.string = "HolyRelic_challenge".ToUILocale(), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this)
                }, t.prototype.Init = function(e) {
                    this._data = e, this._rank = e.Rank, this._score = e.Score, this.SetHeadNode(), this.SetPowerNode(), this.SetChallenegBtn()
                }, t.prototype.SetHeadNode = function() {
                    if (!this._headComponent) {
                        var e = cc.instantiate(this._data.HeadPrefab);
                        e.parent = this.HeadNode, this._headComponent = e.getComponent(g.default), e.on(cc.Node.EventType.TOUCH_END, this.OnHeadClick, this)
                    }
                    this._headComponent.SetUI(this._data.PlayerInfo.HeadIcon, this._data.PlayerInfo.HeadFrame, this._data.PlayerInfo.Title), this.Name.string = this._data.PlayerInfo.Name;
                    var t = this.GetStageId(),
                        n = this._rank > 0 ? this._rank : this._score;
                    this._headComponent.SetChampionShipTag(t, n);
                    var o = 1 != t || this._data.IsLengend ? "btn_orange" : "btn_red";
                    this.ChallengeButtonSprite.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame(o)
                }, t.prototype.GetStageId = function() {
                    var e = d.default.GetCurGroupGradeId(this._rank, this._score, this._data.ActivityConfig);
                    return h.default.GetGroupIdToStage2Map(this._data.ActivityConfig)[e].Stage
                }, t.prototype.SetPowerNode = function() {
                    this.BattlePower.node.parent.active = this._data.ShowType == l.Power, this.Name.node.parent.y = this._data.ShowType == l.Power ? 5 : -40, this.HeadNode.y = this._data.ShowType == l.Power ? 89 : 53, this._data.ShowType == l.Power && (this.BattlePower.string = this._data.PlayerInfo.Power.toString())
                }, t.prototype.SetChallenegBtn = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = I.default.Instance.ComputeDeadTime(this._data.ActivityConfig.Common), p.RpcComponent.Instance.ServerTime >= e ? (this.ChallengeButton.node.active = !1, [2]) : (this._data.IsLengend ? this.ChallengeButton.node.active = this._data.MyRank > 0 : this.ChallengeButton.node.active = !0, this._itemSprite ? [3, 2] : (t = I.default.Instance.GetItemPathById(this._data.ActivityConfig.CustomPart.TicketId), [4, c.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)]));
                                case 1:
                                    if (n = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._loadAssets.push(n), this._itemSprite = n, this.ItemSprite.spriteFrame = n, o.label = 2;
                                case 2:
                                    return this.ItemCount.string = "1", [2]
                            }
                        })
                    })
                }, t.prototype.OnChallengeButtonClick = function() {
                    var e = I.default.GetActivityStartChallengeTime(this._data.ActivityConfig.Common, 10);
                    if (p.RpcComponent.Instance.ServerTime < e) m.UIUtlity.ShowFloatingHint("challenge_start_time".ToUILocale());
                    else {
                        var t = I.default.Instance.ComputeDeadTime(this._data.ActivityConfig.Common);
                        if (p.RpcComponent.Instance.ServerTime >= t) m.UIUtlity.ShowFloatingHint("Activity_end".ToUILocale());
                        else if (this._data.PlayerInfo.Uid != p.DataCenter.Instance.Uid) {
                            var o = this._data.ActivityConfig.CustomPart.TicketId;
                            if (p.DataCenter.Instance.IsItemEnough(o, 1))
                                if (d.default.CheckNeedSetFormation(this._data.ActivityConfig, this._rank, this._score)) {
                                    var r = n.GetTargetMapIds(this._rank, this._score, this._data.ActivityConfig);
                                    c.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattleFormationPanel.Path, this.RequestChallenge.bind(this), r, {
                                        TeamNum: r.length,
                                        ActivityId: this._data.ActivityConfig._id
                                    })
                                } else this.RequestChallenge();
                            else m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o.ToItemName()))
                        } else m.UIUtlity.ShowFloatingHint("championShip_cant_challenge_self".ToUILocale())
                    }
                }, t.GetTargetMapIds = function(e, t, n) {
                    for (var o = d.default.GetCurGroupGradeId(e, t, n), r = h.default.GetGroupIdToStage2Map(n), i = h.default.GetStage2IdToStageMap(n)[r[o].Id], a = [], s = 0; s < i.Count; s++) a.push(n.CustomPart.MapId);
                    return a
                }, t.prototype.RequestChallenge = function(e) {
                    var t = new u.Req_Activity_ChampionshipChallenge;
                    t.ActivityId = this._data.ActivityConfig._id, t.TargetId = this._data.PlayerInfo.Uid, t.Formations = e, this._rank && (t.Rank = this._rank), p.RpcComponent.Instance.Call(t, function(e) {
                        d.default.BattleInfo = e, d.default.BattleReports = e.Reports, d.default.StartBattle()
                    }, function() {
                        c.Game.EventDispatcher.Emit(y.EventKeys.EVENT_CHAMPIONSHIP_REFRESHDATA), m.UIUtlity.ShowFloatingHint("championShip_data_change".ToUILocale())
                    })
                }, t.prototype.OnHeadClick = function() {
                    this._data.PlayerInfo.Uid < 0 ? m.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale()) : this._data.PlayerInfo.Uid != p.DataCenter.Instance.Uid && c.UIManager.Instance.ShowUIPanel(f.PanelConfig.PlayerInfoPanel.Path, this._data.PlayerInfo.Uid, this._data.Zone)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([v(cc.Node)], t.prototype, "HeadNode", void 0), i([v(cc.Label)], t.prototype, "Name", void 0), i([v(cc.Label)], t.prototype, "BattlePower", void 0), i([v(cc.Button)], t.prototype, "ChallengeButton", void 0), i([v(cc.Sprite)], t.prototype, "ChallengeButtonSprite", void 0), i([v(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([v(cc.Sprite)], t.prototype, "ItemSprite", void 0), i([v(cc.Label)], t.prototype, "ItemCount", void 0), n = i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "../Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "./HeadComponent": "HeadComponent"
    }],
    GlobalChampionReportComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "978deVlO31OR7CtfJb9DzdI", "GlobalChampionReportComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../Components/Components"),
            l = e("../Panel/GlobalChampionShipPanel"),
            c = e("../Panel/GlobalChampionMainPanel"),
            u = e("./GlobalChampionShipGradeComponent"),
            p = e("./HeadComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.WinNode = null, t.LoseNode = null, t.HeadNode = null, t.Name = null, t.BattlePower = null, t.CupCount = null, t.ChangeCount = null, t.CupNode = null, t.GradeNode = null, t.RankNode = null, t.CurGradeSprite = null, t.NextGradeSprite = null, t.GradeArrow = null, t.CurGradeName = null, t.NextGradeName = null, t.RankArrow = null, t.RankCurGradeSprite = null, t.RankNextGradeSprite = null, t.CurRank = null, t.NextRank = null, t.ReportButton = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    var r, i;
                    if (this._isInit || (this.ReportButton.node.on("click", this.OnReportButtonClick, this), this._isInit = !0), this._data = e, e.AttackerInfo.Uid == s.DataCenter.Instance.Uid ? (r = e.DefenderInfo, this.WinNode.active = 1 == e.Result, this.LoseNode.active = 1 != e.Result, i = 1 == e.Result) : (r = e.AttackerInfo, this.WinNode.active = 1 != e.Result, this.LoseNode.active = 1 == e.Result, i = 1 != e.Result), !this._headComponent) {
                        var a = cc.instantiate(n);
                        a.setParent(this.HeadNode), this._headComponent = a.getComponent(p.default)
                    }
                    this._headComponent.SetUI(r.HeadIcon, r.HeadFrame, r.Title), this.Name.string = r.Name, this.BattlePower.string = r.Power.toString();
                    var h = e.IntParams[1];
                    switch (this.CupNode.active = !1, this.GradeNode.active = !1, this.RankNode.active = !1, h) {
                        case 1:
                            var f = e.IntParams[2] - e.IntParams[3],
                                y = e.IntParams[2],
                                g = l.default.GetCurGroupGradeId(0, f, o),
                                m = l.default.GetCurGroupGradeId(0, y, o),
                                I = c.default.GetGroupIdToStage2Map(o);
                            if (I[g].Id == I[m].Id) this.CupNode.active = !0, this.CupCount.string = y.toString(), this.ChangeCount.string = e.IntParams[3] > 0 ? "+" + e.IntParams[3] : e.IntParams[3].toString(), this.ChangeCount.node.color = e.IntParams[3] > 0 ? new cc.Color(35, 225, 35) : new cc.Color(255, 75, 75);
                            else {
                                this.GradeNode.active = !0;
                                var _ = i ? "arrow_yellow" : "arrow_red";
                                this.GradeArrow.spriteFrame = t.getSpriteFrame(_), this.CurGradeSprite.spriteFrame = t.getSpriteFrame("cup" + I[g].Stage), this.NextGradeSprite.spriteFrame = t.getSpriteFrame("cup" + I[m].Stage);
                                var C = u.default.GetStageName(o, I[g].Stage),
                                    v = "";
                                if (I[g].Stage > o.__Stages[l.GlobalChampionShipGrade.Grade2].Id) {
                                    var b = u.default.GetStage2Num(o, I[g].Id);
                                    v = d.UIUtlity.GetRomanNumerals(b)
                                }
                                this.CurGradeName.string = C + v;
                                var S = u.default.GetStageName(o, I[m].Stage),
                                    w = "";
                                if (I[m].Stage > o.__Stages[l.GlobalChampionShipGrade.Grade2].Id) {
                                    var P = u.default.GetStage2Num(o, I[m].Id);
                                    w = d.UIUtlity.GetRomanNumerals(P)
                                }
                                this.NextGradeName.string = S + w
                            }
                            break;
                        case 2:
                            this.RankNode.active = !0, _ = !e.IntParams[3] || e.IntParams[2] < e.IntParams[3] ? "arrow_yellow" : "arrow_red", this.RankArrow.spriteFrame = t.getSpriteFrame(_);
                            var A = e.IntParams[3] > 0 ? 1 : 2,
                                T = e.IntParams[2] > 0 ? 1 : 2;
                            this.RankCurGradeSprite.spriteFrame = t.getSpriteFrame("cup" + A), this.RankNextGradeSprite.spriteFrame = t.getSpriteFrame("cup" + T), this.CurRank.node.active = e.IntParams[3] > 0, this.NextRank.node.active = e.IntParams[2] > 0, e.IntParams[3] > 0 && (this.CurRank.string = (e.IntParams[3] || 0).toString()), e.IntParams[2] > 0 && (this.NextRank.string = e.IntParams[2].toString())
                    }
                }, t.prototype.OnReportButtonClick = function() {
                    var e = this,
                        t = new a.Req_Player_GetCommonReport;
                    t.Id = this._data.Report, s.RpcComponent.Instance.Call(t, function(t) {
                        l.default.BattleInfo = e._data, l.default.BattleReports = t.Reports, l.default.StartBattle(!0)
                    })
                }, i([y(cc.Node)], t.prototype, "WinNode", void 0), i([y(cc.Node)], t.prototype, "LoseNode", void 0), i([y(cc.Node)], t.prototype, "HeadNode", void 0), i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Label)], t.prototype, "BattlePower", void 0), i([y(cc.Label)], t.prototype, "CupCount", void 0), i([y(cc.Label)], t.prototype, "ChangeCount", void 0), i([y(cc.Node)], t.prototype, "CupNode", void 0), i([y(cc.Node)], t.prototype, "GradeNode", void 0), i([y(cc.Node)], t.prototype, "RankNode", void 0), i([y(cc.Sprite)], t.prototype, "CurGradeSprite", void 0), i([y(cc.Sprite)], t.prototype, "NextGradeSprite", void 0), i([y(cc.Sprite)], t.prototype, "GradeArrow", void 0), i([y(cc.Label)], t.prototype, "CurGradeName", void 0), i([y(cc.Label)], t.prototype, "NextGradeName", void 0), i([y(cc.Sprite)], t.prototype, "RankArrow", void 0), i([y(cc.Sprite)], t.prototype, "RankCurGradeSprite", void 0), i([y(cc.Sprite)], t.prototype, "RankNextGradeSprite", void 0), i([y(cc.Label)], t.prototype, "CurRank", void 0), i([y(cc.Label)], t.prototype, "NextRank", void 0), i([y(cc.Button)], t.prototype, "ReportButton", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "../Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "./GlobalChampionShipGradeComponent": "GlobalChampionShipGradeComponent",
        "./HeadComponent": "HeadComponent"
    }],
    GlobalChampionReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a56d0nPRBNKVZblmzB5PmS1", "GlobalChampionReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CustomLayout"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/GlobalChampionReportComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Tittle = null, t.CustomLayout = null, t.Empty = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("GlobalChampionShipPanel/Components/GlobalChampionReportComponent", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.HeadComponent, cc.Prefab), o = this.LoadDynamicAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._reportPrefab = e[0], r._headPrefab = e[1], r._atlas = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "allianceWar_report".ToUILocale(), this.Empty.string = "championShip_no_report".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._res = t[0], this._activityConfig = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._res.Data.sort(function(e, t) {
                        return t.Ts - e.Ts
                    }), this.CustomLayout.ScrollView.node.active = this._res.Data && this._res.Data.length > 0, this.Empty.node.active = !this._res.Data || 0 == this._res.Data.length, this._res.Data && this._res.Data.length > 0 && (this._isInit || (this.CustomLayout.Init(this._reportPrefab), this._isInit = !0), this.CustomLayout.RenderLayOut(this._res.Data.length))
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        e.getComponent(d.default).Init(n._res.Data[t], n._atlas, n._headPrefab, n._activityConfig)
                    })
                }, i([y(cc.Label)], t.prototype, "Tittle", void 0), i([y(c.default)], t.prototype, "CustomLayout", void 0), i([y(cc.Label)], t.prototype, "Empty", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/GlobalChampionReportComponent": "GlobalChampionReportComponent"
    }],
    GlobalChampionRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a17daZc99lDWaW88/v+1mRc", "GlobalChampionRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/CustomToggle"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("./GlobalChampionShipPanel"),
            I = e("./GlobalChampionMainPanel"),
            _ = e("../Components/GlobalChampionGradeRewardComponent"),
            C = e("../Components/ItemComponent"),
            v = e("../Components/GlobalChampionShipGradeComponent"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("./CommonTaskComponent"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("./NodePool"),
            A = e("./CommonRankRewardComponent"),
            T = e("../../RedDot/RedDotManager");
        (function(e) {
            e[e.TaskReward = 0] = "TaskReward", e[e.GradeReward = 1] = "GradeReward", e[e.GradeSettleReward = 2] = "GradeSettleReward", e[e.RankReward = 3] = "RankReward"
        })(l || (l = {}));
        var R = cc._decorator,
            L = R.ccclass,
            k = R.property,
            O = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Tittle = null, t.ChallengeRewardNode = null, t.GradeRewardNode = null, t.GradeSettleRewardNode = null, t.GlobalRewardNode = null, t.ChallengeRewardCustomLayout = null, t.GradeRewardCustomLayout = null, t.StageContent = null, t.GradeSettleItem = null, t.GradeSettleLeftButton = null, t.GradeSettleRightButton = null, t.GradeName = null, t.Hint = null, t.ItemScrollView = null, t.ItemContent = null, t.GlobalRewardCustomLayout = null, t.CustomToggles = [], t._isInitToggle = !1, t._isInitChallenegList = !1, t._isInitGradeRewardList = !1, t._isInitGlobalRewardList = !1, t._sortTasks = [], t._gradeSettltNodes = [], t._itemComponents = [], t._isMoving = !1, t.InitPosX = -200, t.Offset = 400, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_COMMONTASK_RECEIVE, this.OnReceivedButtonClick, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_COMMONTASK_RECEIVE, this.OnReceivedButtonClick, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CommonPanel/SubItems/CommonTaskComponent", cc.Prefab), n = this.LoadDynamicAsset("GlobalChampionShipPanel/Components/GlobalChampionGradeRewardComponent", cc.Prefab), o = this.LoadDynamicAsset("CommonPanel/SubItems/CommonRankRewardComponent", cc.Prefab), r = this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab), i = this.LoadDynamicAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._taskPrefab = e[0], a._gradeRewardPrefab = e[1], a._globalRewardPrefab = e[2], a._itemPrefab = e[3], a._atlas = e[4]
                                    })];
                                case 1:
                                    return s.sent(), this._itemPool || (this._itemPool = new P.default(this._itemPrefab)), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "reward".ToUILocale(), this.Hint.string = "championShip_will_get_reward".ToUILocale(), this.StageContent.x = this.InitPosX, this.GradeSettleLeftButton.node.on("click", this.OnGradeSettleLeftButtonClick, this), this.GradeSettleRightButton.node.on("click", this.OnGradeSettleRightButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = t[0], this._isFirstIn = t[1], t[2] && (this._instance = t[2]), this._toggleIndex = l.TaskReward
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetToggles(), this.SetRewardContent()
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    if (!this._isInitToggle) {
                        var t = ["championShip_season_challenge".ToUILocale(), "championShip_grade_reward".ToUILocale(), "championShip_grade_settle".ToUILocale(), "championShip_zone_reward".ToUILocale()];
                        this.CustomToggles.forEach(function(n, o) {
                            n.Init(t[o]), n.isChecked = o == e._toggleIndex, n.node.on("toggle", e.OnToggleClick, e)
                        }), this._isInitToggle = !0
                    }
                }, t.prototype.SetTaskConfigs = function() {
                    var e = this;
                    this._sortTasks = [], this._activityConfig._Tasks.forEach(function(t) {
                        e._sortTasks.push(t)
                    }), this._sortTasks.sort(function(t, n) {
                        var o = p.DataCenter.Instance.GetDataById(u.UserTask_Model, t.Id + 1e4 * e._activityConfig._id),
                            r = p.DataCenter.Instance.GetDataById(u.UserTask_Model, n.Id + 1e4 * e._activityConfig._id);
                        return o.IsCompleted && !r.IsCompleted ? 1 : !o.IsCompleted && r.IsCompleted ? -1 : o.Progress >= t.TotalCount && r.Progress < n.TotalCount ? -1 : o.Progress < t.TotalCount && r.Progress >= n.TotalCount ? 1 : t.Id - n.Id
                    })
                }, t.prototype.SetGradeRewardDatas = function() {
                    var e = this;
                    if (!this._gradeRewardDatas) {
                        var t = I.default.GetGradeToStages(this._activityConfig),
                            n = I.default.GetStageToStage2s(this._activityConfig);
                        for (var o in this._gradeRewardDatas = [], t) t[o].forEach(function(t) {
                            for (var o = [], r = 0, i = n[t.Id].length - 1; i >= 0; i--) o.push(n[t.Id][i]), r += n[t.Id][i].Rewards.length;
                            if (r > 0) {
                                var a = {};
                                a.Config = t, a.Groups = o, e._gradeRewardDatas.push(a)
                            }
                        })
                    }
                }, t.prototype.SetGradeSettleRewardDatas = function() {
                    if (!this._gradeSettleConfigs) {
                        this._curGradeIndex = 0, this._gradeSettleConfigs = [];
                        var e = [],
                            t = I.default.GetGradeToStages(this._activityConfig);
                        for (var n in t) t[n].forEach(function(t, n) {
                            var o = {};
                            o.Config = t, o.Index = n, e.push(o)
                        });
                        this._gradeSettleConfigs = e.reverse()
                    }
                    var o = I.default.GetStageToStage2s(this._activityConfig);
                    if (this._instance) {
                        var r = this._instance.GetInfo();
                        if (r[0] > 0) this._curGradeIndex = this._gradeSettleConfigs.length - 1;
                        else
                            for (var i = r[1], a = this._gradeSettleConfigs.length - 2; a >= 0; a--) {
                                var s = o[this._gradeSettleConfigs[a].Config.Id];
                                if (i >= s[s.length - 1].Score) {
                                    this._curGradeIndex = a;
                                    break
                                }
                            }
                    } else this._curGradeIndex = 0
                }, t.prototype.SetRankRewardDatas = function() {
                    var e = this;
                    this._rankRewardDatas || (this._rankRewardDatas = [], this._activityConfig._RankRewards.forEach(function(t, n) {
                        var o = {};
                        o.Id = n, o.Ranks = t.Rank, o.Rewards = t.Rewards, e._rankRewardDatas.push(o)
                    }))
                }, t.prototype.SetRewardContent = function() {
                    var e = this;
                    switch (this.ChallengeRewardNode.active = !1, this.GradeRewardNode.active = !1, this.GradeSettleRewardNode.active = !1, this.GlobalRewardNode.active = !1, this._toggleIndex) {
                        case l.TaskReward:
                            this.SetTaskConfigs(), this.ChallengeRewardNode.active = !0, this._isInitChallenegList || (this.ChallengeRewardCustomLayout.Init(this._taskPrefab), this._isInitChallenegList = !0), this.ChallengeRewardCustomLayout.RenderLayOut(this._sortTasks.length);
                            break;
                        case l.GradeReward:
                            this.SetGradeRewardDatas(), this.GradeRewardNode.active = !0, this._isInitGradeRewardList || (this.GradeRewardCustomLayout.Init(this._gradeRewardPrefab), this._isInitGradeRewardList = !0), this.GradeRewardCustomLayout.RenderLayOut(this._gradeRewardDatas.length);
                            break;
                        case l.GradeSettleReward:
                            this.SetGradeSettleRewardDatas(), this.GradeSettleRewardNode.active = !0, this._gradeSettleConfigs.forEach(function(t, n) {
                                if (!e._gradeSettltNodes[n]) {
                                    var o = cc.instantiate(e.GradeSettleItem);
                                    o.parent = e.StageContent, o.active = !0, o.name = n.toString(), e._gradeSettltNodes[n] = o, o.on(cc.Node.EventType.TOUCH_END, e.OnClickStage, e)
                                }
                                e._gradeSettltNodes[n].children[0].opacity = n == e._curGradeIndex ? 255 : 127, e._gradeSettltNodes[n].children[0].scale = n == e._curGradeIndex ? 1.4 : 1, e._gradeSettltNodes[n].getChildByName("GradeSprite").getComponent(cc.Sprite).spriteFrame = e._atlas.getSpriteFrame("cup" + t.Config.Stage)
                            }), this.StageContent.getComponent(cc.Layout).updateLayout(), this.StageContent.x = this.InitPosX - this.Offset * this._curGradeIndex, this.SetButtonsActive(), this.SetGradeNameAngLv(), this.SetGradeSettleItems();
                            break;
                        case l.RankReward:
                            this.SetRankRewardDatas(), this.GlobalRewardNode.active = !0, this._isInitGlobalRewardList || (this.GlobalRewardCustomLayout.Init(this._globalRewardPrefab), this._isInitGlobalRewardList = !0), this.GlobalRewardCustomLayout.RenderLayOut(this._rankRewardDatas.length)
                    }
                }, t.prototype.SetButtonsActive = function() {
                    this.GradeSettleLeftButton.node.active = this._curGradeIndex > 0, this.GradeSettleRightButton.node.active = this._curGradeIndex < this._gradeSettleConfigs.length - 1
                }, t.prototype.SetGradeNameAngLv = function() {
                    var e = this._gradeSettleConfigs[this._curGradeIndex].Config,
                        t = this._gradeSettleConfigs[this._curGradeIndex].Index + 1,
                        n = v.default.GetStageName(this._activityConfig, e.Stage),
                        o = "";
                    e.Stage > this._activityConfig.__Stages[m.GlobalChampionShipGrade.Grade2].Id && (o = b.UIUtlity.GetRomanNumerals(t)), this.GradeName.string = n + o
                }, t.prototype.SetGradeSettleItems = function() {
                    var e = this;
                    this._itemComponents.forEach(function(e) {
                        e.node.active = !1
                    }), this.ItemScrollView.enabled = this._gradeSettleConfigs[this._curGradeIndex].Config.Rewards.length > 4, this._gradeSettleConfigs[this._curGradeIndex].Config.Rewards.forEach(function(t, n) {
                        if (!e._itemComponents[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.ItemContent, o.y = -20, e._itemComponents[n] = o.getComponent(C.ItemComponent)
                        }
                        e._itemComponents[n].node.active = !0, e._itemComponents[n].Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        })
                    })
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    if (this.ChallengeRewardCustomLayout == t || this.GradeRewardCustomLayout == t || this.GlobalRewardCustomLayout == t) switch (this._toggleIndex) {
                        case l.TaskReward:
                            e.forEach(function(e, t) {
                                var o = p.DataCenter.Instance.GetDataById(u.UserTask_Model, n._sortTasks[t].Id + 1e4 * n._activityConfig._id),
                                    r = null == o || null == o.Progress ? 0 : o.Progress;
                                e.width = 980, e.getComponent(S.default).SetTitle(w.default.GetTaskDesc(n._sortTasks[t])).SetPurchaseLimit(r, n._sortTasks[t], o.IsCompleted).SetItems(n._itemPool, n._sortTasks[t].Rewards).SetButtonClick(t)
                            });
                            break;
                        case l.GradeReward:
                            e.forEach(function(e, t) {
                                var o = {};
                                o.ActivityConfig = n._activityConfig, o.Atlas = n._atlas, o.Data = n._gradeRewardDatas[t], o.ItemPrefab = n._itemPrefab, o.IsFirstIn = n._isFirstIn, e.getComponent(_.default).Init(o)
                            });
                            break;
                        case l.RankReward:
                            e.forEach(function(e, t) {
                                var o = e.getComponent(A.default);
                                o.InitUI(n._rankRewardDatas[t]), o.SetWidth(980)
                            })
                    }
                }, t.prototype.OnReceivedButtonClick = function() {
                    for (var e = this, t = [], n = this._activityConfig._id * d.Etc.Multiplier, o = 0; o < this._sortTasks.length; o++) {
                        var r = n + this._sortTasks[o].Id,
                            i = p.DataCenter.Instance.GetDataById(u.UserTask_Model, r);
                        i.IsCompleted || i.Progress >= this._sortTasks[o].TotalCount && t.push(this._sortTasks[o].Id)
                    }
                    var a = new u.Req_Activity_CommonTaskReward;
                    a.ActivityId = this._activityConfig._id, a.TaskIds = t, p.RpcComponent.Instance.Call(a, function(t) {
                        b.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.SetRewardContent(), T.RedDotManager.Instance.BindInstance(e.CustomToggles[0].node, T.RedDotManager.Instance.InstanceRedDot.GlobalChampionRewardToggle, {
                            Value1: e._activityConfig._id
                        }), e._instance && e._instance.RefreshRewardReddot()
                    })
                }, t.prototype.OnToggleClick = function(e) {
                    var t = Number(e.node.name);
                    this._toggleIndex = t, this.SetRewardContent()
                }, t.prototype.MoveSkinCard = function(e) {
                    var t = this,
                        n = this.StageContent.x,
                        o = e ? n + this.Offset : n - this.Offset;
                    e ? (cc.tween(this._gradeSettltNodes[this._curGradeIndex + 1].children[0]).to(.25, {
                        scale: 1,
                        opacity: 127
                    }).start(), cc.tween(this._gradeSettltNodes[this._curGradeIndex].children[0]).to(.25, {
                        scale: 1.4,
                        opacity: 255
                    }).start()) : (cc.tween(this._gradeSettltNodes[this._curGradeIndex - 1].children[0]).to(.25, {
                        scale: 1,
                        opacity: 127
                    }).start(), cc.tween(this._gradeSettltNodes[this._curGradeIndex].children[0]).to(.25, {
                        scale: 1.4,
                        opacity: 255
                    }).start()), cc.tween(this.StageContent).to(.25, {
                        x: o
                    }).call(function() {
                        t._isMoving = !1
                    }).start()
                }, t.prototype.OnClickStage = function(e) {
                    var t = Number.parseInt(e.target.name);
                    if (this._curGradeIndex != t && !this._isMoving) {
                        var n = t < this._curGradeIndex;
                        this._curGradeIndex = t, this._isMoving = !0, this.SetButtonsActive(), this.MoveSkinCard(n), this.SetGradeNameAngLv(), this.SetGradeSettleItems()
                    }
                }, t.prototype.OnGradeSettleLeftButtonClick = function() {
                    this._curGradeIndex > 0 && !this._isMoving && (this._curGradeIndex -= 1, this._isMoving = !0, this.SetButtonsActive(), this.MoveSkinCard(!0), this.SetGradeNameAngLv(), this.SetGradeSettleItems())
                }, t.prototype.OnGradeSettleRightButtonClick = function() {
                    this._curGradeIndex < this._gradeSettleConfigs.length - 1 && !this._isMoving && (this._curGradeIndex += 1, this._isMoving = !0, this.SetButtonsActive(), this.MoveSkinCard(!1), this.SetGradeNameAngLv(), this.SetGradeSettleItems())
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContent.children.indexOf(t) && b.UIUtlity.ShowItemTip(t.getComponent(C.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._itemPool && this._itemPool.Clear()
                }, i([k(cc.Label)], t.prototype, "Tittle", void 0), i([k(cc.Node)], t.prototype, "ChallengeRewardNode", void 0), i([k(cc.Node)], t.prototype, "GradeRewardNode", void 0), i([k(cc.Node)], t.prototype, "GradeSettleRewardNode", void 0), i([k(cc.Node)], t.prototype, "GlobalRewardNode", void 0), i([k(h.default)], t.prototype, "ChallengeRewardCustomLayout", void 0), i([k(h.default)], t.prototype, "GradeRewardCustomLayout", void 0), i([k(cc.Node)], t.prototype, "StageContent", void 0), i([k(cc.Node)], t.prototype, "GradeSettleItem", void 0), i([k(cc.Button)], t.prototype, "GradeSettleLeftButton", void 0), i([k(cc.Button)], t.prototype, "GradeSettleRightButton", void 0), i([k(cc.Label)], t.prototype, "GradeName", void 0), i([k(cc.Label)], t.prototype, "Hint", void 0), i([k(cc.ScrollView)], t.prototype, "ItemScrollView", void 0), i([k(cc.Node)], t.prototype, "ItemContent", void 0), i([k(h.default)], t.prototype, "GlobalRewardCustomLayout", void 0), i([k(y.default)], t.prototype, "CustomToggles", void 0), i([L], t)
            }(c.BaseUIPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GlobalChampionGradeRewardComponent": "GlobalChampionGradeRewardComponent",
        "../Components/GlobalChampionShipGradeComponent": "GlobalChampionShipGradeComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonRankRewardComponent": "CommonRankRewardComponent",
        "./CommonTaskComponent": "CommonTaskComponent",
        "./GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "./GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "./NodePool": "NodePool"
    }],
    GlobalChampionSelectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c95b31En5ZONqbH3hTOOYV6", "GlobalChampionSelectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Panel/GlobalChampionShipPanel"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("./GlobalChampionPlayerComponent"),
            y = e("./HeadComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadNode = null, t.Name = null, t.BattlePower = null, t.CupCount = null, t.ChallengeButton = null, t.ChallengeLabel = null, t.ItemSprite = null, t.ItemCount = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ChallengeLabel.string = "HolyRelic_challenge".ToUILocale(), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    if (this._target = e, this._activityConfig = n, this._myScore = o, !this._headComponent) {
                        var r = cc.instantiate(t);
                        r.parent = this.HeadNode, this._headComponent = r.getComponent(y.default)
                    }
                    this._headComponent.SetUI(e.HeadIcon, e.HeadFrame, e.Title), this.Name.string = e.Name, this.BattlePower.string = e.Power.toString();
                    var i = e.Value1,
                        a = this.GetCurGroupConfig(),
                        s = a.Params[2] - Math.floor(a.Params[2] / (1 + Math.pow(10, (i - o) / 400)));
                    this.CupCount.string = "+" + s, this.SetItemNode()
                }, t.prototype.GetCurGroupConfig = function() {
                    for (var e, t = 1; t < this._activityConfig.__Groups.length; t++)
                        if (this._myScore >= this._activityConfig.__Groups[t].Score) {
                            e = this._activityConfig.__Groups[t];
                            break
                        } return e || (e = this._activityConfig.__Groups[this._activityConfig.__Groups.length - 1]), e
                }, t.prototype.SetItemNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.ItemCount.string = "1", this._itemSprite ? [3, 2] : (e = m.default.Instance.GetItemPathById(this._activityConfig.CustomPart.TicketId), [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)]);
                                case 1:
                                    if (t = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._itemSprite = t, this.ItemSprite.spriteFrame = t, this._loadAssets.push(t), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnChallengeButtonClick = function() {
                    var e = m.default.GetActivityStartChallengeTime(this._activityConfig.Common, 10);
                    if (u.RpcComponent.Instance.ServerTime < e) g.UIUtlity.ShowFloatingHint("challenge_start_time".ToUILocale());
                    else if (u.DataCenter.Instance.IsItemEnough(this._activityConfig.CustomPart.TicketId, 1))
                        if (d.default.CheckNeedSetFormation(this._activityConfig, 0, this._myScore)) {
                            var t = f.default.GetTargetMapIds(0, this._myScore, this._activityConfig);
                            l.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattleFormationPanel.Path, this.RequestChallenge.bind(this), t, {
                                TeamNum: t.length,
                                ActivityId: this._activityConfig._id
                            })
                        } else this.RequestChallenge();
                    else g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._activityConfig.CustomPart.TicketId.ToItemName()))
                }, t.prototype.RequestChallenge = function(e) {
                    var t = new c.Req_Activity_ChampionshipChallenge;
                    t.TargetId = this._target.Uid, t.ActivityId = this._activityConfig._id, t.Formations = e, u.RpcComponent.Instance.Call(t, function(e) {
                        l.UIManager.Instance.QuitPanelStack(p.PanelConfig.GlobalChampionSelectPanel.Path), d.default.BattleInfo = e, d.default.BattleReports = e.Reports, d.default.StartBattle()
                    }, function() {
                        l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_CHAMPIONSHIP_REFRESHDATA), g.UIUtlity.ShowFloatingHint("championShip_data_change".ToUILocale())
                    })
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([C(cc.Node)], t.prototype, "HeadNode", void 0), i([C(cc.Label)], t.prototype, "Name", void 0), i([C(cc.Label)], t.prototype, "BattlePower", void 0), i([C(cc.Label)], t.prototype, "CupCount", void 0), i([C(cc.Button)], t.prototype, "ChallengeButton", void 0), i([C(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([C(cc.Sprite)], t.prototype, "ItemSprite", void 0), i([C(cc.Label)], t.prototype, "ItemCount", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "./GlobalChampionPlayerComponent": "GlobalChampionPlayerComponent",
        "./HeadComponent": "HeadComponent"
    }],
    GlobalChampionSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "007caJShp5C5p5AdOIP4y5y", "GlobalChampionSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/GlobalChampionSelectComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/GameRecord"),
            m = e("../../../Consts/Etc"),
            I = e("../Components/CurrencyBarItem"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../Auxiliary/UIUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Tittle = null, t.CostCurrencyBar = null, t.CustomLayout = null, t.RefreshTime = null, t.RefreshButton = null, t.RefreshLabel = null, t._isInit = !1, t._nextRefreshTime = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("GlobalChampionShipPanel/Components/GlobalChampionSelectComponent", cc.Prefab), n = this.LoadDynamicAsset(y.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._selectPrefab = e[0], o._headPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "championShip_select".ToUILocale(), this.RefreshLabel.string = "championShip_refresh".ToUILocale(), this.RefreshButton.node.on("click", this.OnRefreshButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = t[0], this._res = t[1], this._myScore = t[2]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetCostNode(), this.SetPlayerList(), this.SetRefreshTime()
                }, t.prototype.SetCostNode = function() {
                    this.CostCurrencyBar.Init(this._activityConfig.CustomPart.TicketId), this.CostCurrencyBar.SetClickCallBack(this.OnBuyTicketClick.bind(this))
                }, t.prototype.OnBuyTicketClick = function() {
                    var e = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id),
                        t = this._activityConfig.CustomPart.Goods[this._activityConfig.CustomPart.Goods.length - 1].Items[0],
                        n = e.IntValue,
                        o = {
                            ItemId: this._activityConfig.CustomPart.TicketId,
                            ItemCount: 1,
                            CurrencyId: p.CommonItemId.Diamond,
                            BuyCountLimit: t,
                            BuyCount: n,
                            ProgressCallback: this.CurrentTotalPrice.bind(this),
                            BuyCallback: this.RequestBuyTicket.bind(this)
                        };
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonBuyItemPanel.Path, o)
                }, t.prototype.CurrentTotalPrice = function(e) {
                    if (!e) return 0;
                    for (var t = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), n = 0, o = t.IntValue, r = 0, i = this._activityConfig.CustomPart.Goods; r < i.length; r++) {
                        var a = i[r].Items,
                            s = a[0],
                            l = a[1];
                        if (!(t.IntValue >= s)) {
                            if (!(o + e > s)) {
                                n += l * e;
                                break
                            }
                            e -= s - o, n += l * (s - o), o = s
                        }
                    }
                    return n
                }, t.prototype.RequestBuyTicket = function(e) {
                    var t = this,
                        n = new c.Req_Activity_ChampionshipBuyTicket;
                    n.ActivityId = this._activityConfig._id, n.Count = e, u.RpcComponent.Instance.Call(n, function(e) {
                        l.UIManager.Instance.QuitPanelStack(y.PanelConfig.CommonBuyItemPanel.Path), C.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t.CostCurrencyBar.Init(t._activityConfig.CustomPart.TicketId)
                    })
                }, t.prototype.SetRefreshTime = function() {
                    var e = g.default.GetItem(g.GameRecordDefine.ChampionShipRefresh);
                    !e || Number(e) + this._activityConfig.CustomPart.Interval * m.Etc.SecondDuration <= u.RpcComponent.Instance.ServerTime ? (this._nextRefreshTime = 0, this.CountDown()) : (this._nextRefreshTime = Number(e) + this._activityConfig.CustomPart.Interval * m.Etc.SecondDuration, this.unschedule(this.CountDown), this.CountDown(), this.schedule(this.CountDown, 1))
                }, t.prototype.CountDown = function() {
                    var e = this._nextRefreshTime - u.RpcComponent.Instance.ServerTime;
                    if (e < 0) this.RefreshTime.string = "championShip_can_refresh".ToUILocale(), this.unschedule(this.CountDown);
                    else {
                        var t = _.default.ActivityTimeLeftFormat(e);
                        this.RefreshTime.string = "championShip_refresh_time".ToUILocale().Fmt(t)
                    }
                }, t.prototype.SetPlayerList = function() {
                    this._isInit || (this.CustomLayout.Init(this._selectPrefab), this._isInit = !0), this.CustomLayout.RenderLayOut(this._res.Infos.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        e.getComponent(f.default).Init(n._res.Infos[t], n._headPrefab, n._activityConfig, n._myScore)
                    })
                }, t.prototype.OnRefreshButtonClick = function() {
                    var e = this,
                        t = g.default.GetItem(g.GameRecordDefine.ChampionShipRefresh);
                    if (t && Number(t) + this._activityConfig.CustomPart.Interval * m.Etc.SecondDuration > u.RpcComponent.Instance.ServerTime) C.UIUtlity.ShowFloatingHint("championShip_refresh_coolDown".ToUILocale());
                    else {
                        var n = new c.Req_Activity_ChampionshipTarget;
                        n.ActivityId = this._activityConfig._id, u.RpcComponent.Instance.Call(n, function(t) {
                            e._res = t, g.default.SetItem(g.GameRecordDefine.ChampionShipRefresh, u.RpcComponent.Instance.ServerTime.toString()), e.SetUIContent()
                        })
                    }
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([S(cc.Label)], t.prototype, "Tittle", void 0), i([S(I.default)], t.prototype, "CostCurrencyBar", void 0), i([S(d.default)], t.prototype, "CustomLayout", void 0), i([S(cc.Label)], t.prototype, "RefreshTime", void 0), i([S(cc.Button)], t.prototype, "RefreshButton", void 0), i([S(cc.Label)], t.prototype, "RefreshLabel", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/GlobalChampionSelectComponent": "GlobalChampionSelectComponent"
    }],
    GlobalChampionSettleRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b7bfdUVOjZLe4C44mqHcK81", "GlobalChampionSettleRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("./GlobalChampionShipPanel"),
            h = e("./GlobalChampionMainPanel"),
            f = e("../Components/GlobalChampionShipGradeComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.GradeCupSprite = null, t.GradeName = null, t.CupLabel = null, t.ItemContent = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.ItemScrollView = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._atlas = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ReceiveLabel.string = "receive".ToUILocale(), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityConfig = t[0], this._rank = t[1], this._score = t[2]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetGradeInfo(), this.SetRewards())
                }, t.prototype.SetGradeInfo = function() {
                    var e = d.default.GetCurGroupGradeId(this._rank, this._score, this._activityConfig),
                        t = h.default.GetGroupIdToStage2Map(this._activityConfig),
                        n = t[e].Stage;
                    this.GradeCupSprite.spriteFrame = this._atlas.getSpriteFrame("cup" + n), this._stage2Config = t[e], this.CupLabel.string = this._score.toString();
                    var o = f.default.GetStageName(this._activityConfig, t[e].Stage),
                        r = "";
                    if (t[e].Stage > this._activityConfig.__Stages[d.GlobalChampionShipGrade.Grade2].Id) {
                        var i = f.default.GetStage2Num(this._activityConfig, t[e].Id);
                        r = y.UIUtlity.GetRomanNumerals(i)
                    }
                    this.GradeName.string = o + r
                }, t.prototype.SetRewards = function() {
                    var e = this;
                    this.ItemScrollView.enabled = this._stage2Config.Rewards.length > 4, this._stage2Config.Rewards.length <= 4 && (this.ItemContent.x = 0), this._stage2Config.Rewards.forEach(function(t) {
                        var n = cc.instantiate(e._itemPrefab);
                        n.parent = e.ItemContent, n.y = -20, n.getComponent(g.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        })
                    })
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = this,
                        t = new u.Req_Activity_ChampionshipRewards;
                    t.ActivityId = this._activityConfig._id, t.Type = 2, c.RpcComponent.Instance.Call(t, function(t) {
                        y.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.Close()
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContent.children.indexOf(t) && y.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, i([C(cc.Sprite)], t.prototype, "GradeCupSprite", void 0), i([C(cc.Label)], t.prototype, "GradeName", void 0), i([C(cc.Label)], t.prototype, "CupLabel", void 0), i([C(cc.Node)], t.prototype, "ItemContent", void 0), i([C(cc.Button)], t.prototype, "ReceiveButton", void 0), i([C(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([C(cc.ScrollView)], t.prototype, "ItemScrollView", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/GlobalChampionShipGradeComponent": "GlobalChampionShipGradeComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "./GlobalChampionShipPanel": "GlobalChampionShipPanel"
    }],
    GlobalChampionSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "723d4EBED9JULBU6gEu2yHU", "GlobalChampionSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../Panel/GlobalChampionShipPanel"),
            p = e("../Panel/GlobalChampionMainPanel"),
            d = e("../../Components/Components"),
            h = e("./SettlementBaseComponent"),
            f = e("./SeniorArenaSettlementItem"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ChangeLabel = null, t.ResultLabel = null, t.ScoreNode = null, t.RankNode = null, t.GradeSprite = null, t.CupCount = null, t.ChangeCount = null, t.Arrow = null, t.RankCurGradeSprite = null, t.RankNextGradeSprite = null, t.CurRank = null, t.NextRank = null, t.ResultScore = null, t.Content = null, t.SureButton = null, t.SureLabel = null, t._loadAssets = [], t._teamComponents = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ResultLabel.string = "championShip_total_result".ToUILocale(), this.SureLabel.string = "Answer_QuitYes".ToUILocale(), this.SureButton.node.on("click", this.OnSureButtonClick, this)
                }, t.prototype.SetUI = function(t, n) {
                    e.prototype.SetUI.call(this, t, n), this._datas = t.SettleParams[0], this._reports = t.Reports, this.SetActivityConfig(), this.SetTitle(), this.SetChangeNode(), this.SetScore(), this.SetTeamList()
                }, t.prototype.SetActivityConfig = function() {
                    this._activityConfig = d.DataCenter.Instance.ActivityConfigs[this._datas[0]]
                }, t.prototype.SetTitle = function() {
                    this._showType = this._datas[1], this.ChangeLabel.string = 1 == this._showType ? "championShip_score_change".ToUILocale() : "championShip_rank_change".ToUILocale()
                }, t.prototype.SetChangeNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.ScoreNode.active = !1, this.RankNode.active = !1, [4, l.AssetsManager.Instance.LoadAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._atlas = e, this._loadAssets.push(e), 1 == this._showType ? (this.ScoreNode.active = !0, this.SetCupNode()) : (this.RankNode.active = !0, this.SetRankNode()), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetCupNode = function() {
                    var e = u.default.GetCurGroupGradeId(0, this._datas[2], this._activityConfig),
                        t = p.default.GetGroupIdToStage2Map(this._activityConfig)[e].Stage;
                    this.GradeSprite.spriteFrame = this._atlas.getSpriteFrame("cup" + t), this.CupCount.string = this._datas[2].toString(), this.ChangeCount.string = this._datas[3] > 0 ? "+" + this._datas[3] : this._datas[3].toString(), this.ChangeCount.node.color = this._datas[3] > 0 ? new cc.Color(35, 225, 35) : new cc.Color(255, 75, 75)
                }, t.prototype.SetRankNode = function() {
                    var e = !this._datas[3] || this._datas[2] < this._datas[3] ? "arrow_yellow" : "arrow_red";
                    this.Arrow.spriteFrame = this._atlas.getSpriteFrame(e);
                    var t = this._datas[3] > 0 ? 1 : 2,
                        n = this._datas[2] > 0 ? 1 : 2;
                    this.RankCurGradeSprite.spriteFrame = this._atlas.getSpriteFrame("cup" + t), this.RankNextGradeSprite.spriteFrame = this._atlas.getSpriteFrame("cup" + n), this.CurRank.node.active = this._datas[3] > 0, this.NextRank.node.active = this._datas[2] > 0, this._datas[3] > 0 && (this.CurRank.string = this._datas[3].toString()), this._datas[2] > 0 && (this.NextRank.string = this._datas[2].toString())
                }, t.prototype.SetScore = function() {
                    for (var e, t = this, n = 0, o = 0, r = 0; r < this._reports[0].Players.length; r++) {
                        var i = this._reports[0].Players[r];
                        if (i.Uid == d.DataCenter.Instance.Uid) {
                            e = i.Camp;
                            break
                        }
                    }
                    this._leftCamp = e || c.CampType.Attacker, this._reports.forEach(function(e) {
                        (t._leftCamp == c.CampType.Attacker ? e.Result == c.BattleResult.AttackerWin : e.Result == c.BattleResult.DefenderWin || e.Result == c.BattleResult.Timeout) ? n++ : o++
                    }), this.ResultScore.string = n + ":" + o
                }, t.prototype.SetTeamList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset("Arena/SeniorArenaPrivate/SeniorArenaSettlementItem", cc.Prefab)];
                                case 1:
                                    return e = n.sent(), this.isValid ? (this._teamPrefab = e, this._loadAssets.push(e), this._reports.forEach(function(e, n) {
                                        if (!t._teamComponents[n]) {
                                            var o = cc.instantiate(t._teamPrefab);
                                            o.parent = t.Content, t._teamComponents[n] = o.getComponent(f.default)
                                        }
                                        t._teamComponents[n].Init(e, n, !0)
                                    }), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.OnSureButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._atlas = null
                }, i([m(cc.Label)], t.prototype, "ChangeLabel", void 0), i([m(cc.Label)], t.prototype, "ResultLabel", void 0), i([m(cc.Node)], t.prototype, "ScoreNode", void 0), i([m(cc.Node)], t.prototype, "RankNode", void 0), i([m(cc.Sprite)], t.prototype, "GradeSprite", void 0), i([m(cc.Label)], t.prototype, "CupCount", void 0), i([m(cc.Label)], t.prototype, "ChangeCount", void 0), i([m(cc.Sprite)], t.prototype, "Arrow", void 0), i([m(cc.Sprite)], t.prototype, "RankCurGradeSprite", void 0), i([m(cc.Sprite)], t.prototype, "RankNextGradeSprite", void 0), i([m(cc.Label)], t.prototype, "CurRank", void 0), i([m(cc.Label)], t.prototype, "NextRank", void 0), i([m(cc.Label)], t.prototype, "ResultScore", void 0), i([m(cc.Node)], t.prototype, "Content", void 0), i([m(cc.Button)], t.prototype, "SureButton", void 0), i([m(cc.Label)], t.prototype, "SureLabel", void 0), i([g], t)
            }(h.default);
        n.default = I, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "../Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "./SeniorArenaSettlementItem": "SeniorArenaSettlementItem",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    GlobalChampionShipComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f686cWXLEZGN5/GAd2a8l+m", "GlobalChampionShipComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GlobalChampionShipRefreshState = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("./ItemComponent"),
            m = e("./HeadComponent"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../Auxiliary/UIUtlity");
        (function(e) {
            e[e.Lock = 0] = "Lock", e[e.CurState = 1] = "CurState"
        })(l = n.GlobalChampionShipRefreshState || (n.GlobalChampionShipRefreshState = {}));
        var C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.CupCount = null, t.PlayerDesc = null, t.PlayerCount = null, t.ChanllengeButton = null, t.ChanllengeLabel = null, t.ItemNode = null, t.HeadContent = null, t.DoorNode = null, t.MaskNode = null, t._loadAssets = [], t._headComponent = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.PlayerDesc.string = "championShip_person".ToUILocale(), this.ChanllengeLabel.string = "HolyRelic_challenge".ToUILocale(), this.ChanllengeButton.node.on("click", this.OnChanllengeButtonClick, this)
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(y.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this), c.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(y.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this), c.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    this._data = e, this.SetBg(), this.SetReward(), this.SetInfo(), this.SetHeadContent()
                }, t.prototype.UpdateScore = function(e) {
                    this._data.MyScore = e
                }, t.prototype.SetBg = function() {
                    this.Bg.spriteFrame = this._data.MapAtlas.getSpriteFrame("base" + this._data.GroupConfig.MapBg)
                }, t.prototype.SetReward = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._itemComponent ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._loadAssets.push(e), (t = cc.instantiate(e)).name = this._data.GroupConfig.Id.toString(), t.on(cc.Node.EventType.TOUCH_END, this.OnClickItem, this), t.parent = this.ItemNode, t.y = -20, this._itemComponent = t.getComponent(g.ItemComponent), i.label = 2;
                                case 2:
                                    return this._itemComponent.Init({
                                        ItemId: this._data.GroupConfig.Rewards[0].Items[0],
                                        Count: this._data.GroupConfig.Rewards[0].Items[1]
                                    }), n = f.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data.ActivityConfig._id), o = n.IntArray[0] && this._data.GroupConfig.Id >= n.IntArray[0], r = n.IntArray[1] > 0 && this._data.GroupConfig.Id >= n.IntArray[1] && (this._data.GroupConfig.Id < n.IntArray[0] || !n.IntArray[0]), this.SetRewardSelect(o), !o && r ? this._itemComponent.PlayGetRewardEffect() : this._itemComponent.PauseGetRewardEffect(), [2]
                            }
                        })
                    })
                }, t.prototype.SetRewardSelect = function(e) {
                    this._itemComponent && this._itemComponent.SetSelectFlagState(e)
                }, t.prototype.SetInfo = function() {
                    var e = this;
                    this.CupCount.string = this._data.GroupConfig.Score.toString(), this.PlayerCount.string = (this._data.PlayerCount + this._data.GroupConfig.Robots.length).toString();
                    var t = I.default.Instance.ComputeDeadTime(this._data.ActivityConfig.Common);
                    this.ChanllengeButton.node.active = p.RpcComponent.Instance.ServerTime < t && this._data.CurGroupId == this._data.GroupConfig.Id, this.DoorNode.children.forEach(function(t, n) {
                        e._data.GroupConfig.Id > e._data.CurGroupId ? t.x = 0 == n ? -t.width : t.width : t.x = 0
                    }), this.MaskNode.children.forEach(function(t, n) {
                        e._data.GroupConfig.Id >= e._data.CurGroupId ? t.x = 0 == n ? -t.width : t.width : t.x = 0
                    })
                }, t.prototype.SetHeadContent = function() {
                    for (var e = 0; e < 4; e++) {
                        if (!this._headComponent[e]) {
                            var t = cc.instantiate(this._data.HeadPrefab);
                            t.parent = this.HeadContent, this._headComponent[e] = t.getComponent(m.default)
                        }
                        var n = this.GetRandomIconAndFrame();
                        this._headComponent[e].SetUI(n[0], n[1])
                    }
                }, t.prototype.GetRandomIconAndFrame = function() {
                    for (var e, t = p.ConfigDataComponent.Instance.GetArrayConfig(d.HeadIcon_Config), n = [], o = 0; o < t.length; o++) t[o].ForRandom && n.push(t[o]);
                    e = n[Math.floor(Math.random() * n.length)].Id;
                    var r = p.ConfigDataComponent.Instance.GetArrayConfig(d.HeadFrame_Config);
                    return [e, r[Math.floor(Math.random() * r.length)].Id]
                }, t.prototype.OpenTopPalisade = function() {
                    this.ChanllengeButton.node.active = !1, cc.tween(this.DoorNode.children[0]).to(.2, {
                        x: -this.DoorNode.children[0].width
                    }).start(), cc.tween(this.DoorNode.children[1]).to(.2, {
                        x: this.DoorNode.children[1].width
                    }).start()
                }, t.prototype.RefreshBackState = function(e) {
                    switch (e) {
                        case l.Lock:
                            this.ChanllengeButton.node.active = !1, this.DoorNode.children.forEach(function(e) {
                                e.x = 0
                            }), this.MaskNode.children.forEach(function(e) {
                                e.x = 0
                            });
                            break;
                        case l.CurState:
                            this.ChanllengeButton.node.active = !0, this.DoorNode.children.forEach(function(e) {
                                e.x = 0
                            }), this.MaskNode.children.forEach(function(e, t) {
                                e.x = 0 == t ? -e.width : e.width
                            })
                    }
                }, t.prototype.OpenBottomPalisade = function(e) {
                    var t = this;
                    this.SetReward(), cc.tween(this.MaskNode.children[0]).to(.2, {
                        x: -this.MaskNode.children[0].width
                    }).start(), cc.tween(this.MaskNode.children[1]).to(.2, {
                        x: this.MaskNode.children[1].width
                    }).delay(e).call(function() {
                        t.ChanllengeButton.node.active = !0
                    }).start()
                }, t.prototype.OnChanllengeButtonClick = function() {
                    var e = this,
                        t = new u.Req_Activity_ChampionshipTarget;
                    t.ActivityId = this._data.ActivityConfig._id, p.RpcComponent.Instance.Call(t, function(t) {
                        c.UIManager.Instance.ShowUIPanel(h.PanelConfig.GlobalChampionSelectPanel.Path, e._data.ActivityConfig, t, e._data.MyScore)
                    })
                }, t.prototype.OnClickItem = function() {
                    var e = f.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data.ActivityConfig._id);
                    if (e.IntArray[1]) {
                        var t = this.node.name.split("_"),
                            n = Number(t[1]);
                        if ((n < e.IntArray[0] || !e.IntArray[0]) && n >= e.IntArray[1]) {
                            var o = [];
                            if (e.IntArray[0] > 0)
                                for (var r = e.IntArray[1]; r < e.IntArray[0]; r++) o.push(r);
                            else
                                for (r = this._data.ActivityConfig.__Groups.length - 1; r >= 0 && !(this._data.ActivityConfig.__Groups[r].Id < e.IntArray[1]); r--) o.push(this._data.ActivityConfig.__Groups[r].Id);
                            var i = new u.Req_Activity_ChampionshipRewards;
                            i.ActivityId = this._data.ActivityConfig._id, i.Type = 1, p.RpcComponent.Instance.Call(i, function(e) {
                                c.Game.EventDispatcher.Emit(y.EventKeys.EVENT_CHAMPIONSHIP_REFRESHREWARD, o), _.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            })
                        }
                    }
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && _.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([b(cc.Sprite)], t.prototype, "Bg", void 0), i([b(cc.Label)], t.prototype, "CupCount", void 0), i([b(cc.Label)], t.prototype, "PlayerDesc", void 0), i([b(cc.Label)], t.prototype, "PlayerCount", void 0), i([b(cc.Button)], t.prototype, "ChanllengeButton", void 0), i([b(cc.Label)], t.prototype, "ChanllengeLabel", void 0), i([b(cc.Node)], t.prototype, "ItemNode", void 0), i([b(cc.Node)], t.prototype, "HeadContent", void 0), i([b(cc.Node)], t.prototype, "DoorNode", void 0), i([b(cc.Node)], t.prototype, "MaskNode", void 0), i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeadComponent": "HeadComponent",
        "./ItemComponent": "ItemComponent"
    }],
    GlobalChampionShipGradeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8510a2bafxGsq4IhLUZ7lxd", "GlobalChampionShipGradeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Panel/GlobalChampionMainPanel"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Panel/GlobalChampionShipPanel"),
            u = e("../Auxiliary/UIUtlity"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GradeSprite = null, t.GradeNameLabel = null, t.LeftDoor = null, t.RightDoor = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(l.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(l.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.Init = function(e) {
                    var t = s.default.GetStage2IdToStageMap(e.ActivityConfig),
                        o = s.default.GetGroupIdToStage2Map(e.ActivityConfig);
                    this.GradeSprite.spriteFrame = e.Atlas.getSpriteFrame("cup" + t[e.Stage2Id].Id);
                    var r = n.GetStageName(e.ActivityConfig, t[e.Stage2Id].Id),
                        i = "";
                    if (t[e.Stage2Id].Id > e.ActivityConfig.__Stages[c.GlobalChampionShipGrade.Grade2].Id) {
                        var a = n.GetStage2Num(e.ActivityConfig, e.Stage2Id);
                        i = u.UIUtlity.GetRomanNumerals(a)
                    }
                    this.GradeNameLabel.string = r + i;
                    var l = o[e.CurGroupId];
                    this.LeftDoor.x = e.Stage2Id > l.Id ? -this.LeftDoor.width : 0, this.RightDoor.x = e.Stage2Id > l.Id ? this.RightDoor.width : 0
                }, t.GetStageName = function(e, t) {
                    var n = "",
                        o = e._Locale.find(function(e) {
                            return e.Id == t
                        });
                    return o && (n = o.Content), n
                }, t.GetStage2Num = function(e, t) {
                    var n = 0,
                        o = s.default.GetGradeToStages(e)[s.default.GetStage2IdToStageMap(e)[t].Id].findIndex(function(e) {
                            return e.Id == t
                        });
                    return o > -1 && (n = o + 1), n
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.OpenTheDoor = function() {
                    cc.tween(this.LeftDoor).to(.2, {
                        x: -this.LeftDoor.width
                    }).start(), cc.tween(this.RightDoor).to(.2, {
                        x: this.RightDoor.width
                    }).start()
                }, t.prototype.RefreshBackState = function() {
                    this.LeftDoor.x = 0, this.RightDoor.x = 0
                }, i([h(cc.Sprite)], t.prototype, "GradeSprite", void 0), i([h(cc.Label)], t.prototype, "GradeNameLabel", void 0), i([h(cc.Node)], t.prototype, "LeftDoor", void 0), i([h(cc.Node)], t.prototype, "RightDoor", void 0), n = i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "../Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel"
    }],
    GlobalChampionShipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9cf12uf2ixCbbyiiijbTJ9e", "GlobalChampionShipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GlobalChampionShipGrade = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../Components/CurrencyBarItem"),
            y = e("../Battle/BattleData"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Battle/BattleManager"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Components/RpcComponent"),
            C = e("../Components/HeadComponent"),
            v = e("../Components/GlobalChampionPlayerComponent"),
            b = e("../Components/GlobalChampionShipComponent"),
            S = e("../Components/GlobalChampionShipGradeComponent"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../../RedDot/RedDotManager"),
            A = e("./GlobalChampionMainPanel"),
            T = e("../Auxiliary/UIUtlity"),
            R = e("../Components/GlobalChampionShipProgressItem"),
            L = e("../Components/GlobalChampionLegendComponent"),
            k = e("../../Auxiliary/GameRecord"),
            O = e("./CloudsTurnPanel"),
            M = e("../Components/CustomProgressBar");
        (function(e) {
            e[e.Grade1 = 0] = "Grade1", e[e.Grade2 = 1] = "Grade2"
        })(l = n.GlobalChampionShipGrade || (n.GlobalChampionShipGrade = {}));
        var D = cc._decorator,
            B = D.ccclass,
            N = D.property,
            E = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.Time = null, t.CurrencyBarComponent = null, t.GradeSprite = null, t.GradeName = null, t.HeadContent = null, t.CupCount = null, t.RankInfoNode = null, t.RankDesc = null, t.Rank = null, t.ProgressBar = null, t.ProgressBarNode = null, t.LegendNode = null, t.LegendScrollView = null, t.LegendTopThreeNodes = [], t.LegendScrollCotent = null, t.LegendContent = null, t.CommonScrollView = null, t.GreatMonsterNode = null, t.GreatMonsterPosNodes = [], t.CommonContent = null, t.RefreshButton = null, t.RefreshLabel = null, t.RewardButton = null, t.RewardLabel = null, t.FormationButton = null, t.FormationLabel = null, t.ReportButton = null, t.ReportLabel = null, t.RankButton = null, t.RankLabel = null, t.EffectPageNode = null, t.EffectGradeSprite = null, t.EffectGradeName = null, t.ReturnButton = null, t.MaskNode = null, t.SureButton = null, t.SureLabel = null, t.MulitNode = null, t.Spine = null, t.OutHeadNode = null, t.Arrow = null, t.MyHeadSprite = null, t.MyHeadNode = null, t.RuleButton = null, t.BubbleNodes = [], t.BubbleLabels = [], t.BubbleBgs = [], t.BubbleArrows = [], t.GreatMonsterCupLabel = null, t.OutHeadNodeLegend = null, t.ArrowLegend = null, t.MyHeadSpriteLegend = null, t.LegendTopNode = null, t.LegendBottomNode = null, t._curScore = 0, t._curRank = 0, t._legendComponents = [], t._openDoorStage2Id = 0, t._newScore = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(I.EventKeys.EVENT_CHAMPIONSHIP_REFRESHDATA, this.RefreshTargetData, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_CHAMPIONSHIP_REFRESHPANEL, this.RefreshUIData, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_CHAMPIONSHIP_REFRESHREWARD, this.RefreshReward, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(I.EventKeys.EVENT_CHAMPIONSHIP_REFRESHDATA, this.RefreshTargetData, this), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_CHAMPIONSHIP_REFRESHPANEL, this.RefreshUIData, this), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_CHAMPIONSHIP_REFRESHREWARD, this.RefreshReward, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l, c, u = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas), n = this.LoadDynamicAsset("Chatting/Atlas/Chatting", cc.SpriteAtlas), o = this.LoadDynamicAsset("GlobalChampionShipPanel/Components/GlobalChampionShipProgressItem", cc.Prefab), r = this.LoadDynamicAsset(g.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        u._atlas = e[0], u._chatAtlas = e[1], u._progressItemPrefab = e[2], u._headPrefab = e[3]
                                    })];
                                case 1:
                                    return s.sent(), i = this.LoadDynamicAsset("GlobalChampionShipPanel/Components/GlobalChampionLegendComponent", cc.Prefab), a = this.LoadDynamicAsset("GlobalChampionShipPanel/Components/GlobalChampionShipComponent", cc.Prefab), l = this.LoadDynamicAsset("GlobalChampionShipPanel/Components/GlobalChampionShipGradeComponent", cc.Prefab), c = this.LoadDynamicAsset("GlobalChampionShipPanel/PNG/GlobalChampionShipMap", cc.SpriteAtlas), [4, Promise.all([i, a, l, c]).then(function(e) {
                                        u._legendPrefab = e[0], u._shipPrefab = e[1], u._shipGradePrefab = e[2], u._mapAtlas = e[3]
                                    })];
                                case 2:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.RankDesc.string = "championShip_rank".ToUILocale(), this.RewardLabel.string = "reward".ToUILocale(), this.FormationLabel.string = "StrongholdWar_Team_Edit".ToUILocale(), this.ReportLabel.string = "allianceWar_report".ToUILocale(), this.RankLabel.string = "AllZoneChampionShip_RankButton".ToUILocale(), this.SureLabel.string = "ok".ToUILocale(), this.MaskNode.active = !1, this.BubbleLabels.forEach(function(e) {
                        e.string = "championShip_bubble".ToUILocale()
                    }), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.ReportButton.node.on("click", this.OnReportButtonClick, this), this.FormationButton.node.on("click", this.OnFormationButtonClick, this), this.RewardButton.node.on("click", this.OnRewardButtonClick, this), this.RefreshButton.node.on("click", this.OnRefreshButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.SureButton.node.on("click", this.OnSureButtonClick, this), this.OutHeadNode.on(cc.Node.EventType.TOUCH_END, this.OnClickOutHeadNode, this), this.OutHeadNodeLegend.on(cc.Node.EventType.TOUCH_END, this.OnClickOutHeadNodeLegend, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.CommonScrollView.node.on("scrolling", this.OnScrolling, this), this.LegendScrollView.node.on("scrolling", this.OnLegendScrollViewScrolling, this);
                    var n = this.CommonContent.getBoundingBoxToWorld();
                    this._nodeViewRect = new cc.Rect(n.x, n.y, this.CommonContent.width, this.CommonContent.height);
                    var o = this.LegendScrollView.node.getBoundingBoxToWorld();
                    this._nodeViewRectLegend = new cc.Rect(o.x, o.y, this.LegendScrollView.node.width, this.LegendScrollView.node.height), this.MyHeadNode.x = 22;
                    var r = cc.instantiate(this._headPrefab);
                    r.parent = this.MyHeadNode;
                    var i = r.getComponent(C.default),
                        a = d.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon),
                        s = d.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame),
                        l = d.DataCenter.Instance.GetIntData(p.UserDataKey.Title);
                    i.SetUI(a, s, l), this.BubbleBgs.forEach(function(e) {
                        e.spriteFrame = t._chatAtlas.getSpriteFrame("messageBg1")
                    }), this.BubbleArrows.forEach(function(e) {
                        e.spriteFrame = t._chatAtlas.getSpriteFrame("messageBg1Tip")
                    })
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this);
                    var o = t[0];
                    this._res = t[1], this._activityConfig = d.DataCenter.Instance.ActivityConfigs[o], this.Title.string = this._activityConfig.Common.Title, this.UpdateInfo(this._res.Score, this._res.Rank), this._playerConutMap = {}, this._res.Counts.forEach(function(e) {
                        n._playerConutMap[e.Items[0]] = e.Items[1]
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = d.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon), [4, c.AssetsManager.Instance.LoadAsset(g.BundlePath.HeadIcon + "/" + t, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.MyHeadSprite.spriteFrame = n, this.MyHeadSpriteLegend.spriteFrame = n, [2]
                            }
                        })
                    })
                }, t.prototype.UpdateInfo = function(e, t) {
                    e > 0 && (this._curScore = e), t > 0 && (this._curRank = t)
                }, t.prototype.GetInfo = function() {
                    return [this._curRank, this._curScore]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._activityModel = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), t || (this._deadLine = w.default.Instance.ComputeDeadTime(this._activityConfig.Common), this._showOffEndTme = w.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common), this.ActivityCountDown(), this.unschedule(this.ActivityCountDown), this.schedule(this.ActivityCountDown, 1), d.RpcComponent.Instance.ServerTime >= this._deadLine && this._activityModel.IntArray[1] > 0 && !this._activityModel.IntArray[2] && c.UIManager.Instance.ShowUIPanel(g.PanelConfig.GlobalChampionSettleRewardPanel.Path, this._activityConfig, this._curRank, this._curScore)), this.RefreshUIContent()
                }, t.prototype.ActivityCountDown = function() {
                    d.RpcComponent.Instance.ServerTime >= this._showOffEndTme ? c.UIManager.Instance.BackUIPanel() : d.RpcComponent.Instance.ServerTime >= this._deadLine && d.RpcComponent.Instance.ServerTime < this._showOffEndTme ? this.Time.string = "activityTime_show".ToUILocale() + w.default.ActivityTimeLeftFormat(this._showOffEndTme - d.RpcComponent.Instance.ServerTime) : d.RpcComponent.Instance.ServerTime < this._deadLine && (this.Time.string = "Activity_Story_LeftTime".ToUILocale().Fmt(w.default.ActivityTimeLeftFormat(this._deadLine - d.RpcComponent.Instance.ServerTime)))
                }, t.prototype.SetUIContent = function() {
                    this.UpdateGradeInfo(), this.SetGradeInfoNode(), this.SetPlayerInfoNode(), this.SetProgressBarNode(), this.SetMiddleContent(), this.RefreshRewardReddot(), P.RedDotManager.Instance.BindInstance(this.FormationButton.node, P.RedDotManager.Instance.InstanceRedDot.GlobalChampionFormationBtn, {
                        Value1: this._activityConfig._id,
                        extra: this._res
                    })
                }, t.prototype.RefreshRewardReddot = function() {
                    P.RedDotManager.Instance.BindInstance(this.RewardButton.node, P.RedDotManager.Instance.InstanceRedDot.GlobalChampionRewardBtn, {
                        Value1: this._activityConfig._id
                    })
                }, t.GetCurGroupGradeId = function(e, t, n) {
                    var o = 0;
                    if (e > 0) o = n.__Groups[0].Id;
                    else {
                        for (var r = 1; r < n.__Groups.length; r++)
                            if (t >= n.__Groups[r].Score) {
                                o = n.__Groups[r].Id;
                                break
                            } o || (o = n.__Groups[n.__Groups.length - 1].Id)
                    }
                    return o
                }, t.prototype.UpdateGradeInfo = function() {
                    this._groupId = n.GetCurGroupGradeId(this._curRank, this._curScore, this._activityConfig);
                    var e = A.default.GetGroupIdToStage2Map(this._activityConfig);
                    this._stageId = e[this._groupId].Stage
                }, t.prototype.SetGradeInfoNode = function() {
                    this.GradeSprite.spriteFrame = this._atlas.getSpriteFrame("cup" + this._stageId);
                    var e = A.default.GetGroupIdToStage2Map(this._activityConfig),
                        t = S.default.GetStageName(this._activityConfig, this._stageId),
                        n = "";
                    if (this._stageId > this._activityConfig.__Stages[l.Grade2].Id) {
                        var o = S.default.GetStage2Num(this._activityConfig, e[this._groupId].Id);
                        n = T.UIUtlity.GetRomanNumerals(o)
                    }
                    this.GradeName.string = t + n, this.CurrencyBarComponent.Init(this._activityConfig.CustomPart.TicketId), this.CurrencyBarComponent.SetClickCallBack(this.OnBuyTicketClick.bind(this))
                }, t.prototype.OnBuyTicketClick = function() {
                    var e = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id),
                        t = this._activityConfig.CustomPart.Goods[this._activityConfig.CustomPart.Goods.length - 1].Items[0],
                        n = e.IntValue,
                        o = {
                            ItemId: this._activityConfig.CustomPart.TicketId,
                            ItemCount: 1,
                            CurrencyId: p.CommonItemId.Diamond,
                            BuyCountLimit: t,
                            BuyCount: n,
                            ProgressCallback: this.CurrentTotalPrice.bind(this),
                            BuyCallback: this.RequestBuyTicket.bind(this)
                        };
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonBuyItemPanel.Path, o)
                }, t.prototype.CurrentTotalPrice = function(e) {
                    if (!e) return 0;
                    for (var t = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), n = 0, o = t.IntValue, r = 0, i = this._activityConfig.CustomPart.Goods; r < i.length; r++) {
                        var a = i[r].Items,
                            s = a[0],
                            l = a[1];
                        if (!(t.IntValue >= s)) {
                            if (!(o + e > s)) {
                                n += l * e;
                                break
                            }
                            e -= s - o, n += l * (s - o), o = s
                        }
                    }
                    return n
                }, t.prototype.RequestBuyTicket = function(e) {
                    var t = this,
                        n = new u.Req_Activity_ChampionshipBuyTicket;
                    n.ActivityId = this._activityConfig._id, n.Count = e, d.RpcComponent.Instance.Call(n, function(e) {
                        c.UIManager.Instance.QuitPanelStack(g.PanelConfig.CommonBuyItemPanel.Path), T.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t.CurrencyBarComponent.Init(t._activityConfig.CustomPart.TicketId)
                    })
                }, t.prototype.SetPlayerInfoNode = function() {
                    if (!this._headComponent) {
                        var e = cc.instantiate(this._headPrefab);
                        e.parent = this.HeadContent, this._headComponent = e.getComponent(C.default);
                        var t = d.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon),
                            n = d.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame);
                        this._headComponent.SetUI(t, n)
                    }
                    var o = this._curRank > 0 ? this._curRank : this._curScore;
                    this._headComponent.SetChampionShipTag(this._stageId, o, !0), this.RankInfoNode.active = this._curRank > 0, this.CupCount.string = this._curScore.toString(), this._curRank > 0 && (this.Rank.string = this._curRank.toString())
                }, t.prototype.GetGradeProgress = function() {
                    var e = 0;
                    if (this._stageId == this._activityConfig.__Stages[l.Grade1].Id) e = 1;
                    else if (this._stageId == this._activityConfig.__Stages[l.Grade2].Id) e = (this._activityConfig.__Stages[this._activityConfig.__Stages.length - 1].Id - this._stageId) / (this._activityConfig.__Stages.length - 1);
                    else {
                        var t = (this._activityConfig.__Stages[this._activityConfig.__Stages.length - 1].Id - this._stageId) / (this._activityConfig.__Stages.length - 1),
                            n = A.default.GetGradeToStages(this._activityConfig),
                            o = A.default.GetStageToStage2s(this._activityConfig),
                            r = [];
                        n[this._stageId].forEach(function(e) {
                            o[e.Id].forEach(function(e) {
                                r.push(e)
                            })
                        }), r.sort(function(e, t) {
                            return e.Id - t.Id
                        });
                        for (var i = 0, a = 0; a < r.length; a++)
                            if (this._groupId == r[a].Id) {
                                i = a;
                                break
                            } e = t + (r.length - 1 - i) / r.length * (1 / (this._activityConfig.__Stages.length - 1))
                    }
                    return e
                }, t.prototype.SetProgressBarNode = function() {
                    if (!this._progressItems) {
                        var e = this._activityConfig.__Stages.length,
                            t = this.ProgressBarNode.height / 2,
                            n = this.ProgressBarNode.height / (e - 1);
                        this._progressItems = [];
                        for (var o = 0; o < e; o++) {
                            var r = cc.instantiate(this._progressItemPrefab);
                            r.parent = this.ProgressBarNode, r.name = this._activityConfig.__Stages[o].Id.toString(), r.setPosition(0, t - n * o);
                            var i = r.getComponent(R.default);
                            i.Init(this._activityConfig.__Stages[o].Id, this._atlas, this), i.SetSelect(this._activityConfig.__Stages[o].Id == this._stageId), this._progressItems.push(i)
                        }
                    }
                    var a = this.GetGradeProgress();
                    this.ProgressBar.progress = a
                }, t.prototype.RefreshTargetData = function() {
                    this._needRefreshTarget = !0, this.SetMiddleContent()
                }, t.prototype.InitParam = function() {
                    this._curScore = this._newScore, this._newScore = 0, this._needShowEffect = !1, this.MaskNode.active = !1, this._openDoorStage2Id = 0, this.SetUIContent()
                }, t.prototype.RefreshUIData = function(e) {
                    var t = this;
                    if (1 == e.ExtraParam[0].Items[1]) {
                        this._newScore = e.ExtraParam[0].Items[2];
                        var o = n.GetCurGroupGradeId(this._curRank, this._newScore, this._activityConfig);
                        A.default.GetGroupIdToStage2Map(this._activityConfig)[o].Stage == this._activityConfig.__Stages[l.Grade2].Id && (this._needRefreshTarget = !0), this._shipComponents.forEach(function(e) {
                            e.UpdateScore(t._newScore)
                        })
                    } else {
                        var r = e.ExtraParam[0].Items[2];
                        (!this._curRank || r < this._curRank) && (this._curRank = r, this._needRefreshTarget = !0), this.SetUIContent()
                    }
                }, t.prototype.RefreshReward = function(e) {
                    this._shipComponents.forEach(function(t) {
                        var n = t.node.name.split("_"),
                            o = Number(n[1]);
                        e.includes(o) && t.SetReward()
                    })
                }, t.prototype.RefreshUIContent = function() {
                    if (this._newScore) {
                        var e = n.GetCurGroupGradeId(this._curRank, this._newScore, this._activityConfig);
                        if (e < this._groupId) {
                            var t = A.default.GetGroupIdToStage2Map(this._activityConfig),
                                o = t[this._groupId],
                                r = t[e];
                            r.Stage < o.Stage && (this._needShowEffect = !0), r.Id < o.Id && (this._openDoorStage2Id = o.Id), this.SetCrossEffect()
                        } else e == this._groupId ? (this._curScore = this._newScore, this._newScore = 0, this.SetUIContent()) : this.RefreshBackUI()
                    } else this.SetUIContent()
                }, t.prototype.RefreshBackUI = function() {
                    var e, t, o = n.GetCurGroupGradeId(this._curRank, this._curScore, this._activityConfig),
                        r = n.GetCurGroupGradeId(this._curRank, this._newScore, this._activityConfig),
                        i = A.default.GetGroupIdToStage2Map(this._activityConfig),
                        a = i[o].Id,
                        s = i[r].Id;
                    if (a != s) {
                        for (var l = void 0, c = 0; c < this._shipGradeComponents.length; c++) {
                            var u = this._shipGradeComponents[c].node.name.split("_");
                            if (Number(u[1]) == s) {
                                l = this._shipGradeComponents[c];
                                break
                            }
                        }
                        l && l.RefreshBackState()
                    }
                    for (c = 0; c < this._shipComponents.length && (!e || !t); c++) {
                        u = this._shipComponents[c].node.name.split("_");
                        var p = Number(u[1]);
                        p == o ? e = this._shipComponents[c] : p == r && (t = this._shipComponents[c])
                    }
                    e && t && (e.RefreshBackState(b.GlobalChampionShipRefreshState.Lock), t.RefreshBackState(b.GlobalChampionShipRefreshState.CurState), this.CommonScrollView.scrollToOffset(cc.v2({
                        y: -t.node.y - 800
                    }), .5)), this._curScore = this._newScore, this._newScore = 0, this.SetUIContent()
                }, t.prototype.SetCrossEffect = function() {
                    var e = this;
                    if (this._needShowEffect) {
                        var t = n.GetCurGroupGradeId(this._curRank, this._curScore, this._activityConfig),
                            o = n.GetCurGroupGradeId(this._curRank, this._newScore, this._activityConfig),
                            r = A.default.GetGroupIdToStage2Map(this._activityConfig),
                            i = r[t].Stage,
                            a = r[o].Stage;
                        this.EffectPageNode.opacity = 0, this.EffectPageNode.active = !0, this.EffectGradeName.node.opacity = 255, this.EffectGradeSprite.node.scale = 1, this.EffectGradeSprite.node.opacity = 255, this.MulitNode.active = !1, this.SureButton.node.active = !1, this.Spine.clearTracks(), this.EffectGradeSprite.spriteFrame = this._atlas.getSpriteFrame("cup" + i), this.EffectGradeName.string = S.default.GetStageName(this._activityConfig, i), cc.tween(this.EffectPageNode).to(.1, {
                            opacity: 255
                        }).start(), this.scheduleOnce(function() {
                            cc.tween(e.EffectGradeName.node).to(.1, {
                                opacity: 0
                            }).start(), cc.tween(e.EffectGradeSprite.node).to(.3, {
                                scale: 4
                            }, {
                                easing: "easeOutCirc"
                            }).call(function() {
                                e.EffectGradeSprite.node.opacity = 0, e.EffectGradeSprite.spriteFrame = e._atlas.getSpriteFrame("cup" + a), e.EffectGradeName.string = S.default.GetStageName(e._activityConfig, a)
                            }).start()
                        }, .3), this.scheduleOnce(function() {
                            cc.tween(e.EffectGradeSprite.node).to(.2, {
                                opacity: 255
                            }).start(), cc.tween(e.EffectGradeSprite.node).to(.14, {
                                scale: 1
                            }, {
                                easing: "easeInSine"
                            }).to(.06, {
                                scale: 1.2
                            }, {
                                easing: "easeInQuad"
                            }).to(.1, {
                                scale: 1
                            }, {
                                easing: "easeInQuad"
                            }).start()
                        }, .7), this.scheduleOnce(function() {
                            e.Spine.setAnimation(0, "Ani_UI_Effect_QQJBS_duanwei", !1), e.MulitNode.active = !0, e.SureButton.node.active = !0, cc.tween(e.EffectGradeName.node).to(.1, {
                                opacity: 255
                            }).start()
                        }, .8)
                    } else this.MoveMyPosNode()
                }, t.prototype.MoveMyPosNode = function() {
                    var e = this;
                    this.MaskNode.active = !0;
                    var t, o, r, i, a = A.default.GetGroupIdToStage2Map(this._activityConfig),
                        s = n.GetCurGroupGradeId(this._curRank, this._newScore, this._activityConfig),
                        c = a[s].Stage;
                    if (c < this._activityConfig.__Stages[l.Grade2].Id) return this._needRefreshTarget = !0, this.SetLegendNode(), this.LegendNode.active = !0, this.CommonScrollView.node.active = !1, this.MyHeadNode.active = !1, void this.InitParam();
                    for (var u = this._activityConfig.__Groups.length - 1; u >= 0; u--) this._activityConfig.__Groups[u].Id == this._groupId && (o = this._activityConfig.__Groups[u]), this._activityConfig.__Groups[u].Id == s && (t = this._activityConfig.__Groups[u]);
                    for (u = 0; u < this._shipComponents.length && (!r || !i); u++) {
                        var p = this._shipComponents[u].node.name.split("_"),
                            d = Number(p[1]);
                        d == o.Id ? r = this._shipComponents[u] : d == t.Id && (i = this._shipComponents[u])
                    }
                    if (this._openDoorStage2Id > 0) {
                        var h;
                        for (u = 0; u < this._shipGradeComponents.length; u++)
                            if (p = this._shipGradeComponents[u].node.name.split("_"), Number(p[1]) == this._openDoorStage2Id) {
                                h = this._shipGradeComponents[u];
                                break
                            } if (h)
                            if (c == this._activityConfig.__Stages[l.Grade2].Id) {
                                var f = (m = h.node.height + r.node.height / 2) / n.MoveSpeed,
                                    y = this.MyHeadNode.y;
                                r.OpenTopPalisade(), cc.tween(this.MyHeadNode).delay(.3).call(function() {
                                    e.CommonScrollView.scrollToOffset(cc.v2({
                                        y: 250
                                    }), 1)
                                }).to(f, {
                                    y: m + y
                                }).call(function() {
                                    e.MyHeadNode.active = !1, e.InitParam()
                                }).start(), this.scheduleOnce(function() {
                                    h.OpenTheDoor()
                                }, .55)
                            } else {
                                var g = (m = r.node.height + h.node.height) / n.MoveSpeed;
                                y = this.MyHeadNode.y, r.OpenTopPalisade(), cc.tween(this.MyHeadNode).delay(.3).call(function() {
                                    e.CommonScrollView.scrollToOffset(cc.v2({
                                        y: -i.node.y - 800
                                    }), g)
                                }).to(g, {
                                    y: m + y
                                }).call(function() {
                                    e.MyHeadNode.parent = i.node, e.MyHeadNode.y = 30, e.InitParam()
                                }).start(), this.scheduleOnce(function() {
                                    h.OpenTheDoor()
                                }, .55), this.scheduleOnce(function() {
                                    i.OpenBottomPalisade(g - .2)
                                }, .9)
                            }
                        else this.InitParam()
                    } else {
                        var m, I = (m = r.node.height) / n.MoveSpeed;
                        y = this.MyHeadNode.y, r.OpenTopPalisade(), cc.tween(this.MyHeadNode).delay(.3).call(function() {
                            e.CommonScrollView.scrollToOffset(cc.v2({
                                y: -i.node.y - 800
                            }), I)
                        }).to(I, {
                            y: m + y
                        }).call(function() {
                            e.MyHeadNode.parent = i.node, e.MyHeadNode.y = 30, e.InitParam()
                        }).start(), this.scheduleOnce(function() {
                            i.OpenBottomPalisade(I - .2)
                        }, .85)
                    }
                }, t.prototype.SetMiddleContent = function() {
                    var e = this;
                    if (this.LegendNode.active = this._stageId == this._activityConfig.__Stages[l.Grade1].Id, this.CommonScrollView.node.active = this._stageId != this._activityConfig.__Stages[l.Grade1].Id, this.MyHeadNode.active = this._stageId > this._activityConfig.__Stages[l.Grade2].Id, this._stageId == this._activityConfig.__Stages[l.Grade1].Id ? this.SetLegendNode() : this.SetCommonGrade(), this._stageId > this._activityConfig.__Stages[l.Grade2].Id) {
                        var t = this._shipComponents.find(function(t) {
                            return t.node.name == "1_" + e._groupId
                        });
                        t && (this.MyHeadNode.parent = t.node, this.MyHeadNode.y = 30)
                    }
                    this.CheckOutHeadNode(), this.CheckOutHeadNodeLegend()
                }, t.prototype.SetLegendNode = function() {
                    this._legendComponents.length ? this.SetLegendNodeItems() : c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CloudsTurnPanel.Path, this.SetLegendNodeItems.bind(this))
                }, t.prototype.SetLegendNodeItems = function() {
                    this._rankRes && !this._needRefreshTarget ? this.SetLegendByRankData() : this.RefreshLegendData()
                }, t.prototype.RefreshLegendData = function() {
                    var e = this,
                        t = new u.Req_Activity_ChampionshipRank;
                    t.ActivityId = this._activityConfig._id, t.Type = p.RankRange.AllZone, d.RpcComponent.Instance.Call(t, function(t) {
                        e._rankRes = t, e._needRefreshTarget = !1, e.SetLegendByRankData()
                    })
                }, t.prototype.SetLegendByRankData = function() {
                    this.LegendTopNode.active = !0, this.LegendBottomNode.active = !0;
                    for (var e = 0; e < 3; e++) {
                        var t = this._rankRes.Rows[e],
                            n = {};
                        n.ActivityConfig = this._activityConfig, n.HeadPrefab = this._headPrefab, n.PlayerInfo = t.PlayerInfo, n.ShowType = v.GlobalChampionPlayerShowType.NoPower, n.Rank = e + 1, n.Score = 0, n.IsLengend = !0, n.MyRank = this._curRank, n.Zone = t.Zone, this.LegendTopThreeNodes[e].getComponent(v.default).Init(n)
                    }
                    var o = 0;
                    for (e = 3; e < this._rankRes.Rows.length; e += 2) {
                        var r = this._rankRes.Rows[e],
                            i = this._rankRes.Rows[e + 1];
                        if (!this._legendComponents[o]) {
                            var a = cc.instantiate(this._legendPrefab);
                            a.parent = this.LegendContent, this._legendComponents[o] = a.getComponent(L.default)
                        }
                        var s = {};
                        s.ActivityConfig = this._activityConfig, s.HeadPrefab = this._headPrefab, s.ShowType = v.GlobalChampionPlayerShowType.NoPower, s.MyRank = this._curRank, r && (s.LeftRankRowData = r, s.LeftRankId = e + 1), i && (s.RightRankRowData = i, s.RightRankId = e + 2), this._legendComponents[o].Init(s), o++
                    }
                    this.LegendContent.getComponent(cc.Layout).updateLayout(), this.LegendScrollCotent.updateLayout(), c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_CHECK_CHAMPIONLEGEND_BUNDINGBOX, this._nodeViewRectLegend), O.default.SetCondition()
                }, t.prototype.SetCommonGradeNode = function() {
                    var e = this;
                    if (!this._shipComponents) {
                        var t = [],
                            n = A.default.GetGradeToStages(this._activityConfig),
                            o = A.default.GetStageToStage2s(this._activityConfig);
                        this._activityConfig.__Stages.forEach(function(e, r) {
                            r > l.Grade2 && n[e.Id].forEach(function(e) {
                                t = t.concat(o[e.Id])
                            })
                        }), this._shipComponents = [], this._shipGradeComponents = [];
                        var r = 0,
                            i = 0;
                        t.forEach(function(t, n) {
                            if (t.Stage2 != r) {
                                e._shipGradeComponents[i] || ((a = cc.instantiate(e._shipGradePrefab)).parent = e.CommonContent, a.name = "2_" + t.Stage2, e._shipGradeComponents[i] = a.getComponent(S.default)), r = t.Stage2;
                                var o = {};
                                o.ActivityConfig = e._activityConfig, o.Atlas = e._atlas, o.Stage2Id = t.Stage2, o.CurGroupId = e._groupId, e._shipGradeComponents[i].Init(o), i++
                            }
                            var a;
                            e._shipComponents[n] || ((a = cc.instantiate(e._shipPrefab)).parent = e.CommonContent, a.name = "1_" + t.Id, e._shipComponents[n] = a.getComponent(b.default));
                            var s = {};
                            s.ActivityConfig = e._activityConfig, s.GroupConfig = t, s.HeadPrefab = e._headPrefab, s.PlayerCount = e._playerConutMap[t.Id] || 0, s.CurGroupId = e._groupId, s.MyScore = e._curScore, s.MapAtlas = e._mapAtlas, e._shipComponents[n].Init(s)
                        }), this.CommonContent.getComponent(cc.Layout).updateLayout(), this._stageId >= this._activityConfig.__Stages[l.Grade2].Id && (c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_CHECK_BUNDINGBOX, this._nodeViewRect), this.OnClickOutHeadNode())
                    }
                }, t.prototype.SetCommonGrade = function() {
                    var e = this;
                    this.SetRefreshTime(), this.GreatMonsterPosNodes.forEach(function(t) {
                        t.active = e._stageId == e._activityConfig.__Stages[l.Grade2].Id
                    }), this.BubbleNodes.forEach(function(t) {
                        t.active = e._stageId == e._activityConfig.__Stages[l.Grade2].Id
                    }), this.GreatMonsterCupLabel.string = this._activityConfig.__Groups[l.Grade2].Score.toString(), this._stageId == this._activityConfig.__Stages[l.Grade2].Id && (this._targetRes && !this._needRefreshTarget || this.RefreshGreatMonsterTarget()), this.SetCommonGradeNode()
                }, t.prototype.RefreshGreatMonsterTarget = function() {
                    var e = this,
                        t = w.default.Instance.ComputeDeadTime(this._activityConfig.Common);
                    if (d.RpcComponent.Instance.ServerTime >= t) this.GreatMonsterPosNodes.forEach(function(e) {
                        e.active = !1
                    });
                    else {
                        var n = new u.Req_Activity_ChampionshipTarget;
                        n.ActivityId = this._activityConfig._id, d.RpcComponent.Instance.Call(n, function(t) {
                            e._targetRes = t, e._needRefreshTarget = !1;
                            for (var n = 0; n < e.GreatMonsterPosNodes.length; n++) e.GreatMonsterPosNodes[n].active = n < t.Infos.length;
                            t.Infos.forEach(function(t, n) {
                                var o = {};
                                o.ActivityConfig = e._activityConfig, o.HeadPrefab = e._headPrefab, o.PlayerInfo = t, o.ShowType = v.GlobalChampionPlayerShowType.Power, o.IsLengend = !1, o.MyRank = e._curRank, o.Zone = t.Zone, t.Value1 > 0 ? (o.Rank = 0, o.Score = t.Value1) : (o.Rank = Math.abs(t.Value1), o.Score = 0), e.GreatMonsterPosNodes[n].getComponent(v.default).Init(o)
                            })
                        })
                    }
                }, t.prototype.SetRefreshTime = function() {
                    if (this._stageId == this._activityConfig.__Stages[l.Grade2].Id) {
                        this.RefreshButton.node.active = !0;
                        var e = k.default.GetItem(k.GameRecordDefine.ChampionShipRefresh);
                        !e || Number(e) + this._activityConfig.CustomPart.Interval * p.Etc.SecondDuration <= d.RpcComponent.Instance.ServerTime ? (this._nextRefreshTime = 0, this.CountDown()) : (this._nextRefreshTime = Number(e) + this._activityConfig.CustomPart.Interval * p.Etc.SecondDuration, this.unschedule(this.CountDown), this.CountDown(), this.schedule(this.CountDown, 1))
                    } else this.RefreshButton.node.active = !1
                }, t.prototype.CountDown = function() {
                    var e = this._nextRefreshTime - d.RpcComponent.Instance.ServerTime;
                    if (e < 0) this.RefreshLabel.string = "championShip_refresh".ToUILocale(), this.unschedule(this.CountDown);
                    else {
                        var t = w.default.ActivityTimeLeftFormat(e);
                        this.RefreshLabel.string = "championShip_refresh_time".ToUILocale().Fmt(t)
                    }
                }, t.prototype.OnClickProgressItem = function(e) {
                    if (e == this._activityConfig.__Stages[l.Grade1].Id) this.LegendNode.active = !0, this.CommonScrollView.node.active = !1, this.OutHeadNode.active = !1, this.SetLegendNode(), this.CheckOutHeadNodeLegend();
                    else {
                        if (this.LegendNode.active = !1, this.CommonScrollView.node.active = !0, this.OutHeadNodeLegend.active = !1, this.SetCommonGrade(), e == this._activityConfig.__Stages[l.Grade2].Id) this.CommonScrollView.scrollToOffset(cc.v2({
                            y: 250
                        }), .2);
                        else {
                            for (var t = void 0, n = this._shipComponents.length - 1; n >= 0; n--) {
                                var o = this._shipComponents[n].node.name.split("_"),
                                    r = Number(o[1]),
                                    i = A.default.GetGroupIdToStage2Map(this._activityConfig)[r].Stage;
                                if (e == i) {
                                    t = this._shipComponents[n];
                                    break
                                }
                            }
                            t && this.CommonScrollView.scrollToOffset(cc.v2({
                                y: -t.node.y - 800
                            }), .2)
                        }
                        this.CheckOutHeadNode()
                    }
                    this._progressItems.forEach(function(t) {
                        t.SetSelect(Number(t.node.name) == e)
                    })
                }, t.prototype.OnRankButtonClick = function() {
                    var e = this,
                        t = new u.Req_Activity_ChampionshipRank;
                    t.ActivityId = this._activityConfig._id, t.Type = p.RankRange.Zone, _.RpcComponent.Instance.Call(t, function(t) {
                        var n;
                        e._rankRes ? ((n = {}).ActivityId = e._activityConfig._id, n.Title = "bossWar_rank_name".ToUILocale().Fmt(e._activityConfig.Common.Title), n.RankDatas = [t, e._rankRes], n.ToggleDatas = [{
                            ToggleLabel: "rank_bottom_toggle_1".ToUILocale(),
                            ToggleIcon: "GlobalChampionShipPanel/PNG/GlobalChampionShip/rank_zone"
                        }, {
                            ToggleLabel: "rank_bottom_toggle_3".ToUILocale(),
                            ToggleIcon: "GlobalChampionShipPanel/PNG/GlobalChampionShip/rank_allZone"
                        }], c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonActivityRankPanel.Path, n)) : ((n = {}).ActivityId = e._activityConfig._id, n.Title = "bossWar_rank_name".ToUILocale().Fmt(e._activityConfig.Common.Title), n.RankDatas = [t, null], n.CallBacks = [null, e.ClickRankToggleCallBack.bind(e)], n.ToggleDatas = [{
                            ToggleLabel: "rank_bottom_toggle_1".ToUILocale(),
                            ToggleIcon: "GlobalChampionShipPanel/PNG/GlobalChampionShip/rank_zone"
                        }, {
                            ToggleLabel: "rank_bottom_toggle_3".ToUILocale(),
                            ToggleIcon: "GlobalChampionShipPanel/PNG/GlobalChampionShip/rank_allZone"
                        }], c.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonActivityRankPanel.Path, n))
                    })
                }, t.prototype.ClickRankToggleCallBack = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function() {
                            return [2, new Promise(function(t) {
                                var n = new u.Req_Activity_ChampionshipRank;
                                n.ActivityId = e._activityConfig._id, n.Type = p.RankRange.AllZone, d.RpcComponent.Instance.Call(n, function(e) {
                                    t(e)
                                })
                            })]
                        })
                    })
                }, t.prototype.OnReportButtonClick = function() {
                    var e = this;
                    if (this._curScore) {
                        var t = new u.Req_Activity_ChampionshipReports;
                        t.ActivityId = this._activityConfig._id, d.RpcComponent.Instance.Call(t, function(t) {
                            c.UIManager.Instance.ShowUIPanel(g.PanelConfig.GlobalChampionReportPanel.Path, t, e._activityConfig)
                        })
                    } else T.UIUtlity.ShowFloatingHint("championShip_not_join_game".ToUILocale())
                }, t.prototype.OnFormationButtonClick = function() {
                    this._groupId = n.GetCurGroupGradeId(this._curRank, this._curScore, this._activityConfig);
                    for (var e = A.default.GetGroupIdToStage2Map(this._activityConfig), t = A.default.GetStage2IdToStageMap(this._activityConfig)[e[this._groupId].Id], o = [], r = 0; r < t.Count; r++) o.push(this._activityConfig.CustomPart.MapId);
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattleFormationPanel.Path, this.OnSetFormation.bind(this), o, {
                        IsSaveFormationState: !0,
                        TeamNum: o.length,
                        ActivityId: this._activityConfig._id
                    })
                }, t.prototype.OnSetFormation = function(e) {
                    var t = new u.Req_Hero_SetFormation;
                    t.Formations = e, _.RpcComponent.Instance.Call(t, function() {
                        T.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale())
                    })
                }, t.prototype.OnRewardButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(g.PanelConfig.GlobalChampionRewardPanel.Path, this._activityConfig, !1, this)
                }, t.prototype.OnRefreshButtonClick = function() {
                    var e = k.default.GetItem(k.GameRecordDefine.ChampionShipRefresh);
                    e && Number(e) + this._activityConfig.CustomPart.Interval * p.Etc.SecondDuration > d.RpcComponent.Instance.ServerTime ? T.UIUtlity.ShowFloatingHint("championShip_refresh_coolDown".ToUILocale()) : (k.default.SetItem(k.GameRecordDefine.ChampionShipRefresh, d.RpcComponent.Instance.ServerTime.toString()), this.SetRefreshTime(), this.RefreshGreatMonsterTarget())
                }, t.prototype.OnSureButtonClick = function() {
                    this.EffectPageNode.active = !1, this.MoveMyPosNode()
                }, t.prototype.OnClickOutHeadNode = function() {
                    var e = this.GetCurGroupComponent();
                    e ? this.CommonScrollView.scrollToOffset(cc.v2({
                        y: -e.node.y - 800
                    }), .2) : this.CommonScrollView.scrollToOffset(cc.v2({
                        y: 250
                    }), .2), this.OutHeadNode.active = !1
                }, t.prototype.OnClickOutHeadNodeLegend = function() {
                    var e = this.GetCurLegendPlayerComp();
                    if (e) {
                        var t = e.node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            n = this.LegendScrollCotent.node.convertToNodeSpaceAR(t);
                        this.LegendScrollView.scrollToOffset(cc.v2({
                            y: -n.y - 800
                        }), .2)
                    } else this.LegendScrollView.scrollToOffset(cc.v2({
                        y: 0
                    }), .2);
                    this.OutHeadNodeLegend.active = !1
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "championShip_rule_title".ToUILocale(),
                        titles: ["championShip_rule_title".ToUILocale()],
                        contents: ["championShip_rule_content".ToUILocale()]
                    };
                    T.UIUtlity.ShowRulePanel(e)
                }, t.prototype.GetCurGroupComponent = function() {
                    for (var e, t = this._shipComponents.length - 1; t >= 0; t--) {
                        var n = this._shipComponents[t].node.name.split("_");
                        if (1 == Number(n[0]) && Number(n[1]) == this._groupId) {
                            e = this._shipComponents[t];
                            break
                        }
                    }
                    return e
                }, t.prototype.CheckOutHeadNode = function() {
                    var e = 0;
                    if (this._stageId > this._activityConfig.__Stages[l.Grade1].Id)
                        if (this._stageId == this._activityConfig.__Stages[l.Grade2].Id) Math.abs(this.CommonScrollView.getScrollOffset().y) > this.GreatMonsterNode.height && (e = 1);
                        else {
                            var t = this.GetCurGroupComponent();
                            if (t) {
                                var n = t.node.convertToWorldSpaceAR(cc.v2(0, 0)),
                                    o = this.CommonScrollView.node.convertToNodeSpaceAR(n);
                                o.y > t.node.height / 2 ? e = 1 : o.y < -this.CommonScrollView.node.height - t.node.height / 2 && (e = -1)
                            }
                        } this.OutHeadNode.active = 0 != e && !this.LegendNode.active, this.OutHeadNode.active && (this.Arrow.y = 1 == e ? 88 : -88, this.Arrow.scaleY = 1 == e ? -1 : 1, this.OutHeadNode.y = 1 == e ? this.node.height / 2 - 262 : 262 - this.node.height / 2)
                }, t.prototype.CheckOutHeadNodeLegend = function() {
                    var e = 0;
                    if (this._stageId == this._activityConfig.__Stages[l.Grade1].Id && this._curRank > 0) {
                        var t = this.GetCurLegendPlayerComp();
                        if (t) {
                            var n = t.node.convertToWorldSpaceAR(cc.v2(0, 0)),
                                o = this.LegendScrollView.node.convertToNodeSpaceAR(n);
                            o.y > t.node.height / 2 ? e = 1 : o.y < -this.LegendScrollView.node.height - t.node.height / 2 && (e = -1)
                        }
                    }
                    this.OutHeadNodeLegend.active = 0 != e && this.LegendNode.active, this.OutHeadNodeLegend.active && (this.ArrowLegend.y = 1 == e ? 88 : -88, this.ArrowLegend.scaleY = 1 == e ? -1 : 1, this.OutHeadNodeLegend.y = 1 == e ? this.node.height / 2 - 262 : 262 - this.node.height / 2)
                }, t.prototype.GetCurLegendPlayerComp = function() {
                    var e;
                    if (this._curRank < 4) e = this.LegendTopThreeNodes[this._curRank - 1].getComponent(v.default);
                    else
                        for (var t = 0; t < this._legendComponents.length; t++) {
                            var n = this._legendComponents[t];
                            if (n.LegendData && n.LegendData.LeftRankRowData && n.LegendData.LeftRankId == this._curRank) {
                                e = n.LeftGlobalChampionPlayerComponent;
                                break
                            }
                            if (n.LegendData && n.LegendData.RightRankRowData && n.LegendData.RightRankId == this._curRank) {
                                e = n.RightGlobalChampionPlayerComponent;
                                break
                            }
                        }
                    return e
                }, t.prototype.OnScrolling = function() {
                    this.CheckOutHeadNode(), c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_CHECK_BUNDINGBOX, this._nodeViewRect)
                }, t.prototype.OnLegendScrollViewScrolling = function() {
                    this.CheckOutHeadNodeLegend(), c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_CHECK_CHAMPIONLEGEND_BUNDINGBOX, this._nodeViewRectLegend)
                }, t.prototype.OnReturnButtonClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.CheckNeedSetFormation = function(e, t, o) {
                    for (var r = n.GetCurGroupGradeId(t, o, e), i = A.default.GetGroupIdToStage2Map(e), a = A.default.GetStage2IdToStageMap(e)[i[r].Id], s = d.ConfigDataComponent.Instance.GetConfigById(h.MapBase_Config, e.CustomPart.MapId), l = d.ConfigDataComponent.Instance.GetConfigById(h.MapType_Config, s.Type), c = 0; c < a.Count; c++)
                        if (l.AttackerFormation[c]) {
                            var p = d.DataCenter.Instance.GetDataById(u.UserFormation_Model, l.AttackerFormation[c]);
                            if (!p) return !0;
                            for (var f = !1, y = 0; y < p.HeroIds.length; y++)
                                if (p.HeroIds[y] > 0) {
                                    f = !0;
                                    break
                                } if (!f) return !0
                        } return !1
                }, t.InitBattle = function() {
                    var e = p.MapType.ActChampionship;
                    c.Game.EventDispatcher.Only(p.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), c.Game.EventDispatcher.Only(p.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), c.Game.EventDispatcher.Only(p.GameEventIds.SettleAllBattle.Fmt(e), n.SettleFunction, n), c.Game.EventDispatcher.Only(p.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.StartBattle = function(e) {
                    void 0 === e && (e = !1), n.NextBattleIndex = 0;
                    var t, o = n.GetNextBattleReport(),
                        r = {
                            Reports: [o],
                            Players: [],
                            ExtraParam: t = {
                                DontCloseOnEnd: !0,
                                CanSwitchSpeed: !0,
                                CanSkipPlay: !0,
                                CanPlayInBackground: !e,
                                CanCanel: !1,
                                CanRestart: !1,
                                CanSkipAllPlay: !0
                            },
                            IsDouble: !1,
                            ActiveIndex: 0,
                            ViewPortIds: [],
                            InBackground: !1,
                            SettleParams: null
                        },
                        i = d.ConfigDataComponent.Instance.GetConfigById(h.MapBase_Config, r.Reports[0].MapId);
                    r.MapType = i.Type;
                    var a = 1;
                    n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                        e.Uid == d.DataCenter.Instance.Uid && (a = e.Camp)
                    }), c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, a, r, function() {
                        var r = m.BattleManager.Instance.StartPlay(o, t);
                        e && (r.SettleParams = [n.BattleInfo, n.BattleReports])
                    })
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.BattleInfo && n.NextBattleIndex < n.BattleReports.length && (e = n.BattleReports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.SettleBattle = function(e) {
                    var t = n.GetNextBattleReport();
                    if (t)
                        if (e.Reports[0] = t, e.InBackground) m.BattleManager.Instance.NextWave(e);
                        else {
                            var o = 1;
                            n.BattleReports.length > 0 && n.BattleReports[0].Players.forEach(function(e) {
                                e.Uid == d.DataCenter.Instance.Uid && (o = e.Camp)
                            }), c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, o, e, n.ShowNextBattle)
                        }
                    else n.SettleFunction(e)
                }, t.SettleFunction = function(e) {
                    if (e.InBackground || c.Game.EventDispatcher.Emit(p.GameEventIds.DelayCloseBattlePanel), delete y.BattleData.PlayingBattleDatas[p.MapType.ActChampionship], e.SettleParams) {
                        var t = "GlobalChampionShipPanel/Components/GlobalChampionSettlementComponent",
                            o = e.SettleParams[0],
                            r = d.DataCenter.Instance.Uid == o.AttackerInfo.Uid;
                        e.SettleParams[0] = o.IntParams, e.Reports = n.BattleReports, r == !!o.Result ? e.InBackground ? m.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result) : e.InBackground ? m.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementFailPanel.Path, t, e) : c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SettlementFailPanel.Path, t, e)
                    } else n.RequestActChampionShipSettlement(n.BattleReports, !1, e.InBackground);
                    m.BattleManager.Instance.CanShowBattleSettlePanel = !0
                }, t.RequestActChampionShipSettlement = function(e, t, n) {
                    void 0 === n && (n = !0);
                    var o = {
                            Reports: e,
                            MapType: p.MapType.ActChampionship
                        },
                        r = new u.Req_Map_BattleSettlement;
                    r.MapType = p.MapType.ActChampionship, _.RpcComponent.Instance.Call(r, function(e) {
                        o.SettleParams = [e.ExtraParam[0].Items];
                        var r = e.ExtraParam[0].Items[0];
                        if (d.DataCenter.Instance.ActivityConfigs[r]) {
                            var i = "GlobalChampionShipPanel/Components/GlobalChampionSettlementComponent";
                            1 == e.Result ? n ? m.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementWinPanel.Path, i, o, null, e.Result) : c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SettlementWinPanel.Path, i, o, null, e.Result) : n ? m.BattleManager.Instance.ShowSettlePanel(g.PanelConfig.SettlementFailPanel.Path, i, o) : c.UIManager.Instance.ShowUIPanel(g.PanelConfig.SettlementFailPanel.Path, i, o), t && delete y.BattleData.PlayingBattleDatas[p.MapType.ActChampionship], c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_CHAMPIONSHIP_REFRESHPANEL, e)
                        }
                    }, null)
                }, t.ShowNextBattle = function(e) {
                    m.BattleManager.Instance.NextWave(e)
                }, t.OnBattleSwitchToBackground = function() {
                    c.UIManager.Instance.QuitPanelStack(g.PanelConfig.GlobalChampionMainPanel.Path), c.UIManager.Instance.QuitPanelStack(g.PanelConfig.GlobalChampionShipPanel.Path)
                }, t.MoveSpeed = 600, t.BattleInfo = null, t.BattleReports = null, t.NextBattleIndex = 0, i([N(cc.Label)], t.prototype, "Title", void 0), i([N(cc.RichText)], t.prototype, "Time", void 0), i([N(f.default)], t.prototype, "CurrencyBarComponent", void 0), i([N(cc.Sprite)], t.prototype, "GradeSprite", void 0), i([N(cc.Label)], t.prototype, "GradeName", void 0), i([N(cc.Node)], t.prototype, "HeadContent", void 0), i([N(cc.Label)], t.prototype, "CupCount", void 0), i([N(cc.Node)], t.prototype, "RankInfoNode", void 0), i([N(cc.Label)], t.prototype, "RankDesc", void 0), i([N(cc.Label)], t.prototype, "Rank", void 0), i([N(M.default)], t.prototype, "ProgressBar", void 0), i([N(cc.Node)], t.prototype, "ProgressBarNode", void 0), i([N(cc.Node)], t.prototype, "LegendNode", void 0), i([N(cc.ScrollView)], t.prototype, "LegendScrollView", void 0), i([N(cc.Node)], t.prototype, "LegendTopThreeNodes", void 0), i([N(cc.Layout)], t.prototype, "LegendScrollCotent", void 0), i([N(cc.Node)], t.prototype, "LegendContent", void 0), i([N(cc.ScrollView)], t.prototype, "CommonScrollView", void 0), i([N(cc.Node)], t.prototype, "GreatMonsterNode", void 0), i([N(cc.Node)], t.prototype, "GreatMonsterPosNodes", void 0), i([N(cc.Node)], t.prototype, "CommonContent", void 0), i([N(cc.Button)], t.prototype, "RefreshButton", void 0), i([N(cc.Label)], t.prototype, "RefreshLabel", void 0), i([N(cc.Button)], t.prototype, "RewardButton", void 0), i([N(cc.Label)], t.prototype, "RewardLabel", void 0), i([N(cc.Button)], t.prototype, "FormationButton", void 0), i([N(cc.Label)], t.prototype, "FormationLabel", void 0), i([N(cc.Button)], t.prototype, "ReportButton", void 0), i([N(cc.Label)], t.prototype, "ReportLabel", void 0), i([N(cc.Button)], t.prototype, "RankButton", void 0), i([N(cc.Label)], t.prototype, "RankLabel", void 0), i([N(cc.Node)], t.prototype, "EffectPageNode", void 0), i([N(cc.Sprite)], t.prototype, "EffectGradeSprite", void 0), i([N(cc.Label)], t.prototype, "EffectGradeName", void 0), i([N(cc.Button)], t.prototype, "ReturnButton", void 0), i([N(cc.Node)], t.prototype, "MaskNode", void 0), i([N(cc.Button)], t.prototype, "SureButton", void 0), i([N(cc.Label)], t.prototype, "SureLabel", void 0), i([N(cc.Node)], t.prototype, "MulitNode", void 0), i([N(sp.Skeleton)], t.prototype, "Spine", void 0), i([N(cc.Node)], t.prototype, "OutHeadNode", void 0), i([N(cc.Node)], t.prototype, "Arrow", void 0), i([N(cc.Sprite)], t.prototype, "MyHeadSprite", void 0), i([N(cc.Node)], t.prototype, "MyHeadNode", void 0), i([N(cc.Button)], t.prototype, "RuleButton", void 0), i([N(cc.Node)], t.prototype, "BubbleNodes", void 0), i([N(cc.Label)], t.prototype, "BubbleLabels", void 0), i([N(cc.Sprite)], t.prototype, "BubbleBgs", void 0), i([N(cc.Sprite)], t.prototype, "BubbleArrows", void 0), i([N(cc.Label)], t.prototype, "GreatMonsterCupLabel", void 0), i([N(cc.Node)], t.prototype, "OutHeadNodeLegend", void 0), i([N(cc.Node)], t.prototype, "ArrowLegend", void 0), i([N(cc.Sprite)], t.prototype, "MyHeadSpriteLegend", void 0), i([N(cc.Node)], t.prototype, "LegendTopNode", void 0), i([N(cc.Node)], t.prototype, "LegendBottomNode", void 0), n = i([B], t)
            }(c.BaseUIFullScreenPanel);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GlobalChampionLegendComponent": "GlobalChampionLegendComponent",
        "../Components/GlobalChampionPlayerComponent": "GlobalChampionPlayerComponent",
        "../Components/GlobalChampionShipComponent": "GlobalChampionShipComponent",
        "../Components/GlobalChampionShipGradeComponent": "GlobalChampionShipGradeComponent",
        "../Components/GlobalChampionShipProgressItem": "GlobalChampionShipProgressItem",
        "../Components/HeadComponent": "HeadComponent",
        "./CloudsTurnPanel": "CloudsTurnPanel",
        "./GlobalChampionMainPanel": "GlobalChampionMainPanel"
    }],
    GlobalChampionShipProgressItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6694caN4UBESLM1l6DnJ3U8", "GlobalChampionShipProgressItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Select = null, t.Icon = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on("click", this.OnSelfClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._gradeId = e, this._instance = n, this.Icon.spriteFrame = t.getSpriteFrame("cup" + e)
                }, t.prototype.SetSelect = function(e) {
                    this.Select.active = e, this.node.scale = e ? 1.425 : 1
                }, t.prototype.OnSelfClick = function() {
                    this._instance.OnClickProgressItem(this._gradeId)
                }, i([l(cc.Node)], t.prototype, "Select", void 0), i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    GlobalConfigComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3e086hqJY9D1b/L7fLfMpr7", "GlobalConfigComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
            return (o = Object.setPrototypeOf || {
                    __proto__: []
                }
                instanceof Array && function(e, t) {
                    e.__proto__ = t
                } || function(e, t) {
                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                })(e, t)
        }, function(e, t) {
            function n() {
                this.constructor = e
            }
            o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
        });
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GlobalConfigComponent = void 0;
        var i = e("../../../ThirdParty/Crypto/crypto-js"),
            a = e("../../Util/index"),
            s = e("../../Consts/Consts"),
            l = e("../UI/PreloadLocale/PreloadLocale"),
            c = e("../../../Proto/Static/RpcProto"),
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._PreloadLocale = null, t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return t._Instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "PreloadLocale", {
                    get: function() {
                        if (null == this._PreloadLocale) {
                            var e = null;
                            (e = l[this.Locale] || null) || (e = l[s.GameLocales.En]), this._PreloadLocale = e.locale
                        }
                        return this._PreloadLocale
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ServerAddress", {
                    get: function() {
                        return this.GetString("ServerAddress")
                    },
                    set: function(e) {
                        this.SetConfig("ServerAddress", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "CDNAddress", {
                    get: function() {
                        return this.GetString("CDNAddress")
                    },
                    set: function(e) {
                        this.SetConfig("CDNAddress", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Channel", {
                    get: function() {
                        return this.GetString("Channel")
                    },
                    set: function(e) {
                        this.SetConfig("Channel", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "UDID", {
                    get: function() {
                        return this.GetString("UDID")
                    },
                    set: function(e) {
                        this.SetConfig("UDID", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Locale", {
                    get: function() {
                        return this.GetString("Locale")
                    },
                    set: function(e) {
                        switch (this.Channel) {
                            case s.GameChannels.G123JP_WebMobile:
                                s.GameLocales.SUPPORT_LANGUAGETYPE_G123.indexOf(e) > -1 ? t.MultilangBundlePrefix = e.toUpperCase() : t.MultilangBundlePrefix = s.GameLocales.En.toUpperCase();
                                break;
                            default:
                                t.MultilangBundlePrefix = e.toUpperCase()
                        }
                        this.SetConfig("Locale", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.GetMultilangKey = function(e) {
                    return t.MultilangBundlePrefix + "/" + e
                }, Object.defineProperty(t.prototype, "ClientVersion", {
                    get: function() {
                        return this.GetString("ClientVersion")
                    },
                    set: function(e) {
                        this.SetConfig("ClientVersion", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "AssetVersion", {
                    get: function() {
                        return this.GetInt("AssetVersion")
                    },
                    set: function(e) {
                        this.SetConfig("AssetVersion", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "AssetUrl", {
                    get: function() {
                        return this.GetString("AssetUrl")
                    },
                    set: function(e) {
                        this.SetConfig("AssetUrl", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ConfigUrl", {
                    get: function() {
                        return this.GetString("ConfigUrl")
                    },
                    set: function(e) {
                        this.SetConfig("ConfigUrl", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "HeartbeatInterval", {
                    get: function() {
                        return this.GetInt("HeartbeatInterval")
                    },
                    set: function(e) {
                        this.SetConfig("HeartbeatInterval", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "IsDebug", {
                    get: function() {
                        return this.GetBool("IsDebug")
                    },
                    set: function(e) {
                        this.SetConfig("IsDebug", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "IsSDKTest", {
                    get: function() {
                        return this.GetBool("IsSDKTest")
                    },
                    set: function(e) {
                        this.SetConfig("IsSDKTest", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "UseEncrypt", {
                    get: function() {
                        return this.GetBool("UseEncrypt")
                    },
                    set: function(e) {
                        this.SetConfig("UseEncrypt", e)
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.GetString = function(e) {
                    var t = this._ConfigData.get(e);
                    return "string" != typeof t && (t = ""), t
                }, t.prototype.GetInt = function(e) {
                    var t = this._ConfigData.get(e);
                    return a.AppUtil.ToInt(t)
                }, t.prototype.GetFloat = function(e) {
                    var t = this._ConfigData.get(e);
                    return a.AppUtil.ToFloat(t)
                }, t.prototype.GetBool = function(e) {
                    return !!this._ConfigData.get(e)
                }, t.prototype.SetConfig = function(e, t) {
                    this._ConfigData.set(e, t)
                }, t.prototype.UnSetConfig = function(e) {
                    this._ConfigData.delete(e)
                }, t.prototype.CreateWebCommonParam = function(e) {
                    var t = new c.WebCommonParam;
                    return t.Channel = this.Channel, t.UDID = this.UDID, t.ClientVer = this.ClientVersion, t.Locale = this.Locale, t.Ts = a.TimeUtil.Now(), t.Sign = i.MD5(t.Channel + "::" + t.UDID + "::" + t.ClientVer + "::" + t.Ts + "::" + e).toString(), t
                }, t.prototype.Init = function() {
                    t._Instance = this, this._ConfigData = new Map, this.UDID = "Test-UDID", e.prototype.Init.call(this)
                }, t.prototype.Dispose = function() {
                    this.IsDisposed || (t._Instance = null, this._ConfigData = null, e.prototype.Dispose.call(this))
                }, t.prototype.EncryptStr = function(e, t) {
                    return i.AES.encrypt(e, t).toString()
                }, t.prototype.DecryptStr = function(e, t) {
                    return i.AES.decrypt(e, t).toString(i.enc.Utf8)
                }, t.CompName = "GlobalConfigComponent", t.MultilangBundlePrefix = "", t
            }(e("../../EZFramework/Base/Game").Component);
        n.GlobalConfigComponent = u, cc._RF.pop()
    }, {
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../../ThirdParty/Crypto/crypto-js": "crypto-js",
        "../../Consts/Consts": "Consts",
        "../../EZFramework/Base/Game": "Game",
        "../../Util/index": "index",
        "../UI/PreloadLocale/PreloadLocale": "PreloadLocale"
    }],
    GlobalDefine: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e58c5Z28UZPXKHn1FVyaK0Y", "GlobalDefine"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.PanelConfig = n.BundlePath = void 0;
        var o = e("../../Consts/Consts"),
            r = function() {
                function e() {}
                return e.CommonAtlas = "Common/common", e.CommonAtlas2 = "Common/common2", e.CommonAtlas3 = "Common/common3", e.CommonAtlas4 = "Common/common4", e.CommonAtlas5 = "Common/common5", e.MultilangAtlas4 = "Multilang/Multilang4", e.MultilangAtlas5 = "Multilang/Multilang5", e.MultilangAtlasHighSchool = "Multilang/Multilang6", e.HeroComponentAtlas = "Common/HeroComponent", e.ItemIcon = "ItemIcon", e.HeadIcon = "UserInfo/Icon", e.HeadFrame = "UserInfo/Frame", e.HeadTitle = "UserInfo/Title", e.HeroCardIcon = "HeroIcon/HeroCard", e.HeroHeadIcon = "HeroIcon/HeroHeader", e.SkillIcon = "SkillIcon", e.CountryAtlas = "PlayerCountrySelectionListPanel/NationalFlagPng/NationalFlagAtlas", e.PetCardIcon = "PetIcon/PetCard", e.PetHeadIcon = "PetIcon/PetHeader", e.AngelCardIcon = "AngelIcon/AngelCard", e.AngelHeadIcon = "AngelIcon/AngelHeader", e.HeroAttrIconAtlas = "Common/HeroAttrIcon", e.MultilangSinglePng = "MultilangSinglePng", e.MultilangSinglePng2 = "MultilangSinglePng2", e.BubbleComponent = "ItemsComponent/BubbleComponent", e.BubbleComponent2 = "ItemsComponent/BubbleComponent2", e.CurrencyBarComponent = "ItemsComponent/CurrencyBarItem", e.ItemComponent = "ItemsComponent/ItemComponent", e.HeroFavorItemComponent = "ItemsComponent/HeroFavorItem", e.HeadComponent = "ItemsComponent/HeadComponent", e.HeroCardComponent = "ItemsComponent/HeroCardComponent", e.LevelComponent = "ItemsComponent/LevelComponent", e.DisplayRewardsComponent = "ItemsComponent/DisplayRewardsComponent", e.SkillItemComponent = "ItemsComponent/SkillItemComponent", e.HandbookComponent = "ItemsComponent/HandbookComponent", e.RED_DOT_PREFAB = "Common/RedDot", e.ICON_BUTTON = "Buttons/IconBtn", e.ICON_TIME_BUTTON = "Buttons/IconTimeBtn", e.HANDBOOK_BORDER_BG = "HeroIcon/HeroBgAndBorder/HeroBgAndBorder", e.HeroAttributeItem = "LabelsComponent/HeroAttributeItem", e.AngelCardComponent = "ItemsComponent/AngelCardComponent", e
            }();
        n.BundlePath = r;
        var i = function() {
            function e() {}
            return e.AccountPanel = {
                Id: 1004,
                Path: "LoginPanel/AccountPanel"
            }, e.LoginPanel = {
                Id: 1e3,
                Path: "LoginPanel/LoginPanel"
            }, e.AccountInfoPanel = {
                Id: 1005,
                Path: "LoginPanel/AccountInfoPanel"
            }, e.AgreementPanel = {
                Id: 1006,
                Path: "LoginPanel/AgreementPanel"
            }, e.RealNamePanel = {
                Id: 1007,
                Path: "LoginPanel/RealNamePanel"
            }, e.NPCDialog = {
                Id: 1001,
                Path: "GuidePanels/NPCDialog"
            }, e.GuideHintPanel = {
                Id: 1002,
                Path: "GuidePanels/GuideHintPanel"
            }, e.OffServicePanel = {
                Id: 1003,
                Path: "OffServicePanel/OffServicePanel"
            }, e.FloatingHint = {
                Id: 2e3,
                Path: "HintPanel/FloatingHint"
            }, e.HintPanel = {
                Id: 2001,
                Path: "HintPanel/HintPanel"
            }, e.DisplayRewardsPanel = {
                Id: 2002,
                Path: "HintPanel/DisplayRewardsPanel"
            }, e.MaskPanel = {
                Id: 2003,
                Path: "MaskPanel/MaskPanel"
            }, e.CommonTips = {
                Id: 2004,
                Path: "CommonTipsPanel/CommonTips"
            }, e.DrawAgainRewardsPanel = {
                Id: 2005,
                Path: "DrawAgainRewardsPanel/DrawAgainRewardsPanel"
            }, e.ItemTipPanel = {
                Id: 2006,
                Path: "ItemTipsPanel/ItemTipsPanel"
            }, e.BubblePanel = {
                Id: 2007,
                Path: "HintPanel/BubblePanel"
            }, e.TaskBubble = {
                Id: 2008,
                Path: "TaskBubblePanel/TaskBubblePanel"
            }, e.LuckyCharmSkillTip = {
                Id: 2009,
                Path: "ItemTipsPanel/LuckyCharmSkillTipsPanel"
            }, e.LuckyCharmTipsPanel = {
                Id: 2010,
                Path: "ItemTipsPanel/LuckyCharmTipsPanel"
            }, e.MiraculousEquipTipPanel = {
                Id: 2012,
                Path: "ItemTipsPanel/MiraculousEquipTip"
            }, e.SkillTipsPanel = {
                Id: 2013,
                Path: "ItemTipsPanel/SkillTipsPanel"
            }, e.ItemGetWayPanel = {
                Id: 2014,
                Path: "ItemGetWayPanel/ItemGetWayPanel"
            }, e.CurrencyDiscountPanel = {
                Id: 2016,
                Path: "CurrencyDiscountPanel/CurrencyDiscountPanel"
            }, e.UpgradePanel = {
                Id: 2017,
                Path: "HintPanel/UpgradePanel"
            }, e.WorldLevelBubblePanel = {
                Id: 2018,
                Path: "HintPanel/WorldLevelBubblePanel"
            }, e.MainScenePanel = {
                Id: 3e3,
                Path: "MainPanel/MainScenePanel"
            }, e.MainUIPanel = {
                Id: 3001,
                Path: "MainPanel/MainUIPanel"
            }, e.MailPanel = {
                Id: 3002,
                Path: "MailPanel/MailUIPanel"
            }, e.ShopPanel = {
                Id: 3003,
                Path: "ShopPanel/ShopUIPanel"
            }, e.MailContent = {
                Id: 3005,
                Path: "MailPanel/MailContent"
            }, e.BagPanel = {
                Id: 3006,
                Path: "BagPanel/BagPanel"
            }, e.LuckyWheelPanel = {
                Id: 3007,
                Path: "LuckyWheelPanel/LuckyWheelPanel"
            }, e.HeroListPanel = {
                Id: 3008,
                Path: "HeroListPanel/HeroListPanel"
            }, e.RatePanel = {
                Id: 3009,
                Path: "HintPanel/RatePanel"
            }, e.RulePanel = {
                Id: 3010,
                Path: "RulePanel/RulePanel"
            }, e.HeroPalacePanel = {
                Id: 3011,
                Path: "HeroPalacePanel/HeroPalacePanel"
            }, e.HeroResolvePreviewPanel = {
                Id: 3012,
                Path: "HeroResolvePreviewPanel/HeroResolvePreviewPanel"
            }, e.DailyInstancePanel = {
                Id: 3013,
                Path: "DailyInstancePanel/DailyInstancePanel"
            }, e.StephTestPanel = {
                Id: 7e3,
                Path: "StephTestPanel/StephTestPanel"
            }, e.FightWinPanel = {
                Id: 3014,
                Path: "FightWinPanel/FightWinPanel"
            }, e.FightFailPanel = {
                Id: 3015,
                Path: "FightFailPanel/FightFailPanel"
            }, e.ClimbTowerEntrancePanel = {
                Id: 3016,
                Path: "ClimbTowerPanel/ClimbTowerEntrancePanel"
            }, e.ClimbTowerPanel = {
                Id: 3017,
                Path: "ClimbTowerPanel/ClimbTowerPanel"
            }, e.ClimbTowerLevelInfoPanel = {
                Id: 3018,
                Path: "ClimbTowerPanel/ClimbTowerLevelInfoPanel"
            }, e.ClimbTowerSpecialRewardPanel = {
                Id: 3019,
                Path: "ClimbTowerPanel/ClimbTowerSpecialRewardPanel"
            }, e.ClimbTowerRewardPanel = {
                Id: 3020,
                Path: "ClimbTowerPanel/ClimbTowerRewardPanel"
            }, e.ElementScripturePanel = {
                Id: 3021,
                Path: "ClimbTowerPanel/ElementScripturePanel"
            }, e.ActivePrivilegePanel = {
                Id: 3022,
                Path: "ActivePrivilegePanel/ActivePrivilegePanel"
            }, e.MallFundPreviewPanel = {
                Id: 3023,
                Path: "ActivePrivilegePanel/MallFundPreviewPanel"
            }, e.OracleShopPanel = {
                Id: 3024,
                Path: "ElementSummonPanel/OracleShopPanel"
            }, e.HeroRandomReplacePanel = {
                Id: 3025,
                Path: "ElementSummonPanel/HeroRandomReplacePanel"
            }, e.SummonRatePanel = {
                Id: 3026,
                Path: "SummonHeroPanel/SummonRatePanel"
            }, e.OracleExchangePanel = {
                Id: 3027,
                Path: "ElementSummonPanel/OracleExchangePanel"
            }, e.ItemInfoPanel = {
                Id: 3028,
                Path: "ItemInfoPanel/ItemInfoPanel"
            }, e.FriendsPanel = {
                Id: 3029,
                Path: "FriendsPanel/FriendsPanel"
            }, e.FriendsManagePanel = {
                Id: 3030,
                Path: "FriendsPanel/FriendsManagePanel"
            }, e.PlayerInfoPanel = {
                Id: 3031,
                Path: "PlayerInfoPanel/PlayerInfoPanel"
            }, e.SummonHeroPanel = {
                Id: 3032,
                Path: "SummonHeroPanel/SummonHeroPanel"
            }, e.SummonResultPanel = {
                Id: 3033,
                Path: "QueenSummonPanel/SummonResultPanel"
            }, e.BuyAndSellItemPanel = {
                Id: 3034,
                Path: "BuyAndSellItemPanel/BuyAndSellItemPanel"
            }, e.IdleBattleMainPanel = {
                Id: 3035,
                Path: "IdleBattlePanel/IdleBattleMainPanel"
            }, e.IdleBattleDetailPanel = {
                Id: 3036,
                Path: "IdleBattlePanel/IdleBattleDetailPanel"
            }, e.QuickBattlePanel = {
                Id: 3037,
                Path: "IdleBattlePanel/QuickBattlePanel"
            }, e.PlayerLevelUpPanel = {
                Id: 3038,
                Path: "PlayerLevelUpPanel/PlayerLevelUpPanel"
            }, e.RankPanel = {
                Id: 3039,
                Path: "RankPanel/RankPanel"
            }, e.RankDetailPanel = {
                Id: 3040,
                Path: "RankPanel/RankDetailPanel"
            }, e.RankRewardPanel = {
                Id: 3041,
                Path: "RankPanel/RankRewardPanel"
            }, e.TaskPanel = {
                Id: 3042,
                Path: "TaskPanel/TaskPanel"
            }, e.IntelligencePanel = {
                Id: 3043,
                Path: "IntelligencePanel/IntelligencePanel"
            }, e.IntelligenceDispatchPanel = {
                Id: 3044,
                Path: "IntelligencePanel/IntelligenceDispatchPanel"
            }, e.StarTemplePanel = {
                Id: 3045,
                Path: "StarTemplePanel/StarTemplePanel"
            }, e.ResonanceHeroSelectPanel = {
                Id: 3046,
                Path: "StarTemplePanel/StarResonance/ResonanceHeroSelectPanel"
            }, e.ResonanceLevelUpPanel = {
                Id: 3047,
                Path: "StarTemplePanel/StarResonance/ResonanceLevelUpPanel"
            }, e.ResonanceRecoverHeroPanel = {
                Id: 3048,
                Path: "StarTemplePanel/StarResonance/ResonanceRecoverHeroPanel"
            }, e.ResonanceIdolLevelPanel = {
                Id: 3049,
                Path: "StarTemplePanel/StarResonance/ResonanceIdolLevelPanel"
            }, e.UnlockMaterialNotEnoughPanel = {
                Id: 3050,
                Path: "StarTemplePanel/StarResonance/UnlockMaterialNotEnoughPanel"
            }, e.SettlementWinPanel = {
                Id: 3051,
                Path: "SettlementPanel/WinPanel"
            }, e.SettlementFailPanel = {
                Id: 3052,
                Path: "SettlementPanel/FailPanel"
            }, e.HolyStatueReceiveEngeryPanel = {
                Id: 3053,
                Path: "StarTemplePanel/StarHolyStatue/HolyStatueReceiveEngeryPanel"
            }, e.StarGemPanel = {
                Id: 3054,
                Path: "StarTemplePanel/StarHolyStatue/StarGemPanel"
            }, e.StarPieceInfoPanel = {
                Id: 3055,
                Path: "StarTemplePanel/StarPiece/StarPieceInfoPanel"
            }, e.StarPieceOperatePanel = {
                Id: 3056,
                Path: "StarTemplePanel/StarPiece/StarPieceOperatePanel"
            }, e.StarOperateSuccessPanel = {
                Id: 3057,
                Path: "StarTemplePanel/StarPiece/StarOperateSuccessPanel"
            }, e.StarPieceHandBookPanel = {
                Id: 3058,
                Path: "StarTemplePanel/StarPiece/StarPieceHandBookPanel"
            }, e.StarPieceBagPanel = {
                Id: 3058,
                Path: "StarTemplePanel/StarPiece/StarPieceBagPanel"
            }, e.StarPieceFragmentTipsPanel = {
                Id: 3059,
                Path: "StarTemplePanel/StarPiece/StarPieceInfoPanel"
            }, e.AllianceTalentPanel = {
                Id: 3060,
                Path: "AllianceTalentPanel/AllianceTalentPanel"
            }, e.TalentActiveSuccessPanel = {
                Id: 3061,
                Path: "AllianceTalentPanel/ActiveSuccessPanel"
            }, e.AllianceResetHintPanel = {
                Id: 3061,
                Path: "AllianceTalentPanel/AllianceResetHintPanel"
            }, e.TalentAddationShowPanel = {
                Id: 3062,
                Path: "AllianceTalentPanel/AddationShowPanel"
            }, e.HolyAreaMainPanel = {
                Id: 3063,
                Path: "HolyAreaPanel/HolyAreaMainPanel"
            }, e.HolyAreaLevelListPanel = {
                Id: 3064,
                Path: "HolyAreaPanel/HolyAreaLevelListPanel"
            }, e.HolyAreaTreasuryPanel = {
                Id: 3065,
                Path: "HolyAreaPanel/HolyAreaTreasuryPanel"
            }, e.HolyAreaEnterHintPanel = {
                Id: 3066,
                Path: "HolyAreaPanel/HolyAreaEnterHintPanel"
            }, e.HolyAreaBattleStartPanel = {
                Id: 3067,
                Path: "HolyAreaPanel/HolyAreaBattleStartPanel"
            }, e.SelectRewardBoxPanel = {
                Id: 3069,
                Path: "SelectRewardBoxPanel/SelectRewardBoxPanel"
            }, e.PieceResolvePanel = {
                Id: 3070,
                Path: "PieceResolvePanel/PieceResolvePanel"
            }, e.PieceResolvePreviewPanel = {
                Id: 3071,
                Path: "PieceResolvePreviewPanel/PieceResolvePreviewPanel"
            }, e.ShowOffHeroPanel = {
                Id: 3072,
                Path: "ShowOffHeroPanel/ShowOffHeroPanel"
            }, e.PlayerSettingPanel = {
                Id: 3073,
                Path: "PlayerSettingPanel/PlayerSettingPanel"
            }, e.HeroDetailPanel = {
                Id: 3074,
                Path: "HeroDetailPanel/HeroDetailPanel"
            }, e.HeadPersonalisePanel = {
                Id: 3075,
                Path: "PlayerSettingPanel/HeadPersonalisePanel"
            }, e.PlayerNamingPanel = {
                Id: 3076,
                Path: "PlayerSettingPanel/PlayerNamingPanel"
            }, e.GiftCodePanel = {
                Id: 3077,
                Path: "PlayerSettingPanel/GiftCodePanel"
            }, e.PlayerFeedBackPanel = {
                Id: 3078,
                Path: "PlayerSettingPanel/PlayerFeedBackPanel"
            }, e.SendLogPanel = {
                Id: 3079,
                Path: "PlayerSettingPanel/SendLogPanel"
            }, e.SystemSettingPanel = {
                Id: 3080,
                Path: "PlayerSettingPanel/SystemSettingPanel"
            }, e.IWantStrongPanel = {
                Id: 3081,
                Path: "IWantStrongPanel/IWantStrongPanel"
            }, e.TriggerGiftMainPanel = {
                Id: 3091,
                Path: "TriggerGiftMainPanel/TriggerGiftMainPanel"
            }, e.TriggerGiftPanel = {
                Id: 3092,
                Path: "TriggerGiftMainPanel/TriggerGiftPanel"
            }, e.ServerSelectPanel = {
                Id: 3093,
                Path: "PlayerSettingPanel/ServerSelectPanel"
            }, e.MonsterTipsPanel = {
                Id: 3094,
                Path: "ItemTipsPanel/MonsterTipsPanel"
            }, e.CommonRatePanel = {
                Id: 3095,
                Path: "SummonHeroPanel/CommonRatePanel"
            }, e.FatePraySelectRewardPanel = {
                Id: 3096,
                Path: "OpenServerActivity/SubPanel/FatePraySelectRewardPanel"
            }, e.BattlePowerChangePanel = {
                Id: 3097,
                Path: "BattlePowerChangePanel/BattlePowerChangePanel"
            }, e.ShowOffAdultPicturePanel = {
                Id: 3098,
                Path: "ShowOffAdultPicturePanel/ShowOffAdultPicturePanel"
            }, e.ElementGiftShopPanel = {
                Id: 3099,
                Path: "ElementSummonPanel/ElementGiftShopPanel"
            }, e.CustomizeMainScenePanel = {
                Id: 3102,
                Path: "CustomizeMainScenePanel/CustomizeMainScenePanel"
            }, e.SortHeroRulePanel = {
                Id: 3103,
                Path: "HeroListPanel/SortHeroRulePanel"
            }, e.IdleBattleRewardsPanel = {
                Id: 3104,
                Path: "IdleBattlePanel/IdleBattleRewardsPanel"
            }, e.SortPetRulePanel = {
                Id: 3105,
                Path: "HeroListPanel/PetPanel/Components/SortPetRulePanel"
            }, e.PetInfoPanel = {
                Id: 3106,
                Path: "HeroPetPanel/PetInfoPanel"
            }, e.PetRebornPanel = {
                Id: 3107,
                Path: "HeroPetPanel/PetRebornPanel"
            }, e.SelectMaterialPetPanel = {
                Id: 3108,
                Path: "HeroPetPanel/SelectMaterialPetPanel"
            }, e.PetUpStarSucessPanel = {
                Id: 3109,
                Path: "HeroPetPanel/PetUpStarSucessPanel"
            }, e.PetChangePanel = {
                Id: 3110,
                Path: "HeroPetPanel/PetChangePanel"
            }, e.PetHandbookPanel = {
                Id: 3111,
                Path: "HeroPetPanel/PetHandbookPanel"
            }, e.PetHandbookInfoPanel = {
                Id: 3112,
                Path: "HeroPetPanel/PetHandbookInfoPanel"
            }, e.PetReplaceRatePanel = {
                Id: 3113,
                Path: "HeroPetPanel/PetReplaceRatePanel"
            }, e.QuickUpgradeStarPanel = {
                Id: 3114,
                Path: "HeroPalacePanel/QuickUpgradeStarPanel"
            }, e.StrongPathPanel = {
                Id: 3120,
                Path: "StrongPathPanel/StrongPathPanel"
            }, e.StrongPathActivePanel = {
                Id: 3121,
                Path: "StrongPathPanel/StrongPathActivePanel"
            }, e.StrongPathWishListPanel = {
                Id: 3122,
                Path: "StrongPathPanel/StrongPathWishListPanel"
            }, e.StrongPathWishListSelectHeroPanel = {
                Id: 3123,
                Path: "StrongPathPanel/StrongPathWishListSelectHeroPanel"
            }, e.StrongPathAttrAdditionPanel = {
                Id: 3124,
                Path: "StrongPathPanel/StrongPathAttrAdditionPanel"
            }, e.SeniorSummonRatePanel = {
                Id: 3125,
                Path: "StrongPathPanel/SeniorSummonRatePanel"
            }, e.HeroInfoPanel = {
                Id: 4e3,
                Path: "HeroInfoPanel/HeroInfoPanel"
            }, e.LevelUpConfirmPanel = {
                Id: 4001,
                Path: "HeroInfoPanel/LevelUpConfirmPanel"
            }, e.LevelUpHintPanel = {
                Id: 4002,
                Path: "HeroInfoPanel/LevelUpHintPanel"
            }, e.SelectMaterialHeroPanel = {
                Id: 4003,
                Path: "SelectMaterialHeroPanel/SelectMaterialHeroPanel"
            }, e.UpStarSucessPanel = {
                Id: 4004,
                Path: "HeroInfoPanel/UpStarSucessPanel"
            }, e.FormationPanel = {
                Id: 4005,
                Path: "FormationPanel/FormationPanel"
            }, e.SelectFormationTypePanel = {
                Id: 4006,
                Path: "FormationPanel/SelectFormationTypePanel"
            }, e.ElementPanel = {
                Id: 4007,
                Path: "FormationPanel/ElementPanel"
            }, e.EquipmentChangePanel = {
                Id: 4008,
                Path: "EquipmentPanel/EquipmentChangePanel"
            }, e.EquipAutoForgingPanel = {
                Id: 4009,
                Path: "EquipmentPanel/EquipAutoForgingPanel"
            }, e.EquipForgingPanel = {
                Id: 4010,
                Path: "EquipmentPanel/EquipForgingPanel"
            }, e.EquipHandbookPanel = {
                Id: 4011,
                Path: "EquipmentPanel/EquipHandbookPanel"
            }, e.HolyEquipmentInfoPanel = {
                Id: 4012,
                Path: "HolyEquipmentPanel/HolyEquipmentInfoPanel"
            }, e.SuitSkillActivePanel = {
                Id: 4013,
                Path: "HolyEquipmentPanel/SuitSkillActivePanel"
            }, e.HolyEquipmentDevelopPanel = {
                Id: 4014,
                Path: "HolyEquipmentPanel/HolyEquipmentDevelopPanel"
            }, e.HolyEquipmentUpStarPanel = {
                Id: 4015,
                Path: "HolyEquipmentPanel/HolyEquipmentUpStarPanel"
            }, e.HolyEquipUpStarSuccessPanel = {
                Id: 4016,
                Path: "HolyEquipmentPanel/HolyEquipUpStarSuccessPanel"
            }, e.HolyEquipBlessingUpLevelPanel = {
                Id: 4017,
                Path: "HolyEquipmentPanel/HolyEquipBlessingUpLevelPanel"
            }, e.HolyEquipBlessingChangePanel = {
                Id: 4018,
                Path: "HolyEquipmentPanel/HolyEquipBlessingChangePanel"
            }, e.HolyFurnacePanel = {
                Id: 4019,
                Path: "HolyFurnace/HolyFurnacePanel"
            }, e.HolyFurnaceSelectEquipHint = {
                Id: 4020,
                Path: "HolyFurnace/HolyFurnaceSelectEquipHint"
            }, e.HolyEquipmentBlessingHandbookPanel = {
                Id: 4021,
                Path: "HolyEquipmentPanel/HolyEquipmentBlessingHandbookPanel"
            }, e.HeroHandbookPanel = {
                Id: 4022,
                Path: "HeroInfoPanel/HandbookPanel"
            }, e.HeroRebornPanel = {
                Id: 4023,
                Path: "HeroInfoPanel/HeroRebornPanel"
            }, e.HeroAttributePanel = {
                Id: 4024,
                Path: "HeroInfoPanel/HeroAttributePanel"
            }, e.OffFormationPanel = {
                Id: 4025,
                Path: "SelectMaterialHeroPanel/OffFormationPanel"
            }, e.HolyEquipTipPanel = {
                Id: 4026,
                Path: "ItemTipsPanel/HolyEquipTipPanel"
            }, e.HeroInfoTipsPanel = {
                Id: 4027,
                Path: "HeroInfoPanel/HeroInfoTipsPanel"
            }, e.InfiniteTenResultPanel = {
                Id: 4028,
                Path: "QueenSummonPanel/InfiniteTenResultPanel"
            }, e.LetterFromDeveloperPanel = {
                Id: 4029,
                Path: "LetterFromDeveloperPanel/LetterFromDeveloperPanel"
            }, e.InfiniteJumpPanel = {
                Id: 4030,
                Path: "QueenSummonPanel/InfiniteJumpPanel"
            }, e.HeroShowStaticImagePanel = {
                Id: 4031,
                Path: "HeroInfoPanel/HeroShowStaticImagePanel"
            }, e.ChaosElementEffectPanel = {
                Id: 4032,
                Path: "HeroInfoPanel/ChaosElementEffectPanel"
            }, e.HeroDecomposeSettingPanel = {
                Id: 4033,
                Path: "QueenSummonPanel/HeroDecomposeSettingPanel"
            }, e.HolyEquipmentDisplacePanel = {
                Id: 4034,
                Path: "HolyEquipmentPanel/HolyEquipmentDisplacePanel"
            }, e.HolyEquipmentDisplaceListPanel = {
                Id: 4035,
                Path: "HolyEquipmentPanel/HolyEquipmentDisplaceListPanel"
            }, e.HeroChangePanel = {
                Id: 4036,
                Path: "HeroInfoPanel/HeroChangePanel"
            }, e.HeroAttrTipsPanel = {
                Id: 4037,
                Path: "HeroInfoPanel/HeroAttrTipsPanel"
            }, e.SelectMaterialDetailPanel = {
                Id: 4038,
                Path: "SelectMaterialHeroPanel/SelectMaterialDetailPanel"
            }, e.UpStarHeroMaterialsPanel = {
                Id: 4039,
                Path: "SelectMaterialHeroPanel/UpStarHeroMaterialsPanel"
            }, e.UpStarHeroMaterialSettingPanel = {
                Id: 4040,
                Path: "SelectMaterialHeroPanel/UpStarHeroMaterialSettingPanel"
            }, e.BattleScenePanel = {
                Id: 6e3,
                Path: "BattlePanel/BattleScenePanel"
            }, e.BattlePanel = {
                Id: 6001,
                Path: "BattleUI/BattlePanel"
            }, e.ArenaPanel = {
                Id: 6003,
                Path: "Arena/ArenaPanel"
            }, e.BattleFormationPanel = {
                Id: 6004,
                Path: "BattleFormationPanel/BattleFormationPanel"
            }, e.AllianceBaseMainPanel = {
                Id: 6010,
                Path: "AllianceBasePanel/AllianceBaseMainPanel"
            }, e.AllianceListPanel = {
                Id: 6011,
                Path: "AllianceBasePanel/AllianceListPanel"
            }, e.AllianceDetailPanel = {
                Id: 6012,
                Path: "AllianceBasePanel/AllianceDetailPanel"
            }, e.AllianceSetupPanel = {
                Id: 6013,
                Path: "AllianceBasePanel/AllianceSetupPanel"
            }, e.AllianceFlagSelectionPanel = {
                Id: 6014,
                Path: "AllianceBasePanel/AllianceFlagSelectionPanel"
            }, e.AllianceApplicationListPanel = {
                Id: 6015,
                Path: "AllianceBasePanel/AllianceApplicationListPanel"
            }, e.AllianceNamingPanel = {
                Id: 6016,
                Path: "AllianceBasePanel/AllianceNamingPanel"
            }, e.AllianceTestPanel = {
                Id: 6017,
                Path: "AllianceTestPanel/AllianceTestPanel",
                MapType: o.MapType.AllianceTest
            }, e.AllianceTestDetailHint = {
                Id: 6018,
                Path: "AllianceTestPanel/AllianceTestDetailHint"
            }, e.SplitRedRewardHint = {
                Id: 6019,
                Path: "AllianceTestPanel/SplitRedRewardHint"
            }, e.AllianceTestPassRewardHint = {
                Id: 6020,
                Path: "AllianceTestPanel/AllianceTestPassRewardHint"
            }, e.AllianceTestRankPanel = {
                Id: 6021,
                Path: "AllianceTestPanel/AllianceTestRankPanel"
            }, e.AllianceTestAfterChallengePanel = {
                Id: 6022,
                Path: "AllianceTestPanel/AllianceTestAfterChallengePanel"
            }, e.AllianceTreasurePanel = {
                Id: 6023,
                Path: "AllianceTreasurePanel/AllianceTreasurePanel"
            }, e.BattleStatisticsPanel = {
                Id: 6024,
                Path: "BattleStatisticsPanel/BattleStatisticsPanel"
            }, e.AllianceTestSplitRedListTip = {
                Id: 6025,
                Path: "AllianceTestPanel/AllianceTestSplitRedListTip"
            }, e.AllianceTestRedPacketPanel = {
                Id: 6026,
                Path: "AllianceTestPanel/AllianceTestRedPacketPanel"
            }, e.AllianceRedPacketPanel = {
                Id: 6027,
                Path: "AllianceRedPacketPanel/AllianceRedPacketPanel"
            }, e.AllianceRedPacketInfoPanel = {
                Id: 6028,
                Path: "AllianceRedPacketPanel/AllianceRedPacketInfoPanel"
            }, e.AllianceRedPacketTip = {
                Id: 6029,
                Path: "AllianceRedPacketPanel/AllianceRedPacketTip"
            }, e.AllianceMazePanel = {
                Id: 6030,
                Path: "AllianceMazePanel/AllianceMazePanel"
            }, e.AllianceMazeBattlePanel = {
                Id: 6031,
                Path: "AllianceMazePanel/AllianceMazeBattlePanel"
            }, e.AllianceMazeHolyPanel = {
                Id: 6032,
                Path: "AllianceMazePanel/AllianceMazeHolyPanel"
            }, e.AllianceMazeShowItemPanel = {
                Id: 6033,
                Path: "AllianceMazePanel/AllianceMazeShowItemPanel"
            }, e.AllianceMazeRewardPanel = {
                Id: 6034,
                Path: "AllianceMazePanel/AllianceMazeRewardPanel"
            }, e.AllianceMazeStrengthHintPanel = {
                Id: 6035,
                Path: "AllianceMazePanel/AllianceMazeStrengthHintPanel"
            }, e.AllianceMazeResourcePanel = {
                Id: 6036,
                Path: "AllianceMazePanel/AllianceMazeResourcePanel"
            }, e.AllianceMazeResourcePlayerInfoPanel = {
                Id: 6037,
                Path: "AllianceMazePanel/AllianceMazeResourcePlayerInfoPanel"
            }, e.AllianceTraderPanel = {
                Id: 6040,
                Path: "AllianceTraderPanel/AllianceTraderPanel"
            }, e.ChattingMainPanel = {
                Id: 6101,
                Path: "Chatting/ChattingPanel"
            }, e.ChattingPrivateContactListPanel = {
                Id: 6102,
                Path: "Chatting/ChattingPrivateContactListPanel"
            }, e.ChattingSettingPanel = {
                Id: 6103,
                Path: "Chatting/ChattingSettingPanel"
            }, e.CrossServerPortPanel = {
                Id: 6104,
                Path: "CrossServerPortPanel/CrossServerPortPanel"
            }, e.CrossServerLadderPanel = {
                Id: 6105,
                Path: "CrossServerPortPanel/CrossServerLadderPanel"
            }, e.CrossServerSpaceTimePanel = {
                Id: 6106,
                Path: "CrossServerPortPanel/CrossServerSpaceTimePanel"
            }, e.CrossServerHeroPalacePanel = {
                Id: 6107,
                Path: "CrossServerPortPanel/CrossServerHeroPalacePanel"
            }, e.ChalengePlayerInfoPanel = {
                Id: 6108,
                Path: "CrossServerPortPanel/ChalengePlayerInfoPanel"
            }, e.CrossServerBattleReportPanel = {
                Id: 6109,
                Path: "CrossServerPortPanel/CrossServerBattleReportPanel"
            }, e.AllianceProfilePanel = {
                Id: 6110,
                Path: "AllianceBasePanel/AllianceProfilePanel"
            }, e.RelicTreasureHuntPanel = {
                Id: 7001,
                Path: "RelicTreasureHuntPanel/RelicTreasureHuntPanel"
            }, e.RelicTreasureMachinePanel = {
                Id: 7002,
                Path: "RelicTreasureHuntPanel/LuckyMachineHint"
            }, e.RelicTreasureRemotePanel = {
                Id: 7003,
                Path: "RelicTreasureHuntPanel/RemoteDiceHint"
            }, e.RelicTreasureHieronPanel = {
                Id: 7004,
                Path: "RelicTreasureHuntPanel/TreasureHieronHint"
            }, e.RelicTreasureCompassPanel = {
                Id: 7005,
                Path: "RelicTreasureHuntPanel/RelicTreasureHuntCompass"
            }, e.RelicTreasureMerchantPanel = {
                Id: 7006,
                Path: "RelicTreasureHuntPanel/TravelingMerchantHint"
            }, e.RelicTreasureTravelingShopPanel = {
                Id: 7007,
                Path: "RelicTreasureHuntPanel/TravelingShopHint"
            }, e.RelicTreasureItemShown = {
                Id: 7008,
                Path: "RelicTreasureHuntPanel/Component/RelicTreasureItemShown"
            }, e.RelicTreasureDialogueShown = {
                Id: 7009,
                Path: "RelicTreasureHuntPanel/Component/RelicTreasureDialogueShown"
            }, e.RiskPort = {
                Id: 7010,
                Path: "RiskPort/RiskPortPanel"
            }, e.SaintsWarPanel = {
                Id: 7011,
                Path: "SaintsWarPanel/SaintsWarPanel"
            }, e.SaintsWarFormiationPanel = {
                Id: 7012,
                Path: "SaintsWarPanel/SaintsWarFormiationPanel"
            }, e.SaintsWarChallengePanel = {
                Id: 7013,
                Path: "SaintsWarPanel/SaintsWarChallengePanel"
            }, e.SecretAreaExplorePanel = {
                Id: 8001,
                Path: "SecretAreaExplorePanel/SecretAreaExplorePanel"
            }, e.SecretAreaGirlsListHint = {
                Id: 8002,
                Path: "SecretAreaExplorePanel/SecretAreaGirlsListHint"
            }, e.SecretAreaBattleArrayHint = {
                Id: 8003,
                Path: "SecretAreaExplorePanel/SecretAreaBattleArrayHint"
            }, e.SecretAreaInfoTip = {
                Id: 8004,
                Path: "SecretAreaExplorePanel/Component/InfoLogTips"
            }, e.SecretAreaUseTip = {
                Id: 8005,
                Path: "SecretAreaExplorePanel/Component/ItemUseTip"
            }, e.SecretJourneyEntrance = {
                Id: 8006,
                Path: "SecretJourney/SecretJourneyEntrance"
            }, e.SecretJourneyPanel = {
                Id: 8007,
                Path: "SecretJourney/SecretJourneyPanel"
            }, e.SecretMonsterInfoPanel = {
                Id: 8008,
                Path: "SecretJourney/SecretMonsterInfoPanel"
            }, e.SecretShopPanel = {
                Id: 8009,
                Path: "SecretJourney/SecretShopPanel"
            }, e.SeasonSecretJourneyPanel = {
                Id: 8020,
                Path: "SeasonSecretJourney/SeasonSecretJourneyPanel"
            }, e.SeasonSecretMythicEntrace = {
                Id: 8021,
                Path: "SeasonSecretJourney/SeasonSecretMythicEntrace"
            }, e.SeasonSecretMythicSelectItemPanel = {
                Id: 8022,
                Path: "SeasonSecretJourney/SeasonSecretMythicSelectItemPanel"
            }, e.SeasonSecretJourneyHintPanel = {
                Id: 8023,
                Path: "SeasonSecretJourney/SeasonSecretJourneyHintPanel"
            }, e.SeasonSecretJourneyHeroListPanel = {
                Id: 8024,
                Path: "SeasonSecretJourney/SeasonSecretJourneyHeroListPanel"
            }, e.SeasonWeaponUpHeroStarInfoPanel = {
                Id: 8025,
                Path: "SeasonSecretJourney/SeasonWeaponUpHeroStarInfoPanel"
            }, e.SeasonWeaponHeroSelectPanel = {
                Id: 8026,
                Path: "SeasonSecretJourney/SeasonWeaponHeroSelectPanel"
            }, e.SeasonWeaponOverviewPanel = {
                Id: 8027,
                Path: "SeasonSecretJourney/SeasonWeaponOverviewPanel"
            }, e.SeasonWeaponEntrySelectPanel = {
                Id: 8028,
                Path: "SeasonSecretJourney/SeasonWeaponEntrySelectPanel"
            }, e.SeasonWeaponEntryInfoPanel = {
                Id: 8029,
                Path: "SeasonSecretJourney/SeasonWeaponEntryInfoPanel"
            }, e.SelectLuckyCharmHint = {
                Id: 30001,
                Path: "LuckyCharms/SelectLuckyCharmHint"
            }, e.LuckyCharmInfoPanel = {
                Id: 30002,
                Path: "LuckyCharms/LuckyCharmInfoPanel"
            }, e.LuckyCharmComposePanel = {
                Id: 30003,
                Path: "LuckyCharms/LuckyCharmComposePanel"
            }, e.LuckyCharmComposeChooseHint = {
                Id: 30004,
                Path: "LuckyCharms/LuckyCharmComposeChooseHint"
            }, e.LuckyCharmRecastPanel = {
                Id: 30005,
                Path: "LuckyCharms/LuckyCharmRecastPanel"
            }, e.LuckyCharmSkillViewHint = {
                Id: 30006,
                Path: "LuckyCharms/LuckyCharmSkillViewHint"
            }, e.LuckyCharmSkillChooseHint = {
                Id: 30007,
                Path: "LuckyCharms/LuckyCharmSkillChooseHint"
            }, e.LuckyCharmSkillChooseViewHint = {
                Id: 30008,
                Path: "LuckyCharms/LuckyCharmSkillChooseViewHint"
            }, e.LuckyCharmSkillChangeTip = {
                Id: 30009,
                Path: "LuckyCharms/LuckyCharmSkillChangeTip"
            }, e.LuckyCharmComposeChestTip = {
                Id: 30010,
                Path: "LuckyCharms/LuckyCharmComposeChestTip"
            }, e.LuckyCharmComposeQueryHint = {
                Id: 30010,
                Path: "LuckyCharms/LuckyCharmComposeQueryHint"
            }, e.LuckyCharmBagPanel = {
                Id: 30011,
                Path: "LuckyCharms/LuckyCharmBagPanel"
            }, e.LuckyCharmUpgradeSuccessPanel = {
                Id: 30012,
                Path: "LuckyCharms/LuckyCharmUpgradeSuccessPanel"
            }, e.LuckyCharmUpgradePanel = {
                Id: 30012,
                Path: "LuckyCharms/LuckyCharmUpgradePanel"
            }, e.LuckyCharmOrigionSkillPanel = {
                Id: 30013,
                Path: "LuckyCharms/LuckyCharmOrigionSkillPanel"
            }, e.ChanceTestPanel = {
                Id: 9001,
                Path: "ChanceTestPanel/ChanceTestPanel"
            }, e.GuidePlotPanel = {
                Id: 9002,
                Path: "GuidePlotPanel/GuidePlotPanel"
            }, e.GuidePlotVideo = {
                Id: 9003,
                Path: "GuidePlotVideo/GuidePlotVideo"
            }, e.GameOPVideoPanel = {
                Id: 9004,
                Path: "GameOPVideo/GameOPVideoPanel"
            }, e.EndlessAbyssPanel = {
                Id: 10001,
                Path: "EndlessAbyssPanel/EndlessAbyssPanel"
            }, e.EndlessAbyssBuffChooseHint = {
                Id: 10002,
                Path: "EndlessAbyssPanel/EndlessAbyssBuffChooseHint"
            }, e.EndlessAbyssMyBuffHint = {
                Id: 10003,
                Path: "EndlessAbyssPanel/EndlessAbyssMyBuffHint"
            }, e.EndlessAbyssRankPanel = {
                Id: 10004,
                Path: "RankPanel/EndlessAbyssRankPanel"
            }, e.EndlessAbyssAwardHint = {
                Id: 10005,
                Path: "EndlessAbyssPanel/EndlessAbyssAwardHint"
            }, e.CloudsTurnPanel = {
                Id: 11001,
                Path: "CloudsTurnPanel/CloudsTurnPanel"
            }, e.MallActiveCommandPanel = {
                Id: 12002,
                Path: "MallActiveCommandPanel/MallActiveCommandPanel"
            }, e.MallDailyChoosePanel = {
                Id: 12004,
                Path: "MallDailyChoosePanel/MallDailyChoosePanel"
            }, e.MallElderGiftPackPanel = {
                Id: 12005,
                Path: "MallElderGiftPackPanel/MallElderGiftPackPanel"
            }, e.MallGrowFundPanel = {
                Id: 12006,
                Path: "MallGrowFundPanel/MallGrowFundPanel"
            }, e.MallPrivilegeGiftPanel = {
                Id: 12007,
                Path: "MallPrivilegeGiftPanel/MallPrivilegeBasePanel"
            }, e.MallSevenDayChargePanel = {
                Id: 12008,
                Path: "MallSevenDayChargePanel/MallSevenDayChargePanel"
            }, e.MallSuperFundPanel = {
                Id: 12009,
                Path: "MallSuperFundPanel/MallSuperFundPanel"
            }, e.MallDaysGiftPanel = {
                Id: 12010,
                Path: "MallDaysGiftPanel/MallDaysGiftPanel"
            }, e.MallSuperFundItemChooseHint = {
                Id: 12011,
                Path: "MallSuperFundPanel/MallSuperFundItemChooseHint"
            }, e.TimeLimitedActivityPanel = {
                Id: 12012,
                Path: "TimeLimitedActivityPanel/TimeLimitedActivityPanel"
            }, e.WeekCardPanel = {
                Id: 12013,
                Path: "TimeLimitedActivityPanel/ModuleWeekCard/WeekCardPanel"
            }, e.WishCallPanel = {
                Id: 12014,
                Path: "TimeLimitedActivityPanel/ModuleWishCall/WishCallPanel"
            }, e.WishCallProbabilityHint = {
                Id: 12015,
                Path: "TimeLimitedActivityPanel/ModuleWishCall/WishCallProbabilityHint"
            }, e.WishGiftPanel = {
                Id: 12016,
                Path: "TimeLimitedActivityPanel/ModuleWishCall/WishGiftPanel"
            }, e.WishHeroHint = {
                Id: 12017,
                Path: "TimeLimitedActivityPanel/ModuleWishCall/WishHeroHint"
            }, e.SevenDaysActiveWarTokenPanel = {
                Id: 12018,
                Path: "TimeLimitedActivityPanel/ModuleSevenDaysWarToken/LimitedActivitySevenDaysWarTokenPanel"
            }, e.SailPanel = {
                Id: 12019,
                Path: "TimeLimitedActivityPanel/ModuleSail/SailPanel"
            }, e.LimitTimePurchasePanel = {
                Id: 12020,
                Path: "OpenServerActivity/SubPanel/LimitTimePurchasePanel"
            }, e.LimitTimeTaskPanel = {
                Id: 12021,
                Path: "OpenServerActivity/SubPanel/LimitTimeTaskPanel"
            }, e.CarnivalPanel = {
                Id: 12022,
                Path: "OpenServerActivity/SubPanel/CarnivalPanel"
            }, e.HeroTestPanel = {
                Id: 12023,
                Path: "OpenServerActivity/SubPanel/HeroTestPanel",
                MapType: o.MapType.ActivityHeroTest
            }, e.ChallengeTaskPanel = {
                Id: 12024,
                Path: "OpenServerActivity/SubPanel/ChallengeTaskPanel"
            }, e.FatePrayPanel = {
                Id: 12025,
                Path: "OpenServerActivity/SubPanel/FatePrayPanel"
            }, e.DailyRewardPanel = {
                Id: 12026,
                Path: "OpenServerActivity/SubPanel/DailyRewardPanel"
            }, e.UpgradeStarPanel = {
                Id: 12027,
                Path: "UpgradeStarPanel/UpgradeStarPanel"
            }, e.EightDaysPanel = {
                Id: 12028,
                Path: "EightDaysPanel/EightDaysPanel"
            }, e.SailGiftPanel = {
                Id: 12029,
                Path: "TimeLimitedActivityPanel/ModuleSail/SailGiftPanel"
            }, e.SailShopPanel = {
                Id: 12030,
                Path: "TimeLimitedActivityPanel/ModuleSail/SailShopPanel"
            }, e.MazeExplorePanel = {
                Id: 12031,
                Path: "TimeLimitedActivityPanel/ModuleMazeExplore/MazeExplorePanel"
            }, e.MazeExploreFinalRewardPanel = {
                Id: 12032,
                Path: "TimeLimitedActivityPanel/ModuleMazeExplore/MazeExploreFinalRewardPanel"
            }, e.MazeExploreFindGiftPanel = {
                Id: 12033,
                Path: "TimeLimitedActivityPanel/ModuleMazeExplore/MazeExploreFindGiftPanel"
            }, e.MazeExploreGetTimesPanel = {
                Id: 12034,
                Path: "TimeLimitedActivityPanel/ModuleMazeExplore/MazeExploreGetTimesPanel"
            }, e.MazeExploreRewardPanel = {
                Id: 12035,
                Path: "TimeLimitedActivityPanel/ModuleMazeExplore/MazeExploreRewardPanel"
            }, e.MazeExploreTimesRewardPanel = {
                Id: 12036,
                Path: "TimeLimitedActivityPanel/ModuleMazeExplore/MazeExploreTimesRewardPanel"
            }, e.MallFriendinessPanel = {
                Id: 12037,
                Path: "MallFriendinessPanel/MallFriendinessPanel"
            }, e.MallMonthCardPanel = {
                Id: 12038,
                Path: "MallMonthCardPanel/MallMonthCardPanel"
            }, e.HappyTurnPanel = {
                Id: 12039,
                Path: "TimeLimitedActivityPanel/ModuleHappyTurn/HappyTurnPanel"
            }, e.HappyTurnPreviewPanel = {
                Id: 12040,
                Path: "TimeLimitedActivityPanel/ModuleHappyTurn/HappyTurnPreviewPanel"
            }, e.HappyTurnRankPanel = {
                Id: 12041,
                Path: "TimeLimitedActivityPanel/ModuleHappyTurn/HappyTurnRankPanel"
            }, e.HappyTurnEndPanel = {
                Id: 12042,
                Path: "TimeLimitedActivityPanel/ModuleHappyTurn/HappyTurnEndPanel"
            }, e.MallLuckyStarPanel = {
                Id: 12043,
                Path: "MallPanel/SubPanel/LuckyStarPanel"
            }, e.LuckyStarRewardsPanel = {
                Id: 12044,
                Path: "MallPanel/SubPanel/LuckyStarRewardsPanel"
            }, e.InfiniteGiftPackPanel = {
                Id: 12045,
                Path: "TimeLimitedActivityPanel/ModuleInfiniteGiftPack/InfiniteGiftPackPanel"
            }, e.StockUpFestivalPanel = {
                Id: 12046,
                Path: "TimeLimitedActivityPanel/ModuleStockUpFestival/StockUpFestivalPanel"
            }, e.AllUserImpactFightRankPanel = {
                Id: 12047,
                Path: "TimeLimitedActivityPanel/ModuleAllUserImpactRank/AllUserImpactFightRankPanel"
            }, e.AllUserImpactRankPanel = {
                Id: 12048,
                Path: "TimeLimitedActivityPanel/ModuleAllUserImpactRank/AllUserImpactRankPanel"
            }, e.OptionalUpgradeStarPanel = {
                Id: 12049,
                Path: "OptionalUpgradeStarPanel/OptionalUpgradeStarPanel"
            }, e.OptionalUpgradeStarHeroHintPanel = {
                Id: 12050,
                Path: "OptionalUpgradeStarPanel/WishHeroHint"
            }, e.AllUserImpactRewardPanel = {
                Id: 12051,
                Path: "TimeLimitedActivityPanel/ModuleAllUserImpactRank/AllUserImpactRewardPanel"
            }, e.ElementTrialPanel = {
                Id: 12052,
                Path: "TimeLimitedActivityPanel/ModuleElementTrial/ElementTrialPanel"
            }, e.MallGiftPackPanel = {
                Id: 12053,
                Path: "MallGiftPackPanel/MallGiftPackPanel"
            }, e.ElementTrialRewardPanel = {
                Id: 12054,
                Path: "TimeLimitedActivityPanel/ModuleElementTrial/ElementTrialRewardPanel"
            }, e.ElementTrialRankPanel = {
                Id: 12055,
                Path: "TimeLimitedActivityPanel/ModuleElementTrial/ElementTrialRankPanel"
            }, e.PersonalityRankRewardsPanel = {
                Id: 12060,
                Path: "PersonalityCallPanel/PersonalityRankRewardsPanel"
            }, e.ActivityShowOffPanel = {
                Id: 12061,
                Path: "ActivityShowOffPanel/ActivityShowOffPanel"
            }, e.HeroDungeonPanel = {
                Id: 12062,
                Path: "HeroDungeon/HeroDungeonPanel"
            }, e.HeroDungeonRewardPanel = {
                Id: 12063,
                Path: "HeroDungeon/HeroDungeonRewardPanel"
            }, e.HeroDungeonRankPanel = {
                Id: 12064,
                Path: "HeroDungeon/HeroDungeonRankPanel"
            }, e.ActivityFeedBackDrawPanel = {
                Id: 12065,
                Path: "ActivityFeedBackDrawPanel/ActivityFeedBackDrawPanel"
            }, e.ActivitySinglePageGiftPanel = {
                Id: 12066,
                Path: "ActivitySinglePageGiftPanel/ActivitySinglePageGiftPanel"
            }, e.ActivityExchangeShopPanel = {
                Id: 12067,
                Path: "ActivityExchangeShopPanel/ActivityExchangeShopPanel"
            }, e.TaskTalentPanel = {
                Id: 12068,
                Path: "TimeLimitedActivityPanel/ModuleTaskTalent/TaskTalentPanel"
            }, e.RechargeGuidePanel = {
                Id: 12069,
                Path: "TimeLimitedActivityPanel/ModuleRechargeGuide/RechargeGuidePanel"
            }, e.CustomGiftPackPanel = {
                Id: 12070,
                Path: "TimeLimitedActivityPanel/ModuleCustomGiftPack/CustomGiftPackPanel"
            }, e.FateStarBoxPanel = {
                Id: 12071,
                Path: "TimeLimitedActivityPanel/ModuleFateStarBox/FateStarBoxPanel"
            }, e.FateStarBoxGiftPanel = {
                Id: 12072,
                Path: "TimeLimitedActivityPanel/ModuleFateStarBox/FateStarBoxGiftPanel"
            }, e.ActivityCumulativeChargePanel = {
                Id: 12073,
                Path: "ActivityCumulativeChargePanel/ActivityCumulativeChargePanel"
            }, e.WishTimesRewardPanel = {
                Id: 12074,
                Path: "TimeLimitedActivityPanel/ModuleWishCall/WishTimesRewardPanel"
            }, e.IngenuityPanel = {
                Id: 12075,
                Path: "TimeLimitedActivityPanel/ModuleIngenuity/IngenuityPanel"
            }, e.IngenuityEndPanel = {
                Id: 12076,
                Path: "TimeLimitedActivityPanel/ModuleIngenuity/IngenuityEndPanel"
            }, e.IngenuityRankPanel = {
                Id: 12077,
                Path: "TimeLimitedActivityPanel/ModuleIngenuity/IngenuityRankPanel"
            }, e.ActivityScoreShopPanel = {
                Id: 12078,
                Path: "ActivityScoreShopPanel/ActivityScoreShopPanel"
            }, e.MallChosenGiftPackPanel = {
                Id: 12079,
                Path: "MallChosenGiftPackPanel/MallChosenGiftPackPanel"
            }, e.ActivityGiftDrawPanel = {
                Id: 12080,
                Path: "ActivityGiftDrawPanel/ActivityGiftDrawPanel"
            }, e.SmallGamesPanel = {
                Id: 12081,
                Path: "SmallGamesPanel/SmallGamesPanel"
            }, e.ASSGiftPanel = {
                Id: 12082,
                Path: "ActivityScoreShopPanel/ASSGiftPanel"
            }, e.CustomGiftPackRewardPanel = {
                Id: 12083,
                Path: "TimeLimitedActivityPanel/ModuleCustomGiftPack/CustomGiftPackRewardPanel"
            }, e.WishTreePanel = {
                Id: 12084,
                Path: "TimeLimitedActivityPanel/ModuleWishTree/WishTreePanel"
            }, e.WishTreeContentPanel = {
                Id: 12085,
                Path: "TimeLimitedActivityPanel/ModuleWishTree/WishTreeContentPanel"
            }, e.WishTreeGiftPanel = {
                Id: 12086,
                Path: "TimeLimitedActivityPanel/ModuleWishTree/WishTreeGiftPanel"
            }, e.WishTreePreviewPanel = {
                Id: 12087,
                Path: "TimeLimitedActivityPanel/ModuleWishTree/WishTreePreviewPanel"
            }, e.WishTreeTimesRewardPanel = {
                Id: 12088,
                Path: "TimeLimitedActivityPanel/ModuleWishTree/WishTreeTimesRewardPanel"
            }, e.WishTreeTaskPanel = {
                Id: 12089,
                Path: "TimeLimitedActivityPanel/ModuleWishTree/WishTreeTaskPanel"
            }, e.HeroDungeonEndRewardsPanel = {
                Id: 12090,
                Path: "HeroDungeon/HeroDungeonEndRewardsPanel"
            }, e.SuperWeekCardPanel = {
                Id: 20001,
                Path: "SuperWeekCardPanel/SuperWeekCardPanel"
            }, e.CoinPurchasePanel = {
                Id: 20002,
                Path: "CoinPurchasePanel/CoinPurchasePanel"
            }, e.WildoutPanel = {
                Id: 20003,
                Path: "WildoutPanel/WildoutPanel"
            }, e.WorldMapPanel = {
                Id: 20004,
                Path: "WorldMapPanel/WorldMapPanel"
            }, e.OnlineRewardPanel = {
                Id: 20005,
                Path: "OnlineRewardsPanel/OnlineRewardsPanel"
            }, e.LevelPassRewardPanel = {
                Id: 20006,
                Path: "LevelPassRewardPanel/LevelPassRewardPanel"
            }, e.LevelPassRewardAfterPanel = {
                Id: 20007,
                Path: "LevelPassRewardPanel/LevelPassRewardAfterPanel"
            }, e.DiamondShopPanel = {
                Id: 20008,
                Path: "DiamondShopPanel/DiamondShopPanel"
            }, e.FamePriviledgePanel = {
                Id: 20009,
                Path: "FamePriviledgePanel/FamePriviledgePanel"
            }, e.WelfareFramePanel = {
                Id: 20010,
                Path: "WelfarePanel/WelfareFramePanel"
            }, e.FirstChargePanel = {
                Id: 20011,
                Path: "FirstChargePanel/FirstChargePanel"
            }, e.MallPanel = {
                Id: 20012,
                Path: "MallPanel/MallPanel"
            }, e.GiveANamePanel = {
                Id: 20013,
                Path: "GiveANamePanel/GiveANamePanel"
            }, e.FeedbackGiftPanel = {
                Id: 20014,
                Path: "FeedbackGiftPanel/FeedbackGiftPanel"
            }, e.FameUpPanel = {
                Id: 20015,
                Path: "FamePriviledgePanel/FameUpPanel"
            }, e.PersonalityHandbookPanel = {
                Id: 20016,
                Path: "HeroPersonalityPanel/PersonalityHandbookPanel"
            }, e.PersonalityTipSuccessPanel = {
                Id: 20017,
                Path: "HeroPersonalityPanel/PersonalityTipSuccessPanel"
            }, e.DaysPayPanel = {
                Id: 20018,
                Path: "DaysPayPanel/DaysPayPanel"
            }, e.GemComposePanel = {
                Id: 20019,
                Path: "Gems/GemComposePanel"
            }, e.GemChooseHint = {
                Id: 20020,
                Path: "Gems/GemChooseHint"
            }, e.ResonanceAdditionHint = {
                Id: 20021,
                Path: "HeroInfoPanel/ResonanceAdditionHint"
            }, e.GemInfoPanel = {
                Id: 20022,
                Path: "Gems/GemInfoPanel"
            }, e.UniversalShopPanel = {
                Id: 20023,
                Path: "UniversalShopPanel/UniversalShopPanel"
            }, e.SAEChestPanel = {
                Id: 20024,
                Path: "SecretAreaExplorePanel/SAEChestPanel"
            }, e.SAEDetailPanel = {
                Id: 20025,
                Path: "SecretAreaExplorePanel/SAEDetailPanel"
            }, e.GemSelectHint = {
                Id: 20026,
                Path: "Gems/GemSelectHint"
            }, e.GemTipPanel = {
                Id: 20027,
                Path: "ItemTipsPanel/GemTipPanel"
            }, e.GemIllustratedPanel = {
                Id: 20028,
                Path: "Gems/GemIllustratedPanel"
            }, e.FavorUpgradePanel = {
                Id: 13001,
                Path: "HeroFavorPanel/FavorUpgradePanel"
            }, e.FavorHandbookPanel = {
                Id: 13002,
                Path: "HeroFavorPanel/FavorHandbookPanel"
            }, e.FavorRoadAttrDetailPanel = {
                Id: 13003,
                Path: "HeroFavorPanel/FavorRoadAttrDetailPanel"
            }, e.FavorAttrDetailPanel = {
                Id: 13004,
                Path: "HeroFavorPanel/FavorAttrDetailPanel"
            }, e.FavorUpgradeSuccessPanel = {
                Id: 13005,
                Path: "HeroFavorPanel/FavorUpgradeSuccessPanel"
            }, e.FavorRebornPanel = {
                Id: 13006,
                Path: "HeroFavorPanel/FavorRebornPanel"
            }, e.ArenaPortPanel = {
                Id: 13101,
                Path: "ArenaPort/ArenaPortPanel"
            }, e.SeniorArenaPanel = {
                Id: 13102,
                Path: "Arena/SeniorArenaPanel"
            }, e.SeniorArenaChallengePanel = {
                Id: 13103,
                Path: "Arena/SeniorArenaPrivate/SeniorArenaChallengePanel"
            }, e.SeniorArenaChallengeConfirmPanel = {
                Id: 13104,
                Path: "Arena/SeniorArenaPrivate/SeniorArenaChallengeConfirmPanel"
            }, e.SeniorArenaDefenceTeamPanel = {
                Id: 13105,
                Path: "Arena/SeniorArenaPrivate/SeniorArenaDefenceTeamPanel"
            }, e.SeniorArenaPlayerInfoPanel = {
                Id: 13106,
                Path: "Arena/SeniorArenaPrivate/SeniorArenaPlayerInfoPanel"
            }, e.SeniorArenaEditTeamPanel = {
                Id: 13107,
                Path: "Arena/SeniorArenaPrivate/SeniorArenaEditTeamPanel"
            }, e.SeniorArenaBattleReportPanel = {
                Id: 13108,
                Path: "Arena/SeniorArenaPrivate/SeniorArenaBattleReportPanel"
            }, e.TimedRankRewardPanel = {
                Id: 13109,
                Path: "Arena/SeniorArenaPrivate/TimedRankRewardPanel"
            }, e.SeniorArenaBattleTransitionPanel = {
                Id: 13110,
                Path: "Arena/SeniorArenaPrivate/SeniorArenaBattleTransitionPanel"
            }, e.MonthTakenTemplePanel = {
                Id: 13120,
                Path: "MonthTakenTemplePanel/MonthTakenTemplePanel"
            }, e.MonthTakenTempleChallengePanel = {
                Id: 13121,
                Path: "MonthTakenTemplePanel/MonthTakenTempleChallengePanel"
            }, e.MonthTakenTempleReportPanel = {
                Id: 13122,
                Path: "MonthTakenTemplePanel/MonthTakenTempleReportPanel"
            }, e.CrossServerRankPanel = {
                Id: 13123,
                Path: "CrossServerRankPanel/CrossServerRankPanel"
            }, e.CrossServerRankRewardPanel = {
                Id: 13124,
                Path: "CrossServerRankPanel/CrossServerRankRewardPanel"
            }, e.CrossServerRankReportPanel = {
                Id: 13125,
                Path: "CrossServerRankPanel/CrossServerRankReportPanel"
            }, e.CrossServerRankTaskRewardPanel = {
                Id: 13126,
                Path: "CrossServerRankPanel/CrossServerRankTaskRewardPanel"
            }, e.CrossServerRankEditTeamPanel = {
                Id: 13127,
                Path: "CrossServerRankPanel/CrossServerRankEditTeamPanel"
            }, e.IntelligenceSetPanel = {
                Id: 13128,
                Path: "IntelligencePanel/IntelligenceSetPanel"
            }, e.HeroSkinPanel = {
                Id: 13130,
                Path: "HeroInfoPanel/HeroSkinPanel"
            }, e.SinglePagePackPanel = {
                Id: 13131,
                Path: "SinglePagePackPanel/SinglePagePackPanel"
            }, e.BossWarPartPanel = {
                Id: 13132,
                Path: "BossWarPanel/BossWarPartPanel"
            }, e.BossWarPanel = {
                Id: 13133,
                Path: "BossWarPanel/BossWarPanel"
            }, e.WorldBossPanel = {
                Id: 13134,
                Path: "WorldBossPanel/WorldBossPanel"
            }, e.WorldBossRewardPanel = {
                Id: 13135,
                Path: "WorldBossPanel/WorldBossRewardPanel"
            }, e.LuckySummonPanel = {
                Id: 13137,
                Path: "LuckySummonPanel/LuckySummonPanel"
            }, e.HeroDescPanel = {
                Id: 13140,
                Path: "HeroInfoPanel/HeroDescPanel"
            }, e.TaskCommandPanel = {
                Id: 13141,
                Path: "TimeLimitedActivityPanel/ModuleTaskCommand/TaskCommandPanel"
            }, e.TaskCommandRewardPanel = {
                Id: 13142,
                Path: "TimeLimitedActivityPanel/ModuleTaskCommand/TaskCommandRewardPanel"
            }, e.CommonRankRewardPanel = {
                Id: 13143,
                Path: "CommonPanel/CommonRankRewardPanel"
            }, e.CommonTaskPanel = {
                Id: 13144,
                Path: "CommonPanel/CommonTaskPanel"
            }, e.SummonActivityListPanel = {
                Id: 13145,
                Path: "SummonActivityListPanel/SummonActivityListPanel"
            }, e.SelectMaterialPersonalityPanel = {
                Id: 13146,
                Path: "SelectMaterialHeroPanel/SelectMaterialPersonalityPanel"
            }, e.CommonActivityRankPanel = {
                Id: 13147,
                Path: "CommonPanel/CommonActivityRankPanel"
            }, e.BossWarPreviewPanel = {
                Id: 13148,
                Path: "BossWarPanel/BossWarPreviewPanel"
            }, e.AllUserPuzzlePanel = {
                Id: 13149,
                Path: "TimeLimitedActivityPanel/ModuleAllUserPuzzle/AllUserPuzzlePanel"
            }, e.AllUserPuzzleSetPanel = {
                Id: 13150,
                Path: "TimeLimitedActivityPanel/ModuleAllUserPuzzle/AllUserPuzzleSetPanel"
            }, e.AllUserPuzzlePreviewPanel = {
                Id: 13151,
                Path: "TimeLimitedActivityPanel/ModuleAllUserPuzzle/AllUserPuzzlePreviewPanel"
            }, e.AllUserPuzzleGivingPanel = {
                Id: 13152,
                Path: "TimeLimitedActivityPanel/ModuleAllUserPuzzle/AllUserPuzzleGivingPanel"
            }, e.AllUserPuzzleExchangePanel = {
                Id: 13153,
                Path: "TimeLimitedActivityPanel/ModuleAllUserPuzzle/AllUserPuzzleExchangePanel"
            }, e.RewardByAccumulateRechargePanel = {
                Id: 13154,
                Path: "TimeLimitedActivityPanel/ModuleRewardByAccumulateRecharge/RewardByAccumulateRechargePanel"
            }, e.BossWarGuildRewardPanel = {
                Id: 13155,
                Path: "BossWarPanel/BossWarGuildRewardPanel"
            }, e.CrossServerAllianceWarPanel = {
                Id: 13156,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceWarPanel"
            }, e.CrossServerAllianceRewardPanel = {
                Id: 13157,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceRewardPanel"
            }, e.CrossServerAllianceFightInfoPanel = {
                Id: 13158,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceFightInfoPanel"
            }, e.CrossServerAllianceMemberPanel = {
                Id: 13159,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceMemberPanel"
            }, e.CrossServerAllianceLogisticsPanel = {
                Id: 13160,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceLogisticsPanel"
            }, e.CrossServerAllianceLogisticsListPanel = {
                Id: 13161,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceLogisticsListPanel"
            }, e.CrossServerAllianceEnemyMemberPanel = {
                Id: 13162,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceEnemyMemberPanel"
            }, e.CrossServerAllianceReportPanel = {
                Id: 13163,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceReportPanel"
            }, e.CrossServerAlliancePersonalRankPanel = {
                Id: 13164,
                Path: "CrossServerAllianceWarPanel/CrossServerAlliancePersonalRankPanel"
            }, e.CrossServerAllianceResultPanel = {
                Id: 13165,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceResultPanel"
            }, e.CrossServerAllianceSettleReportPanel = {
                Id: 13166,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceSettleReportPanel"
            }, e.ChaosSummonPanel = {
                Id: 13170,
                Path: "ChaosSummonPanel/ChaosSummonPanel"
            }, e.ChaosGetWayPanel = {
                Id: 13171,
                Path: "ChaosSummonPanel/ChaosGetWayPanel"
            }, e.ChaosGiftPanel = {
                Id: 13172,
                Path: "ChaosSummonPanel/ChaosGiftPanel"
            }, e.ChaosSummonRankPanel = {
                Id: 13173,
                Path: "ChaosSummonPanel/ChaosSummonRankPanel"
            }, e.ChaosSummonRankRewardsPanel = {
                Id: 13174,
                Path: "ChaosSummonPanel/ChaosSummonRankRewardsPanel"
            }, e.ReturnWelfarePanel = {
                Id: 13175,
                Path: "ReturnWelfarePanel/ReturnWelfarePanel"
            }, e.BossWarGuidePanel = {
                Id: 13176,
                Path: "BossWarPanel/BossWarGuidePanel"
            }, e.ExquisiteCustomCardPanel = {
                Id: 13180,
                Path: "TimeLimitedActivityPanel/ModuleExquisiteCustomCard/ExquisiteCustomCardPanel"
            }, e.GiftPacksPreviewPanel = {
                Id: 13181,
                Path: "TimeLimitedActivityPanel/ModuleRewardByAccumulateRecharge/GiftPacksPreviewPanel"
            }, e.MonopolyMainPanel = {
                Id: 13200,
                Path: "MonopolyPanel/MonopolyMainPanel"
            }, e.MonopolyRemoteDicePanel = {
                Id: 13201,
                Path: "MonopolyPanel/RemoteDiceHint"
            }, e.ActivityContinuousChargePanel = {
                Id: 13210,
                Path: "ActivityContinuousChargePanel/ActivityContinuousChargePanel"
            }, e.AnswerActivityPanel = {
                Id: 14200,
                Path: "AnswerActivityPanel/AnswerActivityPanel"
            }, e.AnswerEndPanel = {
                Id: 14201,
                Path: "AnswerActivityPanel/AnswerEndPanel"
            }, e.AnswerRewardsDetailPanel = {
                Id: 14202,
                Path: "AnswerActivityPanel/AnswerRewardsDetailPanel"
            }, e.StarTacticalUpLevelPanel = {
                Id: 13220,
                Path: "StarTemplePanel/StarTactical/StarTacticalUpLevelPanel"
            }, e.StarTacticalOverViewPanel = {
                Id: 13221,
                Path: "StarTemplePanel/StarTactical/StarTacticalOverViewPanel"
            }, e.StarTacticalHandBookPanel = {
                Id: 13222,
                Path: "StarTemplePanel/StarTactical/StarTacticalHandBookPanel"
            }, e.StarTacticalUpTipPanel = {
                Id: 13223,
                Path: "StarTemplePanel/StarTactical/StarTacticalUpTipPanel"
            }, e.StarTacticalGetBaseItemPanel = {
                Id: 13224,
                Path: "StarTemplePanel/StarTactical/StarTacticalGetBaseItemPanel"
            }, e.CommonSPHeroDescPanel = {
                Id: 13230,
                Path: "CommonPanel/CommonSPHeroDescPanel"
            }, e.BadgeCollectPanel = {
                Id: 13231,
                Path: "BadgeCollectPanel/BadgeCollectPanel"
            }, e.WarTokenListPanel = {
                Id: 13232,
                Path: "WarTokenListPanel/WarTokenListPanel"
            }, e.CommonPvpPlayerInfoPanel = {
                Id: 13233,
                Path: "CommonPanel/CommonPvpPlayerInfoPanel"
            }, e.PowerCoreDetailsPanel = {
                Id: 13234,
                Path: "CoreCultivatePanel/PowerCoreDetailsPanel"
            }, e.PowerCoreReplacePanel = {
                Id: 13235,
                Path: "CoreCultivatePanel/PowerCoreReplacePanel"
            }, e.CoreUpgradeSuccessPanel = {
                Id: 13236,
                Path: "CoreCultivatePanel/CoreUpgradeSuccessTipPanel"
            }, e.CoreHandbookPanel = {
                Id: 13237,
                Path: "CoreCultivatePanel/CoreHandbookPanel"
            }, e.CoreUpSelectMaterialPanel = {
                Id: 13238,
                Path: "CoreCultivatePanel/CoreUpSelectMaterialPanel"
            }, e.CoreUpgradePanel = {
                Id: 13239,
                Path: "CoreCultivatePanel/CoreUpgradePanel"
            }, e.CoreHandbookItemPanel = {
                Id: 13240,
                Path: "CoreCultivatePanel/CoreHandbookItemPanel"
            }, e.CommonBlackDescPanel = {
                Id: 13241,
                Path: "CommonPanel/CommonBlackDescPanel"
            }, e.PlayerCountrySelectionListPanel = {
                Id: 13245,
                Path: "PlayerCountrySelectionListPanel/PlayerCountrySelectionListPanel"
            }, e.ContinuousFightPanel = {
                Id: 13250,
                Path: "CrossServerRankPanel/ContinuousFightPanel/ContinuousFightPanel"
            }, e.ContinuousFightRewardPanel = {
                Id: 13251,
                Path: "CrossServerRankPanel/ContinuousFightPanel/ContinuousFightRewardPanel"
            }, e.CommonGuideTipPanel = {
                Id: 13253,
                Path: "CommonPanel/CommonGuideTipPanel"
            }, e.TaskDetailsPanel = {
                Id: 13255,
                Path: "TaskGuidancePanel/TaskDetailsPanel"
            }, e.PermanentPrivilegePanel = {
                Id: 13256,
                Path: "PermanentPrivilegePanel/PermanentPrivilegePanel"
            }, e.HeroTalentPanel = {
                Id: 13256,
                Path: "HeroInfoPanel/HeroTalentPanel"
            }, e.TalentSkillPanel = {
                Id: 13257,
                Path: "HeroInfoPanel/TalentSkillPanel"
            }, e.ContinuousFightRankPanel = {
                Id: 13259,
                Path: "CrossServerRankPanel/ContinuousFightPanel/ContinuousFightRankPanel"
            }, e.CollectionPavilionPanel = {
                Id: 13260,
                Path: "CollectionPavilionPanel/CollectionPavilionPanel"
            }, e.CollectionPreviewPanel = {
                Id: 13261,
                Path: "CollectionPavilionPanel/CollectionPreviewPanel"
            }, e.LoverArrowStartPanel = {
                Id: 13262,
                Path: "LoverArrowPanel/LoverArrowStartPanel"
            }, e.LoverArrowDetailpanel = {
                Id: 13263,
                Path: "LoverArrowPanel/LoverArrowDetailPanel"
            }, e.LoverArrowPlayPanel = {
                Id: 13264,
                Path: "LoverArrowPanel/LoverArrowPlayPanel"
            }, e.HeroDungeonHintPanel = {
                Id: 13265,
                Path: "HeroDungeon/HeroDungeonHintPanel"
            }, e.VietnamLoginPanel = {
                Id: 13266,
                Path: "VietnamLoginPanel/VietnamLoginPanel"
            }, e.LoginHintPanel = {
                Id: 13267,
                Path: "VietnamLoginPanel/LoginHintPanel"
            }, e.LoverArrowGetRewardPanel = {
                Id: 13268,
                Path: "LoverArrowPanel/LoverArrowGetRewardPanel"
            }, e.GiftPackListPanel = {
                Id: 13270,
                Path: "GiftPackListPanel/GiftPackListPanel"
            }, e.AssistantPanel = {
                Id: 13271,
                Path: "AssistantPanel/AssistantPanel"
            }, e.TrialHeroPanel = {
                Id: 13272,
                Path: "TrialHeroPanel/TrialHeroPanel"
            }, e.ActivityPreviewMainPanel = {
                Id: 13273,
                Path: "ActivityPreviewPanel/ActivetyPreviewPanel"
            }, e.ActivityPreviewShowSinglePanel = {
                Id: 13274,
                Path: "ActivityPreviewPanel/ActivityPreviewShowSinglePanel"
            }, e.DiscountTicketBagPanel = {
                Id: 13275,
                Path: "CurrencyDiscountPanel/DiscountTicketBagPanel"
            }, e.HeroRisingStarPackage = {
                Id: 13276,
                Path: "HeroRisingStarPackage/HeroRisingStarPackagePanel"
            }, e.ChooseHatchPanel = {
                Id: 13277,
                Path: "HeroListPanel/PetPanel/ChooseHatchPanel"
            }, e.UnlockHintPanel = {
                Id: 13278,
                Path: "HeroListPanel/PetPanel/UnlockHintPanel"
            }, e.WishPetHint = {
                Id: 13279,
                Path: "HeroListPanel/PetPanel/WishPetHint"
            }, e.PetPalacePanel = {
                Id: 13280,
                Path: "HeroListPanel/PetPanel/PetPalacePanel"
            }, e.PetResolvePreviewPanel = {
                Id: 13281,
                Path: "HeroListPanel/PetPanel/PetResolvePreviewPanel"
            }, e.ExclusiveGiftPackPanel = {
                Id: 13382,
                Path: "ChaosSummonPanel/ExclusiveGiftPackPanel"
            }, e.ActivityStoryTaskPanel = {
                Id: 13283,
                Path: "ActivityStoryTaskPanel/ActivityStoryTaskPanel"
            }, e.StoryPlayPanel = {
                Id: 13284,
                Path: "ActivityStoryTaskPanel/StoryPlayPanel"
            }, e.LookBackPanel = {
                Id: 13285,
                Path: "ActivityStoryTaskPanel/LookBackPanel"
            }, e.StoryUpStarPanel = {
                Id: 13286,
                Path: "CollectionPavilionPanel/StoryUpStarPanel"
            }, e.CrownGiftPanel = {
                Id: 13287,
                Path: "CollectionPavilionPanel/CrownGiftPanel"
            }, e.RecommendedGiftPackPanel = {
                Id: 13288,
                Path: "RecommendedGiftPackPanel/RecommendedGiftPackPanel"
            }, e.ActivityLuckyBagPanel = {
                Id: 13289,
                Path: "ActivityLuckyBagPanel/ActivityLuckyBagPanel"
            }, e.LuckyBagAccumulatedChargePanel = {
                Id: 13290,
                Path: "ActivityLuckyBagPanel/LuckyBagAccumulatedChargePanel"
            }, e.LuckyBagRatePanel = {
                Id: 13291,
                Path: "ActivityLuckyBagPanel/LuckyBagRatePanel"
            }, e.LuckyBagTreasureBoxPanel = {
                Id: 13292,
                Path: "ActivityLuckyBagPanel/LuckyBagTreasureBoxPanel"
            }, e.LuckyBagGetRewardsPanel = {
                Id: 13293,
                Path: "ActivityLuckyBagPanel/LuckyBagGetRewardsPanel"
            }, e.ActivityBossPanel = {
                Id: 13300,
                Path: "ActivityBossPanel/ActivityBossPanel"
            }, e.CommonMultiRewardPanel = {
                Id: 13301,
                Path: "CommonPanel/CommonMultiRewardPanel"
            }, e.ActivityBossUpPreviewPanel = {
                Id: 13302,
                Path: "ActivityBossPanel/ActivityBossUpPreviewPanel"
            }, e.CampSupportPanel = {
                Id: 13303,
                Path: "CampSupportPanel/CampSupportPanel"
            }, e.RewardDescriptionPanel = {
                Id: 13304,
                Path: "CampSupportPanel/RewardDescriptionPanel"
            }, e.CrossServerChampionStartPanel = {
                Id: 13307,
                Path: "CrossServerChampionShip/CrossServerChampionStartPanel"
            }, e.CrossServerChampionRuleTipPanel = {
                Id: 13308,
                Path: "CrossServerChampionShip/CrossServerChampionRuleTipPanel"
            }, e.CrossServerChampionShipResultTip = {
                Id: 13309,
                Path: "CrossServerChampionShip/CrossServerChampionShipResultTip"
            }, e.ActiveCollectionEntryPanel = {
                Id: 13383,
                Path: "ActiveCollectionEntryPanel/ActiveCollectionEntryPanel"
            }, e.CrossServerChampionShipPanel = {
                Id: 13500,
                Path: "CrossServerChampionShip/CrossServerChampionShipPanel"
            }, e.CrossServerChampionReportPanel = {
                Id: 13501,
                Path: "CrossServerChampionShip/CrossServerChampionReportPanel"
            }, e.CrossServerChampionShipGuessResultPanel = {
                Id: 13502,
                Path: "CrossServerChampionShip/CrossServerChampionShipGuessResultPanel"
            }, e.HeroSuitGiftPanel = {
                Id: 13384,
                Path: "HeroSuitGiftPanel/HeroSuitGiftPanel"
            }, e.HeroSuitSelectPanel = {
                Id: 13385,
                Path: "HeroSuitGiftPanel/HeroSuitSelectPanel"
            }, e.QuickResolveSettingPanel = {
                Id: 13386,
                Path: "HeroPalacePanel/QuickResolveSettingPanel"
            }, e.WarmUpActivityPanel = {
                Id: 13387,
                Path: "WarmUpActivityPanel/WarmUpActivityPanel"
            }, e.LuckyCharmComprehensionPanel = {
                Id: 13390,
                Path: "LuckyCharmComprehensionPanel/LuckyCharmComprehensionPanel"
            }, e.LuckyCharmSkillLevelUpPanel = {
                Id: 13391,
                Path: "LuckyCharmComprehensionPanel/LuckyCharmSkillLevelUpPanel"
            }, e.PersonalityMaxLevelPreviewPanel = {
                Id: 13392,
                Path: "HeroPersonalityPanel/PersonalityMaxLevelPreviewPanel"
            }, e.HerosRisingStarGiftPanel = {
                Id: 13388,
                Path: "HerosRisingStarGiftPanel/HerosRisingStarGiftPanel"
            }, e.SevenDayCelebrationPanel = {
                Id: 13389,
                Path: "SevenDayCelebrationPanel/SevenDayCelebrationPanel"
            }, e.HeroFetterPanel = {
                Id: 13393,
                Path: "CollectionPavilionPanel/HeroFetterPanel"
            }, e.HeroFetterSkillUpPanel = {
                Id: 13394,
                Path: "CollectionPavilionPanel/HeroFetterSkillUpPanel"
            }, e.HeroFetterSkillUpSuccessPanel = {
                Id: 13395,
                Path: "CollectionPavilionPanel/HeroFetterSkillUpSuccessPanel"
            }, e.HeroFetterSkillTipPanel = {
                Id: 13396,
                Path: "CollectionPavilionPanel/HeroFetterSkillTipPanel"
            }, e.HeroFetterTotalAttrPanel = {
                Id: 13397,
                Path: "CollectionPavilionPanel/HeroFetterTotalAttrPanel"
            }, e.CarnivalSkinPanel = {
                Id: 13398,
                Path: "CarnivalSkinPanel/CarnivalSkinPanel"
            }, e.GemResetPanel = {
                Id: 13399,
                Path: "Gems/GemResetPanel"
            }, e.CommonGiftPackPanel = {
                Id: 13400,
                Path: "CommonPanel/CommonGiftPackPanel"
            }, e.CollectionHandbookPanel = {
                Id: 13401,
                Path: "CollectionPavilionPanel/CollectionHandbookPanel"
            }, e.CollectionHandbookSuccessPanel = {
                Id: 13402,
                Path: "CollectionPavilionPanel/CollectionHandbookSuccessPanel"
            }, e.CollectionHandbookAttributePanel = {
                Id: 13403,
                Path: "CollectionPavilionPanel/CollectionHandbookAttributePanel"
            }, e.CommonTotalAttrPanel = {
                Id: 13404,
                Path: "CommonPanel/CommonTotalAttrPanel"
            }, e.StrongholdWarTeamPanel = {
                Id: 13405,
                Path: "StrongholdWarPanel/StrongholdWarTeamPanel"
            }, e.StrongholdWarRewardPanel = {
                Id: 13406,
                Path: "StrongholdWarPanel/StrongholdWarRewardPanel"
            }, e.StrongholdWarReportPanel = {
                Id: 13407,
                Path: "StrongholdWarPanel/StrongholdWarReportPanel"
            }, e.StrongholdWarRevivePanel = {
                Id: 13408,
                Path: "StrongholdWarPanel/StrongholdWarRevivePanel"
            }, e.StrongholdWarBattlePanel = {
                Id: 13409,
                Path: "StrongholdWarPanel/StrongholdWarBattlePanel"
            }, e.StrongholdWarPrepareTeamPanel = {
                Id: 13410,
                Path: "StrongholdWarPanel/StrongholdWarPrepareTeamPanel"
            }, e.CommonRankPanel = {
                Id: 13411,
                Path: "CommonPanel/CommonRankPanel"
            }, e.StrongholdWarMainPanel = {
                Id: 13412,
                Path: "StrongholdWarPanel/StrongholdWarMainPanel"
            }, e.ManageStrongholdPanel = {
                Id: 13413,
                Path: "StrongholdWarPanel/ManageStrongholdPanel"
            }, e.StrongholdOperationPanel = {
                Id: 13414,
                Path: "StrongholdWarPanel/StrongholdOperationPanel"
            }, e.StrongholdWarTaskPanel = {
                Id: 13415,
                Path: "StrongholdWarPanel/StrongholdWarTaskPanel"
            }, e.StrongholdTipPanel = {
                Id: 13416,
                Path: "StrongholdWarPanel/StrongholdTipPanel"
            }, e.StrongholdDetailPanel = {
                Id: 13417,
                Path: "StrongholdWarPanel/StrongholdDetailPanel"
            }, e.HangUpSettingPanel = {
                Id: 13418,
                Path: "StrongholdWarPanel/HangUpSettingPanel"
            }, e.StrongholdWarBattleResultPanel = {
                Id: 13420,
                Path: "StrongholdWarPanel/StrongholdWarBattleResultPanel"
            }, e.SummonBoxPanel = {
                Id: 13421,
                Path: "SummonBoxPanel/SummonBoxPanel"
            }, e.SummonBoxRewardSelectPanel = {
                Id: 13422,
                Path: "SummonBoxPanel/SummonBoxRewardSelectPanel"
            }, e.SummonBoxRewardConfirmPanel = {
                Id: 13423,
                Path: "SummonBoxPanel/SummonBoxRewardConfirmPanel"
            }, e.SummonBoxRewardShowPanel = {
                Id: 13424,
                Path: "SummonBoxPanel/SummonBoxRewardShowPanel"
            }, e.SnsConnectionPanel = {
                Id: 13425,
                Path: "SnsConnectionPanel/SnsConnectionPanel"
            }, e.AngelGuardInfoPanel = {
                Id: 13430,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelGuardInfoPanel"
            }, e.AngelRebornPanel = {
                Id: 13431,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelRebornPanel"
            }, e.AngelSelectSkillPanel = {
                Id: 13432,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelSelectSkillPanel"
            }, e.AngelSkillTipsPanel = {
                Id: 13433,
                Path: "ItemTipsPanel/AngelSkillTipsPanel"
            }, e.AngelAttrInfoPanel = {
                Id: 13434,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelAttrInfoPanel"
            }, e.AngelSkinPanel = {
                Id: 13435,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelSkinPanel"
            }, e.AngelSkinActivePanel = {
                Id: 13436,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelSkinActivePanel"
            }, e.DailyCheckInActivityPanel = {
                Id: 13437,
                Path: "DailyCheckInActivityPanel/DailyCheckInActivityPanel"
            }, e.AngelFavorRewardPanel = {
                Id: 13438,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelFavorRewardPanel"
            }, e.StarPieceResonanceUpgradeSuccessPanel = {
                Id: 13440,
                Path: "CollectionPavilionPanel/StarPieceResonanceUpgradeSuccessPanel"
            }, e.StrongholdWarCaptainAddtionPanel = {
                Id: 13441,
                Path: "StrongholdWarPanel/StrongholdWarCaptainAddtionPanel"
            }, e.AngelGodSoulSelectPanel = {
                Id: 13442,
                Path: "AngelGodSoul/Panels/AngelGodSoulSelectPanel"
            }, e.AngelGodSoulListPanel = {
                Id: 13443,
                Path: "AngelGodSoul/Panels/AngelGodSoulListPanel"
            }, e.UserTitlePanel = {
                Id: 13444,
                Path: "UserTitlePanel/UserTitlePanel"
            }, e.DisplayUserTItlePanel = {
                Id: 13445,
                Path: "UserTitlePanel/DisplayUserTItlePanel"
            }, e.StrategyDetialPanel = {
                Id: 13446,
                Path: "UserTitlePanel/StrategyDetialPanel"
            }, e.HeroTalentResetPanel = {
                Id: 13447,
                Path: "HeroInfoPanel/HeroTalentResetPanel"
            }, e.HeroTalentResonancePanel = {
                Id: 13448,
                Path: "HeroInfoPanel/HeroTalentResonancePanel"
            }, e.AngelDestinyActivePanel = {
                Id: 13449,
                Path: "AngelDestinyPanel/AngelDestinyActivePanel"
            }, e.AngelDestinyQuickActivePanel = {
                Id: 13450,
                Path: "AngelDestinyPanel/AngelDestinyQuickActivePanel"
            }, e.AngelSelectPanel = {
                Id: 13451,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelSelectPanel"
            }, e.AngelDetailPanel = {
                Id: 13452,
                Path: "AngelDetailPanel/AngelDetailPanel"
            }, e.AngelGodSoulOverviewPanel = {
                Id: 13453,
                Path: "AngelGodSoul/Panels/AngelGodSoulOverviewPanel"
            }, e.AngelGodSoulCombinePanel = {
                Id: 13454,
                Path: "AngelGodSoul/Panels/AngelGodSoulCombinePanel"
            }, e.AngelUpStarSucessPanel = {
                Id: 13455,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelUpStarSucessPanel"
            }, e.AngelUpStarAttrInfoPanel = {
                Id: 13456,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelUpStarAttrInfoPanel"
            }, e.AngelGodSoulinfoPanel = {
                Id: 13457,
                Path: "AngelGodSoul/Panels/AngelGodSoulinfoPanel"
            }, e.HolyAreaHintPanel = {
                Id: 13458,
                Path: "HolyAreaPanel/HolyAreaHintPanel"
            }, e.AngelGodSoulReCastPanel = {
                Id: 13459,
                Path: "AngelGodSoul/Panels/AngelGodSoulReCastPanel"
            }, e.GodSoulTipsPanel = {
                Id: 13460,
                Path: "ItemTipsPanel/GodSoulTipsPanel"
            }, e.ActivityFirstPayPanel = {
                Id: 13461,
                Path: "FirstChargePanel/ActivityFirstPayPanel"
            }, e.WishPersonalityItemPanel = {
                Id: 13462,
                Path: "SummonActivityListPanel/WishPersonalityItemPanel"
            }, e.TreasureHousePanel = {
                Id: 13463,
                Path: "CollectionPavilionPanel/TreasureHousePanel"
            }, e.TreasureHouseItemPanel = {
                Id: 13464,
                Path: "CollectionPavilionPanel/TreasureHouseItemPanel"
            }, e.TreasureItemUpStarPanel = {
                Id: 13465,
                Path: "CollectionPavilionPanel/TreasureItemUpStarPanel"
            }, e.TreasureHouseUpStarPanel = {
                Id: 13466,
                Path: "CollectionPavilionPanel/TreasureHouseUpStarPanel"
            }, e.TreasureHouseSkillInfoPanel = {
                Id: 13467,
                Path: "CollectionPavilionPanel/TreasureHouseSkillInfoPanel"
            }, e.TreasureHouseInfoPanel = {
                Id: 13468,
                Path: "CollectionPavilionPanel/TreasureHouseInfoPanel"
            }, e.TreasureHouseEquipSkillPanel = {
                Id: 13469,
                Path: "CollectionPavilionPanel/TreasureHouseEquipSkillPanel"
            }, e.TreasureHouseTotalAttrPanel = {
                Id: 13470,
                Path: "CollectionPavilionPanel/TreasureHouseTotalAttrPanel"
            }, e.TreasureHouseWishTreePanel = {
                Id: 13471,
                Path: "CollectionPavilionPanel/TreasureHouseWishTreePanel"
            }, e.StrongholdWarIntroductionPanel = {
                Id: 13472,
                Path: "StrongholdWarPanel/StrongholdWarIntroductionPanel"
            }, e.PlayerSignaturePanel = {
                Id: 13473,
                Path: "PlayerSettingPanel/PlayerSignaturePanel"
            }, e.NewAssistantPanel = {
                Id: 13474,
                Path: "AssistantPanel/NewAssistantPanel"
            }, e.AssistantShowResultPanel = {
                Id: 13475,
                Path: "AssistantPanel/AssistantShowResultPanel"
            }, e.SoulRecordEntryPanel = {
                Id: 13476,
                Path: "SoulRecordPanel/SoulRecordEntryPanel"
            }, e.SoulRecordMainPanel = {
                Id: 13477,
                Path: "SoulRecordPanel/SoulRecordMainPanel"
            }, e.SoulRecordSkillUpPanel = {
                Id: 13478,
                Path: "SoulRecordPanel/SoulRecordSkillUpPanel"
            }, e.GemProcessingPanel = {
                Id: 13479,
                Path: "Gems/GemProcessingPanel"
            }, e.GemGalleryPanel = {
                Id: 13480,
                Path: "Gems/GemGalleryPanel"
            }, e.GemGalleryListPanel = {
                Id: 13481,
                Path: "Gems/GemGalleryListPanel"
            }, e.GemGallerySelectPanel = {
                Id: 13482,
                Path: "Gems/GemGallerySelectPanel"
            }, e.IndependentManualBoxPanel = {
                Id: 100001,
                Path: "IndependentManualBoxPanel/IndependentManualBoxPanel"
            }, e.SoulRecordOverViewPanel = {
                Id: 13483,
                Path: "SoulRecordPanel/SoulRecordOverViewPanel"
            }, e.SoulRecordDetialPanel = {
                Id: 13484,
                Path: "SoulRecordPanel/SoulRecordDetialPanel"
            }, e.FitSoulTipsPanel = {
                Id: 13485,
                Path: "ItemTipsPanel/FitSoulTipsPanel"
            }, e.FitSoulSkillTipsPanel = {
                Id: 13486,
                Path: "ItemTipsPanel/FitSoulSkillTipsPanel"
            }, e.SoulRecordGraphStarAttrPanel = {
                Id: 13487,
                Path: "SoulRecordPanel/SoulRecordGraphStarAttrPanel"
            }, e.SoulRecordRewardPanel = {
                Id: 13488,
                Path: "SoulRecordPanel/SoulRecordRewardPanel"
            }, e.ChaosHeroTempleUpPanel = {
                Id: 13489,
                Path: "CollectionPavilionPanel/ChaosHeroTempleUpPanel"
            }, e.ChaosHeroTempleResonancePanel = {
                Id: 13490,
                Path: "CollectionPavilionPanel/ChaosHeroTempleResonancePanel"
            }, e.ChaosHeroTempleTotalAttrPanel = {
                Id: 13491,
                Path: "CollectionPavilionPanel/ChaosHeroTempleTotalAttrPanel"
            }, e.ChaosHeroTempleDetailPanel = {
                Id: 13492,
                Path: "CollectionPavilionPanel/ChaosHeroTempleDetailPanel"
            }, e.ChaosHeroTempleUpSuccessPanel = {
                Id: 13493,
                Path: "CollectionPavilionPanel/ChaosHeroTempleUpSuccessPanel"
            }, e.AngelGodSoulCombinePreviewPanel = {
                Id: 13494,
                Path: "AngelGodSoul/Panels/AngelGodSoulCombinePreviewPanel"
            }, e.GodSoulCombineOneButtonPanel = {
                Id: 13495,
                Path: "AngelGodSoul/Panels/GodSoulCombineOneButtonPanel"
            }, e.StarGarrisonInfoPanel = {
                Id: 13496,
                Path: "StarGarrison/StarGarrisonInfoPanel"
            }, e.StarGarrisonSelectPanel = {
                Id: 13497,
                Path: "StarGarrison/StarGarrisonSelectPanel"
            }, e.HolyEquipmentGalleryListPanel = {
                Id: 13498,
                Path: "HolyFurnace/HolyEquipmentGalleryListPanel"
            }, e.HolyEquipmentGalleryItemChangePanel = {
                Id: 13499,
                Path: "HolyFurnace/HolyEquipmentGalleryItemChangePanel"
            }, e.HolyEquipmentGalleryAddtionPreviewPanel = {
                Id: 13500,
                Path: "HolyFurnace/HolyEquipmentGalleryAddtionPreviewPanel"
            }, e.HolyEquipmentGalleryResonancePanel = {
                Id: 13501,
                Path: "HolyFurnace/HolyEquipmentGalleryResonancePanel"
            }, e.CookHouseEnterPanel = {
                Id: 13502,
                Path: "CookHouseGamePanel/CookHouseEnterPanel"
            }, e.CookHouseGamePanel = {
                Id: 13503,
                Path: "CookHouseGamePanel/CookHouseGamePanel"
            }, e.ItemWithModelTipsPanel = {
                Id: 13504,
                Path: "ItemTipsPanel/ItemWithModelTipsPanel"
            }, e.OffServiceTipHint = {
                Id: 13505,
                Path: "OffServicePanel/OffServiceTipHint"
            }, e.TreasureHouseUpStarPreviewPanel = {
                Id: 13506,
                Path: "CollectionPavilionPanel/TreasureHouseUpStarPreviewPanel"
            }, e.SoulRecordBagPanel = {
                Id: 13507,
                Path: "SoulRecordPanel/SoulRecordBagPanel"
            }, e.DailyCheckInRunnerPanel = {
                Id: 13508,
                Path: "DailyCheckInRunnerPanel/DailyCheckInRunnerPanel"
            }, e.ExclusiveWeaponGalleryPanel = {
                Id: 13509,
                Path: "CollectionPavilionPanel/ExclusiveWeaponGalleryPanel"
            }, e.KnifeTrainingMainPanel = {
                Id: 13510,
                Path: "KnifeTrainingPanel/KnifeTrainingMainPanel"
            }, e.KnifeTrainingPanel = {
                Id: 13511,
                Path: "KnifeTrainingPanel/KnifeTrainingPanel"
            }, e.CoreQuickUpgradeStarPanel = {
                Id: 13512,
                Path: "CoreCultivatePanel/CoreQuickUpgradeStarPanel"
            }, e.KnifeTrainingEndPanel = {
                Id: 13513,
                Path: "KnifeTrainingPanel/KnifeTrainingEndPanel"
            }, e.CrazyWheelPanel = {
                Id: 13514,
                Path: "CrazyWheelPanel/CrazyWheelPanel"
            }, e.OpenLockedBoxPanel = {
                Id: 13515,
                Path: "ItemInfoPanel/OpenLockedBoxPanel"
            }, e.HerosRisingStarGiftNewPanel = {
                Id: 13516,
                Path: "HerosRisingStarGiftPanel/HerosRisingStarGiftNewPanel"
            }, e.ExclusiveWeaponGalleryAttributePanel = {
                Id: 13517,
                Path: "CollectionPavilionPanel/ExclusiveWeaponGalleryAttributePanel"
            }, e.ActTransitionPanel = {
                Id: 13518,
                Path: "ActiveCollectionEntryPanel/ActTransitionPanel"
            }, e.SecretAreaAutoSetPanel = {
                Id: 13519,
                Path: "SecretAreaExplorePanel/SecretAreaAutoSetPanel"
            }, e.ASSBuyCarPanel = {
                Id: 13520,
                Path: "ActivityScoreShopPanel/ASSBuyCarPanel"
            }, e.HeroCollectionHandbookPanel = {
                Id: 13521,
                Path: "HeroCollectionHandbookPanel/HeroCollectionHandbookPanel"
            }, e.OldPlayerRecallPanel = {
                Id: 13522,
                Path: "OldPlayerRecallPanel/OldPlayerRecallPanel"
            }, e.CommonQuickCombinePanel = {
                Id: 13523,
                Path: "CommonPanel/CommonQuickCombinePanel"
            }, e.HeroTalentQuickLevelUpPanel = {
                Id: 13524,
                Path: "HeroInfoPanel/HeroTalentQuickLevelUpPanel"
            }, e.PetDetailsPanel = {
                Id: 13525,
                Path: "HeroPetPanel/PetDetailsPanel"
            }, e.RedPacketListPanel = {
                Id: 13526,
                Path: "RedPacketPanel/RedPacketListPanel"
            }, e.ElementTemplePanel = {
                Id: 13527,
                Path: "ElementTemplePanel/ElementTemplePanel"
            }, e.HeroSublimingGoBackPanel = {
                Id: 13528,
                Path: "HeroCollectionHandbookPanel/HeroSublimingGoBackPanel"
            }, e.HeroSublimingInfoPanel = {
                Id: 13529,
                Path: "HeroCollectionHandbookPanel/HeroSublimingInfoPanel"
            }, e.ParanormalPuzzleBagPanel = {
                Id: 13530,
                Path: "ParanormalPuzzlePanel/ParanormalPuzzleBagPanel"
            }, e.ParanormalPuzzleStagePanel = {
                Id: 13531,
                Path: "ParanormalPuzzlePanel/ParanormalPuzzleStagePanel"
            }, e.ParanormalPuzzleQuickPanel = {
                Id: 13532,
                Path: "ParanormalPuzzlePanel/ParanormalPuzzleQuickPanel"
            }, e.ParanormalPuzzleSetPanel = {
                Id: 13533,
                Path: "ParanormalPuzzlePanel/ParanormalPuzzleSetPanel"
            }, e.ParanormalPuzzleAttrPanel = {
                Id: 13534,
                Path: "ParanormalPuzzlePanel/ParanormalPuzzleAttrPanel"
            }, e.ParanormalPuzzleHintPanel = {
                Id: 13535,
                Path: "ParanormalPuzzlePanel/ParanormalPuzzleHintPanel"
            }, e.ParanormalPuzzleDeComposePanel = {
                Id: 13536,
                Path: "ParanormalPuzzlePanel/ParanormalPuzzleDeComposePanel"
            }, e.ArtifactPanel = {
                Id: 13540,
                Path: "ArtifactPanel/ArtifactPanel"
            }, e.ArtifactSuccessTipPanel = {
                Id: 13541,
                Path: "ArtifactPanel/ArtifactSuccessTipPanel"
            }, e.ArtifactHeroSelectPanel = {
                Id: 13542,
                Path: "ArtifactPanel/ArtifactHeroSelectPanel"
            }, e.ArtifactChangePanel = {
                Id: 13543,
                Path: "ArtifactPanel/ArtifactChangePanel"
            }, e.ArtifactResonancePanel = {
                Id: 13544,
                Path: "ArtifactPanel/ArtifactResonancePanel"
            }, e.CommonItemInfoPanel = {
                Id: 13545,
                Path: "CommonPanel/CommonItemInfoPanel"
            }, e.CommonItemChangePanel = {
                Id: 13546,
                Path: "CommonPanel/CommonItemChangePanel"
            }, e.ArtifactHeroChangePanel = {
                Id: 13547,
                Path: "ArtifactPanel/ArtifactHeroChangePanel"
            }, e.CommonSkillStarDescPanel = {
                Id: 13548,
                Path: "CommonPanel/CommonSkillStarDescPanel"
            }, e.ArtifactStageEffectPanel = {
                Id: 13549,
                Path: "ArtifactPanel/ArtifactStageEffectPanel"
            }, e.ActivityHeroTestTowerEntryPanel = {
                Id: 13550,
                Path: "ActivityHeroTestTowerPanel/ActivityHeroTestTowerEntryPanel"
            }, e.ActivityHeroTestTowerPanel = {
                Id: 13551,
                Path: "ActivityHeroTestTowerPanel/ActivityHeroTestTowerPanel"
            }, e.EquConfigTipsPanel = {
                Id: 13552,
                Path: "HolyRelicsPanel/Panel/EquConfigTipsPanel"
            }, e.LuckyDrawPanel = {
                Id: 13553,
                Path: "LuckyDrawPanel/Panel/LuckyDrawPanel"
            }, e.LuckyDrawExchangePanel = {
                Id: 13554,
                Path: "LuckyDrawPanel/Panel/LuckyDrawExchangePanel"
            }, e.LuckyDrawMinePanel = {
                Id: 13555,
                Path: "LuckyDrawPanel/Panel/LuckyDrawMinePanel"
            }, e.LuckyDrawPublicityPanel = {
                Id: 13556,
                Path: "LuckyDrawPanel/Panel/LuckyDrawPublicityPanel"
            }, e.LuckyDrawShowNumberPanel = {
                Id: 13557,
                Path: "LuckyDrawPanel/Panel/LuckyDrawShowNumberPanel"
            }, e.LuckDrawShowRewardsPanel = {
                Id: 13558,
                Path: "LuckyDrawPanel/Panel/LuckDrawShowRewardsPanel"
            }, e.HolyRelicsPanel = {
                Id: 13559,
                Path: "HolyRelicsPanel/Panel/HolyRelicsPanel"
            }, e.HolyrelicConfigPanel = {
                Id: 13560,
                Path: "HolyRelicsPanel/Panel/HolyrelicConfigPanel"
            }, e.HolyRelicSettlementComponent = {
                Id: 13561,
                Path: "HolyRelicsPanel/Panel/HolyRelicSettlementComponent"
            }, e.HeroTestTowerStarAddtionPanel = {
                Id: 13562,
                Path: "ActivityHeroTestTowerPanel/HeroTestTowerStarAddtionPanel"
            }, e.ElementTempleBlessPanel = {
                Id: 13563,
                Path: "ElementTemplePanel/ElementTempleBlessPanel"
            }, e.ElementTempleBlessInfoPanel = {
                Id: 13564,
                Path: "ElementTemplePanel/ElementTempleBlessInfoPanel"
            }, e.PetGalleryListPanel = {
                Id: 13565,
                Path: "PetGalleryListPanel/PetGalleryListPanel"
            }, e.PetGalleryItemChangePanel = {
                Id: 13566,
                Path: "PetGalleryListPanel/PetGalleryItemChangePanel"
            }, e.RequestTestPanel = {
                Id: 13570,
                Path: "RequestTestPanel/RequestTestPanel"
            }, e.LuckyCharmGalleryPanel = {
                Id: 13571,
                Path: "LuckyCharmGalleryPanel/LuckyCharmGalleryPanel"
            }, e.CoreGalleryListPanel = {
                Id: 13572,
                Path: "CoreGalleryListPanel/CoreGalleryListPanel"
            }, e.SelectedGiftBagPanel = {
                Id: 13573,
                Path: "SelectedGiftBagPanel/SelectedGiftBagPanel"
            }, e.HolyRelicBuyTimesPanels = {
                Id: 13574,
                Path: "HolyRelicsPanel/Panel/HolyRelicBuyTimesPanel"
            }, e.ElementArenaPanel = {
                Id: 13575,
                Path: "ElementArenaPanel/ElementArenaPanel"
            }, e.CommonVSPanel = {
                Id: 13576,
                Path: "CommonPanel/CommonVSPanel"
            }, e.ElementArenaEnemyPanel = {
                Id: 13577,
                Path: "ElementArenaPanel/ElementArenaEnemyPanel"
            }, e.ActivityContinuousPurchasePanel = {
                Id: 13578,
                Path: "ActivityContinuousPurchasePanel/ActivityContinuousPurchasePanel"
            }, e.CommonEquipmentSetPanel = {
                Id: 13579,
                Path: "CommonPanel/CommonEquipmentSetPanel"
            }, e.CommonEquipmentSetTipsPanel = {
                Id: 13580,
                Path: "CommonPanel/CommonEquipmentSetTipsPanel"
            }, e.LuckyCharmComposeSuccessPanel = {
                Id: 13581,
                Path: "LuckyCharms/LuckyCharmComposeSuccessPanel"
            }, e.LuckyGiftPackRatePanel = {
                Id: 13582,
                Path: "LuckyGiftPanel/LuckyGiftPackRatePanel"
            }, e.NewDailyCheckInRunnerPanel = {
                Id: 13583,
                Path: "DailyCheckInRunnerPanel/NewDailyCheckInRunnerPanel"
            }, e.HeroSkinLevelUpSuccessPanel = {
                Id: 13584,
                Path: "HeroInfoPanel/HeroSkinLevelUpSuccessPanel"
            }, e.MallSkinPackPanel = {
                Id: 13585,
                Path: "MallSkinPackPanel/MallSkinPackPanel"
            }, e.ActivitySeckillGiftPanel = {
                Id: 13586,
                Path: "ActivitySeckillGiftPanel/ActivitySeckillGiftPanel"
            }, e.HolyEquipmentAdvancedResonancePanel = {
                Id: 13587,
                Path: "HolyEquipmentPanel/HolyEquipmentAdvancedResonancePanel"
            }, e.HolyEquipmentAdvancedSuccessPanel = {
                Id: 13588,
                Path: "HolyEquipmentPanel/HolyEquipmentAdvancedSuccessPanel"
            }, e.ActivityEmaPrayPanel = {
                Id: 13589,
                Path: "ActivityEmaPrayPanel/ActivityEmaPrayPanel"
            }, e.CashMallPanel = {
                Id: 13591,
                Path: "CashMallPanel/CashMallPanel"
            }, e.CashMallShopCartPanel = {
                Id: 13592,
                Path: "CashMallPanel/CashMallShopCartPanel"
            }, e.CashMallCouponSelectPanel = {
                Id: 13593,
                Path: "CashMallPanel/CashMallCouponSelectPanel"
            }, e.SoulRecordResolvePanel = {
                Id: 13594,
                Path: "SoulRecordPanel/SoulRecordResolvePanel"
            }, e.ActivityMagicComposePanel = {
                Id: 13595,
                Path: "ActivityMagicComposePanel/ActivityMagicComposePanel"
            }, e.PrivilegeGiftBuyHintPanel = {
                Id: 13596,
                Path: "ActivityMagicComposePanel/PrivilegeGiftBuyHintPanel"
            }, e.ContinuousPurchaseGiftPackPreviewPanel = {
                Id: 13597,
                Path: "ActivityContinuousPurchasePanel/ContinuousPurchaseGiftPackPreviewPanel"
            }, e.AngelHandbookPanel = {
                Id: 13598,
                Path: "HeroInfoPanel/AngelGuardPanel/AngelHandbookPanel"
            }, e.ActivityRunningTrainPanel = {
                Id: 13599,
                Path: "ActivityRunningTrainPanel/ActivityRunningTrainPanel"
            }, e.RunningTrainSelectHeroPanel = {
                Id: 13600,
                Path: "ActivityRunningTrainPanel/RunningTrainSelectHeroPanel"
            }, e.RunningTrainPointPanel = {
                Id: 13601,
                Path: "ActivityRunningTrainPanel/RunningTrainPointPanel"
            }, e.SecretTravelingShopPanel = {
                Id: 13602,
                Path: "SecretJourney/SecretTravelingShopPanel"
            }, e.RunningTrainRewardPreviewPanel = {
                Id: 13603,
                Path: "ActivityRunningTrainPanel/RunningTrainRewardPreviewPanel"
            }, e.RunningTrainAddDistanceSuccessPanel = {
                Id: 13604,
                Path: "ActivityRunningTrainPanel/RunningTrainAddDistanceSuccessPanel"
            }, e.CommonUpStarPreviewPanel = {
                Id: 13605,
                Path: "CommonPanel/CommonUpStarPreviewPanel"
            }, e.CommonGiftTaskPanel = {
                Id: 13606,
                Path: "CommonPanel/CommonGiftTaskPanel"
            }, e.CommonStoryGuidPanel = {
                Id: 13607,
                Path: "CommonPanel/CommonStoryGuidPanel"
            }, e.StarGemMonsterPanel = {
                Id: 13608,
                Path: "StarTemplePanel/StarHolyStatue/StarGemMonsterPanel"
            }, e.RechargeFeedbackPanel = {
                Id: 13609,
                Path: "RechargeFeedbackPanel/RechargeFeedbackPanel"
            }, e.ActivityBossReducePanel = {
                Id: 13610,
                Path: "ActivityBossPanel/ActivityBossReducePanel"
            }, e.RechargeFeedbackSelectPanel = {
                Id: 13611,
                Path: "RechargeFeedbackPanel/RechargeFeedbackSelectPanel"
            }, e.RechargeFeedbackPreviewPanel = {
                Id: 13612,
                Path: "RechargeFeedbackPanel/RechargeFeedbackPreviewPanel"
            }, e.AngelGodSoulPreviewPanel = {
                Id: 13613,
                Path: "AngelGodSoul/Panels/AngelGodSoulPreviewPanel"
            }, e.SuperWeaponInfoPanel = {
                Id: 13614,
                Path: "SuperWeaponPanel/SuperWeaponInfoPanel"
            }, e.SuperWeaponDetailPanel = {
                Id: 13615,
                Path: "SuperWeaponPanel/SuperWeaponDetailPanel"
            }, e.SuperWeaponTotalAttrPanel = {
                Id: 13616,
                Path: "SuperWeaponPanel/SuperWeaponTotalAttrPanel"
            }, e.SuperWeaponItemChangePanel = {
                Id: 13617,
                Path: "SuperWeaponPanel/SuperWeaponItemChangePanel"
            }, e.SuperWeaponAttrPreviewPanel = {
                Id: 13618,
                Path: "SuperWeaponPanel/SuperWeaponAttrPreviewPanel"
            }, e.ActivityHeroPKPanel = {
                Id: 13619,
                Path: "ActivityHeroPKPanel/ActivityHeroPKPanel"
            }, e.HeroPKSelectHeroPanel = {
                Id: 13620,
                Path: "ActivityHeroPKPanel/HeroPKSelectHeroPanel"
            }, e.TreasureHuntPanel = {
                Id: 13621,
                Path: "TreasureHuntPanel/TreasureHuntPanel"
            }, e.TreasureHuntFinalRewardPanel = {
                Id: 13622,
                Path: "TreasureHuntPanel/TreasureHuntFinalRewardPanel"
            }, e.TreasureHuntPreviewPanel = {
                Id: 13623,
                Path: "TreasureHuntPanel/TreasureHuntPreviewPanel"
            }, e.TreasureHuntTurnSelectPanel = {
                Id: 13624,
                Path: "TreasureHuntPanel/TreasureHuntTurnSelectPanel"
            }, e.CommonRewardSelectPanel = {
                Id: 13625,
                Path: "CommonPanel/CommonRewardSelectPanel"
            }, e.ChampionPreviewPanel = {
                Id: 13626,
                Path: "ActivityChampionPanel/ChampionPreviewPanel"
            }, e.ChampionPreviewSelectHeroPanel = {
                Id: 13627,
                Path: "ActivityChampionPanel/ChampionPreviewSelectHeroPanel"
            }, e.ChampionPreviewRankPanel = {
                Id: 13628,
                Path: "ActivityChampionPanel/ChampionPreviewRankPanel"
            }, e.AngelPanel = {
                Id: 13630,
                Path: "AngelPanel/AngelPanel"
            }, e.AngelPvpPanel = {
                Id: 13631,
                Path: "AngelPvpPanel/AngelPvpPanel"
            }, e.AngelPvePanel = {
                Id: 13632,
                Path: "AngelPvePanel/AngelPvePanel"
            }, e.CommonRenewPanel = {
                Id: 13633,
                Path: "CommonPanel/CommonRenewPanel"
            }, e.AngelCollectionHandbookPanel = {
                Id: 13634,
                Path: "AngelCollectionHandbookPanel/AngelCollectionHandbookPanel"
            }, e.ScratchCardPanel = {
                Id: 13635,
                Path: "LuckyDrawPanel/ScratchCardPanel/ScratchCardPanel"
            }, e.ScratchCardMinePanel = {
                Id: 13636,
                Path: "LuckyDrawPanel/ScratchCardPanel/ScratchCardMinePanel"
            }, e.ScratchCardPublicityPanel = {
                Id: 13637,
                Path: "LuckyDrawPanel/ScratchCardPanel/ScratchCardPublicityPanel"
            }, e.ActivityChampionPanel = {
                Id: 13638,
                Path: "ActivityChampionPanel/ActivityChampionPanel"
            }, e.ActivityChampionApplyPanel = {
                Id: 13639,
                Path: "ActivityChampionPanel/ActivityChampionApplyPanel"
            }, e.ActivityLuckyCakePanel = {
                Id: 13640,
                Path: "ActivityLuckyCakePanel/ActivityLuckyCakePanel"
            }, e.ActivityLuckyCakeRewardPreviewPanel = {
                Id: 13641,
                Path: "ActivityLuckyCakePanel/ActivityLuckyCakeRewardPreviewPanel"
            }, e.StrongholdWarCoinPurchasePanel = {
                Id: 13642,
                Path: "StrongholdWarPanel/StrongholdWarCoinPurchasePanel"
            }, e.StrongholdWarRoundEndPanel = {
                Id: 13643,
                Path: "StrongholdWarPanel/StrongholdWarRoundEndPanel"
            }, e.StrongholdWarSeasonDetailPanel = {
                Id: 13644,
                Path: "StrongholdWarPanel/StrongholdWarSeasonDetailPanel"
            }, e.CorsairPanel = {
                Id: 13650,
                Path: "CorsairPanel/CorsairPanel"
            }, e.ActivityBeatWatermelonPanel = {
                Id: 13660,
                Path: "ActivityBeatWatermelonPanel/ActivityBeatWatermelonPanel"
            }, e.ActivityBeatWatermelonResultPanel = {
                Id: 13661,
                Path: "ActivityBeatWatermelonPanel/ActivityBeatWatermelonResultPanel"
            }, e.ActivityRushRankFramePanel = {
                Id: 13662,
                Path: "ActivityRushRankFramePanel/ActivityRushRankFramePanel"
            }, e.ActivityRushRankPanel = {
                Id: 13663,
                Path: "ActivityRushRankFramePanel/ActivityRushRankPanel"
            }, e.ActivityRocketPanel = {
                Id: 13664,
                Path: "ActivityRocketPanel/ActivityRocketPanel"
            }, e.ActivityRocketPlayPanel = {
                Id: 13665,
                Path: "ActivityRocketPanel/ActivityRocketPlayPanel"
            }, e.ActivityRocketEndPanel = {
                Id: 13666,
                Path: "ActivityRocketPanel/ActivityRocketEndPanel"
            }, e.Activity2048Panel = {
                Id: 13667,
                Path: "Activity2048Panel/Activity2048Panel"
            }, e.Activity2048ConsumePanel = {
                Id: 13668,
                Path: "Activity2048Panel/Activity2048ConsumePanel"
            }, e.Activity2048EndPanel = {
                Id: 13669,
                Path: "Activity2048Panel/Activity2048EndPanel"
            }, e.NewYearWeaponInfoPanel = {
                Id: 13670,
                Path: "NewYearWeaponPanel/NewYearWeaponInfoPanel"
            }, e.NewYearWeaponDetailPanel = {
                Id: 13671,
                Path: "NewYearWeaponPanel/NewYearWeaponDetailPanel"
            }, e.ActivityBossBattlePanel = {
                Id: 13672,
                Path: "ActivityBossBattlePanel/ActivityBossBattlePanel"
            }, e.ActivityBossBattleJoinTeamPanel = {
                Id: 13673,
                Path: "ActivityBossBattlePanel/ActivityBossBattleJoinTeamPanel"
            }, e.ActivityBossBattleChallengePanel = {
                Id: 13674,
                Path: "ActivityBossBattlePanel/ActivityBossBattleChallengePanel"
            }, e.ActivityBossBattleRoundEndPanel = {
                Id: 13675,
                Path: "ActivityBossBattlePanel/ActivityBossBattleRoundEndPanel"
            }, e.AllianceBossPanel = {
                Id: 13676,
                Path: "AllianceBossPanel/AllianceBossPanel"
            }, e.AllianceBossRankRewardPanel = {
                Id: 13677,
                Path: "AllianceBossPanel/AllianceBossRankRewardPanel"
            }, e.AllianceBossRankPanel = {
                Id: 13678,
                Path: "AllianceBossPanel/AllianceBossRankPanel"
            }, e.CrossServerAllianceWarResultTip = {
                Id: 13680,
                Path: "CrossServerAllianceWarPanel/CrossServerAllianceWarResultTip"
            }, e.ColorDiamondRechargeEntrance = {
                Id: 15e3,
                Path: "ColorDiamondRechargePanel/ColorDiamondRechargeEntrance"
            }, e.ColorDiamondRechargePanel = {
                Id: 15001,
                Path: "ColorDiamondRechargePanel/ColorDiamondRechargePanel"
            }, e.FlappyBirdPanel = {
                Id: 15002,
                Path: "FlappyBirdPanel/FlappyBirdPanel"
            }, e.KnifeTrainingPartPanel = {
                Id: 15003,
                Path: "KnifeTrainingPanel/KnifeTrainingPartPanel"
            }, e.CircusMazePanel = {
                Id: 15004,
                Path: "CircusMazePanel/CircusMazePanel"
            }, e.CircusMazePreviewPanel = {
                Id: 15005,
                Path: "CircusMazePanel/CircusMazePreviewPanel"
            }, e.ParkourGamePanel = {
                Id: 15006,
                Path: "ParkourGamePanel/ParkourGamePanel"
            }, e.ParkourMainPanel = {
                Id: 15007,
                Path: "ParkourGamePanel/ParkourMainPanel"
            }, e.ParkourSettlementPanel = {
                Id: 15008,
                Path: "ParkourGamePanel/ParkourSettlementPanel"
            }, e.HeroJobChangePanel = {
                Id: 15010,
                Path: "HeroJobChangePanel/HeroJobChangePanel"
            }, e.HeroJobBookSyntheticPanel = {
                Id: 15011,
                Path: "HeroJobChangePanel/HeroJobBookSyntheticPanel"
            }, e.HeroJobSyntheticSelectPanel = {
                Id: 15012,
                Path: "HeroJobChangePanel/HeroJobSyntheticSelectPanel"
            }, e.HeroJobInfoPanel = {
                Id: 15013,
                Path: "HeroJobChangePanel/HeroJobInfoPanel"
            }, e.HeroJobActivePanel = {
                Id: 15014,
                Path: "HeroJobChangePanel/HeroJobActivePanel"
            }, e.ItemSelectUsePanel = {
                Id: 15015,
                Path: "HeroJobChangePanel/ItemSelectUsePanel"
            }, e.HeroJobItemUsePanel = {
                Id: 15016,
                Path: "HeroJobChangePanel/HeroJobItemUsePanel"
            }, e.CommonSelectHeroPanel = {
                Id: 15017,
                Path: "CommonPanel/CommonSelectHeroPanel"
            }, e.CrazyDiscountsPanel = {
                Id: 15018,
                Path: "CrazyDiscountsPanel/CrazyDiscountsPanel"
            }, e.DrawBattlePanel = {
                Id: 15021,
                Path: "DrawBattlePanel/DrawBattlePanel"
            }, e.DrawBattleGamePanel = {
                Id: 15022,
                Path: "DrawBattlePanel/DrawBattleGamePanel"
            }, e.MultipleGiftPanel = {
                Id: 15025,
                Path: "MultipleGiftPanel/MultipleGiftPanel"
            }, e.GlobalChampionMainPanel = {
                Id: 15030,
                Path: "GlobalChampionShipPanel/GlobalChampionMainPanel"
            }, e.GlobalChampionShipPanel = {
                Id: 15031,
                Path: "GlobalChampionShipPanel/GlobalChampionShipPanel"
            }, e.GlobalChampionSelectPanel = {
                Id: 15032,
                Path: "GlobalChampionShipPanel/GlobalChampionSelectPanel"
            }, e.GlobalChampionReportPanel = {
                Id: 15033,
                Path: "GlobalChampionShipPanel/GlobalChampionReportPanel"
            }, e.GlobalChampionRewardPanel = {
                Id: 15034,
                Path: "GlobalChampionShipPanel/GlobalChampionRewardPanel"
            }, e.GlobalChampionSettleRewardPanel = {
                Id: 15035,
                Path: "GlobalChampionShipPanel/GlobalChampionSettleRewardPanel"
            }, e.CommonBuyItemPanel = {
                Id: 15036,
                Path: "CommonPanel/CommonBuyItemPanel"
            }, e.NoviceFormationPanel = {
                Id: 15037,
                Path: "NoviceFormationPanel/NoviceFormationPanel"
            }, e.NoviceFormationGiftPanel = {
                Id: 15038,
                Path: "NoviceFormationPanel/NoviceFormationGiftPanel"
            }, e.ActivityKoiGiftPanel = {
                Id: 15039,
                Path: "ActivityKoiGiftPanel/ActivityKoiGiftPanel"
            }, e.BreakOutMatchPanel = {
                Id: 15040,
                Path: "BreakOutMatchPanel/BreakOutMatchPanel"
            }, e.BreakOutMatchRewardPanel = {
                Id: 15041,
                Path: "BreakOutMatchPanel/BreakOutMatchRewardPanel"
            }, e.BreakOutMatchSelectPanel = {
                Id: 15042,
                Path: "BreakOutMatchPanel/BreakOutMatchSelectPanel"
            }, e.BreakOutMatchChallengePanel = {
                Id: 15043,
                Path: "BreakOutMatchPanel/BreakOutMatchChallengePanel"
            }, e.BreakOutMatchLevelPanel = {
                Id: 15044,
                Path: "BreakOutMatchPanel/BreakOutMatchLevelPanel"
            }, e.GiftAllHeroesPanel = {
                Id: 15045,
                Path: "GiftAllHeroesPanel/GiftAllHeroesPanel"
            }, e.AccountActivityPanel = {
                Id: 15046,
                Path: "AccountActivityPanel/AccountActivityPanel"
            }, e.AccountActivityLnkPanel = {
                Id: 15047,
                Path: "AccountActivityPanel/AccountActivityLnkPanel"
            }, e.BreakOutMatchSettleRewardPanel = {
                Id: 15048,
                Path: "BreakOutMatchPanel/BreakOutMatchSettleRewardPanel"
            }, e.TradeWarPackRewardPanel = {
                Id: 15049,
                Path: "TradeWarPanel/TradeWarPackRewardPanel"
            }, e.TradeWarPanel = {
                Id: 15050,
                Path: "TradeWarPanel/TradeWarPanel"
            }, e.TradeWarMapPanel = {
                Id: 15051,
                Path: "TradeWarPanel/TradeWarMapPanel"
            }, e.TradeWarNpcLevelUpPanel = {
                Id: 15052,
                Path: "TradeWarPanel/TradeWarNpcLevelUpPanel"
            }, e.TradeWarTradePanel = {
                Id: 15053,
                Path: "TradeWarPanel/TradeWarTradePanel"
            }, e.TradeWarBuyAndSellPanel = {
                Id: 15054,
                Path: "TradeWarPanel/TradeWarBuyAndSellPanel"
            }, e.TradeWarTargetCitySelectionPanel = {
                Id: 15055,
                Path: "TradeWarPanel/TradeWarTargetCitySelectionPanel"
            }, e.TradeWarTradeSpeedUpPanel = {
                Id: 15056,
                Path: "TradeWarPanel/TradeWarTradeSpeedUpPanel"
            }, e.TradeWarSettlementPanel = {
                Id: 15057,
                Path: "TradeWarPanel/TradeWarSettlementPanel"
            }, e.TradeWarReportPanel = {
                Id: 15058,
                Path: "TradeWarPanel/TradeWarReportPanel"
            }, e.TradeWarAttackPanel = {
                Id: 15059,
                Path: "TradeWarPanel/TradeWarAttackPanel"
            }, e.FightingMiniGameMainPanel = {
                Id: 15060,
                Path: "FightingMiniGamePanel/FightingMiniGameMainPanel"
            }, e.FightingMiniGameBattlePanel = {
                Id: 15061,
                Path: "FightingMiniGamePanel/FightingMiniGameBattlePanel"
            }, e.FightingMiniGameResultPanel = {
                Id: 15062,
                Path: "FightingMiniGamePanel/FightingMiniGameResultPanel"
            }, e.FightingMiniGameReportPanel = {
                Id: 15063,
                Path: "FightingMiniGamePanel/FightingMiniGameReportPanel"
            }, e.NoviceTrainingPanel = {
                Id: 15064,
                Path: "NoviceTrainingPanel/NoviceTrainingPanel"
            }, e.NoviceTrainingRewardPanel = {
                Id: 15065,
                Path: "NoviceTrainingPanel/NoviceTrainingRewardPanel"
            }, e.NoviceTrainingReportPanel = {
                Id: 15066,
                Path: "NoviceTrainingPanel/NoviceTrainingReportPanel"
            }, e.DailySummonResultPanel = {
                Id: 15067,
                Path: "SummonHeroPanel/DailySummonResultPanel"
            }, e.ActivityRushUpPanel = {
                Id: 15068,
                Path: "ActivityRushUpPanel/ActivityRushUpPanel"
            }, e.ActivityRushUpPackRewardPanel = {
                Id: 15069,
                Path: "ActivityRushUpPanel/ActivityRushUpPackRewardPanel"
            }, e.DailyBuffPanel = {
                Id: 15070,
                Path: "WelfarePanel/DailyBuffPanel"
            }, e.FantasticPasturePanel = {
                Id: 15071,
                Path: "FantasticPasturePanel/FantasticPasturePanel"
            }, e.FantasticPastureUseItemPanel = {
                Id: 15072,
                Path: "FantasticPasturePanel/FantasticPastureUseItemPanel"
            }, e.FantasticPastureBillingPanel = {
                Id: 15074,
                Path: "FantasticPasturePanel/FantasticPastureBillingPanel"
            }, e.NewPersonalityPanel = {
                Id: 15075,
                Path: "NewPersonalityPanel/NewPersonalityPanel"
            }, e.NewPersonalityInfoPanel = {
                Id: 15076,
                Path: "NewPersonalityPanel/NewPersonalityInfoPanel"
            }, e.NewPersonalitySuccessPanel = {
                Id: 15077,
                Path: "NewPersonalityPanel/NewPersonalitySuccessPanel"
            }, e.NewPersonalitySummonPanel = {
                Id: 15078,
                Path: "NewPersonalitySummonPanel/NewPersonalitySummonPanel"
            }, e.RuinsWarEntrancePanel = {
                Id: 15080,
                Path: "RuinsWar/RuinsWarEntrancePanel"
            }, e.RuinsWarCampPanel = {
                Id: 15081,
                Path: "RuinsWar/RuinsWarCampPanel"
            }, e.RuinsWarTaskPanel = {
                Id: 15082,
                Path: "RuinsWar/RuinsWarTaskPanel"
            }, e.RuinsRankRewardsPanel = {
                Id: 15083,
                Path: "RuinsWar/RuinsRankRewardsPanel"
            }, e.RuinsWarAbilityPanel = {
                Id: 15084,
                Path: "RuinsWar/RuinsWarAbilityPanel"
            }, e.RuinsWarBattleFlagPanel = {
                Id: 15085,
                Path: "RuinsWar/RuinsWarBattleFlagPanel"
            }, e.RuinsWarRoundResultPanel = {
                Id: 15086,
                Path: "RuinsWar/RuinsWarRoundResultPanel"
            }, e.RuinsWarBattlePanel = {
                Id: 15087,
                Path: "RuinsWar/RuinsWarBattlePanel"
            }, e.RuinsWarRevivePanel = {
                Id: 15088,
                Path: "RuinsWar/RuinsWarRevivePanel"
            }, e.FlipHappyPanel = {
                Id: 15089,
                Path: "FlipHappyPanel/FlipHappyPanel"
            }, e.FlipHappyOpenNextRoundPanel = {
                Id: 15090,
                Path: "FlipHappyPanel/FlipHappyOpenNextRoundPanel"
            }, e.CutPriceGiftPackPanel = {
                Id: 15091,
                Path: "CutPriceGiftPackPanel/CutPriceGiftPackPanel"
            }, e.NewWarTokenPanel = {
                Id: 15092,
                Path: "NewWarTokenPanel/NewWarTokenPanel"
            }, e.NewWarTokenOptionalPanel = {
                Id: 15092,
                Path: "NewWarTokenPanel/NewWarTokenOptionalPanel"
            }, e.NewWarTokenBuyPanel = {
                Id: 15093,
                Path: "NewWarTokenPanel/NewWarTokenBuyPanel"
            }, e.RhythmGameEntrancePanel = {
                Id: 15094,
                Path: "RhythmGamePanel/RhythmGameEntrancePanel"
            }, e.RhythmGamePanel = {
                Id: 15095,
                Path: "RhythmGamePanel/RhythmGamePanel"
            }, e.RhythmSuccessPanel = {
                Id: 15096,
                Path: "RhythmGamePanel/RhythmSuccessPanel"
            }, e.RhythmTutorialPanel = {
                Id: 15097,
                Path: "RhythmGamePanel/RhythmTutorialPanel"
            }, e.PiggyBankPanel = {
                Id: 15098,
                Path: "PiggyBankPanel/PiggyBankPanel"
            }, e.PiggyBankNextLevelPanel = {
                Id: 15099,
                Path: "PiggyBankPanel/PiggyBankNextLevelPanel"
            }, e.PowerTaskPanel = {
                Id: 15100,
                Path: "PowerTaskPanel/PowerTaskPanel"
            }, e.PetChooseHatchPanel = {
                Id: 15101,
                Path: "HeroPetPanel/PetChooseHatchPanel"
            }, e.PetRefineLevelPanel = {
                Id: 15102,
                Path: "HeroPetPanel/PetRefineLevelPanel"
            }, e.PetCollectionHandBookPanel = {
                Id: 15103,
                Path: "HeroPetPanel/PetCollectionHandBookPanel"
            }, e.PetSelectHeroPanel = {
                Id: 15104,
                Path: "HeroPetPanel/PetSelectHeroPanel"
            }, e.TalentResonanceSuccessPanel = {
                Id: 15105,
                Path: "HeroInfoPanel/TalentResonanceSuccessPanel"
            }, e.UseCurrencyHintPanel = {
                Id: 15106,
                Path: "DiamondShopPanel/UseCurrencyHintPanel"
            }, e.FloatIconPanel = {
                Id: 15107,
                Path: "FloatIconPanel/FloatIconPanel"
            }, e.BattleDisplayRewardsPanel = {
                Id: 15108,
                Path: "FloatIconPanel/BattleDisplayRewardsPanel"
            }, e.ActivityExchangeShopTipPanel = {
                Id: 15109,
                Path: "ActivityExchangeShopPanel/ActivityExchangeShopTipPanel"
            }, e.MallNewPanel = {
                Id: 15110,
                Path: "MallPanel/MallNewPanel"
            }, e.IdleBattleGetWayPanel = {
                Id: 15111,
                Path: "IdleBattlePanel/IdleBattleGetWayPanel"
            }, e.RankMatchArenaPanel = {
                Id: 15120,
                Path: "Arena/RankMatchArenaPanel/RankMatchArenaPanel",
                MapType: o.MapType.RankMatch
            }, e.RankMatchBattleReportPanel = {
                Id: 15121,
                Path: "Arena/RankMatchArenaPanel/RankMatchBattleReportPanel"
            }, e.RankMatchChallengeConfirmPanel = {
                Id: 15122,
                Path: "Arena/RankMatchArenaPanel/RankMatchChallengeConfirmPanel"
            }, e.RankMatchRankRewardPanel = {
                Id: 15123,
                Path: "Arena/RankMatchArenaPanel/RankMatchRankRewardPanel"
            }, e.RankMatchRankPanel = {
                Id: 15124,
                Path: "Arena/RankMatchArenaPanel/RankMatchRankPanel"
            }, e.AutoSetHeroHintPanel = {
                Id: 15125,
                Path: "SelectMaterialHeroPanel/AutoSetHeroHintPanel"
            }, e.CampSupportRankDetailPanel = {
                Id: 15126,
                Path: "CampSupportPanel/CampSupportRankDetailPanel"
            }, e.ActivitySingleRankPanel = {
                Id: 15127,
                Path: "ActivitySingleRankPanel/ActivitySingleRankPanel"
            }, e.LuckyGiftPanel = {
                Id: 15128,
                Path: "LuckyGiftPanel/LuckyGiftPanel"
            }, e.IdleBattleExtendTimePanel = {
                Id: 15129,
                Path: "IdleBattlePanel/IdleBattleExtendTimePanel"
            }, e.GameUnLockPopPanel = {
                Id: 15130,
                Path: "GameUnLockPopPanel/GameUnlockPopPanel"
            }, e.ChainGiftPanel = {
                Id: 15131,
                Path: "ChainGiftPanel/ChainGiftPanel"
            }, e.BagViewRewardPanel = {
                Id: 15132,
                Path: "BagPanel/BagViewRewardPanel"
            }, e.SaintsWarAppendsInfoPanel = {
                Id: 15133,
                Path: "SaintsWarPanel/SaintsWarAppendsInfoPanel"
            }, e.MagicCircleInfoPanel = {
                Id: 15134,
                Path: "MagicCirclePanel/MagicCircleInfoPanel"
            }, e.MagicCircleSkillTipPanel = {
                Id: 15135,
                Path: "MagicCirclePanel/MagicCircleSkillTipPanel"
            }, e.MagicCircleTalentDetailPanel = {
                Id: 15136,
                Path: "MagicCirclePanel/MagicCircleTalentDetailPanel"
            }, e.MagicCircleUpStarSucessPanel = {
                Id: 15137,
                Path: "MagicCirclePanel/MagicCircleUpStarSucessPanel"
            }, e.MagicCircleRebornPanel = {
                Id: 15138,
                Path: "MagicCirclePanel/MagicCircleRebornPanel"
            }, e.MagicCircleCollectionHandBookPanel = {
                Id: 15139,
                Path: "MagicCirclePanel/MagicCircleCollectionHandBookPanel"
            }, e.MagicCircleChangePanel = {
                Id: 15140,
                Path: "MagicCirclePanel/MagicCircleChangePanel"
            }, e.MagicCircleDetailsPanel = {
                Id: 15141,
                Path: "MagicCirclePanel/MagicCircleDetailsPanel"
            }, e.ActivityOpenBoxPanel = {
                Id: 15142,
                Path: "ActivityOpenBoxPanel/ActivityOpenBoxPanel"
            }, e.ActivityOpenBoxDisPlayRewradPanel = {
                Id: 15143,
                Path: "ActivityOpenBoxPanel/ActivityOpenBoxDisPlayRewradPanel"
            }, e.ActivityOpenBoxOptionalPanel = {
                Id: 15144,
                Path: "ActivityOpenBoxPanel/ActivityOpenBoxOptionalPanel"
            }, e.MagicCircleDetailsTipPanel = {
                Id: 15145,
                Path: "MagicCirclePanel/MagicCircleDetailsTipPanel"
            }, e.PetDetailsTipPanel = {
                Id: 15146,
                Path: "HeroPetPanel/PetDetailsTipPanel"
            }, e.AssaultOperationPanel = {
                Id: 15200,
                Path: "AssaultOperation/AssaultOperationPanel"
            }, e.AssaultOperationMapPanel = {
                Id: 15201,
                Path: "AssaultOperation/AssaultOperationMapPanel"
            }, e.AssaultOperationFamilyMutualAidPanel = {
                Id: 15202,
                Path: "AssaultOperation/AssaultOperationFamilyMutualAidPanel"
            }, e.AssaultOperationFamilyMutualAidGotResultPanel = {
                Id: 15203,
                Path: "AssaultOperation/AssaultOperationFamilyMutualAidGotResultPanel"
            }, e.AssaultOperationAchieveRewardsPanel = {
                Id: 15204,
                Path: "AssaultOperation/AssaultOperationAchieveRewardsPanel"
            }, e.AssaultOperationFamilyPanel = {
                Id: 15205,
                Path: "AssaultOperation/AssaultOperationFamilyPanel"
            }, e.AssaultOperationSendSpriteWaterPanel = {
                Id: 15206,
                Path: "AssaultOperation/AssaultOperationSendSpriteWaterPanel"
            }, e.AssaultOperationSendSpriteWaterLogPanel = {
                Id: 15207,
                Path: "AssaultOperation/AssaultOperationSendSpriteWaterLogPanel"
            }, e.AssaultOperationSpriteStoneRewardsRulePanel = {
                Id: 15208,
                Path: "AssaultOperation/AssaultOperationSpriteStoneRewardsRulePanel"
            }, e.AssaultOperationAttackTargetPanel = {
                Id: 15209,
                Path: "AssaultOperation/AssaultOperationAttackTargetPanel"
            }, e.MaterialUsePanel = {
                Id: 15210,
                Path: "AssaultOperation/MaterialUsePanel"
            }, e.AssaultOperationSupplementPowerPanel = {
                Id: 15211,
                Path: "AssaultOperation/AssaultOperationSupplementPowerPanel"
            }, e.AssaultOperationForbidSyncPanel = {
                Id: 15212,
                Path: "AssaultOperation/AssaultOperationForbidSyncPanel"
            }, e.AssaultOperationSpritePowerBallPanel = {
                Id: 15213,
                Path: "AssaultOperation/AssaultOperationSpritePowerBallPanel"
            }, e.AssaultOperationQueuePanel = {
                Id: 15214,
                Path: "AssaultOperation/AssaultOperationQueuePanel"
            }, e.AssaultOperationIntelligencePanel = {
                Id: 15215,
                Path: "AssaultOperation/AssaultOperationIntelligencePanel"
            }, e.AssaultOperationBattleRecordPanel = {
                Id: 15216,
                Path: "AssaultOperation/AssaultOperationBattleRecordPanel"
            }, e.AssaultOperationRankRewardsPanel = {
                Id: 15217,
                Path: "AssaultOperation/AssaultOperationRankRewardsPanel"
            }, e.AssaultOperationRankingGuessPanel = {
                Id: 15218,
                Path: "AssaultOperation/AssaultOperationRankingGuessPanel"
            }, e.AssaultOperationRankingGuessRewardsPanel = {
                Id: 15219,
                Path: "AssaultOperation/AssaultOperationRankingGuessRewardsPanel"
            }, e.AssaultOperationMatchSchedulePanel = {
                Id: 15220,
                Path: "AssaultOperation/AssaultOperationMatchSchedulePanel"
            }, e.AssaultOperationDaySettlementPanel = {
                Id: 15221,
                Path: "AssaultOperation/AssaultOperationDaySettlementPanel"
            }, e.AssaultOperationWinnerPanel = {
                Id: 15222,
                Path: "AssaultOperation/AssaultOperationWinnerPanel"
            }, e.AssaultOperationDeadHintPanel = {
                Id: 15223,
                Path: "AssaultOperation/AssaultOperationDeadHintPanel"
            }, e.StarPrayPanel = {
                Id: 15224,
                Path: "StarPrayPanel/StarPrayPanel"
            }, e.AssaultOperationServerInfoPanel = {
                Id: 15225,
                Path: "AssaultOperation/AssaultOperationServerInfoPanel"
            }, e.ElementStrengthenInfoPanel = {
                Id: 15226,
                Path: "ClimbTowerPanel/ElementStrengthenInfoPanel"
            }, e.ElementStrengthenAddListPanel = {
                Id: 15227,
                Path: "ClimbTowerPanel/ElementStrengthenAddListPanel"
            }, e.ItemDecomposeBagPanel = {
                Id: 15228,
                Path: "ItemDecomposePanel/ItemDecomposeBagPanel"
            }, e.ItemDecomposeConfirmPanel = {
                Id: 15229,
                Path: "ItemDecomposePanel/ItemDecomposeConfirmPanel"
            }, e.TaskWarTokenPanel = {
                Id: 15230,
                Path: "TaskWarTokenPanel/TaskWarTokenPanel"
            }, e.ScrollMessagePanel = {
                Id: 15231,
                Path: "HintPanel/ScrollMessagePanel"
            }, e.ArtifactNoticePanel = {
                Id: 15240,
                Path: "ArtifactPanel/ArtifactNoticePanel"
            }, e.AssaultOperationRankPanel = {
                Id: 15340,
                Path: "AssaultOperation/AssaultOperationRankPanel"
            }, e.AssaultOperationPlotPanel = {
                Id: 15341,
                Path: "AssaultOperation/AssaultOperationPlotPanel"
            }, e.NewGameGuideFingerPanel = {
                Id: 15342,
                Path: "GameUnLockPopPanel/NewGameGuideFingerPanel"
            }, e.MallSelectHeroPanel = {
                Id: 15343,
                Path: "MallPanel/MallSelectHeroPanel"
            }, e.MallNewHeroTipPanel = {
                Id: 15344,
                Path: "MallPanel/MallNewHeroTipPanel"
            }, e.AllianceInsigniaPanel = {
                Id: 15345,
                Path: "AllianceInsigniaPanel/AllianceInsigniaPanel"
            }, e.AllianceInsigniaOverViewPanel = {
                Id: 15346,
                Path: "AllianceInsigniaPanel/AllianceInsigniaOverViewPanel"
            }, e.TestPlayerNamingPanel = {
                Id: 15348,
                Path: "test-name/test-name"
            }, e
        }();
        n.PanelConfig = i, cc._RF.pop()
    }, {
        "../../Consts/Consts": "Consts"
    }],
    GlobalSetting: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "da93fSFrcBDVbV5sR66JH/r", "GlobalSetting"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GlobalSetting = void 0;
        var o = function() {
            function e() {}
            return e.SCREEN_REFERENCE_PIXELS_PERUNIT = 100, e.DESIGN_SCREEN_WIDTH = 1080, e.DESIGN_SCREEN_HEIGHT = 1850, e.MAX_SCREEN_ASPECT_RATIO = 21 / 9, e.MAX_DESIGN_SCREEN_HEIGHT = 2520, e.MIN_DESIGN_SCREEN_HEIGHT = 1850, e.RPC_SECRET_CODE = "KSnU_3wy5d3JH", e.RPC_HTTP_RETRY_COUNT = 3, e.RPC_TCP_RETRY_COUNT = 20, e.BATTLE_HERO_ASSET_SCALE_FACTOR = .875, e.BATTLE_HERO_ASSET_SCALE_X = 1, e.CONFIG_DATA_KEY_PREFIX = "__config_", e.GOOGLE_ACCOUNT_CLIENT_ID = "297153446008-ur9sh7gabsddfl5bsvfkj1h0tnqa5b99.apps.googleusercontent.com", e.FACEBOOK_ACCOUNT_CLIENT_ID = "138381626004042", e
        }();
        n.GlobalSetting = o, cc._RF.pop()
    }, {}],
    GodSoulCastItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0e927/KVBFBlZ9Gp+bm2Pz+", "GodSoulCastItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SkillName = null, t.SkillDesc = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    this.SkillName.string = e, this.SkillDesc.string = t
                }, i([l(cc.Label)], t.prototype, "SkillName", void 0), i([l(cc.Label)], t.prototype, "SkillDesc", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    GodSoulCombineMaterialComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dca29sFQDJDgYN1UYcxVSCF", "GodSoulCombineMaterialComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GodSoulCombineMaterialShowModel = void 0;
        var a, s = e("./CustomToggle"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/GameEventIds"),
            d = e("../../../EZFramework/EZFramework"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.Count1 = 0] = "Count1", e[e.Count2 = 1] = "Count2", e[e.NoCount = 2] = "NoCount"
        })(a = n.GodSoulCombineMaterialShowModel || (n.GodSoulCombineMaterialShowModel = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LevelLabel = null, t.Name = null, t.Count = null, t.UserHaveLabel = null, t.NeedCountLabel = null, t.CountNode1 = null, t.CountNode2 = null, t.Toggle = null, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "NeedCount", {
                get: function() {
                    return this._needCount
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "UserHave", {
                get: function() {
                    return this._userHave
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Level", {
                get: function() {
                    return this._level
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                d.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(l.UserGodSoul_Model._n_), this.Refresh, this), d.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(l.UserGodSoul_Model._n_), this.Refresh, this), d.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(l.UserGodSoul_Model._n_), this.Refresh, this)
            }, t.prototype.onDisable = function() {
                d.Game.EventDispatcher.Off(p.GameEventIds.AddDataDetail.Fmt(l.UserGodSoul_Model._n_), this.Refresh, this), d.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(l.UserGodSoul_Model._n_), this.Refresh, this), d.Game.EventDispatcher.Off(p.GameEventIds.RemoveDataDetail.Fmt(l.UserGodSoul_Model._n_), this.Refresh, this)
            }, t.prototype.Set = function(e, t) {
                if (e) {
                    this.LevelLabel.string = e.toString(), this._level = e, this._model = t, this.Name.string = "GodSoul_level".ToUILocale().Fmt(e);
                    var n = u.ConfigDataComponent.Instance.GetConfigById(c.AngelGodSoulLevel_Config, e);
                    n && (this._needCount = n.ComposeData[0], this.Refresh())
                }
            }, t.prototype.Refresh = function() {
                var e = this,
                    t = u.DataCenter.Instance.GetDataList(l.UserGodSoul_Model);
                this._userHave = 0, t.forEach(function(t) {
                    u.ConfigDataComponent.Instance.GetConfigById(c.AngelGodSoul_Config, t.ItemId).Level != e._level || t.OwnerId || t.Locked || e._userHave++
                }), this.RenderUserHave()
            }, t.prototype.RenderUserHave = function() {
                this._model == a.Count1 ? (this.CountNode1.active = !0, this.CountNode2.active = !1, this.Count.string = "" + this._userHave) : this._model == a.Count2 ? (this.Toggle.enabled = !1, this.CountNode1.active = !1, this.CountNode2.active = !0, this.UserHaveLabel.string = "" + this._userHave, this.NeedCountLabel.string = "/" + this._needCount, this._userHave >= this._needCount ? this.UserHaveLabel.node.color = (new cc.Color).fromHEX("#23e123") : this.UserHaveLabel.node.color = (new cc.Color).fromHEX("#ff4b4b")) : (this.Toggle.enabled = !1, this.CountNode1.active = !1, this.CountNode2.active = !1)
            }, i([y(cc.Label)], t.prototype, "LevelLabel", void 0), i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Label)], t.prototype, "Count", void 0), i([y(cc.Label)], t.prototype, "UserHaveLabel", void 0), i([y(cc.Label)], t.prototype, "NeedCountLabel", void 0), i([y(cc.Node)], t.prototype, "CountNode1", void 0), i([y(cc.Node)], t.prototype, "CountNode2", void 0), i([y(s.default)], t.prototype, "Toggle", void 0), i([f], t)
        }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "./CustomToggle": "CustomToggle"
    }],
    GodSoulCombineOneButtonPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e8ea25nA4tEF6ux2BAvujjL", "GodSoulCombineOneButtonPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../Components/CustomLayout"),
            m = e("../Components/CustomToggle"),
            I = e("../Components/GodSoulCombineMaterialComponent"),
            _ = e("./AngelGodSoulCombinePreviewPanel"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.Desc = null, t.CustomLayout = null, t.SubTitle = null, t.LeftContainer = null, t.RightContainer = null, t.CurrencyBar = null, t.SubtractNode = null, t.AddNode = null, t.ProgressBarNum = null, t.OkNode = null, t.OkNodeLabe = null, t.Slider = null, t.ProgressBar = null, t._levelCountMap = {}, t._chosenLevel = 1, t._progress = 0, t._combineTimes = 0, t._canCombineTimes = 0, t._userHave = 0, t._eventFlag = {}, t._soulSid = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, u.AssetsManager.Instance.LoadAsset("AngelGodSoul/Components/GodSoulCombineMaterialComponent", cc.Prefab)];
                                case 1:
                                    return t._materialsPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "compose_auto".ToUILocale(), this.Desc.string = "GodSoul_SelectMaterials".ToUILocale(), this.SubTitle.string = "GodSoul_CombinePlan".ToUILocale(), this.ProgressBarNum.string = "0", this.OkNodeLabe.string = "ok".ToUILocale(), this.OkNode.on("click", this.OnClickOk, this), this.AddNode.on("click", this.OnClickAdd, this), this.SubtractNode.on("click", this.OnClickSubtract, this), this.Slider.node.on("slide", this.OnSlide, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._levelConfigs = h.ConfigDataComponent.Instance.GetArrayConfig(l.AngelGodSoulLevel_Config), this.InitSoulsData()
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), t) this.InitSoulsData(), this.RefreshProgressBar();
                    else {
                        this.CustomLayout.Init(this._materialsPrefab), this.CustomLayout.RenderLayOut(this._levelConfigs.length - 1), this.RenderLeftMaterial(), this.RenderRightMaterial();
                        var n = this._levelConfigs[0].ComposeData[1];
                        this.CurrencyBar.Init(n, !1, void 0, 0), this.onSelectLevel()
                    }
                    this.SetProgress()
                }, t.prototype.RenderLeftMaterial = function() {
                    if (!this._leftComponent) {
                        var e = this.InstanceMaterial();
                        this.LeftContainer.addChild(e.node), this._leftComponent = e
                    }
                    this._leftComponent.Set(this._chosenLevel, I.GodSoulCombineMaterialShowModel.Count2)
                }, t.prototype.RenderRightMaterial = function() {
                    if (!this._rightComponent) {
                        var e = this.InstanceMaterial();
                        this.RightContainer.addChild(e.node), this._rightComponent = e
                    }
                    this._rightComponent.Set(this._chosenLevel + 1, I.GodSoulCombineMaterialShowModel.NoCount)
                }, t.prototype.InstanceMaterial = function() {
                    return cc.instantiate(this._materialsPrefab).getComponent(I.default)
                }, t.prototype.OnClickOk = function() {
                    var e = this,
                        t = this._levelConfigs.findIndex(function(t) {
                            return t.Id == e._chosenLevel
                        }),
                        n = this._levelConfigs[t].ComposeData[1];
                    if (this._combineTimes * this._levelConfigs[t].ComposeData[2] > h.DataCenter.Instance.GetItemCount(n)) f.UIUtlity.ShowFloatingHint("arena_notEnoughTickets".ToUILocale().Fmt(n.ToItemName()));
                    else if (this._chosenLevel && this._combineTimes) {
                        var o = h.ConfigDataComponent.Instance.GetConfigById(l.AngelGodSoulLevel_Config, this._chosenLevel),
                            r = this._soulSid[this._chosenLevel].slice(0, this._combineTimes * o.ComposeData[0]);
                        u.UIManager.Instance.ShowUIPanel(d.PanelConfig.AngelGodSoulCombinePreviewPanel.Path, _.GodSoulCombinePreviewModel.itemSid, r)
                    } else f.UIUtlity.ShowFloatingHint("GodSoul_CombineNoSelect".ToUILocale())
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        n._eventFlag[t] || (n._eventFlag[t] = !0, e.on("toggle", n.onSelectLevel, n));
                        var o = e.getComponent(I.default),
                            r = n._levelConfigs[t];
                        o.Set(r.Id, I.GodSoulCombineMaterialShowModel.Count1), n.IsReDisPlay || 0 != t || (o.getComponent(m.default).check(), n._firstComponent = o)
                    })
                }, t.prototype.onSelectLevel = function(e) {
                    var t;
                    t = e ? e.node.getComponent(I.default) : this._firstComponent, this._chosenLevel = t.Level, this._chosenComponent = t, this.RefreshProgressBar(), t.UserHave < t.NeedCount ? this.Slider.enabled = !1 : this.Slider.enabled = !0
                }, t.prototype.RefreshProgressBar = function() {
                    var e = this._chosenComponent.NeedCount;
                    this._userHave = this._chosenComponent.UserHave, this._canCombineTimes = Math.floor(this._userHave / e), this._progress = 0, this._combineTimes = 0, this.RenderLeftMaterial(), this.RenderRightMaterial(), this.SetProgress(), this.CurrencyBar.Init(this._levelConfigs[0].ComposeData[1], !1, void 0, 0)
                }, t.prototype.OnSlide = function() {
                    this._progress = this.Slider.progress, this._combineTimes = Math.floor(this._canCombineTimes * this._progress), this.SetProgress()
                }, t.prototype.OnClickSubtract = function() {
                    this._combineTimes >= 1 && (this._combineTimes -= 1, this._progress = this._combineTimes / this._canCombineTimes), this.SetProgress()
                }, t.prototype.OnClickAdd = function() {
                    this._combineTimes < this._canCombineTimes && (this._combineTimes += 1, this._progress = this._combineTimes / this._canCombineTimes), this.SetProgress()
                }, t.prototype.SetProgress = function() {
                    this.Slider.progress = this._progress, this.ProgressBarNum.string = "" + this._combineTimes + "GodSoul_CombineTimes".ToUILocale(), this.ProgressBar.progress = this._progress;
                    var e = h.ConfigDataComponent.Instance.GetConfigById(l.AngelGodSoulLevel_Config, this._chosenLevel);
                    this.CurrencyBar.Init(e.ComposeData[1], !1, void 0, e.ComposeData[2] * this._combineTimes)
                }, t.prototype.InitSoulsData = function() {
                    var e = this;
                    this._soulSid = {}, h.DataCenter.Instance.GetDataList(c.UserGodSoul_Model).forEach(function(t) {
                        if (!t.OwnerId && !t.Locked) {
                            var n = h.ConfigDataComponent.Instance.GetConfigById(l.AngelGodSoul_Config, t.ItemId);
                            e._soulSid[n.Level] || (e._soulSid[n.Level] = []), e._soulSid[n.Level].push(t.Sid), e._levelCountMap[n.Level] ? e._levelCountMap[n.Level]++ : e._levelCountMap[n.Level] = 1
                        }
                    })
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.RichText)], t.prototype, "Desc", void 0), i([b(g.default)], t.prototype, "CustomLayout", void 0), i([b(cc.Label)], t.prototype, "SubTitle", void 0), i([b(cc.Node)], t.prototype, "LeftContainer", void 0), i([b(cc.Node)], t.prototype, "RightContainer", void 0), i([b(y.default)], t.prototype, "CurrencyBar", void 0), i([b(cc.Node)], t.prototype, "SubtractNode", void 0), i([b(cc.Node)], t.prototype, "AddNode", void 0), i([b(cc.Label)], t.prototype, "ProgressBarNum", void 0), i([b(cc.Node)], t.prototype, "OkNode", void 0), i([b(cc.Label)], t.prototype, "OkNodeLabe", void 0), i([b(cc.Slider)], t.prototype, "Slider", void 0), i([b(cc.ProgressBar)], t.prototype, "ProgressBar", void 0), i([v], t)
            }(u.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GodSoulCombineMaterialComponent": "GodSoulCombineMaterialComponent",
        "./AngelGodSoulCombinePreviewPanel": "AngelGodSoulCombinePreviewPanel"
    }],
    GodSoulDetialComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d1f2dYNjzhO2LfSOKetLkWY", "GodSoulDetialComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("./GodSoulItemComponent"),
            d = e("../../Auxiliary/DataUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.ItemContainer = null, t.DetialRichText = null, t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, h;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return t = c.ConfigDataComponent.Instance.GetConfigById(l.AngelGodSoul_Config, e), this.Name.string = t.Id.ToItemName(), n = t.Skills, o = "", n.forEach(function(e) {
                                        o += e.ToHeroSkillDesc(), o += "<br/>"
                                    }), (r = t.Attr) && r.length > 0 && r.forEach(function(e) {
                                        var t = d.default.GetHeroAttribute(e.Items[0], e.Items[1]);
                                        o += "angelGodSoul_AttrAdd".ToUILocale().Fmt(t.Name, t.Value), o += "<br/>"
                                    }), this.DetialRichText.string = o, this._component ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("AngelGodSoul/Components/GodSoulItemComponent", cc.Prefab)];
                                case 1:
                                    return i = s.sent(), this.isValid ? (this._assets.push(i), (a = cc.instantiate(i)).scaleX = .8, a.scaleY = .8, a.y = -15, (h = a.getComponent(p.default)).Init(e, p.GodSoulItemType.ItemId), this._component = h, this.ItemContainer.addChild(a), [3, 3]) : (u.AssetsManager.Instance.UnloadAsset(i), [2]);
                                case 2:
                                    this._component.Init(e, p.GodSoulItemType.ItemId), s.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.RichText)], t.prototype, "DetialRichText", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "./GodSoulItemComponent": "GodSoulItemComponent"
    }],
    GodSoulInfoSkillDetialComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "315daJZEnVC/orxukSaNvjg", "GodSoulInfoSkillDetialComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Info = null, t
                }
                return r(t, e), t.prototype.Set = function(e) {
                    this.Info.string = e
                }, i([l(cc.RichText)], t.prototype, "Info", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    GodSoulItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e69deF0lu1K0qa0gzh1pbDg", "GodSoulItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GodSoulItemType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("./ItemComponent"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/EventKeys"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.Sid = 0] = "Sid", e[e.ItemId = 1] = "ItemId"
        })(l = n.GodSoulItemType || (n.GodSoulItemType = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ItemContainer = null, t.LevalLabel = null, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "ItemId", {
                get: function() {
                    return this._itemId
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                y.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                y.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Init = function(e, t, n) {
                return void 0 === t && (t = l.Sid), void 0 === n && (n = !0), a(this, void 0, void 0, function() {
                    var o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._needTip = n, this._itemPrefab ? [3, 2] : (o = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)]);
                            case 1:
                                if (o._itemPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                s.label = 2;
                            case 2:
                                return this._itemComponent || (r = cc.instantiate(this._itemPrefab), this._itemComponent = r.getComponent(d.ItemComponent), this.ItemContainer.addChild(r)), t == l.Sid ? (i = p.DataCenter.Instance.GetDataById(f.UserGodSoul_Model, e), a = p.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, i.ItemId), this._itemId = i.ItemId, this._itemComponent.Init({
                                    ItemId: i.ItemId
                                }), this.LevalLabel.string = "" + a.Level) : (a = p.ConfigDataComponent.Instance.GetConfigById(h.AngelGodSoul_Config, e), this._itemComponent.Init({
                                    ItemId: e
                                }), this.LevalLabel.string = "" + a.Level, this._itemId = e), [2]
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                c.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
            }, t.prototype.OnItemClick = function(e, t) {
                this._needTip && t == this._itemComponent.node && c.UIManager.Instance.ShowUIPanel(u.PanelConfig.GodSoulTipsPanel.Path, this._itemId, this.node)
            }, i([_(cc.Node)], t.prototype, "ItemContainer", void 0), i([_(cc.Label)], t.prototype, "LevalLabel", void 0), i([I], t)
        }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./ItemComponent": "ItemComponent"
    }],
    GodSoulTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "513416lC7hBxpe3DVyYwNUT", "GodSoulTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/GodSoulItemComponent"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../Components/TipsLocationComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1, !1, !1), t.MaskNode = null, t.TitleBG = null, t.ItemRoot = null, t.NameLabel = null, t.TypeRichText = null, t.Line = null, t.DescRichText = null, t.DescContainer = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemTipsPanel/Atlas/ItemTipsPanel", cc.SpriteAtlas), n = this.LoadDynamicAsset("AngelGodSoul/Components/GodSoulItemComponent", cc.Prefab), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this._itemTipsAtlas = o[0], this._ItemPrefab = o[1], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._itemId = t[0], this._clickNode = t[1]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t);
                    var o = p.ConfigDataComponent.Instance.GetConfigById(u.AngelGodSoul_Config, this._itemId);
                    this.NameLabel.string = o.Id.ToItemName(), this.NameLabel.node.color = h.UIUtlity.GetLabelColorByQuality(o.Quality), this._type = o.Type, this.TypeRichText.string = "miraculousEquipTipType".ToUILocale().Fmt("<color = ffffff>" + this._type.ToAngelSoulTypeName() + "</>");
                    var r = cc.instantiate(this._ItemPrefab);
                    r.setParent(this.ItemRoot), this._item = r.getComponent(c.default), this._item.Init(o.Id, c.GodSoulItemType.ItemId, !1);
                    var i = o.Quality;
                    this.TitleBG.spriteFrame = this._itemTipsAtlas.getSpriteFrame("detail_quality_" + i), r.pauseSystemEvents(!0), o.Skills.forEach(function(e, t) {
                        n.AddOneSkillDesc(t, e.ToHeroSkillDesc())
                    }), o.Attr && o.Attr.length && o.Attr.forEach(function(e, t) {
                        var r = f.default.GetHeroAttribute(e.Items[0], e.Items[1]);
                        n.AddOneSkillDesc(t + o.Skills.length, "angelGodSoul_AttrAdd".ToUILocale().Fmt(r.Name, r.Value))
                    }), this.node.getComponent(d.default).RepositionPanel(this._clickNode), this.node.opacity = 255
                }, t.prototype.AddOneSkillDesc = function(e, t) {
                    if (0 == e) this.DescRichText.string = t;
                    else {
                        var n = cc.instantiate(this.Line);
                        this.DescContainer.addChild(n);
                        var o = cc.instantiate(this.DescRichText.node);
                        this.DescContainer.addChild(o), o.getComponent(cc.RichText).string = t
                    }
                }, i([m(cc.Node)], t.prototype, "MaskNode", void 0), i([m(cc.Sprite)], t.prototype, "TitleBG", void 0), i([m(cc.Node)], t.prototype, "ItemRoot", void 0), i([m(cc.Label)], t.prototype, "NameLabel", void 0), i([m(cc.RichText)], t.prototype, "TypeRichText", void 0), i([m(cc.Node)], t.prototype, "Line", void 0), i([m(cc.RichText)], t.prototype, "DescRichText", void 0), i([m(cc.Node)], t.prototype, "DescContainer", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/GodSoulItemComponent": "GodSoulItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent"
    }],
    GoodsItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "15c5dnbIE5MZ6aHxJDJ9iSV", "GoodsItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/ConfigData/ConfigDataComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("./CustomRichText"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            y = e("./ItemComponent"),
            g = e("../../Components/DataCenter"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../Panel/OracleShopPanel"),
            v = e("../Panel/ShopUIPanel"),
            b = e("../Panel/BuyAndSellItemPanel"),
            S = e("../../Components/RpcComponent"),
            w = e("../../../Util/TimeUtil"),
            P = e("../../../ShareConsts/EnumType"),
            A = e("../../../Consts/Consts"),
            T = e("../../Auxiliary/DataUtlity"),
            R = e("../Panel/StarPiecePanel"),
            L = e("../Panel/SecretJourneyPanel"),
            k = cc._decorator,
            O = k.ccclass,
            M = k.property,
            D = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GoodsName = null, t.AllianceLimitTag = null, t.CurrencyTypeIcon = null, t.PriceRoot = null, t.Price = null, t.PriceLabelOutLine = null, t.FreeLabel = null, t.BuyTimesLimit = null, t.Mask = null, t.ItemRoot = null, t.RedDot = null, t.BtnBuy = null, t.DiscountLabel = null, t.LimitTip = null, t.Completed = null, t.TagLabel = null, t._shopType = 0, t._isInit = !0, t._item = null, t._itemSprite = null, t._discountPrice = 0, t._loadedAssets = [], t.Zoom = 1.1, t._activityId = -1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    this._scale = this.node.scale
                }, t.prototype.onEnable = function() {
                    this._loadTime = this.GetServerTime(), m.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    m.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.GetServerTime = function() {
                    return S.RpcComponent.Instance.ServerTime
                }, t.prototype.IsTimeCrossDay = function() {
                    var e = S.RpcComponent.Instance.ServerTime;
                    return w.TimeUtil.Get0ClockTs(e) != w.TimeUtil.Get0ClockTs(this._loadTime)
                }, t.prototype.OnItemClick = function(e, t) {
                    if (this.ItemRoot.children[0] == t) {
                        var n = l.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, e);
                        if (n.Type == P.ItemType.TemplePiece) {
                            var o = {
                                pieceId: T.default.GetStarPieceIdByFragmentId(e, R.StarTemplePieceType.General),
                                pieceType: R.StarTemplePieceType.General,
                                showFullStatus: !1,
                                isFragment: !0,
                                tipParentNode: t
                            };
                            I.UIManager.Instance.ShowUIPanel(h.PanelConfig.StarPieceFragmentTipsPanel.Path, o)
                        } else n.Type == P.ItemType.ExclusiveTemplePiece ? (o = {
                            pieceId: T.default.GetStarPieceIdByFragmentId(e, R.StarTemplePieceType.Exclusive),
                            pieceType: R.StarTemplePieceType.Exclusive,
                            showFullStatus: !1,
                            isFragment: !0,
                            tipParentNode: t
                        }, I.UIManager.Instance.ShowUIPanel(h.PanelConfig.StarPieceFragmentTipsPanel.Path, o)) : d.UIUtlity.ShowItemTip(e, t)
                    }
                }, t.prototype.SetUI = function(e, t, n, o, r, i) {
                    void 0 === n && (n = 0), void 0 === o && (o = -1), void 0 === r && (r = -1), r > 0 ? (this._goodsData = new c.ShopItem_Config, this._goodsData.ItemId = e.ItemId, this._goodsData.CurrencyType = e.CurrencyType, this._goodsData.Price = e.Price, this._goodsData.LimitCount = e.LimitCount, this._goodsData.Count = e.Count, this._goodsData.Discount = e.Discount, this._goodsData.VipLimit = e.VipLimit, this._goodsData.LimitCycle = e.LimitCycle, this._goodsData.Id = e.Id, this._goodsData.BuyLimit = e.BuyingRequirements) : (this._goodsData = this.GetGoodsData(e), this._goodsIndex = t), this._activityId = r, this._shopType = n, this._hasBuyCount = o, this._params = i, this._isInit && (this._isInit = !1, this.SetClickEvent(), this.SetStaticLocalText()), this.LoadAtlas(), this.SetGoodsPriceText(), this.SetRedDot(), this.SetItemComponent(), this.SetLimitText(), this.SetMask(), this.SetUIStyle(), this.SetGoodsNameText(), this.SetAllianceLimitTag()
                }, t.prototype.GetGoodsData = function(e) {
                    return l.ConfigDataComponent.Instance.GetConfigById(c.ShopItem_Config, e)
                }, t.prototype.LoadAtlas = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.CurrencyTypeIcon.spriteFrame = null, e = T.default.Instance.GetItemPathById(this._goodsData.CurrencyType), [4, f.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._loadedAssets.push(t), this.CurrencyTypeIcon.spriteFrame = t, [2]) : (m.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetUIStyle = function() {
                    if (this.GoodsName.node.active = !0, this.AllianceLimitTag && (this.AllianceLimitTag.node.active = !1), this._shopType <= v.ShopType.Relic && this._shopType != v.ShopType.Guild || this._shopType == v.ShopType.Soul) this.BuyTimesLimit.node.active = !0, this.GoodsName.fontSize = 40, this.PriceLabelOutLine.enabled = !0;
                    else if (this._shopType == v.ShopType.Oracle) {
                        this.GoodsName.node.parent.y = 50;
                        var e = cc.find("line", this.node);
                        e && (e.y = 3), this.BuyTimesLimit.node.active = !1, this.PriceRoot.parent.y = -70, this.GoodsName.fontSize = 30
                    } else this._shopType == v.ShopType.Travel ? (this.BuyTimesLimit.node.active = !1, this.GoodsName.fontSize = 40, this.PriceLabelOutLine.enabled = !0) : this._shopType == v.ShopType.Guild && (this.GoodsName.fontSize = 40, this.GoodsName.node.active = !this._goodsData.RequireAllianceLevel || this._goodsData.RequireAllianceLevel <= this._params[0], this.AllianceLimitTag && (this.AllianceLimitTag.node.active = this._goodsData.RequireAllianceLevel > 0 && this._goodsData.RequireAllianceLevel > this._params[0]))
                }, t.prototype.SetGoodsNameText = function() {
                    var e = this;
                    this.GoodsName.string = this._goodsData.ItemId.ToItemName(), this.scheduleOnce(function() {
                        e.isValid && (e.GoodsName.string = T.default.GetAbridgeString(e.GoodsName, e._goodsData.ItemId.ToItemName(), e.GoodsName.node.width, 2))
                    }, 0)
                }, t.prototype.SetAllianceLimitTag = function() {
                    this.AllianceLimitTag && this._shopType == v.ShopType.Guild && this._goodsData.RequireAllianceLevel && (this.AllianceLimitTag.string = "<outline color = #202434 width = 3>" + "allianceBase_goodlocked".ToUILocale().Fmt("<color = #FF403E>" + "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(this._goodsData.RequireAllianceLevel) + "</color>") + "</outline>")
                }, t.prototype.SetGoodsPriceText = function() {
                    this.Price.node.active = !1, this.FreeLabel.node.active = !1, this._goodsData.Price > 0 ? (this.Price.node.active = !0, this.Price.string = this._goodsData.Price.FmtCurrency().toString(), this.SetPriceColor()) : this.FreeLabel.node.active = !0
                }, t.prototype.SetRedDot = function() {
                    var e;
                    this.RedDot.active = !1;
                    var t = g.DataCenter.Instance.GetSimpleData(P.UserDataKey.Designation),
                        n = t && t.V ? t.V + 1 : 1,
                        o = l.ConfigDataComponent.Instance.GetConfigById(c.Designation_Config, n);
                    if (o && o.Materials[0] && (e = o.Materials[0].Items), this._shopType == v.ShopType.Guild && this._goodsData.RequireAllianceLevel > 0 && this._goodsData.RequireAllianceLevel > this._params[0]) return !1;
                    this._hasBuyCount < this._goodsData.LimitCount && (0 == this._goodsData.Price ? this.RedDot.active = !0 : e && e[0] == this._goodsData.ItemId && g.DataCenter.Instance.IsItemEnough(this._goodsData.CurrencyType, this._goodsData.Price) && (g.DataCenter.Instance.IsItemEnough(e[0], e[1]) || (this.RedDot.active = !0)))
                }, t.prototype.SetPriceColor = function() {
                    g.DataCenter.Instance.IsItemEnough(this._goodsData.CurrencyType, this._goodsData.Price) ? this.Price.node.color = cc.Color.WHITE : this.Price.node.color = n.NOT_ENOUGH_COLOR
                }, t.prototype.SetItemComponent = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : [4, f.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._commonItemPrefab = e, this._loadedAssets.push(e), t.label = 2;
                                case 2:
                                    return null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(y.ItemComponent), this._item.node.parent = this.ItemRoot), this._item.node.name = this._goodsData.ItemId.toString(), this._item.Init({
                                        ItemId: this._goodsData.ItemId,
                                        Count: this._goodsData.Count
                                    }, y.ItemComponentType.ItemCommon), this.DiscountLabel ? (this._goodsData.Discount > 0 ? (this.DiscountLabel.string = "-" + this._goodsData.Discount + "%", this.DiscountLabel.node.parent.active = !0) : this.DiscountLabel.node.parent.active = !1, [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.SetLimitText = function() {
                    if (this.BuyTimesLimit.Init(""), this.LimitTip && (this.LimitTip.node.active = !1), g.DataCenter.Instance.GetIntData(A.UserDataKey.VipLevel) >= this._goodsData.VipLimit) switch (this._shopType) {
                        case v.ShopType.SaintsWar:
                            this._goodsData.BuyLimit.length > 0 ? (o = this._goodsData.BuyLimit[0].Items)[0] == A.ShopItemBuyLimitType.SaintsWar && ((g.DataCenter.Instance.GetIntData(A.UserDataKey.SaintsWarDifficultyLevel) || 1) < o[1] ? (this.BuyTimesLimit.node.active = !0, this.BuyTimesLimit.Init("saintsWarShopItemCondition".ToUILocale().Fmt(o[1].ToSaintsWarDifficultName()))) : this.DoSetLimitTextJob()) : this.DoSetLimitTextJob();
                            break;
                        case v.ShopType.AngelPveShop:
                            if (this._goodsData.BuyLimit.length > 0) {
                                var e = (o = this._goodsData.BuyLimit[0].Items)[0],
                                    t = o[1];
                                if (e == A.ShopItemBuyLimitType.AngelPveProgress && g.DataCenter.Instance.GetIntData(P.UserDataKey.StarLightSecretProgress) < t) {
                                    var n = l.ConfigDataComponent.Instance.GetConfigById(c.StarLightSecretLandMap_Config, t);
                                    this.BuyTimesLimit.node.active = !0, this.BuyTimesLimit.Init("levelPass_mapName".ToUILocale().Fmt(n.MapIds[0].ToMapName()))
                                }
                            }
                            break;
                        case v.ShopType.ActivityExchangeShop:
                            var o;
                            if (this._goodsData.BuyLimit.length > 0 && this.LimitTip && (o = this._goodsData.BuyLimit[0].Items)[0] == A.ShopItemBuyLimitType.CurrencyUsedCount) {
                                var r = g.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId),
                                    i = r.CurrencyMap[o[1]] ? r.CurrencyMap[o[1]] : 0;
                                i < o[2] && (this.LimitTip.node.active = !0, this.LimitTip.string = "shop_limit_tip".ToUILocale().Fmt(i, o[2]))
                            }
                            this.DoSetLimitTextJob();
                            break;
                        default:
                            this.DoSetLimitTextJob()
                    } else this.BuyTimesLimit.node.active = !0, this.BuyTimesLimit.Init("shop_vipLimit".ToUILocale().Fmt(this._goodsData.VipLimit))
                }, t.prototype.DoSetLimitTextJob = function() {
                    this._goodsData.LimitCount > 0 && (this.BuyTimesLimit.node.active = !0, this.BuyTimesLimit.Init(("shop_buyTimesLimit" + this._goodsData.LimitCycle).ToUILocale().Fmt(this._goodsData.LimitCount - this._hasBuyCount, this._goodsData.LimitCount)))
                }, t.prototype.SetMask = function() {
                    switch (this.Mask.active = !1, this.Completed.active = !1, this._shopType) {
                        case v.ShopType.Travel:
                            this._hasBuyCount > 0 && (this.Mask.active = !0, this.Completed.active = !0);
                            break;
                        case v.ShopType.ActivityExchangeShop:
                            if (this._goodsData.BuyLimit.length > 0) {
                                var e = this._goodsData.BuyLimit[0].Items;
                                if (e[0] == A.ShopItemBuyLimitType.CurrencyUsedCount) {
                                    var t = g.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId);
                                    if (!t.CurrencyMap[e[1]] || t.CurrencyMap[e[1]] < e[2]) return void(this.Mask.active = !0)
                                }
                            }
                            this.SetDefaultMask();
                            break;
                        default:
                            this.SetDefaultMask()
                    }
                }, t.prototype.SetDefaultMask = function() {
                    this._hasBuyCount >= this._goodsData.LimitCount && this._goodsData.LimitCount > 0 && (this.Mask.active = !0, this.Completed.active = !0)
                }, t.prototype.SetStaticLocalText = function() {
                    this.FreeLabel.string = "shop_buyFree".ToUILocale(), this.TagLabel.string = "soldOut".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnBuy.node.on("click", this.OnBtnBuyClick, this)
                }, t.prototype.OnBtnBuyClick = function() {
                    var e = this;
                    if (this._tween && (this._tween.stop(), this.node.scale = this._scale), this._tween = cc.tween(this.node).to(.12, {
                            scale: this._scale * this.Zoom
                        }).to(.1, {
                            scale: this._scale
                        }).start(), this._shopType <= v.ShopType.Abyss || this._shopType == v.ShopType.ActivityShop1 || this._shopType == v.ShopType.ActivityShop2 || this._shopType == v.ShopType.ActivityShop3 || this._shopType == v.ShopType.SeniorArena || this._shopType == v.ShopType.StrongHold) {
                        if (v.default.isBusy) return;
                        if (this._hasBuyCount >= this._goodsData.LimitCount && this._goodsData.LimitCount > 0) return;
                        if (0 != this._goodsData.VipLimit && g.DataCenter.Instance.GetIntData(P.UserDataKey.VipLevel) < this._goodsData.VipLimit) return void m.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, A.CommonItemId.VipPoint);
                        if (this._shopType == v.ShopType.Guild && this._goodsData.RequireAllianceLevel > 0 && this._goodsData.RequireAllianceLevel > this._params[0]) return void d.UIUtlity.ShowFloatingHint("allianceBase_goodlocked".ToUILocale().Fmt(this._goodsData.RequireAllianceLevel))
                    } else if (this._shopType == v.ShopType.Oracle) {
                        if (C.default.isBusy) return
                    } else if (this._shopType == v.ShopType.Travel) {
                        if (this.IsTimeCrossDay()) return I.UIManager.Instance.BackUIPanel(), void d.UIUtlity.ShowFloatingHint("treasure_merchantGone".ToUILocale());
                        if (this._hasBuyCount > 0) return
                    } else {
                        if ((this._shopType == v.ShopType.Angel || this._shopType == v.ShopType.GemForge) && 1 == this.Mask.active) return void d.UIUtlity.ShowFloatingHint("shop_goodsSoldOut".ToUILocale());
                        if (this._shopType == v.ShopType.ActivityExchangeShop) {
                            if (this._goodsData.BuyLimit.length > 0 && (o = this._goodsData.BuyLimit[0].Items)[0] == A.ShopItemBuyLimitType.CurrencyUsedCount) {
                                var t = g.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId);
                                if (!t.CurrencyMap[o[1]] || t.CurrencyMap[o[1]] < o[2]) return void d.UIUtlity.ShowFloatingHint("shop_limit_hint".ToUILocale())
                            }
                            if (v.default.isBusy) return;
                            if (this._hasBuyCount >= this._goodsData.LimitCount && this._goodsData.LimitCount > 0) return;
                            if (0 != this._goodsData.VipLimit && g.DataCenter.Instance.GetIntData(P.UserDataKey.VipLevel) < this._goodsData.VipLimit) return void d.UIUtlity.ShowFloatingHint("shop_needVip".ToUILocale().Fmt(this._goodsData.VipLimit));
                            if (0 == this._goodsData.Price) {
                                var n = new u.Req_Activity_BuyItem;
                                n.ActivityId = this._activityId, n.Items = [{
                                    Items: [this._goodsData.Id, this._goodsData.LimitCount - this._hasBuyCount]
                                }], S.RpcComponent.Instance.Call(n, T.bind(this))
                            } else g.DataCenter.Instance.IsItemEnough(this._goodsData.CurrencyType, this._goodsData.Price) ? I.UIManager.Instance.ShowUIPanel(h.PanelConfig.BuyAndSellItemPanel.Path, this._goodsData, this._activityId, this._hasBuyCount, b.BuyAndSellType.Buy, b.GoodsType.ActivityExchangeShop) : (d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._goodsData.CurrencyType.ToItemName())), I.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, this._goodsData.CurrencyType, !1));
                            return
                        }
                        if (this._shopType == v.ShopType.SaintsWar) {
                            if (this._goodsData.BuyLimit.length > 0 && (o = this._goodsData.BuyLimit[0].Items)[0] == A.ShopItemBuyLimitType.SaintsWar && (g.DataCenter.Instance.GetIntData(A.UserDataKey.SaintsWarDifficultyLevel) || 1) < o[1]) return d.UIUtlity.ShowFloatingHint("saintsWarShopItemBuyLimit".ToUILocale().Fmt(o[1].ToSaintsWarDifficultName()))
                        } else if (this._shopType == v.ShopType.AngelPveShop) {
                            if (this._goodsData.BuyLimit.length > 0) {
                                var o, r = (o = this._goodsData.BuyLimit[0].Items)[0],
                                    i = o[1];
                                if (r == A.ShopItemBuyLimitType.AngelPveProgress && g.DataCenter.Instance.GetIntData(P.UserDataKey.StarLightSecretProgress) < i) {
                                    var a = l.ConfigDataComponent.Instance.GetConfigById(c.StarLightSecretLandMap_Config, i);
                                    return d.UIUtlity.ShowFloatingHint("shopItem_limit".ToUILocale().Fmt(a.MapIds[0].ToMapName()))
                                }
                            }
                        } else if (this._hasBuyCount >= this._goodsData.LimitCount && this._goodsData.LimitCount > 0) return
                    }
                    var s = this._goodsData.CurrencyType.ToItemName(),
                        p = b.GoodsType.Normal;
                    if (this._shopType == v.ShopType.Travel && (p = b.GoodsType.Travel), g.DataCenter.Instance.IsItemEnough(this._goodsData.CurrencyType, this._goodsData.Price)) {
                        if (this._shopType == v.ShopType.SecretTravelingShop) return void d.UIUtlity.ShowHintPanel(null, "mall_query_buy".ToUILocale().Fmt(this._goodsData.Price + this._goodsData.CurrencyType.ToItemName(), this._goodsData.ItemId.ToItemName()), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                            var t = new u.Req_Activity_SecretClick;
                            t.ActivityId = L.default.ActivityId, t.MapId = L.default.SecretMapId, t.Index = e._params[1], t.Param = [e._params[2]], S.RpcComponent.Instance.Call(t, function(t) {
                                d.UIUtlity.ShwDisplayRewardPanel(t.Rewards), m.Game.EventDispatcher.Emit(_.EventKeys.EVENT_SECRETJOURNEY_MAPDATA_CHANGE, t.Map, e._params[0])
                            })
                        });
                        if (0 == this._goodsData.Price) {
                            var f = l.ConfigDataComponent.Instance.GetConfigById(c.ShopBase_Config, this._shopType),
                                y = new u.Req_Shop_BuyItem;
                            y.Type = this._shopType, f.IsRefresh ? y.Id = this._goodsIndex : y.Id = this._goodsData.Id, y.Count = this._goodsData.LimitCount, S.RpcComponent.Instance.Call(y, T.bind(this))
                        } else if (p == b.GoodsType.Travel) {
                            var w = this._goodsData.ItemId.ToItemName();
                            d.UIUtlity.ShowHintPanel(null, "mall_query_buy".ToUILocale().Fmt(this._goodsData.Price + this._goodsData.CurrencyType.ToItemName(), w), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                var t = new u.Req_Relic_BuyGoods;
                                t.Index = e._goodsIndex, S.RpcComponent.Instance.Call(t, function() {
                                    d.UIUtlity.ShowFloatingHint("shop_buySuccess".ToUILocale().Fmt(w, e._goodsData.Count));
                                    var t = g.DataCenter.Instance.GetDataById(u.RelicTreasureHunt_Model, 1).Goods[e._goodsIndex].Items;
                                    e.SetUI(t[0], e._goodsIndex, e._shopType, t[1]), m.Game.EventDispatcher.Emit(_.EventKeys.EVENT_REFRESH_TRAVEL_GOODS_DATA, e._goodsIndex, t)
                                })
                            })
                        } else I.UIManager.Instance.ShowUIPanel(h.PanelConfig.BuyAndSellItemPanel.Path, this._goodsData.Id, this._goodsIndex, this._hasBuyCount, b.BuyAndSellType.Buy, p)
                    } else d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(s)), this._goodsData.CurrencyType == P.CommonItemId.Diamond ? I.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [A.MallPageType.DiamondShop, A.GiftPackType.BuyDiamond]) : I.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, this._goodsData.CurrencyType, !1);

                    function T() {
                        m.Game.EventDispatcher.Emit(_.EventKeys.EVENT_BUY_ITEM_SUCCESS);
                        var e = this._goodsData.ItemId.ToItemName(),
                            t = this._goodsData.LimitCount * this._goodsData.Count,
                            n = "shop_buySuccess".ToUILocale().Fmt(e, t);
                        d.UIUtlity.ShowFloatingHint(n)
                    }
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) m.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, t.ENOUGH_COLOR = new cc.Color(86, 51, 51), t.NOT_ENOUGH_COLOR = new cc.Color(255, 75, 75), t.SHRINK_SCALE = .88, i([M(cc.Label)], t.prototype, "GoodsName", void 0), i([M(cc.RichText)], t.prototype, "AllianceLimitTag", void 0), i([M(cc.Sprite)], t.prototype, "CurrencyTypeIcon", void 0), i([M(cc.Node)], t.prototype, "PriceRoot", void 0), i([M(cc.Label)], t.prototype, "Price", void 0), i([M(cc.LabelOutline)], t.prototype, "PriceLabelOutLine", void 0), i([M(cc.Label)], t.prototype, "FreeLabel", void 0), i([M(p.CustomRichText)], t.prototype, "BuyTimesLimit", void 0), i([M(cc.Node)], t.prototype, "Mask", void 0), i([M(cc.Node)], t.prototype, "ItemRoot", void 0), i([M(cc.Node)], t.prototype, "RedDot", void 0), i([M(cc.Button)], t.prototype, "BtnBuy", void 0), i([M(cc.Label)], t.prototype, "DiscountLabel", void 0), i([M(cc.RichText)], t.prototype, "LimitTip", void 0), i([M(cc.Node)], t.prototype, "Completed", void 0), i([M(cc.Label)], t.prototype, "TagLabel", void 0), n = i([O], t)
            }(cc.Component);
        n.default = D, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "../Panel/OracleShopPanel": "OracleShopPanel",
        "../Panel/SecretJourneyPanel": "SecretJourneyPanel",
        "../Panel/ShopUIPanel": "ShopUIPanel",
        "../Panel/StarPiecePanel": "StarPiecePanel",
        "./CustomRichText": "CustomRichText",
        "./ItemComponent": "ItemComponent"
    }],
    GotoBattleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ab030T4tIFHCbZ8ljcoXcrP", "GotoBattleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../ShareConsts/EnumType"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../../Auxiliary/EventKeys"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NameLabel = null, t.LevelLabel = null, t.ToggleContainer = null, t.Toggle = null, t.ToggleHint = null, t.GotoButton = null, t.GotoButtonLabel = null, t._isInit = !1, t._gotoCallBack = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(c.EventKeys.EVENT_TOGGLE_FLOATICON, this.RefreshToggleIsCheck, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(c.EventKeys.EVENT_TOGGLE_FLOATICON, this.RefreshToggleIsCheck, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    switch (this._mapType = e, this._gotoCallBack = o, this._isInit || (this._isInit = !0, this.GotoButtonLabel.string = "iWantStrong_go".ToUILocale(), this.ToggleHint.string = "climbTower_buyCount".ToUILocale(), this.GotoButton.node.on("click", this.OnGotoButtonClick, this), this.Toggle.node.on("toggle", this.OnToggleChange, this)), this.NameLabel.string = t.ToUILocale(), this.LevelLabel.string = n, e) {
                        case s.MapType.TowerHeart:
                        case s.MapType.TowerPower:
                        case s.MapType.TowerTech:
                        case s.MapType.TowerBreak:
                        case s.MapType.TowerFight:
                            this.SetShowToggle(!0);
                            break;
                        default:
                            this.SetShowToggle(!1)
                    }
                }, t.prototype.SetShowToggle = function(e) {
                    e ? (this.ToggleContainer.active = !0, this.node.height = 193, this.Toggle.isChecked = l.default.GetFunctionSkipState(s.FunctionSkipKey.AutoBuyElementTowerChallengeCount)) : (this.ToggleContainer.active = !1, this.node.height = 116)
                }, t.prototype.OnToggleChange = function() {
                    l.default.SetFunctionSkipState(s.FunctionSkipKey.AutoBuyElementTowerChallengeCount, this.Toggle.isChecked, function() {
                        a.Game.EventDispatcher.Emit(c.EventKeys.EVENT_TOGGLE_FLOATICON)
                    })
                }, t.prototype.OnGotoButtonClick = function() {
                    this._gotoCallBack && this._gotoCallBack(this._mapType)
                }, t.prototype.RefreshToggleIsCheck = function() {
                    this.ToggleContainer.active && (this.Toggle.isChecked = l.default.GetFunctionSkipState(s.FunctionSkipKey.AutoBuyElementTowerChallengeCount))
                }, i([d(cc.Label)], t.prototype, "NameLabel", void 0), i([d(cc.Label)], t.prototype, "LevelLabel", void 0), i([d(cc.Node)], t.prototype, "ToggleContainer", void 0), i([d(cc.Toggle)], t.prototype, "Toggle", void 0), i([d(cc.Label)], t.prototype, "ToggleHint", void 0), i([d(cc.Button)], t.prototype, "GotoButton", void 0), i([d(cc.Label)], t.prototype, "GotoButtonLabel", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    GroundBlock: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5b9924MN/hMm4DxaLQnQ2tm", "GroundBlock");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CenterNode = null, t.ItemNode = null, t.BG = null, t._eventType = -1, t._item = null, t._shadow = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Sink = function() {
                    cc.tween(this.node).by(n._sinkTime, {
                        position: cc.v3(0, n._sinkHeight)
                    }).by(n._sinkTime, {
                        position: cc.v3(0, -n._sinkHeight)
                    }).start()
                }, t.prototype.SetBlank = function() {
                    this._item = null, this._shadow = null
                }, t.prototype.start = function() {
                    cc.tween(this.ItemNode).repeatForever(cc.tween().by(n._circleTime, {
                        position: cc.v3(0, n._iRange)
                    }).by(n._circleTime, {
                        position: cc.v3(0, -n._iRange)
                    })).start(), cc.tween(this.CenterNode).repeatForever(cc.tween().to(n._circleTime, {
                        scale: n._shadowScaleIdle - n._shadowScaleRange
                    }).to(n._circleTime, {
                        scale: n._shadowScaleIdle
                    })).start(), n.ItemPos || (n.ItemPos = this.ItemNode.position)
                }, t.prototype.SetItem = function(e) {
                    this._item = e, this._item.setParent(this.ItemNode), this._item.position = cc.v3(0, 0, 0)
                }, t.prototype.GetItem = function() {
                    return this._item
                }, t.prototype.SetShadow = function(e) {
                    this._shadow = e, this._shadow.setParent(this.CenterNode), this._shadow.position = cc.v3(0, 0, 0)
                }, t.prototype.GetShadow = function() {
                    return this._shadow
                }, t.prototype.SetEventType = function(e) {
                    this._eventType = e
                }, t.prototype.GetEventType = function() {
                    return this._eventType
                }, t.HighLightPos = cc.v3(0, 66), t.ItemPos = null, t._sinkHeight = -10, t._sinkTime = .3, t._iHeight = 150, t._iRange = 10, t._shadowScaleIdle = 1, t._shadowScaleRange = .1, t._circleTime = 1.5, i([l(cc.Node)], t.prototype, "CenterNode", void 0), i([l(cc.Node)], t.prototype, "ItemNode", void 0), i([l(cc.Node)], t.prototype, "BG", void 0), n = i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    GrowFundComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1a10aJYT5lBlYEQkclJkDJm", "GrowFundComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Components/Components"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.BuyProgress = null, t.ItemContainer = null, t.GetButton = null, t.GetButtonLabel = null, t.NotEnoughButton = null, t.NotEnoughButtonLabel = null, t.AlreadyGot = null, t.RedDot = null, t._items = [], t
                }
                return r(t, e), t.prototype.SetTitle = function(e) {
                    return this.Title.string = e, this.GetButtonLabel.string = "receive".ToUILocale(), this.NotEnoughButtonLabel.string = "mall_notReach".ToUILocale(), this
                }, t.prototype.SetBuyProgress = function(e, t, n, o) {
                    var r;
                    return r = e < t ? "<color = ffffff>" + e + "/" + t + "</>" : "<color = 00ff00>" + t + "/" + t + "</>", this.BuyProgress.string = r, this.NotEnoughButton.node.active = e < t, this.GetButton.node.active = e >= t && !n, this.AlreadyGot.active = e >= t && n, this.RedDot.active = o, this
                }, t.prototype.SetItems = function(e, t) {
                    var n;
                    if (t.length > this._items.length) {
                        for (var o = 0; o < this._items.length; o++) n = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this._items[o].node.name = t[o].Items[0].toString();
                        for (o = this._items.length; o < t.length; o++) {
                            var r = e.Get();
                            r.active = !0, r.setParent(this.ItemContainer), this._items[o] = r.getComponent(l.ItemComponent), n = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                                ItemId: t[o].Items[0],
                                Count: t[o].Items[1]
                            }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this._items[o].node.name = t[o].Items[0].toString()
                        }
                    } else {
                        for (o = 0; o < t.length; o++) n = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[o].Items[0]), this._items[o].Init({
                            ItemId: t[o].Items[0],
                            Count: t[o].Items[1]
                        }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this._items[o].node.name = t[o].Items[0].toString();
                        for (o = t.length; o < this._items.length; o++) this._items[o].node.active = !1, e.Put(this._items[o].node);
                        this._items.length = t.length
                    }
                    return this
                }, t.prototype.SetButtonClick = function(e) {
                    this._index = e, this.GetButton.node.on("click", this.OnGetButtonClick, this), this.NotEnoughButton.node.on("click", this.OnNotEnoughButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.GetButton.node.off("click", this.OnGetButtonClick, this), this.NotEnoughButton.node.off("click", this.OnNotEnoughButtonClick, this)
                }, t.prototype.OnGetButtonClick = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_MALL_BUTTONCLICK, this._index)
                }, t.prototype.OnNotEnoughButtonClick = function() {
                    u.UIUtlity.ShowFloatingHint("mall_growFund_levelNotEnough".ToUILocale())
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.RichText)], t.prototype, "BuyProgress", void 0), i([f(cc.Node)], t.prototype, "ItemContainer", void 0), i([f(cc.Button)], t.prototype, "GetButton", void 0), i([f(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([f(cc.Button)], t.prototype, "NotEnoughButton", void 0), i([f(cc.Label)], t.prototype, "NotEnoughButtonLabel", void 0), i([f(cc.Node)], t.prototype, "AlreadyGot", void 0), i([f(cc.Node)], t.prototype, "RedDot", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    GuardianHeroNodeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d78dcd8A8JEvKHBcU6f0ehk", "GuardianHeroNodeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/ConfigData/ConfigDataComponent"),
            u = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../ShareConsts/BattleConsts"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AvatarNode = null, t.LevelLabel = null, t._avatarPrefab = null, t._avatarNode = null, t._currHeroLevel = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Display = function(e) {
                    this._heroData = e, null != this._heroData ? (this._currHeroLevel = e.Level, this.LoadConfig(), this.LoadAvatar(), this.SetLevelLavel()) : this.node.active = !1
                }, t.prototype.LoadConfig = function() {
                    this._heroConfig = c.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, this._heroData.HeroId)
                }, t.prototype.LoadAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = this._heroConfig.Model, t = n.avatarSkeletonPrefabPathName1 + e + n.avatarSkeletonPrefabPathName2, null != this._avatarPrefab ? [3, 2] : (o = this, [4, u.AssetsManager.Instance.LoadAsset(t)]);
                                case 1:
                                    if (o._avatarPrefab = r.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    return null == this._avatarNode && (this._avatarNode = cc.instantiate(this._avatarPrefab), this._avatarNode.setParent(this.AvatarNode), this._avatarSkeleton = this._avatarNode.getComponent(sp.Skeleton)), this.PlayStandBy(), [2]
                            }
                        })
                    })
                }, t.prototype.SetLevelLavel = function() {
                    this.LevelLabel.string = "Lv." + this._heroData.Level
                }, t.prototype.PlayStandBy = function() {
                    var e = h.default.Instance.GetHeroDefaultStarLevelSkinName(this._heroData.HeroId, this._heroData.StarLevel);
                    this._avatarSkeleton.setSkin(e), this._avatarSkeleton.setAnimation(0, d.SkillAnimationType.Standby, !0)
                }, t.prototype.PlayTransAnim = function() {}, t.prototype.StopAnimation = function() {
                    this._avatarSkeleton.clearTrack(0)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._avatarPrefab && p.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), this._avatarPrefab = null
                }, t.avatarSkeletonPrefabPathName1 = "Hero_", t.avatarSkeletonPrefabPathName2 = "/HeroAvatar", i([g(cc.Node)], t.prototype, "AvatarNode", void 0), i([g(cc.Label)], t.prototype, "LevelLabel", void 0), n = i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent"
    }],
    GuideEntranceHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "81752yS71tMJ6pP++cahFhh", "GuideEntranceHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../Consts/Consts"),
            p = e("../../RedDot/RedDotManager"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../Consts/Consts"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TaskInfo = null, t.CompletedBg = null, t.UnCompletedBg = null, t.TaskDescLab = null, t.TaskProgress = null, t.EntranceBtn = null, t.EntranceBtnLab = null, t.Slider = null, t.RedDotNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(l.UserTask_Model._n_), this.SetTaskInfo, this), a.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(l.GameModule_Model._n_), this.OnGameModuleChange, this), a.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(l.UserSimpleData_Model._n_), this.OnUserDataChange, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(l.UserTask_Model._n_), this.SetTaskInfo, this), a.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(l.GameModule_Model._n_), this.OnGameModuleChange, this), a.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(l.UserSimpleData_Model._n_), this.OnUserDataChange, this)
                }, t.prototype.Init = function(e) {
                    e || (this.EntranceBtnLab.string = "TaskGuide_NewbieTask".ToUILocale(), this.EntranceBtn.node.on("click", this.OnClickEntranceBtn, this), this.TaskInfo.on(cc.Node.EventType.TOUCH_END, this.OnClickInfoBtn, this), this._isOpen = !0, this.TaskInfo.active = this._isOpen, this._newPlayerTaskConfigArr = d.ConfigDataComponent.Instance.GetArrayConfig(s.NewbieMainTask_Config), this._newPlayerTaskConfigArr.sort(function(e, t) {
                        return e.SortId - t.SortId
                    }), p.RedDotManager.Instance.Bind(this.RedDotNode, p.RedDotManager.Instance.RedDot.TaskGuideEntranceNode)), this.SetTaskInfo()
                }, t.prototype.SetTaskInfo = function() {
                    for (var e = 0; e < this._newPlayerTaskConfigArr.length; e++) {
                        var t = d.DataCenter.Instance.GetDataById(l.UserTask_Model, this._newPlayerTaskConfigArr[e].TaskId);
                        if (!t.IsCompleted) {
                            this._newPlayerMainTaskConfig = this._newPlayerTaskConfigArr[e], this._taskConfig = d.ConfigDataComponent.Instance.GetConfigById(s.TaskBase_Config, this._newPlayerMainTaskConfig.TaskId), this._userTaskModel = t;
                            break
                        }
                        if (e == this._newPlayerTaskConfigArr.length - 1) return void(this.node.active = !1)
                    }
                    this.TaskDescLab.string = this._taskConfig.Id.ToTaskDesc(), this._userTaskModel.Progress < this._taskConfig.TotalCount ? (this.CompletedBg.active = !1, this.UnCompletedBg.active = !0, this.TaskProgress.string = "TaskGuide_Entrance_UnCompleted".ToUILocale().Fmt(this._userTaskModel.Progress, this._taskConfig.TotalCount)) : (this.CompletedBg.active = !0, this.UnCompletedBg.active = !1, this.TaskProgress.string = "TaskGuide_Entrance_Completed".ToUILocale().Fmt(this._taskConfig.TotalCount, this._taskConfig.TotalCount))
                }, t.prototype.OnGameModuleChange = function() {
                    h.default.Instance.IsGameModuleUnlock(f.GameModuleType.NoviceGuideTaskUnlock)[0] && !h.default.Instance.IsGameModuleUnlock(f.GameModuleType.NoviceGuideTaskHide)[0] || (this.node.active = !1)
                }, t.prototype.OnUserDataChange = function() {
                    for (var e = !0, t = 0; t < this._newPlayerTaskConfigArr.length; t++)
                        if (!d.DataCenter.Instance.GetDataById(l.UserTask_Model, this._newPlayerTaskConfigArr[t].TaskId).IsCompleted) {
                            e = !1;
                            break
                        } e && (this.node.active = !1)
                }, t.prototype.OnClickEntranceBtn = function() {
                    this._isOpen = !this._isOpen, this.TaskInfo.active = this._isOpen
                }, t.prototype.OnClickInfoBtn = function() {
                    a.UIManager.Instance.ShowUIPanel(c.PanelConfig.TaskDetailsPanel.Path, this._taskConfig, this._userTaskModel, this._newPlayerMainTaskConfig)
                }, i([m(cc.Node)], t.prototype, "TaskInfo", void 0), i([m(cc.Node)], t.prototype, "CompletedBg", void 0), i([m(cc.Node)], t.prototype, "UnCompletedBg", void 0), i([m(cc.Label)], t.prototype, "TaskDescLab", void 0), i([m(cc.RichText)], t.prototype, "TaskProgress", void 0), i([m(cc.Button)], t.prototype, "EntranceBtn", void 0), i([m(cc.Label)], t.prototype, "EntranceBtnLab", void 0), i([m(cc.Slider)], t.prototype, "Slider", void 0), i([m(cc.Node)], t.prototype, "RedDotNode", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager"
    }],
    GuideHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3c49cICLdtMpJSNfdqP4QLr", "GuideHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("./TipsLocationComponent"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GuideManager"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/EventKeys"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1, !1, !1, f.AssetUnloadMode.Resident), t.ClickArea = null, t.MaskNode = null, t.Bg = null, t.InfoContainer = null, t.FingerSpine = null, t.Info = null, t.TipsLocationComponent = null, t.SkipBtn = null, t.SkipSpine = null, t._offsetY = 0, t._canSkip = !0, t.SPINE_ANIMATION_1 = "UI_effect_xinshouyindao", t.SPINE_ANIMATION_2 = "UI_effect_xinshouyindao2", t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    cc.view.setResizeCallback(this.ResetFingerPosition.bind(this))
                }, t.prototype.onDisable = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.update = function() {
                    this._timer <= 1.8 && (this.SetPosition(), this._timer += cc.director.getDeltaTime())
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ClickArea.on(cc.Node.EventType.TOUCH_END, this.OnClickArea, this), this.ClickArea._touchListener.setSwallowTouches(!1), this.Bg.on(cc.Node.EventType.TOUCH_END, this.OnClickBg, this), this._maskSprite = this.Bg.getComponent(cc.Sprite), this._maskComponent = this.MaskNode.getComponent(cc.Mask), this.SkipBtn.node.on("click", this.OnSkip, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._guideHintConfig = p.ConfigDataComponent.Instance.GetConfigById(c.GuideFingerHint_Config, t[0]), this._offsetY = this._guideHintConfig.OffsetY, this._targetNode = t[1], t.length > 2 && (this._canSkip = t[2]), this._hintInfoKey = this._guideHintConfig.InfoKey, this._hideMask = 0 == this._guideHintConfig.HideMask, this._maskType = this._guideHintConfig.MaskType
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._clickTimes = 0, this._timer = 0, this.ConfigHintInfo(), this.ConfigFingerNode(), this.ConfigMaskNode(), this.ConfigSkipBtn()
                }, t.prototype.ResetFingerPosition = function() {
                    this.scheduleOnce(this.RefreshViewSize, .1)
                }, t.prototype.RefreshViewSize = function() {
                    this && this.isValid && (this.SetPosition(), this.SkipSpine.setPosition(this.SkipBtn.node.position))
                }, t.prototype.ConfigHintInfo = function() {
                    "" != this._hintInfoKey ? (this.InfoContainer.active = !0, this.TipsLocationComponent.RepositionPanel(this._targetNode), this.Info.string = this._hintInfoKey.ToUILocale()) : this.InfoContainer.active = !1
                }, t.prototype.SetPosition = function() {
                    if (this._targetNode && this._targetNode.isValid) {
                        var e = this._targetNode.convertToWorldSpaceAR(cc.v2(0, 0)),
                            t = this.node.convertToNodeSpaceAR(e);
                        this.FingerSpine.node.setPosition(t), this.MaskNode.setPosition(this.FingerSpine.node.position.x, this.FingerSpine.node.position.y + this._offsetY), this.ClickArea.setPosition(this.MaskNode.position), this.InfoContainer.active && this.TipsLocationComponent.RepositionPanel(this._targetNode)
                    }
                }, t.prototype.ConfigFingerNode = function() {
                    this.SetPosition(), this.FingerSpine.setAnimation(0, this.SPINE_ANIMATION_1, !0)
                }, t.prototype.ConfigMaskNode = function() {
                    this._maskComponent.type = this._maskType, this._guideHintConfig.Size.length > 1 ? (this.MaskNode.width = this._guideHintConfig.Size[0], this.MaskNode.height = this._guideHintConfig.Size[1]) : (this.MaskNode.width = this._targetNode.width, this.MaskNode.height = this._targetNode.height), this._maskSprite.enabled = !this._hideMask, this.ClickArea.width = this.MaskNode.width, this.ClickArea.height = this.MaskNode.height
                }, t.prototype.ConfigSkipBtn = function() {
                    var e = this;
                    this.SkipBtn.node.active = !1, this.SkipSpine.active = !1, this.scheduleOnce(function() {
                        e.ShowSkipBtn()
                    }, 10)
                }, t.prototype.ShowSkipBtn = function() {
                    if (!this._canSkip) return this.SkipBtn.node.active = !1, void(this.SkipSpine.active = !1);
                    this.SkipBtn.node.active = !0, this.SkipBtn.node.opacity = 255, this.SkipSpine.active = !0, this.SkipSpine.setPosition(this.SkipBtn.node.position)
                }, t.prototype.OnClickBg = function() {
                    var e = this;
                    this.FingerSpine.setAnimation(0, this.SPINE_ANIMATION_2, !1), this.FingerSpine.setCompleteListener(function() {
                        e.FingerSpine.setAnimation(0, e.SPINE_ANIMATION_1, !0)
                    }), this._clickTimes++, 5 == this._clickTimes && this.ShowSkipBtn()
                }, t.prototype.OnClickArea = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this._isClicking ? [3, 2] : (this._isClicking = !0, [4, this.WaitingSeconds()]);
                                case 1:
                                    e.sent(), this.Close(), l.Game.EventDispatcher.Emit(y.EventKeys.EVENT_GUIDEHINT_CLOSE), h.UIUtlity.ShowMaskPanel(), d.default.Instance.CheckNextStep(), this._isClicking = !1, e.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnSkip = function() {
                    var e = this;
                    h.UIUtlity.ShowHintPanel("", "guide_skip_hint".ToUILocale(), "", void 0, "", function() {
                        e.Close(), d.default.Instance.CheckNextStep(!0)
                    })
                }, t.prototype.WaitingSeconds = function(e) {
                    return void 0 === e && (e = 0), a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function() {
                            return [2, new Promise(function(n) {
                                t.scheduleOnce(function() {
                                    t.isValid && n(void 0)
                                }, e)
                            })]
                        })
                    })
                }, i([I(cc.Node)], t.prototype, "ClickArea", void 0), i([I(cc.Node)], t.prototype, "MaskNode", void 0), i([I(cc.Node)], t.prototype, "Bg", void 0), i([I(cc.Node)], t.prototype, "InfoContainer", void 0), i([I(sp.Skeleton)], t.prototype, "FingerSpine", void 0), i([I(cc.RichText)], t.prototype, "Info", void 0), i([I(u.default)], t.prototype, "TipsLocationComponent", void 0), i([I(cc.Button)], t.prototype, "SkipBtn", void 0), i([I(cc.Node)], t.prototype, "SkipSpine", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./TipsLocationComponent": "TipsLocationComponent"
    }],
    GuideManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4c322iFu0BF9p/qfXIlmGtL", "GuideManager");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../EZFramework/EZFramework"),
            c = e("../../EZFramework/EZFramework"),
            u = e("../Components/Components"),
            p = e("../../Consts/Consts"),
            d = e("../../../Proto/Static/ConfigProto"),
            h = e("./GlobalDefine"),
            f = e("./EventKeys"),
            y = e("./DataUtlity"),
            g = e("../../../Proto/Static/RpcProto"),
            m = e("../UI/Auxiliary/UIUtlity"),
            I = e("../Channel/AdjustAction"),
            _ = cc._decorator,
            C = _.ccclass,
            v = (_.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FinalGuideGroup = 1e3, t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return null === this._instance && (this._instance = cc.find(c.SysDefine.SYS_SCRIPTNODE).addComponent(this)), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function() {
                    l.Game.EventDispatcher.OnlyOnce(p.GameEventIds.ServerConnected, this.OnGameServerConnected, this), this.IsInGuide = !1
                }, t.prototype.OnGameServerConnected = function() {
                    this.CheckGuideStep()
                }, t.prototype.CheckGuideStep = function() {
                    if (u.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel) >= 8) return this.IsInGuide = !1, void(this._currentGroup = void 0);
                    this._guideGropuConfigs = u.ConfigDataComponent.Instance.GetArrayConfig(d.GuideGroup_Config);
                    var e = u.DataCenter.Instance.GetArrayData(p.UserDataKey.CompletedGuides);
                    return -1 == e.indexOf(1) && e.splice(0, 0, 1), e.length > 0 && e.indexOf(this.FinalGuideGroup) > -1 ? (this.IsInGuide = !1, void(this._currentGroup = void 0)) : (this._groupConfigIndex = e.length, this._groupConfigIndex >= this._guideGropuConfigs.length ? (this.IsInGuide = !1, void(this._currentGroup = void 0)) : (this._currentGroupConfig = this._guideGropuConfigs[this._groupConfigIndex], this._currentGroup = this._currentGroupConfig.Id, this._allSteps = this._currentGroupConfig.Steps2, this._currentStep = this._allSteps[0], this._stepIndex = 0, void(this.IsInGuide = !0)))
                }, Object.defineProperty(t.prototype, "CurrentGroup", {
                    get: function() {
                        return this._currentGroup
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "CurrentStep", {
                    get: function() {
                        return this._currentStep
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.ShowGuide = function(e) {
                    var t = u.ConfigDataComponent.Instance.GetConfigById(d.GuideStep_Config, this._currentStep);
                    switch (t.Type[0]) {
                        case 1:
                            this.ShowNPCDialog(t.Type[1]);
                            break;
                        case 2:
                            this.ShowGuideHintPanel(t.Type[1], e);
                            break;
                        case 3:
                            m.UIUtlity.ShowPanelById(t.Type[1])
                    }
                }, t.prototype.ShowNPCDialog = function(e) {
                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.NPCDialog.Path, e)
                }, t.prototype.ShowGuideHintPanel = function(e, t) {
                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.GuideHintPanel.Path, e, t)
                }, t.prototype.CheckNextStep = function(e) {
                    return void 0 === e && (e = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            if (!this.IsInGuide) return m.UIUtlity.CloseMaskPanel(), [2];
                            if (this._stepIndex++, this._stepIndex >= this._allSteps.length || e) {
                                if (this._groupConfigIndex++, this._stepIndex = 0, this._groupConfigIndex >= this._guideGropuConfigs.length || e) return this._currentStep = 0, this._currentGroup = void 0, this.IsInGuide = !1, this.NotifyGuideComplete(), [2];
                                this._currentStep = 0, m.UIUtlity.CloseMaskPanel(), this._currentGroupConfig = this._guideGropuConfigs[this._groupConfigIndex], this._currentGroup = this._currentGroupConfig.Id, this._allSteps = e ? this._currentGroupConfig.Steps2 : this._currentGroupConfig.Steps1, this._currentStep = this._allSteps[0]
                            } else m.UIUtlity.CloseMaskPanel(), this._currentStep = this._allSteps[this._stepIndex];
                            return e ? c.Game.EventDispatcher.Emit(f.EventKeys.EVENT_REFRESH_MAINPANEL) : (u.ConfigDataComponent.Instance.GetConfigById(d.GuideStep_Config, this._currentStep).AutoNextStep, l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_REFRESH_GUIDE_STEP)), [2]
                        })
                    })
                }, t.prototype.NotifyGuideComplete = function() {
                    m.UIUtlity.CloseMaskPanel();
                    var e = new g.Req_Player_CompleteNewerGuide;
                    u.RpcComponent.Instance.Call(e, this.OnNotifySuccess.bind(this), void 0, this.FinalGuideGroup), y.default.Instance.ShowColorDiamondEntrance()
                }, t.prototype.OnNotifySuccess = function() {
                    I.default.AdjustTrackEvent(I.AdjustEventToken.Tutorial)
                }, t.prototype.WaitingSeconds = function(e) {
                    return void 0 === e && (e = .5), a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function() {
                            return [2, new Promise(function(n) {
                                setTimeout(function() {
                                    t.isValid && n(void 0)
                                }, 1e3 * e)
                            })]
                        })
                    })
                }, t._instance = null, i([C], t)
            }(cc.Component));
        n.default = v, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../Consts/Consts": "Consts",
        "../../EZFramework/EZFramework": "EZFramework",
        "../Channel/AdjustAction": "AdjustAction",
        "../Components/Components": "Components",
        "../UI/Auxiliary/UIUtlity": "UIUtlity",
        "./DataUtlity": "DataUtlity",
        "./EventKeys": "EventKeys",
        "./GlobalDefine": "GlobalDefine"
    }],
    GuidePlotPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "846ecOiabdGtKpKgUN//MVR", "GuidePlotPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../Consts/Consts"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !0, !1, !0), t.Seasons = null, t.Mask = null, t.YellowBg = null, t.SkipBtn = null, t._currentStep = 1, t.SeasonInternal = 3, t.MaskOpacity = 130, t
                }
                return r(t, e), t.prototype.onDisable = function() {
                    cc.Tween.stopAllByTag(this._tweenId)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SkipBtn.node.on("click", this.OnQuit, this), this.YellowBg.active = !1;
                    for (var t = 0; t < this.Seasons.childrenCount; t++) this.Seasons.children[t].active = !1;
                    var n = cc.tween(this.SkipBtn.node).tag(this._tweenId).to(.8, {
                            opacity: 100
                        }),
                        o = cc.tween(this.SkipBtn.node).tag(this._tweenId).to(.6, {
                            opacity: 255
                        });
                    cc.tween(this.SkipBtn.node).tag(this._tweenId).sequence(n, o).repeatForever().start()
                }, t.prototype.ResetPanelState = function() {
                    this._currentStep = 1, this._tweenId = c.PanelConfig.GuidePlotPanel.Id
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.PlayByStep()
                }, t.prototype.PlayByStep = function() {
                    switch (this.YellowBg.active = !1, this._currentStep) {
                        case 1:
                            this.PlayStep1();
                            break;
                        case 2:
                            this.PlayStep2();
                            break;
                        case 3:
                            this.PlayStep3();
                            break;
                        case 4:
                            this.PlayStep4();
                            break;
                        case 5:
                            this.PlayStep5();
                            break;
                        case 6:
                            this.PlayStep6();
                            break;
                        case 7:
                            this.PlayStep7();
                            break;
                        case 8:
                            this.PlayStep8();
                            break;
                        case 9:
                            this.PlayStep9();
                            break;
                        case 10:
                            this.PlayStep10();
                            break;
                        case 11:
                            this.PlayStep11();
                            break;
                        case 12:
                            this.PlayStep12();
                            break;
                        case 13:
                            this.PlayStep13()
                    }
                }, t.prototype.WaitingSeconds = function(e) {
                    return void 0 === e && (e = .5), a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function() {
                            return [2, new Promise(function(n) {
                                setTimeout(function() {
                                    t.isValid && n(void 0)
                                }, 1e3 * e)
                            })]
                        })
                    })
                }, t.prototype.SwitchToNextStep = function(e) {
                    return void 0 === e && (e = this.SeasonInternal), a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, this.WaitingSeconds(e)];
                                case 1:
                                    return o.sent(), t = this.Seasons.children[this._currentStep - 1], cc.tween(this.Mask).tag(this._tweenId).to(.3, {
                                        opacity: 255
                                    }).call(function() {
                                        t.active = !1, n._currentStep++, n.PlayByStep()
                                    }).delay(.1).to(.4, {
                                        opacity: 0
                                    }).start(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep1 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("Bg", e), n = cc.find("Text", e), t.scale = 1.5, o = n.position, n.setPosition(cc.v2(n.position.x, n.position.y + 200)), this.Mask.opacity = 255, cc.tween(this.Mask).tag(this._tweenId).to(.7, {
                                        opacity: 0
                                    }).start(), [4, this.WaitingSeconds(.2)];
                                case 1:
                                    return i.sent(), cc.tween(t).tag(this._tweenId).to(1, {
                                        scale: 1
                                    }).start(), cc.tween(n).tag(this._tweenId).to(1, {
                                        position: o
                                    }).call(function() {
                                        r.SwitchToNextStep()
                                    }).start(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep2 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("Bg", e), n = cc.find("Text", e), t.scale = 1.5, o = n.position, n.setPosition(cc.v2(n.position.x, n.position.y + 200)), this.Mask.opacity = 255, cc.tween(this.Mask).tag(this._tweenId).to(.7, {
                                        opacity: 0
                                    }).start(), [4, this.WaitingSeconds(.2)];
                                case 1:
                                    return r.sent(), cc.tween(t).tag(this._tweenId).to(1, {
                                        scale: 1
                                    }).start(), cc.tween(n).tag(this._tweenId).to(1, {
                                        position: o
                                    }).start(), [4, this.WaitingSeconds(this.SeasonInternal + 1)];
                                case 2:
                                    return r.sent(), n.active = !1, this._currentStep++, this.PlayByStep(), [4, this.WaitingSeconds(1)];
                                case 3:
                                    return r.sent(), e.active = !1, [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep3 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c, u, p, d, h = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("BgNode1", e), n = cc.find("BgNode2", e), o = cc.find("BgNode3", e), r = cc.find("Text", e), i = cc.find("Line", e), t.opacity = 0, n.opacity = 0, o.opacity = 0, i.opacity = 0, t.scale = .5, n.scale = 1.7, a = o.position, o.setPosition(o.position.x, o.position.y - 200), l = r.position, r.setPosition(r.position.x, r.position.y + 200), cc.tween(t).tag(this._tweenId).to(.7, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), cc.tween(n).tag(this._tweenId).to(.7, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), cc.tween(o).tag(this._tweenId).to(.7, {
                                        opacity: 255,
                                        position: a
                                    }).start(), cc.tween(r).to(.7, {
                                        position: l
                                    }).start(), [4, this.WaitingSeconds(2)];
                                case 1:
                                    return s.sent(), c = cc.find("Bg1", t), u = cc.find("Bg2", t), p = cc.find("Bg3", t), cc.tween(c).tag(this._tweenId).to(1, {
                                        scale: .3 * c.scale,
                                        opacity: 0
                                    }).start(), cc.tween(u).tag(this._tweenId).delay(1).to(.6, {
                                        scale: 1.3 * u.scale,
                                        opacity: 0
                                    }).start(), cc.tween(p).tag(this._tweenId).to(1, {
                                        angle: 100,
                                        scale: .9 * p.scale
                                    }).to(.6, {
                                        angle: 180,
                                        scale: .2 * p.scale
                                    }).call(function() {
                                        p.opacity = 0, i.opacity = 255, cc.tween(i).tag(h._tweenId).delay(.2).to(.2, {
                                            scale: 0
                                        }).start()
                                    }).start(), d = cc.find("Bg", n), cc.tween(d).tag(this._tweenId).to(1, {
                                        scale: 0
                                    }).start(), cc.tween(o).tag(this._tweenId).to(1.3, {
                                        position: cc.v3(a.x, a.y - 1e3)
                                    }).start(), [4, this.WaitingSeconds(1.6)];
                                case 2:
                                    return s.sent(), cc.tween(r).tag(this._tweenId).to(.8, {
                                        opacity: 0
                                    }).call(function() {
                                        e.active = !0
                                    }).start(), [4, this.WaitingSeconds()];
                                case 3:
                                    return s.sent(), this._currentStep++, this.PlayByStep(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep4 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function() {
                            return this.YellowBg.active = !0, (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("TextNode", e), n = cc.find("Info", e), t.scale = 0, n.opacity = 0, o = t.position, t.setPosition(t.position.x, t.position.y - 200), r = n.position, n.setPosition(n.position.x, n.position.y + 200), cc.tween(t).tag(this._tweenId).to(.3, {
                                scale: 1,
                                position: o
                            }).start(), cc.tween(n).tag(this._tweenId).delay(.3).to(.6, {
                                opacity: 255
                            }).start(), cc.tween(n).tag(this._tweenId).delay(.3).to(.6, {
                                position: r
                            }, {
                                easing: "bounceOut"
                            }).start(), this.SwitchToNextStep(this.SeasonInternal), [2]
                        })
                    })
                }, t.prototype.PlayStep5 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function() {
                            return (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("Text1", e), n = cc.find("Text2", e), t.opacity = 0, t.scale = 0, n.opacity = 0, n.scale = 0, cc.tween(t).tag(this._tweenId).to(.3, {
                                opacity: 255,
                                scale: 1
                            }).start(), cc.tween(n).tag(this._tweenId).delay(.8).to(.3, {
                                opacity: 255,
                                scale: 1
                            }).start(), this.SwitchToNextStep(this.SeasonInternal + 1), [2]
                        })
                    })
                }, t.prototype.PlayStep6 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c, u, p = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this.YellowBg.active = !0, (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("InfoBg1/Mask", e), n = cc.find("InfoBg2/Mask", e), o = cc.find("Avatar", e), t.opacity = this.MaskOpacity, n.opacity = 0, o.opacity = 0, r = o.position, o.setPosition(o.position.x, o.position.y - 500), i = cc.find("Text1", e), a = cc.find("Text2", e), l = cc.find("Icon", e), i.opacity = 0, a.opacity = 0, i.scale = 0, a.scale = 0, l.opacity = 0, [4, this.WaitingSeconds(1.2)];
                                case 1:
                                    return s.sent(), cc.tween(o).tag(this._tweenId).to(.4, {
                                        opacity: 255,
                                        position: r
                                    }).start(), cc.tween(t).tag(this._tweenId).to(.4, {
                                        opacity: 180
                                    }).start(), cc.tween(n).tag(this._tweenId).to(.4, {
                                        opacity: 180
                                    }).start(), [4, this.WaitingSeconds(.8)];
                                case 2:
                                    return s.sent(), c = i.position, i.setPosition(i.position.x + 150, i.position.y - 150), cc.tween(i).tag(this._tweenId).to(.3, {
                                        opacity: 255,
                                        scale: 1,
                                        position: c
                                    }).start(), [4, this.WaitingSeconds(1.5)];
                                case 3:
                                    return s.sent(), u = a.position, a.setPosition(a.position.x - 150, a.position.y - 150), cc.tween(a).tag(this._tweenId).to(.3, {
                                        opacity: 255,
                                        scale: 1,
                                        position: u
                                    }).call(function() {
                                        l.opacity = 255, cc.tween(a).tag(p._tweenId).to(.06, {
                                            angle: -5
                                        }).to(.06, {
                                            angle: 5
                                        }).to(.06, {
                                            angle: -3
                                        }).to(.1, {
                                            angle: 0
                                        }, {
                                            easing: "bounceOut"
                                        }).start()
                                    }).start(), [4, this.WaitingSeconds(2)];
                                case 4:
                                    return s.sent(), cc.tween(e).tag(this._tweenId).to(.6, {
                                        opacity: 0
                                    }).start(), cc.tween(o).tag(this._tweenId).to(.6, {
                                        position: cc.v3(o.position.x + 500, o.position.y, 0)
                                    }).start(), [4, this.WaitingSeconds(.7)];
                                case 5:
                                    return s.sent(), this._currentStep++, this.PlayByStep(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep7 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this.YellowBg.active = !0, (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("Bg1", e), n = cc.find("Text1", e), o = cc.find("Bg1/Text2", e), t.opacity = 100, n.opacity = 0, o.scale = 0, r = t.position, t.setPosition(t.position.x - 100, t.position.y), i = cc.find("Bg2", e), a = cc.find("Text3", e), l = cc.find("Bg2/Text4", e), i.opacity = 0, a.opacity = 0, l.scale = 0, c = i.position, i.setPosition(i.position.x + 100, i.position.y), cc.tween(t).tag(this._tweenId).to(.3, {
                                        opacity: 255,
                                        position: r
                                    }).call(function() {
                                        n.opacity = 255
                                    }).start(), cc.tween(o).tag(this._tweenId).delay(.1).to(.2, {
                                        scale: 1
                                    }).start(), [4, this.WaitingSeconds(3)];
                                case 1:
                                    return s.sent(), cc.tween(i).tag(this._tweenId).to(.3, {
                                        opacity: 255,
                                        position: c
                                    }).call(function() {
                                        a.opacity = 255
                                    }).start(), cc.tween(l).tag(this._tweenId).delay(.1).to(.2, {
                                        scale: 1
                                    }).start(), [4, this.WaitingSeconds(3)];
                                case 2:
                                    return s.sent(), this._currentStep++, cc.tween(e).tag(this._tweenId).to(.7, {
                                        position: cc.v3(0, e.height)
                                    }, {
                                        easing: "smooth"
                                    }).call(function() {
                                        e.active = !1
                                    }).start(), this.PlayStep8(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep8 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.YellowBg.active = !0, (e = this.Seasons.children[this._currentStep - 1]).active = !0, e.setPosition(0, -e.height), t = cc.find("Bg", e), n = cc.find("TextNode", e), o = cc.find("Text3", e), t.opacity = n.opacity = o.opacity = 0, o.scale = 0, r = n.position, n.setPosition(n.position.x, n.position.y + 100), cc.tween(t).tag(this._tweenId).to(0, {
                                        opacity: 255
                                    }).start(), cc.tween(e).tag(this._tweenId).to(.7, {
                                        position: cc.v3(0, 0)
                                    }, {
                                        easing: "smooth"
                                    }).start(), cc.tween(n).tag(this._tweenId).delay(.7).to(.3, {
                                        opacity: 255,
                                        position: r
                                    }).start(), [4, this.WaitingSeconds(3.7)];
                                case 1:
                                    return i.sent(), cc.tween(o).tag(this._tweenId).to(.3, {
                                        opacity: 255,
                                        scale: 1
                                    }).call(function() {
                                        u.UIUtlity.OnSpriteGray(t.getComponent(cc.Sprite))
                                    }).start(), cc.tween(n).tag(this._tweenId).delay(.2).to(.3, {
                                        opacity: 0
                                    }).start(), [4, this.WaitingSeconds(3.3)];
                                case 2:
                                    return i.sent(), u.UIUtlity.OffSpriteGray(t.getComponent(cc.Sprite)), cc.tween(t).tag(this._tweenId).delay(.1).to(.4, {
                                        scale: 1.5
                                    }).start(), cc.tween(e).tag(this._tweenId).delay(.1).to(.4, {
                                        opacity: 0
                                    }).start(), [4, this.WaitingSeconds(.3)];
                                case 3:
                                    return i.sent(), this._currentStep++, this.PlayStep9(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep9 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c, p, d, h = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this.YellowBg.active = !0, (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("Bg1", e), n = cc.find("Text1", e), o = cc.find("Bg2", e), r = cc.find("Text2", e), i = cc.find("Text3", e), t.opacity = n.opacity = o.opacity = r.opacity = i.opacity = 0, n.scale = r.scale = i.scale = .3, a = (t.width - u.UIUtlity.DESIGN_SCREEN_WIDTH) / 2, t.setPosition(a, t.position.y), l = -(o.width - u.UIUtlity.DESIGN_SCREEN_WIDTH) / 2, o.setPosition(l, o.position.y), cc.tween(t).tag(this._tweenId).by(.3, {
                                        opacity: 255,
                                        position: cc.v3(-150)
                                    }).call(function() {
                                        c = cc.tween(t).tag(h._tweenId).by(.2, {
                                            position: cc.v3(-6)
                                        }).repeatForever().start()
                                    }).start(), p = n.position, n.setPosition(n.position.x + 100, n.position.y), cc.tween(n).tag(this._tweenId).delay(.1).to(.2, {
                                        opacity: 255,
                                        scale: 1,
                                        position: p
                                    }).start(), [4, this.WaitingSeconds(3)];
                                case 1:
                                    return s.sent(), cc.tween(o).tag(this._tweenId).by(.3, {
                                        opacity: 255,
                                        position: cc.v3(150)
                                    }).call(function() {
                                        d = cc.tween(o).tag(h._tweenId).by(.2, {
                                            position: cc.v3(6)
                                        }).repeatForever().start()
                                    }).start(), cc.tween(r).tag(this._tweenId).delay(.1).to(.2, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), [4, this.WaitingSeconds(2.3)];
                                case 2:
                                    return s.sent(), cc.tween(i).tag(this._tweenId).to(.2, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), [4, this.WaitingSeconds(this.SeasonInternal + .2)];
                                case 3:
                                    return s.sent(), c && c.stop(), d && d.stop(), this._currentStep++, cc.tween(e).tag(this._tweenId).to(.7, {
                                        position: cc.v3(0, e.height + 200)
                                    }, {
                                        easing: "smooth"
                                    }).call(function() {
                                        e.active = !1
                                    }).start(), this.PlayStep10(), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep10 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this.YellowBg.active = !0, (e = this.Seasons.children[this._currentStep - 1]).active = !0, e.setPosition(0, -e.height), t = cc.find("Bg1", e), n = cc.find("Bg2", e), o = cc.find("Text1", e), r = cc.find("Text2", e), t.opacity = n.opacity = o.opacity = r.opacity = 0, o.scale = r.scale = .2, cc.tween(t).tag(this._tweenId).to(0, {
                                        opacity: 255
                                    }).start(), cc.tween(e).tag(this._tweenId).to(.7, {
                                        position: cc.v3(0, 0)
                                    }, {
                                        easing: "smooth"
                                    }).call(function() {
                                        cc.tween(o).tag(a._tweenId).to(.3, {
                                            opacity: 255,
                                            scale: 1
                                        }).start()
                                    }).start(), [4, this.WaitingSeconds(1.5)];
                                case 1:
                                    return s.sent(), i = n.position, n.setPosition(n.position.x + 200, n.position.y), cc.tween(n).tag(this._tweenId).to(.5, {
                                        opacity: 255,
                                        position: i
                                    }, {
                                        easing: "bounceOut"
                                    }).start(), cc.tween(r).tag(this._tweenId).to(.2, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), this.SwitchToNextStep(this.SeasonInternal + .5), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep11 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("Text1", e), n = cc.find("Text2", e), t.opacity = n.opacity = 0, t.scale = n.scale = 0, cc.tween(t).tag(this._tweenId).to(.3, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), [4, this.WaitingSeconds(2.5)];
                                case 1:
                                    return o.sent(), cc.tween(n).tag(this._tweenId).to(.3, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), this.SwitchToNextStep(this.SeasonInternal + .3), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep12 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("Info", e), n = cc.find("Arrow", t), o = cc.find("HeroAvatar", e), t.opacity = 0, t.scale = 0, cc.tween(t).tag(this._tweenId).to(.3, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), [4, this.WaitingSeconds(.4)];
                                case 1:
                                    return i.sent(), o.getComponent(sp.Skeleton).setAnimation(0, p.SkillAnimationType.Move, !0), r = cc.tween(o).tag(this._tweenId).by(1, {
                                        position: cc.v3(500)
                                    }).repeat(20).start(), cc.tween(n).tag(this._tweenId).delay(.55).by(.4, {
                                        angle: 23
                                    }).repeat(5).start(), [4, this.WaitingSeconds(4)];
                                case 2:
                                    return i.sent(), r && r.stop(), this.SwitchToNextStep(0), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStep13 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return (e = this.Seasons.children[this._currentStep - 1]).active = !0, t = cc.find("Bg1", e), n = cc.find("Bg2", e), o = cc.find("Text1", e), r = cc.find("Text2", e), (i = cc.find("Hint", e)).active = !1, t.opacity = n.opacity = o.opacity = r.opacity = i.opacity = 0, o.scale = r.scale = 0, a = t.position, t.setPosition(t.position.x, t.position.y + 200), cc.tween(t).tag(this._tweenId).to(.8, {
                                        opacity: 255,
                                        scale: 1,
                                        position: a
                                    }).start(), cc.tween(o).tag(this._tweenId).delay(.5).to(.3, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), [4, this.WaitingSeconds(2)];
                                case 1:
                                    return s.sent(), l = n.position, n.setPosition(n.position.x, n.position.y - 200), cc.tween(n).tag(this._tweenId).to(.8, {
                                        opacity: 255,
                                        scale: 1,
                                        position: l
                                    }).start(), cc.tween(r).tag(this._tweenId).delay(.5).to(.3, {
                                        opacity: 255,
                                        scale: 1
                                    }).start(), [4, this.WaitingSeconds(2.8)];
                                case 2:
                                    return s.sent(), i.active = !0, i.on(cc.Node.EventType.TOUCH_END, this.OnQuit, this), c = cc.tween(i).tag(this._tweenId).to(.1, {
                                        opacity: 0
                                    }).delay(.3), u = cc.tween(i).tag(this._tweenId).to(.1, {
                                        opacity: 255
                                    }).delay(.5), cc.tween(i).tag(this._tweenId).sequence(c, u).repeatForever().start(), [2]
                            }
                        })
                    })
                }, t.prototype.OnQuit = function() {
                    this.DelayClose(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.MainScenePanel.Path)
                }, i([f(cc.Node)], t.prototype, "Seasons", void 0), i([f(cc.Node)], t.prototype, "Mask", void 0), i([f(cc.Node)], t.prototype, "YellowBg", void 0), i([f(cc.Button)], t.prototype, "SkipBtn", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    GuidePlotVideo: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d21c7mYW2JLS7qZ7mpnGYDb", "GuidePlotVideo");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Channel/ChannelManager"),
            l = e("../../Components/Components"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../../Consts/Consts"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.PopUp, !0, !1, !0), t.VideoNode = null, t.VideoPlayer = null, t.BgNode = null, t.Entrance = null, t.SkipBtn = null, t.HintLabel = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Entrance.on(cc.Node.EventType.TOUCH_END, this.StartPlay, this), this.SkipBtn.node.on("click", this.OnSkip, this), this.VideoNode.on("stopped", this.OnVideoCompeted, this), this.VideoNode.on("completed", this.OnVideoCompeted, this)
                }, t.prototype.InitData = function(t) {
                    switch (e.prototype.InitData.call(this), this._isNewRole = t[0], l.GlobalConfigComponent.Instance.Locale) {
                        case u.GameLocales.Jp:
                        case u.GameLocales.Cn:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlotCompress.mp4";
                            break;
                        case u.GameLocales.En:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_EN_Compress.mp4";
                            break;
                        case u.GameLocales.Tw:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_TW_V2_Compress.mp4";
                            break;
                        case u.GameLocales.Ko:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_KO_V3_Compress.mp4";
                            break;
                        case u.GameLocales.Es:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_ES_Compress.mp4";
                            break;
                        case u.GameLocales.It:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_IT_Compress.mp4";
                            break;
                        case u.GameLocales.Fr:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_FR_V2_Compress.mp4";
                            break;
                        case u.GameLocales.Nl:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_NL_Compress.mp4";
                            break;
                        case u.GameLocales.Pt:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_PT_Compress.mp4";
                            break;
                        case u.GameLocales.EsES:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_es-ES_Compress.mp4";
                            break;
                        case u.GameLocales.De:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_DE_V2_Compress.mp4";
                            break;
                        case u.GameLocales.Th:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_TH_Compress.mp4";
                            break;
                        case u.GameLocales.ID:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_ID_Compress.mp4";
                            break;
                        case u.GameLocales.VI:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_VI_Compress.mp4";
                            break;
                        case u.GameLocales.TL:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlot_TL_Compress.mp4";
                            break;
                        default:
                            this._remoteURL = "https://cdn.g123-queensblade.com/G123Live/GuidePlotCompress.mp4"
                    }
                    this.VideoPlayer.remoteURL = this._remoteURL
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SkipBtn.node.active = !1, a.AssetsManager.Instance.LoadAsset("MainPanel/MainScenePanel", cc.Prefab)
                }, t.prototype.StartPlay = function() {
                    this.BgNode.active = !1, this.HintLabel.node.active = !1, this.VideoPlayer.play(), this.SkipBtn.node.active = !0, l.RpcComponent.Instance.ConnectServer(), this._isNewRole && s.default.Instance.PostMessage(s.ActionType.CreateRole)
                }, t.prototype.OnSkip = function() {
                    this.VideoPlayer.stop()
                }, t.prototype.OnVideoCompeted = function() {
                    this.SkipBtn.node.active = !1, this.DelayClose(), a.Game.EventDispatcher.Emit(c.EventKeys.EVENT_VIDEO_PLAY_COMPLETE)
                }, i([h(cc.Node)], t.prototype, "VideoNode", void 0), i([h(cc.VideoPlayer)], t.prototype, "VideoPlayer", void 0), i([h(cc.Node)], t.prototype, "BgNode", void 0), i([h(cc.Node)], t.prototype, "Entrance", void 0), i([h(cc.Button)], t.prototype, "SkipBtn", void 0), i([h(cc.Label)], t.prototype, "HintLabel", void 0), i([d], t)
            }(a.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components"
    }],
    HRCheckpointComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8366a9517xKuLF9miovUqV3", "HRCheckpointComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HRCheckpointLineType = n.HRCheckpointLineDirection = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("./CommonImgBtnComponent");
        (function(e) {
            e[e.Up = 0] = "Up", e[e.UpLeft = 1] = "UpLeft", e[e.Left = 2] = "Left", e[e.Right = 3] = "Right", e[e.Down = 4] = "Down", e[e.no = 5] = "no"
        })(l = n.HRCheckpointLineDirection || (n.HRCheckpointLineDirection = {})),
        function(e) {
            e[e.Normal = 0] = "Normal", e[e.Elite = 1] = "Elite", e[e.Boss = 2] = "Boss"
        }(n.HRCheckpointLineType || (n.HRCheckpointLineType = {}));
        var d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Btn = null, t.LineList = null, t.ProgreddList = null, t.IconSprite = null, t._index = 0, t._direction = l.Up, t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._index = e, this._panelData = t, this._atlas ? [3, 2] : (n = this, [4, c.AssetsManager.Instance.LoadAsset("HolyRelicsPanel/PNG/HolyRelicsPanel", cc.SpriteAtlas)]);
                                case 1:
                                    if (n._atlas = r.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._atlas), [2];
                                    r.label = 2;
                                case 2:
                                    return o = Math.floor(t.PassedCount / 10), this._panelData.MapIdx >= 9 ? o >= t.ElementMapLength - 1 ? this.Btn.Set(this.OnClick.bind(this), "HolyRelic_CheckPoint".ToUILocale().Fmt(10 * Math.max(o, 0) + e + 1)) : this.Btn.Set(this.OnClick.bind(this), "HolyRelic_CheckPoint".ToUILocale().Fmt(10 * Math.max(o + 1, 0) + e + 1)) : this.Btn.Set(this.OnClick.bind(this), "HolyRelic_CheckPoint".ToUILocale().Fmt(10 * Math.max(o, 0) + e + 1)), this.ConfigIcon(), [2]
                            }
                        })
                    })
                }, t.prototype.OnClick = function() {
                    this._passed ? u.UIUtlity.ShowFloatingHint("HolyRelic_CanNotReChallenge".ToUILocale()) : this._isNow || u.UIUtlity.ShowFloatingHint("HolyRelic_NeedOterCheckPoint".ToUILocale())
                }, t.prototype.ConfigIcon = function() {
                    var e = this._panelData.MapIdx;
                    null == e && (e = -1);
                    var t = e + 2;
                    t > 10 && (t %= 10), this._panelData.PassedCount >= this._panelData.MaxCheckPointNum - 1 && (t = 11), this._passed = this._index < t - 1, this._isNow = this._index == t - 1;
                    var n = this._panelData.GetCheckPointIconType(this._index);
                    this._passed ? (this.IconSprite.spriteFrame = this._atlas.getSpriteFrame("CheckPoint" + n), u.UIUtlity.OnSpriteGray(this.IconSprite)) : (u.UIUtlity.OffSpriteGray(this.IconSprite), this._isNow ? this.IconSprite.spriteFrame = this._atlas.getSpriteFrame("CheckPoint" + n + "_light") : this.IconSprite.spriteFrame = this._atlas.getSpriteFrame("CheckPoint" + n + "_gray")), this._direction < 4 && (this.ProgreddList.active = this._passed)
                }, t.prototype.onDestroy = function() {
                    c.AssetsManager.Instance.UnloadAsset(this._atlas)
                }, i([f(p.default)], t.prototype, "Btn", void 0), i([f(cc.Node)], t.prototype, "LineList", void 0), i([f(cc.Node)], t.prototype, "ProgreddList", void 0), i([f(cc.Sprite)], t.prototype, "IconSprite", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CommonImgBtnComponent": "CommonImgBtnComponent"
    }],
    HRCheckpointGroupComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "88cc11swPBKL5e0lWm9asO0", "HRCheckpointGroupComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("./HRCheckpointComponent"),
            u = e("./ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BigRewardLabel = null, t.ItemContainer = null, t.PointComponents = [], t._interval = 245, t._pointCompList = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Set = function(e) {
                    this._panelData = e, this.ConfigCheckPoint()
                }, t.prototype.ConfigCheckPoint = function() {
                    for (var e = 0; e < this.PointComponents.length; e++) this.PointComponents[e].Set(this.PointComponents.length - (e + 1), this._panelData)
                }, t.prototype.OnClickItem = function(e, t) {
                    if (-1 != this.ItemContainer.children.indexOf(t)) {
                        var n = t.getComponent(u.ItemComponent);
                        l.UIUtlity.ShowItemTip(n.ItemId, t)
                    }
                }, t.prototype.onDestroy = function() {
                    a.AssetsManager.Instance.UnloadAsset(this._SinglePointPrefab)
                }, i([h(cc.Label)], t.prototype, "BigRewardLabel", void 0), i([h(cc.Node)], t.prototype, "ItemContainer", void 0), i([h(c.default)], t.prototype, "PointComponents", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HRCheckpointComponent": "HRCheckpointComponent",
        "./ItemComponent": "ItemComponent"
    }],
    HRTimesComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0cec7zjPg1IZ4mC1sewmHdA", "HRTimesComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./CommonImgBtnComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ResidueTimes = null, t.CanBuyTimes = null, t.AddBtn = null, t
                }
                return r(t, e), t.prototype.Set = function(e) {
                    e.upTip || (e.upTip = "HolyRelic_ResidueTimes".ToUILocale()), e.downTip || (e.downTip = "HolyRelic_CanBuyTimes".ToUILocale());
                    var t = "#00ff00",
                        n = "#00ff00";
                    e.residueTimes <= 0 && (t = "#ff0000"), e.canBuyTimes - e.todayBuyTimes <= 0 && (n = "#ff0000"), this.CanBuyTimes.string = (e.downTip + (e.canBuyTimes - e.todayBuyTimes + "/" + e.canBuyTimes).RichTextColor(n)).RichTextOutLine("#000000", 3), this.ResidueTimes.string = (e.upTip + ("" + e.residueTimes).RichTextColor(t)).RichTextOutLine("#000000", 3), e.addCall && this.AddBtn.Set(e.addCall)
                }, i([c(cc.RichText)], t.prototype, "ResidueTimes", void 0), i([c(cc.RichText)], t.prototype, "CanBuyTimes", void 0), i([c(a.default)], t.prototype, "AddBtn", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./CommonImgBtnComponent": "CommonImgBtnComponent"
    }],
    HRToggleGroupComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3ee4b9A2aJNN4J9u4UdjU5B", "HRToggleGroupComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./CustomToggle"),
            c = e("./PrefabListContainerComp"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ToggleGroup = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.ToggleGroup.Init("Buttons/ToggleTop", l.default, t), [4, this.ToggleGroup.Set(e.length)];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, i([d(c.default)], t.prototype, "ToggleGroup", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "./CustomToggle": "CustomToggle",
        "./PrefabListContainerComp": "PrefabListContainerComp"
    }],
    HRelicsCondictionComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "984fcb5iThE0K9keqc5A4Et", "HRelicsCondictionComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.label = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    void 0 === t && (t = !1), this.label.string = e
                }, i([l(cc.Label)], t.prototype, "label", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    HandbookComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "64f571VW7ZD4rVCoYhVCtDw", "HandbookComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./LevelComponent"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../../ShareConsts/EnumType"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CardNode = null, t.Bg = null, t.Icon = null, t.Mask = null, t.MaskHint = null, t.Border = null, t.ElementIcon = null, t.LevelComponent = null, t.NameNode = null, t.HeroName = null, t.SummonNameNode = null, t.SummonHeroName = null, t.RedDot = null, t.TagIcon = null, t.IconSpine = null, t.SPElementBg = null, t.QualityIcon = null, t._starLevel = 0, t._quality = 0, t._loadedAssets = [], t._borderSpineMap = {}, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_HANDBOOK_SHOW_BY_ELEMENT, this.OnHideByElement, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.Init = function(e, t, n) {
                    e instanceof u.UserHero_Model ? (this._heroData = e, this._itemId = e.HeroId, this._starLevel = e.StarLevel) : (this._itemId = e.ItemId, this._starLevel = e.StarLevel, this._isActive = e.IsActive, this._elementType = e.ElementType, this._isSummon = e.IsSummon), this._heroBorderAtlas = t, this._limitNameWidth = n, this.RedDot.active = !1, this.ConfigHeroInfo()
                }, t.prototype.ConfigHeroInfo = function() {
                    this._heroBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._itemId), this.SetHeroBorder(), this.SetIcon(), this.SetHeroElementIcon(this._heroBaseConfig.ElementType), this.SetSPHero(), this.SetStarLevel(), this.SetName(), this.SetMask(), this.SetHeroQualityIcon()
                }, t.prototype.SetHeroBorder = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function() {
                            return this._quality = this._starLevel, this._quality = this._quality > h.UIUtlity.Max_Quality_Level ? h.UIUtlity.Max_Quality_Level : this._quality, h.UIUtlity.HeroQualityConfig[this._heroBaseConfig.CoreHero] && h.UIUtlity.HeroQualityConfig[this._heroBaseConfig.CoreHero].HandbookFront ? (e = h.UIUtlity.HeroQualityConfig[this._heroBaseConfig.CoreHero].HandbookFront, this.SetSpine()) : this._heroBaseConfig.ElementType == I.HeroElementType.Chaos || this._heroBaseConfig.CoreHero == I.CoreHeroTag.SP ? (e = "card_border_7", this.SetChaosSpine()) : (e = "card_border_" + this._quality, this.HindeChaosSpine()), this.Border.spriteFrame = h.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(e), t = h.UIUtlity.HeroQualityConfig[this._heroBaseConfig.CoreHero] ? h.UIUtlity.HeroQualityConfig[this._heroBaseConfig.CoreHero].CardBg : this._heroBaseConfig.ElementType == I.HeroElementType.Chaos ? "card_bg_7" : "card_bg_" + this._quality, n = h.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(t), this.Bg.spriteFrame = n, [2]
                        })
                    })
                }, t.prototype.SetSpine = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.HindeChaosSpine(), this._heroBaseConfig.ElementType == I.HeroElementType.Chaos && this.SetChaosSpine(), [2]
                        })
                    })
                }, t.prototype.SetChaosSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.IconSpine.node.active = !0, this._iconSpine ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("ItemsComponent/Spine/ChaosSpine/UI_Effect_hundun_liuguang", sp.SkeletonData)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._iconSpine = e, this._loadedAssets.push(e), t.label = 2;
                                case 2:
                                    return this.IconSpine.skeletonData = this._iconSpine, this._heroBaseConfig.ElementType != I.HeroElementType.Chaos ? (this.HindeChaosSpine(), [2]) : (this.IconSpine.setAnimation(0, "Ani_UI_Effect_hundun_liuguang", !0), [2])
                            }
                        })
                    })
                }, t.prototype.HindeChaosSpine = function() {
                    this.IconSpine.node.active = !1
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    if (this._heroCardIcon) {
                                        if (this._heroCardIcon.name == y.BundlePath.HeroCardIcon + "/" + this._itemId) return [2];
                                        f.AssetsManager.Instance.UnloadAsset(this.Icon.spriteFrame), this._heroCardIcon = null
                                    }
                                    return e = this, [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.HeroCardIcon + "/" + this._itemId, cc.SpriteFrame)];
                                case 1:
                                    return e._heroCardIcon = t.sent(), this.isValid ? (this.Icon.spriteFrame = this._heroCardIcon, [2]) : (f.AssetsManager.Instance.UnloadAsset(this._heroCardIcon), [2])
                            }
                        })
                    })
                }, t.prototype.SetHeroElementIcon = function(e) {
                    this.ElementIcon.node.active = !0;
                    var t = h.UIUtlity.GetHeroElementIcon(e);
                    this.ElementIcon.spriteFrame = t
                }, t.prototype.SetSPHero = function() {
                    2 == this._heroBaseConfig.CoreHero ? (this.SPElementBg.node.active = !0, this.SPElementBg.spriteFrame = h.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spCricle")) : this.SPElementBg.node.active = !1
                }, t.prototype.SetStarLevel = function() {
                    this.LevelComponent.node.active = !0;
                    var e = c.LevelComponent.GetLevelShowType(this._heroBaseConfig.CoreHero, this._heroBaseConfig.ElementType);
                    this.LevelComponent.Init(this._starLevel, 0, 0, e)
                }, t.prototype.SetName = function() {
                    var e = this._itemId.ToHeroTitle();
                    this.SummonNameNode.active = !1, this.NameNode.active = !1, this._isSummon ? (this.SummonNameNode.active = !0, this.SummonHeroName.string = m.default.GetAbridgeString(this.HeroName, e, this._limitNameWidth), this.SummonHeroName.node.color = h.UIUtlity.GetLabelColorByQuality(this._quality)) : (this.NameNode.active = !0, this.HeroName.string = m.default.GetAbridgeString(this.HeroName, e, this._limitNameWidth), this.HeroName.node.color = h.UIUtlity.GetLabelColorByQuality(this._quality))
                }, t.prototype.SetMask = function() {
                    null == this._isActive || 1 == this._isActive ? (this.Mask.active = !1, this.MaskHint.node.active = !1, this.LevelComponent.node.active = !0) : (this.Mask.active = !0, this.MaskHint.node.active = !0, this.MaskHint.string = "not_got_yet".ToUILocale(), this.LevelComponent.node.active = !1)
                }, t.prototype.OnHideByElement = function(e) {
                    e == this._elementType || e <= 0 ? this.node.active = !0 : this.node.active = !1
                }, t.prototype.SetRedDotState = function(e, t) {
                    this.RedDot.active = e, t && (this.RedDot.scale = t)
                }, t.prototype.SetTagIcon = function(e) {
                    this.TagIcon.node.active = e, e && (this.TagIcon.spriteFrame = h.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("item_active"))
                }, t.prototype.SetHeroQualityIcon = function() {
                    var e = h.UIUtlity.GetSRByQuality(this._heroBaseConfig.Quality);
                    e && (this.QualityIcon.node.active = !0, this.QualityIcon.spriteFrame = e)
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.onDestroy = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_HANDBOOK_SHOW_BY_ELEMENT, this.OnHideByElement), this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) f.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = [], this._borderSpineMap = null, this._iconSpine = null, this._borderSpine = null, this._elementSpine = null, this._heroCardIcon && (f.AssetsManager.Instance.UnloadAsset(this._heroCardIcon), this._heroCardIcon = null)
                }, i([v(cc.Node)], t.prototype, "CardNode", void 0), i([v(cc.Sprite)], t.prototype, "Bg", void 0), i([v(cc.Sprite)], t.prototype, "Icon", void 0), i([v(cc.Node)], t.prototype, "Mask", void 0), i([v(cc.Label)], t.prototype, "MaskHint", void 0), i([v(cc.Sprite)], t.prototype, "Border", void 0), i([v(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([v(c.LevelComponent)], t.prototype, "LevelComponent", void 0), i([v(cc.Node)], t.prototype, "NameNode", void 0), i([v(cc.Label)], t.prototype, "HeroName", void 0), i([v(cc.Node)], t.prototype, "SummonNameNode", void 0), i([v(cc.Label)], t.prototype, "SummonHeroName", void 0), i([v(cc.Node)], t.prototype, "RedDot", void 0), i([v(cc.Sprite)], t.prototype, "TagIcon", void 0), i([v(sp.Skeleton)], t.prototype, "IconSpine", void 0), i([v(cc.Sprite)], t.prototype, "SPElementBg", void 0), i([v(cc.Sprite)], t.prototype, "QualityIcon", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LevelComponent": "LevelComponent"
    }],
    HandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bd3efnJw0RPYJm53giX1eYb", "HandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/SkillItemComponent"),
            g = e("../Components/LevelComponent"),
            m = e("../Components/CustomToggle"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../Components/NodeJiggling"),
            C = e("../../../../Proto/Static/RpcProto"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../../../ShareConsts/EnumType"),
            S = e("../../Components/Components"),
            w = e("../../../EZFramework/EZFramework"),
            P = e("../../RedDot/RedDotManager"),
            A = e("./StarPiecePanel"),
            T = e("../../../Util/TimeUtil"),
            R = e("../../../Consts/Consts"),
            L = e("./ChaosElementEffectPanel"),
            k = e("../../Channel/ChannelManager"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property;
        (function(e) {
            e[e.Hero = 0] = "Hero", e[e.Persoanlity = 1] = "Persoanlity"
        })(l || (l = {}));
        var B = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1, !1), t.HeroName = null, t.NickName = null, t.HeroPower = null, t.HeroAttr = null, t.HeroWork = null, t.HeroLevel = null, t.HeroCharacteristic = null, t.HeroAttrSpriteArray = [], t.HeroAttrValueArray = [], t.DetailNode = null, t.SkillsContainer = null, t.AnimationNode = null, t.ReturnButton = null, t.LeftButton = null, t.RightButton = null, t.LevelComponent = null, t.ToggleArray = [], t.MeetGiftButton = null, t.JumpGiftNode = null, t.MeetGiftButtonLabel = null, t.ShowButton = null, t.ShowLabel = null, t.SkinButton = null, t.SkinLabel = null, t.HeroDescButton = null, t.HeroDescLabel = null, t.Bg = null, t.BgSpriteFrame = null, t.StarPieceButton = null, t.StarPieceButtoIcon = null, t.StarPieceButtonLabel = null, t.HeroChangeButton = null, t.HeroChangeButtonBackground = null, t.HeroChangeButtonLabel = null, t.HeroChangeButtonRedDot = null, t.TopHideNode = null, t.HideButton = null, t.HideBtnSprite = null, t.HideLabel = null, t.LeftButtonsNode = null, t.RightButtonsNode = null, t.MainNode = null, t.AuraBtn = null, t.AuraBtnSprite = null, t.AuraBtnLabel = null, t._isShowMaxStarLevel = !1, t._isPure = !1, t._isActive = !1, t._currentChosenMode = 0, t._toggleLabelArray = ["heroInfoPanel_toggle_0", "skin"], t._starLevelStepArray = [5, 6, 11], t._currentStarLevelIndex = 0, t._skillItemArray = [], t._personalToggleNodes = [], t._curState = l.Hero, t._personalBg = null, t._chosenIndex = 0, t._isHide = !1, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HeroInfoPanel/PNG/Handbook", cc.SpriteAtlas), n = this.LoadDynamicAsset(p.BundlePath.SkillItemComponent), [4, Promise.all([t, n]).then(function(e) {
                                    o._atlas = e[0], o._skillItem = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.OnEvent(), this.FixedValueAssign(), this._isVNChannel = k.default.Instance.IsVNChannel();
                var t = I.default.Instance.IsGameModuleOpen(b.GameModuleType.Personality);
                this.ShowButton.node.active = t
            }, t.prototype.MultiLanguageAssign = function() {
                this.SkinLabel.string = "heroInfo_skin_button".ToUILocale(), this.MeetGiftButtonLabel.string = "handbook_meetGift".ToUILocale(), this.ShowLabel.string = "herobook_show".ToUILocale(), this.HeroDescLabel.string = "heroIntroduce".ToUILocale(), this.StarPieceButtonLabel.string = "StarPiece_ExclusiveToggle".ToUILocale(), this.HeroChangeButtonLabel.string = "heroInfo_change_button".ToUILocale()
            }, t.prototype.OnEvent = function() {
                var e = this;
                this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.LeftButton.node.on("click", this.OnLeftButtonClick, this), this.RightButton.node.on("click", this.OnRightButtonClick, this), this.HeroAttr.node.on(cc.Node.EventType.TOUCH_END, this.OnHeroAttrTouch, this), this.HeroWork.node.on(cc.Node.EventType.TOUCH_END, this.OnHeroWorkTouch, this), this.MeetGiftButton.node.on("click", this.OnGiftButtonClick, this), this.ShowButton.node.on("click", this.OnShowButtonClick, this), this.SkinButton.node.on("click", this.OnClickSkin, this), this.HeroDescButton.node.on("click", this.OnClickHeroDesc, this), this.StarPieceButton.node.on("click", this.OnStarPieceButtonClicked, this), this.HeroChangeButton.node.on("click", this.OnHeroChangeButtonClicked, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.AuraBtn.node.on("click", this.OnAuraBtnClick, this);
                for (var t = 0; t < this.ToggleArray.length; t++) this.ToggleArray[t].Init(this._toggleLabelArray[t].ToUILocale()), 1 == t && this.ToggleArray[t].SetInteractable(!1, "idleBattle_main_no_next".ToUILocale());
                this.ToggleArray.forEach(function(t) {
                    t.node.on("toggle", e.OnToggleSwitch, e)
                }), this.DetailNode.on(cc.Node.EventType.TOUCH_END, this.OnDetailTouchEnd, this)
            }, t.prototype.FixedValueAssign = function() {
                this._levelComponent = this.LevelComponent
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._heroId = t[0], null == t[1] ? (this._heroIdArray = [this._heroId], this._currentHeroIndex = 0, null != t[2] && (this._isShowMaxStarLevel = !0)) : (this._heroIdArray = t[1], this._currentHeroIndex = this._heroIdArray.indexOf(this._heroId)), t[3] && (this._isPure = t[3]), t[4] && (this._isActive = t[4]), t[5] && (this._isShowMaxStarLevel = t[5]), t[6] && (this._curState = t[6]), c.EZLog.Log("PARAMS = ", t)
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.GetHeroConfig(), this.GetConfigLevelData(), this.SetCurrentStarLevel(this._isShowMaxStarLevel ? this._maxStarLevel : this._minStarLevel), this.SetSideButton(), this.RefreshSkills(), this.SetLevel(), this.SetBody(), this.SetStar(), this.SetRole(), this.ConfigBg(), this.SetAttrValue(), this.SetPower(), this.SetCharacteristicLabel(), this.SetShowButton(), this.SetSkinButton(), this.SetHeroDesc(), this.SetStarPieceButton(), this.SetHeroChangeButton(), this.SetHideLabel();
                var t = h.DataCenter.Instance.GetTempData("BottomItemTip");
                t && t.isValid && t.Close(), P.RedDotManager.Instance.BindInstance(this.HeroDescButton.node, P.RedDotManager.Instance.InstanceRedDot.HeroDescButton, {
                    Value1: this._heroId
                })
            }, t.prototype.GetHeroConfig = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                if (this._heroId = this._heroIdArray[this._currentHeroIndex], this._heroConfig = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, this._heroId), e = this._heroConfig.CoreHero == b.CoreHeroTag.SP || this._heroConfig.CoreHero == b.CoreHeroTag.UR || this._heroConfig.CoreHero == b.CoreHeroTag.LR, this.AuraBtn.node.active = e, !e) return [3, 7];
                                switch (t = "", n = void 0, this._heroConfig.CoreHero) {
                                    case b.CoreHeroTag.SP:
                                        return [3, 1];
                                    case b.CoreHeroTag.UR:
                                        return [3, 2];
                                    case b.CoreHeroTag.LR:
                                        return [3, 4]
                                }
                                return [3, 5];
                            case 1:
                                return t = "hero_SP_halo".ToUILocale(), n = f.UIUtlity.COMMON_ATLAS2.getSpriteFrame("sp"), [3, 6];
                            case 2:
                                return t = "ur_aura".ToUILocale(), [4, f.UIUtlity.GetCommonAtlas3Sprite("ur")];
                            case 3:
                                return n = o.sent(), this.isValid ? [3, 6] : [2];
                            case 4:
                                return t = "lr_aura".ToUILocale(), n = f.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("lrLogo"), [3, 6];
                            case 5:
                                return [3, 6];
                            case 6:
                                this.AuraBtnSprite.spriteFrame = n, this.AuraBtnLabel.string = t, o.label = 7;
                            case 7:
                                return [2]
                        }
                    })
                })
            }, t.prototype.GetConfigLevelData = function() {
                this._minStarLevel = this._heroConfig.StarLevel, this._maxStarLevel = this._heroConfig.MaxStarLevel;
                for (var e = [5, 6, 11], t = [], n = 0; n < e.length; n++) {
                    var o = e[n];
                    o < this._heroConfig.MaxStarLevel && t.push(o)
                }
                t.push(this._heroConfig.MaxStarLevel), this._starLevelStepArray = t
            }, t.prototype.SetSideButton = function() {
                this._isPure ? (this.LeftButton.node.active = !1, this.RightButton.node.active = !1) : (this.LeftButton.node.active = 0 != this._currentHeroIndex, this.RightButton.node.active = this._currentHeroIndex != this._heroIdArray.length - 1)
            }, t.prototype.RefreshSkills = function() {
                this._heroSkillsData = I.default.GetHeroSkills(this._heroId, this._heroLevel, this._currentStarLevel);
                for (var e = 0; e < this._heroSkillsData.length; e++) {
                    var t = this._skillItemArray[e];
                    if (null == t) {
                        var n = cc.instantiate(this._skillItem);
                        t = n.getComponent(y.default), n.setParent(this.SkillsContainer), this._skillItemArray[e] = t
                    }
                    t.node.active = !0, t.node.name = e.toString(), t.Init(this._heroSkillsData[e].SkillId, this._heroSkillsData[e].Level, this._heroId)
                }
                for (e = this._heroSkillsData.length; e < this._skillItemArray.length; e++) this._skillItemArray[e].node.active = !1
            }, t.prototype.SetAttrValue = function() {
                for (var e = h.ConfigCacheComponent.Instance.GetHandbookHeroAttr(this._heroId, this._currentStarLevel), t = 0; t < this.HeroAttrValueArray.length; t++) this.HeroAttrValueArray[t].string = e[t].toString()
            }, t.prototype.SetBody = function() {
                this.HeroAttr.spriteFrame = f.UIUtlity.GetHeroElementIcon(this._heroConfig.ElementType), this.HeroWork.spriteFrame = f.UIUtlity.GetHeroCareerIcon(this._heroConfig.Career)
            }, t.prototype.SetLevel = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(d.HeroStar_Config, this._currentStarLevel);
                this._heroLevel = e.MaxLevel, this.HeroLevel.string = "Lv. " + e.MaxLevel
            }, t.prototype.SetStar = function() {
                this._currentStarLevelIndex = this._starLevelStepArray.indexOf(this._currentStarLevel)
            }, t.prototype.SetRole = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this.HeroName.node.active = !this._isVNChannel, this._isVNChannel || (this.HeroName.string = this._heroId.ToHeroName()), this.NickName.string = this._isVNChannel ? this._heroId.ToHeroName() : this._heroId.ToHeroTitle(), this.AnimationNode.destroyAllChildren(), this.ClaerAvatarPrefab(), this._curState != l.Hero ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset(this._heroConfig.UIAvatar + "/Avatar")];
                            case 1:
                                return e = r.sent(), this.isValid ? (e.name == this._heroConfig.UIAvatar + "/Avatar" ? (this._currentAvatarPrefab = e, (t = cc.instantiate(e)).setParent(this.AnimationNode), I.default.Instance.SetHeroAvatarSkin(t, this._heroConfig.Id, this._starLevelStepArray[this._currentStarLevelIndex])) : c.AssetsManager.Instance.UnloadAsset(e), [3, 9]) : (c.AssetsManager.Instance.UnloadAsset(e), [2]);
                            case 2:
                                return this._curState != l.Persoanlity ? [3, 9] : [4, c.AssetsManager.Instance.LoadAsset("AdultPicture" + this._heroConfig.AdultPictures[this._chosenIndex].Items[0] + "/Avatar")];
                            case 3:
                                return e = r.sent(), this.isValid ? this._heroConfig.AdultPictures[this._chosenIndex] && e.name == "AdultPicture" + this._heroConfig.AdultPictures[this._chosenIndex].Items[0] + "/Avatar" ? (this._currentAvatarPrefab = e, (t = cc.instantiate(e)).opacity = 0, t.setParent(this.AnimationNode), n = this._heroConfig.AdultPictures[this._chosenIndex].Items[1], (o = S.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._heroId)) && o.PersonalityStar && o.PersonalityStar >= n ? (t.getComponent(sp.Skeleton).clearTracks(), t.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), [4, f.UIUtlity.OffSpineGray(this.AnimationNode)]) : [3, 5]) : [3, 8] : (c.AssetsManager.Instance.UnloadAsset(e), [2]);
                            case 4:
                                return r.sent(), t.opacity = 255, [3, 7];
                            case 5:
                                return t.getComponent(sp.Skeleton).clearTracks(), [4, f.UIUtlity.OnSpineGray(this.AnimationNode)];
                            case 6:
                                r.sent(), t.opacity = 255, r.label = 7;
                            case 7:
                                return [3, 9];
                            case 8:
                                c.AssetsManager.Instance.UnloadAsset(e), r.label = 9;
                            case 9:
                                return [2]
                        }
                    })
                })
            }, t.prototype.ConfigBg = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._curState != l.Hero ? [3, 4] : this._heroConfig.CustomBg.length > 0 ? [4, this.LoadDynamicAsset("CommonBg/" + this._heroConfig.CustomBg, cc.SpriteFrame)] : [3, 2];
                            case 1:
                                return e = n.sent(), this.isValid ? (e.name == "CommonBg/" + this._heroConfig.CustomBg ? this.Bg.spriteFrame = e : this.Bg.spriteFrame = this.BgSpriteFrame, [3, 3]) : (w.AssetsManager.Instance.UnloadAsset(e), [2]);
                            case 2:
                                this.Bg.spriteFrame = this.BgSpriteFrame, n.label = 3;
                            case 3:
                                return [3, 7];
                            case 4:
                                return this._curState != l.Persoanlity ? [3, 7] : this._personalBg ? [3, 6] : (t = this, [4, this.LoadDynamicAsset("CommonBg/PanelBg10", cc.SpriteFrame)]);
                            case 5:
                                if (t._personalBg = n.sent(), !this.isValid) return w.AssetsManager.Instance.UnloadAsset(this._personalBg), [2];
                                n.label = 6;
                            case 6:
                                this.Bg.spriteFrame = this._personalBg, n.label = 7;
                            case 7:
                                return this.Bg.node.width = 1080, this.Bg.node.height = 2520, [2]
                        }
                    })
                })
            }, t.prototype.SetPower = function() {
                this.HeroPower.string = h.ConfigCacheComponent.Instance.GetHandbookHeroAttr(this._heroId, this._currentStarLevel)[999].toString()
            }, t.prototype.SetCharacteristicLabel = function() {
                for (var e = 0, t = h.ConfigDataComponent.Instance.GetLocale("HeroCharacteristic_name_" + this._heroConfig.CharacteristicDesc[e]); ++e < this._heroConfig.CharacteristicDesc.length;) t += "\xb7" + h.ConfigDataComponent.Instance.GetLocale("HeroCharacteristic_name_" + this._heroConfig.CharacteristicDesc[e]);
                this.HeroCharacteristic.string = t
            }, t.prototype.SetShowButton = function() {
                var e = I.default.Instance.IsGameModuleUnlock(b.GameModuleType.StaticImage)[0],
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, this._heroId);
                this.ShowButton.node.active = e && t && t.StaticImage.length > 0
            }, t.prototype.SetSkinButton = function() {
                var e = I.default.Instance.IsGameModuleOpen(b.GameModuleType.HeroSkin);
                this.SkinButton.node.active = e
            }, t.prototype.SetHeroDesc = function() {
                if (this._heroConfig.HeroIntroduce) this.HeroDescButton.node.active = !0, this.MeetGiftButton.node.parent.active = !1;
                else {
                    this.HeroDescButton.node.active = !1;
                    var e = h.DataCenter.Instance.GetDataById(C.HeroInfo_Model, this._heroId);
                    null == e || this._heroConfig.StarLevel < 4 ? this.MeetGiftButton.node.parent.active = !1 : this._isPure ? this.MeetGiftButton.node.parent.active = !1 : (this.MeetGiftButton.node.parent.active = !e.IsDrawReward, this.MeetGiftButton.target.setScale(1, 1), e.IsDrawReward ? this.JumpGiftNode.Disable() : this.JumpGiftNode.Enable())
                }
            }, t.prototype.SetStarPieceButton = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return I.default.Instance.IsGameModuleUnlock(b.GameModuleType.StarPiece)[0] ? [3, 1] : (this.StarPieceButton.node.active = !1, [3, 4]);
                            case 1:
                                return e = this._heroConfig.Id, (t = h.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeapon_Config, e)) ? (this.StarPieceButton.node.active = !0, n = I.default.Instance.GetItemPathById(t.ItemBaseId), [4, this.LoadDynamicAsset(n, cc.SpriteFrame)]) : [3, 3];
                            case 2:
                                return o = r.sent(), this.isValid ? (this.StarPieceButtoIcon.spriteFrame = o, [3, 4]) : (c.AssetsManager.Instance.UnloadAsset(o), [2]);
                            case 3:
                                this.StarPieceButton.node.active = !1, r.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetHeroChangeButton = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function() {
                        return this.HeroChangeButton.node.active = this._heroConfig.ChangeIds && this._heroConfig.ChangeIds.length > 0, this.HeroChangeButton.node.active && (e = !1, t = 0, this._heroConfig.ChangeIds.length > 0 && (t = this._heroConfig.ChangeIds[this._heroConfig.ChangeIds.length - 1]), t > 0 && (n = S.ConfigDataComponent.Instance.GetConfigById(d.HeroChange_Config, t), o = S.RpcComponent.Instance.ServerTime, r = T.TimeUtil.StrToTime(n.Date), e = o < r + R.Etc.DayDuration), this.HeroChangeButtonRedDot.node.active = e), [2]
                    })
                })
            }, t.prototype.InitToggleNodes = function() {
                this._personalToggleNodes.forEach(function(e) {
                    e.active = !1
                })
            }, t.prototype.ClickPersonalToggle = function(e) {
                var t = Number.parseInt(e.name);
                this._chosenIndex != t && (this._chosenIndex = t, this.SetRole())
            }, t.prototype.OnReturnButtonClick = function() {
                this.Close(), c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_REFRESH_HANDBOOK_ITEM, this._heroId)
            }, t.prototype.OnLeftButtonClick = function() {
                this._currentHeroIndex > 0 && (this._currentHeroIndex--, this.DisPlay())
            }, t.prototype.OnRightButtonClick = function() {
                this._currentHeroIndex < this._heroIdArray.length - 1 && (this._currentHeroIndex++, this.DisPlay())
            }, t.prototype.OnStarLevelLeftButtonClick = function() {
                this._currentStarLevelIndex--, this.SetStarLevel()
            }, t.prototype.OnStarLevelRightButtonClick = function() {
                this._currentStarLevelIndex++, this.SetStarLevel()
            }, t.prototype.OnHeroAttrTouch = function() {
                this._heroConfig.ElementType == b.HeroElementType.Chaos ? w.UIManager.Instance.ShowUIPanel(p.PanelConfig.ChaosElementEffectPanel.Path, 1, L.ChaosElementEffectType.Chaos, this._heroId) : c.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroInfoTipsPanel.Path, {
                    Element: this._heroConfig.ElementType
                }, this.HeroAttr.node)
            }, t.prototype.OnHeroWorkTouch = function() {
                c.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroInfoTipsPanel.Path, {
                    Career: this._heroConfig.Career
                }, this.HeroWork.node)
            }, t.prototype.OnGiftButtonClick = function() {
                var e = this,
                    t = new C.Req_Hero_DrawReward;
                t.HeroId = this._heroId, h.RpcComponent.Instance.Call(t, function(t) {
                    f.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.MeetGiftButton.node.parent.active = !1, c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_REFRESH_HANDBOOK_ITEM, e._heroId)
                })
            }, t.prototype.OnShowButtonClick = function() {
                var e = S.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._heroId);
                !e || e && !e.PersonalityStar ? f.UIUtlity.ShowFloatingHint("heroStaticImage_personality_limit".ToUILocale()) : c.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroShowStaticImagePanel.Path, this._heroId, this._isActive)
            }, t.prototype.OnClickSkin = function() {
                c.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroSkinPanel.Path, this._heroId, 1)
            }, t.prototype.OnClickHeroDesc = function() {
                c.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroDescPanel.Path, this._heroId, 0)
            }, t.prototype.SetStarLevel = function() {
                this.SetCurrentStarLevel(this._starLevelStepArray[this._currentStarLevelIndex]), this.SetPower(), this.RefreshSkills(), this.GetHeroConfig(), this.SetLevel(), this.SetAttrValue(), this._isVNChannel && this.SetRole()
            }, t.prototype.SetCurrentStarLevel = function(e) {
                var t = g.LevelComponent.GetLevelShowType(this._heroConfig.CoreHero, this._heroConfig.ElementType);
                this._levelComponent.Init(e, 0, 0, t), this._currentStarLevel = e
            }, t.prototype.OnToggleSwitch = function(e) {
                Number.parseInt(e.name), this._currentChosenMode
            }, t.prototype.OnDetailTouchEnd = function() {
                c.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroAttributePanel.Path, {
                    HeroId: this._heroId,
                    StarLevel: this._currentStarLevel
                })
            }, t.prototype.ClaerAvatarPrefab = function() {
                this._currentAvatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), this.ClaerAvatarPrefab(), this.AnimationNode.destroyAllChildren()
            }, t.prototype.OnAuraBtnClick = function() {
                switch (this._heroConfig.CoreHero) {
                    case b.CoreHeroTag.SP:
                        c.UIManager.Instance.ShowUIPanel(p.PanelConfig.CommonSPHeroDescPanel.Path);
                        break;
                    case b.CoreHeroTag.UR:
                        c.UIManager.Instance.ShowUIPanel(p.PanelConfig.ChaosElementEffectPanel.Path, 1, L.ChaosElementEffectType.UR, this._heroId);
                        break;
                    case b.CoreHeroTag.LR:
                        c.UIManager.Instance.ShowUIPanel(p.PanelConfig.ChaosElementEffectPanel.Path, 1, L.ChaosElementEffectType.LR, this._heroId)
                }
            }, t.prototype.OnStarPieceButtonClicked = function() {
                var e = {
                    pieceId: this._heroConfig.Id,
                    pieceType: A.StarTemplePieceType.Exclusive,
                    showFullStatus: !0,
                    isFragment: !1
                };
                w.UIManager.Instance.ShowUIPanel(p.PanelConfig.StarPieceInfoPanel.Path, e)
            }, t.prototype.OnHeroChangeButtonClicked = function() {
                w.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroChangePanel.Path, this._heroId).then(this.SetHeroChangeButton.bind(this))
            }, t.prototype.OnHideButtonClick = function() {
                this._isHide ? this._isHide = !1 : this._isHide = !0, this.SetHideLabel()
            }, t.prototype.SetHideLabel = function() {
                this.HideBtnSprite.spriteFrame = this._isHide ? f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("function_showUI") : f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("function_hideUI"), this.HideLabel.string = this._isHide ? "personalityCall_show".ToUILocale() : "personalityCall_hide".ToUILocale(), this.TopHideNode.active = !this._isHide, this.LeftButtonsNode.active = !this._isHide, this.RightButtonsNode.active = !this._isHide;
                var e = !0; - 1 == h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, b.LevelParamType.MainSceneHeroNoMaskIds).Data.indexOf(this._heroConfig.Id) && (e = !this._isHide), this.MainNode.active = e
            }, i([D(cc.Label)], t.prototype, "HeroName", void 0), i([D(cc.Label)], t.prototype, "NickName", void 0), i([D(cc.Label)], t.prototype, "HeroPower", void 0), i([D(cc.Sprite)], t.prototype, "HeroAttr", void 0), i([D(cc.Sprite)], t.prototype, "HeroWork", void 0), i([D(cc.Label)], t.prototype, "HeroLevel", void 0), i([D(cc.Label)], t.prototype, "HeroCharacteristic", void 0), i([D({
                type: [cc.Sprite]
            })], t.prototype, "HeroAttrSpriteArray", void 0), i([D({
                type: [cc.Label]
            })], t.prototype, "HeroAttrValueArray", void 0), i([D(cc.Node)], t.prototype, "DetailNode", void 0), i([D(cc.Node)], t.prototype, "SkillsContainer", void 0), i([D(cc.Node)], t.prototype, "AnimationNode", void 0), i([D(cc.Button)], t.prototype, "ReturnButton", void 0), i([D(cc.Button)], t.prototype, "LeftButton", void 0), i([D(cc.Button)], t.prototype, "RightButton", void 0), i([D(g.LevelComponent)], t.prototype, "LevelComponent", void 0), i([D({
                type: [m.default]
            })], t.prototype, "ToggleArray", void 0), i([D(cc.Button)], t.prototype, "MeetGiftButton", void 0), i([D(_.default)], t.prototype, "JumpGiftNode", void 0), i([D(cc.Label)], t.prototype, "MeetGiftButtonLabel", void 0), i([D(cc.Button)], t.prototype, "ShowButton", void 0), i([D(cc.Label)], t.prototype, "ShowLabel", void 0), i([D(cc.Button)], t.prototype, "SkinButton", void 0), i([D(cc.Label)], t.prototype, "SkinLabel", void 0), i([D(cc.Button)], t.prototype, "HeroDescButton", void 0), i([D(cc.Label)], t.prototype, "HeroDescLabel", void 0), i([D(cc.Sprite)], t.prototype, "Bg", void 0), i([D(cc.SpriteFrame)], t.prototype, "BgSpriteFrame", void 0), i([D(cc.Button)], t.prototype, "StarPieceButton", void 0), i([D(cc.Sprite)], t.prototype, "StarPieceButtoIcon", void 0), i([D(cc.Label)], t.prototype, "StarPieceButtonLabel", void 0), i([D(cc.Button)], t.prototype, "HeroChangeButton", void 0), i([D(cc.Sprite)], t.prototype, "HeroChangeButtonBackground", void 0), i([D(cc.Label)], t.prototype, "HeroChangeButtonLabel", void 0), i([D(cc.Sprite)], t.prototype, "HeroChangeButtonRedDot", void 0), i([D(cc.Node)], t.prototype, "TopHideNode", void 0), i([D(cc.Button)], t.prototype, "HideButton", void 0), i([D(cc.Sprite)], t.prototype, "HideBtnSprite", void 0), i([D(cc.Label)], t.prototype, "HideLabel", void 0), i([D(cc.Node)], t.prototype, "LeftButtonsNode", void 0), i([D(cc.Node)], t.prototype, "RightButtonsNode", void 0), i([D(cc.Node)], t.prototype, "MainNode", void 0), i([D(cc.Button)], t.prototype, "AuraBtn", void 0), i([D(cc.Sprite)], t.prototype, "AuraBtnSprite", void 0), i([D(cc.Label)], t.prototype, "AuraBtnLabel", void 0), i([M], t)
        }(c.BaseUIFullScreenPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/NodeJiggling": "NodeJiggling",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./ChaosElementEffectPanel": "ChaosElementEffectPanel",
        "./StarPiecePanel": "StarPiecePanel"
    }],
    HangUpComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2ce39w+/eBNxaYaJ1ClTz19", "HangUpComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/UIFrame/UIManager"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = e("../../Components/ConfigData/ConfigDataComponent"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/RpcComponent"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GameRecord"),
            g = e("../../../Util/TimeUtil"),
            m = e("../../../EZFramework/Base/Game"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("./SliderComponent"),
            C = e("./CustomProgressBar"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TipRichText = null, t.SelectTitle = null, t.AngelSelectTitle = null, t.HeroProgressBar = null, t.AngelProgressBar = null, t.HeroSliderComponent = null, t.HeroSlider = null, t.Count = null, t.AngelSliderComponent = null, t.AngelSlider = null, t.AngelCount = null, t.SettingButton = null, t.SettingButtonLabel = null, t.BattleButton = null, t.BattleButtonLabel = null, t._isInit = !1, t._heroBattleTimes = 0, t._angelBattleTimes = 0, t._heroMaxHangUpTimes = 1, t._angelMaxHangUpTimes = 1, t._selectFormationsId = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(I.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(I.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._hangTeamCount = e, this._hangAttackTimes = t, this._hangAttackTotalTimes = n, this._warPoint = o, this._isInit || (this._isInit = !0, this.InitData(), this.SettingButtonLabel.string = "StrognholdWar_Setting_Advanced".ToUILocale(), this.SettingButton.node.on("click", this.OnSettingButtonClick, this), this.BattleButton.node.on("click", this.OnBattleButtonClick, this), this.HeroSlider.name = "heroSlider", this.AngelSlider.name = "angelSlider"), this.HeroSliderComponent.SetUI(this._heroBattleTimes, this._heroMaxHangUpTimes, 0, !0), this.AngelSliderComponent.SetUI(this._angelBattleTimes, this._angelMaxHangUpTimes, 0, !0), this.Count.string = this._heroBattleTimes.toString(), this.AngelCount.string = this._angelBattleTimes.toString(), this.ConfigHangUpState(n[0] + n[1])
                }, t.prototype.InitData = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(p.MapType_Config, h.MapType.WarAngel);
                    if (this._angelTeamIdArray = e.AttackerFormation, this._heroMaxHangUpTimesSetting = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("War_HangUpHero"), this._angelMaxHangUpTimesSetting = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("War_HangUpAngel"), this._consumePoint = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("War_PointUnit"), this._heroTeamSelectCount > 0) {
                        var t = Math.floor(this._warPoint / this._consumePoint / this._heroTeamSelectCount);
                        this._heroMaxHangUpTimes = t < this._heroMaxHangUpTimesSetting ? t : this._heroMaxHangUpTimesSetting
                    } else this._heroMaxHangUpTimes = 0;
                    if (this._angelTeamSelectCount > 0) {
                        var n = Math.floor((this._warPoint - this._heroMaxHangUpTimes * this._consumePoint * this._heroTeamSelectCount) / this._consumePoint / this._angelTeamSelectCount);
                        this._angelMaxHangUpTimes = n < this._angelMaxHangUpTimesSetting ? n : this._angelMaxHangUpTimesSetting
                    } else this._angelMaxHangUpTimes = 0;
                    this._heroBattleTimes = this._heroMaxHangUpTimes, this._angelBattleTimes = 0;
                    var o = c.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, h.LevelParamType.WarHangUpBonus);
                    this._hangUpRewardBonus = o.Data
                }, t.prototype.OnSliderDragOver = function(e, t) {
                    "heroSlider" == t ? (this._heroBattleTimes = e, this.Count.string = e.toString()) : "angelSlider" == t && (this._angelBattleTimes = e, this.AngelCount.string = e.toString()), this.RefreshSliderUI()
                }, t.prototype.RefreshSliderUI = function() {
                    if (this._angelTeamSelectCount > 0) {
                        var e = Math.floor((this._warPoint - this._heroBattleTimes * this._heroTeamSelectCount * this._consumePoint) / this._consumePoint / this._angelTeamSelectCount);
                        this._angelMaxHangUpTimes = e < this._angelMaxHangUpTimesSetting ? e : this._angelMaxHangUpTimesSetting
                    } else this._angelMaxHangUpTimes = 0;
                    if (this.AngelSliderComponent.SetUI(this._angelBattleTimes, this._angelMaxHangUpTimes, 0, !0), this._heroTeamSelectCount > 0) {
                        var t = Math.floor((this._warPoint - this._angelBattleTimes * this._angelTeamSelectCount * this._consumePoint) / this._consumePoint / this._heroTeamSelectCount);
                        this._heroMaxHangUpTimes = t < this._heroMaxHangUpTimesSetting ? t : this._heroMaxHangUpTimesSetting
                    } else this._heroMaxHangUpTimes = 0;
                    this.HeroSliderComponent.SetUI(this._heroBattleTimes, this._heroMaxHangUpTimes, 0, !0)
                }, t.prototype.OnSettingButtonClick = function() {
                    s.UIManager.Instance.ShowUIPanel(l.PanelConfig.HangUpSettingPanel.Path)
                }, t.prototype.OnBattleButtonClick = function() {
                    var e = this;
                    if (this._hangUpNumber > 0) this.RequestStopHangUp();
                    else if (this._selectFormationsId.length > 0) {
                        if (this._heroBattleTimes + this._angelBattleTimes <= 0) return void f.UIUtlity.ShowFloatingHint("StrongholdWar_HangUp_NoBattleTimes".ToUILocale());
                        if (this._selectFormationsId.length < 5) {
                            var t = y.default.GetItem(y.GameRecordDefine.StrongholdWarHangUpDailyHint);
                            t && g.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime) == g.TimeUtil.Get0ClockTs(parseInt(t)) ? this.RequestHangUp() : f.UIUtlity.ShowHintPanel("", "StrongholdWar_HangUp_TeamNumberHint".ToUILocale().Fmt(5, this.GetRewardBonus(5), this._selectFormationsId.length, this.GetRewardBonus(this._selectFormationsId.length)), "", null, "", function() {
                                e.RequestHangUp()
                            }, "", y.GameRecordDefine.StrongholdWarHangUpDailyHint, !0)
                        } else this.RequestHangUp()
                    } else f.UIUtlity.ShowFloatingHint("StrongholdWar_HangUp_NoTeam".ToUILocale())
                }, t.prototype.RequestHangUp = function() {
                    for (var e = this, t = [], n = [], o = 0; o < this._selectFormationsId.length; o++) this._angelTeamIdArray.includes(this._selectFormationsId[o]) ? this._angelBattleTimes > 0 && (t.push(this._selectFormationsId[o]), n.push(this._angelBattleTimes)) : this._heroBattleTimes > 0 && (t.push(this._selectFormationsId[o]), n.push(this._heroBattleTimes));
                    var r = new u.Req_War_Action;
                    r.Type = h.WarActionType.HangUp, r.Fids = t, r.Params = n, d.RpcComponent.Instance.Call(r, function(t) {
                        m.Game.EventDispatcher.Emit(I.EventKeys.EVENT_STRONGHOLDWAR_DATA_HANDLER, t), e._heroBattleTimes = 0, e._angelBattleTimes = 0, f.UIUtlity.ShowFloatingHint("StrongholdWar_HangUp_Start".ToUILocale())
                    })
                }, t.prototype.RequestStopHangUp = function() {
                    var e = new u.Req_War_Action;
                    e.Type = h.WarActionType.StopHangUp, d.RpcComponent.Instance.Call(e, function(e) {
                        m.Game.EventDispatcher.Emit(I.EventKeys.EVENT_STRONGHOLDWAR_DATA_HANDLER, e), f.UIUtlity.ShowFloatingHint("StrongholdWar_HangUp_Stop".ToUILocale()), f.UIUtlity.ShowFloatingHint("StrongholdWar_HangUp_Stop_Point_Tip".ToUILocale())
                    })
                }, t.prototype.ConfigHangUpState = function(e) {
                    this._hangUpNumber = e, this.HeroProgressBar.node.active = !1, this.AngelProgressBar.node.active = !1, this.HeroSliderComponent.node.active = !1, this.AngelSliderComponent.node.active = !1, e > 0 ? (this.HeroProgressBar.node.active = !0, this.AngelProgressBar.node.active = !0, this.BattleButtonLabel.string = "stop_btn".ToUILocale(), this.SelectTitle.string = "StrongholdWar_HangUp_SmallTitle1".ToUILocale(), this.AngelSelectTitle.string = "StrongholdWar_HangUp_SmallTitle2".ToUILocale(), this.SliderEventOff()) : (this.HeroSliderComponent.node.active = !0, this.AngelSliderComponent.node.active = !0, this.BattleButtonLabel.string = "battle_btn".ToUILocale(), this.SelectTitle.string = "StrongholdWar_HangUp_SetNumber".ToUILocale(), this.AngelSelectTitle.string = "StrongholdWar_HangUp_SetNumber_Angel".ToUILocale()), this.TipRichText.string = "StrongholdWar_HangUp_Tip".ToUILocale().Fmt(this._hangTeamCount, this.GetRewardBonus(this._hangTeamCount))
                }, t.prototype.SliderEventOff = function() {
                    this.HeroProgressBar.progress = this._hangAttackTotalTimes[0] ? this._hangAttackTimes[0] / this._hangAttackTotalTimes[0] : 0, this.AngelProgressBar.progress = this._hangAttackTotalTimes[1] ? this._hangAttackTimes[1] / this._hangAttackTotalTimes[1] : 0, this.Count.string = "item_count_enough".ToUILocale().Fmt(this._hangAttackTimes[0], this._hangAttackTotalTimes[0]), this.AngelCount.string = "item_count_enough".ToUILocale().Fmt(this._hangAttackTimes[1], this._hangAttackTotalTimes[1])
                }, t.prototype.GetRewardBonus = function(e) {
                    for (var t = 0, n = 0; n < this._hangUpRewardBonus.length; n++)
                        if (n + 1 == e) {
                            t = Math.floor(this._hangUpRewardBonus[n] / 10);
                            break
                        } return t
                }, t.prototype.SetSelectFormationsId = function(e) {
                    var t = this;
                    this._hangUpNumber > 0 || (this._heroTeamSelectCount = 0, this._angelTeamSelectCount = 0, e.forEach(function(e) {
                        t._angelTeamIdArray.includes(e) ? t._angelTeamSelectCount++ : t._heroTeamSelectCount++
                    }), this._selectFormationsId = e, this.RefreshSliderUI())
                }, i([S(cc.RichText)], t.prototype, "TipRichText", void 0), i([S(cc.Label)], t.prototype, "SelectTitle", void 0), i([S(cc.Label)], t.prototype, "AngelSelectTitle", void 0), i([S(C.default)], t.prototype, "HeroProgressBar", void 0), i([S(C.default)], t.prototype, "AngelProgressBar", void 0), i([S(_.default)], t.prototype, "HeroSliderComponent", void 0), i([S(cc.Slider)], t.prototype, "HeroSlider", void 0), i([S(cc.Label)], t.prototype, "Count", void 0), i([S(_.default)], t.prototype, "AngelSliderComponent", void 0), i([S(cc.Slider)], t.prototype, "AngelSlider", void 0), i([S(cc.Label)], t.prototype, "AngelCount", void 0), i([S(cc.Button)], t.prototype, "SettingButton", void 0), i([S(cc.Label)], t.prototype, "SettingButtonLabel", void 0), i([S(cc.Button)], t.prototype, "BattleButton", void 0), i([S(cc.Label)], t.prototype, "BattleButtonLabel", void 0), i([b], t)
            }(cc.Component);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/Base/Game": "Game",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomProgressBar": "CustomProgressBar",
        "./SliderComponent": "SliderComponent"
    }],
    HangUpDropPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a0761tEd59BUbGrWGC1jHYn", "HangUpDropPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../../Consts/Consts"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../../Components/DataCenter"),
            I = e("../../Components/RpcComponent"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../Components/CurrencyBarItem"),
            b = e("../Components/ItemComponent"),
            S = e("./MainUIPanel"),
            w = e("../../../../Proto/Static/RpcProto"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BackgroundImage = null, t.TimeLeftRichText = null, t.RuleTitle = null, t.RuleContentContainer = null, t.RewardsTitle = null, t.RewardsContentContainer = null, t.ButtonGoToHangUp = null, t.ButtonGoToHangUpLabel = null, t.ButtonGoToExchange = null, t.ButtonGoToExchangeLabel = null, t.CurrencyBar = null, t._assets = [], t._timeLeftKey = "hangUpDropTimeLeftTip", t._onExchangeLabelKey = "activity_end", t._onDropLabelKey = "hangUpDropOnDrop", t._ruleTitleKey = "hangUpDropRuleTitle", t._ruleContentKeys = ["hangUpDropRuleContent_1", "hangUpDropRuleContent_2", "hangUpDropRuleContent_3", "hangUpDropRuleContent_4"], t._rewardsTitleKey = "hangUpDropRewardsTitle", t._buttonExchangeKey = "hangUpDropButtonExchange", t._buttonGoToDrop = "hangUpDropButtonGoToDrop", t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    l.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(w.UserItem_Model._n_), this.OnUserItemChanged, this)
                }, t.prototype.OnUserItemChanged = function(e) {
                    this._dropItem && null != e[this._dropItem.Id] && this.CurrencyBar.Init(this._dropItem.Id)
                }, t.prototype.onEnable = function() {
                    d.EZLog.Log("onEnable HangUpDropPanel")
                }, t.prototype.Init = function(e) {
                    this.node.height = C.UIUtlity.DESIGN_SCREEN_HEIGHT, this.node.y = -this.node.parent.y, this._activityConfigID = e, this.InitData(), this.InitUI(), d.Game.EventDispatcher.Emit(f.EventKeys.EVENT_WELFRAME_HIDE_CURRENCY_BAR, this._dropItem.Id)
                }, t.prototype.InitData = function() {
                    this._activityConfig = g.ConfigDataComponent.Instance.GetConfigById(c.HangUpDrop_Config, this._activityConfigID), this._currentAvailableActivityID = m.DataCenter.Instance.GetIntData(u.UserDataKey.HangUpActivityId), this.IsInDropTime() ? this._activityRefreshTime = m.DataCenter.Instance.GetIntData(u.UserDataKey.HangUpActivityTime) : this._activityRefreshTime = m.DataCenter.Instance.GetIntData(u.UserDataKey.HangUpActivityTime) - this._activityConfig.Days * p.Etc.DayDuration, this._dropItem = g.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, this._activityConfig.Items[0].Items[0])
                }, t.prototype.InitUI = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, this.LoadAssets()];
                                case 1:
                                    return e.sent(), this.isValid ? (this.InitTitleView(), this.InitRuleView(), this.InitRewardsView(), this.InitButtonView(), this.InitBackgroundView(), this.BindRedDot(), this.CurrencyBar.Init(this._dropItem.Id), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.LoadAssets = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return d.EZLog.Log("Enter HangUpDrop LoadAssets() "), null != this._itemPrefab ? [3, 4] : [4, d.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent)];
                                case 1:
                                    return e = o.sent(), [4, d.AssetsManager.Instance.LoadAsset("WelfarePanel/Component/HangUpRuleItem", cc.Prefab)];
                                case 2:
                                    return t = o.sent(), [4, Promise.all([e, t]).then(function(e) {
                                        if (!n.isValid) return d.AssetsManager.Instance.UnloadAsset(e[0]), void d.AssetsManager.Instance.UnloadAsset(e[1]);
                                        n._itemPrefab = e[0], n._ruleContentItemPrefab = e[1], n._assets.push(e[0]), n._assets.push(e[1])
                                    })];
                                case 3:
                                    o.sent(), o.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.BindRedDot = function() {
                    this.IsInDropTime() ? _.RedDotManager.Instance.Bind(this.ButtonGoToExchange.node, _.RedDotManager.Instance.RedDot.HangUpDropNodeCurrExchange) : _.RedDotManager.Instance.Bind(this.ButtonGoToExchange.node, _.RedDotManager.Instance.RedDot.HangUpDropNodeExpireExchange)
                }, t.prototype.InitTitleView = function() {
                    d.EZLog.Log("Enter HangUpDrop InitTitleView() "), this.TimeLeftRichText.string = this._timeLeftKey.ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(Math.max(this.TimeLeft(), 0))), this.schedule(this.OnSchedule, 1)
                }, t.prototype.InitRuleView = function() {
                    d.EZLog.Log("Enter HangUpDrop InitRuleView() "), this.RuleTitle.string = this._ruleTitleKey.ToUILocale();
                    for (var e = 0; e < this._ruleContentKeys.length; e++) {
                        var t = cc.instantiate(this._ruleContentItemPrefab),
                            n = t.getComponent(cc.Label);
                        d.EZLog.Log("type of alabel ." + n.fontSize), n.string = this._ruleContentKeys[e].ToUILocale().Fmt(this._dropItem.Id.ToItemName()), this.RuleContentContainer.addChild(t)
                    }
                }, t.prototype.InitRewardsView = function() {
                    d.EZLog.Log("Enter HangUpDrop InitRewardsView() "), this.RewardsTitle.string = this._rewardsTitleKey.ToUILocale();
                    for (var e = 0; e < this._activityConfig.ItemsShow.length; e++) {
                        d.EZLog.Log("HangUpDrop Current Reward Id : " + this._activityConfig.ItemsShow[e].toString());
                        var t = cc.instantiate(this._itemPrefab);
                        t.getComponent(b.ItemComponent).Init({
                            ItemId: this._activityConfig.ItemsShow[e]
                        }), this.RewardsContentContainer.addChild(t)
                    }
                }, t.prototype.InitButtonView = function() {
                    d.EZLog.Log("Enter HangUpDrop InitButtonView() "), this.IsInDropTime() ? (this.ButtonGoToExchange.node.active = !0, this.ButtonGoToHangUp.node.active = !0, this.ButtonGoToExchange.node.x = 183, this.ButtonGoToHangUp.node.x = -183, this.ButtonGoToExchangeLabel.string = this._buttonExchangeKey.ToUILocale(), this.ButtonGoToHangUpLabel.string = this._buttonGoToDrop.ToUILocale(), this.ButtonGoToExchange.node.on("click", this.OnGoToExchangeButtonTouched, this), this.ButtonGoToHangUp.node.on("click", this.OnGotoHangUpButtonTouched, this)) : (this.ButtonGoToExchange.node.active = !0, this.ButtonGoToHangUp.node.active = !1, this.ButtonGoToExchange.node.x = 0, this.ButtonGoToExchangeLabel.string = this._buttonExchangeKey.ToUILocale(), this.ButtonGoToExchange.node.on("click", this.OnGoToExchangeButtonTouched, this))
                }, t.prototype.InitBackgroundView = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, d.AssetsManager.Instance.LoadAsset("WelfarePanel/PNG/" + this._activityConfig.Img, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.BackgroundImage.spriteFrame = e, this._assets.push(e), [2]) : (d.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.OnSchedule = function() {
                    this.TimeLeft() > 0 ? this.TimeLeftRichText.string = this._timeLeftKey.ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(Math.max(this.TimeLeft(), 0))) : this.IsInDropTime()
                }, t.prototype.IsInDropTime = function() {
                    return this._activityConfigID == this._currentAvailableActivityID
                }, t.prototype.TimeLeft = function() {
                    var e = I.RpcComponent.Instance.ServerTime,
                        t = this._activityConfig.Days * p.Etc.DayDuration,
                        n = this._activityConfig.ExchangeDays * p.Etc.DayDuration,
                        o = e - this._activityRefreshTime;
                    return this.IsInDropTime() ? t - o : t + n - o
                }, t.prototype.OnGotoHangUpButtonTouched = function() {
                    d.EZLog.Log(["Enter OnGotoHangUpButtonTouched"]), d.Game.EventDispatcher.Emit(f.EventKeys.EVENT_HIDE_MAINUIPANEL, S.DockTab.Battle), d.UIManager.Instance.ShowUIPanel(y.PanelConfig.IdleBattleMainPanel.Path, 1)
                }, t.prototype.OnGoToExchangeButtonTouched = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return d.EZLog.Log(["Enter OnGoToExchangeButtonTouched"]), null != this._goodItem ? [3, 2] : (this._goodItem = null, e = this, [4, d.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/Component/GoodsItem", cc.Prefab)]);
                                case 1:
                                    return e._goodItem = t.sent(), this.isValid ? (l.UIManager.Instance.ShowUIPanel(y.PanelConfig.SailShopPanel.Path, this._goodItem, this._activityConfig.ShopId), [3, 3]) : (d.AssetsManager.Instance.UnloadAsset(this._goodItem), [2]);
                                case 2:
                                    this._goodItem && l.UIManager.Instance.ShowUIPanel(y.PanelConfig.SailShopPanel.Path, this._goodItem, this._activityConfig.ShopId), t.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    l.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(w.UserItem_Model._n_), this.OnUserItemChanged, this), this._assets.forEach(function(e) {
                        d.AssetsManager.Instance.UnloadAsset(e)
                    }), this.unschedule(this.OnSchedule), this._goodItem && d.AssetsManager.Instance.UnloadAsset(this._goodItem)
                }, t.prototype.onDisable = function() {
                    d.Game.EventDispatcher.Emit(f.EventKeys.EVENT_WELFRAME_HIDE_CURRENCY_BAR, this._dropItem.Id)
                }, i([T(cc.Sprite)], t.prototype, "BackgroundImage", void 0), i([T(cc.RichText)], t.prototype, "TimeLeftRichText", void 0), i([T(cc.Label)], t.prototype, "RuleTitle", void 0), i([T(cc.Node)], t.prototype, "RuleContentContainer", void 0), i([T(cc.Label)], t.prototype, "RewardsTitle", void 0), i([T(cc.Node)], t.prototype, "RewardsContentContainer", void 0), i([T(cc.Button)], t.prototype, "ButtonGoToHangUp", void 0), i([T(cc.Label)], t.prototype, "ButtonGoToHangUpLabel", void 0), i([T(cc.Button)], t.prototype, "ButtonGoToExchange", void 0), i([T(cc.Label)], t.prototype, "ButtonGoToExchangeLabel", void 0), i([T(v.default)], t.prototype, "CurrencyBar", void 0), i([A], t)
            }(cc.Component);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "./MainUIPanel": "MainUIPanel"
    }],
    HangUpSettingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "42d24ufp8FPoLj0m2bjSyr4", "HangUpSettingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/RpcComponent"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Components/DataCenter"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Title = null, t.SmallTitle = null, t.HelpSelectToggles = [], t.HelpSelectToggleLabels = [], t.OkButton = null, t.OkButtonLabel = null, t._helpSelectSetting = [0, 0, 0], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.Title.string = "StrognholdWar_Setting_Advanced".ToUILocale(), this.SmallTitle.string = "StrongholdWar_Setting_HelpTag".ToUILocale(), this.HelpSelectToggleLabels[c.WarHangUpIndex.Defend].string = "StrongholdWar_Setting_HelpText_0".ToUILocale(), this.HelpSelectToggleLabels[c.WarHangUpIndex.FocusFire].string = "StrongholdWar_Setting_HelpText_1".ToUILocale(), this.HelpSelectToggleLabels[c.WarHangUpIndex.Adjacent].string = "StrongholdWar_Setting_HelpText_2".ToUILocale(), this.OkButtonLabel.string = "Answer_QuitYes".ToUILocale(), this.HelpSelectToggles.forEach(function(e) {
                        e.node.on("toggle", t.OnHelpSelectToogle, t)
                    }), this.OkButton.node.on("click", this.OnOkButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = u.DataCenter.Instance.GetArrayData(c.UserDataKey.WarHangUp);
                    n && n.length > 0 ? this._helpSelectSetting = n : this._helpSelectSetting = [1, 1, 1]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this.HelpSelectToggles.forEach(function(e, t) {
                        n._helpSelectSetting[t] ? e.isChecked = !0 : e.isChecked = !1
                    })
                }, t.prototype.OnHelpSelectToogle = function(e) {
                    var t = Number(e.node.name);
                    e.isChecked ? this._helpSelectSetting[t] = 1 : this._helpSelectSetting[t] = 0
                }, t.prototype.OnOkButtonClick = function() {
                    var e = this,
                        t = new s.Req_War_Action;
                    t.Type = c.WarActionType.UpdateSetting, t.Params = this._helpSelectSetting, l.RpcComponent.Instance.Call(t, function() {
                        e.Close()
                    })
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Label)], t.prototype, "SmallTitle", void 0), i([h(cc.Toggle)], t.prototype, "HelpSelectToggles", void 0), i([h(cc.Label)], t.prototype, "HelpSelectToggleLabels", void 0), i([h(cc.Button)], t.prototype, "OkButton", void 0), i([h(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([d], t)
            }(a.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent"
    }],
    HappyTurnEndPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "51ea8XzthVEuLweQfxs95ut", "HappyTurnEndPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/ItemComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.ScoreLblDesc = null, t.TimeLblDesc = null, t.RankLblDesc = null, t.TestLblDesc = null, t.ScoreLbl = null, t.TimeLbl = null, t.TimeTitle = null, t.RankLbl = null, t.TestLbl = null, t.NoTimesLbl = null, t.ErrorLbl = null, t.RewardParent = null, t.BackBtn = null, t.BackLbl = null, t.AgainBtn = null, t.AgainLbl = null, t._itemPrefab = null, t._itemNodes = [], t._score = 0, t._type = 0, t._time = "", t._rank = 0, t._rewards = [], t._configData = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BackBtn.node.on("click", this.OnBackClick, this), this.AgainBtn.node.on("click", this.OnAgainClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BackBtn.node.off("click", this.OnBackClick, this), this.AgainBtn.node.off("click", this.OnAgainClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ScoreLblDesc.string = "happyTurn_score".ToUILocale(), this.TimeLblDesc.string = "happyTurn_time".ToUILocale(), this.RankLblDesc.string = "happyTurn_rank".ToUILocale(), this.TestLblDesc.string = "has_got_reward".ToUILocale(), this.TestLbl.string = "happyTurn_test_no_reward".ToUILocale(), this.BackLbl.string = "happyTurn_back".ToUILocale(), this.AgainLbl.string = "happyTurn_again".ToUILocale(), this.NoTimesLbl.string = "happyTurn_no_times".ToUILocale(), this.ErrorLbl.string = "happyTurn_error".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._score = t[0], this._type = t[1], this._time = t[2], this._rank = t[3], this._rewards = t[4], this._configData = t[5]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.initNodes(), this.SetInfo(), this.SetReward()
                }, t.prototype.initNodes = function() {
                    this.TestLbl.node.active = !1, this.RewardParent.active = !1, this.NoTimesLbl.node.active = !1, this.ErrorLbl.node.active = !1, this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    if (e && e.IntArray.length > 0) {
                        var t = this._configData.CustomPart.Count - e.IntArray[0];
                        this.ScoreLbl.string = this._score.toString(), this._time ? this.TimeLbl.string = this._time : (this.TimeLbl.node.active = !1, this.TimeTitle.active = !1), this.RankLbl.string = this._rank == d.ErrCode.ActHappyTurnDataError ? "happyTurn_data_error".ToUILocale() : this._rank > 0 ? "happyTurn_ranks".ToUILocale().Fmt(this._rank) : "happyTurn_no_up".ToUILocale(), this.RankLbl.fontSize = this._rank == d.ErrCode.ActHappyTurnDataError ? 30 : this._rank > 0 ? 44 : 30, this._type == d.HappyTurnType.Demo ? this.TestLbl.node.active = !0 : this._type == d.HappyTurnType.Official && (this._rank == d.ErrCode.ActHappyTurnDataError ? this.ErrorLbl.node.active = !0 : t >= 0 ? this.RewardParent.active = !0 : this.NoTimesLbl.node.active = !0)
                    }
                }, t.prototype.SetReward = function() {
                    var e = this;
                    this.RewardParent.active && this._rewards.forEach(function(t, n) {
                        if (e._itemNodes[n]) e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(h.ItemComponent).Init({
                            ItemId: t.ItemId,
                            Count: t.Count
                        }, h.ItemComponentType.ItemCommon);
                        else {
                            var o = cc.instantiate(e._itemPrefab);
                            o.active = !0, e._itemNodes[n] = o, e._itemNodes[n].parent = e.RewardParent, e._itemNodes[n].getComponent(h.ItemComponent).Init({
                                ItemId: t.ItemId,
                                Count: t.Count
                            }, h.ItemComponentType.ItemCommon)
                        }
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardParent.children.indexOf(t) && y.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.OnBackClick = function() {
                    l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_HAPPY_TURN_RETURN), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnAgainClick = function() {
                    l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_HAPPY_TURN_RESTART), l.UIManager.Instance.BackUIPanel()
                }, i([I(cc.Label)], t.prototype, "ScoreLblDesc", void 0), i([I(cc.Label)], t.prototype, "TimeLblDesc", void 0), i([I(cc.Label)], t.prototype, "RankLblDesc", void 0), i([I(cc.Label)], t.prototype, "TestLblDesc", void 0), i([I(cc.Label)], t.prototype, "ScoreLbl", void 0), i([I(cc.Label)], t.prototype, "TimeLbl", void 0), i([I(cc.Node)], t.prototype, "TimeTitle", void 0), i([I(cc.RichText)], t.prototype, "RankLbl", void 0), i([I(cc.Label)], t.prototype, "TestLbl", void 0), i([I(cc.Label)], t.prototype, "NoTimesLbl", void 0), i([I(cc.Label)], t.prototype, "ErrorLbl", void 0), i([I(cc.Node)], t.prototype, "RewardParent", void 0), i([I(cc.Button)], t.prototype, "BackBtn", void 0), i([I(cc.Label)], t.prototype, "BackLbl", void 0), i([I(cc.Button)], t.prototype, "AgainBtn", void 0), i([I(cc.Label)], t.prototype, "AgainLbl", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HappyTurnItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0b916yYGTRBtqDOdRSu8CAT", "HappyTurnItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BackNode = null, t.FrontNode = null, t.EffNode = null, t._isFront = !1, t._isGaming = !1, t._cardId = 0, t._idx = 0, t._isTurn = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on("click", this.OnNodeClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off("click", this.OnNodeClick, this)
                }, t.prototype.init = function(e) {
                    this._isFront = !1, this.BackNode.active = !0, this.FrontNode.active = !1, this._idx = e
                }, t.prototype.SetIsGaming = function(e) {
                    this._isGaming = e
                }, t.prototype.SetIsTurning = function(e) {
                    this._isTurn = e
                }, t.prototype.SetCardInfo = function(e, t) {
                    this._cardId = e, this.FrontNode.getComponent(cc.Sprite).spriteFrame = t
                }, t.prototype.GetCardId = function() {
                    return this._cardId
                }, t.prototype.SetEffNode = function() {
                    var e = this;
                    this.EffNode.setAnimation(0, "Ani_effect_fanfanle_chenggong", !1), this.EffNode.setCompleteListener(function() {
                        e.EffNode.clearTracks()
                    })
                }, t.prototype.TurnBack = function() {
                    var e = this;
                    cc.tween(this.FrontNode).to(.2, {
                        scaleX: 0,
                        scaleY: 1
                    }).call(function() {
                        e.FrontNode.active = !1, e.BackNode.active = !0, e.BackNode.scaleX = 0, e.FrontNode.scaleX = 1, cc.tween(e.BackNode).to(.2, {
                            scaleX: 1,
                            scaleY: 1
                        }).call(function() {
                            e._isFront = !1
                        }).start()
                    }).start()
                }, t.prototype.OnNodeClick = function() {
                    var e = this;
                    this._isGaming && (this._isFront || this._isTurn || (this._isTurn = !0, a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_HAPPY_SET_ISTURN, !0), cc.tween(this.BackNode).to(.2, {
                        scaleX: 0,
                        scaleY: 1
                    }).call(function() {
                        e.BackNode.active = !1, e.FrontNode.active = !0, e.BackNode.scaleX = 1, e.FrontNode.scaleX = 0, cc.tween(e.FrontNode).to(.2, {
                            scaleX: 1,
                            scaleY: 1
                        }).call(function() {
                            e._isFront = !0, e._isTurn = !1, a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_HAPPY_TURN_ADD_CARD, e._cardId, e._idx), a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_HAPPY_SET_ISTURN, !1)
                        }).start()
                    }).start()))
                }, i([u(cc.Node)], t.prototype, "BackNode", void 0), i([u(cc.Node)], t.prototype, "FrontNode", void 0), i([u(sp.Skeleton)], t.prototype, "EffNode", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    HappyTurnPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ecc06spN6hEGJkHvF4JvQwk", "HappyTurnPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("./HappyTurnItem"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Components/Components"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../../../Consts/Consts"),
            b = e("../Battle/BattleManager"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLbl = null, t.ActivityTimeLbl = null, t.TimeLbl = null, t.NormalNode = null, t.GamingNode = null, t.NormalBottomNode = null, t.PreRewardBtn = null, t.PreRewardLbl = null, t.RankBtn = null, t.RankLbl = null, t.StartBtn = null, t.StartLbl = null, t.TestBtn = null, t.TestLbl = null, t.TestDesc = null, t.TodayTimesDesc = null, t.TodayTimes = null, t.ScoreDesc = null, t.Score = null, t.Time = null, t.GamingDesc = null, t.Content = null, t.CountDownNode = null, t.TimeThree = null, t.TimeThreeImgs = [], t.RuleBtn = null, t.ReturnBtn = null, t._happyItem = null, t._happyItemNodes = [], t._isGaming = !1, t._countDownThree = 0, t._countDownTime = 0, t._openCardIds = [], t._mapData = [], t._realOpenCardIds = [], t._configData = null, t._deadLine = 0, t._score = 0, t._itemImgs = null, t._isCountDowning = !1, t._isTiming = !1, t._lastServerTime = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_HAPPY_TURN_ADD_CARD, this.AddOpenCard, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_HAPPY_TURN_RETURN, this.ResetGame, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_HAPPY_TURN_RESTART, this.ReStartGame, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_HAPPY_SET_ISTURN, this.SetIsTurn, this), this.PreRewardBtn.node.on("click", this.OnPreviewClick, this), this.RankBtn.node.on("click", this.OnRankClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_HAPPY_TURN_ADD_CARD, this.AddOpenCard, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_HAPPY_TURN_RETURN, this.ResetGame, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_HAPPY_TURN_RESTART, this.ReStartGame, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_HAPPY_SET_ISTURN, this.SetIsTurn, this), this.PreRewardBtn.node.off("click", this.OnPreviewClick, this), this.RankBtn.node.off("click", this.OnRankClick, this)
                }, t.prototype.update = function() {
                    if (this._isTiming) {
                        var e = c.RpcComponent.Instance.ServerTime,
                            t = e - this._lastServerTime;
                        this._lastServerTime = e, this._countDownTime += t, this._countDownTime >= 12e4 ? (this._isTiming = !1, this.Time.string = d.default.Instance.GetSecondTime(0), this.OpenEndReward()) : this.Time.string = d.default.Instance.GetSecondTime(Math.ceil((12e4 - this._countDownTime) / 1e3))
                    }
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleHappyTurn/HappyTurnItem", cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleHappyTurn/PNG/happyTurn", cc.SpriteAtlas)]).then(function(t) {
                                        e._happyItem = t[0], e._itemImgs = t[1]
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(e) {
                    var t = e[0];
                    this._configData = c.DataCenter.Instance.ActivityConfigs[t], this._deadLine = d.default.Instance.ComputeDeadTime(this._configData.Common), this.TitleLbl.string = this._configData.Common.Title;
                    for (var n = 0; n < 20; n++)
                        if (!this._happyItemNodes[n]) {
                            var o = cc.instantiate(this._happyItem);
                            o.getComponent(y.default).init(n), o.parent = this.Content, this._happyItemNodes[n] = o
                        }
                }, t.prototype.InitUI = function() {
                    this.ActivityTimeLbl.string = "secretArea_activeTime".ToUILocale(), this.PreRewardLbl.string = "explore_preview".ToUILocale(), this.RankLbl.string = "holyArea_rank".ToUILocale(), this.StartLbl.string = "happyTurn_start".ToUILocale(), this.TestLbl.string = "happyTurn_test".ToUILocale(), this.TestDesc.string = "happyTurn_test_no_reward".ToUILocale(), this.TodayTimesDesc.string = "happyTurn_today_times".ToUILocale(), this.ScoreDesc.string = "happyTurn_score_desc".ToUILocale(), this.GamingDesc.string = "happyTurn_get_score".ToUILocale(), this.StartBtn.node.on("click", this.OnStartGameClick, this), this.TestBtn.node.on("click", this.OnTestGameClick, this), this.ReturnBtn.node.on("click", this.OnReturnButtonClick, this), this.RuleBtn.node.on("click", this.OnRuleButtonClick, this), this.CountDownNode.active = !1
                }, t.prototype.ResetPanelState = function() {
                    this._isGaming = !1
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1), this.SetUIContetn(), C.RedDotManager.Instance.BindInstance(this.StartBtn.node, C.RedDotManager.Instance.InstanceRedDot.HappyTurnStartBtnNode, {
                        Value1: this._configData._id
                    })
                }, t.prototype.SetUIContetn = function() {
                    this.UpdateNodeActivie(), this.InitTime(), this.SetGetRewardTimes(), this.UpdateScore()
                }, t.prototype.SetMap = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function() {
                            for (e = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10], this._mapData = [], t = 0; t < 20; t++) this._mapData.push(e.splice(Math.floor(Math.random() * e.length), 1)[0]);
                            return this._mapData.forEach(function(e, t) {
                                var o = "",
                                    r = n._configData.Pictures.findIndex(function(t) {
                                        return t.Id == e
                                    });
                                if (r > -1) {
                                    o = n._configData.Pictures[r].Picture;
                                    var i = n._itemImgs.getSpriteFrame(o);
                                    n._happyItemNodes[t].getComponent(y.default).SetCardInfo(e, i)
                                }
                            }), [2]
                        })
                    })
                }, t.prototype.InitTime = function() {
                    this._countDownThree = 3, this.TimeThree.spriteFrame = this.TimeThreeImgs[3], this.Time.string = d.default.Instance.GetSecondTime(this._configData.CustomPart.Time), this._isTiming = !1, this._countDownTime = 0, this._lastServerTime = 0
                }, t.prototype.UpdateNodeActivie = function() {
                    this.NormalNode.active = !this._isGaming, this.GamingNode.active = this._isGaming, this.NormalBottomNode.active = !this._isGaming
                }, t.prototype.SetGetRewardTimes = function() {
                    var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    if (e && e.IntArray.length > 0) {
                        var t = this._configData.CustomPart.Count - e.IntArray[0] >= 0 ? this._configData.CustomPart.Count - e.IntArray[0] : 0,
                            n = t > 0 ? "#ffffff" : "#ff4b4b";
                        this.TodayTimes.string = "<color={0}>{1}</c><color=#ffffff>/{2}</color>".Fmt(n, t, this._configData.CustomPart.Count)
                    }
                }, t.prototype.UpdateScore = function() {
                    var e = this._realOpenCardIds.length / 2;
                    this._score = e * this._configData.CustomPart.Score, this.Score.string = this._score.toString()
                }, t.prototype.CountDownThree = function() {
                    this._countDownThree--, this._countDownThree >= 0 ? this.TimeThree.spriteFrame = this.TimeThreeImgs[this._countDownThree] : (this._isCountDowning = !1, this.CountDownNode.active = !1, this.unschedule(this.CountDownThree), this.SetItemsIsGaming(!0), this._lastServerTime = c.RpcComponent.Instance.ServerTime, this._isTiming = !0)
                }, t.prototype.CountDownActivityTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 && l.UIManager.Instance.BackUIPanel(), this.TimeLbl.string = "explore_time".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(t))
                }, t.prototype.SetStart = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return b.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !1, l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, b.BattleManager.Instance.ActivityCanShowBattleSettlePanel && b.BattleManager.Instance.CanShowBattleSettlePanel), this._gameType = e, this._isGaming = !0, this.CountDownNode.active = !0, this._isCountDowning = !0, this.UpdateNodeActivie(), this.unschedule(this.CountDownThree), this.schedule(this.CountDownThree, 1), this.SetMap(), this._openCardIds = [], this._realOpenCardIds = [], [2]
                        })
                    })
                }, t.prototype.OnStartGameClick = function() {
                    this.SetStart(g.HappyTurnType.Official)
                }, t.prototype.OnTestGameClick = function() {
                    this.SetStart(g.HappyTurnType.Demo)
                }, t.prototype.OnReturnButtonClick = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._isGaming ? this._isCountDowning ? [2] : (this._isTiming = !1, this._lastServerTime = 0, [4, f.UIUtlity.ShowHintPanel("", "happyTurn_cala".ToUILocale(), "cancel".ToUILocale(), function() {
                                        e._lastServerTime = c.RpcComponent.Instance.ServerTime, e._isTiming = !0
                                    }, "ok".ToUILocale(), function() {
                                        e.OpenEndReward()
                                    })]) : [3, 2];
                                case 1:
                                    return t.sent().DisableMaskClose(), [3, 3];
                                case 2:
                                    l.UIManager.Instance.BackUIPanel(), t.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "happyTurn_main_rule".ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: ["happyTurn_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnPreviewClick = function() {
                    l.UIManager.Instance.ShowUIPanel(I.PanelConfig.HappyTurnPreviewPanel.Path, this._configData)
                }, t.prototype.OnRankClick = function() {
                    this.RequestActivityRankData()
                }, t.prototype.RequestActivityRankData = function() {
                    var e = new u.Req_Activity_GetRank;
                    e.ActivityId = this._configData._id, _.RpcComponent.Instance.Call(e, this.ResponseActivityRankData.bind(this))
                }, t.prototype.ResponseActivityRankData = function(e) {
                    var t = e.Rows,
                        n = e.MyRank,
                        o = e.MyRankData;
                    l.UIManager.Instance.ShowUIPanel(I.PanelConfig.HappyTurnRankPanel.Path, t, n, o, this._configData._id)
                }, t.prototype.AddOpenCard = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function() {
                            return (n = {}).Id = e, n.Idx = t, this._openCardIds.push(n), this.CheckOpenCards(), [2]
                        })
                    })
                }, t.prototype.CheckOpenCards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function() {
                            return e = this, this._openCardIds.length > 0 && this._openCardIds.length % 2 == 0 && (t = this._openCardIds.length, n = this._openCardIds[t - 1].Id, o = this._openCardIds[t - 2].Id, n == o ? (this._realOpenCardIds.push(this._openCardIds[t - 2]), this._realOpenCardIds.push(this._openCardIds[t - 1]), this.UpdateScore(), r = e._happyItemNodes[e._openCardIds[t - 2].Idx].getComponent(y.default), i = e._happyItemNodes[e._openCardIds[t - 1].Idx].getComponent(y.default), r.SetEffNode(), i.SetEffNode(), 20 == this._realOpenCardIds.length && this.OpenEndReward()) : this.scheduleOnce(function() {
                                if (e._openCardIds.length > 0) {
                                    var n = e._happyItemNodes[e._openCardIds[t - 2].Idx].getComponent(y.default),
                                        o = e._happyItemNodes[e._openCardIds[t - 1].Idx].getComponent(y.default);
                                    n.TurnBack(), o.TurnBack()
                                }
                            }, .3)), [2]
                        })
                    })
                }, t.prototype.PlayRandomAudioClip = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = Math.floor(13 * Math.random()) + 1, t = e >= 10 ? "0" + e : "00" + e, [4, this.LoadDynamicAsset("AudioEffect/HappyTurn/" + t, cc.AudioClip)];
                                case 1:
                                    return n = r.sent(), [4, m.AudioManager.Instance.PlayEffect(n)];
                                case 2:
                                    return o = r.sent(), this.isValid ? [2] : (m.AudioManager.Instance.StopEffect(o.EffectId), [2])
                            }
                        })
                    })
                }, t.prototype.OpenEndReward = function() {
                    if (d.default.CheckActivityIsEnd(this._configData.Common, !0)) l.UIManager.Instance.BackUIPanel();
                    else {
                        this.SetItemsIsGaming(!1), this._isTiming = !1;
                        var e = new u.Req_Activity_HappyTurnSettlement;
                        e.ActivityId = this._configData._id, e.Score = this._score, e.Time = this._countDownTime, e.Type = this._gameType, c.RpcComponent.Instance.Call(e, this.DealWithOk.bind(this), this.DealWithError.bind(this))
                    }
                }, t.prototype.DealWithOk = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.ShowEndPanel(e.MyRank, e.Rewards), [2]
                        })
                    })
                }, t.prototype.DealWithError = function(e) {
                    e == p.ErrCode.ActHappyTurnDataError && this.ShowEndPanel(v.ErrCode.ActHappyTurnDataError, [])
                }, t.prototype.ShowEndPanel = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return b.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !0, l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, b.BattleManager.Instance.ActivityCanShowBattleSettlePanel && b.BattleManager.Instance.CanShowBattleSettlePanel), n = (n = Math.floor(this._countDownTime / 1e3)) > this._configData.CustomPart.Time ? this._configData.CustomPart.Time : n, o = d.default.ActivityTimeLeftFormat(this._countDownTime), r = o.split(":"), i = n >= this._configData.CustomPart.Time ? "00" : (this._countDownTime / 1e3).toFixed(2).split(".")[1], a = r[1] + ":" + r[2] + "." + i, [4, l.UIManager.Instance.ShowUIPanel(I.PanelConfig.HappyTurnEndPanel.Path, this._score, this._gameType, a, e, t, this._configData)];
                                case 1:
                                    return s.sent(), this._openCardIds = [], this._realOpenCardIds = [], this._score = 0, this._lastServerTime = 0, this._countDownTime = 0, [2]
                            }
                        })
                    })
                }, t.prototype.SetItemsIsGaming = function(e) {
                    this._happyItemNodes.forEach(function(t) {
                        t.getComponent(y.default).SetIsGaming(e)
                    })
                }, t.prototype.ResetGame = function() {
                    this._isGaming = !1;
                    for (var e = 0; e < 20; e++) this._happyItemNodes[e].getComponent(y.default).init(e)
                }, t.prototype.ReStartGame = function() {
                    this.ResetGame(), this.SetStart(this._gameType)
                }, t.prototype.SetIsTurn = function(e) {
                    for (var t = 0; t < 20; t++) this._happyItemNodes[t].getComponent(y.default).SetIsTurning(e)
                }, t.prototype.onDestroy = function() {
                    this._happyItemNodes = [], this.unschedule(this.CountDownThree), this.unschedule(this.CountDownActivityTime), this.unscheduleAllCallbacks()
                }, i([P(cc.Label)], t.prototype, "TitleLbl", void 0), i([P(cc.Label)], t.prototype, "ActivityTimeLbl", void 0), i([P(cc.Label)], t.prototype, "TimeLbl", void 0), i([P(cc.Node)], t.prototype, "NormalNode", void 0), i([P(cc.Node)], t.prototype, "GamingNode", void 0), i([P(cc.Node)], t.prototype, "NormalBottomNode", void 0), i([P(cc.Button)], t.prototype, "PreRewardBtn", void 0), i([P(cc.Label)], t.prototype, "PreRewardLbl", void 0), i([P(cc.Button)], t.prototype, "RankBtn", void 0), i([P(cc.Label)], t.prototype, "RankLbl", void 0), i([P(cc.Button)], t.prototype, "StartBtn", void 0), i([P(cc.Label)], t.prototype, "StartLbl", void 0), i([P(cc.Button)], t.prototype, "TestBtn", void 0), i([P(cc.Label)], t.prototype, "TestLbl", void 0), i([P(cc.Label)], t.prototype, "TestDesc", void 0), i([P(cc.Label)], t.prototype, "TodayTimesDesc", void 0), i([P(cc.RichText)], t.prototype, "TodayTimes", void 0), i([P(cc.Label)], t.prototype, "ScoreDesc", void 0), i([P(cc.Label)], t.prototype, "Score", void 0), i([P(cc.Label)], t.prototype, "Time", void 0), i([P(cc.Label)], t.prototype, "GamingDesc", void 0), i([P(cc.Node)], t.prototype, "Content", void 0), i([P(cc.Node)], t.prototype, "CountDownNode", void 0), i([P(cc.Sprite)], t.prototype, "TimeThree", void 0), i([P(cc.SpriteFrame)], t.prototype, "TimeThreeImgs", void 0), i([P(cc.Button)], t.prototype, "RuleBtn", void 0), i([P(cc.Button)], t.prototype, "ReturnBtn", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./HappyTurnItem": "HappyTurnItem"
    }],
    HappyTurnPreviewItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2fccdz//gVPcbRwsxyp3468", "HappyTurnPreviewItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../Components/ItemComponent"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.ScoreLabel = null, t._data = null, t._itemNodes = [], t._itemPrefab = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.initData = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._data = e, this._type = t, [4, this.LoadItemPrefab()];
                                case 1:
                                    return n.sent(), this.isValid ? (this.initNodes(), this.SetInfo(), this.SetItems(), [2]) : (d.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2])
                            }
                        })
                    })
                }, t.prototype.LoadItemPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, d.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    e._itemPrefab = t.sent(), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.initNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    switch (this._type) {
                        case f.ActivityType.KnifeTraining:
                            this.ScoreLabel.string = "knnife_level_count".ToUILocale() + " " + this._data.Score;
                            break;
                        default:
                            this.ScoreLabel.string = "happyTurn_scoreNum".ToUILocale() + " " + this._data.Score
                    }
                }, t.prototype.SetItems = function() {
                    var e = this;
                    this._data.Rewards.forEach(function(t, n) {
                        var o = t.Items[0],
                            r = t.Items[1];
                        if (e._itemNodes[n]) e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(p.ItemComponent).Init({
                            ItemId: o,
                            Count: r
                        }, p.ItemComponentType.ItemCommon);
                        else {
                            var i = cc.instantiate(e._itemPrefab);
                            i.active = !0, e._itemNodes[n] = i, e._itemNodes[n].parent = e.ItemNode;
                            var a = e._itemNodes[n].getComponent(p.ItemComponent);
                            a.Init({
                                ItemId: o,
                                Count: r
                            }, p.ItemComponentType.ItemCommon), a.SetCountFontSize(26, 121)
                        }
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && u.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    d.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemNodes = []
                }, i([m(cc.Node)], t.prototype, "ItemNode", void 0), i([m(cc.Label)], t.prototype, "ScoreLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HappyTurnPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f9409hfo9JD/J60oz817MPe", "HappyTurnPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CustomLayout"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("./HappyTurnPreviewItem"),
            d = e("../../../ShareConsts/EnumType"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLbl = null, t.Desc = null, t.CustomLayout = null, t._configData = null, t._cellPrefab = null, t._isLayoutInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleHappyTurn/HappyTurnPreviewItem", cc.Prefab)];
                                case 1:
                                    return t._cellPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLbl.string = "explore_preview".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0], t[1] && (this._type = t[1])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetLabelByType(), this.InitCustomLayout()
                }, t.prototype.SetLabelByType = function() {
                    switch (this._type) {
                        case d.ActivityType.KnifeTraining:
                            this.Desc.string = "knife_reward_by_level".ToUILocale();
                            break;
                        default:
                            this.Desc.string = "happyTurn_get_reward_by_score".ToUILocale()
                    }
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab));
                    var e = this._configData.Rewards.length;
                    this.CustomLayout.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o, r = e.getComponent(p.default);
                        o = n._configData.Rewards[t], r.initData(o, n._type)
                    })
                }, i([y(cc.Label)], t.prototype, "TitleLbl", void 0), i([y(cc.Label)], t.prototype, "Desc", void 0), i([y(c.default)], t.prototype, "CustomLayout", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/CustomLayout": "CustomLayout",
        "./HappyTurnPreviewItem": "HappyTurnPreviewItem"
    }],
    HappyTurnRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "28341cu6ZhNBqMWy73lXuZb", "HappyTurnRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/RankDetailComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1, !1), t.Title = null, t.CenterNode = null, t.ReturnButton = null, t._rankDatas = [], t._myRankData = null, t._myRank = 0, t._activityId = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent")];
                                case 1:
                                    return t._rankPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "happyTurn_rank_times".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._rankPrefab);
                    e.setParent(this.CenterNode), this._rank_detail_item = e.getComponent(c.default)
                }, t.prototype.OnEvent = function() {
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.OnReturnButtonClick = function() {
                    this.Close()
                }, t.prototype.SetUI = function() {
                    this._rank_detail_item.SetUI(this._activityId, this._rankDatas, this._myRank, this._myRankData, !1, !0)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rankDatas = t[0], this._myRank = t[1], this._myRankData = t[2], this._activityId = t[3]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.VariedValueAssign()
                }, t.prototype.VariedValueAssign = function() {
                    this.SetUI()
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "CenterNode", void 0), i([d(cc.Button)], t.prototype, "ReturnButton", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    HatchEggComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b98a9Ume8JC26AOg8bnB8nq", "HatchEggComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("./CustomProgressBar"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.AddButton = null, t.Lock = null, t.LockLabel = null, t.Egg = null, t.TagLabel = null, t.ItemProgressBar = null, t.ItemProgressBarValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._petNestConfig = e, this.LockLabel.string = "CollectionPavilion_Item_Lock".ToUILocale(), this.AddButton.node.on("click", this.OnAddButtonClick, this), this.Lock.on(cc.Node.EventType.TOUCH_END, this.OnLockTouch, this), this.Egg.node.on(cc.Node.EventType.TOUCH_END, this.OnEggTouch, this), this.CheckNestState()
                }, t.prototype.CheckNestState = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return [2]
                        })
                    })
                }, t.prototype.SetLockState = function(e) {
                    e ? (this.Lock.active = !0, d.UIUtlity.OnSpriteGray(this.Bg)) : (this.Lock.active = !1, d.UIUtlity.OffSpriteGray(this.Bg))
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return [2]
                        })
                    })
                }, t.prototype.SetProgressBar = function() {}, t.prototype.SetCountDown = function(e, t) {
                    var n = l.RpcComponent.Instance.ServerTime;
                    this.ItemProgressBar.progress = (n - t) / e, this._leaveTime = e - (n - t), this._leaveTime <= 0 && (this._leaveTime = 0, this.unscheduleAllCallbacks()), this.ItemProgressBarValue.string = u.default.ActivityTimeLeftFormat(this._leaveTime)
                }, t.prototype.OnAddButtonClick = function() {}, t.prototype.OnLockTouch = function() {}, t.prototype.OnEggTouch = function() {}, t.prototype.RequestReceivePet = function() {}, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._eggIcon && p.AssetsManager.Instance.UnloadAsset(this._eggIcon)
                }, i([y(cc.Sprite)], t.prototype, "Bg", void 0), i([y(cc.Button)], t.prototype, "AddButton", void 0), i([y(cc.Node)], t.prototype, "Lock", void 0), i([y(cc.Label)], t.prototype, "LockLabel", void 0), i([y(cc.Sprite)], t.prototype, "Egg", void 0), i([y(cc.Label)], t.prototype, "TagLabel", void 0), i([y(c.default)], t.prototype, "ItemProgressBar", void 0), i([y(cc.Label)], t.prototype, "ItemProgressBarValue", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomProgressBar": "CustomProgressBar"
    }],
    HatchItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f383eipJ39GNp8lc2ka9DwL", "HatchItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ItemComponent"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Auxiliary/UIUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NoItem = null, t.AddButton = null, t.ItemComponentNode = null, t.Count = null, t.CountLabel = null, t.Name = null, t.NameLabel = null, t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    if (void 0 === t && (t = u.ItemComponentType.ItemCommon), this._type = t, e) switch (this.SetNodeState(!0), this.SetItemComponent(e, t), t) {
                        case u.ItemComponentType.ItemCommon:
                            var n = d.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, e.ItemId);
                            this.NameLabel.node.color = f.UIUtlity.GetLabelColorByQuality(n.Quality), this.NameLabel.string = e.ItemId.ToItemName();
                            var o = d.DataCenter.Instance.GetItemCount(e.ItemId);
                            this.CountLabel.node.color = o < 1 ? new cc.Color(255, 0, 0) : new cc.Color(255, 255, 255), this.CountLabel.string = "item_count_enough".ToUILocale().Fmt(o, 1);
                            break;
                        case u.ItemComponentType.Pet:
                            var r = d.ConfigDataComponent.Instance.GetConfigById(p.PetBase_Config, e.ItemId);
                            this.NameLabel.node.color = f.UIUtlity.GetLabelColorByQuality(r.Quality), this.NameLabel.string = e.ItemId.ToPetName()
                    } else this.SetNodeState(!1), this.AddButton.node.on("click", this.OnAddButtonClick, this)
                }, t.prototype.SetNodeState = function(e) {
                    this.NoItem.active = !e, this.ItemComponentNode.active = e, this.Count.active = e && this._type == u.ItemComponentType.ItemCommon, this.Name.active = e
                }, t.prototype.SetItemComponent = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._itemComponent ? [3, 3] : this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent)];
                                case 1:
                                    if (n = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._itemPrefab = n, this._assets.push(n), r.label = 2;
                                case 2:
                                    (o = cc.instantiate(this._itemPrefab)).setParent(this.ItemComponentNode), o.name = this.node.name, this._itemComponent = o.getComponent(u.ItemComponent), r.label = 3;
                                case 3:
                                    return this._itemComponent.Init(e, t), [2]
                            }
                        })
                    })
                }, t.prototype.SetSelectFlagState = function(e) {
                    this._itemComponent.SetSelectFlagState(e)
                }, t.prototype.SetGetWayItemId = function(e, t) {
                    this._getWayItemId = e, this._backFunction = t
                }, t.prototype.OnAddButtonClick = function() {
                    this._backFunction(), h.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._getWayItemId)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([m(cc.Node)], t.prototype, "NoItem", void 0), i([m(cc.Button)], t.prototype, "AddButton", void 0), i([m(cc.Node)], t.prototype, "ItemComponentNode", void 0), i([m(cc.Node)], t.prototype, "Count", void 0), i([m(cc.Label)], t.prototype, "CountLabel", void 0), i([m(cc.Node)], t.prototype, "Name", void 0), i([m(cc.Label)], t.prototype, "NameLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    HeadComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "38c49+/QmxL27J61I7cPdnM", "HeadComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/ConfigData/ConfigDataComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Components/GlobalConfigComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../../Consts/GameServerConsts"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadIcon = null, t.FrameIcon = null, t.TitleIcon = null, t.LevelNode = null, t.LevelLabel = null, t.Country = null, t.FrameEffect = null, t.TitleEffect = null, t.ChampionShipNode = null, t.ChampionShipGrade = null, t.ChampionShipRank = null, t.ChampionShipCup = null, t.ChampionShipScoreNode = null, t.ChampionShipScore = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.AutoSetUI = function() {
                    var e = d.DataCenter.Instance.GetIntData(h.UserDataKey.HeadIcon),
                        t = d.DataCenter.Instance.GetIntData(h.UserDataKey.HeadFrame),
                        n = d.DataCenter.Instance.GetIntData(h.UserDataKey.Title);
                    this.SetUI(e, t), this.SetTitleIcon(n), this.SetLevel(0)
                }, t.prototype.SetUI = function(e, t, n) {
                    void 0 === n && (n = 0), this._headIconId = e, this._headFrameId = t, this.SetHeadIcon(this._headIconId), this.SetHeadFrame(this._headFrameId), this.SetTitleIcon(n), this.LevelNode.active = !1, this.ChampionShipNode && (this.ChampionShipNode.active = !1), this.Country && (this.Country.node.active = !1)
                }, t.prototype.SetHeadIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._headIconId = e, t = e, this._headIconId <= 0 ? (this.HeadIcon.node.active = !1, [2]) : [4, u.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadIcon + "/" + t, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this._headIconId == t ? (this._loadedAssets.push(n), this.HeadIcon.spriteFrame = n, this.HeadIcon.node.active = !0) : u.AssetsManager.Instance.UnloadAsset(n), [2]) : (u.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.SetCustomHeadIcon = function(e) {
                    this._headIconId = -1, this.HeadIcon.node.active = !0, this.LevelNode.active = !1, this.HeadIcon.spriteFrame = e
                }, t.prototype.SetHeadFrame = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._headFrameId = e, t = e, this._headFrameId <= 0 ? (this.FrameIcon.node.active = !1, [2]) : [4, u.AssetsManager.Instance.LoadAsset(p.BundlePath.HeadFrame + "/" + t, cc.SpriteFrame)];
                                case 1:
                                    return n = i.sent(), this.isValid ? (this._headFrameId == t ? (this._loadedAssets.push(n), this.FrameIcon.spriteFrame = n, this.FrameIcon.node.active = !0) : u.AssetsManager.Instance.UnloadAsset(n), this.FrameEffect ? (o = c.ConfigDataComponent.Instance.GetConfigById(l.HeadFrame_Config, e)).Effect ? [4, u.AssetsManager.Instance.LoadAsset("UserInfo/Spine/" + o.Effect, sp.SkeletonData)] : [3, 3] : [3, 4]) : (u.AssetsManager.Instance.UnloadAsset(n), [2]);
                                case 2:
                                    return r = i.sent(), this.isValid ? (this._loadedAssets.push(r), this.FrameEffect.skeletonData = r, this.FrameEffect.node.active = !0, this.FrameEffect.setAnimation(0, "Ani_" + o.Effect, !0), [3, 4]) : (u.AssetsManager.Instance.UnloadAsset(r), [2]);
                                case 3:
                                    this.FrameEffect.node.active = !1, i.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetTitleIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._titleId = e, this._titleId <= 0 ? (this.TitleIcon.node.active = !1, [2]) : [4, u.AssetsManager.Instance.LoadAsset(f.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + e), cc.SpriteFrame)];
                                case 1:
                                    return t = r.sent(), this.isValid ? (this._loadedAssets.push(t), this.TitleIcon.spriteFrame = t, this.TitleIcon.node.active = !0, this.TitleEffect ? (n = c.ConfigDataComponent.Instance.GetConfigById(l.Title_Config, e)).Effect ? [4, u.AssetsManager.Instance.LoadAsset("UserInfo/Spine/" + n.Effect, sp.SkeletonData)] : [3, 3] : [3, 4]) : (u.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    return o = r.sent(), this.isValid ? (this._loadedAssets.push(o), this.TitleEffect.skeletonData = o, this.TitleEffect.node.y = this.TitleIcon.node.y - this.TitleIcon.node.height / 2, this.TitleEffect.node.active = !0, this.TitleEffect.setAnimation(0, "Ani_" + n.Effect, !0), [3, 4]) : (u.AssetsManager.Instance.UnloadAsset(o), [2]);
                                case 3:
                                    this.TitleEffect.node.active = !1, r.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetLevel = function(e) {
                    e > 0 && (this.LevelNode.active = !0, this.LevelLabel.string = e.toString())
                }, t.prototype.SetCountry = function(e) {
                    e && this.IsShowCountry() ? (this.Country.node.active = !0, y.UIUtlity.SetCountrySpriteFrame(this.Country, e)) : this.Country.node.active = !1
                }, t.prototype.IsShowCountry = function() {
                    return f.GlobalConfigComponent.Instance.Channel != g.GameChannels.Mainland_Check
                }, t.prototype.SetChampionShipTag = function(e, t, n) {
                    return void 0 === n && (n = !1), a(this, void 0, void 0, function() {
                        var o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._championShipAtlas ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas)];
                                case 1:
                                    if (o = r.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this._championShipAtlas = o, this._loadedAssets.push(o), r.label = 2;
                                case 2:
                                    return this.ChampionShipNode.active = !0, this.ChampionShipGrade.spriteFrame = this._championShipAtlas.getSpriteFrame("cup" + e), n ? (this.ChampionShipRank.node.active = !1, this.ChampionShipScoreNode.active = !1) : (this.ChampionShipRank.node.active = 1 == e, this.ChampionShipScoreNode.active = 1 != e, this.ChampionShipCup.spriteFrame = this._championShipAtlas.getSpriteFrame("cup"), 1 == e ? this.ChampionShipRank.string = t.toString() : this.ChampionShipScore.string = t.toString()), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) u.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([_(cc.Sprite)], t.prototype, "HeadIcon", void 0), i([_(cc.Sprite)], t.prototype, "FrameIcon", void 0), i([_(cc.Sprite)], t.prototype, "TitleIcon", void 0), i([_(cc.Node)], t.prototype, "LevelNode", void 0), i([_(cc.Label)], t.prototype, "LevelLabel", void 0), i([_(cc.Sprite)], t.prototype, "Country", void 0), i([_(sp.Skeleton)], t.prototype, "FrameEffect", void 0), i([_(sp.Skeleton)], t.prototype, "TitleEffect", void 0), i([_(cc.Node)], t.prototype, "ChampionShipNode", void 0), i([_(cc.Sprite)], t.prototype, "ChampionShipGrade", void 0), i([_(cc.Label)], t.prototype, "ChampionShipRank", void 0), i([_(cc.Sprite)], t.prototype, "ChampionShipCup", void 0), i([_(cc.Node)], t.prototype, "ChampionShipScoreNode", void 0), i([_(cc.Label)], t.prototype, "ChampionShipScore", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/GameServerConsts": "GameServerConsts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HeadIconFrameItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6d389acr/JDu4FUin2VeNq8", "HeadIconFrameItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./HeadComponent"),
            c = e("../../Components/DataCenter"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/ConfigData/ConfigDataComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadRoot = null, t.SelectBg = null, t.UsedFlag = null, t.UsedLabel = null, t.Mask = null, t.RedDot = null, t.Desc = null, t.AttrNodeParent = null, t.AttrNodes = [], t._headItemPrefab = null, t._headItem = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
                }, t.prototype.SetUI = function(e, t, n) {
                    void 0 === t && (t = 3101), this._headIconId = e, this._headFrameId = t, this._headItemPrefab = n, this._isInit || (this.SetClickEvent(), this.UsedLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale(), this._isInit = !0), this.SetInfo(), this.LoadUserData(), this.LoadHeadItem(t)
                }, t.prototype.SetClickEvent = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
                }, t.prototype.OnTouchNode = function() {
                    p.Game.EventDispatcher.Emit(d.EventKeys.EVENT_ITEM_CLICK, Number.parseInt(this.node.name), this.node)
                }, t.prototype.SetInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return this.Desc.string = this._headFrameId.ToItemDesc(), (e = f.ConfigDataComponent.Instance.GetConfigById(h.HeadFrame_Config, this._headFrameId)) ? (this.AttrNodeParent.active = e.Attrs.length > 0, this.AttrNodes.forEach(function(t, n) {
                                if (t.active = !1, e.Attrs[n]) {
                                    t.active = !0;
                                    var o = t.getChildByName("Icon").getComponent(cc.Sprite),
                                        r = t.getChildByName("Tag").getComponent(cc.Label),
                                        i = t.getChildByName("Value2").getComponent(cc.Label),
                                        a = e.Attrs[n].Items[0],
                                        s = e.Attrs[n].Items[1],
                                        l = y.default.GetHeroAttribute(a, s);
                                    l && (o.spriteFrame = l.Icon, r.string = l.Name, i.string = "+" + l.Value)
                                }
                            })) : this.AttrNodeParent.active = !1, [2]
                        })
                    })
                }, t.prototype.LoadUserData = function() {
                    this._userHeadIconId = c.DataCenter.Instance.GetIntData(u.UserDataKey.HeadIcon)
                }, t.prototype.LoadHeadItem = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._headItemPrefab ? (null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(l.default), this._headItem.node.parent = this.HeadRoot), this._headItem.SetUI(this._headIconId, e), [2]) : [2]
                        })
                    })
                }, t.prototype.SetUsedFlag = function(e) {
                    this.UsedFlag.active = e
                }, t.prototype.SetSelect = function(e) {
                    this.SelectBg.active = e
                }, t.prototype.SetMask = function(e) {
                    this.Mask.active = e
                }, t.prototype.SetRedDot = function(e) {
                    this.RedDot.active = e
                }, i([I(cc.Node)], t.prototype, "HeadRoot", void 0), i([I(cc.Node)], t.prototype, "SelectBg", void 0), i([I(cc.Node)], t.prototype, "UsedFlag", void 0), i([I(cc.Label)], t.prototype, "UsedLabel", void 0), i([I(cc.Node)], t.prototype, "Mask", void 0), i([I(cc.Node)], t.prototype, "RedDot", void 0), i([I(cc.Label)], t.prototype, "Desc", void 0), i([I(cc.Node)], t.prototype, "AttrNodeParent", void 0), i([I(cc.Node)], t.prototype, "AttrNodes", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "./HeadComponent": "HeadComponent"
    }],
    HeadIconSelectItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6e050GjnaZBg6MRJuumUjEc", "HeadIconSelectItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("./HeadComponent"),
            u = e("../../Components/DataCenter"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Components/Components"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property;
        (function(e) {
            e[e.hero = 1] = "hero", e[e.skin = 2] = "skin"
        })(l || (l = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HeadRoot = null, t.SelectBg = null, t.UsedFlag = null, t.UsedLabel = null, t.Mask = null, t.RedDot = null, t.SkinTag = null, t._headItemPrefab = null, t._headItem = null, t._isInit = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
            }, t.prototype.SetUI = function(e, t, n) {
                void 0 === n && (n = 3101), this._headIconId = e, this._headFrameId = n, this._headItemPrefab = t, this._isInit || (this.SetClickEvent(), this.UsedLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale(), this._isInit = !0), this.LoadUserData(), this.LoadHeadItem(e)
            }, t.prototype.SetClickEvent = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
            }, t.prototype.OnTouchNode = function() {
                d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_ITEM_CLICK, Number.parseInt(this.node.name), this.node)
            }, t.prototype.LoadUserData = function() {
                this._userHeadIconId = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon)
            }, t.prototype.LoadHeadItem = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function() {
                        return this._headItemPrefab ? (null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(c.default), this._headItem.node.parent = this.HeadRoot), this._headItem.SetUI(e, this._headFrameId), t = y.ConfigDataComponent.Instance.GetConfigById(f.HeadIcon_Config, this._headIconId), this.SkinTag.active = t.Type == l.skin, [2]) : [2]
                    })
                })
            }, t.prototype.SetUsedFlag = function(e) {
                this.UsedFlag.active = e
            }, t.prototype.SetSelect = function(e) {
                this.SelectBg.active = e
            }, t.prototype.SetMask = function(e) {
                this.Mask.active = e
            }, t.prototype.SetRedDot = function(e) {
                this.RedDot.active = e
            }, i([I(cc.Node)], t.prototype, "HeadRoot", void 0), i([I(cc.Node)], t.prototype, "SelectBg", void 0), i([I(cc.Node)], t.prototype, "UsedFlag", void 0), i([I(cc.Label)], t.prototype, "UsedLabel", void 0), i([I(cc.Node)], t.prototype, "Mask", void 0), i([I(cc.Node)], t.prototype, "RedDot", void 0), i([I(cc.Node)], t.prototype, "SkinTag", void 0), i([m], t)
        }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "./HeadComponent": "HeadComponent"
    }],
    HeadPersonalisePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5a900YGXJtHJbDqgjqxzZuJ", "HeadPersonalisePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            l = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var c, u, p, d = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/CustomLayout"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../../Consts/Consts"),
            I = e("../../Components/ConfigData/ConfigDataComponent"),
            _ = e("../../Components/DataCenter"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../Components/CustomToggle"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("../Components/HeadIconSelectItem"),
            P = e("../Components/HeadComponent"),
            A = e("../../Auxiliary/GlobalDefine"),
            T = e("../../Components/RpcComponent"),
            R = e("../../../Util/AppUtil"),
            L = e("../Components/HeadTitleSelectItem"),
            k = e("../../../EZFramework/EZFramework"),
            O = e("../../Auxiliary/DataUtlity"),
            M = e("../../RedDot/RedDotManager"),
            D = e("../Components/HeadIconFrameItem"),
            B = e("../Components/HeroElementGroup"),
            N = e("../Components/ChatWindowItem"),
            E = e("../Components/CollectionTotalAttrComponent"),
            U = e("../../../Util/TimeUtil"),
            G = e("../Components/MagicCircleSelectItem"),
            x = e("../Components/LoadAssetHelper"),
            H = e("../Components/PetSelectItem"),
            F = cc._decorator,
            j = F.ccclass,
            W = F.property;
        (function(e) {
            e[e.Head = 0] = "Head", e[e.Frame = 1] = "Frame", e[e.Title = 2] = "Title", e[e.ChatWindow = 3] = "ChatWindow", e[e.MagicCircle = 4] = "MagicCircle", e[e.Pet = 5] = "Pet"
        })(c || (c = {})),
        function(e) {
            e[e.hero = 1] = "hero", e[e.skin = 2] = "skin"
        }(u || (u = {})),
        function(e) {
            e[e.Pet = 1] = "Pet", e[e.MagicCircleBottom = 2] = "MagicCircleBottom", e[e.MagicCircleTop = 3] = "MagicCircleTop"
        }(p || (p = {}));
        var z = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new h.UIPanelType(h.UINodeType.Fixed), t.Title = null, t.TopNode = null, t.TopNode2 = null, t.PreviewTag = null, t.UseHeadIconBtnLabel = null, t.UseFrameBtnLabel = null, t.UseTitleBtnLabel = null, t.UseHeadIconDisableBtnLabel = null, t.UseFrameDisableBtnLabel = null, t.UseTitleDisableBtnLabel = null, t.FrameGetwayBtnLabel = null, t.TitleGetwayBtnLabel = null, t.AddationBtnLabel = null, t.UseBtnLabel = null, t.UseGrayBtnLabel = null, t.LineNode = null, t.HeadBgNode = null, t.HeadRoot = null, t.ChatWindowSprite = null, t.FunctionToggle = [], t.NameLabel = null, t.DescLabel = null, t.AttrNodeParent = null, t.AttrNodes = [], t.DurationNode = null, t.DurationLabel = null, t.HeadIconScroll = null, t.HeadTitleScroll = null, t.HeadFrameScroll = null, t.ChatWindowScroll = null, t.MagicCircleListNode = null, t.PetListNode = null, t.HeadIconGrid = null, t.HeadTitleGrid = null, t.HeadFrameGrid = null, t.ChatWindowGrid = null, t.MagicCircleGrid = null, t.PetGrid = null, t.BtnUseHeadIcon = null, t.BtnUseHeadIconDisable = null, t.BtnUseHeadFrame = null, t.BtnUseHeadFrameDisable = null, t.BtnHeadFrameGetway = null, t.BtnUseTitle = null, t.BtnUseTitleDisable = null, t.BtnHeadTitleGetway = null, t.RemoveTitleButton = null, t.RemoveTitleLabel = null, t.BtnTotalAddation = null, t.TotalAddationNode = null, t.AddationEmptyState = null, t.BtnReset = null, t.UseBtn = null, t.UseGrayBtn = null, t.AttrContainer = null, t.HeroElementGroup = null, t.MainNode = null, t.HintNode = null, t.MagicCircleBottomNode = null, t.AvatarRoot = null, t.MagicCircleTopNode = null, t.PetNode = null, t.TopNode2Name = null, t.TopNode2Desc = null, t.TopNode2Duration = null, t.LoadAssetHelper = null, t.HEAD_ICON_SELECT_ITEM_PATH = "PlayerSettingPanel/Private/HeadIconSelectItem", t.HEAD_TITLE_SELECT_ITEM_PATH = "PlayerSettingPanel/Private/HeadTitleSelectItem", t.HEAD_ICON_FRAME_ITEM_PATH = "PlayerSettingPanel/Private/HeadIconFrameItem", t.CHAT_WINDOW_ITEM_PATH = "PlayerSettingPanel/Private/ChatWindowItem", t.MAGIC_CIRCLE_ITEM_PATH = "PlayerSettingPanel/Private/MagicCircleSelectItem", t.PET_ITEM_PATH = "PlayerSettingPanel/Private/PetSelectItem", t.DefaultChatItemId = 3401, t._headIconSelectItemPrefab = null, t._headIconFrameItemPrefab = null, t._headTitleSelectItemPrefab = null, t._chatWindowItemPrefab = null, t._magicCircleItemPrefab = null, t._petItemPrefab = null, t._headItemPrefab = null, t._itemPrefab = null, t._headItem = null, t._headIconConfigList = [], t._headFrameConfigList = null, t._headTitleConfigList = null, t._chatWindowConfigList = null, t._magicCircleConfigList = null, t._petConfigList = null, t._heroConfig = null, t._selectIconIndex = -1, t._selectFrameIndex = -1, t._selectTitleIndex = -1, t._selectChatWindowIndex = -1, t._selectMagicCircleIndex = -1, t._selectPetIndex = -1, t._currFunctionType = c.Head, t._isLayoutInit = !1, t._selectHeadIconNode = null, t._selectHeadFrameNode = null, t._selectHeadTitleNode = null, t._selectChatWindowNode = null, t._selectMagicCircleNode = null, t._selectPetNode = null, t._deadLine = 0, t._addAttrComponentArray = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                h.Game.EventDispatcher.On(S.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), h.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), h.Game.EventDispatcher.On(S.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
            }, t.prototype.onDisable = function() {
                h.Game.EventDispatcher.Off(S.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), h.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), h.Game.EventDispatcher.Off(S.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, c, u = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(this.HEAD_ICON_SELECT_ITEM_PATH, cc.Prefab), n = this.LoadDynamicAsset(A.BundlePath.HeadComponent, cc.Prefab), o = this.LoadDynamicAsset(this.HEAD_TITLE_SELECT_ITEM_PATH, cc.Prefab), r = this.LoadDynamicAsset(this.HEAD_ICON_FRAME_ITEM_PATH, cc.Prefab), i = this.LoadDynamicAsset(this.CHAT_WINDOW_ITEM_PATH, cc.Prefab), a = this.LoadDynamicAsset(this.MAGIC_CIRCLE_ITEM_PATH, cc.Prefab), l = this.LoadDynamicAsset(this.PET_ITEM_PATH, cc.Prefab), c = this.LoadDynamicAsset(A.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o, r, i, a, l, c]).then(function(e) {
                                    u._headIconSelectItemPrefab = e[0], u._headItemPrefab = e[1], u._headTitleSelectItemPrefab = e[2], u._headIconFrameItemPrefab = e[3], u._chatWindowItemPrefab = e[4], u._magicCircleItemPrefab = e[5], u._petItemPrefab = e[6], u._itemPrefab = e[7]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent(), this.HeroElementGroup.SetElementModeByIndex(C.HeroElementType.All)
            }, t.prototype.SetStaticLocalText = function() {
                this.Title.string = "Personalise_title".ToUILocale(), this.PreviewTag.string = "Personalise_preview".ToUILocale(), this.UseHeadIconBtnLabel.string = "Personalise_use_head_icon".ToUILocale(), this.UseHeadIconDisableBtnLabel.string = "Personalise_use_head_icon".ToUILocale(), this.UseFrameBtnLabel.string = "Personalise_use_head_frame".ToUILocale(), this.UseFrameDisableBtnLabel.string = "Personalise_use_head_frame".ToUILocale(), this.UseTitleBtnLabel.string = "Personalise_use_head_title".ToUILocale(), this.UseTitleDisableBtnLabel.string = "Personalise_use_head_title".ToUILocale(), this.RemoveTitleLabel.string = "PowerCore_Remove".ToUILocale(), this.FrameGetwayBtnLabel.string = "Personalise_getway".ToUILocale(), this.TitleGetwayBtnLabel.string = "Personalise_getway".ToUILocale(), this.AddationBtnLabel.string = "CollectionPavilion_Btn_totalAdd".ToUILocale(), this.AddationEmptyState.string = "CollectionPavilion_Tip_UnAttr".ToUILocale(), this.UseBtnLabel.string = "CollectionPavilion_Btn_use".ToUILocale(), this.UseGrayBtnLabel.string = "CollectionPavilion_Btn_use".ToUILocale(), this.TopNode2Duration.string = "Personalise_title_forever".ToUILocale();
                for (var e = 0; e < this.FunctionToggle.length; e++) this.FunctionToggle[e].Init(("Personalise_toggle_" + e).ToUILocale())
            }, t.prototype.SetClickEvent = function() {
                this.BtnUseHeadIcon.node.on("click", this.OnBtnUseHeadIconClick, this), this.BtnUseHeadFrame.node.on("click", this.OnBtnUseHeadFrameClick, this), this.BtnUseTitle.node.on("click", this.OnBtnUseTitleClick, this), this.BtnHeadFrameGetway.node.on("click", this.OnBtnFrameGetwayClick, this), this.BtnHeadTitleGetway.node.on("click", this.OnBtnTitleGetwayClick, this), this.RemoveTitleButton.node.on("click", this.OnRemoveTitleButtonClick, this), this.BtnTotalAddation.node.on("click", this.OnBtnAddationClick, this), this.BtnReset.on(cc.Node.EventType.TOUCH_END, this.HideAddation, this), this.UseBtn.node.on("click", this.OnUseBtn, this);
                for (var e = 0; e < this.FunctionToggle.length; e++) this.FunctionToggle[e].node.on("toggle", this.OnFunctionToggleSwitch, this)
            }, t.prototype.SetTogglePosition = function() {
                this.HeroElementGroup.node.active = this._currFunctionType == c.Head
            }, t.prototype.OnFunctionToggleSwitch = function(e) {
                var t = R.AppUtil.ToInt(e.node.name);
                if (t != this._currFunctionType) switch (this._currFunctionType = t, this.HeadIconScroll.node.active = !1, this.HeadTitleScroll.node.active = !1, this.HeadFrameScroll.node.active = !1, this.ChatWindowScroll.node.active = !1, this.MagicCircleListNode.active = !1, this.PetListNode.active = !1, this._currFunctionType) {
                    case c.Head:
                        this._selectHeadIconNode = null, this.HeadIconScroll.node.active = !0, this._selectElementType = C.HeroElementType.All, this.HeroElementGroup.SetElementModeByIndex(C.HeroElementType.All), this.DisPlay();
                        break;
                    case c.Frame:
                        this._selectHeadFrameNode = null, this.HeadFrameScroll.node.active = !0, this.DisPlay();
                        break;
                    case c.Title:
                        this._selectHeadTitleNode = null, this.HeadTitleScroll.node.active = !0, this.DisPlay();
                        break;
                    case c.ChatWindow:
                        this._selectChatWindowNode = null, this.ChatWindowScroll.node.active = !0, this.DisPlay();
                        break;
                    case c.MagicCircle:
                        this._selectMagicCircleNode = null, this.MagicCircleListNode.active = !0, this.DisPlay();
                        break;
                    case c.Pet:
                        this._selectPetNode = null, this.PetListNode.active = !0, this.DisPlay()
                }
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._selectElementType = C.HeroElementType.All
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this.ResetToggle(), this.CalcRedDotCount(), this.CheckRedDot()
            }, t.prototype.CalcRedDotCount = function() {
                this._iconRedDotCount = M.RedDotManager.DataHandler.GetHeadIconRedDotCount(), this._frameRedDotCount = M.RedDotManager.DataHandler.GetHeadFrameRedDotCount(), this._titleRedDotCount = M.RedDotManager.DataHandler.GetHeadTitleRedDotCount(), this.GetChatWindowOpenState() && (this._chatWinRedDotCount = M.RedDotManager.DataHandler.GetChatWindowRedDotCount())
            }, t.prototype.CheckRedDot = function() {
                M.RedDotManager.Instance.Bind(this.FunctionToggle[c.Head].node, M.RedDotManager.Instance.RedDot.HeadIconToggleNode), M.RedDotManager.Instance.Bind(this.FunctionToggle[c.Frame].node, M.RedDotManager.Instance.RedDot.HeadFrameToggleNode), M.RedDotManager.Instance.Bind(this.FunctionToggle[c.Title].node, M.RedDotManager.Instance.RedDot.HeadTitleToggleNode), this.GetChatWindowOpenState() && M.RedDotManager.Instance.Bind(this.FunctionToggle[c.ChatWindow].node, M.RedDotManager.Instance.RedDot.ChatWindowToggleNode), this.GetMagicCircleOpenState() && M.RedDotManager.Instance.Bind(this.FunctionToggle[c.MagicCircle].node, M.RedDotManager.Instance.RedDot.SetMagicCircleToggleNode), this.GetPetOpenState() && M.RedDotManager.Instance.Bind(this.FunctionToggle[c.Pet].node, M.RedDotManager.Instance.RedDot.SetPetToggleNode)
            }, t.prototype.ResetToggle = function() {
                this._currFunctionType = c.Head, this.FunctionToggle[this._currFunctionType].isChecked = !0, this.FunctionToggle[c.ChatWindow].node.active = this.GetChatWindowOpenState(), this.FunctionToggle[c.MagicCircle].node.active = this.GetMagicCircleOpenState(), this.FunctionToggle[c.Pet].node.active = this.GetPetOpenState()
            }, t.prototype.GetElementBySkinId = function(e) {
                var t = I.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, e);
                return I.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, t.HeroId).ElementType
            }, t.prototype.LoadConfigAndUserData = function() {
                var e = this;
                switch (this._headIconId = _.DataCenter.Instance.GetIntData(C.UserDataKey.HeadIcon), this._headFrameId = _.DataCenter.Instance.GetIntData(C.UserDataKey.HeadFrame), this._titleId = _.DataCenter.Instance.GetIntData(C.UserDataKey.Title), this._chatWindowId = _.DataCenter.Instance.GetIntData(C.UserDataKey.ChatWindow), this._magicCircleId = _.DataCenter.Instance.GetIntData(C.UserDataKey.ShowMagicCircle), this._petId = _.DataCenter.Instance.GetIntData(C.UserDataKey.ShowPet), this._currFunctionType) {
                    case c.Head:
                        this._headIconConfigList = [], this._heroConfig = I.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, this._headIconId);
                        for (var t = I.ConfigDataComponent.Instance.GetConfig(y.HeroSkin_Config), n = I.ConfigDataComponent.Instance.GetArrayConfig(y.HeadIcon_Config), o = 0; o < n.length; o++) {
                            var r = n[o];
                            if (r.Type == u.hero) {
                                var i = I.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, r.Id);
                                !O.default.IsHeroShownAvailable(i) || this._selectElementType != C.HeroElementType.All && i.ElementType != this._selectElementType || this._headIconConfigList.push(r)
                            } else if (r.Type == u.skin) {
                                var a = t[r.Id],
                                    s = this.GetElementBySkinId(a.Id);
                                !O.default.IsSkinShownAvailable(a) || this._selectElementType != C.HeroElementType.All && s != this._selectElementType || this._headIconConfigList.push(r)
                            }
                        }
                        this._headIconConfigList.sort(function(t, n) {
                            if (t.Id == e._headIconId && n.Id != e._headIconId) return -1;
                            if (t.Id != e._headIconId && n.Id == e._headIconId) return 1;
                            var o = void 0,
                                r = void 0;
                            if (t.Type == C.HeadIconType.Hero ? o = _.DataCenter.Instance.GetDataById(g.HeroInfo_Model, t.Param) : t.Type == C.HeadIconType.HeroSkin && (o = _.DataCenter.Instance.GetDataById(g.HeroSkin_Model, t.Param)), n.Type == C.HeadIconType.Hero ? r = _.DataCenter.Instance.GetDataById(g.HeroInfo_Model, n.Param) : n.Type == C.HeadIconType.HeroSkin && (r = _.DataCenter.Instance.GetDataById(g.HeroSkin_Model, n.Param)), null != o && null == r) return -1;
                            if (null == o && null != r) return 1;
                            var i = void 0,
                                a = void 0;
                            if (t.Type == C.HeadIconType.Hero) i = t.Param;
                            else if (t.Type == C.HeadIconType.HeroSkin) {
                                var s = t.Param;
                                i = I.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, s).HeroId
                            }
                            return n.Type == C.HeadIconType.Hero ? a = n.Param : n.Type == C.HeadIconType.HeroSkin && (s = n.Param, a = I.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, s).HeroId), i == a ? t.Type - n.Type : a - i
                        });
                        break;
                    case c.Frame:
                        this._headFrameConfigList = [], I.ConfigDataComponent.Instance.GetArrayConfig(y.HeadFrame_Config).forEach(function(t) {
                            (!t.AvailableStartTime || U.TimeUtil.StrToTime(t.AvailableStartTime) <= T.RpcComponent.Instance.ServerTime) && e._headFrameConfigList.push(t)
                        }), this._headFrameConfigList.sort(function(t, n) {
                            if (t.Id == e._headFrameId && n.Id != e._headFrameId) return -1;
                            if (t.Id != e._headFrameId && n.Id == e._headFrameId) return 1;
                            var o = 100 * t.Id + C.ConsumeItemType.HeadFrame,
                                r = 100 * n.Id + C.ConsumeItemType.HeadFrame;
                            return e.IsFrameOrTitleUnlock(o) && !e.IsFrameOrTitleUnlock(r) ? -1 : !e.IsFrameOrTitleUnlock(o) && e.IsFrameOrTitleUnlock(r) ? 1 : t.Order < n.Order ? -1 : t.Order > n.Order ? 1 : 0
                        });
                        break;
                    case c.Title:
                        this._headTitleConfigList = [], I.ConfigDataComponent.Instance.GetArrayConfig(y.Title_Config).forEach(function(t) {
                            (!t.AvailableStartTime || U.TimeUtil.StrToTime(t.AvailableStartTime) <= T.RpcComponent.Instance.ServerTime) && e._headTitleConfigList.push(t)
                        }), this._headTitleConfigList.sort(function(t, n) {
                            if (t.Id == e._titleId && n.Id != e._titleId) return -1;
                            if (t.Id != e._titleId && n.Id == e._titleId) return 1;
                            var o = 100 * t.Id + C.ConsumeItemType.Title,
                                r = 100 * n.Id + C.ConsumeItemType.Title;
                            return e.IsFrameOrTitleUnlock(o) && !e.IsFrameOrTitleUnlock(r) ? -1 : !e.IsFrameOrTitleUnlock(o) && e.IsFrameOrTitleUnlock(r) ? 1 : t.Order < n.Order ? -1 : t.Order > n.Order ? 1 : 0
                        });
                        break;
                    case c.ChatWindow:
                        this._chatWindowConfigList = I.ConfigDataComponent.Instance.GetArrayConfig(y.ChatWindow_Config), this._chatWindowConfigList.sort(function(t, n) {
                            if (t.Id == e._chatWindowId && n.Id != e._chatWindowId) return -1;
                            if (t.Id != e._chatWindowId && n.Id == e._chatWindowId) return 1;
                            var o = 100 * t.Id + C.ConsumeItemType.ChatWindow,
                                r = 100 * n.Id + C.ConsumeItemType.ChatWindow;
                            return e.IsFrameOrTitleUnlock(o) && !e.IsFrameOrTitleUnlock(r) ? -1 : !e.IsFrameOrTitleUnlock(o) && e.IsFrameOrTitleUnlock(r) ? 1 : t.Order < n.Order ? -1 : t.Order > n.Order ? 1 : 0
                        });
                        break;
                    case c.MagicCircle:
                        var p = I.ConfigDataComponent.Instance.GetArrayConfig(y.MagicCircleBase_Config).filter(function(e) {
                            return O.default.Instance.IsModuleShowAvailable(m.ModuleStartTime.MagicCircle, e.Id)
                        });
                        this._magicCircleConfigList = l(p), this._magicCircleConfigList.sort(function(t, n) {
                            return t.Id == e._magicCircleId && n.Id != e._magicCircleId ? -1 : t.Id != e._magicCircleId && n.Id == e._magicCircleId ? 1 : e.IsMagicCircleUnlock(t.Id) && !e.IsMagicCircleUnlock(n.Id) ? -1 : !e.IsMagicCircleUnlock(t.Id) && e.IsMagicCircleUnlock(n.Id) ? 1 : 0
                        });
                        var d = y.MagicCircleBase_Config.create();
                        d.Id = 0, this._magicCircleConfigList.splice(0, 0, d);
                        break;
                    case c.Pet:
                        var h = I.ConfigDataComponent.Instance.GetArrayConfig(y.PetBase_Config);
                        for (this._petConfigList = [], o = 0; o < h.length; o++) {
                            var f = h[o];
                            O.default.Instance.IsModuleShowAvailable(m.ModuleStartTime.Pet, f.Id) && this._petConfigList.push(f)
                        }
                        this._petConfigList.sort(function(t, n) {
                            return t.Id == e._petId && n.Id != e._petId ? -1 : t.Id != e._petId && n.Id == e._petId ? 1 : e.IsPetUnlock(t.Id) && !e.IsPetUnlock(n.Id) ? -1 : !e.IsPetUnlock(t.Id) && e.IsPetUnlock(n.Id) ? 1 : 0
                        });
                        var v = y.PetBase_Config.create();
                        v.Id = 0, this._petConfigList.splice(0, 0, v)
                }
            }, t.prototype.GetPlayerUid = function() {
                return _.DataCenter.Instance.Uid
            }, t.prototype.GetCacheKey = function(e, t) {
                switch (e) {
                    case c.Head:
                        return n.Cache_Key_Prefeix_HeadIcon + "_" + this.GetPlayerUid() + "_" + t;
                    case c.Frame:
                        return n.Cache_Key_Prefeix_HeadFrame + "_" + this.GetPlayerUid() + "_" + t;
                    case c.Title:
                        return n.Cache_Key_Prefeix_HeadTitle + "_" + this.GetPlayerUid() + "_" + t;
                    case c.ChatWindow:
                        return n.Cache_Key_Prefeix_ChatWindow + "_" + this.GetPlayerUid() + "_" + t;
                    case c.MagicCircle:
                        return n.Cache_Key_Prefeix_MagicCircle + "_" + this.GetPlayerUid() + "_" + t;
                    case c.Pet:
                        return n.Cache_Key_Prefeix_Pet + "_" + this.GetPlayerUid() + "_" + t
                }
            }, t.prototype.SetCache = function(e, t) {
                var n = this.GetCacheKey(e, t);
                cc.sys.localStorage.setItem(n, "1")
            }, t.prototype.isCacheValExist = function(e, t) {
                return null != cc.sys.localStorage.getItem(this.GetCacheKey(e, t))
            }, t.prototype.DisPlay = function(t) {
                if (void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t) switch (this._currFunctionType) {
                    case c.Frame:
                        this._selectHeadFrameNode = null
                }
                this.LoadConfigAndUserData(), this.SetShowTopNode(), this.SetAvatarInfo(), this.SetPreviewNodeActive(), this.InitHeadPreview(), this.SetChatWindowSprite(), this.InitAttrsNode(), this.InitCustomLayout(), this.CheckRedDot(), this.SetTogglePosition()
            }, t.prototype.RefreshUIContent = function() {
                this.SetShowTopNode(), this.SetAvatarInfo(), this.SetPreviewNodeActive(), this.InitHeadPreview(), this.SetChatWindowSprite(), this.InitAttrsNode(), this.InitCustomLayout(), this.CheckRedDot()
            }, t.prototype.SetShowTopNode = function() {
                this._currFunctionType == c.MagicCircle || this._currFunctionType == c.Pet ? (this.TopNode.active = !1, this.TopNode2.active = !0) : (this.TopNode.active = !0, this.TopNode2.active = !1)
            }, t.prototype.SetAvatarInfo = function() {
                switch (this._currFunctionType) {
                    case c.MagicCircle:
                    case c.Pet:
                        break;
                    default:
                        return
                }
                var e = _.DataCenter.Instance.GetIntData(C.UserDataKey.HeadIcon);
                this._selectIconIndex >= 0 && (e = this._headIconConfigList[this._selectIconIndex].Id);
                var t = I.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, e);
                t || (t = I.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, e));
                var n = "Hero_" + t.Model + "/HeroAvatar";
                this.LoadAssetHelper.LoadPrefab(n, this.AvatarRoot, function(e) {
                    e.getComponent(sp.Skeleton).setAnimation(0, m.SkillAnimationType.Standby, !0)
                });
                var o = _.DataCenter.Instance.GetIntData(C.UserDataKey.ShowMagicCircle);
                this._selectMagicCircleIndex >= 0 && (o = this._magicCircleConfigList[this._selectMagicCircleIndex].Id), this.SetMagicCircleByItemId(o);
                var r = _.DataCenter.Instance.GetIntData(C.UserDataKey.ShowPet);
                if (this._selectPetIndex >= 0 && (r = this._petConfigList[this._selectPetIndex].Id), this.SetPetByItemId(r), this._currFunctionType == c.MagicCircle)
                    if (o) this.TopNode2Name.string = o.ToItemName(), this.TopNode2Desc.string = o.ToMagicCircleDesc();
                    else {
                        var i = "PlayerSetting_noAlliance".ToUILocale();
                        this.TopNode2Name.string = i, this.TopNode2Desc.string = i
                    }
                else this._currFunctionType == c.Pet && (o ? (this.TopNode2Name.string = parseInt("10" + r).ToItemName(), this.TopNode2Desc.string = r.ToPetDesc()) : (i = "PlayerSetting_noAlliance".ToUILocale(), this.TopNode2Name.string = i, this.TopNode2Desc.string = i))
            }, t.prototype.SetMagicCircleByItemId = function(e) {
                if (!e) return this.MagicCircleTopNode.active = !1, void(this.MagicCircleBottomNode.active = !1);
                this.MagicCircleTopNode.active = !0, this.MagicCircleBottomNode.active = !0;
                var t = I.ConfigDataComponent.Instance.GetConfigById(y.MagicCircleBase_Config, e);
                if (t) {
                    var n, o, r = t.Model + "/HeroAvatar";
                    this.LoadAssetHelper.LoadPrefab(r, this.MagicCircleBottomNode, function(e) {
                        n = e, o && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                    }, p.MagicCircleBottom), this.LoadAssetHelper.LoadPrefab(r, this.MagicCircleTopNode, function(e) {
                        (o = e) && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                    }, p.MagicCircleTop)
                }
            }, t.prototype.SetPetByItemId = function(e) {
                if (e) {
                    this.PetNode.active = !0;
                    var t = I.ConfigDataComponent.Instance.GetConfigById(y.PetBase_Config, e);
                    if (t) {
                        var n = t.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(n, this.PetNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, m.SkillAnimationType.Standby, !0)
                        }, p.Pet)
                    }
                } else this.PetNode.active = !1
            }, t.prototype.SetPreviewNodeActive = function() {
                this.HeadRoot.active = this._currFunctionType != c.ChatWindow, this.ChatWindowSprite.node.active = this._currFunctionType == c.ChatWindow, this.UseTitleBtnLabel.string = this._currFunctionType == c.ChatWindow ? "chatWindow_use".ToUILocale() : "Personalise_use_head_title".ToUILocale(), this.UseTitleDisableBtnLabel.string = this._currFunctionType == c.ChatWindow ? "chatWindow_use".ToUILocale() : "Personalise_use_head_title".ToUILocale()
            }, t.prototype.InitHeadPreview = function() {
                if (this._currFunctionType != c.ChatWindow) {
                    null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(P.default), this._headItem.node.parent = this.HeadRoot), this._selectIconIndex < 0 || this._selectFrameIndex < 0 ? this._headItem.SetUI(this._headIconId, this._headFrameId) : (this._selectIconIndex >= 0 && this._headItem.SetHeadIcon(this._headIconConfigList[this._selectIconIndex].Id), this._selectFrameIndex >= 0 && this._headItem.SetHeadFrame(this._headFrameConfigList[this._selectFrameIndex].Id)), this._selectTitleIndex >= 0 ? this._headItem.SetTitleIcon(this._headTitleConfigList[this._selectTitleIndex].Id) : this._headItem.SetTitleIcon(this._titleId), this.NameLabel.node.active = !0, this.DurationNode.active = !0, this.DurationLabel.node.active = !0, this.HeadBgNode.y = -55, this.LineNode.y = -100, this.NameLabel.node.y = 55, this.DurationNode.y = 55, this.DescLabel.node.y = -145;
                    var e = null,
                        t = null;
                    switch (this._currFunctionType) {
                        case c.Head:
                            var n = I.ConfigDataComponent.Instance.GetConfigById(y.HeadIcon_Config, this._headIconId);
                            if (n && n.Type != C.HeadIconType.Hero) {
                                if (n.Type == C.HeadIconType.HeroSkin) {
                                    e = this._headIconId.ToSkinName();
                                    var o = I.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, this._headIconId);
                                    t = "HeadIcon_skinDesc".ToUILocale().Fmt(o.HeroId.ToHeroTitle(), e)
                                }
                            } else e = this._headIconId.ToHeroName(), t = this._headIconId.ToHeroLines();
                            this.NameLabel.string = e, this.DescLabel.string = t, this.HeadBgNode.y = -7, this.LineNode.y = -5, this.NameLabel.node.y = 40, this.DurationNode.y = 40, this.DescLabel.node.y = -50;
                            break;
                        case c.Frame:
                            e = this._headFrameId.ToItemName(), t = this._headFrameId.ToItemDesc(), this.NameLabel.string = e, this.DescLabel.string = t;
                            break;
                        case c.Title:
                            this._titleId > 0 ? (e = this._titleId.ToItemName(), t = this._titleId.ToItemDesc(), this.NameLabel.string = e, this.DescLabel.string = t) : this._selectTitleIndex < 0 && (this.DurationNode.active = !1, this.NameLabel.node.active = !1, this.DurationLabel.node.active = !1, this.DescLabel.string = "Personalise_no_title_preview".ToUILocale())
                    }
                }
            }, t.prototype.SetChatWindowSprite = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._currFunctionType != c.ChatWindow ? [2] : (e = this._selectChatWindowIndex >= 0 ? this._chatWindowConfigList[this._selectChatWindowIndex].Id : this.DefaultChatItemId, t = O.default.Instance.GetItemPathById(e), [4, this.LoadDynamicAsset(t, cc.SpriteFrame)]);
                            case 1:
                                return n = o.sent(), this.isValid ? (this.ChatWindowSprite.spriteFrame = n, this.NameLabel.node.active = !0, this.DurationNode.active = !0, this.DurationLabel.node.active = !0, this._selectChatWindowIndex >= 0 ? (this.NameLabel.string = e.ToItemName(), this.DescLabel.string = e.ToItemDesc()) : this._selectChatWindowIndex < 0 && (this.DurationNode.active = !1, this.NameLabel.node.active = !1, this.DurationLabel.node.active = !1, this.DescLabel.string = "chatWindow_no_preview".ToUILocale()), [2]) : (h.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.InitAttrsNode = function() {
                var e;
                this.AttrNodeParent.active = !1, this.AttrNodes.forEach(function(e) {
                    e.active = !1
                }), this._currFunctionType == c.Frame ? e = I.ConfigDataComponent.Instance.GetConfigById(y.HeadFrame_Config, this._headFrameId) : this._currFunctionType == c.Title ? e = I.ConfigDataComponent.Instance.GetConfigById(y.Title_Config, this._titleId) : this._currFunctionType == c.ChatWindow && (e = I.ConfigDataComponent.Instance.GetConfigById(y.ChatWindow_Config, this._chatWindowId)), e ? (this.AttrNodeParent.active = e.Attrs.length > 0, this.AttrNodes.forEach(function(t, n) {
                    if (t.active = !1, e.Attrs[n]) {
                        t.active = !0;
                        var o = t.getChildByName("Icon").getComponent(cc.Sprite),
                            r = t.getChildByName("Tag").getComponent(cc.Label),
                            i = t.getChildByName("Value2").getComponent(cc.Label),
                            a = e.Attrs[n].Items[0],
                            s = e.Attrs[n].Items[1],
                            l = O.default.GetHeroAttribute(a, s);
                        l && (o.spriteFrame = l.Icon, r.string = l.Name, i.string = "+" + l.Value)
                    }
                })) : this.AttrNodeParent.active = !1
            }, t.prototype.InitCustomLayout = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._isLayoutInit || (this._isLayoutInit = !0, this.HeadIconGrid.Init(this._headIconSelectItemPrefab, !1), this.HeadTitleGrid.Init(this._headTitleSelectItemPrefab, !1), this.HeadFrameGrid.Init(this._headIconFrameItemPrefab, !1), this.ChatWindowGrid.Init(this._chatWindowItemPrefab, !1), this.MagicCircleGrid.Init(this._magicCircleItemPrefab, !1), this.PetGrid.Init(this._petItemPrefab, !1)), this.RenderLayout(), [2]
                    })
                })
            }, t.prototype.RenderLayout = function() {
                var e;
                switch (this._currFunctionType) {
                    case c.Head:
                        e = this._headIconConfigList.length, this.HeadIconGrid.RenderLayOut(e);
                        break;
                    case c.Frame:
                        e = this._headFrameConfigList.length, this.HeadFrameGrid.RenderLayOut(e);
                        break;
                    case c.Title:
                        e = this._headTitleConfigList.length, this.HeadTitleGrid.RenderLayOut(e);
                        break;
                    case c.ChatWindow:
                        e = this._chatWindowConfigList.length, this.ChatWindowGrid.RenderLayOut(e);
                        break;
                    case c.MagicCircle:
                        e = this._magicCircleConfigList.length, this.MagicCircleGrid.RenderLayOut(e);
                        break;
                    case c.Pet:
                        e = this._petConfigList.length, this.PetGrid.RenderLayOut(e)
                }
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (t == this.HeadIconGrid || t == this.HeadTitleGrid || t == this.HeadFrameGrid || t == this.ChatWindowGrid || t == this.MagicCircleGrid || t == this.PetGrid) {
                    if (e.forEach(function(e, t) {
                            var o, r, i, a, s;
                            switch (n._currFunctionType) {
                                case c.Head:
                                    o = e.getComponent(w.default);
                                    var l = n._headIconConfigList[t].Id;
                                    o.node.name = t.toString(), o.SetUI(l, n._headItemPrefab);
                                    var p = void 0;
                                    n._headIconConfigList[t].Type == u.hero ? p = _.DataCenter.Instance.GetDataById(g.HeroInfo_Model, l) : n._headIconConfigList[t].Type == u.skin && (p = _.DataCenter.Instance.GetDataById(g.HeroSkin_Model, l)), null != p ? o.SetMask(!1) : o.SetMask(!0), n._selectIconIndex > 0 && l == n._headIconConfigList[n._selectIconIndex].Id ? o.SetSelect(!0) : o.SetSelect(!1), l == n._headIconId ? o.SetUsedFlag(!0) : o.SetUsedFlag(!1), n.isCacheValExist(c.Head, l) || l == n._headIconId || null == p ? o.SetRedDot(!1) : o.SetRedDot(!0);
                                    break;
                                case c.Frame:
                                    r = e.getComponent(D.default);
                                    var d = n._headFrameConfigList[t].Id;
                                    a = 100 * d + C.ConsumeItemType.HeadFrame, r.node.name = t.toString(), r.SetUI(0, d, n._headItemPrefab), (s = n.IsFrameOrTitleUnlock(a)) ? r.SetMask(!1) : r.SetMask(!0), n._selectFrameIndex > 0 && d == n._headFrameConfigList[n._selectFrameIndex].Id ? r.SetSelect(!0) : r.SetSelect(!1), d == n._headFrameId ? r.SetUsedFlag(!0) : r.SetUsedFlag(!1), !n.isCacheValExist(c.Frame, d) && d != n._headFrameId && s ? r.SetRedDot(!0) : r.SetRedDot(!1);
                                    break;
                                case c.Title:
                                    i = e.getComponent(L.default);
                                    var h = n._headTitleConfigList[t].Id;
                                    a = 100 * h + C.ConsumeItemType.Title, i.node.name = t.toString(), i.SetUI(h), (s = n.IsFrameOrTitleUnlock(a)) ? i.SetMask(!1) : i.SetMask(!0), n._selectTitleIndex > 0 && h == n._headTitleConfigList[n._selectTitleIndex].Id ? i.SetSelect(!0) : i.SetSelect(!1), h == n._titleId ? i.SetUsedFlag(!0) : i.SetUsedFlag(!1), !n.isCacheValExist(c.Title, h) && h != n._titleId && s ? i.SetRedDot(!0) : i.SetRedDot(!1);
                                    break;
                                case c.ChatWindow:
                                    var f = e.getComponent(N.default),
                                        y = n._chatWindowConfigList[t].Id,
                                        m = 100 * y + C.ConsumeItemType.ChatWindow;
                                    f.node.name = t.toString(), f.SetUI(y), s = n.IsFrameOrTitleUnlock(m), n.IsFrameOrTitleUnlock(m) ? f.SetMask(!1) : f.SetMask(!0), n._selectChatWindowIndex > 0 && y == n._chatWindowConfigList[n._selectChatWindowIndex].Id ? f.SetSelect(!0) : f.SetSelect(!1), y == n._chatWindowId ? f.SetUsedFlag(!0) : f.SetUsedFlag(!1), !n.isCacheValExist(c.ChatWindow, y) && y != n._chatWindowId && s ? f.SetRedDot(!0) : f.SetRedDot(!1);
                                    break;
                                case c.MagicCircle:
                                    var I = e.getComponent(G.default),
                                        v = n._magicCircleConfigList[t].Id;
                                    I.node.name = t.toString(), I.SetUI(v, n._itemPrefab), s = n.IsMagicCircleUnlock(v), n.IsMagicCircleUnlock(v) ? I.SetMask(!1) : I.SetMask(!0), n._selectMagicCircleIndex > 0 && v == n._magicCircleConfigList[n._selectMagicCircleIndex].Id ? I.SetSelect(!0) : I.SetSelect(!1), v == n._magicCircleId ? I.SetUsedFlag(!0) : I.SetUsedFlag(!1), v && !n.isCacheValExist(c.MagicCircle, v) && v != n._magicCircleId && s ? I.SetRedDot(!0) : I.SetRedDot(!1);
                                    break;
                                case c.Pet:
                                    var b = e.getComponent(H.default),
                                        S = n._petConfigList[t].Id,
                                        P = 0;
                                    S && (P = parseInt("10" + S)), b.node.name = t.toString(), b.SetUI(P, n._itemPrefab), s = n.IsPetUnlock(S), n.IsPetUnlock(S) ? b.SetMask(!1) : b.SetMask(!0), n._selectPetIndex > 0 && S == n._petConfigList[n._selectPetIndex].Id ? b.SetSelect(!0) : b.SetSelect(!1), S == n._petId ? b.SetUsedFlag(!0) : b.SetUsedFlag(!1), S && !n.isCacheValExist(c.Pet, S) && S != n._petId && s ? b.SetRedDot(!0) : b.SetRedDot(!1)
                            }
                        }), null == this._selectHeadIconNode) {
                        var o = void 0;
                        this._currFunctionType == c.Head && (o = this._selectIconIndex >= 0 ? this._selectIconIndex : 0, this.OnItemClick(o, this.HeadIconGrid.node.children[o]))
                    }
                    if (null == this._selectHeadFrameNode && (o = void 0, this._currFunctionType == c.Frame && (o = this._selectFrameIndex >= 0 ? this._selectFrameIndex : 0, this.OnItemClick(o, this.HeadFrameGrid.node.children[o]))), this._currFunctionType == c.Title) {
                        if (this._titleId > 0 && -1 == this._selectTitleIndex) return void this.OnItemClick(0, this.HeadTitleGrid.node.children[0]);
                        this._selectTitleIndex >= 0 ? this.OnItemClick(this._selectTitleIndex, this.HeadTitleGrid.node.children[this._selectTitleIndex]) : this.SetBtnState()
                    } else if (this._currFunctionType == c.ChatWindow) {
                        if (this._chatWindowId > 0 && -1 == this._selectChatWindowIndex) return void this.OnItemClick(0, this.ChatWindowGrid.node.children[0]);
                        this._selectChatWindowIndex >= 0 ? this.OnItemClick(this._selectChatWindowIndex, this.ChatWindowGrid.node.children[this._selectChatWindowIndex]) : this.SetBtnState()
                    } else if (this._currFunctionType == c.MagicCircle) {
                        if (-1 == this._selectMagicCircleIndex) return void(this._magicCircleId ? this.OnItemClick(0, this.MagicCircleGrid.node.children[1]) : this.OnItemClick(0, this.MagicCircleGrid.node.children[0]));
                        this._selectMagicCircleIndex >= 0 ? this.OnItemClick(null, this.MagicCircleGrid.node.getChildByName(this._selectMagicCircleIndex.toString())) : this.SetBtnState()
                    } else if (this._currFunctionType == c.Pet) {
                        if (-1 == this._selectPetIndex) return void(this._petId ? this.OnItemClick(0, this.PetGrid.node.children[1]) : this.OnItemClick(0, this.PetGrid.node.children[0]));
                        this._selectPetIndex >= 0 ? this.OnItemClick(null, this.PetGrid.node.getChildByName(this._selectPetIndex.toString())) : this.SetBtnState()
                    }
                }
            }, t.prototype.OnItemClick = function(e, t) {
                if (this._currFunctionType == c.Head) {
                    if (-1 == this.HeadIconGrid.node.children.indexOf(t)) return;
                    for (var n = 0; n < this.HeadIconGrid.node.children.length; n++) this.HeadIconGrid.node.children[n].getComponent(w.default).SetSelect(!1);
                    var o = t.getComponent(w.default);
                    null == this._selectHeadIconNode ? (o.SetSelect(!0), this._selectHeadIconNode = o) : (this._selectHeadIconNode.SetSelect(!1), o.SetSelect(!0), this._selectHeadIconNode = o)
                } else if (this._currFunctionType == c.Frame) {
                    if (-1 == this.HeadFrameGrid.node.children.indexOf(t)) return;
                    for (n = 0; n < this.HeadFrameGrid.node.children.length; n++) this.HeadFrameGrid.node.children[n].getComponent(D.default).SetSelect(!1);
                    o = t.getComponent(D.default), null == this._selectHeadFrameNode ? (o.SetSelect(!0), this._selectHeadFrameNode = o) : (this._selectHeadFrameNode.SetSelect(!1), o.SetSelect(!0), this._selectHeadFrameNode = o)
                } else if (this._currFunctionType == c.Title) {
                    if (-1 == this.HeadTitleGrid.node.children.indexOf(t)) return;
                    for (n = 0; n < this.HeadTitleGrid.node.children.length; n++) this.HeadTitleGrid.node.children[n].getComponent(L.default).SetSelect(!1);
                    o = t.getComponent(L.default), null == this._selectHeadTitleNode ? (o.SetSelect(!0), this._selectHeadTitleNode = o) : (this._selectHeadTitleNode.SetSelect(!1), o.SetSelect(!0), this._selectHeadTitleNode = o)
                } else if (this._currFunctionType == c.ChatWindow) {
                    if (-1 == this.ChatWindowGrid.node.children.indexOf(t)) return;
                    for (n = 0; n < this.ChatWindowGrid.node.children.length; n++) this.ChatWindowGrid.node.children[n].getComponent(N.default).SetSelect(!1);
                    o = t.getComponent(N.default), null == this._selectChatWindowNode ? (o.SetSelect(!0), this._selectChatWindowNode = o) : (this._selectChatWindowNode.SetSelect(!1), o.SetSelect(!0), this._selectChatWindowNode = o)
                } else if (this._currFunctionType == c.MagicCircle) {
                    if (-1 == this.MagicCircleGrid.node.children.indexOf(t)) return;
                    for (n = 0; n < this.MagicCircleGrid.node.children.length; n++) this.MagicCircleGrid.node.children[n].getComponent(G.default).SetSelect(!1);
                    o = t.getComponent(G.default), null == this._selectMagicCircleNode ? (o.SetSelect(!0), this._selectMagicCircleNode = o) : (this._selectMagicCircleNode.SetSelect(!1), o.SetSelect(!0), this._selectMagicCircleNode = o)
                } else if (this._currFunctionType == c.Pet) {
                    if (-1 == this.PetGrid.node.children.indexOf(t)) return;
                    for (n = 0; n < this.PetGrid.node.children.length; n++) this.PetGrid.node.children[n].getComponent(H.default).SetSelect(!1);
                    o = t.getComponent(H.default), null == this._selectPetNode ? (o.SetSelect(!0), this._selectPetNode = o) : (this._selectPetNode.SetSelect(!1), o.SetSelect(!0), this._selectPetNode = o)
                }
                var r, i = Number.parseInt(t.name);
                switch (this._currFunctionType) {
                    case c.Head:
                        var a = this._headIconConfigList[i].Id;
                        if (this._selectIconIndex = i, this._headItem.SetHeadIcon(a), null != (this._headIconConfigList[this._selectIconIndex].Type == C.HeadIconType.Hero ? _.DataCenter.Instance.GetDataById(g.HeroInfo_Model, a) : _.DataCenter.Instance.GetDataById(g.HeroSkin_Model, a)) && (this._selectHeadIconNode.SetRedDot(!1), !this.isCacheValExist(c.Head, a))) {
                            var s = I.ConfigDataComponent.Instance.GetArrayConfig(y.HeadIcon_Config);
                            for (n = 0; n < s.length; n++) {
                                var l = s[n],
                                    u = void 0;
                                1 == l.Type ? u = _.DataCenter.Instance.GetDataById(g.HeroInfo_Model, l.Id) : 2 == l.Type && (u = _.DataCenter.Instance.GetDataById(g.HeroSkin_Model, l.Id)), u && !this.isCacheValExist(c.Head, l.Id) && this.SetCache(c.Head, l.Id)
                            }
                            for (n = 0; n < this.HeadIconGrid.node.children.length; n++) this.HeadIconGrid.node.children[n].getComponent(w.default).SetRedDot(!1);
                            M.RedDotManager.Instance.RedDot.PlayerHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RedDot.PlayerSettingHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RefreshRedDotNode(M.RedDotManager.Instance.RedDot.HeadIconToggleNode), this.CheckRedDot()
                        }
                        break;
                    case c.Frame:
                        var p = this._headFrameConfigList[i].Id;
                        if (this._selectFrameIndex = i, this._headItem.SetHeadFrame(p), r = 100 * p + C.ConsumeItemType.HeadFrame, this._headFrameId != p && this.IsFrameOrTitleUnlock(r) && (this._selectHeadFrameNode.SetRedDot(!1), !this.isCacheValExist(c.Frame, p))) {
                            var d = I.ConfigDataComponent.Instance.GetArrayConfig(y.HeadFrame_Config);
                            for (n = 0; n < d.length; n++) {
                                var h = d[n].Id,
                                    f = this.IsFrameOrTitleUnlock(100 * h + C.ConsumeItemType.HeadFrame);
                                !this.isCacheValExist(c.Frame, h) && f && this.SetCache(c.Frame, h)
                            }
                            for (n = 0; n < this.HeadFrameGrid.node.children.length; n++) this.HeadFrameGrid.node.children[n].getComponent(D.default).SetRedDot(!1);
                            M.RedDotManager.Instance.RedDot.PlayerHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RedDot.PlayerSettingHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RefreshRedDotNode(M.RedDotManager.Instance.RedDot.HeadFrameToggleNode), this.CheckRedDot()
                        }
                        break;
                    case c.Title:
                        this._selectTitleIndex = i;
                        var v = this._headTitleConfigList[this._selectTitleIndex].Id;
                        if (this._headItem.SetTitleIcon(v), r = 100 * v + C.ConsumeItemType.Title, this._titleId != v && this.IsFrameOrTitleUnlock(r) && (this._selectHeadTitleNode.SetRedDot(!1), !this.isCacheValExist(c.Title, v))) {
                            var b = I.ConfigDataComponent.Instance.GetArrayConfig(y.Title_Config);
                            for (n = 0; n < b.length; n++) {
                                var S = b[n].Id;
                                f = this.IsFrameOrTitleUnlock(100 * S + C.ConsumeItemType.Title), !this.isCacheValExist(c.Title, S) && f && this.SetCache(c.Title, S)
                            }
                            for (n = 0; n < this.HeadTitleGrid.node.children.length; n++) this.HeadTitleGrid.node.children[n].getComponent(L.default).SetRedDot(!1);
                            M.RedDotManager.Instance.RedDot.PlayerHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RedDot.PlayerSettingHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RefreshRedDotNode(M.RedDotManager.Instance.RedDot.HeadTitleToggleNode), this.CheckRedDot()
                        }
                        this._selectTitleIndex >= 0 && (this.DurationNode.active = !0, this.NameLabel.node.active = !0, this.DurationLabel.node.active = !0);
                        break;
                    case c.ChatWindow:
                        this._selectChatWindowIndex = i;
                        var P = this._chatWindowConfigList[this._selectChatWindowIndex].Id;
                        if (r = 100 * P + C.ConsumeItemType.ChatWindow, this._chatWindowId != P && this.IsFrameOrTitleUnlock(r) && (this._selectChatWindowNode.SetRedDot(!1), !this.isCacheValExist(c.ChatWindow, P))) {
                            var A = I.ConfigDataComponent.Instance.GetArrayConfig(y.ChatWindow_Config);
                            for (n = 0; n < A.length; n++) {
                                var T = A[n].Id;
                                f = this.IsFrameOrTitleUnlock(100 * T + C.ConsumeItemType.ChatWindow), !this.isCacheValExist(c.ChatWindow, T) && f && this.SetCache(c.ChatWindow, T)
                            }
                            for (n = 0; n < this.ChatWindowGrid.node.children.length; n++) this.ChatWindowGrid.node.children[n].getComponent(N.default).SetRedDot(!1);
                            M.RedDotManager.Instance.RedDot.PlayerHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RedDot.PlayerSettingHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RefreshRedDotNode(M.RedDotManager.Instance.RedDot.ChatWindowToggleNode), this.CheckRedDot()
                        }
                        this._selectChatWindowIndex >= 0 && (this.DurationNode.active = !0, this.NameLabel.node.active = !0, this.DurationLabel.node.active = !0);
                        break;
                    case c.MagicCircle:
                        this._selectMagicCircleIndex = i;
                        var R = this._magicCircleConfigList[this._selectMagicCircleIndex].Id;
                        if (this._magicCircleId != R && this.IsMagicCircleUnlock(R) && (this._selectMagicCircleNode.SetRedDot(!1), !this.isCacheValExist(c.MagicCircle, R))) {
                            var k = I.ConfigDataComponent.Instance.GetArrayConfig(y.MagicCircleBase_Config).filter(function(e) {
                                return O.default.Instance.IsModuleShowAvailable(m.ModuleStartTime.MagicCircle, e.Id)
                            });
                            for (n = 0; n < k.length; n++) {
                                var B = k[n].Id;
                                f = this.IsMagicCircleUnlock(B), !this.isCacheValExist(c.MagicCircle, B) && f && this.SetCache(c.MagicCircle, B)
                            }
                            for (n = 0; n < this.MagicCircleGrid.node.children.length; n++) this.MagicCircleGrid.node.children[n].getComponent(G.default).SetRedDot(!1);
                            M.RedDotManager.Instance.RedDot.PlayerHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RedDot.PlayerSettingHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RefreshRedDotNode(M.RedDotManager.Instance.RedDot.SetMagicCircleToggleNode), this.CheckRedDot()
                        }
                        break;
                    case c.Pet:
                        this._selectPetIndex = i;
                        var E = this._petConfigList[this._selectPetIndex].Id;
                        if (this._petId != E && this.IsPetUnlock(E) && (this._selectPetNode.SetRedDot(!1), !this.isCacheValExist(c.Pet, E))) {
                            var U = I.ConfigDataComponent.Instance.GetArrayConfig(y.PetBase_Config);
                            for (n = 0; n < U.length; n++) {
                                var x = U[n].Id;
                                f = this.IsPetUnlock(x), !this.isCacheValExist(c.Pet, x) && f && this.SetCache(c.Pet, x)
                            }
                            for (n = 0; n < this.PetGrid.node.children.length; n++) this.PetGrid.node.children[n].getComponent(H.default).SetRedDot(!1);
                            M.RedDotManager.Instance.RedDot.PlayerHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RedDot.PlayerSettingHeadNode.NeedRefresh = !0, M.RedDotManager.Instance.RefreshRedDotNode(M.RedDotManager.Instance.RedDot.SetPetToggleNode), this.CheckRedDot()
                        }
                }
                this.SetHeadInfo(), this.SetAvatarInfo(), this.SetPreviewNodeActive(), this.SetChatWindowSprite(), this.SetBtnState(), this.InitAttrsNode()
            }, t.prototype.OnSwitchHeroElement = function(e, t) {
                if (t == this.HeroElementGroup.node) {
                    var n = this._selectElementType;
                    this._selectElementType != e && (this._selectElementType = e, this._selectIconIndex = -1, this.LoadConfigAndUserData(), this._headIconConfigList.length > 0 ? this.RefreshUIContent() : this.HeroElementGroup.SetElementModeByIndex(n))
                }
            }, t.prototype.SetHeadInfo = function() {
                var e, t, n;
                switch (this.unschedule(this.SetDurationTimeStr), this._currFunctionType) {
                    case c.Head:
                        e = this._headIconConfigList[this._selectIconIndex].Id;
                        var o = void 0,
                            r = void 0,
                            i = I.ConfigDataComponent.Instance.GetConfigById(y.HeadIcon_Config, e);
                        if (i && i.Type != C.HeadIconType.Hero) {
                            if (i.Type == C.HeadIconType.HeroSkin) {
                                o = e.ToSkinName();
                                var a = I.ConfigDataComponent.Instance.GetConfigById(y.HeroSkin_Config, e);
                                r = "HeadIcon_skinDesc".ToUILocale().Fmt(a.HeroId.ToHeroTitle(), o)
                            }
                        } else o = e.ToHeroName(), r = e.ToHeroLines();
                        this.NameLabel.string = o, this.DescLabel.string = r;
                        var s = void 0;
                        i.Type == C.HeadIconType.HeroSkin ? _.DataCenter.Instance.GetDataById(g.HeroSkin_Model, e) && (s = !0) : _.DataCenter.Instance.GetDataById(g.HeroInfo_Model, e) && (s = !0), this.DurationLabel.string = null != s ? "heroSkin_forever".ToUILocale() : "Personalise_title_unactive".ToUILocale();
                        break;
                    case c.Frame:
                        e = this._headFrameConfigList[this._selectFrameIndex].Id, this.NameLabel.string = e.ToItemName(), this.DescLabel.string = e.ToItemDesc(), t = 100 * e + C.ConsumeItemType.HeadFrame, null != (n = _.DataCenter.Instance.GetDataById(g.UserIcon_Model, t)) ? n.Time > 0 ? (this._deadLine = n.Time, this.SetDurationTimeStr(), this.schedule(this.SetDurationTimeStr, 1)) : this.DurationLabel.string = "heroSkin_forever".ToUILocale() : this.DurationLabel.string = "Personalise_title_unactive".ToUILocale();
                        break;
                    case c.Title:
                        e = this._headTitleConfigList[this._selectTitleIndex].Id, this.NameLabel.string = e.ToItemName(), this.DescLabel.string = e.ToItemDesc(), t = 100 * e + C.ConsumeItemType.Title, null != (n = _.DataCenter.Instance.GetDataById(g.UserIcon_Model, t)) ? n.Time > 0 ? (this._deadLine = n.Time, this.SetDurationTimeStr()) : this.DurationLabel.string = "heroSkin_forever".ToUILocale() : this.DurationLabel.string = "Personalise_title_unactive".ToUILocale();
                        break;
                    case c.ChatWindow:
                        t = 100 * (e = this._chatWindowConfigList[this._selectChatWindowIndex].Id) + C.ConsumeItemType.ChatWindow, null != (n = _.DataCenter.Instance.GetDataById(g.UserIcon_Model, t)) ? n.Time > 0 ? (this._deadLine = n.Time, this.SetDurationTimeStr()) : this.DurationLabel.string = "heroSkin_forever".ToUILocale() : this.DurationLabel.string = "Personalise_title_unactive".ToUILocale()
                }
            }, t.prototype.SetDurationTimeStr = function() {
                var e = T.RpcComponent.Instance.ServerTime;
                if (this._deadLine < e) return this.DurationLabel.string = "Personalise_title_unactive".ToUILocale(), void this.unschedule(this.SetDurationTimeStr);
                var t = this._deadLine - e;
                this.DurationLabel.string = t.FmtRemainTime()
            }, t.prototype.IsFrameOrTitleUnlock = function(e) {
                var t = _.DataCenter.Instance.GetDataById(g.UserIcon_Model, e);
                if (null != t) {
                    if (t.Time > 0) {
                        var n = T.RpcComponent.Instance.ServerTime;
                        return !(t.Time < n)
                    }
                    return !0
                }
                return !1
            }, t.prototype.IsMagicCircleUnlock = function(e) {
                return !e || !!_.DataCenter.Instance.GetDataById(g.MagicCircle_Model, e)
            }, t.prototype.IsPetUnlock = function(e) {
                return !e || !!_.DataCenter.Instance.GetDataById(g.UserPet_Model, e)
            }, t.prototype.SetBtnState = function() {
                var e;
                switch (this.HideAllBottomBtn(), this._currFunctionType) {
                    case c.Head:
                        (e = this._headIconConfigList[this._selectIconIndex].Id) == this._headIconId ? this.BtnUseHeadIconDisable.node.active = !0 : this.BtnUseHeadIcon.node.active = !0;
                        break;
                    case c.Frame:
                        (e = this._headFrameConfigList[this._selectFrameIndex].Id) == this._headFrameId ? this.BtnUseHeadFrameDisable.node.active = !0 : this.IsFrameOrTitleUnlock(100 * e + C.ConsumeItemType.HeadFrame) ? this.BtnUseHeadFrame.node.active = !0 : this.BtnHeadFrameGetway.node.active = !0;
                        break;
                    case c.Title:
                        if (this.BtnTotalAddation.node.active = !0, this._selectTitleIndex < 0) {
                            this.BtnUseTitleDisable.node.active = !0;
                            break
                        }(e = this._headTitleConfigList[this._selectTitleIndex].Id) == this._titleId ? this.RemoveTitleButton.node.active = !0 : this.IsFrameOrTitleUnlock(100 * e + C.ConsumeItemType.Title) ? this.BtnUseTitle.node.active = !0 : this.BtnHeadTitleGetway.node.active = !0;
                        break;
                    case c.ChatWindow:
                        if (this._selectChatWindowIndex < 0) {
                            this.BtnUseTitleDisable.node.active = !0;
                            break
                        }(e = this._chatWindowConfigList[this._selectChatWindowIndex].Id) == this._chatWindowId ? this.RemoveTitleButton.node.active = !0 : this.IsFrameOrTitleUnlock(100 * e + C.ConsumeItemType.ChatWindow) ? this.BtnUseTitle.node.active = !0 : this.BtnHeadTitleGetway.node.active = !0;
                        break;
                    case c.MagicCircle:
                        if (this._selectMagicCircleIndex < 0) {
                            this.BtnUseTitleDisable.node.active = !0;
                            break
                        }(e = this._magicCircleConfigList[this._selectMagicCircleIndex].Id) == this._magicCircleId ? this.UseGrayBtn.node.active = !0 : this.IsMagicCircleUnlock(e) ? this.UseBtn.node.active = !0 : this.BtnHeadTitleGetway.node.active = !0;
                        break;
                    case c.Pet:
                        if (this._selectPetIndex < 0) {
                            this.BtnUseTitleDisable.node.active = !0;
                            break
                        }(e = this._petConfigList[this._selectPetIndex].Id) == this._petId ? this.UseGrayBtn.node.active = !0 : this.IsPetUnlock(e) ? this.UseBtn.node.active = !0 : this.BtnHeadTitleGetway.node.active = !0
                }
            }, t.prototype.HideAllBottomBtn = function() {
                this.BtnUseHeadIcon.node.active = !1, this.BtnUseHeadIconDisable.node.active = !1, this.BtnUseHeadFrame.node.active = !1, this.BtnUseHeadFrameDisable.node.active = !1, this.BtnHeadFrameGetway.node.active = !1, this.BtnUseTitle.node.active = !1, this.BtnUseTitleDisable.node.active = !1, this.RemoveTitleButton.node.active = !1, this.BtnHeadTitleGetway.node.active = !1, this.BtnTotalAddation.node.active = !1, this.UseBtn.node.active = !1, this.UseGrayBtn.node.active = !1
            }, t.prototype.OnBtnUseHeadIconClick = function() {
                var e = this._headIconConfigList[this._selectIconIndex].Id;
                null != (this._headIconConfigList[this._selectIconIndex].Type == C.HeadIconType.Hero ? _.DataCenter.Instance.GetDataById(g.HeroInfo_Model, e) : _.DataCenter.Instance.GetDataById(g.HeroSkin_Model, e)) ? this.RequestChangeHeadIcon() : b.UIUtlity.ShowFloatingHint("Personalise_not_unlock_headIcon".ToUILocale())
            }, t.prototype.OnBtnUseHeadFrameClick = function() {
                var e = 100 * this._headFrameConfigList[this._selectFrameIndex].Id + C.ConsumeItemType.HeadFrame;
                this.IsFrameOrTitleUnlock(e) ? this.RequestChangeHeadFrame() : (b.UIUtlity.ShowFloatingHint("Personalise_frame_outdate".ToUILocale()), this.DisPlay())
            }, t.prototype.OnBtnUseTitleClick = function() {
                if (this._currFunctionType == c.Title) {
                    var e = 100 * this._headTitleConfigList[this._selectTitleIndex].Id + C.ConsumeItemType.Title;
                    this.IsFrameOrTitleUnlock(e) ? (this._selectTitleId = this._headTitleConfigList[this._selectTitleIndex].Id, this.RequestChangeHeadTitle()) : (b.UIUtlity.ShowFloatingHint("Personalise_title_outdate".ToUILocale()), this.DisPlay())
                } else this._currFunctionType == c.ChatWindow && (e = 100 * this._chatWindowConfigList[this._selectChatWindowIndex].Id + C.ConsumeItemType.ChatWindow, this.IsFrameOrTitleUnlock(e) ? (this._selectChatWinId = this._chatWindowConfigList[this._selectChatWindowIndex].Id, this.RequestChangeHeadTitle()) : (b.UIUtlity.ShowFloatingHint("chatWindow_out_time".ToUILocale()), this.DisPlay()))
            }, t.prototype.OnRemoveTitleButtonClick = function() {
                this._currFunctionType == c.Title ? (this._selectTitleId = 0, this.RequestChangeHeadTitle()) : this._currFunctionType == c.ChatWindow && (this._selectChatWinId = 0, this.RequestChangeHeadTitle())
            }, t.prototype.OnUseBtn = function() {
                if (this._currFunctionType == c.MagicCircle) {
                    var e = this._magicCircleConfigList[this._selectMagicCircleIndex].Id;
                    this.IsMagicCircleUnlock(e) ? this.RequestChangeMagicCircle() : (b.UIUtlity.ShowFloatingHint("unlock".ToUILocale()), this.DisPlay())
                } else this._currFunctionType == c.Pet && (e = this._petConfigList[this._selectPetIndex].Id, this.IsPetUnlock(e) ? this.RequestChangePet() : (b.UIUtlity.ShowFloatingHint("unlock".ToUILocale()), this.DisPlay()))
            }, t.prototype.RequestChangeHeadIcon = function() {
                var e = new g.Req_Player_ChangeIcon,
                    t = this._headIconConfigList[this._selectIconIndex].Id;
                e.Type = C.ConsumeItemType.HeadIcon, e.IconId = t, T.RpcComponent.Instance.Call(e, this.ResponseChangeHeadIconSuccess.bind(this))
            }, t.prototype.ResponseChangeHeadIconSuccess = function() {
                b.UIUtlity.ShowFloatingHint("Personalise_change_headicon_success".ToUILocale()), h.Game.EventDispatcher.Emit(S.EventKeys.EVENT_REFRESH_USER_HEAD), this._selectHeadIconNode = null, this._selectIconIndex = -1, this.DisPlay()
            }, t.prototype.RequestChangeHeadFrame = function() {
                var e = new g.Req_Player_ChangeIcon,
                    t = this._headFrameConfigList[this._selectFrameIndex].Id;
                e.Type = C.ConsumeItemType.HeadFrame, e.IconId = t, T.RpcComponent.Instance.Call(e, this.ResponseChangeHeadFrameSuccess.bind(this))
            }, t.prototype.ResponseChangeHeadFrameSuccess = function() {
                b.UIUtlity.ShowFloatingHint("Personalise_change_headframe_success".ToUILocale()), h.Game.EventDispatcher.Emit(S.EventKeys.EVENT_REFRESH_USER_HEAD), this._selectHeadFrameNode = null, this._selectFrameIndex = -1, this.DisPlay()
            }, t.prototype.RequestChangeHeadTitle = function() {
                if (this._currFunctionType == c.Title)(e = new g.Req_Player_ChangeIcon).Type = C.ConsumeItemType.Title, e.IconId = this._selectTitleId, T.RpcComponent.Instance.Call(e, this.ResponseChangeHeadTitleSuccess.bind(this));
                else if (this._currFunctionType == c.ChatWindow) {
                    var e;
                    (e = new g.Req_Player_ChangeIcon).Type = C.ConsumeItemType.ChatWindow, e.IconId = this._selectChatWinId, T.RpcComponent.Instance.Call(e, this.ResponseChangeHeadTitleSuccess.bind(this))
                }
            }, t.prototype.ResponseChangeHeadTitleSuccess = function() {
                this._currFunctionType == c.Title ? (0 == this._selectTitleId ? b.UIUtlity.ShowFloatingHint("remove_success".ToUILocale()) : b.UIUtlity.ShowFloatingHint("Personalise_change_headtitle_success".ToUILocale()), h.Game.EventDispatcher.Emit(S.EventKeys.EVENT_REFRESH_USER_HEAD), this._selectHeadTitleNode = null, this._selectTitleIndex = -1, this.DisPlay()) : this._currFunctionType == c.ChatWindow && (0 == this._selectChatWinId ? b.UIUtlity.ShowFloatingHint("remove_success".ToUILocale()) : b.UIUtlity.ShowFloatingHint("chatWindow_change_success".ToUILocale()), this._selectChatWindowNode = null, this._selectChatWindowIndex = -1, this.DisPlay())
            }, t.prototype.RequestChangeMagicCircle = function() {
                var e = this,
                    t = new g.Req_Player_ChangeShowMagicCircle;
                t.Id = this._magicCircleConfigList[this._selectMagicCircleIndex].Id, T.RpcComponent.Instance.Call(t, function() {
                    b.UIUtlity.ShowFloatingHint("HolyEquipmentGallery_Equipment_Change_Success".ToUILocale()), e._selectMagicCircleNode = null, e._selectMagicCircleIndex = -1, e.DisPlay()
                }, null)
            }, t.prototype.RequestChangePet = function() {
                var e = this,
                    t = new g.Req_Player_ChangeShowPet;
                t.Id = this._petConfigList[this._selectPetIndex].Id, T.RpcComponent.Instance.Call(t, function() {
                    b.UIUtlity.ShowFloatingHint("HolyEquipmentGallery_Equipment_Change_Success".ToUILocale()), e._selectPetNode = null, e._selectPetIndex = -1, e.DisPlay()
                }, null)
            }, t.prototype.OnBtnFrameGetwayClick = function() {
                var e = this._headFrameConfigList[this._selectFrameIndex].Id;
                k.UIManager.Instance.ShowUIPanel(A.PanelConfig.ItemGetWayPanel.Path, e)
            }, t.prototype.OnBtnTitleGetwayClick = function() {
                var e;
                this._currFunctionType == c.Title ? e = this._headTitleConfigList[this._selectTitleIndex].Id : this._currFunctionType == c.ChatWindow ? e = this._chatWindowConfigList[this._selectChatWindowIndex].Id : this._currFunctionType == c.MagicCircle ? e = this._magicCircleConfigList[this._selectMagicCircleIndex].Id : this._currFunctionType == c.Pet && (e = this._petConfigList[this._selectPetIndex].Id, e = parseInt("10" + e)), k.UIManager.Instance.ShowUIPanel(A.PanelConfig.ItemGetWayPanel.Path, e)
            }, t.prototype.OnBtnAddationClick = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, c, u, p, d;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                for (this.TotalAddationNode.active = !0, this.BtnReset.active = !0, e = {}, d = 0; d < this._headTitleConfigList.length; d++)
                                    for (t = this._headTitleConfigList[d].Id, n = 0; n < this._headTitleConfigList[d].Attrs.length; n++) o = this._headTitleConfigList[d].Attrs[n].Items[0], r = this._headTitleConfigList[d].Attrs[n].Items[1], this.IsFrameOrTitleUnlock(100 * t + C.ConsumeItemType.Title) && O.default.Instance.AddAttr(e, o, r);
                                return this._addAttrPrefab ? [3, 2] : (i = this, [4, this.LoadDynamicAsset("CollectionPavilionPanel/Components/CollectionTotalAttrComponent", cc.Prefab)]);
                            case 1:
                                if (i._addAttrPrefab = s.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(this._addAttrPrefab), [2];
                                s.label = 2;
                            case 2:
                                for (l in a = 0, e)(c = this._addAttrComponentArray[a]) || ((u = cc.instantiate(this._addAttrPrefab)).parent = this.AttrContainer, c = u.getComponent(E.default), this._addAttrComponentArray[a] = c), c.node.active = !0, p = O.default.GetHeroAttribute(Number(l), e[l]), c.Init(p.Icon, p.Name, p.Value), a++;
                                if (a < this._addAttrComponentArray.length)
                                    for (d = a; d < this._addAttrComponentArray.length; d++) this._addAttrComponentArray[d].node.active = !1;
                                return this.AddationEmptyState.node.active = a <= 0, [2]
                        }
                    })
                })
            }, t.prototype.HideAddation = function() {
                this.TotalAddationNode.active = !1, this.BtnReset.active = !1
            }, t.prototype.GetChatWindowOpenState = function() {
                return !(!O.default.Instance.IsGameModuleUnlock(C.GameModuleType.ChatWindowShow)[0] || !O.default.Instance.IsGameModuleOpen(C.GameModuleType.ChatWindowShow))
            }, t.prototype.GetMagicCircleOpenState = function() {
                return !!(O.default.Instance.IsGameModuleUnlock(C.GameModuleType.SettingMagicCircleAndPet)[0] && O.default.Instance.IsGameModuleOpen(C.GameModuleType.SettingMagicCircleAndPet) && O.default.Instance.IsGameModuleUnlock(C.GameModuleType.MagicCircle)[0] && O.default.Instance.IsGameModuleOpen(C.GameModuleType.MagicCircle))
            }, t.prototype.GetPetOpenState = function() {
                return !!(O.default.Instance.IsGameModuleUnlock(C.GameModuleType.SettingMagicCircleAndPet)[0] && O.default.Instance.IsGameModuleOpen(C.GameModuleType.SettingMagicCircleAndPet) && O.default.Instance.IsGameModuleUnlock(C.GameModuleType.Pet)[0] && O.default.Instance.IsGameModuleOpen(C.GameModuleType.Pet))
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, t.Cache_Key_Prefeix_HeadIcon = "HeadIcon", t.Cache_Key_Prefeix_HeadFrame = "HeadFrame", t.Cache_Key_Prefeix_HeadTitle = "HeadTitle", t.Cache_Key_Prefeix_ChatWindow = "ChatWindow", t.Cache_Key_Prefeix_MagicCircle = "MagicCircle", t.Cache_Key_Prefeix_Pet = "Pet", i([W(cc.Label)], t.prototype, "Title", void 0), i([W(cc.Node)], t.prototype, "TopNode", void 0), i([W(cc.Node)], t.prototype, "TopNode2", void 0), i([W(cc.Label)], t.prototype, "PreviewTag", void 0), i([W(cc.Label)], t.prototype, "UseHeadIconBtnLabel", void 0), i([W(cc.Label)], t.prototype, "UseFrameBtnLabel", void 0), i([W(cc.Label)], t.prototype, "UseTitleBtnLabel", void 0), i([W(cc.Label)], t.prototype, "UseHeadIconDisableBtnLabel", void 0), i([W(cc.Label)], t.prototype, "UseFrameDisableBtnLabel", void 0), i([W(cc.Label)], t.prototype, "UseTitleDisableBtnLabel", void 0), i([W(cc.Label)], t.prototype, "FrameGetwayBtnLabel", void 0), i([W(cc.Label)], t.prototype, "TitleGetwayBtnLabel", void 0), i([W(cc.Label)], t.prototype, "AddationBtnLabel", void 0), i([W(cc.Label)], t.prototype, "UseBtnLabel", void 0), i([W(cc.Label)], t.prototype, "UseGrayBtnLabel", void 0), i([W(cc.Node)], t.prototype, "LineNode", void 0), i([W(cc.Node)], t.prototype, "HeadBgNode", void 0), i([W(cc.Node)], t.prototype, "HeadRoot", void 0), i([W(cc.Sprite)], t.prototype, "ChatWindowSprite", void 0), i([W(v.default)], t.prototype, "FunctionToggle", void 0), i([W(cc.Label)], t.prototype, "NameLabel", void 0), i([W(cc.Label)], t.prototype, "DescLabel", void 0), i([W(cc.Node)], t.prototype, "AttrNodeParent", void 0), i([W(cc.Node)], t.prototype, "AttrNodes", void 0), i([W(cc.Node)], t.prototype, "DurationNode", void 0), i([W(cc.Label)], t.prototype, "DurationLabel", void 0), i([W(cc.ScrollView)], t.prototype, "HeadIconScroll", void 0), i([W(cc.ScrollView)], t.prototype, "HeadTitleScroll", void 0), i([W(cc.ScrollView)], t.prototype, "HeadFrameScroll", void 0), i([W(cc.ScrollView)], t.prototype, "ChatWindowScroll", void 0), i([W(cc.Node)], t.prototype, "MagicCircleListNode", void 0), i([W(cc.Node)], t.prototype, "PetListNode", void 0), i([W(f.default)], t.prototype, "HeadIconGrid", void 0), i([W(f.default)], t.prototype, "HeadTitleGrid", void 0), i([W(f.default)], t.prototype, "HeadFrameGrid", void 0), i([W(f.default)], t.prototype, "ChatWindowGrid", void 0), i([W(f.default)], t.prototype, "MagicCircleGrid", void 0), i([W(f.default)], t.prototype, "PetGrid", void 0), i([W(cc.Button)], t.prototype, "BtnUseHeadIcon", void 0), i([W(cc.Button)], t.prototype, "BtnUseHeadIconDisable", void 0), i([W(cc.Button)], t.prototype, "BtnUseHeadFrame", void 0), i([W(cc.Button)], t.prototype, "BtnUseHeadFrameDisable", void 0), i([W(cc.Button)], t.prototype, "BtnHeadFrameGetway", void 0), i([W(cc.Button)], t.prototype, "BtnUseTitle", void 0), i([W(cc.Button)], t.prototype, "BtnUseTitleDisable", void 0), i([W(cc.Button)], t.prototype, "BtnHeadTitleGetway", void 0), i([W(cc.Button)], t.prototype, "RemoveTitleButton", void 0), i([W(cc.Label)], t.prototype, "RemoveTitleLabel", void 0), i([W(cc.Button)], t.prototype, "BtnTotalAddation", void 0), i([W(cc.Node)], t.prototype, "TotalAddationNode", void 0), i([W(cc.Label)], t.prototype, "AddationEmptyState", void 0), i([W(cc.Node)], t.prototype, "BtnReset", void 0), i([W(cc.Button)], t.prototype, "UseBtn", void 0), i([W(cc.Button)], t.prototype, "UseGrayBtn", void 0), i([W(cc.Node)], t.prototype, "AttrContainer", void 0), i([W(B.default)], t.prototype, "HeroElementGroup", void 0), i([W(cc.Node)], t.prototype, "MainNode", void 0), i([W(cc.Node)], t.prototype, "HintNode", void 0), i([W(cc.Node)], t.prototype, "MagicCircleBottomNode", void 0), i([W(cc.Node)], t.prototype, "AvatarRoot", void 0), i([W(cc.Node)], t.prototype, "MagicCircleTopNode", void 0), i([W(cc.Node)], t.prototype, "PetNode", void 0), i([W(cc.Label)], t.prototype, "TopNode2Name", void 0), i([W(cc.Label)], t.prototype, "TopNode2Desc", void 0), i([W(cc.Label)], t.prototype, "TopNode2Duration", void 0), i([W(x.default)], t.prototype, "LoadAssetHelper", void 0), n = i([j], t)
        }(d.BaseUIPanel);
        n.default = z, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ChatWindowItem": "ChatWindowItem",
        "../Components/CollectionTotalAttrComponent": "CollectionTotalAttrComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/HeadIconFrameItem": "HeadIconFrameItem",
        "../Components/HeadIconSelectItem": "HeadIconSelectItem",
        "../Components/HeadTitleSelectItem": "HeadTitleSelectItem",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/MagicCircleSelectItem": "MagicCircleSelectItem",
        "../Components/PetSelectItem": "PetSelectItem"
    }],
    HeadTitleSelectItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3da92UarWVJirltyRUL0vUC", "HeadTitleSelectItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/ConfigData/ConfigDataComponent"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Components/GlobalConfigComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleIcon = null, t.AttrNodeParent = null, t.AttrNodes = [], t.DescLabel = null, t.SelectBg = null, t.UsedFlag = null, t.UsedLabel = null, t.Mask = null, t.RedDot = null, t.TitleEffect = null, t._loadedAssets = [], t._titleConfig = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
                }, t.prototype.SetUI = function(e) {
                    this._headTitleId = e, this._isInit || (this.LoadConfig(), this.UsedLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale(), this._isInit = !0), this.SetTitleIcon(), this.SetTitleEffect(), this.SetDescLabel(), this.SetAttrInfo()
                }, t.prototype.OnTouchNode = function() {
                    l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_ITEM_CLICK, Number.parseInt(this.node.name), this.node)
                }, t.prototype.LoadConfig = function() {
                    this._titleConfig = u.ConfigDataComponent.Instance.GetConfigById(c.Title_Config, this._headTitleId)
                }, t.prototype.SetTitleIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, l.AssetsManager.Instance.LoadAsset(h.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + this._headTitleId), cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._loadedAssets.push(e), this.TitleIcon.spriteFrame = e, this.TitleIcon.node.active = !0, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetTitleEffect = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return (e = u.ConfigDataComponent.Instance.GetConfigById(c.Title_Config, this._headTitleId)).Effect ? [4, l.AssetsManager.Instance.LoadAsset("UserInfo/Spine/" + e.Effect, sp.SkeletonData)] : [3, 2];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._loadedAssets.push(t), this.TitleEffect.skeletonData = t, this.TitleEffect.node.active = !0, this.TitleEffect.setAnimation(0, "Ani_" + e.Effect, !0), [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    this.TitleEffect.node.active = !1, n.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetUsedFlag = function(e) {
                    this.UsedFlag.active = e
                }, t.prototype.SetSelect = function(e) {
                    this.SelectBg.active = e
                }, t.prototype.SetMask = function(e) {
                    this.Mask.active = e
                }, t.prototype.SetAttrInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return (e = u.ConfigDataComponent.Instance.GetConfigById(c.Title_Config, this._headTitleId)) ? (this.AttrNodeParent.active = e.Attrs.length > 0, this.AttrNodes.forEach(function(t, n) {
                                if (t.active = !1, e.Attrs[n]) {
                                    t.active = !0;
                                    var o = t.getChildByName("Icon").getComponent(cc.Sprite),
                                        r = t.getChildByName("Tag").getComponent(cc.Label),
                                        i = t.getChildByName("Value2").getComponent(cc.Label),
                                        a = e.Attrs[n].Items[0],
                                        s = e.Attrs[n].Items[1],
                                        l = p.default.GetHeroAttribute(a, s);
                                    l && (o.spriteFrame = l.Icon, r.string = l.Name, i.string = "+" + l.Value)
                                }
                            })) : this.AttrNodeParent.active = !1, [2]
                        })
                    })
                }, t.prototype.SetDescLabel = function() {
                    this.DescLabel.string = this._headTitleId.ToItemDesc()
                }, t.prototype.SetRedDot = function(e) {
                    this.RedDot.active = e
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([g(cc.Sprite)], t.prototype, "TitleIcon", void 0), i([g(cc.Node)], t.prototype, "AttrNodeParent", void 0), i([g(cc.Node)], t.prototype, "AttrNodes", void 0), i([g(cc.Label)], t.prototype, "DescLabel", void 0), i([g(cc.Node)], t.prototype, "SelectBg", void 0), i([g(cc.Node)], t.prototype, "UsedFlag", void 0), i([g(cc.Label)], t.prototype, "UsedLabel", void 0), i([g(cc.Node)], t.prototype, "Mask", void 0), i([g(cc.Node)], t.prototype, "RedDot", void 0), i([g(sp.Skeleton)], t.prototype, "TitleEffect", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent"
    }],
    Helloworld: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e1b90/rohdEk4SdmmEZANaD", "Helloworld");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.label = null, t.text = "hello", t.sequentText = "world", t
                }
                return r(t, e), t.prototype.start = function() {
                    this.label.string = this.text + " " + this.sequentText
                }, i([l(cc.Label)], t.prototype, "label", void 0), i([l], t.prototype, "text", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    HeroAttrTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e062d+AnRlOJrE69KYYE0Xk", "HeroAttrTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../Components/TipsLocationComponent"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.Attribute = 0] = "Attribute", e[e.Skill = 1] = "Skill"
        })(l || (l = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.PopUp, !1), t.Mask = null, t.TipsLocationComponent = null, t.TipNode = null, t.AttrIcon = null, t.AttrName = null, t.AttrDesc = null, t
            }
            return r(t, e), t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Mask.on(cc.Node.EventType.TOUCH_END, this.OnClose, this), this.Mask._touchListener.setSwallowTouches(!1)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._attrId = t[0], this._clickNode = t[1], t[2] ? this._showType = t[2] : this._showType = l.Attribute
            }, t.prototype.DisPlay = function() {
                var t = this;
                switch (e.prototype.DisPlay.call(this), this._showType) {
                    case l.Attribute:
                        this.AttrIcon.spriteFrame = u.default.GetHeroAttributeIcon(this._attrId), 0 == this._attrId || 1 == this._attrId ? this.AttrName.string = ("hero_tips_attr_" + this._attrId).ToUILocale() : this.AttrName.string = u.default.GetHeroAttributeName(this._attrId), this.AttrDesc.string = this._attrId.ToHeroTips();
                        break;
                    case l.Skill:
                        var n = this._attrId;
                        this.SetSkillIcon(n), this.AttrName.string = n.ToHeroSkillName(), this.AttrDesc.string = n.ToHeroSkillDesc()
                }
                this.TipNode.opacity = 0, setTimeout(function() {
                    t.isValid && (t.TipsLocationComponent.RepositionPanel(t._clickNode), t.TipNode.opacity = 255)
                }, 1e3 * cc.director.getDeltaTime())
            }, t.prototype.SetSkillIcon = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return t = u.default.GetSkillIconId(e), [4, this.LoadDynamicAsset(d.BundlePath.SkillIcon + "/" + t, cc.SpriteFrame)];
                            case 1:
                                return n = o.sent(), this.isValid ? (this.AttrIcon.spriteFrame = n, [2]) : (c.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.OnClose = function() {
                this.Close()
            }, i([y(cc.Node)], t.prototype, "Mask", void 0), i([y(p.default)], t.prototype, "TipsLocationComponent", void 0), i([y(cc.Node)], t.prototype, "TipNode", void 0), i([y(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([y(cc.Label)], t.prototype, "AttrName", void 0), i([y(cc.Label)], t.prototype, "AttrDesc", void 0), i([f], t)
        }(c.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/TipsLocationComponent": "TipsLocationComponent"
    }],
    HeroAttributeItem2: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4b8e5Uy9OhCQoHxQz0odCht", "HeroAttributeItem2");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Name = null, t.CurValue = null, t.AddValue = null, t.LevelUpNode = null, t.MaxValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    var t, n;
                    if (this.MaxValue.node.active = e.IsMaxLevel, this.LevelUpNode.active = !e.IsMaxLevel, e.IsMaxLevel) {
                        var o = a.default.GetHeroAttribute(e.AttrId, e.MaxValue);
                        t = o.Icon, n = o.Name, this.MaxValue.string = "+" + o.Value
                    } else {
                        var r = a.default.GetHeroAttribute(e.AttrId, e.CurValue),
                            i = a.default.GetHeroAttribute(e.AttrId, e.AddValue);
                        this.CurValue.string = "+" + r.Value, this.AddValue.string = "+" + i.Value, t = r.Icon, n = r.Name
                    }
                    this.Icon.spriteFrame = t, e.PreTag ? this.Name.string = e.PreTag + n : this.Name.string = n
                }, i([c(cc.Sprite)], t.prototype, "Icon", void 0), i([c(cc.Label)], t.prototype, "Name", void 0), i([c(cc.Label)], t.prototype, "CurValue", void 0), i([c(cc.Label)], t.prototype, "AddValue", void 0), i([c(cc.Node)], t.prototype, "LevelUpNode", void 0), i([c(cc.Label)], t.prototype, "MaxValue", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    HeroAttributeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "08810Sv5m5AhaTMHnprhs9T", "HeroAttributeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Tag = null, t.Value = null, t.CurValue = null, t
                }
                return r(t, e), t.prototype.start = function() {}, t.prototype.Init = function(e, t, n) {
                    void 0 === t && (t = 0), void 0 === n && (n = !1), n ? this.RenderAddAttrItem(e, t) : this.RenderAttrItem(e, t)
                }, t.prototype.RenderAttrItem = function(e, t) {
                    var n = a.default.GetHeroAttribute(e, t);
                    this.Icon.spriteFrame = n.Icon, this.Tag.string = n.Name, this.Value.string = a.default.GetAttrText(e, t), this.Value.node.active = !0, this.CurValue && (this.CurValue.node.active = !1)
                }, t.prototype.RenderAddAttrItem = function(e, t) {
                    var n = a.default.GetHeroAttribute(e, t);
                    this.Icon.spriteFrame = n.Icon, this.Tag.string = n.Name, this.Value.string = a.default.GetAttrText(e, t), this.Value.node.active = !0, this.CurValue && (this.CurValue.node.active = !1)
                }, t.prototype.SetTagName = function(e) {
                    this.Tag.string = e + this.Tag.string
                }, t.prototype.InitDoubleValue = function(e) {
                    var t = a.default.GetHeroAttribute(e.AttrId, e.CurValue);
                    this.Icon.spriteFrame = t.Icon, this.Tag.string = t.Name, this.CurValue && (this.CurValue.string = a.default.GetAttrText(e.AttrId, e.CurValue), this.CurValue.node.active = !0, null != e.AnchorXCurValue && (this.CurValue.node.anchorX = e.AnchorXCurValue), null != e.CurValueX && (this.CurValue.node.x = e.CurValueX)), null == e.AddValue ? this.Value.node.active = !1 : (this.Value.node.active = !0, this.Value.string = a.default.GetAttrText(e.AttrId, e.AddValue), null != e.AnchorXAddValue && (this.Value.node.anchorX = e.AnchorXAddValue), null != e.AddValueX && (this.Value.node.x = e.AddValueX))
                }, t.prototype.SetValueLabelColor = function(e) {
                    this.Value.node.color = e
                }, t.prototype.SetValueLabelOutlineColor = function(e) {
                    this.Value.node.getComponent(cc.LabelOutline).color = e
                }, i([c(cc.Sprite)], t.prototype, "Icon", void 0), i([c(cc.Label)], t.prototype, "Tag", void 0), i([c(cc.Label)], t.prototype, "Value", void 0), i([c(cc.Label)], t.prototype, "CurValue", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    HeroAttributePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "de66ffk+nFE8obyqGJz4Ulk", "HeroAttributePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../Consts/Consts"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.BaseAttrTitle = null, t.BaseAttrsContainer = null, t.SpecialAttrTitle = null, t.SpecialAttrsContainer = null, t.ExtraAttrTitleNode = null, t.ExtraAttrTitle = null, t.ExtraAttrsContainer = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HeroInfoPanel/Components/HeroAttributeComponent", cc.Prefab)];
                                case 1:
                                    return t._attrItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    for (var e = this.BaseAttrsContainer.childrenCount, t = 0; t < e; t++) this.BaseAttrsContainer.children[t].on(cc.Node.EventType.TOUCH_END, this.OnChildClick, this);
                    for (e = this.SpecialAttrsContainer.childrenCount, t = 0; t < e; t++) this.SpecialAttrsContainer.children[t].on(cc.Node.EventType.TOUCH_END, this.OnChildClick, this)
                }, t.prototype.onDisable = function() {
                    for (var e = this.BaseAttrsContainer.childrenCount, t = 0; t < e; t++) this.BaseAttrsContainer.children[t].off(cc.Node.EventType.TOUCH_END, this.OnChildClick, this);
                    for (e = this.SpecialAttrsContainer.childrenCount, t = 0; t < e; t++) this.SpecialAttrsContainer.children[t].off(cc.Node.EventType.TOUCH_END, this.OnChildClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "hero_attr_title".ToUILocale(), this.BaseAttrTitle.string = "hero_attr_base".ToUILocale(), this.SpecialAttrTitle.string = "hero_attr_special".ToUILocale(), this.ExtraAttrTitle.string = "hero_attr_extra".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    n instanceof c.UserHero_Model ? (this._selectHero = n, this._heroId = this._selectHero.HeroId, this._heroAttrs = this._selectHero.Attrs) : (this._selectHero = void 0, this._heroId = n.HeroId, this._heroAttrs = u.ConfigCacheComponent.Instance.GetHandbookHeroAttr(this._heroId, n.StarLevel)), t.length > 1 ? this._hideFunctionJump = t[1] : this._hideFunctionJump = !1, this._heroConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._heroId)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigBaseAttr(), this.ConfigSpecialAttr(t), this.ConfigExtraAttr()
                }, t.prototype.ConfigBaseAttr = function() {
                    for (var e = this.BaseAttrsContainer.childrenCount, t = 0; t < e; t++) {
                        var n = this.BaseAttrsContainer.children[t];
                        this.RenderAttrItem(n)
                    }
                }, t.prototype.ConfigSpecialAttr = function(e) {
                    var t = this;
                    e || u.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, d.LevelParamType.HeroDetailAttrShowIds).Data.forEach(function(e) {
                        if (u.ConfigDataComponent.Instance.GetConfigById(p.HeroAttribute_Config, e)) {
                            var n = cc.instantiate(t._attrItemPrefab);
                            n.setParent(t.SpecialAttrsContainer), n.name = e.toString(), n.on(cc.Node.EventType.TOUCH_END, t.OnChildClick, t), t.RenderAttrItem(n, !0)
                        }
                    })
                }, t.prototype.OnChildClick = function(e) {
                    var t = e.target,
                        n = Number.parseInt(t.name);
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroAttrTipsPanel.Path, n, t)
                }, t.prototype.RenderAttrItem = function(e, t) {
                    void 0 === t && (t = !1);
                    var n = Number.parseInt(e.name),
                        o = this._heroAttrs[e.name];
                    o || (o = 0), [62, 64, 66, 68, 70, 74].includes(n) ? o += this._heroAttrs[72] || 0 : [63, 65, 67, 69, 71, 75].includes(n) && (o += this._heroAttrs[73] || 0);
                    var r = h.default.GetHeroAttribute(n, o);
                    cc.find("Icon", e).getComponent(cc.Sprite).spriteFrame = r.Icon, (t ? cc.find("CommonLongLabelRollComponent/Tag", e).getComponent(cc.Label) : cc.find("Tag", e).getComponent(cc.Label)).string = 0 == n || 1 == n ? ("hero_tips_attr_" + n).ToUILocale() : r.Name, cc.find("Value", e).getComponent(cc.Label).string = "" + r.Value
                }, t.prototype.ConfigExtraAttr = function() {
                    if (!this._selectHero || this._hideFunctionJump) return this.ExtraAttrTitleNode.active = !1, void(this.ExtraAttrsContainer.active = !1);
                    this.ExtraAttrTitleNode.active = !0, this.ExtraAttrsContainer.active = !0;
                    for (var e = this.ExtraAttrsContainer.childrenCount, t = 0; t < e; t++) {
                        var n = this.ExtraAttrsContainer.children[t];
                        switch (t) {
                            case 0:
                                this.ConfigAllianceTalentAttrLevel(n);
                                break;
                            case 1:
                                this.ConfigAlliancElementLevel(n);
                                break;
                            case 2:
                                this.ConfigStarHolyStatue(n);
                                break;
                            case 3:
                                this.ConfigStarPower(n)
                        }
                    }
                }, t.prototype.ConfigAllianceTalentAttrLevel = function(e) {
                    cc.find("Tag", e).getComponent(cc.Label).string = "hero_attr_extra_1".ToUILocale(), cc.find("Value", e).getComponent(cc.Label).string = "Lv." + h.default.Instance.GetAllianceTalentLevel(d.HeroElementType.All);
                    var t = cc.find("Jump", e);
                    this._hideFunctionJump ? t.active = !1 : (t.active = !0, t.on("click", this.OnJumpToAllianceTalent, this))
                }, t.prototype.OnJumpToAllianceTalent = function() {
                    h.default.Instance.ToAllianceTalent()
                }, t.prototype.ConfigAlliancElementLevel = function(e) {
                    if (this._heroConfig.ElementType != f.HeroElementType.Chaos) {
                        e.active = !0, cc.find("Tag", e).getComponent(cc.Label).string = "hero_attr_extra_2".ToUILocale().Fmt(("hero_element_" + this._heroConfig.ElementType).ToUILocale()), cc.find("Value", e).getComponent(cc.Label).string = "Lv." + h.default.Instance.GetAllianceTalentLevel(this._heroConfig.ElementType);
                        var t = cc.find("Jump", e);
                        this._hideFunctionJump ? t.active = !1 : (t.active = !0, t.on("click", this.OnJumpToAllianceElement, this))
                    } else e.active = !1
                }, t.prototype.OnJumpToAllianceElement = function() {
                    h.default.Instance.ToAllianceTalent()
                }, t.prototype.ConfigStarHolyStatue = function(e) {
                    cc.find("Tag", e).getComponent(cc.Label).string = "hero_attr_extra_3".ToUILocale(), cc.find("Value", e).getComponent(cc.Label).string = "Lv." + h.default.Instance.GetStarHolyStateLevel();
                    var t = cc.find("Jump", e);
                    this._hideFunctionJump ? t.active = !1 : (t.active = !0, t.on("click", this.OnJumpToStarHolyStatue, this))
                }, t.prototype.OnJumpToStarHolyStatue = function() {
                    h.default.Instance.ToStarHolyStatue()
                }, t.prototype.ConfigStarPower = function(e) {
                    if (this._heroConfig.ElementType != f.HeroElementType.Chaos) {
                        e.active = !0, cc.find("Tag", e).getComponent(cc.Label).string = "hero_attr_extra_4".ToUILocale().Fmt(("hero_element_" + this._heroConfig.ElementType).ToUILocale()), cc.find("Value", e).getComponent(cc.Label).string = "Lv." + h.default.Instance.GetStarPowerLevel(this._heroConfig.ElementType);
                        var t = cc.find("Jump", e);
                        this._hideFunctionJump ? t.active = !1 : (t.active = !0, t.on("click", this.OnJumpToStarPower, this))
                    } else e.active = !1
                }, t.prototype.OnJumpToStarPower = function() {
                    h.default.Instance.ToStarPower(this._heroConfig.ElementType)
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Label)], t.prototype, "BaseAttrTitle", void 0), i([I(cc.Node)], t.prototype, "BaseAttrsContainer", void 0), i([I(cc.Label)], t.prototype, "SpecialAttrTitle", void 0), i([I(cc.Node)], t.prototype, "SpecialAttrsContainer", void 0), i([I(cc.Node)], t.prototype, "ExtraAttrTitleNode", void 0), i([I(cc.Label)], t.prototype, "ExtraAttrTitle", void 0), i([I(cc.Node)], t.prototype, "ExtraAttrsContainer", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine"
    }],
    HeroBeStrongListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "31591Nw/P9JyJw1KzSAyzw6", "HeroBeStrongListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.EnhanceType = void 0;
        var l, c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/DataCenter"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../Panel/HeroInfoPanel"),
            C = e("../Panel/StarTemplePanel"),
            v = e("./CustomProgressBar"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.HeroLevel = 1] = "HeroLevel", e[e.HeroStar = 2] = "HeroStar", e[e.HeroEquip = 3] = "HeroEquip", e[e.LuckyCharm = 4] = "LuckyCharm", e[e.Favorability = 5] = "Favorability", e[e.FavorabilityRoad = 6] = "FavorabilityRoad", e[e.StarHolyStatute = 7] = "StarHolyStatute", e[e.StarPower = 8] = "StarPower", e[e.StarPiece = 9] = "StarPiece", e[e.AllianceTalent = 10] = "AllianceTalent", e[e.Personality = 11] = "Personality", e[e.Gem = 12] = "Gem", e[e.HeroSkin = 13] = "HeroSkin", e[e.Tactical = 14] = "Tactical", e[e.PowerCore = 15] = "PowerCore"
        })(l = n.EnhanceType || (n.EnhanceType = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ListItemName = null, t.ListItemDesc = null, t.ViewTypeIcon = null, t.ScoreProgress = null, t.ScoreLabel = null, t.BtnGo = null, t.GoBtnLabel = null, t
            }
            var n;
            return r(t, e), n = t, t.prototype.SetUI = function(e, t, n) {
                void 0 === n && (n = 0), this._enhanceConfig = e, this._heroSid = t, this._maxScore = n, this.SetStaticLocalText(), this.SetClickEvent(), this.SetBaseUI(), this.SetProgressUI()
            }, t.prototype.SetStaticLocalText = function() {
                this.GoBtnLabel.string = "task_goto".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnGo.node.on("click", this.OnBtnGoClick, this)
            }, t.prototype.SetBaseUI = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.ListItemName.string = this._enhanceConfig.Id.ToHeroEnhanceName(), this.ListItemDesc.string = this._enhanceConfig.Id.ToHeroEnhanceDesc(), this.ListItemDesc.string && "" != this.ListItemDesc.string || (this.ListItemDesc.node.parent.active = !1), null != this._iconAtlas ? [3, 2] : (e = this, [4, p.AssetsManager.Instance.LoadAsset(n.AtlasPath, cc.SpriteAtlas)]);
                            case 1:
                                if (e._iconAtlas = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._iconAtlas), [2];
                                t.label = 2;
                            case 2:
                                return this.ViewTypeIcon.spriteFrame = this._iconAtlas.getSpriteFrame(this._enhanceConfig.Id.toString()), [2]
                        }
                    })
                })
            }, t.prototype.SetProgressUI = function() {
                var e = y.DataCenter.Instance.GetDataById(g.UserHero_Model, this._heroSid).Attrs[this._enhanceConfig.Id - 1 + 80];
                null == e && (e = 0);
                var t = Math.max(e, this._maxScore);
                this.ScoreLabel.string = e + "/" + t, this.ScoreProgress.progress = t <= 0 ? 0 : e / t
            }, t.prototype.OnBtnGoClick = function() {
                switch (this._enhanceConfig.Id) {
                    case l.HeroLevel:
                        p.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroInfoPanel.Path, this._heroSid, void 0, _.Tab.Attr);
                        break;
                    case l.HeroStar:
                        var e = y.DataCenter.Instance.GetDataById(g.UserHero_Model, this._heroSid),
                            t = m.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, e.HeroId);
                        e.StarLevel >= t.MaxStarLevel ? h.UIUtlity.ShowFloatingHint("iWantStrong_cannot_upstar".ToUILocale()) : p.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroInfoPanel.Path, this._heroSid, void 0, _.Tab.UpStar);
                        break;
                    case l.HeroEquip:
                    case l.LuckyCharm:
                        p.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroInfoPanel.Path, this._heroSid, void 0, _.Tab.Equip);
                        break;
                    case l.Favorability:
                        var n = d.default.Instance.IsGameModuleUnlock(I.GameModuleType.Favor);
                        if (n[0]) {
                            var o = y.DataCenter.Instance.GetDataById(g.UserHero_Model, this._heroSid);
                            p.UIManager.Instance.ShowUIPanel(f.PanelConfig.FavorUpgradePanel.Path, o.HeroId)
                        } else h.UIUtlity.ShowFloatingHint(n[1]);
                        break;
                    case l.Personality:
                        d.default.Instance.IsGameModuleUnlock(I.GameModuleType.Personality)[0] && p.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroInfoPanel.Path, this._heroSid, void 0, _.Tab.Personality);
                        break;
                    case l.Gem:
                        p.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroInfoPanel.Path, this._heroSid, void 0, _.Tab.Gem);
                        break;
                    case l.HeroSkin:
                        if (d.default.Instance.IsGameModuleOpen(I.GameModuleType.HeroSkin)) {
                            var r = y.DataCenter.Instance.GetDataById(g.UserHero_Model, this._heroSid);
                            p.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroSkinPanel.Path, r.HeroId, 0, this._heroSid)
                        }
                        break;
                    case l.Tactical:
                        var i = d.default.Instance.IsGameModuleOpen(I.GameModuleType.StarEmbattle),
                            a = d.default.Instance.IsGameModuleUnlock(I.GameModuleType.StarEmbattle);
                        i && a[0] && p.UIManager.Instance.ShowUIPanel(f.PanelConfig.StarTemplePanel.Path, C.TempleMode.Tactical);
                        break;
                    case l.PowerCore:
                        p.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroInfoPanel.Path, this._heroSid, void 0, _.Tab.Equip);
                        break;
                    default:
                        d.default.ShowPanelByGetWayId(this._enhanceConfig.GetWayId)
                }
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                null != this._iconAtlas && u.AssetsManager.Instance.UnloadAsset(this._iconAtlas), this._iconAtlas = null
            }, t.AtlasPath = "IWantStrongPanel/Png/IWantStrong", i([w(cc.Label)], t.prototype, "ListItemName", void 0), i([w(cc.Label)], t.prototype, "ListItemDesc", void 0), i([w(cc.Sprite)], t.prototype, "ViewTypeIcon", void 0), i([w(v.default)], t.prototype, "ScoreProgress", void 0), i([w(cc.Label)], t.prototype, "ScoreLabel", void 0), i([w(cc.Button)], t.prototype, "BtnGo", void 0), i([w(cc.Label)], t.prototype, "GoBtnLabel", void 0), n = i([S], t)
        }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/HeroInfoPanel": "HeroInfoPanel",
        "../Panel/StarTemplePanel": "StarTemplePanel",
        "./CustomProgressBar": "CustomProgressBar"
    }],
    HeroBeStrongPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c078b5nJqJGi6h71yi0yp/d", "HeroBeStrongPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/DataCenter"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../ShareConsts/BattleConsts"),
            p = e("../Components/ItemComponent"),
            d = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/ItemClickComponent"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../../../Proto/Static/ConfigProto"),
            _ = e("../Components/HeroBeStrongListItem"),
            C = e("../../Components/ConfigData/ConfigDataComponent"),
            v = e("../../Components/RpcComponent"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../../Auxiliary/GuideManager"),
            w = e("../../../ShareConsts/EnumType"),
            P = e("../Components/CustomProgressBar"),
            A = e("../Auxiliary/UIUtlity"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroSelectBg = null, t.FormationGrid = null, t.HeroNameLabel = null, t.BeStrongListGrid = null, t.ScoreTag = null, t.ScoreProgress = null, t.ProgressLabel = null, t._commonItemPrefab = null, t._listItemPrefab = null, t._myAdventureFormation = null, t._itemArray = [], t._listItemArray = [], t._heroData = null, t._isInit = !1, t._isFormationChange = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    f.Game.EventDispatcher.On(y.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
                }, t.prototype.onDisable = function() {
                    f.Game.EventDispatcher.Off(y.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
                }, t.prototype.Display = function() {
                    this._isInit || (this.SetStaticLocalText(), this.LoadConfig(), this._isInit = !0), this.RequestGetMaxPowerHeros()
                }, t.prototype.SetStaticLocalText = function() {
                    this.ScoreTag.string = "iWantStrong_score".ToUILocale()
                }, t.prototype.LoadConfig = function() {
                    this._enhanceConfigList = C.ConfigDataComponent.Instance.GetArrayConfig(I.Enhance_Config), this._enhanceConfigList.sort(function(e, t) {
                        return e.SortId < t.SortId ? -1 : e.SortId > t.SortId ? 1 : 0
                    })
                }, t.prototype.SetFormationShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a, f, y;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : (e = this, [4, d.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._commonItemPrefab = s.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    if (t = [], null != this._myAdventureFormation)
                                        for (i = 0; i < this._myAdventureFormation.HeroIds.length; i++)(a = this._myAdventureFormation.HeroIds[i]) > 0 && t.push(a);
                                    for (this._myAdventureFormation = l.DataCenter.Instance.GetDataById(c.UserFormation_Model, u.FormationIdType.MainLine), o = [], i = 0; i < this._myAdventureFormation.HeroIds.length; i++)(a = this._myAdventureFormation.HeroIds[i]) > 0 && o.push(a);
                                    for (this.IsListEqual(t, o) || (this._isFormationChange = !0), r = n.MaxHeroCount, i = 0; i < r; i++) a = o[i], null == this._itemArray[i] && ((f = cc.instantiate(this._commonItemPrefab).getComponent(p.ItemComponent)).node.name = null != a ? a.toString() : "-1", f.node.removeComponent(g.default), f.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchHeroNode, this), f.node.parent = this.FormationGrid.node, this._itemArray[i] = f), null != a ? (y = l.DataCenter.Instance.GetDataById(c.UserHero_Model, a), this._itemArray[i].Init(y, p.ItemComponentType.HeroInfo), this._itemArray[i].node.active = !0) : (this._itemArray[i].SetHeroSimpleState(), this._itemArray[i].SetCustomIcon(A.UIUtlity.COMMON_ATLAS5.getSpriteFrame("heroSign"), 180, 180));
                                    return this.FormationGrid.updateLayout(), this.SetDefaultSelect(), this.ShowGuide(), [2]
                            }
                        })
                    })
                }, t.prototype.RequestGetMaxPowerHeros = function() {
                    this._myAdventureFormation = l.DataCenter.Instance.GetDataById(c.UserFormation_Model, u.FormationIdType.MainLine);
                    for (var e = [], t = 0; t < this._myAdventureFormation.HeroIds.length; t++) {
                        var n = this._myAdventureFormation.HeroIds[t];
                        if (n > 0) {
                            var o = l.DataCenter.Instance.GetDataById(c.UserHero_Model, n);
                            e.push(o.HeroId)
                        }
                    }
                    var r = new c.Req_Game_GetMaxScoreHeros;
                    r.HeroIds = e, v.RpcComponent.Instance.Call(r, this.ResponseGetMaxPowerHeros.bind(this))
                }, t.prototype.ResponseGetMaxPowerHeros = function(e) {
                    this.SetFormationShow(), this._heroScoreData = e.HeroScores
                }, t.prototype.IsListEqual = function(e, t) {
                    if (null != e && null == t) return !1;
                    if (null == e && null != t) return !1;
                    if (e.length != t.length) return !1;
                    for (var n = 0; n < e.length; n++)
                        if (e[n] != t[n]) return !1;
                    return !0
                }, t.prototype.SetDefaultSelect = function() {
                    if (this._myAdventureFormation = l.DataCenter.Instance.GetDataById(c.UserFormation_Model, u.FormationIdType.MainLine), null == this._selectHeroSid || this._isFormationChange) {
                        var e = Number.parseInt(this._itemArray[0].node.name),
                            t = this._itemArray[0].node;
                        this.OnHeroClick(e, t), this._isFormationChange = !1
                    }
                }, t.prototype.OnTouchHeroNode = function(e) {
                    var t = Number.parseInt(e.target.name),
                        n = e.target;
                    this.OnHeroClick(t, n)
                }, t.prototype.OnHeroClick = function(e, t) {
                    if (e > 0) {
                        this._selectHeroSid = e;
                        var n = t.getParent().convertToWorldSpaceAR(t.getPosition()),
                            o = this.HeroSelectBg.parent.convertToNodeSpaceAR(n);
                        this.HeroSelectBg.setPosition(o), this.HeroSelectBg.y += 18, this.LoadUserData(), this.RefreshOverallScoreUI(), this.SetListItemShow()
                    }
                }, t.prototype.LoadUserData = function() {
                    this._heroData = l.DataCenter.Instance.GetDataById(c.UserHero_Model, this._selectHeroSid)
                }, t.prototype.RefreshOverallScoreUI = function() {
                    this.HeroNameLabel.string = this._heroData.HeroId.ToHeroName();
                    for (var e = 0, t = 0; t < this._enhanceConfigList.length; t++) {
                        var n = this._enhanceConfigList[t].Id,
                            o = this._heroData.Attrs[n - 1 + 80];
                        null == o && (o = 0), e += o
                    }
                    var r = this._heroScoreData[this._heroData.HeroId].ScoreSum,
                        i = Math.max(e, r);
                    this.ProgressLabel.string = e + "/" + i, this.ScoreProgress.progress = i <= 0 ? 0 : e / i
                }, t.prototype.SetListItemShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return null != this._listItemPrefab ? [3, 2] : (e = this, [4, d.AssetsManager.Instance.LoadAsset(n.ListItemPath, cc.Prefab)]);
                                case 1:
                                    if (e._listItemPrefab = a.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), [2];
                                    a.label = 2;
                                case 2:
                                    for (o = 0; o < this._listItemArray.length; o++) this._listItemArray[o].node.active = !1;
                                    for (t = this._enhanceConfigList.length, o = 0; o < t; o++) {
                                        switch (null == this._listItemArray[o] && ((r = cc.instantiate(this._listItemPrefab).getComponent(_.default)).node.parent = this.BeStrongListGrid.node, this._listItemArray[o] = r), this._listItemArray[o].node.active = !0, i = 0, this._enhanceConfigList[o].Id) {
                                            case _.EnhanceType.HeroLevel:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreLevel;
                                                break;
                                            case _.EnhanceType.HeroStar:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreStar;
                                                break;
                                            case _.EnhanceType.HeroEquip:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreEquipment;
                                                break;
                                            case _.EnhanceType.LuckyCharm:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreLuckyCharm;
                                                break;
                                            case _.EnhanceType.Favorability:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreFavor;
                                                break;
                                            case _.EnhanceType.FavorabilityRoad:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreFavorRoad;
                                                break;
                                            case _.EnhanceType.StarHolyStatute:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreStarHolyStatue;
                                                break;
                                            case _.EnhanceType.StarPower:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreStarPower;
                                                break;
                                            case _.EnhanceType.StarPiece:
                                                b.default.Instance.IsGameModuleOpen(w.GameModuleType.StarPiece) ? i = this._heroScoreData[this._heroData.HeroId].ScoreStarPiece : this._listItemArray[o].node.active = !1;
                                                break;
                                            case _.EnhanceType.AllianceTalent:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreAllianceTalent;
                                                break;
                                            case _.EnhanceType.Personality:
                                                b.default.Instance.IsGameModuleOpen(w.GameModuleType.Personality) ? i = this._heroScoreData[this._heroData.HeroId].ScorePersonality : this._listItemArray[o].node.active = !1;
                                                break;
                                            case _.EnhanceType.AllianceTalent:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreAllianceTalent;
                                                break;
                                            case _.EnhanceType.Gem:
                                                i = this._heroScoreData[this._heroData.HeroId].ScoreGem;
                                                break;
                                            case _.EnhanceType.PowerCore:
                                                i = this._heroScoreData[this._heroData.HeroId].ScorePowerCore
                                        }
                                        m.EZLog.Log("\u6700\u9ad8\u8bc4\u5206---\x3e" + i), this._listItemArray[o].SetUI(this._enhanceConfigList[o], this._selectHeroSid, i)
                                    }
                                    return this.ShowGuide(), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._commonItemPrefab && f.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), null != this._listItemPrefab && f.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), this._commonItemPrefab = null, this._listItemPrefab = null
                }, t.prototype.ShowGuide = function() {
                    S.default.Instance.IsInGuide
                }, t.MaxHeroCount = 5, t.ListItemPath = "IWantStrongPanel/Private/BeStrongListItem", i([L(cc.Node)], t.prototype, "HeroSelectBg", void 0), i([L(cc.Layout)], t.prototype, "FormationGrid", void 0), i([L(cc.Label)], t.prototype, "HeroNameLabel", void 0), i([L(cc.Layout)], t.prototype, "BeStrongListGrid", void 0), i([L(cc.Label)], t.prototype, "ScoreTag", void 0), i([L(P.default)], t.prototype, "ScoreProgress", void 0), i([L(cc.Label)], t.prototype, "ProgressLabel", void 0), n = i([R], t)
            }(cc.Component);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/HeroBeStrongListItem": "HeroBeStrongListItem",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "58f03IS+RNB5ZbU7BVK/LhK", "HeroCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./LevelComponent"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../ShareConsts/BattleConsts"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Icon = null, t.Border = null, t.ElementIcon = null, t.PersonalityBg = null, t.PersonalityLabel = null, t.TeamFlag = null, t.HeroLevel = null, t.LevelComponent = null, t.RedDot = null, t.IconSpine = null, t.SPBorder = null, t.SPElementBg = null, t.HeroProfessionIcon = null, t.SelectBg = null, t.DarkNode = null, t.HintNode = null, t.HintLabel = null, t.QualityIcon = null, t._starLevel = 0, t._level = 0, t._loadedAssets = [], t._personalityStarLevel = 0, t._canCheckVisible = !0, t._borderSpineMap = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    m.Game.EventDispatcher.On(I.EventKeys.EVENT_HERO_HANDBOOK_SCROLLVIEW, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    m.Game.EventDispatcher.Off(I.EventKeys.EVENT_HERO_HANDBOOK_SCROLLVIEW, this.CheckVisible, this)
                }, t.prototype.Init = function(e, t) {
                    void 0 === t && (t = 0), this.HideAllNode(), this._heroData = null, this._itemId = 0, this._starLevel = 0, this._level = 0, this._personalityStarLevel = t, e instanceof c.UserHero_Model ? (this._heroData = e, this._itemId = e.HeroId, this._starLevel = e.StarLevel, e.TemplePosition > 0 ? (this._level = e.TempleLevel, this.HeroLevel.node.color = d.UIUtlity.Herolevel_Label_Color_StarResonance) : (this._level = e.Level, this.HeroLevel.node.color = cc.Color.WHITE)) : (this._itemId = e.ItemId, this._starLevel = e.StarLevel, this._isSummon = e.IsSummon), this.ConfigHeroInfo()
                }, t.prototype.HideAllNode = function() {
                    this.node.children.forEach(function(e) {
                        e.active = !1
                    }), this.Bg.node.active = !0, this.Border.node.active = !0
                }, t.prototype.ConfigHeroInfo = function() {
                    this._heroConfig = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._itemId), this.SetHeroBorderAndBg(), this.SetIcon(), this.SetHeroElementIcon(this._heroConfig.ElementType), this.SetHeroQualityIcon(), this.SetSPHero(), this.SetStarLevel(), this.SetLevel(), this.SetPersonality(), this.SetHeroProfession()
                }, t.prototype.SetPersonality = function() {
                    var e = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("PersonalityStarLevelLimit"),
                        t = _.default.Instance.IsGameModuleOpen(g.GameModuleType.Personality),
                        n = _.default.Instance.IsGameModuleUnlock(g.GameModuleType.Personality)[0];
                    this._heroData && this._personalityStarLevel >= 0 && t && n ? (this.PersonalityBg.active = this._heroConfig.StarLevel >= e, this.PersonalityLabel.node.active = this.PersonalityBg.active, this._heroConfig.StarLevel >= e && (this.PersonalityLabel.string = this._personalityStarLevel.toString())) : (this.PersonalityBg.active = !1, this.PersonalityLabel.node.active = !1)
                }, t.prototype.SetHeroBorderAndBg = function() {
                    var e, t, n = this._starLevel;
                    n = n > d.UIUtlity.Max_Quality_Level ? d.UIUtlity.Max_Quality_Level : n, d.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero] ? (e = d.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero].CardBorder || "card_border_" + n, t = d.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero].CardBg || "card_bg_" + n, this.SetSpine()) : this._heroConfig.ElementType == g.HeroElementType.Chaos || this._heroConfig.CoreHero == g.CoreHeroTag.SP ? (e = "card_border_7", t = "card_bg_7", this.SetChaosSpine()) : (e = "card_border_" + n, t = "card_bg_" + n, this.HindeChaosSpine());
                    var o = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(e),
                        r = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(t);
                    this.Border.spriteFrame = o, this.Bg.spriteFrame = r
                }, t.prototype.SetChaosSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.IconSpine.node.active = !0, this._iconSpine ? [3, 2] : [4, m.AssetsManager.Instance.LoadAsset("ItemsComponent/Spine/ChaosSpine/UI_Effect_hundun_liuguang", sp.SkeletonData)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._iconSpine = e, this._loadedAssets.push(e), t.label = 2;
                                case 2:
                                    return this.IconSpine.skeletonData = this._iconSpine, this.isValid ? this._heroConfig.ElementType != g.HeroElementType.Chaos ? (this.HindeChaosSpine(), [2]) : (this.IconSpine.setAnimation(0, "Ani_UI_Effect_hundun_liuguang", !0), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.SetSpine = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.HindeChaosSpine(), this._heroConfig.ElementType == g.HeroElementType.Chaos && this.SetChaosSpine(), [2]
                        })
                    })
                }, t.prototype.HindeChaosSpine = function() {
                    this.IconSpine.node.active = !1
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = 0, t = null, this._heroData && this._heroData.SkinId ? (e = this._heroData.SkinId, [4, h.AssetsManager.Instance.LoadAsset(f.BundlePath.HeroCardIcon + "/" + e, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    return t = n.sent(), this.isValid && e == this._heroData.SkinId ? [3, 4] : (h.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    return e = this._itemId, [4, h.AssetsManager.Instance.LoadAsset(f.BundlePath.HeroCardIcon + "/" + e, cc.SpriteFrame)];
                                case 3:
                                    if (t = n.sent(), !this.isValid || e != this._itemId) return h.AssetsManager.Instance.UnloadAsset(t), [2];
                                    n.label = 4;
                                case 4:
                                    return null != this.Icon.spriteFrame && h.AssetsManager.Instance.UnloadAsset(this.Icon.spriteFrame), this._loadedAssets.push(t), this.Icon.spriteFrame = t, this.Icon.node.active = !0, [2]
                            }
                        })
                    })
                }, t.prototype.SetHeroElementIcon = function(e) {
                    this.ElementIcon.node.active = !0;
                    var t = d.UIUtlity.GetHeroElementIcon(e);
                    this.ElementIcon.spriteFrame = t
                }, t.prototype.SetHeroQualityIcon = function() {
                    var e = d.UIUtlity.GetSRByQuality(this._heroConfig.Quality);
                    e && (this.QualityIcon.node.active = !0, this.QualityIcon.spriteFrame = e)
                }, t.prototype.SetSPHero = function() {
                    this.SPBorder && (2 == this._heroConfig.CoreHero ? (this.SPBorder.node.active = !0, this.SPBorder.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spBottom"), this.SPElementBg.node.active = !0, this.SPElementBg.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spCricle")) : d.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero] ? (this.SPBorder.node.active = !0, this.SPBorder.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(d.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero].Bottom), this.SPElementBg.node.active = !0, this.SPElementBg.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(d.UIUtlity.HeroQualityConfig[this._heroConfig.CoreHero].Cricle)) : (this.SPBorder.node.active = !1, this.SPElementBg.node.active = !1))
                }, t.prototype.SetStarLevel = function() {
                    this.LevelComponent.node.active = !0;
                    var e = l.LevelComponent.GetLevelShowType(this._heroConfig.CoreHero, this._heroConfig.ElementType);
                    this.LevelComponent.Init(this._starLevel, 0, l.StarLayoutMode.Left, e)
                }, t.prototype.SetLevel = function() {
                    this._level > 0 ? (this.HeroLevel.node.parent.active = !0, this.HeroLevel.string = "Lv." + this._level) : this.HeroLevel.node.parent.active = !1
                }, t.prototype.SetFormationFlag = function(e) {
                    void 0 === e && (e = y.FormationIdType.MainLine);
                    var t = p.DataCenter.Instance.IsHeroInFormation(this._heroData.Sid, e);
                    this.TeamFlag.active = !!t
                }, t.prototype.SetHeroProfession = function() {
                    this._isSummon || (this.HeroProfessionIcon.node.active = !0, this.HeroProfessionIcon.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("profession_" + this._heroConfig.Career))
                }, t.prototype.SetRedDotState = function(e, t) {
                    this.RedDot.active = e, t && (this.RedDot.scale = t)
                }, t.prototype.SetSelectSpriteNodeState = function(e) {
                    e && !this.SelectBg.spriteFrame && (this.SelectBg.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("itemMask1")), this.SelectBg.node.active = e
                }, t.prototype.SetBgAndHeroIconGray = function(e) {
                    e ? (d.UIUtlity.OnSpriteGray(this.Bg), d.UIUtlity.OnSpriteGray(this.Icon)) : (d.UIUtlity.OffSpriteGray(this.Bg), d.UIUtlity.OffSpriteGray(this.Icon))
                }, t.prototype.SetDarkHint = function(e) {
                    this.DarkNode.active = e, this.HintNode.active = e, e && (this.HintLabel.string = "heroSkin_notGet".ToUILocale())
                }, t.prototype.EnableCheckVisible = function() {
                    this._canCheckVisible = !0
                }, t.prototype.DisableCheckVisible = function() {
                    this._canCheckVisible = !1
                }, t.prototype.CheckVisible = function(e) {
                    if (this.node && this.node.active && this._canCheckVisible) {
                        var t = this.node.getBoundingBoxToWorld().intersects(e);
                        this.node.opacity = t ? 255 : 0
                    }
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) h.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = [], this._borderSpineMap = null
                }, i([b(cc.Sprite)], t.prototype, "Bg", void 0), i([b(cc.Sprite)], t.prototype, "Icon", void 0), i([b(cc.Sprite)], t.prototype, "Border", void 0), i([b(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([b(cc.Node)], t.prototype, "PersonalityBg", void 0), i([b(cc.Label)], t.prototype, "PersonalityLabel", void 0), i([b(cc.Node)], t.prototype, "TeamFlag", void 0), i([b(cc.Label)], t.prototype, "HeroLevel", void 0), i([b(l.LevelComponent)], t.prototype, "LevelComponent", void 0), i([b(cc.Node)], t.prototype, "RedDot", void 0), i([b(sp.Skeleton)], t.prototype, "IconSpine", void 0), i([b(cc.Sprite)], t.prototype, "SPBorder", void 0), i([b(cc.Sprite)], t.prototype, "SPElementBg", void 0), i([b(cc.Sprite)], t.prototype, "HeroProfessionIcon", void 0), i([b(cc.Sprite)], t.prototype, "SelectBg", void 0), i([b(cc.Node)], t.prototype, "DarkNode", void 0), i([b(cc.Node)], t.prototype, "HintNode", void 0), i([b(cc.Label)], t.prototype, "HintLabel", void 0), i([b(cc.Sprite)], t.prototype, "QualityIcon", void 0), i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LevelComponent": "LevelComponent"
    }],
    HeroChangeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ad7bbf/NnVPb5BGtCV8aDy5", "HeroChangeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../Components/CustomRichText"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../Util/TimeUtil"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Date = null, t.ClientVerNode = null, t.ClientVer = null, t.Content = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    void 0 === t && (t = !1);
                    var n = a.ConfigDataComponent.Instance.GetConfigById(l.HeroChange_Config, e),
                        o = c.TimeUtil.StrToTime(n.Date);
                    this.Date.string = c.TimeUtil.Format("YYYY/MM/DD", o), this._isInit || (this._isInit = !0, this.ClientVer.string = "common_current_version".ToUILocale()), this.ClientVerNode.active = t, this.Content.Init(e.ToHeroChangeContent())
                }, i([d(cc.Label)], t.prototype, "Date", void 0), i([d(cc.Node)], t.prototype, "ClientVerNode", void 0), i([d(cc.Label)], t.prototype, "ClientVer", void 0), i([d(s.CustomRichText)], t.prototype, "Content", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Components/Components": "Components",
        "../Components/CustomRichText": "CustomRichText"
    }],
    HeroChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fbd932yZG9Fy4pBMeeA+8b+", "HeroChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Auxiliary/EventKeys"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("./HeroChangeItem"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.CustomLayout = null, t.EnterBtn = null, t.BtnLable = null, t._ids = [], t._isCustomLayoutInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(l.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HeroInfoPanel/HeroChangeItem"), [4, Promise.all([t]).then(function(e) {
                                        n._changeItemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "hero_change_title".ToUILocale(), this.BtnLable.string = "button_confirm".ToUILocale(), this.EnterBtn.node.on("click", this.Close, this), this._isCustomLayoutInit || (this._isCustomLayoutInit = !0, this.CustomLayout.Init(this._changeItemPrefab))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroBaseConfig = u.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t[0]), this._ids = this._heroBaseConfig.ChangeIds ? this._heroBaseConfig.ChangeIds : []
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.CustomLayout.RenderLayOut(this._ids.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (this.CustomLayout == t) {
                        var o = this._ids.length - 1;
                        e.forEach(function(e, t) {
                            e.getComponent(d.default).Init(n._ids[o - t], 0 == t)
                        })
                    }
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(p.default)], t.prototype, "CustomLayout", void 0), i([g(cc.Button)], t.prototype, "EnterBtn", void 0), i([g(cc.Label)], t.prototype, "BtnLable", void 0), i([y], t)
            }(c.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "./HeroChangeItem": "HeroChangeItem"
    }],
    HeroCollectionHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "07ffcRYYBlEK7N5Jmxqshwd", "HeroCollectionHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.PanelType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/LevelComponent"),
            y = e("../Components/HeroElementGroup"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/HeroCardComponent"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("./CollectionHandbookPanel"),
            b = e("../Components/ItemComponent"),
            S = e("../../RedDot/RedDotManager"),
            w = e("../../RedDot/RedDotDataHandler"),
            P = e("./HeroSublimingGoBackPanel"),
            A = e("../../Channel/ChannelManager"),
            T = e("../../../Consts/GameServerConsts"),
            R = e("../Components/CustomToggle"),
            L = e("../Components/GameModuleGuideManager"),
            k = e("../../../Consts/GameEventIds"),
            O = e("../../Auxiliary/GuideManager"),
            M = e("../Components/GameUnlockFingerListener"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property;
        (function(e) {
            e[e.Unlock = 0] = "Unlock", e[e.Subliming = 1] = "Subliming"
        })(l = n.PanelType || (n.PanelType = {}));
        var E = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.HeroTitle = null, t.HeroName = null, t.LevelComponent = null, t.RuleButton = null, t.HideButton = null, t.HideLabel = null, t.AvatarNode = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.ToggleContainer = null, t.ToggleArray = [], t.InfoContainer = null, t.HeroElementGroup = null, t.HeroScrollView = null, t.HeroContainer = null, t.AttrTitleLabel = null, t.AttrNode = null, t.MaterialContainer = null, t.DescLabel = null, t.MaxLevelTip = null, t.UnlockButton = null, t.UnlockLabel = null, t.LockButton = null, t.LockLabel = null, t.TotalButton = null, t.TotalLabel = null, t.SublimingGoBackButton = null, t.SublimingGoBackLabel = null, t.ReturnButton = null, t.UpgradeNode = null, t.LeftRedNode = null, t.RightRedNode = null, t.SublimingInfoButton = null, t.SublimingInfoButtonLabel = null, t._currentToggleIndex = 0, t._heroCardComponentArray = [], t._selectIndex = 0, t._attrComponents = [], t._isCanSubliming = !1, t._materialHeroSids = [], t._isHidePanel = !1, t._loadCount = 0, t.ShowItemCount = 10, t._guideStepIndex = 0, t._guideGroupId = 0, t._moduleGuideGroupIds = [10031, 10032], t.GameUnlockSteps = {
                    1: [26]
                }, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(C.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroCard, this), c.Game.EventDispatcher.On(C.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), c.Game.EventDispatcher.On(k.GameEventIds.AddDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), c.Game.EventDispatcher.On(k.GameEventIds.RemoveDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), c.Game.EventDispatcher.On(k.GameEventIds.ChangeDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(C.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroCard, this), c.Game.EventDispatcher.Off(C.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), c.Game.EventDispatcher.Off(k.GameEventIds.AddDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), c.Game.EventDispatcher.Off(k.GameEventIds.RemoveDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), c.Game.EventDispatcher.Off(k.GameEventIds.ChangeDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(m.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset(m.BundlePath.HeroCardComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._itemPrefab = e[0], o._heroCardPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.HideLabel.string = "personalityCall_hide".ToUILocale(), this.TotalLabel.string = "handbook_attr_total".ToUILocale(), this.SublimingGoBackLabel.string = "HeroHandbook_Subliming_Go_Back".ToUILocale(), this.AttrTitleLabel.string = "HeroHandbook_Attr_Title".ToUILocale(), this.LockLabel.string = "common_unlock".ToUILocale(), this.UnlockLabel.string = "common_upgrade_level".ToUILocale(), this.SublimingInfoButtonLabel.string = "HeroHandbook_Subliming_Info".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.UnlockButton.node.on("click", this.OnUnlockButtonClick, this), this.TotalButton.node.on("click", this.OnTotalButtonClick, this), this.SublimingGoBackButton.node.on("click", this.OnSublimingGoBackButtonClick, this), this.SublimingInfoButton.node.on("click", this.OnSublimingInfoButtonClick, this), this.AttrNode.children.forEach(function(e, n) {
                    var o = {
                        Node: e,
                        Icon: e.getChildByName("Icon").getComponent(cc.Sprite),
                        NameLabel: e.getChildByName("NameLabel").getComponent(cc.Label),
                        ValueRichText: e.getChildByName("ValueRichText").getComponent(cc.RichText),
                        OldValueLabel: e.getChildByName("OldValueLabel").getComponent(cc.Label),
                        NewValueLabel: e.getChildByName("NewValueLabel").getComponent(cc.Label),
                        Arrow: e.getChildByName("Arrow")
                    };
                    0 == n ? t._levelComponent = o : t._attrComponents[n - 1] = o
                }), this.HeroElementGroup.SetElementModeByIndex(g.HeroElementType.All);
                var n = this.HeroScrollView.node.getBoundingBoxToWorld();
                this._scrollViewRect = new cc.Rect(n.x, n.y, this.HeroScrollView.node.width, this.HeroScrollView.node.height), this.HeroScrollView.node.on("scrolling", this.OnScrolling, this)
            }, t.prototype.OnScrolling = function() {
                c.Game.EventDispatcher.Emit(C.EventKeys.EVENT_HERO_HANDBOOK_SCROLLVIEW, this._scrollViewRect);
                var e = this.HeroScrollView.getScrollOffset(),
                    t = this.HeroScrollView.getMaxScrollOffset();
                if (Math.abs(Math.round(e.x)) >= t.x) {
                    var n = this._currentTypeHeroConfigArray.length;
                    if (this._loadCount >= n) return;
                    for (var o = Math.min(n, this._loadCount + this.ShowItemCount), r = this._loadCount; r < o; r++) this.LoadListItem(r);
                    this._loadCount = o
                }
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), t[0] && (this._currentToggleIndex = t[0]), t[1] && (this._selectHeroId = t[1]), this._selectElementType = g.HeroElementType.All, h.default.Instance.IsGameModuleOpen(g.GameModuleType.HeroHandbookSubliming) && h.default.Instance.IsGameModuleUnlock(g.GameModuleType.HeroHandbookSubliming)[0] ? this._isUnlockSubliming = !0 : (this._isUnlockSubliming = !1, this._currentToggleIndex = l.Unlock), this.SetHeroData(), this.SetCurrentTypeHeroConfigArray(), this.SetDefaultSelectHeroIndex(), this._loadCount = this.ShowItemCount
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || this._isCanSubliming && (this.ToggleContainer.active = !0, this.SetToggle(), this.ToggleArray[this._currentToggleIndex].isChecked = !0), this.SetHeroCardList(), this.MoveList(), this.SetUIContent(), this.ShowGameGuid(), this.ShowAllGameUnlockFinger(!1)
            }, t.prototype.SetHeroData = function() {
                var e = this;
                this._coreHeroConfig = {}, this._coreHeroConfigArray = [], d.ConfigDataComponent.Instance.GetArrayConfig(u.HeroBase_Config).forEach(function(t) {
                    t.CoreHero && 1 == t.Type && h.default.Instance.IsModuleShowAvailable(g.ModuleStartTime.Hero, t.Id) && (e._coreHeroConfig[t.Id] = t, e._coreHeroConfigArray.push(t))
                }), this._coreHeroData = {}, d.DataCenter.Instance.GetDataList(p.UserHero_Model).forEach(function(t) {
                    e._coreHeroConfig[t.HeroId] && (e._coreHeroData[t.HeroId] ? e._coreHeroData[t.HeroId].StarLevel < t.StarLevel && (e._coreHeroData[t.HeroId] = t) : e._coreHeroData[t.HeroId] = t)
                }), this._isUnlockSubliming && (this._isCanSubliming = !0)
            }, t.prototype.SetCurrentTypeHeroConfigArray = function() {
                var e = this;
                this._currentTypeHeroConfigArray = [], this._coreHeroConfigArray.forEach(function(t) {
                    t.ElementType != e._selectElementType && e._selectElementType != g.HeroElementType.All || e._currentTypeHeroConfigArray.push(t)
                }), this._currentTypeHeroConfigArray.sort(this.SortCurrentHeroConfigArray.bind(this))
            }, t.prototype.SetDefaultSelectHeroIndex = function() {
                if (this._selectHeroId)
                    for (var e = 0; e < this._currentTypeHeroConfigArray.length; e++)
                        if (this._currentTypeHeroConfigArray[e].Id == this._selectHeroId) return void(this._selectIndex = e)
            }, t.prototype.GetCanSubimingHeroIndex = function() {
                for (var e = 0; e < this._currentTypeHeroConfigArray.length; e++) {
                    var t = this._currentTypeHeroConfigArray[e],
                        n = this._coreHeroData[t.Id];
                    if (n && w.RedDotDataHandler.Instance.RefreshHeroHandbookSublimingButton({
                            Value1: n.Sid
                        })) return e
                }
                return -1
            }, t.prototype.SetToggle = function() {
                for (var e = 0; e < this.ToggleArray.length; e++) {
                    var t = this.ToggleArray[e];
                    t.Init(("HeroHandbook_Toggle_" + e).ToUILocale()), t.node.name = e.toString(), t.node.on("toggle", this.OnSwithToggle, this)
                }
            }, t.prototype.OnSwithToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentToggleIndex != t && (this._currentToggleIndex = t, this.SetCurrentToggleShow(), this.ShowGameGuid())
            }, t.prototype.SetCurrentToggleShow = function() {
                this.SetHeroCardList(), this.MoveList(), this.SetAttrContainer(), this.SetCurrentShow(), this.SetElementRedDot()
            }, t.prototype.SetUIContent = function() {
                this.SetTopInfoAndAvatar(), this.SetArrowButtonState(), this.SetAttrContainer(), this.SetCurrentShow(), this.SetRedDot(), this.SetFingerInGuide()
            }, t.prototype.SetTopInfoAndAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, p, y, g;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e = this._currentTypeHeroConfigArray[this._selectIndex], t = A.default.Instance.IsVNChannel(), this.HeroName.node.active = !t, t ? (t || d.GlobalConfigComponent.Instance.Channel == T.GameChannels.Mainland_Check) && (this.AvatarNode.y = 400) : this.HeroName.string = e.Id.ToHeroName(), this.HeroTitle.string = t ? e.Id.ToHeroName() : e.Id.ToHeroTitle(), n = f.LevelComponent.GetLevelShowType(e.CoreHero, e.ElementType), this._coreHeroData[e.Id] ? this.LevelComponent.Init(this._coreHeroData[e.Id].StarLevel, 0, 0, n) : this.LevelComponent.Init(e.StarLevel, 0, 0, n), this.AvatarNode.destroyAllChildren(), this._avatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), o = e.Id, r = this._coreHeroData[e.Id], i = !1, r && r.SkinId ? (a = d.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, r.SkinId)) ? (i = !0, l = this, [4, c.AssetsManager.Instance.LoadAsset(a.UIAvatar + "/Avatar")]) : [3, 2] : [3, 5];
                            case 1:
                                return l._avatarPrefab = s.sent(), [3, 4];
                            case 2:
                                return p = this, [4, c.AssetsManager.Instance.LoadAsset(e.UIAvatar + "/Avatar")];
                            case 3:
                                p._avatarPrefab = s.sent(), s.label = 4;
                            case 4:
                                return [3, 7];
                            case 5:
                                return y = this, [4, c.AssetsManager.Instance.LoadAsset(e.UIAvatar + "/Avatar")];
                            case 6:
                                y._avatarPrefab = s.sent(), s.label = 7;
                            case 7:
                                return this.isValid ? (o == this._currentTypeHeroConfigArray[this._selectIndex].Id ? ((g = cc.instantiate(this._avatarPrefab)).setParent(this.AvatarNode), i || h.default.Instance.SetHeroAvatarSkin(g, e.Id, e.StarLevel)) : c.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), [2]) : (c.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), [2])
                        }
                    })
                })
            }, t.prototype.SetArrowButtonState = function() {
                this.LeftArrowButton.node.active = 0 != this._selectIndex, this.RightArrowButton.node.active = this._selectIndex != this._currentTypeHeroConfigArray.length - 1
            }, t.prototype.SetAttrContainer = function() {
                var e, t, n = this._currentTypeHeroConfigArray[this._selectIndex],
                    o = this._coreHeroData[n.Id],
                    r = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, n.Id);
                if (this._currentToggleIndex == l.Unlock) {
                    var i;
                    i = r && r.HandbookStar ? r.HandbookStar - n.StarLevel : 0;
                    var a = n.HandbookStar[i];
                    if (e = (f = d.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookStar_Config, a)).Attrs, !r || r.HandbookStar < n.MaxStarLevel) {
                        var s;
                        s = !o || !r || o.StarLevel <= r.HandbookStar ? i + 1 : o.StarLevel - n.StarLevel;
                        var c = n.HandbookStar[s];
                        t = (y = d.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookStar_Config, c)).Attrs
                    }
                } else if (this._currentToggleIndex == l.Subliming) {
                    var f, y, g = 0;
                    a = n.Sublime[0], c = n.Sublime[0], r && r.HandbookCount > 0 && (g = r.HandbookCount, a += r.HandbookCount - 1), e = (f = d.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookLevel_Config, a)).Attrs, g < h.default.Instance.GetHeroSublimingMaxLevelByHeroId(n.Id) && (c = n.Sublime[0] + g, t = (y = d.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookLevel_Config, c)).Attrs, this._sublimingMaterialNeedCount = g > 0 ? y.UseCount - f.UseCount : f.UseCount)
                }
                this._upLevelAddAttrData = [];
                for (var m = 0; m < this._attrComponents.length; m++) {
                    var I = this._attrComponents[m];
                    I.Node.active = !0;
                    var _ = e[m].Items[0],
                        C = void 0,
                        v = void 0;
                    this._currentToggleIndex == l.Unlock ? (C = r && r.HandbookStar ? e[m].Items[1] : 0, v = r && r.HandbookStar ? t ? t[m].Items[1] - C : 0 : e[m].Items[1]) : this._currentToggleIndex == l.Subliming && (C = r && r.HandbookCount ? e[m].Items[1] : 0, v = t ? t[m].Items[1] - C : 0), I.NameLabel.string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + ("hero_attr_" + _).ToUILocale(), I.Icon.spriteFrame = h.default.GetAttrIcon(_), I.OldValueLabel.string = h.default.GetAttrText(_, C), v ? (I.OldValueLabel.node.x = 62, I.NewValueLabel.string = h.default.GetAttrText(_, t[m].Items[1]), I.Arrow.active = !0, I.NewValueLabel.node.active = !0, this._upLevelAddAttrData.push(_), this._upLevelAddAttrData.push(v)) : (I.OldValueLabel.node.x = I.Arrow.x, I.NewValueLabel.node.active = !1, I.Arrow.active = !1)
                }
                for (m = e.length; m < this._attrComponents.length; m++) this._attrComponents[m].Node.active = !1
            }, t.prototype.SetCurrentShow = function() {
                var e = this._currentTypeHeroConfigArray[this._selectIndex],
                    t = this._coreHeroData[e.Id],
                    n = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, e.Id);
                switch (this.LockButton.node.active = !1, this.UnlockButton.node.active = !1, this.MaxLevelTip.node.parent.active = !1, this.DescLabel.node.active = !1, this.MaterialContainer.active = !1, this.SublimingGoBackButton.node.active = !1, this.SublimingInfoButton.node.active = !1, this._currentToggleIndex) {
                    case l.Unlock:
                        if (this.AttrNode.height = 184, this.AttrTitleLabel.node.active = !0, this._levelComponent.Node.active = !1, this.AttrTitleLabel.string = "HeroHandbook_Attr_Title".ToUILocale(), n && n.HandbookStar == e.MaxStarLevel) return this.MaxLevelTip.string = "common_max_level".ToUILocale(), void(this.MaxLevelTip.node.parent.active = !0);
                        this.DescLabel.fontSize = 28, this.DescLabel.node.y = 82, t ? (this.UnlockButton.node.active = !0, this.UnlockButton.node.x = 0, n.HandbookStar == t.StarLevel ? (this.UnlockLabel.string = "common_upgrade_level".ToUILocale(), this.DescLabel.node.active = !0, this.DescLabel.string = "HeroHandbook_Up_Level_Tip".ToUILocale().Fmt(t.StarLevel + 1)) : 0 == n.HandbookStar ? this.UnlockLabel.string = "common_unlock".ToUILocale() : this.UnlockLabel.string = "common_upgrade_level".ToUILocale()) : (this.LockButton.node.active = !0, this.DescLabel.node.active = !0, this.DescLabel.string = "HeroHandbook_Unlock_Tip".ToUILocale());
                        break;
                    case l.Subliming:
                        if (this.AttrNode.height = 257, this.AttrTitleLabel.node.active = !1, this._levelComponent.Node.active = !0, this._levelComponent.NameLabel.string = "allianceBase_levelSimple".ToUILocale(), this.SublimingGoBackButton.node.active = n && n.HandbookCount > 0, !n || n.HandbookStar < e.MaxStarLevel) return n && n.HandbookCount > 0 ? this.SetLevelComponent(n.HandbookCount, n.HandbookCount + 1) : this.SetLevelComponent(0, 1), this.DescLabel.fontSize = 36, this.DescLabel.node.y = 20, this.DescLabel.string = "HeroHandbook_Subliming_Unlock_Tip".ToUILocale(), void(this.DescLabel.node.active = !0);
                        this.SublimingInfoButton.node.active = !0, n.HandbookCount < h.default.Instance.GetHeroSublimingMaxLevelByHeroId(e.Id) ? (this.UnlockButton.node.active = !0, this.MaterialContainer.active = !0, this.UnlockLabel.string = "HeroHandbook_Toggle_1".ToUILocale(), this.UnlockButton.node.x = 40, this.SetLevelComponent(n.HandbookCount, n.HandbookCount + 1), this.SetMaterialContainer()) : (this.MaxLevelTip.node.parent.active = !0, this.MaxLevelTip.string = "common_max_level".ToUILocale(), this.SetLevelComponent(n.HandbookCount))
                }
            }, t.prototype.SetLevelComponent = function(e, t) {
                t ? (this._levelComponent.OldValueLabel.node.x = 62, this._levelComponent.OldValueLabel.string = "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(e), this._levelComponent.NewValueLabel.string = "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(t), this._levelComponent.NewValueLabel.node.active = !0, this._levelComponent.Arrow.active = !0) : (this._levelComponent.OldValueLabel.node.x = this._levelComponent.Arrow.x, this._levelComponent.OldValueLabel.string = "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(e), this._levelComponent.NewValueLabel.node.active = !1, this._levelComponent.Arrow.active = !1)
            }, t.prototype.SetMaterialContainer = function() {
                if (this._materialHeroSids = [], !this._materialComponent) {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.MaterialContainer), this._materialComponent = e.getComponent(b.ItemComponent)
                }
                for (var t = this._currentTypeHeroConfigArray[this._selectIndex], n = {
                        Type: h.UpStarHeroMaterialType.Hero,
                        Id: this._coreHeroData[t.Id].Sid
                    }, o = h.default.GetHeroByItemIdAndStar(t.Id, t.StarLevel, [n], !0, !0, !0, !0), r = 0; r < this._sublimingMaterialNeedCount && o[r] && o[r].Type == h.UpStarHeroMaterialType.Hero; r++) this._materialHeroSids.push(o[r].Id);
                this._materialComponent.Init({
                    ItemId: t.Id,
                    StarLevel: t.StarLevel,
                    Count: this._materialHeroSids.length,
                    NeedCount: this._sublimingMaterialNeedCount
                }, b.ItemComponentType.HeroCountProgress)
            }, t.prototype.SetHeroCardList = function() {
                for (var e = 0; e < this._currentTypeHeroConfigArray.length && !(e >= this._loadCount); e++) {
                    var t = this._heroCardComponentArray[e];
                    if (!t) {
                        var n = cc.instantiate(this._heroCardPrefab);
                        n.setParent(this.HeroContainer), n.name = e.toString(), t = n.getComponent(_.default), this._heroCardComponentArray[e] = t
                    }
                    t.node.active = !0, t.SetRedDotState(!1);
                    var o = this._currentTypeHeroConfigArray[e],
                        r = this._coreHeroData[o.Id],
                        i = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, o.Id);
                    if (r) {
                        t.Init(r, i.PersonalityStar), s = {
                            Value1: r.Sid
                        };
                        var a;
                        a = this._currentToggleIndex == l.Unlock ? w.RedDotDataHandler.Instance.RefreshHeroHandbookUpLevelButton(s) : w.RedDotDataHandler.Instance.RefreshHeroHandbookSublimingButton(s), t.SetRedDotState(a)
                    } else {
                        var s = {
                            ItemId: o.Id,
                            StarLevel: o.StarLevel
                        };
                        t.Init(s)
                    }
                    i && i.HandbookStar ? t.SetDarkHint(!1) : t.SetDarkHint(!0), this._selectIndex == e && t.SetSelectSpriteNodeState(!0)
                }
                var c = Math.min(this._loadCount, this._currentTypeHeroConfigArray.length);
                if (c < this._heroCardComponentArray.length)
                    for (e = c; e < this._heroCardComponentArray.length; e++) this._heroCardComponentArray[e].node.active = !1
            }, t.prototype.SortCurrentHeroConfigArray = function(e, t) {
                var n = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, e.Id),
                    o = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, t.Id);
                return !(n && n.HandbookStar > 0) || o && o.HandbookStar ? !(o && o.HandbookStar > 0) || n && n.HandbookStar ? t.Id - e.Id : 1 : -1
            }, t.prototype.SetHideUI = function() {
                if (this.HideLabel.string = this._isHidePanel ? "personalityCall_show".ToUILocale() : "personalityCall_hide".ToUILocale(), this._isHidePanel) {
                    var e = !0; - 1 == d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, g.LevelParamType.MainSceneHeroNoMaskIds).Data.indexOf(this._currentTypeHeroConfigArray[this._selectIndex].Id) && (e = !1), this.InfoContainer.active = e, this.UpgradeNode.active = e, this._isCanSubliming && (this.ToggleContainer.active = e)
                } else this.InfoContainer.active = !0, this.UpgradeNode.active = !0, this._isCanSubliming && (this.ToggleContainer.active = !0)
            }, t.prototype.SetRedDot = function() {
                var e = this._currentTypeHeroConfigArray[this._selectIndex],
                    t = this._coreHeroData[e.Id] ? this._coreHeroData[e.Id].Sid : 0;
                switch (this._isCanSubliming && (S.RedDotManager.Instance.BindInstance(this.ToggleArray[0].node, S.RedDotManager.Instance.InstanceRedDot.HeroHandbookUpLevelToggle, {
                        extra: this._coreHeroData
                    }), S.RedDotManager.Instance.BindInstance(this.ToggleArray[1].node, S.RedDotManager.Instance.InstanceRedDot.HeroHandbookSublimingToggle, {
                        extra: this._coreHeroData
                    })), this._currentToggleIndex) {
                    case l.Unlock:
                        S.RedDotManager.Instance.BindInstance(this.UnlockButton.node, S.RedDotManager.Instance.InstanceRedDot.HeroHandbookUpLevelButton, {
                            Value1: t
                        });
                        break;
                    case l.Subliming:
                        S.RedDotManager.Instance.BindInstance(this.UnlockButton.node, S.RedDotManager.Instance.InstanceRedDot.HeroHandbookSublimingButton, {
                            Value1: t
                        })
                }
                this.SetElementRedDot(), this.LeftRedNode.active = !1, this.RightRedNode.active = !1, null != this.GetNextHeroIndex(this._selectIndex + 1, this._currentTypeHeroConfigArray.length) && (this.RightRedNode.active = !0), null != this.GetLastHeroIndex(0, this._selectIndex) && (this.LeftRedNode.active = !0)
            }, t.prototype.SetElementRedDot = function() {
                for (var e = [], t = g.HeroElementType.Heart; t <= g.HeroElementType.Chaos; t++)
                    for (var n = 0; n < this._coreHeroConfigArray.length; n++) {
                        var o = this._coreHeroConfigArray[n];
                        if (o.ElementType == t) {
                            var r = this._coreHeroData[o.Id];
                            if (!r) continue;
                            var i = {
                                Value1: r.Sid
                            };
                            if (this._currentToggleIndex == l.Unlock ? w.RedDotDataHandler.Instance.RefreshHeroHandbookUpLevelButton(i) : w.RedDotDataHandler.Instance.RefreshHeroHandbookSublimingButton(i)) {
                                e.push(t);
                                break
                            }
                        }
                    }
                e.length > 0 && e.push(0), this.HeroElementGroup.UpdateRedDots(e)
            }, t.prototype.OnRuleButtonClick = function() {
                var e, t, n;
                this._currentToggleIndex === l.Unlock ? (e = "HeroHandbook_Rule_Name".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["HeroHandbook_Rule_Content".ToUILocale()]) : this._currentToggleIndex == l.Subliming && (e = "HeroHandbook_Subliming_Rule_Name".ToUILocale(), t = ["HeroHandbook_Subliming_Rule_Title".ToUILocale()], n = ["HeroHandbook_Subliming_Rule_Content".ToUILocale()]);
                var o = {
                    name: e,
                    titles: t,
                    contents: n
                };
                I.UIUtlity.ShowRulePanel(o)
            }, t.prototype.OnHideButtonClick = function() {
                this._isHidePanel ? this._isHidePanel = !1 : this._isHidePanel = !0, this.SetHideUI()
            }, t.prototype.OnLeftArrowButtonClick = function() {
                var e = this._selectIndex - 1,
                    t = this.GetLastHeroIndex(0, this._selectIndex);
                null != t && (e = t), this.ClickChangeHero(e), this.MoveList(), this.SetHideUI()
            }, t.prototype.OnRightArrowButtonClick = function() {
                var e = this._selectIndex + 1,
                    t = this.GetNextHeroIndex(this._selectIndex + 1, this._currentTypeHeroConfigArray.length);
                null != t && (e = t), this.ClickChangeHero(e), this.MoveList(), this.SetHideUI()
            }, t.prototype.GetNextHeroIndex = function(e, t) {
                for (var n = e; n < t; n++) {
                    var o = this._currentTypeHeroConfigArray[n],
                        r = this._coreHeroData[o.Id];
                    if (r) {
                        var i = {
                            Value1: r.Sid
                        };
                        if (this._currentToggleIndex == l.Unlock ? w.RedDotDataHandler.Instance.RefreshHeroHandbookUpLevelButton(i) : w.RedDotDataHandler.Instance.RefreshHeroHandbookSublimingButton(i)) return n
                    }
                }
                return null
            }, t.prototype.GetLastHeroIndex = function(e, t) {
                for (var n = t - 1; n >= e; n--) {
                    var o = this._currentTypeHeroConfigArray[n],
                        r = this._coreHeroData[o.Id];
                    if (r) {
                        var i = {
                            Value1: r.Sid
                        };
                        if (this._currentToggleIndex == l.Unlock ? w.RedDotDataHandler.Instance.RefreshHeroHandbookUpLevelButton(i) : w.RedDotDataHandler.Instance.RefreshHeroHandbookSublimingButton(i)) return n
                    }
                }
                return null
            }, t.prototype.MoveList = function(e) {
                var t;
                if (void 0 === e && (e = .2), this._selectIndex + 1 > this._loadCount) {
                    for (var n = this._loadCount; n <= this._selectIndex;) n += this.ShowItemCount;
                    n = Math.min(this._currentTypeHeroConfigArray.length, n);
                    for (var o = this._loadCount; o < n; o++) this.LoadListItem(o);
                    this._loadCount = n, null === (t = this.HeroContainer.getComponent(cc.Layout)) || void 0 === t || t.updateLayout()
                }
                var r = this._selectIndex - 2 >= 0 ? this._selectIndex - 2 : 0;
                this.HeroScrollView.scrollToOffset(new cc.Vec2(234 * r, 0), e)
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnUnlockButtonClick = function() {
                var e = this._currentTypeHeroConfigArray[this._selectIndex],
                    t = this._coreHeroData[e.Id],
                    n = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, e.Id);
                switch (this._currentToggleIndex) {
                    case l.Unlock:
                        if (n.HandbookStar == t.StarLevel) return void I.UIUtlity.ShowFloatingHint("HeroHandbook_Up_Level_Tip".ToUILocale().Fmt(t.StarLevel + 1));
                        this._oldBattlePower = d.DataCenter.Instance.GetIntData(g.UserDataKey.Power);
                        var o = new p.Req_Hero_HandbookUpgradeStar;
                        o.Sid = t.Sid, d.RpcComponent.Instance.Call(o, this.OnUpLevelSuccess.bind(this));
                        break;
                    case l.Subliming:
                        if (this._materialHeroSids.length < this._sublimingMaterialNeedCount) return void I.UIUtlity.ShowFloatingHint("HeroHandbook_Material_Not_Enough".ToUILocale());
                        this._oldBattlePower = d.DataCenter.Instance.GetIntData(g.UserDataKey.Power);
                        var r = new p.Req_Hero_HandbookDeposit;
                        r.Sids = this._materialHeroSids, r.HeroId = e.Id, r.NewLevel = n.HandbookCount + 1, d.RpcComponent.Instance.Call(r, this.OnUpLevelSuccess.bind(this))
                }
            }, t.prototype.OnUpLevelSuccess = function(e) {
                var t, n = this._currentTypeHeroConfigArray[this._selectIndex].Id;
                if (this._currentToggleIndex == l.Unlock) {
                    if (t = v.CollectionHandbookType.Hero, !this._isCanSubliming) {
                        var o = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, n);
                        o && o.HandbookStar == this._coreHeroConfig[n].MaxStarLevel && (this._isCanSubliming = !!this._isUnlockSubliming, this.ToggleContainer.active = !0, this.SetToggle())
                    }
                } else this._currentToggleIndex == l.Subliming && (t = v.CollectionHandbookType.HeroSubliming, e.Rewards.length > 0 && I.UIUtlity.ShwDisplayRewardPanel(e.Rewards));
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.CollectionHandbookSuccessPanel.Path, t, null, null, this._upLevelAddAttrData);
                var r = d.DataCenter.Instance.GetIntData(g.UserDataKey.Power);
                this._oldBattlePower != r && c.UIManager.Instance.ShowUIPanel(m.PanelConfig.BattlePowerChangePanel.Path, this._oldBattlePower, r), this._materialHeroSids = [], this.SetAttrContainer(), this.SetCurrentShow(), this.SetRedDot(), this._heroCardComponentArray[this._selectIndex].SetDarkHint(!1);
                var i, a = {
                    Value1: this._coreHeroData[n].Sid
                };
                this._currentToggleIndex == l.Unlock ? i = w.RedDotDataHandler.Instance.RefreshHeroHandbookUpLevelButton(a) : this._currentToggleIndex == l.Subliming && (i = w.RedDotDataHandler.Instance.RefreshHeroHandbookSublimingButton(a)), this._heroCardComponentArray[this._selectIndex].SetRedDotState(i)
            }, t.prototype.OnTotalButtonClick = function() {
                var e = this.GetTotalAttrData();
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.CollectionHandbookAttributePanel.Path, e)
            }, t.prototype.GetTotalAttrData = function() {
                var e = {};
                return this._coreHeroConfigArray.forEach(function(t) {
                    var n = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, t.Id);
                    if (n && n.HandbookStar > 0)
                        for (var o = n.HandbookStar - t.StarLevel, r = t.HandbookStar[o], i = d.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookStar_Config, r), a = 0; a < i.Attrs.length; a++) {
                            var s = i.Attrs[a].Items[0],
                                l = i.Attrs[a].Items[1];
                            e[s] ? e[s] += l : e[s] = l
                        }
                    if (n && n.HandbookCount > 0)
                        for (var c = t.Sublime[0] + n.HandbookCount - 1, h = d.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookLevel_Config, c), f = 0; f < h.Attrs.length; f++) s = h.Attrs[f].Items[0], l = h.Attrs[f].Items[1], e[s] ? e[s] += l : e[s] = l
                }), e
            }, t.prototype.OnSublimingGoBackButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(m.PanelConfig.HeroSublimingGoBackPanel.Path, P.SublimingGoBackType.Hero, this._currentTypeHeroConfigArray[this._selectIndex].Id)
            }, t.prototype.OnSublimingInfoButtonClick = function() {
                var e = this._currentTypeHeroConfigArray[this._selectIndex],
                    t = this._coreHeroData[e.Id];
                t && c.UIManager.Instance.ShowUIPanel(m.PanelConfig.HeroSublimingInfoPanel.Path, t)
            }, t.prototype.OnSwitchHeroElement = function(e, t) {
                if (t == this.HeroElementGroup.node) {
                    var n = this._selectElementType;
                    this._selectElementType != e && (this._selectElementType = e, this._selectIndex = 0, this._loadCount = this.ShowItemCount, this.SetCurrentTypeHeroConfigArray(), this._currentTypeHeroConfigArray.length > 0 ? (this.SetHeroCardList(), this.SetUIContent(), this.HeroScrollView.scrollToLeft(.1)) : (this.HeroElementGroup.SetElementModeByIndex(n), I.UIUtlity.ShowFloatingHint("rank_no_element_hero".ToUILocale())))
                }
            }, t.prototype.OnClickHeroCard = function(e, t) {
                -1 == this.MaterialContainer.children.indexOf(t) && -1 != this.HeroContainer.children.indexOf(t) && e != this._selectIndex && this.ClickChangeHero(e)
            }, t.prototype.ClickChangeHero = function(e) {
                this._heroCardComponentArray[e] && this._heroCardComponentArray[e].SetSelectSpriteNodeState(!0), this._heroCardComponentArray[this._selectIndex] && this._heroCardComponentArray[this._selectIndex].SetSelectSpriteNodeState(!1), this._selectIndex = e, this.SetUIContent()
            }, t.prototype.LoadListItem = function(e) {
                var t = this._heroCardComponentArray[e];
                if (!t) {
                    var n = cc.instantiate(this._heroCardPrefab);
                    n.setParent(this.HeroContainer), n.name = e.toString(), t = n.getComponent(_.default), this._heroCardComponentArray[e] = t
                }
                t.node.active = !0, t.SetRedDotState(!1);
                var o = this._currentTypeHeroConfigArray[e],
                    r = this._coreHeroData[o.Id],
                    i = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, o.Id);
                if (r) {
                    t.Init(r, i.PersonalityStar), s = {
                        Value1: r.Sid
                    };
                    var a;
                    a = this._currentToggleIndex == l.Unlock ? w.RedDotDataHandler.Instance.RefreshHeroHandbookUpLevelButton(s) : w.RedDotDataHandler.Instance.RefreshHeroHandbookSublimingButton(s), t.SetRedDotState(a)
                } else {
                    var s = {
                        ItemId: o.Id,
                        StarLevel: o.StarLevel
                    };
                    t.Init(s)
                }
                i && i.HandbookStar ? t.SetDarkHint(!1) : t.SetDarkHint(!0), this._selectIndex == e && t.SetSelectSpriteNodeState(!0)
            }, t.prototype.SetFingerInGuide = function() {
                var e = this.UnlockButton.node.getChildByName("fingerModule");
                if (e)
                    if (this._currentToggleIndex != l.Subliming) e.active = !1;
                    else {
                        var t = this._currentTypeHeroConfigArray[this._selectIndex],
                            n = this._coreHeroData[t.Id] ? this._coreHeroData[t.Id].Sid : 0;
                        e.active = w.RedDotDataHandler.Instance.RefreshHeroHandbookSublimingButton({
                            Value1: n
                        })
                    }
            }, t.prototype.ShowGameGuid = function(e) {
                if (this._currentToggleIndex == l.Subliming && (!e || e == this._guideGroupId)) {
                    var t = L.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds);
                    if (!(t <= 0)) {
                        this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                        var n = d.ConfigDataComponent.Instance.GetConfigById(u.GameModuleGuideGroup_Config, this._guideGroupId);
                        if (n)
                            for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                var r = !0;
                                switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                    case 80:
                                        L.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                        break;
                                    case 81:
                                        if (!this._selectHeroId) {
                                            var i = this.GetCanSubimingHeroIndex();
                                            i > -1 && (this.ClickChangeHero(i), this.MoveList(.01), L.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.UnlockButton.node))
                                        }
                                        break;
                                    default:
                                        r = !1
                                }
                                if (this._guideStepIndex++, r) break
                            }
                    }
                }
            }, t.prototype.onDestroy = function() {
                this._avatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._avatarPrefab)
            }, t.prototype.OnSimpleDataChage = function(e) {
                var t;
                for (var n in e)
                    if (parseInt(n) == g.UserDataKey.GameModulePopGuide) {
                        t = !0;
                        break
                    } t && this.ShowAllGameUnlockFinger()
            }, t.prototype.ShowAllGameUnlockFinger = function(e) {
                if (void 0 === e && (e = !0), !O.default.Instance.IsInGuide) {
                    var t = M.default.Instance.CurrencyMoudleId;
                    if (!t || t < 0)
                        for (var n = 0; n < this.ToggleArray.length; n++) M.default.Instance.RemoveFinger(this.ToggleArray[n].node);
                    else {
                        var o = d.ConfigDataComponent.Instance.GetConfigById(u.GameModuleUnlockPop_Config, t);
                        if (o) {
                            var r = e ? 2 : 0;
                            for (var i in this.GameUnlockSteps) {
                                var a = parseInt(i);
                                if (-1 != this.GameUnlockSteps[i].indexOf(t)) {
                                    switch (t) {
                                        case 26:
                                            var s = this.ToggleArray[a].node;
                                            s && s.active ? M.default.Instance.SetFinger(s, o.Id, 0, 0, r) : M.default.Instance.RemoveFinger(s)
                                    }
                                    return
                                }
                            }
                        } else
                            for (n = 0; n < this.ToggleArray.length; n++) M.default.Instance.RemoveFinger(this.ToggleArray[n].node)
                    }
                }
            }, i([N(cc.Label)], t.prototype, "HeroTitle", void 0), i([N(cc.Label)], t.prototype, "HeroName", void 0), i([N(f.LevelComponent)], t.prototype, "LevelComponent", void 0), i([N(cc.Button)], t.prototype, "RuleButton", void 0), i([N(cc.Button)], t.prototype, "HideButton", void 0), i([N(cc.Label)], t.prototype, "HideLabel", void 0), i([N(cc.Node)], t.prototype, "AvatarNode", void 0), i([N(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([N(cc.Button)], t.prototype, "RightArrowButton", void 0), i([N(cc.Node)], t.prototype, "ToggleContainer", void 0), i([N([R.default])], t.prototype, "ToggleArray", void 0), i([N(cc.Node)], t.prototype, "InfoContainer", void 0), i([N(y.default)], t.prototype, "HeroElementGroup", void 0), i([N(cc.ScrollView)], t.prototype, "HeroScrollView", void 0), i([N(cc.Node)], t.prototype, "HeroContainer", void 0), i([N(cc.Label)], t.prototype, "AttrTitleLabel", void 0), i([N(cc.Node)], t.prototype, "AttrNode", void 0), i([N(cc.Node)], t.prototype, "MaterialContainer", void 0), i([N(cc.Label)], t.prototype, "DescLabel", void 0), i([N(cc.Label)], t.prototype, "MaxLevelTip", void 0), i([N(cc.Button)], t.prototype, "UnlockButton", void 0), i([N(cc.Label)], t.prototype, "UnlockLabel", void 0), i([N(cc.Button)], t.prototype, "LockButton", void 0), i([N(cc.Label)], t.prototype, "LockLabel", void 0), i([N(cc.Button)], t.prototype, "TotalButton", void 0), i([N(cc.Label)], t.prototype, "TotalLabel", void 0), i([N(cc.Button)], t.prototype, "SublimingGoBackButton", void 0), i([N(cc.Label)], t.prototype, "SublimingGoBackLabel", void 0), i([N(cc.Button)], t.prototype, "ReturnButton", void 0), i([N(cc.Node)], t.prototype, "UpgradeNode", void 0), i([N(cc.Node)], t.prototype, "LeftRedNode", void 0), i([N(cc.Node)], t.prototype, "RightRedNode", void 0), i([N(cc.Button)], t.prototype, "SublimingInfoButton", void 0), i([N(cc.Label)], t.prototype, "SublimingInfoButtonLabel", void 0), i([B], t)
        }(c.BaseUIFullScreenPanel);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../Consts/GameServerConsts": "GameServerConsts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/GameUnlockFingerListener": "GameUnlockFingerListener",
        "../Components/HeroCardComponent": "HeroCardComponent",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "./CollectionHandbookPanel": "CollectionHandbookPanel",
        "./HeroSublimingGoBackPanel": "HeroSublimingGoBackPanel"
    }],
    HeroDecomposeSettingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "15f1eKeDrlOCqgRU/HY3Hb5", "HeroDecomposeSettingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../../Auxiliary/GameRecord"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1), t.Title = null, t.Hint = null, t.Layout = null, t.OkBtn = null, t.OkBtnLabel = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "autoDecompose".ToUILocale(), this.Hint.string = "autoDecompose_hint".ToUILocale(), this.OkBtnLabel.string = "ok".ToUILocale(), this.OkBtn.node.on("click", this.OnConfirm, this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigData(), this.ConfigRules()
                }, t.prototype.ConfigData = function() {
                    this._selectStar = s.default.Instance.GetAutoDecomposeStar()
                }, t.prototype.ConfigRules = function() {
                    for (var e = 0; e < this.Layout.childrenCount; e++) {
                        var t = this.Layout.children[e],
                            n = cc.find("Info", t).getComponent(cc.Label),
                            o = void 0;
                        0 == e ? (o = e.toString(), n.string = "autoDecompose_none".ToUILocale()) : (o = (e + 1).toString(), n.string = "heroResolve_settingStar".ToUILocale().Fmt(o)), t.name = o, t.on("toggle", this.OnToggleSelect, this), this._selectStar.toString() == o && (t.getComponent(cc.Toggle).isChecked = !0)
                    }
                }, t.prototype.OnToggleSelect = function(e) {
                    this._selectStar = parseInt(e.name)
                }, t.prototype.OnConfirm = function() {
                    l.default.SetItem(l.GameRecordDefine.AutoDecomposeStar, this._selectStar), this.Close()
                }, i([p(cc.Label)], t.prototype, "Title", void 0), i([p(cc.Label)], t.prototype, "Hint", void 0), i([p(cc.Node)], t.prototype, "Layout", void 0), i([p(cc.Button)], t.prototype, "OkBtn", void 0), i([p(cc.Label)], t.prototype, "OkBtnLabel", void 0), i([u], t)
            }(a.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord"
    }],
    HeroDescPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "79b15Ul0QVNKYG4SeKyGFEW", "HeroDescPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../RedDot/RedDotManager"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1, !1), t.HeroName = null, t.MeetGiftButton = null, t.GiftRedDot = null, t.MeetGiftButtonLabel = null, t.Desc = null, t.HasReceive = null, t.HasReceiveLabel = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.HasReceiveLabel.string = "already_receive".ToUILocale(), this.MeetGiftButton.node.on("click", this.OnGiftButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._type = t[1], 0 == this._type ? this._heroId = t[0] : 1 == this._type && (this._angelId = t[0])
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), 0 == this._type ? this._heroConfig = c.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, this._heroId) : 1 == this._type && (this._angelConfig = c.ConfigDataComponent.Instance.GetConfigById(l.AngelBase_Config, this._angelId)), this.GiftRedDot.active = !0, this.SetInfo(), this.GetHeroConfig()
                }, t.prototype.SetInfo = function() {
                    if (0 == this._type) {
                        this.MeetGiftButtonLabel.string = "handbook_meetGift".ToUILocale();
                        var e = c.ConfigDataComponent.Instance.GetConfigById(l.HeroIntroduce_Config, this._heroConfig.HeroIntroduce);
                        this.HeroName.string = c.ConfigDataComponent.Instance.GetLocale("HeroBase_name_" + this._heroId), e && (this.Desc.string = e.Id.ToHeroIntroduce())
                    } else if (1 == this._type) {
                        this.MeetGiftButtonLabel.string = "angel_gift".ToUILocale();
                        var t = c.ConfigDataComponent.Instance.GetConfigById(l.AngelIntroduce_Config, this._angelConfig.AngelIntroduce);
                        this.HeroName.string = this._angelId.ToAngelTitle(), t && (this.Desc.string = t.Id.ToAngelIntroduce())
                    }
                }, t.prototype.GetHeroConfig = function() {
                    if (0 == this._type) {
                        var e = c.DataCenter.Instance.GetDataById(s.HeroInfo_Model, this._heroId);
                        null == e || this._heroConfig.StarLevel < 4 ? this.MeetGiftButton.node.parent.active = !1 : (e.IsDrawReward ? (this.HasReceive.active = !0, this.GiftRedDot.active = !1) : this.MeetGiftButton.node.parent.active = !0, this.MeetGiftButton.target.setScale(1, 1))
                    } else 1 == this._type && (c.DataCenter.Instance.GetDataById(s.UserAngel_Model, this._angelId).GetReward > 0 ? (this.HasReceive.active = !0, this.GiftRedDot.active = !1) : this.MeetGiftButton.node.parent.active = !0, this.MeetGiftButton.target.setScale(1, 1))
                }, t.prototype.OnGiftButtonClick = function() {
                    var e = this;
                    if (0 == this._type) {
                        if (c.DataCenter.Instance.GetDataById(s.HeroInfo_Model, this._heroId).IsDrawReward) return void u.UIUtlity.ShowFloatingHint("heroIntrodice_has_receive".ToUILocale());
                        (t = new s.Req_Hero_DrawReward).HeroId = this._heroId, c.RpcComponent.Instance.Call(t, function(t) {
                            u.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.HasReceive.active = !0, e.GiftRedDot.active = !1, a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_REFRESH_HANDBOOK_ITEM, e._heroId), d.RedDotManager.Instance.RefreshInstanceRedDotNode(d.RedDotManager.Instance.InstanceRedDot.HeroDescButton, {
                                Value1: e._heroId
                            })
                        })
                    } else if (1 == this._type) {
                        var t;
                        if (c.DataCenter.Instance.GetDataById(s.UserAngel_Model, this._angelId).GetReward > 0) return void u.UIUtlity.ShowFloatingHint("angel_gift_received".ToUILocale());
                        (t = new s.Req_Item_AngelGetReward).AngelId = this._angelId, c.RpcComponent.Instance.Call(t, function(t) {
                            u.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.HasReceive.active = !0, e.GiftRedDot.active = !1, d.RedDotManager.Instance.RefreshInstanceRedDotNode(d.RedDotManager.Instance.InstanceRedDot.AngelDescButton, {
                                Value1: e._angelId
                            })
                        })
                    }
                }, i([y(cc.Label)], t.prototype, "HeroName", void 0), i([y(cc.Button)], t.prototype, "MeetGiftButton", void 0), i([y(cc.Node)], t.prototype, "GiftRedDot", void 0), i([y(cc.Label)], t.prototype, "MeetGiftButtonLabel", void 0), i([y(cc.Label)], t.prototype, "Desc", void 0), i([y(cc.Node)], t.prototype, "HasReceive", void 0), i([y(cc.Label)], t.prototype, "HasReceiveLabel", void 0), i([f], t)
            }(a.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HeroDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5013ewB0/BHaYSvwgWf3Wk6", "HeroDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/HeroCardComponent"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Components/ItemClickComponent"),
            f = e("../../Components/RpcComponent"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../Components/DataCenter"),
            I = e("../../Components/ConfigData/ConfigDataComponent"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../Components/SkillItemComponent"),
            v = e("../Components/ItemComponent"),
            b = e("../../../ShareConsts/EnumType"),
            S = e("../../Components/Components"),
            w = e("../../Auxiliary/EventKeys"),
            P = e("./HeroInfoTabAttr"),
            A = e("./LuckyCharmSkillComponent"),
            T = e("./SystemSettingPanel"),
            R = e("./ItemTipsPanel"),
            L = e("../Auxiliary/UIUtlity"),
            k = cc._decorator,
            O = k.ccclass,
            M = k.property,
            D = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.SkillTag = null, t.EquipTag = null, t.LuckyCharmTag = null, t.GemTag = null, t.MoreInfoBtnLabel = null, t.CommandBtnLabel = null, t.HeroCardRoot = null, t.HeroNameLabel = null, t.BattlePowerLabel = null, t.AttrGrid = null, t.SkillGrid = null, t.SkillGrid2 = null, t.EquipGrid = null, t.LuckyCharmGrid = null, t.EquipGridNoGem = null, t.LuckyCharmGridNoGem = null, t.AttrIcons = [], t.AttrNames = [], t.AttrValues = [], t.BtnMoreInfo = null, t.PetTag = null, t.PetLine = null, t.PetNode = null, t.PetsContent = null, t.LuckyCharmNode1 = null, t.LuckyCharmNode2 = null, t.CoreNode = null, t.ScrollView = null, t.MoveDownButton = null, t.JobLineNode = null, t.JobNode = null, t.JobIcon = null, t.JobName = null, t._commonItemPrefab = null, t._heroCardPrefab = null, t._skillItemPrefab = null, t._skillItemArray = [], t._equipItemArray = [], t._luckyCharmItemArray = [], t._gemArray = [], t._heroConfig = null, t._heroCardItem = null, t._personalityStarLevel = 0, t._zone = 0, t._petNodes = [], t._luckyCharmSkillNodes = [], t._coreNodes = [], t._notShowParams = [], t._heroData = null, t._petModels = [], t._equipModels = [], t._gemModels = [], t._coreModels = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(w.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), c.Game.EventDispatcher.On(w.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnSkillItemTouch, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(w.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), c.Game.EventDispatcher.Off(w.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnSkillItemTouch, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._heroCardPrefab || null != this._skillItemPrefab ? [3, 2] : (t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.HeroCardComponent, cc.Prefab), o = this.LoadDynamicAsset(p.BundlePath.SkillItemComponent, cc.Prefab), r = this.LoadDynamicAsset(A.default.LuckyCharmSkillComponentPath, cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._commonItemPrefab = e[0], i._heroCardPrefab = e[1], i._skillItemPrefab = e[2], i._luckyCharmSkillPrefab = e[3]
                                    })]);
                                case 1:
                                    a.sent(), a.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "HeroDetail_title".ToUILocale(), this.SkillTag.string = "HeroDetail_skill".ToUILocale(), this.EquipTag.string = "HeroDetail_equip".ToUILocale(), this.LuckyCharmTag.string = "HeroDetail_luckyCharm".ToUILocale(), this.GemTag.string = "bagPanel_tab_6".ToUILocale(), this.MoreInfoBtnLabel.string = "HeroDetail_moreInfo".ToUILocale(), this.CommandBtnLabel.string = "HeroDetail_command".ToUILocale(), this.PetTag.string = "pet".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnMoreInfo.node.on("click", this.OnBtnMoreInfoClick, this), this.MoveDownButton.node.on("click", this.OnMoveDownButtonClick, this), this.ScrollView.node.on("scrolling", this.SetMoveDownButtonState, this), this.JobIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnJobIconClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroSid = t[0], null != t[1] ? this._playerUid = t[1] : this._playerUid = 0, t[2] && (this._zone = t[2]), t[3] && (this._notShowParams = t[3]), this._gemMode = _.default.Instance.IsGameModuleOpen(b.GameModuleType.Gem), this._isPetOpen = _.default.Instance.IsGameModuleOpen(b.GameModuleType.Pet), this.GemTag.node.active = this._gemMode, this.LuckyCharmTag.node.active = !this.GemTag.node.active, this._isSelf = !(this._playerUid > 0 && this._playerUid != m.DataCenter.Instance.Uid)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadGlobalSetting()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || this.SetMoveDownButtonTween(), this._playerUid <= 0 ? (this.LoadUserDataAndConfig(), this.LoadHeroCard(), this.SetJobNode(), this.LoadSkillItem(), this.LoadEquipItem(), this.LoadGemItem(), this.LoadPetItem(), this.LoadLuckyCharmItem(), this.LoadCoreItem(), this.SetHeroInfo()) : this.RequestHeroDetailInfo()
                }, t.prototype.RequestHeroDetailInfo = function() {
                    var e = new g.Req_Player_GetHeroDetailInfo;
                    e.Uid = this._playerUid, e.HeroSid = this._heroSid, f.RpcComponent.Instance.Call(e, this.ResponseHeroDetailInfo.bind(this))
                }, t.prototype.ResponseHeroDetailInfo = function(e) {
                    this._heroData = e.Info.Hero, this._heroAttrs = this._heroData.Attrs, this._personalityStarLevel = e.Info.HeroInfo.PersonalityStar, this._petModels = e.Info.Pets, this._heroConfig = I.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, this._heroData.HeroId), this._equipModels = [null, null, null, null];
                    for (var t = 0; t < e.Info.Equipments.length; t++) {
                        var n = e.Info.Equipments[t].ItemId,
                            o = I.ConfigDataComponent.Instance.GetConfigById(y.ItemEquipment_Config, n).Type - 1;
                        this._equipModels[o] = e.Info.Equipments[t]
                    }
                    for (t = 0; t < e.Info.HolyEquipments.length; t++) n = e.Info.HolyEquipments[t].ItemId, o = I.ConfigDataComponent.Instance.GetConfigById(y.HolyEquipment_Config, n).Type - 1, this._equipModels[o] = e.Info.HolyEquipments[t];
                    for (this._luckyCharmModels = [null, null], t = 0; t < e.Info.luckyCharms.length; t++) this._luckyCharmModels[e.Info.luckyCharms[t].SlotId - 1] = e.Info.luckyCharms[t];
                    if (this._gemMode) {
                        for (this._gemModels = [null, null, null, null, null, null], t = 0; t < e.Info.GemEquips.length; t++) this._gemModels[e.Info.GemEquips[t].SlotId - 1] = e.Info.GemEquips[t];
                        for (o = 0; o < this._gemModels.length; o++) {
                            var r = cc.instantiate(this._commonItemPrefab);
                            r.setParent(this.LuckyCharmGrid.node), this._gemArray[o] = r.getComponent(v.ItemComponent)
                        }
                    }
                    for (this._coreModels = [], t = 0; t < e.Info.Cores.length; t++) this._coreModels.push(e.Info.Cores[t]);
                    this.SetJobNode(), this.LoadSkillItem(), this.LoadEquipItem(), this.LoadLuckyCharmItem(), this.LoadPetItem(), this.LoadCoreItem(), this._gemMode && this.LoadGemItem(), this.SetHeroInfo(), this.LoadHeroCard()
                }, t.prototype.LoadGlobalSetting = function() {
                    this._luckyCharmUnlockInfo = [], this._luckyCharmUnlockInfo[0] = I.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmSlot1UnlockLevel"), this._luckyCharmUnlockInfo[1] = I.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmSlot2UnlockStarLevel")
                }, t.prototype.LoadUserDataAndConfig = function() {
                    var e = this;
                    this._heroData = m.DataCenter.Instance.GetDataById(g.UserHero_Model, this._heroSid), this._heroAttrs = this._heroData.Attrs, this._heroConfig = I.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, this._heroData.HeroId);
                    var t = m.DataCenter.Instance.GetHeroEquips(this._heroSid);
                    this._equipModels = [null, null, null, null], this._gemModels = [null, null, null, null, null, null], this._petModels = [];
                    var n = m.DataCenter.Instance.GetHeroPet(this._heroSid);
                    n.length > 0 && n.forEach(function(t) {
                        var n = m.DataCenter.Instance.GetDataById(g.UserPet_Model, t);
                        e._petModels.push(n)
                    });
                    for (var o = 0; o < t.length; o++)
                        if ((s = t[o]) > 0) {
                            var r = m.DataCenter.Instance.GetDataById(g.Equipment_Model, s);
                            this._equipModels[o] = r
                        } var i = m.DataCenter.Instance.GetHeroHolyEquips(this._heroSid);
                    for (o = 0; o < i.length; o++)(s = i[o]) > 0 && (r = m.DataCenter.Instance.GetDataById(g.HolyEquipment_Model, s), this._equipModels[o] = r);
                    var a = m.DataCenter.Instance.GetHeroLuckCharmEquips(this._heroSid);
                    for (this._luckyCharmModels = [null, null], o = 0; o < a.length; o++) {
                        var s;
                        if ((s = a[o]) > 0) {
                            var l = m.DataCenter.Instance.GetDataById(g.LuckyCharmEquip_Model, s);
                            this._luckyCharmModels[l.SlotId - 1] = l
                        }
                    }
                    var c = _.default.FilterGemsBySid(this._heroSid);
                    for (o = 0; o < c.length; o++) this._gemModels[c[o].SlotId - 1] = c[o];
                    for (var u = 0; u < this._gemModels.length; u++)
                        if (!this._gemArray[u]) {
                            var p = cc.instantiate(this._commonItemPrefab);
                            p.setParent(this.LuckyCharmGrid.node), this._gemArray[u] = p.getComponent(v.ItemComponent)
                        } var d = m.DataCenter.Instance.GetDataById(g.HeroInfo_Model, this._heroData.HeroId);
                    this._personalityStarLevel = d && d.PersonalityStar ? d.PersonalityStar : 0, this._coreModels = [];
                    var h = m.DataCenter.Instance.GetHeroCores(this._heroSid);
                    h.length > 0 && h.forEach(function(t) {
                        var n = m.DataCenter.Instance.GetDataById(g.PowerCore_Model, t);
                        e._coreModels.push(n)
                    })
                }, t.prototype.LoadHeroCard = function() {
                    null == this._heroCardItem && (this._heroCardItem = cc.instantiate(this._heroCardPrefab).getComponent(u.default), this._heroCardItem.node.removeComponent(h.default), this._heroCardItem.node.parent = this.HeroCardRoot), this._heroCardItem.Init(this._heroData, this._personalityStarLevel), this._heroCardItem.SetRedDotState(!1)
                }, t.prototype.SetJobNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = _.default.Instance.IsGameModuleUnlock(b.GameModuleType.HeroJob)[0], t = _.default.Instance.IsGameModuleOpen(b.GameModuleType.HeroJob), this.JobLineNode.active = t && e && this._heroData.Job > 0, this.JobNode.active = t && e && this._heroData.Job > 0, t && e && this._heroData.Job > 0 ? (this.JobName.string = this._heroData.Job.ToHeroJobName(), [4, this.LoadDynamicAsset("HeroJobChangePanel/JobIcons/" + this._heroData.Job, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    if (n = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this.JobIcon.spriteFrame = n, o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetHeroInfo = function() {
                    this.HeroNameLabel.string = this._heroData.HeroId.ToHeroName(), this.BattlePowerLabel.string = this._heroData.Power.toString();
                    for (var e = 0; e < this.AttrGrid.node.children.length; e++) this.AttrGrid.node.children[e].active = !1;
                    for (e = 0; e < this._heroConfig.Attrs.length; e++) {
                        this.AttrGrid.node.children[e].active = !0;
                        var t = e,
                            n = this._heroAttrs[e],
                            o = _.default.GetHeroAttribute(t, n);
                        this.AttrIcons[e].spriteFrame = o.Icon, this.AttrNames[e].string = o.Name, this.AttrValues[e].string = o.Value
                    }
                }, t.prototype.LoadSkillItem = function() {
                    this._heroData.TemplePosition > 0 ? this._currentHeroLevel = this._heroData.TempleLevel : this._currentHeroLevel = this._heroData.Level;
                    for (var e = _.default.GetHeroSkills(this._heroData.HeroId, this._currentHeroLevel, this._heroData.StarLevel), t = e.length, n = 0; n < this._skillItemArray.length; n++) this._skillItemArray[n].node.active = !1;
                    for (n = 0; n < t; n++) {
                        if (null == this._skillItemArray[n]) {
                            var o = cc.instantiate(this._skillItemPrefab).getComponent(C.default);
                            o.node.parent = this.SkillGrid.node, this._skillItemArray[n] = o
                        }
                        this._skillItemArray[n].Init(e[n].SkillId, e[n].Level), e[n].Active ? this._skillItemArray[n].OffIconGray() : this._skillItemArray[n].OnIconGray(), this._skillItemArray[n].node.active = !0
                    }
                    for (n = t; n < this.SkillGrid.node.childrenCount; n++) this.SkillGrid.node.children[n].active = !1;
                    if (this._heroConfig.MaxStarLevel >= P.default.SHOW_LUCKYCHRAM_STARLEVEL) {
                        var r = I.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroLuckyCharmUnlock1"),
                            i = I.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroLuckyCharmUnlock2");
                        for (n = 0; n < 2; n++) {
                            if (!this._luckyCharmSkillNodes[n]) {
                                var a = cc.instantiate(this._luckyCharmSkillPrefab);
                                a.parent = this.SkillGrid2.node, this._luckyCharmSkillNodes[n] = a
                            }
                            this._luckyCharmSkillNodes[n].active = !0, this._luckyCharmSkillNodes[n].scale = 1.07, this._luckyCharmSkillNodes[n].y = -27;
                            var s = this._luckyCharmSkillNodes[n].getComponent(A.default);
                            n > 0 ? this._heroData.StarLevel >= i ? this._heroData.LuckSkill2 ? !this._isSelf && this._notShowParams[T.PrivateType.Skill] > 0 ? s.InitAdd() : s.InitById(this._heroData.LuckSkill2, !1, !1) : s.InitAdd() : (s.InitLock(), s.SetDesc("heroSkill_open_star".ToUILocale().Fmt(i))) : this._heroData.StarLevel >= r ? this._heroData.LuckSkill1 ? !this._isSelf && this._notShowParams[T.PrivateType.Skill] > 0 ? s.InitAdd() : s.InitById(this._heroData.LuckSkill1, !1, !1) : s.InitAdd() : (s.InitLock(), s.SetDesc("heroSkill_open_star".ToUILocale().Fmt(r)))
                        }
                        for (n = 2; n < this.SkillGrid2.node.childrenCount; n++) this.SkillGrid2.node.children[n].active = !1
                    }
                }, t.prototype.LoadEquipItem = function() {
                    for (var e = 0; e < this._equipItemArray.length; e++) this._equipItemArray[e].node.active = !1;
                    var t = this._equipModels.length,
                        n = this._gemMode ? this.EquipGrid.node : this.EquipGridNoGem.node;
                    for (e = 0; e < t; e++) {
                        var o = cc.instantiate(this._commonItemPrefab).getComponent(v.ItemComponent);
                        o.node.parent = n, this._equipItemArray[e] = o
                    }
                    for (e = 0; e < this._equipItemArray.length; e++) {
                        var r = this._equipItemArray[e];
                        if (this._equipModels[e]) {
                            if (!this._isSelf && this._notShowParams[T.PrivateType.Equip] > 0) r.SetItemSimpleState(), r.SetCustomIcon(L.UIUtlity.COMMON_ATLAS4.getSpriteFrame("equip_" + (e + 1)));
                            else if (this._equipModels[e] instanceof g.HolyEquipment_Model) r.Init({
                                ItemId: this._equipModels[e].ItemId,
                                StarLevel: this._equipModels[e].Star,
                                URStarLevel: this._equipModels[e].Step
                            }, v.ItemComponentType.ItemWithStar), this._equipModels[e].GallerySlot && r.SetHolyEquipmentTag(!0);
                            else if (this._equipModels[e] instanceof g.Equipment_Model) {
                                var i = I.ConfigDataComponent.Instance.GetConfigById(y.ItemEquipment_Config, this._equipModels[e].ItemId);
                                r.Init({
                                    ItemId: this._equipModels[e].ItemId,
                                    StarLevel: i.Star
                                }, v.ItemComponentType.ItemWithStar)
                            }
                        } else r.SetItemSimpleState(), r.SetCustomIcon(L.UIUtlity.COMMON_ATLAS4.getSpriteFrame("equip_" + (e + 1)))
                    }
                }, t.prototype.LoadLuckyCharmItem = function() {
                    for (var e = 0; e < this._luckyCharmItemArray.length; e++) this._luckyCharmItemArray[e].node.active = !1;
                    var t = [this.LuckyCharmNode1, this.LuckyCharmNode2],
                        n = this._luckyCharmModels.length;
                    for (e = 0; e < n; e++) {
                        if (!this._luckyCharmItemArray[e]) {
                            var o = cc.instantiate(this._commonItemPrefab).getComponent(v.ItemComponent);
                            this._luckyCharmItemArray[e] = o
                        }
                        t[e] && (this._luckyCharmItemArray[e].node.parent = t[e])
                    }
                    for (this._luckyCharmUnlockStates = [], this._currentHeroLevel < this._luckyCharmUnlockInfo[0] ? this._luckyCharmUnlockStates[0] = !1 : this._luckyCharmUnlockStates[0] = !0, this._heroData.StarLevel < this._luckyCharmUnlockInfo[1] ? this._luckyCharmUnlockStates[1] = !1 : this._luckyCharmUnlockStates[1] = !0, e = 0; e < this._luckyCharmItemArray.length; e++) {
                        var r = this._luckyCharmItemArray[e];
                        this._luckyCharmModels[e] ? !this._isSelf && this._notShowParams[T.PrivateType.Equip] > 0 ? (r.SetItemSimpleState(), r.SetCustomIcon(L.UIUtlity.COMMON_ATLAS5.getSpriteFrame("equip_luckyCharm"))) : this._luckyCharmModels[e].ItemId >= b.CommonItemId.PrimordialLuckyCharm ? r.Init(this._luckyCharmModels[e], v.ItemComponentType.LuckyCharm) : r.Init({
                            Sid: this._luckyCharmModels[e].Sid,
                            ItemId: this._luckyCharmModels[e].ItemId
                        }, v.ItemComponentType.ItemCommon) : (r.SetItemSimpleState(), r.SetCustomIcon(L.UIUtlity.COMMON_ATLAS5.getSpriteFrame("equip_luckyCharm"))), r.node.name = e.toString(), this._luckyCharmUnlockStates[e] ? r.SetLockFlag(!1) : r.SetLockFlag(!0, "lock_yellow")
                    }
                }, t.prototype.LoadGemItem = function() {
                    for (var e = S.ConfigCacheComponent.Instance.GetGemUnlockData(), t = 0; t < this._gemModels.length; t++)
                        if (this._gemArray[t].node.name = t.toString(), this._gemArray[t].SetItemSimpleState(), this._gemModels[t]) !this._isSelf && this._notShowParams[T.PrivateType.Gem] > 0 ? this._gemArray[t].SetAddFlagState(!0) : (this._gemArray[t].node.active = !0, this._gemArray[t].Init(this._gemModels[t], v.ItemComponentType.Gem));
                        else {
                            this._gemArray[t] && this._gemArray[t].SetAddFlagState(!0);
                            var n = t + 1;
                            this._heroData.StarLevel < e[n] && (this._gemArray[t].SetAddFlagState(!1), this._gemArray[t].SetLockFlag(!0, "lock_yellow"))
                        }
                }, t.prototype.LoadPetItem = function() {
                    var e = this;
                    if (!this._isPetOpen) return this.PetLine.active = !1, void(this.PetNode.active = !1);
                    this.PetLine.active = this._petModels.length > 0, this.PetNode.active = this._petModels.length > 0, this._petModels.length > 0 && (this._petNodes.forEach(function(e) {
                        e.active = !1
                    }), this._petModels.forEach(function(t, n) {
                        if (!e._petNodes[n]) {
                            var o = cc.instantiate(e._commonItemPrefab);
                            o.parent = e.PetsContent, e._petNodes[n] = o
                        }
                        e._petNodes[n].active = !0, !e._isSelf && e._notShowParams[T.PrivateType.Pet] > 0 ? e._petNodes[n].getComponent(v.ItemComponent).SetItemSimpleState() : e._petNodes[n].getComponent(v.ItemComponent).Init(t, v.ItemComponentType.Pet)
                    }))
                }, t.prototype.LoadCoreItem = function() {
                    var e = this;
                    if (this._coreNodes.forEach(function(e) {
                            e.active = !1
                        }), this._coreModels.length > 0) this._coreModels.forEach(function(t, n) {
                        if (!e._coreNodes[n]) {
                            var o = cc.instantiate(e._commonItemPrefab);
                            o.parent = e.CoreNode, e._coreNodes[n] = o
                        }
                        e._coreNodes[n].active = !0;
                        var r = e._coreNodes[n].getComponent(v.ItemComponent);
                        if (!e._isSelf && e._notShowParams[T.PrivateType.Equip] > 0) r.SetItemSimpleState();
                        else {
                            var i = I.ConfigDataComponent.Instance.GetConfigById(y.PowerCore_Config, t.ItemId);
                            r.Init({
                                ItemId: i.Id,
                                StarLevel: i.Star,
                                Sid: t.Sid
                            }, v.ItemComponentType.ItemWithStar)
                        }
                    });
                    else {
                        if (!this._coreNodes[0]) {
                            var t = cc.instantiate(this._commonItemPrefab);
                            t.parent = this.CoreNode, this._coreNodes[0] = t
                        }
                        this._coreNodes[0].active = !0;
                        var n = this._coreNodes[0].getComponent(v.ItemComponent);
                        n.SetItemSimpleState(), n.SetCustomIcon(L.UIUtlity.COMMON_ATLAS5.getSpriteFrame("EquipmentCoreBg"))
                    }
                }, t.prototype.OnBtnMoreInfoClick = function() {
                    this._playerUid > 0 ? d.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroAttributePanel.Path, this._heroData, !0) : d.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroAttributePanel.Path, this._heroData, !1)
                }, t.prototype.OnMoveDownButtonClick = function() {
                    var e = this.ScrollView.getScrollOffset().y + 300;
                    this.ScrollView.scrollToOffset(cc.v2(this.ScrollView.getScrollOffset().x, e), .2)
                }, t.prototype.SetMoveDownButtonState = function() {
                    Math.round(Math.abs(this.ScrollView.getScrollOffset().y)) >= this.ScrollView.getMaxScrollOffset().y ? this.MoveDownButton.node.active = !1 : this.MoveDownButton.node.active = !0
                }, t.prototype.OnJobIconClick = function() {
                    this._heroData.Job > 0 && c.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemTipPanel.Path, this._heroData.Job, this.JobIcon.node, R.ItemTipsOtherType.HeroJob)
                }, t.prototype.OnClickItem = function(e, t) {
                    var n = t.getComponent(v.ItemComponent);
                    if (this._equipItemArray.includes(n))(i = this._equipModels.find(function(e) {
                        return e && e.ItemId == n.ItemId
                    })) && i instanceof g.HolyEquipment_Model ? c.UIManager.Instance.ShowUIPanel(p.PanelConfig.HolyEquipTipPanel.Path, {}, t, i) : n.ShowItemTip();
                    else if (this._luckyCharmItemArray.includes(n)) {
                        if (n.ItemSid > 0)(i = this._luckyCharmModels.find(function(e) {
                            return e.Sid == n.ItemSid
                        })) && c.UIManager.Instance.ShowUIPanel(p.PanelConfig.LuckyCharmTipsPanel.Path, i, t);
                        else if (!this._luckyCharmUnlockStates[e]) {
                            var o = this._luckyCharmUnlockInfo[e];
                            L.UIUtlity.ShowFloatingHint(("equip_luckyCharm_unlock_tag" + (e + 1)).ToUILocale().Fmt(o))
                        }
                    } else if (this._gemArray.includes(n))
                        if (n.ItemSid > 0)(i = this._gemModels.find(function(e) {
                            return e && e.Sid == n.ItemSid
                        })) && c.UIManager.Instance.ShowUIPanel(p.PanelConfig.GemTipPanel.Path, i, t);
                        else {
                            var r = S.ConfigCacheComponent.Instance.GetGemUnlockData();
                            this._heroData.StarLevel < r[e + 1] && L.UIUtlity.ShowFloatingHint("equip_luckyCharm_unlock_tag2".ToUILocale().Fmt(r[e + 1]))
                        }
                    else if (this._coreNodes.includes(t)) n.ItemSid > 0 && (i = this._coreModels.find(function(e) {
                        return e.Sid == n.ItemSid
                    })) && c.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemWithModelTipsPanel.Path, i, t);
                    else if (this._petNodes.includes(t)) {
                        var i;
                        n.ItemSid > 0 && (i = this._petModels.find(function(e) {
                            return e.Sid == n.ItemSid
                        })) && c.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemWithModelTipsPanel.Path, i, t)
                    }
                }, t.prototype.OnSkillItemTouch = function(e) {
                    if (-1 != this._luckyCharmSkillNodes.indexOf(e.node)) {
                        var t = e.GetSkillId();
                        t > 0 && c.UIManager.Instance.ShowUIPanel(p.PanelConfig.LuckyCharmSkillTip.Path, t, e.node)
                    }
                }, t.prototype.SetMoveDownButtonTween = function() {
                    cc.tween(this.MoveDownButton.node).tag(p.PanelConfig.CollectionPavilionPanel.Id).repeatForever(cc.tween().to(1, {
                        y: -710
                    }).to(1, {
                        y: -750
                    })).start()
                }, i([M(cc.Label)], t.prototype, "Title", void 0), i([M(cc.Label)], t.prototype, "SkillTag", void 0), i([M(cc.Label)], t.prototype, "EquipTag", void 0), i([M(cc.Label)], t.prototype, "LuckyCharmTag", void 0), i([M(cc.Label)], t.prototype, "GemTag", void 0), i([M(cc.Label)], t.prototype, "MoreInfoBtnLabel", void 0), i([M(cc.Label)], t.prototype, "CommandBtnLabel", void 0), i([M(cc.Node)], t.prototype, "HeroCardRoot", void 0), i([M(cc.Label)], t.prototype, "HeroNameLabel", void 0), i([M(cc.Label)], t.prototype, "BattlePowerLabel", void 0), i([M(cc.Layout)], t.prototype, "AttrGrid", void 0), i([M(cc.Layout)], t.prototype, "SkillGrid", void 0), i([M(cc.Layout)], t.prototype, "SkillGrid2", void 0), i([M(cc.Layout)], t.prototype, "EquipGrid", void 0), i([M(cc.Layout)], t.prototype, "LuckyCharmGrid", void 0), i([M(cc.Layout)], t.prototype, "EquipGridNoGem", void 0), i([M(cc.Layout)], t.prototype, "LuckyCharmGridNoGem", void 0), i([M(cc.Sprite)], t.prototype, "AttrIcons", void 0), i([M(cc.Label)], t.prototype, "AttrNames", void 0), i([M(cc.Label)], t.prototype, "AttrValues", void 0), i([M(cc.Button)], t.prototype, "BtnMoreInfo", void 0), i([M(cc.Label)], t.prototype, "PetTag", void 0), i([M(cc.Node)], t.prototype, "PetLine", void 0), i([M(cc.Node)], t.prototype, "PetNode", void 0), i([M(cc.Node)], t.prototype, "PetsContent", void 0), i([M(cc.Node)], t.prototype, "LuckyCharmNode1", void 0), i([M(cc.Node)], t.prototype, "LuckyCharmNode2", void 0), i([M(cc.Node)], t.prototype, "CoreNode", void 0), i([M(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([M(cc.Button)], t.prototype, "MoveDownButton", void 0), i([M(cc.Node)], t.prototype, "JobLineNode", void 0), i([M(cc.Node)], t.prototype, "JobNode", void 0), i([M(cc.Sprite)], t.prototype, "JobIcon", void 0), i([M(cc.Label)], t.prototype, "JobName", void 0), i([O], t)
            }(l.BaseUIPanel);
        n.default = D, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeroCardComponent": "HeroCardComponent",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./HeroInfoTabAttr": "HeroInfoTabAttr",
        "./ItemTipsPanel": "ItemTipsPanel",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent",
        "./SystemSettingPanel": "SystemSettingPanel"
    }],
    HeroDungeonEndRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7bb78roCsJNnq4PUEizAUpc", "HeroDungeonEndRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroDungeonEndRewardsPanel = n.RewardPanelSpineType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/DisplayRewardsComponent"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.BoxSpine = 1] = "BoxSpine"
        })(l = n.RewardPanelSpineType || (n.RewardPanelSpineType = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.PopUp, !0, !1, !0), t.Content = null, t.Bg = null, t.Light = null, t.SpineContainer = null, t.TitleNode = null, t.EffectMaskNode = null, t.Button1 = null, t.Button2 = null, t.Button1Label = null, t.Button2Label = null, t._configData = null, t._sweepId = 0, t
            }
            return r(t, e), t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Button1Label.string = "close".ToUILocale(), this.Button2Label.string = "heroDungeon_sweep".ToUILocale(), this.EffectMaskNode.on(cc.Node.EventType.TOUCH_END, this.OnEffectMaskTouch, this), this.Button1.node.on(cc.Node.EventType.TOUCH_END, this.OnBtn1Click, this), this.Button2.node.on(cc.Node.EventType.TOUCH_END, this.OnBtn2Click, this)
            }, t.prototype.InitData = function(e) {
                this._rewardData = e[0], e.length > 1 ? this._spineType = e[1] : this._spineType = l.None, this._configData = e[2], this._sweepId = e[3], this.EffectMaskNode.active = this._spineType == l.BoxSpine
            }, t.prototype.DisPlay = function(t) {
                if (void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), !t) switch (this._spineType) {
                    case l.BoxSpine:
                        this.PlayBoxEffect();
                        break;
                    default:
                        this.SpineContainer.active = !1, this.RenderContent()
                }
            }, t.prototype.PlayBoxEffect = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this.Bg.active = !1, this.Light.active = !1, this.TitleNode.active = !1, this.Content.active = !1, this._boxSpine ? [3, 2] : [4, this.LoadDynamicAsset("HintPanel/Spine/BoxSpine")];
                            case 1:
                                if (e = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                (t = cc.instantiate(e)).setParent(this.SpineContainer), this._boxSpine = t.getComponent(sp.Skeleton), o.label = 2;
                            case 2:
                                return this.SpineContainer.active = !0, this._boxSpine.setAnimation(0, this._boxSpine.animation, !1), setTimeout(function() {
                                    n.isValid && !n.Bg.active && (n.EffectMaskNode.active = !1, n.RenderContent())
                                }, 1e3), [2]
                        }
                    })
                })
            }, t.prototype.RenderContent = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.Bg.active = !0, this.Light.active = !0, this.TitleNode.active = !0, this.Content.active = !0, void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(u.BundlePath.DisplayRewardsComponent)]);
                            case 1:
                                if (e._displayRewardPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                n.label = 2;
                            case 2:
                                return t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(p.DisplayRewardsComponent), this.Content.addChild(t), this._rewardComponent.Init(this._rewardData, this.Content.height), [2]
                        }
                    })
                })
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), this._rewardComponent && this._rewardComponent.Dispose(), this.Content && this.Content.destroyAllChildren()
            }, t.prototype.OnEffectMaskTouch = function() {
                this.EffectMaskNode.active = !1, this.RenderContent()
            }, t.prototype.OnBtn1Click = function() {
                this.Close()
            }, t.prototype.OnBtn2Click = function() {
                if (!y.default.CheckActivityIsEnd(this._configData.Common, !0)) {
                    var e = h.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._configData._id),
                        t = 0;
                    if (e && e.IntArray && e.IntArray[1] && (t = e.IntArray[1]), t >= this._configData.CustomPart.Count) f.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale());
                    else {
                        var n = new d.Req_Activity_HeroDungeonQuickBattle;
                        n.ActivityId = this._configData._id, n.MapId = this._sweepId, h.RpcComponent.Instance.Call(n, function(e) {
                            this.Close(), c.UIManager.Instance.ShowUIPanel(u.PanelConfig.HeroDungeonEndRewardsPanel.Path, e.Rewards, null, this._configData, this._sweepId)
                        }.bind(this))
                    }
                }
            }, i([I(cc.Node)], t.prototype, "Content", void 0), i([I(cc.Node)], t.prototype, "Bg", void 0), i([I(cc.Node)], t.prototype, "Light", void 0), i([I(cc.Node)], t.prototype, "SpineContainer", void 0), i([I(cc.Node)], t.prototype, "TitleNode", void 0), i([I(cc.Node)], t.prototype, "EffectMaskNode", void 0), i([I(cc.Button)], t.prototype, "Button1", void 0), i([I(cc.Button)], t.prototype, "Button2", void 0), i([I(cc.Label)], t.prototype, "Button1Label", void 0), i([I(cc.Label)], t.prototype, "Button2Label", void 0), i([m], t)
        }(c.BaseUIPanel);
        n.HeroDungeonEndRewardsPanel = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/DisplayRewardsComponent": "DisplayRewardsComponent"
    }],
    HeroDungeonHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1857c4a98lG6J+EMm6/8iEW", "HeroDungeonHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GameRecord"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.TitleLabel = null, t.InfoLabel = null, t.CacelLabel = null, t.OKLabel = null, t.CancelBtn = null, t.OKBtn = null, t.CheckToggle = null, t.CheckLabel = null, t._content = "", t._activityId = 0, t._callback = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "hint".ToUILocale(), this.CacelLabel.string = "cancel".ToUILocale(), this.OKLabel.string = "ok".ToUILocale(), this.CheckLabel.string = "heroDungeon_hint".ToUILocale(), this.CancelBtn.node.on("click", this.OnCancel, this), this.OKBtn.node.on("click", this.OnConfirm, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._content = t[0], this._activityId = t[1], this._callback = t[2]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.CheckToggle.isChecked = !1
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.InfoLabel.string = this._content
                }, t.prototype.OnCancel = function() {
                    a.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnConfirm = function() {
                    if (a.UIManager.Instance.BackUIPanel(), this.CheckToggle.isChecked) {
                        var e = s.default.GetItem(s.GameRecordDefine.HeroDungeonHint),
                            t = void 0;
                        (t = e ? JSON.parse(e) : {})[this._activityId] = 1, s.default.SetItem(s.GameRecordDefine.HeroDungeonHint, JSON.stringify(t))
                    }
                    this._callback && this._callback()
                }, i([u(cc.Label)], t.prototype, "TitleLabel", void 0), i([u(cc.RichText)], t.prototype, "InfoLabel", void 0), i([u(cc.Label)], t.prototype, "CacelLabel", void 0), i([u(cc.Label)], t.prototype, "OKLabel", void 0), i([u(cc.Button)], t.prototype, "CancelBtn", void 0), i([u(cc.Button)], t.prototype, "OKBtn", void 0), i([u(cc.Toggle)], t.prototype, "CheckToggle", void 0), i([u(cc.Label)], t.prototype, "CheckLabel", void 0), i([c], t)
            }(a.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GameRecord": "GameRecord"
    }],
    HeroDungeonListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f371bW0o4dDlJwNaj7AS9yt", "HeroDungeonListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroDungeonState = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/ItemComponent"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Components/Components"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../../Components/Components"),
            v = e("../../Auxiliary/GameRecord"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.LOCKED = 0] = "LOCKED", e[e.ONGOING = 1] = "ONGOING", e[e.FINISHED = 2] = "FINISHED"
        })(l = n.HeroDungeonState || (n.HeroDungeonState = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LevelLabel = null, t.RewardNode = null, t.FightPower = null, t.SweepButton = null, t.SweepLabel = null, t.ChallengeButton = null, t.ChallengeLabel = null, t.LockButton = null, t.LockLabel = null, t._hasClear = 0, t._data = null, t._rewardNodes = [], t._itemPrefab = null, t._configData = null, t._loadAssets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.InitUI = function(e, t, n) {
                this._data = e, this._hasClear = t, this._configData = n, this.InitBtns(), this.SetState(), this.SetInfo(), this.SetRewards()
            }, t.prototype.InitBtns = function() {
                this.SweepButton.node.active = !1, this.ChallengeButton.node.active = !1, this.LockButton.node.active = !1, this.SweepLabel.string = "dailyInstance_mop".ToUILocale(), this.ChallengeLabel.string = "SeniorArenaChallengeConfirm".ToUILocale(), this.LockLabel.string = "dailyInstance_unopen".ToUILocale(), this.SweepButton.node.on("click", this.OnSweepButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.LockButton.node.on("click", this.OnLockButtonClick, this)
            }, t.prototype.SetState = function() {
                this._state = this._data.Id <= this._hasClear ? l.FINISHED : this._data.Id - this._hasClear == 1 ? l.ONGOING : l.LOCKED
            }, t.prototype.SetInfo = function() {
                this.LevelLabel.string = "level".ToUILocale().Fmt(this._data.Id), this.FightPower.string = "heroDungeon_recommend".ToUILocale().Fmt(this._data.RecommendPower), this.SweepButton.node.active = this._state == l.FINISHED, this.ChallengeButton.node.active = this._state == l.ONGOING, this.LockButton.node.active = this._state == l.LOCKED
            }, t.prototype.SetRewards = function() {
                return a(this, void 0, void 0, function() {
                    var e, t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._itemPrefab ? [3, 2] : [4, h.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent)];
                            case 1:
                                if (e = n.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._itemPrefab = e, this._loadAssets.push(e), n.label = 2;
                            case 2:
                                return this._data.Rewards.forEach(function(e, n) {
                                    var o = e.Items[0],
                                        r = e.Items[1];
                                    if (!t._rewardNodes[n]) {
                                        var i = cc.instantiate(t._itemPrefab);
                                        i.parent = t.RewardNode, t._rewardNodes[n] = i
                                    }
                                    t._rewardNodes[n].active = !0, t._rewardNodes[n].getComponent(d.ItemComponent).Init({
                                        ItemId: o,
                                        Count: r
                                    }, d.ItemComponentType.ItemCommon), t._state == l.LOCKED ? t._rewardNodes[n].getComponent(d.ItemComponent).SetLockFlag(!0) : t._rewardNodes[n].getComponent(d.ItemComponent).SetLockFlag(!1)
                                }), [2]
                        }
                    })
                })
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.RewardNode.children.indexOf(t) && g.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
            }, t.prototype.OnSweepButtonClick = function() {
                var e = v.default.GetItem(v.GameRecordDefine.HeroDungeonHint),
                    t = !1;
                e && JSON.parse(e)[this._configData._id] || (t = !0), t ? c.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroDungeonHintPanel.Path, "heroDungeon_hint_sweep".ToUILocale().Fmt(this._data.Id), this._configData._id, this.SweepLevel.bind(this)) : this.SweepLevel()
            }, t.prototype.SweepLevel = function() {
                var e = this,
                    t = 0,
                    n = m.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id),
                    o = I.default.Instance.ComputeDeadTime(this._configData.Common);
                if (m.RpcComponent.Instance.ServerTime > o) g.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                else if (n && n.IntArray && n.IntArray[1] && (t = n.IntArray[1]), t >= this._configData.CustomPart.Count) g.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale());
                else {
                    var r = this._data.Id,
                        i = new u.Req_Activity_HeroDungeonQuickBattle;
                    i.ActivityId = this._configData._id, i.MapId = r, m.RpcComponent.Instance.Call(i, function(t) {
                        c.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroDungeonEndRewardsPanel.Path, t.Rewards, null, e._configData, r)
                    })
                }
            }, t.prototype.OnChallengeButtonClick = function() {
                var e = 0,
                    t = m.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id),
                    n = I.default.Instance.ComputeDeadTime(this._configData.Common);
                if (m.RpcComponent.Instance.ServerTime > n) g.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                else if (t && t.IntArray && t.IntArray[1] && (e = t.IntArray[1]), e >= this._configData.CustomPart.Count) g.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale());
                else {
                    var o = this._configData.Maps.length > 0 ? this._configData.Maps[0].MapId : 0;
                    if (o) {
                        var r = C.ConfigDataComponent.Instance.GetConfigById(_.MapBase_Config, o);
                        r && c.Game.EventDispatcher.Emit(p.GameEventIds.StartBattle.Fmt(r.Type), this._data.MapId, this._configData)
                    }
                }
            }, t.prototype.OnLockButtonClick = function() {
                g.UIUtlity.ShowFloatingHint("abyss_stage_lockedStage".ToUILocale())
            }, t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([w(cc.Label)], t.prototype, "LevelLabel", void 0), i([w(cc.Node)], t.prototype, "RewardNode", void 0), i([w(cc.Label)], t.prototype, "FightPower", void 0), i([w(cc.Button)], t.prototype, "SweepButton", void 0), i([w(cc.Label)], t.prototype, "SweepLabel", void 0), i([w(cc.Button)], t.prototype, "ChallengeButton", void 0), i([w(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([w(cc.Button)], t.prototype, "LockButton", void 0), i([w(cc.Label)], t.prototype, "LockLabel", void 0), i([S], t)
        }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroDungeonPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b9cbdwcesBBbKecWJSu4j1w", "HeroDungeonPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/CustomLayout"),
            h = e("../Components/SmallRankListComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("./HeroDungeonListItem"),
            v = e("../Battle/BattleManager"),
            b = e("../../Components/Components"),
            S = e("../../../Consts/Consts"),
            w = e("../../Auxiliary/GameRecord"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.TimeLabel = null, t.RealTimeLabel = null, t.Banner = null, t.CurHeroLabel = null, t.UpLabel = null, t.UpButton = null, t.UpHeroNode = null, t.StageScrollView = null, t.StageScrollViewCustomLayout = null, t.CurMaxLevelDescLabel = null, t.CurMaxLevelValueLabel = null, t.CurMaxLevelNoClearLabel = null, t.CurRankDescLabel = null, t.CurRankValueLabel = null, t.CurRankNoClearLabel = null, t.NoClearedLabel = null, t.RewardNode = null, t.RewardsButton = null, t.RuleButton = null, t.ReturnButton = null, t.RankComponent = null, t.ChallengeNode = null, t.ChallengeLabel = null, t.ChallengeTimesLabel = null, t.ActivityEndLabel = null, t._isLayoutInit = !1, t._itemNodes = [], t._deadLine = 0, t._configData = null, t._model = null, t._hasClear = 0, t._customsTimes = 0, t._rankData = null, t._heroNode = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_REFRESH_HERODUNGEON, this.OnRefreshRankREward, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_REFRESH_HERODUNGEON, this.OnRefreshRankREward, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = this.LoadDynamicAsset("HeroDungeon/SubItems/HeroDungeonListItem", cc.Prefab), t = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([e, t]).then(function(e) {
                                        n._levelPrefab = e[0], n._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    n && (this._configData = c.DataCenter.Instance.ActivityConfigs[n], this._deadLine = g.default.Instance.ComputeExtraShowDeadTime(this._configData.Common), this.TitleLabel.string = this._configData.Common.Title), t[1] && (this._rankData = t[1])
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), [4, this.LoadDynamicAsset("HeroDungeon/PNG/" + this._configData.CustomPart.HeroId, cc.SpriteFrame)];
                                case 1:
                                    return (t = n.sent()) && (this.Banner.spriteFrame = t), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.CurHeroLabel.string = "heroDungeon_curUp_hero".ToUILocale(), this.UpLabel.string = "heroDungeon_uphero_add".ToUILocale(), this.CurMaxLevelDescLabel.string = "elementTrial_curLevel".ToUILocale(), this.CurRankDescLabel.string = "bossWar_rank".ToUILocale(), this.CurMaxLevelNoClearLabel.string = "elementTrial_noGet".ToUILocale(), this.CurRankNoClearLabel.string = "rank_out_max_rank".ToUILocale(), this.NoClearedLabel.string = "elementTrial_noGet".ToUILocale(), this.ChallengeLabel.string = "heroDungeon_times".ToUILocale(), this.ActivityEndLabel.string = "activity_end".ToUILocale(), this.RewardsButton.node.on("click", this.OnRewardsButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.UpButton.node.on("click", this.OnUpButtonClick, this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.UpdateContent()
                }, t.prototype.UpdateContent = function() {
                    this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), this._model.IntArray && this._model.IntArray[0] && (this._hasClear = this._model.IntArray[0]), this._model.IntArray && this._model.IntArray[1] && (this._customsTimes = this._model.IntArray[1]), this.InitNodes(), this.InitCustomLayout(), this.SetInfo(), this.SetTime(), this.SetRankList(), this.SetReward(), this.SetHero()
                }, t.prototype.InitNodes = function() {
                    this.CurMaxLevelNoClearLabel.node.active = !1, this.CurMaxLevelValueLabel.node.active = !1, this.CurRankValueLabel.node.active = !1, this.CurRankNoClearLabel.node.active = !1, this.NoClearedLabel.node.active = !1, this.RewardNode.active = !1, this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.StageScrollViewCustomLayout.Init(this._levelPrefab));
                    var e = this._configData.Maps.length,
                        t = this._hasClear - 2 >= 0 ? this._hasClear - 2 : 0;
                    this.StageScrollViewCustomLayout.RenderLayOut(e, t)
                }, t.prototype.ScrollToCurrFightLayer = function() {
                    var e = this._hasClear - 2 >= 0 ? this._hasClear - 2 : 0;
                    this.StageScrollView.scrollToOffset(cc.v2(0, 206 * e), .5)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.StageScrollViewCustomLayout && e.forEach(function(e, t) {
                        e.getComponent(C.default).InitUI(n._configData.Maps[t], n._hasClear, n._configData)
                    })
                }, t.prototype.SetTime = function() {
                    this.ActivityEndLabel.node.active = !1, this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1)
                }, t.prototype.CountDownActivityTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < S.Etc.DayDuration * this._configData.Common.ExtraShowDays ? (this.ChallengeNode.active = !1, this.ActivityEndLabel.node.active = !0, this.TimeLabel.string = "activityTime_show".ToUILocale(), this.RealTimeLabel.string = g.default.ActivityTimeLeftFormat(t)) : (this.ChallengeNode.active = !0, this.TimeLabel.string = "gift_remainderTime".ToUILocale(), this._configData.Common.IsZoneOpen, this.RealTimeLabel.string = g.default.ActivityTimeLeftFormat(t - S.Etc.DayDuration * this._configData.Common.ExtraShowDays)), t < 0 && l.UIManager.Instance.BackUIPanel()
                }, t.prototype.SetInfo = function() {
                    this.NoClearedLabel.node.active = 0 == this._hasClear, this.CurMaxLevelNoClearLabel.node.active = 0 == this._hasClear, this.CurMaxLevelValueLabel.node.active = this._hasClear > 0, this.CurRankNoClearLabel.node.active = this._rankData && !this._rankData.MyRank, this.CurRankValueLabel.node.active = this._rankData && this._rankData.MyRank && this._rankData.MyRank > 0, this.RewardNode.active = this._hasClear > 0;
                    var e = "#ffffff";
                    this._model.IntArray.length > 1 && (e = this._model.IntArray[1] >= this._configData.CustomPart.Count ? "#ff4b4b" : "#ffffff"), this.ChallengeTimesLabel.string = "<color={0}>{1}</color><color=#ffffff>/{2}</color>".Fmt(e, this._configData.CustomPart.Count - this._customsTimes, this._configData.CustomPart.Count);
                    var t = c.RpcComponent.Instance.ServerTime,
                        n = this._deadLine - t;
                    this.ChallengeNode.active = n - S.Etc.DayDuration * this._configData.Common.ExtraShowDays > 0, this._hasClear > 0 && (this.CurMaxLevelValueLabel.string = this._hasClear.toString()), this._rankData && this._rankData.MyRank && this._rankData.MyRank > 0 && (this.CurRankValueLabel.string = this._rankData.MyRank.toString())
                }, t.prototype.SetRankList = function() {
                    var e = this;
                    this.RankComponent.InitUIForActivity(this._configData._id, "holyArea_rank".ToUILocale(), function(t) {
                        if (t) e._rankData = t, _.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroDungeonRankPanel.Path, t, e._configData._id);
                        else {
                            var n = new u.Req_Activity_GetRank;
                            n.ActivityId = e._configData._id, c.RpcComponent.Instance.Call(n, function(t) {
                                e._rankData = t, _.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroDungeonRankPanel.Path, t, e._configData._id)
                            }.bind(this))
                        }
                    }, this._rankData)
                }, t.prototype.SetReward = function() {
                    var e = this;
                    if (this._rankData && this._rankData.MyRank && this._rankData.MyRank > 0) {
                        var t = void 0;
                        this._configData.Common.IsZoneOpen, (t = g.default.GetRankRewardData(this._configData._RankRewards, this._rankData.MyRank)) && t.Rewards.forEach(function(t, n) {
                            var o = t.Items[0],
                                r = t.Items[1];
                            if (!e._itemNodes[n]) {
                                var i = cc.instantiate(e._itemPrefab);
                                i.parent = e.RewardNode, e._itemNodes[n] = i
                            }
                            e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(m.ItemComponent).Init({
                                ItemId: o,
                                Count: r
                            }, m.ItemComponentType.ItemCommon)
                        })
                    }
                }, t.prototype.SetHero = function() {
                    this._heroNode || (this._heroNode = cc.instantiate(this._itemPrefab), this._heroNode.parent = this.UpHeroNode), this._heroNode.getComponent(m.ItemComponent).Init({
                        ItemId: this._configData.CustomPart.HeroId,
                        Count: 1
                    }, m.ItemComponentType.HeroInfo)
                }, t.prototype.GetRankReward = function(e) {
                    for (var t = null, n = 0; n < this._configData.Rewards.length; n++) {
                        var o = this._configData.Rewards[n];
                        if (e <= o.Rank) {
                            t = o;
                            break
                        }
                    }
                    return t
                }, t.prototype.OnRefreshRankREward = function() {
                    var e = this,
                        t = new u.Req_Activity_GetRank;
                    t.ActivityId = this._configData._id, c.RpcComponent.Instance.Call(t, function(t) {
                        e._rankData = t, e.UpdateContent()
                    }.bind(this))
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && I.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t), -1 != this.UpHeroNode.children.indexOf(t) && _.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroHandbookPanel.Path, this._configData.CustomPart.HeroId, null, null, !0)
                }, t.prototype.OnRewardsButtonClick = function() {
                    if (this._configData.Common.IsZoneOpen) {
                        var e = {},
                            t = [];
                        this._configData._RankRewards.forEach(function(e) {
                            var n = {};
                            n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                        }), e.MyRank = this._rankData.MyRank, e.Data = t, e.IsInRank = this._rankData.MyRank > 0, l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonRankRewardPanel.Path, e)
                    } else {
                        e = {};
                        var n = [];
                        this._configData._RankRewards.forEach(function(e) {
                            var t = {};
                            t.Id = e.Id, t.Ranks = e.Rank, t.Rewards = e.Rewards, n.push(t)
                        }), e.MyRank = this._rankData.MyRank, e.Data = n, e.IsInRank = this._rankData.MyRank > 0, l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonRankRewardPanel.Path, e)
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "heroDungeon_main_rule".ToUILocale(),
                        titles: ["heroDungeon_sub_rule".ToUILocale()],
                        contents: ["heroDungeon_content_rule".ToUILocale()]
                    };
                    I.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnUpButtonClick = function() {
                    var e = {
                        name: "bossWar_element_rule_title".ToUILocale(),
                        titles: ["bossWar_element_rule_title".ToUILocale()],
                        contents: ["heroDungeon_content_attrUp_rule".ToUILocale()]
                    };
                    I.UIUtlity.ShowRulePanel(e)
                }, t.SortHeroList = function(e, t) {
                    var n = c.DataCenter.Instance.ActivityConfigs[t].CustomPart.HeroId;
                    e.sort(function(e, t) {
                        return e.HeroId == n && t.HeroId == n ? t.Power - e.Power : e.HeroId == n ? -1 : t.HeroId == n ? 1 : t.Power - e.Power
                    })
                }, t.InitBattle = function() {
                    [p.MapType.HeroDungeon, p.MapType.HeroDungeon2, p.MapType.HeroDungeon3, p.MapType.HeroDungeon4, p.MapType.HeroDungeon5, p.MapType.HeroDungeon6, p.MapType.HeroDungeon7, p.MapType.HeroDungeon8, p.MapType.HeroDungeon9].forEach(function(e) {
                        l.Game.EventDispatcher.Only(p.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(p.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(p.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(p.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(p.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                    })
                }, t.RestartBattle = function() {
                    n.StartBattle(n._CurrentBattleMapId, n._CurrentActivityConfig)
                }, t.StartBattle = function(e, t) {
                    n._CurrentBattleMapId = e, n._CurrentActivityConfig = t, _.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.RequestChallenge(e)
                    }, [e], n._CurrentActivityConfig._id)
                }, t.RequestChallenge = function(e) {
                    var t = new u.Req_Activity_HeroDungeonChallenge;
                    t.ActivityId = n._CurrentActivityConfig._id, t.Formations = e, c.RpcComponent.Instance.Call(t, function(e) {
                        v.BattleManager.Instance.StartPlay(e.Report)
                    }.bind(this))
                }, t.SettleBattle = function(e) {
                    var t = new u.Req_Map_BattleSettlement;
                    t.MapType = e.MapType, b.RpcComponent.Instance.Call(t, function(t) {
                        var o = t.ExtraParam[0].Items[0];
                        if (c.DataCenter.Instance.ActivityConfigs[o]) {
                            var r;
                            1 == t.Result ? (r = n.settlement_win_prefab_path, e.SettleParams = [t.ExtraParam[0].Items[0]], v.BattleManager.Instance.ShowSettlePanel(y.PanelConfig.SettlementWinPanel.Path, r, e, t.Rewards), l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_REFRESH_HERODUNGEON)) : (r = n.settlement_fail_prefab_path, e.SettleParams = [t.ExtraParam[0].Items[0]], v.BattleManager.Instance.ShowSettlePanel(y.PanelConfig.SettlementFailPanel.Path, r, e));
                            var i = w.default.GetItem(w.GameRecordDefine.HeroDungeonRedDot);
                            if (i) a = JSON.parse(i), s = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, n._CurrentActivityConfig._id), a[n._CurrentActivityConfig._id] = s.IntArray[0], w.default.SetItem(w.GameRecordDefine.HeroDungeonRedDot, JSON.stringify(a));
                            else {
                                var a = {},
                                    s = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, n._CurrentActivityConfig._id);
                                a[n._CurrentActivityConfig._id] = s.IntArray[0], w.default.SetItem(w.GameRecordDefine.HeroDungeonRedDot, JSON.stringify(a))
                            }
                            var p = _.UIManager.Instance.GetUIPanel(y.PanelConfig.HeroDungeonPanel.Path);
                            p && p.ScrollToCurrFightLayer()
                        }
                    })
                }, t.CancelBattle = function(e) {
                    var t = new u.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, b.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {
                    _.UIManager.Instance.QuitPanelStack(y.PanelConfig.HeroDungeonPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, t.settlement_win_prefab_path = "HeroDungeon/SubItems/HeroDungeonSettlementComponent", t.settlement_fail_prefab_path = "SettlementPanel/CommonFailSettlementComponent", t._CurrentBattleMapId = 0, t._CurrentActivityConfig = null, i([T(cc.Label)], t.prototype, "TitleLabel", void 0), i([T(cc.Label)], t.prototype, "TimeLabel", void 0), i([T(cc.Label)], t.prototype, "RealTimeLabel", void 0), i([T(cc.Sprite)], t.prototype, "Banner", void 0), i([T(cc.Label)], t.prototype, "CurHeroLabel", void 0), i([T(cc.Label)], t.prototype, "UpLabel", void 0), i([T(cc.Button)], t.prototype, "UpButton", void 0), i([T(cc.Node)], t.prototype, "UpHeroNode", void 0), i([T(cc.ScrollView)], t.prototype, "StageScrollView", void 0), i([T(d.default)], t.prototype, "StageScrollViewCustomLayout", void 0), i([T(cc.Label)], t.prototype, "CurMaxLevelDescLabel", void 0), i([T(cc.Label)], t.prototype, "CurMaxLevelValueLabel", void 0), i([T(cc.Label)], t.prototype, "CurMaxLevelNoClearLabel", void 0), i([T(cc.Label)], t.prototype, "CurRankDescLabel", void 0), i([T(cc.Label)], t.prototype, "CurRankValueLabel", void 0), i([T(cc.Label)], t.prototype, "CurRankNoClearLabel", void 0), i([T(cc.Label)], t.prototype, "NoClearedLabel", void 0), i([T(cc.Node)], t.prototype, "RewardNode", void 0), i([T(cc.Button)], t.prototype, "RewardsButton", void 0), i([T(cc.Button)], t.prototype, "RuleButton", void 0), i([T(cc.Button)], t.prototype, "ReturnButton", void 0), i([T(h.default)], t.prototype, "RankComponent", void 0), i([T(cc.Node)], t.prototype, "ChallengeNode", void 0), i([T(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([T(cc.RichText)], t.prototype, "ChallengeTimesLabel", void 0), i([T(cc.Label)], t.prototype, "ActivityEndLabel", void 0), n = i([A], t)
            }(l.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent",
        "./HeroDungeonListItem": "HeroDungeonListItem"
    }],
    HeroDungeonRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8c2d9iGMNdLyo4wZvme7Sbf", "HeroDungeonRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/RankDetailComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1, !1), t.Title = null, t.CenterNode = null, t.ReturnButton = null, t._rankData = null, t._activityId = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent")];
                                case 1:
                                    return t._rankPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUI()
                }, t.prototype.SetUI = function() {
                    this._rank_detail_item.SetUI(this._activityId, this._rankData.Rows, this._rankData.MyRank, this._rankData.MyRankData, !1, !0)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rankData = t[0], this._activityId = t[1]
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "heroDungeon_rank".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._rankPrefab);
                    e.setParent(this.CenterNode), this._rank_detail_item = e.getComponent(c.default)
                }, t.prototype.OnEvent = function() {
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.OnReturnButtonClick = function() {
                    this.Close()
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "CenterNode", void 0), i([d(cc.Button)], t.prototype, "ReturnButton", void 0), i([p], t)
            }(l.BaseUIFullScreenPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    HeroDungeonRewardListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c65444Ku0tOGZczAphxDjz6", "HeroDungeonRewardListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Rank = null, t.No1 = null, t.No2 = null, t.No3 = null, t.RewardNode = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function(e, t) {
                    this._data = e, this._ranks = t, this.InitNodes(), this.SetRank(), this.SetReward()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetRank = function() {
                    this.No1.active = 1 == this._data.Rank, this.No2.active = 2 == this._data.Rank, this.No3.active = 3 == this._data.Rank, this.Rank.node.active = this._data.Rank > 3, this.Rank.string = this._ranks[0] + "-" + this._ranks[1]
                }, t.prototype.SetReward = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return this._data.Rewards.forEach(function(e, n) {
                                        if (!t._itemNodes[n]) {
                                            var o = e.Items[0],
                                                r = e.Items[1];
                                            if (!t._itemNodes[n]) {
                                                var i = cc.instantiate(t._itemPrefab);
                                                i.parent = t.RewardNode, t._itemNodes[n] = i
                                            }
                                            t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(p.ItemComponent).Init({
                                                ItemId: o,
                                                Count: r
                                            }, p.ItemComponentType.ItemCommon)
                                        }
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemNodes = []
                }, i([g(cc.Label)], t.prototype, "Rank", void 0), i([g(cc.Node)], t.prototype, "No1", void 0), i([g(cc.Node)], t.prototype, "No2", void 0), i([g(cc.Node)], t.prototype, "No3", void 0), i([g(cc.Node)], t.prototype, "RewardNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroDungeonRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "56837YC1MVHkZ1tJF/OHbF7", "HeroDungeonRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/ItemComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./HeroDungeonRewardListItem"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.ParentNode = null, t.RankDescLabel = null, t.MyRankNode = null, t.MyRankLabel = null, t.RewardNode = null, t.NoRankLabel = null, t._itemNodes = [], t._cellNodes = [], t._myRank = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = this.LoadDynamicAsset("HeroDungeon/SubItems/HeroDungeonRewardListItem", cc.Prefab), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([e, t]).then(function(e) {
                                        n._cellPrefab = e[0], n._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0], this._myRank = t[1]
                }, t.prototype.InitUI = function() {
                    this.TitleLabel.string = "elementTrial_rank_reward".ToUILocale(), this.RankDescLabel.string = "elementTrial_myRank".ToUILocale(), this.NoRankLabel.string = "openServer_heroTest_noRatingYet".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitNodes(), this.SetMyRank(), this.SetRewardList()
                }, t.prototype.InitNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this._cellNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetMyRank = function() {
                    var e = this;
                    if (this.NoRankLabel.node.active = !this._myRank, this.MyRankNode.active = this._myRank && this._myRank > 0, this._myRank && this._myRank > 0 && (this.MyRankLabel.string = this._myRank.toString()), this._myRank && this._myRank > 0) {
                        var t = this.FindMyReward(this._myRank);
                        t && t.Rewards.length > 0 && t.Rewards.forEach(function(t, n) {
                            if (!e._itemNodes[n]) {
                                var o = t.Items[0],
                                    r = t.Items[1];
                                if (!e._itemNodes[n]) {
                                    var i = cc.instantiate(e._itemPrefab);
                                    i.parent = e.RewardNode, e._itemNodes[n] = i
                                }
                                e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(p.ItemComponent).Init({
                                    ItemId: o,
                                    Count: r
                                }, p.ItemComponentType.ItemCommon)
                            }
                        })
                    }
                }, t.prototype.SetRewardList = function() {
                    var e = this;
                    this._configData.Rewards.forEach(function(t, n) {
                        if (!e._cellNodes[n]) {
                            var o = cc.instantiate(e._cellPrefab);
                            o.parent = e.ParentNode, e._itemNodes[n] = o
                        }
                        e._itemNodes[n].active = !0;
                        var r = e.GetRankArean(t.Id);
                        e._itemNodes[n].getComponent(h.default).InitUI(t, r)
                    })
                }, t.prototype.GetRankArean = function(e) {
                    var t = this._configData.Rewards.find(function(t) {
                            return t.Id == e
                        }),
                        n = this._configData.Rewards.find(function(t) {
                            return t.Id == e - 1
                        });
                    return n ? t.Rank - n.Rank == 1 ? [t.Rank, t.Rank] : [n.Rank + 1, t.Rank] : [1, 1]
                }, t.prototype.FindMyReward = function(e) {
                    for (var t = null, n = 0; n < this._configData.Rewards.length; n++)
                        if (e <= this._configData.Rewards[n].Rank) {
                            t = this._configData.Rewards[n];
                            break
                        } return t
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._itemNodes = [], this._cellNodes = []
                }, i([g(cc.Label)], t.prototype, "TitleLabel", void 0), i([g(cc.Node)], t.prototype, "ParentNode", void 0), i([g(cc.Label)], t.prototype, "RankDescLabel", void 0), i([g(cc.Node)], t.prototype, "MyRankNode", void 0), i([g(cc.Label)], t.prototype, "MyRankLabel", void 0), i([g(cc.Node)], t.prototype, "RewardNode", void 0), i([g(cc.Label)], t.prototype, "NoRankLabel", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./HeroDungeonRewardListItem": "HeroDungeonRewardListItem"
    }],
    HeroDungeonSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8eab1IpUsBF4YOYpQPDhB4V", "HeroDungeonSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("./CustomRichText"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/UIFrame/UIManager"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./DisplayRewardsComponent"),
            f = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Components/Components"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Battle/BattleManager"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Content = null, t.LineText = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t.BattleName = null, t.BtnNextLevel = null, t.LabelBtnNextLevel = null, t._mapId = 0, t._isInit = !1, t._activityId = 0, t._reward = [], t
                }
                return r(t, e), t.prototype.SetUI = function(t, n) {
                    e.prototype.SetUI.call(this, t), this._mapId = t.Reports[0].MapId, this._activityId = t.SettleParams[0], this._reward = n, this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.GetInstanceType(), this.SetBattleName(), this.SetBtnState(), this.LoadReward(), this.RenderContent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.LineText.string = "win_get_reward".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale(), this.LabelBtnNextLevel.string = "idleBattle_main_nextLevel".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnNextLevel.node.on("click", this.OnBtnNextClick, this)
                }, t.prototype.SetBtnState = function() {
                    var e = p.UIManager.Instance.GetUIPanel(d.PanelConfig.HeroDungeonPanel.Path);
                    this.BtnReturn.node.active = null == e
                }, t.prototype.OnBtnSureClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    p.UIManager.Instance.BackUIPanel();
                    var e = new u.Req_Activity_GetRank;
                    e.ActivityId = this._activityId, g.RpcComponent.Instance.Call(e, function(e) {
                        p.UIManager.Instance.ShowUIPanel(d.PanelConfig.HeroDungeonPanel.Path, this._activityId, e)
                    }.bind(this))
                }, t.prototype.OnBtnNextClick = function() {
                    p.UIManager.Instance.BackUIPanel(), this.CheckCanNextLevel() && (this._BattleData.InBackground && m.UIUtlity.ShowFloatingHint("idleBattle_startNext".ToUILocale()), this.RequestHeroDungeonChallenge(null, this._BattleData.InBackground))
                }, t.prototype.RequestHeroDungeonChallenge = function(e, t) {
                    var n = new u.Req_Activity_HeroDungeonChallenge;
                    n.ActivityId = this._activityId, n.Formations = e, g.RpcComponent.Instance.Call(n, function(e) {
                        I.BattleManager.Instance.StartPlay(e.Report, null, t)
                    }.bind(this))
                }, t.prototype.CheckCanNextLevel = function() {
                    var e = g.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId),
                        t = g.DataCenter.Instance.ActivityConfigs[this._activityId],
                        n = t.Maps.length;
                    if (e) {
                        var o = _.default.Instance.ComputeDeadTime(t.Common);
                        if (g.RpcComponent.Instance.ServerTime > o) return m.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()), !1;
                        if (e.IntArray[0] + 1 > n) return m.UIUtlity.ShowFloatingHint("climbTower_limit_max_level".ToUILocale()), !1;
                        if (e.IntArray[1] && e.IntArray[1] >= t.CustomPart.Count) return m.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale()), !1
                    }
                    return !0
                }, t.prototype.GetInstanceType = function() {
                    var e = this,
                        t = g.DataCenter.Instance.ActivityConfigs[this._activityId].Maps.findIndex(function(t) {
                            return t.MapId == e._mapId
                        });
                    t > -1 && (this._layerIndex = t + 1)
                }, t.prototype.SetBattleName = function() {
                    this.ConfigBattleName()
                }, t.prototype.ConfigBattleName = function() {
                    var e = g.DataCenter.Instance.ActivityConfigs[this._activityId].Common.Title,
                        t = "win_layer_type".ToUILocale().Fmt(e, this._layerIndex);
                    this.BattleName.Init(t)
                }, t.prototype.LoadReward = function() {
                    var e = this;
                    this._rewardData = [];
                    var t = g.DataCenter.Instance.ActivityConfigs[this._activityId],
                        n = t.Maps.findIndex(function(t) {
                            return t.MapId == e._mapId
                        });
                    if (this._reward && this._reward.length > 0) this._reward.forEach(function(t) {
                        e._rewardData.push({
                            ItemId: t.ItemId,
                            Count: t.Count
                        })
                    });
                    else if (n > -1)
                        for (var o = 0; o < t.Maps[n].Rewards.length; o++) {
                            var r = t.Maps[n].Rewards[o].Items[0],
                                i = t.Maps[n].Rewards[o].Items[1];
                            this._rewardData.push({
                                ItemId: r,
                                Count: i
                            })
                        }
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._displayRewardPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(d.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (e._displayRewardPrefab = n.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(h.DisplayRewardsComponent), this.Content.addChild(t), this._rewardComponent.Init(this._rewardData, this.Content.height), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._displayRewardPrefab && (y.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), this._displayRewardPrefab = null)
                }, i([b(cc.Node)], t.prototype, "Content", void 0), i([b(cc.Label)], t.prototype, "LineText", void 0), i([b(cc.Button)], t.prototype, "BtnReturn", void 0), i([b(cc.Button)], t.prototype, "BtnSure", void 0), i([b(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([b(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([b(c.CustomRichText)], t.prototype, "BattleName", void 0), i([b(cc.Button)], t.prototype, "BtnNextLevel", void 0), i([b(cc.Label)], t.prototype, "LabelBtnNextLevel", void 0), i([v], t)
            }(l.default);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./CustomRichText": "CustomRichText",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    HeroElementGroup: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "01277YAXYJM9pHHVanCKN2E", "HeroElementGroup");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../ShareConsts/EnumType"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../Consts/Consts"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HighLight = null, t.Layout = null, t._limitElement = -1, t._limitElementArray = [], t._isSingleElement = !1, t._redDotNodes = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._redDotNodes = [];
                    for (var e = this.Layout.childrenCount, t = l.default.Instance.IsGameModuleOpen(p.GameModuleType.ChaosTemple), n = 0; n < e; n++) {
                        var o = this.Layout.children[n],
                            r = Number.parseInt(o.name);
                        if (t || r != s.HeroElementType.Chaos) {
                            o.on("click", this.OnClickHeroAttr, this), cc.find("Background", o).getComponent(cc.Sprite).spriteFrame = u.UIUtlity.GetHeroElementIcon(n);
                            var i = cc.find("RedDot", o);
                            i && (i.active = !1, this._redDotNodes.push(i))
                        } else o.active = !1
                    }
                    for (this.Layout.getComponent(cc.Layout).updateLayout(), this.node.width = this.Layout.width + 83, n = 0; n < this.Layout.children.length; n++) {
                        var a = this.Layout.children[n];
                        if (a && a.active) {
                            this.HighLight.setPosition(a.position);
                            break
                        }
                    }
                }, t.prototype.SetDefault = function() {
                    var e = this.Layout.children[0].getComponent(cc.Button);
                    this.OnClickHeroAttr(e)
                }, t.prototype.SetElementModeByIndex = function(e) {
                    e < 0 && (e = 0);
                    var t = this.Layout.children[e].getComponent(cc.Button);
                    this.OnClickHeroAttr(t)
                }, t.prototype.UpdateRedDots = function(e) {
                    var t = this;
                    this._redDotNodes.forEach(function(e) {
                        e.active = !1
                    }), e.forEach(function(e) {
                        t._redDotNodes[e] && (t._redDotNodes[e].active = !0)
                    })
                }, t.prototype.OnClickHeroAttr = function(e) {
                    var t = Number.parseInt(e.name);
                    if (this._limitElement >= 0) {
                        if (this._isSingleElement && this._limitElement != t || !this._isSingleElement && this._limitElement != t && t != s.HeroElementType.Chaos) return void u.UIUtlity.ShowFloatingHint("element_limit_hint".ToUILocale().Fmt(("hero_element_" + this._limitElement).ToUILocale()))
                    } else if (this._limitElementArray.length > 0 && -1 == this._limitElementArray.indexOf(t)) {
                        for (var n = "", o = 0; o < this._limitElementArray.length; o++) n += ("hero_element_" + this._limitElementArray[o]).ToUILocale(), o != this._limitElementArray.length - 1 && (n += ",");
                        return void u.UIUtlity.ShowFloatingHint("element_limit_hint".ToUILocale().Fmt(n))
                    }
                    this.HighLight.setPosition(e.node.position), a.Game.EventDispatcher.Emit(c.EventKeys.EVENT_SWITCH_HERO_ELEMENT, t, this.node)
                }, t.prototype.LimitElement = function(e, t) {
                    this._limitElement = e, this._isSingleElement = t;
                    var n = this.Layout.children[e].getComponent(cc.Button);
                    this.OnClickHeroAttr(n);
                    for (var o = 0; o < this.Layout.childrenCount; o++) {
                        var r = this.Layout.children[o],
                            i = cc.find("Background", r).getComponent(cc.Sprite);
                        o != e && t || !t && o != e && o != s.HeroElementType.Chaos ? u.UIUtlity.OnSpriteGray(i) : u.UIUtlity.OffSpriteGray(i)
                    }
                }, t.prototype.LimitElementArray = function(e) {
                    this._limitElementArray = e;
                    var t = this.Layout.children[e[0]].getComponent(cc.Button);
                    this.OnClickHeroAttr(t);
                    for (var n = 0; n < this.Layout.childrenCount; n++) {
                        var o = this.Layout.children[n],
                            r = cc.find("Background", o).getComponent(cc.Sprite); - 1 == e.indexOf(n) ? u.UIUtlity.OnSpriteGray(r) : u.UIUtlity.OffSpriteGray(r)
                    }
                }, t.prototype.SetIcon = function(e, t) {
                    var n = this.Layout.children[t];
                    n && (cc.find("Background", n).getComponent(cc.Sprite).spriteFrame = e)
                }, i([f(cc.Node)], t.prototype, "HighLight", void 0), i([f(cc.Node)], t.prototype, "Layout", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HeroEngeryItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4a24aGv1llLLbCNkZV3UPQT", "HeroEngeryItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./ItemComponent"),
            c = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/ConfigData/ConfigDataComponent"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/DataUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemRoot = null, t.EngeryIcon = null, t.EngeryCountLabel = null, t._engerySprite = null, t._itemPrefab = null, t._item = null, t._starHolyStatueFirstEnergyCount = 0, t._assets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.SetUI = function(e, t) {
                    this._heroId = e, this._heroStarLevel = t, this.LoadGlobalSetting(), this.LoadLevelParams(), this.CalcEngeryCount(), this.SetEngeryShow(), this.LoadHeroItem()
                }, t.prototype.LoadGlobalSetting = function() {
                    this._starHolyStatueFirstEnergyCount = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarHolyStatueFirstEnergyCount")
                }, t.prototype.LoadLevelParams = function() {
                    var e = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.StarHolyStatueEnergyCount);
                    this._heroUpGradeGetEngery = e.Data
                }, t.prototype.CalcEngeryCount = function() {
                    var e;
                    e = this._heroStarLevel <= n.BaseStar ? this._starHolyStatueFirstEnergyCount : this._heroStarLevel > this._heroUpGradeGetEngery.length + n.BaseStar ? this._heroUpGradeGetEngery[this._heroUpGradeGetEngery.length - 1] : this._heroUpGradeGetEngery[this._heroStarLevel - n.BaseStar - 1], this._engeryCount = e
                }, t.prototype.SetEngeryShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._engerySprite ? [3, 2] : (e = y.default.Instance.GetItemPathById(f.CommonItemId.StarHolyStatueEnergy), [4, p.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)]);
                                case 1:
                                    if (t = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._engerySprite = t, this._assets.push(t), n.label = 2;
                                case 2:
                                    return this.EngeryIcon.spriteFrame = this._engerySprite, this.EngeryCountLabel.string = this._engeryCount.toString(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadHeroItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._assets.push(e), n.label = 2;
                                case 2:
                                    return null == this._item && (this._item = cc.instantiate(this._itemPrefab).getComponent(l.ItemComponent), this._item.node.parent = this.ItemRoot), t = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, this._heroId), this._item.Init({
                                        ItemId: this._heroId,
                                        StarLevel: this._heroStarLevel,
                                        ElementType: t.ElementType
                                    }, l.ItemComponentType.HeroInfo), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._assets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.BaseStar = 5, i([I(cc.Node)], t.prototype, "ItemRoot", void 0), i([I(cc.Sprite)], t.prototype, "EngeryIcon", void 0), i([I(cc.Label)], t.prototype, "EngeryCountLabel", void 0), n = i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "./ItemComponent": "ItemComponent"
    }],
    HeroFavorItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0854cqley9Ll43lpHj7XCL6", "HeroFavorItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroFavorItemType = void 0;
        var a, s = e("../../Components/DataCenter"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Components/Components"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.Hero = 0] = "Hero", e[e.Angel = 1] = "Angel"
        })(a = n.HeroFavorItemType || (n.HeroFavorItemType = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Title = null, t.Level = null, t.Mask = null, t.ProgressSprite = null, t.MAX_HEIGHT = 110, t
            }
            return r(t, e), t.prototype.Init = function(e, t, n) {
                if (void 0 === n && (n = a.Hero), this._type = n, n == a.Hero) {
                    this._heroInfoModel = s.DataCenter.Instance.GetDataById(l.HeroInfo_Model, e), this._level = this._heroInfoModel.FavorLevel;
                    var o = p.default.Instance.GetHeroFavorConfigIdByHeroId(e),
                        r = p.default.Instance.GetHeroFavorConfigNextIdByHeroId(e),
                        i = d.ConfigDataComponent.Instance.GetConfigById(c.FavorLevel_Config, o);
                    this._nextFavorConfig = d.ConfigDataComponent.Instance.GetConfigById(c.FavorLevel_Config, r), this._grade = i ? i.Grade : 0
                } else if (n == a.Angel) {
                    this._angelModel = s.DataCenter.Instance.GetDataById(l.UserAngel_Model, e), this._level = this._angelModel.FavorLevel, this._grade = 3;
                    var u = this._angelModel.FavorLevel + 1;
                    this._nextAngelFavorConfig = d.ConfigDataComponent.Instance.GetConfigById(c.AngelFavorLevel_Config, u)
                }
                this.Level.string = this._level.toString(), this.Title.string = t || "", this.ConfigProgress()
            }, t.prototype.ConfigProgress = function() {
                if (this._grade > 0 ? (this.ProgressSprite.node.active = !0, this.ProgressSprite.spriteFrame = u.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("heroFavor_progress_" + this._grade)) : this.ProgressSprite.node.active = !1, this._type == a.Hero)
                    if (this._nextFavorConfig)
                        if (this._level >= 0) {
                            var e = this._nextFavorConfig.Xp,
                                t = this._heroInfoModel.FavorXp * this.MAX_HEIGHT / e;
                            this.Mask.height = this.MAX_HEIGHT - t
                        } else this.Mask.height = this.MAX_HEIGHT;
                else this.Mask.height = 0;
                else this._type == a.Angel && (this._nextAngelFavorConfig ? this._level >= 0 ? (e = this._nextAngelFavorConfig.Xp, t = this._angelModel.FavorXp * this.MAX_HEIGHT / e, this.Mask.height = this.MAX_HEIGHT - t) : this.Mask.height = this.MAX_HEIGHT : this.Mask.height = 0)
            }, t.prototype.SetToFull = function() {
                this.Mask.height = 0
            }, t.prototype.SetProgress = function(e, t, n) {
                void 0 === n && (n = 4), this.ProgressSprite.node.active = !0, this.ProgressSprite.spriteFrame = u.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("heroFavor_progress_" + n);
                var o = e * this.MAX_HEIGHT / t;
                this.Mask.height = this.MAX_HEIGHT - o, this.Level.string = e.toString()
            }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "Level", void 0), i([y(cc.Node)], t.prototype, "Mask", void 0), i([y(cc.Sprite)], t.prototype, "ProgressSprite", void 0), i([f], t)
        }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HeroFavorListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "089b1CNnfNP46Kq1jC4UuaL", "HeroFavorListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../RedDot/RedDotDataHandler"),
            p = e("./HeroFavorItemComponent"),
            d = e("./ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.StarComponent = null, t.RedNode = null, t._assets = [], t
                }
                return r(t, e), t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.Init = function(e, t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (n = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._itemPrefab = n, this._assets.push(n), (o = cc.instantiate(this._itemPrefab)).name = e.toString(), o.setParent(this.ItemContainer), this._itemComponent = o.getComponent(d.ItemComponent), r.label = 2;
                                case 2:
                                    return this._itemComponent.Init({
                                        ItemId: e
                                    }, d.ItemComponentType.HeroInfo), this._itemComponent.node.name = e.toString(), this.StarComponent.Init(e), t ? this.StarComponent.SetProgress(0, 1, 0) : this.StarComponent.SetToFull(), this.RedNode.active = u.RedDotDataHandler.Instance.RefreshFavorQuickSendRedDot({
                                        Value1: e
                                    }), [2]
                            }
                        })
                    })
                }, i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(p.default)], t.prototype, "StarComponent", void 0), i([y(cc.Node)], t.prototype, "RedNode", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "./HeroFavorItemComponent": "HeroFavorItemComponent",
        "./ItemComponent": "ItemComponent"
    }],
    HeroFavorListPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6683aReyWhDTrZBk7r2WIC6", "HeroFavorListPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../GamePlay/Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../../Consts/Consts"),
            I = e("../Components/HeroFavorItemComponent"),
            _ = e("../Components/HeroFavorListItem"),
            C = e("../Components/FavorRoadItem"),
            v = e("../Components/AttrComponent2"),
            b = e("../Components/AsyncLayout"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ProgressTitleLabel = null, t.AttrPartTitleLabel = null, t.ProgressPart = null, t.FavorRoadAsyncScollView = null, t.AsyncLayout = null, t.FavorRoadHeartItem = null, t.FaovrRoadMaxLevelLabel = null, t.AttrPart = null, t.AttrPartScollView = null, t.AttrPartContainer = null, t.AttrPartDetailButton = null, t.AttrPartNoAttrAddTipLabel = null, t.HeroListPartTitleLable = null, t.HeroListPartBackground = null, t.HeroListPart = null, t.HeroListTitlePart = null, t.HeroListScrollView = null, t.HeroListMask = null, t.HeroListLayout = null, t._progressPartTitleKey = "FavorRoadRule_Title", t._attrPartTitelKey = "HeroFavorList_AttributeTitle", t._heroListPartTitleKey = "HeroFavorList_HeroListTitle", t._noAttrAddTipKey = "CollectionPavilion_Tip_UnAttr", t._heroListDatasSorted = [], t._heroListMapByElement = new Map, t._favorRoadAttrAddedData = null, t._currElementSelected = m.HeroElementType.All, t._favorRoadAttrData = null, t._favorRoadItemsMap = new Map, t._isInited = !1, t._needRefresh = !1, t._currentFormationHeroIds = [], t
                }
                return r(t, e), t.prototype.Init = function() {
                    0 == this._isInited && (this.InitData(), this.InitView(), this.AttrPartDetailButton.node.on("click", this.OnAttrDetailButtonClicked, this), this._isInited = !0), this._needRefresh && (this.InitData(), this.InitFavorProgressItems(), this.SetFavorRoadHeartItemView(), this.InitFavorRoadAttrView(), this.ShowPreviousElement(this._currElementSelected), this._needRefresh = !1)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnElementButtonClicked, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_HERO_FAVOR_LEVEL_CHANGED, this.OnHeroFavorLevelChanged, this), l.Game.EventDispatcher.On(c.GameEventIds.AddDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChanged, this), l.Game.EventDispatcher.On(c.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChanged, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnElementButtonClicked), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_HERO_FAVOR_LEVEL_CHANGED, this.OnHeroFavorLevelChanged), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClicked)
                }, t.prototype.onDestroy = function() {
                    this._favorListItemPrefeb && g.AssetsManager.Instance.UnloadAsset(this._favorListItemPrefeb), this._favorStarPrefab && g.AssetsManager.Instance.UnloadAsset(this._favorStarPrefab), this._attrItemPrefeb && g.AssetsManager.Instance.UnloadAsset(this._attrItemPrefeb), this._favorRoadProgressItemPrefab && g.AssetsManager.Instance.UnloadAsset(this._favorRoadProgressItemPrefab), this._favorRoadItemsMap.clear()
                }, t.prototype.InitData = function() {
                    this.InitFavorRoadAttrData(), this.IniteHeroListData()
                }, t.prototype.InitView = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.ProgressTitleLabel.string = this._progressPartTitleKey.ToUILocale(), this.AttrPartTitleLabel.string = this._attrPartTitelKey.ToUILocale(), this.HeroListPartTitleLable.string = this._heroListPartTitleKey.ToUILocale(), this.AttrPartNoAttrAddTipLabel.string = this._noAttrAddTipKey.ToUILocale(), this.RejustScrollViewSize(), [4, this.LoadAssets()];
                                case 1:
                                    return e.sent(), this.SetFavorRoadHeartItemView(), this.InitFavorProgressItems(), this.InitFavorRoadAttrView(), this.HeroListLayout.Init(this._favorListItemPrefeb, this.OnRenderHeroFavorItem.bind(this)), this.HeroListLayout.RenderLayout(this._heroListDatasSorted.length), [2]
                            }
                        })
                    })
                }, t.prototype.OnRenderHeroFavorItem = function(e, t) {
                    var n;
                    n = this._currElementSelected == m.HeroElementType.All ? this._heroListDatasSorted : this._heroListMapByElement.get(this._currElementSelected), e.getComponent(_.default).Init(n[t].HeroId)
                }, t.prototype.RejustScrollViewSize = function() {
                    this.HeroListPartBackground.node.height = this.node.height - this.ProgressPart.height - this.AttrPart.height - 2 * this.node.getComponent(cc.Layout).spacingY, this.HeroListScrollView.node.height = this.HeroListPartBackground.node.height, this.HeroListMask.height = this.HeroListScrollView.node.height - 40, this.HeroListLayout.node.height = this.HeroListMask.height, this.HeroListLayout.node.y = this.HeroListLayout.node.height / 2, this.HeroListPart.getComponent(cc.Layout).updateLayout(), g.EZLog.Log("Container Height: " + this.node.height), g.EZLog.Log("ProgressPart height " + this.ProgressPart.height), g.EZLog.Log("AttrPart height " + this.AttrPart.height), g.EZLog.Log("RejustScrollViewSize heroListPart height :" + this.HeroListPart.height), g.EZLog.Log(" heroListScrollView height :" + this.HeroListScrollView.node.height)
                }, t.prototype.LoadAssets = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e = g.AssetsManager.Instance.LoadAsset("HeroListPanel/HeroFavorListItem"), t = g.AssetsManager.Instance.LoadAsset(d.BundlePath.HeroFavorItemComponent), n = g.AssetsManager.Instance.LoadAsset("ItemsComponent/AttrComponent2"), o = g.AssetsManager.Instance.LoadAsset("HeroListPanel/FavorRoadItem"), [4, Promise.all([e, t, n, o]).then(function(e) {
                                        if (!r.isValid) return l.AssetsManager.Instance.UnloadAsset(e[0]), l.AssetsManager.Instance.UnloadAsset(e[1]), l.AssetsManager.Instance.UnloadAsset(e[2]), void l.AssetsManager.Instance.UnloadAsset(e[3]);
                                        r._favorListItemPrefeb = e[0], r._favorStarPrefab = e[1], r._attrItemPrefeb = e[2], r._favorRoadProgressItemPrefab = e[3]
                                    })];
                                case 1:
                                    return i.sent(), this.AsyncLayout.Init(this._favorRoadProgressItemPrefab, this.OnRenderFavorRoadItem.bind(this)), [2]
                            }
                        })
                    })
                }, t.prototype.InitFavorRoadAttrData = function() {
                    this._favorRoadLevel = y.default.Instance.GetFavorRoadLevel(), g.EZLog.Log("InitFavorRoadAttrData favorRoadLevel :" + this._favorRoadLevel), this._favorRoadConfig = h.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, m.LevelParamType.FavorRoadAttr), this._favorRoadMaxLevel = this._favorRoadConfig.Data2[this._favorRoadConfig.Data2.length - 1].Items[0];
                    for (var e = new Map, t = 0, n = 0, o = 0; o < this._favorRoadConfig.Data2.length; o++) {
                        if (this._favorRoadLevel < this._favorRoadConfig.Data2[o].Items[0]) {
                            g.EZLog.Log("\u5f53\u524d\u6ca1\u6709\u597d\u611f\u4e4b\u8def\u7b49\u7ea7 ");
                            break
                        }
                        t = this._favorRoadConfig.Data2[o].Items[1], n = this._favorRoadConfig.Data2[o].Items[2], e.has(t) ? e.set(t, e.get(t) + n) : e.set(t, n)
                    }
                    this._favorRoadAttrAddedData = y.default.Instance.GetArrayRankedFromMap(e)
                }, t.prototype.IniteHeroListData = function() {
                    var e = this,
                        t = h.DataCenter.Instance.GetDataList(u.HeroInfo_Model),
                        n = [];
                    this._heroListMapByElement.clear();
                    for (var o = 1; o < t.length; o++) h.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, t[o].HeroId).StarLevel > 3 && n.push(t[o]);
                    var r = h.DataCenter.Instance.GetDataById(u.UserFormation_Model, c.FormationIdType.MainLine);
                    for (o = 0; o < r.HeroIds.length; o++) {
                        var i = r.HeroIds[o],
                            a = h.DataCenter.Instance.GetDataById(u.UserHero_Model, i);
                        a && this._currentFormationHeroIds.push(a.HeroId)
                    }
                    n.length > 0 && (this._heroListDatasSorted = n.sort(this.SortHeroListData.bind(this))), this._heroListDatasSorted.forEach(function(t) {
                        var n = h.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, t.HeroId);
                        e._heroListMapByElement.has(n.ElementType) || e._heroListMapByElement.set(n.ElementType, []), e._heroListMapByElement.get(n.ElementType).push(t)
                    })
                }, t.prototype.SortHeroListData = function(e, t) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, e.HeroId),
                        o = h.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, t.HeroId);
                    if (this._currentFormationHeroIds.indexOf(e.HeroId) >= 0) {
                        if (this._currentFormationHeroIds.indexOf(t.HeroId) < 0) return -1
                    } else if (this._currentFormationHeroIds.indexOf(t.HeroId) >= 0) return 1;
                    return e.FavorLevel > t.FavorLevel ? -1 : e.FavorLevel == t.FavorLevel ? n.StarLevel > o.StarLevel ? -1 : n.StarLevel == o.StarLevel ? n.ElementType < o.ElementType ? -1 : n.ElementType == o.ElementType && n.Id < o.Id ? -1 : 1 : 1 : 1
                }, t.prototype.SetFavorRoadHeartItemView = function() {
                    this.FavorRoadHeartItem.SetProgress(this._favorRoadLevel, this._favorRoadMaxLevel), this.FaovrRoadMaxLevelLabel.string = this._favorRoadMaxLevel.toString()
                }, t.prototype.InitFavorProgressItems = function() {
                    var e = Math.floor(this._favorRoadLevel / 5);
                    this.AsyncLayout.RenderLayout(this._favorRoadConfig.Data2.length / 2 + 1, e - 1)
                }, t.prototype.OnRenderFavorRoadItem = function(e, t) {
                    if (t >= this._favorRoadConfig.Data2.length / 2) e.opacity = 0;
                    else {
                        e.opacity = 255;
                        var n = 2 * t;
                        e.zIndex = -t;
                        var o = e.getComponent(C.default),
                            r = this._favorRoadConfig.Data2[n].Items[0],
                            i = 0 == n ? 0 : this._favorRoadConfig.Data2[n - 2].Items[0],
                            a = this._favorRoadLevel >= r,
                            s = [this._favorRoadConfig.Data2[n], this._favorRoadConfig.Data2[n + 1]],
                            l = a ? 1 : Math.max(this._favorRoadLevel - i, 0) / (r - i);
                        o.Init(a, s, l, 0 == n)
                    }
                }, t.prototype.InitFavorRoadAttrView = function() {
                    if (null == this._favorRoadAttrAddedData) return this.AttrPartNoAttrAddTipLabel.node.active = !0, void(this.AttrPartDetailButton.node.active = !1);
                    this.AttrPartNoAttrAddTipLabel.node.active = !1, this.AttrPartDetailButton.node.active = !0, this.AttrPartContainer.destroyAllChildren();
                    for (var e = 0; e < this._favorRoadAttrAddedData.length; e++) {
                        var t = this._favorRoadAttrAddedData[e][0],
                            n = this._favorRoadAttrAddedData[e][1],
                            o = cc.instantiate(this._attrItemPrefeb),
                            r = o.getComponent(v.default);
                        r.Init(t, n), r.SetAttrValueStyle(474, 288, v.AttrComponent2Style.Mid), r.SetAttrNameFontSize(28), r.SetAttrNameColor(new cc.Color(255, 255, 255)), r.SetAttrNameOutline(new cc.Color(32, 36, 52), 3), r.SetCurAttrFontSize(32), r.SetCurAttrColor(new cc.Color(110, 238, 167)), r.SetCurAttrOutline(new cc.Color(34, 22, 17), 3), this.AttrPartContainer.addChild(o)
                    }
                    this.AttrPartScollView.scrollToTop()
                }, t.prototype.OnAttrDetailButtonClicked = function() {
                    g.UIManager.Instance.ShowUIPanel(d.PanelConfig.FavorRoadAttrDetailPanel.Path, this._favorRoadAttrAddedData)
                }, t.prototype.OnElementButtonClicked = function(e) {
                    e != this._currElementSelected && (this._currElementSelected = e, this.ShowCurrentElementView())
                }, t.prototype.ShowCurrentElementView = function() {
                    this._currElementSelected == m.HeroElementType.All ? this.HeroListLayout.RenderLayout(this._heroListDatasSorted.length) : this._heroListMapByElement.has(this._currElementSelected) ? this.HeroListLayout.RenderLayout(this._heroListMapByElement.get(this._currElementSelected).length) : this.HeroListLayout.RenderLayout(0)
                }, t.prototype.ShowPreviousElement = function(e) {
                    this._currElementSelected = e, this.ShowCurrentElementView()
                }, t.prototype.OnItemClicked = function(e, t) {
                    t.parent.parent.parent == this.HeroListLayout.node && g.UIManager.Instance.ShowUIPanel(d.PanelConfig.FavorUpgradePanel.Path, e)
                }, t.prototype.OnHeroFavorLevelChanged = function() {
                    this._needRefresh = !0
                }, t.prototype.OnUserItemChanged = function() {
                    this._needRefresh = !0
                }, i([P(cc.Label)], t.prototype, "ProgressTitleLabel", void 0), i([P(cc.Label)], t.prototype, "AttrPartTitleLabel", void 0), i([P(cc.Node)], t.prototype, "ProgressPart", void 0), i([P(cc.ScrollView)], t.prototype, "FavorRoadAsyncScollView", void 0), i([P(b.default)], t.prototype, "AsyncLayout", void 0), i([P(I.default)], t.prototype, "FavorRoadHeartItem", void 0), i([P(cc.Label)], t.prototype, "FaovrRoadMaxLevelLabel", void 0), i([P(cc.Node)], t.prototype, "AttrPart", void 0), i([P(cc.ScrollView)], t.prototype, "AttrPartScollView", void 0), i([P(cc.Node)], t.prototype, "AttrPartContainer", void 0), i([P(cc.Button)], t.prototype, "AttrPartDetailButton", void 0), i([P(cc.Label)], t.prototype, "AttrPartNoAttrAddTipLabel", void 0), i([P(cc.Label)], t.prototype, "HeroListPartTitleLable", void 0), i([P(cc.Sprite)], t.prototype, "HeroListPartBackground", void 0), i([P(cc.Node)], t.prototype, "HeroListPart", void 0), i([P(cc.Node)], t.prototype, "HeroListTitlePart", void 0), i([P(cc.ScrollView)], t.prototype, "HeroListScrollView", void 0), i([P(cc.Node)], t.prototype, "HeroListMask", void 0), i([P(b.default)], t.prototype, "HeroListLayout", void 0), i([w], t)
            }(cc.Component);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/FavorRoadItem": "FavorRoadItem",
        "../Components/HeroFavorItemComponent": "HeroFavorItemComponent",
        "../Components/HeroFavorListItem": "HeroFavorListItem"
    }],
    HeroFetterAttrItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4eaa4qPZOZHaK9OvqWjrXku", "HeroFetterAttrItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./UnArrowAttrItemComponent"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/DataUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TipRichText = null, t.TipSprite = null, t.AttrItemContainer = null, t.SINGLE_ATTR_WIDTH = 1018, t.SINGLE_ATTR_VALUE_X = 400, t._attrItemComponentArray = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                    if (this._fetterConfig = e, this._unArrowAttrItemPrefab = o, this._starIndex = r, n) this.TipRichText.string = "CollectionPavilion_HeroFetter_Attr_Condition_Complete".ToUILocale().Fmt(t, e.HeroIds.length, e.HeroIds.length), this.TipSprite.spriteFrame = c.UIUtlity.COMMON_ATLAS2.getSpriteFrame("progress_point_green"), this.AttrItemContainer.opacity = 255;
                    else {
                        for (var i = 0, a = 0; a < e.HeroIds.length; a++) {
                            var u = l.DataCenter.Instance.GetDataById(s.HeroInfo_Model, e.HeroIds[a]);
                            u && u.MaxStar >= t && i++
                        }
                        this.TipRichText.string = "CollectionPavilion_HeroFetter_Attr_Condition_UnComplete".ToUILocale().Fmt(t, i, e.HeroIds.length), this.TipSprite.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("nodeLock"), this.AttrItemContainer.opacity = 127
                    }
                    this.SetAttrItem()
                }, t.prototype.SetAttrItem = function() {
                    for (var e = p.ConfigDataComponent.Instance.GetConfigById(a.HeroFetterStar_Config, 100 * this._fetterConfig.Id + this._starIndex), t = 0; t < e.Attrs.length; t++) {
                        var n = this._attrItemComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._unArrowAttrItemPrefab);
                            o.setParent(this.AttrItemContainer), n = o.getComponent(u.default), this._attrItemComponentArray[t] = n
                        }
                        var r = d.default.GetHeroAttribute(e.Attrs[t].Items[0], e.Attrs[t].Items[1]);
                        1 == e.Attrs.length ? n.Init(r.Icon, r.Name, r.Value, this.SINGLE_ATTR_WIDTH, this.SINGLE_ATTR_VALUE_X) : n.Init(r.Icon, r.Name, r.Value)
                    }
                }, i([y(cc.RichText)], t.prototype, "TipRichText", void 0), i([y(cc.Sprite)], t.prototype, "TipSprite", void 0), i([y(cc.Node)], t.prototype, "AttrItemContainer", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./UnArrowAttrItemComponent": "UnArrowAttrItemComponent"
    }],
    HeroFetterPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3115cn30PxHyKFjcVJzL1zT", "HeroFetterPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../Components/Components"),
            m = e("../../../Consts/Consts"),
            I = e("../Components/ItemComponent"),
            _ = e("../Components/HeroFetterAttrItemComponent"),
            C = e("../Components/CircleSkillItemComponent"),
            v = e("../../RedDot/RedDotManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.RewardContainerNode = null, t.RewardNode = null, t.RewardLabel = null, t.HeroBg = null, t.HeroContainerNode = null, t.AttrItemContainerNode = null, t.SkillItemNode = null, t.SkillNameLabel = null, t.SkillConditionRichText = null, t.UpLevelButton = null, t.UpLevelButtonLabel = null, t.LockButton = null, t.LockButtonLabel = null, t.MaxLevelTipLabel = null, t.ReturnButton = null, t._fetterItemComponentArray = [], t._heroComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CollectionPavilionPanel/Components/HeroFetterAttrItemComponent", cc.Prefab), o = this.LoadDynamicAsset("CollectionPavilionPanel/Components/UnArrowAttrItemComponent", cc.Prefab), r = this.LoadDynamicAsset("CollectionPavilionPanel/Components/CircleSkillItemComponent", cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._itemPrefab = e[0], i._fetterAttrItemPrefab = e[1], i._unArrowAttrItemPrefab = e[2], i._fetterSkillItemPrefab = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LockButtonLabel.string = "CollectionPavilion_Item_Lock".ToUILocale(), this.MaxLevelTipLabel.string = "common_max_level".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._fetterConfig = t[0];
                    var n = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, m.LevelParamType.HeroFetterStarRequirement);
                    this._fetterStarRequirement = n.Data
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), [4, this.LoadDynamicAsset("CollectionPavilionPanel/Png/HeroFetter/" + this._fetterConfig.BackgroundPicture[1], cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.HeroBg.spriteFrame = t, [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._currentFetterModel = g.DataCenter.Instance.GetDataById(y.HeroFetter_Model, this._fetterConfig.Id), this._currentStarLevel = this._currentFetterModel.Star ? this._currentFetterModel.Star : 0, t || (this.Title.string = this._fetterConfig.Id.ToHeroFetterName(), this.SetHeroNode(), this.SetAttrItemContainer()), this.SetReward(), this.SetSkill(), this.SetRedDot()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "CollectionPavilion_HeroFetter_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["CollectionPavilion_HeroFetter_Rule_Content".ToUILocale()]
                    };
                    u.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnUpLevelButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroFetterSkillUpPanel.Path, this._fetterConfig)
                }, t.prototype.SetHeroNode = function() {
                    for (var e = 0; e < this._fetterConfig.HeroIds.length; e++) {
                        var t = this._heroComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.HeroContainerNode), t = n.getComponent(I.ItemComponent), this._heroComponentArray[e] = t
                        }
                        var o = g.DataCenter.Instance.GetDataById(y.HeroInfo_Model, this._fetterConfig.HeroIds[e]);
                        o || t.OnIconGray();
                        var r = o && o.MaxStar ? o.MaxStar : 5;
                        t.Init({
                            ItemId: this._fetterConfig.HeroIds[e],
                            StarLevel: r
                        }, I.ItemComponentType.HeroInfo)
                    }
                }, t.prototype.SetAttrItemContainer = function() {
                    for (var e = 1; e < this._fetterStarRequirement.length; e++) {
                        var t = this._fetterItemComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._fetterAttrItemPrefab);
                            n.setParent(this.AttrItemContainerNode), t = n.getComponent(_.default), this._fetterItemComponentArray[e] = t
                        }
                        var o = this._currentStarLevel > e;
                        t.Init(this._fetterConfig, this._fetterStarRequirement[e], o, this._unArrowAttrItemPrefab, e + 1)
                    }
                }, t.prototype.SetReward = function() {
                    if (this._currentFetterModel.IsReceive) this.RewardContainerNode.active = !1;
                    else {
                        if (this.RewardContainerNode.active = !0, !this._fetterRewardComponent) {
                            this.RewardLabel.string = "CollectionPavilion_HeroFetter_Reward".ToUILocale();
                            var e = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, m.LevelParamType.HeroFetterCollectRewards).Data2[0].Items,
                                t = cc.instantiate(this._itemPrefab);
                            t.setParent(this.RewardNode), this._fetterRewardComponent = t.getComponent(I.ItemComponent), this._fetterRewardComponent.Init({
                                ItemId: e[0],
                                Count: e[1]
                            })
                        }
                        this._fetterRewardComponent.SetLockFlag(0 == this._currentStarLevel), this._fetterRewardComponent.SetRedDotState(0 != this._currentStarLevel)
                    }
                }, t.prototype.SetSkill = function() {
                    if (!this._skillItemComponent) {
                        var e = cc.instantiate(this._fetterSkillItemPrefab);
                        e.parent = this.SkillItemNode, this._skillItemComponent = e.getComponent(C.default)
                    }
                    var t = this._currentFetterModel.Level ? this._currentFetterModel.Level : 0;
                    if (this._skillItemComponent.Init(this._fetterConfig, t), this.SkillNameLabel.string = this._fetterConfig.Id.ToHeroFetterName(), this.LockButton.node.active = 0 == this._currentStarLevel, this.MaxLevelTipLabel.node.active = t == this._fetterConfig.Attrs.length, this.UpLevelButton.node.active = 0 != this._currentStarLevel, 0 == this._currentStarLevel) this.SkillConditionRichText.string = "CollectionPavilion_HeroFetter_Condition_UnComplete".ToUILocale().Fmt(this.GetCompleteHeroCount()[0], this._fetterConfig.HeroIds.length);
                    else {
                        if (t < this._fetterConfig.Attrs.length) {
                            var n = this._fetterConfig.Attrs[t].Items[0],
                                o = this.GetCompleteHeroCount()[1];
                            this.SkillConditionRichText.string = o >= n ? "CollectionPavilion_HeroFetter_Up_Condition_Complete".ToUILocale().Fmt(n, n) : "CollectionPavilion_HeroFetter_Up_Condition_UnComplete".ToUILocale().Fmt(o, n)
                        }
                        if (0 == t) this.UpLevelButtonLabel.string = "common_unlock".ToUILocale();
                        else if (t < this._fetterConfig.Attrs.length) this.UpLevelButtonLabel.string = "PowerCore_BottomToggle_0".ToUILocale();
                        else {
                            this.UpLevelButton.node.active = !1;
                            var r = ("HeroFetter_Skill_Element_" + this._fetterConfig.Element).ToUILocale();
                            this.SkillConditionRichText.string = "CollectionPavilion_HeroFetter_Skill_Add_Desc".ToUILocale().Fmt(r, t + "%", t + "%")
                        }
                    }
                }, t.prototype.GetCompleteHeroCount = function() {
                    for (var e = 0, t = 0, n = 0; n < this._fetterConfig.HeroIds.length; n++) {
                        var o = g.DataCenter.Instance.GetDataById(y.HeroInfo_Model, this._fetterConfig.HeroIds[n]);
                        o && (e++, t += o.MaxStar)
                    }
                    return [e, t]
                }, t.prototype.SetRedDot = function() {
                    v.RedDotManager.Instance.BindInstance(this.UpLevelButton.node, v.RedDotManager.Instance.InstanceRedDot.HeroFetterSkillUpNode, {
                        Value1: this._fetterConfig.Id
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.HeroContainerNode.children.indexOf(t)) {
                        var n = g.DataCenter.Instance.GetDataById(y.HeroInfo_Model, t.getComponent(I.ItemComponent).ItemId);
                        n ? n.MaxStar && 12 == n.MaxStar && u.UIUtlity.ShowFloatingHint("CollectionPavilion_HeroFetter_Tip_HeroLevel_Max".ToUILocale()) : u.UIUtlity.ShowFloatingHint("CollectionPavilion_HeroFetter_Tip_UnHero".ToUILocale())
                    }
                    if (-1 != this.RewardNode.children.indexOf(t)) {
                        if (0 == this._currentStarLevel) return void u.UIUtlity.ShowFloatingHint("CollectionPavilion_HeroFetter_Tip_UnGetReward".ToUILocale());
                        var o = new y.Req_Team_HeroFetterRewards;
                        o.Sid = this._fetterConfig.Id, h.RpcComponent.Instance.Call(o, this.OnGetRewardSuccess.bind(this))
                    }
                }, t.prototype.OnGetRewardSuccess = function(e) {
                    c.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.Node)], t.prototype, "RewardContainerNode", void 0), i([w(cc.Node)], t.prototype, "RewardNode", void 0), i([w(cc.Label)], t.prototype, "RewardLabel", void 0), i([w(cc.Sprite)], t.prototype, "HeroBg", void 0), i([w(cc.Node)], t.prototype, "HeroContainerNode", void 0), i([w(cc.Node)], t.prototype, "AttrItemContainerNode", void 0), i([w(cc.Node)], t.prototype, "SkillItemNode", void 0), i([w(cc.Label)], t.prototype, "SkillNameLabel", void 0), i([w(cc.RichText)], t.prototype, "SkillConditionRichText", void 0), i([w(cc.Button)], t.prototype, "UpLevelButton", void 0), i([w(cc.Label)], t.prototype, "UpLevelButtonLabel", void 0), i([w(cc.Button)], t.prototype, "LockButton", void 0), i([w(cc.Label)], t.prototype, "LockButtonLabel", void 0), i([w(cc.Label)], t.prototype, "MaxLevelTipLabel", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([S], t)
            }(c.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CircleSkillItemComponent": "CircleSkillItemComponent",
        "../Components/HeroFetterAttrItemComponent": "HeroFetterAttrItemComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroFetterSkillDescComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c6c20DjwulHLqMlRyXsI5AL", "HeroFetterSkillDescComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./CircleSkillItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SkillComponent = null, t.Name = null, t.SkillDescRichText = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.SkillComponent.Init(e, n), this.Name.string = e.Id.ToHeroFetterName();
                    var o = ("HeroFetter_Skill_Element_" + e.Element).ToUILocale();
                    this.SkillDescRichText.string = "CollectionPavilion_HeroFetter_Skill_Add_Desc".ToUILocale().Fmt(o, t + 1 + "%", t + 1 + "%")
                }, i([c(a.default)], t.prototype, "SkillComponent", void 0), i([c(cc.Label)], t.prototype, "Name", void 0), i([c(cc.RichText)], t.prototype, "SkillDescRichText", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./CircleSkillItemComponent": "CircleSkillItemComponent"
    }],
    HeroFetterSkillTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "92a05Kka3ZFrpZ48UC7mXIR", "HeroFetterSkillTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/CircleSkillItemComponent"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Components/Components"),
            h = e("../Components/UnArrowAttrItemComponent"),
            f = e("../Components/FetterSkillEffectItemComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.SkillItemComponent = null, t.SkillName = null, t.MaxLevelTagNode = null, t.MaxLevelTagLabel = null, t.PreviewButton = null, t.PreviewButtonLabel = null, t.AttrTitle = null, t.AttrContainerNode = null, t.SkillEffectTitle = null, t.SkillEffectContainer = null, t.ATTR_NODE_WIDTH = 920, t.ATTR_VALUE_X = 100, t._attrComponentArray = [], t._skillEffectComponentArray = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CollectionPavilionPanel/Components/UnArrowAttrItemComponent", cc.Prefab), n = this.LoadDynamicAsset("CollectionPavilionPanel/Components/FetterSkillEffectItemComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._attrItemPrefab = e[0], o._skillEffectPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrTitle.string = "CollectionPavilion_HeroFetter_Up_Attr_Title".ToUILocale(), this.SkillEffectTitle.string = "CollectionPavilion_HeroFetter_Up_Skill_Title".ToUILocale(), this.MaxLevelTagLabel.string = "CollectionPavilion_HeroFetter_Skill_Max".ToUILocale(), this.PreviewButtonLabel.string = "CollectionPavilion_HeroFetter_Skill_Max".ToUILocale(), this.PreviewButton.node.on("click", this.OnPreviewButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._fetterConfig = t[0], this._skillLevel = 0 == t[1] ? this._fetterConfig.Attrs.length : t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._currentLevelConfig = d.ConfigDataComponent.Instance.GetConfigById(u.HeroFetterLevel_Config, this._skillLevel), this.PreviewButton.node.active = this._skillLevel != this._fetterConfig.Attrs.length, this.MaxLevelTagNode.active = this._skillLevel == this._fetterConfig.Attrs.length, this.SkillItemComponent.Init(this._fetterConfig, this._skillLevel, !0), this.SkillName.string = this._fetterConfig.Id.ToHeroFetterName(), this.SetAttr(), this.SetSkillEffect()
                }, t.prototype.SetAttr = function() {
                    for (var e = 0; e < this._currentLevelConfig.Attrs.length; e++) {
                        var t = this._attrComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._attrItemPrefab);
                            n.setParent(this.AttrContainerNode), t = n.getComponent(h.default), this._attrComponentArray[e] = t
                        }
                        var o = this._currentLevelConfig.Attrs[e].Items,
                            r = p.default.GetHeroAttribute(o[0], o[1]);
                        t.node.active = !0, t.Init(r.Icon, r.Name, r.Value, this.ATTR_NODE_WIDTH, this.ATTR_VALUE_X, null, null, !0)
                    }
                    if (this._currentLevelConfig.Attrs.length < this._attrComponentArray.length)
                        for (e = this._currentLevelConfig.Attrs.length; e < this._attrComponentArray.length; e++) this._attrComponentArray[e].node.active = !1
                }, t.prototype.SetSkillEffect = function() {
                    for (var e = 0; e < this._fetterConfig.Attrs.length; e++) {
                        var t = this._skillEffectComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._skillEffectPrefab);
                            n.setParent(this.SkillEffectContainer), t = n.getComponent(f.default), this._skillEffectComponentArray[e] = t
                        }
                        var o = this._skillLevel > e,
                            r = ("HeroFetter_Skill_Element_" + this._fetterConfig.Element).ToUILocale(),
                            i = "CollectionPavilion_HeroFetter_Skill_Add_Desc".ToUILocale().Fmt(r, e + 1 + "%", e + 1 + "%");
                        t.Init(o, e + 1, i)
                    }
                }, t.prototype.OnPreviewButtonClick = function() {
                    this._skillLevel = this._fetterConfig.Attrs.length, this.DisPlay()
                }, i([m(l.default)], t.prototype, "SkillItemComponent", void 0), i([m(cc.Label)], t.prototype, "SkillName", void 0), i([m(cc.Node)], t.prototype, "MaxLevelTagNode", void 0), i([m(cc.Label)], t.prototype, "MaxLevelTagLabel", void 0), i([m(cc.Button)], t.prototype, "PreviewButton", void 0), i([m(cc.Label)], t.prototype, "PreviewButtonLabel", void 0), i([m(cc.Label)], t.prototype, "AttrTitle", void 0), i([m(cc.Node)], t.prototype, "AttrContainerNode", void 0), i([m(cc.Label)], t.prototype, "SkillEffectTitle", void 0), i([m(cc.Node)], t.prototype, "SkillEffectContainer", void 0), i([g], t)
            }(c.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/CircleSkillItemComponent": "CircleSkillItemComponent",
        "../Components/FetterSkillEffectItemComponent": "FetterSkillEffectItemComponent",
        "../Components/UnArrowAttrItemComponent": "UnArrowAttrItemComponent"
    }],
    HeroFetterSkillUpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5471c0DeMZIWZL9ShAxIGmW", "HeroFetterSkillUpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Components/CircleSkillItemComponent"),
            g = e("../Components/UnArrowAttrItemComponent"),
            m = e("../Components/FetterSkillMaterialComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../RedDot/RedDotManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.FirstSkillComponent = null, t.SecondSkillComponent = null, t.ExtraAttrLabel = null, t.ExtraAttrContainer = null, t.SingleSkillDescNode = null, t.SingleSkillDescCurrentLabel = null, t.DoubleSkillDescNode = null, t.DoubleSkillDescCurrentLabel = null, t.DoubleSkillDescCurrentMaskNode = null, t.DoubleSkillDescNextLabel = null, t.SkillDescTitle = null, t.MaterialLabel = null, t.MaterialContainer = null, t.UnlockTipRichText = null, t.UpLevelButton = null, t.UpLevelButtonLabel = null, t.ATTR_WIDTH = 930, t.ATTR_VALUE_X = 100, t.ATTR_NEXT_VALUE_X = 400, t._attrComponentArray = [], t._materialComponentArray = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CollectionPavilionPanel/Components/UnArrowAttrItemComponent", cc.Prefab), o = this.LoadDynamicAsset("CollectionPavilionPanel/Components/FetterSkillMaterialComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._unArrowAttrItemPrefab = e[1], r._materialItemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "CollectionPavilion_HeroFetter_Up_Title".ToUILocale(), this.ExtraAttrLabel.string = "CollectionPavilion_HeroFetter_Up_Attr_Title".ToUILocale(), this.SkillDescTitle.string = "CollectionPavilion_HeroFetter_Up_Skill_Title".ToUILocale(), this.MaterialLabel.string = "CollectionPavilion_HeroFetter_Up_Material_Title".ToUILocale(), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._fetterConfig = t[0]
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this._currentFetterModel = h.DataCenter.Instance.GetDataById(d.HeroFetter_Model, this._fetterConfig.Id), this._skillLevel = this._currentFetterModel.Level ? this._currentFetterModel.Level : 0, this._skillLevel != this._fetterConfig.Attrs.length) {
                        this.UpLevelButtonLabel.string = this._skillLevel > 0 ? "PowerCore_BottomToggle_0".ToUILocale() : "common_unlock".ToUILocale(), this.SetSkillData(), this._skillLevel > 0 && (this._currentLevelConfig = p.ConfigDataComponent.Instance.GetConfigById(u.HeroFetterLevel_Config, this._skillLevel)), this._nextLevelConfig = p.ConfigDataComponent.Instance.GetConfigById(u.HeroFetterLevel_Config, this._skillLevel + 1), this.SetAttr(), this.SetSkillMaterial(), this.SetRedDot();
                        var n = this._fetterConfig.Attrs[this._skillLevel].Items[0],
                            o = this.GetTotalHeroStarCount();
                        this.UnlockTipRichText.string = o >= n ? "CollectionPavilion_HeroFetter_Up_Condition_Complete".ToUILocale().Fmt(n, n) : "CollectionPavilion_HeroFetter_Up_Condition_UnComplete".ToUILocale().Fmt(o, n)
                    } else l.UIManager.Instance.BackUIPanel()
                }, t.prototype.SetSkillData = function() {
                    var e = ("HeroFetter_Skill_Element_" + this._fetterConfig.Element).ToUILocale();
                    if (this.FirstSkillComponent.Init(this._fetterConfig, this._skillLevel), this.SecondSkillComponent.Init(this._fetterConfig, this._skillLevel + 1), this._skillLevel == this._fetterConfig.Attrs.length || 0 == this._skillLevel) {
                        this.SingleSkillDescNode.active = !0, this.DoubleSkillDescNode.active = !1;
                        var t = 0 == this._skillLevel ? this._skillLevel + 1 : this._skillLevel;
                        this.SingleSkillDescCurrentLabel.string = "CollectionPavilion_HeroFetter_Skill_Add_Desc".ToUILocale().Fmt(e, t + "%", t + "%")
                    } else this.SingleSkillDescNode.active = !1, this.DoubleSkillDescNode.active = !0, this.DoubleSkillDescCurrentMaskNode.active = !1, this.DoubleSkillDescCurrentLabel.string = "CollectionPavilion_HeroFetter_Skill_Add_Desc".ToUILocale().Fmt(e, this._skillLevel + "%", this._skillLevel + "%"), this.DoubleSkillDescNextLabel.string = "CollectionPavilion_HeroFetter_Skill_Add_Desc".ToUILocale().Fmt(e, this._skillLevel + 1 + "%", this._skillLevel + 1 + "%")
                }, t.prototype.SetAttr = function() {
                    this._nextAttrDataArray = [], this._currentAttrValueArray = [];
                    for (var e = 0; e < this._nextLevelConfig.Attrs.length; e++) {
                        var t = this._attrComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._unArrowAttrItemPrefab);
                            n.setParent(this.ExtraAttrContainer), t = n.getComponent(g.default), this._attrComponentArray[e] = t
                        }
                        var o = void 0,
                            r = this._nextLevelConfig.Attrs[e].Items,
                            i = f.default.GetHeroAttribute(r[0], r[1]);
                        if (this._skillLevel > 0) {
                            var a = this._currentLevelConfig.Attrs[e].Items;
                            o = f.default.GetHeroAttribute(a[0], a[1]).Value
                        } else {
                            var s = p.ConfigDataComponent.Instance.GetConfigById(u.HeroAttribute_Config, r[0]);
                            switch (s.Format) {
                                case 1:
                                    o = (0 + s.InitialValue).toString();
                                    break;
                                case 2:
                                    o = (0 + s.InitialValue) / 10 + "%"
                            }
                        }
                        this._nextAttrDataArray.push(i), this._currentAttrValueArray.push(o), t.Init(i.Icon, i.Name, o, this.ATTR_WIDTH, this.ATTR_VALUE_X, i.Value, this.ATTR_NEXT_VALUE_X, !0)
                    }
                }, t.prototype.SetSkillMaterial = function() {
                    for (var e = 0, t = 0; t < this._nextLevelConfig.Materials.length; t++) {
                        var n = this._materialComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._materialItemPrefab);
                            o.setParent(this.MaterialContainer), n = o.getComponent(m.default), this._materialComponentArray[t] = n
                        }
                        var r = this._nextLevelConfig.Materials[t].Items[0],
                            i = this._nextLevelConfig.Materials[t].Items[1];
                        if (this._skillLevel > 0)
                            for (var a = 0; a < this._currentLevelConfig.Materials.length; a++) {
                                var s = this._currentLevelConfig.Materials[a].Items;
                                if (s[0] == r) {
                                    i -= s[1];
                                    break
                                }
                            }
                        n.node.active = !0, n.Init(this._itemPrefab, r, i), p.DataCenter.Instance.IsItemEnough(r, i) ? e++ : this._unEnoughItemId = r
                    }
                    if (this._materialComponentArray.length > this._nextLevelConfig.Materials.length)
                        for (t = this._nextLevelConfig.Materials.length; t < this._materialComponentArray.length; t++) this._materialComponentArray[t].node.active = !1;
                    this._isItemsEnough = e == this._nextLevelConfig.Materials.length
                }, t.prototype.SetRedDot = function() {
                    v.RedDotManager.Instance.BindInstance(this.UpLevelButton.node, v.RedDotManager.Instance.InstanceRedDot.HeroFetterSkillUpNode, {
                        Value1: this._fetterConfig.Id
                    })
                }, t.prototype.OnUpLevelButtonClick = function() {
                    if (this.GetTotalHeroStarCount() < this._fetterConfig.Attrs[this._skillLevel].Items[0]) {
                        var e = this._skillLevel > 0 ? "CollectionPavilion_HeroFetter_Up_UnUpLevel".ToUILocale() : "CollectionPavilion_HeroFetter_Up_Lock".ToUILocale();
                        I.UIUtlity.ShowFloatingHint(e)
                    } else {
                        if (!this._isItemsEnough) return I.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._unEnoughItemId.ToItemName())), void _.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._unEnoughItemId, !1);
                        this._oldBattlePower = p.DataCenter.Instance.GetIntData(C.UserDataKey.Power);
                        var t = new d.Req_Team_HeroFetterUpgradeLevel;
                        t.Sid = this._fetterConfig.Id, t.NewLevel = this._skillLevel + 1, p.RpcComponent.Instance.Call(t, this.OnUpLevelSuccess.bind(this))
                    }
                }, t.prototype.OnUpLevelSuccess = function() {
                    _.UIManager.Instance.ShowUIPanel(c.PanelConfig.BattlePowerChangePanel.Path, this._oldBattlePower, p.DataCenter.Instance.GetIntData(C.UserDataKey.Power)), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.HeroFetterSkillUpSuccessPanel.Path, this._skillLevel, this._nextAttrDataArray, this._currentAttrValueArray, this._fetterConfig)
                }, t.prototype.GetTotalHeroStarCount = function() {
                    for (var e = 0, t = 0; t < this._fetterConfig.HeroIds.length; t++) {
                        var n = h.DataCenter.Instance.GetDataById(d.HeroInfo_Model, this._fetterConfig.HeroIds[t]);
                        n && (e += n.MaxStar)
                    }
                    return e
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(y.default)], t.prototype, "FirstSkillComponent", void 0), i([w(y.default)], t.prototype, "SecondSkillComponent", void 0), i([w(cc.Label)], t.prototype, "ExtraAttrLabel", void 0), i([w(cc.Node)], t.prototype, "ExtraAttrContainer", void 0), i([w(cc.Node)], t.prototype, "SingleSkillDescNode", void 0), i([w(cc.Label)], t.prototype, "SingleSkillDescCurrentLabel", void 0), i([w(cc.Node)], t.prototype, "DoubleSkillDescNode", void 0), i([w(cc.Label)], t.prototype, "DoubleSkillDescCurrentLabel", void 0), i([w(cc.Node)], t.prototype, "DoubleSkillDescCurrentMaskNode", void 0), i([w(cc.Label)], t.prototype, "DoubleSkillDescNextLabel", void 0), i([w(cc.Label)], t.prototype, "SkillDescTitle", void 0), i([w(cc.Label)], t.prototype, "MaterialLabel", void 0), i([w(cc.Node)], t.prototype, "MaterialContainer", void 0), i([w(cc.RichText)], t.prototype, "UnlockTipRichText", void 0), i([w(cc.Button)], t.prototype, "UpLevelButton", void 0), i([w(cc.Label)], t.prototype, "UpLevelButtonLabel", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CircleSkillItemComponent": "CircleSkillItemComponent",
        "../Components/FetterSkillMaterialComponent": "FetterSkillMaterialComponent",
        "../Components/UnArrowAttrItemComponent": "UnArrowAttrItemComponent"
    }],
    HeroFetterSkillUpSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8f7a2I5AOhI154i6ITq7bJm", "HeroFetterSkillUpSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.UpgradeSuccessType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CircleSkillItemComponent"),
            p = e("../Components/FetterSkillUpSuccessAttrComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property;
        (function(e) {
            e[e.FetterSkill = 0] = "FetterSkill", e[e.HeroTalentResonance = 1] = "HeroTalentResonance"
        })(l = n.UpgradeSuccessType || (n.UpgradeSuccessType = {}));
        var y = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.FirstSkillComponent = null, t.SecondSkillComponent = null, t.ExtraAttrLabel = null, t.ExtraAttrContainer = null, t.SingleSkillDescNode = null, t.SingleSkillDescCurrentLabel = null, t.DoubleSkillDescNode = null, t.DoubleSkillDescCurrentLabel = null, t.DoubleSkillDescCurrentMaskNode = null, t.DoubleSkillDescNextLabel = null, t.SkillDescTitle = null, t.LevelChangeTitle = null, t.OldLevel = null, t.NewLevel = null, t.BgNode = null, t.TopLightNode = null, t._upgradeType = l.FetterSkill, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("CollectionPavilionPanel/Components/FetterSkillUpSuccessAttrComponent", cc.Prefab)];
                            case 1:
                                return t._attrItemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ExtraAttrLabel.string = "CollectionPavilion_HeroFetter_Up_Attr_Title".ToUILocale(), this.SkillDescTitle.string = "CollectionPavilion_HeroFetter_Up_Skill_Title".ToUILocale()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._skillLevel = t[0], this._nextAttrDataArray = t[1], this._currentAttrValueArray = t[2], this._fetterConfig = t[3], null != t[4] && (this._upgradeType = t[4])
            }, t.prototype.DisPlay = function(t) {
                switch (e.prototype.DisPlay.call(this, t), this._upgradeType) {
                    case l.HeroTalentResonance:
                        this.SetHeroTalentResonanceLevel();
                        break;
                    default:
                        this.SetSkillData()
                }
                this.SetAttr()
            }, t.prototype.SetSkillData = function() {
                var e = ("HeroFetter_Skill_Element_" + this._fetterConfig.Element).ToUILocale();
                if (this.FirstSkillComponent.Init(this._fetterConfig, this._skillLevel), this.SecondSkillComponent.Init(this._fetterConfig, this._skillLevel + 1), this._skillLevel == this._fetterConfig.Attrs.length || 0 == this._skillLevel) {
                    this.SingleSkillDescNode.active = !0, this.DoubleSkillDescNode.active = !1;
                    var t = 0 == this._skillLevel ? this._skillLevel + 1 : this._skillLevel;
                    this.SingleSkillDescCurrentLabel.string = "CollectionPavilion_HeroFetter_Skill_Add_Desc".ToUILocale().Fmt(e, t + "%", t + "%")
                } else this.SingleSkillDescNode.active = !1, this.DoubleSkillDescNode.active = !0, this.DoubleSkillDescCurrentMaskNode.active = !1, this.DoubleSkillDescCurrentLabel.string = "CollectionPavilion_HeroFetter_Skill_Add_Desc".ToUILocale().Fmt(e, this._skillLevel + "%", this._skillLevel + "%"), this.DoubleSkillDescNextLabel.string = "CollectionPavilion_HeroFetter_Skill_Add_Desc".ToUILocale().Fmt(e, this._skillLevel + 1 + "%", this._skillLevel + 1 + "%")
            }, t.prototype.SetHeroTalentResonanceLevel = function() {
                this.LevelChangeTitle.node.parent.active = !0, this.FirstSkillComponent.node.active = !1, this.SecondSkillComponent.node.active = !1, this.OldLevel.node.active = !0, this.NewLevel.node.active = !0, this.OldLevel.node.parent.height = 100, this.BgNode.y = 350, this.TopLightNode.y = 460, this.SkillDescTitle.node.parent.active = !1, this.SingleSkillDescNode.active = !1, this.LevelChangeTitle.string = "HeroTalent_ResonanceLevel".ToUILocale(), this.ExtraAttrLabel.string = "upgrade_attr".ToUILocale(), this.OldLevel.string = "allianceBase_level".ToUILocale().Fmt(this._skillLevel), this.NewLevel.string = "allianceBase_level".ToUILocale().Fmt(this._skillLevel + 1)
            }, t.prototype.SetAttr = function() {
                for (var e = 0; e < this._nextAttrDataArray.length; e++) {
                    var t = cc.instantiate(this._attrItemPrefab);
                    t.setParent(this.ExtraAttrContainer);
                    var n = t.getComponent(p.default),
                        o = this._nextAttrDataArray[e];
                    n.Init(o.Icon, o.Name, this._currentAttrValueArray[e], o.Value)
                }
            }, i([f(u.default)], t.prototype, "FirstSkillComponent", void 0), i([f(u.default)], t.prototype, "SecondSkillComponent", void 0), i([f(cc.Label)], t.prototype, "ExtraAttrLabel", void 0), i([f(cc.Node)], t.prototype, "ExtraAttrContainer", void 0), i([f(cc.Node)], t.prototype, "SingleSkillDescNode", void 0), i([f(cc.Label)], t.prototype, "SingleSkillDescCurrentLabel", void 0), i([f(cc.Node)], t.prototype, "DoubleSkillDescNode", void 0), i([f(cc.Label)], t.prototype, "DoubleSkillDescCurrentLabel", void 0), i([f(cc.Node)], t.prototype, "DoubleSkillDescCurrentMaskNode", void 0), i([f(cc.Label)], t.prototype, "DoubleSkillDescNextLabel", void 0), i([f(cc.Label)], t.prototype, "SkillDescTitle", void 0), i([f(cc.Label)], t.prototype, "LevelChangeTitle", void 0), i([f(cc.Label)], t.prototype, "OldLevel", void 0), i([f(cc.Label)], t.prototype, "NewLevel", void 0), i([f(cc.Node)], t.prototype, "BgNode", void 0), i([f(cc.Node)], t.prototype, "TopLightNode", void 0), i([h], t)
        }(c.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/CircleSkillItemComponent": "CircleSkillItemComponent",
        "../Components/FetterSkillUpSuccessAttrComponent": "FetterSkillUpSuccessAttrComponent"
    }],
    HeroFetterTotalAttrPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5b4eW5BF1AoILPM3BZnt55", "HeroFetterTotalAttrPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/CustomLayout"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/HeroFetterSkillDescComponent"),
            d = e("../../Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/Components"),
            g = e("../Components/UnArrowAttrItemComponent"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.AttrPartTitle = null, t.AttrContainerNode = null, t.SkillPartTitle = null, t.UnSkillTipLabel = null, t.SkillCustomLayout = null, t._heroFetterConfigArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshMainSceneScrollView, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshMainSceneScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CollectionPavilionPanel/Components/HeroFetterSkillDescComponent", cc.Prefab), n = this.LoadDynamicAsset("CollectionPavilionPanel/Components/UnArrowAttrItemComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._skillDescItemPrefab = e[0], o._unArrowAttrItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "CollectionPavilion_HeroFetter_TotalAttr_Title".ToUILocale(), this.AttrPartTitle.string = "HolyEquipmentGallery_Addtion_All".ToUILocale(), this.SkillPartTitle.string = "CollectionPavilion_HeroFetter_TotalAttr_Skill".ToUILocale(), this.UnSkillTipLabel.string = "CollectionPavilion_HeroFetter_TotalAttr_UnSkill".ToUILocale(), this.SkillCustomLayout.Init(this._skillDescItemPrefab)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this.SetConfigArray(), this.SetAttrData()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetAttrItem(), this.UnSkillTipLabel.node.active = 0 == this._heroFetterConfigArray.length, this.SkillCustomLayout.node.active = 0 != this._heroFetterConfigArray.length, this.SkillCustomLayout.RenderLayOut(this._heroFetterConfigArray.length))
                }, t.prototype.SetConfigArray = function() {
                    for (var e = d.ConfigDataComponent.Instance.GetArrayConfig(h.HeroFetter_Config), t = 0; t < e.length; t++) {
                        var n = y.DataCenter.Instance.GetDataById(f.HeroFetter_Model, e[t].Id);
                        n && n.Level > 0 && this._heroFetterConfigArray.push(e[t])
                    }
                }, t.prototype.SetAttrData = function() {
                    this._heroFetterTotalAttr = {};
                    for (var e = 0; e < this._heroFetterConfigArray.length; e++) {
                        var t = this._heroFetterConfigArray[e],
                            n = y.DataCenter.Instance.GetDataById(f.HeroFetter_Model, t.Id),
                            o = d.ConfigDataComponent.Instance.GetConfigById(h.HeroFetterLevel_Config, n.Level);
                        if (o)
                            for (var r = 0; r < o.Attrs.length; r++) {
                                var i = o.Attrs[r].Items[0],
                                    a = o.Attrs[r].Items[1];
                                this._heroFetterTotalAttr[i] ? this._heroFetterTotalAttr[i] += a : this._heroFetterTotalAttr[i] = a
                            }
                    }
                }, t.prototype.SetAttrItem = function() {
                    for (var e in this._heroFetterTotalAttr) {
                        var t = cc.instantiate(this._unArrowAttrItemPrefab);
                        t.parent = this.AttrContainerNode;
                        var n = t.getComponent(g.default),
                            o = m.default.GetHeroAttribute(Number(e), this._heroFetterTotalAttr[e]);
                        n.Init(o.Icon, o.Name, o.Value, 456, 160, null, null, !0)
                    }
                }, t.prototype.RefreshMainSceneScrollView = function(e, t) {
                    var n = this;
                    t == this.SkillCustomLayout && e.forEach(function(e, t) {
                        var o = n._heroFetterConfigArray[t],
                            r = y.DataCenter.Instance.GetDataById(f.HeroFetter_Model, o.Id),
                            i = r.Level > 0 ? r.Level - 1 : 0;
                        e.getComponent(p.default).Init(o, i, r.Level)
                    })
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Label)], t.prototype, "AttrPartTitle", void 0), i([C(cc.Node)], t.prototype, "AttrContainerNode", void 0), i([C(cc.Label)], t.prototype, "SkillPartTitle", void 0), i([C(cc.Label)], t.prototype, "UnSkillTipLabel", void 0), i([C(l.default)], t.prototype, "SkillCustomLayout", void 0), i([_], t)
            }(c.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroFetterSkillDescComponent": "HeroFetterSkillDescComponent",
        "../Components/UnArrowAttrItemComponent": "UnArrowAttrItemComponent"
    }],
    HeroInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2ecc2Q/+XRAjbNiumiU+DUr", "HeroInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Tab = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../GamePlay/Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../Components/LevelComponent"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../Components/CustomToggle"),
            I = e("../../../Consts/Consts"),
            _ = e("../../../Util/TimeUtil"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property;
        (function(e) {
            e[e.Attr = 0] = "Attr", e[e.Equip = 1] = "Equip", e[e.UpStar = 2] = "UpStar", e[e.Personality = 3] = "Personality", e[e.Gem = 4] = "Gem", e[e.None = 5] = "None"
        })(l = n.Tab || (n.Tab = {}));
        var S = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Bg = null, t.Bgs = [], t.HeroTitle = null, t.HeroName = null, t.LevelComponent = null, t.HeroLevelBgNode = null, t.HeroLevelLabel = null, t.HeroMaxLevelLabel = null, t.TabAttrTopRebornButton = null, t.Toggles = [], t.AttrModeContainer = null, t.EquipModeContainer = null, t.UpStarModeContainer = null, t.PersonalityModeContainer = null, t.GemModeContainer = null, t.LeftArrowBtn = null, t.RightArrowBtn = null, t.BattlePointLabel = null, t.ElementIcon = null, t.ProfessionIcon = null, t.ReturnBtn = null, t.AvatarContainer = null, t.HeroFigure = null, t.PersonalityLock = null, t.PersonalityLockLbl = null, t.PersonalityStar = null, t.PersonalityStarLbl = null, t.FavorItemContainer = null, t.RebornBtn = null, t.RebornBtnLabel = null, t.LockBtn = null, t.LockBtnLabel = null, t.LockSprite = null, t.PersonalityChangeBtn = null, t.PersonalityNew = null, t.PersonalityChangeLabel = null, t.SkinButton = null, t.SkinLabel = null, t.HeroDescButton = null, t.HeroDescLabel = null, t.GemSlots = null, t.Slots = [], t.TriggerGiftLeftTimeLabel = null, t.TriggerGiftButtonLabel = null, t.TriggerGiftButton = null, t.TalentNode = null, t.TalentBtn = null, t.TalentBtnLab = null, t.TalentLock = null, t.PetButton = null, t.PetButtonBg = null, t.PetIcon = null, t.MagicCircleButton = null, t.MagicCircleButtonBg = null, t.MagicCircleIcon = null, t.StarPieceButton = null, t.StarPieceButtonBackground = null, t.StarPieceButtoIcon = null, t.StarPieceButtonLabel = null, t.StarPieceButtonRedDot = null, t.HeroChangeButton = null, t.HeroChangeButtonBackground = null, t.HeroChangeButtonLabel = null, t.HeroChangeButtonRedDot = null, t.HideButton = null, t.HideLabel = null, t.LeftButtonsNode = null, t.RightButtonsNode = null, t.TopHideNode = null, t.MainHideNode = null, t.TopInfoNode = null, t.NewBgNode = null, t.InfoHeaderNode = null, t.PersonalityMaxBtn = null, t.PersonalityMaxLabel = null, t.PersonalityHandbookButton = null, t.PersonalityHandbookLabel = null, t.GemHandBookButton = null, t.GemHandBookLabel = null, t.RightBtnsLayout = null, t.UpStarPreviewBtn = null, t.UpStarPreviewLabel = null, t.AuraBtn = null, t.AuraBtnSprite = null, t.AuraBtnLabel = null, t.JobChangeBtn = null, t.JobChangeLabel = null, t.HeroMaskNode = null, t.InfoWidget = null, t.ToggleBgNode = null, t.HideBtnSprite = null, t.ToggleScrollView = null, t.OldBgNode = null, t.OldInfoHeader = null, t.OldBattlePointLabel = null, t.OldHeroTitle = null, t.OldHeroName = null, t.OldLevelComponent = null, t.OldElementIcon = null, t.OldProfessionIcon = null, t._attrTabPrefab = null, t._starTabPrefab = null, t._equipTabPrefab = null, t._personalityTabPrefab = null, t._gemTabPrefab = null, t._isHide = !1, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(p.EventKeys.EVENT_EQUIP_DATA_REFRESH, this.OnEquipDataChange, this), c.Game.EventDispatcher.On(p.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), c.Game.EventDispatcher.On(E.GameEventIds.ChangeDataDetail.Fmt(u.UserHero_Model._n_), this.BindGemToggle, this), c.Game.EventDispatcher.On(I.GameEventIds.ChangeDataDetail.Fmt(u.TriggerGift_Model._n_), this.OnTriggerModelChange, this), c.Game.EventDispatcher.On(p.EventKeys.EVENT_PET_DATA_REFRESH, this.OnPetDataChange, this), c.Game.EventDispatcher.On(p.EventKeys.EVENT_GEM_CHANGE_REFRESH, this.ConfigGemMode, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(p.EventKeys.EVENT_EQUIP_DATA_REFRESH, this.OnEquipDataChange), c.Game.EventDispatcher.Off(p.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), c.Game.EventDispatcher.Off(E.GameEventIds.ChangeDataDetail.Fmt(u.UserHero_Model._n_), this.BindGemToggle, this), c.Game.EventDispatcher.Off(I.GameEventIds.ChangeDataDetail.Fmt(u.TriggerGift_Model._n_), this.OnTriggerModelChange, this), c.Game.EventDispatcher.Off(p.EventKeys.EVENT_PET_DATA_REFRESH, this.OnPetDataChange, this), c.Game.EventDispatcher.Off(p.EventKeys.EVENT_GEM_CHANGE_REFRESH, this.ConfigGemMode, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(T.BundlePath.HeroFavorItemComponent)];
                            case 1:
                                return t._favorItemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this), this.LeftArrowBtn.node.on("click", this.OnClickLeftArrow, this), this.RightArrowBtn.node.on("click", this.OnClickRightArrow, this), this.ProfessionIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnClickProfessionIconIcon, this), this.OldProfessionIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnClickProfessionIconIcon, this), this.ElementIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnClickElementIcon, this), this.OldElementIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnClickElementIcon, this), this.RebornBtn.node.on("click", this.OnClickReborn, this), this.TabAttrTopRebornButton.node.on("click", this.OnClickReborn, this), this.LockBtn.node.on("click", this.OnClickLock, this), this.PersonalityChangeBtn.node.on("click", this.OnClickPersonalityChange, this), this.SkinButton.node.on("click", this.OnClickSkin, this), this.HeroDescButton.node.on("click", this.OnClickHeroDesc, this), this.TriggerGiftButton.node.on("click", this.OnTriggerButtonClick, this), this.PetButton.node.on("click", this.OnPetButtonClick, this), this.MagicCircleButton.node.on("click", this.OnMagicCircleButtonClick, this), this.StarPieceButton.node.on("click", this.OnStarPieceButtonClicked, this), this.HeroChangeButton.node.on("click", this.OnHeroChangeButtonClicked, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.PersonalityMaxBtn.node.on("click", this.OnPersonalityMaxBtnClick, this), this.PersonalityHandbookButton.node.on("click", this.OnPersonalityHandbookBtnClick, this), this.GemHandBookButton.node.on("click", this.OnGemHandBookButtonClick, this), this.UpStarPreviewBtn.node.on("click", this.OnUpStarPreviewBtnClick, this), this.AuraBtn.node.on("click", this.OnAuraBtnClick, this), this.JobChangeBtn.node.on("click", this.OnJobChangeBtnClick, this), this.TriggerGiftButtonLabel.string = "triggerGift_title".ToUILocale(), this.RebornBtnLabel.string = "hero_reborn_btn".ToUILocale(), this.LockBtnLabel.string = "hero_lock".ToUILocale(), this.PersonalityChangeLabel.string = "personality_change".ToUILocale(), this.SkinLabel.string = "heroInfo_skin_button".ToUILocale(), this.HeroDescLabel.string = "heroIntroduce".ToUILocale(), this.TalentBtnLab.string = "allianceBase_mainPageTalent".ToUILocale(), this.StarPieceButtonLabel.string = "StarPiece_ExclusiveToggle".ToUILocale(), this.HeroChangeButtonLabel.string = "heroInfo_change_button".ToUILocale(), this.PersonalityMaxLabel.string = "hero_personality_max_level".ToUILocale(), this.PersonalityHandbookLabel.string = "handbook_person_rule_title".ToUILocale(), this.GemHandBookLabel.string = "handbook_label".ToUILocale(), this.JobChangeLabel.string = "heroJob_change".ToUILocale(), this.SkinButton.node.active = !1, this.GemSlots.active = !1, this.InitToggles(), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(W.default))
            }, t.prototype.InitToggles = function() {
                for (var e = this.Toggles.length, t = 0; t < e; t++) {
                    var n = this.Toggles[t];
                    n.node.on("toggle", this.OnSwitchTab, this), n.Init(("heroInfoPanel_toggle_" + t).ToUILocale())
                }
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._heroSid = t[0], t[1] ? this._heroArr = t[1] : this._heroArr = [], t[2] ? this._defaultTab = t[2] : this._defaultTab = l.Attr, this._starResonanceSecondInitialLevel = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("StarResonanceSecondInitialLevel")
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisplay = t, !t || h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid) ? this.SetUIContent() : c.UIManager.Instance.BackUIPanel()
            }, t.prototype.SetUIContent = function() {
                this._currentTab = l.None, this.GetStarResonanceLevelLimitHeroCount(), this.ConfigHeroData(), this.ConfigArrowBtn(), this.ConfigTitle(), this.ConfigLockState(), this.ConfigHeroFavorItem(), this.ConfigSkin(), this.ConfigHeroTalent(), this.SetHeroDesc(), this.SetPet(), this.SetMagicCircle(), this.SetButtonsActive(), this.SetBgNode();
                var e = this.Toggles[this._defaultTab];
                e.isChecked = !0, this.OnSwitchTab(e), this.ShowGuide()
            }, t.prototype.SetButtonsActive = function() {
                this.SetPersonalityHandbookBtn(), this.SetUpStarPreviewBtn(), this.SetJobChangeBtn(), this.SetRebornBtn()
            }, t.prototype.SetBgNode = function() {}, t.prototype.BindRedDot = function() {
                this.BindAttrToggle(), this.BindEquipToggle(), this.BindStarToggle(), this.BindPersonalityToggle(), this.BindGemToggle(), this.BindHeroSkinButton(), this.BindHeroDescButton(), this.BindHeroTalentButton(), this.BindPetButton(), this.BindMagicCircleButton(), this.BindPersonalityHandbookBtn(), this.BindElementButton(), R.RedDotManager.Instance.BindInstance(this.JobChangeBtn.node, R.RedDotManager.Instance.InstanceRedDot.HeroJobChangeButton, {
                    Value1: this._heroSid
                })
            }, t.prototype.BindAttrToggle = function() {
                var e = this.Toggles[l.Attr].node;
                R.RedDotManager.Instance.BindInstance(e, R.RedDotManager.Instance.InstanceRedDot.HeroInfoAttrToggle, {
                    Value1: this._heroSid
                })
            }, t.prototype.BindEquipToggle = function() {
                var e = this.Toggles[l.Equip].node;
                R.RedDotManager.Instance.BindInstance(e, R.RedDotManager.Instance.InstanceRedDot.HeroInfoEquipToggle, {
                    Value1: this._heroSid
                })
            }, t.prototype.BindStarToggle = function() {
                var e = this.Toggles[l.UpStar].node;
                R.RedDotManager.Instance.BindInstance(e, R.RedDotManager.Instance.InstanceRedDot.HeroInfoStarToggle, {
                    Value1: this._heroSid
                })
            }, t.prototype.BindPersonalityToggle = function() {
                var e = this.Toggles[l.Personality].node;
                R.RedDotManager.Instance.BindInstance(e, R.RedDotManager.Instance.InstanceRedDot.HeroInfoPersonalityToggle, {
                    Value1: this._heroSid,
                    extra: !1
                })
            }, t.prototype.BindGemToggle = function() {
                var e = this.Toggles[l.Gem].node;
                R.RedDotManager.Instance.BindInstance(e, R.RedDotManager.Instance.InstanceRedDot.HeroInfoGemToggle, {
                    Value1: this._heroSid,
                    extra: !1
                })
            }, t.prototype.BindHeroSkinButton = function() {
                R.RedDotManager.Instance.BindInstance(this.SkinButton.node, R.RedDotManager.Instance.InstanceRedDot.HeroSkinButton, {
                    Value1: this._heroSid
                })
            }, t.prototype.BindHeroDescButton = function() {
                R.RedDotManager.Instance.BindInstance(this.HeroDescButton.node, R.RedDotManager.Instance.InstanceRedDot.HeroDescButton, {
                    Value1: this._selectHero.HeroId
                })
            }, t.prototype.BindHeroTalentButton = function() {
                R.RedDotManager.Instance.BindInstance(this.TalentBtn.node, R.RedDotManager.Instance.InstanceRedDot.HeroTalentEntranceNode, {
                    Value1: this._heroSid
                })
            }, t.prototype.BindPetButton = function() {
                h.DataCenter.Instance.GetDataList(u.UserPet_Model).length > 0 && R.RedDotManager.Instance.BindInstance(this.PetButton.node, R.RedDotManager.Instance.InstanceRedDot.HeroPetNode, {
                    Value1: this._heroSid
                })
            }, t.prototype.BindMagicCircleButton = function() {
                h.DataCenter.Instance.GetDataList(u.MagicCircle_Model).length > 0 && R.RedDotManager.Instance.BindInstance(this.MagicCircleButton.node, R.RedDotManager.Instance.InstanceRedDot.HeroMagicCircleNode, {
                    Value1: this._heroSid
                })
            }, t.prototype.BindPersonalityHandbookBtn = function() {
                R.RedDotManager.Instance.BindInstance(this.PersonalityHandbookButton.node, R.RedDotManager.Instance.InstanceRedDot.PersonalityHandbookBtn, {
                    Value1: this._heroSid
                })
            }, t.prototype.BindElementButton = function() {
                R.RedDotManager.Instance.BindInstance(this.ElementIcon.node, R.RedDotManager.Instance.InstanceRedDot.ChaosElementButton, {
                    Value1: this._heroInfoModel.HeroId
                })
            }, t.prototype.GetStarResonanceLevelLimitHeroCount = function() {
                if (1 == h.DataCenter.Instance.GetDataById(u.StarResonance_Model, 1).Stage) {
                    this.StarResonanceLevelLimitHeroCount = 0;
                    for (var e = h.DataCenter.Instance.GetDataList(u.UserHero_Model), t = 0; t < e.length; t++) e[t].Level >= this._starResonanceSecondInitialLevel && this.StarResonanceLevelLimitHeroCount++
                }
            }, t.prototype.ConfigHeroData = function() {
                this._selectHero = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid), this._selectIndex = this._heroArr.indexOf(this._heroSid), this._heroInfoModel = h.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._selectHero.HeroId)
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                if (t != this._currentTab) {
                    if (t == l.Personality && 0 == this.GetPersonalityLockState()) {
                        var n = D.default.Instance.IsGameModuleUnlock(B.GameModuleType.Personality)[1];
                        return void d.UIUtlity.ShowFloatingHint(n)
                    }
                    this.SetPanelTab(t), this.ConfigHeroAvatar(), this.ConfigBg(), this.ConfigStar(), this.ConfigBtns(), this.CondfigLockNode(), this.ConfigSkin(), this.ConfigHeroTalent(), this.BindRedDot(), this.SetHeroDesc(), this.SetTriggerGift(), this.ConfigHeroFavorItem(), this.SetStarPieceButton(), this.SetHeroChangeButton(), this.SetHideButton(), this.SetButtonsActive(), this.SetBgNode()
                }
            }, t.prototype.SetPanelTab = function(e) {
                this._currentTab != e && (this._currentTab = e, this._defaultTab = e, this.Toggles[this._currentTab].isChecked = !0, this.AttrModeContainer.active = !1, this.EquipModeContainer.active = !1, this.UpStarModeContainer.active = !1, this.PersonalityModeContainer.active = !1, this.GemModeContainer.active = !1, this.GemSlots.active = !1, this.DoSwitchTabJob())
            }, t.prototype.SetTogglesUIStyle = function() {
                var e = this;
                this.scheduleOnce(function() {
                    e.ToggleScrollView.enabled = e.ToggleScrollView.content.width >= e.ToggleScrollView.node.width, e.ToggleScrollView.content.width < e.ToggleScrollView.node.width && (e.ToggleScrollView.content.x = 0)
                }, 0)
            }, t.prototype.DoSwitchTabJob = function() {
                this._selectHero = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid);
                var e = this.GetPersonalityLockState(),
                    t = D.default.Instance.IsGameModuleOpen(B.GameModuleType.Personality),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("PersonalityStarLevelLimit");
                t && this.HeroBaseConfig.StarLevel >= n ? (this.Toggles[l.Personality].node.active = !0, 0 == e ? (d.UIUtlity.OnNodeGray(this.Toggles[l.Personality].node), this._currentTab == l.Personality && (this.SetPanelTab(l.Attr), this._currentTab = l.Attr, this.Toggles[l.Attr].isChecked = !0)) : d.UIUtlity.OffNodeGray(this.Toggles[l.Personality].node)) : (this.Toggles[l.Personality].node.active = !1, this._currentTab == l.Personality && (this.SetPanelTab(l.Attr), this._currentTab = l.Attr, this.Toggles[l.Attr].isChecked = !0));
                var o = D.default.Instance.IsGameModuleUnlock(B.GameModuleType.Gem)[0];
                switch (this.Toggles[l.Gem].node.active = o, this.SetTabUI(), this._currentTab) {
                    case l.Attr:
                        this.NewBgNode.y = -251, this.InfoHeaderNode.y = -251, this.ConfigAttrMode();
                        break;
                    case l.Equip:
                        this.NewBgNode.y = -161, this.InfoHeaderNode.y = -161, this.ConfigEquipMode();
                        break;
                    case l.UpStar:
                        this.NewBgNode.y = -161, this.InfoHeaderNode.y = -161, this.ConfigUpStarMode();
                        break;
                    case l.Personality:
                        this.ConfigPersonalityMode();
                        break;
                    case l.Gem:
                        this.ConfigGemMode()
                }
                this.SetTogglesUIStyle(), this.SetHeroLevel()
            }, t.prototype.SetTabUI = function() {
                this._currentTab == l.Gem ? (this.InfoHeaderNode.active = !1, this.NewBgNode.active = !1, this.OldBgNode.active = !0, this.OldInfoHeader.active = !0, this.TopHideNode.active = !0, this.TopInfoNode.active = !1) : (this.InfoHeaderNode.active = !0, this.NewBgNode.active = !0, this.OldBgNode.active = !1, this.OldInfoHeader.active = !1, this.TopHideNode.active = !1, this.TopInfoNode.active = !0)
            }, t.prototype.ConfigAttrMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.AttrModeContainer.active = !0, null != this._attrTabPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroInfoPanel/HeroInfoTabAttr")]);
                            case 1:
                                if (e._attrTabPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._attrTabPrefab), [2];
                                (t = cc.instantiate(this._attrTabPrefab)).setParent(this.AttrModeContainer), this._attrTabComponent = t.getComponent(w.default), n.label = 2;
                            case 2:
                                return this._attrTabComponent.Init(this._selectHero, this), [2]
                        }
                    })
                })
            }, t.prototype.SetHeroLevel = function() {
                this._currentTab == l.Attr ? (this.HeroLevelBgNode.active = !0, this.HeroMaxLevelLabel.string = "/" + this.CurrentStarConfig.MaxLevel.toString(), this._selectHero.TemplePosition > 0 ? (this.HeroLevelLabel.node.color = d.UIUtlity.Herolevel_Label_Color_StarResonance, this.HeroLevelLabel.string = "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(this._selectHero.TempleLevel)) : (this.HeroLevelLabel.node.color = cc.Color.WHITE, this.HeroLevelLabel.string = "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(this._selectHero.Level))) : this.HeroLevelBgNode.active = !1
            }, t.prototype.ConfigEquipMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.EquipModeContainer.active = !0, null != this._equipTabPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("EquipmentPanel/HeroInfoTabEquip")]);
                            case 1:
                                if (e._equipTabPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._equipTabPrefab), [2];
                                (t = cc.instantiate(this._equipTabPrefab)).setParent(this.EquipModeContainer), this._equipTabComponent = t.getComponent(A.default), n.label = 2;
                            case 2:
                                return this._equipTabComponent.Init(this._selectHero, this), [2]
                        }
                    })
                })
            }, t.prototype.ConfigUpStarMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.UpStarModeContainer.active = !0, null != this._starTabPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroInfoPanel/HeroInfoTabStar")]);
                            case 1:
                                if (e._starTabPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._starTabPrefab), [2];
                                (t = cc.instantiate(this._starTabPrefab)).setParent(this.UpStarModeContainer), this._starTabComponent = t.getComponent(P.default), n.label = 2;
                            case 2:
                                return this._starTabComponent.Init(this._selectHero, this), [2]
                        }
                    })
                })
            }, t.prototype.ConfigPersonalityMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.PersonalityModeContainer.active = !0, this._personalityTabPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroInfoPanel/HeroInfoTabPersonality")]);
                            case 1:
                                if (e._personalityTabPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._personalityTabPrefab), [2];
                                (t = cc.instantiate(this._personalityTabPrefab)).setParent(this.PersonalityModeContainer), this._personalityTabComponent = t.getComponent(O.default), n.label = 2;
                            case 2:
                                return this._personalityTabComponent.Init(this._selectHero, this), [2]
                        }
                    })
                })
            }, t.prototype.ConfigGemMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.GemSlots.active = !0, this.GemModeContainer.active = !0, this._gemTabPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HeroInfoPanel/HeroInfoTabGem")]);
                            case 1:
                                if (e._gemTabPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._gemTabPrefab), [2];
                                (t = cc.instantiate(this._gemTabPrefab)).setParent(this.GemModeContainer), this._gemTabComponent = t.getComponent(N.default), n.label = 2;
                            case 2:
                                return this._gemTabComponent.SetSolts(this.Slots), this._gemTabComponent.Init(this._heroSid), this._isHide = !1, this.SetHideLabel(), [2]
                        }
                    })
                })
            }, t.prototype.OnClickLeftArrow = function() {
                var e = this._selectIndex - 1;
                this._selectIndex = e >= 0 ? e : 0, this.ConfigArrowBtn(), this.SwitchHero(this._selectIndex), c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_SELECT_HEROSID, this._heroSid)
            }, t.prototype.OnClickRightArrow = function() {
                var e = this._selectIndex + 1,
                    t = this._heroArr.length - 1;
                this._selectIndex = e <= t ? e : t, this.ConfigArrowBtn(), this.SwitchHero(this._selectIndex), c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_SELECT_HEROSID, this._heroSid)
            }, t.prototype.ConfigArrowBtn = function() {
                this._heroArr.length > 1 ? this._selectIndex <= 0 ? (this.LeftArrowBtn.node.active = !1, this.RightArrowBtn.node.active = !0) : this._selectIndex >= this._heroArr.length - 1 ? (this.LeftArrowBtn.node.active = !0, this.RightArrowBtn.node.active = !1) : (this.LeftArrowBtn.node.active = !0, this.RightArrowBtn.node.active = !0) : (this.LeftArrowBtn.node.active = !1, this.RightArrowBtn.node.active = !1)
            }, t.prototype.SwitchHero = function(e) {
                this._heroSid = this._heroArr[e], this.ConfigHeroData(), this.ConfigTitle(), this.DoSwitchTabJob(), this.ConfigHeroAvatar(), this.ConfigLockState(), this.ConfigHeroFavorItem(), this.ConfigBg(), this.ConfigStar(), this.ConfigBtns(), this.CondfigLockNode(), this.BindRedDot(), this.SetHeroDesc(), this.SetTriggerGift(), this.ConfigHeroTalent(), this.SetPet(), this.SetMagicCircle(), this.SetStarPieceButton(), this.SetHeroChangeButton(), this.SetHideLabel(), this.SetButtonsActive()
            }, t.prototype.ConfigTitle = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                if (e = F.default.Instance.IsVNChannel(), this.HeroName.node.active = !e, e || (this.OldHeroName.string = this.HeroName.string = this._selectHero.HeroId.ToHeroName()), this.OldHeroTitle.string = this.HeroTitle.string = e ? this._selectHero.HeroId.ToHeroName() : this._selectHero.HeroId.ToHeroTitle(), this.OldBattlePointLabel.string = this.BattlePointLabel.string = this._selectHero.Power.toString(), this._lastBattlePower = this._selectHero.Power, this.HeroBaseConfig = h.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, this._selectHero.HeroId), t = y.LevelComponent.GetLevelShowType(this.HeroBaseConfig.CoreHero, this.HeroBaseConfig.ElementType), this.LevelComponent.Init(this._selectHero.StarLevel, 0, 0, t), this.OldLevelComponent.Init(this._selectHero.StarLevel, 0, 0, t), this.OldElementIcon.spriteFrame = this.ElementIcon.spriteFrame = d.UIUtlity.GetHeroElementIcon(this.HeroBaseConfig.ElementType), this.OldProfessionIcon.spriteFrame = this.ProfessionIcon.spriteFrame = d.UIUtlity.GetHeroCareerIcon(this.HeroBaseConfig.Career), this.CurrentStarConfig = h.ConfigDataComponent.Instance.GetConfigById(f.HeroStar_Config, this._selectHero.StarLevel), this.CurrentLevelConfig = h.ConfigDataComponent.Instance.GetConfigById(f.HeroLevel_Config, this._selectHero.Level), n = this.HeroBaseConfig.CoreHero == B.CoreHeroTag.SP || this.HeroBaseConfig.CoreHero == B.CoreHeroTag.UR || this.HeroBaseConfig.CoreHero == B.CoreHeroTag.LR, this.AuraBtn.node.active = n, !n) return [3, 7];
                                switch (o = "", r = void 0, this.HeroBaseConfig.CoreHero) {
                                    case B.CoreHeroTag.SP:
                                        return [3, 1];
                                    case B.CoreHeroTag.UR:
                                        return [3, 2];
                                    case B.CoreHeroTag.LR:
                                        return [3, 4]
                                }
                                return [3, 5];
                            case 1:
                                return o = "hero_SP_halo".ToUILocale(), r = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spLogo"), [3, 6];
                            case 2:
                                return o = "ur_aura".ToUILocale(), [4, d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("urLogo")];
                            case 3:
                                return r = i.sent(), this.isValid ? [3, 6] : [2];
                            case 4:
                                return o = "lr_aura".ToUILocale(), r = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("lrLogo"), [3, 6];
                            case 5:
                                return [3, 6];
                            case 6:
                                this.AuraBtnSprite.spriteFrame = r, this.AuraBtnLabel.string = o, i.label = 7;
                            case 7:
                                return [2]
                        }
                    })
                })
            }, t.prototype.ConfigLockState = function() {
                this._selectHero.Locked ? this.LockSprite.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("lock_gold") : this.LockSprite.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("unlock")
            }, t.prototype.ConfigHeroAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, p, y, g, m, I;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._heroInfoModel = h.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._selectHero.HeroId), this.AvatarContainer.destroyAllChildren(), this.HeroFigure.spriteFrame = null, this.AvatarContainer.active = !1, this.HeroFigure.node.active = !1, this.ClaerAvatarPrefab(), this._currentTab == l.Gem ? [2] : this._currentTab == l.Personality ? [3, 8] : (this.AvatarContainer.active = !0, e = this._heroSid, p = null, t = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid), n = !1, t && t.SkinId ? (o = h.ConfigDataComponent.Instance.GetConfigById(f.HeroSkin_Config, t.SkinId)) ? (n = !0, o.UIAvatar, [4, c.AssetsManager.Instance.LoadAsset(o.UIAvatar + "/Avatar")]) : [3, 2] : [3, 5]);
                            case 1:
                                return p = s.sent(), [3, 4];
                            case 2:
                                return this.HeroBaseConfig.UIAvatar, [4, c.AssetsManager.Instance.LoadAsset(this.HeroBaseConfig.UIAvatar + "/Avatar")];
                            case 3:
                                p = s.sent(), s.label = 4;
                            case 4:
                                return [3, 7];
                            case 5:
                                return this.HeroBaseConfig.UIAvatar, [4, c.AssetsManager.Instance.LoadAsset(this.HeroBaseConfig.UIAvatar + "/Avatar")];
                            case 6:
                                p = s.sent(), s.label = 7;
                            case 7:
                                return this.isValid ? ((y = this)._currentTab != l.Personality && e == y._heroSid ? (this._currentAvatarPrefab = p, (g = cc.instantiate(p)).setParent(this.AvatarContainer), n || (r = t && t.StarLevel ? t.StarLevel : this.HeroBaseConfig.StarLevel, D.default.Instance.SetHeroAvatarSkin(g, this.HeroBaseConfig.Id, r)), this._avatarAlphaTween && this._avatarAlphaTween.stop(), g.opacity = 20, this._avatarAlphaTween = cc.tween(g).to(.25, {
                                    opacity: 255
                                }, {
                                    easing: "cubicIn"
                                }).start()) : c.AssetsManager.Instance.UnloadAsset(p), [3, 18]) : (c.AssetsManager.Instance.UnloadAsset(p), [2]);
                            case 8:
                                return (i = this.GetPersonalityLockState()) > 1 ? (this.AvatarContainer.active = !0, a = this._heroInfoModel.Picture, p = void 0, a || (a = this.HeroBaseConfig.AdultPictures[0].Items[0]), [4, c.AssetsManager.Instance.LoadAsset("AdultPicture" + a + "/Avatar")]) : [3, 16];
                            case 9:
                                return p = s.sent(), this.isValid ? (y = this, p.name != "AdultPicture" + a + "/Avatar" || y._currentTab != l.Personality ? [3, 14] : (this._currentAvatarPrefab = p, (g = cc.instantiate(p)).opacity = 0, g.setParent(this.AvatarContainer), this._heroInfoModel.PersonalityStar ? [3, 11] : (g.getComponent(sp.Skeleton).clearTracks(), [4, d.UIUtlity.OnSpineGray(this.AvatarContainer)]))) : (c.AssetsManager.Instance.UnloadAsset(p), [2]);
                            case 10:
                                return s.sent(), g.opacity = 255, [3, 13];
                            case 11:
                                return g.getComponent(sp.Skeleton).clearTracks(), g.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), [4, d.UIUtlity.OffSpineGray(this.AvatarContainer)];
                            case 12:
                                s.sent(), g.opacity = 255, s.label = 13;
                            case 13:
                                return this._avatarAlphaTween && this._avatarAlphaTween.stop(), g.opacity = 20, this._avatarAlphaTween = cc.tween(g).to(.25, {
                                    opacity: 255
                                }, {
                                    easing: "cubicIn"
                                }).start(), [3, 15];
                            case 14:
                                c.AssetsManager.Instance.UnloadAsset(p), s.label = 15;
                            case 15:
                                return [3, 18];
                            case 16:
                                return 1 != i ? [3, 18] : (this.HeroFigure.node.active = !0, m = null, I = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("PersonalityStarLevelLimit"), this.HeroBaseConfig.StarLevel >= I ? [4, c.AssetsManager.Instance.LoadAsset("HeroFigureImgs/" + this.HeroBaseConfig.Id, cc.SpriteFrame)] : [3, 18]);
                            case 17:
                                if (m = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(m), [2];
                                m && (this.HeroFigure.spriteFrame = m), s.label = 18;
                            case 18:
                                return [2]
                        }
                    })
                })
            }, t.prototype.ConfigHeroFavorItem = function() {
                if (!this._favorItemComponent) {
                    var e = cc.instantiate(this._favorItemPrefab);
                    e.setParent(this.FavorItemContainer), this._favorItemComponent = e.getComponent(L.default)
                }
                this._currentTab != l.Gem && this._selectHero.StarLevel >= 4 && D.default.Instance.IsGameModuleUnlock(I.GameModuleType.Favor)[0] ? (this.FavorItemContainer.active = !0, this._favorItemComponent.Init(this._selectHero.HeroId, "hero_favor_level".ToUILocale()), this._favorItemComponent.node.on(cc.Node.EventType.TOUCH_END, this.OnClickFavorItem, this)) : this.FavorItemContainer.active = !1
            }, t.prototype.ConfigSkin = function() {
                var e = !1;
                D.default.Instance.IsGameModuleOpen(B.GameModuleType.HeroSkin) && (e = this._currentTab != l.Personality && this._currentTab != l.Gem), this.SkinButton.node.active = e
            }, t.prototype.ConfigHeroTalent = function() {
                var e = !1;
                D.default.Instance.IsGameModuleOpen(B.GameModuleType.HeroTalent) && (e = this._currentTab != l.Personality && this._currentTab != l.Gem), this.TalentNode.active = e, D.default.Instance.IsGameModuleUnlock(B.GameModuleType.HeroTalent)[0] ? (this._heroTalentUnlockLevel = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("HeroTalentHeroLevelUnlock"), this._heroTalentUnlockStar = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("HeroTalentHeroStarUnlockLevel"), (this._selectHero.TemplePosition > 0 ? this._selectHero.TempleLevel : this._selectHero.Level) >= this._heroTalentUnlockLevel && this._selectHero.StarLevel >= this._heroTalentUnlockStar ? (d.UIUtlity.OffNodeGray(this.TalentBtn.node), this.TalentLock.active = !1, this.TalentBtn.node.on("click", this.OnClickTalentBtn, this)) : (d.UIUtlity.OnNodeGray(this.TalentBtn.node), this.TalentLock.active = !0, this.TalentLock.on(cc.Node.EventType.TOUCH_END, this.OnClickTalentLock, this))) : this.TalentNode.active = !1
            }, t.prototype.OnClickFavorItem = function() {
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.FavorUpgradePanel.Path, this._selectHero.HeroId)
            }, t.prototype.ConfigBg = function() {
                switch (this._currentTab) {
                    case l.Personality:
                        this.Bg.spriteFrame = this.Bgs[1];
                        break;
                    case l.Gem:
                        this.Bg.spriteFrame = this.Bgs[2];
                        break;
                    default:
                        this.ConfigHeroBg()
                }
            }, t.prototype.ConfigHeroBg = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.HeroBaseConfig.CustomBg.length > 0 ? [4, this.LoadDynamicAsset("CommonBg/" + this.HeroBaseConfig.CustomBg, cc.SpriteFrame)] : [3, 2];
                            case 1:
                                return e = t.sent(), this.isValid ? (e.name == "CommonBg/" + this.HeroBaseConfig.CustomBg ? this.Bg.spriteFrame = e : this.Bg.spriteFrame = this.Bgs[0], [3, 3]) : (g.AssetsManager.Instance.UnloadAsset(e), [2]);
                            case 2:
                                this.Bg.spriteFrame = this.Bgs[0], t.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.ConfigBtns = function() {
                if (this.LockBtn.node.active = this._currentTab != l.Personality && this._currentTab != l.Gem, this.PersonalityChangeBtn.node.active = this._currentTab == l.Personality, this.PersonalityMaxBtn.node.active = this._currentTab == l.Personality, this._currentTab == l.Personality) {
                    var e = M.default.GetItem(M.GameRecordDefine.NewPersonality);
                    if (e) {
                        var t = JSON.parse(e);
                        if (t[this._selectHero.HeroId]) {
                            var n = t[this._selectHero.HeroId];
                            this.PersonalityNew.active = n.length > 0
                        } else this.PersonalityNew.active = !1
                    } else this.PersonalityNew.active = !1
                }
            }, t.prototype.CondfigLockNode = function() {
                this.PersonalityLock.active = !this._heroInfoModel.PersonalityStar && this._currentTab == l.Personality;
                var e = this.GetPersonalityLockState();
                2 == e ? this.PersonalityLockLbl.string = "personality_lock".ToUILocale() : 1 == e && (this.PersonalityLockLbl.string = "heroPersonality_expect".ToUILocale())
            }, t.prototype.ConfigStar = function() {
                this.LevelComponent.node.active = this._currentTab != l.Personality, this.PersonalityStar.active = this._currentTab == l.Personality, this.PersonalityStarLbl.string = this._heroInfoModel.PersonalityStar.toString()
            }, t.prototype.OnReturnBtnClick = function() {
                g.UIManager.Instance.BackUIPanel()
            }, t.prototype.RefreshHeroAttrMode = function(e) {
                this._lastBattlePower = e, this.GetStarResonanceLevelLimitHeroCount(), this._selectHero = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid), this.CurrentLevelConfig = h.ConfigDataComponent.Instance.GetConfigById(f.HeroLevel_Config, this._selectHero.Level), this._attrTabComponent.Init(this._selectHero, this, !0), this.RefreshBattlePower(), this.SetHeroLevel()
            }, t.prototype.RefreshHeroStarMode = function(e, t) {
                this._lastBattlePower = e, this._selectHero = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid), this.CurrentStarConfig = h.ConfigDataComponent.Instance.GetConfigById(f.HeroStar_Config, this._selectHero.StarLevel), this._starTabComponent.Init(this._selectHero, this);
                var n = y.LevelComponent.GetLevelShowType(this.HeroBaseConfig.CoreHero, this.HeroBaseConfig.ElementType);
                this.LevelComponent.Init(this._selectHero.StarLevel, 0, 0, n), this.RefreshBattlePower();
                for (var o = 0; o < t.length; o++) {
                    var r = t[o],
                        i = this._heroArr.indexOf(r);
                    i > -1 && this._heroArr.splice(i, 1)
                }
                this._selectIndex = this._heroArr.indexOf(this._heroSid)
            }, t.prototype.RefreshHeroArr = function(e) {
                for (var t = 0; t < e.length; t++) {
                    var n = e[t],
                        o = this._heroArr.indexOf(n);
                    o > -1 && this._heroArr.splice(o, 1)
                }
                this._selectIndex = this._heroArr.indexOf(this._heroSid)
            }, t.prototype.RefreshBattlePower = function() {
                var e = this;
                this._battlePowerTween && this._battlePowerTween.stop();
                var t = {};
                t._lastBattlePower = this._selectHero.Power;
                var n = this._lastBattlePower;
                this._battlePowerTween = cc.tween(this).to(.4, t, {
                    progress: function(t, o, r, i) {
                        var a = i >= 1 ? e._selectHero.Power : n + Math.floor((e._selectHero.Power - n) * i);
                        e.BattlePointLabel.string = a.toString()
                    },
                    easing: "cubicOut"
                }).call(function() {
                    e._lastBattlePower = e._selectHero.Power
                }).start()
            }, t.prototype.OnEquipDataChange = function() {
                this.SetUIContent()
            }, t.prototype.OnPetDataChange = function() {
                this.SetUIContent()
            }, t.prototype.OnClickElementIcon = function(e) {
                if (this.HeroBaseConfig.ElementType == B.HeroElementType.Chaos) {
                    g.UIManager.Instance.ShowUIPanel(T.PanelConfig.ChaosElementEffectPanel.Path, this._selectHero.StarLevel, G.ChaosElementEffectType.Chaos, this._heroInfoModel.HeroId);
                    var t = M.default.GetItem(M.GameRecordDefine.HeroChaosElementHint),
                        n = void 0;
                    (n = t ? JSON.parse(t) : {})[this._heroInfoModel.HeroId] = 1, M.default.SetItem(M.GameRecordDefine.HeroChaosElementHint, n)
                } else g.UIManager.Instance.ShowUIPanel(T.PanelConfig.HeroInfoTipsPanel.Path, {
                    Element: this.HeroBaseConfig.ElementType
                }, e.target)
            }, t.prototype.OnClickProfessionIconIcon = function(e) {
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.HeroInfoTipsPanel.Path, {
                    Career: this.HeroBaseConfig.Career
                }, e.target)
            }, t.prototype.OnClickReborn = function() {
                this._selectHero.Level <= 1 ? d.UIUtlity.ShowFloatingHint("hero_reborn_level_limit".ToUILocale()) : g.UIManager.Instance.ShowUIPanel(T.PanelConfig.HeroRebornPanel.Path, this._selectHero)
            }, t.prototype.OnClickLock = function() {
                var e = new u.Req_Hero_LockHero;
                e.Sid = this._selectHero.Sid, e.Locked = !this._selectHero.Locked, h.RpcComponent.Instance.Call(e, this.OnLockSucess.bind(this))
            }, t.prototype.OnLockSucess = function() {
                this.ConfigHeroData(), this.ConfigLockState(), this._selectHero.Locked ? d.UIUtlity.ShowFloatingHint("hero_has_locked".ToUILocale()) : d.UIUtlity.ShowFloatingHint("hero_has_unlocked".ToUILocale())
            }, t.prototype.OnClickPersonalityChange = function() {
                this.HeroBaseConfig.AdultPictures && 0 != this.HeroBaseConfig.AdultPictures.length ? g.UIManager.Instance.ShowUIPanel(T.PanelConfig.PersonalityHandbookPanel.Path, this._selectHero.HeroId) : d.UIUtlity.ShowFloatingHint("heroPersonality_expect".ToUILocale())
            }, t.prototype.OnPersonalityMaxBtnClick = function() {
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.PersonalityMaxLevelPreviewPanel.Path)
            }, t.prototype.OnPersonalityHandbookBtnClick = function() {
                var e = n.GetCurrentPersonalityIdByHeroId(this._selectHero.HeroId);
                h.ConfigDataComponent.Instance.GetConfigById(f.PersonalityAddon_Config, e) && g.UIManager.Instance.ShowUIPanel(T.PanelConfig.CollectionHandbookPanel.Path, 0, e)
            }, t.prototype.OnGemHandBookButtonClick = function() {
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.GemIllustratedPanel.Path)
            }, t.GetCurrentPersonalityIdByHeroId = function(e) {
                var t = h.DataCenter.Instance.GetDataById(u.HeroInfo_Model, e),
                    n = h.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, e),
                    o = 0;
                if (t && n.AdultPictures.length > 0) {
                    for (var r = n.AdultPictures.length - 1; r >= 0; r--) {
                        var i = n.AdultPictures[r];
                        if (t.PersonalityStar >= i.Items[1]) {
                            o = i.Items[0];
                            break
                        }
                    }
                    0 == o && (o = n.AdultPictures[0].Items[0])
                }
                return o
            }, t.prototype.ShowGuide = function() {
                if (k.default.Instance.IsInGuide) switch (k.default.Instance.CurrentStep) {
                    case 7101:
                    case 7105:
                    case 7106:
                        k.default.Instance.ShowGuide();
                        break;
                    case 7102:
                    case 7204:
                        k.default.Instance.ShowGuide(this.Toggles[l.Equip].node);
                        break;
                    case 7104:
                        k.default.Instance.ShowGuide(this.ReturnBtn.node)
                }
            }, t.prototype.OnClickSkin = function() {
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.HeroSkinPanel.Path, this._selectHero.HeroId, 0, this._selectHero.Sid)
            }, t.prototype.ClaerAvatarPrefab = function() {
                this._currentAvatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), this.AvatarContainer.destroyAllChildren(), this.ClaerAvatarPrefab()
            }, t.prototype.GetPersonalityLockState = function() {
                return D.default.Instance.IsGameModuleUnlock(B.GameModuleType.Personality)[0] ? this.HeroBaseConfig.AdultPictures && this.HeroBaseConfig.AdultPictures.length > 0 ? 2 : 1 : 0
            }, t.prototype.OnClickHeroDesc = function() {
                c.UIManager.Instance.ShowUIPanel(T.PanelConfig.HeroDescPanel.Path, this._selectHero.HeroId, 0)
            }, t.prototype.SetHeroDesc = function() {
                this.HeroBaseConfig.HeroIntroduce && this._currentTab != l.Gem ? this.HeroDescButton.node.active = !0 : this.HeroDescButton.node.active = !1
            }, t.prototype.SetPet = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e = D.default.Instance.IsGameModuleOpen(B.GameModuleType.Pet), t = D.default.Instance.IsGameModuleUnlock(B.GameModuleType.Pet), this.PetButton.node.active = e && t[0], e && t[0] ? (n = h.DataCenter.Instance.GetHeroPet(this._selectHero.Sid)).length > 0 ? (o = h.DataCenter.Instance.GetDataById(u.UserPet_Model, n[0])) ? (this.PetButtonBg.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("pet_btn_null"), [4, this.LoadDynamicAsset(T.BundlePath.PetHeadIcon + "/" + o.Sid, cc.SpriteFrame)]) : [3, 2] : [3, 4] : [3, 5];
                            case 1:
                                return r = i.sent(), this.isValid ? (this.PetIcon.spriteFrame = r, this.PetIcon.node.active = !0, [3, 3]) : (c.AssetsManager.Instance.UnloadAsset(r), [2]);
                            case 2:
                                this.PetButtonBg.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("pet_btn_add"), this.PetIcon.node.active = !1, i.label = 3;
                            case 3:
                                return [3, 5];
                            case 4:
                                this.PetButtonBg.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("pet_btn_add"), this.PetIcon.node.active = !1, i.label = 5;
                            case 5:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetMagicCircle = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function() {
                        if (e = D.default.Instance.IsGameModuleOpen(B.GameModuleType.MagicCircle), t = D.default.Instance.IsGameModuleUnlock(B.GameModuleType.MagicCircle), this.MagicCircleButton.node.active = e && t[0], e && t[0]) {
                            if ((n = h.DataCenter.Instance.GetHeroMagicCircle(this._selectHero.Sid)) && h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, n)) return this.MagicCircleButtonBg.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("pet_btn_null"), this._loadAssetHelper.LoadSpriteFrame(T.BundlePath.ItemIcon + "/" + n, this.MagicCircleIcon), this.MagicCircleIcon.node.active = !0, [2];
                            this.MagicCircleButtonBg.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("pet_btn_add"), this.MagicCircleIcon.node.active = !1
                        }
                        return [2]
                    })
                })
            }, t.prototype.SetTriggerGift = function() {
                var e = this;
                if (this.TriggerGiftButton.node.active = !1, this._currentTab == l.Attr && D.default.Instance.IsGameModuleUnlock(I.GameModuleType.Trigger)[0] && (null == this._triggerGiftData && (this._triggerGiftData = h.DataCenter.Instance.GetTempData("HeroTriggerGiftData")), null != this._triggerGiftData)) {
                    var t = this._triggerGiftData[this._selectHero.HeroId];
                    if (null != t && t.length > 0) {
                        this._triggerModels = [];
                        var n = 0;
                        t.forEach(function(t) {
                            var o = h.DataCenter.Instance.TriggerGifts[t.Id];
                            null != o && o.Time > 0 && !o.IsEnd && (e._triggerModels.push(o), e._deadTime = o.Time + t.Duration * I.Etc.MinuteDuration, e._deadTime > n && (n = e._deadTime), e.unschedule(e.TriggerGiftCountDown), e.TriggerGiftCountDown(), e.schedule(e.TriggerGiftCountDown, 1), e.TriggerGiftButton.node.active = !0)
                        }), this.TriggerGiftButton.node.active = h.RpcComponent.Instance.ServerTime < n && D.default.Instance.IsGameModuleUnlock(I.GameModuleType.Trigger)[0]
                    }
                }
            }, t.prototype.SetStarPieceButton = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return D.default.Instance.IsGameModuleUnlock(B.GameModuleType.StarPiece)[0] ? [3, 1] : (this.StarPieceButton.node.active = !1, [3, 4]);
                            case 1:
                                return e = this.HeroBaseConfig.Id, (t = h.ConfigDataComponent.Instance.GetConfigById(f.ExclusiveWeapon_Config, e)) ? (this.StarPieceButton.node.active = !0, n = D.default.Instance.GetItemPathById(t.ItemBaseId), [4, this.LoadDynamicAsset(n, cc.SpriteFrame)]) : [3, 3];
                            case 2:
                                return o = s.sent(), this.isValid ? (this.StarPieceButtoIcon.spriteFrame = o, h.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, e) ? (d.UIUtlity.OffNodeGray(this.StarPieceButtonBackground.node), this.StarPieceButtonRedDot.node.active = j.RedDotDataHandler.Instance.CheckExclusiveWeaponCanDevelop(e)) : (d.UIUtlity.OnNodeGray(this.StarPieceButtonBackground.node), r = h.ConfigDataComponent.Instance.GetConfigById(f.ExclusiveWeaponStar_Config, 1), i = t.PieceId, a = r.PieceCount, h.DataCenter.Instance.IsItemEnough(i, a) ? this.StarPieceButtonRedDot.node.active = !0 : this.StarPieceButtonRedDot.node.active = !1), [3, 4]) : (c.AssetsManager.Instance.UnloadAsset(o), [2]);
                            case 3:
                                this.StarPieceButton.node.active = !1, s.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetHeroChangeButton = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function() {
                        return this.HeroChangeButton.node.active = this.HeroBaseConfig.ChangeIds && this.HeroBaseConfig.ChangeIds.length > 0, this.HeroChangeButton.node.active && (e = !1, t = 0, this.HeroBaseConfig.ChangeIds.length > 0 && (t = this.HeroBaseConfig.ChangeIds[this.HeroBaseConfig.ChangeIds.length - 1]), t > 0 && (n = h.ConfigDataComponent.Instance.GetConfigById(f.HeroChange_Config, t), o = h.RpcComponent.Instance.ServerTime, r = _.TimeUtil.StrToTime(n.Date), e = o < r + I.Etc.DayDuration), this.HeroChangeButtonRedDot.node.active = e), [2]
                    })
                })
            }, t.prototype.SetHideButton = function() {
                this.HideButton.node.active = this._currentTab != l.Gem, this.SetHideLabel()
            }, t.prototype.OnElementBtnClick = function() {
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.ChaosElementEffectPanel.Path, this._selectHero.StarLevel, G.ChaosElementEffectType.Chaos, this._heroInfoModel.HeroId)
            }, t.prototype.OnChaosTempleButtonClick = function() {
                var e = D.default.Instance.IsGameModuleUnlock(I.GameModuleType.ChaosTemple);
                e[0] ? c.UIManager.Instance.ShowUIPanel(T.PanelConfig.ChaosHeroTempleUpPanel.Path, this._heroInfoModel.HeroId, x.HeroTempleType.Chaos) : d.UIUtlity.ShowFloatingHint(e[1])
            }, t.prototype.OnAuraBtnClick = function() {
                switch (this.HeroBaseConfig.CoreHero) {
                    case B.CoreHeroTag.SP:
                        c.UIManager.Instance.ShowUIPanel(T.PanelConfig.CommonSPHeroDescPanel.Path);
                        break;
                    case B.CoreHeroTag.UR:
                        (e = h.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._selectHero.HeroId)) && c.UIManager.Instance.ShowUIPanel(T.PanelConfig.ChaosElementEffectPanel.Path, e.MaxStar, G.ChaosElementEffectType.UR, this._selectHero.HeroId);
                        break;
                    case B.CoreHeroTag.LR:
                        var e;
                        (e = h.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._selectHero.HeroId)) && c.UIManager.Instance.ShowUIPanel(T.PanelConfig.ChaosElementEffectPanel.Path, e.MaxStar, G.ChaosElementEffectType.LR, this._selectHero.HeroId)
                }
            }, t.prototype.OnJobChangeBtnClick = function() {
                this.HeroBaseConfig.Jobs && 0 != this.HeroBaseConfig.Jobs.length ? c.UIManager.Instance.ShowUIPanel(T.PanelConfig.HeroJobChangePanel.Path, this._heroSid) : d.UIUtlity.ShowFloatingHint("heroJob_hero_cant_change".ToUILocale())
            }, t.prototype.OnUpStarPreviewBtnClick = function() {
                var e = this._currentTab == l.UpStar ? H.UpStarPreviewType.Hero : H.UpStarPreviewType.Personality;
                c.UIManager.Instance.ShowUIPanel(T.PanelConfig.CommonUpStarPreviewPanel.Path, e, this.HeroBaseConfig.Id)
            }, t.prototype.OnPetButtonClick = function() {
                var e = h.DataCenter.Instance.GetHeroPet(this._selectHero.Sid),
                    t = !1;
                e.length > 0 && h.DataCenter.Instance.GetDataById(u.UserPet_Model, e[0]) && (t = !0), t ? g.UIManager.Instance.ShowUIPanel(T.PanelConfig.PetDetailsPanel.Path, e[0], this._selectHero.Sid) : g.UIManager.Instance.ShowUIPanel(T.PanelConfig.PetChangePanel.Path, this._selectHero)
            }, t.prototype.OnMagicCircleButtonClick = function() {
                var e = h.DataCenter.Instance.GetHeroMagicCircle(this._selectHero.Sid);
                e ? g.UIManager.Instance.ShowUIPanel(T.PanelConfig.MagicCircleDetailsPanel.Path, e, this._selectHero.Sid) : g.UIManager.Instance.ShowUIPanel(T.PanelConfig.MagicCircleChangePanel.Path, this._selectHero)
            }, t.prototype.TriggerGiftCountDown = function() {
                var e = this._deadTime - h.RpcComponent.Instance.ServerTime;
                e < 0 ? this.TriggerGiftButton.node.active = !1 : this.TriggerGiftLeftTimeLabel.string = D.default.ActivityTimeLeftFormat(e)
            }, t.prototype.OnTriggerButtonClick = function() {
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.TriggerGiftPanel.Path, this._triggerModels)
            }, t.prototype.OnTriggerModelChange = function(e) {
                for (var t in e) {
                    var n = e[t];
                    n.Sid == this._triggerModels[0].Sid && (this._triggerModels[0] = h.DataCenter.Instance.GetDataById(u.TriggerGift_Model, n.Sid), this._triggerModels[0].IsEnd && (this.TriggerGiftButton.node.active = !1))
                }
            }, t.prototype.OnClickTalentBtn = function() {
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.HeroTalentPanel.Path, this._heroSid)
            }, t.prototype.OnClickTalentLock = function() {
                (this._selectHero.TemplePosition > 0 ? this._selectHero.TempleLevel : this._selectHero.Level) < this._heroTalentUnlockLevel ? d.UIUtlity.ShowFloatingHint("equip_luckyCharm_unlock_slot1".ToUILocale().Fmt(this._heroTalentUnlockLevel)) : this._selectHero.StarLevel < this._heroTalentUnlockStar && d.UIUtlity.ShowFloatingHint("equip_luckyCharm_unlock_slot2".ToUILocale().Fmt(this._heroTalentUnlockStar))
            }, t.prototype.OnStarPieceButtonClicked = function() {
                var e = {
                    pieceId: this.HeroBaseConfig.Id,
                    pieceType: U.StarTemplePieceType.Exclusive,
                    showFullStatus: !1,
                    isFragment: !1
                };
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.StarPieceInfoPanel.Path, e)
            }, t.prototype.OnHeroChangeButtonClicked = function() {
                g.UIManager.Instance.ShowUIPanel(T.PanelConfig.HeroChangePanel.Path, this._selectHero.HeroId).then(this.SetHeroChangeButton.bind(this))
            }, t.prototype.SetPersonalityHide = function() {
                var e = D.default.Instance.IsGameModuleUnlock(B.GameModuleType.Personality)[0];
                this.HideButton.node.active = e, e && this.SetHideLabel()
            }, t.prototype.SetPersonalityHandbookBtn = function() {
                if (this._currentTab == l.Personality) {
                    var e = D.default.Instance.IsGameModuleUnlock(I.GameModuleType.SkinPersonalityPic)[0];
                    this.PersonalityHandbookButton.node.active = e && this.HeroBaseConfig.AdultPictures.length > 0
                } else this.PersonalityHandbookButton.node.active = !1;
                this._currentTab == l.Gem ? (e = D.default.Instance.IsGameModuleUnlock(I.GameModuleType.Gem)[0], this.GemHandBookButton.node.active = e) : this.GemHandBookButton.node.active = !1
            }, t.prototype.SetUpStarPreviewBtn = function() {
                this.UpStarPreviewBtn.node.active = this._currentTab == l.UpStar
            }, t.prototype.SetJobChangeBtn = function() {
                var e = D.default.Instance.IsGameModuleUnlock(I.GameModuleType.HeroJob)[0],
                    t = D.default.Instance.IsGameModuleOpen(I.GameModuleType.HeroJob),
                    n = this.HeroBaseConfig.Jobs && this.HeroBaseConfig.Jobs.length > 0;
                this.JobChangeBtn.node.active = t && e && n && this._currentTab == l.Attr
            }, t.prototype.SetRebornBtn = function() {
                this.RebornBtn.node.active = this._currentTab == l.UpStar || this._currentTab == l.Equip
            }, t.prototype.OnHideButtonClick = function() {
                this._isHide ? this._isHide = !1 : this._isHide = !0, this.SetHideLabel()
            }, t.prototype.SetHideLabel = function() {
                this.HideBtnSprite.spriteFrame = this._isHide ? d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("function_showUI") : d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("function_hideUI"), this.HideLabel.string = this._isHide ? "personalityCall_show".ToUILocale() : "personalityCall_hide".ToUILocale(), this.TopInfoNode.active = !this._isHide && this._currentTab != l.Gem, this.LeftButtonsNode.active = !this._isHide, this.RightButtonsNode.active = !this._isHide;
                var e = !0,
                    t = !0;
                if (this._currentTab == l.Personality) {
                    if (this.HeroBaseConfig.AdultPictures && this.HeroBaseConfig.AdultPictures.length > 0) {
                        var n = this._heroInfoModel.Picture;
                        n || (n = this.HeroBaseConfig.AdultPictures[0].Items[0]), -1 == (r = h.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, B.LevelParamType.MainScenePersonalityNoMaskIds).Data).indexOf(n) && (e = !this._isHide, t = !1)
                    }
                } else if (this._currentTab != l.Gem) {
                    var o = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid),
                        r = h.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, B.LevelParamType.MainSceneHeroNoMaskIds).Data;
                    o && o.SkinId ? -1 == r.indexOf(o.SkinId) && (e = !this._isHide, t = !1) : -1 == r.indexOf(this.HeroBaseConfig.Id) && (e = !this._isHide, t = !1)
                }
                this.MainHideNode.active = e, this.ToggleBgNode.active = e, this.HeroMaskNode.getComponent(cc.Mask).enabled = t
            }, i([b(cc.Sprite)], t.prototype, "Bg", void 0), i([b(cc.SpriteFrame)], t.prototype, "Bgs", void 0), i([b(cc.Label)], t.prototype, "HeroTitle", void 0), i([b(cc.Label)], t.prototype, "HeroName", void 0), i([b(y.LevelComponent)], t.prototype, "LevelComponent", void 0), i([b(cc.Node)], t.prototype, "HeroLevelBgNode", void 0), i([b(cc.Label)], t.prototype, "HeroLevelLabel", void 0), i([b(cc.Label)], t.prototype, "HeroMaxLevelLabel", void 0), i([b(cc.Button)], t.prototype, "TabAttrTopRebornButton", void 0), i([b(m.default)], t.prototype, "Toggles", void 0), i([b(cc.Node)], t.prototype, "AttrModeContainer", void 0), i([b(cc.Node)], t.prototype, "EquipModeContainer", void 0), i([b(cc.Node)], t.prototype, "UpStarModeContainer", void 0), i([b(cc.Node)], t.prototype, "PersonalityModeContainer", void 0), i([b(cc.Node)], t.prototype, "GemModeContainer", void 0), i([b(cc.Button)], t.prototype, "LeftArrowBtn", void 0), i([b(cc.Button)], t.prototype, "RightArrowBtn", void 0), i([b(cc.Label)], t.prototype, "BattlePointLabel", void 0), i([b(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([b(cc.Sprite)], t.prototype, "ProfessionIcon", void 0), i([b(cc.Button)], t.prototype, "ReturnBtn", void 0), i([b(cc.Node)], t.prototype, "AvatarContainer", void 0), i([b(cc.Sprite)], t.prototype, "HeroFigure", void 0), i([b(cc.Node)], t.prototype, "PersonalityLock", void 0), i([b(cc.Label)], t.prototype, "PersonalityLockLbl", void 0), i([b(cc.Node)], t.prototype, "PersonalityStar", void 0), i([b(cc.Label)], t.prototype, "PersonalityStarLbl", void 0), i([b(cc.Node)], t.prototype, "FavorItemContainer", void 0), i([b(cc.Button)], t.prototype, "RebornBtn", void 0), i([b(cc.Label)], t.prototype, "RebornBtnLabel", void 0), i([b(cc.Button)], t.prototype, "LockBtn", void 0), i([b(cc.Label)], t.prototype, "LockBtnLabel", void 0), i([b(cc.Sprite)], t.prototype, "LockSprite", void 0), i([b(cc.Button)], t.prototype, "PersonalityChangeBtn", void 0), i([b(cc.Node)], t.prototype, "PersonalityNew", void 0), i([b(cc.Label)], t.prototype, "PersonalityChangeLabel", void 0), i([b(cc.Button)], t.prototype, "SkinButton", void 0), i([b(cc.Label)], t.prototype, "SkinLabel", void 0), i([b(cc.Button)], t.prototype, "HeroDescButton", void 0), i([b(cc.Label)], t.prototype, "HeroDescLabel", void 0), i([b(cc.Node)], t.prototype, "GemSlots", void 0), i([b({
                type: [cc.Node]
            })], t.prototype, "Slots", void 0), i([b(cc.Label)], t.prototype, "TriggerGiftLeftTimeLabel", void 0), i([b(cc.Label)], t.prototype, "TriggerGiftButtonLabel", void 0), i([b(cc.Button)], t.prototype, "TriggerGiftButton", void 0), i([b(cc.Node)], t.prototype, "TalentNode", void 0), i([b(cc.Button)], t.prototype, "TalentBtn", void 0), i([b(cc.Label)], t.prototype, "TalentBtnLab", void 0), i([b(cc.Node)], t.prototype, "TalentLock", void 0), i([b(cc.Button)], t.prototype, "PetButton", void 0), i([b(cc.Sprite)], t.prototype, "PetButtonBg", void 0), i([b(cc.Sprite)], t.prototype, "PetIcon", void 0), i([b(cc.Button)], t.prototype, "MagicCircleButton", void 0), i([b(cc.Sprite)], t.prototype, "MagicCircleButtonBg", void 0), i([b(cc.Sprite)], t.prototype, "MagicCircleIcon", void 0), i([b(cc.Button)], t.prototype, "StarPieceButton", void 0), i([b(cc.Sprite)], t.prototype, "StarPieceButtonBackground", void 0), i([b(cc.Sprite)], t.prototype, "StarPieceButtoIcon", void 0), i([b(cc.Label)], t.prototype, "StarPieceButtonLabel", void 0), i([b(cc.Sprite)], t.prototype, "StarPieceButtonRedDot", void 0), i([b(cc.Button)], t.prototype, "HeroChangeButton", void 0), i([b(cc.Sprite)], t.prototype, "HeroChangeButtonBackground", void 0), i([b(cc.Label)], t.prototype, "HeroChangeButtonLabel", void 0), i([b(cc.Sprite)], t.prototype, "HeroChangeButtonRedDot", void 0), i([b(cc.Button)], t.prototype, "HideButton", void 0), i([b(cc.Label)], t.prototype, "HideLabel", void 0), i([b(cc.Node)], t.prototype, "LeftButtonsNode", void 0), i([b(cc.Node)], t.prototype, "RightButtonsNode", void 0), i([b(cc.Node)], t.prototype, "TopHideNode", void 0), i([b(cc.Node)], t.prototype, "MainHideNode", void 0), i([b(cc.Node)], t.prototype, "TopInfoNode", void 0), i([b(cc.Node)], t.prototype, "NewBgNode", void 0), i([b(cc.Node)], t.prototype, "InfoHeaderNode", void 0), i([b(cc.Button)], t.prototype, "PersonalityMaxBtn", void 0), i([b(cc.Label)], t.prototype, "PersonalityMaxLabel", void 0), i([b(cc.Button)], t.prototype, "PersonalityHandbookButton", void 0), i([b(cc.Label)], t.prototype, "PersonalityHandbookLabel", void 0), i([b(cc.Button)], t.prototype, "GemHandBookButton", void 0), i([b(cc.Label)], t.prototype, "GemHandBookLabel", void 0), i([b(cc.Layout)], t.prototype, "RightBtnsLayout", void 0), i([b(cc.Button)], t.prototype, "UpStarPreviewBtn", void 0), i([b(cc.Label)], t.prototype, "UpStarPreviewLabel", void 0), i([b(cc.Button)], t.prototype, "AuraBtn", void 0), i([b(cc.Sprite)], t.prototype, "AuraBtnSprite", void 0), i([b(cc.Label)], t.prototype, "AuraBtnLabel", void 0), i([b(cc.Button)], t.prototype, "JobChangeBtn", void 0), i([b(cc.Label)], t.prototype, "JobChangeLabel", void 0), i([b(cc.Node)], t.prototype, "HeroMaskNode", void 0), i([b(cc.Widget)], t.prototype, "InfoWidget", void 0), i([b(cc.Node)], t.prototype, "ToggleBgNode", void 0), i([b(cc.Sprite)], t.prototype, "HideBtnSprite", void 0), i([b(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([b(cc.Node)], t.prototype, "OldBgNode", void 0), i([b(cc.Node)], t.prototype, "OldInfoHeader", void 0), i([b(cc.Label)], t.prototype, "OldBattlePointLabel", void 0), i([b(cc.Label)], t.prototype, "OldHeroTitle", void 0), i([b(cc.Label)], t.prototype, "OldHeroName", void 0), i([b(y.LevelComponent)], t.prototype, "OldLevelComponent", void 0), i([b(cc.Sprite)], t.prototype, "OldElementIcon", void 0), i([b(cc.Sprite)], t.prototype, "OldProfessionIcon", void 0), n = i([v], t)
        }(c.BaseUIFullScreenPanel);
        n.default = S;
        var w = e("./HeroInfoTabAttr"),
            P = e("./HeroInfoTabStar"),
            A = e("./HeroInfoTabEquip"),
            T = e("../../Auxiliary/GlobalDefine"),
            R = e("../../RedDot/RedDotManager"),
            L = e("../Components/HeroFavorItemComponent"),
            k = e("../../Auxiliary/GuideManager"),
            O = e("./HeroInfoTabPersonality"),
            M = e("../../Auxiliary/GameRecord"),
            D = e("../../Auxiliary/DataUtlity"),
            B = e("../../../ShareConsts/EnumType"),
            N = e("./HeroInfoTabGem"),
            E = e("../../../Consts/GameEventIds"),
            U = e("./StarPiecePanel"),
            G = e("./ChaosElementEffectPanel"),
            x = e("./ElementTemplePanel"),
            H = e("./CommonUpStarPreviewPanel"),
            F = e("../../Channel/ChannelManager"),
            j = e("../../RedDot/RedDotDataHandler"),
            W = e("../Components/LoadAssetHelper");
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HeroFavorItemComponent": "HeroFavorItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./ChaosElementEffectPanel": "ChaosElementEffectPanel",
        "./CommonUpStarPreviewPanel": "CommonUpStarPreviewPanel",
        "./ElementTemplePanel": "ElementTemplePanel",
        "./HeroInfoTabAttr": "HeroInfoTabAttr",
        "./HeroInfoTabEquip": "HeroInfoTabEquip",
        "./HeroInfoTabGem": "HeroInfoTabGem",
        "./HeroInfoTabPersonality": "HeroInfoTabPersonality",
        "./HeroInfoTabStar": "HeroInfoTabStar",
        "./StarPiecePanel": "StarPiecePanel"
    }],
    HeroInfoTabAttr: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "093f7F6Vc9G+6+qz4OTtV2x", "HeroInfoTabAttr");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../GamePlay/Components/Components"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../Components/SkillItemComponent"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../Components/CurrencyBarItem"),
            b = e("./StarTemplePanel"),
            S = e("../../Auxiliary/GuideManager"),
            w = e("../../RedDot/RedDotManager"),
            P = e("./LuckyCharmSkillComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.MaxLevelLimit = 1] = "MaxLevelLimit", e[e.StarLevelLimit = 2] = "StarLevelLimit", e[e.LevelUpToMax = 3] = "LevelUpToMax", e[e.LevelUpNormal = 4] = "LevelUpNormal", e[e.StarResonanceLevel_None = 5] = "StarResonanceLevel_None", e[e.StarResonanceLevel_Max = 6] = "StarResonanceLevel_Max", e[e.StarResonanceLevel_Up = 7] = "StarResonanceLevel_Up", e[e.StarResonanceLevel_Stage = 8] = "StarResonanceLevel_Stage"
        })(l || (l = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HeroLevelLabel = null, t.HeroMaxLevelLabel = null, t.HeroDesc = null, t.HPValue = null, t.AttackValue = null, t.DefenseValue = null, t.SpeedValue = null, t.DetailBtn = null, t.SkillLayout = null, t.UpLevelBtn = null, t.MaxUpLevelBtn = null, t.GrayBtn = null, t.UpLevelIconBtn = null, t.UpLevelIconSprite = null, t.UpLevelLabel = null, t.MaxUpLevelLabel = null, t.GrayBtnLabel = null, t.UpLevelIconLabel = null, t.CurencyBarContainer = null, t.CurencyBars = [], t.MaxLevelHintNode = null, t.MaxLevelHint = null, t.StarResonanceHint = null, t._isInitial = !1, t._upLevelRequestTimes = 0, t._isRequestingLevelUp = !1, t._luckyCharmSkillNodes = [], t._skillNodes = [], t.UPLEVEL_MODE_CHANGE = 80, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(d.EventKeys.EVENT_UPHERO_TO_MAX, this.UpHeroToMax, this), c.Game.EventDispatcher.On(d.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnSkillItemTouch, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(d.EventKeys.EVENT_UPHERO_TO_MAX, this.UpHeroToMax), c.Game.EventDispatcher.Off(d.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnSkillItemTouch, this)
            }, t.prototype.Init = function(e, t, n) {
                void 0 === n && (n = !1), this._isInitial || (this.InitUI(), this.InitData(), this._isInitial = !0), n || (this._isRequestingLevelUp = !1, this._upLevelRequestTimes = 0), this._hero = e, this._baseUIPanel = t, this._levelUpMode = l.None, this._upToLevel = 0, this._heroBaseConfig = t.HeroBaseConfig, this._currentStarConfig = t.CurrentStarConfig, this._currentLevelConfig = t.CurrentLevelConfig, this.CofigLevelUpMode(), this.ConfigHeroInfo(), this.ConfigSkills(), this.ConfigPanelByMode(), this.ShowGuide()
            }, t.prototype.InitUI = function() {
                this.DetailBtn.node.on("click", this.OnCheckDetail, this), this.UpLevelBtn.node.on("click", this.OnLevelUp, this), this.UpLevelIconBtn.node.on("click", this.OnLevelUp, this), this.MaxUpLevelBtn.node.on("click", this.OnMaxLevelUp, this), this.GrayBtnLabel.string = "up_level".ToUILocale().Fmt("")
            }, t.prototype.InitData = function() {
                this._starResonanceSecondInitialLevel = y.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("StarResonanceSecondInitialLevel")
            }, t.prototype.CofigLevelUpMode = function() {
                var e = y.DataCenter.Instance.GetDataById(u.StarResonance_Model, 1).Stage,
                    t = y.ConfigDataComponent.Instance.GetConfigById(g.HeroStar_Config, this._heroBaseConfig.MaxStarLevel);
                this._hero.TemplePosition > 0 ? (this._currentHeroLevel = this._hero.TempleLevel, this.HeroLevelLabel.node.color = f.UIUtlity.Herolevel_Label_Color_StarResonance, this._currentHeroLevel >= t.MaxLevel ? 1 == e ? this._levelUpMode = l.MaxLevelLimit : this._currentHeroLevel >= y.ConfigCacheComponent.Instance.GetStarResonanceUpperLimit() ? this._levelUpMode = l.MaxLevelLimit : t.MaxLevel >= this._starResonanceSecondInitialLevel && (this._levelUpMode = l.StarResonanceLevel_Up) : this._levelUpMode = l.StarResonanceLevel_None) : (this._currentHeroLevel = this._hero.Level, this.HeroLevelLabel.node.color = cc.Color.WHITE, this._currentHeroLevel >= t.MaxLevel && (1 == e ? t.MaxLevel >= this._starResonanceSecondInitialLevel && (this._levelUpMode = l.StarResonanceLevel_Stage) : this._levelUpMode = l.MaxLevelLimit))
            }, t.prototype.ConfigHeroInfo = function() {
                this.HeroLevelLabel.string = "Lv." + this._currentHeroLevel, this.HeroMaxLevelLabel.string = "/" + this._currentStarConfig.MaxLevel.toString(), this.HPValue.string = this._hero.Attrs[C.HeroAttributeType.Hp].toString(), this.AttackValue.string = this._hero.Attrs[C.HeroAttributeType.Attack].toString(), this.DefenseValue.string = this._hero.Attrs[C.HeroAttributeType.Defense].toString(), this.SpeedValue.string = this._hero.Attrs[C.HeroAttributeType.Speed].toString(), this.HeroDesc.string = "";
                for (var e = 0; e < this._heroBaseConfig.CharacteristicDesc.length; e++) {
                    var t = this._heroBaseConfig.CharacteristicDesc[e];
                    this.HeroDesc.string += 0 == e ? t.ToHeroCharacteristicName() : " \xb7 " + t.ToHeroCharacteristicName()
                }
            }, t.prototype.ConfigSkills = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, o, r, i, a, l, c, u, d, f = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return null != this._skillItemPrefab ? [3, 2] : (e = this._baseUIPanel.LoadDynamicAsset(h.BundlePath.SkillItemComponent, cc.Prefab), t = this._baseUIPanel.LoadDynamicAsset(P.default.LuckyCharmSkillComponentPath, cc.Prefab), [4, Promise.all([e, t]).then(function(e) {
                                    f._skillItemPrefab = e[0], f._luckyCharmSkillPrefab = e[1]
                                })]);
                            case 1:
                                s.sent(), s.label = 2;
                            case 2:
                                for (o = I.default.GetHeroSkills(this._hero.HeroId, this._currentHeroLevel, this._hero.StarLevel), this._skillNodes.forEach(function(e) {
                                        e.active = !1
                                    }), c = 0; c < o.length; c++) r = o[c], this._skillNodes[c] || ((u = cc.instantiate(this._skillItemPrefab)).setParent(this.SkillLayout), this._skillNodes[c] = u), this._skillNodes[c].active = !0, this._skillNodes[c].setSiblingIndex(c), (i = this._skillNodes[c].getComponent(_.default)).Init(r.SkillId, r.Level, this._hero.HeroId, this._currentHeroLevel), r.Active ? i.OffIconGray() : i.OnIconGray();
                                if (this._luckyCharmSkillNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._heroBaseConfig.MaxStarLevel >= n.SHOW_LUCKYCHRAM_STARLEVEL) {
                                    for (a = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroLuckyCharmUnlock1"), l = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroLuckyCharmUnlock2"), c = 0; c < 2; c++) this._luckyCharmSkillNodes[c] || ((u = cc.instantiate(this._luckyCharmSkillPrefab)).parent = this.SkillLayout, this._luckyCharmSkillNodes[c] = u), this._luckyCharmSkillNodes[c].active = !0, this._luckyCharmSkillNodes[c].y = -27, this._luckyCharmSkillNodes[c].setSiblingIndex(o.length + c), (d = this._luckyCharmSkillNodes[c].getComponent(P.default)).SetNodeScale(.65), c > 0 ? this._hero.StarLevel >= l ? this._hero.LuckSkill2 ? d.InitById(this._hero.LuckSkill2, !1, !1) : d.InitAdd() : (d.InitLock(), d.SetDesc("heroSkill_open_star".ToUILocale().Fmt(l), 28)) : this._hero.StarLevel >= a ? this._hero.LuckSkill1 ? d.InitById(this._hero.LuckSkill1, !1, !1) : d.InitAdd() : (d.InitLock(), d.SetDesc("heroSkill_open_star".ToUILocale().Fmt(a), 28));
                                    w.RedDotManager.Instance.BindInstance(this._luckyCharmSkillNodes[0], w.RedDotManager.Instance.InstanceRedDot.HeroLuckycharmSkill1, {
                                        Value1: this._hero.Sid
                                    }), w.RedDotManager.Instance.BindInstance(this._luckyCharmSkillNodes[1], w.RedDotManager.Instance.InstanceRedDot.HeroLuckycharmSkill2, {
                                        Value1: this._hero.Sid
                                    })
                                }
                                return [2]
                        }
                    })
                })
            }, t.prototype.ConfigPanelByMode = function() {
                switch (this.CurencyBarContainer.active = !1, this.StarResonanceHint.node.active = !1, this._levelUpMode) {
                    case l.StarResonanceLevel_None:
                        this.StarResonanceHint.node.active = !0, this.StarResonanceHint.string = "heroinfo_starResonance_levelup_none".ToUILocale();
                        break;
                    case l.StarResonanceLevel_Up:
                        this.StarResonanceHint.node.active = !0, this.StarResonanceHint.string = "heroinfo_starResonance_goto".ToUILocale();
                        break;
                    case l.StarResonanceLevel_Stage:
                        this.StarResonanceHint.node.active = !0, this.StarResonanceHint.string = "heroinfo_starResonance_stage".ToUILocale().Fmt(5, this._starResonanceSecondInitialLevel, this._baseUIPanel.StarResonanceLevelLimitHeroCount, 5);
                        break;
                    default:
                        this.ConfigLevelUpMaterials(), this.ConfigLevelUpCost()
                }
                this.ConfigMaxLevelHint(), this.ConfigLevelUpButton()
            }, t.prototype.ConfigLevelUpMaterials = function() {
                var e = y.ConfigDataComponent.Instance.GetConfigById(g.HeroStar_Config, this._heroBaseConfig.MaxStarLevel);
                if (this._heroTotalLevel = e.MaxLevel, this._currentHeroLevel >= this._heroTotalLevel) this._levelUpMode = l.MaxLevelLimit;
                else if (this._currentHeroLevel >= this._currentStarConfig.MaxLevel) this._levelUpMode = l.StarLevelLimit;
                else {
                    var t = y.ConfigCacheComponent.Instance.GetHeroMaxLevelPerStar(),
                        n = t[this._heroBaseConfig.StarLevel - 1];
                    this._nearStarMaxLevel = n;
                    for (var o = 0; o < t.length; o++) {
                        var r = t[o];
                        if (this._currentHeroLevel < r && r >= n) {
                            this._nearStarMaxLevel = r;
                            break
                        }
                    }
                    this.CheckLevelMaterials()
                }
            }, t.prototype.GetLevelUpMaterials = function(e) {
                for (var t = new Map, n = new Map, o = this._currentLevelConfig.Materials, r = 0; r < o.length; r++) {
                    var i = o[r].Items;
                    n.set(i[0], i[1])
                }
                var a = new Map,
                    s = y.ConfigDataComponent.Instance.GetConfigById(g.HeroLevel_Config, e).Materials;
                for (r = 0; r < s.length; r++) i = s[r].Items, a.set(i[0], i[1]);
                return a.forEach(function(e, o) {
                    var r = 0;
                    n.has(o) && (r = n.get(o)), t.set(o, e - r)
                }), t
            }, t.prototype.CheckLevelMaterials = function() {
                var e = this._nearStarMaxLevel,
                    t = this._currentHeroLevel,
                    n = !1;
                if (e - this._currentHeroLevel > 5) {
                    n = !0;
                    for (var o = (p = this.GetLevelUpMaterials(e)).keys(), r = void 0; !(r = o.next()).done;) {
                        var i = r.value,
                            a = p.get(i);
                        if (!y.DataCenter.Instance.IsItemEnough(i, a)) {
                            n = !1;
                            break
                        }
                    }
                }
                this._levelUpMode = n ? l.LevelUpToMax : l.LevelUpNormal;
                var s = this._currentHeroLevel + 1;
                this._currentHeroLevel >= this.UPLEVEL_MODE_CHANGE && (e = s);
                for (var c = Math.min(this._currentHeroLevel + 5, e), u = s; u <= c; u++) {
                    var p, d = !0;
                    for (o = (p = this.GetLevelUpMaterials(u)).keys(), r = void 0; !(r = o.next()).done;)
                        if (i = r.value, a = p.get(i), !y.DataCenter.Instance.IsItemEnough(i, a)) {
                            this._notEnoughId = i, this._needCount = a, d = !1;
                            break
                        } if (!d) break;
                    t = u
                }
                this._upToLevel = t
            }, t.prototype.ConfigLevelUpButton = function() {
                var e;
                switch (this.UpLevelBtn.node.active = !1, this.MaxUpLevelBtn.node.active = !1, this.GrayBtn.node.active = !1, this.UpLevelIconBtn.node.active = !1, this.UpLevelIconLabel.fontSize = 40, this.UpLevelIconLabel.lineHeight = 45, this._levelUpMode) {
                    case l.StarLevelLimit:
                        this.UpLevelBtn.node.active = !0;
                        break;
                    case l.StarResonanceLevel_Up:
                    case l.StarResonanceLevel_Stage:
                        this.UpLevelBtn.node.active = !0, e = "task_goto";
                        break;
                    case l.LevelUpToMax:
                        f.UIUtlity.OffSpriteGray(this.UpLevelIconSprite), this.UpLevelIconLabel.getComponent(cc.LabelOutline).color = cc.color(104, 76, 27), this.UpLevelIconBtn.node.active = !0, this.MaxUpLevelBtn.node.active = !0, this.MaxUpLevelLabel.string = "up_to_max_level".ToUILocale().Fmt("Lv." + this._nearStarMaxLevel);
                        break;
                    case l.StarResonanceLevel_None:
                        this.GrayBtn.node.active = !0;
                        break;
                    case l.MaxLevelLimit:
                        break;
                    default:
                        f.UIUtlity.OffSpriteGray(this.UpLevelIconSprite), this.UpLevelIconLabel.getComponent(cc.LabelOutline).color = cc.color(104, 76, 27), this.UpLevelIconBtn.node.active = !0
                }
                var t = this._upToLevel - this._currentHeroLevel;
                t > 0 ? (e ? this.UpLevelLabel.string = e.ToUILocale() : this.UpLevelIconLabel.string = "up_level".ToUILocale().Fmt(t), w.RedDotManager.Instance.BindNodeByResult(this.UpLevelIconBtn.node, w.RedDotManager.Instance.InstanceRedDot.HeroInfoAttrLevelBtn, !0)) : (e ? this.UpLevelLabel.string = e.ToUILocale() : (this.UpLevelLabel.string = "up_level".ToUILocale().Fmt(""), this.UpLevelIconLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), f.UIUtlity.OnSpriteGray(this.UpLevelIconSprite), this.UpLevelIconLabel.getComponent(cc.LabelOutline).color = cc.color(32, 36, 52)), w.RedDotManager.Instance.BindNodeByResult(this.UpLevelIconBtn.node, w.RedDotManager.Instance.InstanceRedDot.HeroInfoAttrLevelBtn, !1))
            }, t.prototype.ConfigLevelUpCost = function() {
                switch (this._levelUpMode) {
                    case l.MaxLevelLimit:
                    case l.StarLevelLimit:
                        return void(this.CurencyBarContainer.active = !1)
                }
                var e;
                this.CurencyBarContainer.active = !0, e = this._upToLevel == this._currentHeroLevel ? this._currentHeroLevel + 1 : this._upToLevel;
                for (var t, n = this.GetLevelUpMaterials(e), o = n.keys(), r = 0, i = function() {
                        var e = t.value,
                            o = n.get(e),
                            i = a.CurencyBars[r];
                        o > 0 ? (i.node.active = !0, i.Init(e, !1, void 0, o), i.SetClickCallBack(function() {
                            I.default.ShowItemGetWay(e, {
                                ShowProgressBar: !0,
                                ProgressHint: "needCount".ToUILocale(),
                                MaxCount: o
                            })
                        }), r++) : i.node.active = !1
                    }, a = this; !(t = o.next()).done;) i();
                for (var s = r; s < this.CurencyBars.length; s++) this.CurencyBars[s].node.active = !1
            }, t.prototype.ConfigMaxLevelHint = function() {
                switch (this._levelUpMode) {
                    case l.MaxLevelLimit:
                        this.MaxLevelHintNode.active = !0, this.MaxLevelHint.string = "level_limit_reach".ToUILocale();
                        break;
                    default:
                        this.MaxLevelHintNode.active = !1
                }
            }, t.prototype.OnLevelUp = function() {
                var e = this;
                switch (this._levelUpMode) {
                    case l.StarLevelLimit:
                        f.UIUtlity.ShowHintPanel("", "starLevel_limit".ToUILocale(), "", null, "", function() {
                            e._baseUIPanel.SetPanelTab(2)
                        });
                        break;
                    case l.StarResonanceLevel_Up:
                    case l.StarResonanceLevel_Stage:
                        m.UIManager.Instance.ShowUIPanel(h.PanelConfig.StarTemplePanel.Path, b.TempleMode.Resonance);
                        break;
                    default:
                        this._upToLevel > this._currentHeroLevel ? this._isRequestingLevelUp || (this._upLevelRequestTimes++, this._isRequestingLevelUp = !0, this.RequestUpgradeLevel(this._upToLevel)) : (I.default.ShowItemGetWay(this._notEnoughId, {
                            ShowProgressBar: !0,
                            ProgressHint: "needCount".ToUILocale(),
                            MaxCount: this._needCount
                        }), f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughId.ToItemName())))
                }
            }, t.prototype.OnMaxLevelUp = function() {
                var e = this.GetLevelUpMaterials(this._nearStarMaxLevel);
                m.UIManager.Instance.ShowUIPanel(h.PanelConfig.LevelUpConfirmPanel.Path, this._currentHeroLevel, this._nearStarMaxLevel, e)
            }, t.prototype.RequestUpgradeLevel = function(e) {
                var t = this,
                    n = new u.Req_Hero_UpgradeLevel;
                n.Sid = this._hero.Sid, n.NewLevel = e, y.RpcComponent.Instance.CallWithoutMask(n, function() {
                    if (t._upLevelRequestTimes--, t._isRequestingLevelUp = !1, t.node.active && n.Sid == t._hero.Sid) {
                        var e = t._hero.Power,
                            o = t._hero.Attrs[C.HeroAttributeType.Defense],
                            r = t._hero.Attrs[C.HeroAttributeType.Attack],
                            i = t._hero.Attrs[C.HeroAttributeType.Hp];
                        t._baseUIPanel.RefreshHeroAttrMode(e);
                        var a = t._hero.Power - e,
                            s = t._hero.Attrs[C.HeroAttributeType.Defense] - o,
                            l = t._hero.Attrs[C.HeroAttributeType.Attack] - r,
                            c = t._hero.Attrs[C.HeroAttributeType.Hp] - i;
                        m.UIManager.Instance.ShowUIPanel(h.PanelConfig.LevelUpHintPanel.Path, t._hero.Power, a, s, l, c), t._upLevelRequestTimes > 0 && t.UpLevelBtn.node.active && t.OnLevelUp(), t._baseUIPanel.BindAttrToggle()
                    }
                }, function() {
                    t._isRequestingLevelUp = !1, t._upLevelRequestTimes = 0
                }, S.default.Instance.CurrentGroup)
            }, t.prototype.UpHeroToMax = function() {
                this.RequestUpgradeLevel(this._nearStarMaxLevel)
            }, t.prototype.OnSkillItemTouch = function(e) {
                var t = this._luckyCharmSkillNodes.indexOf(e.node);
                if (-1 != t)
                    if (0 == t) {
                        var n = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroLuckyCharmUnlock1");
                        this._hero.StarLevel >= n ? this._hero.LuckSkill1 ? c.UIManager.Instance.ShowUIPanel(h.PanelConfig.LuckyCharmSkillLevelUpPanel.Path, this._hero.Sid, 1) : c.UIManager.Instance.ShowUIPanel(h.PanelConfig.LuckyCharmComprehensionPanel.Path, this._hero.Sid, 1) : f.UIUtlity.ShowFloatingHint("heroSkill_open_star".ToUILocale().Fmt(n))
                    } else if (1 == t) {
                    var o = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroLuckyCharmUnlock2");
                    this._hero.StarLevel >= o ? this._hero.LuckSkill2 ? c.UIManager.Instance.ShowUIPanel(h.PanelConfig.LuckyCharmSkillLevelUpPanel.Path, this._hero.Sid, 2) : c.UIManager.Instance.ShowUIPanel(h.PanelConfig.LuckyCharmComprehensionPanel.Path, this._hero.Sid, 2) : f.UIUtlity.ShowFloatingHint("heroSkill_open_star".ToUILocale().Fmt(o))
                }
            }, t.prototype.OnCheckDetail = function() {
                m.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroAttributePanel.Path, this._hero)
            }, t.prototype.ShowGuide = function() {
                if (S.default.Instance.IsInGuide) switch (S.default.Instance.CurrentStep) {
                    case 6104:
                    case 15104:
                        S.default.Instance.ShowGuide(this.UpLevelIconBtn.node)
                }
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, t.SHOW_LUCKYCHRAM_STARLEVEL = 12, i([R(cc.Label)], t.prototype, "HeroLevelLabel", void 0), i([R(cc.Label)], t.prototype, "HeroMaxLevelLabel", void 0), i([R(cc.Label)], t.prototype, "HeroDesc", void 0), i([R(cc.Label)], t.prototype, "HPValue", void 0), i([R(cc.Label)], t.prototype, "AttackValue", void 0), i([R(cc.Label)], t.prototype, "DefenseValue", void 0), i([R(cc.Label)], t.prototype, "SpeedValue", void 0), i([R(cc.Button)], t.prototype, "DetailBtn", void 0), i([R(cc.Node)], t.prototype, "SkillLayout", void 0), i([R(cc.Button)], t.prototype, "UpLevelBtn", void 0), i([R(cc.Button)], t.prototype, "MaxUpLevelBtn", void 0), i([R(cc.Button)], t.prototype, "GrayBtn", void 0), i([R(cc.Button)], t.prototype, "UpLevelIconBtn", void 0), i([R(cc.Sprite)], t.prototype, "UpLevelIconSprite", void 0), i([R(cc.Label)], t.prototype, "UpLevelLabel", void 0), i([R(cc.Label)], t.prototype, "MaxUpLevelLabel", void 0), i([R(cc.Label)], t.prototype, "GrayBtnLabel", void 0), i([R(cc.Label)], t.prototype, "UpLevelIconLabel", void 0), i([R(cc.Node)], t.prototype, "CurencyBarContainer", void 0), i([R(v.default)], t.prototype, "CurencyBars", void 0), i([R(cc.Node)], t.prototype, "MaxLevelHintNode", void 0), i([R(cc.Label)], t.prototype, "MaxLevelHint", void 0), i([R(cc.RichText)], t.prototype, "StarResonanceHint", void 0), n = i([T], t)
        }(cc.Component);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent",
        "./StarTemplePanel": "StarTemplePanel"
    }],
    HeroInfoTabEquip: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fd1135eFK1BzKA7D++7C9tk", "HeroInfoTabEquip");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../GamePlay/Components/Components"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../Auxiliary/GuideManager"),
            _ = e("../../RedDot/RedDotDataHandler"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../../../Consts/Consts"),
            b = e("../Components/PowerCoreFormComponent"),
            S = e("../../../../Proto/Static/ConfigProto"),
            w = e("./ArtifactHeroSelectPanel"),
            P = e("./CommonItemInfoPanel"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.EquipConatiner = null, t.LuckyCharmConatiner = null, t.AutoWearBtn = null, t.AutoWearBtnLabel = null, t.AutoTakeOffBtn = null, t.AutoTakeOffLabel = null, t.AutoForgingBtn = null, t.AutoForgingBtnLabel = null, t.PowerCoreLockIcon = null, t.PowerCoreAddButton = null, t.PowerCorePart = null, t.PowerCoreItem = null, t.PowerCoreDefaultItcon = null, t.PowerCoreStarContainer = null, t.PowerCoreStarIconArray = [], t.ArtifactBorderNode = null, t.LockLabel = null, t._isInitial = !1, t._itemComponents = [], t._luckyCharmComponents = [], t._canChangeStates = [], t._canForgingStates = [], t._canDevelopHolyEquipStates = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickEquip, this), l.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(c.HolyEquipment_Model._n_), this.OnHolyEquipChange, this), this.PowerCoreDefaultItcon.node.on(cc.Node.EventType.TOUCH_END, this.OnPowerCoreIconClick, this), this.PowerCoreItem.node.on(cc.Node.EventType.TOUCH_END, this.OnPowerCoreIconClick, this), this.PowerCoreLockIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnPowerCoreLockClick, this), this.PowerCoreAddButton.node.on("click", this.OnPowerCoreIconClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickEquip), l.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(c.HolyEquipment_Model._n_), this.OnHolyEquipChange)
                }, t.prototype.Init = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._basePanel = t, this._isInitial || (this._isInitial = !0, this._luckyCharmUnlockInfo = [], this._luckyCharmUnlockInfo[0] = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmSlot1UnlockLevel"), this._luckyCharmUnlockInfo[1] = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmSlot2UnlockStarLevel"), this.InitUI()), this._itemPrefab ? [3, 2] : (n = this, [4, y.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent)]);
                                case 1:
                                    if (n._itemPrefab = o.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    return this._selectHero = e, this._equipsSids = f.DataCenter.Instance.GetHeroEquips(this._selectHero.Sid), this._holyEquipsSids = f.DataCenter.Instance.GetHeroHolyEquips(this._selectHero.Sid), this._luckyCharmSids = f.DataCenter.Instance.GetHeroLuckCharmEquips(this._selectHero.Sid), this._artifactId = m.default.GetHeroArtifactId(this._selectHero.Sid), this.ConfigEquipments(), this.ConfigLucyCharmEquips(), this.ConfigPowerCoreEquip(), this.RefreshButtons(), this.GetCurrentHolyEquipSkills(), this.ShowGuide(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.AutoWearBtn.node.on("click", this.OnAutoWear, this), this.AutoTakeOffBtn.node.on("click", this.OnAutoTakeOff, this), this.AutoForgingBtn.node.on("click", this.OnAutoForging, this), this.AutoWearBtnLabel.string = "equip_auto_wear".ToUILocale(), this.AutoTakeOffLabel.string = "equip_take_off".ToUILocale(), this.AutoForgingBtnLabel.string = "equip_auto_forging".ToUILocale(), this._heroEquipUnlockHeroLevel = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroEquipUnlockHeroLevel"), this.LockLabel.string = "unlockHeroLevel".ToUILocale().Fmt(this._heroEquipUnlockHeroLevel)
                }, t.prototype.ConfigEquipments = function() {
                    var e = m.default.Instance.IsGameModuleOpen(u.GameModuleType.Artifact),
                        t = m.default.Instance.IsGameModuleUnlock(u.GameModuleType.Artifact);
                    if (this.EquipConatiner.getComponent(cc.Layout).spacingX = e && t[0] ? 75 : 120, this.ArtifactBorderNode.active = e && t[0], 0 == this._itemComponents.length)
                        for (var n = e && t[0] ? this._equipsSids.length + 1 : this._equipsSids.length, o = 0; o < n; o++) {
                            var r = cc.instantiate(this._itemPrefab);
                            r.setParent(this.EquipConatiner);
                            var i = r.getComponent(g.ItemComponent);
                            this._itemComponents.push(i)
                        }
                    for (this._isEquipFull = !0, this._isEquipEmpty = !0, this._canAutoWear = !1, this._canAutoForging = !1, o = 0; o < this._equipsSids.length; o++) {
                        var a = this._equipsSids[o],
                            s = this._holyEquipsSids[o],
                            l = (i = this._itemComponents[o], !1),
                            p = !1;
                        if (this._itemComponents[o].node.name = o.toString(), 0 == a && 0 == s) this._isEquipFull = !1, i.SetItemSimpleState(), i.SetCustomIcon(h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("equip_" + (o + 1)));
                        else if (0 != a) {
                            this._isEquipEmpty = !1;
                            var d = f.DataCenter.Instance.GetDataById(c.Equipment_Model, a);
                            i.Init({
                                ItemId: d.ItemId
                            }, g.ItemComponentType.ItemWithStar), l = _.RedDotDataHandler.Instance.CanForgingEquip(this._selectHero.Sid, o + 1)
                        } else 0 != s && (this._isEquipEmpty = !1, d = f.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, s), i.Init({
                            ItemId: d.ItemId,
                            StarLevel: d.Star,
                            Sid: d.Sid,
                            URStarLevel: d.Step
                        }, g.ItemComponentType.ItemWithStar), p = _.RedDotDataHandler.Instance.IsHolyEquipCanDevelop(this._selectHero.Sid, o + 1));
                        var y = _.RedDotDataHandler.Instance.CanChangeEquip(this._selectHero.Sid, o + 1);
                        this._canChangeStates[o] = y, this._canForgingStates[o] = l, this._canDevelopHolyEquipStates[o] = p, i.SetRedDotState(y || l || p, 1 / this.EquipConatiner.scale), y && (this._isEquipFull = !1, this._canAutoWear = !0), l && (this._canAutoForging = !0)
                    }
                    if (e && t[0] && this._itemComponents[this._equipsSids.length]) {
                        if (i = this._itemComponents[this._equipsSids.length], this._itemComponents[this._equipsSids.length].node.name = this._equipsSids.length.toString(), this._itemComponents[this._equipsSids.length].node.setSiblingIndex(2), this._artifactId > 0) {
                            var I = w.default.GetArtifactItemId(this._artifactId),
                                C = f.DataCenter.Instance.GetDataById(c.Artefact_Model, this._artifactId),
                                v = f.ConfigDataComponent.Instance.GetConfigById(S.ArtefactStar_Config, C.Star);
                            i.Init({
                                ItemId: I,
                                StarLevel: v.Star
                            }, g.ItemComponentType.ItemWithStar), i.CustomItemBgAndBorder(v.Quality)
                        } else {
                            i.SetItemSimpleState(), i.SetCustomIcon(h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("artifactBg"));
                            var b = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroPutOnArtefactStar");
                            this._selectHero.StarLevel >= b ? i.SetAddFlagState(!0, "add_green") : i.SetLockFlag(!0)
                        }
                        var P = _.RedDotDataHandler.Instance.IsHeroCanWearArtifactOrDevelop({
                            Value1: this._selectHero.Sid
                        });
                        i.SetRedDotState(P)
                    }
                    this.BindEquipRedDot()
                }, t.prototype.BindEquipRedDot = function() {
                    C.RedDotManager.Instance.BindInstance(this.AutoWearBtn.node, C.RedDotManager.Instance.InstanceRedDot.EquipAutoWearButton, {
                        Result: this._canAutoWear
                    }), C.RedDotManager.Instance.BindInstance(this.AutoForgingBtn.node, C.RedDotManager.Instance.InstanceRedDot.EquipAutoForgingButton, {
                        Result: this._canAutoForging
                    })
                }, t.prototype.ConfigLucyCharmEquips = function() {
                    if (0 == this._luckyCharmComponents.length)
                        for (var e = 0; e < this._luckyCharmSids.length; e++) {
                            var t = cc.instantiate(this._itemPrefab);
                            t.setParent(this.LuckyCharmConatiner), t.name = e.toString(), this._luckyCharmComponents.push(t.getComponent(g.ItemComponent))
                        }
                    for (this._luckyCharmUnlockStates = [], (this._selectHero.TemplePosition > 0 ? this._selectHero.TempleLevel : this._selectHero.Level) < this._luckyCharmUnlockInfo[0] ? this._luckyCharmUnlockStates[0] = !1 : this._luckyCharmUnlockStates[0] = !0, this._selectHero.StarLevel < this._luckyCharmUnlockInfo[1] ? this._luckyCharmUnlockStates[1] = !1 : this._luckyCharmUnlockStates[1] = !0, e = 0; e < this._luckyCharmComponents.length; e++) {
                        var n = this._luckyCharmSids[e],
                            o = this._luckyCharmComponents[e];
                        if (0 == n) o.SetItemSimpleState(), o.SetCustomIcon(h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("equip_luckyCharm"));
                        else {
                            var r = f.DataCenter.Instance.GetDataById(c.LuckyCharmEquip_Model, n);
                            r.ItemId >= u.CommonItemId.PrimordialLuckyCharm ? o.Init(r, g.ItemComponentType.LuckyCharm) : o.Init({
                                ItemId: r.ItemId
                            }, g.ItemComponentType.ItemCommon)
                        }
                        this._luckyCharmUnlockStates[e] ? (o.SetLockFlag(!1), o.SetCustomDesc(!1)) : (o.SetLockFlag(!0, "lock_yellow"), o.SetCustomDesc(!0, ("equip_luckyCharm_unlock_tag" + (e + 1)).ToUILocale().Fmt(this._luckyCharmUnlockInfo[e]), "Bottom", !1, !0));
                        var i = _.RedDotDataHandler.Instance.RefreshLuckyCharmBySidAndSlot(this._selectHero.Sid, e + 1);
                        o.SetRedDotState(i, 1 / this.LuckyCharmConatiner.scale)
                    }
                }, t.prototype.ConfigPowerCoreEquip = function() {
                    if (this._powerCoreSid = 0, m.default.Instance.IsGameModuleUnlock(v.GameModuleType.HeroStar)[0] && m.default.Instance.IsGameModuleUnlock(v.GameModuleType.PowerCore)[0]) {
                        var e = f.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("PowerCoreUnlockStarLevel");
                        if (this._selectHero.StarLevel >= e) {
                            this.PowerCoreLockIcon.node.active = !1, this.PowerCorePart.active = !0;
                            for (var t = f.DataCenter.Instance.GetDataList(c.PowerCore_Model), n = void 0, o = 0; o < t.length; o++)
                                if (t[o].OwnerId == this._selectHero.Sid) {
                                    n = t[o];
                                    break
                                } n ? (this.PowerCoreDefaultItcon.node.active = !1, this.PowerCoreItem.node.active = !0, this.LoadPowerCoreIconAndStar(n.ItemId), this._powerCoreSid = n.Sid, this.PowerCoreAddButton.node.active = !1, this.PowerCoreStarContainer.active = !0) : (this.PowerCoreDefaultItcon.node.active = !0, this.PowerCoreItem.node.active = !1, this.PowerCoreAddButton.node.active = !0, this.PowerCoreStarContainer.active = !1), C.RedDotManager.Instance.BindInstance(this.PowerCorePart, C.RedDotManager.Instance.InstanceRedDot.PowerCoreCanEquipNode, {
                                Value1: this._selectHero.Sid
                            })
                        } else this.PowerCoreLockIcon.node.active = !0, this.PowerCoreAddButton.node.active = !1, this.PowerCorePart.active = !1
                    } else this.PowerCoreLockIcon.node.active = !1, this.PowerCorePart.active = !1
                }, t.prototype.LoadPowerCoreIconAndStar = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function() {
                            if (e > 0)
                                for (t = f.ConfigDataComponent.Instance.GetConfigById(S.PowerCore_Config, e), this.PowerCoreItem.InitData(m.default.GetCoreFormId(t)), n = 0; n < this.PowerCoreStarIconArray.length; n++) void 0, o = n < t.Star ? "star_equipment1" : "star_equipmentBg", this.PowerCoreStarIconArray[n].spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame(o);
                            return [2]
                        })
                    })
                }, t.prototype.OnPowerCoreIconClick = function() {
                    y.EZLog.Log("Enter OnPowerCoreIconClick"), this._powerCoreSid > 0 ? y.UIManager.Instance.ShowUIPanel(d.PanelConfig.PowerCoreDetailsPanel.Path, this._powerCoreSid, this._selectHero.Sid) : y.UIManager.Instance.ShowUIPanel(d.PanelConfig.PowerCoreReplacePanel.Path, this._selectHero.Sid)
                }, t.prototype.OnPowerCoreLockClick = function() {
                    y.EZLog.Log("Enter OnPowerCoreLockClick"), h.UIUtlity.ShowFloatingHint("HeroInfoTabEquip_PowerCoreUnlockStar".ToUILocale().Fmt(f.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("PowerCoreUnlockStarLevel")))
                }, t.prototype.RefreshButtons = function() {
                    this.AutoWearBtn.node.active = this._selectHero.Level >= this._heroEquipUnlockHeroLevel, this.AutoTakeOffBtn.node.active = this._selectHero.Level >= this._heroEquipUnlockHeroLevel, this.AutoForgingBtn.node.active = this._selectHero.Level >= this._heroEquipUnlockHeroLevel, this.LockLabel.node.active = this._selectHero.Level < this._heroEquipUnlockHeroLevel
                }, t.prototype.OnClickEquip = function(e, t) {
                    if (this.EquipConatiner.children.indexOf(t) > -1) {
                        if (this._selectHero.Level < this._heroEquipUnlockHeroLevel) return void h.UIUtlity.ShowFloatingHint("unlockHeroLevel".ToUILocale().Fmt(this._heroEquipUnlockHeroLevel));
                        if (e == this._equipsSids.length) {
                            var n, o = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroPutOnArtefactStar");
                            if (this._selectHero.StarLevel < o) return void h.UIUtlity.ShowFloatingHint("artifact_limit_star".ToUILocale().Fmt(o));
                            this._artifactId > 0 ? ((n = {}).Type = P.CommonItemInfoType.Artifact, n.IsSelf = !0, n.IsShowButtons = !0, n.ItemId = this._artifactId, n.HeroSid = this._selectHero.Sid, l.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonItemInfoPanel.Path, n)) : ((n = {}).Type = P.CommonItemInfoType.Artifact, n.Sid = this._artifactId, n.HeroSid = this._selectHero.Sid, l.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonItemChangePanel.Path, n))
                        } else {
                            var r = this._equipsSids[e],
                                i = this._holyEquipsSids[e];
                            if (0 == r && 0 == i) y.UIManager.Instance.ShowUIPanel(d.PanelConfig.EquipmentChangePanel.Path, this._selectHero, -1 * (e + 1));
                            else if (0 != r) {
                                var a = f.DataCenter.Instance.GetDataById(c.Equipment_Model, r);
                                y.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemInfoPanel.Path, a.ItemId, {
                                    UserEquipId: r,
                                    CanChangeEquip: this._canChangeStates[e],
                                    CanForging: this._canForgingStates[e]
                                })
                            } else 0 != i && (a = f.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, i), y.UIManager.Instance.ShowUIPanel(d.PanelConfig.HolyEquipmentInfoPanel.Path, {
                                Sid: a.Sid,
                                CanDevelop: this._canDevelopHolyEquipStates[e],
                                ItemId: a.ItemId
                            }))
                        }
                    } else if (this.LuckyCharmConatiner.children.indexOf(t) > -1) {
                        if (this._selectHero.Level < this._heroEquipUnlockHeroLevel) return void h.UIUtlity.ShowFloatingHint("unlockHeroLevel".ToUILocale().Fmt(this._heroEquipUnlockHeroLevel));
                        this._luckyCharmUnlockStates[e] ? 0 == this._luckyCharmSids[e] ? y.UIManager.Instance.ShowUIPanel(d.PanelConfig.SelectLuckyCharmHint.Path, e, this._selectHero.Sid) : y.UIManager.Instance.ShowUIPanel(d.PanelConfig.LuckyCharmInfoPanel.Path, e, this._selectHero.Sid, this._luckyCharmSids[e]) : h.UIUtlity.ShowFloatingHint(("equip_luckyCharm_unlock_slot" + (e + 1)).ToUILocale().Fmt(this._luckyCharmUnlockInfo[e]))
                    }
                }, t.prototype.OnAutoWear = function() {
                    h.UIUtlity.ShowMaskPanel();
                    var e = new c.Req_Item_EquipmentOneClickPutOn;
                    e.OwnerId = this._selectHero.Sid, f.RpcComponent.Instance.Call(e, this.OnWearSucces.bind(this), this.OnWearFail.bind(this), I.default.Instance.CurrentGroup), this._oldBP = this._selectHero.Power
                }, t.prototype.OnWearSucces = function() {
                    h.UIUtlity.CloseMaskPanel(), l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_EQUIP_DATA_REFRESH);
                    var e = f.DataCenter.Instance.GetDataById(c.UserHero_Model, this._selectHero.Sid);
                    this._oldBP != e.Power && y.UIManager.Instance.ShowUIPanel(d.PanelConfig.BattlePowerChangePanel.Path, this._oldBP, e.Power)
                }, t.prototype.OnWearFail = function() {
                    h.UIUtlity.CloseMaskPanel()
                }, t.prototype.OnAutoTakeOff = function() {
                    h.UIUtlity.ShowMaskPanel();
                    var e = new c.Req_Item_EquipmentOneClickPutOff;
                    e.OwnerId = this._selectHero.Sid, f.RpcComponent.Instance.Call(e, this.OnTakeOffSucces.bind(this), this.OnTakeOffFail.bind(this))
                }, t.prototype.OnTakeOffSucces = function() {
                    h.UIUtlity.CloseMaskPanel(), l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_EQUIP_DATA_REFRESH)
                }, t.prototype.OnTakeOffFail = function() {
                    h.UIUtlity.CloseMaskPanel()
                }, t.prototype.OnAutoForging = function() {
                    this._isEquipEmpty ? h.UIUtlity.ShowFloatingHint("equip_wear_first".ToUILocale()) : y.UIManager.Instance.ShowUIPanel(d.PanelConfig.EquipAutoForgingPanel.Path, this._selectHero.Sid)
                }, t.prototype.GetCurrentHolyEquipSkills = function() {
                    this._currentHolyEquipSkills = m.default.GetHeroHolyEquipSkills(this._selectHero.Sid)
                }, t.prototype.OnHolyEquipChange = function() {
                    var e = !1,
                        t = m.default.GetHeroHolyEquipSkills(this._selectHero.Sid),
                        n = Object.keys(this._currentHolyEquipSkills),
                        o = Object.keys(t);
                    if (o.length > n.length) e = !0;
                    else
                        for (var r = 0; r < o.length; r++) {
                            var i = o[r];
                            n.indexOf(i) > -1 ? t[i] > this._currentHolyEquipSkills[i] && (e = !0) : e = !0
                        }
                    e && y.UIManager.Instance.ShowUIPanel(d.PanelConfig.SuitSkillActivePanel.Path, t), this._currentHolyEquipSkills = t
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, t.prototype.ShowGuide = function() {
                    if (I.default.Instance.IsInGuide) switch (I.default.Instance.CurrentStep) {
                        case 7103:
                            I.default.Instance.ShowGuide(this.AutoWearBtn.node)
                    }
                }, i([R(cc.Node)], t.prototype, "EquipConatiner", void 0), i([R(cc.Node)], t.prototype, "LuckyCharmConatiner", void 0), i([R(cc.Button)], t.prototype, "AutoWearBtn", void 0), i([R(cc.Label)], t.prototype, "AutoWearBtnLabel", void 0), i([R(cc.Button)], t.prototype, "AutoTakeOffBtn", void 0), i([R(cc.Label)], t.prototype, "AutoTakeOffLabel", void 0), i([R(cc.Button)], t.prototype, "AutoForgingBtn", void 0), i([R(cc.Label)], t.prototype, "AutoForgingBtnLabel", void 0), i([R(cc.Sprite)], t.prototype, "PowerCoreLockIcon", void 0), i([R(cc.Button)], t.prototype, "PowerCoreAddButton", void 0), i([R(cc.Node)], t.prototype, "PowerCorePart", void 0), i([R(b.default)], t.prototype, "PowerCoreItem", void 0), i([R(cc.Sprite)], t.prototype, "PowerCoreDefaultItcon", void 0), i([R(cc.Node)], t.prototype, "PowerCoreStarContainer", void 0), i([R([cc.Sprite])], t.prototype, "PowerCoreStarIconArray", void 0), i([R(cc.Node)], t.prototype, "ArtifactBorderNode", void 0), i([R(cc.Label)], t.prototype, "LockLabel", void 0), i([T], t)
            }(cc.Component);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PowerCoreFormComponent": "PowerCoreFormComponent",
        "./ArtifactHeroSelectPanel": "ArtifactHeroSelectPanel",
        "./CommonItemInfoPanel": "CommonItemInfoPanel"
    }],
    HeroInfoTabGem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "80468sAg+JG3LXnSdlCukzb", "HeroInfoTabGem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = e("../../Components/DataCenter"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../../../../Proto/Static/ConfigProto"),
            _ = e("../../../../Proto/Static/RpcProto"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Components/AttrComponent4"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GreenButtonLabel = null, t.OrangeButtonLabel = null, t.GreenButton = null, t.OrangeButton = null, t.InfoButton = null, t.DefaultDesc = null, t.GridLayout = null, t.ResonanceAdditionTitle = null, t.ResonanceAdditionDesc = null, t.AttrComponentPrefab = null, t.AddonGroup = null, t.AddonAttrIcon = [], t.AddonAttrValue = [], t.AutoUnloadLabel = null, t.AutoUnloadButton = null, t.LockLabel = null, t._models = [], t._attrNodes = [], t._solts = [], t._loadedAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Init = function(e) {
                    if (this.GreenButtonLabel.string = "gem_puton".ToUILocale(), this.OrangeButtonLabel.string = "gem_compose_make".ToUILocale(), this.DefaultDesc.string = "gem_defaultDesc".ToUILocale(), this.ResonanceAdditionTitle.string = "gem_resonanceAddition".ToUILocale(), this.AutoUnloadLabel.string = "gem_auto_unload".ToUILocale(), this._heroGemUnlockHeroLevel = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroGemUnlockHeroLevel"), this.LockLabel.string = "unlockHeroLevel".ToUILocale().Fmt(this._heroGemUnlockHeroLevel), this._models = d.default.FilterGemsBySid(e), this._heroModel = y.DataCenter.Instance.GetDataById(c.UserHero_Model, e), this.SetGemPos(), this.SetButtonState(), this.SetAttrNodes(), this.ResonanceAdditionTitle.node.active = !1, this.ResonanceAdditionDesc.node.active = !1, this.DefaultDesc.node.active = !1, this.AddonGroup.active = !1, 0 == this._models.length) this.ResonanceAdditionDesc.node.active = !0, this.ResonanceAdditionDesc.string = "gem_notWear".ToUILocale(), this.DefaultDesc.node.active = !0;
                    else if (this._models.length < 6) this.ResonanceAdditionDesc.node.active = !0, this.ResonanceAdditionDesc.string = "gem_notEnoughSix".ToUILocale();
                    else {
                        this.AddonGroup.active = !0, this.ResonanceAdditionTitle.node.active = !0;
                        for (var t = this.Level, o = f.ConfigDataComponent.Instance.GetConfigById(I.GemQuality_Config, t), r = 0; r < o.SuitAttrs.length; r++) {
                            var i = o.SuitAttrs[r].Items;
                            this.AddonAttrIcon[r].spriteFrame = d.default.GetAttrIcon(i[0]), this.AddonAttrValue[r].string = d.default.GetAttrText(i[0], i[1])
                        }
                    }
                    n.S = this
                }, t.prototype.SetButtonState = function() {
                    this.GreenButton.node.active = this._heroModel.Level >= this._heroGemUnlockHeroLevel, this.OrangeButton.node.active = this._heroModel.Level >= this._heroGemUnlockHeroLevel, this.AutoUnloadButton.node.active = this._heroModel.Level >= this._heroGemUnlockHeroLevel, this.LockLabel.node.active = this._heroModel.Level < this._heroGemUnlockHeroLevel
                }, t.prototype.SetAttrNodes = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function() {
                            return e = this.GetGemDatas(), this._attrNodes.forEach(function(e) {
                                e.active = !1
                            }), e.forEach(function(e, n) {
                                if (!t._attrNodes[n]) {
                                    var o = cc.instantiate(t.AttrComponentPrefab);
                                    o.parent = t.GridLayout, o.active = !0, t._attrNodes[n] = o
                                }
                                t._attrNodes[n].active = !0;
                                var r = t._attrNodes[n].getComponent(b.default),
                                    i = d.default.GetHeroAttribute(e.attrId, e.value, !0);
                                r.Init(e.attrId, null, {
                                    AttrName: i.Name,
                                    AttrValue: "+" + i.Value,
                                    ValueAlign: b.AttrComponent4Align.Mid,
                                    NotChangeTagNodeWidth: !0
                                })
                            }), [2]
                        })
                    })
                }, t.prototype.SetGemPos = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : (e = this, [4, u.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    this._loadedAssets.push(this._itemPrefab), s.label = 2;
                                case 2:
                                    if (null == this._items)
                                        for (this._items = [], i = 0; i < this._solts.length; i++)(t = cc.instantiate(this._itemPrefab)).setParent(this._solts[i]), this._items[i] = t.getComponent(m.ItemComponent);
                                    for (n = f.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, p.LevelParamType.GemGroove).Data2, o = d.default.GetGemSlotStateBySid(this._heroModel.Sid), i = 0; i < this._items.length; i++) r = o[i + 1], this._items[i].SetItemSimpleState(), r < 0 ? (this._items[i].SetLockFlag(!0), this._items[i].node.name = n[i].Items[1].toString()) : 0 == r && (this._items[i].SetAddFlagState(!0), this._items[i].AddFlag.node.width = 100, this._items[i].AddFlag.node.height = 100, this._items[i].node.name = "0");
                                    for (i = 0; i < this._models.length; i++) this._models[i].SlotId && (a = this._models[i].SlotId - 1, this._items[a].Init({
                                        ItemId: this._models[i].ItemId
                                    }), this._items[a].node.name = this._models[i].Sid.toString(), this._items[a].SetGemAttrSprite(this._models[i]));
                                    return this.RefreshReddot(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    this.GreenButton.node.on("click", this.OnGreenButtonClick, this), this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.InfoButton.node.on("click", this.OnInfoButtonClick, this), this.AutoUnloadButton.node.on("click", this.OnAutoUnloadButtonClick, this), u.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.GreenButton.node.off("click", this.OnGreenButtonClick, this), this.OrangeButton.node.off("click", this.OnOrangeButtonClick, this), this.InfoButton.node.off("click", this.OnInfoButtonClick, this), this.AutoUnloadButton.node.off("click", this.OnAutoUnloadButtonClick, this), u.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnGreenButtonClick = function() {
                    var e = this;
                    if (this._oldBP = this._heroModel.Power, d.default.CheckHeroCanWearGem(this._heroModel.Sid) || d.default.CheckHeroCanWearHigherGem(this._heroModel.Sid)) {
                        var t = new c.Req_Item_GemOneClickPutOn;
                        t.OwnerId = this.HeroSid, f.RpcComponent.Instance.Call(t, function() {
                            g.UIUtlity.ShowFloatingHint("gem_onekeyWearSuccess".ToUILocale()), e.Refresh(), u.Game.EventDispatcher.Emit(C.EventKeys.EVENT_EQUIP_DATA_REFRESH);
                            var t = y.DataCenter.Instance.GetDataById(_.UserHero_Model, e._heroModel.Sid);
                            u.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattlePowerChangePanel.Path, e._oldBP, t.Power)
                        })
                    } else g.UIUtlity.ShowFloatingHint("gem_cant_puton".ToUILocale())
                }, t.prototype.OnAutoUnloadButtonClick = function() {
                    var e = this;
                    if (this._heroModel) {
                        if (!d.default.FilterGemsBySid(this._heroModel.Sid).length) return g.UIUtlity.ShowFloatingHint("gem_no_wear".ToUILocale());
                        var t = new _.Req_Item_GemOneClickPutOff;
                        t.OwnerId = this._heroModel.Sid, f.RpcComponent.Instance.Call(t, function() {
                            g.UIUtlity.ShowFloatingHint("gem_unload_success".ToUILocale()), e.Refresh(), u.Game.EventDispatcher.Emit(C.EventKeys.EVENT_EQUIP_DATA_REFRESH)
                        })
                    }
                }, t.prototype.OnOrangeButtonClick = function() {
                    u.UIManager.Instance.ShowUIPanel(h.PanelConfig.GemComposePanel.Path)
                }, t.prototype.OnInfoButtonClick = function() {
                    u.UIManager.Instance.ShowUIPanel(h.PanelConfig.ResonanceAdditionHint.Path)
                }, t.prototype.OnItemClick = function(e, t) {
                    if ("GemContainers" == t.parent.parent.name)
                        if (d.default.CheckHeroGemUnlock(this._heroModel.Sid)) {
                            var n = this._items.indexOf(t.getComponent(m.ItemComponent));
                            switch (this._slotId = n + 1, n) {
                                case 0:
                                case 1:
                                    this._gemType = p.GemType.Attacking;
                                    break;
                                case 2:
                                case 3:
                                    this._gemType = p.GemType.Defensive;
                                    break;
                                case 4:
                                case 5:
                                    this._gemType = p.GemType.Special
                            }
                            0 == e ? u.UIManager.Instance.ShowUIPanel(h.PanelConfig.GemSelectHint.Path, !1, this._gemType) : e < 100 ? g.UIUtlity.ShowFloatingHint("equip_luckyCharm_unlock_slot2".ToUILocale().Fmt(e)) : u.UIManager.Instance.ShowUIPanel(h.PanelConfig.GemInfoPanel.Path, e, 1)
                        } else g.UIUtlity.ShowFloatingHint("unlockHeroLevel".ToUILocale().Fmt(this._heroGemUnlockHeroLevel))
                }, Object.defineProperty(t.prototype, "HeroSid", {
                    get: function() {
                        return this._heroModel.Sid
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "SlotId", {
                    get: function() {
                        return this._slotId
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "GemType", {
                    get: function() {
                        return this._gemType
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Models", {
                    get: function() {
                        return this._models
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Level", {
                    get: function() {
                        if (this._models.length < 6) return 0;
                        for (var e = 999, t = 0; t < this._models.length; t++) {
                            var n = f.ConfigDataComponent.Instance.GetConfigById(I.GemEquip_Config, this._models[t].ItemId);
                            e > n.Quality && (e = n.Quality)
                        }
                        return e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Refresh = function() {
                    this._heroModel && this._heroModel.Sid && this.Init(this._heroModel.Sid)
                }, t.prototype.RefreshReddot = function() {
                    this._items.forEach(function(e) {
                        e.SetRedDotState(!1)
                    });
                    for (var e = d.default.FilterAvailableGems(), t = d.default.GetGemsArrayByType(e), n = this._heroModel.Level >= this._heroGemUnlockHeroLevel, o = 0; o < this._items.length; o++) "0" == this._items[o].node.name && null != t[i = Math.ceil((o + 1) / 2)] && t[i].length > 0 && n && this._items[o].SetRedDotState(!0);
                    for (o = 0; o < this._items.length; o++) {
                        var r = Number.parseInt(this._items[o].node.name);
                        if (!(r < 100)) {
                            var i, a = t[i = Math.ceil((o + 1) / 2)];
                            if (null != a)
                                for (var s = f.ConfigCacheComponent.Instance.GetGemQualityBySid(r), l = 0; l < a.length && !this._items[o].RedDot.active; l++) s < f.ConfigCacheComponent.Instance.GetGemQualityByItemId(a[l].ItemId) && n && this._items[o].SetRedDotState(!0)
                        }
                    }
                    for (o = 0; o < this._models.length; o++)
                        if (this._models[o].SlotId && v.RedDotManager.DataHandler.RefreshGemProcessingBtnNode({
                                Value1: this._models[o].Sid
                            })) {
                            var c = this._models[o].SlotId - 1;
                            this._items[c].SetRedDotState(!0)
                        }
                }, t.prototype.SetSolts = function(e) {
                    this._solts = e
                }, t.prototype.GetGemDatas = function() {
                    var e = this,
                        t = [];
                    this._attrs = {};
                    for (var n = 0; n < this._models.length; n++) {
                        var o = this._models[n].ItemId,
                            r = f.ConfigDataComponent.Instance.GetConfigById(I.GemEquip_Config, o);
                        r && r.BaseAttrs.forEach(function(t) {
                            if (e._attrs[t.Items[0]]) e._attrs[t.Items[0]].value += t.Items[1];
                            else {
                                var n = {};
                                n.value = t.Items[1], n.isFixed = !0, e._attrs[t.Items[0]] = n
                            }
                        });
                        var i = this._models[n].Attrs[0].Items;
                        if (i && i.length > 1)
                            if (this._attrs[i[0]]) this._attrs[i[0]].value += i[1];
                            else {
                                var a = {};
                                a.value = i[1], a.isFixed = !1, this._attrs[i[0]] = a
                            }
                    }
                    for (var s in this._attrs) {
                        var l = {};
                        l.attrId = Number(s), l.isFixed = this._attrs[s].isFixed, l.value = this._attrs[s].value, t.push(l)
                    }
                    return t.sort(function(e, t) {
                        return e.isFixed && !t.isFixed ? -1 : !e.isFixed && t.isFixed ? 1 : e.attrId - t.attrId
                    }), t
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) u.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = null
                }, i([P(cc.Label)], t.prototype, "GreenButtonLabel", void 0), i([P(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([P(cc.Button)], t.prototype, "GreenButton", void 0), i([P(cc.Button)], t.prototype, "OrangeButton", void 0), i([P(cc.Button)], t.prototype, "InfoButton", void 0), i([P(cc.Label)], t.prototype, "DefaultDesc", void 0), i([P(cc.Node)], t.prototype, "GridLayout", void 0), i([P(cc.Label)], t.prototype, "ResonanceAdditionTitle", void 0), i([P(cc.RichText)], t.prototype, "ResonanceAdditionDesc", void 0), i([P(cc.Node)], t.prototype, "AttrComponentPrefab", void 0), i([P(cc.Node)], t.prototype, "AddonGroup", void 0), i([P(cc.Sprite)], t.prototype, "AddonAttrIcon", void 0), i([P(cc.Label)], t.prototype, "AddonAttrValue", void 0), i([P(cc.Label)], t.prototype, "AutoUnloadLabel", void 0), i([P(cc.Button)], t.prototype, "AutoUnloadButton", void 0), i([P(cc.Label)], t.prototype, "LockLabel", void 0), n = i([w], t)
            }(cc.Component);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent4": "AttrComponent4",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroInfoTabPersonality: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f6ea9+ONURCL5wwN88jwQZS", "HeroInfoTabPersonality");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../Components/ItemComponent"),
            I = e("../../Components/RpcComponent"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../Auxiliary/GameRecord"),
            S = e("../../../Consts/Consts"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SingleNode = null, t.DoubleNode = null, t.SingleStarLabel = null, t.DoubleStar1Label = null, t.DoubleStar2Label = null, t.AttrNodes = [], t.ConsumeNdoe = null, t.TeachBtn = null, t.TeachLbl = null, t.UnlockBtn = null, t.UnlockLbl = null, t.FullStarNode = null, t.LockLbl = null, t._state = 0, t._consumeNodes = [], t._selectData = [], t._oldBp = 0, t._selectPersonalityData = [], t._loadAssts = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.TeachBtn.node.on("click", this.OnClickTeach, this), this.UnlockBtn.node.on("click", this.OnClickUnlock, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_SELECT_PERSONALITYS, this.OnSelectPersonalityCallback, this)
                }, t.prototype.onDisable = function() {
                    this.TeachBtn.node.off("click", this.OnClickTeach, this), this.UnlockBtn.node.off("click", this.OnClickUnlock, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_SELECT_PERSONALITYS, this.OnSelectPersonalityCallback)
                }, t.prototype.Init = function(e, t) {
                    this._hero = e, this._baseUIPanel = t, this._heroInfoModel = y.DataCenter.Instance.GetDataById(u.HeroInfo_Model, e.HeroId), this._state = this.GetPersonalityState(), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.InitUI(), this.SetStarInfo(), this.SetBtnActive(), this.SetAttrInfo(), [4, this.SetConsume()];
                                case 1:
                                    return e.sent(), this.SetRedDot(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.TeachLbl.string = "personality_play".ToUILocale(), this.UnlockLbl.string = "common_unlock".ToUILocale(), this.LockLbl.string = "heroPersonality_up_pvp".ToUILocale(), this.SingleNode.active = !1, this.DoubleNode.active = !1, this.ConsumeNdoe.active = !1, this.FullStarNode.active = !1, this.TeachBtn.node.active = !1, this.UnlockBtn.node.active = !1, this.LockLbl.node.active = !1, this.AttrNodes.forEach(function(e) {
                        e.active = !1
                    }), this._consumeNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetStarInfo = function() {
                    this.SingleNode.active = 2 != this._state, this.DoubleNode.active = 2 == this._state, 2 != this._state ? this.SingleStarLabel.string = 1 == this._state ? "1" : this._heroInfoModel.PersonalityStar.toString() : (this.DoubleStar1Label.string = this._heroInfoModel.PersonalityStar.toString(), this.DoubleStar2Label.string = (this._heroInfoModel.PersonalityStar + 1).toString())
                }, t.prototype.SetAttrInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return 0, t = this.GetMaxStar(), e = 1 == this._state ? 1 : 2 == this._state ? this._heroInfoModel.PersonalityStar + 1 : t, n = g.ConfigDataComponent.Instance.GetConfigById(p.PersonalityStar_Config, e), [4, l.AssetsManager.Instance.LoadAsset(f.BundlePath.CommonAtlas, cc.SpriteAtlas)];
                                case 1:
                                    return o = a.sent(), this.isValid ? (2 != this._state ? n.Attrs.forEach(function(e, t) {
                                        if (i.AttrNodes[t]) {
                                            i.AttrNodes[t].active = !0;
                                            var n = e.Items[0],
                                                o = e.Items[1],
                                                r = g.ConfigDataComponent.Instance.GetConfigById(p.HeroAttribute_Config, n),
                                                a = _.default.GetAttrIcon(n);
                                            cc.find("Icon", i.AttrNodes[t]).getComponent(cc.Sprite).spriteFrame = a, cc.find("Tag", i.AttrNodes[t]).getComponent(cc.Label).string = r.Name.ToUILocale(), 1 == i._state ? (cc.find("ValueNode/Value1", i.AttrNodes[t]).getComponent(cc.Label).string = 1 == r.Format ? "+0" : "+0%", cc.find("ValueNode/Value2", i.AttrNodes[t]).active = !0, cc.find("ValueNode/Value2", i.AttrNodes[t]).getComponent(cc.Label).string = 1 == r.Format ? "+" + o : "+" + Math.round(o / 10) + "%") : 0 == i._state ? (cc.find("ValueNode/Value1", i.AttrNodes[t]).getComponent(cc.Label).string = 1 == r.Format ? "+0" : "+0%", cc.find("ValueNode/Value2", i.AttrNodes[t]).active = !1) : (cc.find("ValueNode/Value1", i.AttrNodes[t]).getComponent(cc.Label).string = 1 == r.Format ? "+" + o : "+" + Math.round(o / 10) + "%", cc.find("ValueNode/Value2", i.AttrNodes[t]).active = !1)
                                        }
                                    }) : (r = g.ConfigDataComponent.Instance.GetConfigById(p.PersonalityStar_Config, this._heroInfoModel.PersonalityStar), n.Attrs.forEach(function(e, t) {
                                        if (i.AttrNodes[t]) {
                                            var n = e.Items[0],
                                                o = e.Items[1],
                                                a = 0;
                                            i.AttrNodes[t].active = !0;
                                            var s = r.Attrs.findIndex(function(e) {
                                                return e.Items[0] == n
                                            });
                                            s > -1 && (o = e.Items[1] - r.Attrs[s].Items[1], a = r.Attrs[s].Items[1]);
                                            var l = g.ConfigDataComponent.Instance.GetConfigById(p.HeroAttribute_Config, n),
                                                c = _.default.GetAttrIcon(n);
                                            cc.find("Icon", i.AttrNodes[t]).getComponent(cc.Sprite).spriteFrame = c, cc.find("Tag", i.AttrNodes[t]).getComponent(cc.Label).string = l.Name.ToUILocale(), cc.find("ValueNode/Value1", i.AttrNodes[t]).getComponent(cc.Label).string = 1 == l.Format ? a.toString() : Math.round(a / 10) + "%", cc.find("ValueNode/Value2", i.AttrNodes[t]).active = !0, cc.find("ValueNode/Value2", i.AttrNodes[t]).getComponent(cc.Label).string = 1 == l.Format ? "+" + o : "+" + Math.round(o / 10) + "%"
                                        }
                                    })), [2]) : (l.AssetsManager.Instance.UnloadAsset(o), [2])
                            }
                        })
                    })
                }, t.prototype.SetBtnActive = function() {
                    this._baseUIPanel.HeroBaseConfig.AdultPictures.length > 0 ? (this.TeachBtn.node.active = 2 == this._state, this.UnlockBtn.node.active = 1 == this._state) : (this.TeachBtn.node.active = !1, this.UnlockBtn.node.active = !1)
                }, t.prototype.SetRedDot = function() {
                    var e = this.ChekcMaterials(!1);
                    3 != this._state ? (v.RedDotManager.Instance.BindNodeByResult(this.TeachBtn.node, v.RedDotManager.Instance.InstanceRedDot.HeroInfoAttrLevelBtn, e), v.RedDotManager.Instance.BindNodeByResult(this.UnlockBtn.node, v.RedDotManager.Instance.InstanceRedDot.HeroInfoPersonalityUnlockBtn, e)) : (v.RedDotManager.Instance.BindNodeByResult(this.TeachBtn.node, v.RedDotManager.Instance.InstanceRedDot.HeroInfoAttrLevelBtn, !1), v.RedDotManager.Instance.BindNodeByResult(this.UnlockBtn.node, v.RedDotManager.Instance.InstanceRedDot.HeroInfoPersonalityUnlockBtn, !1))
                }, t.prototype.SetConsume = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._baseUIPanel.HeroBaseConfig.AdultPictures.length > 0 ? (this.ConsumeNdoe.active = 3 != this._state, this.FullStarNode.active = 3 == this._state, this._selectData = [], this._selectPersonalityData = [], 3 == this._state ? [3, 2] : (e = g.ConfigDataComponent.Instance.GetConfigById(p.PersonalityStar_Config, this._heroInfoModel.PersonalityStar + 1)) ? [4, l.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)] : [3, 2]) : [3, 3];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._loadAssts.push(t), (g.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._hero.HeroId).ElementType == S.HeroElementType.Chaos ? e.ChaosMaterials : e.Materials).forEach(function(e, o) {
                                        if (!n._consumeNodes[o]) {
                                            var r = cc.instantiate(t);
                                            r.parent = n.ConsumeNdoe, r.name = o.toString(), n._consumeNodes[o] = r
                                        }
                                        var i, a, s, l, u = n._consumeNodes[o].getComponent(m.ItemComponent),
                                            p = e.Items[0],
                                            d = e.Items[1],
                                            h = e.Items[2],
                                            f = [];
                                        switch (p) {
                                            case 1:
                                                i = n._hero.HeroId, s = d, a = h, l = n._baseUIPanel.HeroBaseConfig.ElementType;
                                                var g = {
                                                    Type: _.UpStarHeroMaterialType.Hero,
                                                    Id: n._hero.Sid
                                                };
                                                (f = _.default.GetHeroByItemIdAndStar(i, s, [g], !0, !0)).length > 0 && (f = f.slice(0, a)), u.Init({
                                                    ItemId: i,
                                                    StarLevel: s,
                                                    Count: f.length,
                                                    NeedCount: a,
                                                    ElementType: l
                                                }, m.ItemComponentType.HeroCountProgress);
                                                var I = {
                                                    Component: u,
                                                    Type: 1,
                                                    ItemId: i,
                                                    StarLevel: s,
                                                    Element: l,
                                                    NeedCount: h,
                                                    SelectMaterials: f
                                                };
                                                n._selectData.push(I), f.length > 0 ? u.OffIconGray() : u.OnIconGray();
                                                break;
                                            case 2:
                                                i = n.FindPersonalityId(), a = h, l = n._baseUIPanel.HeroBaseConfig.ElementType;
                                                var C = y.DataCenter.Instance.GetItemCount(i);
                                                if (C > 0) {
                                                    var v = y.DataCenter.Instance.GetIntData(c.UserDataKey.CurrentBeDisplacePersonality);
                                                    if (v && i == v && (C -= 1), C > 0)
                                                        for (var b = C < a ? C : a, S = 0; S < b; S++);
                                                }
                                                u.Init({
                                                    ItemId: i,
                                                    Count: a
                                                }, m.ItemComponentType.ItemCommon), u.SetProgressBar(f.length, a);
                                                var w = {
                                                    Component: u,
                                                    Type: 1,
                                                    ItemId: i,
                                                    StarLevel: s,
                                                    Element: l,
                                                    NeedCount: h,
                                                    SelectMaterials: f
                                                };
                                                n._selectPersonalityData.push(w), f.length > 0 ? u.OffIconGray() : u.OnIconGray();
                                                break;
                                            case 3:
                                                i = d, a = h, u.Init({
                                                    ItemId: i,
                                                    Count: a
                                                }, m.ItemComponentType.ItemCommon);
                                                var P = y.DataCenter.Instance.IsItemEnough(i, a) ? a : y.DataCenter.Instance.GetItemCount(i);
                                                u.SetProgressBar(P, a), P > 0 ? u.OffIconGray() : u.OnIconGray()
                                        }
                                        n._consumeNodes[o].active = !0
                                    }), o.label = 2;
                                case 2:
                                    return [3, 4];
                                case 3:
                                    this.ConsumeNdoe.active = !1, this.FullStarNode.active = !1, this.LockLbl.node.active = !0, o.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.FindPersonalityId = function() {
                    var e = 0,
                        t = g.ConfigDataComponent.Instance.GetConfig(p.ItemPersonality_Config);
                    for (var n in t)
                        if (t[n].HeroId == this._hero.HeroId) {
                            e = t[n].Id;
                            break
                        } return e
                }, t.prototype.OnClickTeach = function() {
                    this.RequestFunc(1), this._oldBp = this._hero.Power
                }, t.prototype.OnClickUnlock = function() {
                    this.RequestFunc(2), this._oldBp = this._hero.Power
                }, t.prototype.RequestFunc = function(e) {
                    var t = this;
                    if (this.ChekcMaterials(!0)) {
                        var n = new u.Req_Personality_UpgradeStar,
                            o = [],
                            r = g.ConfigDataComponent.Instance.GetConfigById(p.PersonalityStar_Config, this._heroInfoModel.PersonalityStar + 1);
                        (g.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._hero.HeroId).ElementType == S.HeroElementType.Chaos ? r.ChaosMaterials : r.Materials).forEach(function(e, n) {
                            if (t._selectData[n]) {
                                var r = t._selectData[n].SelectMaterials;
                                o.push({
                                    Items: r
                                })
                            } else if (t._selectPersonalityData[n - t._selectData.length]) {
                                var i = [];
                                (r = t._selectPersonalityData[n - t._selectData.length].SelectMaterials).forEach(function(e) {
                                    e.Id == t._selectPersonalityData[n - t._selectData.length].ItemId ? i.push(0) : i.push(-e)
                                }), o.push({
                                    Items: i
                                })
                            } else r = {}, o.push({
                                Items: r
                            })
                        }), n.HeroId = this._hero.HeroId, n.Materials = o, I.RpcComponent.Instance.Call(n, function(t) {
                            for (var n = [], r = 0; r < o.length; r++) o[r].Items instanceof Array && o[r].Items.length > 0 && o[r].Items.forEach(function(e) {
                                n.push(e)
                            });
                            this._heroInfoModel = y.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._hero.HeroId), this._baseUIPanel.BindPersonalityToggle(), this.SetBtnActive(), this.SetNewPersonality(), this._baseUIPanel.RefreshHeroArr(n);
                            var i = y.DataCenter.Instance.GetDataById(u.UserHero_Model, this._hero.Sid);
                            h.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattlePowerChangePanel.Path, this._oldBp, i.Power), h.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.PersonalityTipSuccessPanel.Path, this._hero.HeroId, e), t.Rewards.length > 0 && l.UIManager.Instance.ShowUIPanelByQueue(f.PanelConfig.DisplayRewardsPanel.Path, t.Rewards)
                        }.bind(this))
                    }
                }, t.prototype.SetNewPersonality = function() {
                    var e = this;
                    this._heroInfoModel = y.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._hero.HeroId);
                    var t = !1,
                        n = 0;
                    if (this._baseUIPanel.HeroBaseConfig.AdultPictures.forEach(function(o) {
                            o.Items[1] == e._heroInfoModel.PersonalityStar && (t = !0, n = o.Items[0])
                        }), t) {
                        var o = b.default.GetItem(b.GameRecordDefine.NewPersonality);
                        if (o)(i = JSON.parse(o))[this._hero.HeroId] && i[this._hero.HeroId].length > 0 && (-1 == (r = i[this._hero.HeroId]).findIndex(function(e) {
                            return e == n
                        }) && r.push(n), i[this._hero.HeroId] = r, b.default.SetItem(b.GameRecordDefine.NewPersonality, JSON.stringify(i)));
                        else {
                            var r, i = {};
                            (r = []).push(n), i[this._hero.HeroId] = r, b.default.SetItem(b.GameRecordDefine.NewPersonality, JSON.stringify(i))
                        }
                    }
                }, t.prototype.GetPersonalityState = function() {
                    var e = 0,
                        t = this._heroInfoModel.PersonalityStar;
                    return this._baseUIPanel.HeroBaseConfig.AdultPictures && this._baseUIPanel.HeroBaseConfig.AdultPictures.length > 0 && (e = t ? t < this.GetMaxStar() ? 2 : 3 : 1), e
                }, t.prototype.CheckNewPersonality = function() {
                    var e = !1,
                        t = this._heroInfoModel.PersonalityStar || 0;
                    return this._baseUIPanel.HeroBaseConfig.AdultPictures && this._baseUIPanel.HeroBaseConfig.AdultPictures.length > 0 && this._baseUIPanel.HeroBaseConfig.AdultPictures.forEach(function(n) {
                        n.Items[1] - t == 1 && (e = !0)
                    }), e
                }, t.prototype.GetMaxStar = function() {
                    var e = 0,
                        t = g.ConfigDataComponent.Instance.GetConfig(p.PersonalityStar_Config);
                    for (var n in t) e = Math.max(e, t[n].Id);
                    return e
                }, t.prototype.OnClickHeroMaterial = function(e, t) {
                    if (-1 != this.ConsumeNdoe.children.indexOf(t))
                        if (this._selectData[e]) {
                            this._clickMaterialIndex = e, l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial);
                            var n = this.GetHeroPools(e),
                                o = [(r = this._selectData[e]).Type, this._hero.HeroId];
                            h.UIManager.Instance.ShowUIPanel(f.PanelConfig.SelectMaterialHeroPanel.Path, n, r.SelectMaterials, r.NeedCount, void 0, void 0, r.StarLevel, o)
                        } else if (this._selectPersonalityData[e - this._selectData.length]) {
                        this._clickMaterialIndexPersonality = e - this._selectData.length, l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial);
                        var r = this._selectPersonalityData[e - this._selectData.length],
                            i = {};
                        i.Element = r.Element, i.ItemId = r.ItemId, i.ItemCount = r.NeedCount, i.Type = this._state, i.SelectMaterials = r.SelectMaterials, h.UIManager.Instance.ShowUIPanel(f.PanelConfig.SelectMaterialPersonalityPanel.Path, i)
                    } else C.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.OnSelectCallback = function(e) {
                    if (this._selectData[this._clickMaterialIndex]) {
                        l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial, this);
                        var t = this._selectData[this._clickMaterialIndex];
                        t.SelectMaterials = e, t.Component.SetProgressBar(e.length, t.NeedCount), e.length > 0 ? t.Component.OffIconGray() : t.Component.OnIconGray()
                    }
                }, t.prototype.OnSelectPersonalityCallback = function(e) {
                    if (this._selectPersonalityData[this._clickMaterialIndexPersonality]) {
                        l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial, this);
                        var t = this._selectPersonalityData[this._clickMaterialIndexPersonality];
                        t.Component.SetProgressBar(e.length, t.NeedCount), e.length > 0 ? t.Component.OffIconGray() : t.Component.OnIconGray()
                    }
                }, t.prototype.GetHeroPools = function(e) {
                    this._selectData[e];
                    for (var t = [], n = 0; n < this._selectData.length; n++)
                        if (n != e)
                            for (var o = this._selectData[n].SelectMaterials, r = 0; r < o.length; r++) t.push(o[r].Id);
                    t.push(this._hero.Sid)
                }, t.prototype.ChekcMaterials = function(e) {
                    var t = this,
                        n = !0,
                        o = g.ConfigDataComponent.Instance.GetConfigById(p.PersonalityStar_Config, this._heroInfoModel.PersonalityStar + 1);
                    return o && (g.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._hero.HeroId).ElementType == S.HeroElementType.Chaos ? o.ChaosMaterials : o.Materials).forEach(function(o, r) {
                        if (t._selectData[r]) {
                            var i = t._selectData[r].SelectMaterials,
                                a = o.Items[2];
                            i.length < a && (n = !1, e && C.UIUtlity.ShowFloatingHint("personality_hero_noEnough".ToUILocale()))
                        } else if (t._selectPersonalityData[r - t._selectData.length]) i = t._selectPersonalityData[r - t._selectData.length].SelectMaterials, a = o.Items[2], i.length < a && (n = !1, e && C.UIUtlity.ShowFloatingHint("personality_not_enough".ToUILocale()));
                        else {
                            var s = 0;
                            a = 0, 3 == o.Items[0] && (s = o.Items[1], a = o.Items[2]), y.DataCenter.Instance.IsItemEnough(s, a) || (n = !1, e && C.UIUtlity.ShowFloatingHint("arena_notEnoughTickets".ToUILocale().Fmt(s.ToItemName())))
                        }
                    }), n
                }, t.prototype.onDestroy = function() {
                    this._loadAssts.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([A(cc.Node)], t.prototype, "SingleNode", void 0), i([A(cc.Node)], t.prototype, "DoubleNode", void 0), i([A(cc.Label)], t.prototype, "SingleStarLabel", void 0), i([A(cc.Label)], t.prototype, "DoubleStar1Label", void 0), i([A(cc.Label)], t.prototype, "DoubleStar2Label", void 0), i([A(cc.Node)], t.prototype, "AttrNodes", void 0), i([A(cc.Node)], t.prototype, "ConsumeNdoe", void 0), i([A(cc.Button)], t.prototype, "TeachBtn", void 0), i([A(cc.Label)], t.prototype, "TeachLbl", void 0), i([A(cc.Button)], t.prototype, "UnlockBtn", void 0), i([A(cc.Label)], t.prototype, "UnlockLbl", void 0), i([A(cc.Node)], t.prototype, "FullStarNode", void 0), i([A(cc.Label)], t.prototype, "LockLbl", void 0), i([P], t)
            }(cc.Component);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroInfoTabStar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5259crjH5BFy7VIqDb7wcrx", "HeroInfoTabStar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../GamePlay/Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Components/SkillItemComponent"),
            I = e("../Components/LevelComponent"),
            _ = e("../Components/ItemComponent"),
            C = e("../Components/CurrencyBarItem"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("./HeroCollectionHandbookPanel"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CurLevelComponent = null, t.Arrow = null, t.NextLevelComponent = null, t.StarInfoContainer = null, t.SkillMode = null, t.TextMode = null, t.CurSkillItem = null, t.NextSkillItem = null, t.SkillMode_LevelDesc = null, t.SkillMode_CurMaxLevel = null, t.SkillMode_NextMaxLevel = null, t.SkillMode_AttrDesc = null, t.SkillMode_AttrValue = null, t.TextMode_LevelDesc = null, t.TextMode_CurMaxLevel = null, t.TextMode_NextMaxLevel = null, t.TextMode_SkillDesc = null, t.TextMode_CurSkillLevel = null, t.TextMode_NextSkillLevel = null, t.TextMode_AttrDesc = null, t.TextMode_AttrValue = null, t.TextMode_Skill_Layout = null, t.TextMode_Node4 = null, t.TextMode_Luckycharm_Unlock = null, t.HeroItemContainerBg = null, t.HeroItemContainer = null, t.ButtonContainer = null, t.CurencyBars = [], t.UnLockContainer = null, t.UnLockTitle = null, t.UnlockRichText = [], t.TipsContainer = null, t.TipLabel = null, t.UpGradeBtn = null, t.UpGradeBtnLabel = null, t.MaxStarTip = null, t.MaxStarHintNode = null, t.MaxStarHint = null, t.SublimingButton = null, t.SublimingButtonLabel = null, t._isInitial = !1, t._isReachMaxStarLevel = !1, t.CurLevelComponentOffset = -150, t._notEnoughItemId = -1, t._needCount = 0, t.MaxHeroStar = 12, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback)
                }, t.prototype.Init = function(e, t) {
                    this._isInitial || (this.InitUI(), this._isInitial = !0), this._hero = e, this._baseUIPanel = t, this._hero.StarLevel >= this._baseUIPanel.HeroBaseConfig.MaxStarLevel ? (this._isReachMaxStarLevel = !0, this._nextStarConfig = null) : (this._isReachMaxStarLevel = !1, this._nextStarConfig = h.ConfigDataComponent.Instance.GetConfigById(f.HeroStar_Config, this._hero.StarLevel + 1)), this.ConfigStarLevel(), this.ConfigStarUpInfo(), this.ConfigHeroItems(), this.ConfigOprationContainer(), this.ConfigSublimingButton(), this.ConfigMaxStarHint(), l.UIManager.Instance.GetUIPanel(d.PanelConfig.SelectMaterialHeroPanel.Path) && this.OnClickHeroMaterial(this._openIndex, this._openNode)
                }, t.prototype.InitUI = function() {
                    this.SkillMode_LevelDesc.string = "level_limit".ToUILocale(), this.TextMode_LevelDesc.string = "level_limit".ToUILocale(), this.SkillMode_AttrDesc.string = "attr_growUp_hint".ToUILocale(), this.TextMode_AttrDesc.string = "attr_growUp_hint".ToUILocale(), this.TextMode_SkillDesc.string = "all_skills".ToUILocale(), this.TipLabel.string = "heroInfo_starUp_tip".ToUILocale(), this.UnLockTitle.string = "unlock_star_limit".ToUILocale(), this.SublimingButtonLabel.string = "heroInfo_star_gotoSubliming".ToUILocale(), this.UpGradeBtn.node.on("click", this.OnUpGrade, this), this.SublimingButton.node.on("click", this.OnSublimingButtonClick, this), this.UpGradeBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.ConfigStarLevel = function() {
                    var e = I.LevelComponent.GetLevelShowType(this._baseUIPanel.HeroBaseConfig.CoreHero, this._baseUIPanel.HeroBaseConfig.ElementType);
                    this._isReachMaxStarLevel ? (this.Arrow.active = !1, this.CurLevelComponent.node.setPosition(0, 0), this.NextLevelComponent.node.active = !1, this.CurLevelComponent.Init(this._hero.StarLevel, 0, 0, e)) : (this.Arrow.active = !0, this.CurLevelComponent.node.setPosition(this.CurLevelComponentOffset, 0), this.NextLevelComponent.node.active = !0, this.CurLevelComponent.Init(this._hero.StarLevel, 0, 0, e), this.NextLevelComponent.Init(this._hero.StarLevel + 1, 0, 0, e))
                }, t.prototype.ConfigStarUpInfo = function() {
                    for (var e, t, n = [], o = g.default.GetHeroSkills(this._hero.HeroId, this._hero.Level, this._hero.StarLevel), r = g.default.GetHeroSkills(this._hero.HeroId, this._hero.Level, this._hero.StarLevel + 1), i = o.length, a = 0; a < i; a++) {
                        var s = o[a];
                        r[a].Level > s.Level && n.push(a)
                    }
                    if (this._nextStarConfig ? (e = (this._nextStarConfig.AttackAddon - this._baseUIPanel.CurrentStarConfig.AttackAddon) / 10, t = (this._nextStarConfig.HpAddon - this._baseUIPanel.CurrentStarConfig.HpAddon) / 10) : (e = this._baseUIPanel.CurrentStarConfig.AttackAddon / 10, t = this._baseUIPanel.CurrentStarConfig.HpAddon / 10), 1 == n.length) {
                        this.SkillMode.active = !0, this.TextMode.active = !1;
                        var l = n[0];
                        this.CurSkillItem.Init(o[l].SkillId, o[l].Level, this._hero.HeroId, this._hero.Level), this.NextSkillItem.Init(r[l].SkillId, r[l].Level, this._hero.HeroId, this._hero.Level), this.SkillMode_CurMaxLevel.string = this._baseUIPanel.CurrentStarConfig.MaxLevel.toString(), this._nextStarConfig ? (this.SkillMode_NextMaxLevel.node.active = !0, this.SkillMode_NextMaxLevel.string = this._nextStarConfig.MaxLevel.toString()) : this.SkillMode_NextMaxLevel.node.active = !1, this.SkillMode_AttrValue.string = e + "% / " + t + "%"
                    } else this.SkillMode.active = !1, this.TextMode.active = !0, 0 == n.length && this._nextStarConfig ? this.TextMode_Skill_Layout.active = !1 : (this.TextMode_Skill_Layout.active = !0, this.TextMode_CurSkillLevel.string = "Lv." + o[0].Level, this._nextStarConfig ? (this.TextMode_CurSkillLevel.node.x = 18, this.TextMode_NextSkillLevel.node.active = !0, this.TextMode_NextSkillLevel.string = "Lv." + r[0].Level) : (this.TextMode_CurSkillLevel.node.x = 174, this.TextMode_NextSkillLevel.node.active = !1)), this.TextMode_CurMaxLevel.string = this._baseUIPanel.CurrentStarConfig.MaxLevel.toString(), this._nextStarConfig ? (this.TextMode_CurMaxLevel.node.x = 18, this.TextMode_NextMaxLevel.node.active = !0, this.TextMode_NextMaxLevel.string = this._nextStarConfig.MaxLevel.toString()) : (this.TextMode_CurMaxLevel.node.x = 174, this.TextMode_NextMaxLevel.node.active = !1), this.TextMode_AttrValue.string = e + "% / " + t + "%";
                    this._baseUIPanel.HeroBaseConfig.MaxStarLevel != this.MaxHeroStar || 10 != this._hero.StarLevel && 11 != this._hero.StarLevel ? this.TextMode_Node4.active = !1 : (this.TextMode_Node4.active = !0, this.TextMode_Luckycharm_Unlock.string = "heroStar_unlock_luckycharm_skill".ToUILocale().Fmt(this._hero.StarLevel + 1))
                }, t.prototype.ConfigHeroItems = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, u, p, h, f, y, m, I, C, v, b;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._isReachMaxStarLevel ? (this.HeroItemContainerBg.active = !1, [2]) : (this.HeroItemContainerBg.active = !0, this._selectData = [], null != this._itemPrefab ? [3, 2] : (e = this, [4, this._baseUIPanel.LoadDynamicAsset(d.BundlePath.ItemComponent)]));
                                case 1:
                                    e._itemPrefab = s.sent(), s.label = 2;
                                case 2:
                                    for (t = this._baseUIPanel.HeroBaseConfig.ElementType == c.HeroElementType.Chaos ? this._nextStarConfig.ChaosHeroMaterials : this._nextStarConfig.HeroMaterials, n = [], b = 0; b < t.length; b++) {
                                        switch (o = t[b].Items, r = o[0], i = o[1], a = o[2], null == (l = this.HeroItemContainer.children[b]) && (l = cc.instantiate(this._itemPrefab)).setParent(this.HeroItemContainer), l.active = !0, l.name = b.toString(), u = l.getComponent(_.ItemComponent), p = void 0, h = this._baseUIPanel.HeroBaseConfig.ElementType, f = void 0, y = [], m = void 0, r) {
                                            case 1:
                                                p = this._hero.HeroId, n.push({
                                                    Type: g.UpStarHeroMaterialType.Hero,
                                                    Id: this._hero.Sid
                                                }), f = g.default.GetHeroByItemIdAndStar(p, i, n, !0), m = p.ToHeroTitle();
                                                break;
                                            case 2:
                                                p = this._baseUIPanel.HeroBaseConfig.BondHero, f = g.default.GetHeroByItemIdAndStar(p, i, n, !0), m = p.ToHeroTitle();
                                                break;
                                            case 3:
                                                p = 0, h = this._baseUIPanel.HeroBaseConfig.ElementType, f = g.default.GetHeroByStarAndElement(i, h, h, n, !0), m = "heroSelect_by_element".ToUILocale().Fmt(i, h.ToHeroElementName());
                                                break;
                                            case 4:
                                                h = 0, p = 0, f = g.default.GetHeroByStarAndElement(i, c.HeroElementType.All, h, n, !0), m = "heroSlect_by_star".ToUILocale().Fmt(i);
                                                break;
                                            case 5:
                                                p = this._hero.HeroId, n.push({
                                                    Type: g.UpStarHeroMaterialType.Hero,
                                                    Id: this._hero.Sid
                                                }), f = g.default.GetHeroByItemIdAndStar(p, i, n, !0, !0), m = p.ToHeroTitle()
                                        }
                                        for (I = 0; I < f.length && (C = f[I], y.push(C), n.push(C), !(y.length >= a)); I++);
                                        u.Init({
                                            ItemId: p,
                                            StarLevel: i,
                                            Count: y.length,
                                            NeedCount: a,
                                            ElementType: h
                                        }, _.ItemComponentType.HeroCountProgress), u.SetRollingLabel(m), v = {
                                            Component: u,
                                            Type: r,
                                            ItemId: p,
                                            StarLevel: i,
                                            Element: h,
                                            NeedCount: a,
                                            SelectMaterials: y
                                        }, this._selectData.push(v), y.length > 0 ? u.OffIconGray() : u.OnIconGray(), this.BindRedDot(b)
                                    }
                                    for (b = t.length; b < this.HeroItemContainer.childrenCount; b++) this.HeroItemContainer.children[b].active = !1;
                                    return this.RefreshMaterialItemState(), [2]
                            }
                        })
                    })
                }, t.prototype.ConfigOprationContainer = function() {
                    if (this._isReachMaxStarLevel) return this.ButtonContainer.active = !1, void(this.UnLockContainer.active = !1);
                    this.IsUnlock() ? this.ConfigButtonContainer() : this.ConfigUnlockContainer()
                }, t.prototype.IsUnlock = function() {
                    var e = this._nextStarConfig.UnLockStarLimit;
                    if (0 == e.length) return !0;
                    this._unlockInfo = [];
                    for (var t = 0; t < e.length; t++) {
                        var n = e[t].Items,
                            o = n[0],
                            r = void 0;
                        switch (o) {
                            case 1:
                                var i = h.DataCenter.Instance.GetIntData(v.UserDataKey.PlayerLevel);
                                i < n[1] && ((r = []).push(o, i, n[1]), this._unlockInfo.push(r));
                                break;
                            case 2:
                                break;
                            case 3:
                                var a = n[1];
                                g.default.GetHeroCountByLevel(n[2]) < a && ((r = []).push(o, a, n[2]), this._unlockInfo.push(r))
                        }
                    }
                    return !(this._unlockInfo.length > 0)
                }, t.prototype.ConfigButtonContainer = function() {
                    this.ButtonContainer.active = !0, this.UnLockContainer.active = !1;
                    var e = this._nextStarConfig.ItemMaterials;
                    this._notEnoughItemId = -1, this._needCount = 0;
                    for (var t = function(t) {
                            var o = e[t].Items,
                                r = o[0],
                                i = o[1];
                            n.CurencyBars[t].node.active = !0, n.CurencyBars[t].Init(r, !1, void 0, i), n.CurencyBars[t].SetClickCallBack(function() {
                                g.default.ShowItemGetWay(r, {
                                    ShowProgressBar: !0,
                                    ProgressHint: "needCount".ToUILocale(),
                                    MaxCount: i
                                })
                            }), h.DataCenter.Instance.GetItemCount(r) < i && -1 == n._notEnoughItemId && (n._notEnoughItemId = r, n._needCount = i)
                        }, n = this, o = 0; o < e.length; o++) t(o);
                    for (o = e.length; o < this.CurencyBars.length; o++) this.CurencyBars[o].node.active = !1
                }, t.prototype.ConfigUnlockContainer = function() {
                    this.ButtonContainer.active = !1, this.UnLockContainer.active = !0;
                    for (var e = 0; e < this._unlockInfo.length; e++) {
                        var t = this._unlockInfo[e],
                            n = t[0];
                        this.UnlockRichText[e].string = ("unlock_star_" + n).ToUILocale().Fmt(t[1], t[2]), this.UnlockRichText[e].node.active = !0
                    }
                    for (e = this._unlockInfo.length; e < this.UnlockRichText.length; e++) this.UnlockRichText[e].node.active = !1
                }, t.prototype.OnClickHeroMaterial = function(e, t) {
                    if (-1 != this.HeroItemContainer.children.indexOf(t)) {
                        this._openIndex = e, this._openNode = t, this._clickMaterialIndex = e;
                        var n = this.GetHeroPools(e),
                            o = this._selectData[e],
                            r = [o.Type, this._hero.HeroId];
                        y.UIManager.Instance.ShowUIPanel(d.PanelConfig.SelectMaterialHeroPanel.Path, n, o.SelectMaterials, o.NeedCount, void 0, void 0, o.StarLevel, r)
                    }
                }, t.prototype.OnSelectCallback = function(e) {
                    var t = this._selectData[this._clickMaterialIndex];
                    t.SelectMaterials = e, t.Component.SetProgressBar(e.length, t.NeedCount), e.length > 0 ? t.Component.OffIconGray() : t.Component.OnIconGray(), this.CheckOtherSlotMaterials(this._clickMaterialIndex), this.BindRedDot(this._clickMaterialIndex), this.RefreshMaterialItemState()
                }, t.prototype.GetHeroPools = function(e, t) {
                    for (var n = this._selectData[e], o = [], r = 0; r < this._selectData.length; r++)
                        if (r != e)
                            for (var i = this._selectData[r].SelectMaterials, a = 0; a < i.length; a++) o.push(i[a]);
                    return o.push({
                        Type: g.UpStarHeroMaterialType.Hero,
                        Id: this._hero.Sid
                    }), g.default.GetHeroUpStarPools(n.Type, n.ItemId, n.StarLevel, n.Element, o, t)
                }, t.prototype.OnUpGrade = function() {
                    if (-1 != this._notEnoughItemId) return b.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughItemId.ToItemName())), void g.default.ShowItemGetWay(this._notEnoughItemId, {
                        ShowProgressBar: !0,
                        ProgressHint: "needCount".ToUILocale(),
                        MaxCount: this._needCount
                    });
                    for (var e = -1, t = 0; t < this._selectData.length; t++) {
                        var n = this._selectData[t];
                        if (n.SelectMaterials.length < n.NeedCount) {
                            e = t;
                            break
                        }
                    }
                    if (e > -1) {
                        b.UIUtlity.ShowFloatingHint("heroPalace_replace_material_not_enough".ToUILocale());
                        var o = this._selectData[e],
                            r = g.default.Instance.GetHeroGetWayItemId(o.Type, o.ItemId, o.Element, o.StarLevel);
                        r && y.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemGetWayPanel.Path, r)
                    } else this._hero.StarLevel > 4 ? l.UIManager.Instance.ShowUIPanel(d.PanelConfig.UpStarHeroMaterialsPanel.Path, this._selectData, this.RequestUpgrade.bind(this)) : this.RequestUpgrade()
                }, t.prototype.RequestUpgrade = function() {
                    var e = new u.Req_Hero_UpgradeStar;
                    e.Sid = this._hero.Sid;
                    for (var t = [], n = [], o = 0; o < this._selectData.length; o++) {
                        t[o] = new u.IntArray;
                        for (var r = [], i = 0; i < this._selectData[o].SelectMaterials.length; i++) {
                            var a = this._selectData[o].SelectMaterials[i];
                            if (a.Type == g.UpStarHeroMaterialType.Compose) {
                                e.UpgradeStarHeroSids.push(a.Id);
                                for (var s = [], l = 0; l < a.Param.length; l++) s.push(a.Param[l].Id);
                                n.push({
                                    Items: s
                                })
                            }
                            r.push(a.Id)
                        }
                        t[o].Items = r
                    }
                    e.Materials = t, e.UpgradeStarHeroMaterials = n, h.RpcComponent.Instance.Call(e, this.UpgradeStarSucess.bind(this))
                }, t.prototype.UpgradeStarSucess = function(e) {
                    for (var t = [], n = 0; n < this._selectData.length; n++)
                        for (var o = this._selectData[n].SelectMaterials, r = 0; r < o.length; r++) o[r].Type == g.UpStarHeroMaterialType.Hero && t.push(o[r].Id);
                    y.UIManager.Instance.ShowUIPanelByQueue(d.PanelConfig.UpStarSucessPanel.Path, this._hero), e.Rewards.length > 0 && y.UIManager.Instance.ShowUIPanelByQueue(d.PanelConfig.DisplayRewardsPanel.Path, e.Rewards);
                    var i = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._hero.Sid);
                    y.UIManager.Instance.ShowUIPanel(d.PanelConfig.BattlePowerChangePanel.Path, this._hero.Power, i.Power), this.node.active && (this._baseUIPanel.RefreshHeroStarMode(this._hero.Power, t), this._baseUIPanel.BindStarToggle())
                }, t.prototype.ConfigSublimingButton = function() {
                    if (this._isReachMaxStarLevel) {
                        var e = g.default.Instance.IsGameModuleOpen(c.GameModuleType.HeroHandbookSubliming),
                            t = g.default.Instance.IsGameModuleUnlock(c.GameModuleType.HeroHandbookSubliming);
                        if (e && t[0] && this._baseUIPanel.HeroBaseConfig.Sublime && this._baseUIPanel.HeroBaseConfig.Sublime[0]) return void(this.SublimingButton.node.active = !0)
                    }
                    this.SublimingButton.node.active = !1
                }, t.prototype.ConfigMaxStarHint = function() {
                    this.MaxStarTip.node.active = !1, this._isReachMaxStarLevel ? (this.TipsContainer.active = !1, this.SublimingButton.node.active ? (this.MaxStarTip.node.active = !0, this.MaxStarHintNode.active = !1, this.MaxStarTip.string = "starLevel_limit_reach".ToUILocale()) : (this.MaxStarHintNode.active = !0, this.MaxStarHint.string = "starLevel_limit_reach".ToUILocale())) : (this.MaxStarHintNode.active = !1, this.TipsContainer.active = !0)
                }, t.prototype.OnSublimingButtonClick = function() {
                    y.UIManager.Instance.ShowUIPanel(d.PanelConfig.HeroCollectionHandbookPanel.Path, S.PanelType.Subliming, this._baseUIPanel.HeroBaseConfig.Id)
                }, t.prototype.BindRedDot = function(e) {
                    var t = this._selectData[e];
                    t.SelectMaterials.length >= t.NeedCount ? t.Component.SetRightTopIcon(!1) : this.GetHeroPools(e, !0).length >= t.NeedCount ? t.Component.SetRightTopIcon(!0, b.UIUtlity.COMMON_ATLAS5.getSpriteFrame("smallBtn_change2"), 70, 70) : t.Component.SetRightTopIcon(!1)
                }, t.prototype.CheckOtherSlotMaterials = function(e) {
                    for (var t = 0; t < this._selectData.length; t++)
                        if (t != e) {
                            for (var n = this.GetHeroPools(t), o = this._selectData[t], r = o.SelectMaterials.length - 1; r >= 0; r--) - 1 == this.GetUpStarMaterialIndex(o.SelectMaterials[r], n) && o.SelectMaterials.splice(r, 1);
                            o.Component.SetProgressBar(o.SelectMaterials.length, o.NeedCount), o.SelectMaterials.length > 0 ? o.Component.OffIconGray() : o.Component.OnIconGray()
                        }
                }, t.prototype.GetUpStarMaterialIndex = function(e, t) {
                    for (var n = 0; n < t.length; n++) {
                        var o = t[n];
                        if (e.Type == o.Type && e.Id == o.Id) return n
                    }
                    return -1
                }, t.prototype.RefreshMaterialItemState = function() {
                    for (var e = 0; e < this._selectData.length; e++) {
                        for (var t = void 0, n = this._selectData[e].Component, o = 0; o < this._selectData[e].SelectMaterials.length; o++)
                            if (this._selectData[e].SelectMaterials[o].Type == g.UpStarHeroMaterialType.Compose) {
                                t = !0;
                                break
                            } if (t) {
                            var r = b.UIUtlity.COMMON_ATLAS5.getSpriteFrame("infoBg34"),
                                i = new cc.Color(255, 230, 133);
                            n.SetCustomLabel("willBeComposed".ToUILocale(), {
                                horizontalAlign: cc.Label.HorizontalAlign.CENTER,
                                y: 15,
                                color: i,
                                OutlineWidth: 4,
                                showBg: !0,
                                BgWidth: 260,
                                BgHeight: 70,
                                BgSpriteFrame: r
                            })
                        } else n.HideCustomLabel()
                    }
                }, i([A(I.LevelComponent)], t.prototype, "CurLevelComponent", void 0), i([A(cc.Node)], t.prototype, "Arrow", void 0), i([A(I.LevelComponent)], t.prototype, "NextLevelComponent", void 0), i([A(cc.Node)], t.prototype, "StarInfoContainer", void 0), i([A(cc.Node)], t.prototype, "SkillMode", void 0), i([A(cc.Node)], t.prototype, "TextMode", void 0), i([A(m.default)], t.prototype, "CurSkillItem", void 0), i([A(m.default)], t.prototype, "NextSkillItem", void 0), i([A(cc.Label)], t.prototype, "SkillMode_LevelDesc", void 0), i([A(cc.Label)], t.prototype, "SkillMode_CurMaxLevel", void 0), i([A(cc.Label)], t.prototype, "SkillMode_NextMaxLevel", void 0), i([A(cc.Label)], t.prototype, "SkillMode_AttrDesc", void 0), i([A(cc.Label)], t.prototype, "SkillMode_AttrValue", void 0), i([A(cc.Label)], t.prototype, "TextMode_LevelDesc", void 0), i([A(cc.Label)], t.prototype, "TextMode_CurMaxLevel", void 0), i([A(cc.Label)], t.prototype, "TextMode_NextMaxLevel", void 0), i([A(cc.Label)], t.prototype, "TextMode_SkillDesc", void 0), i([A(cc.Label)], t.prototype, "TextMode_CurSkillLevel", void 0), i([A(cc.Label)], t.prototype, "TextMode_NextSkillLevel", void 0), i([A(cc.Label)], t.prototype, "TextMode_AttrDesc", void 0), i([A(cc.Label)], t.prototype, "TextMode_AttrValue", void 0), i([A(cc.Node)], t.prototype, "TextMode_Skill_Layout", void 0), i([A(cc.Node)], t.prototype, "TextMode_Node4", void 0), i([A(cc.Label)], t.prototype, "TextMode_Luckycharm_Unlock", void 0), i([A(cc.Node)], t.prototype, "HeroItemContainerBg", void 0), i([A(cc.Node)], t.prototype, "HeroItemContainer", void 0), i([A(cc.Node)], t.prototype, "ButtonContainer", void 0), i([A(C.default)], t.prototype, "CurencyBars", void 0), i([A(cc.Node)], t.prototype, "UnLockContainer", void 0), i([A(cc.Label)], t.prototype, "UnLockTitle", void 0), i([A(cc.RichText)], t.prototype, "UnlockRichText", void 0), i([A(cc.Node)], t.prototype, "TipsContainer", void 0), i([A(cc.Label)], t.prototype, "TipLabel", void 0), i([A(cc.Button)], t.prototype, "UpGradeBtn", void 0), i([A(cc.Label)], t.prototype, "UpGradeBtnLabel", void 0), i([A(cc.Label)], t.prototype, "MaxStarTip", void 0), i([A(cc.Node)], t.prototype, "MaxStarHintNode", void 0), i([A(cc.Label)], t.prototype, "MaxStarHint", void 0), i([A(cc.Button)], t.prototype, "SublimingButton", void 0), i([A(cc.Label)], t.prototype, "SublimingButtonLabel", void 0), i([P], t)
            }(cc.Component);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./HeroCollectionHandbookPanel": "HeroCollectionHandbookPanel"
    }],
    HeroInfoTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "db38axUjHlOf4UmGuJ8RZzE", "HeroInfoTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Components/TipsLocationComponent"),
            l = e("../../../ShareConsts/EnumType"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.PopUp, !1), t.Mask = null, t.TipsLocationComponent = null, t.TipNode = null, t.ElementHint = null, t.CareerHint = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Mask.on(cc.Node.EventType.TOUCH_END, this.OnClose, this), this.Mask._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._element = n.Element, this._career = n.Career, this._text = n.Text, this._clickNode = t[1]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function() {
                    var t = this;
                    e.prototype.DisPlay.call(this), this.ElementHint.active = !1, this.CareerHint.active = !1, this._element ? this.ConfigElementNode() : this.ConfigCarrerNode(), this.TipNode.opacity = 0, setTimeout(function() {
                        t.isValid && (t.TipsLocationComponent.RepositionPanel(t._clickNode), t.TipNode.opacity = 255)
                    }, 1e3 * cc.director.getDeltaTime())
                }, t.prototype.ConfigElementNode = function() {
                    this.ElementHint.active = !0;
                    var e = cc.find("1", this.ElementHint),
                        t = cc.find("2", this.ElementHint);
                    this._element == l.HeroElementType.Chaos ? (this.ElementHint.active = !1, this.CareerHint.active = !0, cc.find("Info", this.CareerHint).getComponent(cc.Label).string = "chaos_element_restraint".ToUILocale()) : (e.active = !0, t.active = !0), cc.find("hint", this.ElementHint).getComponent(cc.Label).string = "hero_element_forbearance".ToUILocale()
                }, t.prototype.ConfigCarrerNode = function() {
                    this.CareerHint.active = !0;
                    var e = cc.find("Info", this.CareerHint).getComponent(cc.Label);
                    this._career ? e.string = ("hero_profession_" + this._career).ToUILocale() : e.string = this._text
                }, t.prototype.OnClose = function() {
                    this.Close()
                }, i([p(cc.Node)], t.prototype, "Mask", void 0), i([p(s.default)], t.prototype, "TipsLocationComponent", void 0), i([p(cc.Node)], t.prototype, "TipNode", void 0), i([p(cc.Node)], t.prototype, "ElementHint", void 0), i([p(cc.Node)], t.prototype, "CareerHint", void 0), i([u], t)
            }(a.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../Components/TipsLocationComponent": "TipsLocationComponent"
    }],
    HeroJobActiveAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9d5bcjggzdOmL7wctHeGmW6", "HeroJobActiveAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroJobActiveAttrComponent = void 0;
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.AttrName = null, t.AttrValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    var n = a.default.GetHeroAttribute(e, t);
                    this.AttrIcon.spriteFrame = n.Icon, this.AttrName.string = n.Name, this.AttrValue.string = "+" + n.Value
                }, i([c(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([c(cc.Label)], t.prototype, "AttrName", void 0), i([c(cc.Label)], t.prototype, "AttrValue", void 0), i([l], t)
            }(cc.Component);
        n.HeroJobActiveAttrComponent = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    HeroJobActivePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1e7e1wFTgRGUqJzVJ6OlHUg", "HeroJobActivePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("./HeroJobInfoPanel"),
            d = e("../Components/HeroJobActiveAttrComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.ChangeTitleNode = null, t.ActiveTitleNode = null, t.JobIcon = null, t.Name = null, t.Stage = null, t.AttrTitle = null, t.AttrContent = null, t.SkillTitle = null, t.SkillDesc = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HeroJobChangePanel/Components/HeroJobActiveAttrComponent", cc.Prefab)];
                                case 1:
                                    return t._attrPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrTitle.string = "equip_base_attr".ToUILocale(), this.SkillTitle.string = "heroJob_skill".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._jobId = t[0], this._type = t[1], this._jobConfig = u.ConfigDataComponent.Instance.GetConfigById(c.HeroJob_Config, this._jobId)
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this, [4, this.LoadDynamicAsset("HeroJobChangePanel/JobIcons/" + this._jobId, cc.SpriteFrame)];
                                case 1:
                                    return t._iconSprite = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetInfo(), this.SetAttrContent())
                }, t.prototype.SetInfo = function() {
                    this.ChangeTitleNode.active = this._type == p.HeroJobActiveType.Change, this.ActiveTitleNode.active = this._type == p.HeroJobActiveType.Active, this.JobIcon.spriteFrame = this._iconSprite, this.Name.string = this._jobId.ToHeroJobName(), this.Stage.string = "heroJob_stage_job".ToUILocale().Fmt(this._jobConfig.Stage), this.SkillDesc.string = this._jobConfig.Skill.ToHeroSkillDesc()
                }, t.prototype.SetAttrContent = function() {
                    var e = this;
                    this._jobConfig.Attrs.forEach(function(t) {
                        var n = cc.instantiate(e._attrPrefab);
                        n.parent = e.AttrContent, n.getComponent(d.HeroJobActiveAttrComponent).Init(t.Items[0], t.Items[1])
                    })
                }, i([y(cc.Node)], t.prototype, "ChangeTitleNode", void 0), i([y(cc.Node)], t.prototype, "ActiveTitleNode", void 0), i([y(cc.Sprite)], t.prototype, "JobIcon", void 0), i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Label)], t.prototype, "Stage", void 0), i([y(cc.Label)], t.prototype, "AttrTitle", void 0), i([y(cc.Node)], t.prototype, "AttrContent", void 0), i([y(cc.Label)], t.prototype, "SkillTitle", void 0), i([y(cc.Label)], t.prototype, "SkillDesc", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Components/HeroJobActiveAttrComponent": "HeroJobActiveAttrComponent",
        "./HeroJobInfoPanel": "HeroJobInfoPanel"
    }],
    HeroJobBookSyntheticPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8bfd6LyLrRCFa5J0uq5yGwf", "HeroJobBookSyntheticPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/CurrencyBarItem"),
            m = e("../Components/ItemComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.SyntheticTips = null, t.AddContent = null, t.SlotItemsContent = null, t.EffectItemsContent = null, t.SyntheticItemSprite = null, t.CostContent = null, t.AutoButton = null, t.AutoLabel = null, t.AutoUnloadButton = null, t.AutoUnloadLabel = null, t.SyntheticButton = null, t.SyntheticLabel = null, t.SuccessSpine = null, t.MaskNode = null, t.ReturnButton = null, t._currencyComponents = [], t._itemComponents = [], t.MaterialCount = 5, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_HEROJOB_ITEM_SELECT, this.OnItemSelect, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_HEROJOB_ITEM_SELECT, this.OnItemSelect, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset(y.BundlePath.CurrencyBarComponent, cc.Prefab), this.LoadDynamicAsset("Gems/Spine/UI_effect_baoshi_chenggong", sp.SkeletonData), this.LoadDynamicAsset("Gems/Spine/UI_effect_baoshi_hecheng", sp.SkeletonData), this.LoadDynamicAsset("Gems/Spine/UI_effect_baoshi_yijiantianchong", sp.SkeletonData), this.LoadDynamicAsset("HeroJobChangePanel/PNG/HeroJobChange", cc.SpriteAtlas)]).then(function(e) {
                                        t._itemPrefab = e[0], t._currencyBarPrefab = e[1], t._successSpineData = e[2], t._syntheticSpineData = e[3], t._autoAddSpineData = e[4], t._atlas = e[5]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.Title.string = "heroJob_synthesis".ToUILocale(), this.SyntheticTips.string = "heroJob_synthesis_hint".ToUILocale(), this.AutoLabel.string = "luckycharm_addAllIngredients".ToUILocale(), this.AutoUnloadLabel.string = "gem_auto_unload".ToUILocale(), this.SyntheticLabel.string = "ActivityMagicCompose_Compose".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.AutoButton.node.on("click", this.OnAutoButtonClick, this), this.AutoUnloadButton.node.on("click", this.OnAutoUnloadButtonClick, this), this.SyntheticButton.node.on("click", this.OnSyntheticButtonnClick, this), this._effectSpines = [], this.EffectItemsContent.children.forEach(function(e) {
                        var n = e.getComponent(sp.Skeleton);
                        t._effectSpines.push(n)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._selectItemIds = [], this.MaskNode.active = !1
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function() {
                            return e.prototype.PreloadByData.call(this), this.AddContent.children.forEach(function(e) {
                                e.getComponent(cc.Sprite).spriteFrame = f.UIUtlity.COMMON_ATLAS4.getSpriteFrame("add_golden"), e.on(cc.Node.EventType.TOUCH_END, t.OpenHeroJobSyntheticSelectPanel, t)
                            }), [2]
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetSlotNodes(), this.SetCurrency()
                }, t.prototype.SetSlotNodes = function() {
                    for (var e = 0; e < this.MaterialCount; e++) {
                        if (!this._itemComponents[e]) {
                            var t = cc.instantiate(this._itemPrefab);
                            t.parent = this.SlotItemsContent.children[e], this._itemComponents[e] = t.getComponent(m.ItemComponent)
                        }
                        this._selectItemIds[e] > 0 && (this._itemComponents[e].node.active = !0, this._itemComponents[e].Init({
                            ItemId: this._selectItemIds[e],
                            Count: 1
                        })), this._itemComponents[e].node.active = this._selectItemIds[e] > 0, this.AddContent.children[e].active = !this._selectItemIds[e]
                    }
                    if (this._itemComponents.length > this._selectItemIds.length)
                        for (e = this._selectItemIds.length; e < this._itemComponents.length; e++) this._itemComponents[e].node.active = !1;
                    if (this._selectItemIds.length > 0) {
                        var n = this._selectItemIds[0],
                            o = p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, n),
                            r = p.ConfigDataComponent.Instance.GetConfigById(u.ItemQuality_Config, o.Quality);
                        this.SyntheticItemSprite.spriteFrame = this._atlas.getSpriteFrame("commonQualityJob" + r.NextId)
                    } else this.SyntheticItemSprite.spriteFrame = null
                }, t.prototype.SetCurrency = function() {
                    var e = this;
                    if (0 == this._selectItemIds.length) this._currencyComponents.forEach(function(e) {
                        e.node.active = !1
                    });
                    else {
                        var t = p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._selectItemIds[0]),
                            n = p.ConfigDataComponent.Instance.GetConfigById(u.ItemQuality_Config, t.Quality);
                        if (n.HeroJobMaterials.forEach(function(t, n) {
                                if (!e._currencyComponents[n]) {
                                    var o = cc.instantiate(e._currencyBarPrefab);
                                    o.parent = e.CostContent, e._currencyComponents[n] = o.getComponent(g.default)
                                }
                                e._currencyComponents[n].node.active = !0, e._currencyComponents[n].Init(t.Items[0], !1, null, t.Items[1])
                            }), this._currencyComponents.length > n.HeroJobMaterials.length)
                            for (var o = n.HeroJobMaterials.length; o < this._currencyComponents.length; o++) this._currencyComponents[o].node.active = !1
                    }
                }, t.prototype.SetSyntheticEffect = function() {
                    var e = this;
                    this._effectSpines.forEach(function(t) {
                        t.clearTracks(), t.skeletonData = e._syntheticSpineData, t.setAnimation(0, "Ani_UI_effect_baoshi_hecheng", !1)
                    }), this._itemComponents.forEach(function(e) {
                        e.node.active = !1
                    }), this.AddContent.children.forEach(function(e) {
                        e.active = !0
                    }), this.scheduleOnce(function() {
                        e.SuccessSpine.clearTracks(), e.SuccessSpine.skeletonData = e._successSpineData, e.SuccessSpine.setAnimation(0, "Ani_UI_effect_baoshi_chenggong", !1)
                    }, .7), this.scheduleOnce(function() {
                        e._effectSpines.forEach(function(e) {
                            e.clearTracks(), e.skeletonData = null
                        }), e.SyntheticItemSprite.spriteFrame = null, e._selectItemIds = [], e.MaskNode.active = !1, f.UIUtlity.ShwDisplayRewardPanel(e._res.Rewards)
                    }, 2)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.SlotItemsContent.children.indexOf(t.parent) && l.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroJobSyntheticSelectPanel.Path, this._selectItemIds)
                }, t.prototype.OpenHeroJobSyntheticSelectPanel = function() {
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroJobSyntheticSelectPanel.Path, this._selectItemIds)
                }, t.prototype.OnItemSelect = function(e) {
                    this._selectItemIds = e, this.SetSlotNodes(), this.SetCurrency()
                }, t.GetHeroJobItems = function() {
                    var e = {};
                    return p.DataCenter.Instance.GetDataList(c.UserItem_Model).forEach(function(t) {
                        var n = p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, t.ItemId);
                        if (n.Type == d.ItemType.HeroJob) {
                            var o = p.ConfigDataComponent.Instance.GetConfigById(u.ItemQuality_Config, n.Quality);
                            o && o.NextId && o.HeroJobCount && (e[n.Quality] || (e[n.Quality] = []), e[n.Quality].push(t))
                        }
                    }), e
                }, t.GetJobQualityConfigs = function() {
                    var e = [];
                    return p.ConfigDataComponent.Instance.GetArrayConfig(u.ItemQuality_Config).forEach(function(t) {
                        t.HeroJobCount > 0 && e.push(t)
                    }), e
                }, t.prototype.GetAutoAddItems = function() {
                    var e = [],
                        t = n.GetJobQualityConfigs();
                    if (!t.length) return [];
                    for (var o = t[0].Id, r = n.GetHeroJobItems();;) {
                        var i = p.ConfigDataComponent.Instance.GetConfigById(u.ItemQuality_Config, o);
                        if (!i || !i.NextId) break;
                        if (r[o]) {
                            for (var a = [], s = 0, l = i.HeroJobCount, c = 0; c < r[o].length; c++) {
                                var d = r[o][c];
                                if (s + d.Count >= l) {
                                    var h = l - s;
                                    s = l, a.push([d.ItemId, h]);
                                    break
                                }
                                s += d.Count, a.push([d.ItemId, d.Count])
                            }
                            if (s >= l) {
                                for (c = 0; c < a.length; c++)
                                    for (var f = a[c], y = 0; y < f[1]; y++) e.push(f[0]);
                                break
                            }
                            o = i.NextId
                        } else o = i.NextId
                    }
                    return e
                }, t.prototype.OnAutoButtonClick = function() {
                    var e = this,
                        t = this.GetAutoAddItems();
                    t.length ? (this._selectItemIds = t, this.SetSlotNodes(), this.SetCurrency(), this._effectSpines.forEach(function(t) {
                        t.clearTracks(), t.skeletonData = e._autoAddSpineData, t.setAnimation(0, "Ani_UI_effect_baoshi_yijiantianchong", !1)
                    })) : f.UIUtlity.ShowFloatingHint("heroJob_synthesis_item_limit".ToUILocale())
                }, t.prototype.OnAutoUnloadButtonClick = function() {
                    this._selectItemIds = [], this.SetSlotNodes(), this.SetCurrency()
                }, t.prototype.OnSyntheticButtonnClick = function() {
                    var e = this;
                    if (this._selectItemIds.length) {
                        var t = p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._selectItemIds[0]),
                            n = p.ConfigDataComponent.Instance.GetConfigById(u.ItemQuality_Config, t.Quality);
                        if (this._selectItemIds.length < n.HeroJobCount) f.UIUtlity.ShowFloatingHint("heroJob_select_item".ToUILocale());
                        else {
                            this.MaskNode.active = !0;
                            var o = [];
                            this._selectItemIds.forEach(function(e) {
                                var t = new c.IntArray;
                                t.Items = [e, 1], o.push(t)
                            });
                            var r = new c.Req_Item_CommonCompose;
                            r.Type = d.ItemType.HeroJob, r.Materials = o, p.RpcComponent.Instance.Call(r, function(t) {
                                e._res = t, e._selectItemIds = [], e.SetSyntheticEffect()
                            }, function() {
                                e.MaskNode.active = !1
                            })
                        }
                    } else f.UIUtlity.ShowFloatingHint("heroJob_select_first".ToUILocale())
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "heroJob_synthesis_rule_title".ToUILocale(),
                        titles: ["heroJob_synthesis_rule_sub_title".ToUILocale()],
                        contents: ["heroJob_synthesis_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Button)], t.prototype, "RuleButton", void 0), i([C(cc.Label)], t.prototype, "SyntheticTips", void 0), i([C(cc.Node)], t.prototype, "AddContent", void 0), i([C(cc.Node)], t.prototype, "SlotItemsContent", void 0), i([C(cc.Node)], t.prototype, "EffectItemsContent", void 0), i([C(cc.Sprite)], t.prototype, "SyntheticItemSprite", void 0), i([C(cc.Node)], t.prototype, "CostContent", void 0), i([C(cc.Button)], t.prototype, "AutoButton", void 0), i([C(cc.Label)], t.prototype, "AutoLabel", void 0), i([C(cc.Button)], t.prototype, "AutoUnloadButton", void 0), i([C(cc.Label)], t.prototype, "AutoUnloadLabel", void 0), i([C(cc.Button)], t.prototype, "SyntheticButton", void 0), i([C(cc.Label)], t.prototype, "SyntheticLabel", void 0), i([C(sp.Skeleton)], t.prototype, "SuccessSpine", void 0), i([C(cc.Node)], t.prototype, "MaskNode", void 0), i([C(cc.Button)], t.prototype, "ReturnButton", void 0), n = i([_], t)
            }(l.BaseUIFullScreenPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroJobChangeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9e430V4DftDXq10sO/WEb/c", "HeroJobChangeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroJobChangeComponent = n.HeroJobChangeComponentStatus = n.HeroJobChangeComponentType = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property;
        (function(e) {
            e[e.Head = 0] = "Head", e[e.Job = 1] = "Job"
        })(l = n.HeroJobChangeComponentType || (n.HeroJobChangeComponentType = {})),
        function(e) {
            e[e.Lock = 0] = "Lock", e[e.Active = 1] = "Active", e[e.Select = 2] = "Select"
        }(c = n.HeroJobChangeComponentStatus || (n.HeroJobChangeComponentStatus = {}));
        var y = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HeadNode = null, t.JobNode = null, t.HeadIcon = null, t.HeroName = null, t.JobIcon = null, t.UnSelectNode = null, t.SelectNode = null, t.SelectBgNode = null, t.MaskNode = null, t.JobName = null, t.ReddotNode = null, t.HeadFrame = null, t._loadAssets = [], t.HeroJobNameColor = ["#BFBFBF", "#FFFFFF", "#FFD542"], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.JobIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchIcon, this)
            }, t.prototype.onDisable = function() {
                this.JobIcon.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchIcon, this)
            }, t.prototype.Init = function(e) {
                this._data = e, this.HeadNode.active = e.Type == l.Head, this.JobNode.active = e.Type == l.Job, this.ReddotNode.active = !1, e.Type == l.Head ? this.SetHeadNode() : e.Type == l.Job && this.SetJobNode()
            }, t.prototype.SetHeadNode = function() {
                this.HeadIcon.spriteFrame = this._data.HeadSprite, this.HeadFrame.spriteFrame = this._data.HeadFrame, this.HeroName.string = this._data.HeroId.ToHeroTitle()
            }, t.prototype.SetJobNode = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.JobName.string = this._data.JobId.ToHeroJobName(), this.JobIcon.spriteFrame ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("HeroJobChangePanel/JobIcons/" + this._data.JobId, cc.SpriteFrame)];
                            case 1:
                                if (e = t.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                this.JobIcon.spriteFrame = e, this._loadAssets.push(e), t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetJobStatus = function(e) {
                this.JobName.node.color = (new cc.Color).fromHEX(this.HeroJobNameColor[e]), this.UnSelectNode.active = e == c.Active, this.SelectNode.active = e == c.Select, this.MaskNode.active = e == c.Lock, this._status = e
            }, Object.defineProperty(t.prototype, "Data", {
                get: function() {
                    return this._data
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Status", {
                get: function() {
                    return this._status
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SetReddot = function(e) {
                this.ReddotNode.active = e
            }, t.prototype.OnTouchIcon = function() {
                this._data.JobId > 0 && u.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroJobInfoPanel.Path, this._data.HeroSid, this._data.JobId, this._status)
            }, t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    u.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([f(cc.Node)], t.prototype, "HeadNode", void 0), i([f(cc.Node)], t.prototype, "JobNode", void 0), i([f(cc.Sprite)], t.prototype, "HeadIcon", void 0), i([f(cc.Label)], t.prototype, "HeroName", void 0), i([f(cc.Sprite)], t.prototype, "JobIcon", void 0), i([f(cc.Node)], t.prototype, "UnSelectNode", void 0), i([f(cc.Node)], t.prototype, "SelectNode", void 0), i([f(cc.Node)], t.prototype, "SelectBgNode", void 0), i([f(cc.Node)], t.prototype, "MaskNode", void 0), i([f(cc.Label)], t.prototype, "JobName", void 0), i([f(cc.Node)], t.prototype, "ReddotNode", void 0), i([f(cc.Sprite)], t.prototype, "HeadFrame", void 0), i([h], t)
        }(cc.Component);
        n.HeroJobChangeComponent = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine"
    }],
    HeroJobChangeLineComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f47931a0WZAH5BbJcEPyay3", "HeroJobChangeLineComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroJobChangeLineComponent = n.HeroJobChangeLineDirection = n.HeroJobChangeLineColor = n.HeroJobChangeLineType = void 0;
        var a, s, l = cc._decorator,
            c = l.ccclass,
            u = l.property;
        (function(e) {
            e[e.CornerLine = 0] = "CornerLine", e[e.StraightLine = 1] = "StraightLine"
        })(a = n.HeroJobChangeLineType || (n.HeroJobChangeLineType = {})),
        function(e) {
            e[e.Black = 0] = "Black", e[e.Blue = 1] = "Blue", e[e.Orange = 2] = "Orange"
        }(n.HeroJobChangeLineColor || (n.HeroJobChangeLineColor = {})),
        function(e) {
            e[e.TopLeft = 0] = "TopLeft", e[e.TopRight = 1] = "TopRight", e[e.BottomLeft = 2] = "BottomLeft", e[e.BottomRight = 3] = "BottomRight", e[e.Vertical = 4] = "Vertical", e[e.Horizontal = 5] = "Horizontal"
        }(s = n.HeroJobChangeLineDirection || (n.HeroJobChangeLineDirection = {}));
        var p = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Line1Sprite = null, t.Line2Sprite = null, t.LineColorNames = ["black_line", "blue_line", "orange_line"], t
            }
            return r(t, e), t.prototype.Init = function(e) {
                this.Line1Sprite.node.active = e.LineType == a.CornerLine, this.Line2Sprite.node.active = e.LineType == a.StraightLine;
                var t = this.GetCornerLineScaleXYOrRotation(e.LineDirection);
                e.LineType == a.CornerLine ? (this.Line1Sprite.spriteFrame = e.Atlas.getSpriteFrame(this.LineColorNames[e.LineColor] + "1"), this.Line1Sprite.node.scaleX = t[0], this.Line1Sprite.node.scaleY = t[1]) : e.LineType == a.StraightLine && (this.Line2Sprite.spriteFrame = e.Atlas.getSpriteFrame(this.LineColorNames[e.LineColor] + "2"), this.Line2Sprite.node.angle = t[0], this.Line2Sprite.node.height = e.Length), this.node.zIndex = e.LineColor
            }, t.prototype.GetCornerLineScaleXYOrRotation = function(e) {
                var t = [1, 1];
                switch (e) {
                    case s.TopLeft:
                        t = [1, -1];
                        break;
                    case s.TopRight:
                        t = [-1, -1];
                        break;
                    case s.BottomLeft:
                        t = [1, 1];
                        break;
                    case s.BottomRight:
                        t = [-1, 1];
                        break;
                    case s.Vertical:
                        t = [0, 0];
                        break;
                    case s.Horizontal:
                        t = [90, 0]
                }
                return t
            }, i([u(cc.Sprite)], t.prototype, "Line1Sprite", void 0), i([u(cc.Sprite)], t.prototype, "Line2Sprite", void 0), i([c], t)
        }(cc.Component);
        n.HeroJobChangeLineComponent = p, cc._RF.pop()
    }, {}],
    HeroJobChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b5b51Bzc0ZG07vUfiwhC032", "HeroJobChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/HeroJobChangeComponent"),
            g = e("../Components/HeroJobChangeLineComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../RedDot/RedDotManager"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.BtnReturn = null, t.BtnRule = null, t.Title = null, t.BtnSynthetic = null, t.SyntheticLabel = null, t.BtnReset = null, t.ResetLabel = null, t.JobContent = null, t.LineContent = null, t._lineComponents = [], t.Offset = 40, t.JobCompNodeHeight = 230, t.JobCompNodeWidth = 200, t.LineWidth = 12.5, t.SmallLineWidth = 10, t.InitHeadFrame = 3101, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_HEROJOB_REFRESH, this.RefreshPanel, this), l.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_HEROJOB_REFRESH, this.RefreshPanel, this), l.Game.EventDispatcher.Off(p.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(p.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HeroJobChangePanel/Components/HeroJobChangeLineComponent", cc.Prefab), n = this.LoadDynamicAsset("HeroJobChangePanel/Components/HeroJobChangeComponent", cc.Prefab), o = this.LoadDynamicAsset("HeroJobChangePanel/PNG/HeroJobChange", cc.SpriteAtlas), r = this.LoadDynamicAsset("UserInfo/Frame/" + this.InitHeadFrame, cc.SpriteFrame), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._linePrefab = e[0], i._jobPrefab = e[1], i._atlas = e[2], i._headFrame = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "heroJob_hero_change".ToUILocale(), this.SyntheticLabel.string = "heroJob_synthesis_item".ToUILocale(), this.ResetLabel.string = "allianceTalent_reset".ToUILocale(), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnSynthetic.node.on("click", this.OnBtnSyntheticClick, this), this.BtnReset.node.on("click", this.OnBtnResetClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroSid = t[0];
                    var n = d.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid);
                    this._heroConfig = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, n.HeroId), this._heroId = n.HeroId
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this, [4, this.LoadDynamicAsset(f.BundlePath.HeadIcon + "/" + this._heroId, cc.SpriteFrame)];
                                case 1:
                                    return t._headSprite = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetJobContent(), this.SetJobNodesStatus(), this.CaculateJobNodePos(), this.SetLineContent(), this.SetReddot())
                }, t.prototype.SetJobContent = function() {
                    this._jobComponents = {};
                    var e = cc.instantiate(this._jobPrefab).getComponent(y.HeroJobChangeComponent),
                        t = {
                            Parent: null
                        };
                    t.HeadSprite = this._headSprite, t.HeroId = this._heroId, t.Type = y.HeroJobChangeComponentType.Head, t.HeadFrame = this._headFrame, t.JobId = 0, t.XIndex = 0, t.HeroSid = this._heroSid, e.Init(t), this._jobComponents[0] = e;
                    for (var n = 0; n < this._heroConfig.Jobs.length; n++) {
                        var o = this._heroConfig.Jobs[n].Items[0],
                            r = this._heroConfig.Jobs[n].Items[1],
                            i = cc.instantiate(this._jobPrefab).getComponent(y.HeroJobChangeComponent),
                            a = {};
                        a.JobId = o, a.Type = y.HeroJobChangeComponentType.Job, a.HeroSid = this._heroSid, 0 == n ? (a.Parent = e, e.Data.Children || (e.Data.Children = []), e.Data.Children.push(i)) : (a.Parent = this._jobComponents[r], this._jobComponents[r].Data.Children || (this._jobComponents[r].Data.Children = []), this._jobComponents[r].Data.Children.push(i)), i.Init(a), this._jobComponents[o] = i
                    }
                }, t.prototype.CaculateJobNodePos = function() {
                    var e = this;
                    this._maxCount = 0, this.SetJobCompXIndex(), this._stage = this._jobStageComponents.length;
                    var t = this._stage * this.JobCompNodeHeight + (this._stage - 1) * this.Offset;
                    this._startY = -t / 2 + this.JobCompNodeHeight / 2;
                    var n = this._maxCount * this.JobCompNodeWidth + (this._maxCount - 1) * this.Offset;
                    for (var o in this._startX = -n / 2 + this.JobCompNodeWidth / 2, this._jobIdToConfigIndexMap || (this._jobIdToConfigIndexMap = {}, this._jobStageComponents.forEach(function(t, n) {
                            t.forEach(function(t, o) {
                                e._jobIdToConfigIndexMap[t.Data.JobId] = [n, o]
                            })
                        })), this._jobComponents) {
                        this._jobComponents[o].node.parent = this.JobContent;
                        var r = this.CaculateNodePos(Number(o), this._jobComponents[o].Data.XIndex);
                        this._jobComponents[o].node.setPosition(r[0], r[1])
                    }
                }, t.prototype.CaculateNodePos = function(e, t) {
                    var n = [];
                    if (n[0] = 0 == t ? 0 : (t - 1) * (this.JobCompNodeWidth + this.Offset) + this._startX, 0 == e) n[1] = this._startY;
                    else {
                        var o = this._jobIdToConfigIndexMap[e][0];
                        n[1] = o * (this.JobCompNodeHeight + this.Offset) + this._startY
                    }
                    return n
                }, t.prototype.SetJobCompXIndex = function() {
                    this._jobStageComponents = [
                        [this._jobComponents[0]]
                    ], this.SetJobStageComponents([this._jobComponents[0]]), this.RecursionChildren(1)
                }, t.prototype.SetJobStageComponents = function(e) {
                    var t = this,
                        n = [];
                    e.forEach(function(e) {
                        e.Data.Children && e.Data.Children.length > 0 && (n = n.concat(e.Data.Children), 0 == e.Data.XIndex ? t._maxCount = e.Data.Children.length : e.Data.Children.length > 1 && (t._maxCount += e.Data.Children.length - 1))
                    }), n.length > 0 && (this._jobStageComponents.push(n), this.SetJobStageComponents(n))
                }, t.prototype.RecursionChildren = function(e) {
                    var t = this._jobStageComponents[e];
                    if (t) {
                        if (1 == t.length) t[0].Data.XIndex = t[0].Data.Parent.Data.XIndex;
                        else {
                            var n = Math.max(1, t[0].Data.Parent.Data.XIndex);
                            t.forEach(function(e, t) {
                                if (0 == t) e.Data.XIndex = n;
                                else {
                                    var o = n + 1;
                                    e.Data.XIndex = Math.max(o, e.Data.Parent.Data.XIndex), n = e.Data.XIndex
                                }
                            }), this.RecursionParent(e - 1)
                        }
                        e++, this.RecursionChildren(e)
                    }
                }, t.prototype.RecursionParent = function(e) {
                    e <= 0 || (this._jobStageComponents[e].forEach(function(e) {
                        if (e.Data.XIndex > 0) {
                            var t = 0;
                            e.Data.Children.forEach(function(e) {
                                t += e.Data.XIndex
                            }), e.Data.XIndex = t / e.Data.Children.length
                        }
                    }), e--, this.RecursionParent(e))
                }, t.prototype.SetJobNodesStatus = function() {
                    var e, t = d.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid);
                    for (var n in this._jobComponents) t.JobMap && t.JobMap[Number(n)] > 0 ? this._jobComponents[n].SetJobStatus(y.HeroJobChangeComponentStatus.Active) : this._jobComponents[n].SetJobStatus(y.HeroJobChangeComponentStatus.Lock), t.Job && t.Job == Number(n) && (e = this._jobComponents[n]);
                    e && this.SetJobCompSelectStatus(e)
                }, t.prototype.SetJobCompSelectStatus = function(e) {
                    e.SetJobStatus(y.HeroJobChangeComponentStatus.Select), e.Data.Parent && e.Data.Parent.Data.JobId > 0 && this.SetJobCompSelectStatus(e.Data.Parent)
                }, t.prototype.SetLineContent = function() {
                    for (var e = this.LineContent.children.length - 1; e >= 0; e--) {
                        var t = this.LineContent.children[e].getComponent(g.HeroJobChangeLineComponent);
                        this.LineContent.children[e].removeFromParent(), this._lineComponents.push(t)
                    }
                    this.SetLineComp(this._jobComponents[0])
                }, t.prototype.SetLineComp = function(e) {
                    var t = this;
                    if (e.Data.Children)
                        if (1 == e.Data.Children.length) {
                            var n = {};
                            n.Atlas = this._atlas, n.LineType = g.HeroJobChangeLineType.StraightLine, n.LineDirection = g.HeroJobChangeLineDirection.Vertical, n.LineColor = e.Data.Children[0].Status, n.Length = e.Data.Children[0].node.y - e.node.y, n.Postion = cc.v2(e.node.x, (e.Data.Children[0].node.y + e.node.y) / 2), this.CreateLineComp(n), this.SetLineComp(e.Data.Children[0])
                        } else {
                            var o = -1,
                                r = -1,
                                i = (e.Data.Children[0].node.y + e.node.y) / 2;
                            e.Data.Children.forEach(function(n, a) {
                                switch (n.Status > o && (o = n.Status, r = a), n.Status) {
                                    case y.HeroJobChangeComponentStatus.Lock:
                                    case y.HeroJobChangeComponentStatus.Active:
                                        var s = cc.v2(n.node.x, (n.node.y + i) / 2),
                                            l = cc.v2((n.node.x + e.node.x) / 2, i),
                                            c = t.GetLineCompData(g.HeroJobChangeLineType.StraightLine, n.Status, g.HeroJobChangeLineDirection.Vertical, s, n.node.y - i + t.SmallLineWidth),
                                            u = t.GetLineCompData(g.HeroJobChangeLineType.StraightLine, n.Status, g.HeroJobChangeLineDirection.Horizontal, l, Math.abs(n.node.x - e.node.x) + t.SmallLineWidth);
                                        t.CreateLineComp(c), t.CreateLineComp(u);
                                        break;
                                    case y.HeroJobChangeComponentStatus.Select:
                                        s = cc.v2(n.node.x, (n.node.y + i) / 2);
                                        var p = t.GetCornerLineDirection(n.node, e.node, 0);
                                        if (c = t.GetLineCompData(g.HeroJobChangeLineType.StraightLine, n.Status, g.HeroJobChangeLineDirection.Vertical, s, n.node.y - i - 4 * t.LineWidth), t.CreateLineComp(c), n.node.x != e.node.x) {
                                            l = cc.v2((n.node.x + e.node.x) / 2, i), u = t.GetLineCompData(g.HeroJobChangeLineType.StraightLine, n.Status, g.HeroJobChangeLineDirection.Horizontal, l, Math.abs(n.node.x - e.node.x) - 4 * t.LineWidth), t.CreateLineComp(u);
                                            var d = cc.v2(n.node.x, i),
                                                h = t.GetLineCompData(g.HeroJobChangeLineType.CornerLine, n.Status, p, d);
                                            t.CreateLineComp(h)
                                        }
                                }
                                t.SetLineComp(n)
                            });
                            var a, s = cc.v2(e.node.x, (e.node.y + i) / 2);
                            if (a = o == y.HeroJobChangeComponentStatus.Select ? this.GetLineCompData(g.HeroJobChangeLineType.StraightLine, o, g.HeroJobChangeLineDirection.Vertical, s, Math.abs(e.node.y - i) - 4 * this.LineWidth) : this.GetLineCompData(g.HeroJobChangeLineType.StraightLine, o, g.HeroJobChangeLineDirection.Vertical, s, Math.abs(e.node.y - i) + +this.SmallLineWidth), this.CreateLineComp(a), o == y.HeroJobChangeComponentStatus.Select)
                                if (e.Data.Children[r].node.x != e.node.x) {
                                    var l = cc.v2(e.node.x, i),
                                        c = this.GetCornerLineDirection(e.Data.Children[r].node, e.node, 1),
                                        u = this.GetLineCompData(g.HeroJobChangeLineType.CornerLine, o, c, l);
                                    this.CreateLineComp(u)
                                } else l = cc.v2(e.node.x, i), u = this.GetLineCompData(g.HeroJobChangeLineType.StraightLine, o, g.HeroJobChangeLineDirection.Vertical, l, 4 * this.LineWidth), this.CreateLineComp(u)
                        }
                }, t.prototype.GetCornerLineDirection = function(e, t, n) {
                    return e.x < t.x ? 0 == n ? g.HeroJobChangeLineDirection.TopRight : g.HeroJobChangeLineDirection.BottomLeft : 0 == n ? g.HeroJobChangeLineDirection.TopLeft : g.HeroJobChangeLineDirection.BottomRight
                }, t.prototype.GetLineCompData = function(e, t, n, o, r) {
                    var i = {};
                    return i.Atlas = this._atlas, i.LineType = e, i.LineDirection = n, i.LineColor = t, i.Postion = o, i.Length = r, i
                }, t.prototype.CreateLineComp = function(e) {
                    var t = this._lineComponents.pop();
                    t || (t = cc.instantiate(this._linePrefab).getComponent(g.HeroJobChangeLineComponent)), t.node.parent = this.LineContent, t.node.setPosition(e.Postion), t.Init(e)
                }, t.prototype.SetReddot = function() {
                    var e = I.RedDotManager.DataHandler.GetHeroJobChangeHigherJobIds({
                        Value1: this._heroSid
                    });
                    for (var t in this._jobComponents) this._jobComponents[t].SetReddot(e.includes(Number(t)))
                }, t.prototype.RefreshPanel = function() {
                    this.SetJobNodesStatus(), this.CaculateJobNodePos(), this.SetLineContent(), this.SetReddot()
                }, t.prototype.OnBtnSyntheticClick = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroJobBookSyntheticPanel.Path)
                }, t.prototype.OnBtnResetClick = function() {
                    var e = d.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid);
                    if (e.JobMap) {
                        var t = !1,
                            n = [];
                        for (var o in this._heroConfig.Jobs.forEach(function(e) {
                                0 == e.Items[1] && n.push(e.Items[0])
                            }), e.JobMap)
                            if (!n.includes(Number(o)) && e.JobMap[o] > 0) {
                                t = !0;
                                break
                            } t ? h.UIUtlity.ShowHintPanel("", "heroJob_reset_hint".ToUILocale(), "", null, "", this.RequestReset.bind(this)) : h.UIUtlity.ShowFloatingHint("heroJob_active_job".ToUILocale())
                    } else h.UIUtlity.ShowFloatingHint("heroJob_active_init".ToUILocale())
                }, t.prototype.RequestReset = function() {
                    var e = this,
                        t = new c.Req_Hero_JobReset;
                    t.Sid = this._heroSid, d.RpcComponent.Instance.Call(t, function(t) {
                        t.Rewards.length > 0 && h.UIUtlity.ShwDisplayRewardPanel(t.Rewards), h.UIUtlity.ShowFloatingHint("heroJob_reset_success".ToUILocale()), e.RefreshPanel()
                    })
                }, t.prototype.OnBtnReturnClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnRuleClick = function() {
                    var e = {
                        name: "heroJob_rule_title".ToUILocale(),
                        titles: ["heroJob_rule_sub_title".ToUILocale()],
                        contents: ["heroJob_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnUserItemChange = function(e) {
                    for (var t = Object.keys(e), n = 0; n < t.length; n++) {
                        var o = Number.parseInt(t[n]);
                        if (d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, o).Type == p.ItemType.HeroJob) {
                            this.SetReddot();
                            break
                        }
                    }
                }, t.prototype.onDestroy = function() {
                    this._lineComponents.forEach(function(e) {
                        e.node.isValid && e.node.destroy()
                    })
                }, i([v(cc.Button)], t.prototype, "BtnReturn", void 0), i([v(cc.Button)], t.prototype, "BtnRule", void 0), i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Button)], t.prototype, "BtnSynthetic", void 0), i([v(cc.Label)], t.prototype, "SyntheticLabel", void 0), i([v(cc.Button)], t.prototype, "BtnReset", void 0), i([v(cc.Label)], t.prototype, "ResetLabel", void 0), i([v(cc.Node)], t.prototype, "JobContent", void 0), i([v(cc.Node)], t.prototype, "LineContent", void 0), i([C], t)
            }(l.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeroJobChangeComponent": "HeroJobChangeComponent",
        "../Components/HeroJobChangeLineComponent": "HeroJobChangeLineComponent"
    }],
    HeroJobInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "05274/vW6BKv6yRacsm01Mi", "HeroJobInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroJobActiveType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../Components/HeroJobChangeComponent"),
            f = e("../Components/AttrComponent2"),
            y = e("../Components/ItemCountComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("./BuffDescComponent"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Active = 0] = "Active", e[e.Change = 1] = "Change"
        })(l = n.HeroJobActiveType || (n.HeroJobActiveType = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.JobIcon = null, t.Name = null, t.UnActive = null, t.Active = null, t.TypeDesc = null, t.Type = null, t.AttrTitle = null, t.AttrContent = null, t.SkillTitle = null, t.SkillDescContent = null, t.SkillDescRichText = null, t.SingelButtonNode = null, t.CurJobButton = null, t.CurJobLabel = null, t.ChangeJobButton = null, t.ChangeJobLabel = null, t.ActiveFirstNode = null, t.ActiveFirstButton = null, t.ActiveFirstLabel = null, t.LimitStarRichTect = null, t.ActiveNode = null, t.ActiveButton = null, t.ActiveLabel = null, t.MaterialContent = null, t.Invalid = null, t.Valid = null, t.NotCarry = null, t.CurCarry = null, t.StarNode = null, t.FirstActiveMaterialNode = null, t._buffDescNodes = [], t._itemComponents = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemsComponent/AttrComponent2", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/ItemCountComponent", cc.Prefab), o = this.LoadDynamicAsset("HeroInfoPanel/Components/BuffDescComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._attrPrefab = e[0], r._itemPrefab = e[1], r._buffDescItemPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.TypeDesc.string = "equip_type_tag".ToUILocale(), this.AttrTitle.string = "equip_base_attr".ToUILocale(), this.SkillTitle.string = "heroJob_skill".ToUILocale(), this.CurJobLabel.string = "heroJob_cur_job".ToUILocale(), this.ChangeJobLabel.string = "heroJob_change_job".ToUILocale(), this.ActiveFirstLabel.string = "ChaosTemple_Active".ToUILocale(), this.ActiveLabel.string = "ChaosTemple_Active".ToUILocale(), this.ChangeJobButton.node.on("click", this.OnChangeJobButtonClick, this), this.ActiveFirstButton.node.on("click", this.OnActiveButtonClick, this), this.ActiveButton.node.on("click", this.OnActiveButtonClick, this)
            }, t.prototype.InitData = function(t) {
                var n = this;
                e.prototype.InitData.call(this, t), this._heroSid = t[0], this._jobId = t[1], this._status = t[2], this._heroModel = p.DataCenter.Instance.GetDataById(d.UserHero_Model, this._heroSid), this._heroConfig = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._heroModel.HeroId), this._jobConfig = p.ConfigDataComponent.Instance.GetConfigById(u.HeroJob_Config, this._jobId), this._jobIdToPreJobId = {}, this._heroConfig.Jobs.forEach(function(e) {
                    n._jobIdToPreJobId[e.Items[0]] = e.Items[1]
                })
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), t = this, [4, this.LoadDynamicAsset("HeroJobChangePanel/JobIcons/" + this._jobId, cc.SpriteFrame)];
                            case 1:
                                return t._iconSprite = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._heroModel = p.DataCenter.Instance.GetDataById(d.UserHero_Model, this._heroSid), t || (this.SetInfoNode(), this.SetAttrNode(), this.SetSkillNode(), this.SetStatusNode())
            }, t.prototype.SetInfoNode = function() {
                this.JobIcon.spriteFrame = this._iconSprite, this.Name.string = this._jobId.ToHeroJobName(), this.Type.string = "heroJob_stage_job".ToUILocale().Fmt(this._jobConfig.Stage)
            }, t.prototype.SetAttrNode = function() {
                var e = this;
                this._jobConfig.Attrs.forEach(function(t) {
                    var n = cc.instantiate(e._attrPrefab);
                    n.parent = e.AttrContent;
                    var o = n.getComponent(f.default);
                    o.Init(t.Items[0], t.Items[1]), o.SetAttrValueStyle(455, 0, f.AttrComponent2Style.Mid, f.AttrComponent2Style.Mid)
                })
            }, t.prototype.SetSkillNode = function() {
                var e = this,
                    t = this._jobConfig.Skill,
                    n = p.ConfigDataComponent.Instance.GetConfigById(u.SkillBase_Config, t);
                this.SkillDescRichText.string = "<color=#624e3c>" + t.ToHeroSkillDesc() + "</c>", this._buffDescNodes.forEach(function(e) {
                    e.active = !1
                }), n.BuffDescription.length > 0 && (n.BuffDescription.forEach(function(t, n) {
                    if (!e._buffDescNodes[n]) {
                        var o = cc.instantiate(e._buffDescItemPrefab);
                        o.parent = e.SkillDescContent.node, e._buffDescNodes[n] = o
                    }
                    e._buffDescNodes[n].active = !0, e._buffDescNodes[n].getComponent(v.default).Init(t)
                }), this.SkillDescContent.updateLayout())
            }, t.prototype.SetStatusNode = function() {
                var e = this;
                switch (this.SingelButtonNode.active = !1, this.ActiveFirstNode.active = !1, this.ActiveNode.active = !1, this.CurJobButton.node.active = !1, this.ChangeJobButton.node.active = !1, this.UnActive.active = this._status == h.HeroJobChangeComponentStatus.Lock, this.Active.active = this._status != h.HeroJobChangeComponentStatus.Lock, this.Invalid.active = this._status == h.HeroJobChangeComponentStatus.Lock, this.Valid.active = this._status != h.HeroJobChangeComponentStatus.Lock, this.NotCarry.active = this._jobId != this._heroModel.Job, this.CurCarry.active = this._jobId == this._heroModel.Job, this._itemComponents.forEach(function(e) {
                        e.node.active = !1
                    }), this._status) {
                    case h.HeroJobChangeComponentStatus.Lock:
                        var t = function(t) {
                            e._jobConfig.Materials.forEach(function(n, o) {
                                if (!e._itemComponents[o]) {
                                    var r = cc.instantiate(e._itemPrefab);
                                    e._itemComponents[o] = r.getComponent(y.default)
                                }
                                e._itemComponents[o].node.parent = t;
                                var i = p.DataCenter.Instance.GetItemCount(n.Items[0]),
                                    a = "<color=" + (i >= n.Items[1] ? "#ffffff" : "#ff0000") + ">" + i + "</c>/<color=#ffffff>" + n.Items[1] + "</c>";
                                e._itemComponents[o].Init(n.Items[0], a), e._itemComponents[o].SetCountBg(!0, g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg1")), e._itemComponents[o].SetCountBgInfo(-110, 0, 1, 220, 60), e._itemComponents[o].SetCountInfo(40)
                            })
                        };
                        0 == this._jobIdToPreJobId[this._jobId] ? (this.ActiveFirstNode.active = !0, this.StarNode.active = !1, this.FirstActiveMaterialNode.active = this._jobConfig.Materials.length > 0, this._jobConfig.Condition.forEach(function(t) {
                            if (1 == t.Items[0]) {
                                e.StarNode.active = !0;
                                var n = e._heroModel.StarLevel >= t.Items[1] ? "#624E3C" : "#BD3A38";
                                e.LimitStarRichTect.string = "heroJob_star_limit".ToUILocale().Fmt(t.Items[1], e._heroModel.StarLevel, t.Items[1], n)
                            }
                        }), t(this.FirstActiveMaterialNode)) : (this.ActiveNode.active = !0, t(this.MaterialContent));
                        break;
                    case h.HeroJobChangeComponentStatus.Active:
                        this.SingelButtonNode.active = !0, this.ChangeJobButton.node.active = !0;
                        break;
                    case h.HeroJobChangeComponentStatus.Select:
                        this.SingelButtonNode.active = !0, this.CurJobButton.node.active = this._jobId == this._heroModel.Job, this.ChangeJobButton.node.active = this._jobId != this._heroModel.Job
                }
            }, t.prototype.OnChangeJobButtonClick = function() {
                this._heroModel.JobMap && this._heroModel.JobMap[this._jobId] ? this.ActiveJobRequest(l.Change) : g.UIUtlity.ShowFloatingHint("heroJob_active_job".ToUILocale())
            }, t.prototype.CheckCondition = function() {
                for (var e = 0; e < this._jobConfig.Condition.length; e++) {
                    var t = this._jobConfig.Condition[e];
                    if (1 == t.Items[0] && this._heroModel.StarLevel < t.Items[1]) return g.UIUtlity.ShowFloatingHint("heroJob_active_star_limit".ToUILocale().Fmt(t.Items[1])), !1
                }
                var n = this._jobIdToPreJobId[this._jobId];
                if (n > 0 && (!this._heroModel.JobMap || !this._heroModel.JobMap[n])) {
                    var o = n.ToHeroJobName();
                    return g.UIUtlity.ShowFloatingHint("heroJob_unactive".ToUILocale().Fmt(o)), !1
                }
                return !0
            }, t.prototype.CheckMaterial = function() {
                for (var e = 0; e < this._jobConfig.Materials.length; e++) {
                    var t = this._jobConfig.Materials[e];
                    if (!p.DataCenter.Instance.IsItemEnough(t.Items[0], t.Items[1])) return p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, t.Items[0]).Type == I.ItemType.HeroJob ? _.default.ShowItemGetWay(t.Items[0]) : g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t.Items[0].ToItemName())), !1
                }
                return !0
            }, t.prototype.ActiveJobRequest = function(e) {
                var t = this,
                    n = this._heroConfig.Jobs.findIndex(function(e) {
                        return e.Items[0] == t._jobId
                    }),
                    o = p.DataCenter.Instance.GetIntData(I.UserDataKey.Power),
                    r = new d.Req_Hero_JobChange;
                r.Index = n, r.Sid = this._heroSid, p.RpcComponent.Instance.Call(r, function() {
                    c.UIManager.Instance.ShowUIPanel(m.PanelConfig.HeroJobActivePanel.Path, t._jobId, e), t.UpdateStatus(), t.SetStatusNode(), c.Game.EventDispatcher.Emit(C.EventKeys.EVENT_HEROJOB_REFRESH);
                    var n = p.DataCenter.Instance.GetIntData(I.UserDataKey.Power);
                    c.UIManager.Instance.ShowUIPanel(m.PanelConfig.BattlePowerChangePanel.Path, o, n)
                })
            }, t.prototype.UpdateStatus = function() {
                this._heroModel = p.DataCenter.Instance.GetDataById(d.UserHero_Model, this._heroSid), this._heroModel.JobMap && this._heroModel.JobMap[this._jobId] > 0 ? this._status = h.HeroJobChangeComponentStatus.Active : this._status = h.HeroJobChangeComponentStatus.Lock, this._heroModel.Job && this._heroModel.Job == this._jobId && (this._status = h.HeroJobChangeComponentStatus.Select)
            }, t.prototype.OnActiveButtonClick = function() {
                this.CheckMaterial() && this.CheckCondition() && this.ActiveJobRequest(l.Active)
            }, i([w(cc.Sprite)], t.prototype, "JobIcon", void 0), i([w(cc.Label)], t.prototype, "Name", void 0), i([w(cc.Node)], t.prototype, "UnActive", void 0), i([w(cc.Node)], t.prototype, "Active", void 0), i([w(cc.Label)], t.prototype, "TypeDesc", void 0), i([w(cc.Label)], t.prototype, "Type", void 0), i([w(cc.Label)], t.prototype, "AttrTitle", void 0), i([w(cc.Node)], t.prototype, "AttrContent", void 0), i([w(cc.Label)], t.prototype, "SkillTitle", void 0), i([w(cc.Layout)], t.prototype, "SkillDescContent", void 0), i([w(cc.RichText)], t.prototype, "SkillDescRichText", void 0), i([w(cc.Node)], t.prototype, "SingelButtonNode", void 0), i([w(cc.Button)], t.prototype, "CurJobButton", void 0), i([w(cc.Label)], t.prototype, "CurJobLabel", void 0), i([w(cc.Button)], t.prototype, "ChangeJobButton", void 0), i([w(cc.Label)], t.prototype, "ChangeJobLabel", void 0), i([w(cc.Node)], t.prototype, "ActiveFirstNode", void 0), i([w(cc.Button)], t.prototype, "ActiveFirstButton", void 0), i([w(cc.Label)], t.prototype, "ActiveFirstLabel", void 0), i([w(cc.RichText)], t.prototype, "LimitStarRichTect", void 0), i([w(cc.Node)], t.prototype, "ActiveNode", void 0), i([w(cc.Button)], t.prototype, "ActiveButton", void 0), i([w(cc.Label)], t.prototype, "ActiveLabel", void 0), i([w(cc.Node)], t.prototype, "MaterialContent", void 0), i([w(cc.Node)], t.prototype, "Invalid", void 0), i([w(cc.Node)], t.prototype, "Valid", void 0), i([w(cc.Node)], t.prototype, "NotCarry", void 0), i([w(cc.Node)], t.prototype, "CurCarry", void 0), i([w(cc.Node)], t.prototype, "StarNode", void 0), i([w(cc.Node)], t.prototype, "FirstActiveMaterialNode", void 0), i([S], t)
        }(c.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/HeroJobChangeComponent": "HeroJobChangeComponent",
        "../Components/ItemCountComponent": "ItemCountComponent",
        "./BuffDescComponent": "BuffDescComponent"
    }],
    HeroJobItemUsePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6e5f4yHEZBD568dkO8Um4o5", "HeroJobItemUsePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/SliderComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp), t.Name = null, t.ItemDesc = null, t.ItemNode = null, t.Step1 = null, t.HeroNode = null, t.Step2 = null, t.ItemContent = null, t.MaskNode = null, t.Hint = null, t.SliderComponent = null, t.SelectCount = null, t.UseButton = null, t.UseLabel = null, t.UseInfoNode = null, t._selectIndex = -1, t._itemComponents = [], t._selectCount = 1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Step1.string = "heroJob_step_one".ToUILocale(), this.Hint.string = "heroJob_step_limit".ToUILocale(), this.UseLabel.string = "use".ToUILocale(), this.UseButton.node.on("click", this.OnUseButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._itemId = t[0], this._isHideUseBtn = t[1], this._isHideUseBtn && (this.UseInfoNode.active = !1), this._canSelectHeroIdMap = {}, this._itemConfig = p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._itemId), this._itemConsumeConfig = p.ConfigDataComponent.Instance.GetConfigById(u.ItemConsume_Config, this._itemId), this._itemConsumeConfig.Param.forEach(function(e) {
                        n._canSelectHeroIdMap[e.Items[0]] || (n._canSelectHeroIdMap[e.Items[0]] = !0)
                    }), this._itemIdToJobId = {}, p.ConfigDataComponent.Instance.GetArrayConfig(u.HeroJob_Config).forEach(function(e) {
                        e.Materials.length > 0 && (n._itemIdToJobId[e.Materials[0].Items[0]] || (n._itemIdToJobId[e.Materials[0].Items[0]] = e.Id))
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetItemNode(), this.SetHeroNode(), this.SetSelectItemNodes(), this.SetSliderNode())
                }, t.prototype.SetItemNode = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.parent = this.ItemNode, e.y = -20, e.getComponent(y.ItemComponent).Init({
                        ItemId: this._itemId,
                        Count: 1
                    }), this.Name.string = this._itemId.ToItemName(), this.ItemDesc.string = this._itemId.ToItemDesc()
                }, t.prototype.SetHeroNode = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.parent = this.HeroNode, e.y = -20;
                    var t = e.getComponent(y.ItemComponent);
                    this._selectHeroModel ? t.Init(this._selectHeroModel, y.ItemComponentType.HeroInfo) : (t.SetItemSimpleState(), t.SetAddFlagState(!0), t.AddFlag.node.scale = 1.5)
                }, t.prototype.SetSelectItemNodes = function() {
                    var e = this;
                    switch (this._itemConsumeConfig.SubType) {
                        case d.ConsumeItemType.HeroFixedBox:
                            this.Step2.string = "heroJob_step_two_get".ToUILocale();
                            break;
                        case d.ConsumeItemType.HeroRandomBox:
                            this.Step2.string = "heroJob_step_two_random".ToUILocale();
                            break;
                        case d.ConsumeItemType.HeroManualBox:
                            this.Step2.string = "heroJob_step_two_select".ToUILocale()
                    }
                    if (this._selectHeroModel) {
                        this.MaskNode.active = !1;
                        var t = this._itemConsumeConfig.Param.find(function(t) {
                            return t.Items[0] == e._selectHeroModel.HeroId
                        });
                        if (t) {
                            var n = p.ConfigDataComponent.Instance.GetConfigById(u.ItemRewards_Config, t.Items[1]);
                            if (n.Rewards.forEach(function(t, n) {
                                    if (!e._itemComponents[n]) {
                                        var o = cc.instantiate(e._itemPrefab);
                                        o.parent = e.ItemContent, o.y = -20, e._itemComponents[n] = o.getComponent(y.ItemComponent)
                                    }
                                    if (e._itemComponents[n].node.name = t.Items[0].toString(), e._itemComponents[n].node.active = !0, e._itemComponents[n].Init({
                                            ItemId: t.Items[0],
                                            Count: t.Items[1]
                                        }), e._itemConsumeConfig.SubType == d.ConsumeItemType.HeroManualBox) {
                                        var r = e.GetItemStatus(t.Items[0]);
                                        if (r > 0) switch (e._itemComponents[n].SetSelectFlagState(n == e._selectIndex), r) {
                                            case 1:
                                                e._itemComponents[n].EnableMask(), e._itemComponents[n].SetCustomLabel("artifact_has_active".ToUILocale());
                                                break;
                                            case 3:
                                                e._itemComponents[n].EnableMask(), e._itemComponents[n].SetCustomLabel("heroJob_cant_active".ToUILocale())
                                        }
                                    }
                                }), this._itemComponents.length > n.Rewards.length)
                                for (var o = n.Rewards.length; o < this._itemComponents.length; o++) this._itemComponents[o].node.active = !1
                        }
                    } else {
                        for (this.MaskNode.active = !0, o = 0; o < 5; o++) {
                            if (!this._itemComponents[o]) {
                                var r = cc.instantiate(this._itemPrefab);
                                r.parent = this.ItemContent, r.y = -20, this._itemComponents[o] = r.getComponent(y.ItemComponent)
                            }
                            this._itemComponents[o].node.active = !0, this._itemComponents[o].SetItemSimpleState(), this._itemComponents[o].SetAddFlagState(!0), this._itemComponents[o].AddFlag.node.scale = 1.5
                        }
                        if (this._itemComponents.length > 5)
                            for (o = 5; o < this._itemComponents.length; o++) this._itemComponents[o].node.active = !1
                    }
                }, t.prototype.CheckPreJobIsActive = function(e) {
                    for (var t = p.ConfigDataComponent.Instance.GetConfigById(u.HeroJob_Config, e), n = 0; n < t.Condition.length; n++) {
                        var o = t.Condition[n];
                        if (1 == o.Items[0] && this._selectHeroModel.StarLevel < o.Items[1]) return !1
                    }
                    return !0
                }, t.prototype.GetItemStatus = function(e) {
                    var t = 0,
                        n = this._itemIdToJobId[e];
                    return n && (t = this._selectHeroModel.JobMap[n] > 0 ? 1 : this.CheckPreJobIsActive(n) ? 2 : 3), t
                }, t.prototype.SetSliderNode = function() {
                    var e = p.DataCenter.Instance.GetItemCount(this._itemId),
                        t = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("UseItemCountLimit");
                    this._maxCount = Math.min(e, t), this.SliderComponent.SetUI(this._selectCount, e, 1, !0), this.SelectCount.string = "1/" + e
                }, t.prototype.OnSliderDragOver = function(e) {
                    this._selectCount = e, this.SelectCount.string = e + "/" + this._maxCount
                }, t.prototype.OnUseButtonClick = function() {
                    var e = this;
                    if (this._selectHeroModel)
                        if (this._itemConsumeConfig.SubType == d.ConsumeItemType.HeroManualBox) {
                            if (-1 == this._selectIndex) return void m.UIUtlity.ShowFloatingHint("heroJob_select_reward".ToUILocale());
                            var t = this._itemConsumeConfig.Param.find(function(t) {
                                    return t.Items[0] == e._selectHeroModel.HeroId
                                }),
                                n = p.ConfigDataComponent.Instance.GetConfigById(u.ItemRewards_Config, t.Items[1]),
                                o = n.Rewards[this._selectIndex] ? n.Rewards[this._selectIndex].Items[0] : 0;
                            if (o > 0) switch (this.GetItemStatus(o)) {
                                case 1:
                                    m.UIUtlity.ShowHintPanel("", "heroJob_change_hint1".ToUILocale(), "", null, "", this.RequestUseItem.bind(this));
                                    break;
                                case 2:
                                    this.RequestUseItem();
                                    break;
                                case 3:
                                    m.UIUtlity.ShowHintPanel("", "heroJob_change_hint2".ToUILocale(), "", null, "", this.RequestUseItem.bind(this))
                            }
                        } else this.RequestUseItem();
                    else m.UIUtlity.ShowFloatingHint("heroJob_select_hero_first".ToUILocale())
                }, t.prototype.RequestUseItem = function() {
                    var e = this,
                        t = new c.Req_Item_UseItems,
                        n = new c.IntArray,
                        o = this._itemConsumeConfig.Param.findIndex(function(t) {
                            return t.Items[0] == e._selectHeroModel.HeroId
                        });
                    this._itemConsumeConfig.SubType == d.ConsumeItemType.HeroManualBox ? n.Items = [this._itemId, this._selectCount, o, this._selectIndex] : n.Items = [this._itemId, this._selectCount, o], t.Items = [n], p.RpcComponent.Instance.Call(t, function(t) {
                        m.UIUtlity.ShwDisplayRewardPanel(t.Rewards), l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_ITEM_SELECT_USE_REFRESH, e._itemId), l.UIManager.Instance.BackUIPanel()
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = this;
                    if (-1 != this.HeroNode.children.indexOf(t)) {
                        var o = p.DataCenter.Instance.GetDataList(c.UserHero_Model),
                            r = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroJob_Limit_Star"),
                            i = [];
                        o.forEach(function(e) {
                            n._canSelectHeroIdMap[e.HeroId] && e.StarLevel >= r && i.push(e)
                        });
                        var a = {};
                        a.AllHeros = i, a.LimitCount = 1, a.SelectHeros = this._selectHeroModel ? [this._selectHeroModel] : [], a.CallBack = this.SelectHeroCallBack.bind(this), l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonSelectHeroPanel.Path, a)
                    } else if (-1 != this.ItemContent.children.indexOf(t)) {
                        if (this._itemConsumeConfig.SubType == d.ConsumeItemType.HeroManualBox) {
                            var s = this.ItemContent.children.indexOf(t);
                            if (s > -1) {
                                var u = t.getComponent(y.ItemComponent);
                                if (this._selectIndex == s) u.SetSelectFlagState(!1), this._selectIndex = -1;
                                else {
                                    var h = this.ItemContent.children[this._selectIndex];
                                    h && h.getComponent(y.ItemComponent).SetSelectFlagState(!1), u.SetSelectFlagState(!0), this._selectIndex = s
                                }
                            }
                        }
                        m.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                    }
                }, t.prototype.SelectHeroCallBack = function(e) {
                    e.length > 0 ? this._selectHeroModel = e[0] : this._selectHeroModel = null, this.SetHeroNode(), this.SetSelectItemNodes()
                }, i([C(cc.Label)], t.prototype, "Name", void 0), i([C(cc.Label)], t.prototype, "ItemDesc", void 0), i([C(cc.Node)], t.prototype, "ItemNode", void 0), i([C(cc.Label)], t.prototype, "Step1", void 0), i([C(cc.Node)], t.prototype, "HeroNode", void 0), i([C(cc.Label)], t.prototype, "Step2", void 0), i([C(cc.Node)], t.prototype, "ItemContent", void 0), i([C(cc.Node)], t.prototype, "MaskNode", void 0), i([C(cc.Label)], t.prototype, "Hint", void 0), i([C(g.default)], t.prototype, "SliderComponent", void 0), i([C(cc.Label)], t.prototype, "SelectCount", void 0), i([C(cc.Button)], t.prototype, "UseButton", void 0), i([C(cc.Label)], t.prototype, "UseLabel", void 0), i([C(cc.Node)], t.prototype, "UseInfoNode", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SliderComponent": "SliderComponent"
    }],
    HeroJobSyntheticSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "14c32bA6VBFQ4zv5GYm8Ygk", "HeroJobSyntheticSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./HeroJobBookSyntheticPanel"),
            y = e("./LuckyCharmChooseShell"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/LuckyCharmTabComponent"),
            I = e("../Components/ItemComponent"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.SelectHint = null, t.CustomLayout = null, t.ResetButton = null, t.SureButton = null, t.SureLabel = null, t.HintNode = null, t.HintLayout = null, t.TabButton = null, t.TabLabel = null, t.TabArrow = null, t._curStatus = -1, t._curSelectTab = -1, t._tabComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CHECK, this.OnShellItemClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CHECK, this.OnShellItemClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmChooseShell", cc.Prefab), this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmTabComponent", cc.Prefab), this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        t._shellPrefab = e[0], t._tabPrefab = e[1], t._itemPrefab = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "heroJob_select".ToUILocale(), this.SureLabel.string = "ok".ToUILocale(), this.TabLabel.string = "heroJob_stage".ToUILocale(), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.SureButton.node.on("click", this.OnSureButtonClick, this), this.TabButton.node.on("click", this.OnTabButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._selectItemIds = t[0], this._selectNames = [];
                    var o = {};
                    this.SetTabDescs(), this._itemIds = this.GetDatasByQuality(0), this._selectItemIds.forEach(function(e) {
                        o[e] || (o[e] = 0), o[e] += 1, n._selectNames.push(e + "_" + o[e])
                    })
                }, t.prototype.GetDatasByQuality = function(e) {
                    var t = f.default.GetHeroJobItems(),
                        n = [];
                    for (var o in t) t[o].sort(function(e, t) {
                        return e.ItemId - t.ItemId
                    });
                    if (e > 0) {
                        if (t[e])
                            for (var r = 0; r < t[e].length; r++)
                                for (var i = t[e][r], a = 0; a < i.Count; a++) n.push(i.ItemId)
                    } else
                        for (var o in t)
                            for (r = 0; r < t[o].length; r++)
                                for (i = t[o][r], a = 0; a < i.Count; a++) n.push(i.ItemId);
                    return n
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetListView(), this.SetTab(), this.SetTabDescNodes()
                }, t.prototype.SetListView = function() {
                    this._initLayout || (this._initLayout = !0, this.CustomLayout.Init(this._shellPrefab)), this.CustomLayout.RenderLayOut(this._itemIds.length)
                }, t.prototype.SetTab = function() {
                    this.TabLabel.string = this._curSelectTab > -1 ? this._tabDescs[this._curSelectTab] : "common_quality".ToUILocale(), this.TabArrow.scaleY = this._curStatus
                }, t.prototype.SetTabDescNodes = function() {
                    var e = this;
                    this._tabDescs.forEach(function(t, n) {
                        if (!e._tabComponents[n]) {
                            var o = cc.instantiate(e._tabPrefab);
                            o.parent = e.HintLayout, e._tabComponents[n] = o.getComponent(m.default)
                        }
                        e._tabComponents[n].InitUI(e._curSelectTab, n, t, e._tabDescs.length)
                    })
                }, t.prototype.GetItemCount = function(e, t) {
                    for (var n = 0, o = 0; o <= e; o++) this._itemIds[o] && this._itemIds[o] == t && n++;
                    return n
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = e.getComponent(y.default),
                            r = n._itemIds[t];
                        o.InitHeroJob(r, 1, n._itemPrefab);
                        var i = n.GetItemCount(t, r);
                        o.node.name = r + "_" + i;
                        var a = n._selectNames.includes(o.node.name);
                        o.SetCheckMark(a)
                    })
                }, t.prototype.OnResetButtonClick = function() {
                    this.HintNode.active = !1, this._curStatus = -1, this._curSelectTab = -1, this._itemIds = this.GetDatasByQuality(0), this.SetListView(), this.SetTab(), this.SetTabDescNodes()
                }, t.prototype.OnSureButtonClick = function() {
                    this._selectItemIds.length > 0 && this._selectItemIds.sort(function(e, t) {
                        return e - t
                    }), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_HEROJOB_ITEM_SELECT, this._selectItemIds), this.Close()
                }, t.prototype.OnTabButtonClick = function() {
                    this._curStatus = -1 * this._curStatus, this.HintNode.active = 1 == this._curStatus, this.SetTab()
                }, t.prototype.SetTabDescs = function() {
                    var e = this,
                        t = f.default.GetJobQualityConfigs();
                    this._tabDescs = [], this._tabDatas = [], this._tabDatas.push(0), this._tabDescs.push("allianceLog_all".ToUILocale()), t.forEach(function(t) {
                        t.NextId && (e._tabDatas.push(t.Id), e._tabDescs.push("heroJob_quality_tab".ToUILocale().Fmt(t.Id)))
                    })
                }, t.prototype.OnShellItemClick = function(e) {
                    var t = this._selectNames.indexOf(e.node.name),
                        n = Number(e.node.name.split("_")[0]);
                    if (t > -1) {
                        var o = this._selectItemIds.indexOf(n);
                        this._selectItemIds.splice(o, 1), this._selectNames.splice(t, 1), e.SetCheckMark(!1)
                    } else if (this._selectItemIds.length > 0) {
                        var r = this._selectItemIds[0],
                            i = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, r),
                            a = u.ConfigDataComponent.Instance.GetConfigById(c.ItemQuality_Config, i.Quality);
                        if (this._selectItemIds.length >= a.HeroJobCount) return void g.UIUtlity.ShowFloatingHint("heroPalace_resolve_count_limit".ToUILocale());
                        if (u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, n).Quality != i.Quality) return void g.UIUtlity.ShowFloatingHint("heroJob_same_satge".ToUILocale());
                        this._selectItemIds.push(n), this._selectNames.push(e.node.name), e.SetCheckMark(!0)
                    } else this._selectItemIds.push(n), this._selectNames.push(e.node.name), e.SetCheckMark(!0)
                }, t.prototype.OnSelectTab = function(e) {
                    this.HintNode.active = !1, this._curStatus = -1, this._curSelectTab = e;
                    var t = this._tabDatas[e];
                    this._itemIds = this.GetDatasByQuality(t), this.SetListView(), this.SetTab(), this.SetTabDescNodes()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.CustomLayout.node.children.indexOf(t.parent.parent) && g.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t)
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.RichText)], t.prototype, "SelectHint", void 0), i([v(p.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Button)], t.prototype, "ResetButton", void 0), i([v(cc.Button)], t.prototype, "SureButton", void 0), i([v(cc.Label)], t.prototype, "SureLabel", void 0), i([v(cc.Node)], t.prototype, "HintNode", void 0), i([v(cc.Node)], t.prototype, "HintLayout", void 0), i([v(cc.Button)], t.prototype, "TabButton", void 0), i([v(cc.Label)], t.prototype, "TabLabel", void 0), i([v(cc.Node)], t.prototype, "TabArrow", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyCharmTabComponent": "LuckyCharmTabComponent",
        "./HeroJobBookSyntheticPanel": "HeroJobBookSyntheticPanel",
        "./LuckyCharmChooseShell": "LuckyCharmChooseShell"
    }],
    HeroListComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f7205KC7CFGSq/5VVXCIneg", "HeroListComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroListType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/CustomLayout"),
            m = e("../Components/ItemComponent"),
            I = e("../../../GamePlay/Components/Components"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../Components/HeroElementGroup"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../Consts/Consts"),
            S = e("../Panel/HeroDungeonPanel"),
            w = e("../Panel/NoviceTrainingPanel"),
            P = e("../Panel/SeasonSecretJourneyPanel"),
            A = e("../../Auxiliary/GuideManager"),
            T = e("./ItemClickComponent"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.FormationNormal = 1] = "FormationNormal", e[e.FormationHP = 2] = "FormationHP", e[e.FormationLocked = 3] = "FormationLocked", e[e.FormationUpDown = 4] = "FormationUpDown", e[e.FormationAngel = 5] = "FormationAngel"
        })(l = n.HeroListType || (n.HeroListType = {}));
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HeroElementGroup = null, t.ScrollView = null, t.HeroCustomLayout = null, t._isHeroLayoutInit = !1, t._heroDataMap = new Map, t._spacingOffsetY = 0, t._activityId = 0, t._limitElement = 0, t.SelectSIds = [], t
            }
            var n;
            return r(t, e), n = t, Object.defineProperty(t.prototype, "HeroDatas", {
                get: function() {
                    return this._heroesData
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this), c.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_HOLD, this.OnHoldHero, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero), c.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_HOLD, this.OnHoldHero, this)
            }, t.prototype.SetItemClickNeedHold = function(e) {
                void 0 === e && (e = !1), this._itemClickNeedHold = e
            }, t.prototype.Init = function(e, t, n, o, r, i, p) {
                return void 0 === e && (e = l.Normal), a(this, void 0, void 0, function() {
                    var a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._currentListType = e, this._componentData = t, this._activityId = o, this._advantageElement = r, this._fontSize = i, this._itemSize = p, void 0 !== this._itemPrefab ? [3, 2] : (a = this, [4, c.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent)]);
                            case 1:
                                if (a._itemPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                s.label = 2;
                            case 2:
                                return e == l.FormationAngel ? this.InitAngelData(t) : this.InitHeroData(t, n), t && t.SelectIds && (this.SelectSIds = t.SelectIds), this._currentElement = u.HeroElementType.None, t && t.LimitElement ? this._limitElement = t.LimitElement : this._limitElement = 0, e == l.FormationAngel ? (this.RenderCurrentLayout(), [2]) : (this.ConfigHeroData(), this._limitElement > 0 ? this.HeroElementGroup.LimitElement(t.LimitElement, t.IsSingleElement) : t && t.LimitElementArray && t.LimitElementArray.length > 0 ? this.HeroElementGroup.LimitElementArray(t.LimitElementArray) : this.HeroElementGroup.SetDefault(), [2])
                        }
                    })
                })
            }, t.prototype.InitHeroData = function(e, t) {
                if (e && e.HeroesData) this._heroesData = e.HeroesData;
                else {
                    this._heroesData = I.DataCenter.Instance.GetDataList(p.UserHero_Model);
                    var n = d.DataCenter.Instance.ActivityConfigs[this._activityId];
                    n && n.Common.Type == b.ActivityType.HeroDungeon ? S.default.SortHeroList(this._heroesData, this._activityId) : n && n.Common.Type == b.ActivityType.NoviceTraining ? this._heroesData = w.default.SortHeroList(this._heroesData, this._activityId) : n && n.Common.Type == b.ActivityType.SeasonExpedition ? this._heroesData = P.default.GetHeroList(this._heroesData, this._activityId, t) : (t || (t = u.FormationIdType.MainLine), t == u.FormationIdType.AncientSacred1 ? this._heroesData = v.default.Instance.SortHeroByLotFormations([u.FormationIdType.AncientSacred1, u.FormationIdType.AncientSacred2]) : t == u.FormationIdType.AncientSacred2 ? this._heroesData = v.default.Instance.SortHeroByLotFormations([u.FormationIdType.AncientSacred2, u.FormationIdType.AncientSacred1]) : v.default.Instance.CustomSortHeroList(this._heroesData, t))
                }
            }, t.prototype.InitAngelData = function(e) {
                e && e.AngelsData ? this._angelsData = e.AngelsData : this._angelsData = I.DataCenter.Instance.GetDataList(p.UserAngel_Model), v.default.Instance.SortAngels(this._angelsData)
            }, t.prototype.RefreshData = function(e) {
                this._heroesData = e, this.ConfigHeroData(), this.RenderCurrentLayout()
            }, t.prototype.SetItemClickCallback = function(e) {
                this._clickCallback = e
            }, t.prototype.SetItemHoldCallback = function(e) {
                this._holdCallback = e
            }, t.prototype.SetSelectCallback = function(e) {
                this._selectCallback = e
            }, t.prototype.ConfigHeroData = function() {
                this._heroDataMap.clear();
                var e = [];
                this._heroDataMap.set(u.HeroElementType.All, e);
                for (var t = 0; t < this._heroesData.length; t++) {
                    var n = this._heroesData[t],
                        o = I.ConfigDataComponent.Instance.GetConfigById(_.HeroBase_Config, n.HeroId).ElementType;
                    if (this._limitElement > 0 && o == b.HeroElementType.Chaos) {
                        var r = I.ConfigDataComponent.Instance.GetConfigById(_.HeroStar_Config, n.StarLevel).ChaosExtraAddon[0].Items[0];
                        if (this._limitElement > r) continue
                    }
                    e.push(n);
                    var i = this._heroDataMap.get(o);
                    i ? i.push(n) : ((i = []).push(n), this._heroDataMap.set(o, i))
                }
            }, t.prototype.OnSwitchHeroElement = function(e) {
                this._currentElement != e && (this._currentElement = e, this.RenderCurrentLayout())
            }, t.prototype.GetHeroDataByElement = function() {
                return this._heroDataMap.get(this._currentElement)
            }, t.prototype.RenderCurrentLayout = function() {
                if (this._currentListType == l.FormationAngel) this.InitHeroLayout(), this.ScrollView.stopAutoScroll(), this.HeroCustomLayout.RenderLayOut(this._angelsData.length);
                else {
                    var e = this.GetHeroDataByElement(),
                        t = 0;
                    switch (null != e && (t = e.length), this._currentListType) {
                        case l.FormationHP:
                            this._spacingOffsetY = 40;
                            break;
                        default:
                            this._spacingOffsetY = 0
                    }
                    this.InitHeroLayout(), this.ScrollView.stopAutoScroll(), this.HeroCustomLayout.RenderLayOut(t, void 0, this.HeroCustomLayout.SpaceX + this._spacingOffsetY)
                }
                y.UIUtlity.AnimationItemsByType1(this.HeroCustomLayout.node.children)
            }, t.prototype.InitHeroLayout = function() {
                this._isHeroLayoutInit || (this._isHeroLayoutInit = !0, this.HeroCustomLayout.Init(this._itemPrefab))
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (this.HeroCustomLayout == t)
                    if (this._currentListType == l.FormationAngel) e.forEach(function(e, t) {
                        var o = n._angelsData[t].AngelId;
                        e.getComponent(T.default).SetNeedHold(n._itemClickNeedHold);
                        var r = e.getComponent(m.ItemComponent);
                        r.Init(n._angelsData[t], m.ItemComponentType.Angel), r.node.name = o.toString(), n.SelectSIds.indexOf(o) > -1 && (n._selectCallback ? n._selectCallback(r, !0) : r.SetSelectFlagState(!0))
                    });
                    else {
                        var o = this.GetHeroDataByElement();
                        e.forEach(function(e, t) {
                            var r = o[t].Sid;
                            e.getComponent(T.default).SetNeedHold(n._itemClickNeedHold);
                            var i = e.getComponent(m.ItemComponent);
                            i.Init(o[t], m.ItemComponentType.HeroInfo), i.node.name = r.toString(), n._fontSize && n._itemSize && i.SetLabelFontSize(i.HeroLevel, n._fontSize, n._itemSize);
                            var a = n.SelectSIds.indexOf(r);
                            a > -1 && (n._selectCallback ? n._selectCallback(i, !0) : i.SetSelectFlagState(!0)), n.RefreshItemByType(r, i, a)
                        })
                    }
            }, t.prototype.RefreshItemByType = function(e, t, n) {
                switch (this._currentListType) {
                    case l.FormationHP:
                        if (this._componentData && this._componentData.HeroesHP) {
                            var o = this._componentData.HeroesHP.get(e);
                            null != o ? t.SetHeroHp(o) : t.SetHeroHp()
                        } else t.SetHeroHp();
                        this._activityId && this._activityId > 0 && (i = d.DataCenter.Instance.ActivityConfigs[this._activityId]).Common.Type == u.ActivityType.SeasonExpedition && (t.HeroLevel.node.active = !1);
                        break;
                    case l.FormationLocked:
                        var r = -1;
                        this._componentData && this._componentData.LockedHeroes && (r = this._componentData.LockedHeroes.indexOf(e)), r > -1 ? t.SetLockFlag(!0) : t.SetLockFlag(!1);
                        break;
                    case l.FormationUpDown:
                        if (this._activityId && this._activityId > 0) {
                            var i;
                            if (!(i = d.DataCenter.Instance.ActivityConfigs[this._activityId])) return;
                            switch (i.Common.Type) {
                                case b.ActivityType.ElementTest:
                                    var a = i.CustomPart.Element;
                                    if (g = d.DataCenter.Instance.GetDataById(p.UserHero_Model, e)) {
                                        var s = I.ConfigDataComponent.Instance.GetConfigById(_.HeroBase_Config, g.HeroId);
                                        t.SetUpDown(s.ElementType == a)
                                    }
                                    break;
                                case b.ActivityType.HeroDungeon:
                                    var c = i.CustomPart.HeroId;
                                    (g = d.DataCenter.Instance.GetDataById(p.UserHero_Model, e)) && t.SetUpDown(g.HeroId == c);
                                    break;
                                case b.ActivityType.WorldBoss:
                                    var h = i.CustomPart.Bonus[0];
                                    if (1 == h) {
                                        var f = i.CustomPart.Bonus[1];
                                        (g = d.DataCenter.Instance.GetDataById(p.UserHero_Model, e)) && t.SetUpDown(g.HeroId == f)
                                    } else 2 == h && (a = i.CustomPart.Bonus[1], (g = d.DataCenter.Instance.GetDataById(p.UserHero_Model, e)) && (s = I.ConfigDataComponent.Instance.GetConfigById(_.HeroBase_Config, g.HeroId), t.SetUpDown(s.ElementType == a)));
                                    break;
                                case b.ActivityType.NoviceTraining:
                                    var y = i.CustomPart.HeroIds;
                                    (g = d.DataCenter.Instance.GetDataById(p.UserHero_Model, e)) && y.includes(g.HeroId) && t.SetUpDown(!0), e < 0 ? (t.SetLockFlag(!0, "lock_red", !0), t.SetUpDown(!0)) : t.SetLockFlag(!1)
                            }
                        }
                }
                var g;
                n > -1 && (this._componentData && this._componentData.IsSelectHideMask || t.EnableHeroMask()), this._advantageElement && this._currentListType != l.FormationAngel && (g = d.DataCenter.Instance.GetDataById(p.UserHero_Model, e)) && (s = I.ConfigDataComponent.Instance.GetConfigById(_.HeroBase_Config, g.HeroId), t.SetUpDown(s.ElementType == this._advantageElement))
            }, t.prototype.OnClickHero = function(e, t) {
                t.parent.name == n.LayoutName && null != this._clickCallback && this._clickCallback(e, t)
            }, t.prototype.OnHoldHero = function(e, t) {
                A.default.Instance.IsInGuide || t.parent.name == n.LayoutName && this._holdCallback && this._holdCallback(e, t)
            }, t.prototype.RefreshScrollViewBySIds = function(e, t) {
                this.SelectSIds = [];
                for (var n = 0; n < e.length; n++) {
                    var o = e[n];
                    0 != o && this.SelectSIds.push(o)
                }
                this._componentData || (this._componentData = {}), t && (this._currentListType == l.FormationAngel ? this._componentData.LockedAngels = t : this._componentData.LockedHeroes = t);
                var r = this.HeroCustomLayout.node.childrenCount;
                for (n = 0; n < r; n++) {
                    var i = this.HeroCustomLayout.node.children[n],
                        a = i.getComponent(m.ItemComponent),
                        s = Number.parseInt(i.name),
                        c = e.indexOf(s);
                    c > -1 ? this._selectCallback ? this._selectCallback(a, !0) : a.SetSelectFlagState(!0) : this._selectCallback ? this._selectCallback(a, !1) : a.SetSelectFlagState(!1), this.RefreshItemByType(s, a, c)
                }
            }, t.prototype.UnselectHeroItemNode = function(e) {
                for (var t, n = this.HeroCustomLayout.node.childrenCount, o = 0; o < n; o++) {
                    var r = this.HeroCustomLayout.node.children[o];
                    if (Number.parseInt(r.name) == e && r.active) {
                        t = r;
                        var i = r.getComponent(m.ItemComponent);
                        this._selectCallback ? this._selectCallback(i, !1) : i.SetSelectFlagState(!1);
                        break
                    }
                }
                var a = this.SelectSIds.indexOf(e);
                return this.SelectSIds.splice(a, 1), t
            }, t.prototype.GetBestTeamMembers = function(e) {
                var t = [],
                    n = [];
                v.default.Instance.SortData(u.SortDataType.Hero, this._heroesData, [{
                    Items: [u.SortType.Power, -1]
                }, {
                    Items: [u.SortType.Level, -1]
                }, {
                    Items: [u.SortType.StarLevel, -1]
                }]);
                var o = {};
                if (e)
                    for (var r = 0, i = e; r < i.length; r++) {
                        var a = i[r];
                        a && (o[I.DataCenter.Instance.GetDataById(p.UserHero_Model, a).HeroId] = !0)
                    }
                for (var s = 0; s < this._heroesData.length; s++) {
                    var l = this._heroesData[s];
                    if (!o[l.HeroId] && -1 == n.indexOf(l.HeroId) && (t.push(l), n.push(l.HeroId), t.length >= y.UIUtlity.TeamMemberCount)) break
                }
                return t
            }, t.prototype.IsHideElementContent = function(e) {
                this.HeroElementGroup.node.active = !e, e ? (this.ScrollView.node.parent.y = 54, this.ScrollView.node.parent.height = 550) : (this.ScrollView.node.parent.y = 3, this.ScrollView.node.parent.height = 444), this.ScrollView.node.height = (this.ScrollView.node.parent.height - 28) / this.ScrollView.node.scaleY, this.SetNodeChildrenWidget(this.ScrollView.node.parent)
            }, t.prototype.SetNodeChildrenWidget = function(e) {
                var t = this;
                e.children.forEach(function(e) {
                    var n = e.getComponent(cc.Widget);
                    n && n.updateAlignment(), e.children.forEach(function(e) {
                        t.SetNodeChildrenWidget(e)
                    })
                })
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                this._itemPrefab && c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemPrefab = null
            }, t.LayoutName = "HeroLayout", i([k(C.default)], t.prototype, "HeroElementGroup", void 0), i([k(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([k(g.default)], t.prototype, "HeroCustomLayout", void 0), n = i([L], t)
        }(cc.Component);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent",
        "../Panel/HeroDungeonPanel": "HeroDungeonPanel",
        "../Panel/NoviceTrainingPanel": "NoviceTrainingPanel",
        "../Panel/SeasonSecretJourneyPanel": "SeasonSecretJourneyPanel",
        "./ItemClickComponent": "ItemClickComponent"
    }],
    HeroListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a3007UjAaRCT7mnSe9YjHhL", "HeroListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Tab = n.LayoutMode = void 0;
        var l, c, u, p = e("../../../EZFramework/EZFramework"),
            d = e("../../../Consts/Consts"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../../../GamePlay/Components/Components"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../Components/HeroCardComponent"),
            v = e("../Components/HeroElementGroup"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../Components/CustomToggle"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../Components/HandbookComponent"),
            A = e("../../RedDot/RedDotDataHandler"),
            T = e("../../RedDot/RedDotManager"),
            R = e("./IWantStrongPanel"),
            L = e("../../Auxiliary/GuideManager"),
            k = e("./HeroFavorListPage"),
            O = e("../../Auxiliary/GameRecord"),
            M = e("../../Components/Components"),
            D = e("../../../Consts/Consts"),
            B = e("../Components/AsyncLayout"),
            N = cc._decorator,
            E = N.ccclass,
            U = N.property;
        (function(e) {
            e[e.CardMode = 0] = "CardMode", e[e.ItemMode = 1] = "ItemMode"
        })(l = n.LayoutMode || (n.LayoutMode = {})),
        function(e) {
            e[e.Hero = 0] = "Hero", e[e.Handbook = 1] = "Handbook", e[e.Favor = 2] = "Favor", e[e.None = 3] = "None"
        }(c = n.Tab || (n.Tab = {})),
        function(e) {
            e[e.LR = 0] = "LR", e[e.UR = 1] = "UR", e[e.SP = 2] = "SP", e[e.High = 3] = "High", e[e.Middle = 4] = "Middle", e[e.Normal = 5] = "Normal"
        }(u || (u = {}));
        var G = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Normal, !0, !0), t.ItemScrollView = null, t.ItemCustomLayout = null, t.CardScrollView = null, t.CardCustomLayout = null, t.SwitchLayoutBtn = null, t.SortSettingBtn = null, t.SkinShopBtn = null, t.UpStarBtn = null, t.SwitchLayoutBtnLabel = null, t.SortSettingBtnLabel = null, t.SkinShopBtnLabel = null, t.UpStarBtnLabel = null, t.HeroElementGroup = null, t.HeroCareerNode = null, t.HeroCareerGroupNode = null, t.HeroCareerGroupLight = null, t.HeroCareerGroupLayoutNode = null, t.ShowCareerGroupButton = null, t.Toggles = [], t.HeroAttrContainer = null, t.FormationBtn = null, t.FormationBtnLabel = null, t.RecommendBtn = null, t.RecommendBtnLabel = null, t.HeroCountLabel = null, t.HandbookScrollView = null, t.FavorPageContainer = null, t.FavorGiftShopButton = null, t.FavorGiftShopButtonLabel = null, t.ELEMENT_HERO_INDEXS = [d.HeroElementType.Chaos, d.HeroElementType.Break, d.HeroElementType.Fight, d.HeroElementType.Heart, d.HeroElementType.Power, d.HeroElementType.Tech], t._isItemLayoutInit = !1, t._isCardLayoutInit = !1, t._elementAndCareerHeroMap = new Map, t._handbokDataMap = new Map, t._handbookElementMap = new Map, t._handbookComponents = {}, t._selectHeroSid = 0, t._handbookLayoutNodes = [], t._isInitCareerGroup = !1, t._isShowCareerGroup = !1, t._curCareer = 0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.OnEvents(), p.Game.EventDispatcher.On(f.EventKeys.EVENT_SET_FORMATION, this.OnSetFormation, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_REFRESH_HANDBOOK_ITEM, this.OnRefreshHandbookItem, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_REFRESH_HEROLIST_SORT, this.OnReSortHero, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_SET_SELECT_HEROSID, this.OnSetSelectHeroSid, this)
            }, t.prototype.onDisable = function() {
                this.OffEvents(), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_SET_FORMATION, this.OnSetFormation), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_REFRESH_HANDBOOK_ITEM, this.OnRefreshHandbookItem, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_REFRESH_HEROLIST_SORT, this.OnReSortHero, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_SET_SELECT_HEROSID, this.OnSetSelectHeroSid, this)
            }, t.prototype.OnEvents = function() {
                p.Game.EventDispatcher.On(f.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
            }, t.prototype.OffEvents = function() {
                p.Game.EventDispatcher.Off(f.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.ItemComponent), n = this.LoadDynamicAsset(y.BundlePath.HeroCardComponent), o = this.LoadDynamicAsset(y.BundlePath.HandbookComponent), r = this.LoadDynamicAsset(y.BundlePath.HANDBOOK_BORDER_BG, cc.SpriteAtlas), i = this.LoadDynamicAsset("HeroListPanel/HeroHandbookItem", cc.Prefab), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                    a._itemPrefab = e[0], a._cardPrefab = e[1], a._handbookPrefab = e[2], a._heroBoderAtlas = e[3], a._handbookLayoutPrefab = e[4]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SwitchLayoutBtn.node.on("click", this.OnSwitchLayoutMode, this), this.SortSettingBtn.node.on("click", this.OnSettingSorting, this), this.SkinShopBtn.node.on("click", this.OnClickSkinShop, this), this.UpStarBtn.node.on("click", this.OnUpStar, this), this.FormationBtn.node.on("click", this.OnOpenFormationPanel, this), this.RecommendBtn.node.on("click", this.OnOpenRecommendPanel, this), this.ShowCareerGroupButton.node.on("click", this.OnShowCareerGroupButtonClick, this), this.FavorGiftShopButton.node.on("click", this.OnFavorGiftShopButtonClick, this), this.SwitchLayoutBtnLabel.string = "heroList_showing_switch".ToUILocale(), this.SortSettingBtnLabel.string = "sortSetting".ToUILocale(), this.SkinShopBtnLabel.string = "skin_shop".ToUILocale(), this.UpStarBtnLabel.string = "upStar_temple".ToUILocale(), this.FormationBtnLabel.string = "formation_title".ToUILocale(), this.RecommendBtnLabel.string = "formation_recommend".ToUILocale(), this.FavorGiftShopButtonLabel.string = "FavorUpgrade_GiftShopBtn".ToUILocale(), this.Toggles[c.Hero].Init("hero_label".ToUILocale()), this.Toggles[c.Handbook].Init("handbook_label".ToUILocale()), this.Toggles[c.Favor].Init("hero_favor_title".ToUILocale());
                for (var t = 0; t < this.Toggles.length; t++) this.Toggles[t].node.on("toggle", this.OnSwitchTab, this);
                this.HandbookScrollView.node.getComponent(cc.Widget).updateAlignment();
                var n = this.HandbookScrollView.node.getBoundingBoxToWorld();
                this._handbookScrollViewRect = new cc.Rect(n.x, n.y, this.HandbookScrollView.node.width, this.HandbookScrollView.node.height), this.HandbookScrollView.node.on("scrolling", this.OnScrolling, this)
            }, t.prototype.OnScrolling = function() {
                p.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CHECK_BUNDINGBOX, this._handbookScrollViewRect)
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this._currentElement = d.HeroElementType.None, this._currentLayoutMode = l.CardMode
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t);
                var n = t[0];
                this._defaultTab = null != n ? n : c.Hero, this._selectHeroSid = 0
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.CheckGameModule(), this.BindRedDot(), this.ConfigDataMap(), this.RefreshHeroRedDot(), this.ConfigHandbookHeroData(), this.ConfigHeroLimitLabnel(), this.SetElementRedDot(), this._currentTab = c.None;
                var n = this.Toggles[this._defaultTab];
                n.isChecked = !0, this.OnSwitchTab(n)
            }, t.prototype.CheckGameModule = function() {
                var e = w.default.Instance.IsGameModuleUnlock(d.GameModuleType.Favor);
                e[0] ? this.Toggles[c.Favor].SetInteractable(!0) : this.Toggles[c.Favor].SetInteractable(!1, e[1])
            }, t.prototype.BindRedDot = function() {
                var e = this.Toggles[c.Hero].node,
                    t = this.Toggles[c.Handbook].node,
                    n = this.Toggles[c.Favor].node;
                T.RedDotManager.Instance.Bind(e, T.RedDotManager.Instance.RedDot.HeroListNode, 8, 8), T.RedDotManager.Instance.Bind(t, T.RedDotManager.Instance.RedDot.HeroHandbookNode, 8, 8), T.RedDotManager.Instance.Bind(n, T.RedDotManager.Instance.RedDot.HeroFavorNode, 8, 8)
            }, t.prototype.ConfigDataMap = function() {
                this._elementAndCareerHeroMap.clear();
                var e = I.DataCenter.Instance.GetDataList(h.UserHero_Model);
                w.default.Instance.CustomSortHeroList(e);
                var t = [];
                this._elementAndCareerHeroMap.set(d.HeroElementType.All, (new Map).set(d.CareerType.Any, t));
                for (var n = 0; n < e.length; n++) {
                    var o = e[n];
                    t.push(o);
                    var r = I.ConfigDataComponent.Instance.GetConfigById(_.HeroBase_Config, o.HeroId),
                        i = r.ElementType,
                        a = this._elementAndCareerHeroMap.get(d.HeroElementType.All).get(r.Career);
                    a ? a.push(o) : (a = [o], this._elementAndCareerHeroMap.get(d.HeroElementType.All).set(r.Career, a));
                    var s = this._elementAndCareerHeroMap.get(i);
                    if (s) {
                        var l = s.get(r.Career);
                        l ? l.push(o) : (l = [o], s.set(r.Career, l));
                        var c = s.get(d.CareerType.Any);
                        c ? c.push(o) : (c = [o], s.set(d.CareerType.Any, c))
                    } else(s = new Map).set(d.CareerType.Any, [o]), s.set(r.Career, [o]), this._elementAndCareerHeroMap.set(i, s)
                }
                this._ownHeroIds = [];
                var u = I.DataCenter.Instance.GetDataList(h.HeroInfo_Model);
                for (n = 0; n < u.length; n++) this._ownHeroIds.push(u[n].HeroId)
            }, t.prototype.RefreshHeroRedDot = function() {
                this._canDevelopFormationHeroes = [], this._canWearGemFormationHeroes = [];
                for (var e = I.DataCenter.Instance.GetDataById(h.UserFormation_Model, d.FormationIdType.MainLine), t = 0; t < e.HeroIds.length; t++) {
                    var n = e.HeroIds[t];
                    0 != n && (A.RedDotDataHandler.Instance.IsHeroCanDevelop(n) && this._canDevelopFormationHeroes.push(n), (w.default.CheckHeroCanWearGem(n) || w.default.CheckHeroCanWearHigherGem(n)) && this._canWearGemFormationHeroes.push(n))
                }
            }, t.prototype.ConfigHandbookHeroData = function() {
                this._handbokDataMap.clear(), this._handbookElementMap.clear();
                for (var e = I.ConfigDataComponent.Instance.GetArrayConfig(_.HeroBase_Config), t = 0; t < e.length; t++) {
                    var n = e[t];
                    if (!n || n.Type != D.HeroRoleType.monster && n.Type != D.HeroRoleType.Boss && w.default.IsHeroShownAvailable(n)) {
                        var o;
                        o = n.CoreHero == d.CoreHeroTag.LR ? u.LR : n.CoreHero == d.CoreHeroTag.UR ? u.UR : n.CoreHero == d.CoreHeroTag.SP ? u.SP : n.StarLevel >= 5 ? u.High : n.StarLevel > 3 ? u.Middle : u.Normal;
                        var r = !1,
                            i = this._handbokDataMap.get(o);
                        this._ownHeroIds.indexOf(n.Id) > -1 && (r = !0);
                        var a = {
                            ItemId: n.Id,
                            StarLevel: n.StarLevel,
                            IsActive: r,
                            ElementType: n.ElementType,
                            Quality: n.Quality,
                            IsCoreHero: n.CoreHero >= 1,
                            IsActivityGet: 1 == n.ActivityGet,
                            ConfigStar: n.StarLevel,
                            MaxStarLevel: n.MaxStarLevel
                        };
                        i ? i.push(a) : ((i = []).push(a), this._handbokDataMap.set(o, i))
                    }
                }
                var s = this._handbookElementMap.get(d.HeroElementType.All);
                for (s = [], t = 0; t <= u.Normal; t++)
                    if (i = this._handbokDataMap.get(t)) {
                        i.sort(this.SortHandbookData.bind(this));
                        for (var l = 0; l < i.length; l++) {
                            var c = i[l].ItemId,
                                p = I.ConfigDataComponent.Instance.GetConfigById(_.HeroBase_Config, c).ElementType,
                                h = this._handbookElementMap.get(p);
                            h ? h.push(c) : ((h = []).push(c), this._handbookElementMap.set(p, h)), s.push(c)
                        }
                    } this._handbookElementMap.set(d.HeroElementType.All, s)
            }, t.prototype.SortHandbookData = function(e, t) {
                var n = this.ELEMENT_HERO_INDEXS.indexOf(e.ElementType),
                    o = this.ELEMENT_HERO_INDEXS.indexOf(t.ElementType);
                return n > o ? 1 : n < o ? -1 : e.Quality > t.Quality ? -1 : e.Quality < t.Quality ? 1 : e.IsActivityGet && !t.IsActivityGet ? -1 : !e.IsActivityGet && t.IsActivityGet ? 1 : e.ItemId > t.ItemId ? -1 : e.ItemId < t.ItemId ? 1 : 0
            }, t.prototype.ConfigHeroLimitLabnel = function() {
                this.HeroCountLabel.string = this._elementAndCareerHeroMap.get(d.HeroElementType.All).get(d.CareerType.Any).length + "/" + w.default.Instance.GetHeroCountLimit()
            }, t.prototype.SetElementRedDot = function() {
                var e = [];
                if (this._currentTab == c.Handbook)
                    for (var t = d.HeroElementType.Heart; t <= d.HeroElementType.Chaos; t++) {
                        var n = this._handbookElementMap.get(t);
                        if (n && n.length > 0)
                            for (var o = 0; o < n.length; o++) {
                                var r = n[o];
                                if (A.RedDotDataHandler.Instance.HasMeetGiftGotByHeroId(r)) {
                                    e.push(t);
                                    break
                                }
                            }
                    }
                this.HeroElementGroup.UpdateRedDots(e)
            }, t.prototype.InitItemLayout = function() {
                this._isItemLayoutInit || (this._isItemLayoutInit = !0, this.ItemCustomLayout.Init(this._itemPrefab, this.OnRenderHeroItem.bind(this), !1, 4))
            }, t.prototype.InitCardLayout = function() {
                this._isCardLayoutInit || (this._isCardLayoutInit = !0, this.CardCustomLayout.Init(this._cardPrefab, this.OnRenderHeroCard.bind(this), !1, 4))
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                if (this._defaultTab = t, this._currentTab != t) {
                    var n = this._currentElement == d.HeroElementType.None ? 0 : this._currentElement;
                    switch (this._currentElement = d.HeroElementType.None, this._currentTab = t, this.HeroAttrContainer.active = !0, this.SetAttrContentBtns(t), t) {
                        case c.Hero:
                            this.HeroElementGroup.SetElementModeByIndex(n), this.HeroCareerNode.active = !0, this.ResetCareerGroupUI(), this.FavorGiftShopButton.node.active = !1;
                            break;
                        case c.Handbook:
                            this.HeroElementGroup.SetElementModeByIndex(n), this.HeroCareerNode.active = !1, this.HeroElementGroup.node.y = 0, this.FavorGiftShopButton.node.active = !1;
                            break;
                        case c.Favor:
                            this.HeroElementGroup.SetElementModeByIndex(n), this.HeroCareerNode.active = !1, this.HeroElementGroup.node.y = 0, this.FavorGiftShopButton.node.active = !0
                    }
                    this._selectHeroSid = 0
                }
            }, t.prototype.SetAttrContentBtns = function() {
                this.SwitchLayoutBtn.node.active = !1, this.SortSettingBtn.node.active = !1, this.FormationBtn.node.active = !0, this.RecommendBtn.node.active = w.default.Instance.IsGameModuleOpen(d.GameModuleType.RecommendFormation) && w.default.Instance.IsGameModuleUnlock(d.GameModuleType.RecommendFormation)[0]
            }, t.prototype.GetHeroDataByElementAndCareer = function(e, t) {
                var n = this._elementAndCareerHeroMap.get(e);
                return n && n.get(t) || []
            }, t.prototype.RenderCurrentLayout = function() {
                var e = this,
                    t = void 0;
                switch (this._currentTab) {
                    case c.Hero:
                        t = this.GetHeroDataByElementAndCareer(this._currentElement, this._curCareer), this.HandbookScrollView.node.active = !1, this.FavorPageContainer.active = !1, this.ConfigHeroMode(t);
                        break;
                    case c.Handbook:
                        this.CardScrollView.node.active = !1, this.ItemScrollView.node.active = !1, this.FavorPageContainer.active = !1, this.HandbookScrollView.node.active = !0, this.HandbookScrollView.stopAutoScroll(), this.HandbookScrollView.scrollToTop(), this.ConfigHandbookNode(), this.scheduleOnce(function() {
                            p.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CHECK_BUNDINGBOX, e._handbookScrollViewRect)
                        }, .1);
                        break;
                    case c.Favor:
                        this.CardScrollView.node.active = !1, this.ItemScrollView.node.active = !1, this.HandbookScrollView.node.active = !1, this.FavorPageContainer.active = !0, p.EZLog.Log("FavorPageContainer height: " + this.FavorPageContainer.height), this.ConfigHeroFavorContainer()
                }
            }, t.prototype.ConfigHeroMode = function(e) {
                var t = 0;
                switch (null != e && (t = e.length), this._currentLayoutMode) {
                    case l.ItemMode:
                        this._isCardRender = !1, this.CardScrollView.node.active = !1, this.ItemScrollView.node.active = !0, this.InitItemLayout(), this.ItemScrollView.stopAutoScroll(), this._isItemRender ? this._lastCardCount != t ? this.ItemCustomLayout.RenderLayout(t, this.ItemCustomLayout.GetViewStartRowOrColumIndex()) : this.ItemCustomLayout.ReRender() : (this._isItemRender = !0, this.ItemCustomLayout.RenderLayout(t));
                        break;
                    case l.CardMode:
                        this._isItemRender = !1, this.CardScrollView.node.active = !0, this.ItemScrollView.node.active = !1, this.InitCardLayout(), this.CardScrollView.stopAutoScroll(), this._isCardRender ? this._lastCardCount != t ? this.CardCustomLayout.RenderLayout(t, this.CardCustomLayout.GetViewStartRowOrColumIndex()) : this.CardCustomLayout.ReRender() : (this._isCardRender = !0, this.CardCustomLayout.RenderLayout(t))
                }
                this._lastCardCount = t
            }, t.prototype.GetHeroScrollerIndex = function(e) {
                var t = this,
                    n = 0;
                if (this._selectHeroSid > 0) {
                    var o = e.findIndex(function(e) {
                        return e.Sid == t._selectHeroSid
                    });
                    if (o > -1) switch (this._currentLayoutMode) {
                        case l.ItemMode:
                            o > 7 && (n = o - 8);
                            break;
                        case l.CardMode:
                            o > 3 && (n = o - 4)
                    }
                }
                return n
            }, t.prototype.ConfigHandbookNode = function() {
                var e = this;
                this._handbookAnimationNodes = [];
                var t = [];
                this._handbokDataMap.forEach(function(e, n) {
                    t[n] = e
                }), t.forEach(function(t, n) {
                    var o = e._handbookLayoutNodes[n];
                    o || ((o = cc.instantiate(e._handbookLayoutPrefab)).parent = e.HandbookScrollView.content, e._handbookLayoutNodes[n] = o);
                    var r = e.CheckHerosElement(t);
                    if (e._handbookLayoutNodes[n].active = r > 0, r > 0) {
                        var i = o.getChildByName("Layout"),
                            a = o.getChildByName("Title").getComponent(cc.Sprite),
                            s = a.node.getChildByName("Label").getComponent(cc.Label),
                            l = w.default.Instance.IsGameModuleOpen(d.GameModuleType.HeroCollectShow) && w.default.Instance.IsGameModuleUnlock(d.GameModuleType.HeroCollectShow)[0],
                            c = a.node.getChildByName("TaskButton").getComponent(cc.Button);
                        c.node.active = l, l && (c.name = n.toString(), c.node.on("click", e.OnHandBookTaskButtonClick, e), c.node.getChildByName("RedDot").active = A.RedDotDataHandler.Instance.RefreshHeroHandbookCollectionTaskButton({
                            Value1: n
                        })), e.SetBgAndTitleByType(a, s, n);
                        for (var u = 0; u < t.length; u++) {
                            var p = t[u],
                                h = e._handbookComponents[p.ItemId];
                            if (!h) {
                                var f = cc.instantiate(e._handbookPrefab);
                                f.setParent(i), f.name = p.ItemId.toString(), f.on(cc.Node.EventType.TOUCH_END, e.OnClickHandbook, e), h = f.getComponent(P.default), e._handbookComponents[p.ItemId] = h
                            }
                            h.Init(p, e._heroBoderAtlas, 185);
                            var y = A.RedDotDataHandler.Instance.HasMeetGiftGotByHeroId(p.ItemId);
                            h.SetRedDotState(y), h.SetTagIcon(p.IsActivityGet)
                        }
                        e._handbookAnimationNodes = e._handbookAnimationNodes.concat(i.children)
                    }
                }), p.Game.EventDispatcher.Emit(f.EventKeys.EVENT_HANDBOOK_SHOW_BY_ELEMENT, this._currentElement), this.HandbookScrollView.content.getComponent(cc.Layout).updateLayout()
            }, t.prototype.CheckHerosElement = function(e) {
                if (this._currentElement == d.HeroElementType.All || this._currentElement == d.HeroElementType.None) return 1;
                for (var t = 0; t < e.length; t++)
                    if (e[t].ElementType == this._currentElement) return 1;
                return 0
            }, t.prototype.OnHandBookTaskButtonClick = function(e) {
                for (var t = Number(e.name), n = M.ConfigDataComponent.Instance.GetConfigById(_.LevelParam_Config, d.LevelParamType.HeroHandbookCollect), o = [], r = 0; r < n.Data2[t].Items.length; r++) {
                    var i = M.ConfigDataComponent.Instance.GetConfigById(_.TaskBase_Config, n.Data2[t].Items[r]);
                    o.push(i)
                }
                var a = {
                    IsActivity: !1
                };
                a.Title = "btn_task".ToUILocale(), a.FeatureTasks = o, p.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonTaskPanel.Path, [a])
            }, t.prototype.SetBgAndTitleByType = function(e, t, n) {
                return a(this, void 0, void 0, function() {
                    var o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                switch (n) {
                                    case u.LR:
                                        return [3, 1];
                                    case u.UR:
                                        return [3, 3];
                                    case u.SP:
                                        return [3, 5];
                                    case u.High:
                                        return [3, 7];
                                    case u.Middle:
                                        return [3, 8];
                                    case u.Normal:
                                        return [3, 9]
                                }
                                return [3, 10];
                            case 1:
                                return o = e, [4, g.UIUtlity.GetQualityTitleAtlasSprite("small_tittle_center_lr")];
                            case 2:
                                return o.spriteFrame = a.sent(), t.string = "handbook_lr".ToUILocale(), t.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(10)[1], [3, 11];
                            case 3:
                                return r = e, [4, g.UIUtlity.GetQualityTitleAtlasSprite("small_tittle_center_ur")];
                            case 4:
                                return r.spriteFrame = a.sent(), t.string = "handbook_ur".ToUILocale(), t.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(6)[1], [3, 11];
                            case 5:
                                return i = e, [4, g.UIUtlity.GetQualityTitleAtlasSprite("small_tittle_center_sp")];
                            case 6:
                                return i.spriteFrame = a.sent(), t.string = "handbook_sp".ToUILocale(), t.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(7)[1], [3, 11];
                            case 7:
                                return e.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_center_orange"), t.string = "hero_type_high".ToUILocale(), t.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(5)[1], [3, 11];
                            case 8:
                                return e.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_center_purple"), t.string = "hero_type_middle".ToUILocale(), t.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(4)[1], [3, 11];
                            case 9:
                                return e.spriteFrame = g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_center_blue"), t.string = "hero_type_normal".ToUILocale(), t.node.getComponent(cc.LabelOutline).color = g.UIUtlity.GetTitleInfoByQuality(3)[1], [3, 11];
                            case 10:
                                return [3, 11];
                            case 11:
                                return [2]
                        }
                    })
                })
            }, t.prototype.ConfigHeroFavorContainer = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._heroFavorListPage ? [3, 2] : [4, this.LoadDynamicAsset("HeroListPanel/HeroFavorListPage", cc.Prefab)];
                            case 1:
                                if (e = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                t = cc.instantiate(e), p.EZLog.Log("this.FavorPageContainer.height " + this.FavorPageContainer.height), t.height = this.FavorPageContainer.height, t.setParent(this.FavorPageContainer), this._heroFavorListPage = t.getComponent(k.default), n.label = 2;
                            case 2:
                                return this._heroFavorListPage.Init(), [2]
                        }
                    })
                })
            }, t.prototype.PlayHandbookAnimation = function() {
                this._isReDisplay ? this._isReDisplay = !1 : g.UIUtlity.AnimationItemsByType1(this._handbookAnimationNodes)
            }, t.prototype.OnClickHandbook = function(e) {
                var t = e.target.name,
                    n = Number.parseInt(t),
                    o = !1;
                this._ownHeroIds.indexOf(n) > -1 && (o = !0), b.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroHandbookPanel.Path, n, this._handbookElementMap.get(this._currentElement), null, !1, o, !0)
            }, t.prototype.RefreshScrollView = function(e) {
                var t = this,
                    n = this.GetHeroDataByElementAndCareer(this._currentElement, this._curCareer);
                switch (this._currentLayoutMode) {
                    case l.ItemMode:
                        e.forEach(function(e, o) {
                            var r = e.getComponent(m.ItemComponent),
                                i = I.DataCenter.Instance.GetDataById(h.HeroInfo_Model, n[o].HeroId);
                            i && i.PersonalityStar && i.PersonalityStar, r.Init(n[o], m.ItemComponentType.HeroInfo);
                            var a = n[o].Sid;
                            r.node.name = a.toString(), r.SetFormationFlag(), t._canDevelopFormationHeroes.indexOf(a) > -1 || t._canWearGemFormationHeroes.indexOf(a) > -1 ? r.SetRedDotState(!0) : r.SetRedDotState(!1)
                        });
                        break;
                    case l.CardMode:
                        e.forEach(function(e, o) {
                            var r = e.getComponent(C.default),
                                i = I.DataCenter.Instance.GetDataById(h.HeroInfo_Model, n[o].HeroId),
                                a = i && i.PersonalityStar ? i.PersonalityStar : 0;
                            r.Init(n[o], a);
                            var s = n[o].Sid;
                            r.node.name = s.toString(), r.SetFormationFlag(), t._canDevelopFormationHeroes.indexOf(s) > -1 || t._canWearGemFormationHeroes.indexOf(s) > -1 ? r.SetRedDotState(!0) : r.SetRedDotState(!1)
                        }), this.ShowGuide()
                }
            }, t.prototype.OnRenderHeroItem = function(e, t) {
                var n = this.GetHeroDataByElementAndCareer(this._currentElement, this._curCareer),
                    o = e.getComponent(m.ItemComponent);
                o.Init(n[t], m.ItemComponentType.HeroInfo);
                var r = n[t].Sid;
                o.node.name = r.toString(), o.SetFormationFlag(), this._canDevelopFormationHeroes.indexOf(r) > -1 || this._canWearGemFormationHeroes.indexOf(r) > -1 ? o.SetRedDotState(!0) : o.SetRedDotState(!1)
            }, t.prototype.OnRenderHeroCard = function(e, t) {
                var n = this.GetHeroDataByElementAndCareer(this._currentElement, this._curCareer),
                    o = e.getComponent(C.default),
                    r = I.DataCenter.Instance.GetDataById(h.HeroInfo_Model, n[t].HeroId),
                    i = r && r.PersonalityStar ? r.PersonalityStar : 0;
                o.Init(n[t], i), o.DisableCheckVisible();
                var a = n[t].Sid;
                o.node.name = a.toString(), o.SetFormationFlag(), this._canDevelopFormationHeroes.indexOf(a) > -1 || this._canWearGemFormationHeroes.indexOf(a) > -1 ? o.SetRedDotState(!0) : o.SetRedDotState(!1), this.ShowGuide()
            }, t.prototype.OnSwitchLayoutMode = function() {
                switch (this._currentLayoutMode) {
                    case l.ItemMode:
                        this._currentLayoutMode = l.CardMode, this.RenderCurrentLayout();
                        break;
                    case l.CardMode:
                        this._currentLayoutMode = l.ItemMode, this.RenderCurrentLayout()
                }
                O.default.SetItem(O.GameRecordDefine.HerolistShowMode, this._currentLayoutMode)
            }, t.prototype.OnSwitchHeroElement = function(e, t) {
                t == this.HeroElementGroup.node && this._currentElement != e && (this._selectHeroSid || (this._isCardRender = !1, this._isItemRender = !1), this._currentElement = e, this.RenderCurrentLayout(), this.SetElementRedDot())
            }, t.prototype.InitCareerGroup = function() {
                var e = this;
                this._isInitCareerGroup || (this._isInitCareerGroup = !0, this.HeroCareerGroupLayoutNode.children.forEach(function(t) {
                    t.on("click", e.OnHeroCareerClick, e)
                }))
            }, t.prototype.ResetCareerGroupUI = function() {
                this.InitCareerGroup(), this._isShowCareerGroup = !1, this.HeroCareerGroupNode.active = !1, this.ShowCareerGroupButton.node.y = 0, this.ShowCareerGroupButton.node.scaleY = -1, this.HeroElementGroup.node.y = 0, this.SetDefaultSelectCareer()
            }, t.prototype.OnShowCareerGroupButtonClick = function() {
                this._isShowCareerGroup ? (this._isShowCareerGroup = !1, this.HeroCareerGroupNode.active = !1, this.ShowCareerGroupButton.node.y = 0, this.ShowCareerGroupButton.node.scaleY = -1, this.HeroElementGroup.node.y = 0) : (this._isShowCareerGroup = !0, this.HeroCareerGroupNode.active = !0, this.ShowCareerGroupButton.node.y = 42, this.ShowCareerGroupButton.node.scaleY = 1, this.HeroElementGroup.node.y = 42), this.SetDefaultSelectCareer()
            }, t.prototype.SetDefaultSelectCareer = function() {
                this._curCareer = 0, this.HeroCareerGroupLight.x = this.HeroCareerGroupLayoutNode.children[this._curCareer].x, this.RenderCurrentLayout()
            }, t.prototype.OnHeroCareerClick = function(e) {
                var t = Number.parseInt(e.node.name);
                this._curCareer != t && (this._curCareer = t, this.HeroCareerGroupLight.x = e.node.x, this.RenderCurrentLayout())
            }, t.prototype.OnSettingSorting = function() {
                b.UIManager.Instance.ShowUIPanel(y.PanelConfig.SortHeroRulePanel.Path)
            }, t.prototype.OnClickSkinShop = function() {}, t.prototype.OnUpStar = function() {
                this.DelayClose(), b.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroPalacePanel.Path)
            }, t.prototype.OnClickHero = function(e, t) {
                switch (this._currentLayoutMode) {
                    case l.ItemMode:
                        if (-1 == this.ItemCustomLayout.node.children.indexOf(t)) return;
                        break;
                    case l.CardMode:
                        if (-1 == this.CardCustomLayout.node.children.indexOf(t)) return
                }
                switch (this._currentTab) {
                    case c.Hero:
                        for (var n = this.GetHeroDataByElementAndCareer(this._currentElement, this._curCareer), o = [], r = 0; r < n.length; r++) o.push(n[r].Sid);
                        b.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroInfoPanel.Path, e, o);
                        break;
                    case c.Handbook:
                    case c.Favor:
                }
                this._selectHeroSid = e
            }, t.prototype.OnOpenFormationPanel = function() {
                this.OffEvents(), b.UIManager.Instance.ShowUIPanel(y.PanelConfig.FormationPanel.Path)
            }, t.prototype.OnOpenRecommendPanel = function() {
                O.default.SetItem(O.GameRecordDefine.HeroListRecommond, M.RpcComponent.Instance.ServerTime), T.RedDotManager.Instance.RedDot.HeroListRecommondBtn.NeedRefresh = !0, b.UIManager.Instance.ShowUIPanel(y.PanelConfig.IWantStrongPanel.Path, R.WantStrongModule.RecommendFormation)
            }, t.prototype.OnSetFormation = function() {
                this.OffEvents(), this.OnEvents()
            }, t.prototype.OnRefreshHandbookItem = function(e) {
                var t = this._handbookComponents[e];
                if (t) {
                    var n = A.RedDotDataHandler.Instance.HasMeetGiftGotByHeroId(e);
                    t.SetRedDotState(n)
                }
            }, t.prototype.OnReSortHero = function() {
                this.DisPlay()
            }, t.prototype.OnSetSelectHeroSid = function(e) {
                this._selectHeroSid = e
            }, t.prototype.ShowGuide = function() {
                if (L.default.Instance.IsInGuide) switch (L.default.Instance.CurrentStep) {
                    case 6103:
                    case 7203:
                        var e = this.CardCustomLayout.node.children[3];
                        e && (this.CardScrollView.enabled = !1, L.default.Instance.ShowGuide(e));
                        break;
                    case 8101:
                        L.default.Instance.ShowGuide();
                        break;
                    case 15105:
                        var t = this.CardCustomLayout.node.children[1];
                        t && (this.CardScrollView.enabled = !1, L.default.Instance.ShowGuide(t))
                } else this.CardScrollView.enabled = !0
            }, t.prototype.OnFavorGiftShopButtonClick = function() {
                b.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallElderGiftPackPanel.Path, d.GiftPackType.FavorGift)
            }, i([U(cc.ScrollView)], t.prototype, "ItemScrollView", void 0), i([U(B.default)], t.prototype, "ItemCustomLayout", void 0), i([U(cc.ScrollView)], t.prototype, "CardScrollView", void 0), i([U(B.default)], t.prototype, "CardCustomLayout", void 0), i([U(cc.Button)], t.prototype, "SwitchLayoutBtn", void 0), i([U(cc.Button)], t.prototype, "SortSettingBtn", void 0), i([U(cc.Button)], t.prototype, "SkinShopBtn", void 0), i([U(cc.Button)], t.prototype, "UpStarBtn", void 0), i([U(cc.Label)], t.prototype, "SwitchLayoutBtnLabel", void 0), i([U(cc.Label)], t.prototype, "SortSettingBtnLabel", void 0), i([U(cc.Label)], t.prototype, "SkinShopBtnLabel", void 0), i([U(cc.Label)], t.prototype, "UpStarBtnLabel", void 0), i([U(v.default)], t.prototype, "HeroElementGroup", void 0), i([U(cc.Node)], t.prototype, "HeroCareerNode", void 0), i([U(cc.Node)], t.prototype, "HeroCareerGroupNode", void 0), i([U(cc.Node)], t.prototype, "HeroCareerGroupLight", void 0), i([U(cc.Node)], t.prototype, "HeroCareerGroupLayoutNode", void 0), i([U(cc.Button)], t.prototype, "ShowCareerGroupButton", void 0), i([U(S.default)], t.prototype, "Toggles", void 0), i([U(cc.Node)], t.prototype, "HeroAttrContainer", void 0), i([U(cc.Button)], t.prototype, "FormationBtn", void 0), i([U(cc.Label)], t.prototype, "FormationBtnLabel", void 0), i([U(cc.Button)], t.prototype, "RecommendBtn", void 0), i([U(cc.Label)], t.prototype, "RecommendBtnLabel", void 0), i([U(cc.Label)], t.prototype, "HeroCountLabel", void 0), i([U(cc.ScrollView)], t.prototype, "HandbookScrollView", void 0), i([U(cc.Node)], t.prototype, "FavorPageContainer", void 0), i([U(cc.Button)], t.prototype, "FavorGiftShopButton", void 0), i([U(cc.Label)], t.prototype, "FavorGiftShopButtonLabel", void 0), i([E], t)
        }(p.BaseUIFullScreenPanel);
        n.default = G, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HandbookComponent": "HandbookComponent",
        "../Components/HeroCardComponent": "HeroCardComponent",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent",
        "./HeroFavorListPage": "HeroFavorListPage",
        "./IWantStrongPanel": "IWantStrongPanel"
    }],
    HeroMerge: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b46483UOw9E0ZTvzYkh7iqQ", "HeroMerge");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/CustomLayout"),
            c = e("../Components/HeroElementGroup"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../Components/ItemComponent"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Components/DataCenter"),
            v = e("../../../Util/AppUtil"),
            b = e("../Components/ItemClickComponent"),
            S = e("../Components/LevelComponent"),
            w = e("../../Components/RpcComponent"),
            P = e("../../../ShareConsts/EnumType"),
            A = e("../../Channel/ChannelManager"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Scroll = null, t.Grid = null, t.HeroElementGroup = null, t.HeroItemContainer = null, t.HeroItemContainerOne = null, t.HeroItemContainerLot = null, t.HeroInfoNode = null, t.HeroName = null, t.HeroTitle = null, t.HeroElementIcon = null, t.HeroProfessionIcon = null, t.HeroLevel = null, t.UpGradeBtn = null, t.UpgradeBtnLabel = null, t.HeroMergeListLabel = null, t.TipsLabel = null, t.AvatarContainer = null, t.QuickLockBg = null, t.QuickRed = null, t.ElementReds = [], t._isInit = !1, t._isLayoutInit = !1, t._itemPrefab = null, t._itemMap = new Map, t._selectHero = null, t._selectDataMap = new Map, t._noumenonSidMap = new Map, t._currentElement = -1, t._oldHero = null, t._isBusy = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onDisable = function() {
                    this.DisableCommonEvent(), this.DisableSelectHeroSidsEvent()
                }, t.prototype.EnableCommonEvent = function() {
                    u.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), u.Game.EventDispatcher.On(d.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), u.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
                }, t.prototype.DisableCommonEvent = function() {
                    u.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), u.Game.EventDispatcher.Off(d.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement), u.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero)
                }, t.prototype.EnableSelectHeroSidsEvent = function() {
                    u.Game.EventDispatcher.On(d.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback, this)
                }, t.prototype.DisableSelectHeroSidsEvent = function() {
                    u.Game.EventDispatcher.Off(d.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback)
                }, t.prototype.SetElementRedState = function() {
                    this._elementRedState = [!1, !1, !1, !1, !1, !1]
                }, t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._heroDataMap = e, this.Reset(), this.HeroLevel.node.active = !1, this._isInit ? [3, 2] : (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent(), [4, this.LoadAsset()]);
                                case 1:
                                    t.sent(), t.label = 2;
                                case 2:
                                    return this.isValid ? (this.SetElementRedState(), this.InitSelectIdsMap(), this.SortHeroBaseData(), this.InitCustomLayout(), this.RefreshPageRed(), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.RefreshView = function() {
                    this.Reset(), this.InitSelectIdsMap(), this.SortHeroBaseData(), this.InitCustomLayout()
                }, t.prototype.RefreshNotReset = function() {
                    this.InitSelectIdsMap(), this.SortHeroBaseData(), this.InitCustomLayout(), this.RefreshPageRed()
                }, t.prototype.Reset = function() {
                    null != this._currentElement && -1 != this._currentElement || (this._currentElement = 0), this._selectHero = null, this.HeroInfoNode.active = !0, this.HeroLevel.node.active = !0
                }, t.prototype.ResetSelect = function() {
                    var e = this.GetFirstHeroItemId();
                    this.ChangeItemSelectState(e)
                }, t.prototype.SetStaticLocalText = function() {
                    this.UpgradeBtnLabel.string = "heroPalace_tittle_0".ToUILocale(), this.HeroMergeListLabel.string = "heroPalace_startup_list".ToUILocale(), this.TipsLabel.string = "heroPalace_tips".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.UpGradeBtn.node.on("click", this.OnUpGrade, this)
                }, t.prototype.LoadAsset = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, p.AssetsManager.Instance.LoadAsset(I.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return e._itemPrefab = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SortHeroBaseData = function() {
                    var e = this;
                    this.GetHeroDataByElement(this._currentElement).sort(function(t, n) {
                        var o = e.ComputeRedState(t.Id),
                            r = e.ComputeRedState(n.Id),
                            i = e.GetMergeHeroProgressCount(t.Id),
                            a = e.GetMergeHeroProgressCount(n.Id);
                        return o && !r ? -1 : !o && r ? 1 : i[0] >= i[1] && a[0] < a[1] ? -1 : i[0] < i[1] && a[0] >= a[1] ? 1 : i[0] != a[0] ? a[0] - i[0] : e.SortByStarLevel(t, n)
                    })
                }, t.prototype.SortByStarLevel = function(e, t) {
                    return e.StarLevel < t.StarLevel ? -1 : e.StarLevel > t.StarLevel ? 1 : this.SortByElement(e, t)
                }, t.prototype.SortByElement = function(e, t) {
                    return e.ElementType < t.ElementType ? -1 : e.ElementType > t.ElementType ? 1 : this.SortByCoreHero(e, t)
                }, t.prototype.SortByCoreHero = function(e, t) {
                    return 0 == e.CoreHero && t.CoreHero >= 1 ? -1 : e.CoreHero >= 1 && 0 == t.CoreHero ? 1 : 0
                }, t.prototype.InitCustomLayout = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._itemPrefab, !1)), this.RenderLayout(), this.ResetSelect(), [2]
                        })
                    })
                }, t.prototype.RenderLayout = function() {
                    var e = 0,
                        t = this.GetHeroDataByElement(this._currentElement);
                    null != t && (e = t.length), this.Grid.RenderLayOut(e), f.UIUtlity.AnimationItemsByType1(this.Grid.node.children)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (this.Grid == t) {
                        var o = this.GetHeroDataByElement(this._currentElement);
                        e.forEach(function(e, t) {
                            var r = e.getComponent(m.ItemComponent),
                                i = n.GetMergeHeroProgressCount(o[t].Id);
                            r.Init({
                                ItemId: o[t].Id,
                                Count: i[0],
                                NeedCount: i[1],
                                StarLevel: o[t].StarLevel + 1,
                                ElementType: o[t].ElementType
                            }, m.ItemComponentType.HeroCountProgress), r.SetRedDotState(n.ComputeRedState(o[t].Id)), n._itemMap.set(o[t].Id, r), null != n._selectHero && n._selectHero.Id == o[t].Id ? r.SetCenterTagSprite(!0, f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border4"), 252, 252) : r.SetCenterTagSprite(!1), r.node.name = o[t].Id.toString()
                        })
                    }
                }, t.prototype.GetMergeHeroMaterialCount = function(e) {
                    for (var t = this._selectDataMap.get(e), n = 0, o = 0, r = t.length, i = 0; i < r; i++) n += t[i].SelectMaterials.length, o += t[i].NeedCount;
                    return [n, o]
                }, t.prototype.GetMergeHeroProgressCount = function(e) {
                    for (var t = this._selectDataMap.get(e), n = 0, o = 0, r = t.length, i = 0; i < r; i++) n += t[i].ProgressCount, o += t[i].NeedCount;
                    return [n, o]
                }, t.prototype.IsProgressCountEnough = function(e) {
                    var t = this.GetMergeHeroProgressCount(e);
                    return t[0] >= t[1]
                }, t.prototype.IsMaterialEnough = function(e) {
                    var t = this.GetMergeHeroMaterialCount(e);
                    return t[0] >= t[1]
                }, t.prototype.GetFirstHeroItemId = function() {
                    return this.GetHeroDataByElement(this._currentElement)[0].Id
                }, t.prototype.InitSelectIdsMap = function() {
                    var e = this,
                        t = this.GetHeroDataByElement(this._currentElement);
                    t.forEach(function(n, o) {
                        e.ConfigSelectDataMap(t[o])
                    })
                }, t.prototype.ConfigSelectDataMap = function(e) {
                    var t, n = [],
                        o = [],
                        r = g.ConfigDataComponent.Instance.GetConfigById(y.HeroStar_Config, e.StarLevel + 1);
                    t = e.ElementType == P.HeroElementType.Chaos ? r.ChaosHeroMaterials : r.HeroMaterials;
                    var i, a = this.GetNoumenonHeroSid(e.Id, e.StarLevel);
                    this._noumenonSidMap.set(e.Id, a), a > 0 && (i = {
                        Type: _.UpStarHeroMaterialType.Hero,
                        Id: a
                    }, o.push(i));
                    var s = [];
                    e.ElementType, P.HeroElementType.Chaos, s = _.default.GetHeroByItemIdAndStar(e.Id, e.StarLevel, void 0, void 0, !0, !0, !0), 0 == o.length && (o = o.concat(s));
                    for (var l = 0, c = s.length - 1; c >= 0; c--) s[c].Type == _.UpStarHeroMaterialType.Hero && C.DataCenter.Instance.GetHeroFormations(s[c].Id).length > 0 && (s.splice(c, 1), l++);
                    s.includes(i) && (s = [i]), s.length > 0 && (s = s.slice(0, 1))[0].Id < 0 && (s = []);
                    var u = {
                        Component: null,
                        Type: 1,
                        ItemId: e.Id,
                        StarLevel: e.StarLevel,
                        Element: e.ElementType,
                        NeedCount: 1,
                        SelectMaterials: s,
                        ProgressCount: Math.min(s.length + l, 1)
                    };
                    for (n.push(u), c = 0; c < t.length; c++) {
                        var p = t[c].Items,
                            d = p[0],
                            h = p[1],
                            f = p[2],
                            m = void 0,
                            I = e.ElementType,
                            v = void 0,
                            b = [];
                        switch (d) {
                            case 1:
                                m = e.Id, v = _.default.GetHeroByItemIdAndStar(m, h, o, !0);
                                break;
                            case 2:
                                m = e.BondHero, v = _.default.GetHeroByItemIdAndStar(m, h, o, !0);
                                break;
                            case 3:
                                m = 0, I = e.ElementType, v = _.default.GetHeroByStarAndElement(h, I, I, o, !0);
                                break;
                            case 4:
                                I = 0, m = 0, v = _.default.GetHeroByStarAndElement(h, P.HeroElementType.All, e.ElementType, o, !0);
                                break;
                            case 5:
                                m = e.Id, v = _.default.GetHeroByItemIdAndStar(m, h, o, !0, !0)
                        }
                        for (var S = 0; S < v.length; S++) {
                            var w = v[S];
                            if (b.push(w), o.push(w), b.length >= f) break
                        }
                        var A = {
                            Component: null,
                            Type: d,
                            ItemId: m,
                            StarLevel: h,
                            Element: I,
                            NeedCount: f,
                            SelectMaterials: b,
                            ProgressCount: Math.min(b.length, f)
                        };
                        n.push(A)
                    }
                    this._selectDataMap.set(e.Id, n)
                }, t.prototype.GetNoumenonHeroSid = function(e, t) {
                    return this.SearchUserHeroByHeroId(e, t)
                }, t.prototype.SearchUserHeroByHeroId = function(e, t) {
                    for (var n = C.DataCenter.Instance.GetDataList(h.UserHero_Model), o = n.length, r = 0; r < o; r++)
                        if (n[r].HeroId == e && n[r].StarLevel == t && C.DataCenter.Instance.GetHeroFormations(n[r].Sid).length <= 0) return n[r].Sid;
                    return 0
                }, t.prototype.ConfigHeroMaterialItems = function(e) {
                    for (var t = 1, o = 0, r = this._selectDataMap.get(e.Id), i = 0; i < r.length; i++) {
                        var a = r[i].StarLevel;
                        r[i].Type > 2 && r[i].Type;
                        var s = r[i].SelectMaterials.length,
                            l = r[i].NeedCount,
                            c = null;
                        i > 0 ? ((c = this.HeroItemContainerLot.children[i - 1]) || (c = cc.instantiate(this._itemPrefab)).setParent(this.HeroItemContainerLot), c.scaleX = n.MATERIAL_ITEM_SCALE, c.scaleY = n.MATERIAL_ITEM_SCALE, t = n.MATERIAL_ITEM_SCALE_BEFORE, o = -146) : ((c = this.HeroItemContainerOne.children[0]) || (c = cc.instantiate(this._itemPrefab)).setParent(this.HeroItemContainerOne), c.scaleX = n.NOUMENON_ITEM_SCALE, c.scaleY = n.NOUMENON_ITEM_SCALE, t = n.NOUMENON_ITEM_SCALE_BEFORE, o = -118), c.name = i.toString(), c.removeComponent(b.default), c.on(cc.Node.EventType.TOUCH_END, this.OnClickMaterialHero, this), c.active = !0;
                        var u = c.getComponent(m.ItemComponent);
                        u.Init({
                            ItemId: r[i].ItemId,
                            StarLevel: a,
                            ElementType: r[i].Element
                        }, m.ItemComponentType.HeroCountProgress), u.SetProgressBar(s, l, !1, t, t, o, 159), r[i].Component = u, s > 0 ? u.OffIconGray() : u.OnIconGray()
                    }
                    for (i = r.length - 1; i < this.HeroItemContainerLot.childrenCount; i++) this.HeroItemContainerLot.children[i].active = !1
                }, t.prototype.ConfigHeroAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this.AvatarContainer.destroyAllChildren(), this.ClaerAvatarPrefab(), e = this._selectHero.Id, [4, p.AssetsManager.Instance.LoadAsset(this._selectHero.UIAvatar + "/Avatar")];
                                case 1:
                                    return t = o.sent(), this.isValid ? (e == this._selectHero.Id ? (this._currentAvatarPrefab = t, (n = cc.instantiate(t)).setParent(this.AvatarContainer), _.default.Instance.SetHeroAvatarSkin(n, this._selectHero.Id, this._selectHero.StarLevel), this._avatarAlphaTween && this._avatarAlphaTween.stop(), n.opacity = 20, this._avatarAlphaTween = cc.tween(n).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start()) : u.AssetsManager.Instance.UnloadAsset(t), [2]) : (u.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.OnClickMaterialHero = function(e) {
                    this._clickMaterialIndex = v.AppUtil.ToInt(e.target.name), this.DisableCommonEvent(), this.EnableSelectHeroSidsEvent(), this._selectData = this._selectDataMap.get(this._selectHero.Id), this._canSelectSids = this.GetHeroPools(this._clickMaterialIndex);
                    var t = this._selectData[this._clickMaterialIndex],
                        n = [t.Type, this._selectHero.Id];
                    p.UIManager.Instance.ShowUIPanel(I.PanelConfig.SelectMaterialHeroPanel.Path, this._canSelectSids, t.SelectMaterials, t.NeedCount, void 0, void 0, t.StarLevel, n)
                }, t.prototype.OnSelectCallback = function(e) {
                    this.EnableCommonEvent(), this.DisableSelectHeroSidsEvent();
                    var t = this._selectData[this._clickMaterialIndex];
                    if (t.SelectMaterials = e, 0 == this._clickMaterialIndex)
                        if (t.SelectMaterials.length > 0) {
                            var n = t.SelectMaterials[0].Id;
                            if (n > 0) {
                                var o = C.DataCenter.Instance.GetDataById(h.UserHero_Model, n),
                                    r = g.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, o.HeroId);
                                this._noumenonSidMap.set(r.Id, n)
                            } else this._noumenonSidMap.set(n, n)
                        } else this._noumenonSidMap.set(this._selectHero.Id, 0);
                    e.length > 0 ? t.Component.OffIconGray() : t.Component.OnIconGray(), t.Type > 2 && t.StarLevel;
                    var i = t.Component.ItemProgressBar.node.scale;
                    t.Component.SetProgressBar(e.length, t.NeedCount, !1, i, i)
                }, t.prototype.GetHeroPools = function(e) {
                    for (var t, n = this._selectData[e], o = [], r = 0; r < this._selectData.length; r++)
                        if (r != e)
                            for (var i = this._selectData[r].SelectMaterials, a = 0; a < i.length; a++) o.push(i[a]);
                    if (e > 0) {
                        var s = this._noumenonSidMap.get(this._selectHero.Id);
                        o.push({
                            Type: _.UpStarHeroMaterialType.Hero,
                            Id: s
                        })
                    }
                    switch (n.Type) {
                        case 1:
                            t = e > 0 ? _.default.GetHeroByItemIdAndStar(n.ItemId, n.StarLevel, o) : _.default.GetHeroByItemIdAndStar(n.ItemId, n.StarLevel, o, void 0, !0, !0, !0);
                            break;
                        case 2:
                            t = _.default.GetHeroByItemIdAndStar(n.ItemId, n.StarLevel, o);
                            break;
                        case 3:
                            t = _.default.GetHeroByStarAndElement(n.StarLevel, n.Element, n.Element, o);
                            break;
                        case 4:
                            t = _.default.GetHeroByStarAndElement(n.StarLevel, P.HeroElementType.All, n.Element, o);
                            break;
                        case 5:
                            t = _.default.GetHeroByItemIdAndStar(n.ItemId, n.StarLevel, o, void 0, !0, !0, !0)
                    }
                    return t
                }, t.prototype.OnClickHero = function(e, t) {
                    null != t && -1 == this.Grid.node.children.indexOf(t) || this.ChangeItemSelectState(e)
                }, t.prototype.ChangeItemSelectState = function(e) {
                    if (null == this._selectHero || this._selectHero.Id != e) {
                        var t = this._itemMap.get(e),
                            n = g.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, e);
                        if (null == this._selectHero) this._selectHero = n, t.SetCenterTagSprite(!0, f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border4"), 252, 252);
                        else {
                            var o = this._itemMap.get(this._selectHero.Id);
                            this._selectHero = n, o.SetCenterTagSprite(!1), t.SetCenterTagSprite(!0, f.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border4"), 252, 252)
                        }
                        this.ConfigHeroMaterialItems(this._selectHero), this.ConfigHeroInfo(), this.ConfigHeroAvatar(), this._selectData = this._selectDataMap.get(this._selectHero.Id)
                    }
                }, t.prototype.ConfigHeroInfo = function() {
                    var e = A.default.Instance.IsVNChannel();
                    this.HeroName.node.active = !e, e || (this.HeroName.string = this._selectHero.Id.ToHeroName()), this.HeroTitle.string = e ? this._selectHero.Id.ToHeroName() : this._selectHero.Id.ToHeroTitle(), this.HeroElementIcon.spriteFrame = f.UIUtlity.GetHeroElementIcon(this._selectHero.ElementType), this.HeroProfessionIcon.spriteFrame = f.UIUtlity.GetHeroCareerIcon(this._selectHero.Career), this.HeroLevel.node.active = !0;
                    var t = S.LevelComponent.GetLevelShowType(this._selectHero.CoreHero, this._selectHero.ElementType);
                    this.HeroLevel.Init(this._selectHero.StarLevel + 1, 0, 0, t)
                }, t.prototype.OnSwitchHeroElement = function(e) {
                    this._currentElement != e && (this._currentElement = e, this.SortHeroBaseData(), this.RenderLayout(), this.ResetSelect())
                }, t.prototype.GetHeroDataByElement = function(e) {
                    return this._heroDataMap.get(e)
                }, t.prototype.OnUpGrade = function() {
                    if (this._isBusy = !0, this.IsMaterialEnough(this._selectHero.Id)) {
                        this._oldHero = C.DataCenter.Instance.GetDataById(h.UserHero_Model, this._noumenonSidMap.get(this._selectHero.Id));
                        var e = this._selectData.slice(1, this._selectData.length);
                        this._selectHero.StarLevel > 4 ? u.UIManager.Instance.ShowUIPanel(I.PanelConfig.UpStarHeroMaterialsPanel.Path, e, this.RequestUpgrade.bind(this)) : this.RequestUpgrade()
                    } else {
                        f.UIUtlity.ShowFloatingHint("heroPalace_merge_material_not_enough".ToUILocale());
                        for (var t = 1; t < this._selectData.length; t++) {
                            var n = this._selectData[t];
                            if (n.SelectMaterials.length < n.NeedCount) {
                                var o = _.default.Instance.GetHeroGetWayItemId(n.Type, n.ItemId, n.Element, n.StarLevel);
                                o && p.UIManager.Instance.ShowUIPanel(I.PanelConfig.ItemGetWayPanel.Path, o);
                                break
                            }
                        }
                    }
                }, t.prototype.RequestUpgrade = function() {
                    var e = new h.Req_Hero_UpgradeStar,
                        t = this._noumenonSidMap.get(this._selectHero.Id);
                    e.Sid = t;
                    for (var n = [], o = [], r = 1; r < this._selectData.length; r++) {
                        n[r - 1] = new h.IntArray;
                        for (var i = [], a = 0; a < this._selectData[r].SelectMaterials.length; a++) {
                            var s = this._selectData[r].SelectMaterials[a];
                            if (s.Type == _.UpStarHeroMaterialType.Compose) {
                                e.UpgradeStarHeroSids.push(s.Id);
                                for (var l = [], c = 0; c < s.Param.length; c++) l.push(s.Param[c].Id);
                                o.push({
                                    Items: l
                                })
                            }
                            i.push(s.Id)
                        }
                        n[r - 1].Items = i
                    }
                    e.Materials = n, e.UpgradeStarHeroMaterials = o, w.RpcComponent.Instance.Call(e, this.UpgradeStarSucess.bind(this))
                }, t.prototype.UpgradeStarSucess = function() {
                    null != this && (this._isBusy = !1, p.UIManager.Instance.ShowUIPanel(I.PanelConfig.UpStarSucessPanel.Path, this._oldHero), this.node.active && (this._selectHero = null, this.RefreshNotReset()))
                }, t.prototype.ClaerAvatarPrefab = function() {
                    this._currentAvatarPrefab && u.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
                }, t.prototype.onDestroy = function() {
                    this.Dispose(), this.ClaerAvatarPrefab()
                }, t.prototype.Dispose = function() {
                    p.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, t.prototype.ComputeRedState = function(e) {
                    for (var t = this._selectDataMap.get(e), n = 0; n < t.length; n++)
                        if (t[n].SelectMaterials.length < t[n].NeedCount) return !1;
                    return !0
                }, t.prototype.RefreshPageRed = function() {
                    for (var e, t = [], n = this._heroDataMap.get(0), o = 0; o < this._elementRedState.length; o++) this._elementRedState[o] = !1;
                    if (n)
                        for (o = 0; o < n.length; o++) {
                            var r = n[o].Id;
                            if (!(t.length > 0 && -1 != t.indexOf(r))) {
                                t.push(r);
                                var i = g.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, r);
                                if (this.ComputeRedState(r)) {
                                    if (!e) {
                                        var a = C.DataCenter.Instance.GetDataById(h.UserHero_Model, this._noumenonSidMap.get(this._selectHero.Id));
                                        a && 4 == a.StarLevel && (e = !0)
                                    }
                                    var s = i.ElementType;
                                    this._elementRedState[s] || (this._elementRedState[s] = !0), this._elementRedState[0] || (this._elementRedState[0] = !0)
                                }
                            }
                        }
                    for (o = 0; o < this.ElementReds.length; o++) this.ElementReds[o].active = this._elementRedState[o];
                    this.QuickRed.active = !this.QuickLockBg.active && e
                }, t.NOUMENON_ITEM_SCALE = .75, t.MATERIAL_ITEM_SCALE = .6, t.NOUMENON_ITEM_SCALE_BEFORE = 1.33, t.MATERIAL_ITEM_SCALE_BEFORE = 1.66, t.LOWSTAR = 3, i([L(cc.ScrollView)], t.prototype, "Scroll", void 0), i([L(l.default)], t.prototype, "Grid", void 0), i([L(c.default)], t.prototype, "HeroElementGroup", void 0), i([L(cc.Node)], t.prototype, "HeroItemContainer", void 0), i([L(cc.Node)], t.prototype, "HeroItemContainerOne", void 0), i([L(cc.Node)], t.prototype, "HeroItemContainerLot", void 0), i([L(cc.Node)], t.prototype, "HeroInfoNode", void 0), i([L(cc.Label)], t.prototype, "HeroName", void 0), i([L(cc.Label)], t.prototype, "HeroTitle", void 0), i([L(cc.Sprite)], t.prototype, "HeroElementIcon", void 0), i([L(cc.Sprite)], t.prototype, "HeroProfessionIcon", void 0), i([L(S.LevelComponent)], t.prototype, "HeroLevel", void 0), i([L(cc.Button)], t.prototype, "UpGradeBtn", void 0), i([L(cc.Label)], t.prototype, "UpgradeBtnLabel", void 0), i([L(cc.Label)], t.prototype, "HeroMergeListLabel", void 0), i([L(cc.Label)], t.prototype, "TipsLabel", void 0), i([L(cc.Node)], t.prototype, "AvatarContainer", void 0), i([L(cc.Node)], t.prototype, "QuickLockBg", void 0), i([L(cc.Node)], t.prototype, "QuickRed", void 0), i([L(cc.Node)], t.prototype, "ElementReds", void 0), n = i([R], t)
            }(cc.Component);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent"
    }],
    HeroPKSelectHeroComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8fe34Dld5JAxZkm4keXIebE", "HeroPKSelectHeroComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../Consts/GameEventIds"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("./HeadComponent"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagBg = null, t.TagLabel = null, t.HeroName = null, t.AddPointLabel = null, t.PowerCount = null, t.HeroNode = null, t.BattleButton = null, t.BattleButtonLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.BattleButtonLabel.string = "dailyInstance_challenge".ToUILocale(), this.BattleButton.node.on("click", this.OnBattleButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r, i, s) {
                    this._index = e, this._heroData = n, this._headPrefab = o, this._requestData = s, this.TagLabel.string = ("Activity_HeroPK_Select_Hero_Tag_" + t).ToUILocale(), 0 == t ? this.TagBg.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("title5") : 1 == t ? this.TagBg.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("title3") : 2 == t && (this.TagBg.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("title6"));
                    var l = Math.floor(r[2] + (n.Value - i) / 10);
                    l > r[4] ? l = r[4] : l < r[3] && (l = r[3]), this.AddPointLabel.string = "+" + l.toString(), this.HeroName.string = this._heroData.PlayerInfo.Name, this.PowerCount.string = this._heroData.PlayerInfo.Power.toString(), this.SetItemComponent()
                }, t.prototype.SetItemComponent = function() {
                    if (!this._headConponent) {
                        var e = cc.instantiate(this._headPrefab);
                        e.setParent(this.HeroNode), this._headConponent = e.getComponent(u.default)
                    }
                    this._headConponent.SetUI(this._heroData.PlayerInfo.HeadIcon, this._heroData.PlayerInfo.HeadFrame, this._heroData.PlayerInfo.Title), this._headConponent.SetLevel(this._heroData.PlayerInfo.Level), this._headConponent.SetCountry(this._heroData.PlayerInfo.Country)
                }, t.prototype.OnBattleButtonClick = function() {
                    s.Game.EventDispatcher.Emit(l.GameEventIds.StartBattle.Fmt(c.MapType.HeroPK), this._requestData[0], this._index, this._requestData[1]), s.UIManager.Instance.QuitPanelStack(p.PanelConfig.HeroPKSelectHeroPanel.Path)
                }, i([f(cc.Sprite)], t.prototype, "TagBg", void 0), i([f(cc.Label)], t.prototype, "TagLabel", void 0), i([f(cc.Label)], t.prototype, "HeroName", void 0), i([f(cc.Label)], t.prototype, "AddPointLabel", void 0), i([f(cc.Label)], t.prototype, "PowerCount", void 0), i([f(cc.Node)], t.prototype, "HeroNode", void 0), i([f(cc.Button)], t.prototype, "BattleButton", void 0), i([f(cc.Label)], t.prototype, "BattleButtonLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeadComponent": "HeadComponent"
    }],
    HeroPKSelectHeroPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "410cbA2SGpMmKZ498kpO7oJ", "HeroPKSelectHeroPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/HeroPKSelectHeroComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.SelectHeroContainer = null, t.RefreshButton = null, t.RefreshButtonLabel = null, t.DiamondCount = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityHeroPKPanel/Components/HeroPKSelectHeroComponent", cc.Prefab), n = this.LoadDynamicAsset(u.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._selectHeroPrefab = e[0], o._headPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "Activity_HeroPK_Select_Hero_Title".ToUILocale(), this.RefreshButton.node.on("click", this.OnRefreshButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectData = t[0], this._myPoint = t[1], this._currentRound = t[2], this._isSelectSameTeam = t[3], this._activityConfig = c.DataCenter.Instance.ActivityConfigs[t[4]]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetSelectHeroContainer()
                }, t.prototype.SetSelectHeroContainer = function() {
                    for (var e = this._selectData.length - 1; e >= 0; e--) {
                        var t = cc.instantiate(this._selectHeroPrefab);
                        t.setParent(this.SelectHeroContainer);
                        var n = this._isSelectSameTeam ? e + 3 : e;
                        t.getComponent(p.default).Init(n, e, this._selectData[e], this._headPrefab, this._activityConfig.CustomPart.ScoreParam, this._myPoint, [this._activityConfig._id, this._currentRound])
                    }
                }, t.prototype.OnRefreshButtonClick = function() {}, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Node)], t.prototype, "SelectHeroContainer", void 0), i([f(cc.Button)], t.prototype, "RefreshButton", void 0), i([f(cc.Label)], t.prototype, "RefreshButtonLabel", void 0), i([f(cc.Label)], t.prototype, "DiamondCount", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/HeroPKSelectHeroComponent": "HeroPKSelectHeroComponent"
    }],
    HeroPKSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "14e99QxMLdOLLZTYj1C37JC", "HeroPKSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("./SettlementBaseComponent"),
            c = e("../../Components/Components"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PointTitle = null, t.PointTag = null, t.BasePoint = null, t.AddPoint = null, t.ReturnButton = null, t.ReturnButtonLabel = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.SetUI = function(t) {
                    var n;
                    if (e.prototype.SetUI.call(this, t), this._isReplay = t.SettleParams[0], this._isInit || (this._isInit = !0, this.ReturnButton.node.active = !this._isReplay, this.SetStaticLocalText(), this.SetClickEvent()), this._isReplay) {
                        var o = t.SettleParams[1];
                        n = c.DataCenter.Instance.Uid == o.AttackerInfo.Uid == !!o.Result ? Math.abs(o.IntParams[0]) : -Math.abs(o.IntParams[0])
                    } else {
                        this._activityId = t.SettleParams[1], n = t.SettleParams[2];
                        var r = c.DataCenter.Instance.GetDataById(a.UserActivity_Model, this._activityId).Int2DArray[t.SettleParams[3] - 1].Items[1];
                        this.BasePoint.string = r.toString()
                    }
                    this.AddPoint.string = n > 0 ? "+" + n : n.toString()
                }, t.prototype.SetStaticLocalText = function() {
                    this.PointTitle.string = "activityBoss_score".ToUILocale(), this.PointTag.string = "puzzle_curScore".ToUILocale(), this.ReturnButtonLabel.string = "win_return".ToUILocale(), this.ConfirmButtonLabel.string = "button_confirm".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ConfirmButton.node.on("click", this.OnConfirmButtonClick, this)
                }, t.prototype.OnReturnButtonClick = function() {
                    var e = this;
                    if (s.UIManager.Instance.BackUIPanel(), this._BattleData.InBackground) {
                        var t = new a.Req_Activity_HeroPKEnter;
                        t.ActivityId = this._activityId, c.RpcComponent.Instance.Call(t, function() {
                            s.UIManager.Instance.ShowUIPanel(u.PanelConfig.ActivityHeroPKPanel.Path, e._activityId)
                        })
                    }
                }, t.prototype.OnConfirmButtonClick = function() {
                    s.UIManager.Instance.BackUIPanel()
                }, i([h(cc.Label)], t.prototype, "PointTitle", void 0), i([h(cc.Label)], t.prototype, "PointTag", void 0), i([h(cc.Label)], t.prototype, "BasePoint", void 0), i([h(cc.Label)], t.prototype, "AddPoint", void 0), i([h(cc.Button)], t.prototype, "ReturnButton", void 0), i([h(cc.Label)], t.prototype, "ReturnButtonLabel", void 0), i([h(cc.Button)], t.prototype, "ConfirmButton", void 0), i([h(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([d], t)
            }(l.default);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    HeroPKTeamComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4645dZCNAxGUJ8f9f0Gjcss", "HeroPKTeamComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroPKTeamState = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("./LevelComponent"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property;
        (function(e) {
            e[e.Start = 0] = "Start", e[e.End = 1] = "End"
        })(l = n.HeroPKTeamState || (n.HeroPKTeamState = {}));
        var I = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.SelectBgNode = null, t.HeroIcon = null, t.InfoNode = null, t.AddTag = null, t.NoneHeroTag = null, t.NoneAddTag = null, t.LevelComponent = null, t.DetailButton = null, t.HeroTitleIcon = null, t.ResultNode = null, t.Mask = null, t.CrownIconNode = null, t.MyTeamTagNode = null, t.MyTeamTag = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.NoneAddTag.string = "ActivityHeroTestTower_Battle_None_Addtion".ToUILocale(), this.NoneHeroTag.string = "Activity_HeroPK_None_Hero".ToUILocale(), this.MyTeamTag.string = "Activity_HeroPK_My_Team".ToUILocale(), this.DetailButton.node.on("click", this.OnDetailButtonClick, this)
            }, t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
            }, t.prototype.Init = function(e, t, n, o, r, i, a) {
                this._index = t, this._heroId = n, this.SetHeroIcon(), this.InfoNode.active = !1, this.ResultNode.active = !1, e == l.Start ? (this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this), this.InfoNode.active = !0, this._heroTitleId = o, this._heroAddtionConfig = r, this._attrMap = i, this._mainPanel = a, this.SetInfoNode()) : e == l.End && (this.node.off(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this), this.ResultNode.active = !0)
            }, t.prototype.SetHeroIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._heroIconId == this._heroId ? [3, 2] : (this._heroIconId = this._heroId, this._icon && (c.AssetsManager.Instance.UnloadAsset(this._icon), this._icon = null), [4, c.AssetsManager.Instance.LoadAsset("BattleHeroPicture/" + this._heroId, cc.SpriteFrame)]);
                            case 1:
                                if (e = t.sent(), !this.isValid || "BattleHeroPicture/" + this._heroId != e.name) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._icon = e, this.HeroIcon.spriteFrame = this._icon, t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetInfoNode = function() {
                this.AddTag.node.active = !1, this.NoneHeroTag.node.active = !1, this.NoneAddTag.node.active = !1, this.LevelComponent.node.active = !1;
                var e = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, this._heroId);
                if (e) {
                    u.UIUtlity.OffSpriteGray(this.HeroIcon), this.AddTag.node.active = !0, this.LevelComponent.node.active = !0;
                    var t = this._attrMap[this._heroAddtionConfig.AttrIds[e.MaxStar - 5]][0].Items[1];
                    this.AddTag.string = "+" + t / 10 + "%", this.LevelComponent.Init(e.MaxStar)
                } else u.UIUtlity.OnSpriteGray(this.HeroIcon), this.NoneHeroTag.node.active = !0, this.NoneAddTag.node.active = !0;
                this.SetHeroTitleIcon()
            }, t.prototype.SetResultNode = function(e, t, n) {
                this.CrownIconNode.active = 1 == e, this.MyTeamTagNode.active = t == this._heroId, this.Mask.spriteFrame = n.getSpriteFrame("result_mask" + e)
            }, t.prototype.SetHeroTitleIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._heroTitleIconId == this._heroTitleId ? [3, 2] : (this._heroTitleIconId = this._heroTitleId, this._titleIcon && (c.AssetsManager.Instance.UnloadAsset(this._titleIcon), this._titleIcon = null), e = d.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + this._heroTitleId), [4, c.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)]);
                            case 1:
                                if (t = n.sent(), !this.isValid || e != t.name) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                this._titleIcon = t, this.HeroTitleIcon.spriteFrame = this._titleIcon, n.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnDetailButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroTestTowerStarAddtionPanel.Path, null, this._heroAddtionConfig.AttrIds, this._attrMap)
            }, t.prototype.SetSelectBgState = function(e) {
                this.SelectBgNode.active = e
            }, t.prototype.OnNodeClick = function() {
                this._mainPanel.OnSetHeroTeamSelect(this._index)
            }, t.prototype.onDestroy = function() {
                this._icon && c.AssetsManager.Instance.UnloadAsset(this._icon), this._titleIcon && c.AssetsManager.Instance.UnloadAsset(this._titleIcon)
            }, i([m(cc.Node)], t.prototype, "SelectBgNode", void 0), i([m(cc.Sprite)], t.prototype, "HeroIcon", void 0), i([m(cc.Node)], t.prototype, "InfoNode", void 0), i([m(cc.Label)], t.prototype, "AddTag", void 0), i([m(cc.Label)], t.prototype, "NoneHeroTag", void 0), i([m(cc.Label)], t.prototype, "NoneAddTag", void 0), i([m(h.LevelComponent)], t.prototype, "LevelComponent", void 0), i([m(cc.Button)], t.prototype, "DetailButton", void 0), i([m(cc.Sprite)], t.prototype, "HeroTitleIcon", void 0), i([m(cc.Node)], t.prototype, "ResultNode", void 0), i([m(cc.Sprite)], t.prototype, "Mask", void 0), i([m(cc.Node)], t.prototype, "CrownIconNode", void 0), i([m(cc.Node)], t.prototype, "MyTeamTagNode", void 0), i([m(cc.Label)], t.prototype, "MyTeamTag", void 0), i([g], t)
        }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LevelComponent": "LevelComponent"
    }],
    HeroPKToggleTagComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4b4f54xP35J86wCvMVal7dG", "HeroPKToggleTagComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagIcon = null, t.Tag = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    e > t.EndDay ? (this.Tag.string = "Activity_HeroPK_Round_Tag_End".ToUILocale(), this.TagIcon.spriteFrame = n.getSpriteFrame("brown_tag")) : e >= t.BattleDay ? (this.Tag.string = "Activity_HeroPK_Round_Tag_Play".ToUILocale(), this.TagIcon.spriteFrame = n.getSpriteFrame("red_tag")) : e >= t.StartDay ? (this.Tag.string = "Activity_HeroPK_Round_Tag_Start".ToUILocale(), this.TagIcon.spriteFrame = n.getSpriteFrame("blue_tag")) : (this.Tag.string = "Activity_HeroPK_Round_Tag_Not_Start".ToUILocale(), this.TagIcon.spriteFrame = n.getSpriteFrame("gray_tag"))
                }, i([l(cc.Sprite)], t.prototype, "TagIcon", void 0), i([l(cc.Label)], t.prototype, "Tag", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    HeroPalacePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ffd369rI8VJxakn5XXjuDp/", "HeroPalacePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/DataCenter"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = e("./HeroResolve"),
            _ = e("../Components/CustomToggle"),
            C = e("../../../Util/AppUtil"),
            v = e("../Components/CurrencyBarItem"),
            b = e("./HeroReplace"),
            S = e("./HeroMerge"),
            w = e("../../../EZFramework/EZFramework"),
            P = e("../../RedDot/RedDotManager"),
            A = e("../../../ShareConsts/EnumType"),
            T = e("../../Auxiliary/GlobalDefine"),
            R = e("../../../Consts/Consts"),
            L = e("../../Auxiliary/DataUtlity"),
            k = e("../../Auxiliary/ModuleGuideManager"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property;
        (function(e) {
            e[e.Merge = 0] = "Merge", e[e.Resolve = 1] = "Resolve", e[e.Displace = 2] = "Displace"
        })(l || (l = {}));
        var B = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(u.UINodeType.Fixed), t.MainTittle = null, t.BtnReturn = null, t.BtnRule = null, t.TopLevelToggles = [], t.CurrencyGrid = null, t.ResolveBoard = null, t.StartUpAndReplaceBoard = null, t.HeroMerge = null, t.HeroResolve = null, t.HeroReplace = null, t.QuickBtn = null, t.QuickBtnLockBg = null, t.QuickBtnLabel = null, t.HERO_RESOLVE_CURRENCYID = 11, t.DISPLACE_HERO_STAR_LIMIT = 7, t._currFunctionType = l.Merge, t._currencyItemPrefab = null, t._currencyBarItemTable = [], t._heroMergeDataMap = new Map, t._heroDataMap = new Map, t._showHeroStarLimit = 0, t._jumpIndex = 0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                d.Game.EventDispatcher.On(h.EventKeys.HERO_DISPLACE_SUCCESS, this.OnHeroDisplaceSuccess, this), d.Game.EventDispatcher.On(R.GameEventIds.ChangeDataDetail.Fmt(f.SeasonWeapon_Model._n_), this.OnSeasonWeaponDataChange, this)
            }, t.prototype.onDisable = function() {
                d.Game.EventDispatcher.Off(h.EventKeys.HERO_DISPLACE_SUCCESS), d.Game.EventDispatcher.Off(R.GameEventIds.ChangeDataDetail.Fmt(f.SeasonWeapon_Model._n_), this.OnSeasonWeaponDataChange, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ItemsComponent/CurrencyBarItem2")];
                            case 1:
                                return t._currencyItemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.OnHeroResolveSuccess = function() {
                this.HeroResolve.ResetSelectMap(), this.InitHeroResolve()
            }, t.prototype.OnHeroDisplaceSuccess = function() {
                this.InitHeroReplace()
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this._isInit || (this._isInit = !0, this.ResetToggle(), this.BindRedDotUI()), this.HeroResolve.ResetSelectMap(), this.HeroReplace.ResetSelect(), this.RefreshView(), this.RefreshQuickBtn(), this.ShowGuide(), P.RedDotManager.Instance.RefreshRedDotNode(P.RedDotManager.Instance.RedDot.HeroMergeBtnNode), P.RedDotManager.Instance.RefreshRedDotNode(P.RedDotManager.Instance.RedDot.HeroPalaceBtnNode)
            }, t.prototype.BindRedDotUI = function() {
                y.DataCenter.Instance.SetTempData("HeroPalaceRedDot", 1), P.RedDotManager.Instance.Bind(this.TopLevelToggles[l.Merge].node, P.RedDotManager.Instance.RedDot.HeroMergeBtnNode)
            }, t.prototype.ResetPanelState = function() {
                this.LoadBaseData()
            }, t.prototype.ResetToggle = function() {
                null != this._jumpIndex ? this._currFunctionType = this._jumpIndex : this._currFunctionType = l.Merge, this._jumpIndex = 0, this.TopLevelToggles[this._currFunctionType].isChecked = !0, this.MainTittle.string = ("heroPalace_tittle_" + this._currFunctionType).ToUILocale()
            }, t.prototype.RefreshView = function() {
                this.HideAllUI(), this.RefreshTopCurrency(), this.HeroMerge.DisableCommonEvent(), this.HeroReplace.DisableCommonEvent(), this.HeroResolve.DisableCommonEvent(), this._currFunctionType == l.Resolve ? (this._showHeroStarLimit = 0, this.ResolveBoard.active = !0, this.HeroResolve.EnableCommonEvent(), this.InitHeroResolve()) : this._currFunctionType == l.Displace ? (this._showHeroStarLimit = this.DISPLACE_HERO_STAR_LIMIT, this.StartUpAndReplaceBoard.active = !0, this.HeroReplace.EnableCommonEvent(), this.InitHeroReplace()) : (this.HeroMerge.EnableCommonEvent(), this.HeroMerge.node.active = !0, this.InitHeroMerge())
            }, t.prototype.HideAllUI = function() {
                this.StartUpAndReplaceBoard.active = !1, this.ResolveBoard.active = !1, this.HeroMerge.node.active = !1
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.SetClickEvent = function() {
                this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.TopLevelToggles[l.Merge].node.on("toggle", this.OnTopLevelToggleClick, this), this.TopLevelToggles[l.Resolve].node.on("toggle", this.OnTopLevelToggleClick, this), this.TopLevelToggles[l.Displace].node.on("toggle", this.OnTopLevelToggleClick, this), this.QuickBtn.node.on("click", this.OnUpgradeClick, this)
            }, t.prototype.SetStaticLocalText = function() {
                this.TopLevelToggles[l.Merge].Init("heroPalace_tittle_0".ToUILocale()), this.TopLevelToggles[l.Resolve].Init("heroPalace_tittle_1".ToUILocale()), this.TopLevelToggles[l.Displace].Init("heroPalace_tittle_2".ToUILocale()), this.QuickBtnLabel.string = "quick_upgrade_star_title".ToUILocale()
            }, t.prototype.OnTopLevelToggleClick = function(e) {
                var t = C.AppUtil.ToInt(e.node.name);
                this._currFunctionType != t && (this._currFunctionType = t, this.MainTittle.string = ("heroPalace_tittle_" + this._currFunctionType).ToUILocale(), this._currFunctionType == l.Resolve && (this.HeroResolve.Reset(), this.HeroResolve.ResetAnim(), this.HeroResolve.ResetElementSelect()), this.RefreshView())
            }, t.prototype.InitHeroMerge = function() {
                this.ConfigHeroMergeDataMap(), this.HeroMerge.Init(this._heroMergeDataMap)
            }, t.prototype.InitHeroResolve = function() {
                this.ConfigDataMap(A.HeroElementType.Chaos, !0), this.HeroResolve.Init(this._heroDataMap, this._heroStarBaseData)
            }, t.prototype.InitHeroReplace = function() {
                this.ConfigDataMap(A.HeroElementType.Chaos), this.HeroReplace.Init(this._heroDataMap, this._heroStarBaseData)
            }, t.prototype.InitData = function(e) {
                this._jumpIndex = e[0]
            }, t.prototype.LoadBaseData = function() {
                this._heroStarBaseData = m.ConfigDataComponent.Instance.GetConfig(g.HeroStar_Config)
            }, t.prototype.RefreshTopCurrency = function() {
                for (var e = 0; e < this._currencyBarItemTable.length; e++) this._currencyBarItemTable[e].node.active = !1;
                if (this._currFunctionType == l.Resolve) {
                    for (e = 0; e < 3; e++) null == this._currencyBarItemTable[e] && ((t = cc.instantiate(this._currencyItemPrefab)).parent = this.CurrencyGrid, this._currencyBarItemTable[e] = t.getComponent(v.default)), this._currencyBarItemTable[e].node.active = !0;
                    this._currencyBarItemTable[0].Init(this.HERO_RESOLVE_CURRENCYID), this._currencyBarItemTable[1].Init(A.CommonItemId.SteppingStone), this._currencyBarItemTable[2].Init(A.CommonItemId.XpWater), this.CurrencyGrid.active = !0
                } else if (this._currFunctionType == l.Displace) {
                    var t;
                    null == this._currencyBarItemTable[0] && ((t = cc.instantiate(this._currencyItemPrefab)).parent = this.CurrencyGrid, this._currencyBarItemTable[0] = t.getComponent(v.default)), this._currencyBarItemTable[0].Init(A.CommonItemId.HeroDisplaceItemId), this._currencyBarItemTable[0].node.active = !0, this.CurrencyGrid.active = !0
                } else this.CurrencyGrid.active = !1
            }, t.prototype.ConfigDataMap = function(e, t) {
                var n = this;
                void 0 === t && (t = !1), this._heroDataMap.clear();
                var o = y.DataCenter.Instance.GetDataList(f.UserHero_Model),
                    r = [];
                this._heroDataMap.set(A.HeroElementType.All, r);
                for (var i = L.default.Instance.IsGameModuleUnlock(R.GameModuleType.HeroPalaceSPHero)[0], a = 0; a < o.length; a++) {
                    var s = o[a];
                    if (!(s.StarLevel < this._showHeroStarLimit)) {
                        var c = m.ConfigDataComponent.Instance.GetConfigById(g.HeroBase_Config, s.HeroId);
                        if ((!t || 2 != c.CoreHero) && (this._currFunctionType != l.Displace || i || 2 != c.CoreHero) && !(c.CoreHero >= R.CoreHeroTag.UR)) {
                            var u = c.ElementType,
                                p = this._heroDataMap.get(u);
                            null != e ? u != e && r.push(s) : r.push(s), p ? p.push(s) : ((p = []).push(s), this._heroDataMap.set(u, p))
                        }
                    }
                }
                this._heroDataMap.forEach(function(e) {
                    n.SortByLockState(e)
                })
            }, t.prototype.ConfigHeroMergeDataMap = function() {
                this._heroMergeDataMap.clear();
                var e = m.ConfigDataComponent.Instance.GetConfig(g.HeroBase_Config),
                    t = [];
                this._heroMergeDataMap.set(A.HeroElementType.All, t);
                var n = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroPalaceMergeLevelCondition"),
                    o = y.DataCenter.Instance.GetIntData(R.UserDataKey.PlayerLevel);
                for (var r in e) {
                    var i = e[r];
                    if (!(o < n && i.StarLevel > 4) && !(i.StarLevel < 4 || i.StarLevel > 5) && i.Type == R.HeroRoleType.Hero && L.default.IsHeroShownAvailable(i)) {
                        t.push(i);
                        var a = e[r].ElementType,
                            s = this._heroMergeDataMap.get(a);
                        s ? s.push(i) : ((s = []).push(i), this._heroMergeDataMap.set(a, s))
                    }
                }
            }, t.prototype.SortByLockState = function(e) {
                var t = this;
                e.sort(function(e, n) {
                    return !e.Locked && n.Locked ? -1 : e.Locked && !n.Locked ? 1 : t.SortByHeroStar(e, n)
                })
            }, t.prototype.SortByHeroStar = function(e, t) {
                return e.StarLevel < t.StarLevel ? this._currFunctionType == l.Resolve ? -1 : 1 : e.StarLevel > t.StarLevel ? this._currFunctionType == l.Resolve ? 1 : -1 : this.SortByCore(e, t)
            }, t.prototype.SortByCore = function(e, t) {
                var n = m.ConfigDataComponent.Instance.GetConfigById(g.HeroBase_Config, e.HeroId),
                    o = m.ConfigDataComponent.Instance.GetConfigById(g.HeroBase_Config, t.HeroId);
                return 0 == n.CoreHero && o.CoreHero >= 1 ? this._currFunctionType == l.Resolve ? -1 : 1 : n.CoreHero >= 1 && 0 == o.CoreHero ? this._currFunctionType == l.Resolve ? 1 : -1 : this.SortByAttr(n, o)
            }, t.prototype.SortByAttr = function(e, t) {
                return e.ElementType < t.ElementType ? -1 : e.ElementType > t.ElementType ? 1 : e.Id < t.Id ? this._currFunctionType == l.Resolve ? -1 : 1 : e.Id > t.Id ? this._currFunctionType == l.Resolve ? 1 : -1 : 0
            }, t.prototype.RefreshQuickBtn = function() {
                var e = L.default.Instance.IsGameModuleUnlock(R.GameModuleType.QuickUpgradeStar);
                this.QuickBtn.node.active = e[0]
            }, t.prototype.OnUpgradeClick = function() {
                var e = L.default.Instance.IsGameModuleUnlock(R.GameModuleType.QuickUpgradeStar);
                e[0] ? d.UIManager.Instance.ShowUIPanel(T.PanelConfig.QuickUpgradeStarPanel.Path) : p.UIUtlity.ShowFloatingHint(e[1])
            }, t.prototype.OnBtnReturnClick = function() {
                w.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnBtnRuleClick = function() {
                var e = {
                    name: "heroPalace_rule_maintittle".ToUILocale(),
                    titles: [("heroPalace_rule_subtittle" + (this._currFunctionType + 1)).ToUILocale()],
                    contents: [("heroPalace_rule_text" + (this._currFunctionType + 1)).ToUILocale()]
                };
                p.UIUtlity.ShowRulePanel(e)
            }, t.prototype.ShowGuide = function() {
                k.default.instance.CheckGameModeuleGuideNeedShow(A.GameModuleType.HeroPalace) && (k.default.instance.ShowNPCDialogs([1021]), k.default.instance.CompleteGameModuleWeakGuide(A.GameModuleType.HeroPalace))
            }, t.prototype.OnSeasonWeaponDataChange = function() {
                this._currFunctionType == l.Resolve ? this.InitHeroResolve() : this._currFunctionType == l.Displace ? this.InitHeroReplace() : this.InitHeroMerge()
            }, i([D(cc.Label)], t.prototype, "MainTittle", void 0), i([D(cc.Button)], t.prototype, "BtnReturn", void 0), i([D(cc.Button)], t.prototype, "BtnRule", void 0), i([D(_.default)], t.prototype, "TopLevelToggles", void 0), i([D(cc.Node)], t.prototype, "CurrencyGrid", void 0), i([D(cc.Node)], t.prototype, "ResolveBoard", void 0), i([D(cc.Node)], t.prototype, "StartUpAndReplaceBoard", void 0), i([D(S.default)], t.prototype, "HeroMerge", void 0), i([D(I.default)], t.prototype, "HeroResolve", void 0), i([D(b.default)], t.prototype, "HeroReplace", void 0), i([D(cc.Button)], t.prototype, "QuickBtn", void 0), i([D(cc.Node)], t.prototype, "QuickBtnLockBg", void 0), i([D(cc.Label)], t.prototype, "QuickBtnLabel", void 0), i([M], t)
        }(d.BaseUIFullScreenPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "./HeroMerge": "HeroMerge",
        "./HeroReplace": "HeroReplace",
        "./HeroResolve": "HeroResolve"
    }],
    HeroRandomReplacePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "22692gr079CUq1chD4fzRMz", "HeroRandomReplacePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/UIFrame/UIPanelType"),
            p = e("../../../EZFramework/EZDefine/SysDefine"),
            d = e("../Components/HeroListComponent"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/ConfigData/ConfigDataComponent"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Components/DataCenter"),
            I = e("../Components/CurrencyBarItem"),
            _ = e("../Components/ItemComponent"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../Components/HeroCardComponent"),
            w = e("../Components/ItemClickComponent"),
            P = e("../Auxiliary/UIUtlity"),
            A = e("../../Auxiliary/GlobalDefine"),
            T = e("../../Components/RpcComponent"),
            R = e("./SummonRatePanel"),
            L = e("../Components/LevelComponent"),
            k = e("../../Auxiliary/DataUtlity"),
            O = e("../Components/CustomLayout"),
            M = e("../../../Consts/Consts"),
            D = e("../../Channel/ChannelManager"),
            B = cc._decorator,
            N = B.ccclass,
            E = B.property;
        (function(e) {
            e[e.Select = 0] = "Select", e[e.Draw = 1] = "Draw"
        })(l || (l = {})),
        function(e) {
            e[e.Left = 0] = "Left", e[e.Right = 1] = "Right"
        }(c || (c = {}));
        var U = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(p.UINodeType.Fixed, !0, !1), t.Tittle = null, t.HintNode = null, t.Hint = null, t.Tips = null, t.BtnRule = null, t.DiamondCurrencyItem = null, t.HeroListComponent = null, t.HeroGrid = null, t.OriginCardRoot = null, t.OriginCardTitle = null, t.OriginCardName = null, t.OriginCardAnim = null, t.TargetCardRoot = null, t.TargetCardTitle = null, t.TargetCardName = null, t.TargetElementIcon = null, t.TargetHeroLevel = null, t.TargetLevelComponent = null, t.TargetCardAnim = null, t.BtnReplace = null, t.LabelBtnReplace = null, t.MaterialItemIcon = null, t.MaterialItemCount = null, t.BtnPreview = null, t.BtnCancal = null, t.BtnCancalLabel = null, t.BtnSave = null, t.BtnSaveLabel = null, t.BtnReturn = null, t.HeroListNode = null, t.Focus = null, t.DEFAULT = 0, t.STAR_LEVEL_FOUR = 4, t.STAR_LEVEL_FIVE = 5, t.CARD_ANIM_EVENT_DELAY = 4e3, t._selectHero = null, t._heroCardPrefab = null, t._originCardItem = null, t._targetCardItem = null, t._operationState = l.Select, t._currBeDispalceHero = 0, t._currNewDisplaceHero = 0, t._isBusy = !1, t.HeroListNodeHeight = 916, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                C.Game.EventDispatcher.On(v.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), C.Game.EventDispatcher.On(v.EventKeys.EVENT_REFRESH_SELECT_MATERIALHERO, this.OnRefresh, this), C.Game.EventDispatcher.On(v.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
            }, t.prototype.onDisable = function() {
                C.Game.EventDispatcher.On(v.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), C.Game.EventDispatcher.Off(v.EventKeys.EVENT_REFRESH_SELECT_MATERIALHERO, this.OnRefresh), C.Game.EventDispatcher.Off(v.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement)
            }, t.prototype.OnSwitchHeroElement = function(e) {
                this._currentElement != e && (this._currentElement = e, this.RefreshVisibleItem())
            }, t.prototype.OnRefresh = function(e) {
                b.EZLog.Log("\u5237\u65b0\u754c\u9762"), this.RefreshVisibleItem(), this.OnClickHero(e)
            }, t.prototype.RefreshVisibleItem = function() {
                for (var e = this.GetHeroDataByElement(this._currentElement), t = Math.min(e.length, this.HeroGrid.node.children.length), n = 0; n < t; n++) {
                    var o = this.HeroGrid.node.children[n],
                        r = o.getComponent(_.ItemComponent),
                        i = Number.parseInt(o.name),
                        a = this.SearchHeroData(i, e);
                    if (r.Init(a, _.ItemComponentType.HeroInfo), k.default.Instance.IsHeroCanBeConsume(i)) {
                        var s = null != this._selectHero && this._selectHero.Sid == i;
                        this.SetSelect(r, s)
                    } else r.SetLockFlag(!0), this.SetSelect(r, !1), r.EnableHeroMask();
                    r.node.name = i.toString()
                }
            }, t.prototype.SearchHeroData = function(e, t) {
                for (var n = 0; n < t.length; n++)
                    if (t[n].Sid == e) return t[n]
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(A.BundlePath.HeroCardComponent, cc.Prefab)];
                            case 1:
                                return t._heroCardPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.InitAnimEvent(), this.SetStaticLocalText(), this.SetClickEvent(), this.HeroListNode.height = (P.UIUtlity.DESIGN_SCREEN_HEIGHT - 1920) / 2 + this.HeroListNodeHeight
            }, t.prototype.InitAnimEvent = function() {
                var e = this;
                this.OriginCardAnim.setCompleteListener(function() {
                    e.OriginCardAnim.node.active = !1
                }), this.TargetCardAnim.setCompleteListener(function() {
                    e.TargetCardAnim.node.active = !1
                })
            }, t.prototype.SetStaticLocalText = function() {
                this.Tittle.string = "oracleDraw_heroDisplace".ToUILocale(), this.LabelBtnReplace.string = "transform".ToUILocale(), this.Tips.string = "oracleDraw_heroDisplace_tips".ToUILocale(), this.BtnCancalLabel.string = "cancel".ToUILocale(), this.BtnSaveLabel.string = "ok".ToUILocale(), this.Hint.string = "displaceHero_not_consume".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnPreview.node.on("click", this.OnBtnPreviewClick, this), this.BtnReplace.node.on("click", this.OnBtnReplacleClick, this), this.BtnSave.node.on("click", this.OnBtnSaveClick, this), this.BtnCancal.node.on("click", this.OnBtnCancelClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this)
            }, t.prototype.OnBtnReturnClick = function() {
                b.UIManager.Instance.BackUIPanel()
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.RefreshTopCurrency()
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this.LoadIcon(), this.ResetAnim(), this.Reset(), this.InitHeroListComponent()
            }, t.prototype.LoadIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return null != this._itemSprite ? [3, 2] : (e = k.default.Instance.GetItemPathById(g.CommonItemId.HeroRandomDisplaceItemId), t = this, [4, this.LoadDynamicAsset(e, cc.SpriteFrame)]);
                            case 1:
                                if (t._itemSprite = n.sent(), !this.isValid) return b.AssetsManager.Instance.UnloadAsset(this._itemSprite), [2];
                                n.label = 2;
                            case 2:
                                return this.MaterialItemIcon.spriteFrame = this._itemSprite, [2]
                        }
                    })
                })
            }, t.prototype.ResetAnim = function() {
                this.OriginCardAnim.node.active = !1, this.TargetCardAnim.node.active = !1
            }, t.prototype.HideTargetFloatingUI = function() {
                this.TargetElementIcon.node.active = !1, this.TargetHeroLevel.node.active = !1, this.TargetLevelComponent.node.active = !1
            }, t.prototype.ShowTargetFloatingUI = function() {
                this.TargetElementIcon.node.active = !0, this.TargetHeroLevel.node.active = !0, this.TargetLevelComponent.node.active = !0
            }, t.prototype.Reset = function() {
                if (this.ReloadOperationState(), this._operationState == l.Select) this._selectHero = null, this.HideTargetFloatingUI();
                else {
                    var e = m.DataCenter.Instance.GetDataById(f.UserHero_Model, this._currBeDispalceHero);
                    null != e && (this._selectHero = e)
                }
                this.SetBtnState(), this.HideOriginCardRoot(), this.HideTargetCardRoot(), this.SetCardDisplay()
            }, t.prototype.RefreshView = function() {
                this.Reset(), this.RefreshHeroListComponent()
            }, t.prototype.RefreshHeroListComponent = function() {
                var e = this.GetHeroData();
                null == this._selectHero ? this.HeroListComponent.SelectSIds = [] : this.HeroListComponent.SelectSIds = [this._selectHero.Sid], this.HeroListComponent.RefreshData(e)
            }, t.prototype.ReloadOperationState = function() {
                this._currBeDispalceHero = m.DataCenter.Instance.GetIntData(g.UserDataKey.CurrentBeDisplaceHero), this._currNewDisplaceHero = m.DataCenter.Instance.GetIntData(g.UserDataKey.CurrentNewDisplaceHero), this._currBeDispalceHero > 0 && this._currNewDisplaceHero > 0 ? this._operationState = l.Draw : this._operationState = l.Select
            }, t.prototype.HideOriginCardRoot = function() {
                this.OriginCardRoot.active = !1
            }, t.prototype.HideTargetCardRoot = function() {
                this.TargetCardRoot.active = !1
            }, t.prototype.RefreshTopCurrency = function() {
                this.DiamondCurrencyItem.Init(g.CommonItemId.HeroRandomDisplaceItemId)
            }, t.prototype.SetBtnState = function() {
                switch (this._operationState) {
                    case l.Select:
                        if (null == this._selectHero) return void this.HideAllBtn();
                        this.BtnReplace.node.active = !0, this.BtnCancal.node.active = !1, this.BtnSave.node.active = !1, this.HintNode.active = !1;
                        break;
                    case l.Draw:
                        this.BtnReplace.node.active = !1, this.BtnCancal.node.active = !0, this.BtnSave.node.active = !0, this.HintNode.active = !0
                }
            }, t.prototype.SetCardDisplay = function(e) {
                var t = this;
                if (void 0 === e && (e = !1), this._operationState == l.Draw) {
                    var n = m.DataCenter.Instance.GetDataById(f.UserHero_Model, this._currBeDispalceHero);
                    this.LoadHeroCardLeft(), e ? (this.TargetCardAnim.node.active = !0, this.TargetCardAnim.setAnimation(0, this.TargetCardAnim.defaultAnimation, !1), setTimeout(function() {
                        t.TargetCardAnim.node.active && t.LoadHeroCard(c.Right, t._currNewDisplaceHero, n.StarLevel)
                    }, cc.director.getDeltaTime() * this.CARD_ANIM_EVENT_DELAY)) : this.LoadHeroCard(c.Right, this._currNewDisplaceHero, n.StarLevel)
                }
            }, t.prototype.HideAllBtn = function() {
                this.BtnReplace.node.active = !1, this.BtnCancal.node.active = !1, this.BtnSave.node.active = !1, this.HintNode.active = !1
            }, t.prototype.GetHeroData = function() {
                var e = m.DataCenter.Instance.GetDataList(f.UserHero_Model),
                    t = [];
                for (var n in e) {
                    var o = e[n],
                        r = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, o.HeroId);
                    o.StarLevel < this.STAR_LEVEL_FOUR || o.StarLevel > this.STAR_LEVEL_FIVE || r.ElementType > g.HeroElementType.Tech || r.CoreHero >= M.CoreHeroTag.UR || t.push(o)
                }
                return this.SortByLockState(t), t
            }, t.prototype.GetHeroDataByElement = function(e) {
                var t = m.DataCenter.Instance.GetDataList(f.UserHero_Model),
                    n = [];
                for (var o in t) {
                    var r = t[o],
                        i = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, r.HeroId);
                    r.StarLevel < this.STAR_LEVEL_FOUR || r.StarLevel > this.STAR_LEVEL_FIVE || i.ElementType > g.HeroElementType.Tech || e != g.HeroElementType.All && i.ElementType != e || i.CoreHero >= M.CoreHeroTag.UR || n.push(r)
                }
                return this.SortByLockState(n), n
            }, t.prototype.SortByLockState = function(e) {
                var t = this;
                e.sort(function(e, n) {
                    return !e.Locked && n.Locked ? -1 : e.Locked && !n.Locked ? 1 : t.SortByHeroStar(e, n)
                })
            }, t.prototype.SortByElement = function(e, t) {
                var n = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e.HeroId),
                    o = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t.HeroId);
                return n.ElementType < o.ElementType ? -1 : n.ElementType > o.ElementType ? 1 : this.SortByHeroId(e, t)
            }, t.prototype.SortByHeroStar = function(e, t) {
                return e.StarLevel > t.StarLevel ? -1 : e.StarLevel < t.StarLevel ? 1 : this.SortByCore(e, t)
            }, t.prototype.SortByBeginStar = function(e, t) {
                var n = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e.HeroId),
                    o = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t.HeroId);
                return n.MaxStarLevel < o.MaxStarLevel ? -1 : n.MaxStarLevel > o.MaxStarLevel ? 1 : this.SortByElement(e, t)
            }, t.prototype.SortByCore = function(e, t) {
                var n = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e.HeroId),
                    o = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t.HeroId);
                return 0 == n.CoreHero && o.CoreHero >= 1 ? -1 : n.CoreHero >= 1 && 0 == o.CoreHero ? 1 : this.SortByBeginStar(e, t)
            }, t.prototype.SortByHeroId = function(e, t) {
                var n = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, e.HeroId),
                    o = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, t.HeroId);
                return n.Id < o.Id ? -1 : n.Id > o.Id ? 1 : e.Level - t.Level
            }, t.prototype.InitHeroListComponent = function() {
                var e = this.GetHeroData();
                null == this._selectHero ? this.HeroListComponent.SelectSIds = [] : this.HeroListComponent.SelectSIds = [this._selectHero.Sid];
                for (var t = [], n = 0; n < e.length; n++) k.default.Instance.IsHeroCanBeConsume(e[n].Sid) || t.push(e[n].Sid);
                this.HeroListComponent.Init(d.HeroListType.FormationLocked, {
                    HeroesData: e,
                    LockedHeroes: t,
                    IsSelectHideMask: !0
                }), this.HeroListComponent.SetItemClickCallback(this.OnClickHero.bind(this)), this.HeroListComponent.SetSelectCallback(this.SetSelect.bind(this))
            }, t.prototype.OnClickHero = function(e, t) {
                var n = this;
                if (this._operationState != l.Draw)
                    if (k.default.Instance.IsHeroCanBeConsume(e)) {
                        if ((null == this._selectHero || this._selectHero.Sid != e) && (r = m.DataCenter.Instance.GetDataById(f.UserHero_Model, e), m.DataCenter.Instance.GetDataById(f.HeroInfo_Model, r.HeroId).HandbookStar == r.StarLevel)) {
                            var o = {
                                Type: k.UpStarHeroMaterialType.Hero,
                                Id: r.Sid
                            };
                            if (0 == k.default.GetHeroByItemIdAndStar(r.HeroId, r.StarLevel, [o], void 0, !0).length) return P.UIUtlity.ShowHintPanel(null, "HeroHandbook_Consume_Tip".ToUILocale(), "", null, "", function() {
                                n.SetHeroNodeState(e, t)
                            })
                        }
                        this.SetHeroNodeState(e, t)
                    } else {
                        var r;
                        if ((r = m.DataCenter.Instance.GetDataById(f.UserHero_Model, e)).Locked) return P.UIUtlity.ShowHintPanel(null, "hero_unlock_hint".ToUILocale(), "", null, "hero_unlock".ToUILocale(), function() {
                            n.HeroGrid.node.getChildByName(e.toString()), n.UnlockHero(e)
                        });
                        var i = m.DataCenter.Instance.GetFlyHeroSeasonWeaponId(e);
                        if (i) return P.UIUtlity.ShowHintPanel(null, "hero_unFly_hint".ToUILocale(), "", null, "equip_takeoff".ToUILocale(), function() {
                            n.UnFlyHero(e, i)
                        });
                        var a = k.default.Instance.HeroCanNotOffFormations(e);
                        0 == a.length ? b.UIManager.Instance.ShowUIPanel(A.PanelConfig.OffFormationPanel.Path, e) : P.UIUtlity.ShowFloatingHint("hero_off_formation_limit_hint".ToUILocale().Fmt(a[0].ToFormationInstanceName()))
                    }
            }, t.prototype.SetHeroNodeState = function(e, t) {
                var n, o = this,
                    r = m.DataCenter.Instance.GetDataById(f.UserHero_Model, e);
                n = null == t ? this.HeroGrid.node.getChildByName(e.toString()).getComponent(_.ItemComponent) : t.getComponent(_.ItemComponent), null == this._selectHero ? (this._selectHero = r, this.HeroListComponent.SelectSIds.push(this._selectHero.Sid), this.SetSelect(n, !0)) : this._selectHero.Sid == e ? (this.HeroListComponent.UnselectHeroItemNode(this._selectHero.Sid), this._selectHero = null, this.HideOriginCardRoot(), this.HideTargetCardRoot()) : (this.HeroListComponent.UnselectHeroItemNode(this._selectHero.Sid), this._selectHero = r, this.HeroListComponent.SelectSIds.push(this._selectHero.Sid), this.SetSelect(n, !0)), null != this._selectHero && (this.SetMaterialItemCount(), this.OriginCardAnim.node.active = !0, this.OriginCardAnim.setAnimation(0, this.OriginCardAnim.defaultAnimation, !1), setTimeout(function() {
                    o.OriginCardAnim.node.active && o.LoadHeroCardLeft()
                }, cc.director.getDeltaTime() * this.CARD_ANIM_EVENT_DELAY)), this._operationState = l.Select, this.SetBtnState()
            }, t.prototype.SetSelect = function(e, t) {
                e.SetSelectFlagState(t), t && (e.SelectFlag.spriteFrame = null, e.DisableMask(), e.DisableHeroMask(), this.Focus.active = !0, this.Focus.setParent(e.SelectFlag.node), this.Focus.setPosition(cc.Vec3.ZERO))
            }, t.prototype.UnlockHero = function(e) {
                var t = this,
                    n = new f.Req_Hero_LockHero;
                n.Sid = e, n.Locked = !1, T.RpcComponent.Instance.Call(n, function() {
                    P.UIUtlity.ShowFloatingHint("hero_has_unlocked".ToUILocale()), t.OnRefresh(e)
                })
            }, t.prototype.UnFlyHero = function(e, t) {
                var n = this,
                    o = new f.Req_Activity_SeasonWeaponFly;
                o.Sid = t, o.Owner = 0, T.RpcComponent.Instance.Call(o, function() {
                    P.UIUtlity.ShowFloatingHint("remove_success".ToUILocale()), n.OnRefresh(e)
                })
            }, t.prototype.LoadHeroCard = function(e, t, n) {
                var o, r, i, a;
                if (e == c.Left ? (o = this.OriginCardRoot, i = this.OriginCardName, a = this.OriginCardTitle, r = this._originCardItem) : (o = this.TargetCardRoot, i = this.TargetCardName, a = this.TargetCardTitle, r = this._targetCardItem), null == r) {
                    var s = cc.instantiate(this._heroCardPrefab);
                    s.removeComponent(w.default), (r = s.getComponent(S.default)).node.parent = o
                }
                r.Init({
                    ItemId: t,
                    StarLevel: n
                }, -1);
                var l = D.default.Instance.IsVNChannel();
                i.node.active = !l, l || (i.string = t.ToHeroName()), a.string = l ? t.ToHeroName() : t.ToHeroTitle(), i.node.color = P.UIUtlity.GetLabelColorByQuality(Math.min(n, P.UIUtlity.Max_Quality_Level)), a.node.color = P.UIUtlity.GetLabelColorByQuality(Math.min(n, P.UIUtlity.Max_Quality_Level)), o.active = !0
            }, t.prototype.LoadHeroCardLeft = function() {
                var e = this.OriginCardRoot,
                    t = this._originCardItem,
                    n = this.OriginCardName,
                    o = this.OriginCardTitle;
                if (null == t) {
                    var r = cc.instantiate(this._heroCardPrefab);
                    r.removeComponent(w.default), (t = r.getComponent(S.default)).node.parent = e
                }
                var i = m.DataCenter.Instance.GetDataById(f.HeroInfo_Model, this._selectHero.HeroId),
                    a = i && i.PersonalityStar ? i.PersonalityStar : 0;
                t.Init(this._selectHero, a);
                var s = D.default.Instance.IsVNChannel();
                n.node.active = !s, s || (n.string = this._selectHero.HeroId.ToHeroName()), o.string = s ? this._selectHero.HeroId.ToHeroName() : this._selectHero.HeroId.ToHeroTitle(), n.node.color = P.UIUtlity.GetLabelColorByQuality(Math.min(this._selectHero.StarLevel, P.UIUtlity.Max_Quality_Level)), o.node.color = P.UIUtlity.GetLabelColorByQuality(Math.min(this._selectHero.StarLevel, P.UIUtlity.Max_Quality_Level)), e.active = !0, this.ShowTargetFloatingUI();
                var l = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, this._selectHero.HeroId);
                this.TargetElementIcon.spriteFrame = P.UIUtlity.GetHeroElementIcon(l.ElementType), this.TargetHeroLevel.string = "Lv." + this._selectHero.Level;
                var c = L.LevelComponent.GetLevelShowType(l.CoreHero, l.ElementType);
                this.TargetLevelComponent.Init(this._selectHero.StarLevel, 0, L.StarLayoutMode.Left, c)
            }, t.prototype.SetMaterialItemCount = function() {
                var e = y.ConfigDataComponent.Instance.GetConfigById(h.CardProphetSummon_Config, this._selectHero.StarLevel - 1).BaseCurrencyCount;
                this.MaterialItemCount.string = e.toString(), this.IsMaterialItemCountEnough(e) ? this.MaterialItemCount.node.color = cc.Color.WHITE : this.MaterialItemCount.node.color = new cc.Color(255, 75, 75)
            }, t.prototype.IsMaterialItemCountEnough = function(e) {
                return m.DataCenter.Instance.IsItemEnough(g.CommonItemId.HeroRandomDisplaceItemId, e)
            }, t.prototype.OnBtnPreviewClick = function() {
                if (null != this._selectHero) {
                    var e = y.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, this._selectHero.HeroId);
                    b.UIManager.Instance.ShowUIPanel(A.PanelConfig.SummonRatePanel.Path, R.RatePanelType.Single, e.ElementType, this._selectHero.StarLevel, this._selectHero.HeroId)
                }
            }, t.prototype.OnBtnReplacleClick = function() {
                if (1 != this._isBusy) {
                    var e = y.ConfigDataComponent.Instance.GetConfigById(h.CardProphetSummon_Config, this._selectHero.StarLevel - 1).BaseCurrencyCount,
                        t = g.CommonItemId.HeroRandomDisplaceItemId.ToItemName();
                    this.MaterialItemCount.string = e.toString(), this.IsMaterialItemCountEnough(e) ? this.RequestDisplaceHero() : (P.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t)), b.UIManager.Instance.ShowUIPanel(A.PanelConfig.ItemGetWayPanel.Path, g.CommonItemId.HeroRandomDisplaceItemId))
                }
            }, t.prototype.OnBtnSaveClick = function() {
                var e = this;
                if (1 != this._isBusy) {
                    var t = this._currBeDispalceHero;
                    if (k.default.Instance.IsHeroCanBeConsume(t)) this.RequestSaveDisplaceHero();
                    else {
                        if (m.DataCenter.Instance.GetDataById(f.UserHero_Model, t).Locked) return P.UIUtlity.ShowHintPanel(null, "hero_unlock_hint".ToUILocale(), "", null, "hero_unlock".ToUILocale(), function() {
                            e.UnlockHero(t)
                        });
                        var n = k.default.Instance.HeroCanNotOffFormations(t);
                        0 == n.length ? b.UIManager.Instance.ShowUIPanel(A.PanelConfig.OffFormationPanel.Path, t) : P.UIUtlity.ShowFloatingHint("hero_off_formation_limit_hint".ToUILocale().Fmt(n[0].ToFormationInstanceName()))
                    }
                }
            }, t.prototype.OnBtnCancelClick = function() {
                this.RequestCancelDisplaceHero()
            }, t.prototype.RequestDisplaceHero = function() {
                this._isBusy = !0;
                var e = new f.Req_Card_ElementDisplace;
                e.Sid = this._selectHero.Sid, T.RpcComponent.Instance.Call(e, this.ResponseDisplaceHero.bind(this), this.ResponseFailed.bind(this))
            }, t.prototype.ResponseDisplaceHero = function() {
                null != this && (this._isBusy = !1, 0 != this.node.active && (this.RefreshTopCurrency(), this.ReloadOperationState(), this.SetBtnState(), this.SetCardDisplay(!0)))
            }, t.prototype.ResponseFailed = function() {
                null != this && (this._isBusy = !1)
            }, t.prototype.RequestSaveDisplaceHero = function() {
                this._isBusy = !0;
                var e = new f.Req_Card_ElementDisplaceSave;
                e.Sid = this._currBeDispalceHero, e.NewHeroId = this._currNewDisplaceHero, T.RpcComponent.Instance.Call(e, this.ResponseSaveDisplaceHero.bind(this), this.ResponseFailed.bind(this))
            }, t.prototype.ResponseSaveDisplaceHero = function() {
                null != this && (this._isBusy = !1, 0 != this.node.active && (P.UIUtlity.ShowFloatingHint("oracleDraw_saveSuccess".ToUILocale()), this.RefreshView()))
            }, t.prototype.RequestCancelDisplaceHero = function() {
                this._isBusy = !0;
                var e = new f.Req_Card_ElementDisplaceCancel;
                e.Sid = this._currBeDispalceHero, e.NewHeroId = this._currNewDisplaceHero, T.RpcComponent.Instance.Call(e, this.ResponseCancelDisplaceHero.bind(this), this.ResponseFailed.bind(this))
            }, t.prototype.ResponseCancelDisplaceHero = function() {
                null != this && (this._isBusy = !1, 0 != this.node.active && (this.ReloadOperationState(), this.SetBtnState(), this.HideTargetCardRoot()))
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                this.HeroGrid == t && e.forEach(function(e) {
                    var t = e.getComponent(_.ItemComponent),
                        o = Number.parseInt(t.node.name);
                    k.default.Instance.IsHeroCanBeConsume(o) ? (t.SetLockFlag(!1), null != n._selectHero && n._selectHero.Sid == o ? t.EnableHeroMask() : t.DisableHeroMask()) : (t.SetLockFlag(!0), t.EnableHeroMask())
                })
            }, t.prototype.OnBtnRuleClick = function() {
                var e = {
                    name: "oracle_exchange_rule_maintittle".ToUILocale(),
                    titles: ["oracle_exchange_rule_subtittle".ToUILocale()],
                    contents: ["oracle_exchange_rule_text".ToUILocale()]
                };
                P.UIUtlity.ShowRulePanel(e)
            }, i([E(cc.Label)], t.prototype, "Tittle", void 0), i([E(cc.Node)], t.prototype, "HintNode", void 0), i([E(cc.RichText)], t.prototype, "Hint", void 0), i([E(cc.Label)], t.prototype, "Tips", void 0), i([E(cc.Button)], t.prototype, "BtnRule", void 0), i([E(I.default)], t.prototype, "DiamondCurrencyItem", void 0), i([E(d.default)], t.prototype, "HeroListComponent", void 0), i([E(O.default)], t.prototype, "HeroGrid", void 0), i([E(cc.Node)], t.prototype, "OriginCardRoot", void 0), i([E(cc.Label)], t.prototype, "OriginCardTitle", void 0), i([E(cc.Label)], t.prototype, "OriginCardName", void 0), i([E(sp.Skeleton)], t.prototype, "OriginCardAnim", void 0), i([E(cc.Node)], t.prototype, "TargetCardRoot", void 0), i([E(cc.Label)], t.prototype, "TargetCardTitle", void 0), i([E(cc.Label)], t.prototype, "TargetCardName", void 0), i([E(cc.Sprite)], t.prototype, "TargetElementIcon", void 0), i([E(cc.Label)], t.prototype, "TargetHeroLevel", void 0), i([E(L.LevelComponent)], t.prototype, "TargetLevelComponent", void 0), i([E(sp.Skeleton)], t.prototype, "TargetCardAnim", void 0), i([E(cc.Button)], t.prototype, "BtnReplace", void 0), i([E(cc.Label)], t.prototype, "LabelBtnReplace", void 0), i([E(cc.Sprite)], t.prototype, "MaterialItemIcon", void 0), i([E(cc.Label)], t.prototype, "MaterialItemCount", void 0), i([E(cc.Button)], t.prototype, "BtnPreview", void 0), i([E(cc.Button)], t.prototype, "BtnCancal", void 0), i([E(cc.Label)], t.prototype, "BtnCancalLabel", void 0), i([E(cc.Button)], t.prototype, "BtnSave", void 0), i([E(cc.Label)], t.prototype, "BtnSaveLabel", void 0), i([E(cc.Button)], t.prototype, "BtnReturn", void 0), i([E(cc.Node)], t.prototype, "HeroListNode", void 0), i([E(cc.Node)], t.prototype, "Focus", void 0), i([N], t)
        }(C.BaseUIFullScreenPanel);
        n.default = U, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroCardComponent": "HeroCardComponent",
        "../Components/HeroListComponent": "HeroListComponent",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "./SummonRatePanel": "SummonRatePanel"
    }],
    HeroRebornPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0b407NJ8XJE4LpgflJa3p3p", "HeroRebornPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../../Consts/Consts"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Hint = null, t.Tip = null, t.LeftHeroContainer = null, t.LeftHeroLevel = null, t.RightHeroContainer = null, t.RightHeroLevel = null, t.MaterialContainer = null, t.CancelBtn = null, t.CancelBtnLabel = null, t.ConfirmBtn = null, t.ConfirmBtnLabel = null, t.DiamondCount = null, t.CheckToggle = null, t.CheckLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._freeLevelLimit = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroRebornLevelLimit"), this._diamondCost = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroRebornDiamondCost"), this.Title.string = "hero_reborn_title".ToUILocale(), this.Tip.string = "hero_reborn_tip".ToUILocale().Fmt(this._freeLevelLimit), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.ConfirmBtnLabel.string = "ok".ToUILocale(), this.CheckLabel.string = "equip_off_check".ToUILocale(), this.CancelBtn.node.on("click", this.OnClose, this), this.ConfirmBtn.node.on("click", this.OnReborn, this), this.CheckToggle.node.on("toggle", this.OnCheckToggle, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectHero = t[0]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.CheckToggle.isChecked = !0
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.ConfigHeroItem(), this.ConfigMaterials(), this.ConfigDiamondCost())
                }, t.prototype.ConfigHeroItem = function() {
                    var e;
                    this._leftHeroComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.LeftHeroContainer), e.scale = .706, this._leftHeroComponent = e.getComponent(f.ItemComponent)), this._rightHeroComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.RightHeroContainer), e.scale = .706, this._rightHeroComponent = e.getComponent(f.ItemComponent)), this._leftHeroComponent.Init({
                        ItemId: this._selectHero.HeroId,
                        StarLevel: this._selectHero.StarLevel
                    }, f.ItemComponentType.HeroInfo), this._rightHeroComponent.Init({
                        ItemId: this._selectHero.HeroId,
                        StarLevel: this._selectHero.StarLevel
                    }, f.ItemComponentType.HeroInfo), this.LeftHeroLevel.string = "Lv." + this._selectHero.Level, this.RightHeroLevel.string = "Lv.1", this.Hint.string = "hero_reborn_hint".ToUILocale().Fmt(this._selectHero.HeroId.ToHeroName())
                }, t.prototype.ConfigMaterials = function() {
                    for (var e = p.ConfigDataComponent.Instance.GetConfigById(d.HeroLevel_Config, this._selectHero.Level), t = 0; t < e.Materials.length; t++) {
                        var n = e.Materials[t].Items;
                        (m = cc.instantiate(this._itemPrefab)).setParent(this.MaterialContainer), m.getComponent(f.ItemComponent).Init({
                            ItemId: n[0],
                            Count: n[1]
                        })
                    }
                    for (this._equipNodes = [], this._holyEquipsSids = p.DataCenter.Instance.GetHeroHolyEquips(this._selectHero.Sid), t = 0; t < this._holyEquipsSids.length; t++) {
                        var o = this._holyEquipsSids[t];
                        if (0 != o) {
                            (m = cc.instantiate(this._itemPrefab)).setParent(this.MaterialContainer), this._equipNodes.push(m);
                            var r = p.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, o);
                            m.getComponent(f.ItemComponent).Init({
                                ItemId: r.ItemId,
                                StarLevel: r.Star
                            }, f.ItemComponentType.ItemWithStar)
                        }
                    }
                    for (this._equipsSids = p.DataCenter.Instance.GetHeroEquips(this._selectHero.Sid), t = 0; t < this._equipsSids.length; t++) {
                        var i = this._equipsSids[t];
                        0 != i && ((m = cc.instantiate(this._itemPrefab)).setParent(this.MaterialContainer), this._equipNodes.push(m), r = p.DataCenter.Instance.GetDataById(c.Equipment_Model, i), m.getComponent(f.ItemComponent).Init({
                            ItemId: r.ItemId
                        }, f.ItemComponentType.ItemWithStar))
                    }
                    for (this._luckyCharmSids = p.DataCenter.Instance.GetHeroLuckCharmEquips(this._selectHero.Sid), t = 0; t < this._luckyCharmSids.length; t++) {
                        var a = this._luckyCharmSids[t];
                        if (0 != a) {
                            (m = cc.instantiate(this._itemPrefab)).setParent(this.MaterialContainer);
                            var s = p.DataCenter.Instance.GetDataById(c.LuckyCharmEquip_Model, a);
                            2 == s.SlotId && this._equipNodes.push(m), s.ItemId >= g.CommonItemId.PrimordialLuckyCharm ? m.getComponent(f.ItemComponent).Init(s, f.ItemComponentType.LuckyCharm) : m.getComponent(f.ItemComponent).Init({
                                ItemId: s.ItemId
                            }, f.ItemComponentType.ItemCommon)
                        }
                    }
                    var l = p.DataCenter.Instance.GetHeroGems(this._selectHero.Sid);
                    for (t = 0; t < l.length; t++) 0 != (y = l[t]) && ((m = cc.instantiate(this._itemPrefab)).setParent(this.MaterialContainer), n = p.DataCenter.Instance.GetDataById(c.GemEquip_Model, y), this._equipNodes.push(m), m.getComponent(f.ItemComponent).Init({
                        ItemId: n.ItemId
                    }, f.ItemComponentType.Gem));
                    var u = p.DataCenter.Instance.GetHeroPet(this._selectHero.Sid);
                    for (t = 0; t < u.length; t++) 0 != (y = u[t]) && ((m = cc.instantiate(this._itemPrefab)).setParent(this.MaterialContainer), n = p.DataCenter.Instance.GetDataById(c.UserPet_Model, y), this._equipNodes.push(m), m.getComponent(f.ItemComponent).Init(n, f.ItemComponentType.Pet));
                    var h = p.DataCenter.Instance.GetHeroCores(this._selectHero.Sid);
                    for (t = 0; t < h.length; t++) {
                        var y, m;
                        if (0 != (y = h[t]))(m = cc.instantiate(this._itemPrefab)).setParent(this.MaterialContainer), n = p.DataCenter.Instance.GetDataById(c.PowerCore_Model, y), this._equipNodes.push(m), m.getComponent(f.ItemComponent).Init({
                            ItemId: n.ItemId
                        }, f.ItemComponentType.ItemCommon)
                    }
                }, t.prototype.ConfigDiamondCost = function() {
                    this._selectHero.Level <= this._freeLevelLimit ? this.DiamondCount.string = "0" : this.DiamondCount.string = this._diamondCost.toString()
                }, t.prototype.OnClose = function() {
                    h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnReborn = function() {
                    if (this._selectHero.Level <= this._freeLevelLimit) this.DoRebornJob();
                    else {
                        if (p.DataCenter.Instance.GetItemCount(g.CommonItemId.Diamond) < this._diamondCost) return h.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [m.MallPageType.DiamondShop, m.GiftPackType.BuyDiamond]);
                        this.DoRebornJob()
                    }
                }, t.prototype.DoRebornJob = function() {
                    var e = new c.Req_Hero_Reborn;
                    e.Sid = this._selectHero.Sid, e.IncludeEquipment = this.CheckToggle.isChecked, p.RpcComponent.Instance.Call(e, this.OnRebornSucces.bind(this))
                }, t.prototype.OnRebornSucces = function() {
                    u.UIUtlity.ShowFloatingHint("hero_reborn_succes".ToUILocale()), h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnCheckToggle = function() {
                    if (this.CheckToggle.isChecked)
                        for (var e = 0; e < this._equipNodes.length; e++) this._equipNodes[e].active = !0;
                    else
                        for (e = 0; e < this._equipNodes.length; e++) this._equipNodes[e].active = !1
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.RichText)], t.prototype, "Hint", void 0), i([C(cc.Label)], t.prototype, "Tip", void 0), i([C(cc.Node)], t.prototype, "LeftHeroContainer", void 0), i([C(cc.Label)], t.prototype, "LeftHeroLevel", void 0), i([C(cc.Node)], t.prototype, "RightHeroContainer", void 0), i([C(cc.Label)], t.prototype, "RightHeroLevel", void 0), i([C(cc.Node)], t.prototype, "MaterialContainer", void 0), i([C(cc.Button)], t.prototype, "CancelBtn", void 0), i([C(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([C(cc.Button)], t.prototype, "ConfirmBtn", void 0), i([C(cc.Label)], t.prototype, "ConfirmBtnLabel", void 0), i([C(cc.Label)], t.prototype, "DiamondCount", void 0), i([C(cc.Toggle)], t.prototype, "CheckToggle", void 0), i([C(cc.Label)], t.prototype, "CheckLabel", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroReplace: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1b2ba3HaL1AR46a0B6Verbk", "HeroReplace");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../Components/CustomLayout"),
            u = e("../Components/HeroElementGroup"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ItemComponent"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/HeroCardComponent"),
            _ = e("../../Components/DataCenter"),
            C = e("../../../../Proto/Static/ConfigProto"),
            v = e("../../Components/ConfigData/ConfigDataComponent"),
            b = e("../Components/ItemClickComponent"),
            S = e("../../Components/RpcComponent"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("./SelectMaterialHeroPanel"),
            A = e("../../../ShareConsts/EnumType"),
            T = e("../../Components/Components"),
            R = e("../../Channel/ChannelManager"),
            L = e("../Components/CustomProgressBar"),
            k = cc._decorator,
            O = k.ccclass,
            M = k.property;
        (function(e) {
            e[e.Currrent = 0] = "Currrent", e[e.Need = 1] = "Need"
        })(l || (l = {}));
        var D = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Scroll = null, t.Grid = null, t.HeroElementGroup = null, t.OriginCardRoot = null, t.OriginCardTitle = null, t.OriginCardName = null, t.TargetCardRoot = null, t.TargetCardTitle = null, t.TargetCardName = null, t.MaterialProgress = null, t.MaterialProgressValue = null, t.HeroMaterialIconRoot = null, t.BtnAddMaterial = null, t.CountNode = null, t.MaterialItemIcon = null, t.MaterialItemCount = null, t.BtnReplace = null, t.ReplaceBtnLabel = null, t.HeroDisplaceListLabel = null, t.EmptyStateLabel = null, t.ItemGetBtn = null, t.Anis = [], t.REPLACE_NEED_HERO_STAR = 5, t._isInit = !1, t._isLayoutInit = !1, t._currentElement = -1, t._itemPrefab = null, t._heroCardPrefab = null, t._originCardItem = null, t._targetCardItem = null, t._materialCardItem = null, t._itemMap = new Map, t._selectHero = null, t._materialIconSpriteFrame = null, t._itemSprite = null, t
            }
            return r(t, e), t.prototype.onDisable = function() {
                this.DisableCommonEvent(), this.DisableSelectHeroSidsEvent()
            }, t.prototype.onLoad = function() {
                this.ItemGetBtn.node.on("click", this.OnAdd, this)
            }, t.prototype.OnAdd = function() {
                d.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, A.CommonItemId.HeroDisplaceItemId, !1)
            }, t.prototype.EnableCommonEvent = function() {
                p.Game.EventDispatcher.On(h.EventKeys.EVENT_REFRESH_SELECT_MATERIALHERO, this.OnRefresh, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
            }, t.prototype.DisableCommonEvent = function() {
                p.Game.EventDispatcher.Off(h.EventKeys.EVENT_REFRESH_SELECT_MATERIALHERO, this.OnRefresh), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero)
            }, t.prototype.EnableSelectHeroSidsEvent = function() {
                p.Game.EventDispatcher.On(h.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectHeroSids, this)
            }, t.prototype.DisableSelectHeroSidsEvent = function() {
                p.Game.EventDispatcher.Off(h.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectHeroSids)
            }, t.prototype.OnRefresh = function(e) {
                d.EZLog.Log("\u5237\u65b0\u754c\u9762"), this.RefreshVisibleItem(), this.OnClickHero(e)
            }, t.prototype.Reset = function() {
                this._currentElement = 0, this.ResetMaterialSelect(), this.HideMaterialProgress(), this.HideMaterialItemIcon(), this.ResetSelect()
            }, t.prototype.ResetSelect = function() {
                this._selectHero = null, this.HideOriginCardRoot(), this.HideTargetCardRoot(), this.ResetMaterialSelect(), this.SetMaterialHeroProgress()
            }, t.prototype.ResetMaterialSelect = function() {
                this.HideMaterialHeroIcon(), this._materialHero = []
            }, t.prototype.HideMaterialProgress = function() {
                this.MaterialProgress.node.active = !1
            }, t.prototype.ShowMaterialProgress = function() {
                this.MaterialProgress.node.active = !0
            }, t.prototype.HideOriginCardRoot = function() {
                this.OriginCardRoot.active = !1
            }, t.prototype.HideTargetCardRoot = function() {
                this.TargetCardRoot.active = !1
            }, t.prototype.HideMaterialHeroIcon = function() {
                this.HeroMaterialIconRoot.active = !1
            }, t.prototype.ShowMaterialHeroIcon = function() {
                this.HeroMaterialIconRoot.active = !0
            }, t.prototype.ShowMaterialItemIcon = function() {
                this.CountNode.active = !0, this.MaterialItemIcon.node.active = !0
            }, t.prototype.HideMaterialItemIcon = function() {
                this.CountNode.active = !1, this.MaterialItemIcon.node.active = !1
            }, t.prototype.Init = function(e, t) {
                return a(this, void 0, void 0, function() {
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._heroDataMap = e, this._heroStarBaseData = t, this.Reset(), this._isInit ? [3, 2] : (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent(), [4, this.LoadAsset()]);
                            case 1:
                                n.sent(), n.label = 2;
                            case 2:
                                return this.InitCustomLayout(), [2]
                        }
                    })
                })
            }, t.prototype.SetStaticLocalText = function() {
                this.HeroDisplaceListLabel.string = "heroPalace_replace_list".ToUILocale(), this.ReplaceBtnLabel.string = "heroPalace_tittle_2".ToUILocale(), this.EmptyStateLabel.string = "heroPalace_replace_emptyState".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnAddMaterial.node.on("click", this.OnBtnAddMaterialClick, this), this.BtnReplace.node.on("click", this.OnBtnReplaceClick, this)
            }, t.prototype.LoadAsset = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e = w.default.Instance.GetItemPathById(A.CommonItemId.HeroDisplaceItemId), t = d.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab), n = d.AssetsManager.Instance.LoadAsset(f.BundlePath.HeroCardComponent, cc.Prefab), o = d.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._itemPrefab = e[0], r._heroCardPrefab = e[1], r._itemSprite = e[2]
                                })];
                            case 1:
                                return i.sent(), this.MaterialItemIcon.spriteFrame = this._itemSprite, [2]
                        }
                    })
                })
            }, t.prototype.InitCustomLayout = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._itemPrefab, !1)), this.RenderLayout(), [2]
                    })
                })
            }, t.prototype.RenderLayout = function() {
                var e = 0,
                    t = this.GetHeroDataByElement(this._currentElement);
                null != t && (e = t.length), this.EmptyStateLabel.node.active = 0 == e, this.Grid.RenderLayOut(e), m.UIUtlity.AnimationItemsByType1(this.Grid.node.children)
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (this.Grid == t) {
                    var o = this.GetHeroDataByElement(this._currentElement);
                    e.forEach(function(e, t) {
                        var r = e.getComponent(y.ItemComponent);
                        r.Init(o[t], y.ItemComponentType.HeroInfo), n._itemMap.set(o[t].Sid, r), w.default.Instance.IsHeroCanBeConsume(o[t].Sid) ? null != n._selectHero && n._selectHero.Sid == o[t].Sid ? r.SetCenterTagSprite(!0, m.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border4"), 252, 252) : r.SetCenterTagSprite(!1) : (r.SetLockFlag(!0), r.SetCenterTagSprite(!1)), r.node.name = o[t].Sid.toString()
                    })
                }
            }, t.prototype.RefreshVisibleItem = function() {
                for (var e = this.GetHeroDataByElement(this._currentElement), t = Math.min(e.length, this.Grid.node.children.length), n = 0; n < t; n++) {
                    var o = this.Grid.node.children[n],
                        r = o.getComponent(y.ItemComponent),
                        i = Number.parseInt(o.name),
                        a = this.SearchHeroData(i, e);
                    if (r.Init(a, y.ItemComponentType.HeroInfo), this._itemMap.set(i, r), w.default.Instance.IsHeroCanBeConsume(i)) {
                        var s = null != this._selectHero && this._selectHero.Sid == i;
                        r.SetCenterTagSprite(s, m.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border4"), 252, 252)
                    } else r.SetLockFlag(!0), r.SetCenterTagSprite(!1);
                    r.node.name = i.toString()
                }
            }, t.prototype.SearchHeroData = function(e, t) {
                for (var n = 0; n < t.length; n++)
                    if (t[n].Sid == e) return t[n]
            }, t.prototype.OnClickHero = function(e, t) {
                null != t && -1 == this.Grid.node.children.indexOf(t) || this.ChangeItemSelectState(e)
            }, t.prototype.ChangeItemSelectState = function(e) {
                var t = this;
                if (w.default.Instance.IsHeroCanBeConsume(e)) {
                    if (null == this._selectHero || this._selectHero.Sid != e) {
                        var n = _.DataCenter.Instance.GetDataById(g.UserHero_Model, e);
                        if (_.DataCenter.Instance.GetDataById(g.HeroInfo_Model, n.HeroId).HandbookStar == n.StarLevel) {
                            var o = {
                                Type: w.UpStarHeroMaterialType.Hero,
                                Id: n.Sid
                            };
                            if (0 == w.default.GetHeroByItemIdAndStar(n.HeroId, n.StarLevel, [o], void 0, !0).length) return m.UIUtlity.ShowHintPanel(null, "HeroHandbook_Consume_Tip".ToUILocale(), "", null, "", function() {
                                t.OnSelectItemCanChange(e)
                            })
                        }
                        this.OnSelectItemCanChange(e)
                    }
                } else {
                    if (_.DataCenter.Instance.GetDataById(g.UserHero_Model, e).Locked) return m.UIUtlity.ShowHintPanel(null, "hero_unlock_hint".ToUILocale(), "", null, "hero_unlock".ToUILocale(), function() {
                        t.UnlockHero(e)
                    });
                    var r = _.DataCenter.Instance.GetFlyHeroSeasonWeaponId(e);
                    if (r) return m.UIUtlity.ShowHintPanel(null, "hero_unFly_hint".ToUILocale(), "", null, "equip_takeoff".ToUILocale(), function() {
                        t.UnFlyHero(e, r)
                    });
                    var i = w.default.Instance.HeroCanNotOffFormations(e);
                    0 == i.length ? d.UIManager.Instance.ShowUIPanel(f.PanelConfig.OffFormationPanel.Path, e) : m.UIUtlity.ShowFloatingHint("hero_off_formation_limit_hint".ToUILocale().Fmt(i[0].ToFormationInstanceName()))
                }
            }, t.prototype.OnSelectItemCanChange = function(e) {
                var t = this._itemMap.get(e),
                    n = _.DataCenter.Instance.GetDataById(g.UserHero_Model, e);
                if (null == this._selectHero) this._selectHero = n, t.SetCenterTagSprite(!0, m.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border4"), 252, 252), this.ShowMaterialProgress(), this.ShowMaterialItemIcon();
                else {
                    this.ResetMaterialSelect();
                    var o = this._itemMap.get(this._selectHero.Sid);
                    this._selectHero = n, o.SetCenterTagSprite(!1), t.SetCenterTagSprite(!0, m.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border4"), 252, 252)
                }
                this.HideTargetCardRoot(), this.SetMaterialItemCount(), this.SetMaterialHeroProgress(), this.LoadHeroCard(0, this._selectHero.HeroId, this._selectHero.StarLevel)
            }, t.prototype.UnlockHero = function(e) {
                var t = this,
                    n = new g.Req_Hero_LockHero;
                n.Sid = e, n.Locked = !1, S.RpcComponent.Instance.Call(n, function() {
                    m.UIUtlity.ShowFloatingHint("hero_has_unlocked".ToUILocale()), t.OnRefresh(e)
                })
            }, t.prototype.UnFlyHero = function(e, t) {
                var n = this,
                    o = new g.Req_Activity_SeasonWeaponFly;
                o.Sid = t, o.Owner = 0, S.RpcComponent.Instance.Call(o, function() {
                    m.UIUtlity.ShowFloatingHint("remove_success".ToUILocale()), n.OnRefresh(e)
                })
            }, t.prototype.LoadHeroCard = function(e, t, n) {
                var o, r, i, a;
                if (0 == e ? (o = this.OriginCardRoot, a = this.OriginCardTitle, i = this.OriginCardName, r = this._originCardItem) : (o = this.TargetCardRoot, a = this.TargetCardTitle, i = this.TargetCardName, r = this._targetCardItem), null == r) {
                    var s = cc.instantiate(this._heroCardPrefab);
                    s.removeComponent(b.default), 0 == e ? this._originCardItem = s.getComponent(I.default) : this._targetCardItem = s.getComponent(I.default), (r = s.getComponent(I.default)).node.parent = o
                }
                r.Init({
                    ItemId: t,
                    StarLevel: n
                }, -1);
                var l = R.default.Instance.IsVNChannel();
                i.node.active = !l, l || (i.string = t.ToHeroName()), a.string = l ? t.ToHeroName() : t.ToHeroTitle(), o.active = !0
            }, t.prototype.GetHeroDataByElement = function(e) {
                return this._heroDataMap.get(e)
            }, t.prototype.OnSwitchHeroElement = function(e) {
                this._currentElement != e && (this._currentElement = e, this.ResetSelect(), this.RenderLayout())
            }, t.prototype.OnBtnAddMaterialClick = function() {
                if (null != this._selectHero) {
                    this.DisableCommonEvent(), this.EnableSelectHeroSidsEvent();
                    for (var e = v.ConfigDataComponent.Instance.GetConfigById(C.HeroBase_Config, this._selectHero.HeroId), t = this._heroStarBaseData[this._selectHero.StarLevel].DisplaceHeroCount, n = w.default.GetHeroByStarAndElement(this.REPLACE_NEED_HERO_STAR, e.ElementType, e.ElementType, void 0, !0), o = w.default.Instance.IsGameModuleUnlock(A.GameModuleType.HeroPalaceSPHero)[0], r = [], i = 0; i < n.length; i++)
                        if (n[i].Type == w.UpStarHeroMaterialType.Hero) {
                            var a = _.DataCenter.Instance.GetDataById(g.UserHero_Model, n[i].Id),
                                s = v.ConfigDataComponent.Instance.GetConfigById(C.HeroBase_Config, a.HeroId);
                            s.StarLevel < 5 || s.MaxStarLevel < this._selectHero.StarLevel || (o || 2 != s.CoreHero) && 3 != s.CoreHero && s.Id != e.Id && r.push(n[i])
                        } if (0 == r.length) {
                        var l = e.ElementType.ToHeroElementName(),
                            c = "heroPalace_replace_no_targethero".ToUILocale().Fmt(l);
                        m.UIUtlity.ShowFloatingHint(c)
                    }
                    d.UIManager.Instance.ShowUIPanel(f.PanelConfig.SelectMaterialHeroPanel.Path, r, this._materialHero, t, P.ItemSelectType.SameId, void 0, 7)
                } else m.UIUtlity.ShowFloatingHint("heroPalace_replace_no_origin_hero".ToUILocale())
            }, t.prototype.OnSelectHeroSids = function(e) {
                if (this.EnableCommonEvent(), this.DisableSelectHeroSidsEvent(), this._materialHero = e, 0 == e.length) this.HideTargetCardRoot(), this.HideMaterialHeroIcon(), this.SetMaterialHeroProgress();
                else {
                    var t = _.DataCenter.Instance.GetDataById(g.UserHero_Model, this._materialHero[0].Id);
                    this.LoadHeroCard(1, t.HeroId, this._selectHero.StarLevel), this.SetHeroMaterialIcon(t), this.SetMaterialHeroProgress()
                }
            }, t.prototype.OnBtnReplaceClick = function() {
                var e = this;
                if (null != this._selectHero) {
                    var t = this.GetMaterialHeroCount();
                    if (t[l.Currrent] < t[l.Need]) m.UIUtlity.ShowFloatingHint("heroPalace_replace_target_hero_not_enough".ToUILocale());
                    else {
                        var n = this._heroStarBaseData[this._selectHero.StarLevel].DisplaceItemCount,
                            o = A.CommonItemId.HeroDisplaceItemId.ToItemName();
                        if (!this.IsMaterialItemCountEnough(n)) return m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o)), void d.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, A.CommonItemId.HeroDisplaceItemId);
                        var r = _.DataCenter.Instance.GetIntData(A.UserDataKey.CurrentBeDisplaceHero),
                            i = _.DataCenter.Instance.GetIntData(A.UserDataKey.CurrentNewDisplaceHero),
                            a = "heroPalace_replace_operation_tips".ToUILocale().Fmt(o, n);
                        m.UIUtlity.ShowHintPanel("", a, "", null, "", function() {
                            for (var t = !1, n = 0; n < e._materialHero.length; n++)
                                if (e._materialHero[n].Id == r) {
                                    t = !0;
                                    var o = new g.Req_Card_ElementDisplaceCancel;
                                    return o.Sid = r, o.NewHeroId = i, void T.RpcComponent.Instance.Call(o, function() {
                                        e.RequestHeroDisplace()
                                    })
                                } t ? t = !1 : e.RequestHeroDisplace()
                        })
                    }
                } else m.UIUtlity.ShowFloatingHint("heroPalace_replace_no_target_hero".ToUILocale())
            }, t.prototype.RequestHeroDisplace = function() {
                var e = new g.Req_Hero_Displace;
                e.Sid = this._selectHero.Sid;
                for (var t = [], n = 0; n < this._materialHero.length; n++) t.push(this._materialHero[n].Id);
                e.MaterialHeroSids = t, d.EZLog.Log("\u6d88\u8017\u6750\u6599\u6570\u91cf---\x3e" + e.MaterialHeroSids.length);
                var o = _.DataCenter.Instance.GetDataById(g.UserHero_Model, this._materialHero[0].Id);
                e.NewHeroId = o.HeroId, S.RpcComponent.Instance.Call(e, this.RequestHeroDisplaceSuccess.bind(this))
            }, t.prototype.RequestHeroDisplaceSuccess = function() {
                var e = this;
                m.UIUtlity.ShowFloatingHint("heroPalace_replace_success".ToUILocale());
                for (var t = 0; t < this.Anis.length; t++) this.Anis[t].node.active = !0, this.Anis[t].setAnimation(0, "Ani_UI_xianzhizhaohuan_zhuanhuan", !1);
                this.scheduleOnce(function() {
                    for (var t = 0; t < e.Anis.length; t++) e.Anis[t].node.active = !1
                }, 1), p.Game.EventDispatcher.Emit(h.EventKeys.HERO_DISPLACE_SUCCESS)
            }, t.prototype.SetHeroMaterialIcon = function(e) {
                if (null == this._materialCardItem) {
                    var t = cc.instantiate(this._itemPrefab);
                    t.removeComponent(b.default), this._materialCardItem = t.getComponent(y.ItemComponent), this._materialCardItem.node.removeComponent(b.default), this._materialCardItem.node.removeComponent(cc.BlockInputEvents), this._materialCardItem.node.parent = this.HeroMaterialIconRoot
                }
                this._materialCardItem.Init(e, y.ItemComponentType.HeroInfo), this.ShowMaterialHeroIcon()
            }, t.prototype.SetMaterialHeroProgress = function() {
                var e = this.GetMaterialHeroCount();
                0 != e[l.Need] ? (this.MaterialProgress.progress = e[l.Currrent] / e[l.Need], this.MaterialProgressValue.string = e[l.Currrent] + "/" + e[l.Need]) : this.HideMaterialProgress()
            }, t.prototype.GetMaterialHeroCount = function() {
                var e = 0;
                return null != this._selectHero && (e = this._heroStarBaseData[this._selectHero.StarLevel].DisplaceHeroCount), [this._materialHero.length, e]
            }, t.prototype.SetMaterialItemCount = function() {
                var e, t = this._heroStarBaseData[this._selectHero.StarLevel].DisplaceItemCount,
                    n = _.DataCenter.Instance.GetItemCount(A.CommonItemId.HeroDisplaceItemId);
                e = this.IsMaterialItemCountEnough(t) ? "<color = #FFFFFF>" + n + "</color>" : "<color = #FF403E>" + n + "</color>", this.MaterialItemCount.string = "<outline color = #202434 width = 3>" + e + "<color = #FFFFFF>/" + t + "</color></outline>"
            }, t.prototype.IsMaterialItemCountEnough = function(e) {
                return _.DataCenter.Instance.IsItemEnough(A.CommonItemId.HeroDisplaceItemId, e)
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                d.AssetsManager.Instance.UnloadAsset(this._itemSprite), d.AssetsManager.Instance.UnloadAsset(this._itemPrefab), d.AssetsManager.Instance.UnloadAsset(this._heroCardPrefab)
            }, i([M(cc.ScrollView)], t.prototype, "Scroll", void 0), i([M(c.default)], t.prototype, "Grid", void 0), i([M(u.default)], t.prototype, "HeroElementGroup", void 0), i([M(cc.Node)], t.prototype, "OriginCardRoot", void 0), i([M(cc.Label)], t.prototype, "OriginCardTitle", void 0), i([M(cc.Label)], t.prototype, "OriginCardName", void 0), i([M(cc.Node)], t.prototype, "TargetCardRoot", void 0), i([M(cc.Label)], t.prototype, "TargetCardTitle", void 0), i([M(cc.Label)], t.prototype, "TargetCardName", void 0), i([M(L.default)], t.prototype, "MaterialProgress", void 0), i([M(cc.Label)], t.prototype, "MaterialProgressValue", void 0), i([M(cc.Node)], t.prototype, "HeroMaterialIconRoot", void 0), i([M(cc.Button)], t.prototype, "BtnAddMaterial", void 0), i([M(cc.Node)], t.prototype, "CountNode", void 0), i([M(cc.Sprite)], t.prototype, "MaterialItemIcon", void 0), i([M(cc.RichText)], t.prototype, "MaterialItemCount", void 0), i([M(cc.Button)], t.prototype, "BtnReplace", void 0), i([M(cc.Label)], t.prototype, "ReplaceBtnLabel", void 0), i([M(cc.Label)], t.prototype, "HeroDisplaceListLabel", void 0), i([M(cc.Label)], t.prototype, "EmptyStateLabel", void 0), i([M(cc.Button)], t.prototype, "ItemGetBtn", void 0), i([M(sp.Skeleton)], t.prototype, "Anis", void 0), i([O], t)
        }(cc.Component);
        n.default = D, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/HeroCardComponent": "HeroCardComponent",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./SelectMaterialHeroPanel": "SelectMaterialHeroPanel"
    }],
    HeroResolvePreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "55a38Bs+llPaq4MftxB8wxP", "HeroResolvePreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../EZFramework/UIFrame/UIPanelType"),
            p = e("../../../EZFramework/EZDefine/SysDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/RpcComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Components/DataCenter"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../Components/Components"),
            v = e("../../../../Proto/Static/ConfigProto"),
            b = e("../../Components/Components"),
            S = e("../../../EZFramework/EZFramework"),
            w = e("../../../Consts/Consts"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(p.UINodeType.Tip, !1), t.Scroll = null, t.Grid = null, t.CloseBtn = null, t.ResolveBtn = null, t.Tittle = null, t.Tips = null, t.CloseBtnLabel = null, t.ResolveBtnLabel = null, t.LOW_STAR = 5, t._isInit = !1, t._itemTable = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    m.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    m.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.Grid.children.indexOf(t)) switch (b.ConfigDataComponent.Instance.GetConfigById(v.ItemBase_Config, e).Type) {
                        case _.ItemType.HolyEquip:
                            S.UIManager.Instance.ShowUIPanel(c.PanelConfig.HolyEquipTipPanel.Path, {
                                ItemId: e
                            }, this.node);
                            break;
                        default:
                            y.UIUtlity.ShowItemTip(e, t)
                    }
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent())
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "heroResolvePreview_tittle".ToUILocale(), this.Tips.string = "heroResolvePreview_tip".ToUILocale(), this.CloseBtnLabel.string = "close".ToUILocale(), this.ResolveBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.CloseBtn.node.on("click", this.Close, this), this.ResolveBtn.node.on("click", this.OnResolveBtnClick, this)
                }, t.prototype.InitData = function(e) {
                    this._heroData = e[0], this._rewardData = e[1]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.RefreshContent()
                }, t.prototype.RefreshContent = function() {
                    for (var e = this, t = 0, n = 0; n < this._itemTable.length; n++) this._itemTable[n].node.active = !1;
                    this._rewardData.forEach(function(n, o) {
                        if (null == e._itemTable[t]) {
                            var r = cc.instantiate(e._itemPrefab).getComponent(d.ItemComponent);
                            r.node.parent = e.Grid, e._itemTable[t] = r
                        }
                        e._itemTable[t].node.name = o.toString(), e._itemTable[t].Init({
                            ItemId: o,
                            Count: n
                        }), e._itemTable[t].node.active = !0, t++
                    });
                    var o = [],
                        r = [],
                        i = [],
                        a = [],
                        s = [],
                        l = [];
                    this._heroData.forEach(function(e) {
                        for (var t = g.DataCenter.Instance.GetHeroEquips(e), n = g.DataCenter.Instance.GetHeroHolyEquips(e), c = g.DataCenter.Instance.GetHeroLuckCharmEquips(e), u = g.DataCenter.Instance.GetHeroGems(e), p = g.DataCenter.Instance.GetHeroCores(e), d = g.DataCenter.Instance.GetHeroPet(e), h = 0; h < t.length; h++) t[h] > 0 && o.push(t[h]);
                        for (h = 0; h < n.length; h++) n[h] > 0 && r.push(n[h]);
                        for (h = 0; h < c.length; h++) c[h] > 0 && i.push(c[h]);
                        for (h = 0; h < u.length; h++) u[h] > 0 && a.push(u[h]);
                        for (h = 0; h < p.length; h++) p[h] > 0 && s.push(p[h]);
                        for (h = 0; h < d.length; h++) d[h] > 0 && l.push(d[h])
                    });
                    var c = this._rewardData.size;
                    for (n = 0; n < o.length; n++) {
                        null == this._itemTable[n + c] && ((f = cc.instantiate(this._itemPrefab).getComponent(d.ItemComponent)).node.parent = this.Grid, this._itemTable[n + c] = f);
                        var u = g.DataCenter.Instance.GetDataById(h.Equipment_Model, o[n]);
                        this._itemTable[n + c].Init({
                            ItemId: u.ItemId
                        }, d.ItemComponentType.ItemWithStar), this._itemTable[n + c].node.name = u.ItemId.toString(), this._itemTable[n + c].node.active = !0
                    }
                    for (c += o.length, n = 0; n < r.length; n++) null == this._itemTable[n + c] && ((f = cc.instantiate(this._itemPrefab).getComponent(d.ItemComponent)).node.parent = this.Grid, this._itemTable[n + c] = f), u = g.DataCenter.Instance.GetDataById(h.HolyEquipment_Model, r[n]), this._itemTable[n + c].Init({
                        ItemId: u.ItemId,
                        StarLevel: u.Star
                    }, d.ItemComponentType.ItemWithStar), this._itemTable[n + c].node.name = u.ItemId.toString(), this._itemTable[n + c].node.active = !0;
                    for (c += r.length, n = 0; n < i.length; n++) null == this._itemTable[n + c] && ((f = cc.instantiate(this._itemPrefab).getComponent(d.ItemComponent)).node.parent = this.Grid, this._itemTable[n + c] = f), (p = g.DataCenter.Instance.GetDataById(h.LuckyCharmEquip_Model, i[n])).ItemId >= w.CommonItemId.PrimordialLuckyCharm ? this._itemTable[n + c].Init(p, d.ItemComponentType.LuckyCharm) : this._itemTable[n + c].Init({
                        ItemId: p.ItemId
                    }, d.ItemComponentType.ItemCommon), this._itemTable[n + c].node.name = p.ItemId.toString(), this._itemTable[n + c].node.active = !0;
                    for (c += i.length, n = 0; n < a.length; n++) {
                        null == this._itemTable[n + c] && ((f = cc.instantiate(this._itemPrefab).getComponent(d.ItemComponent)).node.parent = this.Grid, this._itemTable[n + c] = f);
                        var p = g.DataCenter.Instance.GetDataById(h.GemEquip_Model, a[n]);
                        this._itemTable[n + c].Init(p, d.ItemComponentType.Gem), this._itemTable[n + c].node.name = p.ItemId.toString(), this._itemTable[n + c].node.active = !0
                    }
                    for (c += a.length, n = 0; n < s.length; n++) null == this._itemTable[n + c] && ((f = cc.instantiate(this._itemPrefab).getComponent(d.ItemComponent)).node.parent = this.Grid, this._itemTable[n + c] = f), p = g.DataCenter.Instance.GetDataById(h.PowerCore_Model, s[n]), this._itemTable[n + c].Init({
                        ItemId: p.ItemId
                    }, d.ItemComponentType.ItemWithStar), this._itemTable[n + c].node.name = p.ItemId.toString(), this._itemTable[n + c].node.active = !0;
                    for (c += s.length, n = 0; n < l.length; n++) {
                        var f;
                        null == this._itemTable[n + c] && ((f = cc.instantiate(this._itemPrefab).getComponent(d.ItemComponent)).node.parent = this.Grid, this._itemTable[n + c] = f), p = g.DataCenter.Instance.GetDataById(h.UserPet_Model, l[n]), this._itemTable[n + c].Init(p, d.ItemComponentType.Pet), this._itemTable[n + c].node.name = p.Sid.toString(), this._itemTable[n + c].node.active = !0
                    }
                }, t.prototype.OnResolveBtnClick = function() {
                    var e = this,
                        t = [],
                        n = !1;
                    this._heroData.forEach(function(o) {
                        g.DataCenter.Instance.GetDataById(h.UserHero_Model, o).StarLevel >= e.LOW_STAR && (n = !0), t.push(o)
                    });
                    var o = g.DataCenter.Instance.GetIntData(_.UserDataKey.CurrentBeDisplaceHero),
                        r = g.DataCenter.Instance.GetIntData(_.UserDataKey.CurrentNewDisplaceHero);
                    if (n) {
                        var i = "heroPalace_resolve_rare".ToUILocale().Fmt(this.LOW_STAR);
                        y.UIUtlity.ShowHintPanel("", i, "", null, "", function() {
                            for (var n = 0; n < t.length; n++)
                                if (t[n] == o) {
                                    var i = new h.Req_Card_ElementDisplaceCancel;
                                    return i.Sid = o, i.NewHeroId = r, void C.RpcComponent.Instance.Call(i, function() {
                                        e.RequestHeroDecompose(t)
                                    })
                                } e.RequestHeroDecompose(t)
                        })
                    } else {
                        for (var a = !1, s = 0; s < t.length; s++)
                            if (t[s] == o) {
                                a = !0;
                                var l = new h.Req_Card_ElementDisplaceCancel;
                                return l.Sid = o, l.NewHeroId = r, void C.RpcComponent.Instance.Call(l, function() {
                                    e.RequestHeroDecompose(t)
                                })
                            } a ? a = !1 : this.RequestHeroDecompose(t)
                    }
                }, t.prototype.RequestHeroDecompose = function(e) {
                    var t = new h.Req_Hero_Decompose;
                    t.Sids = e, f.RpcComponent.Instance.Call(t, this.RequestHeroDecompseSuccess.bind(this))
                }, t.prototype.RequestHeroDecompseSuccess = function(e) {
                    this.Close(), y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, i([T(cc.ScrollView)], t.prototype, "Scroll", void 0), i([T(cc.Node)], t.prototype, "Grid", void 0), i([T(cc.Button)], t.prototype, "CloseBtn", void 0), i([T(cc.Button)], t.prototype, "ResolveBtn", void 0), i([T(cc.Label)], t.prototype, "Tittle", void 0), i([T(cc.Label)], t.prototype, "Tips", void 0), i([T(cc.Label)], t.prototype, "CloseBtnLabel", void 0), i([T(cc.Label)], t.prototype, "ResolveBtnLabel", void 0), i([A], t)
            }(l.BaseUIPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroResolve: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2384dRVZi9Lh5v4mtAjDb4n", "HeroResolve");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../Components/DataCenter"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/HeroElementGroup"),
            f = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../Components/CustomLayout"),
            _ = e("../Components/ItemComponent"),
            C = e("../../Components/ConfigData/ConfigDataComponent"),
            v = e("../../../../Proto/Static/ConfigProto"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../../Components/RpcComponent"),
            w = e("../../../ShareConsts/EnumType"),
            P = e("../../Auxiliary/GameRecord"),
            A = e("../../../Consts/Consts"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property;
        (function(e) {
            e[e.Enable = 0] = "Enable", e[e.Disable = 1] = "Disable"
        })(l || (l = {}));
        var k = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Scroll = null, t.Grid = null, t.HeroElementGroup = null, t.SelectCountLabel = null, t.BtnFastSelect = null, t.FastSelectBtnLabel = null, t.BtnResolve = null, t.BtnResolveDisable = null, t.ResolveBtnLabel = null, t.ResolveBtnDisableLabel = null, t.BtnHeroShop = null, t.HeroShopBtnLabel = null, t.EmptyStateLabel = null, t.BubbleContent = null, t.ResolveSettingButton = null, t.ResolveSettingButtonLabel = null, t.Tips = null, t.Bg = null, t.LOW_STAR = 3, t._isLayoutInit = !1, t._currentElement = 0, t._itemPrefab = null, t._selectHeroSets = new Set, t._resovleItemMap = new Map, t._selectCount = 0, t._isInit = !1, t._isPlayedAnim = !1, t._resolveBtnState = l.Enable, t._maxSelectHeroCount = 0, t._asset = [], t
            }
            return r(t, e), t.prototype.onDisable = function() {
                this.DisableCommonEvent()
            }, t.prototype.onLoad = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this.Tips.string = "heroPalace_heroResolve_tips".ToUILocale(), this.LoadBg(), [2]
                    })
                })
            }, t.prototype.LoadBg = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, f.AssetsManager.Instance.LoadAsset("HeroPalacePanel/Png/Bg", cc.SpriteFrame)];
                            case 1:
                                return e = t.sent(), this.isValid ? (this._asset.push(e), this.Bg.spriteFrame = e, [2]) : (f.AssetsManager.Instance.UnloadAsset(e), [2])
                        }
                    })
                })
            }, t.prototype.EnableCommonEvent = function() {
                u.Game.EventDispatcher.On(y.EventKeys.EVENT_REFRESH_SELECT_MATERIALHERO, this.OnRefresh, this), u.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), u.Game.EventDispatcher.On(y.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), u.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
            }, t.prototype.DisableCommonEvent = function() {
                u.Game.EventDispatcher.Off(y.EventKeys.EVENT_REFRESH_SELECT_MATERIALHERO, this.OnRefresh), u.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), u.Game.EventDispatcher.Off(y.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement), u.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero)
            }, t.prototype.OnRefresh = function(e) {
                m.EZLog.Log("\u5237\u65b0\u754c\u9762"), this.RefreshVisibleItem(), this.OnClickHero(e)
            }, t.prototype.Init = function(e, t) {
                this._heroDataMap = e, this._heroStarBaseData = t, this._isInit || (this._isInit = !0, this.GetGlobalConfig(), this.SetStaticLocalText(), this.SetClickEvent()), this.InitCustomLayout(), this.SetSelectCount()
            }, t.prototype.ResetElementSelect = function() {
                this.HeroElementGroup.SetDefault()
            }, t.prototype.GetGlobalConfig = function() {
                this._maxSelectHeroCount = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroResolveMaxCount")
            }, t.prototype.SetClickEvent = function() {
                this.BtnFastSelect.node.on("click", this.OnFastSelectBtnClick, this), this.BtnResolve.node.on("click", this.OnResolveBtnClick, this), this.BtnHeroShop.node.on("click", this.OnBtnHeroShopClick, this), this.BtnResolveDisable.node.on("click", this.OnResolveDisableBtnClick, this), this.ResolveSettingButtonLabel.string = "heroResolve_setting".ToUILocale()
            }, t.prototype.SetStaticLocalText = function() {
                this.HeroShopBtnLabel.string = "heroPalace_hero_shop".ToUILocale(), this.FastSelectBtnLabel.string = "heroPalace_auto_select".ToUILocale(), this.ResolveBtnLabel.string = "heroPalace_tittle_1".ToUILocale(), this.ResolveBtnDisableLabel.string = "heroPalace_tittle_1".ToUILocale(), this.EmptyStateLabel.string = "heroPalace_resolve_empty".ToUILocale(), this.BubbleContent.string = "heroPalace_resolve_bubble_content".ToUILocale(), this.ResolveSettingButton.node.on("click", this.OnResolveSettingButtonClick, this)
            }, t.prototype.Reset = function() {
                this._currentElement = 0
            }, t.prototype.ResetAnim = function() {
                this._isPlayedAnim = !1
            }, t.prototype.SetSelectCount = function() {
                var e = this;
                this._selectCount = 0, this._selectHeroSets.forEach(function(t) {
                    t && e._selectCount++
                }), this.SetResolveBtnState(), this.UpdateSelectLabel()
            }, t.prototype.OnSwitchHeroElement = function(e) {
                this._currentElement != e && (this._currentElement = e, this.ResetSelectMap(), this.SetResolveBtnState(), this.UpdateSelectLabel(), this.RenderLayout())
            }, t.prototype.InitCustomLayout = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return null != this._itemPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent)]);
                            case 1:
                                e._itemPrefab = t.sent(), t.label = 2;
                            case 2:
                                return this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._itemPrefab, !1)), this.RenderLayout(), [2]
                        }
                    })
                })
            }, t.prototype.RenderLayout = function(e) {
                void 0 === e && (e = !0);
                var t = 0,
                    n = this.GetHeroDataByElement(this._currentElement);
                null != n && (t = n.length), this.EmptyStateLabel.node.active = 0 == t, this.Grid.RenderLayOut(t), g.UIUtlity.AnimationItemsByType1(this.Grid.node.children)
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (this.Grid == t) {
                    var o = this.GetHeroDataByElement(this._currentElement);
                    e.forEach(function(e, t) {
                        var r = e.getComponent(_.ItemComponent);
                        r.Init(o[t], _.ItemComponentType.HeroInfo), b.default.Instance.IsHeroCanBeConsume(o[t].Sid) ? (r.SetLockFlag(!1), r.SetReceivedTagState(n._selectHeroSets.has(o[t].Sid))) : (r.SetLockFlag(!0), r.SetReceivedTagState(!1)), r.SetLabelFontSize(r.HeroLevel, 26, 150), r.node.name = o[t].Sid.toString()
                    })
                }
            }, t.prototype.RefreshVisibleItem = function() {
                for (var e = this.GetHeroDataByElement(this._currentElement), t = Math.min(e.length, this.Grid.node.children.length), n = 0; n < t; n++) {
                    var o = this.Grid.node.children[n],
                        r = o.getComponent(_.ItemComponent),
                        i = Number.parseInt(o.name),
                        a = this.SearchHeroData(i, e);
                    r.Init(a, _.ItemComponentType.HeroInfo), b.default.Instance.IsHeroCanBeConsume(i) ? (r.SetLockFlag(!1), r.SetReceivedTagState(this._selectHeroSets.has(i))) : (r.SetLockFlag(!0), r.SetReceivedTagState(!1)), r.node.name = i.toString()
                }
            }, t.prototype.SearchHeroData = function(e, t) {
                for (var n = 0; n < t.length; n++)
                    if (t[n].Sid == e) return t[n]
            }, t.prototype.GetHeroDataByElement = function(e) {
                return this._heroDataMap.get(e)
            }, t.prototype.ResetSelectMap = function() {
                this._selectHeroSets.clear(), this._resovleItemMap.clear(), this._selectCount = 0
            }, t.prototype.OnClickHero = function(e, t) {
                null != t && -1 == this.Grid.node.children.indexOf(t) || this.ChangeItemSelectState(e)
            }, t.prototype.ChangeItemSelectState = function(e) {
                var t = this;
                if (this._selectHeroSets.has(e)) this._selectCount--, this._selectHeroSets.delete(e), null != (a = this.Grid.node.getChildByName(e.toString())) && (m.EZLog.Log(a), a.getComponent(_.ItemComponent).SetReceivedTagState(!1));
                else {
                    if (!b.default.Instance.IsHeroCanBeConsume(e)) {
                        if ((r = c.DataCenter.Instance.GetDataById(p.UserHero_Model, e)).Locked) return g.UIUtlity.ShowHintPanel(null, "hero_unlock_hint".ToUILocale(), "", null, "hero_unlock".ToUILocale(), function() {
                            var n = t.Grid.node.getChildByName(e.toString());
                            t.UnlockHero(e, n.getComponent(_.ItemComponent))
                        });
                        var n = c.DataCenter.Instance.GetFlyHeroSeasonWeaponId(e);
                        if (n) return g.UIUtlity.ShowHintPanel(null, "hero_unFly_hint".ToUILocale(), "", null, "equip_takeoff".ToUILocale(), function() {
                            t.UnFlyHero(e, n)
                        });
                        var o = b.default.Instance.HeroCanNotOffFormations(e);
                        return void(0 == o.length ? m.UIManager.Instance.ShowUIPanel(d.PanelConfig.OffFormationPanel.Path, e) : g.UIUtlity.ShowFloatingHint("hero_off_formation_limit_hint".ToUILocale().Fmt(o[0].ToFormationInstanceName())))
                    }
                    if (!this._selectHeroSets.has(e)) {
                        var r = c.DataCenter.Instance.GetDataById(p.UserHero_Model, e);
                        if (c.DataCenter.Instance.GetDataById(p.HeroInfo_Model, r.HeroId).HandbookStar == r.StarLevel) {
                            var i = {
                                Type: b.UpStarHeroMaterialType.Hero,
                                Id: r.Sid
                            };
                            if (0 == b.default.GetHeroByItemIdAndStar(r.HeroId, r.StarLevel, [i], void 0, !0).length) return g.UIUtlity.ShowHintPanel(null, "HeroHandbook_Consume_Tip".ToUILocale(), "", null, "", function() {
                                t.OnHeroInHeroHandbook(e)
                            })
                        }
                    }
                    if (!(this._selectCount < this._maxSelectHeroCount)) return void g.UIUtlity.ShowFloatingHint("heroPalace_resolve_count_limit".ToUILocale());
                    var a;
                    this._selectCount++, this._selectHeroSets.add(e), null != (a = this.Grid.node.getChildByName(e.toString())) && (m.EZLog.Log(a), a.getComponent(_.ItemComponent).SetReceivedTagState(!0))
                }
                this.UpdateSelectLabel(), this.SetResolveBtnState()
            }, t.prototype.OnHeroInHeroHandbook = function(e) {
                if (this._selectCount < this._maxSelectHeroCount) {
                    this._selectCount++, this._selectHeroSets.add(e);
                    var t = this.Grid.node.getChildByName(e.toString());
                    null != t && (m.EZLog.Log(t), t.getComponent(_.ItemComponent).SetReceivedTagState(!0)), this.UpdateSelectLabel(), this.SetResolveBtnState()
                } else g.UIUtlity.ShowFloatingHint("heroPalace_resolve_count_limit".ToUILocale())
            }, t.prototype.UnlockHero = function(e) {
                var t = this,
                    n = new p.Req_Hero_LockHero;
                n.Sid = e, n.Locked = !1, S.RpcComponent.Instance.Call(n, function() {
                    g.UIUtlity.ShowFloatingHint("hero_has_unlocked".ToUILocale()), t.OnRefresh(e)
                })
            }, t.prototype.UnFlyHero = function(e, t) {
                var n = this,
                    o = new p.Req_Activity_SeasonWeaponFly;
                o.Sid = t, o.Owner = 0, S.RpcComponent.Instance.Call(o, function() {
                    g.UIUtlity.ShowFloatingHint("remove_success".ToUILocale()), n.OnRefresh(e)
                })
            }, t.prototype.SetResolveBtnState = function() {
                this._selectCount > 0 ? this._resolveBtnState == l.Disable && (this._resolveBtnState = l.Enable, this.BtnResolve.node.active = !0, this.BtnResolveDisable.node.active = !1) : this._resolveBtnState == l.Enable && (this._resolveBtnState = l.Disable, this.BtnResolve.node.active = !1, this.BtnResolveDisable.node.active = !0)
            }, t.prototype.CreateResoleItemData = function() {
                var e = this;
                this._resovleItemMap.clear(), this._selectHeroSets.forEach(function(t, n) {
                    e.SetResolveItem(n)
                }), this._resovleItemMap.forEach(function(e, t) {
                    m.EZLog.Log(t + "," + e)
                })
            }, t.prototype.SetResolveItem = function(e) {
                for (var t = c.DataCenter.Instance.GetDataById(p.UserHero_Model, e), n = (C.ConfigDataComponent.Instance.GetConfigById(v.HeroBase_Config, t.HeroId), this._heroStarBaseData[t.StarLevel].DecomposeItems), o = 0; o < n.length; o++) {
                    var r = n[o].Items[0],
                        i = n[o].Items[1];
                    this.SetResovleItemMap(r, i)
                }
                if (t.Level > 1) {
                    var a = C.ConfigDataComponent.Instance.GetConfigById(v.HeroLevel_Config, t.Level).Materials;
                    for (o = 0; o < a.length; o++) r = a[o].Items[0], i = a[o].Items[1], this.SetResovleItemMap(r, i)
                }
                if (t.LuckSkill1) {
                    var s = C.ConfigDataComponent.Instance.GetConfigById(v.LuckyCharmSkill_Config, t.LuckSkill1);
                    if (s)
                        for (var l = 0; l < s.DecomposeItems.length; l++) r = s.DecomposeItems[l].Items[0], i = s.DecomposeItems[l].Items[1], this.SetResovleItemMap(r, i)
                }
                if (t.LuckSkill2) {
                    var u = C.ConfigDataComponent.Instance.GetConfigById(v.LuckyCharmSkill_Config, t.LuckSkill2);
                    if (u)
                        for (l = 0; l < u.DecomposeItems.length; l++) r = u.DecomposeItems[l].Items[0], i = u.DecomposeItems[l].Items[1], this.SetResovleItemMap(r, i)
                }
                t.PVETalentLevel > 0 && this.ConfigTalentMaterials(t.PVETalentLevel, A.HeroTalentType.PVE), t.PVPTalentLevel > 0 && this.ConfigTalentMaterials(t.PVPTalentLevel, A.HeroTalentType.PVP)
            }, t.prototype.ConfigTalentMaterials = function(e, t) {
                for (var n = this, o = Math.floor(e / 6), r = e % 6, i = new Map, a = C.ConfigDataComponent.Instance.GetArrayConfig(v.HeroTalentItemConsume_Config), s = 0; s < o; s++) {
                    var l = [],
                        c = [];
                    t == A.HeroTalentType.PVE ? (l = a[s].PVECommonItems, c = a[s].PVEHeroItems) : (l = a[s].PVPCommonItems, c = a[s].PVPHeroItems), this.SetTalentMaterials(l, c, 6, i)
                }
                o < a.length && (t == A.HeroTalentType.PVE ? this.SetTalentMaterials(a[o].PVECommonItems, a[o].PVEHeroItems, r, i) : this.SetTalentMaterials(a[o].PVPCommonItems, a[o].PVPHeroItems, r, i));
                var u = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroTalentResetReturnRatio");
                i.forEach(function(e, t) {
                    n.SetResovleItemMap(t, Math.floor(e * u / 1e3))
                })
            }, t.prototype.SetTalentMaterials = function(e, t, n, o) {
                var r = this;
                e.forEach(function(e) {
                    r.SetTalentItemsCount(e.Items[0], e.Items[1] * n, o)
                }), t.forEach(function(e) {
                    r.SetTalentItemsCount(A.CommonItemId.NoElementFiveStarHeroSoul, e.Items[2] * n, o)
                })
            }, t.prototype.SetTalentItemsCount = function(e, t, n) {
                if (t > 0)
                    if (n.has(e)) {
                        var o = n.get(e);
                        o += t, n.set(e, o)
                    } else n.set(e, t)
            }, t.prototype.SetResovleItemMap = function(e, t) {
                if (this._resovleItemMap.has(e)) {
                    var n = this._resovleItemMap.get(e);
                    this._resovleItemMap.set(e, n + t)
                } else this._resovleItemMap.set(e, t)
            }, t.prototype.UpdateSelectLabel = function() {
                this.SelectCountLabel.string = "heroPalace_selected_hero_count".ToUILocale().Fmt(this._selectCount, this._maxSelectHeroCount)
            }, t.prototype.OnFastSelectBtnClick = function() {
                var e, t = this;
                e = P.default.GetItem(P.GameRecordDefine.HeroResolveSettingStar) || this.LOW_STAR;
                var n = 0;
                if (this._selectCount != this._maxSelectHeroCount) {
                    this.Scroll.stopAutoScroll();
                    for (var o = this.GetHeroDataByElement(this._currentElement), r = 0; r < o.length && this._selectCount != this._maxSelectHeroCount; r++) o[r].StarLevel <= e && b.default.Instance.IsHeroCanBeConsume(o[r]) && (this._selectHeroSets.has(o[r].Sid) || (this._selectHeroSets.add(o[r].Sid), this._selectCount++, n++));
                    n > 0 ? this.UpdateSelectLabel() : g.UIUtlity.ShowFloatingHint("heroPalace_resolve_fast_select_empty".ToUILocale()), this._selectHeroSets.forEach(function(e) {
                        var n = t.Grid.node.getChildByName(e.toString());
                        null != n && n.getComponent(_.ItemComponent).SetReceivedTagState(!0)
                    }), this.SetResolveBtnState()
                } else g.UIUtlity.ShowFloatingHint("heroPalace_resolve_count_limit".ToUILocale())
            }, t.prototype.OnResolveBtnClick = function() {
                this._resolveBtnState == l.Enable && (this.CreateResoleItemData(), g.UIUtlity.ShowHeroResolvePreviewPanel(this._selectHeroSets, this._resovleItemMap))
            }, t.prototype.OnResolveDisableBtnClick = function() {
                g.UIUtlity.ShowFloatingHint("heroPalace_resolve_no_hero".ToUILocale())
            }, t.prototype.OnBtnHeroShopClick = function() {
                var e = b.default.Instance.IsGameModuleUnlock(w.GameModuleType.HeroShop);
                e[0] ? u.UIManager.Instance.ShowUIPanel(d.PanelConfig.ShopPanel.Path, 2, 3) : g.UIUtlity.ShowFloatingHint(e[1])
            }, t.prototype.OnResolveSettingButtonClick = function() {
                m.UIManager.Instance.ShowUIPanel(d.PanelConfig.QuickResolveSettingPanel.Path)
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                f.AssetsManager.Instance.UnloadAsset(this._itemPrefab);
                for (var e = 0; e < this._asset.length; e++) f.AssetsManager.Instance.UnloadAsset(this._asset[e])
            }, i([L(cc.ScrollView)], t.prototype, "Scroll", void 0), i([L(I.default)], t.prototype, "Grid", void 0), i([L(h.default)], t.prototype, "HeroElementGroup", void 0), i([L(cc.Label)], t.prototype, "SelectCountLabel", void 0), i([L(cc.Button)], t.prototype, "BtnFastSelect", void 0), i([L(cc.Label)], t.prototype, "FastSelectBtnLabel", void 0), i([L(cc.Button)], t.prototype, "BtnResolve", void 0), i([L(cc.Button)], t.prototype, "BtnResolveDisable", void 0), i([L(cc.Label)], t.prototype, "ResolveBtnLabel", void 0), i([L(cc.Label)], t.prototype, "ResolveBtnDisableLabel", void 0), i([L(cc.Button)], t.prototype, "BtnHeroShop", void 0), i([L(cc.Label)], t.prototype, "HeroShopBtnLabel", void 0), i([L(cc.Label)], t.prototype, "EmptyStateLabel", void 0), i([L(cc.Label)], t.prototype, "BubbleContent", void 0), i([L(cc.Button)], t.prototype, "ResolveSettingButton", void 0), i([L(cc.Label)], t.prototype, "ResolveSettingButtonLabel", void 0), i([L(cc.Label)], t.prototype, "Tips", void 0), i([L(cc.Sprite)], t.prototype, "Bg", void 0), i([R], t)
        }(cc.Component);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroRisingStarPackagePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "47129CHB8VNXo3rs3J/So6y", "HeroRisingStarPackagePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u, p = e("../../../EZFramework/EZFramework"),
            d = e("../../Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/ItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../../Proto/Static/RpcProto"),
            v = e("../../Channel/ChannelManager"),
            b = e("./CommonTaskTipComponent"),
            S = e("./HeroRisingStarPackageTagComponent"),
            w = e("../../../Consts/Etc"),
            P = e("../../../EZFramework/EZFramework"),
            A = e("../Components/_MultilangSprite");
        (function(e) {
            e[e.buyOnce = 1] = "buyOnce", e[e.buyEveryOne = 2] = "buyEveryOne"
        })(l || (l = {})),
        function(e) {
            e[e.Unpurchased = 0] = "Unpurchased", e[e.Purchased = 1] = "Purchased", e[e.Received = 2] = "Received"
        }(c || (c = {})),
        function(e) {
            e[e.PickNormal = 0] = "PickNormal", e[e.BuyNormal = 1] = "BuyNormal", e[e.PickGray = 2] = "PickGray", e[e.BuyGray = 3] = "BuyGray", e[e.Received = 4] = "Received", e[e.Bought = 5] = "Bought"
        }(u || (u = {}));
        var T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.HeroContainerNode = null, t.HeroNameSprite = null, t.TimeTipTextLabel = null, t.ItemsContainer = null, t.PickUpButton = null, t.PickUpButtonLabel = null, t.PickUpButtonTipSprite = null, t.PickUpButtonBGSprite = null, t.PickUpButtonRedDot = null, t.PickButtonVipPointNode = null, t.PickButtonVipTipLabel = null, t.PickButtonVipPointLabel = null, t.PickUpButtonGray = null, t.PickUpButtonLabelGray = null, t.PickButtonVipPointNodeGray = null, t.PickButtonVipTipLabelGray = null, t.PickButtonVipPointLabelGray = null, t.HeroItemNode = null, t.TagContainer = null, t.BackgroundUp = null, t.BackgroundDown = null, t.BuyButton = null, t.BuyButtonLabel = null, t.BuyButtonTipSprite = null, t.BuyButtonBGSprite = null, t.BuyButtonVipPointNode = null, t.BuyButtonVipTipLabel = null, t.BuyButtonVipPointLabel = null, t.BuyButtonGray = null, t.BuyButtonLabelGray = null, t.BuyButtonVipPointLabelGray = null, t.BuyButtonVipTipLabelGray = null, t.NowChosenHeroContainer = null, t.HeroDetailLabel = null, t.GoButton = null, t.HeroItemContainer = null, t.FloatingBG = null, t.LockButton = null, t.LockButtonLabel = null, t.HeroDetailNode = null, t.TaskTipNode = null, t.DeadlineTimeRichText = null, t.GuideNode = null, t.ItemsScrollView = null, t.TagsScrollView = null, t.GuidHandEffect = null, t.GuidClickEffect = null, t.GuidBackground = null, t.ArrowContiner = null, t._tagIndexStateMap = [], t._lockedHeroId = null, t._chosenHeroIndex = -1, t._chosenTagIndex = 0, t._activityId = -1, t._availableHeroId = [], t._model = null, t._assetPathConfig = {
                        basePath: "HeroRisingStarPackage/PNG/",
                        backGround: "Background_",
                        handClikEffect: "ItemsComponent/Spine/UI_effect_xinshouyindao",
                        handEffect: "GuidePanels/Spine/UI_effect_xinshouyindao_01",
                        selectHeroSprite: "heroItemBackground"
                    }, t._tagSelectedBack = null, t._tagNotSelectedBack = null, t._tagsRedDotState = [], t._data = null, t._packIdMap = {}, t._noChosenHero = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(I.EventKeys.EVENT_RISING_STAR_SELECT_HERO, this.SelectHero, this), p.Game.EventDispatcher.On(I.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySuccess, this), P.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(I.EventKeys.EVENT_RISING_STAR_SELECT_HERO, this.SelectHero, this), p.Game.EventDispatcher.Off(I.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySuccess, this), P.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), !0 !== t && this.InitPanelStyle()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("HeroRisingStarPackage/HeroRisingStarPackageTagComponent", cc.Prefab), o = this.LoadDynamicAsset(this._assetPathConfig.basePath + "HeroRisingStarPackageAtlas", cc.SpriteAtlas), [4, Promise.all([t, n, o])];
                                case 1:
                                    return r = i.sent(), this.isValid ? (this._itemPrefab = r[0], this._tagPrefab = r[1], this._selfPanelAtlasCache = r[2], this._tagSelectedBack = this._selfPanelAtlasCache.getSpriteFrame("Tab2"), this._tagNotSelectedBack = this._selfPanelAtlasCache.getSpriteFrame("Tab1"), [2]) : (p.AssetsManager.Instance.UnloadAsset(r[0]), p.AssetsManager.Instance.UnloadAsset(r[1]), p.AssetsManager.Instance.UnloadAsset(r[2]), [2])
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var e = this;
                    this.LockButton.node.on("click", this.OnChosenButtonClick, this), this.GoButton.node.on("click", this.OnGoButtonClick, this), this.BuyButton.node.on("click", function() {
                        e.ClickBuy()
                    }, this), this.PickUpButton.node.on("click", function() {
                        e.ClickPickUp()
                    }, this), this.PickUpButtonGray.node.on("click", function() {
                        e.ClickPickUp()
                    }, this), this.GuidBackground.node.on(cc.Node.EventType.TOUCH_END, this.ShowSelectHeroPanel, this), this.RefreshLanguage()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityId = t[0], this._data = d.DataCenter.Instance.ActivityConfigs[this._activityId], this.UpdateAvailableHero(), this.RefreshModel(), this.RefreshLockedHeroId(), this.RefreshChosenHero(), this.RefreshPackIdMap()
                }, t.prototype.InitPanelStyle = function() {
                    this.RefreshHeroAvatar(), this.RefreshHeroName(), this.RefreshBackGround(), this.RefreshLockButton(), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), this.RefreshClockContent(), this.RefreshTagStyle(), this.RefreshTagState(), this.InitselectTag(), this.TaskTipNode.getComponent(b.default).InitData(), this.RefreshGuide(), this.RefreshHeroDetail(), this.RefreshTagsRedDot(), this.RefreshPickUpBtnRedDot()
                }, t.prototype.RefreshTagStyle = function() {
                    var e = this._data.__Heros[this._chosenHeroIndex].GiftDay,
                        t = this._data.__Heros[this._chosenHeroIndex],
                        n = this._availableHeroId[this._chosenHeroIndex];
                    if (this.TagContainer.children.length > e.length)
                        for (var o = e.length - 1; o < this.TagContainer.children.length - 1; o++) this.TagContainer.children[o].active = !1;
                    for (o = 0; o < e.length; o++) {
                        var r = void 0;
                        this.TagContainer.children[o] ? (this.TagContainer.children[o].active = !0, r = this.TagContainer.children[o].getComponent(S.default).GetHeroNode()) : r = cc.instantiate(this._itemPrefab), r.getComponent(g.ItemComponent).Init({
                            ItemId: this.GetNowChosenHero(),
                            StarLevel: t.HeroStar[o]
                        }, g.ItemComponentType.HeroInfo);
                        var i = {
                                day: t.GiftDay[o],
                                heroId: n,
                                star: t.HeroStar[o],
                                heroNode: r,
                                selectBackground: this._tagSelectedBack,
                                notSelectBackground: this._tagNotSelectedBack,
                                unlocked: this.JudgeTagUnlocked(o)
                            },
                            a = void 0;
                        this.TagContainer.children[o] ? a = this.TagContainer.children[o] : (a = cc.instantiate(this._tagPrefab), this.TagContainer.addChild(a)), a.getComponent(S.default).InitStyle(this, o, i), a.on(cc.Node.EventType.TOUCH_END, this.ClickTag, this)
                    }
                    e.length <= 4 ? (this.TagsScrollView.enabled = !1, this.TagContainer.anchorX = .5, this.TagContainer.x = 0, this.ArrowContiner.active = !1) : (this.TagsScrollView.enabled = !0, this.TagContainer.anchorX = 0, this.ArrowContiner.active = !0)
                }, t.prototype.ClickTag = function(e) {
                    var t = this.TagContainer.children[this._chosenTagIndex].getComponent(S.default),
                        n = e.target.getComponent(S.default);
                    n.Index !== this._chosenTagIndex && (this._chosenTagIndex = n.Index, t.NotSelectedTag(), n.SelectedTag(), this.RefreshItems(), this.RefreshPickUpButton(), this.RefreshBuyButton(), this.RefreshPickUpBtnRedDot())
                }, t.prototype.InitselectTag = function() {
                    if (this._data.CustomPart.ActivityType === l.buyOnce) {
                        for (var e = this.TagContainer.children.length; e > -1; e--)
                            if (!0 === this.JudgeTagUnlocked(e)) {
                                this._chosenTagIndex = e;
                                break
                            } if (this.GetTagState(this._chosenTagIndex) === c.Received)
                            for (e = 0; e < this.TagContainer.children.length; e++)
                                if (this.GetTagState(e) === c.Purchased && !0 === this.JudgeTagUnlocked(e)) {
                                    this._chosenTagIndex = e;
                                    break
                                }
                    } else
                        for (e = this.TagContainer.children.length - 1; e >= 0; e--)
                            if (this.GetTagState(e) === c.Unpurchased && !0 === this.JudgeTagUnlocked(e)) {
                                this._chosenTagIndex = e;
                                break
                            } this.TagContainer.children[this._chosenTagIndex].getComponent(S.default).SelectedTag(), this.RefreshItems(), this.RefreshBuyButton(), this.RefreshPickUpButton()
                }, t.prototype.ClickPickUp = function() {}, t.prototype.ClickBuy = function() {}, t.prototype.OnPaySuccess = function(e) {
                    this.isValid && e.ActivityId === this._data._id && (this.RefreshModel(), this.RefreshTagState(), this.RefreshBuyButton(), this.RefreshPickUpButton(), this.RefreshTagsRedDot(), this.RefreshPickUpBtnRedDot())
                }, t.prototype.RefreshHeroAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = d.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, this.GetNowChosenHero()), [4, this.GetHeroSetPainting(e)];
                                case 1:
                                    return t = o.sent(), this.isValid ? (n = cc.instantiate(t), this.HeroContainerNode.destroyAllChildren(), this.HeroContainerNode.addChild(n), _.default.Instance.SetHeroAvatarSkin(n, e.Id, e.StarLevel), [2]) : (p.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.RefreshHeroName = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset(f.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/" + this.GetNowChosenHero()), cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.HeroNameSprite.spriteFrame = e, [2]) : (p.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.RefreshTimeTip = function() {
                    this._data.CustomPart.ActivityType === l.buyOnce ? this.TimeTipTextLabel.string = "HeroRisingPackage_TimeTipTextLabel_BuyOnce".ToUILocale().Fmt(this._data.__Heros[this._chosenHeroIndex].GiftDay[this._chosenTagIndex]) : this.TimeTipTextLabel.string = "HeroRisingPackage_TimeTipTextLabel_BuyEveryOne".ToUILocale().Fmt(this._data.__Heros[this._chosenHeroIndex].GiftDay[this._chosenTagIndex])
                }, t.prototype.RefreshLanguage = function() {
                    this.HeroDetailLabel.string = "HeroDetail_title".ToUILocale(), this.LockButtonLabel.string = "hero_lock".ToUILocale(), this.BuyButtonVipTipLabel.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.BuyButtonVipTipLabelGray.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.PickButtonVipTipLabel.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.PickButtonVipTipLabelGray.string = "AccumulateRecharge_VIPPointTag".ToUILocale()
                }, t.prototype.RefreshBackGround = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = d.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, this.GetNowChosenHero()), t = this.LoadDynamicAsset("" + this._assetPathConfig.basePath + this._assetPathConfig.backGround + "Up_" + e.ElementType, cc.SpriteFrame), n = this.LoadDynamicAsset("" + this._assetPathConfig.basePath + this._assetPathConfig.backGround + "Down_" + e.ElementType, cc.SpriteFrame), [4, Promise.all([t, n])];
                                case 1:
                                    return o = r.sent(), this.isValid ? (this.BackgroundUp.spriteFrame = o[0], this.BackgroundDown.spriteFrame = o[1], [2]) : (p.AssetsManager.Instance.UnloadAsset(o[0]), p.AssetsManager.Instance.UnloadAsset(o[1]), [2])
                            }
                        })
                    })
                }, t.prototype.RefreshGuide = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return !this._noChosenHero || this._lockedHeroId ? [3, 2] : (this.GuidBackground.spriteFrame = this._selfPanelAtlasCache.getSpriteFrame(this._assetPathConfig.selectHeroSprite), e = this.LoadDynamicAsset(this._assetPathConfig.handEffect, sp.SkeletonData), t = this.LoadDynamicAsset(this._assetPathConfig.handClikEffect, sp.SkeletonData), [4, Promise.all([e, t])]);
                                case 1:
                                    return n = o.sent(), this.isValid ? (this.GuidHandEffect.skeletonData = n[0], this.GuidHandEffect.setAnimation(0, this.GuidHandEffect.defaultAnimation, !0), this.GuidClickEffect.skeletonData = n[1], this.GuidClickEffect.setAnimation(0, "UI_effect_xinshouyindao", !0), this.GuideNode.active = !0, [3, 3]) : (p.AssetsManager.Instance.UnloadAsset(n[0]), p.AssetsManager.Instance.UnloadAsset(n[1]), [2]);
                                case 2:
                                    this.GuideNode.active = !1, o.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.RefreshHeroDetail = function() {
                    this._lockedHeroId ? this.HeroDetailNode.active = !0 : this.HeroDetailNode.active = !1
                }, t.prototype.RefreshTagsRedDot = function() {
                    var e = this;
                    this._tagsRedDotState = [], this.TagContainer.children.forEach(function(t, n) {
                        var o = e.GetNeedShowRedDotByTagIndex(n);
                        e._tagsRedDotState.push(o), t.getComponent(S.default).ChangeRedDotActive(o)
                    })
                }, t.prototype.RefreshPickUpBtnRedDot = function() {
                    this.PickUpButtonRedDot.active = this._tagsRedDotState[this._chosenTagIndex]
                }, t.prototype.GetNeedShowRedDotByTagIndex = function(e) {
                    return !(this._data.CustomPart.ActivityType !== l.buyOnce || !this._lockedHeroId || !this.JudgeTagUnlocked(e) || this.GetTagState(e) !== c.Purchased)
                }, t.prototype.RefreshPickUpButton = function() {
                    var e = this.JudgeTagUnlocked(this._chosenTagIndex),
                        t = this.GetTagState(this._chosenTagIndex);
                    if (this._data.CustomPart.ActivityType === l.buyOnce) {
                        if (this.ClickPickUp = this.PickUpGift, !e) return void this.SetPickUpButton(u.PickGray);
                        t === c.Received ? this.SetPickUpButton(u.Received) : t === c.Purchased ? this.SetPickUpButton(u.PickNormal) : this.SetPickUpButton(u.PickGray)
                    } else if (this._data.CustomPart.ActivityType === l.buyEveryOne) {
                        if (this.ClickPickUp = this.BuyGift, !e) return void this.SetPickUpButton(u.BuyGray);
                        t === c.Purchased || t === c.Received ? this.SetPickUpButton(u.Bought) : this.SetPickUpButton(u.BuyNormal)
                    }
                }, t.prototype.RefreshBuyButton = function() {
                    var e = this.GetTagState(this._chosenTagIndex);
                    this._data.CustomPart.ActivityType === l.buyOnce ? (this.ClickBuy = this.BuyGift, e === c.Purchased || e === c.Received ? this.SetBuyButton(u.Bought) : this.SetBuyButton(u.BuyNormal)) : this._data.CustomPart.ActivityType === l.buyEveryOne && (this.BuyButton.node.active = !1, this.BuyButtonGray.node.active = !1)
                }, t.prototype.RefreshLockButton = function() {
                    this._lockedHeroId || this._noChosenHero ? this.LockButton.node.active = !1 : this.LockButton.node.active = !0
                }, t.prototype.SetPickUpButton = function(e) {
                    this.PickUpButton.node.active = !1, this.PickUpButtonGray.node.active = !1, this.PickButtonVipPointNode.active = !1, this.PickButtonVipPointNodeGray.active = !1, this.PickUpButtonTipSprite.node.active = !1;
                    var t = v.default.Instance.CurrencySymbol + v.default.Instance.ExchangeMoney(this.GetTagValue()),
                        n = "x" + this.GetTagValue();
                    switch (e) {
                        case u.PickNormal:
                            this.PickUpButton.node.active = !0, this.PickUpButtonLabel.string = "receive".ToUILocale();
                            break;
                        case u.PickGray:
                            this.PickUpButtonGray.node.active = !0, this.PickUpButtonLabelGray.string = "receive".ToUILocale();
                            break;
                        case u.BuyNormal:
                            this.PickUpButton.node.active = !0, this.PickUpButtonLabel.string = t, this.PickButtonVipPointNode.active = !0, this.PickButtonVipPointLabel.string = n;
                            break;
                        case u.BuyGray:
                            this.PickUpButtonGray.node.active = !0, this.PickUpButtonLabelGray.string = t, this.PickButtonVipPointNodeGray.active = !0, this.PickButtonVipPointLabelGray.string = n;
                            break;
                        case u.Received:
                            this.PickUpButtonTipSprite.LoadSpriteFrame("MultilangSinglePng2", "received"), this.PickUpButtonTipSprite.node.active = !0;
                            break;
                        case u.Bought:
                            this.PickUpButtonTipSprite.LoadSpriteFrame("MultilangSinglePng2", "bought"), this.PickUpButtonTipSprite.node.active = !0
                    }
                }, t.prototype.SetBuyButton = function(e) {
                    this.BuyButton.node.active = !1, this.BuyButtonGray.node.active = !1, this.BuyButtonTipSprite.node.active = !1;
                    var t = v.default.Instance.CurrencySymbol + v.default.Instance.ExchangeMoney(this.GetTagValue()),
                        n = "x" + this.GetTagValue();
                    switch (e) {
                        case u.BuyNormal:
                            this.BuyButton.node.active = !0, this.BuyButtonLabel.string = t, this.BuyButtonVipPointLabel.string = n;
                            break;
                        case u.BuyGray:
                            this.BuyButtonGray.node.active = !0, this.BuyButtonLabelGray.string = t, this.BuyButtonVipPointLabelGray.string = n;
                            break;
                        case u.Bought:
                            this.BuyButtonTipSprite.node.active = !0, this.BuyButtonTipSprite.LoadSpriteFrame("MultilangSinglePng2", "bought")
                    }
                }, t.prototype.BuyGift = function() {
                    this._lockedHeroId ? !1 !== this.JudgeTagUnlocked(this._chosenTagIndex) || this._data.CustomPart.ActivityType !== l.buyEveryOne ? v.default.Instance.Pay(this.GetGiftId(), this._data._id) : m.UIUtlity.ShowFloatingHint("HeroRisingPackage_CanNotBuyGift".ToUILocale().Fmt(this._data.__Heros[this._chosenHeroIndex].GiftDay[this._chosenTagIndex])) : m.UIUtlity.ShowFloatingHint("HeroRisingPackage_notLockHero".ToUILocale())
                }, t.prototype.PickUpGift = function() {
                    var e = this,
                        t = this.GetTagState(this._chosenTagIndex);
                    if (this._data.CustomPart.ActivityType === l.buyOnce)
                        if (this._lockedHeroId) {
                            if (!1 === this.JudgeTagUnlocked(this._chosenTagIndex) || t !== c.Purchased) return t === c.Purchased ? void m.UIUtlity.ShowFloatingHint("HeroRisingPackage_CanNotPickUpGift1".ToUILocale().Fmt(this._data.__Heros[this._chosenHeroIndex].GiftDay[this._chosenTagIndex])) : void m.UIUtlity.ShowFloatingHint("HeroRisingPackage_CanNotPickUpGift0".ToUILocale().Fmt(this._data.__Heros[this._chosenHeroIndex].GiftDay[this._chosenTagIndex]));
                            var n = new C.Req_Activity_DrawHeroStarGift;
                            n.ActivityId = this._data._id, n.Index = this._chosenTagIndex + 1, f.RpcComponent.Instance.Call(n, function(t) {
                                e.isValid && (m.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.RefreshModel(), e.RefreshTagState(), e.RefreshBuyButton(), e.RefreshPickUpButton(), e.RefreshTagsRedDot(), e.RefreshPickUpBtnRedDot())
                            })
                        } else m.UIUtlity.ShowFloatingHint("HeroRisingPackage_notLockHero".ToUILocale())
                }, t.prototype.RefreshItems = function() {
                    var e = this.GetItemsData();
                    if (void 0 !== e && 0 !== e.length) {
                        for (var t = e.length - 1; t < this.ItemsContainer.children.length - 1; t++) this.ItemsContainer.children[t].active = !1;
                        for (t = 0; t < e.length; t++) this.ItemsContainer.children[t] ? (this.ItemsContainer.children[t].active = !0, this.ItemsContainer.children[t].getComponent(g.ItemComponent).Init({
                            ItemId: e[t].Items[0],
                            Count: e[t].Items[1]
                        })) : this.CreateItem(e[t].Items[0], e[t].Items[1]);
                        e.length > 0 && e.length <= 4 ? (this.ItemsScrollView.enabled = !1, this.ItemsContainer.anchorX = .5, this.ItemsContainer.x = 0) : (this.ItemsScrollView.enabled = !0, this.ItemsScrollView.node.anchorX = 0), this.RefreshTimeTip()
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemsContainer.children.indexOf(t) && m.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t), -1 != this.HeroItemNode.children.indexOf(t) && (this._lockedHeroId ? this.OnGoButtonClick() : this.ShowSelectHeroPanel())
                }, t.prototype.GetHeroSetPainting = function(e) {
                    var t = e.UIAvatar + "/Avatar";
                    return this.LoadDynamicAsset(t, cc.Prefab)
                }, t.prototype.RefreshClockContent = function() {
                    void 0 === this._lockModleHeroItemNode && (this._lockModleHeroItemNode = cc.instantiate(this._itemPrefab), this.HeroItemContainer.addChild(this._lockModleHeroItemNode), this._heroItem = this._lockModleHeroItemNode.getComponent(g.ItemComponent)), this._heroItem.Init({
                        ItemId: this.GetNowChosenHero()
                    }, g.ItemComponentType.HeroInfo)
                }, t.prototype.CreateItem = function(e, t) {
                    var n = cc.instantiate(this._itemPrefab);
                    n.getComponent(g.ItemComponent).Init({
                        ItemId: e,
                        Count: t
                    }), this.ItemsContainer.addChild(n)
                }, t.prototype.OnGoButtonClick = function() {
                    p.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroHandbookPanel.Path, this.GetNowChosenHero())
                }, t.prototype.OnChosenButtonClick = function() {
                    var e = this;
                    m.UIUtlity.ShowHintPanel("hint".ToUILocale(), "timeLimited_upgradeStar_lockHeroTip".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        e.LockHero()
                    })
                }, t.prototype.SelectHero = function(e) {
                    var t = this;
                    this._lockedHeroId || (this._data.__Heros.forEach(function(n, o) {
                        n.Id === e && (t._chosenHeroIndex = o)
                    }), this._noChosenHero = !1, this.RefreshChosenHero(), this.RefreshHeroAvatar(), this.RefreshHeroName(), this.RefreshBackGround(), this.RefreshTagStyle(), this.RefreshTagState(), this.RefreshItems(), this.RefreshBuyButton(), this.RefreshPickUpButton(), this.RefreshLockButton(), this.RefreshClockContent(), this.RefreshGuide(), this.InitselectTag())
                }, t.prototype.ShowSelectHeroPanel = function() {
                    p.UIManager.Instance.ShowUIPanel(y.PanelConfig.OptionalUpgradeStarHeroHintPanel.Path, this._itemPrefab, this._availableHeroId, [], null, this._activityId, null, 2)
                }, t.prototype.GetNowChosenHero = function() {
                    return this._lockedHeroId ? this._lockedHeroId : this._availableHeroId[this._chosenHeroIndex]
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.unschedule(this.RefreshDeadLine)
                }, t.prototype.LockHero = function() {
                    var e = this,
                        t = new C.Req_Activity_LockHeroStarGiftHero;
                    t.ActivityId = this._data._id, t.HeroId = this.GetNowChosenHero(), f.RpcComponent.Instance.Call(t, function() {
                        e.FloatingBG.active = !0, e.RefreshModel(), e.RefreshLockedHeroId(), e.RefreshLockButton(), e.RefreshHeroDetail()
                    })
                }, t.prototype.RefreshDeadLine = function() {
                    var e = _.default.Instance.ComputeExtraShowDeadTime(this._data.Common) - d.RpcComponent.Instance.ServerTime;
                    e < 0 ? p.UIManager.Instance.BackUIPanel() : this.DeadlineTimeRichText.string = "HeroRisingStarPackagePanel_DeadlineTimeRichText".ToUILocale().Fmt(_.default.ActivityTimeLeftFormat(e))
                }, t.prototype.UpdateAvailableHero = function() {
                    var e = this;
                    this._data.__Heros.forEach(function(t) {
                        e._availableHeroId.push(t.Id)
                    })
                }, t.prototype.GetItemsData = function() {
                    if (this._data.CustomPart.ActivityType === l.buyOnce) return this._data.__Rewards[this._data.__Heros[this._chosenHeroIndex].RewardIds[this._chosenTagIndex] - 1].Rewards;
                    if (this._data.CustomPart.ActivityType === l.buyEveryOne)
                        for (var e = 0; e < this._data._Packs.length; e++)
                            if (this._data._Packs[e].Id === this._data.__Heros[this._chosenHeroIndex].PackIds[this._chosenTagIndex]) return this._data._Packs[e].Items
                }, t.prototype.RefreshLockedHeroId = function() {
                    this._lockedHeroId = this._model.IntArray[0]
                }, t.prototype.RefreshTagState = function() {
                    var e = this;
                    this._tagIndexStateMap = [], this.TagContainer.children.forEach(function(t, n) {
                        1 === e._model.Packs[e.GetGiftIdByTagIndex(n)].Items[0] ? e._data.CustomPart.ActivityType === l.buyOnce ? 1 === e._model.IntMap[n + 1] ? e._tagIndexStateMap.push(c.Received) : e._tagIndexStateMap.push(c.Purchased) : e._tagIndexStateMap.push(c.Received) : e._tagIndexStateMap.push(c.Unpurchased)
                    })
                }, t.prototype.RefreshModel = function() {
                    this._model = d.DataCenter.Instance.GetDataById(C.UserActivity_Model, this._data._id)
                }, t.prototype.GetTagState = function(e) {
                    return this._tagIndexStateMap[e]
                }, t.prototype.GetTagValue = function() {
                    return this._data.CustomPart.ActivityType === l.buyOnce ? this._packIdMap[this._data.__Heros[this._chosenHeroIndex].PackIds[0]].Money : this._data.CustomPart.ActivityType === l.buyEveryOne ? this._packIdMap[this._data.__Heros[this._chosenHeroIndex].PackIds[this._chosenTagIndex]].Money : void 0
                }, t.prototype.JudgeTagUnlocked = function(e) {
                    var t = this._data.Common.StartTime;
                    return this._data.Common.IsZoneOpen && (t = _.default.Instance.GetOpenZeroTime(), this._data.Common.RequireOpenDays > 0 && (t += (this._data.Common.RequireOpenDays - 1) * w.Etc.DayDuration)), t + (this._data.__Heros[this._chosenHeroIndex].GiftDay[e] - 1) * w.Etc.DayDuration < d.RpcComponent.Instance.ServerTime
                }, t.prototype.GetGiftId = function() {
                    return this._data.CustomPart.ActivityType === l.buyOnce ? this._packIdMap[this._data.__Heros[this._chosenHeroIndex].PackIds[0]].Id : this._data.CustomPart.ActivityType === l.buyEveryOne ? this._packIdMap[this._data.__Heros[this._chosenHeroIndex].PackIds[this._chosenTagIndex]].Id : void 0
                }, t.prototype.GetGiftIdByTagIndex = function(e) {
                    return this._data.CustomPart.ActivityType === l.buyOnce ? this._packIdMap[this._data.__Heros[this._chosenHeroIndex].PackIds[0]].Id : this._data.CustomPart.ActivityType === l.buyEveryOne ? this._packIdMap[this._data.__Heros[this._chosenHeroIndex].PackIds[e]].Id : void 0
                }, t.prototype.RefreshPackIdMap = function() {
                    var e = this;
                    this._data._Packs.forEach(function(t) {
                        e._packIdMap[t.Id] = t
                    })
                }, t.prototype.GetHeroInTag = function(e) {
                    return this._data.__Heros[this._chosenHeroIndex].HeroStar[e]
                }, t.prototype.RefreshChosenHero = function() {
                    var e = this;
                    return -1 === this._chosenHeroIndex && (this._chosenHeroIndex = this._availableHeroId.findIndex(function(t) {
                        return t === e._lockedHeroId
                    }), this._chosenHeroIndex = Math.max(0, this._chosenHeroIndex)), this._chosenHeroIndex
                }, i([L(cc.Node)], t.prototype, "HeroContainerNode", void 0), i([L(cc.Sprite)], t.prototype, "HeroNameSprite", void 0), i([L(cc.Label)], t.prototype, "TimeTipTextLabel", void 0), i([L(cc.Node)], t.prototype, "ItemsContainer", void 0), i([L(cc.Button)], t.prototype, "PickUpButton", void 0), i([L(cc.Label)], t.prototype, "PickUpButtonLabel", void 0), i([L(A.default)], t.prototype, "PickUpButtonTipSprite", void 0), i([L(cc.Sprite)], t.prototype, "PickUpButtonBGSprite", void 0), i([L(cc.Node)], t.prototype, "PickUpButtonRedDot", void 0), i([L(cc.Node)], t.prototype, "PickButtonVipPointNode", void 0), i([L(cc.Label)], t.prototype, "PickButtonVipTipLabel", void 0), i([L(cc.Label)], t.prototype, "PickButtonVipPointLabel", void 0), i([L(cc.Button)], t.prototype, "PickUpButtonGray", void 0), i([L(cc.Label)], t.prototype, "PickUpButtonLabelGray", void 0), i([L(cc.Node)], t.prototype, "PickButtonVipPointNodeGray", void 0), i([L(cc.Label)], t.prototype, "PickButtonVipTipLabelGray", void 0), i([L(cc.Label)], t.prototype, "PickButtonVipPointLabelGray", void 0), i([L(cc.Node)], t.prototype, "HeroItemNode", void 0), i([L(cc.Node)], t.prototype, "TagContainer", void 0), i([L(cc.Sprite)], t.prototype, "BackgroundUp", void 0), i([L(cc.Sprite)], t.prototype, "BackgroundDown", void 0), i([L(cc.Button)], t.prototype, "BuyButton", void 0), i([L(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([L(A.default)], t.prototype, "BuyButtonTipSprite", void 0), i([L(cc.Sprite)], t.prototype, "BuyButtonBGSprite", void 0), i([L(cc.Node)], t.prototype, "BuyButtonVipPointNode", void 0), i([L(cc.Label)], t.prototype, "BuyButtonVipTipLabel", void 0), i([L(cc.Label)], t.prototype, "BuyButtonVipPointLabel", void 0), i([L(cc.Button)], t.prototype, "BuyButtonGray", void 0), i([L(cc.Label)], t.prototype, "BuyButtonLabelGray", void 0), i([L(cc.Label)], t.prototype, "BuyButtonVipPointLabelGray", void 0), i([L(cc.Label)], t.prototype, "BuyButtonVipTipLabelGray", void 0), i([L(cc.Node)], t.prototype, "NowChosenHeroContainer", void 0), i([L(cc.Label)], t.prototype, "HeroDetailLabel", void 0), i([L(cc.Button)], t.prototype, "GoButton", void 0), i([L(cc.Node)], t.prototype, "HeroItemContainer", void 0), i([L(cc.Node)], t.prototype, "FloatingBG", void 0), i([L(cc.Button)], t.prototype, "LockButton", void 0), i([L(cc.Label)], t.prototype, "LockButtonLabel", void 0), i([L(cc.Node)], t.prototype, "HeroDetailNode", void 0), i([L(cc.Node)], t.prototype, "TaskTipNode", void 0), i([L(cc.RichText)], t.prototype, "DeadlineTimeRichText", void 0), i([L(cc.Node)], t.prototype, "GuideNode", void 0), i([L(cc.ScrollView)], t.prototype, "ItemsScrollView", void 0), i([L(cc.ScrollView)], t.prototype, "TagsScrollView", void 0), i([L(sp.Skeleton)], t.prototype, "GuidHandEffect", void 0), i([L(sp.Skeleton)], t.prototype, "GuidClickEffect", void 0), i([L(cc.Sprite)], t.prototype, "GuidBackground", void 0), i([L(cc.Node)], t.prototype, "ArrowContiner", void 0), i([R], t)
            }(p.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/_MultilangSprite": "_MultilangSprite",
        "./CommonTaskTipComponent": "CommonTaskTipComponent",
        "./HeroRisingStarPackageTagComponent": "HeroRisingStarPackageTagComponent"
    }],
    HeroRisingStarPackageTagComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6d10cJ9o6tC1IOblSrl2yyJ", "HeroRisingStarPackageTagComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TimeTipLabel = void 0, t.HeroContainerNode = void 0, t.TimeTipNode = void 0, t.RedDotNode = void 0, t.BackgroundNode = void 0, t.BackgroundSprite = void 0, t.HeroStarRichText = void 0, t.HeroNameRichText = void 0, t.HeroDetialNode = void 0, t._moveDistances = 30, t.Panel = void 0, t.Index = -1, t.BeChosen = !1, t._data = void 0, t._languageConfig = {
                        day: "firstCharge_dayth",
                        star: "HeroRisingStarPackageTabComponent_star"
                    }, t
                }
                return r(t, e), t.prototype.InitStyle = function(e, t, n) {
                    this.Panel = e, this.Index = t, this._data = n, this.NotSelectedTag();
                    var o = this.Panel.GetNowChosenHero().ToHeroTitle();
                    this.TimeTipLabel.string = this._languageConfig.day.ToUILocale().Fmt(this._data.day), this._data.heroNode.parent || (this.HeroContainerNode.addChild(this._data.heroNode), this._data.heroNode.pauseSystemEvents(!0)), this.HeroDetialNode.pauseSystemEvents(!0), this.BackgroundSprite.spriteFrame = this._data.notSelectBackground, !1 === this._data.unlocked ? (this.HeroNameRichText.string = "<outline color=#000000 width = 3 > <color=#ffffff >" + o + "</c></outline>", this.HeroStarRichText.string = "HeroRisingStarPackageTabComponent_star".ToUILocale().Fmt("000000", this.GetStar())) : (this.HeroNameRichText.string = "<outline color=#551E03 width = 3 > <color=#ffffff >" + o + "</c></outline>", this.HeroStarRichText.string = "HeroRisingStarPackageTabComponent_star".ToUILocale().Fmt("551E03", this.GetStar()))
                }, t.prototype.SelectedTag = function() {
                    !0 !== this.BeChosen && (this.BeChosen = !0, this.MoveContentUp(), this.BackgroundSprite.spriteFrame = this._data.selectBackground)
                }, t.prototype.NotSelectedTag = function() {
                    !1 !== this.BeChosen && (this.BeChosen = !1, this.MoveContentDown(), this.BackgroundSprite.spriteFrame = this._data.notSelectBackground)
                }, t.prototype.MoveContentUp = function() {
                    this._data.unlocked && (this.node.y = this.node.y + this._moveDistances)
                }, t.prototype.MoveContentDown = function() {
                    this._data.unlocked && (this.node.y = this.node.y - this._moveDistances)
                }, t.prototype.GetStar = function() {
                    return this.Panel.GetHeroInTag(this.Index)
                }, t.prototype.GetHeroNode = function() {
                    return this._data.heroNode
                }, t.prototype.ChangeRedDotActive = function(e) {
                    this.RedDotNode.active = e
                }, i([l(cc.Label)], t.prototype, "TimeTipLabel", void 0), i([l(cc.Node)], t.prototype, "HeroContainerNode", void 0), i([l(cc.Node)], t.prototype, "TimeTipNode", void 0), i([l(cc.Node)], t.prototype, "RedDotNode", void 0), i([l(cc.Node)], t.prototype, "BackgroundNode", void 0), i([l(cc.Sprite)], t.prototype, "BackgroundSprite", void 0), i([l(cc.RichText)], t.prototype, "HeroStarRichText", void 0), i([l(cc.RichText)], t.prototype, "HeroNameRichText", void 0), i([l(cc.Node)], t.prototype, "HeroDetialNode", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    HeroShowStaticImagePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "589c2ytLetKILZf09eT5qvf", "HeroShowStaticImagePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Channel/ChannelManager"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.NickName = null, t.HeroName = null, t.HeroSprite = null, t.LeftButton = null, t.RightButton = null, t.Num = null, t._selectIdx = 0, t._heroId = 0, t._isActive = !1, t._baseConfig = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LeftButton.node.on("click", this.ClickLeftButton, this), this.RightButton.node.on("click", this.ClickRightButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroId = t[0], this._isActive = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetHeroInfo(), this.SetHeroStaticImage()
                }, t.prototype.SetHeroInfo = function() {
                    var e = d.default.Instance.IsVNChannel();
                    this.HeroName.node.active = !e, e || (this.HeroName.string = this._heroId.ToHeroName()), this.NickName.string = e ? this._heroId.ToHeroName() : this._heroId.ToHeroTitle(), this._baseConfig = u.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, this._heroId), this.Num.string = this._selectIdx + 1 + "/" + this._baseConfig.StaticImage.length
                }, t.prototype.SetHeroStaticImage = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = 0, this._baseConfig.StaticImage[this._selectIdx] ? (e = this._baseConfig.StaticImage[this._selectIdx], [4, p.AssetsManager.Instance.LoadAsset("HeroStaticImage/" + e, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    if (t = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(t), [2];
                                    if (this._loadedAssets.push(t), e != this._baseConfig.StaticImage[this._selectIdx]) return [2];
                                    this.HeroSprite.spriteFrame = t, n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ClickLeftButton = function() {
                    var e = this._selectIdx - 1;
                    this._selectIdx = e >= 0 ? e : 0, this.Num.string = this._selectIdx + 1 + "/" + this._baseConfig.StaticImage.length, this.SetHeroStaticImage()
                }, t.prototype.ClickRightButton = function() {
                    var e = this._baseConfig.StaticImage.length,
                        t = this._selectIdx + 1;
                    this._selectIdx = t < e ? t : e - 1, this.Num.string = this._selectIdx + 1 + "/" + this._baseConfig.StaticImage.length, this.SetHeroStaticImage()
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) p.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([y(cc.Label)], t.prototype, "NickName", void 0), i([y(cc.Label)], t.prototype, "HeroName", void 0), i([y(cc.Sprite)], t.prototype, "HeroSprite", void 0), i([y(cc.Button)], t.prototype, "LeftButton", void 0), i([y(cc.Button)], t.prototype, "RightButton", void 0), i([y(cc.Label)], t.prototype, "Num", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components"
    }],
    HeroSkillSound: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "76c7b1eCN1AbLsekkRhbkDw", "HeroSkillSound");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Sounds = [], t
                }
                return r(t, e), i([l(cc.AudioClip)], t.prototype, "Sounds", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    HeroSkinCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1f658A4nJpEC6YhyPHq9W6C", "HeroSkinCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Icon = null, t.Border = null, t.TypeIcon = null, t.LockNode = null, t.CurrentNode = null, t.CurrentLabel = null, t.RemainTime = null, t.Name = null, t.HighLightNode = null, t.NewNode = null, t.RedDotNode = null, t._skinConfig = null, t._idx = 0, t._loadedAssets = [], t._skinId = 0, t.GREEN = new cc.Color(51, 255, 142), t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnCardClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnCardClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    void 0 === n && (n = 0), this._idx = t, this._skinId = e, this._type = n, this._callback = o || null, 0 == n ? this._skinConfig = p.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, e) : 1 == n && (this._skinConfig = p.ConfigDataComponent.Instance.GetConfigById(u.AngelGodAvatar_Config, e)), this._isInit || (this._isInit = !0, this.CurrentLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale()), this.InitNodes(), this.SetSkinBorderAndBg(), this.SetSkinType(), this.SetNameAndTime(), this.SetIcon()
                }, t.prototype.InitNodes = function() {
                    this.LockNode.active = !1, this.CurrentNode.active = !1, this.RedDotNode.active = !1
                }, t.prototype.SetSkinBorderAndBg = function() {
                    var e = "",
                        t = "";
                    this._skinConfig ? (e = "card_border_" + (this._skinConfig.Type + 1), t = "card_bg_" + (this._skinConfig.Type + 1)) : (e = "card_border_1", t = "card_bg_1");
                    var n = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(e),
                        o = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(t);
                    this.Border.spriteFrame = n, this.Bg.spriteFrame = o
                }, t.prototype.SetSkinType = function() {
                    if (this._skinConfig && this._skinConfig.Type) {
                        var e = d.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("skinType_" + this._skinConfig.Type);
                        this.TypeIcon.spriteFrame = e
                    } else this.TypeIcon.node.active = !1
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = 0, 0 == this._type ? (e = this._skinConfig ? this._skinConfig.HeroCard : this._skinId, t = h.BundlePath.HeroCardIcon + "/" + e) : 1 == this._type && (e = this._skinConfig.AngelCard, t = h.BundlePath.AngelCardIcon + "/" + e), [4, f.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this._loadedAssets.push(n), this.Icon.spriteFrame = n, [2]) : (f.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.SetNameAndTime = function() {
                    if (0 == this._type)
                        if (this._skinConfig) {
                            this.Name.node.color = d.UIUtlity.GetLabelColorByQuality(this._skinConfig.Type + 1), this.Name.string = this._skinConfig.Id.ToSkinName();
                            var e = p.DataCenter.Instance.GetDataById(c.HeroSkin_Model, this._skinConfig.Id);
                            e ? e.IsPerpetual ? (this.RemainTime.string = "heroSkin_forever".ToUILocale(), this.RemainTime.node.color = this.GREEN) : e.Time > 0 && e.Time > p.RpcComponent.Instance.ServerTime ? (this.RemainTime.string = y.default.TimeFormat(e.Time - p.RpcComponent.Instance.ServerTime), this.RemainTime.node.color = this.GREEN) : (this.RemainTime.string = "heroSkin_notGet".ToUILocale(), this.RemainTime.node.color = cc.Color.WHITE) : this._skinConfig.HeroId == this._skinConfig.Id ? (this.RemainTime.string = "heroSkin_forever".ToUILocale(), this.RemainTime.node.color = this.GREEN) : (this.RemainTime.string = "heroSkin_notGet".ToUILocale(), this.RemainTime.node.color = cc.Color.WHITE)
                        } else this.Name.node.color = d.UIUtlity.GetLabelColorByQuality(1), this.Name.string = this._skinId.ToHeroTitle(), this.RemainTime.string = "heroSkin_forever".ToUILocale(), this.RemainTime.node.color = this.GREEN;
                    else if (1 == this._type) {
                        this.Name.node.color = d.UIUtlity.GetLabelColorByQuality(this._skinConfig.Type + 1), this.Name.string = this._skinConfig.Id.ToAngelSkinName();
                        var t = p.DataCenter.Instance.GetDataById(c.AngelSkin_Model, this._skinConfig.Id);
                        t && t.IsPerpetual ? (this.RemainTime.string = "heroSkin_forever".ToUILocale(), this.RemainTime.node.color = this.GREEN) : p.ConfigDataComponent.Instance.GetConfigById(u.AngelBase_Config, this._skinConfig.Angel).GodAvatar.includes(this._skinConfig.Id) ? (this.RemainTime.string = "heroSkin_notGet".ToUILocale(), this.RemainTime.node.color = cc.Color.WHITE) : (this.RemainTime.string = "heroSkin_forever".ToUILocale(), this.RemainTime.node.color = this.GREEN)
                    }
                }, t.prototype.SetLock = function(e) {
                    this.LockNode.active = !e
                }, t.prototype.SetCurrent = function(e) {
                    this.CurrentNode.active = e
                }, t.prototype.SetNew = function(e) {
                    this.NewNode.active = e
                }, t.prototype.SetRedDot = function(e) {
                    this.RedDotNode.active = e
                }, t.prototype.HideNameAndTime = function(e) {
                    this.Name.node.active = !1, e || (this.RemainTime.node.parent.active = !1)
                }, t.prototype.SetHighLight = function(e) {
                    this.HighLightNode.active = e
                }, t.prototype.OnCardClick = function() {
                    this._callback ? this._callback() : 0 == this._type ? l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_SKIN_REFRESH, this._idx) : 1 == this._type && l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_ANGEL_SKIN_REFRESH, this._idx)
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) f.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([_(cc.Sprite)], t.prototype, "Bg", void 0), i([_(cc.Sprite)], t.prototype, "Icon", void 0), i([_(cc.Sprite)], t.prototype, "Border", void 0), i([_(cc.Sprite)], t.prototype, "TypeIcon", void 0), i([_(cc.Node)], t.prototype, "LockNode", void 0), i([_(cc.Node)], t.prototype, "CurrentNode", void 0), i([_(cc.Label)], t.prototype, "CurrentLabel", void 0), i([_(cc.Label)], t.prototype, "RemainTime", void 0), i([_(cc.Label)], t.prototype, "Name", void 0), i([_(cc.Node)], t.prototype, "HighLightNode", void 0), i([_(cc.Node)], t.prototype, "NewNode", void 0), i([_(cc.Node)], t.prototype, "RedDotNode", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HeroSkinLevelUpSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a96e2Pg3ctLHZx9GcKuqYBD", "HeroSkinLevelUpSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Components/DataCenter"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.HeroAvatarNode = null, t.LevelTitle = null, t.AttrTitle = null, t.CurLevel = null, t.NextLevel = null, t.AttrContent = null, t._attrItems = [], t
                }
                return r(t, e), t.prototype.NewAttrItem = function(e) {
                    return {
                        Icon: cc.find("TagBg/AttrIcon", e).getComponent(cc.Sprite),
                        AttrLabel: cc.find("TagBg/CommonLongLabelRollComponent/Tag", e).getComponent(cc.Label),
                        AddAttrNumLabel: cc.find("AttrLayout/CurrentValue", e).getComponent(cc.Label)
                    }
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LevelTitle.string = "skin_levelUp".ToUILocale(), this.AttrTitle.string = "skin_attrUp".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._skinId = t[0], this._config = p.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, this._skinId), this._model = d.DataCenter.Instance.GetDataById(c.HeroSkin_Model, this._skinId)
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this, [4, this.LoadDynamicAsset(this._config.UIAvatar + "/Avatar")];
                                case 1:
                                    return t._heroPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), t || (this.SetHeroSkin(), this.SetInfo(), this.SetAttrNodes())
                }, t.prototype.SetHeroSkin = function() {
                    cc.instantiate(this._heroPrefab).parent = this.HeroAvatarNode
                }, t.prototype.SetInfo = function() {
                    this.CurLevel.string = (this._model.Level - 1).toString(), this.NextLevel.string = this._model.Level.toString()
                }, t.prototype.SetAttrNodes = function() {
                    var e = this._config.HeroAttrIds[this._model.Level - 2],
                        t = this._config.HeroAttrIds[this._model.Level - 1],
                        n = p.ConfigDataComponent.Instance.GetConfigById(u.HeroSkinAttrs_Config, e),
                        o = p.ConfigDataComponent.Instance.GetConfigById(u.HeroSkinAttrs_Config, t),
                        r = [],
                        i = {},
                        a = {};
                    for (var s in n.Attrs.forEach(function(e) {
                            i[e.Items[0]] ? i[e.Items[0]] += e.Items[1] : i[e.Items[0]] = e.Items[1]
                        }), o.Attrs.forEach(function(e) {
                            a[e.Items[0]] ? a[e.Items[0]] += e.Items[1] : a[e.Items[0]] = e.Items[1]
                        }), a) {
                        var l = {};
                        i[Number(s)] ? (l.attrId = Number(s), l.attrValue = a[s] - i[Number(s)]) : (l.attrId = Number(s), l.attrValue = a[s]), r.push(l)
                    }
                    for (var c = 0; c < r.length; c++) {
                        var d = this._attrItems[c];
                        if (!d) {
                            var f = this.AttrContent.children[c];
                            f || (f = cc.instantiate(this.AttrContent.children[0])).setParent(this.AttrContent), d = this.NewAttrItem(f), this._attrItems[c] = d
                        }
                        var y = h.default.GetHeroAttribute(r[c].attrId, r[c].attrValue);
                        d.Icon.spriteFrame = y.Icon, d.AttrLabel.string = y.Name, d.AddAttrNumLabel.string = "+" + y.Value
                    }
                }, i([g(cc.Node)], t.prototype, "HeroAvatarNode", void 0), i([g(cc.Label)], t.prototype, "LevelTitle", void 0), i([g(cc.Label)], t.prototype, "AttrTitle", void 0), i([g(cc.Label)], t.prototype, "CurLevel", void 0), i([g(cc.Label)], t.prototype, "NextLevel", void 0), i([g(cc.Node)], t.prototype, "AttrContent", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter"
    }],
    HeroSkinPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b3b044JZidJeo1twEPIXikI", "HeroSkinPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroSkinShowType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../Consts/Consts"),
            h = e("../../Components/Components"),
            f = e("../Components/HeroSkinCardComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../Components/ItemComponent"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../Components/AttrComponent2"),
            b = e("../../Channel/ChannelManager"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property;
        (function(e) {
            e[e.HeroList = 0] = "HeroList", e[e.Handbook = 1] = "Handbook", e[e.Activity = 2] = "Activity", e[e.SkinHandBook = 3] = "SkinHandBook"
        })(l = n.HeroSkinShowType || (n.HeroSkinShowType = {}));
        var A = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Bg = null, t.HeroTitle = null, t.HeroName = null, t.HeroUIContainer = null, t.HeroAvatarContainer = null, t.AttrTitle = null, t.AttrComps = [], t.AttrCompsArrows = [], t.DressButton = null, t.DressLabel = null, t.GetWayButton = null, t.GetWayLabel = null, t.HasDressButton = null, t.HasDressLabel = null, t.ReturnButton = null, t.SkinHandbookButton = null, t.SkinHandbookLabel = null, t.FormPreviewButton = null, t.FormPreviewLabel = null, t.HideButton = null, t.HideButtonIcon = null, t.HideLabel = null, t.RightButtonsNode = null, t.AttrInfoNode = null, t.HaveSkinNode = null, t.HaventSkinNode = null, t.NoAttrLabel = null, t.ActiveLabel = null, t.BottomLevelNode = null, t.BottomLevelZeroNode = null, t.CurLevelLabel = null, t.NextLevelLabel = null, t.BottomLevelLabel = null, t.LevelUpNode = null, t.LevelUpButton = null, t.LevelUpLabel = null, t.MaxLabelNode = null, t.MaxLabel = null, t.LevelUpRedDot = null, t.SliderNode = null, t.CountSlider = null, t.BtnAdd = null, t.BtnReduce = null, t.SkinViewNode = null, t.SkinNameNode = null, t.SkinNameLabel = null, t.MaterialLabel = null, t.MaterialNode = null, t.MaterialEmptyNode = null, t.MaterialEmptyLabel = null, t.SkinContainer = null, t._skinCardPrefab = null, t._heroId = 0, t._heroSid = 0, t._showType = 0, t._skinIds = [], t._selectIdx = 0, t._skinNodes = [], t._selectSkinId = 0, t._isFirstIn = !1, t._isHide = !1, t._descBtnState = 1, t._itemNodes = [], t.InitPosX = -298, t.Offset = 216.8, t.InitAngelFormY = 470, t.MaxMoveDistance = 2500, t._isStartMove = !1, t._formScale = 1, t._isShowForm = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(g.EventKeys.EVENT_SKIN_REFRESH, this.OnRefreshSkin, this), c.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(g.EventKeys.EVENT_SKIN_REFRESH, this.OnRefreshSkin), c.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HeroInfoPanel/HeroSkinCardComponent", cc.Prefab), n = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._skinCardPrefab = e[0], o._itemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.AttrTitle.string = "heroSkin_attr".ToUILocale(), this.DressLabel.string = "heroSkin_dress".ToUILocale(), this.GetWayLabel.string = "Personalise_getway".ToUILocale(), this.HasDressLabel.string = "heroSkin_hasDress".ToUILocale(), this.NoAttrLabel.string = "heroSkin_no_attr".ToUILocale(), this.SkinHandbookLabel.string = "handbook_skin_rule_title".ToUILocale(), this.FormPreviewLabel.string = "angel_form_preview".ToUILocale(), this.ActiveLabel.string = "heroSkin_active".ToUILocale(), this.LevelUpLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), this.MaxLabel.string = "common_max_level".ToUILocale(), this.MaterialLabel.string = "talent_levelUp_consume".ToUILocale(), this.MaterialEmptyLabel.string = "noMaterial".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnBtnClick, this), this.DressButton.node.on("click", this.OnDressButtonClick, this), this.GetWayButton.node.on("click", this.OnGetWayButtonClick, this), this.SkinHandbookButton.node.on("click", this.OnSkinHandbookBtnClick, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.LevelUpButton.node.on("click", this.OnLevelUpButtonClick, this), this.FormPreviewButton.node.on("click", this.OnFormPreviewButtonClick, this), this.BtnAdd.node.on("click", this.OnBtnAddClick, this), this.BtnReduce.node.on("click", this.OnBtnReduceClick, this), this.CountSlider.node.on("slide", this.OnDragOver, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this)
            }, t.prototype.GetHeroSIdByHeroSkinId = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, e),
                    n = h.DataCenter.Instance.GetDataList(u.UserHero_Model).find(function(e) {
                        return e.HeroId == t.HeroId
                    });
                return n ? n.Sid : 0
            }, t.prototype.InitData = function(t) {
                if (e.prototype.InitData.call(this), this._heroId = t[0], this._showType = t[1], this._showType == l.HeroList ? this._heroSid = t[2] : this._showType != l.Activity && this._showType != l.SkinHandBook || (this._selectSkinId = t[2], this._showType == l.SkinHandBook && (this._heroSid = this.GetHeroSIdByHeroSkinId(this._selectSkinId))), this._isFirstIn = !0, this._skinIds = h.ConfigCacheComponent.Instance.GetHeroSkinsByHeroId(this._heroId), this.SortSkins(), this._showType == l.HeroList) {
                    var n = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid);
                    n && n.SkinId ? (o = this._skinIds.indexOf(n.SkinId)) > -1 && (this._selectIdx = o) : (o = this._skinIds.indexOf(this._heroId)) > -1 && (this._selectIdx = o)
                } else if (this._showType == l.Activity || this._showType == l.SkinHandBook) {
                    var o;
                    (o = this._skinIds.indexOf(this._selectSkinId)) > -1 && (this._selectIdx = o)
                }
                this._skinLevelConfigs = h.ConfigDataComponent.Instance.GetArrayConfig(p.HeroSkinLevel_Config), this._angelFormScaleParam = h.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, d.LevelParamType.HeroFormScaleParam), this._showFormIdConfig = h.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, d.LevelParamType.HeroSkinNotSetScaleIds)
            }, t.prototype.DisPlay = function(t) {
                return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return e.prototype.DisPlay.call(this, t), this.SetUIContent(), [2]
                    })
                })
            }, t.prototype.SetUIContent = function() {
                this.InitSkinNodes(), this.InitAttrNodes(), this.SetNameAndTitle(), this.SetAttrs(), this.SetButtons(), this.SetRedDotData(), this.SetSkinCards(), this.SetHeroAvatar(), this.SetHideLabel(), this.SetCultivation()
            }, t.prototype.UpdateContent = function() {
                this.InitAttrNodes(), this.SetNameAndTitle(), this.SetAttrs(), this.SetButtons(), this.BindSkinHandbookBtn(), this.SetSkinCards(), this.SetHeroAvatar(), this.SetHideLabel(), this.SetCultivation()
            }, t.prototype.SortSkins = function() {
                this._skinIds.length > 1 && this._skinIds.sort(function(e, t) {
                    var n = this.CheckIsGet(e),
                        o = this.CheckIsGet(t);
                    return n && !o ? -1 : !n && o ? 1 : t - e
                }.bind(this))
            }, t.prototype.InitSkinNodes = function() {
                this._skinNodes.forEach(function(e) {
                    e.active = !1
                })
            }, t.prototype.InitAttrNodes = function() {
                this.AttrComps.forEach(function(e) {
                    e.node.active = !1
                }), this._itemNodes.forEach(function(e) {
                    e.active = !1
                })
            }, t.prototype.SetNameAndTitle = function() {
                var e = b.default.Instance.IsVNChannel();
                this.HeroName.node.active = !e, e || (this.HeroName.string = this._heroId.ToHeroName()), this.HeroTitle.string = e ? this._heroId.ToHeroName() : this._heroId.ToHeroTitle()
            }, t.prototype.SetButtons = function() {
                var e = this._skinIds[this._selectIdx];
                if (this._skinIsGet = this.CheckIsGet(e), this._showType == l.HeroList || this._showType == l.SkinHandBook) {
                    var t = 0;
                    if (this._skinIsGet) {
                        var n = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid);
                        t = n && n.SkinId ? n.SkinId == e ? 2 : 1 : this._heroId == e ? 2 : 1
                    } else t = 0;
                    this.DressButton.node.active = 1 == t, this.GetWayButton.node.active = 0 == t && this._heroId != e, this.HasDressButton.node.active = 2 == t
                } else this.DressButton.node.active = !1, this.GetWayButton.node.active = !1, this.HasDressButton.node.active = !1;
                this.LevelUpNode.x = this.DressButton.node.active || this.HasDressButton.node.active ? -169 : 0, this.SkinHandbookButton.node.active = !1, I.default.Instance.IsGameModuleOpen(d.GameModuleType.SkinPersonalityPic) && I.default.Instance.IsGameModuleUnlock(d.GameModuleType.SkinPersonalityPic)[0] && (this.SkinHandbookButton.node.active = !0), this._showFormIdConfig && (this.FormPreviewButton.node.active = !this._showFormIdConfig.Data.includes(e))
            }, t.prototype.SetRedDotData = function() {
                this.BindSkinHandbookBtn()
            }, t.prototype.BindSkinHandbookBtn = function() {
                m.RedDotManager.Instance.BindInstance(this.SkinHandbookButton.node, m.RedDotManager.Instance.InstanceRedDot.SkinHandbookButton, {
                    Value1: this._skinIds[this._selectIdx]
                })
            }, t.prototype.SetSkinCards = function() {
                for (var e = 0; e < this._skinIds.length; e++) {
                    if (!this._skinNodes[e]) {
                        var t = cc.instantiate(this._skinCardPrefab);
                        t.parent = this.SkinContainer, this._skinNodes[e] = t
                    }
                    this._skinNodes[e].active = !0;
                    var n = this._skinNodes[e].getComponent(f.default);
                    n.Init(this._skinIds[e], e), n.HideNameAndTime(!0);
                    var o = h.DataCenter.Instance.GetDataById(u.HeroSkin_Model, this._skinIds[e]);
                    if (this._showType == l.HeroList || this._showType == l.SkinHandBook) {
                        var r = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid),
                            i = !1;
                        r && r.SkinId ? (i = r.SkinId == this._skinIds[e], n.SetCurrent(i)) : (i = this._heroId == this._skinIds[e], n.SetCurrent(i))
                    } else n.SetCurrent(!1);
                    n.SetHighLight(this._selectIdx == e), o ? o.IsPerpetual || o.Time > h.RpcComponent.Instance.ServerTime ? n.SetLock(!0) : n.SetLock(!1) : this._heroId == this._skinIds[e] ? n.SetLock(!0) : n.SetLock(!1)
                }
            }, t.prototype.SetAttrs = function() {
                var e = this,
                    t = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, this._skinIds[this._selectIdx]);
                if (t) {
                    this.SkinNameLabel.string = t.Id.ToSkinName(), this.SkinNameNode.active = !0;
                    var n = h.DataCenter.Instance.GetDataById(u.HeroSkin_Model, this._skinIds[this._selectIdx]),
                        o = n && n.Level > 1 ? n.Level : 1,
                        r = n && n.Level == this._skinLevelConfigs.length,
                        i = t.HeroAttrIds[o - 1],
                        a = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkinAttrs_Config, i);
                    if (a.Attrs && a.Attrs.length > 0)
                        if (!r && n && n.IsPerpetual) {
                            var s = o + 1,
                                l = t.HeroAttrIds[s - 1],
                                c = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkinAttrs_Config, l);
                            c.Attrs && c.Attrs.length > 0 && c.Attrs.forEach(function(t, n) {
                                e.AttrComps[n].node.active = !0;
                                var o = t.Items[1];
                                e.AttrComps[n].Init(a.Attrs[n].Items[0], a.Attrs[n].Items[1], o), e.AttrComps[n].SetCurAttrX(-154), e.AttrCompsArrows[n].active = !0
                            })
                        } else a.Attrs.forEach(function(t, n) {
                            e.AttrComps[n].node.active = !0, e.AttrComps[n].Init(t.Items[0], t.Items[1]), e.AttrComps[n].SetCurAttrX(0), e.AttrCompsArrows[n].active = !1
                        })
                } else this.SkinNameNode.active = !1
            }, t.prototype.SetHeroAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, f, y, g, m, _, C, v, b, S;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return n = 0, o = [], n = this._selectIdx, o = this._skinIds, i = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, this._skinIds[this._selectIdx]), l = "", f = "", i ? (l = i.UIAvatar, f = i.Model, r = !0) : (a = h.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._heroId), l = a.UIAvatar, f = a.Model, r = !1), y = this.LoadDynamicAsset(l + "/Avatar"), g = this.LoadDynamicAsset("Hero_" + f + "/HeroAvatar"), [4, Promise.all([y, g]).then(function(n) {
                                    e = n[0], t = n[1]
                                })];
                            case 1:
                                return s.sent(), n != this._selectIdx && o != this._skinIds ? (c.AssetsManager.Instance.UnloadAsset(e), c.AssetsManager.Instance.UnloadAsset(t), [2]) : this.isValid ? (this.HeroUIContainer.destroyAllChildren(), this.HeroAvatarContainer.destroyAllChildren(), (m = cc.instantiate(e)).opacity = 0, m.setParent(this.HeroUIContainer), !r && a && (b = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid), _ = b && b.StarLevel ? b.StarLevel : a.StarLevel, I.default.Instance.SetHeroAvatarSkin(m, a.Id, _)), (C = cc.instantiate(t)).opacity = 0, C.setParent(this.HeroAvatarContainer), m.getComponent(sp.Skeleton).clearTracks(), m.getComponent(sp.Skeleton).setAnimation(0, d.SkillAnimationType.Standby, !0), cc.tween(m).to(.25, {
                                    opacity: 255
                                }, {
                                    easing: "cubicIn"
                                }).start(), v = C.getComponent(sp.Skeleton), !r && this._heroSid > 0 && (b = h.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid)) && (S = I.default.Instance.GetHeroDefaultStarLevelSkinName(b.HeroId, b.StarLevel), v.setSkin(S)), v.clearTracks(), v.setAnimation(0, d.SkillAnimationType.Standby, !0), cc.tween(C).to(.25, {
                                    opacity: 255
                                }, {
                                    easing: "cubicIn"
                                }).start(), [2]) : (c.AssetsManager.Instance.UnloadAsset(e), c.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.CheckIsGet = function(e) {
                var t = !1;
                if (e == this._heroId) t = !0;
                else {
                    var n = h.DataCenter.Instance.GetDataById(u.HeroSkin_Model, e);
                    n && (n.IsPerpetual || n.Time > h.RpcComponent.Instance.ServerTime) && (t = !0)
                }
                return t
            }, t.prototype.OnReturnBtnClick = function() {
                this._isShowForm ? (this._isShowForm = !1, this.SliderNode.active = !1, this.RightButtonsNode.active = !0, this.HideButton.node.active = !0, this.AttrInfoNode.active = !0, this._formScale = 1, this.HeroUIContainer.scale = this._formScale, this.HeroUIContainer.setPosition(0, this.InitAngelFormY)) : c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnDressButtonClick = function() {
                var e = this,
                    t = new u.Req_Hero_SetSkin,
                    n = this._skinIds[this._selectIdx] == this._heroId ? 0 : this._skinIds[this._selectIdx];
                t.OwnerId = this._heroSid, t.SkinId = n, h.RpcComponent.Instance.Call(t, function() {
                    e.SetButtons(), e.SetSkinCards()
                })
            }, t.prototype.OnGetWayButtonClick = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, this._skinIds[this._selectIdx]);
                e && e.ItemId && c.UIManager.Instance.ShowUIPanel(y.PanelConfig.ItemGetWayPanel.Path, e.ItemId)
            }, t.prototype.OnSkinHandbookBtnClick = function() {
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CollectionHandbookPanel.Path, 1, this._skinIds[this._selectIdx])
            }, t.prototype.OnHideButtonClick = function() {
                this._isHide ? this._isHide = !1 : this._isHide = !0, this.SetHideLabel()
            }, t.prototype.CheckItemIsEnough = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, e),
                    n = h.DataCenter.Instance.GetDataById(u.HeroSkin_Model, e);
                if (n && n.Level > 0 && n.Level < this._skinLevelConfigs.length) {
                    for (var o = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkinLevel_Config, n.Level), r = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkinLevel_Config, n.Level + 1), i = 0; i < r.Cost.length; i++) {
                        var a = r.Cost[i];
                        switch (a.Items[0]) {
                            case 1:
                                var s = t.Transform[0].Items[0],
                                    l = a.Items[1] - o.Cost[0].Items[1];
                                if (h.DataCenter.Instance.GetItemCount(s) < l) return !1
                        }
                    }
                    return !0
                }
                return !1
            }, t.prototype.OnLevelUpButtonClick = function() {
                var e = this,
                    t = this._skinIds[this._selectIdx],
                    n = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, t),
                    o = h.DataCenter.Instance.GetDataById(u.HeroSkin_Model, t);
                if (o && o.Level == this._skinLevelConfigs.length) C.UIUtlity.ShowFloatingHint("common_max_level".ToUILocale());
                else {
                    for (var r = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkinLevel_Config, o.Level), i = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkinLevel_Config, o.Level + 1), a = 0; a < i.Cost.length; a++) {
                        var s = i.Cost[a];
                        switch (s.Items[0]) {
                            case 1:
                                var l = n.Transform[0].Items[0],
                                    f = s.Items[1] - r.Cost[0].Items[1];
                                if (h.DataCenter.Instance.GetItemCount(l) < f) return C.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(l.ToItemName())), void c.UIManager.Instance.ShowUIPanel(y.PanelConfig.ItemGetWayPanel.Path, l)
                        }
                    }
                    var g = h.DataCenter.Instance.GetIntData(d.UserDataKey.Power),
                        m = new u.Req_Hero_UpgradeHeroSkin;
                    m.Id = t, m.Level = o.Level + 1, h.RpcComponent.Instance.Call(m, function() {
                        e.SetAttrs(), e.SetButtons(), e.SetCultivation(), c.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroSkinLevelUpSuccessPanel.Path, t);
                        var n = h.DataCenter.Instance.GetIntData(d.UserDataKey.Power);
                        n > g && c.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattlePowerChangePanel.Path, g, n)
                    })
                }
            }, t.prototype.SetHideLabel = function() {
                this.HideButtonIcon.spriteFrame = C.UIUtlity.COMMON_ATLAS5.getSpriteFrame(this._isHide ? "function_showUI" : "function_hideUI"), this.HideLabel.string = this._isHide ? "personalityCall_show".ToUILocale() : "personalityCall_hide".ToUILocale(), this.RightButtonsNode.active = !this._isHide;
                var e = !0,
                    t = h.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, d.LevelParamType.MainSceneHeroNoMaskIds).Data,
                    n = this._skinIds[this._selectIdx];
                n == this._heroId ? -1 == t.indexOf(this._heroId) && (e = !this._isHide) : -1 == t.indexOf(n) && (e = !this._isHide), this.AttrInfoNode.active = e
            }, t.prototype.SetCultivation = function() {
                var e = I.default.Instance.IsGameModuleUnlock(d.GameModuleType.UpgradeHeroSkin)[0];
                this.LevelUpNode.active = e;
                var t = this._skinIds[this._selectIdx],
                    n = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, t),
                    o = h.DataCenter.Instance.GetDataById(u.HeroSkin_Model, t),
                    r = o && o.Level == this._skinLevelConfigs.length;
                this.HaveSkinNode.active = !!n, this.HaventSkinNode.active = !n, this.BottomLevelNode.active = e && this._skinIsGet && n && !r, this.BottomLevelZeroNode.active = !this.BottomLevelNode.active && !r, this.BottomLevelLabel.node.active = e && this._skinIsGet && n && r, this.MaterialNode.active = !!n, this.LevelUpButton.node.active = e && this._skinIsGet && n && !r, this.MaxLabelNode.active = e && this._skinIsGet && n && r, this.GetWayButton.node.x = e && this._skinIsGet ? 166 : 0, this.DressButton.node.x = e && n && !r ? 166 : 0, this.HasDressButton.node.x = e && n && !r ? 166 : 0, this.LevelUpRedDot.active = !1, this.MaterialEmptyNode.active = !n, n && this.SetMaterialNodes(o, n, r), e && this._skinIsGet && n && (r ? this.BottomLevelLabel.string = "Lv.{0}".Fmt(o.Level) : (this.CurLevelLabel.string = "Lv.{0}".Fmt(o.Level), this.NextLevelLabel.string = "Lv.{0}".Fmt(o.Level + 1), this.LevelUpRedDot.active = this.CheckItemIsEnough(t)))
            }, t.prototype.SetMaterialNodes = function(e, t, n) {
                var o, r = this;
                o = e ? e.Level : 1;
                var i = h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkinLevel_Config, o);
                if (n) {
                    if (!this._itemNodes[0]) {
                        var a = cc.instantiate(this._itemPrefab);
                        a.parent = this.MaterialNode, this._itemNodes[0] = a
                    }
                    this._itemNodes[0].active = !0, this._itemNodes[0].getComponent(_.ItemComponent).Init({
                        ItemId: t.Transform[0].Items[0]
                    })
                } else h.ConfigDataComponent.Instance.GetConfigById(p.HeroSkinLevel_Config, o + 1).Cost.forEach(function(e, n) {
                    if (!r._itemNodes[n]) {
                        var o = cc.instantiate(r._itemPrefab);
                        o.parent = r.MaterialNode, r._itemNodes[n] = o
                    }
                    r._itemNodes[n].active = !0;
                    var a = r._itemNodes[n].getComponent(_.ItemComponent);
                    switch (e.Items[0]) {
                        case 1:
                            var s = t.Transform[0].Items[0],
                                l = e.Items[1] - i.Cost[0].Items[1],
                                c = h.DataCenter.Instance.GetItemCount(s),
                                u = c > l ? l : c;
                            a.Init({
                                ItemId: s,
                                Count: l
                            }), a.SetProgressBar(u, l, !1, 1.25, 1.25, -117.5, 178), a.ItemProgressLabel.fontSize = 26
                    }
                })
            }, t.prototype.OnRefreshSkin = function(e) {
                this._selectIdx != e && (this._selectIdx = e, this.UpdateContent())
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.MaterialNode.children.indexOf(t) && C.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
            }, t.prototype.OnFormPreviewButtonClick = function() {
                this._isShowForm = !0, this.SliderNode.active = !0, this.RightButtonsNode.active = !1, this.HideButton.node.active = !1, this.AttrInfoNode.active = !1, this.CountSlider.progress = .5
            }, t.prototype.OnDragOver = function() {
                if (this._isShowForm) {
                    var e = 1 + this._angelFormScaleParam.Data[0],
                        t = 1 / (1 + this._angelFormScaleParam.Data[1]),
                        n = e - 1,
                        o = 1 - t,
                        r = this.CountSlider.progress;
                    this._formScale = r > .5 ? 1 + n * (r - .5) / .5 : t + o * r / .5, this.HeroUIContainer.scale = this._formScale
                }
            }, t.prototype.OnBtnAddClick = function() {
                var e = 1 + this._angelFormScaleParam.Data[0],
                    t = 1 / (1 + this._angelFormScaleParam.Data[1]),
                    n = e - 1,
                    o = 1 - t,
                    r = this.CountSlider.progress + .05;
                this.CountSlider.progress < .5 ? r >= .5 ? (this.CountSlider.progress = .5, this._formScale = 1) : (this.CountSlider.progress = r, this._formScale = t + o * r / .5) : r > 1 ? (this.CountSlider.progress = 1, this._formScale = e) : (this.CountSlider.progress = r, this._formScale = 1 + n * ((r - .5) / .5)), this.HeroUIContainer.scale = this._formScale
            }, t.prototype.OnBtnReduceClick = function() {
                var e = 1 + this._angelFormScaleParam.Data[0],
                    t = 1 / (1 + this._angelFormScaleParam.Data[1]),
                    n = e - 1,
                    o = 1 - t,
                    r = this.CountSlider.progress - .05;
                this.CountSlider.progress > .5 ? r <= .5 ? (this.CountSlider.progress = .5, this._formScale = 1) : (this.CountSlider.progress = r, this._formScale = 1 + n * ((r - .5) / .5)) : r <= 0 ? (this.CountSlider.progress = 0, this._formScale = t) : (this.CountSlider.progress = r, this._formScale = t + o * r / .5), this.HeroUIContainer.scale = this._formScale
            }, t.prototype.StarTouchEvent = function() {
                this._isStartMove = !0
            }, t.prototype.StarMoveEvent = function(e) {
                if (this._isStartMove && this._isShowForm) {
                    var t = e.getDelta(),
                        n = this.HeroUIContainer.y + t.y,
                        o = this.HeroUIContainer.x + t.x;
                    if (o > this.MaxMoveDistance || n > this.InitAngelFormY + this.MaxMoveDistance) return;
                    if (o < -this.MaxMoveDistance || n < this.InitAngelFormY - this.MaxMoveDistance) return;
                    this.HeroUIContainer.setPosition(o, n)
                }
            }, t.prototype.TouchEndEvent = function() {
                this._isStartMove = !1
            }, i([P(cc.Sprite)], t.prototype, "Bg", void 0), i([P(cc.Label)], t.prototype, "HeroTitle", void 0), i([P(cc.Label)], t.prototype, "HeroName", void 0), i([P(cc.Node)], t.prototype, "HeroUIContainer", void 0), i([P(cc.Node)], t.prototype, "HeroAvatarContainer", void 0), i([P(cc.Label)], t.prototype, "AttrTitle", void 0), i([P(v.default)], t.prototype, "AttrComps", void 0), i([P(cc.Node)], t.prototype, "AttrCompsArrows", void 0), i([P(cc.Button)], t.prototype, "DressButton", void 0), i([P(cc.Label)], t.prototype, "DressLabel", void 0), i([P(cc.Button)], t.prototype, "GetWayButton", void 0), i([P(cc.Label)], t.prototype, "GetWayLabel", void 0), i([P(cc.Button)], t.prototype, "HasDressButton", void 0), i([P(cc.Label)], t.prototype, "HasDressLabel", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([P(cc.Button)], t.prototype, "SkinHandbookButton", void 0), i([P(cc.Label)], t.prototype, "SkinHandbookLabel", void 0), i([P(cc.Button)], t.prototype, "FormPreviewButton", void 0), i([P(cc.Label)], t.prototype, "FormPreviewLabel", void 0), i([P(cc.Button)], t.prototype, "HideButton", void 0), i([P(cc.Sprite)], t.prototype, "HideButtonIcon", void 0), i([P(cc.Label)], t.prototype, "HideLabel", void 0), i([P(cc.Node)], t.prototype, "RightButtonsNode", void 0), i([P(cc.Node)], t.prototype, "AttrInfoNode", void 0), i([P(cc.Node)], t.prototype, "HaveSkinNode", void 0), i([P(cc.Node)], t.prototype, "HaventSkinNode", void 0), i([P(cc.Label)], t.prototype, "NoAttrLabel", void 0), i([P(cc.Label)], t.prototype, "ActiveLabel", void 0), i([P(cc.Node)], t.prototype, "BottomLevelNode", void 0), i([P(cc.Node)], t.prototype, "BottomLevelZeroNode", void 0), i([P(cc.Label)], t.prototype, "CurLevelLabel", void 0), i([P(cc.Label)], t.prototype, "NextLevelLabel", void 0), i([P(cc.Label)], t.prototype, "BottomLevelLabel", void 0), i([P(cc.Node)], t.prototype, "LevelUpNode", void 0), i([P(cc.Button)], t.prototype, "LevelUpButton", void 0), i([P(cc.Label)], t.prototype, "LevelUpLabel", void 0), i([P(cc.Node)], t.prototype, "MaxLabelNode", void 0), i([P(cc.Label)], t.prototype, "MaxLabel", void 0), i([P(cc.Node)], t.prototype, "LevelUpRedDot", void 0), i([P(cc.Node)], t.prototype, "SliderNode", void 0), i([P(cc.Slider)], t.prototype, "CountSlider", void 0), i([P(cc.Button)], t.prototype, "BtnAdd", void 0), i([P(cc.Button)], t.prototype, "BtnReduce", void 0), i([P(cc.Node)], t.prototype, "SkinViewNode", void 0), i([P(cc.Node)], t.prototype, "SkinNameNode", void 0), i([P(cc.Label)], t.prototype, "SkinNameLabel", void 0), i([P(cc.Label)], t.prototype, "MaterialLabel", void 0), i([P(cc.Node)], t.prototype, "MaterialNode", void 0), i([P(cc.Node)], t.prototype, "MaterialEmptyNode", void 0), i([P(cc.Label)], t.prototype, "MaterialEmptyLabel", void 0), i([P(cc.Node)], t.prototype, "SkinContainer", void 0), i([w], t)
        }(c.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/HeroSkinCardComponent": "HeroSkinCardComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroSublimingGoBackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "012ee8RJP1IA5lyC+VPLQt0", "HeroSublimingGoBackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.SublimingGoBackType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.Hero = 0] = "Hero", e[e.Angel = 1] = "Angel"
        })(l = n.SublimingGoBackType || (n.SublimingGoBackType = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.LevelTitle = null, t.Level = null, t.SaveHeroTitle = null, t.HeroItemNode = null, t.HeroCount = null, t.Tip = null, t.GoBackButton = null, t.GoBackButtonLabel = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                            case 1:
                                return t._itemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "HeroHandbook_Subliming_Go_Back".ToUILocale(), this.LevelTitle.string = "HeroHandbook_Subliming_Level".ToUILocale(), this.GoBackButtonLabel.string = "HeroHandbook_Subliming_Back".ToUILocale(), this.GoBackButton.node.on("click", this.OnGoBackButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._goBackType = t[0], this._selectId = t[1]
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.SetLevelAndCount(), this.SetMaterial())
            }, t.prototype.SetMaterial = function() {
                var e = cc.instantiate(this._itemPrefab);
                e.setParent(this.HeroItemNode);
                var t = e.getComponent(f.ItemComponent);
                switch (this._goBackType) {
                    case l.Hero:
                        t.Init({
                            ItemId: this._heroBaseConfig.Id,
                            Star: this._heroBaseConfig.StarLevel
                        }, f.ItemComponentType.HeroInfo);
                        break;
                    case l.Angel:
                        t.Init({
                            ItemId: this._angelBaseConfig.AngelSoulId
                        })
                }
            }, t.prototype.SetLevelAndCount = function() {
                switch (this._goBackType) {
                    case l.Hero:
                        this.SaveHeroTitle.string = "HeroHandbook_Subliming_Save_Hero".ToUILocale(), this.Tip.string = "HeroHandbook_Subliming_Tip".ToUILocale(), this._heroBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._selectId), this._selectHeroInfoModel = d.DataCenter.Instance.GetDataById(p.HeroInfo_Model, this._selectId), this.Level.string = "Lv." + this._selectHeroInfoModel.HandbookCount;
                        var e = this._heroBaseConfig.Sublime[0] + this._selectHeroInfoModel.HandbookCount - 1,
                            t = d.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookLevel_Config, e);
                        this.HeroCount.string = t.UseCount.toString();
                        break;
                    case l.Angel:
                        this.SaveHeroTitle.string = "AngelHandbook_Subliming_Save_Angel".ToUILocale(), this.Tip.string = "AngelHandbook_Subliming_Tip".ToUILocale(), this._angelBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(u.AngelBase_Config, this._selectId), this._selectAngelModel = d.DataCenter.Instance.GetDataById(p.UserAngel_Model, this._selectId), this.Level.string = "Lv." + this._selectAngelModel.HandBookSublimate;
                        var n = d.ConfigDataComponent.Instance.GetConfigById(u.AngelHandBookSublimate_Config, this._selectId),
                            o = this._selectAngelModel.HandBookSublimate ? n.Cost[this._selectAngelModel.HandBookSublimate - 1] : 0;
                        this.HeroCount.string = o.toString()
                }
            }, t.prototype.OnGoBackButtonClick = function() {
                switch (this._goBackType) {
                    case l.Hero:
                        if (!g.default.Instance.IsCanGetNewHero(this._selectHeroInfoModel.HandbookCount)) {
                            var e = g.default.Instance.GetHeroCountLimit(),
                                t = "HeroHandbook_Subliming_HeroCount_Limit".ToUILocale().Fmt(e);
                            return void y.UIUtlity.ShowHintPanel("", t, "", null, "go_to_treat".ToUILocale(), function() {
                                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroPalacePanel.Path, 1)
                            })
                        }(n = new p.Req_Hero_HandbookWithdraw).HeroId = this._selectId, d.RpcComponent.Instance.Call(n, function(e) {
                            y.UIUtlity.ShwDisplayRewardPanel(e.Rewards), c.UIManager.Instance.BackUIPanel()
                        });
                        break;
                    case l.Angel:
                        var n;
                        (n = new p.Req_Item_AngelHandbookWithdraw).Id = this._selectId, d.RpcComponent.Instance.Call(n, function(e) {
                            y.UIUtlity.ShwDisplayRewardPanel(e.Rewards), c.UIManager.Instance.BackUIPanel()
                        })
                }
            }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "LevelTitle", void 0), i([_(cc.Label)], t.prototype, "Level", void 0), i([_(cc.Label)], t.prototype, "SaveHeroTitle", void 0), i([_(cc.Node)], t.prototype, "HeroItemNode", void 0), i([_(cc.Label)], t.prototype, "HeroCount", void 0), i([_(cc.Label)], t.prototype, "Tip", void 0), i([_(cc.Button)], t.prototype, "GoBackButton", void 0), i([_(cc.Label)], t.prototype, "GoBackButtonLabel", void 0), i([I], t)
        }(c.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroSublimingInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3e526jzByJFwrKhhF8vgVc1", "HeroSublimingInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../Components/DataCenter"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Components/AsyncLayout"),
            m = e("../Components/HeroSublimingStageAttrComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.HeroNode = null, t.HeroNameLabel = null, t.LevelTag = null, t.LevelLabel = null, t.SmallTitleLabel1 = null, t.SmallTitleLabel2 = null, t.AttrContainer = null, t.AsyncLayout = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("HeroCollectionHandbookPanel/HeroSublimingStageAttrComponent", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._stageAttrPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "HeroHandbook_Subliming_Info".ToUILocale(), this.LevelTag.string = "allianceBase_levelSimple".ToUILocale(), this.SmallTitleLabel1.string = "HeroHandbook_Subliming_Info1".ToUILocale(), this.SmallTitleLabel2.string = "HeroHandbook_Subliming_Info2".ToUILocale(), this.AsyncLayout.Init(this._stageAttrPrefab, this.OnInitializeItem.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroModel = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetHeroInfo(), this.SetAttrInfo()
                }, t.prototype.SetHeroInfo = function() {
                    if (this.HeroNameLabel.string = this._heroModel.HeroId.ToHeroName(), !this._heroItemCompnent) {
                        var e = cc.instantiate(this._itemPrefab);
                        this.HeroNode.addChild(e), this._heroItemCompnent = e.getComponent(d.ItemComponent)
                    }
                    this._heroItemCompnent.Init(this._heroModel, d.ItemComponentType.HeroInfo);
                    var t = h.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._heroModel.HeroId);
                    this.LevelLabel.string = "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(t.HandbookCount)
                }, t.prototype.SetAttrInfo = function() {
                    this._heroInfoModel = h.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._heroModel.HeroId), this._heroBaseConfig = f.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, this._heroModel.HeroId);
                    var e = [];
                    if (this._heroInfoModel && this._heroInfoModel.HandbookCount > 0) {
                        var t = this._heroBaseConfig.Sublime[0] + this._heroInfoModel.HandbookCount - 1,
                            n = f.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookLevel_Config, t);
                        e = n.Attrs
                    } else t = this._heroBaseConfig.Sublime[0], (n = f.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookLevel_Config, t)).Attrs.forEach(function(t) {
                        e.push({
                            Items: [t.Items[0], 0]
                        })
                    });
                    this.AttrContainer.children.forEach(function(t, n) {
                        if (e[n]) {
                            var o = y.default.GetHeroAttribute(e[n].Items[0], e[n].Items[1]);
                            t.getChildByName("Icon").getComponent(cc.Sprite).spriteFrame = o.Icon, t.getChildByName("Name").getComponent(cc.Label).string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + o.Name, t.getChildByName("Value").getComponent(cc.Label).string = "+" + o.Value
                        }
                    }), this._levelConfigArr = [];
                    for (var o = 0, r = this._heroBaseConfig.Sublime[0]; r <= this._heroBaseConfig.Sublime[1]; r++) {
                        o++;
                        var i = f.ConfigDataComponent.Instance.GetConfigById(u.HeroHandbookLevel_Config, r);
                        i && i.StageAttrs && i.StageAttrs[0] && this._levelConfigArr.push({
                            Config: i,
                            Level: o
                        })
                    }
                    this.AsyncLayout.RenderLayout(this._levelConfigArr.length)
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(m.default);
                    if (n) {
                        for (var o = this._levelConfigArr[t].Config.StageAttrs[0].Items, r = t - 1; r >= 0; r--)
                            for (var i = 0; i < this._levelConfigArr[r].Config.StageAttrs.length; i++)
                                if (this._levelConfigArr[r].Config.StageAttrs[i].Items[0] == o[0]) return void n.Init(this._heroInfoModel.HandbookCount, this._levelConfigArr[t].Level, o[0], o[1] - this._levelConfigArr[r].Config.StageAttrs[i].Items[1]);
                        n.Init(this._heroInfoModel.HandbookCount, this._levelConfigArr[t].Level, o[0], o[1])
                    }
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Node)], t.prototype, "HeroNode", void 0), i([C(cc.Label)], t.prototype, "HeroNameLabel", void 0), i([C(cc.Label)], t.prototype, "LevelTag", void 0), i([C(cc.Label)], t.prototype, "LevelLabel", void 0), i([C(cc.Label)], t.prototype, "SmallTitleLabel1", void 0), i([C(cc.Label)], t.prototype, "SmallTitleLabel2", void 0), i([C(cc.Node)], t.prototype, "AttrContainer", void 0), i([C(g.default)], t.prototype, "AsyncLayout", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/HeroSublimingStageAttrComponent": "HeroSublimingStageAttrComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroSublimingStageAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d951cnfkYpEBY63FIElEFLS", "HeroSublimingStageAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../../Auxiliary/DataUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Dot = null, t.Desc = null, t.Value = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    e && t <= e ? (this.Dot.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarIcon"), this.Desc.node.color = (new cc.Color).fromHEX("#624e3c")) : (this.Dot.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarBg"), this.Desc.node.color = (new cc.Color).fromHEX("#999999")), n && o && (this.Desc.string = "HeroHandbook_Subliming_StageAttr".ToUILocale().Fmt(t, s.default.GetHeroAttributeName(n)), this.Value.string = "+" + s.default.GetHeroAttributeValue(o, n, null, !0))
                }, i([u(cc.Sprite)], t.prototype, "Dot", void 0), i([u(cc.Label)], t.prototype, "Desc", void 0), i([u(cc.Label)], t.prototype, "Value", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HeroSuitGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "18d4eAb/GVKoI9whZcFyZqB", "HeroSuitGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/DataCenter"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Components/RpcComponent"),
            f = e("../Components/BubbleComponent"),
            y = e("../../Components/GlobalConfigComponent"),
            g = e("../../Components/Components"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../Components/ItemComponent"),
            _ = e("./LimitTimePurchasetListItem"),
            C = e("./NodePool"),
            v = e("./CommonTaskTipComponent"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("../Auxiliary/UIUtlity"),
            P = e("../../Components/Components"),
            A = e("../../Channel/ChannelManager"),
            T = e("../Components/CustomLayout"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property,
            O = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.PacksContainer = null, t.HeroNameSprite = null, t.HeroAvatarContainer = null, t.HeroImageContainer = null, t.Title = null, t.HeroDetailLabel = null, t.HeroDetailButton = null, t.HeroSwitchButton = null, t.LeftTimeRichText = null, t.TaskTipComponent = null, t.HeroSelectNode = null, t.PackCustomLayout = null, t.HeroBg = null, t._activityConfig = null, t._heroIdList = [], t._packsIdMap = {}, t._chosenHeroId = -1, t._nowPackList = [], t._activityModel = null, t._packPrefab = null, t._itemPrefab = null, t._bubblePrefab = null, t._heroAvatarPrefab = null, t._heroSid = null, t._changeHeroState = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    b.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), b.Game.EventDispatcher.On(S.EventKeys.EVENT_SELECT_ACTIVITY_HERO, this.OnSelectHero, this), b.Game.EventDispatcher.On(S.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), b.Game.EventDispatcher.On(S.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    b.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), b.Game.EventDispatcher.Off(S.EventKeys.EVENT_SELECT_ACTIVITY_HERO, this.OnSelectHero, this), b.Game.EventDispatcher.Off(S.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), b.Game.EventDispatcher.Off(S.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDestroy = function() {
                    this._heroAvatarPrefab && l.AssetsManager.Instance.UnloadAsset(this._heroAvatarPrefab), this._itemPool && this._itemPool.Clear()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("OpenServerActivity/Private/LimitTimePurchasetListItem", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset(p.BundlePath.BubbleComponent, cc.Prefab), r = this.LoadDynamicAsset("TrialHeroPanel/PNG/HeroBg", cc.SpriteFrame), [4, Promise.all([t, n, o, r])];
                                case 1:
                                    return i = a.sent(), this._packPrefab = i[0], this._itemPrefab = i[1], this._bubblePrefab = i[2], this.HeroBg.spriteFrame = i[3], [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._activityConfig = u.DataCenter.Instance.GetActivityConfigsByActId(n)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), this.RefreshActivityModel(), t ? this._changeHeroState && (w.UIUtlity.ShowFloatingHint("HeroSuit_packListChanged".ToUILocale()), this.SendNowChosenHero(), this._changeHeroState = !1) : (this.RefreshPackIdMap(), this.RefreshAvailableHero(), this._chosenHeroId = this._activityModel.IntValue, this.RefreshPacksListData(), this.PackCustomLayout.Init(this._packPrefab), this.Title.string = this._activityConfig.Common.Title, this.RefreshHeroAvatar(), this.RefreshHeroName(), this.RefreshHeroItem(), this.RefreshBubbleTip(), this.RefreshLeftTime(), this.schedule(this.RefreshLeftTime, 1), this.TaskTipComponent.InitData()), this.SortActivityPacks(), this.RenderCustomLayout()
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t), this.unschedule(this.RefreshLeftTime)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.HeroDetailButton.node.on("click", this.JumpToHeroDetail, this), this.HeroSwitchButton.node.on("click", this.ShowHeroSelectPanel, this), this.HeroDetailLabel.string = "HeroDetail_title".ToUILocale(), this._itemPool = new C.default(this._itemPrefab)
                }, t.prototype.RenderCustomLayout = function() {
                    var e = this._nowPackList.length;
                    this.PackCustomLayout.RenderLayOut(e)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.PackCustomLayout == t && e.forEach(function(e, t) {
                        var o = e.getComponent(_.default),
                            r = n._nowPackList[t],
                            i = n._packsIdMap[r];
                        o.SetName(i.Name, r).SetPurchaseLimit(n.GetPackHaveTimes(r), i.LimitCount, i.LimitType).SetItems(i.Items, n._itemPool).SetPrice(i.Money, i.VipPoint, i.Discount)
                    })
                }, t.prototype.RefreshHeroName = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._chosenHeroId ? [4, this.LoadDynamicAsset(y.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/" + this._chosenHeroId), cc.SpriteFrame)] : [2];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.HeroNameSprite.spriteFrame = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.RefreshHeroAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = g.ConfigDataComponent.Instance.GetConfigById(m.HeroBase_Config, this._chosenHeroId), this._heroSid = e.sid, [4, l.AssetsManager.Instance.LoadAsset(e.UIAvatar + "/Avatar", cc.Prefab)];
                                case 1:
                                    return t = o.sent(), this.isValid && this._heroSid == e.sid ? (l.AssetsManager.Instance.UnloadAsset(this._heroAvatarPrefab), this._heroAvatarPrefab = t, n = cc.instantiate(this._heroAvatarPrefab), this.HeroAvatarContainer.destroyAllChildren(), this.HeroAvatarContainer.addChild(n), d.default.Instance.SetHeroAvatarSkin(n, e.Id, e.StarLevel), [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.RefreshHeroItem = function() {
                    if (this._heroHeadComponent) this.HeroImageContainer.children[0] && (this._heroHeadComponent = this.HeroImageContainer.children[0].getComponent(I.ItemComponent));
                    else {
                        var e = cc.instantiate(this._itemPrefab);
                        this.HeroImageContainer.addChild(e), this._heroHeadComponent = e.getComponent(I.ItemComponent)
                    }
                    this._heroHeadComponent.Init({
                        ItemId: this._chosenHeroId
                    }, I.ItemComponentType.HeroInfo), this._heroHeadComponent.EnableHeroHighLight()
                }, t.prototype.RefreshBubbleTip = function() {
                    var e = cc.instantiate(this._bubblePrefab);
                    this.node.addChild(e);
                    var t = e.getComponent(f.default);
                    t.SetRichText(new cc.Color(234, 89, 0), 300, 40);
                    var n = this.HeroSelectNode.convertToWorldSpaceAR(cc.Vec2.ZERO);
                    n.y += this._heroHeadComponent.node.height * this._heroHeadComponent.node.scaleY / 2, t.SetUI(n, "HeroSuit_BubbleTip".ToUILocale(), f.BubbleAnchorType.Bottom)
                }, t.prototype.RefreshLeftTime = function() {
                    var e = d.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common) - h.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTimeRichText.string = "HeroRisingStarPackagePanel_DeadlineTimeRichText".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.HeroImageContainer.children.indexOf(t) && this.ShowHeroSelectPanel(), "RewardGrid3" == t.parent.name && w.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t)
                }, t.prototype.JumpToHeroDetail = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroHandbookPanel.Path, this._chosenHeroId)
                }, t.prototype.ShowHeroSelectPanel = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroSuitSelectPanel.Path, this._heroIdList, this._activityConfig._id, null, "HeroSuit_SelectPanelTip".ToUILocale(), null)
                }, t.prototype.OnSelectHero = function(e) {
                    e && e === this._chosenHeroId || (this._changeHeroState = !0, this._chosenHeroId = e, this.RefreshPacksListData(), this.RenderCustomLayout(), this.Title.string = this._activityConfig.Common.Title, this.RefreshHeroAvatar(), this.RefreshHeroName(), this.RefreshHeroItem())
                }, t.prototype.OnButtonClick = function(e) {
                    var t = this;
                    if (this._packsIdMap[e].Money) A.default.Instance.Pay(this._packsIdMap[e].Id, this._activityConfig._id);
                    else {
                        var n = new c.Req_Pay_ByDiamond;
                        n.Id = this._packsIdMap[e].Id, n.ActivityId = this._activityConfig._id, P.RpcComponent.Instance.Call(n, function(e) {
                            t.isValid && w.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.RefreshActivityModel = function() {
                    this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id)
                }, t.prototype.RefreshPacksListData = function() {
                    var e = this,
                        t = this._activityConfig.__HeroPack,
                        n = t.findIndex(function(t) {
                            return t.Id === e._chosenHeroId
                        }); - 1 !== n && (this._nowPackList = t[n].Packs)
                }, t.prototype.RefreshAvailableHero = function() {
                    var e = this;
                    this._activityConfig.__HeroPack.forEach(function(t) {
                        e._heroIdList.push(t.Id)
                    })
                }, t.prototype.RefreshPackIdMap = function() {
                    var e = this;
                    this._activityConfig._Packs.forEach(function(t) {
                        e._packsIdMap[t.Id] = t
                    })
                }, t.prototype.SendNowChosenHero = function() {
                    var e = new c.Req_Activity_HeroSuitChange;
                    e.ActivityId = this._activityConfig._id, e.Id = this._chosenHeroId, P.RpcComponent.Instance.Call(e, null)
                }, t.prototype.GetPackHaveTimes = function(e) {
                    var t, n = this._packsIdMap[e];
                    return t = this._activityModel && this._activityModel.Packs && this._activityModel.Packs[n.Id] && this._activityModel.Packs[n.Id].Items ? this._activityModel.Packs[n.Id].Items[0] : 0, n.LimitCount - t
                }, t.prototype.SortActivityPacks = function() {
                    var e, t = this;
                    this._nowPackList.sort(function(n, o) {
                        var r = t._packsIdMap[n],
                            i = t._packsIdMap[o];
                        return e = null == t._activityModel.Packs[n] ? 999 : t._activityModel.Packs[n].Items[0], r.LimitCount - e == 0 ? 1 : (e = null == t._activityModel.Packs[o] ? 999 : t._activityModel.Packs[o].Items[0], i.LimitCount - e == 0 ? -1 : n - o)
                    })
                }, i([k(cc.Node)], t.prototype, "PacksContainer", void 0), i([k(cc.Sprite)], t.prototype, "HeroNameSprite", void 0), i([k(cc.Node)], t.prototype, "HeroAvatarContainer", void 0), i([k(cc.Node)], t.prototype, "HeroImageContainer", void 0), i([k(cc.Label)], t.prototype, "Title", void 0), i([k(cc.Label)], t.prototype, "HeroDetailLabel", void 0), i([k(cc.Button)], t.prototype, "HeroDetailButton", void 0), i([k(cc.Button)], t.prototype, "HeroSwitchButton", void 0), i([k(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([k(v.default)], t.prototype, "TaskTipComponent", void 0), i([k(cc.Node)], t.prototype, "HeroSelectNode", void 0), i([k(T.default)], t.prototype, "PackCustomLayout", void 0), i([k(cc.Sprite)], t.prototype, "HeroBg", void 0), i([L], t)
            }(l.BaseUIPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/BubbleComponent": "BubbleComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent",
        "./LimitTimePurchasetListItem": "LimitTimePurchasetListItem",
        "./NodePool": "NodePool"
    }],
    HeroSuitSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5afe9uwcoZI+LyHLkwJcKzJ", "HeroSuitSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Components/HeroListComponent"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/ItemComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.HeroListComponent = null, t.PanelTitleLabel = null, t.ContentLabel = null, t.ConfirmLabel = null, t.ItemContainer = null, t.ConfirmButton = null, t._heroIdList = [], t._activityId = 0, t._selectedCB = null, t._cancelCB = null, t._floatingHint = "", t._chosenItem = null, t._nowChosenHeroId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ConfirmLabel.string = "ok".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroIdList = t[0], this._activityId = t[1], this.ChangePanelText(t[2], t[3], t[4])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), t || this.InitHeroList()
                }, t.prototype.InitHeroList = function() {
                    var e = [];
                    this._heroIdList.forEach(function(t) {
                        var n = new l.UserHero_Model;
                        n.HeroId = t, e.push(n)
                    });
                    var t = {
                        HeroesData: e,
                        SelectIds: [],
                        LimitElement: 0
                    };
                    this.HeroListComponent.Init(s.HeroListType.Normal, t)
                }, t.prototype.ChangePanelText = function(e, t, n) {
                    this.PanelTitleLabel.string = e || "HeroStarRising_SelectPanelTitle".ToUILocale(), this.ContentLabel.string = t || "HeroStarRising_SelectPanelTip".ToUILocale(), this._floatingHint = n || "noneSelectHeroHint".ToUILocale()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && this.SelectHero(t)
                }, t.prototype.OnConfirmButton = function() {
                    this._nowChosenHeroId ? (c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SELECT_ACTIVITY_HERO, this._nowChosenHeroId), a.UIManager.Instance.BackUIPanel()) : d.UIUtlity.ShowFloatingHint(this._floatingHint)
                }, t.prototype.SelectHero = function(e) {
                    this._chosenItem && this._chosenItem.SetSelectFlagState(!1), this._chosenItem = e.getComponent(p.ItemComponent), e.getComponent(p.ItemComponent).SetSelectFlagState(!0), this._nowChosenHeroId = this._chosenItem.ItemId
                }, i([y(s.default)], t.prototype, "HeroListComponent", void 0), i([y(cc.Label)], t.prototype, "PanelTitleLabel", void 0), i([y(cc.Label)], t.prototype, "ContentLabel", void 0), i([y(cc.Label)], t.prototype, "ConfirmLabel", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Button)], t.prototype, "ConfirmButton", void 0), i([f], t)
            }(a.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeroListComponent": "HeroListComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroTalentPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "37acaUhcgZK6bjD66ZWC79F", "HeroTalentPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.TalentType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../Components/CustomToggle"),
            I = e("../Components/TalentAttrComponent"),
            _ = e("../../../Consts/Consts"),
            C = e("../Components/TalentAttrTagComponent"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../Components/CurrencyBarItem"),
            S = e("../Components/ItemComponent"),
            w = e("../../RedDot/RedDotManager"),
            P = e("../Components/LoadAssetHelper"),
            A = e("../../../Consts/Consts"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property;
        (function(e) {
            e[e.PVE = 0] = "PVE", e[e.PVP = 1] = "PVP"
        })(l = n.TalentType || (n.TalentType = {}));
        var k = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.TalentBg = null, t.AttrNodeArray = [], t.TalentAttrComponent = [], t.SkillIcon = null, t.SkillBorder = null, t.SkillLevel = null, t.Lock = null, t.Tittle = null, t.RuleBtn = null, t.TotalLevelLabel = null, t.Toggles = [], t.SkillBarTagName = null, t.SkillLevelNow = null, t.SkillLevelNext = null, t.ArrowNode = null, t.SkillMaxLevel = null, t.AttrContainer = null, t.ItemContainer = null, t.ReachMaxLevelLabel = null, t.CurrencyBar = null, t.ActivateBtn = null, t.ActivateBtnLabel = null, t.ReturnBtn = null, t.ShowSkillLevel = null, t.InfoBottom = null, t.ResetButton = null, t.ResetButtonLabel = null, t.ResonanceButton = null, t.ResonanceButtonLabel = null, t.QuickLevelUpBtn = null, t.QuickLevelUpBtnLabel = null, t._lightEffectPrefab = [], t._lightEffectComponentArr = [], t._lightEffectArr = [], t._talentType = l.PVE, t.ATTR_NUMBER = 6, t.PVELEVEL_CONSTNUMBER = 1e3, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial, this), c.Game.EventDispatcher.On(y.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickHeroMaterial), c.Game.EventDispatcher.Off(y.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, c = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("HeroInfoPanel/Components/TalentAttrComponent", cc.Prefab), o = this.LoadDynamicAsset("HeroInfoPanel/PNG/Talent", cc.SpriteAtlas), r = this.LoadDynamicAsset("HeroInfoPanel/Components/TalentAttrTagComponent", cc.Prefab), i = this.LoadDynamicAsset("HeroInfoPanel/Spine/LightEffect" + l.PVE, cc.Prefab), a = this.LoadDynamicAsset("HeroInfoPanel/Spine/LightEffect" + l.PVP, cc.Prefab), [4, Promise.all([t, n, o, r, i, a]).then(function(e) {
                                    c._itemPrefab = e[0], c._attrPrefab = e[1], c._talentIconAtlas = e[2], c._attrTagPrefab = e[3], c._lightEffectPrefab[l.PVE] = e[4], c._lightEffectPrefab[l.PVP] = e[5]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Tittle.string = "HeroTalent_Tittle".ToUILocale(), this.ActivateBtnLabel.string = "allianceTalent_active".ToUILocale(), this.SkillBarTagName.string = "HeroTalent_SkillLevel".ToUILocale(), this.ResetButtonLabel.string = "HeroTalent_Reset".ToUILocale(), this.ResonanceButtonLabel.string = "HeroTalent_Resonance".ToUILocale(), this.QuickLevelUpBtnLabel.string = "talent_levelUp_btn".ToUILocale(), this.ActivateBtn.node.on("click", this.OnClickActivateBtn, this), this.RuleBtn.node.on("click", this.OnClickRuleBtn, this), this.ReturnBtn.node.on("click", this.OnClickReturnBtn, this), this.SkillIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnClickSkillNode, this), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.ResonanceButton.node.on("click", this.OnResonanceButtonClick, this), this.QuickLevelUpBtn.node.on("click", this.OnQuickLevelUpBtnClick, this), this._attrComponentArr = this.TalentAttrComponent, this._attrTagComponentArr = [], this._itemComponent = [], this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(P.default))
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._heroSid = t[0]
            }, t.prototype.DisPlay = function(t) {
                var n;
                e.prototype.DisPlay.call(this, t), t ? this._userHeroModel = d.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid) : (this._userHeroModel = d.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid), this._heroBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._userHeroModel.HeroId), this._talentSkillConfig = d.ConfigDataComponent.Instance.GetConfigById(p.HeroTalentSkill_Config, this._heroBaseConfig.Career), this.InitToggles(), this._pvpUnlockLevel = d.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("HeroTalentPVPUnlock")), n = !(this._userHeroModel.PVETalentLevel < this._pvpUnlockLevel), this.Toggles[l.PVP].SetInteractable(n, "HeroTalent_PvpUnlock".ToUILocale().Fmt(this._pvpUnlockLevel)), this.RefreshView(), this.BindRedDot()
            }, t.prototype.InitToggles = function() {
                for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].node.on("toggle", this.OnSwitchTab, this), this.Toggles[e].Init(("HeroTalent_Toggle_" + e).ToUILocale());
                this.Toggles[this._talentType].isChecked = !0
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                this._talentType != t && (this._lightEffectArr[this._talentType] && (this._lightEffectArr[this._talentType].active = !1), this._talentType = t, w.RedDotManager.Instance.BindInstance(this.ActivateBtn.node, w.RedDotManager.Instance.InstanceRedDot.HeroTalentActivateNode, {
                    Value1: this._heroSid,
                    extra: this._talentType
                }), this.RefreshView())
            }, t.prototype.RefreshView = function() {
                switch (this._talentType) {
                    case l.PVE:
                        this.TalentBg.spriteFrame = this._talentIconAtlas.getSpriteFrame("TalentPve"), this.TotalLevelLabel.string = "HeroTalent_Level".ToUILocale().Fmt(this._userHeroModel.PVETalentLevel), this._notLightTalentLevel = Math.floor(this._userHeroModel.PVETalentLevel / this.AttrNodeArray.length), this._isLightingNumber = this._userHeroModel.PVETalentLevel % this.AttrNodeArray.length, this.DisplayTalentView(this._notLightTalentLevel, this._talentSkillConfig.PVEEffects, this._userHeroModel.PVETalentLevel), this._isReachMaxLevel ? this.ReachMaxLevelLabel.string = "HeroTalent_Reach_MaxLevel".ToUILocale() : this.ConfigConsumeItems(this._itemConsumeConfig.PVECommonItems, this._itemConsumeConfig.PVEHeroItems);
                        break;
                    case l.PVP:
                        this.TalentBg.spriteFrame = this._talentIconAtlas.getSpriteFrame("TalentPve"), this.TotalLevelLabel.string = "HeroTalent_Level".ToUILocale().Fmt(this._userHeroModel.PVPTalentLevel), this._notLightTalentLevel = Math.floor(this._userHeroModel.PVPTalentLevel / this.AttrNodeArray.length), this._isLightingNumber = this._userHeroModel.PVPTalentLevel % this.AttrNodeArray.length, this.DisplayTalentView(this._notLightTalentLevel + this.PVELEVEL_CONSTNUMBER, this._talentSkillConfig.PVPEffects, this._userHeroModel.PVPTalentLevel), this._isReachMaxLevel ? this.ReachMaxLevelLabel.string = "HeroTalent_Reach_MaxLevel".ToUILocale() : this.ConfigConsumeItems(this._itemConsumeConfig.PVPCommonItems, this._itemConsumeConfig.PVPHeroItems)
                }
            }, t.prototype.DisplayTalentView = function(e, t, n) {
                this._itemConsumeConfig = d.ConfigDataComponent.Instance.GetConfigById(p.HeroTalentItemConsume_Config, this._notLightTalentLevel + 1), this._itemConsumeConfig ? this._isReachMaxLevel = !1 : this._isReachMaxLevel = !0, this.SetAttribute(e), this.SetTalentContainer(t, n), this.SetInfoContainer(e, n), this.SetNodeState()
            }, t.prototype.SetNodeState = function() {
                this.ShowSkillLevel.active = !this._isReachMaxLevel, this.InfoBottom.active = !this._isReachMaxLevel, this.SkillMaxLevel.node.active = this._isReachMaxLevel, this.ReachMaxLevelLabel.node.active = this._isReachMaxLevel
            }, t.prototype.SetTalentContainer = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r, i = this;
                    return s(this, function() {
                        for (n = 0; n < this.ATTR_NUMBER; n++) this._isReachMaxLevel ? this._attrComponentArr[n].Init(this.GetAttrIcon(this._talentType, this._careerAttribute[n].Items[0], !0), this._notLightTalentLevel, !0, !1) : n < this._isLightingNumber ? this._attrComponentArr[n].Init(this.GetAttrIcon(this._talentType, this._careerAttribute[n].Items[0], !0), this._notLightTalentLevel + 1, !0, !1) : n != this._isLightingNumber ? this._attrComponentArr[n].Init(this.GetAttrIcon(this._talentType, this._careerAttribute[n].Items[0], !1), this._notLightTalentLevel, !1, !1) : (this._attrComponentArr[n].Init(this.GetAttrIcon(this._talentType, this._careerAttribute[n].Items[0], !1), this._notLightTalentLevel, !1, !0), this._index = n);
                        return this._skillLevel = 0, t < e[0].Items[0] ? (this._skillLevel = 1, this.Lock.active = !0, o = e[this._skillLevel - 1].Items[1], this.SkillIcon.spriteFrame = this._talentIconAtlas.getSpriteFrame(o.toString().slice(0, -2))) : (e.forEach(function(e) {
                            t >= e.Items[0] && i._skillLevel++
                        }), this.Lock.active = !1, o = e[this._skillLevel - 1].Items[1], r = v.default.GetSkillIconId(o), this._loadAssetHelper.LoadSpriteFrame(f.BundlePath.SkillIcon + "/" + r, this.SkillIcon)), this.SkillLevel.string = this._skillLevel.toString(), [2]
                    })
                })
            }, t.prototype.GetAttrIcon = function(e, t, n) {
                var o, r = d.ConfigDataComponent.Instance.GetConfigById(p.HeroAttribute_Config, t);
                switch (e) {
                    case l.PVE:
                        o = "pve_" + r.Icon;
                        break;
                    case l.PVP:
                        o = "pvp_" + r.Icon
                }
                return n || (o += "_dark"), this._talentIconAtlas.getSpriteFrame(o)
            }, t.prototype.SetInfoContainer = function(e, t) {
                this._isReachMaxLevel ? this.SkillMaxLevel.string = "allianceBase_level".ToUILocale().Fmt(t) : (this.SkillLevelNow.string = "allianceBase_level".ToUILocale().Fmt(t), this.SkillLevelNext.string = "allianceBase_level".ToUILocale().Fmt(t + 1));
                for (var n = 0; n < this.ATTR_NUMBER; n++) {
                    if (n >= this._attrTagComponentArr.length) {
                        var o = cc.instantiate(this._attrTagPrefab);
                        o.parent = this.AttrContainer.node, this._attrTagComponentArr[n] = o.getComponent(C.default)
                    }
                    n < this._isLightingNumber ? this.SetAttribute(e + 1) : this.SetAttribute(e);
                    var r;
                    r = n < this._isLightingNumber || e > 0 && e < this.PVELEVEL_CONSTNUMBER || e > this.PVELEVEL_CONSTNUMBER ? this._careerAttribute[n].Items[1] : 0;
                    var i = v.default.GetHeroAttribute(this._careerAttribute[n].Items[0], r);
                    if (n != this._isLightingNumber || this._isReachMaxLevel) this._attrTagComponentArr[n].Init(i.Icon, i.Name, "+" + i.Value);
                    else {
                        var a = d.ConfigDataComponent.Instance.GetConfigById(p.HeroTalentLevel_Config, e + 1),
                            s = this.GetCareerAttributes(a),
                            l = v.default.GetHeroAttribute(s[n].Items[0], s[n].Items[1] - r);
                        this._attrTagComponentArr[n].Init(i.Icon, i.Name, "+" + i.Value + " <outline width=3 color=#202434><color=33ff8e>+" + l.Value + "</c></outline>"), this._attrId = s[n].Items[0], this._attrChangeValue = s[n].Items[1] - r
                    }
                }
            }, t.prototype.SetAttribute = function(e) {
                0 == e || e == this.PVELEVEL_CONSTNUMBER ? this._talentLevelConfig = d.ConfigDataComponent.Instance.GetConfigById(p.HeroTalentLevel_Config, e + 1) : this._talentLevelConfig = d.ConfigDataComponent.Instance.GetConfigById(p.HeroTalentLevel_Config, e), this._careerAttribute = this.GetCareerAttributes(this._talentLevelConfig)
            }, t.prototype.GetCareerAttributes = function(e) {
                var t = this.GetHeroTalentType();
                return this.GetAttributes(e, t)
            }, t.prototype.GetHeroTalentType = function() {
                var e = this._heroBaseConfig.CoreHero,
                    t = e + 1;
                return this._heroBaseConfig.ElementType == _.HeroElementType.Chaos ? t = e + 3 : this._heroBaseConfig.ElementType >= _.HeroElementType.Break && (t = e + 2), Math.min(t, 5)
            }, t.prototype.GetAttributes = function(e, t) {
                var n;
                switch (n = t > 1 ? t.toString() : "", this._heroBaseConfig.Career) {
                    case _.CareerType.Warrior:
                        return e["WarriorAttributes" + n];
                    case _.CareerType.Master:
                        return e["MasterAttributes" + n];
                    case _.CareerType.Tank:
                        return e["TankAttributes" + n];
                    case _.CareerType.Support:
                        return e["SupportAttributes" + n]
                }
            }, t.prototype.ConfigConsumeItems = function(e, t) {
                this._costItemCount = {};
                var n = e[0].Items[0],
                    o = e[0].Items[1];
                this.CurrencyBar.Init(n, !1, void 0, o), this._materialDataArr = [];
                for (var r = [], i = 0; i < t.length; i++) {
                    var a = t[i].Items[0],
                        s = t[i].Items[1],
                        l = t[i].Items[2];
                    i >= this._itemComponent.length && ((m = cc.instantiate(this._itemPrefab)).parent = this.ItemContainer.node, this._itemComponent[i] = m.getComponent(S.ItemComponent)), (I = this._itemComponent[i]).node.name = i.toString(), I.node.active = !0;
                    var c = void 0,
                        u = this._heroBaseConfig.ElementType,
                        p = void 0,
                        h = [];
                    switch (a) {
                        case _.HeroMaterialType.Self:
                            c = this._userHeroModel.HeroId, r.push({
                                Type: v.UpStarHeroMaterialType.Hero,
                                Id: this._userHeroModel.Sid
                            }), p = v.default.GetHeroByItemIdAndStar(c, s, r, !0), c.ToHeroTitle();
                            break;
                        case _.HeroMaterialType.Bond:
                            c = this._heroBaseConfig.BondHero, p = v.default.GetHeroByItemIdAndStar(c, s, r, !0), c.ToHeroTitle();
                            break;
                        case _.HeroMaterialType.Element:
                            c = 0, u = this._heroBaseConfig.ElementType, p = v.default.GetHeroByStarAndElement(s, u, u, r, !0), "heroSelect_by_element".ToUILocale().Fmt(s, u.ToHeroElementName());
                            break;
                        case _.HeroMaterialType.Any:
                            u = 0, c = 0, p = v.default.GetHeroByStarAndElement(s, A.HeroElementType.All, u, r, !0), "heroSlect_by_star".ToUILocale().Fmt(s);
                            break;
                        case _.HeroMaterialType.SelfOnly:
                            c = this._userHeroModel.HeroId, r.push({
                                Type: v.UpStarHeroMaterialType.Hero,
                                Id: this._userHeroModel.Sid
                            }), p = v.default.GetHeroByItemIdAndStar(c, s, r, !0, !0), c.ToHeroTitle()
                    }
                    for (var f = 0; f < p.length; f++) {
                        var y = p[f];
                        if (h.push(y), r.push(y), h.length >= l) break
                    }
                    I.Init({
                        ItemId: c,
                        StarLevel: s,
                        Count: h.length,
                        NeedCount: l,
                        ElementType: u
                    }, S.ItemComponentType.HeroCountProgress);
                    var g = {
                        Component: I,
                        Type: a,
                        ItemId: c,
                        StarLevel: s,
                        Element: u,
                        NeedCount: l,
                        SelectMaterials: h
                    };
                    this._materialDataArr.push(g), h.length > 0 ? I.OffIconGray() : I.OnIconGray(), I.SetProgressBar(h.length, l, !1, 1.2, 1.2, 0, 172, 35), this.BindHeroMaterialRedDot(i)
                }
                for (this.RefreshMaterialItemState(), i = 1; i < e.length; i++) {
                    var m, I, C = i - 1 + t.length;
                    C >= this._itemComponent.length && ((m = cc.instantiate(this._itemPrefab)).parent = this.ItemContainer.node, this._itemComponent[C] = m.getComponent(S.ItemComponent)), (I = this._itemComponent[C]).node.name = C.toString(), I.node.active = !0, c = e[i].Items[0], l = e[i].Items[1], this._costItemCount[c] = l, I.Init({
                        ItemId: c,
                        Count: d.DataCenter.Instance.GetItemCount(c)
                    }, S.ItemComponentType.ItemCommon), d.DataCenter.Instance.IsItemEnough(c, l) ? (I.OffIconGray(), I.SetProgressBar(l, l, !1, 1.2, 1.2, 0, 172), I.ItemProgressLabel.fontSize = 35) : (I.OnIconGray(), I.SetProgressBar(d.DataCenter.Instance.GetItemCount(c), l, !1, 1.2, 1.2, 0, 172), I.ItemProgressLabel.fontSize = 35)
                }
                for (i = e.length - 1 + t.length; i < this._itemComponent.length; i++) this._itemComponent[i].node.active = !1
            }, t.prototype.OnClickHeroMaterial = function(e, t) {
                if (-1 != this.ItemContainer.node.children.indexOf(t)) {
                    var n = this._materialDataArr[e];
                    if (n) {
                        this._clickMaterialIndex = e;
                        var o = this.GetHeroPools(e),
                            r = [n.Type, this._heroBaseConfig.Id];
                        g.UIManager.Instance.ShowUIPanel(f.PanelConfig.SelectMaterialHeroPanel.Path, o, n.SelectMaterials, n.NeedCount, void 0, void 0, n.StarLevel, r)
                    } else {
                        var i = t.getComponent(S.ItemComponent).ItemId;
                        this._costItemCount[i] && d.DataCenter.Instance.IsItemEnough(i, this._costItemCount[i]) ? h.UIUtlity.ShowItemTip(i, t) : g.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, i)
                    }
                }
            }, t.prototype.OnSelectCallback = function(e) {
                var t = this._materialDataArr[this._clickMaterialIndex];
                t.SelectMaterials = e, t.Component.SetProgressBar(e.length, t.NeedCount, !1, 1.2, 1.2, 0, 172), t.Component.ItemProgressLabel.fontSize = 35, e.length > 0 ? t.Component.OffIconGray() : t.Component.OnIconGray(), this.BindHeroMaterialRedDot(this._clickMaterialIndex), this.RefreshMaterialItemState()
            }, t.prototype.BindHeroMaterialRedDot = function(e) {
                var t = this._materialDataArr[e];
                t.SelectMaterials.length >= t.NeedCount ? t.Component.SetRightTopIcon(!1) : this.GetHeroPools(e, !0).length >= t.NeedCount ? t.Component.SetRedDotState(!0) : t.Component.SetRedDotState(!1)
            }, t.prototype.GetHeroPools = function(e, t) {
                for (var n = this._materialDataArr[e], o = [], r = 0; r < this._materialDataArr.length; r++)
                    if (r != e)
                        for (var i = this._materialDataArr[r].SelectMaterials, a = 0; a < i.length; a++) o.push(i[a]);
                return o.push({
                    Type: v.UpStarHeroMaterialType.Hero,
                    Id: this._userHeroModel.Sid
                }), v.default.GetHeroUpStarPools(n.Type, n.ItemId, n.StarLevel, n.Element, o, t)
            }, t.prototype.OnClickActivateBtn = function() {
                if (this._talentType == l.PVE)
                    for (var e = this._itemConsumeConfig.PVECommonItems, t = 0; t < e.length; t++) {
                        var n = e[t].Items[0];
                        if (!d.DataCenter.Instance.IsItemEnough(n, e[t].Items[1])) return h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(n.ToItemName())), void c.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, n)
                    } else {
                        var o = this._itemConsumeConfig.PVPCommonItems;
                        for (t = 0; t < o.length; t++)
                            if (n = o[t].Items[0], !d.DataCenter.Instance.IsItemEnough(n, o[t].Items[1])) return h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(n.ToItemName())), void c.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, n)
                    }
                for (t = 0; t < this._materialDataArr.length; t++) {
                    var r = this._materialDataArr[t];
                    if (r.SelectMaterials.length < r.NeedCount) {
                        h.UIUtlity.ShowFloatingHint("heroPalace_replace_material_not_enough".ToUILocale());
                        var i = v.default.Instance.GetHeroGetWayItemId(r.Type, r.ItemId, r.Element, r.StarLevel);
                        return void(i && g.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, i))
                    }
                }
                this._materialDataArr.length > 0 ? c.UIManager.Instance.ShowUIPanel(f.PanelConfig.UpStarHeroMaterialsPanel.Path, this._materialDataArr, this.RequestUpgrade.bind(this)) : this.RequestUpgrade()
            }, t.prototype.RequestUpgrade = function() {
                this._power = this._userHeroModel.Power;
                var e = new u.Req_Hero_UpgradeTalent;
                e.Sid = this._userHeroModel.Sid;
                for (var t = [], n = [], o = 0; o < this._materialDataArr.length; o++) {
                    t[o] = new u.IntArray;
                    for (var r = [], i = 0; i < this._materialDataArr[o].SelectMaterials.length; i++) {
                        var a = this._materialDataArr[o].SelectMaterials[i];
                        if (a.Type == v.UpStarHeroMaterialType.Compose) {
                            e.UpgradeStarHeroSids.push(a.Id);
                            for (var s = [], l = 0; l < a.Param.length; l++) s.push(a.Param[l].Id);
                            n.push({
                                Items: s
                            })
                        }
                        r.push(a.Id)
                    }
                    t[o].Items = r
                }
                e.Materials = t, e.UpgradeStarHeroMaterials = n, e.Type = this._talentType + 1, d.RpcComponent.Instance.Call(e, this.UpgradeStarSucess.bind(this))
            }, t.prototype.UpgradeStarSucess = function() {
                this.DisPlayEffect(), this._userHeroModel = d.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid);
                var e = this._userHeroModel.Power - this._power;
                g.UIManager.Instance.ShowUIPanel(f.PanelConfig.TalentActiveSuccessPanel.Path, this._power, e, this._attrId, this._attrChangeValue), this.BindRedDot(), this.DisPlay(!0)
            }, t.prototype.DisPlayEffect = function() {
                var e = this;
                switch (this._lightEffectComponentArr[this._talentType] || (this._lightEffectArr[this._talentType] = cc.instantiate(this._lightEffectPrefab[this._talentType]), this._lightEffectComponentArr[this._talentType] = this._lightEffectArr[this._talentType].getComponent(sp.Skeleton)), this._lightEffectArr[this._talentType].parent = this.AttrNodeArray[this._index], this._lightEffectArr[this._talentType].active = !0, this._talentType) {
                    case l.PVE:
                        this._lightEffectComponentArr[l.PVE].setAnimation(0, "Ani_UI_effect_tianfu_PVE", !1);
                        break;
                    case l.PVP:
                        this._lightEffectComponentArr[l.PVP].setAnimation(0, "Ani_UI_effect_tianfu_PVP", !1)
                }
                this._lightEffectComponentArr[this._talentType].setCompleteListener(function() {
                    e._lightEffectArr[e._talentType].active = !1
                })
            }, t.prototype.BindRedDot = function() {
                w.RedDotManager.Instance.BindInstance(this.ActivateBtn.node, w.RedDotManager.Instance.InstanceRedDot.HeroTalentActivateNode, {
                    Value1: this._heroSid,
                    extra: this._talentType
                }), w.RedDotManager.Instance.BindInstance(this.Toggles[l.PVE].node, w.RedDotManager.Instance.InstanceRedDot.HeroPveTalentNode, {
                    Value1: this._heroSid
                }), w.RedDotManager.Instance.BindInstance(this.Toggles[l.PVP].node, w.RedDotManager.Instance.InstanceRedDot.HeroPvpTalentNode, {
                    Value1: this._heroSid
                }), w.RedDotManager.Instance.BindInstance(this.ResonanceButton.node, w.RedDotManager.Instance.InstanceRedDot.HeroTalentResonanceEntranceNode, {
                    Value1: this._heroSid
                })
            }, t.prototype.OnClickRuleBtn = function() {
                var e = {
                    name: "HeroTalent_Tittle".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["HeroTalent_RuleDesc".ToUILocale()]
                };
                h.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnClickSkillNode = function() {
                switch (this._talentType) {
                    case l.PVE:
                        g.UIManager.Instance.ShowUIPanel(f.PanelConfig.TalentSkillPanel.Path, this._userHeroModel.PVETalentLevel, this._talentSkillConfig.PVEEffects);
                        break;
                    case l.PVP:
                        g.UIManager.Instance.ShowUIPanel(f.PanelConfig.TalentSkillPanel.Path, this._userHeroModel.PVPTalentLevel, this._talentSkillConfig.PVPEffects)
                }
            }, t.prototype.OnResetButtonClick = function() {
                g.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroTalentResetPanel.Path, this._heroSid, this._talentType + 1)
            }, t.prototype.OnResonanceButtonClick = function() {
                g.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroTalentResonancePanel.Path, this._heroSid)
            }, t.prototype.OnQuickLevelUpBtnClick = function() {
                g.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroTalentQuickLevelUpPanel.Path, this._heroSid, this._talentType)
            }, t.prototype.OnClickReturnBtn = function() {
                g.UIManager.Instance.BackUIPanel()
            }, t.prototype.RefreshMaterialItemState = function() {
                for (var e = 0; e < this._materialDataArr.length; e++) {
                    for (var t = void 0, n = this._materialDataArr[e].Component, o = 0; o < this._materialDataArr[e].SelectMaterials.length; o++)
                        if (this._materialDataArr[e].SelectMaterials[o].Type == v.UpStarHeroMaterialType.Compose) {
                            t = !0;
                            break
                        } if (t) {
                        var r = h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("infoBg34"),
                            i = new cc.Color(255, 230, 133);
                        n.SetCustomLabel("willBeComposed".ToUILocale(), {
                            horizontalAlign: cc.Label.HorizontalAlign.CENTER,
                            y: 15,
                            color: i,
                            OutlineWidth: 4,
                            showBg: !0,
                            BgWidth: 260,
                            BgHeight: 70,
                            BgSpriteFrame: r
                        })
                    } else n.HideCustomLabel()
                }
            }, i([L(cc.Sprite)], t.prototype, "TalentBg", void 0), i([L(cc.Node)], t.prototype, "AttrNodeArray", void 0), i([L(I.default)], t.prototype, "TalentAttrComponent", void 0), i([L(cc.Sprite)], t.prototype, "SkillIcon", void 0), i([L(cc.Sprite)], t.prototype, "SkillBorder", void 0), i([L(cc.Label)], t.prototype, "SkillLevel", void 0), i([L(cc.Node)], t.prototype, "Lock", void 0), i([L(cc.Label)], t.prototype, "Tittle", void 0), i([L(cc.Button)], t.prototype, "RuleBtn", void 0), i([L(cc.Label)], t.prototype, "TotalLevelLabel", void 0), i([L(m.default)], t.prototype, "Toggles", void 0), i([L(cc.Label)], t.prototype, "SkillBarTagName", void 0), i([L(cc.Label)], t.prototype, "SkillLevelNow", void 0), i([L(cc.Label)], t.prototype, "SkillLevelNext", void 0), i([L(cc.Node)], t.prototype, "ArrowNode", void 0), i([L(cc.Label)], t.prototype, "SkillMaxLevel", void 0), i([L(cc.Layout)], t.prototype, "AttrContainer", void 0), i([L(cc.Layout)], t.prototype, "ItemContainer", void 0), i([L(cc.Label)], t.prototype, "ReachMaxLevelLabel", void 0), i([L(b.default)], t.prototype, "CurrencyBar", void 0), i([L(cc.Button)], t.prototype, "ActivateBtn", void 0), i([L(cc.Label)], t.prototype, "ActivateBtnLabel", void 0), i([L(cc.Button)], t.prototype, "ReturnBtn", void 0), i([L(cc.Node)], t.prototype, "ShowSkillLevel", void 0), i([L(cc.Node)], t.prototype, "InfoBottom", void 0), i([L(cc.Button)], t.prototype, "ResetButton", void 0), i([L(cc.Label)], t.prototype, "ResetButtonLabel", void 0), i([L(cc.Button)], t.prototype, "ResonanceButton", void 0), i([L(cc.Label)], t.prototype, "ResonanceButtonLabel", void 0), i([L(cc.Button)], t.prototype, "QuickLevelUpBtn", void 0), i([L(cc.Label)], t.prototype, "QuickLevelUpBtnLabel", void 0), i([R], t)
        }(c.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/TalentAttrComponent": "TalentAttrComponent",
        "../Components/TalentAttrTagComponent": "TalentAttrTagComponent"
    }],
    HeroTalentQuickLevelUpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "43fd09uox9CSpk+2N6OIa7B", "HeroTalentQuickLevelUpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u, p, d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/Components"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../../Consts/Consts"),
            m = e("../Components/SliderComponent"),
            I = e("../Components/CustomLayout"),
            _ = e("../Components/CustomToggle"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../Components/ItemComponent");
        (function(e) {
            e[e.High = 0] = "High", e[e.Middle = 1] = "Middle", e[e.Normal = 2] = "Normal"
        })(l || (l = {})),
        function(e) {
            e[e.Item = 0] = "Item", e[e.Hero = 1] = "Hero"
        }(c || (c = {})),
        function(e) {
            e[e.NoElementSoul = 0] = "NoElementSoul", e[e.SameElementSoul = 1] = "SameElementSoul", e[e.DifferentElementSoul = 2] = "DifferentElementSoul", e[e.SameElementHero = 3] = "SameElementHero", e[e.DifferentElementHero = 4] = "DifferentElementHero", e[e.AllElementSoul = 5] = "AllElementSoul", e[e.SameElementMiddleHero = 6] = "SameElementMiddleHero", e[e.DifferentElementMiddleHero = 7] = "DifferentElementMiddleHero"
        }(u || (u = {})),
        function(e) {
            e[e.Pve = 0] = "Pve", e[e.Pvp = 1] = "Pvp"
        }(p || (p = {}));
        var w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new y.UIPanelType(y.UINodeType.Fixed, !0), t.Title = null, t.RuleButton = null, t.LevelTitle = null, t.MaterialTitle = null, t.HeroMaterialTitle = null, t.LevelTotal = null, t.CurrentLevel = null, t.NextLevel = null, t.LevelNode = null, t.SliderComponent = null, t.AddLevel = null, t.MaterialLayout = null, t.SelectLabel = null, t.CustomLayout = null, t.LevelUpButton = null, t.LevelUpLabel = null, t.NoMaterialLabel = null, t.NoHeroMaterialLabel = null, t.CustomToggles = [], t._selectIndex = 0, t._canUpLevel = 0, t._selectUpLevel = 0, t._initLayout = !0, t._itemNodes = [], t.Count = 6, t.PVELEVEL_CONSTNUMBER = 1e3, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    y.Game.EventDispatcher.On(b.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), y.Game.EventDispatcher.On(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), y.Game.EventDispatcher.On(b.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.onDisable = function() {
                    y.Game.EventDispatcher.Off(b.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), y.Game.EventDispatcher.Off(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), y.Game.EventDispatcher.Off(b.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(v.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.Title.string = "talent_levelUp_btn".ToUILocale(), this.MaterialTitle.string = "talent_levelUp_consume".ToUILocale(), this.HeroMaterialTitle.string = "talent_levelUp_hero_consume".ToUILocale(), this.LevelUpLabel.string = "talent_levelUp".ToUILocale();
                    var n = ["talent_levelUp_pve".ToUILocale(), "talent_levelUp_pvp".ToUILocale()];
                    this.RuleButton.node.on("click", this.ClickRuleButton, this), this.LevelUpButton.node.on("click", this.ClickLevelUpButton, this), this.CustomToggles.forEach(function(e, o) {
                        e.Init(n[o]), e.node.on("toggle", t.ClickToggle, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroSid = t[0], this._selectIndex = t[1], this._configs = f.ConfigDataComponent.Instance.GetArrayConfig(d.HeroTalentItemConsume_Config), this._userHeroModel = f.DataCenter.Instance.GetDataById(h.UserHero_Model, this._heroSid), this._heroConfig = f.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, this._userHeroModel.HeroId), this.SetHeroMaterialDatas()
                }, t.prototype.SetHeroMaterialDatas = function() {
                    this._materialDatas = [];
                    for (var e = f.DataCenter.Instance.GetDataList(h.UserItem_Model), t = 0; t < e.length; t++) {
                        var n = f.ConfigDataComponent.Instance.GetConfigById(d.ItemConsume_Config, e[t].ItemId);
                        if (n && n.SubType == g.ConsumeItemType.HeroSoul && 5 == f.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e[t].ItemId).Star) {
                            var o = void 0,
                                r = n.Param[0] && n.Param[0].Items ? n.Param[0].Items : [];
                            o = 0 == r.length ? u.NoElementSoul : 1 == r.length ? r[0] == this._heroConfig.ElementType ? u.SameElementSoul : u.DifferentElementSoul : 5 == r.length && r.includes(this._heroConfig.ElementType) ? u.AllElementSoul : u.DifferentElementSoul, (a = {}).Model = e[t], a.SelectCount = 0, a.Type = c.Item, a.SortType = o, this._materialDatas.push(a)
                        }
                    }
                    var i = f.DataCenter.Instance.GetDataList(h.UserHero_Model);
                    for (t = 0; t < i.length; t++)
                        if (5 == i[t].StarLevel && this.CheckHero(i[t])) {
                            o = void 0;
                            var a, s = this.GetHeroType(i[t].HeroId),
                                p = f.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, i[t].HeroId);
                            o = s == l.Normal ? p.ElementType == this._heroConfig.ElementType ? u.SameElementHero : u.DifferentElementHero : p.ElementType == this._heroConfig.ElementType ? u.SameElementMiddleHero : u.DifferentElementMiddleHero, (a = {}).Model = i[t], a.SelectCount = 0, a.Type = c.Hero, a.SortType = o, this._materialDatas.push(a)
                        } this._materialDatas.sort(function(e, t) {
                        if (e.SortType == t.SortType) {
                            if (e.Type == c.Item) {
                                var n = f.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e.Model.ItemId),
                                    o = f.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, t.Model.ItemId);
                                return n.ElementType - o.ElementType
                            }
                            var r = f.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e.Model.HeroId),
                                i = f.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, t.Model.HeroId);
                            return r.ElementType == i.ElementType ? r.Id - i.Id : r.ElementType - i.ElementType
                        }
                        return e.SortType - t.SortType
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.CustomToggles[this._selectIndex].isChecked = !0, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._userHeroModel = f.DataCenter.Instance.GetDataById(h.UserHero_Model, this._heroSid), this.SetLevelUpData(), this.SetLevelNode(), this.SetSliderNode(), this.SetSelectLevelCount(), this.SetMaterialNode(), this.SetHeroMaterialNode()
                }, t.prototype.SetLevelUpData = function() {
                    this._curLevel = this._selectIndex == p.Pvp ? this._userHeroModel.PVPTalentLevel : this._userHeroModel.PVETalentLevel;
                    var e = Math.floor(this._curLevel / this.Count);
                    if (this._isMaxLevel = e >= this._configs.length, !this._isMaxLevel) {
                        var t = this._configs.length * this.Count;
                        this._canUpLevel = this._curLevel;
                        var n = 0;
                        this._materialDatas.forEach(function(e) {
                            e.Type == c.Item ? n += e.Model.Count : n += 1
                        });
                        for (var o = this.GetLevelConsume(this._curLevel), r = this._curLevel + 1; r <= t; r++) {
                            var i = this.GetLevelConsume(r),
                                a = this.GetMaterial(o, i),
                                s = !0;
                            for (var l in a)
                                if (-1 == Number(l)) {
                                    if (n < a[l]) {
                                        s = !1;
                                        break
                                    }
                                } else if (!f.DataCenter.Instance.IsItemEnough(Number(l), a[l])) {
                                s = !1;
                                break
                            }
                            if (!s) break;
                            this._canUpLevel = r
                        }
                    }
                    this._selectUpLevel = this._canUpLevel
                }, t.prototype.GetMaterial = function(e, t) {
                    var n = {};
                    for (var o in t) {
                        var r = t[o];
                        e[o] && (r = t[o] - e[o]), n[Number(o)] = r
                    }
                    return n
                }, t.prototype.GetLevelConsume = function(e) {
                    var t, n = Math.floor(e / this.Count) + 1,
                        o = e % this.Count;
                    t = {};
                    for (var r = function(e) {
                            var r = i._configs[e],
                                a = r.Id < n ? i.Count : o;
                            if (r.Id <= n) {
                                var s = i._selectIndex == p.Pvp ? r.PVPCommonItems : r.PVECommonItems,
                                    l = i._selectIndex == p.Pvp ? r.PVPHeroItems : r.PVEHeroItems;
                                s.forEach(function(e) {
                                    var n = e.Items[0],
                                        o = e.Items[1] * a;
                                    t[n] ? t[n] += o : t[n] = o
                                }), l.length > 0 && l.forEach(function(e) {
                                    t[-1] ? t[-1] += a * e.Items[2] : t[-1] = a * e.Items[2]
                                })
                            }
                        }, i = this, a = 0; a < this._configs.length; a++) r(a);
                    return t
                }, t.prototype.SetLevelNode = function() {
                    this.LevelTitle.string = this._selectIndex == p.Pvp ? "talent_levelUp_pvp_level".ToUILocale() : "talent_levelUp_pve_level".ToUILocale(), this.LevelTotal.string = this._selectIndex == p.Pvp ? "talent_levelUp_pvp_total".ToUILocale() : "talent_levelUp_pve_total".ToUILocale(), this.LevelNode.active = !this._isMaxLevel, this.CurrentLevel.string = "Lv." + this._curLevel, this._isMaxLevel || (this.NextLevel.string = "Lv." + this._selectUpLevel)
                }, t.prototype.SetSliderNode = function() {
                    var e = this._selectUpLevel - this._curLevel >= 0 ? this._selectUpLevel - this._curLevel : 0,
                        t = this._canUpLevel - this._curLevel >= 0 ? this._canUpLevel - this._curLevel : 0;
                    this.SliderComponent.SetUI(e, t, 1, !0)
                }, t.prototype.SetSelectLevelCount = function() {
                    var e = this._selectUpLevel - this._curLevel >= 0 ? this._selectUpLevel - this._curLevel : 0;
                    this.AddLevel.string = "Lv." + e
                }, t.prototype.SetMaterialNode = function() {
                    if (this.NoMaterialLabel.node.parent.active = this._isMaxLevel || this._curLevel == this._canUpLevel, this.MaterialLayout.node.active = !this._isMaxLevel && this._curLevel != this._canUpLevel, this._isMaxLevel || this._curLevel == this._canUpLevel) this._isMaxLevel ? this.NoMaterialLabel.string = "common_max_level".ToUILocale() : this.NoMaterialLabel.string = "talent_levelUp_not_enough".ToUILocale();
                    else {
                        var e = this.GetLevelConsume(this._curLevel),
                            t = this.GetLevelConsume(this._selectUpLevel);
                        this._consumeData = this.GetMaterial(e, t);
                        var n = 0;
                        for (var o in this._itemNodes.forEach(function(e) {
                                e.active = !1
                            }), this._materialDatas.forEach(function(e) {
                                e.SelectCount = 0
                            }), this._consumeData)
                            if (Number(o) > -1) {
                                if (this._consumeData[o] > 0) {
                                    if (!this._itemNodes[n]) {
                                        var r = cc.instantiate(this._itemPrefab);
                                        r.parent = this.MaterialLayout.node, this._itemNodes[n] = r
                                    }
                                    this._itemNodes[n].active = !0;
                                    var i = this._itemNodes[n].getComponent(S.ItemComponent);
                                    i.Init({
                                        ItemId: Number(o)
                                    }), i.Name.fontSize = 26, i.Name.node.parent.scale = 1 / this.MaterialLayout.node.scale, i.Name.node.parent.width = 128, i.SetNameAndActive(this._consumeData[o].FmtCurrency() + "/" + this._consumeData[o], !0), i.SetNameColorAndOutline(new cc.Color(98, 78, 60), null), n++
                                }
                            } else
                                for (var a = 0, s = 0; s < this._materialDatas.length; s++) {
                                    var l = this._materialDatas[s];
                                    if (!(a < this._consumeData[o])) break;
                                    var u = this._consumeData[o] - a;
                                    if (l.Type == c.Item) {
                                        var p = l.Model;
                                        p.Count >= u ? a += u : a += p.Count, l.SelectCount = p.Count >= u ? u : p.Count
                                    } else a += 1, l.SelectCount = 1
                                }
                    }
                }, t.prototype.SetHeroMaterialNode = function() {
                    if (this.NoHeroMaterialLabel.node.parent.active = this._isMaxLevel || this._curLevel == this._canUpLevel, this.CustomLayout.node.active = !this._isMaxLevel && this._curLevel != this._canUpLevel, this._isMaxLevel || this._curLevel == this._canUpLevel) this._isMaxLevel ? this.NoHeroMaterialLabel.string = "common_max_level".ToUILocale() : (this.NoHeroMaterialLabel.string = "talent_levelUp_not_enough".ToUILocale(), this.SelectLabel.string = "talent_levelUp_select".ToUILocale().Fmt(0, 0));
                    else {
                        this._initLayout && (this.CustomLayout.Init(this._itemPrefab), this._initLayout = !1);
                        var e = this._consumeData && this._consumeData[-1] ? this._consumeData[-1] : 0;
                        this.SelectLabel.string = "talent_levelUp_select".ToUILocale().Fmt(e, e), this.CustomLayout.RenderLayOut(this._materialDatas.length)
                    }
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._materialDatas[t],
                            r = o.Type == c.Item ? S.ItemComponentType.ItemCommon : S.ItemComponentType.HeroInfo,
                            i = e.getComponent(S.ItemComponent),
                            a = o.SelectCount > 0;
                        i.Init(o.Model, r), i.SetSelectBorder(a)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.CustomLayout.node.children.indexOf(t) || -1 != this.MaterialLayout.node.children.indexOf(t)) {
                        var n = t.getComponent(S.ItemComponent);
                        n.ItemId > 0 && n.ShowItemTip()
                    }
                }, t.prototype.OnSliderDragOver = function(e) {
                    this._curLevel + e != this._selectUpLevel && (this._selectUpLevel = this._curLevel + e, this.SetLevelNode(), this.SetSelectLevelCount(), this.SetMaterialNode(), this.SetHeroMaterialNode())
                }, t.prototype.GetHeroType = function(e) {
                    var t = f.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e);
                    return t.CoreHero > 0 ? l.High : 12 == t.MaxStarLevel ? l.Middle : l.Normal
                }, t.prototype.CheckHero = function(e, t) {
                    if (void 0 === t && (t = !1), e.Locked || e.Level > 1 || e.TemplePosition > 0 || e.TempleLevel > 1 || e.PVETalentLevel > 0 || e.PVPTalentLevel > 0 || e.LuckSkill1 > 0 || e.LuckSkill2 > 0) return !1;
                    var n = this.GetHeroType(e.HeroId);
                    if (!t && n == l.High) return !1;
                    if (f.DataCenter.Instance.GetHeroFormations(e.Sid).length > 0) return !1;
                    if (!this._displaceHero) {
                        var o = f.DataCenter.Instance.GetDataById(h.UserSimpleData_Model, g.UserDataKey.CurrentBeDisplaceHero);
                        this._displaceHero = o ? o.V : 0
                    }
                    if (e.Sid == this._displaceHero) return !1;
                    if (!this._equipObj) {
                        this._equipObj = {};
                        for (var r = 0, i = f.DataCenter.Instance.GetDataList(h.Equipment_Model); r < i.length; r++)(S = i[r]).OwnerId > 0 && (this._equipObj[S.OwnerId] = !0)
                    }
                    if (this._equipObj[e.Sid]) return !1;
                    if (!this._holyObj) {
                        this._holyObj = {};
                        for (var a = 0, s = f.DataCenter.Instance.GetDataList(h.HolyEquipment_Model); a < s.length; a++)(S = s[a]).OwnerId > 0 && (this._holyObj[S.OwnerId] = !0)
                    }
                    if (this._holyObj[e.Sid]) return !1;
                    if (!this._petObj) {
                        this._petObj = {};
                        for (var c = 0, u = f.DataCenter.Instance.GetDataList(h.UserPet_Model); c < u.length; c++)
                            for (var p = 0, d = (S = u[c]).Owners; p < d.length; p++) {
                                var y = d[p];
                                y > 0 && (this._petObj[y] = !0)
                            }
                    }
                    if (this._petObj[e.Sid]) return !1;
                    if (!this._coreObj) {
                        this._coreObj = {};
                        for (var m = 0, I = f.DataCenter.Instance.GetDataList(h.PowerCore_Model); m < I.length; m++)(S = I[m]).OwnerId > 0 && (this._coreObj[S.OwnerId] = !0)
                    }
                    if (this._coreObj[e.Sid]) return !1;
                    if (!this._luckyObj) {
                        this._luckyObj = {};
                        for (var _ = 0, C = f.DataCenter.Instance.GetDataList(h.LuckyCharmEquip_Model); _ < C.length; _++)(S = C[_]).OwnerId > 0 && (this._luckyObj[S.OwnerId] = !0)
                    }
                    if (this._luckyObj[e.Sid]) return !1;
                    if (!this._gemObj) {
                        this._gemObj = {};
                        for (var v = 0, b = f.DataCenter.Instance.GetDataList(h.LuckyCharmEquip_Model); v < b.length; v++) {
                            var S;
                            (S = b[v]).OwnerId > 0 && (this._gemObj[S.OwnerId] = !0)
                        }
                    }
                    return !this._gemObj[e.Sid]
                }, t.prototype.ClickRuleButton = function() {
                    var e = {
                        name: "talent_levelUp_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["talent_levelUp_rule_content".ToUILocale()]
                    };
                    C.UIUtlity.ShowRulePanel(e)
                }, t.prototype.ClickLevelUpButton = function() {
                    var e = this;
                    if (this._isMaxLevel) C.UIUtlity.ShowFloatingHint("common_max_level".ToUILocale());
                    else if (this._curLevel != this._canUpLevel) {
                        var t = f.DataCenter.Instance.GetIntData(g.UserDataKey.Power),
                            n = new h.Req_Hero_BatchUpgradeTalent;
                        n.Sid = this._userHeroModel.Sid;
                        var o = [];
                        if (this._consumeData[-1]) {
                            var r = this._consumeData[-1] || 0,
                                i = 0,
                                a = new h.IntArray;
                            a.Items = [];
                            for (var s = 0; s < this._materialDatas.length && !(i >= r); s++) {
                                var l = this._materialDatas[s],
                                    u = void 0;
                                if (l.Type == c.Hero) u = l.Model.Sid, a.Items.push(u), i++;
                                else if (l.Type == c.Item) {
                                    u = -l.Model.ItemId;
                                    for (var p = r - i > 0 ? r - i : 0, d = Math.min(p, l.Model.Count), m = 0; m < d; m++) a.Items.push(u), i++
                                }
                            }
                            o.push(a)
                        }
                        n.Materials = o, n.Type = this._selectIndex + 1, n.Count = this._selectUpLevel - this._curLevel, f.RpcComponent.Instance.Call(n, function() {
                            C.UIUtlity.ShowFloatingHint("luckycharm_levelUp_success".ToUILocale());
                            var n = f.DataCenter.Instance.GetIntData(g.UserDataKey.Power);
                            y.UIManager.Instance.ShowUIPanel(v.PanelConfig.BattlePowerChangePanel.Path, t, n), y.UIManager.Instance.QuitPanelStack(e)
                        })
                    } else C.UIUtlity.ShowFloatingHint("talent_levelUp_not_enough".ToUILocale())
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._selectIndex != t && (this._selectIndex = t, this.SetUIContent())
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.Label)], t.prototype, "LevelTitle", void 0), i([A(cc.Label)], t.prototype, "MaterialTitle", void 0), i([A(cc.Label)], t.prototype, "HeroMaterialTitle", void 0), i([A(cc.Label)], t.prototype, "LevelTotal", void 0), i([A(cc.Label)], t.prototype, "CurrentLevel", void 0), i([A(cc.Label)], t.prototype, "NextLevel", void 0), i([A(cc.Node)], t.prototype, "LevelNode", void 0), i([A(m.default)], t.prototype, "SliderComponent", void 0), i([A(cc.Label)], t.prototype, "AddLevel", void 0), i([A(cc.Layout)], t.prototype, "MaterialLayout", void 0), i([A(cc.Label)], t.prototype, "SelectLabel", void 0), i([A(I.default)], t.prototype, "CustomLayout", void 0), i([A(cc.Button)], t.prototype, "LevelUpButton", void 0), i([A(cc.Label)], t.prototype, "LevelUpLabel", void 0), i([A(cc.Label)], t.prototype, "NoMaterialLabel", void 0), i([A(cc.Label)], t.prototype, "NoHeroMaterialLabel", void 0), i([A(_.default)], t.prototype, "CustomToggles", void 0), i([P], t)
            }(y.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SliderComponent": "SliderComponent"
    }],
    HeroTalentResetPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f023fhTbQRDOY5HAbsGh8LP", "HeroTalentResetPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/RpcComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Components/ItemComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.DescLabel = null, t.SmallTitle = null, t.ItemContent = null, t.OkButton = null, t.OkButtonLabel = null, t._materials = new Map, t._itemComponents = [], t.ATTR_NUMBER = 6, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "HeroTalent_Reset".ToUILocale(), this.SmallTitle.string = "FavorRebornPanel_ResourceToReturn".ToUILocale(), this.OkButtonLabel.string = "FavorRebornPanel_ConfirmReborn".ToUILocale(), this.OkButton.node.on("click", this.OnOkButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroSid = t[0], this._talentType = t[1]
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        switch (this._talentType) {
                            case h.HeroTalentType.PVE:
                                this._talentTypeName = "HeroTalent_Toggle_0".ToUILocale();
                                break;
                            case h.HeroTalentType.PVP:
                                this._talentTypeName = "HeroTalent_Toggle_1".ToUILocale()
                        }
                        this._returnRatio = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroTalentResetReturnRatio"), this.DescLabel.string = "HeroTalent_ResetDesc".ToUILocale().Fmt(this._talentTypeName, this._returnRatio / 10)
                    }
                    this._userHeroModel = f.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid), this._talentType == h.HeroTalentType.PVE ? this._talentLevel = this._userHeroModel.PVETalentLevel : this._talentLevel = this._userHeroModel.PVPTalentLevel, 0 != this._talentLevel ? this.OperateTalentLevel() : this._itemComponents.forEach(function(e) {
                        e.node.active = !1
                    })
                }, t.prototype.OperateTalentLevel = function() {
                    var e = Math.floor(this._talentLevel / this.ATTR_NUMBER),
                        t = this._talentLevel % this.ATTR_NUMBER;
                    this._talentItemConsumeArray || (this._talentItemConsumeArray = f.ConfigDataComponent.Instance.GetArrayConfig(u.HeroTalentItemConsume_Config)), this._materials.clear();
                    for (var n = 0; n < e; n++) {
                        var o = [],
                            r = [];
                        this._talentType == h.HeroTalentType.PVE ? (o = this._talentItemConsumeArray[n].PVECommonItems, r = this._talentItemConsumeArray[n].PVEHeroItems) : (o = this._talentItemConsumeArray[n].PVPCommonItems, r = this._talentItemConsumeArray[n].PVPHeroItems), this.SetMaterials(o, r, this.ATTR_NUMBER)
                    }
                    e < this._talentItemConsumeArray.length && (this._talentType == h.HeroTalentType.PVE ? this.SetMaterials(this._talentItemConsumeArray[e].PVECommonItems, this._talentItemConsumeArray[e].PVEHeroItems, t) : this.SetMaterials(this._talentItemConsumeArray[e].PVPCommonItems, this._talentItemConsumeArray[e].PVPHeroItems, t)), this.SetItemContent()
                }, t.prototype.SetMaterials = function(e, t, n) {
                    var o = this;
                    e.forEach(function(e) {
                        o.SetItemsCount(e.Items[0], e.Items[1] * n)
                    }), t.forEach(function(e) {
                        o.SetItemsCount(h.CommonItemId.NoElementFiveStarHeroSoul, e.Items[2] * n)
                    })
                }, t.prototype.SetItemsCount = function(e, t) {
                    if (t > 0)
                        if (this._materials.has(e)) {
                            var n = this._materials.get(e);
                            n += t, this._materials.set(e, n)
                        } else this._materials.set(e, t)
                }, t.prototype.SetItemContent = function() {
                    var e = this,
                        t = 0;
                    this._materials.forEach(function(n, o) {
                        if (e._itemComponents.length < e._materials.size) {
                            var r = cc.instantiate(e._itemPrefab);
                            r.setParent(e.ItemContent), e._itemComponents.push(r.getComponent(m.ItemComponent))
                        }
                        e._itemComponents[t].Init({
                            ItemId: o,
                            Count: Math.floor(n * e._returnRatio / 1e3)
                        }, m.ItemComponentType.ItemCommon), e._itemComponents[t].node.active = !0, t++
                    });
                    for (var n = this._materials.size; n < this._itemComponents.length; n++) this._itemComponents[n].node.active = !1
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContent.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.OnOkButtonClick = function() {
                    this._talentLevel <= 0 ? l.UIManager.Instance.BackUIPanel() : d.UIUtlity.ShowHintPanel("", "HeroTalent_ResetHint".ToUILocale().Fmt(this._talentTypeName), "", null, "", this.RequestResetTalent.bind(this))
                }, t.prototype.RequestResetTalent = function() {
                    var e = new c.Req_Hero_ResetTalent;
                    e.Sid = this._heroSid, e.Type = this._talentType, p.RpcComponent.Instance.Call(e, function(e) {
                        d.UIUtlity.ShwDisplayRewardPanel(e.Materials)
                    })
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Label)], t.prototype, "DescLabel", void 0), i([C(cc.Label)], t.prototype, "SmallTitle", void 0), i([C(cc.Node)], t.prototype, "ItemContent", void 0), i([C(cc.Button)], t.prototype, "OkButton", void 0), i([C(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroTalentResonancePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9171fOqM7JNbboRvopc7JCX", "HeroTalentResonancePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/DataCenter"),
            u = e("../../Components/ConfigData/ConfigDataComponent"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Components/RpcComponent"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../RedDot/RedDotManager"),
            g = e("../../../ShareConsts/EnumType"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.Title = null, t.SmallTitles = [], t.PveLevelTag = null, t.PveLevelValue = null, t.PvpLevelTag = null, t.PvpLevelValue = null, t.ResonanceLevelTag = null, t.CurrentValue = null, t.NextValue = null, t.AttrIcons = [], t.AttrNames = [], t.AttrValues = [], t.MaxNodes = [], t.TipLabel = null, t.UpgradeButton = null, t.UpgradeButtonLabel = null, t.IsMaxLevel = null, t.ATTR_NUMBER = 6, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "HeroTalent_Resonance".ToUILocale(), this.SmallTitles[0].string = "HeroTalent_TalentLevel".ToUILocale(), this.SmallTitles[1].string = "gem_resonanceAddition".ToUILocale(), this.PveLevelTag.string = "HeroTalent_PveLevel".ToUILocale(), this.PvpLevelTag.string = "HeroTalent_PvpLevel".ToUILocale(), this.ResonanceLevelTag.string = "HeroTalent_ResonanceLevel".ToUILocale(), this.UpgradeButton.node.on("click", this.OnUpgradeButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroSid = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this._talentMaxLevel = u.ConfigDataComponent.Instance.GetArrayConfig(l.HeroTalentItemConsume_Config).length * this.ATTR_NUMBER), this._userHeroModel = c.DataCenter.Instance.GetDataById(s.UserHero_Model, this._heroSid), this.SetTalentLevelValue(), this.SetUpgradeButtonLabel(), this.SetResonanceLevel(), this.SetHeroAttr(), y.RedDotManager.Instance.BindInstance(this.UpgradeButton.node, y.RedDotManager.Instance.InstanceRedDot.TalentResonanceUpgradeNode, {
                        Value1: this._heroSid
                    })
                }, t.prototype.SetTalentLevelValue = function() {
                    this.PveLevelValue.string = "HeroTalent_LevelValue".ToUILocale().Fmt(this._userHeroModel.PVETalentLevel, this._talentMaxLevel), this.PvpLevelValue.string = "HeroTalent_LevelValue".ToUILocale().Fmt(this._userHeroModel.PVPTalentLevel, this._talentMaxLevel)
                }, t.prototype.SetUpgradeButtonLabel = function() {
                    0 == this._userHeroModel.TalentResonanceLevel ? this.UpgradeButtonLabel.string = "allianceTalent_active".ToUILocale() : (this.UpgradeButtonLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), this._currentResonanceLevelConfig = u.ConfigDataComponent.Instance.GetConfigById(l.HeroTalentResonance_Config, this._userHeroModel.TalentResonanceLevel))
                }, t.prototype.SetResonanceLevel = function() {
                    this.CurrentValue.string = "allianceBase_level".ToUILocale().Fmt(this._userHeroModel.TalentResonanceLevel), this._nextResonanceLevelConfig = u.ConfigDataComponent.Instance.GetConfigById(l.HeroTalentResonance_Config, this._userHeroModel.TalentResonanceLevel + 1), this._nextResonanceLevelConfig ? (this.NextValue.string = "allianceBase_level".ToUILocale().Fmt(this._nextResonanceLevelConfig.Id), this.TipLabel.string = "HeroTalent_ResonanceTip".ToUILocale().Fmt(this._nextResonanceLevelConfig.TalentLevel)) : (this.NextValue.string = "allianceBase_level".ToUILocale().Fmt(this._userHeroModel.TalentResonanceLevel), this.TipLabel.node.parent.active = !1, this.UpgradeButton.node.active = !1, this.IsMaxLevel.node.parent.active = !0, this.IsMaxLevel.string = "common_max_level".ToUILocale())
                }, t.prototype.SetHeroAttr = function() {
                    var e = this;
                    this._nextAttrDataArray = [], this._currentAttrValueArray = [], this.AttrIcons.forEach(function(t, n) {
                        var o, r, i = 0;
                        if (0 == e._userHeroModel.TalentResonanceLevel) r = e._nextResonanceLevelConfig.Attrs[n].Items[0], o = h.default.GetHeroAttribute(r, i);
                        else {
                            var a = e._currentResonanceLevelConfig.Attrs[n];
                            r = a.Items[0], i = a.Items[1], o = h.default.GetHeroAttribute(r, i)
                        }
                        if (e._currentAttrValueArray.push(o.Value), t.spriteFrame = o.Icon, e.AttrNames[n].string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + o.Name, e._nextResonanceLevelConfig) {
                            var s = h.default.GetHeroAttribute(r, e._nextResonanceLevelConfig.Attrs[n].Items[1]);
                            e._nextAttrDataArray.push(s), e.AttrValues[n].string = "+" + o.Value + " <outline width=3 color=#221611><color=#6eeea7>+" + s.Value + "</color></outline>"
                        } else e._nextAttrDataArray.push(o), e.AttrValues[n].string = "<color=#ff6900>+" + o.Value + "</color>", e.MaxNodes[n].active = !0
                    })
                }, t.prototype.OnUpgradeButtonClick = function() {
                    var e = this;
                    if (this._userHeroModel.PVETalentLevel < this._nextResonanceLevelConfig.TalentLevel || this._userHeroModel.PVPTalentLevel < this._nextResonanceLevelConfig.TalentLevel) p.UIUtlity.ShowFloatingHint("HeroTalent_LevelNotEnough".ToUILocale());
                    else {
                        var t = c.DataCenter.Instance.GetIntData(g.UserDataKey.Power),
                            n = new s.Req_Team_HeroTalentResonanceUpgrade;
                        n.Sid = this._heroSid, d.RpcComponent.Instance.Call(n, function() {
                            a.UIManager.Instance.ShowUIPanel(f.PanelConfig.TalentResonanceSuccessPanel.Path, e._userHeroModel.TalentResonanceLevel, e._nextAttrDataArray, e._currentAttrValueArray), a.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattlePowerChangePanel.Path, t, c.DataCenter.Instance.GetIntData(g.UserDataKey.Power))
                        })
                    }
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "SmallTitles", void 0), i([_(cc.Label)], t.prototype, "PveLevelTag", void 0), i([_(cc.Label)], t.prototype, "PveLevelValue", void 0), i([_(cc.Label)], t.prototype, "PvpLevelTag", void 0), i([_(cc.Label)], t.prototype, "PvpLevelValue", void 0), i([_(cc.Label)], t.prototype, "ResonanceLevelTag", void 0), i([_(cc.Label)], t.prototype, "CurrentValue", void 0), i([_(cc.Label)], t.prototype, "NextValue", void 0), i([_(cc.Sprite)], t.prototype, "AttrIcons", void 0), i([_(cc.Label)], t.prototype, "AttrNames", void 0), i([_(cc.RichText)], t.prototype, "AttrValues", void 0), i([_(cc.Node)], t.prototype, "MaxNodes", void 0), i([_(cc.Label)], t.prototype, "TipLabel", void 0), i([_(cc.Button)], t.prototype, "UpgradeButton", void 0), i([_(cc.Label)], t.prototype, "UpgradeButtonLabel", void 0), i([_(cc.Label)], t.prototype, "IsMaxLevel", void 0), i([I], t)
            }(a.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HeroTestPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "60142PQwKlFXoE1NgBc60sT", "HeroTestPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Etc"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../ShareConsts/BattleConsts"),
            f = e("../../../Consts/Consts"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../../Util/TimeUtil"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../../Components/Components"),
            v = e("../../Components/DataCenter"),
            b = e("../../Components/RpcComponent"),
            S = e("../../RedDot/RedDotManager"),
            w = e("../Auxiliary/UIUtlity"),
            P = e("../Components/ItemComponent"),
            A = e("../Components/SmallRankListComponent"),
            T = e("./NodePool"),
            R = e("../Battle/BattleManager"),
            L = e("../../Auxiliary/GameEventsListener"),
            k = cc._decorator,
            O = k.ccclass,
            M = k.property,
            D = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new d.UIPanelType(d.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.TaskButton = null, t.TaskButtonLabel = null, t.ReturnButton = null, t.ChallengeButton = null, t.ChallengeButtonLabel = null, t.MagnifierButton = null, t.ChallengePanelTitle = null, t.ChallengePanelTag = null, t.LeftTimeRichText = null, t.LevelIcon = null, t.LevelLabel = null, t.ItemContainer = null, t.MaxDamageRichText = null, t.NextLevelRichText = null, t.AvatarNode = null, t.DollNode = null, t.TaskRedNode = null, t.SmallRankList = null, t.ReceiveButton = null, t.ReceiveButtonLabel = null, t.RedDotNode = null, t._items = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    d.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    d.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(_.BundlePath.ItemComponent), this.LoadDynamicAsset("OpenServerActivity/Private/ChallengeTaskListItem"), this.LoadDynamicAsset("OpenServerActivity/Private/DailyRewardListItem"), this.LoadDynamicAsset("OpenServerActivity/Png/OpenServerActivity", cc.SpriteAtlas)]).then(function(e) {
                                        t._itemPrefab = e[0], t._taskSinglePrefab = e[1], t._rewardSinglePrefab = e[2], t._atlas = e[3], t._itemPool = new T.default(t._itemPrefab)
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "openServer_heroTest".ToUILocale(), this.TaskButtonLabel.string = "bossWar_task".ToUILocale(), this.ChallengeButtonLabel.string = "activityBoss_challenge".ToUILocale(), this.ChallengePanelTitle.string = "openServer_heroTest_currentLevelDailyReward".ToUILocale(), this.ChallengePanelTag.string = "openServer_heroTest_moreDamageMoreReward".ToUILocale(), this.ReceiveButtonLabel.string = "receive".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.MagnifierButton.node.on("click", this.OnMagnifierButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this), this._deadLine = g.TimeUtil.Get0ClockTs(b.RpcComponent.Instance.ServerTime) + p.Etc.DayDuration
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this);
                    var o = t[0];
                    this._data = v.DataCenter.Instance.ActivityConfigs[o], this._idToTaskLocals = {}, this._data._Locale.forEach(function(e) {
                        n._idToTaskLocals[e.Id] = e.Content
                    })
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this.node.opacity = 255, this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this._model = v.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._data._id), this._damageNumber = this._model.IntValue, this._challengeTimes = this._model.IntArray[0];
                    var o = null == this._damageNumber || 0 == this._damageNumber,
                        r = null == this._challengeTimes || 0 == this._challengeTimes;
                    if (o && r) this.LevelIcon.node.active = !1, this.LevelLabel.node.active = !1, this.ItemContainer.active = !1, this.NextLevelRichText.node.parent.active = !1, this.MaxDamageRichText.string = "openServer_heroTest_notYet".ToUILocale(), this.ChallengePanelTag.node.active = !0;
                    else {
                        this.IsCurrentLevelMax();
                        var i = this._currentLevel > 0;
                        if (this.NextLevelRichText.node.parent.active = !0, this.LevelIcon.node.active = i, this.LevelLabel.node.active = i, this.ItemContainer.active = i, this.ChallengePanelTag.node.active = !i, this.LevelLabel.string = "openServer_heroTest_level".ToUILocale().Fmt(this._currentLevel), this.MaxDamageRichText.string = "openServer_heroTest_maxDamage".ToUILocale().Fmt(this._damageNumber), i) {
                            for (var a = this._data.Rewards[this._currentLevel - 1].Rewards, s = void 0, u = 0; u < a.length; u++) {
                                if (null == this._items[u]) {
                                    var p = cc.instantiate(this._itemPrefab);
                                    p.setParent(this.ItemContainer), this._items[u] = p.getComponent(P.ItemComponent)
                                }
                                this._items[u].node.active = !0, s = C.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, a[u].Items[0]), this._items[u].Init({
                                    ItemId: s.Id,
                                    Count: a[u].Items[1]
                                }, s.Star ? P.ItemComponentType.ItemWithStar : P.ItemComponentType.ItemCommon)
                            }
                            for (u = a.length; u < this._items.length; u++) this._items[u].node.active = !1;
                            this.LevelIcon.spriteFrame = this._atlas.getSpriteFrame("alliance_sign_" + this._data.Rewards[this._currentLevel - 1].MedalLevel)
                        }
                    }
                    if (this.LoadHero(), S.RedDotManager.Instance.BindInstance(this.TaskButton.node, S.RedDotManager.Instance.InstanceRedDot.HeroTestTaskNode, {
                            Value1: this._data._id
                        }), !t) {
                        var d = new c.Req_Activity_GetRank;
                        d.ActivityId = this._data._id, b.RpcComponent.Instance.Call(d, function(e) {
                            n.SmallRankList.InitUIForActivity(n._data._id, null, null, e)
                        }, function() {
                            n.SmallRankList.InitUIForActivity(n._data._id)
                        })
                    }
                    this.SetReceiveBtn(), L.default.Instance._zeroRefreshPanel = this
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "openServer_heroTest".ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: ["openServer_heroTest_RuleText".ToUILocale()]
                    };
                    w.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = [];
                    this._heroConfig.Skills.forEach(function(t) {
                        e.push(t.Items[0])
                    }), d.UIManager.Instance.ShowUIPanel(_.PanelConfig.ChallengeTaskPanel.Path, this._taskSinglePrefab, this._itemPool, e, this._data.Tasks, this._data._id, this._data.Common.Pictures[0], this._idToTaskLocals)
                }, t.prototype.OnChallengeButtonClick = function() {
                    m.default.CheckActivityIsEnd(this._data.Common, !0) || n.StartBattle(this._data)
                }, t.prototype.OnMagnifierButtonClick = function() {
                    d.UIManager.Instance.ShowUIPanel(_.PanelConfig.DailyRewardPanel.Path, this._rewardSinglePrefab, this._itemPool, this._data.Rewards, this._currentLevel, this._atlas)
                }, t.prototype.OnItemClick = function(e, t) {
                    "Grid687" == t.parent.name && w.UIUtlity.ShowItemTip(t.getComponent(P.ItemComponent).ItemId, t)
                }, t.prototype.OnReturnButtonClick = function() {
                    d.UIManager.Instance.BackUIPanel()
                }, t.prototype.CheckTodayCanReceive = function() {
                    var e = this._model && this._model.IntArray && this._model.IntArray[1] ? this._model.IntArray[1] : 0,
                        t = m.default.Instance.ComputeActivitStartTime(this._data.Common);
                    return e < g.TimeUtil.GetDiffDays(t, b.RpcComponent.Instance.ServerTime, !0) + 1
                }, t.prototype.CheckDamageIsEnough = function() {
                    var e = this._data.Rewards[0].RequireDamage;
                    return !!(this._model && this._model.IntValue >= e)
                }, t.prototype.SetReceiveBtn = function() {
                    var e = this.CheckDamageIsEnough(),
                        t = this.CheckTodayCanReceive();
                    this.RedDotNode.active = e && t, e && t ? w.UIUtlity.SetGray(this.ReceiveButton.node, !1, !0) : w.UIUtlity.SetGray(this.ReceiveButton.node, !0, !0)
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = this,
                        t = this.CheckDamageIsEnough(),
                        n = this.CheckTodayCanReceive();
                    t ? n ? w.UIUtlity.ShowHintPanel(null, "heroTest_receive_hint".ToUILocale(), "", null, "", function() {
                        var t = new c.Req_Activity_DrawHeroTestChallengeReward;
                        t.ActivityId = e._data._id, b.RpcComponent.Instance.Call(t, function(e) {
                            w.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }) : w.UIUtlity.ShowFloatingHint("ExquisiteCustomCard_RewardGot".ToUILocale()) : w.UIUtlity.ShowFloatingHint("heroTest_no_reward".ToUILocale())
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - b.RpcComponent.Instance.ServerTime;
                    e < 0 && (this._deadLine = g.TimeUtil.Get0ClockTs(b.RpcComponent.Instance.ServerTime) + p.Etc.DayDuration), this.LeftTimeRichText.string = "openServer_countDown".ToUILocale().Fmt(m.default.ActivityTimeLeftFormat(e))
                }, t.prototype.LoadHero = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._data.CustomPart.HeroId == this._showHeroId ? [2] : (this._showHeroId = this._data.CustomPart.HeroId, this._heroConfig = C.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, this._showHeroId), e = this.LoadDynamicAsset(this._heroConfig.UIAvatar + "/Avatar"), t = this.LoadDynamicAsset("Hero_" + this._heroConfig.Model + "/HeroAvatar"), [4, Promise.all([e, t]).then(function(e) {
                                        if (n.isValid) {
                                            n.AvatarNode.destroyAllChildren();
                                            var t = cc.instantiate(e[0]);
                                            t.setParent(n.AvatarNode), m.default.Instance.SetHeroAvatarSkin(t, n._heroConfig.Id, n._heroConfig.StarLevel), n.DollNode.destroyAllChildren(), (t = cc.instantiate(e[1])).setParent(n.DollNode), t.getComponent(sp.Skeleton).setAnimation(0, h.SkillAnimationType.Standby, !0)
                                        } else e.forEach(function(e) {
                                            d.AssetsManager.Instance.UnloadAsset(e)
                                        })
                                    })]);
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.IsCurrentLevelMax = function() {
                    if (null != this._damageNumber) {
                        if (this._currentLevel = 0, this._damageNumber < this._data.Rewards[this._data.Rewards.length - 1].RequireDamage) {
                            for (; this._currentLevel < this._data.Rewards.length && this._data.Rewards[this._currentLevel].RequireDamage < this._damageNumber;) this._currentLevel++;
                            return this._nextLevel = this._currentLevel + 1, this._nextLevelEXP = this._data.Rewards[this._currentLevel].RequireDamage, this.NextLevelRichText.string = "openServer_heroTest_nextLevel".ToUILocale().Fmt(this._nextLevelEXP, this._nextLevel), !1
                        }
                        return this._currentLevel = this._data.Rewards.length, this.NextLevelRichText.string = "openServer_heroTest_attain_maxLevel".ToUILocale().Fmt(this._data.Rewards[this._data.Rewards.length - 1].Id), !0
                    }
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.CountDown), this._itemPool && this._itemPool.Clear()
                }, t.InitBattle = function() {
                    var e = f.MapType.ActivityHeroTest;
                    d.Game.EventDispatcher.Only(f.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), d.Game.EventDispatcher.Only(f.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), d.Game.EventDispatcher.Only(f.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), d.Game.EventDispatcher.Only(f.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), d.Game.EventDispatcher.Only(f.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.RestartBattle = function() {
                    n.StartBattle(n.CurrentActivityConfig)
                }, t.StartBattle = function(e) {
                    n.CurrentActivityConfig = e, d.UIManager.Instance.ShowUIPanel(_.PanelConfig.BattleFormationPanel.Path, function(e) {
                        var t = new c.Req_Activity_HeroTestChallenge;
                        t.ActivityId = n.CurrentActivityConfig._id, t.Formations = e, b.RpcComponent.Instance.Call(t, function(e) {
                            var t = {
                                BossHPBarCapacityArray: C.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, f.LevelParamType.ActivityHeroTestBossHp).Data
                            };
                            R.BattleManager.Instance.StartPlay(e.Reports, t)
                        })
                    }, [n.CurrentActivityConfig.CustomPart.MapId])
                }, t.SettleBattle = function(e) {
                    var t = new c.Req_Map_BattleSettlement;
                    t.MapType = y.MapType.ActivityHeroTest, b.RpcComponent.Instance.Call(t, function(t) {
                        e.SettleParams = t.ExtraParam[0].Items, R.BattleManager.Instance.ShowSettlePanel(_.PanelConfig.SettlementWinPanel.Path, "OpenServerActivity/SubPanel/HeroTestSuccessSettlementComponent", e)
                    })
                }, t.CancelBattle = function() {
                    var e = new c.Req_Map_CancelChallenge;
                    e.MapType = f.MapType.ActivityHeroTest, b.RpcComponent.Instance.Call(e, null)
                }, t.OnBattleSwitchToBackground = function() {
                    d.UIManager.Instance.QuitPanelStack(_.PanelConfig.HeroTestPanel.Path)
                }, t.CurrentActivityConfig = null, i([M(cc.Label)], t.prototype, "Title", void 0), i([M(cc.Button)], t.prototype, "RuleButton", void 0), i([M(cc.Button)], t.prototype, "TaskButton", void 0), i([M(cc.Label)], t.prototype, "TaskButtonLabel", void 0), i([M(cc.Button)], t.prototype, "ReturnButton", void 0), i([M(cc.Button)], t.prototype, "ChallengeButton", void 0), i([M(cc.Label)], t.prototype, "ChallengeButtonLabel", void 0), i([M(cc.Button)], t.prototype, "MagnifierButton", void 0), i([M(cc.Label)], t.prototype, "ChallengePanelTitle", void 0), i([M(cc.Label)], t.prototype, "ChallengePanelTag", void 0), i([M(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([M(cc.Sprite)], t.prototype, "LevelIcon", void 0), i([M(cc.Label)], t.prototype, "LevelLabel", void 0), i([M(cc.Node)], t.prototype, "ItemContainer", void 0), i([M(cc.RichText)], t.prototype, "MaxDamageRichText", void 0), i([M(cc.RichText)], t.prototype, "NextLevelRichText", void 0), i([M(cc.Node)], t.prototype, "AvatarNode", void 0), i([M(cc.Node)], t.prototype, "DollNode", void 0), i([M(cc.Node)], t.prototype, "TaskRedNode", void 0), i([M(A.default)], t.prototype, "SmallRankList", void 0), i([M(cc.Button)], t.prototype, "ReceiveButton", void 0), i([M(cc.Label)], t.prototype, "ReceiveButtonLabel", void 0), i([M(cc.Node)], t.prototype, "RedDotNode", void 0), n = i([O], t)
            }(d.BaseUIPanel);
        n.default = D, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent",
        "./NodePool": "NodePool"
    }],
    HeroTestSuccessSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "aa1d8K33atBApySNyWAhLci", "HeroTestSuccessSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/DataCenter"),
            p = e("../Components/CustomProgressBar"),
            d = e("../Components/SettlementBaseComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ThisTurnDamageLabel = null, t.NewRecord = null, t.ProgressBarLabel = null, t.ThisDateRecord = null, t.ThisDataHighestDamage = null, t.LevelIcon = null, t.LevelLabel = null, t.NextLevelDamage = null, t.RewardDeliverLabel = null, t.MedalIcon = null, t.RecordProgress = null, t
                }
                return r(t, e), t.prototype.SetUI = function(t) {
                    this.ThisTurnDamageLabel.string = "openServer_heroTest_thisTurnDamage".ToUILocale(), this.ThisDateRecord.string = "openServer_heroTest_thisDateRecord".ToUILocale(), this.RewardDeliverLabel.string = "openServer_heroTest_deliverByMail".ToUILocale(), this._activityId = t.SettleParams[0], this.GetNecessaryValue(), e.prototype.SetUI.call(this, t), this.ThisDataHighestDamage.string = "openServer_heroTest_thisTurnHighestDamage".ToUILocale().Fmt(this._maxDamage), this.NextLevelDamage.string = "openServer_heroTest_damageToNextLevel".ToUILocale().Fmt(this._nextReward.RequireDamage, this._nextLevel);
                    var n = t.SettleParams[1];
                    this._isFullLevel && (this.NextLevelDamage.string = "openServer_heroTest_damageMax".ToUILocale()), this.ProgressBarLabel.string = n + "/" + this._nextReward.RequireDamage, this.RecordProgress.progress = n / this._nextReward.RequireDamage, this.NewRecord.active = n >= this._maxDamage, this.SetMedalIcon()
                }, t.prototype.GetNecessaryValue = function() {
                    var e;
                    e = u.DataCenter.Instance.ActivityConfigs[this._activityId], c.EZLog.Log("\u5956\u52b1\u6570\u636e = ", e.Rewards);
                    var t = u.DataCenter.Instance.GetDataById(l.UserActivity_Model, e._id);
                    this._maxDamage = null == t.IntValue ? 0 : t.IntValue, c.EZLog.Log("\u6700\u5927\u4f24\u5bb3 = ", this._maxDamage);
                    var n = 0;
                    if (this._maxDamage < e.Rewards[e.Rewards.length - 1].RequireDamage) {
                        for (; n < e.Rewards.length && e.Rewards[n].RequireDamage <= this._maxDamage;) n++;
                        this._isFullLevel = !1
                    } else n = e.Rewards.length, this._isFullLevel = !0;
                    this._nextLevel = this._isFullLevel ? n : n + 1, this._nextReward = e.Rewards[this._isFullLevel ? e.Rewards.length - 1 : n]
                }, t.prototype.SetMedalIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, c.AssetsManager.Instance.LoadAsset("OpenServerActivity/Png/OpenServerActivity", cc.SpriteAtlas)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._asset = e, this.MedalIcon.spriteFrame = e.getSpriteFrame("alliance_sign_" + this._nextReward.MedalLevel), this.LevelLabel.string = "openServer_heroTest_level".ToUILocale().Fmt(this._nextReward.Id), [2]) : (c.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    c.AssetsManager.Instance.UnloadAsset(this._asset)
                }, i([y(cc.Label)], t.prototype, "ThisTurnDamageLabel", void 0), i([y(cc.Node)], t.prototype, "NewRecord", void 0), i([y(cc.Label)], t.prototype, "ProgressBarLabel", void 0), i([y(cc.Label)], t.prototype, "ThisDateRecord", void 0), i([y(cc.RichText)], t.prototype, "ThisDataHighestDamage", void 0), i([y(cc.Sprite)], t.prototype, "LevelIcon", void 0), i([y(cc.Label)], t.prototype, "LevelLabel", void 0), i([y(cc.RichText)], t.prototype, "NextLevelDamage", void 0), i([y(cc.Label)], t.prototype, "RewardDeliverLabel", void 0), i([y(cc.Sprite)], t.prototype, "MedalIcon", void 0), i([y(p.default)], t.prototype, "RecordProgress", void 0), i([f], t)
            }(d.default);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent"
    }],
    HeroTestTowerPlayerComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9806bBIOuJMa6vKo0ql2FR0", "HeroTestTowerPlayerComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = e("./LoadAssetHelper"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.Pet = 100] = "Pet", e[e.MagicCircleBottom = 200] = "MagicCircleBottom", e[e.MagicCircleTop = 300] = "MagicCircleTop"
        })(a || (a = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HeroTable = null, t.FlagBg = null, t.FlagTitle = null, t.MagicCircleBottomNode = null, t.HeroNode = null, t.MagicCircleTopNode = null, t.PetNode = null, t.NameLabel = null, t.PlayerInfoNode = null, t.LevelLabel = null, t.UserDesignationIcon = null, t.ZoneLabel = null, t.BeLikeButton = null, t.BeLikeButtonLabel = null, t.DetailButton = null, t._likeUidMap = {}, t._isInit = !1, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.BeLikeButton.node.on("click", this.OnBeLikeButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(p.default))
            }, t.prototype.Init = function(e, t, n, o) {
                this._rankData = e, this._index = t, this._activityConfig = n, this._isInit || (this._isInit = !0, this.FlagTitle.spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + (this._index + 1)), this._loadAssetHelper.LoadSpriteFrame("CommonBg/championPlatformBg_" + this._index, this.FlagBg, null, 1)), o && this.SetLikeUidData(o), this._rankData ? (this.HeroNode.active = !0, this.MagicCircleBottomNode.active = !0, this.MagicCircleTopNode.active = !0, this.PetNode.active = !0, this.PlayerInfoNode.active = !0, this.HeroTable.active = !0, this.LoadHeroAvatar(), this.SetPlayerInfo(), this.RefreshBelikeButton()) : (this.NameLabel.string = "rank_no_people".ToUILocale(), this.HeroNode.active = !1, this.MagicCircleBottomNode.active = !1, this.MagicCircleTopNode.active = !1, this.PetNode.active = !1, this.PlayerInfoNode.active = !1, this.HeroTable.active = !1)
            }, t.prototype.SetLikeUidData = function(e) {
                for (var t in e)(!this._likeUidMap[t] || e[t] > this._likeUidMap[t]) && (this._likeUidMap[t] = e[t])
            }, t.prototype.LoadHeroAvatar = function() {
                var e = this._rankData.PlayerInfo.HeadIcon,
                    t = d.ConfigDataComponent.Instance.GetConfigById(c.HeroSkin_Config, e);
                if (t || (t = d.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, e)), this._loadAssetHelper.LoadPrefab("Hero_" + t.Model + "/HeroAvatar", this.HeroNode, function(e) {
                        e.getComponent(sp.Skeleton).setAnimation(0, h.SkillAnimationType.Standby, !0)
                    }), this.MagicCircleTopNode && this.MagicCircleBottomNode) {
                    var n = this._rankData.PlayerInfo.MagicCircle;
                    this.SetMagicCircleByItemId(n)
                }
                if (this.PetNode) {
                    var o = this._rankData.PlayerInfo.Pet;
                    this.SetPetByItemId(o)
                }
            }, t.prototype.SetMagicCircleByItemId = function(e) {
                if (e) {
                    var t = d.ConfigDataComponent.Instance.GetConfigById(c.MagicCircleBase_Config, e);
                    if (t) {
                        var n, o, r = t.Model + "/HeroAvatar";
                        this._loadAssetHelper.LoadPrefab(r, this.MagicCircleBottomNode, function(e) {
                            n = e, o && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, a.MagicCircleBottom), this._loadAssetHelper.LoadPrefab(r, this.MagicCircleTopNode, function(e) {
                            (o = e) && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, a.MagicCircleTop)
                    }
                }
            }, t.prototype.SetPetByItemId = function(e) {
                if (e) {
                    var t = d.ConfigDataComponent.Instance.GetConfigById(c.PetBase_Config, e);
                    if (t) {
                        var n = t.Model + "/HeroAvatar";
                        this._loadAssetHelper.LoadPrefab(n, this.PetNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0)
                        }, a.Pet)
                    }
                }
            }, t.prototype.SetPlayerInfo = function() {
                this.ZoneLabel.string = "S" + this._rankData.Zone, this.NameLabel.string = this._rankData.PlayerInfo.Name, this.LevelLabel.node.parent.active = !0;
                var e = Math.floor(this._rankData.Value / h.SpecialDataKey.ActHeroTestTowerTime);
                this.LevelLabel.string = "level".ToUILocale().Fmt(e), f.default.SetDesignationIcon(this._rankData.PlayerInfo.Designation, this.UserDesignationIcon)
            }, t.prototype.OnBeLikeButtonClick = function() {
                if (this._canClickLike) {
                    var e = new l.Req_Activity_HeroTestTowerLike;
                    e.ActivityId = this._activityConfig._id, e.Uid = this._rankData.PlayerInfo.Uid, d.RpcComponent.Instance.Call(e, this.OnHeroTestTowerRequestSuccess.bind(this))
                }
            }, t.prototype.OnHeroTestTowerRequestSuccess = function(e) {
                y.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this._likeUidMap[this._rankData.PlayerInfo.Uid] ? this._likeUidMap[this._rankData.PlayerInfo.Uid] += 1 : this._likeUidMap[this._rankData.PlayerInfo.Uid] = 1, this.RefreshBelikeButton()
            }, t.prototype.RefreshBelikeButton = function() {
                this.BeLikeButton.node.active = !0;
                var e = d.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityConfig._id),
                    t = 0;
                for (var n in e.IntMap) e.IntMap[n] && t++;
                t >= this._activityConfig.CustomPart.LikeCount || e.IntMap[this._rankData.PlayerInfo.Uid] ? (this._canClickLike = !1, y.UIUtlity.OnNodeGray(this.BeLikeButton.node)) : (this._canClickLike = !0, y.UIUtlity.OffNodeGray(this.BeLikeButton.node));
                var o = this._likeUidMap[this._rankData.PlayerInfo.Uid] ? this._likeUidMap[this._rankData.PlayerInfo.Uid] : 0;
                this.BeLikeButtonLabel.string = o.toString()
            }, t.prototype.OnDetailButtonClick = function() {
                if (this._rankData.PlayerInfo && this._rankData.PlayerInfo.Uid > 0) {
                    if (this._rankData.PlayerInfo.Uid == d.DataCenter.Instance.Uid) return;
                    s.UIManager.Instance.ShowUIPanel(g.PanelConfig.PlayerInfoPanel.Path, this._rankData.PlayerInfo.Uid)
                } else y.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale())
            }, i([_(cc.Node)], t.prototype, "HeroTable", void 0), i([_(cc.Sprite)], t.prototype, "FlagBg", void 0), i([_(cc.Sprite)], t.prototype, "FlagTitle", void 0), i([_(cc.Node)], t.prototype, "MagicCircleBottomNode", void 0), i([_(cc.Node)], t.prototype, "HeroNode", void 0), i([_(cc.Node)], t.prototype, "MagicCircleTopNode", void 0), i([_(cc.Node)], t.prototype, "PetNode", void 0), i([_(cc.Label)], t.prototype, "NameLabel", void 0), i([_(cc.Node)], t.prototype, "PlayerInfoNode", void 0), i([_(cc.Label)], t.prototype, "LevelLabel", void 0), i([_(cc.Sprite)], t.prototype, "UserDesignationIcon", void 0), i([_(cc.Label)], t.prototype, "ZoneLabel", void 0), i([_(cc.Button)], t.prototype, "BeLikeButton", void 0), i([_(cc.Label)], t.prototype, "BeLikeButtonLabel", void 0), i([_(cc.Button)], t.prototype, "DetailButton", void 0), i([I], t)
        }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    HeroTestTowerSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "63d88d+A79OrpAa0nImQKnx", "HeroTestTowerSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("./CustomRichText"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/UIFrame/UIManager"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./DisplayRewardsComponent"),
            f = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Components/Components"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Battle/BattleManager"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BattleName = null, t.CommonRewardNode = null, t.CommonRewardContent = null, t.CommonRewardLineText = null, t.SpecialRewardNode = null, t.SpecialRewardContent = null, t.SpecialRewardLineText = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t.BtnNextLevel = null, t.LabelBtnNextLevel = null, t._mapId = 0, t._isInit = !1, t._activityId = 0, t
                }
                return r(t, e), t.prototype.SetUI = function(t, n, o, r) {
                    e.prototype.SetUI.call(this, t), this._mapId = t.Reports[0].MapId, this._settlementData = r[0], this._activityId = this._settlementData.ExtraParam[0].Items[0], this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent());
                    for (var i = g.DataCenter.Instance.ActivityConfigs[this._activityId], a = 0; a < i.__Maps.length; a++)
                        if (i.__Maps[a].MapId == this._mapId) {
                            this.BattleName.Init("<outline width=3 color=#221611>" + "level".ToUILocale().Fmt("<color=#ffe685>" + i.__Maps[a].Id + "</color>"));
                            break
                        } this.SetBtnState(), this.RenderContent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.CommonRewardLineText.string = "win_get_reward".ToUILocale(), this.SpecialRewardLineText.string = "GiftCode_extraReward".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale(), this.LabelBtnNextLevel.string = "idleBattle_main_nextLevel".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnNextLevel.node.on("click", this.OnBtnNextClick, this)
                }, t.prototype.SetBtnState = function() {
                    var e = p.UIManager.Instance.GetUIPanel(d.PanelConfig.ActivityHeroTestTowerPanel.Path);
                    this.BtnReturn.node.active = null == e
                }, t.prototype.OnBtnSureClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    p.UIManager.Instance.BackUIPanel();
                    var e = new u.Req_Activity_HeroTestTowerEnter;
                    e.ActivityId = this._activityId, g.RpcComponent.Instance.Call(e, function(e) {
                        p.UIManager.Instance.ShowUIPanel(d.PanelConfig.ActivityHeroTestTowerEntryPanel.Path, this._activityId, e)
                    }.bind(this))
                }, t.prototype.OnBtnNextClick = function() {
                    p.UIManager.Instance.BackUIPanel(), this.CheckCanNextLevel() && (this._BattleData.InBackground && m.UIUtlity.ShowFloatingHint("idleBattle_startNext".ToUILocale()), this.RequestHeroTestTowerChallenge(null, this._BattleData.InBackground))
                }, t.prototype.RequestHeroTestTowerChallenge = function(e, t) {
                    var n = new u.Req_Activity_HeroTestTowerChallenge;
                    n.ActivityId = this._activityId, n.Formations = e, g.RpcComponent.Instance.Call(n, function(e) {
                        for (var n = !0, o = g.DataCenter.Instance.ActivityConfigs[this._activityId], r = 0; r < o.__Maps.length; r++)
                            if (o.__Maps[r].MapId == e.Reports[0].MapId && o.__Maps[r].CanSkip) {
                                n = !1;
                                break
                            } var i = {
                            CanSkipPlay: n,
                            CanPlayInBackground: !1
                        };
                        I.BattleManager.Instance.StartPlay(e.Reports, i, t)
                    }.bind(this))
                }, t.prototype.CheckCanNextLevel = function() {
                    var e = g.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId),
                        t = g.DataCenter.Instance.ActivityConfigs[this._activityId],
                        n = t.__Maps.length;
                    if (e) {
                        var o = _.default.Instance.ComputeDeadTime(t.Common);
                        if (g.RpcComponent.Instance.ServerTime > o) return m.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()), !1;
                        if (e.IntArray[0] + 1 > n) return m.UIUtlity.ShowFloatingHint("climbTower_limit_max_level".ToUILocale()), !1
                    }
                    return !0
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._displayRewardPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(d.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (e._displayRewardPrefab = s.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    if (t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(h.DisplayRewardsComponent), this.CommonRewardContent.addChild(t), n = [], this._settlementData.Rewards && this._settlementData.Rewards.length > 0 && this._settlementData.Rewards.forEach(function(e) {
                                            n.push({
                                                ItemId: e.ItemId,
                                                Count: e.Count
                                            })
                                        }), this._rewardComponent.Init(n, this.CommonRewardContent.height), this.SpecialRewardNode.active = !1, this._settlementData.ExtraParam.length > 1) {
                                        for (this.SpecialRewardNode.active = !0, o = cc.instantiate(this._displayRewardPrefab), r = o.getComponent(h.DisplayRewardsComponent), this.SpecialRewardContent.addChild(o), i = [], a = 1; a < this._settlementData.ExtraParam.length; a++) l = this._settlementData.ExtraParam[a].Items, i.push({
                                            ItemId: l[0],
                                            Count: l[1]
                                        });
                                        r.Init(i, this.SpecialRewardContent.height)
                                    }
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._displayRewardPrefab && (y.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), this._displayRewardPrefab = null)
                }, i([b(c.CustomRichText)], t.prototype, "BattleName", void 0), i([b(cc.Node)], t.prototype, "CommonRewardNode", void 0), i([b(cc.Node)], t.prototype, "CommonRewardContent", void 0), i([b(cc.Label)], t.prototype, "CommonRewardLineText", void 0), i([b(cc.Node)], t.prototype, "SpecialRewardNode", void 0), i([b(cc.Node)], t.prototype, "SpecialRewardContent", void 0), i([b(cc.Label)], t.prototype, "SpecialRewardLineText", void 0), i([b(cc.Button)], t.prototype, "BtnReturn", void 0), i([b(cc.Button)], t.prototype, "BtnSure", void 0), i([b(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([b(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([b(cc.Button)], t.prototype, "BtnNextLevel", void 0), i([b(cc.Label)], t.prototype, "LabelBtnNextLevel", void 0), i([v], t)
            }(l.default);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./CustomRichText": "CustomRichText",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    HeroTestTowerStarAddtionComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "58d87QcGb5P25p7a3tvI2Wa", "HeroTestTowerStarAddtionComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./HeroTestTowerStarAttrComponent"),
            s = e("./LevelComponent"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelComponent = null, t.AttrContainer = null, t._attrComponentArray = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._attrPrefab = n, this._starAddtion = t, this.LevelComponent.Init(e), this.SetAttrContaienr()
                }, t.prototype.SetAttrContaienr = function() {
                    for (var e = this._starAddtion.length > 3 ? 3 : this._starAddtion.length, t = 0; t < e; t++) {
                        var n = this._attrComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._attrPrefab);
                            o.setParent(this.AttrContainer), n = o.getComponent(a.default), this._attrComponentArray[t] = n
                        }
                        n.node.active = !0, n.Init(this._starAddtion[t].Items[0], this._starAddtion[t].Items[1])
                    }
                    if (e < this._attrComponentArray.length)
                        for (t = e; t < this._attrComponentArray.length; t++) this._attrComponentArray[t].node.active = !1
                }, i([u(s.LevelComponent)], t.prototype, "LevelComponent", void 0), i([u(cc.Node)], t.prototype, "AttrContainer", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "./HeroTestTowerStarAttrComponent": "HeroTestTowerStarAttrComponent",
        "./LevelComponent": "LevelComponent"
    }],
    HeroTestTowerStarAddtionPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c77c0jmYUpMUqvtnUCpIGrq", "HeroTestTowerStarAddtionPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../Components/CustomLayout"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Components/HeroTestTowerStarAddtionComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Customlayout = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ActivityHeroTestTowerPanel/Components/HeroTestTowerStarAddtionComponent", cc.Prefab), n = this.LoadDynamicAsset("ActivityHeroTestTowerPanel/Components/HeroTestTowerStarAttrComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._addtionItemPrefab = e[0], o._attrPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "ActivityHeroTestTower_StarAddtion_Title".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._starIdArray = t[1], this._attrMap = t[2], n && (this._activityConfig = c.DataCenter.Instance.ActivityConfigs[n])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.Customlayout.Init(this._addtionItemPrefab), this._activityConfig ? this.Customlayout.RenderLayOut(this._activityConfig.__Stars.length) : this.Customlayout.RenderLayOut(this._starIdArray.length))
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.Customlayout && e.forEach(function(e, t) {
                        n._activityConfig ? e.getComponent(d.default).Init(n._activityConfig.__Stars[t].Id, n._activityConfig.__Stars[t].Attrs, n._attrPrefab) : e.getComponent(d.default).Init(t + 5, n._attrMap[n._starIdArray[t]], n._attrPrefab)
                    })
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(u.default)], t.prototype, "Customlayout", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroTestTowerStarAddtionComponent": "HeroTestTowerStarAddtionComponent"
    }],
    HeroTestTowerStarAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b611eFPSHBLJaNn+58j2CW/", "HeroTestTowerStarAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrTag = null, t.AttrValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    var n = a.default.GetHeroAttribute(e, t);
                    this.AttrTag.string = n.Name, this.AttrValue.string = "+" + n.Value
                }, i([c(cc.Label)], t.prototype, "AttrTag", void 0), i([c(cc.Label)], t.prototype, "AttrValue", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    HeroWithNew: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a1fceb/RpdGcrXfHebjaLH8", "HeroWithNew");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Container = null, t.New = null, t.Own = null, t
                }
                return r(t, e), t.prototype.SetItem = function(e, t, n, o) {
                    if (null == this._item) {
                        var r = e.Get();
                        r.setParent(this.Container), this._item = r.getComponent(a.ItemComponent)
                    }
                    return o ? this._item.Init({
                        ItemId: t,
                        StarLevel: n
                    }, a.ItemComponentType.HeroInfo) : this._item.Init({
                        ItemId: t,
                        StarLevel: n
                    }, a.ItemComponentType.Angel), this
                }, t.prototype.SetNew = function(e) {
                    return this.New.active = e, this
                }, t.prototype.SetOwn = function(e) {
                    this.Own.active = e
                }, t.prototype.SetChosen = function(e) {
                    void 0 === e && (e = !1), this._item.SetSelectFlagState(e)
                }, i([c(cc.Node)], t.prototype, "Container", void 0), i([c(cc.Node)], t.prototype, "New", void 0), i([c(cc.Node)], t.prototype, "Own", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Components/ItemComponent": "ItemComponent"
    }],
    HeroWithProbability: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5b09fCq341LIKwyGV4EAtxu", "HeroWithProbability");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Probability = null, t.ItemContainer = null, t
                }
                return r(t, e), t.prototype.SetItem = function(e) {
                    return this._item && (this._item.active = !1), e.setParent(this.ItemContainer), this._item = e, this
                }, t.prototype.SetProbability = function(e) {
                    return this.Probability.string = Math.floor(100 * e) + "%", this
                }, i([l(cc.Label)], t.prototype, "Probability", void 0), i([l(cc.Node)], t.prototype, "ItemContainer", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    HerosRisingStarGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "72122DVJMpH5KgV6Ao0eSaP", "HerosRisingStarGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Components/DataCenter"),
            d = e("../../Components/RpcComponent"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("./BarRewardsComponent"),
            y = e("../Components/HeroElementGroup"),
            g = e("../Components/TaskListComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../../Consts/Etc"),
            v = e("../Components/TaskListComponent"),
            b = e("../../../Consts/GameEventIds"),
            S = e("../../RedDot/RedDotManager"),
            w = e("../../Auxiliary/GlobalDefine"),
            P = e("../Components/ItemComponent");
        (function(e) {
            e[e.normal = 0] = "normal", e[e.new = 1] = "new"
        })(l || (l = {}));
        var A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.Banner = null, t.LeftTimeRichText = null, t.BarHeadLabel = null, t.Bar = null, t.TaskComponent = null, t.ElementGroup = null, t.ElementList = [], t.BackBtnNode = null, t.RuleBtnNode = null, t.BigRewardBtnNode = null, t.BigRewardProgress = null, t.BigRewardLabel = null, t.BigRewardMask = null, t.BigRewardRedDot = null, t.DiamondNode = null, t.BubbleLabel1 = null, t.BubbleLabel2 = null, t._activityId = 0, t._config = null, t._model = null, t._nowTaskList = [], t._taskIdMap = {}, t._taskElementTypeMap = {}, t._itemCount = 0, t._maxItemCount = 0, t._panelState = l.normal, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnChangeElement, this), c.Game.EventDispatcher.On(b.GameEventIds.AddDataDetail.Fmt(h.UserTask_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.On(b.GameEventIds.ChangeDataDetail.Fmt(h.UserTask_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.On(b.GameEventIds.RemoveDataDetail.Fmt(h.UserTask_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.On(b.GameEventIds.AddDataDetail.Fmt(h.UserActivity_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.On(b.GameEventIds.ChangeDataDetail.Fmt(h.UserActivity_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.On(b.GameEventIds.RemoveDataDetail.Fmt(h.UserActivity_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnChangeElement, this), c.Game.EventDispatcher.Off(b.GameEventIds.AddDataDetail.Fmt(h.UserTask_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.Off(b.GameEventIds.ChangeDataDetail.Fmt(h.UserTask_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.Off(b.GameEventIds.RemoveDataDetail.Fmt(h.UserTask_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.Off(b.GameEventIds.AddDataDetail.Fmt(h.UserActivity_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.Off(b.GameEventIds.ChangeDataDetail.Fmt(h.UserActivity_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.Off(b.GameEventIds.RemoveDataDetail.Fmt(h.UserActivity_Model._n_), this.OnCompleteTask, this), c.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(w.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.Title && (this.Title.string = "HerosRising".ToUILocale()), this.BubbleLabel1 && (this.BubbleLabel1.string = "heroRisingStar_receive_time".ToUILocale()), this.TaskComponent.node.on(g.default.completeTask, this.OnCompleteTask, this), this.RuleBtnNode && this.RuleBtnNode.on("click", this.OnClickRule, this), this.BackBtnNode && this.BackBtnNode.on("click", this.OnClickBackBtn, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this), this._activityId = t[0], this._config = p.DataCenter.Instance.ActivityConfigs[this._activityId], this._config._Tasks.forEach(function(e) {
                        n._taskIdMap[e.Id] = e, n._taskElementTypeMap[e.Condition[1]] || (n._taskElementTypeMap[e.Condition[1]] = []), n._taskElementTypeMap[e.Condition[1]].push(e)
                    }), this._maxItemCount = this._config.__Rewards[this._config.__Rewards.length - 1].Progress, this._model = p.DataCenter.Instance.GetDataById(h.UserActivity_Model, this._activityId), this._panelState = this._config.CustomPart.Type
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this._config.Common.ShowImage.split("|"), n = t[0], [4, u.default.LoadActivityTexture(n)];
                                case 1:
                                    return o = r.sent(), this._loadAssets.push(o), this.Banner && (this.Banner.spriteFrame = o), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._itemCount = p.DataCenter.Instance.GetItemCount(this._config.CustomPart.ProgressItemId), !0 !== t ? (this.InitProgressBar(), this.OnChangeElement(I.HeroElementType.Heart, this.ElementGroup.node), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), this.BigRewardProgress && (this.BigRewardProgress.string = "" + this._config.__Rewards[this._config.__Rewards.length - 1].Progress), this.BigRewardBtnNode && this._panelState == l.new && (this.BigRewardLabel.string = "HerosRising_selectSkin".ToUILocale(), this.BigRewardBtnNode.on("click", this.OnClickBigReward, this))) : this.Bar.RefreshBar(this._itemCount, this.GetCurrentProgress()), this.BindRedDot(), this.BarHeadLabel.string = this._itemCount + " /" + this._maxItemCount, this._panelState == l.new && this.RenderBigReward()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.unschedule(this.RefreshDeadLine)
                }, t.prototype.InitProgressBar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c = this;
                        return s(this, function() {
                            return e = [], t = u.default.Instance.ComputeActivitStartTime(this._config.Common), n = t + this._config.CustomPart.RewardTime * C.Etc.DayDuration, o = d.RpcComponent.Instance.ServerTime, r = o > n, 0 == this._config.CustomPart.Rewards.length || r ? e = this._config.__Rewards : (e = this._config.__Rewards.slice(0, this._config.__Rewards.length - 1), (i = new h.HeroStarUp_Rewards).Id = this._config.__Rewards[this._config.__Rewards.length - 1].Id, i.Rewards = this._config.CustomPart.Rewards, i.Progress = this._config.__Rewards[this._config.__Rewards.length - 1].Progress, e.push(i)), a = 0, this._panelState == l.normal && (a = 1.3), this.Bar.Init({
                                rewards: e,
                                type: f.BarRewardsColor.orange,
                                interval: 140,
                                maxWidth: 980,
                                progress: this._itemCount,
                                totalProgress: this._maxItemCount,
                                barProgress: this.GetCurrentProgress(),
                                isReceivedContral: function(e) {
                                    return -1 != c._model.IntArray.indexOf(e)
                                }.bind(this),
                                callBack: this.OnReceiveProgressReward.bind(this),
                                EnlargeLast: a
                            }), [2]
                        })
                    })
                }, t.prototype.GetCurrentProgress = function() {
                    for (var e = 0, t = 0, n = 0; n < this._config.__Rewards.length; n++) {
                        if (!(this._itemCount > this._config.__Rewards[n].Progress)) {
                            t = n;
                            break
                        }
                        e++
                    }
                    if (e == this._config.__Rewards.length) return this._maxItemCount;
                    var o = t > 0 ? this._config.__Rewards[t - 1].Progress : 0;
                    return (e + (this._itemCount - o) / (this._config.__Rewards[t].Progress - o)) * (140 / 840) * this._maxItemCount
                }, t.prototype.InitTaskList = function() {
                    this.TaskComponent.Init(this._activityId, this._nowTaskList), this.TaskComponent.CustomDesc(function(e) {
                        return u.default.GetTaskDesc(e)
                    })
                }, t.prototype.BindRedDot = function() {
                    S.RedDotManager.Instance.BindInstance(this.ElementList[0], S.RedDotManager.Instance.InstanceRedDot.HerosRisingStarHeart, {
                        Value1: this._activityId
                    }), S.RedDotManager.Instance.BindInstance(this.ElementList[1], S.RedDotManager.Instance.InstanceRedDot.HerosRisingStarPower, {
                        Value1: this._activityId
                    }), S.RedDotManager.Instance.BindInstance(this.ElementList[2], S.RedDotManager.Instance.InstanceRedDot.HerosRisingStarTech, {
                        Value1: this._activityId
                    }), S.RedDotManager.Instance.BindInstance(this.ElementList[3], S.RedDotManager.Instance.InstanceRedDot.HerosRisingStarBreak, {
                        Value1: this._activityId
                    }), S.RedDotManager.Instance.BindInstance(this.ElementList[4], S.RedDotManager.Instance.InstanceRedDot.HerosRisingStarFigth, {
                        Value1: this._activityId
                    }), S.RedDotManager.Instance.BindInstance(this.ElementList[5], S.RedDotManager.Instance.InstanceRedDot.HerosRisingStarChaos, {
                        Value1: this._activityId
                    })
                }, t.prototype.OnReceiveProgressReward = function(e) {
                    var t = new h.Req_Activity_DrawStarUpReward;
                    t.ActivityId = this._activityId, t.Id = e, d.RpcComponent.Instance.Call(t, function(e) {
                        _.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.RefreshDeadLine = function() {
                    var e = d.RpcComponent.Instance.ServerTime,
                        t = u.default.Instance.ComputeActivitStartTime(this._config.Common),
                        n = u.default.Instance.ComputeDeadTime(this._config.Common),
                        o = e - t;
                    if (this._config.CustomPart.IsPermanent)
                        if (o / C.Etc.DayDuration > this._config.CustomPart.RewardTime) this.CloseLeftTime();
                        else {
                            var r = t + this._config.CustomPart.RewardTime * C.Etc.DayDuration;
                            e < r ? (this.LeftTimeRichText.string = "HeroRisingStarPackagePanel_DeadlineTimeRichText".ToUILocale().Fmt(u.default.ActivityTimeLeftFormat(r - e)), this._panelState == l.new && this.BubbleLabel2 && (this.BubbleLabel2.string = u.default.ActivityTimeLeftFormat(r - e))) : this.CloseLeftTime()
                        }
                    else n - e < 0 && this.CloseLeftTime(), this.LeftTimeRichText.string = "HeroRisingStarPackagePanel_DeadlineTimeRichText".ToUILocale().Fmt(u.default.ActivityTimeLeftFormat(n - e))
                }, t.prototype.CloseLeftTime = function() {
                    this.LeftTimeRichText.node.parent.active = !1, this._panelState == l.new && this.RenderBigReward(), this.unschedule(this.RefreshDeadLine)
                }, t.prototype.OnChangeElement = function(e, t) {
                    t == this.ElementGroup.node && (this._nowTaskList = [], this._nowTaskList = this._taskElementTypeMap[e], this.InitTaskList())
                }, t.prototype.OnCompleteTask = function() {
                    this._model = p.DataCenter.Instance.GetDataById(h.UserActivity_Model, this._activityId), this.Bar.RefreshBar(p.DataCenter.Instance.GetItemCount(this._config.CustomPart.ProgressItemId), this.GetCurrentProgress())
                }, t.prototype.OnClickBackBtn = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickRule = function() {
                    var e = {
                        name: "HerosRising".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["HerosRising_ruleContent".ToUILocale()]
                    };
                    _.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnClickBigReward = function() {
                    var e, t, n = this._config.__Rewards[this._config.__Rewards.length - 1].Id;
                    if (e = -1 != this._model.IntArray.indexOf(n), t = this._itemCount < this._config.__Rewards[this._config.__Rewards.length - 1].Progress, e || t) {
                        var o = u.default.Instance.ComputeActivitStartTime(this._config.Common) + this._config.CustomPart.RewardTime * C.Etc.DayDuration;
                        d.RpcComponent.Instance.ServerTime > o ? _.UIUtlity.ShowItemTip(this._config.__Rewards[this._config.__Rewards.length - 1].Rewards[0].Items[0], this._finalReward) : _.UIUtlity.ShowItemTip(this._config.CustomPart.Rewards[0].Items[0], this.BigRewardBtnNode)
                    } else this.OnReceiveProgressReward(n)
                }, t.prototype.RenderBigReward = function() {
                    var e, t, n = this._config.__Rewards[this._config.__Rewards.length - 1].Id;
                    e = -1 != this._model.IntArray.indexOf(n), t = this._itemCount < this._config.__Rewards[this._config.__Rewards.length - 1].Progress;
                    var o = u.default.Instance.ComputeActivitStartTime(this._config.Common) + this._config.CustomPart.RewardTime * C.Etc.DayDuration,
                        r = d.RpcComponent.Instance.ServerTime > o;
                    if (this.BigRewardBtnNode && (this.BigRewardBtnNode.active = !r), this.DiamondNode && (this.DiamondNode.active = r, r)) {
                        this._finalReward || (this._finalReward = cc.instantiate(this._itemPrefab), this._finalReward.parent = this.DiamondNode);
                        var i = this._finalReward.getComponent(P.ItemComponent);
                        i.Init({
                            ItemId: this._config.__Rewards[this._config.__Rewards.length - 1].Rewards[0].Items[0],
                            Count: this._config.__Rewards[this._config.__Rewards.length - 1].Rewards[0].Items[1]
                        }), i.SetSelectFlagState(e)
                    }
                    this.BigRewardRedDot.active = !e && !t, this.BigRewardMask && (this.BigRewardMask.active = -1 != this._model.IntArray.indexOf(n))
                }, t.prototype.OnItemClick = function(e, t) {
                    this.DiamondNode && -1 != this.DiamondNode.children.indexOf(t) && this.OnClickBigReward()
                }, i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.Sprite)], t.prototype, "Banner", void 0), i([R(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([R(cc.Label)], t.prototype, "BarHeadLabel", void 0), i([R(f.default)], t.prototype, "Bar", void 0), i([R(v.default)], t.prototype, "TaskComponent", void 0), i([R(y.default)], t.prototype, "ElementGroup", void 0), i([R([cc.Node])], t.prototype, "ElementList", void 0), i([R(cc.Node)], t.prototype, "BackBtnNode", void 0), i([R(cc.Node)], t.prototype, "RuleBtnNode", void 0), i([R(cc.Node)], t.prototype, "BigRewardBtnNode", void 0), i([R(cc.Label)], t.prototype, "BigRewardProgress", void 0), i([R(cc.Label)], t.prototype, "BigRewardLabel", void 0), i([R(cc.Node)], t.prototype, "BigRewardMask", void 0), i([R(cc.Node)], t.prototype, "BigRewardRedDot", void 0), i([R(cc.Node)], t.prototype, "DiamondNode", void 0), i([R(cc.Label)], t.prototype, "BubbleLabel1", void 0), i([R(cc.Label)], t.prototype, "BubbleLabel2", void 0), i([T], t)
            }(c.BaseUIPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TaskListComponent": "TaskListComponent",
        "./BarRewardsComponent": "BarRewardsComponent"
    }],
    HintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "28a97sVwvxOhLgh6jtJHVs7", "HintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GameRecord"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/RpcComponent"),
            f = e("../Auxiliary/Mask"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../Components/DisplayRewardsComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.Text = 0] = "Text", e[e.DisplayReward = 1] = "DisplayReward"
        })(l || (l = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.PopUp, !1, !1, !1, u.AssetUnloadMode.Resident), t.TitleLabel = null, t.InfoLabel = null, t.CacelLabel = null, t.OKLabel = null, t.TextMode = null, t.ScrollerMode = null, t.ScrollerInfoLabel = null, t.ItemMode = null, t.TextBg = null, t.CancelBtn = null, t.OKBtn = null, t.Desc = null, t.CheckToggle = null, t.CheckLabel = null, t.Mask = null, t.CurrencyBar = null, t.OffsetX = 220, t
            }
            return r(t, e), t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.CancelBtn.node.on("click", this.OnCancel, this), this.OKBtn.node.on("click", this.OnConfirm, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._titleText = t[0], this._cancelText = t[2], this._cancelCallback = t[3], this._okText = t[4], this._okCallback = t[5], this._isDailyHint = t[8], this._costItemId = t[9], this._costItemCount = t[10], this.ConfigMsgInfo(t[1]), this.ConfigDesc(t[6]), this.ConfigCheckToggle(t[7]), this._costItemId ? (this.CurrencyBar.node.active = !0, this.CurrencyBar.Init(this._costItemId, !1, this._costItemCount)) : this.CurrencyBar.node.active = !1
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this.CheckToggle.isChecked = !1
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.RefreshInfoState(), this.ConfigButtons()
            }, t.prototype.ConfigMsgInfo = function(e) {
                null !== this._titleText && "" !== this._titleText || (this._titleText = "hint".ToUILocale()), this.TitleLabel.string = this._titleText, this.TextMode.active = !1, this.ScrollerMode.active = !1, "string" == typeof e ? (this.ItemMode.active = !1, this._hintMode = l.Text, e.length > 100 ? (this.ScrollerInfoLabel.string = e, this.ScrollerMode.active = !0) : (this.InfoLabel.string = e, this.TextMode.active = !0)) : (this.ItemMode.active = !0, this._hintMode = l.DisplayReward, this.ConfigDisplayReward(e))
            }, t.prototype.ConfigDesc = function(e) {
                e ? (this.Desc.node.active = !0, this.Desc.string = e) : this.Desc.node.active = !1
            }, t.prototype.ConfigCheckToggle = function(e) {
                "string" == typeof e ? (this._gameRecordInfo = e, this.CheckToggle.node.active = !0, this.CheckLabel.string = e) : (this._gameRecordInfo = e, e ? (this.CheckToggle.node.active = !0, this._isDailyHint ? this.CheckLabel.string = "hint_panel_checkToggle_dailyHint".ToUILocale() : this.CheckLabel.string = ("hint_panel_checkToggle_type_" + e.Type).ToUILocale()) : this.CheckToggle.node.active = !1)
            }, t.prototype.ConfigButtons = function() {
                null === this._cancelText ? (this.OKBtn.node.x = 0, this.CancelBtn.node.active = !1, this.OKBtn.node.active = !0) : null === this._okText ? (this.CancelBtn.node.x = 0, this.CancelBtn.node.active = !0, this.OKBtn.node.active = !1) : (this.CancelBtn.node.active = !0, this.OKBtn.node.active = !0, this.CancelBtn.node.x = -this.OffsetX, this.OKBtn.node.x = this.OffsetX), this._cancelText || (this._cancelText = "cancel".ToUILocale()), this.CacelLabel.string = this._cancelText, this._okText || (this._okText = "ok".ToUILocale()), this.OKLabel.string = this._okText
            }, t.prototype.RefreshInfoState = function() {
                this.TextMode.active && (this.InfoLabel.node.height >= 2 * this.InfoLabel.lineHeight ? this.InfoLabel.horizontalAlign = cc.macro.TextAlignment.LEFT : this.InfoLabel.horizontalAlign = cc.macro.TextAlignment.CENTER)
            }, t.prototype.ConfigDisplayReward = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return void 0 !== this._displayRewardPrefab ? [3, 2] : (t = this, [4, c.AssetsManager.Instance.LoadAsset(d.BundlePath.DisplayRewardsComponent)]);
                            case 1:
                                if (t._displayRewardPrefab = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                o.label = 2;
                            case 2:
                                return n = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = n.getComponent(g.DisplayRewardsComponent), this.ItemMode.addChild(n), this._rewardComponent.Init(e, this.TextBg.height), [2]
                        }
                    })
                })
            }, t.prototype.OnCheckToggle = function() {}, t.prototype.OnCancel = function() {
                this.Close(), null != this._cancelCallback && this._cancelCallback()
            }, t.prototype.OnConfirm = function() {
                this.Close(), null != this._okCallback && ("string" == typeof this._gameRecordInfo ? this._okCallback(this.CheckToggle.isChecked) : (this._okCallback(), this._gameRecordInfo && this.CheckToggle.isChecked && (this._isDailyHint ? p.default.SetItem(this._gameRecordInfo, h.RpcComponent.Instance.ServerTime) : p.default.SetItem(this._gameRecordInfo, this.CheckToggle.isChecked))))
            }, t.prototype.EnableMaskClose = function() {
                this.Mask.EnableClickEvent()
            }, t.prototype.DisableMaskClose = function() {
                this.Mask.DisableClickEvent()
            }, t.prototype.Close = function() {
                switch (e.prototype.Close.call(this), this._hintMode) {
                    case l.DisplayReward:
                        this._rewardComponent.Dispose(), this.ItemMode.destroyAllChildren()
                }
            }, i([_(cc.Label)], t.prototype, "TitleLabel", void 0), i([_(cc.RichText)], t.prototype, "InfoLabel", void 0), i([_(cc.Label)], t.prototype, "CacelLabel", void 0), i([_(cc.Label)], t.prototype, "OKLabel", void 0), i([_(cc.Node)], t.prototype, "TextMode", void 0), i([_(cc.Node)], t.prototype, "ScrollerMode", void 0), i([_(cc.RichText)], t.prototype, "ScrollerInfoLabel", void 0), i([_(cc.Node)], t.prototype, "ItemMode", void 0), i([_(cc.Node)], t.prototype, "TextBg", void 0), i([_(cc.Button)], t.prototype, "CancelBtn", void 0), i([_(cc.Button)], t.prototype, "OKBtn", void 0), i([_(cc.RichText)], t.prototype, "Desc", void 0), i([_(cc.Toggle)], t.prototype, "CheckToggle", void 0), i([_(cc.Label)], t.prototype, "CheckLabel", void 0), i([_(f.default)], t.prototype, "Mask", void 0), i([_(y.default)], t.prototype, "CurrencyBar", void 0), i([I], t)
        }(c.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/Mask": "Mask",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/DisplayRewardsComponent": "DisplayRewardsComponent"
    }],
    HoldButtonComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "877d9exGgBEb5wila+m9zNh", "HoldButtonComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._waitDuration = .5, t._callbackFunc = null, t._startFlag = !1, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    e && (this._callbackFunc = e), t && (this._waitDuration = t), this.node.on(cc.Node.EventType.TOUCH_START, this.OnTouchStart, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchEnd, this)
                }, t.prototype.OnTouchStart = function() {
                    this.schedule(this.OnHoldStart, this._waitDuration, 1)
                }, t.prototype.OnHoldStart = function() {
                    this._startFlag = !0
                }, t.prototype.OnTouchEnd = function() {
                    this.unschedule(this.OnHoldStart), this._startFlag = !1
                }, t.prototype.onDisable = function() {
                    this.OnTouchEnd()
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.OnHoldStart), this._startFlag = !1, this.node.off(cc.Node.EventType.TOUCH_START, this.OnTouchStart), this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd), this.node.off(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchEnd)
                }, t.prototype.update = function() {
                    this._startFlag && this._callbackFunc && this._callbackFunc("hold")
                }, i([s], t)
            }(cc.Component));
        n.default = l, cc._RF.pop()
    }, {}],
    HolyAreaBattleStartPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e78d4pr6VZH4bSLgEXknWhD", "HolyAreaBattleStartPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/DataCenter"),
            d = e("../../../ShareConsts/BattleConsts"),
            h = e("../Components/ItemComponent"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.PopUp, !1), t.BattleName = null, t.TeamNodeLeft = null, t.TeamNodeRight = null, t.TeamLeftMyHeroGrid = null, t.TeamLeftEnemyBp = null, t.TeamLeftEnemyHeroGrid = null, t.TeamLeftMyBp = null, t.TeamRightMyHeroGrid = null, t.TeamRightMyBp = null, t.TeamRightEnemyHeroGrid = null, t.TeamRightEnemyBp = null, t.TeamLeftName = null, t.TeamRightName = null, t.TeamLeftPlayerName = null, t.TeamLeftEnemyName = null, t.TeamRightPlayerName = null, t.TeamRightEnemyName = null, t.levelId = 0, t._commonItemPrefab = null, t._myHeroItemLeft = [], t._myHeroItemRight = [], t._enemyHeroItemLeft = [], t._enemyHeroItemRight = [], t._myFormationLeft = null, t._myFormationRight = null, t._enemyHeroDataLeft = [], t._enemyHeroDataRight = [], t._enemyBpLeft = 0, t._enemyBpRight = 0, t._holyAreaUserData = null, t._acscMonsterConfig = null, t._monsterTypeId = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._commonItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(f.BundlePath.ItemComponent)]);
                                case 1:
                                    t._commonItemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText()
                }, t.prototype.SetStaticLocalText = function() {
                    this.TeamLeftName.string = "formation_index".ToUILocale().Fmt(1), this.TeamRightName.string = "formation_index".ToUILocale().Fmt(2), this.TeamLeftPlayerName.string = "holyArea_battleStart_playerName".ToUILocale().Fmt(1), this.TeamRightPlayerName.string = "holyArea_battleStart_playerName".ToUILocale().Fmt(2), this.TeamLeftEnemyName.string = "holyArea_battleStart_enemyName".ToUILocale().Fmt(1), this.TeamRightEnemyName.string = "holyArea_battleStart_enemyName".ToUILocale().Fmt(2)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this.levelId = t[0]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetBattleName(), this.LoadUserData(), this.LoadConfig(), this.SetTeamHeroShow(), this.SetEnemyHeroShow(), this.SetBpShow(), setTimeout(function() {
                        n.Close()
                    }, 1500)
                }, t.prototype.LoadUserData = function() {
                    this._holyAreaUserData = p.DataCenter.Instance.GetDataById(u.AncientSacred_Model, 1), this._monsterTypeId = this._holyAreaUserData.Monsters[this.levelId - 1], this._acscMonsterConfig = g.ConfigDataComponent.Instance.GetConfigById(y.AcscMonster_Config, this._monsterTypeId), this._myFormationLeft = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, d.FormationIdType.AncientSacred1), this._myFormationRight = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, d.FormationIdType.AncientSacred2)
                }, t.prototype.LoadConfig = function() {
                    this._enemyHeroDataLeft = [], this._enemyHeroDataRight = [];
                    for (var e = 0; e < this._acscMonsterConfig.MapIds.length; e++) {
                        var t = this._acscMonsterConfig.MapIds[e],
                            n = g.ConfigDataComponent.Instance.GetConfigById(y.MapBase_Config, t);
                        0 == e ? this._enemyBpLeft = n.BattlePower : this._enemyBpRight = n.BattlePower;
                        for (var o = 0; o < n.Heros.length; o++) {
                            var r = n.Heros[o].Items[1],
                                i = g.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, r);
                            0 == e ? this._enemyHeroDataLeft.push(i) : this._enemyHeroDataRight.push(i)
                        }
                    }
                }, t.prototype.SetBattleName = function() {
                    this.BattleName.string = "holyArea_battleStar_battleName".ToUILocale().Fmt(this.levelId)
                }, t.prototype.SetTeamHeroShow = function() {
                    for (var e = 0; e < this._myFormationLeft.HeroIds.length; e++)
                        if (null == this._myHeroItemLeft[e] && ((n = cc.instantiate(this._commonItemPrefab).getComponent(h.ItemComponent)).node.parent = this.TeamLeftMyHeroGrid.node, this._myHeroItemLeft[e] = n), 0 != this._myFormationLeft.HeroIds[e]) {
                            var t = p.DataCenter.Instance.GetDataById(u.UserHero_Model, this._myFormationLeft.HeroIds[e]);
                            this._myHeroItemLeft[e].Init(t, h.ItemComponentType.HeroInfo), this._myHeroItemLeft[e].node.active = !0
                        } else this._myHeroItemLeft[e].node.active = !1;
                    if (this._acscMonsterConfig.MapIds.length > 1)
                        for (e = 0; e < this._myFormationRight.HeroIds.length; e++) {
                            var n;
                            null == this._myHeroItemRight[e] && ((n = cc.instantiate(this._commonItemPrefab).getComponent(h.ItemComponent)).node.parent = this.TeamRightMyHeroGrid.node, this._myHeroItemRight[e] = n), 0 != this._myFormationRight.HeroIds[e] ? (t = p.DataCenter.Instance.GetDataById(u.UserHero_Model, this._myFormationRight.HeroIds[e]), this._myHeroItemRight[e].Init(t, h.ItemComponentType.HeroInfo), this._myHeroItemRight[e].node.active = !0) : this._myHeroItemRight[e].node.active = !1
                        }
                }, t.prototype.SetEnemyHeroShow = function() {
                    for (var e = 0; e < this._enemyHeroDataLeft.length; e++) {
                        null == this._enemyHeroItemLeft[e] && ((r = cc.instantiate(this._commonItemPrefab).getComponent(h.ItemComponent)).node.parent = this.TeamLeftEnemyHeroGrid.node, this._enemyHeroItemLeft[e] = r);
                        var t = this._enemyHeroDataLeft[e].Id,
                            n = this._enemyHeroDataLeft[e].StarLevel,
                            o = this._enemyHeroDataLeft[e].ElementType;
                        0 != t ? this._enemyHeroItemLeft[e].Init({
                            ItemId: t,
                            StarLevel: n,
                            ElementType: o
                        }, h.ItemComponentType.HeroInfo) : this._enemyHeroItemLeft[e].node.active = !1
                    }
                    if (this._acscMonsterConfig.MapIds.length > 1)
                        for (e = 0; e < this._enemyHeroDataRight.length; e++) {
                            var r;
                            null == this._enemyHeroItemRight[e] && ((r = cc.instantiate(this._commonItemPrefab).getComponent(h.ItemComponent)).node.parent = this.TeamRightEnemyHeroGrid.node, this._enemyHeroItemRight[e] = r), t = this._enemyHeroDataRight[e].Id, n = this._enemyHeroDataRight[e].StarLevel, o = this._enemyHeroDataRight[e].ElementType, 0 != t ? this._enemyHeroItemRight[e].Init({
                                ItemId: t,
                                StarLevel: n,
                                ElementType: o
                            }, h.ItemComponentType.HeroInfo) : this._enemyHeroItemRight[e].node.active = !1
                        }
                }, t.prototype.SetBpShow = function() {
                    for (var e = 0, t = 0, n = 0; n < this._myFormationLeft.HeroIds.length; n++) 0 != this._myFormationLeft.HeroIds[n] && (e += p.DataCenter.Instance.GetDataById(u.UserHero_Model, this._myFormationLeft.HeroIds[n]).Power);
                    if (this.TeamLeftMyBp.string = e.toString(), this.TeamLeftEnemyBp.string = this._enemyBpLeft.toString(), this._acscMonsterConfig.MapIds.length > 1) {
                        for (n = 0; n < this._myFormationRight.HeroIds.length; n++) 0 != this._myFormationRight.HeroIds[n] && (t += p.DataCenter.Instance.GetDataById(u.UserHero_Model, this._myFormationRight.HeroIds[n]).Power);
                        this.TeamRightMyBp.string = t.toString(), this.TeamRightEnemyBp.string = this._enemyBpRight.toString()
                    }
                }, i([_(cc.RichText)], t.prototype, "BattleName", void 0), i([_(cc.Node)], t.prototype, "TeamNodeLeft", void 0), i([_(cc.Node)], t.prototype, "TeamNodeRight", void 0), i([_(cc.Layout)], t.prototype, "TeamLeftMyHeroGrid", void 0), i([_(cc.Label)], t.prototype, "TeamLeftEnemyBp", void 0), i([_(cc.Layout)], t.prototype, "TeamLeftEnemyHeroGrid", void 0), i([_(cc.Label)], t.prototype, "TeamLeftMyBp", void 0), i([_(cc.Layout)], t.prototype, "TeamRightMyHeroGrid", void 0), i([_(cc.Label)], t.prototype, "TeamRightMyBp", void 0), i([_(cc.Layout)], t.prototype, "TeamRightEnemyHeroGrid", void 0), i([_(cc.Label)], t.prototype, "TeamRightEnemyBp", void 0), i([_(cc.Label)], t.prototype, "TeamLeftName", void 0), i([_(cc.Label)], t.prototype, "TeamRightName", void 0), i([_(cc.Label)], t.prototype, "TeamLeftPlayerName", void 0), i([_(cc.Label)], t.prototype, "TeamLeftEnemyName", void 0), i([_(cc.Label)], t.prototype, "TeamRightPlayerName", void 0), i([_(cc.Label)], t.prototype, "TeamRightEnemyName", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyAreaBlockItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "02f89WT9jpA1Z4wBuwxBTNf", "HolyAreaBlockItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/DataCenter"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/ConfigData/ConfigDataComponent"),
            p = e("../../../Consts/Consts"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            f = e("../../../ShareConsts/BattleConsts"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../Battle/BattleManager"),
            C = e("../Battle/BattleData"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LadderLeft = null, t.LadderRight = null, t.EnemyPosArray = [], t.StarGroup = null, t.LevelInfo = null, t.LevelLine = null, t.Stars = [], t.LevelName = null, t.RewardBoxNode = null, t.BoxSprite = null, t.BoxCover = null, t.BoxAnim = null, t.EnemyPosSingle = null, t.Plant = null, t._avatarPrefab = null, t._avatarPrefabs = [], t._atlas = null, t._avatarNode = [], t._avatarSkeleton = [], t._holyAreaUserData = null, t._ancientSacredConfig = null, t._acscMonsterConfig = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchPlant, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchPlant)
                }, t.prototype.SetUI = function(e, t, n) {
                    this._layer = e, this._placeState = t, this._atlas = n, this.LoadUserData(), this.LoadConfig(), this.LoadStandByEnemy(), this.SetLadder(), this.SetStar(), this.SetLevelInfo(), this.SetRewardBox()
                }, t.prototype.LoadUserData = function() {
                    this._holyAreaUserData = l.DataCenter.Instance.GetDataById(c.AncientSacred_Model, 1), 0 != this._layer && 11 != this._layer && (this._monsterId = this._holyAreaUserData.Monsters[this._layer - 1])
                }, t.prototype.LoadConfig = function() {
                    this._ancientSacredConfig = u.ConfigDataComponent.Instance.GetConfigById(d.AncientSacredMap_Config, this._holyAreaUserData.MapLevelId), this.LadderLeft.spriteFrame = this._ancientSacredConfig.Model ? this._atlas.getSpriteFrame("ladder_right2") : this._atlas.getSpriteFrame("ladder_right"), this.LadderRight.spriteFrame = this._ancientSacredConfig.Model ? this._atlas.getSpriteFrame("ladder_left2") : this._atlas.getSpriteFrame("ladder_left"), this.Plant.spriteFrame = this._ancientSacredConfig.Model ? this._atlas.getSpriteFrame("plant2") : this._atlas.getSpriteFrame("plant"), 0 != this._layer && 11 != this._layer && (this._acscMonsterConfig = u.ConfigDataComponent.Instance.GetConfigById(d.AcscMonster_Config, this._monsterId))
                }, t.prototype.SetLadder = function() {
                    this._holyAreaUserData.Maps.length < 10 || 0 == this._holyAreaUserData.Maps[9] ? this._layer < this._holyAreaUserData.Maps.length ? this.SetLadderState() : (this.LadderLeft.node.active = !1, this.LadderRight.node.active = !1) : this._layer <= this._holyAreaUserData.Maps.length ? this.SetLadderState() : (this.LadderLeft.node.active = !1, this.LadderRight.node.active = !1)
                }, t.prototype.SetLadderState = function() {
                    1 == this._placeState ? (this.LadderLeft.node.active || (this.LadderLeft.node.active = !0, cc.tween(this.LadderLeft.node).by(.2, {
                        position: cc.v3(0, 240, 0)
                    }).start()), this.LadderRight.node.active = !1) : (this.LadderLeft.node.active = !1, this.LadderRight.node.active || (this.LadderRight.node.active = !0, cc.tween(this.LadderRight.node).by(.2, {
                        position: cc.v3(0, 240, 0)
                    }).start()))
                }, t.prototype.LoadStandByEnemy = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a, l, c, p = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (0 == this._layer || 11 == this._layer) return [2];
                                    if (this.EnemyPosSingle.active = 1 == this._acscMonsterConfig.MapIds.length, this.EnemyPosArray.forEach(function(e) {
                                            e.active = 2 == p._acscMonsterConfig.MapIds.length
                                        }), 2 != this._acscMonsterConfig.MapIds.length) return [3, 6];
                                    e = 0, s.label = 1;
                                case 1:
                                    return e < this.EnemyPosArray.length ? this.EnemyPosArray[e].childrenCount > 0 ? [3, 4] : (o = this._acscMonsterConfig.MapIds[e], r = u.ConfigDataComponent.Instance.GetConfigById(d.MapBase_Config, o), i = r.Heros[0].Items[1], a = u.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, i), l = n.avatarSkeletonPrefabPathName1 + a.Model + n.avatarSkeletonPrefabPathName2, null != this._avatarPrefabs[e] ? [3, 3] : [4, h.AssetsManager.Instance.LoadAsset(l)]) : [3, 5];
                                case 2:
                                    if (c = s.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(c), [2];
                                    this._avatarPrefabs[e] = c, s.label = 3;
                                case 3:
                                    null == this._avatarNode[e] && (this._avatarNode[e] = cc.instantiate(this._avatarPrefabs[e]), this._avatarSkeleton[e] = this._avatarNode[e].getComponent(sp.Skeleton), this._avatarNode[e].setParent(this.EnemyPosArray[e]), r.Strength.length > 0 && (t = I.default.Instance.GetHeroDefaultStarLevelSkinName(i, r.Strength[0]), this._avatarSkeleton[e].setSkin(t)), this._avatarSkeleton[e].setAnimation(0, f.SkillAnimationType.Standby, !0)), this._avatarNode[e].scale = 1 == r.IsBossBattle ? .5 : 1, s.label = 4;
                                case 4:
                                    return e++, [3, 1];
                                case 5:
                                    return [3, 9];
                                case 6:
                                    return this.EnemyPosSingle.childrenCount > 0 ? [2] : (o = this._acscMonsterConfig.MapIds[0], r = u.ConfigDataComponent.Instance.GetConfigById(d.MapBase_Config, o), i = r.Heros[0].Items[1], a = u.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, i), l = n.avatarSkeletonPrefabPathName1 + a.Model + n.avatarSkeletonPrefabPathName2, null != this._avatarPrefabs[0] ? [3, 8] : [4, h.AssetsManager.Instance.LoadAsset(l)]);
                                case 7:
                                    if (c = s.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(c), [2];
                                    this._avatarPrefabs[0] = c, s.label = 8;
                                case 8:
                                    null == this._avatarNode[0] && (this._avatarNode[0] = cc.instantiate(this._avatarPrefabs[0]), this._avatarSkeleton[0] = this._avatarNode[0].getComponent(sp.Skeleton), this._avatarNode[0].setParent(this.EnemyPosSingle), this._avatarSkeleton[0].setAnimation(0, f.SkillAnimationType.Standby, !0)), this._avatarNode[0].scale = 1 == r.IsBossBattle ? .5 : 1, s.label = 9;
                                case 9:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetStar = function() {
                    if (0 == this._layer || 11 == this._layer) return this.StarGroup.active = !1, this.LevelLine.active = !1, void(this.LevelName.node.y = 0);
                    if (this.StarGroup.active = !0, this.LevelLine.active = !0, this.LevelName.node.y = -18, this._layer > this._holyAreaUserData.Maps.length) this.SetStarCount(0);
                    else switch (this._holyAreaUserData.Maps[this._layer - 1]) {
                        case 0:
                            this.SetStarCount(0);
                            break;
                        case 1:
                            this.SetStarCount(1);
                            break;
                        case 3:
                        case 5:
                            this.SetStarCount(2);
                            break;
                        case 7:
                            this.SetStarCount(3)
                    }
                }, t.prototype.SetStarCount = function(e) {
                    for (var t = 0; t < this.Stars.length; t++) this.Stars[t].active = t < e
                }, t.prototype.SetLevelInfo = function() {
                    0 != this._layer ? (this.LevelInfo.active = !0, 11 == this._layer ? this._holyAreaUserData.IsReceived ? this.LevelName.string = "already_receive".ToUILocale() : this.LevelName.string = "allianceTest_passReward".ToUILocale() : this.LevelName.string = "level".ToUILocale().Fmt(this._layer)) : this.LevelInfo.active = !1
                }, t.prototype.SetRewardBox = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._layer < 11 ? (this.RewardBoxNode.active = !1, [2]) : (this.RewardBoxNode.active = !0, this._holyAreaUserData.IsReceived ? (this.BoxSprite.node.active = !0, this.BoxCover.node.active = !1, this.BoxSprite.spriteFrame = this._atlas.getSpriteFrame("rewardBox"), this.BoxAnim.active = !1) : (this.BoxSprite.node.active = !0, this.BoxCover.node.active = !0, this.BoxSprite.spriteFrame = this._atlas.getSpriteFrame("rewardBox"), this.BoxCover.spriteFrame = this._atlas.getSpriteFrame("rewardBox_cover"), this.BoxAnim.active = !0), [2])
                        })
                    })
                }, t.prototype.OnTouchPlant = function() {
                    if (n.isCanClick) {
                        if (0 != this._layer) {
                            if (_.BattleManager.Instance.IsInBattle(p.MapType.AncientSacred)) return C.BattleData.PlayingBattleDatas[p.MapType.AncientSacred].ExtraParam.UserParams.LevelId == this._layer - 1 ? void _.BattleManager.Instance.ResumePlayBattle(p.MapType.AncientSacred) : void g.UIUtlity.ShowFloatingHint("holyArea_hint_in_fight".ToUILocale());
                            if (this._holyAreaUserData.Maps.length < 10) {
                                if (this._layer > this._holyAreaUserData.Maps.length) return void g.UIUtlity.ShowFloatingHint("holyArea_hint_not_fight".ToUILocale());
                                y.Game.EventDispatcher.Emit(m.EventKeys.EVENT_HOLY_AREA_PLAYER_MOVE, this._layer, !1)
                            } else if (this._layer <= this._holyAreaUserData.Maps.length) y.Game.EventDispatcher.Emit(m.EventKeys.EVENT_HOLY_AREA_PLAYER_MOVE, this._layer, !1);
                            else {
                                if (0 == this._holyAreaUserData.Maps[9]) return void g.UIUtlity.ShowFloatingHint("holyArea_hint_not_fight".ToUILocale());
                                y.Game.EventDispatcher.Emit(m.EventKeys.EVENT_HOLY_AREA_PLAYER_MOVE, this._layer, !1)
                            }
                        }
                    } else n.isCanClick = !0
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._avatarPrefab && y.AssetsManager.Instance.UnloadAsset(this._avatarPrefab), this._avatarPrefabs.forEach(function(e) {
                        y.AssetsManager.Instance.UnloadAsset(e)
                    }), null != this._atlas && y.AssetsManager.Instance.UnloadAsset(this._atlas), this._avatarPrefab = null
                }, t.isCanClick = !0, t.avatarSkeletonPrefabPathName1 = "Hero_", t.avatarSkeletonPrefabPathName2 = "/HeroAvatar", t.color_yellow = new cc.Color(254, 217, 74), t.color_green = new cc.Color(51, 255, 142), i([S(cc.Sprite)], t.prototype, "LadderLeft", void 0), i([S(cc.Sprite)], t.prototype, "LadderRight", void 0), i([S(cc.Node)], t.prototype, "EnemyPosArray", void 0), i([S(cc.Node)], t.prototype, "StarGroup", void 0), i([S(cc.Node)], t.prototype, "LevelInfo", void 0), i([S(cc.Node)], t.prototype, "LevelLine", void 0), i([S(cc.Node)], t.prototype, "Stars", void 0), i([S(cc.Label)], t.prototype, "LevelName", void 0), i([S(cc.Node)], t.prototype, "RewardBoxNode", void 0), i([S(cc.Sprite)], t.prototype, "BoxSprite", void 0), i([S(cc.Sprite)], t.prototype, "BoxCover", void 0), i([S(cc.Node)], t.prototype, "BoxAnim", void 0), i([S(cc.Node)], t.prototype, "EnemyPosSingle", void 0), i([S(cc.Sprite)], t.prototype, "Plant", void 0), n = i([b], t)
            }(cc.Component);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager"
    }],
    HolyAreaDescItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "413921CZRVNUooonojlMLQL", "HolyAreaDescItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Desc = null, t
                }
                return r(t, e), t.prototype.SetDesc = function(e) {
                    var t = this;
                    this.Desc.string = e, this.scheduleOnce(function() {
                        t.node.height = t.Desc.node.height
                    })
                }, i([l(cc.RichText)], t.prototype, "Desc", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    HolyAreaEnterHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bb084ls3WVH0IBh36VqrPNM", "HolyAreaEnterHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/DataCenter"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../Components/HolyAreaDescItem"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1), t.Tittle = null, t.Difficulty = null, t.BtnSure = null, t.SureBtnLabel = null, t.DescContent = null, t._holyAreaUserData = null, t._ancientSacredConfig = [], t._descPrefab = null, t._descNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HolyAreaPanel/Private/HolyAreaDescItem", cc.Prefab)];
                                case 1:
                                    return t._descPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "holyArea_main_title".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnSureBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitNodes(), this.SetDescNode(), this.LoadUserData(), this.LoadConfig(), this.SetDifficultyShow(), this.SetContentShow()
                }, t.prototype.InitNodes = function() {
                    this._descNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetDescNode = function() {
                    for (var e = 0; e < 3; e++) {
                        if (!this._descNodes[e]) {
                            var t = cc.instantiate(this._descPrefab);
                            t.parent = this.DescContent.node, this._descNodes[e] = t
                        }
                        this._descNodes[e].active = !0, this._descNodes[e].getComponent(f.default).SetDesc(("holyArea_enter_content_" + e).ToUILocale())
                    }
                    this.DescContent.updateLayout()
                }, t.prototype.LoadUserData = function() {
                    this._holyAreaUserData = u.DataCenter.Instance.GetDataById(p.AncientSacred_Model, 1)
                }, t.prototype.LoadConfig = function() {
                    this._ancientSacredConfig = d.ConfigDataComponent.Instance.GetArrayConfig(h.AncientSacredMap_Config)
                }, t.prototype.SetDifficultyShow = function() {
                    this.Difficulty.string = "holyArea_enter_difficulty".ToUILocale().Fmt(this._holyAreaUserData.MapLevelId)
                }, t.prototype.SetContentShow = function() {
                    this._holyAreaUserData.MapLevelId >= this._ancientSacredConfig.length ? this._descNodes[2] && (this._descNodes[2].active = !1) : this._descNodes[2] && (this._descNodes[2].active = !0)
                }, t.prototype.OnSureBtnClick = function() {
                    this.Close()
                }, i([m(cc.Label)], t.prototype, "Tittle", void 0), i([m(cc.RichText)], t.prototype, "Difficulty", void 0), i([m(cc.Button)], t.prototype, "BtnSure", void 0), i([m(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([m(cc.Layout)], t.prototype, "DescContent", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Components/HolyAreaDescItem": "HolyAreaDescItem"
    }],
    HolyAreaFailSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f387aSuGnVHH45f9WOO/g3r", "HolyAreaFailSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("./CustomRichText"),
            u = e("../../../EZFramework/UIFrame/UIManager"),
            p = e("../../../Consts/Consts"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("./ItemComponent"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BattleName = null, t.LeftTeamGrid = null, t.RightTeamGrid = null, t.BtnReturn = null, t.LabelBtnReturn = null, t.BtnSure = null, t.WinLeft = null, t.LoseLeft = null, t.UnsureLeft = null, t.WinRight = null, t.LoseRight = null, t.UnsureRight = null, t.MyFormationTag = null, t.TeamLeftTag = null, t.TeamRightTag = null, t.SureBtnLabel = null, t.TeamRightNode = null, t._leftItemArray = [], t._rightItemArray = [], t._isInit = !1, t._monsterId = 0, t._acscMonsterConfig = null, t
                }
                return r(t, e), t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t), this._isInit || (this.SetStaticLocalText(), this.SetClickEvent(), this._isInit = !0), this._levelId = t.SettleParams[0], this._monsterId = t.SettleParams[3], this._acscMonsterConfig = g.ConfigDataComponent.Instance.GetConfigById(d.AcscMonster_Config, this._monsterId), this.TeamRightNode.active = this._acscMonsterConfig.MapIds.length > 1, this.SetBattleName(), this.LoadHeroItem(), this.SetBattleStateUI(), this.SetBtnState()
                }, t.prototype.SetStaticLocalText = function() {
                    this.MyFormationTag.string = "secretArea_ourBattleArray".ToUILocale(), this.TeamLeftTag.string = "formation_index".ToUILocale().Fmt(1), this.TeamRightTag.string = "formation_index".ToUILocale().Fmt(2), this.SureBtnLabel.string = "ok".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale()
                }, t.prototype.SetBattleName = function() {
                    this.BattleName.Init("holyArea_battleStar_battleName".ToUILocale().Fmt(this._levelId + 1))
                }, t.prototype.SetClickEvent = function() {
                    this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.OnBtnReturnClick = function() {
                    u.UIManager.Instance.BackUIPanel(), u.UIManager.Instance.ShowUIPanel(y.PanelConfig.HolyAreaMainPanel.Path)
                }, t.prototype.OnBtnSureClick = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.LoadHeroItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._commonItemPrefab = t.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    return this.LoadItemByData(!0), this._acscMonsterConfig.MapIds.length > 1 && this.LoadItemByData(!1), [2]
                            }
                        })
                    })
                }, t.prototype.LoadItemByData = function(e) {
                    for (var t, n, o = e ? this._leftItemArray : this._rightItemArray, r = 0; r < o.length; r++) o[r].node.active = !1;
                    e ? (t = this.LeftTeamGrid, n = this._BattleData.Reports[0].Heros) : (t = this.RightTeamGrid, n = this._BattleData.Reports[1].Heros);
                    for (var i = 0, a = 0; a < n.length; a++) {
                        var s = n[a];
                        if (!(s.HeroId <= 0 || s.Camp != p.CampType.Attacker)) {
                            if (null == o[i]) {
                                var l = cc.instantiate(this._commonItemPrefab).getComponent(h.ItemComponent);
                                l.node.parent = t.node, o[i] = l
                            }
                            var c = s.HeroId,
                                u = g.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, c),
                                f = s.StatHp,
                                y = s.StatHpMax,
                                m = s.StarLevel,
                                I = s.Level,
                                _ = u.ElementType;
                            o[i].Init({
                                ItemId: c,
                                StarLevel: m,
                                ElementType: _,
                                Level: I
                            }, h.ItemComponentType.HeroInfo), o[i].SetHeroHp(f / y * 1e3), f <= 0 ? o[i].OnIconGray(!0) : o[i].OffIconGray(), o[i].SetLabelFontSize(o[i].HeroLevel, 28, 154), o[i].LevelComponent.Low.scale = 1.25, o[i].LevelComponent.Low.getComponent(cc.Layout).spacingX = -14, o[i].LevelComponent.Mid.scale = 1.25, o[i].LevelComponent.Mid.getComponent(cc.Layout).spacingX = -14, o[i].node.active = !0, i++
                        }
                    }
                }, t.prototype.SetBattleStateUI = function() {
                    switch (this.WinLeft.active = !1, this.LoseLeft.active = !1, this.UnsureLeft.active = !1, this.WinRight.active = !1, this.LoseRight.active = !1, this.UnsureRight.active = !1, this._BattleData.Players[0].FinalResult) {
                        case p.BattleResult.AttackerWin:
                            this.WinLeft.active = !0;
                            break;
                        case p.BattleResult.DefenderWin:
                            this.LoseLeft.active = !0;
                            break;
                        case p.BattleResult.Process:
                            this.UnsureLeft.active = !0
                    }
                    if (this._acscMonsterConfig.MapIds.length > 1) switch (this._BattleData.Players[1].FinalResult) {
                        case p.BattleResult.AttackerWin:
                            this.WinRight.active = !0;
                            break;
                        case p.BattleResult.DefenderWin:
                            this.LoseRight.active = !0;
                            break;
                        case p.BattleResult.Process:
                            this.UnsureRight.active = !0
                    }
                }, t.prototype.SetBtnState = function() {
                    var e = u.UIManager.Instance.GetUIPanel(y.PanelConfig.HolyAreaMainPanel.Path);
                    null != e && 1 == e.node.active ? this.BtnReturn.node.active = !1 : this.BtnReturn.node.active = !0
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._commonItemPrefab && f.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), this._commonItemPrefab = null
                }, i([_(c.CustomRichText)], t.prototype, "BattleName", void 0), i([_(cc.Layout)], t.prototype, "LeftTeamGrid", void 0), i([_(cc.Layout)], t.prototype, "RightTeamGrid", void 0), i([_(cc.Button)], t.prototype, "BtnReturn", void 0), i([_(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([_(cc.Button)], t.prototype, "BtnSure", void 0), i([_(cc.Node)], t.prototype, "WinLeft", void 0), i([_(cc.Node)], t.prototype, "LoseLeft", void 0), i([_(cc.Node)], t.prototype, "UnsureLeft", void 0), i([_(cc.Node)], t.prototype, "WinRight", void 0), i([_(cc.Node)], t.prototype, "LoseRight", void 0), i([_(cc.Node)], t.prototype, "UnsureRight", void 0), i([_(cc.Label)], t.prototype, "MyFormationTag", void 0), i([_(cc.Label)], t.prototype, "TeamLeftTag", void 0), i([_(cc.Label)], t.prototype, "TeamRightTag", void 0), i([_(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([_(cc.Node)], t.prototype, "TeamRightNode", void 0), i([I], t)
            }(l.default);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "./CustomRichText": "CustomRichText",
        "./ItemComponent": "ItemComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    HolyAreaHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "853a1YFV7lJsqtbbL3F155s", "HolyAreaHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1), t.TitleLabel = null, t.InfoLabel = null, t.Buttons = [], t.ButtonLabels = [], t.ButtonLayout = null, t.TwoButtonOffset = 100, t.ThreeButtonOffset = 0, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.Buttons.forEach(function(e) {
                        e.node.on("click", t.ClickButton, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0], this._riskPortPanel = t[1]
                }, t.prototype.DisPlay = function() {
                    var t = this;
                    e.prototype.DisPlay.call(this), this.TitleLabel.string = this._data.Title, this.InfoLabel.string = this._data.Info, this.ButtonLabels.forEach(function(e, n) {
                        t._data.ButtonLabels[n] ? (t.Buttons[n].node.active = !0, e.string = t._data.ButtonLabels[n]) : t.Buttons[n].node.active = !1
                    }), 2 == this._data.ButtonLabels.length ? this.ButtonLayout.spacingX = this.TwoButtonOffset : 3 == this._data.ButtonLabels.length && (this.ButtonLayout.spacingX = this.ThreeButtonOffset)
                }, t.prototype.ClickButton = function(e) {
                    var t = Number(e.node.name);
                    this._data.Callbacks[t] && (this._data.CallbackParams && this._data.CallbackParams[t] >= 0 ? this._data.Callbacks[t](this._data.CallbackParams[t]) : this._data.Callbacks[t].call(this._riskPortPanel)), this.Close()
                }, i([c(cc.Label)], t.prototype, "TitleLabel", void 0), i([c(cc.RichText)], t.prototype, "InfoLabel", void 0), i([c(cc.Button)], t.prototype, "Buttons", void 0), i([c(cc.Label)], t.prototype, "ButtonLabels", void 0), i([c(cc.Layout)], t.prototype, "ButtonLayout", void 0), i([l], t)
            }(a.BaseUIPanel);
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    HolyAreaLevelListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "539e5D3wl9M1qzgokCjWidN", "HolyAreaLevelListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/DataCenter"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../../EZFramework/EZFramework"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelName = null, t.Stars = [], t.BtnGo = null, t.GoBtnLabel = null, t.BtnDisable = null, t.DisableBtnLabel = null, t.PerfectPass = null, t.CompletedLabel = null, t._holyAreaUserData = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.SetUI = function(e) {
                    this._layer = e + 1, this._isInit || (this.SetStaticLocalText(), this.SetClickEvent(), this._isInit = !0), this.LoadUserData(), this.SetLevelName(), this.SetStar(), this.SetBtnState()
                }, t.prototype.SetStaticLocalText = function() {
                    this.GoBtnLabel.string = "task_goto".ToUILocale(), this.DisableBtnLabel.string = "task_goto".ToUILocale(), this.CompletedLabel.string = "completed".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnGo.node.on("click", this.OnBtnGoClick, this), this.BtnDisable.node.on("click", this.OnBtnDisableClick, this)
                }, t.prototype.LoadUserData = function() {
                    this._holyAreaUserData = a.DataCenter.Instance.GetDataById(s.AncientSacred_Model, 1)
                }, t.prototype.SetLevelName = function() {
                    this.LevelName.string = "level".ToUILocale().Fmt(this._layer)
                }, t.prototype.SetStar = function() {
                    if (this._layer > this._holyAreaUserData.Maps.length) this.SetStarCount(0);
                    else switch (this._holyAreaUserData.Maps[this._layer - 1]) {
                        case 0:
                            this.SetStarCount(0);
                            break;
                        case 1:
                            this.SetStarCount(1);
                            break;
                        case 3:
                        case 5:
                            this.SetStarCount(2);
                            break;
                        case 7:
                            this.SetStarCount(3)
                    }
                }, t.prototype.SetStarCount = function(e) {
                    for (var t = 0; t < this.Stars.length; t++) this.Stars[t].active = t < e
                }, t.prototype.SetBtnState = function() {
                    this.BtnGo.node.active = !1, this.BtnDisable.node.active = !1, this.PerfectPass.active = !1, this._layer >= this._holyAreaUserData.Maps.length + 1 ? this.BtnDisable.node.active = !0 : 7 == this._holyAreaUserData.Maps[this._layer - 1] ? this.PerfectPass.active = !0 : this.BtnGo.node.active = !0
                }, t.prototype.OnBtnGoClick = function() {
                    p.UIManager.Instance.BackUIPanel(), c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_HOLY_AREA_PLAYER_MOVE, this._layer, !0)
                }, t.prototype.OnBtnDisableClick = function() {
                    l.UIUtlity.ShowFloatingHint("holyArea_hint_not_fight".ToUILocale())
                }, i([f(cc.Label)], t.prototype, "LevelName", void 0), i([f(cc.Node)], t.prototype, "Stars", void 0), i([f(cc.Button)], t.prototype, "BtnGo", void 0), i([f(cc.Label)], t.prototype, "GoBtnLabel", void 0), i([f(cc.Button)], t.prototype, "BtnDisable", void 0), i([f(cc.Label)], t.prototype, "DisableBtnLabel", void 0), i([f(cc.Node)], t.prototype, "PerfectPass", void 0), i([f(cc.Label)], t.prototype, "CompletedLabel", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HolyAreaLevelListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2ffbbPrV15N+aqXZI3datEi", "HolyAreaLevelListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../Components/CustomLayout"),
            u = e("../../Components/DataCenter"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/HolyAreaLevelListItem"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new f.UIPanelType(f.UINodeType.Tip), t.Title = null, t.ListItemScroll = null, t.ListItemGrid = null, t.LIST_ITEM_PATH = "HolyAreaPanel/Private/AreaLevelListItem", t._isLayoutInit = !1, t._holyAreaUserData = null, t._ancientSacredConfig = null, t._layerMaxCount = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    f.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    f.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.LIST_ITEM_PATH, cc.Prefab)];
                                case 1:
                                    return t._listItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "holyArea_levelList".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadUserData(), this.LoadConfig()
                }, t.prototype.LoadUserData = function() {
                    this._holyAreaUserData = u.DataCenter.Instance.GetDataById(p.AncientSacred_Model, 1)
                }, t.prototype.LoadConfig = function() {
                    this._ancientSacredConfig = d.ConfigDataComponent.Instance.GetConfigById(h.AncientSacredMap_Config, this._holyAreaUserData.MapLevelId), this._layerMaxCount = this._ancientSacredConfig.MonsterType[this._ancientSacredConfig.MonsterType.length - 1].Items[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._isLayoutInit || (this._isLayoutInit = !0, this.ListItemGrid.Init(this._listItemPrefab, !1)), this.RenderLayout(), [2]
                        })
                    })
                }, t.prototype.RenderLayout = function() {
                    var e;
                    e = this._layerMaxCount, this.ListItemScroll.stopAutoScroll(), this.ListItemGrid.RenderLayOut(e), g.UIUtlity.AnimationItemsByType1(this.ListItemGrid.node.children)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    t == this.ListItemGrid && e.forEach(function(e, t) {
                        e.getComponent(m.default).SetUI(t)
                    })
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.ScrollView)], t.prototype, "ListItemScroll", void 0), i([C(c.default)], t.prototype, "ListItemGrid", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HolyAreaLevelListItem": "HolyAreaLevelListItem"
    }],
    HolyAreaMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "80a73GMsK9H5rsl1i9CNLoz", "HolyAreaMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/ConfigData/ConfigDataComponent"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Components/RpcComponent"),
            g = e("../../Components/DataCenter"),
            m = e("../Components/HolyAreaBlockItem"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../../Consts/Consts"),
            v = e("../../../Consts/Consts"),
            b = e("../Components/HolyAreaProgressNode"),
            S = e("../../../Util/AppUtil"),
            w = e("./DoubleBattleUIPanel"),
            P = e("../Battle/BattleData"),
            A = e("../Battle/BattleManager"),
            T = e("../../RedDot/RedDotManager"),
            R = e("../../Auxiliary/ModuleGuideManager"),
            L = e("../../Channel/ChannelManager"),
            k = e("./ShopUIPanel"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property,
            B = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Bg = null, t.Bgs = [], t.WorldNode = null, t.Map = null, t.MapContainer = null, t.LevelTag = null, t.DifficultyContent = null, t.ResetTimeContent = null, t.Player = null, t.PlayerTransAnim = null, t.AnimNode = null, t.TargetBattleTag = null, t.ProgressNode = null, t.FightOverNode = null, t.FightOverMask = null, t.FightOverContentRichText = null, t.BtnShop = null, t.ShopBtnLabel = null, t.BtnTreasury = null, t.TreasureBtnLabel = null, t.BtnRank = null, t.RankBtnLabel = null, t.BtnLevelList = null, t.LevelListBtnLabel = null, t.BtnRule = null, t.BtnReturn = null, t.NextDifficultTipLabel = null, t.AutoButton = null, t.AutoLabel = null, t.StarInfoNode = null, t.HeroBg = null, t.BLOCK_ITEM_PATH = "HolyAreaPanel/Private/BlockItem", t._blockPlaceArray = [], t._mapDirectionVectors = [cc.v3(-386, 329), cc.v3(374, 334)], t._brickLayingPos = cc.v3(0, 0, 0), t._brickLayingZIndex = 0, t._layerMaxCount = 0, t._screenMaxOffset = 0, t._playerStandLayer = 0, t._moveDirection = -1, t._isPlayerMoving = !1, t._holyAreaUserData = null, t._blockItemPrefab = null, t._blockItemPool = [], t._ancientSacredConfig = null, t._isShowFightOver = !1, t._isReOpen = !1, t._isNeedMoveNext = !1, t._lastResetTime = 0, t._maxDifficult = 0, t._isFirstIn = !0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.Bg.node.on(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this.Bg.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this.FightOverMask.on(cc.Node.EventType.TOUCH_END, this.OnFightOverClick, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_HOLY_AREA_PLAYER_MOVE, this.OnPlayerMove, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_HOLYAREA_MOVE_NEXTLEVEL, this.OnPlayerMoveNext, this)
                }, t.prototype.onDisable = function() {
                    this.Bg.node.off(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove), this.Bg.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd), this.FightOverMask.off(cc.Node.EventType.TOUCH_END, this.OnFightOverClick), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_HOLY_AREA_PLAYER_MOVE, this.OnPlayerMove), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_HOLYAREA_MOVE_NEXTLEVEL, this.OnPlayerMoveNext, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_HolyArea_HeroId"), n = p.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, t), o = this.LoadDynamicAsset(this.BLOCK_ITEM_PATH, cc.Prefab), r = this.LoadDynamicAsset("HolyAreaPanel/Png/HolyArea", cc.SpriteAtlas), [4, this.LoadDynamicAsset("Hero_" + n.Model + "/HeroAvatar", cc.Prefab)];
                                case 1:
                                    return i = s.sent(), [4, Promise.all([o, r, i]).then(function(e) {
                                        a._blockItemPrefab = e[0], a._atlas = e[1], a._heroPrefab = e[2]
                                    })];
                                case 2:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent();
                    var t = cc.instantiate(this._heroPrefab);
                    t.parent = this.Player, t.setSiblingIndex(0), this.PlayerAnim = t.getComponent(sp.Skeleton), t.scaleX = L.default.Instance.IsVNChannel() ? -1 : 1
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "holyArea_main_title".ToUILocale(), this.ShopBtnLabel.string = "shop_mainTittle".ToUILocale(), this.TreasureBtnLabel.string = "holyArea_treasury".ToUILocale(), this.RankBtnLabel.string = "holyArea_rank".ToUILocale(), this.LevelListBtnLabel.string = "holyArea_levelList".ToUILocale(), this.FightOverContentRichText.string = "holyArea_FightOverContent".ToUILocale(), this.NextDifficultTipLabel.string = "holyArea_fullstarTonextdifficult".ToUILocale().Fmt(30), this.AutoLabel.string = "holyArea_auto_fight".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnShop.node.on("click", this.OnBtnShopClick, this), this.BtnTreasury.node.on("click", this.OnBtnTreasuryClick, this), this.BtnRank.node.on("click", this.OnBtnRankClick, this), this.BtnLevelList.node.on("click", this.OnBtnLevelListClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.AutoButton.node.on("click", this.OnAutoButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._isFirstIn = !0
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.PreloadByData.call(this), [2]
                        })
                    })
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function(t) {
                    if (void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), !this._isReOpen || this.IsNewRound()) this._isReOpen = !0, this.RequestEnterHolyArea();
                    else {
                        this.LoadUserData(), this.LoadConfigData(), this.RefreshBlockItem(), this.SetResetTimeContent(), this.SetLevelInfo(), this.SetAnimNode(), this.SetProgressNode(), this.SetAutoButton(), this.SetStarCount(), this._isShowFightOver && (this.FightOverNode.active = !0, this._isShowFightOver = !1);
                        var n = h.ConfigDataComponent.Instance.GetConfigById(f.WarTokenType_Config, v.WarTokenType.SacredTreasury);
                        this.BtnTreasury.node.active = h.DataCenter.Instance.GetIntData(C.UserDataKey.VipLevel) >= n.VIP
                    }
                    this.ShowGuide(), T.RedDotManager.Instance.Bind(this.BtnTreasury.node, T.RedDotManager.Instance.RedDot.AncientHolyAreaWarTokenNode)
                }, t.prototype.SetStarCount = function() {
                    var e = this._holyAreaUserData.MapLevelId + 1;
                    if (p.ConfigDataComponent.Instance.GetConfigById(f.AncientSacredMap_Config, e)) {
                        this.StarInfoNode.active = !0;
                        for (var t = 0, n = 0, o = this._holyAreaUserData.Maps; n < o.length; n++)
                            for (var r = o[n]; r > 0;) t += 1 & r, r >>= 1;
                        this.NextDifficultTipLabel.string = "holyArea_fullstarTonextdifficult".ToUILocale().Fmt(30) + "<outline color=#202434 width=3><color=#fed94a>(" + t + "/" + 3 * this._layerMaxCount + ")</c></outline>"
                    } else this.StarInfoNode.active = !1
                }, t.prototype.IsNewRound = function() {
                    return this._holyAreaUserData = g.DataCenter.Instance.GetDataById(d.AncientSacred_Model, 1), null == this._holyAreaUserData || this._holyAreaUserData.ResetTime != this._lastResetTime
                }, t.prototype.RequestEnterHolyArea = function() {
                    var e = new d.Req_Ancient_Enter;
                    e.Type = 0, y.RpcComponent.Instance.Call(e, this.ResponseEnterHolyAreaSuccess.bind(this))
                }, t.prototype.ResponseEnterHolyAreaSuccess = function() {
                    this.LoadUserData(), this.CheckHintShow(), this.LoadConfigData(), this.LoadMap(), this.SetResetTimeContent(), this.SetLevelInfo(), this.SetAnimNode(), this.SetPlayerPos(), this.SetAutoButton(), this.SetStarCount(), this.SetProgressNode(), this._lastResetTime = this._holyAreaUserData.ResetTime
                }, t.prototype.GetPlayerUid = function() {
                    return g.DataCenter.Instance.Uid
                }, t.prototype.GetCacheKey = function() {
                    return n.Cache_Key_Prefeix + "_" + this.GetPlayerUid()
                }, t.prototype.GetCacheResetTime = function() {
                    var e = 0,
                        t = cc.sys.localStorage.getItem(this.GetCacheKey());
                    return null != t && (e = S.AppUtil.ToInt(t)), e
                }, t.prototype.CheckHintShow = function() {
                    var e = this.GetCacheResetTime(),
                        t = this._holyAreaUserData.ResetTime;
                    e != t && (cc.sys.localStorage.setItem(this.GetCacheKey(), t.toString()), c.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyAreaEnterHintPanel.Path))
                }, t.prototype.LoadUserData = function() {
                    this._holyAreaUserData = g.DataCenter.Instance.GetDataById(d.AncientSacred_Model, 1);
                    var e = p.ConfigDataComponent.Instance.GetConfigById(f.AncientSacredMap_Config, this._holyAreaUserData.MapLevelId);
                    e && e.Model ? this.Bg.spriteFrame = this.Bgs[e.Model] : this.Bg.spriteFrame = this.Bgs[0]
                }, t.prototype.LoadConfigData = function() {
                    var e = this;
                    this._ancientSacredConfig = p.ConfigDataComponent.Instance.GetConfigById(f.AncientSacredMap_Config, this._holyAreaUserData.MapLevelId), this._layerMaxCount = this._ancientSacredConfig.MonsterType[this._ancientSacredConfig.MonsterType.length - 1].Items[0], p.ConfigDataComponent.Instance.GetArrayConfig(f.AncientSacredMap_Config).forEach(function(t) {
                        e._maxDifficult = Math.max(e._maxDifficult, t.Id)
                    })
                }, t.prototype.update = function() {
                    if (-1 != this._moveDirection) {
                        var e = this.Player.parent;
                        if (0 == this._moveDirection)
                            for (var t = 0; t < e.children.length; t++) "Player" != (n = e.children[t].name) && (n == this._playerStandLayer.toString() || n == (this._playerStandLayer + 1).toString() ? this.Player.position.y > e.children[t].y ? e.children[t].zIndex = 50 : e.children[t].zIndex = -50 : e.children[t].zIndex = 0);
                        else
                            for (t = 0; t < e.children.length; t++) {
                                var n;
                                "Player" != (n = e.children[t].name) && (n == this._playerStandLayer.toString() || n == (this._playerStandLayer - 1).toString() ? this.Player.position.y > e.children[t].y ? e.children[t].zIndex = 50 : e.children[t].zIndex = -50 : e.children[t].zIndex = 0)
                            }
                    }
                }, t.prototype.LoadMap = function() {
                    for (var e = 0; e <= this._layerMaxCount; e++) e % 2 == 0 ? this._blockPlaceArray.push(0) : this._blockPlaceArray.push(1);
                    0 == this._blockPlaceArray[this._blockPlaceArray.length - 1] ? this._blockPlaceArray.push(1) : this._blockPlaceArray.push(0), this._screenMaxOffset = this._mapDirectionVectors[this._blockPlaceArray[0]].y;
                    var t = cc.instantiate(this._blockItemPrefab).getComponent(m.default);
                    for (this.MapContainer.addChild(t.node, this._brickLayingZIndex--), t.node.position = this._brickLayingPos, this._blockItemPool[0] = t, this._blockItemPool[0].SetUI(0, 0, this._atlas), e = 0; e < 2; e++) this._blockItemPool[0].EnemyPosArray[e].parent = this.Player.parent;
                    for (this._blockItemPool[0].EnemyPosArray[0].name = "0", this._blockItemPool[0].EnemyPosArray[1].name = "0", this._blockItemPool[0].EnemyPosArray[0].position = this._brickLayingPos.add(cc.v3(-157, 0, 0)), this._blockItemPool[0].EnemyPosArray[1].position = this._brickLayingPos.add(cc.v3(147, 0, 0)), e = 1; e <= this._layerMaxCount + 1; e++) {
                        if (null == this._blockItemPool[e]) {
                            var n = cc.instantiate(this._blockItemPrefab).getComponent(m.default);
                            this.MapContainer.addChild(n.node, this._brickLayingZIndex--), this._screenMaxOffset += this._mapDirectionVectors[this._blockPlaceArray[e]].y, this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockPlaceArray[e]]), n.node.position = this._brickLayingPos, this._blockItemPool[e] = n
                        }
                        this._blockItemPool[e].SetUI(e, this._blockPlaceArray[e], this._atlas);
                        for (var o = 0; o < 2; o++) this._blockItemPool[e].EnemyPosArray[o].parent = this.Player.parent, this._blockItemPool[e].EnemyPosSingle.parent = this.Player.parent;
                        this._blockItemPool[e].EnemyPosArray[0].name = e.toString(), this._blockItemPool[e].EnemyPosArray[1].name = e.toString(), this._blockItemPool[e].EnemyPosSingle.name = e.toString(), this._blockItemPool[e].EnemyPosArray[0].position = this._brickLayingPos.add(cc.v3(-157, 0, 0)), this._blockItemPool[e].EnemyPosArray[1].position = this._brickLayingPos.add(cc.v3(147, 0, 0)), this._blockItemPool[e].EnemyPosSingle.position = this._brickLayingPos.add(cc.v3(-6, 0, 0))
                    }
                }, t.prototype.RefreshBlockItem = function() {
                    for (var e = 0; e <= this._layerMaxCount + 1; e++) this._blockItemPool[e].SetUI(e, this._blockPlaceArray[e], this._atlas)
                }, t.prototype.SetLevelInfo = function() {
                    var e;
                    e = this._holyAreaUserData.Maps.length < this._layerMaxCount || this._holyAreaUserData.Maps[this._layerMaxCount - 1] <= 0 ? this._holyAreaUserData.Maps.length - 1 : this._layerMaxCount;
                    var t = this._layerMaxCount;
                    this.LevelTag.string = "holyArea_levelTag".ToUILocale().Fmt(e, t), this.DifficultyContent.string = "holyArea_difficulty".ToUILocale().Fmt(this._holyAreaUserData.MapLevelId)
                }, t.prototype.SetResetTimeContent = function() {
                    this.SetTimeTag(), this.SetResetTime()
                }, t.prototype.SetResetTime = function() {
                    var e = this;
                    this.unscheduleAllCallbacks(), this.schedule(function() {
                        e.SetTimeTag()
                    }, 1)
                }, t.prototype.SetTimeTag = function() {
                    var e, t = y.RpcComponent.Instance.ServerTime,
                        n = this._holyAreaUserData.ResetTime + 2 * C.Etc.DayDuration - t;
                    if (n > C.Etc.DayDuration) {
                        var o = n % C.Etc.DayDuration;
                        o = Math.floor(o / C.Etc.HourDuration);
                        var r = Math.floor(n / C.Etc.DayDuration);
                        e = "timeFormat_DayAndHour".ToUILocale().Fmt(r, o)
                    } else e = n.FmtRemainTime();
                    this.ResetTimeContent.string = "<outline color=#202434 width=3>" + "holyArea_resetTime".ToUILocale() + "<color=#6eeea7>" + "holyArea_timeRemainderOnlyHours".ToUILocale().Fmt(e) + "</c></outline>"
                }, t.prototype.SetAnimNode = function() {
                    this.AnimNode.active = !1, this.TargetBattleTag.active = !1;
                    for (var e = 1; e <= this._layerMaxCount; e++)
                        if (this._holyAreaUserData.Maps.length < this._layerMaxCount) {
                            if (1 == this._holyAreaUserData.Maps.length) {
                                this.TargetBattleTag.active = !0, this.TargetBattleTag.setPosition(this._blockItemPool[1].node.position.add(cc.v3(0, 180, 0)));
                                break
                            }
                            if (e == this._holyAreaUserData.Maps.length) {
                                this.TargetBattleTag.active = !0, this.TargetBattleTag.setPosition(this._blockItemPool[e].node.position.add(cc.v3(0, 180, 0)));
                                break
                            }
                        } else if (e == this._layerMaxCount && 0 == this._holyAreaUserData.Maps[this._layerMaxCount - 1]) {
                        this.TargetBattleTag.active = !0, this.TargetBattleTag.setPosition(this._blockItemPool[e].node.position.add(cc.v3(0, 180, 0)));
                        break
                    }
                    if (A.BattleManager.Instance.IsInBattle(C.MapType.AncientSacred)) {
                        var t = P.BattleData.PlayingBattleDatas[C.MapType.AncientSacred].ExtraParam.UserParams.LevelId + 1;
                        this.TargetBattleTag.active = !1, this.AnimNode.active = !0, this.AnimNode.setPosition(this._blockItemPool[t].node.position.add(cc.v3(0, 180, 0)))
                    }
                }, t.prototype.SetPlayerPos = function() {
                    this._holyAreaUserData.Maps.length < this._layerMaxCount ? this._playerStandLayer = this._holyAreaUserData.Maps.length - 1 : 0 == this._holyAreaUserData.Maps[this._holyAreaUserData.Maps.length - 1] ? this._playerStandLayer = this._layerMaxCount - 1 : this._playerStandLayer = this._layerMaxCount;
                    var e = null;
                    if (A.BattleManager.Instance.IsInBattle(C.MapType.AncientSacred)) {
                        var t = P.BattleData.PlayingBattleDatas[C.MapType.AncientSacred];
                        this._playerStandLayer = t.ExtraParam.UserParams.LevelId + 1, e = this._playerStandLayer
                    }
                    var n = this._blockItemPool[this._playerStandLayer].node;
                    this.PlayerAnim.setAnimation(0, "standby", !0), this.Player.position = n.position, this.ResetCamera(e)
                }, t.prototype.SetPlayerAutoMove = function() {
                    var e = this._holyAreaUserData.Maps.length;
                    c.EZLog.Log(e), c.EZLog.Log(this._playerStandLayer), this._playerStandLayer < e && this.OnPlayerMove(e, !1)
                }, t.prototype.ResetCamera = function(e) {
                    var t = 0;
                    if (this._holyAreaUserData.Maps.length < this._layerMaxCount || this._holyAreaUserData.Maps[this._layerMaxCount - 1] <= 0)
                        for (var n = 0; n < this._playerStandLayer; n++) t += this._mapDirectionVectors[this._blockPlaceArray[n]].y;
                    else if (e)
                        for (n = 0; n < e; n++) t += this._mapDirectionVectors[this._blockPlaceArray[n]].y;
                    else if (this._holyAreaUserData.IsReceived) {
                        var o = 0;
                        for (n = 0; n < this._holyAreaUserData.Maps.length; n++) o = n + 1;
                        if (o > 0)
                            for (n = 0; n < o; n++) t += this._mapDirectionVectors[this._blockPlaceArray[n]].y;
                        else
                            for (n = 0; n <= this._layerMaxCount + 1; n++) t += this._mapDirectionVectors[this._blockPlaceArray[n]].y
                    } else
                        for (n = 0; n <= this._layerMaxCount; n++) t += this._mapDirectionVectors[this._blockPlaceArray[n]].y;
                    this._isFirstIn ? (this.WorldNode.y = -t, this._isFirstIn = !1) : cc.tween(this.WorldNode).to(.5, {
                        position: cc.v3(this.WorldNode.x, -t, 0)
                    }).start()
                }, t.prototype.SetProgressNode = function() {
                    this.ProgressNode.SetUI()
                }, t.prototype.OnTouchMove = function(e) {
                    var t = e.getDelta(),
                        n = this.WorldNode.position.add(cc.v3(t)).y;
                    n > -1 * this._screenMaxOffset && n < 0 && (this.WorldNode.y = n), Math.abs(t.y) > 5 && (m.default.isCanClick = !1)
                }, t.prototype.OnFightOverClick = function() {
                    this.FightOverNode.active = !1
                }, t.prototype.OnTouchEnd = function() {
                    m.default.isCanClick = !0
                }, t.prototype.FastMove = function(e) {
                    var t = this;
                    if (!this._isPlayerMoving) {
                        var o = this._blockItemPool[e].node;
                        this._playerStandLayer = e, this.ResetCamera(e), this.PlayerTransAnim.node.active = !0, this.PlayerTransAnim.setAnimation(0, this.PlayerTransAnim.defaultAnimation, !1), this._isPlayerMoving = !0, e < this._layerMaxCount + 1 ? (this.PlayerTransAnim.setCompleteListener(function() {
                            t.Player.position = o.position, t.PlayerTransAnim.setAnimation(0, t.PlayerTransAnim.defaultAnimation, !1), t.PlayerTransAnim.setCompleteListener(function() {
                                t.PlayerTransAnim.node.active = !1
                            }), setTimeout(function() {
                                t.PlayerAnim.enabled = !0, setTimeout(function() {
                                    n.StartBattle()
                                }, 300)
                            }, 50)
                        }), setTimeout(function() {
                            t.PlayerAnim.enabled = !1
                        }, 50)) : (this.ResetCamera(), this.PlayerTransAnim.setCompleteListener(function() {
                            t.Player.position = o.position.add(cc.v3(-87, -73)), t.PlayerTransAnim.setAnimation(0, t.PlayerTransAnim.defaultAnimation, !1), t.PlayerTransAnim.setCompleteListener(function() {
                                t.PlayerTransAnim.node.active = !1
                            }), setTimeout(function() {
                                t._isPlayerMoving = !1, t.PlayerAnim.enabled = !0
                            }, 50)
                        }))
                    }
                }, t.prototype.OnPlayerMoveNext = function() {
                    if (A.BattleManager.Instance.IsInBattle(C.MapType.AncientSacred)) {
                        var e = P.BattleData.PlayingBattleDatas[C.MapType.AncientSacred].ExtraParam.UserParams.LevelId + 1;
                        this._playerStandLayer = e
                    }
                    var t = this._blockItemPool[this._playerStandLayer].node;
                    this.PlayerAnim.setAnimation(0, "standby", !0), this.Player.position = t.position;
                    for (var n = 0, o = 0; o < this._playerStandLayer; o++) n += this._mapDirectionVectors[this._blockPlaceArray[o]].y;
                    this.WorldNode.y = -n
                }, t.prototype.OnPlayerMove = function(e, t) {
                    var o = this;
                    this._isPlayerMoving || (t ? this.FastMove(e) : e != this._playerStandLayer ? Math.abs(e - this._playerStandLayer) > 2 ? this.FastMove(e) : (this._isPlayerMoving = !0, e - this._playerStandLayer > 0 ? (this._moveDirection = 0, this.DoingPlayerMove(this._playerStandLayer + 1, e - this._playerStandLayer > 0, Math.abs(e - this._playerStandLayer), function() {
                        o.PlayerAnim.setAnimation(0, "standby", !0), o._playerStandLayer = e, o._moveDirection = -1, o.ResetCamera(e), o._playerStandLayer == o._layerMaxCount + 1 ? o._holyAreaUserData.IsReceived ? setTimeout(function() {
                            o._isPlayerMoving = !1
                        }, 300) : setTimeout(function() {
                            o._isPlayerMoving = !1, o.RequestFinalReward()
                        }, 500) : setTimeout(function() {
                            o._isPlayerMoving = !1, n.StartBattle()
                        }, 300)
                    })) : (this._moveDirection = 1, this.DoingPlayerMove(this._playerStandLayer - 1, e - this._playerStandLayer > 0, Math.abs(e - this._playerStandLayer), function() {
                        o.PlayerAnim.setAnimation(0, "standby", !0), o._playerStandLayer = e, o._moveDirection = -1, o.ResetCamera(e), setTimeout(function() {
                            o._isPlayerMoving = !1, n.StartBattle()
                        }, 300)
                    }))) : 11 == e ? this._holyAreaUserData.IsReceived || this.RequestFinalReward() : n.StartBattle())
                }, t.prototype.DoingPlayerMove = function(e, t, n, o) {
                    var r = this,
                        i = this._blockItemPool[e].node;
                    this.Player.scaleX = e % 2 != 0 ? .875 : -.875, this.PlayerAnim.setAnimation(0, "move", !0);
                    var a = cc.Vec3.ZERO;
                    t && e == this._layerMaxCount + 1 && (a = cc.v3(-87, -73)), cc.tween(this.Player).to(1, {
                        position: i.position.add(a)
                    }).call(function() {
                        r._playerStandLayer = e, --n > 0 ? t ? r.DoingPlayerMove(e + 1, t, n, o) : r.DoingPlayerMove(e - 1, t, n, o) : o()
                    }).start()
                }, t.prototype.RequestFinalReward = function() {
                    var e = new d.Req_Ancient_Rewards;
                    y.RpcComponent.Instance.Call(e, this.ResponseFinalRewardSuccess.bind(this))
                }, t.prototype.ResponseFinalRewardSuccess = function(e) {
                    e.Rewards.length > 0 && (I.UIUtlity.ShwDisplayRewardPanel(e.Rewards), this.RefreshBlockItem(), this._isShowFightOver = !0)
                }, t.prototype.OnBtnShopClick = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.ShopPanel.Path, 2, k.ShopType.Abyss)
                }, t.prototype.OnBtnTreasuryClick = function() {
                    c.UIManager.Instance.ShowUIPanel(u.PanelConfig.WarTokenListPanel.Path, !1, v.WarTokenType.SacredTreasury)
                }, t.prototype.OnBtnRankClick = function() {
                    this.RequestRankDataByType()
                }, t.prototype.RequestRankDataByType = function() {
                    var e = new d.Req_Player_GetRank;
                    e.RankType = v.RankTypeId.AncientSacred, y.RpcComponent.Instance.Call(e, this.ResponseRankDataSuccess.bind(this))
                }, t.prototype.ResponseRankDataSuccess = function(e) {
                    this._rankData = e.Data, null == this._rankData || 0 == this._rankData.Rows.length ? I.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale()) : c.UIManager.Instance.ShowUIPanel(u.PanelConfig.RankDetailPanel.Path, v.RankTypeId.AncientSacred, this._rankData.Rows, this._rankData.Achievements, e.MyRank, e.MyRankData)
                }, t.prototype.OnBtnLevelListClick = function() {
                    this._isPlayerMoving || c.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyAreaLevelListPanel.Path)
                }, t.prototype.OnBtnRuleClick = function() {
                    var e = {
                        name: "holyArea_main_title".ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: ["holyArea_rule_text".ToUILocale()]
                    };
                    I.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnBtnReturnClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnAutoButtonClick = function() {
                    var e = this;
                    I.UIUtlity.ShowHintPanel("", "holyArea_check_auto".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        var t = new d.Req_Ancient_OneClickChallenge;
                        h.RpcComponent.Instance.Call(t, function(t) {
                            I.UIUtlity.ShwDisplayRewardPanel(t.Rewards), I.UIUtlity.ShowFloatingHint("holyArea_pass_all_level".ToUILocale()), e._holyAreaUserData = g.DataCenter.Instance.GetDataById(d.AncientSacred_Model, 1), e.SetPlayerPos()
                        })
                    })
                }, t.prototype.SetAutoButton = function() {
                    this.AutoButton.node.active = !1
                }, t.InitBattle = function() {
                    var e = C.MapType.AncientSacred;
                    l.Game.EventDispatcher.Only(C.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), l.Game.EventDispatcher.Only(C.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), l.Game.EventDispatcher.Only(C.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), l.Game.EventDispatcher.Only(C.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), l.Game.EventDispatcher.Only(C.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.RestartBattle = function() {
                    n.StartBattle()
                }, t.StartBattle = function() {
                    var e = this,
                        t = c.UIManager.Instance.GetUIPanel(u.PanelConfig.HolyAreaMainPanel.Path);
                    if (t) {
                        t._monsterId = t._holyAreaUserData.Monsters[t._playerStandLayer - 1];
                        var n = p.ConfigDataComponent.Instance.GetConfigById(f.AcscMonster_Config, t._monsterId);
                        c.UIManager.Instance.ShowUIPanel(u.PanelConfig.BattleFormationPanel.Path, function(t) {
                            e.RequestHolyAreaChallenge(t)
                        }, n.MapIds, {
                            MapIndex: t._playerStandLayer
                        }), t._isPlayerMoving = !1
                    }
                }, t.RequestHolyAreaChallenge = function(e) {
                    var t = c.UIManager.Instance.GetUIPanel(u.PanelConfig.HolyAreaMainPanel.Path);
                    if (t) {
                        var n = new d.Req_Ancient_Challenge;
                        n.MapIndex = t._playerStandLayer - 1, n.Formations = e, y.RpcComponent.Instance.Call(n, function(e) {
                            c.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyAreaBattleStartPanel.Path, t._playerStandLayer);
                            var n = {
                                    SettleAllWhenOneFailed: !0,
                                    UserParams: {
                                        LevelId: t._playerStandLayer - 1
                                    },
                                    StartBattleDelay: 1400,
                                    CanSkipPlay: !0,
                                    CanPlayInBackground: !1
                                },
                                o = e.Reports;
                            A.BattleManager.Instance.StartPlay(o, n)
                        })
                    }
                }, t.SettleBattle = function(e) {
                    var t = new d.Req_Map_BattleSettlement;
                    t.MapType = v.MapType.AncientSacred, y.RpcComponent.Instance.Call(t, function(t) {
                        var n = t.ExtraParam[0] ? t.ExtraParam[0].Items[0] : 0,
                            o = t.ExtraParam[0] ? t.ExtraParam[0].Items[1] : 0,
                            r = t.ExtraParam[0] ? t.ExtraParam[0].Items[2] : 0;
                        if (e.SettleParams = [n, t.Rewards, o, r], 1 == t.Result) {
                            var i = w.default.settlement_win_prefab_path;
                            A.BattleManager.Instance.ShowSettlePanel(u.PanelConfig.SettlementWinPanel.Path, i, e)
                        } else i = w.default.settlement_fail_prefab_path, A.BattleManager.Instance.ShowSettlePanel(u.PanelConfig.SettlementFailPanel.Path, i, e)
                    })
                }, t.CancelBattle = function() {
                    var e = new d.Req_Map_CancelChallenge;
                    e.MapType = v.MapType.AncientSacred, y.RpcComponent.Instance.Call(e, null)
                }, t.OnBattleSwitchToBackground = function() {}, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.ShowGuide = function() {
                    R.default.instance.CheckGameModeuleGuideNeedShow(5006) && (R.default.instance.ShowNPCDialogs([1027]), R.default.instance.CompleteGameModuleWeakGuide(5006))
                }, t.Cache_Key_Prefeix = "HolyAreaResetTime", i([D(cc.Label)], t.prototype, "Title", void 0), i([D(cc.Sprite)], t.prototype, "Bg", void 0), i([D(cc.SpriteFrame)], t.prototype, "Bgs", void 0), i([D(cc.Node)], t.prototype, "WorldNode", void 0), i([D(cc.Node)], t.prototype, "Map", void 0), i([D(cc.Node)], t.prototype, "MapContainer", void 0), i([D(cc.RichText)], t.prototype, "LevelTag", void 0), i([D(cc.RichText)], t.prototype, "DifficultyContent", void 0), i([D(cc.RichText)], t.prototype, "ResetTimeContent", void 0), i([D(cc.Node)], t.prototype, "Player", void 0), i([D(sp.Skeleton)], t.prototype, "PlayerTransAnim", void 0), i([D(cc.Node)], t.prototype, "AnimNode", void 0), i([D(cc.Node)], t.prototype, "TargetBattleTag", void 0), i([D(b.default)], t.prototype, "ProgressNode", void 0), i([D(cc.Node)], t.prototype, "FightOverNode", void 0), i([D(cc.Node)], t.prototype, "FightOverMask", void 0), i([D(cc.RichText)], t.prototype, "FightOverContentRichText", void 0), i([D(cc.Button)], t.prototype, "BtnShop", void 0), i([D(cc.Label)], t.prototype, "ShopBtnLabel", void 0), i([D(cc.Button)], t.prototype, "BtnTreasury", void 0), i([D(cc.Label)], t.prototype, "TreasureBtnLabel", void 0), i([D(cc.Button)], t.prototype, "BtnRank", void 0), i([D(cc.Label)], t.prototype, "RankBtnLabel", void 0), i([D(cc.Button)], t.prototype, "BtnLevelList", void 0), i([D(cc.Label)], t.prototype, "LevelListBtnLabel", void 0), i([D(cc.Button)], t.prototype, "BtnRule", void 0), i([D(cc.Button)], t.prototype, "BtnReturn", void 0), i([D(cc.RichText)], t.prototype, "NextDifficultTipLabel", void 0), i([D(cc.Button)], t.prototype, "AutoButton", void 0), i([D(cc.Label)], t.prototype, "AutoLabel", void 0), i([D(cc.Node)], t.prototype, "StarInfoNode", void 0), i([D(cc.Sprite)], t.prototype, "HeroBg", void 0), n = i([M], t)
            }(l.BaseUIFullScreenPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/HolyAreaBlockItem": "HolyAreaBlockItem",
        "../Components/HolyAreaProgressNode": "HolyAreaProgressNode",
        "./DoubleBattleUIPanel": "DoubleBattleUIPanel",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    HolyAreaProgressNode: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c5fcaNqSvhMiasxXtwf70E5", "HolyAreaProgressNode");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../Components/DataCenter"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/ConfigData/ConfigDataComponent"),
            u = e("../../../EZFramework/Auxiliary/EZLog"),
            p = e("./NodeJiggling"),
            d = e("../../Components/RpcComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("./CustomProgressBar"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TotalCount = null, t.RewardProgress = null, t.NodeScores = [], t.RewardBox = [], t.BoxMask = [], t.BoxSign = [], t._holyAreaUserData = null, t._ancientSacredConfig = null, t._layerMaxCount = 0, t._currStarCount = 0, t._isInit = !1, t
                }
                return r(t, e), t.prototype.SetUI = function() {
                    this._isInit || (this._isInit = !0), this.LoadUserData(), this.LoadConfig(), this.SetTotalCount(), this.SetNodeScore(), this.SetProgress(), this.SetRewardBox()
                }, t.prototype.LoadUserData = function() {
                    this._holyAreaUserData = s.DataCenter.Instance.GetDataById(a.AncientSacred_Model, 1)
                }, t.prototype.LoadConfig = function() {
                    this._ancientSacredConfig = c.ConfigDataComponent.Instance.GetConfigById(l.AncientSacredMap_Config, this._holyAreaUserData.MapLevelId), this._layerMaxCount = this._ancientSacredConfig.MonsterType[this._ancientSacredConfig.MonsterType.length - 1].Items[0]
                }, t.prototype.SetTotalCount = function() {
                    for (var e = 0, t = 0, n = this._holyAreaUserData.Maps; t < n.length; t++)
                        for (var o = n[t]; o > 0;) e += 1 & o, o >>= 1;
                    this._currStarCount = e, this.TotalCount.string = this._currStarCount + "/" + this._layerMaxCount * this._ancientSacredConfig.NodeRewards.length
                }, t.prototype.SetNodeScore = function() {
                    for (var e = 0; e < this.NodeScores.length; e++) this.NodeScores[e].string = ((e + 1) * this._layerMaxCount).toString()
                }, t.prototype.SetProgress = function() {
                    this.RewardProgress.progress = this._currStarCount / (this._layerMaxCount * this._ancientSacredConfig.NodeRewards.length)
                }, t.prototype.SetRewardBox = function() {
                    for (var e = 0; e < this.RewardBox.length; e++) {
                        var t = (e + 1) * this._layerMaxCount;
                        this._currStarCount >= t ? this._holyAreaUserData.NodeRewards[e] <= 0 ? (this.RewardBox[e].Enable(), this.BoxMask[e].active = !1, this.BoxSign[e].active = !1) : (this.RewardBox[e].Disable(), this.BoxMask[e].active = !0, this.BoxSign[e].active = !0) : (this.RewardBox[e].Disable(), this.BoxMask[e].active = !1, this.BoxSign[e].active = !1), this.RewardBox[e].node.on(cc.Node.EventType.TOUCH_END, this.OnBoxNodeClick, this)
                    }
                }, t.prototype.OnBoxNodeClick = function(e) {
                    var t = Number.parseInt(e.target.parent.name),
                        n = t * this._layerMaxCount,
                        o = "reward".ToUILocale();
                    if (this._currStarCount >= n)
                        if (this._holyAreaUserData.NodeRewards[t - 1] <= 0) u.EZLog.Log(t - 1), this.RequestReceiveBoxReward(t - 1);
                        else {
                            var r = this.GetPointRewardDataArray(t - 1);
                            h.UIUtlity.ShowHintPanel(o, r)
                        }
                    else r = this.GetPointRewardDataArray(t - 1), h.UIUtlity.ShowHintPanel(o, r)
                }, t.prototype.GetPointRewardDataArray = function(e) {
                    for (var t = [], n = this._ancientSacredConfig.NodeRewards[e], o = c.ConfigDataComponent.Instance.GetConfigById(l.ItemRewards_Config, n), r = 0; r < o.Rewards.length; r++) {
                        var i = o.Rewards[r].Items[0],
                            a = o.Rewards[r].Items[1];
                        t.push({
                            ItemId: i,
                            Count: a
                        })
                    }
                    return t
                }, t.prototype.RequestReceiveBoxReward = function(e) {
                    var t = new a.Req_Ancient_NodeRewards;
                    t.Index = e, d.RpcComponent.Instance.Call(t, this.ResponseReceiveBoxRewardSuccess.bind(this))
                }, t.prototype.ResponseReceiveBoxRewardSuccess = function(e) {
                    e.Rewards.length > 0 && h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, i([m(cc.Label)], t.prototype, "TotalCount", void 0), i([m(f.default)], t.prototype, "RewardProgress", void 0), i([m(cc.Label)], t.prototype, "NodeScores", void 0), i([m(p.default)], t.prototype, "RewardBox", void 0), i([m(cc.Node)], t.prototype, "BoxMask", void 0), i([m(cc.Node)], t.prototype, "BoxSign", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomProgressBar": "CustomProgressBar",
        "./NodeJiggling": "NodeJiggling"
    }],
    HolyAreaSuccessSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "205c0Z+2ERB8qXI+9gzu04P", "HolyAreaSuccessSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/SettlementBaseComponent"),
            c = e("../Components/CustomRichText"),
            u = e("../Components/ItemComponent"),
            p = e("../../../EZFramework/UIFrame/UIManager"),
            d = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../../Consts/Consts"),
            g = e("../../Components/Components"),
            m = e("../../Components/DataCenter"),
            I = e("../../../../Proto/Static/ConfigProto"),
            _ = e("../../Components/ConfigData/ConfigDataComponent"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../Battle/BattleManager"),
            w = e("./StarConditionComponent"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BattleName = null, t.StarConditionComponent = null, t.LeftTeamGrid = null, t.RightTeamGrid = null, t.BtnReturn = null, t.LabelBtnReturn = null, t.BtnSure = null, t.WinLeft = null, t.LoseLeft = null, t.UnsureLeft = null, t.WinRight = null, t.LoseRight = null, t.UnsureRight = null, t.RewardTag = null, t.TeamLeftTag = null, t.TeamRightTag = null, t.SureBtnLabel = null, t.RewardGrid = null, t.RewardEmpty = null, t.BtnNextLevel = null, t.LabelBtnNextLevel = null, t.TeamRightNode = null, t.CONDITION_ITEM_PATH = "ItemsComponent/StarConditionItem", t._conditionItemPrefab = null, t._acscMonsterConfig = null, t._conditionConfig = [], t._leftItemArray = [], t._rightItemArray = [], t._rewardItemArray = [], t._isInit = !1, t._loadedAssets = [], t._monsterId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    C.Game.EventDispatcher.On(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    C.Game.EventDispatcher.Off(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t), this._isInit || (this.SetStaticLocalText(), this.SetClickEvent(), this._isInit = !0), this._levelId = t.SettleParams[0], this._rewards = t.SettleParams[1], this._monsterId = t.SettleParams[3], this._reports = t.Reports, this.LoadConfig(), this.SetBattleName(), this.LoadHeroItem(), this.LoadConditionItem(), this.SetBattleStateUI(), this.SetBtnState()
                }, t.prototype.SetBattleName = function() {
                    this.BattleName.Init("holyArea_battleStar_battleName".ToUILocale().Fmt(this._levelId + 1))
                }, t.prototype.SetStaticLocalText = function() {
                    this.TeamLeftTag.string = "formation_index".ToUILocale().Fmt(1), this.TeamRightTag.string = "formation_index".ToUILocale().Fmt(2), this.SureBtnLabel.string = "ok".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.RewardTag.string = "has_got_reward".ToUILocale(), this.LabelBtnNextLevel.string = "idleBattle_main_nextLevel".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnNextLevel.node.on("click", this.OnBtnNextClick, this)
                }, t.prototype.LoadConfig = function() {
                    this._conditionConfig = [], this._acscMonsterConfig = _.ConfigDataComponent.Instance.GetConfigById(I.AcscMonster_Config, this._monsterId);
                    for (var e = 0; e < this._acscMonsterConfig.AcscTasks.length; e++) {
                        var t = this._acscMonsterConfig.AcscTasks[e],
                            n = _.ConfigDataComponent.Instance.GetConfigById(I.AcscCondition_Config, t);
                        this._conditionConfig.push(n)
                    }
                    this.TeamRightNode.active = this._acscMonsterConfig.MapIds.length > 1
                }, t.prototype.OnBtnReturnClick = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return p.UIManager.Instance.BackUIPanel(), [4, p.UIManager.Instance.ShowUIPanel(h.PanelConfig.HolyAreaMainPanel.Path)];
                                case 1:
                                    return e.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.ShowReward = function() {
                    for (var e = 0; e < this._rewardItemArray.length; e++) this._rewardItemArray[e].node.active = !1;
                    if (this._rewards.length > 0) {
                        for (e = 0; e < this._rewards.length; e++) {
                            if (null == this._rewardItemArray[e]) {
                                var t = cc.instantiate(this._commonItemPrefab).getComponent(u.ItemComponent);
                                t.node.parent = this.RewardGrid, this._rewardItemArray[e] = t
                            }
                            this._rewardItemArray[e].Init(this._rewards[e], u.ItemComponentType.ItemCommon)
                        }
                        this.RewardEmpty.node.active = !1
                    } else this.RewardEmpty.node.active = !0, this.RewardEmpty.string = "temporaryNoReward".ToUILocale()
                }, t.prototype.OnBtnSureClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnNextClick = function() {
                    if (p.UIManager.Instance.BackUIPanel(), this.CheckCanNextLevel()) {
                        var e = !1;
                        this._BattleData.InBackground && (e = !0), this._BattleData.InBackground ? (v.UIUtlity.ShowFloatingHint("idleBattle_startNext".ToUILocale()), this.RequestHolyAreaChallenge(null, e)) : this.StartBattle()
                    }
                }, t.prototype.StartBattle = function() {
                    var e = this,
                        t = m.DataCenter.Instance.GetDataById(f.AncientSacred_Model, 1).Monsters[this._levelId + 1],
                        n = _.ConfigDataComponent.Instance.GetConfigById(I.AcscMonster_Config, t);
                    p.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattleFormationPanel.Path, function(t) {
                        e.RequestHolyAreaChallenge(t, !1)
                    }, n.MapIds, {
                        MapIndex: this._levelId + 2
                    })
                }, t.prototype.RequestHolyAreaChallenge = function(e, t) {
                    var n = new f.Req_Ancient_Challenge;
                    n.MapIndex = this._levelId + 1, n.Formations = e, g.RpcComponent.Instance.Call(n, function(e) {
                        var n = {
                                SettleAllWhenOneFailed: !0,
                                UserParams: {
                                    LevelId: this._levelId + 1
                                },
                                StartBattleDelay: 1400,
                                CanSkipPlay: !0,
                                CanPlayInBackground: !1
                            },
                            o = e.Reports;
                        S.BattleManager.Instance.StartPlay(o, n, t), C.Game.EventDispatcher.Emit(b.EventKeys.EVENT_HOLYAREA_MOVE_NEXTLEVEL)
                    }.bind(this))
                }, t.prototype.CheckCanNextLevel = function() {
                    var e = !0,
                        t = this._levelId + 1,
                        n = m.DataCenter.Instance.GetDataById(f.AncientSacred_Model, 1),
                        o = _.ConfigDataComponent.Instance.GetConfigById(I.AncientSacredMap_Config, n.MapLevelId);
                    return t >= o.MonsterType[o.MonsterType.length - 1].Items[0] && (v.UIUtlity.ShowFloatingHint("climbTower_limit_max_level".ToUILocale()), e = !1), e
                }, t.prototype.LoadConditionItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != this._conditionItemPrefab ? [3, 2] : (e = this, [4, C.AssetsManager.Instance.LoadAsset(this.CONDITION_ITEM_PATH, cc.Prefab)]);
                                case 1:
                                    if (e._conditionItemPrefab = s.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._conditionItemPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    for (t = [], n = 0; n < this._BattleData.Reports.length; n++) {
                                        for (o = [], r = this._BattleData.Reports[n].Heros, i = 0; i < r.length; i++)(a = r[i]).Camp == y.CampType.Attacker && a.HeroId > 0 && o.push(a.Sid);
                                        t[n] = o
                                    }
                                    return this.StarConditionComponent.SetElementIconSize(57, 62, 36, 28), this.StarConditionComponent.SetUI(this._levelId, !0, 0, t), [2]
                            }
                        })
                    })
                }, t.prototype.LoadHeroItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : [4, d.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return C.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._commonItemPrefab = e, t.label = 2;
                                case 2:
                                    return this.LoadItemByData(!0), this._acscMonsterConfig.MapIds.length > 1 && this.LoadItemByData(!1), this.ShowReward(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadItemByData = function(e) {
                    for (var t, n, o = e ? this._leftItemArray : this._rightItemArray, r = 0; r < o.length; r++) o[r].node.active = !1;
                    e ? (t = this.LeftTeamGrid, n = this._BattleData.Reports[0].Heros) : (t = this.RightTeamGrid, n = this._BattleData.Reports[1].Heros);
                    for (var i = 0, a = 0; a < n.length; a++) {
                        var s = n[a];
                        if (!(s.HeroId <= 0 || s.Camp != y.CampType.Attacker)) {
                            if (null == o[i]) {
                                var l = cc.instantiate(this._commonItemPrefab).getComponent(u.ItemComponent);
                                l.node.parent = t.node, o[i] = l
                            }
                            var c = s.HeroId,
                                p = _.ConfigDataComponent.Instance.GetConfigById(I.HeroBase_Config, c),
                                d = s.StatHp,
                                h = s.StatHpMax,
                                f = s.StarLevel,
                                g = s.Level,
                                m = p.ElementType;
                            o[i].Init({
                                ItemId: c,
                                StarLevel: f,
                                ElementType: m,
                                Level: g
                            }, u.ItemComponentType.HeroInfo), o[i].SetHeroHp(d / h * 1e3), d <= 0 ? o[i].OnIconGray(!0) : o[i].OffIconGray(), o[i].SetLabelFontSize(o[i].HeroLevel, 28, 154), o[i].LevelComponent.Low.scale = 1.25, o[i].LevelComponent.Low.getComponent(cc.Layout).spacingX = -14, o[i].LevelComponent.Mid.scale = 1.25, o[i].LevelComponent.Mid.getComponent(cc.Layout).spacingX = -14, o[i].node.active = !0, i++
                        }
                    }
                }, t.prototype.SetBattleStateUI = function() {
                    switch (this.WinLeft.active = !1, this.LoseLeft.active = !1, this.UnsureLeft.active = !1, this.WinRight.active = !1, this.LoseRight.active = !1, this.UnsureRight.active = !1, this._BattleData.Players[0].FinalResult) {
                        case y.BattleResult.AttackerWin:
                            this.WinLeft.active = !0;
                            break;
                        case y.BattleResult.DefenderWin:
                            this.LoseLeft.active = !0;
                            break;
                        case y.BattleResult.Process:
                            this.UnsureLeft.active = !0
                    }
                    if (this._acscMonsterConfig.MapIds.length > 1) switch (this._BattleData.Players[1].FinalResult) {
                        case y.BattleResult.AttackerWin:
                            this.WinRight.active = !0;
                            break;
                        case y.BattleResult.DefenderWin:
                            this.LoseRight.active = !0;
                            break;
                        case y.BattleResult.Process:
                            this.UnsureRight.active = !0
                    }
                }, t.prototype.SetBtnState = function() {
                    var e = p.UIManager.Instance.GetUIPanel(h.PanelConfig.HolyAreaMainPanel.Path);
                    null != e && 1 == e.node.active ? this.BtnReturn.node.active = !1 : this.BtnReturn.node.active = !0
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) C.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    null != this._conditionItemPrefab && C.AssetsManager.Instance.UnloadAsset(this._conditionItemPrefab), null != this._commonItemPrefab && C.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), this._commonItemPrefab = null, this._conditionItemPrefab = null
                }, t.prototype.CalculateHP = function(e) {
                    for (var t = 0, n = this._reports; t < n.length; t++) {
                        for (var o = 0, r = 0, i = 0, a = n[t].Heros; i < a.length; i++) {
                            var s = a[i];
                            s.Id < 0 || s.Camp == y.CampType.Attacker && (o += null != s.StatHp ? s.StatHp : 0, r += null != s.StatHpMax ? s.StatHpMax : 0)
                        }
                        if (1e3 * o / r < e) return !1
                    }
                    return !0
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardGrid.children.indexOf(t) && v.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, i([T(c.CustomRichText)], t.prototype, "BattleName", void 0), i([T(w.default)], t.prototype, "StarConditionComponent", void 0), i([T(cc.Layout)], t.prototype, "LeftTeamGrid", void 0), i([T(cc.Layout)], t.prototype, "RightTeamGrid", void 0), i([T(cc.Button)], t.prototype, "BtnReturn", void 0), i([T(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([T(cc.Button)], t.prototype, "BtnSure", void 0), i([T(cc.Node)], t.prototype, "WinLeft", void 0), i([T(cc.Node)], t.prototype, "LoseLeft", void 0), i([T(cc.Node)], t.prototype, "UnsureLeft", void 0), i([T(cc.Node)], t.prototype, "WinRight", void 0), i([T(cc.Node)], t.prototype, "LoseRight", void 0), i([T(cc.Node)], t.prototype, "UnsureRight", void 0), i([T(cc.Label)], t.prototype, "RewardTag", void 0), i([T(cc.Label)], t.prototype, "TeamLeftTag", void 0), i([T(cc.Label)], t.prototype, "TeamRightTag", void 0), i([T(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([T(cc.Node)], t.prototype, "RewardGrid", void 0), i([T(cc.Label)], t.prototype, "RewardEmpty", void 0), i([T(cc.Button)], t.prototype, "BtnNextLevel", void 0), i([T(cc.Label)], t.prototype, "LabelBtnNextLevel", void 0), i([T(cc.Node)], t.prototype, "TeamRightNode", void 0), i([A], t)
            }(l.default);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent",
        "./StarConditionComponent": "StarConditionComponent"
    }],
    HolyAreaTreasuryListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "93874VKJJVFb4Gc5qZb0Flc", "HolyAreaTreasuryListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u, p = e("./ItemComponent"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/DataCenter"),
            y = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../../EZFramework/UIFrame/UIManager"),
            I = e("../../Components/RpcComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../Components/ConfigData/ConfigDataComponent"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("./CustomProgressBar"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.Top = 0] = "Top", e[e.Bottom = 1] = "Bottom"
        })(l || (l = {})),
        function(e) {
            e[e.Id = 0] = "Id", e[e.Count = 1] = "Count"
        }(c || (c = {})),
        function(e) {
            e[e.Lock = 0] = "Lock", e[e.NotReceive = 1] = "NotReceive", e[e.PartReceive = 2] = "PartReceive", e[e.ReceiveOver = 3] = "ReceiveOver"
        }(u || (u = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.TopProgressNode = null, t.BottomProgressNode = null, t.TopProgress = null, t.BottomProgress = null, t.LevelCountBlue = null, t.LevelCountGrey = null, t.NeedScore = null, t.QuadBlue = null, t.QuadGrey = null, t.ItemGrid = null, t.BtnReceive = null, t.BtnLock = null, t.ReceiveBtnLabel = null, t.LockBtnLabel = null, t.SCORE_INTERVAL = 100, t.MAX_PROGRESS = 100, t._isInit = !0, t._itemPrefab = null, t._itemComponentTable = [], t._userData = null, t._configData = null, t._level = 0, t._maxLevel = 0, t._currRewardState = u.Lock, t._maxCanReceiveLevel = 0, t._assets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                b.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                b.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.ItemGrid.children.indexOf(t) && _.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.InitUI = function(e, t, n) {
                this._configData = e, this._level = t, this._maxLevel = n, this._isInit && (this._isInit = !1, this.SetStaticLocalText(), this.SetClickEvent()), this.ReloadUserData(), this.LoadWarTokenBaseData(), this.SetRewardState(), this.SetUIStyle(), this.SetRewardItem(), this.Fill(), this.SetLevelCountLabel(), this.SetNeedScore(), this.SetBtnState()
            }, t.prototype.SetStaticLocalText = function() {}, t.prototype.SetClickEvent = function() {
                this.BtnReceive.node.on("click", this.OnBtnReceiveClick, this)
            }, t.prototype.ReloadUserData = function() {
                this._userData = f.DataCenter.Instance.GetDataById(d.WarToken_Model, C.WarTokenType.SacredTreasury)
            }, t.prototype.LoadWarTokenBaseData = function() {
                for (var e = v.ConfigDataComponent.Instance.GetConfigById(h.WarTokenType_Config, C.WarTokenType.SacredTreasury), t = e.TaskList.length, n = 0; n < t; n++) {
                    var o = e.TaskList[n],
                        r = v.ConfigDataComponent.Instance.GetConfigById(h.WarTokenTask_Config, o);
                    this._userData.Point >= r.RequirePoint && (this._maxCanReceiveLevel = n)
                }
            }, t.prototype.SetUIStyle = function() {
                this._configData.RequirePoint <= this._userData.Point ? (this.QuadBlue.active = !0, this.QuadGrey.active = !1) : (this.QuadBlue.active = !1, this.QuadGrey.active = !0)
            }, t.prototype.SetRewardItem = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return null != this._itemPrefab ? [3, 2] : [4, y.AssetsManager.Instance.LoadAsset(g.BundlePath.ItemComponent)];
                            case 1:
                                if (e = a.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._itemPrefab = e, this._assets.push(e), a.label = 2;
                            case 2:
                                for (t = this._configData.NormalReward.length + this._configData.AdvanceReward.length, n = this._configData.NormalReward.length, o = 0; o < t; o++) null == this._itemComponentTable[o] && (this._itemComponentTable[o] = cc.instantiate(this._itemPrefab).getComponent(p.ItemComponent)), this._itemComponentTable[o].node.parent = this.ItemGrid, r = void 0, i = void 0, o < this._configData.NormalReward.length ? (r = this._configData.NormalReward[o].Items[c.Id], i = this._configData.NormalReward[o].Items[c.Count]) : (r = this._configData.AdvanceReward[o - n].Items[c.Id], i = this._configData.AdvanceReward[o - n].Items[c.Count]), this._itemComponentTable[o].node.name = r.toString(), this._itemComponentTable[o].Init({
                                    ItemId: r,
                                    Count: i
                                }, p.ItemComponentType.ItemCommon), this._itemComponentTable[o].node.active = !0, this._currRewardState == u.PartReceive ? o < this._configData.NormalReward.length ? (this._itemComponentTable[o].SetReceivedTagState(!0), this._itemComponentTable[o].SetLockFlag(!1)) : (this._itemComponentTable[o].SetReceivedTagState(!1), this._userData.ActivePrivilege ? this._itemComponentTable[o].SetLockFlag(!1) : this._itemComponentTable[o].SetLockFlag(!0, "lock_yellow")) : this._currRewardState == u.ReceiveOver ? (this._itemComponentTable[o].SetReceivedTagState(!0), this._itemComponentTable[o].SetLockFlag(!1), this._itemComponentTable[o].EnableItemMask()) : (this._itemComponentTable[o].SetReceivedTagState(!1), o >= this._configData.NormalReward.length ? this._userData.ActivePrivilege ? this._itemComponentTable[o].SetLockFlag(!1) : this._itemComponentTable[o].SetLockFlag(!0, "lock_yellow") : this._itemComponentTable[o].SetLockFlag(!1));
                                return [2]
                        }
                    })
                })
            }, t.prototype.Fill = function() {
                if (0 == this._configData.RequirePoint ? this.TopProgressNode.active = !1 : this.TopProgressNode.active = !0, this._level < this._maxLevel ? this.BottomProgressNode.active = !0 : this.BottomProgressNode.active = !1, this._userData.Point <= this._configData.RequirePoint) {
                    var e = Math.max(this.MAX_PROGRESS - (this._configData.RequirePoint - this._userData.Point), 0);
                    this.SetProgress(e, l.Top), this.SetProgress(0, l.Bottom)
                } else e = Math.min(this._userData.Point - this._configData.RequirePoint, this.MAX_PROGRESS), this.SetProgress(this.MAX_PROGRESS, l.Top), this.SetProgress(e, l.Bottom)
            }, t.prototype.SetProgress = function(e, t) {
                var n = e / this.MAX_PROGRESS;
                t == l.Top ? this.TopProgress.progress = n : this.BottomProgress.progress = n
            }, t.prototype.SetLevelCountLabel = function() {
                this.LevelCountBlue.string = this._level.toString(), this.LevelCountGrey.string = this._level.toString()
            }, t.prototype.SetNeedScore = function() {
                this.NeedScore.string = this._configData.RequirePoint.toString()
            }, t.prototype.SetRewardState = function() {
                this._userData.Point < this._configData.RequirePoint ? this._currRewardState = u.Lock : this._userData.RewardIndex >= this._level + 1 ? this._userData.ActivePrivilege ? this._currRewardState = u.ReceiveOver : this._currRewardState = u.PartReceive : this._currRewardState = u.NotReceive
            }, t.prototype.SetBtnState = function() {
                switch (this.SwitchBtn(!1), this._currRewardState) {
                    case u.Lock:
                        this.SwitchBtn(!0), this.LockBtnLabel.string = "unlock".ToUILocale();
                        break;
                    case u.NotReceive:
                        this.ReceiveBtnLabel.string = "receive".ToUILocale();
                        break;
                    case u.PartReceive:
                        this.ReceiveBtnLabel.string = "receive_continue".ToUILocale();
                        break;
                    case u.ReceiveOver:
                        this.SwitchBtn(!0), this.LockBtnLabel.string = "already_receive".ToUILocale()
                }
            }, t.prototype.SwitchBtn = function(e) {
                e ? (this.BtnReceive.node.active = !1, this.BtnLock.node.active = !0) : (this.BtnReceive.node.active = !0, this.BtnLock.node.active = !1)
            }, t.prototype.OnBtnReceiveClick = function() {
                if (this._currRewardState == u.PartReceive) m.UIManager.Instance.ShowUIPanel(g.PanelConfig.ActivePrivilegePanel.Path, C.WarTokenType.SacredTreasury);
                else {
                    var e = new d.Req_Activity_WarTokenReward;
                    e.Type = C.WarTokenType.SacredTreasury, e.RewardIndex = this._maxCanReceiveLevel + 1, I.RpcComponent.Instance.Call(e, this.ResponseDrawReward.bind(this))
                }
            }, t.prototype.ResponseDrawReward = function(e) {
                _.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                this._assets.forEach(function(e) {
                    y.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([T(cc.Node)], t.prototype, "TopProgressNode", void 0), i([T(cc.Node)], t.prototype, "BottomProgressNode", void 0), i([T(w.default)], t.prototype, "TopProgress", void 0), i([T(w.default)], t.prototype, "BottomProgress", void 0), i([T(cc.Label)], t.prototype, "LevelCountBlue", void 0), i([T(cc.Label)], t.prototype, "LevelCountGrey", void 0), i([T(cc.Label)], t.prototype, "NeedScore", void 0), i([T(cc.Node)], t.prototype, "QuadBlue", void 0), i([T(cc.Node)], t.prototype, "QuadGrey", void 0), i([T(cc.Node)], t.prototype, "ItemGrid", void 0), i([T(cc.Button)], t.prototype, "BtnReceive", void 0), i([T(cc.Button)], t.prototype, "BtnLock", void 0), i([T(cc.Label)], t.prototype, "ReceiveBtnLabel", void 0), i([T(cc.Label)], t.prototype, "LockBtnLabel", void 0), i([A], t)
        }(cc.Component);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomProgressBar": "CustomProgressBar",
        "./ItemComponent": "ItemComponent"
    }],
    HolyAreaTreasuryPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "23021ZD+j5KtIiPlc5kMz+d", "HolyAreaTreasuryPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/UIFrame/UIPanelType"),
            p = e("../../../EZFramework/EZDefine/SysDefine"),
            d = e("../Components/CustomLayout"),
            h = e("../Components/CustomRichText"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            g = e("../Components/ItemComponent"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../Components/DataCenter"),
            _ = e("../../../../Proto/Static/RpcProto"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../../../Proto/Static/ConfigProto"),
            b = e("../../Components/ConfigData/ConfigDataComponent"),
            S = e("../../Components/RpcComponent"),
            w = e("../../../Consts/Consts"),
            P = e("../../../EZFramework/EZFramework"),
            A = e("../../Auxiliary/EventKeys"),
            T = e("../Components/HolyAreaTreasuryListItem"),
            R = e("../../../EZFramework/EZFramework"),
            L = e("../../Auxiliary/DataUtlity"),
            k = e("../../../Util/TimeUtil"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property;
        (function(e) {
            e[e.Id = 0] = "Id", e[e.Count = 1] = "Count"
        })(l || (l = {})),
        function(e) {
            e[e.Lock = 0] = "Lock", e[e.NotReceive = 1] = "NotReceive", e[e.PartReceive = 2] = "PartReceive", e[e.ReceiveOver = 3] = "ReceiveOver"
        }(c || (c = {}));
        var B = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(p.UINodeType.Tip), t.Scroll = null, t.Grid = null, t.TipsLabel = null, t.ScoreLabel = null, t.ResetStateLabel = null, t.UnLockHighBtnLabel = null, t.BtnUnLockHighBattleRing = null, t.QuadBlue = null, t.QuadGrey = null, t.LevelCountBlue = null, t.LevelCountGrey = null, t.RewardPreviewItemGrid = null, t.Tittle = null, t.MoudleName = null, t.PreviewLabel = null, t.BtnRule = null, t.BtnGo = null, t.PREVIEW_KEY_INTERVAL = 10, t.LIST_ITEM_PREFAB_PATH = "HolyAreaPanel/Private/HolyAreaTreasuryListItem", t._isLayoutInit = !1, t._itemComponentTable = [], t._userData = null, t._warTokenConfigData = [], t._topItemKey = 0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                P.Game.EventDispatcher.On(A.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), P.Game.EventDispatcher.On(A.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), P.Game.EventDispatcher.On(w.GameEventIds.ChangeDataDetail.Fmt(_.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.onDisable = function() {
                P.Game.EventDispatcher.Off(A.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), P.Game.EventDispatcher.Off(A.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), P.Game.EventDispatcher.Off(w.GameEventIds.ChangeDataDetail.Fmt(_.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.RewardPreviewItemGrid.children.indexOf(t) && C.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(this.LIST_ITEM_PREFAB_PATH, cc.Prefab), n = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._listItemPrefab = e[0], o._commonItemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.SetStaticLocalText = function() {
                this.TipsLabel.string = "warToken_holyArea_unlockText".ToUILocale(), this.UnLockHighBtnLabel.string = "holyArea_treasury_unlock_high".ToUILocale(), this.Tittle.string = m.WarTokenType.SacredTreasury.ToWarTokenName(), this.MoudleName.string = "rewards_preview".ToUILocale(), this.PreviewLabel.string = "rewards_preview".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnUnLockHighBattleRing.node.on("click", this.ShowActivePrivilegePanel, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnGo.node.on("click", this.OnBtnGoClick, this)
            }, t.prototype.InitData = function() {}, t.prototype.ResetPanelState = function() {
                this.LoadWarTokenBaseData()
            }, t.prototype.LoadWarTokenBaseData = function() {
                this._warTokenConfigData = [], this._warTokenTypeConfigData = b.ConfigDataComponent.Instance.GetConfigById(v.WarTokenType_Config, m.WarTokenType.SacredTreasury);
                for (var e = this._warTokenTypeConfigData.TaskList.length, t = 0; t < e; t++) {
                    var n = this._warTokenTypeConfigData.TaskList[t],
                        o = b.ConfigDataComponent.Instance.GetConfigById(v.WarTokenTask_Config, n);
                    this._warTokenConfigData.push(o)
                }
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ReloadUserData(), this.RefreshView()
            }, t.prototype.ReloadUserData = function() {
                this._userData = I.DataCenter.Instance.GetDataById(_.WarToken_Model, m.WarTokenType.SacredTreasury)
            }, t.prototype.RefreshView = function() {
                this.InitCustomLayout(), this.SetCountLabel(), this.SetResetTimeLabel(), this.SetBtnState()
            }, t.prototype.SetBtnState = function() {
                this._userData.ActivePrivilege ? this.BtnUnLockHighBattleRing.node.active = !1 : this.BtnUnLockHighBattleRing.node.active = !0
            }, t.prototype.InitCustomLayout = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._listItemPrefab, !1)), this.RenderLayout(), [2]
                    })
                })
            }, t.prototype.RenderLayout = function() {
                var e = this._warTokenConfigData.length;
                this.Scroll.stopAutoScroll(), this.Grid.RenderLayOut(e, this._userData.RewardIndex), this.IsReDisPlay || C.UIUtlity.AnimationItemsByType1(this.Grid.node.children)
            }, t.prototype.SetCountLabel = function() {
                this.ScoreLabel.Init("holyArea_treasury_score".ToUILocale().Fmt(this._userData.Point))
            }, t.prototype.SetResetTimeLabel = function() {
                this.unscheduleAllCallbacks(), this.SetResetTimeContent()
            }, t.prototype.SetResetTimeContent = function() {
                this.SetTimeTag(), this.SetResetTime()
            }, t.prototype.SetResetTime = function() {
                var e = this;
                this.unscheduleAllCallbacks(), this.schedule(function() {
                    e.SetTimeTag()
                }, 1)
            }, t.prototype.SetTimeTag = function() {
                var e = S.RpcComponent.Instance.ServerTime,
                    t = k.TimeUtil.Get0ClockTs(this._userData.StartTime) + this._warTokenTypeConfigData.Duration * w.Etc.DayDuration - e;
                if (t > w.Etc.DayDuration) {
                    var n = t % w.Etc.DayDuration;
                    n = Math.floor(n / w.Etc.HourDuration);
                    var o = Math.floor(t / w.Etc.DayDuration);
                    "timeFormat_DayAndHour".ToUILocale().Fmt(o, n)
                } else t.FmtRemainTime();
                this.ResetStateLabel.string = "holyArea_treasury_reset".ToUILocale().Fmt(L.default.ActivityTimeLeftFormat(t))
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (this.Grid == t) {
                    var o = this._warTokenConfigData.length - 1,
                        r = 0,
                        i = -1;
                    e.forEach(function(e, t) {
                        var a = n._warTokenConfigData[t];
                        e.getComponent(T.default).InitUI(a, t, o, n), i < 0 && (i = t), r++
                    }), r > 1 ? this._topItemKey = i : i < this._topItemKey ? this._topItemKey = i : this._topItemKey++, this.SetRewardPreviewUI()
                }
            }, t.prototype.SetRewardPreviewUI = function() {
                var e = Math.max(0, this._topItemKey - 1),
                    t = (Math.floor(e / this.PREVIEW_KEY_INTERVAL) + 1) * this.PREVIEW_KEY_INTERVAL;
                this._warTokenConfigData[t].RequirePoint < this._userData.Point ? (this.QuadBlue.active = !0, this.QuadGrey.active = !1) : (this.QuadBlue.active = !1, this.QuadGrey.active = !0), this.LevelCountBlue.string = t.toString(), this.LevelCountGrey.string = t.toString(), this.SetPrevirwRewardItem(t)
            }, t.prototype.SetPrevirwRewardItem = function(e) {
                for (var t = this._warTokenConfigData[e], n = t.NormalReward.length + t.AdvanceReward.length, o = t.NormalReward.length, r = this.GetRewardState(e), i = 0; i < n; i++) {
                    null == this._itemComponentTable[i] && (this._itemComponentTable[i] = cc.instantiate(this._commonItemPrefab).getComponent(g.ItemComponent)), this._itemComponentTable[i].node.parent = this.RewardPreviewItemGrid;
                    var a = void 0,
                        s = void 0;
                    i < t.NormalReward.length ? (a = t.NormalReward[i].Items[l.Id], s = t.NormalReward[i].Items[l.Count]) : (a = t.AdvanceReward[i - o].Items[l.Id], s = t.AdvanceReward[i - o].Items[l.Count]), this._itemComponentTable[i].node.name = a.toString(), this._itemComponentTable[i].Init({
                        ItemId: a,
                        Count: s
                    }, g.ItemComponentType.ItemCommon), this._itemComponentTable[i].node.active = !0, r == c.PartReceive ? i < t.NormalReward.length ? this._itemComponentTable[i].SetReceivedTagState(!0) : this._itemComponentTable[i].SetReceivedTagState(!1) : r == c.ReceiveOver ? this._itemComponentTable[i].SetReceivedTagState(!0) : this._itemComponentTable[i].SetReceivedTagState(!1), r == c.PartReceive ? i < t.NormalReward.length ? (this._itemComponentTable[i].SetReceivedTagState(!0), this._itemComponentTable[i].SetLockFlag(!1)) : (this._itemComponentTable[i].SetReceivedTagState(!1), this._userData.ActivePrivilege ? this._itemComponentTable[i].SetLockFlag(!1) : this._itemComponentTable[i].SetLockFlag(!0, "lock_yellow")) : r == c.ReceiveOver ? (this._itemComponentTable[i].SetReceivedTagState(!0), this._itemComponentTable[i].SetLockFlag(!1)) : (this._itemComponentTable[i].SetReceivedTagState(!1), i >= t.NormalReward.length ? this._userData.ActivePrivilege ? this._itemComponentTable[i].SetLockFlag(!1) : this._itemComponentTable[i].SetLockFlag(!0, "lock_yellow") : this._itemComponentTable[i].SetLockFlag(!1))
                }
            }, t.prototype.GetRewardState = function(e) {
                var t = this._warTokenConfigData[e];
                return this._userData.Point < t.RequirePoint ? c.Lock : this._userData.RewardIndex >= e + 1 ? this._userData.ActivePrivilege ? c.ReceiveOver : c.PartReceive : c.NotReceive
            }, t.prototype.ShowActivePrivilegePanel = function() {
                R.UIManager.Instance.ShowUIPanel(f.PanelConfig.ActivePrivilegePanel.Path, m.WarTokenType.SacredTreasury)
            }, t.prototype.OnBtnRuleClick = function() {
                var e = {
                    name: "warToken_holyArea_ruleTitle".ToUILocale(),
                    titles: ["warToken_holyArea_subTitle".ToUILocale()],
                    contents: ["warToken_holyArea_ruleText".ToUILocale()]
                };
                C.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnBtnGoClick = function() {
                R.UIManager.Instance.BackUIPanel()
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, i([D(cc.ScrollView)], t.prototype, "Scroll", void 0), i([D(d.default)], t.prototype, "Grid", void 0), i([D(cc.Label)], t.prototype, "TipsLabel", void 0), i([D(h.CustomRichText)], t.prototype, "ScoreLabel", void 0), i([D(cc.Label)], t.prototype, "ResetStateLabel", void 0), i([D(cc.Label)], t.prototype, "UnLockHighBtnLabel", void 0), i([D(cc.Button)], t.prototype, "BtnUnLockHighBattleRing", void 0), i([D(cc.Node)], t.prototype, "QuadBlue", void 0), i([D(cc.Node)], t.prototype, "QuadGrey", void 0), i([D(cc.Label)], t.prototype, "LevelCountBlue", void 0), i([D(cc.Label)], t.prototype, "LevelCountGrey", void 0), i([D(cc.Node)], t.prototype, "RewardPreviewItemGrid", void 0), i([D(cc.Label)], t.prototype, "Tittle", void 0), i([D(cc.Label)], t.prototype, "MoudleName", void 0), i([D(cc.Label)], t.prototype, "PreviewLabel", void 0), i([D(cc.Button)], t.prototype, "BtnRule", void 0), i([D(cc.Button)], t.prototype, "BtnGo", void 0), i([M], t)
        }(y.BaseUIPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/HolyAreaTreasuryListItem": "HolyAreaTreasuryListItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyElementSelectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a7820fc53FLgqgxE1SoWHvB", "HolyElementSelectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HolyRelicEelementType = void 0;
        var a, s = e("./HeroElementGroup"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property;
        (function(e) {
            e[e.Blue = 0] = "Blue", e[e.Red = 1] = "Red", e[e.Green = 2] = "Green", e[e.Yellow = 3] = "Yellow", e[e.Purple = 4] = "Purple", e[e.chaos = 5] = "chaos"
        })(a = n.HolyRelicEelementType || (n.HolyRelicEelementType = {}));
        var m = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Selecter = null, t.LabelList = [], t.LockList = [], t.SpriteList = [], t.Layout = null, t.HeightLightNode = null, t.Atlas = null, t._type = a.Blue, t._lockedType = [], t
            }
            return r(t, e), t.prototype.onLoad = function() {}, t.prototype.Set = function(e, t, n) {
                this._lockedType = [], this._type || (this._type = a.Blue), this._panelData = t, this.LabelList.forEach(function(e, t) {
                    var n = p.default.Instance.GetHolyRelicCheckPointProgress(t + 1);
                    e.string = n[0] + "/" + n[1]
                });
                var o = this._panelData.ElementUnlockCondiction;
                for (var r in o) {
                    var i = Number(r),
                        s = this._panelData.ElementUnlockCondiction[r],
                        f = p.default.Instance.HolyRelicPassCheckPoint();
                    this.LockList[i - 1].active = f < s, f < s ? (this._lockedType.push(i - 1), u.UIUtlity.OnSpriteDark(this.SpriteList[i - 1])) : u.UIUtlity.OffSpriteGray(this.SpriteList[i - 1])
                }
                for (this._configs = h.ConfigDataComponent.Instance.GetArrayConfig(d.ArtefactRelic_Config), this._configs[5] ? (this.SpriteList[5].node.parent.active = !0, this.LabelList[5].node.parent.active = !0, this.HeightLightNode.x = -260) : n && (this.SpriteList[5].node.parent.active = !1, this.LabelList[5].node.parent.active = !1, this.HeightLightNode.x = -210), i = 0; i < 6; i++) this.SpriteList[i].spriteFrame = this.Atlas.getSpriteFrame("element" + (i + 1));
                l.Game.EventDispatcher.Off(c.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitch.bind(this)), l.Game.EventDispatcher.On(c.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitch.bind(this)), this.Layout.updateLayout(), this.Selecter.node.width = this.Layout.node.width + 83
            }, t.prototype.OnSwitch = function(e, t) {
                if (this.LabelList && t == this.Selecter.node)
                    if (-1 == this._lockedType.indexOf(e)) this._panelData.ChangeData_chosenElement(e), e != this._type && (this._type = e);
                    else if (this._configs) {
                    var n = this._configs[e];
                    n && u.UIUtlity.ShowFloatingHint("HolyRelic_CheckPointNotUnlock".ToUILocale().Fmt(n.Unlock))
                }
            }, t.prototype.onDestroy = function() {
                l.Game.EventDispatcher.Off(c.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitch.bind(this))
            }, i([g(s.default)], t.prototype, "Selecter", void 0), i([g([cc.RichText])], t.prototype, "LabelList", void 0), i([g([cc.Node])], t.prototype, "LockList", void 0), i([g([cc.Sprite])], t.prototype, "SpriteList", void 0), i([g(cc.Layout)], t.prototype, "Layout", void 0), i([g(cc.Node)], t.prototype, "HeightLightNode", void 0), i([g(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([y], t)
        }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeroElementGroup": "HeroElementGroup"
    }],
    HolyEquipBlessingChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ea686qZlfJFCalA35y0oz0B", "HolyEquipBlessingChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Components/LoadAssetHelper"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.CurrentItemTitle = null, t.SelectItemTitle = null, t.CurrentItemIcon = null, t.CurrentItemName = null, t.CurrentItemAttrIcon = null, t.CurrentItemAttrType = null, t.CurrentItemAttrValue = null, t.SelectItemIcon = null, t.SelectItemName = null, t.SelectItemAttrIcon = null, t.SelectItemAttrType = null, t.SelectItemAttrValue = null, t.SelectArrowIcon = null, t.CancelBtn = null, t.CancelBtnLabel = null, t.ChangeBtn = null, t.ChangeBtnLabel = null, t.LoadAssetHelper = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "replace_confirm".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.ChangeBtnLabel.string = "equip_replace".ToUILocale(), this.CurrentItemTitle.string = "holy_equip_blessing_current".ToUILocale(), this.SelectItemTitle.string = "holy_equip_blessing_select".ToUILocale(), this.CancelBtn.node.on("click", this.OnCancel, this), this.ChangeBtn.node.on("click", this.OnChange, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._currentBlessingId = t[0], this._selectBlessingId = t[1], this._holyEquipSid = t[2], this._slotPos = t[3], this._poolIndex = t[4]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._currentBlessingConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipBlessing_Config, this._currentBlessingId), this._selectBlessingConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipBlessing_Config, this._selectBlessingId), this.ConfigCurrentItem(), this.ConfigSelectItem()
                }, t.prototype.ConfigCurrentItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return this.CurrentItemName.string = "Lv." + this._currentBlessingConfig.Level + " " + this._currentBlessingConfig.TypeId.ToHolyHolyEquipBlessingName(), e = y.default.GetHeroAttribute(this._currentBlessingConfig.Attrs[0], this._currentBlessingConfig.Attrs[1], !0), this.CurrentItemAttrType.string = e.Name, this.CurrentItemAttrIcon.spriteFrame = e.Icon, this.CurrentItemAttrValue.string = "+" + e.Value, this.LoadAssetHelper.LoadSpriteFrame("HolyEquipBlessingIcon/" + this._currentBlessingConfig.TypeId, this.CurrentItemIcon, null, 1), [2]
                        })
                    })
                }, t.prototype.ConfigSelectItem = function() {
                    this.SelectItemName.string = "Lv." + this._selectBlessingConfig.Level + " " + this._selectBlessingConfig.TypeId.ToHolyHolyEquipBlessingName();
                    var e = y.default.GetHeroAttribute(this._selectBlessingConfig.Attrs[0], this._selectBlessingConfig.Attrs[1], !0);
                    this.SelectItemAttrType.string = e.Name, this.SelectItemAttrIcon.spriteFrame = e.Icon, this.SelectItemAttrValue.string = "+" + e.Value, this.LoadAssetHelper.LoadSpriteFrame("HolyEquipBlessingIcon/" + this._selectBlessingConfig.TypeId, this.SelectItemIcon, null, 2), this.SelectArrowIcon.spriteFrame = void 0, this._selectBlessingConfig.Level > this._currentBlessingConfig.Level ? this.SelectArrowIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green") : this._selectBlessingConfig.Level < this._currentBlessingConfig.Level && (this.SelectArrowIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red"))
                }, t.prototype.OnCancel = function() {
                    d.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnChange = function() {
                    var e = this;
                    if (!(this._currentBlessingConfig.Level <= this._selectBlessingConfig.Level)) return h.UIUtlity.ShowHintPanel(null, "holy_equip_blessing_change_confirm".ToUILocale(), "", null, "", function() {
                        e.DoChangeRequestJob()
                    });
                    this.DoChangeRequestJob()
                }, t.prototype.DoChangeRequestJob = function() {
                    var e = new c.Req_Holy_EquipmentReplace;
                    e.Sid = this._holyEquipSid, e.Index = this._slotPos, e.PoolIndex = this._poolIndex, u.RpcComponent.Instance.Call(e, this.OnChangeSucces.bind(this))
                }, t.prototype.OnChangeSucces = function() {
                    d.UIManager.Instance.BackUIPanel(), l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_HOLYEQUIP_BLESSING_CHANGE)
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "CurrentItemTitle", void 0), i([_(cc.Label)], t.prototype, "SelectItemTitle", void 0), i([_(cc.Sprite)], t.prototype, "CurrentItemIcon", void 0), i([_(cc.Label)], t.prototype, "CurrentItemName", void 0), i([_(cc.Sprite)], t.prototype, "CurrentItemAttrIcon", void 0), i([_(cc.Label)], t.prototype, "CurrentItemAttrType", void 0), i([_(cc.Label)], t.prototype, "CurrentItemAttrValue", void 0), i([_(cc.Sprite)], t.prototype, "SelectItemIcon", void 0), i([_(cc.Label)], t.prototype, "SelectItemName", void 0), i([_(cc.Sprite)], t.prototype, "SelectItemAttrIcon", void 0), i([_(cc.Label)], t.prototype, "SelectItemAttrType", void 0), i([_(cc.Label)], t.prototype, "SelectItemAttrValue", void 0), i([_(cc.Sprite)], t.prototype, "SelectArrowIcon", void 0), i([_(cc.Button)], t.prototype, "CancelBtn", void 0), i([_(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([_(cc.Button)], t.prototype, "ChangeBtn", void 0), i([_(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([_(g.default)], t.prototype, "LoadAssetHelper", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/LoadAssetHelper": "LoadAssetHelper"
    }],
    HolyEquipBlessingEffectItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a927a4LkcVH3q5x4wvkrfJE", "HolyEquipBlessingEffectItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../GamePlay/Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.ItemIcon = null, t.LockNode = null, t.AttrName = null, t.AttrIcon = null, t.AttrValue = null, t.UnlockLabel = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._typeId = e, this._blessingLevel = t, this.ConfigItemInfo(), this.ConfigAttrNode(), this.ConfigUnlockMode()
                }, t.prototype.ConfigItemInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._blessingTypeConfig = c.ConfigDataComponent.Instance.GetConfigById(u.HolyEquipBlessingType_Config, this._typeId), [4, d.AssetsManager.Instance.LoadAsset("HolyEquipBlessingIcon/" + this._typeId, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._loadedAssets.push(e), this.ItemIcon.spriteFrame = e, this.Name.string = this._typeId.ToHolyHolyEquipBlessingName(), [2]) : (d.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.ConfigAttrNode = function() {
                    var e = this._blessingTypeConfig.Desc,
                        t = h.default.GetHeroAttribute(e[0], e[1], !0);
                    this.AttrName.string = t.Name, this.AttrIcon.spriteFrame = t.Icon;
                    var n = h.default.GetHeroAttributeValue(e[2], e[0], void 0, !0);
                    this.AttrValue.string = t.Value + "~" + n
                }, t.prototype.ConfigUnlockMode = function() {
                    this._blessingLevel < this._blessingTypeConfig.UnlockLevel ? (p.UIUtlity.SetGray(this.node, !0, !0), p.UIUtlity.SetGray(this.UnlockLabel.node, !1), this.LockNode.active = !0, this.UnlockLabel.string = "holy_equip_blessing_unlock_level".ToUILocale().Fmt(this._blessingTypeConfig.UnlockLevel)) : (this.LockNode.active = !1, p.UIUtlity.SetGray(this.node, !1, !0))
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([g(cc.Label)], t.prototype, "Name", void 0), i([g(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([g(cc.Node)], t.prototype, "LockNode", void 0), i([g(cc.Label)], t.prototype, "AttrName", void 0), i([g(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([g(cc.Label)], t.prototype, "AttrValue", void 0), i([g(cc.Label)], t.prototype, "UnlockLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HolyEquipBlessingItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "978dblT1NdF0a/aK+P/l1g8", "HolyEquipBlessingItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../GamePlay/Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.InfoNode = null, t.ItemIcon = null, t.AttrNode = null, t.Name = null, t.ArrowUp = null, t.ArrowDown = null, t.AttrIcon = null, t.AttrType = null, t.AttrValue = null, t.Tag = null, t.TagLabel = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._blessingId = e, this._unLockStarLimit = t, this._currentLevel = n, this.ConfigItemInfo()
                }, t.prototype.ConfigItemInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.Tag.node.active = !1, this._blessingId > 0 ? (this.InfoNode.active = !0, this._blessingConfig = c.ConfigDataComponent.Instance.GetConfigById(u.HolyEquipBlessing_Config, this._blessingId), (e = this._blessingConfig.Level - this._currentLevel) >= 2 ? (this.Tag.node.active = !0, this.Tag.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("discount_bg"), this.TagLabel.string = "hero_attr_4".ToUILocale()) : e >= 1 ? (this.Tag.node.active = !0, this.Tag.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("discountBg_yellow"), this.TagLabel.string = "higher".ToUILocale()) : this.Tag.spriteFrame = void 0, [4, d.AssetsManager.Instance.LoadAsset("HolyEquipBlessingIcon/" + this._blessingConfig.TypeId, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._loadedAssets.push(t), this.ItemIcon.spriteFrame = t, this.AttrNode.active = !0, this.Name.string = this._blessingConfig.TypeId.ToHolyHolyEquipBlessingName() + " Lv." + this._blessingConfig.Level, this.ConfigAttr(), [3, 3]) : (d.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    this._unLockStarLimit ? (this.InfoNode.active = !0, this.ItemIcon.spriteFrame = null, this.AttrNode.active = !1, this.Name.string = "holy_equip_blessing_unlock_hint".ToUILocale().Fmt(this._unLockStarLimit)) : this.InfoNode.active = !1, n.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ConfigAttr = function() {
                    var e = p.default.GetHeroAttribute(this._blessingConfig.Attrs[0], this._blessingConfig.Attrs[1], !0);
                    this.AttrIcon.spriteFrame = e.Icon, this.AttrType.string = e.Name, this.AttrValue.string = "+" + e.Value
                }, t.prototype.SetArrow = function(e) {
                    1 == e ? (this.ArrowUp.active = !0, this.ArrowDown.active = !1) : (this.ArrowUp.active = !1, this.ArrowDown.active = !0)
                }, t.prototype.SetAttrValueLabelGreen = function() {
                    this.AttrValue.node.color = new cc.Color(51, 255, 142)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([g(cc.Node)], t.prototype, "InfoNode", void 0), i([g(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([g(cc.Node)], t.prototype, "AttrNode", void 0), i([g(cc.Label)], t.prototype, "Name", void 0), i([g(cc.Node)], t.prototype, "ArrowUp", void 0), i([g(cc.Node)], t.prototype, "ArrowDown", void 0), i([g(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([g(cc.Label)], t.prototype, "AttrType", void 0), i([g(cc.Label)], t.prototype, "AttrValue", void 0), i([g(cc.Sprite)], t.prototype, "Tag", void 0), i([g(cc.Label)], t.prototype, "TagLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HolyEquipBlessingUpLevelPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "26b419xk+5IHJZLzG/fhMTx", "HolyEquipBlessingUpLevelPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/CurrencyBarItem"),
            y = e("./HolyEquipBlessingItem"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../Components/CustomProgressBar"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.EffectTitle = null, t.BlessingName = null, t.BlessingEffectLevelValue = null, t.AttrName = null, t.AttrValue = null, t.AttrIcon = null, t.BlessingIcon = null, t.PreviewBtn = null, t.LevelTitle = null, t.ProgressBar = null, t.ProgressBarValue = null, t.SelectBlessingHint = null, t.Layout = null, t.CurrencyBar = null, t.ClearBtn = null, t.ClearBtnLabel = null, t.GrayBtn = null, t.GrayBtnLabel = null, t.BlessingBtn = null, t.BlessingBtnLabel = null, t.SpineNode = null, t.AutoBtn = null, t.AutoBtnLabel = null, t.MAX_BLESSINGITEM_COUNT = 8, t._leftXP = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(C.EventKeys.EVENT_HOLYEQUIP_BLESSING_CHANGE, this.PlayBlessingSpine, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(C.EventKeys.EVENT_HOLYEQUIP_BLESSING_CHANGE, this.PlayBlessingSpine, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HolyEquipmentPanel/HolyEquipBlessingItem")];
                                case 1:
                                    return t._blessingItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "holy_equip_developTittle_1".ToUILocale(), this.ClearBtnLabel.string = "clear_label".ToUILocale(), this.GrayBtnLabel.string = "clear_label".ToUILocale(), this.BlessingBtnLabel.string = "holy_equip_developToggle_1".ToUILocale(), this.EffectTitle.string = "holy_equip_blessing_current_effect".ToUILocale(), this.SelectBlessingHint.string = "holy_equip_blessing_selectEffect_hint".ToUILocale(), this.LevelTitle.string = "holy_equip_blessing_level".ToUILocale().Fmt(""), this.AutoBtnLabel.string = "holy_equip_auto_blessing".ToUILocale(), this.PreviewBtn.node.on("click", this.OnPreview, this), this.ClearBtn.node.on("click", this.OnClear, this), this.GrayBtn.node.on("click", this.OnClickGrayBtn, this), this.BlessingBtn.node.on("click", this.OnBlessing, this), this.AutoBtn.node.on("click", this.OnAutoBtnBlessing, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._holyEquipSid = t[0], this._slotPos = t[1]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigBlessingData(), this.ConfigInfoCoitainer(), this.ConfigProgressContainer(), this.ConfigBlessingItemContainer(), this.ConfigCurrencyBar(), this.ConfigButtons(), this.BindRedDot()
                }, t.prototype.ConfigBlessingData = function() {
                    this._holyEquipData = u.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, this._holyEquipSid), 1 == this._slotPos ? this._blessingData = this._holyEquipData.Blessing1 : this._blessingData = this._holyEquipData.Blessing2, this._blessingConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipBlessing_Config, this._blessingData.BlessingId);
                    var e = 100 * v.HolyEquipmentState.Star + this._holyEquipData.Star;
                    this._holyEquipStarConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipmentStar_Config, e), this._blessingLevelConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipBlessingLevel_Config, this._blessingData.Level);
                    var t = this._blessingLevelConfig.Materials[0].Items;
                    this._costItemId = t[0], this._costItemCount = t[1]
                }, t.prototype.ConfigInfoCoitainer = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset("HolyEquipBlessingIcon/" + this._blessingConfig.TypeId, cc.SpriteFrame)];
                                case 1:
                                    return e = n.sent(), this.isValid ? (this.BlessingIcon.spriteFrame = e, this.BlessingName.string = this._blessingConfig.TypeId.ToHolyHolyEquipBlessingName(), this.BlessingEffectLevelValue.string = "<outline width=3 color=#202434><color=#FED94A>Lv." + this._blessingConfig.Level + "</c><color=#ffffff>/" + this._holyEquipStarConfig.BlessingMaxLevel + "</c></outline>", t = d.default.GetHeroAttribute(this._blessingConfig.Attrs[0], this._blessingConfig.Attrs[1], !0), this.AttrIcon.spriteFrame = t.Icon, this.AttrName.string = t.Name, this.AttrValue.string = "+" + t.Value, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.ConfigProgressContainer = function() {
                    if (this._blessingData.Level < u.ConfigCacheComponent.Instance.HolyEquipBlessingMaxLevel) {
                        var e = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipBlessingLevel_Config, this._blessingData.Level + 1).Xp;
                        this.ProgressBar.progress = this._blessingData.Xp / e, this.ProgressBarValue.string = this._blessingData.Xp + "/" + e, this._leftXP = e - this._blessingData.Xp
                    } else this.ProgressBar.progress = 1, this.ProgressBarValue.string = ""
                }, t.prototype.ConfigBlessingItemContainer = function() {
                    if (!this._blessingItems) {
                        this._blessingItems = [];
                        for (var e = 0; e < this.MAX_BLESSINGITEM_COUNT; e++) {
                            var t = cc.instantiate(this._blessingItemPrefab);
                            t.setParent(this.Layout), t.name = e.toString(), t.on(cc.Node.EventType.TOUCH_END, this.OnClickBlessingItem, this), this._blessingItems.push(t.getComponent(y.default))
                        }
                    }
                    for (this._hasHigherLevelItem = !1, e = 0; e < this._blessingItems.length; e++) {
                        var n = this._blessingItems[e],
                            o = this._blessingData.Pool[e];
                        o ? (n.Init(o, void 0, this._blessingConfig.Level), this._hasHigherLevelItem || u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipBlessing_Config, o).Level > this._blessingConfig.Level && (this._hasHigherLevelItem = !0)) : n.Init()
                    }
                }, t.prototype.OnClickBlessingItem = function(e) {
                    var t = Number.parseInt(e.target.name),
                        n = this._blessingData.Pool[t];
                    n && h.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyEquipBlessingChangePanel.Path, this._blessingData.BlessingId, n, this._holyEquipSid, this._slotPos, t)
                }, t.prototype.ConfigCurrencyBar = function() {
                    this.CurrencyBar.Init(this._costItemId, !1, void 0, this._costItemCount), this.CurrencyBar.SetFixedWidth(240)
                }, t.prototype.OnPreview = function() {
                    h.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyEquipmentBlessingHandbookPanel.Path, this._holyEquipSid, this._blessingData.Level)
                }, t.prototype.OnClear = function() {
                    var e = this;
                    if (this._hasHigherLevelItem && !I.default.GetItem(I.GameRecordDefine.ClearHolyBlessingHint)) return m.UIUtlity.ShowHintPanel(null, "holy_equip_blessing_clear_confirm".ToUILocale(), "", null, "", function() {
                        e.DoClearBlessingRequestJob()
                    }, void 0, I.GameRecordDefine.ClearHolyBlessingHint);
                    this.DoClearBlessingRequestJob()
                }, t.prototype.DoClearBlessingRequestJob = function() {
                    var e = new c.Req_Holy_EquipmentClear;
                    e.Sid = this._holyEquipSid, e.Index = this._slotPos, u.RpcComponent.Instance.Call(e, this.OnClearSucces.bind(this))
                }, t.prototype.OnClearSucces = function() {
                    this.ConfigBlessingData(), this.ConfigBlessingItemContainer(), this.ConfigButtons()
                }, t.prototype.OnClickGrayBtn = function() {
                    m.UIUtlity.ShowFloatingHint("holy_equip_blessing_nothing_clear".ToUILocale().Fmt(this._costItemId.ToItemName()))
                }, t.prototype.OnBlessing = function() {
                    this.SetBlessing(1)
                }, t.prototype.OnAutoBtnBlessing = function() {
                    this.SetBlessing(this.MAX_BLESSINGITEM_COUNT)
                }, t.prototype.SetBlessing = function(e) {
                    var t = this,
                        n = u.DataCenter.Instance.GetItemCount(this._costItemId);
                    return this._blessingData.Pool.length >= this.MAX_BLESSINGITEM_COUNT ? m.UIUtlity.ShowFloatingHint("holy_equip_blessing_full".ToUILocale().Fmt(this._costItemId.ToItemName())) : n < this._costItemCount * e ? m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._costItemId.ToItemName())) : this._hasHigherLevelItem && !I.default.GetItem(I.GameRecordDefine.HolyBlessingLevelHigerHint) ? m.UIUtlity.ShowHintPanel(null, "holy_equip_blessing_higherLevel_hint".ToUILocale(), "", null, "", function() {
                        t.DoBlessingRequestJob(e)
                    }, void 0, I.GameRecordDefine.HolyBlessingLevelHigerHint) : this._blessingData.Level >= this._holyEquipStarConfig.BlessingMaxLevel && !I.default.GetItem(I.GameRecordDefine.HolyBlessingMaxLevelHint) ? m.UIUtlity.ShowHintPanel(null, "holy_equip_blessing_maxlevel_hint".ToUILocale(), "", null, "", function() {
                        t.DoBlessingRequestJob(e)
                    }, void 0, I.GameRecordDefine.HolyBlessingMaxLevelHint) : void this.DoBlessingRequestJob(e)
                }, t.prototype.DoBlessingRequestJob = function(e) {
                    var t = new c.Req_Holy_EquipmentBlessing;
                    t.Sid = this._holyEquipSid, t.Index = this._slotPos, t.Count = e, t.MaxLevelBlessing = !0, u.RpcComponent.Instance.Call(t, this.OnBlessingSucces.bind(this))
                }, t.prototype.OnBlessingSucces = function() {
                    this.ConfigBlessingData(), this.ConfigProgressContainer(), this.ConfigBlessingItemContainer(), this.ConfigButtons(), this.ConfigCurrencyBar(), this.BindRedDot()
                }, t.prototype.ConfigButtons = function() {
                    this._blessingData.Pool.length > 0 ? (this.GrayBtn.node.active = !1, this.ClearBtn.node.active = !0) : (this.GrayBtn.node.active = !0, this.ClearBtn.node.active = !1)
                }, t.prototype.PlayBlessingSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._changeSpine ? [3, 2] : [4, this.LoadDynamicAsset("HolyEquipmentPanel/BlessingChangeSpine")];
                                case 1:
                                    e = o.sent(), (t = cc.instantiate(e)).setParent(this.SpineNode), this._changeSpine = t.getComponent(sp.Skeleton), o.label = 2;
                                case 2:
                                    return this._changeSpine.node.active = !0, this._changeSpine.setAnimation(0, this._changeSpine.animation, !1), this._changeSpine.setCompleteListener(function() {
                                        n._changeSpine.node.active = !1
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.BindRedDot = function() {
                    var e;
                    e = !(this._blessingConfig.Level >= this._holyEquipStarConfig.BlessingMaxLevel) && u.DataCenter.Instance.IsItemEnough(this._costItemId, this._costItemCount * this._leftXP), _.RedDotManager.Instance.BindInstance(this.BlessingBtn.node, _.RedDotManager.Instance.InstanceRedDot.HolyEquipBlessingCostButton, {
                        Result: e
                    })
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Label)], t.prototype, "EffectTitle", void 0), i([P(cc.Label)], t.prototype, "BlessingName", void 0), i([P(cc.RichText)], t.prototype, "BlessingEffectLevelValue", void 0), i([P(cc.Label)], t.prototype, "AttrName", void 0), i([P(cc.Label)], t.prototype, "AttrValue", void 0), i([P(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([P(cc.Sprite)], t.prototype, "BlessingIcon", void 0), i([P(cc.Button)], t.prototype, "PreviewBtn", void 0), i([P(cc.Label)], t.prototype, "LevelTitle", void 0), i([P(b.default)], t.prototype, "ProgressBar", void 0), i([P(cc.Label)], t.prototype, "ProgressBarValue", void 0), i([P(cc.Label)], t.prototype, "SelectBlessingHint", void 0), i([P(cc.Node)], t.prototype, "Layout", void 0), i([P(f.default)], t.prototype, "CurrencyBar", void 0), i([P(cc.Button)], t.prototype, "ClearBtn", void 0), i([P(cc.Label)], t.prototype, "ClearBtnLabel", void 0), i([P(cc.Button)], t.prototype, "GrayBtn", void 0), i([P(cc.Label)], t.prototype, "GrayBtnLabel", void 0), i([P(cc.Button)], t.prototype, "BlessingBtn", void 0), i([P(cc.Label)], t.prototype, "BlessingBtnLabel", void 0), i([P(cc.Node)], t.prototype, "SpineNode", void 0), i([P(cc.Button)], t.prototype, "AutoBtn", void 0), i([P(cc.Label)], t.prototype, "AutoBtnLabel", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "./HolyEquipBlessingItem": "HolyEquipBlessingItem"
    }],
    HolyEquipTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d5176hhMsdBBYJJMVikhMuX", "HolyEquipTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../Components/ItemComponent"),
            f = e("../Components/ItemClickComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./SuitSkillItem"),
            m = e("../Components/TipsLocationComponent"),
            I = e("../../../ShareConsts/EnumType"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1), t.Mask = null, t.BgNode = null, t.ItemContainer = null, t.NameLabel = null, t.LevelLabel = null, t.ItemTypeDesc = null, t.ItemTypeValue = null, t.ItemScoreDesc = null, t.ItemScoreValue = null, t.TagAttrLabel = null, t.AttrLayout = null, t.AdvancedContainerNode = null, t.TagAdvancedLabel = null, t.AdvancedAttrLayoutNode = null, t.AdvancedLockNode = null, t.AdvancedLockTipLabel = null, t.TagGalleryLabel = null, t.GalleryAttrNodeArray = [], t.GalleryAttrIconArray = [], t.GalleryAttrTagArray = [], t.GalleryAttrValueArray = [], t.GalleryLockNode = null, t.GalleryLockTipLabel = null, t.TagSoulLabel = null, t.SoulAttrNode = null, t.SoulLockNode = null, t.TagBlessingLabel = null, t.Blessing1Node = null, t.Blessing2Node = null, t.TagSuitLabel = null, t.SuitSkill1 = null, t.SuitSkill2 = null, t.HolyEquipDescInfo = null, t.TipsLocationComponent = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), n = this.LoadDynamicAsset(u.BundlePath.SkillItemComponent), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._skillPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ItemTypeDesc.string = "equip_type_tag".ToUILocale(), this.ItemScoreDesc.string = "equip_score_tag".ToUILocale(), this.Mask.on(cc.Node.EventType.TOUCH_END, this.OnClose, this), this.Mask._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._holyEquipTipData = t[0], this._clickNode = t[1], this._newHolyEquipData = t[2]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function() {
                    var t = this;
                    e.prototype.DisPlay.call(this), this.ConfigHolyEquipData(), this.ConfigInfoContainer(), this.ConfigAttrsContainer(), this.ConfigAdvancedContainer(), this.ConfigGalleryContainer(), this.ConfigSoulContainer(), this.ConfigBessingContainer(), this.ConfigSuitContainer(), this.ConfigDescContainer(), this.BgNode.opacity = 0, setTimeout(function() {
                        t.isValid && (t.TipsLocationComponent.RepositionPanel(t._clickNode), t.BgNode.opacity = 255)
                    }, 1e3 * cc.director.getDeltaTime())
                }, t.prototype.ConfigHolyEquipData = function() {
                    this._newHolyEquipData ? (this._holyEquipData = this._newHolyEquipData, this._holyEquipConfig = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipment_Config, this._holyEquipData.ItemId), this._star = this._holyEquipData.Star) : this._holyEquipTipData.Sid ? (this._holyEquipData = p.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, this._holyEquipTipData.Sid), this._holyEquipConfig = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipment_Config, this._holyEquipData.ItemId), this._star = this._holyEquipData.Star) : (this._holyEquipData = void 0, this._star = 0, this._holyEquipConfig = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipment_Config, this._holyEquipTipData.ItemId))
                }, t.prototype.ConfigInfoContainer = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), e.getComponent(f.default).enabled = !1, this._itemComponent = e.getComponent(h.ItemComponent)
                    }
                    if (this._holyEquipData ? this._itemComponent.Init({
                            ItemId: this._holyEquipConfig.Id,
                            StarLevel: this._star,
                            URStarLevel: this._holyEquipData.Step
                        }, h.ItemComponentType.ItemWithStar) : this._itemComponent.Init({
                            ItemId: this._holyEquipConfig.Id,
                            StarLevel: this._star
                        }, h.ItemComponentType.ItemWithStar), this.NameLabel.string = this._holyEquipConfig.Id.ToItemName(), this.ItemTypeValue.string = ("equip_type_" + this._holyEquipConfig.Type).ToUILocale(), this._holyEquipData) {
                        var t = 100 * I.HolyEquipmentState.Star + this._holyEquipData.Star,
                            n = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, t);
                        this.LevelLabel.string = "<outline width=3 color=#000000><color=ffffff>Lv." + this._holyEquipData.Level + "</c></outline><color=563333>/" + n.MaxLevel + "</c>", this.ItemScoreValue.string = y.default.Instance.GetHolyEquipScore(null, this._holyEquipData).toString()
                    } else this.LevelLabel.string = "", this.ItemScoreValue.string = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipmentScore").toString()
                }, t.prototype.ConfigAttrsContainer = function() {
                    this.TagAttrLabel.string = "equip_base_attr".ToUILocale();
                    var e = this._holyEquipData ? this._holyEquipData.Level : 0,
                        t = this._holyEquipData && this._holyEquipData.Step > 0 ? this._holyEquipData.Step : 0,
                        n = y.default.GetFuckingHolyEquipAllAttrs(this._holyEquipConfig.Id, this._star, e, t),
                        o = 0;
                    for (var r in n) {
                        var i = Number.parseInt(r),
                            a = n[r],
                            s = y.default.GetHeroAttribute(i, a),
                            l = this.AttrLayout.children[o];
                        o++, l.active = !0, cc.find("AttrIcon", l).getComponent(cc.Sprite).spriteFrame = s.Icon, cc.find("Tag", l).getComponent(cc.Label).string = s.Name, cc.find("Value", l).getComponent(cc.Label).string = "+" + s.Value
                    }
                    for (var c = o; c < this.AttrLayout.childrenCount; c++) this.AttrLayout.children[c].active = !1
                }, t.prototype.ConfigAdvancedContainer = function() {
                    if (this.AdvancedContainerNode.active = !1, y.default.Instance.IsGameModuleUnlock(I.GameModuleType.UpStepHolyEquipShow)[0])
                        if (this.AdvancedContainerNode.active = !0, this.TagAdvancedLabel.string = "holy_equip_advanced_resonance_attr".ToUILocale(), this.AdvancedLockNode.active = !1, this.AdvancedAttrLayoutNode.active = !1, this._holyEquipData && this._holyEquipConfig.State == I.HolyEquipmentState.Step) {
                            this.AdvancedAttrLayoutNode.active = !0;
                            var e = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, 100 * I.HolyEquipmentState.Step + this._holyEquipData.Step),
                                t = [];
                            switch (this._holyEquipConfig.Type) {
                                case I.HeroEquipmentType.Weapon:
                                    t = e.UnmatchedWeapon;
                                    break;
                                case I.HeroEquipmentType.Coat:
                                    t = e.UnmatchedCoat;
                                    break;
                                case I.HeroEquipmentType.Glove:
                                    t = e.UnmatchedGlove;
                                    break;
                                case I.HeroEquipmentType.Shoes:
                                    t = e.UnmatchedShoes
                            }
                            for (var n = 0; n < t.length; n++) {
                                var o = t[n].Items,
                                    r = y.default.GetHeroAttribute(o[0], o[1]),
                                    i = this.AdvancedAttrLayoutNode.children[n];
                                i.active = !0, cc.find("AttrIcon", i).getComponent(cc.Sprite).spriteFrame = r.Icon, cc.find("Tag", i).getComponent(cc.Label).string = r.Name, cc.find("Value", i).getComponent(cc.Label).string = "+" + r.Value
                            }
                            if (t.length < this.AdvancedAttrLayoutNode.childrenCount)
                                for (n = t.length; n < this.AdvancedAttrLayoutNode.childrenCount; n++) this.AdvancedAttrLayoutNode.children[n].active = !1
                        } else this.AdvancedLockNode.active = !0, this.AdvancedLockTipLabel.string = "holy_equip_advanced_not_tip".ToUILocale()
                }, t.prototype.ConfigGalleryContainer = function() {
                    if (this.TagGalleryLabel.string = "holy_equip_gallery_tag".ToUILocale(), this.GalleryAttrNodeArray.forEach(function(e) {
                            e.active = !1
                        }), this._holyEquipData && this._holyEquipData.GallerySlot) {
                        this.GalleryLockNode.active = !1;
                        var e = {},
                            t = 10 + this._holyEquipConfig.Type;
                        if (e = this.GetAttrDataMap(e, t, this._holyEquipData.Star), this._holyEquipData && this._holyEquipData.Step) {
                            var n = 10 * this._holyEquipConfig.State + this._holyEquipConfig.Type;
                            e = this.GetAttrDataMap(e, n, this._holyEquipData.Step - 1)
                        }
                        var o = 0;
                        for (var r in e) {
                            var i = y.default.GetHeroAttribute(Number(r), e[r]);
                            this.GalleryAttrNodeArray[o].active = !0, this.GalleryAttrIconArray[o].spriteFrame = i.Icon, this.GalleryAttrTagArray[o].string = i.Name, this.GalleryAttrValueArray[o].string = i.Value, o++
                        }
                    } else this.GalleryLockNode.active = !0, this.GalleryLockTipLabel.string = "holy_equip_gallery_locked".ToUILocale()
                }, t.prototype.GetAttrDataMap = function(e, t, n) {
                    for (var o = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipSlotAddon_Config, t).SelfAttrIds[n], r = p.ConfigDataComponent.Instance.GetConfigById(d.CommonAttrs_Config, o), i = 0; i < r.Attrs.length; i++) {
                        var a = r.Attrs[i].Items[0],
                            s = r.Attrs[i].Items[1];
                        e[a] ? e[a] += s : e[a] = s
                    }
                    return e
                }, t.prototype.ConfigSoulContainer = function() {
                    var e, t = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipSoulUnlock");
                    if (e = this._holyEquipData ? this._holyEquipData.Stage : 0, this.TagSoulLabel.string = ("<outline width=3 color=#000000>" + "holy_equip_soul_stage_tag".ToUILocale() + "</outline>").Fmt(e), this._star >= t) {
                        this.SoulAttrNode.active = !0, this.SoulLockNode.active = !1, cc.find("Tag", this.SoulAttrNode).getComponent(cc.Label).string = "holy_equip_attrs_bonus".ToUILocale();
                        var n = 0;
                        e > 0 && (n = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipSoul_Config, e).Attr), cc.find("Value", this.SoulAttrNode).getComponent(cc.Label).string = "+" + n / 10 + "%"
                    } else this.SoulAttrNode.active = !1, this.SoulLockNode.active = !0, cc.find("Label", this.SoulLockNode).getComponent(cc.Label).string = "holy_equip_soul_locked".ToUILocale()
                }, t.prototype.ConfigBessingContainer = function() {
                    this.TagBlessingLabel.string = "holy_equip_blessing_tag".ToUILocale();
                    var e = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipBlessingUnlock1"),
                        t = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipBlessingUnlock2");
                    this._holyEquipData ? (this.RenderBlessingNode(this.Blessing1Node, this._holyEquipData.Blessing1, e), this.RenderBlessingNode(this.Blessing2Node, this._holyEquipData.Blessing2, t)) : (this.RenderBlessingNode(this.Blessing1Node, void 0, e), this.RenderBlessingNode(this.Blessing2Node, void 0, t))
                }, t.prototype.RenderBlessingNode = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i, a, c, u, h, f, g;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return o = cc.find("UnlockLayout", e), r = cc.find("UnBlessing", e), i = cc.find("Blessing", e), o.active = !1, r.active = !1, i.active = !1, this._star >= n && t ? 0 == t.BlessingId ? [3, 2] : (i.active = !0, a = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipBlessing_Config, t.BlessingId), cc.find("1/Tag", i).getComponent(cc.Label).string = a.TypeId.ToHolyHolyEquipBlessingName(), cc.find("1/Value", i).getComponent(cc.Label).string = "Lv." + a.Level, c = y.default.GetHeroAttribute(a.Attrs[0], a.Attrs[1]), cc.find("2/AttrIcon", i).getComponent(cc.Sprite).spriteFrame = c.Icon, cc.find("2/Tag", i).getComponent(cc.Label).string = c.Name, cc.find("2/Value", i).getComponent(cc.Label).string = "+" + c.Value, u = cc.find("Item/Icon", i).getComponent(cc.Sprite), [4, this.LoadDynamicAsset("HolyEquipBlessingIcon/" + a.TypeId, cc.SpriteFrame)]) : [3, 4];
                                case 1:
                                    return h = s.sent(), this.isValid ? (u.spriteFrame = h, [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(h), [2]);
                                case 2:
                                    r.active = !0, cc.find("Label", r).getComponent(cc.Label).string = "holy_equip_blessing_none".ToUILocale(), s.label = 3;
                                case 3:
                                    return [3, 5];
                                case 4:
                                    for (o.active = !0, cc.find("Label", o).getComponent(cc.Label).string = "holy_equip_blessing_unlock".ToUILocale().Fmt(n), f = cc.find("Star", o), g = 0; g < f.childrenCount; g++) f.children[g].active = g < n;
                                    s.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ConfigSuitContainer = function() {
                    this.TagSuitLabel.string = this._holyEquipConfig.SuitId.ToHolyEquipSuitName();
                    var e = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipSuit_Config, this._holyEquipConfig.SuitId),
                        t = e.SkillTwoId,
                        n = e.SkillFourId,
                        o = [0, 0];
                    if (this._holyEquipData) {
                        var r = y.default.IsHolyEquipSuitActive(this._holyEquipData.OwnerId, this._holyEquipConfig.SuitId);
                        r[0] && (o[0] = 1, t = r[0]), r[1] && (o[1] = 1, n = r[1])
                    }
                    this.SuitSkill1.Init(this._skillPrefab, t, o[0], 2), this.SuitSkill2.Init(this._skillPrefab, n, o[1], 4)
                }, t.prototype.ConfigDescContainer = function() {
                    this.HolyEquipDescInfo.string = this._holyEquipConfig.Id.ToItemDesc()
                }, t.prototype.OnClose = function() {
                    this.Close()
                }, i([v(cc.Node)], t.prototype, "Mask", void 0), i([v(cc.Node)], t.prototype, "BgNode", void 0), i([v(cc.Node)], t.prototype, "ItemContainer", void 0), i([v(cc.Label)], t.prototype, "NameLabel", void 0), i([v(cc.RichText)], t.prototype, "LevelLabel", void 0), i([v(cc.Label)], t.prototype, "ItemTypeDesc", void 0), i([v(cc.Label)], t.prototype, "ItemTypeValue", void 0), i([v(cc.Label)], t.prototype, "ItemScoreDesc", void 0), i([v(cc.Label)], t.prototype, "ItemScoreValue", void 0), i([v(cc.Label)], t.prototype, "TagAttrLabel", void 0), i([v(cc.Node)], t.prototype, "AttrLayout", void 0), i([v(cc.Node)], t.prototype, "AdvancedContainerNode", void 0), i([v(cc.Label)], t.prototype, "TagAdvancedLabel", void 0), i([v(cc.Node)], t.prototype, "AdvancedAttrLayoutNode", void 0), i([v(cc.Node)], t.prototype, "AdvancedLockNode", void 0), i([v(cc.Label)], t.prototype, "AdvancedLockTipLabel", void 0), i([v(cc.Label)], t.prototype, "TagGalleryLabel", void 0), i([v([cc.Node])], t.prototype, "GalleryAttrNodeArray", void 0), i([v([cc.Sprite])], t.prototype, "GalleryAttrIconArray", void 0), i([v([cc.Label])], t.prototype, "GalleryAttrTagArray", void 0), i([v([cc.Label])], t.prototype, "GalleryAttrValueArray", void 0), i([v(cc.Node)], t.prototype, "GalleryLockNode", void 0), i([v(cc.Label)], t.prototype, "GalleryLockTipLabel", void 0), i([v(cc.RichText)], t.prototype, "TagSoulLabel", void 0), i([v(cc.Node)], t.prototype, "SoulAttrNode", void 0), i([v(cc.Node)], t.prototype, "SoulLockNode", void 0), i([v(cc.Label)], t.prototype, "TagBlessingLabel", void 0), i([v(cc.Node)], t.prototype, "Blessing1Node", void 0), i([v(cc.Node)], t.prototype, "Blessing2Node", void 0), i([v(cc.Label)], t.prototype, "TagSuitLabel", void 0), i([v(g.default)], t.prototype, "SuitSkill1", void 0), i([v(g.default)], t.prototype, "SuitSkill2", void 0), i([v(cc.RichText)], t.prototype, "HolyEquipDescInfo", void 0), i([v(m.default)], t.prototype, "TipsLocationComponent", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent",
        "./SuitSkillItem": "SuitSkillItem"
    }],
    HolyEquipTitleAndItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "391b0aRh3FHkYEBxfdL0n2z", "HolyEquipTitleAndItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../Components/ItemComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemClickComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property;
        (function(e) {
            e[e.Name = 1] = "Name", e[e.Level = 2] = "Level", e[e.Soul = 3] = "Soul"
        })(l || (l = {}));
        var m = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ItemName = null, t.Title = null, t.MaxLevel = null, t.ItemContainer = null, t.StarContainer = null, t
            }
            return r(t, e), t.prototype.Init = function(e, t, n, o) {
                void 0 === o && (o = l.Name), this._holyEquipData = e, this._maxStarLevel = t, this._itemPrefab = n, this._mode = o, this.ConfigTitle(), this.ConfitHolyEquipItem()
            }, t.prototype.ConfigTitle = function() {
                switch (this.ItemName.string = "<outline color=000000 width=2>" + this._holyEquipData.ItemId.ToItemName() + "</outline>", this._mode) {
                    case l.Level:
                        this.Title.string = "holy_equip_nameAndLevel".ToUILocale().Fmt("", " Lv." + this._holyEquipData.Level + "/"), this.MaxLevel.string = this._maxStarLevel.toString();
                        break;
                    case l.Soul:
                        this.Title.string = "holy_equip_nameAndSoul".ToUILocale().Fmt("", "" + this._holyEquipData.Stage)
                }
            }, t.prototype.ConfitHolyEquipItem = function() {
                if (!this._itemComponent) {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.ItemContainer), this._itemComponent = e.getComponent(c.ItemComponent), e.getComponent(d.default).enabled = !1, e.on(cc.Node.EventType.TOUCH_END, this.OnClickItemNode, this)
                }
                this._itemComponent.Init({
                    ItemId: this._holyEquipData.ItemId
                });
                for (var t = 0; t < this.StarContainer.childrenCount; t++) {
                    var n = this.StarContainer.children[t],
                        o = cc.find("Light", n);
                    if (t < this._holyEquipData.Star) {
                        o.active = !0;
                        var r = o.getComponent(cc.Sprite);
                        this._holyEquipData.Step && this._holyEquipData.Step > t ? this.SetURStsr(r) : r.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_equipment1")
                    } else o.active = !1
                }
            }, t.prototype.SetURStsr = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return t = e, [4, h.UIUtlity.GetCommonAtlas3Sprite("urStarIcon")];
                            case 1:
                                return t.spriteFrame = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.OnClickItemNode = function() {
                u.UIManager.Instance.ShowUIPanel(p.PanelConfig.HolyEquipmentInfoPanel.Path, {
                    Sid: this._holyEquipData.Sid,
                    HideButton: !0,
                    ItemId: this._holyEquipData.ItemId
                })
            }, i([g(cc.RichText)], t.prototype, "ItemName", void 0), i([g(cc.RichText)], t.prototype, "Title", void 0), i([g(cc.Label)], t.prototype, "MaxLevel", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Node)], t.prototype, "StarContainer", void 0), i([y], t)
        }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyEquipUpStarItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "39a952uighCGLdxVs9hPme7", "HolyEquipUpStarItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../../Components/DataCenter"),
            c = e("../Components/ItemComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.Count = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._itemId = e, this._costCount = t, this._itemPrefab = n, this._itemCount = l.DataCenter.Instance.GetItemCount(this._itemId), this.ConfigItemNode(), this.ConfigCountLabel()
                }, t.prototype.ConfigItemNode = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._itemComponent = e.getComponent(c.ItemComponent), e.getComponent(cc.BlockInputEvents).enabled = !1
                    }
                    this._itemComponent.Init({
                        ItemId: this._itemId
                    }), this._itemCount < this._costCount ? (this._itemComponent.SetAddFlagState(!0, "add_green"), this._itemComponent.EnableItemMask()) : (this._itemComponent.SetAddFlagState(!1), this._itemComponent.DisableItemMask())
                }, t.prototype.ConfigCountLabel = function() {
                    this._itemCount < this._costCount ? this.Count.string = "item_count_not_enough".ToUILocale().Fmt(this._itemCount, this._costCount) : this.Count.string = "item_count_enough".ToUILocale().Fmt(this._itemCount, this._costCount)
                }, t.prototype.OnItemClick = function() {
                    this._itemCount < this._costCount && a.UIManager.Instance.ShowUIPanel(s.PanelConfig.ItemGetWayPanel.Path, this._itemId)
                }, i([d(cc.Node)], t.prototype, "ItemContainer", void 0), i([d(cc.RichText)], t.prototype, "Count", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyEquipUpStarSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7738aGr31lBoJTKzrzOtNni", "HolyEquipUpStarSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../Components/ItemComponent"),
            h = e("../Components/AttributeItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.ItemContainer = null, t.EffectTittle = null, t.Attritems = [], t.UnlockSoulNode = null, t.UnlockSoulHint = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.EffectTittle.string = "holy_equip_upstar_effect".ToUILocale(), this.UnlockSoulHint.string = "holy_equip_unlock_soul".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._holyEquipSid = t[0], this._attrItemsData = t[1]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ConfigHoluEquipData(), this.ConfigEquipItem(), this.ConfigEffectContainer(), this.ConfigUnlockSoulContainer()
                }, t.prototype.ConfigHoluEquipData = function() {
                    this._holyEquipData = p.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, this._holyEquipSid)
                }, t.prototype.ConfigEquipItem = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._itemComponent = e.getComponent(d.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: this._holyEquipData.ItemId,
                        StarLevel: this._holyEquipData.Star
                    }, d.ItemComponentType.ItemWithStar)
                }, t.prototype.ConfigEffectContainer = function() {
                    for (var e = 0; e < this._attrItemsData.length; e++) this.Attritems[e].node.active = !0, this.Attritems[e].Init(this._attrItemsData[e]);
                    for (e = this._attrItemsData.length; e < this.Attritems.length; e++) this.Attritems[e].node.active = !1
                }, t.prototype.ConfigUnlockSoulContainer = function() {
                    var e = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipSoulUnlock");
                    this._holyEquipData.Star == e ? this.UnlockSoulNode.active = !0 : this.UnlockSoulNode.active = !1
                }, i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Label)], t.prototype, "EffectTittle", void 0), i([g(h.default)], t.prototype, "Attritems", void 0), i([g(cc.Node)], t.prototype, "UnlockSoulNode", void 0), i([g(cc.Label)], t.prototype, "UnlockSoulHint", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/AttributeItemComponent": "AttributeItemComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyEquipmentAddtionPreviewListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ff241XEqQNASqcs7iKb0oUg", "HolyEquipmentAddtionPreviewListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("./SimpleAttrComponent"),
            c = e("../../Components/Components"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ActiveTagNode = null, t.MaskNode = null, t.StarContaienr = null, t.AllAddtionTag = null, t.AllAttrContainer = null, t.SpecialAddtionTag = null, t.SpecialAttrContainer = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.AllAddtionTag.string = "HolyEquipmentGallery_Addtion_All".ToUILocale(), this.SpecialAddtionTag.string = "HolyEquipmentGallery_Addtion_Special".ToUILocale()
                }, t.prototype.Init = function(e, t, n, o) {
                    this._equipmentModel = e, this._isStar = t, this._starCount = n, this._attrPrefab = o, this._isCurrentAddtion = t && this._starCount == this._equipmentModel.Star || !t && this._starCount == this._equipmentModel.Step - 1, this.SetStarContainer(), this.SetAttrContainer(), this.ActiveTagNode.active = !1, this.MaskNode.active = !1, s.UIUtlity.SetGray(this.node, !1, !0), this._isCurrentAddtion ? this.ActiveTagNode.active = !0 : t && this._starCount < this._equipmentModel.Star || !t && this._starCount < this._equipmentModel.Step - 1 ? this.MaskNode.active = !0 : s.UIUtlity.SetGray(this.node, !0, !0)
                }, t.prototype.SetStarContainer = function() {
                    for (var e = 0; e < 5; e++) {
                        var t = new cc.Node;
                        t.setParent(this.StarContaienr), this._starCount > e ? t.addComponent(cc.Sprite).spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_equipment1") : t.addComponent(cc.Sprite).spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_equipmentBg")
                    }
                }, t.prototype.SetAttrContainer = function() {
                    var e = {},
                        t = {},
                        n = c.ConfigDataComponent.Instance.GetConfigById(a.HolyEquipment_Config, this._equipmentModel.ItemId);
                    if (this._isStar) {
                        var o = 10 + n.Type;
                        e = this.GetAttrDataMap(e, o, this._starCount, !1), t = this.GetAttrDataMap(t, o, this._starCount, !0)
                    } else {
                        var r = 20 + n.Type;
                        e = this.GetAttrDataMap(e, r, this._starCount, !1), t = this.GetAttrDataMap(t, r, this._starCount, !0)
                    }
                    for (var i in e)(s = cc.instantiate(this._attrPrefab)).setParent(this.AllAttrContainer), s.getComponent(l.default).Init(Number(i), e[i]);
                    for (var i in t) {
                        var s;
                        (s = cc.instantiate(this._attrPrefab)).setParent(this.SpecialAttrContainer), s.getComponent(l.default).Init(Number(i), t[i])
                    }
                }, t.prototype.GetAttrDataMap = function(e, t, n, o) {
                    for (var r = c.ConfigDataComponent.Instance.GetConfigById(a.HolyEquipSlotAddon_Config, t), i = o ? r.SelfAttrIds[n] : r.AllAttrIds[n], s = c.ConfigDataComponent.Instance.GetConfigById(a.CommonAttrs_Config, i), l = 0; l < s.Attrs.length; l++) {
                        var u = s.Attrs[l].Items[0],
                            p = s.Attrs[l].Items[1];
                        e[u] ? e[u] += p : e[u] = p
                    }
                    return e
                }, i([d(cc.Node)], t.prototype, "ActiveTagNode", void 0), i([d(cc.Node)], t.prototype, "MaskNode", void 0), i([d(cc.Node)], t.prototype, "StarContaienr", void 0), i([d(cc.Label)], t.prototype, "AllAddtionTag", void 0), i([d(cc.Node)], t.prototype, "AllAttrContainer", void 0), i([d(cc.Label)], t.prototype, "SpecialAddtionTag", void 0), i([d(cc.Node)], t.prototype, "SpecialAttrContainer", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./SimpleAttrComponent": "SimpleAttrComponent"
    }],
    HolyEquipmentAdvancedPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "997713cNbRLFKzyMAIw/I4V", "HolyEquipmentAdvancedPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/ItemComponent"),
            d = e("../Components/AttrComponent2"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/FetterSkillMaterialComponent"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../RedDot/RedDotManager"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RuleButton = null, t.CurrentNode = null, t.CurrentNameLabel = null, t.NextNode = null, t.NextNameLabel = null, t.ArrowIconNode = null, t.ResonanceButton = null, t.ResonanceButtonLabel = null, t.BaseAttrTitle = null, t.BaseAttrContainer = null, t.SpecialAttrTitle = null, t.SpecialAttrContainer = null, t.MaterialTitle = null, t.MaterialComponentArray = [], t.MaxTip = null, t.AdvancedButton = null, t.AdvancedButtonLabel = null, t._baseAttrComponentArray = [], t._specialAttrComponentArray = [], t._currentBaseAttrData = {}, t._nextBaseAttrData = {}, t._currentStepAttrData = {}, t._nextStepAttrData = {}, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ResonanceButtonLabel.string = "holy_equip_advanced_resonance".ToUILocale(), this.BaseAttrTitle.string = "holy_equip_advanced_base_attr".ToUILocale(), this.SpecialAttrTitle.string = "holy_equip_advanced_resonance_attr".ToUILocale(), this.MaterialTitle.string = "holy_equip_advanced_material_title".ToUILocale(), this.AdvancedButtonLabel.string = "holy_equip_developToggle_3".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ResonanceButton.node.on("click", this.OnResonanceButtonClick, this), this.AdvancedButton.node.on("click", this.OnAdvancedButtonClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._holyEquipSid = e, this._itemPrefab = t, this._attrPrefab = n, this._holyEquipModel = u.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, this._holyEquipSid), this._holyEquipConfig = u.ConfigDataComponent.Instance.GetConfigById(l.HolyEquipment_Config, this._holyEquipModel.ItemId), this._currentStarConfig = u.ConfigDataComponent.Instance.GetConfigById(l.HolyEquipmentStar_Config, 100 * y.HolyEquipmentState.Star + this._holyEquipModel.Star), this._currentStepLevel = this._holyEquipModel.Step ? this._holyEquipModel.Step : 0, this._currentStepConfig = u.ConfigDataComponent.Instance.GetConfigById(l.HolyEquipmentStar_Config, 100 * y.HolyEquipmentState.Step + this._currentStepLevel), this._nextStepConfig = u.ConfigDataComponent.Instance.GetConfigById(l.HolyEquipmentStar_Config, 100 * y.HolyEquipmentState.Step + this._currentStepLevel + 1), this.SetItemContainer(), this.SetAttrContainer(), this.SetMaterialContainer(), this.SetRedDot()
                }, t.prototype.SetItemContainer = function() {
                    if (this._currentItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.CurrentNode), this._currentItemComponent = e.getComponent(p.ItemComponent)), this._currentItemComponent.Init({
                            ItemId: this._holyEquipModel.ItemId,
                            StarLevel: this._holyEquipModel.Star,
                            URStarLevel: this._holyEquipModel.Step
                        }, p.ItemComponentType.ItemWithStar), this.CurrentNameLabel.string = this._holyEquipModel.ItemId.ToItemName(), this.ArrowIconNode.active = !1, this.NextNode.active = !1, this._nextStepConfig) {
                        var e;
                        this.ArrowIconNode.active = !0, this.NextNode.active = !0, this._nextItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.NextNode), this._nextItemComponent = e.getComponent(p.ItemComponent));
                        var t = this._holyEquipConfig.NextStateId ? this._holyEquipConfig.NextStateId : this._holyEquipConfig.Id;
                        this._nextItemComponent.Init({
                            ItemId: t,
                            StarLevel: this._holyEquipModel.Star,
                            URStarLevel: this._holyEquipModel.Step + 1
                        }, p.ItemComponentType.ItemWithStar), this.NextNameLabel.string = t.ToItemName()
                    }
                }, t.prototype.SetAttrContainer = function() {
                    var e = this,
                        t = [],
                        n = [],
                        o = [],
                        r = [];
                    switch (this._holyEquipConfig.Type) {
                        case y.HeroEquipmentType.Weapon:
                            t = this._currentStepConfig ? this._currentStepConfig.Weapon : this._currentStarConfig.Weapon, n = this._nextStepConfig ? this._nextStepConfig.Weapon : [], o = this._currentStepConfig ? this._currentStepConfig.UnmatchedWeapon : [], r = this._nextStepConfig ? this._nextStepConfig.UnmatchedWeapon : [];
                            break;
                        case y.HeroEquipmentType.Coat:
                            t = this._currentStepConfig ? this._currentStepConfig.Coat : this._currentStarConfig.Coat, n = this._nextStepConfig ? this._nextStepConfig.Coat : [], o = this._currentStepConfig ? this._currentStepConfig.UnmatchedCoat : [], r = this._nextStepConfig ? this._nextStepConfig.UnmatchedCoat : [];
                            break;
                        case y.HeroEquipmentType.Glove:
                            t = this._currentStepConfig ? this._currentStepConfig.Glove : this._currentStarConfig.Glove, n = this._nextStepConfig ? this._nextStepConfig.Glove : [], o = this._currentStepConfig ? this._currentStepConfig.UnmatchedGlove : [], r = this._nextStepConfig ? this._nextStepConfig.UnmatchedGlove : [];
                            break;
                        case y.HeroEquipmentType.Shoes:
                            t = this._currentStepConfig ? this._currentStepConfig.Shoes : this._currentStarConfig.Shoes, n = this._nextStepConfig ? this._nextStepConfig.Shoes : [], o = this._currentStepConfig ? this._currentStepConfig.UnmatchedShoes : [], r = this._nextStepConfig ? this._nextStepConfig.UnmatchedShoes : []
                    }
                    this._currentBaseAttrData = {}, this._nextBaseAttrData = {}, this._currentStepConfig ? 0 == n.length ? t.forEach(function(t) {
                        e._currentBaseAttrData[t.Items[0]] = t.Items[1], e._nextBaseAttrData[t.Items[0]] = 0
                    }) : (t.forEach(function(t) {
                        e._currentBaseAttrData[t.Items[0]] = t.Items[1]
                    }), n.forEach(function(t) {
                        e._nextBaseAttrData[t.Items[0]] = t.Items[1]
                    })) : (t.forEach(function(t) {
                        e._currentBaseAttrData[t.Items[0]] = t.Items[1]
                    }), n.forEach(function(t) {
                        e._currentBaseAttrData[t.Items[0]] || (e._currentBaseAttrData[t.Items[0]] = 0), e._nextBaseAttrData[t.Items[0]] = t.Items[1]
                    }));
                    var i = 0;
                    for (var a in this._currentBaseAttrData) {
                        var s = this._baseAttrComponentArray[i];
                        if (s || ((u = cc.instantiate(this._attrPrefab)).setParent(this.BaseAttrContainer), s = u.getComponent(d.default), this._baseAttrComponentArray[i] = s), this._baseAttrComponentArray[i].node.active = !0, (p = this._nextBaseAttrData[a] - this._currentBaseAttrData[a]) > 0) s.Init(Number(a), this._currentBaseAttrData[a], p);
                        else {
                            if (0 != n.length) continue;
                            s.Init(Number(a), this._currentBaseAttrData[a])
                        }
                        s.SetAttrValueStyle(922, 366, d.AttrComponent2Style.Mid, d.AttrComponent2Style.Mid), i++
                    }
                    if (i < this._baseAttrComponentArray.length)
                        for (var l = i; l < this._baseAttrComponentArray.length; l++) this._baseAttrComponentArray[l].node.active = !1;
                    this._currentStepAttrData = {}, this._nextStepAttrData = {}, 0 == o.length ? r.forEach(function(t) {
                        e._currentStepAttrData[t.Items[0]] = 0, e._nextStepAttrData[t.Items[0]] = t.Items[1]
                    }) : 0 == r.length ? o.forEach(function(t) {
                        e._currentStepAttrData[t.Items[0]] = t.Items[1], e._nextStepAttrData[t.Items[0]] = 0
                    }) : (o.forEach(function(t) {
                        e._currentStepAttrData[t.Items[0]] = t.Items[1]
                    }), r.forEach(function(t) {
                        e._nextStepAttrData[t.Items[0]] = t.Items[1]
                    }));
                    var c = 0;
                    for (var a in this._currentStepAttrData) {
                        var u, p, h = this._specialAttrComponentArray[c];
                        h || ((u = cc.instantiate(this._attrPrefab)).setParent(this.SpecialAttrContainer), h = u.getComponent(d.default), this._specialAttrComponentArray[c] = h), this._specialAttrComponentArray[c].node.active = !0, (p = this._nextStepAttrData[a] - this._currentStepAttrData[a]) > 0 ? h.Init(Number(a), this._currentStepAttrData[a], p) : h.Init(Number(a), this._currentStepAttrData[a]), h.SetAttrValueStyle(922, 366, d.AttrComponent2Style.Mid, d.AttrComponent2Style.Mid), c++
                    }
                    if (c < this._specialAttrComponentArray.length)
                        for (l = c; l < this._specialAttrComponentArray.length; l++) this._specialAttrComponentArray[l].node.active = !1
                }, t.prototype.SetMaterialContainer = function() {
                    if (this.MaterialComponentArray.forEach(function(e) {
                            e.node.active = !1
                        }), this.MaxTip.node.active = !1, this.AdvancedButton.node.active = !0, this._nextStepConfig)
                        for (var e = 0; e < this._nextStepConfig.Materials.length; e++) {
                            var t = this._nextStepConfig.Materials[e].Items[0],
                                n = this._nextStepConfig.Materials[e].Items[1];
                            this.MaterialComponentArray[e].node.active = !0, this.MaterialComponentArray[e].Init(this._itemPrefab, t, n), this._notEnoughItemId || u.DataCenter.Instance.IsItemEnough(t, n) || (this._notEnoughItemId = t)
                        } else this.AdvancedButton.node.active = !1, this.MaxTip.node.active = !0, this.MaxTip.string = "common_max_level".ToUILocale()
                }, t.prototype.SetRedDot = function() {
                    g.RedDotManager.Instance.BindInstance(this.AdvancedButton.node, g.RedDotManager.Instance.InstanceRedDot.HolyEquipAdvancedButton, {
                        Value1: this._holyEquipSid
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "holy_equip_developTittle_3".ToUILocale(),
                        titles: ["holy_equip_advanced_rule_title".ToUILocale()],
                        contents: ["holy_equip_advanced_rule_content".ToUILocale()]
                    };
                    s.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnResonanceButtonClick = function() {
                    a.UIManager.Instance.ShowUIPanel(h.PanelConfig.HolyEquipmentAdvancedResonancePanel.Path, this._holyEquipSid)
                }, t.prototype.OnAdvancedButtonClick = function() {
                    var e = this;
                    if (this._notEnoughItemId) s.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughItemId.ToItemName()));
                    else {
                        var t = new c.Req_Holy_EquipmentStarUp;
                        t.Sid = this._holyEquipModel.Sid, t.Type = y.HolyEquipmentState.Step, u.RpcComponent.Instance.Call(t, function() {
                            var t = u.DataCenter.Instance.GetTempData("UserOldBattlePowerData"),
                                n = u.DataCenter.Instance.GetIntData(y.UserDataKey.Power);
                            n > t && a.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattlePowerChangePanel.Path, t, n), a.UIManager.Instance.ShowUIPanel(h.PanelConfig.HolyEquipmentAdvancedSuccessPanel.Path, e._holyEquipModel.Sid, e._currentBaseAttrData, e._nextBaseAttrData, e._currentStepAttrData, e._nextStepAttrData)
                        })
                    }
                }, i([_(cc.Button)], t.prototype, "RuleButton", void 0), i([_(cc.Node)], t.prototype, "CurrentNode", void 0), i([_(cc.Label)], t.prototype, "CurrentNameLabel", void 0), i([_(cc.Node)], t.prototype, "NextNode", void 0), i([_(cc.Label)], t.prototype, "NextNameLabel", void 0), i([_(cc.Node)], t.prototype, "ArrowIconNode", void 0), i([_(cc.Button)], t.prototype, "ResonanceButton", void 0), i([_(cc.Label)], t.prototype, "ResonanceButtonLabel", void 0), i([_(cc.Label)], t.prototype, "BaseAttrTitle", void 0), i([_(cc.Node)], t.prototype, "BaseAttrContainer", void 0), i([_(cc.Label)], t.prototype, "SpecialAttrTitle", void 0), i([_(cc.Node)], t.prototype, "SpecialAttrContainer", void 0), i([_(cc.Label)], t.prototype, "MaterialTitle", void 0), i([_([f.default])], t.prototype, "MaterialComponentArray", void 0), i([_(cc.Label)], t.prototype, "MaxTip", void 0), i([_(cc.Button)], t.prototype, "AdvancedButton", void 0), i([_(cc.Label)], t.prototype, "AdvancedButtonLabel", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/FetterSkillMaterialComponent": "FetterSkillMaterialComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyEquipmentAdvancedResonancePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0ba353UNe5I4pk+GqCCkdRV", "HolyEquipmentAdvancedResonancePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("./ResonanceAdditionDesc"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.AddtionContainer = null, t.MAX_LEVEL = 5, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HeroInfoPanel/ResonanceAdditionDesc", cc.Prefab)];
                                case 1:
                                    return t._addtionPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "holy_equip_advanced_resonance".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._equipSid = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._holyEquipModel = p.DataCenter.Instance.GetDataById(u.HolyEquipment_Model, this._equipSid), this._holyEquipsSids = p.DataCenter.Instance.GetHeroHolyEquips(this._holyEquipModel.OwnerId), this.SetAddtionContainer()
                }, t.prototype.SetAddtionContainer = function() {
                    for (var e = this.MAX_LEVEL, t = 0; t < this._holyEquipsSids.length; t++) {
                        var n = this._holyEquipsSids[t];
                        if (!n) {
                            e = 0;
                            break
                        }
                        var o = p.DataCenter.Instance.GetDataById(u.HolyEquipment_Model, n);
                        o.Step < e && (e = o.Step)
                    }
                    for (t = 0; t < this.MAX_LEVEL; t++) {
                        var r = cc.instantiate(this._addtionPrefab);
                        r.setParent(this.AddtionContainer);
                        for (var i = r.getComponent(h.default), a = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipmentStar_Config, 100 * d.HolyEquipmentState.Step + t + 1), s = [], l = 0; l < a.ResonanceAttrs.length; l++) {
                            var f = a.ResonanceAttrs[l].Items;
                            s.push({
                                Attr: f[0],
                                Value: f[1]
                            })
                        }
                        i.active = t + 1 == e, i.Init(t + 1, s, 0)
                    }
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Node)], t.prototype, "AddtionContainer", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "./ResonanceAdditionDesc": "ResonanceAdditionDesc"
    }],
    HolyEquipmentAdvancedSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "40671IeduFOgI1KiwybOioi", "HolyEquipmentAdvancedSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/LuckyCharmUpgradeSuccessAttrNode"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/ItemComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.LeftItemNode = null, t.RightItemNode = null, t.BaseAttrInfoNode = null, t.BaseAttrTitle = null, t.BaseAttrContainer = null, t.ResonanceAttrInfoNode = null, t.ResonanceAttrTitle = null, t.ResonanceAttrContainer = null, t._currentBaseAttrData = {}, t._nextBaseAttrData = {}, t._currentStepAttrData = {}, t._nextStepAttrData = {}, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmUpgradeSuccessAttrNode", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._attrPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BaseAttrTitle.string = "holy_equip_advanced_base_attr".ToUILocale(), this.ResonanceAttrTitle.string = "holy_equip_advanced_resonance_attr".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._holyEquipSid = t[0], this._currentBaseAttrData = t[1], this._nextBaseAttrData = t[2], this._currentStepAttrData = t[3], this._nextStepAttrData = t[4]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetItemNode(), this.SetAttrData())
                }, t.prototype.SetItemNode = function() {
                    var e = u.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, this._holyEquipSid),
                        t = cc.instantiate(this._itemPrefab);
                    t.setParent(this.LeftItemNode), t.getComponent(f.ItemComponent).Init({
                        ItemId: e.ItemId,
                        StarLevel: e.Star,
                        URStarLevel: e.Step - 1
                    }, f.ItemComponentType.ItemWithStar);
                    var n = cc.instantiate(this._itemPrefab);
                    n.setParent(this.RightItemNode), n.getComponent(f.ItemComponent).Init({
                        ItemId: e.ItemId,
                        StarLevel: e.Star,
                        URStarLevel: e.Step
                    }, f.ItemComponentType.ItemWithStar)
                }, t.prototype.SetAttrData = function() {
                    for (var e in this._currentBaseAttrData)
                        if (this._nextBaseAttrData && this._nextBaseAttrData[e] && this._nextBaseAttrData[e] > this._currentBaseAttrData[e]) {
                            (a = cc.instantiate(this._attrPrefab)).setParent(this.BaseAttrContainer);
                            var t = Number(e),
                                n = h.default.GetHeroAttributeIcon(t),
                                o = h.default.GetHeroAttributeName(t),
                                r = h.default.GetHeroAttributeValue(this._currentBaseAttrData[e], t),
                                i = h.default.GetHeroAttributeValue(this._nextBaseAttrData[e], t);
                            a.getComponent(d.default).Init(n, o, r, i)
                        } for (var e in this.BaseAttrInfoNode.active = this.BaseAttrContainer.childrenCount > 0, this._currentStepAttrData)
                        if (this._nextStepAttrData && this._nextStepAttrData[e] && this._nextStepAttrData[e] > this._currentStepAttrData[e]) {
                            var a;
                            (a = cc.instantiate(this._attrPrefab)).setParent(this.ResonanceAttrContainer), t = Number(e), n = h.default.GetHeroAttributeIcon(t), o = h.default.GetHeroAttributeName(t), r = h.default.GetHeroAttributeValue(this._currentStepAttrData[e], t), i = h.default.GetHeroAttributeValue(this._nextStepAttrData[e], t), a.getComponent(d.default).Init(n, o, r, i)
                        } this.ResonanceAttrInfoNode.active = this.ResonanceAttrContainer.childrenCount > 0
                }, i([m(cc.Node)], t.prototype, "LeftItemNode", void 0), i([m(cc.Node)], t.prototype, "RightItemNode", void 0), i([m(cc.Node)], t.prototype, "BaseAttrInfoNode", void 0), i([m(cc.Label)], t.prototype, "BaseAttrTitle", void 0), i([m(cc.Node)], t.prototype, "BaseAttrContainer", void 0), i([m(cc.Node)], t.prototype, "ResonanceAttrInfoNode", void 0), i([m(cc.Label)], t.prototype, "ResonanceAttrTitle", void 0), i([m(cc.Node)], t.prototype, "ResonanceAttrContainer", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyCharmUpgradeSuccessAttrNode": "LuckyCharmUpgradeSuccessAttrNode"
    }],
    HolyEquipmentBlessingHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5fc4/YA1hLyrq+8jsM/jdP", "HolyEquipmentBlessingHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../GamePlay/Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../Components/CustomLayout"),
            h = e("../Components/CustomToggle"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("./HolyEquipBlessingEffectItem"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.CustomLayout = null, t.Toggles = [], t._effectMap = new Map, t._isCustomLayoutInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HolyEquipmentPanel/HolyEquipBlessingEffectItem")];
                                case 1:
                                    return t._effectItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "holy_equip_blessing_preview".ToUILocale(), this.InitToggles()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._holyEquipSid = t[0], this._blessingLevel = t[1]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this._currentType = 0
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ConfigSelectType(), this.ConfigBlessingEffectData(), this.InitCustomLayout();
                    var t = this.Toggles[this._selectType - 1];
                    t.isChecked = !0, this.OnSwitchTab(t)
                }, t.prototype.InitToggles = function() {
                    for (var e = this.Toggles.length, t = 0; t < e; t++) {
                        var n = this.Toggles[t];
                        n.node.on("toggle", this.OnSwitchTab, this), n.Init(("equip_type_" + (t + 1)).ToUILocale())
                    }
                }, t.prototype.ConfigSelectType = function() {
                    this._holyEquipData = c.DataCenter.Instance.GetDataById(p.HolyEquipment_Model, this._holyEquipSid), this._holyEquipConfig = c.ConfigDataComponent.Instance.GetConfigById(u.HolyEquipment_Config, this._holyEquipData.ItemId), this._selectType = this._holyEquipConfig.Type
                }, t.prototype.ConfigBlessingEffectData = function() {
                    this._effectMap.clear();
                    for (var e = c.ConfigDataComponent.Instance.GetArrayConfig(u.HolyEquipBlessingType_Config), t = 0; t < e.length; t++) {
                        var n = e[t],
                            o = this._effectMap.get(n.Type);
                        o || (o = [], this._effectMap.set(n.Type, o)), o.push(n.Id)
                    }
                    this._allTypeLength = this._effectMap.get(0).length
                }, t.prototype.InitCustomLayout = function() {
                    this._isCustomLayoutInit || (this._isCustomLayoutInit = !0, this.CustomLayout.Init(this._effectItemPrefab))
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.name);
                    this._currentType != t && (this._currentType = t, this.CustomLayout.RenderLayOut(this._effectMap.get(t).length + this._allTypeLength))
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o, r = e.getComponent(y.default);
                        o = t < n._allTypeLength ? n._effectMap.get(0)[t] : n._effectMap.get(n._currentType)[t - n._allTypeLength], r.Init(o, n._blessingLevel)
                    })
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(d.default)], t.prototype, "CustomLayout", void 0), i([I(h.default)], t.prototype, "Toggles", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./HolyEquipBlessingEffectItem": "HolyEquipBlessingEffectItem"
    }],
    HolyEquipmentBlessingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "48499teBAdPQ676VtdbY0H5", "HolyEquipmentBlessingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("./HolyEquipTitleAndItem"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../../Consts/Consts"),
            _ = e("./HolyEquipmentStrengthenPanel"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleNode = null, t.BlessingButton1 = null, t.BlessingButton1Label = null, t.ActiveButton1 = null, t.ActiveButton1Label = null, t.UnBlessingButton1 = null, t.UnBlessingButton1Label = null, t.AttrNode1 = null, t.AttrName1 = null, t.AttrIcon1 = null, t.AttrValue1 = null, t.UnAttrLabel1 = null, t.BlessName1 = null, t.BlessIcon1 = null, t.BlessLockNode1 = null, t.BlessingButton2 = null, t.BlessingButton2Label = null, t.ActiveButton2 = null, t.ActiveButton2Label = null, t.UnBlessingButton2 = null, t.UnBlessingButton2Label = null, t.AttrNode2 = null, t.AttrName2 = null, t.AttrIcon2 = null, t.AttrValue2 = null, t.UnAttrLabel2 = null, t.BlessName2 = null, t.BlessIcon2 = null, t.BlessLockNode2 = null, t.DisplaceBtn = null, t.DisplaceBtnLockBg = null, t.DisplaceBtnLabel = null, t.SelectTitle = null, t._isInit = !1, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._holyEquipSid = e, this._itemPrefab = t, this._isInit || (this._isInit = !0, this.InitUI()), this.ConfitHolyEquipItem(), [4, this.ConfigBlessingItem()];
                                case 1:
                                    return n.sent(), this.BindRedDot(), this.RefreshDisplayBtn(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.BlessingButton1Label.string = "holy_equip_goto_blessing".ToUILocale(), this.BlessingButton2Label.string = "holy_equip_goto_blessing".ToUILocale(), this.UnBlessingButton1Label.string = "holy_equip_goto_blessing".ToUILocale(), this.UnBlessingButton2Label.string = "holy_equip_goto_blessing".ToUILocale(), this.ActiveButton1Label.string = "click_to_unlock".ToUILocale(), this.ActiveButton2Label.string = "click_to_unlock".ToUILocale(), this.UnAttrLabel1.string = "starGarrison_no_attr_up".ToUILocale(), this.UnAttrLabel2.string = "starGarrison_no_attr_up".ToUILocale(), this.DisplaceBtnLabel.string = "holy_equip_displace_title".ToUILocale(), this.SelectTitle.string = "holy_equip_blessing_selet_title".ToUILocale(), this.BlessingButton1.node.on("click", this.OnClickBlessing1, this), this.BlessingButton2.node.on("click", this.OnClickBlessing2, this), this.ActiveButton1.node.on("click", this.OnAvtiveBlessing1, this), this.ActiveButton2.node.on("click", this.OnAvtiveBlessing2, this), this.DisplaceBtn.node.on("click", this.OnDisplaceClick, this), this.DisplaceBtn.node.active = _.default.CheckIsShowDisplaceBtn()
                }, t.prototype.ConfitHolyEquipItem = function() {
                    this._holyEquipData = p.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, this._holyEquipSid);
                    var e = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, 100 * I.HolyEquipmentState.Star + this._holyEquipData.Star);
                    this.TitleNode.getComponent(f.default).Init(this._holyEquipData, e.MaxLevel, this._itemPrefab)
                }, t.prototype.ConfigBlessingItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function() {
                            return e = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipBlessingUnlock1"), t = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipBlessingUnlock2"), n = this._holyEquipData.Blessing1.BlessingId, o = this._holyEquipData.Blessing2.BlessingId, this.BlessingButton1.node.active = !1, this.ActiveButton1.node.active = !1, this.UnBlessingButton1.node.active = !1, this.BlessLockNode1.active = !1, this.AttrNode1.active = !1, this.UnAttrLabel1.node.active = !1, this._holyEquipData.Star >= e ? n > 0 ? (this.BlessingButton1.node.active = !0, this.AttrNode1.active = !0, this.ConfigBlessingItem1()) : (this.BlessName2.string = "holy_equip_blessing_unlock_hint".ToUILocale().Fmt(t), this.ActiveButton1.node.active = !0, this.UnAttrLabel1.node.active = !0, this.BlessLockNode1.active = !0) : (this.BlessName2.string = "holy_equip_blessing_unlock_hint".ToUILocale().Fmt(t), this.UnBlessingButton1.node.active = !0, this.UnAttrLabel1.node.active = !0, this.BlessLockNode1.active = !0), this.BlessingButton2.node.active = !1, this.ActiveButton2.node.active = !1, this.UnBlessingButton2.node.active = !1, this.BlessLockNode2.active = !1, this.AttrNode2.active = !1, this.UnAttrLabel2.node.active = !1, this._holyEquipData.Star >= t ? o > 0 ? (this.BlessingButton2.node.active = !0, this.AttrNode2.active = !0, this.ConfigBlessingItem2()) : (this.BlessName2.string = "holy_equip_blessing_unlock_hint".ToUILocale().Fmt(t), this.ActiveButton2.node.active = !0, this.UnAttrLabel2.node.active = !0, this.BlessLockNode2.active = !0) : (this.BlessName2.string = "holy_equip_blessing_unlock_hint".ToUILocale().Fmt(t), this.UnBlessingButton2.node.active = !0, this.UnAttrLabel2.node.active = !0, this.BlessLockNode2.active = !0), [2]
                        })
                    })
                }, t.prototype.ConfigBlessingItem1 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = this._holyEquipData.Blessing1.BlessingId, t = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipBlessing_Config, e), this.BlessName1.string = "Lv." + t.Level + " " + t.TypeId.ToHolyHolyEquipBlessingName(), n = m.default.GetHeroAttribute(t.Attrs[0], t.Attrs[1], !0), this.AttrName1.string = n.Name, this.AttrIcon1.spriteFrame = n.Icon, this.AttrValue1.string = "+" + n.Value, [4, h.AssetsManager.Instance.LoadAsset("HolyEquipBlessingIcon/" + t.TypeId, cc.SpriteFrame)];
                                case 1:
                                    return o = r.sent(), this.isValid ? (this._loadedAssets.push(o), this.BlessIcon1.spriteFrame = o, [2]) : (h.AssetsManager.Instance.UnloadAsset(o), [2])
                            }
                        })
                    })
                }, t.prototype.ConfigBlessingItem2 = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e = this._holyEquipData.Blessing2.BlessingId, t = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipBlessing_Config, e), this.BlessName2.string = "Lv." + t.Level + " " + t.TypeId.ToHolyHolyEquipBlessingName(), n = m.default.GetHeroAttribute(t.Attrs[0], t.Attrs[1], !0), this.AttrName2.string = n.Name, this.AttrIcon2.spriteFrame = n.Icon, this.AttrValue2.string = "+" + n.Value, [4, h.AssetsManager.Instance.LoadAsset("HolyEquipBlessingIcon/" + t.TypeId, cc.SpriteFrame)];
                                case 1:
                                    return o = r.sent(), this.isValid ? (this._loadedAssets.push(o), this.BlessIcon2.spriteFrame = o, [2]) : (h.AssetsManager.Instance.UnloadAsset(o), [2])
                            }
                        })
                    })
                }, t.prototype.OnClickBlessing1 = function() {
                    h.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyEquipBlessingUpLevelPanel.Path, this._holyEquipSid, 1)
                }, t.prototype.OnClickBlessing2 = function() {
                    h.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyEquipBlessingUpLevelPanel.Path, this._holyEquipSid, 2)
                }, t.prototype.OnAvtiveBlessing1 = function() {
                    this.DoActiveRequestJob(1)
                }, t.prototype.OnAvtiveBlessing2 = function() {
                    this.DoActiveRequestJob(2)
                }, t.prototype.DoActiveRequestJob = function(e) {
                    var t = new c.Req_Holy_EquipmentUnlock;
                    t.Sid = this._holyEquipSid, t.Index = e, p.RpcComponent.Instance.Call(t, this.OnActiveSuccess.bind(this))
                }, t.prototype.OnActiveSuccess = function() {
                    this.ConfitHolyEquipItem(), this.ConfigBlessingItem(), this.BindRedDot(), this.RefreshDisplayBtn()
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, t.prototype.BindRedDot = function() {
                    1 == this.ActiveButton1.node.active && g.RedDotManager.Instance.BindInstance(this.ActiveButton1.node, g.RedDotManager.Instance.InstanceRedDot.HolyEquipBlessing1Unlock, {
                        Result: !0
                    }), 1 == this.ActiveButton2.node.active && g.RedDotManager.Instance.BindInstance(this.ActiveButton2.node, g.RedDotManager.Instance.InstanceRedDot.HolyEquipBlessing2Unlock, {
                        Result: !0
                    }), 1 == this.BlessingButton1.node.active && g.RedDotManager.Instance.BindInstance(this.BlessingButton1.node, g.RedDotManager.Instance.InstanceRedDot.HolyEquipBlessing1Button, {
                        Value1: this._holyEquipSid
                    }), 1 == this.BlessingButton2.node.active && g.RedDotManager.Instance.BindInstance(this.BlessingButton2.node, g.RedDotManager.Instance.InstanceRedDot.HolyEquipBlessing2Button, {
                        Value1: this._holyEquipSid
                    })
                }, t.prototype.RefreshDisplayBtn = function() {
                    var e = m.default.Instance.IsGameModuleUnlock(I.GameModuleType.HolyEquipmentDisplace);
                    this.DisplaceBtnLockBg.active = !e[0]
                }, t.prototype.OnDisplaceClick = function() {
                    var e = m.default.Instance.IsGameModuleUnlock(I.GameModuleType.HolyEquipmentDisplace);
                    e[0] ? h.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyEquipmentDisplacePanel.Path, this._holyEquipSid) : y.UIUtlity.ShowFloatingHint(e[1])
                }, i([b(cc.Node)], t.prototype, "TitleNode", void 0), i([b(cc.Button)], t.prototype, "BlessingButton1", void 0), i([b(cc.Label)], t.prototype, "BlessingButton1Label", void 0), i([b(cc.Button)], t.prototype, "ActiveButton1", void 0), i([b(cc.Label)], t.prototype, "ActiveButton1Label", void 0), i([b(cc.Button)], t.prototype, "UnBlessingButton1", void 0), i([b(cc.Label)], t.prototype, "UnBlessingButton1Label", void 0), i([b(cc.Node)], t.prototype, "AttrNode1", void 0), i([b(cc.Label)], t.prototype, "AttrName1", void 0), i([b(cc.Sprite)], t.prototype, "AttrIcon1", void 0), i([b(cc.Label)], t.prototype, "AttrValue1", void 0), i([b(cc.Label)], t.prototype, "UnAttrLabel1", void 0), i([b(cc.Label)], t.prototype, "BlessName1", void 0), i([b(cc.Sprite)], t.prototype, "BlessIcon1", void 0), i([b(cc.Node)], t.prototype, "BlessLockNode1", void 0), i([b(cc.Button)], t.prototype, "BlessingButton2", void 0), i([b(cc.Label)], t.prototype, "BlessingButton2Label", void 0), i([b(cc.Button)], t.prototype, "ActiveButton2", void 0), i([b(cc.Label)], t.prototype, "ActiveButton2Label", void 0), i([b(cc.Button)], t.prototype, "UnBlessingButton2", void 0), i([b(cc.Label)], t.prototype, "UnBlessingButton2Label", void 0), i([b(cc.Node)], t.prototype, "AttrNode2", void 0), i([b(cc.Label)], t.prototype, "AttrName2", void 0), i([b(cc.Sprite)], t.prototype, "AttrIcon2", void 0), i([b(cc.Label)], t.prototype, "AttrValue2", void 0), i([b(cc.Label)], t.prototype, "UnAttrLabel2", void 0), i([b(cc.Label)], t.prototype, "BlessName2", void 0), i([b(cc.Sprite)], t.prototype, "BlessIcon2", void 0), i([b(cc.Node)], t.prototype, "BlessLockNode2", void 0), i([b(cc.Button)], t.prototype, "DisplaceBtn", void 0), i([b(cc.Node)], t.prototype, "DisplaceBtnLockBg", void 0), i([b(cc.Label)], t.prototype, "DisplaceBtnLabel", void 0), i([b(cc.Label)], t.prototype, "SelectTitle", void 0), i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HolyEquipTitleAndItem": "HolyEquipTitleAndItem",
        "./HolyEquipmentStrengthenPanel": "HolyEquipmentStrengthenPanel"
    }],
    HolyEquipmentDevelopPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "86ddfMbXnRPn4t/wGkHWXYx", "HolyEquipmentDevelopPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomToggle"),
            h = e("./HolyEquipmentStrengthenPanel"),
            f = e("./HolyEquipmentBlessingPanel"),
            y = e("./HolyEquipmentSoulPanel"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("./HolyEquipmentAdvancedPanel"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../../../Proto/Static/ConfigProto"),
            b = e("../../Components/Components"),
            S = e("../../../../Proto/Static/RpcProto"),
            w = e("../Auxiliary/UIUtlity"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.Strengthen = 0] = "Strengthen", e[e.Blessing = 1] = "Blessing", e[e.Soul = 2] = "Soul", e[e.Advanced = 3] = "Advanced", e[e.None = 99] = "None"
        })(l || (l = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Tittle = null, t.RuleButton = null, t.Toggles = [], t.ReturnBtn = null, t.PanelNodes = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(m.EventKeys.EVENT_HOLYEQUIP_REFRESH_TOGGLES, this.OnRefreshToggles, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(m.EventKeys.EVENT_HOLYEQUIP_REFRESH_TOGGLES, this.OnRefreshToggles, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), n = this.LoadDynamicAsset("HolyEquipmentPanel/HolyEquipmentStrengthenPanel"), o = this.LoadDynamicAsset("HolyEquipmentPanel/HolyEquipmentBlessingPanel"), r = this.LoadDynamicAsset("HolyEquipmentPanel/HolyEquipmentSoulPanel"), i = this.LoadDynamicAsset("HolyEquipmentPanel/HolyEquipmentAdvancedPanel"), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                    a._itemPrefab = e[0], a._strengthenPanelPrefab = e[1], a._blessingPanelPrefab = e[2], a._soulPanelPrefab = e[3], a._advancedPanelPrefab = e[4]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnBtn.node.on("click", this.OnClickReturn, this);
                for (var t = 0; t < this.Toggles.length; t++) {
                    var n = this.Toggles[t];
                    n.node.on("toggle", this.OnSwitchTab, this), n.Init(("holy_equip_developToggle_" + t).ToUILocale())
                }
                this._advancedUnlockState = _.default.Instance.IsGameModuleUnlock(C.GameModuleType.UpStepHolyEquipShow)[0], this.Toggles[l.Advanced].node.active = this._advancedUnlockState
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._holyEquipSid = t[0], t.length > 1 ? this._defaultPanelMode = t[1] : this._defaultPanelMode = l.Strengthen
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this)
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.SetAdvancedToggle(), this._currentPanelMode = l.None;
                var t = this.Toggles[this._defaultPanelMode];
                t.isChecked = !0, this.OnSwitchTab(t), this.BindRedDot()
            }, t.prototype.SetAdvancedToggle = function() {
                if (this._advancedUnlockState) {
                    var e = b.DataCenter.Instance.GetDataById(S.HolyEquipment_Model, this._holyEquipSid);
                    if (!this._advancedShowConditionValue) {
                        var t = b.ConfigDataComponent.Instance.GetConfigById(v.GlobalSetting_Config, "UnlockUpStepHolyEquip");
                        this._advancedShowConditionValue = t.Value
                    }
                    e.Star < this._advancedShowConditionValue ? this.Toggles[l.Advanced].SetInteractable(!1, "holy_equip_advanced_unlock_tip".ToUILocale().Fmt(this._advancedShowConditionValue)) : this.Toggles[l.Advanced].SetInteractable(!0)
                }
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                if (this._defaultPanelMode = t, this._currentPanelMode != t) {
                    for (var n = 0; n < this.PanelNodes.length; n++) this.PanelNodes[n].active = n == t;
                    switch (this._currentPanelMode = t, this.Tittle.string = ("holy_equip_developTittle_" + t).ToUILocale(), t) {
                        case l.Strengthen:
                            this.ConfigStengthenMode();
                            break;
                        case l.Blessing:
                            this.ConfigBlessingMode();
                            break;
                        case l.Soul:
                            this.ConfigSoulMode();
                            break;
                        case l.Advanced:
                            this.ConfigAdvancedMode()
                    }
                }
            }, t.prototype.ConfigStengthenMode = function() {
                if (!this._strengthenPanel) {
                    var e = cc.instantiate(this._strengthenPanelPrefab);
                    e.setParent(this.PanelNodes[l.Strengthen]), this._strengthenPanel = e.getComponent(h.default), e.height = this.PanelNodes[l.Strengthen].height
                }
                this._strengthenPanel.Init(this._holyEquipSid, this._itemPrefab)
            }, t.prototype.ConfigBlessingMode = function() {
                if (!this._blessingPanel) {
                    var e = cc.instantiate(this._blessingPanelPrefab);
                    e.setParent(this.PanelNodes[l.Blessing]), this._blessingPanel = e.getComponent(f.default), e.height = this.PanelNodes[l.Blessing].height
                }
                this._blessingPanel.Init(this._holyEquipSid, this._itemPrefab)
            }, t.prototype.ConfigSoulMode = function() {
                if (!this._soulPanel) {
                    var e = cc.instantiate(this._soulPanelPrefab);
                    e.setParent(this.PanelNodes[l.Soul]), this._soulPanel = e.getComponent(y.default), e.height = this.PanelNodes[l.Soul].height
                }
                this._soulPanel.Init(this._holyEquipSid, this._itemPrefab)
            }, t.prototype.ConfigAdvancedMode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._advancedPanel ? [3, 2] : ((e = cc.instantiate(this._advancedPanelPrefab)).setParent(this.PanelNodes[l.Advanced]), this._advancedPanel = e.getComponent(I.default), t = this, [4, this.LoadDynamicAsset("ItemsComponent/AttrComponent2", cc.Prefab)]);
                            case 1:
                                if (t._attrPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._attrPrefab), [2];
                                n.label = 2;
                            case 2:
                                return this._advancedPanel.Init(this._holyEquipSid, this._itemPrefab, this._attrPrefab), [2]
                        }
                    })
                })
            }, t.prototype.OnRuleButtonClick = function() {
                var e = "",
                    t = [""],
                    n = [""];
                switch (this._currentPanelMode) {
                    case l.Strengthen:
                        e = "holy_equip_developTittle_0".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["holy_equip_rule_strength_info".ToUILocale()];
                        break;
                    case l.Blessing:
                        e = "holy_equip_developTittle_1".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["holy_equip_rule_blessing_info".ToUILocale()];
                        break;
                    case l.Soul:
                        e = "holy_equip_developTittle_2".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["holy_equip_rule_soul_info".ToUILocale()];
                        break;
                    case l.Advanced:
                        e = "holy_equip_developTittle_3".ToUILocale(), t = ["holy_equip_advanced_rule_title".ToUILocale()], n = ["holy_equip_advanced_rule_content".ToUILocale()]
                }
                w.UIUtlity.ShowRulePanel({
                    name: e,
                    titles: t,
                    contents: n
                })
            }, t.prototype.OnClickReturn = function() {
                p.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRefreshToggles = function() {
                this.BindRedDot()
            }, t.prototype.BindRedDot = function() {
                g.RedDotManager.Instance.BindInstance(this.Toggles[l.Strengthen].node, g.RedDotManager.Instance.InstanceRedDot.HolyEquipStrengthToggle, {
                    Value1: this._holyEquipSid
                }), g.RedDotManager.Instance.BindInstance(this.Toggles[l.Blessing].node, g.RedDotManager.Instance.InstanceRedDot.HolyEquipBlessingToggle, {
                    Value1: this._holyEquipSid
                }), g.RedDotManager.Instance.BindInstance(this.Toggles[l.Soul].node, g.RedDotManager.Instance.InstanceRedDot.HolyEquipSoulToggle, {
                    Value1: this._holyEquipSid
                }), g.RedDotManager.Instance.BindInstance(this.Toggles[l.Advanced].node, g.RedDotManager.Instance.InstanceRedDot.HolyEquipAdvancedToggle, {
                    Value1: this._holyEquipSid
                })
            }, i([T(cc.Label)], t.prototype, "Tittle", void 0), i([T(cc.Button)], t.prototype, "RuleButton", void 0), i([T(d.default)], t.prototype, "Toggles", void 0), i([T(cc.Button)], t.prototype, "ReturnBtn", void 0), i([T(cc.Node)], t.prototype, "PanelNodes", void 0), i([A], t)
        }(c.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "./HolyEquipmentAdvancedPanel": "HolyEquipmentAdvancedPanel",
        "./HolyEquipmentBlessingPanel": "HolyEquipmentBlessingPanel",
        "./HolyEquipmentSoulPanel": "HolyEquipmentSoulPanel",
        "./HolyEquipmentStrengthenPanel": "HolyEquipmentStrengthenPanel"
    }],
    HolyEquipmentDisplaceEquipItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fdab7QtedRF0paJ4QrwakIX", "HolyEquipmentDisplaceEquipItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/EventKeys"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.ItemName = null, t.ItemScore = null, t.HeroItemName = null, t.HeroItemNameBg = null, t.HeroItemContainer = null, t.DisplaceBtn = null, t.DisplaceBtnLabel = null, t._isInitial = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(a.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(a.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.InitUI = function() {
                    this.DisplaceBtnLabel.string = "holy_equip_displace_btn2".ToUILocale(), this.DisplaceBtn.node.on("click", this.OnDisplace, this)
                }, t.prototype.Init = function(e, t) {
                    this._isInitial || (this._isInitial = !0, this.InitUI()), this._holyData = e, this._itemPrefab = t, this.ConfigEquipItem(), this.ConfigHeroItem()
                }, t.prototype.ConfigEquipItem = function() {
                    if (!this._equipComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._equipComponent = e.getComponent(p.ItemComponent)
                    }
                    this._equipComponent.Init({
                        ItemId: this._holyData.ItemId,
                        StarLevel: this._holyData.Star
                    }, p.ItemComponentType.ItemWithStar), this.ItemName.string = this._holyData.ItemId.ToItemName(), this.ItemScore.string = "equip_score_tag".ToUILocale() + ": " + d.default.Instance.GetHolyEquipScore(this._holyData.Sid).toString()
                }, t.prototype.ConfigHeroItem = function() {
                    if (!this._heroComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.HeroItemContainer), this._heroComponent = e.getComponent(p.ItemComponent)
                    }
                    this._holyData.OwnerId > 0 ? (this._heroComponent.node.active = !0, this._owner = u.DataCenter.Instance.GetDataById(h.UserHero_Model, this._holyData.OwnerId), this._heroComponent.Init(this._owner, p.ItemComponentType.HeroInfo), this.HeroItemNameBg.active = !0, this.HeroItemName.string = "holyEquip_worn_by".ToUILocale()) : (this._heroComponent.node.active = !1, this._owner = void 0, this.HeroItemNameBg.active = !1)
                }, t.prototype.OnClickItem = function(e, t) {
                    t == this._equipComponent.node && this._equipComponent.ShowItemTip()
                }, t.prototype.OnDisplace = function() {
                    l.Game.EventDispatcher.Emit(a.EventKeys.EVENT_HOLYEQUIP_DISPLAY_SELECT, this._holyData.Sid), c.UIManager.Instance.ShowUIPanel(s.PanelConfig.HolyEquipmentDisplacePanel.Path, this._holyData.Sid)
                }, i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Label)], t.prototype, "ItemName", void 0), i([g(cc.Label)], t.prototype, "ItemScore", void 0), i([g(cc.Label)], t.prototype, "HeroItemName", void 0), i([g(cc.Node)], t.prototype, "HeroItemNameBg", void 0), i([g(cc.Node)], t.prototype, "HeroItemContainer", void 0), i([g(cc.Button)], t.prototype, "DisplaceBtn", void 0), i([g(cc.Label)], t.prototype, "DisplaceBtnLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyEquipmentDisplaceListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "76493Ou2KlEhqtPmj4hTg3W", "HolyEquipmentDisplaceListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../Consts/Consts"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Components/Components"),
            h = e("../Components/CustomLayout"),
            f = e("../Components/CustomToggle"),
            y = e("./HolyEquipmentDisplaceEquipItem"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("../../../../Proto/Static/ConfigProto"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Title = null, t.CustomLayout = null, t.Toggles = [], t.NoneLable = null, t._currentType = 1, t._typeObj = {}, t._currentSid = 0, t._isCustomLayoutInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), p.Game.EventDispatcher.On(c.EventKeys.EVENT_HOLYEQUIP_DISPLAY_SELECT, this.OnSelect, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), p.Game.EventDispatcher.Off(c.EventKeys.EVENT_HOLYEQUIP_DISPLAY_SELECT, this.OnSelect, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), n = this.LoadDynamicAsset("HolyEquipmentPanel/HolyEquipmentDisplaceEquipItem"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._changeItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "holy_equip_displace_select2".ToUILocale(), this.NoneLable.string = "holy_equip_displace_none".ToUILocale();
                    for (var t = 0; t < this.Toggles.length; t++) {
                        var n = this.Toggles[t];
                        n.node.on("toggle", this.OnSwitchTab, this), n.Init(("equip_type_" + (t + 1)).ToUILocale())
                    }
                    this._isCustomLayoutInit || (this._isCustomLayoutInit = !0, this.CustomLayout.Init(this._changeItemPrefab))
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this);
                    for (var t = l.HeroEquipmentType.Weapon; t <= l.HeroEquipmentType.Shoes; t++) this._typeObj[t] = [];
                    var n = d.DataCenter.Instance.GetDataList(m.HolyEquipment_Model);
                    for (t = 0; t < n.length; t++) {
                        var o = n[t],
                            r = d.ConfigDataComponent.Instance.GetConfigById(I.HolyEquipment_Config, o.ItemId);
                        this._typeObj[r.Type].push(o)
                    }
                    if (this.SortHolies(), this._currentSid > 0)
                        for (t = 0; t < this._typeObj[this._currentType].length && (o = this._typeObj[this._currentType][t]).Sid != this._currentSid; t++);
                    this.RenderLayOut()
                }, t.prototype.OnSelect = function(e) {
                    this._currentSid = e
                }, t.prototype.RenderLayOut = function() {
                    this.CustomLayout.RenderLayOut(this._typeObj[this._currentType].length), this.NoneLable.node.active = 0 == this._typeObj[this._currentType].length
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.name);
                    this._currentType != t && (this._currentType = t, this.SortHolies(), this._currentSid = 0, this.RenderLayOut())
                }, t.prototype.SortHolies = function() {
                    g.default.Instance.SortData(l.SortDataType.HolyEquip, this._typeObj[this._currentType], [{
                        Items: [l.SortType.InPutOn, 1]
                    }, {
                        Items: [l.SortType.Star, -1]
                    }, {
                        Items: [l.SortType.ItemId, 1]
                    }])
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        e.getComponent(y.default).Init(n._typeObj[n._currentType][t], n._itemPrefab)
                    })
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(h.default)], t.prototype, "CustomLayout", void 0), i([v(f.default)], t.prototype, "Toggles", void 0), i([v(cc.Label)], t.prototype, "NoneLable", void 0), i([C], t)
            }(p.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./HolyEquipmentDisplaceEquipItem": "HolyEquipmentDisplaceEquipItem"
    }],
    HolyEquipmentDisplacePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8bd4eecF39CY7ahKCk4G4Xw", "HolyEquipmentDisplacePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../Consts/Consts"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Components/Components"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/CurrencyBarItem"),
            m = e("../Components/CustomLayout"),
            I = e("../../../../Proto/Static/RpcProto"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../../Auxiliary/GameRecord"),
            v = e("../../../Util/TimeUtil"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Title = null, t.HolyRemind = null, t.OldItemContainer = null, t.OldName = null, t.NewItemContainer = null, t.NewName = null, t.HolyTitle = null, t.HolyDesc = null, t.HolyLayout = null, t.CurrencyItem = null, t.DisplaceBtn = null, t.BtnLabel = null, t._materialItemId = 0, t._materialCount = 0, t._newItemIds = [], t._isHolyLayoutInit = !1, t._newItemId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), p.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), p.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), [4, Promise.all([t]).then(function(e) {
                                        n._itemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "holy_equip_displace_title".ToUILocale(), this.HolyRemind.string = "holy_equip_displace_remind".ToUILocale(), this.HolyTitle.string = "holy_equip_displace_holy_title".ToUILocale(), this.HolyDesc.string = "holy_equip_displace_desc".ToUILocale(), this.BtnLabel.string = "holy_equip_displace_btn".ToUILocale(), this.DisplaceBtn.node.on("click", this.OnDisplace, this), this._isHolyLayoutInit || (this._isHolyLayoutInit = !0, this.HolyLayout.Init(this._itemPrefab))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._holySid = t[0], this._holyData = f.DataCenter.Instance.GetDataById(I.HolyEquipment_Model, this._holySid), this._holyConfig = f.ConfigDataComponent.Instance.GetConfigById(_.HolyEquipment_Config, this._holyData.ItemId);
                    var n = 100 * l.HolyEquipmentState.Star + this._holyData.Star;
                    this._holyStarConfig = f.ConfigDataComponent.Instance.GetConfigById(_.HolyEquipmentStar_Config, n), this.OldName.string = this._holyData.ItemId.ToItemName();
                    var o = f.ConfigDataComponent.Instance.GetConfig(_.HolyEquipment_Config);
                    for (var r in o) {
                        var i = o[r];
                        i.CanDisplace && i.Type == this._holyConfig.Type && i.Id != this._holyConfig.Id && i.State == this._holyConfig.State && this._newItemIds.push(i.Id)
                    }
                    this._holyStarConfig.DisplaceMaterials[0] && (this._materialItemId = this._holyStarConfig.DisplaceMaterials[0].Items[0], this._materialCount = this._holyStarConfig.DisplaceMaterials[0].Items[1])
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._holyData = f.DataCenter.Instance.GetDataById(I.HolyEquipment_Model, this._holySid), this.RefreshNewItem(), this.CurrencyItem.Init(this._materialItemId, !1, void 0, this._materialCount), this.HolyLayout.RenderLayOut(this._newItemIds.length)
                }, t.prototype.RefreshNewItem = function() {
                    var e;
                    this._oldComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.OldItemContainer), this._oldComponent = e.getComponent(y.ItemComponent), this._oldComponent.Init({
                        ItemId: this._holyData.ItemId,
                        StarLevel: this._holyData.Star
                    }, y.ItemComponentType.ItemWithStar)), this._newComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.NewItemContainer), this._newComponent = e.getComponent(y.ItemComponent), this._newComponent.SetItemSimpleState(), this._newComponent.SetCenterTagSprite(!0, h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("question_mark1"))), this._newItemId && (this._newComponent.Init({
                        ItemId: this._newItemId,
                        StarLevel: this._holyData.Star
                    }, y.ItemComponentType.ItemWithStar), this.NewName.string = this._newItemId.ToItemName())
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.HolyLayout == t && e.forEach(function(e, t) {
                        var o = e.getComponent(y.ItemComponent);
                        o.node.name = t.toString(), o.Init({
                            ItemId: n._newItemIds[t],
                            StarLevel: n._holyData.Star
                        }, y.ItemComponentType.ItemWithStar), n._newItemIds[t] == n._newItemId && o.SetSelectFlagState(!0)
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    -1 != this.HolyLayout.node.children.indexOf(t) && (this._newItemId != this._newItemIds[e] ? (null != this._selectComponent && this._selectComponent.SetSelectFlagState(!1), this._selectComponent = t.getComponent(y.ItemComponent), this._selectComponent.SetSelectFlagState(!0), this._newItemId = this._newItemIds[e], this.RefreshNewItem()) : this._selectComponent.ShowItemTip())
                }, t.prototype.OnDisplace = function() {
                    if (this._newItemId)
                        if (this._materialItemId > 0 && !f.DataCenter.Instance.IsItemEnough(this._materialItemId, this._materialCount)) {
                            var e = this._materialItemId.ToItemName();
                            h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e))
                        } else {
                            var t = "holy_equip_displace_hint".ToUILocale().Fmt(this._materialItemId.ToItemName(), this._materialCount),
                                n = C.default.GetItem(C.GameRecordDefine.HolyEquipDisplaceCheck);
                            n && v.TimeUtil.Get0ClockTs(f.RpcComponent.Instance.ServerTime) == v.TimeUtil.Get0ClockTs(parseInt(n)) ? this.Request() : h.UIUtlity.ShowHintPanel("", t, "", null, "", this.Request.bind(this), "", C.GameRecordDefine.HolyEquipDisplaceCheck, !0)
                        }
                    else h.UIUtlity.ShowFloatingHint("holy_equip_displace_select".ToUILocale())
                }, t.prototype.Request = function() {
                    var e = new I.Req_Holy_EquipmentDisplace;
                    e.Sid = this._holySid, e.HolyId = this._newItemId, f.RpcComponent.Instance.Call(e, function() {
                        h.UIUtlity.ShowFloatingHint("holy_equip_displace_success".ToUILocale()), d.UIManager.Instance.BackUIPanel()
                    })
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Label)], t.prototype, "HolyRemind", void 0), i([w(cc.Node)], t.prototype, "OldItemContainer", void 0), i([w(cc.Label)], t.prototype, "OldName", void 0), i([w(cc.Node)], t.prototype, "NewItemContainer", void 0), i([w(cc.Label)], t.prototype, "NewName", void 0), i([w(cc.Label)], t.prototype, "HolyTitle", void 0), i([w(cc.Label)], t.prototype, "HolyDesc", void 0), i([w(m.default)], t.prototype, "HolyLayout", void 0), i([w(g.default)], t.prototype, "CurrencyItem", void 0), i([w(cc.Button)], t.prototype, "DisplaceBtn", void 0), i([w(cc.Label)], t.prototype, "BtnLabel", void 0), i([S], t)
            }(p.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyEquipmentGalleryAddtionPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0bf66WtHE5NU6if07DQ6eRc", "HolyEquipmentGalleryAddtionPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../Components/HolyEquipmentAddtionPreviewListItem"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Components/Components"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.AddtionContainer = null, t.Tip = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HolyFurnace/Component/HolyEquipmentAddtionPreviewListItem", cc.Prefab), n = this.LoadDynamicAsset("HolyFurnace/Component/SimpleAttrComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._addtionItemPrefab = e[0], o._attrPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "HolyEquipmentGallery_Preview".ToUILocale(), this.Tip.string = "HolyEquipmentGallery_Preview_Tip".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._equipmentModel = t[0]
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t && (this.SetListItem(6, !0), p.default.Instance.IsGameModuleUnlock(d.GameModuleType.UpStepHolyEquipShow)[0])) {
                        for (var n = 0, o = 1; o <= 5 && h.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipmentStar_Config, 100 * d.HolyEquipmentState.Step + o); o++) n++;
                        this.SetListItem(n, !1)
                    }
                }, t.prototype.SetListItem = function(e, t) {
                    for (var n = 0; n < e; n++) {
                        var o = cc.instantiate(this._addtionItemPrefab);
                        o.setParent(this.AddtionContainer), o.getComponent(u.default).Init(this._equipmentModel, t, n, this._attrPrefab)
                    }
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.Node)], t.prototype, "AddtionContainer", void 0), i([g(cc.Label)], t.prototype, "Tip", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/HolyEquipmentAddtionPreviewListItem": "HolyEquipmentAddtionPreviewListItem"
    }],
    HolyEquipmentGalleryItemChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dac4btDXLJLH4D5C7+9FFyL", "HolyEquipmentGalleryItemChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/SimpleAttrComponent"),
            m = e("../Components/EquipmentGalleryChangeItem"),
            I = e("../Auxiliary/UIUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Name = null, t.EquipmentItemNode = null, t.AllAddtionTag = null, t.AllAddtionAttrContainer = null, t.SpecialAddtionTag = null, t.SpecialAddtionAttrContainer = null, t.CustomLayout = null, t.NoneEquipHint = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshEquipmentScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshEquipmentScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HolyFurnace/Component/EquipmentGalleryChangeItem", cc.Prefab), n = this.LoadDynamicAsset("HolyFurnace/Component/SimpleAttrComponent", cc.Prefab), o = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._equipChangeItemPrefab = e[0], r._attrPrefab = e[1], r._itemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AllAddtionTag.string = "HolyEquipmentGallery_Addtion_All".ToUILocale(), this.SpecialAddtionTag.string = "HolyEquipmentGallery_Addtion_Special".ToUILocale(), this.NoneEquipHint.string = "equip_empty_hint".ToUILocale(), this.CustomLayout.Init(this._equipChangeItemPrefab)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._currentEquipModel = t[0], this._slotConfig = t[1], this.SetCurrentModelArray()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._currentEquipModel && this.SetAttrContainer(), this.SetEquipmentNode(), this.CustomLayout.RenderLayOut(this._currentTypeModelArray.length), this.NoneEquipHint.node.active = 0 == this._currentTypeModelArray.length
                }, t.prototype.SetCurrentModelArray = function() {
                    var e = this,
                        t = p.DataCenter.Instance.GetDataList(u.HolyEquipment_Model);
                    this._currentTypeModelArray = [], t.forEach(function(t) {
                        var n = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipment_Config, t.ItemId);
                        t.GallerySlot || n.Type != e._slotConfig.Type || e._currentTypeModelArray.push(t)
                    }), this._currentTypeModelArray.sort(this.SortModelArray.bind(this))
                }, t.prototype.SortModelArray = function(e, t) {
                    if (e.Star > t.Star) return -1;
                    if (e.Star < t.Star) return 1;
                    if (e.OwnerId && !t.OwnerId) return -1;
                    if (!e.OwnerId && t.OwnerId) return 1;
                    var n = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipment_Config, e.ItemId),
                        o = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipment_Config, t.ItemId);
                    return n.Type - o.Type
                }, t.prototype.SetAttrContainer = function() {
                    var e = {},
                        t = {},
                        n = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipment_Config, this._currentEquipModel.ItemId),
                        o = 10 + n.Type;
                    if (e = this.GetAttrDataMap(e, o, this._currentEquipModel.Star, !1), t = this.GetAttrDataMap(t, o, this._currentEquipModel.Star, !0), this._currentEquipModel.Step) {
                        var r = 10 * n.State + n.Type;
                        e = this.GetAttrDataMap(e, r, this._currentEquipModel.Step - 1, !1), t = this.GetAttrDataMap(t, r, this._currentEquipModel.Step - 1, !0)
                    }
                    for (var i in e)(a = cc.instantiate(this._attrPrefab)).setParent(this.AllAddtionAttrContainer), a.getComponent(g.default).Init(Number(i), e[i]);
                    for (var i in t) {
                        var a;
                        (a = cc.instantiate(this._attrPrefab)).setParent(this.SpecialAddtionAttrContainer), a.getComponent(g.default).Init(Number(i), t[i])
                    }
                }, t.prototype.GetAttrDataMap = function(e, t, n, o) {
                    for (var r = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipSlotAddon_Config, t), i = o ? r.SelfAttrIds[n] : r.AllAttrIds[n], a = p.ConfigDataComponent.Instance.GetConfigById(c.CommonAttrs_Config, i), s = 0; s < a.Attrs.length; s++) {
                        var l = a.Attrs[s].Items[0],
                            u = a.Attrs[s].Items[1];
                        e[l] ? e[l] += u : e[l] = u
                    }
                    return e
                }, t.prototype.SetEquipmentNode = function() {
                    if (!this._equipmentComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.EquipmentItemNode), this._equipmentComponent = e.getComponent(y.ItemComponent)
                    }
                    this._currentEquipModel ? (this.Name.string = this._currentEquipModel.ItemId.ToItemName(), this._equipmentComponent.Init({
                        ItemId: this._currentEquipModel.ItemId,
                        StarLevel: this._currentEquipModel.Star,
                        Sid: this._currentEquipModel.Sid,
                        URStarLevel: this._currentEquipModel.Step
                    }, y.ItemComponentType.ItemWithStar)) : (this.Name.string = "HolyEquipmentGallery_Equipment_None".ToUILocale(), this._equipmentComponent.SetItemSimpleState(), this._equipmentComponent.SetCustomIcon(I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("equip_" + this._slotConfig.Type), 122, 120))
                }, t.prototype.RefreshEquipmentScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(m.default).Init(!!n._currentEquipModel, n._currentTypeModelArray[t], n._slotConfig.Id, n._itemPrefab, n._attrPrefab)
                    })
                }, i([v(cc.Label)], t.prototype, "Name", void 0), i([v(cc.Node)], t.prototype, "EquipmentItemNode", void 0), i([v(cc.Label)], t.prototype, "AllAddtionTag", void 0), i([v(cc.Node)], t.prototype, "AllAddtionAttrContainer", void 0), i([v(cc.Label)], t.prototype, "SpecialAddtionTag", void 0), i([v(cc.Node)], t.prototype, "SpecialAddtionAttrContainer", void 0), i([v(d.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Label)], t.prototype, "NoneEquipHint", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/EquipmentGalleryChangeItem": "EquipmentGalleryChangeItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SimpleAttrComponent": "SimpleAttrComponent"
    }],
    HolyEquipmentGalleryListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7d352fjOT9ABqLI/ptEAxDZ", "HolyEquipmentGalleryListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/EquipmentGalleryListItem"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/ItemComponent"),
            _ = e("../../Components/Components"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/AttrComponent4"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../Components/CurrencyBarItem"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.EquipmentIcon = null, t.EquipmentCount = null, t.EquipmentCustomLayout = null, t.LevelAddtionTitle = null, t.LevelTag = null, t.CurrentLevel = null, t.ArrowIconNode = null, t.NextLevel = null, t.AttrContainer = null, t.MaterialContainer = null, t.UpLevelButton = null, t.UpLevelButtonLabel = null, t.MaxLevelTip = null, t.ReturnButton = null, t.TotalAttrButton = null, t.TotalAttrButtonLabel = null, t.EQUIPMENT_GALLERY_TYPE_ARRAY = [y.HeroEquipmentType.Weapon, y.HeroEquipmentType.Coat, y.HeroEquipmentType.Glove, y.HeroEquipmentType.Shoes], t._attrComponentArray = [], t._materialComponentArray = [], t._spineAssetMap = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshEquipmentScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshEquipmentScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HolyFurnace/Component/EquipmentGalleryListItem", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/AttrComponent4", cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/CurrencyBarItem", cc.Prefab), r = this.LoadDynamicAsset("HolyFurnace/PNG/holyFurnace", cc.SpriteAtlas), i = this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._equipmentListItemPrefab = e[0], a._attrPrefab = e[1], a._materialPrefab = e[2], a._atlas = e[3], a._itemPrefab = e[4]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LevelAddtionTitle.string = "HolyEquipmentGallery_Level_Attr_Title".ToUILocale(), this.LevelTag.string = "HolyEquipmentGallery_Level".ToUILocale(), this.UpLevelButtonLabel.string = "common_upgrade_level".ToUILocale(), this.TotalAttrButtonLabel.string = "HolyEquipmentGallery_Total_Attr".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this), this.TotalAttrButton.node.on("click", this.OnTotalAttrButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.EquipmentCustomLayout.Init(this._equipmentListItemPrefab)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._type = t[0], this.SetGallerySlotConfigArray(), this._gralleryLevelConfigArray = p.ConfigDataComponent.Instance.GetArrayConfig(c.HolyEquipGalleryLevel_Config)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetArrowButtonState(), this.SetEquipModelArray();
                    var n = p.DataCenter.Instance.GetArrayData(y.UserDataKey.HolyEquipGalleryLevel);
                    this._currentGralleryLevel = n[this._type - 1] ? n[this._type - 1] : 0, this.Title.string = ("equip_type_" + this._type).ToUILocale() + "Lv." + this._currentGralleryLevel, this.EquipmentCount.string = "HolyEquipmentGallery_Equipment_List_Count".ToUILocale().Fmt(this._equipModelCount, this._gallerySlotConfigArray[this._type].length), this.SetCurrentTypeList(), this.SetRedDot()
                }, t.prototype.SetGallerySlotConfigArray = function() {
                    var e = this;
                    this._gallerySlotConfigArray = {}, p.ConfigDataComponent.Instance.GetArrayConfig(c.HolyEquipGallerySlot_Config).forEach(function(t) {
                        e._gallerySlotConfigArray[t.Type] ? e._gallerySlotConfigArray[t.Type].push(t) : e._gallerySlotConfigArray[t.Type] = [t]
                    })
                }, t.prototype.SetArrowButtonState = function() {
                    var e = this.EQUIPMENT_GALLERY_TYPE_ARRAY.indexOf(this._type);
                    this.LeftArrowButton.node.active = 0 != e, this.RightArrowButton.node.active = e != this.EQUIPMENT_GALLERY_TYPE_ARRAY.length - 1
                }, t.prototype.SetEquipModelArray = function() {
                    this._equipmentModelArray = {}, this._equipModelCount = 0;
                    for (var e = _.DataCenter.Instance.GetDataList(u.HolyEquipment_Model), t = 0; t < e.length; t++) {
                        var n = e[t];
                        n.GallerySlot && (this._equipmentModelArray[n.GallerySlot] = n, p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipGallerySlot_Config, n.GallerySlot).Type == this._type && this._equipModelCount++)
                    }
                }, t.prototype.SetRedDot = function() {
                    C.RedDotManager.Instance.BindInstance(this.UpLevelButton.node, C.RedDotManager.Instance.InstanceRedDot.HolyEquipmentGalleryUpButton, {
                        Value1: this._type
                    })
                }, t.prototype.SetCurrentTypeList = function() {
                    this.EquipmentCustomLayout.RenderLayOut(this._gallerySlotConfigArray[this._type].length), this.EquipmentIcon.spriteFrame = this._atlas.getSpriteFrame("equipment_" + this._type), this.ArrowIconNode.active = this._currentGralleryLevel < this._gralleryLevelConfigArray.length, this.NextLevel.node.active = this._currentGralleryLevel < this._gralleryLevelConfigArray.length, this.MaterialContainer.active = this._currentGralleryLevel < this._gralleryLevelConfigArray.length, this.UpLevelButton.node.active = this._currentGralleryLevel < this._gralleryLevelConfigArray.length, this.MaxLevelTip.node.active = this._currentGralleryLevel == this._gralleryLevelConfigArray.length, this._currentGralleryLevel < this._gralleryLevelConfigArray.length ? (this.CurrentLevel.string = "allianceBase_level".ToUILocale().Fmt(this._currentGralleryLevel), this.NextLevel.string = "allianceBase_level".ToUILocale().Fmt(this._currentGralleryLevel + 1), this.SetMaterialContainer()) : (this.CurrentLevel.string = "allianceBase_level".ToUILocale().Fmt(this._currentGralleryLevel), this.MaxLevelTip.string = "common_max_level".ToUILocale()), this.SetAttrContainer()
                }, t.prototype.SetAttrContainer = function() {
                    var e, t, n = this,
                        o = this._currentGralleryLevel > 0 ? this._currentGralleryLevel : 1,
                        r = this._currentGralleryLevel == this._gralleryLevelConfigArray.length ? this._gralleryLevelConfigArray.length : this._currentGralleryLevel + 1,
                        i = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipGalleryLevel_Config, o),
                        a = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipGalleryLevel_Config, r),
                        s = {};
                    switch (this._type) {
                        case y.HeroEquipmentType.Weapon:
                            e = i.Attrs1, t = a.Attrs1;
                            break;
                        case y.HeroEquipmentType.Coat:
                            e = i.Attrs2, t = a.Attrs2;
                            break;
                        case y.HeroEquipmentType.Glove:
                            e = i.Attrs3, t = a.Attrs3;
                            break;
                        case y.HeroEquipmentType.Shoes:
                            e = i.Attrs4, t = a.Attrs4
                    }
                    this._gallerySlotConfigArray[this._type].forEach(function(e) {
                        var t = n._equipmentModelArray[e.Id];
                        if (t) {
                            var o = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipment_Config, t.ItemId),
                                r = 10 + o.Type;
                            if (s = n.GetAttrDataMap(s, r, t.Star), t.Step) {
                                var i = 10 * o.State + o.Type;
                                s = n.GetAttrDataMap(s, i, t.Step - 1)
                            }
                        }
                    });
                    for (var l = 0; l < e.length; l++) {
                        var u = this._attrComponentArray[l];
                        if (!u) {
                            var d = cc.instantiate(this._attrPrefab);
                            d.setParent(this.AttrContainer), u = d.getComponent(v.default), this._attrComponentArray[l] = u
                        }
                        var h = e[l].Items[0],
                            f = this._currentGralleryLevel > 0 ? e[l].Items[1] : 0,
                            g = t[l].Items[1] - f,
                            m = s[h] ? f + s[h] : f,
                            I = b.default.GetHeroAttribute(h, m);
                        g ? u.Init(h, m, {
                            AttrName: I.Name,
                            AddValue: g,
                            NodeWidth: 946,
                            ValueNodeWidth: 548
                        }) : u.Init(h, m, {
                            AttrName: I.Name,
                            NodeWidth: 946,
                            ValueNodeWidth: 548
                        })
                    }
                }, t.prototype.GetAttrDataMap = function(e, t, n) {
                    for (var o = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipSlotAddon_Config, t).AllAttrIds[n], r = p.ConfigDataComponent.Instance.GetConfigById(c.CommonAttrs_Config, o), i = 0; i < r.Attrs.length; i++) {
                        var a = r.Attrs[i].Items[0],
                            s = r.Attrs[i].Items[1];
                        e[a] ? e[a] += s : e[a] = s
                    }
                    return e
                }, t.prototype.SetMaterialContainer = function() {
                    var e, t = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipGalleryLevel_Config, this._currentGralleryLevel + 1);
                    this._currentGralleryLevel > 0 && (e = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipGalleryLevel_Config, this._currentGralleryLevel));
                    var n = {};
                    t.Materials.forEach(function(e) {
                        var t = e.Items[0],
                            o = e.Items[1];
                        n[t] ? n[t] += o : n[t] = o
                    }), e && e.Materials.forEach(function(e) {
                        var t = e.Items[0],
                            o = e.Items[1];
                        n[t] && (n[t] -= o)
                    }), this._notEnoughItemId = null;
                    var o = 0;
                    for (var r in n) {
                        var i = this._materialComponentArray[o];
                        if (!i) {
                            var a = cc.instantiate(this._materialPrefab);
                            a.setParent(this.MaterialContainer), i = a.getComponent(S.default), this._materialComponentArray[o] = i
                        }
                        i.node.active = !0;
                        var s = Number(r),
                            l = n[s];
                        i.Init(s, !1, void 0, l), i.SetFixedWidth(224), _.DataCenter.Instance.IsItemEnough(s, l) || (this._notEnoughItemId = s), o++
                    }
                    if (o + 1 < this._materialComponentArray.length)
                        for (var u = o + 1; u < this._materialComponentArray.length; u++) this._materialComponentArray[u].node.active = !1
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "HolyEquipmentGallery_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["HolyEquipmentGallery_Rule_Content".ToUILocale()]
                    };
                    m.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnLeftArrowButtonClick = function() {
                    var e = this.EQUIPMENT_GALLERY_TYPE_ARRAY.indexOf(this._type);
                    this._type = this.EQUIPMENT_GALLERY_TYPE_ARRAY[e - 1], this.SetArrowButtonState(), this.DisPlay(!0)
                }, t.prototype.OnRightArrowButtonClick = function() {
                    var e = this.EQUIPMENT_GALLERY_TYPE_ARRAY.indexOf(this._type);
                    this._type = this.EQUIPMENT_GALLERY_TYPE_ARRAY[e + 1], this.SetArrowButtonState(), this.DisPlay(!0)
                }, t.prototype.OnTotalAttrButtonClick = function() {
                    var e = this.GetTotalAttrData();
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonTotalAttrPanel.Path, e)
                }, t.prototype.OnUpLevelButtonClick = function() {
                    var e = this;
                    if (this._notEnoughItemId) m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughItemId.ToItemName()));
                    else {
                        var t = _.DataCenter.Instance.GetIntData(y.UserDataKey.Power),
                            n = new u.Req_Team_HolyEquipGalleryUpgradeLevel;
                        n.NewLevel = this._currentGralleryLevel + 1, n.Type = this._type, p.RpcComponent.Instance.Call(n, function() {
                            l.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattlePowerChangePanel.Path, t, _.DataCenter.Instance.GetIntData(y.UserDataKey.Power)), m.UIUtlity.ShowFloatingHint("HolyEquipmentGallery_Up_Success".ToUILocale()), e.DisPlay(!0)
                        })
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.MaterialContainer.children.indexOf(t) && m.UIUtlity.ShowItemTip(t.getComponent(I.ItemComponent).ItemId, t)
                }, t.prototype.RefreshEquipmentScrollView = function(e, t) {
                    var n = this;
                    if (t == this.EquipmentCustomLayout) {
                        var o = this._gallerySlotConfigArray[this._type];
                        e.forEach(function(e, t) {
                            var r = o[t];
                            e.getComponent(f.default).Init(r, n._equipmentModelArray[r.Id], n._currentGralleryLevel, n)
                        })
                    }
                }, t.prototype.GetTotalAttrData = function() {
                    for (var e = this, t = [], n = [0, 0, 0, 0, 0], o = _.DataCenter.Instance.GetDataList(u.HolyEquipment_Model), r = 0; r < o.length; r++) {
                        var i = o[r];
                        i.GallerySlot && (n[p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipment_Config, i.ItemId).Type] += i.Star)
                    }
                    var a = null,
                        s = p.ConfigDataComponent.Instance.GetArrayConfig(c.HolyEquipResonance_Config);
                    for (r = 0; r < s.length; r++) {
                        for (var l = s[r], d = 0, h = 1; h < n.length; h++) l.Requirements <= n[h] && d++;
                        if (d < this.EQUIPMENT_GALLERY_TYPE_ARRAY.length) break;
                        a = l
                    }
                    if (a) {
                        var f = {};
                        f.Title = "HolyEquipmentGallery_Resonance".ToUILocale(), f.IsShowAddAttr = !0;
                        var g = [];
                        for (r = 0; r < a.Attrs.length; r++) {
                            var m = a.Attrs[r].Items,
                                I = {};
                            I.attrId = m[0], I.attrvalue = m[1], g.push(I)
                        }
                        f.AttrArray = g, t.push(f)
                    }
                    var C = {};
                    C.Title = "HolyEquipmentGallery_Level_Addtion".ToUILocale(), C.IsShowAddAttr = !0;
                    var v = [],
                        b = {},
                        S = _.DataCenter.Instance.GetArrayData(y.UserDataKey.HolyEquipGalleryLevel);
                    for (r = 0; r < this.EQUIPMENT_GALLERY_TYPE_ARRAY.length; r++) {
                        var w = S[r] ? S[r] : 1;
                        switch (l = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipGalleryLevel_Config, w), m = void 0, this.EQUIPMENT_GALLERY_TYPE_ARRAY[r]) {
                            case y.HeroEquipmentType.Weapon:
                                m = l.Attrs1;
                                break;
                            case y.HeroEquipmentType.Coat:
                                m = l.Attrs2;
                                break;
                            case y.HeroEquipmentType.Glove:
                                m = l.Attrs3;
                                break;
                            case y.HeroEquipmentType.Shoes:
                                m = l.Attrs4
                        }
                        for (h = 0; h < m.length; h++) {
                            var P = m[h].Items[0],
                                A = S[r] ? m[h].Items[1] : 0;
                            b[P] ? b[P] += A : b[P] = A
                        }
                    }
                    for (var T in o.forEach(function(t) {
                            if (t.GallerySlot) {
                                var n = p.ConfigDataComponent.Instance.GetConfigById(c.HolyEquipment_Config, t.ItemId),
                                    o = 10 + n.Type;
                                if (b = e.GetAttrDataMap(b, o, t.Star), t.Step) {
                                    var r = 10 * n.State + n.Type;
                                    b = e.GetAttrDataMap(b, r, t.Step - 1)
                                }
                            }
                        }), b) {
                        var R = {};
                        R.attrId = Number(T), R.attrvalue = b[T], v.push(R)
                    }
                    return C.AttrArray = v, t.push(C), t
                }, t.prototype.GetSpineAsset = function(e) {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._spineAssetMap[e] ? [2, this._spineAssetMap[e]] : [4, this.LoadDynamicAsset("ItemsComponent/Spine/" + e, sp.SkeletonData)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._spineAssetMap[e] = t, [2, t]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "RuleButton", void 0), i([A(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([A(cc.Button)], t.prototype, "RightArrowButton", void 0), i([A(cc.Sprite)], t.prototype, "EquipmentIcon", void 0), i([A(cc.RichText)], t.prototype, "EquipmentCount", void 0), i([A(d.default)], t.prototype, "EquipmentCustomLayout", void 0), i([A(cc.Label)], t.prototype, "LevelAddtionTitle", void 0), i([A(cc.Label)], t.prototype, "LevelTag", void 0), i([A(cc.Label)], t.prototype, "CurrentLevel", void 0), i([A(cc.Node)], t.prototype, "ArrowIconNode", void 0), i([A(cc.Label)], t.prototype, "NextLevel", void 0), i([A(cc.Node)], t.prototype, "AttrContainer", void 0), i([A(cc.Node)], t.prototype, "MaterialContainer", void 0), i([A(cc.Button)], t.prototype, "UpLevelButton", void 0), i([A(cc.Label)], t.prototype, "UpLevelButtonLabel", void 0), i([A(cc.Label)], t.prototype, "MaxLevelTip", void 0), i([A(cc.Button)], t.prototype, "ReturnButton", void 0), i([A(cc.Button)], t.prototype, "TotalAttrButton", void 0), i([A(cc.Label)], t.prototype, "TotalAttrButtonLabel", void 0), i([P], t)
            }(l.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent4": "AttrComponent4",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/EquipmentGalleryListItem": "EquipmentGalleryListItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyEquipmentGalleryResonancePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "36e3c1pF3hAI6gcO8q0dZas", "HolyEquipmentGalleryResonancePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/EquipmentGalleryResonanceAddtionItem"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/EquipmentGalleryResonanceEquipItem"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Tip = null, t.ConditionTag1 = null, t.ConditionTag2 = null, t.EuipmentContainer = null, t.CustomLayout = null, t._equipmentGralleryType = [f.HeroEquipmentType.Weapon, f.HeroEquipmentType.Coat, f.HeroEquipmentType.Glove, f.HeroEquipmentType.Shoes], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshAddtionScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshAddtionScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HolyFurnace/Component/EquipmentGalleryResonanceAddtionItem", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/AttrComponent5", cc.Prefab), o = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), r = this.LoadDynamicAsset("HolyFurnace/Component/EquipmentGalleryResonanceEquipItem", cc.Prefab), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._addtionItemPrefab = e[0], i._attrPrefab = e[1], i._itemPrefab = e[2], i._equipPrefab = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "HolyEquipmentGallery_Resonance_Title".ToUILocale(), this.Tip.string = "HolyEquipmentGallery_Resonance_Tip".ToUILocale(), this.ConditionTag1.string = "HolyEquipmentGallery_Resonance_Condition_Tip".ToUILocale(), this.ConditionTag2.string = "HolyEquipmentGallery_Resonance_Title".ToUILocale(), this.CustomLayout.Init(this._addtionItemPrefab)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._galleryStarcountArray = t[0], this._resonanceConfigArray = u.ConfigDataComponent.Instance.GetArrayConfig(c.HolyEquipResonance_Config), this.SetCurrentIndex()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetEquipmentContainer(), this.CustomLayout.RenderLayOut(this._resonanceConfigArray.length)
                }, t.prototype.SetCurrentIndex = function() {
                    for (var e = 0; e < this._resonanceConfigArray.length; e++)
                        for (var t = this._resonanceConfigArray[e], n = 0; n < this._equipmentGralleryType.length; n++) {
                            var o = this._equipmentGralleryType[n];
                            if (this._galleryStarcountArray[o] < t.Requirements) return void(this._currentActiveIndex = e - 1)
                        }
                }, t.prototype.SetEquipmentContainer = function() {
                    for (var e = 0; e < this._equipmentGralleryType.length; e++) {
                        var t = cc.instantiate(this._equipPrefab);
                        t.setParent(this.EuipmentContainer);
                        var n = this._equipmentGralleryType[e];
                        t.getComponent(g.default).Init(n, this._galleryStarcountArray[n], this._itemPrefab)
                    }
                }, t.prototype.RefreshAddtionScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._resonanceConfigArray[t],
                            r = n._currentActiveIndex == t;
                        e.getComponent(h.default).Init(r, o, n._attrPrefab)
                    })
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "Tip", void 0), i([_(cc.Label)], t.prototype, "ConditionTag1", void 0), i([_(cc.Label)], t.prototype, "ConditionTag2", void 0), i([_(cc.Node)], t.prototype, "EuipmentContainer", void 0), i([_(p.default)], t.prototype, "CustomLayout", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/EquipmentGalleryResonanceAddtionItem": "EquipmentGalleryResonanceAddtionItem",
        "../Components/EquipmentGalleryResonanceEquipItem": "EquipmentGalleryResonanceEquipItem"
    }],
    HolyEquipmentInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b5076hDynNKdpP3qhSxf3G2", "HolyEquipmentInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/ItemClickComponent"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("./SuitSkillItem"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Components/AttrComponent2"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.ItemContainer = null, t.NameLabel = null, t.LevelLabel = null, t.ItemTypeDesc = null, t.ItemTypeValue = null, t.ItemScoreDesc = null, t.ItemScoreValue = null, t.TagAttrLabel = null, t.AttrLayout = null, t.AdvancedContainerNode = null, t.TagAdvancedLabel = null, t.AdvancedAttrLayoutNode = null, t.AdvancedLockNode = null, t.AdvancedLockTipLabel = null, t.TagGalleryLabel = null, t.GalleryAttrNodeArray = [], t.GalleryAttrIconArray = [], t.GalleryAttrTagArray = [], t.GalleryAttrValueArray = [], t.GalleryLockNode = null, t.GalleryLockTipLabel = null, t.TagSoulLabel = null, t.SoulAttrNode = null, t.SoulLockNode = null, t.TagBlessingLabel = null, t.Blessing1Node = null, t.Blessing2Node = null, t.BlessinPreviewBtn = null, t.TagSuitLabel = null, t.SkillLayout = null, t.TagDescLabel = null, t.HolyEquipDescInfo = null, t.GetItemBtn = null, t.GetItemHint = null, t.TagIconArray = [], t.TakeOffBtn = null, t.TakeOffBtnLabel = null, t.StrengthenBtn = null, t.StrengthenBtnLabel = null, t.ChangeBtn = null, t.ChangeBtnLabel = null, t.ButtonContainer = null, t._advancedAttrComponentArray = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent), n = this.LoadDynamicAsset(p.BundlePath.SkillItemComponent), o = this.LoadDynamicAsset("HolyEquipmentPanel/SuitSkillItem"), r = this.LoadDynamicAsset("ItemsComponent/AttrComponent2"), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._itemPrefab = e[0], i._skillPrefab = e[1], i._suitSkillPrefab = e[2], i._attrPrefab = e[3]
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ItemTypeDesc.string = "equip_type_tag".ToUILocale(), this.ItemScoreDesc.string = "equip_score_tag".ToUILocale(), this.TakeOffBtnLabel.string = "PowerCore_Remove".ToUILocale(), this.StrengthenBtnLabel.string = "holy_equip_developToggle_0".ToUILocale(), this.ChangeBtnLabel.string = "equip_change".ToUILocale(), this.TakeOffBtn.node.on("click", this.OnClickTakeOff, this), this.StrengthenBtn.node.on("click", this.OnClickStrengthen, this), this.ChangeBtn.node.on("click", this.OnClickChange, this), this.GetItemBtn.node.on("click", this.OnClickGetItem, this), this.BlessinPreviewBtn.node.on("click", this.OnPreviewBlessing, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._customHolyEquipData = t[0]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ConfigHolyEquipData(), this.ConfigInfoContainer(), this.ConfigTagArray(), this.ConfigAttrsContainer(), this.ConfigAdvancedContainer(), this.ConfigGalleryContainer(), this.ConfigSoulContainer(), this.ConfigBessingContainer(), this.ConfigSuitContainer(), this.ConfigButtonContainer(), this.BindRedDot()
                }, t.prototype.ConfigHolyEquipData = function() {
                    this._customHolyEquipData.Sid ? (this._holyEquipData = d.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, this._customHolyEquipData.Sid), this._holyEquipConfig = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipment_Config, this._holyEquipData.ItemId), this._star = this._holyEquipData.Star, this._level = this._holyEquipData.Level) : (this._holyEquipData = void 0, this._star = 0, this._level = 0, this._holyEquipConfig = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipment_Config, this._customHolyEquipData.ItemId))
                }, t.prototype.ConfigTagArray = function() {
                    var e = this;
                    this.TagIconArray.forEach(function(t) {
                        e.LoadTagIcon(t)
                    })
                }, t.prototype.LoadTagIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.spriteFrame = C.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_purple"), [2]
                        })
                    })
                }, t.prototype.ConfigInfoContainer = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), e.getComponent(g.default).enabled = !1, this._itemComponent = e.getComponent(y.ItemComponent)
                    }
                    if (this._holyEquipData ? this._itemComponent.Init({
                            ItemId: this._holyEquipConfig.Id,
                            StarLevel: this._star,
                            Sid: this._holyEquipData.Sid,
                            URStarLevel: this._holyEquipData.Step
                        }, y.ItemComponentType.ItemWithStar) : this._itemComponent.Init({
                            ItemId: this._holyEquipConfig.Id,
                            StarLevel: this._star
                        }, y.ItemComponentType.ItemWithStar), this.NameLabel.string = this._holyEquipConfig.Id.ToItemName(), this.ItemTypeValue.string = ("equip_type_" + this._holyEquipConfig.Type).ToUILocale(), this._holyEquipData) {
                        var t = 100 + this._holyEquipData.Star,
                            n = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, t);
                        this.LevelLabel.string = "<outline color=#202434 width=3><color=6eeea7>Lv." + this._holyEquipData.Level + "</c></o><color=563333>/" + n.MaxLevel + "</c>", this.ItemScoreValue.string = m.default.Instance.GetHolyEquipScore(this._holyEquipData.Sid).toString(), this._holyEquipData.Step > 0 && (this.NameLabel.node.color = new cc.Color(251, 145, 255))
                    } else this.LevelLabel.string = "", this.ItemScoreValue.string = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipmentScore").toString()
                }, t.prototype.ConfigAttrsContainer = function() {
                    this.TagAttrLabel.string = "equip_base_attr".ToUILocale(), this._holyEquipConfig.Attrs.length;
                    var e = this._holyEquipData && this._holyEquipData.Step > 0 ? this._holyEquipData.Step : 0,
                        t = m.default.GetFuckingHolyEquipAllAttrs(this._holyEquipConfig.Id, this._star, this._level, e),
                        n = 0;
                    for (var o in t) {
                        var r = Number.parseInt(o),
                            i = t[o],
                            a = m.default.GetHeroAttribute(r, i),
                            s = this.AttrLayout.children[n];
                        n++, s.active = !0, cc.find("AttrIcon", s).getComponent(cc.Sprite).spriteFrame = a.Icon, cc.find("Tag", s).getComponent(cc.Label).string = a.Name, cc.find("Value", s).getComponent(cc.Label).string = "+" + a.Value
                    }
                    for (var l = n; l < this.AttrLayout.childrenCount; l++) this.AttrLayout.children[l].active = !1
                }, t.prototype.ConfigAdvancedContainer = function() {
                    if (this.AdvancedContainerNode.active = !1, m.default.Instance.IsGameModuleUnlock(f.GameModuleType.UpStepHolyEquipShow)[0])
                        if (this.AdvancedContainerNode.active = !0, this.TagAdvancedLabel.string = "holy_equip_advanced_resonance_attr".ToUILocale(), this.AdvancedLockNode.active = !1, this.AdvancedAttrLayoutNode.active = !1, this._holyEquipData && this._holyEquipConfig.State == f.HolyEquipmentState.Step) {
                            this.AdvancedAttrLayoutNode.active = !0;
                            var e = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, 100 * f.HolyEquipmentState.Step + this._holyEquipData.Step),
                                t = [];
                            switch (this._holyEquipConfig.Type) {
                                case f.HeroEquipmentType.Weapon:
                                    t = e.UnmatchedWeapon;
                                    break;
                                case f.HeroEquipmentType.Coat:
                                    t = e.UnmatchedCoat;
                                    break;
                                case f.HeroEquipmentType.Glove:
                                    t = e.UnmatchedGlove;
                                    break;
                                case f.HeroEquipmentType.Shoes:
                                    t = e.UnmatchedShoes
                            }
                            for (var n = 0; n < t.length; n++) {
                                var o = this._advancedAttrComponentArray[n];
                                if (!o) {
                                    var r = cc.instantiate(this._attrPrefab);
                                    r.setParent(this.AdvancedAttrLayoutNode), o = r.getComponent(b.default), this._advancedAttrComponentArray[n] = o
                                }
                                o.node.active = !0;
                                var i = t[n].Items;
                                o.Init(i[0], i[1]), o.SetAttrValueStyle(456, 200, b.AttrComponent2Style.Mid, b.AttrComponent2Style.Mid)
                            }
                            if (t.length < this._advancedAttrComponentArray.length)
                                for (n = t.length; n < this._advancedAttrComponentArray.length; n++) this._advancedAttrComponentArray[n].node.active = !1
                        } else this.AdvancedLockNode.active = !0, this.AdvancedLockTipLabel.string = "holy_equip_advanced_not_tip".ToUILocale()
                }, t.prototype.ConfigGalleryContainer = function() {
                    if (this.TagGalleryLabel.string = "holy_equip_gallery_tag".ToUILocale(), this.GalleryAttrNodeArray.forEach(function(e) {
                            e.active = !1
                        }), this._holyEquipData && this._holyEquipData.GallerySlot) {
                        this.GalleryLockNode.active = !1;
                        var e = {},
                            t = 10 + this._holyEquipConfig.Type;
                        if (e = this.GetAttrDataMap(e, t, this._holyEquipData.Star), this._holyEquipData && this._holyEquipData.Step) {
                            var n = 10 * this._holyEquipConfig.State + this._holyEquipConfig.Type;
                            e = this.GetAttrDataMap(e, n, this._holyEquipData.Step - 1)
                        }
                        var o = 0;
                        for (var r in e) {
                            var i = m.default.GetHeroAttribute(Number(r), e[r]);
                            this.GalleryAttrNodeArray[o].active = !0, this.GalleryAttrIconArray[o].spriteFrame = i.Icon, this.GalleryAttrTagArray[o].string = i.Name, this.GalleryAttrValueArray[o].string = i.Value, o++
                        }
                    } else this.GalleryLockNode.active = !0, this.GalleryLockTipLabel.string = "holy_equip_gallery_locked".ToUILocale()
                }, t.prototype.GetAttrDataMap = function(e, t, n) {
                    for (var o = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipSlotAddon_Config, t).SelfAttrIds[n], r = d.ConfigDataComponent.Instance.GetConfigById(h.CommonAttrs_Config, o), i = 0; i < r.Attrs.length; i++) {
                        var a = r.Attrs[i].Items[0],
                            s = r.Attrs[i].Items[1];
                        e[a] ? e[a] += s : e[a] = s
                    }
                    return e
                }, t.prototype.ConfigSoulContainer = function() {
                    var e, t = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipSoulUnlock");
                    if (e = this._holyEquipData ? this._holyEquipData.Stage : 0, this.TagSoulLabel.string = "holy_equip_stage".ToUILocale().Fmt(e), this._star >= t) {
                        this.SoulAttrNode.active = !0, this.SoulLockNode.active = !1, cc.find("Tag", this.SoulAttrNode).getComponent(cc.Label).string = "holy_equip_attrs_bonus".ToUILocale();
                        var n = 0;
                        e > 0 && (n = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipSoul_Config, e).Attr), cc.find("Value", this.SoulAttrNode).getComponent(cc.Label).string = "+" + n / 10 + "%"
                    } else this.SoulAttrNode.active = !1, this.SoulLockNode.active = !0, cc.find("Label", this.SoulLockNode).getComponent(cc.Label).string = "holy_equip_soul_locked".ToUILocale()
                }, t.prototype.ConfigBessingContainer = function() {
                    this.TagBlessingLabel.string = "holy_equip_blessing_tag".ToUILocale();
                    var e = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipBlessingUnlock1"),
                        t = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipBlessingUnlock2");
                    this._holyEquipData ? (this.RenderBlessingNode(this.Blessing1Node, this._holyEquipData.Blessing1, e), this.RenderBlessingNode(this.Blessing2Node, this._holyEquipData.Blessing2, t)) : (this.RenderBlessingNode(this.Blessing1Node, void 0, e), this.RenderBlessingNode(this.Blessing2Node, void 0, t))
                }, t.prototype.RenderBlessingNode = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i, a, c, u, p;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return o = cc.find("UnlockLayout", e), r = cc.find("UnBlessing", e), i = cc.find("Blessing", e), o.active = !1, r.active = !1, i.active = !1, this._star >= n ? 0 == t.BlessingId ? [3, 2] : (i.active = !0, a = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipBlessing_Config, t.BlessingId), cc.find("1/Tag", i).getComponent(cc.Label).string = a.TypeId.ToHolyHolyEquipBlessingName(), cc.find("1/Value", i).getComponent(cc.Label).string = "Lv." + a.Level, c = m.default.GetHeroAttribute(a.Attrs[0], a.Attrs[1], !0), cc.find("2/AttrIcon", i).getComponent(cc.Sprite).spriteFrame = c.Icon, cc.find("2/Tag", i).getComponent(cc.Label).string = c.Name, cc.find("2/Value", i).getComponent(cc.Label).string = "+" + c.Value, u = cc.find("Item/Icon", i).getComponent(cc.Sprite), [4, this.LoadDynamicAsset("HolyEquipBlessingIcon/" + a.TypeId, cc.SpriteFrame)]) : [3, 4];
                                case 1:
                                    return p = s.sent(), this.isValid ? (u.spriteFrame = p, [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(p), [2]);
                                case 2:
                                    r.active = !0, cc.find("Label", r).getComponent(cc.Label).string = "holy_equip_blessing_none".ToUILocale(), s.label = 3;
                                case 3:
                                    return [3, 5];
                                case 4:
                                    o.active = !0, cc.find("Label", o).getComponent(cc.Label).string = "holy_equip_blessing_unlock".ToUILocale().Fmt(n), s.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ConfigSuitContainer = function() {
                    this.TagSuitLabel.string = this._holyEquipConfig.SuitId.ToHolyEquipSuitName();
                    var e = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipSuit_Config, this._holyEquipConfig.SuitId),
                        t = e.SkillTwoId,
                        n = e.SkillFourId,
                        o = [0, 0];
                    if (this._holyEquipData) {
                        var r = m.default.IsHolyEquipSuitActive(this._holyEquipData.OwnerId, this._holyEquipConfig.SuitId);
                        r[0] && (o[0] = 1, t = r[0]), r[1] && (o[1] = 1, n = r[1])
                    }
                    this.SkillLayout.destroyAllChildren();
                    var i = cc.instantiate(this._suitSkillPrefab);
                    i.setParent(this.SkillLayout), i.getComponent(_.default).Init(this._skillPrefab, t, o[0], 2);
                    var a = cc.instantiate(this._suitSkillPrefab);
                    a.setParent(this.SkillLayout), a.getComponent(_.default).Init(this._skillPrefab, n, o[1], 4)
                }, t.prototype.ConfigDescContainer = function() {
                    this.TagDescLabel.string = "holy_equip_desc".ToUILocale(), this.HolyEquipDescInfo.string = this._holyEquipConfig.Id.ToItemDesc(), this.GetItemHint.string = "Personalise_getway".ToUILocale()
                }, t.prototype.ConfigButtonContainer = function() {
                    this._customHolyEquipData.HideButton || !this._customHolyEquipData.Sid ? this.ButtonContainer.active = !1 : this.ButtonContainer.active = !0
                }, t.prototype.OnClickTakeOff = function() {
                    var e = new c.Req_Item_EquipmentPutOff;
                    e.EquipmentId = this._customHolyEquipData.Sid, e.StorageType = f.EquipmentStorageType.Holy, d.RpcComponent.Instance.Call(e, this.OnTakeOffEquipSuccess.bind(this))
                }, t.prototype.OnTakeOffEquipSuccess = function() {
                    this.Close(), l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_EQUIP_DATA_REFRESH), C.UIUtlity.ShowFloatingHint("equip_take_off_success".ToUILocale())
                }, t.prototype.OnClickStrengthen = function() {
                    this.Close(), I.UIManager.Instance.ShowUIPanel(p.PanelConfig.HolyEquipmentDevelopPanel.Path, this._customHolyEquipData.Sid)
                }, t.prototype.OnClickChange = function() {
                    this.Close();
                    var e = d.DataCenter.Instance.GetDataById(c.UserHero_Model, this._holyEquipData.OwnerId);
                    I.UIManager.Instance.ShowUIPanel(p.PanelConfig.EquipmentChangePanel.Path, e, this._customHolyEquipData.Sid, !0)
                }, t.prototype.OnClickGetItem = function() {
                    var e = d.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, this._customHolyEquipData.ItemId);
                    e && m.default.ShowItemGetWay(e.Id)
                }, t.prototype.OnPreviewBlessing = function() {
                    var e = Math.max(this._holyEquipData.Blessing1.Level, this._holyEquipData.Blessing2.Level);
                    I.UIManager.Instance.ShowUIPanel(p.PanelConfig.HolyEquipmentBlessingHandbookPanel.Path, this._customHolyEquipData.Sid, e)
                }, t.prototype.BindRedDot = function() {
                    0 != this.ButtonContainer.active && (this._canDevelop = this._customHolyEquipData.CanDevelop, null == this._canDevelop && (this._canDevelop = !1), v.RedDotManager.Instance.BindInstance(this.StrengthenBtn.node, v.RedDotManager.Instance.InstanceRedDot.HolyEquipDevelopButton, {
                        Result: this._canDevelop
                    }))
                }, i([P(cc.Node)], t.prototype, "ItemContainer", void 0), i([P(cc.Label)], t.prototype, "NameLabel", void 0), i([P(cc.RichText)], t.prototype, "LevelLabel", void 0), i([P(cc.Label)], t.prototype, "ItemTypeDesc", void 0), i([P(cc.Label)], t.prototype, "ItemTypeValue", void 0), i([P(cc.Label)], t.prototype, "ItemScoreDesc", void 0), i([P(cc.Label)], t.prototype, "ItemScoreValue", void 0), i([P(cc.Label)], t.prototype, "TagAttrLabel", void 0), i([P(cc.Node)], t.prototype, "AttrLayout", void 0), i([P(cc.Node)], t.prototype, "AdvancedContainerNode", void 0), i([P(cc.Label)], t.prototype, "TagAdvancedLabel", void 0), i([P(cc.Node)], t.prototype, "AdvancedAttrLayoutNode", void 0), i([P(cc.Node)], t.prototype, "AdvancedLockNode", void 0), i([P(cc.Label)], t.prototype, "AdvancedLockTipLabel", void 0), i([P(cc.Label)], t.prototype, "TagGalleryLabel", void 0), i([P([cc.Node])], t.prototype, "GalleryAttrNodeArray", void 0), i([P([cc.Sprite])], t.prototype, "GalleryAttrIconArray", void 0), i([P([cc.Label])], t.prototype, "GalleryAttrTagArray", void 0), i([P([cc.Label])], t.prototype, "GalleryAttrValueArray", void 0), i([P(cc.Node)], t.prototype, "GalleryLockNode", void 0), i([P(cc.Label)], t.prototype, "GalleryLockTipLabel", void 0), i([P(cc.Label)], t.prototype, "TagSoulLabel", void 0), i([P(cc.Node)], t.prototype, "SoulAttrNode", void 0), i([P(cc.Node)], t.prototype, "SoulLockNode", void 0), i([P(cc.Label)], t.prototype, "TagBlessingLabel", void 0), i([P(cc.Node)], t.prototype, "Blessing1Node", void 0), i([P(cc.Node)], t.prototype, "Blessing2Node", void 0), i([P(cc.Button)], t.prototype, "BlessinPreviewBtn", void 0), i([P(cc.Label)], t.prototype, "TagSuitLabel", void 0), i([P(cc.Node)], t.prototype, "SkillLayout", void 0), i([P(cc.Label)], t.prototype, "TagDescLabel", void 0), i([P(cc.RichText)], t.prototype, "HolyEquipDescInfo", void 0), i([P(cc.Button)], t.prototype, "GetItemBtn", void 0), i([P(cc.Label)], t.prototype, "GetItemHint", void 0), i([P([cc.Sprite])], t.prototype, "TagIconArray", void 0), i([P(cc.Button)], t.prototype, "TakeOffBtn", void 0), i([P(cc.Label)], t.prototype, "TakeOffBtnLabel", void 0), i([P(cc.Button)], t.prototype, "StrengthenBtn", void 0), i([P(cc.Label)], t.prototype, "StrengthenBtnLabel", void 0), i([P(cc.Button)], t.prototype, "ChangeBtn", void 0), i([P(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([P(cc.Node)], t.prototype, "ButtonContainer", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./SuitSkillItem": "SuitSkillItem"
    }],
    HolyEquipmentSoulPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "86d82NHxdlBFI7RoKdmlYTD", "HolyEquipmentSoulPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Components/ItemComponent"),
            h = e("./HolyEquipTitleAndItem"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../../../Consts/Consts"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("./HolyEquipmentStrengthenPanel"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleAndItem = null, t.EffectTitle = null, t.AttrName = null, t.AttrValue = null, t.AttrCurrentValue = null, t.AttrFutureValue = null, t.Arrow = null, t.MaterialNode = null, t.MaterialTitle = null, t.MaterialItemContainer = null, t.ItemCount = null, t.UnlockLabel = null, t.SoulBtn = null, t.SoulBtnLabel = null, t.GrayBtn = null, t.GrayBtnLabel = null, t.MaxNode = null, t.EquipItemContainer = null, t.SoulSpineNode = null, t.CostSpineNode = null, t.DisplaceBtn = null, t.DisplaceBtnLockBg = null, t.DisplaceBtnLabel = null, t.PreviewBtn = null, t.PreviewBtnLabel = null, t._loadedAssets = [], t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t) {
                    this._isInit || (this._isInit = !0, this.InitUI()), this._holyEquipSid = e, this._itemPrefab = t, this._holyEquipData = u.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, e), this._holyEquipConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipment_Config, this._holyEquipData.ItemId), this.ConfitHolyEquipItem(), this.ConfigAttrContainer(), this.ConfigPanelMode(), this.BindRedDot(), this.RefreshDisplayBtn()
                }, t.prototype.InitUI = function() {
                    this.EffectTitle.string = "holy_equip_soul_effect".ToUILocale(), this.MaterialTitle.string = "holy_equip_soul_material".ToUILocale(), this.SoulBtnLabel.string = "holy_equip_developToggle_2".ToUILocale(), this.GrayBtnLabel.string = "holy_equip_developToggle_2".ToUILocale(), this.AttrName.string = "hero_attr_all".ToUILocale(), this.DisplaceBtnLabel.string = "holy_equip_displace_title".ToUILocale(), this.PreviewBtnLabel.string = "common_preview".ToUILocale(), this.MaxNode.string = "holy_equip_soul_max".ToUILocale(), this.SoulBtn.node.on("click", this.OnSoulClick, this), this.GrayBtn.node.on("click", this.OnGrayBtnClick, this), this.DisplaceBtn.node.on("click", this.OnDisplaceClick, this), this.PreviewBtn.node.on("click", this.OnPreviewClick, this), this.DisplaceBtn.node.active = v.default.CheckIsShowDisplaceBtn()
                }, t.prototype.ConfitHolyEquipItem = function() {
                    var e = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipmentStar_Config, 100 * _.HolyEquipmentState.Star + this._holyEquipData.Star);
                    this.TitleAndItem.Init(this._holyEquipData, e.MaxLevel, this._itemPrefab, 3)
                }, t.prototype.ConfigAttrContainer = function() {
                    this._maxSoulStage = u.ConfigCacheComponent.Instance.HolyEquipSoulMaxLevel;
                    var e = this._holyEquipData.Stage;
                    if (e < this._maxSoulStage) {
                        var t = 0;
                        e > 0 && (this._holyEquipSoulConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipSoul_Config, e), t = this._holyEquipSoulConfig.Attr), this._holyEquipNextSoulConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipSoul_Config, e + 1), this.AttrCurrentValue.node.active = !0, this.Arrow.active = !0, this.AttrFutureValue.node.active = !0, this.AttrValue.node.active = !1, this.AttrCurrentValue.string = "+" + t / 10 + "%", this.AttrFutureValue.string = "+" + this._holyEquipNextSoulConfig.Attr / 10 + "%"
                    } else this._holyEquipSoulConfig = u.ConfigDataComponent.Instance.GetConfigById(p.HolyEquipSoul_Config, e), this.AttrCurrentValue.node.active = !1, this.Arrow.active = !1, this.AttrFutureValue.node.active = !1, this.AttrValue.node.active = !0, this.AttrValue.string = "+" + this._holyEquipSoulConfig.Attr / 10 + "%"
                }, t.prototype.ConfigPanelMode = function() {
                    this._holyEquipData.Stage < this._maxSoulStage ? (this.MaterialNode.active = !0, this.MaxNode.node.active = !1, this.ConfigMaterialNode()) : (this.MaterialNode.active = !1, this.MaxNode.node.active = !0, this.ConfigMaxNode())
                }, t.prototype.ConfigMaterialNode = function() {
                    if (this.GetMaterialInfo(), !this._materialItem) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.MaterialItemContainer), this._materialItem = e.getComponent(d.ItemComponent)
                    }
                    this._materialItem.Init({
                        ItemId: this._costMaterialId
                    }), this._ownCount = u.DataCenter.Instance.GetItemCount(this._costMaterialId);
                    for (var t = u.DataCenter.Instance.GetDataList(c.Equipment_Model), n = 0; n < t.length; n++) {
                        var o = t[n];
                        o.ItemId == this._costMaterialId && 0 == o.OwnerId && this._ownCount++
                    }
                    this._ownCount >= this._costCount ? (this.ItemCount.string = "item_count_enough".ToUILocale().Fmt(this._ownCount, this._costCount), this._materialItem.DisableItemMask(), this._materialItem.SetAddFlagState(!1)) : (this.ItemCount.string = "item_count_not_enough".ToUILocale().Fmt(this._ownCount, this._costCount), this._materialItem.EnableItemMask(), this._materialItem.SetAddFlagState(!0, "add_green")), this._holyEquipData.Star < this._holyEquipNextSoulConfig.UnlockStar ? (this.SoulBtn.node.active = !1, this.GrayBtn.node.active = !0, this.UnlockLabel.node.active = !0, this.UnlockLabel.string = "holy_equip_blessing_unlock_hint".ToUILocale().Fmt(this._holyEquipNextSoulConfig.UnlockStar)) : (this.UnlockLabel.node.active = !1, this._ownCount >= this._costCount ? (this.SoulBtn.node.active = !0, this.GrayBtn.node.active = !1) : (this.SoulBtn.node.active = !1, this.GrayBtn.node.active = !0))
                }, t.prototype.GetMaterialInfo = function() {
                    var e = this._holyEquipNextSoulConfig.Materials[this._holyEquipConfig.Type - 1].Items;
                    this._costMaterialId = e[0], this._costCount = e[1]
                }, t.prototype.ConfigMaxNode = function() {
                    if (!this._equipItem) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.EquipItemContainer), this._equipItem = e.getComponent(d.ItemComponent)
                    }
                    this._equipItem.Init({
                        ItemId: this._holyEquipData.ItemId,
                        StarLevel: this._holyEquipData.Star,
                        Sid: this._holyEquipData.Sid,
                        URStarLevel: this._holyEquipData.Step
                    }, d.ItemComponentType.ItemWithStar)
                }, t.prototype.OnSoulClick = function() {
                    this.PlayCostSpine();
                    var e = new c.Req_Holy_EquipmentSoul;
                    e.Sid = this._holyEquipSid, u.RpcComponent.Instance.Call(e, this.OnSoulSucces.bind(this))
                }, t.prototype.OnSoulSucces = function() {
                    this.Init(this._holyEquipSid, this._itemPrefab), l.Game.EventDispatcher.Emit(y.EventKeys.EVENT_HOLYEQUIP_REFRESH_TOGGLES), this.PlaySoulSpine()
                }, t.prototype.OnGrayBtnClick = function() {
                    if (!(this._holyEquipData.Star < this._holyEquipNextSoulConfig.UnlockStar)) return f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._costMaterialId.ToItemName()));
                    f.UIUtlity.ShowFloatingHint("holy_equip_blessing_unlock_hint".ToUILocale().Fmt(this._holyEquipNextSoulConfig.UnlockStar))
                }, t.prototype.OnClickItem = function(e, t) {
                    if (this._materialItem) {
                        if (t != this._materialItem.node) return;
                        g.UIManager.Instance.ShowUIPanel(m.PanelConfig.ItemGetWayPanel.Path, this._costMaterialId)
                    }
                }, t.prototype.PlayCostSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._costSpine ? [3, 2] : [4, g.AssetsManager.Instance.LoadAsset("HolyEquipmentPanel/SoulCostSpine")];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    (t = cc.instantiate(e)).setParent(this.CostSpineNode), this._costSpine = t.getComponent(sp.Skeleton), this._loadedAssets.push(e), o.label = 2;
                                case 2:
                                    return this._costSpine.node.active = !0, this._costSpine.setAnimation(0, this._costSpine.animation, !1), this._costSpine.setCompleteListener(function() {
                                        n._costSpine.node.active = !1
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.PlaySoulSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._soulSpine ? [3, 2] : [4, g.AssetsManager.Instance.LoadAsset("HolyEquipmentPanel/SoulSpine")];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    (t = cc.instantiate(e)).setParent(this.SoulSpineNode), this._soulSpine = t.getComponent(sp.Skeleton), this._loadedAssets.push(e), o.label = 2;
                                case 2:
                                    return this._soulSpine.node.active = !0, this._soulSpine.setAnimation(0, this._soulSpine.animation, !1), this._soulSpine.setCompleteListener(function() {
                                        n._soulSpine.node.active = !1
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.BindRedDot = function() {
                    I.RedDotManager.Instance.BindInstance(this.SoulBtn.node, I.RedDotManager.Instance.InstanceRedDot.HolyEquipSoulButton, {
                        Value1: this._holyEquipSid
                    })
                }, t.prototype.RefreshDisplayBtn = function() {
                    var e = C.default.Instance.IsGameModuleUnlock(_.GameModuleType.HolyEquipmentDisplace);
                    this.DisplaceBtnLockBg.active = !e[0]
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, t.prototype.OnDisplaceClick = function() {
                    var e = C.default.Instance.IsGameModuleUnlock(_.GameModuleType.HolyEquipmentDisplace);
                    e[0] ? g.UIManager.Instance.ShowUIPanel(m.PanelConfig.HolyEquipmentDisplacePanel.Path, this._holyEquipSid) : f.UIUtlity.ShowFloatingHint(e[1])
                }, t.prototype.OnPreviewClick = function() {
                    var e = {};
                    e.Title = "holy_equip_soul_effect".ToUILocale(), e.DescArray = [];
                    var t = u.ConfigDataComponent.Instance.GetConfig(p.HolyEquipSoul_Config);
                    for (var n in t) {
                        var o = t[n],
                            r = "holy_equip_soul_preview_content".ToUILocale().Fmt(o.Id, o.Attr / 10);
                        o.Id == this._holyEquipData.Stage ? e.DescArray.push("<color=23e123>" + r + "</c>") : o.Id > this._holyEquipData.Stage ? e.DescArray.push("<color=aaaaaa>" + r + "</c>") : e.DescArray.push(r)
                    }
                    e.DescArray.push(""), e.DescArray.push("holy_equip_soul_preview_desc".ToUILocale()), l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonBlackDescPanel.Path, e)
                }, i([w(h.default)], t.prototype, "TitleAndItem", void 0), i([w(cc.Label)], t.prototype, "EffectTitle", void 0), i([w(cc.Label)], t.prototype, "AttrName", void 0), i([w(cc.Label)], t.prototype, "AttrValue", void 0), i([w(cc.Label)], t.prototype, "AttrCurrentValue", void 0), i([w(cc.Label)], t.prototype, "AttrFutureValue", void 0), i([w(cc.Node)], t.prototype, "Arrow", void 0), i([w(cc.Node)], t.prototype, "MaterialNode", void 0), i([w(cc.Label)], t.prototype, "MaterialTitle", void 0), i([w(cc.Node)], t.prototype, "MaterialItemContainer", void 0), i([w(cc.RichText)], t.prototype, "ItemCount", void 0), i([w(cc.Label)], t.prototype, "UnlockLabel", void 0), i([w(cc.Button)], t.prototype, "SoulBtn", void 0), i([w(cc.Label)], t.prototype, "SoulBtnLabel", void 0), i([w(cc.Button)], t.prototype, "GrayBtn", void 0), i([w(cc.Label)], t.prototype, "GrayBtnLabel", void 0), i([w(cc.Label)], t.prototype, "MaxNode", void 0), i([w(cc.Node)], t.prototype, "EquipItemContainer", void 0), i([w(cc.Node)], t.prototype, "SoulSpineNode", void 0), i([w(cc.Node)], t.prototype, "CostSpineNode", void 0), i([w(cc.Button)], t.prototype, "DisplaceBtn", void 0), i([w(cc.Node)], t.prototype, "DisplaceBtnLockBg", void 0), i([w(cc.Label)], t.prototype, "DisplaceBtnLabel", void 0), i([w(cc.Button)], t.prototype, "PreviewBtn", void 0), i([w(cc.Label)], t.prototype, "PreviewBtnLabel", void 0), i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./HolyEquipTitleAndItem": "HolyEquipTitleAndItem",
        "./HolyEquipmentStrengthenPanel": "HolyEquipmentStrengthenPanel"
    }],
    HolyEquipmentStrengthenPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3a81ceGIGZAEr7+bcKoqz0e", "HolyEquipmentStrengthenPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../Components/CurrencyBarItem"),
            I = e("./HolyEquipTitleAndItem"),
            _ = e("./StrengthenMaterialItem"),
            C = e("../Components/AttributeItemComponent"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../../Consts/Consts"),
            S = e("../Components/CustomProgressBar"),
            w = e("./HolyEquipUpStarItem"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleNode = null, t.ProgressBar = null, t.ProgressValue = null, t.ProgressValueLast = null, t.AttrItems = [], t.MaterialTitle = null, t.MaterialLayout = null, t.UpStarMaterialLayout = null, t.AutoSelectBtn = null, t.AutoSelectBtnLabel = null, t.StrengthenBtn = null, t.StrengthenBtnLabel = null, t.CurrencyBar = null, t.UpstarBtn = null, t.UpstarBtnLabel = null, t.UpstarHint = null, t.MaxFlag = null, t.XpHintLabel = null, t.BottomBar = null, t.SpineStrengthNode = null, t.SpineProgressNode = null, t.DisplaceBtn = null, t.DisplaceBtnLockBg = null, t.DisplaceBtnLabel = null, t._loadedAssets = [], t._isInit = !1, t._upStarMaterialItems = [], t._progressTotalXp = 0, t._progressCurrentXp = 0, t._currentLevelAttrMap = new Map, t.Materials = [b.CommonItemId.HolyEqptXpPrimary, b.CommonItemId.HolyEqptXpMiddle, b.CommonItemId.HolyEqptXpAdvanced, b.CommonItemId.HolyEqptXpSuper], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_HOLYEQUIP_SELECT_MATERIAL_REFRESH, this.RefreshMaterials, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_HOLYEQUIP_SELECT_MATERIAL_REFRESH, this.RefreshMaterials)
                }, t.prototype.Init = function(e, t) {
                    this._holyEquipSid = e, this._itemPrefab = t, this._holyEquipData = d.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, e), this._holyEquipConfig = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipment_Config, this._holyEquipData.ItemId), this._holyEquipLevelConfig = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentLevel_Config, this._holyEquipData.Level), this._levelParamConfig = d.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, f.LevelParamType.HolyEqptXp), this._holyEquipmentXpPrice = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipmentXpPrice"), this._isInit || (this._isInit = !0, this.InitUI()), this.ConfitHolyEquipItem(), this.ConfigProgressBar(), this.ConfigAttrs(), this.ConfigMaterials(), this.RefreshButtons(), this.RefreshCurrencyBar(), this.RefreshDisplayBtn()
                }, t.prototype.InitUI = function() {
                    this.MaterialTitle.string = "holy_equip_strengthen_material".ToUILocale(), this.AutoSelectBtnLabel.string = "equip_auto_select".ToUILocale(), this.StrengthenBtnLabel.string = "holy_equip_developToggle_0".ToUILocale(), this.UpstarBtnLabel.string = "holy_equip_goto_upStar".ToUILocale(), this.UpstarHint.string = "holy_equip_strengthern_level_limit".ToUILocale(), this.DisplaceBtnLabel.string = "holy_equip_displace_title".ToUILocale(), this.MaxFlag.string = "", this.AutoSelectBtn.node.on("click", this.OnAutoSelect, this), this.StrengthenBtn.node.on("click", this.OnStrengthen, this), this.UpstarBtn.node.on("click", this.OnUpStar, this), this.DisplaceBtn.node.on("click", this.OnDisplaceClick, this), this.DisplaceBtn.node.active = n.CheckIsShowDisplaceBtn()
                }, t.CheckIsShowDisplaceBtn = function() {
                    var e = y.default.Instance.IsGameModuleOpen(b.GameModuleType.HolyEquipmentDisplace),
                        t = y.default.Instance.IsGameModuleUnlock(b.GameModuleType.HolyEquipmentDisplace);
                    return e && t[0]
                }, t.prototype.ConfitHolyEquipItem = function() {
                    var e = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, 100 * b.HolyEquipmentState.Star + this._holyEquipData.Star);
                    this._maxLevel = e.MaxLevel, this._selectItemCount = [0, 0, 0, 0], this.TitleNode.getComponent(I.default).Init(this._holyEquipData, this._maxLevel, this._itemPrefab, 2)
                }, t.prototype.ConfigProgressBar = function() {
                    var e = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentLevel_Config, this._maxLevel);
                    if (this._maxXp = e.Xp, this._holyEquipData.Level < this._maxLevel) {
                        var t = 0;
                        this._holyEquipLevelConfig && (t = this._holyEquipLevelConfig.Xp);
                        var n = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentLevel_Config, this._holyEquipData.Level + 1);
                        this._progressCurrentXp = this._holyEquipData.Xp - t, this._progressTotalXp = n.Xp - t, this.ProgressValue.node.active = !0, this.ProgressValueLast.node.active = !0, this.ProgressValue.string = "" + this._progressCurrentXp, this.ProgressValueLast.string = "/" + this._progressTotalXp, this.ProgressBar.progress = this._progressCurrentXp / this._progressTotalXp
                    } else this.ProgressBar.progress = 1, this.ProgressValue.string = "" + this._holyEquipLevelConfig.Xp, this.ProgressValueLast.string = "/" + this._holyEquipLevelConfig.Xp
                }, t.prototype.ConfigAttrs = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function() {
                            for (this._currentLevelAttrMap.clear(), e = this.GetLevelAttrs(this._holyEquipData.Level), t = 0; t < e.length; t++) n = e[t].Items, this._currentLevelAttrMap.set(n[0], n[1]);
                            return this.RefreshAttrs(), [2]
                        })
                    })
                }, t.prototype.RefreshAttrs = function() {
                    var e = this,
                        t = 1;
                    if (this._holyEquipData.Level >= this._maxLevel && this._holyEquipData.Level < d.ConfigCacheComponent.Instance.HolyEquipmentMaxLevel) {
                        this._upStarAttrItemsData = [];
                        var n = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, 100 * b.HolyEquipmentState.Star + this._holyEquipData.Star),
                            o = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, 100 * b.HolyEquipmentState.Star + this._holyEquipData.Star + 1),
                            r = {
                                Name: "level_limit".ToUILocale(),
                                OldValue: "Lv." + n.MaxLevel,
                                NewValue: "Lv." + o.MaxLevel
                            };
                        this.AttrItems[0].Init(r), this._upStarAttrItemsData.push(r), this._currentLevelAttrMap.forEach(function(n, o) {
                            var r = e.GetFuckingFinalAttrValue(o, n, !1),
                                i = e.GetFuckingFinalAttrValue(o, n, !0),
                                a = y.default.GetHeroAttributeValue(r, o),
                                s = y.default.GetHeroAttribute(o, i),
                                l = {
                                    Name: s.Name,
                                    Icon: s.Icon,
                                    OldValue: "+" + a,
                                    NewValue: "+" + s.Value
                                };
                            e.AttrItems[t].node.active = !0, e.AttrItems[t].Init(l), e._upStarAttrItemsData.push(l), t++
                        })
                    } else {
                        var i = this.GetCurrentLevel();
                        if (i == this._holyEquipData.Level) r = {
                            Name: "holy_equip_level".ToUILocale(),
                            OldValue: "Lv." + i
                        }, this.AttrItems[0].Init(r), this._currentLevelAttrMap.forEach(function(n, o) {
                            var r = e.GetFuckingFinalAttrValue(o, n, !1),
                                i = y.default.GetHeroAttribute(o, r),
                                a = {
                                    Name: i.Name,
                                    Icon: i.Icon,
                                    OldValue: "+" + i.Value
                                };
                            e.AttrItems[t].node.active = !0, e.AttrItems[t].Init(a), t++
                        });
                        else {
                            r = {
                                Name: "holy_equip_level".ToUILocale(),
                                OldValue: "Lv." + this._holyEquipData.Level,
                                NewValue: "Lv." + i
                            }, this.AttrItems[0].Init(r);
                            for (var a = this.GetLevelAttrs(i), s = 0; s < a.length; s++) {
                                var l = a[s].Items[0],
                                    c = a[s].Items[1],
                                    u = this.GetFuckingFinalAttrValue(l, c, !1),
                                    p = y.default.GetHeroAttribute(l, u),
                                    f = 0;
                                this._currentLevelAttrMap.has(l) && (f = this._currentLevelAttrMap.get(l), f = this.GetFuckingFinalAttrValue(l, f, !1));
                                var g = {
                                    Name: p.Name,
                                    Icon: p.Icon,
                                    OldValue: "+" + f,
                                    NewValue: "+" + p.Value
                                };
                                this.AttrItems[t].node.active = !0, this.AttrItems[t].Init(g), t++
                            }
                        }
                    }
                    for (s = t; s < this.AttrItems.length; s++) this.AttrItems[s].node.active = !1
                }, t.prototype.GetFuckingFinalAttrValue = function(e, t, n) {
                    for (var o = this._holyEquipConfig.Attrs, r = 0; r < o.length; r++) o[r].Items[0] == e && (t += o[r].Items[1]);
                    var i = this.GetStarAttrs(n);
                    for (r = 0; r < i.length; r++) i[r].Items[0] == e && (t += i[r].Items[1]);
                    return t
                }, t.prototype.ConfigMaterials = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, p, f, y;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = !1, this._holyEquipData.Level >= this._maxLevel && (e = !0), this.MaterialLayout.active = !1, this.UpStarMaterialLayout.active = !1, e && this._holyEquipData.Level < d.ConfigCacheComponent.Instance.HolyEquipmentMaxLevel ? (this.UpStarMaterialLayout.active = !0, this._upStarMaterialPrefab ? [3, 2] : (t = this, [4, g.AssetsManager.Instance.LoadAsset("HolyEquipmentPanel/HolyEquipUpStarItem")])) : [3, 3];
                                case 1:
                                    if (t._upStarMaterialPrefab = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._upStarMaterialPrefab), [2];
                                    this._loadedAssets.push(this._upStarMaterialPrefab), s.label = 2;
                                case 2:
                                    for (n = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, 100 * b.HolyEquipmentState.Star + this._holyEquipData.Star + 1), this._upStarMaterialData = {}, y = 0; y < n.Materials.length; y++)(o = this._upStarMaterialItems[y]) || ((r = cc.instantiate(this._upStarMaterialPrefab)).setParent(this.UpStarMaterialLayout), o = r.getComponent(w.default), this._upStarMaterialItems[y] = o), o.node.active = !0, i = n.Materials[y].Items[0], a = n.Materials[y].Items[1], o.Init(i, a, this._itemPrefab), this._upStarMaterialData[i] = a;
                                    if (n.Materials.length < this._upStarMaterialItems.length)
                                        for (y = n.Materials.length; y < this._upStarMaterialItems.length; y++) this._upStarMaterialItems[y].node.active = !1;
                                    return [3, 6];
                                case 3:
                                    return this.MaterialLayout.active = !0, this._materialPrefab ? [3, 5] : (c = this, [4, g.AssetsManager.Instance.LoadAsset("HolyEquipmentPanel/StrengthenMaterialItem")]);
                                case 4:
                                    if (c._materialPrefab = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._materialPrefab), [2];
                                    this._loadedAssets.push(this._materialPrefab), s.label = 5;
                                case 5:
                                    if (!this._materialItems)
                                        for (this._materialItems = [], y = 0; y < this.Materials.length; y++)(p = cc.instantiate(this._materialPrefab)).setParent(this.MaterialLayout), f = p.getComponent(_.default), this._materialItems.push(f);
                                    for (y = 0; y < this._materialItems.length; y++) this._materialItems[y].Init(this._itemPrefab, this.Materials[y], this._levelParamConfig.Data[y], y);
                                    l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_HOLYEQUIP_NEED_UPSTAR, e), l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_HOLYEQUIP_SELECT_STRENGTHEN, !1), s.label = 6;
                                case 6:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.RefreshMaterials = function(e, t) {
                    this._selectItemCount[e] = t, this.RefreshPanelInfo()
                }, t.prototype.RefreshPanelInfo = function() {
                    this.RefreshProgressBar(), this.RefreshAttrs(), this.RefreshCurrencyBar(), this.RefreshDisplayBtn()
                }, t.prototype.RefreshProgressBar = function() {
                    var e = this._progressCurrentXp;
                    this.ProgressValue.string = "" + e, this.ProgressValueLast.string = "/" + this._progressTotalXp, this.ProgressBar.progress = e / this._progressTotalXp, this.GetSelectTotalXp() >= this._maxXp ? l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_HOLYEQUIP_SELECT_STRENGTHEN, !0) : l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_HOLYEQUIP_SELECT_STRENGTHEN, !1)
                }, t.prototype.GetCurrentXp = function() {
                    for (var e = this._progressCurrentXp, t = 0; t < this._selectItemCount.length; t++) {
                        var n = this._selectItemCount[t];
                        n > 0 && (e += n * this._levelParamConfig.Data[t])
                    }
                    return e
                }, t.prototype.GetSelectTotalXp = function() {
                    for (var e = this._holyEquipData.Xp, t = 0; t < this._selectItemCount.length; t++) {
                        var n = this._selectItemCount[t];
                        n > 0 && (e += n * this._levelParamConfig.Data[t])
                    }
                    return e
                }, t.prototype.GetCurrentLevel = function() {
                    for (var e, t = this.GetSelectTotalXp(), n = this._holyEquipData.Level, o = d.ConfigCacheComponent.Instance.HolyEquipmentMaxLevel, r = n; r <= o; r++) {
                        var i = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentLevel_Config, r);
                        if (r > this._maxLevel) {
                            e = this._maxLevel;
                            break
                        }
                        if (t == i.Xp) {
                            e = r;
                            break
                        }
                        if (t < i.Xp) {
                            e = r - 1;
                            break
                        }
                        e = r
                    }
                    return e
                }, t.prototype.GetLevelAttrs = function(e) {
                    var t, n = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentLevel_Config, e);
                    if (!n) return [];
                    switch (this._holyEquipConfig.Type) {
                        case f.HeroEquipmentType.Weapon:
                            t = n.Weapon;
                            break;
                        case f.HeroEquipmentType.Coat:
                            t = n.Coat;
                            break;
                        case f.HeroEquipmentType.Glove:
                            t = n.Glove;
                            break;
                        case f.HeroEquipmentType.Shoes:
                            t = n.Shoes
                    }
                    return t
                }, t.prototype.GetStarAttrs = function(e) {
                    for (var t = [], n = 1; n <= this._holyEquipConfig.State; n++) {
                        var o = void 0;
                        n == b.HolyEquipmentState.Star ? o = e ? 100 * n + this._holyEquipData.Star + 1 : 100 * n + this._holyEquipData.Star : n == b.HolyEquipmentState.Step && (o = 100 * n + this._holyEquipData.Step);
                        var r = d.ConfigDataComponent.Instance.GetConfigById(h.HolyEquipmentStar_Config, o);
                        switch (this._holyEquipConfig.Type) {
                            case f.HeroEquipmentType.Weapon:
                                t = t.concat(r.Weapon);
                                break;
                            case f.HeroEquipmentType.Coat:
                                t = t.concat(r.Coat);
                                break;
                            case f.HeroEquipmentType.Glove:
                                t = t.concat(r.Glove);
                                break;
                            case f.HeroEquipmentType.Shoes:
                                t = t.concat(r.Shoes)
                        }
                    }
                    return t
                }, t.prototype.RefreshButtons = function() {
                    this.MaxFlag.node.active = !1, this.UpstarHint.node.active = !1, this._holyEquipData.Level >= d.ConfigCacheComponent.Instance.HolyEquipmentMaxLevel ? (this.AutoSelectBtn.node.active = !1, this.StrengthenBtn.node.active = !1, this.CurrencyBar.node.active = !1, this.UpstarBtn.node.active = !1, this.MaxFlag.node.active = !0) : this._holyEquipData.Level >= this._maxLevel ? (this.AutoSelectBtn.node.active = !1, this.StrengthenBtn.node.active = !1, this.CurrencyBar.node.active = !1, this.UpstarBtn.node.active = !0, this.UpstarHint.node.active = !0) : (this.AutoSelectBtn.node.active = !0, this.StrengthenBtn.node.active = !0, this.CurrencyBar.node.active = !0, this.UpstarBtn.node.active = !1)
                }, t.prototype.RefreshCurrencyBar = function() {
                    var e = Math.min(this.GetSelectTotalXp(), this._maxXp) - this._holyEquipData.Xp;
                    if (this._costCoin = e * this._holyEquipmentXpPrice, this.CurrencyBar.Init(f.CommonItemId.Coin, !1, void 0, this._costCoin), e <= 0) this.XpHintLabel.node.active = !1, this.BottomBar.active = !1;
                    else {
                        this.XpHintLabel.node.active = !0, this.BottomBar.active = !0, this.XpHintLabel.string = "(+" + e + ")";
                        var t = this.GetCurrentXp(),
                            n = t / this._progressTotalXp > 1 ? 1 : t / this._progressTotalXp;
                        this.BottomBar.width = 680 * n
                    }
                }, t.prototype.RefreshDisplayBtn = function() {
                    var e = y.default.Instance.IsGameModuleUnlock(b.GameModuleType.HolyEquipmentDisplace);
                    this.DisplaceBtnLockBg.active = !e[0]
                }, t.prototype.OnAutoSelect = function() {
                    var e = this._holyEquipData.Xp,
                        t = this._levelParamConfig.Data;
                    this._selectItemCount = [0, 0, 0, 0];
                    for (var n = 0; n < t.length; n++) {
                        for (var o = t[n], r = 0, i = d.DataCenter.Instance.GetItemCount(this.Materials[n]), a = 0; a < i && (r++, !((e += o) >= this._maxXp)); a++);
                        if (this._selectItemCount[n] = r, e >= this._maxXp) break
                    }
                    for (n = 0; n < this._materialItems.length; n++) this._materialItems[n].SetItemCount(this._selectItemCount[n]);
                    this.RefreshPanelInfo()
                }, t.prototype.OnStrengthen = function() {
                    for (var e = this, t = !1, n = 0; n < this._selectItemCount.length; n++)
                        if (this._selectItemCount[n] > 0) {
                            t = !0;
                            break
                        } if (!t) {
                        var o = !1;
                        for (n = 0; n < this.Materials.length; n++)
                            if (d.DataCenter.Instance.GetItemCount(this.Materials[n]) > 0) {
                                o = !0;
                                break
                            } return o ? v.UIUtlity.ShowFloatingHint("holy_equip_strengthen_material_select_hint".ToUILocale()) : v.UIUtlity.ShowFloatingHint("holy_equip_strengthen_material_empty".ToUILocale())
                    }
                    var r = d.DataCenter.Instance.GetItemCount(f.CommonItemId.Coin);
                    if (this._costCoin > r) return v.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(f.CommonItemId.Coin.ToItemName()));
                    var i = this.GetExtraMaterials();
                    i ? v.UIUtlity.ShowHintPanel(null, i, "", null, "", function() {
                        e.DoStrengthenRequestJob()
                    }, "holy_equip_extra_materials_return".ToUILocale()) : this.DoStrengthenRequestJob()
                }, t.prototype.GetExtraMaterials = function() {
                    var e, t = this.GetSelectTotalXp() - this._maxXp;
                    if (t > 0)
                        for (var n = this.Materials.length - 1; n >= 0; n--) {
                            var o = this.Materials[n],
                                r = this._levelParamConfig.Data[n],
                                i = Math.floor(t / r);
                            i <= 0 || (t -= i * r, e || (e = []), e.push({
                                ItemId: o,
                                Count: i
                            }))
                        }
                    return e
                }, t.prototype.DoStrengthenRequestJob = function() {
                    this.PlayCostSpine();
                    var e = new c.Req_Holy_EquipmentLevelUp;
                    e.Sid = this._holyEquipSid, e.Counts = this._selectItemCount, d.RpcComponent.Instance.Call(e, this.OnStrengthenSucces.bind(this))
                }, t.prototype.OnStrengthenSucces = function() {
                    this.ProgressBar.progress >= 1 && (this.PlayProgressSpine(), this.PlayStrengthSpine()), this.Init(this._holyEquipSid, this._itemPrefab), l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_HOLYEQUIP_REFRESH_TOGGLES)
                }, t.prototype.OnUpStar = function() {
                    for (var e in this._upStarMaterialData) {
                        var t = Number.parseInt(e),
                            n = this._upStarMaterialData[t];
                        if (d.DataCenter.Instance.GetItemCount(t) < n) return v.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t.ToItemName()))
                    }
                    var o = new c.Req_Holy_EquipmentStarUp;
                    o.Sid = this._holyEquipSid, d.RpcComponent.Instance.Call(o, this.OnUpStarSuccess.bind(this))
                }, t.prototype.OnUpStarSuccess = function() {
                    g.UIManager.Instance.ShowUIPanel(p.PanelConfig.HolyEquipUpStarSuccessPanel.Path, this._holyEquipSid, this._upStarAttrItemsData)
                }, t.prototype.PlayCostSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            for (e = 0; e < this._materialItems.length; e++) this._materialItems[e].PlayCostSpine();
                            return [2]
                        })
                    })
                }, t.prototype.PlayProgressSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._progressSpine ? [3, 2] : [4, g.AssetsManager.Instance.LoadAsset("HolyEquipmentPanel/HolyEquipStrengthProgressSpine")];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    (t = cc.instantiate(e)).setParent(this.SpineProgressNode), this._progressSpine = t.getComponent(sp.Skeleton), this._loadedAssets.push(e), o.label = 2;
                                case 2:
                                    return this._progressSpine.node.active = !0, this._progressSpine.setAnimation(0, "Ani_effect_shenzhuang_qianghua_jindutiao", !1), this._progressSpine.setCompleteListener(function() {
                                        n._progressSpine.node.active = !1
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.PlayStrengthSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._strengthSpine ? [3, 2] : [4, g.AssetsManager.Instance.LoadAsset("HolyEquipmentPanel/HolyEquipStrengthSpine")];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    (t = cc.instantiate(e)).setParent(this.SpineStrengthNode), this._strengthSpine = t.getComponent(sp.Skeleton), this._loadedAssets.push(e), o.label = 2;
                                case 2:
                                    return this._strengthSpine.node.active = !0, this._strengthSpine.setAnimation(0, "Ani_effect_shenzhuang_qianghua_xiaohao", !1), this._strengthSpine.setCompleteListener(function() {
                                        n._strengthSpine.node.active = !1
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, t.prototype.OnDisplaceClick = function() {
                    var e = y.default.Instance.IsGameModuleUnlock(b.GameModuleType.HolyEquipmentDisplace);
                    e[0] ? g.UIManager.Instance.ShowUIPanel(p.PanelConfig.HolyEquipmentDisplacePanel.Path, this._holyEquipSid) : v.UIUtlity.ShowFloatingHint(e[1])
                }, i([T(cc.Node)], t.prototype, "TitleNode", void 0), i([T(S.default)], t.prototype, "ProgressBar", void 0), i([T(cc.Label)], t.prototype, "ProgressValue", void 0), i([T(cc.Label)], t.prototype, "ProgressValueLast", void 0), i([T([C.default])], t.prototype, "AttrItems", void 0), i([T(cc.Label)], t.prototype, "MaterialTitle", void 0), i([T(cc.Node)], t.prototype, "MaterialLayout", void 0), i([T(cc.Node)], t.prototype, "UpStarMaterialLayout", void 0), i([T(cc.Button)], t.prototype, "AutoSelectBtn", void 0), i([T(cc.Label)], t.prototype, "AutoSelectBtnLabel", void 0), i([T(cc.Button)], t.prototype, "StrengthenBtn", void 0), i([T(cc.Label)], t.prototype, "StrengthenBtnLabel", void 0), i([T(m.default)], t.prototype, "CurrencyBar", void 0), i([T(cc.Button)], t.prototype, "UpstarBtn", void 0), i([T(cc.Label)], t.prototype, "UpstarBtnLabel", void 0), i([T(cc.Label)], t.prototype, "UpstarHint", void 0), i([T(cc.Label)], t.prototype, "MaxFlag", void 0), i([T(cc.Label)], t.prototype, "XpHintLabel", void 0), i([T(cc.Node)], t.prototype, "BottomBar", void 0), i([T(cc.Node)], t.prototype, "SpineStrengthNode", void 0), i([T(cc.Node)], t.prototype, "SpineProgressNode", void 0), i([T(cc.Button)], t.prototype, "DisplaceBtn", void 0), i([T(cc.Node)], t.prototype, "DisplaceBtnLockBg", void 0), i([T(cc.Label)], t.prototype, "DisplaceBtnLabel", void 0), n = i([A], t)
            }(cc.Component);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttributeItemComponent": "AttributeItemComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "./HolyEquipTitleAndItem": "HolyEquipTitleAndItem",
        "./HolyEquipUpStarItem": "HolyEquipUpStarItem",
        "./StrengthenMaterialItem": "StrengthenMaterialItem"
    }],
    HolyEquipmentUpStarPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "67be2JCfmBDa7LikAj4p1JI", "HolyEquipmentUpStarPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../Components/AttributeItemComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("./HolyEquipUpStarItem"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.OldItemContainer = null, t.NewItemContainer = null, t.AttrTitle = null, t.LevelItem = null, t.Attritems = [], t.MaterialTitle = null, t.MaterialContainer = null, t.UpStarBtn = null, t.UpStarBtnLabel = null, t.UnlockSoulNode = null, t.UnlockSoulHint = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), n = this.LoadDynamicAsset("HolyEquipmentPanel/HolyEquipUpStarItem"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._equipUpStarPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "holy_equip_upstar_title".ToUILocale(), this.AttrTitle.string = "holy_equip_upstar_effect".ToUILocale(), this.MaterialTitle.string = "holy_equip_upstar_material".ToUILocale(), this.UpStarBtnLabel.string = "gem_processing".ToUILocale(), this.UnlockSoulHint.string = "holy_equip_unlock_soul".ToUILocale(), this.UpStarBtn.node.on("click", this.OnUpStar, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._holyEquipSid = t[0]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ConfigHoluEquipData(), this.ConfigHolyEquipItem(), this.ConfigLevelInfo(), this.ConfigAttrInfo(), this.ConfigUnlockSoulContainer(), this.ConfigMaterilContainer()
                }, t.prototype.ConfigHoluEquipData = function() {
                    this._holyEquipData = p.DataCenter.Instance.GetDataById(c.HolyEquipment_Model, this._holyEquipSid), this._holyEquipConfig = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipment_Config, this._holyEquipData.ItemId), this._holyEquipLevelConfig = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentLevel_Config, this._holyEquipData.Level), this._attrItemsData = []
                }, t.prototype.ConfigHolyEquipItem = function() {
                    var e;
                    this._oldItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.OldItemContainer), this._oldItemComponent = e.getComponent(f.ItemComponent)), this._newItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.NewItemContainer), this._newItemComponent = e.getComponent(f.ItemComponent)), this._oldItemComponent.Init({
                        ItemId: this._holyEquipData.ItemId,
                        StarLevel: this._holyEquipData.Star
                    }, f.ItemComponentType.ItemWithStar), this._newItemComponent.Init({
                        ItemId: this._holyEquipData.ItemId,
                        StarLevel: this._holyEquipData.Star + 1
                    }, f.ItemComponentType.ItemWithStar)
                }, t.prototype.ConfigLevelInfo = function() {
                    var e = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, 100 * h.HolyEquipmentState.Star + this._holyEquipData.Star);
                    this._nextBaseStarConfig = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, 100 * h.HolyEquipmentState.Star + this._holyEquipData.Star + 1);
                    var t = {
                        Name: "level_limit".ToUILocale(),
                        OldValue: "Lv." + e.MaxLevel,
                        NewValue: "Lv." + this._nextBaseStarConfig.MaxLevel
                    };
                    this.LevelItem.Init(t), this._attrItemsData.push(t)
                }, t.prototype.ConfigAttrInfo = function() {
                    for (var e = this.GetLevelAttrs(), t = 0; t < e.length; t++) {
                        var n = e[t].Items[0],
                            o = e[t].Items[1],
                            r = this.GetFuckingFinalAttrValue(n, o, !1),
                            i = this.GetFuckingFinalAttrValue(n, o, !0),
                            a = y.default.GetHeroAttributeValue(r, n),
                            s = y.default.GetHeroAttribute(n, i),
                            l = {
                                Name: s.Name,
                                Icon: s.Icon,
                                OldValue: "+" + a,
                                NewValue: "+" + s.Value
                            };
                        this.Attritems[t].node.active = !0, this.Attritems[t].Init(l), this._attrItemsData.push(l)
                    }
                    for (t = e.length; t < this.Attritems.length; t++) this.Attritems[t].node.active = !1
                }, t.prototype.GetFuckingFinalAttrValue = function(e, t, n) {
                    for (var o = this._holyEquipConfig.Attrs, r = 0; r < o.length; r++) o[r].Items[0] == e && (t += o[r].Items[1]);
                    var i = this.GetStarAttrs(n);
                    for (r = 0; r < i.length; r++) i[r].Items[0] == e && (t += i[r].Items[1]);
                    return t
                }, t.prototype.GetStarAttrs = function(e) {
                    for (var t = [], n = 1; n <= this._holyEquipConfig.State; n++) {
                        var o = void 0;
                        n == h.HolyEquipmentState.Star ? o = e ? 100 * n + this._holyEquipData.Star + 1 : 100 * n + this._holyEquipData.Star : n == h.HolyEquipmentState.Step && (o = 100 * n + this._holyEquipData.Step);
                        var r = p.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, o);
                        switch (this._holyEquipConfig.Type) {
                            case h.HeroEquipmentType.Weapon:
                                t = t.concat(r.Weapon);
                                break;
                            case h.HeroEquipmentType.Coat:
                                t = t.concat(r.Coat);
                                break;
                            case h.HeroEquipmentType.Glove:
                                t = t.concat(r.Glove);
                                break;
                            case h.HeroEquipmentType.Shoes:
                                t = t.concat(r.Shoes)
                        }
                    }
                    return t
                }, t.prototype.GetLevelAttrs = function() {
                    var e;
                    switch (this._holyEquipConfig.Type) {
                        case h.HeroEquipmentType.Weapon:
                            e = this._holyEquipLevelConfig.Weapon;
                            break;
                        case h.HeroEquipmentType.Coat:
                            e = this._holyEquipLevelConfig.Coat;
                            break;
                        case h.HeroEquipmentType.Glove:
                            e = this._holyEquipLevelConfig.Glove;
                            break;
                        case h.HeroEquipmentType.Shoes:
                            e = this._holyEquipLevelConfig.Shoes
                    }
                    return e
                }, t.prototype.ConfigUnlockSoulContainer = function() {
                    var e = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipSoulUnlock");
                    this._nextBaseStarConfig.Id == e ? this.UnlockSoulNode.active = !0 : this.UnlockSoulNode.active = !1
                }, t.prototype.ConfigMaterilContainer = function() {
                    this.MaterialContainer.destroyAllChildren();
                    var e = this._nextBaseStarConfig.Materials;
                    this._materialData = {};
                    for (var t = 0; t < e.length; t++) {
                        var n = e[t].Items[0],
                            o = e[t].Items[1],
                            r = cc.instantiate(this._equipUpStarPrefab);
                        r.setParent(this.MaterialContainer), r.getComponent(_.default).Init(n, o, this._itemPrefab), this._materialData[n] = o
                    }
                }, t.prototype.OnUpStar = function() {
                    for (var e in this._materialData) {
                        var t = Number.parseInt(e),
                            n = this._materialData[t];
                        if (p.DataCenter.Instance.GetItemCount(t) < n) return I.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t.ToItemName()))
                    }
                    var o = new c.Req_Holy_EquipmentStarUp;
                    o.Sid = this._holyEquipSid, p.RpcComponent.Instance.Call(o, this.OnUpStarSuccess.bind(this))
                }, t.prototype.OnUpStarSuccess = function() {
                    g.UIManager.Instance.BackUIPanel(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyEquipUpStarSuccessPanel.Path, this._holyEquipSid, this._attrItemsData)
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Node)], t.prototype, "OldItemContainer", void 0), i([b(cc.Node)], t.prototype, "NewItemContainer", void 0), i([b(cc.Label)], t.prototype, "AttrTitle", void 0), i([b(m.default)], t.prototype, "LevelItem", void 0), i([b(m.default)], t.prototype, "Attritems", void 0), i([b(cc.Label)], t.prototype, "MaterialTitle", void 0), i([b(cc.Node)], t.prototype, "MaterialContainer", void 0), i([b(cc.Button)], t.prototype, "UpStarBtn", void 0), i([b(cc.Label)], t.prototype, "UpStarBtnLabel", void 0), i([b(cc.Node)], t.prototype, "UnlockSoulNode", void 0), i([b(cc.Label)], t.prototype, "UnlockSoulHint", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttributeItemComponent": "AttributeItemComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./HolyEquipUpStarItem": "HolyEquipUpStarItem"
    }],
    HolyFurnacePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2206dIDYFlHEp00Lps8Se5o", "HolyFurnacePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../Components/NodeJiggling"),
            m = e("../Components/CustomProgressBar"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../Components/CustomToggle"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../Consts/Consts"),
            S = e("../Components/EquipmentGalleryEntryItem"),
            w = e("../../Components/Components"),
            P = e("../../Auxiliary/ModuleGuideManager"),
            A = e("./HolyEquipmentStrengthenPanel"),
            T = e("../Components/AttrComponent4"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property;
        (function(e) {
            e[e.Equip = 0] = "Equip", e[e.Gem = 1] = "Gem", e[e.EquipmentGallery = 2] = "EquipmentGallery", e[e.None = 9999] = "None"
        })(l || (l = {}));
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.HeaderContainer = null, t.EquipAndGemContainer = null, t.WindowFrameNode = null, t.EquipmentGalleryContainer = null, t.EquipmentGalleryTitle = null, t.EquipmentGalleryRuleButton = null, t.EquipmentContainer = null, t.EquipmentResonanceTip = null, t.EquipmentResonanceTitle = null, t.EquipmentResonanceAttrContainer = null, t.EquipmentResonanceDetailButton = null, t.EquipmentLevelAttrTitle = null, t.EquipmentLevelAttrContainer = null, t.EquipmentResonanceDetailLabel = null, t.TotalAttrButton = null, t.TotalAttrButtonLabel = null, t.Title = null, t.ProgressBarLabel = null, t.DoOnceLabel = null, t.DoFifthLabel = null, t.ProgressValueLabel = null, t.HeaderCurrency = null, t.OnceCostCurrency = null, t.FifthCostCurrency = null, t.SmelterBar = null, t.DoOnceButton = null, t.DoFifthButton = null, t.DetailButton = null, t.ReturnButton = null, t.Chest = null, t.CombineSpine = null, t.FullScreenMask = null, t.RedDot1 = null, t.RedDot5 = null, t.RedDotGiftPack = null, t.GiftButton = null, t.GiftButtonLabel = null, t.Toggles = [], t.BGs = [], t.BG = null, t.EquipRelatedNodes = [], t.GemRelatedNodes = [], t.ShopButton = null, t.ShopButtonLabel = null, t.GemAvatarLower = null, t.TimeLbl = null, t.TimeNode = null, t.DisplaceBtn = null, t.DisplaceBtnLockBg = null, t.DisplaceBtnLabel = null, t._gemStand = "standby_baoshi", t._smelterAniName = "UI_effect_shenshengronglu_ronglian", t._gemAniName = "baoshiduanzao", t._smelterAniPrefab = null, t._gemUpperAniPrefab = null, t._roleAniPrefab = null, t._ingredientId = 111, t._composeItemId = 113, t._paramMode = 0, t._modeToTitle = ["holyfurnace", "gemfurnace", "HolyEquipmentGallery_Title"], t._modeToGiftName = ["holyfurnace_gift", "gemfurnace_gift"], t._modeToMaterialId = [C.CommonItemId.SmelterSmeltMaterial, -1], t._modeToLeftMatCost = [0, 0], t._modeToRightMatCost = [0, 0], t._modeToRuleData = [], t._modeToGiftIds = [], t._modeToGiftPanelParam = [-2, -3], t._deadLine = 0, t.EQUIPMENT_GALLERY_TYPE_ARRAY = [C.HeroEquipmentType.Weapon, C.HeroEquipmentType.Coat, C.HeroEquipmentType.Glove, C.HeroEquipmentType.Shoes], t._equipmentGalleryEntryComponentArray = [], t._isSetEquipmentGalleryUI = !1, t._resonanceAttrComponentArray = [], t._levelAttrComponentArray = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, c = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = w.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_HolyFurnace_HeroId"), this._gemHeroConfig = w.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, t), n = w.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_HolyFurnace2_HeroId"), this._heroConfig = w.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, n), o = this.LoadDynamicAsset("HolyFurnace/Component/SmelterEffect"), r = this.LoadDynamicAsset(this._heroConfig.UIAvatar + "/Avatar", cc.Prefab), i = this.LoadDynamicAsset("HolyFurnace/PNG/holyFurnace", cc.SpriteAtlas), a = this.LoadDynamicAsset("HolyFurnace/Component/GemUpper"), l = this.LoadDynamicAsset(this._gemHeroConfig.UIAvatar + "/Avatar", cc.Prefab), [4, Promise.all([o, r, i, a, l]).then(function(e) {
                                    c._smelterAniPrefab = e[0], c._roleAniPrefab = e[1], c._atlas = e[2], c._gemUpperAniPrefab = e[3], c._heroPrefab = e[4]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
            }, t.prototype.MultiLanguageAssign = function() {
                this.ProgressBarLabel.string = "luckycharm_composeValue".ToUILocale(), this.ShopButtonLabel.string = "shop_mainTittle".ToUILocale(), this.DisplaceBtnLabel.string = "holy_equip_displace_title".ToUILocale()
            }, t.prototype.FixedValueAssign = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(d.CardCommonSummon_Config, C.CardCommonSummonType.SmelterSmelt),
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.CardCommonSummon_Config, C.CardCommonSummonType.SmelterSmelt5);
                this._modeToLeftMatCost = [e.ConsumeItem[0].Items[1], 100], this._modeToRightMatCost = [t.ConsumeItem[0].Items[1], 10 * this._modeToLeftMatCost[1]], this._modeToMaterialId[l.Equip] = e.ConsumeItem[0].Items[0];
                var n = {
                        name: "holyfurnace_RuleMainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["holyfurnace_RuleText".ToUILocale()]
                    },
                    o = {
                        name: "gemfurnace_RuleMainTitle".ToUILocale(),
                        titles: ["gemfurnace_RuleSubtitle".ToUILocale()],
                        contents: ["gemfurnace_RuleText".ToUILocale()]
                    };
                this._modeToRuleData = [n, o], this._modeToGiftIds[l.Equip] = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, C.LevelParamType.SmelterSmelt).Data;
                var r = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, 152);
                this._modeToGiftIds[l.Gem] = r.Data;
                var i = h.ConfigDataComponent.Instance.GetConfigById(d.CardCommonSummon_Config, C.CardCommonSummonType.GemForgeSummon);
                this._modeToMaterialId[l.Gem] = i.ConsumeItem[0].Items[0], this._modeToLeftMatCost[l.Gem] = i.ConsumeItem[0].Items[1], i = h.ConfigDataComponent.Instance.GetConfigById(d.CardCommonSummon_Config, C.CardCommonSummonType.GemForgeSummon10), this._modeToRightMatCost[l.Gem] = i.ConsumeItem[0].Items[1]
            }, t.prototype.OnEvent = function() {
                this.DoOnceButton.node.on("click", this.OnOnceButtonClick, this), this.DoFifthButton.node.on("click", this.OnFifthButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this), this.Chest.node.on(cc.Node.EventType.TOUCH_END, this.OnChestTouch, this), this.DisplaceBtn.node.on("click", this.OnDisplaceClick, this);
                for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].Init(this._modeToTitle[e].ToUILocale()), this.Toggles[e].node.on("toggle", this.OnToggleSwitch, this);
                this.DisplaceBtn.node.active = A.default.CheckIsShowDisplaceBtn()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), t[0] && (this._paramMode = t[0])
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this), t || this.OnToggleSwitch(this.Toggles[this._paramMode]), this.SetGemNodeActive(t), this._mode == l.EquipmentGallery ? this.RefreshGalleryEquipmentData() : (this.VariedValueAssign(), this.RefreshDisplayBtn()), this.ShowGuide(), I.RedDotManager.Instance.Bind(this.Toggles[l.EquipmentGallery].node, I.RedDotManager.Instance.RedDot.HolyEquipmentGalleryToggleNode, 0, 0)
            }, t.prototype.SetGemNodeActive = function() {
                var e = v.default.Instance.IsGameModuleUnlock(2022)[0],
                    t = !1;
                for (var n in h.DataCenter.Instance.ActivityConfigs)
                    if (h.DataCenter.Instance.ActivityConfigs[n].Common.Type == C.ActivityType.GemForgeSummon) {
                        var o = h.DataCenter.Instance.ActivityConfigs[n].Common,
                            r = o.StartTime,
                            i = v.default.Instance.ComputeDeadTime(o),
                            a = h.RpcComponent.Instance.ServerTime;
                        a >= r && a < i && (this._deadLine = i, t = !0)
                    } this.Toggles[l.Gem].node.active = e && t;
                var s = v.default.Instance.IsGameModuleUnlock(C.GameModuleType.HolyEquipGallery)[0],
                    c = v.default.Instance.IsGameModuleOpen(C.GameModuleType.HolyEquipGallery);
                this.Toggles[l.EquipmentGallery].node.active = s && c
            }, t.prototype.CountDownActivityTime = function() {
                var e = h.RpcComponent.Instance.ServerTime,
                    t = this._deadLine - e;
                t < 0 && c.UIManager.Instance.BackUIPanel(), this.TimeLbl.string = "explore_time".ToUILocale().Fmt(v.default.ActivityTimeLeftFormat(t))
            }, t.prototype.VariedValueAssign = function() {
                this.RefreshCurrencyBar();
                var e = h.DataCenter.Instance.GetItemCount(this._composeItemId);
                this.SmelterBar.progress = e / this._fullMelterValue, this.ProgressValueLabel.string = e + "/" + this._fullMelterValue, e < this._fullMelterValue ? this.Chest.Disable() : this.Chest.Enable(), I.RedDotManager.Instance.Bind(this.Toggles[l.Equip].node, I.RedDotManager.Instance.RedDot.HolyFurnaceNode, 0, 0), I.RedDotManager.Instance.Bind(this.Toggles[l.Gem].node, I.RedDotManager.Instance.RedDot.GemFurnaceNode, 0, 0), this.RefreshReddot()
            }, t.prototype.RefreshDisplayBtn = function() {
                if (v.default.Instance.IsGameModuleOpen(b.GameModuleType.HolyEquipmentDisplace)) {
                    var e = v.default.Instance.IsGameModuleUnlock(b.GameModuleType.HolyEquipmentDisplace);
                    this.DisplaceBtnLockBg.active = !e[0]
                }
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnDetailButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(u.PanelConfig.RulePanel.Path, this._modeToRuleData[this._mode])
            }, t.prototype.OnGiftButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(u.PanelConfig.MallElderGiftPackPanel.Path, this._modeToGiftPanelParam[this._mode], this._atlas.getSpriteFrame("gift_banner"))
            }, t.prototype.OnShopButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(u.PanelConfig.UniversalShopPanel.Path, this._atlas.getSpriteFrame("gem_shop_banner"), 1004)
            }, t.prototype.OnOnceButtonClick = function() {
                switch (this._costValue = this._modeToLeftMatCost[this._mode], this._mode) {
                    case l.Equip:
                        this.Cost(1);
                        break;
                    case l.Gem:
                        this.GemCost(1)
                }
            }, t.prototype.OnFifthButtonClick = function() {
                switch (this._costValue = this._modeToRightMatCost[this._mode], this._mode) {
                    case l.Equip:
                        this.Cost(5);
                        break;
                    case l.Gem:
                        this.GemCost(10)
                }
            }, t.prototype.OnChestTouch = function() {
                c.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyFurnaceSelectEquipHint.Path, this._fullMelterValue, this._composeItemId)
            }, t.prototype.OnToggleSwitch = function(e) {
                var t = Number.parseInt(e.node.name);
                if (t != this._mode) {
                    switch (this._mode = t, e.isChecked = !0, this.BG.spriteFrame = this.BGs[this._mode], this.SetNodesActive(this.EquipRelatedNodes, this._mode == l.Equip), this.SetNodesActive(this.GemRelatedNodes, this._mode == l.Gem), this.RefreshReddot(), this.SetGemNodeActive(!0), this.SmelterBar.node.active = !1, this.WindowFrameNode.active = !1, this.EquipmentGalleryContainer.active = !1, this.HeaderContainer.active = !0, this.EquipAndGemContainer.active = !0, this._mode) {
                        case l.Equip:
                            this.SmelterBar.node.active = !0, this._fullMelterValue = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("SmelterSmeltFullCount"), this.DoOnceLabel.string = "holyfurnace_once".ToUILocale(), this.DoFifthLabel.string = "holyfurnace_fifth".ToUILocale();
                            break;
                        case l.Gem:
                            this.DoOnceLabel.string = "gemfurnace_mergeTimes".ToUILocale().Fmt(1), this.DoFifthLabel.string = "gemfurnace_mergeTimes".ToUILocale().Fmt(10);
                            break;
                        case l.EquipmentGallery:
                            return this.WindowFrameNode.active = !0, this.EquipmentGalleryContainer.active = !0, this.HeaderContainer.active = !1, this.EquipAndGemContainer.active = !1, void(this._isSetEquipmentGalleryUI || (this._isSetEquipmentGalleryUI = !0, this.SetEquipmentGralleryUI(), this._equipmentResonanceConfigArray = w.ConfigDataComponent.Instance.GetArrayConfig(d.HolyEquipResonance_Config), this.RefreshGalleryEquipmentData()))
                    }
                    this.RefreshCurrencyBar(), this.Title.string = this._modeToTitle[this._mode].ToUILocale(), this.GiftButtonLabel.string = this._modeToGiftName[this._mode].ToUILocale();
                    var n = this._modeToMaterialId[this._mode];
                    this.OnceCostCurrency.Init(n, !1, this._modeToLeftMatCost[this._mode]), this.FifthCostCurrency.Init(n, !1, this._modeToRightMatCost[this._mode])
                }
            }, t.prototype.SetEquipmentGralleryUI = function() {
                this.EquipmentGalleryTitle.string = "HolyEquipmentGallery_Title".ToUILocale(), this.EquipmentResonanceTip.string = "HolyEquipmentGallery_Resonance_Active_Tip".ToUILocale(), this.EquipmentResonanceTitle.string = "HolyEquipmentGallery_Resonance".ToUILocale(), this.EquipmentLevelAttrTitle.string = "HolyEquipmentGallery_Level_Addtion".ToUILocale(), this.EquipmentResonanceDetailLabel.string = "ChaosTemple_TotalAttr".ToUILocale(), this.TotalAttrButtonLabel.string = "HolyEquipmentGallery_Total_Attr".ToUILocale(), this.EquipmentGalleryRuleButton.node.on("click", this.OnEquipmentGralleryRuleButtonClick, this), this.EquipmentResonanceDetailButton.node.on("click", this.OnEquipmentResonanceDetailButtonClick, this), this.TotalAttrButton.node.on("click", this.OnTotalAttrButtonClick, this)
            }, t.prototype.RefreshGalleryEquipmentData = function() {
                this._currentGalleryLevel = w.DataCenter.Instance.GetArrayData(C.UserDataKey.HolyEquipGalleryLevel), this.SetGalleryEquipmentModel(), this.SetEquipmentEntry(), this.SetEquipmentResonanceAttrContainer(), this.SetEquipmentLevelAttrContainer()
            }, t.prototype.SetGalleryEquipmentModel = function() {
                this._equipmentModelArray = {}, this._gralleryStarcountArray = [0, 0, 0, 0, 0];
                for (var e = w.DataCenter.Instance.GetDataList(p.HolyEquipment_Model), t = 0; t < e.length; t++) {
                    var n = e[t];
                    if (n.GallerySlot) {
                        var o = w.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipment_Config, n.ItemId);
                        this._gralleryStarcountArray[o.Type] += n.Star, this._equipmentModelArray[n.GallerySlot] = n
                    }
                }
            }, t.prototype.SetEquipmentEntry = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._equipmentGalleryEntryPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("HolyFurnace/Component/EquipmentGalleryEntryItem", cc.Prefab)]);
                            case 1:
                                e._equipmentGalleryEntryPrefab = s.sent(), this.isValid || c.AssetsManager.Instance.UnloadAsset(this._equipmentGalleryEntryPrefab), s.label = 2;
                            case 2:
                                for (t = [I.RedDotManager.Instance.InstanceRedDot.HolyEquipmentGalleryEntry_0, I.RedDotManager.Instance.InstanceRedDot.HolyEquipmentGalleryEntry_1, I.RedDotManager.Instance.InstanceRedDot.HolyEquipmentGalleryEntry_2, I.RedDotManager.Instance.InstanceRedDot.HolyEquipmentGalleryEntry_3], n = 0; n < this.EQUIPMENT_GALLERY_TYPE_ARRAY.length; n++)(o = this._equipmentGalleryEntryComponentArray[n]) || ((r = cc.instantiate(this._equipmentGalleryEntryPrefab)).setParent(this.EquipmentContainer), o = r.getComponent(S.default), this._equipmentGalleryEntryComponentArray[n] = o), i = this.EQUIPMENT_GALLERY_TYPE_ARRAY[n], a = this._currentGalleryLevel[i - 1] ? this._currentGalleryLevel[i - 1] : 0, o.Init(i, this._gralleryStarcountArray[i], a, this._atlas), I.RedDotManager.Instance.BindInstance(o.node, t[n], {
                                    Value1: i
                                }, -60, -80);
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetEquipmentResonanceAttrContainer = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, u, p, f, y, g, m;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                for (e = null, l = 0; l < this._equipmentResonanceConfigArray.length; l++) {
                                    for (t = this._equipmentResonanceConfigArray[l], n = 0, o = 1; o < this._gralleryStarcountArray.length; o++) t.Requirements <= this._gralleryStarcountArray[o] && n++;
                                    if (n < this.EQUIPMENT_GALLERY_TYPE_ARRAY.length) break;
                                    e = t
                                }
                                return this._equipmentGalleryAttrPrefab ? [3, 2] : (r = this, [4, this.LoadDynamicAsset("ItemsComponent/AttrComponent4", cc.Prefab)]);
                            case 1:
                                if (r._equipmentGalleryAttrPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._equipmentGalleryAttrPrefab), [2];
                                s.label = 2;
                            case 2:
                                for (i = e ? h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipResonance_Config, e.Id + 1) : this._equipmentResonanceConfigArray[0], a = e || this._equipmentResonanceConfigArray[0], l = 0; l < a.Attrs.length; l++)(u = this._resonanceAttrComponentArray[l]) || ((p = cc.instantiate(this._equipmentGalleryAttrPrefab)).setParent(this.EquipmentResonanceAttrContainer), u = p.getComponent(T.default), this._resonanceAttrComponentArray[l] = u), f = a.Attrs[l].Items, y = e ? f[1] : 0, g = i ? i.Attrs[l].Items[1] - y : 0, m = v.default.GetHeroAttribute(f[0], y), g > 0 ? u.Init(f[0], y, {
                                    AttrName: m.Name,
                                    AddValue: g,
                                    NodeWidth: 952,
                                    ValueNodeWidth: 685
                                }) : u.Init(f[0], y, {
                                    AttrName: m.Name,
                                    NodeWidth: 952,
                                    ValueNodeWidth: 685
                                });
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetEquipmentLevelAttrContainer = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, u, f, y, g, m, I, _ = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this._equipmentGalleryAttrPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("ItemsComponent/AttrComponent4", cc.Prefab)]);
                            case 1:
                                if (e._equipmentGalleryAttrPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._equipmentGalleryAttrPrefab), [2];
                                s.label = 2;
                            case 2:
                                for (t = {}, n = 0; n < this.EQUIPMENT_GALLERY_TYPE_ARRAY.length; n++) {
                                    switch (o = this._currentGalleryLevel[n] ? this._currentGalleryLevel[n] : 1, r = w.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipGalleryLevel_Config, o), i = void 0, this.EQUIPMENT_GALLERY_TYPE_ARRAY[n]) {
                                        case C.HeroEquipmentType.Weapon:
                                            i = r.Attrs1;
                                            break;
                                        case C.HeroEquipmentType.Coat:
                                            i = r.Attrs2;
                                            break;
                                        case C.HeroEquipmentType.Glove:
                                            i = r.Attrs3;
                                            break;
                                        case C.HeroEquipmentType.Shoes:
                                            i = r.Attrs4
                                    }
                                    for (a = 0; a < i.length; a++) l = i[a].Items[0], u = this._currentGalleryLevel[n] ? i[a].Items[1] : 0, t[l] ? t[l] += u : t[l] = u
                                }
                                for (y in w.DataCenter.Instance.GetDataList(p.HolyEquipment_Model).forEach(function(e) {
                                        if (e.GallerySlot) {
                                            var n = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipment_Config, e.ItemId),
                                                o = 10 + n.Type;
                                            if (t = _.GetAttrDataMap(t, o, e.Star), e.Step) {
                                                var r = 10 * n.State + n.Type;
                                                t = _.GetAttrDataMap(t, r, e.Step - 1)
                                            }
                                        }
                                    }), f = 0, t)(g = this._levelAttrComponentArray[f]) || ((m = cc.instantiate(this._equipmentGalleryAttrPrefab)).setParent(this.EquipmentLevelAttrContainer), g = m.getComponent(T.default), this._levelAttrComponentArray[f] = g), I = v.default.GetHeroAttribute(Number(y), t[y]), g.Init(Number(y), t[y], {
                                    AttrName: I.Name,
                                    NodeWidth: 467,
                                    ValueNodeWidth: 263
                                }), f++;
                                return [2]
                        }
                    })
                })
            }, t.prototype.GetAttrDataMap = function(e, t, n) {
                for (var o = w.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipSlotAddon_Config, t).AllAttrIds[n], r = w.ConfigDataComponent.Instance.GetConfigById(d.CommonAttrs_Config, o), i = 0; i < r.Attrs.length; i++) {
                    var a = r.Attrs[i].Items[0],
                        s = r.Attrs[i].Items[1];
                    e[a] ? e[a] += s : e[a] = s
                }
                return e
            }, t.prototype.Cost = function(e) {
                var t = this;
                if (!h.DataCenter.Instance.IsItemEnough(this._modeToMaterialId[this._mode], this._costValue)) return f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._modeToMaterialId[this._mode].ToItemName())), void c.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, this._modeToMaterialId[this._mode]);
                var n = new p.Req_Card_CommonSummon;
                n.Type = 1 == e ? C.CardCommonSummonType.SmelterSmelt : C.CardCommonSummonType.SmelterSmelt5, n.ItemId = this._modeToMaterialId[this._mode], h.RpcComponent.Instance.Call(n, function(e) {
                    if (t.VariedValueAssign(), t.RefreshDisplayBtn(), null == t._smelterAni) {
                        var n = cc.instantiate(t._smelterAniPrefab);
                        n.setParent(t.CombineSpine), t._smelterAni = n.getComponent(sp.Skeleton)
                    }
                    t._smelterAni.node.active = !0, t.FullScreenMask.active = !0, t._smelterAni.setAnimation(0, t._smelterAniName, !1) && (t.scheduleOnce(function() {
                        var n = v.default.ConverIIntArraysToUserItems(e.Items);
                        f.UIUtlity.ShwDisplayRewardPanel(n, 0, [], !0), t.FullScreenMask.active = !1
                    }, 1.1), t._smelterAni.setCompleteListener(function() {
                        t._smelterAni.node.active = !1
                    }))
                })
            }, t.prototype.GemCost = function(e) {
                var t = this;
                if (!h.DataCenter.Instance.IsItemEnough(this._modeToMaterialId[this._mode], this._costValue)) return f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._modeToMaterialId[this._mode].ToItemName())), void c.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, this._modeToMaterialId[this._mode]);
                var n = new p.Req_Card_CommonSummon;
                n.ItemId = this._modeToMaterialId[this._mode], n.Type = 1 == e ? C.CardCommonSummonType.GemForgeSummon : C.CardCommonSummonType.GemForgeSummon10, h.RpcComponent.Instance.Call(n, function(e) {
                    if (t.GemAvatarLower.setAnimation(0, "Ani_UI_effect_baoshiduanzaochang_dazao02", !1), null == t._gemUpperAni) {
                        var n = cc.instantiate(t._gemUpperAniPrefab);
                        c.UIManager.Instance.SetParentNode(n, c.UINodeType.Independent), n.y = 100, t._gemUpperAni = n.getComponent(sp.Skeleton)
                    }
                    t._gemUpperAni.node.active = !0, t._gemUpperAni.setAnimation(0, "Ani_UI_effect_baoshiduanzaochang_dazao", !1), t._gemUpperAni.setCompleteListener(function() {
                        t._gemUpperAni.node.active = !1
                    }), t.scheduleOnce(function() {
                        f.UIUtlity.ShwDisplayRewardPanel(v.default.ConverIIntArraysToUserItems(e.Items))
                    }, 1.2), t._heroSpine.setAnimation(0, t._gemAniName, !1), t.FullScreenMask.active = !0, t._heroSpine.setCompleteListener(function() {
                        t._heroSpine.setAnimation(0, t._gemStand, !0), t.FullScreenMask.active = !1
                    })
                })
            }, t.prototype.SetNodesActive = function(e, t) {
                e.forEach(function(e) {
                    e.active = t
                })
            }, t.prototype.RefreshCurrencyBar = function() {
                var e = h.DataCenter.Instance.GetItemCount(this._modeToMaterialId[this._mode]);
                this.HeaderCurrency.Init(this._modeToMaterialId[this._mode]), this.OnceCostCurrency.SetFixedColor(e < this._modeToLeftMatCost[this._mode] ? cc.Color.RED : cc.Color.WHITE), this.FifthCostCurrency.SetFixedColor(e < this._modeToRightMatCost[this._mode] ? cc.Color.RED : cc.Color.WHITE)
            }, t.prototype.RefreshReddot = function() {
                if (this._mode != l.EquipmentGallery) {
                    this.RedDot5.active = h.DataCenter.Instance.IsItemEnough(this._modeToMaterialId[this._mode], this._modeToRightMatCost[this._mode]), this.RedDot1.active = !this.RedDot5.active && h.DataCenter.Instance.IsItemEnough(this._modeToMaterialId[this._mode], this._modeToLeftMatCost[this._mode]), this.RedDotGiftPack.active = !1;
                    for (var e = 0; e < this._modeToGiftIds[this._mode].length; e++) {
                        var t = h.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, this._modeToGiftIds[this._mode][e]);
                        if (0 == t.Money && (0 == t.LimitCount || v.default.Instance.GetGiftBuyCount(t.Id) < t.LimitCount)) {
                            this.RedDotGiftPack.active = !0;
                            break
                        }
                    }
                }
            }, t.prototype.OnDisplaceClick = function() {
                var e = v.default.Instance.IsGameModuleUnlock(b.GameModuleType.HolyEquipmentDisplace);
                e[0] ? c.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyEquipmentDisplaceListPanel.Path) : f.UIUtlity.ShowFloatingHint(e[1])
            }, t.prototype.OnEquipmentGralleryRuleButtonClick = function() {
                var e = {
                    name: "HolyEquipmentGallery_Rule_Name".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["HolyEquipmentGallery_Rule_Content".ToUILocale()]
                };
                f.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnEquipmentResonanceDetailButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyEquipmentGalleryResonancePanel.Path, this._gralleryStarcountArray)
            }, t.prototype.OnTotalAttrButtonClick = function() {}, t.prototype.onDestroy = function() {
                for (var e = [this._smelterAni, this._gemUpperAni], t = 0; t < e.length; t++) e[t] && e[t].destroy();
                this.unscheduleAllCallbacks()
            }, t.prototype.ShowGuide = function() {
                P.default.instance.CheckGameModeuleGuideNeedShow(b.GameModuleType.HolyEquipGallery) && (P.default.instance.ShowNPCDialogs([1031, 1030]), P.default.instance.CompleteGameModuleWeakGuide(b.GameModuleType.HolyEquipGallery))
            }, i([k(cc.Node)], t.prototype, "HeaderContainer", void 0), i([k(cc.Node)], t.prototype, "EquipAndGemContainer", void 0), i([k(cc.Node)], t.prototype, "WindowFrameNode", void 0), i([k(cc.Node)], t.prototype, "EquipmentGalleryContainer", void 0), i([k(cc.Label)], t.prototype, "EquipmentGalleryTitle", void 0), i([k(cc.Button)], t.prototype, "EquipmentGalleryRuleButton", void 0), i([k(cc.Node)], t.prototype, "EquipmentContainer", void 0), i([k(cc.Label)], t.prototype, "EquipmentResonanceTip", void 0), i([k(cc.Label)], t.prototype, "EquipmentResonanceTitle", void 0), i([k(cc.Node)], t.prototype, "EquipmentResonanceAttrContainer", void 0), i([k(cc.Button)], t.prototype, "EquipmentResonanceDetailButton", void 0), i([k(cc.Label)], t.prototype, "EquipmentLevelAttrTitle", void 0), i([k(cc.Node)], t.prototype, "EquipmentLevelAttrContainer", void 0), i([k(cc.Label)], t.prototype, "EquipmentResonanceDetailLabel", void 0), i([k(cc.Button)], t.prototype, "TotalAttrButton", void 0), i([k(cc.Label)], t.prototype, "TotalAttrButtonLabel", void 0), i([k(cc.Label)], t.prototype, "Title", void 0), i([k(cc.Label)], t.prototype, "ProgressBarLabel", void 0), i([k(cc.Label)], t.prototype, "DoOnceLabel", void 0), i([k(cc.Label)], t.prototype, "DoFifthLabel", void 0), i([k(cc.Label)], t.prototype, "ProgressValueLabel", void 0), i([k(y.default)], t.prototype, "HeaderCurrency", void 0), i([k(y.default)], t.prototype, "OnceCostCurrency", void 0), i([k(y.default)], t.prototype, "FifthCostCurrency", void 0), i([k(m.default)], t.prototype, "SmelterBar", void 0), i([k(cc.Button)], t.prototype, "DoOnceButton", void 0), i([k(cc.Button)], t.prototype, "DoFifthButton", void 0), i([k(cc.Button)], t.prototype, "DetailButton", void 0), i([k(cc.Button)], t.prototype, "ReturnButton", void 0), i([k(g.default)], t.prototype, "Chest", void 0), i([k(cc.Node)], t.prototype, "CombineSpine", void 0), i([k(cc.Node)], t.prototype, "FullScreenMask", void 0), i([k(cc.Node)], t.prototype, "RedDot1", void 0), i([k(cc.Node)], t.prototype, "RedDot5", void 0), i([k(cc.Node)], t.prototype, "RedDotGiftPack", void 0), i([k(cc.Button)], t.prototype, "GiftButton", void 0), i([k(cc.Label)], t.prototype, "GiftButtonLabel", void 0), i([k({
                type: [_.default]
            })], t.prototype, "Toggles", void 0), i([k({
                type: [cc.SpriteFrame]
            })], t.prototype, "BGs", void 0), i([k(cc.Sprite)], t.prototype, "BG", void 0), i([k({
                type: [cc.Node]
            })], t.prototype, "EquipRelatedNodes", void 0), i([k({
                type: [cc.Node]
            })], t.prototype, "GemRelatedNodes", void 0), i([k(cc.Button)], t.prototype, "ShopButton", void 0), i([k(cc.Label)], t.prototype, "ShopButtonLabel", void 0), i([k(sp.Skeleton)], t.prototype, "GemAvatarLower", void 0), i([k(cc.Label)], t.prototype, "TimeLbl", void 0), i([k(cc.Node)], t.prototype, "TimeNode", void 0), i([k(cc.Button)], t.prototype, "DisplaceBtn", void 0), i([k(cc.Node)], t.prototype, "DisplaceBtnLockBg", void 0), i([k(cc.Label)], t.prototype, "DisplaceBtnLabel", void 0), i([L], t)
        }(c.BaseUIFullScreenPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent4": "AttrComponent4",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/EquipmentGalleryEntryItem": "EquipmentGalleryEntryItem",
        "../Components/NodeJiggling": "NodeJiggling",
        "./HolyEquipmentStrengthenPanel": "HolyEquipmentStrengthenPanel"
    }],
    HolyFurnaceSelectEquipHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a50f66KVuhBNZswREILdvP5", "HolyFurnaceSelectEquipHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/ItemComponent"),
            f = e("../Components/ItemClickComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.Title = null, t.Tag0 = null, t.Tag1 = null, t.ReceiveButtonLabel = null, t.ReceiveGrayButtonLabel = null, t.EquipContainer = null, t.ReceiveButton = null, t.ReceiveGrayButton = null, t._equipItemIds = [42001, 42002, 42003, 42004], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.EquipValueAssign(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "luckycharm_composeReward".ToUILocale(), this.Tag1.string = "holyfurnace_chooseAnEquip".ToUILocale(), this.ReceiveButtonLabel.string = "receive".ToUILocale(), this.ReceiveGrayButtonLabel.string = "receive".ToUILocale()
                }, t.prototype.EquipValueAssign = function() {
                    this._itemCompArray = [];
                    for (var e = 0; e < this._equipItemIds.length; e++) {
                        var t = cc.instantiate(this._itemPrefab);
                        t.setParent(this.EquipContainer), t.name = e.toString(), t.getComponent(f.default).enabled = !1, t.on(cc.Node.EventType.TOUCH_END, this.OnItemTouch, this);
                        var n = t.getComponent(h.ItemComponent);
                        this._itemCompArray[e] = n, n.Init({
                            ItemId: this._equipItemIds[e]
                        })
                    }
                }, t.prototype.OnEvent = function() {
                    this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this), this.ReceiveGrayButton.node.on("click", this.OnReceiveGrayButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._smelterFullValue = t[0], this._smelterId = t[1]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.VariedValueAssign()
                }, t.prototype.VariedValueAssign = function() {
                    this.Tag0.string = "holyfurnace_getEquipAt".ToUILocale().Fmt(this._smelterFullValue);
                    var e = p.DataCenter.Instance.GetItemCount(this._smelterId) >= this._smelterFullValue;
                    this.ReceiveButton.node.active = e, this.ReceiveGrayButton.node.active = !e, null != this._chosenNumber && (this._itemCompArray[this._chosenNumber].SetSelectFlagState(!1), this._chosenNumber = null)
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = this;
                    if (null != this._chosenNumber) {
                        var t = new u.Req_Smelter_Cash;
                        t.Type = this._chosenNumber + 1, p.RpcComponent.Instance.Call(t, function(t) {
                            d.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.VariedValueAssign(), e.Close()
                        })
                    } else d.UIUtlity.ShowFloatingHint("holyfurnace_pleaseChooseAEquip".ToUILocale())
                }, t.prototype.OnReceiveGrayButtonClick = function() {
                    d.UIUtlity.ShowFloatingHint("holyfurnace_valueNotEnough".ToUILocale())
                }, t.prototype.OnItemTouch = function(e) {
                    var t = Number.parseInt(e.target.name);
                    null != this._chosenNumber && this._itemCompArray[this._chosenNumber].SetSelectFlagState(!1), this._chosenNumber = t, this._itemCompArray[this._chosenNumber].SetSelectFlagState(!0), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.MiraculousEquipTipPanel.Path, this._itemCompArray[t].ItemId, e.target, ("equip_type_" + (t + 1)).ToUILocale())
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.RichText)], t.prototype, "Tag0", void 0), i([m(cc.RichText)], t.prototype, "Tag1", void 0), i([m(cc.Label)], t.prototype, "ReceiveButtonLabel", void 0), i([m(cc.Label)], t.prototype, "ReceiveGrayButtonLabel", void 0), i([m(cc.Node)], t.prototype, "EquipContainer", void 0), i([m(cc.Button)], t.prototype, "ReceiveButton", void 0), i([m(cc.Button)], t.prototype, "ReceiveGrayButton", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    HolyRelicBuyTimesPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06042MfOidBIJL7awOkcR0q", "HolyRelicBuyTimesPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = (e("../../Auxiliary/DataUtlity"), e("../../Components/DataCenter")),
            l = (e("../Auxiliary/UIUtlity"), e("../Components/CurrencyBarItem")),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("./HolyRelicsPanel"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.Title = null, t.currency = null, t.BtnLabel = null, t.BtnNode = null, t.Slider = null, t.SliderNumLabel = null, t.SubtractNode = null, t.AddNode = null, t.SliderFill = null, t._progress = 0, t._canUseTimes = 0, t._useTimes = 0, t._minUseTime = 1, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "assistant__artefactRelic_buyCount_desc".ToUILocale(), this.SliderNumLabel.string = "0", this.BtnLabel.string = "Activity_Story_Task_Btn_Buy".ToUILocale(), this.Slider.node.on("slide", this.OnSlide, this), this.Slider.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.Slider.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this), this.BtnNode.on("click", this.OnClickUse, this), this.SubtractNode.on("click", this.OnClickSubtract, this), this.AddNode.on("click", this.OnClickAdd, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = u.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, 220);
                    this._price = n.Data2[0].Items[1], this._call = t[0], this.ConfigCanUseTimes()
                }, t.prototype.OnSlide = function() {
                    this._canUseTimes ? (this._progress = this.Slider.progress, this.SetProgress()) : this.Slider.progress = 0
                }, t.prototype.OnDragOver = function() {
                    this.SetProgress()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetProgress(), this.RenderCurrency())
                }, t.prototype.RenderCurrency = function() {
                    this.currency.Init(3, !1, this._useTimes * this._price)
                }, t.prototype.OnClickUse = function() {
                    this._useTimes > this._canUseTimes || (this._call && this._call(this._useTimes), a.UIManager.Instance.BackUIPanel())
                }, t.prototype.SetProgress = function(e) {
                    e || (this._canUseTimes ? (this._useTimes = Math.floor(this._canUseTimes * this.Slider.progress), this._useTimes <= 0 && (this._useTimes = 1)) : this._useTimes = 0), this._progress = this._useTimes / this._canUseTimes, this.SliderFill.width = 475 * this._progress, this.Slider.progress = this._progress, this.SliderNumLabel.string = "" + this._useTimes + "GodSoul_CombineTimes".ToUILocale(), this.RenderCurrency()
                }, t.prototype.OnClickSubtract = function() {
                    this._useTimes >= 1 && (this._useTimes -= 1), this.SetProgress(this._useTimes)
                }, t.prototype.OnClickAdd = function() {
                    this._useTimes < this._canUseTimes && (this._useTimes += 1), this.SetProgress(this._useTimes)
                }, t.prototype.ConfigCanUseTimes = function() {
                    var e = p.HolyRelicsData.GetLeftTimes(),
                        t = e.canBuyTimes - e.todayBuyTimes;
                    this._canUseTimes = 0;
                    var n = s.DataCenter.Instance.GetItemCount(3);
                    this._canUseTimes = Math.min(200, Math.floor(n / this._price), t)
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(l.default)], t.prototype, "currency", void 0), i([f(cc.Label)], t.prototype, "BtnLabel", void 0), i([f(cc.Node)], t.prototype, "BtnNode", void 0), i([f(cc.Slider)], t.prototype, "Slider", void 0), i([f(cc.Label)], t.prototype, "SliderNumLabel", void 0), i([f(cc.Node)], t.prototype, "SubtractNode", void 0), i([f(cc.Node)], t.prototype, "AddNode", void 0), i([f(cc.Node)], t.prototype, "SliderFill", void 0), i([h], t)
            }(a.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "./HolyRelicsPanel": "HolyRelicsPanel"
    }],
    HolyRelicCondictionGroupComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0d45amobBVAarLE8hwudZh9", "HolyRelicCondictionGroupComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HolyRelicCondictionType = void 0;
        var a = e("./HolyRelicCondictionItemComponent"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("./PrefabListContainerComp");
        (function(e) {
            e[e.hero = 0] = "hero", e[e.element = 1] = "element", e[e.stars = 2] = "stars"
        })(n.HolyRelicCondictionType || (n.HolyRelicCondictionType = {}));
        var p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Container = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n) {
                    var o = c.ConfigDataComponent.Instance.GetConfigById(s.ArtefactRelicMap_Config, e);
                    this._checkPointConfig = o, this._formationHeroSids = t, this._groupIdx = n;
                    var r = [],
                        i = [0, 0];
                    t.forEach(function(e, t) {
                        t == n && (i[0] = r.length - 1, i[1] = i[0] + e.length), r = r.concat(e)
                    }), this.Container.Init("HolyRelicsPanel/Component/HolyRelicCondictionItemComponent", a.default, this.ConfigCondiction.bind(this)), this.Container.Set(o.Conditions.length)
                }, t.prototype.ConfigCondiction = function(e, t) {
                    var n = this._checkPointConfig.Conditions[t].Items[0] - 1,
                        o = this._checkPointConfig.Conditions[t].Items[1],
                        r = this._checkPointConfig.Conditions[t].Items[2],
                        i = 0,
                        a = 0,
                        u = 0;
                    switch (n) {
                        case 0:
                            a = 1, u = o, this.ErgodicFormations(this._formationHeroSids, function(e) {
                                var t = c.DataCenter.Instance.GetDataById(l.UserHero_Model, e);
                                return !t || t.HeroId != o || (i = 1, !1)
                            }.bind(this));
                            break;
                        case 1:
                            a = r, u = o, this.ErgodicFormations(this._formationHeroSids, function(e) {
                                var t = c.DataCenter.Instance.GetDataById(l.UserHero_Model, e);
                                if (!t) return !0;
                                var n = c.ConfigDataComponent.Instance.GetConfigById(s.HeroBase_Config, t.HeroId);
                                return !n || (n.ElementType == o && i++, !0)
                            }.bind(this));
                            break;
                        case 2:
                            a = o, this.ErgodicFormations(this._formationHeroSids, function(e) {
                                var t = c.DataCenter.Instance.GetDataById(l.UserHero_Model, e);
                                return !t || (i += t.StarLevel, !0)
                            }.bind(this))
                    }
                    e.Set(n, i, a, u)
                }, t.prototype.ErgodicFormations = function(e, t) {
                    for (var n = 0; n < e.length; n++)
                        for (var o = e[n], r = 0; r < o.length; r++)
                            if (!t(o[r], n, r)) return
                }, i([h(u.default)], t.prototype, "Container", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Components/Components": "Components",
        "./HolyRelicCondictionItemComponent": "HolyRelicCondictionItemComponent",
        "./PrefabListContainerComp": "PrefabListContainerComp"
    }],
    HolyRelicCondictionItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5a243OPzDlNWbpP57So9bSm", "HolyRelicCondictionItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("./HolyRelicCondictionGroupComponent"),
            d = e("./ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Label = null, t.Icon = null, t.ItemContainer = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n, o) {
                    return void 0 === o && (o = 0), a(this, void 0, void 0, function() {
                        var r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    switch (this.node.active = !0, e) {
                                        case p.HolyRelicCondictionType.hero:
                                            return [3, 1];
                                        case p.HolyRelicCondictionType.element:
                                            return [3, 4];
                                        case p.HolyRelicCondictionType.stars:
                                            return [3, 5]
                                    }
                                    return [3, 6];
                                case 1:
                                    return o ? this._itemPrefab ? [3, 3] : (r = this, [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent, cc.Prefab)]) : (this.node.active = !1, [2]);
                                case 2:
                                    if (r._itemPrefab = a.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    a.label = 3;
                                case 3:
                                    return i = cc.instantiate(this._itemPrefab), this.ItemContainer.addChild(i), i.getComponent(d.ItemComponent).Init({
                                        ItemId: o
                                    }, d.ItemComponentType.HeroInfo), [3, 7];
                                case 4:
                                    return this.Icon.spriteFrame = u.UIUtlity.GetHeroElementIcon(o), [3, 7];
                                case 5:
                                    return this.Icon.spriteFrame = u.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_orange"), [3, 7];
                                case 6:
                                    return this.node.active = !1, [3, 7];
                                case 7:
                                    return this.Label.string = t + "/" + n, this.Label.node.color = t >= n ? (new cc.Color).fromHEX("#6eeea7") : (new cc.Color).fromHEX("#ff403e"), t >= n ? (u.UIUtlity.OffNodeGray(this.ItemContainer), u.UIUtlity.OffNodeGray(this.Icon.node)) : (u.UIUtlity.OnNodeGray(this.ItemContainer), u.UIUtlity.OnNodeGray(this.Icon.node)), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, i([y(cc.Label)], t.prototype, "Label", void 0), i([y(cc.Sprite)], t.prototype, "Icon", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HolyRelicCondictionGroupComponent": "HolyRelicCondictionGroupComponent",
        "./ItemComponent": "ItemComponent"
    }],
    HolyRelicConfigCellComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "01b7bpffl9Bz4p7smKJhjJA", "HolyRelicConfigCellComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var s = e("../../Auxiliary/GlobalDefine"),
            l = e("../../Components/DataCenter"),
            c = e("./CommonImgBtnComponent"),
            u = e("./ItemComponent"),
            p = e("./PrefabListContainerComp"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Panel/EquConfigTipsPanel"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Auxiliary/UIUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Labels = [], t.BtnList = [], t.ItemsContainer = null, t._equListPanlConfig = [s.PanelConfig.EquipmentChangePanel.Path, null, s.PanelConfig.SelectLuckyCharmHint.Path, s.PanelConfig.PowerCoreReplacePanel.Path, s.PanelConfig.GemSelectHint.Path, s.PanelConfig.PetChangePanel.Path], t._equConfig = [d.Equipment_Model, d.HolyEquipment_Model, d.LuckyCharmEquip_Model, d.PowerCore_Model, d.GemEquip_Model, d.UserPet_Model], t._btnConfig = [{
                        label: "",
                        fun: "up"
                    }, {
                        label: "",
                        fun: "down"
                    }, {
                        label: "",
                        fun: "equ"
                    }, {
                        label: "",
                        fun: "rune"
                    }, {
                        label: "",
                        fun: "chram"
                    }], t._equInfo = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    h.Game.EventDispatcher.On(f.EventKeys.HOLYRELIC_WEAR, this.OnChangeEqu, this), h.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK_START, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    h.Game.EventDispatcher.Off(f.EventKeys.HOLYRELIC_WEAR, this.OnChangeEqu, this), h.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK_START, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._labelsConfig = ["HeroDetail_equip".ToUILocale(), "HolyRelic_cultivation".ToUILocale()], this._equInfo = e, this._index = t, this._panelData = n, this.RenderItem(), this.ConfigLabel(), this.ConfigBtn()
                }, t.prototype.RenderItem = function() {
                    var e = this;
                    this.ItemsContainer.Init(s.BundlePath.ItemComponent, u.ItemComponent, function(t, n) {
                        var o = !1,
                            r = e._equInfo[0 == n ? n : n + 1];
                        r || 0 != n || (o = !0, r = e._equInfo[1]);
                        var i = e._panelData.GetVirtualEquItemId(e._index, n, 0);
                        if (r) {
                            var a = e.GetItemData(r, o ? 1 : n > 0 ? n + 1 : 0);
                            a instanceof d.UserPet_Model ? e.ConfigPetItemComponent(t, r) : a instanceof d.LuckyCharmEquip_Model ? t.Init({
                                ItemId: a.ItemId
                            }) : 0 == n && i ? t.Init({
                                ItemId: i
                            }) : t.Init({
                                ItemId: a.ItemId
                            })
                        } else switch (t.SetItemSimpleState(), n) {
                            case 0:
                                t.SetCustomIcon(m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("equip_1"));
                                break;
                            case 1:
                                t.SetCustomIcon(m.UIUtlity.COMMON_ATLAS5.getSpriteFrame("equip_luckyCharm"));
                                break;
                            case 2:
                                t.SetCustomIcon(m.UIUtlity.COMMON_ATLAS5.getSpriteFrame("EquipmentCoreBg"));
                                break;
                            case 3:
                                t.SetCustomIcon(m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("gem_shadow"));
                                break;
                            case 4:
                                t.SetCustomIcon(m.UIUtlity.COMMON_ATLAS5.getSpriteFrame("ItemEmptyPet"))
                        }
                    }), this.ItemsContainer.Set(5)
                }, t.prototype.OnClickItem = function(e) {
                    var t = this.ItemsContainer.CompList.findIndex(function(t) {
                        return t.node == e
                    });
                    null != t && -1 != t && (0 == t ? this.OnClick_equ(e) : 1 == t ? this.OnClick_rune(e) : 3 == t ? this.OnClick_chram(e) : this.ChoseEqu(0, t + 1))
                }, t.prototype.OnClick_up = function() {
                    this.node.emit(f.EventKeys.HOLYRELICCONFIGCELL_ARROW, this, -1)
                }, t.prototype.OnClick_down = function() {
                    this.node.emit(f.EventKeys.HOLYRELICCONFIGCELL_ARROW, this, 1)
                }, t.prototype.OnClick_equ = function(e) {
                    var t;
                    e instanceof cc.Node ? t = e : e instanceof cc.Button && (t = e.node), h.UIManager.Instance.ShowUIPanel(s.PanelConfig.EquConfigTipsPanel.Path, t, y.EquConfigTipsType.equ, this._panelData.GetEquTypeSids(this._index, y.EquConfigTipsType.equ), this.ChoseEqu.bind(this), this._panelData.GetEquTypeSids(this._index, y.EquConfigTipsType.holy))
                }, t.prototype.OnClick_rune = function(e) {
                    var t;
                    e instanceof cc.Node ? t = e : e instanceof cc.Button && (t = e.node), h.UIManager.Instance.ShowUIPanel(s.PanelConfig.EquConfigTipsPanel.Path, t, y.EquConfigTipsType.rune, this._panelData.GetEquTypeSids(this._index, y.EquConfigTipsType.rune), this.ChoseEqu.bind(this))
                }, t.prototype.OnClick_chram = function(e) {
                    var t;
                    e instanceof cc.Node ? t = e : e instanceof cc.Button && (t = e.node), h.UIManager.Instance.ShowUIPanel(s.PanelConfig.EquConfigTipsPanel.Path, t, y.EquConfigTipsType.charm, this._panelData.GetEquTypeSids(this._index, y.EquConfigTipsType.charm), this.ChoseEqu.bind(this))
                }, t.prototype.ConfigLabel = function() {
                    var e = this;
                    this.Labels.forEach(function(t, n) {
                        t.string = e._labelsConfig[n]
                    })
                }, t.prototype.ConfigBtn = function() {
                    var e = this;
                    this.BtnList.forEach(function(t, n) {
                        t.Set(e["OnClick_" + e._btnConfig[n].fun].bind(e), e._btnConfig[n].label)
                    })
                }, t.prototype.GetItemData = function(e, t) {
                    return l.DataCenter.Instance.GetDataById(this._equConfig[t], e)
                }, t.prototype.ConfigPetItemComponent = function(e, t) {
                    var n = l.DataCenter.Instance.GetDataById(d.UserPet_Model, t);
                    e.Init(n, u.ItemComponentType.Pet)
                }, t.prototype.SetArrowBtn = function(e) {
                    this.BtnList[0].node.active = e[0], this.BtnList[1].node.active = e[1]
                }, t.prototype.ChoseEqu = function(e, t, n) {
                    var o;
                    this._equType = t, this._equIdx = e;
                    var r, i = this._panelData.GetEquSid(this._index, n ? 1 : t, e),
                        s = {
                            inGroupIndex: this._index,
                            equIdx: this._equIdx,
                            usedData: this._panelData.UsedMap[t]
                        };
                    switch (t) {
                        case y.EquConfigTipsType.equ:
                        case y.EquConfigTipsType.holy:
                            r = [void 0, i || -(e + 1), n, s];
                            break;
                        case y.EquConfigTipsType.rune:
                            r = [e, void 0, i, s];
                            break;
                        case y.EquConfigTipsType.core:
                            var c = void 0;
                            if (i) {
                                var u = l.DataCenter.Instance.GetDataById(d.PowerCore_Model, i);
                                c = g.default.Instance.GetPowerCoreAttribute(u.ItemId, u.Level)
                            }
                            r = [void 0, i, c, s];
                            break;
                        case y.EquConfigTipsType.charm:
                            r = [i, void 0, s];
                            break;
                        case y.EquConfigTipsType.pet:
                            s.onWearSid = i, r = [void 0, s]
                    }(o = h.UIManager.Instance).ShowUIPanel.apply(o, a([this._equListPanlConfig[t]], r))
                }, t.prototype.OnChangeEqu = function(e, t) {
                    var n = t.Sid;
                    t.Sid || (n = t.ItemId), e === this._index && null != this._equType && null != this._equIdx && this._panelData.ChangeEquSidByPosition(void 0, this._index, this._equType, this._equIdx, n, !0, !t.Sid, t.IsHolyEquip)
                }, i([C([cc.Label])], t.prototype, "Labels", void 0), i([C([c.default])], t.prototype, "BtnList", void 0), i([C(p.default)], t.prototype, "ItemsContainer", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/EquConfigTipsPanel": "EquConfigTipsPanel",
        "./CommonImgBtnComponent": "CommonImgBtnComponent",
        "./ItemComponent": "ItemComponent",
        "./PrefabListContainerComp": "PrefabListContainerComp"
    }],
    HolyRelicConfigHeroPart: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "62b21+eMwhNOYiOLCjMgDfA", "HolyRelicConfigHeroPart");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/DataCenter"),
            p = e("./ItemComponent"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PositionInfo = null, t.Labels = [], t.HeroContainer = null, t.CheckNode = null, t._checked = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.MOUSE_DOWN, this.OnClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.MOUSE_DOWN, this.OnClick, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnClick, this)
                }, t.prototype.Init = function(e, t) {
                    this.RenderHero(e), this._labelsConfig || (this._labelsConfig = ["mail_receiveAndRead_all".ToUILocale()]), this.PositionInfo.string = "HolyRelic_HeroPosition".ToUILocale().Fmt(t + 1), this.ConfigLabel()
                }, t.prototype.RenderHero = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (t = this, [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (t._itemPrefab = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    return n = u.DataCenter.Instance.GetDataById(d.UserHero_Model, e), o = cc.instantiate(this._itemPrefab), this.HeroContainer.addChild(o), e ? o.getComponent(p.ItemComponent).Init({
                                        ItemId: n.HeroId,
                                        StarLevel: n.StarLevel
                                    }, p.ItemComponentType.HeroInfo) : o.getComponent(p.ItemComponent).SetItemSimpleState(), [2]
                            }
                        })
                    })
                }, t.prototype.OnClick = function(e, t) {
                    t && -1 == this.HeroContainer.children.indexOf(t) || (this._checked = !this._checked, this.CheckNode.active = this._checked, this.OnChoseOnBtnOperate())
                }, t.prototype.OnChoseOnBtnOperate = function() {
                    this.node.emit(h.EventKeys.HOLYRELICCONFIGHERO_CHECK, this, this._checked)
                }, t.prototype.ConfigLabel = function() {
                    var e = this;
                    this.Labels.forEach(function(t, n) {
                        t.string = e._labelsConfig[n]
                    })
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, i([g(cc.Label)], t.prototype, "PositionInfo", void 0), i([g([cc.Label])], t.prototype, "Labels", void 0), i([g(cc.Node)], t.prototype, "HeroContainer", void 0), i([g(cc.Node)], t.prototype, "CheckNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "./ItemComponent": "ItemComponent"
    }],
    HolyRelicHeroGoupComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "13ced6YtVlMi53P7i21G3qB", "HolyRelicHeroGoupComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/GlobalDefine"),
            s = e("./ItemComponent"),
            l = e("./PrefabListContainerComp"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GroupName = null, t.HerosContainer = null, t.WinNode = null, t.FailNode = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    this.GroupName.string = "HolyRelic_HeroPosition2".ToUILocale().Fmt(t + 1);
                    for (var n = 0, o = 0; o < e.Heros.length; o++)
                        if (-1 != e.Heros[o].Id) {
                            if (-2 == e.Heros[o].Id) break;
                            n++
                        } this.HerosContainer.Init(a.BundlePath.ItemComponent, s.ItemComponent, function(t, n) {
                        t.Init({
                            ItemId: e.Heros[n + 1].HeroId,
                            StarLevel: e.Heros[n + 1].StarLevel
                        }, s.ItemComponentType.HeroInfo)
                    }), this.HerosContainer.Set(n), this.WinNode.active = 2 == e.Result, this.FailNode.active = !this.WinNode.active
                }, i([p(cc.Label)], t.prototype, "GroupName", void 0), i([p(l.default)], t.prototype, "HerosContainer", void 0), i([p(cc.Node)], t.prototype, "WinNode", void 0), i([p(cc.Node)], t.prototype, "FailNode", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./ItemComponent": "ItemComponent",
        "./PrefabListContainerComp": "PrefabListContainerComp"
    }],
    HolyRelicProgressComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4650ednF2VPfZw5VWpXM7p1", "HolyRelicProgressComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Auxiliary/UIUtlity"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RichText = null, t.Icon = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.Icon.spriteFrame = l.UIUtlity.GetHeroElementIcon(e), this.RichText.string = "<color=#6EEEA7>" + t + "</c>/" + n, [2]
                        })
                    })
                }, i([p(cc.RichText)], t.prototype, "RichText", void 0), i([p(cc.Sprite)], t.prototype, "Icon", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    HolyRelicSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7789fCShMZBoYVG7lb7rZIj", "HolyRelicSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./ItemComponent"),
            u = e("./PrefabListContainerComp"),
            p = e("./SettlementBaseComponent"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./HolyRelicHeroGoupComponent"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.SubTitles = [], t.GroupContainer = null, t.RewardNode = null, t.RewardsContainer = null, t.OkBtnNode = null, t.OkBtnLabel = null, t.NextBtnNode = null, t.NextBtnLabel = null, t.MainLayout = null, t._initFlag = !1, t._elementCongfig = [{
                        name: "HolyRelicElementType_blue",
                        color: "#91dcff"
                    }, {
                        name: "HolyRelicElementType_red",
                        color: "#ff403e"
                    }, {
                        name: "HolyRelicElementType_green",
                        color: "#6eeea7"
                    }, {
                        name: "HolyRelicElementType_yellow",
                        color: "#ffa14d"
                    }, {
                        name: "HolyRelicElementType_purple",
                        color: "#9a7dfa"
                    }, {
                        name: "HolyRelicElementType_chaos",
                        color: "#b440f8"
                    }], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    f.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    f.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsContainer.node.children.indexOf(t) && g.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.SetUI = function(e, t) {
                    return void 0 === t && (t = []), a(this, void 0, void 0, function() {
                        var n, o, r, i, a, l;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return (n = e.HolyRelicSettlementRes).ExtraParam[0].Items[0], o = n.ExtraParam[0].Items[1], r = n.ExtraParam[0].Items[2], i = n.ExtraParam[0].Items[3], a = this._elementCongfig[o - 1].name.ToUILocale().RichTextColor(this._elementCongfig[o - 1].color), l = (10 * r + (i + 1)).toString().RichTextColor("#FFE685"), this.OkBtnLabel.string = "ok".ToUILocale(), this.NextBtnLabel.string = "idleBattle_main_nextLevel".ToUILocale(), this.Title.string = "HolyRelic_settlement".ToUILocale().Fmt(a, l).RichTextOutLine("#202434", 3), this.SubTitles[0].string = "secretArea_ourBattleArray".ToUILocale(), this.SubTitles[1].string = "reward".ToUILocale(), this._initFlag || (this.OkBtnNode.on("click", this.OnClickOk, this), this.NextBtnNode.on("click", this.OnClicNext, this)), t && 0 != t.length ? [3, 1] : (this.RewardsContainer.node.active = !1, this.RewardNode.active = !1, [3, 3]);
                                case 1:
                                    return this.RewardsContainer.node.active = !0, this.RewardNode.active = !0, [4, this.RewardsContainer.Init(d.BundlePath.ItemComponent, c.ItemComponent, function(e, n) {
                                        e.Init({
                                            ItemId: t[n].ItemId,
                                            Count: t[n].Count
                                        }), e.node.name = t[n].ItemId.toString()
                                    })];
                                case 2:
                                    s.sent(), this.RewardsContainer.Set(t.length), s.label = 3;
                                case 3:
                                    return [4, this.GroupContainer.Init("HolyRelicsPanel/Component/HolyRelicHeroGoupComponent", h.default, function(t, n) {
                                        t.Set(e.Reports[n], n)
                                    })];
                                case 4:
                                    return s.sent(), this.GroupContainer.Set(e.Reports.length), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickOk = function() {
                    f.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClicNext = function() {
                    l.Game.EventDispatcher.Emit(y.EventKeys.HOLYRELIC_NEXTCHECKPOINT), f.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this.OkBtnNode.off("click", this.OnClickOk, this), this.NextBtnNode.on("click", this.OnClicNext, this)
                }, i([_(cc.RichText)], t.prototype, "Title", void 0), i([_([cc.Label])], t.prototype, "SubTitles", void 0), i([_(u.default)], t.prototype, "GroupContainer", void 0), i([_(cc.Node)], t.prototype, "RewardNode", void 0), i([_(u.default)], t.prototype, "RewardsContainer", void 0), i([_(cc.Node)], t.prototype, "OkBtnNode", void 0), i([_(cc.Label)], t.prototype, "OkBtnLabel", void 0), i([_(cc.Node)], t.prototype, "NextBtnNode", void 0), i([_(cc.Label)], t.prototype, "NextBtnLabel", void 0), i([_(cc.Layout)], t.prototype, "MainLayout", void 0), i([I], t)
            }(p.default);
        n.default = C, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HolyRelicHeroGoupComponent": "HolyRelicHeroGoupComponent",
        "./ItemComponent": "ItemComponent",
        "./PrefabListContainerComp": "PrefabListContainerComp",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    HolyRelicsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ba304mGsIdETIGPUAc/6JH4", "HolyRelicsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__assign || function() {
                return (i = Object.assign || function(e) {
                    for (var t, n = 1, o = arguments.length; n < o; n++)
                        for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
                    return e
                }).apply(this, arguments)
            },
            a = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            s = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            l = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HolyRelicsData = n.HolyRelicsElementType = void 0;
        var c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/CommonImgBtnComponent"),
            h = e("../Components/HRCheckpointGroupComponent"),
            f = e("../Components/HRTimesComponent"),
            y = e("../Components/HRelicsCondictionComponent"),
            g = e("../Components/HolyElementSelectComponent"),
            m = e("../Components/ItemComponent"),
            I = e("../Components/PrefabListContainerComp"),
            _ = e("../../../../Proto/Static/ConfigProto"),
            C = e("../../../../Proto/Static/RpcProto"),
            v = e("../../Components/RpcComponent"),
            b = e("../../../ShareConsts/EnumType"),
            S = e("../../Components/Components"),
            w = e("../../../Util/TimeUtil"),
            P = e("./HolyrelicConfigPanel"),
            A = e("../Battle/BattleManager"),
            T = e("../../../Consts/Consts"),
            R = e("../../../EZFramework/EZFramework"),
            L = e("../../Auxiliary/EventKeys"),
            k = e("../Auxiliary/UIUtlity"),
            O = e("../../Auxiliary/DataUtlity"),
            M = e("../../Components/Components"),
            D = e("./WarTokenListPanel"),
            B = e("./StarTemplePanel"),
            N = e("../../RedDot/RedDotManager"),
            E = e("../Components/GameModuleGuideManager");
        (function(e) {
            e[e.blue = 0] = "blue", e[e.red = 1] = "red", e[e.green = 2] = "green", e[e.yellow = 3] = "yellow", e[e.purple = 4] = "purple"
        })(n.HolyRelicsElementType || (n.HolyRelicsElementType = {})),
        function(e) {
            e[e.Rule = 0] = "Rule", e[e.Rank = 1] = "Rank", e[e.WarToken = 2] = "WarToken", e[e.ElementEqu = 3] = "ElementEqu", e[e.AutoChallenge = 4] = "AutoChallenge", e[e.Back = 5] = "Back", e[e.Challenge = 6] = "Challenge"
        }(c || (c = {}));
        var U = cc._decorator,
            G = U.ccclass,
            x = U.property,
            H = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Labels = [], t.BtnList = [], t.Selecter = null, t.CheckPoint = null, t.RewardContainer = null, t.CondictionContainer = null, t.Times = null, t.FinalRewardItemContainer = null, t.AutoFightBlockNode = null, t.AutoBtnBack = null, t.BtnBack = null, t.BuyTimesNode = null, t.AutoBtnLabel = null, t._labelsConfig = [], t._btnConfig = [], t._moduleGuideGroupIds = {}, t._guideStepIndex = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    R.Game.EventDispatcher.On(L.EventKeys.HOLYRELIC_NEXTCHECKPOINT, this.OnNextCheckPoint, this), u.Game.EventDispatcher.On(L.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), this.node.on(String(this._data.uuid) + "_RefreshData_ChekcPointData", this.DataChangeReRender, this), this.AutoFightBlockNode.on(cc.Node.EventType.MOUSE_DOWN, this.OnClickBlock, this), R.Game.EventDispatcher.On(L.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), R.Game.EventDispatcher.On(T.GameEventIds.ChangeDataDetail.Fmt(C.GameModule_Model._n_), this.OnGameModuleChange, this), R.Game.EventDispatcher.On(T.GameEventIds.AddDataDetail.Fmt(C.GameModule_Model._n_), this.OnGameModuleChange, this)
                }, t.prototype.onDisable = function() {
                    R.Game.EventDispatcher.Off(L.EventKeys.HOLYRELIC_NEXTCHECKPOINT, this.OnNextCheckPoint, this), u.Game.EventDispatcher.Off(L.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), this.node.off(String(this._data.uuid) + "_RefreshData_ChekcPointData", this.DataChangeReRender, this), this.AutoFightBlockNode.off(cc.Node.EventType.MOUSE_DOWN, this.OnClickBlock, this), R.Game.EventDispatcher.Off(L.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this), R.Game.EventDispatcher.Off(T.GameEventIds.ChangeDataDetail.Fmt(C.GameModule_Model._n_), this.OnGameModuleChange, this), R.Game.EventDispatcher.Off(T.GameEventIds.AddDataDetail.Fmt(C.GameModule_Model._n_), this.OnGameModuleChange, this)
                }, t.prototype.OnGameModuleChange = function(e) {
                    for (var t in e) switch (e[t].Sid) {
                        case T.GameModuleType.HolyRelicsShowAuto:
                            this.RefreshAutoBtnState();
                            break;
                        case T.GameModuleType.ArtifactAuto:
                            this.RefreshAutoBtnState(), this.SetGuideIds(), this.ShowGameGuid()
                    }
                }, t.prototype.Preload = function() {
                    return s(this, void 0, Promise, function() {
                        var t, n;
                        return l(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = o.sent(), n = this, [4, this.LoadDynamicAsset("ArtifactPanel/PNG/Artifact", cc.SpriteAtlas)];
                                case 2:
                                    return n._btnBackAtlas = o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._btnConfig = [{
                        label: "",
                        fun: "rule"
                    }, {
                        label: "holyArea_rank".ToUILocale(),
                        fun: "rank"
                    }, {
                        label: "HolyRelic_WarToken".ToUILocale(),
                        fun: "warToken"
                    }, {
                        label: "HolyRelic_ElementEqu".ToUILocale(),
                        fun: "holyEqu"
                    }, {
                        label: "HolyRelic_AutoFight".ToUILocale(),
                        fun: "auto"
                    }, {
                        label: "",
                        fun: "back"
                    }, {
                        label: "HolyRelic_challenge".ToUILocale(),
                        fun: "fight"
                    }], this._labelsConfig = ["HolyRelic_title".ToUILocale(), "HolyRelic_nowCheckPoint".ToUILocale(), "HolyRelic_Contiction".ToUILocale(), "HolyRelic_passReward".ToUILocale()], this.ConfigBtn(), this.ConfigLabel(), this.RewardContainer.Init(p.BundlePath.ItemComponent, m.ItemComponent, this.HandeSingleItem.bind(this)), this.CondictionContainer.Init("HolyRelicsPanel/Component/HRelicsCondictionComponent", y.default, this.HandeSingleCondiction.bind(this)), this.BuyTimesNode.on("click", this.OnBuyTimes, this);
                    var t = O.default.Instance.IsGameModuleUnlock(T.GameModuleType.HolyRelicsWarToken);
                    this.BtnList[c.WarToken].node.active = t[0], this.RefreshAutoBtnState(), this.SetGuideIds()
                }, t.prototype.SetGuideIds = function() {
                    this._guideIds = [10043], O.default.Instance.IsGameModuleUnlock(T.GameModuleType.ArtifactAuto)[0] && this._guideIds.push(10044)
                }, t.prototype.RefreshAutoBtnState = function() {
                    this._autoUnlockInfo = null;
                    var e = O.default.Instance.IsGameModuleUnlock(T.GameModuleType.HolyRelicsShowAuto);
                    if (this.BtnList[c.AutoChallenge].node.active = e[0], e[0]) {
                        var t = O.default.Instance.IsGameModuleUnlock(T.GameModuleType.ArtifactAuto);
                        t[0] ? this.AutoBtnBack.spriteFrame = k.UIUtlity.COMMON_ATLAS4.getSpriteFrame("function_skip") : (this.AutoBtnBack.spriteFrame = k.UIUtlity.COMMON_ATLAS5.getSpriteFrame("function_noSkip"), this._autoUnlockInfo = t[1])
                    }
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = this.node.addComponent(F)
                }, t.prototype.DisPlay = function(t) {
                    return s(this, void 0, Promise, function() {
                        return l(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this, t), this.SetSelecter(!0), t ? [3, 1] : (this.ShowGameGuid(), [3, 4]);
                                case 1:
                                    return [4, this._data.NeedRefreshData("RefreshData_Times")];
                                case 2:
                                    return n.sent(), [4, this._data.NeedRefreshData("RefreshData_Model")];
                                case 3:
                                    n.sent(), this.Selecter.Selecter.HighLight.setPosition(this.Selecter.Selecter.Layout.children[this._data.ChosenElement].position), n.label = 4;
                                case 4:
                                    return this.renderTimes(), this.BindReddot(), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    if (-1 != this.RewardContainer.node.children.indexOf(t)) {
                        var n = t.getComponent(m.ItemComponent);
                        k.UIUtlity.ShowItemTip(n.ItemId, t)
                    }
                }, t.prototype.DataChangeReRender = function() {
                    this.RenderCheckPoint(), this.RenderItem(), this.RenderCondiction(), this.RenderFinalReward()
                }, t.prototype.BindReddot = function() {
                    N.RedDotManager.Instance.Bind(this.BtnList[c.WarToken].node, N.RedDotManager.Instance.RedDot.HolyRelicWarToken), N.RedDotManager.Instance.Bind(this.BtnList[c.Challenge].node, N.RedDotManager.Instance.RedDot.HolyRelicFight)
                }, t.prototype.ConfigBtn = function() {
                    var e = this;
                    this.BtnList.forEach(function(t, n) {
                        t.Set(e["OnClick_" + e._btnConfig[n].fun].bind(e), e._btnConfig[n].label)
                    })
                }, t.prototype.ConfigLabel = function() {
                    var e = this;
                    this.Labels.forEach(function(t, n) {
                        t.string = e._labelsConfig[n]
                    })
                }, t.prototype.SetSelecter = function(e) {
                    this.Selecter.Set({
                        NameList: ["HolyRelicElementType_blue".ToUILocale(), "HolyRelicElementType_red".ToUILocale(), "HolyRelicElementType_green".ToUILocale(), "HolyRelicElementType_yellow".ToUILocale(), "HolyRelicElementType_purple".ToUILocale(), "HolyRelicElementType_chaos".ToUILocale()]
                    }, this._data, e)
                }, t.prototype.RenderCheckPoint = function() {
                    this.CheckPoint.Set(this._data)
                }, t.prototype.RenderItem = function() {
                    this.RewardContainer.Set(this._data.Rewards.length)
                }, t.prototype.HandeSingleItem = function(e, t) {
                    e.Init(this._data.Rewards[t]), e.node.y = -20
                }, t.prototype.RenderCondiction = function() {
                    this.CondictionContainer.Set(this._data.Condiction.length)
                }, t.prototype.HandeSingleCondiction = function(e, t) {
                    e.Set(this._data.Condiction[t].desc, this._data.Condiction[t].enough)
                }, t.prototype.RenderFinalReward = function() {
                    this._rewardNode || (this._rewardNode = cc.instantiate(this._itemPrefab), this.FinalRewardItemContainer.addChild(this._rewardNode)), this._data.FinalReward ? (this.FinalRewardItemContainer.active = !0, this._rewardNode.getComponent(m.ItemComponent).Init(this._data.FinalReward)) : this.FinalRewardItemContainer.active = !1
                }, t.prototype.renderTimes = function() {
                    this._data.Times.addCall = this.OnClickAddBtn.bind(this), this.Times.Set(this._data.Times)
                }, t.prototype.OnClickAddBtn = function() {}, t.prototype.OnClick_rule = function() {
                    var e = {
                        name: "HolyRelic_ruleTitle".ToUILocale(),
                        titles: ["HolyRelic_ruleTitle".ToUILocale()],
                        contents: ["HolyRelic_ruleContent".ToUILocale()]
                    };
                    k.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnClick_rank = function() {
                    var e = new C.Req_Player_GetRank;
                    e.RankType = T.RankTypeId.ArtefactRelic, v.RpcComponent.Instance.Call(e, function(e) {
                        u.UIManager.Instance.ShowUIPanel(p.PanelConfig.RankDetailPanel.Path, T.RankTypeId.ArtefactRelic, e.Data.Rows, e.Data.Achievements, e.MyRank, e.MyRankData)
                    })
                }, t.prototype.OnClick_warToken = function() {
                    var e = D.default.GetCurrentAndMaxPeriods(1),
                        t = M.ConfigDataComponent.Instance.GetConfigById(_.GameModule_Config, T.GameModuleType.Artifact).WarTokenId;
                    u.UIManager.Instance.ShowUIPanel(p.PanelConfig.WarTokenListPanel.Path, !1, t[e[0]])
                }, t.prototype.OnClick_holyEqu = function() {
                    u.UIManager.Instance.ShowUIPanel(p.PanelConfig.StarTemplePanel.Path, B.TempleMode.Artifact)
                }, t.prototype.OnClick_auto = function() {
                    var e = this;
                    if (this._autoUnlockInfo) k.UIUtlity.ShowFloatingHint(this._autoUnlockInfo);
                    else if (1 != this.AutoFightBlockNode.active || 0 != n.endAutoFight) {
                        n.endAutoFight = !1, this.AutoBtnBack.spriteFrame = k.UIUtlity.COMMON_ATLAS4.getSpriteFrame("function_pause"), this.AutoBtnLabel.string = "secretArea_cancle".ToUILocale(), this.AutoFightBlockNode.active = !0;
                        var t = [0, 1, 2, 3, 4, 5];
                        t.splice(t.indexOf(this._data.ChosenElement), 1), n.AutoFight(function() {
                            e.AutoBtnBack.spriteFrame = k.UIUtlity.COMMON_ATLAS4.getSpriteFrame("function_skip"), e.AutoBtnLabel.string = "HolyRelic_AutoFight".ToUILocale(), e.AutoFightBlockNode.active = !1
                        }, function() {
                            return s(e, void 0, void 0, function() {
                                return l(this, function(e) {
                                    switch (e.label) {
                                        case 0:
                                            return [4, this._data.NeedRefreshData("RefreshData_Times")];
                                        case 1:
                                            return e.sent(), [4, this._data.NeedRefreshData("RefreshData_Model")];
                                        case 2:
                                            return e.sent(), this.SetSelecter(!1), this.RenderCheckPoint(), this.RenderItem(), this.RenderCondiction(), this.RenderFinalReward(), this.renderTimes(), [2]
                                    }
                                })
                            })
                        }, t)
                    } else n.endAutoFight = !0
                }, t.prototype.OnClick_back = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickBlock = function() {
                    k.UIUtlity.ShowFloatingHint("HolyRelic_cannotOperate".ToUILocale())
                }, t.prototype.OnClick_fight = function() {
                    if (this._data.Times.residueTimes <= 0) k.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale());
                    else {
                        var e = b.MapType.ArtefactRelic,
                            t = this._data.CheckPointConfig.MapIds,
                            n = this._data.ChosenElement + 1;
                        this._data.PassedCount + 1 >= this._data.MaxCheckPointNum ? k.UIUtlity.ShowFloatingHint("HolyRelic_notNextCheckPoint".ToUILocale()) : u.Game.EventDispatcher.Emit(T.GameEventIds.StartBattle.Fmt(e), !1, t, this._data.CheckPointConfig.Id, n)
                    }
                }, t.prototype.OnNextCheckPoint = function() {
                    return s(this, void 0, void 0, function() {
                        return l(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, this._data.NeedRefreshData("RefreshData_Model")];
                                case 1:
                                    return e.sent(), this.OnClick_fight(), [2]
                            }
                        })
                    })
                }, t.prototype.OnBuyTimes = function() {
                    var e = this;
                    u.UIManager.Instance.ShowUIPanel(p.PanelConfig.HolyRelicBuyTimesPanels.Path, function(t) {
                        var n = new C.Req_Team2_ArtefactRelicBuyCount;
                        n.Count = t, t <= 0 || n.Count > e._data.Times.canBuyTimes - e._data.Times.todayBuyTimes || e._data.Times.canBuyTimes - e._data.Times.todayBuyTimes <= 0 ? k.UIUtlity.ShowFloatingHint("HolyRelic_canBuyTImesNotEnough".ToUILocale()) : v.RpcComponent.Instance.Call(n, function() {
                            return s(e, void 0, void 0, function() {
                                return l(this, function(e) {
                                    switch (e.label) {
                                        case 0:
                                            return this._data.NeedRefreshData("RefreshData_Times"), [4, this._data.NeedRefreshData("RefreshData_Model")];
                                        case 1:
                                            return e.sent(), this.renderTimes(), [2]
                                    }
                                })
                            })
                        })
                    })
                }, t.InitBattle = function() {
                    var e = T.MapType.ArtefactRelic;
                    R.Game.EventDispatcher.Only(T.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), R.Game.EventDispatcher.Only(T.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), R.Game.EventDispatcher.Only(T.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), R.Game.EventDispatcher.Only(T.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.StartBattle = function(e, t, o, r) {
                    void 0 === e && (e = !1), u.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.OnFormationComplete(e, o, r)
                    }, t, {
                        HolyRelicCheckPointId: o,
                        MapIndex: 1,
                        HolyRelicElementType: r
                    })
                }, t.SettleBattle = function(e) {
                    var t = new C.Req_Map_BattleSettlement;
                    t.MapType = b.MapType.ArtefactRelic, v.RpcComponent.Instance.Call(t, function(t) {
                        e.CheckPointId = t.ExtraParam[0].Items[0], e.HolyRelicSettlementRes = t;
                        var n = "HolyRelicsPanel/Panel/HolyRelicSettlementComponent";
                        t.Result ? R.UIManager.Instance.ShowUIPanel(p.PanelConfig.SettlementWinPanel.Path, n, e, t.Rewards, 1) : R.UIManager.Instance.ShowUIPanel(p.PanelConfig.SettlementFailPanel.Path, n, e, t.Rewards, 0)
                    })
                }, t.OnBattleSwitchToBackground = function() {
                    u.UIManager.Instance.QuitPanelStack(p.PanelConfig.HolyRelicsPanel.Path)
                }, t.CancelBattle = function(e) {
                    var t = new C.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, M.RpcComponent.Instance.Call(t, null)
                }, t.OnFormationComplete = function(e, t, n) {
                    var o = new C.Req_Team2_ArtefactRelicChallenge;
                    o.Sid = n, o.Formations = e, v.RpcComponent.Instance.Call(o, function(e) {
                        A.BattleManager.Instance.StartPlay(e.Reports, {
                            SettleAllWhenOneFailed: !0,
                            UserParams: {
                                LevelId: 0
                            },
                            StartBattleDelay: 1400,
                            CanSkipPlay: !0,
                            CanRestart: !1,
                            CanPlayInBackground: !1
                        })
                    })
                }, t.AutoFight = function(e, t, n) {
                    return s(this, void 0, void 0, function() {
                        var o, r, i, a;
                        return l(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    this.autoFight_Rewards = [], o = [], n && (o = n), r = this.AutoFightGetNextCheckPoint(o), s.label = 1;
                                case 1:
                                    return r ? this.endAutoFight ? (this.AutoFight_End(), e && e(), [2]) : F.GetLeftTimes().residueTimes <= 0 ? (k.UIUtlity.ShowFloatingHint("bossWar_times_not_enough".ToUILocale()), [3, 5]) : [4, this.ExecuteCheckPoint(r.elementType, r.formations)] : [3, 5];
                                case 2:
                                    return i = s.sent(), t && t(r), [4, this.AwaitTime(500)];
                                case 3:
                                    if (s.sent(), i.Result || (a = r.elementType - 1, -1 == o.indexOf(a) && o.push(a)), !(r = this.AutoFightGetNextCheckPoint(o))) return i.Result || k.UIUtlity.ShowFloatingHint("holyRelics_battle_fail".ToUILocale()), this.AutoFight_End(), e && e(), [2];
                                    s.label = 4;
                                case 4:
                                    return [3, 1];
                                case 5:
                                    return this.AutoFight_End(), e && e(), [2]
                            }
                        })
                    })
                }, t.AutoFightGetNextCheckPoint = function(e) {
                    var t = this,
                        n = S.ConfigDataComponent.Instance.GetArrayConfig(_.ArtefactRelic_Config),
                        o = [],
                        r = this.GetPassCheckPointCount();
                    n.forEach(function(e) {
                        r >= e.Unlock && o.push(e.Id - 1)
                    });
                    var a, s = o.filter(function(t) {
                            return -1 == e.indexOf(t)
                        }),
                        l = [];
                    s.forEach(function(e) {
                        var n = t.GetElementNextCheckPointId(e);
                        n ? l.push({
                            checkPointId: n,
                            elementType: e + 1
                        }) : k.UIUtlity.ShowFloatingHint("holyRelics_open_all".ToUILocale())
                    });
                    var c = -1;
                    for (c = 0; c < l.length && !(a = this.JudgeCanFightCheckPoint(l[c].checkPointId)); c++);
                    if (a) return i(i({}, l[c]), {
                        formations: a.result
                    })
                }, t.ExecuteCheckPoint = function(e, t) {
                    var n = this,
                        o = this.CrateForamtionsByArray(t),
                        r = new C.Req_Team2_ArtefactRelicChallenge;
                    return r.Sid = e, r.Formations = o, new Promise(function(e) {
                        v.RpcComponent.Instance.Call(r, function() {
                            var t = new C.Req_Map_BattleSettlement;
                            t.MapType = b.MapType.ArtefactRelic, v.RpcComponent.Instance.Call(t, function(t) {
                                n.autoFight_Rewards = n.autoFight_Rewards.concat(t.Rewards);
                                var o = t.ExtraParam[0].Items[1],
                                    r = t.ExtraParam[0].Items[2],
                                    i = t.ExtraParam[0].Items[3],
                                    a = n._elementCongfig[o - 1].name.ToUILocale().RichTextColor(n._elementCongfig[o - 1].color),
                                    s = (10 * r + (i + 1)).toString().RichTextColor("#FFE685"),
                                    l = "HolyRelic_settlement".ToUILocale().Fmt(a, s).RichTextOutLine("#202434", 3);
                                k.UIUtlity.ShowFloatingHint(l), e(t)
                            })
                        })
                    })
                }, t.JudgeCanFightCheckPoint = function(e) {
                    var t = S.ConfigDataComponent.Instance.GetConfigById(_.ArtefactRelicMap_Config, e),
                        n = O.default.Instance.HolyRelicPickHero(e, t.MapIds.length);
                    if (n.success) return n;
                    k.UIUtlity.ShowFloatingHint(n.failMsg)
                }, t.AwaitTime = function(e) {
                    return new Promise(function(t) {
                        setTimeout(function() {
                            t()
                        }, e)
                    })
                }, t.GetElementNextCheckPointId = function(e) {
                    var t, n = S.ConfigDataComponent.Instance.GetConfigById(_.ArtefactRelic_Config, e + 1);
                    if (n) {
                        var o = S.DataCenter.Instance.GetDataById(C.ArtefactRelic_Model, e + 1),
                            r = o ? o.Index : 0,
                            i = o && null != o.MapIndex ? o.MapIndex + 1 : 0;
                        return o && o.MapIndex && 10 == i && (i = 0, r += 1), null === (t = n.Maps[r]) || void 0 === t ? void 0 : t.Items[i]
                    }
                }, t.GetPassCheckPointCount = function() {
                    var e = S.DataCenter.Instance.GetDataList(C.ArtefactRelic_Model),
                        t = 0;
                    return e.forEach(function(e) {
                        t += 10 * e.Index + e.MapIndex
                    }), t
                }, t.CrateForamtionsByArray = function(e) {
                    var t = [];
                    return e.forEach(function(e) {
                        var n = new C.UserFormation_Model;
                        n.Sid = 0, n.Angel = null, n.FormationType = 101, n.HeroIds = e, t.push(n)
                    }), t
                }, t.AutoFight_End = function() {
                    this.autoFight_Rewards.length > 0 && k.UIUtlity.ShwDisplayRewardPanel(this.autoFight_Rewards), this.autoFight_Rewards = []
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = E.default.Instance.GetCurrentGroupId(this._guideIds);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = S.ConfigDataComponent.Instance.GetConfigById(_.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 106:
                                        case 109:
                                            E.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 107:
                                            E.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.BtnList[c.Challenge].node);
                                            break;
                                        case 110:
                                            E.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.BtnList[c.AutoChallenge].node);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, t.autoFight_Rewards = [], t._elementCongfig = [{
                    name: "HolyRelicElementType_blue",
                    color: "#91dcff"
                }, {
                    name: "HolyRelicElementType_red",
                    color: "#ff403e"
                }, {
                    name: "HolyRelicElementType_green",
                    color: "#6eeea7"
                }, {
                    name: "HolyRelicElementType_yellow",
                    color: "#ffa14d"
                }, {
                    name: "HolyRelicElementType_purple",
                    color: "#9a7dfa"
                }, {
                    name: "HolyRelicElementType_chaos",
                    color: "#b440f8"
                }], t.endAutoFight = !1, a([x([cc.Label])], t.prototype, "Labels", void 0), a([x([d.default])], t.prototype, "BtnList", void 0), a([x(g.default)], t.prototype, "Selecter", void 0), a([x(h.default)], t.prototype, "CheckPoint", void 0), a([x(I.default)], t.prototype, "RewardContainer", void 0), a([x(I.default)], t.prototype, "CondictionContainer", void 0), a([x(f.default)], t.prototype, "Times", void 0), a([x(cc.Node)], t.prototype, "FinalRewardItemContainer", void 0), a([x(cc.Node)], t.prototype, "AutoFightBlockNode", void 0), a([x(cc.Sprite)], t.prototype, "AutoBtnBack", void 0), a([x(cc.Sprite)], t.prototype, "BtnBack", void 0), a([x(cc.Node)], t.prototype, "BuyTimesNode", void 0), a([x(cc.Label)], t.prototype, "AutoBtnLabel", void 0), n = a([G], t)
            }(u.BaseUIFullScreenPanel);
        n.default = H;
        var F = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._model = null, t._rewards = [], t._condictions = [], t._chosenElement = 0, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "CheckPointConfig", {
                get: function() {
                    return this._checkPointConfig
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "MaxCheckPointNum", {
                get: function() {
                    var e = this._elementMapsConfig[this._chosenElement + 1].Maps;
                    return e.length * e[0].Items.length
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Condiction", {
                get: function() {
                    return this._condictions
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Times", {
                get: function() {
                    return this._times
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Rewards", {
                get: function() {
                    return this._rewards
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "FinalReward", {
                get: function() {
                    return this._finalReward
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "MapIdx", {
                get: function() {
                    var e;
                    return null === (e = this._model) || void 0 === e ? void 0 : e.MapIndex
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ChosenElement", {
                get: function() {
                    return this._chosenElement
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ElementUnlockCondiction", {
                get: function() {
                    var e = {};
                    for (var t in this._elementMapsConfig) e[t] = this._elementMapsConfig[t].Unlock;
                    return e
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ElementMapLength", {
                get: function() {
                    return this._elementMapsConfig[this._chosenElement + 1].Maps.length
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "PassedCount", {
                get: function() {
                    var e = 0,
                        t = this._elementMapsConfig[this._chosenElement + 1].Maps;
                    return this._model && null != this._model.MapIndex || (e = -1), this._model.Index >= t.length - 1 && this._model.MapIndex >= 9 ? 10 * this._model.Index + this._model.MapIndex : 10 * this._model.Index + (e + 1)
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onLoad = function() {
                this.AddFun("Init", ["RefreshData_Model", "RefreshData_MapConfig", "RefreshData_Times"]), this.AddFun("RefreshData_Model", ["RefreshData_MapConfig", "RefreshData_ChekcPointData"]), this.AddFun("ChangeData_chosenElement", ["RefreshData_Model", "RefreshData_MapConfig"]), this.NeedRefreshData("Init")
            }, t.prototype.Init = function() {
                this._elementMapsConfig = S.ConfigDataComponent.Instance.GetConfig(_.ArtefactRelic_Config)
            }, t.prototype.ChangeData_chosenElement = function(e) {
                this._chosenElement = e, this.DataChanged("ChangeData_chosenElement")
            }, t.prototype.RefreshData_Model = function() {
                this._model = S.DataCenter.Instance.GetDataById(C.ArtefactRelic_Model, this._chosenElement + 1), this._model || (this._model = new C.ArtefactRelic_Model, this._model.Index = 0, this._model.MapIndex = -1)
            }, t.prototype.RefreshData_MapConfig = function() {
                var e = this._model ? this._model.Index : 0,
                    t = this._model.MapIndex + 1;
                t && 10 == t && (t = 0, e += 1);
                var n = this._elementMapsConfig[this._chosenElement + 1].Maps.length;
                this._nowMapCheckPointIds = this._elementMapsConfig[this._chosenElement + 1].Maps[Math.min(n - 1, e)].Items;
                var o = this._nowMapCheckPointIds[t];
                this._checkPointConfig = S.ConfigDataComponent.Instance.GetConfigById(_.ArtefactRelicMap_Config, o)
            }, t.prototype.RefreshData_ChekcPointData = function() {
                var e = this._checkPointConfig.Conditions;
                this._condictions = e.map(function(e) {
                    var t = "";
                    switch (e.Items[0] - 1) {
                        case 0:
                            t = "HolyRelic_haveHero".ToUILocale().Fmt(e.Items[1].ToHeroName());
                            break;
                        case 1:
                            t = "HolyRelic_needElement".ToUILocale().Fmt(e.Items[2], e.Items[1].ToHeroElementName());
                            break;
                        case 2:
                            t = "HolyRelic_needStar".ToUILocale().Fmt(e.Items[1])
                    }
                    return {
                        desc: t,
                        enough: !1
                    }
                }), this._rewards = this._checkPointConfig.Rewards.map(function(e) {
                    return {
                        ItemId: e.Items[0],
                        Count: e.Items[1]
                    }
                });
                var t = this._elementMapsConfig[this._chosenElement + 1].Maps.length,
                    n = this._elementMapsConfig[this._chosenElement + 1].Maps[Math.min(t - 1, this._model.Index)].Items,
                    o = n[n.length - 1],
                    r = S.ConfigDataComponent.Instance.GetConfigById(_.ArtefactRelicMap_Config, o);
                0 != r.Rewards.length && (this._finalReward = {
                    ItemId: r.Rewards[0].Items[0],
                    Count: r.Rewards[0].Items[1]
                })
            }, t.prototype.RefreshData_Times = function() {
                this._times = t.GetLeftTimes()
            }, t.prototype.GetCheckPointIconType = function(e) {
                var t = S.ConfigDataComponent.Instance.GetConfigById(_.ArtefactRelicMap_Config, this._nowMapCheckPointIds[e]);
                return Number(t.Icon)
            }, t.GetLeftTimes = function() {
                var e, t, n, o, r = null === (e = S.DataCenter.Instance.GetSimpleData(b.UserDataKey.ArtefactRelicSettleTime)) || void 0 === e ? void 0 : e.V;
                null == r && (r = w.TimeUtil.Get0ClockTs(v.RpcComponent.Instance.ServerTime));
                var i = null === (t = S.DataCenter.Instance.GetSimpleData(b.UserDataKey.ArtefactRelicPayCount)) || void 0 === t ? void 0 : t.V;
                null == i && (i = 0);
                var a = null === (n = S.DataCenter.Instance.GetSimpleData(b.UserDataKey.ArtefactRelicUsedCount)) || void 0 === n ? void 0 : n.V;
                null == a && (a = 0);
                var s = null === (o = S.DataCenter.Instance.GetSimpleData(b.UserDataKey.ArtefactRelicExtraCount)) || void 0 === o ? void 0 : o.V;
                null == s && (s = 0);
                var l = S.ConfigDataComponent.Instance.GetConfigById(_.GlobalSetting_Config, "ArtefactRelicDailyChallengeCount"),
                    c = S.ConfigDataComponent.Instance.GetConfigById(_.GlobalSetting_Config, "ArtefactRelicDailyPayCount"),
                    u = null == l ? void 0 : l.Value;
                null == u && (u = 0);
                var p = null == c ? void 0 : c.Value;
                null == p && (p = 0);
                var d = w.TimeUtil.Get0ClockTs(v.RpcComponent.Instance.ServerTime),
                    h = (w.TimeUtil.GetDiffDays(r, d, !0) + 1) * u + s;
                return {
                    totalTimes: h,
                    residueTimes: h - a,
                    todayBuyTimes: i,
                    canBuyTimes: p
                }
            }, t
        }(P.HolyrelicConfigPanelDataTool);
        n.HolyRelicsData = F, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/CommonImgBtnComponent": "CommonImgBtnComponent",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/HRCheckpointGroupComponent": "HRCheckpointGroupComponent",
        "../Components/HRTimesComponent": "HRTimesComponent",
        "../Components/HRelicsCondictionComponent": "HRelicsCondictionComponent",
        "../Components/HolyElementSelectComponent": "HolyElementSelectComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PrefabListContainerComp": "PrefabListContainerComp",
        "./HolyrelicConfigPanel": "HolyrelicConfigPanel",
        "./StarTemplePanel": "StarTemplePanel",
        "./WarTokenListPanel": "WarTokenListPanel"
    }],
    HolyStatueAttrItem2: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f33bfjvVWBPTK78/N5q8u+y", "HolyStatueAttrItem2");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.AttrNameLabel = null, t.GrowValueGroup = null, t.OldValueLabel = null, t.NewValueLabel = null, t.SingleValueLabel = null, t._isAllHero = !1, t
                }
                return r(t, e), t.prototype.InitUI = function(e, t, n, o) {
                    this._attrId = e, this._oldValue = n, this._newValue = o, this._isAllHero = t, this.SetIcon(), this.SetAttrName(), this.SetAttrValue()
                }, t.prototype.SetFixedShow = function(e, t, n) {
                    this.AttrIcon.node.active = !1, this.AttrNameLabel.string = e, null == n ? (this.GrowValueGroup.active = !1, this.SingleValueLabel.node.active = !0, this.SingleValueLabel.string = t) : (this.GrowValueGroup.active = !0, this.SingleValueLabel.node.active = !1, this.OldValueLabel.string = t, this.NewValueLabel.string = n)
                }, t.prototype.SetIcon = function() {
                    this.AttrIcon.spriteFrame = a.default.GetAttrIcon(this._attrId)
                }, t.prototype.SetAttrName = function() {
                    this._isAllHero ? this.AttrNameLabel.string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + ("hero_attr_" + this._attrId).ToUILocale() : this.AttrNameLabel.string = ("hero_attr_" + this._attrId).ToUILocale()
                }, t.prototype.SetAttrValue = function() {
                    null == this._newValue ? (this.GrowValueGroup.active = !1, this.SingleValueLabel.node.active = !0, this.SingleValueLabel.string = "+" + a.default.GetHeroAttributeValue(this._oldValue, this._attrId)) : (this.GrowValueGroup.active = !0, this.SingleValueLabel.node.active = !1, this.OldValueLabel.string = "+" + a.default.GetHeroAttributeValue(this._oldValue, this._attrId), this.NewValueLabel.string = "+" + a.default.GetHeroAttributeValue(this._newValue, this._attrId))
                }, i([c(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([c(cc.Label)], t.prototype, "AttrNameLabel", void 0), i([c(cc.Node)], t.prototype, "GrowValueGroup", void 0), i([c(cc.Label)], t.prototype, "OldValueLabel", void 0), i([c(cc.Label)], t.prototype, "NewValueLabel", void 0), i([c(cc.Label)], t.prototype, "SingleValueLabel", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    HolyStatueAttrItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "de29cNHTN1Pvq+M2BuqXge8", "HolyStatueAttrItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../Auxiliary/DataUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Rate = 1] = "Rate"
        })(a || (a = {}));
        var p = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LevelLabel = null, t.FixShowBg = null, t.AttrIcon = null, t.AttrNameLabel = null, t.OldValueLabel = null, t.Arrow = null, t.NewValueLabel = null, t.ValueBgNode = null, t.NameBgNode = null, t.LayoutNode = null, t._oldAttrValue = 0, t._newAttrValue = 0, t._isAllHeroAddtion = !1, t._showType = a.Normal, t
            }
            return r(t, e), t.prototype.SetUI = function(e, t, n, o) {
                this._oldAttrData = e, this._newAttrData = t, this._extraValue = null == n ? 0 : n, this._isAllHeroAddtion = o, this.CalcAttrTypeAndValue(), this.SetIcon(), this.SetAttrName(), this.SetAttrValue(), this.ShowNewValue()
            }, t.prototype.CalcAttrTypeAndValue = function() {
                null != this._oldAttrData && (this._oldAttrType = this._oldAttrData[0], this._oldAttrValue = this._oldAttrData[1]), null != this._newAttrData && (this._newAttrType = this._newAttrData[0], this._newAttrValue = this._newAttrData[1])
            }, t.prototype.SetIcon = function() {
                var e;
                null != this._oldAttrData ? (this._oldAttrData, e = this._oldAttrType) : (this._newAttrData, e = this._newAttrType), this.AttrIcon.spriteFrame = s.default.GetAttrIcon(e)
            }, t.prototype.SetAttrName = function() {
                var e;
                e = null != this._oldAttrData ? this._oldAttrData : this._newAttrData, this._isAllHeroAddtion ? this.AttrNameLabel.string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + ("hero_attr_" + e[0]).ToUILocale() : this.AttrNameLabel.string = ("hero_attr_" + e[0]).ToUILocale()
            }, t.prototype.SetAttrValue = function() {
                this.OldValueLabel.string = "+" + s.default.GetHeroAttributeValue(this._oldAttrValue + this._extraValue, this._oldAttrData[0]), null != this._newAttrData && (this.NewValueLabel.string = "+" + s.default.GetHeroAttributeValue(this._newAttrValue + this._extraValue, this._newAttrData[0]))
            }, t.prototype.ShowNewValue = function() {
                this.Arrow.active = !0, this.NewValueLabel.node.active = !0
            }, t.prototype.SetFixedShow = function(e, t, n) {
                this.LevelLabel.node.active = !0, this.AttrIcon.node.active = !1, this.AttrNameLabel.node.active = !1, this.LevelLabel.string = e, this.FixShowBg.node.width = this.FixShowBg.node.parent.width, this.FixShowBg.node.active = !0, this.OldValueLabel.string = t, null != n && (this.NewValueLabel.string = n)
            }, t.prototype.HideNewValue = function() {
                this.Arrow.active = !1, this.NewValueLabel.node.active = !1
            }, t.prototype.SetWidth = function(e) {
                this.node.width = e, this.ValueBgNode.width = e, this.NameBgNode.width = 220, this.AttrNameLabel.node.width = 140, this.LayoutNode.x = 575
            }, i([u(cc.Label)], t.prototype, "LevelLabel", void 0), i([u(cc.Sprite)], t.prototype, "FixShowBg", void 0), i([u(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([u(cc.Label)], t.prototype, "AttrNameLabel", void 0), i([u(cc.Label)], t.prototype, "OldValueLabel", void 0), i([u(cc.Node)], t.prototype, "Arrow", void 0), i([u(cc.Label)], t.prototype, "NewValueLabel", void 0), i([u(cc.Node)], t.prototype, "ValueBgNode", void 0), i([u(cc.Node)], t.prototype, "NameBgNode", void 0), i([u(cc.Node)], t.prototype, "LayoutNode", void 0), i([c], t)
        }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    HolyStatueReceiveEngeryPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e6d1dZxouZF0L0ygFGCvh7j", "HolyStatueReceiveEngeryPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CustomLayout"),
            p = e("../../Components/DataCenter"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/HeroEngeryItem"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../../../Proto/Static/RpcProto"),
            _ = e("../../Components/RpcComponent"),
            C = e("../../../EZFramework/EZFramework"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Tittle = null, t.Tag = null, t.MaskNode = null, t.ItemGrid = null, t.ItemScroll = null, t.TotalEngeryBarItem = null, t.BtnReceive = null, t.ReceiveBtnLabel = null, t.ENGERY_ITEM_PATH = "StarTemplePanel/Private/HeroEngeryItem", t.BaseStar = 5, t._itemPrefab = null, t._isLayoutInit = !1, t._starHolyStatueFirstEnergyCount = 0, t._statueHeros = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TotalEngeryBarItem.SetFixedWidth(204), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "starHolyStatue_receivePanel_title".ToUILocale(), this.Tag.string = "starHolyStatue_receivePanel_tag".ToUILocale(), this.ReceiveBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnReceive.node.on("click", this.OnBtnReceiveClick, this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.OnBtnReceiveClick, this)
                }, t.prototype.InitData = function() {}, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.LoadGlobalSetting(), this.LoadLevelParams(), this.LoadUserData(), this.CalcTotalEngery(), this.SetTotalEngeryBarItem(), this.InitCustomLayout()
                }, t.prototype.LoadGlobalSetting = function() {
                    this._starHolyStatueFirstEnergyCount = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarHolyStatueFirstEnergyCount")
                }, t.prototype.LoadLevelParams = function() {
                    var e = g.ConfigDataComponent.Instance.GetConfigById(m.LevelParam_Config, d.LevelParamType.StarHolyStatueEnergyCount);
                    this._heroUpGradeGetEngery = e.Data
                }, t.prototype.LoadUserData = function() {
                    this._statueHeros = [];
                    for (var e = p.DataCenter.Instance.GetArrayData(d.UserDataKey.StarHolyStatueHeros), t = 0; t < e.length; t += 2) this._statueHeros.push({
                        HeroId: e[t],
                        StarLevel: e[t + 1]
                    });
                    this.SortByStarLevel(this._statueHeros)
                }, t.prototype.SortByStarLevel = function(e) {
                    e.sort(function(e, t) {
                        return e.StarLevel > t.StarLevel ? -1 : e.StarLevel < t.StarLevel ? 1 : 0
                    })
                }, t.prototype.CalcTotalEngery = function() {
                    for (var e = 0, t = 0; t < this._statueHeros.length; t++) e += this._statueHeros[t].StarLevel <= this.BaseStar ? this._starHolyStatueFirstEnergyCount : this._statueHeros[t].StarLevel > this._heroUpGradeGetEngery.length + this.BaseStar ? this._heroUpGradeGetEngery[this._heroUpGradeGetEngery.length - 1] : this._heroUpGradeGetEngery[this._statueHeros[t].StarLevel - this.BaseStar - 1];
                    this._totalEngery = e
                }, t.prototype.SetTotalEngeryBarItem = function() {
                    this.TotalEngeryBarItem.Init(d.CommonItemId.StarHolyStatueEnergy, !1, this._totalEngery)
                }, t.prototype.InitCustomLayout = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(this.ENGERY_ITEM_PATH, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = t.sent(), !this.isValid) return C.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    return this._isLayoutInit || (this.ItemGrid.Init(this._itemPrefab, !1), this._isLayoutInit = !0), this.RenderLayout(), [2]
                            }
                        })
                    })
                }, t.prototype.RenderLayout = function() {
                    var e = this._statueHeros.length;
                    this.ItemGrid.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.ItemGrid == t && e.forEach(function(e, t) {
                        e.getComponent(f.default).SetUI(n._statueHeros[t].HeroId, n._statueHeros[t].StarLevel)
                    })
                }, t.prototype.OnBtnReceiveClick = function() {
                    C.UIManager.Instance.BackUIPanel(), this.RequestReceiveEngery()
                }, t.prototype.RequestReceiveEngery = function() {
                    var e = new I.Req_Star_GetEnergy;
                    _.RpcComponent.Instance.Call(e, this.ResponseReceiveEngery.bind(this))
                }, t.prototype.ResponseReceiveEngery = function() {
                    c.Game.EventDispatcher.Emit(h.EventKeys.EVENT_RECEIVE_STAR_STATUE_ENGERY)
                }, i([S(cc.Label)], t.prototype, "Tittle", void 0), i([S(cc.Label)], t.prototype, "Tag", void 0), i([S(cc.Node)], t.prototype, "MaskNode", void 0), i([S(u.default)], t.prototype, "ItemGrid", void 0), i([S(cc.ScrollView)], t.prototype, "ItemScroll", void 0), i([S(y.default)], t.prototype, "TotalEngeryBarItem", void 0), i([S(cc.Button)], t.prototype, "BtnReceive", void 0), i([S(cc.Label)], t.prototype, "ReceiveBtnLabel", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroEngeryItem": "HeroEngeryItem"
    }],
    HolyrelicConfigPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1562aniRcZPP7ZmrGAaMou0", "HolyrelicConfigPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HolyrelicConfigData = n.HolyrelicConfigPanelDataTool = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Components/CommonImgBtnComponent"),
            p = e("../Components/DragMoveComponent"),
            d = e("../Components/DragMoveSortGroupComponent"),
            h = e("../Components/HRToggleGroupComponent"),
            f = e("../Components/HolyRelicConfigCellComponent"),
            y = e("../Components/HolyRelicConfigHeroPart"),
            g = e("../Components/PrefabListContainerComp"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("./EquConfigTipsPanel"),
            _ = e("../../Components/DataCenter"),
            C = e("../../Components/RpcComponent"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = e("../../../../Proto/Static/ConfigProto"),
            S = e("../../Components/Components"),
            w = e("../../../ShareConsts/EnumType"),
            P = e("../../Auxiliary/DataUtlity"),
            A = e("../Auxiliary/UIUtlity"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Labels = [], t.BtnList = [], t.ToggleGroup = null, t.EquConfigContainer = null, t.HeroConfigContainer = null, t.SortGroupComponent = null, t.Layout = null, t._labelsConfig = [], t._btnConfig = [], t._inToggleNum = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(this._data.uuid + "_RefreshData_Map", this.OnEquDataChange, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(this._data.uuid + "_RefreshData_Map", this.OnEquDataChange, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._labelsConfig = ["HolyRelic_config".ToUILocale(), "HolyRelic_configTip1".ToUILocale(), "HolyRelic_configTip2".ToUILocale()], this._btnConfig = [{
                        label: "",
                        fun: "rule"
                    }, {
                        label: "",
                        fun: "back"
                    }, {
                        label: "HolyRelic_equOneBtn".ToUILocale(),
                        fun: "equ"
                    }, {
                        label: "save".ToUILocale(),
                        fun: "save"
                    }, {
                        label: "gem_auto_unload".ToUILocale(),
                        fun: "unequ"
                    }], this.ConfigBtn(), this.ConfigLabel()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = this.node.addComponent(M), t[0] && this._data.ChangeData_Heros(t[0])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.node.on(this._data.uuid + "_RefreshData_Map", this.OnEquDataChange, this), this.node.on(this._data.uuid + "_ChangeData_GroupIndex", this.OnGroupChange, this), this.ConfigToggle(), this.EquConfigContainer.Init("HolyRelicsPanel/Component/HolyRelicConfigCellComponent", f.default, this.HandleEquConfigCell.bind(this)), this.HeroConfigContainer.Init("HolyRelicsPanel/Component/HolyRelicConfigHeroPart", y.default, this.HandleHeroConfigCell.bind(this)), this.RenderConfigCell())
                }, t.prototype.ConfigBtn = function() {
                    var e = this;
                    this.BtnList.forEach(function(t, n) {
                        t.Set(e["OnClick_" + e._btnConfig[n].fun].bind(e), e._btnConfig[n].label)
                    })
                }, t.prototype.ConfigLabel = function() {
                    var e = this;
                    this.Labels.forEach(function(t, n) {
                        t.string = e._labelsConfig[n]
                    })
                }, t.prototype.ConfigToggle = function() {
                    for (var e = this, t = [], n = 0; n < this._data.FormationCount; n++) t.push("formation_index".ToUILocale().Fmt(n + 1));
                    this.ToggleGroup.Set(t, function(n, o) {
                        n.Init(t[o]), n.node.on("toggle", e.OnToggle, e)
                    })
                }, t.prototype.RenderConfigCell = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this.EquConfigContainer.Set(5)];
                                case 1:
                                    return t.sent(), this.HeroConfigContainer.Set(5), this.Layout.updateLayout(), e = this.EquConfigContainer.CompList.map(function(e) {
                                        return e.node
                                    }), this.SortGroupComponent.Init(e), this.SortGroupComponent.node.off(c.EventKeys.DRAGMOVESORTGROUP_CHANGE, this.OnEquSortChange, this), this.SortGroupComponent.node.on(c.EventKeys.DRAGMOVESORTGROUP_CHANGE, this.OnEquSortChange, this), [2]
                            }
                        })
                    })
                }, t.prototype.HandleEquConfigCell = function(e, t) {
                    e.Init(this._data.EquSimpleInfo[t], t, this._data), e.node.off(c.EventKeys.HOLYRELICCONFIGCELL_ARROW, this.OnArrowClick, this), e.node.on(c.EventKeys.HOLYRELICCONFIGCELL_ARROW, this.OnArrowClick, this);
                    var n = this.SortGroupComponent.SortCache.indexOf(e.node); - 1 == n && (n = t), 0 == n ? e.SetArrowBtn([!1, !0]) : n == this.EquConfigContainer.MaxLength - 1 ? e.SetArrowBtn([!0, !1]) : e.SetArrowBtn([!0, !0]), e.node.off(c.EventKeys.DRAGMOVE_MOUSEDOWN, this.MouseDown, this), e.node.on(c.EventKeys.DRAGMOVE_MOUSEDOWN, this.MouseDown, this), e.node.getComponent(p.default).ChangeMoveBehavior(function(e) {
                        return e.x = 0, e
                    })
                }, t.prototype.HandleHeroConfigCell = function(e, t) {
                    e.Init(this._data.Heros[t], t), e.node.on(c.EventKeys.HOLYRELICCONFIGHERO_CHECK, this.OnClickOneBtn, this)
                }, t.prototype.OnToggle = function(e) {
                    var t = this.ToggleGroup.ToggleGroup.CompList.indexOf(e);
                    t < 0 || t == this._inToggleNum || (this._inToggleNum = t, this._data.ChangeData_GroupIndex(t))
                }, t.prototype.OnClick_equ = function() {
                    this._data.OneBtnEqu()
                }, t.prototype.OnClick_unequ = function() {
                    this._data.OneBtnUnEqu()
                }, t.prototype.OnClick_save = function() {
                    this._data.Save()
                }, t.prototype.OnClick_rule = function() {
                    var e = {
                        name: "HolyRelic_config_ruleTitle".ToUILocale(),
                        titles: ["HolyRelic_config_ruleSubTitle".ToUILocale()],
                        contents: ["HolyRelic_config_ruleContent".ToUILocale()]
                    };
                    A.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnClick_back = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {}, t.prototype.MouseDown = function() {
                    this.Layout.enabled = !1
                }, t.prototype.OnEquSortChange = function(e) {
                    var t = e.SortCache;
                    t.forEach(function(e, n) {
                        var o = e.getComponent(f.default);
                        0 == n ? o.SetArrowBtn([!1, !0]) : n == t.length - 1 ? o.SetArrowBtn([!0, !1]) : o.SetArrowBtn([!0, !0])
                    })
                }, t.prototype.OnClickOneBtn = function(e, t) {
                    var n = this.HeroConfigContainer.CompList.findIndex(function(t) {
                        return t == e
                    });
                    this._data.ChangeData_operateOneBtn(n, t)
                }, t.prototype.OnArrowClick = function(e, t) {
                    var n = e.node,
                        o = this.SortGroupComponent.SortCache.findIndex(function(e) {
                            return e == n
                        });
                    this.SortGroupComponent.SwapNodePosition([o, o + t])
                }, t.prototype.OnEquDataChange = function() {
                    this.RenderConfigCell()
                }, t.prototype.OnGroupChange = function() {
                    this.RenderConfigCell()
                }, i([L([cc.Label])], t.prototype, "Labels", void 0), i([L([u.default])], t.prototype, "BtnList", void 0), i([L(h.default)], t.prototype, "ToggleGroup", void 0), i([L(g.default)], t.prototype, "EquConfigContainer", void 0), i([L(g.default)], t.prototype, "HeroConfigContainer", void 0), i([L(d.default)], t.prototype, "SortGroupComponent", void 0), i([L(cc.Layout)], t.prototype, "Layout", void 0), i([R], t)
            }(l.BaseUIFullScreenPanel);
        n.default = k;
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._dataRelation = {}, t._relationInitFlag = !1, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this._relationInitFlag || (this.InitRelation(), this._relationInitFlag = !0)
            }, t.prototype.AddFun = function(e, t) {
                this._dataRelation[e] = {
                    FunName: e,
                    ChildrenFuntion: t
                }
            }, t.prototype.InitRelation = function() {}, t.prototype.NeedRefreshData = function(e) {
                return a(this, void 0, void 0, function() {
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, this.RefreshData(e)];
                            case 1:
                                return t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.DataChanged = function(e) {
                return a(this, void 0, void 0, function() {
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, this.RefreshData(e, !1)];
                            case 1:
                                return t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.RefreshData = function(e, t) {
                var n;
                return void 0 === t && (t = !0), a(this, void 0, void 0, function() {
                    var o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this._relationInitFlag || (this.InitRelation(), this._relationInitFlag = !0), this[e] ? t ? [4, this[e]()] : [3, 2] : [2];
                            case 1:
                                r.sent(), r.label = 2;
                            case 2:
                                return this.node.emit(this.uuid + "_" + e), this._dataRelation[e] && (null === (n = this._dataRelation[e].ChildrenFuntion) || void 0 === n ? void 0 : n.length) > 0 && this._dataRelation[e].ChildrenFuntion.forEach(function(e) {
                                    return a(o, void 0, void 0, function() {
                                        return s(this, function(t) {
                                            switch (t.label) {
                                                case 0:
                                                    return [4, this.RefreshData(e)];
                                                case 1:
                                                    return t.sent(), [2]
                                            }
                                        })
                                    })
                                }), [2]
                        }
                    })
                })
            }, t
        }(cc.Component);
        n.HolyrelicConfigPanelDataTool = O;
        var M = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._equModelTypeConfig = [m.Equipment_Model, null, m.LuckyCharmEquip_Model, m.PowerCore_Model, m.GemEquip_Model, m.UserPet_Model], t._formations = [], t._equ_position_map = {}, t._position_equ_map = {}, t._operateOneBtn = [], t._specialModelEqu = {}, t.FullEqu = !1, t.FormationCount = 0, t.UsedMap = {}, t.GroupIndex = 0, t.EquSimpleInfo = [], t
            }
            return r(t, e), Object.defineProperty(t.prototype, "Heros", {
                get: function() {
                    return this._formations[this.GroupIndex]
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.InitRelation = function() {
                e.prototype.InitRelation.call(this), this.AddFun("ChangeData_Heros", ["Init"]), this.AddFun("Init", ["RefreshData_Map", "RefreshData_FormationCount", "RefreshData_FullEqu", "RefreshData_UsedMap"]), this.AddFun("RefreshData_Map", ["RefreshData_EquSimpleInfo"]), this.AddFun("ChangeData_GroupIndex", ["RefreshData_EquSimpleInfo"])
            }, t.prototype.GetEquSid = function(e, t, n) {
                return this._position_equ_map[this.GroupIndex + "_" + e + "_" + t + "_" + n]
            }, t.prototype.GetEquTypeSids = function(e, t) {
                for (var n = this.EquTypeLength(t), o = [], r = 0; r < n; r++) {
                    var i = this.GroupIndex + "_" + e + "_" + t + "_" + r,
                        a = this._position_equ_map[i];
                    this._specialModelEqu[a] && (a = this._specialModelEqu[a]), o.push(a)
                }
                return o
            }, t.prototype.ChangeEquSidByPosition = function(e, t, n, o, r, i, a, s) {
                if (void 0 === e && (e = void 0), void 0 === i && (i = !0), void 0 === a && (a = !1), void 0 === s && (s = !1), s && (n = w.ArtefactRelicEquipIndex.HolyEquip), null == e && (e = this.GroupIndex), r) {
                    var l = e + "_" + t + "_" + n + "_" + o,
                        c = this._position_equ_map[l];
                    if (0 != n && 1 != n || (this.EquVirtualEqu(r, l, a), this.HandleEquHoly(r, l, s)), this._equ_position_map[e + "_" + n + "_" + r]) {
                        var u = this._equ_position_map[e + "_" + n + "_" + r];
                        u && delete this._position_equ_map[u]
                    }
                    this._position_equ_map[l] = r, c && delete this._equ_position_map[e + "_" + n + "_" + c], this._equ_position_map[e + "_" + n + "_" + r] = l, i && this.DataChanged("RefreshData_Map")
                }
            }, t.prototype.OneBtnEqu = function() {
                for (var e = this, t = [], n = [], o = [
                        [],
                        [],
                        [],
                        []
                    ], r = [0, 0, 0, 0], i = [
                        [],
                        [],
                        []
                    ], a = [0, 0, 0], s = function(r) {
                        if (n.push(0), r == I.EquConfigTipsType.holy) return t.push([]), "continue";
                        var a = l.GetEquDatasByType(r);
                        0 == r ? (o = P.default.Instance.HolyRelicGetUserEqu(), t.push([])) : 4 == r ? (a.forEach(function(t) {
                            for (var n = !1, o = 0; o < 5; o++)
                                if (e._equ_position_map[o + "_" + r + "_" + t.Sid]) {
                                    n = !0;
                                    break
                                } if (!n) {
                                var a = S.ConfigDataComponent.Instance.GetConfigById(b.GemEquip_Config, t.ItemId);
                                i[a.Type - 1].push(t)
                            }
                        }), t.push([])) : (a = a.filter(function(t) {
                            for (var n = !1, o = 0; o < 5; o++)
                                if (e._equ_position_map[o + "_" + r + "_" + t.Sid]) {
                                    n = !0;
                                    break
                                } return !n
                        }), t.push(a))
                    }, l = this, c = 0; c < 6; c++) s(c);
                var u = [];
                this.ErgodicEquInfo(function(t, n, o, r, i) {
                    return r == I.EquConfigTipsType.holy || -1 == e._operateOneBtn.indexOf(o) || ((t = e._position_equ_map[n + "_" + o + "_" + r + "_" + i]) || 0 != r || (t = e._position_equ_map[n + "_" + o + "_1_" + i]), t || u.push(n + "_" + o + "_" + r + "_" + i), !0)
                }), u.forEach(function(s) {
                    var l, c, u, p, d, h, f, y, g = s.split("_"),
                        m = Number(g[0]),
                        I = Number(g[1]),
                        _ = Number(g[2]),
                        C = Number(g[3]),
                        v = !1,
                        b = !1;
                    if (0 == _) {
                        var S, w = o[C],
                            P = r[C],
                            A = 0;
                        S = w.findIndex(function(t) {
                            return A += t.Count, (!t.Sid || !e._equ_position_map[m + "_" + (t.IsHolyEquip ? 1 : _) + "_" + t.Sid]) && P < A
                        }), (null === (l = w[S]) || void 0 === l ? void 0 : l.IsHolyEquip) ? (v = !1, b = !0, y = null === (c = w[S]) || void 0 === c ? void 0 : c.Sid) : (null === (u = w[S]) || void 0 === u ? void 0 : u.Sid) ? y = null === (p = w[S]) || void 0 === p ? void 0 : p.Sid : w[S] && (v = !0, b = !1, y = null === (d = w[S]) || void 0 === d ? void 0 : d.ItemId), r[C] += 1
                    } else 4 == _ ? (y = null === (h = i[Math.floor(C / 2)][a[Math.floor(C / 2)]]) || void 0 === h ? void 0 : h.Sid, a[Math.floor(C / 2)] += 1) : (y = null === (f = t[_][n[_]]) || void 0 === f ? void 0 : f.Sid, n[_] += 1);
                    y && e.ChangeEquSidByPosition(m, I, _, C, y || 0, !1, v, b)
                }), this.DataChanged("RefreshData_Map")
            }, t.prototype.OneBtnUnEqu = function() {
                var e = this;
                Object.keys(this._position_equ_map).forEach(function(t) {
                    var n = t.split("_"),
                        o = Number(n[0]),
                        r = Number(n[1]);
                    o === e.GroupIndex && e._operateOneBtn.includes(r) && -1 != e._operateOneBtn.indexOf(Number(r)) && delete e._position_equ_map[t]
                }), Object.keys(this._equ_position_map).forEach(function(t) {
                    var n = e._equ_position_map[t].split("_"),
                        o = Number(n[0]),
                        r = Number(n[1]);
                    o === e.GroupIndex && e._operateOneBtn.includes(r) && -1 != e._operateOneBtn.indexOf(Number(r)) && delete e._equ_position_map[t]
                }), this.DataChanged("RefreshData_Map")
            }, t.prototype.Save = function() {
                var e = this,
                    t = new m.Req_Team2_ArtefactRelicEquip;
                this.ErgodicEquInfo(function(n, o, r, i, a) {
                    var s = o + "_" + r + "_" + i + "_" + a,
                        l = e._position_equ_map[s];
                    if (e._specialModelEqu[s]) {
                        t.Items || (t.Items = []);
                        var c = new m.IntArray;
                        c.Items = [o + 1, r + 1, a, l], t.Items.push(c), e._equInfo[o]["Equip" + (r + 1)][i].Items[a] = 0
                    } else e._equInfo[o] || (e._equInfo[o] = new m.ArtefactRelicEquip_Model, e._equInfo[o].Sid = o + 1), e._equInfo[o]["Equip" + (r + 1)][i] || (e._equInfo[o]["Equip" + (r + 1)][i] = new m.IntArray, e._equInfo[o]["Equip" + (r + 1)][i].Items = []), e._equInfo[o]["Equip" + (r + 1)][i].Items[a] = l || 0;
                    return !0
                }), t.Equips = this._equInfo, t.Equips.forEach(function(e, t) {
                    e.Sid = t + 1
                }), C.RpcComponent.Instance.Call(t, function() {
                    e._specialModelEqu = {}, A.UIUtlity.ShowFloatingHint("gem_reset_save_success".ToUILocale()), e.NeedRefreshData("Init")
                })
            }, t.prototype.EquVirtualEqu = function(e, t, n) {
                n ? this._specialModelEqu[t] = e : this._specialModelEqu[t] && delete this._specialModelEqu[t]
            }, t.prototype.HandleEquHoly = function(e, t, n) {
                var o = t.split(""),
                    r = o[0],
                    i = o[2],
                    a = o[6];
                if (n) {
                    var s = "0";
                    delete this._position_equ_map[r + "_" + i + "_" + s + "_" + a], delete this._equ_position_map[r + "_" + s + "_" + e], delete this._specialModelEqu[r + "_" + i + "_" + s + "_" + a]
                } else s = "1", delete this._position_equ_map[r + "_" + i + "_" + s + "_" + a], delete this._equ_position_map[r + "_" + s + "_" + e]
            }, t.prototype.GetVirtualEquItemId = function(e, t, n) {
                return this._specialModelEqu[this.GroupIndex + "_" + e + "_" + t + "_" + n]
            }, t.prototype.Init = function() {
                var e = this;
                this._equInfo = _.DataCenter.Instance.GetDataList(m.ArtefactRelicEquip_Model), this._equInfo && 0 != this._equInfo.length || this._formations.forEach(function(t, n) {
                    e._equInfo = [];
                    var o = new m.ArtefactRelicEquip_Model;
                    e._equInfo.push(o), e._equInfo[n] = o, e._equInfo[n].Sid = 0;
                    for (var r = 0; r < 5; r++) {
                        o["Equip" + (r + 1)] = [];
                        for (var i = 0; i < 5; i++) o["Equip" + (r + 1)][i] = new m.IntArray, o["Equip" + (r + 1)][i].Items = []
                    }
                })
            }, t.prototype.RefreshData_Map = function() {
                var e = this;
                this.ErgodicEquInfo(function(t, n, o, r, i) {
                    if (!t) return !0;
                    var a = n + "_" + o + "_" + r + "_" + i;
                    return e._equ_position_map[n + "_" + r + "_" + t] = a, e._position_equ_map[a] = t, !0
                }), this._equInfo && this._equInfo.length > 0 && this._equInfo.forEach(function(e) {
                    e.Equip1
                })
            }, t.prototype.RefreshData_FullEqu = function() {
                return this.FullEqu = Object.keys(this._equ_position_map).length == 70 * this.Heros.length, this.FullEqu
            }, t.prototype.RefreshData_FormationCount = function() {
                this.FormationCount = this._formations.length
            }, t.prototype.RefreshData_EquSimpleInfo = function() {
                var e = this.GroupIndex;
                this.EquSimpleInfo = [];
                for (var t = 0; t < 5; t++) {
                    this.EquSimpleInfo[t] = [];
                    for (var n = 0; n < 6; n++) this.EquSimpleInfo[t][n] = this._position_equ_map[e + "_" + t + "_" + n + "_0"]
                }
            }, t.prototype.RefreshData_UsedMap = function() {
                var e = this;
                this.ErgodicEquInfo(function(t, n, o, r) {
                    return e.UsedMap[r] || (e.UsedMap[r] = {}), e.UsedMap[r][t] || (e.UsedMap[r][t] = {}), e.UsedMap[r][t].group = n, e.UsedMap[r][t].inGroupIndex = o, e.UsedMap[r][t].heroSid = e._formations[n][o], !0
                })
            }, t.prototype.ChangeData_Heros = function(e) {
                this._formations = e, this.DataChanged("ChangeData_Heros")
            }, t.prototype.ChangeData_operateOneBtn = function(e, t) {
                var n = this._operateOneBtn.findIndex(function(t) {
                    return t == e
                });
                !t || null != n && -1 != n || this._operateOneBtn.push(e), t || null == n || -1 == n || this._operateOneBtn.splice(n, 1)
            }, t.prototype.ChangeData_GroupIndex = function(e) {
                e < 0 || e >= this._formations.length || (this.GroupIndex = e, this.DataChanged("ChangeData_GroupIndex"))
            }, t.prototype.ErgodicEquInfo = function(e) {
                for (var t = 0; t < this._formations.length; t++)
                    for (var n = 0; n < 5; n++) {
                        var o = void 0;
                        this._equInfo[t] && (o = this._equInfo[t]["Equip" + (n + 1)]);
                        for (var r = 0; r < 6; r++) {
                            var i = void 0;
                            o && o[r] && (i = o[r].Items), i || (i = []);
                            for (var a = this.EquTypeLength(r), s = 0; s < a; s++)
                                if (!e(i[s], t, n, r, s)) return
                        }
                    }
            }, t.prototype.EquTypeLength = function(e) {
                switch (e) {
                    case I.EquConfigTipsType.equ:
                        return 4;
                    case I.EquConfigTipsType.rune:
                        return 2;
                    case I.EquConfigTipsType.charm:
                        return 6;
                    case I.EquConfigTipsType.holy:
                        return 4
                }
                return 1
            }, t.prototype.GetEquDatasByType = function(e) {
                if (e != I.EquConfigTipsType.holy) {
                    var t = this._equModelTypeConfig[e];
                    return _.DataCenter.Instance.GetDataList(t)
                }
            }, t.prototype.InitGroupConfig = function() {
                var e = this,
                    t = new m.Req_Player_GetPlayerDetailInfo;
                t.Uid = 12194, t.Zone = 0, C.RpcComponent.Instance.Call(t, function(t) {
                    l.UIManager.Instance.ShowUIPanel(v.PanelConfig.BattleFormationPanel.Path, function(t) {
                        e.GetFormationsEquData(t)
                    }, [13], {
                        PlayerDetailInfos: [t.Info]
                    })
                })
            }, t.prototype.GetFormationsEquData = function(e) {
                var t = this;
                e.forEach(function(e, n) {
                    for (var o = e.HeroIds, r = function(e) {
                            t.GetEquDatasByType(e).forEach(function(r) {
                                var i = r.OwnerId,
                                    a = o.indexOf(i);
                                if (0 != i && -1 != a) {
                                    var s = 0;
                                    switch (e) {
                                        case I.EquConfigTipsType.equ:
                                            var l = r.ItemId;
                                            s = S.ConfigDataComponent.Instance.GetConfigById(b.ItemEquipment_Config, l).Type - 1;
                                            break;
                                        case I.EquConfigTipsType.rune:
                                        case I.EquConfigTipsType.charm:
                                            s = r.SlotId - 1
                                    }
                                    var c = t._position_equ_map[n + "_" + a + "_" + e + "_" + s];
                                    t._position_equ_map[n + "_" + a + "_" + e + "_" + s] = r.Sid, c && delete t._equ_position_map[n + "_" + e + "_" + c], t._equ_position_map[n + "_" + e + "_" + r.Sid] = n + "_" + a + "_" + e + "_" + s
                                }
                            })
                        }, i = 0; i < 6; i++) r(i)
                })
            }, t
        }(O);
        n.HolyrelicConfigData = M, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CommonImgBtnComponent": "CommonImgBtnComponent",
        "../Components/DragMoveComponent": "DragMoveComponent",
        "../Components/DragMoveSortGroupComponent": "DragMoveSortGroupComponent",
        "../Components/HRToggleGroupComponent": "HRToggleGroupComponent",
        "../Components/HolyRelicConfigCellComponent": "HolyRelicConfigCellComponent",
        "../Components/HolyRelicConfigHeroPart": "HolyRelicConfigHeroPart",
        "../Components/PrefabListContainerComp": "PrefabListContainerComp",
        "./EquConfigTipsPanel": "EquConfigTipsPanel"
    }],
    HotUpdateComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "88e29LAQRdAq5mBGJlNuy2/", "HotUpdateComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
            return (o = Object.setPrototypeOf || {
                    __proto__: []
                }
                instanceof Array && function(e, t) {
                    e.__proto__ = t
                } || function(e, t) {
                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                })(e, t)
        }, function(e, t) {
            function n() {
                this.constructor = e
            }
            o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
        });
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HotUpdateComponent = void 0;
        var i, a = e("../../Consts/Consts"),
            s = e("../../EZFramework/EZFramework"),
            l = e("../../Util/index"),
            c = e("../UI/Auxiliary/UIUtlity");
        (function(e) {
            e[e.Init = 0] = "Init", e[e.DownloadBase = 1] = "DownloadBase", e[e.UnzipBase = 2] = "UnzipBase", e[e.DownloadPatch = 3] = "DownloadPatch"
        })(i || (i = {}));
        var u = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.AssetServerAddress = null, t.CurrentState = 0, t.ErrorMessage = null, t.AssetsVersionFile = null, t.AssetRootPath = null, t.TempAssetPath = null, t.BaseAssetPack = null, t.ShouldDownloadBasePack = !1, t.IsUserConfirmed = !1, t.CurrentAssetsVersion = 0, t
            }
            return r(t, e), t.prototype.Init = function() {
                cc.sys.isNative && (this.Reset(), this.AssetsVersionFile = jsb.fileUtils.getWritablePath() + a.NativePaths.AssetsVersion, this.AssetRootPath = jsb.fileUtils.getWritablePath() + a.NativePaths.AssetsRoot, this.TempAssetPath = jsb.fileUtils.getWritablePath() + a.NativePaths.AssetsRoot + "__temp", this.ShouldDownloadBasePack = !0, jsb.fileUtils.isFileExist(this.AssetsVersionFile) && (this.ShouldDownloadBasePack = !1, this.CurrentAssetsVersion = l.AppUtil.ToInt(jsb.fileUtils.getStringFromFile(this.AssetsVersionFile)))), e.prototype.Init.call(this)
            }, t.prototype.Dispose = function() {
                this.IsDisposed || e.prototype.Dispose.call(this)
            }, Object.defineProperty(t.prototype, "Progress", {
                get: function() {
                    return this.TotalSize > 0 ? this.DownloadSize / this.TotalSize : 0
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Message", {
                get: function() {
                    if (this.ErrorMessage) return this.ErrorMessage;
                    var e;
                    switch (this.CurrentState) {
                        case i.DownloadBase:
                            e = "hot_update_download_base".ToUILocale().Fmt(this.DownloadSize.FmtSize(1), this.TotalSize.FmtSize(1));
                            break;
                        case i.UnzipBase:
                            e = "hot_update_unzip_base".ToUILocale().Fmt(Math.ceil(100 * this.DownloadSize / this.TotalSize));
                            break;
                        case i.DownloadPatch:
                            e = "hot_update_download_patch".ToUILocale().Fmt(this.DownloadSize.FmtSize(1), this.TotalSize.FmtSize(1));
                            break;
                        default:
                            e = ""
                    }
                    return e
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.InitData = function(e, t) {
                cc.sys.isNative && (this.AssetServerAddress = e, this.BaseAssetPack = t)
            }, t.prototype.CheckUpdate = function() {
                s.EZLog.Debug("start hot update."), cc.sys.isNative ? this.ShouldDownloadBasePack && (cc.log("check net work"), this.CheckNetwork(this.DownloadBasePackage.bind(this))) : s.Game.EventDispatcher.Emit(a.GameEventIds.HotUpdateComplete)
            }, t.prototype.DownloadBasePackage = function() {
                cc.log("DownloadBasePackage"), this.CurrentState = i.DownloadBase;
                var e = jsb.fileUtils.getWritablePath() + a.NativePaths.AssetsRoot,
                    t = this,
                    n = new jsb.Downloader;
                n.setOnTaskError(function(e, n, o, r) {
                    s.EZLog.Error("download base pack error: " + r), t.ErrorMessage = "hot_update_download_error".ToUILocale()
                }), n.setOnTaskProgress(function(e, n, o, r) {
                    cc.log("download progress:", n, o, r), t.DownloadSize = o, t.TotalSize = r
                }), n.setOnFileTaskSuccess(function() {
                    s.EZLog.Debug("base pack download success."), t.DownloadSize = t.TotalSize;
                    var n = jsb.fileUtils.getDataFromFile(e);
                    jsb.fileUtils.removeFile(e), t.UnzipBasePackage(n)
                }), n.createDownloadFileTask("http://10.1.1.60/queen-web2/base/test.zip", e)
            }, t.prototype.UnzipBasePackage = function(e) {
                var t = this;
                this.CurrentState = i.UnzipBase, jsb.fileUtils.isFileExist(this.AssetRootPath) && jsb.fileUtils.removeDirectory(this.AssetRootPath), jsb.fileUtils.createDirectory(this.AssetRootPath);
                var n = this;
                (new JSZip).loadAsync(e).then(function(e) {
                    var o = [],
                        r = 0;
                    for (var i in e.files) "version" == i ? e.file(i).async("string").then(function(e) {
                        r = l.AppUtil.ToInt(e), s.EZLog.Debug("base pack asset ver: " + r)
                    }) : e.files[i].dir ? jsb.fileUtils.createDirectory(t.AssetRootPath + "/" + i) : o.push(i);
                    n.TotalSize = o.length, n.DownloadSize = 0;
                    for (var a = function(r) {
                            e.file(o[r]).async("uint8array").then(function(e) {
                                jsb.fileUtils.writeDataToFile(e, t.AssetRootPath + "/" + o[r]), n.DownloadSize++, n.TotalSize == n.DownloadSize && cc.error("unzip complete")
                            })
                        }, c = 0; c < o.length; c++) a(c)
                })
            }, t.prototype.DownloadPatch = function() {}, t.prototype.CheckNetwork = function(e) {
                var t = this;
                this.IsUserConfirmed || cc.sys.getNetworkType() == cc.sys.NetworkType.LAN ? e() : c.UIUtlity.ShowHintPanel(null, "hot_update_download_confirm_tip".ToUILocale(), "hot_update_download_cancel_btn".ToUILocale(), function() {
                    cc.game.end()
                }, "hot_update_download_submit_btn".ToUILocale(), function() {
                    t.IsUserConfirmed = !0, e()
                })
            }, t.prototype.Reset = function() {
                this.DownloadQueue = [], this.DownloadThreads = 0, this.CurrentState = i.Init, this.TotalSize = 0, this.DownloadSize = 0, this.IsUserConfirmed = !1, this.ErrorMessage = null
            }, t.CompName = "HotUpdateComponent", t.MaxDownloadThreads = 5, t
        }(s.Component);
        n.HotUpdateComponent = u, cc._RF.pop()
    }, {
        "../../Consts/Consts": "Consts",
        "../../EZFramework/EZFramework": "EZFramework",
        "../../Util/index": "index",
        "../UI/Auxiliary/UIUtlity": "UIUtlity"
    }],
    HotUpdate: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "70466Vr5qZKFqsNoIGtJuj4", "HotUpdate");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Tips = null, t.Progress = null, t.ManifestUrl = null, t._StoragePath = null, t._AssetManager = null, t._Updating = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    if (cc.sys.isNative) {
                        var e = jsb.fileUtils.getSearchPaths();
                        console.log("search path", e);
                        var t = (jsb.fileUtils ? jsb.fileUtils.getWritablePath() : "/") + "blackjack-remote-asset";
                        console.log(t)
                    }
                }, t.prototype.onDestroy = function() {
                    this._AssetManager && this._AssetManager.setEventCallback(null)
                }, t.prototype.CheckUpdate = function() {
                    if (this._Updating) this.Tips.string = "Checking or updating ...";
                    else {
                        if (this._AssetManager.getState() === jsb.AssetsManager.State.UNINITED) {
                            var e = this.ManifestUrl.nativeUrl;
                            cc.loader.md5Pipe && (e = cc.loader.md5Pipe.transformURL(e)), this._AssetManager.loadLocalManifest(e)
                        }
                        cc.log("ver:" + this._AssetManager.getLocalManifest().getVersion()), this._AssetManager.getLocalManifest() && this._AssetManager.getLocalManifest().isLoaded() ? (this._AssetManager.setEventCallback(this.CheckCallback.bind(this)), this._AssetManager.checkUpdate(), this._Updating = !0) : this.Tips.string = "Failed to load local manifest ..."
                    }
                }, t.prototype.HotUpdate = function() {
                    if (this._AssetManager && !this._Updating) {
                        if (this._AssetManager.setEventCallback(this.UpdateCallback.bind(this)), this._AssetManager.getState() === jsb.AssetsManager.State.UNINITED) {
                            var e = this.ManifestUrl.nativeUrl;
                            cc.loader.md5Pipe && (e = cc.loader.md5Pipe.transformURL(e)), this._AssetManager.loadLocalManifest(e)
                        }
                        this._AssetManager.update(), this._Updating = !0
                    }
                }, t.prototype.CheckCallback = function(e) {
                    switch (cc.log("CheckCallback Code: " + e.getEventCode()), e.getEventCode()) {
                        case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
                            this.Tips.string = "No local manifest file found, hot update skipped.";
                            break;
                        case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
                        case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
                            this.Tips.string = "Fail to download manifest file, hot update skipped.";
                            break;
                        case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
                            return cc.log("Already up to date with the latest remote version."), void cc.director.loadScene("Main");
                        case jsb.EventAssetsManager.NEW_VERSION_FOUND:
                            this.Tips.string = "New version found, please try to update. (" + this._AssetManager.getTotalBytes() + ")", this.Progress.string = "";
                            break;
                        default:
                            return
                    }
                    console.log(this.Tips.string), this._AssetManager.setEventCallback(null), this._Updating = !1, console.log("start hot update"), this.HotUpdate()
                }, t.prototype.UpdateCallback = function(e) {
                    var t = !1,
                        n = !1;
                    switch (e.getEventCode()) {
                        case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
                            this.Tips.string = "No local manifest file found, hot update skipped.", n = !0;
                            break;
                        case jsb.EventAssetsManager.UPDATE_PROGRESSION:
                        case jsb.EventAssetsManager.ASSET_UPDATED:
                            this.Progress.string = "progress: " + e.getDownloadedBytes() + "  /  " + e.getTotalBytes() + "\n                files: " + e.getDownloadedFiles() + "  /  " + e.getTotalFiles();
                            var o = e.getMessage();
                            o && (this.Tips.string = "Updated file: " + o);
                            break;
                        case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
                        case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
                            this.Tips.string = "Fail to download manifest file, hot update skipped.", n = !0;
                            break;
                        case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
                            this.Tips.string = "Already up to date with the latest remote version.", n = !0;
                            break;
                        case jsb.EventAssetsManager.UPDATE_FINISHED:
                            this.Tips.string = "Update finished. " + e.getMessage(), t = !0;
                            break;
                        case jsb.EventAssetsManager.UPDATE_FAILED:
                            this.Tips.string = "Update failed. " + e.getMessage(), this._Updating = !1;
                            break;
                        case jsb.EventAssetsManager.ERROR_UPDATING:
                            this.Tips.string = "Asset update error: " + e.getAssetId() + ", " + e.getMessage();
                            break;
                        case jsb.EventAssetsManager.ERROR_DECOMPRESS:
                            this.Tips.string = e.getMessage()
                    }
                    if (console.log("update cb code:" + e.getEventCode() + ", " + this.Tips.string), n && this._AssetManager.setEventCallback(null), t) {
                        this._AssetManager.setEventCallback(null);
                        var r = jsb.fileUtils.getSearchPaths(),
                            i = this._AssetManager.getLocalManifest().getSearchPaths();
                        console.log("new path:", i);
                        for (var a = 0; a < i.length; a++) - 1 == r.indexOf(i[a]) && Array.prototype.unshift.apply(r, [i[a]]);
                        console.log("search path", r), cc.sys.localStorage.setItem("HotUpdateSearchPaths", JSON.stringify(r)), jsb.fileUtils.setSearchPaths(r), cc.log("restart"), cc.audioEngine.stopAll(), cc.game.restart()
                    }
                }, t.prototype.VersionCompareHandle = function(e, t) {
                    cc.log("JS Custom Version Compare: version A is " + e + ", version B is " + t);
                    for (var n = e.split("."), o = t.split("."), r = 0; r < n.length; ++r) {
                        var i = parseInt(n[r]),
                            a = parseInt(o[r] || "0");
                        if (i !== a) return i - a
                    }
                    return o.length > n.length ? -1 : 0
                }, t.prototype.VerifyCallback = function(e, t) {
                    var n = t.compressed,
                        o = t.md5,
                        r = t.path;
                    return t.size, n ? (this.Tips.string = "Verification passed : " + r, !0) : (this.Tips.string = "Verification passed : " + r + " (" + o + ")", !0)
                }, i([l(cc.Label)], t.prototype, "Tips", void 0), i([l(cc.Label)], t.prototype, "Progress", void 0), i([l(cc.Asset)], t.prototype, "ManifestUrl", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    HttpTool: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5260aakOtVHiZ14LUpMZR2W", "HttpTool");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HttpTool = void 0;
        var i = e("../EZFramework/EZFramework"),
            a = e("../Consts/Consts"),
            s = function() {
                function e() {}
                return e.Get = function(t, n, i, a) {
                    return void 0 === n && (n = null), void 0 === i && (i = null), void 0 === a && (a = null), o(this, void 0, Promise, function() {
                        var o, s, l, c, u;
                        return r(this, function() {
                            if (o = "", n) {
                                for (l in s = "", n) o += s + l + "=" + encodeURIComponent(n[l]), s = "&";
                                t = -1 != t.indexOf("?") ? t + "&" + o : t + "?" + o
                            }
                            return (c = new XMLHttpRequest).open("GET", t, !0), c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), a && (c.responseType = a), u = e.BindHttpRequest(c, i), c.send(), [2, u]
                        })
                    })
                }, e.Post = function(t, n, i) {
                    return void 0 === n && (n = null), void 0 === i && (i = null), o(this, void 0, Promise, function() {
                        var o, a;
                        return r(this, function() {
                            return (o = new XMLHttpRequest).open("POST", t, !0), o.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), a = e.BindHttpRequest(o, i), o.send(n), [2, a]
                        })
                    })
                }, e.BinaryPost = function(t, n, i) {
                    return void 0 === n && (n = null), void 0 === i && (i = null), o(this, void 0, Promise, function() {
                        var o, a;
                        return r(this, function() {
                            return (o = new XMLHttpRequest).open("POST", t, !0), o.responseType = "arraybuffer", o.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), a = e.BindHttpRequest(o, i), o.send(n), [2, a]
                        })
                    })
                }, e.BindHttpRequest = function(e, t) {
                    var n, o;
                    void 0 === t && (t = null), null != t && (e.onprogress = function(e) {
                        t(e.loaded / e.total)
                    });
                    var r = new Promise(function(e, t) {
                        n = function(t) {
                            e(t)
                        }, o = function(e) {
                            t(e)
                        }
                    });
                    return e.onreadystatechange = function() {
                        4 == e.readyState && (e.status >= 200 && e.status < 400 ? (null != t && t(1), n(e.response)) : o(new Error("http status error. status code: " + e.status)))
                    }, r
                }, e.SendPostRequest = function(t, n, s) {
                    return void 0 === s && (s = null), o(this, void 0, Promise, function() {
                        var o, l, c;
                        return r(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    o = 0, r.label = 1;
                                case 1:
                                    r.label = 2;
                                case 2:
                                    return r.trys.push([2, 4, , 5]), [4, e.BinaryPost(t, e.Uint8ToBase64(n), s)];
                                case 3:
                                    return l = r.sent(), [3, 6];
                                case 4:
                                    if (c = r.sent(), i.EZLog.Error(c), ++o >= a.GlobalSetting.RPC_HTTP_RETRY_COUNT) throw c;
                                    return [3, 5];
                                case 5:
                                    return [3, 1];
                                case 6:
                                    return [2, new Uint8Array(l)]
                            }
                        })
                    })
                }, e.NativeDownloadFile = function(e, t) {
                    return o(this, void 0, Promise, function() {
                        return r(this, function() {
                            if (!cc.sys.isNative) throw new Error("not native env.");
                            return [2, new Promise(function(n, o) {
                                var r = new jsb.Downloader;
                                r.setOnFileTaskSuccess(function() {
                                    n()
                                }), r.setOnTaskError(function(e, t, n, r) {
                                    o(r)
                                }), r.createDownloadFileTask(e, t)
                            })]
                        })
                    })
                }, e.Uint8ToString = function(e) {
                    return new TextDecoder("utf-8").decode(e)
                }, e.StringToUint8 = function(e) {
                    return (new TextEncoder).encode(e)
                }, e.Uint8ToBase64 = function(e) {
                    return btoa(String.fromCharCode.apply(null, e))
                }, e.Base64ToUint8 = function(e) {
                    return new Uint8Array(atob(e).split("").map(function(e) {
                        return e.charCodeAt(0)
                    }))
                }, e
            }();
        n.HttpTool = s, cc._RF.pop()
    }, {
        "../Consts/Consts": "Consts",
        "../EZFramework/EZFramework": "EZFramework"
    }],
    IPEndPoint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca0df/8xGZOeoLI6/oR1o3x", "IPEndPoint"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.IPEndPoint = void 0;
        var o = function() {
            function e(e, t) {
                void 0 === t && (t = ""), this._Port = e, this._Ip = t, this._Key = this.Ip + ":" + this.Port
            }
            return Object.defineProperty(e.prototype, "Ip", {
                get: function() {
                    return this._Ip
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(e.prototype, "Port", {
                get: function() {
                    return this._Port
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(e.prototype, "Key", {
                get: function() {
                    return this._Key
                },
                enumerable: !1,
                configurable: !0
            }), e
        }();
        n.IPEndPoint = o, cc._RF.pop()
    }, {}],
    IWantStrongPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "50d406QBX5NoKoVdY1nago2", "IWantStrongPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.WantStrongModule = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CustomToggle"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("./HeroBeStrongPanel"),
            h = e("./GetResourcePanel"),
            f = e("./RecommendFormationPanel"),
            y = e("./WalkThroughPanel"),
            g = e("./QuestionPanel"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../Components/PanelBottomToggles"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../ShareConsts/EnumType"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.HeroBtStrong = 0] = "HeroBtStrong", e[e.GetResource = 1] = "GetResource", e[e.RecommendFormation = 2] = "RecommendFormation", e[e.WalkThrough = 3] = "WalkThrough", e[e.Question = 4] = "Question"
        })(l = n.WantStrongModule || (n.WantStrongModule = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Tittle = null, t.ToggPanelBottomTogglesles = null, t.Toggles = [], t.BtnReturn = null, t.HeroBeStrongPanelNode = null, t.GetResourcePanelNode = null, t.RecommendFormationPanelNode = null, t.WalkThroughPanelNode = null, t.QuestionPanelNode = null, t.BottomScrollView = null, t.HERO_BESTRONG_COMPONENT = "IWantStrongPanel/Private/HeroBeStrongComponent", t.GET_RESOURCE_COMPONENT = "IWantStrongPanel/Private/GetResourceComponent", t.RECOMMEND_FORMATION_COMPONENT = "IWantStrongPanel/Private/RecommendFormationComponent", t.WALK_THROUGH_COMPONENT = "IWantStrongPanel/Private/WalkThroughComponent", t.QUESTION_COMPONENT = "IWantStrongPanel/Private/QuestionComponent", t._jumpType = -1, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return e.prototype.Preload.call(this), [2]
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.BindRedDot(), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.BindRedDot = function() {
                m.RedDotManager.Instance.Bind(this.Toggles[l.RecommendFormation].node, m.RedDotManager.Instance.RedDot.RecommendFormationToggleBtnNode), m.RedDotManager.Instance.Bind(this.Toggles[l.WalkThrough].node, m.RedDotManager.Instance.RedDot.FreshStrategyToggleBtnNode)
            }, t.prototype.SetStaticLocalText = function() {
                for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].Init(("iWantStrong_toggle_" + e).ToUILocale())
            }, t.prototype.SetClickEvent = function() {
                this.BtnReturn.node.on("click", this.OnBtnReturn, this);
                for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].node.on("toggle", this.OnSwitchTab, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), null != t[0] && (this._jumpType = t[0])
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this._currentFunctionType = l.HeroBtStrong, -1 == this._jumpType ? this._currentFunctionType = l.HeroBtStrong : this._currentFunctionType = this._jumpType, this._jumpType = -1
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t);
                var n = this.Toggles[this._currentFunctionType];
                n.isChecked = !0, this.ChangeTab(n), this.BottomScrollView.scrollToPercentHorizontal(this._currentFunctionType / l.Question), this.Toggles[l.RecommendFormation].node.active = _.default.Instance.IsGameModuleOpen(C.GameModuleType.RecommendFormation) && _.default.Instance.IsGameModuleUnlock(C.GameModuleType.RecommendFormation)[0]
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                this._currentFunctionType != t && this.ChangeTab(e)
            }, t.prototype.ChangeTab = function(e) {
                var t = Number.parseInt(e.name);
                switch (this._currentFunctionType = t, this.HideAllPanelNode(), t) {
                    case l.HeroBtStrong:
                        this.HeroBeStrongPanelNode.active = !0, this.ConfigHeroBeStrong();
                        break;
                    case l.GetResource:
                        this.GetResourcePanelNode.active = !0, this.ConfigGetResource();
                        break;
                    case l.RecommendFormation:
                        this.RecommendFormationPanelNode.active = !0, this.ConfigRecommendFormation();
                        break;
                    case l.WalkThrough:
                        this.WalkThroughPanelNode.active = !0, this.ConfigWalkThrough();
                        break;
                    case l.Question:
                        this.QuestionPanelNode.active = !0, this.ConfigQuestion()
                }
                this.ConfigTitle()
            }, t.prototype.ConfigTitle = function() {
                this.Tittle.string = ("iWantStrong_toggle_" + this._currentFunctionType).ToUILocale()
            }, t.prototype.ConfigHeroBeStrong = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._HeroBestrongPanel ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(this.HERO_BESTRONG_COMPONENT)]);
                            case 1:
                                if (e._HeroBestrongPrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._HeroBestrongPrefab), [2];
                                (t = cc.instantiate(this._HeroBestrongPrefab)).setParent(this.HeroBeStrongPanelNode), this._HeroBestrongPanel = t.getComponent(d.default), n.label = 2;
                            case 2:
                                return this._HeroBestrongPanel.Display(), [2]
                        }
                    })
                })
            }, t.prototype.ConfigGetResource = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._GetResourcePanel ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(this.GET_RESOURCE_COMPONENT)]);
                            case 1:
                                if (e._GetResourcePrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._GetResourcePrefab), [2];
                                (t = cc.instantiate(this._GetResourcePrefab)).setParent(this.GetResourcePanelNode), this._GetResourcePanel = t.getComponent(h.default), n.label = 2;
                            case 2:
                                return this._GetResourcePanel.Display(), [2]
                        }
                    })
                })
            }, t.prototype.ConfigRecommendFormation = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._RecommendFormationPanel ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(this.RECOMMEND_FORMATION_COMPONENT)]);
                            case 1:
                                if (e._RecommendFormationPrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._RecommendFormationPrefab), [2];
                                (t = cc.instantiate(this._RecommendFormationPrefab)).setParent(this.RecommendFormationPanelNode), this._RecommendFormationPanel = t.getComponent(f.default), n.label = 2;
                            case 2:
                                return this._RecommendFormationPanel.Display(), [2]
                        }
                    })
                })
            }, t.prototype.ConfigWalkThrough = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._WalkThroughPanel ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(this.WALK_THROUGH_COMPONENT)]);
                            case 1:
                                if (e._WalkThroughPrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._WalkThroughPrefab), [2];
                                (t = cc.instantiate(this._WalkThroughPrefab)).setParent(this.WalkThroughPanelNode), this._WalkThroughPanel = t.getComponent(y.default), n.label = 2;
                            case 2:
                                return this._WalkThroughPanel.Display(), [2]
                        }
                    })
                })
            }, t.prototype.ConfigQuestion = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._QuestionPanel ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(this.QUESTION_COMPONENT)]);
                            case 1:
                                if (e._QuestionPrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._QuestionPrefab), [2];
                                (t = cc.instantiate(this._QuestionPrefab)).setParent(this.QuestionPanelNode), this._QuestionPanel = t.getComponent(g.default), n.label = 2;
                            case 2:
                                return this._QuestionPanel.Display(), [2]
                        }
                    })
                })
            }, t.prototype.HideAllPanelNode = function() {
                this.HeroBeStrongPanelNode.active = !1, this.GetResourcePanelNode.active = !1, this.RecommendFormationPanelNode.active = !1, this.WalkThroughPanelNode.active = !1, this.QuestionPanelNode.active = !1
            }, t.prototype.OnBtnReturn = function() {
                p.UIManager.Instance.BackUIPanel()
            }, i([S(cc.Label)], t.prototype, "Tittle", void 0), i([S(I.default)], t.prototype, "ToggPanelBottomTogglesles", void 0), i([S(u.default)], t.prototype, "Toggles", void 0), i([S(cc.Button)], t.prototype, "BtnReturn", void 0), i([S(cc.Node)], t.prototype, "HeroBeStrongPanelNode", void 0), i([S(cc.Node)], t.prototype, "GetResourcePanelNode", void 0), i([S(cc.Node)], t.prototype, "RecommendFormationPanelNode", void 0), i([S(cc.Node)], t.prototype, "WalkThroughPanelNode", void 0), i([S(cc.Node)], t.prototype, "QuestionPanelNode", void 0), i([S(cc.ScrollView)], t.prototype, "BottomScrollView", void 0), i([b], t)
        }(c.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/PanelBottomToggles": "PanelBottomToggles",
        "./GetResourcePanel": "GetResourcePanel",
        "./HeroBeStrongPanel": "HeroBeStrongPanel",
        "./QuestionPanel": "QuestionPanel",
        "./RecommendFormationPanel": "RecommendFormationPanel",
        "./WalkThroughPanel": "WalkThroughPanel"
    }],
    IconTimeBtnArrowComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "48be3xSfR5OdZxO5ubjws5P", "IconTimeBtnArrowComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./IconTimeBtn"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ContentLayout = null, t.ArrowNode = null, t._btnDatas = [], t._isOpen = !1, t._btnNodes = [], t._loadAssest = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._sortPos = e, this._btnDatas = t, this._iconBtnPrefab = n, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetArrow(), this.SetIconBtns()
                }, t.prototype.SetArrow = function() {
                    var e, t, n = this;
                    this.ArrowNode.x = 1 == this._sortPos ? 90 : -90, this.ContentLayout.paddingLeft = 1 == this._sortPos ? 120 : -75, this.ContentLayout.paddingRight = 1 == this._sortPos ? -75 : 120, this.ContentLayout.node.anchorX = 1 == this._sortPos ? 0 : 1, 1 == this._sortPos ? (this.ArrowNode.scaleX = this._isOpen ? 1 : -1, e = this._isOpen ? 110 : 80, t = this._isOpen ? 80 : 110) : 2 == this._sortPos && (this.ArrowNode.scaleX = this._isOpen ? -1 : 1, e = this._isOpen ? -110 : -80, t = this._isOpen ? -80 : -110);
                    var o = cc.tween(this.ArrowNode).to(.5, {
                        x: t
                    }).call(function() {
                        n.ArrowNode.x = e
                    });
                    cc.tween(this.ArrowNode).repeatForever(o).start()
                }, t.prototype.SetIconBtns = function() {
                    var e = this;
                    this._btnNodes.forEach(function(e) {
                        e.active = !1
                    }), this._btnDatas.forEach(function(t, n) {
                        if (!e._btnNodes[n]) {
                            var o = cc.instantiate(e._iconBtnPrefab);
                            o.parent = e.ContentLayout.node, o.y = 23, e._btnNodes[n] = o, o.name = n.toString(), o.on("click", e.ClickIconBtn, e)
                        }
                        e._btnNodes[n].active = e._isOpen;
                        var r = e._btnNodes[n].getComponent(u.default);
                        r.SetNameLabel(t.Name), e.SetIconBtnIcon(t.IconPath, r)
                    }), this._isOpen || (this.ContentLayout.node.width = 0)
                }, t.prototype.UpdateIconBtns = function() {
                    var e = this;
                    this._btnNodes.forEach(function(t) {
                        t.active = e._isOpen
                    }), this._isOpen || (this.ContentLayout.node.width = 0)
                }, t.prototype.SetIconBtnIcon = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return n = c.UIUtlity.GetIconPath(e), [4, l.AssetsManager.Instance.LoadAsset(n, cc.SpriteFrame)];
                                case 1:
                                    return o = r.sent(), this.isValid ? (this._loadAssest.push(o), t.LoadIcon(o), [2]) : (l.AssetsManager.Instance.UnloadAsset(o), [2])
                            }
                        })
                    })
                }, t.prototype.ClickIconBtn = function(e) {
                    var t = Number(e.node.name);
                    this._btnDatas[t] && this._btnDatas[t].Callback && this._btnDatas[t].Callback()
                }, t.prototype.SetIsOpen = function() {
                    this._isOpen = !this._isOpen, this.SetArrow(), this.UpdateIconBtns()
                }, t.prototype.onDestroy = function() {
                    this._loadAssest.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([h(cc.Layout)], t.prototype, "ContentLayout", void 0), i([h(cc.Node)], t.prototype, "ArrowNode", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./IconTimeBtn": "IconTimeBtn"
    }],
    IconTimeBtn: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cc1d6fMeDlO471OMa5fxEfE", "IconTimeBtn");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.IconTimeBtnBubbleColor = void 0;
        var l, c = e("../../Components/RpcComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../Consts/Etc"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Components/DataCenter"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("./ActivityBubbleTipComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property;
        (function(e) {
            e[e.Orange = 0] = "Orange", e[e.Green = 1] = "Green", e[e.GoTo = 3] = "GoTo"
        })(l = n.IconTimeBtnBubbleColor || (n.IconTimeBtnBubbleColor = {}));
        var _ = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ArrowNode = null, t.Icon = null, t.Title = null, t.TimeNode = null, t.TimeLabel = null, t.Layout = null, t.SpineNode = null, t.BubbleNode = null, t.BubbleText = null, t.BubbleIconNode = null, t.BubbleCount = null, t.BubbleIcon = null, t.BubbleAwwor = null, t.BubbleBg = null, t.NewSpriteNode = null, t.ReddotNode = null, t.ActivityBubbleTipComponent = null, t.LowHeight = 140, t.HighHeight = 150, t.OffsetHeight = 40, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, t.prototype.onEnable = function() {
                this.SetNodeHeight()
            }, t.prototype.LoadIcon = function(e) {
                this.Icon.spriteFrame = e
            }, t.prototype.SetNameLabel = function(e) {
                this.Title.string = e, this.SetNodeHeight()
            }, t.prototype.SetTimeLabel = function(e, t) {
                var n = this;
                this._endTime = e, this._activityId = t, this.TimeNode.active = !0, this.ConfigActivityData(), this.unschedule(this.RefreshTimeLabel), this.RefreshTimeLabel(), this.schedule(function() {
                    n.RefreshTimeLabel()
                }, 1), this.Layout.updateLayout(), this.SetNodeHeight()
            }, t.prototype.ConfigActivityData = function() {
                this._activityConfig = null, this._warmupEndTime = 0, this._activityId && (this._activityConfig = h.DataCenter.Instance.ActivityConfigs[this._activityId], this._activityConfig.Common.WarmUpDuration && (this._warmupEndTime = c.RpcComponent.Instance.ServerTime + 1e3 * f.default.Instance.GetActivityWarmingUpTimeLeftTSS(this._activityConfig.Common)))
            }, t.prototype.SetNodeHeight = function() {
                this.node.height = this.HighHeight + this.Title.node.height - this.OffsetHeight
            }, t.prototype.RefreshTimeLabel = function() {
                var e, t = c.RpcComponent.Instance.ServerTime;
                e = (e = t <= this._warmupEndTime ? this._warmupEndTime - t : this._endTime - t) < 0 ? 0 : e, this.TimeLabel.string = e.FmtRemainTime(), e <= 0 && t <= this._endTime && (this.TimeNode.active = !1, this.unscheduleAllCallbacks())
            }, t.prototype.HideTimeLabel = function() {
                this.TimeNode.active = !1, this.unscheduleAllCallbacks(), this.Layout.updateLayout()
            }, t.prototype.SetSpineEffect = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e && 0 != e.length ? this._spine ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("Buttons/Spine/" + e[0], sp.SkeletonData)] : [2];
                            case 1:
                                if (t = n.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(t), [2];
                                this._spine = this.SpineNode.getComponent(sp.Skeleton), this._spine.skeletonData = t, n.label = 2;
                            case 2:
                                return this._spine.setAnimation(0, e[1], !0), [2]
                        }
                    })
                })
            }, t.prototype.SetBubble = function(e, t, o, r, i) {
                var a, s = this;
                switch (void 0 === t && (t = 1), this.BubbleNode.scaleX = t, this.BubbleNode.active || (this.BubbleNode.x = this.BubbleNode.x * t), this.BubbleNode.active = !0, i ? (this.BubbleIconNode.active = !0, this.BubbleIconNode.scaleX = t, this.BubbleText.node.active = !1, this.BubbleIcon.spriteFrame = i, a = this.BubbleCount) : (this.BubbleIconNode.active = !1, this.BubbleText.node.active = !0, this.BubbleText.node.scaleX = this.BubbleNode.scaleX, a = this.BubbleText), a.string = e, this.BubbleBg.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame(n.bubble_bg_colors[o]), this.BubbleAwwor.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame(n.bubble_arrow_colors[o]), o) {
                    case l.Orange:
                        a.node.color = new cc.Color(254, 217, 74);
                        break;
                    case l.Green:
                        a.node.color = new cc.Color(0, 255, 0)
                }
                r && this.scheduleOnce(function() {
                    s.BubbleNode.active = !1
                }, (r - c.RpcComponent.Instance.ServerTime) / p.Etc.SecondDuration)
            }, t.prototype.SetNewNode = function(e) {
                this.NewSpriteNode.active = e
            }, t.prototype.SetArrowNode = function(e) {
                this.ArrowNode && (e.parent = this.ArrowNode)
            }, t.prototype.GetArrowNode = function() {
                return this.ArrowNode && this.ArrowNode.children.length > 0 ? this.ArrowNode.children[0] : null
            }, t.prototype.SetReddot = function(e) {
                this.ReddotNode && (this.ReddotNode.active = e)
            }, Object.defineProperty(t.prototype, "IconTimeBtnData", {
                get: function() {
                    return this._iconTimeBtnData
                },
                set: function(e) {
                    this._iconTimeBtnData = e
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SetNewBubble = function(e, t, n) {
                this.ActivityBubbleTipComponent.Init(e, t, n, this.Icon.node)
            }, t.bubble_arrow_colors = ["bubble_arrow_orange", "bubble_arrow_green"], t.bubble_bg_colors = ["bubble_bg_orange", "bubble_bg_green"], i([I(cc.Node)], t.prototype, "ArrowNode", void 0), i([I(cc.Sprite)], t.prototype, "Icon", void 0), i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Node)], t.prototype, "TimeNode", void 0), i([I(cc.Label)], t.prototype, "TimeLabel", void 0), i([I(cc.Layout)], t.prototype, "Layout", void 0), i([I(cc.Node)], t.prototype, "SpineNode", void 0), i([I(cc.Node)], t.prototype, "BubbleNode", void 0), i([I(cc.Label)], t.prototype, "BubbleText", void 0), i([I(cc.Node)], t.prototype, "BubbleIconNode", void 0), i([I(cc.Label)], t.prototype, "BubbleCount", void 0), i([I(cc.Sprite)], t.prototype, "BubbleIcon", void 0), i([I(cc.Sprite)], t.prototype, "BubbleAwwor", void 0), i([I(cc.Sprite)], t.prototype, "BubbleBg", void 0), i([I(cc.Node)], t.prototype, "NewSpriteNode", void 0), i([I(cc.Node)], t.prototype, "ReddotNode", void 0), i([I(y.default)], t.prototype, "ActivityBubbleTipComponent", void 0), n = i([m], t)
        }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ActivityBubbleTipComponent": "ActivityBubbleTipComponent"
    }],
    IdleBattleDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5068ffRoA9ECqJ0UXqWNYwn", "IdleBattleDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CustomRichText"),
            p = e("../../Components/ConfigData/ConfigDataComponent"),
            d = e("../../Components/RpcComponent"),
            h = e("../../../Consts/Etc"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/DataCenter"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../Components/CurrencyBarItem"),
            v = e("../Components/DisplayRewardsComponent"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../../../EZFramework/EZFramework"),
            w = e("./IdleBattleMainPanel"),
            P = e("../../../Consts/Consts"),
            A = e("../../Auxiliary/DataUtlity"),
            T = e("./MainUIPanel"),
            R = e("../../Auxiliary/GuideManager"),
            L = e("./CommonPriviledgeTipComponent"),
            k = e("../../RedDot/RedDotManager"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property,
            B = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !0, !1, !0), t.MaskNode = null, t.ShowTime = null, t.ExtendTimeBtn = null, t.ExtendTimeBtnLabel = null, t.PreviewItemGrid = null, t.Content = null, t.BtnReceive = null, t.ReceiveBtnLabel = null, t.RewardsTag = null, t.PriviledgeNode = null, t.PREVIEW_ITEM_COUNT = 4, t._rewardComponent = null, t.previewItemPrefab = null, t.previewItemTable = [], t._hangTimeUpperLimit = 0, t._adventureData = null, t._levelConfig = null, t._isBusy = !1, t._addationVipHour = 0, t._addationVipCoinRate = 0, t._addationVipXp = 0, t._addationVipXpWater = 0, t._addationVipIntel = 0, t
                }
                return r(t, e), t.prototype.onDisable = function() {
                    this.unscheduleAllCallbacks(), c.Game.EventDispatcher.Off(b.EventKeys.EVENT_REFRESH_HANG_UP_REWARD_TIME, this.RefreshHangUpTimeLimit, this)
                }, t.prototype.onEnable = function() {
                    var e = this;
                    this.schedule(function() {
                        e.SetHangUpTimeShow()
                    }, 1), c.Game.EventDispatcher.On(b.EventKeys.EVENT_REFRESH_HANG_UP_REWARD_TIME, this.RefreshHangUpTimeLimit, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, this.LoadDynamicAsset(_.BundlePath.CurrencyBarComponent)];
                                case 1:
                                    return t = r.sent(), n = this.LoadDynamicAsset("CommonPanel/SubItems/CommonPriviledgeTipComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o.previewItemPrefab = e[0], o._priviledgePrefab = e[1]
                                    })];
                                case 2:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent(), this._priviledgeNode || (this._priviledgeNode = cc.instantiate(this._priviledgePrefab), this._priviledgeNode.parent = this.PriviledgeNode), this._priviledgeNode.getComponent(L.default).InitData(4), this.ExtendTimeBtnLabel.string = "idleBattle_detail_extendTime".ToUILocale(), this.ExtendTimeBtn.on("click", this.OnExtendTimeBtnClick, this)
                }, t.prototype.RefreshHangUpTimeLimit = function() {
                    this.RequestHangUpReward()
                }, t.prototype.RequestHangUpReward = function() {
                    var e = this,
                        t = new m.Req_Map_AdventureGetHangUpReward;
                    d.RpcComponent.Instance.Call(t, function(t) {
                        e._rewardData = [];
                        for (var n = 0; n < t.ActivityRewards.length; n++) e._rewardData.push(t.ActivityRewards[n]);
                        for (n = 0; n < t.Rewards.length; n++) e._rewardData.push(t.Rewards[n]);
                        e.GetVipAddationData(), e.RenderContent(), e.SetHangUpTimeShow()
                    })
                }, t.prototype.SetStaticLocalText = function() {
                    this.RewardsTag.string = "idleBattle_detail_tag".ToUILocale(), this.ReceiveBtnLabel.string = "receive".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnReceive.node.on("click", this.OnBtnReceiveClick, this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadGlobalSetting(), this.GetVipAddationData(), T.default.isNeedPlayRewardAnim = 1
                }, t.prototype.GetVipAddationData = function() {
                    var e = A.default.GetModuleBonus();
                    this._addationVipCoinRate = e[I.ModuleBonusType.HangUpCoin], this._addationVipXp = e[I.ModuleBonusType.HangUpXp], this._addationVipXpWater = e[I.ModuleBonusType.HangUpXpWater], this._addationVipHour = e[I.ModuleBonusType.HangUpRewardTime], this._addationVipIntel = e[I.ModuleBonusType.HangUpIntelligence], null == this._addationVipCoinRate && (this._addationVipCoinRate = 0), null == this._addationVipXp && (this._addationVipXp = 0), null == this._addationVipXpWater && (this._addationVipXpWater = 0), null == this._addationVipHour && (this._addationVipHour = 0), null == this._addationVipIntel && (this._addationVipIntel = 0)
                }, t.prototype.InitData = function(e) {
                    this._rewardData = e[0]
                }, t.prototype.LoadGlobalSetting = function() {
                    this._hangTimeUpperLimit = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureHangUpRewardTimeUpperLimit")
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ReloadUserData(), this.LoadConfigData(), this.LoadPreviewItem(), this.RenderContent(), this.SetHangUpTimeShow(), this.ShowGuide(), k.RedDotManager.Instance.Bind(this.ExtendTimeBtn, k.RedDotManager.Instance.RedDot.HangUPFreeGiftPack)
                }, t.prototype.LoadConfigData = function() {
                    var e = g.DataCenter.Instance.GetIntData(I.UserDataKey.MainLineProgress);
                    this._levelConfig = p.ConfigDataComponent.Instance.GetConfigById(y.MapAdventure_Config, e)
                }, t.prototype.ReloadUserData = function() {
                    this._adventureData = g.DataCenter.Instance.GetDataById(m.Adventure_Model, 1)
                }, t.prototype.LoadPreviewItem = function() {
                    for (var e = 0; e < this.PREVIEW_ITEM_COUNT; e++) {
                        if (null == this.previewItemTable[e]) {
                            var t = cc.instantiate(this.previewItemPrefab).getComponent(C.default);
                            t.node.parent = this.PreviewItemGrid, this.previewItemTable[e] = t
                        }
                        var n = this._levelConfig.Rewards[e].Items[0],
                            o = this._levelConfig.Rewards[e].Items[1] / 1e5;
                        switch (n) {
                            case I.CommonItemId.Coin:
                                o *= 1 + this._addationVipCoinRate / 1e3;
                                break;
                            case I.CommonItemId.Xp:
                                o *= 1 + this._addationVipXp / 1e3;
                                break;
                            case I.CommonItemId.XpWater:
                                o *= 1 + this._addationVipXpWater / 1e3;
                                break;
                            case I.CommonItemId.Intelligence:
                                o *= 1 + this._addationVipIntel / 1e3
                        }
                        var r = o.ToFixedExact(1);
                        this.previewItemTable[e].Init(n, !1, Number.parseFloat(r), "m"), this.previewItemTable[e].HideBtnAdd(), this.previewItemTable[e].SetFixedWidth(174), this.previewItemTable[e].node.width = 174
                    }
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(_.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    e._displayRewardPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return null == this._rewardComponent && (t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(v.DisplayRewardsComponent), this.Content.addChild(this._rewardComponent.node)), this._rewardComponent.Init(this._rewardData, this.Content.height), [2]
                            }
                        })
                    })
                }, t.prototype.SetHangUpTimeShow = function() {
                    this.ShowTime.Init(this.GetHangUpTimeStr())
                }, t.prototype.GetHangUpTimeStr = function() {
                    var e = d.RpcComponent.Instance.ServerTime - this._adventureData.ReceiveTime;
                    return e > (this._hangTimeUpperLimit + 60 * this._addationVipHour) * h.Etc.MinuteDuration && (e = (this._hangTimeUpperLimit + 60 * this._addationVipHour) * h.Etc.MinuteDuration, this.unscheduleAllCallbacks()), "idleBattle_detail_time".ToUILocale().Fmt(e.FmtRemainTime())
                }, t.prototype.OnBtnReceiveClick = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._isBusy ? [2] : this.IsIntelligenceOverFlow() ? (e = I.CommonItemId.Intelligence.ToItemName(), t = "function_IdleBattle".ToUILocale(), n = "intelligence_tittle".ToUILocale(), o = "intelligence_hint_overflow".ToUILocale().Fmt(t, e, n, e), [4, f.UIUtlity.ShowHintPanel("", o, "", null, "", function() {
                                        r.RequestGetHangUpReward()
                                    })]) : [3, 2];
                                case 1:
                                    return i.sent().DisableMaskClose(), [3, 3];
                                case 2:
                                    this.RequestGetHangUpReward(), i.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnExtendTimeBtnClick = function() {
                    S.UIManager.Instance.ShowUIPanel(_.PanelConfig.IdleBattleExtendTimePanel.Path)
                }, t.prototype.IsIntelligenceOverFlow = function() {
                    for (var e = 0, t = 0; t < this._levelConfig.Rewards.length; t++) this._levelConfig.Rewards[t].Items[0] == I.CommonItemId.Intelligence && (e = Math.floor(this._levelConfig.Rewards[t].Items[1] / 1e5));
                    var n = this._adventureData.ReceiveTime,
                        o = d.RpcComponent.Instance.ServerTime,
                        r = Math.floor((o - n) / h.Etc.MinuteDuration),
                        i = (r = Math.min(r, 600)) * e;
                    return !!A.default.Instance.IsIntelligencePropOverFlow(i)
                }, t.prototype.RequestGetHangUpReward = function() {
                    this._isBusy = !0, this._oldReceiveTime = this._adventureData.ReceiveTime, this._oldPlayerLevel = g.DataCenter.Instance.GetIntData(P.UserDataKey.PlayerLevel), this._oldExp = g.DataCenter.Instance.GetItemCount(I.CommonItemId.Xp);
                    var e = new m.Req_Map_AdventureReceiveHangUpReward;
                    d.RpcComponent.Instance.Call(e, this.ResponseGetHangeUpReward.bind(this), this.ResponseFailed.bind(this), R.default.Instance.CurrentGroup)
                }, t.prototype.ResponseGetHangeUpReward = function(e) {
                    this._isBusy = !1, w.default.IdleBattleResetTime = d.RpcComponent.Instance.ServerTime, this._rewardData = [];
                    for (var t = 0; t < e.ActivityRewards.length; t++) this._rewardData.push(e.ActivityRewards[t]);
                    for (t = 0; t < e.Rewards.length; t++) this._rewardData.push(e.Rewards[t]);
                    S.UIManager.Instance.ShowUIPanel(_.PanelConfig.IdleBattleRewardsPanel.Path, this._oldPlayerLevel, this._oldExp, this._oldReceiveTime, this._rewardData), this.node && this.node.active && this.CloseUI()
                }, t.prototype.ResponseFailed = function() {
                    this._isBusy = !1
                }, t.prototype.CloseUI = function() {
                    e.prototype.Close.call(this), this._rewardComponent.Dispose(), this.Content.destroyAllChildren()
                }, t.prototype.UIClose = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._isBusy ? [3, 3] : this.IsIntelligenceOverFlow() ? (e = I.CommonItemId.Intelligence.ToItemName(), t = "function_IdleBattle".ToUILocale(), n = "intelligence_tittle".ToUILocale(), o = "intelligence_hint_overflow".ToUILocale().Fmt(t, e, n, e), [4, f.UIUtlity.ShowHintPanel("", o, "", function() {
                                        S.UIManager.Instance.BackUIPanel()
                                    }, "", function() {
                                        r.RequestGetHangUpReward(), S.UIManager.Instance.BackUIPanel()
                                    })]) : [3, 2];
                                case 1:
                                    return i.sent().DisableMaskClose(), [3, 3];
                                case 2:
                                    this.RequestGetHangUpReward(), S.UIManager.Instance.BackUIPanel(), i.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ShowGuide = function() {
                    if (R.default.Instance.IsInGuide) switch (R.default.Instance.CurrentStep) {
                        case 13103:
                            R.default.Instance.ShowGuide(this.BtnReceive.node)
                    }
                }, i([D(cc.Node)], t.prototype, "MaskNode", void 0), i([D(u.CustomRichText)], t.prototype, "ShowTime", void 0), i([D(cc.Node)], t.prototype, "ExtendTimeBtn", void 0), i([D(cc.Label)], t.prototype, "ExtendTimeBtnLabel", void 0), i([D(cc.Node)], t.prototype, "PreviewItemGrid", void 0), i([D(cc.Node)], t.prototype, "Content", void 0), i([D(cc.Button)], t.prototype, "BtnReceive", void 0), i([D(cc.Label)], t.prototype, "ReceiveBtnLabel", void 0), i([D(cc.Label)], t.prototype, "RewardsTag", void 0), i([D(cc.Node)], t.prototype, "PriviledgeNode", void 0), i([M], t)
            }(l.BaseUIPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/DisplayRewardsComponent": "DisplayRewardsComponent",
        "./CommonPriviledgeTipComponent": "CommonPriviledgeTipComponent",
        "./IdleBattleMainPanel": "IdleBattleMainPanel",
        "./MainUIPanel": "MainUIPanel"
    }],
    IdleBattleExtendTimePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f7e71wt0OFDh5ejSS33Zega", "IdleBattleExtendTimePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/ConfigData/ConfigDataComponent"),
            p = e("../../Components/RpcComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/DataCenter"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../../Consts/Consts"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("./LayoutRewards"),
            v = e("../../Channel/ChannelManager"),
            b = e("../Components/LoadAssetHelper"),
            S = e("../../RedDot/RedDotManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !0, !1, !0), t.Title = null, t.UpTip = null, t.UpTimeText = null, t.CurUPTime = null, t.NextUPTime = null, t.GiftTitle = null, t.LayoutRewards = null, t.VipGet = null, t.VipIcon = null, t.VipPoint = null, t.BuyBtn = null, t.BuyBtnLabel = null, t.CostIcon = null, t.LoadAssetHelper = null, t.BuyGroup = null, t.LimitGroup = null, t.LimitLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(m.EventKeys.EVENT_PAY_SUCCESS, this.PaySuccess, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(m.EventKeys.EVENT_PAY_SUCCESS, this.PaySuccess, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(g.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemComponentPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "idleBattle_detail_extendTime".ToUILocale(), this.UpTip.string = "idleBattleExtendTimePanel_upTip".ToUILocale(), this.UpTimeText.string = "idleBattleExtendTimePanel_upTime".ToUILocale(), this.GiftTitle.string = "idleBattleExtendTimePanel_giftTitle".ToUILocale(), this.LimitLabel.string = "allianceTalent_max".ToUILocale(), this.BuyBtn.on("click", this.OnBuyBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = u.ConfigDataComponent.Instance.GetConfigById(h.LevelParam_Config, I.LevelParamType.HangUpPack);
                    this._giftPackIds = n.Data, this.RefreshData()
                }, t.prototype.RefreshData = function() {
                    this._isBoughtAll = !1, this._currentPackIndex = null;
                    for (var e = 0; e < this._giftPackIds.length; e++) {
                        var t = this._giftPackIds[e];
                        if (_.default.Instance.GetGiftBuyCount(t) <= 0) {
                            this._currentPackIndex = e;
                            break
                        }
                    }
                    null == this._currentPackIndex && (this._currentPackIndex = this._giftPackIds.length - 1, this._isBoughtAll = !0)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.RefreshUI(), S.RedDotManager.Instance.Bind(this.BuyBtn, S.RedDotManager.Instance.RedDot.HangUPFreeGiftPack)
                }, t.prototype.RefreshUI = function() {
                    var e = u.ConfigDataComponent.Instance.GetConfigById(h.GiftPack_Config, this._giftPackIds[this._currentPackIndex]);
                    if (this._isBoughtAll) {
                        this.BuyGroup.active = !1, this.LimitGroup.active = !0;
                        for (var t = 0, n = 0; n < this._giftPackIds.length; n++) t += this.GetAddHourWithPackId(this._giftPackIds[n]);
                        this.NextUPTime.string = "idleBattleExtendTimePanel_hour".ToUILocale().Fmt(t), this.NextUPTime.node.x = 0, this.CurUPTime.node.active = !1
                    } else {
                        for (this.BuyGroup.active = !0, this.LimitGroup.active = !1, t = 0, n = 0; n < this._currentPackIndex; n++) t += this.GetAddHourWithPackId(this._giftPackIds[n]);
                        this.CurUPTime.string = "idleBattleExtendTimePanel_hour".ToUILocale().Fmt(t), t += this.GetAddHourWithPackId(this._giftPackIds[this._currentPackIndex]), this.NextUPTime.string = "idleBattleExtendTimePanel_hour".ToUILocale().Fmt(t), this.LayoutRewards.InitWithConfigs(e.Items, this._itemComponentPrefab), "" == e.PayId ? (this.VipPoint.node.parent.active = !1, e.Money <= 0 ? (this.CostIcon.node.active = !1, this.BuyBtnLabel.string = "CrazyWheel_free".ToUILocale()) : (this.LoadAssetHelper.LoadSpriteFrame(g.BundlePath.ItemIcon + "/" + I.CommonItemId.Diamond, this.CostIcon, null, 1), this.CostIcon.node.active = !0, this.BuyBtnLabel.string = "x" + e.Money)) : (this.CostIcon.node.active = !1, this.VipPoint.node.parent.active = !0, this.BuyBtnLabel.string = v.default.Instance.CurrencySymbol + v.default.Instance.ExchangeMoney(e.Money), this.VipPoint.string = "x" + e.VipPoint, this.VipGet.string = "task_get_score_tag".ToUILocale(), this.LoadAssetHelper.LoadSpriteFrame(g.BundlePath.ItemIcon + "/" + I.CommonItemId.VipPoint, this.VipIcon, null, 2))
                    }
                }, t.prototype.PaySuccess = function() {
                    this.RefreshData(), this.RefreshUI(), c.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_HANG_UP_REWARD_TIME)
                }, t.prototype.GetAddHourWithPackId = function(e) {
                    for (var t = 0, n = u.ConfigDataComponent.Instance.GetConfigById(h.GiftPack_Config, e), o = 0; o < n.Items.length; o++) {
                        var r = n.Items[o].Items[0],
                            i = 0;
                        if (u.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, r).Type == I.ItemType.PrivilegeToken)
                            for (var a = u.ConfigDataComponent.Instance.GetConfigById(h.ItemPrivilegeToken_Config, r), s = 0; s < a.Privilege.length; s++) a.Privilege[s].Items[0] == I.ModuleBonusType.HangUpRewardTime && (i += a.Privilege[s].Items[1]);
                        t += i *= n.Items[o].Items[1]
                    }
                    return t
                }, t.prototype.OnBuyBtnClick = function() {
                    var e = this,
                        t = u.ConfigDataComponent.Instance.GetConfigById(h.GiftPack_Config, this._giftPackIds[this._currentPackIndex]);
                    if ("" == t.PayId) return f.DataCenter.Instance.GetItemCount(I.CommonItemId.Diamond) < t.Money ? (d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(I.CommonItemId.Diamond.ToItemName())), void c.UIManager.Instance.ShowUIPanel(g.PanelConfig.MallNewPanel.Path, [I.MallPageType.DiamondShop, I.GiftPackType.BuyDiamond])) : void(t.Money <= 0 ? this.DoBuyByDiamond() : d.UIUtlity.ShowHintPanel(null, "mall_query_costDiamondBuy".ToUILocale().Fmt(t.Money, "idleBattleExtendTimePanel_buyTip".ToUILocale()), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        e.DoBuyByDiamond()
                    }));
                    v.default.Instance.Pay(t.Id)
                }, t.prototype.DoBuyByDiamond = function() {
                    var e = this,
                        t = new y.Req_Pay_ByDiamond;
                    t.Id = this._giftPackIds[this._currentPackIndex], p.RpcComponent.Instance.Call(t, function(t) {
                        d.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.RefreshData(), e.RefreshUI(), c.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_HANG_UP_REWARD_TIME)
                    })
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Label)], t.prototype, "UpTip", void 0), i([A(cc.Label)], t.prototype, "UpTimeText", void 0), i([A(cc.Label)], t.prototype, "CurUPTime", void 0), i([A(cc.Label)], t.prototype, "NextUPTime", void 0), i([A(cc.Label)], t.prototype, "GiftTitle", void 0), i([A(C.default)], t.prototype, "LayoutRewards", void 0), i([A(cc.Label)], t.prototype, "VipGet", void 0), i([A(cc.Sprite)], t.prototype, "VipIcon", void 0), i([A(cc.Label)], t.prototype, "VipPoint", void 0), i([A(cc.Node)], t.prototype, "BuyBtn", void 0), i([A(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([A(cc.Sprite)], t.prototype, "CostIcon", void 0), i([A(b.default)], t.prototype, "LoadAssetHelper", void 0), i([A(cc.Node)], t.prototype, "BuyGroup", void 0), i([A(cc.Node)], t.prototype, "LimitGroup", void 0), i([A(cc.Label)], t.prototype, "LimitLabel", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./LayoutRewards": "LayoutRewards"
    }],
    IdleBattleField: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b554a5jy7xOFaeKCPdCypZY", "IdleBattleField");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = cc._decorator,
            h = d.ccclass,
            f = (d.property, e("../../../../Proto/Static/ConfigProto")),
            y = e("./Misc/BattleFloatText"),
            g = e("./BattleData"),
            m = e("../../../ShareBattle/BattleHelper"),
            I = e("../../Components/Components"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._IsPlaying = !1, t.UINode = null, t.NormalLayer = null, t.EffectLayer = null, t.GenLootsCb = null, t._ActorMap = null, t._Bubble = null, t.PlayerHeros = null, t.IdleMonsters = null, t.ActiveMonsters = null, t.SelectedTargets = null, t._MonsterBornCd = 0, t._ShowBubbleCd = 0, t._ShowBubbleDuration = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onLoad = function() {
                    this.NormalLayer = cc.find("NormalLayer", this.node), this.EffectLayer = cc.find("EffectLayer", this.node), this._Bubble = new S(cc.find("IdleBattleBubble", this.node)), this._ActorMap = {}, this._IsPlaying = !1
                }, t.prototype.StartPlay = function(e) {
                    this.StopPlay(), this.GenLootsCb = e, this.node.active = !0;
                    var t = u.DataCenter.Instance.GetDataById(c.UserFormation_Model, p.FormationIdType.MainLine),
                        o = this._ActorMap;
                    this._ActorMap = {}, this.PlayerHeros = [], this.IdleMonsters = [], this.ActiveMonsters = new Map;
                    for (var r = 0, i = u.ConfigDataComponent.Instance.GetConfigById(f.FormationType_Config, t.FormationType), a = 0; a < i.Data.length; a++) {
                        var s = t.HeroIds[a] || 0;
                        s <= 0 || (m = u.DataCenter.Instance.GetDataById(c.UserHero_Model, s)) && (r++, o[s] ? (this._ActorMap[s] = o[s], delete o[s]) : this._ActorMap[s] = new b(this), this.DelayBornHero(s, m))
                    }
                    var l = u.DataCenter.Instance.GetIntData(p.UserDataKey.MainLineProgress),
                        d = u.ConfigCacheComponent.Instance.GetChapterIdByMapId(l);
                    d || (d = 1);
                    var h = u.ConfigDataComponent.Instance.GetConfigById(f.AdventureChapter_Config, d);
                    for (a = 0; a < h.Heros.length; a++) {
                        var y = h.Heros[a].Items,
                            g = y[0];
                        if (!(g <= 0)) {
                            var m = void 0;
                            o[-g] ? (this._ActorMap[-g] = o[-g], delete o[-g], m = this._ActorMap[-g].HeroData) : ((m = new c.UserHero_Model).Sid = -g, m.HeroId = g, m.StarLevel = y[1], m.Level = y[2], m.Attrs = u.ConfigCacheComponent.GetHeroBaseAttr(g, y[1], y[2]), this._ActorMap[-g] = new b(this)), this._ActorMap[-g].Init(m), this.IdleMonsters.push(this._ActorMap[-g])
                        }
                    }
                    for (var I in o) o[I].Dispose();
                    for (this._MonsterBornCd = n.MonsterBornCd, this._ShowBubbleCd = 10 * Math.random() + 10, a = 0; a < r - 1; a++) this.DelayBornMonster();
                    this._IsPlaying = !0
                }, t.prototype.DelayBornHero = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, this.WaitingSeconds(.1)];
                                case 1:
                                    return n.sent(), this.isValid ? (this._ActorMap[e].Init(t), this.PlayerHeros.push(this._ActorMap[e]), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.DelayBornMonster = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, this.WaitingSeconds(Math.random())];
                                case 1:
                                    return e.sent(), this.isValid ? (this.MonsterBorn(!0), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.StopPlay = function() {
                    this._IsPlaying = !1, this.node.active = !1, cc.Tween.stopAllByTag(n.CCTweenTagId);
                    var e = this;
                    if (this.ActiveMonsters && (this.ActiveMonsters.forEach(function(t) {
                            e.RecycleMonster(t)
                        }), this.ActiveMonsters = null), this.IdleMonsters)
                        for (var t = this.PlayerHeros.length - 1; t < this.IdleMonsters.length; t++) this.IdleMonsters[t] && this.IdleMonsters[t].UnLoadAvatar()
                }, t.prototype.Dispose = function() {
                    if (this._IsPlaying = !1, this.node.active = !1, this.GenLootsCb = null, this._ActorMap)
                        for (var e in this._ActorMap) this._ActorMap[e].Dispose();
                    this._ActorMap = {}, this.ActiveMonsters = null, this.IdleMonsters = null, this.PlayerHeros = null, this.SelectedTargets = null
                }, t.prototype.update = function(e) {
                    if (this._IsPlaying && this.isValid)
                        for (var t in this._ShowBubbleDuration > 0 && (this._ShowBubbleDuration -= e, this._ShowBubbleDuration <= 0 && this._Bubble.Hide()), this._ShowBubbleCd > 0 && (this._ShowBubbleCd -= e), this._ShowBubbleCd <= 0 && this.ShowBubble(), this._MonsterBornCd > 0 && (this._MonsterBornCd -= e), this._MonsterBornCd <= 0 && this.MonsterBorn(!1), this.SelectedTargets = null, this._ActorMap) this._ActorMap[t].OnUpdate(e)
                }, t.prototype.MonsterBorn = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function() {
                            return this.IdleMonsters.length <= 0 || this.ActiveMonsters.size >= this.PlayerHeros.length ? [2] : (this._MonsterBornCd = n.MonsterBornCd, t = this.IdleMonsters.shift(), this.ActiveMonsters.set(t.HeroData.Sid, t), t.Born(e), [2])
                        })
                    })
                }, t.prototype.RecycleMonster = function(e) {
                    e.ResetMonster(), this.ActiveMonsters.delete(e.HeroData.Sid), this.IdleMonsters.push(e)
                }, t.prototype.ShowBubble = function() {
                    if (this._ShowBubbleCd = 10 * Math.random() + 10, this.PlayerHeros && !(this.PlayerHeros.length < 1)) {
                        for (var e = null, t = 0; t < this.PlayerHeros.length; t++) this.PlayerHeros[t].CurrentState == v.Patroling && (e = this.PlayerHeros[t]);
                        e || (e = this.PlayerHeros[Math.floor(this.PlayerHeros.length * Math.random())]);
                        var o = u.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("IdleBattleBubbleContentCount"),
                            r = Math.floor(o * Math.random()) + 1;
                        this._Bubble.Show(e.RootNode, e.HeroConfig.HUDOffsetY, ("IdleBattleBubbleContent_" + r).ToUILocale()), this._ShowBubbleDuration = n.ShowBubbuleDuration
                    }
                }, t.prototype.WaitingSeconds = function(e) {
                    return void 0 === e && (e = 0), a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function() {
                            return [2, new Promise(function(n) {
                                t.scheduleOnce(function() {
                                    t.isValid && n(void 0)
                                }, e)
                            })]
                        })
                    })
                }, t.CCTweenTagId = 112, t.MonsterBornCd = 1.2, t.ShowBubbuleDuration = 4, n = i([h], t)
            }(cc.Component);
        n.default = C;
        var v, b = function() {
                function e(e) {
                    this._IsDisposed = !1, this._IsLoaded = !1, this.BattleField = null, this.HeroData = null, this.HeroConfig = null, this.SkillConfig = null, this.SkillEvents = null, this.AvatarPrefab = null, this.EffectPrefab = null, this.MagicCirclePrefab = null, this.WeaponEffect = null, this.BulletEffect = null, this.BombEffect = null, this.BottomEffect = null, this.MagicCircleBottomEffect = null, this.MagicCircleTopEffect = null, this.RootNode = null, this.AvatarRoot = null, this.FloatNode = null, this.MagicCircleBottomRoot = null, this.MagicCircleTopRoot = null, this.HpCount = 0, this.CurrentState = 0, this._FloatingDamage = null, this._PatrolSpeed = 0, this._PatrolDestination = null, this._IsLongRange = !1, this._AttackCd = 0, this._NewAnimation = null, this._ActionDuration = 0, this._ActionIndex = 0, this._CurrentTarget = null, this._isLeft = !1, this._loopAnimations = [p.SkillAnimationType.Standby, p.SkillAnimationType.Move, "rev_" + p.SkillAnimationType.Standby, "rev_" + p.SkillAnimationType.Move], this.AttackSpeed = 1.5, this.BattleField = e, this._IsDisposed = !0, this._IsLoaded = !1, this._FloatingDamage = [], this.RootNode = new cc.Node, this.AvatarRoot = new cc.Node, this.AvatarRoot.parent = this.RootNode, this.AvatarRoot.x = 0, this.AvatarRoot.y = 0, this.MagicCircleBottomRoot = new cc.Node, this.MagicCircleBottomRoot.parent = this.AvatarRoot, this.MagicCircleTopRoot = new cc.Node, this.MagicCircleTopRoot.parent = this.AvatarRoot, this.FloatNode = new cc.Node("FloatNode"), this.FloatNode.parent = this.RootNode, this.RootNode.parent = this.BattleField.NormalLayer
                }
                return e.prototype.Init = function(e) {
                    this._IsDisposed = !1, this.HeroData = e, this._ActionDuration = 0, this._ActionIndex = 0, this._IsLongRange = !1, this.HpCount = 1, this.HeroConfig = u.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, this.HeroData.HeroId), this.SkillConfig = u.ConfigDataComponent.Instance.GetHeroSkillConfig(this.HeroConfig.Model), this.FloatNode.y = this.HeroConfig.HUDOffsetY;
                    var t = u.ConfigDataComponent.Instance.GetConfigById(f.SkillBase_Config, this.HeroConfig.IdleSkillId);
                    this.SkillEvents = this.SkillConfig.Skills[t.ActionIndex - 1];
                    for (var n = 0; n < this.SkillEvents.Events.length; n++)
                        if (this.SkillEvents.Events[n].EventType == p.SkillEventType.Bullet) {
                            this._IsLongRange = !0;
                            break
                        } if (this._IsLongRange ? this._AttackCd = .5 : this._AttackCd = .1, this.HeroData.Sid > 0) {
                        var o = this.GetHeroInitPosition(this.BattleField.PlayerHeros.length, this._IsLongRange);
                        this.RootNode.x = o.x, this.RootNode.y = o.y, this.StartPatrol(), this.LoadAvatar()
                    } else this.CurrentState = v.Idle, this.RootNode.active = !1
                }, e.prototype.Dispose = function() {
                    var e, t;
                    this._IsDisposed = !0;
                    for (var n = 0; n < this.FloatNode.childrenCount; n++) {
                        var o = this.FloatNode.children[n].getComponent(y.default);
                        null === (e = null == o ? void 0 : o.node) || void 0 === e || e.cleanup(), o.Reset(), g.BattleData.PutBattleFloatText(o.node)
                    }
                    this.UnLoadAvatar(), null === (t = this.RootNode) || void 0 === t || t.destroy()
                }, e.prototype.LoadAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._IsLoaded ? [2] : (this._IsLoaded = !0, e = "", this.HeroData.SkinId ? (t = I.ConfigDataComponent.Instance.GetConfigById(f.HeroSkin_Config, this.HeroData.SkinId), e = t ? "Hero_" + t.Model : this.SkillConfig.BundleName) : e = this.SkillConfig.BundleName, [4, l.AssetsManager.Instance.LoadAsset(e + "/HeroAvatar", cc.Prefab)]);
                                case 1:
                                    return n = s.sent(), this._IsDisposed ? (l.AssetsManager.Instance.UnloadAsset(n), [2]) : (this.AvatarPrefab = n, (o = cc.instantiate(this.AvatarPrefab)).setParent(this.AvatarRoot), o.setSiblingIndex(1), o.scaleY = p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR, o.scaleX = p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR * p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X, this.AvatarSkeleton = o.getComponent(sp.Skeleton), this.AvatarSkeleton && (r = _.default.Instance.GetHeroDefaultStarLevelSkinName(this.HeroData.HeroId, this.HeroData.StarLevel), this.AvatarSkeleton.setSkin(r), this.AvatarSkeleton.timeScale = this.AttackSpeed), i = new cc.Node, a = i.addComponent(cc.Sprite), i.width = 239, i.height = 86, i.parent = this.RootNode, i.setSiblingIndex(0), this.HeroData.Sid > 0 ? a.spriteFrame = g.BattleData.PlayerAtlas.getSpriteFrame("IdleBattleHeroBase") : a.spriteFrame = g.BattleData.PlayerAtlas.getSpriteFrame("IdleBattleMonsterBase"), [4, l.AssetsManager.Instance.LoadAsset(e + "/SkillEffect", cc.Prefab)]);
                                case 2:
                                    return c = s.sent(), this._IsDisposed ? (l.AssetsManager.Instance.UnloadAsset(c), [2]) : (this.EffectPrefab = c, this.LoadMagicCircle(), [2])
                            }
                        })
                    })
                }, e.prototype.UnLoadAvatar = function() {
                    var e, t, n, o, r, i, a, s, c;
                    this.BulletEffect && (null === (e = this.BulletEffect.node) || void 0 === e || e.cleanup()), null === (n = null === (t = this.AvatarSkeleton) || void 0 === t ? void 0 : t.node) || void 0 === n || n.destroy(), this.AvatarSkeleton = null, null === (r = null === (o = this.WeaponEffect) || void 0 === o ? void 0 : o.node) || void 0 === r || r.destroy(), null === (a = null === (i = this.BulletEffect) || void 0 === i ? void 0 : i.node) || void 0 === a || a.destroy(), null === (c = null === (s = this.BombEffect) || void 0 === s ? void 0 : s.node) || void 0 === c || c.destroy(), l.AssetsManager.Instance.UnloadAsset(this.AvatarPrefab), this.AvatarPrefab = null, l.AssetsManager.Instance.UnloadAsset(this.EffectPrefab), this.EffectPrefab = null, this.UnloadMagicCircle(), this._IsLoaded = !1
                }, e.prototype.LoadMagicCircle = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return (e = u.DataCenter.Instance.GetHeroMagicCircle(this.HeroData.Sid)) > 0 ? (t = I.ConfigDataComponent.Instance.GetConfigById(f.MagicCircleBase_Config, e), [4, l.AssetsManager.Instance.LoadAsset(t.Model + "/HeroAvatar", cc.Prefab)]) : [3, 2];
                                case 1:
                                    return n = r.sent(), this._IsDisposed ? (l.AssetsManager.Instance.UnloadAsset(n), [2]) : (this.MagicCirclePrefab = n, this.MagicCircleBottomRoot.active = !0, this.MagicCircleTopRoot.active = !0, this.MagicCircleBottomEffect || (o = cc.instantiate(n), this.MagicCircleBottomRoot.addChild(o), this.MagicCircleBottomEffect = o.getComponent(sp.Skeleton), this.MagicCircleBottomEffect.setAnimation(0, "standby2", !0)), this.MagicCircleTopEffect || (o = cc.instantiate(n), this.MagicCircleTopRoot.addChild(o), this.MagicCircleTopEffect = o.getComponent(sp.Skeleton), this.MagicCircleTopEffect.setAnimation(0, "standby", !0)), [3, 3]);
                                case 2:
                                    this.MagicCircleBottomRoot.active = !1, this.MagicCircleTopRoot.active = !1, r.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.UnloadMagicCircle = function() {
                    var e, t, n, o;
                    null === (t = null === (e = this.MagicCircleBottomEffect) || void 0 === e ? void 0 : e.node) || void 0 === t || t.destroy(), null === (o = null === (n = this.MagicCircleTopEffect) || void 0 === n ? void 0 : n.node) || void 0 === o || o.destroy(), l.AssetsManager.Instance.UnloadAsset(this.MagicCirclePrefab), this.MagicCirclePrefab = null
                }, e.prototype.HeroSelectTarget = function() {
                    var t = this;
                    if (null == this._CurrentTarget) {
                        if (!this.BattleField.SelectedTargets) {
                            this.BattleField.SelectedTargets = {};
                            for (var n = 0; n < this.BattleField.PlayerHeros.length; n++) !this.BattleField.PlayerHeros[n]._IsLongRange && this.BattleField.PlayerHeros[n]._CurrentTarget && (this.BattleField.SelectedTargets[this.BattleField.PlayerHeros[n]._CurrentTarget.HeroData.Sid] = 1)
                        }
                        var o = null,
                            r = -1;
                        this.BattleField.ActiveMonsters.forEach(function(n) {
                            if (!(n.HpCount <= 0 || Math.abs(n.RootNode.x) > e.BattleAreaMaxX)) {
                                var i = Math.abs(n.RootNode.x - t.RootNode.x);
                                if (!t._IsLongRange) {
                                    if (t.BattleField.SelectedTargets[n.HeroData.Sid]) return;
                                    if (i > e.ShortRangeDistance + 300) return
                                }(null == o || i < r) && (r = i, o = n)
                            }
                        }), o && (this._CurrentTarget = o, this._IsLongRange || (this.BattleField.SelectedTargets[o.HeroData.Sid] = 1), this._IsLongRange ? this.Attack() : this.CurrentState = v.MoveToTarget)
                    }
                }, e.prototype.MonsterSelectTarget = function() {
                    if (!(null != this._CurrentTarget || Math.abs(this.RootNode.x) > e.BattleAreaMaxX)) {
                        for (var t = 0; t < this.BattleField.PlayerHeros.length; t++) {
                            var n = this.BattleField.PlayerHeros[t];
                            if (this._IsLongRange) {
                                if (Math.abs(this.RootNode.x - n.RootNode.x) <= e.LogRangeDistance) {
                                    this._CurrentTarget = n;
                                    break
                                }
                            } else if (Math.abs(this.RootNode.x - n.RootNode.x) <= e.ShortRangeDistance && Math.abs(this.RootNode.y - n.RootNode.y) <= 30) {
                                this._CurrentTarget = n;
                                break
                            }
                        }
                        this._CurrentTarget && this.Attack()
                    }
                }, e.prototype.Attack = function() {
                    this.CheckTargetStatus() && (this.CurrentState = v.Attacking, this._ActionDuration = 0, this._ActionIndex = 0, this.SetCurAnimationByDefaultAction(p.SkillAnimationType.Standby))
                }, e.prototype.Hurt = function(e) {
                    if (!(this.HpCount <= 0)) {
                        this.HeroData.Sid < 0 && this.HpCount--;
                        var t = 1e3 + e.HeroData.Attrs[p.HeroAttributeType.DamageAddon] || 0;
                        this.HeroData.Attrs[p.HeroAttributeType.DamageReduce] && (t -= this.HeroData.Attrs[p.HeroAttributeType.DamageReduce]), t = Math.max(.1, t / 1e3);
                        var n = this.HeroData.Attrs[p.HeroAttributeType.Defense] || 0,
                            o = (2 * Math.abs(this.HeroData.Level) + 598) / (2 * Math.abs(this.HeroData.Level) + 598 + n),
                            r = e.HeroData.Attrs[p.HeroAttributeType.Attack] * t * o,
                            i = Math.ceil(.05 * e.HeroData.Attrs[p.HeroAttributeType.Attack]);
                        r = Math.max(r, i, 150), r = Math.round((1 + .2 * (.5 - Math.random())) * r);
                        var a = y.FloatNumberType.Normal;
                        this.HeroData.Sid < 0 && Math.ceil(10 * Math.random()) >= 7 && (a = y.FloatNumberType.Critical);
                        var s = y.default.GetNumberText(a, -r);
                        s.node.x = 0, s.node.y = 0, s.node.parent = this.FloatNode, s.node.scale = 1, s.node.opacity = 255, this.DoFloatingJob(s, a), this.HpCount <= 0 && (this._CurrentTarget && this._CurrentTarget._CurrentTarget == this && (this._CurrentTarget._CurrentTarget = null), this._CurrentTarget = null, this.CurrentState = v.Dead, this._ActionDuration = 0, this.BattleField.GenLootsCb && this.BattleField.GenLootsCb(cc.v2(this.RootNode.x, this.RootNode.y + this.BattleField.node.y)))
                    }
                }, e.prototype.DoFloatingJob = function(e, t) {
                    switch (e.node.scale = 1, t) {
                        case y.FloatNumberType.Critical:
                            cc.tween(e.node).to(.15, {
                                y: 30,
                                scale: 2
                            }).to(.06, {
                                scale: 1.6
                            }).delay(.4).to(.2, {
                                y: 120
                            }).call(function() {
                                e.Reset(), g.BattleData.PutBattleFloatText(e.node)
                            }).start();
                            break;
                        default:
                            cc.tween(e.node).to(.5, {
                                y: 80
                            }).delay(.2).call(function() {
                                e.Reset(), g.BattleData.PutBattleFloatText(e.node)
                            }).start()
                    }
                }, e.prototype.StartPatrol = function() {
                    if (this.CurrentState = v.Patroling, this._CurrentTarget = null, !(this.HeroData.Sid < 0 || this._IsLongRange)) {
                        var t = Math.floor(Math.random() * e.BattleAreaMaxX) * (Math.random() >= .5 ? 1 : -1),
                            n = Math.floor(Math.random() * e.BattleAreaMaxY) * (Math.random() >= .5 ? 1 : -1);
                        this._PatrolDestination = {
                            x: t,
                            y: n
                        }, this._PatrolSpeed = e.ActorMoveSpeed * (.5 + Math.random() / 2)
                    }
                }, e.prototype.ResetMonster = function() {
                    for (var e, t = 0; t < this.FloatNode.childrenCount; t++) {
                        var n = this.FloatNode.children[t].getComponent(y.default);
                        null === (e = null == n ? void 0 : n.node) || void 0 === e || e.cleanup(), n.Reset(), g.BattleData.PutBattleFloatText(n.node)
                    }
                    this.CurrentState = v.Idle, this.RootNode.active = !1, this.WeaponEffect && (this.WeaponEffect.clearTracks(), this.WeaponEffect.animation = "")
                }, e.prototype.CheckTargetStatus = function() {
                    return !(!this._CurrentTarget || this._CurrentTarget.HpCount <= 0 || Math.abs(this._CurrentTarget.RootNode.x) > e.BattleAreaMaxX) || (this._CurrentTarget = null, this.StartPatrol(), !1)
                }, e.prototype.Born = function() {
                    this.LoadAvatar(), this.CurrentState = v.Patroling, this._CurrentTarget = null, this.RootNode.active = !0, this.RootNode.opacity = 255, this.HpCount = 2 + Math.floor(4 * Math.random());
                    var t = this.GetMonsterPosition2();
                    this.RootNode.x = t.x, this.RootNode.y = t.y, this.AvatarRoot.scaleX = 1, this._isLeft = t.x > 0, this.SetChangeDirectionAnimation(), this.SetWeaponEffectNodeScaleX();
                    var n = this._isLeft ? -1 : 1;
                    this._PatrolSpeed = e.ActorMoveSpeed * (.5 + Math.random() / 2), this._PatrolDestination = {
                        x: (e.ScreenAreaMaxX + 10) * n,
                        y: this.RootNode.y
                    }
                }, e.prototype.SetChangeDirectionAnimation = function() {
                    if (this.AvatarSkeleton && this.AvatarSkeleton.animation) {
                        var e, t = this.AvatarSkeleton.animation.split("rev_");
                        e = t.length > 1 ? t[1] : t[0], this._NewAnimation = this._isLeft ? "rev_" + e : e
                    }
                }, e.prototype.SetWeaponEffectNodeScaleX = function() {
                    if (this.WeaponEffect && this.WeaponEffect.node && this.WeaponEffect.node.isValid) {
                        var e = Math.abs(this.WeaponEffect.node.scaleX);
                        this.WeaponEffect.node.scaleX = this._isLeft ? -1 * e : e
                    }
                }, e.prototype.OnUpdate = function(t) {
                    if (!this._IsDisposed) {
                        switch (this.RootNode.zIndex = 10 * (1e3 - Math.floor(this.RootNode.y)) + (this.HeroData.Sid > 0 ? 1 : 0), this.CurrentState) {
                            case v.AttackCd:
                                this._ActionDuration += t, this._ActionDuration >= this._AttackCd ? this.Attack() : this.SetCurAnimationByDefaultAction(p.SkillAnimationType.Standby);
                                break;
                            case v.Patroling:
                                if (this.HeroData.Sid > 0) {
                                    if (this.HeroSelectTarget(), this.CurrentState != v.Patroling) break;
                                    this._IsLongRange ? this.SetCurAnimationByDefaultAction(p.SkillAnimationType.Standby) : ((!this._PatrolDestination || this.RootNode.x == this._PatrolDestination.x && this.RootNode.y == this._PatrolDestination.y) && this.StartPatrol(), Math.abs(this.RootNode.x - this._PatrolDestination.x) <= this._PatrolSpeed ? this.RootNode.x = this._PatrolDestination.x : this.RootNode.x += this._PatrolSpeed * (this._PatrolDestination.x > this.RootNode.x ? 1 : -1), Math.abs(this.RootNode.y - this._PatrolDestination.y) <= this._PatrolSpeed ? this.RootNode.y = this._PatrolDestination.y : this.RootNode.y += this._PatrolSpeed * (this._PatrolDestination.y > this.RootNode.y ? 1 : -1), this.AvatarRoot.scaleX = 1, this._isLeft = this.RootNode.x >= this._PatrolDestination.x, this.SetWeaponEffectNodeScaleX(), this.SetCurAnimationByDefaultAction(p.SkillAnimationType.Move))
                                } else {
                                    if (Math.abs(this.RootNode.x) >= Math.abs(this._PatrolDestination.x)) {
                                        this.BattleField.RecycleMonster(this);
                                        break
                                    }
                                    if (this.MonsterSelectTarget(), this.CurrentState != v.Patroling) break;
                                    this.RootNode.x += this._PatrolSpeed * (this._PatrolDestination.x > this.RootNode.x ? 1 : -1), this.SetCurAnimationByDefaultAction(p.SkillAnimationType.Move)
                                }
                                break;
                            case v.Dead:
                                this.SetCurAnimationByDefaultAction(p.SkillAnimationType.Standby), this._ActionDuration += t, this._ActionDuration >= e.MonsterDeadDuration && this.BattleField.RecycleMonster(this), this.RootNode.opacity = 255 * (1 - this._ActionDuration / e.MonsterDeadDuration);
                                break;
                            case v.MoveToTarget:
                                if (!this.CheckTargetStatus()) break;
                                this._CurrentTarget && this.HeroData.Sid > 0 && (this.AvatarRoot.scaleX = 1, this._isLeft = this.RootNode.x >= this._CurrentTarget.RootNode.x, this.SetChangeDirectionAnimation(), this.SetWeaponEffectNodeScaleX());
                                var n = this._CurrentTarget.RootNode.x - this.RootNode.x,
                                    o = this._CurrentTarget.RootNode.y - this.RootNode.y;
                                if (Math.abs(n) <= e.ShortRangeDistance && Math.abs(o) <= 30) {
                                    this.Attack();
                                    break
                                }
                                this.SetCurAnimationByDefaultAction(p.SkillAnimationType.Move), Math.abs(n) > e.ShortRangeDistance && (this.RootNode.x += e.ActorMoveSpeed * (n > 0 ? 1 : -1)), Math.abs(o) > 30 && (this.RootNode.y += e.ActorMoveSpeed * (o > 0 ? 1 : -1));
                                break;
                            case v.Attacking:
                                this._CurrentTarget && (this.AvatarRoot.scaleX = 1, this._isLeft = this.RootNode.x >= this._CurrentTarget.RootNode.x, this.SetChangeDirectionAnimation(), this.SetWeaponEffectNodeScaleX()), this._ActionDuration += 1e3 * t, this._ActionDuration >= this.SkillEvents.Duration / this.AttackSpeed ? (this.CurrentState = v.AttackCd, this._ActionDuration = 0) : this.PerformSkill()
                        }
                        if (this.AvatarSkeleton && null != this._NewAnimation) {
                            if (this.AvatarSkeleton.animation != this._NewAnimation) {
                                var r = !1;
                                this.CurrentState != v.Attacking && (r = !0), this.AvatarSkeleton.clearTracks(), this.AvatarSkeleton.setToSetupPose(), this.AvatarSkeleton.setAnimation(0, this._NewAnimation, r)
                            }
                            this._NewAnimation = null
                        }
                    }
                }, e.prototype.SetCurAnimationByDefaultAction = function(e) {
                    this._isLeft ? this._NewAnimation = "rev_" + e : this._NewAnimation = e
                }, e.prototype.PerformSkill = function() {
                    for (var e, t = this; this._ActionIndex < this.SkillEvents.Events.length;) {
                        var n = this.SkillEvents.Events[this._ActionIndex];
                        if (this._ActionDuration < n.StartTime / this.AttackSpeed) break;
                        switch (n.EventType) {
                            case p.SkillEventType.PlayAction:
                                this.SetCurAnimationByDefaultAction(n.ActionName);
                                break;
                            case p.SkillEventType.MoveBack:
                                this.SetCurAnimationByDefaultAction(p.SkillAnimationType.Standby);
                                break;
                            case p.SkillEventType.WeaponEffect:
                                if (this.EffectPrefab) {
                                    if (this.WeaponEffect || ((r = cc.instantiate(this.EffectPrefab)).setParent(this.AvatarRoot), r.scaleY = p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR, r.scaleX = p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR * p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X, this.WeaponEffect = r.getComponent(sp.Skeleton)), this.WeaponEffect && this.WeaponEffect.node && this.WeaponEffect.node.isValid) {
                                        var o = Math.abs(this.WeaponEffect.node.scaleX);
                                        this.WeaponEffect.node.scaleX = this._isLeft ? -1 * o : o
                                    }
                                    this.PlayAction(this.WeaponEffect, n.ActionName)
                                }
                                break;
                            case p.SkillEventType.Bullet:
                                if (this.EffectPrefab && this._CurrentTarget) {
                                    var r;
                                    if (this.BulletEffect || ((r = cc.instantiate(this.EffectPrefab)).setParent(this.BattleField.EffectLayer), r.scale = p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR, this.BulletEffect = r.getComponent(sp.Skeleton)), !this.BulletEffect.node) break;
                                    o = this._isLeft ? -1 : 1, this.BulletEffect.node.active = !0, this.BulletEffect.node.scaleY = p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR, this.BulletEffect.node.scaleX = p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR * p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_X;
                                    var i = this.RootNode.position.x + n.OffsetX * o;
                                    this.BulletEffect.node.position = cc.v3(i, this.RootNode.position.y + n.OffsetY * p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR, 0);
                                    var a = {
                                        x: this._CurrentTarget.RootNode.x,
                                        y: this._CurrentTarget.RootNode.position.y + this._CurrentTarget.HeroConfig.HUDOffsetY / 2 * p.GlobalSetting.BATTLE_HERO_ASSET_SCALE_FACTOR
                                    };
                                    this.BulletEffect.node.angle = m.BattleHelper.GetBulletAngle(a, this.BulletEffect.node.position), cc.tween(this.BulletEffect.node).tag(C.CCTweenTagId).to(n.Duration / 1e3 / this.AttackSpeed, a).call(function() {
                                        t.BulletEffect && (t.BulletEffect.node.active = !1)
                                    }).start(), this.PlayAction(this.BulletEffect, n.ActionName, !0)
                                }
                                break;
                            case p.SkillEventType.HitPoint:
                                null === (e = this._CurrentTarget) || void 0 === e || e.Hurt(this)
                        }
                        this._ActionIndex++
                    }
                }, e.prototype.PlayAction = function(e, t, n) {
                    void 0 === n && (n = !1), e.clearTracks(), e.setToSetupPose(), e.setAnimation(0, t, n), e.timeScale = this.AttackSpeed
                }, e.prototype.GetHeroInitPosition = function(t, n) {
                    return {
                        x: n ? Math.floor(180 * Math.random()) * (Math.random() >= .5 ? 1 : -1) : Math.floor(330 * Math.random()) * (Math.random() >= .5 ? 1 : -1),
                        y: e.HeroInitPosYList[t] + Math.floor(50 * Math.random())
                    }
                }, e.prototype.GetMonsterPosition = function() {
                    return {
                        x: (Math.random() >= .5 ? 1 : -1) * e.BattleAreaMaxX * Math.random(),
                        y: 150 * (Math.random() >= .5 ? 1 : -1) * Math.random()
                    }
                }, e.prototype.GetMonsterPosition2 = function() {
                    return {
                        x: e.ScreenAreaMaxX * (Math.random() >= .5 ? 1 : -1),
                        y: 150 * (Math.random() >= .5 ? 1 : -1) * Math.random()
                    }
                }, e.ActorMoveSpeed = 5, e.MonsterDeadDuration = .8, e.ShortRangeDistance = 180, e.LogRangeDistance = 360, e.BattleAreaMaxX = 380, e.BattleAreaMaxY = 180, e.ScreenAreaMaxX = 650, e.HeroInitPosYList = [-20, -60, 20, -100, 60], e
            }(),
            S = function() {
                function e(e) {
                    this._UINode = null, this._Content = null, this._Lable = null, this._UINode = e, this._Content = cc.find("Content", this._UINode), this._Lable = cc.find("Label", this._Content).getComponent(cc.Label), this._UINode.active = !1
                }
                return e.prototype.Hide = function() {
                    if (this._UINode && this._UINode.isValid) {
                        this._UINode.cleanup();
                        var e = this;
                        cc.tween(this._UINode).tag(C.CCTweenTagId).to(.8, {
                            opacity: 0
                        }, {
                            easing: "cubicIn"
                        }).call(function() {
                            e._UINode.active = !1
                        }).start()
                    }
                }, e.prototype.Show = function(e, t, n) {
                    if (this._UINode && this._UINode.isValid) {
                        this._UINode.active = !0, this._UINode.opacity = 1, this._UINode.parent = e, this._UINode.x = 0, this._UINode.y = t, this._Lable.string = n, this._UINode.cleanup();
                        var o = this;
                        cc.tween(this._UINode).tag(C.CCTweenTagId).delay(.1).call(function() {
                            o._Content.height = o._Lable.node.height + 30
                        }).to(.8, {
                            opacity: 255
                        }, {
                            easing: "cubicOut"
                        }).start()
                    }
                }, e
            }();
        (function(e) {
            e[e.Idle = 0] = "Idle", e[e.Borning = 2] = "Borning", e[e.Patroling = 3] = "Patroling", e[e.MoveToTarget = 4] = "MoveToTarget", e[e.Attacking = 5] = "Attacking", e[e.AttackCd = 6] = "AttackCd", e[e.Dead = 7] = "Dead"
        })(v || (v = {})), cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareBattle/BattleHelper": "BattleHelper",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "./BattleData": "BattleData",
        "./Misc/BattleFloatText": "BattleFloatText"
    }],
    IdleBattleGetWayComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "764a94OqPtKnbSF0NRBVjbi", "IdleBattleGetWayComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("./TowerLayerItem"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity");
        (function(e) {
            e[e.Tower = 0] = "Tower", e[e.Reward = 1] = "Reward", e[e.QuickBattle = 2] = "QuickBattle"
        })(a || (a = {}));
        var y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagLabel = null, t.NameLabel = null, t.InfoLabel = null, t.GotoButton = null, t.GotoButtonLabel = null, t._hangTimeUpperLimit = 0, t._addationVipHour = 0, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.GotoButton.node.on("click", this.OnGotoButtonClick, this)
                }, t.prototype.Init = function(e) {
                    var t = this;
                    switch (this._index = e, this._index) {
                        case a.Tower:
                            this.TagLabel.string = "idleBattleGetWay_new".ToUILocale(), this.GotoButtonLabel.string = "LoverArrow_Start_Go".ToUILocale(), this.NameLabel.string = "assistant_tower_name_99".ToUILocale(), this.InfoLabel.string = "climbTower_entrance_layer".ToUILocale().Fmt(this.GetLayerCount());
                            break;
                        case a.Reward:
                            this.TagLabel.string = "idleBattleGetWay_tag".ToUILocale(), this.GotoButtonLabel.string = "LoverArrow_Start_Go".ToUILocale(), this.NameLabel.string = "welfare_hangUpDrop".ToUILocale(), this._hangTimeUpperLimit = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureHangUpRewardTimeUpperLimit");
                            var n = p.default.GetModuleBonus();
                            this._addationVipHour = n[d.ModuleBonusType.HangUpRewardTime] || 0, this.InfoLabel.string = this.GetHangUpTimeStr(), this.schedule(function() {
                                t.InfoLabel.string = t.GetHangUpTimeStr()
                            }, 1);
                            break;
                        case a.QuickBattle:
                            this.TagLabel.string = "idleBattleGetWay_tag2".ToUILocale(), this.GotoButtonLabel.string = "assistant_quick_battle".ToUILocale(), this.NameLabel.string = "assistant_quick_battle".ToUILocale();
                            var o = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureQuickBattleDailyCount"),
                                r = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureQuickBattleDailyDiamondCount"),
                                i = (n = p.default.GetModuleBonus())[d.ModuleBonusType.QuickBattleFree] || 0,
                                s = n[d.ModuleBonusType.QuickBattleDiamond] || 0,
                                u = c.DataCenter.Instance.GetDataById(l.Adventure_Model, 1),
                                h = o + i - u.DailyCount,
                                f = r + s - u.DailyQuickCount;
                            this.InfoLabel.string = (h + f).toString()
                    }
                }, t.prototype.GetLayerCount = function() {
                    var e = c.DataCenter.Instance.GetDataById(l.TestTower_Model, u.TestTowerType.Normal);
                    return e ? e.MapIndex : 0
                }, t.prototype.GetHangUpTimeStr = function() {
                    var e = c.RpcComponent.Instance.ServerTime - c.DataCenter.Instance.GetDataById(l.Adventure_Model, 1).ReceiveTime;
                    return e > (this._hangTimeUpperLimit + 60 * this._addationVipHour) * d.Etc.MinuteDuration && (e = (this._hangTimeUpperLimit + 60 * this._addationVipHour) * d.Etc.MinuteDuration, this.unscheduleAllCallbacks()), e.FmtRemainTime()
                }, t.prototype.OnGotoButtonClick = function() {
                    switch (s.UIManager.Instance.BackUIPanel(), this._index) {
                        case a.Tower:
                            p.default.ShowPanelByGetWayId(1702);
                            break;
                        case a.Reward:
                            var e = new l.Req_Map_AdventureGetHangUpReward;
                            c.RpcComponent.Instance.Call(e, function(e) {
                                for (var t = [], n = 0; n < e.ActivityRewards.length; n++) t.push(e.ActivityRewards[n]);
                                for (n = 0; n < e.Rewards.length; n++) t.push(e.Rewards[n]);
                                t.length > 0 ? s.UIManager.Instance.ShowUIPanel(h.PanelConfig.IdleBattleDetailPanel.Path, t) : f.UIUtlity.ShowFloatingHint("idleBattle_main_noReward".ToUILocale())
                            });
                            break;
                        case a.QuickBattle:
                            s.UIManager.Instance.ShowUIPanel(h.PanelConfig.QuickBattlePanel.Path)
                    }
                }, i([m(cc.Label)], t.prototype, "TagLabel", void 0), i([m(cc.Label)], t.prototype, "NameLabel", void 0), i([m(cc.Label)], t.prototype, "InfoLabel", void 0), i([m(cc.Button)], t.prototype, "GotoButton", void 0), i([m(cc.Label)], t.prototype, "GotoButtonLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./TowerLayerItem": "TowerLayerItem"
    }],
    IdleBattleGetWayPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "deed7WZAS1N04mbjIhH298T", "IdleBattleGetWayPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../Components/IdleBattleGetWayComponent"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../Auxiliary/DataUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.Title = null, t.TopLabelArr = [], t.IdleBattleGetWayComponentArr = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "recommend".ToUILocale(), this.TopLabelArr[1].string = "idleBattleGetWay_tip2".ToUILocale(), this.TopLabelArr[2].string = "idleBattleGetWay_tip3".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n = c.ConfigDataComponent.Instance.GetConfigById(s.MapAdventure_Config, c.DataCenter.Instance.GetIntData(u.UserDataKey.MainLineProgress));
                    this.TopLabelArr[0].string = "idleBattleGetWay_tip1".ToUILocale().Fmt(n.Level);
                    var o = p.default.Instance.IsGameModuleOpen(u.GameModuleType.TestTower),
                        r = p.default.Instance.IsGameModuleUnlock(u.GameModuleType.TestTower);
                    o && r[0] ? (this.IdleBattleGetWayComponentArr[0].node.active = !0, this.IdleBattleGetWayComponentArr[0].Init(0)) : this.IdleBattleGetWayComponentArr[0].node.active = !1, this.IdleBattleGetWayComponentArr[1].Init(1), this.IdleBattleGetWayComponentArr[2].Init(2)
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Label)], t.prototype, "TopLabelArr", void 0), i([f(l.default)], t.prototype, "IdleBattleGetWayComponentArr", void 0), i([h], t)
            }(a.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/IdleBattleGetWayComponent": "IdleBattleGetWayComponent"
    }],
    IdleBattleMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5de26FSnPFGq5Xi+tf/ERuJ", "IdleBattleMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u, p = e("../../../EZFramework/EZFramework"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/ConfigData/ConfigDataComponent"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Components/CustomRichText"),
            m = e("../../Components/DataCenter"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../Components/RpcComponent"),
            C = e("../../../Consts/Etc"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../../Consts/Consts"),
            w = e("../../../Consts/Consts"),
            P = e("../../../Util/AppUtil"),
            A = e("../../RedDot/RedDotManager"),
            T = e("../../Auxiliary/DataUtlity"),
            R = e("../Components/BattlePlayerCommonDefines"),
            L = e("../../Components/ConfigData/ConfigCacheComponent"),
            k = e("../../Auxiliary/EventKeys"),
            O = e("../Components/OuterMapComponent"),
            M = e("../../Auxiliary/GuideManager"),
            D = e("../Battle/BattleManager"),
            B = e("../Battle/IdleBattleField"),
            N = e("../../Auxiliary/GameDataChecker"),
            E = e("../Components/VerticalButtonSlider"),
            U = e("../../Auxiliary/ModuleGuideManager"),
            G = e("../../Channel/ChannelManager"),
            x = e("./MainUIPanel"),
            H = e("../Components/GameUnlockFingerListener"),
            F = e("../Components/RankMatchComponent"),
            j = e("../../../Util/TimeUtil"),
            W = e("../Components/IconTimeBtn"),
            z = cc._decorator,
            q = z.ccclass,
            V = z.property;
        (function(e) {
            e[e.Normal = 1] = "Normal", e[e.Boss = 2] = "Boss"
        })(l || (l = {})),
        function(e) {
            e[e.Detail = 1] = "Detail", e[e.QuickBattle = 2] = "QuickBattle"
        }(c || (c = {})),
        function(e) {
            e[e.Forbid = 0] = "Forbid", e[e.Normal = 1] = "Normal", e[e.Boss = 2] = "Boss", e[e.Battleing = 3] = "Battleing", e[e.Next = 4] = "Next", e[e.NotNext = 5] = "NotNext", e[e.BossBattleing = 6] = "BossBattleing"
        }(u || (u = {}));
        var Z = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Normal), t.LevelName = null, t.MainBg = null, t.ShowTime = null, t.BtnHangUpDetail = null, t.BtnQuickBattle = null, t.QuickBattleLabel = null, t.GuideTaskNode = null, t.BtnNormalFight = null, t.NormalFightBtnLabel = null, t.NormalFightInBattleAnim = null, t.NormalFightBg = null, t.Bubble = null, t.BubbleConent = null, t.BtnInfoTask = null, t.InfoTaskProgress = null, t.InfoTaskProgressLabel = null, t.InfoTaskBubble = null, t.InfoTaskBubbleContent = null, t.IdleBattleField = null, t.LevelPassBtnRoot = null, t.OnlineRewardBtnRoot = null, t.OuterMapComponent = null, t.FlyItemSprite = null, t.FlyEndPos = null, t.GoldLessSprite = null, t.GoldMoreSprite = null, t.GoldTopSprite = null, t.TopLeftSlider = null, t.TopRightSlider = null, t.WorldLevelBtn = null, t.WorldLevelBubble = null, t.WorldLeveBubbleTag = null, t.WorldLeveBubbleLeveValue = null, t.WorldLeveBubbleInfo = null, t.FingerNode = null, t.NormalFightBgMask = null, t.MainUITaskNode = null, t.RankArenaBtnRoot = null, t.AllianceBossButtonRoot = null, t.RED = new cc.Color(255, 75, 75), t.GREEN = new cc.Color(0, 255, 0), t.MAX_FORMATION_COUNT = 9, t._levelPassComponentPrefab = null, t._onlineRewardComponentPrefab = null, t._rankMatchBtnPrefab = null, t._adventureData = null, t._isNoNextChapter = !1, t._hangUpTimeSpan = 0, t._hangUpTimeUpperLimit = 0, t._hangUpTimeLowerLimit = 0, t._intelligenceTaskCountLimit = 0, t._isShowBubble = !1, t._flySprites = [], t._flyItemOffsetArray = [
                    [1, 20, 120],
                    [1, -20, 100],
                    [7, 60, 90],
                    [7, -40, 140],
                    [1, -20, 220],
                    [1, -70, 70],
                    [22, 0, 80],
                    [22, 10, 90],
                    [5, 0, 150],
                    [5, 100, 50],
                    [7, 44, 0],
                    [7, -20, -20],
                    [1, 52, 200],
                    [1, 80, 140],
                    [1, 95, 100],
                    [1, 36, 48],
                    [1, -54, 178],
                    [1, -80, 114],
                    [22, -10, 186],
                    [22, 35, 158],
                    [22, -40, 30]
                ], t._fakeBattlePostList = [], t._flyItemArray = {}, t._rewardBoxTween = null, t._addationVipHour = 0, t._jumpType = -1, t._idleTime = 0, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                p.Game.EventDispatcher.On(S.GameEventIds.ChangeDataDetail.Fmt(h.Adventure_Model._n_), this.RefreshView, this), p.Game.EventDispatcher.On(S.GameEventIds.ChangeDataDetail.Fmt(h.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), p.Game.EventDispatcher.On(k.EventKeys.EVENT_REFRESH_HANG_UP_REWARD_TIME, this.RefreshHangUpTimeLimit, this), p.Game.EventDispatcher.On(k.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), p.Game.EventDispatcher.On(k.EventKeys.EVENT_ENTER_NEXT_AREA, this.LoadMainBg, this), p.Game.EventDispatcher.On(k.EventKeys.EVENT_MAINBATTLEANI_REFRESH, this.RefreshBattleAni, this), p.Game.EventDispatcher.On(S.GameEventIds.ServerConnected, this.OnGameServerConnected, this), p.Game.EventDispatcher.On(S.GameEventIds.ChangeDataDetail.Fmt(h.GameModule_Model._n_), this.OnGameModuleChange, this), p.Game.EventDispatcher.On(S.GameEventIds.AddDataDetail.Fmt(h.GameModule_Model._n_), this.OnGameModuleChange, this), p.Game.EventDispatcher.On(S.GameEventIds.RemoveDataDetail.Fmt(h.GameModule_Model._n_), this.OnGameModuleChange, this), p.Game.EventDispatcher.On(S.GameEventIds.AddDataDetail.Fmt(h.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.On(S.GameEventIds.ChangeDataDetail.Fmt(h.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.On(S.GameEventIds.RemoveDataDetail.Fmt(h.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), cc.game.on(cc.game.EVENT_SHOW, this.ChangeFront, this), this._isShowBubble = !1
            }, t.prototype.onDisable = function() {
                this.unscheduleAllCallbacks(), p.Game.EventDispatcher.Off(S.GameEventIds.ChangeDataDetail.Fmt(h.Adventure_Model._n_), this.RefreshView), p.Game.EventDispatcher.Off(S.GameEventIds.ChangeDataDetail.Fmt(h.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), p.Game.EventDispatcher.Off(k.EventKeys.EVENT_REFRESH_HANG_UP_REWARD_TIME, this.RefreshHangUpTimeLimit, this), p.Game.EventDispatcher.Off(k.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), p.Game.EventDispatcher.Off(k.EventKeys.EVENT_ENTER_NEXT_AREA, this.LoadMainBg, this), p.Game.EventDispatcher.Off(k.EventKeys.EVENT_MAINBATTLEANI_REFRESH, this.RefreshBattleAni, this), p.Game.EventDispatcher.Off(S.GameEventIds.ServerConnected, this.OnGameServerConnected, this), p.Game.EventDispatcher.Off(S.GameEventIds.ChangeDataDetail.Fmt(h.GameModule_Model._n_), this.OnGameModuleChange, this), p.Game.EventDispatcher.Off(S.GameEventIds.AddDataDetail.Fmt(h.GameModule_Model._n_), this.OnGameModuleChange, this), p.Game.EventDispatcher.Off(S.GameEventIds.RemoveDataDetail.Fmt(h.GameModule_Model._n_), this.OnGameModuleChange, this), p.Game.EventDispatcher.Off(S.GameEventIds.AddDataDetail.Fmt(h.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.Off(S.GameEventIds.ChangeDataDetail.Fmt(h.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), p.Game.EventDispatcher.Off(S.GameEventIds.RemoveDataDetail.Fmt(h.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), cc.game.off(cc.game.EVENT_SHOW, this.ChangeFront, this)
            }, t.prototype.OnGameModuleChange = function(e) {
                for (var t in e) switch (e[t].Sid) {
                    case S.GameModuleType.RankMatch:
                        this.SetRankMatchBtn()
                }
            }, t.prototype.OnSimpleDataChage = function(e) {
                var t;
                for (var n in e)
                    if (parseInt(n) == I.UserDataKey.GameModulePopGuide) {
                        t = !0;
                        break
                    } t && this.ShowAllGameUnlockFinger()
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, o, r, i, a, l, c, u, p, d, h, f = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = T.default.Instance.GetItemPathById(I.CommonItemId.Coin), o = T.default.Instance.GetItemPathById(I.CommonItemId.Xp), r = T.default.Instance.GetItemPathById(I.CommonItemId.Intelligence), i = T.default.Instance.GetItemPathById(I.CommonItemId.XpWater), a = this.LoadDynamicAsset(n.levelPassComponentPath, cc.Prefab), l = this.LoadDynamicAsset(n.onlineRewardsComponentPath, cc.Prefab), c = this.LoadDynamicAsset(t, cc.SpriteFrame), u = this.LoadDynamicAsset(o, cc.SpriteFrame), p = this.LoadDynamicAsset(r, cc.SpriteFrame), d = this.LoadDynamicAsset(i, cc.SpriteFrame), h = this.LoadDynamicAsset(n.rankMatchComponentPath), [4, Promise.all([a, l, c, u, p, d, h]).then(function(e) {
                                    f._levelPassComponentPrefab = e[0], f._onlineRewardComponentPrefab = e[1], f._flySprites[0] = e[2], f._flySprites[1] = e[3], f._flySprites[2] = e[4], f._flySprites[3] = e[5], f._rankMatchBtnPrefab = e[6]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), this.ReloadUserData(), this.ReloadChapterConfig(), [4, this.LoadMainBg()];
                            case 1:
                                return t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.SetStaticLocalText = function() {
                this.QuickBattleLabel.string = "idleBattle_main_quickBattle".ToUILocale(), this.NormalFightBtnLabel.string = "idleBattle_main_beginChallenge".ToUILocale(), this.BubbleConent.string = "idleBattle_main_timeLimit".ToUILocale(), this.InfoTaskBubbleContent.string = "intelligence_prop_full".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnHangUpDetail.node.on("click", this.OnBtnHangUpDetailClick, this), this.BtnQuickBattle.node.on("click", this.OnBtnQuickBattleClick, this), this.BtnNormalFight.node.on("click", this.OnBattleClick, this), this.BtnInfoTask.node.on("click", this.OnBtnInfoTaskClick, this), this.WorldLevelBtn.node.on("click", this.OnShowWorldLevelBubble, this)
            }, t.prototype.InitData = function(e) {
                null != e[0] && (this._jumpType = e[0]), n.isUnlockBattleSpeed = m.DataCenter.Instance.GetDataById(h.GameModule_Model, I.GameModuleType.BattleSpeed), n.isUnlockBackgroundBattle = m.DataCenter.Instance.GetDataById(h.GameModule_Model, I.GameModuleType.BackgroundBattle), this._configNoviceIdleTime = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("NoviceTakeIdleTime")
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this.LoadGlobalSetting(), this.GetVipAddationData()
            }, t.prototype.MakeFlyItem = function(e, t) {
                switch (t) {
                    case I.CommonItemId.Coin:
                        this.FlyItemSprite.spriteFrame = this._flySprites[0];
                        break;
                    case I.CommonItemId.Xp:
                        this.FlyItemSprite.spriteFrame = this._flySprites[1];
                        break;
                    case I.CommonItemId.Intelligence:
                        this.FlyItemSprite.spriteFrame = this._flySprites[2];
                        break;
                    case I.CommonItemId.XpWater:
                        this.FlyItemSprite.spriteFrame = this._flySprites[3]
                }
                var n = v.PanelConfig.IdleBattleMainPanel.Id,
                    o = cc.instantiate(this.FlyItemSprite.node);
                return o.parent = this.node, o.active = !0, o.opacity = 0, {
                    Id: t,
                    FlyItem: o,
                    FlyTween: cc.tween(o).tag(n).delay(.3).to(.2, {
                        opacity: 255
                    }).to(.2 + .05 * e, {
                        x: this.FlyEndPos.x,
                        y: this.FlyEndPos.y
                    }, {
                        easing: "smooth"
                    })
                }
            }, t.prototype.CreateFlyItemArray = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function() {
                        for (e = [], this._flyItemArray[I.CommonItemId.Coin] = e, this.FlyItemSprite.spriteFrame = this._flySprites[0], r = 0; r < 20; r++) e.push(this.MakeFlyItem(r, I.CommonItemId.Coin));
                        for (t = [], this._flyItemArray[I.CommonItemId.Xp] = t, this.FlyItemSprite.spriteFrame = this._flySprites[1], r = 0; r < 10; r++) t.push(this.MakeFlyItem(r, I.CommonItemId.Xp));
                        for (n = [], this._flyItemArray[I.CommonItemId.Intelligence] = n, this.FlyItemSprite.spriteFrame = this._flySprites[2], r = 0; r < 20; r++) n.push(this.MakeFlyItem(r, I.CommonItemId.Intelligence));
                        for (o = [], this._flyItemArray[I.CommonItemId.XpWater] = o, this.FlyItemSprite.spriteFrame = this._flySprites[3], r = 0; r < 10; r++) o.push(this.MakeFlyItem(r, I.CommonItemId.XpWater));
                        return [2]
                    })
                })
            }, t.prototype.LoadGlobalSetting = function() {
                this._hangUpTimeUpperLimit = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureHangUpRewardTimeUpperLimit"), this._hangUpTimeLowerLimit = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureHangUpRewardTimeLowerLimit"), this._intelligenceTaskCountLimit = f.ConfigDataComponent.Instance.GetItemMax(I.CommonItemId.Intelligence)
            }, t.prototype.GetVipAddationData = function() {
                var e = T.default.GetModuleBonusByType(I.ModuleBonusType.HangUpRewardTime);
                this._addationVipHour = e
            }, t.prototype.DisPlay = function(t) {
                return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                switch (e.prototype.DisPlay.call(this, t), this.MainUITaskNode.active = T.default.Instance.IsGameModuleUnlock(S.GameModuleType.Task)[0], t || (this.CreateFlyItemArray(), this.CheckAllianceBossButton()), p.AudioManager.Instance.PlayNormalBattleMusic(), this.BindRedDot(), this.CheckIntelligencePropCount(), this.RefreshView(), this._battleBtnState != u.Next && this.LoadMainBg(), this.schedule(this.SetHangUpTimeShow, 1), this.LoadLeftComponent(), this.ShowFakeGoldSprite(), d.Game.EventDispatcher.Emit(k.EventKeys.EVENT_LEVELPASS_GETREWARD), this._jumpType) {
                                    case c.Detail:
                                        this.ShowHangUpDetailUI();
                                        break;
                                    case c.QuickBattle:
                                        d.UIManager.Instance.ShowUIPanel(v.PanelConfig.QuickBattlePanel.Path)
                                }
                                return this._jumpType = -1, this.IdleBattleField.StartPlay(this.GenIdleBattleLoot.bind(this)), this.CheckGameModule(), t ? [3, 2] : [4, this.SetSideButtons()];
                            case 1:
                                n.sent(), N.default.Instance.IdleStartCheck(), N.default.Instance.CheckActivitySideButtons(), n.label = 2;
                            case 2:
                                return this.ShowGuide(), this.ShowNoviceGuide(), this.ShowAllGameUnlockFinger(!1), [2]
                        }
                    })
                })
            }, t.prototype.SetFakeBattleRewardAnim = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l = this;
                    return s(this, function() {
                        if (this._fakeBattlePostList.length <= 0) return [2];
                        for (null == this._rewardBoxTween && (e = v.PanelConfig.IdleBattleMainPanel.Id, t = cc.tween(this.BtnHangUpDetail.node).tag(e).to(.05, {
                                scaleX: 1.3,
                                scaleY: 1.3
                            }), n = cc.tween(this.BtnHangUpDetail.node).tag(e).to(.05, {
                                scaleX: 1,
                                scaleY: 1
                            }), this._rewardBoxTween = cc.tween(this.BtnHangUpDetail.node).tag(e).sequence(t, n)), o = this._fakeBattlePostList.pop(), r = function(e) {
                                var t = i._flyItemOffsetArray[e][0],
                                    n = i.GetFlyItem(e, t),
                                    r = n.FlyItem;
                                r.x = o.x + i._flyItemOffsetArray[e][1], r.y = o.y + i._flyItemOffsetArray[e][2], r.opacity = 0, setTimeout(function() {
                                    l.isValid && l.SetFlyItem(n)
                                }, 2700), n.FlyTween.call(function() {
                                    n.FlyItem.opacity = 0, l._rewardBoxTween.start()
                                }).start()
                            }, i = this, a = 0; a < this._flyItemOffsetArray.length; a++) r(a);
                        return [2]
                    })
                })
            }, t.prototype.GetFlyItem = function(e, t) {
                return this._flyItemArray[t].length > 0 ? this._flyItemArray[t].pop() : this.MakeFlyItem(e, t)
            }, t.prototype.SetFlyItem = function(e) {
                e.FlyItem.opacity = 0, e.FlyTween.stop(), this._flyItemArray[e.Id].push(e)
            }, t.prototype.LoadLeftComponent = function() {
                var e;
                this.OnlineRewardBtnRoot.children.length <= 0 && ((e = cc.instantiate(this._onlineRewardComponentPrefab)).parent = this.OnlineRewardBtnRoot, A.RedDotManager.Instance.Bind(e, A.RedDotManager.Instance.RedDot.OnlineRewardNode)), T.default.Instance.IsGameModuleUnlock(I.GameModuleType.OnlineTime)[0] ? this.OnlineRewardBtnRoot.active = !0 : this.OnlineRewardBtnRoot.active = !1, this.LevelPassBtnRoot.children.length <= 0 && ((e = cc.instantiate(this._levelPassComponentPrefab)).parent = this.LevelPassBtnRoot, A.RedDotManager.Instance.Bind(e, A.RedDotManager.Instance.RedDot.LevelPassRewardNode)), T.default.Instance.IsGameModuleUnlock(I.GameModuleType.AdventureReward)[0] ? this.LevelPassBtnRoot.active = !0 : this.LevelPassBtnRoot.active = !1, this.SetRankMatchBtn()
            }, t.prototype.SetRankMatchBtn = function() {
                if (T.default.Instance.IsGameModuleUnlock(I.GameModuleType.RankMatch)[0]) {
                    if (this.RankArenaBtnRoot.active = !0, !this._rankMatchButton) {
                        var e = cc.instantiate(this._rankMatchBtnPrefab);
                        e.parent = this.RankArenaBtnRoot, this._rankMatchButton = e.getComponent(F.default)
                    }
                    this._rankMatchButton.Init()
                } else this.RankArenaBtnRoot.active = !1
            }, t.prototype.CheckAllianceBossButton = function() {
                var e = this;
                if (T.default.Instance.IsGameModuleUnlock(S.GameModuleType.AllianceBOSSBattle)[0] && T.default.Instance.IsGameModuleOpen(S.GameModuleType.AllianceBOSSBattle)) {
                    var t = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceBossLevel");
                    if (m.DataCenter.Instance.AllianceId && !(m.DataCenter.Instance.AllianceInfo.Level < t)) {
                        var n = _.RpcComponent.Instance.ServerTime,
                            o = f.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, I.LevelParamType.AllianceBOSSBattleTime),
                            r = j.TimeUtil.Get0ClockTs(n) + S.Etc.HourDuration * o.Data[0] + S.Etc.MinuteDuration * o.Data[1],
                            i = j.TimeUtil.Get0ClockTs(n) + S.Etc.HourDuration * o.Data[2] + S.Etc.MinuteDuration * o.Data[3];
                        n < r ? this.scheduleOnce(function() {
                            e.SetAllianceBossButton(i)
                        }, Math.floor((r - n) / 1e3)) : n < i ? this.SetAllianceBossButton(i) : this.AllianceBossButtonRoot.active = !1
                    }
                }
            }, t.prototype.SetAllianceBossButton = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return t = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceBossLevel"), !m.DataCenter.Instance.AllianceId || m.DataCenter.Instance.AllianceInfo.Level < t ? [2] : (this.AllianceBossButtonRoot.active = !0, this._allianceBossButton ? [3, 2] : (n = this.LoadDynamicAsset("GameUnLockPopPanel/Png/Icon/2009", cc.SpriteFrame), o = this.LoadDynamicAsset(v.BundlePath.ICON_TIME_BUTTON, cc.Prefab), [4, Promise.all([n, o]).then(function(e) {
                                    if (!r.isValid) return p.AssetsManager.Instance.UnloadAsset(e[0]), void p.AssetsManager.Instance.UnloadAsset(e[1]);
                                    var t = cc.instantiate(e[1]);
                                    t.parent = r.AllianceBossButtonRoot;
                                    var n = t.getComponent(W.default);
                                    r._allianceBossButton = n, n.SetNameLabel("AllianceBoss".ToUILocale()), n.LoadIcon(e[0]), n.Icon.node.height = 120, n.Icon.node.width = 120, t.on(cc.Node.EventType.TOUCH_END, r.OnAllianceBossButtonClick, r)
                                })]));
                            case 1:
                                i.sent(), i.label = 2;
                            case 2:
                                return this._allianceBossButton.SetTimeLabel(e), this.scheduleOnce(function() {
                                    r.AllianceBossButtonRoot.active = !1
                                }, Math.floor((e - _.RpcComponent.Instance.ServerTime) / 1e3)), [2]
                        }
                    })
                })
            }, t.prototype.OnAllianceBossButtonClick = function() {
                var e = new h.Req_Alliance_GetMemeberList;
                _.RpcComponent.Instance.Call(e, function(e) {
                    var t, n = [];
                    e.MemberList.forEach(function(e) {
                        e.AlliancePost == S.AlliancePostType.Leader ? t = e.Uid : e.AlliancePost == S.AlliancePostType.ViceLeader && n.push(e.Uid)
                    }), p.UIManager.Instance.ShowUIPanel(v.PanelConfig.AllianceBossPanel.Path, t, n)
                })
            }, t.prototype.CheckIntelligencePropCount = function() {
                m.DataCenter.Instance.GetItemCount(I.CommonItemId.Intelligence) >= f.ConfigDataComponent.Instance.GetItemMax(I.CommonItemId.Intelligence) ? (this.InfoTaskBubble.active = !0, b.UIUtlity.AnimationItemsByType1([this.InfoTaskBubble])) : this.InfoTaskBubble.active = !1
            }, t.prototype.BindRedDot = function() {
                A.RedDotManager.Instance.Bind(this.BtnQuickBattle.node, A.RedDotManager.Instance.RedDot.ShowQuickBattlePanelBtnNode, 3, 0), A.RedDotManager.Instance.Bind(this.BtnInfoTask.node, A.RedDotManager.Instance.RedDot.IntelligenceBtnNode, -15, 0), A.RedDotManager.Instance.Bind(this.BtnHangUpDetail.node, A.RedDotManager.Instance.RedDot.HangUPFreeGiftPack, -15, 15)
            }, t.prototype.RefreshView = function() {
                this.ReloadUserData(), this.ReloadChapterConfig(), this.SetHangUpTimeShow(), this.SetChallengeBtnState(), this.InitResetTime(), this.SetInfoTaskProgress()
            }, t.prototype.SetInfoTaskProgress = function() {
                var e = m.DataCenter.Instance.GetItemCount(I.CommonItemId.Intelligence);
                this.InfoTaskProgress.progress = e / this._intelligenceTaskCountLimit, this.InfoTaskProgressLabel.string = e.toString()
            }, t.prototype.GetCacheLevel = function() {
                var e = 0,
                    t = cc.sys.localStorage.getItem(this.GetCacheKey());
                return null != t && (e = P.AppUtil.ToInt(t)), e
            }, t.prototype.SetChallengeBtnState = function() {
                var e = this.GetCacheLevel();
                if (m.DataCenter.Instance.GetIntData(S.UserDataKey.PlayerLevel) < this._currAdventureConfig.Level) return this.SetNormalFightInBattleAnim(u.Forbid), void(this.NormalFightBtnLabel.string = "idleBattle_main_playerLevel_limit".ToUILocale().Fmt(this._currAdventureConfig.Level));
                m.DataCenter.Instance.GetIntData(I.UserDataKey.MainLineProgress) <= e || 0 == e ? this._currAdventureConfig.Type == l.Normal ? D.BattleManager.Instance.IsInBattle(S.MapType.MainLine) ? (this.SetNormalFightInBattleAnim(u.Battleing), this.NormalFightBtnLabel.string = "idlebattle_inBattle".ToUILocale()) : (this.SetNormalFightInBattleAnim(u.Normal), this.NormalFightBtnLabel.string = "idleBattle_main_beginChallenge".ToUILocale()) : D.BattleManager.Instance.IsInBattle(S.MapType.MainLine) ? (this.SetNormalFightInBattleAnim(u.BossBattleing), this.NormalFightBtnLabel.string = "idlebattle_inBattle".ToUILocale()) : (this.SetNormalFightInBattleAnim(u.Boss), this.NormalFightBtnLabel.string = "idleBattle_main_bossChallenge".ToUILocale()) : this._isNoNextChapter ? (this.SetNormalFightInBattleAnim(u.NotNext), this.NormalFightBtnLabel.string = "idleBattle_main_no_next".ToUILocale()) : (this.SetNormalFightInBattleAnim(u.Next), this.NormalFightBtnLabel.string = "idleBattle_main_nextChapter".ToUILocale())
            }, t.prototype.SetNormalFightInBattleAnim = function(e) {
                if (this._battleBtnState != e) switch (this._battleBtnState = e, this.NormalFightBgMask.active = !1, this._battleBtnState) {
                    case u.Normal:
                        this.NormalFightBg.active = !1, this.NormalFightInBattleAnim.node.active = !0, this.NormalFightInBattleAnim.setAnimation(0, "standby", !0);
                        break;
                    case u.Battleing:
                        this.NormalFightBg.active = !1, this.NormalFightInBattleAnim.node.active = !0, this.NormalFightInBattleAnim.setAnimation(0, "attack", !0);
                        break;
                    case u.Boss:
                        this.NormalFightBg.active = !1, this.NormalFightInBattleAnim.node.active = !0, this.NormalFightInBattleAnim.setAnimation(0, "Boss_standby", !0);
                        break;
                    case u.BossBattleing:
                        this.NormalFightBg.active = !1, this.NormalFightInBattleAnim.node.active = !0, this.NormalFightInBattleAnim.setAnimation(0, "Boss_attack", !0);
                        break;
                    case u.Forbid:
                        this.NormalFightBgMask.active = !0, this.NormalFightBg.active = !0, this.NormalFightInBattleAnim.node.active = !1;
                        break;
                    case u.Next:
                    case u.NotNext:
                        this.NormalFightBg.active = !0, this.NormalFightInBattleAnim.node.active = !1
                }
            }, t.prototype.OnUserSimpleDataChange = function(e) {
                for (var t in e) switch (parseInt(t)) {
                    case I.UserDataKey.MainLineProgress:
                        this.SetLevelName();
                        break;
                    case I.UserDataKey.RankMatchClassificationInfo:
                        this.SetRankMatchBtn()
                }
            }, t.prototype.RefreshHangUpTimeLimit = function() {
                this.GetVipAddationData(), this.schedule(this.SetHangUpTimeShow, 1)
            }, t.prototype.SetLevelName = function() {
                var e = T.default.Instance.GetCurrentChapter(),
                    t = f.ConfigDataComponent.Instance.GetConfigById(y.AdventureChapter_Config, e[1]),
                    n = "<outline width = 3 color = #202434>" + e[0] + " <color = #FED94A>" + e[1] + "-" + e[2] + " (" + e[2] + "/" + t.MapIds.length + ")</color></outline>";
                this.LevelName.Init(n)
            }, t.prototype.ReloadUserData = function() {
                this._adventureData = m.DataCenter.Instance.GetDataById(h.Adventure_Model, 1), this._oldFormation = m.DataCenter.Instance.GetDataById(h.UserFormation_Model, w.FormationIdType.MainLine)
            }, t.prototype.GetCurrMapLevelId = function() {
                var e = m.DataCenter.Instance.GetIntData(I.UserDataKey.MainLineProgress),
                    t = this.GetCacheLevel();
                return e > t && 0 != t ? t : e
            }, t.prototype.ReloadChapterConfig = function() {
                var e = this.GetCurrMapLevelId(),
                    t = m.DataCenter.Instance.GetIntData(I.UserDataKey.MainLineProgress),
                    n = f.ConfigDataComponent.Instance.GetArrayConfig(y.AdventureChapter_Config),
                    o = n[n.length - 1],
                    r = o.MapIds[o.MapIds.length - 1],
                    i = n.length;
                t >= r && (this._isNoNextChapter = !0, e = r, cc.sys.localStorage.setItem(this.GetCacheKey(), r.toString()));
                for (var a = 0; a < i; a++) {
                    var s = n[a].MapIds[0],
                        l = n[a].MapIds[n[a].MapIds.length - 1];
                    if (e >= s && e <= l) {
                        this._currChapterConfig = n[a];
                        break
                    }
                }
                this._currAdventureConfig = f.ConfigDataComponent.Instance.GetConfigById(y.MapAdventure_Config, t)
            }, t.prototype.LoadMainBg = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.SetLevelName(), this.OuterMapComponent.Init(), e = "BattleBg/" + this._currChapterConfig.Bg, null != this.MainBg.spriteFrame && this.MainBg.spriteFrame.name == e ? [3, 2] : (d.EZLog.Log("\u52a8\u6001\u52a0\u8f7d"), t = this.MainBg, [4, this.LoadDynamicAsset(e, cc.SpriteFrame)]);
                            case 1:
                                t.spriteFrame = n.sent(), n.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.InitResetTime = function() {
                0 == n.IdleBattleResetTime && (n.IdleBattleResetTime = this._adventureData.ReceiveTime)
            }, t.prototype.SetHangUpTimeShow = function() {
                this.ShowTime.string = this.GetHangUpTimeStr()
            }, t.prototype.GetHangUpTimeStr = function() {
                return this._hangUpTimeSpan = this.GetHangUpTimeSpan(), this._hangUpTimeSpan > (this._hangUpTimeUpperLimit + 60 * this._addationVipHour) * C.Etc.MinuteDuration ? (this.unschedule(this.SetHangUpTimeShow), this._hangUpTimeSpan = (this._hangUpTimeUpperLimit + 60 * this._addationVipHour) * C.Etc.MinuteDuration, this._isShowBubble || (this._isShowBubble = !0, this.Bubble.active = !0, b.UIUtlity.AnimationItemsByType1([this.Bubble])), this.ShowTime.node.color = cc.color().fromHEX("#FF5B5B")) : (this.Bubble.active = !1, this.ShowTime.node.color = cc.color().fromHEX("#33FF8E")), this._hangUpTimeSpan.FmtRemainTime()
            }, t.prototype.GetHangUpTimeSpan = function() {
                var e = _.RpcComponent.Instance.ServerTime,
                    t = this._adventureData.ReceiveTime;
                return Math.max(e - t, 0)
            }, t.prototype.ShowFakeGoldSprite = function() {
                this._hangUpTimeSpan = this.GetHangUpTimeSpan();
                var e = (this._hangUpTimeUpperLimit + 60 * this._addationVipHour) * C.Etc.MinuteDuration;
                this._hangUpTimeSpan < e / 3 ? (this.GoldMoreSprite.node.active = !1, this.GoldLessSprite.node.active = !1) : this._hangUpTimeSpan >= e / 3 && this._hangUpTimeSpan < e / 3 * 2 ? (this.GoldMoreSprite.node.active = !1, this.GoldLessSprite.node.active = !0) : (this.GoldMoreSprite.node.active = !0, this.GoldLessSprite.node.active = !1), this.GoldTopSprite.node.active = this.GoldMoreSprite.node.active || this.GoldLessSprite.node.active
            }, t.prototype.GetResetTimeSpan = function() {
                var e = _.RpcComponent.Instance.ServerTime;
                return Math.max(e - this._adventureData.ReceiveTime, 0)
            }, t.prototype.RequestGetHangUpReward = function() {
                var e = new h.Req_Map_AdventureGetHangUpReward;
                _.RpcComponent.Instance.Call(e, this.ResponseGetHangeUpReward.bind(this))
            }, t.prototype.ResponseGetHangeUpReward = function(e) {
                this._hangUpRewardData = [];
                for (var t = 0; t < e.ActivityRewards.length; t++) this._hangUpRewardData.push(e.ActivityRewards[t]);
                for (t = 0; t < e.Rewards.length; t++) this._hangUpRewardData.push(e.Rewards[t]);
                this._hangUpRewardData.length > 0 ? d.UIManager.Instance.ShowUIPanel(v.PanelConfig.IdleBattleDetailPanel.Path, this._hangUpRewardData) : b.UIUtlity.ShowFloatingHint("idleBattle_main_noReward".ToUILocale())
            }, t.prototype.OnBtnHangUpDetailClick = function() {
                this.ShowHangUpDetailUI()
            }, t.prototype.ShowHangUpDetailUI = function() {
                this.GetResetTimeSpan() < this._hangUpTimeLowerLimit * C.Etc.SecondDuration ? b.UIUtlity.ShowFloatingHint("idleBattle_main_noReward".ToUILocale()) : this.RequestGetHangUpReward()
            }, t.prototype.OnBtnQuickBattleClick = function() {
                d.UIManager.Instance.ShowUIPanel(v.PanelConfig.QuickBattlePanel.Path)
            }, t.prototype.OnBtnNextChapter = function() {
                var e = this._currChapterConfig.Id,
                    t = L.ConfigCacheComponent.Instance.GetAreaIdByChapterId(e);
                this.ResetCache(), this.RefreshView();
                var n = this._currChapterConfig.Id,
                    o = L.ConfigCacheComponent.Instance.GetAreaIdByChapterId(n);
                t != o && p.UIManager.Instance.ShowUIPanel(v.PanelConfig.WorldMapPanel.Path, o), b.UIUtlity.ShowFloatingHint("enterNewChapter".ToUILocale())
            }, t.prototype.OnBtnGetMoreExpClicked = function() {
                d.UIManager.Instance.ShowUIPanel(v.PanelConfig.IdleBattleGetWayPanel.Path)
            }, t.prototype.OnBtnTaskClick = function() {
                p.UIManager.Instance.ShowUIPanel(v.PanelConfig.TaskPanel.Path)
            }, t.prototype.OnBtnInfoTaskClick = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, p.UIManager.Instance.ShowUIPanel(v.PanelConfig.IntelligencePanel.Path)];
                            case 1:
                                return t.sent(), U.default.instance.CheckNeedRequestGameModule(I.GameModuleType.IntelligenceTask) && ((e = new h.Req_Player_CompleteGameModuleGuide).Id = I.GameModuleType.IntelligenceTask, _.RpcComponent.Instance.Call(e, function() {
                                    p.Game.EventDispatcher.Emit(k.EventKeys.EVENT_REFRESH_GUIDE_MODULE)
                                })), [2]
                        }
                    })
                })
            }, t.prototype.OnBtnWantStrongClick = function() {
                p.UIManager.Instance.ShowUIPanel(v.PanelConfig.IWantStrongPanel.Path)
            }, t.prototype.SetCache = function() {
                var e = this._currChapterConfig.MapIds[this._currChapterConfig.MapIds.length - 1];
                cc.sys.localStorage.setItem(this.GetCacheKey(), e.toString())
            }, t.prototype.ResetCache = function() {
                cc.sys.localStorage.setItem(this.GetCacheKey(), "0")
            }, t.prototype.GetCacheKey = function() {
                return n.Cache_Key_Prefeix + "_" + m.DataCenter.Instance.Uid
            }, t.prototype.IsIntelligenceOverFlow = function() {
                for (var e = 0, t = this._currAdventureConfig.PassRewards, n = 0; n < t.length; n++)
                    if (t[n].Items[0] == I.CommonItemId.Intelligence) {
                        e = t[n].Items[1];
                        break
                    } return d.EZLog.Log("\u60c5\u62a5\u503c\u83b7\u5f97---\x3e" + e), !!T.default.Instance.IsIntelligencePropOverFlow(e)
            }, t.prototype.OnBattleClick = function() {
                switch (this._battleBtnState) {
                    case u.Forbid:
                        this.OnBtnGetMoreExpClicked();
                        break;
                    case u.Normal:
                    case u.Battleing:
                    case u.Boss:
                    case u.BossBattleing:
                        this.OnFightBtnClick();
                        break;
                    case u.Next:
                        this.OnBtnNextChapter();
                        break;
                    case u.NotNext:
                        b.UIUtlity.ShowFloatingHint("idleBattle_main_no_next_hint".ToUILocale())
                }
            }, t.prototype.OnFightBtnClick = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return this.SetCache(), e = m.DataCenter.Instance.GetIntData(I.UserDataKey.MainLineProgress), this.IsIntelligenceOverFlow() ? (t = I.CommonItemId.Intelligence.ToItemName(), o = "function_adventure".ToUILocale(), r = "intelligence_tittle".ToUILocale(), i = "intelligence_hint_overflow".ToUILocale().Fmt(o, t, r, t), [4, b.UIUtlity.ShowHintPanel("", i, "", null, "", function() {
                                    n.StartBattle(e)
                                })]) : [3, 2];
                            case 1:
                                return a.sent().DisableMaskClose(), [3, 3];
                            case 2:
                                n.StartBattle(e), a.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.GetExtendFormation = function() {
                for (var e = [], t = this._oldFormation.FormationType, n = f.ConfigDataComponent.Instance.GetConfigById(y.FormationType_Config, t).Data, o = [0, 0, 0, 0, 0, 0, 0, 0, 0], r = 0; r < this._oldFormation.HeroIds.length; r++)
                    if (this._oldFormation.HeroIds[r] > 0) {
                        var i = m.DataCenter.Instance.GetDataById(h.UserHero_Model, this._oldFormation.HeroIds[r]);
                        e.push(i.HeroId)
                    } else e.push(0);
                for (r = 0; r < this.MAX_FORMATION_COUNT - this._oldFormation.HeroIds.length; r++) e.push(0);
                for (r = 0; r < n.length; r++) o[n[r] - 1] = e[r];
                return o
            }, t.prototype.FlyNumberCallback = function(e) {
                if (this.isValid) switch (e.type) {
                    case R.BattleStatusMessageType.FlyingNumberDamage:
                        this._fakeBattlePostList.push(new cc.Vec2(e.value, e.value2)), this.SetFakeBattleRewardAnim()
                }
            }, t.prototype.GenIdleBattleLoot = function(e) {
                this.isValid && (this._fakeBattlePostList.push(e), this.SetFakeBattleRewardAnim())
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), this.IdleBattleField.StopPlay(), this.IdleBattleField.Dispose(), this.unscheduleAllCallbacks(), cc.Tween.stopAllByTag(v.PanelConfig.IdleBattleMainPanel.Id)
            }, t.prototype.CheckGameModule = function() {
                var e = T.default.Instance.IsGameModuleUnlock(S.GameModuleType.IntelligenceTask)[0];
                this.BtnInfoTask.node.active = e
            }, t.prototype.ShowGuide = function() {
                if (M.default.Instance.IsInGuide) switch (M.default.Instance.CurrentStep) {
                    case 4101:
                    case 13101:
                    case 15101:
                        M.default.Instance.ShowGuide();
                        break;
                    case 4102:
                    case 4203:
                        M.default.Instance.ShowGuide(this.LevelPassBtnRoot.children[0]);
                        break;
                    case 10103:
                        M.default.Instance.ShowGuide(this.BtnQuickBattle.node);
                        break;
                    case 13102:
                    case 13203:
                        M.default.Instance.ShowGuide(this.BtnHangUpDetail.node);
                        break;
                    case 3103:
                    case 8103:
                    case 11101:
                    case 12101:
                    case 12202:
                    case 14101:
                    case 14202:
                        M.default.Instance.ShowGuide(this.BtnNormalFight.node);
                        break;
                    case 15203:
                        var e = p.UIManager.Instance.GetUIPanel(v.PanelConfig.MainUIPanel.Path).node.getComponent(x.default);
                        M.default.Instance.ShowGuide(e.PowerBeStrong.node)
                }
            }, t.prototype.ShowNoviceGuide = function() {
                this._idleTime = _.RpcComponent.Instance.ServerTime;
                for (var e = m.DataCenter.Instance.GetIntData(S.UserDataKey.PlayerLevel), t = f.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, I.LevelParamType.NoviceIdleAdventures).Data2, n = !1, o = 0; o < t.length; o++) {
                    var r = t[o],
                        i = r.Items[0],
                        a = r.Items[1];
                    if (this._currAdventureConfig.Id >= i && this._currAdventureConfig.Id <= a) {
                        n = !0;
                        break
                    }
                }
                this.unschedule(this.CountDownIdleTime), this.FingerNode.active = !1, n && e >= this._currAdventureConfig.Level && !D.BattleManager.Instance.IsInBattle(S.MapType.MainLine) && this.schedule(this.CountDownIdleTime, 1)
            }, t.prototype.CountDownIdleTime = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return _.RpcComponent.Instance.ServerTime - this._idleTime >= this._configNoviceIdleTime * C.Etc.SecondDuration ? this._fingerPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("ItemsComponent/Finger", cc.Prefab)]) : [3, 3];
                            case 1:
                                if (e._fingerPrefab = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._fingerPrefab), [2];
                                cc.instantiate(this._fingerPrefab).parent = this.FingerNode, t.label = 2;
                            case 2:
                                this.FingerNode.active = !0, this.unschedule(this.CountDownIdleTime), t.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.RefreshBattleAni = function(e) {
                if (e == I.MapType.MainLine) {
                    var t = 0,
                        n = cc.sys.localStorage.getItem("ChapterLastLevel_" + m.DataCenter.Instance.Uid);
                    null != n && (t = P.AppUtil.ToInt(n)), m.DataCenter.Instance.GetIntData(I.UserDataKey.MainLineProgress) > t && 0 != t && (this.ResetCache(), this.ReloadChapterConfig()), this.SetChallengeBtnState()
                }
            }, t.InitBattle = function() {
                var e = S.MapType.MainLine;
                p.Game.EventDispatcher.Only(S.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, this), p.Game.EventDispatcher.Only(S.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, this), p.Game.EventDispatcher.Only(S.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, this), p.Game.EventDispatcher.Only(S.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, this)
            }, t.StartBattle = function(e) {
                D.BattleManager.Instance.ResumePlayBattle(S.MapType.MainLine) || (T.default.Instance.SetOnlineStartBattleTempData(S.MapType.MainLine), d.UIManager.Instance.ShowUIPanel(v.PanelConfig.BattleFormationPanel.Path, function(e) {
                    n.isNeedInitFakeBattle = !1, n.RequestAdventureChallenge(e)
                }, [e]))
            }, t.RestartBattle = function(e) {
                var t = e.Reports[0].MapId;
                n.StartBattle(t)
            }, t.RequestAdventureChallenge = function(e, t) {
                void 0 === t && (t = !1);
                var n = new h.Req_Map_AdventureChallenge;
                n.MapLevelId = m.DataCenter.Instance.GetIntData(I.UserDataKey.MainLineProgress), n.Formations = e, _.RpcComponent.Instance.Call(n, function(e) {
                    t || d.UIManager.Instance.CloseUIPanel(v.PanelConfig.IdleBattleMainPanel.Path), D.BattleManager.Instance.StartPlay(e.Report, null, t), d.Game.EventDispatcher.Emit(k.EventKeys.EVENT_MAINBATTLEANI_REFRESH, S.MapType.MainLine)
                }, null, M.default.Instance.CurrentGroup)
            }, t.SettleBattle = function(e) {
                var t = this,
                    o = m.DataCenter.Instance.GetIntData(S.UserDataKey.PlayerLevel),
                    r = m.DataCenter.Instance.GetItemCount(I.CommonItemId.Xp),
                    i = new h.Req_Map_BattleSettlement;
                i.MapType = I.MapType.MainLine, _.RpcComponent.Instance.Call(i, function(i) {
                    if (d.EZLog.Log("\u6311\u6218\u5730\u56feid---\x3e" + i.MapId), d.EZLog.Log("\u65e7\u7684\u73a9\u5bb6\u7b49\u7ea7---\x3e" + i.PlayerLevel), e.SettleParams = [o, r], 1 == i.Result) {
                        t.WinResult(e);
                        var a = m.DataCenter.Instance.GetIntData(I.UserDataKey.MainLineProgress);
                        G.default.Instance.PostMessage(G.ActionType.MapMileStone, a)
                    } else {
                        var s = n.settlement_fail_prefab_path;
                        D.BattleManager.Instance.ShowSettlePanel(v.PanelConfig.SettlementFailPanel.Path, s, e), T.default.Instance.ShowBattleRewardPanel(I.MapType.MainLine)
                    }
                    d.Game.EventDispatcher.Emit(k.EventKeys.EVENT_MAINBATTLEANI_REFRESH, S.MapType.MainLine)
                }, null, M.default.Instance.CurrentGroup)
            }, t.WinResult = function(e) {
                if (T.default.Instance.CheckAutoBattleUnlock(I.GameModuleType.MainLineAutoBattle, S.MapType.MainLine) && e.InBackground) {
                    for (var t = f.ConfigDataComponent.Instance.GetConfigById(y.MapAdventure_Config, e.Reports[0].MapId), o = [], r = 0; r < t.PassRewards.length; r++) {
                        var i = t.PassRewards[r].Items[0],
                            a = t.PassRewards[r].Items[1];
                        o.push({
                            ItemId: i,
                            Count: a
                        })
                    }
                    var s = m.DataCenter.Instance.GetIntData(I.UserDataKey.MainLineProgress),
                        l = f.ConfigDataComponent.Instance.GetConfigById(y.MapAdventure_Config, s);
                    if (m.DataCenter.Instance.GetIntData(I.UserDataKey.PlayerLevel) >= l.Level && L.ConfigCacheComponent.Instance.GetAreaIdByMapId(s)) return m.DataCenter.Instance.SetAutoBattleRewards(I.MapType.MainLine, o), void n.RequestAdventureChallenge([], !0)
                }
                var c = n.settlement_win_prefab_path;
                D.BattleManager.Instance.ShowSettlePanel(v.PanelConfig.SettlementWinPanel.Path, c, e), T.default.Instance.ShowBattleRewardPanel(I.MapType.MainLine)
            }, t.CancelBattle = function() {
                var e = new h.Req_Map_CancelChallenge;
                e.MapType = I.MapType.MainLine, _.RpcComponent.Instance.Call(e, function() {
                    T.default.Instance.ShowBattleRewardPanel(I.MapType.MainLine), d.Game.EventDispatcher.Emit(k.EventKeys.EVENT_MAINBATTLEANI_REFRESH, S.MapType.MainLine)
                })
            }, t.OnBattleSwitchToBackground = function(e) {
                p.Game.EventDispatcher.Emit(k.EventKeys.EVENT_BATTLESWITCHTOBACKGROUND, e)
            }, t.prototype.SetSideButtons = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                for (e = [], t = [], n = f.ConfigDataComponent.Instance.GetArrayConfig(y.MainUISliderButtons_Config), o = 0; o < n.length; o++)
                                    if (n[o].IsShowInIdleBattle) switch ((r = n[o]).IdleBattlePosition) {
                                        case 1:
                                            e.push(r);
                                            break;
                                        case 2:
                                            t.push(r)
                                    }
                                return e.sort(function(e, t) {
                                    return e.IdleBattleSortNumber - t.IdleBattleSortNumber
                                }), t.sort(function(e, t) {
                                    return e.IdleBattleSortNumber - t.IdleBattleSortNumber
                                }), e.length > 0 ? [4, this.TopLeftSlider.Init(e, 1, 1)] : [3, 2];
                            case 1:
                                return i.sent(), this.OnlineRewardBtnRoot.setSiblingIndex(e.length - 1), [3, 4];
                            case 2:
                                return [4, this.TopLeftSlider.Init([], 1, 1)];
                            case 3:
                                i.sent(), this.OnlineRewardBtnRoot.setSiblingIndex(0), i.label = 4;
                            case 4:
                                return t.length > 0 ? [4, this.TopRightSlider.Init(t, 2, 1)] : [3, 6];
                            case 5:
                                return i.sent(), [3, 8];
                            case 6:
                                return [4, this.TopRightSlider.Init([], 2, 1)];
                            case 7:
                                i.sent(), i.label = 8;
                            case 8:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnShowWorldLevelBubble = function() {
                if (this.WorldLevelBubble.active = !this.WorldLevelBubble.active, this.WorldLevelBubble.active) {
                    this.WorldLeveBubbleTag.string = "worldLevel".ToUILocale(), this.WorldLeveBubbleLeveValue.string = "Lv." + m.DataCenter.Instance.WorldLevel;
                    var e = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("ZoneWorldLevelUserCount");
                    this.WorldLeveBubbleInfo.string = "worldLevelHint".ToUILocale().Fmt(e)
                }
            }, t.prototype.OnGameServerConnected = function() {
                this.ChangeFront()
            }, t.prototype.ChangeFront = function() {
                A.RedDotManager.Instance.RefreshRedDotNode(A.RedDotManager.Instance.RedDot.OnlineRewardNode)
            }, t.prototype.onDestroy = function() {
                this.TopLeftSlider.Destory(), this.TopRightSlider.Destory(), p.Game.EventDispatcher.Emit(k.EventKeys.EVENT_REFRESH_GUIDE_MODULE_ACTIVE, 2, !0)
            }, t.prototype.ShowAllGameUnlockFinger = function(e) {
                void 0 === e && (e = !0), this.ShowGameUnlockFinger(S.GameModuleType.IntelligenceTask, e)
            }, t.prototype.ShowGameUnlockFinger = function(e, t) {
                if (void 0 === t && (t = !0), T.default.Instance.IsGameModuleOpen(e) && T.default.Instance.IsGameModuleUnlock(e)[0]) {
                    var n = L.ConfigCacheComponent.Instance.GetGameUnlockPopByGameMoudelId(e);
                    if (n) {
                        var o;
                        switch (n.GameModuleId) {
                            case S.GameModuleType.IntelligenceTask:
                                o = this.BtnInfoTask.node
                        }
                        var r = t ? 2 : 0;
                        H.default.Instance.SetFinger(o, n.Id, 0, 0, r)
                    }
                }
            }, t.isNeedInitFakeBattle = !0, t.IdleBattleResetTime = 0, t.levelPassComponentPath = "LevelPassRewardPanel/Component/LevelPassComponent", t.onlineRewardsComponentPath = "OnlineRewardsPanel/Component/OnlineRewardsComponent", t.rankMatchComponentPath = "IdleBattlePanel/RankMatchComponent", t.settlement_win_prefab_path = "IdleBattlePanel/AdventureSettlementComponent", t.settlement_fail_prefab_path = "SettlementPanel/CommonFailSettlementComponent", t.Cache_Key_Prefeix = "ChapterLastLevel", i([V(g.CustomRichText)], t.prototype, "LevelName", void 0), i([V(cc.Sprite)], t.prototype, "MainBg", void 0), i([V(cc.Label)], t.prototype, "ShowTime", void 0), i([V(cc.Button)], t.prototype, "BtnHangUpDetail", void 0), i([V(cc.Button)], t.prototype, "BtnQuickBattle", void 0), i([V(cc.Label)], t.prototype, "QuickBattleLabel", void 0), i([V(cc.Node)], t.prototype, "GuideTaskNode", void 0), i([V(cc.Button)], t.prototype, "BtnNormalFight", void 0), i([V(cc.Label)], t.prototype, "NormalFightBtnLabel", void 0), i([V(sp.Skeleton)], t.prototype, "NormalFightInBattleAnim", void 0), i([V(cc.Node)], t.prototype, "NormalFightBg", void 0), i([V(cc.Node)], t.prototype, "Bubble", void 0), i([V(cc.Label)], t.prototype, "BubbleConent", void 0), i([V(cc.Button)], t.prototype, "BtnInfoTask", void 0), i([V(cc.ProgressBar)], t.prototype, "InfoTaskProgress", void 0), i([V(cc.Label)], t.prototype, "InfoTaskProgressLabel", void 0), i([V(cc.Node)], t.prototype, "InfoTaskBubble", void 0), i([V(cc.Label)], t.prototype, "InfoTaskBubbleContent", void 0), i([V(B.default)], t.prototype, "IdleBattleField", void 0), i([V(cc.Node)], t.prototype, "LevelPassBtnRoot", void 0), i([V(cc.Node)], t.prototype, "OnlineRewardBtnRoot", void 0), i([V(O.default)], t.prototype, "OuterMapComponent", void 0), i([V(cc.Sprite)], t.prototype, "FlyItemSprite", void 0), i([V(cc.Node)], t.prototype, "FlyEndPos", void 0), i([V(cc.Sprite)], t.prototype, "GoldLessSprite", void 0), i([V(cc.Sprite)], t.prototype, "GoldMoreSprite", void 0), i([V(cc.Sprite)], t.prototype, "GoldTopSprite", void 0), i([V(E.default)], t.prototype, "TopLeftSlider", void 0), i([V(E.default)], t.prototype, "TopRightSlider", void 0), i([V(cc.Button)], t.prototype, "WorldLevelBtn", void 0), i([V(cc.Node)], t.prototype, "WorldLevelBubble", void 0), i([V(cc.Label)], t.prototype, "WorldLeveBubbleTag", void 0), i([V(cc.Label)], t.prototype, "WorldLeveBubbleLeveValue", void 0), i([V(cc.Label)], t.prototype, "WorldLeveBubbleInfo", void 0), i([V(cc.Node)], t.prototype, "FingerNode", void 0), i([V(cc.Node)], t.prototype, "NormalFightBgMask", void 0), i([V(cc.Node)], t.prototype, "MainUITaskNode", void 0), i([V(cc.Node)], t.prototype, "RankArenaBtnRoot", void 0), i([V(cc.Node)], t.prototype, "AllianceBossButtonRoot", void 0), n = i([q], t)
        }(p.BaseUIFullScreenPanel);
        n.default = Z, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameDataChecker": "GameDataChecker",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Battle/IdleBattleField": "IdleBattleField",
        "../Components/BattlePlayerCommonDefines": "BattlePlayerCommonDefines",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/GameUnlockFingerListener": "GameUnlockFingerListener",
        "../Components/IconTimeBtn": "IconTimeBtn",
        "../Components/OuterMapComponent": "OuterMapComponent",
        "../Components/RankMatchComponent": "RankMatchComponent",
        "../Components/VerticalButtonSlider": "VerticalButtonSlider",
        "./MainUIPanel": "MainUIPanel"
    }],
    IdleBattleRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a4bf3KtnZBC5odFxeII+LCn", "IdleBattleRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/DataCenter"),
            p = e("../../../Consts/Consts"),
            d = e("../../../Consts/Consts"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/ConfigData/ConfigDataComponent"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../Components/CustomRichText"),
            m = e("../../Components/RpcComponent"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Components/DisplayRewardsComponent"),
            C = e("./MainUIPanel"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../../Auxiliary/GuideManager"),
            S = e("../Components/HeadComponent"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../Components/CustomProgressBar"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !0, !1, !0), t.ShowTime = null, t.LevelLabel = null, t.ExpLabel = null, t.ExpProgress = null, t.Content = null, t.RewardsTag = null, t.VipTag = null, t.MaskHintNode = null, t.HeadIconNode = null, t._hangTimeUpperLimit = 0, t._adventureQuickBattleDuration = 0, t._rewardComponent = null, t
                }
                return r(t, e), t.prototype.onDisable = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(I.BundlePath.HeadComponent)];
                                case 1:
                                    return t._userHeaderPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText()
                }, t.prototype.SetStaticLocalText = function() {
                    this.RewardsTag.string = "idleBattle_reward_tag".ToUILocale(), this.VipTag.string = "idleBattle_vip_tag vip".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    this._oldPlayerLevel = e[0], this._oldExp = e[1], this._oldReceiveTime = e[2], this._rewardData = e[3], this._currPlayerLevel = u.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel), this._currExp = u.DataCenter.Instance.GetItemCount(d.CommonItemId.Xp), y.EZLog.Log("\u7b49\u7ea7:" + this._oldPlayerLevel + "---\x3e" + this._currPlayerLevel), y.EZLog.Log("\u7ecf\u9a8c:" + this._oldExp + "---\x3e" + this._currExp)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadConfigData(), this.LoadGlobalSetting()
                }, t.prototype.LoadGlobalSetting = function() {
                    this._hangTimeUpperLimit = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureHangUpRewardTimeUpperLimit"), this._adventureQuickBattleDuration = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureQuickBattleDuration")
                }, t.prototype.LoadConfigData = function() {
                    this._playerLevelConfig = f.ConfigDataComponent.Instance.GetArrayConfig(h.PlayerLevel_Config)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetLevelLabel(), this.SetTimeLabel(), this.SetExpShow(), this.RenderContent(), this.SetUserIcon(), this.ShowGuide()
                }, t.prototype.SetLevelLabel = function() {
                    this.LevelLabel.string = "Lv." + this._currPlayerLevel
                }, t.prototype.SetTimeLabel = function() {
                    this.ShowTime.Init(this.GetHangUpTimeStr())
                }, t.prototype.GetHangUpTimeStr = function() {
                    var e, t = m.RpcComponent.Instance.ServerTime;
                    if (this._oldReceiveTime > 0) {
                        e = t - this._oldReceiveTime;
                        var n = w.default.GetModuleBonusByType(d.ModuleBonusType.HangUpRewardTime);
                        e = Math.min(e, (this._hangTimeUpperLimit + 60 * n) * d.Etc.MinuteDuration)
                    } else e = this._adventureQuickBattleDuration * d.Etc.MinuteDuration;
                    return "idleBattle_reward_time".ToUILocale().Fmt(e.FmtRemainTime())
                }, t.prototype.SetExpShow = function() {
                    var e = this,
                        t = this._oldPlayerLevel,
                        n = cc.director.getDeltaTime(),
                        o = this._oldExp,
                        r = this._currExp;
                    t = Math.min(t, this._playerLevelConfig.length - 1), this.schedule(function() {
                        var i = 0;
                        t > 0 && (i = e._playerLevelConfig[t - 1].Xp);
                        var a = e._playerLevelConfig[t].Xp - i;
                        if (o < r ? (o += Math.ceil((e._currExp - e._oldExp) * n * 3), o = Math.min(o, r), e.ExpProgress.progress = (o - i) / a, e.ExpLabel.string = Math.min(o - i, a) + "/" + a, e.ExpProgress.progress >= 1 && t++) : (o = Math.min(o, r), e.ExpProgress.progress = (o - i) / a, e.ExpLabel.string = o - i + "/" + a, e.unscheduleAllCallbacks()), t >= e._playerLevelConfig.length) return e.ExpProgress.progress = 1, e.ExpLabel.string = Math.min(o - i, a) + "/" + a, void e.unscheduleAllCallbacks()
                    }, n)
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(I.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (e._displayRewardPrefab = n.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return null == this._rewardComponent && (t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(_.DisplayRewardsComponent), this.Content.addChild(this._rewardComponent.node), this._rewardComponent.Init(this._rewardData, this.Content.height)), [2]
                            }
                        })
                    })
                }, t.prototype.SetUserIcon = function() {
                    var e = cc.instantiate(this._userHeaderPrefab);
                    e.setParent(this.HeadIconNode);
                    var t = e.getComponent(S.default),
                        n = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon),
                        o = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame),
                        r = u.DataCenter.Instance.GetIntData(p.UserDataKey.Title);
                    t.SetUI(n, o, r)
                }, t.prototype.Close = function() {
                    C.default.isNeedPlayRewardAnim++, 2 == C.default.isNeedPlayRewardAnim && c.Game.EventDispatcher.Emit(v.EventKeys.EVENT_FLY_ITEM), e.prototype.Close.call(this), this._rewardComponent.Dispose(), this.Content.destroyAllChildren()
                }, t.prototype.ShowGuide = function() {
                    if (b.default.Instance.IsInGuide) switch (b.default.Instance.CurrentStep) {
                        case 10105:
                        case 13104:
                            b.default.Instance.ShowGuide(this.MaskHintNode)
                    }
                }, i([R(g.CustomRichText)], t.prototype, "ShowTime", void 0), i([R(cc.Label)], t.prototype, "LevelLabel", void 0), i([R(cc.Label)], t.prototype, "ExpLabel", void 0), i([R(P.default)], t.prototype, "ExpProgress", void 0), i([R(cc.Node)], t.prototype, "Content", void 0), i([R(cc.Label)], t.prototype, "RewardsTag", void 0), i([R(cc.Label)], t.prototype, "VipTag", void 0), i([R(cc.Node)], t.prototype, "MaskHintNode", void 0), i([R(cc.Node)], t.prototype, "HeadIconNode", void 0), i([T], t)
            }(l.BaseUIPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/DisplayRewardsComponent": "DisplayRewardsComponent",
        "../Components/HeadComponent": "HeadComponent",
        "./MainUIPanel": "MainUIPanel"
    }],
    IdleVerticalButtons: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "91b30WvSepPzqCtBAjPqkrk", "IdleVerticalButtons");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Components/Components"),
            f = e("./IconTimeBtn"),
            y = e("../../Components/Components"),
            g = e("../../../Consts/Etc"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../Panel/SummonHeroPanel"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.Normal = 1] = "Normal", e[e.Time = 2] = "Time", e[e.GM = 3] = "GM"
        })(l || (l = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Container = null, t._loadedAtlas = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(m.EventKeys.EVENT_SET_VERTICAL_BUTTON, this.OnSetButton, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(m.EventKeys.EVENT_SET_VERTICAL_BUTTON, this.OnSetButton, this)
            }, t.prototype.Init = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this._currentConfigs = e.concat(), this._sortPos = t, this._currentConfigs.sort(function(e, t) {
                                    return e.SortNumber - t.SortNumber
                                }), this._iconBtnPrefab ? [3, 3] : (n = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ICON_TIME_BUTTON)]);
                            case 1:
                                return n._iconBtnPrefab = r.sent(), [4, this.InstantiateButtons()];
                            case 2:
                                r.sent(), r.label = 3;
                            case 3:
                                return this.BindRedDot(), this.scheduleOnce(function() {
                                    o.RefreshNodeHeight()
                                }, .1), [2]
                        }
                    })
                })
            }, t.prototype.InstantiateButtons = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                e = 0, o.label = 1;
                            case 1:
                                if (!(e < this._currentConfigs.length)) return [3, 4];
                                if ((t = this._currentConfigs[e]).Type != l.Normal) return [3, 3];
                                switch (n = void 0, t.PanelId) {
                                    case u.PanelConfig.MallGiftPackPanel.Id:
                                        n = this.IsHideHeroGiftButton
                                }
                                return null != n && n(t.PanelId) ? [3, 3] : [4, this.DoInstantiateJob(t)];
                            case 2:
                                o.sent(), o.label = 3;
                            case 3:
                                return e++, [3, 1];
                            case 4:
                                return this.Container.updateLayout(), [2]
                        }
                    })
                })
            }, t.prototype.DoInstantiateJob = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return (t = cc.instantiate(this._iconBtnPrefab)).name = e.PanelId.toString(), t.setParent(this.Container.node), 1 == this._sortPos && this.Container.node.childrenCount - 2 >= 0 && t.setSiblingIndex(this.Container.node.childrenCount - 2), n = "MainUISliderButtons_name_" + e.Id, o = h.ConfigDataComponent.Instance.GetLocale(n), (r = t.getComponent(f.default)).SetNameLabel(o), i = d.UIUtlity.GetIconPath(e.Icon), [4, c.AssetsManager.Instance.LoadAsset(i, cc.SpriteFrame)];
                            case 1:
                                if (a = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(a), [2];
                                switch (this._loadedAtlas.push(a), r.LoadIcon(a), e.SpineEffect.length > 0 && r.SetSpineEffect(e.SpineEffect), e.PanelId) {
                                    case u.PanelConfig.SummonHeroPanel.Id:
                                        this._infiniteSummonNode = t;
                                        break;
                                    case u.PanelConfig.LetterFromDeveloperPanel.Id:
                                        this._letterdeveloperNode = t;
                                        break;
                                    case u.PanelConfig.LimitTimePurchasePanel.Id:
                                        this._giftPackNode = t
                                }
                                return e.PanelId == u.PanelConfig.SummonHeroPanel.Id && (this._infiniteSummonNode = t), t.on("click", this.OnBtnClick, this), [2, t]
                        }
                    })
                })
            }, t.prototype.RefreshNodeHeight = function() {
                this.Container.updateLayout()
            }, t.prototype.OnBtnClick = function(e) {
                var t = Number.parseInt(e.target.name);
                switch (t) {
                    case u.PanelConfig.MallGiftPackPanel.Id:
                        c.UIManager.Instance.ShowUIPanel(u.PanelConfig.MallNewPanel.Path, [C.MallPageType.GoodGift, C.GiftPackType.HeroGift]);
                        break;
                    case u.PanelConfig.SummonHeroPanel.Id:
                        c.UIManager.Instance.ShowUIPanel(u.PanelConfig.SummonHeroPanel.Path, v.SummonMode.Infinite);
                        break;
                    case u.PanelConfig.LetterFromDeveloperPanel.Id:
                        c.UIManager.Instance.ShowUIPanel(u.PanelConfig.LetterFromDeveloperPanel.Path);
                        break;
                    case u.PanelConfig.LimitTimePurchasePanel.Id:
                        var n = this.GetActivityFrame(C.ActivityType.Frame1);
                        if (null == n) return !1;
                        for (var o = 0; o < n.length; o++) {
                            var r = n[o];
                            y.DataCenter.Instance.ActivityConfigs[r].Common.Type == C.ActivityType.GiftPack && (t = y.DataCenter.Instance.ActivityConfigs[r]._id)
                        }
                        c.UIManager.Instance.ShowUIPanel(u.PanelConfig.LimitTimePurchasePanel.Path, t);
                        break;
                    default:
                        d.UIUtlity.ShowPanelById(t)
                }
            }, t.prototype.OnSetButton = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r, i, a, c, u, d;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                if (16 != e && 23 != e && 25 != e && 26 != e && 27 != e) return [3, 5];
                                if (!(n = y.ConfigDataComponent.Instance.GetConfigById(p.MainUISliderButtons_Config, e)) || n.Position != this._sortPos) return [2];
                                for (o = n.PanelId.toString(), r = void 0, i = 0; i < this.Container.node.childrenCount; i++)
                                    if ((a = this.Container.node.children[i]).name == o) {
                                        r = a.getComponent(f.default);
                                        break
                                    } return t > 0 ? r ? [3, 2] : [4, this.DoInstantiateJob(n)] : [3, 3];
                            case 1:
                                c = s.sent(), r = c.getComponent(f.default), s.label = 2;
                            case 2:
                                switch (r.node.active = !0, n.Type == l.Time && r.SetTimeLabel(t), u = void 0, d = -50, e) {
                                    case 25:
                                        u = I.RedDotManager.Instance.RedDot.IdleInfiniteSummonNode, d = -80;
                                        break;
                                    case 26:
                                        u = I.RedDotManager.Instance.RedDot.IdleLetterDeveloperNode, d = -80;
                                        break;
                                    case 27:
                                        u = I.RedDotManager.Instance.RedDot.IdleLimitTimePurchaseNode, d = -80
                                }
                                return null != u && (u.NeedRefresh = !0, I.RedDotManager.Instance.Bind(r.node, u, 0, d)), [3, 4];
                            case 3:
                                r && (r.HideTimeLabel(), r.node.destroy()), s.label = 4;
                            case 4:
                                this.RefreshNodeHeight(), s.label = 5;
                            case 5:
                                return [2]
                        }
                    })
                })
            }, t.prototype.BindRedDot = function() {
                this._infiniteSummonNode && I.RedDotManager.Instance.Bind(this._infiniteSummonNode, I.RedDotManager.Instance.RedDot.IdleInfiniteSummonNode, 0, -50), this._letterdeveloperNode && I.RedDotManager.Instance.Bind(this._letterdeveloperNode, I.RedDotManager.Instance.RedDot.IdleLetterDeveloperNode, 0, -50), this._giftPackNode && I.RedDotManager.Instance.Bind(this._giftPackNode, I.RedDotManager.Instance.RedDot.IdleLimitTimePurchaseNode, 0, -50)
            }, t.prototype.IsHideHeroGiftButton = function(e) {
                if (e != u.PanelConfig.MallGiftPackPanel.Id) return !1;
                if (_.default.Instance.IsGameModuleUnlock(C.GameModuleType.HeroGift)[0]) {
                    var t = h.DataCenter.Instance.GetIntData(C.UserDataKey.HeroGiftFirstTime),
                        n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("MainUIHeroGiftContinousDays");
                    if (t > 0 && Math.floor((h.RpcComponent.Instance.ServerTime - t) / g.Etc.DayDuration) < n) return !1
                }
                return !0
            }, t.prototype.GetActivityFrame = function(e) {
                var t = [];
                if (null == y.DataCenter.Instance.ActivityFrameMap) return null;
                for (var n in y.DataCenter.Instance.ActivityFrameMap) y.DataCenter.Instance.ActivityConfigs[n].Common.Type == e && (t = y.DataCenter.Instance.ActivityFrameMap[n]);
                return t
            }, t.prototype.onDestroy = function() {
                this._loadedAtlas.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([w(cc.Layout)], t.prototype, "Container", void 0), i([S], t)
        }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/SummonHeroPanel": "SummonHeroPanel",
        "./IconTimeBtn": "IconTimeBtn"
    }],
    IllustratedListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "21507hEf8hHJa0whCPNIve/", "IllustratedListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = e("../Components/ItemClickComponent"),
            l = e("../Components/ItemComponent"),
            c = e("./GemTipPanel"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.GemContainer = null, t.AttrNodes = [], t.AttrSprites = [], t.AttrTypes = [], t.AttrValues = [], t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    var n = this;
                    if (null == this._item) {
                        var o = cc.instantiate(t);
                        o.setParent(this.GemContainer), this._item = o.getComponent(l.ItemComponent), this._item.getComponent(s.default).enabled = !1
                    }
                    this._item.Init({
                        ItemId: e.ItemId
                    }), this._item.SetGemAttrSprite(e), this.Title.string = e.ItemId.ToItemName();
                    var r = c.default.GetGemDatas(e);
                    this.AttrNodes.forEach(function(e) {
                        e.active = !1
                    }), r.forEach(function(e, t) {
                        if (n.AttrNodes[t]) {
                            var o = a.default.GetHeroAttribute(e.attrId, e.value, !0);
                            n.AttrNodes[t].active = !0, n.AttrSprites[t].spriteFrame = o.Icon, n.AttrTypes[t].string = o.Name, n.AttrValues[t].string = "+" + o.Value
                        }
                    })
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "GemContainer", void 0), i([d(cc.Node)], t.prototype, "AttrNodes", void 0), i([d(cc.Sprite)], t.prototype, "AttrSprites", void 0), i([d(cc.Label)], t.prototype, "AttrTypes", void 0), i([d(cc.Label)], t.prototype, "AttrValues", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./GemTipPanel": "GemTipPanel"
    }],
    IndependentManualBoxPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dfcf1AMF8NEcJ2eKRkU1w+h", "IndependentManualBoxPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../Consts/Consts"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Components/Components"),
            y = e("../Components/ItemComponent"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Independent, !1), t.BgNode = null, t.CloseBtn = null, t.UseBtn = null, t.UseBtnLabel = null, t.ItemContainer = null, t.CloseFullGreen = null, t._isShowAllUseItem = !1, t
                }
                return r(t, e), t.prototype.start = function() {
                    p.Game.EventDispatcher.On(c.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, this.OnSetManualBoxActive, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), [4, Promise.all([t]).then(function(e) {
                                        n._itemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(c.EventKeys.EVENT_SELECT_REWARD_BOX, this.OnSelectRewardBox, this), p.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(c.EventKeys.EVENT_SELECT_REWARD_BOX, this.OnSelectRewardBox, this), p.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDestroy = function() {
                    p.Game.EventDispatcher.Off(c.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, this.OnSetManualBoxActive, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.UseBtnLabel.string = "common_use_now".ToUILocale(), this.CloseBtn.node.on("click", this.OnClickClose, this), this.UseBtn.node.on("click", this.OnUse, this), this.BgNode.on(cc.Node.EventType.TOUCH_MOVE, this.OnMoving, this)
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this), !this._itemComponent) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.ItemContainer), this._itemComponent = n.getComponent(y.ItemComponent)
                    }
                    this._boxs = [];
                    var o = {},
                        r = t[0];
                    t[2] && (this._isShowAllUseItem = !0), this._canUseItemTypes = [l.ConsumeItemType.ManualBox, l.ConsumeItemType.FixedBox, l.ConsumeItemType.RandomBox];
                    for (var i = 0, a = r; i < a.length; i++)
                        if (!((c = a[i]).Count <= 0)) {
                            var s = f.ConfigDataComponent.Instance.GetConfigById(g.ItemConsume_Config, c.ItemId);
                            if (this._isShowAllUseItem) {
                                if (!s || !this._canUseItemTypes.includes(s.SubType)) continue
                            } else if (!s || s.SubType != l.ConsumeItemType.ManualBox) continue;
                            null == o[c.ItemId] && (o[c.ItemId] = 0), o[c.ItemId] += c.Count
                        } for (var c in o) this._boxs.push([parseInt(c), o[c]]);
                    this.node.active = null == t[1] || t[1]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.scheduleOnce(function() {
                        var e = d.UIManager.Instance.GetUIPanel(u.PanelConfig.IndependentManualBoxPanel.Path);
                        e && e.Close()
                    }, 5), this.RefreshItem()
                }, t.prototype.AddData = function(e) {
                    for (var t = 0, n = e; t < n.length; t++) {
                        var o = n[t];
                        if (!(o.Count <= 0)) {
                            var r = f.ConfigDataComponent.Instance.GetConfigById(g.ItemConsume_Config, o.ItemId);
                            if (this._isShowAllUseItem) {
                                if (!r || !this._canUseItemTypes.includes(r.SubType)) continue
                            } else if (!r || r.SubType != l.ConsumeItemType.ManualBox) continue;
                            for (var i = !1, a = 0, s = this._boxs; a < s.length; a++) {
                                var c = s[a];
                                c[0] == o.ItemId && (i = !0, c[1] += o.Count)
                            }
                            i || this._boxs.push([o.ItemId, o.Count])
                        }
                    }
                    this.RefreshItem()
                }, t.prototype.RefreshItem = function() {
                    var e = this._boxs[0];
                    if (e) {
                        this._itemComponent.Init({
                            ItemId: e[0],
                            Count: e[1]
                        }, y.ItemComponentType.ItemCommon);
                        var t = f.ConfigDataComponent.Instance.GetConfigById(g.ItemBase_Config, e[0]);
                        this._itemComponent.SetNameAndActive(e[0].ToItemName(), !0), this._itemComponent.SetNameColorAndOutline(h.UIUtlity.GetLabelColorByQuality(t.Quality), null)
                    } else this.Close()
                }, t.prototype.OnSelectRewardBox = function() {
                    this.Close()
                }, t.prototype.OnSetManualBoxActive = function(e) {
                    this.node.active = e
                }, t.prototype.OnMoving = function(e) {
                    var t = e.getDelta(),
                        n = this.BgNode.x + t.x,
                        o = this.BgNode.y + t.y,
                        r = -h.UIUtlity.DESIGN_SCREEN_HEIGHT / 2,
                        i = h.UIUtlity.DESIGN_SCREEN_HEIGHT / 2 - 390;
                    n > 540 && (n = 540), o > i && (o = i), n < -260 && (n = -260), o < r && (o = r), this.BgNode.setPosition(cc.v2(n, o))
                }, t.prototype.OnClickItem = function(e, t) {
                    var n = this;
                    if (t == this._itemComponent.node) {
                        var o = this._boxs[0];
                        if (o) {
                            p.UIManager.Instance.CloseUIPanel(u.PanelConfig.ItemTipPanel.Path);
                            var r = o[0];
                            h.UIUtlity.ShowItemTip(r, t).then(function(e) {
                                n._tipsPanel && n._tipsPanel.Close(), n._tipsPanel = e
                            })
                        } else this.Close()
                    }
                }, t.prototype.OnUse = function() {
                    var e = this._boxs[0];
                    e ? d.UIManager.Instance.GetUIPanel(u.PanelConfig.ItemInfoPanel.Path) || d.UIManager.Instance.GetUIPanel(u.PanelConfig.SelectRewardBoxPanel.Path) || (p.UIManager.Instance.CloseUIPanel(u.PanelConfig.DisplayRewardsPanel.Path), p.UIManager.Instance.CloseUIPanel(u.PanelConfig.ItemTipPanel.Path), this._tipsPanel && this._tipsPanel.Close(), d.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemInfoPanel.Path, e[0])) : this.Close()
                }, t.prototype.Close = function() {
                    p.UIManager.Instance.CloseUIPanel(u.PanelConfig.ItemTipPanel.Path), this._tipsPanel && this._tipsPanel.Close(), e.prototype.Close.call(this)
                }, t.prototype.OnClickClose = function() {
                    this._boxs.shift(), this._boxs.length > 0 ? this.RefreshItem() : (p.UIManager.Instance.CloseUIPanel(u.PanelConfig.ItemTipPanel.Path), this._tipsPanel && this._tipsPanel.Close(), this.Close())
                }, i([_(cc.Node)], t.prototype, "BgNode", void 0), i([_(cc.Button)], t.prototype, "CloseBtn", void 0), i([_(cc.Button)], t.prototype, "UseBtn", void 0), i([_(cc.Label)], t.prototype, "UseBtnLabel", void 0), i([_(cc.Node)], t.prototype, "ItemContainer", void 0), i([_(cc.Button)], t.prototype, "CloseFullGreen", void 0), i([I], t)
            }(p.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    InfiniteGiftPackItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "374fd6WfR9PaZ3OlSbJTDWx", "InfiniteGiftPackItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/ItemComponent"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Channel/ChannelManager"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../../ShareConsts/EnumType"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Bgs = [], t.ItemNode = null, t.PriceLabel = null, t.BuyButton = null, t.BuyButtonLabel = null, t.VipGetLabel = null, t.VipLabel = null, t.DiscountNode = null, t.DiscountLabel = null, t.DescLabel = null, t.ReceiveButton = null, t.ReceiveLockNode = null, t.ReceiveLabel = null, t.HasBuyNode = null, t.RecivedNode = null, t.DiomandNode = null, t.DiomandLabel = null, t._itemNodes = [], t._itemPrefab = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BuyButton.node.off("click", this.OnBuyButtonClick, this), this.ReceiveButton.node.off("click", this.OnReceiveButtonClick, this)
                }, t.prototype.initData = function(e) {
                    this._data = e, this.InitUI(), this.initNodes(), this.SetInfo(), this.SetItemRewards()
                }, t.prototype.InitUI = function() {
                    this.ReceiveLabel.string = "infiniteGift_free_receive".ToUILocale(), this.VipGetLabel.string = "task_get_score_tag".ToUILocale(), this.DescLabel.string = "mall_giftPack_superValue".ToUILocale()
                }, t.prototype.initNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this.BuyButton.node.active = !1, this.ReceiveButton.node.active = !1, this.ReceiveLockNode.active = !1, this.HasBuyNode.active = !1, this.RecivedNode.active = !1
                }, t.prototype.SetInfo = function() {
                    var e = this,
                        t = null,
                        n = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data.configData._id);
                    if (t = this._data.isPay ? this._data.giftData : this._data.configData._Packs.find(function(t) {
                            return t.Id == e._data.giftId
                        })) {
                        if (this._data.isPay) {
                            if (this.BuyButton.node.active = 0 == this._data.state || 3 == this._data.state, this.ReceiveButton.node.active = !1, this.ReceiveLockNode.active = !1, this.HasBuyNode.active = 2 == this._data.state, this.RecivedNode.active = !1, null == t.Discount || t.Discount <= 0) this.DiscountNode.active = !1;
                            else {
                                var o = n.Packs[t.Id] && n.Packs[t.Id].Items[0] ? n.Packs[t.Id].Items[0] : 0;
                                this.DiscountNode.active = o < t.LimitCount
                            }
                            this.DiscountLabel.string = t.Discount + "%", this.DescLabel.string = "mall_giftPack_superValue".ToUILocale(), this.BuyButton.node.active && (t.PayId ? (this.DiomandNode.active = !1, this.BuyButtonLabel.node.active = !0, this.VipLabel.node.parent.active = g.default.Instance.ExchangeMoney(t.Money) > 0, this.VipLabel.node.parent.active ? (this.BuyButtonLabel.string = g.default.Instance.CurrencySymbol + g.default.Instance.ExchangeMoney(t.Money), this.BuyButtonLabel.node.y = 16, this.VipLabel.string = "x" + t.VipPoint) : (this.BuyButtonLabel.string = "shop_buyFree".ToUILocale(), this.BuyButtonLabel.node.y = 0)) : (this.VipLabel.node.parent.active = !1, this.BuyButtonLabel.node.active = !1, this.DiomandNode.active = !0, this.DiomandLabel.string = 0 == t.Money ? "shop_buyFree".ToUILocale() : t.Money.toString()))
                        } else this.BuyButton.node.active = !1, this.ReceiveButton.node.active = this._data.state < 2, this.ReceiveLockNode.active = 0 == this._data.state, this.HasBuyNode.active = !1, this.RecivedNode.active = 2 == this._data.state;
                        this.PriceLabel.node.parent.active = t.ShowMoney && t.ShowMoney > 0, this.BuyButton.node.y = t.ShowMoney && t.ShowMoney > 0 ? -20.25 : 0, this.ReceiveButton.node.y = t.ShowMoney && t.ShowMoney > 0 ? -20.25 : 0, this.HasBuyNode.y = t.ShowMoney && t.ShowMoney > 0 ? -20.25 : 0, this.RecivedNode.y = t.ShowMoney && t.ShowMoney > 0 ? -20.25 : 0, t.ShowMoney && (t.PayId ? this.PriceLabel.string = "firstCharge_originalPrice".ToUILocale() + g.default.Instance.CurrencySymbol + g.default.Instance.ExchangeMoney(t.ShowMoney) : this.PriceLabel.string = "firstCharge_originalPrice".ToUILocale() + t.ShowMoney), this.Bg.spriteFrame = 1 == this._data.isPay ? this.Bgs[0] : this.Bgs[1], 1 != this._data.state || this._data.isPay || m.RedDotManager.Instance.BindNodeByResult(this.ReceiveButton.node, m.RedDotManager.Instance.InstanceRedDot.InfiniteGiftPackItemNode, 1 == this._data.state)
                    }
                }, t.prototype.SetItemRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return (this._data.isPay ? this._data.giftData.Items : this._data.reward).forEach(function(e, n) {
                                        var o = e.Items[0],
                                            r = e.Items[1];
                                        if (!t._itemNodes[n]) {
                                            var i = cc.instantiate(t._itemPrefab);
                                            t._itemNodes[n] = i, t._itemNodes[n].parent = t.ItemNode
                                        }
                                        t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(h.ItemComponent).Init({
                                            ItemId: o,
                                            Count: r
                                        }, h.ItemComponentType.ItemCommon)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.OnBuyButtonClick = function() {
                    if (this._data.isPay)
                        if (3 != this._data.state)
                            if (this._data.giftData.PayId) g.default.Instance.Pay(this._data.giftData.Id, this._data.configData._id);
                            else if (c.DataCenter.Instance.IsItemEnough(I.CommonItemId.Diamond, this._data.giftData.Money)) {
                        var e = new u.Req_Pay_ByDiamond;
                        e.Id = this._data.giftData.Id, e.ActivityId = this._data.configData._id, c.RpcComponent.Instance.Call(e, function(e) {
                            null == e ? d.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale()) : d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [I.MallPageType.DiamondShop, I.GiftPackType.BuyDiamond]);
                    else d.UIUtlity.ShowFloatingHint("infiniteGift_get_free_first".ToUILocale())
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = this;
                    if (!this._data.isPay) {
                        var t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data.configData._id);
                        if (t.Packs[this._data.giftId] && t.Packs[this._data.giftId].Items[0] && t.Packs[this._data.giftId].Items[0]) {
                            if (2 == this._data.index) {
                                var n = !1;
                                if (t.Int2DArray.forEach(function(t) {
                                        t.Items[0] == e._data.giftId && (n = e.GetBit(t.Items[1], 0))
                                    }), !n) return void d.UIUtlity.ShowFloatingHint("infiniteGift_receive_front".ToUILocale())
                            }
                            var o = new u.Req_Activity_InfiniteGiftPackReward;
                            o.ActivityId = this._data.configData._id, o.PackId = this._data.giftId, o.Index = this._data.index, c.RpcComponent.Instance.Call(o, function(e) {
                                d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            })
                        } else d.UIUtlity.ShowFloatingHint("infiniteGift_limit_buy_gift".ToUILocale())
                    }
                }, t.prototype.GetBit = function(e, t) {
                    return 1 == (e >> t & 1)
                }, t.prototype.onDestroy = function() {
                    f.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemNodes = []
                }, i([v(cc.Sprite)], t.prototype, "Bg", void 0), i([v(cc.SpriteFrame)], t.prototype, "Bgs", void 0), i([v(cc.Node)], t.prototype, "ItemNode", void 0), i([v(cc.Label)], t.prototype, "PriceLabel", void 0), i([v(cc.Button)], t.prototype, "BuyButton", void 0), i([v(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([v(cc.Label)], t.prototype, "VipGetLabel", void 0), i([v(cc.Label)], t.prototype, "VipLabel", void 0), i([v(cc.Node)], t.prototype, "DiscountNode", void 0), i([v(cc.Label)], t.prototype, "DiscountLabel", void 0), i([v(cc.Label)], t.prototype, "DescLabel", void 0), i([v(cc.Button)], t.prototype, "ReceiveButton", void 0), i([v(cc.Node)], t.prototype, "ReceiveLockNode", void 0), i([v(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([v(cc.Node)], t.prototype, "HasBuyNode", void 0), i([v(cc.Node)], t.prototype, "RecivedNode", void 0), i([v(cc.Node)], t.prototype, "DiomandNode", void 0), i([v(cc.Label)], t.prototype, "DiomandLabel", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    InfiniteGiftPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9695ftXJaVBPbVz3lR3cmt/", "InfiniteGiftPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("./InfiniteGiftPackItem"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../../Consts/Etc"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GameRecord"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/EventKeys"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.ActivityTimeLabel = null, t.TimeLabel = null, t.Cells = [], t.RefreshTimeNode = null, t.RefreshTimeLabel = null, t.RefreshLabel = null, t.RefreshButton = null, t.RefreshButtonLabel = null, t.RefreshRichText = null, t._deadLine = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.RefreshButton.node.on("click", this.OnRefreshButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.RefreshButton.node.off("click", this.OnRefreshButtonClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ActivityTimeLabel.string = "gift_remainderTime".ToUILocale(), this.RefreshTimeLabel.string = "element_timeLbl".ToUILocale(), this.RefreshButtonLabel.string = "refresh".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    n && (this._configData = l.DataCenter.Instance.ActivityConfigs[n], this._deadLine = u.default.Instance.ComputeDeadTime(this._configData.Common))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._model = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._configData._id), this._model.Int2DArray && this._model.Int2DArray.length || (d.UIUtlity.ShowFloatingHint("infiniteGift_no_data".ToUILocale()), this.Close()), h.default.SetItem(h.GameRecordDefine.InfiniteGiftPackRedDot, f.RpcComponent.Instance.ServerTime), a.Game.EventDispatcher.Emit(y.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._configData._id), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetActivityTime(), this.SetRefreshTime(), this.SetTimes(), this.SetGifts()
                }, t.prototype.SetActivityTime = function() {
                    this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1)
                }, t.prototype.SetRefreshTime = function() {
                    this.CountDownRefreshTime();
                    var e = l.RpcComponent.Instance.ServerTime - this._model.IntValue;
                    this._configData.CustomPart.Minute * p.Etc.MinuteDuration - e > 0 && this.schedule(this.CountDownRefreshTime, 1)
                }, t.prototype.CountDownActivityTime = function() {
                    var e = this._deadLine - l.RpcComponent.Instance.ServerTime;
                    e < 0 && a.UIManager.Instance.BackUIPanel(), this.TimeLabel.string = u.default.ActivityTimeLeftFormat(e)
                }, t.prototype.CountDownRefreshTime = function() {
                    var e = l.RpcComponent.Instance.ServerTime - this._model.IntValue,
                        t = this._configData.CustomPart.Minute * p.Etc.MinuteDuration - e;
                    if (this.RefreshTimeNode.active = t > 0, t > 0) this.CheckGiftIsAllBuy() ? (this.RefreshTimeNode.active = !1, this.unschedule(this.CountDownRefreshTime)) : (this.RefreshTimeNode.active = !0, this.RefreshLabel.string = u.default.ActivityTimeLeftFormat(t));
                    else {
                        var n = this._configData.CustomPart.Count;
                        (this._model.IntArray && this._model.IntArray[0] ? this._model.IntArray[0] : 0) < n && d.UIUtlity.OffNodeGray(this.RefreshButton.node)
                    }
                }, t.prototype.SetGifts = function() {
                    var e = this.GetCurThreeGiftInfo();
                    this.Cells.forEach(function(t, n) {
                        e[n] ? (t.initData(e[n]), t.node.active = !0) : t.node.active = !1
                    })
                }, t.prototype.SetTimes = function() {
                    var e = this._configData.CustomPart.Count,
                        t = this._model.IntArray && this._model.IntArray[0] ? this._model.IntArray[0] : 0,
                        n = l.RpcComponent.Instance.ServerTime - this._model.IntValue,
                        o = this._configData.CustomPart.Minute * p.Etc.MinuteDuration,
                        r = e - t >= 0 ? e - t : 0,
                        i = t >= e ? "#ff4b4b" : "#ffffff";
                    t >= e || n < o ? d.UIUtlity.OnNodeGray(this.RefreshButton.node) : d.UIUtlity.OffNodeGray(this.RefreshButton.node), this.RefreshButton.node.active = !this.CheckGiftIsAllBuy(), this.RefreshRichText.node.active = !this.CheckGiftIsAllBuy(), this.RefreshRichText.string = "infiniteGift_refresh".ToUILocale().Fmt(i, r, e)
                }, t.prototype.CheckGiftIsAllBuy = function() {
                    for (var e = !0, t = 0; t < this._configData._Packs.length; t++)
                        if (!(this._model.Packs && this._model.Packs[this._configData._Packs[t].Id.toString()] && this._model.Packs[this._configData._Packs[t].Id.toString()].Items[0] && this._model.Packs[this._configData._Packs[t].Id.toString()].Items[0])) {
                            e = !1;
                            break
                        } return e
                }, t.prototype.GetCurThreeGiftInfo = function() {
                    for (var e = [], t = this._model.Int2DArray.length, n = this.CheckGiftIsAllBuy(), o = !1, r = 0; r < t; r++) {
                        var i = this._model.Int2DArray[r];
                        if (i.Items.length > 1) {
                            var a = i.Items[0];
                            if (a) {
                                var s = this.GetBit(i.Items[1], 0),
                                    l = this.GetBit(i.Items[1], 1),
                                    c = {};
                                if (0 == r && (o = s && l), m = this._model.Packs[a] && this._model.Packs[a].Items[0] ? this._model.Packs[a].Items[0] : 0)
                                    if (n) {
                                        (d = this.FindGiftPack(a)) && (c = this.GetInifniteGiftPackItemData(!0, d, null, null, 2, this._configData, null), e.push(c));
                                        var u = {},
                                            p = {};
                                        (y = this.FindGiftReward(a)) && (u = this.GetInifniteGiftPackItemData(!1, null, a, y.Rewards1, 1 == s ? 2 : 1, this._configData, 1), e.push(u), p = this.GetInifniteGiftPackItemData(!1, null, a, y.Rewards2, 1 == l ? 2 : 1 == s ? 1 : 0, this._configData, 2), e.push(p))
                                    } else h = {}, f = {}, (y = this.FindGiftReward(a)) && (s ? l || (f = this.GetInifniteGiftPackItemData(!1, null, a, y.Rewards2, 1, this._configData, 2), e.push(f)) : (h = this.GetInifniteGiftPackItemData(!1, null, a, y.Rewards1, 1, this._configData, 1), e.push(h), f = this.GetInifniteGiftPackItemData(!1, null, a, y.Rewards2, 0, this._configData, 2), e.push(f)));
                                else {
                                    var d;
                                    (d = this.FindGiftPack(a)) && (c = 0 == r ? this.GetInifniteGiftPackItemData(!0, d, null, null, 0, this._configData, null) : this.GetInifniteGiftPackItemData(!0, d, null, null, 1 == o ? 0 : 3, this._configData, null), e.push(c));
                                    var h = {},
                                        f = {};
                                    (y = this.FindGiftReward(a)) && (h = this.GetInifniteGiftPackItemData(!1, null, a, y.Rewards1, 0, this._configData, 1), e.push(h), f = this.GetInifniteGiftPackItemData(!1, null, a, y.Rewards2, 0, this._configData, 2), e.push(f))
                                }
                            } else if (0 == r) {
                                c = {};
                                var y, g = this._configData._Packs[0],
                                    m = (s = this.GetBit(i.Items[1], 0), l = this.GetBit(i.Items[1], 1), this._model.Packs[g.Id] && this._model.Packs[g.Id].Items[0] ? this._model.Packs[g.Id].Items[0] : 0);
                                if (g && (c = this.GetInifniteGiftPackItemData(!0, g, null, null, m > 0 ? 2 : 0, this._configData, null), e.push(c)), h = {}, f = {}, y = this.FindGiftReward(g.Id)) {
                                    var I = m > 0 ? 1 == s ? 2 : 1 : 0;
                                    h = this.GetInifniteGiftPackItemData(!1, null, g.Id, y.Rewards1, I, this._configData, 1), e.push(h), f = this.GetInifniteGiftPackItemData(!1, null, g.Id, y.Rewards2, 1 == l ? 2 : 1 == s ? 1 : 0, this._configData, 2), e.push(f)
                                }
                            }
                        }
                    }
                    return e
                }, t.prototype.GetInifniteGiftPackItemData = function(e, t, n, o, r, i, a) {
                    var s = {};
                    return s.isPay = e, s.giftData = t, s.giftId = n, s.reward = o, s.state = r, s.configData = i, s.index = a, s
                }, t.prototype.GetBit = function(e, t) {
                    return 1 == (e >> t & 1)
                }, t.prototype.FindGiftPack = function(e) {
                    return this._configData._Packs.find(function(t) {
                        return t.Id == e
                    })
                }, t.prototype.FindGiftReward = function(e) {
                    return this._configData.Reward.find(function(t) {
                        return t.Id == e
                    })
                }, t.prototype.OnRefreshButtonClick = function() {
                    var e = this,
                        t = this._configData.CustomPart.Count,
                        n = this._model.IntArray && this._model.IntArray[0] ? this._model.IntArray[0] : 0,
                        o = l.RpcComponent.Instance.ServerTime - this._model.IntValue,
                        r = this._configData.CustomPart.Minute * p.Etc.MinuteDuration;
                    if (n >= t) d.UIUtlity.ShowFloatingHint("infiniteGift_refresh_limit".ToUILocale());
                    else if (o < r) d.UIUtlity.ShowFloatingHint("infiniteGift_cooldown".ToUILocale());
                    else {
                        for (var i = this.GetCurThreeGiftInfo(), a = 1 == i[0].isPay ? i[0].giftData.Id : i[0].giftId, c = 0; c < 3; c++)
                            if (i[c] && (1 == i[c].isPay ? i[c].giftData.Id : i[c].giftId) != a) return void d.UIUtlity.ShowFloatingHint("infiniteGift_cant_refresh".ToUILocale());
                        var u = new s.Req_Activity_InfiniteGiftPackUpdate;
                        u.ActivityId = this._configData._id, l.RpcComponent.Instance.Call(u, function() {
                            e._model = l.DataCenter.Instance.GetDataById(s.UserActivity_Model, e._configData._id), e.SetUIContent()
                        })
                    }
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.CountDownActivityTime), this.unschedule(this.CountDownRefreshTime)
                }, i([I(cc.Label)], t.prototype, "ActivityTimeLabel", void 0), i([I(cc.Label)], t.prototype, "TimeLabel", void 0), i([I(c.default)], t.prototype, "Cells", void 0), i([I(cc.Node)], t.prototype, "RefreshTimeNode", void 0), i([I(cc.Label)], t.prototype, "RefreshTimeLabel", void 0), i([I(cc.Label)], t.prototype, "RefreshLabel", void 0), i([I(cc.Button)], t.prototype, "RefreshButton", void 0), i([I(cc.Label)], t.prototype, "RefreshButtonLabel", void 0), i([I(cc.RichText)], t.prototype, "RefreshRichText", void 0), i([m], t)
            }(a.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./InfiniteGiftPackItem": "InfiniteGiftPackItem"
    }],
    InfiniteJumpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "449e0x+Ex1GpLFayaoCiGKy", "InfiniteJumpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("./SummonHeroPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TimeDesc = null, t.Time = null, t.Jump = null, t.JumpLbl = null, t._continueTime = 0, t._startTime = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TimeDesc.string = "secretArea_activeTime".ToUILocale(), this.JumpLbl.string = "task_goto".ToUILocale(), this.Jump.node.on("click", this.ClickJumpBtn, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    var e = c.DataCenter.Instance.GetIntData(u.UserDataKey.InfiniteTenSummonCount),
                        t = d.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, u.LevelParamType.InfiniteTenSummon);
                    this._continueTime = t.Data2[e].Items[2], this._startTime = d.DataCenter.Instance.GetIntData(h.UserDataKey.InfiniteTenSummonTime), this._startTime && this._startTime > 0 && (this.CountDownTime(), this.unschedule(this.CountDownTime), this.schedule(this.CountDownTime, 1))
                }, t.prototype.CountDownTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._startTime + this._continueTime * h.Etc.DayDuration - e;
                    t < 0 && l.UIManager.Instance.BackUIPanel(), this.Time.string = "explore_time".ToUILocale().Fmt(f.default.ActivityTimeLeftFormat(t))
                }, t.prototype.ClickJumpBtn = function() {
                    y.UIManager.Instance.ShowUIPanel(g.PanelConfig.SummonHeroPanel.Path, m.SummonMode.Infinite), y.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([C(cc.Label)], t.prototype, "TimeDesc", void 0), i([C(cc.Label)], t.prototype, "Time", void 0), i([C(cc.Button)], t.prototype, "Jump", void 0), i([C(cc.Label)], t.prototype, "JumpLbl", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./SummonHeroPanel": "SummonHeroPanel"
    }],
    InfiniteTenResultPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "28009vd8PFGKYWBhPYVzZk4", "InfiniteTenResultPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/SummonCardComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Channel/ChannelManager"),
            v = e("../../../../Proto/Static/ConfigProto"),
            b = e("../../../ShareConsts/EnumType"),
            S = e("../../Auxiliary/GameRecord"),
            w = e("./QueenSummonPanel"),
            P = e("./SummonResultPanel"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0, !1, !0), t.Title = null, t.TimeDesc = null, t.Time = null, t.TenSummonSpine = null, t.CloseBtn = null, t.CloseBtnLabel = null, t.SummonBtn = null, t.SummonBtnLabel = null, t.BuyBtn = null, t.BuyBtnLabel = null, t.GetLabel = null, t.VipPointLabel = null, t.TalkLabel = null, t.CardsCintainer = null, t.BtnCintainer = null, t.SkipTog = null, t.SkipLabel = null, t.VipIcon = null, t.BoardSpineNode = null, t.BoardBg = null, t.BoardSkeleton = null, t.PanelSpineLoop = null, t.PanelSpineOnce = null, t._summonCards = [], t._tenCardsNode = [], t._continueTime = 0, t._startTime = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.GameEventIds.AddDataDetail.Fmt(c.GiftPack_Model._n_), this.OnGiftPackChange, this), l.Game.EventDispatcher.On(d.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.GameEventIds.AddDataDetail.Fmt(c.GiftPack_Model._n_), this.OnGiftPackChange, this), l.Game.EventDispatcher.Off(d.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), (t = []).push(this.LoadDynamicAsset(g.BundlePath.HeroCardComponent)), t.push(this.LoadDynamicAsset("QueenSummonPanel/SummonCardComponent")), t.push(this.LoadDynamicAsset(g.BundlePath.ItemIcon + "/" + d.CommonItemId.VipPoint, cc.SpriteFrame)), t.push(this.LoadDynamicAsset("QueenSummonPanel/Spine/Board/UI_Effect_Recruit", sp.SkeletonData)), [4, Promise.all(t).then(function(e) {
                                        n._heroCardPrefab = e[0], n._summonCardPrefab = e[1], n.VipIcon.spriteFrame = e[2], n._bordSkeletonData = e[3]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CloseBtn.node.on("click", this.OnReturnPanel, this), this.SummonBtn.node.on("click", this.OnSummon, this), this.BuyBtn.node.on("click", this.BuyGift, this), this.SkipTog.node.on("toggle", this.ClickTog, this), this.CloseBtnLabel.string = "close".ToUILocale(), this.Title.string = "summon_2".ToUILocale(), this.GetLabel.string = "task_get_score_tag".ToUILocale(), this.TalkLabel.string = "infinite_get_reward".ToUILocale(), this.TimeDesc.string = "secretArea_activeTime".ToUILocale(), this.SkipLabel.string = "infinite_jump".ToUILocale(), this.SkipTog.node.active = !0, this.SkipTog.isChecked = _.default.GetFunctionSkipState(b.FunctionSkipKey.InfiniteTenSummon);
                    for (var t = 0; t < this.CardsCintainer.childrenCount; t++) this._tenCardsNode.push(this.CardsCintainer.children[t])
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._summonId = t[0], this._userHeroModel = t[1]
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), t ? [2] : (this._skipCardAnimation = _.default.GetFunctionSkipState(b.FunctionSkipKey.InfiniteTenSummon), this.BtnCintainer.active = !1, this.ConfigSummonTimes(), this.ConfigHeader(), this.PlayEffectByType(), [2])
                        })
                    })
                }, t.prototype.ConfigSummonTimes = function() {
                    this.SummonBtnLabel.string = "summon_reDraw".ToUILocale();
                    var e = this.GetGiftId(),
                        t = p.ConfigDataComponent.Instance.GetConfigById(v.GiftPack_Config, e);
                    this.BuyBtnLabel.string = C.default.Instance.CurrencySymbol + C.default.Instance.ExchangeMoney(t.Money), this.VipPointLabel.string = "x" + t.VipPoint
                }, t.prototype.ConfigHeader = function() {
                    this._startTime = h.DataCenter.Instance.GetIntData(b.UserDataKey.InfiniteTenSummonTime);
                    var e = p.DataCenter.Instance.GetIntData(d.UserDataKey.InfiniteTenSummonCount),
                        t = h.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, d.LevelParamType.InfiniteTenSummon);
                    this._continueTime = t.Data2[e].Items[2], this.CountDownTime(), this.unschedule(this.CountDownTime), this.schedule(this.CountDownTime, 1)
                }, t.prototype.CountDownTime = function() {
                    var e = p.RpcComponent.Instance.ServerTime,
                        t = this._startTime + this._continueTime * d.Etc.DayDuration - e;
                    t < 0 && l.UIManager.Instance.BackUIPanel(), this.Time.string = "explore_time".ToUILocale().Fmt(_.default.ActivityTimeLeftFormat(t))
                }, t.prototype.WaitingSeconds = function(e) {
                    return void 0 === e && (e = .5), a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function() {
                            return [2, new Promise(function(n) {
                                setTimeout(function() {
                                    t.isValid && n(void 0)
                                }, 1e3 * e)
                            })]
                        })
                    })
                }, t.prototype.PlayEffectByType = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    if (this.PanelSpineLoop.node.active = !1, this.PanelSpineOnce.node.active = !1, this._skipCardAnimation) return [3, 2];
                                    for (this.BoardSpineNode.active = !0, this.BoardBg.active = !0, this.BoardSkeleton.skeletonData = this._bordSkeletonData, this.BoardSkeleton.timeScale = 1, e = [], t = 0; t < this._userHeroModel.length; t++) e.push(this._userHeroModel[t].ItemId);
                                    return this.BoardSkeleton.setAnimation(0, P.default.GetSummonEffeftSpineName(e, 1), !1), [4, this.WaitingSeconds(4.9)];
                                case 1:
                                    return n.sent(), this.isValid ? (this.BoardSpineNode.active = !1, this.PlaySummonTenTimesEffect(), [3, 3]) : [2];
                                case 2:
                                    this.BoardSpineNode.active = !1, this.PlaySummonTenTimesEffect(), n.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.PlaySummonTenTimesEffect = function() {
                    this.PanelSpineLoop.node.active = !0, this.PanelSpineOnce.node.active = !0, this.PanelSpineOnce.setAnimation(0, "Ani_UI_Effect_Recruit_Glow", !1), this.TenSummonSpine.setAnimation(0, this.TenSummonSpine.animation, !1);
                    for (var e = 0, t = 0; t < this._summonCards.length; t++) e++, (n = this._summonCards[t]).node.setParent(this._tenCardsNode[t]), n.node.active = !0, this.InitSummonCardComponent(n, this._userHeroModel[t].ItemId, t);
                    for (t = e; t < this._userHeroModel.length; t++) {
                        var n;
                        (n = cc.instantiate(this._summonCardPrefab).getComponent(m.default)).node.setParent(this._tenCardsNode[t]), this._summonCards.push(n), this.InitSummonCardComponent(n, this._userHeroModel[t].ItemId, t)
                    }
                    this.scheduleOnce(this.OnDisplayEnd, 1.9)
                }, t.prototype.InitSummonCardComponent = function(e, t, n) {
                    void 0 === n && (n = -1);
                    var o = h.ConfigDataComponent.Instance.GetConfigById(u.ItemHeroCard_Config, t),
                        r = o.HeroId,
                        i = o.StarLevel;
                    0 == i && (i = h.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, r).StarLevel), e.Init(r, i, this._heroCardPrefab, !0)
                }, t.prototype.OnSummon = function() {
                    var e = this,
                        t = this.GetGiftId();
                    if (_.default.Instance.GetGiftBuyCount(t) > 0) f.UIUtlity.ShowFloatingHint("infinite_has_buy".ToUILocale());
                    else {
                        if (!S.default.GetItem(S.GameRecordDefine.InfiniteSummonHint)) return f.UIUtlity.ShowHintPanel(null, "infinite_just_one".ToUILocale(), "", null, "", function() {
                            f.UIUtlity.ShowMaskPanel();
                            var t = new c.Req_Card_CommonSummon;
                            t.Type = e._summonId, h.RpcComponent.Instance.Call(t, e.OnSummonSucces.bind(e), e.OnSummonError.bind(e))
                        }, void 0, S.GameRecordDefine.InfiniteSummonHint);
                        f.UIUtlity.ShowMaskPanel();
                        var n = new c.Req_Card_CommonSummon;
                        n.Type = this._summonId, w.default.CheckOwnedHeroes(), h.RpcComponent.Instance.Call(n, this.OnSummonSucces.bind(this), this.OnSummonError.bind(this))
                    }
                }, t.prototype.BuyGift = function() {
                    var e = this,
                        t = this.GetGiftId();
                    if (_.default.Instance.GetGiftBuyCount(t) > 0) f.UIUtlity.ShowFloatingHint("infinite_has_buy".ToUILocale());
                    else if (_.default.Instance.IsCanGetNewHero(this._userHeroModel.length)) this.Close(), C.default.Instance.Pay(t);
                    else {
                        var n = _.default.Instance.GetHeroCountLimit(),
                            o = "infinite_hero_limit".ToUILocale().Fmt(n);
                        f.UIUtlity.ShowHintPanel("", o, "", null, "go_to_treat".ToUILocale(), function() {
                            e.Close(), l.UIManager.Instance.ShowUIPanel(g.PanelConfig.HeroPalacePanel.Path, 1)
                        })
                    }
                }, t.prototype.OnSummonSucces = function(e) {
                    f.UIUtlity.CloseMaskPanel();
                    var t = [];
                    e.Items.forEach(function(e) {
                        var n = new c.UserItem_Model;
                        n.ItemId = e.Items[0], n.Count = e.Items[1], t.push(n)
                    }), this._userHeroModel = t, this.DisPlay()
                }, t.prototype.OnSummonError = function() {
                    f.UIUtlity.CloseMaskPanel()
                }, t.prototype.OnReturnPanel = function() {
                    y.UIManager.Instance.BackUIPanel()
                }, t.prototype.ClickTog = function(e) {
                    _.default.SetFunctionSkipState(b.FunctionSkipKey.InfiniteTenSummon, e.isChecked)
                }, t.prototype.GetGiftId = function() {
                    var e = p.DataCenter.Instance.GetIntData(d.UserDataKey.InfiniteTenSummonCount);
                    return h.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, d.LevelParamType.InfiniteTenSummon).Data2[e].Items[0]
                }, t.prototype.OnGiftPackChange = function() {
                    var e = this.GetGiftId(),
                        t = p.DataCenter.Instance.GetDataById(c.GiftPack_Model, e);
                    t && t.Count > 0 && l.Game.EventDispatcher.Emit(I.EventKeys.EVENT_SET_VERTICAL_BUTTON, 25, -1)
                }, t.prototype.OnDisplayEnd = function() {
                    this.BtnCintainer.active = !0
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.Label)], t.prototype, "TimeDesc", void 0), i([R(cc.Label)], t.prototype, "Time", void 0), i([R(sp.Skeleton)], t.prototype, "TenSummonSpine", void 0), i([R(cc.Button)], t.prototype, "CloseBtn", void 0), i([R(cc.Label)], t.prototype, "CloseBtnLabel", void 0), i([R(cc.Button)], t.prototype, "SummonBtn", void 0), i([R(cc.Label)], t.prototype, "SummonBtnLabel", void 0), i([R(cc.Button)], t.prototype, "BuyBtn", void 0), i([R(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([R(cc.Label)], t.prototype, "GetLabel", void 0), i([R(cc.Label)], t.prototype, "VipPointLabel", void 0), i([R(cc.Label)], t.prototype, "TalkLabel", void 0), i([R(cc.Node)], t.prototype, "CardsCintainer", void 0), i([R(cc.Node)], t.prototype, "BtnCintainer", void 0), i([R(cc.Toggle)], t.prototype, "SkipTog", void 0), i([R(cc.Label)], t.prototype, "SkipLabel", void 0), i([R(cc.Sprite)], t.prototype, "VipIcon", void 0), i([R(cc.Node)], t.prototype, "BoardSpineNode", void 0), i([R(cc.Node)], t.prototype, "BoardBg", void 0), i([R(sp.Skeleton)], t.prototype, "BoardSkeleton", void 0), i([R(sp.Skeleton)], t.prototype, "PanelSpineLoop", void 0), i([R(sp.Skeleton)], t.prototype, "PanelSpineOnce", void 0), i([T], t)
            }(l.BaseUIPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/SummonCardComponent": "SummonCardComponent",
        "./QueenSummonPanel": "QueenSummonPanel",
        "./SummonResultPanel": "SummonResultPanel"
    }],
    InfiniteTenSummon: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "26264bWH9dOyaqMxjbrxCMa", "InfiniteTenSummon");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("./IWantStrongPanel"),
            y = e("../../Auxiliary/GameRecord"),
            g = e("./CommonRatePanel"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Components/Components"),
            v = e("../../Channel/ChannelManager"),
            b = e("../Components/ItemComponent"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("../../RedDot/RedDotManager"),
            P = e("./QueenSummonPanel"),
            A = e("../../../../Proto/Static/ConfigProto"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MoveNode = null, t.ShowRewardNode = null, t.RateBtnLabel = null, t.RewardNode = null, t.NoBuyNode = null, t.GetImgNode = null, t.FreeBtn = null, t.FreeBtnLabel = null, t.BuyBtn = null, t.BuyBtnLabel = null, t.GetLabel = null, t.VipPointLabel = null, t.TalkLabel = null, t.RateBtn = null, t.ContentLabel = null, t.FormationBtn = null, t.FormationBtnLabel = null, t.TenBtn = null, t.BottomBg = null, t.TenBtnLabel = null, t.SkipTog = null, t.SkipLabel = null, t.VipIcon = null, t._selectHeros = [], t._heroNodes = [], t._itemPrefab = void 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(c.GiftPack_Model._n_), this.OnGiftPackChange, this), l.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.DisPlay, this), w.RedDotManager.Instance.Bind(this.FreeBtn.node, w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode1), w.RedDotManager.Instance.Bind(this.TenBtn.node, w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode2)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(p.GameEventIds.AddDataDetail.Fmt(c.GiftPack_Model._n_), this.OnGiftPackChange, this), l.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.DisPlay = function() {
                    this.InitUI()
                }, t.prototype.InitUI = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return (e = this.node.addComponent(cc.Widget)).isAlignTop = !0, e.isAlignBottom = !0, this.SkipLabel.node.active = !0, this.SkipTog.node.active = !0, this.RateBtnLabel.string = "ratepanel_tittle".ToUILocale(), this.FormationBtnLabel.string = "formation_recommend".ToUILocale(), this.TenBtnLabel.string = "infinite_ten".ToUILocale(), this.SkipLabel.string = "infinite_jump".ToUILocale(), this.FreeBtnLabel.string = "infinite_free".ToUILocale(), this.GetLabel.string = "task_get_score_tag".ToUILocale(), this.TalkLabel.string = "infinite_get_reward".ToUILocale(), this.ContentLabel.string = "infinte_current".ToUILocale(), this.RateBtn.node.on("click", this.ClickRateBtn, this), this.FormationBtn.node.on("click", this.ClickFormationBtn, this), this.SkipTog.node.on("toggle", this.ClickTog, this), this.TenBtn.node.on("click", this.ClickTenBtnWithOutHit, this), this.FreeBtn.node.on("click", this.ClickTenBtn, this), this.BuyBtn.node.on("click", this.ClickBuyBtn, this), [4, this.LoadItemPrefab()];
                                case 1:
                                    return t.sent(), this.InitRewardNodes(), this.InitData(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadItemPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return void 0 !== this._itemPrefab ? [3, 2] : (this._itemPrefab = null, e = h.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent, cc.Prefab), t = h.AssetsManager.Instance.LoadAsset(_.default.Instance.GetItemPathById(p.CommonItemId.VipPoint), cc.SpriteFrame), [4, Promise.all([e, t]).then(function(e) {
                                        var t = e[0],
                                            o = e[1];
                                        if (n.isValid) {
                                            n._itemPrefab = t, n.VipIcon.spriteFrame = o;
                                            for (var r = 0; r < 10; r++)
                                                if (!n._heroNodes[r]) {
                                                    var i = cc.instantiate(n._itemPrefab);
                                                    i.parent = n.RewardNode, n._heroNodes[r] = i
                                                }
                                        } else h.AssetsManager.Instance.UnloadAsset(t)
                                    })]);
                                case 1:
                                    o.sent(), o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function() {
                    var e = this,
                        t = new c.Req_Player_InfiniteTenSummonEnter;
                    u.RpcComponent.Instance.Call(t, function(t) {
                        e._selectHeros = t.Items, e.SetUIContent()
                    })
                }, t.prototype.SetUIContent = function() {
                    var e = this._selectHeros.length;
                    if (this.TenBtn.node.active = !e, this.MoveNode.y = e > 0 ? 296 : -150, this.BottomBg.y = e > 0 ? 380 : 6, this.MoveNode.active = !0, this.SkipTog.node.y = e > 0 ? -400 : -585, this.SkipTog.isChecked = _.default.GetFunctionSkipState(m.FunctionSkipKey.InfiniteTenSummon), this.ShowRewardNode.active = e > 0, e > 0) this.SetHeros();
                    else {
                        var t = y.default.GetItem(y.GameRecordDefine.InfiniteSummonRedDot);
                        null != t && 0 != Number.parseInt(t) && (y.default.SetItem(y.GameRecordDefine.InfiniteSummonRedDot, 0), w.RedDotManager.Instance.RefreshRedDotNode(w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode1), w.RedDotManager.Instance.RefreshRedDotNode(w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode2))
                    }
                }, t.prototype.InitRewardNodes = function() {
                    this._heroNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var e = this.GetGiftId(),
                        t = u.ConfigDataComponent.Instance.GetConfigById(A.GiftPack_Config, e),
                        n = _.default.Instance.GetGiftBuyCount(e);
                    this.NoBuyNode.active = !n, this.GetImgNode.active = n > 0, this.BuyBtnLabel.string = v.default.Instance.CurrencySymbol + v.default.Instance.ExchangeMoney(t.Money), this.VipPointLabel.string = "x" + t.VipPoint, n > 0 && (y.default.SetItem(y.GameRecordDefine.InfiniteSummonRedDot, 0), w.RedDotManager.Instance.RefreshRedDotNode(w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode1), w.RedDotManager.Instance.RefreshRedDotNode(w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode2))
                }, t.prototype.SetHeros = function() {
                    var e = this,
                        t = y.default.GetItem(y.GameRecordDefine.InfiniteSummonRedDot);
                    null != t && 0 != Number.parseInt(t) || (y.default.SetItem(y.GameRecordDefine.InfiniteSummonRedDot, u.RpcComponent.Instance.ServerTime), w.RedDotManager.Instance.RefreshRedDotNode(w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode1), w.RedDotManager.Instance.RefreshRedDotNode(w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode2));
                    var n = this.GetGiftId(),
                        o = _.default.Instance.GetGiftBuyCount(n);
                    this._selectHeros.forEach(function(t, n) {
                        if (e._heroNodes[n]) {
                            var r = e._heroNodes[n].getComponent(b.ItemComponent);
                            e._heroNodes[n].name = t.Items[0].toString(), r.Init({
                                ItemId: t.Items[0],
                                Count: t.Items[1]
                            }, b.ItemComponentType.ItemCommon), o > 0 ? r.SetSelectFlagState(!0) : r.SetSelectFlagState(!1), e._heroNodes[n].active = !0
                        }
                    })
                }, t.prototype.ClickRateBtn = function() {
                    h.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonRatePanel.Path, g.ShowRateType.Common, m.CardCommonSummonType.InfiniteTenSummon)
                }, t.prototype.ClickFormationBtn = function() {
                    h.UIManager.Instance.ShowUIPanel(d.PanelConfig.IWantStrongPanel.Path, f.WantStrongModule.RecommendFormation)
                }, t.prototype.ClickTog = function(e) {
                    _.default.SetFunctionSkipState(m.FunctionSkipKey.InfiniteTenSummon, e.isChecked)
                }, t.prototype.ClickTenBtnWithOutHit = function() {
                    var e = this.GetGiftId();
                    _.default.Instance.GetGiftBuyCount(e) > 0 ? I.UIUtlity.ShowFloatingHint("infinite_has_buy".ToUILocale()) : this.RequestCardSummon()
                }, t.prototype.GetGiftId = function() {
                    var e = u.DataCenter.Instance.GetIntData(p.UserDataKey.InfiniteTenSummonCount);
                    return C.ConfigDataComponent.Instance.GetConfigById(A.LevelParam_Config, p.LevelParamType.InfiniteTenSummon).Data2[e].Items[0]
                }, t.prototype.ClickTenBtn = function() {
                    var e = this,
                        t = this.GetGiftId();
                    if (_.default.Instance.GetGiftBuyCount(t) > 0) I.UIUtlity.ShowFloatingHint("infinite_has_buy".ToUILocale());
                    else {
                        if (!y.default.GetItem(y.GameRecordDefine.InfiniteSummonHint)) return I.UIUtlity.ShowHintPanel(null, "infinite_just_one".ToUILocale(), "", null, "", function() {
                            e.RequestCardSummon()
                        }, void 0, y.GameRecordDefine.InfiniteSummonHint);
                        this.RequestCardSummon()
                    }
                }, t.prototype.RequestCardSummon = function() {
                    var e = y.default.GetItem(y.GameRecordDefine.InfiniteSummonRedDot);
                    null != e && 0 != Number.parseInt(e) || (y.default.SetItem(y.GameRecordDefine.InfiniteSummonRedDot, u.RpcComponent.Instance.ServerTime), w.RedDotManager.Instance.RefreshRedDotNode(w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode1), w.RedDotManager.Instance.RefreshRedDotNode(w.RedDotManager.Instance.RedDot.InfiniteSummonBtmNode2));
                    var t = new c.Req_Card_CommonSummon;
                    t.Type = m.CardCommonSummonType.InfiniteTenSummon, P.default.CheckOwnedHeroes(), u.RpcComponent.Instance.Call(t, function(e) {
                        I.UIUtlity.CloseMaskPanel();
                        var t = [];
                        e.Items.forEach(function(e) {
                            var n = new c.UserItem_Model;
                            n.ItemId = e.Items[0], n.Count = e.Items[1], t.push(n)
                        }), h.UIManager.Instance.ShowUIPanel(d.PanelConfig.InfiniteTenResultPanel.Path, m.CardCommonSummonType.InfiniteTenSummon, t)
                    })
                }, t.prototype.ClickBuyBtn = function() {
                    var e = this.GetGiftId();
                    if (_.default.Instance.GetGiftBuyCount(e) > 0) I.UIUtlity.ShowFloatingHint("infinite_has_buy".ToUILocale());
                    else if (_.default.Instance.IsCanGetNewHero(10)) v.default.Instance.Pay(e);
                    else {
                        var t = _.default.Instance.GetHeroCountLimit(),
                            n = "infinite_hero_limit".ToUILocale().Fmt(t);
                        I.UIUtlity.ShowHintPanel("", n, "", null, "go_to_treat".ToUILocale(), function() {
                            l.UIManager.Instance.ShowUIPanel(d.PanelConfig.HeroPalacePanel.Path, 1)
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && I.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnGiftPackChange = function() {
                    var e = this.GetGiftId(),
                        t = u.DataCenter.Instance.GetDataById(c.GiftPack_Model, e);
                    t && t.Count > 0 && l.Game.EventDispatcher.Emit(S.EventKeys.EVENT_SET_VERTICAL_BUTTON, 25, -1)
                }, t.prototype.onDestroy = function() {
                    h.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._heroNodes = null
                }, i([L(cc.Node)], t.prototype, "MoveNode", void 0), i([L(cc.Node)], t.prototype, "ShowRewardNode", void 0), i([L(cc.Label)], t.prototype, "RateBtnLabel", void 0), i([L(cc.Node)], t.prototype, "RewardNode", void 0), i([L(cc.Node)], t.prototype, "NoBuyNode", void 0), i([L(cc.Node)], t.prototype, "GetImgNode", void 0), i([L(cc.Button)], t.prototype, "FreeBtn", void 0), i([L(cc.Label)], t.prototype, "FreeBtnLabel", void 0), i([L(cc.Button)], t.prototype, "BuyBtn", void 0), i([L(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([L(cc.Label)], t.prototype, "GetLabel", void 0), i([L(cc.Label)], t.prototype, "VipPointLabel", void 0), i([L(cc.Label)], t.prototype, "TalkLabel", void 0), i([L(cc.Button)], t.prototype, "RateBtn", void 0), i([L(cc.Label)], t.prototype, "ContentLabel", void 0), i([L(cc.Button)], t.prototype, "FormationBtn", void 0), i([L(cc.Label)], t.prototype, "FormationBtnLabel", void 0), i([L(cc.Button)], t.prototype, "TenBtn", void 0), i([L(cc.Node)], t.prototype, "BottomBg", void 0), i([L(cc.Label)], t.prototype, "TenBtnLabel", void 0), i([L(cc.Toggle)], t.prototype, "SkipTog", void 0), i([L(cc.Label)], t.prototype, "SkipLabel", void 0), i([L(cc.Sprite)], t.prototype, "VipIcon", void 0), i([R], t)
            }(cc.Component);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonRatePanel": "CommonRatePanel",
        "./IWantStrongPanel": "IWantStrongPanel",
        "./QueenSummonPanel": "QueenSummonPanel"
    }],
    InfoLogTips: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "51f80a8azxMPo2C9yTssBk2", "InfoLogTips");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1), t.TitleRichText = null, t.ContentRichText = null, t.Dialogue = null, t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._title = t[0], this._content = t[1], this._pos = t[2]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.TitleRichText.string = "<color = #00ff00>" + this._title + "</color>", this.ContentRichText.string = this._content, this.Dialogue.getComponent(cc.Layout).updateLayout();
                    var t = cc.Camera.main.getScreenToWorldPoint(this._pos),
                        n = cc.v2(t.x, t.y);
                    this._pos = this.node.convertToNodeSpaceAR(n), this._pos.y < 0 ? this._pos.y += this.Dialogue.height / 2 + 35 : this._pos.y -= this.Dialogue.height / 2 + 35, this._pos.x < this.Dialogue.width / 2 - s.UIUtlity.DESIGN_SCREEN_WIDTH / 2 ? this._pos.x = this.Dialogue.width / 2 - s.UIUtlity.DESIGN_SCREEN_WIDTH / 2 : this._pos.x > s.UIUtlity.DESIGN_SCREEN_WIDTH / 2 - this.Dialogue.width / 2 && (this._pos.x = s.UIUtlity.DESIGN_SCREEN_WIDTH / 2 - this.Dialogue.width / 2), this.Dialogue.position = cc.v3(this._pos)
                }, i([u(cc.RichText)], t.prototype, "TitleRichText", void 0), i([u(cc.RichText)], t.prototype, "ContentRichText", void 0), i([u(cc.Node)], t.prototype, "Dialogue", void 0), i([c], t)
            }(a.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    IngenuityEndPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c581eNzXnpHRLjbYeIibOqd", "IngenuityEndPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/ItemComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TimeLabelDesc = null, t.RankLabelDesc = null, t.TimeLabel = null, t.RankLabel = null, t.NoTimesLabel = null, t.RewardParent = null, t.BackButton = null, t.BackLabel = null, t.AgainButton = null, t.AgainLabel = null, t._itemPrefab = null, t._itemNodes = [], t._time = "", t._rank = 0, t._rewards = [], t._configData = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BackButton.node.on("click", this.OnBackClick, this), this.AgainButton.node.on("click", this.OnAgainClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.BackButton.node.off("click", this.OnBackClick, this), this.AgainButton.node.off("click", this.OnAgainClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TimeLabelDesc.string = "happyTurn_time".ToUILocale(), this.RankLabelDesc.string = "happyTurn_rank".ToUILocale(), this.BackLabel.string = "happyTurn_back".ToUILocale(), this.AgainLabel.string = "happyTurn_again".ToUILocale(), this.NoTimesLabel.string = "happyTurn_no_times".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._time = t[0], this._rank = t[1], this._rewards = t[2], this._configData = t[3]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.initNodes(), this.SetInfo(), this.SetReward()
                }, t.prototype.initNodes = function() {
                    this.RewardParent.active = !1, this.NoTimesLabel.node.active = !1, this._itemNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    if (e && e.IntArray.length > 0) {
                        var t = this._configData.CustomPart.Count - e.IntArray[0];
                        this.TimeLabel.string = this._time, this._rank == d.ErrCode.ActIngenuityDataError ? this.RankLabel.string = "happyTurn_data_error".ToUILocale() : this.RankLabel.string = this._rank > 0 ? "happyTurn_ranks".ToUILocale().Fmt(this._rank) : "happyTurn_no_up".ToUILocale(), t > 0 ? (this._rank, d.ErrCode.ActIngenuityDataError, this.RewardParent.active = !0) : this.NoTimesLabel.node.active = !0
                    }
                }, t.prototype.SetReward = function() {
                    var e = this;
                    this.RewardParent.active && this._rewards.forEach(function(t, n) {
                        if (e._itemNodes[n]) e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(h.ItemComponent).Init({
                            ItemId: t.ItemId,
                            Count: t.Count
                        }, h.ItemComponentType.ItemCommon);
                        else {
                            var o = cc.instantiate(e._itemPrefab);
                            o.active = !0, e._itemNodes[n] = o, e._itemNodes[n].parent = e.RewardParent, e._itemNodes[n].getComponent(h.ItemComponent).Init({
                                ItemId: t.ItemId,
                                Count: t.Count
                            }, h.ItemComponentType.ItemCommon)
                        }
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardParent.children.indexOf(t) && y.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.OnBackClick = function() {
                    l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_INGENUITY_RETURN), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnAgainClick = function() {
                    l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_INGENUITY_RESTART), l.UIManager.Instance.BackUIPanel()
                }, i([I(cc.Label)], t.prototype, "TimeLabelDesc", void 0), i([I(cc.Label)], t.prototype, "RankLabelDesc", void 0), i([I(cc.Label)], t.prototype, "TimeLabel", void 0), i([I(cc.RichText)], t.prototype, "RankLabel", void 0), i([I(cc.Label)], t.prototype, "NoTimesLabel", void 0), i([I(cc.Node)], t.prototype, "RewardParent", void 0), i([I(cc.Button)], t.prototype, "BackButton", void 0), i([I(cc.Label)], t.prototype, "BackLabel", void 0), i([I(cc.Button)], t.prototype, "AgainButton", void 0), i([I(cc.Label)], t.prototype, "AgainLabel", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    IngenuityItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7b189NEXDxMo4lY2zMn0BDc", "IngenuityItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Image = null, t._cardId = -1, t._idx = -1, t._isMoving = !1, t._isGaming = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._idx = e, this._cardId = t, this.Image.spriteFrame = n
                }, t.prototype.InitData = function() {
                    this._idx = -1, this._cardId = -1, this.Image.spriteFrame = null
                }, t.prototype.SetIsGaming = function(e) {
                    this._isGaming = e
                }, t.prototype.SetIsMoving = function(e) {
                    this._isMoving = e
                }, t.prototype.SetIndex = function(e) {
                    this._idx = e
                }, Object.defineProperty(t.prototype, "cardId", {
                    get: function() {
                        return this._cardId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.OnNodeClick = function() {
                    this._isGaming && (this._isMoving || a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_MOVE_ITEM_CELL, this._idx))
                }, i([u(cc.Sprite)], t.prototype, "Image", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    IngenuityPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c4445LVyhlD7ZnAqaPkvlBY", "IngenuityPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("./IngenuityItem"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Components/SmallRankListComponent"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Components/ItemComponent"),
            C = e("../Battle/BattleManager"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = [
                [-270, 268.418],
                [0, 268.418],
                [270, 268.418],
                [-270, 0],
                [0, 0],
                [270, 0],
                [-270, -270.961],
                [0, -270.961],
                [270, -270.961]
            ],
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.ActivityTimeLabel = null, t.TimeValueLabel = null, t.TipsLabel = null, t.HeroImage = null, t.RankComponent = null, t.RewardLabel = null, t.RewardNodes = [], t.ParentNode = null, t.CountDownNode = null, t.TimeImage = null, t.NormalNode = null, t.TimesLabel = null, t.RewalTimesLabel = null, t.StartBottomNode = null, t.TimeLabel = null, t.ReStartButton = null, t.ReStartLabel = null, t.StartButton = null, t.StartLabel = null, t.RuleButton = null, t.ReturnButton = null, t._configData = null, t._deadLine = 0, t._cellPrefab = null, t._isGaming = !1, t._randomArr = [], t._cellNodes = [], t._itemImgs = null, t._itemNodes = [], t._itemPrefab = null, t._countDownThree = 0, t._lastServerTime = 0, t._isTiming = !1, t._countDownTime = 0, t._isCountDowning = !1, t._isStart = !1, t._preConfigPicture = "", t._model = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_MOVE_ITEM_CELL, this.OnMoveItemCell, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_INGENUITY_RETURN, this.ResetGame, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_INGENUITY_RESTART, this.ReStartGame, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_MOVE_ITEM_CELL, this.OnMoveItemCell, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_INGENUITY_RETURN, this.ResetGame, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_INGENUITY_RESTART, this.ReStartGame, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleIngenuity/IngenuityItem", cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleIngenuity/PNG/Ingenuity", cc.SpriteAtlas), this.LoadDynamicAsset(I.BundlePath.ItemComponent, cc.Prefab)]).then(function(t) {
                                        e._cellPrefab = t[0], e._itemImgs = t[1], e._itemPrefab = t[2]
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(e) {
                    var t = e[0];
                    this._configData = c.DataCenter.Instance.ActivityConfigs[t], this._deadLine = d.default.Instance.ComputeDeadTime(this._configData.Common), this.TitleLabel.string = this._configData.Common.Title
                }, t.prototype.InitUI = function() {
                    this.ActivityTimeLabel.string = "secretArea_activeTime".ToUILocale(), this.TipsLabel.string = "ingenuity_tips".ToUILocale(), this.RewardLabel.string = "ingenuity_reward".ToUILocale(), this.TimesLabel.string = "ingenuity_today_receive_times".ToUILocale(), this.StartLabel.string = "ingenuity_start".ToUILocale(), this.ReStartLabel.string = "ingenuity_restar".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.StartButton.node.on("click", this.OnStartButtonClick, this), this.ReStartButton.node.on("click", this.OnReStartButtonClick, this), this.CountDownNode.active = !1
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1), this.SetUIContetn(t)
                }, t.prototype.update = function() {
                    if (this._isTiming) {
                        var e = c.RpcComponent.Instance.ServerTime;
                        this._countDownTime = e - this._lastServerTime, this.TimeLabel.string = d.default.ActivityTimeLeftFormat(this._countDownTime)
                    }
                }, t.prototype.SetUIContetn = function(e) {
                    void 0 === e && (e = !1), this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), this.InitNdoes(), this.InitTime(), this.SetRandomPicture(), this.SetInfo(), this.UpdateNodeActive(), this.LoadCards(), e || this.SetRankList()
                }, t.prototype.ResetUIContent = function() {
                    this.InitTime(), this.SetRandomPicture(), this.SetInfo(), this.UpdateNodeActive(), this.LoadCards()
                }, t.prototype.SetRandomArr = function() {
                    var e = 1;
                    for (this._randomArr = []; e % 2 != 0 || this.CheckIsSort();) {
                        var t;
                        this._randomArr = this.GetRandomArr(), t = this._randomArr.concat([]), e = this.GetReverseCount(t)
                    }
                }, t.prototype.GetRandomArr = function() {
                    for (var e, t = [], n = 1; n < 9; n++) t.push(n);
                    for (n = 0; n < 9; n++) {
                        var o = Math.round(7 * Math.random());
                        e = t[o], t[o] = t[n], t[n] = e
                    }
                    return t
                }, t.prototype.GetReverseCount = function(e) {
                    var t = 0,
                        n = e.findIndex(function(e) {
                            return null == e
                        });
                    return n > -1 && e.splice(n, 1), e.forEach(function(n, o) {
                        for (var r = o + 1; r < e.length; r++) r < e.length && n > e[r] && t++
                    }), t
                }, t.prototype.CheckIsSort = function() {
                    for (var e = !0, t = 0; t < this._randomArr.length; t++) {
                        if (!this._randomArr.length[t] && t != this._randomArr.length - 1) {
                            e = !1;
                            break
                        }
                        if (t < this._randomArr.length - 1 && this._randomArr.length[t] != t + 1) {
                            e = !1;
                            break
                        }
                    }
                    return e
                }, t.prototype.InitNdoes = function() {
                    this.RewardNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.InitTime = function() {
                    this._countDownThree = 3;
                    var e = h.UIUtlity.COMMON_ATLAS2.getSpriteFrame("3");
                    this.TimeImage.spriteFrame = e, this.TimeLabel.string = d.default.ActivityTimeLeftFormat(0), this.isTiming = !1, this._countDownTime = 0, this._lastServerTime = 0
                }, t.prototype.SetRandomPicture = function() {
                    var e = this._configData.CustomPart.Picture.length,
                        t = Math.floor(Math.random() * e);
                    this._preConfigPicture = this._configData.CustomPart.Picture[t]
                }, t.prototype.SetInfo = function() {
                    var e = this;
                    this.HeroImage.spriteFrame = this._itemImgs.getSpriteFrame(this._preConfigPicture), this._configData.Rewards[0].Rewards.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            o.parent = e.RewardNodes[n], e._itemNodes[n] = o
                        }
                        e.RewardNodes[n].active = !0;
                        var r = t.Items[0],
                            i = t.Items[1];
                        e._itemNodes[n].getComponent(_.ItemComponent).Init({
                            ItemId: r,
                            Count: i
                        }, _.ItemComponentType.ItemCommon)
                    })
                }, t.prototype.UpdateNodeActive = function() {
                    if (this.NormalNode.active = !this._isGaming, this.StartBottomNode.active = this._isGaming, !this._isGaming) {
                        var e, t = (e = this._model.IntArray.length > 0 ? this._configData.CustomPart.Count - this._model.IntArray[0] >= 0 ? this._configData.CustomPart.Count - this._model.IntArray[0] : 0 : this._configData.CustomPart.Count) > 0 ? "#ffffff" : "#ff4b4b";
                        this.RewalTimesLabel.string = "<color={0}>{1}</c><color=#ffffff>/{2}</color>".Fmt(t, e, this._configData.CustomPart.Count)
                    }
                }, t.prototype.LoadCards = function() {
                    var e = this,
                        t = this._preConfigPicture.split("_")[0];
                    if (t)
                        if (this._isStart) this._randomArr.forEach(function(n, o) {
                            if (n) {
                                if (!e._cellNodes[o]) {
                                    var r = cc.instantiate(e._cellPrefab);
                                    r.parent = e.ParentNode, e._cellNodes[o] = r, r.setSiblingIndex(o)
                                }
                                var i = e._itemImgs.getSpriteFrame(t + "_" + n);
                                e._cellNodes[o].setPosition(w[o][0], w[o][1]), e._cellNodes[o].getComponent(y.default).Init(o, n, i)
                            } else e._cellNodes[o] && e._cellNodes[o].destroy(), e._cellNodes[o] = null
                        });
                        else
                            for (var n = 0; n < 9; n++)
                                if (8 != n) {
                                    if (!this._cellNodes[n]) {
                                        var o = cc.instantiate(this._cellPrefab);
                                        o.parent = this.ParentNode, this._cellNodes[n] = o, o.setSiblingIndex(n)
                                    }
                                    var r = this._itemImgs.getSpriteFrame(t + "_" + (n + 1));
                                    this._cellNodes[n].setPosition(w[n][0], w[n][1]), this._cellNodes[n].getComponent(y.default).Init(n, n + 1, r)
                                } else this._cellNodes[n] && this._cellNodes[n].destroy(), this._cellNodes[n] = null
                }, t.prototype.SetRankList = function() {
                    var e = this;
                    this.RankComponent.InitUIForActivity(this._configData._id, "holyArea_rank".ToUILocale(), function(t) {
                        if (t) f.UIManager.Instance.ShowUIPanel(I.PanelConfig.IngenuityRankPanel.Path, t, e._configData._id);
                        else {
                            var n = new u.Req_Activity_GetRank;
                            n.ActivityId = e._configData._id, c.RpcComponent.Instance.Call(n, function(t) {
                                f.UIManager.Instance.ShowUIPanel(I.PanelConfig.IngenuityRankPanel.Path, t, e._configData._id)
                            }.bind(this))
                        }
                    })
                }, t.prototype.MoveByDirection = function(e, t, n) {
                    var o = this;
                    this._cellNodes[t] && (this.UpdateIsMoving(!0), cc.tween(this._cellNodes[t]).to(.3, {
                        position: cc.v3(e[0], e[1], 0)
                    }, {
                        easing: "backOut"
                    }).call(function() {
                        if (o._cellNodes[t].setSiblingIndex(n), o.Swap(o._cellNodes, t, n), t == o._cellNodes.length - 1 && o.CheckIsComplete()) {
                            o._isGaming = !1, o.isTiming = !1, o._isStart = !1, C.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !0, l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, C.BattleManager.Instance.ActivityCanShowBattleSettlePanel && C.BattleManager.Instance.CanShowBattleSettlePanel);
                            var e = new u.Req_Activity_IngenuitySettlement;
                            e.ActivityId = o._configData._id, e.Time = o._countDownTime, c.RpcComponent.Instance.Call(e, o.DealWithOk.bind(o), o.DealWithError.bind(o))
                        }
                        o.UpdateIndex(), o.UpdateIsMoving(!1)
                    }).start())
                }, t.prototype.DealWithOk = function(e) {
                    var t = d.default.ActivityTimeLeftFormat(this._countDownTime).split(":"),
                        n = (this._countDownTime / 1e3).toFixed(2).split(".")[1],
                        o = t[1] + ":" + t[2] + "." + n;
                    l.UIManager.Instance.ShowUIPanel(I.PanelConfig.IngenuityEndPanel.Path, o, e.MyRank, e.Rewards, this._configData)
                }, t.prototype.DealWithError = function(e) {
                    if (e == p.ErrCode.ActIngenuityDataError) {
                        var t = d.default.ActivityTimeLeftFormat(this._countDownTime).split(":"),
                            n = (this._countDownTime / 1e3).toFixed(2).split(".")[1],
                            o = t[1] + ":" + t[2] + "." + n;
                        l.UIManager.Instance.ShowUIPanel(I.PanelConfig.IngenuityEndPanel.Path, o, e, [], this._configData)
                    }
                }, t.prototype.CountDownThree = function() {
                    if (this._countDownThree--, this._countDownThree >= 0)
                        if (this._countDownThree > 0) {
                            var e = Math.round(this._countDownThree),
                                t = h.UIUtlity.COMMON_ATLAS2.getSpriteFrame(e.toString());
                            this.TimeImage.spriteFrame = t
                        } else t = h.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("go"), this.TimeImage.spriteFrame = t;
                    else this.CountDownNode.active = !1, this.unschedule(this.CountDownThree), this._lastServerTime = c.RpcComponent.Instance.ServerTime, this.isTiming = !0, this._isCountDowning = !1, this.UpdateNodeActive()
                }, t.prototype.CountDownActivityTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 && l.UIManager.Instance.BackUIPanel(), this.TimeValueLabel.string = "explore_time".ToUILocale().Fmt(d.default.ActivityTimeLeftFormat(t))
                }, t.prototype.CheckIsComplete = function() {
                    var e = this,
                        t = !0;
                    return this._cellNodes.forEach(function(n, o) {
                        n ? n.getComponent(y.default).cardId != o + 1 && (t = !1) : o != e._cellNodes.length - 1 && (t = !1)
                    }), t
                }, t.prototype.OnReturnButtonClick = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._isGaming = !1, this.isTiming = !1, this._lastServerTime = 0, l.UIManager.Instance.BackUIPanel(), [2]
                        })
                    })
                }, t.prototype.OnStartButtonClick = function() {
                    C.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !1, l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, C.BattleManager.Instance.ActivityCanShowBattleSettlePanel && C.BattleManager.Instance.CanShowBattleSettlePanel), this.CountDownNode.active = !0, this._isGaming = !0, this._isStart = !0, this._isCountDowning = !0, this.SetRandomArr(), this.LoadCards(), this.UpdateNodeActive(), this.unschedule(this.CountDownThree), this.schedule(this.CountDownThree, 1)
                }, t.prototype.OnReStartButtonClick = function() {
                    this._isCountDowning ? h.UIUtlity.ShowFloatingHint("ingenuity_countdown".ToUILocale()) : (this._isGaming = !0, this.ResetUIContent(), this.OnStartButtonClick())
                }, t.prototype.OnMoveItemCell = function(e) {
                    var t = this._cellNodes.findIndex(function(e) {
                        return null == e
                    });
                    if (t > -1) {
                        var n = t - e;
                        (3 == n || -3 == n || 1 == n && (e + 1) % 3 != 0 || -1 == n && e % 3 != 0) && this.MoveByDirection(w[t], e, t)
                    }
                }, t.prototype.ResetGame = function() {
                    this.ResetUIContent()
                }, t.prototype.ReStartGame = function() {
                    this.OnReStartButtonClick()
                }, t.prototype.OnItemClick = function(e, t) {
                    this.RewardNodes.forEach(function(e) {
                        -1 != e.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                    })
                }, t.prototype.Swap = function(e, t, n) {
                    var o = e[t];
                    e[t] = e[n], e[n] = o
                }, t.prototype.UpdateIndex = function() {
                    this._cellNodes.forEach(function(e, t) {
                        e && e.getComponent(y.default).SetIndex(t)
                    })
                }, t.prototype.UpdateIsMoving = function(e) {
                    this._cellNodes.forEach(function(t) {
                        t && t.getComponent(y.default).SetIsMoving(e)
                    })
                }, Object.defineProperty(t.prototype, "isTiming", {
                    set: function(e) {
                        this._isTiming = e, this._cellNodes.forEach(function(t) {
                            t && t.getComponent(y.default).SetIsGaming(e)
                        })
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "ingenuity_rule_main".ToUILocale(),
                        titles: ["ingenuity_rule_sub".ToUILocale()],
                        contents: ["ingenuity_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.onDestroy = function() {
                    C.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !0, l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, C.BattleManager.Instance.ActivityCanShowBattleSettlePanel && C.BattleManager.Instance.CanShowBattleSettlePanel), this.unscheduleAllCallbacks()
                }, i([S(cc.Label)], t.prototype, "TitleLabel", void 0), i([S(cc.Label)], t.prototype, "ActivityTimeLabel", void 0), i([S(cc.Label)], t.prototype, "TimeValueLabel", void 0), i([S(cc.Label)], t.prototype, "TipsLabel", void 0), i([S(cc.Sprite)], t.prototype, "HeroImage", void 0), i([S(m.default)], t.prototype, "RankComponent", void 0), i([S(cc.Label)], t.prototype, "RewardLabel", void 0), i([S(cc.Node)], t.prototype, "RewardNodes", void 0), i([S(cc.Node)], t.prototype, "ParentNode", void 0), i([S(cc.Node)], t.prototype, "CountDownNode", void 0), i([S(cc.Sprite)], t.prototype, "TimeImage", void 0), i([S(cc.Node)], t.prototype, "NormalNode", void 0), i([S(cc.Label)], t.prototype, "TimesLabel", void 0), i([S(cc.RichText)], t.prototype, "RewalTimesLabel", void 0), i([S(cc.Node)], t.prototype, "StartBottomNode", void 0), i([S(cc.Label)], t.prototype, "TimeLabel", void 0), i([S(cc.Button)], t.prototype, "ReStartButton", void 0), i([S(cc.Label)], t.prototype, "ReStartLabel", void 0), i([S(cc.Button)], t.prototype, "StartButton", void 0), i([S(cc.Label)], t.prototype, "StartLabel", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([b], t)
            }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent",
        "./IngenuityItem": "IngenuityItem"
    }],
    IngenuityRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7331d+YW/xPGJRtWTHWMr+4", "IngenuityRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/RankDetailComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1, !1), t.Title = null, t.CenterNode = null, t.ReturnButton = null, t._rankData = null, t._activityId = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("RankPanel/Private/RankDetailComponent")];
                                case 1:
                                    return t._rankPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUI()
                }, t.prototype.SetUI = function() {
                    this._rank_detail_item.SetUI(this._activityId, this._rankData.Rows, this._rankData.MyRank, this._rankData.MyRankData, !1, !0)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rankData = t[0], this._activityId = t[1]
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "holyArea_rank".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(this._rankPrefab);
                    e.setParent(this.CenterNode), this._rank_detail_item = e.getComponent(c.default)
                }, t.prototype.OnEvent = function() {
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.OnReturnButtonClick = function() {
                    this.Close()
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "CenterNode", void 0), i([d(cc.Button)], t.prototype, "ReturnButton", void 0), i([p], t)
            }(l.BaseUIFullScreenPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/RankDetailComponent": "RankDetailComponent"
    }],
    InitHelper: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e714ezIyMVMdaVrNM18OLsr", "InitHelper");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.InitHelper = void 0;
        var i = e("../Consts/Consts"),
            a = e("../EZFramework/EZFramework"),
            s = e("./Auxiliary/GlobalDefine"),
            l = e("./Components/Components"),
            c = e("./RedDot/RedDotManager"),
            u = e("./UI/Auxiliary/UIUtlity"),
            p = e("./Auxiliary/GuideManager"),
            d = e("../EZFramework/EZFramework"),
            h = e("./Channel/ChannelManager"),
            f = e("./Auxiliary/EventKeys"),
            y = e("./Auxiliary/GameRecord"),
            g = e("../Util/StringUtil"),
            m = e("../../Proto/Static/RpcProto"),
            I = e("../Tool/Tool"),
            _ = e("../Util/TimeUtil"),
            C = e("./Channel/AdjustAction"),
            v = e("./UI/Auxiliary/CanvasBg"),
            b = e("../EZFramework/Components/RealTimeScheduler"),
            S = function() {
                function e() {}
                return e.Init = function(t) {
                    return o(this, void 0, void 0, function() {
                        var n;
                        return r(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return o.trys.push([0, 2, , 3]), cc.log("Init..."), a.Game.Scene.AddComponent(a.OpCodeComponent), a.Game.Scene.AddComponent(a.TimerComponent), a.Game.Scene.AddComponent(l.GlobalConfigComponent), a.Game.Scene.AddComponent(l.DataCenter), a.Game.Scene.AddComponent(l.RpcComponent, e.LogOut.bind(e)), a.Game.Scene.AddComponent(l.ConfigDataComponent), a.Game.Scene.AddComponent(l.ConfigCacheComponent), a.Game.Scene.AddComponent(l.HotUpdateComponent), cc.sys.isNative ? a.Game.Scene.AddComponent(l.ConfigDownloaderNativeComponent) : a.Game.Scene.AddComponent(l.ConfigDownloaderComponent), b.RealTimeScheduler.SetRpcComponent(l.RpcComponent.Instance), e.BeforeInit(), [4, u.UIUtlity.LoadMaskPanel()];
                                case 1:
                                    return o.sent(), a.EZLog.Log("Init Complete ..."), a.UIManager.Instance.ShowUIPanel(s.PanelConfig.LoginPanel.Path, t), [3, 3];
                                case 2:
                                    return n = o.sent(), cc.error(n), [3, 3];
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, e.BeforeInit = function() {
                    switch (l.GlobalConfigComponent.Instance.Channel = i.GameChannels.G123JP_WebMobile, l.GlobalConfigComponent.Instance.ClientVersion = "1.0.0", l.GlobalConfigComponent.Instance.AssetVersion = 550, l.GlobalConfigComponent.Instance.Channel) {
                        case i.GameChannels.G123JP_WebMobile:
                            l.GlobalConfigComponent.Instance.Locale = i.GameLocales.Jp, h.default.Instance.IsG123Live() ? l.GlobalConfigComponent.Instance.ServerAddress = i.GameServerAddresses.HighSchoolLive : h.default.Instance.IsG123DEV ? l.GlobalConfigComponent.Instance.ServerAddress = i.GameServerAddresses.HighSchoolPublicTest2 : l.GlobalConfigComponent.Instance.ServerAddress = i.GameServerAddresses.HighSchoolPublicTest1;
                            break;
                        case i.GameChannels.VN_iOS:
                        case i.GameChannels.VN_Android:
                            l.GlobalConfigComponent.Instance.Locale = i.GameLocales.Cn, l.GlobalConfigComponent.Instance.ServerAddress = i.GameServerAddresses.VnTest1;
                            break;
                        case i.GameChannels.VN_WebMobile:
                            l.GlobalConfigComponent.Instance.Locale = i.GameLocales.VI, l.GlobalConfigComponent.Instance.ServerAddress = h.default.Instance.GetVNMobileServerAddress();
                            break;
                        default:
                            l.GlobalConfigComponent.Instance.Locale = i.GameLocales.Cn, l.GlobalConfigComponent.Instance.ServerAddress = i.GameServerAddresses.LocalTest1
                    }
                    d.AssetsManager.Instance.UseAssetBundle = !0, h.default.Instance.IsVNChannel() ? (C.default.LoadAdjustSDK(), this.LoadFirebaseSDK()) : this.LoadG123SDK(), u.UIUtlity.InitPanelConfig(), c.RedDotManager.Instance.Init(), p.default.Instance.Init(), v.default.Instance.Init()
                }, e.LoadG123SDK = function() {
                    switch (l.GlobalConfigComponent.Instance.Channel) {
                        case i.GameChannels.G123JP_WebMobile:
                            var e;
                            h.default.Instance.IsG123Live() ? ((e = document.createElement("script")).src = "https://platform-sc.g123.jp/cp-sdk/g123-cp-sdk.umd.js", document.body.appendChild(e)) : ((e = document.createElement("script")).src = "https://platform-sc.stg.g123.jp/cp-sdk/g123-cp-sdk.umd.js", document.body.appendChild(e))
                    }
                }, e.LoadFirebaseSDK = function() {
                    return o(this, void 0, void 0, function() {
                        function e(e) {
                            return new Promise(function(t, n) {
                                var o = document.createElement("script");
                                o.id = "firebase-compat", o.type = "text/javascript", o.onload = t, o.onerror = n, o.src = e, document.body.appendChild(o)
                            })
                        }
                        return r(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return cc.sys.isNative ? [2] : document.getElementById("firebase-compat") ? [2] : [4, e("https://www.gstatic.com/firebasejs/10.4.0/firebase-app-compat.js")];
                                case 1:
                                    return t.sent(), [4, e("https://www.gstatic.com/firebasejs/10.4.0/firebase-analytics-compat.js")];
                                case 2:
                                    return t.sent(), this.FirebaseInitializeApp(), [2]
                            }
                        })
                    })
                }, e.FirebaseInitializeApp = function() {
                    window.firebase.initializeApp({
                        apiKey: "AIzaSyB6iZEP_3xsJvl88ELrFy6d4qn4Cevd9WY",
                        authDomain: "ggo-milde.firebaseapp.com",
                        projectId: "ggo-milde",
                        storageBucket: "ggo-milde.appspot.com",
                        messagingSenderId: "628062661632",
                        appId: "1:628062661632:web:3748de60d8d593d30a7ce5",
                        measurementId: "G-0X6E35QYDX"
                    }), window.firebase.analytics()
                }, e.LogOut = function(t) {
                    void 0 === t && (t = !0), a.UIManager.Instance.CloseAllPanels(), a.AudioManager.Instance.StopMusic(), h.default.Instance.PostMessage(h.ActionType.Logout), C.default.AdjustTrackEvent(C.AdjustEventToken.Logout), a.Game.EventDispatcher.Emit(f.EventKeys.EVENT_GAME_LOG_OUT), a.Game.Close(), e.Init(t)
                }, e.RestartWeb = function() {
                    switch (l.GlobalConfigComponent.Instance.Channel) {
                        case i.GameChannels.G123JP_WebMobile:
                            window.top.postMessage(JSON.stringify({
                                action: "reload"
                            }), "*");
                            break;
                        default:
                            window.location.reload()
                    }
                }, Object.defineProperty(e, "ClientEventId", {
                    get: function() {
                        var e = y.default.GetItem(y.GameRecordDefine.ClientEvent);
                        return e || (e = g.StringUtil.GetRandStr(32), y.default.SetItem(y.GameRecordDefine.ClientEvent, e)), e
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.PostGameMessage = function(t) {
                    if (y.default.GetItem(y.GameRecordDefine.ClientEvent) || (e.NeedPostGameMessage = !0), e.NeedPostGameMessage) {
                        var n = l.GlobalConfigComponent.Instance.ServerAddress + "/client_event",
                            o = new m.Req_Web_ClientEvent;
                        o.Param = l.GlobalConfigComponent.Instance.CreateWebCommonParam(i.GlobalSetting.RPC_SECRET_CODE), o.Id = e.ClientEventId, o.Action = t, o.Ts = _.TimeUtil.Now(), h.default.Instance.PostCustomMessage(h.ActionType.Init, t);
                        try {
                            I.HttpTool.SendPostRequest(n, m.Req_Web_ClientEvent.encode(o).finish())
                        } catch (r) {
                            a.EZLog.Error(r)
                        }
                        t == h.GameClientAction.RequestLogin && (e.NeedPostGameMessage = !1)
                    }
                }, e.NeedPostGameMessage = !1, e
            }();
        n.InitHelper = S, cc._RF.pop()
    }, {
        "../../Proto/Static/RpcProto": "RpcProto",
        "../Consts/Consts": "Consts",
        "../EZFramework/Components/RealTimeScheduler": "RealTimeScheduler",
        "../EZFramework/EZFramework": "EZFramework",
        "../Tool/Tool": "Tool",
        "../Util/StringUtil": "StringUtil",
        "../Util/TimeUtil": "TimeUtil",
        "./Auxiliary/EventKeys": "EventKeys",
        "./Auxiliary/GameRecord": "GameRecord",
        "./Auxiliary/GlobalDefine": "GlobalDefine",
        "./Auxiliary/GuideManager": "GuideManager",
        "./Channel/AdjustAction": "AdjustAction",
        "./Channel/ChannelManager": "ChannelManager",
        "./Components/Components": "Components",
        "./RedDot/RedDotManager": "RedDotManager",
        "./UI/Auxiliary/CanvasBg": "CanvasBg",
        "./UI/Auxiliary/UIUtlity": "UIUtlity"
    }],
    Init: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8f4f1OEvaVPKppynip6aa0Y", "Init");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, e("../EZFramework/EZFramework")),
            c = e("./Channel/ChannelManager"),
            u = e("./InitHelper"),
            p = function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.onLoad = function() {
                    cc.log("onLoad")
                }, t.prototype.start = function() {
                    this.CheckWebpSupportState(), this.CheckLocalStorage(), u.InitHelper.Init(), u.InitHelper.PostGameMessage(c.GameClientAction.InitGame)
                }, t.prototype.update = function(e) {
                    try {
                        l.Game.EventSystem.OnUpdate(e)
                    } catch (t) {
                        l.EZLog.Error(t)
                    }
                }, t.prototype.lateUpdate = function() {
                    try {
                        l.Game.EventSystem.OnLateUpdate()
                    } catch (e) {
                        l.EZLog.Error(e)
                    }
                }, t.prototype.createMemStorage = function() {
                    var e = {
                        get length() {
                            return Object.keys(e).length
                        },
                        setItem: function(t, n) {
                            e[t] = String(n)
                        },
                        getItem: function(t) {
                            return e[t]
                        },
                        key: function(t) {
                            return Object.keys(e)[t]
                        },
                        removeItem: function(t) {
                            delete e[t]
                        },
                        clear: function() {
                            for (var t in e) - 1 == ["length", "setItem", "getItem", "key", "removeItem", "clear"].indexOf(t) && delete e[t];
                            return console.log(e), e
                        }
                    };
                    return e
                }, t.prototype.CheckLocalStorage = function() {
                    try {
                        if (cc.sys.localStorage.setItem("__test_key__", "testVal"), "testVal" != cc.sys.localStorage.getItem("__test_key__")) throw new Error("")
                    } catch (e) {
                        l.EZLog.Warn("localStorage is not available, use memory storage."), cc.sys.localStorage = this.createMemStorage()
                    }
                }, t.prototype.CheckWebpSupportState = function() {
                    var e, t;
                    cc.sys.isBrowser && cc.sys.os === cc.sys.OS_IOS && (e = function(e) {
                        cc.sys.capabilities.webp = e
                    }, (t = new Image).onload = t.onerror = function() {
                        var n = 2 === t.height;
                        e(n)
                    }, t.src = "data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA")
                }, i([s], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../EZFramework/EZFramework": "EZFramework",
        "./Channel/ChannelManager": "ChannelManager",
        "./InitHelper": "InitHelper"
    }],
    IntelligenceDispatchPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ddb4cZNHO9PPqOlWg92IC08", "IntelligenceDispatchPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            l = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var c = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/HeroListComponent"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/ConfigData/ConfigDataComponent"),
            y = e("../../Components/DataCenter"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Components/ItemComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("../Components/ShowDispathHeroItem"),
            v = e("../Components/CustomLayout"),
            b = e("../../../Util/AppUtil"),
            S = e("../../Components/RpcComponent"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../../../Consts/Consts"),
            A = e("../Components/LevelComponent2"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Tip), t.Tittle = null, t.Condition = null, t.Tag = null, t.HeroListComponent = null, t.HeroListGrid = null, t.StarIcon = null, t.StarLabel = null, t.LevelComponent2 = null, t.ElementIcon = null, t.ConditionNode = null, t.HeroShowNode = null, t.BtnDispatch = null, t.DispatchBtnLabel = null, t.BtnDispatchDisable = null, t.DispatchBtnDisableLabel = null, t.BtnDispatchOneKey = null, t.DistapcthOneKeyBtnLabel = null, t.HERO_ITEM_PATH = "IntelligencePanel/Private/ShowDispathHeroItem", t._dispatchHerosArray = [], t._dispatchHerosObj = {}, t._selectHeroObj = {}, t._dispatchHerosNodes = [], t._elementIconObj = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.HERO_ITEM_PATH, cc.Prefab)];
                                case 1:
                                    return t._showHeroPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "intelligence_dispatch_tittle".ToUILocale(), this.Tag.string = "intelligence_dispatch_tag".ToUILocale(), this.DispatchBtnLabel.string = "intelligence_dispatch".ToUILocale(), this.DistapcthOneKeyBtnLabel.string = "intelligence_dispatch_onekey".ToUILocale(), this.DispatchBtnDisableLabel.string = "intelligence_dispatch".ToUILocale(), this.Condition.string = "IntelligenceHeroSelect_condition".ToUILocale(), this.BtnDispatch.node.on("click", this.OnBtnDispatchClick, this), this.BtnDispatchDisable.node.on("click", this.OnBtnDispatchDisableClick, this), this.BtnDispatchOneKey.node.on("click", this.OnBtnDispatchOneKeyClick, this), this.StarIcon.node.on(cc.Node.EventType.TOUCH_END, this.onStarClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._task = y.DataCenter.Instance.GetDataById(d.IntelligenceTask_Model, t[1]), this._taskConfig = f.ConfigDataComponent.Instance.GetConfigById(h.IntelligenceTask_Config, this._task.TaskId);
                    for (var n = 0, o = y.DataCenter.Instance.GetDataList(d.IntelligenceTask_Model); n < o.length; n++)
                        for (var r = 0, i = o[n].HeroIds; r < i.length; r++) {
                            var a = i[r];
                            this._dispatchHerosArray.push(a), this._dispatchHerosObj[a] = !0
                        }
                    this.InitHeroListComponent()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetConditionUI(), this.LoadShowHeroItem(), this.CheckDispathCondition()
                }, t.prototype.InitHeroListComponent = function() {
                    var e = y.DataCenter.Instance.GetDataList(d.UserHero_Model);
                    w.default.Instance.SortData(P.SortDataType.Hero, e, [{
                        Items: l([P.SortType.AppointSid, 1], this._dispatchHerosArray)
                    }, {
                        Items: [P.SortType.StarLevel, -1]
                    }, {
                        Items: [P.SortType.ElementType, 1]
                    }, {
                        Items: [P.SortType.HeroId, 1]
                    }]), this.HeroListComponent.Init(p.HeroListType.Normal, {
                        HeroesData: e
                    }), this.HeroListComponent.SetItemClickCallback(this.OnClickHero.bind(this))
                }, t.prototype.SetConditionUI = function() {
                    I.UIUtlity.OnSpriteGray(this.StarIcon), this._elementIconObj = {};
                    var e = this._taskConfig.Requirements[0];
                    if (this.LevelComponent2.Init(e, 0, A.LevelComponent2Type.Orange), e <= 5 ? this.LevelComponent2.Init(e, 0, A.LevelComponent2Type.Orange) : e <= 10 ? this.LevelComponent2.Init(e - 5, 0, A.LevelComponent2Type.Purple) : this.LevelComponent2.Init(e - 10, 0, A.LevelComponent2Type.Red), this.StarLabel.string = e.toString(), this.StarIcon.node.name = e.toString(), this._elementIconObj[1] = this.ElementIcon, this._taskConfig.Requirements.length <= 1) this.ElementIcon.node.active = !1;
                    else
                        for (var t = 1; t < this._taskConfig.Requirements.length; t++) {
                            var n = this._taskConfig.Requirements[t];
                            if (null == this._elementIconObj[t]) {
                                var o = cc.instantiate(this.ElementIcon.node);
                                o.name = n.toString(), o.parent = this.ConditionNode, o.on(cc.Node.EventType.TOUCH_END, this.OnElementIconClick, this), this._elementIconObj[t] = o.getComponent(cc.Sprite)
                            }
                            this._elementIconObj[t].spriteFrame = I.UIUtlity.GetHeroElementIcon(n), I.UIUtlity.OnSpriteGray(this._elementIconObj[t])
                        }
                }, t.prototype.onStarClick = function(e) {
                    I.UIUtlity.ShowCommonTips("intelligence_star_need".ToUILocale().Fmt(e.target.name), 1, e.getLocation())
                }, t.prototype.OnElementIconClick = function(e) {
                    var t = ("hero_element_" + e.target.name).ToUILocale();
                    I.UIUtlity.ShowCommonTips("intelligence_element_need".ToUILocale().Fmt(t), 1, e.getLocation())
                }, t.prototype.LoadShowHeroItem = function() {
                    for (var e = 0; e < this._dispatchHerosNodes.length; e++) this._dispatchHerosNodes[e].node.active = !1;
                    for (e = 0; e < 2; e++) {
                        if (null == this._dispatchHerosNodes[e]) {
                            var t = cc.instantiate(this._showHeroPrefab);
                            t.parent = this.HeroShowNode, this._dispatchHerosNodes[e] = t.getComponent(C.default)
                        }
                        this._dispatchHerosNodes[e].node.active = !0, this._dispatchHerosNodes[e].SetUI(0)
                    }
                }, t.prototype.OnClickHero = function(e, t) {
                    if (this._dispatchHerosObj[e]) I.UIUtlity.ShowFloatingHint("intelligence_hero_has_dispatch".ToUILocale());
                    else {
                        for (var n = -1, o = -1, r = 0; r < this._taskConfig.Requirements.length; r++) {
                            var i = this._selectHeroObj[r];
                            i ? i.Sid == e && (n = r) : -1 == o && (o = r)
                        } - 1 == n ? -1 != o ? (t.getComponent(m.ItemComponent).SetSelectFlagState(!0), this._selectHeroObj[o] = y.DataCenter.Instance.GetDataById(d.UserHero_Model, e), this._dispatchHerosNodes[o].SetUI(e), this.CheckDispathCondition()) : I.UIUtlity.ShowFloatingHint("intelligence_dispatch_count_limit".ToUILocale()) : (this._dispatchHerosNodes[n].SetUI(0), delete this._selectHeroObj[n], t.getComponent(m.ItemComponent).SetSelectFlagState(!1), this.CheckDispathCondition())
                    }
                }, t.prototype.CheckDispathCondition = function() {
                    var e = !1,
                        t = !1,
                        n = this._taskConfig.Requirements[0],
                        o = this._taskConfig.Requirements.slice(1);
                    for (var r in this._selectHeroObj) {
                        var i = this._selectHeroObj[r];
                        i.StarLevel >= n && (e = !0);
                        var a = f.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, i.HeroId); - 1 != (s = o.indexOf(a.ElementType)) && o.splice(s, 1)
                    }
                    for (0 == o.length && (t = !0), e && t ? (this.BtnDispatch.node.active = !0, this.BtnDispatchDisable.node.active = !1) : (this.BtnDispatch.node.active = !1, this.BtnDispatchDisable.node.active = !0), e ? I.UIUtlity.OffSpriteGray(this.StarIcon) : I.UIUtlity.OnSpriteGray(this.StarIcon), r = this._taskConfig.Requirements.length - 1; r > 0; r--) {
                        var s, l = this._taskConfig.Requirements[r]; - 1 != (s = o.indexOf(l)) ? (o.splice(s, 1), I.UIUtlity.OnSpriteGray(this._elementIconObj[r])) : I.UIUtlity.OffSpriteGray(this._elementIconObj[r])
                    }
                }, t.prototype.UnSelectHero = function(e) {
                    var t = this.HeroListGrid.node.getChildByName(e.toString());
                    for (var n in null != t && t.getComponent(m.ItemComponent).SetSelectFlagState(!1), this._selectHeroObj) this._selectHeroObj[n].Sid == e && delete this._selectHeroObj[n];
                    this.CheckDispathCondition()
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (this.HeroListGrid == t) {
                        var o = {};
                        for (var r in this._selectHeroObj) {
                            var i = this._selectHeroObj[r];
                            o[i.Sid] = !0
                        }
                        e.forEach(function(e) {
                            var t = e.getComponent(m.ItemComponent),
                                r = b.AppUtil.ToInt(t.node.name);
                            o[r] ? t.SetSelectFlagState(!0) : t.SetSelectFlagState(!1), n._dispatchHerosObj[r] ? t.EnableHeroMask() : t.DisableHeroMask()
                        })
                    }
                }, t.prototype.OnBtnDispatchOneKeyClick = function() {
                    var e = w.default.Instance.SelectIntelligenceTaskHeros(this._task.Sid, this._dispatchHerosArray);
                    if (0 == e.Status) {
                        for (var t in this._selectHeroObj) {
                            var n = this._selectHeroObj[t];
                            null != (o = this.HeroListGrid.node.getChildByName(n.Sid.toString())) && o.getComponent(m.ItemComponent).SetSelectFlagState(!1), this._dispatchHerosNodes[t].SetUI(0)
                        }
                        for (this._selectHeroObj = {}, t = 0; t < e.Heros.length; t++) {
                            var o, r = e.Heros[t].Sid;
                            null != (o = this.HeroListGrid.node.getChildByName(r.toString())) && o.getComponent(m.ItemComponent).SetSelectFlagState(!0), this._selectHeroObj[t] = e.Heros[t], this._dispatchHerosNodes[t].SetUI(e.Heros[t].Sid)
                        }
                        this.CheckDispathCondition()
                    } else I.UIUtlity.ShowFloatingHint("intelligence_dispatch_onkey_fail".ToUILocale())
                }, t.prototype.OnBtnDispatchClick = function() {
                    var e = new d.Req_Intelligence_Dispatch;
                    for (var t in e.Tasks = [{
                            Items: [this._task.Sid]
                        }], this._selectHeroObj) {
                        var n = this._selectHeroObj[t];
                        e.Tasks[0].Items.push(n.Sid)
                    }
                    S.RpcComponent.Instance.Call(e, this.ResponseDispatchHero.bind(this))
                }, t.prototype.ResponseDispatchHero = function() {
                    I.UIUtlity.ShowFloatingHint("intelligence_dispatch_success".ToUILocale()), _.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnDispatchDisableClick = function() {
                    I.UIUtlity.ShowFloatingHint("intelligence_dispatch _disable".ToUILocale())
                }, i([L(cc.Label)], t.prototype, "Tittle", void 0), i([L(cc.Label)], t.prototype, "Condition", void 0), i([L(cc.Label)], t.prototype, "Tag", void 0), i([L(p.default)], t.prototype, "HeroListComponent", void 0), i([L(v.default)], t.prototype, "HeroListGrid", void 0), i([L(cc.Sprite)], t.prototype, "StarIcon", void 0), i([L(cc.Label)], t.prototype, "StarLabel", void 0), i([L(A.default)], t.prototype, "LevelComponent2", void 0), i([L(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([L(cc.Node)], t.prototype, "ConditionNode", void 0), i([L(cc.Node)], t.prototype, "HeroShowNode", void 0), i([L(cc.Button)], t.prototype, "BtnDispatch", void 0), i([L(cc.Label)], t.prototype, "DispatchBtnLabel", void 0), i([L(cc.Button)], t.prototype, "BtnDispatchDisable", void 0), i([L(cc.Label)], t.prototype, "DispatchBtnDisableLabel", void 0), i([L(cc.Button)], t.prototype, "BtnDispatchOneKey", void 0), i([L(cc.Label)], t.prototype, "DistapcthOneKeyBtnLabel", void 0), i([R], t)
            }(c.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroListComponent": "HeroListComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent2": "LevelComponent2",
        "../Components/ShowDispathHeroItem": "ShowDispathHeroItem"
    }],
    IntelligenceListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "655312TNidIpaEQyUoFBWC6", "IntelligenceListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.IntelligenceQualityType = n.DispatchState = void 0;
        var l, c, u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/DataCenter"),
            h = e("../../Components/ConfigData/ConfigDataComponent"),
            f = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./ItemComponent"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../../Components/RpcComponent"),
            C = e("../../../Consts/Etc"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("./CustomProgressBar"),
            P = e("../../Auxiliary/DataUtlity"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.NotDispatch = 1] = "NotDispatch", e[e.HasDispatch = 0] = "HasDispatch", e[e.Complete = 2] = "Complete"
        })(l = n.DispatchState || (n.DispatchState = {})),
        function(e) {
            e[e.D = 1] = "D", e[e.C = 2] = "C", e[e.B = 3] = "B", e[e.A = 4] = "A", e[e.S = 5] = "S", e[e.SS = 6] = "SS"
        }(c = n.IntelligenceQualityType || (n.IntelligenceQualityType = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.TittleLabel = null, t.TittleOutline = null, t.FlagBg = null, t.QualityDescLabel = null, t.RewardItemGrid = null, t.TimeProgress = null, t.TimeShowLabel = null, t.BtnFast = null, t.FastBtnLabel = null, t.DiamondIcon = null, t.DiamondCost = null, t.BtnDispatch = null, t.DispatchBtnLabel = null, t.DispatchCurrencyIcon = null, t.DispatchCost = null, t.BtnComplete = null, t.CompleteBtnLabel = null, t.COLOR_QUALITYS = [new cc.Color(129, 81, 28), new cc.Color(30, 129, 28), new cc.Color(28, 80, 129), new cc.Color(87, 28, 129), new cc.Color(129, 81, 28), new cc.Color(129, 28, 28)], t.UI_STYLE_PREFEIX = "small_tittle_", t._isInit = !1, t._itemIndex = 0, t._commonItemPrefab = null, t._itemTable = [], t._intelligenceSprite = null, t._diamondSprite = null, t._speedUpCost = null, t._currSpeedUpPrice = 0, t._currDispatchState = l.NotDispatch, t._assets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                I.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                I.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.RewardItemGrid.node.children.indexOf(t) && v.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.SetUI = function(e, t) {
                this._userData = e, this._itemIndex = t, this.LoadConfig(), this._isInit || (this._isInit = !0, this.LoadLevelParamData(), this.SetStaticLocalText(), this.SetClickEvent()), this.SetUIStyle(), this.SetTittle(), this.SetQualityDesc(), this.LoadRewardItem(), this.SetBtnState(), this.SetProgress()
            }, t.prototype.LoadLevelParamData = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, m.LevelParamType.IntelligenceSpeedUpCost);
                this._speedUpCost = e.Data
            }, t.prototype.SetStaticLocalText = function() {
                this.FastBtnLabel.string = "intelligence_speedup".ToUILocale(), this.DispatchBtnLabel.string = "intelligence_dispatch".ToUILocale(), this.CompleteBtnLabel.string = "intelligence_complete".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnFast.node.on("click", this.OnBtnFastClick, this), this.BtnDispatch.node.on("click", this.OnBtnDispatchClick, this), this.BtnComplete.node.on("click", this.OnBtnCompleteClick, this)
            }, t.prototype.LoadConfig = function() {
                this._taskConfig = h.ConfigDataComponent.Instance.GetConfigById(u.IntelligenceTask_Config, this._userData.TaskId), this._qualityConfig = h.ConfigDataComponent.Instance.GetConfigById(u.IntelligenceQuality_Config, this._taskConfig.QualityId)
            }, t.prototype.SetUIStyle = function() {
                var e = this.GetUIStylePath();
                this.FlagBg.spriteFrame = v.UIUtlity.COMMON_ATLAS4.getSpriteFrame(e)
            }, t.prototype.GetUIStylePath = function() {
                var e;
                switch (this._qualityConfig.Id) {
                    case c.D:
                        e = "gray";
                        break;
                    case c.C:
                        e = "green";
                        break;
                    case c.B:
                        e = "blue";
                        break;
                    case c.A:
                        e = "purple";
                        break;
                    case c.S:
                        e = "orange";
                        break;
                    case c.SS:
                        e = "red"
                }
                return "" + this.UI_STYLE_PREFEIX + e
            }, t.prototype.SetTittle = function() {
                this.TittleLabel.string = this._taskConfig.Id.ToIntelligenceDesc()
            }, t.prototype.SetQualityDesc = function() {
                this.QualityDescLabel.string = this._qualityConfig.Id.ToIntelligenceQualityName()
            }, t.prototype.LoadRewardItem = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return null != this._commonItemPrefab ? [3, 2] : [4, f.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent, cc.Prefab)];
                            case 1:
                                if (e = i.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._commonItemPrefab = e, this._assets.push(e), i.label = 2;
                            case 2:
                                if (null != this._commonItemPrefab) {
                                    for (t = 0; t < this._itemTable.length; t++) this._itemTable[t].node.active = !1;
                                    for (t = 0; t < this._taskConfig.Rewards.length; t++) null == this._itemTable[t] && ((n = cc.instantiate(this._commonItemPrefab).getComponent(g.ItemComponent)).node.parent = this.RewardItemGrid.node, this._itemTable[t] = n), o = this._taskConfig.Rewards[t].Items[0], r = this._taskConfig.Rewards[t].Items[1], this._itemTable[t].node.name = o.toString(), this._itemTable[t].Init({
                                        ItemId: o,
                                        Count: r
                                    }, g.ItemComponentType.ItemCommon), this._itemTable[t].SetCountFontSize(22, 120), this._itemTable[t].node.active = !0
                                }
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetBtnState = function() {
                this.BtnDispatch.node.active = !1, this.BtnFast.node.active = !1, this.BtnComplete.node.active = !1, this.unscheduleAllCallbacks(), this._userData.DispatchTime <= 0 ? (this.BtnDispatch.node.active = !0, this.SetDispatchIcon(), this.SetDispatchCost(), this.SetFixedTime(), this._currDispatchState = l.NotDispatch) : this.GetDispatchTimeSpan() < this._qualityConfig.Hour * C.Etc.HourDuration ? (this.BtnFast.node.active = !0, this.SetDiamondIcon(), this.SetDiamondCost(), this.SetCountDown(), this._currDispatchState = l.HasDispatch) : (this.BtnComplete.node.active = !0, this.TimeShowLabel.string = "00:00:00", this._currDispatchState = l.Complete)
            }, t.prototype.SetProgress = function() {
                if (this._userData.DispatchTime > 0) {
                    var e = this.GetDispatchTimeSpan(),
                        t = this._qualityConfig.Hour * C.Etc.HourDuration;
                    this.TimeProgress.progress = e / t
                } else this.TimeProgress.progress = 0
            }, t.prototype.SetFixedTime = function() {
                this.TimeShowLabel.string = "" + this._qualityConfig.Hour + "hour".ToUILocale()
            }, t.prototype.SetCountDown = function() {
                var e = this;
                this.unscheduleAllCallbacks(), this.SetDispatchTimeShow(), this.schedule(function() {
                    e.SetDispatchTimeShow()
                }, 1)
            }, t.prototype.SetDispatchTimeShow = function() {
                this.TimeShowLabel.string = this.GetDispatchTimeStr()
            }, t.prototype.GetDispatchTimeStr = function() {
                var e = this.GetDispatchTimeSpan(),
                    t = this._qualityConfig.Hour * C.Etc.HourDuration - e;
                if (t <= 0) {
                    this.unscheduleAllCallbacks(), t = 0, this.SetBtnState();
                    var n = b.UIManager.Instance.GetUIPanel(y.PanelConfig.IntelligencePanel.Path);
                    n.ReloadUserData(!1), n.SetOneKeyBtnState()
                }
                return t.FmtRemainTime()
            }, t.prototype.GetDispatchTimeSpan = function() {
                var e = _.RpcComponent.Instance.ServerTime - this._userData.DispatchTime;
                return Math.max(e, 0)
            }, t.prototype.SetDispatchIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.DispatchCurrencyIcon.spriteFrame = null, null != this._intelligenceSprite ? [3, 2] : (e = P.default.Instance.GetItemPathById(m.CommonItemId.Intelligence), [4, f.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)]);
                            case 1:
                                if (t = n.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(t), [2];
                                this._intelligenceSprite = t, this._assets.push(t), n.label = 2;
                            case 2:
                                return this.DispatchCurrencyIcon.spriteFrame = this._intelligenceSprite, [2]
                        }
                    })
                })
            }, t.prototype.SetDispatchCost = function() {
                this.DispatchCost.string = this._taskConfig.Price.toString()
            }, t.prototype.SetDiamondIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.DiamondIcon.spriteFrame = null, null != this._diamondSprite ? [3, 2] : (e = P.default.Instance.GetItemPathById(m.CommonItemId.Diamond), [4, f.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)]);
                            case 1:
                                if (t = n.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(t), [2];
                                this._diamondSprite = t, this._assets.push(t), n.label = 2;
                            case 2:
                                return this.DiamondIcon.spriteFrame = this._diamondSprite, [2]
                        }
                    })
                })
            }, t.prototype.SetDiamondCost = function() {
                for (var e = _.RpcComponent.Instance.ServerTime - this._userData.DispatchTime, t = this._qualityConfig.Hour * C.Etc.HourDuration - e, n = 0, o = 0; o < this._speedUpCost.length; o++) {
                    var r = this._speedUpCost[o];
                    if (t <= (o + 1) * C.Etc.HourDuration) {
                        n = r;
                        break
                    }
                }
                0 == n && (n = this._speedUpCost[this._speedUpCost.length - 1]), this._currSpeedUpPrice = n, this.DiamondCost.string = n.toString()
            }, t.prototype.OnBtnFastClick = function() {
                var e = this;
                this.SetDiamondCost();
                var t = m.CommonItemId.Diamond.ToItemName(),
                    n = "intelligence_hint_speedup".ToUILocale().Fmt(this._currSpeedUpPrice, t);
                v.UIUtlity.ShowHintPanel("", n, "", null, "", function() {
                    e._currDispatchState != l.Complete ? d.DataCenter.Instance.IsItemEnough(m.CommonItemId.Diamond, e._currSpeedUpPrice) ? e.RequestSpeedUp() : v.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t)) : v.UIUtlity.ShowFloatingHint("intelligence_not_need_speedup".ToUILocale())
                })
            }, t.prototype.RequestSpeedUp = function() {
                var e = new p.Req_Intelligence_SpeedUp;
                e.Sid = this._userData.Sid, _.RpcComponent.Instance.Call(e, this.ResponseSpeedUp.bind(this))
            }, t.prototype.ResponseSpeedUp = function(e) {
                v.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.OnBtnDispatchClick = function() {
                var e = this._taskConfig.Price;
                if (d.DataCenter.Instance.IsItemEnough(m.CommonItemId.Intelligence, e)) b.UIManager.Instance.GetUIPanel(y.PanelConfig.IntelligencePanel.Path), b.UIManager.Instance.ShowUIPanel(y.PanelConfig.IntelligenceDispatchPanel.Path, this._taskConfig.Id, this._userData.Sid);
                else {
                    var t = m.CommonItemId.Intelligence.ToItemName();
                    v.UIUtlity.ShowFloatingHint("intelligence_prop_not_enough".ToUILocale().Fmt(t))
                }
            }, t.prototype.OnBtnCompleteClick = function() {
                b.UIManager.Instance.GetUIPanel(y.PanelConfig.IntelligencePanel.Path), this.RequestIntelligenceGetReward()
            }, t.prototype.RequestIntelligenceGetReward = function() {
                var e = new p.Req_Intelligence_GetReward;
                e.Sid = this._userData.Sid, _.RpcComponent.Instance.Call(e, this.ResponseIntelligenceGetReward)
            }, t.prototype.ResponseIntelligenceGetReward = function(e) {
                v.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks(), this.Dispose()
            }, t.prototype.Dispose = function() {
                this._assets.forEach(function(e) {
                    f.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([R(cc.Label)], t.prototype, "TittleLabel", void 0), i([R(cc.LabelOutline)], t.prototype, "TittleOutline", void 0), i([R(cc.Sprite)], t.prototype, "FlagBg", void 0), i([R(cc.Label)], t.prototype, "QualityDescLabel", void 0), i([R(cc.Layout)], t.prototype, "RewardItemGrid", void 0), i([R(w.default)], t.prototype, "TimeProgress", void 0), i([R(cc.Label)], t.prototype, "TimeShowLabel", void 0), i([R(cc.Button)], t.prototype, "BtnFast", void 0), i([R(cc.Label)], t.prototype, "FastBtnLabel", void 0), i([R(cc.Sprite)], t.prototype, "DiamondIcon", void 0), i([R(cc.Label)], t.prototype, "DiamondCost", void 0), i([R(cc.Button)], t.prototype, "BtnDispatch", void 0), i([R(cc.Label)], t.prototype, "DispatchBtnLabel", void 0), i([R(cc.Sprite)], t.prototype, "DispatchCurrencyIcon", void 0), i([R(cc.Label)], t.prototype, "DispatchCost", void 0), i([R(cc.Button)], t.prototype, "BtnComplete", void 0), i([R(cc.Label)], t.prototype, "CompleteBtnLabel", void 0), i([T], t)
        }(cc.Component);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomProgressBar": "CustomProgressBar",
        "./ItemComponent": "ItemComponent"
    }],
    IntelligencePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e1f2bzxdlxHZJMvFW5izVmk", "IntelligencePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CustomLayout"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = e("../../Components/DataCenter"),
            _ = e("../Components/IntelligenceListItem"),
            C = e("../../../../Proto/Static/RpcProto"),
            v = e("../../Components/RpcComponent"),
            b = e("../../../Consts/Etc"),
            S = e("../../../EZFramework/EZFramework"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../../Auxiliary/GameRecord"),
            A = e("../../../Util/TimeUtil"),
            T = e("./IntelligenceSetPanel"),
            R = e("../../../Consts/Consts"),
            L = cc._decorator,
            k = L.ccclass,
            O = L.property;
        (function(e) {
            e[e.Ticket = 0] = "Ticket", e[e.Diamond = 1] = "Diamond"
        })(l || (l = {}));
        var M = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Tip), t.Tittle = null, t.DropTipContainer = null, t.DropItemIcon = null, t.DropTip = null, t.DropReceiveTip = null, t.IntelligenceIcon = null, t.IntelligenceCount = null, t.ItemScroll = null, t.BtnPrivilege = null, t.PrivilegeBtnLabel = null, t.BtnRefresh = null, t.BtnOneKey = null, t.OneKeyBtnLabel = null, t.BtnOneKeyDisable = null, t.OneKeyBtnDisableLabel = null, t.RefreshBtnLabel = null, t.ListItemGrid = null, t.RefreshPropIcon = null, t.RefreshBtnIcon = null, t.RefreshPropCount = null, t.RefreshPropCost = null, t.EmptyStateLabel = null, t.BtnIntelligenceProps = null, t.SetButton = null, t.SetLabel = null, t.AutoButton = null, t.AutoLabel = null, t.SetButtonGray = null, t.SetLabelGray = null, t.AutoButtonGray = null, t.AutoLabelGray = null, t.RefreshButtonGray = null, t.RefreshLabelGray = null, t.LIST_ITEM_PATH = "IntelligencePanel/Private/IntelligenceListItem", t._usedItemId = d.CommonItemId.Intelligence, t._refreshItemId = d.CommonItemId.IntelligenceRefresh, t._dailyFreeCount = 0, t._refreshPrice = 0, t._suggestQuality = 0, t._itemCountLimit = 0, t._listItemPrefab = null, t._usedSprite = null, t._refreshSprite = null, t._diamondSprite = null, t._dispatchHerosArray = [], t._dispatchHerosObj = {}, t._addationCount = 0, t._selectQuality = 4, t._qualityConfigById = {}, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.LIST_ITEM_PATH, cc.Prefab)];
                            case 1:
                                return t._listItemPrefab = a.sent(), n = w.default.Instance.GetItemPathById(this._usedItemId), o = this, [4, this.LoadDynamicAsset(n, cc.SpriteFrame)];
                            case 2:
                                return o._usedSprite = a.sent(), this.IntelligenceIcon.spriteFrame = this._usedSprite, r = w.default.Instance.GetItemPathById(this._refreshItemId), i = this, [4, this.LoadDynamicAsset(r, cc.SpriteFrame)];
                            case 3:
                                return i._refreshSprite = a.sent(), this.RefreshPropIcon.spriteFrame = this._refreshSprite, [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.SetStaticLocalText = function() {
                this.Tittle.string = "intelligence_tittle".ToUILocale(), this.PrivilegeBtnLabel.string = "intelligence_privilege".ToUILocale(), this.EmptyStateLabel.string = "intelligence_empty_state".ToUILocale(), this.OneKeyBtnLabel.string = "mail_receiveAllReward".ToUILocale(), this.OneKeyBtnDisableLabel.string = "mail_receiveAllReward".ToUILocale(), this.SetLabel.string = "intelligence_set".ToUILocale(), this.AutoLabel.string = "intelligence_auto".ToUILocale(), this.SetLabelGray.string = "intelligence_set".ToUILocale(), this.AutoLabelGray.string = "intelligence_auto".ToUILocale(), this.RefreshLabelGray.string = "refresh".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnRefresh.node.on("click", this.OnBtnRefreshClick, this), this.BtnOneKey.node.on("click", this.OnBtnOneKeyClick, this), this.BtnOneKeyDisable.node.on("click", this.OnBtnOnKeyDisableClick, this), this.BtnIntelligenceProps.node.on("click", this.OnBtnIntelligencePropClick, this), this.BtnPrivilege.node.on("click", this.OnBtnPrivilege, this), this.SetButton.node.on("click", this.OnSetButton, this), this.AutoButton.node.on("click", this.OnAutoButton, this), this.SetButtonGray.node.on("click", this.OnClickGray, this), this.AutoButtonGray.node.on("click", this.OnClickGray, this), this.RefreshButtonGray.node.on("click", this.OnClickGray, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._dailyFreeCount = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("IntelligenceTaskDailyFreeCount"), this._refreshPrice = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("IntelligenceTaskRefreshPrice"), this._suggestQuality = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("IntelligenceTaskRefreshNeedSuggestQuality"), this._itemCountLimit = m.ConfigDataComponent.Instance.GetItemMax(this._usedItemId), this.ListItemGrid.Init(this._listItemPrefab, !1);
                var n = I.DataCenter.Instance.GetStringData(d.UserDataKey.Intelligence);
                if (n) {
                    var o = Number.parseInt(n),
                        r = T.default.Qualitys[o];
                    this._selectQuality = r
                }
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.RefreshView(!t), this.SetButtonHide(), this.SetDropTipConatiner()
            }, t.prototype.RefreshView = function(e) {
                void 0 === e && (e = !0), this.ReloadUserData(e), this._dispatchHerosArray = [], this._dispatchHerosObj = {};
                for (var t = 0, n = this._taskData; t < n.length; t++)
                    for (var o = 0, r = n[t].HeroIds; o < r.length; o++) {
                        var i = r[o];
                        this._dispatchHerosArray.push(i), this._dispatchHerosObj[i] = !0
                    }
                this.EmptyStateLabel.node.active = this._taskData.length <= 0, this.ItemScroll.stopAutoScroll(), this.ListItemGrid.RenderLayOut(this._taskData.length), f.UIUtlity.AnimationItemsByType1(this.ListItemGrid.node.children);
                var a = I.DataCenter.Instance.GetItemCount(this._usedItemId);
                this.IntelligenceCount.string = a + "/" + this._itemCountLimit, this.RefreshPropCount.string = I.DataCenter.Instance.GetItemCount(this._refreshItemId).toString();
                var s = w.default.GetModuleBonus(d.ModuleBonusType.ItlgcTaskRefresh);
                this._addationCount = s[d.ModuleBonusType.ItlgcTaskRefresh], this._addationCount || (this._addationCount = 0), this.SetBtnState(), this.SetOneKeyBtnState()
            }, t.prototype.ReloadUserData = function(e) {
                if (void 0 === e && (e = !0), e) this._taskData = I.DataCenter.Instance.GetDataList(C.IntelligenceTask_Model), this.SortTask(this._taskData);
                else
                    for (var t = this._taskData.length - 1; t >= 0; t--) {
                        var n = I.DataCenter.Instance.GetDataById(C.IntelligenceTask_Model, this._taskData[t].Sid);
                        null == n ? this._taskData.splice(t, 1) : this._taskData[t] = n
                    }
            }, t.prototype.SetButtonHide = function() {
                this._haveCanGet = !1;
                for (var e = 0; e < this._taskData.length; e++)
                    if (!(this._taskData[e].DispatchTime <= 0)) {
                        var t = v.RpcComponent.Instance.ServerTime - this._taskData[e].DispatchTime;
                        t = Math.max(t, 0);
                        var n = m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceTask_Config, this._taskData[e].TaskId);
                        if (!this._qualityConfigById[n.QualityId]) {
                            var o = m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceQuality_Config, n.QualityId);
                            this._qualityConfigById[n.QualityId] = o
                        }
                        if (t >= this._qualityConfigById[n.QualityId].Hour * b.Etc.HourDuration) {
                            this._haveCanGet = !0;
                            break
                        }
                    } this.SetButton.node.active = !this._haveCanGet, this.AutoButton.node.active = !this._haveCanGet, this.BtnRefresh.node.active = !this._haveCanGet, this.SetButtonGray.node.active = this._haveCanGet, this.AutoButtonGray.node.active = this._haveCanGet, this.RefreshButtonGray.node.active = this._haveCanGet
            }, t.prototype.SortTask = function(e) {
                var t = this;
                e.sort(function(e, n) {
                    var o = t.GetDispathState(e),
                        r = t.GetDispathState(n);
                    if (o == r) {
                        var i = m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceTask_Config, e.TaskId);
                        return m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceTask_Config, n.TaskId).QualityId - i.QualityId
                    }
                    return r - o
                })
            }, t.prototype.GetDispathState = function(e) {
                var t = m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceTask_Config, e.TaskId),
                    n = m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceQuality_Config, t.QualityId);
                return e.DispatchTime <= 0 ? _.DispatchState.NotDispatch : v.RpcComponent.Instance.ServerTime - e.DispatchTime < n.Hour * b.Etc.HourDuration ? _.DispatchState.HasDispatch : _.DispatchState.Complete
            }, t.prototype.SetRefreshBtnIcon = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                switch (e) {
                                    case l.Ticket:
                                        return [3, 1];
                                    case l.Diamond:
                                        return [3, 2]
                                }
                                return [3, 5];
                            case 1:
                                return this.RefreshBtnIcon.spriteFrame = this._refreshSprite, this.RefreshPropCost.string = "1", [3, 5];
                            case 2:
                                return null != this._diamondSprite ? [3, 4] : (t = w.default.Instance.GetItemPathById(d.CommonItemId.Diamond), n = this, [4, this.LoadDynamicAsset(t, cc.SpriteFrame)]);
                            case 3:
                                n._diamondSprite = o.sent(), o.label = 4;
                            case 4:
                                return this.RefreshBtnIcon.spriteFrame = this._diamondSprite, I.DataCenter.Instance.IsItemEnough(d.CommonItemId.Diamond, this._refreshPrice) ? this.RefreshPropCost.node.color = cc.Color.WHITE : this.RefreshPropCost.node.color = new cc.Color(255, 75, 75), this.RefreshPropCost.string = this._refreshPrice.toString(), [3, 5];
                            case 5:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetBtnState = function() {
                I.DataCenter.Instance.GetIntData(d.UserDataKey.IntelligenceFreeCount) < this._dailyFreeCount + this._addationCount ? (this.RefreshBtnIcon.node.active = !1, this.RefreshBtnLabel.string = "refresh_free_intelligence".ToUILocale()) : (this.RefreshBtnIcon.node.active = !0, this.RefreshBtnLabel.string = "arena_mainPanelRefreshBtnText".ToUILocale(), I.DataCenter.Instance.GetItemCount(this._refreshItemId) > 0 ? this.SetRefreshBtnIcon(l.Ticket) : this.SetRefreshBtnIcon(l.Diamond))
            }, t.prototype.SetOneKeyBtnState = function() {
                this.BtnOneKey.node.active = !1, this.BtnOneKeyDisable.node.active = !0;
                for (var e = 0; e < this._taskData.length; e++)
                    if (this._taskData[e].DispatchTime > 0) {
                        var t = m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceTask_Config, this._taskData[e].TaskId),
                            n = m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceQuality_Config, t.QualityId),
                            o = v.RpcComponent.Instance.ServerTime - this._taskData[e].DispatchTime;
                        if (n.Hour * b.Etc.HourDuration - o <= 0) {
                            this.BtnOneKey.node.active = !0, this.BtnOneKeyDisable.node.active = !1;
                            break
                        }
                    }
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                this.ListItemGrid == t && e.forEach(function(e, t) {
                    e.getComponent(_.default).SetUI(n._taskData[t], t)
                })
            }, t.prototype.OnBtnRefreshClick = function() {
                for (var e = this, t = 0; t < this._taskData.length; t++) {
                    var n = this._taskData[t],
                        o = m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceTask_Config, n.TaskId);
                    if (n.DispatchTime <= 0 && o.QualityId >= this._suggestQuality) {
                        var r = "intelligence_refresh_hint_suggest".ToUILocale().Fmt(this._suggestQuality.ToIntelligenceQualityName());
                        return void f.UIUtlity.ShowHintPanel("", r, "", null, "", function() {
                            e.CallRefresh()
                        })
                    }
                }
                this.CallRefresh()
            }, t.prototype.CallRefresh = function() {
                var e = this;
                if (I.DataCenter.Instance.GetIntData(d.UserDataKey.IntelligenceFreeCount) >= this._dailyFreeCount + this._addationCount && I.DataCenter.Instance.GetItemCount(this._refreshItemId) <= 0)
                    if (I.DataCenter.Instance.GetItemCount(d.CommonItemId.Diamond) >= this._refreshPrice) {
                        var t = P.default.GetItem(P.GameRecordDefine.RefreshIntelligenceTask);
                        if (t && A.TimeUtil.Get0ClockTs(v.RpcComponent.Instance.ServerTime) == A.TimeUtil.Get0ClockTs(parseInt(t))) this.RequestRefreshTask();
                        else {
                            var n = d.CommonItemId.Diamond.ToItemName(),
                                o = "intelligence_refresh_hint_refresh".ToUILocale().Fmt(this._refreshPrice, n);
                            f.UIUtlity.ShowHintPanel("", o, "", null, "", function() {
                                e.RequestRefreshTask()
                            }, "", P.GameRecordDefine.RefreshIntelligenceTask, !0)
                        }
                    } else S.UIManager.Instance.ShowUIPanel(g.PanelConfig.MallNewPanel.Path, [d.MallPageType.DiamondShop, d.GiftPackType.BuyDiamond]);
                else this.RequestRefreshTask()
            }, t.prototype.RequestRefreshTask = function() {
                var e = new C.Req_Intelligence_Refresh;
                v.RpcComponent.Instance.Call(e, this.RefreshView.bind(this))
            }, t.prototype.OnBtnOneKeyClick = function() {
                this.RequestGetRewardOneKey()
            }, t.prototype.RequestGetRewardOneKey = function() {
                var e = new C.Req_Intelligence_OneClickGetReward;
                v.RpcComponent.Instance.Call(e, this.ResponseGetRewardOneKey.bind(this))
            }, t.prototype.ResponseGetRewardOneKey = function(e) {
                f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.OnBtnOnKeyDisableClick = function() {
                f.UIUtlity.ShowFloatingHint("intelligence_receive_hint_disable".ToUILocale())
            }, t.prototype.OnBtnIntelligencePropClick = function() {
                f.UIUtlity.ShowItemTip(this._usedItemId, this.BtnIntelligenceProps.node)
            }, t.prototype.OnBtnPrivilege = function() {
                u.UIManager.Instance.ShowUIPanel(g.PanelConfig.MallNewPanel.Path, [R.MallPageType.Privilege, R.GiftPackType.SubscribePrivilege])
            }, t.prototype.OnSetButton = function() {
                u.UIManager.Instance.ShowUIPanel(g.PanelConfig.IntelligenceSetPanel.Path, this)
            }, t.prototype.OnAutoButton = function() {
                var e = this,
                    t = this._taskData.filter(function(t) {
                        return m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceTask_Config, t.TaskId).QualityId >= e._selectQuality && !t.DispatchTime
                    });
                if (t.length) {
                    for (var n = 0, o = I.DataCenter.Instance.GetItemCount(this._usedItemId), r = [], i = !1, a = 0, s = t; a < s.length; a++) {
                        var l = s[a],
                            c = m.ConfigDataComponent.Instance.GetConfigById(p.IntelligenceTask_Config, l.TaskId);
                        if (n + c.Price > o) break;
                        var u = w.default.Instance.SelectIntelligenceTaskHeros(l.Sid, this._dispatchHerosArray);
                        if (0 == u.Status) {
                            n += c.Price;
                            for (var d = {
                                    Items: [l.Sid]
                                }, h = 0, y = u.Heros; h < y.length; h++) {
                                var g = y[h];
                                d.Items.push(g.Sid), this._dispatchHerosArray.push(g.Sid), this._dispatchHerosObj[g.Sid] = !0
                            }
                            r.push(d)
                        } else i = !0
                    }
                    if (0 != r.length) {
                        var _ = new C.Req_Intelligence_Dispatch;
                        _.Tasks = r, v.RpcComponent.Instance.Call(_, this.ResponseDispatchHero.bind(this))
                    } else {
                        if (i) return void f.UIUtlity.ShowFloatingHint("intelligence_hero_not_enough".ToUILocale());
                        var b = this._usedItemId.ToItemName();
                        f.UIUtlity.ShowFloatingHint("intelligence_prop_not_enough".ToUILocale().Fmt(b))
                    }
                } else f.UIUtlity.ShowFloatingHint("intelligence_no_tasks".ToUILocale())
            }, t.prototype.ResponseDispatchHero = function() {
                this.RefreshView(!1), f.UIUtlity.ShowFloatingHint("intelligence_dispatch_success".ToUILocale())
            }, t.prototype.SetSelectQuality = function(e) {
                this._selectQuality = e
            }, t.prototype.SetDropTipConatiner = function() {
                var e;
                for (var t in this.DropTipContainer.active = !1, I.DataCenter.Instance.ActivityConfigs) {
                    var n = I.DataCenter.Instance.ActivityConfigs[t];
                    if (n.Common.Type == d.ActivityType.Story) {
                        e = n;
                        break
                    }
                }
                if (e) {
                    for (var o = I.DataCenter.Instance.GetDataById(C.UserActivity_Model, e._id), r = void 0, i = 0; i < e.__Chapter.length; i++) {
                        var a = e.__Chapter[i];
                        if (!o.IntMap[a.Id]) {
                            r = a;
                            break
                        }
                    }
                    if (r) {
                        if (!this._storyTaskGroupIds)
                            for (this._storyTaskGroupIds = {}, i = 0; i < e.__TaskGroup.length; i++) {
                                var s = e.__TaskGroup[i];
                                this._storyTaskGroupIds[s.Id] = s
                            }
                        var l = void 0,
                            c = r.TaskGroupIds;
                        for (i = c[0]; i <= c[1]; i++) {
                            for (var u = this._storyTaskGroupIds[i].TaskIds, h = 0, f = 0; f < u.length; f++)(_ = I.DataCenter.Instance.GetDataById(C.UserTask_Model, e._id * b.Etc.Multiplier + u[f])) && _.IsCompleted && h++;
                            if (h < u.length || o.IntArray[1] < this._storyTaskGroupIds[i].FinishChildId) {
                                l = this._storyTaskGroupIds[i];
                                break
                            }
                        }
                        if (l) {
                            if (!this._storyTaskArray)
                                for (this._storyTaskArray = {}, i = 0; i < e._Tasks.length; i++) {
                                    var y = e._Tasks[i];
                                    this._storyTaskArray[y.Id] = y
                                }
                            for (u = l.TaskIds, f = 0; f < u.length; f++) {
                                var _, v = this._storyTaskArray[u[f]];
                                if (v.Condition[0] == d.TaskConditionType.DropedItemAndCount && m.ConfigDataComponent.Instance.GetConfigById(p.ItemGetWay_Config, v.Condition[1]).PanelInfo[0] == g.PanelConfig.IntelligencePanel.Id && (_ = I.DataCenter.Instance.GetDataById(C.UserTask_Model, e._id * b.Etc.Multiplier + u[f])) && _.Progress < v.TotalCount) {
                                    this.DropTipContainer.active = !0, this.DropTip.string = "intelligence_drop_tip".ToUILocale(), this.DropReceiveTip.string = "intelligence_drop_receive_tip".ToUILocale(), this.SetDropItemIcon(v.Condition[2]);
                                    break
                                }
                            }
                        }
                    }
                }
            }, t.prototype.SetDropItemIcon = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return t = w.default.Instance.GetItemPathById(e), n = this.DropItemIcon, [4, this.LoadDynamicAsset(t, cc.SpriteFrame)];
                            case 1:
                                return n.spriteFrame = o.sent(), this.isValid || u.AssetsManager.Instance.UnloadAsset(this.DropItemIcon.spriteFrame), [2]
                        }
                    })
                })
            }, t.prototype.OnClickGray = function() {
                f.UIUtlity.ShowFloatingHint("Intelligence_canGet".ToUILocale())
            }, i([O(cc.Label)], t.prototype, "Tittle", void 0), i([O(cc.Node)], t.prototype, "DropTipContainer", void 0), i([O(cc.Sprite)], t.prototype, "DropItemIcon", void 0), i([O(cc.Label)], t.prototype, "DropTip", void 0), i([O(cc.Label)], t.prototype, "DropReceiveTip", void 0), i([O(cc.Sprite)], t.prototype, "IntelligenceIcon", void 0), i([O(cc.Label)], t.prototype, "IntelligenceCount", void 0), i([O(cc.ScrollView)], t.prototype, "ItemScroll", void 0), i([O(cc.Button)], t.prototype, "BtnPrivilege", void 0), i([O(cc.Label)], t.prototype, "PrivilegeBtnLabel", void 0), i([O(cc.Button)], t.prototype, "BtnRefresh", void 0), i([O(cc.Button)], t.prototype, "BtnOneKey", void 0), i([O(cc.Label)], t.prototype, "OneKeyBtnLabel", void 0), i([O(cc.Button)], t.prototype, "BtnOneKeyDisable", void 0), i([O(cc.Label)], t.prototype, "OneKeyBtnDisableLabel", void 0), i([O(cc.Label)], t.prototype, "RefreshBtnLabel", void 0), i([O(y.default)], t.prototype, "ListItemGrid", void 0), i([O(cc.Sprite)], t.prototype, "RefreshPropIcon", void 0), i([O(cc.Sprite)], t.prototype, "RefreshBtnIcon", void 0), i([O(cc.Label)], t.prototype, "RefreshPropCount", void 0), i([O(cc.Label)], t.prototype, "RefreshPropCost", void 0), i([O(cc.Label)], t.prototype, "EmptyStateLabel", void 0), i([O(cc.Button)], t.prototype, "BtnIntelligenceProps", void 0), i([O(cc.Button)], t.prototype, "SetButton", void 0), i([O(cc.Label)], t.prototype, "SetLabel", void 0), i([O(cc.Button)], t.prototype, "AutoButton", void 0), i([O(cc.Label)], t.prototype, "AutoLabel", void 0), i([O(cc.Button)], t.prototype, "SetButtonGray", void 0), i([O(cc.Label)], t.prototype, "SetLabelGray", void 0), i([O(cc.Button)], t.prototype, "AutoButtonGray", void 0), i([O(cc.Label)], t.prototype, "AutoLabelGray", void 0), i([O(cc.Button)], t.prototype, "RefreshButtonGray", void 0), i([O(cc.Label)], t.prototype, "RefreshLabelGray", void 0), i([k], t)
        }(c.BaseUIPanel);
        n.default = M, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/IntelligenceListItem": "IntelligenceListItem",
        "./IntelligenceSetPanel": "IntelligenceSetPanel"
    }],
    IntelligenceSetPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d8d998xL+1Fa7sV046KsVBG", "IntelligenceSetPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Util/AppUtil"),
            d = e("../../../ShareConsts/EnumType"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.DescLabel = null, t.ContentLabels = [], t.ContentToggles = [], t.SureButton = null, t.SureLabel = null, t._selectIdx = 1, t._instance = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.Title.string = "intelligence_set".ToUILocale(), this.SureLabel.string = "ok".ToUILocale(), this.DescLabel.string = "intelligence_select_level".ToUILocale(), this.SureButton.node.on("click", this.OnSureButtonClick, this), this.ContentToggles.forEach(function(e) {
                        e.node.on("toggle", t.OnToggleSwitch, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._instance = t[0];
                    var n = u.DataCenter.Instance.GetStringData(d.UserDataKey.Intelligence);
                    this._selectIdx = n ? Number.parseInt(n) : 1
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.SetUIContent(t), [2]
                        })
                    })
                }, t.prototype.SetUIContent = function(e) {
                    var t = this;
                    e || n.Qualitys.forEach(function(e, o) {
                        var r = "<outline color=#000000 width=2><color=" + n.QualityLabelColors[o] + ">" + "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(e.ToIntelligenceQualityName()) + "</color></outline>",
                            i = "intelligence_limit_level".ToUILocale().Fmt(r);
                        t.ContentLabels[o].string = i
                    }), this.ContentToggles.forEach(function(e, n) {
                        e.isChecked = t._selectIdx == n
                    })
                }, t.prototype.OnSureButtonClick = function() {
                    if (this._instance && this._selectIdx < n.Qualitys.length) {
                        this._instance.SetSelectQuality(n.Qualitys[this._selectIdx]);
                        var e = new c.Req_Game_SetFrontStatusData;
                        return e.Type = d.UserDataKey.Intelligence, e.Value = this._selectIdx.toString(), void u.RpcComponent.Instance.Call(e, function() {
                            l.UIManager.Instance.BackUIPanel()
                        })
                    }
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnToggleSwitch = function(e) {
                    var t = p.AppUtil.ToInt(e.node.name);
                    this._selectIdx = t
                }, t.Qualitys = [5, 4, 3, 2], t.QualityLabelColors = ["#FFA14D", "#E2A3FF", "91DCFF", "6EEEA7"], i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "DescLabel", void 0), i([y(cc.RichText)], t.prototype, "ContentLabels", void 0), i([y(cc.Toggle)], t.prototype, "ContentToggles", void 0), i([y(cc.Button)], t.prototype, "SureButton", void 0), i([y(cc.Label)], t.prototype, "SureLabel", void 0), n = i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Components/Components": "Components"
    }],
    InteractiveProgressController1004: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2523cmEKW9NmZrvOS8BVNOr", "InteractiveProgressController1004");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../EZFramework/EZFramework"),
            s = e("../../GamePlay/Auxiliary/EventKeys"),
            l = e("./InteractiveProgressControllerBase"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Mask = null, t.Bar = null, t.Slider = null, t.TopHeartSpine = null, t.UpHeartSpine = null, t.DownHeartSpine = null, t.MaxHeartSpine = null, t._currentSlot = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_IS_RESTORED, this.OnAvatarRestored, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_IS_RESTORED, this.OnAvatarRestored, this)
                }, t.prototype.Init = function(e) {
                    this._progressEditor = e, this._totalSlots = e.TotalSlots, this._perSlotHeight = this.Bar.height / this._totalSlots, this.SetPos(463, 180), this.ResetSpineState(), this.SetProgress(this._currentSlot)
                }, t.prototype.SetPos = function(e, t) {
                    this.node.setPosition(e, t)
                }, t.prototype.ResetSpineState = function() {
                    this.TopHeartSpine.node.active = !1, this.UpHeartSpine.node.active = !1, this.DownHeartSpine.node.active = !1, this.MaxHeartSpine.node.active = !1, this.TopHeartSpine.node.scale = 0, this.MaxHeartSpine.node.setPosition(-this.node.x, -this.node.y)
                }, t.prototype.SetProgress = function(e) {
                    switch (e > this._currentSlot ? this._tweenType = l.ProgressTweenType.Positive : e < this._currentSlot ? this._tweenType = l.ProgressTweenType.Negative : this._tweenType = l.ProgressTweenType.None, this._currentSlot = e, this._tweenType) {
                        case l.ProgressTweenType.Positive:
                        case l.ProgressTweenType.Negative:
                            this.DoTweenProgressJob();
                            break;
                        default:
                            this.Mask.height = this.MaskHeight, this.Slider.y = this._currentSlot * this._perSlotHeight
                    }
                }, t.prototype.DoTweenProgressJob = function() {
                    var e = this;
                    switch (cc.tween(this.Mask).to(.5, {
                            height: this.MaskHeight
                        }).start(), cc.tween(this.Slider).to(.5, {
                            y: this._currentSlot * this._perSlotHeight
                        }).call(function() {
                            e.CheckAvatarState()
                        }).start(), this._tweenType) {
                        case l.ProgressTweenType.Positive:
                            this.UpHeartSpine.node.active = !0, this.DownHeartSpine.node.active = !1, this.UpHeartSpine.setAnimation(0, this.UpHeartSpine.defaultAnimation, !1), this.UpHeartSpine.setCompleteListener(function() {
                                e.UpHeartSpine.setCompleteListener(null), e.UpHeartSpine.node.active = !1
                            });
                            break;
                        case l.ProgressTweenType.Negative:
                            this.UpHeartSpine.node.active = !1, this.DownHeartSpine.node.active = !0, this.DownHeartSpine.setAnimation(0, this.DownHeartSpine.defaultAnimation, !1), this.DownHeartSpine.setCompleteListener(function() {
                                e.DownHeartSpine.setCompleteListener(null), e.DownHeartSpine.node.active = !1
                            })
                    }
                    if (this._currentSlot <= 0) this.TopHeartSpine.node.active = !1;
                    else {
                        this.TopHeartSpine.node.active = !0;
                        var t = this._currentSlot / (this._totalSlots / 2);
                        cc.tween(this.TopHeartSpine.node).to(.5, {
                            scale: t
                        }).start()
                    }
                }, Object.defineProperty(t.prototype, "MaskHeight", {
                    get: function() {
                        return this.Bar.height / 2 + this._currentSlot * this._perSlotHeight
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.CheckAvatarState = function() {
                    var e, t = this,
                        n = this._progressEditor.SpineController.HeroSkeleton;
                    switch (this._currentSlot) {
                        case this._totalSlots / 2:
                            e = "Ani/Ani_s1_shuohua01", this.MaxHeartSpine.node.active = !0, this.MaxHeartSpine.setAnimation(0, this.MaxHeartSpine.defaultAnimation, !1), this.MaxHeartSpine.setCompleteListener(function() {
                                t.MaxHeartSpine.setCompleteListener(null), t._progressEditor.SwitchNextState(), t._progressEditor.SpineController.HideTalk()
                            }), this.ShowTalk("NewPersonalityDialog_1150502", .3, 4);
                            break;
                        case -this._totalSlots / 2:
                            e = "Ani/Ani_s1_zhengtou", n.setCompleteListener(function() {
                                n.setCompleteListener(null), t._progressEditor.ResetAvatarState(), t._progressEditor.SpineController.HideTalk()
                            }), this.ShowTalk("NewPersonalityDialog_1150503", .3, 4)
                    }
                    e && (n.setAnimation(0, e, !1), this._progressEditor.SpineController.AddCompletedAction(e))
                }, t.prototype.ShowTalk = function(e, t, n, o) {
                    var r = this;
                    void 0 === o && (o = cc.Vec2.ZERO), this.scheduleOnce(function() {
                        r._progressEditor.SpineController.ShowTalk(e, o), r.scheduleOnce(function() {
                            r._progressEditor.SpineController.HideTalk()
                        }, n)
                    }, t)
                }, t.prototype.OnAvatarRestored = function(e) {
                    var t = this._progressEditor.SpineController;
                    t.EventId && t.EventId != e || t.HeroSkeleton.setCompleteListener(null)
                }, i([p(cc.Node)], t.prototype, "Mask", void 0), i([p(cc.Node)], t.prototype, "Bar", void 0), i([p(cc.Node)], t.prototype, "Slider", void 0), i([p(sp.Skeleton)], t.prototype, "TopHeartSpine", void 0), i([p(sp.Skeleton)], t.prototype, "UpHeartSpine", void 0), i([p(sp.Skeleton)], t.prototype, "DownHeartSpine", void 0), i([p(sp.Skeleton)], t.prototype, "MaxHeartSpine", void 0), i([u], t)
            }(l.default);
        n.default = d, cc._RF.pop()
    }, {
        "../../EZFramework/EZFramework": "EZFramework",
        "../../GamePlay/Auxiliary/EventKeys": "EventKeys",
        "./InteractiveProgressControllerBase": "InteractiveProgressControllerBase"
    }],
    InteractiveProgressController1005: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "420f2wxoNNBCJe48982iVhV", "InteractiveProgressController1005");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../EZFramework/EZFramework"),
            l = e("../../GamePlay/Auxiliary/EventKeys"),
            c = e("./InteractiveProgressControllerBase"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.Positive = 1] = "Positive", e[e.Negative = 2] = "Negative"
        })(a || (a = {}));
        var h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Mask = null, t.Bar = null, t.Slider = null, t.TopHeartSpine = null, t.UpHeartSpine = null, t.DownHeartSpine = null, t.MaxHeartSpine = null, t.AngerSpine = null, t._currentSlot = 0, t.AngerSpine_Animations = ["Ani_UI_Effect_yanzi_nuqi0", "Ani_UI_Effect_yanzi_nuqi1", "Ani_UI_Effect_yanzi_nuqi2", "Ani_UI_Effect_yanzi_nuqi3", "Ani_UI_Effect_yanzi_nuqi4"], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                s.Game.EventDispatcher.On(l.EventKeys.EVENT_IS_RESTORED, this.OnAvatarRestored, this)
            }, t.prototype.onDisable = function() {
                s.Game.EventDispatcher.Off(l.EventKeys.EVENT_IS_RESTORED, this.OnAvatarRestored, this)
            }, t.prototype.Init = function(e) {
                this._progressEditor = e, this._totalSlots = e.TotalSlots, this._perSlotHeight = this.Bar.height / this._totalSlots, this.SetPos(463, 180), this.ResetSpineState(), this.SetProgress(this._currentSlot)
            }, t.prototype.SetPos = function(e, t) {
                this.node.setPosition(e, t)
            }, t.prototype.ResetSpineState = function() {
                this.TopHeartSpine.node.active = !1, this.UpHeartSpine.node.active = !1, this.DownHeartSpine.node.active = !1, this.MaxHeartSpine.node.active = !1, this.TopHeartSpine.node.scale = 0, this.MaxHeartSpine.node.setPosition(-this.node.x, -this.node.y)
            }, t.prototype.SetProgress = function(e) {
                switch (e > this._currentSlot ? this._tweenType = a.Positive : e < this._currentSlot ? this._tweenType = a.Negative : this._tweenType = a.None, this._currentSlot = e, this._tweenType) {
                    case a.Positive:
                    case a.Negative:
                        this.DoTweenProgressJob();
                        break;
                    default:
                        this.Mask.height = this.MaskHeight, this.Slider.y = this._currentSlot * this._perSlotHeight
                }
            }, t.prototype.DoTweenProgressJob = function() {
                var e = this;
                switch (cc.tween(this.Mask).to(.5, {
                        height: this.MaskHeight
                    }).start(), cc.tween(this.Slider).to(.5, {
                        y: this._currentSlot * this._perSlotHeight
                    }).call(function() {
                        e.CheckAvatarState()
                    }).start(), this._tweenType) {
                    case a.Positive:
                        this.UpHeartSpine.node.active = !0, this.DownHeartSpine.node.active = !1, this.UpHeartSpine.setAnimation(0, this.UpHeartSpine.defaultAnimation, !1), this.UpHeartSpine.setCompleteListener(function() {
                            e.UpHeartSpine.setCompleteListener(null), e.UpHeartSpine.node.active = !1
                        });
                        break;
                    case a.Negative:
                        this.UpHeartSpine.node.active = !1, this.DownHeartSpine.node.active = !0, this.DownHeartSpine.setAnimation(0, this.DownHeartSpine.defaultAnimation, !1), this.DownHeartSpine.setCompleteListener(function() {
                            e.DownHeartSpine.setCompleteListener(null), e.DownHeartSpine.node.active = !1
                        })
                }
                if (this._currentSlot <= 0) this.TopHeartSpine.node.active = !1, this.AngerSpine.setAnimation(0, this.AngerSpine_Animations[Math.abs(this._currentSlot)], !0);
                else {
                    this.TopHeartSpine.node.active = !0;
                    var t = this._currentSlot / (this._totalSlots / 2);
                    cc.tween(this.TopHeartSpine.node).to(.5, {
                        scale: t
                    }).start(), this.AngerSpine.setAnimation(0, this.AngerSpine_Animations[0], !0)
                }
            }, Object.defineProperty(t.prototype, "MaskHeight", {
                get: function() {
                    return this.Bar.height / 2 + this._currentSlot * this._perSlotHeight
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.CheckAvatarState = function() {
                var e, t = this,
                    n = this._progressEditor.SpineController.HeroSkeleton;
                switch (this._currentSlot) {
                    case this._totalSlots / 2:
                        e = "Ani/Ani_s1_niudong", this.MaxHeartSpine.node.active = !0, this.MaxHeartSpine.setAnimation(0, this.MaxHeartSpine.defaultAnimation, !1), this.MaxHeartSpine.setCompleteListener(function() {
                            t.MaxHeartSpine.setCompleteListener(null), t._progressEditor.ResetAvatarState(), t._progressEditor.SpineController.HideTalk()
                        }), this.ShowTalk("NewPersonalityDialog_1250603", .3, 4);
                        break;
                    case -this._totalSlots / 2:
                        e = "Ani/Ani_s1_huashui", n.setCompleteListener(function() {
                            n.setCompleteListener(null), t._progressEditor.SwitchNextState(), t._progressEditor.SpineController.HideTalk()
                        }), this.ShowTalk("NewPersonalityDialog_1250602", .3, 4)
                }
                e && (n.setAnimation(0, e, !1), this._progressEditor.SpineController.AddCompletedAction(e))
            }, t.prototype.ShowTalk = function(e, t, n, o) {
                var r = this;
                void 0 === o && (o = cc.Vec2.ZERO), this.scheduleOnce(function() {
                    r._progressEditor.SpineController.ShowTalk(e, o), r.scheduleOnce(function() {
                        r._progressEditor.SpineController.HideTalk()
                    }, n)
                }, t)
            }, t.prototype.OnAvatarRestored = function(e) {
                var t = this._progressEditor.SpineController;
                t.EventId && t.EventId != e || t.HeroSkeleton.setCompleteListener(null)
            }, i([d(cc.Node)], t.prototype, "Mask", void 0), i([d(cc.Node)], t.prototype, "Bar", void 0), i([d(cc.Node)], t.prototype, "Slider", void 0), i([d(sp.Skeleton)], t.prototype, "TopHeartSpine", void 0), i([d(sp.Skeleton)], t.prototype, "UpHeartSpine", void 0), i([d(sp.Skeleton)], t.prototype, "DownHeartSpine", void 0), i([d(sp.Skeleton)], t.prototype, "MaxHeartSpine", void 0), i([d(sp.Skeleton)], t.prototype, "AngerSpine", void 0), i([p], t)
        }(c.default);
        n.default = h, cc._RF.pop()
    }, {
        "../../EZFramework/EZFramework": "EZFramework",
        "../../GamePlay/Auxiliary/EventKeys": "EventKeys",
        "./InteractiveProgressControllerBase": "InteractiveProgressControllerBase"
    }],
    InteractiveProgressControllerBase: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "66b95QWnBdDTJqXbKACe0GM", "InteractiveProgressControllerBase");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ProgressTweenType = void 0;
        var a = cc._decorator,
            s = a.ccclass;
        a.property,
            function(e) {
                e[e.None = 0] = "None", e[e.Positive = 1] = "Positive", e[e.Negative = 2] = "Negative"
            }(n.ProgressTweenType || (n.ProgressTweenType = {}));
        var l = function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            return r(t, e), t.prototype.Init = function() {}, t.prototype.SetProgress = function() {}, i([s], t)
        }(cc.Component);
        n.default = l, cc._RF.pop()
    }, {}],
    InteractiveProgressEditor: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e662bjfj4tCt5cegEd9NZWu", "InteractiveProgressEditor");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../EZFramework/EZFramework"),
            l = e("../../GamePlay/Auxiliary/EventKeys"),
            c = e("../InteractiveSpineController"),
            u = e("./InteractiveProgressControllerBase"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.Positive = 1] = "Positive", e[e.Negative = 2] = "Negative"
        })(a || (a = {}));
        var f = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.PositiveAnimations = [], t.NegativeAnimations = [], t.ProgressPrefab = null, t.TotalSlots = 8, t._completedPositiveAnimations = [], t._completedNegativeAnimations = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                s.Game.EventDispatcher.On(l.EventKeys.EVENT_IS_INITIAL_COMPLETED, this.OnAvatarInitialized, this), s.Game.EventDispatcher.On(l.EventKeys.EVENT_IS_PLAYANIMATION_COMPLETED, this.OnPlayAnimationCompleted, this), s.Game.EventDispatcher.On(l.EventKeys.EVENT_IS_RESTORED, this.OnAvatarRestored, this)
            }, t.prototype.onDisable = function() {
                s.Game.EventDispatcher.Off(l.EventKeys.EVENT_IS_INITIAL_COMPLETED, this.OnAvatarInitialized, this), s.Game.EventDispatcher.Off(l.EventKeys.EVENT_IS_PLAYANIMATION_COMPLETED, this.OnPlayAnimationCompleted, this), s.Game.EventDispatcher.Off(l.EventKeys.EVENT_IS_RESTORED, this.OnAvatarRestored, this)
            }, t.prototype.OnAvatarInitialized = function(e) {
                if (!this._spineController && (this._spineController = e, c.default.AVATAR_ANIMATIONS_RECORDER[e.AvatarId] = [], !this._progressContriller && this.ProgressPrefab)) {
                    var t = cc.instantiate(this.ProgressPrefab);
                    t.setParent(this.node), this._progressContriller = t.getComponent(u.default), this._progressContriller.Init(this)
                }
            }, t.prototype.OnPlayAnimationCompleted = function(e, t, n) {
                if (!this._spineController.EventId || this._spineController.EventId == n)
                    if (this.PositiveAnimations.indexOf(t) >= 0) {
                        if (this._completedPositiveAnimations.indexOf(t) >= 0) return;
                        this._completedPositiveAnimations.push(t), this.RefreshProgress()
                    } else if (this.NegativeAnimations.indexOf(t) >= 0) {
                    if (this._completedNegativeAnimations.indexOf(t) >= 0) return;
                    this._completedNegativeAnimations.push(t), this.RefreshProgress()
                }
            }, t.prototype.RefreshProgress = function() {
                if (this._progressContriller) {
                    var e = this._completedPositiveAnimations.length - this._completedNegativeAnimations.length;
                    this._progressContriller.SetProgress(e)
                }
            }, t.prototype.SwitchNextState = function() {
                this._spineController.ConfigAvatar(this._spineController.GetAvatarStateIndex() + 1, !0)
            }, t.prototype.ResetAvatarState = function() {
                this._spineController.RestoreAvatarAnimations()
            }, t.prototype.OnAvatarRestored = function(e) {
                this._spineController.EventId && this._spineController.EventId != e || (this._completedPositiveAnimations = [], this._completedNegativeAnimations = [], this.RefreshProgress())
            }, Object.defineProperty(t.prototype, "SpineController", {
                get: function() {
                    return this._spineController
                },
                enumerable: !1,
                configurable: !0
            }), i([h({
                type: cc.String,
                displayName: "\u79ef\u6781\u52a8\u4f5c"
            })], t.prototype, "PositiveAnimations", void 0), i([h({
                type: cc.String,
                displayName: "\u6d88\u6781\u52a8\u4f5c"
            })], t.prototype, "NegativeAnimations", void 0), i([h({
                type: cc.Prefab,
                displayName: "\u8fdb\u5ea6\u6761\u8d44\u6e90"
            })], t.prototype, "ProgressPrefab", void 0), i([d], t)
        }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../EZFramework/EZFramework": "EZFramework",
        "../../GamePlay/Auxiliary/EventKeys": "EventKeys",
        "../InteractiveSpineController": "InteractiveSpineController",
        "./InteractiveProgressControllerBase": "InteractiveProgressControllerBase"
    }],
    InteractiveSpineController: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d4461koFtxOWLfqp4uXTBx/", "InteractiveSpineController");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.InteractiveSpineEventType = void 0;
        var l = e("./InteractiveSpineEditor"),
            c = e("../../Proto/Static/ConfigProto"),
            u = e("../GamePlay/Components/Components"),
            p = e("../EZFramework/EZFramework"),
            d = e("../EZFramework/EZFramework"),
            h = e("../GamePlay/Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.MainScene = 1] = "MainScene", e[e.ActivitySummon = 2] = "ActivitySummon"
        })(n.InteractiveSpineEventType || (n.InteractiveSpineEventType = {}));
        var m = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.AvatarPrefabs = [], t.UINode = null, t._trackEntryInfos = {}, t._completedActionNames = [], t._avatarPrefabs = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onLoad = function() {
                cc.director.getCollisionManager().enabled = !0
            }, t.prototype.AddTouchEvents = function() {
                this._uiNode.on(cc.Node.EventType.TOUCH_START, this.OnTouchStart, this), this._uiNode.on(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this._uiNode.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this._uiNode.on(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchCancel, this)
            }, t.prototype.RemoveTouchEvents = function() {
                this._uiNode.off(cc.Node.EventType.TOUCH_START, this.OnTouchStart, this), this._uiNode.off(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this._uiNode.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this._uiNode.off(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchCancel, this)
            }, t.prototype.Init = function(e, t, n) {
                return a(this, void 0, void 0, function() {
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._avatarId = e, this._uiNode = t, this._currentAvatarState = 0, this.HandleCustomParams(n), this.ResetControllerState(), [4, this.LoadAvatars()];
                            case 1:
                                return o.sent(), this.ConfigAvatar(this._currentAvatarState, null == n ? void 0 : n.NeedResetState), [2, this._heroSkeleton]
                        }
                    })
                })
            }, t.prototype.HandleCustomParams = function(e) {
                e && (e.NeedEntryAnimation && (this._needEntryAnimation = e.NeedEntryAnimation), e.IsLock && (this._isLock = e.IsLock), e.AvatarState && (this._currentAvatarState = e.AvatarState - 1), e.NeedKeepAnimation && (this.NeedKeepAnimation = e.NeedKeepAnimation), this._eventId = e.EventId)
            }, t.prototype.ResetControllerState = function() {
                this.IsPlayingAnimation = !1, this.RemoveTouchEvents();
                for (var e = 0; e < this._avatarPrefabs.length; e++) p.AssetsManager.Instance.UnloadAsset(this._avatarPrefabs[e]);
                this._avatarPrefabs = [], this._isLock || this.AddTouchEvents()
            }, t.prototype.LoadAvatars = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                for (e = this._avatarId, t = [], this._avatarConfig = u.ConfigDataComponent.Instance.GetConfigById(c.InteractiveSpineAvatar_Config, this._avatarId), n = 0; n < this._avatarConfig.TotalState; n++) o = this._avatarConfig.BundlePath + "/Avatar_" + (n + 1), t.push(p.AssetsManager.Instance.LoadAsset(o));
                                return [4, Promise.all(t).then(function(t) {
                                    if (e == r._avatarId && r.isValid)
                                        for (n = 0; n < t.length; n++) r._avatarPrefabs.push(t[n]);
                                    else
                                        for (var n = 0; n < t.length; n++) p.AssetsManager.Instance.UnloadAsset(t[n])
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.ConfigAvatar = function(e, t) {
                void 0 === t && (t = !1), this._avatarNode && (this._avatarNode.destroy(), this._avatarNode = null), this.IsPlayingAnimation = !1, this._currentAvatarState = e, this._avatarNode = cc.instantiate(this._avatarPrefabs[this._currentAvatarState]), this._avatarNode.parent = this.node, this._heroSkeleton = this._avatarNode.getComponent(sp.Skeleton), this._trackEntryInfos = {}, this._completedActionNames = [], this.StandbyAnimationName = "Common/skin" + (this._currentAvatarState + 1) + "_standby", this.SceneAnimationName = "Common/skin" + (this._currentAvatarState + 1) + "_SceneEffect", this.NeedKeepAnimation && (n.AVATAR_ANIMATIONS_RECORDER[this._avatarId] && !t || (n.AVATAR_ANIMATIONS_RECORDER[this._avatarId] = [])), this.PlayInitialAnimation();
                for (var o = this._avatarNode.getComponentsInChildren(l.default), r = 0; r < o.length; r++) {
                    var i = o[r];
                    i.ActionName && (this._trackEntryInfos[i.ActionName] = i, i.Init(this, this._heroSkeleton))
                }
            }, t.prototype.PlayInitialAnimation = function() {
                var e = this;
                if (this._isLock) this._heroSkeleton.timeScale = 0;
                else if (this._heroSkeleton.timeScale = 1, this._heroSkeleton.setAnimation(n.ACTION_FADE_TRACKINDEX, n.ACTION_FADEOUT, !1), this._needEntryAnimation) {
                    this.IsPlayingAnimation = !0;
                    var t = this._heroSkeleton.setAnimation(0, n.ACTION_ENTRY, !1);
                    this._heroSkeleton.setTrackCompleteListener(t, function() {
                        t.listener = null;
                        var o = e._heroSkeleton.setAnimation(n.ACTION_FADE_TRACKINDEX, n.ACTION_FADEIN, !1);
                        e._heroSkeleton.setTrackCompleteListener(o, function() {
                            o.listener = null, e.IsPlayingAnimation = !1, e._heroSkeleton.setAnimation(n.ACTION_FADE_TRACKINDEX, n.ACTION_FADEOUT, !1), e._heroSkeleton.setAnimation(0, e.StandbyAnimationName, !0), e._heroSkeleton.setAnimation(n.ACTION_SCENE_TRACKINDEX, e.SceneAnimationName, !0), d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_IS_ENTRY_COMPLETED), d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_IS_INITIAL_COMPLETED, e, e._eventId)
                        })
                    }), this.ShowEntryTalk(), this._needEntryAnimation = !1
                } else this._heroSkeleton.setAnimation(0, this.StandbyAnimationName, !0), this._heroSkeleton.setAnimation(n.ACTION_SCENE_TRACKINDEX, this.SceneAnimationName, !0), d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_IS_INITIAL_COMPLETED, this, this._eventId)
            }, t.prototype.RestoreAvatarAnimations = function() {
                for (var e in this.IsPlayingAnimation = !1, this._heroSkeleton.setAnimation(0, this.StandbyAnimationName, !0), this._heroSkeleton.setAnimation(n.ACTION_FADE_TRACKINDEX, n.ACTION_FADEOUT, !1), this._completedActionNames = [], n.AVATAR_ANIMATIONS_RECORDER[this._avatarId] = [], this._trackEntryInfos) this._trackEntryInfos[e].Init(this, this._heroSkeleton);
                d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_IS_RESTORED, this._eventId)
            }, t.prototype.OnTouchStart = function(e, t) {
                if (!this.IsPlayingAnimation) {
                    var n = e.getLocation();
                    this._touchStartPos = n, this._interactiveSpine = this.GetHitTrackEntry(n);
                    for (var o = 0; o < this._canTriggerInteractiveEditors.length; o++) this._canTriggerInteractiveEditors[o].OnTouchStart(e, t)
                }
            }, t.prototype.OnTouchMove = function(e, t) {
                if (this._interactiveSpine) {
                    if (this._canTriggerInteractiveEditors.length > 1 && this._canChangeInteractiveTarget && cc.Vec2.distance(this._touchStartPos, e.getLocation()) > n.TOUCHMOVE_DISTANCE_CHECK)
                        for (var o = 0; o < this._canTriggerInteractiveEditors.length; o++) {
                            var r = this._canTriggerInteractiveEditors[o];
                            r.InteractiveType == l.InteractiveType.Drag && (this._interactiveSpine = r, this._canChangeInteractiveTarget = !1)
                        }
                    this._interactiveSpine.OnTouchMove(e, t)
                }
            }, t.prototype.OnTouchEnd = function(e, t) {
                this.IsPlayingAnimation || this._interactiveSpine && (this._interactiveSpine.OnTouchEnd(e, t), this._interactiveSpine = null)
            }, t.prototype.OnTouchCancel = function(e, t) {
                this._interactiveSpine && (this._interactiveSpine.OnTouchCancel(e, t), this._interactiveSpine = null)
            }, t.prototype.GetHitTrackEntry = function(e) {
                var t;
                for (var n in this._canTriggerInteractiveEditors = [], this._canChangeInteractiveTarget = !1, this._trackEntryInfos)(r = this._trackEntryInfos[n]).IsPreConditionCompleted() && r.Isintersected(e) && this.IsCustomConditionCompleted(r.ActionName) && (this._canTriggerInteractiveEditors.push(r), r.InteractiveType == l.InteractiveType.Drag && (t = !0));
                if (1 == this._canTriggerInteractiveEditors.length) return this._canTriggerInteractiveEditors[0];
                if (this._canTriggerInteractiveEditors.length > 1) {
                    t && (this._canChangeInteractiveTarget = !0);
                    for (var o = 0; o < this._canTriggerInteractiveEditors.length; o++) {
                        var r;
                        if ((r = this._canTriggerInteractiveEditors[o]).InteractiveType == l.InteractiveType.Tap) return r
                    }
                }
                return null
            }, t.prototype.AddCompletedAction = function(e) {
                if (this.NeedKeepAnimation) {
                    var t = this._trackEntryInfos[e];
                    t && t.InteractiveType == l.InteractiveType.Drag && n.AVATAR_ANIMATIONS_RECORDER[this._avatarId].indexOf(e) < 0 && n.AVATAR_ANIMATIONS_RECORDER[this._avatarId].push(e)
                }
                this._completedActionNames.indexOf(e) < 0 && (this._completedActionNames.push(e), d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_IS_PLAYANIMATION_COMPLETED, this._avatarId, e, this._eventId))
            }, t.prototype.IsActionCompleted = function(e) {
                return this._completedActionNames.indexOf(e) >= 0
            }, Object.defineProperty(t.prototype, "AvatarId", {
                get: function() {
                    return this._avatarId
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "EventId", {
                get: function() {
                    return this._eventId
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "HeroSkeleton", {
                get: function() {
                    return this._heroSkeleton
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SetTalkLabel = function(e, t) {
                this._talkLabel = e, this._talkNode = t, this._talkNodePos = new cc.Vec2(t.x, t.y)
            }, t.prototype.ShowEntryTalk = function() {
                var e = this;
                if (this._avatarConfig.EntryTalkKey) {
                    var t = this._avatarConfig.EntryTalkConfig[0] / 1e3,
                        n = this._avatarConfig.EntryTalkConfig[1] / 1e3;
                    n = n || 2;
                    var o = this._avatarConfig.EntryTalkConfig[2],
                        r = this._avatarConfig.EntryTalkConfig[3];
                    o = o || 0, r = r || 0, this.scheduleOnce(function() {
                        e.ShowTalk(e._avatarConfig.EntryTalkKey, cc.v2(o, r)), e.scheduleOnce(function() {
                            e.HideTalk()
                        }, n)
                    }, t)
                }
            }, t.prototype.ShowTalk = function(e, t) {
                this._talkNode && (this._talkNode.active = !0, this._talkNode.x = this._talkNodePos.x + t.x, this._talkNode.y = this._talkNodePos.y + t.y, this._talkLabel && (this._talkLabel.string = e.ToUILocale()))
            }, t.prototype.HideTalk = function() {
                this._talkNode && (this._talkNode.active = !1)
            }, t.prototype.SetCustomConditionCallback = function(e) {
                this._conditionCallback = e
            }, t.prototype.IsCustomConditionCompleted = function(e) {
                return !this._conditionCallback || this._conditionCallback(this._avatarId, e)
            }, t.prototype.Unlock = function() {
                this._isLock = !1, this.AddTouchEvents(), this._heroSkeleton && this.PlayInitialAnimation()
            }, t.prototype.GetAvatarStateIndex = function() {
                return this._currentAvatarState
            }, t.prototype.onDestroy = function() {
                this.RemoveTouchEvents();
                for (var e = 0; e < this._avatarPrefabs.length; e++) p.AssetsManager.Instance.UnloadAsset(this._avatarPrefabs[e]);
                this._avatarPrefabs = []
            }, t.ACTION_ENTRY = "Common/Ani_show", t.ACTION_FADEIN = "Common/action_fadeIn", t.ACTION_FADEOUT = "Common/action_fadeOut", t.ACTION_FADE_TRACKINDEX = 999, t.ACTION_SCENE_TRACKINDEX = 998, t.TOUCHMOVE_DISTANCE_CHECK = 10, t.AVATAR_ANIMATIONS_RECORDER = {}, i([g(cc.Prefab)], t.prototype, "AvatarPrefabs", void 0), i([g(cc.Node)], t.prototype, "UINode", void 0), n = i([y], t)
        }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../Proto/Static/ConfigProto": "ConfigProto",
        "../EZFramework/EZFramework": "EZFramework",
        "../GamePlay/Auxiliary/EventKeys": "EventKeys",
        "../GamePlay/Components/Components": "Components",
        "./InteractiveSpineEditor": "InteractiveSpineEditor"
    }],
    InteractiveSpineEditor: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c8a97kJzBVIkKZpeNqGuQ+i", "InteractiveSpineEditor");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.InteractiveType = void 0;
        var a, s, l = e("./InteractiveSpineController"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.Tap = 1] = "Tap", e[e.Drag = 2] = "Drag"
        })(a = n.InteractiveType || (n.InteractiveType = {})),
        function(e) {
            e[e.None = 0] = "None", e[e.Up = 1] = "Up", e[e.Down = 2] = "Down", e[e.Left = 3] = "Left", e[e.Right = 4] = "Right"
        }(s || (s = {}));
        var d = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.InteractiveType = 0, t.Direction = 0, t.DragDistance = 0, t.IsPartAnimation = !1, t.TrackIndex = 0, t.ActionName = "", t.SwitchState = 0, t.NeedResetAnimation = !1, t.ResetAnimationDelay = 0, t.ResetAnimationDuration = .5, t.PreConditions = [], t.PostAnimationInfos = [], t.StagnationAnimation = "", t.StagnationTrackIndex = 0, t.TalkConfig = "", t.TalkOffset = cc.v2(0, 0), t.DRAG_SUCCESSFUL_PROGRESS = .8, t.ACTION_MIX_DURATION = .3, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                cc.director.getCollisionManager().enabled = !0, this._collider = this.node.getComponent(cc.PolygonCollider)
            }, t.prototype.Init = function(e, t) {
                if (this._controller = e, this._skeleton = t, this.InteractiveType == a.Drag) {
                    if (this._trackEntry = this._skeleton.setAnimation(this.TrackIndex, this.ActionName, !1), !this._trackEntry) return;
                    this._trackEntry.timeScale = 0, this._trackEntry.loop = !1, this._animationStartTime = this._trackEntry.animationStart, this._animationEndTime = this._trackEntry.animationEnd, this._trackEntry.trackTime = this._animationStartTime, this.InteractiveType == a.Drag && this.DragDistance > 0 && (this._unitDistance = this._animationEndTime / this.DragDistance), this.SetAnimationStateByRecorder()
                }
                this.ConfigPostAnimationInfos()
            }, t.prototype.ConfigPostAnimationInfos = function() {
                this._postAnimationInfos = [];
                for (var e = 0; e < this.PostAnimationInfos.length; e++) this._postAnimationInfos[e] = this.PostAnimationInfos[e].split("|")
            }, t.prototype.SetAnimationStateByRecorder = function() {
                this._controller.NeedKeepAnimation && !this.NeedResetAnimation && -1 != l.default.AVATAR_ANIMATIONS_RECORDER[this._controller.AvatarId].indexOf(this.ActionName) && (this._trackEntry.trackTime = this._animationEndTime, this._controller.AddCompletedAction(this.ActionName))
            }, t.prototype.Isintersected = function(e) {
                return cc.Intersection.pointInPolygon(e, this._collider.world.points)
            }, t.prototype.OnTouchStart = function(e) {
                var t = e.getLocation();
                if (this.Isintersected(t)) switch (this.InteractiveType) {
                    case a.Drag:
                        switch (this.Direction) {
                            case s.Up:
                            case s.Down:
                                this._beginTouchY = t.y;
                                break;
                            case s.Left:
                            case s.Right:
                                this._beginTouchX = t.x
                        }
                }
            }, t.prototype.OnTouchMove = function(e) {
                if (this.InteractiveType == a.Drag) {
                    var t = e.getLocation();
                    if (this.Isintersected(t)) {
                        var n = 0,
                            o = this._animationStartTime;
                        switch (this.Direction) {
                            case s.Up:
                                (n = t.y - this._beginTouchY) > 0 && (o = this._unitDistance * n);
                                break;
                            case s.Down:
                                (n = t.y - this._beginTouchY) < 0 && (o = Math.abs(this._unitDistance * n));
                                break;
                            case s.Left:
                                (n = t.x - this._beginTouchX) < 0 && (o = Math.abs(this._unitDistance * n));
                                break;
                            case s.Right:
                                (n = t.x - this._beginTouchX) > 0 && (o = this._unitDistance * n)
                        }
                        this._trackEntry.trackTime = this._animationStartTime + o
                    }
                }
            }, t.prototype.OnTouchEnd = function(e) {
                switch (this.InteractiveType) {
                    case a.Tap:
                        var t = e.getLocation();
                        this.Isintersected(t) && (this.IsPartAnimation ? this.PlayPartAnimation() : this.PlayAnimation());
                        break;
                    case a.Drag:
                        this.AdjustFinalState()
                }
            }, t.prototype.OnTouchCancel = function() {
                this.AdjustFinalState()
            }, t.prototype.AdjustFinalState = function() {
                this._trackEntry && ((this._trackEntry.trackTime - this._animationStartTime) / (this._animationEndTime - this._animationStartTime) >= this.DRAG_SUCCESSFUL_PROGRESS ? (this._trackEntry.trackTime = this._animationEndTime, this._controller.AddCompletedAction(this.ActionName), this.ShowTalk(this.ActionName), this.IsPostConditionCompleted() && this.PlayPostAnimation(), this.PlayResetAnimation()) : cc.tween(this._trackEntry).to(.15, {
                    trackTime: this._animationStartTime
                }).start())
            }, t.prototype.PlayAnimation = function() {
                var e = this;
                this.ShowTalk(this.ActionName), this._controller.IsPlayingAnimation = !0, this._skeleton.setMix(this._skeleton.animation, this.ActionName, this.ACTION_MIX_DURATION);
                var t = this._skeleton.setAnimation(0, this.ActionName, !1);
                this._skeleton.setTrackCompleteListener(t, this.OnAnimationComplete.bind(this)), this.scheduleOnce(function() {
                    e._skeleton.setMix(e.ActionName, e._controller.StandbyAnimationName, e.ACTION_MIX_DURATION), e._skeleton.setAnimation(0, e._controller.StandbyAnimationName, !0)
                }, t.animationEnd - this.ACTION_MIX_DURATION)
            }, t.prototype.OnAnimationComplete = function(e) {
                e.listener = null, this._controller.IsPlayingAnimation = !1, this._controller.AddCompletedAction(this.ActionName), this.ChangeNextState()
            }, t.prototype.PlayPostAnimation = function() {
                var e = this;
                this.ShowTalk(this._currentPostAnimation), this._controller.IsPlayingAnimation = !0, this._skeleton.setMix(this._skeleton.animation, this._currentPostAnimation, this.ACTION_MIX_DURATION);
                var t = this._skeleton.setAnimation(0, this._currentPostAnimation, !1);
                this._skeleton.setTrackCompleteListener(t, this.OnPostAnimationComplete.bind(this)), this.scheduleOnce(function() {
                    e._skeleton.setMix(e._currentPostAnimation, e._controller.StandbyAnimationName, e.ACTION_MIX_DURATION), e._skeleton.setAnimation(0, e._controller.StandbyAnimationName, !0)
                }, t.animationEnd - this.ACTION_MIX_DURATION), this.PlayStagnationAnimation()
            }, t.prototype.OnPostAnimationComplete = function(e) {
                e.listener = null, this._controller.IsPlayingAnimation = !1, this._controller.AddCompletedAction(this._currentPostAnimation), this.ChangeNextState()
            }, t.prototype.PlayStagnationAnimation = function() {
                if (this.StagnationAnimation) {
                    var e;
                    e = this.InteractiveType == a.Tap ? this.StagnationTrackIndex : this.TrackIndex;
                    var t = this._skeleton.setAnimation(e, this.StagnationAnimation, !1);
                    this._skeleton.setTrackCompleteListener(t, function(e) {
                        e.listener = null
                    })
                }
            }, t.prototype.PlayResetAnimation = function() {
                this.NeedResetAnimation && cc.tween(this._trackEntry).delay(this.ResetAnimationDelay).to(this.ResetAnimationDuration, {
                    trackTime: this._animationStartTime
                }).start()
            }, t.prototype.PlayPartAnimation = function() {
                this.ShowTalk(this.ActionName), this._controller.IsPlayingAnimation = !0;
                var e = this._skeleton.setAnimation(this.TrackIndex, this.ActionName, !1);
                this._skeleton.setTrackCompleteListener(e, this.OnPartAnimationComplete.bind(this))
            }, t.prototype.OnPartAnimationComplete = function(e) {
                e.listener = null, this._controller.IsPlayingAnimation = !1, this._controller.AddCompletedAction(this.ActionName), this._skeleton.clearTrack(this.TrackIndex), this.IsPostConditionCompleted() && this.PlayPostAnimation()
            }, t.prototype.IsPreConditionCompleted = function() {
                for (var e = 0; e < this.PreConditions.length; e++)
                    if (!this._controller.IsActionCompleted(this.PreConditions[e])) return !1;
                return !(this.InteractiveType == a.Drag && !this.NeedResetAnimation && this._controller.IsActionCompleted(this.ActionName))
            }, t.prototype.IsPostConditionCompleted = function() {
                for (var e = 0; e < this._postAnimationInfos.length; e++) {
                    var t = this._postAnimationInfos[e];
                    if (!(t.length > 1)) return this._currentPostAnimation = t[0], !0;
                    for (var n = !0, o = 1; o < t.length; o++)
                        if (!this._controller.IsActionCompleted(t[o])) {
                            n = !1;
                            break
                        } if (n) return this._currentPostAnimation = t[0], !0
                }
                return !1
            }, t.prototype.ChangeNextState = function() {
                var e = this;
                if (this.SwitchState) {
                    this._controller.IsPlayingAnimation = !0;
                    var t = this._skeleton.setAnimation(l.default.ACTION_FADE_TRACKINDEX, l.default.ACTION_FADEIN, !1);
                    this._skeleton.setTrackCompleteListener(t, function() {
                        e._controller.ConfigAvatar(e.SwitchState - 1, !0)
                    })
                }
            }, t.prototype.ShowTalk = function(e) {
                var t = this;
                if (this.TalkConfig) {
                    var n = this.TalkConfig.split("|");
                    if (n[3] == e) {
                        var o = Number.parseInt(n[1]) / 1e3,
                            r = Number.parseInt(n[2]) / 1e3;
                        r = r || 2, this.scheduleOnce(function() {
                            t._controller.ShowTalk(n[0], t.TalkOffset), t.scheduleOnce(function() {
                                t._controller.HideTalk()
                            }, r)
                        }, o)
                    }
                }
            }, i([p({
                type: cc.Enum(a),
                displayName: "\u4ea4\u4e92\u7c7b\u578b"
            })], t.prototype, "InteractiveType", void 0), i([p({
                type: cc.Enum(s),
                displayName: "\u62d6\u62fd\u65b9\u5411",
                visible: function() {
                    return this.InteractiveType == a.Drag
                }
            })], t.prototype, "Direction", void 0), i([p({
                type: cc.Integer,
                displayName: "\u62d6\u62fd\u8ddd\u79bb",
                tooltip: "\u5355\u4f4d\uff1a\u50cf\u7d20, \u9700\u8981\u7f16\u8f91\u4eba\u5458\u81ea\u884c\u6d4b\u91cf",
                visible: function() {
                    return this.InteractiveType == a.Drag
                }
            })], t.prototype, "DragDistance", void 0), i([p({
                displayName: "\u662f\u5426\u5c40\u90e8\u52a8\u4f5c",
                tooltip: "\u5c40\u90e8\u52a8\u4f5c\u9700\u8981\u914d\u7f6e\u5355\u72ec\u7684\u8f68\u9053",
                visible: function() {
                    return this.InteractiveType == a.Tap
                }
            })], t.prototype, "IsPartAnimation", void 0), i([p({
                type: cc.Integer,
                displayName: "\u52a8\u4f5c\u64ad\u653e\u8f68\u9053",
                tooltip: "\u4e0d\u53ef\u91cd\u590d, \u4e14\u4e0d\u53ef\u4e3a0",
                visible: function() {
                    return this.InteractiveType == a.Drag || this.IsPartAnimation
                }
            })], t.prototype, "TrackIndex", void 0), i([p({
                displayName: "\u52a8\u4f5c\u540d\u79f0",
                tooltip: "\u4e0d\u53ef\u4e3a\u7a7a"
            })], t.prototype, "ActionName", void 0), i([p({
                displayName: "\u5207\u6362\u65b0\u72b6\u6001",
                tooltip: "\u4e0d\u5207\u6362\u5c31\u9ed8\u8ba4\u662f0"
            })], t.prototype, "SwitchState", void 0), i([p({
                displayName: "\u662f\u5426\u91cd\u7f6e\u56de\u521d\u59cb\u72b6\u6001",
                tooltip: "\u62d6\u62fd\u64cd\u4f5c\u5b8c\u6210\u540e\u662f\u5426\u8981\u91cd\u7f6e\u56de\u521d\u59cb\u72b6\u6001",
                visible: function() {
                    return this.InteractiveType == a.Drag
                }
            })], t.prototype, "NeedResetAnimation", void 0), i([p({
                displayName: "\u91cd\u7f6e\u5ef6\u8fdf",
                tooltip: "\u91cd\u7f6e\u56de\u521d\u59cb\u72b6\u6001\u7684\u5ef6\u8fdf",
                visible: function() {
                    return this.InteractiveType == a.Drag && this.NeedResetAnimation
                }
            })], t.prototype, "ResetAnimationDelay", void 0), i([p({
                displayName: "\u91cd\u7f6e\u65f6\u957f",
                tooltip: "\u91cd\u7f6e\u56de\u521d\u59cb\u72b6\u6001\u7684\u65f6\u957f",
                visible: function() {
                    return this.InteractiveType == a.Drag && this.NeedResetAnimation
                }
            })], t.prototype, "ResetAnimationDuration", void 0), i([p({
                type: cc.String,
                displayName: "\u524d\u7f6e\u6761\u4ef6",
                tooltip: "\u5148\u586b\u89e6\u53d1\u6761\u4ef6\u7684\u6570\u91cf, \u518d\u586b\u52a8\u4f5c\u540d\u79f0, \u6240\u586b\u52a8\u4f5c\u90fd\u64ad\u653e\u8fc7\u4e86\u624d\u80fd\u89e6\u53d1\u5f53\u524d\u64cd\u4f5c"
            })], t.prototype, "PreConditions", void 0), i([p({
                type: cc.String,
                displayName: "\u540e\u7f6e\u52a8\u4f5c\u548c\u6761\u4ef6",
                tooltip: "\u62d6\u62fd\u5b8c\u6210\u540e\u89e6\u53d1\u7684\u65b0\u52a8\u4f5c\u548c\u6761\u4ef6 (\u52a8\u4f5c\u540d|\u6761\u4ef6\u540d|\u6761\u4ef6\u540d)",
                visible: function() {
                    return this.InteractiveType == a.Drag || this.IsPartAnimation
                }
            })], t.prototype, "PostAnimationInfos", void 0), i([p({
                displayName: "\u505c\u6ede\u52a8\u4f5c",
                tooltip: "\u548c\u540e\u7f6e\u52a8\u4f5c\u540c\u65f6\u64ad\u653e"
            })], t.prototype, "StagnationAnimation", void 0), i([p({
                type: cc.Integer,
                displayName: "\u505c\u6ede\u52a8\u4f5c\u7684\u64ad\u653e\u8f68\u9053",
                tooltip: "\u4e0d\u53ef\u91cd\u590d, \u4e14\u4e0d\u53ef\u4e3a0, \u4ec5\u70b9\u51fb\u64cd\u4f5c\u9700\u8981\u914d\u8f68\u9053\uff0c\u62d6\u62fd\u7c7b\u52a8\u4f5c\u4e0d\u7528",
                visible: function() {
                    return this.InteractiveType == a.Tap
                }
            })], t.prototype, "StagnationTrackIndex", void 0), i([p({
                displayName: "\u5bf9\u767dkey|\u5ef6\u8fdf|\u6301\u7eed|\u89e6\u53d1\u6240\u9700\u52a8\u4f5c",
                tooltip: "\u64ad\u653e\u52a8\u4f5c\u65f6\u7684\u5bf9\u767d\uff0c\u65f6\u95f4\u5355\u4f4d\uff1a\u6beb\u79d2"
            })], t.prototype, "TalkConfig", void 0), i([p({
                displayName: "\u5bf9\u8bdd\u6846\u7684\u5750\u6807\u504f\u79fb",
                tooltip: "\u9ed8\u8ba4\u5bf9\u8bdd\u6846\u4f4d\u7f6e\u5728\u53f3\u4e0a\u89d2"
            })], t.prototype, "TalkOffset", void 0), i([u], t)
        }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "./InteractiveSpineController": "InteractiveSpineController"
    }],
    ItemClickComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fd2caOnLvlKLbHpYxzndnmL", "ItemClickComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = cc._decorator,
            u = c.ccclass;
        c.property,
            function(e) {
                e[e.TouchStart = 0] = "TouchStart", e[e.TouchEnd = 1] = "TouchEnd"
            }(a || (a = {}));
        var p = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Zoom = 1.1, t._touchTime = 0, t._needHold = !1, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this._scale = this.node.scale
            }, t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_START, this.OnTouchStart, this), this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchCancel, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this), this.node.on(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_START, this.OnTouchStart, this), this.node.off(cc.Node.EventType.TOUCH_CANCEL, this.OnTouchCancel, this), this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouch, this), this.node.off(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this)
            }, t.prototype.update = function(e) {
                this._startTouch && (this._touchTime += e, this._touchTime > .5 && (this._isHoldItem = !0, this._startTouch = !1, this._touchTime = 0, s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ITEM_HOLD, Number.parseInt(this.node.name), this.node)))
            }, t.prototype.OnTouchStart = function() {
                this._touchTime = 0, this._startTouch = !0, this.SetTouchTween(a.TouchStart), s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ITEM_CLICK_START, this.node)
            }, t.prototype.OnTouchCancel = function() {
                this._startTouch = !1, this._isHoldItem = !1, this._touchTime = 0, this.node.scale = this._scale, this.SetTouchTween(null), s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ITEM_CLICK_CANCLE, this.node)
            }, t.prototype.OnTouchMove = function(e) {
                s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ITEM_CLICK_MOVE, this.node, e)
            }, t.prototype.OnTouch = function() {
                if (this._startTouch = !1, this._touchTime = 0, this._isHoldItem && this._needHold) return this._isHoldItem = !1, void this.SetTouchTween(a.TouchEnd);
                this.SetTouchTween(a.TouchEnd), s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ITEM_CLICK, Number.parseInt(this.node.name), this.node)
            }, t.prototype.SetTouchTween = function(e) {
                switch (this._tween1 && this._tween1.stop(), this._tween2 && this._tween2.stop(), e) {
                    case a.TouchStart:
                        this.node.scale = this._scale, this._tween1 = cc.tween(this.node).to(.12, {
                            scale: this._scale * this.Zoom
                        }).start();
                        break;
                    case a.TouchEnd:
                        if (this.node.scale < this._scale * this.Zoom) {
                            var t = (this._scale * this.Zoom - this.node.scale) / (this._scale * this.Zoom - this._scale) * .12;
                            this._tween2 = cc.tween(this.node).to(t, {
                                scale: this._scale * this.Zoom
                            }).to(.1, {
                                scale: this._scale
                            }).start()
                        } else this._tween2 = cc.tween(this.node).to(.1, {
                            scale: this._scale
                        }).start()
                }
            }, t.prototype.SetNeedHold = function(e) {
                this._needHold = e
            }, t.prototype.Rescale = function(e) {
                this._scale = e, this.node.scale = e
            }, t.prototype.SetScale = function(e) {
                this._scale = e
            }, i([u], t)
        }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    ItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "70e88d1IK9EwqLTDawoR7mI", "ItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ItemComponent = n.ItemComponentType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./LevelComponent"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/Components"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../../Consts/Consts"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../Panel/CommonLongLabelRollComponent"),
            v = e("../Panel/StarPiecePanel"),
            b = e("../../Channel/ChannelManager"),
            S = e("./CustomProgressBar"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.HeroInfo = 0] = "HeroInfo", e[e.ItemCommon = 1] = "ItemCommon", e[e.Fragment = 2] = "Fragment", e[e.ItemWithName = 3] = "ItemWithName", e[e.HeroCountProgress = 4] = "HeroCountProgress", e[e.ItemWithStar = 5] = "ItemWithStar", e[e.Gem = 6] = "Gem", e[e.Pet = 7] = "Pet", e[e.PetCountProgress = 8] = "PetCountProgress", e[e.Angel = 9] = "Angel", e[e.LuckyCharm = 10] = "LuckyCharm", e[e.StarPiece = 11] = "StarPiece"
        })(l = n.ItemComponentType || (n.ItemComponentType = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ItemHighLight = null, t.HeroHighLight = null, t.Bg = null, t.Icon = null, t.Border = null, t.QualityBorder = null, t.ElementIcon = null, t.PersonalityBg = null, t.PersonalityLabel = null, t.Name = null, t.HeroLevel = null, t.ItemTypeIcon = null, t.MVP = null, t.Count = null, t.ItemMask = null, t.HeroMask = null, t.StarNode = null, t.LevelComponent = null, t.ItemProgressBar = null, t.ItemProgressLabel = null, t.ReceivedTag = null, t.AddFlag = null, t.SelectFlag = null, t.RedDot = null, t.TeamFlag = null, t.DiscountBg = null, t.DiscountValue = null, t.Spine1 = null, t.Spine2 = null, t.Spine3 = null, t.UpDown = null, t.UpImage = null, t.DownImage = null, t.LeftTagNode = null, t.TimeLimitNode = null, t.TimeLabel = null, t.SPBorder = null, t.SPElementBg = null, t.GemAttrSprite = null, t.HeroProfessionIcon = null, t.HolyEquipmentTag = null, t.RightTopIcon = null, t.PuzzleStageBgNode = null, t.PuzzleStageLabel = null, t.GemSelectBgNode = null, t.GemSelectLabel = null, t.SuperWeaponTagNode = null, t.CustomLabel = null, t.CustomLabelBg = null, t.NewTag = null, t.originalSize = 218, t._itemCount = 0, t._needCount = 0, t._starLevel = 0, t._elementType = 0, t._isResetItemBorder = !1, t._isOnGray = !1, t._isItem = !0, t._level = 0, t._loadedAssets = [], t._lightingCircle = [void 0, void 0, void 0, void 0], t._itemEffectSkeletonData = {}, t._isSelf = !0, t._personalityStarLevel = 0, t._skinId = 0, t._urStarLevel = 0, t._showTimeConsumeType = [m.ConsumeItemType.HeroSkin, m.ConsumeItemType.Title, m.ConsumeItemType.HeadFrame, m.ConsumeItemType.ChatWindow, m.ConsumeItemType.PaidEmoji, m.ConsumeItemType.MainSceneBackground, m.ConsumeItemType.PrivilegeCard], t
            }
            var n;
            return r(t, e), n = t, t.prototype.Init = function(e, t) {
                if (void 0 === t && (t = l.ItemCommon), this.HideAllNode(), this._itemCount = 1, this._petData = null, this._angelData = null, this._starPieceData = null, this._exclusiveWeaponData = null, this._urStarLevel = 0, e instanceof f.UserItem_Model)
                    if (this._itemId = e.ItemId, this._itemCount = e.Count, e.Count < 0) switch (this.ItemSid = Math.abs(e.Count), y.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._itemId).Type) {
                        case u.ItemType.Hero:
                            (o = y.DataCenter.Instance.GetDataById(f.UserHero_Model, this.ItemSid)) && (t = l.HeroInfo, this._heroData = o, this._itemId = o.HeroId, this._starLevel = o.StarLevel, o.TemplePosition > 0 ? (this._level = o.TempleLevel, this.HeroLevel.node.color = d.UIUtlity.Herolevel_Label_Color_StarResonance) : (this._level = o.Level, this.HeroLevel.node.color = cc.Color.WHITE));
                            break;
                        case u.ItemType.HolyEquip:
                            (o = y.DataCenter.Instance.GetDataById(f.HolyEquipment_Model, this.ItemSid)) && (t = l.ItemWithStar, this._starLevel = o.Star, this._urStarLevel = o.Step);
                            break;
                        case u.ItemType.LuckyCharm:
                            (o = y.DataCenter.Instance.GetDataById(f.LuckyCharmEquip_Model, this.ItemSid)) && (o.ItemId == u.CommonItemId.PrimordialLuckyCharm ? (t = l.ItemWithStar, this._itemId = u.CommonItemId.PrimordialLuckyCharm, this._starLevel = o.StarSkills.length) : o.ItemId == u.CommonItemId.GloryLuckyCharm && (t = l.ItemWithStar, this._itemId = u.CommonItemId.GloryLuckyCharm, this._starLevel = o.StarSkills.length, this._urStarLevel = o.GloryStar));
                            break;
                        case u.ItemType.Gem:
                            (o = y.DataCenter.Instance.GetDataById(f.GemEquip_Model, this.ItemSid)) && (t = l.Gem, this._gemData = o, this._itemId = e.ItemId, this.ItemSid = o.Sid);
                            break;
                        case u.ItemType.PowerCore:
                            var n = y.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, this._itemId);
                            this._starLevel = n.Star, t = l.ItemWithStar;
                            break;
                        case u.ItemType.Pet:
                            var o;
                            (o = y.DataCenter.Instance.GetDataById(f.UserPet_Model, this.ItemSid)) && (t = l.Pet, this._petData = o, this._itemId = o.Sid, this._starLevel = o.Star, this.ItemSid = o.Sid, this._level = o.Level)
                    } else this.ItemSid = void 0;
                    else if (e instanceof f.UserHero_Model) this._heroData = e, this._itemId = e.HeroId, this._starLevel = e.StarLevel, e.TemplePosition > 0 ? (this._level = e.TempleLevel, this.HeroLevel.node.color = d.UIUtlity.Herolevel_Label_Color_StarResonance) : (this._level = e.Level, this.HeroLevel.node.color = cc.Color.WHITE);
                else if (e instanceof f.GemEquip_Model) this._gemData = e, this._itemId = e.ItemId, this.ItemSid = e.Sid;
                else if (e instanceof f.UserPet_Model) this._petData = e, this._itemId = e.Sid, this._starLevel = e.Star, this.ItemSid = e.Sid, this._level = e.Level;
                else if (e instanceof f.UserAngel_Model) this._angelData = e, this._itemId = e.AngelId, this._starLevel = e.StarLevel, this._level = e.Level;
                else if (e instanceof f.LuckyCharmEquip_Model) this._itemId = e.ItemId, this.ItemSid = e.Sid, e.ItemId != u.CommonItemId.PrimordialLuckyCharm && e.ItemId != u.CommonItemId.GloryLuckyCharm || (this._starLevel = e.StarSkills.length, e.ItemId == u.CommonItemId.GloryLuckyCharm && (this._urStarLevel = e.GloryStar));
                else if (e instanceof f.StarPiece_Model) {
                    this._starPieceData = e;
                    var r = y.ConfigDataComponent.Instance.GetConfigById(p.StarPiece_Config, e.Sid);
                    this._itemId = r.ItemBaseId
                } else if (e instanceof f.ExclusiveWeapon_Model) {
                    this._exclusiveWeaponData = e;
                    var i = y.ConfigDataComponent.Instance.GetConfigById(p.ExclusiveWeapon_Config, e.Sid);
                    this._itemId = i.ItemBaseId
                } else this._itemId = e.ItemId, this._itemCount = e.Count, this.ItemSid = e.Sid, this._needCount = e.NeedCount, this._starLevel = e.StarLevel, this._elementType = e.ElementType, this._level = e.Level, this._skinId = e.SkinId, this._urStarLevel = e.URStarLevel, e.TempleLevel > 0 ? (this._level = e.TempleLevel, this.HeroLevel.node.color = d.UIUtlity.Herolevel_Label_Color_StarResonance) : (this._level = e.Level, this.HeroLevel.node.color = cc.Color.WHITE);
                this._isResetItemBorder = !1, this.SPBorder && this.SPElementBg && (this.SPBorder.node.active = !1, this.SPElementBg.node.active = !1), this.GemAttrSprite && (this.GemAttrSprite.node.active = !1), this._displayType = t, this.UpDown && (this.UpDown.active = !1), this.ConfigItemByType()
            }, t.prototype.HideAllNode = function() {
                this.node.children.forEach(function(e) {
                    e.active = !1
                }), this.HeroLevel.node.parent.children.forEach(function(e) {
                    e.active = !1
                }), this.DisableLeftTimeSchedule(), this.HeroLevel.node.parent.active = !0, this.Bg.node.active = !0, this.Icon.node.active = !0, this.Border.node.active = !0
            }, t.prototype.ConfigItemByType = function() {
                switch (this._displayType) {
                    case l.HeroInfo:
                        this.ConfigHeroInfo();
                        break;
                    case l.ItemCommon:
                        this.ConfigItemCommon();
                        break;
                    case l.Fragment:
                        this.ConfigItemPiece();
                        break;
                    case l.ItemWithName:
                        this.ConfigItemWithName();
                        break;
                    case l.HeroCountProgress:
                        this.ConfigHeroCountProgress();
                        break;
                    case l.ItemWithStar:
                        this.ConfigItemWithStar();
                        break;
                    case l.Gem:
                        this.ConfigGemItem();
                        break;
                    case l.Pet:
                        this.ConfigPetItem();
                        break;
                    case l.PetCountProgress:
                        this.ConfigPetCountProgress();
                        break;
                    case l.Angel:
                        this.ConfigAngelItem();
                        break;
                    case l.LuckyCharm:
                        this.ConfigItemWithLuckyCharm();
                        break;
                    case l.StarPiece:
                        this.ConfigItemWithStarPiece()
                }
            }, t.prototype.ConfigHeroInfo = function() {
                var e;
                this._isItem = !1;
                var t = 0;
                if (this._itemId > 0) {
                    var n = y.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._itemId);
                    e = n.ElementType, t = n.CoreHero, this.SetHeroIcon(), this.SetSPHero(n.CoreHero), this.SetHeroProfession(n.Career), this._starLevel || (this._starLevel = n.StarLevel), this.SetHeroBgAndBorder(n, this._starLevel)
                } else {
                    var o = "fragment_" + (this._starLevel >= d.UIUtlity.Max_Quality_Level ? d.UIUtlity.Max_Quality_Level : this._starLevel);
                    e = this._elementType, this.SetItemIcon(o), this.SetOtherBgAndBorder(this._starLevel, e, t)
                }
                this.SetHeroElementIcon(e), this.SetHeroStar(this._starLevel, t, e), this.SetLevel(), this.SetPersonality(), d.UIUtlity.HeroQualityConfig[t] && d.UIUtlity.HeroQualityConfig[t].ItemBorderEffect ? this.PlayItemEffect(d.UIUtlity.HeroQualityConfig[t].ItemBorderEffect) : this.PauseItemEffect()
            }, t.prototype.ConfigItemCommon = function(e) {
                this._isItem = !0, void 0 === e && (e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._itemId)), this.SetItemBgAndBorder(e);
                var t = n.GetItemIcon(e),
                    o = t > 0 ? t.toString() : "";
                switch (this.SetItemIcon(o), this.SetCount(this._itemCount, e), this.SetFragmentTag(e.Type), this.SetItemElementIcon(e.ElementType), this.SetTimeLimit(), this.SetItemStage(e.StageId), e.Type) {
                    case u.ItemType.Puzzle:
                        this.SetPuzzleStage();
                        break;
                    case u.ItemType.HolyEquip:
                        this.ItemSid && y.DataCenter.Instance.GetDataById(f.HolyEquipment_Model, this.ItemSid).GallerySlot && this.SetHolyEquipmentTag(!0);
                        break;
                    case u.ItemType.Consume:
                        var r = y.ConfigDataComponent.Instance.GetConfigById(p.ItemConsume_Config, e.Id);
                        if (r) switch (r.SubType) {
                            case u.ConsumeItemType.HeadFrame:
                                this.SetHeadFrameIsHave(r);
                                break;
                            case u.ConsumeItemType.MainSceneBackground:
                                this.SetMainSceneBackgroundIsHave(r)
                        }
                        break;
                    case u.ItemType.TemplePiece:
                        var i = _.default.GetStarPieceIdByFragmentId(e.Id, v.StarTemplePieceType.General),
                            a = y.ConfigDataComponent.Instance.GetConfigById(p.StarPiece_Config, i);
                        this.SetTempleLeftTag(a)
                }
                "" != e.SpineEffectName ? this.PlayItemEffect(e.SpineEffectName) : this.PauseItemEffect(), this._displayType != l.ItemWithStar && e.Star > 0 && this.SetStar(e.Star, e.Type)
            }, t.GetItemIcon = function(e) {
                var t = 0;
                switch (e.Type) {
                    case u.ItemType.ItemPiece:
                        var n = y.ConfigDataComponent.Instance.GetConfigById(p.ItemPiece_Config, e.Id);
                        switch (n.SubType) {
                            case u.ItemPieceType.HeroPiece:
                            case u.ItemPieceType.PersonalityPiece:
                            case u.ItemPieceType.PowerCorePiece:
                            case u.ItemPieceType.ArtefactPiece:
                                n.CardId > 0 && (t = n.CardId);
                                break;
                            case u.ItemPieceType.SuperWeaponPiece:
                                var o = _.default.GetStarPieceIdByFragmentId(e.Id, v.StarTemplePieceType.SuperWeapon);
                                if (o) t = o;
                                else {
                                    var r = _.default.GetNewYearWeaponPieceIdByFragmentId(e.Id);
                                    r && (t = r)
                                }
                        }
                        break;
                    case u.ItemType.TemplePiece:
                        var i = _.default.GetStarPieceIdByFragmentId(e.Id, v.StarTemplePieceType.General);
                        t = y.ConfigDataComponent.Instance.GetConfigById(p.StarPiece_Config, i).ItemBaseId;
                        break;
                    case u.ItemType.ExclusiveTemplePiece:
                        i = _.default.GetStarPieceIdByFragmentId(e.Id, v.StarTemplePieceType.Exclusive), t = y.ConfigDataComponent.Instance.GetConfigById(p.ExclusiveWeapon_Config, i).ItemBaseId;
                        break;
                    case u.ItemType.SkinPiece:
                        t = y.ConfigCacheComponent.Instance.GetHeroSkinItemIdByPieceId(e.Id);
                        break;
                    case u.ItemType.Consume:
                        if (y.ConfigDataComponent.Instance.GetConfigById(p.ItemConsume_Config, e.Id).SubType == m.ConsumeItemType.UsableReel)
                            for (var a in y.DataCenter.Instance.ActivityConfigs) {
                                var s = y.DataCenter.Instance.ActivityConfigs[a];
                                if (s.Common.Type == u.ActivityType.MagicCompose)
                                    for (var l = s, c = 0; c < l.__Reel.length; c++) {
                                        var d = l.__Reel[c];
                                        if (e.Id == d.Id) return d.PicId
                                    }
                            }
                        break;
                    case u.ItemType.CurrencyDiscountTicket:
                        var h = y.ConfigDataComponent.Instance.GetConfigById(p.ItemCurrencyDiscount_Config, e.Id);
                        h.ItemIcon && (t = h.ItemIcon)
                }
                return t
            }, t.prototype.ConfigItemWithStar = function(e) {
                void 0 === e && (e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._itemId)), this.ConfigItemCommon(e), this._starLevel ? this.SetStar(this._starLevel, e.Type) : this.SetStar(e.Star, e.Type)
            }, t.prototype.ConfigItemWithLuckyCharm = function() {
                var e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._itemId);
                this.ConfigItemCommon(e), this._itemId >= u.CommonItemId.PrimordialLuckyCharm && this.SetStar(this._starLevel, e.Type)
            }, t.prototype.ConfigItemWithStarPiece = function() {
                var e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._itemId);
                this.ConfigItemCommon(e), this.SetSuperWeapon();
                var t = y.ConfigCacheComponent.Instance.GetStarPieceConfigByItemId(this._itemId);
                this.SetTempleLeftTag(t)
            }, t.prototype.ConfigItemPiece = function() {
                var e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._itemId);
                this.ConfigItemCommon(e);
                var t = y.ConfigDataComponent.Instance.GetConfigById(p.ItemPiece_Config, this._itemId);
                this.SetFragmentProgressBar(t.RequireCount)
            }, t.prototype.ConfigItemWithName = function() {
                var e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._itemId);
                this.ConfigItemCommon(e), this.SetName(this._itemId.ToItemName())
            }, t.prototype.ConfigGemItem = function() {
                var e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._itemId);
                this.ConfigItemCommon(e), this._gemData && this.SetGemAttrSprite(this._gemData)
            }, t.prototype.ConfigPetItem = function() {
                this._isItem = !1, this.SetPetIcon();
                var e = y.ConfigDataComponent.Instance.GetConfigById(p.PetBase_Config, this._itemId);
                this._petData, this.SetPetBgAndBorder(e.Quality), this.SetHeroStar(this._starLevel), this.SetLevel()
            }, t.prototype.SetNameResizeHeight = function() {
                this.Name.overflow = cc.Label.Overflow.RESIZE_HEIGHT, this.Name.node.width = 220
            }, t.prototype.ConfigHeroCountProgress = function() {
                this.ConfigHeroInfo(), this.SetProgressBar(this._itemCount, this._needCount)
            }, t.prototype.ConfigPetCountProgress = function() {
                this._isItem = !1, this.ElementIcon.node.active = !1, this.HeroLevel.node.active = !1, this.SetPetIcon(), this.SetOtherBgAndBorder(this._starLevel, 0, 0), this.SetHeroStar(this._starLevel), this.SetProgressBar(this._itemCount, this._needCount)
            }, t.prototype.ConfigAngelItem = function() {
                this._isItem = !1, this.ElementIcon.node.active = !1, this.SetAngelIcon();
                var e = y.ConfigDataComponent.Instance.GetConfigById(p.AngelBase_Config, this._itemId);
                this.SetOtherBgAndBorder(e.Quality, 0, 0), this.SetHeroStar(this._starLevel), this.SetLevel()
            }, t.prototype.SetProgressBar = function(e, t, n, o, r, i, a, s, l) {
                void 0 === n && (n = !1), void 0 === o && (o = 1), void 0 === r && (r = 1), void 0 === l && (l = 3), this.ItemProgressBar.node.scaleX = o, this.ItemProgressBar.node.scaleY = r, i && (this.ItemProgressBar.node.y = i), a && (this.ItemProgressBar.TotalLength = a), s && (this.ItemProgressLabel.node.scaleX = r / o, this.ItemProgressLabel.node.scaleY = 1, this.ItemProgressLabel.fontSize = s, this.ItemProgressLabel.node.getComponent(cc.LabelOutline).width = l), this.ItemProgressBar.node.active = !0, this.ItemProgressBar.progress = e / t, this.ItemProgressLabel.string = n ? e.FmtCurrency() + "/" + t : e + "/" + t
            }, t.prototype.SetHeroHp = function(e) {
                this.ItemProgressBar.node.active = !0, null != e ? (this.ItemProgressBar.progress = e / 1e3, 0 == e ? this.OnIconGray(!0) : this.OffIconGray()) : (this.ItemProgressBar.progress = 1, this.OffIconGray())
            }, t.prototype.SetHeroBgAndBorder = function(e, t) {
                var n = t > d.UIUtlity.Max_Quality_Level ? d.UIUtlity.Max_Quality_Level : t,
                    o = "",
                    r = d.UIUtlity.GetHeroBorderPathByQuality(n, e.ElementType, e.CoreHero),
                    i = d.UIUtlity.GetHeroQualityBg(n, e.ElementType, e.CoreHero);
                5 == e.StarLevel && e.CoreHero < 2 && (o = e.CoreHero ? "_2" : 9 == e.MaxStarLevel ? "" : "_1");
                var a = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(r);
                this.Bg.spriteFrame = i, this.Border.spriteFrame = a, this.QualityBorder && o && (this.QualityBorder.node.active = !0, this.QualityBorder.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(r + o))
            }, t.prototype.SetOtherBgAndBorder = function(e, t, n) {
                e = e > d.UIUtlity.Max_Quality_Level ? d.UIUtlity.Max_Quality_Level : e;
                var o = d.UIUtlity.GetHeroQualityBg(e, t, n),
                    r = d.UIUtlity.GetHeroBorderByQuality(e, t, n);
                this.Bg.spriteFrame = o, this.Border.spriteFrame = r
            }, t.prototype.SetPetBgAndBorder = function(e) {
                var t = this,
                    n = d.UIUtlity.GetPetQualityBg(e),
                    o = d.UIUtlity.GetPetBorderByQuality(e);
                Promise.all([n, o]).then(function(e) {
                    t.isValid && (t.Bg.spriteFrame = e[0], t.Border.spriteFrame = e[1])
                })
            }, t.prototype.CustomItemBgAndBorder = function(e) {
                var t = this;
                e = e > d.UIUtlity.Max_Item_Quality_Level ? d.UIUtlity.Max_Item_Quality_Level : e;
                var n = d.UIUtlity.GetItemQualityBg(e, 0, 0),
                    o = d.UIUtlity.GetItemBorderByQuality(e, 0, 0);
                Promise.all([n, o]).then(function(e) {
                    t.isValid && (t.Bg.spriteFrame = e[0], t.Border.spriteFrame = e[1])
                })
            }, t.prototype.SetItemBgAndBorder = function(e) {
                var t = this,
                    n = 0;
                switch (e.Type) {
                    case u.ItemType.Hero:
                        n = y.ConfigDataComponent.Instance.GetConfigById(p.ItemHeroCard_Config, e.Id).HeroId;
                        break;
                    case u.ItemType.ItemPiece:
                        var o = y.ConfigDataComponent.Instance.GetConfigById(p.ItemPiece_Config, e.Id);
                        if (o.SubType == u.ItemPieceType.HeroPiece) {
                            var r = y.ConfigDataComponent.Instance.GetConfigById(p.ItemHeroCard_Config, o.CardId);
                            r && (n = r.HeroId)
                        }
                }
                var i = 0;
                n > 0 ? i = y.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, n).CoreHero : (e.ElementType >= 200 && e.ElementType < 300 && (i = 2), e.ElementType >= 300 && e.ElementType < 400 && (i = 3)), this.SetSPHero(i);
                var a, s = d.UIUtlity.GetItemQualityBg(e.Quality, e.ElementType, i);
                e.ExtraQuality && (this.QualityBorder.node.active = !0, a = d.UIUtlity.GetItemBorderByQuality(e.Quality, e.ElementType, i, e.ExtraQuality));
                var l = this._urStarLevel > 0 ? d.UIUtlity.GetItemBorderByQuality(9) : d.UIUtlity.GetItemBorderByQuality(e.Quality, e.ElementType, i);
                Promise.all([s, l, a]).then(function(e) {
                    t.isValid && (t.Bg.spriteFrame = e[0], t._isResetItemBorder ? t._isResetItemBorder = !1 : t.Border.spriteFrame = e[1], e[2] && (t.QualityBorder.spriteFrame = e[2]))
                })
            }, t.prototype.SetBorder = function(e) {
                this._isResetItemBorder = !0, this.Border.spriteFrame = e
            }, t.prototype.SetItemIcon = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return t = this._itemId, this.Icon.spriteFrame = null, e ? [4, c.AssetsManager.Instance.LoadAsset(g.BundlePath.ItemIcon + "/" + e, cc.SpriteFrame)] : [3, 2];
                            case 1:
                                return l = s.sent(), this.isValid && t == this._itemId ? (this._loadedAssets.push(l), this.Icon.spriteFrame = l, [3, 6]) : (c.AssetsManager.Instance.UnloadAsset(l), [2]);
                            case 2:
                                return (n = y.ConfigDataComponent.Instance.GetConfigById(p.ItemConsume_Config, this._itemId)) && n.SubType == m.ConsumeItemType.Title ? [4, c.AssetsManager.Instance.LoadAsset(y.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + this._itemId), cc.SpriteFrame)] : [3, 4];
                            case 3:
                                return o = s.sent(), this.isValid && t == this._itemId ? (this._loadedAssets.push(o), this.Icon.spriteFrame = o, r = o.getOriginalSize(), i = 190 / r.width, this.Icon.node.width = 190, this.Icon.node.height = Math.round(r.height * i), [2]) : (c.AssetsManager.Instance.UnloadAsset(o), [2]);
                            case 4:
                                return a = _.default.Instance.GetItemPathById(this._itemId), [4, c.AssetsManager.Instance.LoadAsset(a, cc.SpriteFrame)];
                            case 5:
                                if (l = s.sent(), !this.isValid || t != this._itemId) return c.AssetsManager.Instance.UnloadAsset(l), [2];
                                this._loadedAssets.push(l), this.Icon.spriteFrame = l, this.Icon.node.width = 190, this.Icon.node.height = 190, s.label = 6;
                            case 6:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetFragmentTag = function(e) {
                switch (e) {
                    case u.ItemType.Consume:
                        var t = y.ConfigDataComponent.Instance.GetConfigById(p.ItemConsume_Config, this._itemId);
                        t && 31 == t.SubType && (this.ItemTypeIcon.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("skinIcon"), this.ItemTypeIcon.node.active = !0);
                        break;
                    case u.ItemType.ItemPiece:
                    case u.ItemType.TemplePiece:
                    case u.ItemType.ExclusiveTemplePiece:
                    case u.ItemType.SkinPiece:
                        this.ItemTypeIcon.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("pieceTag"), this.ItemTypeIcon.node.active = !0;
                        break;
                    default:
                        this.ItemTypeIcon.node.active = !1
                }
            }, t.prototype.SetHeroIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e = 0, t = null, this._heroData && this._heroData.SkinId || this._skinId ? this._heroData && this._heroData.SkinId ? (e = this._heroData.SkinId, [4, c.AssetsManager.Instance.LoadAsset(g.BundlePath.HeroHeadIcon + "/" + e, cc.SpriteFrame)]) : [3, 2] : [3, 5];
                            case 1:
                                return t = n.sent(), this.isValid && e == this._heroData.SkinId ? [3, 4] : (c.AssetsManager.Instance.UnloadAsset(t), [2]);
                            case 2:
                                return e = this._skinId, [4, c.AssetsManager.Instance.LoadAsset(g.BundlePath.HeroHeadIcon + "/" + e, cc.SpriteFrame)];
                            case 3:
                                if (t = n.sent(), !this.isValid || e != this._skinId) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                n.label = 4;
                            case 4:
                                return [3, 7];
                            case 5:
                                return e = this._itemId, [4, c.AssetsManager.Instance.LoadAsset(g.BundlePath.HeroHeadIcon + "/" + e, cc.SpriteFrame)];
                            case 6:
                                if (t = n.sent(), !this.isValid || e != this._itemId) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                n.label = 7;
                            case 7:
                                return this._loadedAssets.push(t), this.Icon.spriteFrame = t, [2]
                        }
                    })
                })
            }, t.prototype.SetPetIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e = this._itemId, [4, c.AssetsManager.Instance.LoadAsset(g.BundlePath.PetHeadIcon + "/" + e, cc.SpriteFrame)];
                            case 1:
                                return t = n.sent(), this.isValid && e == this._itemId ? (this._loadedAssets.push(t), this.Icon.spriteFrame = t, [2]) : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.SetAngelIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e = this._itemId, this._angelData && this._angelData.SkinId > 0 || this._skinId > 0 ? (void 0, n = this._angelData && this._angelData.SkinId > 0 ? this._angelData.SkinId : this._skinId, t = n) : (o = y.ConfigDataComponent.Instance.GetConfigById(p.AngelStar_Config, 1e3 * e + this._starLevel), t = o.AngelShape), [4, c.AssetsManager.Instance.LoadAsset(g.BundlePath.AngelHeadIcon + "/" + t, cc.SpriteFrame)];
                            case 1:
                                return r = i.sent(), this.isValid && e == this._itemId ? (this._loadedAssets.push(r), this.Icon.spriteFrame = r, [2]) : (c.AssetsManager.Instance.UnloadAsset(r), [2])
                        }
                    })
                })
            }, t.prototype.SetSPHero = function(e) {
                this.SPBorder && (2 == e ? (this.SPBorder.node.active = !0, this.SPBorder.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spBottom"), this.SPElementBg.node.active = !0, this.SPElementBg.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spCricle")) : d.UIUtlity.HeroQualityConfig[e] ? (this.SPBorder.node.active = !0, this.SPBorder.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(d.UIUtlity.HeroQualityConfig[e].Bottom), this.SPElementBg.node.active = !0, this.SPElementBg.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(d.UIUtlity.HeroQualityConfig[e].Cricle)) : (this.SPBorder.node.active = !1, this.SPElementBg.node.active = !1))
            }, t.prototype.SetHeroProfession = function(e) {
                this.HeroProfessionIcon.node.active = !0, this.HeroProfessionIcon.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("profession_" + e)
            }, t.prototype.SetHeroLevelColor = function(e) {
                this.HeroLevel.node.color = e
            }, t.prototype.SetHeroElementIcon = function(e) {
                if (e > 0) {
                    this.ElementIcon.node.active = !0;
                    var t = d.UIUtlity.GetHeroElementIcon(e);
                    this.ElementIcon.spriteFrame = t
                }
            }, t.prototype.SetItemElementIcon = function(e) {
                if (0 != e)
                    if (e < 100) this.SetHeroElementIcon(e);
                    else if (e >= 200 && e < 300) {
                    var t = void 0;
                    e < u.HeroElementType.SPCombine5 ? (t = e - 200, this.SetHeroElementIcon(t)) : (t = e - 120, this.ElementIcon.node.active = !0, this.ElementIcon.spriteFrame = d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("element_" + t))
                } else e >= 300 && e < 400 ? (t = void 0, e < u.HeroElementType.URCombine5 ? (t = e - 300, this.SetHeroElementIcon(t)) : (t = e - 220, this.ElementIcon.node.active = !0, this.ElementIcon.spriteFrame = d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("element_" + t))) : e >= 400 && e < 500 ? (t = void 0, e < u.HeroElementType.LRCombine5 ? (t = e - 400, this.SetHeroElementIcon(t)) : (t = e - 320, this.ElementIcon.node.active = !0, this.ElementIcon.spriteFrame = d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("element_" + t))) : (this.ElementIcon.node.active = !0, this.ElementIcon.spriteFrame = d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("element_" + e))
            }, t.prototype.SetCustomIcon = function(e, t, n) {
                this.Icon.node.active = !0, this.Icon.spriteFrame = e, t && (this.Icon.node.width = t), n && (this.Icon.node.height = n)
            }, t.prototype.SetHeroStar = function(e, t, n) {
                this.StarNode.active = !0;
                var o = h.LevelComponent.GetLevelShowType(t, n);
                this.LevelComponent.Init(e, 0, h.StarLayoutMode.Left, o)
            }, t.prototype.SetStar = function(e, t, n) {
                void 0 === t && (t = 0), void 0 === n && (n = h.StarLayoutMode.Middle), this.StarNode.active = !0, this._urStarLevel ? this.LevelComponent.Init(e, t, n, h.HighLevelType.Common, this._urStarLevel) : this.LevelComponent.Init(e, t, n)
            }, t.prototype.SetLevel = function() {
                this._level > 0 ? (this.HeroLevel.node.active = !0, this.HeroLevel.string = "Lv." + this._level) : this._level < 0 ? (this.HeroLevel.node.active = !0, this.HeroLevel.node.color = d.UIUtlity.Herolevel_Label_Color_StarResonance, this.HeroLevel.string = "Lv." + Math.abs(this._level)) : this.HeroLevel.node.active = !1
            }, t.prototype.SetPersonalityParam = function(e, t) {
                this._isSelf = e, this._personalityStarLevel = t, this.SetPersonality()
            }, t.prototype.SetPersonality = function() {
                var e = _.default.Instance.IsGameModuleOpen(u.GameModuleType.Personality),
                    t = _.default.Instance.IsGameModuleUnlock(u.GameModuleType.Personality)[0];
                if (!e || !t) return this.PersonalityBg.active = !1, void(this.PersonalityLabel.node.active = !1);
                var n = y.ConfigDataComponent.Instance.GetGlobalSettingByKey("PersonalityStarLevelLimit"),
                    o = y.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._itemId);
                if (this._isSelf)
                    if (this._heroData && o) {
                        var r = y.DataCenter.Instance.GetDataById(f.HeroInfo_Model, this._heroData.HeroId);
                        if (!r) return this.PersonalityBg.active = !1, void(this.PersonalityLabel.node.active = !1);
                        if (this.PersonalityBg.active = o.StarLevel >= n, this.PersonalityLabel.node.active = this.PersonalityBg.active, o.StarLevel >= n) {
                            var i = r && r.PersonalityStar ? r.PersonalityStar : 0;
                            this.PersonalityLabel.string = i.toString()
                        }
                    } else this.PersonalityBg.active = !1, this.PersonalityLabel.node.active = !1;
                else o && (this.PersonalityBg.active = o.StarLevel >= n, this.PersonalityLabel.node.active = this.PersonalityBg.active, o.StarLevel >= n) && (i = this._personalityStarLevel && this._personalityStarLevel > 0 ? this._personalityStarLevel : 0, this.PersonalityLabel.string = i.toString())
            }, t.prototype.SetCount = function(e, t, n, o) {
                if (e > 1 || n || o) {
                    this.Count.node.active = !0, !t || t.Type != u.ItemType.Voucher && t.Id != u.CommonItemId.Currency ? this.Count.string = "x" + e.FmtCurrency() : this.Count.string = "x" + e / 100;
                    var r = b.default.Instance.IsVNChannel();
                    this.Count.fontSize = r ? 50 : 38
                } else this.Count.node.active = !1
            }, t.prototype.SetCountColor = function(e) {
                this.Count.node.color = e
            }, t.prototype.SetName = function(e) {
                this.Name.node.parent.active = !0, this.Name.string = e
            }, t.prototype.SetNameAndActive = function(e, t) {
                this.Name.node.parent.active = t, t && (this.Name.string = e)
            }, t.prototype.SetNameColorAndOutline = function(e, t) {
                this.Name.node.color = e;
                var n = this.Name.node.getComponent(cc.LabelOutline);
                n && (t ? (n.enabled = !0, n.color = t) : n.enabled = !1)
            }, t.prototype.SetFragmentProgressBar = function(e) {
                this.ItemProgressBar.node.active = !0, this.ItemProgressBar.progress = this._itemCount / e, this.ItemProgressLabel.string = this._itemCount + "/" + e
            }, t.prototype.EnableItemHighLight = function() {
                this.ItemHighLight.node.active = !0
            }, t.prototype.DisableItemHighLight = function() {
                this.ItemHighLight.node.active = !1
            }, t.prototype.EnableHeroHighLight = function() {
                this.HeroHighLight.node.active = !0
            }, t.prototype.DisableHeroHighLight = function() {
                this.HeroHighLight.node.active = !1
            }, t.prototype.EnableMask = function() {
                this._isItem ? this.EnableItemMask() : this.EnableHeroMask()
            }, t.prototype.DisableMask = function() {
                this._isItem ? this.DisableItemMask() : this.DisableHeroMask()
            }, t.prototype.EnableItemMask = function() {
                this.ItemMask.node.active = !0
            }, t.prototype.DisableItemMask = function() {
                this.ItemMask.node.active = !1
            }, t.prototype.EnableHeroMask = function() {
                this.HeroMask.node.active = !0
            }, t.prototype.DisableHeroMask = function() {
                this.HeroMask.node.active = !1
            }, t.prototype.OnIconGray = function(e) {
                void 0 === e && (e = !1), this._isOnGray = !0, d.UIUtlity.OnSpriteGray(this.Icon), e && (d.UIUtlity.OnSpriteGray(this.Border), d.UIUtlity.OnSpriteGray(this.Bg))
            }, t.prototype.OffIconGray = function() {
                this._isOnGray && (this._isOnGray = !1, d.UIUtlity.OffSpriteGray(this.Icon), d.UIUtlity.OffSpriteGray(this.Border), d.UIUtlity.OffSpriteGray(this.Bg))
            }, t.prototype.SetReceivedTagState = function(e) {
                this.ReceivedTag.node.active = e, e ? (this.ReceivedTag.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("select"), this.EnableMask()) : this.DisableMask()
            }, t.prototype.SetItemSimpleState = function() {
                this.HideAllNode(), this.Icon.node.active = !1, this.Bg.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("hero_bg_1"), this.Border.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("hero_border_1"), this._itemId = -999
            }, t.prototype.SetWhiteBoard = function() {
                this.HideAllNode(), this.Icon.node.active = !1, this.Bg.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("hero_bg_1"), this.Border.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("hero_border_1")
            }, t.prototype.SetHeroSimpleState = function() {
                this.HideAllNode(), this.Icon.node.active = !1, this.Bg.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("hero_bg_1"), this.Border.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("hero_border_1")
            }, t.prototype.SetUpDown = function(e) {
                this.UpDown && (this.UpDown.active = !0, this.UpImage.node.active = e, this.DownImage.node.active = !e)
            }, t.prototype.SetSelectFlagState = function(e, t, n, o) {
                void 0 === t && (t = "select2"), this.SelectFlag.node.active = e, e ? (this.SelectFlag.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame(t), n && (this.SelectFlag.node.width = n), o && (this.SelectFlag.node.height = o), this.EnableMask()) : this.DisableMask()
            }, t.prototype.GetSelectFlagState = function() {
                return this.SelectFlag.node.active
            }, t.prototype.SetSelectBorder = function(e) {
                this.SelectFlag.node.active = e, e && (this.SelectFlag.type = cc.Sprite.Type.SLICED, this.SelectFlag.spriteFrame = d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border6"), this.SelectFlag.node.width = 250, this.SelectFlag.node.height = 250)
            }, t.prototype.SetAddFlagState = function(e, t) {
                void 0 === t && (t = "add_golden"), this.AddFlag.node.active = e, e && (this.AddFlag.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame(t))
            }, t.prototype.SetRedDotState = function(e, t) {
                this.RedDot.active = e, t && (this.RedDot.scale = t)
            }, Object.defineProperty(t.prototype, "ItemId", {
                get: function() {
                    return this._itemId
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SetFormationFlag = function(e) {
                void 0 === e && (e = m.FormationIdType.MainLine);
                var t = y.DataCenter.Instance.IsHeroInFormation(this._heroData.Sid, e);
                this.TeamFlag.active = !!t
            }, t.prototype.SetLockFlag = function(e, t, n) {
                void 0 === t && (t = "lock_red"), void 0 === n && (n = !1);
                var o = this.node.getChildByName("LockFlag");
                if (o.active = e, e) {
                    var r = o.getComponent(cc.Sprite);
                    r.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("lock_gold"), this.EnableMask(), n ? d.UIUtlity.OnSpriteGray(r) : d.UIUtlity.OffSpriteGray(r)
                } else this.DisableMask()
            }, t.prototype.SetCenterTagSprite = function(e, t, n, o) {
                var r = this.node.getChildByName("LockFlag");
                r.active = e, e && (r.getComponent(cc.Sprite).spriteFrame = t, n && (r.width = n), o && (r.height = o))
            }, t.prototype.SetCustomDesc = function(e, t, n, o, r) {
                var i = this.node.getChildByName("Desc");
                if (i.active = e, e) {
                    switch (cc.find("DescLabel", i).getComponent(cc.RichText).string = t, n) {
                        case void 0:
                        case "Middle":
                            i.setPosition(0, 20);
                            break;
                        case "Top":
                            i.setPosition(0, 95);
                            break;
                        case "Bottom":
                            i.setPosition(0, -52)
                    }
                    cc.find("DescBg", i).active = o || !1, r && i.setSiblingIndex(this.node.childrenCount - 1)
                }
            }, t.prototype.SetDiscountValue = function(e, t, n) {
                this.DiscountBg.node.active = e, n && (this.DiscountBg.node.y += n), e && (this.DiscountBg.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("discount_bg"), this.DiscountValue.string = t)
            }, t.prototype.PlayItemEffect = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return (t = this._itemEffectSkeletonData[e]) ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset("ItemsComponent/Spine/" + e, sp.SkeletonData)];
                            case 1:
                                if (t = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                this._itemEffectSkeletonData[e] = t, this._loadedAssets.push(t), n.label = 2;
                            case 2:
                                return this.Spine1.node.active = !0, this.Spine1.skeletonData = t, this.Spine1.setAnimation(0, "Ani_" + e, !0), this.Spine1.paused = !1, [2]
                        }
                    })
                })
            }, t.prototype.PauseItemEffect = function() {
                this.Spine1 && (this.Spine1.paused = !0, this.Spine1.node.active = !1)
            }, t.prototype.PlayLightingCircleEffect = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return 1 == e ? [2] : (this._lightingEffectNames || (this._lightingEffectNames = ["zi", "SSR", "SSR", "UR"]), t = e - 1, n = this._lightingCircle[t], o = this._lightingEffectNames[t], n ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset("ItemsComponent/Spine/UI_Effect_wupinkuang_" + o, sp.SkeletonData)]);
                            case 1:
                                if (n = r.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(n), [2];
                                this._lightingCircle[t] = n, this._loadedAssets.push(n), r.label = 2;
                            case 2:
                                return this.Spine2.node.active = !0, this.Spine2.skeletonData = n, this.Spine2.setAnimation(0, "Ani_UI_Effect_wupinkuang_" + o, !0), this.Spine2.paused = !1, [2]
                        }
                    })
                })
            }, t.prototype.PauseLightingCircleEffect = function() {
                this.Spine2.paused = !0, this.Spine2.node.active = !1
            }, t.prototype.PlayGetRewardEffect = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._getRewardSkeletonData ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset("ItemsComponent/Spine/UI_effect_kelingqu", sp.SkeletonData)]);
                            case 1:
                                if (e._getRewardSkeletonData = t.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._getRewardSkeletonData), [2];
                                this._loadedAssets.push(this._getRewardSkeletonData), t.label = 2;
                            case 2:
                                return this.Spine3.node.active = !0, this.Spine3.skeletonData = this._getRewardSkeletonData, this.Spine3.setAnimation(0, "Ani_UI_effect_kelingqu", !0), this.Spine3.paused = !1, [2]
                        }
                    })
                })
            }, t.prototype.PauseGetRewardEffect = function() {
                this.Spine3.paused = !0, this.Spine3.node.active = !1
            }, t.prototype.ShowItemTip = function() {
                if (this._displayType != l.HeroInfo) {
                    var e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._itemId);
                    if (e) switch (e.Type) {
                        case u.ItemType.HolyEquip:
                            this.ItemSid ? I.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyEquipTipPanel.Path, {
                                Sid: this.ItemSid
                            }, this.node) : I.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyEquipTipPanel.Path, {
                                ItemId: this._itemId
                            }, this.node);
                            break;
                        default:
                            d.UIUtlity.ShowItemTip(this._itemId, this.node)
                    }
                }
            }, t.prototype.SetTempleLeftTag = function(e) {
                if (e) switch (e.Tag) {
                    case 1:
                        this.SetLeftTag(!0, 2, d.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("item_active"));
                        break;
                    case 2:
                        this.SetLeftTag(!0, 2, d.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("item_special"))
                }
            }, t.prototype.SetLeftTag = function(e, t, n, o, r, i) {
                if (this.LeftTagNode.active = e, e) switch (this.LeftTagNode.y = o || -23, t) {
                    case 1:
                        var a = cc.find("Tag", this.LeftTagNode).getComponent(cc.Sprite);
                        a.node.scaleX = r || 1;
                        var s = cc.find("Value", this.LeftTagNode).getComponent(cc.Label);
                        a.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("tag_green"), s.string = "recommend".ToUILocale();
                        break;
                    case 2:
                        var l = cc.find("Tag", this.LeftTagNode).getComponent(cc.Sprite);
                        l.node.scaleX = r || 1, l.spriteFrame = n;
                        break;
                    case 3:
                        var c = cc.find("Icon", this.LeftTagNode).getComponent(cc.Sprite);
                        c.node.scaleX = r || 1, c.spriteFrame = d.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("firstPassTag");
                        break;
                    case 4:
                        var u = cc.find("FirstPass", this.LeftTagNode).getComponent(cc.Sprite);
                        u.node.scaleX = r || 1, u.spriteFrame = d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("tagBg7");
                        var p = cc.find("Value", this.LeftTagNode).getComponent(cc.Label),
                            h = cc.find("Value", this.LeftTagNode).getComponent(cc.LabelOutline);
                        p.string = "firstPass".ToUILocale(), p.node.x = 0, p.fontSize = i, h.color = new cc.Color(181, 39, 56)
                }
            }, t.prototype.SetTimeLimit = function() {
                var e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemConsume_Config, this._itemId);
                e && this._showTimeConsumeType.includes(e.SubType) && e.Param && e.Param.length > 0 && e.Param[0].Items.length > 1 && (this.TimeLimitNode.active = !0, this.TimeLabel.string = "workTime".ToUILocale().Fmt(e.Param[0].Items[1]))
            }, t.prototype.SetItemStage = function(e) {
                e && this.PuzzleStageBgNode && this.PuzzleStageLabel && (this.PuzzleStageBgNode.active = !0, this.PuzzleStageLabel.node.active = !0, this.PuzzleStageLabel.string = e.toString())
            }, t.prototype.SetSuperWeapon = function() {
                this.SuperWeaponTagNode && (this._starPieceData ? this.SuperWeaponTagNode.active = this._starPieceData.SuperId > 0 : this._exclusiveWeaponData && (this.SuperWeaponTagNode.active = this._exclusiveWeaponData.SuperId > 0))
            }, t.prototype.SetGemAttrSprite = function(e) {
                var t = 0;
                e.Attrs && e.Attrs.length > 0 && (t = e.Attrs[0].Items[0]), this.SetGemAttrSpriteByAttrId(t)
            }, t.prototype.SetGemAttrSpriteByAttrId = function(e) {
                e ? (this.GemAttrSprite.node.active = !0, this.GemAttrSprite.spriteFrame = _.default.GetColorAttrIcon(e)) : this.GemAttrSprite.node.active = !1
            }, t.prototype.SetRollingLabel = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this._rollingLabel ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset("LabelsComponent/CommonLongLabelRollComponent")];
                            case 1:
                                if (t = r.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                this._loadedAssets.push(t), (n = cc.instantiate(t)).setParent(this.node), this._rollingLabel = n.getComponent(C.default), n.width = this.node.width + 10, n.setPosition(-n.width / 2, -180), r.label = 2;
                            case 2:
                                return this._rollingLabel.node.active = !0, this._rollingLabel.SetUI(e, this._rollingLabel.node.width, 46, new cc.Color(98, 78, 60)), this.scheduleOnce(function() {
                                    var e = o._rollingLabel.Content.node.width,
                                        t = o._rollingLabel.node.width;
                                    e > t ? (o._rollingLabel.Content.node.x = 0, o._rollingLabel.SetContentStartX(0)) : (o._rollingLabel.Content.node.x = (t - e) / 2, o._rollingLabel.SetContentStartX((t - e) / 2))
                                }, 0), [2]
                        }
                    })
                })
            }, t.prototype.DisableLeftTimeSchedule = function() {
                this.TimeLimitNode && (this.TimeLimitNode.active = !1, this.unschedule(this.DoSetLeftTimeJob))
            }, t.prototype.EnableLeftTimeSchedule = function(e, t) {
                void 0 === t && (t = -56), this._timeStamp = e, this.TimeLimitNode && (this.TimeLimitNode.y = t), this.DoSetLeftTimeJob(), this.unschedule(this.DoSetLeftTimeJob), this.schedule(this.DoSetLeftTimeJob, 1)
            }, t.prototype.DoSetLeftTimeJob = function() {
                this.TimeLimitNode.active = !0;
                var e = this._timeStamp - y.RpcComponent.Instance.ServerTime;
                this.TimeLabel.string = _.default.ActivityTimeLeftFormat(e), e <= 0 && this.unschedule(this.DoSetLeftTimeJob)
            }, t.prototype.SetLeftTopTag = function(e, t, n, o, r) {
                var i = cc.find("LeftTopTag", this.node).getComponent(cc.Sprite);
                if (i.node.active = e, e) {
                    i.spriteFrame = t;
                    var a = cc.find("LeftTopValue", i.node).getComponent(cc.Label);
                    null != n ? (a.node.active = !0, a.string = n.toString()) : a.node.active = !1, o && (i.node.width = o), r && (i.node.height = r)
                }
            }, t.prototype.SetPuzzleStage = function() {
                if (this.PuzzleStageBgNode && this.PuzzleStageLabel) {
                    var e = y.ConfigDataComponent.Instance.GetConfigById(p.ItemPuzzle_Config, this._itemId);
                    this.PuzzleStageBgNode.active = !0, this.PuzzleStageLabel.node.active = !0, this.PuzzleStageLabel.string = e.Stage.toString()
                }
            }, t.prototype.SetHolyEquipmentTag = function(e) {
                this.HolyEquipmentTag && (this.HolyEquipmentTag.node.active = e, this.HolyEquipmentTag.spriteFrame = d.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("HolyEquipmentTag"))
            }, t.prototype.SetRightTopIcon = function(e, t, n, o, r, i) {
                if (this.RightTopIcon) {
                    if (this.RightTopIcon.node.active = e, !e) return;
                    this.RightTopIcon.spriteFrame = t, n && (this.RightTopIcon.node.width = n), o && (this.RightTopIcon.node.height = o), r && (this.RightTopIcon.node.x = this.RightTopIcon.node.x + r), i && (this.RightTopIcon.node.y = this.RightTopIcon.node.y + i)
                }
            }, t.prototype.SetHeadFrameIsHave = function(e) {
                var t = 100 * e.Param[0].Items[0] + m.ConsumeItemType.HeadFrame,
                    n = y.DataCenter.Instance.GetDataById(f.UserIcon_Model, t),
                    o = n && 0 == n.Time ? "item_have".ToUILocale() : "";
                this.SetCustomLabel(o, {
                    color: cc.Color.GREEN
                })
            }, t.prototype.SetMainSceneBackgroundIsHave = function(e) {
                var t = e.Param[0].Items[0],
                    n = y.DataCenter.Instance.GetDataById(f.MainSceneBackground_Model, t),
                    o = n && n.IsPerpetual ? "item_have".ToUILocale() : "";
                this.SetCustomLabel(o, {
                    color: cc.Color.GREEN
                })
            }, t.prototype.SetGemSelect = function(e, t) {
                this.GemSelectBgNode && this.GemSelectLabel && (this.GemSelectBgNode.active = e, this.GemSelectLabel.node.active = e, e && (this.GemSelectLabel.string = t))
            }, t.prototype.SetCustomLabel = function(e, t) {
                if (this.CustomLabel)
                    if (e) {
                        var n = {
                            horizontalAlign: cc.Label.HorizontalAlign.RIGHT,
                            verticalAlign: cc.Label.VerticalAlign.CENTER,
                            fontSize: 38,
                            x: 0,
                            y: -54,
                            color: cc.Color.WHITE,
                            width: 200,
                            showBg: !1,
                            BgWidth: 0,
                            BgHeight: 50,
                            OutlineWidth: 3,
                            BgSpriteFrame: null
                        };
                        if (t)
                            for (var o in t) n[o] = t[o];
                        this.CustomLabel.node.active = !0, this.CustomLabel.string = e, this.CustomLabel.horizontalAlign = n.horizontalAlign, this.CustomLabel.verticalAlign = n.verticalAlign, this.CustomLabel.fontSize = n.fontSize, this.CustomLabel.lineHeight = n.fontSize, this.CustomLabel.node.x = n.x, this.CustomLabel.node.y = n.y, this.CustomLabel.node.color = n.color, this.CustomLabel.node.width = n.width, this.CustomLabelBg.active = n.showBg, this.CustomLabelBg.y = n.y;
                        var r = this.CustomLabel.node.getComponent(cc.LabelOutline);
                        r && (r.width = n.OutlineWidth), n.showBg && (this.CustomLabelBg.height = n.BgHeight, n.BgWidth && (this.CustomLabelBg.width = n.BgWidth), n.BgSpriteFrame && (this.CustomLabelBg.getComponent(cc.Sprite).spriteFrame = n.BgSpriteFrame))
                    } else this.CustomLabel.string = ""
            }, t.prototype.HideCustomLabel = function() {
                this.CustomLabel.node.active = !1, this.CustomLabelBg.active = !1
            }, t.prototype.SetCountFontSize = function(e, t) {
                this.Count.fontSize = e / (t / this.originalSize)
            }, t.prototype.SetLabelFontSize = function(e, t, n) {
                e.fontSize = t / (n / this.originalSize)
            }, t.prototype.SetNewTagState = function(e) {
                this.NewTag.active = e
            }, t.prototype.onDestroy = function() {
                this.Dispose(), this.unscheduleAllCallbacks()
            }, t.prototype.Dispose = function() {
                for (var e = 0; e < this._loadedAssets.length; e++) c.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                this._loadedAssets = [], this._itemEffectSkeletonData = {}
            }, i([A(cc.Sprite)], t.prototype, "ItemHighLight", void 0), i([A(cc.Sprite)], t.prototype, "HeroHighLight", void 0), i([A(cc.Sprite)], t.prototype, "Bg", void 0), i([A(cc.Sprite)], t.prototype, "Icon", void 0), i([A(cc.Sprite)], t.prototype, "Border", void 0), i([A(cc.Sprite)], t.prototype, "QualityBorder", void 0), i([A(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([A(cc.Node)], t.prototype, "PersonalityBg", void 0), i([A(cc.Label)], t.prototype, "PersonalityLabel", void 0), i([A(cc.Label)], t.prototype, "Name", void 0), i([A(cc.Label)], t.prototype, "HeroLevel", void 0), i([A(cc.Sprite)], t.prototype, "ItemTypeIcon", void 0), i([A(cc.Sprite)], t.prototype, "MVP", void 0), i([A(cc.Label)], t.prototype, "Count", void 0), i([A(cc.Sprite)], t.prototype, "ItemMask", void 0), i([A(cc.Sprite)], t.prototype, "HeroMask", void 0), i([A(cc.Node)], t.prototype, "StarNode", void 0), i([A(h.LevelComponent)], t.prototype, "LevelComponent", void 0), i([A(S.default)], t.prototype, "ItemProgressBar", void 0), i([A(cc.Label)], t.prototype, "ItemProgressLabel", void 0), i([A(cc.Sprite)], t.prototype, "ReceivedTag", void 0), i([A(cc.Sprite)], t.prototype, "AddFlag", void 0), i([A(cc.Sprite)], t.prototype, "SelectFlag", void 0), i([A(cc.Node)], t.prototype, "RedDot", void 0), i([A(cc.Node)], t.prototype, "TeamFlag", void 0), i([A(cc.Sprite)], t.prototype, "DiscountBg", void 0), i([A(cc.RichText)], t.prototype, "DiscountValue", void 0), i([A(sp.Skeleton)], t.prototype, "Spine1", void 0), i([A(sp.Skeleton)], t.prototype, "Spine2", void 0), i([A(sp.Skeleton)], t.prototype, "Spine3", void 0), i([A(cc.Node)], t.prototype, "UpDown", void 0), i([A(cc.Sprite)], t.prototype, "UpImage", void 0), i([A(cc.Sprite)], t.prototype, "DownImage", void 0), i([A(cc.Node)], t.prototype, "LeftTagNode", void 0), i([A(cc.Node)], t.prototype, "TimeLimitNode", void 0), i([A(cc.Label)], t.prototype, "TimeLabel", void 0), i([A(cc.Sprite)], t.prototype, "SPBorder", void 0), i([A(cc.Sprite)], t.prototype, "SPElementBg", void 0), i([A(cc.Sprite)], t.prototype, "GemAttrSprite", void 0), i([A(cc.Sprite)], t.prototype, "HeroProfessionIcon", void 0), i([A(cc.Sprite)], t.prototype, "HolyEquipmentTag", void 0), i([A(cc.Sprite)], t.prototype, "RightTopIcon", void 0), i([A(cc.Node)], t.prototype, "PuzzleStageBgNode", void 0), i([A(cc.Label)], t.prototype, "PuzzleStageLabel", void 0), i([A(cc.Node)], t.prototype, "GemSelectBgNode", void 0), i([A(cc.Label)], t.prototype, "GemSelectLabel", void 0), i([A(cc.Node)], t.prototype, "SuperWeaponTagNode", void 0), i([A(cc.Label)], t.prototype, "CustomLabel", void 0), i([A(cc.Node)], t.prototype, "CustomLabelBg", void 0), i([A(cc.Node)], t.prototype, "NewTag", void 0), n = i([P], t)
        }(cc.Component);
        n.ItemComponent = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/CommonLongLabelRollComponent": "CommonLongLabelRollComponent",
        "../Panel/StarPiecePanel": "StarPiecePanel",
        "./CustomProgressBar": "CustomProgressBar",
        "./LevelComponent": "LevelComponent"
    }],
    ItemCountComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eb8cetQqgVGkp+daWwRPg5b", "ItemCountComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("./ItemClickComponent"),
            d = e("./ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.CountBg = null, t.CountRichText = null, t.AddButton = null, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.AddButton && (this.AddButton.node.on("click", this.OnAddButtonClick, this), this.CountBg.node.on(cc.Node.EventType.TOUCH_END, this.OnAddButtonClick, this))
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.AddButton && (this.AddButton.node.off("click", this.OnAddButtonClick, this), this.CountBg.node.off(cc.Node.EventType.TOUCH_END, this.OnAddButtonClick, this))
                }, t.prototype.Init = function(e, t, n, o) {
                    this._itemId = e, this._count = t, this.SetItemNode(null, d.ItemComponentType.ItemCommon, n, o), this.SetItemCount()
                }, t.prototype.SetAddButton = function(e) {
                    void 0 === e && (e = !1), this.AddButton && (this.AddButton.node.active = e, this.AddButton.node.setPosition(this.CountBg.node.width / 2 - 11, this.CountBg.node.y))
                }, t.prototype.InitHero = function(e, t, n, o, r) {
                    this.SetItemNode(e, t, n, o, r), this.SetItemCount()
                }, t.prototype.SetItemNode = function(e, t, n, o, r) {
                    return a(this, void 0, void 0, function() {
                        var i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._itemNode ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (i = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(i), [2];
                                    this._assets.push(i), this._itemNode = cc.instantiate(i), this._itemNode.parent = this.ItemNode, n && (this._itemNode.scale = n, this._itemNode.getComponent(p.default).SetScale(n)), o && (this._itemNode.y = o), s.label = 2;
                                case 2:
                                    return a = this._itemNode.getComponent(d.ItemComponent), e ? a.Init(e, t) : a.Init({
                                        ItemId: this._itemId
                                    }, t), r && r(a), [2]
                            }
                        })
                    })
                }, t.prototype.SetHeroCount = function(e) {
                    this.CountRichText.string = e
                }, t.prototype.SetItemCount = function() {
                    this.CountRichText.string = this._count
                }, t.prototype.SetCountBg = function(e, t) {
                    this.CountBg.node.active = e, this.CountRichText.node.active = e, e && (this.CountBg.spriteFrame = t)
                }, t.prototype.SetCountBgInfo = function(e, t, n, o, r) {
                    void 0 === t && (t = 0), void 0 === n && (n = 1), o && (this.CountBg.node.width = o), r && (this.CountBg.node.height = r), n && (this.CountBg.node.scale = n), this.CountBg.node.setPosition(t, e), this.CountRichText.node.setPosition(t, e)
                }, t.prototype.SetCountInfo = function(e) {
                    void 0 === e && (e = 30), this.CountRichText.fontSize = e
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && t.getComponent(d.ItemComponent).ShowItemTip()
                }, t.prototype.OnAddButtonClick = function() {
                    this.AddButton.node && this.AddButton.node.active && this._itemId && l.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, this._itemId, !1)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Node)], t.prototype, "ItemNode", void 0), i([y(cc.Sprite)], t.prototype, "CountBg", void 0), i([y(cc.RichText)], t.prototype, "CountRichText", void 0), i([y(cc.Button)], t.prototype, "AddButton", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent"
    }],
    ItemDecomposeBagPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e5047t84ApJEq80la71Fw86", "ItemDecomposeBagPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/DataCenter"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../Components/AsyncLayout"),
            m = e("../Components/ItemComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../../Consts/GameEventIds"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.CurrencyBarItemArr = [], t.HintLabel = null, t.AsyncLayout = null, t.DecomposeButton = null, t.DecomposeButtonLabel = null, t.EmptyHintLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(C.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.RefreshPanel, this), l.Game.EventDispatcher.On(C.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.RefreshPanel, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(C.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.RefreshPanel, this), l.Game.EventDispatcher.Off(C.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.RefreshPanel, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.DecomposeButtonLabel.string = "heroPalace_rule_subtittle2".ToUILocale(), this.DecomposeButton.node.on("click", this.OnDecomposeButtonClick, this), this.AsyncLayout.Init(this._itemPrefab, this.OnInitializeItem.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._itemType = t[0], this.SetCurrencyItemId()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetLabelByItemType(this._itemType), this.SetCurrencyBarItem(), this.SetItemsData(), this.SetBtnState(this._decomposeItemArr && this._decomposeItemArr.length > 0), this.AsyncLayout.RenderLayout(Math.max(25, this._itemArr.length))
                }, t.prototype.SetCurrencyItemId = function() {
                    switch (this._itemType) {
                        case f.ItemType.Pet:
                            this._currencyItemIds = [f.CommonItemId.PetRefine];
                            break;
                        case f.ItemType.MagicCircle:
                            this._currencyItemIds = [f.CommonItemId.MagicCircleMaterial1, f.CommonItemId.MagicCircleMaterial2]
                    }
                    for (var e = 0; e < this.CurrencyBarItemArr.length; e++) this.CurrencyBarItemArr[e].node.active = e < this._currencyItemIds.length
                }, t.prototype.SetLabelByItemType = function(e) {
                    switch (e) {
                        case f.ItemType.Pet:
                            this.Title.string = "itemDecompose_bag".ToUILocale().Fmt("pet".ToUILocale()), this.HintLabel.string = "itemDecompose_hint1".ToUILocale().Fmt("pet".ToUILocale()), this.EmptyHintLabel.string = "itemDecompose_empty".ToUILocale().Fmt("pet".ToUILocale());
                            break;
                        case f.ItemType.MagicCircle:
                            this.Title.string = "itemDecompose_bag".ToUILocale().Fmt("magicCircle".ToUILocale()), this.HintLabel.string = "itemDecompose_hint1".ToUILocale().Fmt("magicCircle".ToUILocale()), this.EmptyHintLabel.string = "itemDecompose_empty".ToUILocale().Fmt("magicCircle".ToUILocale())
                    }
                }, t.prototype.RefreshPanel = function() {
                    this.SetCurrencyBarItem(), this.SetItemsData(), this.SetBtnState(this._decomposeItemArr && this._decomposeItemArr.length > 0), this.AsyncLayout.RenderLayout(Math.max(25, this._itemArr.length))
                }, t.prototype.SetCurrencyBarItem = function() {
                    for (var e = 0; e < this._currencyItemIds.length; e++) this.CurrencyBarItemArr[e].Init(this._currencyItemIds[e])
                }, t.prototype.SetItemsData = function() {
                    switch (this._itemArr = [], this._decomposeItemArr = [], this._itemType) {
                        case f.ItemType.Pet:
                            for (var e = p.DataCenter.Instance.GetDataList(c.UserPet_Model), t = 0; t < e.length; t++) {
                                var n = Number("10" + e[t].Sid);
                                if ((i = p.DataCenter.Instance.GetItemCount(n)) > 0) {
                                    this._itemArr.push({
                                        Items: [n, i]
                                    });
                                    var o = d.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, e[t].Sid);
                                    e[t].Star >= o.MaxStar && this._decomposeItemArr.push({
                                        Items: [n, i]
                                    })
                                }
                            }
                            break;
                        case f.ItemType.MagicCircle:
                            var r = p.DataCenter.Instance.GetDataList(c.MagicCircle_Model);
                            for (t = 0; t < r.length; t++) {
                                var i;
                                if (n = r[t].Sid, (i = p.DataCenter.Instance.GetItemCount(n)) > 0) {
                                    this._itemArr.push({
                                        Items: [n, i]
                                    });
                                    var a = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, r[t].Sid);
                                    r[t].Star >= a.MaxStar && this._decomposeItemArr.push({
                                        Items: [n, i]
                                    })
                                }
                            }
                    }
                    this._itemArr.sort(this.SortItem.bind(this)), this._decomposeItemArr.sort(this.SortItem.bind(this))
                }, t.prototype.SetBtnState = function(e) {
                    e ? (this.DecomposeButton.node.active = !0, this.EmptyHintLabel.node.active = !1) : (this.DecomposeButton.node.active = !1, this.EmptyHintLabel.node.active = !0)
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(m.ItemComponent);
                    t < this._itemArr.length ? (n.Init({
                        ItemId: this._itemArr[t].Items[0],
                        Count: this._itemArr[t].Items[1]
                    }, m.ItemComponentType.ItemCommon), e.name = this._itemArr[t].Items[0].toString()) : (n.SetItemSimpleState(), e.name = "0")
                }, t.prototype.GetDecomposeMaterialItems = function(e, t) {
                    var n = [];
                    switch (t) {
                        case f.ItemType.Pet:
                            for (var o = 0; o < e.length; o++) {
                                var r = Number(e[o].Items[0].toString().slice(2)),
                                    i = d.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, r);
                                this.HandleConfigMaterials(n, i.DecomposeItems, e[o].Items[1])
                            }
                            break;
                        case f.ItemType.MagicCircle:
                            for (o = 0; o < e.length; o++) {
                                var a = e[o].Items[0],
                                    s = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, a);
                                this.HandleConfigMaterials(n, s.DecomposeItems, e[o].Items[1])
                            }
                    }
                    return n
                }, t.prototype.HandleConfigMaterials = function(e, t, n) {
                    t.forEach(function(t) {
                        var o = e.find(function(e) {
                            return e.Items[0] == t.Items[0]
                        });
                        o ? o.Items[1] += t.Items[1] * n : e.push({
                            Items: [t.Items[0], t.Items[1] * n]
                        })
                    })
                }, t.prototype.SortItem = function(e, t) {
                    var n = d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, e.Items[0]),
                        o = d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, t.Items[0]);
                    return n.Quality - o.Quality
                }, t.prototype.OnDecomposeButtonClick = function() {
                    if (this._decomposeItemArr && 0 != this._decomposeItemArr.length) {
                        for (var e = {
                                Title: this.Title.string,
                                DecomposeItemArr: this._decomposeItemArr,
                                MaterialItemArr: this.GetDecomposeMaterialItems(this._decomposeItemArr, this._itemType)
                            }, t = "", n = 0; n < e.MaterialItemArr.length; n++) t && (t += "\u3001"), t += e.MaterialItemArr[n].Items[0].ToItemName() + "\xd7" + e.MaterialItemArr[n].Items[1];
                        switch (this._itemType) {
                            case f.ItemType.Pet:
                                e.HintText = "itemDecompose_hint2".ToUILocale().Fmt("pet".ToUILocale(), t), e.RedHintText = "itemDecompose_hint3".ToUILocale().Fmt("pet".ToUILocale());
                                break;
                            case f.ItemType.MagicCircle:
                                e.HintText = "itemDecompose_hint2".ToUILocale().Fmt("magicCircle".ToUILocale(), t), e.RedHintText = "itemDecompose_hint3".ToUILocale().Fmt("magicCircle".ToUILocale())
                        }
                        l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemDecomposeConfirmPanel.Path, e)
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    t && t.parent == this.AsyncLayout.node && e > 0 && _.UIUtlity.ShowItemTip(e, t)
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(y.default)], t.prototype, "CurrencyBarItemArr", void 0), i([S(cc.Label)], t.prototype, "HintLabel", void 0), i([S(g.default)], t.prototype, "AsyncLayout", void 0), i([S(cc.Button)], t.prototype, "DecomposeButton", void 0), i([S(cc.Label)], t.prototype, "DecomposeButtonLabel", void 0), i([S(cc.Label)], t.prototype, "EmptyHintLabel", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ItemDecomposeConfirmPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9834bGTMKFHabzd/kwRP9MW", "ItemDecomposeConfirmPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/AsyncLayout"),
            h = e("../Components/ItemComponent"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.HintLabel = null, t.RedHintLabel = null, t.AsyncLayout = null, t.CancelButton = null, t.CancelButtonLabel = null, t.OkButton = null, t.OkButtonLabel = null, t.MaterialLayoutNode = null, t._materialComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CancelButton.node.on("click", this.OnCancelButtonClick, this), this.OkButton.node.on("click", this.OnOkButtonClick, this), this.CancelButtonLabel.string = "Answer_QuitNo".ToUILocale(), this.OkButtonLabel.string = "pieceResolve_preview_sure".ToUILocale(), this.AsyncLayout.Init(this._itemPrefab, this.OnInitializeItem.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._param = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._param && (this.Title.string = this._param.Title, this.SetHintLabel(this._param), this.AsyncLayout.RenderLayout(Math.max(15, this._param.DecomposeItemArr.length)), this.RenderMaterialItems(this._param.MaterialItemArr))
                }, t.prototype.SetHintLabel = function(e) {
                    e && (e.HintText && (this.HintLabel.string = e.HintText), e.RedHintText && (this.RedHintLabel.string = e.RedHintText))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(h.ItemComponent);
                    t < this._param.DecomposeItemArr.length ? (n.Init({
                        ItemId: this._param.DecomposeItemArr[t].Items[0],
                        Count: this._param.DecomposeItemArr[t].Items[1]
                    }, h.ItemComponentType.ItemCommon), e.name = this._param.DecomposeItemArr[t].Items[0].toString()) : (n.SetItemSimpleState(), e.name = "0")
                }, t.prototype.RenderMaterialItems = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        var n = this._materialComponents[t];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            n = o.getComponent(h.ItemComponent), this.MaterialLayoutNode.addChild(o), this._materialComponents[t] = n
                        }
                        n.node.active = !0, n.node.name = e[t].Items[0].toString(), n.Init({
                            ItemId: e[t].Items[0],
                            Count: e[t].Items[1]
                        }, h.ItemComponentType.ItemCommon)
                    }
                    for (t = e.length; t < this._materialComponents.length; t++) this._materialComponents[t].node.active = !1
                }, t.prototype.OnCancelButtonClick = function() {
                    this.Close()
                }, t.prototype.OnOkButtonClick = function() {
                    this.RequestDecomposeItem(this._param.DecomposeItemArr)
                }, t.prototype.RequestDecomposeItem = function(e) {
                    var t = this;
                    if (e && !(e.length <= 0)) {
                        var n = new c.Req_Item_DecomposeHeroPiece;
                        n.Items = e, u.RpcComponent.Instance.Call(n, function(e) {
                            l.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), t.Close()
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    !t || t.parent != this.AsyncLayout.node && t.parent != this.MaterialLayoutNode || e > 0 && y.UIUtlity.ShowItemTip(e, t)
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Label)], t.prototype, "HintLabel", void 0), i([I(cc.Label)], t.prototype, "RedHintLabel", void 0), i([I(d.default)], t.prototype, "AsyncLayout", void 0), i([I(cc.Button)], t.prototype, "CancelButton", void 0), i([I(cc.Label)], t.prototype, "CancelButtonLabel", void 0), i([I(cc.Button)], t.prototype, "OkButton", void 0), i([I(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([I(cc.Node)], t.prototype, "MaterialLayoutNode", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ItemEquipItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "81670IWrzdM+reAMVQtuJOP", "ItemEquipItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./ItemComponent"),
            s = e("./ItemClickComponent"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.TagNode = null, t.EquipItemNode = null, t.ItemMaskNode = null, t
                }
                return r(t, e), t.prototype.InitItem = function(e, t, n) {
                    void 0 === n && (n = a.ItemComponentType.ItemCommon), this._itemPrefab = e, this.TagNode.active = !1, this._itemClickComponent || (this._itemClickComponent = this.node.addComponent(s.default)), this.RefreshItemCompnent(t, n)
                }, t.prototype.InitEquipItem = function(e, t) {
                    void 0 === t && (t = a.ItemComponentType.ItemCommon), this.TagNode.active = !0, this.RefreshEquipItemCompnent(e, t)
                }, t.prototype.SetSelectFlagState = function(e) {
                    this.ItemMaskNode.active = e
                }, t.prototype.RefreshItemCompnent = function(e, t) {
                    if (!this._itemComponent) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.getComponent(s.default).enabled = !1, n.setParent(this.ItemNode), this._itemComponent = n.getComponent(a.ItemComponent);
                        var o = n.getComponent(cc.BlockInputEvents);
                        o && (o.enabled = !1)
                    }
                    this._itemComponent.Init(e, t)
                }, t.prototype.RefreshEquipItemCompnent = function(e, t) {
                    if (!this._equipItemComponent) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.getComponent(s.default).enabled = !1, n.setParent(this.EquipItemNode), this._equipItemComponent = n.getComponent(a.ItemComponent);
                        var o = n.getComponent(cc.BlockInputEvents);
                        o && (o.enabled = !1)
                    }
                    this._equipItemComponent.Init(e, t)
                }, i([u(cc.Node)], t.prototype, "ItemNode", void 0), i([u(cc.Node)], t.prototype, "TagNode", void 0), i([u(cc.Node)], t.prototype, "EquipItemNode", void 0), i([u(cc.Node)], t.prototype, "ItemMaskNode", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent"
    }],
    ItemGetWayPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c729cbnYqhOM7MoTdoc5bRy", "ItemGetWayPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../GamePlay/Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../Consts/Consts"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("./GetWayItemComponent"),
            m = e("./PurchaseWayItem"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../../../Proto/Static/RpcProto"),
            v = e("../../Channel/ChannelManager"),
            b = e("../Components/CustomProgressBar"),
            S = e("../Components/GameModuleGuideManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1), t.Title = null, t.ItemContainer = null, t.ItemName = null, t.ItemDesc = null, t.CountLabel = null, t.ProgressNode = null, t.ProgressHintLabel = null, t.CustomProgressBar = null, t.ProgressValueLabel = null, t.NoneHintLabel = null, t.ScrollView = null, t.Layout = null, t.BackNode = null, t._params = {}, t._moduleGuideGroupIds = [10013], t._guideStepIndex = 0, t._guideGroupId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySuccess, this), l.Game.EventDispatcher.On(f.GameEventIds.AddDataDetail.Fmt(C.UserItem_Model._n_), this.DisPlay, this), l.Game.EventDispatcher.On(f.GameEventIds.ChangeDataDetail.Fmt(C.UserItem_Model._n_), this.DisPlay, this), l.Game.EventDispatcher.On(f.GameEventIds.RemoveDataDetail.Fmt(C.UserItem_Model._n_), this.DisPlay, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySuccess, this), l.Game.EventDispatcher.Off(f.GameEventIds.AddDataDetail.Fmt(C.UserItem_Model._n_), this.DisPlay, this), l.Game.EventDispatcher.Off(f.GameEventIds.ChangeDataDetail.Fmt(C.UserItem_Model._n_), this.DisPlay, this), l.Game.EventDispatcher.Off(f.GameEventIds.RemoveDataDetail.Fmt(C.UserItem_Model._n_), this.DisPlay, this), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemGetWayPanel/GetWayItem"), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent), o = this.LoadDynamicAsset("ItemGetWayPanel/PurchaseWayItem"), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._getWayItemPrefab = e[0], r._itemPrefab = e[1], r._purchaseItemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "Personalise_getway".ToUILocale(), this.NoneHintLabel.string = "obtainWay_none".ToUILocale();
                    var t = v.default.Instance.IsHighSchoolChannel();
                    this.NoneHintLabel.node.color = t ? cc.color(98, 78, 60) : cc.color(230, 223, 179)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._itemId = t[0], t.length > 1 ? this._needDelayClose = t[1] : this._needDelayClose = !0, t.length > 2 && (this._itemCount = t[2]), this._params = t[3] || {}, this._params.ShowProgressBar && (this.ScrollView.node.height = 758, this.ScrollView.node.y = -198)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.ConfigItemProgressBar(), this.ScrollView.scrollToTop(), this.ConfigItemInfo(), this.ConfigLayout(), this.ShowGameGuid()
                }, t.prototype.ConfigItemInfo = function() {
                    if (this._itemBaseConfig = c.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._itemId), !this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._itemComponent = e.getComponent(d.ItemComponent)
                    }
                    var t;
                    switch (this.ItemName.string = this._itemId.ToItemName(), this.ItemName.node.color = h.UIUtlity.GetLabelColorByQuality(this._itemBaseConfig.Quality), this._itemBaseConfig.Type) {
                        case f.ItemType.Hero:
                        case f.ItemType.Equip:
                        case f.ItemType.ItemPiece:
                        case f.ItemType.HolyEquip:
                            t = this._itemId.ToItemDesc(), this._itemComponent.Init({
                                ItemId: this._itemId
                            }, d.ItemComponentType.ItemWithStar);
                            break;
                        case f.ItemType.CurrencyDiscountTicket:
                            var n = c.ConfigDataComponent.Instance.GetConfigById(u.ItemCurrencyDiscount_Config, this._itemId),
                                o = "" + v.default.Instance.CurrencySymbol + v.default.Instance.ExchangeMoney(n.Type);
                            if (n.NewPrice > 0) {
                                var r = "" + v.default.Instance.CurrencySymbol + v.default.Instance.ExchangeMoney(n.NewPrice);
                                t = this._itemId.ToItemDesc().Fmt(o, r)
                            } else t = this._itemId.ToItemDesc().Fmt(o);
                            this._itemComponent.Init({
                                ItemId: this._itemId
                            });
                            break;
                        default:
                            t = this._itemId.ToItemDesc(), this._itemComponent.Init({
                                ItemId: this._itemId
                            })
                    }
                    this.ItemDesc.string = t, this.SetItemCount()
                }, t.prototype.SetItemCount = function() {
                    this._itemBaseConfig.Type == f.ItemType.Virtual || this._itemId == f.CommonItemId.Currency ? this.CountLabel.node.parent.active = !1 : this._itemBaseConfig.Type == f.ItemType.GodSoul ? this.CountLabel.string = "" + I.default.GetGodSoulNum(this._itemBaseConfig.Id) : null != this._itemCount ? (this.CountLabel.node.parent.active = !0, this.CountLabel.string = this._itemCount.FmtCurrency()) : (this.CountLabel.node.parent.active = !0, this.CountLabel.string = c.DataCenter.Instance.GetItemCount(this._itemId).FmtCurrency())
                }, t.prototype.ConfigItemProgressBar = function() {
                    this._params.ShowProgressBar && (this.ProgressNode.active = !0, this.ProgressHintLabel.string = this._params.ProgressHint, this.CustomProgressBar.progress = c.DataCenter.Instance.GetItemCount(this._itemId) / this._params.MaxCount, this.ProgressValueLabel.string = c.DataCenter.Instance.GetItemCount(this._itemId).FmtCurrency() + "/" + this._params.MaxCount.FmtCurrency())
                }, t.prototype.GetActivityGetWayConfigs = function() {
                    var e = I.default.Instance.GetItemGetWayActivityConfigs(this._itemId),
                        t = [];
                    return e && e.forEach(function(e) {
                        e.EndTime > 0 ? c.RpcComponent.Instance.ServerTime < e.EndTime && t.push(e) : t.push(e)
                    }), t.sort(function(e, t) {
                        return t.SortId - e.SortId
                    }), t
                }, t.prototype.SetItemGetWayNode = function(e, t, n) {
                    var o = [],
                        r = [];
                    t ? o = t.GiftPackIds : n && n.GetWayConfig ? o = n.GetWayConfig.GiftPackIds : n && n.ActivityId && 2 == n.Params[0] && (r = n.Params.slice(1, n.Params.length));
                    var i = cc.instantiate(this._getWayItemPrefab);
                    if (o.length > 0)
                        for (var a = 0; a < o.length; a++) {
                            var s = o[a];
                            if (I.default.Instance.GetGiftBuyCount(s) < c.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, s).LimitCount || a == o.length - 1) {
                                (i = cc.instantiate(this._purchaseItemPrefab)).getComponent(m.default).Init(s, this._itemPrefab), i.setParent(this.Layout), e++;
                                break
                            }
                        } else if (r.length) {
                            var l = c.DataCenter.Instance.ActivityConfigs[n.ActivityId];
                            if (!l._Packs) return;
                            var p = l._Packs,
                                d = {};
                            for (p.forEach(function(e) {
                                    d[e.Id] = e
                                }), a = 0; a < r.length; a++)
                                if (s = r[a], d[s]) {
                                    var h = c.DataCenter.Instance.GetDataById(y.UserActivity_Model, n.ActivityId);
                                    if ((h.Packs[s] && h.Packs[s].Items[0] ? h.Packs[s].Items[0] : 0) < d[s].LimitCount || a == r.length - 1) {
                                        (i = cc.instantiate(this._purchaseItemPrefab)).getComponent(m.default).Init(s, this._itemPrefab, n.ActivityId), i.setParent(this.Layout), e++;
                                        break
                                    }
                                }
                        } else i = cc.instantiate(this._getWayItemPrefab), t ? i.getComponent(g.default).Init(t, this) : n && i.getComponent(g.default).Init(null, this, n), i.setParent(this.Layout), e++;
                    return e
                }, t.prototype.ConfigLayout = function() {
                    this.Layout.destroyAllChildren();
                    var e = this._itemBaseConfig.GetWay.length,
                        t = this.GetActivityGetWayConfigs(),
                        n = 0;
                    if (e + t.length > 0) {
                        this.NoneHintLabel.node.active = !1;
                        for (var o = 0; o < t.length; o++) n = this.SetItemGetWayNode(n, null, t[o]);
                        for (o = 0; o < e; o++) {
                            var r = c.ConfigDataComponent.Instance.GetConfigById(u.ItemGetWay_Config, this._itemBaseConfig.GetWay[o]);
                            if (r.PanelInfo && r.PanelInfo[0] == p.PanelConfig.ItemInfoPanel.Id) {
                                if (!I.default.Instance.CheckItemGetWayCanShow(r)[0]) continue;
                                var i = r.PanelInfo[1] || 0,
                                    a = c.DataCenter.Instance.GetDataById(y.UserItem_Model, i);
                                if (!a || !a.Count) continue
                            }
                            n = this.SetItemGetWayNode(n, r, null)
                        }
                    }
                    0 == n && (this.NoneHintLabel.node.active = !0)
                }, t.prototype.OnPaySuccess = function() {
                    this.ConfigLayout(), this.SetItemCount()
                }, Object.defineProperty(t.prototype, "ItemPrefab", {
                    get: function() {
                        return this._itemPrefab
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ItemId", {
                    get: function() {
                        return this._itemId
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Params", {
                    get: function() {
                        return this._params
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.ShowGameGuid = function(e) {
                    if (this._itemId == f.CommonItemId.AllianceMazeStrength && (!e || e == this._guideGroupId)) {
                        var t = S.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds, e);
                        if (!(t <= 0)) {
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = c.ConfigDataComponent.Instance.GetConfigById(u.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (n)
                                for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                    var r = !0;
                                    switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                        case 38:
                                            S.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                            break;
                                        case 39:
                                            S.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.BackNode);
                                            break;
                                        default:
                                            r = !1
                                    }
                                    if (this._guideStepIndex++, r) break
                                }
                        }
                    }
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Node)], t.prototype, "ItemContainer", void 0), i([A(cc.Label)], t.prototype, "ItemName", void 0), i([A(cc.RichText)], t.prototype, "ItemDesc", void 0), i([A(cc.Label)], t.prototype, "CountLabel", void 0), i([A(cc.Node)], t.prototype, "ProgressNode", void 0), i([A(cc.Label)], t.prototype, "ProgressHintLabel", void 0), i([A(b.default)], t.prototype, "CustomProgressBar", void 0), i([A(cc.Label)], t.prototype, "ProgressValueLabel", void 0), i([A(cc.Label)], t.prototype, "NoneHintLabel", void 0), i([A(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([A(cc.Node)], t.prototype, "Layout", void 0), i([A(cc.Node)], t.prototype, "BackNode", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/ItemComponent": "ItemComponent",
        "./GetWayItemComponent": "GetWayItemComponent",
        "./PurchaseWayItem": "PurchaseWayItem"
    }],
    ItemInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fa92bbNRNBDHKB0ieOjhpo+", "ItemInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            p = e("../../../EZFramework/UIFrame/UIPanelType"),
            d = e("../../../EZFramework/EZDefine/SysDefine"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/DataCenter"),
            y = e("../Components/ItemComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = e("../../../../Proto/Static/ConfigProto"),
            _ = e("../Components/CustomRichText"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../../EZFramework/EZFramework"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../../Auxiliary/GlobalDefine"),
            w = e("../../Components/RpcComponent"),
            P = e("../../../ShareConsts/EnumType"),
            A = e("../Components/EquipAttrComponent"),
            T = e("../Components/EquipBaseInfoComponent"),
            R = e("../Components/ItemClickComponent"),
            L = e("../../Auxiliary/EventKeys"),
            k = e("./BuyAndSellItemPanel"),
            O = e("../../Auxiliary/GuideManager"),
            M = e("../../RedDot/RedDotManager"),
            D = e("./SelectRewardBoxPanel"),
            B = e("../../Channel/ChannelManager"),
            N = e("../Components/SelectItemComponent"),
            E = e("../Components/CustomLayout"),
            U = cc._decorator,
            G = U.ccclass,
            x = U.property;
        (function(e) {
            e[e.HeroPiece = 0] = "HeroPiece", e[e.RandomPiece = 1] = "RandomPiece"
        })(l || (l = {})),
        function(e) {
            e[e.Bag = 0] = "Bag", e[e.HeroInfo = 1] = "HeroInfo"
        }(c || (c = {}));
        var H = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(d.UINodeType.PopUp, !1), t.ItemRoot = null, t.ItemName = null, t.ItemCountNode = null, t.ItemCount = null, t.EquipInfoNode = null, t.EquipAttrNode = null, t.EquipAttrItemPrefab = null, t.SliderNode = null, t.BottomBtnLayout = null, t.BtnDetail = null, t.BtnCombine = null, t.BtnTakeOff = null, t.BtnForge = null, t.BtnChange = null, t.BtnSell = null, t.BtnUse = null, t.SellBtnLabel = null, t.UseBtnLabel = null, t.BtnAdd = null, t.BtnReduce = null, t.BtnRequire = null, t.AddBtnSprite = null, t.ReduceBtnSprite = null, t.ItemDescScroll = null, t.ItemDesc = null, t.CombineCountSlider = null, t.SliderFill = null, t.SelectCount = null, t.DescFlagLabel = null, t.ObtainWayLabel = null, t.DetailBtnLabel = null, t.ComposeBtnLabel = null, t.TakeOffBtnLabel = null, t.ForgeBtnLabel = null, t.ChangeBtnLabel = null, t.BtnParentNode = null, t.BottomNode = null, t.CurrencyNode = null, t.CurrencyIcon = null, t.CurrencyCount = null, t.MiddleDesc = null, t.MiddleDescForConsume = null, t.MiddleDescForConsumeBanner = null, t.MiddleDescForConsumeDesc = null, t.MiddleDescForConsumeItemContainer = null, t.MiddleDescForConsumeScroll = null, t.MiddleDescForConsumeView = null, t.MiddleManulBox = null, t.MiddleManulTitle = null, t.MiddleManulBoxCL = null, t.MiddleManulBoxSelectItem = null, t.GoHatchButton = null, t.GoHatchButtonLabel = null, t.LimitLevel = null, t._itemId = 0, t._fillMaxWidth = 0, t._maxCount = 0, t._maxUseCount = 0, t._combineCount = 0, t._commonItemPrefab = null, t._item = null, t._itemData = null, t._itemBaseConfig = null, t._consumeConfig = null, t._itemPieceConfig = null, t._itemEquipConfig = null, t._itemCardConfig = null, t._adventureData = null, t._levelConfig = null, t._getCountMinute = 0, t._rateData = [], t._userEquipId = 0, t._sourceType = c.Bag, t._pieceType = l.HeroPiece, t._currencySp = null, t._selectItemComponts = [], t._selectItemDatas = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                v.Game.EventDispatcher.On(L.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), v.Game.EventDispatcher.On(L.EventKeys.EVENT_ITEM_CLICK, this.OnConsumeItemClick, this)
            }, t.prototype.onDisable = function() {
                v.Game.EventDispatcher.Off(L.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), v.Game.EventDispatcher.Off(L.EventKeys.EVENT_ITEM_CLICK, this.OnConsumeItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), null != this._commonItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(S.BundlePath.ItemComponent)]);
                            case 1:
                                t._commonItemPrefab = n.sent(), n.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this._fillMaxWidth = this.CombineCountSlider.node.width + n.FILL_UI_PADDING, this.SetStaticLocalText(), this.SetDragEvent(), this.SetClickEvent(), this.MiddleManulBoxCL.Init(this.MiddleManulBoxSelectItem)
            }, t.prototype.SetDragEvent = function() {
                this.CombineCountSlider.node.on("slide", this.OnSliderDrag, this), this.CombineCountSlider.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CombineCountSlider.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this), this.CombineCountSlider.handle.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CombineCountSlider.handle.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this)
            }, t.prototype.SetStaticLocalText = function() {
                this.DescFlagLabel.string = "itemDesc".ToUILocale(), this.ObtainWayLabel.string = "Personalise_getway".ToUILocale(), this.DetailBtnLabel.string = "detail".ToUILocale(), this.ComposeBtnLabel.string = "compose".ToUILocale(), this.TakeOffBtnLabel.string = "PowerCore_Remove".ToUILocale(), this.ForgeBtnLabel.string = "equip_forge".ToUILocale(), this.ChangeBtnLabel.string = "equip_change".ToUILocale(), this.SellBtnLabel.string = "buyAndSale_sell".ToUILocale(), this.UseBtnLabel.string = "use".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnDetail.node.on("click", this.OnBtnDetailClick, this), this.BtnCombine.node.on("click", this.OnBtnCombineClick, this), this.BtnAdd.node.on("click", this.OnBtnAddClick, this), this.BtnReduce.node.on("click", this.OnBtnReduceClick, this), this.BtnTakeOff.node.on("click", this.OnBtnTakeOffClick, this), this.BtnForge.node.on("click", this.OnBtnForgeClick, this), this.BtnChange.node.on("click", this.OnBtnChangeClick, this), this.BtnSell.node.on("click", this.OnBtnSellClick, this), this.BtnUse.node.on("click", this.OnBtnUseClick, this), this.BtnRequire.node.on("click", this.OnBtnRequireClick, this), this.GoHatchButton.node.on("click", this.OnGoHatchButtonClick, this)
            }, t.prototype.InitData = function(e) {
                if (this._itemId = e[0], this._maxUseCount = e[2] || 0, this._activityId = e[3], this._manulBoxSelectIdFormParam = e[4], null != e[1]) {
                    var t = e[1];
                    null != t.UserEquipId ? (this._userEquipId = t.UserEquipId, this._sourceType = c.HeroInfo, this._canChangeEquip = t.CanChangeEquip, null == this._canChangeEquip && (this._canChangeEquip = !1), this._canForgingEquip = t.CanForging, null == this._canForgingEquip && (this._canForgingEquip = !1)) : this._sourceType = c.Bag
                } else this._sourceType = c.Bag;
                this.LoadUserData(), this.LoadBaseData()
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this)
            }, t.prototype.LoadBaseData = function() {
                switch (this._itemBaseConfig = m.ConfigDataComponent.Instance.GetConfigById(I.ItemBase_Config, this._itemId), this._consumeConfig = m.ConfigDataComponent.Instance.GetConfigById(I.ItemConsume_Config, this._itemBaseConfig.Id), this._itemBaseConfig.Type) {
                    case P.ItemType.ItemPiece:
                        this._itemPieceConfig = m.ConfigDataComponent.Instance.GetConfigById(I.ItemPiece_Config, this._itemId), 0 != this._itemPieceConfig.CardId ? (this._pieceType = l.HeroPiece, this._itemCardConfig = m.ConfigDataComponent.Instance.GetConfigById(I.ItemHeroCard_Config, this._itemPieceConfig.CardId)) : (this._pieceType = l.RandomPiece, this._itemCardConfig = null), this.LoadRateData(), this.CalcMaxCount();
                        break;
                    case P.ItemType.Currency:
                    case P.ItemType.Consume:
                        this.CalcMaxCount(), this.LoadRateData();
                        break;
                    case P.ItemType.Equip:
                        this._itemEquipConfig = m.ConfigDataComponent.Instance.GetConfigById(I.ItemEquipment_Config, this._itemId)
                }
            }, t.prototype.LoadRateData = function() {
                var e = this;
                if (this._itemBaseConfig.Type == P.ItemType.ItemPiece) {
                    if (this._itemPieceConfig.ShowLib.length > 0)
                        if (this._rateData = [], this._itemPieceConfig.SubType == P.ItemPieceType.HeroPiece) {
                            for (var t = 0, n = 0; n < this._itemPieceConfig.ShowLib.length; n++) t += this._itemPieceConfig.ShowLib[n].Items[1];
                            for (n = 0; n < this._itemPieceConfig.ShowLib.length; n++) {
                                var o = this._itemPieceConfig.ShowLib[n].Items[0],
                                    r = this._itemPieceConfig.ShowLib[n].Items[1],
                                    i = m.ConfigDataComponent.Instance.GetConfigById(I.ItemHeroCard_Config, o).HeroId,
                                    a = m.ConfigDataComponent.Instance.GetConfigById(I.HeroBase_Config, i),
                                    s = 100 * r / t,
                                    l = {
                                        ItemId: a.Id,
                                        Count: 1,
                                        StarLevel: a.StarLevel
                                    };
                                this._rateData[n] = {
                                    ItemData: l,
                                    Rate: s
                                }
                            }
                        } else if (this._itemPieceConfig.SubType == P.ItemPieceType.HolyEquipPiece) {
                        for (t = 0, n = 0; n < this._itemPieceConfig.ShowLib.length; n++) null != (r = this._itemPieceConfig.ShowLib[n].Items[1]) && (t += r);
                        for (n = 0; n < this._itemPieceConfig.ShowLib.length; n++) {
                            var c = this._itemPieceConfig.ShowLib[n].Items[0];
                            s = -1, null != (r = this._itemPieceConfig.ShowLib[n].Items[1]) && (s = r / t * 100), l = {
                                ItemId: m.ConfigDataComponent.Instance.GetConfigById(I.ItemBase_Config, c).Id,
                                Count: 1
                            }, this._rateData[n] = {
                                ItemData: l,
                                Rate: s
                            }
                        }
                    }
                } else if ((this._itemBaseConfig.Type == P.ItemType.Currency || this._itemBaseConfig.Type == P.ItemType.Consume) && null != this._consumeConfig) switch (this._consumeConfig.SubType) {
                    case P.ConsumeItemType.FixedBox:
                    case P.ConsumeItemType.ManualBox:
                    case P.ConsumeItemType.LockedFixedBox:
                        this._itemFavorHero || (this._itemFavorHero = {}, m.ConfigDataComponent.Instance.GetArrayConfig(I.ItemFavor_Config).forEach(function(t) {
                            2 == t.Favor[0] && (e._itemFavorHero[t.Id] = t.Favor[1])
                        })), this._rateData = [];
                        var u = 0;
                        for (n = 0; n < this._consumeConfig.Param.length; n++) this._consumeConfig.SubType == P.ConsumeItemType.LockedFixedBox && 0 == n || (c = this._consumeConfig.Param[n].Items[0], this._itemFavorHero[c] && !C.default.Instance.IsModuleShowAvailable(P.ModuleStartTime.Hero, this._itemFavorHero[c]) || (l = {
                            ItemId: c,
                            Count: p = this._consumeConfig.Param[n].Items[1]
                        }, this._rateData[u] = {
                            ItemData: l,
                            Rate: -1
                        }, u++));
                        break;
                    case P.ConsumeItemType.LockedRandomBox:
                    case P.ConsumeItemType.RandomBox:
                    case P.ConsumeItemType.PetEgg:
                        for (this._rateData = [], t = 0, n = 0; n < this._consumeConfig.ShowLib.length; n++) null != (r = this._consumeConfig.ShowLib[n].Items[2]) && (t += r);
                        for (n = 0; n < this._consumeConfig.ShowLib.length; n++) {
                            c = this._consumeConfig.ShowLib[n].Items[0];
                            var p = this._consumeConfig.ShowLib[n].Items[1];
                            s = -1, null != (r = this._consumeConfig.ShowLib[n].Items[2]) && (s = 100 * r / t), l = {
                                ItemId: c,
                                Count: p
                            }, this._rateData[n] = {
                                ItemData: l,
                                Rate: s
                            }
                        }
                        break;
                    case P.ConsumeItemType.UncertifiedReel:
                        this._rateData = [];
                        var d = f.DataCenter.Instance.ActivityConfigs[this._activityId];
                        if (!d) return;
                        var h = void 0;
                        for (n = 0; n < d.__UncertifiedReel.length; n++) {
                            var y = d.__UncertifiedReel[n];
                            if (this._itemId == y.Id) {
                                h = y;
                                break
                            }
                        }
                        var g = 0;
                        for (n = 0; n < h.Content.length; n++) null != (r = h.Content[n].Items[2]) && (g += r);
                        for (n = 0; n < h.Content.length; n++) c = h.Content[n].Items[0], p = h.Content[n].Items[1], s = -1, null != (r = h.Content[n].Items[2]) && (s = 100 * r / g), l = {
                            ItemId: c,
                            Count: p
                        }, this._rateData[n] = {
                            ItemData: l,
                            Rate: s
                        }
                }
            }, t.prototype.LoadUserData = function() {
                this._itemData = f.DataCenter.Instance.GetDataById(h.UserItem_Model, this._itemId)
            }, t.prototype.CalcMaxCount = function() {
                var e = m.ConfigDataComponent.Instance.GetConfigById(I.ItemConsume_Config, this._itemBaseConfig.Id);
                if (e && e.SubType == P.ConsumeItemType.ManualBox)
                    for (var t = 0; t < e.Param.length; t++) {
                        var n = e.Param[t].Items[0],
                            o = m.ConfigDataComponent.Instance.GetConfigById(I.ItemConsume_Config, n);
                        if (o && o.SubType == P.ConsumeItemType.MainSceneBackground) {
                            var r;
                            return r = this._maxUseCount > 0 ? Math.min(1, this._maxUseCount) : Math.min(1, this._itemData.Count), void(this._maxCount = r)
                        }
                    }
                this._maxUseCount > 0 ? this._maxCount = this._maxUseCount : this._itemBaseConfig.Type == P.ItemType.ItemPiece ? this._itemPieceConfig.SubType == P.ItemPieceType.CommonHeroPiece || this._itemPieceConfig.SubType == P.ItemPieceType.CommonPersonalityPiece ? this._maxCount = this._itemData.Count : this._maxCount = Math.floor(this._itemData.Count / this._itemPieceConfig.RequireCount) : this._maxCount = this._itemData.Count;
                var i = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("UseItemCountLimit");
                this._maxCount = Math.min(this._maxCount, i)
            }, t.prototype.DisPlay = function() {
                var t = this;
                e.prototype.DisPlay.call(this), this.node.opacity = 0, v.Game.EventDispatcher.Emit(L.EventKeys.EVENT_SELECT_REWARD_BOX), this.ConfigTipsByType(), setTimeout(function() {
                    t.node.opacity = 255
                }, 30), this.ShowGuide()
            }, t.prototype.ConfigTipsByType = function() {
                switch (this.EquipInfoNode.node.active = !1, this.EquipAttrNode.node.active = !1, this.LoadItemComponent(), this.SetItemName(), this.SetItemCount(), this.SetItemDesc(), this.SetSliderNodeState(), this._itemBaseConfig.Type) {
                    case P.ItemType.Currency:
                    case P.ItemType.Consume:
                        this.ConfigItemCommon();
                        break;
                    case P.ItemType.Equip:
                        this.ConfigItemEquip(), this.EquipInfoNode.node.active = !0, this.EquipAttrNode.node.active = !0;
                        break;
                    case P.ItemType.Hero:
                        this.BtnDetail.node.active = !0;
                        break;
                    case P.ItemType.ItemPiece:
                        switch (this.ConfigHeroPiece(), this.BtnDetail.node.active = !0, this.BottomNode.active = !0, this._itemPieceConfig.SubType) {
                            case P.ItemPieceType.CommonHeroPiece:
                            case P.ItemPieceType.CommonPersonalityPiece:
                                this.DetailBtnLabel.string = "changeTag".ToUILocale()
                        }
                        break;
                    case P.ItemType.Personality:
                        this.BtnDetail.node.active = !0, this.ConfigItemCommon();
                        break;
                    default:
                        this.ConfigItemCommon()
                }
            }, t.prototype.ConfigItemCommon = function() {
                if (null != this._consumeConfig && this._consumeConfig.SubType != P.ConsumeItemType.Noraml && this._consumeConfig.SubType != P.ConsumeItemType.LockedFixedBox && this._consumeConfig.SubType != P.ConsumeItemType.LockedRandomBox && (this.SetSliderUI(), this._consumeConfig.SubType == P.ConsumeItemType.DynamicBox && (this.LoadCurrencyIcon(), this.SetCurrencyCount())), this.SetBtnState(), null != this._consumeConfig && this._consumeConfig.SubType == P.ConsumeItemType.HeroSoul) this._item.Init(this._itemData, y.ItemComponentType.ItemWithStar);
                else if (null != this._consumeConfig && this._consumeConfig.SubType == P.ConsumeItemType.Coupon) {
                    this._item.Init(this._itemData);
                    var e = C.default.Instance.GetItemRecycleTime(this._itemId);
                    w.RpcComponent.Instance.ServerTime > e[0] && w.RpcComponent.Instance.ServerTime < e[1] && this._item.EnableLeftTimeSchedule(e[1], 90)
                } else this._itemData ? this._item.Init(this._itemData) : this._item.Init({
                    ItemId: this._itemId
                });
                if (null != this._consumeConfig && this._consumeConfig.SubType == P.ConsumeItemType.DynamicBox) {
                    var t = this._consumeConfig.Param[0].Items[1];
                    this._item.SetCustomDesc(!0, "" + t + "hour".ToUILocale(), "Top", !0)
                }
                if (null != this._consumeConfig && this._consumeConfig.GameModule) {
                    for (var n = m.ConfigDataComponent.Instance.GetConfigById(I.GameModule_Config, this._consumeConfig.GameModule), o = 0, r = 0; r < n.Requirements1.length; r++)
                        if (n.Requirements1[r].Items[0] == P.ModuleRequirementType.PlayerLevel) {
                            o = n.Requirements1[r].Items[1];
                            break
                        } this.LimitLevel.node.active = !0, this.LimitLevel.string = "itemInfoPanel_levelLimit".ToUILocale().Fmt(o)
                } else this.LimitLevel.node.active = !1
            }, t.prototype.LoadCurrencyIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = this._consumeConfig.Param[0].Items[0], t = C.default.Instance.GetItemPathById(e), n = this, [4, this.LoadDynamicAsset(t, cc.SpriteFrame)];
                            case 1:
                                return n._currencySp = o.sent(), this.isValid ? (this.CurrencyIcon.spriteFrame = this._currencySp, [2]) : (v.AssetsManager.Instance.UnloadAsset(this._currencySp), [2])
                        }
                    })
                })
            }, t.prototype.SetCurrencyCount = function() {
                var e = this._consumeConfig.Param[0].Items[1];
                if (null == this._levelConfig) {
                    this._adventureData = f.DataCenter.Instance.GetDataById(h.Adventure_Model, 1);
                    var t = f.DataCenter.Instance.GetIntData(P.UserDataKey.MainLineProgress);
                    this._levelConfig = m.ConfigDataComponent.Instance.GetConfigById(I.MapAdventure_Config, t);
                    for (var n = this._consumeConfig.Param[0].Items[0], o = 0; o < this._levelConfig.Rewards.length; o++) n == this._levelConfig.Rewards[o].Items[0] && (this._getCountMinute = Math.floor(this._levelConfig.Rewards[o].Items[1] / 1e5))
                }
                b.EZLog.Log(this._getCountMinute);
                var r = 60 * e * this._getCountMinute * this._combineCount;
                this.CurrencyCount.string = r.toString()
            }, t.prototype.ConfigItemEquip = function() {
                this._item.Init({
                    ItemId: this._itemId
                }, y.ItemComponentType.ItemWithStar), this.EquipInfoNode.SetUI(this._itemId), this.EquipAttrNode.SetUI(this._itemId, this.EquipAttrItemPrefab), this.SetBtnState(), this.BindEquipRedDot()
            }, t.prototype.ConfigHeroPiece = function() {
                this.SetSliderUI(), this.SetBtnState(), this._item.Init(this._itemData)
            }, t.prototype.LoadItemComponent = function() {
                null != this._commonItemPrefab && null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(y.ItemComponent), this._item.node.removeComponent(R.default), this._item.node.parent = this.ItemRoot)
            }, t.prototype.SetItemName = function() {
                this.ItemName.string = this._itemId.ToItemName()
            }, t.prototype.SetItemCount = function() {
                this.ItemCountNode.active = !1
            }, t.prototype.SetItemDesc = function() {
                switch (this.ItemDescScroll.scrollToTop(), this._itemBaseConfig.Type) {
                    case P.ItemType.CurrencyDiscountTicket:
                        var e = m.ConfigDataComponent.Instance.GetConfigById(I.ItemCurrencyDiscount_Config, this._itemId),
                            t = "" + B.default.Instance.CurrencySymbol + B.default.Instance.ExchangeMoney(e.Type);
                        if (e.NewPrice > 0) {
                            var o = "" + B.default.Instance.CurrencySymbol + B.default.Instance.ExchangeMoney(e.NewPrice);
                            this.ItemDesc.Init(this._itemId.ToItemDesc().Fmt(t, o))
                        } else this.ItemDesc.Init(this._itemId.ToItemDesc().Fmt(t));
                        break;
                    case P.ItemType.Consume:
                        var r = m.ConfigDataComponent.Instance.GetConfigById(I.ItemConsume_Config, this._itemId);
                        if (r.SubType == P.ConsumeItemType.UpgradeCard) {
                            var i = r.Param[0].Items[0],
                                a = this.GetTagDescs(r.Param[1].Items),
                                s = this.GetElementDescs(r.Param[2].Items),
                                l = n.GetUpgradeCardTypeDesc(i),
                                c = "upStarCrd_tips".ToUILocale().Fmt(a, r.Param[0].Items[1], s, r.Param[0].Items[2], l);
                            this.ItemDesc.Init(c)
                        } else this.ItemDesc.Init(this._itemId.ToItemDesc());
                        break;
                    default:
                        this.ItemDesc.Init(this._itemId.ToItemDesc())
                }
            }, t.GetUpgradeCardTypeDesc = function(e) {
                var t = ["upStarCrd_hero".ToUILocale(), "upStarCrd_personality".ToUILocale(), "upStarCrd_exclusive".ToUILocale()];
                return t[e - 1] ? t[e - 1] : ""
            }, t.prototype.GetTagDescs = function(e) {
                var t = "";
                return e.forEach(function(n, o) {
                    var r = C.default.Instance.GetHeroTagDesc(n);
                    o == e.length - 1 ? t += "upStarCrd_tag1".ToUILocale().Fmt(r) : t += "upStarCrd_tag2".ToUILocale().Fmt(r)
                }), t
            }, t.prototype.GetElementDescs = function(e) {
                var t = "";
                return e.forEach(function(n, o) {
                    var r = n.ToHeroElementName();
                    o == e.length - 1 ? t += "upStarCrd_element1".ToUILocale().Fmt(r) : t += "upStarCrd_element2".ToUILocale().Fmt(r)
                }), t
            }, t.prototype.SetSliderUI = function() {
                this.InitResourceSlider(), this.SetCountOperationBtnState(!0)
            }, t.prototype.SetBtnState = function() {
                if (this.HideAllBottomBtn(), this.MiddleDescForConsume.active = !1, this.BottomBtnLayout.spacingX = n.BUTTON_LAYOUT_SPACING_EXPAND, this._itemBaseConfig.Type == P.ItemType.ItemPiece) this.BtnParentNode.active = !0, this._itemData.Count < this._itemPieceConfig.RequireCount ? this.BtnDetail.node.active = !0 : (this.BtnDetail.node.active = !0, this.BtnCombine.node.active = !0);
                else if (this._itemBaseConfig.Type == P.ItemType.Equip) this._sourceType == c.HeroInfo ? (this.BtnParentNode.active = !0, this.BtnTakeOff.node.active = !0, this.BtnForge.node.active = !0, this.BtnChange.node.active = !0, this.BottomBtnLayout.spacingX = n.BUTTON_LAYOUT_SPACING_SHRINK) : this.HideBottomUI();
                else if (this._itemBaseConfig.Type == P.ItemType.Consume || this._itemBaseConfig.Type == P.ItemType.Currency) {
                    this.BottomNode.active = !0, this.BtnParentNode.active = !0;
                    var e = !1,
                        t = !1;
                    if (this._itemBaseConfig.SellPrice > 0 && (this.BtnSell.node.active = !0, e = !0), null != this._consumeConfig) switch (this._consumeConfig.SubType) {
                        case P.ConsumeItemType.Noraml:
                        case P.ConsumeItemType.Coupon:
                            this._itemBaseConfig.UseTypeId.length > 0 && (this.BtnUse.node.active = !0, t = !0);
                            break;
                        case P.ConsumeItemType.ManualBox:
                            this.BtnUse.node.active = !0, this.BtnDetail.node.active = !1, this.MiddleManulBox.active = !0, this.MiddleManulTitle.string = "itemInfoPanel_select".ToUILocale(), t = !0;
                            for (var o = 0; o < this._consumeConfig.Param.length; o++) {
                                var r = this._consumeConfig.Param[o].Items[0];
                                this._itemFavorHero[r] && !C.default.Instance.IsModuleShowAvailable(P.ModuleStartTime.Hero, this._itemFavorHero[r]) || (this._selectItemDatas.push([r, this._consumeConfig.Param[o].Items[1], o]), this._manulBoxSelectIdFormParam == r && (this._selectIndex = o))
                            }
                            this.MiddleManulBoxCL.RenderLayOut(this._selectItemDatas.length);
                            break;
                        case P.ConsumeItemType.FixedBox:
                        case P.ConsumeItemType.RandomBox:
                        case P.ConsumeItemType.LockedFixedBox:
                        case P.ConsumeItemType.LockedRandomBox:
                        case P.ConsumeItemType.UncertifiedReel:
                            this.BtnUse.node.active = !0, this.BtnDetail.node.active = !1, this.MiddleDescForConsume.active = !0, this.MiddleDescForConsumeBanner.string = "itemDesc".ToUILocale();
                            var i = "";
                            switch (this._consumeConfig.SubType) {
                                case P.ConsumeItemType.FixedBox:
                                case P.ConsumeItemType.LockedFixedBox:
                                    i = "open_to_see".ToUILocale();
                                    break;
                                case P.ConsumeItemType.RandomBox:
                                case P.ConsumeItemType.LockedRandomBox:
                                case P.ConsumeItemType.UncertifiedReel:
                                    i = "open_get_random".ToUILocale()
                            }
                            if (this.MiddleDescForConsumeDesc.string = i, this._consumeConfig && (this._consumeConfig.SubType == P.ConsumeItemType.LockedFixedBox || this._consumeConfig.SubType == P.ConsumeItemType.LockedRandomBox) && this._consumeConfig.Param && this._consumeConfig.Param[0] && this._itemId != this._consumeConfig.Param[0].Items[0]) {
                                this.MiddleDescForConsumeDesc.string = this._consumeConfig.Id.ToItemDesc(), t = !1;
                                break
                            }
                            this.MiddleDescForConsumeItemContainer.getComponent(cc.Layout).spacingY = this._rateData[0].Rate < 0 ? -20 : 5;
                            for (var a = this.MiddleDescForConsumeItemContainer.children, s = 0; s < this._rateData.length; s++) {
                                if (null == a[s] && ((S = cc.instantiate(this._commonItemPrefab)).setParent(this.MiddleDescForConsumeItemContainer), a[s] = S), a[s].active = !0, (w = a[s].getComponent(y.ItemComponent)).Init(this._rateData[s].ItemData), r = this._rateData[s].ItemData.ItemId) {
                                    var l = m.ConfigDataComponent.Instance.GetConfigById(I.ItemBase_Config, r);
                                    if (l.Type == P.ItemType.GodSoul) {
                                        var u = m.ConfigDataComponent.Instance.GetConfigById(I.AngelGodSoul_Config, r);
                                        w.SetLeftTopTag(!0, g.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg1"), u.Level)
                                    } else if (l.Type == P.ItemType.Consume) {
                                        var p = m.ConfigDataComponent.Instance.GetConfigById(I.ItemConsume_Config, r);
                                        if (p.SubType == P.ConsumeItemType.MainSceneBackground) {
                                            var d = p.Param[0].Items[0],
                                                _ = f.DataCenter.Instance.GetDataById(h.MainSceneBackground_Model, d),
                                                v = _ && _.IsPerpetual ? "item_have".ToUILocale() : "";
                                            w.SetCustomLabel(v, {
                                                color: cc.Color.GREEN
                                            })
                                        }
                                    }
                                }
                                this._rateData[s].Rate < 0 ? w.Name.node.active = !1 : (w.Name.node.active = !0, w.Name.node.color = new cc.Color(86, 143, 0), w.Name.string = this._rateData[s].Rate + "%")
                            }
                            for (s = this._rateData.length; s < a.length; s++) a[s].active = !1;
                            this._rateData.length > 6 ? (this.MiddleDescForConsumeScroll.node.height = 300, this.MiddleDescForConsumeView.height = 300, this.MiddleDescForConsumeScroll.scrollToTop()) : (this.MiddleDescForConsumeScroll.node.height = 250, this.MiddleDescForConsumeView.height = 250), t = !0;
                            break;
                        case P.ConsumeItemType.DynamicBox:
                            this.BtnUse.node.active = !0, this.CurrencyNode.active = !0, t = !0;
                            break;
                        case P.ConsumeItemType.CommonHero:
                        case P.ConsumeItemType.CommonPersonality:
                            t = !0, this.BtnDetail.node.active = !0, this.DetailBtnLabel.string = "changeTag".ToUILocale();
                            break;
                        case P.ConsumeItemType.PetEgg:
                            this.GoHatchButton.node.active = !0, this.GoHatchButtonLabel.string = "pet_hatch".ToUILocale(), this.MiddleDescForConsume.active = !0, this.MiddleDescForConsumeBanner.string = "itemDesc".ToUILocale(), this.MiddleDescForConsumeDesc.string = this._itemId.ToItemDesc(), this.MiddleDescForConsumeItemContainer.getComponent(cc.Layout).spacingY = this._rateData[0].Rate < 0 ? -20 : 5;
                            var b = this.MiddleDescForConsumeItemContainer.children;
                            for (s = 0; s < this._rateData.length; s++) {
                                var S, w;
                                null == b[s] && ((S = cc.instantiate(this._commonItemPrefab)).setParent(this.MiddleDescForConsumeItemContainer), b[s] = S), b[s].active = !0, (w = b[s].getComponent(y.ItemComponent)).Init(this._rateData[s].ItemData), this._rateData[s].Rate < 0 ? w.Name.node.active = !1 : (w.Name.node.active = !0, w.Name.node.color = new cc.Color(86, 143, 0), w.Name.string = this._rateData[s].Rate + "%")
                            }
                            for (s = this._rateData.length; s < b.length; s++) b[s].active = !1;
                            t = !0;
                            break;
                        case P.ConsumeItemType.HeroFixedBox:
                        case P.ConsumeItemType.HeroRandomBox:
                        case P.ConsumeItemType.HeroManualBox:
                        case P.ConsumeItemType.UpgradeCard:
                            this.BtnUse.node.active = !0, t = !0
                    }
                    e || t || this.HideBottomUI()
                } else this._itemBaseConfig.Type == P.ItemType.Personality ? this.BtnDetail.node.active = !0 : this.HideBottomUI();
                if (null != this._consumeConfig) switch (this._consumeConfig.SubType) {
                    case P.ConsumeItemType.ManualBox:
                        break;
                    default:
                        this.MiddleDesc.active = !this.MiddleDescForConsume.active
                } else this.MiddleDesc.active = !this.MiddleDescForConsume.active
            }, t.prototype.HideBottomUI = function() {
                this.BottomNode.active = !1, this.BtnParentNode.active = !1
            }, t.prototype.HideAllBottomBtn = function() {
                this.BtnDetail.node.active = !1, this.BtnCombine.node.active = !1, this.BtnTakeOff.node.active = !1, this.BtnForge.node.active = !1, this.BtnChange.node.active = !1, this.BtnSell.node.active = !1, this.BtnUse.node.active = !1, this.CurrencyNode.active = !1, this.GoHatchButton.node.active = !1
            }, t.prototype.SetSliderNodeState = function() {
                this._itemBaseConfig.Type == P.ItemType.ItemPiece ? this._itemData.Count < this._itemPieceConfig.RequireCount ? this._itemPieceConfig.SubType == P.ItemPieceType.CommonHeroPiece || this._itemPieceConfig.SubType == P.ItemPieceType.CommonPersonalityPiece ? this.SliderNode.active = !0 : this.SliderNode.active = !1 : this.SliderNode.active = !0 : null != this._consumeConfig && this._consumeConfig.SubType != P.ConsumeItemType.Noraml && this._consumeConfig.SubType != P.ConsumeItemType.PetEgg && this._consumeConfig.SubType != P.ConsumeItemType.LockedFixedBox && this._consumeConfig.SubType != P.ConsumeItemType.LockedRandomBox && this._consumeConfig.SubType != P.ConsumeItemType.HeroFixedBox && this._consumeConfig.SubType != P.ConsumeItemType.HeroRandomBox && this._consumeConfig.SubType != P.ConsumeItemType.HeroManualBox && this._consumeConfig.SubType != P.ConsumeItemType.UpgradeCard ? this.SliderNode.active = !0 : this.SliderNode.active = !1
            }, t.prototype.InitResourceSlider = function() {
                this._itemBaseConfig.Type == P.ItemType.Currency || this._itemBaseConfig.Type == P.ItemType.Consume ? (this.SelectCount.string = "1", this._combineCount = 1, this.SetSliderProgress()) : (this.CombineCountSlider.progress = 1, this.SliderFill.width = this._fillMaxWidth, this.SelectCount.string = this._maxCount.toString(), this._combineCount = this._maxCount)
            }, t.prototype.OnSliderDrag = function() {
                this.SliderFill.width = this._fillMaxWidth * this.CombineCountSlider.progress;
                var e = this.CombineCountSlider.progress;
                this._combineCount = Math.max(Math.floor(this._maxCount * e), 1), this.SelectCount.string = this._combineCount.toString(), null != this._consumeConfig && this._consumeConfig.SubType == P.ConsumeItemType.DynamicBox && this.SetCurrencyCount(), null != this._consumeConfig && this._consumeConfig.SubType == P.ConsumeItemType.ManualBox && this.MiddleManulBoxCL.ReRender()
            }, t.prototype.OnDragOver = function() {
                var e = this.CombineCountSlider.progress;
                this._combineCount = Math.max(Math.floor(this._maxCount * e), 1), this.SetSliderProgress(), this.SetCountOperationBtnState(!1)
            }, t.prototype.SetSliderProgress = function() {
                this.CombineCountSlider.progress = this._combineCount / this._maxCount, this.SliderFill.width = this._fillMaxWidth * this.CombineCountSlider.progress, this.SelectCount.string = this._combineCount.toString(), null != this._consumeConfig && this._consumeConfig.SubType == P.ConsumeItemType.DynamicBox && this.SetCurrencyCount(), null != this._consumeConfig && this._consumeConfig.SubType == P.ConsumeItemType.ManualBox && this.MiddleManulBoxCL.ReRender()
            }, t.prototype.OnBtnDetailClick = function() {
                if (this._itemBaseConfig.Type == P.ItemType.ItemPiece) switch (this._itemPieceConfig.SubType) {
                    case P.ItemPieceType.HeroPiece:
                        if (this._itemPieceConfig.ShowLib.length > 0) g.UIUtlity.ShowRatePanel(this._rateData, y.ItemComponentType.HeroInfo, 1, 2);
                        else {
                            var e = m.ConfigDataComponent.Instance.GetConfigById(I.ItemHeroCard_Config, this._itemPieceConfig.CardId);
                            b.UIManager.Instance.ShowUIPanel(S.PanelConfig.HeroHandbookPanel.Path, e.HeroId, [e.HeroId]), this.Close()
                        }
                        break;
                    case P.ItemPieceType.CommonHeroPiece:
                        this.Close(), b.UIManager.Instance.ShowUIPanel(S.PanelConfig.SelectRewardBoxPanel.Path, this._itemBaseConfig, void 0, this._combineCount, D.SelectItemMode.UniversalHeroPiece);
                        break;
                    case P.ItemPieceType.CommonPersonalityPiece:
                        this.Close(), b.UIManager.Instance.ShowUIPanel(S.PanelConfig.SelectRewardBoxPanel.Path, this._itemBaseConfig, void 0, this._combineCount, D.SelectItemMode.UniversalPersonalPiece);
                        break;
                    case P.ItemPieceType.PowerCorePiece:
                        b.UIManager.Instance.ShowUIPanel(S.PanelConfig.CoreHandbookItemPanel.Path, this._itemPieceConfig.CardId);
                        break;
                    case P.ItemPieceType.PersonalityPiece:
                        this.PersonalityDetailClick(this._itemPieceConfig.CardId);
                        break;
                    default:
                        this._itemPieceConfig.ShowLib.length > 0 && g.UIUtlity.ShowRatePanel(this._rateData, y.ItemComponentType.ItemCommon, 1, 2, null, !0)
                } else if (this._itemBaseConfig.Type == P.ItemType.Currency || this._itemBaseConfig.Type == P.ItemType.Consume) {
                    if (null != this._consumeConfig) switch (this._consumeConfig.SubType) {
                        case P.ConsumeItemType.FixedBox:
                        case P.ConsumeItemType.ManualBox:
                            g.UIUtlity.ShowRatePanel(this._rateData, y.ItemComponentType.ItemCommon, 0, 0, this._consumeConfig.SubType);
                            break;
                        case P.ConsumeItemType.RandomBox:
                            g.UIUtlity.ShowRatePanel(this._rateData, y.ItemComponentType.ItemCommon, 1, 2, this._consumeConfig.SubType);
                            break;
                        case P.ConsumeItemType.CommonHero:
                            this.Close(), b.UIManager.Instance.ShowUIPanel(S.PanelConfig.SelectRewardBoxPanel.Path, this._itemBaseConfig, this._consumeConfig, this._combineCount, D.SelectItemMode.UniversalHero);
                            break;
                        case P.ConsumeItemType.CommonPersonality:
                            this.Close(), b.UIManager.Instance.ShowUIPanel(S.PanelConfig.SelectRewardBoxPanel.Path, this._itemBaseConfig, this._consumeConfig, this._combineCount, D.SelectItemMode.UniversalPersonal)
                    }
                } else this._itemBaseConfig.Type == P.ItemType.Personality && this.PersonalityDetailClick(this._itemBaseConfig.Id)
            }, t.prototype.PersonalityDetailClick = function(e) {
                var t = C.default.Instance.IsGameModuleUnlock(P.GameModuleType.Personality);
                if (t[0]) {
                    var n = m.ConfigDataComponent.Instance.GetConfigById(I.ItemPersonality_Config, e);
                    b.UIManager.Instance.ShowUIPanel(S.PanelConfig.HeroHandbookPanel.Path, n.HeroId, null, null, !1, !0, !0, 1)
                } else g.UIUtlity.ShowFloatingHint(t[1])
            }, t.prototype.OnBtnAddClick = function() {
                this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0, this._combineCount < this._maxCount && (this._combineCount += 1, this._combineCount >= this._maxCount ? this.BtnAdd.interactable = !1 : this.BtnReduce.interactable = !0, this.SetSliderProgress())
            }, t.prototype.OnBtnReduceClick = function() {
                this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0, this._combineCount > 1 && (this._combineCount -= 1, this._combineCount <= 1 ? this.BtnReduce.interactable = !1 : this.BtnAdd.interactable = !0, this.SetSliderProgress())
            }, t.prototype.SetCountOperationBtnState = function(e) {
                e ? this._maxCount <= 1 ? (this.BtnAdd.interactable = !1, this.BtnReduce.interactable = !1) : this._itemBaseConfig.Type == P.ItemType.Currency || this._itemBaseConfig.Type == P.ItemType.Consume ? (this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !1) : (this.BtnAdd.interactable = !1, this.BtnReduce.interactable = !0) : (this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0, this._combineCount <= 1 ? this.BtnReduce.interactable = !1 : this._combineCount >= this._maxCount && (this.BtnAdd.interactable = !1))
            }, t.prototype.OnBtnCombineClick = function() {
                var e = this;
                if (this._itemPieceConfig.SubType == P.ItemPieceType.HeroPiece)
                    if (C.default.Instance.IsCanGetNewHero(this._combineCount)) this.RequestCombine();
                    else {
                        var t = C.default.Instance.GetHeroCountLimit(),
                            n = "compose_heroCount_limit".ToUILocale().Fmt(t);
                        g.UIUtlity.ShowHintPanel("", n, "", null, "go_to_treat".ToUILocale(), function() {
                            e.Close(), b.UIManager.Instance.CloseUIPanel(S.PanelConfig.BagPanel.Path), v.UIManager.Instance.ShowUIPanel(S.PanelConfig.HeroPalacePanel.Path, 1)
                        })
                    }
                else switch (this._itemPieceConfig.SubType) {
                    case P.ItemPieceType.CommonHeroPiece:
                    case P.ItemPieceType.CommonPersonalityPiece:
                        var o = Math.floor(this._combineCount / this._itemPieceConfig.RequireCount),
                            r = this._itemPieceConfig.CardId.ToItemName();
                        if (o <= 0) return g.UIUtlity.ShowFloatingHint("itemPiece_combine_notEnouth".ToUILocale().Fmt(r, this._itemPieceConfig.RequireCount));
                        var i = "itemPiece_combine_hint".ToUILocale().Fmt(o * this._itemPieceConfig.RequireCount, o, r);
                        g.UIUtlity.ShowHintPanel(this._itemPieceConfig.Id.ToItemName(), i, "", null, "", function() {
                            e.RequestItemPieceCombine(o)
                        });
                        break;
                    default:
                        this.RequestItemPieceCombine(this._combineCount)
                }
            }, t.prototype.RequestCombine = function() {
                var e = new h.Req_Item_ComposePiece;
                e.ItemId = this._itemId, e.Count = this._combineCount, this.Close(), w.RpcComponent.Instance.Call(e, this.RequestCombineHeroPieceSuccess.bind(this), void 0, O.default.Instance.CurrentGroup)
            }, t.prototype.RequestCombineHeroPieceSuccess = function(e) {
                g.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.RequestItemPieceCombine = function(e) {
                var t = new h.Req_Item_ComposePiece;
                t.ItemId = this._itemId, t.Count = e, this.Close(), w.RpcComponent.Instance.Call(t, this.RequestCombineHolyEquipSuccess.bind(this))
            }, t.prototype.RequestCombineHolyEquipSuccess = function(e) {
                g.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.OnBtnTakeOffClick = function() {
                g.UIUtlity.ShowMaskPanel();
                var e = new h.Req_Item_EquipmentPutOff;
                e.EquipmentId = this._userEquipId, e.StorageType = P.EquipmentStorageType.Equipment, w.RpcComponent.Instance.Call(e, this.OnTakeOffEquipSuccess.bind(this), this.OnTakeOffEquipFail.bind(this))
            }, t.prototype.OnBtnForgeClick = function() {
                b.UIManager.Instance.ShowUIPanel(S.PanelConfig.EquipForgingPanel.Path, this._userEquipId), this.Close()
            }, t.prototype.OnBtnChangeClick = function() {
                this.Close();
                var e = f.DataCenter.Instance.GetDataById(h.Equipment_Model, this._userEquipId),
                    t = f.DataCenter.Instance.GetDataById(h.UserHero_Model, e.OwnerId);
                b.UIManager.Instance.ShowUIPanel(S.PanelConfig.EquipmentChangePanel.Path, t, this._userEquipId)
            }, t.prototype.OnTakeOffEquipSuccess = function() {
                this.Close(), g.UIUtlity.CloseMaskPanel(), v.Game.EventDispatcher.Emit(L.EventKeys.EVENT_EQUIP_DATA_REFRESH), g.UIUtlity.ShowFloatingHint("equip_take_off_success".ToUILocale())
            }, t.prototype.OnTakeOffEquipFail = function() {
                this.Close(), g.UIUtlity.CloseMaskPanel()
            }, t.prototype.OnBtnSellClick = function() {
                this.Close(), v.UIManager.Instance.ShowUIPanel(S.PanelConfig.BuyAndSellItemPanel.Path, this._itemId, 0, 0, k.BuyAndSellType.Sell)
            }, t.prototype.OnBtnUseClick = function() {
                if (null != this._consumeConfig && this._consumeConfig.GameModule) {
                    var e = C.default.Instance.IsGameModuleUnlock(this._consumeConfig.GameModule);
                    if (!e[0]) return void g.UIUtlity.ShowFloatingHint(e[1])
                }
                if (this._consumeConfig.SubType != P.ConsumeItemType.ManualBox || null != this._selectIndex) switch (this.Close(), this._consumeConfig.SubType) {
                    case P.ConsumeItemType.Noraml:
                        var t = this._itemBaseConfig.UseTypeId[0],
                            n = this._itemBaseConfig.UseTypeId.slice(1, this._itemBaseConfig.UseTypeId.length);
                        n.length <= 0 ? g.UIUtlity.ShowPanelById(t) : g.UIUtlity.ShowPanelById(t, n);
                        break;
                    case P.ConsumeItemType.FixedBox:
                    case P.ConsumeItemType.RandomBox:
                        this.RequestUseItem();
                        break;
                    case P.ConsumeItemType.ManualBox:
                        var o = new h.Req_Item_UseItems;
                        o.Items = [{
                            Items: [this._itemBaseConfig.Id, this._combineCount, this._selectIndex]
                        }], w.RpcComponent.Instance.Call(o, this.ManualBoxUseSucess.bind(this, this._itemBaseConfig.Id, this._combineCount));
                        break;
                    case P.ConsumeItemType.DynamicBox:
                        this.RequestUseItem();
                        break;
                    case P.ConsumeItemType.LockedFixedBox:
                    case P.ConsumeItemType.LockedRandomBox:
                        this.OpenLockedBox();
                        break;
                    case P.ConsumeItemType.Coupon:
                        C.default.ShowPanelByGetWayId(this._itemBaseConfig.UseTypeId[0]);
                        break;
                    case P.ConsumeItemType.UncertifiedReel:
                        this.RequestActivityUseItem();
                        break;
                    case P.ConsumeItemType.HeroFixedBox:
                    case P.ConsumeItemType.HeroRandomBox:
                    case P.ConsumeItemType.HeroManualBox:
                        v.UIManager.Instance.ShowUIPanel(S.PanelConfig.HeroJobItemUsePanel.Path, this._itemId);
                        break;
                    case P.ConsumeItemType.UpgradeCard:
                        b.UIManager.Instance.ShowUIPanel(S.PanelConfig.SelectRewardBoxPanel.Path, this._itemBaseConfig, this._consumeConfig, 1, D.SelectItemMode.UpgradeCard)
                } else g.UIUtlity.ShowFloatingHint("selectReward_selectEmpty".ToUILocale())
            }, t.prototype.OnBtnRequireClick = function() {
                b.UIManager.Instance.ShowUIPanel(S.PanelConfig.ItemGetWayPanel.Path, this._itemId), this.Close()
            }, t.prototype.RequestUseItem = function() {
                v.Game.EventDispatcher.Emit(L.EventKeys.EVENT_SELECT_REWARD_BOX, this._itemData.ItemId, this._combineCount);
                var e = new h.Req_Item_UseItem;
                e.ItemId = this._itemData.ItemId, e.Count = this._combineCount, w.RpcComponent.Instance.Call(e, this.ResponseUseItemSuccess.bind(this))
            }, t.prototype.ManualBoxUseSucess = function(e, t, n) {
                v.Game.EventDispatcher.Emit(L.EventKeys.EVENT_SELECT_REWARD_BOX, e, t), this.ResponseUseItemSuccess(n)
            }, t.prototype.ResponseUseItemSuccess = function(e) {
                e.Rewards.length > 0 && g.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.RequestActivityUseItem = function() {
                var e = new h.Req_Activity_MagicComposeAppraiseReel;
                e.ActivityId = this._activityId, e.Id = this._itemData.ItemId, e.Count = this._combineCount, w.RpcComponent.Instance.Call(e, this.ResponseUseItemSuccess.bind(this))
            }, t.prototype.BindEquipRedDot = function() {
                M.RedDotManager.Instance.BindInstance(this.BtnChange.node, M.RedDotManager.Instance.InstanceRedDot.ItemInfoChangeEquipButton, {
                    Result: this._canChangeEquip
                }), this._canChangeEquip ? M.RedDotManager.Instance.BindInstance(this.BtnForge.node, M.RedDotManager.Instance.InstanceRedDot.ItemInfoForgingEquipButton, {
                    Result: !1
                }) : M.RedDotManager.Instance.BindInstance(this.BtnForge.node, M.RedDotManager.Instance.InstanceRedDot.ItemInfoForgingEquipButton, {
                    Result: this._canForgingEquip
                })
            }, t.prototype.ShowGuide = function() {
                if (O.default.Instance.IsInGuide) switch (O.default.Instance.CurrentStep) {
                    case 5105:
                        O.default.Instance.ShowGuide(this.BtnCombine.node)
                }
            }, t.prototype.OnConsumeItemClick = function(e, t) {
                "Grid" == t.parent.name && this.MiddleDescForConsume.active && g.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
            }, t.prototype.OnGoHatchButtonClick = function() {
                if (null != this._consumeConfig && this._consumeConfig.GameModule) {
                    var e = C.default.Instance.IsGameModuleUnlock(this._consumeConfig.GameModule);
                    if (!e[0]) return void g.UIUtlity.ShowFloatingHint(e[1])
                }
                v.UIManager.Instance.ShowUIPanel(S.PanelConfig.AngelPanel.Path)
            }, t.prototype.OpenLockedBox = function() {
                b.UIManager.Instance.ShowUIPanel(S.PanelConfig.OpenLockedBoxPanel.Path, this._itemId)
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                this.MiddleManulBoxCL == t && e.forEach(function(e, t) {
                    var o = e.getComponent(N.SelectItemComponent),
                        r = n._selectItemDatas[t],
                        i = r[0],
                        a = r[1] * (n._combineCount || 1),
                        s = r[2];
                    o.node.name = s.toString(), o.Init({
                        ItemId: i,
                        Count: a
                    }, n._commonItemPrefab, n._selectIndex == s, n.OnSelectItemClick.bind(n))
                })
            }, t.prototype.OnSelectItemClick = function(e) {
                this._selectIndex = e, this.MiddleManulBoxCL.ReRender()
            }, t.FILL_UI_PADDING = 5, t.HINT_NODE_POS_LOW = -476, t.HINT_NODE_POS_HIGH = -229, t.BUTTON_LAYOUT_SPACING_EXPAND = 170, t.BUTTON_LAYOUT_SPACING_SHRINK = 20, i([x(cc.Node)], t.prototype, "ItemRoot", void 0), i([x(cc.Label)], t.prototype, "ItemName", void 0), i([x(cc.Node)], t.prototype, "ItemCountNode", void 0), i([x(cc.Label)], t.prototype, "ItemCount", void 0), i([x(T.default)], t.prototype, "EquipInfoNode", void 0), i([x(A.default)], t.prototype, "EquipAttrNode", void 0), i([x(cc.Node)], t.prototype, "EquipAttrItemPrefab", void 0), i([x(cc.Node)], t.prototype, "SliderNode", void 0), i([x(cc.Layout)], t.prototype, "BottomBtnLayout", void 0), i([x(cc.Button)], t.prototype, "BtnDetail", void 0), i([x(cc.Button)], t.prototype, "BtnCombine", void 0), i([x(cc.Button)], t.prototype, "BtnTakeOff", void 0), i([x(cc.Button)], t.prototype, "BtnForge", void 0), i([x(cc.Button)], t.prototype, "BtnChange", void 0), i([x(cc.Button)], t.prototype, "BtnSell", void 0), i([x(cc.Button)], t.prototype, "BtnUse", void 0), i([x(cc.Label)], t.prototype, "SellBtnLabel", void 0), i([x(cc.Label)], t.prototype, "UseBtnLabel", void 0), i([x(cc.Button)], t.prototype, "BtnAdd", void 0), i([x(cc.Button)], t.prototype, "BtnReduce", void 0), i([x(cc.Button)], t.prototype, "BtnRequire", void 0), i([x(cc.Sprite)], t.prototype, "AddBtnSprite", void 0), i([x(cc.Sprite)], t.prototype, "ReduceBtnSprite", void 0), i([x(cc.ScrollView)], t.prototype, "ItemDescScroll", void 0), i([x(_.CustomRichText)], t.prototype, "ItemDesc", void 0), i([x(cc.Slider)], t.prototype, "CombineCountSlider", void 0), i([x(cc.Node)], t.prototype, "SliderFill", void 0), i([x(cc.Label)], t.prototype, "SelectCount", void 0), i([x(cc.Label)], t.prototype, "DescFlagLabel", void 0), i([x(cc.Label)], t.prototype, "ObtainWayLabel", void 0), i([x(cc.Label)], t.prototype, "DetailBtnLabel", void 0), i([x(cc.Label)], t.prototype, "ComposeBtnLabel", void 0), i([x(cc.Label)], t.prototype, "TakeOffBtnLabel", void 0), i([x(cc.Label)], t.prototype, "ForgeBtnLabel", void 0), i([x(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([x(cc.Node)], t.prototype, "BtnParentNode", void 0), i([x(cc.Node)], t.prototype, "BottomNode", void 0), i([x(cc.Node)], t.prototype, "CurrencyNode", void 0), i([x(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([x(cc.Label)], t.prototype, "CurrencyCount", void 0), i([x(cc.Node)], t.prototype, "MiddleDesc", void 0), i([x(cc.Node)], t.prototype, "MiddleDescForConsume", void 0), i([x(cc.Label)], t.prototype, "MiddleDescForConsumeBanner", void 0), i([x(cc.RichText)], t.prototype, "MiddleDescForConsumeDesc", void 0), i([x(cc.Node)], t.prototype, "MiddleDescForConsumeItemContainer", void 0), i([x(cc.ScrollView)], t.prototype, "MiddleDescForConsumeScroll", void 0), i([x(cc.Node)], t.prototype, "MiddleDescForConsumeView", void 0), i([x(cc.Node)], t.prototype, "MiddleManulBox", void 0), i([x(cc.Label)], t.prototype, "MiddleManulTitle", void 0), i([x(E.default)], t.prototype, "MiddleManulBoxCL", void 0), i([x(cc.Node)], t.prototype, "MiddleManulBoxSelectItem", void 0), i([x(cc.Button)], t.prototype, "GoHatchButton", void 0), i([x(cc.Label)], t.prototype, "GoHatchButtonLabel", void 0), i([x(cc.Label)], t.prototype, "LimitLevel", void 0), n = i([G], t)
        }(u.BaseUIPanel);
        n.default = H, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/EquipAttrComponent": "EquipAttrComponent",
        "../Components/EquipBaseInfoComponent": "EquipBaseInfoComponent",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SelectItemComponent": "SelectItemComponent",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./SelectRewardBoxPanel": "SelectRewardBoxPanel"
    }],
    ItemNumComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e69f3DYUjFMrKLjzLiqPhNR", "ItemNumComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/DataCenter"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./ItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.Label1 = null, t.Label2 = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Set = function(e, t) {
                    return void 0 === t && (t = ""), a(this, void 0, void 0, function() {
                        var n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (n = this, [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    n._itemPrefab = s.sent(), s.label = 2;
                                case 2:
                                    return this._itemComponent || (o = cc.instantiate(this._itemPrefab), r = o.getComponent(h.ItemComponent), this.ItemContainer.addChild(o), this._itemComponent = r), this._itemComponent.Init({
                                        ItemId: e.ItemId
                                    }), i = p.DataCenter.Instance.GetItemCount(e.ItemId), a = e.Count, i >= a ? (this._itemComponent.DisableMask(), this.Label1.node.color = (new cc.Color).fromHEX("#00ff00")) : (this._itemComponent.EnableMask(), this.Label1.node.color = (new cc.Color).fromHEX("#ff0000")), this.Label1.string = a.FmtCurrency(), this.Label2.string = "/" + i.FmtCurrency(), "" != t && (this.Label1.node.color = (new cc.Color).fromHEX("#ffffff"), this.Label1.string = t, this.Label2.string = ""), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    this._itemComponent.node == t && d.UIUtlity.ShowItemTip(this._itemComponent.ItemId, t)
                }, i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Label)], t.prototype, "Label1", void 0), i([g(cc.Label)], t.prototype, "Label2", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ItemSelectUseComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0ef5eyjPVhKF7nSYWGFH9mm", "ItemSelectUseComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ItemSelectUseComponent = void 0;
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = e("../../Components/DataCenter"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("./ItemComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.UseButton = null, t.UseLabel = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t) {
                    this._itemId = e, this._isInit || (this.UseLabel.string = "use".ToUILocale(), this.UseButton.node.on("click", this.OnUseButtonClick, this));
                    var n = c.DataCenter.Instance.IsItemEnough(e, 1);
                    if (u.UIUtlity.SetGray(this.UseButton.node, !n, !0), !this._itemComponent) {
                        var o = cc.instantiate(t);
                        o.parent = this.ItemNode, o.y = -20, this._itemComponent = o.getComponent(p.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: e,
                        Count: 1
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && u.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.OnUseButtonClick = function() {
                    c.DataCenter.Instance.IsItemEnough(this._itemId, 1) && a.UIManager.Instance.ShowUIPanel(l.PanelConfig.HeroJobItemUsePanel.Path, this._itemId)
                }, i([f(cc.Node)], t.prototype, "ItemNode", void 0), i([f(cc.Button)], t.prototype, "UseButton", void 0), i([f(cc.Label)], t.prototype, "UseLabel", void 0), i([h], t)
            }(cc.Component);
        n.ItemSelectUseComponent = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    ItemSelectUsePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "66aa5RnDldEA5MM7Jf8fJv6", "ItemSelectUsePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CustomLayout"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/ItemSelectUseComponent"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Hint = null, t.ScrollView = null, t.CustomLayout = null, t.NoneHint = null, t._isInitList = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_SELECT_USE_REFRESH, this.RefreshItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_SELECT_USE_REFRESH, this.RefreshItem, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("HeroJobChangePanel/Components/ItemSelectUseComponent", cc.Prefab), n = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemUsePrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "heroJob_item_list".ToUILocale(), this.Hint.string = "heroJob_use_item".ToUILocale(), this.NoneHint.string = "heroJob_no_items".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._itemIds = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.NoneHint.node.active = !this._itemIds || 0 == this._itemIds.length, this.ScrollView.node.active = this._itemIds && this._itemIds.length > 0, this._itemIds && this._itemIds.length > 0 && (this._isInitList || (this.CustomLayout.Init(this._itemUsePrefab), this._isInitList = !0), this.CustomLayout.RenderLayOut(this._itemIds.length)))
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.name = n._itemIds[t].toString(), e.getComponent(p.ItemSelectUseComponent).Init(n._itemIds[t], n._itemPrefab)
                    })
                }, t.prototype.RefreshItem = function(e) {
                    for (var t = 0; t < this.CustomLayout.node.children.length; t++) {
                        var n = this.CustomLayout.node.children[t];
                        if (n.name == e.toString()) {
                            n.getComponent(p.ItemSelectUseComponent).Init(e, this._itemPrefab);
                            break
                        }
                    }
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "Hint", void 0), i([y(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([y(c.default)], t.prototype, "CustomLayout", void 0), i([y(cc.Label)], t.prototype, "NoneHint", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemSelectUseComponent": "ItemSelectUseComponent"
    }],
    ItemTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c8d25Z/0DtC/5NA5Obk0dWU", "ItemTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ItemTipsOtherType = void 0;
        var l, c = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            u = e("../../../EZFramework/UIFrame/UIPanelType"),
            p = e("../../../EZFramework/EZDefine/SysDefine"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/ItemComponent"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Components/ConfigData/ConfigDataComponent"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Components/DataCenter"),
            I = e("../Components/CustomRichText"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../Components/TipsLocationComponent"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../../../EZFramework/UIFrame/UIManager"),
            w = e("../Components/ItemClickComponent"),
            P = e("../../../EZFramework/EZFramework"),
            A = e("../../Auxiliary/EventKeys"),
            T = e("../../../../Proto/Static/RpcProto"),
            R = e("./StarPiecePanel"),
            L = e("../../Channel/ChannelManager"),
            k = e("../Components/CustomLayout"),
            O = e("../../Components/RpcComponent"),
            M = e("./HeroSkinPanel");
        (function(e) {
            e[e.HeroJob = 1] = "HeroJob"
        })(l = n.ItemTipsOtherType || (n.ItemTipsOtherType = {}));
        var D = cc._decorator,
            B = D.ccclass,
            N = D.property,
            E = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(p.UINodeType.PopUp, !1, !1, !1, P.AssetUnloadMode.Resident), t.MaskNode = null, t.ItemRoot = null, t.JobIcon = null, t.NameLabel = null, t.CountLabel = null, t.LimitLevel = null, t.Hold = null, t.DescText = null, t.ContentScroll = null, t.ViewLayout = null, t.QualityBg = null, t.BtnDetail = null, t.DetailBtnLabel = null, t.TypeNameLabel = null, t.TypeTag = null, t.ScoreLabel = null, t.ScoreTag = null, t.AttrGrid = null, t.AttrGridTag = null, t.AttrItems = [], t.AttrIcons = [], t.AttrNames = [], t.AttrValues = [], t.LocationComponent = null, t.ScrollView = null, t.CustomLayout = null, t.ItemTag = null, t.BtnUse = null, t.BtnUseLabel = null, t.DescRichText = null, t.SkillNode = null, t.SkillTag = null, t.SkillName = null, t.SkillDesc = null, t.ActivityRecoveryLayout = null, t.ActivityRecoveryTitle = null, t.ActivityRecoveryTime = null, t.ActivityRecoveryDesc = null, t.VIEW_MAX_HIGHT = 905, t.RED_COLOR = new cc.Color(255, 42, 42), t.GREEN_COLOR = new cc.Color(110, 238, 167), t._commonItemPrefab = null, t._item = null, t._equipConfig = null, t._pieceConfig = null, t._consumeConfig = null, t._rateData = [], t._isCustomLayoutInit = !1, t._heroJobConfig = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    P.Game.EventDispatcher.On(A.EventKeys.EVENT_ITEM_CLICK, this.OnConsumeItemClick, this), P.Game.EventDispatcher.On(A.EventKeys.EVENT_POWERCOREPIECE_CLOSETIP, this.Close, this), P.Game.EventDispatcher.On(A.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    P.Game.EventDispatcher.Off(A.EventKeys.EVENT_ITEM_CLICK, this.OnConsumeItemClick, this), P.Game.EventDispatcher.Off(A.EventKeys.EVENT_POWERCOREPIECE_CLOSETIP, this.Close, this), P.Game.EventDispatcher.Off(A.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), this.unscheduleAllCallbacks()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemTipsPanel/Atlas/ItemTipsPanel", cc.SpriteAtlas), n = this.LoadDynamicAsset(C.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemTipsAtlas = e[0], o._commonItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetClickEvent(), this.SetStaticLocalText()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnDetail.node.on("click", this.OnBtnDetailClick, this), this.BtnUse.node.on("click", this.OnBtnUseClick, this), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.SetStaticLocalText = function() {
                    this.Hold.string = "hold".ToUILocale(), this.DetailBtnLabel.string = "detail".ToUILocale(), this.AttrGridTag.string = "equip_base_attr".ToUILocale(), this.BtnUseLabel.string = "use".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    if (this._itemId = e[0], this._itemId == d.CommonItemId.Currency && (this._itemId = L.default.Instance.CurrencyItemID), this._clickNode = e[1], e[2] ? this._otherType = e[2] : this._otherType = null, this._otherType > 0) this._heroJobConfig = y.ConfigDataComponent.Instance.GetConfigById(f.HeroJob_Config, this._itemId);
                    else switch (this._itemConfig = y.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, this._itemId), this._consumeConfig = y.ConfigDataComponent.Instance.GetConfigById(f.ItemConsume_Config, this._itemId), this._displayType = this._itemConfig.Type, this._displayType) {
                        case g.ItemType.Consume:
                            this.LoadRateData();
                            break;
                        case g.ItemType.Equip:
                            this._equipConfig = y.ConfigDataComponent.Instance.GetConfigById(f.ItemEquipment_Config, this._itemId);
                            break;
                        case g.ItemType.ItemPiece:
                            this._pieceConfig = y.ConfigDataComponent.Instance.GetConfigById(f.ItemPiece_Config, this._itemId), this.LoadRateData()
                    }
                }, t.prototype.LoadRateData = function() {
                    var e = this;
                    if (this._itemConfig.Type == g.ItemType.ItemPiece) {
                        if (this._pieceConfig.ShowLib.length > 0)
                            if (this._rateData = [], this._pieceConfig.SubType == g.ItemPieceType.HeroPiece) {
                                for (var t = 0, n = 0; n < this._pieceConfig.ShowLib.length; n++) t += this._pieceConfig.ShowLib[n].Items[1];
                                for (n = 0; n < this._pieceConfig.ShowLib.length; n++) {
                                    var o = this._pieceConfig.ShowLib[n].Items[0],
                                        r = this._pieceConfig.ShowLib[n].Items[1],
                                        i = y.ConfigDataComponent.Instance.GetConfigById(f.ItemHeroCard_Config, o).HeroId,
                                        a = y.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, i),
                                        s = 100 * r / t,
                                        l = {
                                            ItemId: a.Id,
                                            Count: 1,
                                            StarLevel: a.StarLevel
                                        };
                                    this._rateData[n] = {
                                        ItemData: l,
                                        Rate: s
                                    }
                                }
                            } else if (this._pieceConfig.SubType == g.ItemPieceType.HolyEquipPiece) {
                            for (t = 0, n = 0; n < this._pieceConfig.ShowLib.length; n++) null != (r = this._pieceConfig.ShowLib[n].Items[1]) && (t += r);
                            for (n = 0; n < this._pieceConfig.ShowLib.length; n++) {
                                var c = this._pieceConfig.ShowLib[n].Items[0];
                                s = -1, null != (r = this._pieceConfig.ShowLib[n].Items[1]) && (s = 100 * r / t), l = {
                                    ItemId: y.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, c).Id,
                                    Count: 1
                                }, this._rateData[n] = {
                                    ItemData: l,
                                    Rate: s
                                }
                            }
                        }
                    } else if (this._itemConfig.Type == g.ItemType.Consume && null != this._consumeConfig) switch (this._consumeConfig.SubType) {
                        case g.ConsumeItemType.FixedBoxAutomatically:
                        case g.ConsumeItemType.FixedBox:
                        case g.ConsumeItemType.ManualBox:
                            this._itemFavorHero || (this._itemFavorHero = {}, y.ConfigDataComponent.Instance.GetArrayConfig(f.ItemFavor_Config).forEach(function(t) {
                                2 == t.Favor[0] && (e._itemFavorHero[t.Id] = t.Favor[1])
                            })), this._rateData = [];
                            var u = 0;
                            for (n = 0; n < this._consumeConfig.Param.length; n++) c = this._consumeConfig.Param[n].Items[0], this._itemFavorHero[c] && !b.default.Instance.IsModuleShowAvailable(d.ModuleStartTime.Hero, this._itemFavorHero[c]) || (l = {
                                ItemId: c,
                                Count: p = this._consumeConfig.Param[n].Items[1]
                            }, this._rateData[u] = {
                                ItemData: l,
                                Rate: -1
                            }, u++);
                            break;
                        case g.ConsumeItemType.RandomBox:
                        case g.ConsumeItemType.RandomBoxAutomatically:
                        case g.ConsumeItemType.PetEgg:
                            for (this._rateData = [], t = 0, n = 0; n < this._consumeConfig.ShowLib.length; n++) null != (r = this._consumeConfig.ShowLib[n].Items[2]) && (t += r);
                            for (n = 0; n < this._consumeConfig.ShowLib.length; n++) {
                                c = this._consumeConfig.ShowLib[n].Items[0];
                                var p = this._consumeConfig.ShowLib[n].Items[1];
                                s = -1, null != (r = this._consumeConfig.ShowLib[n].Items[2]) && (s = 100 * r / t), l = {
                                    ItemId: c,
                                    Count: p
                                }, this._rateData[n] = {
                                    ItemData: l,
                                    Rate: s
                                }
                            }
                    }
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.SetDescText()
                }, t.prototype.DisPlay = function() {
                    if (e.prototype.DisPlay.call(this), this.node.opacity = 0, this.JobIcon.node.active = this._otherType == l.HeroJob, this.ItemRoot.active = !this._otherType, this._otherType) switch (this.HideItemCount(), this._otherType) {
                        case l.HeroJob:
                            this.LoadHeroJobNode()
                    } else this.LoadItemComponent();
                    this.ConfigTipsByType(), this.ConfigRecoveryInfoNode()
                }, t.prototype.ConfigTipsByType = function() {
                    if (this.TypeNameLabel.node.active = !1, this.ScoreLabel.node.active = !1, this.AttrGrid.node.active = !1, this.BtnUse.node.active = !1, this.BtnDetail.node.active = !1, this.DescRichText.node.active = !1, this.SkillNode.active = !1, this.LimitLevel.node.active = !1, this.SetItemScrollState(!1), this._otherType > 0) switch (this._otherType) {
                        case l.HeroJob:
                            this.SetHeroJobNode()
                    } else {
                        switch (this._displayType) {
                            case g.ItemType.Currency:
                            case g.ItemType.Consume:
                                if (this._consumeConfig) {
                                    var e = y.ConfigDataComponent.Instance.GetConfigById(f.ItemConsume_Config, this._itemId);
                                    switch (this._consumeConfig.SubType) {
                                        case g.ConsumeItemType.HeroSkin:
                                            this.BtnDetail.node.active = !0;
                                            var t = e.Param[0].Items[0],
                                                n = y.ConfigDataComponent.Instance.GetConfigById(f.HeroSkin_Config, t);
                                            if (n) {
                                                var o = n.HeroAttrIds[0],
                                                    r = y.ConfigDataComponent.Instance.GetConfigById(f.HeroSkinAttrs_Config, o);
                                                this.ConfigAttrItem(r.Attrs)
                                            }
                                            break;
                                        case g.ConsumeItemType.MainSceneBackground:
                                            var i = e.Param[0].Items[0],
                                                a = y.ConfigDataComponent.Instance.GetConfigById(f.ItemMainSceneBackground_Config, i);
                                            a && this.ConfigAttrItem(a.Attrs)
                                    }
                                }
                            case g.ItemType.LuckyCharm:
                            case g.ItemType.Virtual:
                                if (this.ConfigItemCommon(), null != this._consumeConfig) switch (this._consumeConfig.SubType) {
                                    case g.ConsumeItemType.FixedBox:
                                    case g.ConsumeItemType.FixedBoxAutomatically:
                                    case g.ConsumeItemType.ManualBox:
                                    case g.ConsumeItemType.RandomBox:
                                    case g.ConsumeItemType.RandomBoxAutomatically:
                                    case g.ConsumeItemType.PetEgg:
                                        var s = "";
                                        this._consumeConfig.SubType == g.ConsumeItemType.FixedBox || this._consumeConfig.SubType == g.ConsumeItemType.FixedBoxAutomatically ? s = "open_to_see".ToUILocale() : this._consumeConfig.SubType == g.ConsumeItemType.RandomBox || this._consumeConfig.SubType == g.ConsumeItemType.RandomBoxAutomatically ? s = "open_get_random".ToUILocale() : this._consumeConfig.SubType == g.ConsumeItemType.ManualBox ? s = "open_get_select".ToUILocale() : this._consumeConfig.SubType == g.ConsumeItemType.PetEgg && (s = this._itemId.ToItemDesc()), this.ItemTag.string = s, this.SetItemScrollState(!0), this.InitCustomLayout(), this._rateData.length > 0 && (this.CustomLayout.SpaceY = this._rateData[0].Rate > 0 ? 0 : -20, this.CustomLayout.RenderLayOut(this._rateData.length));
                                        break;
                                    case g.ConsumeItemType.HeadFrame:
                                        this.ConfigHeadFrameItem();
                                        break;
                                    case g.ConsumeItemType.Title:
                                        this.ConfigTitleAttrs()
                                }
                                break;
                            case g.ItemType.Hero:
                                this.ConfigHeroInfo(), this.BtnDetail.node.active = !0;
                                break;
                            case g.ItemType.ItemPiece:
                                this.ConfigItemCommon(), this.BtnDetail.node.active = !0, this._pieceConfig.SubType != g.ItemPieceType.CommonHeroPiece && this._pieceConfig.SubType != g.ItemPieceType.CommonPersonalityPiece || (this.BtnDetail.node.active = !1);
                                break;
                            case g.ItemType.Equip:
                                this.ConfigEquipItem(), this.BtnDetail.node.active = !1;
                                break;
                            case g.ItemType.TemplePiece:
                            case g.ItemType.ExclusiveTemplePiece:
                                this.ConfigItemCommon(), this.BtnDetail.node.active = !0;
                                break;
                            case g.ItemType.HeroLuckyCharm:
                                this.BtnUse.node.active = !0, this.ConfigItemCommon();
                                break;
                            case g.ItemType.Personality:
                                this.ConfigItemCommon(), this.BtnDetail.node.active = !0;
                                break;
                            case g.ItemType.Puzzle:
                                this.ConfigItemCommon(), this.ConfigPuzzleAttrs();
                                break;
                            case g.ItemType.ArtefactCard:
                                this.ConfigItemCommon(), this.BtnDetail.node.active = !0;
                                break;
                            default:
                                this.ConfigItemCommon(), this.BtnDetail.node.active = !1
                        }
                        this.ContentScroll.node.active = !this.ItemTag.node.active, this._displayType != g.ItemType.Virtual && this._displayType != g.ItemType.CurrencyDiscountTicket || this.HideItemCount()
                    }
                    this.ResizePanelHeight(), b.default.CallBackAfterFrames(this.LocationShow.bind(this), 5, this)
                }, t.prototype.LocationShow = function() {
                    this.isValid && (this.LocationComponent.RepositionPanel(this._clickNode), this.node.opacity = 255)
                }, t.prototype.SetHeroJobNode = function() {
                    this.TypeNameLabel.node.active = !0, this.ScoreLabel.node.active = !0, this.TypeNameLabel.string = "heroJob_tips_type".ToUILocale(), this.TypeTag.string = "equip_type_tag".ToUILocale(), this.ScoreLabel.string = this._heroJobConfig.Power.toString(), this.ScoreTag.string = "equip_score_tag".ToUILocale(), this.QualityBg.spriteFrame = this._itemTipsAtlas.getSpriteFrame("detail_quality_" + this._heroJobConfig.ShowQuality), this.NameLabel.string = this._heroJobConfig.Id.ToHeroJobName(), this.NameLabel.node.color = _.UIUtlity.GetLabelColorByQuality(this._heroJobConfig.ShowQuality), this.ConfigAttrItem(this._heroJobConfig.Attrs), this._heroJobConfig.Skill && (this.SkillNode.active = !0, this.SkillTag.string = "heroJob_tips_skill".ToUILocale(), this.SkillName.string = this._heroJobConfig.Skill.ToHeroSkillName(), this.SkillDesc.string = this._heroJobConfig.Skill.ToHeroSkillDesc(), y.ConfigDataComponent.Instance.GetConfigById(f.SkillBase_Config, this._heroJobConfig.Skill)), this.ContentScroll.node.active = !0, this.DescText.Init("<outline color=#000000 width=3>" + this._heroJobConfig.Id.ToHeroJobDesc() + "</outline>")
                }, t.prototype.ConfigItemCommon = function() {
                    if (this.SetItemName(), this._itemConfig && this._itemConfig.Type == g.ItemType.Voucher ? this.HideItemCount() : this.SetItemCount(), this.SetQualityBg(), null != this._consumeConfig && this._consumeConfig.SubType == g.ConsumeItemType.HeroSoul) this._item.Init({
                        ItemId: this._itemId,
                        Count: 0
                    }, h.ItemComponentType.ItemWithStar);
                    else {
                        this._item.Init({
                            ItemId: this._itemId,
                            Count: 0
                        });
                        var e = this._itemId;
                        if (e && y.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, e).Type == g.ItemType.GodSoul) {
                            var t = y.ConfigDataComponent.Instance.GetConfigById(f.AngelGodSoul_Config, e);
                            this._item.SetLeftTopTag(!0, _.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg1"), t.Level)
                        }
                    }
                    if (null != this._consumeConfig && this._consumeConfig.GameModule) {
                        for (var n = y.ConfigDataComponent.Instance.GetConfigById(f.GameModule_Config, this._consumeConfig.GameModule), o = 0, r = 0; r < n.Requirements1.length; r++)
                            if (n.Requirements1[r].Items[0] == g.ModuleRequirementType.PlayerLevel) {
                                o = n.Requirements1[r].Items[1];
                                break
                            } this.LimitLevel.node.active = !0, this.LimitLevel.string = "itemInfoPanel_levelLimit".ToUILocale().Fmt(o)
                    } else this.LimitLevel.node.active = !1
                }, t.prototype.ConfigTitleAttrs = function() {
                    this.AttrGrid.node.active = !1, this.AttrGridTag.node.active = !1;
                    for (var e = 0; e < this.AttrItems.length; e++) this.AttrItems[e].active = !1;
                    var t = y.ConfigDataComponent.Instance.GetConfigById(f.Title_Config, this._itemId);
                    if (t.Attrs && t.Attrs.length > 0)
                        for (this.AttrGrid.node.active = !0, this.AttrGridTag.node.active = !0, e = 0; e < t.Attrs.length; e++) {
                            var n = t.Attrs[e].Items[0],
                                o = t.Attrs[e].Items[1],
                                r = b.default.GetHeroAttribute(n, o);
                            this.AttrIcons[e].spriteFrame = r.Icon, this.AttrNames[e].string = r.Name, this.AttrValues[e].string = "+" + r.Value, this.AttrItems[e].active = !0
                        }
                }, t.prototype.ConfigPuzzleAttrs = function() {
                    this.AttrGrid.node.active = !1, this.AttrGridTag.node.active = !1, this.DescRichText.node.active = !0;
                    var e = y.ConfigDataComponent.Instance.GetConfigById(f.ItemPuzzle_Config, this._itemId);
                    this.DescRichText.string = "itemTips_puzzle_score".ToUILocale().Fmt(e.Score);
                    for (var t = 0; t < this.AttrItems.length; t++) this.AttrItems[t].active = !1;
                    if (e.Attrs && e.Attrs.length > 0)
                        for (this.AttrGrid.node.active = !0, this.AttrGridTag.node.active = !0, t = 0; t < e.Attrs.length; t++) {
                            var n = e.Attrs[t].Items[0],
                                o = e.Attrs[t].Items[1],
                                r = b.default.GetHeroAttribute(n, o);
                            this.AttrIcons[t].spriteFrame = r.Icon, this.AttrNames[t].string = r.Name, this.AttrValues[t].string = "+" + r.Value, this.AttrItems[t].active = !0
                        }
                }, t.prototype.ConfigAttrItem = function(e) {
                    this.AttrGridTag.string = "heroSkin_attribute".ToUILocale(), this.AttrGrid.node.active = !0;
                    for (var t = 0; t < this.AttrItems.length; t++) this.AttrItems[t].active = !1;
                    var n = e.length;
                    for (t = 0; t < n; t++) {
                        var o = e[t].Items[0],
                            r = e[t].Items[1],
                            i = b.default.GetHeroAttribute(o, r);
                        this.AttrIcons[t].spriteFrame = i.Icon, this.AttrNames[t].string = i.Name, this.AttrValues[t].string = "+" + i.Value, this.AttrItems[t].active = !0
                    }
                }, t.prototype.ConfigEquipItem = function() {
                    this.SetItemName(), this.HideItemCount(), this.SetQualityBg();
                    var e = this._equipConfig.Type;
                    this.TypeNameLabel.node.active = !0, this.TypeNameLabel.string = ("equip_type_" + e).ToUILocale(), this.TypeTag.string = "equip_type_tag".ToUILocale(), this.ScoreLabel.node.active = !0, this.ScoreLabel.string = this._equipConfig.Score.toString(), this.ScoreTag.string = "equip_score_tag".ToUILocale(), this._item.Init({
                        ItemId: this._itemId,
                        StarLevel: this._itemConfig.Star,
                        Count: 0
                    }, h.ItemComponentType.ItemWithStar), this.LoadAttrItem()
                }, t.prototype.ConfigHeadFrameItem = function() {
                    this.LoadHeadFrameAttrItem()
                }, t.prototype.LoadAttrItem = function() {
                    this.AttrGrid.node.active = !0;
                    for (var e = 0; e < this.AttrItems.length; e++) this.AttrItems[e].active = !1;
                    var t = this._equipConfig.Attrs.length;
                    for (e = 0; e < t; e++) {
                        var n = this._equipConfig.Attrs[e].Items[0],
                            o = this._equipConfig.Attrs[e].Items[1],
                            r = b.default.GetHeroAttribute(n, o);
                        this.AttrIcons[e].spriteFrame = r.Icon, this.AttrNames[e].string = r.Name, this.AttrValues[e].string = "+" + r.Value, this.AttrItems[e].active = !0
                    }
                }, t.prototype.LoadHeadFrameAttrItem = function() {
                    this.AttrGrid.node.active = !1, this.AttrGridTag.node.active = !1;
                    for (var e = 0; e < this.AttrItems.length; e++) this.AttrItems[e].active = !1;
                    var t = y.ConfigDataComponent.Instance.GetConfigById(f.HeadFrame_Config, this._itemId);
                    if (t.Attrs && t.Attrs.length > 0)
                        for (this.AttrGrid.node.active = !0, this.AttrGridTag.node.active = !0, e = 0; e < t.Attrs.length; e++) {
                            var n = t.Attrs[e].Items[0],
                                o = t.Attrs[e].Items[1],
                                r = b.default.GetHeroAttribute(n, o);
                            this.AttrIcons[e].spriteFrame = r.Icon, this.AttrNames[e].string = r.Name, this.AttrValues[e].string = "+" + r.Value, this.AttrItems[e].active = !0
                        }
                }, t.prototype.ConfigHeroInfo = function() {
                    this.SetItemName(), this.HideItemCount(), this.SetQualityBg();
                    var e = y.ConfigDataComponent.Instance.GetConfigById(f.ItemHeroCard_Config, this._itemId).HeroId,
                        t = y.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, e);
                    this._item.Init({
                        ItemId: e,
                        Count: 0,
                        StarLevel: t.StarLevel,
                        ElementType: t.ElementType
                    }, h.ItemComponentType.HeroInfo)
                }, t.prototype.LoadHeroJobNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._heroJobConfig ? [4, this.LoadDynamicAsset("HeroJobChangePanel/JobIcons/" + this._heroJobConfig.Id, cc.SpriteFrame)] : [2];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.JobIcon.spriteFrame = e, [2]) : (P.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.LoadItemComponent = function() {
                    null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(h.ItemComponent), this._item.node.removeComponent(w.default), this._item.node.parent = this.ItemRoot)
                }, t.prototype.SetItemName = function() {
                    var e = this._itemId.ToItemName();
                    this.NameLabel.string = e
                }, t.prototype.HideItemCount = function() {
                    this.CountLabel.node.active = !1
                }, t.prototype.SetItemCount = function() {
                    var e = m.DataCenter.Instance.GetItemCount(this._itemId),
                        t = y.ConfigDataComponent.Instance.GetConfigById(f.ItemConsume_Config, this._itemId);
                    if (this.CountLabel.node.active = !this._itemConfig.IsHideTips, t) switch (t.SubType) {
                        case g.ConsumeItemType.HeroSkin:
                            this.CountLabel.string = "";
                            var n = t.Param[0].Items[0],
                                o = m.DataCenter.Instance.GetDataById(T.HeroSkin_Model, n);
                            o && 1 == o.IsPerpetual ? this.Hold.string = "item_have".ToUILocale() : this.Hold.string = "item_not_have".ToUILocale();
                            break;
                        case g.ConsumeItemType.Title:
                            this.CountLabel.string = "";
                            var r = t.Param[0].Items[0],
                                i = m.DataCenter.Instance.GetDataById(T.UserIcon_Model, r);
                            i && 0 == i.Time ? this.Hold.string = "item_have".ToUILocale() : this.Hold.string = "item_not_have".ToUILocale();
                            break;
                        default:
                            this.Hold.string = "hold".ToUILocale(), this.CountLabel.string = e.FmtCurrency()
                    } else this.Hold.string = "hold".ToUILocale(), this.CountLabel.string = e.FmtCurrency()
                }, t.prototype.SetQualityBg = function() {
                    this.QualityBg.spriteFrame = this._itemTipsAtlas.getSpriteFrame("detail_quality_" + this._itemConfig.Quality), this.NameLabel.node.color = _.UIUtlity.GetLabelColorByQuality(this._itemConfig.Quality)
                }, t.prototype.ResizePanelHeight = function() {
                    this.ContentScroll.scrollToTop(), this.ViewLayout.node.height >= this.VIEW_MAX_HIGHT && (this.ViewLayout.enabled = !1, this.ViewLayout.node.height = this.VIEW_MAX_HIGHT)
                }, t.prototype.SetDescText = function() {
                    var e;
                    if (this.ViewLayout.enabled = !0, !(this._otherType > 0)) {
                        switch (this._itemConfig.Type) {
                            case g.ItemType.CurrencyDiscountTicket:
                                var t = y.ConfigDataComponent.Instance.GetConfigById(f.ItemCurrencyDiscount_Config, this._itemId),
                                    n = "" + L.default.Instance.CurrencySymbol + L.default.Instance.ExchangeMoney(t.Type);
                                if (t.NewPrice > 0) {
                                    var o = "" + L.default.Instance.CurrencySymbol + L.default.Instance.ExchangeMoney(t.NewPrice);
                                    e = this._itemId.ToItemDesc().Fmt(n, o)
                                } else e = this._itemId.ToItemDesc().Fmt(n);
                                break;
                            default:
                                e = this._itemId.ToItemDesc()
                        }
                        this.DescText.Init("<outline color=#000000 width=3>" + e + "</outline>")
                    }
                }, t.prototype.OnBtnDetailClick = function() {
                    var e = this;
                    switch (S.UIManager.Instance.CloseUIPanel(C.PanelConfig.DisplayRewardsPanel.Path), this._displayType) {
                        case g.ItemType.Consume:
                            if (null != this._consumeConfig) switch (this._consumeConfig.SubType) {
                                case g.ConsumeItemType.FixedBox:
                                case g.ConsumeItemType.ManualBox:
                                    _.UIUtlity.ShowRatePanel(this._rateData, h.ItemComponentType.ItemCommon, 0, 0, this._consumeConfig.SubType);
                                    break;
                                case g.ConsumeItemType.RandomBox:
                                case g.ConsumeItemType.RandomBoxAutomatically:
                                    _.UIUtlity.ShowRatePanel(this._rateData, h.ItemComponentType.ItemCommon, 1, 2, this._consumeConfig.SubType);
                                    break;
                                case g.ConsumeItemType.HeroSkin:
                                    var t = this._consumeConfig.Param[0].Items[0],
                                        n = y.ConfigDataComponent.Instance.GetConfigById(f.HeroSkin_Config, t);
                                    n && S.UIManager.Instance.ShowUIPanel(C.PanelConfig.HeroSkinPanel.Path, n.HeroId, M.HeroSkinShowType.Activity, t)
                            }
                            break;
                        case g.ItemType.Hero:
                            S.UIManager.Instance.CloseUIPanel(C.PanelConfig.RatePanel.Path);
                            var o = y.ConfigDataComponent.Instance.GetConfigById(f.ItemHeroCard_Config, this._itemId);
                            S.UIManager.Instance.ShowUIPanel(C.PanelConfig.HeroHandbookPanel.Path, o.HeroId);
                            break;
                        case g.ItemType.ItemPiece:
                            switch (this._pieceConfig.SubType) {
                                case g.ItemPieceType.HeroPiece:
                                    if (this._pieceConfig.ShowLib.length > 0) _.UIUtlity.ShowRatePanel(this._rateData, h.ItemComponentType.HeroInfo, 1, 2);
                                    else {
                                        S.UIManager.Instance.CloseUIPanel(C.PanelConfig.RatePanel.Path);
                                        var r = y.ConfigDataComponent.Instance.GetConfigById(f.ItemHeroCard_Config, this._pieceConfig.CardId);
                                        S.UIManager.Instance.ShowUIPanel(C.PanelConfig.HeroHandbookPanel.Path, r.HeroId)
                                    }
                                    break;
                                case g.ItemPieceType.PowerCorePiece:
                                    S.UIManager.Instance.ShowUIPanel(C.PanelConfig.CoreHandbookItemPanel.Path, this._pieceConfig.CardId);
                                    break;
                                case g.ItemPieceType.PersonalityPiece:
                                    var i = b.default.Instance.IsGameModuleUnlock(g.GameModuleType.Personality);
                                    if (i[0]) {
                                        var a = y.ConfigDataComponent.Instance.GetConfigById(f.ItemPersonality_Config, this._pieceConfig.CardId);
                                        S.UIManager.Instance.ShowUIPanel(C.PanelConfig.HeroHandbookPanel.Path, a.HeroId, null, null, !1, !0, !0, 1)
                                    } else _.UIUtlity.ShowFloatingHint(i[1]);
                                    break;
                                case g.ItemPieceType.ArtefactPiece:
                                    var s = y.ConfigDataComponent.Instance.GetConfigById(f.ItemArtefactCard_Config, this._pieceConfig.CardId);
                                    S.UIManager.Instance.ShowUIPanel(C.PanelConfig.ArtifactPanel.Path, [s.ArtefactId], s.ArtefactId);
                                    break;
                                case g.ItemPieceType.SuperWeaponPiece:
                                    var l = b.default.GetStarPieceIdByFragmentId(this._pieceConfig.Id, R.StarTemplePieceType.SuperWeapon);
                                    if (l) {
                                        var c = y.ConfigDataComponent.Instance.GetConfigById(f.SuperWeapon_Config, l);
                                        S.UIManager.Instance.ShowUIPanel(C.PanelConfig.SuperWeaponInfoPanel.Path, c)
                                    } else {
                                        var u = b.default.GetNewYearWeaponPieceIdByFragmentId(this._pieceConfig.Id);
                                        if (u) {
                                            var p = y.ConfigDataComponent.Instance.GetConfigById(f.NewYearWeapon_Config, u);
                                            S.UIManager.Instance.ShowUIPanel(C.PanelConfig.NewYearWeaponInfoPanel.Path, p)
                                        }
                                    }
                                    break;
                                case g.ItemPieceType.NewPersonality:
                                    var d = y.ConfigDataComponent.Instance.GetConfigById(f.NewPersonalityBase_Config, this._pieceConfig.CardId);
                                    S.UIManager.Instance.ShowUIPanel(C.PanelConfig.NewPersonalityInfoPanel.Path, d);
                                    break;
                                default:
                                    this._pieceConfig.ShowLib.length > 0 && _.UIUtlity.ShowRatePanel(this._rateData, h.ItemComponentType.ItemCommon, 1, 2, null, !0)
                            }
                            break;
                        case g.ItemType.TemplePiece:
                            var m = b.default.Instance.IsGameModuleUnlock(g.GameModuleType.StarPiece);
                            if (!m[0]) {
                                _.UIUtlity.ShowFloatingHint(m[1]);
                                break
                            }
                            var I = y.ConfigDataComponent.Instance.GetArrayConfig(f.StarPiece_Config).find(function(t) {
                                return t.ItemId == e._itemId
                            });
                            if (I) {
                                var v = {
                                    pieceId: I.Id,
                                    pieceType: R.StarTemplePieceType.General,
                                    showFullStatus: !1,
                                    isFragment: !1
                                };
                                S.UIManager.Instance.ShowUIPanel(C.PanelConfig.StarPieceInfoPanel.Path, v)
                            }
                            break;
                        case g.ItemType.ExclusiveTemplePiece:
                            var w = b.default.Instance.IsGameModuleUnlock(g.GameModuleType.StarPiece);
                            if (!w[0]) {
                                _.UIUtlity.ShowFloatingHint(w[1]);
                                break
                            }
                            var T = y.ConfigDataComponent.Instance.GetArrayConfig(f.ExclusiveWeapon_Config).find(function(t) {
                                return t.PieceId == e._itemId
                            });
                            T && (v = {
                                pieceId: T.Id,
                                pieceType: R.StarTemplePieceType.Exclusive,
                                showFullStatus: !1,
                                isFragment: !1
                            }, S.UIManager.Instance.ShowUIPanel(C.PanelConfig.StarPieceInfoPanel.Path, v));
                            break;
                        case g.ItemType.Personality:
                            var L = b.default.Instance.IsGameModuleUnlock(g.GameModuleType.Personality);
                            L[0] ? (a = y.ConfigDataComponent.Instance.GetConfigById(f.ItemPersonality_Config, this._itemId), S.UIManager.Instance.ShowUIPanel(C.PanelConfig.HeroHandbookPanel.Path, a.HeroId, null, null, !1, !0, !0, 1)) : _.UIUtlity.ShowFloatingHint(L[1]);
                            break;
                        case g.ItemType.ArtefactCard:
                            var k = y.ConfigDataComponent.Instance.GetConfigById(f.ItemArtefactCard_Config, this._itemId);
                            S.UIManager.Instance.ShowUIPanel(C.PanelConfig.ArtifactPanel.Path, [k.ArtefactId], k.ArtefactId)
                    }
                    var O = S.UIManager.Instance.GetUIPanel(C.PanelConfig.ItemInfoPanel.Path);
                    O && O.Close(), P.Game.EventDispatcher.Emit(A.EventKeys.EVENT_POWERCOREPIECE_CLOSETIP)
                }, t.prototype.OnBtnUseClick = function() {
                    switch (this.Close(), S.UIManager.Instance.CloseUIPanel(C.PanelConfig.DisplayRewardsPanel.Path), this._displayType) {
                        case g.ItemType.HeroLuckyCharm:
                            P.Game.EventDispatcher.Emit(A.EventKeys.EVENT_STUDY_LUCKYCHARM_SKILLS, this._itemId)
                    }
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.node.opacity = 0, this._item && this._item.node.destroy(), this._item = null, this.CustomLayout.Clear()
                }, t.prototype.InitCustomLayout = function() {
                    this._isCustomLayoutInit || (this._isCustomLayoutInit = !0, this.CustomLayout.Init(this._commonItemPrefab))
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = e.getComponent(h.ItemComponent);
                        o.Init(n._rateData[t].ItemData);
                        var r = n._rateData[t].ItemData.ItemId;
                        if (r) switch (y.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, r).Type) {
                            case g.ItemType.GodSoul:
                                var i = y.ConfigDataComponent.Instance.GetConfigById(f.AngelGodSoul_Config, r);
                                o.SetLeftTopTag(!0, _.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg1"), i.Level);
                                break;
                            case g.ItemType.Consume:
                                var a = y.ConfigDataComponent.Instance.GetConfigById(f.ItemConsume_Config, r);
                                if (a.SubType == g.ConsumeItemType.MainSceneBackground) {
                                    var s = a.Param[0].Items[0],
                                        l = m.DataCenter.Instance.GetDataById(T.MainSceneBackground_Model, s),
                                        c = l && l.IsPerpetual ? "item_have".ToUILocale() : "";
                                    o.SetCustomLabel(c, {
                                        color: cc.Color.GREEN
                                    })
                                }
                        }
                        n._rateData[t].Rate > 0 ? (o.Name.node.active = !0, o.Name.node.color = cc.Color.GREEN, o.Name.node.y = -88, o.Name.string = n._rateData[t].Rate + "%") : o.Name.node.active = !1
                    })
                }, t.prototype.SetItemScrollState = function(e) {
                    this.ItemTag.node.active = e, this.ScrollView.node.active = e && this._rateData.length > 0, this.ItemTag.node.active && m.DataCenter.Instance.SetTempData("BottomItemTip", this)
                }, t.prototype.OnConsumeItemClick = function(e, t) {
                    this.ItemTag.node.active && "content0x16" == t.parent.name && _.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.ConfigRecoveryInfoNode = function() {
                    this.ActivityRecoveryLayout.node.active = !1;
                    var e = b.default.Instance.ActivityRecoveryItems[this._itemId];
                    if (e) {
                        this.ActivityRecoveryLayout.node.active = !0, this.ActivityRecoveryTitle.string = "explore_remain_time".ToUILocale(), this._activityRecoveryTime = b.default.Instance.GetActivityEndTime(e.ActivityId), this.ActivityRecoveryTime.node.color = this.GREEN_COLOR, this.RefreshActivityRecoveryTime(), this.unschedule(this.RefreshActivityRecoveryTime), this.schedule(this.RefreshActivityRecoveryTime, 1);
                        for (var t = "", n = 0; n < e.TransformInfo.length; n++) {
                            var o = e.TransformInfo[n].Items[0],
                                r = e.TransformInfo[n].Items[1];
                            t += " " + o.ToItemName() + "x" + r
                        }
                        this.ActivityRecoveryDesc.string = "activityRecoveryItemHint".ToUILocale().Fmt(t)
                    }
                }, t.prototype.RefreshActivityRecoveryTime = function() {
                    var e = this._activityRecoveryTime - O.RpcComponent.Instance.ServerTime;
                    e <= 0 ? (e = 0, this.unschedule(this.RefreshActivityRecoveryTime), this.ActivityRecoveryTime.node.color = this.RED_COLOR, this.ActivityRecoveryTime.string = "activity_end".ToUILocale()) : this.ActivityRecoveryTime.string = b.default.ActivityTimeLeftFormat(e)
                }, i([N(cc.Node)], t.prototype, "MaskNode", void 0), i([N(cc.Node)], t.prototype, "ItemRoot", void 0), i([N(cc.Sprite)], t.prototype, "JobIcon", void 0), i([N(cc.Label)], t.prototype, "NameLabel", void 0), i([N(cc.Label)], t.prototype, "CountLabel", void 0), i([N(cc.Label)], t.prototype, "LimitLevel", void 0), i([N(cc.Label)], t.prototype, "Hold", void 0), i([N(I.CustomRichText)], t.prototype, "DescText", void 0), i([N(cc.ScrollView)], t.prototype, "ContentScroll", void 0), i([N(cc.Layout)], t.prototype, "ViewLayout", void 0), i([N(cc.Sprite)], t.prototype, "QualityBg", void 0), i([N(cc.Button)], t.prototype, "BtnDetail", void 0), i([N(cc.Label)], t.prototype, "DetailBtnLabel", void 0), i([N(cc.Label)], t.prototype, "TypeNameLabel", void 0), i([N(cc.Label)], t.prototype, "TypeTag", void 0), i([N(cc.Label)], t.prototype, "ScoreLabel", void 0), i([N(cc.Label)], t.prototype, "ScoreTag", void 0), i([N(cc.Layout)], t.prototype, "AttrGrid", void 0), i([N(cc.Label)], t.prototype, "AttrGridTag", void 0), i([N(cc.Node)], t.prototype, "AttrItems", void 0), i([N(cc.Sprite)], t.prototype, "AttrIcons", void 0), i([N(cc.Label)], t.prototype, "AttrNames", void 0), i([N(cc.Label)], t.prototype, "AttrValues", void 0), i([N(v.default)], t.prototype, "LocationComponent", void 0), i([N(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([N(k.default)], t.prototype, "CustomLayout", void 0), i([N(cc.Label)], t.prototype, "ItemTag", void 0), i([N(cc.Button)], t.prototype, "BtnUse", void 0), i([N(cc.Label)], t.prototype, "BtnUseLabel", void 0), i([N(cc.RichText)], t.prototype, "DescRichText", void 0), i([N(cc.Node)], t.prototype, "SkillNode", void 0), i([N(cc.Label)], t.prototype, "SkillTag", void 0), i([N(cc.Label)], t.prototype, "SkillName", void 0), i([N(cc.Label)], t.prototype, "SkillDesc", void 0), i([N(cc.Layout)], t.prototype, "ActivityRecoveryLayout", void 0), i([N(cc.Label)], t.prototype, "ActivityRecoveryTitle", void 0), i([N(cc.Label)], t.prototype, "ActivityRecoveryTime", void 0), i([N(cc.RichText)], t.prototype, "ActivityRecoveryDesc", void 0), i([B], t)
            }(c.BaseUIPanel);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent",
        "./HeroSkinPanel": "HeroSkinPanel",
        "./StarPiecePanel": "StarPiecePanel"
    }],
    ItemWithModelAttrComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "52bdfxYlstK9IVb/dm313Oj", "ItemWithModelAttrComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.AttrName = null, t.AttrValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.AttrIcon.spriteFrame = a.default.GetAttrIcon(e), this.AttrName.string = a.default.GetHeroAttributeName(e), this.AttrValue.string = a.default.GetAttrText(e, t)
                }, i([c(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([c(cc.Label)], t.prototype, "AttrName", void 0), i([c(cc.Label)], t.prototype, "AttrValue", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    ItemWithModelSkillComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e8651eW8RBE05AexB+rRFNZ", "ItemWithModelSkillComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/SkillItemComponent"),
            d = e("../../Auxiliary/DataUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SkillNode = null, t.SkillName = null, t.SkillDesc = null, t.BuffNode = null, t.BuffIcon = null, t.BuffName = null, t.BuffDesc = null, t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._skillId = e, this._skillPrefab = t, this._skillConfig = c.ConfigDataComponent.Instance.GetConfigById(l.SkillBase_Config, this._skillId), this.SetSkillInfo(), this.SetBuffInfo()
                }, t.prototype.SetSkillInfo = function() {
                    if (!this._skillComponent) {
                        var e = cc.instantiate(this._skillPrefab);
                        e.setParent(this.SkillNode), this._skillComponent = e.getComponent(p.default)
                    }
                    this._skillComponent.Init(this._skillId), this._skillComponent.CanClick = !1, this.SkillName.string = c.ConfigDataComponent.Instance.GetLocale("SkillBase_name_" + this._skillId), this.SkillDesc.string = c.ConfigDataComponent.Instance.GetLocale("SkillBase_desc_" + this._skillId)
                }, t.prototype.SetBuffInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._skillConfig.BuffDescription && 0 != this._skillConfig.BuffDescription.length ? [3, 1] : (this.BuffNode.active = !1, [3, 5]);
                                case 1:
                                    this.BuffNode.active = !0, e = this._skillConfig.BuffDescription, t = 0, n = 0, s.label = 2;
                                case 2:
                                    return n < e.length ? (o = e[n], null == (r = c.ConfigDataComponent.Instance.GetLocale("BuffDescription_name_" + o)) || "" == r ? [3, 4] : t > 0 ? [3, 5] : (t++, this.BuffName.string = c.ConfigDataComponent.Instance.GetLocale("BuffDescription_name_" + o), this.BuffDesc.string = c.ConfigDataComponent.Instance.GetLocale("BuffDescription_desc_" + o), i = d.default.GetBuffIconId(o), [4, u.AssetsManager.Instance.LoadAsset("BuffIcon/" + i, cc.SpriteFrame)])) : [3, 5];
                                case 3:
                                    if (a = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(a), [2];
                                    this.BuffIcon.spriteFrame = a, this._assets.push(a), s.label = 4;
                                case 4:
                                    return n++, [3, 2];
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Node)], t.prototype, "SkillNode", void 0), i([y(cc.Label)], t.prototype, "SkillName", void 0), i([y(cc.RichText)], t.prototype, "SkillDesc", void 0), i([y(cc.Node)], t.prototype, "BuffNode", void 0), i([y(cc.Sprite)], t.prototype, "BuffIcon", void 0), i([y(cc.RichText)], t.prototype, "BuffName", void 0), i([y(cc.RichText)], t.prototype, "BuffDesc", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Components/SkillItemComponent": "SkillItemComponent"
    }],
    ItemWithModelTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "70387FY50FK2K5W7SJQtb4J", "ItemWithModelTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/TipsLocationComponent"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/ItemComponent"),
            y = e("../../Components/Components"),
            g = e("./PetInfoTabAttr"),
            m = e("./ItemWithModelAttrComponent"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("./ItemWithModelSkillComponent"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !1), t.MaskNode = null, t.LocationComponent = null, t.TitleBGSprite = null, t.ItemNode = null, t.NameLabel = null, t.TypeLabel = null, t.AttrTitle = null, t.AttrLayout = null, t.SkillTitle = null, t.SkillLayout = null, t.DescLabel = null, t._attrNodes = [], t._skillNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemTipsPanel/Atlas/ItemTipsPanel", cc.SpriteAtlas), n = this.LoadDynamicAsset(p.BundlePath.ItemComponent), o = this.LoadDynamicAsset(p.BundlePath.SkillItemComponent), r = this.LoadDynamicAsset("ItemTipsPanel/Private/ItemWithModelAttrComponent", cc.Prefab), i = this.LoadDynamicAsset("ItemTipsPanel/Private/ItemWithModelSkillComponent", cc.Prefab), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._itemTipsAtlas = e[0], a._itemPrefab = e[1], a._skillItemPrefab = e[2], a._attrPrefab = e[3], a._skillPrefab = e[4]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrTitle.string = "equip_base_attr".ToUILocale(), this.SkillTitle.string = "itemTips_skill_info".ToUILocale(), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._itemModel = t[0], this._clickNode = t[1]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.node.opacity = 0, this.SetItemInfo(), this.SetAttrInfo(), this.SetSkillInfo(), h.default.CallBackAfterFrames(this.LocationShow.bind(this), 5, this)
                }, t.prototype.SetItemInfo = function() {
                    this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.parent = this.ItemNode);
                    var e = this._itemNode.getComponent(f.ItemComponent);
                    if (this._itemModel instanceof c.UserPet_Model) {
                        var t = y.ConfigDataComponent.Instance.GetConfigById(l.PetBase_Config, this._itemModel.Sid);
                        e.Init(this._itemModel, f.ItemComponentType.Pet), this.NameLabel.string = this._itemModel.Sid.ToPetName(), this.NameLabel.node.color = I.UIUtlity.GetLabelColorByQuality(t.Quality), this.TypeLabel.string = "miraculousEquipTipType".ToUILocale().Fmt("ChampionPreview_Toggle_6".ToUILocale()), this.TitleBGSprite.spriteFrame = this._itemTipsAtlas.getSpriteFrame("detail_quality_" + t.Quality), this.DescLabel.string = ""
                    } else if (this._itemModel instanceof c.PowerCore_Model) {
                        var n = y.ConfigDataComponent.Instance.GetConfigById(l.PowerCore_Config, this._itemModel.ItemId),
                            o = y.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, this._itemModel.ItemId);
                        e.Init({
                            ItemId: this._itemModel.ItemId,
                            StarLevel: n.Star
                        }, f.ItemComponentType.ItemWithStar), this.NameLabel.string = this._itemModel.ItemId.ToItemName(), this.NameLabel.node.color = I.UIUtlity.GetLabelColorByQuality(o.Quality), this.TypeLabel.string = "miraculousEquipTipType".ToUILocale().Fmt("itemTips_core".ToUILocale()), this.TitleBGSprite.spriteFrame = this._itemTipsAtlas.getSpriteFrame("detail_quality_" + o.Quality), this.DescLabel.string = this._itemModel.ItemId.ToItemDesc()
                    }
                }, t.prototype.SetAttrInfo = function() {
                    var e = this;
                    this._attrNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var t = [];
                    if (this._itemModel instanceof c.UserPet_Model) {
                        var n = y.ConfigDataComponent.Instance.GetConfigById(l.PetBase_Config, this._itemModel.Sid);
                        t = g.default.GetPetAttrByQuality(n.Quality, this._itemModel.Star, this._itemModel.Level)
                    } else if (this._itemModel instanceof c.PowerCore_Model)
                        for (var o = h.default.Instance.GetPowerCoreAttribute(this._itemModel.ItemId, this._itemModel.Level), r = 0; r < o.length; r += 2) {
                            var i = {};
                            i.attrId = o[r], i.attrvalue = o[r + 1], t.push(i)
                        }
                    t.forEach(function(t, n) {
                        if (!e._attrNodes[n]) {
                            var o = cc.instantiate(e._attrPrefab);
                            o.parent = e.AttrLayout, e._attrNodes[n] = o
                        }
                        e._attrNodes[n].active = !0, e._attrNodes[n].getComponent(m.default).Init(t.attrId, t.attrvalue)
                    })
                }, t.prototype.SetSkillInfo = function() {
                    var e = this;
                    this._skillNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var t = [];
                    if (this._itemModel instanceof c.UserPet_Model) g.default.GetPetSkills(this._itemModel.Sid, this._itemModel.Star).forEach(function(e) {
                        t.push(e.SkillId)
                    });
                    else if (this._itemModel instanceof c.PowerCore_Model) {
                        var n = y.ConfigDataComponent.Instance.GetConfigById(l.PowerCore_Config, this._itemModel.ItemId);
                        t = [n.Skills[1]]
                    }
                    t.forEach(function(t, n) {
                        if (!e._skillNodes[n]) {
                            var o = cc.instantiate(e._skillPrefab);
                            o.parent = e.SkillLayout, e._skillNodes[n] = o
                        }
                        e._skillNodes[n].active = !0, e._skillNodes[n].getComponent(_.default).Init(t, e._skillItemPrefab)
                    })
                }, t.prototype.LocationShow = function() {
                    this.isValid && (this.LocationComponent.RepositionPanel(this._clickNode), this.node.opacity = 255)
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this)
                }, i([b(cc.Node)], t.prototype, "MaskNode", void 0), i([b(d.default)], t.prototype, "LocationComponent", void 0), i([b(cc.Sprite)], t.prototype, "TitleBGSprite", void 0), i([b(cc.Node)], t.prototype, "ItemNode", void 0), i([b(cc.Label)], t.prototype, "NameLabel", void 0), i([b(cc.Label)], t.prototype, "TypeLabel", void 0), i([b(cc.Label)], t.prototype, "AttrTitle", void 0), i([b(cc.Node)], t.prototype, "AttrLayout", void 0), i([b(cc.Label)], t.prototype, "SkillTitle", void 0), i([b(cc.Node)], t.prototype, "SkillLayout", void 0), i([b(cc.Label)], t.prototype, "DescLabel", void 0), i([v], t)
            }(u.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent",
        "./ItemWithModelAttrComponent": "ItemWithModelAttrComponent",
        "./ItemWithModelSkillComponent": "ItemWithModelSkillComponent",
        "./PetInfoTabAttr": "PetInfoTabAttr"
    }],
    JumpActivityBtnLayout: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "287f7hWF9BEVLZYeJPRSjE/", "JumpActivityBtnLayout");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("../../RedDot/RedDotManager"),
            u = e("../Components/LoadAssetHelper"),
            p = e("./ActivityBaseContent"),
            d = e("./TimeLimitedActivityPanel"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Container = null, t.LoadAssetHelper = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._jumpActivityIds = [], this._jumpActivityParams = [], this._jumpActivityIcons = t, this._iconBtnPrefab = n, this.SetGotoBtn(e), this.BindRedDot()
                }, t.prototype.SetGotoBtn = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, c;
                        return s(this, function() {
                            for (this._activityGotoBtns || (this._activityGotoBtns = []), c = 0; c < e.length; c++) t = e[c].split(":"), n = t[0], o = t.slice(1), (r = l.DataCenter.Instance.ActivityNameMap[n]) && (this._jumpActivityIds.push(r._id), this._jumpActivityParams.push(o), (i = this._activityGotoBtns[c]) || ((i = this.NewJumpBtn()).Node.name = c.toString()), i.Node.active = !0, i.Label.string = r.Common.Title, (a = this._jumpActivityIcons[c]) && 0 != a.length && "" != a && this.LoadAssetHelper.LoadSpriteFrame(a, i.Sprite, null, c, !0));
                            for (c = this._jumpActivityIds.length; c < this._activityGotoBtns.length; c++) this._activityGotoBtns[c].Node.active = !1;
                            return [2]
                        })
                    })
                }, t.prototype.NewJumpBtn = function() {
                    var e = cc.instantiate(this._iconBtnPrefab);
                    e.setParent(this.Container), e.on("click", this.OnActivityBtnClick, this);
                    var t = {
                        Node: e,
                        Sprite: cc.find("Background", e).getComponent(cc.Sprite),
                        Label: cc.find("Background/Label", e).getComponent(cc.Label),
                        RedDotNode: {}
                    };
                    return this._activityGotoBtns.push(t), t
                }, t.prototype.OnActivityBtnClick = function(e) {
                    var t = Number.parseInt(e.node.name),
                        n = this._jumpActivityIds[t];
                    this._jumpActivityParams[t], p.default.OpenActivityPanel(n)
                }, t.prototype.BindRedDot = function() {
                    for (var e = 0; e < this._jumpActivityIds.length; e++) {
                        var t = l.DataCenter.Instance.ActivityConfigs[this._jumpActivityIds[e]];
                        if (t) {
                            var n = d.ActivityData.GetTopicActivityTypeToRedDot(t.Common.Type);
                            n && c.RedDotManager.Instance.BindInstance(this._activityGotoBtns[e].Node, n, {
                                Value1: Number(t._id)
                            })
                        }
                    }
                }, i([y(cc.Node)], t.prototype, "Container", void 0), i([y(u.default)], t.prototype, "LoadAssetHelper", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./ActivityBaseContent": "ActivityBaseContent",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    JustForTest: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "57d0fEoNqdJob5P8zhge7O+", "JustForTest");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../EZFramework/EZFramework"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.label = null, t.text = "hello", t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.EZLog.Debug("\u5df2\u542f\u7528\uff01")
                }, t.prototype.start = function() {}, i([c(cc.Label)], t.prototype, "label", void 0), i([c], t.prototype, "text", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../EZFramework/EZFramework": "EZFramework"
    }],
    KnifeTrainingEndPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1225ftQMvJN64AqWpPD9y2D", "KnifeTrainingEndPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./KnifeTrainingMainPanel"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.ScoreTitleNode = null, t.ScoreTitle = null, t.CurScore = null, t.HighestScore = null, t.RankTitleNode = null, t.RankTitle = null, t.RankLabel = null, t.RewardTitle = null, t.RewardScrollView = null, t.RewardParent = null, t.NoRewardNode = null, t.NoRewardLabel = null, t.BackBtn = null, t.BackLbl = null, t.AgainBtn = null, t.AgainLbl = null, t.BuyBtn = null, t.BuyLbl = null, t.ConsumeIcon = null, t.ChallengeCount = null, t.ChallengeLevel = null, t._itemPrefab = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ScoreTitle.string = "activityBoss_score".ToUILocale(), this.BackLbl.string = "SendLog_return".ToUILocale(), this.AgainLbl.string = "common_challenge_again".ToUILocale(), this.BuyLbl.string = "knife_buyCount".ToUILocale(), this.RankTitle.string = "activityBoss_cur_rank".ToUILocale(), this.BackBtn.node.on("click", this.OnBackClick, this), this.AgainBtn.node.on("click", this.OnAgainClick, this), this.BuyBtn.node.on("click", this.OnBuyBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._configData = t[0], this._type = t[1], this._score = t[2], this._rank = t[3]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._model = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), this.initNodes(), this.SetInfo(), this.SetReward()
                }, t.prototype.initNodes = function() {
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), this.RewardScrollView.node.active = !1, this.NoRewardNode.active = !1
                }, t.prototype.SetInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this.ScoreTitleNode.active = 1 == this._type, this.CurScore.node.active = 1 == this._type, this.HighestScore.node.active = 1 == this._type, this.RankTitleNode.active = 1 == this._type, this.RankLabel.node.active = 1 == this._type, this.ChallengeLevel.node.active = 0 == this._type, 1 == this._type ? (this.CurScore.string = this._score.toString(), e = this._model.Int2DArray && this._model.Int2DArray[1].Items && this._model.Int2DArray[1].Items[2] ? this._model.Int2DArray[1].Items[2] : 0, this.HighestScore.string = "knife_history_score".ToUILocale().Fmt(e), this.RankLabel.string = this._rank > 0 ? "SeniorArena_MyRank".ToUILocale().Fmt(this._rank) : "knife_not_on_rank".ToUILocale(), this.RewardTitle.string = "knife_challeneg_settle".ToUILocale()) : 0 == this._type && (t = this._model.Int2DArray[0] && this._model.Int2DArray[0].Items[4] > 0 ? this._model.Int2DArray[0].Items[4] : 0, this.ChallengeLevel.string = "knife_level".ToUILocale().Fmt(t), this.RewardTitle.string = "knife_common_settle".ToUILocale()), n = g.KnifeTrainingMainPanel.GetConsumeData(this._configData, this._model, this._type), this.ChallengeCount.string = "<outline color=#000000 width=2><color=#00ff00>{0}</c></o>".Fmt(n[0]), o = this._configData.CustomPart.CountItem[this._type], r = y.default.Instance.GetItemPathById(o), [4, this.LoadDynamicAsset(r, cc.SpriteFrame)];
                                case 1:
                                    return i = a.sent(), this.isValid ? (this.ConsumeIcon.spriteFrame = i, [2]) : (l.AssetsManager.Instance.UnloadAsset(i), [2])
                            }
                        })
                    })
                }, t.prototype.SetReward = function() {
                    var e = this,
                        t = [];
                    if (0 == this._type) {
                        var n = this._model.Int2DArray[0] && this._model.Int2DArray[0].Items[4] ? this._model.Int2DArray[0].Items[4] : 0;
                        (o = g.KnifeTrainingMainPanel.GetMapCountReward(n, this._configData)) && (t = o.Rewards)
                    } else if (1 == this._type) {
                        var o;
                        (o = g.KnifeTrainingMainPanel.GetRankRewardConfig(this._rank, this._configData)) && (t = o.Rewards)
                    }
                    t.length > 0 ? (this.RewardScrollView.node.active = !0, this.RewardScrollView.enabled = t.length > 5, t.forEach(function(t, n) {
                        if (!e._itemNodes[n]) {
                            var o = cc.instantiate(e._itemPrefab);
                            e._itemNodes[n] = o, o.y = -20, o.parent = e.RewardParent
                        }
                        e._itemNodes[n].active = !0, e._itemNodes[n].getComponent(d.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        }, d.ItemComponentType.ItemCommon)
                    })) : (this.NoRewardNode.active = !0, this.NoRewardLabel.string = "activityBoss_no_reward".ToUILocale())
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardParent.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, t.prototype.OnBackClick = function() {
                    l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_KNIFE_TRAIN_BACK), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnAgainClick = function() {
                    g.KnifeTrainingMainPanel.GetConsumeData(this._configData, this._model, this._type)[0] <= 0 ? f.UIUtlity.ShowFloatingHint("knife_count_limit".ToUILocale()) : (l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_KNIFE_TRAIN_REFRESH), l.UIManager.Instance.BackUIPanel())
                }, t.prototype.OnBuyBtnClick = function() {
                    var e = this._configData.Common.Pictures,
                        t = {
                            ActivityId: this._configData._id,
                            ActivityGiftPackData: this._configData._Packs,
                            Deadline: y.default.Instance.ComputeDeadTime(this._configData.Common),
                            BannerPath: e[0],
                            Title: "knife_giftpack".ToUILocale()
                        };
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.CommonGiftPackPanel.Path, t)
                }, i([_(cc.Node)], t.prototype, "ScoreTitleNode", void 0), i([_(cc.Label)], t.prototype, "ScoreTitle", void 0), i([_(cc.Label)], t.prototype, "CurScore", void 0), i([_(cc.RichText)], t.prototype, "HighestScore", void 0), i([_(cc.Node)], t.prototype, "RankTitleNode", void 0), i([_(cc.Label)], t.prototype, "RankTitle", void 0), i([_(cc.Label)], t.prototype, "RankLabel", void 0), i([_(cc.Label)], t.prototype, "RewardTitle", void 0), i([_(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([_(cc.Node)], t.prototype, "RewardParent", void 0), i([_(cc.Node)], t.prototype, "NoRewardNode", void 0), i([_(cc.Label)], t.prototype, "NoRewardLabel", void 0), i([_(cc.Button)], t.prototype, "BackBtn", void 0), i([_(cc.Label)], t.prototype, "BackLbl", void 0), i([_(cc.Button)], t.prototype, "AgainBtn", void 0), i([_(cc.Label)], t.prototype, "AgainLbl", void 0), i([_(cc.Button)], t.prototype, "BuyBtn", void 0), i([_(cc.Label)], t.prototype, "BuyLbl", void 0), i([_(cc.Sprite)], t.prototype, "ConsumeIcon", void 0), i([_(cc.RichText)], t.prototype, "ChallengeCount", void 0), i([_(cc.RichText)], t.prototype, "ChallengeLevel", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./KnifeTrainingMainPanel": "KnifeTrainingMainPanel"
    }],
    KnifeTrainingHeartComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9a438lFENVCCKTz+aBGXyS+", "KnifeTrainingHeartComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Heart2 = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.Heart2.active = !e
                }, i([l(cc.Node)], t.prototype, "Heart2", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    KnifeTrainingIronComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "58b220oUdxCd40O+39l95BE", "KnifeTrainingIronComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.IronSprite = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.IronSprite.fillStart = -(t - e.Angle / 2) / 360, this.IronSprite.fillRange = -e.Angle / 360
                }, i([l(cc.Sprite)], t.prototype, "IronSprite", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    KnifeTrainingKnifeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c7f070Lo6VA1JJd1sCmzVq+", "KnifeTrainingKnifeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = cc._decorator,
            l = s.ccclass,
            c = (s.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._tag = a.RpcComponent.Instance.ServerTime
                }, t.prototype.SetAngleTween = function(e) {
                    cc.tween(this.node).tag(this._tag).by(.1, {
                        angle: e
                    }).repeatForever().start()
                }, t.prototype.StopAngleTween = function() {
                    cc.Tween.stopAllByTag(this._tag)
                }, t.prototype.onDestroy = function() {
                    cc.Tween.stopAllByTag(this._tag)
                }, i([l], t)
            }(cc.Component));
        n.default = c, cc._RF.pop()
    }, {
        "../../Components/Components": "Components"
    }],
    KnifeTrainingMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "762f1uqjFFGb4P+zu5NazIL", "KnifeTrainingMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.KnifeTrainingMainPanel = void 0;
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/SmallRankListComponent"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../Consts/Etc"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/ItemComponent"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../Components/CurrencyBarItem"),
            v = e("../../Auxiliary/GameRecord"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Bg = null, t.Bgs = [], t.RuleButton = null, t.TitleLabel = null, t.TimeDesc = null, t.TimeLabel = null, t.CurrencyBarItem = null, t.Toggles = [], t.ToggleLabels = [], t.SmallRankListComponent = null, t.TaskButton = null, t.TaskLabel = null, t.GiftButton = null, t.GiftLabel = null, t.HeroNode = null, t.DescLabel = null, t.ChallengeButton = null, t.ChallengeLabel = null, t.CantChallengeButton = null, t.CantChallengeLabel = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.RewardCount = null, t.ConsumeIcon = null, t.ChallengeCount = null, t.CommonNode = null, t.LevelNode = null, t.ScoreRichText = null, t.RankRerwardTitle = null, t.RankLabel = null, t.RewardScrollView = null, t.RewardNode = null, t.NoRankDesc = null, t.PreviewButton = null, t.BottomDescLabel = null, t.ReturnButton = null, t._itemNodes = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.TaskLabel.string = "btn_task".ToUILocale(), this.DescLabel.string = "knife_desc".ToUILocale(), this.ChallengeLabel.string = "activityBoss_challenge".ToUILocale(), this.CantChallengeLabel.string = "activityBoss_challenge".ToUILocale();
                    var n = ["knife_common".ToUILocale(), "knife_challenge".ToUILocale()];
                    this.GiftLabel.string = "knife_giftpack".ToUILocale(), this.ReceiveLabel.string = "receive".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.PreviewButton.node.on("click", this.OnPreviewButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this), this.ToggleLabels.forEach(function(e, t) {
                        var o = Math.floor(t / 2);
                        n[o] && (e.string = n[o])
                    }), this.Toggles.forEach(function(e) {
                        e.node.on("toggle", t.ClickToggle, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._activityConfig = c.DataCenter.Instance.ActivityConfigs[n], t[1] ? this._toggleIndex = t[1] : this._toggleIndex = 0, this._deadLine = d.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common), this.TitleLabel.string = this._activityConfig.Common.Title
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isRedisplay = t, this._model = c.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityConfig._id), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetActivityTime(), this.SetCurrencyBarItem(), this.SetBg(), this.SetRankList(), this.SetCommonNode(), this.SetHeroAvator(), this.SetNodeActive(), this.SetReddotNode()
                }, t.prototype.SetCurrencyBarItem = function() {
                    var e = n.GetConsumeData(this._activityConfig, this._model, this._toggleIndex);
                    this.CurrencyBarItem.Init(this._activityConfig.CustomPart.CountItem[this._toggleIndex], !1, e[0], e[1]), this.CurrencyBarItem.SetFixedWidth(200), this.CurrencyBarItem.SetClickCallBack(this.OnGiftButtonClick.bind(this))
                }, t.GetConsumeData = function(e, t, n) {
                    var o = e.CustomPart.CountItem[n],
                        r = e.CustomPart.FreeCount[n],
                        i = t.Int2DArray[n] && t.Int2DArray[n].Items[1] ? t.Int2DArray[n].Items[1] : 0,
                        a = r - i > 0 ? r - i : 0;
                    return [c.DataCenter.Instance.GetItemCount(o) + a, r]
                }, t.prototype.SetActivityTime = function() {
                    this._isRedisplay || (this.CountDownActivityTime(), this.schedule(this.CountDownActivityTime, 1))
                }, t.prototype.CountDownActivityTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    if (t < 0) this.unschedule(this.CountDownActivityTime), u.UIManager.Instance.BackUIPanel();
                    else {
                        this.TimeDesc.string = t > this._activityConfig.Common.ExtraShowDays * y.Etc.DayDuration ? "activityBoss_remain_time".ToUILocale() : "activityBoss_show_time".ToUILocale();
                        var n = t > this._activityConfig.Common.ExtraShowDays * y.Etc.DayDuration ? t - this._activityConfig.Common.ExtraShowDays * y.Etc.DayDuration : t;
                        this.TimeLabel.string = d.default.ActivityTimeLeftFormat(n)
                    }
                }, t.prototype.SetBg = function() {
                    this.Bg.spriteFrame = this.Bgs[this._toggleIndex]
                }, t.prototype.SetRankList = function() {
                    var e = this;
                    if (1 == this._toggleIndex) {
                        var t = new l.Req_Activity_GetRank;
                        t.ActivityId = this._activityConfig._id, c.RpcComponent.Instance.Call(t, function(t) {
                            e._rankData = t, e.SmallRankListComponent.InitUIForActivity(e._activityConfig._id, "holyArea_rank".ToUILocale(), function() {
                                var t = new l.Req_Activity_GetRank;
                                t.ActivityId = e._activityConfig._id, c.RpcComponent.Instance.Call(t, function(t) {
                                    e._rankData = t;
                                    var n = {};
                                    n.ActivityId = e._activityConfig._id, n.Title = "bossWar_rank_name".ToUILocale().Fmt(e._activityConfig.Common.Title), n.RankDatas = [t];
                                    var o = [];
                                    e._activityConfig._RankRewards.forEach(function(e) {
                                        var t = {};
                                        t.Id = e.Id, t.Ranks = e.Rank, t.Rewards = e.Rewards, o.push(t)
                                    }), n.RewardDatas = o, u.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonActivityRankPanel.Path, n)
                                })
                            }, t), e.SetRankReward()
                        })
                    } else {
                        this.NoRankDesc.node.active = !1, this.RewardNode.active = !1, this.NoRankDesc.string = "knife_no_reward_desc".ToUILocale(), this.RankRerwardTitle.string = "reward".ToUILocale();
                        var o = this._model.Int2DArray[0] && this._model.Int2DArray[0].Items[4] ? this._model.Int2DArray[0].Items[4] : 0;
                        this.ScoreRichText.string = "knife_challenge_level".ToUILocale().Fmt(o);
                        var r = n.GetMapCountReward(o, this._activityConfig);
                        r ? (this.RewardNode.active = !0, this.SetRewardNode(r.Rewards), this.RewardScrollView.enabled = r.Rewards.length > 4) : this.NoRankDesc.node.active = !0
                    }
                }, t.prototype.SetRankReward = function() {
                    if (this.NoRankDesc.node.active = !1, this.RewardNode.active = !1, this.NoRankDesc.string = "knife_no_reward".ToUILocale(), this.RankRerwardTitle.string = "allianceWar_server_reward".ToUILocale(), (this._model.Int2DArray[1] && this._model.Int2DArray[1].Items[0] ? this._model.Int2DArray[1].Items[0] : 0) > 0) {
                        var e = this._rankData && this._rankData.MyRankData && this._rankData.MyRankData.Value > 0 ? this._rankData.MyRankData.Value : 0;
                        if (this.ScoreRichText.string = "knife_highest_score".ToUILocale().Fmt(e), this._rankData && this._rankData.MyRank > 0) {
                            var t = n.GetRankRewardConfig(this._rankData.MyRank, this._activityConfig);
                            t && (this.RankLabel.string = "SeniorArena_MyRank".ToUILocale().Fmt(this._rankData.MyRank), this.RewardNode.active = !0, this.SetRewardNode(t.Rewards), this.RewardScrollView.enabled = t.Rewards.length > 4)
                        } else this.RankLabel.string = "knife_not_on_rank".ToUILocale(), this.NoRankDesc.node.active = !0
                    } else this.ScoreRichText.string = "knife_not_challenge".ToUILocale(), this.RankLabel.string = "", this.NoRankDesc.node.active = !0
                }, t.GetRankRewardConfig = function(e, t) {
                    for (var n, o = 0; o < t._RankRewards.length; o++) {
                        var r = t._RankRewards[o];
                        if (0 == r.Rank[1]) {
                            if (e >= r.Rank[0]) {
                                n = r;
                                break
                            }
                        } else if (e >= r.Rank[0] && e <= r.Rank[1]) {
                            n = r;
                            break
                        }
                    }
                    return n
                }, t.prototype.SetRewardNode = function(e) {
                    var t = this;
                    this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), e.forEach(function(e, n) {
                        if (!t._itemNodes[n]) {
                            var o = cc.instantiate(t._itemPrefab);
                            o.parent = t.RewardNode, t._itemNodes[n] = o
                        }
                        t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(m.ItemComponent).Init({
                            ItemId: e.Items[0],
                            Count: e.Items[1]
                        })
                    })
                }, t.GetMapCountReward = function(e, t) {
                    for (var n, o = t.ScoreRewards.length - 1; o >= 0; o--)
                        if (e >= t.ScoreRewards[o].Score) {
                            n = t.ScoreRewards[o];
                            break
                        } return n
                }, t.prototype.SetCommonNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = this._model.IntValue || 0, t = this._activityConfig.CustomPart.RewardCount - e > 0 ? this._activityConfig.CustomPart.RewardCount - e : 0, this.RewardCount.string = "knife_daily_count".ToUILocale().Fmt(t, this._activityConfig.CustomPart.RewardCount), o = n.GetConsumeData(this._activityConfig, this._model, 0), this.ChallengeCount.string = "<outline color=#000000 width=2><color=#00ff00>{0}</c></o>".Fmt(o[0]), r = this._activityConfig.CustomPart.CountItem[this._toggleIndex], i = d.default.Instance.GetItemPathById(r), [4, this.LoadDynamicAsset(i, cc.SpriteFrame)];
                                case 1:
                                    return a = s.sent(), this.isValid ? (this.ConsumeIcon.spriteFrame = a, [2]) : (u.AssetsManager.Instance.UnloadAsset(a), [2])
                            }
                        })
                    })
                }, t.prototype.SetHeroAvator = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = [], this._activityConfig.CustomPart.ShowId[this._toggleIndex].Items.forEach(function(t) {
                                        e.push(t)
                                    }), t = d.default.GetActivityModelPath(e), this._heroPrefab && (u.AssetsManager.Instance.UnloadAsset(this._heroPrefab), this._heroPrefab = null), t ? (this.HeroNode.destroyAllChildren(), n = this, [4, u.AssetsManager.Instance.LoadAsset(t, cc.Prefab)]) : [3, 2];
                                case 1:
                                    if (n._heroPrefab = o.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._heroPrefab), [2];
                                    cc.instantiate(this._heroPrefab).parent = this.HeroNode, o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetNodeActive = function() {
                    var e = d.default.Instance.ComputeDeadTime(this._activityConfig.Common);
                    this.SmallRankListComponent.node.active = 1 == this._toggleIndex, this.CommonNode.active = 0 == this._toggleIndex, this.ChallengeButton.node.active = c.RpcComponent.Instance.ServerTime < e, this.CantChallengeButton.node.active = c.RpcComponent.Instance.ServerTime >= e, this.BottomDescLabel.string = c.RpcComponent.Instance.ServerTime < e ? "knife_reward_in_end".ToUILocale() : "activity_end".ToUILocale(), this.BottomDescLabel.node.active = 1 == this._toggleIndex, this.LevelNode.active = 1 == this._toggleIndex, this.ChallengeButton.node.x = 0 == this._toggleIndex ? 230 : 0, this.CantChallengeButton.node.x = 0 == this._toggleIndex ? 230 : 0, this.RewardScrollView.node.x = 0 == this._toggleIndex ? 0 : 34
                }, t.prototype.SetReddotNode = function() {
                    I.RedDotManager.Instance.BindInstance(this.ReceiveButton.node, I.RedDotManager.Instance.InstanceRedDot.KnifeTrainReceiveBtn, {
                        Value1: this._activityConfig._id
                    }, 15, 10), I.RedDotManager.Instance.BindInstance(this.Toggles[0].node, I.RedDotManager.Instance.InstanceRedDot.KnifeTrainToggle1, {
                        Value1: this._activityConfig._id
                    }, 15, 10), I.RedDotManager.Instance.BindInstance(this.TaskButton.node, I.RedDotManager.Instance.InstanceRedDot.KnifeTrainTask, {
                        Value1: this._activityConfig._id
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "knife_rule_title".ToUILocale(),
                        titles: ["knife_rule_sub_title".ToUILocale()],
                        contents: ["knife_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = [],
                        t = [];
                    this._activityConfig._Tasks.forEach(function(n) {
                        n.IsDaily ? e.push(n) : t.push(n)
                    });
                    var n = {
                        IsActivity: !0
                    };
                    n.Title = "knife_daily_task".ToUILocale(), n.Tasks = e, n.ActivityId = this._activityConfig._id, n.Reddot = I.RedDotManager.Instance.InstanceRedDot.ActivityBossTaskDailyNode;
                    var o = {
                        IsActivity: !0
                    };
                    o.Title = "knife_total_task".ToUILocale(), o.Tasks = t, o.ActivityId = this._activityConfig._id, o.Reddot = I.RedDotManager.Instance.InstanceRedDot.ActivityBossTaskPeriodNode, u.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonTaskPanel.Path, [n, o])
                }, t.prototype.OnPreviewButtonClick = function() {
                    if (0 == this._toggleIndex) {
                        var e = {
                            Rewards: this._activityConfig.ScoreRewards.map(function(e) {
                                var t = new l.HappyTurn_Reward;
                                return t.Id = e.Id, t.Score = e.Score, t.Rewards = e.Rewards, t
                            })
                        };
                        u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HappyTurnPreviewPanel.Path, e, h.ActivityType.KnifeTraining)
                    } else {
                        e = {};
                        var t = [];
                        this._activityConfig._RankRewards.forEach(function(e) {
                            var n = {};
                            n.Id = e.Id, n.Ranks = e.Rank, n.Rewards = e.Rewards, t.push(n)
                        }), e.MyRank = this._rankData && this._rankData.MyRank > 0 ? this._rankData.MyRank : 0, e.Data = t, e.IsInRank = !!(this._rankData && this._rankData.MyRank > 0), u.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonRankRewardPanel.Path, e)
                    }
                }, t.prototype.OnChallengeButtonClick = function() {
                    var e = this;
                    if (!d.default.CheckActivityIsEnd(this._activityConfig.Common, !0)) {
                        if (n.GetConsumeData(this._activityConfig, this._model, this._toggleIndex)[0] <= 0) return this.OnGiftButtonClick(), void f.UIUtlity.ShowFloatingHint("knife_count_limit".ToUILocale());
                        var t = new l.Req_Activity_KnifeTrainingPlay;
                        t.ActivityId = this._activityConfig._id, t.Mode = this._toggleIndex + 1, t.Type = 1, t.StartTime = c.RpcComponent.Instance.ServerTime, c.RpcComponent.Instance.Call(t, function(t) {
                            u.UIManager.Instance.ShowUIPanel(g.PanelConfig.KnifeTrainingPanel.Path, e._toggleIndex, e._activityConfig, t.NextMapId, t.Hp)
                        })
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._toggleIndex != t && (this._toggleIndex = t, this.SetUIContent())
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.OnGiftButtonClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: d.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[0],
                            Title: "knife_giftpack".ToUILocale()
                        };
                    u.UIManager.Instance.ShowUIPanel(g.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = this,
                        t = d.default.Instance.ComputeDeadTime(this._activityConfig.Common);
                    if (c.RpcComponent.Instance.ServerTime >= t) f.UIUtlity.ShowFloatingHint("activity_end".ToUILocale());
                    else if ((this._model.IntValue || 0) >= this._activityConfig.CustomPart.RewardCount) f.UIUtlity.ShowFloatingHint("knife_no_receive_count".ToUILocale());
                    else if ((this._model.Int2DArray[0] && this._model.Int2DArray[0].Items[4] ? this._model.Int2DArray[0].Items[4] : 0) < this._activityConfig.ScoreRewards[0].Score) f.UIUtlity.ShowFloatingHint("knife_level_limit".ToUILocale().Fmt(this._activityConfig.ScoreRewards[0].Score));
                    else {
                        var o = n.GetMaxMap(this._toggleIndex, this._activityConfig);
                        if (n.GetConsumeData(this._activityConfig, this._model, this._toggleIndex)[0] > 0 && (this._model.Int2DArray[this._toggleIndex] && this._model.Int2DArray[this._toggleIndex].Items[4] ? this._model.Int2DArray[this._toggleIndex].Items[4] : 0) < o) return void(v.default.GetItem(v.GameRecordDefine.KnifeRwardReceiveCheck) ? this.RequestReceiveReward() : f.UIUtlity.ShowHintPanel("", "knife_receive_check".ToUILocale(), "", null, "", function() {
                            e.RequestReceiveReward()
                        }, null, v.GameRecordDefine.KnifeRwardReceiveCheck));
                        this.RequestReceiveReward()
                    }
                }, t.prototype.RequestReceiveReward = function() {
                    var e = new l.Req_Activity_KnifeTrainingRewards;
                    e.ActivityId = this._activityConfig._id, c.RpcComponent.Instance.Call(e, function(e) {
                        f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.GetMaxMap = function(e, t) {
                    var n = 0,
                        o = {};
                    t.__Maps.forEach(function(e) {
                        o[e.Id] = e
                    });
                    for (var r = 0; r < t.CustomPart.Maps[e].Items.length; r++) {
                        var i = t.CustomPart.Maps[e].Items[r];
                        o[i] && o[i].IsLoop && n++
                    }
                    return t.CustomPart.Maps[e].Items.length + n * t.CustomPart.LoopCount[e]
                }, i([w(cc.Sprite)], t.prototype, "Bg", void 0), i([w(cc.SpriteFrame)], t.prototype, "Bgs", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.Label)], t.prototype, "TitleLabel", void 0), i([w(cc.Label)], t.prototype, "TimeDesc", void 0), i([w(cc.Label)], t.prototype, "TimeLabel", void 0), i([w(C.default)], t.prototype, "CurrencyBarItem", void 0), i([w(cc.Toggle)], t.prototype, "Toggles", void 0), i([w(cc.Label)], t.prototype, "ToggleLabels", void 0), i([w(p.default)], t.prototype, "SmallRankListComponent", void 0), i([w(cc.Button)], t.prototype, "TaskButton", void 0), i([w(cc.Label)], t.prototype, "TaskLabel", void 0), i([w(cc.Button)], t.prototype, "GiftButton", void 0), i([w(cc.Label)], t.prototype, "GiftLabel", void 0), i([w(cc.Node)], t.prototype, "HeroNode", void 0), i([w(cc.Label)], t.prototype, "DescLabel", void 0), i([w(cc.Button)], t.prototype, "ChallengeButton", void 0), i([w(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([w(cc.Button)], t.prototype, "CantChallengeButton", void 0), i([w(cc.Label)], t.prototype, "CantChallengeLabel", void 0), i([w(cc.Button)], t.prototype, "ReceiveButton", void 0), i([w(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([w(cc.RichText)], t.prototype, "RewardCount", void 0), i([w(cc.Sprite)], t.prototype, "ConsumeIcon", void 0), i([w(cc.RichText)], t.prototype, "ChallengeCount", void 0), i([w(cc.Node)], t.prototype, "CommonNode", void 0), i([w(cc.Node)], t.prototype, "LevelNode", void 0), i([w(cc.RichText)], t.prototype, "ScoreRichText", void 0), i([w(cc.Label)], t.prototype, "RankRerwardTitle", void 0), i([w(cc.Label)], t.prototype, "RankLabel", void 0), i([w(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([w(cc.Node)], t.prototype, "RewardNode", void 0), i([w(cc.Label)], t.prototype, "NoRankDesc", void 0), i([w(cc.Button)], t.prototype, "PreviewButton", void 0), i([w(cc.Label)], t.prototype, "BottomDescLabel", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), n = i([S], t)
            }(u.BaseUIFullScreenPanel);
        n.KnifeTrainingMainPanel = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/SmallRankListComponent": "SmallRankListComponent"
    }],
    KnifeTrainingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2f1e4umgv5F7rru/XU/JEQJ", "KnifeTrainingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.KnifeTrainingPanel = void 0;
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("./KnifeTrainingKnifeComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("./FreeFallComponent"),
            f = e("./KnifeTrainingHeartComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./KnifeTrainingIronComponent"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../Battle/BattleManager"),
            _ = e("./KnifeTrainingMainPanel"),
            C = e("../../Auxiliary/DataUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Bg = null, t.Bgs = [], t.TitleLabel = null, t.LevelRichText = null, t.ScoreRichText = null, t.HeartContent = null, t.ScoreDescLabel = null, t.ScoreLabel = null, t.BlowKnifeNode = null, t.TargetNode = null, t.KnifeNode = null, t.CompleteTargetSprite = null, t.BrokenTargetNode = null, t.BrokenTargetTargetSprite1 = null, t.BrokenTargetTargetSprite2 = null, t.BrokenTargetTargetSprite3 = null, t.IronTargetNode = null, t.SendKnife = null, t.ReturnButton = null, t._isStart = !1, t._knifeNodes = [], t._blowknifeNode = [], t._heartNodes = [], t._ironNodes = [], t._brokenTargetNodes = [], t._curKnifeAngles = [], t._cantInputRange = [], t._defaultBrokenAngles = [], t._isRequestNext = !1, t.InitTurntableWidth = 452, t.InitIronWidth = 504, t.InitSendKnifeY = -174, t.InputKnifeLength = 35, t.PerKnifeScore = 10, t.TurntableInitY = 400, t.TurntableShakeY = 440, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(d.EventKeys.EVENT_FREE_FALL_REFRESH, this.AddBlowknifeNode, this), u.Game.EventDispatcher.On(d.EventKeys.EVENT_KNIFE_TRAIN_BACK, this.ClosePanel, this), u.Game.EventDispatcher.On(d.EventKeys.EVENT_KNIFE_TRAIN_REFRESH, this.OnNextMapRefresh, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(d.EventKeys.EVENT_FREE_FALL_REFRESH, this.AddBlowknifeNode, this), u.Game.EventDispatcher.Off(d.EventKeys.EVENT_KNIFE_TRAIN_BACK, this.ClosePanel, this), u.Game.EventDispatcher.Off(d.EventKeys.EVENT_KNIFE_TRAIN_REFRESH, this.OnNextMapRefresh, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("KnifeTrainingPanel/Component/KnifeTrainingHeartComponent", cc.Prefab), this.LoadDynamicAsset("KnifeTrainingPanel/Component/KnifeTrainingIronComponent", cc.Prefab), this.LoadDynamicAsset("KnifeTrainingPanel/Component/KnifeTrainingKnifeComponent", cc.Prefab), this.LoadDynamicAsset("KnifeTrainingPanel/PNG/KnifeTraining", cc.SpriteAtlas)]).then(function(e) {
                                        t._heartPrefab = e[0], t._ironPrefab = e[1], t._knifePrefab = e[2], t._atlas = e[3]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ScoreDescLabel.string = "knife_target".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnClick, this), this.Bg.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this);
                    var t = this.node.getBoundingBoxToWorld();
                    this._nodeViewRect = new cc.Rect(t.x, t.y, this.node.width, this.node.height)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._type = t[0], this._activityConfig = t[1], this._curLevelId = t[2], this._curHp = t[3], this.Bg.spriteFrame = this.Bgs[this._type], this.TitleLabel.string = this._activityConfig.Common.Title, this._brokenTargetNodes = [this.BrokenTargetTargetSprite1.node, this.BrokenTargetTargetSprite2.node, this.BrokenTargetTargetSprite3.node], this.SetBrokenTargetDefaultAngle()
                }, t.prototype.SetBrokenTargetDefaultAngle = function() {
                    var e = this;
                    this._defaultBrokenAngles = [], this._brokenTargetNodes.forEach(function(t) {
                        var n = t.getComponent(cc.Sprite),
                            o = 360 * (n.fillStart + n.fillRange / 2);
                        e._defaultBrokenAngles.push(o)
                    })
                }, t.prototype.update = function(e) {
                    this._isStart && (this.TargetNode.angle -= e / 1 * this._curMap.DiscSpeed)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), I.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !1, u.Game.EventDispatcher.Emit(d.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, I.BattleManager.Instance.ActivityCanShowBattleSettlePanel && I.BattleManager.Instance.CanShowBattleSettlePanel), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    var e = this;
                    this._model = c.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityConfig._id), this._curMap = this._activityConfig.__Maps.find(function(t) {
                        return t.Id == e._curLevelId
                    }), this._curMap && (this.InitLevelData(), this.SetTargetBg(), this.LevelInfo(), this.SetCurScore(), this.SetHeartNodes(), this.SetIronNodes())
                }, t.prototype.InitLevelData = function() {
                    var e = this;
                    this.TargetNode.y = this.TurntableInitY, this.TargetNode.angle = 360 * -Math.random(), this.CompleteTargetSprite.node.width = this.BlowKnifeNode.width = 2 * this._curMap.DiscRadius, this.CompleteTargetSprite.node.height = this.BlowKnifeNode.height = 2 * this._curMap.DiscRadius, this._curKnifeY = this.TargetNode.y - this._curMap.DiscRadius + this.InputKnifeLength, this._collisionAngle = 360 * this._activityConfig.CustomPart.KnifeAngle / (2 * this._curMap.DiscRadius * Math.PI), this._curKnifeAngles = [], this._isRequestNext = !1, this.SetCantInputRangeData(), this.CompleteTargetSprite.node.active = !0, this.BrokenTargetNode.active = !1, this._brokenTargetNodes.forEach(function(t) {
                        t.parent = e.BrokenTargetNode, t.setPosition(0, 0), t.angle = 0, t.getComponent(p.default).StopAngleTween(), t.getComponent(h.default).InitStatus(!1, 255)
                    }), this._knifeNodes.forEach(function(e) {
                        e.active = !1, e.getComponent(p.default).StopAngleTween(), e.getComponent(h.default).InitStatus(!1, 255)
                    }), this._isStart = !0, this._canFlyKnife = !0
                }, t.prototype.SetCantInputRangeData = function() {
                    var e = this;
                    this._cantInputRange = [], this._curMap.Props.length > 0 && this._curMap.Props.forEach(function(t) {
                        var n = e._activityConfig.__Props[t.Items[0] - 1];
                        if (n && 2 == n.Type) {
                            var o = -t.Items[1] + n.Angle / 2 + e._collisionAngle / 2,
                                r = -t.Items[1] - n.Angle / 2 - e._collisionAngle / 2;
                            o > 0 ? e._cantInputRange.push([0, r], [-(360 - o), -360]) : r < -360 ? e._cantInputRange.push([o, -360], [0, r % 360]) : e._cantInputRange.push([o, r])
                        }
                    })
                }, t.prototype.SetTargetBg = function() {
                    var e = Number.parseInt(this._curMap.DiscBg);
                    this.CompleteTargetSprite.spriteFrame = this._atlas.getSpriteFrame("bg" + e), this.BrokenTargetTargetSprite1.spriteFrame = this._atlas.getSpriteFrame("bg" + e), this.BrokenTargetTargetSprite2.spriteFrame = this._atlas.getSpriteFrame("bg" + e), this.BrokenTargetTargetSprite3.spriteFrame = this._atlas.getSpriteFrame("bg" + e)
                }, t.prototype.LevelInfo = function() {
                    var e = this._model.IntArray[4] || 0,
                        t = _.KnifeTrainingMainPanel.GetMaxMap(this._type, this._activityConfig),
                        n = e + 1 > t ? t : e + 1;
                    this.LevelRichText.string = "knife_map".ToUILocale().Fmt(n)
                }, t.prototype.SetCurScore = function() {
                    var e = 0;
                    this._model && this._model.IntArray[1] == this._type + 1 && (e = this._model.IntArray[2]), this.ScoreLabel.string = (this._curMap.Count - this._curKnifeAngles.length).toString(), this.ScoreRichText.string = "knife_cur_score".ToUILocale().Fmt(e + this._curKnifeAngles.length * this.PerKnifeScore)
                }, t.prototype.SetHeartNodes = function() {
                    this._heartNodes.forEach(function(e) {
                        e.active = !1
                    });
                    for (var e = this._activityConfig.CustomPart.Hp[this._type], t = 0; t < e; t++) {
                        if (!this._heartNodes[t]) {
                            var n = cc.instantiate(this._heartPrefab);
                            n.parent = this.HeartContent, this._heartNodes[t] = n
                        }
                        this._heartNodes[t].active = !0, this._heartNodes[t].getComponent(f.default).Init(t < this._curHp)
                    }
                }, t.prototype.SetIronNodes = function() {
                    var e = this;
                    this._ironNodes.forEach(function(e) {
                        e.active = !1
                    }), this._curMap.Props.length > 0 && (this.IronTargetNode.active = !0, this._curMap.Props.forEach(function(t, n) {
                        if (!e._ironNodes[n]) {
                            var o = cc.instantiate(e._ironPrefab);
                            o.parent = e.IronTargetNode, e._ironNodes[n] = o
                        }
                        e._ironNodes[n].active = !0;
                        var r = e._activityConfig.__Props[t.Items[0] - 1];
                        2 == r.Type && e._ironNodes[n].getComponent(g.default).Init(r, t.Items[1])
                    }))
                }, t.prototype.ChckCanInput = function(e) {
                    var t = 0;
                    if (this._curHp <= 0) return [!1, t];
                    var n = (-(360 - Math.abs(e)) - 90) % 360;
                    if (this._cantInputRange.length > 0)
                        for (var o = 0; o < this._cantInputRange.length; o++) {
                            var r = this._cantInputRange[o];
                            if (n >= r[1] && n <= r[0]) return [!1, t = 1]
                        }
                    if (0 == this._curKnifeAngles.length) return this._curKnifeAngles.push(n), [!0, t];
                    for (o = 0; o < this._curKnifeAngles.length; o++)
                        if ((Math.abs(this._curKnifeAngles[o] - n) < 180 ? Math.abs(this._curKnifeAngles[o] - n) : 360 - Math.abs(this._curKnifeAngles[o] - n)) < this._collisionAngle) return [!1, t];
                    return this._curKnifeAngles.push(n), [!0, t]
                }, t.prototype.SetTurntableShake = function() {
                    cc.tween(this.TargetNode).to(.05, {
                        y: this.TurntableShakeY
                    }).to(.05, {
                        y: this.TurntableInitY
                    }).start()
                }, t.prototype.CreateInputKnife = function(e) {
                    if (!this._knifeNodes[this._curKnifeAngles.length - 1]) {
                        var t = cc.instantiate(this._knifePrefab);
                        t.name = "KnifeTrainingInputKnife", this._knifeNodes[this._curKnifeAngles.length - 1] = t
                    }
                    var n = this._curMap.DiscRadius + this._knifeNodes[this._curKnifeAngles.length - 1].height / 2 - this.InputKnifeLength;
                    this._knifeNodes[this._curKnifeAngles.length - 1].parent = this.KnifeNode, this._knifeNodes[this._curKnifeAngles.length - 1].active = !0, this._knifeNodes[this._curKnifeAngles.length - 1].opacity = 255, this._knifeNodes[this._curKnifeAngles.length - 1].angle = -e, this._knifeNodes[this._curKnifeAngles.length - 1].x = 0 + n * Math.cos((-e - 90) * Math.PI / 180), this._knifeNodes[this._curKnifeAngles.length - 1].y = 0 + n * Math.sin((-e - 90) * Math.PI / 180)
                }, t.prototype.SetFailKnife = function(e) {
                    var t = this._blowknifeNode.shift();
                    t || ((t = cc.instantiate(this._knifePrefab)).parent = this.BlowKnifeNode), t.opacity = 255, t.angle = 0, t.x = 0, t.y = -this.BlowKnifeNode.height / 2 - t.height / 2 + this.InputKnifeLength;
                    var n = {
                        G: -3200
                    };
                    0 == e ? (n.Speed = 400, n.Angle = -180) : (n.Speed = 0, n.Angle = -90);
                    var o = t.getComponent(p.default),
                        r = t.getComponent(h.default);
                    o.SetAngleTween(50), r.Init(n, this._nodeViewRect)
                }, t.prototype.AddBlowknifeNode = function(e) {
                    var t = e.getComponent(p.default);
                    t && t.StopAngleTween(), "KnifeTrainingKnifeComponent" == e.name && this._blowknifeNode.push(e)
                }, t.prototype.FlyKnife = function() {
                    var e = this;
                    if (this._canFlyKnife) {
                        this._canFlyKnife = !1;
                        var t = Math.abs(this._curKnifeY - this.InitSendKnifeY) / this._activityConfig.CustomPart.KnifeSpeed,
                            n = t < this._activityConfig.CustomPart.KnifeInterval / 1e3 ? this._activityConfig.CustomPart.KnifeInterval / 1e3 : t;
                        cc.tween(this.SendKnife).to(n / 2, {
                            y: this._curKnifeY
                        }).call(function() {
                            var t = e.TargetNode.angle % 360,
                                n = e.ChckCanInput(t);
                            n[0] ? (e.CreateInputKnife(t), e.SetCurScore(), e._curKnifeAngles.length >= e._curMap.Count ? e.SetNextLevel() : e.SetTurntableShake()) : (e._curHp--, e.SetFailKnife(n[1]), e.SetHeartNodes(), e._curHp <= 0 && e.SetGameSettle())
                        }).to(n / 2, {
                            y: this.InitSendKnifeY
                        }).call(function() {
                            e._isStart && (e._canFlyKnife = !0)
                        }).start()
                    }
                }, t.prototype.SetNextLevel = function() {
                    var e = this;
                    C.default.CheckActivityIsEnd(this._activityConfig.Common, !0) ? this.ClosePanel() : (this._isStart = !1, this._canFlyKnife = !1, this.IronTargetNode.active = !1, this._isRequestNext = !0, this.SetTurntableBroken(), this.SetKnifeBroken(), this.scheduleOnce(function() {
                        var t = new l.Req_Activity_KnifeTrainingPlay;
                        t.ActivityId = e._activityConfig._id, t.Mode = e._type + 1, t.Type = 2, t.MapId = e._curLevelId, t.Count = e._curKnifeAngles.length, t.Hp = e._curHp, t.Props = [], t.StartTime = c.RpcComponent.Instance.ServerTime, c.RpcComponent.Instance.Call(t, function(t) {
                            t.NextMapId > 0 ? (e._curLevelId = t.NextMapId, e._curHp = t.Hp, e.SetUIContent()) : u.UIManager.Instance.ShowUIPanel(m.PanelConfig.KnifeTrainingEndPanel.Path, e._activityConfig, e._type, t.Score, t.MyRank)
                        }, function() {
                            e.ClosePanel()
                        })
                    }, 1))
                }, t.prototype.SetTurntableBroken = function() {
                    var e = this;
                    this.CompleteTargetSprite.node.active = !1;
                    var t = this.BrokenTargetTargetSprite1.node.getParent().convertToWorldSpaceAR(this.BrokenTargetTargetSprite1.node.getPosition()),
                        n = this.BlowKnifeNode.convertToNodeSpaceAR(t);
                    this._brokenTargetNodes.forEach(function(t, o) {
                        t.parent = e.BlowKnifeNode, t.setPosition(n);
                        var r = e._defaultBrokenAngles[o] + e.TargetNode.angle,
                            i = 300 * Math.sin((r - 90) * Math.PI / 180),
                            a = 360 * Math.cos(r * Math.PI / 180),
                            s = 15 * Math.random() + 30,
                            l = {
                                G: -3300
                            };
                        l.Speed = i, l.Angle = a, t.getComponent(p.default).SetAngleTween(s), t.getComponent(h.default).Init(l, e._nodeViewRect)
                    })
                }, t.prototype.SetKnifeBroken = function() {
                    var e = this;
                    this._knifeNodes.forEach(function(t) {
                        var n = t.angle,
                            o = t.getParent().convertToWorldSpaceAR(t.getPosition()),
                            r = e.BlowKnifeNode.convertToNodeSpaceAR(o);
                        t.parent = e.BlowKnifeNode, t.setPosition(r), t.angle = n + e.TargetNode.angle;
                        var i = 300 * Math.sin((t.angle - 90) * Math.PI / 180),
                            a = 360 * Math.cos(t.angle * Math.PI / 180),
                            s = 15 * Math.random() + 40,
                            l = {
                                G: -3200
                            };
                        l.Speed = i, l.Angle = a, t.getComponent(p.default).SetAngleTween(s), t.getComponent(h.default).Init(l, e._nodeViewRect)
                    })
                }, t.prototype.SetGameSettle = function() {
                    var e = this;
                    if (C.default.CheckActivityIsEnd(this._activityConfig.Common, !0)) this.ClosePanel();
                    else {
                        this._isStart = !1, this._canFlyKnife = !1, this._isRequestNext = !1;
                        var t = new l.Req_Activity_KnifeTrainingPlay;
                        t.ActivityId = this._activityConfig._id, t.Mode = this._type + 1, t.Type = 2, t.MapId = this._curLevelId, t.Count = this._curKnifeAngles.length, t.Hp = this._curHp, t.Props = [], c.RpcComponent.Instance.Call(t, function(t) {
                            u.UIManager.Instance.ShowUIPanel(m.PanelConfig.KnifeTrainingEndPanel.Path, e._activityConfig, e._type, t.Score, t.MyRank)
                        }, function() {
                            e.ClosePanel()
                        })
                    }
                }, t.prototype.OnReturnClick = function() {
                    var e = this;
                    this._isRequestNext || y.UIUtlity.ShowHintPanel("", "happyTurn_cala".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        e.SetGameSettle()
                    })
                }, t.prototype.OnTouchEnd = function() {
                    this.FlyKnife()
                }, t.prototype.ClosePanel = function() {
                    I.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !0, u.Game.EventDispatcher.Emit(d.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, I.BattleManager.Instance.ActivityCanShowBattleSettlePanel && I.BattleManager.Instance.CanShowBattleSettlePanel), u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnNextMapRefresh = function() {
                    var e = this,
                        t = new l.Req_Activity_KnifeTrainingPlay;
                    t.ActivityId = this._activityConfig._id, t.Mode = this._type + 1, t.Type = 1, t.StartTime = c.RpcComponent.Instance.ServerTime, c.RpcComponent.Instance.Call(t, function(t) {
                        e._curLevelId = t.NextMapId, e._curHp = t.Hp, e.SetUIContent()
                    })
                }, i([S(cc.Sprite)], t.prototype, "Bg", void 0), i([S(cc.SpriteFrame)], t.prototype, "Bgs", void 0), i([S(cc.Label)], t.prototype, "TitleLabel", void 0), i([S(cc.RichText)], t.prototype, "LevelRichText", void 0), i([S(cc.RichText)], t.prototype, "ScoreRichText", void 0), i([S(cc.Node)], t.prototype, "HeartContent", void 0), i([S(cc.Label)], t.prototype, "ScoreDescLabel", void 0), i([S(cc.Label)], t.prototype, "ScoreLabel", void 0), i([S(cc.Node)], t.prototype, "BlowKnifeNode", void 0), i([S(cc.Node)], t.prototype, "TargetNode", void 0), i([S(cc.Node)], t.prototype, "KnifeNode", void 0), i([S(cc.Sprite)], t.prototype, "CompleteTargetSprite", void 0), i([S(cc.Node)], t.prototype, "BrokenTargetNode", void 0), i([S(cc.Sprite)], t.prototype, "BrokenTargetTargetSprite1", void 0), i([S(cc.Sprite)], t.prototype, "BrokenTargetTargetSprite2", void 0), i([S(cc.Sprite)], t.prototype, "BrokenTargetTargetSprite3", void 0), i([S(cc.Node)], t.prototype, "IronTargetNode", void 0), i([S(cc.Node)], t.prototype, "SendKnife", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([b], t)
            }(u.BaseUIFullScreenPanel);
        n.KnifeTrainingPanel = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./FreeFallComponent": "FreeFallComponent",
        "./KnifeTrainingHeartComponent": "KnifeTrainingHeartComponent",
        "./KnifeTrainingIronComponent": "KnifeTrainingIronComponent",
        "./KnifeTrainingKnifeComponent": "KnifeTrainingKnifeComponent",
        "./KnifeTrainingMainPanel": "KnifeTrainingMainPanel"
    }],
    KnifeTrainingPartPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "43136xvafRCv4PDXkObfD+B", "KnifeTrainingPartPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.KnifeTrainingPartPanel = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./KnifeTrainingKnifeComponent"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("./FreeFallComponent"),
            d = e("./KnifeTrainingHeartComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Battle/BattleManager"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.TitleLabel = null, t.HeartContent = null, t.ScoreDescLabel = null, t.ScoreLabel = null, t.BlowKnifeNode = null, t.TargetNode = null, t.KnifeNode = null, t.CompleteTargetSprite = null, t.BrokenTargetNode = null, t.BrokenTargetTargetSprite1 = null, t.BrokenTargetTargetSprite2 = null, t.BrokenTargetTargetSprite3 = null, t.SendKnife = null, t.ReturnButton = null, t._isStart = !1, t._knifeNodes = [], t._blowknifeNode = [], t._heartNodes = [], t._brokenTargetNodes = [], t._curKnifeAngles = [], t._defaultBrokenAngles = [], t._curHp = 3, t.TargetCount = 20, t.InitTurntableWidth = 452, t.InitIronWidth = 504, t.InitSendKnifeY = -174, t.InputKnifeLength = 35, t.PerKnifeScore = 10, t.TurntableInitY = 400, t.TurntableShakeY = 440, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_FREE_FALL_REFRESH, this.AddBlowknifeNode, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_FREE_FALL_REFRESH, this.AddBlowknifeNode, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("KnifeTrainingPanel/Component/KnifeTrainingHeartComponent", cc.Prefab), this.LoadDynamicAsset("KnifeTrainingPanel/Component/KnifeTrainingKnifeComponent", cc.Prefab), this.LoadDynamicAsset("KnifeTrainingPanel/PNG/KnifeTraining", cc.SpriteAtlas)]).then(function(e) {
                                        t._heartPrefab = e[0], t._knifePrefab = e[1], t._atlas = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ScoreDescLabel.string = "knife_target".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnClick, this), this.Bg.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this);
                    var t = this.node.getBoundingBoxToWorld();
                    this._nodeViewRect = new cc.Rect(t.x, t.y, this.node.width, this.node.height)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._circusGameIndex = t[0], this.TitleLabel.string = "circusMaze_knifr_title".ToUILocale(), this._brokenTargetNodes = [this.BrokenTargetTargetSprite1.node, this.BrokenTargetTargetSprite2.node, this.BrokenTargetTargetSprite3.node], this.SetBrokenTargetDefaultAngle()
                }, t.prototype.SetBrokenTargetDefaultAngle = function() {
                    var e = this;
                    this._defaultBrokenAngles = [], this._brokenTargetNodes.forEach(function(t) {
                        var n = t.getComponent(cc.Sprite),
                            o = 360 * (n.fillStart + n.fillRange / 2);
                        e._defaultBrokenAngles.push(o)
                    })
                }, t.prototype.update = function(e) {
                    this._isStart && (this.TargetNode.angle -= e / 1 * 90)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), f.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !1, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.InitLevelData(), this.SetTargetBg(), this.SetCurScore(), this.SetHeartNodes()
                }, t.prototype.InitLevelData = function() {
                    var e = this;
                    this.TargetNode.y = this.TurntableInitY, this.TargetNode.angle = 360 * -Math.random(), this.CompleteTargetSprite.node.width = this.BlowKnifeNode.width = 452, this.CompleteTargetSprite.node.height = this.BlowKnifeNode.height = 452, this._curKnifeY = this.TargetNode.y - 226 + this.InputKnifeLength, this._collisionAngle = 10800 / (452 * Math.PI), this._curKnifeAngles = [], this.CompleteTargetSprite.node.active = !0, this.BrokenTargetNode.active = !1, this._brokenTargetNodes.forEach(function(t) {
                        t.parent = e.BrokenTargetNode, t.setPosition(0, 0), t.angle = 0, t.getComponent(c.default).StopAngleTween(), t.getComponent(p.default).InitStatus(!1, 255)
                    }), this._knifeNodes.forEach(function(e) {
                        e.active = !1, e.getComponent(c.default).StopAngleTween(), e.getComponent(p.default).InitStatus(!1, 255)
                    }), this._isStart = !0, this._canFlyKnife = !0
                }, t.prototype.SetTargetBg = function() {
                    this.CompleteTargetSprite.spriteFrame = this._atlas.getSpriteFrame("bg1"), this.BrokenTargetTargetSprite1.spriteFrame = this._atlas.getSpriteFrame("bg1"), this.BrokenTargetTargetSprite2.spriteFrame = this._atlas.getSpriteFrame("bg1"), this.BrokenTargetTargetSprite3.spriteFrame = this._atlas.getSpriteFrame("bg1")
                }, t.prototype.SetCurScore = function() {
                    this.ScoreLabel.string = (this.TargetCount - this._curKnifeAngles.length).toString()
                }, t.prototype.SetHeartNodes = function() {
                    this._heartNodes.forEach(function(e) {
                        e.active = !1
                    });
                    for (var e = 0; e < 3; e++) {
                        if (!this._heartNodes[e]) {
                            var t = cc.instantiate(this._heartPrefab);
                            t.parent = this.HeartContent, this._heartNodes[e] = t
                        }
                        this._heartNodes[e].active = !0, this._heartNodes[e].getComponent(d.default).Init(e < this._curHp)
                    }
                }, t.prototype.ChckCanInput = function(e) {
                    if (this._curHp <= 0) return [!1, 0];
                    var t = (-(360 - Math.abs(e)) - 90) % 360;
                    if (0 == this._curKnifeAngles.length) return this._curKnifeAngles.push(t), [!0, 0];
                    for (var n = 0; n < this._curKnifeAngles.length; n++)
                        if ((Math.abs(this._curKnifeAngles[n] - t) < 180 ? Math.abs(this._curKnifeAngles[n] - t) : 360 - Math.abs(this._curKnifeAngles[n] - t)) < this._collisionAngle) return [!1, 0];
                    return this._curKnifeAngles.push(t), [!0, 0]
                }, t.prototype.SetTurntableShake = function() {
                    cc.tween(this.TargetNode).to(.05, {
                        y: this.TurntableShakeY
                    }).to(.05, {
                        y: this.TurntableInitY
                    }).start()
                }, t.prototype.CreateInputKnife = function(e) {
                    if (!this._knifeNodes[this._curKnifeAngles.length - 1]) {
                        var t = cc.instantiate(this._knifePrefab);
                        t.name = "KnifeTrainingInputKnife", this._knifeNodes[this._curKnifeAngles.length - 1] = t
                    }
                    var n = 226 + this._knifeNodes[this._curKnifeAngles.length - 1].height / 2 - this.InputKnifeLength;
                    this._knifeNodes[this._curKnifeAngles.length - 1].parent = this.KnifeNode, this._knifeNodes[this._curKnifeAngles.length - 1].active = !0, this._knifeNodes[this._curKnifeAngles.length - 1].opacity = 255, this._knifeNodes[this._curKnifeAngles.length - 1].angle = -e, this._knifeNodes[this._curKnifeAngles.length - 1].x = 0 + n * Math.cos((-e - 90) * Math.PI / 180), this._knifeNodes[this._curKnifeAngles.length - 1].y = 0 + n * Math.sin((-e - 90) * Math.PI / 180)
                }, t.prototype.SetFailKnife = function(e) {
                    var t = this._blowknifeNode.shift();
                    t || ((t = cc.instantiate(this._knifePrefab)).parent = this.BlowKnifeNode), t.opacity = 255, t.angle = 0, t.x = 0, t.y = -this.BlowKnifeNode.height / 2 - t.height / 2 + this.InputKnifeLength;
                    var n = {
                        G: -3200
                    };
                    0 == e ? (n.Speed = 400, n.Angle = -180) : (n.Speed = 0, n.Angle = -90);
                    var o = t.getComponent(c.default),
                        r = t.getComponent(p.default);
                    o.SetAngleTween(50), r.Init(n, this._nodeViewRect)
                }, t.prototype.AddBlowknifeNode = function(e) {
                    var t = e.getComponent(c.default);
                    t && t.StopAngleTween(), "KnifeTrainingKnifeComponent" == e.name && this._blowknifeNode.push(e)
                }, t.prototype.FlyKnife = function() {
                    var e = this;
                    if (this._canFlyKnife) {
                        this._canFlyKnife = !1;
                        var t = Math.abs(this._curKnifeY - this.InitSendKnifeY) / 6e3;
                        cc.tween(this.SendKnife).to(t / 2, {
                            y: this._curKnifeY
                        }).call(function() {
                            var t = e.TargetNode.angle % 360,
                                n = e.ChckCanInput(t);
                            n[0] ? (e.CreateInputKnife(t), e.SetCurScore(), e._curKnifeAngles.length >= e.TargetCount ? e.SetGameSettle() : e.SetTurntableShake()) : (e._curHp--, e.SetFailKnife(n[1]), e.SetHeartNodes(), e._curHp <= 0 && e.SetGameSettle())
                        }).to(t / 2, {
                            y: this.InitSendKnifeY
                        }).call(function() {
                            e._isStart && (e._canFlyKnife = !0)
                        }).start()
                    }
                }, t.prototype.SetGameSettle = function() {
                    this._isStart = !1, this._canFlyKnife = !1, l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CIRCUSMAZE_DIAMOND_COUNT, this._circusGameIndex, this._curKnifeAngles.length), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnReturnClick = function() {
                    var e = this;
                    h.UIUtlity.ShowHintPanel("", "happyTurn_cala".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        e.SetGameSettle()
                    })
                }, t.prototype.OnTouchEnd = function() {
                    this.FlyKnife()
                }, i([m(cc.Node)], t.prototype, "Bg", void 0), i([m(cc.Label)], t.prototype, "TitleLabel", void 0), i([m(cc.Node)], t.prototype, "HeartContent", void 0), i([m(cc.Label)], t.prototype, "ScoreDescLabel", void 0), i([m(cc.Label)], t.prototype, "ScoreLabel", void 0), i([m(cc.Node)], t.prototype, "BlowKnifeNode", void 0), i([m(cc.Node)], t.prototype, "TargetNode", void 0), i([m(cc.Node)], t.prototype, "KnifeNode", void 0), i([m(cc.Sprite)], t.prototype, "CompleteTargetSprite", void 0), i([m(cc.Node)], t.prototype, "BrokenTargetNode", void 0), i([m(cc.Sprite)], t.prototype, "BrokenTargetTargetSprite1", void 0), i([m(cc.Sprite)], t.prototype, "BrokenTargetTargetSprite2", void 0), i([m(cc.Sprite)], t.prototype, "BrokenTargetTargetSprite3", void 0), i([m(cc.Node)], t.prototype, "SendKnife", void 0), i([m(cc.Button)], t.prototype, "ReturnButton", void 0), i([g], t)
            }(l.BaseUIFullScreenPanel);
        n.KnifeTrainingPartPanel = I, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./FreeFallComponent": "FreeFallComponent",
        "./KnifeTrainingHeartComponent": "KnifeTrainingHeartComponent",
        "./KnifeTrainingKnifeComponent": "KnifeTrainingKnifeComponent"
    }],
    LayoutRewards: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fae895ilH9EBYjrYhoAfBdl", "LayoutRewards");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../Components/ItemComponent"),
            l = e("../../../Util/AppUtil"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property;
        (function(e) {
            e[e.Config = 0] = "Config", e[e.IntArray = 1] = "IntArray", e[e.ItemModel = 2] = "ItemModel", e[e.CustomItemData = 3] = "CustomItemData", e[e.PureNumberArray = 4] = "PureNumberArray"
        })(a || (a = {}));
        var y = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Layout = null, t._itemComponents = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.InitWithConfigs = function(e, t, n) {
                this._itemPrefab = t, this.SetRewards(e, a.Config, n)
            }, t.prototype.InitWithIntArray = function(e, t, n) {
                this._itemPrefab = t, this.SetRewards(e, a.IntArray, n)
            }, t.prototype.InitWithItemModels = function(e, t, n) {
                this._itemPrefab = t, this.SetRewards(e, a.ItemModel, n)
            }, t.prototype.InitWithCustomDatas = function(e, t, n) {
                this._itemPrefab = t, this.SetRewards(e, a.CustomItemData, n)
            }, t.prototype.InitWithPureNumberArray = function(e, t, n) {
                this._itemPrefab = t, this.SetRewards(e, a.PureNumberArray, n)
            }, t.prototype.SetRewards = function(e, t, n) {
                for (var o = null == e ? 0 : e.length, r = 0; r < o; r++) {
                    var i = this._itemComponents[r];
                    null == i && ((i = cc.instantiate(this._itemPrefab).getComponent(s.ItemComponent)).node.setParent(this.Layout), this._itemComponents.push(i)), i.node.active = !0;
                    var c = void 0,
                        u = void 0;
                    if (t == a.Config) {
                        var p = e[r];
                        c = p.Items[0], u = p.Items[1]
                    } else if (t == a.ItemModel) {
                        var d = e[r];
                        c = d.ItemId, u = d.Count
                    } else if (t == a.IntArray) {
                        var h = e[r];
                        c = h.Items[0], u = h.Items[1]
                    } else if (t == a.PureNumberArray) {
                        var f = e;
                        c = f[r], u = f[r + 1], r++
                    } else {
                        var y = e[r];
                        c = y.ItemId, u = y.Count
                    }
                    var g = void 0;
                    n ? ((g = l.AppUtil.CloneObj(n)).ItemId = c, g.Count = u) : g = {
                        ItemId: c,
                        Count: u
                    }, i.Init(g), i.node.name = g.ItemId.toString()
                }
                for (var m = o; m < this._itemComponents.length; m++) this._itemComponents[m].node.active = !1
            }, t.prototype.OnItemClick = function(e, t) {
                for (var n = 0; n < this._itemComponents.length; n++) t == this._itemComponents[n].node && p.UIUtlity.ShowItemTip(e, t)
            }, i([f(cc.Node)], t.prototype, "Layout", void 0), i([h], t)
        }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LetterFromDeveloperPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0d1f2HHCARMmaWkHT55xHNL", "LetterFromDeveloperPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../Consts/Consts"),
            f = e("../../Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../../Util/TimeUtil"),
            C = e("../../Auxiliary/DataUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.LetterTitle = null, t.Title = null, t.Content = null, t.RewardNodes = [], t.ReceiveBtn = null, t.ReceiveBtnLbl = null, t.ReceiveOverBtn = null, t.ReceiveOverBtnLbl = null, t.RewardBtn1 = null, t.RewardBtn2 = null, t.RewardBtn3 = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChange)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "letter_title".ToUILocale(), this.Content.string = "letter_content".ToUILocale(), this.ReceiveBtnLbl.string = "receive".ToUILocale(), this.ReceiveOverBtnLbl.string = "receive".ToUILocale(), this.LetterTitle.string = "LetterFromDeveloper".ToUILocale(), this.ReceiveBtn.node.on("click", this.ClickReceiveBtn, this), this.ReceiveOverBtn.node.on("click", this.ClickReceiveBtn, this), this.RewardBtn1.node.on("click", this.ClickRewardBtn1, this), this.RewardBtn2.node.on("click", this.ClickRewardBtn2, this), this.RewardBtn3.node.on("click", this.ClickRewardBtn3, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this)
                }, t.prototype.DisPlay = function() {
                    if (e.prototype.DisPlay.call(this), !this.CheckIsInTime()) return l.Game.EventDispatcher.Emit(I.EventKeys.EVENT_SET_VERTICAL_BUTTON, 26, -1), void l.UIManager.Instance.QuitPanelStack(d.PanelConfig.LetterFromDeveloperPanel.Path);
                    m.RedDotManager.Instance.Bind(this.RewardNodes[0], m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode1, -5, -20), m.RedDotManager.Instance.Bind(this.RewardNodes[1], m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode2, -5, -20), m.RedDotManager.Instance.Bind(this.RewardNodes[2], m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode3, -5, -20), m.RedDotManager.Instance.Bind(this.ReceiveBtn.node, m.RedDotManager.Instance.RedDot.LetterDeveloperReceiveBtnNode, -15, 8), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.SetRewards(), this.SetBtnGray(), [2]
                        })
                    })
                }, t.prototype.SetBtnGray = function() {
                    var e = this.CheckIsAllReceive();
                    this.ReceiveBtn.node.active = !e, this.ReceiveOverBtn.node.active = e, this.CheckIsAllReceive() || (m.RedDotManager.Instance.RefreshRedDotNode(m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode1), m.RedDotManager.Instance.RefreshRedDotNode(m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode2), m.RedDotManager.Instance.RefreshRedDotNode(m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode3))
                }, t.prototype.SetRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, p, d, m, I, C, v, b, S, w, P, A;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    e = f.DataCenter.Instance.GetIntData(h.UserDataKey.LetterFromDeveloperTime), t = c.DataCenter.Instance.GetIntData(u.UserDataKey.LetterFromDeveloper), n = c.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, u.LevelParamType.LetterFromDeveloper).Data2, o = 0, s.label = 1;
                                case 1:
                                    return o < this.RewardNodes.length ? (r = this.GetBit(t, o), i = n[o].Items[0], a = n[o].Items[1], l = this.RewardNodes[o], p = l.getChildByName("DayLabel").getComponent(cc.Label), d = l.getChildByName("RewardImg").getComponent(cc.Sprite), m = l.getChildByName("ReceiveImg"), I = l.getChildByName("NameLabel").getComponent(cc.Label), C = l.getChildByName("NumLabel").getComponent(cc.Label), v = l.getChildByName("EffReward"), p.string = "firstCharge_dayth".ToUILocale().Fmt(o + 1), I.string = i.ToItemName(), C.string = "x" + a, m.active = r, v.active = !1, 1 == r ? g.UIUtlity.OnNodeGray(l) : g.UIUtlity.OffNodeGray(l), g.UIUtlity.OffNodeGray(m), e && e > 0 && (b = c.RpcComponent.Instance.ServerTime, S = _.TimeUtil.Get0ClockTs(e), w = _.TimeUtil.Get0ClockTs(b), P = Math.floor((w - S) / h.Etc.DayDuration), o <= P && (this.GetBit(t, o) || (v.active = !0))), A = d, [4, this.GetRewardIcon(i)]) : [3, 4];
                                case 2:
                                    A.spriteFrame = s.sent(), s.label = 3;
                                case 3:
                                    return o++, [3, 1];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetRewardIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return t = C.default.Instance.GetItemPathById(e), [4, l.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.isValid ? [2, n] : (l.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.GetBit = function(e, t) {
                    return 1 == (e >> t & 1)
                }, t.prototype.CheckIsInTime = function() {
                    var e = f.DataCenter.Instance.GetIntData(h.UserDataKey.LetterFromDeveloperTime),
                        t = c.RpcComponent.Instance.ServerTime,
                        n = e + 7 * h.Etc.DayDuration - t;
                    return !!(e && e > 0 && n > 0)
                }, t.prototype.CheckIsAllReceive = function() {
                    var e = !0,
                        t = f.DataCenter.Instance.GetIntData(h.UserDataKey.LetterFromDeveloperTime),
                        n = c.DataCenter.Instance.GetIntData(u.UserDataKey.LetterFromDeveloper);
                    if (t && t > 0)
                        for (var o = c.RpcComponent.Instance.ServerTime, r = _.TimeUtil.Get0ClockTs(t), i = _.TimeUtil.Get0ClockTs(o), a = Math.floor((i - r) / h.Etc.DayDuration), s = 0; s < 3; s++) s <= a && (this.GetBit(n, s) || (e = !1));
                    return e
                }, t.prototype.OnSimpleDataChange = function(e) {
                    for (var t in e) Number.parseInt(t) == h.UserDataKey.LetterFromDeveloper && this.DisPlay()
                }, t.prototype.ClickReceiveBtn = function() {
                    7 != c.DataCenter.Instance.GetIntData(u.UserDataKey.LetterFromDeveloper) ? this.CheckIsAllReceive() ? g.UIUtlity.ShowFloatingHint("letter_next".ToUILocale()) : this.RequestReward() : g.UIUtlity.ShowFloatingHint("letter_get_all".ToUILocale())
                }, t.prototype.RequestReward = function() {
                    var e = new p.Req_Player_LetterFromDeveloperRewards;
                    f.RpcComponent.Instance.Call(e, function(e) {
                        g.UIUtlity.ShwDisplayRewardPanel(e.Rewards), n.ChcekIsAllReceive() && l.Game.EventDispatcher.Emit(I.EventKeys.EVENT_SET_VERTICAL_BUTTON, 26, -1)
                    })
                }, t.prototype.ClickRewardBtn1 = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, u.LevelParamType.LetterFromDeveloper).Data2;
                    if (e[0]) {
                        var t = e[0].Items[0];
                        g.UIUtlity.ShowItemTip(t, this.RewardBtn1.node)
                    }
                }, t.prototype.ClickRewardBtn2 = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, u.LevelParamType.LetterFromDeveloper).Data2;
                    if (e[1]) {
                        var t = e[1].Items[0];
                        g.UIUtlity.ShowItemTip(t, this.RewardBtn2.node)
                    }
                }, t.prototype.ClickRewardBtn3 = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, u.LevelParamType.LetterFromDeveloper).Data2;
                    if (e[2]) {
                        var t = e[2].Items[0];
                        g.UIUtlity.ShowItemTip(t, this.RewardBtn3.node)
                    }
                }, t.ChcekIsAllReceive = function() {
                    for (var e = f.DataCenter.Instance.GetIntData(u.UserDataKey.LetterFromDeveloper), t = 0, n = 0; n < 3; n++) 1 == (e >> n & 1) && t++;
                    return 3 == t
                }, i([S(cc.Label)], t.prototype, "LetterTitle", void 0), i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.RichText)], t.prototype, "Content", void 0), i([S(cc.Node)], t.prototype, "RewardNodes", void 0), i([S(cc.Button)], t.prototype, "ReceiveBtn", void 0), i([S(cc.Label)], t.prototype, "ReceiveBtnLbl", void 0), i([S(cc.Button)], t.prototype, "ReceiveOverBtn", void 0), i([S(cc.Label)], t.prototype, "ReceiveOverBtnLbl", void 0), i([S(cc.Button)], t.prototype, "RewardBtn1", void 0), i([S(cc.Button)], t.prototype, "RewardBtn2", void 0), i([S(cc.Button)], t.prototype, "RewardBtn3", void 0), n = i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    LetterFromDeveloperSubPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f49eaQViSJKua2KEihKYCD9", "LetterFromDeveloperSubPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../Consts/Consts"),
            f = e("../../Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../../Util/TimeUtil"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../../Auxiliary/DataUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LetterTitle = null, t.Title = null, t.Content = null, t.RewardNodes = [], t.ReceiveBtn = null, t.ReceiveBtnLbl = null, t.ReceiveOverBtn = null, t.ReceiveOverBtnLbl = null, t.RewardBtn1 = null, t.RewardBtn2 = null, t.RewardBtn3 = null, t._asset = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.height = g.UIUtlity.DESIGN_SCREEN_HEIGHT;
                    var e = C.UIManager.Instance.GetUIPanel(d.PanelConfig.WelfareFramePanel.Path);
                    if (e) {
                        var t = e.CenterNode.convertToWorldSpace(cc.Vec2.ZERO),
                            n = this.node.parent.convertToNodeSpaceAR(t);
                        this.node.y = n.y
                    } else this.node.y = -this.node.parent.y;
                    this.ReceiveBtn.node.on("click", this.ClickReceiveBtn, this), this.ReceiveOverBtn.node.on("click", this.ClickReceiveBtn, this), this.RewardBtn1.node.on("click", this.ClickRewardBtn1, this), this.RewardBtn2.node.on("click", this.ClickRewardBtn2, this), this.RewardBtn3.node.on("click", this.ClickRewardBtn3, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChange, this), this.InitUI(), this.DisPlay()
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(p.UserSimpleData_Model._n_), this.OnSimpleDataChange)
                }, t.prototype.InitUI = function() {
                    this.Title.string = "letter_title".ToUILocale(), this.Content.string = "letter_content".ToUILocale(), this.ReceiveBtnLbl.string = "receive".ToUILocale(), this.ReceiveOverBtnLbl.string = "receive".ToUILocale(), this.LetterTitle.string = "LetterFromDeveloper".ToUILocale()
                }, t.prototype.DisPlay = function() {
                    m.RedDotManager.Instance.Bind(this.RewardNodes[0], m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode1, -5, -20), m.RedDotManager.Instance.Bind(this.RewardNodes[1], m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode2, -5, -20), m.RedDotManager.Instance.Bind(this.RewardNodes[2], m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode3, -5, -20), m.RedDotManager.Instance.Bind(this.ReceiveBtn.node, m.RedDotManager.Instance.RedDot.LetterDeveloperReceiveBtnNode, -15, 8), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.SetRewards(), this.SetBtnGray(), [2]
                        })
                    })
                }, t.prototype.SetBtnGray = function() {
                    var e = this.CheckIsAllReceive();
                    this.ReceiveBtn.node.active = !e, this.ReceiveOverBtn.node.active = e, this.CheckIsAllReceive() || (m.RedDotManager.Instance.RefreshRedDotNode(m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode1), m.RedDotManager.Instance.RefreshRedDotNode(m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode2), m.RedDotManager.Instance.RefreshRedDotNode(m.RedDotManager.Instance.RedDot.LetterDeveloperRewardNode3))
                }, t.prototype.SetRewards = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, p, d, m, I, C, v, b, S, w, P;
                        return s(this, function() {
                            for (e = f.DataCenter.Instance.GetIntData(h.UserDataKey.LetterFromDeveloperTime), t = c.DataCenter.Instance.GetIntData(u.UserDataKey.LetterFromDeveloper), n = c.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, u.LevelParamType.LetterFromDeveloper).Data2, o = 0; o < this.RewardNodes.length; o++) r = this.GetBit(t, o), i = n[o].Items[0], a = n[o].Items[1], l = this.RewardNodes[o], p = l.getChildByName("DayLabel").getComponent(cc.Label), d = l.getChildByName("RewardImg").getComponent(cc.Sprite), m = l.getChildByName("ReceiveImg"), I = l.getChildByName("NameLabel").getComponent(cc.Label), C = l.getChildByName("NumLabel").getComponent(cc.Label), v = l.getChildByName("EffReward"), p.string = "firstCharge_dayth".ToUILocale().Fmt(o + 1), I.string = i.ToItemName(), C.string = "x" + a, m.active = r, v.active = !1, 1 == r ? g.UIUtlity.OnNodeGray(l) : g.UIUtlity.OffNodeGray(l), g.UIUtlity.OffNodeGray(m), e && e > 0 && (b = c.RpcComponent.Instance.ServerTime, S = _.TimeUtil.Get0ClockTs(e), w = _.TimeUtil.Get0ClockTs(b), P = Math.floor((w - S) / h.Etc.DayDuration), o <= P && (this.GetBit(t, o) || (v.active = !0))), this.GetRewardIcon(i, d);
                            return [2]
                        })
                    })
                }, t.prototype.GetRewardIcon = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return n = v.default.Instance.GetItemPathById(e), [4, l.AssetsManager.Instance.LoadAsset(n, cc.SpriteFrame)];
                                case 1:
                                    return o = r.sent(), this.isValid ? (this._asset.push(o), t.spriteFrame = o, [2]) : (l.AssetsManager.Instance.UnloadAsset(o), [2])
                            }
                        })
                    })
                }, t.prototype.GetBit = function(e, t) {
                    return 1 == (e >> t & 1)
                }, t.prototype.CheckIsInTime = function() {
                    var e = f.DataCenter.Instance.GetIntData(h.UserDataKey.LetterFromDeveloperTime),
                        t = c.RpcComponent.Instance.ServerTime,
                        n = e + 7 * h.Etc.DayDuration - t;
                    return !!(e && e > 0 && n > 0)
                }, t.prototype.CheckIsAllReceive = function() {
                    var e = !0,
                        t = f.DataCenter.Instance.GetIntData(h.UserDataKey.LetterFromDeveloperTime),
                        n = c.DataCenter.Instance.GetIntData(u.UserDataKey.LetterFromDeveloper);
                    if (t && t > 0)
                        for (var o = c.RpcComponent.Instance.ServerTime, r = _.TimeUtil.Get0ClockTs(t), i = _.TimeUtil.Get0ClockTs(o), a = Math.floor((i - r) / h.Etc.DayDuration), s = 0; s < 3; s++) s <= a && (this.GetBit(n, s) || (e = !1));
                    return e
                }, t.prototype.OnSimpleDataChange = function(e) {
                    for (var t in e) Number.parseInt(t) == h.UserDataKey.LetterFromDeveloper && this.DisPlay()
                }, t.prototype.ClickReceiveBtn = function() {
                    7 != c.DataCenter.Instance.GetIntData(u.UserDataKey.LetterFromDeveloper) ? this.CheckIsAllReceive() ? g.UIUtlity.ShowFloatingHint("letter_next".ToUILocale()) : this.RequestReward() : g.UIUtlity.ShowFloatingHint("letter_get_all".ToUILocale())
                }, t.prototype.RequestReward = function() {
                    var e = this,
                        t = new p.Req_Player_LetterFromDeveloperRewards;
                    f.RpcComponent.Instance.Call(t, function(t) {
                        g.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.ChcekIsAllReceive() && l.Game.EventDispatcher.Emit(I.EventKeys.EVENT_SET_VERTICAL_BUTTON, 26, -1)
                    })
                }, t.prototype.ClickRewardBtn1 = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, u.LevelParamType.LetterFromDeveloper).Data2;
                    if (e[0]) {
                        var t = e[0].Items[0];
                        g.UIUtlity.ShowItemTip(t, this.RewardBtn1.node)
                    }
                }, t.prototype.ClickRewardBtn2 = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, u.LevelParamType.LetterFromDeveloper).Data2;
                    if (e[1]) {
                        var t = e[1].Items[0];
                        g.UIUtlity.ShowItemTip(t, this.RewardBtn2.node)
                    }
                }, t.prototype.ClickRewardBtn3 = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(y.LevelParam_Config, u.LevelParamType.LetterFromDeveloper).Data2;
                    if (e[2]) {
                        var t = e[2].Items[0];
                        g.UIUtlity.ShowItemTip(t, this.RewardBtn3.node)
                    }
                }, t.prototype.ChcekIsAllReceive = function() {
                    for (var e = f.DataCenter.Instance.GetIntData(u.UserDataKey.LetterFromDeveloper), t = 0, n = 0; n < 3; n++) 1 == (e >> n & 1) && t++;
                    return 3 == t
                }, t.prototype.onDestroy = function() {
                    for (var e = c.DataCenter.Instance.GetIntData(h.UserDataKey.LetterFromDeveloper), t = !0, n = 0; n < 3; n++) 1 == (e >> n & 1) || (t = !1);
                    t && l.Game.EventDispatcher.Emit(I.EventKeys.EVENT_SET_VERTICAL_BUTTON, 26, -1)
                }, i([w(cc.Label)], t.prototype, "LetterTitle", void 0), i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.RichText)], t.prototype, "Content", void 0), i([w(cc.Node)], t.prototype, "RewardNodes", void 0), i([w(cc.Button)], t.prototype, "ReceiveBtn", void 0), i([w(cc.Label)], t.prototype, "ReceiveBtnLbl", void 0), i([w(cc.Button)], t.prototype, "ReceiveOverBtn", void 0), i([w(cc.Label)], t.prototype, "ReceiveOverBtnLbl", void 0), i([w(cc.Button)], t.prototype, "RewardBtn1", void 0), i([w(cc.Button)], t.prototype, "RewardBtn2", void 0), i([w(cc.Button)], t.prototype, "RewardBtn3", void 0), i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    LevelComponent2: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "385c8T2N+BFZbFXSt00rKKU", "LevelComponent2");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.LevelComponent2Type = void 0;
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property;
        (function(e) {
            e[e.Orange = 0] = "Orange", e[e.Purple = 1] = "Purple", e[e.Red = 2] = "Red"
        })(n.LevelComponent2Type || (n.LevelComponent2Type = {}));
        var u = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.StarContent = null, t._stars = [], t.TypeColor = [
                    ["star_orange", "star_orange_bg"],
                    ["star_purple", "star_purple_bg"],
                    ["star_red", "star_red_bg"]
                ], t
            }
            return r(t, e), t.prototype.Init = function(e, t, n) {
                var o = this;
                if (this._stars = [], this.StarContent.children.forEach(function(e) {
                        o._stars.push(e.getComponent(cc.Sprite))
                    }), t > 0) {
                    this.AddStar(t);
                    for (var r = this._stars.length - 1; r >= 0; r--) this._stars[r].node.active = !0, this._stars[r].spriteFrame = r >= t - e ? a.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this.TypeColor[n][0]) : a.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this.TypeColor[n][1])
                } else
                    for (this.AddStar(e), r = this._stars.length - 1; r >= 0; r--) this._stars[r].node.active = r >= this._stars.length - e, r >= this._stars.length - e && (this._stars[r].spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this.TypeColor[n][0]))
            }, t.prototype.AddStar = function(e) {
                if (e > this._stars.length)
                    for (var t = e - this._stars.length, n = 0; n < t; n++) {
                        var o = new cc.Node;
                        o.parent = this.StarContent;
                        var r = o.addComponent(cc.Sprite);
                        r.sizeMode = cc.Sprite.SizeMode.CUSTOM, o.setContentSize(64, 64), this._stars.push(r)
                    }
            }, i([c(cc.Node)], t.prototype, "StarContent", void 0), i([l], t)
        }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    LevelComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "671c9gdY/JJzqdlVwT0JKQN", "LevelComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.LevelComponent = n.HighLevelType = n.StarLayoutMode = void 0;
        var l, c, u = e("../../../Consts/Consts"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.Middle = 0] = "Middle", e[e.Left = 1] = "Left", e[e.Right = 2] = "Right", e[e.Custom = 3] = "Custom"
        })(l = n.StarLayoutMode || (n.StarLayoutMode = {})),
        function(e) {
            e[e.Common = 0] = "Common", e[e.Chaos = 2] = "Chaos", e[e.UR = 3] = "UR", e[e.LR = 4] = "LR"
        }(c = n.HighLevelType || (n.HighLevelType = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ZeroNode = null, t.Low = null, t.Mid = null, t.High = null, t.Top = null, t.HolyStar = null, t._starEffectSkeletonData = {}, t._assets = [], t.YELLOW_STAR_MAXLEVEL = 5, t.PURPLE_STAR_MAXLEVEL = 9, t.HIGH_STAR_MINLEVEL = 10, t.HIGH_STAR_MAXLEVEL = 12, t.TOP_STAR_MAXLEVEL = 13, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.High.y = 0, this.Top.y = 0
            }, t.prototype.Init = function(e, t, n, o, r) {
                void 0 === t && (t = 0), void 0 === n && (n = l.Middle), void 0 === o && (o = c.Common), void 0 === r && (r = 0), this._level = e, this._itemType = t, this._layoutMode = n, this._type = o, this._urLevel = r, this.Low.active = !1, this.Mid.active = !1, this.High.active = !1, this.Top.active = !1, this.HolyStar && (this.HolyStar.active = !1), this.ZeroNode && (this.ZeroNode.active = !1), this.SpineNode && this.PauseStarEffect(), this.ConfigLevelStar()
            }, t.prototype.ConfigLevelStar = function() {
                switch (this._itemType) {
                    case u.ItemType.Equip:
                        this.RenderStar(this.Low, this._level);
                        break;
                    case u.ItemType.HolyEquip:
                    case u.ItemType.LuckyCharm:
                    case u.ItemType.PowerCore:
                        this.ConfigHolyEquipStar();
                        break;
                    default:
                        this._level <= this.YELLOW_STAR_MAXLEVEL ? this.RenderStar(this.Low, this._level) : this._level <= this.PURPLE_STAR_MAXLEVEL ? this.RenderStar(this.Mid, this._level - this.YELLOW_STAR_MAXLEVEL) : this._level <= this.HIGH_STAR_MAXLEVEL ? this.ConfigHighState() : this._level >= this.TOP_STAR_MAXLEVEL && this.ConfigTopState()
                }
            }, t.prototype.RenderStar = function(e, t) {
                var n = this;
                this.RefreshWidth(), e.active = !0;
                for (var o = e.childrenCount, r = 0; r < o; r++) e.children[r].active = r < t;
                e.getComponent(cc.Layout).updateLayout(), this.scheduleOnce(function() {
                    n.SetLayoutMode(e)
                }, 0)
            }, t.prototype.RefreshWidth = function() {
                this._totalWidth = this.node.width, 0 == this._totalWidth && (this._totalWidth = 220)
            }, t.prototype.ConfigHighState = function() {
                this.High.active = !0;
                var e = this.High.getChildByName("Level"),
                    t = this._level - this.HIGH_STAR_MINLEVEL;
                t > 0 ? (e.active = !0, e.getComponent(cc.Label).string = t.toString()) : e.active = !1;
                var n = this.High.getChildByName("Bg");
                n.scale = .5;
                var o = n.getComponent(cc.Sprite);
                this.SetStarBgSprite(o)
            }, t.prototype.SetStarBgSprite = function(e) {
                if (this._type == c.Common || this._type == c.Chaos) e.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_highLevel_1");
                else if (d.UIUtlity.HeroQualityConfig[this._type]) {
                    var t = d.UIUtlity.HeroQualityConfig[this._type].StarLevelImg;
                    if (e.spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame(t), !this.isValid) return;
                    this.SetURSpineNode()
                }
            }, t.prototype.SetURSpineNode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.SpineNode || (this.SpineNode = new cc.Node, this.SpineNode.parent = this.High.parent, this.SpineNode.addComponent(sp.Skeleton)), this.SpineNode.y = 9, (e = this._starEffectSkeletonData.UI_effect_yingxiongxingji) ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("UISpine/UI_effect_yingxiongxingji", sp.SkeletonData)];
                            case 1:
                                if (e = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._starEffectSkeletonData.UI_effect_yingxiongxingji = e, this._assets.push(e), n.label = 2;
                            case 2:
                                return this.SpineNode.active = !0, (t = this.SpineNode.getComponent(sp.Skeleton)).skeletonData = e, t.setAnimation(0, "Ani_UI_effect_yingxiongxingji", !0), t.paused = !1, [2]
                        }
                    })
                })
            }, t.prototype.ConfigTopState = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this.Top.active = !0, this.Top.children.forEach(function(e) {
                                    e.active = !1
                                }), this.High.active = !1, this._topSpineComponent || ((t = new cc.Node).setParent(this.Top), this._topSpineComponent = t.addComponent(sp.Skeleton)), this._topSpineComponent.node.active = !0, (e = this._starEffectSkeletonData.UI_effect_gaoxingji) ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ItemsComponent/Spine/UI_effect_gaoxingji", sp.SkeletonData)];
                            case 1:
                                if (e = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._starEffectSkeletonData.UI_effect_gaoxingji = e, this._assets.push(e), n.label = 2;
                            case 2:
                                return this._topSpineComponent.skeletonData = e, this._topSpineComponent.setAnimation(0, "Ani_UI_effect_gaoxingji", !0), this._topLabel || ((t = cc.instantiate(this.High.getChildByName("Level"))).setParent(this.Top), this._topLabel = t.getComponent(cc.Label)), this._topLabel.node.active = !0, this._topLabel.string = (this._level - this.HIGH_STAR_MINLEVEL).toString(), [2]
                        }
                    })
                })
            }, t.prototype.PauseStarEffect = function() {
                this.SpineNode.getComponent(sp.Skeleton).paused = !0, this.SpineNode.active = !1
            }, t.prototype.ConfigHolyEquipStar = function() {
                this.HolyStar.active = !0;
                for (var e = this.HolyStar.childrenCount, t = 0; t < e; t++) {
                    var n = this.HolyStar.children[t].children[0];
                    t < this._urLevel ? (n.active = !0, n.getComponent(cc.Sprite).spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_equipment2")) : t < this._level ? (n.active = !0, n.getComponent(cc.Sprite).spriteFrame = d.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_equipment1")) : n.active = !1
                }
            }, t.prototype.SetLayoutMode = function(e) {
                switch (this._layoutMode) {
                    case l.Left:
                        e.x = (this._totalWidth - e.width * e.scale) / -2 + 3;
                        break;
                    case l.Right:
                        e.x = (this._totalWidth - e.width * e.scale) / 2 - 3;
                        break;
                    case l.Custom:
                        break;
                    default:
                        e.x = 0
                }
            }, t.prototype.SetZeroNode = function() {
                this.ZeroNode && (this.Low.active = !1, this.Mid.active = !1, this.High.active = !1, this.Top.active = !1, this.HolyStar && (this.HolyStar.active = !1), this.ZeroNode.active = !0)
            }, t.GetLevelShowType = function(e, t) {
                return e >= 3 ? e : t == u.HeroElementType.Chaos ? c.Chaos : c.Common
            }, t.prototype.SetStarSize = function(e, t) {
                this.Low.children.forEach(function(n) {
                    n.width = e, n.height = t
                }), this.Mid.children.forEach(function(n) {
                    n.width = e, n.height = t
                }), this.ZeroNode && this.ZeroNode.children.forEach(function(n) {
                    n.width = e, n.height = t
                })
            }, i([y(cc.Node)], t.prototype, "ZeroNode", void 0), i([y(cc.Node)], t.prototype, "Low", void 0), i([y(cc.Node)], t.prototype, "Mid", void 0), i([y(cc.Node)], t.prototype, "High", void 0), i([y(cc.Node)], t.prototype, "Top", void 0), i([y(cc.Node)], t.prototype, "HolyStar", void 0), i([f], t)
        }(cc.Component);
        n.LevelComponent = g, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    LevelGiftComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "abbd0m7zOdIBInkS9GsyFy9", "LevelGiftComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/CustomProgressBar"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.RateLabel = null, t.ReceivedLabel = null, t.VipLevelLabel = null, t.VipName = null, t.LevelLabel = null, t.GetButtonLabel = null, t.GrayButtonLabel = null, t.NormalRewardContainer = null, t.VIPRewardContainer = null, t.ReceivedNode = null, t.LongNode = null, t.ProgressBar = null, t.Progress = null, t.GetButton = null, t.GrayButton = null, t._isContinueGet = !1, t._items = [], t
                }
                return r(t, e), t.prototype.SetLevel = function(e, t, n) {
                    this.Title.string = "levelGift_untilPlayerLevel".ToUILocale().Fmt(e), this.LevelLabel.string = "Lv." + e, this.VipLevelLabel.string = t.toString();
                    var o = l.DataCenter.Instance.GetIntData(c.UserDataKey.PlayerLevel);
                    return l.DataCenter.Instance.GetIntData(c.UserDataKey.VipLevel), l.DataCenter.Instance.GetItemCount(c.CommonItemId.Xp), this._vipLevel = t, null == n ? this.Progress.node.active = !1 : this.Progress.progress = (o - e) / n, this.GrayButton.node.active = e > o, this.GrayButton.node.active && (this.GrayButtonLabel.string = "receive".ToUILocale()), this.ReceivedLabel.string = "already_receive".ToUILocale(), this.VipName.string = "vip".ToUILocale(), this.RateLabel.string = o + "/" + e, this
                }, t.prototype.SetProgressActive = function(e) {
                    this.Progress.node.active = e
                }, t.prototype.SetNormalRewards = function(e, t, n) {
                    for (var o, r = 0; r < e.length; r++) {
                        if (null == this._items[r]) {
                            var i = t.Get();
                            i.setParent(this.NormalRewardContainer), this._items[r] = i.getComponent(d.ItemComponent)
                        }
                        this._items[r].node.name = e[r].Items[0].toString(), o = l.ConfigDataComponent.Instance.GetConfigById(s.ItemBase_Config, e[r].Items[0]), this._items[r].Init({
                            ItemId: e[r].Items[0],
                            Count: e[r].Items[1]
                        }, o.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon), this._items[r].SetReceivedTagState(n)
                    }
                    return this._normalReceived = n, this
                }, t.prototype.SetVIPRewards = function(e, t, n) {
                    for (var o, r = 2; r < 4; r++) {
                        if (null == this._items[r]) {
                            var i = t.Get();
                            i.setParent(this.VIPRewardContainer), this._items[r] = i.getComponent(d.ItemComponent)
                        }
                        this._items[r].node.name = e[r - 2].Items[0].toString(), o = l.ConfigDataComponent.Instance.GetConfigById(s.ItemBase_Config, e[r - 2].Items[0]), this._items[r].Init({
                            ItemId: e[r - 2].Items[0],
                            Count: e[r - 2].Items[1]
                        }, o.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon), this._items[r].SetReceivedTagState(n), n || this._items[r].SetLockFlag(l.DataCenter.Instance.GetIntData(c.UserDataKey.VipLevel) < this._vipLevel)
                    }
                    return this._vipReceived = n, this
                }, t.prototype.SetButtonState = function() {
                    return this.ReceivedNode.active = this._vipReceived && this._normalReceived, this.GetButton.node.active = !(this.GrayButton.node.active || this._vipReceived && this._normalReceived), this.GetButton.node.active && (!this._vipReceived && !this._normalReceived || l.DataCenter.Instance.GetIntData(c.UserDataKey.VipLevel) >= this._vipLevel ? (this.GetButtonLabel.string = "receive".ToUILocale(), this._isContinueGet = !1) : (this.GetButtonLabel.string = "receive_continue".ToUILocale(), this._isContinueGet = !0)), this
                }, t.prototype.onEnable = function() {
                    this.GetButton.node.on("click", this.OnGetButtonClick, this), this.GrayButton.node.on("click", this.OnGrayButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.GetButton.node.off("click", this.OnGetButtonClick, this), this.GrayButton.node.off("click", this.OnGrayButtonClick, this)
                }, t.prototype.OnGetButtonClick = function() {
                    this._isContinueGet ? u.UIUtlity.ShowHintPanel(null, "levelGift_vipLevelTooLow".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        a.UIManager.Instance.ShowUIPanel(p.PanelConfig.MallNewPanel.Path)
                    }) : a.Game.EventDispatcher.Emit(h.EventKeys.EVENT_LEVELGIFT_GETGIFT)
                }, t.prototype.OnGrayButtonClick = function() {
                    u.UIUtlity.ShowFloatingHint("mall_growFund_levelNotEnough".ToUILocale())
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Label)], t.prototype, "RateLabel", void 0), i([m(cc.Label)], t.prototype, "ReceivedLabel", void 0), i([m(cc.Label)], t.prototype, "VipLevelLabel", void 0), i([m(cc.Label)], t.prototype, "VipName", void 0), i([m(cc.Label)], t.prototype, "LevelLabel", void 0), i([m(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([m(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([m(cc.Node)], t.prototype, "NormalRewardContainer", void 0), i([m(cc.Node)], t.prototype, "VIPRewardContainer", void 0), i([m(cc.Node)], t.prototype, "ReceivedNode", void 0), i([m(cc.Sprite)], t.prototype, "LongNode", void 0), i([m(cc.Sprite)], t.prototype, "ProgressBar", void 0), i([m(f.default)], t.prototype, "Progress", void 0), i([m(cc.Button)], t.prototype, "GetButton", void 0), i([m(cc.Button)], t.prototype, "GrayButton", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LevelGiftContent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3c629VJ2+BPGZFBuQ1nSHqa", "LevelGiftContent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CustomLayout"),
            g = e("./NodePool"),
            m = e("./LevelGiftComponent"),
            I = e("../../../ShareConsts/EnumType"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ButtonLabel = null, t.Button = null, t.View = null, t.ViewCut = null, t.Ad = null, t.RuleBtn = null, t.Widgets = [], t.FreeRewardTitle = null, t.UnLockRewardTitle = null, t.LevelTitle = null, t._customLayoutInit = !0, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    for (this.node.height = f.UIUtlity.DESIGN_SCREEN_HEIGHT - 570, e = 0; e < this.Widgets.length; e++) this.Widgets[e].updateAlignment();
                                    return l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_WELFRAME_SETCOUNTER, !0, this.Ad), this.ButtonLabel.string = "diamondShop_examinePriviledge".ToUILocale(), this._configs = u.ConfigDataComponent.Instance.GetArrayConfig(c.LevelGift_Config), t = [l.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent), l.AssetsManager.Instance.LoadAsset("WelfarePanel/Component/LevelGiftComponent")], [4, Promise.all(t).then(function(e) {
                                        n.isValid ? (n._itemPrefab = e[0], n._giftPrefab = e[1], n._assets.push(e[0]), n._assets.push(e[1]), n._itemPool = new g.default(n._itemPrefab), n._customLayoutInit && (n.View.Init(n._giftPrefab), n._customLayoutInit = !1), n.scheduleOnce(function() {
                                            var e = u.DataCenter.Instance.GetIntData(I.UserDataKey.LevelGiftAdvanceIndex);
                                            n.View.RenderLayOut(n._configs.length, e)
                                        }, 0)) : e.forEach(function(e) {
                                            l.AssetsManager.Instance.UnloadAsset(e)
                                        })
                                    })];
                                case 1:
                                    return o.sent(), this.Button.node.on("click", this.OnButtonClick, this), this.RuleBtn.node.on("click", this.OnRule, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_LEVELGIFT_GETGIFT, this.OnGiftGet, this), this.FreeRewardTitle.string = "recharge_feedback_free".ToUILocale(), this.UnLockRewardTitle.string = "warTokenList_unlock_reward".ToUILocale(), this.LevelTitle.string = "warTokenList_progress".ToUILocale(), [2]
                            }
                        })
                    })
                }, t.prototype.onDisable = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemPool && (this._itemPool.Clear(), this._itemPool = null), this.Button.node.off("click", this.OnButtonClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_LEVELGIFT_GETGIFT, this.OnGiftGet, this), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_WELFRAME_SETCOUNTER, !1)
                }, t.prototype.OnButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.FamePriviledgePanel.Path)
                }, t.prototype.OnRule = function() {
                    var e = {
                        name: "levelUpGift_ruleName".ToUILocale(),
                        titles: ["levelUpGift_rule".ToUILocale()],
                        contents: ["levelUpGift_ruleContent".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    if (t == this.View) {
                        var o = u.DataCenter.Instance.GetIntData(I.UserDataKey.LevelGiftNormalIndex),
                            r = u.DataCenter.Instance.GetIntData(I.UserDataKey.LevelGiftAdvanceIndex);
                        e.forEach(function(e, t) {
                            var i;
                            t + 1 < n._configs.length && (i = n._configs[t + 1].Level - n._configs[t].Level), e.getComponent(m.default).SetLevel(n._configs[t].Level, n._configs[t].VipLevel, i).SetNormalRewards(n._configs[t].Rewards, n._itemPool, t < o).SetVIPRewards(n._configs[t].VipRewards, n._itemPool, t < r).SetButtonState().SetProgressActive(t < n._configs.length - 1)
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    "NormalRewardLayout" != t.parent.name && "VipRewardLayout" != t.parent.name || f.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnGiftGet = function() {
                    var e = this,
                        t = new p.Req_Mall_ReceiveLevelGift;
                    u.RpcComponent.Instance.Call(t, function(t) {
                        f.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.View.RenderLayOut(e._configs.length)
                    })
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([v(cc.Label)], t.prototype, "ButtonLabel", void 0), i([v(cc.Button)], t.prototype, "Button", void 0), i([v(y.default)], t.prototype, "View", void 0), i([v(cc.Node)], t.prototype, "ViewCut", void 0), i([v(cc.Node)], t.prototype, "Ad", void 0), i([v(cc.Button)], t.prototype, "RuleBtn", void 0), i([v(cc.Widget)], t.prototype, "Widgets", void 0), i([v(cc.Label)], t.prototype, "FreeRewardTitle", void 0), i([v(cc.Label)], t.prototype, "UnLockRewardTitle", void 0), i([v(cc.Label)], t.prototype, "LevelTitle", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./LevelGiftComponent": "LevelGiftComponent",
        "./NodePool": "NodePool"
    }],
    LevelPassComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5b84fxmHKNMJpBUfJn1oOPJ", "LevelPassComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("./ItemComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelTip = null, t.Sprite = null, t.Effect = null, t.RedDot = null, t.BG = null, t._aniName = "Ani_UI_effect_jianglikelingqu_baoxiang", t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.BG.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_LEVELPASS_GETREWARD, this.OnRewardGet, this), l.Game.EventDispatcher.On(h.GameEventIds.AddDataDetail.Fmt(g.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), l.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(g.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
                }, t.prototype.OnTouchEnd = function() {
                    d.DataCenter.Instance.GetIntData(h.UserDataKey.AdventureRewardIndex) < 3 ? l.UIManager.Instance.ShowUIPanel(u.PanelConfig.LevelPassRewardPanel.Path) : l.UIManager.Instance.ShowUIPanel(u.PanelConfig.LevelPassRewardAfterPanel.Path)
                }, t.prototype.OnRewardGet = function() {
                    this.Init()
                }, t.prototype.start = function() {
                    this.Init()
                }, t.prototype.OnSimpleDataChage = function(e) {
                    for (var t in e)
                        if (parseInt(t) == h.UserDataKey.MainLineProgress) {
                            this.Init();
                            break
                        }
                }, t.prototype.Init = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, u, g, m, I, _, C, v, b = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = d.DataCenter.Instance.GetIntData(h.UserDataKey.MainLineProgress), t = d.ConfigCacheComponent.Instance.GetIndexOfMainLineMapIds(e), n = d.DataCenter.Instance.GetIntData(h.UserDataKey.AdventureRewardIndex), o = d.ConfigDataComponent.Instance.GetArrayConfig(p.AdventureReward_Config), 0 == t ? (this.LevelTip.string = "levelPass_levelCountTo".ToUILocale().Fmt(d.ConfigCacheComponent.Instance.GetNextRwdNumberByMapId(e) + 1), _ = o[0].MapId, C = d.ConfigCacheComponent.Instance.GetChapterIdByMapId(_), v = d.ConfigCacheComponent.Instance.GetLevelIndexByMapId(_), this.LevelTip.string = "levelPass_mapName".ToUILocale().Fmt(C + "-" + v), this.RedDot.active = !1, this._ani && (this._ani.node.active = !1), [2]) : (r = t - 1, d.ConfigCacheComponent.Instance.GetMapIdByMainLineIndex(r), i = d.ConfigDataComponent.Instance.GetConfigById(p.AdventureReward_Config, n + 1), a = !1, i ? (a = e > i.MapId, c = d.ConfigCacheComponent.Instance.GetAdvRwdConfigs()[n].Rewards[0].Items[0], u = d.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, c), (g = f.ItemComponent.GetItemIcon(u)) || (g = c), y.default.Instance.GetItemPathById(g), m = l.AssetsManager.Instance.LoadAsset("LevelPassRewardPanel/Component/Effect", cc.Prefab), [4, Promise.all([m]).then(function(e) {
                                        if (b.isValid)
                                            if (b._ani) l.AssetsManager.Instance.UnloadAsset(e[0]);
                                            else {
                                                b._assets.push(e[0]);
                                                var t = cc.instantiate(e[0]);
                                                t.setParent(b.Effect), t.active = !1, b._ani = t.getComponent(sp.Skeleton)
                                            }
                                        else l.AssetsManager.Instance.UnloadAsset(e[0])
                                    })]) : (this.node.destroy(), [2]));
                                case 1:
                                    if (s.sent(), !this.isValid) return [2];
                                    if (a) this.LevelTip.string = "<outline width = 3 color = #000000>" + "online_canGet".ToUILocale() + "</outline>";
                                    else {
                                        for (I = 0; I < o.length; I++)
                                            if (o[I].MapId >= e) {
                                                _ = o[I].MapId, C = d.ConfigCacheComponent.Instance.GetChapterIdByMapId(_), v = d.ConfigCacheComponent.Instance.GetLevelIndexByMapId(_), this.LevelTip.string = "levelPass_mapName".ToUILocale().Fmt(C + "-" + v);
                                                break
                                            } I >= o.length && (this.LevelTip.string = "<outline color = #202434 width = 3>" + "Activity_HeroTestTower_Challenge_Success".ToUILocale() + "</outline>")
                                    }
                                    return this._ani.node.active = a, a && this._ani.setAnimation(0, this._aniName, !0), [2]
                            }
                        })
                    })
                }, t.prototype.onDisable = function() {
                    this.BG.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_LEVELPASS_GETREWARD, this.OnRewardGet), l.Game.EventDispatcher.Off(h.GameEventIds.AddDataDetail.Fmt(g.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), l.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(g.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
                }, t.prototype.onDestroy = function() {
                    this._assets.length > 0 && this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._assets = [], null != this._spriteFrame && (l.AssetsManager.Instance.UnloadAsset(this._spriteFrame), this._spriteFrame = null)
                }, i([_(cc.RichText)], t.prototype, "LevelTip", void 0), i([_(cc.Sprite)], t.prototype, "Sprite", void 0), i([_(cc.Node)], t.prototype, "Effect", void 0), i([_(cc.Node)], t.prototype, "RedDot", void 0), i([_(cc.Node)], t.prototype, "BG", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./ItemComponent": "ItemComponent"
    }],
    LevelPassRewardAfterPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9fd98bCQmRNxKeEpD064n8L", "LevelPassRewardAfterPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/CustomLayout"),
            d = e("./NodePool"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/Components"),
            g = e("../Components/LevelPassSingleReward"),
            m = e("../../../Consts/Consts"),
            I = e("../Auxiliary/UIUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.View = null, t._configs = [], t._initLayout = !0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("LevelPassRewardPanel/Component/LevelPassSingleReward", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_LEVELPASS_BLUEBUTTON_CLICK, this.OnBlueButtonClick, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_LEVELPASS_ORANGEBUTTON_CLICK, this.OnOrangeButtonClick, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(m.GameEventIds.ChangeDataDetail.Fmt(f.UserSimpleData_Model._n_), this.OnUserDataKeyChanges, this)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.View && e.forEach(function(e, t) {
                        e.getComponent(g.default).SetMapId(n._configs[t].MapId).SetLevelName("levelPass_passLevel".ToUILocale().Fmt(n.LevelName(n._configs[t].MapId))).SetState(n.GetState.bind(n)).SetItem(n.ConvertToArray2(n._configs[t].Rewards), n._itemPool)
                    })
                }, t.prototype.OnBlueButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnOrangeButtonClick = function() {
                    var e = this,
                        t = new f.Req_Adventure_ReceiveRewards;
                    y.RpcComponent.Instance.Call(t, function(t) {
                        I.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e._hasGotId = y.DataCenter.Instance.GetIntData(m.UserDataKey.AdventureRewardIndex), l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_LEVELPASS_GETREWARD)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemsLayoutri" == t.parent.name && I.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnUserDataKeyChanges = function(e) {
                    var t = this;
                    l.EZLog.Log(" -------------- \u6570\u636e\u6539\u53d8 \uff1a", e);
                    var n = function(n) {
                            switch (Number.parseInt(n)) {
                                case m.UserDataKey.MainLineProgress:
                                case m.UserDataKey.AdventureRewardIndex:
                                    o.View.node.children.forEach(function(o) {
                                        l.EZLog.Log(" \u5f53\u524d\u6570\u636e = ", e[n]), o.getComponent(g.default).SetState(t.GetState.bind(t))
                                    })
                            }
                        },
                        o = this;
                    for (var r in e) n(r)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_LEVELPASS_BLUEBUTTON_CLICK, this.OnBlueButtonClick), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_LEVELPASS_ORANGEBUTTON_CLICK, this.OnOrangeButtonClick), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(m.GameEventIds.ChangeDataDetail.Fmt(f.UserSimpleData_Model._n_), this.OnUserDataKeyChanges, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "allianceTest_passReward".ToUILocale(), this._itemPool = new d.default(this._itemPrefab), this._configs = y.ConfigDataComponent.Instance.GetArrayConfig(h.AdventureReward_Config)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._hasGotId = y.DataCenter.Instance.GetIntData(m.UserDataKey.AdventureRewardIndex), this._initLayout && (this.View.Init(this._singlePrefab), this._initLayout = !1), t || this.View.RenderLayOut(this._configs.length, this._hasGotId)
                }, t.prototype.LevelName = function(e) {
                    return y.ConfigCacheComponent.Instance.GetChapterIdByMapId(e).toString() + "-" + y.ConfigCacheComponent.Instance.GetLevelIndexByMapId(e).toString()
                }, t.prototype.GetState = function(e) {
                    this._hasGotId = y.DataCenter.Instance.GetIntData(m.UserDataKey.AdventureRewardIndex);
                    var t = y.ConfigCacheComponent.Instance.GetRwdIdByMapId(e);
                    if (null == t) return g.SingleState.Acquired;
                    var n = y.DataCenter.Instance.GetIntData(m.UserDataKey.MainLineProgress);
                    if (l.EZLog.Log("\u5f53\u524d\u5173\u5361id = ", n), null == y.ConfigCacheComponent.Instance.GetRwdIdByMapId(n)) n = Number.POSITIVE_INFINITY;
                    else {
                        var o = y.ConfigCacheComponent.Instance.GetRwdIdByMapId(n);
                        n = 0 == o[0] ? o[1] : o[0]
                    }
                    if (t[0] > 0) {
                        if (t[0] <= this._hasGotId) return g.SingleState.Acquired;
                        if (t[0] < n) return g.SingleState.Available
                    }
                    return g.SingleState.Unavailable
                }, t.prototype.ConvertToArray2 = function(e) {
                    for (var t = [], n = 0; n < e.length; n++) t[n] = [e[n].Items[0], e[n].Items[1]];
                    return t
                }, t.prototype.onDestroy = function() {
                    this._itemPool && this._itemPool.Clear()
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(p.default)], t.prototype, "View", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/LevelPassSingleReward": "LevelPassSingleReward",
        "./NodePool": "NodePool"
    }],
    LevelPassRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8395cFnP6xJbKCeWN1/Xt/d", "LevelPassRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/ItemComponent"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/GuideManager"),
            I = e("../Components/CustomProgressBar"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.MaskHintNode = null, t.GetButtonLabel = null, t.GetButton = null, t.GrayGetButtonLabel = null, t.GrayGetButton = null, t.ItemContainers = [], t.GemNodes = [], t.Quads = [], t.Progress = null, t.MapNames = [], t._firstThreeConfigs = [], t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.GetButtonLabel.string = "receive".ToUILocale(), this.GrayGetButtonLabel.string = "receive".ToUILocale(), this.GetButton.node.on("click", this.OnGetButtonClick, this), this.GrayGetButton.node.on("click", this.OnGrayGetButtonClick, this), this.ItemContainers.forEach(function(e) {
                        var n = cc.instantiate(t._itemPrefab);
                        n.setParent(e), t._items.push(n.getComponent(h.ItemComponent))
                    });
                    for (var n = 0; n < this.ItemContainers.length; n++) {
                        this._firstThreeConfigs[n] = p.ConfigDataComponent.Instance.GetConfigById(u.AdventureReward_Config, n + 1);
                        var o = p.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._firstThreeConfigs[n].Rewards[0].Items[0]);
                        this._items[n].Init({
                            ItemId: this._firstThreeConfigs[n].Rewards[0].Items[0],
                            Count: this._firstThreeConfigs[n].Rewards[0].Items[1]
                        }, o.Star ? h.ItemComponentType.ItemWithStar : h.ItemComponentType.ItemCommon), this._items[n].node.name = this._firstThreeConfigs[n].Rewards[0].Items[0].toString(), this._items[n].SetCountFontSize(32, 150)
                    }
                    for (n = 0; n < this.MapNames.length; n++) {
                        var r = this._firstThreeConfigs[n].MapId,
                            i = p.ConfigCacheComponent.Instance.GetChapterIdByMapId(r),
                            a = p.ConfigCacheComponent.Instance.GetLevelIndexByMapId(r);
                        this.MapNames[n].string = "<outline color = #202434 width = 3><color = #FFFFFF>" + i + "-" + a + "</color></outline>"
                    }
                }, t.prototype.OnGetButtonClick = function() {
                    var e = new f.Req_Adventure_ReceiveRewards;
                    p.RpcComponent.Instance.Call(e, function(e) {
                        l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_LEVELPASS_GETREWARD), y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    }, void 0, m.default.Instance.CurrentGroup)
                }, t.prototype.OnGrayGetButtonClick = function() {
                    if (!(this.Progress.progress >= 1)) {
                        var e = p.DataCenter.Instance.GetIntData(d.UserDataKey.MainLineProgress),
                            t = p.ConfigCacheComponent.Instance.GetNextRwdNumberByMapId(e) + 1;
                        y.UIUtlity.ShowFloatingHint("levelPass_levelCountToNextReward".ToUILocale().Fmt(t))
                    }
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this);
                    var t, n = p.DataCenter.Instance.GetIntData(d.UserDataKey.AdventureRewardIndex),
                        o = n - 1,
                        r = p.ConfigDataComponent.Instance.GetConfigById(u.AdventureReward_Config, this.ItemContainers.length).MapId,
                        i = p.ConfigCacheComponent.Instance.GetIndexOfMainLineMapIds(r) + 1,
                        a = p.DataCenter.Instance.GetIntData(d.UserDataKey.MainLineProgress),
                        s = p.ConfigCacheComponent.Instance.GetIndexOfMainLineMapIds(a);
                    if (0 != s) {
                        var l = s - 1,
                            c = p.ConfigCacheComponent.Instance.GetMapIdByMainLineIndex(l),
                            h = p.ConfigCacheComponent.Instance.GetRwdIdByMapId(c);
                        for (t = h[0] > n ? h[0] : h[1] - 1, t--, A = 0; A < this._items.length; A++) {
                            this._items[A].SetReceivedTagState(A <= o);
                            var f = A > o && A <= t;
                            f ? this._items[A].PlayItemEffect("UI_effect_kelingqu") : this._items[A].PauseItemEffect(), this.Quads[A].spriteFrame = A <= o || f ? y.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_on") : y.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_off")
                        }
                        var g = h[0] > n || h[1] > n + 1;
                        this.GetButton.node.active = g, this.GrayGetButton.node.active = !this.GetButton.node.active;
                        var m = 1 / (this.Quads.length - 1),
                            I = p.ConfigCacheComponent.Instance.GetIndexOfMainLineMapIds(c) + 1,
                            _ = p.ConfigDataComponent.Instance.GetConfigById(u.AdventureReward_Config, 1).MapId,
                            C = p.ConfigCacheComponent.Instance.GetIndexOfMainLineMapIds(_) + 1,
                            v = C;
                        if (I < C) this.Progress.progress = 0;
                        else if (I >= i) this.Progress.progress = 1;
                        else {
                            var b = 0;
                            for (L = 2; L <= this.Quads.length; L++) {
                                var S = p.ConfigDataComponent.Instance.GetConfigById(u.AdventureReward_Config, L).MapId,
                                    w = p.ConfigCacheComponent.Instance.GetIndexOfMainLineMapIds(S) + 1;
                                if (!(I > w)) {
                                    b += (I - v) / (w - v) * m, this.Progress.progress = b;
                                    break
                                }
                                b += m, v = w
                            }
                        }
                        this.Progress.progress >= 1 && this.GrayGetButton.node.active;
                        var P = this.Progress.node.width / (this.Quads.length - 1);
                        for (L = 1; L < this.Quads.length; L++) this.Quads[L - 1].node.x = P * (L - 1), this.GemNodes[L - 1].x = this.Quads[L - 1].node.x;
                        this.ShowGuide()
                    } else {
                        t = 0;
                        for (var A = 0; A < this._items.length; A++) this._items[A].SetReceivedTagState(!1), this._items[A].PauseItemEffect();
                        this.GetButton.node.active = !1, this.GrayGetButton.node.active = !0;
                        for (var T = 0; T < this.Quads.length; T++) this.Quads[T].spriteFrame = y.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_off");
                        this.Progress.progress = 0;
                        for (var R = this.Progress.node.width / (this.Quads.length - 1), L = 1; L < this.Quads.length; L++) this.Quads[L - 1].node.x = R * (L - 1), this.GemNodes[L - 1].x = this.Quads[L - 1].node.x
                    }
                }, t.prototype.ShowGuide = function() {
                    if (m.default.Instance.IsInGuide) switch (m.default.Instance.CurrentStep) {
                        case 4103:
                            m.default.Instance.ShowGuide(this.GetButton.node);
                            break;
                        case 4105:
                            m.default.Instance.ShowGuide(this.MaskHintNode)
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemRoot" == t.parent.name && y.UIUtlity.ShowItemTip(e, t)
                }, i([v(cc.Node)], t.prototype, "MaskHintNode", void 0), i([v(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([v(cc.Button)], t.prototype, "GetButton", void 0), i([v(cc.Label)], t.prototype, "GrayGetButtonLabel", void 0), i([v(cc.Button)], t.prototype, "GrayGetButton", void 0), i([v({
                    type: [cc.Node]
                })], t.prototype, "ItemContainers", void 0), i([v({
                    type: [cc.Node]
                })], t.prototype, "GemNodes", void 0), i([v({
                    type: [cc.Sprite]
                })], t.prototype, "Quads", void 0), i([v(I.default)], t.prototype, "Progress", void 0), i([v({
                    type: [cc.RichText]
                })], t.prototype, "MapNames", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LevelPassSingleReward: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "53920UJco9OjoJP5lwGQu7R", "LevelPassSingleReward");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.SingleState = void 0;
        var a, s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Components/Components"),
            p = e("./ItemComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property;
        (function(e) {
            e[e.Acquired = 0] = "Acquired", e[e.Available = 1] = "Available", e[e.Unavailable = 2] = "Unavailable"
        })(a = n.SingleState || (n.SingleState = {}));
        var y = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LevelName = null, t.ItemContainer = null, t.Mask = null, t.OrangeButton = null, t.OrangeButtonLabel = null, t.BlueButton = null, t.BlueButtonLabel = null, t.Receive = null, t.items = [], t._state = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.Receive.string = "already_receive".ToUILocale()
            }, t.prototype.onEnable = function() {
                this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.BlueButton.node.on("click", this.OnBlueButtonClick, this)
            }, t.prototype.onDisable = function() {
                this.OrangeButton.node.off("click", this.OnOrangeButtonClick, this), this.BlueButton.node.off("click", this.OnBlueButtonClick, this)
            }, t.prototype.OnOrangeButtonClick = function() {
                l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_LEVELPASS_ORANGEBUTTON_CLICK)
            }, t.prototype.OnBlueButtonClick = function() {
                l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_LEVELPASS_BLUEBUTTON_CLICK)
            }, t.prototype.SetMapId = function(e) {
                return this._mapId = e, this
            }, t.prototype.SetLevelName = function(e) {
                return this.LevelName.string = e, this
            }, t.prototype.SetItem = function(e, t) {
                var n;
                if (e.length > this.items.length) {
                    for (var o = 0; o < this.items.length; o++) n = u.ConfigDataComponent.Instance.GetConfigById(s.ItemBase_Config, e[o][0]), this.items[o].node.name = e[o][0].toString(), this.items[o].Init({
                        ItemId: e[o][0],
                        Count: e[o][1]
                    }, n.Star ? p.ItemComponentType.ItemWithStar : p.ItemComponentType.ItemCommon), this.items[o].SetCountFontSize(26, 131);
                    for (o = this.items.length; o < e.length; o++) this.items[o] = t.Get().getComponent(p.ItemComponent), this.items[o].node.active = !0, this.items[o].node.setParent(this.ItemContainer), n = u.ConfigDataComponent.Instance.GetConfigById(s.ItemBase_Config, e[o][0]), this.items[o].node.name = e[o][0].toString(), this.items[o].Init({
                        ItemId: e[o][0],
                        Count: e[o][1]
                    }, n.Star ? p.ItemComponentType.ItemWithStar : p.ItemComponentType.ItemCommon), this.items[o].SetCountFontSize(26, 131)
                } else {
                    for (o = 0; o < e.length; o++) n = u.ConfigDataComponent.Instance.GetConfigById(s.ItemBase_Config, e[o][0]), this.items[o].node.name = e[o][0].toString(), this.items[o].Init({
                        ItemId: e[o][0],
                        Count: e[o][1]
                    }, n.Star ? p.ItemComponentType.ItemWithStar : p.ItemComponentType.ItemCommon), this.items[o].SetCountFontSize(26, 131);
                    for (o = e.length; o < this.items.length; o++) t.Put(this.items[o].node), this.items[o].node.active = !1;
                    this.items.length = e.length
                }
                return this
            }, t.prototype.SetState = function(e) {
                l.EZLog.Log("----- SET STATE -----");
                var t = e(this._mapId);
                return l.EZLog.Log("STATE = ", t), this._state == t ? this : (this.Mask.active = t == a.Acquired, this.OrangeButton.node.active = t == a.Available, this.OrangeButtonLabel.string = "receive".ToUILocale(), this.BlueButton.node.active = t == a.Unavailable, this.BlueButtonLabel.string = "task_goto".ToUILocale(), this._state = t, this)
            }, i([f(cc.Label)], t.prototype, "LevelName", void 0), i([f(cc.Node)], t.prototype, "ItemContainer", void 0), i([f(cc.Node)], t.prototype, "Mask", void 0), i([f(cc.Button)], t.prototype, "OrangeButton", void 0), i([f(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([f(cc.Button)], t.prototype, "BlueButton", void 0), i([f(cc.Label)], t.prototype, "BlueButtonLabel", void 0), i([f(cc.Label)], t.prototype, "Receive", void 0), i([h], t)
        }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "./ItemComponent": "ItemComponent"
    }],
    LevelUpConfirmPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "902b8lsjXlDn6A6PYOtJV8y", "LevelUpConfirmPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/CurrencyBarItem"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1, !1), t.Title = null, t.OldLevelLabel = null, t.MaxLevelLabel = null, t.CancelBtn = null, t.OkBtn = null, t.CancelLabel = null, t.OkLabel = null, t.CurencyBars = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "up_level".ToUILocale().Fmt(""), this.CancelLabel.string = "cancel".ToUILocale(), this.OkLabel.string = "ok".ToUILocale(), this.CancelBtn.node.on("click", this.OnClickCancel, this), this.OkBtn.node.on("click", this.OnClickOk, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._oldLevel = t[0], this._maxLevel = t[1], this._costMaterials = t[2], this._event = t[3] || s.EventKeys.EVENT_UPHERO_TO_MAX
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ConfigLevelInfo(), this.ConfigLevelUpCost()
                }, t.prototype.ConfigLevelInfo = function() {
                    this.OldLevelLabel.string = "Lv." + this._oldLevel, this.MaxLevelLabel.string = "Lv." + this._maxLevel
                }, t.prototype.ConfigLevelUpCost = function() {
                    for (var e, t = this._costMaterials.keys(), n = 0; !(e = t.next()).done;) {
                        var o = e.value,
                            r = this._costMaterials.get(o),
                            i = this.CurencyBars[n];
                        r > 0 ? (i.node.active = !0, i.Init(o, !1, void 0, r), i.SetFixedWidth(257), n++) : i.node.active = !1
                    }
                    for (var a = n; a < this.CurencyBars.length; a++) this.CurencyBars[a].node.active = !1
                }, t.prototype.OnClickCancel = function() {
                    this.Close()
                }, t.prototype.OnClickOk = function() {
                    a.Game.EventDispatcher.Emit(this._event), this.Close()
                }, i([p(cc.Label)], t.prototype, "Title", void 0), i([p(cc.Label)], t.prototype, "OldLevelLabel", void 0), i([p(cc.Label)], t.prototype, "MaxLevelLabel", void 0), i([p(cc.Button)], t.prototype, "CancelBtn", void 0), i([p(cc.Button)], t.prototype, "OkBtn", void 0), i([p(cc.Label)], t.prototype, "CancelLabel", void 0), i([p(cc.Label)], t.prototype, "OkLabel", void 0), i([p(l.default)], t.prototype, "CurencyBars", void 0), i([u], t)
            }(a.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/CurrencyBarItem": "CurrencyBarItem"
    }],
    LevelUpHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8cdf5x2WjdEbLc+RThHOZ1z", "LevelUpHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/DataUtlity"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.PopUp, !1, !1, !1, s.AssetUnloadMode.Resident), t.BattlePoint = null, t.BPChange = null, t.DefenseIcon = null, t.DefenseName = null, t.DefenseChange = null, t.AttackIcon = null, t.AttackName = null, t.AttackChange = null, t.HPIcon = null, t.HPName = null, t.HPChange = null, t.Attr4Icon = null, t.Attr4Name = null, t.Attr4Change = null, t.AttrNodes = [], t.CLOSE_DELAY = 1.2, t
                }
                return r(t, e), t.prototype.update = function() {
                    this._timer += cc.director.getDeltaTime(), this._timer >= this.CLOSE_DELAY && (this._timer = 0, this.Close())
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._timer = 0, this._battlePoint = t[0], this._bpChange = t[1], this._defenseChange = t[2], this._attackChange = t[3], this._hpChange = t[4], t[5] ? this._attrData = t[5] : this._attrData = null
                }, t.prototype.DisPlay = function() {
                    var t = this;
                    if (e.prototype.DisPlay.call(this), this._bpTween && this._bpTween.stop(), this._timer = 0, this.BattlePoint.string = this._battlePoint.toString(), this._bpTween = cc.tween({
                            value: 0
                        }).to(.5, {
                            value: this._bpChange
                        }, {
                            progress: function(e, n, o, r) {
                                t.isValid && (t.BPChange.string = "+" + Math.floor(e + (n - e) * r).toString())
                            }
                        }).start(), this._attrData) {
                        this.AttrNodes.forEach(function(e) {
                            e.active = !1
                        });
                        var n = 0;
                        for (var o in this._attrData) this.AttrNodes[n] && this._attrData[o] > 0 && (this.AttrNodes[n].active = !0, this.AttrNodes[n].getChildByName("Icon").getComponent(cc.Sprite).spriteFrame = l.default.GetAttrIcon(Number(o)), this.AttrNodes[n].getChildByName("Name").getComponent(cc.Label).string = l.default.GetHeroAttributeName(Number(o)), this.AttrNodes[n].getChildByName("Change").getComponent(cc.Label).string = l.default.GetAttrText(Number(o), this._attrData[o]), n++)
                    } else this.AttrNodes.forEach(function(e, t) {
                        e.active = t < 3
                    }), this.DefenseIcon.spriteFrame = l.default.GetAttrIcon(2), this.AttackIcon.spriteFrame = l.default.GetAttrIcon(0), this.HPIcon.spriteFrame = l.default.GetAttrIcon(1), this.DefenseChange.string = "+" + this._defenseChange, this.AttackChange.string = "+" + this._attackChange, this.HPChange.string = "+" + this._hpChange, this.DefenseName.string = "hero_attr_2".ToUILocale(), this.HPName.string = "hero_attr_1".ToUILocale(), this.AttackName.string = "hero_attr_0".ToUILocale()
                }, i([p(cc.Label)], t.prototype, "BattlePoint", void 0), i([p(cc.Label)], t.prototype, "BPChange", void 0), i([p(cc.Sprite)], t.prototype, "DefenseIcon", void 0), i([p(cc.Label)], t.prototype, "DefenseName", void 0), i([p(cc.Label)], t.prototype, "DefenseChange", void 0), i([p(cc.Sprite)], t.prototype, "AttackIcon", void 0), i([p(cc.Label)], t.prototype, "AttackName", void 0), i([p(cc.Label)], t.prototype, "AttackChange", void 0), i([p(cc.Sprite)], t.prototype, "HPIcon", void 0), i([p(cc.Label)], t.prototype, "HPName", void 0), i([p(cc.Label)], t.prototype, "HPChange", void 0), i([p(cc.Sprite)], t.prototype, "Attr4Icon", void 0), i([p(cc.Label)], t.prototype, "Attr4Name", void 0), i([p(cc.Label)], t.prototype, "Attr4Change", void 0), i([p(cc.Node)], t.prototype, "AttrNodes", void 0), i([u], t)
            }(a.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    LimitTimePurchasePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a179cHNGatOBaud/yMttUME", "LimitTimePurchasePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../Consts/Consts"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("./LimitTimePurchasetListItem"),
            I = e("./NodePool"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../../Auxiliary/GameEventsListener"),
            v = e("./CommonTaskTipComponent"),
            b = e("../../../Consts/Consts"),
            S = e("../../../EZFramework/EZFramework"),
            w = e("../../../Util/TimeUtil"),
            P = e("../Components/CouponGiftPackComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0, !1, !0), t.Title = null, t.DiscountBagButton = null, t.DiscountBagLabel = null, t.DiscountBagTipLabel = null, t.TimeRemainderLabel = null, t.ScrollView = null, t.Content = null, t.BannerImage = null, t.CommonTaskTipComponent = null, t._initLayout = !0, t._sortArray = [], t._upToDown = {}, t._gifts = [], t._banenerPath = "", t._assets = [], t._packsMap = {}, t._PackDiscountMap = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), l.Game.EventDispatcher.On(c.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.RefreshPanel, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), l.Game.EventDispatcher.Off(c.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.RefreshPanel, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("OpenServerActivity/Private/LimitTimePurchasetListItem", cc.Prefab), n = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._singlePrefab = e[0], o._itemPrefab = e[1], o._itemPool = new I.default(o._itemPrefab)
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.DiscountBagButton.node.on("click", this.OnDiscountBagButtonClick, this), this.CommonTaskTipComponent.InitData();
                    var t = this.ScrollView.node.getBoundingBoxToWorld();
                    this._scrollViewRect = new cc.Rect(t.x, t.y, this.ScrollView.node.width, this.ScrollView.node.height), this.ScrollView.node.on("scrolling", this.OnScrolling, this)
                }, t.prototype.OnScrolling = function() {
                    l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_CHECK_BUNDINGBOX, this.ScrollView)
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    for (e.prototype.InitData.call(this), n = t[0], t[1] && (this._banenerPath = t[1]), this._data = p.DataCenter.Instance.ActivityConfigs[n], this._data._Packs.forEach(function(e) {
                                            i._packsMap[e.Id] = e
                                        }), this.Title.string = this._data.Common.Title, this._deadLine = g.default.Instance.ComputeDeadTime(this._data.Common), this._data.Common.Type == c.ActivityType.SupportHero && (this._supportOverTime = w.TimeUtil.GetOffsetHourTs(-3, this._deadLine)), this._data.Common.Type != b.ActivityType.NewbieCoupon ? this.InitGiftConfig() : this.InitCouponGiftConfig(), this._sortArray = [], o = 0; o < this._gifts.length; o++) this._sortArray[o] = o;
                                    return this._data.Common.Type != b.ActivityType.NewbieCoupon ? [3, 2] : (r = this, [4, this.LoadDynamicAsset("OpenServerActivity/Private/CouponGiftPackComponent", cc.Prefab)]);
                                case 1:
                                    r._singlePrefab = a.sent(), this._data.__LowPricePack.forEach(function(e) {
                                        i._PackDiscountMap[e.PackId] = e.Id
                                    }), a.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, this.SetBanner()];
                                case 1:
                                    return e.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this._data.Common.CanDiscount ? (this.DiscountBagButton.node.active = !0, this.DiscountBagLabel.string = "DiscountTicketBag_Title".ToUILocale(), this.DiscountBagTipLabel.string = "DiscountTicketBag_Bubble_Tip".ToUILocale()) : this.DiscountBagButton.node.active = !1), this.RefreshPanel()
                }, t.prototype.RefreshPanel = function() {
                    var e = this;
                    this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this._model = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data._id), this.PeelGifts(), this._sortArray.sort(function(t, n) {
                        var o = e._gifts[t],
                            r = e._gifts[n],
                            i = e.BoughtTimes(o.Id) >= o.LimitCount && o.LimitType > 0,
                            a = e.BoughtTimes(r.Id) >= r.LimitCount && r.LimitType > 0;
                        return i ? 1 : a ? -1 : o.SortId != r.SortId ? o.SortId - r.SortId : o.Id - r.Id
                    }), this.ConfigItems(), C.default.Instance._zeroRefreshPanel = this
                }, t.prototype.OnItemClick = function(e, t) {
                    "RewardGrid3" == t.parent.name && f.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                }, t.prototype.OnButtonClick = function(e) {
                    if (this._data.Common.Type == b.ActivityType.SupportHero && this._deadLine - p.RpcComponent.Instance.ServerTime <= 3 * b.Etc.HourDuration) return f.UIUtlity.ShowFloatingHint("campSupport_supportOver".ToUILocale()), void S.UIManager.Instance.BackUIPanel();
                    if (null == this._gifts[e].Money || 0 == this._gifts[e].Money) {
                        var t = new u.Req_Pay_ByDiamond;
                        t.Id = this._gifts[e].Id, t.ActivityId = this._data._id, p.RpcComponent.Instance.Call(t, function(e) {
                            f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else _.default.Instance.Pay(this._gifts[e].Id, this._data._id)
                }, t.prototype.ConfigItems = function() {
                    var e = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data._id),
                        t = this.Content.childrenCount;
                    if (0 == t)
                        for (var n = 0; n < this._gifts.length; n++) {
                            (a = cc.instantiate(this._singlePrefab)).setParent(this.Content);
                            var o = this._gifts[this._sortArray[n]],
                                r = void 0;
                            r = e && e.Packs && e.Packs[o.Id] && e.Packs[o.Id].Items ? e.Packs[o.Id].Items[0] : 0;
                            var i = a.getComponent(m.default);
                            this._data.Common.Type == b.ActivityType.NewbieCoupon && i instanceof P.default && i.SetActivityData(this._data._id, o.Id), i.SetName(o.Name, this._sortArray[n]).SetPurchaseLimit(o.LimitCount - r, o.LimitCount, o.LimitType).SetItems(o.Items, this._itemPool).SetPrice(o.Money, o.VipPoint, o.Discount)
                        } else
                            for (n = 0; n < t; n++) {
                                var a = this.Content.children[n];
                                o = this._gifts[this._sortArray[n]], r = void 0, r = e && e.Packs && e.Packs[o.Id] && e.Packs[o.Id].Items ? e.Packs[o.Id].Items[0] : 0, i = a.getComponent(m.default), this._data.Common.Type == b.ActivityType.NewbieCoupon && i instanceof P.default && i.SetActivityData(this._data._id, o.Id), i.SetName(o.Name, this._sortArray[n]).SetPurchaseLimit(o.LimitCount - r, o.LimitCount, o.LimitType).SetItems(o.Items, this._itemPool).SetPrice(o.Money, o.VipPoint, o.Discount)
                            }
                    l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_CHECK_BUNDINGBOX, this.ScrollView)
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - p.RpcComponent.Instance.ServerTime;
                    if (e < 0 && l.UIManager.Instance.BackUIPanel(), this._data.Common.Type == c.ActivityType.SupportHero) {
                        var t = this._supportOverTime - p.RpcComponent.Instance.ServerTime;
                        this.TimeRemainderLabel.string = t > 0 ? "campSupport_lastTime_support".ToUILocale().Fmt(g.default.ActivityTimeLeftFormat(t)) : "openServer_countDown".ToUILocale().Fmt(g.default.ActivityTimeLeftFormat(e))
                    } else this.TimeRemainderLabel.string = "openServer_countDown".ToUILocale().Fmt(g.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return "", e = this._banenerPath ? this._banenerPath : this._data.Common.ShowImage, [4, g.default.LoadActivityTexture(e)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._assets.push(t), this.BannerImage.spriteFrame = t, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.PeelGifts = function() {
                    for (var e = 0; e < this._gifts.length; e++)
                        for (var t = this._gifts[e].Id; this._gifts[e].LimitCount <= this.GetGiftBuyCount(t) && null != this._upToDown[t];) this._gifts[e] = this.GetGiftById(this._upToDown[t]), t = this._gifts[e].Id
                }, t.prototype.GetGiftById = function(e) {
                    for (var t = 0; t < this._data._Packs.length; t++)
                        if (this._data._Packs[t].Id == e) return this._data._Packs[t];
                    return null
                }, t.prototype.GetGiftBuyCount = function(e) {
                    return this._model && this._model.Packs && this._model.Packs[e] && this._model.Packs[e].Items && this._model.Packs[e].Items[0] ? this._model.Packs[e].Items[0] : 0
                }, t.prototype.OnDiscountBagButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.DiscountTicketBagPanel.Path)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemPool && this._itemPool.Clear(), this.unscheduleAllCallbacks()
                }, t.prototype.InitGiftConfig = function() {
                    this._gifts = [];
                    for (var e = 0; e < this._data._Packs.length; e++) {
                        var t = this._data._Packs[e];
                        null == t.UnlockCondition || 0 == t.UnlockCondition ? this._gifts.push(t) : this._upToDown[t.UnlockCondition] = t.Id
                    }
                }, t.prototype.InitCouponGiftConfig = function() {
                    var e = this._data;
                    this._gifts = [];
                    for (var t = 0; t < e.__LowPricePack.length; t++) {
                        var n = this._packsMap[e.__LowPricePack[t].PackId];
                        null == n.UnlockCondition || 0 == n.UnlockCondition ? this._gifts.push(n) : this._upToDown[n.UnlockCondition] = n.Id
                    }
                }, t.prototype.BoughtTimes = function(e) {
                    var t = this._model.Packs[e];
                    if (this._data.Common.Type != b.ActivityType.NewbieCoupon) return t ? t.Items[0] : 0;
                    var n = this._model.Packs[this._PackDiscountMap[e]];
                    return (t ? t.Items[0] : 0) + (n ? n.Items[0] : 0)
                }, i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.Button)], t.prototype, "DiscountBagButton", void 0), i([R(cc.Label)], t.prototype, "DiscountBagLabel", void 0), i([R(cc.Label)], t.prototype, "DiscountBagTipLabel", void 0), i([R(cc.RichText)], t.prototype, "TimeRemainderLabel", void 0), i([R(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([R(cc.Node)], t.prototype, "Content", void 0), i([R(cc.Sprite)], t.prototype, "BannerImage", void 0), i([R(v.default)], t.prototype, "CommonTaskTipComponent", void 0), i([T], t)
            }(l.BaseUIPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CouponGiftPackComponent": "CouponGiftPackComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent",
        "./LimitTimePurchasetListItem": "LimitTimePurchasetListItem",
        "./NodePool": "NodePool"
    }],
    LimitTimePurchasetListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "73750HJ7A5ARo4hRSTgc5H5", "LimitTimePurchasetListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Channel/ChannelManager"),
            p = e("../../Components/Components"),
            d = e("../Components/ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.PurchaseLimit = null, t.ItemContainer = null, t.GetLabel = null, t.GetValue = null, t.BuyButton = null, t.BuyButtonLabel = null, t.ShowOutTag = null, t.ShowOutLabel = null, t.DiscountTagNode = null, t.DiscountValue = null, t.DiscountLabel = null, t.RedDot = null, t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.BuyButton.node.on("click", this.OnBuyButtonClick, this), s.Game.EventDispatcher.On(c.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    this.BuyButton.node.off("click", this.OnBuyButtonClick, this), s.Game.EventDispatcher.Off(c.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.OnBuyButtonClick = function() {
                    s.Game.EventDispatcher.Emit(c.EventKeys.EVENT_MALL_BUTTONCLICK, this._index)
                }, t.prototype.SetName = function(e, t) {
                    return this.Name.string = e, this._index = t, this
                }, t.prototype.SetPurchaseLimit = function(e, t, n) {
                    return null == n || 0 == n ? (this.PurchaseLimit.node.parent.active = !1, this.ShowOutTag.active = !1, this.BuyButton.node.active = !0, this) : (this.PurchaseLimit.node.parent.active = !0, e > 0 ? (o = e.toString(), this.ShowOutTag.active = !1) : (o = "<color = ff0000>0</>", this.ShowOutTag.active = !0, this.ShowOutLabel.string = "bought".ToUILocale()), this.BuyButton.node.active = !this.ShowOutTag.active, this.PurchaseLimit.string = ("mall_buyLimit_" + n).ToUILocale().Fmt(o, t), this);
                    var o
                }, t.prototype.SetPrice = function(e, t, n) {
                    this.BuyButtonLabel.string = e > 0 ? u.default.Instance.CurrencySymbol + u.default.Instance.ExchangeMoney(e) : "shop_buyFree".ToUILocale(), this.GetLabel.node.parent.active = t > 0, this.GetLabel.string = "task_get_score_tag".ToUILocale(), this.GetValue.string = "x" + t, this.RedDot.active = null == e || 0 == e, this.DiscountTagNode.active = n > 0, l.default.Instance.SetDisCount(n, this.DiscountValue, this.DiscountLabel)
                }, t.prototype.SetItems = function(e, t) {
                    if (this._items.length > e.length) {
                        for (var n = 0; n < e.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = e.length; n < this._items.length; n++) this._items[n].node.active = !1, t.Put(this._items[n].node);
                        this._items.length = e.length
                    } else {
                        for (n = 0; n < this._items.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = this._items.length; n < e.length; n++) {
                            var o = t.Get();
                            o.name = "" + e[n].Items[0], o.active = !0, o.setParent(this.ItemContainer), this._items[n] = o.getComponent(d.ItemComponent), this.SetItem(n, e[n].Items)
                        }
                    }
                    return this
                }, t.prototype.SetItem = function(e, t) {
                    var n = p.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, t[0]);
                    this._items[e].Init({
                        ItemId: t[0],
                        Count: t[1]
                    }, n.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon)
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Label)], t.prototype, "GetLabel", void 0), i([y(cc.Label)], t.prototype, "GetValue", void 0), i([y(cc.Button)], t.prototype, "BuyButton", void 0), i([y(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([y(cc.Node)], t.prototype, "ShowOutTag", void 0), i([y(cc.Label)], t.prototype, "ShowOutLabel", void 0), i([y(cc.Node)], t.prototype, "DiscountTagNode", void 0), i([y(cc.Label)], t.prototype, "DiscountValue", void 0), i([y(cc.Label)], t.prototype, "DiscountLabel", void 0), i([y(cc.Node)], t.prototype, "RedDot", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LimitTimeTaskListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0c5a3qc1xpKpKxIFzlrjJ2q", "LimitTimeTaskListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.OriginalNode = null, t.SpecialNode = null, t.SpecialDesc = null, t.Title = null, t.LimitNode = null, t.PurchaseRichText = null, t.ItemContainer = null, t.MaskNode = null, t.ShowTag = null, t.ShowTagLabel = null, t.OrangeButton = null, t.BlueButton = null, t.GrayButton = null, t.GrayGetButton = null, t.OrangeButtonLabel = null, t.BlueButtonLabel = null, t.GrayButtonLabel = null, t.GrayGetButtonLabel = null, t._items = [], t.ITEMCONTAINER_NOT_SPECIAL_Y = -34, t.ITEMCONTAINER_SPECIAL_Y = -13, t.BLUEBTN_NOT_SPECIAL_Y = -27, t.SPECIAL_NODE_HEIGHT = 167, t.ORIGINAL_NODE_HEIGHT = 221, t._isLabelInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.BlueButton.node.on("click", this.OnBlueButtonClick, this), this.GrayButton.node.on("click", this.OnGrayButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.OrangeButton.node.off("click", this.OnOrangeButtonClick, this), this.BlueButton.node.off("click", this.OnBlueButtonClick, this), this.GrayButton.node.off("click", this.OnGrayButtonClick, this)
                }, t.prototype.OnOrangeButtonClick = function() {
                    u.Game.EventDispatcher.Emit(p.EventKeys.EVENT_MALL_BUTTONCLICK, this._index)
                }, t.prototype.OnBlueButtonClick = function() {
                    c.default.ShowPanelByGetWayId(this._task.GetWayId, !1)
                }, t.prototype.OnGrayButtonClick = function() {
                    c.default.ShowPanelByGetWayId(this._task.GetWayId, !1)
                }, t.prototype.SetTitle = function(e, t) {
                    return this.Title.string = "<outline width=3 color=#202434>" + c.default.GetTaskDesc(e) + "</o>", this._isLabelInit || (this.BlueButtonLabel.string = "task_goto".ToUILocale(), this.OrangeButtonLabel.string = "receive".ToUILocale(), this.GrayButtonLabel.string = "dailyInstance_unopen".ToUILocale(), this.GrayGetButtonLabel.string = "receive".ToUILocale(), this.ShowTagLabel.string = "already_receive".ToUILocale(), this._isLabelInit = !0), this.isShowSpecialModle(!1), this._index = t, this._task = e, this
                }, t.prototype.SetPurchaseLimit = function(e) {
                    var t = this,
                        n = l.DataCenter.Instance.GetDataById(d.UserTask_Model, e),
                        o = this._task.TotalCount,
                        r = n.Progress;
                    if (r < o) {
                        this.PurchaseRichText.string = "<outline width=3 color=#202434><color = #FF403E>" + r + "/" + o + "</c></outline>";
                        var i = null != this._task.GetWayId && this._task.GetWayId > 0;
                        this.BlueButton.node.active = i && this.IsModuleUnlock(), this.GrayButton.node.active = i && !this.BlueButton.node.active, this.ShowTag.active = !1, this.OrangeButton.node.active = !1, this.BlueButton.node.active || this.GrayButton.node.active ? this.GrayGetButton.node.active = !1 : this.GrayGetButton.node.active = !0
                    } else n.IsCompleted ? (this.ShowTag.active = !0, this.GrayButton.node.active = !1, this.OrangeButton.node.active = !1, this.BlueButton.node.active = !1, this.GrayGetButton.node.active = !1) : (this.PurchaseRichText.string = "<outline width=3 color=#202434><color = #6EEEA7>" + o + "/" + o + "</c></outline>", this.OrangeButton.node.active = !0, this.GrayButton.node.active = !1, this.BlueButton.node.active = !1, this.ShowTag.active = !1, this.GrayGetButton.node.active = !1);
                    this.MaskNode.active = this.ShowTag.active, this.LimitNode.active = !this.ShowTag.active, this._items.forEach(function(e) {
                        e.SetReceivedTagState(t.ShowTag.active)
                    })
                }, t.prototype.SetItems = function(e) {
                    var t = this._task.Rewards;
                    if (this._items.length > t.length) {
                        for (var n = 0; n < t.length; n++) this._items[n].node.active = !0, this.SetItem(n, t[n].Items);
                        for (n = t.length; n < this._items.length; n++) this._items[n].node.active = !1, e.Put(this._items[n].node);
                        this._items.length = t.length
                    } else {
                        for (n = 0; n < this._items.length; n++) this._items[n].node.active = !0, this.SetItem(n, t[n].Items);
                        for (n = this._items.length; n < t.length; n++) {
                            var o = e.Get();
                            o.active = !0, o.setParent(this.ItemContainer), this._items[n] = o.getComponent(a.ItemComponent), this.SetItem(n, t[n].Items)
                        }
                    }
                    return this
                }, t.prototype.SetItem = function(e, t) {
                    var n = l.ConfigDataComponent.Instance.GetConfigById(s.ItemBase_Config, t[0]);
                    this._items[e].Init({
                        ItemId: t[0],
                        Count: t[1]
                    }, n.Star ? a.ItemComponentType.ItemWithStar : a.ItemComponentType.ItemCommon)
                }, t.prototype.IsModuleUnlock = function() {
                    if (!this._task.GetWayId) return !0;
                    var e = l.ConfigDataComponent.Instance.GetConfigById(s.ItemGetWay_Config, this._task.GetWayId);
                    return null == e.GameModuleId || 0 == e.GameModuleId || c.default.Instance.IsGameModuleUnlock(e.GameModuleId)[0]
                }, t.prototype.SetSpecialModle = function(e, t) {
                    this.BlueButtonLabel.string = "task_goto".ToUILocale(), this._task = e, this.isShowSpecialModle(!0);
                    var n = null != this._task.GetWayId && this._task.GetWayId > 0;
                    this.BlueButton.node.active = n && this.IsModuleUnlock(), this.SpecialDesc && (this.SpecialDesc.string = t)
                }, t.prototype.isShowSpecialModle = function(e) {
                    this.SpecialNode && (this.SpecialNode.active = e), this.OriginalNode && (this.OriginalNode.active = !e), this.ItemContainer && (this.ItemContainer.y = e ? this.ITEMCONTAINER_SPECIAL_Y : this.ITEMCONTAINER_NOT_SPECIAL_Y), this.BlueButton && (this.BlueButton.node.y = e ? 0 : this.BLUEBTN_NOT_SPECIAL_Y), this.node.height = e ? this.SPECIAL_NODE_HEIGHT : this.ORIGINAL_NODE_HEIGHT
                }, i([y(cc.Node)], t.prototype, "OriginalNode", void 0), i([y(cc.Node)], t.prototype, "SpecialNode", void 0), i([y(cc.Label)], t.prototype, "SpecialDesc", void 0), i([y(cc.RichText)], t.prototype, "Title", void 0), i([y(cc.Node)], t.prototype, "LimitNode", void 0), i([y(cc.RichText)], t.prototype, "PurchaseRichText", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Node)], t.prototype, "MaskNode", void 0), i([y(cc.Node)], t.prototype, "ShowTag", void 0), i([y(cc.Label)], t.prototype, "ShowTagLabel", void 0), i([y(cc.Button)], t.prototype, "OrangeButton", void 0), i([y(cc.Button)], t.prototype, "BlueButton", void 0), i([y(cc.Button)], t.prototype, "GrayButton", void 0), i([y(cc.Button)], t.prototype, "GrayGetButton", void 0), i([y(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([y(cc.Label)], t.prototype, "BlueButtonLabel", void 0), i([y(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([y(cc.Label)], t.prototype, "GrayGetButtonLabel", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LimitTimeTaskPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9dec7kmqEdKiokisK6WBDUj", "LimitTimeTaskPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GameEventsListener"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/RpcComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/CustomLayout"),
            _ = e("../Components/ItemComponent"),
            C = e("./LimitTimeTaskListItem"),
            v = e("./NodePool"),
            b = e("../../../../Proto/Static/RpcProto"),
            S = e("../Components/ListLayout"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.Banner = 0] = "Banner", e[e.HeroBg = 1] = "HeroBg"
        })(l || (l = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed, !0, !1, !0), t.Title = null, t.HeroBgTitle = null, t.View = null, t.ListLayout = null, t.HeroBannerBgNode = null, t.HeroBannerImage = null, t.NormalBannerBgNode = null, t.BannerImage = null, t.BannerMultiLangImage = null, t.HeroBgTimeRichText = null, t.BannerTimeRichText = null, t.PanelNode = null, t._initLayout = !0, t._sortArray = [], t.PanelYPosition = [-196, -223], t.PanelHeight = [1011, 990], t._loadAssets = [], t._specialTaskIds = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), u.Game.EventDispatcher.On(d.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), u.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), u.Game.EventDispatcher.Off(d.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), u.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("OpenServerActivity/Private/LimitTimeTaskListItem", cc.Prefab), o = this.LoadDynamicAsset("OpenServerActivity/Private/LimitTimeTaskListItem2", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._itemPrefab = e[0], r._singlePrefab = e[1], r._singlePrefab2 = e[2], r._itemPool = new v.default(r._itemPrefab)
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitData = function(t) {
                var n = this;
                e.prototype.InitData.call(this);
                var o = t[0];
                this._data = y.DataCenter.Instance.ActivityConfigs[o], this.SetBanner(), this._endTime = p.default.Instance.ComputeDeadTime(this._data.Common), this._specialTaskIds = this._data.CustomPart.SpecialTaskIds, this._sortArray = [];
                for (var r = 0; r < this._data._Tasks.length; r++) this._sortArray[r] = r;
                void 0 === this._localeMap && (this._localeMap = {}, this._data._Locale.forEach(function(e) {
                    n._localeMap[e.Id] = e
                })), this.SetUIState()
            }, t.prototype.SetUIState = function() {
                var e = this._data.CustomPart.BannerType || 0;
                e == l.HeroBg ? (this.HeroBannerBgNode.active = !0, this.NormalBannerBgNode.active = !1, this.HeroBgTitle.string = this._data.Common.Title) : (this.HeroBannerBgNode.active = !1, this.NormalBannerBgNode.active = !0, this.Title.string = this._data.Common.Title), this.PanelNode.y = this.PanelYPosition[e], this.PanelNode.height = this.PanelHeight[e]
            }, t.prototype.DisPlay = function(t) {
                var n, o, r = this;
                e.prototype.DisPlay.call(this, t);
                var i = 1e4 * this._data._id;
                this._sortArray.sort(function(e, t) {
                    var a = r._specialTaskIds.indexOf(r._data._Tasks[e].Id) >= 0,
                        s = r._specialTaskIds.indexOf(r._data._Tasks[t].Id) >= 0;
                    if (a && !s) return -1;
                    if (s && !a) return 1;
                    if (n = y.DataCenter.Instance.GetDataById(c.UserTask_Model, i + r._data._Tasks[e].Id), o = y.DataCenter.Instance.GetDataById(c.UserTask_Model, i + r._data._Tasks[t].Id), n && n.IsCompleted) return 1;
                    if (o && o.IsCompleted) return -1;
                    var l = 9999;
                    n && (l = r._data._Tasks[e].TotalCount - n.Progress);
                    var u = 9999;
                    return o && (u = r._data._Tasks[t].TotalCount - o.Progress), l - u
                }), this._initLayout && (this._data.CustomPart.BannerType == l.HeroBg ? (this.View.CellHeight = this._singlePrefab.data.height, this.View.Init(this._singlePrefab)) : (this.View.enabled = !1, this.ListLayout.Init(this._singlePrefab2, this.RefreshListLayout.bind(this))), this._initLayout = !1), this._data.CustomPart.BannerType == l.HeroBg ? this.View.RenderLayOut(this._data._Tasks.length) : this.ListLayout.RenderLayOut(this._data._Tasks.length, 0), h.default.Instance._zeroRefreshPanel = this, t || this.SetTime()
            }, t.prototype.SetTime = function() {
                this.CountDownActivityTime(), this.schedule(this.CountDownActivityTime, 1)
            }, t.prototype.CountDownActivityTime = function() {
                var e = g.RpcComponent.Instance.ServerTime,
                    t = this._endTime - e;
                if (t < 0) return this.unschedule(this.CountDownActivityTime), void u.UIManager.Instance.BackUIPanel();
                this._data.CustomPart.BannerType == l.HeroBg ? this.HeroBgTimeRichText.string = "ActiveCollection_DeadlineTimeRichText".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(t)) : this.BannerTimeRichText.string = "ActiveCollection_DeadlineTimeRichText".ToUILocale().Fmt(p.default.ActivityTimeLeftFormat(t))
            }, t.prototype.RefreshCustomLayout = function(e, t) {
                var n, o = this;
                t == this.View && e.forEach(function(e, t) {
                    var r = o._data._Tasks[o._sortArray[t]];
                    n = 1e4 * o._data._id + r.Id, e.getComponent(C.default).SetTitle(r, o._sortArray[t]).SetItems(o._itemPool).SetPurchaseLimit(n)
                })
            }, t.prototype.RefreshListLayout = function(e, t, n) {
                var o, r = this._data._Tasks[this._sortArray[n]];
                o = 1e4 * this._data._id + r.Id;
                var i = e.getComponent(C.default);
                if (this._specialTaskIds.indexOf(r.Id) >= 0) {
                    var a = this._localeMap[r.Id].Content;
                    i.SetSpecialModle(r, a), i.SetItems(this._itemPool)
                } else i.SetTitle(r, this._sortArray[n]), i.SetItems(this._itemPool), i.SetPurchaseLimit(o)
            }, t.prototype.OnButtonClick = function(e) {
                var t = this,
                    n = [];
                if (this._data.Common.IsSingle) {
                    var o = this._data._Tasks[e],
                        r = 1e4 * this._data._id + o.Id,
                        i = y.DataCenter.Instance.GetDataById(c.UserTask_Model, r);
                    i && !i.IsCompleted && i.Progress >= o.TotalCount && n.push(o.Id)
                } else this._data._Tasks.forEach(function(e) {
                    var o = 1e4 * t._data._id + e.Id,
                        r = y.DataCenter.Instance.GetDataById(c.UserTask_Model, o);
                    r && !r.IsCompleted && r.Progress >= e.TotalCount && n.push(e.Id)
                });
                if (n.length > 0) {
                    var a = new c.Req_Activity_CommonTaskReward;
                    a.ActivityId = this._data._id, a.TaskIds = n, g.RpcComponent.Instance.Call(a, function(e) {
                        m.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t.CheckLimitTaskIsGetAll()
                    })
                }
            }, t.prototype.CheckLimitTaskIsGetAll = function() {
                for (var e = 1e4 * this._data._id, t = 0; t < this._data._Tasks.length; t++)
                    if (!y.DataCenter.Instance.GetDataById(b.UserTask_Model, e + this._data._Tasks[t].Id).IsCompleted) return;
                u.Game.EventDispatcher.Emit(d.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, this._data._id, -1)
            }, t.prototype.OnItemClick = function(e, t) {
                "RewardGrid3" == t.parent.name && m.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
            }, t.prototype.SetBanner = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e = this._data.Common.Pictures, this._data.CustomPart.BannerType != l.HeroBg ? [3, 2] : [4, p.default.LoadActivityTexture(e[0])];
                            case 1:
                                return t = a.sent(), this.isValid ? (this._loadAssets.push(t), this.HeroBannerImage.spriteFrame = t, [3, 4]) : (u.AssetsManager.Instance.UnloadAsset(t), [2]);
                            case 2:
                                return n = e[0], o = e[1], r = [p.default.LoadActivityTexture(n)], o && r.push(p.default.LoadActivityTexture(o)), [4, Promise.all(r).then(function(e) {
                                    if (!i.isValid)
                                        for (var t = 0; t < e.length; t++) u.AssetsManager.Instance.UnloadAsset(e[t]);
                                    for (t = 0; t < e.length; t++) i._loadAssets.push(e[t]);
                                    i.BannerImage.spriteFrame = e[0], e[1] && (i.BannerMultiLangImage.spriteFrame = e[1])
                                })];
                            case 3:
                                a.sent(), a.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                if (this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear(), this._loadAssets) {
                    for (var e = 0; e < this._loadAssets.length; e++) u.AssetsManager.Instance.UnloadAsset(this._loadAssets[e]);
                    this._loadAssets = null
                }
            }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Label)], t.prototype, "HeroBgTitle", void 0), i([A(I.default)], t.prototype, "View", void 0), i([A(S.default)], t.prototype, "ListLayout", void 0), i([A(cc.Node)], t.prototype, "HeroBannerBgNode", void 0), i([A(cc.Sprite)], t.prototype, "HeroBannerImage", void 0), i([A(cc.Node)], t.prototype, "NormalBannerBgNode", void 0), i([A(cc.Sprite)], t.prototype, "BannerImage", void 0), i([A(cc.Sprite)], t.prototype, "BannerMultiLangImage", void 0), i([A(cc.RichText)], t.prototype, "HeroBgTimeRichText", void 0), i([A(cc.RichText)], t.prototype, "BannerTimeRichText", void 0), i([A(cc.Node)], t.prototype, "PanelNode", void 0), i([P], t)
        }(u.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/ListLayout": "ListLayout",
        "./LimitTimeTaskListItem": "LimitTimeTaskListItem",
        "./NodePool": "NodePool"
    }],
    LimitedActivitySevenDaysWarTokenPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ce990+SHAhIPo34P+Ylhfd9", "LimitedActivitySevenDaysWarTokenPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/ItemComponent"),
            g = e("./SevenDaysWarTokenComponent"),
            m = e("./NodePool"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Channel/ChannelManager"),
            v = e("../../../Consts/GameEventIds"),
            b = e("../../Auxiliary/GameEventsListener"),
            S = e("../../Components/Components"),
            w = e("../../../EZFramework/EZFramework"),
            P = e("./CommonTaskTipComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RadishTip = null, t.AttainLabel = null, t.AttainValue = null, t.ButtonLabel = null, t.TagLogLabel = null, t.TagSupplyLabel = null, t.TagVIPSupplyLabel = null, t.RemainderTimeLabel = null, t.RemainderTimeValue = null, t.RuleButton = null, t.BuyButton = null, t.View = null, t.Diamond = null, t.BannerImage = null, t.DiscountLabel = null, t.DiscountValue = null, t.BoughtTag = null, t.ShowAvatarNode = null, t.NameSprite = null, t.CommonTaskTipComponent = null, t._initLayout = !0, t._avatar = null, t._rewardId = 0, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnGetButtonClick, this), l.Game.EventDispatcher.On(v.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnGetButtonClick, this), l.Game.EventDispatcher.Off(v.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(I.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/SevenDaysWarTokenComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1], o._itemPool = new m.default(o._itemPrefab)
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "mall_activeCommand".ToUILocale(), this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.TagLogLabel.string = "timeLimited_log".ToUILocale(), this.TagSupplyLabel.string = "timeLimited_freeSupply".ToUILocale(), this.TagVIPSupplyLabel.string = "timeLimited_VIPSupply".ToUILocale(), this.RemainderTimeLabel.string = "gift_remainderTime".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.Diamond.node.on(cc.Node.EventType.TOUCH_END, this.OnDiamondTouch, this), this.CommonTaskTipComponent.InitData()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._data = p.DataCenter.Instance.ActivityConfigs[n], this._deadLine = _.default.Instance.ComputeDeadTime(this._data.Common), _.default.Instance.SetDisCount(this._data._Packs[0].Discount, this.DiscountValue, this.DiscountLabel), this._data.CustomPart.RewardId - 1 < this._data.CustomPart.Rewards.length && (this._rewardId = this._data.CustomPart.Rewards[this._data.CustomPart.RewardId - 1].Items[0]), this.SetBanner()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.AttainValue.string = this._data._Packs[0].VipPoint.toString(), this.ButtonLabel.string = "timeLimited_unlockWhile".ToUILocale().Fmt(C.default.Instance.CurrencySymbol + C.default.Instance.ExchangeMoney(this._data._Packs[0].Money)), this.RadishTip.string = "sevenDaysWarToken_afterUnlockSevenDays".ToUILocale().Fmt(this._data.CustomPart.RewardId), this.SetBiggestReward();
                    var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._data._id);
                    l.EZLog.Log("MODEL = ", n), this._isBought = n.IntArray[0] > 0, this._hasGotNormal = n.IntArray[1], this._hasGotVIP = n.IntArray[2], this._boughtTime = n.IntArray[0], this.BuyButton.node.active = !this._isBought, this.BoughtTag.node.active = this._isBought, this.CountDown(), this.schedule(this.CountDown, 1), this._initLayout && (this.View.Init(this._singlePrefab), this._initLayout = !1), this.View.RenderLayOut(7), b.default.Instance._zeroRefreshPanel = this, this.SetAvatarNode()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "timeLimited_sevenToken_RuleMainTitle".ToUILocale(),
                        titles: ["timeLimited_sevenToken_RuleSubtitle".ToUILocale()],
                        contents: ["timeLimited_sevenToken_RuleText".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnBuyButtonClick = function() {
                    C.default.Instance.Pay(this._data._Packs[0].Id, this._data._id)
                }, t.prototype.OnDiamondTouch = function() {
                    this._rewardId && l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_ITEM_CLICK, this._rewardId, this.Diamond.node)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.View && e.forEach(function(e, t) {
                        e.getComponent(g.default).SetDay(t).SetReward([n._data.CustomPart.FreeRewards[t].Items[0], n._data.CustomPart.FreeRewards[t].Items[1]], [n._data.CustomPart.Rewards[t].Items[0], n._data.CustomPart.Rewards[t].Items[1]], n._itemPool).SetCanGet(n._canGet, t < n._hasGotNormal, t < n._hasGotVIP, n._isBought)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemContainer" == t.parent.name ? d.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t) : "ItemContainer3" == t.parent.name && d.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnGetButtonClick = function(e) {
                    if (1 != e || this._isBought) {
                        var t = new u.Req_Activity_ActiveWarReceiveRewards;
                        t.ActivityId = this._data._id, p.RpcComponent.Instance.Call(t, function(e) {
                            d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else d.UIUtlity.ShowFloatingHint("GiftCode_UnlockVIPToGet".ToUILocale())
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - p.RpcComponent.Instance.ServerTime;
                    e < 0 && l.UIManager.Instance.BackUIPanel(), this.SetCanGet(), this.RemainderTimeValue.string = _.default.ActivityTimeLeftFormat(e)
                }, t.prototype.SetBiggestReward = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._rewardId ? (e = _.default.Instance.GetItemPathById(this._rewardId), [4, this.LoadDynamicAsset(e, cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    if (t = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this.Diamond.spriteFrame = t, n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetCanGet = function() {
                    this._canGet = _.default.Instance.ComputeContiuousTime(this._data.Common)
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return (e = this._data.Common.ShowImage.split("|")).length > 1 ? [4, _.default.LoadActivityTexture(e[0])] : [3, 3];
                                case 1:
                                    return t = r.sent(), this.isValid ? (this.BannerImage.spriteFrame = t, this._assets.push(t), [4, _.default.LoadActivityTexture(e[1])]) : (l.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    return n = r.sent(), this.isValid ? (this.NameSprite.spriteFrame = n, this._assets.push(n), [3, 5]) : (l.AssetsManager.Instance.UnloadAsset(n), [2]);
                                case 3:
                                    return [4, _.default.LoadActivityTexture(this._data.Common.ShowImage)];
                                case 4:
                                    if (o = r.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this.BannerImage.spriteFrame = o, this._assets.push(o), r.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetAvatarNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (!(this._data.CustomPart.ShowId && this._data.CustomPart.ShowId.length > 0)) return [3, 11];
                                    if (this._avatar) return [3, 11];
                                    switch (e = this._data.CustomPart.ShowId[0], t = null, n = void 0, e) {
                                        case 1:
                                            return [3, 1];
                                        case 2:
                                            return [3, 4];
                                        case 3:
                                            return [3, 6]
                                    }
                                    return [3, 9];
                                case 1:
                                    return o = this._data.CustomPart.ShowId[1], (n = S.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, o)) ? [4, this.LoadDynamicAsset(n.UIAvatar + "/Avatar")] : [3, 3];
                                case 2:
                                    t = s.sent(), s.label = 3;
                                case 3:
                                    return [3, 10];
                                case 4:
                                    return r = this._data.CustomPart.ShowId[1], [4, this.LoadDynamicAsset("AdultPicture" + r + "/Avatar")];
                                case 5:
                                    return t = s.sent(), [3, 10];
                                case 6:
                                    return i = this._data.CustomPart.ShowId[1], (a = S.ConfigDataComponent.Instance.GetConfigById(c.HeroSkin_Config, i)) ? [4, this.LoadDynamicAsset(a.UIAvatar + "/Avatar")] : [3, 8];
                                case 7:
                                    t = s.sent(), s.label = 8;
                                case 8:
                                case 9:
                                    return [3, 10];
                                case 10:
                                    if (!this.isValid) return w.AssetsManager.Instance.UnloadAsset(t), [2];
                                    (l = cc.instantiate(t)).setParent(this.ShowAvatarNode), n && _.default.Instance.SetHeroAvatarSkin(l, n.Id, n.StarLevel), this._avatar = l, s.label = 11;
                                case 11:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t), this.unschedule(this.CountDown), this._assets.forEach(function(e) {
                        w.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemPool && this._itemPool.Clear()
                }, i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.RichText)], t.prototype, "RadishTip", void 0), i([R(cc.Label)], t.prototype, "AttainLabel", void 0), i([R(cc.Label)], t.prototype, "AttainValue", void 0), i([R(cc.Label)], t.prototype, "ButtonLabel", void 0), i([R(cc.Label)], t.prototype, "TagLogLabel", void 0), i([R(cc.Label)], t.prototype, "TagSupplyLabel", void 0), i([R(cc.Label)], t.prototype, "TagVIPSupplyLabel", void 0), i([R(cc.Label)], t.prototype, "RemainderTimeLabel", void 0), i([R(cc.Label)], t.prototype, "RemainderTimeValue", void 0), i([R(cc.Button)], t.prototype, "RuleButton", void 0), i([R(cc.Button)], t.prototype, "BuyButton", void 0), i([R(h.default)], t.prototype, "View", void 0), i([R(cc.Sprite)], t.prototype, "Diamond", void 0), i([R(cc.Sprite)], t.prototype, "BannerImage", void 0), i([R(cc.Label)], t.prototype, "DiscountLabel", void 0), i([R(cc.Label)], t.prototype, "DiscountValue", void 0), i([R(cc.Sprite)], t.prototype, "BoughtTag", void 0), i([R(cc.Node)], t.prototype, "ShowAvatarNode", void 0), i([R(cc.Sprite)], t.prototype, "NameSprite", void 0), i([R(P.default)], t.prototype, "CommonTaskTipComponent", void 0), i([T], t)
            }(l.BaseUIPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameEventsListener": "GameEventsListener",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent",
        "./NodePool": "NodePool",
        "./SevenDaysWarTokenComponent": "SevenDaysWarTokenComponent"
    }],
    LinkedList: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "da0b8JneY1Njb9keJmIl3cC", "LinkedList"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.LinkedList = n.LinkedListNode = void 0;
        var o = cc._decorator,
            r = (o.ccclass, o.property, function(e) {
                this.elem = e, this.next = null
            });
        n.LinkedListNode = r;
        var i = function() {
            function e() {
                this.head = null, this.len = 0
            }
            return e.prototype.getHead = function() {
                return this.head
            }, e.prototype.getLength = function() {
                return this.len
            }, e.prototype.append = function(e) {
                var t, n = new r(e);
                if (null === this.head) this.head = n;
                else {
                    for (t = this.head; t.next;) t = t.next;
                    t.next = n
                }
                this.len++
            }, e.prototype.removeAt = function(e) {
                if (e > -1 && e < this.len) {
                    var t = this.head,
                        n = void 0,
                        o = 0;
                    if (0 === e) this.head = t.next;
                    else {
                        for (; o++ < e;) n = t, t = t.next;
                        n.next = t.next
                    }
                    return this.len--, t.elem
                }
                return null
            }, e.prototype.insert = function(e, t) {
                if (t > -1 && t < this.len) {
                    var n = this.head,
                        o = 0,
                        i = void 0,
                        a = new r(e);
                    if (0 === t) a.next = n, this.head = a;
                    else {
                        for (; o++ < t;) i = n, n = n.next;
                        a.next = n, i.next = a
                    }
                    return this.len++, !0
                }
                return !1
            }, e
        }();
        n.LinkedList = i, cc._RF.pop()
    }, {}],
    ListAccountCompnent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7f071oT8LVDhY9HJMPx81Jn", "ListAccountCompnent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Channel/ChannelManager"),
            s = e("../../../ShareConsts/EnumType"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelectBgNode = null, t.IconLabel = null, t.Icon = null, t.UserNameLabel = null, t.LoginHintLabel = null, t.DeleteEventNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnSelectAccount, this), this.DeleteEventNode.on(cc.Node.EventType.TOUCH_END, this.OnDeleteAccount, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnSelectAccount, this), this.DeleteEventNode.off(cc.Node.EventType.TOUCH_END, this.OnDeleteAccount, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._accountInfo = e, this._onSelectCallBack = n, this.SelectBgNode.active = t, this.LoginHintLabel.string = o, e.Name ? (this.UserNameLabel.node.active = !0, this.UserNameLabel.string = e.Name) : this.UserNameLabel.node.active = !1, e.Type == s.EZUserAccountType.Visitor ? (this.DeleteEventNode.active = !1, this.IconLabel.node.active = !0, this.Icon.node.active = !1, this.IconLabel.string = "AccountInfoPanelText_Visitor".ToUILocale()) : (this.DeleteEventNode.active = !0, this.IconLabel.node.active = !1, this.Icon.node.active = !0, this.Icon.spriteFrame = r)
                }, t.prototype.OnSelectAccount = function() {
                    this._onSelectCallBack && this._onSelectCallBack(this._accountInfo)
                }, t.prototype.OnDeleteAccount = function() {
                    a.default.Instance.StorageAccountLog[this._accountInfo.Id] && (delete a.default.Instance.StorageAccountLog[this._accountInfo.Id], a.default.Instance.SaveAccountLog(), this._onSelectCallBack && this._onSelectCallBack())
                }, i([u(cc.Node)], t.prototype, "SelectBgNode", void 0), i([u(cc.Label)], t.prototype, "IconLabel", void 0), i([u(cc.Sprite)], t.prototype, "Icon", void 0), i([u(cc.Label)], t.prototype, "UserNameLabel", void 0), i([u(cc.Label)], t.prototype, "LoginHintLabel", void 0), i([u(cc.Node)], t.prototype, "DeleteEventNode", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Channel/ChannelManager": "ChannelManager"
    }],
    ListLayout: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f4434UCUidIjYs/aTUc1DF1", "ListLayout");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = cc._decorator,
            l = s.ccclass,
            c = s.property;
        (function(e) {
            e[e.Top_Bottom = 0] = "Top_Bottom", e[e.Bottom_Top = 1] = "Bottom_Top"
        })(a || (a = {}));
        var u = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LayoutMode = a.Top_Bottom, t.ScrollView = null, t.SpaceY = 0, t._dataCount = 13, t._firstIndex = 0, t._lastIndex = 0, t._firstRealIndex = 0, t._lastRealIndex = 0, t._isScrollingToBottom = !1, t._layoutDirty = !1, t
            }
            return r(t, e), t.prototype.Init = function(e, t, n) {
                void 0 === t && (t = null), void 0 === n && (n = !1), this.ScrollView.node.on("scrolling", this.OnScrolling, this), this.ScrollView.node.on("scroll-ended", this.OnScrollEnd, this), this._cellPrefab = e, this._cellAssetPools = [], this._cellAssetArray = [], this._onInitializeItem = t
            }, t.prototype.RenderLayOut = function(e, t) {
                this.ScrollView.stopAutoScroll(), this._dataCount = e, this.CalculateLayout(t)
            }, t.prototype.CreatePrefab = function() {
                var e = this._cellAssetPools[this._usedCellIndex];
                if (e) return e.Node.active = !0, this._usedCellIndex++, e;
                var t = cc.instantiate(this._cellPrefab);
                return t.on(cc.Node.EventType.SIZE_CHANGED, this._doLayoutDirty, this), t.parent = this.node, (e = {
                    Node: t,
                    CellIndex: this._usedCellIndex,
                    RealIndex: 0
                }).Node.active = !0, this._cellAssetPools.push(e), this._usedCellIndex++, e
            }, t.prototype._doLayoutDirty = function() {
                this._layoutDirty = !0
            }, t.prototype.update = function() {
                this._layoutDirty && this.node.children.length > 0 && (this._layoutDirty = !1, this.ReSizeChildNode())
            }, t.prototype.ReSizeChildNode = function() {
                var e = this._cellAssetArray[this._firstIndex];
                if (e) {
                    for (var t = this.GetBottomY(e.Node), n = this._firstIndex, o = 1; o < this._usedCellIndex; o++) n = ++n >= this._usedCellIndex ? 0 : n, (e = this._cellAssetArray[n]).Node.y = t - (1 - e.Node.anchorY) * e.Node.height - this.SpaceY, t = t - e.Node.height - this.SpaceY;
                    var r = this.GetTopY(this._cellAssetArray[this._firstIndex].Node) - this.GetBottomY(this._cellAssetArray[this._lastIndex].Node);
                    this.node.anchorY = (-this.GetTopY(this._cellAssetArray[this._firstIndex].Node) + r) / r, this.node.height = r
                }
            }, t.prototype.SetMaxCount = function(e) {
                if (this._dataCount = e, this._dataCount) {
                    for (var t = this.node.height; t < this.ScrollView.node.height && this._usedCellIndex < this._dataCount;) {
                        var n = this.CreatePrefab();
                        this._cellAssetArray.push(n), this._lastRealIndex++, n.RealIndex = this._lastRealIndex, this.UpdateItem(n);
                        var o = 0;
                        if (-1 != this._lastIndex) {
                            t += this.SpaceY;
                            var r = this._cellAssetArray[this._lastIndex];
                            o = this.GetBottomY(r.Node)
                        }
                        this._lastIndex++, n.Node.y = o - (1 - n.Node.anchorY) * n.Node.height - this.SpaceY, t += n.Node.height
                    }
                    0 == this._usedCellIndex ? this.node.height = 0 : (this.node.anchorY = (-this.GetTopY(this._cellAssetArray[this._firstIndex].Node) + t) / t, this.node.height = t), this._layoutDirty = !1
                }
            }, t.prototype.IsScrollViewInBottom = function(e) {
                return void 0 === e && (e = .1), this.ScrollView.getScrollOffset().y + this.ScrollView.node.height + e >= this.node.height
            }, t.prototype.IsInScrollingToBottom = function() {
                return this._isScrollingToBottom
            }, t.prototype.IsOverstepScrollView = function() {
                return this.node.height > this.ScrollView.node.height
            }, t.prototype.ScrollToBottom = function() {
                if (this._lastRealIndex + 1 < this._dataCount)
                    for (; this._lastRealIndex + 1 < this._dataCount;) this.ScrollView.scrollToBottom(), this.AddItemToBottom(), this._lastRealIndex + 1 >= this._dataCount && (this.ScrollView.scrollToBottom(.5), this._isScrollingToBottom = !0);
                else this.ScrollView.scrollToBottom()
            }, t.prototype.GetLastIndex = function() {
                return this._lastRealIndex
            }, t.prototype.OnScrollEnd = function() {
                this._isScrollingToBottom = !1
            }, t.prototype.CalculateLayout = function(e) {
                e <= 0 && (e = 1), this._usedCellIndex = 0, this._firstIndex = 0, this._firstRealIndex = 0, this._lastRealIndex = -1, this._cellAssetArray = [], this._lastIndex = -1;
                for (var t = 0; t < this._cellAssetPools.length; t++) this._cellAssetPools[t].Node.active = !1;
                if (this._dataCount) {
                    this._firstRealIndex = e - 1, this._lastRealIndex = e - 2;
                    for (var n = -this.SpaceY; n <= this.ScrollView.node.height && this._lastRealIndex + 1 < this._dataCount;) {
                        var o = this.CreatePrefab();
                        this._cellAssetArray.push(o), this._lastRealIndex++, o.RealIndex = this._lastRealIndex, this.UpdateItem(o), n += this.SpaceY, o.Node.y = -n - (1 - o.Node.anchorY) * o.Node.height, n += o.Node.height
                    }
                    for (var r = !1; n <= this.ScrollView.node.height && this._firstRealIndex > 0;) {
                        r = !0, o = this.CreatePrefab();
                        var i = this.GetTopY(this._cellAssetArray[0].Node);
                        this._cellAssetArray.splice(0, 0, o), this._firstRealIndex--, o.RealIndex = this._firstRealIndex, this.UpdateItem(o), o.Node.y = i + o.Node.anchorY * o.Node.height + this.SpaceY, n += o.Node.height + this.SpaceY
                    }
                    0 == this._usedCellIndex ? (this.node.height = 0, this._lastIndex = 0) : (this.node.anchorY = (-this.GetTopY(this._cellAssetArray[this._firstIndex].Node) + n) / n, this.node.height = n, this._lastIndex = this._usedCellIndex - 1), r && n >= this.ScrollView.node.height ? this.ScrollView.scrollToBottom() : this.ScrollView.scrollToTop()
                } else this.node.height = 0, this.node.anchorY = 0;
                this._layoutDirty = !1
            }, t.prototype.OnScrolling = function() {
                var e = this.ScrollView.getScrollOffset().y;
                if (this._lastRealIndex + 1 < this._dataCount && e + this.ScrollView.node.height > this.node.height) this.LayoutMode === a.Top_Bottom && (this.AddItemToBottom(), this.ScrollView._outOfBoundaryAmountDirty = !0);
                else {
                    var t = this._cellAssetArray[this._firstIndex];
                    if (this.LayoutMode === a.Top_Bottom) {
                        var n = this.GetTopY(t.Node);
                        if (e < 0 && this._firstRealIndex > 0) {
                            var o = this._cellAssetArray[this._lastIndex],
                                r = void 0;
                            this.node.height - (e + this.ScrollView.node.height) > o.Node.height ? (r = o, o.Node.height, this._firstIndex = this._lastIndex, this._lastIndex--, this._lastIndex = this._lastIndex < 0 ? this._usedCellIndex - 1 : this._lastIndex, this._lastRealIndex--) : (r = this.CreatePrefab(), this._cellAssetArray.splice(this._firstIndex, 0, r), 0 == this._firstIndex && this._lastIndex++), this._firstRealIndex = this._firstRealIndex - 1, r.RealIndex = this._firstRealIndex, this.UpdateItem(r), r.Node.y = n + r.Node.anchorY * r.Node.height + this.SpaceY;
                            var i = this.GetTopY(this._cellAssetArray[this._firstIndex].Node),
                                s = i - this.GetBottomY(this._cellAssetArray[this._lastIndex].Node);
                            this.node.anchorY = (-i + s) / s, this.node.height = s, this._layoutDirty = !1, this.ScrollView._outOfBoundaryAmountDirty = !0
                        }
                    }
                }
            }, t.prototype.AddItemToBottom = function() {
                var e, t = this.ScrollView.getScrollOffset().y,
                    n = this._cellAssetArray[this._lastIndex],
                    o = this._cellAssetArray[this._firstIndex];
                Math.abs(t) > Math.abs(o.Node.height) ? (e = o, this._lastIndex = this._firstIndex, this._firstIndex++, this._firstIndex = this._firstIndex >= this._usedCellIndex ? 0 : this._firstIndex, this._firstRealIndex++) : (e = this.CreatePrefab(), this._cellAssetArray.splice(this._lastIndex + 1, 0, e), this._lastIndex++, 0 != this._firstIndex && this._firstIndex++), this._lastRealIndex = this._lastRealIndex + 1, e.RealIndex = this._lastRealIndex, this.UpdateItem(e);
                var r = this.GetBottomY(n.Node);
                e.Node.y = r - (1 - e.Node.anchorY) * e.Node.height - this.SpaceY;
                var i = this.GetTopY(this._cellAssetArray[this._firstIndex].Node),
                    a = i - this.GetBottomY(e.Node);
                this.node.anchorY = (-i + a) / a, this.node.height = a, this._layoutDirty = !1
            }, t.prototype.GetTopY = function(e) {
                var t = e.anchorY;
                return t = 1 - t, e.y + t * e.height
            }, t.prototype.GetBottomY = function(e) {
                var t = e.anchorY;
                return e.y - t * e.height
            }, t.prototype.ReRender = function() {
                for (var e = 0; e < this._cellAssetArray.length; e++) this.UpdateItem(this._cellAssetArray[e])
            }, t.prototype.UpdateItem = function(e) {
                null != this._onInitializeItem && this._onInitializeItem(e.Node, e.CellIndex, e.RealIndex)
            }, i([c({
                type: cc.Enum(a),
                displayName: "\u5e03\u5c40\u65b9\u5f0f"
            })], t.prototype, "LayoutMode", void 0), i([c(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([c], t.prototype, "SpaceY", void 0), i([l], t)
        }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {}],
    LoadAssetHelper: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8b428EnNltNGbgwlk7szzxF", "LoadAssetHelper");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = (u.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._assetParams = {}, t
                }
                return r(t, e), t.prototype.LoadPrefab = function(e, t, n, o, r) {
                    return void 0 === n && (n = null), void 0 === o && (o = -1), void 0 === r && (r = !0), a(this, void 0, void 0, function() {
                        var i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (i = this._assetParams[o]) {
                                        if (i.Path == e) return i.Callback = n, i.Parent = t, i.LoadedAsset && (t && t != i.InstantiatedNode.parent && i.InstantiatedNode.setParent(t), this.CallCallback(i)), [2];
                                        i.LoadedAsset && r && (l.AssetsManager.Instance.UnloadAsset(i.LoadedAsset), i.LoadedAsset = null, i.InstantiatedNode && i.InstantiatedNode.destroy(), i.InstantiatedNode = null), i.Path = e, i.Callback = n, i.Parent = t
                                    } else i = {
                                        Path: e,
                                        Callback: n,
                                        Parent: t
                                    }, this._assetParams[o] = i;
                                    return [4, l.AssetsManager.Instance.LoadAsset(i.Path, cc.Prefab)];
                                case 1:
                                    return a = s.sent(), !this.isValid || e != i.Path || i.LoadedAsset && i.LoadedAsset.name == a.name ? (l.AssetsManager.Instance.UnloadAsset(a), [2]) : (i.LoadedAsset && l.AssetsManager.Instance.UnloadAsset(i.LoadedAsset), i.InstantiatedNode && i.InstantiatedNode.destroy(), i.LoadedAsset = a, i.InstantiatedNode = cc.instantiate(a), i.Parent && i.InstantiatedNode.setParent(i.Parent), this.CallCallback(i), [2])
                            }
                        })
                    })
                }, t.prototype.LoadSpriteFrame = function(e, t, n, o, r) {
                    return void 0 === n && (n = null), void 0 === o && (o = -2), void 0 === r && (r = !1), a(this, void 0, void 0, function() {
                        var i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (i = this._assetParams[o]) {
                                        if (i.Path == e) return i.Callback = n, i.Sprite = t, i.LoadedAsset && i.LoadedAsset.name == e && (i.Sprite.spriteFrame = i.LoadedAsset, this.CallCallback(i, !1)), [2];
                                        i.Path = e, i.Callback = n, i.Sprite = t
                                    } else i = {
                                        Path: e,
                                        Callback: n,
                                        Sprite: t
                                    }, this._assetParams[o] = i;
                                    return r ? [4, c.default.LoadActivityTexture(i.Path)] : [3, 2];
                                case 1:
                                    return a = s.sent(), [3, 4];
                                case 2:
                                    return [4, l.AssetsManager.Instance.LoadAsset(i.Path, cc.SpriteFrame)];
                                case 3:
                                    a = s.sent(), s.label = 4;
                                case 4:
                                    return !this.isValid || e != i.Path || i.LoadedAsset && i.LoadedAsset.name == a.name ? (l.AssetsManager.Instance.UnloadAsset(a), [2]) : (i.LoadedAsset && l.AssetsManager.Instance.UnloadAsset(i.LoadedAsset), i.LoadedAsset = a, i.Sprite && (i.Sprite.spriteFrame = i.LoadedAsset), this.CallCallback(i, !1), [2])
                            }
                        })
                    })
                }, t.prototype.RemoveAsset = function(e) {
                    return void 0 === e && (e = -1), a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function() {
                            return (t = this._assetParams[e]) && (t.LoadedAsset && (l.AssetsManager.Instance.UnloadAsset(t.LoadedAsset), t.LoadedAsset = null, t.InstantiatedNode && t.InstantiatedNode.destroy(), t.InstantiatedNode = null), t.Path = "", t.Callback = null, t.Parent = null), [2]
                        })
                    })
                }, t.prototype.CallCallback = function(e, t) {
                    if (void 0 === t && (t = !0), e.Callback) {
                        var n = e.Callback;
                        e.Callback = null, n(t ? e.InstantiatedNode : e.LoadedAsset)
                    }
                }, t.prototype.onDestroy = function() {
                    for (var e in this._assetParams) {
                        var t = this._assetParams[e].LoadedAsset;
                        t && l.AssetsManager.Instance.UnloadAsset(t)
                    }
                    this._assetParams = {}
                }, i([p], t)
            }(cc.Component));
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    LoginBroadcastComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f382cGcHFNCb5tVtgvWN9u6", "LoginBroadcastComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./HeadComponent"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../Components/Components"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadComponent = null, t.ServerLabel = null, t.FlagIcon = null, t.UserName = null, t.LoginLabel = null, t.RollMaskNode = null, t.RollLabel = null, t.DescMask = null, t.HeadEffectUp = null, t.HeadEffectLow = null, t.OpenEffect = null, t.THIS_NODE_X = 350, t.TEXT_ROLL_SPEED = 80, t.BROADCAST_SHOW_TIME = 4, t.MASK_TARGET_WIDTH = 832, t.HEAD_TARGET_SCALE = .6, t.HEAD_SCALE_TIME = .3, t.DELAY_TIME = .1, t.HEAD_MOVE_TIME = .3, t.MASK_OPEN_TIME = 1, t._pastTime = 0, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._userInfo = e, this.node.x = this.THIS_NODE_X, this.HeadComponent.node.scale = 0, this.DescMask.node.width = 0, this.node.opacity = 255, this._textCanRoll = !1, this.HeadComponent.SetUI(this._userInfo.UserInfo.HeadIcon, this._userInfo.UserInfo.HeadFrame, this._userInfo.UserInfo.Title), this.HeadComponent.SetLevel(this._userInfo.UserInfo.Level), this.node.active = !0, this.ServerLabel.string = "[S" + this._userInfo.UserInfo.Zone.toString() + "]", s.UIUtlity.SetCountrySpriteFrame(this.FlagIcon, this._userInfo.UserInfo.Country), this.UserName.string = this._userInfo.UserInfo.Name, this._userInfo.Type == u.HorseRaceLampType.TopRankAlert ? (this.LoginLabel.node.active = !0, this.LoginLabel.string = "LoginNotify_UserLogin".ToUILocale()) : this.LoginLabel.node.active = !1, this.SetRollText()
                }, t.prototype.SetRollText = function() {
                    var e = this,
                        t = "";
                    if (this._userInfo.Type == u.HorseRaceLampType.TopRankAlert) {
                        var n = this._userInfo.RankInfo;
                        n.sort(function(e, t) {
                            var n = l.ConfigDataComponent.Instance.GetConfigById(c.RankTopNotify_Config, e.Items[0]),
                                o = l.ConfigDataComponent.Instance.GetConfigById(c.RankTopNotify_Config, t.Items[0]);
                            return n.SortId - o.SortId
                        }), n.forEach(function(e, n, o) {
                            n < o.length - 1 ? t += e.Items[0].ToRankTopNotifyDase().Fmt(e.Items[1]) + "\u3001" : t += "" + e.Items[0].ToRankTopNotifyDase().Fmt(e.Items[1])
                        })
                    } else {
                        var o = this._userInfo.RankInfo[0].Items[0],
                            r = this._userInfo.RankInfo[0].Items[1];
                        t = o.ToRankTypePushText().Fmt(r)
                    }
                    this.RollLabel.string = t, cc.tween(this.HeadComponent.node).target(this.HeadComponent.node).call(function() {
                        e.HeadEffectLow.node.active = !0, e.HeadEffectLow.setAnimation(0, "Ani_UI_effect_denglutishi_touxiang02", !1), e.HeadEffectLow.setCompleteListener(function() {
                            e.HeadEffectLow.node.active = !1
                        }), e.HeadEffectUp.node.active = !0, e.HeadEffectUp.setAnimation(0, "Ani_UI_effect_denglutishi_touxiang", !1), e.HeadEffectUp.setCompleteListener(function() {
                            e.HeadEffectUp.node.active = !1
                        })
                    }).to(this.HEAD_SCALE_TIME, {
                        scale: this.HEAD_TARGET_SCALE
                    }, {
                        easing: "sineInOut"
                    }).start(), cc.tween(this.node).target(this.node).delay(this.HEAD_SCALE_TIME + this.DELAY_TIME).to(this.HEAD_MOVE_TIME, {
                        x: 0
                    }, {
                        easing: "sineInOut"
                    }).start(), cc.tween(this.DescMask.node).target(this.DescMask.node).delay(this.HEAD_SCALE_TIME + this.DELAY_TIME + this.HEAD_MOVE_TIME).call(function() {
                        e.OpenEffect.node.active = !0, e.OpenEffect.setAnimation(0, "Ani_UI_effect_denglutishi", !1), e.OpenEffect.setCompleteListener(function() {
                            e.OpenEffect.node.active = !1
                        })
                    }).to(this.MASK_OPEN_TIME, {
                        width: this.MASK_TARGET_WIDTH
                    }).call(function() {
                        e._textCanRoll = !0
                    }).start()
                }, t.prototype.update = function(e) {
                    this._textCanRoll && (this._pastTime += e, this.RollLabel.node.width > this.RollMaskNode.width ? (this.RollLabel.node.x -= this.TEXT_ROLL_SPEED * e, this.RollLabel.node.x <= -this.RollLabel.node.width && (this.node.opacity -= 5, this.node.opacity <= 0 && this.HideNotify())) : this._pastTime >= this.BROADCAST_SHOW_TIME && (this.node.opacity -= 5, this.node.opacity <= 0 && this.HideNotify()))
                }, t.prototype.HideNotify = function() {
                    this._pastTime = 0, this._textCanRoll = !1, this.node.active = !1, this.RollLabel.node.width > this.RollMaskNode.width && (this.RollLabel.node.x = 0), l.DataCenter.Instance.LoginBroadcastWaitingArr.shift(), l.DataCenter.Instance.LoginBroadcastWaitingArr.length > 0 && this.Init(l.DataCenter.Instance.LoginBroadcastWaitingArr[0])
                }, i([h(a.default)], t.prototype, "HeadComponent", void 0), i([h(cc.Label)], t.prototype, "ServerLabel", void 0), i([h(cc.Sprite)], t.prototype, "FlagIcon", void 0), i([h(cc.Label)], t.prototype, "UserName", void 0), i([h(cc.Label)], t.prototype, "LoginLabel", void 0), i([h(cc.Node)], t.prototype, "RollMaskNode", void 0), i([h(cc.Label)], t.prototype, "RollLabel", void 0), i([h(cc.Mask)], t.prototype, "DescMask", void 0), i([h(sp.Skeleton)], t.prototype, "HeadEffectUp", void 0), i([h(sp.Skeleton)], t.prototype, "HeadEffectLow", void 0), i([h(sp.Skeleton)], t.prototype, "OpenEffect", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./HeadComponent": "HeadComponent"
    }],
    LoginPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eb11asvZlNGEr7QB/OIJzNJ", "LoginPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u, p = e("../../../EZFramework/EZFramework"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../../Util/index"),
            y = e("../../../Tool/Tool"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../Components/CustomProgressBar"),
            v = e("../Battle/BattleManager"),
            b = e("../../../SkillEditor/SkillEditorData"),
            S = e("../../Auxiliary/DataUtlity"),
            w = e("../../Auxiliary/EventKeys"),
            P = e("../../Auxiliary/GameRecord"),
            A = e("../../../EZFramework/CustomEvents/EventManager"),
            T = e("../Battle/BattleInitialize"),
            R = e("../../InitHelper"),
            L = e("../../Channel/AdjustAction"),
            k = e("./AccountInfoPanel"),
            O = e("../Components/AgeReminderComponent"),
            M = e("./AgreementPanel"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.Locale = 1] = "Locale", e[e.Asset = 2] = "Asset", e[e.ConnectServer = 3] = "ConnectServer", e[e.Done = 4] = "Done"
        })(l || (l = {})),
        function(e) {
            e[e.Configure = 0] = "Configure", e[e.HttpLogin = 1] = "HttpLogin", e[e.CommonAssets = 2] = "CommonAssets", e[e.None = 3] = "None"
        }(c || (c = {})),
        function(e) {
            e[e.EnterGame = 0] = "EnterGame", e[e.Duration = 1] = "Duration", e[e.None = 2] = "None"
        }(u || (u = {}));
        var E = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Normal, !1, !1), t.StartGameFrame = null, t.LoadAssetFrame = null, t.Toolbar = null, t.ZoneInfoText = null, t.SelectZoneBtn = null, t.StartGameBtn = null, t.UserLoginBtn = null, t.SwitchUserBtn = null, t.SwitchUserBtnLabel = null, t.ProgressBar = null, t.Version = null, t.TipText = null, t.RepairClientBtn = null, t.UidLoginFrame = null, t.UIDInput = null, t.ZoneInput = null, t.LoginBtn = null, t.AgeReminderComponent = null, t.LogoSprite = null, t.ConfigDownloader = null, t.HotUpdateComp = null, t._isDevelopment = !1, t._loginInfo = null, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                p.Game.EventDispatcher.Only(h.GameEventIds.ConfigDownloadComplete, this.OnConfigDownloadComplete, this), p.Game.EventDispatcher.Only(h.GameEventIds.HotUpdateComplete, this.OnHotUpdateComplete, this), p.Game.EventDispatcher.Only(h.GameEventIds.ChangeSelectZone, this.OnChangeSelectZone, this), p.Game.EventDispatcher.On(h.GameEventIds.ServerConnected, this.OnGameServerConnected, this), p.Game.EventDispatcher.On(h.GameEventIds.UserLoginSuccess, this.StartEnterGame, this), p.Game.EventDispatcher.On(h.GameEventIds.LoginStatusChange, this.OnLoginStatusChange, this), p.Game.EventDispatcher.On(w.EventKeys.EVENT_VIDEO_PLAY_COMPLETE, this.OnVideoComplete, this)
            }, t.prototype.onDisable = function() {
                p.Game.EventDispatcher.Off(h.GameEventIds.ConfigDownloadComplete, this.OnConfigDownloadComplete, this), p.Game.EventDispatcher.Off(h.GameEventIds.HotUpdateComplete, this.OnHotUpdateComplete, this), p.Game.EventDispatcher.Off(h.GameEventIds.ChangeSelectZone, this.OnChangeSelectZone, this), p.Game.EventDispatcher.Off(h.GameEventIds.ServerConnected, this.OnGameServerConnected, this), p.Game.EventDispatcher.Off(h.GameEventIds.UserLoginSuccess, this.StartEnterGame, this), p.Game.EventDispatcher.Off(h.GameEventIds.LoginStatusChange, this.OnLoginStatusChange, this), p.Game.EventDispatcher.Off(w.EventKeys.EVENT_VIDEO_PLAY_COMPLETE, this.OnVideoComplete, this)
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), (_.default.Instance.UseSeflLoginSystem() || _.default.Instance.IsMainlandCheckChannel()) && (this.StartGameBtn.node.off("click"), this.StartGameBtn.node.on("click", this.OnClickStartGameBtn, this), this.SelectZoneBtn.node.off("click"), this.SelectZoneBtn.node.on("click", this.OnClickSelectZoneBtn, this), this.UserLoginBtn.node.off("click"), this.UserLoginBtn.node.on("click", this.ShowAccountInfoPanel, this), this.SwitchUserBtn.node.off("click"), this.SwitchUserBtn.node.on("click", this.ShowAccountInfoPanel, this))
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), t[0] ? this._isRelogin = t[0] : this._isRelogin = !1, T.BattleInitialize.Init()
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.Version.string = "Ver: " + d.GlobalConfigComponent.Instance.ClientVersion + "." + d.GlobalConfigComponent.Instance.AssetVersion, this.StartGameTime = 0, this._loadingAssetCompletedSteps = [], this._connectServerCompletedSteps = [], this.ServerAddress = d.GlobalConfigComponent.Instance.ServerAddress, this.ConfigDownloader = p.Game.Scene.GetComponent("ConfigDownloaderComponent"), this.HotUpdateComp = p.Game.Scene.GetComponent("HotUpdateComponent"), this.Toolbar.active = !1, this.StartGameFrame.active = !1, this.UserLoginBtn.node.active = !1, this.LoadingType = l.None, d.RpcComponent.Instance.Disconnect(), this.InitGame(), L.default.AdjustTrackEvent(L.AdjustEventToken.PageView)
            }, t.prototype.update = function() {
                var e, t;
                switch (this.LoadingType) {
                    case l.Locale:
                        e = (e = Math.round(100 * (f.TimeUtil.Now() - this.StartGameTime) / n.DownLocaleDuration * n.DownLocaleWeight)) <= (t = 100 * n.DownLocaleWeight) ? e : t, this.ShowProgress(e / 100, d.GlobalConfigComponent.Instance.PreloadLocale.DownloadeBundle.Fmt(e));
                        break;
                    case l.Asset:
                        var o = 1 - n.DownLocaleWeight;
                        e = (e = 100 * n.DownLocaleWeight + Math.round(100 * this.ConfigDownloader.Progress * o)) <= 100 ? e : 100, this.ShowProgress(e / 100, d.GlobalConfigComponent.Instance.PreloadLocale.DownloadeBundle.Fmt(e));
                        break;
                    case l.ConnectServer:
                        e = (e = Math.round(100 * (f.TimeUtil.Now() - this.StartGameTime) / n.ConnectServerDuration)) <= 100 ? e : 100, this.ShowProgress(e / 100, "login_panel_start_game_progress".ToUILocale().Fmt(e)), e >= 100 && this.CheckConnectServerState(u.Duration);
                        break;
                    case l.Done:
                        this._needPlayVideo ? (this._dataLoaded = !0, this.CheckMainScenePanelShowState()) : (this.DelayClose(), p.UIManager.Instance.ShowUIPanel(I.PanelConfig.MainScenePanel.Path)), this.LoadingType = l.None
                }
            }, t.prototype.InitGame = function() {
                return a(this, void 0, Promise, function() {
                    var e, t, n, o, r, i, a, c;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                R.InitHelper.PostGameMessage(_.GameClientAction.RequestInit_Start), L.default.AdjustTrackEvent(L.AdjustEventToken.FirstView), this.ShowTarget(this.StartGameFrame, !1), this.ShowTarget(this.UidLoginFrame, !1), this.ShowProgress(0), this.StartGameTime = 0, e = this.ServerAddress + "/init_game", (t = new g.Req_Web_InitGame).Param = d.GlobalConfigComponent.Instance.CreateWebCommonParam(h.GlobalSetting.RPC_SECRET_CODE), n = null, s.label = 1;
                            case 1:
                                return s.trys.push([1, 3, , 4]), [4, y.HttpTool.SendPostRequest(e, g.Req_Web_InitGame.encode(t).finish())];
                            case 2:
                                return o = s.sent(), n = g.Res_Web_InitGame.decode(o), [3, 4];
                            case 3:
                                return r = s.sent(), p.EZLog.Error(r), [3, 4];
                            case 4:
                                if (null == n || n.ErrCode != h.ErrCode.OK) return R.InitHelper.PostGameMessage(_.GameClientAction.RequestInit_Error), m.UIUtlity.ShowForceConfirmPanel(null, d.GlobalConfigComponent.Instance.PreloadLocale.ConnectServerError, d.GlobalConfigComponent.Instance.PreloadLocale.ButtonRetry, this.InitGame.bind(this)), [2];
                                if (R.InitHelper.PostGameMessage(_.GameClientAction.RequestInit_Success), n.RedirectUrl) return this.ServerAddress = n.RedirectUrl, this.InitGame(), [2];
                                for (f.TimeUtil.TimeZone = n.TimeZone, d.RpcComponent.Instance.UpdateServerTime(n.Ts), d.GlobalConfigComponent.Instance.AssetUrl = n.AssetUpdateUrl, d.GlobalConfigComponent.Instance.ConfigUrl = n.ConfigUpdateUrl, d.GlobalConfigComponent.Instance.HeartbeatInterval = n.HeartbeatInterval, d.GlobalConfigComponent.Instance.IsDebug = n.IsDebug, d.GlobalConfigComponent.Instance.IsSDKTest = n.SDKIsTest, d.GlobalConfigComponent.Instance.UseEncrypt = n.UseEncrypt, d.ConfigDataComponent.Instance.ConfigVersion = n.ConfigureVersion, m.UIUtlity.ACTIVITYIMAGE_URL = n.ActivityImageUrl, this._manifestVersion = n.ManifestVersion, d.DataCenter.Instance.Zones = {}, i = 0; i < n.ZoneList.length; i++) a = n.ZoneList[i], d.DataCenter.Instance.Zones[a._id] = a, a._id > d.DataCenter.Instance.TopZoneId && (d.DataCenter.Instance.TopZoneId = a._id);
                                return (c = P.default.GetItem(P.GameRecordDefine.LanguageType)) && (d.GlobalConfigComponent.Instance.Locale = c), _.default.Instance.Localization_Lang = _.default.Instance.GetLocaleISOCodeByLocale(d.GlobalConfigComponent.Instance.Locale), this._useUidLogin = n.IsLoginDebug, this._isDevelopment = n.UseDevAccount, n.EditSkillConfig ? b.SkillEditorData.EnableSkillEditor = !0 : b.SkillEditorData.EnableSkillEditor = !1, this.ConfigDownloader.InitData(n.ConfigUpdateUrl, n.Configures, n.SkillConfigs), this.HotUpdateComp.InitData(n.AssetUpdateUrl, n.BaseAssetPack), this.LoadingType = l.Locale, this.StartGameTime = f.TimeUtil.Now(), this.ShowTarget(this.LoadAssetFrame, !0), [4, this.ConfigDownloader.DownloadLocaleByName(d.GlobalConfigComponent.Instance.Locale)];
                            case 5:
                                return s.sent(), this.HandleLoadingAssetSteps(), this.ShowAgeReminder(!0), [2]
                        }
                    })
                })
            }, t.prototype.HandleLoadingAssetSteps = function() {
                this.LoadingType = l.Asset, this.ConfigDownloader.CheckUpdate(), this.AccountLogin()
            }, t.prototype.AccountLogin = function() {
                return a(this, void 0, Promise, function() {
                    return s(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return this._useUidLogin || _.default.Instance.UseSeflLoginSystem() ? (p.EZLog.Debug("use self account"), [3, 4]) : [3, 1];
                            case 1:
                                return _.default.Instance.IsVNChannel() || _.default.Instance.IsMainlandCheckChannel() ? [4, this.VNAccountAutoLogin()] : [3, 3];
                            case 2:
                                return e.sent(), [3, 4];
                            case 3:
                                this.StartEnterGame(), e.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.GetLoginInfo = function() {
                return a(this, void 0, Promise, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, _.default.Instance.GetLoginInfo()];
                            case 1:
                                return null == (e = t.sent()) || e.ErrCode != h.ErrCode.OK ? (m.UIUtlity.ShowForceConfirmPanel(null, d.GlobalConfigComponent.Instance.PreloadLocale.ConnectServerError, d.GlobalConfigComponent.Instance.PreloadLocale.ButtonRetry, this.GetLoginInfo.bind(this)), [2]) : (this._loginInfo = e, d.DataCenter.Instance.ZoneAccounts = e.Data, cc.sys.localStorage.setItem(h.LocalStorageKeys.CurrentUser, d.DataCenter.Instance.UserName), _.default.Instance.UseSeflLoginSystem && this.ShowTarget(this.StartGameFrame, !0), this.ShowTarget(this.LoadAssetFrame, !1), this.ShowTarget(this.UserLoginBtn.node, !1), d.DataCenter.Instance.ZoneAccounts.length > 0 ? p.Game.EventDispatcher.Emit(h.GameEventIds.ChangeSelectZone, d.DataCenter.Instance.ZoneAccounts[0].Zone) : p.Game.EventDispatcher.Emit(h.GameEventIds.ChangeSelectZone, d.DataCenter.Instance.NewestZoneId), [2])
                        }
                    })
                })
            }, t.prototype.GameServerLogin = function() {
                return a(this, void 0, Promise, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._useUidLogin ? [4, _.default.Instance.DebugGameServerLogin(Number.parseInt(this.UIDInput.string))] : [3, 2];
                            case 1:
                                return e = n.sent(), [3, 4];
                            case 2:
                                return [4, _.default.Instance.GameServerLogin()];
                            case 3:
                                e = n.sent(), n.label = 4;
                            case 4:
                                if (null == e || e.ErrCode != h.ErrCode.OK) {
                                    if (this.StartGameTime = 0, e) switch (e.ErrCode) {
                                        case h.ErrCode.AssetVerIsNotAvailable:
                                        case h.ErrCode.ConfigVerIsNotAvailable:
                                        case h.ErrCode.ServerMaintenance:
                                            return S.default.Instance.ShowRestartGamePanel(e.ErrCode, e.ErrMsg), [2];
                                        case h.ErrCode.UserBanLogin2:
                                            return m.UIUtlity.ShowForceConfirmPanel(null, "error_hint_content_code_1028".ToUILocale(), "OK", R.InitHelper.RestartWeb.bind(this)), [2]
                                    }
                                    return this.ShowTarget(this.ProgressBar.node, !1), m.UIUtlity.ShowForceConfirmPanel(null, d.GlobalConfigComponent.Instance.PreloadLocale.ConnectServerError, d.GlobalConfigComponent.Instance.PreloadLocale.ButtonRetry, this.GameServerLogin.bind(this)), [2]
                                }
                                switch (d.DataCenter.Instance.Uid = e.Uid, d.DataCenter.Instance.GateAddress = e.GateAddress, d.DataCenter.OriginalZone = e.Zone, (t = d.DataCenter.Instance.Zones[e.Zone]).MergeTo > 0 ? d.DataCenter.Zone = t.MergeTo : d.DataCenter.Zone = e.Zone, this._isNewRigster = e.IsRegister, this._isNewRole = e.IsCreateRole, this._needPlayVideo = e.PlayAnimation, d.DataCenter.Instance.Token = e.Token, this._dataLoaded = !1, this._videoCompleted = !1, _.default.Instance.Localization_Region = e.ExtraInfo.region, _.default.Instance.Localization_Country = e.ExtraInfo.country, this._responseCurrency = e.ExtraInfo.currency, d.GlobalConfigComponent.Instance.Channel) {
                                    case h.GameChannels.G123JP_WebMobile:
                                        e.ExtraInfo.lang && (_.default.Instance.Localization_Lang = e.ExtraInfo.lang, _.default.Instance.SetLocaleTypeByISOCode(_.default.Instance.Localization_Lang))
                                }
                                return [4, this.ConfigDownloader.DownloadActivityImagesMainfest(this._manifestVersion)];
                            case 5:
                                return n.sent(), [4, this.ConfigDownloader.DownloadLocaleByName(d.GlobalConfigComponent.Instance.Locale)];
                            case 6:
                                return n.sent(), A.EventManager.Instance.Emit(w.EventKeys.EVENT_CONFIRM_LANGUAGE), R.InitHelper.PostGameMessage(_.GameClientAction.RequestLogin), this._isNewRigster && _.default.Instance.PostMessage(_.ActionType.Register), this.CheckLoadingAssetState(c.HttpLogin), this.HandleLoadingCommonAssetsSteps(), [2]
                        }
                    })
                })
            }, t.prototype.HandleLoadingCommonAssetsSteps = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return [4, m.UIUtlity.LoadCommonAssets()];
                            case 1:
                                return e.sent(), this.CheckLoadingAssetState(c.CommonAssets), [2]
                        }
                    })
                })
            }, t.prototype.OnGameServerDisConnect = function() {
                this.StartGameTime = f.TimeUtil.Now(), this.ShowTarget(this.ProgressBar.node, !1), m.UIUtlity.ShowForceConfirmPanel(null, d.GlobalConfigComponent.Instance.PreloadLocale.ConnectServerError, d.GlobalConfigComponent.Instance.PreloadLocale.ButtonRetry, this.GameServerLogin.bind(this))
            }, t.prototype.OnGameServerConnected = function() {
                return a(this, void 0, Promise, function() {
                    var e;
                    return s(this, function() {
                        return p.EZLog.Log("OnGameServerConnected"), this.LoadingType == l.Done ? [2] : (this._isNewRigster || _.default.Instance.PostMessage(_.ActionType.Lonin), _.default.Instance.PostUserInfo(), v.BattleManager.Instance.LoadBattlePlaySpeed(), d.DataCenter.Instance.CacheEventIds && d.DataCenter.Instance.CacheEventIds.length > 0 && ((e = new g.Req_Player_ProcessCacheEvent).CacheEventIds = d.DataCenter.Instance.CacheEventIds, d.RpcComponent.Instance.Call(e, function(e) {
                            var t = e.Rewards.find(function(e) {
                                return -4 == e.ItemId
                            });
                            t && _.default.Instance.FireBaseLogEventPay("purchase", t.Count)
                        })), this.CheckConnectServerState(u.EnterGame), [2])
                    })
                })
            }, t.prototype.UpdateStartGameProgress = function(e) {
                switch (f.TimeUtil.Now(), e) {
                    case l.Locale:
                        this.ShowProgress(this.StartGameProgress / 100, d.GlobalConfigComponent.Instance.PreloadLocale.DownloadeBundle.Fmt(this.StartGameProgress));
                        break;
                    case l.Asset:
                }
            }, t.prototype.OnVideoComplete = function() {
                this._videoCompleted = !0, this.CheckMainScenePanelShowState()
            }, t.prototype.CheckMainScenePanelShowState = function() {
                this._dataLoaded && this._videoCompleted ? (this.Close(), p.UIManager.Instance.ShowUIPanel(I.PanelConfig.MainScenePanel.Path), this._isNewRole && _.default.Instance.PostMessage(_.ActionType.CreateRole)) : this._videoCompleted && !this._dataLoaded && (this.node.opacity = 255)
            }, t.prototype.ShowUidLoginPanel = function() {
                this.LoginBtn.node.off("click"), this.LoginBtn.node.on("click", this.OnClickUidLoginBtn.bind(this)), this.ShowTarget(this.UidLoginFrame, !0)
            }, t.prototype.ShowTipMessage = function(e) {
                this.ShowTarget(this.LoadAssetFrame, !0), this.ShowTarget(this.ProgressBar.node, !1), this.ShowTarget(this.TipText.node, !0), this.TipText.string = e
            }, t.prototype.ShowProgress = function(e, t) {
                void 0 === t && (t = ""), this.ShowTarget(this.LoadAssetFrame, !0), this.ShowTarget(this.ProgressBar.node, !0), this.ShowTarget(this.TipText.node, !0), this.ProgressBar.progress = e, this.TipText.string = t
            }, t.prototype.ChangeZoneInfo = function(e) {
                if (d.DataCenter.Instance.Zones[e]) {
                    if (!this._isRelogin) {
                        d.DataCenter.OriginalZone = e;
                        var t = d.DataCenter.Instance.Zones[e];
                        t.MergeTo > 0 ? d.DataCenter.Zone = t.MergeTo : d.DataCenter.Zone = e
                    }
                    this.ZoneInfoText.string = d.DataCenter.Instance.Zones[d.DataCenter.OriginalZone].Name
                } else p.EZLog.Error("zone info error.")
            }, t.prototype.ShowTarget = function(e, t) {
                void 0 === t && (t = !0), t && !e.active ? e.active = !0 : !t && e.active && (e.active = !1)
            }, t.prototype.OnConfigDownloadComplete = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return p.EZLog.Debug("config download complete"), this.update(), R.InitHelper.PostGameMessage(_.GameClientAction.DownloadConfig), this.CheckLoadingAssetState(c.Configure), [2]
                    })
                })
            }, t.prototype.OnHotUpdateComplete = function() {
                p.EZLog.Debug("hot update complete"), this.LoadingType = l.None, this.AccountLogin()
            }, t.prototype.OnLoginStatusChange = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return _.default.Instance.StorageAccountInfo.Current ? [4, this.GetLoginInfo()] : [3, 2];
                            case 1:
                                return e.sent(), [3, 3];
                            case 2:
                                this.ShowTarget(this.UserLoginBtn.node, !0), this.ShowTarget(this.StartGameFrame, !1), e.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.VNAccountAutoLogin = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return (e = _.default.Instance.StorageAccountInfo.Current) ? [3, 4] : _.default.Instance.IsMainlandCheckChannel() ? (p.UIManager.Instance.ShowUIPanel(I.PanelConfig.AccountInfoPanel.Path, !1, k.OperationType.EmailLogin, void 0, !0), [2]) : [3, 1];
                            case 1:
                                return [4, this.VNVisitorAccountRegister()];
                            case 2:
                                s.sent(), e = _.default.Instance.StorageAccountInfo.Visitor, s.label = 3;
                            case 3:
                                return [3, 5];
                            case 4:
                                if (_.default.Instance.StorageAccountInfo.ReadyLogin) return _.default.Instance.StorageAccountInfo.ReadyLogin = !1, _.default.Instance.SaveAccountInfo(), _.default.Instance.IsMainlandCheckChannel() ? this.OnLoginStatusChange() : (d.DataCenter.OriginalZone = 0, this.StartEnterGame()), [2];
                                s.label = 5;
                            case 5:
                                if (!e) return [2];
                                switch (t = null, n = d.GlobalConfigComponent.Instance.ServerAddress, o = n + "/account_login", (r = new g.Req_Account_Login).Param = d.GlobalConfigComponent.Instance.CreateWebCommonParam(h.GlobalSetting.RPC_SECRET_CODE), r.Pid = e.Id, r.AccountType = e.Type, e.Type) {
                                    case h.EZUserAccountType.Visitor:
                                        r.Token = e.Token;
                                        break;
                                    case h.EZUserAccountType.Google:
                                        if (!e.ThirdPartyToken) return p.UIManager.Instance.ShowUIPanel(I.PanelConfig.AccountInfoPanel.Path, !1, k.OperationType.ChooseLoginChannel, null, !0), [2];
                                        r.ThirdPartyToken = e.ThirdPartyToken;
                                        break;
                                    case h.EZUserAccountType.Normal:
                                        r.Password = d.GlobalConfigComponent.Instance.DecryptStr(e.Password, h.GlobalSetting.RPC_SECRET_CODE)
                                }
                                s.label = 6;
                            case 6:
                                return s.trys.push([6, 8, , 9]), [4, y.HttpTool.SendPostRequest(o, g.Req_Account_Login.encode(r).finish())];
                            case 7:
                                if (i = s.sent(), (a = g.Res_Account_Login.decode(i)).ErrCode != h.ErrCode.OK) throw e.Type == h.EZUserAccountType.Normal ? p.UIManager.Instance.ShowUIPanel(I.PanelConfig.AccountInfoPanel.Path, !1, k.OperationType.EmailLogin, r.Pid, !0) : e.Type == h.EZUserAccountType.Google && p.UIManager.Instance.ShowUIPanel(I.PanelConfig.AccountInfoPanel.Path, !1, k.OperationType.ChooseLoginChannel, null, !0), t = ("error_hint_content_code_" + a.ErrCode).ToUILocale() || null, new Error(a.ErrCode + ": " + a.ErrMsg);
                                return m.UIUtlity.ShowFloatingHint("AccountInfoPanelTip_LoginSuccess2".ToUILocale()), _.default.Instance.StorageAccountInfo.Current = {
                                    Id: a.Pid,
                                    Type: e.Type,
                                    Password: e.Password,
                                    Token: a.Token,
                                    LoginTime: d.RpcComponent.Instance.ServerTime,
                                    IdCardVerification: a.IdCardVerification,
                                    AgeType: a.AgeType
                                }, e.Type != h.EZUserAccountType.Visitor && (_.default.Instance.StorageAccountInfo.Current.Name = a.Pid, e.ThirdPartyToken && (_.default.Instance.StorageAccountInfo.Current.ThirdPartyToken = e.ThirdPartyToken)), _.default.Instance.SaveAccountInfo(), L.default.AdjustTrackEvent(L.AdjustEventToken.Login), _.default.Instance.StorageAccountLog[_.default.Instance.StorageAccountInfo.Current.Id] = _.default.Instance.StorageAccountInfo.Current, _.default.Instance.SaveAccountLog(), _.default.Instance.IsMainlandCheckChannel() ? 0 == a.IdCardVerification ? this.DisplayRealNamePanel() : this.OnLoginStatusChange() : this.StartEnterGame(), [3, 9];
                            case 8:
                                return l = s.sent(), p.EZLog.Error(l), t || (t = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), m.UIUtlity.ShowFloatingHint(t), [3, 9];
                            case 9:
                                return [2]
                        }
                    })
                })
            }, t.prototype.VNVisitorAccountRegister = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                e = null, t = d.GlobalConfigComponent.Instance.ServerAddress, n = t + "/account_register", (o = new g.Req_Account_Register).Param = d.GlobalConfigComponent.Instance.CreateWebCommonParam(h.GlobalSetting.RPC_SECRET_CODE), o.Pid = _.default.Instance.StorageAccountInfo.UUID, o.AccountType = h.EZUserAccountType.Visitor, s.label = 1;
                            case 1:
                                return s.trys.push([1, 3, , 4]), [4, y.HttpTool.SendPostRequest(n, g.Req_Account_Register.encode(o).finish())];
                            case 2:
                                if (r = s.sent(), (i = g.Res_Account_Register.decode(r)).ErrCode != h.ErrCode.OK) throw e = ("error_hint_content_code_" + i.ErrCode).ToUILocale() || null, new Error(i.ErrCode + ": " + i.ErrMsg);
                                return _.default.Instance.StorageAccountInfo.Visitor = {
                                    Id: _.default.Instance.StorageAccountInfo.UUID,
                                    Type: h.EZUserAccountType.Visitor,
                                    Token: i.Token,
                                    AccountId: i.AccountId
                                }, _.default.Instance.SaveAccountInfo(), [3, 4];
                            case 3:
                                return a = s.sent(), p.EZLog.Error(a), e || (e = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), m.UIUtlity.ShowFloatingHint(e), [3, 4];
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.StartEnterGame = function() {
                this.StartGameProgress = 0, this.GameServerLogin()
            }, t.prototype.OnClickStartGameBtn = function() {
                if (_.default.Instance.IsMainlandCheckChannel()) {
                    if (0 == _.default.Instance.StorageAccountInfo.Current.IdCardVerification) return void this.DisplayRealNamePanel();
                    if (!this.Over18()) return
                }
                this.StartGameBtn.enabled = !1, this.StartEnterGame()
            }, t.prototype.OnClickSelectZoneBtn = function() {
                p.UIManager.Instance.ShowUIPanel(I.PanelConfig.ServerSelectPanel.Path, !0, this._loginInfo)
            }, t.prototype.OnClickRepaireClientBtn = function() {}, t.prototype.ShowAccountInfoPanel = function() {
                _.default.Instance.IsMainlandCheckChannel() ? p.UIManager.Instance.ShowUIPanel(I.PanelConfig.AccountInfoPanel.Path, !1, k.OperationType.SwitchAccount) : p.UIManager.Instance.ShowUIPanel(I.PanelConfig.AccountInfoPanel.Path, this._isDevelopment)
            }, t.prototype.OnClickUidLoginBtn = function() {
                var e = this.UIDInput.string;
                this.ZoneInput.string, e.length < 1 ? p.EZLog.Debug("Input UID") : (this.LoginBtn.node.off("click"), this.ShowTarget(this.UidLoginFrame, !1), this.StartEnterGame())
            }, t.prototype.OnChangeSelectZone = function(e) {
                this.ChangeZoneInfo(e)
            }, t.prototype.CheckLoadingAssetState = function(e) {
                return a(this, void 0, void 0, function() {
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.SetBtnLabels(), -1 != this._loadingAssetCompletedSteps.indexOf(e) ? [3, 4] : (this._loadingAssetCompletedSteps.push(e), e != c.Configure || !this._useUidLogin && !_.default.Instance.UseSeflLoginSystem() ? [3, 4] : (this.LoadingType = l.None, this.ShowTarget(this.LoadAssetFrame, !1), this._useUidLogin ? (this.ShowUidLoginPanel(), [3, 3]) : [3, 1]));
                            case 1:
                                return [4, _.default.Instance.CheckCurrentAccount()];
                            case 2:
                                t.sent(), this.OnLoginStatusChange(), t.label = 3;
                            case 3:
                                return [2];
                            case 4:
                                return this._loadingAssetCompletedSteps.length >= c.None && (_.default.Instance.SetLocalizationCurrency(this._responseCurrency), this._needPlayVideo ? (this.node.opacity = 0, p.UIManager.Instance.ShowUIPanel(I.PanelConfig.GameOPVideoPanel.Path, this._isNewRole)) : (this.node.opacity = 255, d.RpcComponent.Instance.ConnectServer()), this.StartGameTime = f.TimeUtil.Now(), this.LoadingType = l.ConnectServer), [2]
                        }
                    })
                })
            }, t.prototype.SetBtnLabels = function() {}, t.prototype.CheckConnectServerState = function(e) {
                -1 == this._connectServerCompletedSteps.indexOf(e) && this._connectServerCompletedSteps.push(e), this._connectServerCompletedSteps.length >= u.None && (this.LoadingType = l.Done)
            }, t.prototype.ShowAgeReminder = function(e) {
                void 0 === e && (e = !1), e && !_.default.Instance.IsMainlandCheckChannel() && (e = !1), e ? (this.AgeReminderComponent.node.active = !0, this.StartGameFrame.getChildByName("Bottom").getComponent(cc.Widget).bottom = 554) : this.AgeReminderComponent.node.active = !1
            }, t.prototype.DisplayRealNamePanel = function() {
                p.UIManager.Instance.ShowUIPanel(I.PanelConfig.RealNamePanel.Path, this.OnLoginStatusChange.bind(this))
            }, t.prototype.Over18 = function() {
                var e = this;
                if (h.UserAgeType.Over18 == _.default.Instance.StorageAccountInfo.Current.AgeType) return !0;
                if (h.UserAgeType.Under16 == _.default.Instance.StorageAccountInfo.Current.AgeType) return p.UIManager.Instance.ShowUIPanel(I.PanelConfig.AgreementPanel.Path, M.AgreementType.Under16, function() {
                    return a(e, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, m.UIUtlity.ShowHintPanel("", "agreenment_under16End".ToUILocale(), null, null, "", function() {
                                        cc.game.end()
                                    })];
                                case 1:
                                    return e.sent().DisableMaskClose(), [2]
                            }
                        })
                    })
                }), !1;
                var t = d.RpcComponent.Instance.ServerTime,
                    n = f.TimeUtil.GetWeekDay(t);
                if (5 == n || 6 == n || 7 == n || _.default.Instance.CheckIsHoliday(f.TimeUtil.Format("YYYYMMDD", t))) {
                    var o = f.TimeUtil.GetHour(t);
                    if (o >= 20 && o < 21) return p.UIManager.Instance.ShowUIPanel(I.PanelConfig.AgreementPanel.Path, M.AgreementType.Under18InTime, function() {
                        e.StartGameBtn.enabled = !1, e.StartEnterGame()
                    }), !1
                }
                return p.UIManager.Instance.ShowUIPanel(I.PanelConfig.AgreementPanel.Path, M.AgreementType.Under18NotInTime, function() {
                    cc.game.end()
                }), !1
            }, t.DownLocaleDuration = 300, t.DownLocaleWeight = .2, t.ConnectServerDuration = 500, i([N(cc.Node)], t.prototype, "StartGameFrame", void 0), i([N(cc.Node)], t.prototype, "LoadAssetFrame", void 0), i([N(cc.Node)], t.prototype, "Toolbar", void 0), i([N(cc.Label)], t.prototype, "ZoneInfoText", void 0), i([N(cc.Button)], t.prototype, "SelectZoneBtn", void 0), i([N(cc.Button)], t.prototype, "StartGameBtn", void 0), i([N(cc.Button)], t.prototype, "UserLoginBtn", void 0), i([N(cc.Button)], t.prototype, "SwitchUserBtn", void 0), i([N(cc.Label)], t.prototype, "SwitchUserBtnLabel", void 0), i([N(C.default)], t.prototype, "ProgressBar", void 0), i([N(cc.Label)], t.prototype, "Version", void 0), i([N(cc.Label)], t.prototype, "TipText", void 0), i([N(cc.Button)], t.prototype, "RepairClientBtn", void 0), i([N(cc.Node)], t.prototype, "UidLoginFrame", void 0), i([N(cc.EditBox)], t.prototype, "UIDInput", void 0), i([N(cc.EditBox)], t.prototype, "ZoneInput", void 0), i([N(cc.Button)], t.prototype, "LoginBtn", void 0), i([N(O.default)], t.prototype, "AgeReminderComponent", void 0), i([N(cc.Sprite)], t.prototype, "LogoSprite", void 0), n = i([B], t)
        }(p.BaseUIPanel);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/CustomEvents/EventManager": "EventManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../SkillEditor/SkillEditorData": "SkillEditorData",
        "../../../Tool/Tool": "Tool",
        "../../../Util/index": "index",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/AdjustAction": "AdjustAction",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../InitHelper": "InitHelper",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleInitialize": "BattleInitialize",
        "../Battle/BattleManager": "BattleManager",
        "../Components/AgeReminderComponent": "AgeReminderComponent",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "./AccountInfoPanel": "AccountInfoPanel",
        "./AgreementPanel": "AgreementPanel"
    }],
    LookBackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "062f96ruuxLrrV14/ggycMj", "LookBackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.ContentLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.Title.string = e || "Activity_Story_LookBackPanel_Title".ToUILocale(), this.ContentLabel.string = t
                }, i([l(cc.Label)], t.prototype, "Title", void 0), i([l(cc.Label)], t.prototype, "ContentLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    LookBackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "853fc3p5uBGvb7e3a72UROz", "LookBackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../Components/LookBackComponent"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Content = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ActivityStoryTaskPanel/Components/LookBackComponent", cc.Prefab)];
                                case 1:
                                    return t._lookBackItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._currentId = t[0], this._overId = t[1], this._storyGroup = t[2], this._isStory = t[3], this._activityId = t[4], this._activityType = this._activityId ? c.DataCenter.Instance.ActivityConfigs[this._activityId].Common.Type : null, this.SetStoryData()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), t || (this.SetChapterContent(this._isStory), this.Title.string = this._isStory ? "CollectionPavilion_Story_Upstar_Btn_Detail".ToUILocale() : "Activity_Story_PlayPanel_LookBack".ToUILocale())
                }, t.prototype.SetStoryData = function() {
                    var e = this;
                    switch (this._storyLanMap = {}, this._activityType) {
                        case f.ActivityType.RunningTrain:
                            c.DataCenter.Instance.ActivityConfigs[this._activityId]._Locale.forEach(function(t) {
                                e._storyLanMap[t.Id] = t
                            })
                    }
                }, t.prototype.SetChapterContent = function(e) {
                    if (e)
                        for (var t = this._currentId; t <= this._overId; t++) {
                            (r = cc.instantiate(this._lookBackItemPrefab)).setParent(this.Content);
                            var n = p.ConfigDataComponent.Instance.GetConfigById(d.CollectionStoryContent_Config, t);
                            r.getComponent(u.default).Init(n.Id.ToCollectChapterTitle(), n.Id.ToCollectChapterContent())
                        } else {
                            var o = void 0;
                            for (this._activityType == f.ActivityType.Story && (o = c.DataCenter.Instance.ActivityConfigs[this._activityId]); this._currentId != this._overId;) {
                                var r;
                                (r = cc.instantiate(this._lookBackItemPrefab)).setParent(this.Content);
                                var i = this._storyGroup[this._currentId],
                                    a = void 0,
                                    s = void 0;
                                if (this._activityType == f.ActivityType.Story) {
                                    var l = 1e5 * o.CustomPart.CollectId + i.Id;
                                    s = l.ToStoryDialogueContent(), i.HeroName && (a = l.ToStoryDialogueTitle())
                                } else s = this._storyLanMap[Number(i.Talk)].Content, i.HeroName && (a = this._storyLanMap[Number(i.HeroName)].Content);
                                if (i.HeroName);
                                else if (i.HeroRes) {
                                    var y = p.ConfigDataComponent.Instance.GetConfigById(h.HeroSkin_Config, i.HeroRes);
                                    a = y && y.UIAvatar ? y.HeroId.ToHeroName() : Number(i.HeroRes).ToHeroName()
                                } else a = "Activity_Story_LookBackPanel_Title".ToUILocale();
                                r.getComponent(u.default).Init(a, s), this._currentId = i.NextId
                            }
                        }
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Node)], t.prototype, "Content", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../Components/LookBackComponent": "LookBackComponent"
    }],
    LoverArrowConsumeItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ab7489nkqFJz78HAkt8qf/j", "LoverArrowConsumeItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.LoverArrowClickItemType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../Components/DataCenter"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property;
        (function(e) {
            e[e.GameStart = 0] = "GameStart", e[e.GamePlay = 1] = "GamePlay"
        })(l = n.LoverArrowClickItemType || (n.LoverArrowClickItemType = {}));
        var v = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Icon = null, t.Mask = null, t.CountDownLabel = null, t.CountRichText = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnConsumeItemClick, this)
            }, t.prototype.InitData = function(e, t, n) {
                this._clickItemType = e, this._itemId = t, this._mainPanel = n, this._itemConfig = d.ConfigDataComponent.Instance.GetConfigById(f.ItemConsume_Config, this._itemId), this.SetIcon(), this.SetConsumeItemCount()
            }, t.prototype.SetIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e = m.default.Instance.GetItemPathById(this._itemId), t = this, [4, c.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                            case 1:
                                return t._itemIcon = n.sent(), this.isValid ? (this.Icon.spriteFrame = this._itemIcon, [2]) : (c.AssetsManager.Instance.UnloadAsset(this._itemIcon), [2])
                        }
                    })
                })
            }, t.prototype.SetConsumeItemCount = function() {
                var e = h.DataCenter.Instance.GetItemCount(this._itemId);
                this._clickItemType == l.GameStart ? this.CountRichText.string = e.toString() : (this._maxCount = this._itemConfig.Param[0].Items[1], this._currentCount = e < this._maxCount ? e : this._maxCount, this.CountRichText.string = this.GetCountLabel())
            }, t.prototype.GetCountLabel = function() {
                return (this._currentCount > 0 ? "LoverArrow_consumeItem_Count" : "LoverArrow_consumeItem_UnCount").ToUILocale().Fmt(this._currentCount, this._maxCount)
            }, t.prototype.OnConsumeItemClick = function() {
                switch (this._clickItemType) {
                    case l.GameStart:
                        u.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, this._itemId, !1);
                        break;
                    case l.GamePlay:
                        if (0 == this._currentCount) return void g.UIUtlity.ShowFloatingHint("LoverArrow_consumeItem_Hint_UnCount".ToUILocale());
                        if (this.Mask.active) return void g.UIUtlity.ShowFloatingHint("LoverArrow_consumeItem_Hint_InTime".ToUILocale());
                        this._currentCount--, this.CountRichText.string = this.GetCountLabel(), this.Mask.active = !0, this._mainPanel.SetConsumeSpine(this._itemId), c.Game.EventDispatcher.Emit(y.EventKeys.EVENT_LOVERARROW_PLAY_CONSUME_CLICK, this._itemId), this._currentCount > 0 && (this._countDown = this._itemConfig.Param[0].Items[2], this._countDown > 0 ? (this.CountDownLabel.node.active = !0, this.CountDownLabel.string = this._countDown.toString(), this.schedule(this.CountDown, 1)) : this.Mask.active = !1)
                }
            }, t.prototype.CountDown = function() {
                this._countDown > 0 ? (this._countDown--, this.CountDownLabel.string = this._countDown.toString()) : (this.Mask.active = !1, this.CountDownLabel.node.active = !1, this.unschedule(this.CountDown))
            }, t.prototype.onDestroy = function() {
                this._itemIcon && c.AssetsManager.Instance.UnloadAsset(this._itemIcon), this.unschedule(this.CountDown)
            }, i([C(cc.Sprite)], t.prototype, "Icon", void 0), i([C(cc.Node)], t.prototype, "Mask", void 0), i([C(cc.Label)], t.prototype, "CountDownLabel", void 0), i([C(cc.RichText)], t.prototype, "CountRichText", void 0), i([_], t)
        }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    LoverArrowDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c2ec3BnjGdKa6Kw1xfC1LUR", "LoverArrowDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.DescTitle = null, t.DescContent = null, t.SpecialHeroTitle = null, t.Tip = null, t.HeroItemContainer = null, t.BtnStart = null, t.BtnStarLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemComponent = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "LoverArrow_Start_Title".ToUILocale(), this.DescTitle.string = "LoverArrow_Detail_DescTitle".ToUILocale(), this.DescContent.string = "LoverArrow_Detail_Desc_Content".ToUILocale(), this.SpecialHeroTitle.string = "LoverArrow_Detail_SpecialHero_Title".ToUILocale(), this.Tip.string = "LoverArrow_Detail_Tip".ToUILocale(), this.BtnStarLabel.string = "LoverArrow_Detail_Start".ToUILocale(), this.BtnStart.node.on("click", this.OnBtnStartClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._configId = t[0], this._heroList = t[1], this._leftFragmentTimes = t[2], this.SetSpecialHeroList(), this.SetHeroItem()
                }, t.prototype.OnBtnStartClick = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.LoverArrowPlayPanel.Path, this._configId, this._specialHeroList, this._heroList, this._leftFragmentTimes), this.Close()
                }, t.prototype.SetSpecialHeroList = function() {
                    var e = this;
                    this._specialHeroList = {}, this._heroList.forEach(function(t) {
                        if (1 == t.Items[1]) {
                            var n = t.Items[0];
                            e._specialHeroList[n] || (e._specialHeroList[n] = 1)
                        }
                    })
                }, t.prototype.SetHeroItem = function() {
                    for (var e in this._specialHeroList) {
                        var t = cc.instantiate(this._itemComponent);
                        t.parent = this.HeroItemContainer, t.getComponent(p.ItemComponent).Init({
                            ItemId: Number(e)
                        }, p.ItemComponentType.HeroInfo)
                    }
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Label)], t.prototype, "DescTitle", void 0), i([f(cc.Label)], t.prototype, "DescContent", void 0), i([f(cc.Label)], t.prototype, "SpecialHeroTitle", void 0), i([f(cc.Label)], t.prototype, "Tip", void 0), i([f(cc.Node)], t.prototype, "HeroItemContainer", void 0), i([f(cc.Button)], t.prototype, "BtnStart", void 0), i([f(cc.Label)], t.prototype, "BtnStarLabel", void 0), i([h], t)
            }(c.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LoverArrowGameArrowComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca1eahQEz9IH77eJQMQlAuy", "LoverArrowGameArrowComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.InitData = function(e, t) {
                    this._hitPosition = e, this._currentHeroesComponent = t, this._arrowRect = new cc.Rect, this._arrowRect.width = 1, this._arrowRect.height = 1, this.SetHitHero()
                }, t.prototype.SetHitHero = function() {
                    this._arrowRect.x = this._hitPosition.x, this._arrowRect.y = this._hitPosition.y;
                    for (var e = Array.from(this._currentHeroesComponent.keys()), t = new cc.Rect, n = 0; n < e.length; n++) {
                        var o = this._currentHeroesComponent.get(e[n]),
                            r = o.node,
                            i = r.getBoundingBoxToWorld();
                        if (t.x = i.x, t.y = i.y, t.width = r.width, t.height = r.height, this._arrowRect.intersects(t)) {
                            o.OnHeroIsHitting();
                            break
                        }
                    }
                }, i([s], t)
            }(cc.Component));
        n.default = l, cc._RF.pop()
    }, {}],
    LoverArrowGetRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "326057vyelLDK2C28XH8dMi", "LoverArrowGetRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ItemComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GameRecord"),
            g = e("../../Auxiliary/EventKeys"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.FragmentRewardTitle = null, t.BigRewardTitle = null, t.FragmentRewardScrollView = null, t.FragmentRewardContentNode = null, t.BigRewardScrollView = null, t.BigRewardContentNode = null, t.UnFragmentRewardLabel = null, t.UnBigRewardLabel = null, t.FragmentRewardCountTip = null, t.BigRewardCountTip = null, t.OnceAgainButton = null, t.OnceAgainButtonLabel = null, t.GoBackButton = null, t.GoBackButtonLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.FragmentRewardTitle.string = "LoverArrow_GetReward_Fragment_Title".ToUILocale(), this.BigRewardTitle.string = "LoverArrow_GetReward_BigReward_Title".ToUILocale(), this.OnceAgainButtonLabel.string = "LoverArrow_GetReward_OnceAgain".ToUILocale(), this.GoBackButtonLabel.string = "holyArea_quit".ToUILocale(), this.OnceAgainButton.node.on("click", this.OnOnceAgainButtonClick, this), this.GoBackButton.node.on("click", this.OnGoBackButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = t[0], this.SetRewardView(t[1], t[2], t[3], t[4])
                }, t.prototype.SetRewardView = function(e, t, n, o) {
                    var r, i;
                    r = e > 0 ? "LoverArrow_Start_LeftFragment_Tip" : "LoverArrow_Start_UnLeftFragment_Tip", this.FragmentRewardCountTip.string = r.ToUILocale().Fmt(e, this._activityConfig.CustomPart.DailyFragmentNum), i = t > 0 ? "LoverArrow_Start_LeftAward_Tip" : "LoverArrow_Start_UnLeftAward_Tip", this.BigRewardCountTip.string = i.ToUILocale().Fmt(t, this._activityConfig.CustomPart.DailyAwardsNum), this._leftFragmentTimes = e, n.length > 0 ? (this.SetRewards(n, this.FragmentRewardContentNode), this.FragmentRewardScrollView.scrollToTop(0)) : this.UnFragmentRewardLabel.string = e > 0 ? "LoverArrow_GetReward_Fragment_UnReward".ToUILocale() : "LoverArrow_GetReward_Fragment_TimesOver".ToUILocale(), o.length > 0 ? this.SetRewards(o, this.BigRewardContentNode) : this.UnBigRewardLabel.string = t > 0 ? "LoverArrow_GetReward_BigReward_UnReward".ToUILocale() : "LoverArrow_GetReward_BigReward_TimesOver".ToUILocale()
                }, t.prototype.SetRewards = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (n = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (n._itemPrefab = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    i.label = 2;
                                case 2:
                                    for (o = 0; o < e.length; o++)(r = cc.instantiate(this._itemPrefab)).parent = t, r.name = e[o].ItemId.toString(), r.getComponent(h.ItemComponent).Init({
                                        ItemId: e[o].ItemId,
                                        Count: e[o].Count
                                    });
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnOnceAgainButtonClick = function() {
                    var e = new u.Req_Activity_LoveArcherStart;
                    e.ActivityId = this._activityConfig._id, p.RpcComponent.Instance.Call(e, this.OnRequestStartDataSuccess.bind(this), this.OnRequestStartDataFail.bind(this))
                }, t.prototype.OnRequestStartDataSuccess = function(e) {
                    if (this._leftFragmentTimes > 0) l.UIManager.Instance.ShowUIPanel(d.PanelConfig.LoverArrowDetailpanel.Path, this._activityConfig._id, e.HeroList), l.UIManager.Instance.BackUIPanel();
                    else if (y.default.GetItem(y.GameRecordDefine.SkipLoverArrowTip)) l.UIManager.Instance.ShowUIPanel(d.PanelConfig.LoverArrowDetailpanel.Path, this._activityConfig._id, e.HeroList), l.UIManager.Instance.BackUIPanel();
                    else {
                        var t = this._activityConfig._id;
                        f.UIUtlity.ShowHintPanel(null, "LoverArrow_Start_Hint_Tip_Content".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "LoverArrow_Start_Hint_Tip_Ok".ToUILocale(), function() {
                            l.UIManager.Instance.ShowUIPanel(d.PanelConfig.LoverArrowDetailpanel.Path, t, e.HeroList), l.UIManager.Instance.BackUIPanel()
                        }, void 0, y.GameRecordDefine.SkipLoverArrowTip)
                    }
                }, t.prototype.OnRequestStartDataFail = function() {
                    f.UIUtlity.ShowHintPanel(null, "LoverArrow_GetReward_RequestFail".ToUILocale())
                }, t.prototype.OnItemClick = function(e, t) {
                    f.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnGoBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, i([_(cc.Label)], t.prototype, "FragmentRewardTitle", void 0), i([_(cc.Label)], t.prototype, "BigRewardTitle", void 0), i([_(cc.ScrollView)], t.prototype, "FragmentRewardScrollView", void 0), i([_(cc.Node)], t.prototype, "FragmentRewardContentNode", void 0), i([_(cc.ScrollView)], t.prototype, "BigRewardScrollView", void 0), i([_(cc.Node)], t.prototype, "BigRewardContentNode", void 0), i([_(cc.Label)], t.prototype, "UnFragmentRewardLabel", void 0), i([_(cc.Label)], t.prototype, "UnBigRewardLabel", void 0), i([_(cc.RichText)], t.prototype, "FragmentRewardCountTip", void 0), i([_(cc.RichText)], t.prototype, "BigRewardCountTip", void 0), i([_(cc.Button)], t.prototype, "OnceAgainButton", void 0), i([_(cc.Label)], t.prototype, "OnceAgainButtonLabel", void 0), i([_(cc.Button)], t.prototype, "GoBackButton", void 0), i([_(cc.Label)], t.prototype, "GoBackButtonLabel", void 0), i([I], t)
            }(c.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LoverArrowHeroComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1fb32kYK5FFFqFu81FrlyZE", "LoverArrowHeroComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Auxiliary/GlobalDefine"),
            c = e("../Panel/LoverArrowPlayPanel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = cc._decorator,
            g = y.ccclass,
            m = (y.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._spineNodeArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(p.EventKeys.EVENT_LOVERARROW_PLAY_CONSUME_CLICK, this.OnConsumeItemClick, this), u.Game.EventDispatcher.On(p.EventKeys.EVENT_LOVERARROW_GAME_OVER, this.OnGameOver, this), u.Game.EventDispatcher.On(p.EventKeys.EVENT_LOVERARROW_SLOWDOWN_TIMEOVER, this.OnSlowDownTimeOver, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(p.EventKeys.EVENT_LOVERARROW_PLAY_CONSUME_CLICK, this.OnConsumeItemClick, this), u.Game.EventDispatcher.Off(p.EventKeys.EVENT_LOVERARROW_GAME_OVER, this.OnGameOver, this), u.Game.EventDispatcher.Off(p.EventKeys.EVENT_LOVERARROW_SLOWDOWN_TIMEOVER, this.OnSlowDownTimeOver, this), this.unscheduleAllCallbacks()
                }, t.prototype.InitData = function(e, t, n, o, r) {
                    this._heroData = e, this._overHeroData = [t, 0], this._heroFixedSpeed = o, this._map = n, this._mainPanel = r, this._mapIndex = 0, this._hitArrowCount = 0, this._isMove = !1, this._isOver = !1, this._isSlowSpeed = !1
                }, t.prototype.SetHeroAni = function(e) {
                    this._heroNode = e, this._heroSkeleton = this._heroNode.getComponent(sp.Skeleton), this._heroSkeleton.setAnimation(0, "standby", !0)
                }, t.prototype.SetHeroState = function(e, t) {
                    e ? (this._isMove = !0, 1 == t ? this._heroCurrentSpeed = this._heroFixedSpeed : (this._isSlowSpeed = !0, this._heroCurrentSpeed = this._heroFixedSpeed * t), this._heroSkeleton.timeScale = t, this.HeroMove(), this._heroSkeleton.setAnimation(0, "move", !0), this.SetHeroDirection(this.node.position.x, this._map[this._mapIndex + 1].position.x)) : (this._isMove = !1, cc.Tween.stopAllByTarget(this.node))
                }, t.prototype.OnHeroIsHitting = function() {
                    this._isOver || (this._hitArrowCount += this._mainPanel.ArrowHitTimes, this.SetHitSpine(), this._hitArrowCount >= this._heroData.Items[2] && (this.OnHeroArrowOver(), this._isOver = !0))
                }, t.prototype.HeroMove = function() {
                    var e = this;
                    if (this._isMove && !this._isOver) {
                        cc.Tween.stopAllByTarget(this.node);
                        var t = this._map[this._mapIndex + 1].position;
                        cc.tween(this.node).tag(l.PanelConfig.LoverArrowPlayPanel.Id).to(this.GetMoveTime(t), {
                            position: t
                        }).call(function() {
                            if (e._mapIndex++, !e._map[e._mapIndex + 1] && !e._isOver) return e._overHeroData[1] = e._hitArrowCount, e._isOver = !0, e._mainPanel.OnHeroMoveOver(e.node, e._overHeroData), void e.PutSpineNode();
                            e.SetHeroDirection(e.node.position.x, e._map[e._mapIndex + 1].position.x), e.HeroMove()
                        }).start()
                    }
                }, t.prototype.GetMoveTime = function(e) {
                    return this.node.position.sub(e).mag() / this._heroCurrentSpeed
                }, t.prototype.SetHeroDirection = function(e, t) {
                    this.node.scaleX = e - t < 0 ? 1 : -1
                }, t.prototype.SetHitSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return (e = this._spineNodeArray[c.HeroSpine.Hit]) || ((e = this._mainPanel.GetHeroSpineNode(c.HeroSpine.Hit)).parent = this.node, this._spineNodeArray[c.HeroSpine.Hit] = e), e.getComponent(sp.Skeleton).setAnimation(0, "Ani_UI_effect_mixinzhijian_baodian", !1), [2]
                        })
                    })
                }, t.prototype.OnHeroArrowOver = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function() {
                            return this._mainPanel.OnHeroIsGetting(this._heroData.Items[0], this._overHeroData), (e = this._mainPanel.GetHeroSpineNode(c.HeroSpine.Smog)).parent = this.node, e.getComponent(sp.Skeleton).setAnimation(0, "Ani_UI_effect_mixinzhijian_huodeyanwu", !1), this._spineNodeArray[c.HeroSpine.Smog] = e, cc.Tween.stopAllByTarget(this.node), this._heroSkeleton.setAnimation(0, "standby", !0), this._isFrozen && (this._spineNodeArray[c.HeroSpine.Frozen].active = !1, this._isFrozen = !1), cc.tween(this.node).tag(l.PanelConfig.LoverArrowPlayPanel.Id).delay(.2).call(function() {
                                var e = t._mainPanel.GetHeroSpineNode(c.HeroSpine.Bubble);
                                e.parent = t.node, e.getComponent(sp.Skeleton).setAnimation(0, "Ani_UI_effect_mixinzhijian_huodeqipao", !0), t._spineNodeArray[c.HeroSpine.Bubble] = e
                            }).to(2, {
                                position: new cc.Vec3(this.node.x, this.node.y + 2e3, 0)
                            }).call(function() {
                                t._overHeroData[1] = t._hitArrowCount, t._mainPanel.OnHeroMoveOver(t.node, t._overHeroData), t.PutSpineNode()
                            }).start(), [2]
                        })
                    })
                }, t.prototype.OnConsumeItemClick = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function() {
                            if (!this._isOver) switch (t = h.ConfigDataComponent.Instance.GetConfigById(f.ItemConsume_Config, e), e) {
                                case d.LoverArrowConsumeType.Frozen:
                                    (n = this._spineNodeArray[c.HeroSpine.Frozen]) || ((n = this._mainPanel.GetHeroSpineNode(c.HeroSpine.Frozen)).parent = this.node, this._spineNodeArray[c.HeroSpine.Frozen] = n), this.unschedule(this.HideFrozenSpine), n.active = !0, this._isFrozen = !0, cc.Tween.stopAllByTarget(this.node), this._heroSkeleton.setAnimation(0, "standby", !0), this.scheduleOnce(this.HideFrozenSpine, t.Param[1].Items[0]);
                                    break;
                                case d.LoverArrowConsumeType.SlowDown:
                                    this._slowSpeedScale = t.Param[1].Items[0] / 1e3, this._isSlowSpeed = !0, this._isFrozen || (this._heroCurrentSpeed = this._heroFixedSpeed * this._slowSpeedScale, this.HeroMove()), this._heroSkeleton.timeScale = this._slowSpeedScale
                            }
                            return [2]
                        })
                    })
                }, t.prototype.HideFrozenSpine = function() {
                    this._spineNodeArray[c.HeroSpine.Frozen].active = !1, this._isFrozen = !1, this._isSlowSpeed ? this._heroCurrentSpeed = this._heroFixedSpeed * this._slowSpeedScale : this._heroCurrentSpeed = this._heroFixedSpeed, this.HeroMove(), this._heroSkeleton.setAnimation(0, "move", !0)
                }, t.prototype.OnGameOver = function() {
                    this._isOver || (this._isOver = !0, this._overHeroData[1] = this._hitArrowCount, this._mainPanel.OnHeroMoveOver(this.node, this._overHeroData), this.PutSpineNode())
                }, t.prototype.OnSlowDownTimeOver = function() {
                    this._isSlowSpeed = !1, this._isFrozen || (this._heroCurrentSpeed = this._heroFixedSpeed, this.HeroMove()), this._heroSkeleton.timeScale = 1
                }, t.prototype.PutSpineNode = function() {
                    var e = this;
                    this._spineNodeArray.forEach(function(t, n) {
                        e._mainPanel.PutHeroSpineNode(n, t)
                    })
                }, t.prototype.onDestroy = function() {
                    cc.Tween.stopAllByTag(l.PanelConfig.LoverArrowPlayPanel.Id)
                }, i([g], t)
            }(cc.Component));
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Panel/LoverArrowPlayPanel": "LoverArrowPlayPanel"
    }],
    LoverArrowPlayPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3a93feFvNVOs4py+tslrRMn", "LoverArrowPlayPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroSpine = void 0;
        var l, c, u, p = e("../../../EZFramework/EZFramework"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ItemComponent"),
            g = e("./CommonLongLabelRollComponent"),
            m = e("../../Components/Components"),
            I = e("../../../../Proto/Static/ConfigProto"),
            _ = e("../Components/LoverArrowConsumeItemComponent"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../Components/LoverArrowHeroComponent"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("./WinnerInfoShow"),
            w = e("../Auxiliary/UIUtlity"),
            P = e("../Components/LoverArrowGameArrowComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.Hit = 0] = "Hit", e[e.Smog = 1] = "Smog", e[e.Bubble = 2] = "Bubble", e[e.Frozen = 3] = "Frozen"
        })(l = n.HeroSpine || (n.HeroSpine = {})),
        function(e) {
            e[e.MapFrozen = 0] = "MapFrozen", e[e.SlowDownBottom = 1] = "SlowDownBottom", e[e.SlowDownTop = 2] = "SlowDownTop", e[e.AddArrow = 3] = "AddArrow", e[e.ContinuousShooting = 4] = "ContinuousShooting"
        }(c || (c = {})),
        function(e) {
            e[e.Playing = 0] = "Playing", e[e.Over = 1] = "Over", e[e.None = 2] = "None"
        }(u || (u = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.TouchBgNode = null, t.LeftGamingTime = null, t.SpecialHeroLabel = null, t.SpecialHeroContainer = null, t.GameOverIcon = null, t.StartCountDownNode = null, t.StartCountDownIcon = null, t.StartCountDownImgs = [], t.MapNode = null, t.WinnerInfoShow = null, t.ConsumeItemComponentArry = [], t.ArrowCount = null, t.BtnReturn = null, t.ArrowStartNode = null, t.MapBottomSpineNode = null, t.MapTopSpineNode = null, t.AddArrowSpineNode = null, t.ContinuousShootingSpineNode = null, t.UnTouchMask = null, t.CURRENT_HERO_COUNT = 15, t._heroStartPosIndex = 0, t._spineNodeList = {}, t._arrowSpineNodeComponent = [], t._continuousArrowTimes = 0, t._itemConsumeTimesArry = [0, 0, 0, 0], t._isGaming = !1, t._showHeroIndex = 0, t._currentGameState = u.None, t._isCanArrow = !0, t._heroSpineNodePool = {}, t._heroSpinesPrefab = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("LoverArrowPanel/Components/LoverArrowMap", cc.Prefab), o = this.LoadDynamicAsset("LabelsComponent/CommonLongLabelRollComponent", cc.Prefab), r = this.LoadDynamicAsset("LoverArrowPanel/Components/Message", cc.Prefab), i = this.LoadDynamicAsset("LoverArrowPanel/PNG/LoverArrowAtlas", cc.SpriteAtlas), a = this.LoadDynamicAsset("LoverArrowPanel/Spine/UI_effect_mixinzhijian_zidan", cc.Prefab), [4, Promise.all([t, n, o, r, i, a]).then(function(e) {
                                    l._itemPrefab = e[0], l._mapPrefab = e[1], l._rollLabelPrefab = e[2], l._messagePrefab = e[3], l._loverArrowAtlas = e[4], l._arrowSpinePrefab = e[5]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SpecialHeroLabel.string = "LoverArrow_Play_SpecialHero_Title".ToUILocale(), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.TouchBgNode.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this), this.SetMap(), this.SetConsumeItem()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this);
                var n = t[0];
                this._specialHeroIdList = t[1], this._heroList = t[2], this._leftFragmentTimes = t[3], this._configData = h.DataCenter.Instance.ActivityConfigs[n], this.LeftGamingTime.string = this._configData.CustomPart.Duration.toString(), this._currentArrowCount = this._configData.CustomPart.BaseArrowNum, this.ArrowCount.string = this._currentArrowCount.toString()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this._leftFragmentTimes > 0 && this.WinnerInfoShow.Init(this._messagePrefab, function(e, t) {
                    e.getComponent(cc.RichText).string = "LoverArrow_Play_GetFragment_Tip".ToUILocale().Fmt(t)
                }), this.SetStart(), this.SetSpecialHero(), this.SetHero(), this.LoadHeroSpine())
            }, t.prototype.SetConsumeSpine = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, u, p, d, h;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                switch (t = m.ConfigDataComponent.Instance.GetConfigById(I.ItemConsume_Config, e), e) {
                                    case C.LoverArrowConsumeType.Frozen:
                                        return [3, 1];
                                    case C.LoverArrowConsumeType.SlowDown:
                                        return [3, 4];
                                    case C.LoverArrowConsumeType.AddArrow:
                                        return [3, 9];
                                    case C.LoverArrowConsumeType.ContinuousShooting:
                                        return [3, 12]
                                }
                                return [3, 15];
                            case 1:
                                return this._itemConsumeTimesArry[0]++, this._spineNodeList[c.MapFrozen] ? [3, 3] : (n = this._spineNodeList, o = c.MapFrozen, [4, this.SetSpineNode(this.MapBottomSpineNode, "UI_effect_mixinzhijian_bingdongdimian")]);
                            case 2:
                                if (n[o] = s.sent(), !this.isValid) return [2];
                                s.label = 3;
                            case 3:
                                return this.unschedule(this.HideMapFrozenSpine), this._spineNodeList[c.MapFrozen].active = !0, this.scheduleOnce(this.HideMapFrozenSpine, t.Param[1].Items[0]), [3, 15];
                            case 4:
                                return this._itemConsumeTimesArry[1]++, this._slowSpeedScale = t.Param[1].Items[0] / 1e3, this._spineNodeList[c.SlowDownTop] ? [3, 6] : (r = this._spineNodeList, i = c.SlowDownTop, [4, this.SetSpineNode(this.MapTopSpineNode, "UI_effect_mixinzhijian_jiansu")]);
                            case 5:
                                if (r[i] = s.sent(), !this.isValid) return [2];
                                s.label = 6;
                            case 6:
                                return this._spineNodeList[c.SlowDownBottom] ? [3, 8] : (a = this._spineNodeList, l = c.SlowDownBottom, [4, this.SetSpineNode(this.MapBottomSpineNode, "UI_effect_mixinzhijian_jiansu02")]);
                            case 7:
                                if (a[l] = s.sent(), !this.isValid) return [2];
                                s.label = 8;
                            case 8:
                                return this.unschedule(this.HideSlowDownSpine), this._spineNodeList[c.SlowDownTop].active = !0, this._spineNodeList[c.SlowDownBottom].active = !0, this.scheduleOnce(this.HideSlowDownSpine, t.Param[1].Items[1]), [3, 15];
                            case 9:
                                return this._itemConsumeTimesArry[2]++, this._spineNodeList[c.AddArrow] ? [3, 11] : (u = this._spineNodeList, p = c.AddArrow, [4, this.SetSpineNode(this.AddArrowSpineNode, "UI_effect_mixinzhijian_aixinzengjia")]);
                            case 10:
                                if (u[p] = s.sent(), !this.isValid) return [2];
                                s.label = 11;
                            case 11:
                                return this._spineNodeList[c.AddArrow].getComponent(sp.Skeleton).setAnimation(0, "Ani_UI_effect_mixinzhijian_aixinzengjia", !1), this._currentArrowCount += t.Param[1].Items[0], this.ArrowCount.string = this._currentArrowCount.toString(), [3, 15];
                            case 12:
                                return this._itemConsumeTimesArry[3]++, this._spineNodeList[c.ContinuousShooting] ? [3, 14] : (d = this._spineNodeList, h = c.ContinuousShooting, [4, this.SetSpineNode(this.ContinuousShootingSpineNode, "UI_effect_mixinzhijian_lianshe")]);
                            case 13:
                                if (d[h] = s.sent(), !this.isValid) return [2];
                                s.label = 14;
                            case 14:
                                return this._spineNodeList[c.ContinuousShooting].active = !0, this._continuousArrowTimes = this._continuousArrowTimes < 0 ? t.Param[1].Items[1] : this._continuousArrowTimes + t.Param[1].Items[1], this._oneArrowHitTimes = t.Param[1].Items[0], [3, 15];
                            case 15:
                                return [2]
                        }
                    })
                })
            }, t.prototype.HideMapFrozenSpine = function() {
                this._spineNodeList[c.MapFrozen].active = !1
            }, t.prototype.HideSlowDownSpine = function() {
                this._spineNodeList[c.SlowDownBottom].active = !1, this._spineNodeList[c.SlowDownTop].active = !1, p.Game.EventDispatcher.Emit(b.EventKeys.EVENT_LOVERARROW_SLOWDOWN_TIMEOVER)
            }, t.prototype.SetSpineNode = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return [4, this.LoadDynamicAsset("LoverArrowPanel/Spine/" + t, cc.Prefab)];
                            case 1:
                                return n = r.sent(), this.isValid ? ((o = cc.instantiate(n)).parent = e, [2, o]) : (p.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.OnHeroMoveOver = function(e, t) {
                e.active = !1;
                var n = this._heroList[t[0]],
                    o = n.Items[0];
                this.PutHeroAvatar(o, e), this._currentHeroesComponent.delete(t[0]), this._currentHeroIndex < this._heroList.length && (this.LoadHeroPrefab(this._heroList[this._currentHeroIndex]), this._currentHeroIndex++), n.Items[2] = t[1]
            }, t.prototype.OnHeroIsGetting = function(e, t) {
                if (this._heroList[t[0]].Items[2] = t[1], this._specialHeroIdList[e] && this._specialHeroComponentArray[e].SetSelectFlagState(!0), this._leftFragmentTimes > 0) {
                    var n = new d.Req_Activity_LoveArcherHeroPiece;
                    n.ActivityId = this._configData._id, n.HeroId = e, h.RpcComponent.Instance.Call(n, this.OnRequestSuccess.bind(this))
                }
            }, t.prototype.OnRequestSuccess = function(e) {
                if (e.PieceId) {
                    var t = m.ConfigDataComponent.Instance.GetConfigById(I.ItemBase_Config, e.PieceId),
                        n = w.UIUtlity.GetLabelColorByQuality(t.Quality),
                        o = [],
                        r = "LoverArrow_Play_Notice".ToUILocale().Fmt(n.toHEX("#rrggbb"), e.PieceId.ToItemName(), e.PieceNum);
                    o[0] = r, this.WinnerInfoShow.Render(o)
                }
            }, t.prototype.GetHeroSpineNode = function(e) {
                var t = this._heroSpineNodePool[e];
                return t ? t.size() > 0 ? t.get() : cc.instantiate(this._heroSpinesPrefab[e]) : (t = new cc.NodePool, this._heroSpineNodePool[e] = t, cc.instantiate(this._heroSpinesPrefab[e]))
            }, t.prototype.PutHeroSpineNode = function(e, t) {
                this._heroSpineNodePool[e] || (this._heroSpineNodePool[e] = new cc.NodePool), this._heroSpineNodePool[e].put(t)
            }, t.prototype.OnTouch = function(e) {
                var t = this;
                if (this._isCanArrow && 0 != this._currentArrowCount) {
                    this._currentArrowCount--, this.ArrowCount.string = this._currentArrowCount.toString(), this._arrowSpineOverPos = e.getLocation();
                    var n = this.node.convertToNodeSpaceAR(this._arrowSpineOverPos);
                    this._aimNode || (this._aimNode = new cc.Node, this._aimNode.parent = this.node, this._aimNode.addComponent(cc.Sprite).spriteFrame = this._loverArrowAtlas.getSpriteFrame("Aim"));
                    var o, r = new cc.Vec3(n.x, n.y, 0);
                    if (this._aimNode.position = r, this._aimNode.active = !0, this._continuousArrowTimes--, this._continuousArrowTimes >= 0) {
                        if (!this._continuousArrowSpineNode) {
                            this._continuousArrowAni = [], this._continuousArrowSpineNode = new cc.Node, this._continuousArrowSpineNode.parent = this.node;
                            for (var i = 0; i < this._oneArrowHitTimes; i++) {
                                var a = cc.instantiate(this._arrowSpinePrefab);
                                a.parent = this._continuousArrowSpineNode, a.y = 60 * -i, this._continuousArrowAni.push(a.getComponent(sp.Skeleton))
                            }
                            this._arrowSpineNodeComponent[0] = this._continuousArrowSpineNode.addComponent(P.default)
                        }
                        o = this._arrowSpineNodeComponent[0], this._arrowSpineNode = this._continuousArrowSpineNode
                    } else this._singleArrowSpineNode || (this._singleArrowSpineNode = cc.instantiate(this._arrowSpinePrefab), this._singleArrowSpineNode.parent = this.node, this._arrowSpineNodeComponent[1] = this._singleArrowSpineNode.addComponent(P.default), this._singleArrowAni = this._singleArrowSpineNode.getComponent(sp.Skeleton)), o = this._arrowSpineNodeComponent[1], this._arrowSpineNode = this._singleArrowSpineNode;
                    this._arrowSpineNode.position = this.ArrowStartNode.position, cc.tween(this._arrowSpineNode).tag(f.PanelConfig.LoverArrowPlayPanel.Id).call(function() {
                        if (t._arrowSpineNode.active = !0, t._isCanArrow = !1, t._arrowSpineNode.angle = -t.GetNodeAngle(n), t._arrowSpineNode == t._singleArrowSpineNode) t._singleArrowAni.setAnimation(0, "Ani_UI_effect_mixinzhijian_zidan", !0);
                        else
                            for (var e = 0; e < t._continuousArrowAni.length; e++) t._continuousArrowAni[e].setAnimation(0, "Ani_UI_effect_mixinzhijian_zidan", !0)
                    }).to(this.GetArrowMoveTime(this.ArrowStartNode.position, r), {
                        position: r
                    }).call(function() {
                        o.InitData(t._arrowSpineOverPos, t._currentHeroesComponent), t._arrowSpineNode.active = !1, t._isCanArrow = !0, t._aimNode.active = !1, 0 == t._currentArrowCount && (t.UnTouchMask.active = !0, t._currentGameState = u.Over, p.Game.EventDispatcher.Emit(b.EventKeys.EVENT_LOVERARROW_GAME_OVER), t.scheduleOnce(t.OnGameOver, 3))
                    }).start(), 0 == this._continuousArrowTimes && (this._spineNodeList[c.ContinuousShooting].active = !1)
                }
            }, Object.defineProperty(t.prototype, "ArrowHitTimes", {
                get: function() {
                    return this._continuousArrowTimes >= 0 ? this._oneArrowHitTimes : 1
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.update = function() {
                this._currentGameState == u.Playing && (this._spineNodeList[c.MapFrozen] && this._spineNodeList[c.MapFrozen].active ? this._timerScale = 0 : this._spineNodeList[c.SlowDownBottom] && this._spineNodeList[c.SlowDownBottom].active ? this._timerScale = this._slowSpeedScale : this._timerScale = 1, this._timer = this._timer + cc.director.getDeltaTime() * this._timerScale, this._timer >= 1 && (this._timer = 0, this.GamingTimeCountDown()), this._heroTimer = this._heroTimer + cc.director.getDeltaTime() * this._timerScale, this._heroTimer >= this._configData.CustomPart.Interval && (this._heroTimer = 0, this.SetShowHero()))
            }, t.prototype.SetShowHero = function() {
                if (this._currentGameState != u.Over && this._showHeroIndex < this._heroList.length) {
                    var e = this._heroList[this._showHeroIndex].Items[0],
                        t = this.GetHeroAvatar(e);
                    t.parent = this._heroesNode, t.position = this._mapData[this._heroStartPosIndex].position, t.setSiblingIndex(0);
                    var n = t.getComponent(v.default);
                    this._currentHeroesComponent.set(this._showHeroIndex, n), n.InitData(this._heroList[this._showHeroIndex], this._showHeroIndex, this._mapData, this._configData.CustomPart.HeroSpeed, this), n.SetHeroState(!0, this._timerScale), t.active = !0, this._showHeroIndex++
                }
            }, t.prototype.GetArrowMoveTime = function(e, t) {
                return e.sub(t).mag() / this._configData.CustomPart.ArrowSpeed
            }, t.prototype.GetNodeAngle = function(e) {
                return e.sub(new cc.Vec2(this.ArrowStartNode.position.x, this.ArrowStartNode.position.y)).signAngle(cc.v2(0, 1)) / Math.PI * 180
            }, t.prototype.OnBtnReturnClick = function() {
                var e = this;
                w.UIUtlity.ShowHintPanel(null, "LoverArrow_Play_Return".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "LoverArrow_Start_Hint_Tip_Ok".ToUILocale(), function() {
                    e.UnTouchMask.active = !0, e._currentGameState = u.Over, p.Game.EventDispatcher.Emit(b.EventKeys.EVENT_LOVERARROW_GAME_OVER), e.scheduleOnce(e.OnGameOver, 1)
                })
            }, t.prototype.SetSpecialHero = function() {
                for (var e in this._specialHeroComponentArray = {}, this._specialHeroIdList) {
                    var t = cc.instantiate(this._itemPrefab);
                    t.parent = this.SpecialHeroContainer;
                    var n = t.getComponent(y.ItemComponent);
                    n.Init({
                        ItemId: Number(e)
                    }, y.ItemComponentType.HeroInfo), this._specialHeroComponentArray[Number(e)] = n, this.SetSpecialHeroName(t, Number(e).ToHeroTitle())
                }
            }, t.prototype.SetSpecialHeroName = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r;
                    return s(this, function() {
                        return (n = cc.instantiate(this._rollLabelPrefab)).setParent(e), (o = n.getComponent(g.default)).MaskNode.anchorX = .5, o.Content.node.anchorX = .5, n.setPosition(0, -115), r = this.node.width + 10, o.SetUI(t, r, 40), [2]
                    })
                })
            }, t.prototype.LoadHeroSpine = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e = this.LoadDynamicAsset("LoverArrowPanel/Spine/UI_effect_mixinzhijian_baodian", cc.Prefab), t = this.LoadDynamicAsset("LoverArrowPanel/Spine/UI_effect_mixinzhijian_huodeyanwu", cc.Prefab), n = this.LoadDynamicAsset("LoverArrowPanel/Spine/UI_effect_mixinzhijian_huodeqipao", cc.Prefab), o = this.LoadDynamicAsset("LoverArrowPanel/Spine/UI_effect_mixinzhijian_bingdong", cc.Prefab), [4, Promise.all([e, t, n, o]).then(function(e) {
                                    r._heroSpinesPrefab[l.Hit] = e[0], r._heroSpinesPrefab[l.Smog] = e[1], r._heroSpinesPrefab[l.Bubble] = e[2], r._heroSpinesPrefab[l.Frozen] = e[3]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.SetStart = function() {
                this._threeCountDown = 2, this._gamingTimeCountDown = this._configData.CustomPart.Duration, this.StartCountDownNode.active = !0, this.UnTouchMask.active = !0, this.schedule(this.ThreeCountDown, 1)
            }, t.prototype.ThreeCountDown = function() {
                this._threeCountDown >= 0 ? (this.StartCountDownIcon.spriteFrame = this.StartCountDownImgs[this._threeCountDown], this._threeCountDown--) : (this.StartCountDownNode.active = !1, this.UnTouchMask.active = !1, this._currentGameState = u.Playing, this.unschedule(this.ThreeCountDown), this._timer = 0, this._heroTimer = 0, this._isGaming = !0)
            }, t.prototype.GamingTimeCountDown = function() {
                if (this._isGaming && this._gamingTimeCountDown > 0) this._gamingTimeCountDown--, this.LeftGamingTime.string = this._gamingTimeCountDown.toString();
                else {
                    if (this._currentGameState == u.Over) return;
                    this.UnTouchMask.active = !0, this._currentGameState = u.Over, p.Game.EventDispatcher.Emit(b.EventKeys.EVENT_LOVERARROW_GAME_OVER), this.scheduleOnce(this.OnGameOver, 3)
                }
            }, t.prototype.OnGameOver = function() {
                if (this._showHeroIndex < this._heroList.length)
                    for (var e = this._showHeroIndex; e < this._heroList.length; e++) this._heroList[e].Items[2] = 0;
                this.SendOverGameRequest()
            }, t.prototype.SendOverGameRequest = function() {
                var e = new d.Req_Activity_LoveArcherFinish;
                e.ActivityId = this._configData._id, e.PropUsedTimes = this._itemConsumeTimesArry, e.HeroList = this._heroList, h.RpcComponent.Instance.Call(e, this.OnRequestOverDataSuccess.bind(this), this.OnRequestOverDataFail.bind(this))
            }, t.prototype.OnRequestOverDataSuccess = function(e) {
                p.UIManager.Instance.BackUIPanel(), p.UIManager.Instance.ShowUIPanel(f.PanelConfig.LoverArrowGetRewardPanel.Path, this._configData, e.LeftFragmentTimes, e.LeftAwardTimes, e.FragRewards, e.AwardRewards)
            }, t.prototype.OnRequestOverDataFail = function() {
                p.UIManager.Instance.BackUIPanel(), w.UIUtlity.ShowHintPanel(null, "LoverArrow_RequestFail_Replay".ToUILocale())
            }, t.prototype.SetMap = function() {
                this._mapData = [];
                var e = cc.instantiate(this._mapPrefab);
                e.parent = this.MapNode;
                for (var t = 0; t < e.childrenCount; t++) {
                    var n = Number(e.children[t].name);
                    this._mapData[n] = e.children[t]
                }
            }, t.prototype.SetConsumeItem = function() {
                for (var e = m.ConfigDataComponent.Instance.GetConfigById(I.LevelParam_Config, C.LevelParamType.LoverArrowConsume), t = 0; t < this.ConsumeItemComponentArry.length; t++) this.ConsumeItemComponentArry[t].InitData(_.LoverArrowClickItemType.GamePlay, e.Data[t], this)
            }, t.prototype.SetHero = function() {
                this._currentHeroesComponent = new Map, this._heroNodePoolList = {}, this._heroesPrefab = {}, this._heroesNode = new cc.Node, this._heroesNode.parent = this.MapNode;
                for (var e = 0; e < this.CURRENT_HERO_COUNT; e++) this.LoadHeroPrefab(this._heroList[e]);
                this._currentHeroIndex = this.CURRENT_HERO_COUNT
            }, t.prototype.LoadHeroPrefab = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return t = e.Items[0], n = m.ConfigDataComponent.Instance.GetConfigById(I.HeroBase_Config, t), this._heroesPrefab[t] ? [3, 2] : (o = this._heroesPrefab, r = t, [4, this.LoadDynamicAsset("Hero_" + n.Model + "/HeroAvatar", cc.Prefab)]);
                            case 1:
                                if (o[r] = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._heroesPrefab[t]), [2];
                                s.label = 2;
                            case 2:
                                return this._specialHeroIdList[t] ? this._specialHeroBottomSpine ? [3, 4] : (i = this, [4, this.LoadDynamicAsset("LoverArrowPanel/Spine/UI_effect_mixinzhijian_teshuyingxiong02", cc.Prefab)]) : [3, 6];
                            case 3:
                                if (i._specialHeroBottomSpine = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._specialHeroBottomSpine), [2];
                                s.label = 4;
                            case 4:
                                return this._specialHeroTopSpine ? [3, 6] : (a = this, [4, this.LoadDynamicAsset("LoverArrowPanel/Spine/UI_effect_mixinzhijian_teshuyingxiong", cc.Prefab)]);
                            case 5:
                                if (a._specialHeroTopSpine = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._specialHeroTopSpine), [2];
                                s.label = 6;
                            case 6:
                                return [2]
                        }
                    })
                })
            }, t.prototype.GetHeroAvatar = function(e) {
                var t = this._heroNodePoolList[e];
                return t ? t.size() > 0 ? t.get() : this.GetHeroNode(e) : (t = new cc.NodePool, this._heroNodePoolList[e] = t, this.GetHeroNode(e))
            }, t.prototype.GetHeroNode = function(e) {
                var t = new cc.Node,
                    n = cc.instantiate(this._heroesPrefab[e]);
                return this._specialHeroIdList[e] ? (cc.instantiate(this._specialHeroBottomSpine).parent = t, n.parent = t, cc.instantiate(this._specialHeroTopSpine).parent = t, t.width = n.width, t.height = n.height, t.addComponent(v.default).SetHeroAni(n), t) : (n.addComponent(v.default).SetHeroAni(n), n)
            }, t.prototype.PutHeroAvatar = function(e, t) {
                this._heroNodePoolList[e] || (this._heroNodePoolList[e] = new cc.NodePool), this._heroNodePoolList[e].put(t)
            }, t.prototype.onDestroy = function() {
                if (this.unscheduleAllCallbacks(), cc.Tween.stopAllByTag(f.PanelConfig.LoverArrowPlayPanel.Id), this._heroNodePoolList)
                    for (var e in this._heroNodePoolList) this._heroNodePoolList[e].clear()
            }, i([R(cc.Node)], t.prototype, "TouchBgNode", void 0), i([R(cc.Label)], t.prototype, "LeftGamingTime", void 0), i([R(cc.Label)], t.prototype, "SpecialHeroLabel", void 0), i([R(cc.Node)], t.prototype, "SpecialHeroContainer", void 0), i([R(cc.Sprite)], t.prototype, "GameOverIcon", void 0), i([R(cc.Node)], t.prototype, "StartCountDownNode", void 0), i([R(cc.Sprite)], t.prototype, "StartCountDownIcon", void 0), i([R(cc.SpriteFrame)], t.prototype, "StartCountDownImgs", void 0), i([R(cc.Node)], t.prototype, "MapNode", void 0), i([R(S.default)], t.prototype, "WinnerInfoShow", void 0), i([R(_.default)], t.prototype, "ConsumeItemComponentArry", void 0), i([R(cc.Label)], t.prototype, "ArrowCount", void 0), i([R(cc.Button)], t.prototype, "BtnReturn", void 0), i([R(cc.Node)], t.prototype, "ArrowStartNode", void 0), i([R(cc.Node)], t.prototype, "MapBottomSpineNode", void 0), i([R(cc.Node)], t.prototype, "MapTopSpineNode", void 0), i([R(cc.Node)], t.prototype, "AddArrowSpineNode", void 0), i([R(cc.Node)], t.prototype, "ContinuousShootingSpineNode", void 0), i([R(cc.Node)], t.prototype, "UnTouchMask", void 0), i([T], t)
        }(p.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoverArrowConsumeItemComponent": "LoverArrowConsumeItemComponent",
        "../Components/LoverArrowGameArrowComponent": "LoverArrowGameArrowComponent",
        "../Components/LoverArrowHeroComponent": "LoverArrowHeroComponent",
        "./CommonLongLabelRollComponent": "CommonLongLabelRollComponent",
        "./WinnerInfoShow": "WinnerInfoShow"
    }],
    LoverArrowStartPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6392eoVgaZAqpiMNZoKgGAM", "LoverArrowStartPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/LoverArrowConsumeItemComponent"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../../Components/Components"),
            C = e("../../../../Proto/Static/ConfigProto"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../../RedDot/RedDotManager"),
            S = e("../Battle/BattleManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.BtnRule = null, t.RewardLabel = null, t.BtnRewardInfo = null, t.RewardScrollView = null, t.RewardContainerNode = null, t.LeftTimeTip = null, t.LeftAwardTip = null, t.LeftFragmentTip = null, t.BtnGo = null, t.BtnGoLabel = null, t.BtnReturn = null, t.ConsumeContainer = null, t.ConsumeComponentArry = [], t.BtnGift = null, t.BtnGiftLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemComponent = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "LoverArrow_Start_Title".ToUILocale(), this.RewardLabel.string = "exlore_final".ToUILocale(), this.BtnGoLabel.string = "task_goto".ToUILocale(), this.BtnGiftLabel.string = "LoverArrow_Start_GiftName".ToUILocale(), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnGo.node.on("click", this.OnBtnGoClick, this), this.BtnRewardInfo.node.on("click", this.OnBtnRewardInfoClick, this), this.BtnGift.node.on("click", this.OnBtnGiftClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._configData = f.DataCenter.Instance.ActivityConfigs[n], S.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !1, l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, S.BattleManager.Instance.ActivityCanShowBattleSettlePanel && S.BattleManager.Instance.CanShowBattleSettlePanel)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetDeadLine(), this.schedule(this.SetDeadLine, 1), this.SetRewards()), this.SetTips(), this.SetConsumeItem(), this.SetRedDot()
                }, t.prototype.SetRedDot = function() {
                    b.RedDotManager.Instance.BindInstance(this.BtnGo.node, b.RedDotManager.Instance.InstanceRedDot.LoverArrowStartNode, {
                        Value1: this._configData._id
                    })
                }, t.prototype.OnBtnRuleClick = function() {
                    var e = {
                        name: "LoverArrow_Start_Title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["LoverArrow_Start_Rule_Content".ToUILocale()]
                    };
                    p.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnBtnRewardInfoClick = function() {
                    p.UIUtlity.ShowFloatingHint("LoverArrow_Start_Reward_Info".ToUILocale())
                }, t.prototype.OnBtnGoClick = function() {
                    var e = this;
                    this._leftFragmentTimes > 0 ? l.UIManager.Instance.ShowUIPanel(u.PanelConfig.LoverArrowDetailpanel.Path, this._configData._id, this._heroList, this._leftFragmentTimes) : I.default.GetItem(I.GameRecordDefine.SkipLoverArrowTip) ? l.UIManager.Instance.ShowUIPanel(u.PanelConfig.LoverArrowDetailpanel.Path, this._configData._id, this._heroList, this._leftFragmentTimes) : p.UIUtlity.ShowHintPanel(null, "LoverArrow_Start_Hint_Tip_Content".ToUILocale(), "Answer_QuitNo".ToUILocale(), null, "LoverArrow_Start_Hint_Tip_Ok".ToUILocale(), function() {
                        l.UIManager.Instance.ShowUIPanel(u.PanelConfig.LoverArrowDetailpanel.Path, e._configData._id, e._heroList, e._leftFragmentTimes)
                    }, void 0, I.GameRecordDefine.SkipLoverArrowTip)
                }, t.prototype.OnBtnGiftClick = function() {
                    var e = this._configData.Common.Pictures,
                        t = {
                            ActivityId: this._configData._id,
                            ActivityGiftPackData: this._configData._Packs,
                            Deadline: y.default.Instance.ComputeDeadTime(this._configData.Common),
                            BannerPath: e[0],
                            Title: "LoverArrow_Start_GiftName".ToUILocale()
                        };
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.SetConsumeItem = function() {
                    for (var e = _.ConfigDataComponent.Instance.GetConfigById(C.LevelParam_Config, v.LevelParamType.LoverArrowConsume), t = 0; t < this.ConsumeComponentArry.length; t++) this.ConsumeComponentArry[t].InitData(d.LoverArrowClickItemType.GameStart, e.Data[t])
                }, t.prototype.OnBtnReturnClick = function() {
                    S.BattleManager.Instance.ActivityCanShowBattleSettlePanel = !0, l.Game.EventDispatcher.Emit(m.EventKeys.EVENT_SET_MANUAL_BOX_ACTIVE, S.BattleManager.Instance.ActivityCanShowBattleSettlePanel && S.BattleManager.Instance.CanShowBattleSettlePanel), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.SetTips = function() {
                    var e = new h.Req_Activity_LoveArcherStart;
                    e.ActivityId = this._configData._id, f.RpcComponent.Instance.Call(e, this.OnRequestSuccess.bind(this), this.OnRequestFail.bind(this))
                }, t.prototype.OnRequestSuccess = function(e) {
                    var t, n;
                    t = e.LeftFragmentTimes > 0 ? "LoverArrow_Start_LeftFragment_Tip" : "LoverArrow_Start_UnLeftFragment_Tip", this.LeftFragmentTip.string = t.ToUILocale().Fmt(e.LeftFragmentTimes, this._configData.CustomPart.DailyFragmentNum), n = e.LeftAwardTimes > 0 ? "LoverArrow_Start_LeftAward_Tip" : "LoverArrow_Start_UnLeftAward_Tip", this.LeftAwardTip.string = n.ToUILocale().Fmt(e.LeftAwardTimes, this._configData.CustomPart.DailyAwardsNum), this._leftFragmentTimes = e.LeftFragmentTimes, this._heroList = e.HeroList
                }, t.prototype.OnRequestFail = function() {
                    l.UIManager.Instance.BackUIPanel(), p.UIUtlity.ShowHintPanel(null, "LoverArrow_RequestFail_Replay".ToUILocale())
                }, t.prototype.SetDeadLine = function() {
                    var e = y.default.Instance.ComputeDeadTime(this._configData.Common) - f.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTimeTip.string = "LoverArrow_Start_LeftTime".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetRewards = function() {
                    for (var e = this._configData.CustomPart.Rewards, t = 0; t < e.length; t++) {
                        var n = cc.instantiate(this._itemComponent);
                        n.parent = this.RewardContainerNode;
                        var o = e[t].Items[0];
                        n.name = o.toString(), n.getComponent(g.ItemComponent).Init({
                            ItemId: o,
                            Count: e[t].Items[1]
                        }, g.ItemComponentType.ItemCommon)
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContainerNode.children.indexOf(t) && p.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.SetDeadLine)
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Button)], t.prototype, "BtnRule", void 0), i([A(cc.Label)], t.prototype, "RewardLabel", void 0), i([A(cc.Button)], t.prototype, "BtnRewardInfo", void 0), i([A(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([A(cc.Node)], t.prototype, "RewardContainerNode", void 0), i([A(cc.RichText)], t.prototype, "LeftTimeTip", void 0), i([A(cc.RichText)], t.prototype, "LeftAwardTip", void 0), i([A(cc.RichText)], t.prototype, "LeftFragmentTip", void 0), i([A(cc.Button)], t.prototype, "BtnGo", void 0), i([A(cc.Label)], t.prototype, "BtnGoLabel", void 0), i([A(cc.Button)], t.prototype, "BtnReturn", void 0), i([A(cc.Node)], t.prototype, "ConsumeContainer", void 0), i([A(d.default)], t.prototype, "ConsumeComponentArry", void 0), i([A(cc.Button)], t.prototype, "BtnGift", void 0), i([A(cc.Label)], t.prototype, "BtnGiftLabel", void 0), i([P], t)
            }(c.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoverArrowConsumeItemComponent": "LoverArrowConsumeItemComponent"
    }],
    LuckDrawShowRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ee2a8Avo8BLyp1HJI90twAz", "LuckDrawShowRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../Components/ItemComponent"),
            c = e("../Components/PrefabListContainerComp"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.ContentRichText = null, t.ItemContainer = null, t.colorConfig = ["#ff4b4b", "#ff9a1d", "#b440f8", "#00b0ff", "#23e123"], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._rewardsNum = t[0], this._rewards = t[1]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        var o = "LuckyDraw_showReward".ToUILocale() + "\n";
                        this._rewardsNum.forEach(function(e, t) {
                            n._rewardsNum[t] && (o += ("LuckyDraw_showReward2".ToUILocale() + "\n").Fmt(n._rewardsNum[t].rewardsName.RichTextColor(n.colorConfig[t]), e.count.toString().RichTextColor("#e6dfb8")))
                        }), o = o.RichTextOutLine("#000000", 3), this.ContentRichText.string = o, this.ItemContainer.Init(s.BundlePath.ItemComponent, l.ItemComponent, function(e, t) {
                            e.Init(n._rewards[t])
                        }), this.ItemContainer.Set(this._rewards.length)
                    }
                }, t.prototype.onDestroy = function() {}, i([d(cc.RichText)], t.prototype, "ContentRichText", void 0), i([d(c.default)], t.prototype, "ItemContainer", void 0), i([p], t)
            }(a.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PrefabListContainerComp": "PrefabListContainerComp"
    }],
    LuckyBagAccumulatedChargePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9b2ccFPyq5Nba8nJJkIZzBM", "LuckyBagAccumulatedChargePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/CustomLayout"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../Components/AccumulatedChargeRewardComponent"),
            y = e("../../../Consts/Etc"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.CustomLayout = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ActivityLuckyBagPanel/Components/AccumulatedChargeRewardComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._listItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "Activity_LuckyBag_AccumulatedCharge_Panel_Title".ToUILocale(), this.CustomLayout.Init(this._listItemPrefab)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._configData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetTasks(), this._tasks.sort(this.SortTask.bind(this)), this.CustomLayout.RenderLayOut(this._tasks.length)
                }, t.prototype.SetTasks = function() {
                    this._tasks = [];
                    for (var e = 0; e < this._configData._Tasks.length; e++) this._tasks[e] = this._configData._Tasks[e]
                }, t.prototype.SortTask = function(e, t) {
                    var n = this.GetTaskModel(this._configData._id, e.Id),
                        o = this.GetTaskModel(this._configData._id, t.Id);
                    return n.IsCompleted && !o.IsCompleted ? 1 : !n.IsCompleted && o.IsCompleted ? -1 : n.Progress >= e.TotalCount && o.Progress < e.TotalCount ? -1 : n.Progress < e.TotalCount && o.Progress >= e.TotalCount ? 1 : e.SortId - t.SortId
                }, t.prototype.GetTaskModel = function(e, t) {
                    return h.DataCenter.Instance.GetDataById(d.UserTask_Model, e * y.Etc.Multiplier + t)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(f.default).Init(n._itemPrefab, n._tasks[t], n._tasks, n._configData._id)
                    })
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(p.default)], t.prototype, "CustomLayout", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/AccumulatedChargeRewardComponent": "AccumulatedChargeRewardComponent",
        "../Components/CustomLayout": "CustomLayout"
    }],
    LuckyBagComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4bfe813b8lA/5R4GkwXdmyP", "LuckyBagComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/DataCenter"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.BagAni = null, t.BagSpine = null, t.TicketCount = null, t.TicketIcon = null, t.TicketAddButton = null, t.OpenButton = null, t.OpenButtonLabel = null, t._isSetName = !1, t._isShowiRewardPoint = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    h.Game.EventDispatcher.On(g.EventKeys.EVENT_COMMON_REWARDS_PANEL_CLOSE, this.OnRewardPanelClose, this)
                }, t.prototype.onDisable = function() {
                    h.Game.EventDispatcher.Off(g.EventKeys.EVENT_COMMON_REWARDS_PANEL_CLOSE, this.OnRewardPanelClose, this)
                }, t.prototype.onLoad = function() {
                    this.OpenButtonLabel.string = "Activity_LuckyBag_Bag_Open".ToUILocale(), this.TicketAddButton.node.on("click", this.OnTicketAddButtonClick, this), this.OpenButton.node.on("click", this.OnOpenButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._activityConfig = e, this._activityId = e._id, this._summonData = t, this._bagIndex = n, this._ticketId = this._summonData.ConsumeItem[0].Items[0], this._needCount = this._summonData.ConsumeItem[0].Items[1], this._spineName = o, this._mainPanel = r, this._isSetName || (this.Name.string = ("Activity_LuckyBag_Bag_Name_" + n).ToUILocale(), this._isSetName = !0, this.SetItemIcon()), this._ticketCount = u.DataCenter.Instance.GetItemCount(this._ticketId), this._ticketCount >= this._needCount ? this.TicketCount.string = "item_count_enough".ToUILocale().Fmt(this._ticketCount, this._needCount) : this.TicketCount.string = "item_count_not_enough".ToUILocale().Fmt(this._ticketCount, this._needCount)
                }, t.prototype.SetItemIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = f.default.Instance.GetItemPathById(this._ticketId), t = this, [4, h.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t._ticketIcon = n.sent(), this.isValid ? (this.TicketIcon.spriteFrame = this._ticketIcon, [2]) : (h.AssetsManager.Instance.UnloadAsset(this._ticketIcon), [2])
                            }
                        })
                    })
                }, t.prototype.OnTicketAddButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._ticketId, !1)
                }, t.prototype.OnOpenButtonClick = function() {
                    var e = this;
                    if (this._ticketCount >= this._needCount) {
                        var t = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit");
                        if (this._summonCount = Math.floor(this._ticketCount / this._needCount) >= t ? t : Math.floor(this._ticketCount / this._needCount), this._activityConfig.CustomPart.DoNotCheck) return void this.RequestSummon();
                        var n = f.default.Instance.GetHeroCountLimit(),
                            o = u.DataCenter.Instance.GetDataList(p.UserHero_Model);
                        if (n - o.length > 0) n - o.length >= this._summonCount ? this.RequestSummon() : y.UIUtlity.ShowHintPanel("", "use_all_ticket_hint2".ToUILocale().Fmt(n, o.length, n - o.length), "", null, "", function() {
                            e._summonCount = n - o.length, e.RequestSummon()
                        });
                        else {
                            var r = "drawCard_heroCount_limit".ToUILocale().Fmt(n);
                            y.UIUtlity.ShowHintPanel("", r, "", null, "go_to_treat".ToUILocale(), function() {
                                h.UIManager.Instance.ShowUIPanel(c.PanelConfig.HeroPalacePanel.Path, 1)
                            })
                        }
                    } else l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._ticketId, !1)
                }, t.prototype.RequestSummon = function() {
                    if (!f.default.CheckActivityIsEnd(this._activityConfig.Common, !0)) {
                        var e = new p.Req_Activity_CommonSummon;
                        e.ActivityId = this._activityId, e.ItemId = this._ticketId, e.Type = this._summonData.Id, e.Count = this._summonCount, d.RpcComponent.Instance.Call(e, this.OnSummonSuccess.bind(this))
                    }
                }, t.prototype.OnSummonSuccess = function(e) {
                    var t = this;
                    this.BagSpine.node.active = !0, this.BagAni.node.active = !0, this.BagSpine.setAnimation(0, this._spineName, !1), this.BagAni.setAnimation(0, "Ani_UI_effect_FD_putongfudai_2", !1);
                    for (var n = [], o = 0; o < e.Items.length; o++) n[o] = {}, n[o].ItemId = e.Items[o].Items[0], n[o].Count = e.Items[o].Items[1];
                    this._mainPanel.SetUnTouchMaskNode(), this.scheduleOnce(function() {
                        t._isShowiRewardPoint = !0, y.UIUtlity.ShwDisplayRewardPanel(n)
                    }, 1)
                }, t.prototype.OnRewardPanelClose = function() {
                    this._isShowiRewardPoint && (this._isShowiRewardPoint = !1, this._mainPanel.SetLuckyTip(this._summonData.SummonType, this._summonCount, this._bagIndex), this.BagSpine.clearTracks(), this.BagSpine.setToSetupPose())
                }, t.prototype.onDestroy = function() {
                    this._ticketIcon && h.AssetsManager.Instance.UnloadAsset(this._ticketIcon), this.unscheduleAllCallbacks()
                }, i([_(cc.Label)], t.prototype, "Name", void 0), i([_(sp.Skeleton)], t.prototype, "BagAni", void 0), i([_(sp.Skeleton)], t.prototype, "BagSpine", void 0), i([_(cc.RichText)], t.prototype, "TicketCount", void 0), i([_(cc.Sprite)], t.prototype, "TicketIcon", void 0), i([_(cc.Button)], t.prototype, "TicketAddButton", void 0), i([_(cc.Button)], t.prototype, "OpenButton", void 0), i([_(cc.Label)], t.prototype, "OpenButtonLabel", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    LuckyBagGetRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9ad72X3/qZAXoR1QTdboutq", "LuckyBagGetRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/ItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Content = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._mainPanel = t[1], this._summonType = t[2], this._summonCount = t[3], this._bagIndex = t[4], this._bagSpine = t[5], this.SetItemContent(t[0])
                }, t.prototype.SetItemContent = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.Content), n.name = e[t].ItemId.toString(), n.getComponent(h.ItemComponent).Init({
                            ItemId: e[t].ItemId,
                            Count: e[t].Count
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.Content.children.indexOf(t) && d.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this._mainPanel.SetLuckyTip(this._summonType, this._summonCount, this._bagIndex), this._bagSpine.clearTracks(), this._bagSpine.setToSetupPose()
                }, i([g(cc.Node)], t.prototype, "Content", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LuckyBagRatePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f06e4g4aztB2YdsI+CDGa0e", "LuckyBagRatePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CommonRateGroupItem"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../Components/CustomToggle"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.CommonBag = 0] = "CommonBag", e[e.HighBag = 1] = "HighBag", e[e.SpecialBag = 2] = "SpecialBag", e[e.Len = 3] = "Len"
        })(l || (l = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1), t.Tittle = null, t.ScrollView = null, t.GroupGrid = null, t.ToggleContainer = null, t._rateItemComponentArray = [], t._rateDataList = [], t._currentTab = l.CommonBag, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("SummonHeroPanel/Private/CommonRateGroupItem", cc.Prefab), n = this.LoadDynamicAsset("Buttons/Toggle1", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._rateItemPrefab = e[0], o._togglePrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Tittle.string = "showRate".ToUILocale(), this.SetToggle()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._activityConfig = t[0]
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetItemsByType()
            }, t.prototype.SetToggle = function() {
                for (var e = 0; e < l.Len; e++) {
                    var t = cc.instantiate(this._togglePrefab);
                    t.getComponent(d.default).Init(("Activity_LuckyBag_Bag_Name_" + e).ToUILocale()), t.parent = this.ToggleContainer, t.name = e.toString(), t.on("toggle", this.OnSwitchTab, this)
                }
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentTab != t && (this._currentTab = t, this.SetItemsByType())
            }, t.prototype.SetItemsByType = function() {
                this._libsData = this._activityConfig.__ShowChance[this._currentTab].ShowLib, this.SetRateData(), this.SetGroupGrid()
            }, t.prototype.SetRateData = function() {
                var e = [];
                this._rateDataList = [];
                for (var t = 0; t < this._libsData.length; t++) {
                    var n = this._libsData[t].Items;
                    e[t] = new p.IntArray, e[t].Items = [n[0], n[1], n[2] / 1e3]
                }
                this._rateDataList[0] = e
            }, t.prototype.SetGroupGrid = function() {
                for (var e = 0; e < this._rateDataList.length; e++) {
                    var t = this._rateItemComponentArray[e];
                    if (!t) {
                        var n = cc.instantiate(this._rateItemPrefab);
                        n.parent = this.GroupGrid.node, t = n.getComponent(u.default), this._rateItemComponentArray[e] = t
                    }
                    t.SetUI(null, this._rateDataList[e]), t.node.active = !0
                }
                if (this._rateDataList.length < this._rateItemComponentArray.length)
                    for (e = this._rateDataList.length; e < this._rateItemComponentArray.length; e++) this._rateItemComponentArray[e].node.active = !1;
                this.ScrollView.scrollToTop()
            }, i([y(cc.Label)], t.prototype, "Tittle", void 0), i([y(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([y(cc.Layout)], t.prototype, "GroupGrid", void 0), i([y(cc.Node)], t.prototype, "ToggleContainer", void 0), i([f], t)
        }(c.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/CommonRateGroupItem": "CommonRateGroupItem",
        "../Components/CustomToggle": "CustomToggle"
    }],
    LuckyBagTreasureBoxPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "198c74n2+VPR7YkhPPSyZaz", "LuckyBagTreasureBoxPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/TreasureBoxItemComponent"),
            h = e("../Components/CustomProgressBar"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.BoxScrollView = null, t.BoxContainer = null, t.CurrentBoxLevel = null, t.CurrentProgress = null, t.ProgressValue = null, t._boxComponetArray = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ActivityLuckyBagPanel/Components/TreasureBoxItemComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._listItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "Activity_LuckyBag_TreasureBox_Name".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityConfig = t[0], this._luckyBagAtlas = t[1], this.CurrentBoxLevel.string = t[2], this.ProgressValue.string = t[3], this.CurrentProgress.progress = t[4]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._playerModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), this.SetBoxContainer()
                }, t.prototype.SetBoxContainer = function() {
                    for (var e = 0; e < this._activityConfig.Levels.length; e++) {
                        var t = this._boxComponetArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._listItemPrefab);
                            n.parent = this.BoxContainer, t = n.getComponent(d.default), this._boxComponetArray[e] = t
                        }
                        var o = null != this._activityConfig.Levels[e + 1] ? this._activityConfig.Levels[e + 1] : null,
                            r = this._luckyBagAtlas.getSpriteFrame("Box_" + this._activityConfig.Levels[e].PictureIndex);
                        t.Init(this._itemPrefab, r, this._activityConfig.Levels[e], o, this._activityConfig._id, this._playerModel, this.CurrentProgress.progress), t.node.active = !0
                    }
                }, i([g(cc.Label)], t.prototype, "Title", void 0), i([g(cc.ScrollView)], t.prototype, "BoxScrollView", void 0), i([g(cc.Node)], t.prototype, "BoxContainer", void 0), i([g(cc.Label)], t.prototype, "CurrentBoxLevel", void 0), i([g(h.default)], t.prototype, "CurrentProgress", void 0), i([g(cc.Label)], t.prototype, "ProgressValue", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/TreasureBoxItemComponent": "TreasureBoxItemComponent"
    }],
    LuckyCakeRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9aaa0r9TpNCe4jEhlEFrczi", "LuckyCakeRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("./ItemComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.TagNode = null, t.TagLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.TagLabel.string = "ActivityLuckyCake_Surprise".ToUILocale()
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._rewardData = e, this._receiveState = t, this._itemPrefab = n, this.TagNode.active = !!this._rewardData[3], this.SetItemNode()
                }, t.prototype.SetItemNode = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemNode), this._itemComponent = e.getComponent(c.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: this._rewardData[0],
                        Count: this._rewardData[1]
                    }), this._itemComponent.SetReceivedTagState(this._receiveState)
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = t.getComponent(c.ItemComponent);
                    this.ItemNode == t.parent && l.UIUtlity.ShowItemTip(n.ItemId, t)
                }, i([d(cc.Node)], t.prototype, "ItemNode", void 0), i([d(cc.Node)], t.prototype, "TagNode", void 0), i([d(cc.Label)], t.prototype, "TagLabel", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    LuckyCakeRewardPreviewListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7bc03RrdhZKxLEVq2gh1+VT", "LuckyCakeRewardPreviewListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Components/ItemComponent"),
            c = e("../Auxiliary/UIUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Tag = null, t.ItemContainer = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._rewardData = t, this._itemPrefab = n, this.Tag.string = "Activity_HeroPK_Round_Tag".ToUILocale().Fmt(e), this.SetItemContainer()
                }, t.prototype.SetItemContainer = function() {
                    for (var e = 0; e < this._rewardData.length; e++) {
                        var t = cc.instantiate(this._itemPrefab);
                        t.setParent(this.ItemContainer), t.getComponent(l.ItemComponent).Init({
                            ItemId: this._rewardData[e].Items[0],
                            Count: this._rewardData[e].Items[1]
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = t.getComponent(l.ItemComponent);
                    this.ItemContainer.children.indexOf(t) > -1 && c.UIUtlity.ShowItemTip(n.ItemId, t)
                }, i([d(cc.Label)], t.prototype, "Tag", void 0), i([d(cc.Node)], t.prototype, "ItemContainer", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LuckyCharmBagPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4b55axslZxJ8JfVXLODvepP", "LuckyCharmBagPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("./LuckyCharmSkillComponent"),
            g = e("../Components/ItemComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.LuckyCharmTypeLabel = null, t.AtrributeTitleLabel = null, t.SkillTitleLabel = null, t.DescriptionTitleLabel = null, t.ApproachLabel = null, t.RecastButtonLabel = null, t.CannotRecastButtonLabel = null, t.ComposeButtonLabel = null, t.LuckyCharmItemContainer = null, t.LuckyCharmNameRichText = null, t.LuckyCharmTypeValueLabel = null, t.LockNode = null, t.AttrZone = null, t.AttrNodeArray = [], t.SkillZone = null, t.SkillTitleTag = null, t.SkillNodeArray = [], t.DescLabel = null, t.ApproachNode = null, t.RecastButton = null, t.CannotRecastButton = null, t.ComposeButton = null, t.RuleButton = null, t._luckycharmSid = -1, t._lockStateToSpriteArray = [], t._lockStateToTipInfoArray = [], t._itemComponent = null, t._attrNameNodeName = "Tag", t._attrValueNodeName = "Value", t._attrIconNodeName = "AttrIcon", t._skillItemContainerName = "skillItemContainer", t._skillNameNodeName = "SkillNameLabel", t._skillDescNodeName = "SkillDescRichText", t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.default.LuckyCharmSkillComponentPath), n = this.LoadDynamicAsset(c.BundlePath.ItemComponent), [4, Promise.all([t, n]).then(function(e) {
                                        o._skillPrefab = e[0], o._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvents()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._luckycharmSid = t[0]
                }, t.prototype.MultiLanguageAssign = function() {
                    this.LuckyCharmTypeLabel.string = "equip_type_tag".ToUILocale(), this.AtrributeTitleLabel.string = "equip_base_attr".ToUILocale(), this.SkillTitleLabel.string = "luckycharm_skill".ToUILocale(), this.DescriptionTitleLabel.string = "itemDesc".ToUILocale(), this.ApproachLabel.string = "Personalise_getway".ToUILocale(), this.RecastButtonLabel.string = "luckycharm_recast".ToUILocale(), this.CannotRecastButtonLabel.string = "luckycharm_recast".ToUILocale(), this.ComposeButtonLabel.string = "compose".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    this._lockStateToSpriteArray = ["smallBtn_unlock", "smallBtn_lock"], this._lockStateToTipInfoArray = ["luckycharm_unlocked", "luckycharm_locked"];
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.LuckyCharmItemContainer), this._itemComponent = e.getComponent(g.ItemComponent)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.GetLuckyCharmModel(), this.SetHeader(), this.SetAttribute(), this.SetSkill(), this.SetDescription(), this.SetButtons()
                }, t.prototype.GetLuckyCharmModel = function() {
                    this._luckycharmModel = d.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, this._luckycharmSid)
                }, t.prototype.SetHeader = function() {
                    this._itemId = this._luckycharmModel.ItemId, this._itemComponent.Init({
                        ItemId: this._itemId
                    });
                    var e = d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._itemId),
                        t = h.UIUtlity.GetLabelColorByQuality(e.Quality);
                    this.LuckyCharmNameRichText.string = "<outline width=2 color = #3e2100><color = " + t.toHEX("#rrggbb") + ">" + this._itemId.ToItemName() + "</color></outline>", this.LuckyCharmTypeValueLabel.string = "luckycharm".ToUILocale(), this.SetLockByModel()
                }, t.prototype.SetAttribute = function() {
                    for (var e = this._luckycharmModel.Attrs.length, t = 0; t < e; t++) {
                        var n = this.AttrNodeArray[t];
                        n.active = !0;
                        var o = this._luckycharmModel.Attrs[t].Items[1],
                            r = f.default.GetHeroAttribute(this._luckycharmModel.Attrs[t].Items[0], o, !0);
                        n.getChildByName(this._attrNameNodeName).getComponent(cc.Label).string = r.Name, n.getChildByName(this._attrValueNodeName).getComponent(cc.Label).string = this.NumberSign(o) + r.Value, n.getChildByName(this._attrIconNodeName).getComponent(cc.Sprite).spriteFrame = r.Icon
                    }
                    for (t = e; t < this.AttrNodeArray.length; t++) this.AttrNodeArray[t].active = !1
                }, t.prototype.SetSkill = function() {
                    var e = this._luckycharmModel.Skills.length;
                    if (0 != e) {
                        this.SkillZone.active = !0;
                        for (var t = 0; t < e; t++) {
                            l.EZLog.Log(" --- --- --- SKILL INDEX = ", t);
                            var n = this.SkillNodeArray[t];
                            n.active = !0;
                            var o = n.getChildByName(this._skillItemContainerName),
                                r = o.getComponentInChildren(y.default);
                            if (!r) {
                                var i = cc.instantiate(this._skillPrefab);
                                r = i.getComponent(y.default), i.setParent(o)
                            }
                            var a = this._luckycharmModel.Skills[t],
                                s = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmSkill_Config, a);
                            r.InitByConfig(s);
                            var c = n.getChildByName(this._skillNameNodeName);
                            c.color = h.UIUtlity.GetLabelColorByQuality(s.Quality), c.getComponent(cc.Label).string = d.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + a), n.getChildByName(this._skillDescNodeName).getComponent(cc.RichText).string = d.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_desc_" + a)
                        }
                        for (t = e; t < this.SkillNodeArray.length; t++) this.SkillNodeArray[t].active = !1
                    } else this.SkillZone.active = !1
                }, t.prototype.SetDescription = function() {
                    this.DescLabel.string = this._itemId.ToItemDesc()
                }, t.prototype.SetButtons = function() {
                    d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmEquip_Config, this._luckycharmModel.ItemId).CastRewards.length > 0 ? (this.CannotRecastButton.node.active = !1, this.RecastButton.node.active = !0) : (this.CannotRecastButton.node.active = !0, this.RecastButton.node.active = !1)
                }, t.prototype.SetLock = function(e) {
                    var t = 0;
                    e && (t = 1), this.LockNode.getComponent(cc.Sprite).spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this._lockStateToSpriteArray[t])
                }, t.prototype.SetLockByModel = function() {
                    this.SetLock(this._luckycharmModel.Locked)
                }, t.prototype.NumberSign = function(e) {
                    return e > 0 ? "+" : ""
                }, t.prototype.OnEvents = function() {
                    this.LockNode.on(cc.Node.EventType.TOUCH_END, this.OnLockTouch, this), this.ApproachNode.on(cc.Node.EventType.TOUCH_END, this.OnApproachTouch, this), this.RecastButton.node.on("click", this.OnRecastButtonClick, this), this.CannotRecastButton.node.on("click", this.OnCannotRecastButtonClick, this), this.ComposeButton.node.on("click", this.OnComposeButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this)
                }, t.prototype.OnLockTouch = function() {
                    var e = this,
                        t = new p.Req_Item_LuckyCharmLock;
                    t.Sid = this._luckycharmSid, t.Locked = !this._luckycharmModel.Locked, d.RpcComponent.Instance.Call(t, function() {
                        e.GetLuckyCharmModel(), e.SetLockByModel();
                        var n = 0;
                        t.Locked && (n = 1), h.UIUtlity.ShowFloatingHint(e._lockStateToTipInfoArray[n].ToUILocale())
                    })
                }, t.prototype.OnApproachTouch = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._itemId)
                }, t.prototype.OnRecastButtonClick = function() {
                    this.Close(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmRecastPanel.Path, this._luckycharmSid)
                }, t.prototype.OnCannotRecastButtonClick = function() {
                    h.UIUtlity.ShowFloatingHint("luckycharm_cannotRecast".ToUILocale())
                }, t.prototype.OnComposeButtonClick = function() {
                    this.Close(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmComposePanel.Path)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "luckycharm".ToUILocale(),
                        titles: ["detail".ToUILocale()],
                        contents: ["luckycharm_Info_RuleText".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, i([_(cc.Label)], t.prototype, "LuckyCharmTypeLabel", void 0), i([_(cc.Label)], t.prototype, "AtrributeTitleLabel", void 0), i([_(cc.Label)], t.prototype, "SkillTitleLabel", void 0), i([_(cc.Label)], t.prototype, "DescriptionTitleLabel", void 0), i([_(cc.Label)], t.prototype, "ApproachLabel", void 0), i([_(cc.Label)], t.prototype, "RecastButtonLabel", void 0), i([_(cc.Label)], t.prototype, "CannotRecastButtonLabel", void 0), i([_(cc.Label)], t.prototype, "ComposeButtonLabel", void 0), i([_(cc.Node)], t.prototype, "LuckyCharmItemContainer", void 0), i([_(cc.RichText)], t.prototype, "LuckyCharmNameRichText", void 0), i([_(cc.Label)], t.prototype, "LuckyCharmTypeValueLabel", void 0), i([_(cc.Node)], t.prototype, "LockNode", void 0), i([_(cc.Node)], t.prototype, "AttrZone", void 0), i([_({
                    type: [cc.Node]
                })], t.prototype, "AttrNodeArray", void 0), i([_(cc.Node)], t.prototype, "SkillZone", void 0), i([_(cc.Node)], t.prototype, "SkillTitleTag", void 0), i([_({
                    type: [cc.Node]
                })], t.prototype, "SkillNodeArray", void 0), i([_(cc.Label)], t.prototype, "DescLabel", void 0), i([_(cc.Node)], t.prototype, "ApproachNode", void 0), i([_(cc.Button)], t.prototype, "RecastButton", void 0), i([_(cc.Button)], t.prototype, "CannotRecastButton", void 0), i([_(cc.Button)], t.prototype, "ComposeButton", void 0), i([_(cc.Button)], t.prototype, "RuleButton", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmChooseShell: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c1d2aFYZjpDEY2qsgDdJLCE", "LuckyCharmChooseShell");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CheckMark = null, t.ItemContainer = null, t.ClickNode = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r) {
                    if (void 0 === n && (n = null), this.ItemContainer.childrenCount > 0) this._item = this.ItemContainer.getComponentInChildren(a.ItemComponent);
                    else {
                        var i = void 0;
                        r ? i = r : null == (i = h.default.itemPrefab) && (i = f.DataCenter.Instance.GetTempData("Gem_Item"));
                        var s = cc.instantiate(i);
                        s.name = null == n ? e.toString() : n.toString(), s.setParent(this.ItemContainer), this._item = s.getComponent(a.ItemComponent)
                    }
                    o ? this._item.Init({
                        ItemId: e,
                        Count: o
                    }) : this._item.Init({
                        ItemId: e
                    }), this.CheckMark.active = t
                }, t.prototype.InitHeroJob = function(e, t, n) {
                    if (!this._item) {
                        var o = cc.instantiate(n);
                        o.parent = this.ItemContainer, this._item = o.getComponent(a.ItemComponent)
                    }
                    this._item.Init({
                        ItemId: e,
                        Count: t
                    })
                }, t.prototype.SetGemAttr = function(e) {
                    this._item.SetGemAttrSprite(e)
                }, t.prototype.SetGemSelect = function(e) {
                    this._item.SetGemSelect(e.GallerySlot > 0, "gemGallery_show".ToUILocale())
                }, t.prototype.SetItemTeamFlag = function(e) {
                    e ? (this._item.TeamFlag.active = !0, this._item.TeamFlag.getComponent(cc.Sprite).spriteFrame = y.UIUtlity.COMMON_ATLAS5.getSpriteFrame("party_tag")) : this._item.TeamFlag.active = !1
                }, t.prototype.onEnable = function() {
                    this.ClickNode.on(cc.Node.EventType.TOUCH_END, this.OnCheckedTouch, this)
                }, t.prototype.onDisable = function() {
                    this.ClickNode.off(cc.Node.EventType.TOUCH_END, this.OnCheckedTouch, this)
                }, t.prototype.OnCheckedTouch = function() {
                    s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CHECK, this)
                }, t.prototype.SetCheckMark = function(e) {
                    this.CheckMark.active = e
                }, i([p(cc.Node)], t.prototype, "CheckMark", void 0), i([p(cc.Node)], t.prototype, "ItemContainer", void 0), i([p(cc.Node)], t.prototype, "ClickNode", void 0), i([u], t)
            }(cc.Component);
        n.default = d;
        var h = e("./LuckyCharmComposePanel"),
            f = e("../../Components/DataCenter"),
            y = e("../Auxiliary/UIUtlity");
        cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./LuckyCharmComposePanel": "LuckyCharmComposePanel"
    }],
    LuckyCharmCombineSkillElementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c7a912QjEdFiZ8VUlC3/vTn", "LuckyCharmCombineSkillElementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ElementNode1 = null, t.ElementNode2 = null, t.HighlightSprite = null, t._elementType = 0, t._isSelected = !1, t._panelInstance = null, t._atlas = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClicked, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnNodeClicked)
                }, t.prototype.onDestroy = function() {
                    this._atlas && l.AssetsManager.Instance.UnloadAsset(this._atlas)
                }, t.prototype.Init = function(e, t) {
                    this._elementType = e, this._panelInstance = t, this.LoadIcons()
                }, t.prototype.LoadIcons = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, l.AssetsManager.Instance.LoadAsset("LuckyCharms/PNG/LuckyCharm", cc.SpriteAtlas)];
                                case 1:
                                    if (e._atlas = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._atlas), [2];
                                    switch (this._elementType) {
                                        case c.LuckyCharmStarSkillType.DoubleYin:
                                            this.ElementNode1.spriteFrame = this._atlas.getSpriteFrame("element_dark"), this.ElementNode2.spriteFrame = this._atlas.getSpriteFrame("element_dark");
                                            break;
                                        case c.LuckyCharmStarSkillType.YinYang:
                                            this.ElementNode1.spriteFrame = this._atlas.getSpriteFrame("element_dark"), this.ElementNode2.spriteFrame = this._atlas.getSpriteFrame("element_light");
                                            break;
                                        case c.LuckyCharmStarSkillType.DoubleYang:
                                            this.ElementNode1.spriteFrame = this._atlas.getSpriteFrame("element_light"), this.ElementNode2.spriteFrame = this._atlas.getSpriteFrame("element_light")
                                    }
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetToUnSelected = function() {
                    this._isSelected = !1, this.HighlightSprite.node.active = !1
                }, t.prototype.OnNodeClicked = function() {
                    this._isSelected || (this._isSelected = !0, this.HighlightSprite.node.active = !0, this._panelInstance.SelectCombineSkillElement(this._elementType))
                }, Object.defineProperty(t.prototype, "ElementType", {
                    get: function() {
                        return this._elementType
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([d(cc.Sprite)], t.prototype, "ElementNode1", void 0), i([d(cc.Sprite)], t.prototype, "ElementNode2", void 0), i([d(cc.Sprite)], t.prototype, "HighlightSprite", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType"
    }],
    LuckyCharmComposeChestTip: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "29098B8/6RO3YkeujbwlC5H", "LuckyCharmComposeChestTip");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("./LuckyCharmComposePanel"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Tip, !1, !1), t.Title = null, t.Tip = null, t.ButtonLabel = null, t.ItemContainer = null, t.Button = null, t.ClickNode = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "luckycharm_composeReward".ToUILocale(), this.ButtonLabel.string = "ok".ToUILocale(), this.Button.node.on("click", this.Close, this), this.ClickNode.on(cc.Node.EventType.TOUCH_END, this.OnClickNodeTouch, this);
                    var t = cc.instantiate(l.default.itemPrefab);
                    t.setParent(this.ItemContainer), this._itemComponent = t.getComponent(a.ItemComponent)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._valueLimit = t[0], this._itemId = t[1]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.Tip.string = "luckycharm_chestTip".ToUILocale().Fmt(this._valueLimit), this._itemComponent.node.name = this._itemId.toString(), this._itemComponent.Init({
                        ItemId: this._itemId
                    })
                }, t.prototype.OnClickNodeTouch = function() {
                    var e = new u.LuckyCharmEquip_Model;
                    e.ItemId = this._itemId, s.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmTipsPanel.Path, e, this.ClickNode, 1)
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Label)], t.prototype, "Tip", void 0), i([h(cc.Label)], t.prototype, "ButtonLabel", void 0), i([h(cc.Node)], t.prototype, "ItemContainer", void 0), i([h(cc.Button)], t.prototype, "Button", void 0), i([h(cc.Node)], t.prototype, "ClickNode", void 0), i([d], t)
            }(s.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent",
        "./LuckyCharmComposePanel": "LuckyCharmComposePanel"
    }],
    LuckyCharmComposeChooseHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c185e2d5KtPrYhzQq7S6g/b", "LuckyCharmComposeChooseHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/CustomLayout"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("./LuckyCharmChooseShell"),
            g = e("../../Components/Components"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.TitleLabel = null, t.ChosenTagLabel = null, t.ChosenValueLabel = null, t.ConfirmButtonLabel = null, t.ConfirmButton = null, t.ViewCustomLayout = null, t._luckycharmChooseShellPath = "LuckyCharms/Components/LuckyCharmChooseShell", t._isLayoutInit = !1, t._chosenArray = [], t._chosenItemId = -1, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(this._luckycharmChooseShellPath), [4, Promise.all([t]).then(function(e) {
                                        n._sealedItemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClick, this)
                }, t.prototype.MultiLanguageAssign = function() {
                    this.TitleLabel.string = "luckycharm_choose".ToUILocale(), this.ChosenTagLabel.string = "luckycharm_alreadyChosen".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    this._modelsArray = e[0], this._chosenArray = e[1]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.PreSet(), this.InitCustomLayout()
                }, t.prototype.PreSet = function() {
                    var e = this;
                    this._chosenItemSidSet = new Set, 0 == this._chosenArray.length ? this._chosenItemId = -1 : (this._chosenArray.forEach(function(t) {
                        e._chosenItemSidSet.add(t)
                    }), this._chosenItemId = g.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, this._chosenArray[0]).ItemId), this.SetChosenValueLabel()
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.ViewCustomLayout.Init(this._sealedItemPrefab, !1)), this._modelsArray.sort(this.CompareFn.bind(this)), this.ViewCustomLayout.RenderLayOut(this._modelsArray.length)
                }, t.prototype.CompareFn = function(e, t) {
                    if (this._chosenItemSidSet.has(e.Sid)) return -1;
                    if (this._chosenItemSidSet.has(t.Sid)) return 1;
                    var n = g.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e.ItemId),
                        o = g.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, t.ItemId);
                    return n.Quality < o.Quality ? -1 : 1
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CHECK, this.OnItemCheck, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CHECK, this.OnItemCheck), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = Number.parseInt(t.parent.parent.name),
                        o = g.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, n);
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmTipsPanel.Path, o, t)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.ViewCustomLayout == t && e.forEach(function(e, t) {
                        var o = n._modelsArray[t],
                            r = n._modelsArray[t].Sid,
                            i = e.getComponent(y.default);
                        i.Init(o.ItemId, n._chosenItemSidSet.has(r)), i.SetItemTeamFlag(o.OwnerId > 0), e.name = r.toString()
                    })
                }, t.prototype.OnConfirmButtonClick = function() {
                    l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CONFIRM, this._chosenItemSidSet), this.Close()
                }, t.prototype.OnItemCheck = function(e) {
                    var t = !e.CheckMark.active,
                        n = Number.parseInt(e.name);
                    if (t) {
                        if (this._chosenItemSidSet.size >= 5) return void h.UIUtlity.ShowFloatingHint("luckycharm_overChosen".ToUILocale());
                        var o = g.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, n);
                        if (o.ItemId != this._chosenItemId) {
                            if (!(this._chosenItemId < 0)) return void h.UIUtlity.ShowFloatingHint("luckycharm_pleaseChooseSameQuality".ToUILocale());
                            this._chosenItemId = o.ItemId
                        }
                        this._chosenItemSidSet.add(n)
                    } else this._chosenItemSidSet.delete(n), 0 == this._chosenItemSidSet.size && (this._chosenItemId = -1);
                    e.CheckMark.active = t, this.SetChosenValueLabel()
                }, t.prototype.SetChosenValueLabel = function() {
                    this.ChosenValueLabel.string = this._chosenItemSidSet.size + "/5"
                }, i([_(cc.Label)], t.prototype, "TitleLabel", void 0), i([_(cc.Label)], t.prototype, "ChosenTagLabel", void 0), i([_(cc.Label)], t.prototype, "ChosenValueLabel", void 0), i([_(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([_(cc.Button)], t.prototype, "ConfirmButton", void 0), i([_(u.default)], t.prototype, "ViewCustomLayout", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./LuckyCharmChooseShell": "LuckyCharmChooseShell"
    }],
    LuckyCharmComposePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4436f16HYFBeYM2fp67fJDe", "LuckyCharmComposePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../../Consts/Consts"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/GameRecord"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../../Consts/Consts"),
            C = e("../Components/CustomProgressBar"),
            v = e("../Components/CurrencyBarItem"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.TitleLabel = null, t.TipLabel = null, t.AddAllIngredientButtonLabel = null, t.ComposeButtonLabel = null, t.RateOfSuccessLabel = null, t.QuickCombineButtonLabel = null, t.RateOfSuccessNode = null, t.CurrencyBarItem = null, t.ProgressValueLabel = null, t.IngredientNumberLabel = null, t.LuckyCharmContainer = null, t.ChestNode = null, t.FillEffectArray = [], t.ComposeEffectArray = [], t.ComposeSuccessEffect = null, t.AddButton = null, t.ComposeButton = null, t.IngredientIncreaseButton = null, t.IngredientDecreaseButton = null, t.ReturnButton = null, t.RuleButton = null, t.QuickCombineButton = null, t.FailPieceProgressBar = null, t.CenterTouchNode = null, t.SkipAnimationToggle = null, t.SkipTip = null, t.SelectHintToggle = null, t.SelectHint = null, t._slotCount = 5, t._centerSlotIndex = 5, t._highestItemId = 10455, t._coinId = 1, t._fillAniName = "UI_effect_fuwen_tianchong", t._composeAniName = "UI_effect_fuwen_hecheng", t._successAniName = "UI_effect_fuwen_chenggong", t._slotTouchNodeName = "MaskAndTouchNode", t._successTipLabelColorArray = [], t._luckyCharmModelArray = [], t._chosenLuckyCharmIndexArray = [], t._chosenLuckyCharmsSidArray = [], t._slotItemArray = [], t._centerItemComponent = null, t._chosenNumber = 0, t._chosenItemId = -1, t._addNumber = 5, t._buttonBlockingUp = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), I.default.Instance.GetItemPathById(this._coinId), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), [4, Promise.all([t]).then(function(e) {
                                        n.itemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.FixedValueAssign(), this.MultiLanguageAssign(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    var e = this;
                    this.TitleLabel.string = "luckycharm_composeTitle".ToUILocale(), this.TipLabel.string = "luckycharm_composeTip".ToUILocale(), this.AddAllIngredientButtonLabel.string = "luckycharm_addAllIngredients".ToUILocale(), this.ComposeButtonLabel.string = "compose".ToUILocale(), this.QuickCombineButtonLabel.string = "compose_auto".ToUILocale(), this.SkipTip.string = "LuckyCharm_Skip_Animation_Tip".ToUILocale(), this.SelectHint.string = "luckycharm_composeSelectHint".ToUILocale(), this.scheduleOnce(function() {
                        e.SelectHintToggle.node.x = (e.SelectHintToggle.node.width - e.SkipAnimationToggle.node.width) / 2
                    })
                }, t.prototype.FixedValueAssign = function() {
                    this._successTipLabelColorArray = [new cc.Color(51, 255, 142), new cc.Color(255, 91, 91)], this._composeValueLimit = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmFailPieceMaxCount"), this._composeRewardId = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmFailPieceRewardId"), this._shouldShowSuccessRateBox = !0, this._addNumber = 5, this.PreSet()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this)
                }, t.prototype.PreSet = function() {
                    this.IngredientNumberLabel.string = this._addNumber.toString();
                    for (var e = 0; e < this._slotCount; e++) {
                        var t = cc.instantiate(n.itemPrefab);
                        t.setParent(this.LuckyCharmContainer.children[e]), t.setSiblingIndex(0), t.active = !1, this._slotItemArray[e] = t.getComponent(g.ItemComponent)
                    }
                    var o = cc.instantiate(n.itemPrefab);
                    o.setParent(this.LuckyCharmContainer.children[this._centerSlotIndex]), o.setSiblingIndex(0), o.active = !1, this._centerItemComponent = o.getComponent(g.ItemComponent), this.RateOfSuccessNode.active = !1, this.CurrencyBarItem.node.active = !1
                }, t.prototype.OnEvent = function() {
                    for (var e = 0; e < this._slotCount; e++) this.LuckyCharmContainer.children[e].getChildByName(this._slotTouchNodeName).on(cc.Node.EventType.TOUCH_END, this.OnItemContainerTouchEnd, this);
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.QuickCombineButton.node.on("click", this.OnQuickCombineButtonClick, this), this.ChestNode.on(cc.Node.EventType.TOUCH_END, this.OnChestNodeTouch, this), this.CenterTouchNode.on(cc.Node.EventType.TOUCH_END, this.OnCenterNodeTouch, this), this.AddButton.node.on("click", this.OnAddButtonClick, this), this.ComposeButton.node.on("click", this.OnComposeButtonClick, this), this.IngredientIncreaseButton.node.on("click", this.OnIncreaseButtonClick, this), this.IngredientDecreaseButton.node.on("click", this.OnDecreaseButtonClick, this), this.SkipAnimationToggle.node.on("toggle", this.OnSkipAnimationToggleClick, this), this.SkipAnimationToggle.isChecked = I.default.GetFunctionSkipState(_.FunctionSkipKey.LuckyCharm), this.SelectHintToggle.node.on("toggle", this.OnSelectHintToggle, this), this.SelectHintToggle.isChecked = I.default.GetFunctionSkipState(_.FunctionSkipKey.LuckyCharmSelect)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_LUCKYCHARM_QUERY_RESULT, this.OnQueryHintClose, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_LUCKYCHARM_QUICK_COMPOSE, this.RefreshCurrentShow, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_LUCKYCHARM_QUERY_RESULT, this.OnQueryHintClose), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_LUCKYCHARM_QUICK_COMPOSE, this.RefreshCurrentShow, this)
                }, t.prototype.OnQueryHintClose = function(e) {
                    this._shouldShowSuccessRateBox = e, this.RequestCompose()
                }, t.prototype.OnItemContainerTouchEnd = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CONFIRM, this.OnConfirmButtonClick), l.Game.EventDispatcher.On(f.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CONFIRM, this.OnConfirmButtonClick, this), this.GetCustomLuckyCharm(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmComposeChooseHint.Path, this._luckyCharmModelArray, this._chosenLuckyCharmsSidArray)
                }, t.prototype.OnConfirmButtonClick = function(e) {
                    var t = this;
                    this._chosenLuckyCharmsSidArray = [], this._chosenLuckyCharmIndexArray = [], e.forEach(function(e) {
                        t._chosenLuckyCharmIndexArray.push(e), t._chosenLuckyCharmsSidArray.push(e)
                    });
                    var n = e.size;
                    if (0 == n) this._chosenItemId = -1;
                    else {
                        var o = d.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, this._chosenLuckyCharmsSidArray[0]);
                        this._chosenItemId = o.ItemId
                    }
                    this.SetSlotItem(n), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_LUCKYCHARM_CHOOSE_CONFIRM, this.OnConfirmButtonClick)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "luckycharm_RuleMainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["luckycharm_RuleText".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnQuickCombineButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.CommonQuickCombinePanel.Path, 0)
                }, t.prototype.OnChestNodeTouch = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmComposeChestTip.Path, this._composeValueLimit, this._composeRewardId)
                }, t.prototype.OnCenterNodeTouch = function() {
                    if (this._centerItemComponent.node.active) {
                        var e = new p.LuckyCharmEquip_Model;
                        e.ItemId = this._centerItemComponent.ItemId, l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmTipsPanel.Path, e, this.CenterTouchNode, 1)
                    }
                }, t.prototype.OnAddButtonClick = function() {
                    if (!this._buttonBlockingUp)
                        if (this.GetCustomLuckyCharm(), this._luckyCharmModelArray.length < 2) h.UIUtlity.ShowFloatingHint("luckycharm_ingredientNotEnough".ToUILocale());
                        else {
                            this._chosenLuckyCharmsSidArray = [this._luckyCharmModelArray[0].Sid], this._chosenItemId = this._luckyCharmModelArray[0].ItemId, this._chosenLuckyCharmIndexArray = [0];
                            for (var e = 1; e < this._luckyCharmModelArray.length; e++) {
                                var t = this._luckyCharmModelArray[e];
                                if (t.ItemId != this._chosenItemId) {
                                    if (this._chosenLuckyCharmIndexArray = [e], this._chosenLuckyCharmsSidArray = [t.Sid], this._chosenItemId = t.ItemId, this._chosenItemId == this._highestItemId) break
                                } else if (this._chosenLuckyCharmIndexArray.push(e), this._chosenLuckyCharmsSidArray.push(t.Sid), this._chosenLuckyCharmsSidArray.length == this._addNumber) break
                            }
                            this._chosenLuckyCharmsSidArray.length < this._addNumber ? (h.UIUtlity.ShowFloatingHint("heroPalace_replace_material_not_enough".ToUILocale()), this._chosenLuckyCharmsSidArray = []) : this.SetSlotItem(this._addNumber)
                        }
                }, t.prototype.SetSlotItem = function(e) {
                    for (var t = 0; t < e; t++) this._slotItemArray[t].Init({
                        ItemId: this._chosenItemId
                    }), this._slotItemArray[t].node.active = !0, this.PlayAnimation(this.FillEffectArray[t], this._fillAniName, function() {}), this.ComposeEffectArray[t].node.active = !0, d.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, this._chosenLuckyCharmsSidArray[t]).OwnerId ? (this._slotItemArray[t].TeamFlag.active = !0, this._slotItemArray[t].TeamFlag.getComponent(cc.Sprite).spriteFrame = h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("party_tag")) : this._slotItemArray[t].TeamFlag.active = !1;
                    for (t = e; t < this._slotCount; t++) this._slotItemArray[t].node.active = !1, this.ComposeEffectArray[t].node.active = !1;
                    this._chosenNumber = e, this.GetComposeData()
                }, t.prototype.CheckIsShowing = function() {
                    for (var e = d.DataCenter.Instance.GetDataList(p.LuckyCharmShowHouse_Model), t = function(t) {
                            var o = n._chosenLuckyCharmsSidArray[t];
                            if (e.findIndex(function(e) {
                                    return e.LuckyCharmId == o
                                }) > -1) return {
                                value: !0
                            }
                        }, n = this, o = 0; o < this._chosenLuckyCharmsSidArray.length; o++) {
                        var r = t(o);
                        if ("object" == typeof r) return r.value
                    }
                    return !1
                }, t.prototype.OnComposeButtonClick = function() {
                    var e = this;
                    this._chosenLuckyCharmsSidArray.length < 2 ? h.UIUtlity.ShowFloatingHint("luckycharm_ingredientNotEnough".ToUILocale()) : this._coinsCost > d.DataCenter.Instance.GetItemCount(this._coinId) ? l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._coinId) : this._shouldShowSuccessRateBox && this._isSuccessRateLowerThanSpecificValue && !m.default.GetItem(m.GameRecordDefine.LuckyCharmComposeTip) ? h.UIUtlity.ShowHintPanel(null, "luckycharm_composeQuery".ToUILocale().Fmt(this._successRate), null, null, null, function() {
                        l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_LUCKYCHARM_QUERY_RESULT)
                    }, void 0, m.GameRecordDefine.LuckyCharmComposeTip) : this.CheckIsShowing() ? h.UIUtlity.ShowHintPanel(null, "luckyCharm_isShowing_hint".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        e.RequestCompose()
                    }) : I.default.Instance.CheckLuckyCharmComposeQuality(this._chosenLuckyCharmsSidArray) ? h.UIUtlity.ShowHintPanel(null, "luckyCharm_composeQuality_hint".ToUILocale(), "", null, "", function() {
                        e.RequestCompose()
                    }) : this.RequestCompose()
                }, t.prototype.RequestCompose = function() {
                    var e = this;
                    this._buttonBlockingUp = !0;
                    var t = new p.Req_Item_CommonCompose;
                    t.Type = y.ItemType.LuckyCharm, t.Materials = [{
                        Items: this._chosenLuckyCharmsSidArray
                    }], d.RpcComponent.Instance.Call(t, function(t) {
                        for (var n = 0; n < e._slotCount; n++) e._slotItemArray[n].node.active = !1, e.PlayAnimation(e.ComposeEffectArray[n], e._composeAniName, function() {});
                        if (e._chosenLuckyCharmsSidArray = [], e._chosenLuckyCharmIndexArray = [], e.RateOfSuccessNode.active = !1, e._buttonBlockingUp = !1, !t.ExtraParam[0]) return e._centerItemComponent.node.active = e._chosenLuckyCharmsSidArray.length > 0, void h.UIUtlity.ShowFloatingHint("luckycharm_composeFail".ToUILocale());
                        e.SkipAnimationToggle.isChecked ? (h.UIUtlity.ShowFloatingHint("luckycharm_composeSuccess".ToUILocale()), t.Rewards[0].ItemId = -t.Rewards[0].ItemId, t.Rewards[0].Count = 1, h.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e._centerItemComponent.node.active = e._chosenLuckyCharmsSidArray.length > 0) : e.scheduleOnce(function() {
                            e.PlayAnimation(e.ComposeSuccessEffect, e._successAniName, function() {
                                h.UIUtlity.ShowFloatingHint("luckycharm_composeSuccess".ToUILocale()), t.Rewards[0].ItemId = -t.Rewards[0].ItemId, t.Rewards[0].Count = 1, h.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e._centerItemComponent.node.active = e._chosenLuckyCharmsSidArray.length > 0
                            })
                        }, .7)
                    }, function() {
                        e._buttonBlockingUp = !1
                    })
                }, t.prototype.OnIncreaseButtonClick = function() {
                    this._addNumber >= 5 || (this._addNumber++, this.IngredientNumberLabel.string = this._addNumber.toString())
                }, t.prototype.OnDecreaseButtonClick = function() {
                    this._addNumber <= 2 || (this._addNumber--, this.IngredientNumberLabel.string = this._addNumber.toString())
                }, t.prototype.OnSkipAnimationToggleClick = function() {
                    I.default.SetFunctionSkipState(_.FunctionSkipKey.LuckyCharm, this.SkipAnimationToggle.isChecked)
                }, t.prototype.OnSelectHintToggle = function() {
                    I.default.SetFunctionSkipState(_.FunctionSkipKey.LuckyCharmSelect, this.SelectHintToggle.isChecked), this.ClearSlotSelect()
                }, t.prototype.ClearSlotSelect = function() {
                    this.SetSlotItem(0), this._chosenLuckyCharmsSidArray = [], this._chosenLuckyCharmIndexArray = []
                }, t.prototype.GetCustomLuckyCharm = function() {
                    this._luckyCharmModelArray = [];
                    for (var e = d.DataCenter.Instance.GetDataList(p.LuckyCharmEquip_Model), t = 0; t < e.length; t++) {
                        var n = e[t];
                        n.Locked || n.ItemId >= this._highestItemId || !this.SelectHintToggle.isChecked && n.OwnerId > 0 || this._luckyCharmModelArray.push(n)
                    }
                    this._luckyCharmModelArray.sort(function(e, t) {
                        return e.ItemId > t.ItemId ? 1 : e.ItemId == t.ItemId && e.OwnerId && !t.OwnerId ? 1 : -1
                    })
                }, t.prototype.GetComposeData = function() {
                    if (0 == this._chosenNumber) return this.RateOfSuccessNode.active = !1, this._centerItemComponent.node.active = !1, void(this.CurrencyBarItem.node.active = !1);
                    if (this.RateOfSuccessNode.active = !0, this._centerItemComponent.node.active = !0, this._centerItemComponent.Init({
                            ItemId: this._chosenItemId + 1
                        }), this._chosenNumber < 2) return this.RateOfSuccessLabel.string = "luckycharm_atLeastNumber".ToUILocale(), this.RateOfSuccessLabel.node.color = this._successTipLabelColorArray[1], void(this.CurrencyBarItem.node.active = !1);
                    var e = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmEquip_Config, this._chosenItemId).ComposeData[this._chosenNumber - 2].Items;
                    this.CurrencyBarItem.node.active = !0, e[0] >= 1e3 ? this.RateOfSuccessLabel.node.color = cc.Color.GREEN : this.RateOfSuccessLabel.node.color = cc.Color.RED, this._isSuccessRateLowerThanSpecificValue = e[0] < d.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmMixRedTag"), this._successRate = e[0] / 10, this.RateOfSuccessLabel.string = "luckycharm_rateOfSuccess".ToUILocale().Fmt(this._successRate + "%"), this._coinsCost = e[1], this.CurrencyBarItem.Init(y.CommonItemId.Coin, !1, null, e[1])
                }, t.prototype.RefreshFailPiece = function() {
                    var e = d.DataCenter.Instance.GetIntData(y.UserDataKey.LuckyCharmFailPiece);
                    this.FailPieceProgressBar.progress = e / this._composeValueLimit, this.ProgressValueLabel.string = e + " / " + this._composeValueLimit
                }, t.prototype.PlayAnimation = function(e, t, n) {
                    e.setAnimation(0, t, !1) && e.setCompleteListener(function() {
                        n()
                    })
                }, t.prototype.RefreshCurrentShow = function() {
                    for (var e = 0; e < this._slotCount; e++) this._slotItemArray[e].node.active = !1, this.PlayAnimation(this.ComposeEffectArray[e], this._composeAniName, function() {});
                    this._chosenLuckyCharmsSidArray = [], this._chosenLuckyCharmIndexArray = [], this.RateOfSuccessNode.active = !1, this._centerItemComponent.node.active = !1, this.CurrencyBarItem.node.active = !1
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([w(cc.Label)], t.prototype, "TitleLabel", void 0), i([w(cc.Label)], t.prototype, "TipLabel", void 0), i([w(cc.Label)], t.prototype, "AddAllIngredientButtonLabel", void 0), i([w(cc.Label)], t.prototype, "ComposeButtonLabel", void 0), i([w(cc.Label)], t.prototype, "RateOfSuccessLabel", void 0), i([w(cc.Label)], t.prototype, "QuickCombineButtonLabel", void 0), i([w(cc.Node)], t.prototype, "RateOfSuccessNode", void 0), i([w(v.default)], t.prototype, "CurrencyBarItem", void 0), i([w(cc.Label)], t.prototype, "ProgressValueLabel", void 0), i([w(cc.Label)], t.prototype, "IngredientNumberLabel", void 0), i([w(cc.Node)], t.prototype, "LuckyCharmContainer", void 0), i([w(cc.Node)], t.prototype, "ChestNode", void 0), i([w({
                    type: [sp.Skeleton]
                })], t.prototype, "FillEffectArray", void 0), i([w({
                    type: [sp.Skeleton]
                })], t.prototype, "ComposeEffectArray", void 0), i([w(sp.Skeleton)], t.prototype, "ComposeSuccessEffect", void 0), i([w(cc.Button)], t.prototype, "AddButton", void 0), i([w(cc.Button)], t.prototype, "ComposeButton", void 0), i([w(cc.Button)], t.prototype, "IngredientIncreaseButton", void 0), i([w(cc.Button)], t.prototype, "IngredientDecreaseButton", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.Button)], t.prototype, "QuickCombineButton", void 0), i([w(C.default)], t.prototype, "FailPieceProgressBar", void 0), i([w(cc.Node)], t.prototype, "CenterTouchNode", void 0), i([w(cc.Toggle)], t.prototype, "SkipAnimationToggle", void 0), i([w(cc.Label)], t.prototype, "SkipTip", void 0), i([w(cc.Toggle)], t.prototype, "SelectHintToggle", void 0), i([w(cc.Label)], t.prototype, "SelectHint", void 0), n = i([S], t)
            }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LuckyCharmComposeQueryHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7dc49tak/FPqqhxj88OEZ3n", "LuckyCharmComposeQueryHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1, !1), t.Title = null, t.QueryWords = null, t.ToggleWords = null, t.ConfirmButtonLabel = null, t.CancelButtonLabel = null, t.CancelButton = null, t.ConfirmButton = null, t.Toggle = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "hint".ToUILocale(), this.ToggleWords.string = "hint_panel_checkToggle_type_1".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.CancelButtonLabel.string = "cancel".ToUILocale()
                }, t.prototype.OnEvent = function() {
                    this.ConfirmButton.node.on("click", this.OnConfirmButtonClick, this), this.CancelButton.node.on("click", this.OnCancelButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this.QueryWords.string = t[0], this._confirmCallBack = t[1], this._cancelCallBack = t[2]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this)
                }, t.prototype.OnConfirmButtonClick = function() {
                    this._confirmCallBack && this._confirmCallBack(), this.Close()
                }, t.prototype.OnCancelButtonClick = function() {
                    this._cancelCallBack && this._cancelCallBack(), this.Close()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_LUCKYCHARM_QUERY_RESULT, this.Toggle.isChecked)
                }, i([u(cc.Label)], t.prototype, "Title", void 0), i([u(cc.RichText)], t.prototype, "QueryWords", void 0), i([u(cc.Label)], t.prototype, "ToggleWords", void 0), i([u(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([u(cc.Label)], t.prototype, "CancelButtonLabel", void 0), i([u(cc.Button)], t.prototype, "CancelButton", void 0), i([u(cc.Button)], t.prototype, "ConfirmButton", void 0), i([u(cc.Toggle)], t.prototype, "Toggle", void 0), i([c], t)
            }(a.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    LuckyCharmComposeSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9da7cMuYEZOt7kdhPnFDonz", "LuckyCharmComposeSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RewardContainer = null, t.Tip1Tag = null, t.Tip1Value = null, t.Tip2Tag = null, t.Tip2Value = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tip1Tag.string = "LuckyCharmGallery_Success_Tip_Tag".ToUILocale(), this.Tip2Tag.string = "LuckyCharmGallery_Fail_Tip_Tag".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._successData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.Tip1Value.string = "assistant_consume_times".ToUILocale().Fmt(this._successData.ExtraParam[0]), this.Tip2Value.string = "assistant_consume_times".ToUILocale().Fmt(this._successData.ExtraParam[1]), this.SetRewardContainer()
                }, t.prototype.SetRewardContainer = function() {
                    var e = {};
                    for (var t in this._successData.Rewards.forEach(function(t) {
                            t.ItemId < 0 ? e[-t.ItemId] ? e[-t.ItemId] += 1 : e[-t.ItemId] = 1 : e[t.ItemId] = t.Count
                        }), e) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.RewardContainer), n.getComponent(p.ItemComponent).Init({
                            ItemId: Number(t),
                            Count: e[t]
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContainer.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, i([y(cc.Node)], t.prototype, "RewardContainer", void 0), i([y(cc.Label)], t.prototype, "Tip1Tag", void 0), i([y(cc.Label)], t.prototype, "Tip1Value", void 0), i([y(cc.Label)], t.prototype, "Tip2Tag", void 0), i([y(cc.Label)], t.prototype, "Tip2Value", void 0), i([f], t)
            }(l.BaseUIFullScreenPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LuckyCharmComprehensionItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c9461heRHlPKbGvONceQmP5", "LuckyCharmComprehensionItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("./LuckyCharmComprehensionPanel"),
            d = e("./LuckyCharmSkillComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.SkillNode = null, t.TagNode = null, t.TagLabel = null, t.Name = null, t.SelectNode = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.ClickSkill, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.ClickSkill, this)
                }, t.prototype.onLoad = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, c.AssetsManager.Instance.LoadAsset("LuckyCharms/PNG/LuckyCharm", cc.SpriteAtlas)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.Bg.spriteFrame = e.getSpriteFrame("Edge1"), this._loadAssets.push(e), [2]) : (c.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._index = t, this.SelectNode.active = t == n, this.Name.string = l.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + e.Id), this.TagLabel.string = "luckyCharm_can_get".ToUILocale(), this.Name.node.color = u.UIUtlity.GetLabelColorByQuality(e.Quality), this.TagNode.active = p.default.CheckConsumeIsEnough(e) && r.CheckIsDifferentSkill(e), this._skillNode || (this._skillNode = cc.instantiate(o), this._skillNode.parent = this.SkillNode), this._skillNode.getComponent(d.default).InitByConfig(e)
                }, t.prototype.ClickSkill = function() {
                    c.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REFRESH_LUCKYCHARM_SKILLS, this._index)
                }, t.prototype.SetSelectNode = function(e) {
                    this.SelectNode.active = e
                }, Object.defineProperty(t.prototype, "Index", {
                    get: function() {
                        return this._index
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([g(cc.Sprite)], t.prototype, "Bg", void 0), i([g(cc.Node)], t.prototype, "SkillNode", void 0), i([g(cc.Node)], t.prototype, "TagNode", void 0), i([g(cc.Label)], t.prototype, "TagLabel", void 0), i([g(cc.Label)], t.prototype, "Name", void 0), i([g(cc.Node)], t.prototype, "SelectNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LuckyCharmComprehensionPanel": "LuckyCharmComprehensionPanel",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmComprehensionPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5b8114Ej5FFXaed2zL3RF6s", "LuckyCharmComprehensionPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/CustomToggle"),
            g = e("../Components/CustomLayout"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("./LuckyCharmSkillComponent"),
            _ = e("./LuckyCharmComprehensionItem"),
            C = e("../Components/ItemComponent"),
            v = e("../../Components/Components"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../../ShareConsts/EnumType"),
            w = e("../../../EZFramework/EZFramework"),
            P = e("../../RedDot/RedDotManager"),
            A = e("../Components/ItemCountComponent");
        (function(e) {
            e[e.Comprehension = 0] = "Comprehension", e[e.SkillBag = 1] = "SkillBag"
        })(l || (l = {}));
        var T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.CustomToggles = [], t.ComperhensionNode = null, t.SkillBagNode = null, t.SkillNode = null, t.SkillName = null, t.SkillDesc = null, t.ComperhensionCustomLayout = null, t.ConsumeNode = null, t.ComperhensionButton = null, t.ComperhensionLabel = null, t.SkillBagCustomLayout = null, t.Tip = null, t.Empty = null, t._selectToggleIndex = 0, t._selectIndex = 0, t._consumeNodes = [], t._luckycharmConfigs = [], t._isLayoutInit1 = !1, t._isLayoutInit2 = !1, t._itemsDatas = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_REFRESH_LUCKYCHARM_SKILLS, this.RefreshSkills, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_STUDY_LUCKYCHARM_SKILLS, this.StudySkills, this), c.Game.EventDispatcher.On(h.GameEventIds.AddDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.On(h.GameEventIds.RemoveDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_REFRESH_LUCKYCHARM_SKILLS, this.RefreshSkills, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_STUDY_LUCKYCHARM_SKILLS, this.StudySkills, this), c.Game.EventDispatcher.Off(h.GameEventIds.AddDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.Off(h.GameEventIds.RemoveDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(I.default.LuckyCharmSkillComponentPath, cc.Prefab), this.LoadDynamicAsset("LuckyCharmComprehensionPanel/SubItems/LuckyCharmComprehensionItem", cc.Prefab), this.LoadDynamicAsset("ItemsComponent/ItemCountComponent", cc.Prefab), this.LoadDynamicAsset(m.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        t._luckyCharmSkillPrefab = e[0], t._comperhensionPrefab = e[1], t._itemCountPrefab = e[2], t._itemPrefab = e[3]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this._toggleLabels = ["luckycharm_comprehension".ToUILocale(), "luckycharm_skill_bag".ToUILocale()], this.Title.string = "luckycharm_skill_comprehension".ToUILocale(), this.ComperhensionLabel.string = "luckycharm_comprehension".ToUILocale(), this.Tip.string = "luckycharm_tip".ToUILocale(), this.Empty.string = "skillBag_empty_hint".ToUILocale(), this.CustomToggles.forEach(function(e, n) {
                        e.Init(t._toggleLabels[n]), e.node.on("toggle", t.ClickToggle, t)
                    }), this.ComperhensionButton.node.on("click", this.ClickComperhensionButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._heroSid = t[0], this._slotId = t[1], this.GetPrimaryLuckyCharms()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetDisplayNode()
                }, t.prototype.SetDisplayNode = function() {
                    this.ComperhensionNode.active = this._selectToggleIndex == l.Comprehension, this.SkillBagNode.active = this._selectToggleIndex == l.SkillBag, this._selectToggleIndex == l.Comprehension ? this.SetComprehensionNode() : this.SetSkillBagNode()
                }, t.prototype.SetComprehensionNode = function() {
                    this.SetSkillDesc(), this.SetComprehensionSkills(), this.SetConsume(), this.BindReddot()
                }, t.prototype.SetSkillDesc = function() {
                    if (!this._luckyCharmSkillNode) {
                        var e = cc.instantiate(this._luckyCharmSkillPrefab);
                        e.parent = this.SkillNode, this._luckyCharmSkillNode = e
                    }
                    this._luckycharmConfigs[this._selectIndex] && (this._luckyCharmSkillNode.y = -26, this._luckyCharmSkillNode.getComponent(I.default).InitByConfig(this._luckycharmConfigs[this._selectIndex], !1, !1), this.SkillName.string = d.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + this._luckycharmConfigs[this._selectIndex].Id), this.SkillDesc.string = d.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_desc_" + this._luckycharmConfigs[this._selectIndex].Id))
                }, t.prototype.SetComprehensionSkills = function() {
                    this._isLayoutInit1 || (this._isLayoutInit1 = !0, this.ComperhensionCustomLayout.Init(this._comperhensionPrefab)), this.ComperhensionCustomLayout.RenderLayOut(this._luckycharmConfigs.length)
                }, t.prototype.SetConsume = function() {
                    var e = this,
                        t = this._luckycharmConfigs[this._selectIndex];
                    t && (this._consumeNodes.forEach(function(e) {
                        e.active = !1
                    }), t.UnderstandMaterials.forEach(function(t, n) {
                        if (!e._consumeNodes[n]) {
                            var o = cc.instantiate(e._itemCountPrefab);
                            o.parent = e.ConsumeNode, e._consumeNodes[n] = o
                        }
                        e._consumeNodes[n].active = !0;
                        var r = e._consumeNodes[n].getComponent(A.default),
                            i = v.DataCenter.Instance.GetItemCount(t.Items[0]),
                            a = (i = i > t.Items[1] ? t.Items[1] : i) >= t.Items[1] ? "#ffffff" : "#ff5b5b",
                            s = "<outline color=#202434 width=3><color={2}>{0}</c><color=#ffffff>/{1}</c></o>".Fmt(i, t.Items[1], a);
                        r.Init(t.Items[0], s, .7, -16), r.SetCountBgInfo(-80, 0, 1, 184, 44), r.SetCountInfo(26)
                    }))
                }, t.prototype.BindReddot = function() {
                    P.RedDotManager.Instance.BindInstance(this.ComperhensionButton.node, P.RedDotManager.Instance.InstanceRedDot.ComperhensionButton, {
                        Value1: this._heroSid,
                        extra: this._slotId
                    })
                }, t.prototype.SetSkillBagNode = function() {
                    this._isLayoutInit2 || (this._isLayoutInit2 = !0, this.SkillBagCustomLayout.Init(this._itemPrefab), this.SetSkillItemDatas()), this.SkillBagCustomLayout.RenderLayOut(this._itemsDatas.length), this.Empty.node.active = 0 == this._itemsDatas.length
                }, t.prototype.SetSkillItemDatas = function() {
                    var e = this;
                    this._itemsDatas = [], v.DataCenter.Instance.GetDataList(u.UserItem_Model).forEach(function(t) {
                        d.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, t.ItemId).Type == S.ItemType.HeroLuckyCharm && e._itemsDatas.push(t)
                    })
                }, t.prototype.GetPrimaryLuckyCharms = function() {
                    var e = this;
                    this._luckycharmConfigs = [], d.ConfigDataComponent.Instance.GetArrayConfig(p.LuckyCharmSkill_Config).forEach(function(t) {
                        3 == t.Quality && e._luckycharmConfigs.push(t)
                    })
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.ComperhensionCustomLayout == t ? e.forEach(function(e, t) {
                        e.getComponent(_.default).Init(n._luckycharmConfigs[t], t, n._selectIndex, n._luckyCharmSkillPrefab, n)
                    }) : this.SkillBagCustomLayout == t && e.forEach(function(e, t) {
                        e.getComponent(C.ItemComponent).Init(n._itemsDatas[t])
                    })
                }, t.prototype.RefreshSkills = function(e) {
                    if (this._selectIndex != e) {
                        for (var t = 0; t < this.ComperhensionCustomLayout.node.children.length; t++) {
                            var n = this.ComperhensionCustomLayout.node.children[t].getComponent(_.default);
                            n.Index == e ? n.SetSelectNode(!0) : n.Index == this._selectIndex && n.SetSelectNode(!1)
                        }
                        this._selectIndex = e, this.SetSkillDesc(), this.SetConsume()
                    }
                }, t.prototype.StudySkills = function(e) {
                    var t = this,
                        n = d.ConfigDataComponent.Instance.GetConfigById(p.HeroLuckyCharm_Config, e);
                    if (n) {
                        var o = d.ConfigDataComponent.Instance.GetConfigById(p.LuckyCharmSkill_Config, n.SkillId);
                        if (!this.CheckIsDifferentSkill(o, !0)) return;
                        var r = new u.Req_Hero_LuckSkillStudy;
                        r.Sid = this._heroSid, r.Index = this._slotId, r.Type = 2, r.Param = e, d.RpcComponent.Instance.Call(r, function() {
                            b.UIUtlity.ShowFloatingHint("luckycharm_study_success".ToUILocale()), w.UIManager.Instance.QuitPanelStack(t)
                        })
                    }
                }, t.prototype.OnUserItemChange = function(e) {
                    for (var t in e)
                        if (d.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, Number.parseInt(t)).Type == S.ItemType.HeroLuckyCharm) {
                            this.SetSkillItemDatas();
                            break
                        }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.SkillBagCustomLayout.node.children.indexOf(t) && b.UIUtlity.ShowItemTip(t.getComponent(C.ItemComponent).ItemId, t)
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._selectToggleIndex != t && (this._selectToggleIndex = t, this.SetDisplayNode())
                }, t.prototype.CheckIsDifferentSkill = function(e, t) {
                    void 0 === t && (t = !1);
                    var n = v.DataCenter.Instance.GetDataById(u.UserHero_Model, this._heroSid);
                    if (1 == this._slotId) {
                        if (n.LuckSkill2 && d.ConfigDataComponent.Instance.GetConfigById(p.LuckyCharmSkill_Config, n.LuckSkill2).Type == e.Type) return t && b.UIUtlity.ShowFloatingHint("luckycharm_same_skill".ToUILocale()), !1
                    } else if (n.LuckSkill1 && d.ConfigDataComponent.Instance.GetConfigById(p.LuckyCharmSkill_Config, n.LuckSkill1).Type == e.Type) return t && b.UIUtlity.ShowFloatingHint("luckycharm_same_skill".ToUILocale()), !1;
                    return !0
                }, t.prototype.ClickComperhensionButton = function() {
                    var e = this;
                    if (n.CheckConsumeIsEnough(this._luckycharmConfigs[this._selectIndex], !0) && this.CheckIsDifferentSkill(this._luckycharmConfigs[this._selectIndex], !0)) {
                        var t = new u.Req_Hero_LuckSkillStudy;
                        t.Sid = this._heroSid, t.Index = this._slotId, t.Type = 1, t.Param = this._luckycharmConfigs[this._selectIndex].Id, d.RpcComponent.Instance.Call(t, function() {
                            b.UIUtlity.ShowFloatingHint("luckycharm_comprehension_success".ToUILocale()), w.UIManager.Instance.QuitPanelStack(e)
                        })
                    }
                }, t.CheckConsumeIsEnough = function(e, t) {
                    void 0 === t && (t = !1);
                    var n = !0;
                    if (e)
                        for (var o = 0; o < e.UnderstandMaterials.length; o++) {
                            var r = e.UnderstandMaterials[o];
                            if (!v.DataCenter.Instance.IsItemEnough(r.Items[0], r.Items[1])) {
                                n = !1, t && (b.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(r.Items[0].ToItemName())), c.UIManager.Instance.ShowUIPanel(m.PanelConfig.ItemGetWayPanel.Path, r.Items[0]));
                                break
                            }
                        } else n = !1;
                    return n
                }, i([L(cc.Label)], t.prototype, "Title", void 0), i([L(y.default)], t.prototype, "CustomToggles", void 0), i([L(cc.Node)], t.prototype, "ComperhensionNode", void 0), i([L(cc.Node)], t.prototype, "SkillBagNode", void 0), i([L(cc.Node)], t.prototype, "SkillNode", void 0), i([L(cc.Label)], t.prototype, "SkillName", void 0), i([L(cc.Label)], t.prototype, "SkillDesc", void 0), i([L(g.default)], t.prototype, "ComperhensionCustomLayout", void 0), i([L(cc.Node)], t.prototype, "ConsumeNode", void 0), i([L(cc.Button)], t.prototype, "ComperhensionButton", void 0), i([L(cc.Label)], t.prototype, "ComperhensionLabel", void 0), i([L(g.default)], t.prototype, "SkillBagCustomLayout", void 0), i([L(cc.Label)], t.prototype, "Tip", void 0), i([L(cc.Label)], t.prototype, "Empty", void 0), n = i([R], t)
            }(c.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/ItemCountComponent": "ItemCountComponent",
        "./LuckyCharmComprehensionItem": "LuckyCharmComprehensionItem",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmGalleryListComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9fe9bDOwJRAAod+RIdseV2X", "LuckyCharmGalleryListComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../Panel/PetGalleryItemChangePanel"),
            m = e("../Panel/LuckyCharmGalleryPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.LuckyCharmSprite = null, t.Add = null, t.Lock = null, t.Label1 = null, t.Label2 = null, t.Reddot = null, t._assets = [], t._hasWearLuckyCharm = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on("click", this.ClickLuckyCharm, this)
                }, t.prototype.onDisable = function() {
                    this.node.off("click", this.ClickLuckyCharm, this)
                }, t.prototype.Init = function(e) {
                    this._data = e, this.SetBg(), this.SetState(), this.SetGemIcon(), this.SetLabels(), this.SetReddot()
                }, t.prototype.SetState = function() {
                    this._data.GalleryLevel >= this._data.Requirements ? this._data.LuckyCharmModel ? this._state = 2 : this._state = 1 : this._state = 0, this.Lock.node.active = 0 == this._state, this.Add.node.active = 1 == this._state
                }, t.prototype.SetBg = function() {
                    this.Add.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("add_golden"), this.Lock.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("lock_gold")
                }, t.prototype.SetGemIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this.LuckyCharmSprite.node.active = 2 == this._state, 2 != this._state ? [3, 2] : (e = this._data.LuckyCharmModel.ItemId, t = f.default.Instance.GetItemPathById(e), [4, l.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)]);
                                case 1:
                                    if (!(n = o.sent()).isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._assets.push(n), this.LuckyCharmSprite.spriteFrame = n, o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetLabels = function() {
                    if (this.Label1.node.active = !1, this.Label2.node.active = !1, this._color1 || (this._color1 = new cc.Color(208, 208, 208)), this._color2 || (this._color2 = new cc.Color(255, 255, 255)), 0 == this._state) this.Label1.node.active = this._data.SlotId == this._data.SlotIndex + 1, this.Label2.node.active = this._data.SlotId == this._data.SlotIndex + 1, this.Label1.node.color = this._color1, this.Label2.node.color = this._color1, this.Label1.string = "gallery_level".ToUILocale().Fmt(this._data.Requirements), this.Label2.string = "common_unlock".ToUILocale();
                    else if (1 == this._state) this.Label1.node.active = !0, this.Label1.node.color = this._color2, this.Label1.string = "gallery_set".ToUILocale();
                    else if (2 == this._state) {
                        var e = [];
                        if (this._data.LuckyCharmModel.ItemId >= y.CommonItemId.PrimordialLuckyCharm && (this._data.LuckyCharmModel.StarSkills.length > 0 || this._data.LuckyCharmModel.GloryStar > 0) ? e = m.default.GetLuckyCharmGalleryAttrs(this._data.LuckyCharmModel) : p.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmEquip_Config, this._data.LuckyCharmModel.ItemId).ShowAttr.forEach(function(t) {
                                var n = {};
                                n.AttrId = t.Items[0], n.AttrValue = t.Items[1], e.push(n)
                            }), this.Label1.node.active = e.length > 0, this.Label2.node.active = e.length > 1, this.Label1.node.color = this._color2, this.Label2.node.color = this._color2, e.length > 0) {
                            var t = f.default.GetHeroAttribute(e[0].AttrId, e[0].AttrValue);
                            this.Label1.string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + t.Name + "+" + t.Value
                        }
                        e.length > 1 && (t = f.default.GetHeroAttribute(e[1].AttrId, e[1].AttrValue), this.Label2.string = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + t.Name + "+" + t.Value)
                    }
                }, t.prototype.SetHasWearLuckyCharm = function() {
                    var e = this;
                    this._hasWearLuckyCharm = {}, p.DataCenter.Instance.GetDataList(u.LuckyCharmShowHouse_Model).forEach(function(t) {
                        t.LuckyCharmId > 0 && (e._hasWearLuckyCharm[t.LuckyCharmId] = 1)
                    })
                }, t.prototype.SetReddot = function() {
                    var e = !1,
                        t = !1;
                    this.SetHasWearLuckyCharm();
                    var n = p.DataCenter.Instance.GetDataList(u.LuckyCharmEquip_Model);
                    if (2 == this._state) {
                        if (n.length > 0)
                            for (var o = 0; o < n.length; o++)
                                if (n[o].Sid != this._data.LuckyCharmModel.Sid && !this._hasWearLuckyCharm[n[o].Sid] && n[o].ItemId > this._data.LuckyCharmModel.ItemId) {
                                    e = !0;
                                    break
                                }
                    } else if (1 == this._state && n.length > 0)
                        for (o = 0; o < n.length; o++)
                            if (!this._hasWearLuckyCharm[n[o].Sid]) {
                                t = !0;
                                break
                            } this.Reddot.active = t || e
                }, t.prototype.ClickLuckyCharm = function() {
                    switch (this._state) {
                        case 0:
                            h.UIUtlity.ShowFloatingHint("gallery_limit".ToUILocale().Fmt(this._data.Requirements));
                            break;
                        case 1:
                            l.UIManager.Instance.ShowUIPanel(d.PanelConfig.PetGalleryItemChangePanel.Path, 0, this._data.SlotIndex + 1, g.GalleryItemChangeType.LuckyCharm);
                            break;
                        case 2:
                            l.UIManager.Instance.ShowUIPanel(d.PanelConfig.PetGalleryItemChangePanel.Path, this._data.LuckyCharmModel.Sid, this._data.SlotIndex + 1, g.GalleryItemChangeType.LuckyCharm)
                    }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([C(cc.Sprite)], t.prototype, "Bg", void 0), i([C(cc.Sprite)], t.prototype, "LuckyCharmSprite", void 0), i([C(cc.Sprite)], t.prototype, "Add", void 0), i([C(cc.Sprite)], t.prototype, "Lock", void 0), i([C(cc.Label)], t.prototype, "Label1", void 0), i([C(cc.Label)], t.prototype, "Label2", void 0), i([C(cc.Node)], t.prototype, "Reddot", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/LuckyCharmGalleryPanel": "LuckyCharmGalleryPanel",
        "../Panel/PetGalleryItemChangePanel": "PetGalleryItemChangePanel"
    }],
    LuckyCharmGalleryPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "21279TVGLpOiIEN1r4mDZ3X", "LuckyCharmGalleryPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../Components/LuckyCharmGalleryListComponent"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../Components/AttrComponent4"),
            v = e("../Components/CurrencyBarItem"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.RuleButton = null, t.SubTitleRichText = null, t.LuckyCharmList = null, t.InfoTitle = null, t.LevelUpNode = null, t.LevelHint = null, t.CurrentLevelLabel = null, t.NextLevelLabel = null, t.MaxLv = null, t.AttrScrollView = null, t.AttrContainer = null, t.NoneAttrTip = null, t.MaterialContainer = null, t.UpLevelButton = null, t.UpLevelButtonLabel = null, t.DetailButton = null, t.DetailButtonLabel = null, t.ReturnButton = null, t.MaxLevelNode = null, t.MaxLevelLabel = null, t._attrComponentArray = [], t._materialComponents = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshListScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshListScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("LuckyCharmGalleryPanel/Components/LuckyCharmGalleryListComponent", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/AttrComponent4", cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/CurrencyBarItem", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._luckyCharmListItemPrefab = e[0], r._attrPrefab = e[1], r._materialPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "LuckyCharmGallery_title".ToUILocale(), this.InfoTitle.string = "PetGalleryListPanel_InfoTitle".ToUILocale(), this.UpLevelButtonLabel.string = "common_upgrade_level".ToUILocale(), this.DetailButtonLabel.string = "PetGalleryListPanel_Total_Addtion".ToUILocale(), this.MaxLevelLabel.string = "common_max_level".ToUILocale(), this.LevelHint.string = "starPiece_detail_level_add".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.LuckyCharmList.Init(this._luckyCharmListItemPrefab)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this._luckyCharmSlotConfig = p.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, y.LevelParamType.LuckyCharmShowHousePos), this._galleryConfigArray = p.ConfigDataComponent.Instance.GetArrayConfig(c.LuckyCharmShowHouse_Config)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n = p.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, y.UserDataKey.LuckyCharmShowHouseLevel);
                    n && n.V ? this._currentGalleryLevel = n.V : this._currentGalleryLevel = 0, this.LuckyCharmList.RenderLayOut(this._luckyCharmSlotConfig.Data2.length), this._currentGalleryConfig = p.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmShowHouse_Config, this._currentGalleryLevel), this._nextGalleryConfig = p.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmShowHouse_Config, this._currentGalleryLevel + 1), this._nextGalleryConfig || (this._nextGalleryConfig = this._currentGalleryConfig), this._currentGalleryLevel || (this._currentGalleryConfig = this._nextGalleryConfig), this.SetSubTitle(), this.SetLevelTip(), this.SetAttrContainer(), this.MaterialContainer.active = this._currentGalleryLevel < this._galleryConfigArray.length - 1, this.UpLevelButton.node.active = this._currentGalleryLevel < this._galleryConfigArray.length - 1, this.MaxLevelNode.active = this._currentGalleryLevel >= this._galleryConfigArray.length - 1, this._currentGalleryLevel < this._galleryConfigArray.length - 1 && this.SetMaterialContainer(), this.SetRedDot()
                }, t.prototype.SetSubTitle = function() {
                    for (var e = 0, t = 0; t < this._luckyCharmSlotConfig.Data2.length; t++) {
                        var n = p.DataCenter.Instance.GetDataById(u.LuckyCharmShowHouse_Model, this._luckyCharmSlotConfig.Data2[t].Items[0]);
                        n && n.LuckyCharmId && e++
                    }
                    this.SubTitleRichText.string = "PetGalleryListPanel_Subtitle".ToUILocale().Fmt(e, this._luckyCharmSlotConfig.Data2.length)
                }, t.prototype.SetLevelTip = function() {
                    this._currentGalleryLevel < this._galleryConfigArray.length - 1 ? (this.LevelUpNode.active = !0, this.MaxLv.node.active = !1, this.CurrentLevelLabel.string = "Lv." + this._currentGalleryLevel, this.NextLevelLabel.string = "Lv." + (this._currentGalleryLevel + 1)) : (this.LevelUpNode.active = !1, this.MaxLv.node.active = !0, this.MaxLv.string = "Lv." + this._currentGalleryLevel)
                }, t.prototype.SetAttrContainer = function() {
                    for (var e = 0; e < this._currentGalleryConfig.Attr.length; e++) {
                        var t = this._attrComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._attrPrefab);
                            n.setParent(this.AttrContainer), t = n.getComponent(C.default), this._attrComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o = this._currentGalleryConfig.Attr[e].Items[0],
                            r = this._currentGalleryLevel > 0 ? this._currentGalleryConfig.Attr[e].Items[1] : 0,
                            i = this._nextGalleryConfig.Attr[e].Items[1] - r;
                        i > 0 ? t.Init(o, r, {
                            NodeWidth: 946,
                            ValueNodeWidth: 548,
                            AddValue: i,
                            AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                        }) : t.Init(o, r, {
                            NodeWidth: 946,
                            ValueNodeWidth: 548,
                            AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                        })
                    }
                    if (this._currentGalleryConfig.Attr.length < this._attrComponentArray.length)
                        for (e = this._currentGalleryConfig.Attr.length; e < this._attrComponentArray.length; e++) this._attrComponentArray[e].node.active = !1;
                    this.AttrScrollView.enabled = !1, this._currentGalleryConfig && this._currentGalleryConfig.Attr.length > 2 && (this.AttrScrollView.enabled = !0)
                }, t.prototype.SetMaterialContainer = function() {
                    this._notEnoughItemId = null;
                    for (var e = 0; e < this._nextGalleryConfig.ConsumeItems.length; e++) {
                        var t = this._materialComponents[e];
                        if (!t) {
                            var n = cc.instantiate(this._materialPrefab);
                            n.setParent(this.MaterialContainer), t = n.getComponent(v.default), this._materialComponents[e] = t
                        }
                        t.node.active = !0;
                        var o, r = this._nextGalleryConfig.ConsumeItems[e].Items[0];
                        o = this._currentGalleryLevel > 0 ? this._nextGalleryConfig.ConsumeItems[e].Items[1] - this._currentGalleryConfig.ConsumeItems[e].Items[1] : this._currentGalleryConfig.ConsumeItems[e].Items[1], t.Init(r, !1, null, o), t.SetFixedWidth(224), this._notEnoughItemId || p.DataCenter.Instance.IsItemEnough(r, o) || (this._notEnoughItemId = r)
                    }
                }, t.prototype.SetRedDot = function() {
                    _.RedDotManager.Instance.Bind(this.UpLevelButton.node, _.RedDotManager.Instance.RedDot.LuckyCharmGalleryUpLevel)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "LuckyCharmGallery_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["LuckyCharmGallery_rule_content".ToUILocale()]
                    };
                    g.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = this.GetTotalAttrData();
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonTotalAttrPanel.Path, e)
                }, t.prototype.OnUpLevelButtonClick = function() {
                    var e = this;
                    if (this._currentGalleryLevel >= this._galleryConfigArray.length - 1) g.UIUtlity.ShowFloatingHint("common_max_level".ToUILocale());
                    else {
                        if (this._notEnoughItemId) return g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughItemId.ToItemName())), void I.default.ShowItemGetWay(this._notEnoughItemId);
                        var t = p.DataCenter.Instance.GetIntData(y.UserDataKey.Power),
                            n = new u.Req_Item_UpgradeLuckyCharmShowHouse;
                        n.Count = 1, p.RpcComponent.Instance.Call(n, function() {
                            g.UIUtlity.ShowFloatingHint("pet_level_up_seccess".ToUILocale());
                            var n = p.DataCenter.Instance.GetIntData(y.UserDataKey.Power);
                            n > t && l.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattlePowerChangePanel.Path, t, n), e.DisPlay(!0)
                        })
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.GetLuckyCharmGalleryAttrs = function(e) {
                    var t = [];
                    if (e.ItemId == y.CommonItemId.PrimordialLuckyCharm)(n = p.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmStar_Config, 100 * y.CommonItemId.PrimordialLuckyCharm + e.StarSkills.length)) && n.ShowAttr.forEach(function(e) {
                        var n = {};
                        n.AttrId = e.Items[0], n.AttrValue = e.Items[1], t.push(n)
                    });
                    else if (e.ItemId == y.CommonItemId.GloryLuckyCharm) {
                        var n;
                        (n = p.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmStar_Config, 100 * y.CommonItemId.PrimordialLuckyCharm + e.StarSkills.length)) && n.ShowAttr.forEach(function(e) {
                            var n = {};
                            n.AttrId = e.Items[0], n.AttrValue = e.Items[1], t.push(n)
                        });
                        var o = p.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmStar_Config, 100 * y.CommonItemId.GloryLuckyCharm + e.GloryStar);
                        o && o.ShowAttr.forEach(function(e) {
                            var n = t.findIndex(function(t) {
                                return t.AttrId == e.Items[0]
                            });
                            n > -1 && (t[n].AttrValue += e.Items[1])
                        })
                    }
                    return t
                }, t.prototype.GetTotalAttrData = function() {
                    var e = [],
                        t = {};
                    t.Title = "gallery_all_attr_up".ToUILocale(), t.IsShowAddAttr = !0, t.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale();
                    var o = [];
                    this._currentGalleryLevel > 0 && this._currentGalleryConfig.Attr.forEach(function(e) {
                        var t = {};
                        t.attrId = e.Items[0], t.attrvalue = e.Items[1], o.push(t)
                    }), t.AttrArray = o, e.push(t);
                    var r = {};
                    r.Title = "LuckyCharmGallery_attr_up".ToUILocale(), r.IsShowAddAttr = !0, r.AttrPrefix = null;
                    for (var i = {}, a = function(e) {
                            var t = p.DataCenter.Instance.GetDataById(u.LuckyCharmShowHouse_Model, s._luckyCharmSlotConfig.Data2[e].Items[0]);
                            if (t && t.LuckyCharmId) {
                                var o = [],
                                    r = p.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, t.LuckyCharmId);
                                r.ItemId >= y.CommonItemId.PrimordialLuckyCharm && (r.StarSkills.length > 0 || r.GloryStar > 0) ? o = n.GetLuckyCharmGalleryAttrs(r) : p.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmEquip_Config, r.ItemId).ShowAttr.forEach(function(e) {
                                    var t = {};
                                    t.AttrId = e.Items[0], t.AttrValue = e.Items[1], o.push(t)
                                });
                                for (var a = 0; a < o.length; a++) {
                                    var l = o[a].AttrId,
                                        d = o[a].AttrValue;
                                    i[l] ? i[l] += d : i[l] = d
                                }
                            }
                        }, s = this, l = 0; l < this._luckyCharmSlotConfig.Data2.length; l++) a(l);
                    var d = [];
                    for (var h in i) {
                        var f = {};
                        f.attrId = Number(h), f.attrvalue = i[h], d.push(f)
                    }
                    return r.AttrArray = d, r.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(), e.push(r), e
                }, t.prototype.FindFirstLockSlot = function() {
                    for (var e = 0, t = p.DataCenter.Instance.GetSimpleData(y.UserDataKey.LuckyCharmShowHouseLevel), n = t && t.V ? t.V : 0, o = 0; o < this._luckyCharmSlotConfig.Data2.length; o++)
                        if (n < this._luckyCharmSlotConfig.Data2[o].Items[1]) {
                            e = this._luckyCharmSlotConfig.Data2[o].Items[0];
                            break
                        } return e
                }, t.prototype.RefreshListScrollView = function(e, t) {
                    var n = this;
                    t == this.LuckyCharmList && e.forEach(function(e, t) {
                        var o = p.DataCenter.Instance.GetDataById(u.LuckyCharmShowHouse_Model, n._luckyCharmSlotConfig.Data2[t].Items[0]),
                            r = {};
                        if (r.GalleryLevel = n._currentGalleryLevel, o && o.LuckyCharmId > 0) {
                            var i = p.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, o.LuckyCharmId);
                            r.LuckyCharmModel = i
                        } else r.LuckyCharmModel = null;
                        r.Requirements = n._luckyCharmSlotConfig.Data2[t].Items[1], r.SlotId = n.FindFirstLockSlot(), r.SlotIndex = t, e.getComponent(m.default).Init(r)
                    })
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Button)], t.prototype, "RuleButton", void 0), i([w(cc.RichText)], t.prototype, "SubTitleRichText", void 0), i([w(d.default)], t.prototype, "LuckyCharmList", void 0), i([w(cc.Label)], t.prototype, "InfoTitle", void 0), i([w(cc.Node)], t.prototype, "LevelUpNode", void 0), i([w(cc.Label)], t.prototype, "LevelHint", void 0), i([w(cc.Label)], t.prototype, "CurrentLevelLabel", void 0), i([w(cc.Label)], t.prototype, "NextLevelLabel", void 0), i([w(cc.Label)], t.prototype, "MaxLv", void 0), i([w(cc.ScrollView)], t.prototype, "AttrScrollView", void 0), i([w(cc.Node)], t.prototype, "AttrContainer", void 0), i([w(cc.Label)], t.prototype, "NoneAttrTip", void 0), i([w(cc.Node)], t.prototype, "MaterialContainer", void 0), i([w(cc.Button)], t.prototype, "UpLevelButton", void 0), i([w(cc.Label)], t.prototype, "UpLevelButtonLabel", void 0), i([w(cc.Button)], t.prototype, "DetailButton", void 0), i([w(cc.Label)], t.prototype, "DetailButtonLabel", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([w(cc.Node)], t.prototype, "MaxLevelNode", void 0), i([w(cc.Label)], t.prototype, "MaxLevelLabel", void 0), n = i([S], t)
            }(l.BaseUIFullScreenPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent4": "AttrComponent4",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/LuckyCharmGalleryListComponent": "LuckyCharmGalleryListComponent"
    }],
    LuckyCharmInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "799c2u/GFhBnrTDgqAw3AXL", "LuckyCharmInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./LuckyCharmSkillComponent"),
            m = e("../Components/ItemComponent"),
            I = e("../../Components/Components"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../RedDot/RedDotManager"),
            b = e("./EngraveComponent"),
            S = e("./ChaosElementEffectPanel"),
            w = e("../../RedDot/RedDotDataHandler"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.LuckyCharmTypeLabel = null, t.AtrributeTitleLabel = null, t.SkillTitleLabel = null, t.TakeOffButtonLabel = null, t.ChangeButtonLabel = null, t.RecastButtonLabel = null, t.CannotRecastButtonLabel = null, t.ComposeButtonLabel = null, t.LuckyCharmItemContainer = null, t.LuckyCharmNameLabel = null, t.LuckyCharmTypeValueLabel = null, t.LockNode = null, t.AttrZone = null, t.AttrNodeArray = [], t.SkillZone = null, t.SkillTitleTag = null, t.SkillNodeArray = [], t.ApproachNode = null, t.TakeOffButton = null, t.ChangeButton = null, t.ChangeButtonRedDot = null, t.RecastButton = null, t.CannotRecastButton = null, t.ComposeButton = null, t.RuleButton = null, t.OrigionalSkillPart = null, t.OrigionalPartTitleLabel = null, t.OrigionalSkillNodes = [], t.EnteredSkillPartNode = null, t.EnteredSkillPartTitleLabel = null, t.EnteredSkillDescriptionLabel = null, t.UpgradeButton = null, t.UpgradeButtonLabel = null, t.OrigionAttrPart = null, t.OrigionAttrTitleLabel = null, t.OrigionAttrNodes = [], t.EngraveNode = null, t.EffectTitle = null, t.EffectSelectSprite = null, t.EffectSprites = [], t.LineSprites = [], t.EffectNames = [], t.SkillTitle = null, t.DetailButton = null, t.ScrollViewContent = null, t.BodyNodes = [], t.BodyScrollView = null, t.BodyLayoutContent = null, t._luckycharmSid = -1, t._slotIndex = -1, t._heroSid = -1, t._lockStateToSpriteArray = [], t._lockStateToTipInfoArray = [], t._currentStarLevel = 0, t._appearanceItemId = 0, t._itemComponent = null, t._attrNameNodeName = "Tag", t._attrValueNodeName = "Value", t._attrIconNodeName = "AttrIcon", t._skillItemContainerName = "skillItemContainer", t._skillNameNodeName = "SkillNameLabel", t._skillDescNodeName = "SkillDescRichText", t._selectIndex = -1, t._descNodes = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(g.default.LuckyCharmSkillComponentPath), n = this.LoadDynamicAsset(c.BundlePath.ItemComponent), o = this.LoadDynamicAsset("LuckyCharms/PNG/LuckyCharm", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._skillPrefab = e[0], r._itemPrefab = e[1], r._luckyCharmAtlas = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvents(), this._positions = [], this.EffectSprites.forEach(function(e) {
                        e.node.on(cc.Node.EventType.TOUCH_END, t.OnEffectIconClick, t), t._positions.push(e.node.position)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._slotIndex = t[0], this._heroSid = t[1], this._luckycharmSid = t[2]
                }, t.prototype.MultiLanguageAssign = function() {
                    this.LuckyCharmTypeLabel.string = "equip_type_tag".ToUILocale(), this.OrigionAttrTitleLabel.string = "LuckyCharm_OrigionBaseAttr".ToUILocale(), this.AtrributeTitleLabel.string = "equip_base_attr".ToUILocale(), this.SkillTitleLabel.string = "luckycharm_skill".ToUILocale(), this.TakeOffButtonLabel.string = "PowerCore_Remove".ToUILocale(), this.ChangeButtonLabel.string = "equip_change".ToUILocale(), this.RecastButtonLabel.string = "luckycharm_recast".ToUILocale(), this.CannotRecastButtonLabel.string = "luckycharm_recast".ToUILocale(), this.ComposeButtonLabel.string = "compose".ToUILocale(), this.OrigionalPartTitleLabel.string = "LuckyCharm_OrigionSkillTitle".ToUILocale(), this.EnteredSkillPartTitleLabel.string = "LuckyCharm_EnteredSkillTitle".ToUILocale(), this.UpgradeButtonLabel.string = "LuckyCharm_Upgrade".ToUILocale(), this.EffectTitle.string = "engrave_effect_name".ToUILocale(), this.SkillTitle.string = "engrave_skill_desc".ToUILocale();
                    var e = ["engrave_effect1".ToUILocale(), "engrave_effect2".ToUILocale(), "engrave_effect3".ToUILocale(), "engrave_effect4".ToUILocale(), "engrave_effect5".ToUILocale()];
                    this.EffectNames.forEach(function(t, n) {
                        e[n] && (t.string = e[n])
                    })
                }, t.prototype.FixedValueAssign = function() {
                    this._lockStateToSpriteArray = ["smallBtn_unlock", "smallBtn_lock"], this._lockStateToTipInfoArray = ["luckycharm_unlocked", "luckycharm_locked"];
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.LuckyCharmItemContainer), this._itemComponent = e.getComponent(m.ItemComponent)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._luckycharmSid = d.DataCenter.Instance.GetHeroLuckCharmEquips(this._heroSid)[this._slotIndex], this.GetLuckyCharmModel(), this.SetBodyParent(), this.SetHeader(), this.SetAttribute(), this.SetOrigionAttrView(), this.SetSkill(), this.SetButtons(), this.SetOrigionSkills(), this.SetEnteredSkill(), this.BindRedDot(), this.SetEngraveNode()
                }, t.prototype.SetBodyParent = function() {
                    this.BodyScrollView.node.active = this._luckycharmModel.ItemId >= C.CommonItemId.PrimordialLuckyCharm, this.BodyLayoutContent.active = this._luckycharmModel.ItemId < C.CommonItemId.PrimordialLuckyCharm
                }, t.prototype.GetLuckyCharmModel = function() {
                    this._luckycharmModel = d.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, this._luckycharmSid), this._currentStarLevel = this._luckycharmModel.StarSkills ? this._luckycharmModel.StarSkills.length : 0, this._appearanceItemId = this._luckycharmModel.ItemId
                }, t.prototype.SetHeader = function() {
                    this._currentStarLevel > 0 ? this._itemComponent.Init(this._luckycharmModel, m.ItemComponentType.LuckyCharm) : this._itemComponent.Init({
                        ItemId: this._appearanceItemId
                    }), this.LuckyCharmNameLabel.string = this._appearanceItemId.ToItemName(), this.LuckyCharmTypeValueLabel.string = "luckycharm".ToUILocale(), this.SetLockByModel()
                }, t.prototype.SetAttribute = function() {
                    for (var e = this._luckycharmModel.Attrs.length, t = 0; t < e; t++) {
                        var n = this.AttrNodeArray[t];
                        n.active = !0;
                        var o = this._luckycharmModel.Attrs[t].Items[1],
                            r = this._luckycharmModel.Attrs[t].Items[0],
                            i = y.default.GetHeroAttribute(r, o, !0);
                        cc.find("AttrIcon", n).getComponent(cc.Sprite).spriteFrame = i.Icon, cc.find("CommonLongLabelRollComponent/Tag", n).getComponent(cc.Label).string = i.Name, cc.find("RightBg/AtrrEffect_Label", n).getComponent(cc.Label).string = this.NumberSign(o) + i.Value
                    }
                    for (t = e; t < this.AttrNodeArray.length; t++) this.AttrNodeArray[t].active = !1
                }, t.GetLuckyCharmAttrs = function(e) {
                    var t = [];
                    if (e.ItemId == C.CommonItemId.PrimordialLuckyCharm)(n = I.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * C.CommonItemId.PrimordialLuckyCharm + e.StarSkills.length)) && n.Attrs.forEach(function(e) {
                        var n = {};
                        n.AttrId = e.Items[0], n.AttrValue = e.Items[1], t.push(n)
                    });
                    else if (e.ItemId == C.CommonItemId.GloryLuckyCharm) {
                        var n;
                        (n = I.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * C.CommonItemId.PrimordialLuckyCharm + e.StarSkills.length)) && n.Attrs.forEach(function(e) {
                            var n = {};
                            n.AttrId = e.Items[0], n.AttrValue = e.Items[1], t.push(n)
                        });
                        var o = I.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * C.CommonItemId.GloryLuckyCharm + e.GloryStar);
                        o && o.Attrs.forEach(function(e) {
                            var n = t.findIndex(function(t) {
                                return t.AttrId == e.Items[0]
                            });
                            n > -1 && (t[n].AttrValue += e.Items[1])
                        })
                    }
                    return t
                }, t.prototype.SetOrigionAttrView = function() {
                    if (this._luckycharmModel.ItemId >= C.CommonItemId.PrimordialLuckyCharm) {
                        this.OrigionAttrPart.active = !0;
                        for (var e = n.GetLuckyCharmAttrs(this._luckycharmModel), t = 0; t < this.OrigionAttrNodes.length; t++) {
                            var o = y.default.GetHeroAttribute(e[t].AttrId, e[t].AttrValue, !0),
                                r = this.OrigionAttrNodes[t];
                            r.getChildByName("AttrName").getComponent(cc.Label).string = o.Name, r.getChildByName("AttrIcon").getComponent(cc.Sprite).spriteFrame = o.Icon, r.getChildByName("CurrentValue").getComponent(cc.Label).string = o.Value
                        }
                    } else this.OrigionAttrPart.active = !1
                }, t.prototype.SetSkill = function() {
                    var e = this._luckycharmModel.Skills.length;
                    if (0 != e) {
                        this.SkillZone.active = !0;
                        for (var t = 0; t < e; t++) {
                            l.EZLog.Log(" --- --- --- SKILL INDEX = ", t);
                            var n = this.SkillNodeArray[t];
                            n.active = !0;
                            var o = n.getChildByName(this._skillItemContainerName),
                                r = o.getComponentInChildren(g.default);
                            if (!r) {
                                var i = cc.instantiate(this._skillPrefab);
                                r = i.getComponent(g.default), i.setParent(o)
                            }
                            var a = this._luckycharmModel.Skills[t],
                                s = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmSkill_Config, a);
                            r.InitByConfig(s);
                            var c = cc.find("SkillNameLabel", n);
                            c.color = h.UIUtlity.GetLabelColorByQuality(s.Quality), c.getComponent(cc.Label).string = d.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + a), cc.find("TextScrollView/view/content/SkillDescRichText", n).getComponent(cc.RichText).string = d.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_desc_" + a)
                        }
                        for (t = e; t < this.SkillNodeArray.length; t++) this.SkillNodeArray[t].active = !1
                    } else this.SkillZone.active = !1
                }, t.prototype.GetNeedDoubleSkillStar = function() {
                    var e = 0;
                    if (this._luckycharmModel.ItemId == C.CommonItemId.GloryLuckyCharm) {
                        var t = this._luckycharmModel.GloryStar,
                            n = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * C.CommonItemId.GloryLuckyCharm + t);
                        if (n)
                            for (var o = 0; o < n.Attrs2.length; o++) {
                                var r = n.Attrs2[o];
                                if (101 == r.Items[0]) {
                                    e = r.Items[1];
                                    break
                                }
                            }
                    }
                    return e
                }, t.prototype.SetOrigionSkills = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, p, f, y, g, m, _, v;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    if (!(this._currentStarLevel > 0)) return [3, 7];
                                    for (this.OrigionalSkillPart.active = !0, e = [], t = I.ConfigDataComponent.Instance.GetArrayConfig(u.LuckyCharmStar_Config), n = 0; n < t.length; n++) o = t[n], Math.floor(o.Id / 100) == C.CommonItemId.PrimordialLuckyCharm && e.push(o);
                                    r = 0, i = this.GetNeedDoubleSkillStar(), a = 0, s.label = 1;
                                case 1:
                                    return a < this._currentStarLevel ? (c = e[a]).Skills && c.Skills.length > 0 ? (m = this.OrigionalSkillNodes[r].getChildByName("SkillItemIcon").getComponent(cc.Sprite), _ = this.OrigionalSkillNodes[r].getChildByName("SkillNameLabel").getComponent(cc.Label), v = this.OrigionalSkillNodes[r].getChildByName("UnSelectedLabel").getComponent(cc.Label), (p = this._luckycharmModel.StarSkills[a]) > 0 ? (f = p, i > 0 && a + 1 == i && (y = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStarSkill_Config, p)) && (f = y.EnhancedId), m.node.active = !0, _.node.active = !0, v.node.active = !1, [4, this.LoadDynamicAsset("LuckyCharmSkillIcon/" + f, cc.SpriteFrame)]) : [3, 3]) : [3, 5] : [3, 6];
                                case 2:
                                    return g = s.sent(), this.isValid ? (m.spriteFrame = g, _.string = f.ToHeroSkillName(), [3, 4]) : (l.AssetsManager.Instance.UnloadAsset(g), [2]);
                                case 3:
                                    m.node.active = !1, _.node.active = !1, v.node.active = !0, v.string = "LuckyCharm_NotSelectSkillYet".ToUILocale(), s.label = 4;
                                case 4:
                                    r++, s.label = 5;
                                case 5:
                                    return a++, [3, 1];
                                case 6:
                                    if (r < this.OrigionalSkillNodes.length)
                                        for (; r < this.OrigionalSkillNodes.length; r++) m = this.OrigionalSkillNodes[r].getChildByName("SkillItemIcon").getComponent(cc.Sprite), _ = this.OrigionalSkillNodes[r].getChildByName("SkillNameLabel").getComponent(cc.Label), v = this.OrigionalSkillNodes[r].getChildByName("UnSelectedLabel").getComponent(cc.Label), m.node.active = !0, _.node.active = !1, v.node.active = !0, m.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("smallBtn_lock"), v.string = "LuckyCharm_Locked".ToUILocale();
                                    return [3, 8];
                                case 7:
                                    this.OrigionalSkillPart.active = !1, s.label = 8;
                                case 8:
                                    return [2]
                            }
                        })
                    })
                }, t.GetLuckyCharmEnteredSkillAttrs = function(e) {
                    var t = [];
                    if (e.ItemId == C.CommonItemId.PrimordialLuckyCharm)(n = I.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * C.CommonItemId.PrimordialLuckyCharm + e.StarSkills.length)) && n.EntranceSkill.forEach(function(e) {
                        var n = {};
                        n.AttrId = e.Items[0], n.AttrValue = e.Items[1], t.push(n)
                    });
                    else if (e.ItemId == C.CommonItemId.GloryLuckyCharm) {
                        var n;
                        (n = I.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * C.CommonItemId.PrimordialLuckyCharm + e.StarSkills.length)) && n.EntranceSkill.forEach(function(e) {
                            var n = {};
                            n.AttrId = e.Items[0], n.AttrValue = e.Items[1], t.push(n)
                        });
                        var o = I.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStar_Config, 100 * C.CommonItemId.GloryLuckyCharm + e.GloryStar);
                        o && o.EntranceSkill.forEach(function(e) {
                            var n = t.findIndex(function(t) {
                                return t.AttrId == e.Items[0]
                            });
                            n > -1 && (t[n].AttrValue += e.Items[1])
                        })
                    }
                    return t
                }, t.prototype.SetEnteredSkill = function() {
                    var e = this;
                    if (this._luckycharmModel.ItemId >= C.CommonItemId.PrimordialLuckyCharm && (this._luckycharmModel.StarSkills.length > 0 || this._luckycharmModel.GloryStar > 0)) {
                        this.EnteredSkillPartNode.active = !0;
                        var t = n.GetLuckyCharmEnteredSkillAttrs(this._luckycharmModel);
                        t.forEach(function(t) {
                            var n = y.default.GetHeroAttribute(t.AttrId, t.AttrValue, !0);
                            e.EnteredSkillDescriptionLabel.string = "LuckyCharm_EnteredSkillEffect".ToUILocale().Fmt(n.Name, n.Value)
                        }), 0 == t.length && (this.EnteredSkillDescriptionLabel.string = "LuckyCharm_Locked".ToUILocale())
                    } else this.EnteredSkillPartNode.active = !1
                }, t.prototype.BindRedDot = function() {
                    v.RedDotManager.Instance.BindInstance(this.UpgradeButton.node, v.RedDotManager.Instance.InstanceRedDot.LuckyCharmInfoUpgradeNode, {
                        Value1: this._luckycharmSid
                    });
                    var e = w.RedDotDataHandler.Instance.RefreshLuckyCharmChangeBySidAndSlot(this._heroSid, this._slotIndex + 1);
                    this.ChangeButtonRedDot.active = e
                }, t.prototype.SetEngraveNode = function() {
                    var e = y.default.Instance.IsGameModuleOpen(C.GameModuleType.LuckyCharmEngrave),
                        t = y.default.Instance.IsGameModuleUnlock(C.GameModuleType.LuckyCharmEngrave),
                        n = !1;
                    e && t[0] && (this._luckycharmModel = I.DataCenter.Instance.GetDataById(p.LuckyCharmEquip_Model, this._luckycharmSid), this._luckycharmModel.ItemId == C.CommonItemId.GloryLuckyCharm && (n = !0)), this.EngraveNode.active = n, n && (-1 == this._selectIndex && (0 == this._luckycharmModel.GloryStar ? this._selectIndex = 0 : this._selectIndex = this._luckycharmModel.GloryStar - 1), this.SetIcons(), this.SetEffectNodes(), this.SetSkillDesc())
                }, t.prototype.SetIcons = function() {
                    var e = this;
                    this.EffectSelectSprite.spriteFrame || (this.EffectSelectSprite.spriteFrame = this._luckyCharmAtlas.getSpriteFrame("engrave_select"), this.EffectSprites.forEach(function(t, n) {
                        t.spriteFrame = e._luckyCharmAtlas.getSpriteFrame("engrave" + (n + 1))
                    }), this.LineSprites.forEach(function(t) {
                        t.spriteFrame = e._luckyCharmAtlas.getSpriteFrame("line")
                    }))
                }, t.prototype.SetEffectNodes = function() {
                    var e = this._luckycharmModel.GloryStar;
                    this.EffectSprites.forEach(function(t, n) {
                        var o = n >= e;
                        h.UIUtlity.SetGray(t, o)
                    }), this.EffectSelectSprite.node.setPosition(this._positions[this._selectIndex])
                }, t.prototype.SetSkillDesc = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, h, f = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = this._selectIndex + 1, this._descPrefab ? [3, 2] : [4, this.LoadDynamicAsset("LuckyCharms/Components/EngraveSkillDescComponent", cc.Prefab)];
                                case 1:
                                    if (t = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._descPrefab = t, s.label = 2;
                                case 2:
                                    if (this._descNodes.forEach(function(e) {
                                            e.active = !1
                                        }), n = [], o = b.default.GetEngraveDescDatas(e, !0), r = o[0].type, this.DetailButton.node.active = 101 != r, i = d.DataCenter.Instance.GetDataById(p.UserHero_Model, this._luckycharmModel.OwnerId), a = d.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, i.HeroId), 1 == r)
                                        for (c = 0; c < o.length; c++)(h = o[c]).param != a.Career && 0 != h.param || n.push(h);
                                    else if (2 == r)
                                        for (c = 0; c < o.length; c++)(h = o[c]).param != a.ElementType && 0 != h.param || n.push(h);
                                    else if (101 == r)
                                        for (c = 0; c < o.length; c++) 0 == (h = o[c]).param && n.push(h);
                                    return n.forEach(function(e, t) {
                                        if (!f._descNodes[t]) {
                                            var n = cc.instantiate(f._descPrefab);
                                            n.parent = f.ScrollViewContent, f._descNodes[t] = n
                                        }
                                        f._descNodes[t].active = !0, f._descNodes[t].getChildByName("SkillLabel").getComponent(cc.Label).string = e.desc
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetButtons = function() {
                    var e = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmEquip_Config, this._luckycharmModel.ItemId);
                    e.CastRewards.length > 0 ? (this.CannotRecastButton.node.active = !1, this.RecastButton.node.active = !0) : (this.CannotRecastButton.node.active = !0, this.RecastButton.node.active = !1), 0 == e.NextId && y.default.Instance.IsGameModuleUnlock(C.GameModuleType.LuckyCharmUpgrade)[0] && y.default.Instance.IsGameModuleOpen(C.GameModuleType.LuckyCharmUpgrade) ? (this.UpgradeButton.node.active = !0, this.ComposeButton.node.active = !1) : (this.UpgradeButton.node.active = !1, this.ComposeButton.node.active = !0)
                }, t.prototype.SetLock = function(e) {
                    var t = 0;
                    e && (t = 1), this.LockNode.getComponent(cc.Sprite).spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this._lockStateToSpriteArray[t])
                }, t.prototype.SetLockByModel = function() {
                    this.SetLock(this._luckycharmModel.Locked)
                }, t.prototype.NumberSign = function(e) {
                    return e > 0 ? "+" : ""
                }, t.prototype.OnEvents = function() {
                    var e = this;
                    this.LockNode.on(cc.Node.EventType.TOUCH_END, this.OnLockTouch, this), this.ApproachNode.on(cc.Node.EventType.TOUCH_END, this.OnApproachTouch, this), this.TakeOffButton.node.on("click", this.OnTakeOffButtonClick, this), this.ChangeButton.node.on("click", this.OnChangeButtonClick, this), this.RecastButton.node.on("click", this.OnRecastButtonClick, this), this.CannotRecastButton.node.on("click", this.OnCannotRecastButtonClick, this), this.ComposeButton.node.on("click", this.OnComposeButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.UpgradeButton.node.on("click", this.OnUpgradeButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.OrigionalSkillNodes.forEach(function(t, n) {
                        t.name = n.toString(), t.on(cc.Node.EventType.TOUCH_END, e.OnOrigionalSkillItemTouchEnd, e)
                    })
                }, t.prototype.OnLockTouch = function() {
                    var e = this,
                        t = new p.Req_Item_LuckyCharmLock;
                    t.Sid = this._luckycharmSid, t.Locked = !this._luckycharmModel.Locked, d.RpcComponent.Instance.Call(t, function() {
                        e.GetLuckyCharmModel(), e.SetLockByModel();
                        var n = 0;
                        t.Locked && (n = 1), h.UIUtlity.ShowFloatingHint(e._lockStateToTipInfoArray[n].ToUILocale())
                    })
                }, t.prototype.OnApproachTouch = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, this._appearanceItemId)
                }, t.prototype.OnTakeOffButtonClick = function() {
                    var e = new p.Req_Item_LuckyCharmPutOff;
                    e.Sid = this._luckycharmSid, d.RpcComponent.Instance.Call(e, function() {
                        l.UIManager.Instance.BackUIPanel(), h.UIUtlity.ShowFloatingHint("luckycharm_takeOff".ToUILocale()), l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_EQUIP_DATA_REFRESH)
                    }, function(e) {
                        h.UIUtlity.ShowFloatingHint("Request Fail!" + e)
                    })
                }, t.prototype.OnChangeButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.SelectLuckyCharmHint.Path, this._slotIndex, this._heroSid, this._luckycharmSid)
                }, t.prototype.OnRecastButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmRecastPanel.Path, this._luckycharmSid)
                }, t.prototype.OnCannotRecastButtonClick = function() {
                    h.UIUtlity.ShowFloatingHint("luckycharm_cannotRecast".ToUILocale())
                }, t.prototype.OnComposeButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel(), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmComposePanel.Path)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "luckycharm".ToUILocale(),
                        titles: ["detail".ToUILocale()],
                        contents: ["luckycharm_Info_RuleText".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnUpgradeButtonClick = function() {
                    _.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmUpgradePanel.Path, this._luckycharmSid)
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = d.DataCenter.Instance.GetDataById(p.UserHero_Model, this._luckycharmModel.OwnerId);
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ChaosElementEffectPanel.Path, this._selectIndex + 1, S.ChaosElementEffectType.GloryLuckyCharm, e.HeroId)
                }, t.prototype.OnOrigionalSkillItemTouchEnd = function(e) {
                    var t = e.target,
                        n = Number.parseInt(t.name),
                        o = [];
                    if (this._currentStarLevel > 0) {
                        for (var r = [], i = I.ConfigDataComponent.Instance.GetArrayConfig(u.LuckyCharmStar_Config), a = 0; a < i.length; a++) {
                            var s = i[a];
                            Math.floor(s.Id / 100) == C.CommonItemId.PrimordialLuckyCharm && r.push(s)
                        }
                        for (var p = this.GetNeedDoubleSkillStar(), h = 0; h < this._currentStarLevel; h++) {
                            var f = r[h];
                            if (f.Skills && f.Skills.length > 0) {
                                var y = this._luckycharmModel.StarSkills[h];
                                if (y > 0) {
                                    var g = y;
                                    if (p > 0 && h + 1 == p) {
                                        var m = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmStarSkill_Config, y);
                                        m && (g = m.EnhancedId)
                                    }
                                    o.push(g)
                                }
                            }
                        }
                        o[n] && l.UIManager.Instance.ShowUIPanel(c.PanelConfig.HeroAttrTipsPanel.Path, o[n], t, 1)
                    }
                }, t.prototype.OnEffectIconClick = function(e) {
                    var t = Number.parseInt(e.target.name);
                    t != this._selectIndex && (this._selectIndex = t, this.SetEffectNodes(), this.SetSkillDesc())
                }, t.OrigionLuckyCharmVirtualItemId = 10456, i([T(cc.Label)], t.prototype, "LuckyCharmTypeLabel", void 0), i([T(cc.Label)], t.prototype, "AtrributeTitleLabel", void 0), i([T(cc.Label)], t.prototype, "SkillTitleLabel", void 0), i([T(cc.Label)], t.prototype, "TakeOffButtonLabel", void 0), i([T(cc.Label)], t.prototype, "ChangeButtonLabel", void 0), i([T(cc.Label)], t.prototype, "RecastButtonLabel", void 0), i([T(cc.Label)], t.prototype, "CannotRecastButtonLabel", void 0), i([T(cc.Label)], t.prototype, "ComposeButtonLabel", void 0), i([T(cc.Node)], t.prototype, "LuckyCharmItemContainer", void 0), i([T(cc.Label)], t.prototype, "LuckyCharmNameLabel", void 0), i([T(cc.Label)], t.prototype, "LuckyCharmTypeValueLabel", void 0), i([T(cc.Node)], t.prototype, "LockNode", void 0), i([T(cc.Node)], t.prototype, "AttrZone", void 0), i([T({
                    type: [cc.Node]
                })], t.prototype, "AttrNodeArray", void 0), i([T(cc.Node)], t.prototype, "SkillZone", void 0), i([T(cc.Node)], t.prototype, "SkillTitleTag", void 0), i([T({
                    type: [cc.Node]
                })], t.prototype, "SkillNodeArray", void 0), i([T(cc.Node)], t.prototype, "ApproachNode", void 0), i([T(cc.Button)], t.prototype, "TakeOffButton", void 0), i([T(cc.Button)], t.prototype, "ChangeButton", void 0), i([T(cc.Node)], t.prototype, "ChangeButtonRedDot", void 0), i([T(cc.Button)], t.prototype, "RecastButton", void 0), i([T(cc.Button)], t.prototype, "CannotRecastButton", void 0), i([T(cc.Button)], t.prototype, "ComposeButton", void 0), i([T(cc.Button)], t.prototype, "RuleButton", void 0), i([T(cc.Node)], t.prototype, "OrigionalSkillPart", void 0), i([T(cc.Label)], t.prototype, "OrigionalPartTitleLabel", void 0), i([T({
                    type: [cc.Node]
                })], t.prototype, "OrigionalSkillNodes", void 0), i([T(cc.Node)], t.prototype, "EnteredSkillPartNode", void 0), i([T(cc.Label)], t.prototype, "EnteredSkillPartTitleLabel", void 0), i([T(cc.Label)], t.prototype, "EnteredSkillDescriptionLabel", void 0), i([T(cc.Button)], t.prototype, "UpgradeButton", void 0), i([T(cc.Label)], t.prototype, "UpgradeButtonLabel", void 0), i([T(cc.Node)], t.prototype, "OrigionAttrPart", void 0), i([T(cc.Label)], t.prototype, "OrigionAttrTitleLabel", void 0), i([T({
                    type: [cc.Node]
                })], t.prototype, "OrigionAttrNodes", void 0), i([T(cc.Node)], t.prototype, "EngraveNode", void 0), i([T(cc.Label)], t.prototype, "EffectTitle", void 0), i([T(cc.Sprite)], t.prototype, "EffectSelectSprite", void 0), i([T(cc.Sprite)], t.prototype, "EffectSprites", void 0), i([T(cc.Sprite)], t.prototype, "LineSprites", void 0), i([T(cc.Label)], t.prototype, "EffectNames", void 0), i([T(cc.Label)], t.prototype, "SkillTitle", void 0), i([T(cc.Button)], t.prototype, "DetailButton", void 0), i([T(cc.Node)], t.prototype, "ScrollViewContent", void 0), i([T(cc.Node)], t.prototype, "BodyNodes", void 0), i([T(cc.ScrollView)], t.prototype, "BodyScrollView", void 0), i([T(cc.Node)], t.prototype, "BodyLayoutContent", void 0), n = i([A], t)
            }(l.BaseUIPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./ChaosElementEffectPanel": "ChaosElementEffectPanel",
        "./EngraveComponent": "EngraveComponent",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmInfo: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "75c028Fw15DPoRvsOHc+Ofa", "LuckyCharmInfo");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../Components/Components"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./SelectLuckyCharmHint"),
            y = e("../../Components/Components"),
            g = e("./LuckyCharmInfoPanel"),
            m = e("../../../ShareConsts/EnumType"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RuneNameLabel = null, t.OwnerLabel = null, t.SubstituteLabel = null, t.EquipLabel = null, t.HasWearLabel = null, t.SubstituteButton = null, t.EquipButton = null, t.HasWearButton = null, t.RuneContainer = null, t.GrayHeroContainer = null, t.HeroContainer = null, t.AttributesArray = [], t.SkillsArray = [], t.BtnUpLabelParent = null, t.BtnUpLabel = null, t.TakeOffBtn = null, t.TakeOffLabel = null, t._touchNodes = [], t._luckyCharmSid = -1, t._heroSid = 0, t._usedByHolyRelic = !1, t._skillNameNodeName = "SkillName_Label", t._skillButtonNodeName = "ClickZone", t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.InvariantLabelAssign()
                }, t.prototype.onDisable = function() {
                    var e = this;
                    this._touchNodes.forEach(function(t) {
                        t.off(cc.Node.EventType.TOUCH_END, e.OnSkillIconTouch, e)
                    }), this._touchNodes = [], this.EquipButton.node.off("click", this.OnEquipButtonClick, this), this.SubstituteButton.node.off("click", this.OnEquipButtonClick, this), this.TakeOffBtn.node.off("click", this.ClickTakeOffBtn, this)
                }, t.prototype.onEnable = function() {
                    this.EquipButton.node.on("click", this.OnEquipButtonClick, this), this.SubstituteButton.node.on("click", this.OnEquipButtonClick, this), this.TakeOffBtn.node.on("click", this.ClickTakeOffBtn, this)
                }, t.prototype.InvariantLabelAssign = function() {
                    this.SubstituteLabel.string = "equip_replace".ToUILocale(), this.EquipLabel.string = "equip_wear".ToUILocale(), this.HasWearLabel.string = "heroSkin_hasDress".ToUILocale(), this.TakeOffLabel.string = "PowerCore_Remove".ToUILocale()
                }, t.prototype.Init = function(e, t, n) {
                    if (this._heroSid = t, this._luckyCharmSid = e.Sid, n && (this._usedByHolyRelic = !0, this._commonEquipSetData = n), this._usedByHolyRelic) this.HasWearButton.node.active = !1, this.TakeOffBtn.node.active = 1 == this._commonEquipSetData.IsSelf, this.SubstituteButton.node.active = !this._commonEquipSetData.IsSelf && (0 === this._commonEquipSetData.EquipmentSetTeamIndex || this._commonEquipSetData.EquipmentSetTeamIndex > 0), this.EquipButton.node.active = !this._commonEquipSetData.IsSelf && (null == this._commonEquipSetData.EquipmentSetTeamIndex || null == this._commonEquipSetData.EquipmentSetTeamIndex);
                    else {
                        var o = e.OwnerId > 0;
                        this.EquipButton.node.active = !o, this.SubstituteButton.node.active = o && e.OwnerId != t, this.HasWearButton.node.active = o && e.OwnerId == t
                    }
                    this._itemNode || (this._itemNode = cc.instantiate(f.default.ItemPrefab));
                    var r = null;
                    if (this._itemNode.setParent(this.RuneContainer), e.ItemId >= m.CommonItemId.PrimordialLuckyCharm ? (r = y.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, g.default.OrigionLuckyCharmVirtualItemId), this._itemNode.getComponent(l.ItemComponent).Init(e, l.ItemComponentType.LuckyCharm)) : (r = y.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, e.ItemId), this._itemNode.getComponent(l.ItemComponent).Init({
                            ItemId: r.Id
                        })), e.OwnerId > 0 && !this._usedByHolyRelic) {
                        this.HeroContainer.active = !0, this.GrayHeroContainer.active = !1, this.OwnerLabel.string = "runeOwner".ToUILocale(), this._ownerItemNode || (this._ownerItemNode = cc.instantiate(f.default.ItemPrefab)), this._ownerItemNode.setParent(this.HeroContainer);
                        var i = s.DataCenter.Instance.GetDataById(a.UserHero_Model, e.OwnerId);
                        this._ownerItemNode.getComponent(l.ItemComponent).Init(i, l.ItemComponentType.HeroInfo)
                    } else this.HeroContainer.active = !1, this.GrayHeroContainer.active = !0, this.OwnerLabel.string = "noRuneOwner".ToUILocale();
                    this.RuneNameLabel.string = r.Id.ToItemName();
                    for (var u = 0; u < e.Attrs.length; u++) {
                        var d = this.AttributesArray[u];
                        d.active = !0;
                        var h = p.default.GetHeroAttribute(e.Attrs[u].Items[0], e.Attrs[u].Items[1], !0);
                        cc.find("AttrIcon", d).getComponent(cc.Sprite).spriteFrame = h.Icon, cc.find("CommonLongLabelRollComponent/Tag", d).getComponent(cc.Label).string = h.Name, cc.find("RightBg/AtrrEffect_Label", d).getComponent(cc.Label).string = this.NumberPrefix(e.Attrs[u].Items[1]) + h.Value
                    }
                    for (u = e.Attrs.length; u < this.AttributesArray.length; u++) this.AttributesArray[u].active = !1;
                    for (var I = 0; I < e.Skills.length; I++) {
                        var _ = this.SkillsArray[I];
                        _.active = !0, _.getChildByName(this._skillNameNodeName).getComponent(cc.Label).string = s.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + e.Skills[I]), _.getChildByName(this._skillButtonNodeName), _.name = e.Skills[I].toString();
                        var C = _.children[0];
                        C.name = e.Skills[I].toString(), C.on(cc.Node.EventType.TOUCH_END, this.OnSkillIconTouch, this)
                    }
                    for (I = e.Skills.length; I < this.SkillsArray.length; I++) this.SkillsArray[I].active = !1;
                    this._usedByHolyRelic && (0 === this._commonEquipSetData.EquipmentSetTeamIndex || this._commonEquipSetData.EquipmentSetTeamIndex > 0) ? (this.BtnUpLabelParent.active = !0, this.BtnUpLabel.string = "HolyRelic_wearInfo".ToUILocale().Fmt(this._commonEquipSetData.EquipmentSetTeamIndex + 1, this._commonEquipSetData.EquipmentSetTeamSlot + 1)) : (this.BtnUpLabelParent.active = !1, this.BtnUpLabel.string = "")
                }, t.prototype.NumberPrefix = function(e) {
                    if (!(e <= 0)) return "+"
                }, t.prototype.ClickTakeOffBtn = function() {
                    this._usedByHolyRelic && d.Game.EventDispatcher.Emit(u.EventKeys.HOLYRELIC_WEAR, this._commonEquipSetData)
                }, t.prototype.OnSkillIconTouch = function(e) {
                    d.UIManager.Instance.ShowUIPanel(h.PanelConfig.LuckyCharmSkillTip.Path, Number.parseInt(e.target.name), e.target)
                }, t.prototype.OnEquipButtonClick = function() {
                    this._usedByHolyRelic ? d.Game.EventDispatcher.Emit(u.EventKeys.HOLYRELIC_WEAR, this._commonEquipSetData) : d.Game.EventDispatcher.Emit(u.EventKeys.EVENT_LUCKYCHARM_EQUIP_OR_CHANGE, this._luckyCharmSid)
                }, i([C(cc.Label)], t.prototype, "RuneNameLabel", void 0), i([C(cc.Label)], t.prototype, "OwnerLabel", void 0), i([C(cc.Label)], t.prototype, "SubstituteLabel", void 0), i([C(cc.Label)], t.prototype, "EquipLabel", void 0), i([C(cc.Label)], t.prototype, "HasWearLabel", void 0), i([C(cc.Button)], t.prototype, "SubstituteButton", void 0), i([C(cc.Button)], t.prototype, "EquipButton", void 0), i([C(cc.Button)], t.prototype, "HasWearButton", void 0), i([C(cc.Node)], t.prototype, "RuneContainer", void 0), i([C(cc.Node)], t.prototype, "GrayHeroContainer", void 0), i([C(cc.Node)], t.prototype, "HeroContainer", void 0), i([C({
                    type: [cc.Node]
                })], t.prototype, "AttributesArray", void 0), i([C({
                    type: [cc.Node]
                })], t.prototype, "SkillsArray", void 0), i([C(cc.Node)], t.prototype, "BtnUpLabelParent", void 0), i([C(cc.Label)], t.prototype, "BtnUpLabel", void 0), i([C(cc.Button)], t.prototype, "TakeOffBtn", void 0), i([C(cc.Label)], t.prototype, "TakeOffLabel", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent",
        "./LuckyCharmInfoPanel": "LuckyCharmInfoPanel",
        "./SelectLuckyCharmHint": "SelectLuckyCharmHint"
    }],
    LuckyCharmOrigionSkillComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f4c6afh9BFOcr5DiI6M4kIr", "LuckyCharmOrigionSkillComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/ConfigData/ConfigDataComponent"),
            f = e("../../Components/DataCenter"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Panel/LuckyCharmOrigionSkillPanel"),
            m = e("../Panel/LuckyCharmUpgradePanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelectedNode = null, t.SkillIcon = null, t.SkillNameLabel = null, t.ChangeSkillButton = null, t.ChangeSkillButtonLabel = null, t.UnSelectedNode = null, t.UnSelectedDescriptionLabel = null, t.SelecteSkillButton = null, t.SelecteSkillButtonLabel = null, t.LockNode = null, t.UnLockStarContainer = null, t.LockNodeLabel = null, t._luckyCharmId = 0, t._luckyCharmModel = null, t._unlocked = !1, t._skillIndex = 0, t._skillId = 0, t._skillType = 0, t._unlockLevel = 0, t._iconSpriteFrame = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.start = function() {}, t.prototype.Init = function(e, t, n, o, r) {
                    this._luckyCharmId = e, this._unlocked = t, this._luckyCharmModel = f.DataCenter.Instance.GetDataById(c.LuckyCharmEquip_Model, this._luckyCharmId), this._skillId = n, this._skillType = o, this._unlockLevel = r ? r + 1 : 0, this._unlocked ? (this.LockNode.active = !1, this._skillId > 0 ? (this.SelectedNode.active = !0, this.UnSelectedNode.active = !1, this.LoadSkillIcon(this._skillId), this.SkillNameLabel.string = this._skillId.ToHeroSkillName(), this.ChangeSkillButton.node.on("click", this.onSelectSkillButtonClicked, this)) : (this.SelectedNode.active = !1, this.UnSelectedNode.active = !0, this.SelecteSkillButton.node.on("click", this.onSelectSkillButtonClicked, this))) : (this.LockNode.active = !0, this.SelectedNode.active = !1, this.UnSelectedNode.active = !1, this.LoadUnlockView())
                }, t.prototype.LoadSkillIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return t = this, [4, u.AssetsManager.Instance.LoadAsset("LuckyCharmSkillIcon/" + e, cc.SpriteFrame)];
                                case 1:
                                    return t._iconSpriteFrame = n.sent(), this.isValid || u.AssetsManager.Instance.UnloadAsset(this._iconSpriteFrame), this.SkillIcon.spriteFrame = this._iconSpriteFrame, [2]
                            }
                        })
                    })
                }, t.prototype.LoadUnlockView = function() {
                    if (this.UnLockStarContainer.destroyAllChildren(), 1 != this._unlockLevel) {
                        for (var e = 0; e < this._unlockLevel; e++) {
                            var t = new cc.Node("node" + e),
                                o = t.addComponent(cc.Sprite);
                            o.sizeMode = cc.Sprite.SizeMode.CUSTOM, o.type = cc.Sprite.Type.SIMPLE, t.width = t.width * n.HOLY_STAR_SCALE, t.height = t.height * n.HOLY_STAR_SCALE, o.spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarIcon"), this.UnLockStarContainer.addChild(t)
                        }
                        this.LockNodeLabel.string = "LuckyCharm_UnlockCondition".ToUILocale().Fmt(this._unlockLevel)
                    } else this.LockNodeLabel.string = "LuckyCharm_UnlockByUpgrade".ToUILocale()
                }, t.prototype.onLoad = function() {
                    this.UnSelectedDescriptionLabel.string = "LuckyCharm_NotSelectSkillYet".ToUILocale(), this.ChangeSkillButtonLabel.string = "LuckyCharm_ChangeSkill".ToUILocale(), this.SelecteSkillButtonLabel.string = "LuckyCharm_SelecteSkill".ToUILocale()
                }, t.prototype.onDisable = function() {
                    this._iconSpriteFrame && u.AssetsManager.Instance.UnloadAsset(this._iconSpriteFrame)
                }, t.prototype.onSelectSkillButtonClicked = function() {
                    if (this._skillType == g.LuckyCharmOrigionSkillToggleType.OrigionSkill) u.UIManager.Instance.ShowUIPanel(d.PanelConfig.LuckyCharmOrigionSkillPanel.Path, this._luckyCharmId, g.LuckyCharmOrigionSkillPanelSelectMode.Select, this._skillType, this._unlockLevel);
                    else if (this._skillType == g.LuckyCharmOrigionSkillToggleType.CombineSkill) {
                        for (var e = !0, t = [], n = h.ConfigDataComponent.Instance.GetArrayConfig(l.LuckyCharmStar_Config), o = 0; o < n.length; o++) {
                            var r = n[o];
                            Math.floor(r.Id / 100) == p.CommonItemId.PrimordialLuckyCharm && t.push(r)
                        }
                        var i = 0;
                        for (o = 0; o < t.length; o++)
                            if (t[o].Skills && t[o].Skills.length > 0) {
                                if (0 == this._luckyCharmModel.StarSkills[o] && i < m.default.OrigionSkillMax) {
                                    e = !1;
                                    break
                                }
                                i++
                            } e ? u.UIManager.Instance.ShowUIPanel(d.PanelConfig.LuckyCharmOrigionSkillPanel.Path, this._luckyCharmId, g.LuckyCharmOrigionSkillPanelSelectMode.Select, this._skillType, this._unlockLevel) : y.UIUtlity.ShowFloatingHint("LuckyCharm_HasOrigionNotSelected".ToUILocale())
                    }
                }, t.HOLY_STAR_SCALE = .7, i([C(cc.Node)], t.prototype, "SelectedNode", void 0), i([C(cc.Sprite)], t.prototype, "SkillIcon", void 0), i([C(cc.Label)], t.prototype, "SkillNameLabel", void 0), i([C(cc.Button)], t.prototype, "ChangeSkillButton", void 0), i([C(cc.Label)], t.prototype, "ChangeSkillButtonLabel", void 0), i([C(cc.Node)], t.prototype, "UnSelectedNode", void 0), i([C(cc.Label)], t.prototype, "UnSelectedDescriptionLabel", void 0), i([C(cc.Button)], t.prototype, "SelecteSkillButton", void 0), i([C(cc.Label)], t.prototype, "SelecteSkillButtonLabel", void 0), i([C(cc.Node)], t.prototype, "LockNode", void 0), i([C(cc.Node)], t.prototype, "UnLockStarContainer", void 0), i([C(cc.Label)], t.prototype, "LockNodeLabel", void 0), n = i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/LuckyCharmOrigionSkillPanel": "LuckyCharmOrigionSkillPanel",
        "../Panel/LuckyCharmUpgradePanel": "LuckyCharmUpgradePanel"
    }],
    LuckyCharmOrigionSkillPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2e47apEoWtPyJQpAtPiAIZC", "LuckyCharmOrigionSkillPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.LuckyCharmOrigionSkillToggleType = n.LuckyCharmOrigionSkillPanelSelectMode = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            d = e("../Components/CustomToggle"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/Components"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../Components/LuckyCharmStarInfoComponent"),
            _ = e("../Components/OrigionSkillSelectComponent"),
            C = e("../Components/LuckyCharmCombineSkillElementComponent"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("./LuckyCharmUpgradePanel"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.Show = 0] = "Show", e[e.Select = 1] = "Select"
        })(l = n.LuckyCharmOrigionSkillPanelSelectMode || (n.LuckyCharmOrigionSkillPanelSelectMode = {})),
        function(e) {
            e[e.Stars = 0] = "Stars", e[e.OrigionSkill = 1] = "OrigionSkill", e[e.CombineSkill = 2] = "CombineSkill"
        }(c = n.LuckyCharmOrigionSkillToggleType || (n.LuckyCharmOrigionSkillToggleType = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed, !0), t.PanelTitleLabel = null, t.TogglePart = null, t.Toggles = [], t.StarInfoPart = null, t.StarInfoBackground = null, t.StarInfoScrollView = null, t.StarInfoScrollContainer = null, t.OrigionSkillPart = null, t.OrigionSkillBackground = null, t.OrigionSkillScrollView = null, t.OrigionSkillScrollViewMask = null, t.OrigionSkillScrollViewContainer = null, t.CombineSkillPart = null, t.CombineSkillBackground = null, t.CombineSkillTitleLabel = null, t.CombineSkillDescriptionLabel = null, t.CombineSkillElementContainer = null, t.CombineSkillScrollView = null, t.CombineSkillScrollViewMask = null, t.CombineSkillScrollViewContainer = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t._currentPanelMode = l.Select, t._currentToggleType = -1, t._luckyCharmId = 0, t._luckyCharmStarLevel = 0, t._luckyCharmModel = null, t._starConfigs = [], t._skillIndex = 0, t._currentSkillId = 0, t._currentSelectedSkillId = 0, t._panelNameKeys = [
                    ["LuckyCharm_StarInfo", "LuckyCharm_OrigionSkill", "LuckyCharm_CombineSkill"],
                    ["", "LuckyCharmSelect_OrigionSkillPanelName", "LuckyCharmSelect_CombineSkillPanelName"]
                ], t._contentViewHeights = [
                    [1104, 1104, 856],
                    [1104, 980, 728]
                ], t._toggleKeys = ["LuckyCharm_StarInfo", "LuckyCharm_OrigionSkill", "LuckyCharm_CombineSkill"], t._combineElementViews = [], t._combineSkillViews = new Map, t._origionSkillViews = new Map, t
            }
            return r(t, e), t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.InitToggles(), this.InitLabels(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this), this._starConfigs = [];
                for (var t = g.ConfigDataComponent.Instance.GetArrayConfig(h.LuckyCharmStar_Config), n = 0; n < t.length; n++) {
                    var o = t[n];
                    Math.floor(o.Id / 100) == m.CommonItemId.PrimordialLuckyCharm && this._starConfigs.push(o)
                }
            }, t.prototype.InitLabels = function() {
                this.CombineSkillTitleLabel.string = "LuckyCharm_SKillCombineTitle".ToUILocale(), this.CombineSkillDescriptionLabel.string = "LuckyCharm_SKillCombineDescription".ToUILocale(), this.ConfirmButtonLabel.string = "button_confirm".ToUILocale()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._luckyCharmId = t[0], this._currentPanelMode = t[1], this._currentToggleType = t[2], this._skillIndex = t[3], this._luckyCharmModel = y.DataCenter.Instance.GetDataById(f.LuckyCharmEquip_Model, this._luckyCharmId), this._currentSkillId = this._luckyCharmModel.StarSkills[this._skillIndex - 1], this._currentSelectedSkillId = this._currentSkillId > 0 ? this._currentSkillId : 0, this._luckyCharmStarLevel = this._luckyCharmModel.StarSkills.length
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), this.SetTitleView(), this._currentPanelMode == l.Show) this.TogglePart.active = !0, this.SetStarInfoView(), this.SetOrigionSkillView(), this.SetCombineSkillView(), this.ShowTabView(this._currentToggleType), this.ConfirmButton.node.active = !1;
                else {
                    switch (this.TogglePart.active = !1, this._currentToggleType) {
                        case c.OrigionSkill:
                            this.SetOrigionSkillView(), this.StarInfoPart.active = !1, this.CombineSkillPart.active = !1;
                            break;
                        case c.CombineSkill:
                            this.StarInfoPart.active = !1, this.OrigionSkillPart.active = !1, this.SetCombineSkillView()
                    }
                    u.Game.EventDispatcher.On(v.EventKeys.EVENT_LUCKYCHARM_SELECT_SKILL, this.OnSelectSkillChanged, this)
                }
            }, t.prototype.SetTitleView = function() {
                var e = this._panelNameKeys[this._currentPanelMode][this._currentToggleType];
                this.PanelTitleLabel.string = e.ToUILocale()
            }, t.prototype.SetStarInfoView = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this.StarInfoPart.active = !0, [4, this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmStarInfoComponent")];
                            case 1:
                                if (e = o.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                for (this.StarInfoPart.height = this._contentViewHeights[this._currentPanelMode][c.Stars], this.StarInfoBackground.node.height = this._contentViewHeights[this._currentPanelMode][c.Stars], this.StarInfoScrollView.node.height = this._contentViewHeights[this._currentPanelMode][c.Stars], this.StarInfoScrollContainer.destroyAllChildren(), t = 0; t < this._starConfigs.length; t++)(n = cc.instantiate(e)).getComponent(I.default).Init(t + 1), this.StarInfoScrollContainer.addChild(n);
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetOrigionSkillView = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this.OrigionSkillPart.active = !0, this.OrigionSkillPart.height = this._contentViewHeights[this._currentPanelMode][c.OrigionSkill], this.OrigionSkillBackground.node.height = this._contentViewHeights[this._currentPanelMode][c.OrigionSkill], this.OrigionSkillScrollView.node.height = this._contentViewHeights[this._currentPanelMode][c.OrigionSkill], this.OrigionSkillScrollViewMask.node.height = this._contentViewHeights[this._currentPanelMode][c.OrigionSkill], this.OrigionSkillScrollViewContainer.destroyAllChildren(), [4, this.LoadDynamicAsset("LuckyCharms/Components/OrigionSkillSelectComponent")];
                            case 1:
                                if (e = i.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                for (0, t = this._currentPanelMode == l.Show ? this._starConfigs.length : this._luckyCharmStarLevel, n = 0, o = 0; o < this._luckyCharmModel.StarSkills.length; o++)
                                    if (this._luckyCharmModel.StarSkills[o] > 0 && this._luckyCharmModel.StarSkills[o] != this._currentSkillId) {
                                        n = this._luckyCharmModel.StarSkills[o];
                                        break
                                    } for (this._origionSkillViews.clear(), o = 0; o < t; o++) this._starConfigs[o].Skills && this._starConfigs[o].Skills.length > 0 && this._starConfigs[o].Skills.forEach(function(t) {
                                    var o = g.ConfigDataComponent.Instance.GetConfigById(h.LuckyCharmStarSkill_Config, t);
                                    if (o.Type <= m.LuckyCharmStarSkillType.Yang && !r._origionSkillViews.get(o.Id)) {
                                        var i = cc.instantiate(e),
                                            a = i.getComponent(_.default);
                                        a.Init(t, r._currentPanelMode, t == r._currentSkillId), r.OrigionSkillScrollViewContainer.addChild(i), r._origionSkillViews.set(o.Id, i), t == n && a.SetToGrey()
                                    }
                                });
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetCombineSkillView = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, p = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this.CombineSkillPart.active = !0, [4, this.LoadDynamicAsset("LuckyCharms/Components/CombineSkillSelectComponent")];
                            case 1:
                                return e = s.sent(), this.isValid ? [4, this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmCombineSkillElementComponent")] : (u.AssetsManager.Instance.UnloadAsset(e), [2]);
                            case 2:
                                if (t = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(t), [2];
                                if (this.CombineSkillPart.height = this._contentViewHeights[this._currentPanelMode][c.CombineSkill], this.CombineSkillBackground.node.height = this._contentViewHeights[this._currentPanelMode][c.CombineSkill], this.CombineSkillScrollView.node.height = this._contentViewHeights[this._currentPanelMode][c.CombineSkill], this.CombineSkillScrollViewMask.node.height = this._contentViewHeights[this._currentPanelMode][c.CombineSkill], this.CombineSkillScrollViewContainer.destroyAllChildren(), this.CombineSkillElementContainer.destroyAllChildren(), this._combineSkillViews.clear(), this._combineElementViews = [], n = 0, this._currentPanelMode == l.Show)
                                    for (a = 0; a < m.LuckyCharmStarSkillType.DoubleYang; a++) a >= m.LuckyCharmStarSkillType.Yang && ((r = cc.instantiate(t)).getComponent(C.default).Init(a + 1, this), this.CombineSkillElementContainer.addChild(r), this._combineElementViews.push(r));
                                else o = 0, this._luckyCharmModel.StarSkills.forEach(function(e) {
                                    if (e > 0 && o < S.default.OrigionSkillMax) {
                                        var t = g.ConfigDataComponent.Instance.GetConfigById(h.LuckyCharmStarSkill_Config, e);
                                        n += t.Type, o++
                                    }
                                }), (r = cc.instantiate(t)).getComponent(C.default).Init(n, this), this.CombineSkillElementContainer.addChild(r), this._combineElementViews.push(r);
                                for (0, i = this._currentPanelMode == l.Show ? this._starConfigs.length : this._luckyCharmStarLevel, a = 0; a < i; a++) this._starConfigs[a].Skills && this._starConfigs[a].Skills.length > 0 && this._starConfigs[a].Skills.forEach(function(t) {
                                    var o = g.ConfigDataComponent.Instance.GetConfigById(h.LuckyCharmStarSkill_Config, t);
                                    if (p._currentPanelMode == l.Show && o.Type > m.LuckyCharmStarSkillType.Yang || p._currentPanelMode == l.Select && o.Type == n) {
                                        var r = cc.instantiate(e);
                                        r.getComponent(_.default).Init(t, p._currentPanelMode, t == p._currentSkillId), p.CombineSkillScrollViewContainer.addChild(r), p._combineSkillViews.has(o.Type) || p._combineSkillViews.set(o.Type, []), p._combineSkillViews.get(o.Type).push(r)
                                    }
                                });
                                return [2]
                        }
                    })
                })
            }, t.prototype.SelectCombineSkillElement = function(e) {
                this._combineSkillViews.forEach(function(t, n) {
                    t.forEach(function(t) {
                        t.active = n == e
                    })
                }), this._combineElementViews.forEach(function(t) {
                    var n = t.getComponent(C.default);
                    n.ElementType != e && n.SetToUnSelected()
                })
            }, t.prototype.InitToggles = function() {
                for (var e = this.Toggles.length, t = 0; t < e; t++) {
                    var n = this.Toggles[t];
                    n.node.on("toggle", this.OnSwitchTab, this), n.Init(this._toggleKeys[t].ToUILocale())
                }
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                this._currentToggleType != t && (this._currentToggleType = t, this.ShowTabView(this._currentToggleType))
            }, t.prototype.ShowTabView = function(e) {
                switch (e) {
                    case 0:
                        this.OrigionSkillPart.active = !1, this.CombineSkillPart.active = !1, this.StarInfoPart.active = !0;
                        break;
                    case 1:
                        this.StarInfoPart.active = !1, this.CombineSkillPart.active = !1, this.OrigionSkillPart.active = !0;
                        break;
                    case 2:
                        this.StarInfoPart.active = !1, this.OrigionSkillPart.active = !1, this.CombineSkillPart.active = !0
                }
            }, t.prototype.OnSelectSkillChanged = function(e) {
                this._currentSelectedSkillId = e
            }, t.prototype.OnConfirmButtonClicked = function() {
                if (this._currentSelectedSkillId > 0)
                    if (this._currentSelectedSkillId == this._currentSkillId) b.UIUtlity.ShowFloatingHint("LuckyCharm_SkillIsSelected".ToUILocale());
                    else if (0 != this._currentSkillId) {
                    for (var e = g.ConfigDataComponent.Instance.GetConfigById(h.LuckyCharmStar_Config, 100 * m.CommonItemId.PrimordialLuckyCharm + this._skillIndex), t = "", n = 0; n < e.SkillMaterials.length; n++) t += 0 != n ? "\u3001" + e.SkillMaterials[n].Items[1] + " " + e.SkillMaterials[n].Items[0].ToItemName() : e.SkillMaterials[n].Items[1] + " " + e.SkillMaterials[n].Items[0].ToItemName();
                    b.UIUtlity.ShowHintPanel("hint".ToUILocale(), "LuckyCharm_ChangeSkillCost".ToUILocale().Fmt(t), "cancel".ToUILocale(), null, "ok".ToUILocale(), this.RequestSkillChange.bind(this))
                } else this.RequestSkillChange();
                else b.UIUtlity.ShowFloatingHint("LuckyCharm_SkillWithOutSelected".ToUILocale())
            }, t.prototype.RequestSkillChange = function() {
                var e = new f.Req_Item_LuckyCharmChangeSkill;
                e.Sid = this._luckyCharmId, e.Star = this._skillIndex, e.SkillId = this._currentSelectedSkillId, g.RpcComponent.Instance.Call(e, this.OnSkillChangeSuccess.bind(this))
            }, t.prototype.OnSkillChangeSuccess = function() {
                this._currentSkillId = this._currentSelectedSkillId, b.UIUtlity.ShowFloatingHint("LuckyCharm_SkillChanged".ToUILocale()), u.UIManager.Instance.BackUIPanel()
            }, t.prototype.Close = function(t) {
                e.prototype.Close.call(this, t), u.Game.EventDispatcher.Off(v.EventKeys.EVENT_LUCKYCHARM_SELECT_SKILL, this.OnSelectSkillChanged)
            }, i([A(cc.Label)], t.prototype, "PanelTitleLabel", void 0), i([A(cc.Node)], t.prototype, "TogglePart", void 0), i([A(d.default)], t.prototype, "Toggles", void 0), i([A(cc.Node)], t.prototype, "StarInfoPart", void 0), i([A(cc.Sprite)], t.prototype, "StarInfoBackground", void 0), i([A(cc.ScrollView)], t.prototype, "StarInfoScrollView", void 0), i([A(cc.Node)], t.prototype, "StarInfoScrollContainer", void 0), i([A(cc.Node)], t.prototype, "OrigionSkillPart", void 0), i([A(cc.Sprite)], t.prototype, "OrigionSkillBackground", void 0), i([A(cc.ScrollView)], t.prototype, "OrigionSkillScrollView", void 0), i([A(cc.Mask)], t.prototype, "OrigionSkillScrollViewMask", void 0), i([A(cc.Node)], t.prototype, "OrigionSkillScrollViewContainer", void 0), i([A(cc.Node)], t.prototype, "CombineSkillPart", void 0), i([A(cc.Sprite)], t.prototype, "CombineSkillBackground", void 0), i([A(cc.Label)], t.prototype, "CombineSkillTitleLabel", void 0), i([A(cc.Label)], t.prototype, "CombineSkillDescriptionLabel", void 0), i([A(cc.Node)], t.prototype, "CombineSkillElementContainer", void 0), i([A(cc.ScrollView)], t.prototype, "CombineSkillScrollView", void 0), i([A(cc.Mask)], t.prototype, "CombineSkillScrollViewMask", void 0), i([A(cc.Node)], t.prototype, "CombineSkillScrollViewContainer", void 0), i([A(cc.Button)], t.prototype, "ConfirmButton", void 0), i([A(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([P], t)
        }(p.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/LuckyCharmCombineSkillElementComponent": "LuckyCharmCombineSkillElementComponent",
        "../Components/LuckyCharmStarInfoComponent": "LuckyCharmStarInfoComponent",
        "../Components/OrigionSkillSelectComponent": "OrigionSkillSelectComponent",
        "./LuckyCharmUpgradePanel": "LuckyCharmUpgradePanel"
    }],
    LuckyCharmRecastPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "799d1UjLbNGNIOa5CIIWqt7", "LuckyCharmRecastPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("./LuckyCharmSkillComponent"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/ItemClickComponent"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/CurrencyBarItem"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("./LuckyCharmInfoPanel"),
            b = e("../Components/CustomProgressBar"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Title = null, t.RecastTip = null, t.BeforeRecastLabel = null, t.LuckyCharmNameLabel = null, t.AfterRecastLabel = null, t.RecastRuleButton = null, t.ItemContainer = null, t.BasicAttrLabelArray = [], t.LuckySkillLabelArray = [], t.BeforeAttrIconArray = [], t.BeforeAttrNameArray = [], t.BeforeAttrDescArray = [], t.AfterAttrIconArray = [], t.AfterAttrNameArray = [], t.AfterAttrDescArray = [], t.BeforeSkillContainerArray = [], t.BeforeSkillNameArray = [], t.AfterSkillContainerArray = [], t.AfterSkillNameArray = [], t.SkillPreviewButton = null, t.RecastProgressTipLabel = null, t.RecastProgress = null, t.RecastProgressValueLabel = null, t.RecastCurrencySprite = null, t.SetCustomSkillButton = null, t.ChangeSkillSP = null, t.CostCurrencyArray = [], t.RecastButton = null, t.SaveButton = null, t.CantSaveNode = null, t.RecastAgainButton = null, t.RecastButtonLabel = null, t.RecastAgainButtonLabel = null, t.SaveButtonLabel = null, t.CantSaveButtonLabel = null, t.MiddleZone = null, t.QuestionMarks = [], t.WantedButtonLabel = null, t._changeSkillAniName = "UI_effect_fuwen_zhidingtihuan", t._wastedLabelColor = new cc.Color(98, 78, 60), t._attrNumberToHeigh = [0, 500, 560, 620], t._descLimitHeight = 90, t._highestSkillQuality = 6, t._recastCostItemIdArray = [], t._recastCostNumberArray = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), o = this.LoadDynamicAsset(f.default.LuckyCharmSkillComponentPath), [4, Promise.all([t, o]).then(function(e) {
                                        n.ItemPrefab = e[0], n.SkillPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.Title.string = "luckycharm_luckycharmRecast".ToUILocale(), this.RecastTip.string = "luckycharm_recastSkillTip".ToUILocale(), this.BeforeRecastLabel.string = "luckycharm_beforeRecast".ToUILocale(), this.AfterRecastLabel.string = "luckycharm_afterRecast".ToUILocale(), this.WantedButtonLabel.string = "optional".ToUILocale(), this.BasicAttrLabelArray.forEach(function(e) {
                        e.string = "equip_base_attr".ToUILocale()
                    }), this.LuckySkillLabelArray.forEach(function(e) {
                        e.string = "luckycharm_skill".ToUILocale()
                    }), this.RecastProgressTipLabel.string = "luckycharm_substituteSkillTip".ToUILocale(), this.RecastButtonLabel.string = "luckycharm_recast".ToUILocale(), this.RecastAgainButtonLabel.string = "luckycharm_recastAgain".ToUILocale(), this.SaveButtonLabel.string = this.CantSaveButtonLabel.string = "luckycharm_save".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    var e = cc.instantiate(n.ItemPrefab);
                    e.setParent(this.ItemContainer), e.getComponent(g.default).enabled = !1, this._item = e.getComponent(y.ItemComponent), this.BeforeSkillContainerArray.forEach(function(e) {
                        cc.instantiate(n.SkillPrefab).setParent(e)
                    }), this.AfterSkillContainerArray.forEach(function(e) {
                        cc.instantiate(n.SkillPrefab).setParent(e)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._sid = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.VariedValueAssign(), this.SetMiddleZone(), this.SetProgressBar(), this.InitCostCurrency(), this.SetCostCurrency(), this.SetBottomButtons()
                }, t.prototype.VariedValueAssign = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._model = d.DataCenter.Instance.GetDataById(h.LuckyCharmEquip_Model, this._sid), this._model.ItemId >= v.default.OrigionLuckyCharmVirtualItemId ? (this._itemConfig = d.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, v.default.OrigionLuckyCharmVirtualItemId), this._item.Init(this._model, y.ItemComponentType.LuckyCharm)) : (this._itemConfig = d.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, this._model.ItemId), this._item.Init({
                                        ItemId: this._model.ItemId
                                    })), this._highestSkillQuality = this._itemConfig.Id == v.default.OrigionLuckyCharmVirtualItemId ? 6 : this._itemConfig.Quality, this.LuckyCharmNameLabel.node.color = u.UIUtlity.GetLabelColorByQuality(this._itemConfig.Quality), this.LuckyCharmNameLabel.string = this._model.ItemId.ToItemName(), this._luckycharmConfig = d.ConfigDataComponent.Instance.GetConfigById(p.LuckyCharmEquip_Config, this._model.ItemId), n.ChangeSkillIngredientId = this._luckycharmConfig.SelectSkillMaterials[0].Items[0], this._changeSkillMaxCount = this._luckycharmConfig.SelectSkillMaterials[0].Items[1], this._recastCostItemIdArray = [], this._recastCostNumberArray = [], this._luckycharmConfig.CastMaterials.forEach(function(e) {
                                        o._recastCostItemIdArray.push(e.Items[0]), o._recastCostNumberArray.push(e.Items[1])
                                    }), e = m.default.Instance.GetItemPathById(n.ChangeSkillIngredientId), t = n, [4, this.LoadDynamicAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t.IngredientSpriteFrame = r.sent(), this.isValid ? (this.RecastCurrencySprite.spriteFrame = n.IngredientSpriteFrame, [2]) : (l.AssetsManager.Instance.UnloadAsset(n.IngredientSpriteFrame), [2])
                            }
                        })
                    })
                }, t.prototype.SetAttribute = function(e, t, n, o) {
                    var r, i = !1;
                    if (null == e || 0 == e.length ? (r = this._model.Attrs.length, i = !0) : r = e.length, i)
                        for (var a = 0; a < r; a++) t[a].spriteFrame = null, n[a].string = "", o[a].string = "", this.SetQuestionMarks(!0);
                    else
                        for (this.SetQuestionMarks(!1), a = 0; a < r; a++) {
                            var s = e[a].Items[1],
                                l = m.default.GetHeroAttribute(e[a].Items[0], s, !0);
                            t[a].node.parent.active = !0, t[a].spriteFrame = l.Icon, n[a].string = l.Name, o[a].string = this.NumberSign(s) + l.Value
                        }
                    for (a = r; a < t.length; a++) t[a].node.parent.active = !1
                }, t.prototype.SetQuestionMarks = function(e) {
                    for (var t = 0; t < this.QuestionMarks.length; t++) this.QuestionMarks[t].active = e
                }, t.prototype.SetSkill = function(e, t, n) {
                    var o = this._model.Skills.length;
                    if (e.length > 0)
                        for (var r = 0; r < o; r++) {
                            var i = d.ConfigDataComponent.Instance.GetConfigById(p.LuckyCharmSkill_Config, e[r]);
                            t[r].getComponentInChildren(f.default).InitById(e[r]), n[r].node.color = u.UIUtlity.GetLabelColorByQuality(i.Quality), n[r].string = d.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + e[r])
                        } else
                            for (r = 0; r < o; r++) t[r].getComponentInChildren(f.default).InitQuestionMark(), n[r].node.color = this._wastedLabelColor, n[r].string = "luckycharm_randomSkill".ToUILocale();
                    for (r = o; r < t.length; r++) n[r].node.color = this._wastedLabelColor, n[r].string = "dailyInstance_unopen".ToUILocale(), t[r].getComponentInChildren(f.default).InitLock()
                }, t.prototype.SetMiddleZone = function() {
                    this.SetAttribute(this._model.Attrs, this.BeforeAttrIconArray, this.BeforeAttrNameArray, this.BeforeAttrDescArray), this.SetAttribute(this._model.CastAttrs, this.AfterAttrIconArray, this.AfterAttrNameArray, this.AfterAttrDescArray), this.SetSkill(this._model.Skills, this.BeforeSkillContainerArray, this.BeforeSkillNameArray), this.SetSkill(this._model.CastSkills, this.AfterSkillContainerArray, this.AfterSkillNameArray), this.MiddleZone.height = this._attrNumberToHeigh[this._model.Attrs.length]
                }, t.prototype.SetProgressBar = function() {
                    var e = d.DataCenter.Instance.GetItemCount(n.ChangeSkillIngredientId);
                    this.RecastProgress.progress = e / this._changeSkillMaxCount, this.RecastProgressValueLabel.string = e.FmtCurrency() + "/" + this._changeSkillMaxCount, e >= this._changeSkillMaxCount ? (this.ChangeSkillSP.node.active = !0, this.ChangeSkillSP.setAnimation(0, this._changeSkillAniName, !0)) : e < this._changeSkillMaxCount && (this.ChangeSkillSP.node.active = !1, this.ChangeSkillSP.clearTracks())
                }, t.prototype.InitCostCurrency = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            for (e = 0; e < this._recastCostItemIdArray.length; e++) this.CostCurrencyArray[e].active = !0;
                            for (e = this._recastCostItemIdArray.length; e < this.CostCurrencyArray.length; e++) this.CostCurrencyArray[e].active = !1;
                            return [2]
                        })
                    })
                }, t.prototype.SetCostCurrency = function() {
                    for (var e = 0; e < this._recastCostNumberArray.length; e++) {
                        var t = this.CostCurrencyArray[e].getComponent(I.default);
                        t.Init(this._recastCostItemIdArray[e], !1, void 0, this._recastCostNumberArray[e]), t.SetFixedWidth(257)
                    }
                }, t.prototype.NumberSign = function(e) {
                    return e > 0 ? "+" : ""
                }, t.prototype.OnEvent = function() {
                    this.RecastRuleButton.node.on("click", this.OnRuleButtonClick, this), this.SkillPreviewButton.node.on("click", this.OnSkillViewButtonClick, this), this.RecastButton.node.on("click", this.OnRecastButtonClick, this), this.SaveButton.node.on("click", this.OnSaveButtonClick, this), this.RecastAgainButton.node.on("click", this.OnRecastAgainButtonClick, this), this.SetCustomSkillButton.node.on("click", this.OnSetCustomSkillButtonClick, this);
                    for (var e = 0; e < this.CostCurrencyArray.length; e++) this.CostCurrencyArray[e].getComponent(I.default).BtnAdd.node.on("click", this.OnIngredientAddButtonClick, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_LUCKYCHARM_SKILL_CHANGE, this.RefreshPanel, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnLuckyCharmSkillTouch, this), l.Game.EventDispatcher.On(_.EventKeys.EVENT_LUCKYCHARM_QUERY_RESULT, this.OnQueryHintClose, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_LUCKYCHARM_SKILL_CHANGE, this.RefreshPanel), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnLuckyCharmSkillTouch, this), l.Game.EventDispatcher.Off(_.EventKeys.EVENT_LUCKYCHARM_QUERY_RESULT, this.OnQueryHintClose, this)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = "luckycharm_luckycharmRecast".ToUILocale(),
                        t = ["luckycharm_luckycharmRecast".ToUILocale()],
                        n = ["luckycharm_RecastRuleText".ToUILocale()];
                    u.UIUtlity.ShowRulePanel({
                        name: e,
                        titles: t,
                        contents: n
                    })
                }, t.prototype.OnSkillViewButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmSkillViewHint.Path)
                }, t.prototype.OnRecastButtonClick = function() {
                    var e = this.GetNotEnoughIngredientId();
                    e > 0 ? e == C.CommonItemId.Coin ? l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, C.CommonItemId.Coin) : u.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.ToItemName())) : this.Recast()
                }, t.prototype.OnSaveButtonClick = function() {
                    null == d.DataCenter.Instance.GetTempData("LuckyCharmRecast_Save") ? l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmComposeQueryHint.Path, "luckyCharm_recastQuery".ToUILocale(), this.RequestToRecast.bind(this), null) : this.RequestToRecast()
                }, t.prototype.RequestToRecast = function() {
                    var e = this,
                        t = new h.Req_Item_LuckyCharmCastSave;
                    t.Sid = this._sid, d.RpcComponent.Instance.Call(t, function() {
                        u.UIUtlity.ShowFloatingHint("luckycharm_recastSaved".ToUILocale()), e.GetModel(), e.SetBottomButtons(), e.SetMiddleZone()
                    })
                }, t.prototype.OnRecastAgainButtonClick = function() {
                    var e = this,
                        t = this.GetNotEnoughIngredientId();
                    t > 0 ? u.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t.ToItemName())) : this.CheckHighestQualitySkill() ? u.UIUtlity.ShowHintPanel(null, "luckycharm_recastQuery".ToUILocale(), "cancel".ToUILocale(), function() {}, "luckycharm_recastIndeed".ToUILocale(), function() {
                        e.Recast()
                    }) : this.Recast()
                }, t.prototype.OnSetCustomSkillButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmSkillChooseHint.Path, this._model, this._luckycharmConfig.SelectSkillMaterials)
                }, t.prototype.OnIngredientAddButtonClick = function(e) {
                    Number.parseInt(e.name)
                }, t.prototype.RefreshPanel = function() {
                    this._model = d.DataCenter.Instance.GetDataById(h.LuckyCharmEquip_Model, this._model.Sid), this.DisPlay(!0)
                }, t.prototype.OnLuckyCharmSkillTouch = function(e) {
                    "ItemContainer0" != e.node.parent.name || e.GetSkillId() < 0 || l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmSkillTip.Path, e.GetSkillId(), e.node)
                }, t.prototype.OnQueryHintClose = function(e) {
                    e && d.DataCenter.Instance.SetTempData("LuckyCharmRecast_Save", 1)
                }, t.prototype.SetBottomButtons = function() {
                    var e = this._model.CastAttrs.length > 0;
                    this.RecastButton.node.active = !e, this.SaveButton.node.active = e, this.CantSaveNode.active = !e, this.RecastAgainButton.node.active = e
                }, t.prototype.GetModel = function() {
                    this._model = d.DataCenter.Instance.GetDataById(h.LuckyCharmEquip_Model, this._sid)
                }, t.prototype.GetNotEnoughIngredientId = function() {
                    for (var e = 0; e < this._recastCostItemIdArray.length; e++)
                        if (d.DataCenter.Instance.GetItemCount(this._recastCostItemIdArray[e]) < this._recastCostNumberArray[e]) return this._recastCostItemIdArray[e];
                    return -1
                }, t.prototype.CheckHighestQualitySkill = function() {
                    for (var e = 0; e < this._model.CastSkills.length; e++)
                        if (d.ConfigDataComponent.Instance.GetConfigById(p.LuckyCharmSkill_Config, this._model.CastSkills[e]).Quality == this._highestSkillQuality) return !0;
                    return !1
                }, t.prototype.Recast = function() {
                    var e = this,
                        t = new h.Req_Item_LuckyCharmCast;
                    t.Sid = this._sid, d.RpcComponent.Instance.Call(t, function() {
                        u.UIUtlity.ShowFloatingHint("luckycharm_recastSuccess".ToUILocale()), e.GetModel(), e.SetCostCurrency(), e.SetBottomButtons(), e.SetMiddleZone(), e.SetProgressBar()
                    })
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Label)], t.prototype, "RecastTip", void 0), i([P(cc.Label)], t.prototype, "BeforeRecastLabel", void 0), i([P(cc.Label)], t.prototype, "LuckyCharmNameLabel", void 0), i([P(cc.Label)], t.prototype, "AfterRecastLabel", void 0), i([P(cc.Button)], t.prototype, "RecastRuleButton", void 0), i([P(cc.Node)], t.prototype, "ItemContainer", void 0), i([P({
                    type: [cc.Label]
                })], t.prototype, "BasicAttrLabelArray", void 0), i([P({
                    type: [cc.Label]
                })], t.prototype, "LuckySkillLabelArray", void 0), i([P({
                    type: [cc.Sprite]
                })], t.prototype, "BeforeAttrIconArray", void 0), i([P({
                    type: [cc.Label]
                })], t.prototype, "BeforeAttrNameArray", void 0), i([P({
                    type: [cc.Label]
                })], t.prototype, "BeforeAttrDescArray", void 0), i([P({
                    type: [cc.Sprite]
                })], t.prototype, "AfterAttrIconArray", void 0), i([P({
                    type: [cc.Label]
                })], t.prototype, "AfterAttrNameArray", void 0), i([P({
                    type: [cc.Label]
                })], t.prototype, "AfterAttrDescArray", void 0), i([P({
                    type: [cc.Node]
                })], t.prototype, "BeforeSkillContainerArray", void 0), i([P({
                    type: [cc.Label]
                })], t.prototype, "BeforeSkillNameArray", void 0), i([P({
                    type: [cc.Node]
                })], t.prototype, "AfterSkillContainerArray", void 0), i([P({
                    type: [cc.Label]
                })], t.prototype, "AfterSkillNameArray", void 0), i([P(cc.Button)], t.prototype, "SkillPreviewButton", void 0), i([P(cc.Label)], t.prototype, "RecastProgressTipLabel", void 0), i([P(b.default)], t.prototype, "RecastProgress", void 0), i([P(cc.Label)], t.prototype, "RecastProgressValueLabel", void 0), i([P(cc.Sprite)], t.prototype, "RecastCurrencySprite", void 0), i([P(cc.Button)], t.prototype, "SetCustomSkillButton", void 0), i([P(sp.Skeleton)], t.prototype, "ChangeSkillSP", void 0), i([P({
                    type: [cc.Node]
                })], t.prototype, "CostCurrencyArray", void 0), i([P(cc.Button)], t.prototype, "RecastButton", void 0), i([P(cc.Button)], t.prototype, "SaveButton", void 0), i([P(cc.Node)], t.prototype, "CantSaveNode", void 0), i([P(cc.Button)], t.prototype, "RecastAgainButton", void 0), i([P(cc.Label)], t.prototype, "RecastButtonLabel", void 0), i([P(cc.Label)], t.prototype, "RecastAgainButtonLabel", void 0), i([P(cc.Label)], t.prototype, "SaveButtonLabel", void 0), i([P(cc.Label)], t.prototype, "CantSaveButtonLabel", void 0), i([P(cc.Node)], t.prototype, "MiddleZone", void 0), i([P(cc.Node)], t.prototype, "QuestionMarks", void 0), i([P(cc.Label)], t.prototype, "WantedButtonLabel", void 0), n = i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./LuckyCharmInfoPanel": "LuckyCharmInfoPanel",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmSkillChangeTip: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e7e9c6ewTtAS6mQ/ycr9PMy", "LuckyCharmSkillChangeTip");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./LuckyCharmSkillComponent"),
            l = e("../../Components/Components"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../Components/CurrencyBarItem"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip), t.TitleLabel = null, t.TipLabel = null, t.ConfirmLabel = null, t.SkillContainerArray = [], t.SkillNameArray = [], t.CurrencyBar = null, t.IngredientSprite = null, t.CostRichText = null, t.ConfirmButton = null, t._skillConfigArray = [], t._skillComponentArray = [], t._currencyBarArray = [], t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._skillConfigArray = t[0], this._currencyBarArray = t[1], this._costString = t[2], this._request = t[3]
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.TitleLabel.string = "hint".ToUILocale(), this.TipLabel.string = "luckycharm_changeSkillFinalQuery".ToUILocale(), this.ConfirmLabel.string = "ok".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    var e = this;
                    this._skillComponentArray = [], this.SkillContainerArray.forEach(function(t) {
                        var n = cc.instantiate(y.default.SkillPrefab);
                        n.setParent(t), e._skillComponentArray.push(n.getComponent(s.default))
                    })
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.VariedValueAssign()
                }, t.prototype.VariedValueAssign = function() {
                    for (var e = 0; e < this._skillConfigArray.length; e++) this._skillComponentArray[e].InitByConfig(this._skillConfigArray[e], !0, !0);
                    this.CurrencyBar.Init(this._currencyBarArray[0], !1, void 0, this._currencyBarArray[1]), this.CostRichText.string = this._costString, this.IngredientSprite.spriteFrame = y.default.IngredientSpriteFrame
                }, t.prototype.OnEvent = function() {
                    this.ConfirmButton.node.on("click", this.OnConfirmButtonClick, this)
                }, t.prototype.OnConfirmButtonClick = function() {
                    l.RpcComponent.Instance.Call(this._request, function() {
                        a.Game.EventDispatcher.Emit(g.EventKeys.EVENT_LUCKYCHARM_SKILL_CHANGE), c.UIUtlity.ShowFloatingHint("luckycharm_changeSkillSuccessful".ToUILocale()), a.UIManager.Instance.BackUIPanel(), a.UIManager.Instance.BackUIPanel(), a.UIManager.Instance.BackUIPanel()
                    })
                }, i([h(cc.Label)], t.prototype, "TitleLabel", void 0), i([h(cc.Label)], t.prototype, "TipLabel", void 0), i([h(cc.Label)], t.prototype, "ConfirmLabel", void 0), i([h({
                    type: [cc.Node]
                })], t.prototype, "SkillContainerArray", void 0), i([h({
                    type: [cc.Label]
                })], t.prototype, "SkillNameArray", void 0), i([h(u.default)], t.prototype, "CurrencyBar", void 0), i([h(cc.Sprite)], t.prototype, "IngredientSprite", void 0), i([h(cc.RichText)], t.prototype, "CostRichText", void 0), i([h(cc.Button)], t.prototype, "ConfirmButton", void 0), i([d], t)
            }(a.BaseUIPanel);
        n.default = f;
        var y = e("./LuckyCharmRecastPanel"),
            g = e("../../Auxiliary/EventKeys");
        cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "./LuckyCharmRecastPanel": "LuckyCharmRecastPanel",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmSkillChooseHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ae5a4GtPZ1GeoYL08aQj1WX", "LuckyCharmSkillChooseHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("./LuckyCharmSkillComponent"),
            y = e("../Components/ItemComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.TitleLabel = null, t.LuckyCharmNameLabel = null, t.LuckyCharmItemContainer = null, t.SkillZone = null, t.ChooseButtonLabelsArray = [], t.ChooseButtonsArray = [], t.LuckyCharmAtlas = null, t._skillConfigArray = [], t._fixedCurrencyBarLength = 257, t._skillZoneContainerName = "ItemContainer", t._skillZoneNameName = "Name", t._skillZoneDescName = "Desc", t.RED_COLOR = (new cc.Color).fromHEX("#FFE685"), t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._model = t[0], this._costData = t[1], this._itemConfig = d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._model.ItemId)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.TitleLabel.string = "luckycharm_skillChoose".ToUILocale(), this.ChooseButtonLabelsArray.forEach(function(e) {
                        e.string = "luckycharm_skillGoChoose".ToUILocale()
                    })
                }, t.prototype.FixedValueAssign = function() {
                    cc.instantiate(C.default.ItemPrefab).setParent(this.LuckyCharmItemContainer)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.VeriedValueAssign()
                }, t.prototype.VeriedValueAssign = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c, p, g;
                        return s(this, function() {
                            for (this.LuckyCharmNameLabel.node.color = h.UIUtlity.GetLabelColorByQuality(this._itemConfig.Quality), this.LuckyCharmNameLabel.string = this._model.ItemId.ToItemName(), this.LuckyCharmItemContainer.getComponentInChildren(y.ItemComponent).Init({
                                    ItemId: this._model.ItemId
                                }), l = 0; l < this._model.Skills.length; l++)(e = this.SkillZone.children[l]).active = !0, t = d.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmSkill_Config, this._model.Skills[l]), this._skillConfigArray[l] = t, (n = e.getChildByName(this._skillZoneContainerName).getComponentInChildren(f.default)) || ((o = cc.instantiate(C.default.SkillPrefab)).setParent(e.getChildByName(this._skillZoneContainerName)), n = o.getComponent(f.default)), n.InitById(this._model.Skills[l]), (r = e.getChildByName(this._skillZoneNameName)).color = h.UIUtlity.GetLabelColorByQuality(t.Quality), r.getComponent(cc.Label).string = d.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + this._model.Skills[l]), cc.find("SkillDescScrollView/view/Desc", e).getComponent(cc.RichText).string = d.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_desc_" + this._model.Skills[l]), i = cc.find("SkillTag", e).getComponent(cc.Sprite), null == t.Tag ? i.node.active = !1 : (i.spriteFrame = this.LuckyCharmAtlas.getSpriteFrame("tag" + t.Tag), a = cc.find("SkillTag/Label", e).getComponent(cc.Label), t.Tag >= 5 ? 6 == t.Tag && (a.node.color = this.RED_COLOR) : a.node.color = cc.Color.WHITE, a.string = ("skillTag_" + t.Tag).ToUILocale());
                            for (l = this._model.Skills.length; l < this.SkillZone.childrenCount; l++) this.SkillZone.children[l].active = !1;
                            return 0 == this._currencyId || 0 == this._currencyMax || (this._currencyId = this._costData[1].Items[0], this._currencyMax = this._costData[1].Items[1]), c = this._costData[0].Items[0], p = this._costData[0].Items[1], g = d.DataCenter.Instance.GetItemCount(c), this._isIngredientEnough = g >= p, this._isCurrencyEnough = d.DataCenter.Instance.GetItemCount(this._currencyId) >= this._currencyMax, this._costValue = p, [2]
                        })
                    })
                }, t.prototype.OnEvent = function() {
                    var e = this;
                    this.ChooseButtonsArray.forEach(function(t) {
                        t.node.on("click", e.OnChangeButtonClick, e)
                    })
                }, t.prototype.OnChangeButtonClick = function(e) {
                    var t, n, o = Number.parseInt(e.name),
                        r = this.GetAnotherSkill(this._skillConfigArray, o);
                    null == r ? (t = void 0, n = void 0) : (t = r.Id, n = r.Type);
                    var i = new p.Req_Item_LuckyCharmSelectSkill;
                    i.Sid = this._model.Sid, i.SkillIndex = o, l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyCharmSkillChooseViewHint.Path, this._skillConfigArray[o], this._itemConfig.Quality, this._costValue, this._isIngredientEnough, this._isCurrencyEnough, this._currencyId, t, n, this._currencyMax, i)
                }, t.prototype.GetAnotherSkill = function(e, t) {
                    for (var n = 0; n < e.length; n++)
                        if (n != t) return e[n]
                }, i([I(cc.Label)], t.prototype, "TitleLabel", void 0), i([I(cc.Label)], t.prototype, "LuckyCharmNameLabel", void 0), i([I(cc.Node)], t.prototype, "LuckyCharmItemContainer", void 0), i([I(cc.Node)], t.prototype, "SkillZone", void 0), i([I({
                    type: [cc.Label]
                })], t.prototype, "ChooseButtonLabelsArray", void 0), i([I({
                    type: [cc.Button]
                })], t.prototype, "ChooseButtonsArray", void 0), i([I(cc.SpriteAtlas)], t.prototype, "LuckyCharmAtlas", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _;
        var C = e("./LuckyCharmRecastPanel");
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./LuckyCharmRecastPanel": "LuckyCharmRecastPanel",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmSkillChooseViewHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a3066NOTExIY695fxwZa/og", "LuckyCharmSkillChooseViewHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../Components/CustomLayout"),
            c = e("../Components/CurrencyBarItem"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("./LuckyCharmSkillComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip), t.TitleLabel = null, t.TagBg = null, t.TagLabel = null, t.SkillItemContainer = null, t.SkillNameLabel = null, t.SkillDescRichText = null, t.Layout = null, t.CurrencyBar1 = null, t.CurrencyBar2 = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t.LuckyCharmAtlas = null, t._hasInitLayout = !1, t._isIngredientEnough = !1, t._isCurrencyEnough = !1, t._skillConfigArray = [], t._chosenIndex = 0, t.SKILL_TAG = [null, null, null, "discountBg_green", "discountBg_purple"], t.HIGH_SKILL_TAG = [null, null, null, null, null, "tag2", "tag1"], t.RED_COLOR = (new cc.Color).fromHEX("#FFE685"), t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.FixedValueAssign(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClick, this)
                }, t.prototype.MultiLanguageAssign = function() {
                    this.TitleLabel.string = "luckycharm_chooseSkill".ToUILocale(), this.ConfirmButtonLabel.string = "luckycharm_confirmToChange".ToUILocale()
                }, t.prototype.FixedValueAssign = function() {
                    cc.instantiate(_.default.SkillPrefab).setParent(this.SkillItemContainer), this._hasInitLayout || (this.Layout.Init(_.default.SkillPrefab), this._hasInitLayout = !0)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._skillConfig = t[0], this._itemQuality = t[1], this._costValue = t[2], this._isIngredientEnough = t[3], this._isCurrencyEnough = t[4], this._currencyId = t[5], this._anotherSkillId = t[6], this._anotherSkillType = t[7], this._currencyMax = t[8], this._request = t[9]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.GetSkillConfigArray(), this.VariedValueAssign(), this.RenderLayout()
                }, t.prototype.SetShownSkill = function(e) {
                    void 0 === e && (e = 0), this.SkillItemContainer.getComponentInChildren(f.default).InitByConfig(this._skillConfigArray[e]), this.SkillNameLabel.node.color = d.UIUtlity.GetLabelColorByQuality(this._skillConfigArray[e].Quality), this.SkillNameLabel.string = p.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + this._skillConfigArray[e].Id), this.SkillDescRichText.string = p.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_desc_" + this._skillConfigArray[e].Id), null == this._skillConfigArray[e].Tag ? this.TagBg.node.active = !1 : (this.TagBg.spriteFrame = this.LuckyCharmAtlas.getSpriteFrame("tag" + this._skillConfigArray[e].Tag), this._skillConfigArray[e].Tag >= 5 ? 6 == this._skillConfigArray[e].Tag && (this.TagLabel.node.color = this.RED_COLOR) : this.TagLabel.node.color = cc.Color.WHITE, this.TagLabel.string = ("skillTag_" + this._skillConfigArray[e].Tag).ToUILocale())
                }, t.prototype.GetSkillConfigArray = function() {
                    var e = this,
                        t = p.ConfigDataComponent.Instance.GetArrayConfig(u.LuckyCharmSkill_Config);
                    this._skillConfigArray = [], t.forEach(function(t) {
                        var n = e._itemQuality;
                        e._itemQuality > 6 && (n = 6), t.Quality == n && e._skillConfigArray.push(t)
                    })
                }, t.prototype.RenderLayout = function() {
                    this.Layout.RenderLayOut(this._skillConfigArray.length)
                }, t.prototype.VariedValueAssign = function() {
                    this.CurrencyBar1.Init(_.default.ChangeSkillIngredientId, !1, void 0, this._costValue), this.CurrencyBar2.Init(this._currencyId, !1, void 0, this._currencyMax), this._currentChosenSKillComponent = null
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnLayoutRefresh, this), a.Game.EventDispatcher.On(h.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnSkillItemTouch, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnLayoutRefresh), a.Game.EventDispatcher.Off(h.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnSkillItemTouch)
                }, t.prototype.OnLayoutRefresh = function(e, t) {
                    var n = this;
                    this.Layout == t && e.forEach(function(e, t) {
                        e.getComponent(f.default).InitByConfig(n._skillConfigArray[t], !0, !0), e.name = t.toString(), t == n._chosenIndex ? n.OnSkillItemTouch(e.getComponent(f.default)) : e.getComponent(f.default).SetSelectBorder(!1)
                    })
                }, t.prototype.OnConfirmButtonClick = function() {
                    null == this._currentChosenSKillComponent ? d.UIUtlity.ShowFloatingHint("luckycharm_pleaseChooseSkill".ToUILocale()) : this._isIngredientEnough ? this._isCurrencyEnough ? this._currentChosenSKillConfig.Id == this._skillConfig.Id ? d.UIUtlity.ShowFloatingHint("luckycharm_needDifferentSkill".ToUILocale()) : this._currentChosenSKillConfig.Type == this._anotherSkillType ? d.UIUtlity.ShowFloatingHint("luckycharm_skillSameType".ToUILocale()) : (this._request.SkillId = this._currentChosenSKillConfig.Id, this.GoNextPanel()) : a.UIManager.Instance.ShowUIPanel(s.PanelConfig.MallNewPanel.Path, [C.MallPageType.DiamondShop, C.GiftPackType.BuyDiamond]) : d.UIUtlity.ShowFloatingHint("luckycharm_cryticalNotEnough".ToUILocale())
                }, t.prototype.GoNextPanel = function() {
                    a.UIManager.Instance.ShowUIPanel(s.PanelConfig.LuckyCharmSkillChangeTip.Path, [this._skillConfig, this._currentChosenSKillConfig], [this._currencyId, this._currencyMax], this._costValue, this._request)
                }, t.prototype.OnSkillItemTouch = function(e) {
                    if ("content" == e.node.parent.name) {
                        if (this._currentChosenSKillComponent && e.node.name == this._chosenIndex.toString()) return e.SetSelectBorder(!0), void(this._currentChosenSKillComponent = e);
                        this._currentChosenSKillComponent && this._currentChosenSKillComponent.SetSelectBorder(!1), this._chosenIndex = Number.parseInt(e.node.name), this._currentChosenSKillConfig = this._skillConfigArray[this._chosenIndex], this._currentChosenSKillComponent = e, this._currentChosenSKillComponent.SetSelectBorder(!0), this.SetShownSkill(this._chosenIndex)
                    }
                }, i([m(cc.Label)], t.prototype, "TitleLabel", void 0), i([m(cc.Sprite)], t.prototype, "TagBg", void 0), i([m(cc.Label)], t.prototype, "TagLabel", void 0), i([m(cc.Node)], t.prototype, "SkillItemContainer", void 0), i([m(cc.Label)], t.prototype, "SkillNameLabel", void 0), i([m(cc.RichText)], t.prototype, "SkillDescRichText", void 0), i([m(l.default)], t.prototype, "Layout", void 0), i([m(c.default)], t.prototype, "CurrencyBar1", void 0), i([m(c.default)], t.prototype, "CurrencyBar2", void 0), i([m(cc.Button)], t.prototype, "ConfirmButton", void 0), i([m(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([m(cc.SpriteAtlas)], t.prototype, "LuckyCharmAtlas", void 0), i([g], t)
            }(a.BaseUIPanel);
        n.default = I;
        var _ = e("./LuckyCharmRecastPanel"),
            C = e("../../../ShareConsts/EnumType");
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "./LuckyCharmRecastPanel": "LuckyCharmRecastPanel",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmSkillComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cacdehWKbBHwLweHcIjwKy2", "LuckyCharmSkillComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagModeBg = null, t.Bg = null, t.Icon = null, t.Border = null, t.TagBg = null, t.TagLabel = null, t.Name = null, t.CheckMask = null, t.Desc = null, t.MaskSelect = null, t.StateSprite = null, t.LockMask = null, t.LuckyCharmAtlas = null, t.SelectBorder = null, t._loadedAssets = [], t._setScale = 1, t.RED_COLOR = (new cc.Color).fromHEX("#FFE685"), t
                }
                var n;
                return r(t, e), n = t, t.prototype.InitById = function(e, t, n) {
                    void 0 === t && (t = !1), void 0 === n && (n = !1), this._skillId = e, this._showTag = t, this.SetConfig(), this.Name.node.active = n, this.Init()
                }, t.prototype.InitByConfig = function(e, t, n) {
                    void 0 === t && (t = !1), void 0 === n && (n = !1), this._config = e, this._skillId = e.Id, this._showTag = t, this.Name.node.active = n, this.Init()
                }, t.prototype.Init = function() {
                    this.Desc.node.active = !1, this.LockMask.active = !1, this.SetIcon(), this.SetBorderAndTag(), this.SetName(), this.SetCheckMask(!1)
                }, t.prototype.SetNodeScale = function(e) {
                    this._setScale = e
                }, t.prototype.InitLock = function() {
                    this.TagBg.node.active = !1, this.Desc.node.active = !1, this.Icon.node.active = !1, this.LockMask.active = !0, this.StateSprite.node.active = !0, this.StateSprite.node.setContentSize(89 / this._setScale, 100 / this._setScale), this.Bg.spriteFrame = c.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("hero_bg_1"), this.StateSprite.spriteFrame = c.UIUtlity.COMMON_ATLAS5.getSpriteFrame(n.LockedPngName), this.Border.spriteFrame = c.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(n.DefaultBorderName), this.SetCheckMask(!0), this.SetMaskSelect(!1), this._skillId = -1
                }, t.prototype.InitQuestionMark = function() {
                    this.TagBg.node.active = !1, this.Desc.node.active = !1, this.Icon.node.active = !1, this.LockMask.active = !1, this.StateSprite.node.active = !0, this.StateSprite.node.setContentSize(90 / this._setScale, 110 / this._setScale), this.Bg.spriteFrame = c.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(n.DefaultBgName), this.StateSprite.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame(n.QuestionMarkName), this.Border.spriteFrame = c.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(n.DefaultBorderName), this.SetCheckMask(!1), this._skillId = -1
                }, t.prototype.InitAdd = function() {
                    this.TagBg.node.active = !1, this.Desc.node.active = !1, this.Icon.node.active = !1, this.LockMask.active = !1, this.StateSprite.node.active = !0, this.StateSprite.node.setContentSize(90 / this._setScale, 90 / this._setScale), this.Bg.spriteFrame = c.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(n.DefaultBgName), this.StateSprite.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame(n.AddkName), this.Border.spriteFrame = c.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(n.DefaultBorderName), this.SetCheckMask(!1), this._skillId = -1
                }, t.prototype.SetCheckMask = function(e) {
                    this.CheckMask.active = e
                }, t.prototype.SetSelectBorder = function(e) {
                    this.SelectBorder.active = e
                }, t.prototype.SetMaskSelect = function(e) {
                    this.MaskSelect.active = e
                }, t.prototype.GetSkillId = function() {
                    return this._skillId
                }, t.prototype.SetConfig = function() {
                    this._config = p.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmSkill_Config, this._skillId)
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.StateSprite.node.active = !1, this.Icon.node.active = !0, this.Icon.node.setContentSize(175, 175), [4, l.AssetsManager.Instance.LoadAsset("LuckyCharmSkillIcon/" + this._skillId, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid && e.name == "LuckyCharmSkillIcon/" + this._skillId ? (this._loadedAssets.push(e), this.Icon.spriteFrame = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetBorderAndTag = function() {
                    var e = this,
                        t = c.UIUtlity.GetItemBorderByQuality(this._config.Quality);
                    Promise.all([t]).then(function(t) {
                        e.Border.spriteFrame = t[0]
                    }), this._showTag && null != this._config.Tag ? (this.TagBg.spriteFrame = this.LuckyCharmAtlas.getSpriteFrame("tag" + this._config.Tag), this._config.Tag >= 5 ? 6 == this._config.Tag && (this.TagLabel.node.color = this.RED_COLOR) : this.TagLabel.node.color = cc.Color.WHITE, this.TagLabel.string = ("skillTag_" + this._config.Tag).ToUILocale()) : this.TagBg.node.active = !1, this._showTag && (this.TagModeBg.node.active = !0, this.Bg.node.scale = .64, this.Icon.node.scale = .64, this.Border.node.scale = .64, this.Bg.node.y = 32, this.Icon.node.y = 32, this.Border.node.y = 32, this._config.Tag && 5 == this._config.Tag ? this.TagModeBg.spriteFrame = this.LuckyCharmAtlas.getSpriteFrame("Edge2") : this._config.Tag && 6 == this._config.Tag ? this.TagModeBg.spriteFrame = this.LuckyCharmAtlas.getSpriteFrame("Edge3") : this.TagModeBg.spriteFrame = this.LuckyCharmAtlas.getSpriteFrame("Edge1"))
                }, t.prototype.SetName = function() {
                    this.Name.string = p.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + this._skillId), this.Name.node.color = c.UIUtlity.GetLabelColorByQuality(this._config.Quality)
                }, t.prototype.SetDesc = function(e, t) {
                    this.Desc.node.active = !0, this.Desc.string = e, t && (this.Desc.fontSize = Math.round(t / this._setScale))
                }, t.prototype.onEnable = function() {
                    this.Bg.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this.TagModeBg.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
                }, t.prototype.onDisable = function() {
                    this.Bg.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this.TagModeBg.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
                }, t.prototype.OnTouchEnd = function() {
                    d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this)
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) d.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = null
                }, t.LuckyCharmSkillComponentPath = "LuckyCharms/Components/LuckyCharmSkillComponent", t.LockedPngName = "icon_lock", t.DefaultBorderName = "hero_border_1", t.DefaultBgName = "hero_bg_1", t.QuestionMarkName = "question_mark1", t.AddkName = "add_golden", i([g(cc.Sprite)], t.prototype, "TagModeBg", void 0), i([g(cc.Sprite)], t.prototype, "Bg", void 0), i([g(cc.Sprite)], t.prototype, "Icon", void 0), i([g(cc.Sprite)], t.prototype, "Border", void 0), i([g(cc.Sprite)], t.prototype, "TagBg", void 0), i([g(cc.Label)], t.prototype, "TagLabel", void 0), i([g(cc.Label)], t.prototype, "Name", void 0), i([g(cc.Node)], t.prototype, "CheckMask", void 0), i([g(cc.Label)], t.prototype, "Desc", void 0), i([g(cc.Node)], t.prototype, "MaskSelect", void 0), i([g(cc.Sprite)], t.prototype, "StateSprite", void 0), i([g(cc.Node)], t.prototype, "LockMask", void 0), i([g(cc.SpriteAtlas)], t.prototype, "LuckyCharmAtlas", void 0), i([g(cc.Node)], t.prototype, "SelectBorder", void 0), n = i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    LuckyCharmSkillDescItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "108f6WJc4lJiLI4zLMIRR4p", "LuckyCharmSkillDescItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("./LuckyCharmSkillComponent"),
            u = e("../Auxiliary/UIUtlity"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SkillNode = null, t.SkillName = null, t.SkillDesc = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.SkillName.string = l.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + e.Id), this.SkillDesc.string = l.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_desc_" + e.Id), this.SkillName.node.color = u.UIUtlity.GetLabelColorByQuality(e.Quality), this._skillNode || (this._skillNode = cc.instantiate(t), this._skillNode.parent = this.SkillNode, this._skillNode.y = -26), this._skillNode.getComponent(c.default).InitByConfig(e), [2]
                        })
                    })
                }, i([h(cc.Node)], t.prototype, "SkillNode", void 0), i([h(cc.Label)], t.prototype, "SkillName", void 0), i([h(cc.Label)], t.prototype, "SkillDesc", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmSkillLevelUpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7fdf7oNhMdLI6qgX7Iy48gN", "LuckyCharmSkillLevelUpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./LuckyCharmSkillComponent"),
            f = e("./LuckyCharmSkillDescItem"),
            y = e("../../Components/Components"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../Components/ItemCountComponent"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.SkillUpLabel = null, t.UpNode = null, t.CurLevelComp = null, t.NextLevelComp = null, t.MaxLevelComp = null, t.UpConsumeLabel = null, t.ConsumeNode = null, t.MaxLevelConsumeLabel = null, t.ForgetButton = null, t.ForgetButtonLabel = null, t.PackButton = null, t.PackButtonLabel = null, t.LevelUpButton = null, t.LevelUpButtonLabel = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.default.LuckyCharmSkillComponentPath, cc.Prefab), this.LoadDynamicAsset("ItemsComponent/ItemCountComponent")]).then(function(e) {
                                        t._luckyCharmSkillPrefab = e[0], t._itemCountPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "luckycharm_skill_levelUP".ToUILocale(), this.SkillUpLabel.string = "luckycharm_skill_levelUP".ToUILocale(), this.UpConsumeLabel.string = "luckycharm_up_consume".ToUILocale(), this.MaxLevelConsumeLabel.string = "common_max_level".ToUILocale(), this.ForgetButtonLabel.string = "luckycharm_forget_skill".ToUILocale(), this.PackButtonLabel.string = "luckycharm_pack_skil".ToUILocale(), this.LevelUpButtonLabel.string = "luckycharm_up_skill".ToUILocale(), this.ForgetButton.node.on("click", this.ClickForgetButton, this), this.PackButton.node.on("click", this.ClickPackButton, this), this.LevelUpButton.node.on("click", this.ClickLevelUpButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._heroSid = t[0], this._slotId = t[1], this.SetLuckyCharmSkillData()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetSkillUpNode(), this.SetSkillUpConsumeNode(), this.BindReddot()
                }, t.prototype.SetLuckyCharmSkillData = function() {
                    var e = this;
                    this._skillData = {}, p.ConfigDataComponent.Instance.GetArrayConfig(u.LuckyCharmSkill_Config).forEach(function(t) {
                        if (e._skillData[t.Type]) e._skillData[t.Type][t.Quality] || (e._skillData[t.Type][t.Quality] = t);
                        else {
                            var n = {};
                            n[t.Quality] = t, e._skillData[t.Type] = n
                        }
                    })
                }, t.prototype.SetSkillUpNode = function() {
                    var e = p.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid);
                    if (1 == this._slotId ? this._upSkillId = e.LuckSkill1 : this._upSkillId = e.LuckSkill2, this._config = p.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmSkill_Config, this._upSkillId), this._upSkillId) {
                        var t = p.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmSkill_Config, this._upSkillId);
                        this._skillData[t.Type] && this._skillData[t.Type][t.Quality + 1] ? (this._canLevelUp = !0, this.UpNode.active = !0, this.MaxLevelComp.node.active = !1, this.CurLevelComp.Init(this._skillData[t.Type][t.Quality], this._luckyCharmSkillPrefab), this.NextLevelComp.Init(this._skillData[t.Type][t.Quality + 1], this._luckyCharmSkillPrefab)) : (this._canLevelUp = !1, this.UpNode.active = !1, this.MaxLevelComp.node.active = !0, this.MaxLevelComp.Init(this._skillData[t.Type][t.Quality], this._luckyCharmSkillPrefab))
                    } else this._canLevelUp = !1
                }, t.prototype.SetSkillUpConsumeNode = function() {
                    var e = this;
                    if (this.ConsumeNode.active = this._canLevelUp, this.MaxLevelConsumeLabel.node.parent.active = !this._canLevelUp, this._canLevelUp) {
                        var t = this.GetConsumeData();
                        this._itemNodes.forEach(function(e) {
                            e.active = !1
                        }), t.forEach(function(n, o) {
                            if (!e._itemNodes[o]) {
                                var r = cc.instantiate(e._itemCountPrefab);
                                r.parent = e.ConsumeNode, e._itemNodes[o] = r
                            }
                            e._itemNodes[o].active = !0;
                            var i = e._itemNodes[o].getComponent(_.default),
                                a = y.DataCenter.Instance.GetItemCount(n[0]),
                                s = (a = a > n[1] ? t[o][1] : a) >= n[1] ? "#ffffff" : "#ff5b5b",
                                l = "<outline color=#202434 width=3><color={2}>{0}</c><color=#ffffff>/{1}</c></o>".Fmt(a, n[1], s);
                            i.Init(n[0], l, .7, -16), i.SetCountBgInfo(-80, 0, 1, 218, 44), i.SetAddButton(!0), i.SetCountInfo(26)
                        })
                    }
                }, t.prototype.BindReddot = function() {
                    I.RedDotManager.Instance.BindInstance(this.LevelUpButton.node, I.RedDotManager.Instance.InstanceRedDot.HeroLuckycharmSkillLevelUp, {
                        Value1: this._heroSid,
                        extra: this._slotId
                    })
                }, t.prototype.GetConsumeData = function() {
                    var e = this,
                        t = [];
                    return this._skillData[this._config.Type][this._config.Quality + 1].UnderstandMaterials.forEach(function(n) {
                        var o = e._config.UnderstandMaterials.find(function(e) {
                                return e.Items[0] == n.Items[0]
                            }),
                            r = [];
                        o ? (r[0] = n.Items[0], r[1] = n.Items[1] - o.Items[1]) : (r[0] = n.Items[0], r[1] = n.Items[1]), t.push(r)
                    }), t
                }, t.prototype.ClickForgetButton = function() {
                    var e = this,
                        t = this.GetDecomposeLabe();
                    m.UIUtlity.ShowHintPanel(null, "luckycharm_forget_back".ToUILocale().Fmt(t), "", null, "", function() {
                        var t = new c.Req_Hero_LuckSkillClear;
                        t.Sid = e._heroSid, t.Index = e._slotId, t.Type = 1, p.RpcComponent.Instance.Call(t, function(t) {
                            m.UIUtlity.ShwDisplayRewardPanel(t.Rewards), g.UIManager.Instance.QuitPanelStack(e)
                        })
                    })
                }, t.prototype.ClickPackButton = function() {
                    var e = this,
                        t = this.GetPackConfig(),
                        n = this.GetPackLabels(t),
                        o = p.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + this._config.Id);
                    m.UIUtlity.ShowHintPanel(null, "luckycharm_pack_study".ToUILocale().Fmt(o, n), "", null, "", function() {
                        if (e.ChekcPackConsume(t)) {
                            var n = new c.Req_Hero_LuckSkillClear;
                            n.Sid = e._heroSid, n.Index = e._slotId, n.Type = 2, p.RpcComponent.Instance.Call(n, function(t) {
                                m.UIUtlity.ShwDisplayRewardPanel(t.Rewards), g.UIManager.Instance.QuitPanelStack(e)
                            })
                        }
                    })
                }, t.prototype.ClickLevelUpButton = function() {
                    var e = this;
                    if (this._canLevelUp) {
                        for (var t = this.GetConsumeData(), n = 0; n < t.length; n++)
                            if (!y.DataCenter.Instance.IsItemEnough(t[n][0], t[n][1])) return m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t[n][0].ToItemName())), void l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemGetWayPanel.Path, t[n][0]);
                        var o = p.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmSkill_Config, this._upSkillId),
                            r = this._skillData[o.Type][o.Quality + 1].Id,
                            i = new c.Req_Hero_LuckSkillStudy;
                        i.Sid = this._heroSid, i.Index = this._slotId, i.Type = 1, i.Param = r, p.RpcComponent.Instance.Call(i, function() {
                            m.UIUtlity.ShowFloatingHint("luckycharm_levelUp_success".ToUILocale()), g.UIManager.Instance.QuitPanelStack(e)
                        })
                    } else m.UIUtlity.ShowFloatingHint("common_max_level".ToUILocale())
                }, t.prototype.GetDecomposeLabe = function() {
                    var e = this,
                        t = "";
                    return this._config && this._config.DecomposeItems.forEach(function(n, o) {
                        o != e._config.DecomposeItems.length - 1 ? t += n.Items[0].ToItemName() + "<color=#568f00>x" + n.Items[1] + "\u3001</c>" : t += n.Items[0].ToItemName() + "<color=#568f00>x" + n.Items[1] + "</c>"
                    }), t
                }, t.prototype.GetPackConfig = function() {
                    var e = this;
                    return p.ConfigDataComponent.Instance.GetArrayConfig(u.HeroLuckyCharm_Config).find(function(t) {
                        return t.SkillId == e._config.Id
                    })
                }, t.prototype.ChekcPackConsume = function(e) {
                    if (!e) return !1;
                    for (var t = 0; t < e.Packing.length; t++)
                        if (!y.DataCenter.Instance.IsItemEnough(e.Packing[t].Items[0], e.Packing[t].Items[1])) return m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.Packing[t].Items[0].ToItemName())), l.UIManager.Instance.ShowUIPanel(d.PanelConfig.ItemGetWayPanel.Path, e.Packing[t].Items[0]), !1;
                    return !0
                }, t.prototype.GetPackLabels = function(e) {
                    var t = "";
                    return e && e.Packing.forEach(function(n, o) {
                        o != e.Packing.length - 1 ? t += "\u3010" + n.Items[0].ToItemName() + "\u3011<color=#568f00>x" + n.Items[1] + "</c>\u3001" : t += "\u3010" + n.Items[0].ToItemName() + "\u3011<color=#568f00>x" + n.Items[1] + "</c>"
                    }), t
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Label)], t.prototype, "SkillUpLabel", void 0), i([b(cc.Node)], t.prototype, "UpNode", void 0), i([b(f.default)], t.prototype, "CurLevelComp", void 0), i([b(f.default)], t.prototype, "NextLevelComp", void 0), i([b(f.default)], t.prototype, "MaxLevelComp", void 0), i([b(cc.Label)], t.prototype, "UpConsumeLabel", void 0), i([b(cc.Node)], t.prototype, "ConsumeNode", void 0), i([b(cc.Label)], t.prototype, "MaxLevelConsumeLabel", void 0), i([b(cc.Button)], t.prototype, "ForgetButton", void 0), i([b(cc.Label)], t.prototype, "ForgetButtonLabel", void 0), i([b(cc.Button)], t.prototype, "PackButton", void 0), i([b(cc.Label)], t.prototype, "PackButtonLabel", void 0), i([b(cc.Button)], t.prototype, "LevelUpButton", void 0), i([b(cc.Label)], t.prototype, "LevelUpButtonLabel", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemCountComponent": "ItemCountComponent",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent",
        "./LuckyCharmSkillDescItem": "LuckyCharmSkillDescItem"
    }],
    LuckyCharmSkillTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ff1ed/I8WZA7LjE/F+l/qEL", "LuckyCharmSkillTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("./LuckyCharmSkillComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.SkillName = null, t.SkillHeadBottom = null, t.SkillTypeTag = null, t.SkillTypeValue = null, t.SkillDescription = null, t.SkillCoolDown = null, t.SkillItemContainer = null, t.MainNode = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(d.default.LuckyCharmSkillComponentPath, cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                        n._skillItemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._skillId = t[0], this._clickNode = t[1], this._skillConfig = c.ConfigDataComponent.Instance.GetConfigById(u.LuckyCharmSkill_Config, this._skillId)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetSkillItem(), this.SetSkillName(), this.SetSkillType(), this.SetSkillDescription(), this.SetSkillCoolDown(), this.RepositionPanel()
                }, t.prototype.SetSkillItem = function() {
                    var e = cc.instantiate(this._skillItemPrefab);
                    e.setParent(this.SkillItemContainer), e.getComponent(d.default).InitById(this._skillId)
                }, t.prototype.SetSkillName = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = p.UIUtlity.GetLabelColorByQuality(this._skillConfig.Quality), t = "<outline width = 3 color = #000000><color = " + e.toHEX("rrggbb") + ">" + c.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + this._skillId) + "</c></outline>", this.SkillName.string = t, null != this._atlas ? [3, 2] : (n = this, [4, this.LoadDynamicAsset("ItemTipsPanel/Atlas/ItemTipsPanel", cc.SpriteAtlas)]);
                                case 1:
                                    n._atlas = o.sent(), o.label = 2;
                                case 2:
                                    return this.isValid ? (this.SkillHeadBottom.spriteFrame = this._atlas.getSpriteFrame("detail_quality_" + this._skillConfig.Quality), [2]) : (l.AssetsManager.Instance.UnloadAsset(this._atlas), [2])
                            }
                        })
                    })
                }, t.prototype.SetSkillDescription = function() {
                    var e = c.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_desc_" + this._skillId);
                    this.SkillDescription.string = "<outline width=3 color=#000000>" + e + "</outline>"
                }, t.prototype.SetSkillType = function() {
                    this.SkillTypeTag.string = "equip_type_tag".ToUILocale(), this.SkillTypeValue.string = "passiveSkill".ToUILocale()
                }, t.prototype.SetSkillCoolDown = function() {
                    this.SkillCoolDown.string = "<outline width=3 color=#000000>" + "noCoolDown".ToUILocale() + "</outline>"
                }, t.prototype.RepositionPanel = function() {
                    if (this.MainNode.x = 0, this.MainNode.y = 0, null != this._clickNode) {
                        var e = this._clickNode.getParent().convertToWorldSpaceAR(this._clickNode.getPosition()),
                            t = this.MainNode.convertToNodeSpaceAR(e),
                            n = this.GetRealitySize(this._clickNode);
                        t.x += (this.MainNode.width - n[0]) / 2, t.y += n[1] / 2 + this.MainNode.height;
                        var o = (p.UIUtlity.DESIGN_SCREEN_WIDTH - this.MainNode.width) / 2,
                            r = -1 * o,
                            i = p.UIUtlity.DESIGN_SCREEN_HEIGHT / 2,
                            a = -1 * (p.UIUtlity.DESIGN_SCREEN_HEIGHT / 2 - this.MainNode.height);
                        t.x > o - 30 ? t.x = o - 30 : t.x < r + 30 && (t.x = r + 30), t.y > i - 30 ? t.y = i - 30 : t.y < a + 30 && (t.y = a + 30), this.MainNode.setPosition(t)
                    }
                }, t.prototype.GetRealitySize = function(e) {
                    for (var t = e.width, n = e.height; null != e.parent;) t *= e.scaleX, n *= e.scaleY, e = e.parent;
                    return [t, n]
                }, i([y(cc.RichText)], t.prototype, "SkillName", void 0), i([y(cc.Sprite)], t.prototype, "SkillHeadBottom", void 0), i([y(cc.Label)], t.prototype, "SkillTypeTag", void 0), i([y(cc.Label)], t.prototype, "SkillTypeValue", void 0), i([y(cc.RichText)], t.prototype, "SkillDescription", void 0), i([y(cc.RichText)], t.prototype, "SkillCoolDown", void 0), i([y(cc.Node)], t.prototype, "SkillItemContainer", void 0), i([y(cc.Node)], t.prototype, "MainNode", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmSkillViewHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "66b82S+BJtFWq14mXp3TtHm", "LuckyCharmSkillViewHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/CustomToggle"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = e("../Components/CustomLayout"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("./LuckyCharmSkillComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Tip), t.CustomToggleArray = [], t.TitleLabel = null, t.ViewCustomLayout = null, t._isFirstInitLayout = !0, t._skillIdArraysArray = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.GetSkills(), this.OnEvent()
                }, t.prototype.MultiLanguageAssign = function() {
                    this.TitleLabel.string = "luckycharm_skillPreviewTitle".ToUILocale();
                    for (var e = 0; e < this.CustomToggleArray.length; e++) this.CustomToggleArray[e].Init(("LuckCharmSkillLevel" + (e + 1)).ToUILocale())
                }, t.prototype.GetSkills = function() {
                    var e = this;
                    p.ConfigDataComponent.Instance.GetArrayConfig(u.LuckyCharmSkill_Config).forEach(function(t) {
                        e._skillIdArraysArray[t.Quality] || (e._skillIdArraysArray[t.Quality] = []), e._skillIdArraysArray[t.Quality].push(t.Id)
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.PreSet(), this.InitCustomLayout()
                }, t.prototype.PreSet = function() {
                    this.CustomToggleArray[0].isChecked = !0, this._currentChosenQuality = 3
                }, t.prototype.InitCustomLayout = function() {
                    this._isFirstInitLayout && (this.ViewCustomLayout.Init(I.default.SkillPrefab), this._isFirstInitLayout = !1), this.RenderLayout()
                }, t.prototype.RenderLayout = function() {
                    this.ViewCustomLayout.RenderLayOut(this._skillIdArraysArray[this._currentChosenQuality].length)
                }, t.prototype.OnEvent = function() {
                    var e = this;
                    this.CustomToggleArray.forEach(function(t) {
                        t.node.on("toggle", e.OnToggleSwitch, e)
                    })
                }, t.prototype.onEnable = function() {
                    s.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), s.Game.EventDispatcher.On(d.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnSkillTouch, this)
                }, t.prototype.onDisable = function() {
                    s.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh), s.Game.EventDispatcher.Off(d.EventKeys.EVENT_LUCKYCHARM_SKILL_TOUCH, this.OnSkillTouch)
                }, t.prototype.OnToggleSwitch = function(e) {
                    if (e.isChecked) {
                        var t = Number.parseInt(e.name);
                        this._currentChosenQuality != t && (this._currentChosenQuality = t, this.ViewCustomLayout.ScrollView.stopAutoScroll(), this.RenderLayout())
                    }
                }, t.prototype.OnCustomLayoutRefresh = function(e) {
                    var t = this;
                    e.forEach(function(e, n) {
                        var o = t._skillIdArraysArray[t._currentChosenQuality][n];
                        e.getComponent(h.default).InitById(o, !0, !0), e.name = o.toString()
                    })
                }, t.prototype.OnSkillTouch = function(e) {
                    "content" == e.node.parent.name && s.UIManager.Instance.ShowUIPanel(l.PanelConfig.LuckyCharmSkillTip.Path, Number.parseInt(e.name), e.node)
                }, i([g({
                    type: [a.default]
                })], t.prototype, "CustomToggleArray", void 0), i([g(cc.Label)], t.prototype, "TitleLabel", void 0), i([g(c.default)], t.prototype, "ViewCustomLayout", void 0), i([y], t)
            }(s.BaseUIPanel);
        n.default = m;
        var I = e("./LuckyCharmRecastPanel");
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./LuckyCharmRecastPanel": "LuckyCharmRecastPanel",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmStarInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b457cNUp0FPzJSar9sLGgqD", "LuckyCharmStarInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/Components"),
            f = e("../Panel/LuckyCharmInfoPanel"),
            y = e("./ItemComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.StarLevelLabel = null, t.StarUnlockEffectRichText = null, t._itemPrefab = null, t._starLevel = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._starLevel = e, this.LoadIcon(), this.StarLevelLabel.string = "LuckyCharm_StarLevelName".ToUILocale().Fmt(this._starLevel), this.SetUnlockEffectView()
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return (t = cc.instantiate(this._itemPrefab)).getComponent(y.ItemComponent).Init({
                                        ItemId: f.default.OrigionLuckyCharmVirtualItemId,
                                        StarLevel: this._starLevel
                                    }, y.ItemComponentType.ItemWithStar), this.ItemContainer.addChild(t), [2]
                            }
                        })
                    })
                }, t.prototype.SetUnlockEffectView = function() {
                    for (var e = "", t = h.ConfigDataComponent.Instance.GetConfigById(l.LuckyCharmStar_Config, 100 * u.CommonItemId.PrimordialLuckyCharm + this._starLevel), n = 0; n < t.Attrs.length; n++) {
                        var o = t.Attrs[n],
                            r = p.default.GetHeroAttribute(o.Items[0], o.Items[1], !0);
                        e += "<color = 624e3c>" + r.Name + ":</>", e += "<color = eb6100>" + r.Value + "</> "
                    }
                    t.Skills && t.Skills.length > 0 && (h.ConfigDataComponent.Instance.GetConfigById(l.LuckyCharmStarSkill_Config, t.Skills[0]).Type > u.LuckyCharmStarSkillType.Yang ? e += "<br/><color = 624e3c>" + "LuckyCharm_OrigionSkillUnlock".ToUILocale().Fmt() + "</>" : e += "<br/><color = 624e3c>" + "LuckyCharm_CombineSkillUnlock".ToUILocale().Fmt() + "</>"), t.EntranceSkill && t.EntranceSkill.length > 0 && (e += "<br/><color = 624e3c>" + "LuckyCharm_EnteredSkillUnlock".ToUILocale().Fmt() + "</><br/>"), this.StarUnlockEffectRichText.string = e
                }, t.prototype.onDestroy = function() {
                    this._itemPrefab && c.AssetsManager.Instance.UnloadAsset(this._itemPrefab)
                }, i([I(cc.Node)], t.prototype, "ItemContainer", void 0), i([I(cc.Label)], t.prototype, "StarLevelLabel", void 0), i([I(cc.RichText)], t.prototype, "StarUnlockEffectRichText", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Panel/LuckyCharmInfoPanel": "LuckyCharmInfoPanel",
        "./ItemComponent": "ItemComponent"
    }],
    LuckyCharmTabComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e8a8fTPENNJgLlIXjbb4k9d", "LuckyCharmTabComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TabLabel = null, t.Line = null, t.CheckNode = null, t._index = 0, t._color6EEEA7 = new cc.Color(110, 238, 167), t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnClickTab, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnClickTab, this)
                }, t.prototype.InitUI = function(e, t, n, o) {
                    this._index = t, this.TabLabel.string = n, this.TabLabel.node.color = e == t ? this._color6EEEA7 : cc.Color.WHITE, this.Line.active = t < o - 1, this.CheckNode.active = e == t
                }, t.prototype.SetCheck = function(e) {
                    this.CheckNode.active = e, this.TabLabel.node.color = e ? this._color6EEEA7 : cc.Color.WHITE
                }, t.prototype.OnClickTab = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this._index)
                }, i([u(cc.Label)], t.prototype, "TabLabel", void 0), i([u(cc.Node)], t.prototype, "Line", void 0), i([u(cc.Node)], t.prototype, "CheckNode", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    LuckyCharmTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e82b1wuG95L4bpDyEbvGFrv", "LuckyCharmTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/ConfigData/ConfigDataComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./LuckyCharmSkillComponent"),
            m = e("../Components/ItemClickComponent"),
            I = e("../../Components/DataCenter"),
            _ = e("../Components/TipsLocationComponent"),
            C = e("./LuckyCharmInfoPanel"),
            v = e("../../../ShareConsts/EnumType"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new h.UIPanelType(h.UINodeType.Tip, !1), t.MaskNode = null, t.LuckyCharmNameLabel = null, t.TypeLabel = null, t.TypeValue = null, t.LuckyCharmItemContainer = null, t.TitleBGSprite = null, t.AttrZone = null, t.BasicAttrLabel = null, t.AttrNodesArray = [], t.OrigionAttrZone = null, t.OrigionAttrLine = null, t.OrigionBasicAttrLabel = null, t.OrigionAttrNodesArray = [], t.SkillZone = null, t.SkillLine = null, t.SpecialLine = null, t.LuckyCharmSkillLabel = null, t.SkillNodesArray = [], t.OrigionSkillZone = null, t.OrigionSkillLine = null, t.OrigionBasicSkillLabel = null, t.OrigionSkillNodesArray = [], t.SpecialZone = null, t.DetailLabel = null, t.MainNode = null, t.Mode0NodesArray = [], t.Mode1NodesArray = [], t.Mode1AttrDesc = null, t.Mode1SkillDesc = null, t.LocationComponent = null, t._bgNamePrefix = "detail_quality_", t._attrIconName = "Icon", t._attrDescName = "Layout/AttrName", t._attrDescValue = "Layout/AttrValue", t._skillItemContainerName = "ItemContainer", t._skillNameNodeName = "Name", t._skillDescNodeName = "ScrollView/view/Desc", t._skillComponents = [], t._modeNodeArray = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("ItemTipsPanel/Atlas/ItemTipsPanel", cc.SpriteAtlas), n = this.LoadDynamicAsset(f.BundlePath.ItemComponent), o = this.LoadDynamicAsset(g.default.LuckyCharmSkillComponentPath), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemTipsAtlas = e[0], r._itemPrefab = e[1], r._skillItemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.MultiLanguageAssign(), this.SetItem(), this.OrigionSkillNodesArray.forEach(function(e, n) {
                        e.name = n.toString(), e.on(cc.Node.EventType.TOUCH_END, t.OnOrigionalSkillItemTouchEnd, t)
                    }), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.SetItem = function() {
                    var e = this,
                        t = cc.instantiate(this._itemPrefab);
                    t.setParent(this.LuckyCharmItemContainer), t.getComponent(m.default).enabled = !1, this.SkillNodesArray.forEach(function(t) {
                        cc.instantiate(e._skillItemPrefab).setParent(t.getChildByName(e._skillItemContainerName))
                    }), this._mode = 0, this._modeNodeArray[0] = this.Mode0NodesArray, this._modeNodeArray[1] = this.Mode1NodesArray
                }, t.prototype.MultiLanguageAssign = function() {
                    this.TypeLabel.string = "equip_type_tag".ToUILocale(), this.TypeValue.string = "luckycharm".ToUILocale(), this.BasicAttrLabel.string = "equip_base_attr".ToUILocale(), this.LuckyCharmSkillLabel.string = "luckycharm_skill".ToUILocale(), this.OrigionBasicAttrLabel.string = "LuckyCharm_OrigionBaseAttr".ToUILocale(), this.OrigionBasicSkillLabel.string = "LuckyCharm_OrigionSkillTitle".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), t[0] instanceof u.LuckyCharmEquip_Model ? this._luckycharmModel = t[0] : "number" == typeof t[0] && (this._luckycharmModel = I.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, t[0])), this._clickNode = t[1], t[2] ? this._mode = t[2] : this._mode = 0, this.SetMode(), this._itemId = this._luckycharmModel.ItemId, this._itemConfig = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, this._itemId), this._luckyCharmEquipConfig = p.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmEquip_Config, this._itemId)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.node.opacity = 0, this.SetTitle(), this.SetAttribute(), this.SetOrigionAttribute(), this.SetSkill(), this.SetOrigionSkill(), this.SetSpecial(), this.SetDetail(), y.default.CallBackAfterFrames(this.LocationShow.bind(this), 5, this)
                }, t.prototype.SetTitle = function() {
                    this.LuckyCharmItemContainer.getComponentInChildren(l.ItemComponent).Init({
                        ItemId: this._itemId
                    }), this.LuckyCharmNameLabel.node.color = d.UIUtlity.GetLabelColorByQuality(this._itemConfig.Quality), this.LuckyCharmNameLabel.string = this._itemId.ToItemName(), this.TitleBGSprite.spriteFrame = this._itemTipsAtlas.getSpriteFrame(this._bgNamePrefix + this._itemConfig.Quality)
                }, t.prototype.SetAttribute = function() {
                    if (0 == this._mode) {
                        for (var e = this._luckycharmModel.Attrs.length, t = 0; t < e; t++) {
                            this.AttrNodesArray[t].active = !0;
                            var n = this._luckycharmModel.Attrs[t].Items[1],
                                o = y.default.GetHeroAttribute(this._luckycharmModel.Attrs[t].Items[0], n, !0);
                            this.AttrNodesArray[t].getChildByName(this._attrIconName).getComponent(cc.Sprite).spriteFrame = o.Icon, cc.find(this._attrDescName, this.AttrNodesArray[t]).getComponent(cc.Label).string = o.Name, cc.find(this._attrDescValue, this.AttrNodesArray[t]).getComponent(cc.Label).string = this.NumberSign(n) + o.Value
                        }
                        for (t = e; t < this.AttrNodesArray.length; t++) this.AttrNodesArray[t].active = !1
                    } else 1 == this._mode && (this.BasicAttrLabel.string = "luckycharm_possibleAttr".ToUILocale(), h.EZLog.Log("skill--------\x3e \u591a\u8bed\u8a00key = ", "LuckyCharmEquip_attr_" + this._luckyCharmEquipConfig.Id), this.Mode1AttrDesc.string = this._luckyCharmEquipConfig.Id.ToLuckyCharmEquipAttr())
                }, t.prototype.SetOrigionAttribute = function() {
                    var e = this;
                    if (this.OrigionAttrZone.active = this._itemId >= C.default.OrigionLuckyCharmVirtualItemId, this.OrigionAttrLine.active = this._itemId >= C.default.OrigionLuckyCharmVirtualItemId, this._itemId >= C.default.OrigionLuckyCharmVirtualItemId && ((this._luckycharmModel.StarSkills.length || 0) > 0 || this._luckycharmModel.GloryStar > 0)) {
                        var t = C.default.GetLuckyCharmAttrs(this._luckycharmModel);
                        this.OrigionAttrNodesArray.forEach(function(e) {
                            e.active = !1
                        }), t.forEach(function(t, n) {
                            if (e.OrigionAttrNodesArray[n]) {
                                var o = y.default.GetHeroAttribute(t.AttrId, t.AttrValue, !0);
                                e.OrigionAttrNodesArray[n].getChildByName(e._attrIconName).getComponent(cc.Sprite).spriteFrame = o.Icon, cc.find(e._attrDescName, e.OrigionAttrNodesArray[n]).getComponent(cc.Label).string = o.Name, cc.find(e._attrDescValue, e.OrigionAttrNodesArray[n]).getComponent(cc.Label).string = e.NumberSign(t.AttrValue) + o.Value, e.OrigionAttrNodesArray[n].active = !0
                            }
                        })
                    }
                }, t.prototype.NumberSign = function(e) {
                    return e > 0 ? "+" : ""
                }, t.prototype.SetSkill = function() {
                    if (0 == this._mode) {
                        var e = this._luckycharmModel.Skills.length;
                        if (0 == e) return this.SkillZone.active = !1, void(this.SkillLine.active = !1);
                        this.SkillZone.active = !0, this.SkillLine.active = !0;
                        for (var t = 0; t < e; t++) {
                            this.SkillNodesArray[t].active = !0;
                            var n = this._luckycharmModel.Skills[t],
                                o = p.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmSkill_Config, n),
                                r = this._skillComponents[t];
                            if (!r) {
                                var i = this.SkillNodesArray[t].getChildByName(this._skillItemContainerName),
                                    a = cc.instantiate(this._skillItemPrefab);
                                a.setParent(i), r = a.getComponent(g.default), this._skillComponents[t] = r
                            }
                            r.InitById(n);
                            var s = this.SkillNodesArray[t].getChildByName(this._skillNameNodeName);
                            s.color = d.UIUtlity.GetLabelColorByQuality(o.Quality), s.getComponent(cc.Label).string = p.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_name_" + n), cc.find(this._skillDescNodeName, this.SkillNodesArray[t]).getComponent(cc.RichText).string = p.ConfigDataComponent.Instance.GetLocale("LuckyCharmSkill_desc_" + n)
                        }
                        for (t = e; t < this.SkillNodesArray.length; t++) this.SkillNodesArray[t].active = !1
                    } else 1 == this._mode && (this.LuckyCharmSkillLabel.string = "luckycharm_possibleSkill".ToUILocale(), h.EZLog.Log("--------\x3e skill\u591a\u8bed\u8a00key = ", "LuckyCharmEquip_skill_" + this._luckyCharmEquipConfig.Id), this.Mode1SkillDesc.string = this._luckyCharmEquipConfig.Id.ToLuckyCharmEquipSkill())
                }, t.prototype.SetOrigionSkill = function() {
                    var e = this,
                        t = [];
                    if (this._itemId >= C.default.OrigionLuckyCharmVirtualItemId) {
                        var n = this._luckycharmModel.StarSkills.length || 0;
                        if (n > 0) {
                            for (var o = [], r = p.ConfigDataComponent.Instance.GetArrayConfig(c.LuckyCharmStar_Config), i = 0; i < r.length; i++) {
                                var a = r[i];
                                Math.floor(a.Id / 100) == v.CommonItemId.PrimordialLuckyCharm && o.push(a)
                            }
                            for (var s = 0; s < n; s++) {
                                var l = o[s];
                                if (l.Skills && l.Skills.length > 0) {
                                    var u = this._luckycharmModel.StarSkills[s];
                                    u > 0 && t.push(u)
                                }
                            }
                        }
                    }
                    this.OrigionSkillZone.active = this._itemId >= C.default.OrigionLuckyCharmVirtualItemId && t.length > 0, this.OrigionSkillLine.active = this._itemId >= C.default.OrigionLuckyCharmVirtualItemId && t.length > 0, this._itemId >= C.default.OrigionLuckyCharmVirtualItemId && t.length > 0 && (this.OrigionSkillNodesArray.forEach(function(e) {
                        e.active = !1
                    }), t.forEach(function(t, n) {
                        if (e.OrigionSkillNodesArray[n]) {
                            var o = e.OrigionSkillNodesArray[n].getChildByName(e._attrIconName).getComponent(cc.Sprite);
                            e.OrigionSkillNodesArray[n].getChildByName(e._attrDescName).getComponent(cc.Label).string = t.ToHeroSkillName(), e.SetOrigionSkillIcon(t, o), e.OrigionSkillNodesArray[n].active = !0
                        }
                    }))
                }, t.prototype.SetOrigionSkillIcon = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return n = y.default.GetSkillIconId(e), [4, this.LoadDynamicAsset(f.BundlePath.SkillIcon + "/" + n, cc.SpriteFrame)];
                                case 1:
                                    return o = r.sent(), this.isValid ? (t.spriteFrame = o, [2]) : (h.AssetsManager.Instance.UnloadAsset(o), [2])
                            }
                        })
                    })
                }, t.prototype.SetSpecial = function() {
                    this.SpecialZone.active = !1, this.SpecialLine.active = !1
                }, t.prototype.SetDetail = function() {
                    this.DetailLabel.string = this._itemId.ToItemDesc()
                }, t.prototype.SetNodeArray = function(e, t) {
                    e.forEach(function(e) {
                        e.active = t
                    })
                }, t.prototype.SetMode = function() {
                    for (var e = 0; e < this._modeNodeArray.length; e++) this.SetNodeArray(this._modeNodeArray[e], e == this._mode)
                }, t.prototype.LocationShow = function() {
                    this.isValid && (this.LocationComponent.RepositionPanel(this._clickNode), this.node.opacity = 255)
                }, t.prototype.OnOrigionalSkillItemTouchEnd = function(e) {
                    var t = e.target,
                        n = Number.parseInt(t.name),
                        o = [],
                        r = this._luckycharmModel.StarSkills.length || 0;
                    if (r > 0) {
                        for (var i = [], a = p.ConfigDataComponent.Instance.GetArrayConfig(c.LuckyCharmStar_Config), s = 0; s < a.length; s++) {
                            var l = a[s];
                            Math.floor(l.Id / 100) == v.CommonItemId.PrimordialLuckyCharm && i.push(l)
                        }
                        for (var u = 0; u < r; u++) {
                            var d = i[u];
                            if (d.Skills && d.Skills.length > 0) {
                                var y = this._luckycharmModel.StarSkills[u];
                                y > 0 && o.push(y)
                            }
                        }
                        o[n] && h.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroAttrTipsPanel.Path, o[n], t, 1)
                    }
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this)
                }, i([w(cc.Node)], t.prototype, "MaskNode", void 0), i([w(cc.Label)], t.prototype, "LuckyCharmNameLabel", void 0), i([w(cc.Label)], t.prototype, "TypeLabel", void 0), i([w(cc.Label)], t.prototype, "TypeValue", void 0), i([w(cc.Node)], t.prototype, "LuckyCharmItemContainer", void 0), i([w(cc.Sprite)], t.prototype, "TitleBGSprite", void 0), i([w(cc.Node)], t.prototype, "AttrZone", void 0), i([w(cc.Label)], t.prototype, "BasicAttrLabel", void 0), i([w({
                    type: [cc.Node]
                })], t.prototype, "AttrNodesArray", void 0), i([w(cc.Node)], t.prototype, "OrigionAttrZone", void 0), i([w(cc.Node)], t.prototype, "OrigionAttrLine", void 0), i([w(cc.Label)], t.prototype, "OrigionBasicAttrLabel", void 0), i([w({
                    type: [cc.Node]
                })], t.prototype, "OrigionAttrNodesArray", void 0), i([w(cc.Node)], t.prototype, "SkillZone", void 0), i([w(cc.Node)], t.prototype, "SkillLine", void 0), i([w(cc.Node)], t.prototype, "SpecialLine", void 0), i([w(cc.Label)], t.prototype, "LuckyCharmSkillLabel", void 0), i([w({
                    type: [cc.Node]
                })], t.prototype, "SkillNodesArray", void 0), i([w(cc.Node)], t.prototype, "OrigionSkillZone", void 0), i([w(cc.Node)], t.prototype, "OrigionSkillLine", void 0), i([w(cc.Label)], t.prototype, "OrigionBasicSkillLabel", void 0), i([w({
                    type: [cc.Node]
                })], t.prototype, "OrigionSkillNodesArray", void 0), i([w(cc.Node)], t.prototype, "SpecialZone", void 0), i([w(cc.Label)], t.prototype, "DetailLabel", void 0), i([w(cc.Node)], t.prototype, "MainNode", void 0), i([w({
                    type: [cc.Node]
                })], t.prototype, "Mode0NodesArray", void 0), i([w({
                    type: [cc.Node]
                })], t.prototype, "Mode1NodesArray", void 0), i([w(cc.RichText)], t.prototype, "Mode1AttrDesc", void 0), i([w(cc.RichText)], t.prototype, "Mode1SkillDesc", void 0), i([w(_.default)], t.prototype, "LocationComponent", void 0), i([S], t)
            }(h.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent",
        "./LuckyCharmInfoPanel": "LuckyCharmInfoPanel",
        "./LuckyCharmSkillComponent": "LuckyCharmSkillComponent"
    }],
    LuckyCharmUpgradePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ec936VpKo5D4al88TR+o0JV", "LuckyCharmUpgradePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Components/Components"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/CustomToggle"),
            C = e("../Components/ItemComponent"),
            v = e("../Components/LuckyCharmOrigionSkillComponent"),
            b = e("./EngraveComponent"),
            S = e("./LuckyCharmInfoPanel"),
            w = e("./LuckyCharmOrigionSkillPanel");
        (function(e) {
            e[e.UpGrade = 0] = "UpGrade", e[e.Engrave = 1] = "Engrave"
        })(l || (l = {}));
        var P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !0), t.PanelTitleLabel = null, t.RuleButton = null, t.CurrentItemPartNode = null, t.CurrentItemContainer = null, t.CurrentItemNameLabel = null, t.NewItemPartNode = null, t.NewItemContainer = null, t.NewItemNameLabel = null, t.ArrowSprite = null, t.AttrPartTitleLabel = null, t.OrigionAttrNodes = [], t.OrigionSkillTitleLabel = null, t.OrigionSkillNodes = [], t.EnteredSkillTitleLabel = null, t.EnteredSkillNameLabel = null, t.EnteredSkillLockNode = null, t.EnteredSkillUnlockStarContainer = null, t.EnteredSkillUnlockConditionLabel = null, t.CombineSkillTitleLabel = null, t.CombineSkillNode = null, t.ResourceTitleLabel = null, t.ResourceItemContainer = null, t.ResourceFullLabel = null, t.UpgradeButton = null, t.UpgradeButtonLabel = null, t.ReturnButton = null, t.HandbookButton = null, t.HandbookButtonLabel = null, t.Bg = null, t.UpGradeNode = null, t.EngraveNode = null, t.CustomToggles = [], t._luckyCharmId = 0, t._luckyCharmConfig = null, t._luckyCharmModel = null, t._luckyCharmStarLevel = 0, t._starConfigs = null, t._resourceItemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(f.EventKeys.EVENT_LUCKYCHARM_REDDOT_REFRESH, this.RefreshReddot, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(f.EventKeys.EVENT_LUCKYCHARM_REDDOT_REFRESH, this.RefreshReddot, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._luckyCharmId = t[0], t[1] ? this._selectToggle = t[1] : this._selectToggle = l.UpGrade, this._bgPaths = ["LuckyCharms/PNG/upgradeBg", "LuckyCharms/PNG/engraveBg"], this._titleNames = ["LuckyCharmUpgradePanel_Title".ToUILocale(), "engrave_luckyCharm".ToUILocale()], this.SetToggles()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.SetTitle(), [4, this.SetBg()];
                                case 1:
                                    return e.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.ConfigLuckyCharmData = function() {
                    this._luckyCharmModel = g.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, this._luckyCharmId), this._luckyCharmConfig = g.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmEquip_Config, this._luckyCharmModel.ItemId), this._luckyCharmStarLevel = this._luckyCharmModel.StarSkills ? this._luckyCharmModel.StarSkills.length : 0
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.InitStaticLabels(), this.InitButtons(), this.GetUpgradeConfigs();
                    var n = ["luckycharm_upgrade".ToUILocale(), "luckycharm_engrave".ToUILocale()];
                    this.CustomToggles.forEach(function(e, o) {
                        e.node.on("toggle", t.ClockBottomToggle, t), e.Init(n[o])
                    })
                }, t.prototype.GetUpgradeConfigs = function() {
                    this._starConfigs = [];
                    for (var e = g.ConfigDataComponent.Instance.GetArrayConfig(c.LuckyCharmStar_Config), t = 0; t < e.length; t++) {
                        var n = e[t];
                        Math.floor(n.Id / 100) == d.CommonItemId.PrimordialLuckyCharm && this._starConfigs.push(n)
                    }
                }, t.prototype.InitStaticLabels = function() {
                    this.AttrPartTitleLabel.string = "LuckyCharm_OrigionBaseAttr".ToUILocale(), this.OrigionSkillTitleLabel.string = "LuckyCharm_OrigionSkill".ToUILocale(), this.EnteredSkillTitleLabel.string = "LuckyCharm_EnteredSkill".ToUILocale(), this.CombineSkillTitleLabel.string = "LuckyCharm_CombineSkill".ToUILocale(), this.ResourceTitleLabel.string = "LuckyCharm_UpgradeResource".ToUILocale(), this.UpgradeButtonLabel.string = "LuckyCharm_Upgrade".ToUILocale(), this.HandbookButtonLabel.string = "LuckyCharm_Handbook".ToUILocale(), this.ResourceFullLabel.string = "LuckyCharm_FullStar".ToUILocale()
                }, t.prototype.InitButtons = function() {
                    this.RuleButton.node.on("click", this.OnRuleButtonClicked, this), this.UpgradeButton.node.on("click", this.OnUpgradeButtonClicked, this), this.ReturnButton.node.on("click", this.OnReturnButtonClicked, this), this.HandbookButton.node.on("click", this.OnHandbookButtonClicked, this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._selectToggle == l.UpGrade ? this.SetUpgradeNode() : this._selectToggle == l.Engrave && this.SetEngraveNode()
                }, t.prototype.SetToggles = function() {
                    var e = this,
                        t = h.default.Instance.IsGameModuleOpen(d.GameModuleType.LuckyCharmEngrave),
                        n = h.default.Instance.IsGameModuleUnlock(d.GameModuleType.LuckyCharmEngrave);
                    this._selectToggle != l.Engrave || t && n[0] || (this._selectToggle = l.UpGrade), this.CustomToggles.forEach(function(o, r) {
                        if (o.isChecked = r == e._selectToggle, r == l.Engrave)
                            if (o.node.active = t, n[0]) {
                                var i = g.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmStar_Config, 100 * d.CommonItemId.GloryLuckyCharm + 1);
                                e._luckyCharmModel = g.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, e._luckyCharmId);
                                var a = i.Unlock[0] || 0;
                                e._luckyCharmModel.StarSkills.length >= a ? o.SetInteractable(!0) : o.SetInteractable(!1, "engrave_unlock_limit".ToUILocale().Fmt(a))
                            } else o.SetInteractable(!1, n[1])
                    })
                }, t.prototype.SetUpgradeNode = function() {
                    this.ConfigLuckyCharmData(), this.SetLuckyCharmIconView(), this.SetOrigionAttrView(), this.SetOrigionSkillView(), this.SetEnteredSkillView(), this.SetCombineSkillView(), this.SetResourceView(), this.SetButtonView(), this.BindRedDot()
                }, t.prototype.SetEngraveNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._engraveNode ? [3, 2] : [4, this.LoadDynamicAsset("LuckyCharms/Components/EngraveComponent", cc.Prefab)];
                                case 1:
                                    e = t.sent(), this._engraveNode = cc.instantiate(e), this._engraveNode.parent = this.EngraveNode, t.label = 2;
                                case 2:
                                    return this._engraveNode.getComponent(b.default).Init(this._luckyCharmId), [2]
                            }
                        })
                    })
                }, t.prototype.SetLuckyCharmIconView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = s.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    return this.CurrentItemContainer.destroyAllChildren(), this.NewItemContainer.destroyAllChildren(), t = cc.instantiate(this._itemPrefab), n = t.getComponent(C.ItemComponent), this._luckyCharmStarLevel > 0 ? (n.Init(this._luckyCharmModel, C.ItemComponentType.LuckyCharm), r = g.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, S.default.OrigionLuckyCharmVirtualItemId), o = I.UIUtlity.GetLabelColorByQuality(r.Quality), this.CurrentItemNameLabel.node.color = o, this.CurrentItemNameLabel.string = S.default.OrigionLuckyCharmVirtualItemId.ToItemName()) : (n.Init({
                                        ItemId: this._luckyCharmModel.ItemId
                                    }), r = g.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, this._luckyCharmModel.ItemId), i = I.UIUtlity.GetLabelColorByQuality(r.Quality), this.CurrentItemNameLabel.node.color = i, this.CurrentItemNameLabel.string = this._luckyCharmModel.ItemId.ToItemName()), this.CurrentItemContainer.addChild(t), this._luckyCharmStarLevel >= this._starConfigs.length ? (this.NewItemPartNode.active = !1, this.ArrowSprite.node.active = !1) : (this.NewItemPartNode.active = !0, this.ArrowSprite.node.active = !0), (a = cc.instantiate(this._itemPrefab)).getComponent(C.ItemComponent).Init({
                                        ItemId: S.default.OrigionLuckyCharmVirtualItemId,
                                        StarLevel: this._luckyCharmStarLevel + 1
                                    }, C.ItemComponentType.ItemWithStar), l = g.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, S.default.OrigionLuckyCharmVirtualItemId), u = I.UIUtlity.GetLabelColorByQuality(l.Quality), this.NewItemNameLabel.node.color = u, this.NewItemNameLabel.string = S.default.OrigionLuckyCharmVirtualItemId.ToItemName(), this.NewItemContainer.addChild(a), [2]
                            }
                        })
                    })
                }, t.prototype.SetOrigionAttrView = function() {
                    if (this._luckyCharmStarLevel > 0) {
                        var e = this._starConfigs[this._luckyCharmStarLevel - 1].Attrs;
                        if (this._luckyCharmStarLevel >= this._starConfigs.length)
                            for (var t = 0; t < this.OrigionAttrNodes.length; t++) {
                                var n = h.default.GetHeroAttribute(e[t].Items[0], e[t].Items[1], !0);
                                this.SetAttrItem(t, n.Name, n.Icon, "+" + n.Value, "")
                            } else {
                                var o = this._starConfigs[this._luckyCharmStarLevel].Attrs;
                                for (t = 0; t < this.OrigionAttrNodes.length; t++) {
                                    n = h.default.GetHeroAttribute(e[t].Items[0], e[t].Items[1], !0);
                                    var r = h.default.GetHeroAttribute(o[t].Items[0], o[t].Items[1] - e[t].Items[1], !0);
                                    this.SetAttrItem(t, n.Name, n.Icon, "+" + n.Value, "+" + r.Value)
                                }
                            }
                    } else
                        for (o = this._starConfigs[this._luckyCharmStarLevel].Attrs, t = 0; t < this.OrigionAttrNodes.length; t++) r = h.default.GetHeroAttribute(o[t].Items[0], o[t].Items[1], !0), this.SetAttrItem(t, r.Name, r.Icon, "", "+" + r.Value)
                }, t.prototype.SetAttrItem = function(e, t, n, o, r) {
                    var i = this.OrigionAttrNodes[e];
                    i.getChildByName("AttrName").getComponent(cc.Label).string = t, i.getChildByName("AttrIcon").getComponent(cc.Sprite).spriteFrame = n;
                    var a = i.getChildByName("ValueNode");
                    a.getChildByName("CurrentValue").getComponent(cc.Label).string = o, a.getChildByName("NextValue").getComponent(cc.Label).string = r
                }, t.prototype.SetOrigionSkillView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function() {
                            for (e = 0, t = 0; t < this._luckyCharmStarLevel; t++) this._starConfigs[t].Skills && this._starConfigs[t].Skills.length > 0 && e < this.OrigionSkillNodes.length && ((n = this.OrigionSkillNodes[e].getComponent(v.default)).Init(this._luckyCharmId, !0, this._luckyCharmModel.StarSkills[t], w.LuckyCharmOrigionSkillToggleType.OrigionSkill, t), e++);
                            for (; e < this.OrigionSkillNodes.length; e++)
                                for (n = this.OrigionSkillNodes[e].getComponent(v.default); t < this._starConfigs.length; t++)
                                    if (this._starConfigs[t].Skills && this._starConfigs[t].Skills.length > 0) {
                                        n.Init(this._luckyCharmId, !1, 0, w.LuckyCharmOrigionSkillToggleType.OrigionSkill, t), t++;
                                        break
                                    } return [2]
                        })
                    })
                }, t.prototype.SetEnteredSkillView = function() {
                    for (var e = 0, t = 0; t < this._starConfigs.length; t++)
                        if (this._starConfigs[t].EntranceSkill && this._starConfigs[t].EntranceSkill.length > 0) {
                            e = t + 1;
                            break
                        } if (this._luckyCharmStarLevel >= e) {
                        this.EnteredSkillNameLabel.node.active = !0, this.EnteredSkillLockNode.active = !1;
                        var n = h.default.GetHeroAttribute(this._starConfigs[e - 1].EntranceSkill[0].Items[0], this._starConfigs[e - 1].EntranceSkill[0].Items[1], !0);
                        this.EnteredSkillNameLabel.string = "LuckyCharm_EnteredSkillEffect".ToUILocale().Fmt(n.Name, n.Value)
                    } else
                        for (this.EnteredSkillNameLabel.node.active = !1, this.EnteredSkillLockNode.active = !0, this.EnteredSkillUnlockConditionLabel.string = "LuckyCharm_UnlockCondition".ToUILocale().Fmt(e), this.EnteredSkillUnlockStarContainer.destroyAllChildren(), t = 0; t < e; t++) {
                            var o = new cc.Node("node" + t),
                                r = o.addComponent(cc.Sprite);
                            r.sizeMode = cc.Sprite.SizeMode.CUSTOM, r.type = cc.Sprite.Type.SIMPLE, o.width = o.width * v.default.HOLY_STAR_SCALE, o.height = o.height * v.default.HOLY_STAR_SCALE, r.spriteFrame = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("holyEquipStarIcon"), this.EnteredSkillUnlockStarContainer.addChild(o)
                        }
                }, t.prototype.SetCombineSkillView = function() {
                    for (var e = 0, t = 0; t < this._starConfigs.length; t++)
                        if (this._starConfigs[t].Skills && this._starConfigs[t].Skills.length > 0) {
                            var n = this._starConfigs[t].Skills[0];
                            if (g.ConfigDataComponent.Instance.GetConfigById(c.LuckyCharmStarSkill_Config, n).Type > d.LuckyCharmStarSkillType.Yin) {
                                e = t;
                                break
                            }
                        } var o = this.CombineSkillNode.getComponent(v.default);
                    this._luckyCharmStarLevel > e ? o.Init(this._luckyCharmId, !0, this._luckyCharmModel.StarSkills[this._luckyCharmStarLevel - 1], w.LuckyCharmOrigionSkillToggleType.CombineSkill, e) : o.Init(this._luckyCharmId, !1, 0, w.LuckyCharmOrigionSkillToggleType.CombineSkill, e)
                }, t.prototype.SetResourceView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._luckyCharmStarLevel >= this._starConfigs.length ? (this.ResourceItemContainer.active = !1, this.ResourceFullLabel.node.active = !0, [3, 7]) : [3, 1];
                                case 1:
                                    this.ResourceItemContainer.active = !0, this.ResourceFullLabel.node.active = !1, e = this._starConfigs[this._luckyCharmStarLevel], t = e.Materials, n = 0, s.label = 2;
                                case 2:
                                    return n < t.length ? this._itemPrefab ? [3, 4] : (o = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent)]) : [3, 6];
                                case 3:
                                    o._itemPrefab = s.sent(), s.label = 4;
                                case 4:
                                    this._resourceItemComponents[n] || (r = cc.instantiate(this._itemPrefab), i = r.getComponent(C.ItemComponent), this.ResourceItemContainer.addChild(r), this._resourceItemComponents[n] = i), this._resourceItemComponents[n].node.active = !0, this._resourceItemComponents[n].node.active = !0, a = g.DataCenter.Instance.GetItemCount(t[n].Items[0]), l = t[n].Items[1], this._resourceItemComponents[n].Init({
                                        ItemId: t[n].Items[0]
                                    }), a >= l ? this._resourceItemComponents[n].SetProgressBar(l, l) : this._resourceItemComponents[n].SetProgressBar(a, l), s.label = 5;
                                case 5:
                                    return n++, [3, 2];
                                case 6:
                                    for (; n < this._resourceItemComponents.length; n++) this._resourceItemComponents[n].node.active = !1;
                                    s.label = 7;
                                case 7:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetButtonView = function() {
                    this._luckyCharmStarLevel >= this._starConfigs.length ? this.UpgradeButton.node.active = !1 : this.UpgradeButton.node.active = !0
                }, t.prototype.BindRedDot = function() {
                    m.RedDotManager.Instance.BindInstance(this.UpgradeButton.node, m.RedDotManager.Instance.InstanceRedDot.LuckyCharmUpgradeNode, {
                        Value1: this._luckyCharmId
                    }), m.RedDotManager.Instance.BindInstance(this.CustomToggles[0].node, m.RedDotManager.Instance.InstanceRedDot.LuckyCharmUpgradeToggleNode, {
                        Value1: this._luckyCharmId
                    }), m.RedDotManager.Instance.BindInstance(this.CustomToggles[1].node, m.RedDotManager.Instance.InstanceRedDot.LuckyCharmEngraveToggleNode, {
                        Value1: this._luckyCharmId
                    })
                }, t.prototype.OnRuleButtonClicked = function() {
                    if (this._selectToggle == l.UpGrade) {
                        var e = {
                            name: "LuckyCharm_UpgradeRule".ToUILocale(),
                            titles: ["LuckyCharm_UpgradeRule_SubTitle1".ToUILocale()],
                            contents: ["LuckyCharm_UpgradeRule_Content1".ToUILocale()]
                        };
                        I.UIUtlity.ShowRulePanel(e)
                    } else this._selectToggle == l.Engrave && (e = {
                        name: "engrave_rule_main".ToUILocale(),
                        titles: ["engrave_rule_sub_title".ToUILocale()],
                        contents: ["engrave_rule_content".ToUILocale()]
                    }, I.UIUtlity.ShowRulePanel(e))
                }, t.prototype.OnReturnButtonClicked = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnUpgradeButtonClicked = function() {
                    this.IsMaterialEnough() ? this.RequestUpgrade() : I.UIUtlity.ShowFloatingHint("heroPalace_replace_material_not_enough".ToUILocale())
                }, t.prototype.IsMaterialEnough = function() {
                    for (var e = this._starConfigs[this._luckyCharmStarLevel].Materials, t = 0; t < e.length; t++)
                        if (g.DataCenter.Instance.GetItemCount(e[t].Items[0]) < e[t].Items[1]) return !1;
                    return !0
                }, t.prototype.RequestUpgrade = function() {
                    var e = new u.Req_Item_LuckyCharmUpgradeStar;
                    e.Sid = this._luckyCharmId, g.RpcComponent.Instance.Call(e, this.OnRequestUpgradeSuccess.bind(this))
                }, t.prototype.OnRequestUpgradeSuccess = function() {
                    p.UIManager.Instance.ShowUIPanel(y.PanelConfig.LuckyCharmUpgradeSuccessPanel.Path, this._luckyCharmId), this.ConfigLuckyCharmData(), this.ResetView(), this.SetToggles()
                }, t.prototype.ResetView = function() {
                    this.SetLuckyCharmIconView(), this.SetOrigionAttrView(), this.SetOrigionSkillView(), this.SetEnteredSkillView(), this.SetCombineSkillView(), this.SetResourceView(), this.SetButtonView()
                }, t.prototype.OnHandbookButtonClicked = function() {
                    p.UIManager.Instance.ShowUIPanel(y.PanelConfig.LuckyCharmOrigionSkillPanel.Path, this._luckyCharmId, w.LuckyCharmOrigionSkillPanelSelectMode.Show, w.LuckyCharmOrigionSkillToggleType.Stars, 0)
                }, t.prototype.ClockBottomToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._selectToggle != t && (this._selectToggle = t), this.SetBg(), this.SetTitle(), this.UpGradeNode.active = this._selectToggle == l.UpGrade, this.EngraveNode.active = this._selectToggle == l.Engrave, this.DisPlay()
                }, t.prototype.SetTitle = function() {
                    this.PanelTitleLabel.string = this._titleNames[this._selectToggle]
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset(this._bgPaths[this._selectToggle], cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.Bg.spriteFrame = e, [2]
                            }
                        })
                    })
                }, t.prototype.RefreshReddot = function() {
                    m.RedDotManager.Instance.BindInstance(this.CustomToggles[1].node, m.RedDotManager.Instance.InstanceRedDot.LuckyCharmEngraveToggleNode, {
                        Value1: this._luckyCharmId
                    })
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t)
                }, t.OrigionSkillMax = 2, i([T(cc.Label)], t.prototype, "PanelTitleLabel", void 0), i([T(cc.Button)], t.prototype, "RuleButton", void 0), i([T(cc.Node)], t.prototype, "CurrentItemPartNode", void 0), i([T(cc.Node)], t.prototype, "CurrentItemContainer", void 0), i([T(cc.Label)], t.prototype, "CurrentItemNameLabel", void 0), i([T(cc.Node)], t.prototype, "NewItemPartNode", void 0), i([T(cc.Node)], t.prototype, "NewItemContainer", void 0), i([T(cc.Label)], t.prototype, "NewItemNameLabel", void 0), i([T(cc.Sprite)], t.prototype, "ArrowSprite", void 0), i([T(cc.Label)], t.prototype, "AttrPartTitleLabel", void 0), i([T({
                    type: [cc.Node]
                })], t.prototype, "OrigionAttrNodes", void 0), i([T(cc.Label)], t.prototype, "OrigionSkillTitleLabel", void 0), i([T({
                    type: [cc.Node]
                })], t.prototype, "OrigionSkillNodes", void 0), i([T(cc.Label)], t.prototype, "EnteredSkillTitleLabel", void 0), i([T(cc.Label)], t.prototype, "EnteredSkillNameLabel", void 0), i([T(cc.Node)], t.prototype, "EnteredSkillLockNode", void 0), i([T(cc.Node)], t.prototype, "EnteredSkillUnlockStarContainer", void 0), i([T(cc.Label)], t.prototype, "EnteredSkillUnlockConditionLabel", void 0), i([T(cc.Label)], t.prototype, "CombineSkillTitleLabel", void 0), i([T(cc.Node)], t.prototype, "CombineSkillNode", void 0), i([T(cc.Label)], t.prototype, "ResourceTitleLabel", void 0), i([T(cc.Node)], t.prototype, "ResourceItemContainer", void 0), i([T(cc.Label)], t.prototype, "ResourceFullLabel", void 0), i([T(cc.Button)], t.prototype, "UpgradeButton", void 0), i([T(cc.Label)], t.prototype, "UpgradeButtonLabel", void 0), i([T(cc.Button)], t.prototype, "ReturnButton", void 0), i([T(cc.Button)], t.prototype, "HandbookButton", void 0), i([T(cc.Label)], t.prototype, "HandbookButtonLabel", void 0), i([T(cc.Sprite)], t.prototype, "Bg", void 0), i([T(cc.Node)], t.prototype, "UpGradeNode", void 0), i([T(cc.Node)], t.prototype, "EngraveNode", void 0), i([T(_.default)], t.prototype, "CustomToggles", void 0), i([A], t)
            }(p.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyCharmOrigionSkillComponent": "LuckyCharmOrigionSkillComponent",
        "./EngraveComponent": "EngraveComponent",
        "./LuckyCharmInfoPanel": "LuckyCharmInfoPanel",
        "./LuckyCharmOrigionSkillPanel": "LuckyCharmOrigionSkillPanel"
    }],
    LuckyCharmUpgradeResourceItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "65fc3+CgpZAupHEn9Ozsr7H", "LuckyCharmUpgradeResourceItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/DataCenter"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.ItemCountRichText = null, t.AddItemButton = null, t._iconSpriteFrame = null, t._itemId = 0, t._countNeed = 0, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._itemId = e, this._countNeed = t, this.LoadIcon(), this.SetCountView()
                }, t.prototype.onLoad = function() {
                    this.AddItemButton.node.on("click", this.OnAddItemButtonClicked, this)
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = c.default.Instance.GetItemPathById(this._itemId), t = this, [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t._iconSpriteFrame = n.sent(), this.isValid || l.AssetsManager.Instance.UnloadAsset(this._iconSpriteFrame), this.Icon.spriteFrame = this._iconSpriteFrame, [2]
                            }
                        })
                    })
                }, t.prototype.SetCountView = function() {
                    var e = p.DataCenter.Instance.GetItemCount(this._itemId);
                    e < this._countNeed ? this.ItemCountRichText.string = "<color=#ff4b4b>" + e + "</c><color=#ff4b4b>/<color=#FFFFFF>" + this._countNeed + "</c><color=#FFFFFF>" : this.ItemCountRichText.string = "<color=#FFFFFF>" + e + "/" + this._countNeed + "</c><color=#FFFFFF>"
                }, t.prototype.OnAddItemButtonClicked = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, this._itemId, !1)
                }, t.prototype.onDisable = function() {
                    this._iconSpriteFrame && l.AssetsManager.Instance.UnloadAsset(this._iconSpriteFrame)
                }, i([f(cc.Sprite)], t.prototype, "Icon", void 0), i([f(cc.RichText)], t.prototype, "ItemCountRichText", void 0), i([f(cc.Button)], t.prototype, "AddItemButton", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter"
    }],
    LuckyCharmUpgradeSuccessAttrNode: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "20ab1dOmaFId5h7YkHUqurV", "LuckyCharmUpgradeSuccessAttrNode");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.AttrNameLabel = null, t.PreviousAttrValueLabel = null, t.CurrentAttrValueLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this.AttrIcon.spriteFrame = e, this.AttrNameLabel.string = t, this.PreviousAttrValueLabel.string = "+" + n, this.CurrentAttrValueLabel.string = "+" + o
                }, i([l(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([l(cc.Label)], t.prototype, "AttrNameLabel", void 0), i([l(cc.Label)], t.prototype, "PreviousAttrValueLabel", void 0), i([l(cc.Label)], t.prototype, "CurrentAttrValueLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    LuckyCharmUpgradeSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "55257G7NjNK8K6CdfNoGf+k", "LuckyCharmUpgradeSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/LuckyCharmUpgradeSuccessAttrNode"),
            m = e("./LuckyCharmInfoPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !0), t.PreviouseItemContainer = null, t.CurrentItemContainer = null, t.BaseAttrTitleLabel = null, t.BaseAttrContainer = null, t.OrigionSkillTitleLabel = null, t.OrigionSKillUnlockNode = null, t.OrigionSKillUnlockedLabel = null, t.OrigionNoSkillUnlockLabel = null, t._itemPrefab = null, t._luckyCharmId = 0, t._luckyCharmModel = null, t._newStarLevel = 0, t._starConfigs = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BaseAttrTitleLabel.string = "equip_base_attr".ToUILocale(), this.OrigionSkillTitleLabel.string = "LuckyCharm_UpgradeSpecial".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._luckyCharmId = t[0], this._luckyCharmModel = f.DataCenter.Instance.GetDataById(c.LuckyCharmEquip_Model, this._luckyCharmId), this._newStarLevel = this._luckyCharmModel.StarSkills ? this._luckyCharmModel.StarSkills.length : 0, this._starConfigs = [];
                    for (var n = f.ConfigDataComponent.Instance.GetArrayConfig(l.LuckyCharmStar_Config), o = 0; o < n.length; o++) {
                        var r = n[o];
                        Math.floor(r.Id / 100) == p.CommonItemId.PrimordialLuckyCharm && this._starConfigs.push(r)
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetIconView(), this.SetBaseAttrView(), this.SetOrigionSkillView()
                }, t.prototype.SetIconView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = r.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    return this.PreviouseItemContainer.destroyAllChildren(), this.CurrentItemContainer.destroyAllChildren(), t = cc.instantiate(this._itemPrefab), n = t.getComponent(y.ItemComponent), 1 == this._newStarLevel ? n.Init({
                                        ItemId: this._luckyCharmModel.ItemId
                                    }) : n.Init({
                                        ItemId: m.default.OrigionLuckyCharmVirtualItemId,
                                        StarLevel: this._newStarLevel - 1
                                    }, y.ItemComponentType.ItemWithStar), this.PreviouseItemContainer.addChild(t), (o = cc.instantiate(this._itemPrefab)).getComponent(y.ItemComponent).Init({
                                        ItemId: m.default.OrigionLuckyCharmVirtualItemId,
                                        StarLevel: this._newStarLevel
                                    }, y.ItemComponentType.ItemWithStar), this.CurrentItemContainer.addChild(o), [2]
                            }
                        })
                    })
                }, t.prototype.SetBaseAttrView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset("LuckyCharms/Components/LuckyCharmUpgradeSuccessAttrNode")];
                                case 1:
                                    if (e = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    if (this.BaseAttrContainer.destroyAllChildren(), 1 == this._newStarLevel)
                                        for (o = this._starConfigs[this._newStarLevel - 1], r = 0; r < o.Attrs.length; r++) i = cc.instantiate(e), a = i.getComponent(g.default), t = d.default.GetHeroAttribute(o.Attrs[r].Items[0], o.Attrs[r].Items[1], !0), a.Init(t.Icon, t.Name, "0", t.Value), this.BaseAttrContainer.addChild(i);
                                    else
                                        for (n = this._starConfigs[this._newStarLevel - 2], o = this._starConfigs[this._newStarLevel - 1], r = 0; r < o.Attrs.length; r++) i = cc.instantiate(e), a = i.getComponent(g.default), l = d.default.GetHeroAttribute(n.Attrs[r].Items[0], n.Attrs[r].Items[1], !0), c = d.default.GetHeroAttribute(o.Attrs[r].Items[0], o.Attrs[r].Items[1], !0), a.Init(l.Icon, l.Name, l.Value, c.Value), this.BaseAttrContainer.addChild(i);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetOrigionSkillView = function() {
                    var e = this._starConfigs[this._newStarLevel - 1];
                    return e.Skills && e.Skills.length > 0 ? (this.OrigionSKillUnlockNode.active = !0, this.OrigionNoSkillUnlockLabel.node.active = !1, void(f.ConfigDataComponent.Instance.GetConfigById(l.LuckyCharmStarSkill_Config, e.Skills[0]).Type > p.LuckyCharmStarSkillType.Yin ? this.OrigionSKillUnlockedLabel.string = "LuckyCharm_ActiveCombineSkill".ToUILocale().Fmt(this._newStarLevel) : this.OrigionSKillUnlockedLabel.string = "LuckyCharm_ActiveOrigionSkill".ToUILocale().Fmt(this._newStarLevel))) : e.EntranceSkill && e.EntranceSkill.length > 0 ? (this.OrigionSKillUnlockNode.active = !0, this.OrigionNoSkillUnlockLabel.node.active = !1, void(this.OrigionSKillUnlockedLabel.string = "LuckyCharm_ActiveEnteredSkill".ToUILocale().Fmt(this._newStarLevel))) : (this.OrigionNoSkillUnlockLabel.string = "LuckyCharm_NoSkillActive".ToUILocale(), void(this.OrigionSKillUnlockNode.active = !1))
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t)
                }, i([C(cc.Node)], t.prototype, "PreviouseItemContainer", void 0), i([C(cc.Node)], t.prototype, "CurrentItemContainer", void 0), i([C(cc.Label)], t.prototype, "BaseAttrTitleLabel", void 0), i([C(cc.Node)], t.prototype, "BaseAttrContainer", void 0), i([C(cc.Label)], t.prototype, "OrigionSkillTitleLabel", void 0), i([C(cc.Node)], t.prototype, "OrigionSKillUnlockNode", void 0), i([C(cc.Label)], t.prototype, "OrigionSKillUnlockedLabel", void 0), i([C(cc.Label)], t.prototype, "OrigionNoSkillUnlockLabel", void 0), i([_], t)
            }(u.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyCharmUpgradeSuccessAttrNode": "LuckyCharmUpgradeSuccessAttrNode",
        "./LuckyCharmInfoPanel": "LuckyCharmInfoPanel"
    }],
    LuckyDrawBallComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5d19d0mmzBA7I+LRQlipH4o", "LuckyDrawBallComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Number = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    this.Number.string != e && (this.Number.string = e), this.node.scaleX = t, this.node.scaleY = t
                }, i([l(cc.Label)], t.prototype, "Number", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    LuckyDrawExchangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "761b1QfSfhCeqP9gaf3ZyJV", "LuckyDrawExchangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../Components/DataCenter"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../Components/ItemNumComponent"),
            d = e("../Components/PrefabListContainerComp"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.Title = null, t.Content = null, t.BtnLabel = null, t.BtnNode = null, t.ItemContainer = null, t.Slider = null, t.SliderNumLabel = null, t.SubtractNode = null, t.AddNode = null, t.SliderFill = null, t._progress = 0, t._canUseTimes = 0, t._useTimes = 0, t._minUseTime = 1, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "LuckyDraw_exchange2".ToUILocale(), this.Content.string = "LuckyDraw_materials".ToUILocale(), this.SliderNumLabel.string = "0", this.BtnLabel.string = "LuckyDraw_exchange".ToUILocale(), this.Slider.node.on("slide", this.OnSlide, this), this.BtnNode.on("click", this.OnClickUse, this), this.SubtractNode.on("click", this.OnClickSubtract, this), this.AddNode.on("click", this.OnClickAdd, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._materials = t[0], this.ConfigCanUseTimes()
                }, t.prototype.OnSlide = function() {
                    this._canUseTimes ? (this._progress = this.Slider.progress, this.SetProgress()) : this.Slider.progress = 0
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetProgress(), this.RenderItem())
                }, t.prototype.RenderItem = function() {
                    var e = this;
                    this.ItemContainer.Init("ItemInfoPanel/ItemNumComponent", p.default, function(t, n) {
                        t.Set({
                            ItemId: e._materials[n].ItemId,
                            Count: e._materials[n].Count * e._useTimes + e._minUseTime
                        }, "" + e._materials[n].Count * e._useTimes)
                    }), this.ItemContainer.Set(this._materials.length)
                }, t.prototype.OnClickUse = function() {
                    var e;
                    this._materials.forEach(function(t) {
                        t.Count > c.DataCenter.Instance.GetItemCount(t.ItemId) && (e = t.ItemId)
                    }), this._useTimes > this._canUseTimes ? e && u.UIUtlity.ShowFloatingHint("ChaosSummon_TicketNotEngough".ToUILocale().Fmt(e.ToItemName())) : e && 0 == this._canUseTimes ? s.default.ShowItemGetWay(e) : (a.Game.EventDispatcher.Emit(l.EventKeys.LUCKYDRAWPANEL_EXCHANGE, this._useTimes), a.UIManager.Instance.BackUIPanel())
                }, t.prototype.SetProgress = function(e) {
                    e || (this._useTimes = Math.floor(this._canUseTimes * this.Slider.progress), 0 == this._useTimes && this._canUseTimes > 0 && (this._useTimes = 1)), this.SliderFill.width = 512 * this._progress, this.Slider.progress = this._progress, this.SliderNumLabel.string = "" + this._useTimes + "GodSoul_CombineTimes".ToUILocale(), this.RenderItem()
                }, t.prototype.OnClickSubtract = function() {
                    this._useTimes >= 1 && (this._useTimes -= 1, this._progress = this._useTimes / (this._canUseTimes + this._minUseTime)), this.SetProgress(this._useTimes)
                }, t.prototype.OnClickAdd = function() {
                    this._useTimes < this._canUseTimes && (this._useTimes += 1, this._progress = this._useTimes / (this._canUseTimes + this._minUseTime)), this.SetProgress(this._useTimes)
                }, t.prototype.ConfigCanUseTimes = function() {
                    var e = this._materials.map(function(e) {
                            var t = e.Count,
                                n = c.DataCenter.Instance.GetItemCount(e.ItemId);
                            return Math.floor(n / t)
                        }),
                        t = 200;
                    e.forEach(function(e) {
                        t = Math.min(e, t)
                    }), this._canUseTimes = t
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "Content", void 0), i([y(cc.Label)], t.prototype, "BtnLabel", void 0), i([y(cc.Node)], t.prototype, "BtnNode", void 0), i([y(d.default)], t.prototype, "ItemContainer", void 0), i([y(cc.Slider)], t.prototype, "Slider", void 0), i([y(cc.Label)], t.prototype, "SliderNumLabel", void 0), i([y(cc.Node)], t.prototype, "SubtractNode", void 0), i([y(cc.Node)], t.prototype, "AddNode", void 0), i([y(cc.Node)], t.prototype, "SliderFill", void 0), i([f], t)
            }(a.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemNumComponent": "ItemNumComponent",
        "../Components/PrefabListContainerComp": "PrefabListContainerComp"
    }],
    LuckyDrawMinePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "21b1eg3+LVEI6x6A4MK7nWA", "LuckyDrawMinePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.LuckyDrawRewardState = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/ItemComponent"),
            d = e("../Components/LuckyDrawTicketComponent"),
            h = e("../Components/PrefabListContainerComp"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Components/RpcComponent"),
            g = e("../../Auxiliary/EventKeys");
        (function(e) {
            e[e.notOpen = 0] = "notOpen", e[e.canReceive = 1] = "canReceive", e[e.received = 2] = "received"
        })(l = n.LuckyDrawRewardState || (n.LuckyDrawRewardState = {}));
        var m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.SubTitle = null, t.LeftTime = null, t.TicketContainers = null, t.RewardsContainers = null, t.ScrollView = null, t.GetBtnNode = null, t.GetBtnLabel = null, t.BottomTips = null, t._mineNums = [], t._openState = l.notOpen, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("LuckyDrawPanel/PNG/LuckyDrawPanel", cc.SpriteAtlas)];
                                case 1:
                                    return t._luckyDrawAtlas = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "LuckyDraw_mineNum2".ToUILocale(), this.SubTitle.string = "LuckyDraw_mineRewards".ToUILocale(), this.GetBtnLabel.string = "receive".ToUILocale(), this.GetBtnNode.on("click", this.onClickGetBtn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._mineNums = t[0], this._rewards = t[1], this._openTime = t[2], this._openState = t[3]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.RenderTickets(), this.RenderRewards(), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1)), this.RenderBtn()
                }, t.prototype.RenderTickets = function() {
                    var e = this;
                    this.TicketContainers.Init("LuckyDrawPanel/Component/LuckyDrawTicketComponent", d.default, function(t, n) {
                        t.Set({
                            num: e._mineNums[n].numebr,
                            type: d.LuckyDrawTicketBallType.Small,
                            isNew: !1,
                            RewardLevel: e._mineNums[n].rewardsType,
                            atlas: e._luckyDrawAtlas
                        }, !0, 1, e._mineNums[n].rewardsTypeName), t.node.width = 464, t.node.height = 176
                    }), this.TicketContainers.Set(this._mineNums.length)
                }, t.prototype.RenderRewards = function() {
                    var e = this;
                    this._rewards && this._openState != l.notOpen ? (this.RewardsContainers.Init(u.BundlePath.ItemComponent, p.ItemComponent, function(t, n) {
                        t.Init(e._rewards[n]), t.node.y = -30
                    }), this.RewardsContainers.Set(this._rewards.length), this._rewards.length < 5 && (this.ScrollView.content.anchorX = .5, this.ScrollView.content.x = 0)) : this.RewardsContainers.node.active = !1
                }, t.prototype.RenderBtn = function() {
                    switch (this.GetBtnNode.active = !0, this.BottomTips.node.active = !1, this._openState) {
                        case l.notOpen:
                            this.GetBtnNode.active = !1, this.BottomTips.node.active = !0, this.BottomTips.string = "LuckyDraw_notOpen2".ToUILocale();
                            break;
                        case l.canReceive:
                            break;
                        case l.received:
                            this.GetBtnNode.active = !1, this.BottomTips.node.active = !0, this.BottomTips.string = "already_receive".ToUILocale()
                    }
                }, t.prototype.RefreshDeadLine = function() {
                    var e = this._openTime - y.RpcComponent.Instance.ServerTime;
                    e < 0 ? (this.LeftTime.node.parent.active = !1, this.unschedule(this.RefreshDeadLine)) : (this.LeftTime.node.parent.active = !0, this.LeftTime.string = ("LuckyDraw_openTime".ToUILocale().RichTextColor("#ffffff") + f.default.ActivityTimeLeftFormat(e).RichTextColor("#00ff00")).RichTextOutLine("#000000", 3))
                }, t.prototype.onClickGetBtn = function() {
                    c.UIManager.Instance.BackUIPanel(), c.Game.EventDispatcher.Emit(g.EventKeys.LUCKYDRAWPANEL_GET)
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.RefreshDeadLine)
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "SubTitle", void 0), i([_(cc.RichText)], t.prototype, "LeftTime", void 0), i([_(h.default)], t.prototype, "TicketContainers", void 0), i([_(h.default)], t.prototype, "RewardsContainers", void 0), i([_(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([_(cc.Node)], t.prototype, "GetBtnNode", void 0), i([_(cc.Label)], t.prototype, "GetBtnLabel", void 0), i([_(cc.Label)], t.prototype, "BottomTips", void 0), i([I], t)
            }(c.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyDrawTicketComponent": "LuckyDrawTicketComponent",
        "../Components/PrefabListContainerComp": "PrefabListContainerComp"
    }],
    LuckyDrawPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca36em0kopKUZa1pwP/+aF0", "LuckyDrawPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/CommonImgBtnComponent"),
            p = e("../Components/HRToggleGroupComponent"),
            d = e("../Components/ItemComponent"),
            h = e("../Components/LuckyDrawRewardComponent"),
            f = e("../Components/LuckyDrawTicketComponent"),
            y = e("../Components/PrefabListContainerComp"),
            g = e("./HolyrelicConfigPanel"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("../../Components/DataCenter"),
            _ = e("../../Components/RpcComponent"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../../Consts/Etc"),
            b = e("../../../Util/TimeUtil"),
            S = e("../Auxiliary/UIUtlity"),
            w = e("../../Auxiliary/EventKeys"),
            P = e("../../Components/GlobalConfigComponent"),
            A = e("./LuckyDrawMinePanel"),
            T = e("../../RedDot/RedDotManager"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property,
            O = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Labels = [], t.BtnList = [], t.ToggleGroup = null, t.ShowRewardContainer = null, t.OpenRewardsNum = null, t.MineNumber = null, t.MaterialsContainer = null, t.LeftTime = null, t.OpenRewardTime = null, t.ArrowsParent = null, t.ToggleScrollView = null, t._labelsConfig = [], t._btnConfig = [], t._toggleRedDot = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(w.EventKeys.LUCKYDRAWPANEL_EXCHANGE, this.OnExchange, this), l.Game.EventDispatcher.On(w.EventKeys.LUCKYDRAWPANEL_GET, this.OnReceive, this), l.Game.EventDispatcher.On(w.EventKeys.LUCKYDRAWPANEL_SHOWREWARDS, this.OnReceive, this)
                }, t.prototype.onDisable = function() {
                    var e = this;
                    this.node.off(this._data.uuid + "_ChangeTurn", this.OnEquDataChange, this), this.node.off(this._data.uuid + "_InitModel", this.OnEquDataChange, this), l.Game.EventDispatcher.Off(w.EventKeys.LUCKYDRAWPANEL_EXCHANGE, this.OnExchange, this), l.Game.EventDispatcher.Off(w.EventKeys.LUCKYDRAWPANEL_GET, this.OnReceive, this), l.Game.EventDispatcher.Off(w.EventKeys.LUCKYDRAWPANEL_SHOWREWARDS, this.OnReceive, this), this.MaterialsContainer.CompList.forEach(function(t) {
                        t.node.off(cc.Node.EventType.MOUSE_DOWN, e.OnClickItem, e)
                    })
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.RED_DOT_PREFAB, cc.Prefab), n = this.LoadDynamicAsset("LuckyDrawPanel/PNG/LuckyDrawPanel", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o._reddotPrefab = e[0], o._luckyDrawAtlas = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._labelsConfig = ["LuckyDraw_title".ToUILocale(), "LuckyDraw_number".ToUILocale(), "LuckyDraw_notOpen".ToUILocale(), "LuckyDraw_mineNum".ToUILocale(), "LuckyDraw_materials".ToUILocale()], this._btnConfig = [{
                        label: "",
                        fun: "rule"
                    }, {
                        label: "LuckyDraw_showInfo".ToUILocale(),
                        fun: "show"
                    }, {
                        label: "climbTower_rankList_showMore".ToUILocale(),
                        fun: "mine"
                    }, {
                        label: "LuckyDraw_exchange".ToUILocale(),
                        fun: "exchange"
                    }, {
                        label: "",
                        fun: "back"
                    }, {
                        label: "LuckyDraw_pack".ToUILocale(),
                        fun: "pack"
                    }, {
                        label: "",
                        fun: "ArrowLeft"
                    }, {
                        label: "",
                        fun: "ArrowRight"
                    }], this.ConfigBtn(), this.ConfigLabel()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._data = this.node.addComponent(M), this._data.SetActivityId(this._activityId), this._data.InitConfig()
                }, t.prototype.DisPlay = function(t) {
                    return a(this, void 0, Promise, function() {
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this, t), t ? [3, 3] : [4, this._data.InitModel()];
                                case 1:
                                    return n.sent(), this._data._turn = Math.min(this._data.OpenTimes.length - 1, this._data.LateOpenTurn + 1), this.node.on(this._data.uuid + "_ChangeTurn", this.OnEquDataChange, this), this.node.on(this._data.uuid + "_InitModel", this.OnEquDataChange, this), [4, this.RenderToggle()];
                                case 2:
                                    n.sent(), this.RenderRewards(), this.RenderOpenNumber(), this.RenderMineNumber(), this.RenderMaterials(), this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1), n.label = 3;
                                case 3:
                                    return this.ConfigExchangeBtn(), this.BindRedDot(), this._data.LateOpenTurn == this._data.OpenTimes.length - 1 ? this.BtnList[5].node.active = !1 : this.BtnList[5].node.active = !0, [2]
                            }
                        })
                    })
                }, t.prototype.ConfigBtn = function() {
                    var e = this;
                    this.BtnList.forEach(function(t, n) {
                        t.Set(e["OnClick_" + e._btnConfig[n].fun].bind(e), e._btnConfig[n].label)
                    })
                }, t.prototype.ConfigExchangeBtn = function() {
                    var e = b.TimeUtil.Get0ClockTs(this._data.OpenTimes[this._data.LateOpenTurn]) + v.Etc.DayDuration; - 1 == this._data.LateOpenTurn && (e = C.default.Instance.ComputeActivitStartTime(this._data.Config.Common));
                    var t = this._data.OpenTimes[this._data.Turn],
                        n = _.RpcComponent.Instance.ServerTime;
                    this.BtnList[3].node.active = n > e && n < t
                }, t.prototype.ConfigLabel = function() {
                    var e = this;
                    this.Labels.forEach(function(t, n) {
                        t.string = e._labelsConfig[n]
                    })
                }, t.prototype.OnClick_rule = function() {
                    var e = {
                        name: "LuckyDraw_ruleTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["LuckyDraw_ruleContent".ToUILocale()]
                    };
                    S.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnClick_show = function() {
                    var e = this;
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyDrawPublicityPanel.Path, this._activityId, this._data.Config.CustomPart.Period.length, this._data.Config.__Rewards.length - 2, this._data.Turn, this._data.Config.__Rewards.map(function(t) {
                        return e._data.Config._Locale[Number(t.Name) - 1].Content
                    }), this._data.LateOpenTurn, this._data.OpenTimes)
                }, t.prototype.OnClick_mine = function() {
                    var e = this;
                    if (this._data.MineNum && this._data.MineNum.length > 0) {
                        var t = this._data.RewardsMap,
                            n = this._data.MineNum.map(function(n) {
                                return {
                                    numebr: n.number,
                                    rewardsType: n.rewardLevel,
                                    rewardsTypeName: e._data.Opened ? e._data.Config._Locale[Number(e._data.Config.__Rewards[t[n.rewardLevel]].Name) - 1].Content : "",
                                    showNew: !1
                                }
                            }),
                            o = this._data.JudgeRewardState(this._data.Turn);
                        l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyDrawMinePanel.Path, n, this._data.Rewards, this._data.OpenTimes[this._data.Turn], o)
                    } else S.UIUtlity.ShowFloatingHint("LuckyDraw_notNumber".ToUILocale())
                }, t.prototype.OnClick_exchange = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyDrawExchangePanel.Path, this._data.Materials)
                }, t.prototype.OnClick_back = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClick_pack = function() {
                    var e = {
                        ActivityId: this._activityId,
                        ActivityGiftPackData: this._data.Config._Packs,
                        Deadline: C.default.Instance.ComputeDeadTime(this._data.Config.Common),
                        BannerPath: P.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/xshd_xykj_001"),
                        Title: "LuckyDraw_packTitle".ToUILocale(),
                        LoadBannerWay: 1
                    };
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.CommonGiftPackPanel.Path, e)
                }, t.prototype.OnToggle = function(e) {
                    var t = this.ToggleGroup.ToggleGroup.CompList.indexOf(e);
                    t < 0 || t == this._data.Turn || (this._data.ChangeTurn(t), this.ConfigExchangeBtn(), this.BindRedDot())
                }, t.prototype.OnClick_ArrowLeft = function() {
                    var e = this.ToggleScrollView.content.width - this.ToggleScrollView.node.width,
                        t = -(this.ToggleScrollView.content.x + 458) / e,
                        n = this.ToggleGroup.ToggleGroup.CompList[0].node.width / e,
                        o = Math.max(0, Math.min(1, t - n));
                    this.ToggleScrollView.scrollTo(new cc.Vec2(o, 0), .1)
                }, t.prototype.OnClick_ArrowRight = function() {
                    var e = this.ToggleScrollView.content.width - this.ToggleScrollView.node.width,
                        t = -(this.ToggleScrollView.content.x + 458) / e,
                        n = this.ToggleGroup.ToggleGroup.CompList[0].node.width / e,
                        o = Math.max(0, Math.min(1, t + n));
                    this.ToggleScrollView.scrollTo(new cc.Vec2(o, 0), .1)
                }, t.prototype.RenderToggle = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    if (!this._data.Config) return [2];
                                    if (1 == this._data.Config.CustomPart.Period.length) return this.ToggleGroup.node.active = !1, [2];
                                    for (e = [], t = 0; t < this._data.Config.CustomPart.Period.length; t++) e.push("activity_phase".ToUILocale().Fmt(t + 1));
                                    return [4, this.ToggleGroup.Set(e, function(t, o) {
                                        t.Init(e[o]), t.node.on("toggle", n.OnToggle, n);
                                        var r = cc.instantiate(n._reddotPrefab);
                                        r.scaleY = -1, r.x = 65, r.y = -20, t.node.addChild(r), r.active = !1, n._toggleRedDot.push(r), t.DisableNode.off(cc.Node.EventType.MOUSE_DOWN, n.OnclickNotOpenToggle, n), o > n._data.LateOpenTurn + 1 && (t.SetInteractable(!1), t.DisableNode.on(cc.Node.EventType.MOUSE_DOWN, n.OnclickNotOpenToggle, n)), o == n._data.Turn && (t.isChecked = !0);
                                        var i = new cc.Node;
                                        i.scaleX = .5, i.scaleY = -.5, i.addComponent(cc.Sprite).spriteFrame = S.UIUtlity.COMMON_ATLAS4.getSpriteFrame("lock_gold"), t.DisableNode.addChild(i)
                                    })];
                                case 1:
                                    return o.sent(), this.ArrowsParent.active = e.length > 4, [2]
                            }
                        })
                    })
                }, t.prototype.OnExchange = function(e) {
                    C.default.CheckActivityIsEnd(this._data.Config.Common, !0) || (this._data.ExchangeNumber(e), this.BindRedDot())
                }, t.prototype.OnReceive = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, this._data.GetRewards(this._data.Turn)];
                                case 1:
                                    return e = o.sent(), t = {}, this._data.Config.__Rewards.forEach(function(e) {
                                        t[e.Id] = {
                                            rewardsName: n._data.Config._Locale[Number(e.Name) - 1].Content,
                                            count: 0
                                        }
                                    }), this._data.Model.Int2DArray.forEach(function(e) {
                                        t[e.Items[2]].count++
                                    }), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckDrawShowRewardsPanel.Path, Object.values(t), Object.values(e.Rewards)), this.BindRedDot(), [2]
                            }
                        })
                    })
                }, t.prototype.RenderRewards = function() {
                    var e = this;
                    this.ShowRewardContainer.Init("LuckyDrawPanel/Component/LuckyDrawRewardComponent", h.default, function(t, n) {
                        var o = e._data.Config.__Rewards[n].Desc,
                            r = e._data.Config.__Rewards[n].Reward.map(function(e) {
                                return {
                                    ItemId: e.Items[0],
                                    Count: e.Items[1]
                                }
                            });
                        t.Set({
                            name: e._data.Config._Locale[Number(e._data.Config.__Rewards[n].Name) - 1].Content,
                            Level: n,
                            Condiction: o,
                            Rewards: r
                        })
                    }), this.ShowRewardContainer.Set(Object.keys(this._data.RewardsType).length)
                }, t.prototype.RenderOpenNumber = function() {
                    if (!(_.RpcComponent.Instance.ServerTime >= this._data.OpenTimes[this._data.Turn])) return this.OpenRewardLeftTime(), this.schedule(this.OpenRewardLeftTime, 1), this.Labels[2].node.active = !0, void(this.OpenRewardsNum.node.active = !1);
                    this.OpenRewardTime.string = "LuckyDraw_opened".ToUILocale().RichTextColor("#ffe487"), this.Labels[2].node.active = !1, this.OpenRewardsNum.node.active = !0, this.OpenRewardsNum.Set({
                        num: this._data.OpenNum,
                        type: f.LuckyDrawTicketBallType.Big,
                        isNew: !1,
                        atlas: this._luckyDrawAtlas
                    }, !1), this.unschedule(this.OpenRewardLeftTime)
                }, t.prototype.RenderMineNumber = function() {
                    var e = this,
                        t = this._data.RewardsMap;
                    this.MineNumber.Init("LuckyDrawPanel/Component/LuckyDrawTicketComponent", f.default, function(n, o) {
                        n.Set({
                            num: e._data.MineNum[o].number,
                            type: f.LuckyDrawTicketBallType.Small,
                            isNew: !1,
                            RewardLevel: e._data.MineNum[o].rewardLevel,
                            atlas: e._luckyDrawAtlas
                        }, void 0, void 0, e._data.Opened ? e._data.Config._Locale[Number(e._data.Config.__Rewards[t[e._data.MineNum[o].rewardLevel]].Name) - 1].Content : void 0)
                    }), this.MineNumber.Set(this._data.MineNum ? this._data.MineNum.length : 0)
                }, t.prototype.RenderMaterials = function() {
                    var e = this;
                    this.MaterialsContainer.Init(c.BundlePath.ItemComponent, d.ItemComponent, function(t, n) {
                        t.Init(e._data.Materials[n]), t.node.off(cc.Node.EventType.MOUSE_DOWN, e.OnClickItem, e), t.node.on(cc.Node.EventType.MOUSE_DOWN, e.OnClickItem, e)
                    }), this.MaterialsContainer.Set(this._data.Materials.length)
                }, t.prototype.OnEquDataChange = function() {
                    this.RenderOpenNumber(), this.RenderMineNumber()
                }, t.prototype.RefreshDeadLine = function() {
                    var e = C.default.Instance.ComputeExtraShowDeadTime(this._data.Config.Common) - _.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "ActiveCollection_DeadlineTimeRichText".ToUILocale().Fmt(C.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OpenRewardLeftTime = function() {
                    var e = _.RpcComponent.Instance.ServerTime,
                        t = this._data.OpenTimes[this._data.Turn];
                    e < t ? this.OpenRewardTime.string = "LuckyDraw_openTime".ToUILocale().RichTextColor("#ffe487") + C.default.ActivityTimeLeftFormat(t - e).RichTextColor("#79f22a") : (this.unschedule(this.OpenRewardLeftTime), l.UIManager.Instance.ShowUIPanel(c.PanelConfig.LuckyDrawShowNumberPanel.Path, this._data.OpenNum), this._data.NeedRefreshData("InitConfig"), this.RenderMineNumber())
                }, t.prototype.BindRedDot = function() {
                    T.RedDotManager.Instance.BindInstance(this.BtnList[5].node, T.RedDotManager.Instance.InstanceRedDot.LuckyDrawPack, {
                        Value1: this._activityId
                    }), T.RedDotManager.Instance.BindInstance(this.BtnList[3].node, T.RedDotManager.Instance.InstanceRedDot.LuckyDrawExchangeBtn, {
                        Value1: this._activityId
                    });
                    for (var e = 0; e < this._toggleRedDot.length; e++) this._toggleRedDot[e].active = this.ToggleNeedRedDot(e);
                    T.RedDotManager.Instance.BindInstance(this.BtnList[2].node, T.RedDotManager.Instance.InstanceRedDot.LuckyDrawDetial, {
                        Value1: this._activityId,
                        extra: this._data.Turn
                    })
                }, t.prototype.ToggleNeedRedDot = function(e) {
                    for (var t = this._data.Config.CustomPart.ExchangeItem, n = 0; n < t.length; n++) {
                        var o = t[n].Items[0];
                        if (t[n].Items[1] > I.DataCenter.Instance.GetItemCount(o)) break
                    }
                    var r, i = this._data.OpenTimes[e];
                    r = e <= 0 ? 0 : b.TimeUtil.Get0ClockTs(this._data.OpenTimes[e - 1]) + v.Etc.DayDuration;
                    var a = _.RpcComponent.Instance.ServerTime;
                    if (n == t.length && a > r && a < i) return !0;
                    for (var s = this._data.Model, l = 0; l < s.Int2DArray.length; l++)
                        if (s.Int2DArray[l] && !s.Int2DArray[l].Items[3] && s.Int2DArray[l].Items[1] == e + 1 && this._data.LateOpenTurn >= e) return !0;
                    return !1
                }, t.prototype.OnClickItem = function(e) {
                    var t = e.target,
                        n = t.getComponent(d.ItemComponent);
                    S.UIUtlity.ShowItemTip(n.ItemId, t)
                }, t.prototype.OnclickNotOpenToggle = function() {
                    S.UIUtlity.ShowFloatingHint("LuckyDraw_notOpen3".ToUILocale())
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.OpenRewardLeftTime), this.unschedule(this.RefreshDeadLine)
                }, i([k([cc.Label])], t.prototype, "Labels", void 0), i([k([u.default])], t.prototype, "BtnList", void 0), i([k(p.default)], t.prototype, "ToggleGroup", void 0), i([k(y.default)], t.prototype, "ShowRewardContainer", void 0), i([k(f.default)], t.prototype, "OpenRewardsNum", void 0), i([k(y.default)], t.prototype, "MineNumber", void 0), i([k(y.default)], t.prototype, "MaterialsContainer", void 0), i([k(cc.RichText)], t.prototype, "LeftTime", void 0), i([k(cc.RichText)], t.prototype, "OpenRewardTime", void 0), i([k(cc.Node)], t.prototype, "ArrowsParent", void 0), i([k(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([L], t)
            }(l.BaseUIFullScreenPanel);
        n.default = O;
        var M = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._rewardsType = {}, t._turn = 0, t._maxTurns = 0, t._lateOpenNumberTurn = 0, t._openTimes = [], t._rewardsMap = {}, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "Rewards", {
                get: function() {
                    return this._allRewards[this._turn + 1]
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "OpenNum", {
                get: function() {
                    return this._openNums[this._turn].toString()
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "MineNum", {
                get: function() {
                    var e = this._allNumbers[this._turn + 1];
                    return e && e.length > 0 && e.sort(function(e, t) {
                        return e.rewardLevel && t.rewardLevel ? e.rewardLevel - t.rewardLevel : 1
                    }), e
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Materials", {
                get: function() {
                    return this._materials
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Turn", {
                get: function() {
                    return this._turn
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Config", {
                get: function() {
                    return this._config
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "RewardsType", {
                get: function() {
                    return this._rewardsType
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "OpenTimes", {
                get: function() {
                    return this._openTimes
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "LateOpenTurn", {
                get: function() {
                    return this._lateOpenNumberTurn
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Model", {
                get: function() {
                    return this._model
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "RewardsMap", {
                get: function() {
                    return this._rewardsMap
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "Opened", {
                get: function() {
                    return this._turn <= this._lateOpenNumberTurn
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.InitRelation = function() {
                e.prototype.InitRelation.call(this), this.AddFun("SetActivityId", ["InitConfig"]), this.AddFun("InitConfig", ["InitModel"])
            }, t.prototype.SetActivityId = function(e) {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._activityId = e, [2]
                    })
                })
            }, t.prototype.ChangeTurn = function(e) {
                this._turn = e, this.DataChanged("ChangeTurn")
            }, t.prototype.InitConfig = function() {
                var e = this;
                this._config = I.DataCenter.Instance.ActivityConfigs[this._activityId], this._config.__Rewards.forEach(function(t) {
                    e._rewardsType[t.Id] = t
                }), this._materials = this._config.CustomPart.ExchangeItem.map(function(e) {
                    return {
                        ItemId: e.Items[0],
                        Count: e.Items[1]
                    }
                }), this.Config.__Rewards.forEach(function(t, n) {
                    e._rewardsMap[t.Id] = n
                });
                var t = 0,
                    n = _.RpcComponent.Instance.ServerTime,
                    o = C.default.Instance.ComputeActivitStartTime(this._config.Common),
                    r = b.TimeUtil.Get0ClockTs(o);
                this._maxTurns = this._config.CustomPart.Period.length, this._openTimes = this._config.CustomPart.Period.map(function(n) {
                    return r + ((t += n) - 1) * v.Etc.DayDuration + e._config.CustomPart.OpenTime * v.Etc.HourDuration
                }), n >= o && (this._lateOpenNumberTurn = this._openTimes.findIndex(function(t, o) {
                    return o <= e._openTimes.length - 1 && n > e._openTimes[o] && (!e._openTimes[o + 1] || n < e._openTimes[o + 1])
                }))
            }, t.prototype.InitModel = function() {
                return a(this, void 0, void 0, function() {
                    var e, t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._model = I.DataCenter.Instance.GetDataById(m.UserActivity_Model, this._activityId), this._allNumbers = [], this._allRewards = [], this._model && this._model.Int2DArray && this._model.Int2DArray.forEach(function(e) {
                                    var n = e.Items,
                                        o = n[0],
                                        r = n[1],
                                        i = n[2];
                                    t._allNumbers[r] || (t._allNumbers[r] = []), t._allRewards[r] || (t._allRewards[r] = []);
                                    var a = o.toString().split("").length < 5 ? "0" + o.toString() : o.toString();
                                    t._allNumbers[r].push({
                                        number: a,
                                        rewardLevel: i
                                    });
                                    var s = t._rewardsType[i].Reward.map(function(e) {
                                        return {
                                            ItemId: e.Items[0],
                                            Count: e.Items[1]
                                        }
                                    });
                                    t._allRewards[r] = t._allRewards[r].concat(s)
                                }), e = this, [4, this.GetOpenNumber()];
                            case 1:
                                return e._openNums = n.sent(), this._allRewards = this._allRewards.map(function(e) {
                                    return t.ItemDataCombine(e)
                                }), [2]
                        }
                    })
                })
            }, t.prototype.GetOpenNumber = function() {
                var e = this;
                return new Promise(function(t) {
                    var n = new m.Req_Activity_GetLuckyLotteryInfo;
                    n.ActivityId = e._activityId, _.RpcComponent.Instance.Call(n, function(e) {
                        t(e.Codes)
                    })
                })
            }, t.prototype.ExchangeNumber = function(e) {
                var t = this;
                if (0 != e) return new Promise(function(n) {
                    var o = new m.Req_Activity_BuyLuckyLottery;
                    o.ActivityId = t._activityId, o.Count = e, _.RpcComponent.Instance.Call(o, function(e) {
                        t.NeedRefreshData("InitModel"), S.UIUtlity.ShowFloatingHint("LuckyDraw_getTick".ToUILocale().Fmt(e.Code.length)), n(e)
                    })
                })
            }, t.prototype.GetRewards = function(e) {
                var t = this;
                return new Promise(function(n) {
                    var o = new m.Req_Activity_GetLuckyLotteryReward;
                    o.ActivityId = t._activityId, o.Period = e + 1, _.RpcComponent.Instance.Call(o, function(e) {
                        t.NeedRefreshData("InitModel"), n(e)
                    })
                })
            }, t.prototype.ItemDataCombine = function(e) {
                var t = {},
                    n = [];
                for (var o in e.forEach(function(e) {
                        t[e.ItemId] ? t[e.ItemId] += e.Count : t[e.ItemId] = e.Count
                    }), t) n.push({
                    ItemId: Number(o),
                    Count: t[o]
                });
                return n
            }, t.prototype.JudgeRewardState = function(e) {
                var t = this._model.Int2DArray.findIndex(function(t) {
                        return t.Items[1] == e + 1
                    }),
                    n = _.RpcComponent.Instance.ServerTime;
                return this._model.Int2DArray[t].Items[3] ? A.LuckyDrawRewardState.received : n >= this._openTimes[e] ? A.LuckyDrawRewardState.canReceive : A.LuckyDrawRewardState.notOpen
            }, t
        }(g.HolyrelicConfigPanelDataTool);
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CommonImgBtnComponent": "CommonImgBtnComponent",
        "../Components/HRToggleGroupComponent": "HRToggleGroupComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyDrawRewardComponent": "LuckyDrawRewardComponent",
        "../Components/LuckyDrawTicketComponent": "LuckyDrawTicketComponent",
        "../Components/PrefabListContainerComp": "PrefabListContainerComp",
        "./HolyrelicConfigPanel": "HolyrelicConfigPanel",
        "./LuckyDrawMinePanel": "LuckyDrawMinePanel"
    }],
    LuckyDrawPlayerInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "04d73zQAINGgq95KAb9H/ey", "LuckyDrawPlayerInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./LuckyDrawPlayerInfoItem"),
            u = e("./LuckyDrawRewardLevelComponent"),
            p = e("./PrefabListContainerComp"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TitleContainer = null, t.EmptyNode = null, t.EmptyLabel = null, t.InfoContainer = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n, o) {
                    return a(this, void 0, void 0, function() {
                        var r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this._titlePrefab ? [3, 2] : (r = this, [4, l.AssetsManager.Instance.LoadAsset("LuckyDrawPanel/Component/LuckyDrawRewardLevelComponent")]);
                                case 1:
                                    if (r._titlePrefab = a.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._titlePrefab), [2];
                                    a.label = 2;
                                case 2:
                                    return t && 0 != t.length ? this.EmptyNode.active = !1 : (this.EmptyLabel.string = "LuckyDraw_noOne".ToUILocale(), this.EmptyNode.active = !0), this.InfoContainer.Init("LuckyDrawPanel/Component/LuckyDrawPlayerInfoItem", c.default, function(e, o) {
                                        e.Set(t[o], -1 != (null == n ? void 0 : n.indexOf[o]))
                                    }), this.InfoContainer.Set(t ? t.length : 0), 0 == this.TitleContainer.children.length && ((i = cc.instantiate(this._titlePrefab)).getComponent(u.default).Set(e, !1, o), this.TitleContainer.addChild(i)), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._titlePrefab)
                }, i([f(cc.Node)], t.prototype, "TitleContainer", void 0), i([f(cc.Node)], t.prototype, "EmptyNode", void 0), i([f(cc.Label)], t.prototype, "EmptyLabel", void 0), i([f(p.default)], t.prototype, "InfoContainer", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./LuckyDrawPlayerInfoItem": "LuckyDrawPlayerInfoItem",
        "./LuckyDrawRewardLevelComponent": "LuckyDrawRewardLevelComponent",
        "./PrefabListContainerComp": "PrefabListContainerComp"
    }],
    LuckyDrawPlayerInfoItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "84352BzQdtImqOxMex22nCZ", "LuckyDrawPlayerInfoItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Label = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t) {
                    void 0 === t && (t = !1), this.Label.string = e, this.Label.node.getComponent(cc.LabelOutline).enabled = t, this.Label.node.color = t ? (new cc.Color).fromHEX("#6eeea7") : (new cc.Color).fromHEX("#624e3c")
                }, i([l(cc.Label)], t.prototype, "Label", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    LuckyDrawPublicityPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0bc60MUiZlLV4E2s5nOwFAx", "LuckyDrawPublicityPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/RpcComponent"),
            u = e("../Components/HRToggleGroupComponent"),
            p = e("../Components/LuckyDrawPlayerInfoComponent"),
            d = e("../Components/PrefabListContainerComp"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/DataCenter"),
            y = e("../Auxiliary/UIUtlity"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.TotalNumbers = null, t.ToggleGroup = null, t.ToggleScrollView = null, t.LeftArrow = null, t.RightArrow = null, t.InfoContainer = null, t._infoData = {}, t._selfParam = {}, t._turn = 0, t._lateOpenTurn = 0, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "LuckyDraw_showInfo".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.LeftArrow.on("click", this.OnClickLeft, this), this.RightArrow.on("click", this.OnClickRight, this)
                }, t.prototype.onDisable = function() {
                    this.LeftArrow.off("click", this.OnClickLeft, this), this.RightArrow.off("click", this.OnClickRight, this)
                }, t.prototype.InitData = function(t) {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.InitData.call(this), this._activityId = t[0], this._toggleCount = t[1], this._rewardTypeCount = t[2], this._turn = t[3], this._titleNames = t[4], this._lateOpenTurn = t[5], this._openTimes = t[6], [2]
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    return a(this, void 0, Promise, function() {
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this, t), t ? [3, 2] : [4, this.GetParticipantInfo()];
                                case 1:
                                    n.sent(), this.RenderToggle(), this.RenderInfo(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.RenderInfo = function() {
                    var e = this,
                        t = this._openTimes[this._turn],
                        n = c.RpcComponent.Instance.ServerTime;
                    this.InfoContainer.Init("LuckyDrawPanel/Component/LuckyDrawPlayerInfoComponent", p.default, function(o, r) {
                        n > t ? o.Set(r, e._infoData[r + 1], e._selfParam[r + 1], e._titleNames[r]) : o.Set(r, [], [], e._titleNames[r])
                    }), this.InfoContainer.Set(this._rewardTypeCount)
                }, t.prototype.RenderToggle = function() {
                    for (var e = this, t = [], n = 0; n < this._toggleCount; n++) t.push("activity_phase".ToUILocale().Fmt(n + 1));
                    this.ToggleGroup.Set(t, function(n, o) {
                        n.Init(t[o]), n.node.on("toggle", e.OnToggle, e), o == e._turn && (n.isChecked = !0), n.node.off(cc.Node.EventType.MOUSE_DOWN, e.OnclickToggle, e), o > e._lateOpenTurn + 1 && (n.SetInteractable(!1), n.node.on(cc.Node.EventType.MOUSE_DOWN, e.OnclickToggle, e));
                        var r = new cc.Node;
                        r.scaleX = .5, r.scaleY = -.5, r.addComponent(cc.Sprite).spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("lock_gold"), n.DisableNode.addChild(r)
                    }), this.LeftArrow.parent.active = t.length > 4
                }, t.prototype.OnToggle = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return (t = this.ToggleGroup.ToggleGroup.CompList.indexOf(e)) < 0 || t == this._turn ? [2] : (this._turn = t, [4, this.GetParticipantInfo()]);
                                case 1:
                                    return n.sent(), this.RenderInfo(), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickLeft = function() {
                    var e = this.ToggleScrollView.content.width - this.ToggleScrollView.node.width,
                        t = -(this.ToggleScrollView.content.x + 458) / e,
                        n = this.ToggleGroup.ToggleGroup.CompList[0].node.width / e,
                        o = Math.max(0, Math.min(1, t - n));
                    this.ToggleScrollView.scrollTo(new cc.Vec2(o, 0), .1)
                }, t.prototype.OnClickRight = function() {
                    var e = this.ToggleScrollView.content.width - this.ToggleScrollView.node.width,
                        t = -(this.ToggleScrollView.content.x + 458) / e,
                        n = this.ToggleGroup.ToggleGroup.CompList[0].node.width / e,
                        o = Math.max(0, Math.min(1, t + n));
                    this.ToggleScrollView.scrollTo(new cc.Vec2(o, 0), .1)
                }, t.prototype.onDestroy = function() {}, t.prototype.GetParticipantInfo = function() {
                    var e = this;
                    return new Promise(function(t) {
                        var n = new h.Req_Activity_GetLuckyLotteryPlayerInfo;
                        n.ActivityId = e._activityId, n.Period = e._turn + 1, c.RpcComponent.Instance.Call(n, function(n) {
                            e._infoData = {}, e._selfParam = {}, n.Players.forEach(function(t) {
                                e._infoData[t.Value1] || (e._infoData[t.Value1] = []), e._infoData[t.Value1].push("[" + t.Zone + "]" + t.Name), t.Uid == f.DataCenter.Instance.Uid && (e._selfParam[t.Value1] || (e._selfParam[t.Value1] = []), e._selfParam[t.Value1].push(e._infoData[t.Value1].length - 1))
                            }), e._totalCount = n.Count, t(n)
                        })
                    })
                }, t.prototype.OnclickToggle = function() {
                    y.UIUtlity.ShowFloatingHint("LuckyDraw_notOpen3".ToUILocale())
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.RichText)], t.prototype, "TotalNumbers", void 0), i([I(u.default)], t.prototype, "ToggleGroup", void 0), i([I(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([I(cc.Node)], t.prototype, "LeftArrow", void 0), i([I(cc.Node)], t.prototype, "RightArrow", void 0), i([I(d.default)], t.prototype, "InfoContainer", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HRToggleGroupComponent": "HRToggleGroupComponent",
        "../Components/LuckyDrawPlayerInfoComponent": "LuckyDrawPlayerInfoComponent",
        "../Components/PrefabListContainerComp": "PrefabListContainerComp"
    }],
    LuckyDrawRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e48fcMWNyFElqAGxRjhQkpJ", "LuckyDrawRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Auxiliary/GlobalDefine"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("./ItemComponent"),
            p = e("./LuckyDrawRewardLevelComponent"),
            d = e("./PrefabListContainerComp"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CondictionLabel = null, t.RewardLevel = null, t.ItemContainer = null, t
                }
                return r(t, e), t.prototype.Set = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.RewardLevel.Set(e.Level, !0, e.name), this.CondictionLabel.string = e.Condiction, [4, this.ItemContainer.Init(l.BundlePath.ItemComponent, u.ItemComponent, function(n, o) {
                                        n.Init(e.Rewards[o]), n.node.y = -20, n.node.off(cc.Node.EventType.MOUSE_DOWN, t.OnClickItem, t), n.node.on(cc.Node.EventType.MOUSE_DOWN, t.OnClickItem, t)
                                    })];
                                case 1:
                                    return n.sent(), this.ItemContainer.Set(e.Rewards.length), [2]
                            }
                        })
                    })
                }, t.prototype.OnClickItem = function(e) {
                    var t = e.target,
                        n = t.getComponent(u.ItemComponent);
                    c.UIUtlity.ShowItemTip(n.ItemId, t)
                }, i([y(cc.Label)], t.prototype, "CondictionLabel", void 0), i([y(p.default)], t.prototype, "RewardLevel", void 0), i([y(d.default)], t.prototype, "ItemContainer", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent",
        "./LuckyDrawRewardLevelComponent": "LuckyDrawRewardLevelComponent",
        "./PrefabListContainerComp": "PrefabListContainerComp"
    }],
    LuckyDrawRewardLevelComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "930c5JyoDZCRYUni5IHidnU", "LuckyDrawRewardLevelComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.LuckyDrawRewardLevel = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property;
        (function(e) {
            e[e.SpecialPrize = 0] = "SpecialPrize", e[e.FirstPrize = 1] = "FirstPrize", e[e.SecondPrize = 2] = "SecondPrize", e[e.ThirdPrize = 3] = "ThirdPrize", e[e.ParticipationAward = 4] = "ParticipationAward"
        })(n.LuckyDrawRewardLevel || (n.LuckyDrawRewardLevel = {}));
        var d = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Name = null, t.TitleBack = null, t.Back = null, t
            }
            var n;
            return r(t, e), n = t, t.prototype.Set = function(e, t, o) {
                return void 0 === t && (t = !0), void 0 === o && (o = ""), a(this, void 0, void 0, function() {
                    var r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return this._atlas ? [3, 2] : (r = this, [4, l.AssetsManager.Instance.LoadAsset("LuckyDrawPanel/PNG/LuckyDrawPanel", cc.SpriteAtlas)]);
                            case 1:
                                if (r._atlas = a.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._atlas), [2];
                                a.label = 2;
                            case 2:
                                return this.Back.node.active = t, i = e < 4 ? n._pathConfig[e] : n._pathConfig[4], this.Name.string = o, this.Name.node.getComponent(cc.LabelOutline).color = (new cc.Color).fromHEX(i.OutLineColor), this.TitleBack.spriteFrame = this._atlas.getSpriteFrame(i.TitleSpriteName), [2]
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                this._atlas && l.AssetsManager.Instance.UnloadAsset(this._atlas)
            }, t._pathConfig = [{
                TitleSpriteName: "RewardsLevel0",
                OutLineColor: "#ac2f17"
            }, {
                TitleSpriteName: "RewardsLevel1",
                OutLineColor: "#be7102"
            }, {
                TitleSpriteName: "RewardsLevel2",
                OutLineColor: "#537987"
            }, {
                TitleSpriteName: "RewardsLevel3",
                OutLineColor: "#8d5420"
            }, {
                TitleSpriteName: "RewardsLevel4",
                OutLineColor: "#624e3c"
            }], i([p(cc.Label)], t.prototype, "Name", void 0), i([p(cc.Sprite)], t.prototype, "TitleBack", void 0), i([p(cc.Sprite)], t.prototype, "Back", void 0), n = i([u], t)
        }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    LuckyDrawShowNumberPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c617eIe8GtKjb04+esRO/p2", "LuckyDrawShowNumberPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed), t.NumberLabels = [], t.EventBlockNode = null, t.MainNode = null, t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._number = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), t || (this.MainNode.scaleX = 0, this.MainNode.scaleY = 0, this.SetNumber(), this.PlayTween())
                }, t.prototype.SetNumber = function() {
                    var e = this;
                    this._number.split("").forEach(function(t, n) {
                        e.NumberLabels[n].string = t
                    })
                }, t.prototype.PlayTween = function() {
                    var e = this;
                    this.MainNode.scaleX = 0, this.MainNode.scaleY = 0, this.EventBlockNode.active = !0, cc.tween(this.MainNode).to(.2, {
                        scaleX: 1,
                        scaleY: 1
                    }, {
                        easing: "cubicOut"
                    }).call(function() {
                        e.EventBlockNode.active = !1
                    }).start()
                }, t.prototype.onDestroy = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.LUCKYDRAWPANEL_SHOWREWARDS)
                }, i([u([cc.Label])], t.prototype, "NumberLabels", void 0), i([u(cc.Node)], t.prototype, "EventBlockNode", void 0), i([u(cc.Node)], t.prototype, "MainNode", void 0), i([c], t)
            }(a.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    LuckyDrawTicketComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bfb17Tud2RIm5eRB34e/3TG", "LuckyDrawTicketComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.LuckyDrawTicketBallType = void 0;
        var a, s = e("./LuckyDrawBallComponent"),
            l = e("./LuckyDrawRewardLevelComponent"),
            c = e("./PrefabListContainerComp");
        (function(e) {
            e[e.Small = 0] = "Small", e[e.Big = 1] = "Big"
        })(a = n.LuckyDrawTicketBallType || (n.LuckyDrawTicketBallType = {}));
        var u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RewardLevelLabel = null, t.NewNode = null, t.RewardLevelSprite = null, t.BackSprite = null, t.NumberContainer = null, t.BackNode = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n, o) {
                    void 0 === t && (t = !0), void 0 === n && (n = .7), void 0 === o && (o = ""), this.BackNode.active = t, this.NewNode.active = e.isNew, o && "" !== o ? (this.RewardLevelLabel.node.parent.active = !0, this.RewardLevelLabel.string = o, e && e.RewardLevel && e.atlas && (this.BackSprite.spriteFrame = e.RewardLevel > l.LuckyDrawRewardLevel.ParticipationAward ? e.atlas.getSpriteFrame("NoRewardTicketBack") : e.atlas.getSpriteFrame("TicketBack_Big"), this.RewardLevelSprite.spriteFrame = e.RewardLevel > l.LuckyDrawRewardLevel.ParticipationAward ? e.atlas.getSpriteFrame("OnTicketRewardNone") : e.atlas.getSpriteFrame("OnTicketRewardLevel"), this.RewardLevelLabel.node.getComponent(cc.LabelOutline).color = e.RewardLevel > l.LuckyDrawRewardLevel.ParticipationAward ? cc.color(113, 78, 41) : cc.color(163, 38, 29))) : (this.RewardLevelLabel.node.parent.active = !1, this.BackSprite.spriteFrame = e.atlas.getSpriteFrame("NoRewardTicketBack"));
                    var r = "LuckyDrawPanel/Component/LuckyDrawSmallBallComponent";
                    e.type == a.Big && (r = "LuckyDrawPanel/Component/LuckyDrawBigBallComponent"), this.NumberContainer.Init(r, s.default, function(t, o) {
                        t.Set(e.num.split("")[o], n)
                    }), this.NumberContainer.Set(e.num.length)
                }, i([d(cc.Label)], t.prototype, "RewardLevelLabel", void 0), i([d(cc.Node)], t.prototype, "NewNode", void 0), i([d(cc.Sprite)], t.prototype, "RewardLevelSprite", void 0), i([d(cc.Sprite)], t.prototype, "BackSprite", void 0), i([d(c.default)], t.prototype, "NumberContainer", void 0), i([d(cc.Node)], t.prototype, "BackNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "./LuckyDrawBallComponent": "LuckyDrawBallComponent",
        "./LuckyDrawRewardLevelComponent": "LuckyDrawRewardLevelComponent",
        "./PrefabListContainerComp": "PrefabListContainerComp"
    }],
    LuckyGiftListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3aa5dSJ9utPS7Osj3r1oCgM", "LuckyGiftListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Channel/ChannelManager"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/ItemComponent"),
            h = e("./DisplayRewardsPanel"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.PurchaseLimit = null, t.ItemContainer = null, t.GetLabel = null, t.GetValue = null, t.MultiDescLabel = null, t.BuyButton = null, t.BuyButtonLabel = null, t.ShowOutTag = null, t.LangTag = null, t.RedDot = null, t._itemNodes = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.LangTag.string = "soldOut".ToUILocale(), this.GetLabel.string = "task_get_score_tag".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.BuyButton.node.on("click", this.OnBuyButtonClick, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.BuyButton.node.off("click", this.OnBuyButtonClick, this), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    var o = this;
                    this._giftPackConfig = t, this._activityConfig = n;
                    var r = 0,
                        i = a.DataCenter.Instance.GetDataById(s.UserActivity_Model, this._activityConfig._id);
                    this.Name.string = "<outline width=3 color=#202434>" + t.Name + "</outline>", i && i.Packs && i.Packs[t.Id] && i.Packs[t.Id].Items && i.Packs[t.Id].Items[0] && (r = i.Packs[t.Id].Items[0]);
                    var l = t.LimitCount - r;
                    if (this.PurchaseLimit.node.parent.active = 0 != t.LimitType, l > 0) {
                        var c = "<color=6eeea7>" + l + "</>",
                            p = "<color=6eeea7>" + t.LimitCount + "</>";
                        this.PurchaseLimit.string = ("mall_buyLimit_" + t.LimitType).ToUILocale().Fmt(c, p)
                    } else this.PurchaseLimit.string = ("mall_buyLimit_" + t.LimitType).ToUILocale().Fmt(l, t.LimitCount);
                    t.LimitType ? (this.ShowOutTag.active = l <= 0, this.BuyButton.node.active = l > 0) : (this.ShowOutTag.active = !1, this.BuyButton.node.active = !0), this.BuyButtonLabel.string = t.Money > 0 ? u.default.Instance.CurrencySymbol + u.default.Instance.ExchangeMoney(t.Money) : "shop_buyFree".ToUILocale(), this.GetLabel.node.parent.active = t.VipPoint > 0, this.GetValue.string = "x" + t.VipPoint, this.RedDot.active = null == t.Money || 0 == t.Money, this._itemNodes.forEach(function(e) {
                        e.active = !1
                    }), t.Items.forEach(function(t, n) {
                        if (!o._itemNodes[n]) {
                            var r = cc.instantiate(e);
                            r.parent = o.ItemContainer, o._itemNodes[n] = r
                        }
                        o._itemNodes[n].active = !0, o._itemNodes[n].getComponent(d.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        })
                    });
                    var h = this.GetGiftMultis(),
                        f = "";
                    h.forEach(function(e, t) {
                        t != h.length - 1 ? f += e + "\u3001" : f += e.toString()
                    }), this.MultiDescLabel.string = "luckyGift_multi".ToUILocale().Fmt(f)
                }, t.prototype.GetGiftMultis = function() {
                    var e = this,
                        t = [],
                        n = this._activityConfig.Prob.find(function(t) {
                            return t.Id == e._giftPackConfig.Id
                        });
                    return n && n.Prob.forEach(function(e) {
                        t.push(e.Items[0])
                    }), t
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = this;
                    if (null == this._giftPackConfig.Money || 0 == this._giftPackConfig.Money) {
                        var t = new s.Req_Pay_ByDiamond;
                        t.Id = this._giftPackConfig.Id, t.ActivityId = this._activityConfig._id, a.RpcComponent.Instance.Call(t, function(t) {
                            if (t.IntParams && t.IntParams[0]) {
                                var n = [t.IntParams[0], t.IntParams[1], e._activityConfig._id, e._giftPackConfig.Id, 1];
                                p.UIUtlity.ShwDisplayRewardPanel(t.Rewards, h.RewardPanelSpineType.MultipleSpine, n)
                            } else p.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                        })
                    } else u.default.Instance.Pay(this._giftPackConfig.Id, this._activityConfig._id)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, i([g(cc.RichText)], t.prototype, "Name", void 0), i([g(cc.RichText)], t.prototype, "PurchaseLimit", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Label)], t.prototype, "GetLabel", void 0), i([g(cc.Label)], t.prototype, "GetValue", void 0), i([g(cc.Label)], t.prototype, "MultiDescLabel", void 0), i([g(cc.Button)], t.prototype, "BuyButton", void 0), i([g(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([g(cc.Node)], t.prototype, "ShowOutTag", void 0), i([g(cc.Label)], t.prototype, "LangTag", void 0), i([g(cc.Node)], t.prototype, "RedDot", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./DisplayRewardsPanel": "DisplayRewardsPanel"
    }],
    LuckyGiftPackRatePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "30f0bJCoe9A76OTj+0X+1Y7", "LuckyGiftPackRatePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Tip, !1), t.Tittle = null, t.GroupGrid = null, t.RichTextNode = null, t._richTextNodes = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "luckyGift_rate_title".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._contents = t[0]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._richTextNodes.forEach(function(e) {
                        e.active = !1
                    }), this._contents.forEach(function(e, t) {
                        if (!n._richTextNodes[t]) {
                            var o = cc.instantiate(n.RichTextNode);
                            o.parent = n.GroupGrid.node, n._richTextNodes[t] = o
                        }
                        n._richTextNodes[t].active = !0, n._richTextNodes[t].getComponent(cc.RichText).string = e
                    })
                }, i([h(cc.Label)], t.prototype, "Tittle", void 0), i([h(cc.Layout)], t.prototype, "GroupGrid", void 0), i([h(cc.Node)], t.prototype, "RichTextNode", void 0), i([d], t)
            }(l.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType"
    }],
    LuckyGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5c581KS6rZDyKyY6PffKyhU", "LuckyGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("./WinnerInfoShow"),
            y = e("./LuckyGiftListItem"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.BannerSprite = null, t.TimeGroup = null, t.TimeLabel = null, t.TimeValue = null, t.WinnerInfoShow = null, t.Content = null, t.RateButton = null, t.RateLabel = null, t.BtnReturn = null, t._gifts = [], t._upToDown = {}, t._giftPackListItems = [], t._assets = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("LuckyGiftPanel/LuckyGiftListItem", cc.Prefab), n = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/Message", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._listItemPrefab = e[0], r._itemPrefab = e[1], r._messagePrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.RateLabel.string = "luckyGift_rate".ToUILocale(), this.TimeLabel.string = "gift_remainderTime".ToUILocale(), this.WinnerInfoShow.Init(this._messagePrefab, function(e, n) {
                        var o = e.getComponent(cc.RichText),
                            r = t.GetGiftById(n.IntParams[1], t._activityConfig._Packs);
                        if (r) {
                            var i = n.IntParams[0];
                            o.string = 5 == i ? "luckyGift_reward_tip".ToUILocale().Fmt(n.StringParams[0], "<color=#ff4b4b>" + i + "</c>", r.Name) : "luckyGift_reward_tip".ToUILocale().Fmt(n.StringParams[0], "<color=#6eeea7>" + i + "</c>", r.Name)
                        }
                    }), this.RateButton.node.on("click", this.ClickRateButton, this), this.BtnReturn.node.on("click", this.OnBtnReturn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._activityId = t[0], this._activityConfig = p.DataCenter.Instance.ActivityConfigs[this._activityId], this._deadLine = c.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common), this.SetBanner()
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, c.default.LoadActivityTexture(this._activityConfig.Common.ShowImage)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.BannerSprite.spriteFrame = e, e && this._assets.push(e), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetRemainTime(), this.SetWinnerInfoShow(), this.SetGiftPackList()
                }, t.prototype.SetRemainTime = function() {
                    var e = this._deadLine - p.RpcComponent.Instance.ServerTime;
                    this.TimeGroup.active = e > 0, this.CountDownActivityTime(), this.unschedule(this.CountDownActivityTime), this.schedule(this.CountDownActivityTime, 1)
                }, t.prototype.CountDownActivityTime = function() {
                    var e = this._deadLine - p.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this.unschedule(this.CountDownActivityTime), void l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REFRESH_GIFT_PACK_LIST);
                    this.TimeValue.string = c.default.ActivityTimeLeftFormat(e)
                }, t.prototype.SetWinnerInfoShow = function() {
                    var e = this;
                    this.WinnerInfoShow.node.active = !1;
                    var t = new d.Req_Notice_GetByType;
                    t.Type = this._activityConfig.Common.Type, t.ActivityId = this._activityId, p.RpcComponent.Instance.Call(t, function(t) {
                        t.Notice && t.Notice.Normal && t.Notice.Normal.length > 0 && (e.WinnerInfoShow.node.active = !0, e.WinnerInfoShow.Render(t.Notice.Normal))
                    })
                }, t.prototype.SetGiftPackList = function() {
                    this.SetGiftPackData(), this.SetGiftPackNode()
                }, t.prototype.SetGiftPackNode = function() {
                    this._giftPackListItems.forEach(function(e) {
                        e.active = !1
                    });
                    for (var e = 0; e < this._gifts.length; e++) {
                        if (!this._giftPackListItems[e]) {
                            var t = cc.instantiate(this._listItemPrefab);
                            t.setParent(this.Content), this._giftPackListItems[e] = t
                        }
                        this._giftPackListItems[e].active = !0;
                        var n = this._gifts[e];
                        this._giftPackListItems[e].getComponent(y.default).Init(this._itemPrefab, n, this._activityConfig)
                    }
                }, t.prototype.SetGiftPackData = function() {
                    this._gifts = [];
                    for (var e = p.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._activityId), t = 0; t < this._activityConfig._Packs.length; t++) {
                        var n = this._activityConfig._Packs[t];
                        null == n.UnlockCondition || 0 == n.UnlockCondition ? this._gifts.push(n) : this._upToDown[n.UnlockCondition] = n.Id
                    }
                    this.PeelGifts(), this._gifts.sort(function(t, n) {
                        var o = 0 != t.LimitType && e.Packs[t.Id].Items[0] >= t.LimitCount,
                            r = 0 != n.LimitType && e.Packs[n.Id].Items[0] >= n.LimitCount;
                        return o && !r ? 1 : !o && r ? -1 : t.SortId != n.SortId ? t.SortId - n.SortId : t.Id - n.Id
                    })
                }, t.prototype.PeelGifts = function() {
                    for (var e = 0; e < this._gifts.length; e++)
                        for (var t = this._gifts[e].Id; this._gifts[e].LimitCount <= this.GetGiftBuyCount(t, this._activityId) && null != this._upToDown[t];) this._gifts[e] = this.GetGiftById(this._upToDown[t], this._activityConfig._Packs), t = this._gifts[e].Id
                }, t.prototype.GetGiftById = function(e, t) {
                    for (var n = 0; n < t.length; n++)
                        if (t[n].Id == e) return t[n];
                    return null
                }, t.prototype.GetGiftBuyCount = function(e, t) {
                    var n = p.DataCenter.Instance.GetDataById(d.UserActivity_Model, t);
                    return n && n.Packs && n.Packs[e] && n.Packs[e].Items && n.Packs[e].Items[0] ? n.Packs[e].Items[0] : 0
                }, t.prototype.ClickRateButton = function() {
                    if (this._activityConfig.Prob.length > 0) {
                        var e = [],
                            t = 0,
                            n = this._activityConfig.Prob[0].Prob;
                        n.forEach(function(e) {
                            t += e.Items[3] || e.Items[1]
                        }), n.forEach(function(n) {
                            var o = Math.floor(n.Items[3] || 100 * n.Items[1] / t),
                                r = "luckyGift_show_rate".ToUILocale().Fmt(n.Items[0], o);
                            e.push(r)
                        }), l.UIManager.Instance.ShowUIPanel(u.PanelConfig.LuckyGiftPackRatePanel.Path, e)
                    }
                }, t.prototype.OnBtnReturn = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this.unschedule(this.CountDownActivityTime)
                }, i([I(cc.Sprite)], t.prototype, "BannerSprite", void 0), i([I(cc.Node)], t.prototype, "TimeGroup", void 0), i([I(cc.Label)], t.prototype, "TimeLabel", void 0), i([I(cc.Label)], t.prototype, "TimeValue", void 0), i([I(f.default)], t.prototype, "WinnerInfoShow", void 0), i([I(cc.Node)], t.prototype, "Content", void 0), i([I(cc.Button)], t.prototype, "RateButton", void 0), i([I(cc.Label)], t.prototype, "RateLabel", void 0), i([I(cc.Button)], t.prototype, "BtnReturn", void 0), i([m], t)
            }(l.BaseUIFullScreenPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./LuckyGiftListItem": "LuckyGiftListItem",
        "./WinnerInfoShow": "WinnerInfoShow"
    }],
    LuckyMachineHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5ff00UlhidGN4I/ZTkRa54M", "LuckyMachineHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Auxiliary/Mask"),
            f = e("../Components/ItemComponent"),
            y = e("../../Channel/ChannelManager"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1), t.Title = null, t.BtnBegin = null, t.BtnBeginLabel = null, t.Mask = null, t.ItemContainers = [], t.QuestionMarks = [], t._runFinishedCount = 0, t._itemsArray = [], t._isAuto = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    var e = y.default.Instance.IsHighSchoolChannel();
                    this.ItemContainers.forEach(function(t) {
                        t.y = e ? 0 : 40
                    })
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_TREASURE_MACHINE_FINISHED, this.OnMachineFinished)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BtnBeginLabel.string = "treasure_machineStart".ToUILocale(), this.Title.string = "treasure_machineTitle".ToUILocale(), this.BtnBegin.node.on("click", this.OnBtnMachineClick, this), this._zeroValues = [], this._zeroValues[2] = 1002, this._zeroValues[3] = 1003, this._zeroValues[5] = 1004;
                    var t = [];
                    t[0] = u.ConfigDataComponent.Instance.GetConfigById(p.RelicEvent_Config, d.RelicTreasureHuntEventType.SlotMachine), t[1] = u.ConfigDataComponent.Instance.GetConfigById(p.RelicEvent_Config, d.RelicTreasureHuntEventType.SlotMachine3), this._itemsArray = [];
                    for (var n = 0; n < t.length; n++) {
                        this._itemsArray.push([]);
                        for (var o = 0; o < t[n].Data.length && !(t[n].Data[o].Items[0] > this._curLevel); o++)
                            for (var r = 1; r < t[n].Data[o].Items.length; r += 3) {
                                var i = t[n].Data[o].Items[r],
                                    a = t[n].Data[o].Items[r + 1];
                                0 == i && (i = this._zeroValues[a], a = 1), this._itemsArray[n].push([i, a])
                            }
                    }
                }, t.prototype.InitData = function(t) {
                    if (e.prototype.InitData.call(this), this._curLevel = t[0], this._itemPrefab = t[1], this._isAuto = t[2], null == this._items) {
                        this._items = [];
                        for (var n = 0; n < this.ItemContainers.length; n++) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(this.ItemContainers[n]), o.y = -10, this._items[n] = o.getComponent(f.ItemComponent)
                        }
                    }
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.BtnBegin.interactable = !0, this.Mask.DisableClickEvent(), this.BtnBegin.node.active = !0;
                    for (var t = 0; t < this._items.length; t++) {
                        var n = this._items[t];
                        n.Icon.spriteFrame = this.QuestionMarks[0].spriteFrame, n.RedDot.active = !1, n.TeamFlag.active = !1, n.ItemProgressBar.node.active = !1
                    }
                    this._isAuto && (this.BtnBegin.node.active = !1, this.OnBtnMachineClick())
                }, t.prototype.OnBtnMachineClick = function() {
                    var e = this;
                    this.BtnBegin.interactable = !1;
                    var t = new c.Req_Relic_SlotMachine;
                    u.RpcComponent.Instance.Call(t, function(t) {
                        e._recievedData = t;
                        for (var n = function(t) {
                                for (var n = e._itemsArray[2 == t ? 1 : 0], o = [], r = 0; r < t + 4; r++) o.push(n[Math.floor(Math.random() * n.length)]);
                                var i = [e._recievedData.Rewards[t].ItemId, e._recievedData.Rewards[t].Count];
                                0 == i[0] && (i[0] = e._zeroValues[i[1]], i[1] = 1), o.push(i);
                                var a = 0;
                                cc.tween(e.node).repeat(o.length, cc.tween().call(function() {
                                    e.Flip(t, .25, o[a]), a++
                                }).delay(.5)).delay(.5).call(e.OnMachineFinished.bind(e)).start()
                            }, o = 0; o < 3; o++) n(o);
                        a.Game.EventDispatcher.On(s.EventKeys.EVENT_TREASURE_MACHINE_FINISHED, e.OnMachineFinished, e), e.BtnBegin.node.active = !1
                    })
                }, t.prototype.OnMachineFinished = function() {
                    if (this._runFinishedCount++, a.EZLog.Log("\u8ba1\u6570\u53d8\u91cf = ", this._runFinishedCount), 3 == this._runFinishedCount) {
                        if (0 == this._recievedData.Rewards[2].ItemId) {
                            var e = this._recievedData.Rewards[2].Count;
                            this._recievedData.Rewards.pop();
                            for (var t = 1; t < e; t++) this._recievedData.Rewards.push(this._recievedData.Rewards[0]), this._recievedData.Rewards.push(this._recievedData.Rewards[1])
                        }
                        if (a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_TREASURE_REFRESHBLOCKS), this.Close(), this._isAuto) {
                            var n = {};
                            this._recievedData.Rewards.forEach(function(e) {
                                n[e.ItemId] ? n[e.ItemId] += e.Count : n[e.ItemId] = e.Count
                            });
                            var o = [];
                            for (var r in n) {
                                var i = u.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, Number(r)),
                                    c = l.UIUtlity.GetLabelColorByQuality(i.Quality),
                                    d = "treasure_auto_reward".ToUILocale().Fmt(c.toHEX("#rrggbb"), Number(r).ToItemName(), n[r]);
                                o.push(d)
                            }
                            l.UIUtlity.ShowFloatingHint(o)
                        } else l.UIUtlity.ShwDisplayRewardPanel(this._recievedData.Rewards);
                        this._runFinishedCount = 0
                    }
                }, t.prototype.Flip = function(e, t, n) {
                    var o = this;
                    cc.tween(this._items[e].node).to(t, {
                        scaleX: 0
                    }).call(function() {
                        o._items[e].Init({
                            ItemId: n[0],
                            Count: n[1]
                        })
                    }).to(t, {
                        scaleX: 1
                    }).start()
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Button)], t.prototype, "BtnBegin", void 0), i([I(cc.Label)], t.prototype, "BtnBeginLabel", void 0), i([I(h.default)], t.prototype, "Mask", void 0), i([I({
                    type: [cc.Node]
                })], t.prototype, "ItemContainers", void 0), i([I({
                    type: [cc.Sprite]
                })], t.prototype, "QuestionMarks", void 0), i([m], t)
            }(a.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/Mask": "Mask",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LuckyPlayerList: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d71feEM1s5MmK6kgtfT9Hqh", "LuckyPlayerList");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemRoot = null, t._normalItemPrefab = null, t._specialItemPrefab = null, t._listItemArray = [], t._specialItem = null, t._usedItemIndex = 0, t._isCreate = !1, t._timer = 0, t._isCreateSpecial = !1, t._specialTimer = 0, t._messages = [], t._specialMsg = null, t._loadedAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.PushNormal = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return null != this._normalItemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(n.NormalItemPath, cc.Prefab)];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._normalItemPrefab = t, this._loadedAssets.push(t), o.label = 2;
                                case 2:
                                    return this._messages.includes(e) || this._messages.push(e), this._isCreate = !0, [2]
                            }
                        })
                    })
                }, t.prototype.PushNormalFast = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return null != this._normalItemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(n.NormalItemPath, cc.Prefab)];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._normalItemPrefab = t, this._loadedAssets.push(t), o.label = 2;
                                case 2:
                                    return this._messages.includes(e) || this._messages.push(e), this.createNewItemNoAnim(), this._isCreate = !0, [2]
                            }
                        })
                    })
                }, t.prototype.PushSpecial = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return null != this._specialItemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(n.SpecialItemPath, cc.Prefab)];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._specialItemPrefab = t, this._loadedAssets.push(t), o.label = 2;
                                case 2:
                                    return this._specialMsg != e && (this._specialMsg = e), this._isCreateSpecial = !0, [2]
                            }
                        })
                    })
                }, t.prototype.createNewItemNoAnim = function() {
                    if (this._messages.length > 0 && this._listItemArray.length < 4) {
                        var e = cc.instantiate(this._normalItemPrefab);
                        e.parent = this.ItemRoot, e.name = this._usedItemIndex.toString(), this._listItemArray[this._usedItemIndex] = e, this._listItemArray[this._usedItemIndex].children[0].getComponent(cc.RichText).string = this._messages[this._usedItemIndex % this._messages.length];
                        for (var t = 0; t < this._listItemArray.length - 1; t++) this._listItemArray[t].y += 40, this._listItemArray[t].opacity -= 85;
                        this._usedItemIndex++
                    }
                }, t.prototype.createNewItem = function() {
                    if (this._messages.length > 0) {
                        if (this._listItemArray.length < 4) {
                            var e = cc.instantiate(this._normalItemPrefab);
                            e.scale = 0, e.opacity = 0, e.parent = this.ItemRoot, e.name = this._usedItemIndex.toString(), this._listItemArray[this._usedItemIndex] = e, this._listItemArray[this._usedItemIndex].children[0].getComponent(cc.RichText).string = this._messages[this._usedItemIndex % this._messages.length], cc.tween(this._listItemArray[this._usedItemIndex]).to(.3, {
                                opacity: 255,
                                scale: 1
                            }).start();
                            for (var t = 0; t < this._listItemArray.length - 1; t++) cc.tween(this._listItemArray[t]).by(.3, {
                                y: 40
                            }).start(), cc.tween(this._listItemArray[t]).by(.3, {
                                opacity: -85
                            }).start()
                        } else
                            for (this._listItemArray[0].position = new cc.Vec3(0, -30, 0), this._listItemArray[0].scale = 0, this._listItemArray.splice(this._listItemArray.length, 0, this._listItemArray[0]), this._listItemArray = this._listItemArray.slice(1, this._listItemArray.length), this._listItemArray[this._listItemArray.length - 1].children[0].getComponent(cc.RichText).string = this._messages[this._usedItemIndex % this._messages.length], cc.tween(this._listItemArray[this._listItemArray.length - 1]).to(.3, {
                                    opacity: 255,
                                    scale: 1
                                }).start(), t = 0; t < this._listItemArray.length - 1; t++) cc.tween(this._listItemArray[t]).by(.3, {
                                y: 40
                            }).start(), cc.tween(this._listItemArray[t]).by(.3, {
                                opacity: -85
                            }).start();
                        this._usedItemIndex++
                    }
                }, t.prototype.createNewSpecial = function() {
                    if (null == this._specialItem) {
                        this._specialItem = cc.instantiate(this._specialItemPrefab), this._specialItem.parent = this.ItemRoot, this._specialItem.opacity = 0, cc.tween(this._specialItem).to(.5, {
                            opacity: 255
                        }, {
                            easing: "cubicOut"
                        }).start();
                        var e = this._specialItem.children[this._specialItem.children.length - 1].getComponent(sp.Skeleton);
                        e.setAnimation(0, e.defaultAnimation, !1)
                    }
                    this._specialItem.children[1].getComponent(cc.RichText).string = this._specialMsg, this._specialMsg = null
                }, t.prototype.update = function(e) {
                    if (this._isCreate)
                        if (this._timer >= 2.5) {
                            if (this._messages.length <= 0) return;
                            this.createNewItem(), this._timer = 0
                        } else this._timer += e;
                    if (this._isCreateSpecial)
                        if (this._specialTimer >= 1) {
                            if (null == this._specialMsg) return void(this._isCreateSpecial = !1);
                            this.createNewSpecial(), this._specialTimer = 0
                        } else this._specialTimer += e
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = null, this._normalItemPrefab = null, this._specialItemPrefab = null
                }, t.NormalItemPath = "LuckyWheelPanel/Private/NormalListItem", t.SpecialItemPath = "LuckyWheelPanel/Private/SpecialListItem", i([p(cc.Node)], t.prototype, "ItemRoot", void 0), n = i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    LuckyStarGiftComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9d9150R22RCwpvWnKk3RoCk", "LuckyStarGiftComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Cover = null, t.Container = null, t.Item = null, t.BigEffect = null, t
                }
                return r(t, e), i([c(cc.Node)], t.prototype, "Cover", void 0), i([c(cc.Node)], t.prototype, "Container", void 0), i([c(a.ItemComponent)], t.prototype, "Item", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Components/ItemComponent": "ItemComponent"
    }],
    LuckyStarPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2eb11+Q4hZJxJRe49dDirUX", "LuckyStarPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("./LuckyStarGiftComponent"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("./NodePool"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.RewardPreviewButtonLabel = null, t.FreeRewardButtonLabel = null, t.GoLookButtonLabel = null, t.RuleButton = null, t.FreeRewardButton = null, t.RewardPreviewButton = null, t.GoLookButton = null, t.ReturnButton = null, t.RemainderTimes = null, t.ChargeTip = null, t.BigRewardContainer = null, t.AllGiftLayoutNode = null, t.ClickAni = null, t.RefreshAni = null, t.FreeAniNode = null, t.BigAniFather = null, t._clickAniName = "UI_effect_xinghuigongming_shangzhen", t._refreshAniName = "Ani_effect_mizhentanbao_shuaxin", t._advanceRewardsItem = [], t._advanceRewardIds = [], t._advanceIdToItem = {}, t._giftItems = [], t._receivedRewardsId = [], t._lastRewardIds = null, t._rewardIdToIndex = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), u.Game.EventDispatcher.On(d.GameEventIds.ChangeDataDetail.Fmt(p.MallActivity_Model._n_), this.OnModelChange, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), u.Game.EventDispatcher.Off(d.GameEventIds.ChangeDataDetail.Fmt(p.MallActivity_Model._n_), this.OnModelChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("MallPanel/Component/LuckyStarGiftComponent", cc.Prefab), this.LoadDynamicAsset("MallPanel/Component/LuckyStarGoodThingAni", cc.Prefab)]).then(function(t) {
                                        e._itemPrefab = t[0], e._giftPrefab = t[1], e._bigAniPool = new C.default(t[2])
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "mall_luckyStar".ToUILocale(), this.RewardPreviewButtonLabel.string = "explore_preview".ToUILocale(), this.FreeRewardButtonLabel.string = "timeLimited_upgradeStar_freeGet".ToUILocale(), this.GoLookButtonLabel.string = "mall_luckyStar_goCharge".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.FreeRewardButton.node.on("click", this.OnFreeRewardButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.GoLookButton.node.on("click", this.OnGoLookButtonClick, this), this.RewardPreviewButton.node.on("click", this.OnRewardPreviewButtonClick, this), this._chargeQuota = c.ConfigDataComponent.Instance.GetConfigById(l.PayCount_Config, d.PayCountId.LuckyStar).Count, this._advanceRewardsItem = [];
                    for (var t = 0; t < 4; t++)(n = cc.instantiate(this._itemPrefab)).setParent(this.BigRewardContainer), this._advanceRewardsItem.push(n.getComponent(g.ItemComponent));
                    for (t = 0; t < 16; t++) {
                        var n;
                        (n = cc.instantiate(this._giftPrefab)).setParent(this.AllGiftLayoutNode), this._giftItems[t] = n.getComponent(I.default), this._giftItems[t].Cover.name = t.toString(), this._giftItems[t].Cover.on(cc.Node.EventType.TOUCH_END, this.OnCoverTouch, this)
                    }
                    this.RefreshAni.node.active = !1, this._discoveredCount = 0
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this._model = c.DataCenter.Instance.GetDataById(p.MallActivity_Model, d.GiftPackType.LuckyStar), this._stageConfig = c.ConfigDataComponent.Instance.GetConfigById(l.LuckyStarStage_Config, this._model.IntValue);
                    var o, r = c.DataCenter.Instance.GetIntData(d.UserDataKey.DailyPay),
                        i = r < this._chargeQuota ? "<color = ff4b4b>" + r : "<color = ffffff>" + this._chargeQuota;
                    this.ChargeTip.string = "<outline color = 000000 width = 3>" + c.ConfigDataComponent.Instance.GetLocale("PayCount_desc_" + d.PayCountId.LuckyStar).Fmt(i + "</>", "<color = ffffff>" + this._chargeQuota + "</>") + "</>", this.RemainderTimes.string = "mall_luckyStar_currentChance".ToUILocale().Fmt(null == this._model.IntArray[0] ? 0 : this._model.IntArray[0]), this._shownRewardsData = [];
                    for (var a = 0; a < 4; a++) {
                        this._advanceRewardIds[a] = this._stageConfig.AdvanceRewards[a].Items[0];
                        var s = this.GetItemDataByStageIndex(a);
                        this._shownRewardsData.push(s), o = c.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, s.ItemId), this._advanceRewardsItem[a].Init(s, o.Star ? g.ItemComponentType.ItemWithStar : g.ItemComponentType.ItemCommon), null == this._model.Int2DArray[0] && (this._model.Int2DArray[0] = {
                            Items: []
                        }), this._advanceRewardsItem[a].SetReceivedTagState(this._model.Int2DArray[0].Items.includes(this._advanceRewardIds[a])), this._advanceRewardsItem[a].node.name = o.Id.toString(), this._advanceIdToItem[this._advanceRewardIds[a]] = this._advanceRewardsItem[a]
                    }
                    for (a = 0; a < 12; a++) s = this.GetItemDataByStageIndex(a, !1), this._shownRewardsData.push(s);
                    _.RedDotManager.Instance.Bind(this.FreeRewardButton.node, _.RedDotManager.Instance.RedDot.MallLuckyStarNodeChest), this.FreeAniNode.active = _.RedDotManager.Instance.RedDot.MallLuckyStarNodeChest.callBackFunc(), this.FreeAniNode.active ? h.UIUtlity.OffNodeGray(this.FreeRewardButton.target) : h.UIUtlity.OnNodeGray(this.FreeRewardButton.target), this._receivedRewardsId = [];
                    var u = this._model.Int2DArray[0].Items;
                    for (a = 0; a < u.length; a++) u[a] > 0 && this._receivedRewardsId.push(u[a]);
                    if (16 == this._discoveredCount) this.RefreshAni.node.active = !0, this.RefreshAni.setAnimation(0, this._refreshAniName, !1), this.scheduleOnce(function() {
                        n._giftItems.forEach(function(e) {
                            e.Cover.active = !0, null != e.BigEffect && (e.BigEffect.active = !1, n._bigAniPool.Put(e.BigEffect), e.BigEffect = null)
                        })
                    }, .165), this.RefreshAni.setCompleteListener(function() {
                        h.UIUtlity.ShowFloatingHint("mall_luckyStar_rewardsRefreshed".ToUILocale()), n._discoveredCount = 0, n.RefreshAni.node.active = !1
                    });
                    else
                        for (a = 0; a < 16; a++)
                            if (this._giftItems[a].Cover.active = null == this._model.Int2DArray[0].Items[a] || 0 == this._model.Int2DArray[0].Items[a], this._giftItems[a].Cover.active) null != this._giftItems[a].BigEffect && (this._giftItems[a].BigEffect.active = !1, this._bigAniPool.Put(this._giftItems[a].BigEffect), this._giftItems[a].BigEffect = null);
                            else {
                                var f = c.ConfigDataComponent.Instance.GetConfigById(l.LuckyStarRewards_Config, this._model.Int2DArray[0].Items[a]);
                                if (this._giftItems[a].RewardId = f.Id, this.SetGiftItemByIndex(a, {
                                        ItemId: f.Rewards[0].Items[0],
                                        Count: f.Rewards[0].Items[1]
                                    }), this._advanceRewardIds.includes(f.Id) && null == this._giftItems[a].BigEffect) {
                                    var m = this._bigAniPool.Get();
                                    m.active = !0, m.setParent(this.BigAniFather), m.setPosition(y.default.Instance.GetNodePositionUnderContainer(this._giftItems[a].Cover, this.BigAniFather)), this._giftItems[a].BigEffect = m
                                }
                            }
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "mall_luckyStar".ToUILocale(),
                        titles: ["aGiftDraw_RuleSubtitle".ToUILocale()],
                        contents: ["mall_luckyStar_RuleText".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnFreeRewardButtonClick = function() {
                    if (this._model.IntArray[1]) {
                        var e = c.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, d.LevelParamType.LuckyStar).Data2,
                            t = {
                                ItemId: e[0].Items[0],
                                Count: e[0].Items[1]
                            };
                        u.UIManager.Instance.ShowUIPanel(f.PanelConfig.HintPanel.Path, "reward".ToUILocale(), [t], null, null, null, null, null, null)
                    } else {
                        var n = new p.Req_Mall_LuckyStarFree;
                        c.RpcComponent.Instance.Call(n, function(e) {
                            h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnGoLookButtonClick = function() {
                    if (y.default.Instance.HasBoughtFirstPay()) u.UIManager.Instance.QuitPanelStack(this);
                    else {
                        var e = y.default.CheckActivityFirstPayIsExist();
                        e ? u.UIManager.Instance.ShowUIPanel(f.PanelConfig.ActivityFirstPayPanel.Path, e) : u.UIManager.Instance.QuitPanelStack(this)
                    }
                }, t.prototype.OnRewardPreviewButtonClick = function() {
                    var e, t = this,
                        n = [];
                    [this._stageConfig.AdvanceRewards, this._stageConfig.Rewards].forEach(function(o) {
                        for (var r = 0; r < o.length; r++) e = c.ConfigDataComponent.Instance.GetConfigById(l.LuckyStarRewards_Config, o[r].Items[0]), n.push({
                            Items: [e.Rewards[0].Items[0], e.Rewards[0].Items[1], o[r].Items[1] / 10, t._model.Int2DArray[0].Items.includes(e.Id) ? 1 : 0]
                        })
                    }), u.UIManager.Instance.ShowUIPanel(f.PanelConfig.LuckyStarRewardsPanel.Path, n, this._itemPrefab)
                }, t.prototype.OnItemClick = function(e, t) {
                    "Layout_x8_6" != t.parent.name && "box_undercover" != t.parent.name || h.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnCoverTouch = function(e) {
                    var t = this;
                    if (!(this.ClickAni.node.active || this._discoveredCount >= 16))
                        if (null == this._model.IntArray[0] || this._model.IntArray[0] <= 0) null == this._model.IntArray[2] || this._model.IntArray[2] <= 0 ? h.UIUtlity.ShowFloatingHint("mall_luckyStar_noEnoughCharge".ToUILocale().Fmt(this._chargeQuota)) : h.UIUtlity.ShowFloatingHint("mall_luckyStar_noEnoughChance".ToUILocale());
                        else {
                            var n = Number.parseInt(e.currentTarget.name),
                                o = new p.Req_Mall_LuckyStarSummon;
                            o.Index = n, c.RpcComponent.Instance.Call(o, function(o) {
                                var r = c.ConfigDataComponent.Instance.GetConfigById(l.LuckyStarRewards_Config, o.Id),
                                    i = {
                                        ItemId: r.Rewards[0].Items[0],
                                        Count: r.Rewards[0].Items[1]
                                    };
                                if (null == t._giftItems[n].Item) {
                                    var a = cc.instantiate(t._itemPrefab);
                                    a.setParent(t._giftItems[n].Container), t._giftItems[n].Item = a.getComponent(g.ItemComponent)
                                }
                                var s = c.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, i.ItemId);
                                t._giftItems[n].Item.Init(i, s.Star ? g.ItemComponentType.ItemWithStar : g.ItemComponentType.ItemCommon), h.UIUtlity.ShwDisplayRewardPanel([i]), t._discoveredCount++, t.ClickAni.node.active = !0, t.ClickAni.node.setPosition(y.default.Instance.GetNodePositionUnderContainer(e.currentTarget, t.ClickAni.node.parent)), t.ClickAni.setAnimation(0, t._clickAniName, !1), e.currentTarget.active = !1, t.ClickAni.setCompleteListener(function() {
                                    t.ClickAni.node.active = !1
                                })
                            })
                        }
                }, t.prototype.OnModelChange = function(e) {
                    for (var t in e) Number.parseInt(t) == d.GiftPackType.LuckyStar && 1 == e[t].IntArray[1] && (this._model = c.DataCenter.Instance.GetDataById(p.MallActivity_Model, d.GiftPackType.LuckyStar), (this._model.IntArray[0] > e[t].IntArray[0] || 0 == this._model.IntArray[1]) && this.DisPlay())
                }, t.prototype.GetItemDataByStageIndex = function(e, t) {
                    void 0 === t && (t = !0);
                    var n = c.ConfigDataComponent.Instance.GetConfigById(l.LuckyStarRewards_Config, (t ? this._stageConfig.AdvanceRewards[e] : this._stageConfig.Rewards[e]).Items[0]);
                    return {
                        ItemId: n.Rewards[0].Items[0],
                        Count: n.Rewards[0].Items[1]
                    }
                }, t.prototype.SetGiftItemByIndex = function(e, t) {
                    if (null == this._giftItems[e].Item) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.setParent(this._giftItems[e].Container), this._giftItems[e].Item = n.getComponent(g.ItemComponent)
                    }
                    var o = c.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, t.ItemId);
                    this._giftItems[e].Item.Init(t, o.Star ? g.ItemComponentType.ItemWithStar : g.ItemComponentType.ItemCommon), this._giftItems[e].Item.node.name = t.ItemId.toString()
                }, t.prototype.IsAllZero = function(e) {
                    for (var t = 0; t < e.length; t++)
                        if (0 != e[t]) return !1;
                    return !0
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._bigAniPool && this._bigAniPool.Clear()
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Label)], t.prototype, "RewardPreviewButtonLabel", void 0), i([S(cc.Label)], t.prototype, "FreeRewardButtonLabel", void 0), i([S(cc.Label)], t.prototype, "GoLookButtonLabel", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.Button)], t.prototype, "FreeRewardButton", void 0), i([S(cc.Button)], t.prototype, "RewardPreviewButton", void 0), i([S(cc.Button)], t.prototype, "GoLookButton", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([S(cc.RichText)], t.prototype, "RemainderTimes", void 0), i([S(cc.RichText)], t.prototype, "ChargeTip", void 0), i([S(cc.Node)], t.prototype, "BigRewardContainer", void 0), i([S(cc.Node)], t.prototype, "AllGiftLayoutNode", void 0), i([S(sp.Skeleton)], t.prototype, "ClickAni", void 0), i([S(sp.Skeleton)], t.prototype, "RefreshAni", void 0), i([S(cc.Node)], t.prototype, "FreeAniNode", void 0), i([S(cc.Node)], t.prototype, "BigAniFather", void 0), i([b], t)
            }(u.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./LuckyStarGiftComponent": "LuckyStarGiftComponent",
        "./NodePool": "NodePool"
    }],
    LuckyStarRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e03debqsGtCDozqc0SFOJJx", "LuckyStarRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("../Components/ItemComponent"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip), t.Title = null, t.BigRewardLabel = null, t.OtherRewardLabel = null, t.AlreadyGotReward = null, t.OpenInfoLabel = null, t.CommonLayout = null, t.BigLayout = null, t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "explore_preview".ToUILocale(), this.BigRewardLabel.string = "mall_luckyStar_superRewards".ToUILocale(), this.OtherRewardLabel.string = "mall_luckyStar_otherRewards".ToUILocale(), this.OpenInfoLabel.string = "mall_luckyStar_openNextPool".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rewardsData = t[0], this._itemPrefab = t[1], a.EZLog.Log("\u5956\u52b1\u6570\u636e = ", t[0]), this._alreadyGotReward = 0;
                    for (var n = 0; n < 4; n++) this.InitItem(this.BigLayout, n);
                    for (n = 4; n < 16; n++) this.InitItem(this.CommonLayout, n);
                    var o = "<color = #ffffff>" + this._alreadyGotReward + "/16</c>";
                    this.AlreadyGotReward.string = "<outline color = #202434 width = 3>" + "mall_luckyStar_receivedRewards".ToUILocale().Fmt(o)
                }, t.prototype.InitItem = function(e, t) {
                    var n = l.ConfigDataComponent.Instance.GetConfigById(s.ItemBase_Config, this._rewardsData[t].Items[0]),
                        o = cc.instantiate(this._itemPrefab);
                    o.name = n.Id.toString(), o.setParent(e), this._items[t] = o.getComponent(c.ItemComponent), this._items[t].Init({
                        ItemId: n.Id,
                        Count: this._rewardsData[t].Items[1]
                    }, n.Star ? c.ItemComponentType.ItemWithStar : c.ItemComponentType.ItemCommon), this._items[t].Name.node.active = !0, this._items[t].Name.node.color = cc.Color.GREEN, this._items[t].Name.node.y += 8, this._items[t].Name.string = this._rewardsData[t].Items[2] + "%", this._items[t].SetReceivedTagState(1 == this._rewardsData[t].Items[3]), this._alreadyGotReward += this._rewardsData[t].Items[3]
                }, t.prototype.OnItemClick = function(e, t) {
                    "BigRewardLayout" != t.parent.name && "CommonRewardLayout" != t.parent.name || p.UIUtlity.ShowItemTip(e, t)
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Label)], t.prototype, "BigRewardLabel", void 0), i([f(cc.Label)], t.prototype, "OtherRewardLabel", void 0), i([f(cc.RichText)], t.prototype, "AlreadyGotReward", void 0), i([f(cc.Label)], t.prototype, "OpenInfoLabel", void 0), i([f(cc.Node)], t.prototype, "CommonLayout", void 0), i([f(cc.Node)], t.prototype, "BigLayout", void 0), i([h], t)
            }(a.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    LuckySummonPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4da95htvt1JFJkQZ8Pgm6kD", "LuckySummonPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../Consts/Consts"),
            h = e("../../Components/Components"),
            f = e("../Components/AsyncLayout"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Components/Components"),
            m = e("./JumpActivityBtnLayout"),
            I = e("../Components/CurrencyBarItem"),
            _ = e("../Components/ActivityCountDownComponent"),
            C = e("../Components/LoadAssetHelper"),
            v = e("../Components/ItemComponent"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("./CommonRatePanel"),
            P = e("../../Auxiliary/DataUtlity"),
            A = e("./ActivityBaseContent"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property;
        (function(e) {
            e[e.Once = 0] = "Once", e[e.Ten = 1] = "Ten"
        })(l || (l = {}));
        var k = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Bg = null, t.CountDownComponent = null, t.RuleBtn = null, t.SelectRewardBtn = null, t.SelectRewardBtnLabel = null, t.UseOnceBtn = null, t.UseOnceBtnLabel = null, t.DrawOnceCostComponent = null, t.UseTenBtn = null, t.UseTenBtnLabel = null, t.DrawTenCostComponent = null, t.SkipAniToggle = null, t.SkipAniToggleLabel = null, t.PreviewBtn = null, t.GreatRewardNode = null, t.GreatRewardSelectNode = null, t.GreatRewardAvatarNode = null, t.GreatRewardIcon = null, t.GreatRewardCount = null, t.GreatRewardSubscript = null, t.GreatRewardTagLabel = null, t.ConditionRewardNodes = [], t.SelectBgs = [], t.SelectArrowS = [], t.FianelRewardNode = null, t.NextDrawLabel = null, t.TotalDrawCount = null, t.TotalDrawCountTitle = null, t.DrawCountRewardScrollView = null, t.DrawCountRewardAsyncLayout = null, t.DrawCountLastRewardItemNode = null, t.JumpActivityBtnLayout = null, t.IconBtnPrefab = null, t.BackBtn = null, t.FinalRewardAvatarNode = null, t.FinalRewardItemIcon = null, t.LoadAssetHelper = null, t.AniMaskNode = null, t._itemComponents = [], t.REWARD_ITEMS_SORT_TO_INDEX_MAP = {
                    0: 1,
                    1: 3,
                    2: 4,
                    3: 5,
                    4: 6,
                    5: 7,
                    6: 8,
                    7: 9,
                    8: 10,
                    9: 11,
                    10: 12,
                    11: 13,
                    12: 14,
                    13: 2
                }, t.REWARD_ITEMS_INDEX_TO_SORT_MAP = {
                    1: 0,
                    3: 1,
                    4: 2,
                    5: 3,
                    6: 4,
                    7: 5,
                    8: 6,
                    9: 7,
                    10: 8,
                    11: 9,
                    12: 10,
                    13: 11,
                    14: 12,
                    2: 13
                }, t
            }
            return r(t, e), Object.defineProperty(t.prototype, "CurSelectIndex", {
                set: function(e) {
                    null != this._curSelectIndex && this.ShowHighLight(!1), this._curSelectIndex = e, null != this._curSelectIndex && this.ShowHighLight(!0)
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.ShowHighLight = function(e) {
                this.SelectArrowS[this._curSelectIndex].active = e, this.SelectBgs[this._curSelectIndex].active = e
            }, t.prototype.onEnable = function() {
                p.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                p.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                    n._itemComponentPrefab = e[0]
                                })];
                            case 1:
                                return o.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SelectRewardBtnLabel.string = "luckySummon_giftPack_select".ToUILocale(), this.SkipAniToggleLabel.string = "CrazyWheel_SkipAnimation".ToUILocale(), this.UseOnceBtnLabel.string = "assistant_consume_times".ToUILocale().Fmt(1), this.UseTenBtnLabel.string = "assistant_consume_times".ToUILocale().Fmt(10), this.TotalDrawCountTitle.string = "starPray_drawCount".ToUILocale(), this.GreatRewardTagLabel.string = "LoverArrow_Start_Reward_Title".ToUILocale(), this.GreatRewardNode.node.on("click", this.OnGreatRewardNodeClick, this), this.PreviewBtn.node.on("click", this.OnPreviewBtnBtnClick, this), this.BackBtn.node.on("click", this.BackBtnClick, this), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.UseOnceBtn.node.on("click", this.OnDrawOnceBtnClick, this), this.UseTenBtn.node.on("click", this.OnDrawTenBtnClick, this), this.SelectRewardBtn.node.on("click", this.OnSelectRewardBtnClick, this), this.AniMaskNode.on("click", this.OnBtnAniMaskNodeClick, this), this.DrawCountRewardScrollView.node.on("scrolling", this.RefreshFinalConditonRewardItem, this), this.DrawCountRewardAsyncLayout.Init(this._itemComponentPrefab, this.OnRenderRewardItem.bind(this))
            }, t.prototype.InitData = function(t) {
                if (e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = h.DataCenter.Instance.ActivityConfigs[this._activityId], !this._rewardIdIndexMap) {
                    this._rewardIdIndexMap = {};
                    for (var n = 0; n < this._activityConfig.__CardSummon.length; n++) this._rewardIdIndexMap[this._activityConfig.__CardSummon[n].Id] = n;
                    this._rewardLength = this._activityConfig.__CardSummon.length
                }
                if (!this._cardSummonConfigMap)
                    for (this._cardSummonConfigMap = {}, n = 0; n < this._activityConfig.__CardSummon.length; n++) this._cardSummonConfigMap[this._activityConfig.__CardSummon[n].Id] = this._activityConfig.__CardSummon[n]
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), this._activityModel = g.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), t) this.JumpActivityBtnLayout.BindRedDot();
                else {
                    var n = this._activityConfig.CustomPart.UseItemId;
                    this.DrawOnceCostComponent.Init(n), this.DrawTenCostComponent.Init(n), this.CountDownComponent.Init(this._activityConfig.Common), this.JumpActivityBtnLayout.Init(this._activityConfig.Common.JumpIds, this._activityConfig.Common.JumpIcons, this.IconBtnPrefab), this.RefreshSelectBtn()
                }
                this.InitRewardItemComponents(), this.TotalDrawCount.string = this._activityModel.IntValue.toString(), this.NextDrawLabel.string = "luckySummon_nextDraw".ToUILocale().Fmt(this._activityConfig.Cardlib[1].GuaranteedTimes - this._activityModel.IntArray[2]), this.RefreshConditionRewardItems(t), this.RefreshFinalConditonRewardItem(!0), this.RefreshCost();
                var o = P.default.Instance.ComputeDeadTime(this._activityConfig.Common);
                p.Game.EventDispatcher.Emit(S.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, this._activityId, o)
            }, t.prototype.RefreshConditionRewardItems = function(e) {
                if (e) this.DrawCountRewardAsyncLayout.ReRender();
                else {
                    for (var t = 0, n = 0; n < this._activityConfig.CustomPart.TimesReward.length; n++) {
                        var o = this._activityConfig.CustomPart.TimesReward[n].Items[0],
                            r = this._activityModel.IntArray[3] > n;
                        if (this._activityModel.IntValue >= o && !r) {
                            t = n;
                            break
                        }
                    }
                    this.DrawCountRewardAsyncLayout.RenderLayout(this._activityConfig.CustomPart.TimesReward.length, t)
                }
            }, t.prototype.RefreshCost = function() {
                var e = this._activityConfig.CustomPart.UseItemId,
                    t = g.DataCenter.Instance.GetItemCount(e);
                this.DrawOnceCostComponent.Init(e, !1, t, 1), this.DrawTenCostComponent.Init(e, !1, t, 10)
            }, t.prototype.InitRewardItemComponents = function() {
                for (var e = 0; e < this.ConditionRewardNodes.length; e++) {
                    var t = this._itemComponents[e];
                    null == t && ((t = cc.instantiate(this._itemComponentPrefab).getComponent(v.ItemComponent)).node.setParent(this.ConditionRewardNodes[e]), this._itemComponents.push(t)), t.node.active = !0;
                    for (var n = this._activityConfig.__CardSummon[this.REWARD_ITEMS_SORT_TO_INDEX_MAP[e]], o = n.Item[0].Items, r = !1, i = void 0, a = 0; a < this._activityConfig.Cardlib[1].SummonId.length; a++)
                        if (this._activityConfig.Cardlib[1].SummonId[a] == n.Id) {
                            if (null != this._activityModel.IntMap[n.Id]) {
                                r = !0;
                                var s = n.LimitCount - this._activityModel.IntMap[n.Id] > 0 ? n.LimitCount - this._activityModel.IntMap[n.Id] : 0,
                                    l = s > 0 ? "#6EEEA7" : "#FF403E";
                                i = "limitCount".ToUILocale().Fmt(l, s)
                            }
                            break
                        } t.Init({
                        ItemId: o[0],
                        Count: o[1]
                    }), t.SetDiscountValue(r, i)
                }
            }, t.prototype.RefreshSelectBtn = function() {
                this.FinalRewardAvatarNode.active = !1, this.FinalRewardItemIcon.node.active = !1, this.GreatRewardAvatarNode.active = !1, this.GreatRewardIcon.node.active = !1, this.GreatRewardSubscript.node.active = !1;
                var e = this._activityConfig.CustomPart.FinalReward[this._activityModel.IntArray[0]].Items;
                this._greatRewardItemParam = e, this.GreatRewardCount.string = "x" + e[1];
                var t, n = g.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, e[0]);
                switch (n.Type) {
                    case d.ItemType.Consume:
                        var o = g.ConfigDataComponent.Instance.GetConfigById(u.ItemConsume_Config, n.Id);
                        switch (o.SubType) {
                            case d.ConsumeItemType.HeroSkin:
                                t = "Hero_" + g.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, o.Param[0].Items[0]).Model + "/HeroAvatar", this.GreatRewardSubscript.spriteFrame = b.UIUtlity.COMMON_ATLAS4.getSpriteFrame("skinIcon"), this.GreatRewardSubscript.node.active = !0;
                                break;
                            default:
                                return this.FinalRewardItemIcon.node.active = !0, this.GreatRewardIcon.node.active = !0, this.LoadAssetHelper.LoadSpriteFrame(y.BundlePath.ItemIcon + "/" + e[0], this.FinalRewardItemIcon, null, 1), void this.LoadAssetHelper.LoadSpriteFrame(y.BundlePath.ItemIcon + "/" + e[0], this.GreatRewardIcon, null, 2)
                        }
                        break;
                    case d.ItemType.TemplePiece:
                        t = "StarPieceAvatar/" + g.ConfigDataComponent.Instance.GetArrayConfig(u.StarPiece_Config).find(function(t) {
                            return t.ItemId == e[0]
                        }).Id + "/Avatar", this.GreatRewardSubscript.spriteFrame = b.UIUtlity.COMMON_ATLAS4.getSpriteFrame("pieceTag"), this.GreatRewardSubscript.node.active = !0;
                        break;
                    case d.ItemType.Pet:
                        var r = parseInt(e[0].toString().slice(-5));
                        t = g.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, r).Model + "/HeroAvatar";
                        break;
                    case d.ItemType.Hero:
                        var i = parseInt(e[0].toString().slice(-5));
                        t = "Hero_" + g.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, i).Model + "/HeroAvatar";
                        break;
                    case d.ItemType.MagicCircle:
                        t = g.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, e[0]).Model + "/HeroAvatar"
                }
                this.LoadAssetHelper.LoadPrefab(t, this.FinalRewardAvatarNode, this.OnLoadPrefabCallBack.bind(this), 3), this.LoadAssetHelper.LoadPrefab(t, this.GreatRewardAvatarNode, this.OnLoadGreatRewardPrefabCallBack.bind(this), 4)
            }, t.prototype._handlePrefabLoad = function(e, t, n, o) {
                t.active = !0, this._greatRewardItemParam[n] ? t.scale = this._greatRewardItemParam[n] / 10 : t.scale = 1, this._greatRewardItemParam[o] ? t.y = this._greatRewardItemParam[o] : t.y = 0;
                var r = this._greatRewardItemParam[0],
                    i = g.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, r);
                switch (i.Type) {
                    case d.ItemType.Consume:
                        switch (g.ConfigDataComponent.Instance.GetConfigById(u.ItemConsume_Config, i.Id).SubType) {
                            case d.ConsumeItemType.HeroSkin:
                                e.getComponent(sp.Skeleton).setAnimation(0, d.SkillAnimationType.Standby, !0)
                        }
                        break;
                    case d.ItemType.MagicCircle:
                        e.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0);
                        break;
                    case d.ItemType.Pet:
                        e.getComponent(sp.Skeleton).setAnimation(0, "standby", !0);
                        break;
                    case d.ItemType.Hero:
                        e.getComponent(sp.Skeleton).setAnimation(0, d.SkillAnimationType.Standby, !0)
                }
            }, t.prototype.OnLoadPrefabCallBack = function(e) {
                this._handlePrefabLoad(e, this.FinalRewardAvatarNode, 4, 5)
            }, t.prototype.OnLoadGreatRewardPrefabCallBack = function(e) {
                this._handlePrefabLoad(e, this.GreatRewardAvatarNode, 2, 3)
            }, t.prototype.OnRenderRewardItem = function(e, t) {
                var n = e.getComponent(v.ItemComponent);
                this.ConfigRewardItem(n, t)
            }, t.prototype.ConfigRewardItem = function(e, t, n) {
                var o, r = this._activityConfig.CustomPart.TimesReward[t].Items[0],
                    i = this._activityConfig.CustomPart.TimesReward[t].Items[1],
                    a = this._activityConfig.CustomPart.TimesReward[t].Items[2],
                    s = this._activityModel.IntArray[3] > t;
                e.node.name = t.toString(), e.node.on(cc.Node.EventType.TOUCH_END, this.OnConditionRewardClick, this);
                var l = this._activityModel.IntValue,
                    c = cc.Color.WHITE,
                    u = new cc.Color(32, 36, 52),
                    p = !1;
                l >= r ? (n || (c = new cc.Color(110, 238, 167)), s ? o = "already_receive".ToUILocale() : (o = "climbTower_canGet".ToUILocale(), p = !0)) : (n || (c = new cc.Color(255, 64, 62)), o = (this._activityModel.IntValue || 0) + "/" + r), e.Init({
                    ItemId: i,
                    Count: a
                }), e.Name.fontSize = 46, e.SetNameAndActive(o, !0), e.SetNameColorAndOutline(c, u), e.Name.node.getComponent(cc.LabelOutline).width = 3, s && e.SetReceivedTagState(!0), e.SetRedDotState(p, 2)
            }, t.prototype.ReqDraw = function(e) {
                var t = this;
                this._drawInfo = null;
                var n = 1;
                e == l.Ten && (n = 10);
                var o = this._activityConfig.CustomPart.UseItemId;
                if (g.DataCenter.Instance.IsItemEnough(o, n)) {
                    var r = c.Req_Activity_LuckySummonSummon.create();
                    r.ActivityId = this._activityConfig._id, r.Number = n, g.RpcComponent.Instance.Call(r, function(e) {
                        t._drawInfo = e, t.SkipAniToggle.isChecked ? (t.CurSelectIndex = void 0, t.DisplayDrawReward()) : t.PlayGetRewardAni()
                    })
                } else if (b.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o.ToItemName())), this._activityConfig.Common.JumpIds.length > 0) {
                    var i = this._activityConfig.Common.JumpIds[0].split(":"),
                        a = i[0],
                        s = i.slice(1),
                        u = g.DataCenter.Instance.ActivityNameMap[a];
                    u && A.default.OpenActivityPanel(u._id, s)
                } else p.UIManager.Instance.ShowUIPanel(y.PanelConfig.ItemGetWayPanel.Path, o)
            }, t.prototype.DisplayDrawReward = function() {
                p.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, this._drawInfo.Rewards)
            }, t.prototype.OnDrawOnceBtnClick = function() {
                this.ReqDraw(l.Once)
            }, t.prototype.OnDrawTenBtnClick = function() {
                this.ReqDraw(l.Ten)
            }, t.prototype.OnConditionRewardClick = function(e) {
                var t = this,
                    n = Number.parseInt(e.currentTarget.name);
                if (!(this._activityConfig.CustomPart.TimesReward[n].Items[0] > this._activityModel.IntValue || this._activityModel.IntArray[3] > n)) {
                    var o = c.Req_Activity_CommonRewards.create();
                    o.ActivityId = this._activityConfig._id, h.RpcComponent.Instance.Call(o, function(e) {
                        t.RefreshConditionRewardItems(!0), p.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                    })
                }
            }, t.prototype.RefreshFinalConditonRewardItem = function(e) {
                void 0 === e && (e = !1);
                for (var t, n = -this.DrawCountRewardScrollView.getScrollOffset().x, o = Math.ceil((n + this.DrawCountRewardScrollView.node.width - this.DrawCountRewardAsyncLayout.TopPadding) / (this.DrawCountRewardAsyncLayout.CellWidth + this.DrawCountRewardAsyncLayout.SpaceX)) - 1, r = 0; r < this._activityConfig.CustomPart.ShowTimesRewardIndexs.length; r++) {
                    var i = this._activityConfig.CustomPart.ShowTimesRewardIndexs[r] - 1;
                    if (i > o) {
                        t = i;
                        break
                    }
                }
                if (!this._finalConditionRewardItem) {
                    var a = cc.instantiate(this._itemComponentPrefab);
                    a.setParent(this.DrawCountLastRewardItemNode), this._finalConditionRewardItem = a.getComponent(v.ItemComponent)
                }
                null != t ? (this.DrawCountLastRewardItemNode.parent.active = !0, (e || this._lastShowFinalRewrdIndex != t) && (this._lastShowFinalRewrdIndex = t, this.ConfigRewardItem(this._finalConditionRewardItem, t, !0), this._finalConditionRewardItem.Name.node.parent.y = -146)) : this.DrawCountLastRewardItemNode.parent.active = !1
            }, t.prototype.OnGreatRewardNodeClick = function(e) {
                b.UIUtlity.ShowItemTip(this._greatRewardItemParam[0], e.node)
            }, t.prototype.OnPreviewBtnBtnClick = function() {
                var e = [],
                    t = [],
                    n = new c.IntArray;
                e[0] = [], n.Items = [this._greatRewardItemParam[0], this._greatRewardItemParam[1], 0], e[0].push(n);
                for (var o = 0; o < this._activityConfig.Cardlib[1].SummonId.length; o++) {
                    var r = new c.IntArray,
                        i = this._activityConfig.Cardlib[1].SummonId[o],
                        a = this._cardSummonConfigMap[i];
                    r.Items = [a.Item[0].Items[0], a.Item[0].Items[1], 0], e[0].push(r)
                }
                for (t[0] = "luckySummonRate0".ToUILocale().Fmt(this._activityConfig.Cardlib[1].ShowProbability / 100 + "%"), e[1] = [], o = 0; o < this._activityConfig.Cardlib[2].SummonId.length; o++) {
                    var s = new c.IntArray;
                    i = this._activityConfig.Cardlib[2].SummonId[o], a = this._cardSummonConfigMap[i], s.Items = [a.Item[0].Items[0], a.Item[0].Items[1], 0], e[1].push(s)
                }
                for (t[1] = "luckySummonRate1".ToUILocale().Fmt(this._activityConfig.Cardlib[2].ShowProbability / 100 + "%"), e[2] = [], o = 0; o < this._activityConfig.Cardlib[3].SummonId.length; o++) {
                    var l = new c.IntArray;
                    i = this._activityConfig.Cardlib[3].SummonId[o], a = this._cardSummonConfigMap[i], l.Items = [a.Item[0].Items[0], a.Item[0].Items[1], 0], e[2].push(l)
                }
                t[2] = "luckySummonRate2".ToUILocale().Fmt(this._activityConfig.Cardlib[3].ShowProbability / 100 + "%"), p.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonRatePanel.Path, w.ShowRateType.LuckySummon, e, t)
            }, t.prototype.PlayGetRewardAni = function(e) {
                if (void 0 === e && (e = 0), e >= this._drawInfo.RewardsId.length) this.AniMaskNode.active = !1, this.DisplayDrawReward();
                else {
                    this._aniTime = .02, this.AniMaskNode.active = !0, this.CurSelectIndex = 0, this._curAniIndex = e;
                    var t, n = Math.floor(Math.random() * this._rewardLength),
                        o = this._drawInfo.RewardsId[e],
                        r = this._rewardIdIndexMap[o];
                    t = this._activityConfig.__CardSummon[r].Item[0] ? this.REWARD_ITEMS_INDEX_TO_SORT_MAP[r] + 1 : 0, this.MoveSelectorAni(n, t, 0)
                }
            }, t.prototype.MoveSelectorAni = function(e, t, n) {
                var o = this;
                this._rewardLength <= e && (e = 0, n += 1), this.scheduleOnce(function() {
                    o.CurSelectIndex = e, n > 1 && e == t ? o.scheduleOnce(function() {
                        o.PlayGetRewardAni(o._curAniIndex + 1)
                    }, 1) : (o.MoveSelectorAni(e + 1, t, n), o._aniTime += .0025)
                }, this._aniTime)
            }, t.prototype.BackBtnClick = function() {
                p.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRuleBtnClick = function() {
                var e = {
                    name: this._activityConfig.Common.Title,
                    titles: ["chainGift_rule_sub".ToUILocale()],
                    contents: ["luckySummon_rule".ToUILocale()]
                };
                b.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnSelectRewardBtnClick = function() {
                if (this._activityConfig.CustomPart.FinalReward && !(this._activityConfig.CustomPart.FinalReward.length <= 0)) {
                    var e = this._activityConfig.CustomPart.FinalReward,
                        t = e[this._activityModel.IntArray[0]];
                    p.UIManager.Instance.ShowUIPanel(y.PanelConfig.ActivityOpenBoxOptionalPanel.Path, e, t, this.OnOptinalRewardConfirm.bind(this), "luckySummon_giftPack_select".ToUILocale())
                }
            }, t.prototype.OnOptinalRewardConfirm = function(e) {
                var t = this,
                    n = e;
                if (n != this._activityModel.IntArray[0]) {
                    var o = c.Req_Activity_LuckySummonChooseGrandReward.create();
                    o.ActivityId = this._activityConfig._id, o.ChooseIndex = n, g.RpcComponent.Instance.Call(o, function() {
                        t._activityModel = g.DataCenter.Instance.GetDataById(c.UserActivity_Model, t._activityConfig._id), t.RefreshSelectBtn()
                    })
                }
            }, t.prototype.OnBtnAniMaskNodeClick = function() {
                this.AniMaskNode.active = !1, this.unscheduleAllCallbacks(), this.CurSelectIndex = void 0, this.DisplayDrawReward()
            }, t.prototype.OnItemClick = function(e, t) {
                if (this.DrawCountRewardAsyncLayout) {
                    -1 != this.DrawCountRewardAsyncLayout.node.children.indexOf(t) && b.UIUtlity.ShowItemTip(t.getComponent(v.ItemComponent).ItemId, t), this._finalConditionRewardItem && this._finalConditionRewardItem.node == t && b.UIUtlity.ShowItemTip(t.getComponent(v.ItemComponent).ItemId, t);
                    for (var n = 0; n < this.ConditionRewardNodes.length; n++) - 1 != this.ConditionRewardNodes[n].children.indexOf(t) && b.UIUtlity.ShowItemTip(t.getComponent(v.ItemComponent).ItemId, t)
                }
            }, i([L(cc.Sprite)], t.prototype, "Bg", void 0), i([L(_.default)], t.prototype, "CountDownComponent", void 0), i([L(cc.Button)], t.prototype, "RuleBtn", void 0), i([L(cc.Button)], t.prototype, "SelectRewardBtn", void 0), i([L(cc.Label)], t.prototype, "SelectRewardBtnLabel", void 0), i([L(cc.Button)], t.prototype, "UseOnceBtn", void 0), i([L(cc.Label)], t.prototype, "UseOnceBtnLabel", void 0), i([L(I.default)], t.prototype, "DrawOnceCostComponent", void 0), i([L(cc.Button)], t.prototype, "UseTenBtn", void 0), i([L(cc.Label)], t.prototype, "UseTenBtnLabel", void 0), i([L(I.default)], t.prototype, "DrawTenCostComponent", void 0), i([L(cc.Toggle)], t.prototype, "SkipAniToggle", void 0), i([L(cc.Label)], t.prototype, "SkipAniToggleLabel", void 0), i([L(cc.Button)], t.prototype, "PreviewBtn", void 0), i([L(cc.Button)], t.prototype, "GreatRewardNode", void 0), i([L(cc.Node)], t.prototype, "GreatRewardSelectNode", void 0), i([L(cc.Node)], t.prototype, "GreatRewardAvatarNode", void 0), i([L(cc.Sprite)], t.prototype, "GreatRewardIcon", void 0), i([L(cc.Label)], t.prototype, "GreatRewardCount", void 0), i([L(cc.Sprite)], t.prototype, "GreatRewardSubscript", void 0), i([L(cc.Label)], t.prototype, "GreatRewardTagLabel", void 0), i([L(cc.Node)], t.prototype, "ConditionRewardNodes", void 0), i([L(cc.Node)], t.prototype, "SelectBgs", void 0), i([L(cc.Node)], t.prototype, "SelectArrowS", void 0), i([L(cc.Node)], t.prototype, "FianelRewardNode", void 0), i([L(cc.RichText)], t.prototype, "NextDrawLabel", void 0), i([L(cc.Label)], t.prototype, "TotalDrawCount", void 0), i([L(cc.Label)], t.prototype, "TotalDrawCountTitle", void 0), i([L(cc.ScrollView)], t.prototype, "DrawCountRewardScrollView", void 0), i([L(f.default)], t.prototype, "DrawCountRewardAsyncLayout", void 0), i([L(cc.Node)], t.prototype, "DrawCountLastRewardItemNode", void 0), i([L(m.default)], t.prototype, "JumpActivityBtnLayout", void 0), i([L(cc.Node)], t.prototype, "IconBtnPrefab", void 0), i([L(cc.Button)], t.prototype, "BackBtn", void 0), i([L(cc.Node)], t.prototype, "FinalRewardAvatarNode", void 0), i([L(cc.Sprite)], t.prototype, "FinalRewardItemIcon", void 0), i([L(C.default)], t.prototype, "LoadAssetHelper", void 0), i([L(cc.Node)], t.prototype, "AniMaskNode", void 0), i([R], t)
        }(p.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./ActivityBaseContent": "ActivityBaseContent",
        "./CommonRatePanel": "CommonRatePanel",
        "./JumpActivityBtnLayout": "JumpActivityBtnLayout"
    }],
    LuckyValueTip: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f5b41aKi6RB/LIdjpQLo5Bm", "LuckyValueTip");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Tip = null, t.PreTip = null, t._startPos = new cc.Vec3(0, 0, 0), t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.Tip.string = e, this.PreTip.string = t, this.SetTween()
                }, t.prototype.SetTween = function() {
                    this.node.opacity = 255, this.node.position = this._startPos, cc.tween(this.node).to(2, {
                        x: this._startPos.x,
                        y: this._startPos.y + 300
                    }, {
                        easing: "smooth"
                    }).to(.5, {
                        opacity: 0
                    }).start()
                }, t.prototype.onDestroy = function() {
                    cc.Tween.stopAllByTarget(this.node)
                }, i([l(cc.RichText)], t.prototype, "Tip", void 0), i([l(cc.Label)], t.prototype, "PreTip", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    LuckyWheelPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fa7cbw40p1KCIIZvNSNT2aq", "LuckyWheelPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/UIPanelType"),
            c = e("../../../EZFramework/EZDefine/SysDefine"),
            u = e("../Components/CustomToggle"),
            p = e("../Components/CustomRichText"),
            d = e("../Components/WheelComponent"),
            h = e("../Components/LuckyWheelProgressBar"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/LuckyPlayerList"),
            I = e("../../Components/DataCenter"),
            _ = e("../../../../Proto/Static/RpcProto"),
            C = e("../../../../Proto/Static/ConfigProto"),
            v = e("../../Components/ConfigData/ConfigDataComponent"),
            b = e("../Components/CurrencyBarItem"),
            S = e("../Auxiliary/UIUtlity"),
            w = e("../../Components/RpcComponent"),
            P = e("../../Auxiliary/EventKeys"),
            A = e("../../../Consts/Etc"),
            T = e("../../../Util/AppUtil"),
            R = e("../Components/ItemComponent"),
            L = e("../../../ShareConsts/EnumType"),
            k = e("./DrawAgainRewardsPanel"),
            O = e("../../RedDot/RedDotManager"),
            M = e("../../Auxiliary/DataUtlity"),
            D = e("../../../Consts/Consts"),
            B = e("../../Auxiliary/GameRecord"),
            N = e("../../../Util/TimeUtil"),
            E = cc._decorator,
            U = E.ccclass,
            G = E.property,
            x = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(c.UINodeType.Fixed), t.MainTittle = null, t.DrawHistoryTitle = null, t.CurrencyGrid = null, t.TicketCurrencyItem = null, t.DiamondCurrencyItem = null, t.BtnReturn = null, t.CountDownLabel = null, t.CountDownLabelBg = null, t.TopLevelToggles = [], t.BtnRule = null, t.BtnRate = null, t.RateBtnLabel = null, t.BtnShop = null, t.ShopBtnLabel = null, t.WheelComponent = null, t.ProgressComponent = null, t.PlayerList = null, t.BtnDrawOnce = null, t.BtnRefresh = null, t.BtnRefreshUseCurrencyNode = null, t.BtnDrawTens = null, t.BtnDrawTensDisable = null, t.DrawOnceBtnLabel = null, t.RefreshBtnLabel = null, t.RefreshBtnLabelFree = null, t.DrawTensBtnLabel = null, t.DrawTensDisableBtnLabel = null, t.RefreshConsumeItemNode = null, t.RefreshConsumeItemIcon = null, t.RefreshConsumeItemText = null, t.DrawOnceConsumeItemNode = null, t.DrawOnceConsumeItemIcon = null, t.DrawOnceConsumeItemText = null, t.DrawTenConsumeItemNode = null, t.DrawTenConsumeItemIcon = null, t.DrawTenConsumeItemText = null, t.IgnoreAnimationToggle = null, t.IgnoreAnimationLabel = null, t.ProgressBgNodeNormal = null, t.ProgressBgNodeAdvanced = null, t.MainBgNodeNormal = null, t.MainBgNodeAdvanced = null, t.CurtainBgNodeNormal = null, t.CurtainBgNodeAdvanced = null, t.BottomToggleContainerFakeButton = null, t.JUMP_SHOP_TOP_ID = 2, t.JUMP_SHOP_SUB_ID = 7, t.CELLTYPE3 = 10, t.CELLTYPE4 = 11, t._currWheelType = 0, t._currencyBarItemTable = [], t._currHuntData = null, t._timer = 1, t._needCountDown = !1, t._currCountDownInterval = 0, t._nextRefreshTime = 0, t._needSuggest = !1, t._ticketIconNormal = null, t._ticketIconAdvance = null, t._diamondIcon = null, t._itemSprite = null, t._commonItemPrefab = null, t._isInit = !1, t._jumpIndex = -1, t._isCurrentDrawTen = !1, t._gameRecords = [], t._reddots = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    f.Game.EventDispatcher.On(D.GameEventIds.ChangeDataDetail.Fmt(_.UserItem_Model._n_), this.OnUserItemChange, this), f.Game.EventDispatcher.On(D.GameEventIds.RemoveDataDetail.Fmt(_.UserItem_Model._n_), this.OnUserItemRemove, this), f.Game.EventDispatcher.On(D.GameEventIds.ChangeDataDetail.Fmt(_.TreasureHunt_Model._n_), this.OnPointChange, this), f.Game.EventDispatcher.On(P.EventKeys.EVENT_LUCKYWHEEL_DRAWOVER, this.OnDrawOver, this)
                }, t.prototype.onDisable = function() {
                    f.Game.EventDispatcher.Off(D.GameEventIds.ChangeDataDetail.Fmt(_.UserItem_Model._n_), this.OnUserItemChange), f.Game.EventDispatcher.Off(D.GameEventIds.RemoveDataDetail.Fmt(_.UserItem_Model._n_), this.OnUserItemRemove), f.Game.EventDispatcher.Off(D.GameEventIds.ChangeDataDetail.Fmt(_.TreasureHunt_Model._n_), this.OnPointChange), f.Game.EventDispatcher.Off(P.EventKeys.EVENT_LUCKYWHEEL_DRAWOVER)
                }, t.prototype.OnIgnoreToggleClicked = function() {
                    M.default.SetFunctionSkipState(L.FunctionSkipKey.NormalAndAdvanceTreasureHunt, this.IgnoreAnimationToggle.isChecked)
                }, t.prototype.OnUserItemChange = function(e) {
                    var t = this;
                    Object.keys(e).forEach(function(e) {
                        switch (Number.parseInt(e)) {
                            case L.CommonItemId.NormalTreasureTicket:
                                t._currWheelType == k.LuckyWheelType.Normal && t.RefreshTopCurrency();
                                break;
                            case L.CommonItemId.AdvanceTreasureTicket:
                                t._currWheelType == k.LuckyWheelType.Advance && t.RefreshTopCurrency()
                        }
                    })
                }, t.prototype.OnUserItemRemove = function(e) {
                    var t = this;
                    Object.keys(e).forEach(function(e) {
                        switch (Number.parseInt(e)) {
                            case L.CommonItemId.NormalTreasureTicket:
                                t._currWheelType == k.LuckyWheelType.Normal && t.RefreshTopCurrency();
                                break;
                            case L.CommonItemId.AdvanceTreasureTicket:
                                t._currWheelType == k.LuckyWheelType.Advance && t.RefreshTopCurrency()
                        }
                    })
                }, t.prototype.OnPointChange = function(e) {
                    for (var t in e) {
                        var n = Number.parseInt(t);
                        I.DataCenter.Instance.GetDataById(_.TreasureHunt_Model, n).Point != e[t].Point && (this.ReloadHuntData(), this.InitProgressComponent())
                    }
                }, t.prototype.OnDrawOver = function() {
                    this.DisableDrawBlock(), null != this._myNotice && this.RefreshPlayerList(this._myNotice)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(g.BundlePath.ItemComponent)];
                                case 1:
                                    return t._commonItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetClickEvent(), this.SetStaticLocalText(), this.DisableDrawBlock(), this.IgnoreAnimationToggle.node.on("toggle", this.OnIgnoreToggleClicked, this), this.DrawHistoryTitle.string = "LuckyDraw_showInfo".ToUILocale(), this._gameRecords = [B.GameRecordDefine.LuckyWheelNormal10, B.GameRecordDefine.LuckyWheelAdvance10], this._reddots = [O.RedDotManager.Instance.RedDot.NormalHuntBtnNode, O.RedDotManager.Instance.RedDot.AdvanceHuntBtnNode];
                    var t = v.ConfigDataComponent.Instance.GetConfigById(C.ShopBase_Config, this.JUMP_SHOP_SUB_ID);
                    this.BtnShop.node.active = !(null == t || null == t || null == t.Parent || null == t.Parent)
                }, t.prototype.EnableDrawBlock = function() {
                    n.isRotating = !0, this.TopLevelToggles[0].enabled = !1, this.TopLevelToggles[1].enabled = !1, this.BottomToggleContainerFakeButton.node.active = !0
                }, t.prototype.DisableDrawBlock = function() {
                    n.isRotating = !1, this.TopLevelToggles[0].enabled = !0, this.TopLevelToggles[1].enabled = !0, this.BottomToggleContainerFakeButton.node.active = !1
                }, t.prototype.SetClickEvent = function() {
                    this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnDrawOnce.node.on("click", this.OnBtnDrawOnceClick, this), this.BtnDrawTens.node.on("click", this.OnBtnDrawTensClick, this), this.BtnDrawTensDisable.node.on("click", this.OnBtnDrawTensDisableClick, this), this.BtnShop.node.on("click", this.OnBtnShopClick, this), this.BtnRefresh.node.on("click", this.OnBtnRefreshClick, this), this.BtnRate.node.on("click", this.OnBtnRateClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.TopLevelToggles[k.LuckyWheelType.Normal].node.on("toggle", this.OnTopLevelToggleClick, this), this.TopLevelToggles[k.LuckyWheelType.Advance].node.on("toggle", this.OnTopLevelToggleClick, this), this.BottomToggleContainerFakeButton.node.on("click", this.OnClickToggleBlockButton, this)
                }, t.prototype.OnClickToggleBlockButton = function() {
                    S.UIUtlity.ShowFloatingHint("luckywheel_hint_spinning".ToUILocale())
                }, t.prototype.SetStaticLocalText = function() {
                    this.MainTittle.string = "luckywheel_tittle_0".ToUILocale(), this.DrawOnceBtnLabel.string = "luckywheel_draw_once".ToUILocale(), this.DrawTensBtnLabel.string = "luckywheel_draw_tens".ToUILocale(), this.DrawTensDisableBtnLabel.string = "luckywheel_draw_tens".ToUILocale(), this.RateBtnLabel.string = "luckwheel_rate".ToUILocale(), this.ShopBtnLabel.string = "luckwheel_shop".ToUILocale(), this.TopLevelToggles[k.LuckyWheelType.Normal].Init("luckywheel_tittle_0".ToUILocale()), this.TopLevelToggles[k.LuckyWheelType.Advance].Init("luckywheel_tittle_1".ToUILocale()), this.IgnoreAnimationLabel.string = "LuckWheelPanel_IgnoreAnimation".ToUILocale()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._isInit || (this.ResetToggle(), this._isInit = !0), this.BindRedDotUI(), this.ReloadHuntData(), this.RefreshView(), this.SetIgnoreAnimationToggleState()
                }, t.prototype.SetIgnoreAnimationToggleState = function() {
                    M.default.GetFunctionSkipState(L.FunctionSkipKey.NormalAndAdvanceTreasureHunt) ? this.IgnoreAnimationToggle.check() : this.IgnoreAnimationToggle.uncheck()
                }, t.prototype.BindRedDotUI = function() {
                    O.RedDotManager.Instance.Bind(this.TopLevelToggles[k.LuckyWheelType.Normal].node, O.RedDotManager.Instance.RedDot.NormalHuntBtnNode, -5, 10), O.RedDotManager.Instance.Bind(this.TopLevelToggles[k.LuckyWheelType.Advance].node, O.RedDotManager.Instance.RedDot.AdvanceHuntBtnNode, -5, 10)
                }, t.prototype.ResetPanelState = function() {
                    this.LoadHuntBaseData(), this.RequestPlayerList()
                }, t.prototype.ResetToggle = function() {
                    null != this._jumpIndex ? this._currWheelType = this._jumpIndex : this._currWheelType = k.LuckyWheelType.Normal, this._jumpIndex = -1;
                    var e = this.TopLevelToggles[this._currWheelType];
                    e.isChecked = !0, this._currWheelType = -1, this.OnTopLevelToggleClick(e), this.MainTittle.string = ("luckywheel_tittle_" + this._currWheelType).ToUILocale();
                    var t = M.default.Instance.IsGameModuleUnlock(L.GameModuleType.TreasureHuntAdvance);
                    t[0] ? this.TopLevelToggles[k.LuckyWheelType.Advance].SetInteractable(!0) : (y.EZLog.Log(t[1]), this.TopLevelToggles[k.LuckyWheelType.Advance].SetInteractable(!1, t[1]))
                }, t.prototype.OnTopLevelToggleClick = function(e) {
                    var t = T.AppUtil.ToInt(e.node.name);
                    this._currWheelType != t && (this._currWheelType = t, B.default.SetItem(this._gameRecords[t], JSON.stringify(w.RpcComponent.Instance.ServerTime)), O.RedDotManager.Instance.RefreshRedDotNode(this._reddots[t]), this.MainTittle.string = ("luckywheel_tittle_" + this._currWheelType).ToUILocale(), this.SwitchBaseConfigData(), this.ReloadHuntData(), this.RefreshView(), this._timer = 1, this.DisableDrawBlock(), this._currWheelType == k.LuckyWheelType.Normal ? (this.ProgressBgNodeNormal.active = !0, this.MainBgNodeNormal.active = !0, this.CurtainBgNodeNormal.active = !0, this.ProgressBgNodeAdvanced.active = !1, this.MainBgNodeAdvanced.active = !1, this.CurtainBgNodeAdvanced.active = !1) : (this.ProgressBgNodeNormal.active = !1, this.MainBgNodeNormal.active = !1, this.CurtainBgNodeNormal.active = !1, this.ProgressBgNodeAdvanced.active = !0, this.MainBgNodeAdvanced.active = !0, this.CurtainBgNodeAdvanced.active = !0))
                }, t.prototype.SwitchBaseConfigData = function() {
                    this._currWheelType == k.LuckyWheelType.Normal ? this._currHuntBaseData = this._normalHuntBaseData : this._currHuntBaseData = this._advanceHuntBaseData
                }, t.prototype.RefreshView = function() {
                    this.RefreshMainUI(), this.RefreshBottomUI(), this.SetBtnState()
                }, t.prototype.RequestPlayerList = function() {
                    var e = new _.Req_TreasureHunt_GetNotice;
                    w.RpcComponent.Instance.Call(e, this.ResponsePlayerListSuccess.bind(this))
                }, t.prototype.ResponsePlayerListSuccess = function(e) {
                    if (null != e.Notices && e.Notices.length > 0)
                        for (var t = 0; t < e.Notices.length; t++) this.RefreshPlayerList(e.Notices[t])
                }, t.prototype.RefreshPlayerList = function(e) {
                    var t = [],
                        n = [];
                    if (e.AdvanceReward.length > 0)
                        for (var o = 0; o < e.AdvanceReward.length; o++) {
                            var r = e.AdvanceReward[o].Name,
                                i = e.AdvanceReward[o].ItemId,
                                a = e.AdvanceReward[o].Count,
                                s = v.ConfigDataComponent.Instance.GetConfigById(C.ItemBase_Config, i),
                                l = (S.UIUtlity.GetLabelColorByQuality(s.Quality), i.ToItemName() + "x" + a),
                                c = r.RichTextColor("#FFD24A").RichTextOutLine("#202434", 3) + " " + l.RichTextColor("#6EEEA7").RichTextOutLine("#202434", 3);
                            t.push(c)
                        }
                    if (e.FinalReward.length > 0)
                        for (o = 0; o < e.FinalReward.length; o++) r = e.FinalReward[o].Name, i = e.FinalReward[o].ItemId, a = e.FinalReward[o].Count, s = v.ConfigDataComponent.Instance.GetConfigById(C.ItemBase_Config, i), S.UIUtlity.GetLabelColorByQuality(s.Quality), l = i.ToItemName() + "x" + a, c = r.RichTextColor("#FFD24A").RichTextOutLine("#202434", 3) + " " + l.RichTextColor("#6EEEA7").RichTextOutLine("#202434", 3), n.push(c);
                    for (var u = 0; u < t.length; u++) this.PlayerList.PushNormalFast(t[u]);
                    for (u = 0; u < n.length; u++) this.PlayerList.PushSpecial(n[u])
                }, t.prototype.RefreshMainUI = function() {
                    this.RefreshTopCurrency(), this.InitWheelComponent(), this.InitProgressComponent()
                }, t.prototype.RefreshBottomUI = function() {
                    this.InitTicketInfo(), this.InitRefreshCostInfo(), this.InitRefreshUI()
                }, t.prototype.SetBtnState = function() {
                    this._currWheelType == k.LuckyWheelType.Normal ? (null == this.unlockArr && (this.unlockArr = M.default.Instance.IsGameModuleUnlock(L.GameModuleType.TreasureHuntDrawTen)), this.unlockArr[0] ? (this.BtnDrawTens.node.active = !0, this.BtnDrawTensDisable.node.active = !1) : (this.BtnDrawTens.node.active = !1, this.BtnDrawTensDisable.node.active = !0)) : (this.BtnDrawTens.node.active = !0, this.BtnDrawTensDisable.node.active = !1)
                }, t.prototype.InitData = function(e) {
                    this._jumpIndex = e[0]
                }, t.prototype.update = function(e) {
                    this._needCountDown && this._currCountDownInterval > 0 && (this._timer >= 1 ? (this.CountDownLabel.Init(this.GetRefreshCountDownStr()), this._timer = 0) : this._timer += e)
                }, t.prototype.GetRefreshCountDownStr = function() {
                    var e = w.RpcComponent.Instance.ServerTime,
                        t = this._nextRefreshTime - e,
                        n = "next_refresh_time".ToUILocale().Fmt(t.FmtRemainTime());
                    return t <= 0 && (t = 0, this.CalcEngery()), n
                }, t.prototype.InitRefreshUI = function() {
                    this._currCountDownInterval = this._currHuntBaseData.FreeRefreshCD, this.CalcEngery()
                }, t.prototype.CalcEngery = function() {
                    var e = w.RpcComponent.Instance.ServerTime,
                        t = Math.floor((e - this._currHuntData.LastRefreshTime) / (this._currCountDownInterval * A.Etc.HourDuration)),
                        n = this._currHuntData.LastRefreshTime + this._currCountDownInterval * A.Etc.HourDuration * t;
                    this._nextRefreshTime = n + this._currCountDownInterval * A.Etc.HourDuration, this.RefreshBtnLabelFree.string = "refresh_free_intelligence".ToUILocale(), this.RefreshBtnLabel.string = "refresh".ToUILocale(), t >= 1 ? (this.RefreshConsumeItemNode.active = !1, this.RefreshBtnLabelFree.node.active = !0, this.RefreshBtnLabel.node.active = !1, this.CountDownLabel.node.active = !1, this.CountDownLabelBg.active = !1, this._needCountDown = !1) : (this.RefreshConsumeItemNode.active = !0, this.RefreshBtnLabelFree.node.active = !1, this.RefreshBtnLabel.node.active = !0, this.CountDownLabel.node.active = !0, this.CountDownLabelBg.active = !0, this._needCountDown = !0)
                }, t.prototype.LoadHuntBaseData = function() {
                    var e = v.ConfigDataComponent.Instance.GetConfig(C.TreasureHuntBase_Config);
                    for (var t in e) 1 == e[t].Id ? this._normalHuntBaseData = e[t] : this._advanceHuntBaseData = e[t];
                    this._currHuntBaseData = this._normalHuntBaseData
                }, t.prototype.ReloadHuntData = function() {
                    this._currHuntData = I.DataCenter.Instance.GetDataById(_.TreasureHunt_Model, this._currHuntBaseData.Id);
                    var e = this._currHuntData.Cells[this.CELLTYPE3].Items[k.WheelCellData.IsDrawed],
                        t = this._currHuntData.Cells[this.CELLTYPE4].Items[k.WheelCellData.IsDrawed];
                    this._needSuggest = !(!e || !t)
                }, t.prototype.RefreshTopCurrency = function() {
                    this.DiamondCurrencyItem.Init(L.CommonItemId.Diamond), this.DiamondCurrencyItem.SetClickCallBack(function() {
                        y.UIManager.Instance.ShowUIPanel(g.PanelConfig.MallNewPanel.Path, [D.MallPageType.DiamondShop, D.GiftPackType.BuyDiamond])
                    }), this.TicketCurrencyItem.Init(this._currHuntBaseData.TicketId)
                }, t.prototype.InitWheelComponent = function() {
                    this.WheelComponent.Init(this._currWheelType, this._currHuntData.Cells)
                }, t.prototype.InitProgressComponent = function() {
                    var e = this._currHuntBaseData.PointRewards,
                        t = this._currHuntData.Point,
                        n = this._currHuntData.DrawedPointReward,
                        o = this._currHuntBaseData.Id;
                    y.EZLog.Log("\u5f53\u524d\u5e78\u8fd0\u503c--\u2014\u2014>" + this._currHuntData.Point), this.ProgressComponent.InitUI(e, t, n, o)
                }, t.prototype.InitTicketInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return 1 != this._currHuntBaseData.Id ? [3, 3] : null != this._ticketIconNormal ? [3, 2] : (n = M.default.Instance.GetItemPathById(this._currHuntBaseData.TicketId), t = this, [4, this.LoadDynamicAsset(n, cc.SpriteFrame)]);
                                case 1:
                                    if (t._ticketIconNormal = r.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(this._ticketIconNormal), [2];
                                    r.label = 2;
                                case 2:
                                    return e = this._ticketIconNormal, [3, 6];
                                case 3:
                                    return null != this._ticketIconAdvance ? [3, 5] : (n = M.default.Instance.GetItemPathById(this._currHuntBaseData.TicketId), o = this, [4, this.LoadDynamicAsset(n, cc.SpriteFrame)]);
                                case 4:
                                    if (o._ticketIconAdvance = r.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(this._ticketIconAdvance), [2];
                                    r.label = 5;
                                case 5:
                                    e = this._ticketIconAdvance, r.label = 6;
                                case 6:
                                    return this.DrawOnceConsumeItemIcon.spriteFrame = e, this.DrawTenConsumeItemIcon.spriteFrame = e, this.SetConsumeItemsInfo(), [2]
                            }
                        })
                    })
                }, t.prototype.SetConsumeItemsInfo = function() {
                    this.DrawOnceConsumeItemText.string = (I.DataCenter.Instance.GetItemCount(this._currHuntBaseData.TicketId).FmtCurrency() + " / 1").RichTextOutLine("#202434", 3), this.DrawTenConsumeItemText.string = (I.DataCenter.Instance.GetItemCount(this._currHuntBaseData.TicketId).FmtCurrency() + " / " + this._currHuntBaseData.Draw10TicketCount).RichTextOutLine("#202434", 3)
                }, t.prototype.InitRefreshCostInfo = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._diamondIcon ? [3, 2] : (e = M.default.Instance.GetItemPathById(L.CommonItemId.Diamond), t = this, [4, this.LoadDynamicAsset(e, cc.SpriteFrame)]);
                                case 1:
                                    if (t._diamondIcon = n.sent(), !this.isValid) return y.AssetsManager.Instance.UnloadAsset(this._diamondIcon), [2];
                                    n.label = 2;
                                case 2:
                                    return this.RefreshConsumeItemIcon.spriteFrame = this._diamondIcon, this.RefreshConsumeItemText.string = (I.DataCenter.Instance.GetItemCount(L.CommonItemId.Diamond).FmtCurrency() + " / " + this._currHuntBaseData.DiamondRefreshPrice).RichTextOutLine("#202434", 3), [2]
                            }
                        })
                    })
                }, t.prototype.OnBtnDrawOnceClick = function() {
                    this._isCurrentDrawTen = !1, this.ExecHunt()
                }, t.prototype.OnBtnDrawTensClick = function() {
                    this._isCurrentDrawTen = !0, this.ExecHunt()
                }, t.prototype.OnBtnDrawTensDisableClick = function() {
                    var e = this.unlockArr[1],
                        t = "luckywheel_unlock".ToUILocale().Fmt(e);
                    S.UIUtlity.ShowHintPanel("", t, "", null, "luckywheel_showVip".ToUILocale(), function() {
                        y.UIManager.Instance.ShowUIPanel(g.PanelConfig.FamePriviledgePanel.Path)
                    })
                }, t.prototype.ExecHunt = function() {
                    var e = this;
                    if (n.isRotating) S.UIUtlity.ShowFloatingHint("luckywheel_hint_spinning".ToUILocale());
                    else {
                        var t, o = this._currHuntBaseData.TicketId,
                            r = o.ToItemName();
                        if (t = this._isCurrentDrawTen ? this._currHuntBaseData.Draw10TicketCount : 1, I.DataCenter.Instance.IsItemEnough(o, t))
                            if (this._needSuggest) {
                                var i = "luckywheel_suggest".ToUILocale();
                                S.UIUtlity.ShowHintPanel("", i, "", null, "", function() {
                                    e.RequestTreasureHunt(e._isCurrentDrawTen)
                                })
                            } else this.RequestTreasureHunt(this._isCurrentDrawTen);
                        else S.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(r)), y.UIManager.Instance.ShowUIPanel(g.PanelConfig.ItemGetWayPanel.Path, o)
                    }
                }, t.prototype.RequestTreasureHunt = function(e) {
                    var t = new _.Req_TreasureHunt_Hunt;
                    if (t.Type = this._currHuntBaseData.Id, t.IsTen = e, w.RpcComponent.Instance.Call(t, this.RequestTreasureHuntSuccess.bind(this), this.RequestTreasureHuntFail.bind(this)), !this.IgnoreAnimationToggle.isChecked) {
                        var n = e ? this._currHuntBaseData.Draw10TicketCount : 1;
                        this.WheelComponent.SetNeedTicket(this._currHuntBaseData.TicketId, n), this.WheelComponent.StartDraw(), this.EnableDrawBlock()
                    }
                }, t.prototype.RequestTreasureHuntSuccess = function(e) {
                    var t = e.CellIndex,
                        n = e.Rewards;
                    if (this._myNotice = e.Notice, this.RefreshTopCurrency(), this.ReloadHuntData(), this.InitProgressComponent(), this.SetConsumeItemsInfo(), this.IgnoreAnimationToggle.isChecked) {
                        var o = this._isCurrentDrawTen ? this._currHuntBaseData.Draw10TicketCount : 1;
                        S.UIUtlity.ShwDrawAgainlRewardsPanel(n, this._currHuntBaseData.TicketId, o, k.DrawAgainRewardsPanelType.LuckyWheel, this._currWheelType), null != this._myNotice && this.RefreshPlayerList(this._myNotice)
                    } else this.WheelComponent.StopDraw(t, n), this.WheelComponent.UpdateData(this._currHuntData.Cells);
                    e.Refresh && e.Refresh > 0 && S.UIUtlity.ShowFloatingHint("luckywheel_autoRefreshHint".ToUILocale())
                }, t.prototype.RequestTreasureHuntFail = function() {
                    this.DisableDrawBlock()
                }, t.prototype.RequestTreasureHuntRefresh = function(e) {
                    var t = new _.Req_TreasureHunt_Refresh;
                    t.Type = this._currHuntBaseData.Id, t.UseDiamond = e, w.RpcComponent.Instance.Call(t, this.RequestTreasureHuntRefreshSuccess.bind(this), this.RequestTreasureHuntRefreshFail.bind(this)), this.EnableDrawBlock()
                }, t.prototype.RequestTreasureHuntRefreshSuccess = function() {
                    this.WheelComponent.ResetAnim(), this.ReloadHuntData(), this.RefreshMainUI(), this.CalcEngery(), this.DisableDrawBlock(), this.RefreshConsumeItemText.string = (I.DataCenter.Instance.GetItemCount(L.CommonItemId.Diamond).FmtCurrency() + " / " + this._currHuntBaseData.DiamondRefreshPrice).RichTextOutLine("#202434", 3)
                }, t.prototype.RequestTreasureHuntRefreshFail = function() {
                    this.DisableDrawBlock()
                }, t.prototype.OnBtnShopClick = function() {
                    f.UIManager.Instance.ShowUIPanel(g.PanelConfig.ShopPanel.Path, this.JUMP_SHOP_TOP_ID, this.JUMP_SHOP_SUB_ID)
                }, t.prototype.OnBtnRefreshClick = function() {
                    var e = this;
                    if (n.isRotating) S.UIUtlity.ShowFloatingHint("luckywheel_hint_spinning".ToUILocale());
                    else if (this._needCountDown) {
                        var t = L.CommonItemId.Diamond.ToItemName();
                        if (I.DataCenter.Instance.IsItemEnough(L.CommonItemId.Diamond, this._currHuntBaseData.DiamondRefreshPrice)) {
                            var o = B.default.GetItem(B.GameRecordDefine.RefreshLuckyWheel);
                            if (o && N.TimeUtil.Get0ClockTs(w.RpcComponent.Instance.ServerTime) == N.TimeUtil.Get0ClockTs(parseInt(o))) this.RequestTreasureHuntRefresh(1);
                            else {
                                var r = "shop_costMoney".ToUILocale().Fmt(this._currHuntBaseData.DiamondRefreshPrice, t);
                                S.UIUtlity.ShowHintPanel("", r, "", null, "", function() {
                                    e.RequestTreasureHuntRefresh(1)
                                }, "", B.GameRecordDefine.RefreshLuckyWheel, !0)
                            }
                        } else S.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t))
                    } else this.RequestTreasureHuntRefresh(0)
                }, t.prototype.OnBtnRateClick = function() {
                    for (var e = [], t = 0; t < this._currHuntBaseData.ShowRewardChance.length; t++) {
                        var n = this._currHuntBaseData.ShowRewardChance[t].Items[0],
                            o = this._currHuntBaseData.ShowRewardChance[t].Items[1];
                        e[t] = {
                            ItemData: {
                                ItemId: n
                            },
                            Rate: o
                        }
                    }
                    S.UIUtlity.ShowRatePanel(e, R.ItemComponentType.ItemCommon, 1e3, 3)
                }, t.prototype.OnBtnRuleClick = function() {
                    var e = {
                        name: "luckywheel_rule_maintittle".ToUILocale(),
                        titles: [("luckywheel_rule_subtittle" + this._currHuntBaseData.Id).ToUILocale()],
                        contents: [("luckywheel_rule_text" + this._currHuntBaseData.Id).ToUILocale()]
                    };
                    S.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnBtnReturnClick = function() {
                    y.UIManager.Instance.BackUIPanel()
                }, t.isRotating = !1, i([G(cc.Label)], t.prototype, "MainTittle", void 0), i([G(cc.Label)], t.prototype, "DrawHistoryTitle", void 0), i([G(cc.Node)], t.prototype, "CurrencyGrid", void 0), i([G(b.default)], t.prototype, "TicketCurrencyItem", void 0), i([G(b.default)], t.prototype, "DiamondCurrencyItem", void 0), i([G(cc.Button)], t.prototype, "BtnReturn", void 0), i([G(p.CustomRichText)], t.prototype, "CountDownLabel", void 0), i([G(cc.Node)], t.prototype, "CountDownLabelBg", void 0), i([G(u.default)], t.prototype, "TopLevelToggles", void 0), i([G(cc.Button)], t.prototype, "BtnRule", void 0), i([G(cc.Button)], t.prototype, "BtnRate", void 0), i([G(cc.Label)], t.prototype, "RateBtnLabel", void 0), i([G(cc.Button)], t.prototype, "BtnShop", void 0), i([G(cc.Label)], t.prototype, "ShopBtnLabel", void 0), i([G(d.default)], t.prototype, "WheelComponent", void 0), i([G(h.default)], t.prototype, "ProgressComponent", void 0), i([G(m.default)], t.prototype, "PlayerList", void 0), i([G(cc.Button)], t.prototype, "BtnDrawOnce", void 0), i([G(cc.Button)], t.prototype, "BtnRefresh", void 0), i([G(cc.Node)], t.prototype, "BtnRefreshUseCurrencyNode", void 0), i([G(cc.Button)], t.prototype, "BtnDrawTens", void 0), i([G(cc.Button)], t.prototype, "BtnDrawTensDisable", void 0), i([G(cc.Label)], t.prototype, "DrawOnceBtnLabel", void 0), i([G(cc.Label)], t.prototype, "RefreshBtnLabel", void 0), i([G(cc.Label)], t.prototype, "RefreshBtnLabelFree", void 0), i([G(cc.Label)], t.prototype, "DrawTensBtnLabel", void 0), i([G(cc.Label)], t.prototype, "DrawTensDisableBtnLabel", void 0), i([G(cc.Node)], t.prototype, "RefreshConsumeItemNode", void 0), i([G(cc.Sprite)], t.prototype, "RefreshConsumeItemIcon", void 0), i([G(cc.RichText)], t.prototype, "RefreshConsumeItemText", void 0), i([G(cc.Node)], t.prototype, "DrawOnceConsumeItemNode", void 0), i([G(cc.Sprite)], t.prototype, "DrawOnceConsumeItemIcon", void 0), i([G(cc.RichText)], t.prototype, "DrawOnceConsumeItemText", void 0), i([G(cc.Node)], t.prototype, "DrawTenConsumeItemNode", void 0), i([G(cc.Sprite)], t.prototype, "DrawTenConsumeItemIcon", void 0), i([G(cc.RichText)], t.prototype, "DrawTenConsumeItemText", void 0), i([G(cc.Toggle)], t.prototype, "IgnoreAnimationToggle", void 0), i([G(cc.Label)], t.prototype, "IgnoreAnimationLabel", void 0), i([G(cc.Node)], t.prototype, "ProgressBgNodeNormal", void 0), i([G(cc.Node)], t.prototype, "ProgressBgNodeAdvanced", void 0), i([G(cc.Node)], t.prototype, "MainBgNodeNormal", void 0), i([G(cc.Node)], t.prototype, "MainBgNodeAdvanced", void 0), i([G(cc.Node)], t.prototype, "CurtainBgNodeNormal", void 0), i([G(cc.Node)], t.prototype, "CurtainBgNodeAdvanced", void 0), i([G(cc.Button)], t.prototype, "BottomToggleContainerFakeButton", void 0), n = i([U], t)
            }(f.BaseUIFullScreenPanel);
        n.default = x, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LuckyPlayerList": "LuckyPlayerList",
        "../Components/LuckyWheelProgressBar": "LuckyWheelProgressBar",
        "../Components/WheelComponent": "WheelComponent",
        "./DrawAgainRewardsPanel": "DrawAgainRewardsPanel"
    }],
    LuckyWheelProgressBar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "39a1e76W0xMKputjKb8zuZX", "LuckyWheelProgressBar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            c = e("./PointRewardItem"),
            u = e("../Panel/DrawAgainRewardsPanel"),
            p = e("./CustomProgressBar"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Progress = null, t.ProgressBgNormal = null, t.ProgressBgAdvance = null, t.BallNormal = null, t.BallAdvance = null, t.Tittle = null, t.LuckyValue = null, t.NameLabel = null, t.ProgressWidget = null, t.PointRewardItemPath = "LuckyWheelPanel/PointRewardItem", t.PROGRESS_TOTAL_LENGTH = 690, t.LUCKVALUE_MAX = 500, t._pointRewardItemPrefab = null, t._rewardItemTable = [], t._hasInit = !1, t
                }
                return r(t, e), t.prototype.InitUI = function(e, t, n, o) {
                    this._rewardData = e, this._huntType = o, this._drawedPointReward = n, this._hasInit || (this._hasInit = !0, this.SetStaticLocalText(), this.SetMaxValue()), this.SetUIStyle(), this.InitRewardNode(t), this.SetProgress(t), this.SetLuckyValue(t)
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "luckywheel_luckyValue".ToUILocale()
                }, t.prototype.SetUIStyle = function() {
                    1 == this._huntType ? (this.ProgressBgNormal.node.active = !0, this.ProgressBgAdvance.node.active = !1, this.BallNormal.active = !0, this.BallAdvance.active = !1, this.Progress.barSprite = this.ProgressBgNormal) : (this.ProgressBgNormal.node.active = !1, this.ProgressBgAdvance.node.active = !0, this.BallNormal.active = !1, this.BallAdvance.active = !0, this.Progress.barSprite = this.ProgressBgAdvance), this.Progress.TotalLength = this.PROGRESS_TOTAL_LENGTH, this.Progress.node.width = this.PROGRESS_TOTAL_LENGTH, this.ProgressWidget.updateAlignment()
                }, t.prototype.SetMaxValue = function() {
                    this._maxValue = this._rewardData[this._rewardData.length - 1].Items[0]
                }, t.prototype.InitRewardNode = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return null != this._pointRewardItemPrefab ? [3, 2] : (t = this, [4, l.AssetsManager.Instance.LoadAsset(this.PointRewardItemPath)]);
                                case 1:
                                    if (t._pointRewardItemPrefab = a.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._pointRewardItemPrefab), [2];
                                    a.label = 2;
                                case 2:
                                    for (o = 0; o < this._rewardItemTable.length; o++) this._rewardItemTable[o].node.active = !1;
                                    for (n = this._rewardData.length, o = 0; o < n; o++) null == this._rewardItemTable[o] && ((r = cc.instantiate(this._pointRewardItemPrefab)).parent = this.Progress.node, this._rewardItemTable[o] = r.getComponent(c.default)), i = this.Progress.TotalLength * (this._rewardData[o].Items[u.PointRewardData.Point] / this._maxValue), this._rewardItemTable[o].node.setPosition(i, 0), 1 == this._drawedPointReward[o] ? this._rewardItemTable[o].SetDrawState(!0) : this._rewardItemTable[o].SetDrawState(!1), this._rewardItemTable[o].UpdateLuckyValue(e), this._rewardItemTable[o].InitUI(e, this._rewardData[o].Items, o, this._huntType), this._rewardItemTable[o].node.active = !0;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetProgress = function(e) {
                    this._maxValue > 0 && (this.Progress.progress = Math.min(e / this._maxValue, 1))
                }, t.prototype.SetLuckyValue = function(e) {
                    this.LuckyValue.string = Math.min(e, this._maxValue).toString()
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._pointRewardItemPrefab && l.AssetsManager.Instance.UnloadAsset(this._pointRewardItemPrefab), this._pointRewardItemPrefab = null
                }, i([f(p.default)], t.prototype, "Progress", void 0), i([f(cc.Sprite)], t.prototype, "ProgressBgNormal", void 0), i([f(cc.Sprite)], t.prototype, "ProgressBgAdvance", void 0), i([f(cc.Node)], t.prototype, "BallNormal", void 0), i([f(cc.Node)], t.prototype, "BallAdvance", void 0), i([f(cc.Label)], t.prototype, "Tittle", void 0), i([f(cc.Label)], t.prototype, "LuckyValue", void 0), i([f(cc.Label)], t.prototype, "NameLabel", void 0), i([f(cc.Widget)], t.prototype, "ProgressWidget", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../Panel/DrawAgainRewardsPanel": "DrawAgainRewardsPanel",
        "./CustomProgressBar": "CustomProgressBar",
        "./PointRewardItem": "PointRewardItem"
    }],
    MagicCircleChangeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8b184jdcMtO0LJ2Qo+c98CB", "MagicCircleChangeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../Components/ItemComponent"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../GamePlay/Components/Components"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.HeroContainer = null, t.HeroItemContainer = null, t.OwnerTag = null, t.ItemName = null, t.ItemScore = null, t.ChangeBtn = null, t.ChangeBtnLabel = null, t.WearBtn = null, t.WearBtnLabel = null, t.BtnUpLabel = null, t._isInitial = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._isInitial || (this._isInitial = !0, this.InitUI()), this._selectHero = e, this._model = t, this._itemPrefab = n, this.ConfigEquipItem(), this.ConfigHeroItem(), this.ConfigButtons()
                }, t.prototype.InitUI = function() {
                    this.ChangeBtn.node.on("click", this.OnChange, this), this.WearBtn.node.on("click", this.OnWear, this), this.WearBtnLabel.string = "pet_take".ToUILocale(), this.OwnerTag.string = "holyEquip_worn_by".ToUILocale()
                }, t.prototype.ConfigEquipItem = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._itemComponent = e.getComponent(c.ItemComponent)
                    }
                    var t = h.ConfigDataComponent.Instance.GetConfigById(l.MagicCircleBase_Config, this._model.Sid),
                        n = h.ConfigDataComponent.Instance.GetConfigById(l.MagicCircleQuality_Config, t.Quality);
                    this.ItemScore.string = "equip_score_tag".ToUILocale() + ": " + (n.StarScore * this._model.Star + n.LevelScore * this._model.Level).toString(), this._itemComponent.Init({
                        ItemId: this._model.Sid,
                        StarLevel: this._model.Star
                    }, c.ItemComponentType.ItemWithStar), this.ItemName.string = this._model.Sid.ToItemName()
                }, t.prototype.ConfigHeroItem = function() {
                    if (!this._heroComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.HeroItemContainer), this._heroComponent = e.getComponent(c.ItemComponent)
                    }
                    if (this._model.HeroId && (this._owner = h.DataCenter.Instance.GetDataById(s.UserHero_Model, this._model.HeroId), this._owner)) return this.HeroContainer.active = !0, this._heroComponent.node.active = !0, void this._heroComponent.Init(this._owner, c.ItemComponentType.HeroInfo);
                    this.HeroContainer.active = !1, this._owner = void 0, this._heroComponent.node.active = !1
                }, t.prototype.ConfigButtons = function() {
                    this.ChangeBtn.node.active = !1, this.WearBtn.node.active = !1, this._owner ? (this.ChangeBtn.node.active = !0, this._owner.Sid == this._selectHero.Sid ? this.ChangeBtnLabel.string = "PowerCore_Remove".ToUILocale() : this.ChangeBtnLabel.string = "equip_replace".ToUILocale()) : this.WearBtn.node.active = !0
                }, t.prototype.OnChange = function() {
                    var e;
                    if (this._owner.Sid == (null === (e = this._selectHero) || void 0 === e ? void 0 : e.Sid)) {
                        var t = new s.Req_Item_MagicCircleChangeHeroId;
                        t.Id = this._model.Sid, h.RpcComponent.Instance.Call(t, function() {
                            a.UIManager.Instance.CloseUIPanel(u.PanelConfig.MagicCircleChangePanel.Path), a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_PET_DATA_REFRESH), d.UIUtlity.ShowFloatingHint("magicCircle_unload_success".ToUILocale())
                        })
                    } else this.OnWear()
                }, t.prototype.OnWear = function() {
                    var e = this;
                    if (this._selectHero) {
                        var t = new s.Req_Item_MagicCircleChangeHeroId;
                        t.Id = this._model.Sid, t.HeroId = this._selectHero.Sid, this._oldBP = this._selectHero.Power, h.RpcComponent.Instance.Call(t, function() {
                            if (e._selectHero) {
                                a.UIManager.Instance.CloseUIPanel(u.PanelConfig.MagicCircleChangePanel.Path), a.Game.EventDispatcher.Emit(p.EventKeys.EVENT_PET_DATA_REFRESH), d.UIUtlity.ShowFloatingHint("magicCircle_take_success".ToUILocale());
                                var t = h.DataCenter.Instance.GetDataById(s.UserHero_Model, e._selectHero.Sid);
                                a.UIManager.Instance.ShowUIPanel(u.PanelConfig.BattlePowerChangePanel.Path, e._oldBP, t.Power)
                            }
                        })
                    }
                }, t.prototype.OnClickItem = function(e, t) {
                    var n = t.getComponent(c.ItemComponent);
                    this._itemComponent == n && d.UIUtlity.ShowItemTip(this._model.Sid, t)
                }, i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Node)], t.prototype, "HeroContainer", void 0), i([g(cc.Node)], t.prototype, "HeroItemContainer", void 0), i([g(cc.Label)], t.prototype, "OwnerTag", void 0), i([g(cc.Label)], t.prototype, "ItemName", void 0), i([g(cc.Label)], t.prototype, "ItemScore", void 0), i([g(cc.Button)], t.prototype, "ChangeBtn", void 0), i([g(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([g(cc.Button)], t.prototype, "WearBtn", void 0), i([g(cc.Label)], t.prototype, "WearBtnLabel", void 0), i([g(cc.Label)], t.prototype, "BtnUpLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MagicCircleChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bfd36LDCkNHbbuitiuse2AM", "MagicCircleChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/ItemComponent"),
            h = e("../Components/CustomLayout"),
            f = e("../Components/ItemClickComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../GamePlay/Components/Components"),
            _ = e("../Components/MagicCircleChangeItem"),
            C = e("../Components/PetSelectTabComponent"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.ItemContainer = null, t.ItemName = null, t.TagContainer = null, t.TagLabel = null, t.ItemTypeDesc = null, t.ItemTypeValue = null, t.ItemScoreDesc = null, t.ItemScoreValue = null, t.NoneEquipHintNode = null, t.ScrollviewBg = null, t.CustomLayout = null, t.NoneItemHint = null, t.ResetButton = null, t.SelectButtons = [], t.HintNode = null, t.HintLayout = null, t._isCusomLayoutInit = !1, t._selectIndex = -1, t._selectTabs = [-1, -1, -1], t._tabNodes = [], t._sortModelArray = [], t._staticDesc = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(g.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MagicCirclePanel/Components/MagicCircleChangeItem", cc.Prefab), o = this.LoadDynamicAsset("HeroPetPanel/Components/PetSelectTabComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._changeItemPrefab = e[1], r._tabPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.ItemTypeDesc.string = "equip_type_tag".ToUILocale(), this.ItemScoreDesc.string = "equip_score_tag".ToUILocale(), this.TagLabel.string = "pet_current_take".ToUILocale(), this.NoneItemHint.string = "magicCircle_notHave".ToUILocale(), this.ItemTypeValue.string = "magicCircle".ToUILocale(), this._staticDesc = ["screen_isDress".ToUILocale(), "common_quality".ToUILocale(), "common_element".ToUILocale()], this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.SelectButtons.forEach(function(e) {
                        e.node.on("click", t.OnSelectButtonClick, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectHero = t[0], this._totalModels = I.DataCenter.Instance.GetDataList(c.MagicCircle_Model), this._totalModels.sort(this.SortItems.bind(this))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.ConfigSelectItem(), this.InitCusomtLayout(), this._sortModelArray = this._totalModels.concat(), this.SetNoItemHint(), this.CustomLayout.RenderLayOut(this._sortModelArray.length), this.SetSelectNode(t)
                }, t.prototype.ConfigSelectItem = function() {
                    var e;
                    if (!this._itemComponent) {
                        var t = cc.instantiate(this._itemPrefab);
                        t.setParent(this.ItemContainer), t.getComponent(f.default).enabled = !1, this._itemComponent = t.getComponent(d.ItemComponent)
                    }
                    var n = I.DataCenter.Instance.GetHeroMagicCircle(null === (e = this._selectHero) || void 0 === e ? void 0 : e.Sid);
                    if (n) {
                        var o = I.DataCenter.Instance.GetDataById(c.MagicCircle_Model, n);
                        this._itemComponent.Init({
                            ItemId: o.Sid,
                            StarLevel: o.Star
                        }, d.ItemComponentType.ItemWithStar);
                        var r = I.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, o.Sid),
                            i = I.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleQuality_Config, r.Quality);
                        this.ItemScoreValue.string = (i.StarScore * o.Star + i.LevelScore * o.Level).toString(), this.ItemName.string = o.Sid.ToItemName(), this.TagContainer.active = !0
                    } else this._itemComponent.SetItemSimpleState(), this.ItemScoreValue.string = "", this.ItemName.string = "magicCircle_notTake".ToUILocale(), this.TagContainer.active = !1
                }, t.prototype.InitCusomtLayout = function() {
                    this._isCusomLayoutInit || (this._isCusomLayoutInit = !0, this.CustomLayout.Init(this._changeItemPrefab))
                }, t.prototype.UpdateCustomLayout = function() {
                    this._sortModelArray.length || m.UIUtlity.ShowFloatingHint("magicCircle_notHave".ToUILocale()), this.SetNoItemHint(), this.CustomLayout.RenderLayOut(this._sortModelArray.length)
                }, t.prototype.SetNoItemHint = function() {
                    0 == this._sortModelArray.length ? (this.NoneEquipHintNode.active = !0, this.ScrollviewBg.active = !1) : (this.NoneEquipHintNode.active = !1, this.ScrollviewBg.active = !0)
                }, t.prototype.OnResetButtonClick = function() {
                    this._selectTabs = [-1, -1, -1], this._selectIndex = -1, this.HintNode.active = !1, this._sortModelArray = this._totalModels.concat(), this.SetSelectNode(!1), this.UpdateCustomLayout()
                }, t.prototype.OnSelectButtonClick = function(e) {
                    var t = Number(e.node.name);
                    t == this._selectIndex ? (this._selectIndex = -1, this.HintNode.active = !1) : (this._selectIndex = t, this.HintNode.active = !0, this.ResetTabNodes(), this.SetSelectTabHint(), this.SetHintNodePosition()), this.SetSelectNode(!0)
                }, t.prototype.OnSelectTab = function(e) {
                    if (this._selectIndex < this._selectTabs.length) {
                        if (this._selectTabs[this._selectIndex] == e) return this.HintNode.active = !1, this._selectIndex = -1, void this.SetSelectNode(!0);
                        this._selectTabs[this._selectIndex] = e, this.SetSelectTabHint(), this.SortArray(), this.UpdateCustomLayout(), this._selectIndex = -1, this.HintNode.active = !1, this.SetSelectNode(!0)
                    }
                }, t.prototype.ResetTabNodes = function() {
                    this._tabNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetSelectNode = function(e) {
                    var t = this;
                    this.SelectButtons.forEach(function(n, o) {
                        var r = cc.find("Background/SelectLabel", n.node).getComponent(cc.Label);
                        if (cc.find("ArrowSprite", n.node).scaleY = t._selectIndex == o ? 1 : -1, e) {
                            var i = t.GetPropertyList(o),
                                a = i[0];
                            if (o < t._selectTabs.length) {
                                var s = t._selectTabs[o];
                                if (s < i.length && s >= 0) {
                                    a = i[s];
                                    var l = t.GetDesc(o, a);
                                    r.string = l
                                }
                            }
                        } else r.string = t._staticDesc[o]
                    })
                }, t.prototype.SortArray = function() {
                    var e = [],
                        t = [],
                        n = 0;
                    e = this._totalModels.concat();
                    for (var o = function() {
                            t = [];
                            var o = r.GetPropertyList(n),
                                i = -1;
                            if (r._selectTabs[n] < o.length) {
                                var a = -1 == r._selectTabs[n] ? 0 : r._selectTabs[n];
                                i = o[a]
                            }
                            if (-1 == i) return n++, "continue";
                            switch (n) {
                                case 0:
                                    i > 0 ? e.forEach(function(e) {
                                        e.HeroId && I.DataCenter.Instance.GetDataById(c.UserHero_Model, e.HeroId) && t.push(e)
                                    }) : 0 == i && e.forEach(function(e) {
                                        e.HeroId && I.DataCenter.Instance.GetDataById(c.UserHero_Model, e.HeroId) || t.push(e)
                                    });
                                    break;
                                case 1:
                                    e.forEach(function(e) {
                                        I.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, e.Sid).Quality == i && t.push(e)
                                    });
                                    break;
                                default:
                                    t = e
                            }
                            e = t, n++
                        }, r = this; n < 3;) o();
                    this._sortModelArray = e
                }, t.prototype.SetSelectTabHint = function() {
                    var e = this;
                    if (this.HintNode.active = this._selectIndex > -1, this._selectIndex > -1 && this._selectIndex < this._selectTabs.length) {
                        var t = this.GetPropertyList(this._selectIndex),
                            n = t.length;
                        t.forEach(function(t, o) {
                            if (!e._tabNodes[o]) {
                                var r = cc.instantiate(e._tabPrefab);
                                r.parent = e.HintLayout, e._tabNodes[o] = r
                            }
                            e._tabNodes[o].active = !0;
                            var i = e._selectTabs[e._selectIndex],
                                a = e.GetDesc(e._selectIndex, t);
                            e._tabNodes[o].getComponent(C.default).InitUI(i, o, a, n)
                        })
                    }
                }, t.prototype.GetPropertyList = function(e) {
                    var t = [];
                    switch (e) {
                        case 0:
                            t = [-1, 1, 0];
                            break;
                        case 1:
                            var n = I.ConfigDataComponent.Instance.GetArrayConfig(u.MagicCircleQuality_Config);
                            t = [-1], n.forEach(function(e) {
                                t.push(e.Id)
                            });
                            break;
                        case 2:
                            t = [-1, p.HeroElementType.Heart, p.HeroElementType.Power, p.HeroElementType.Tech, p.HeroElementType.Break, p.HeroElementType.Fight, p.HeroElementType.Chaos]
                    }
                    return t
                }, t.prototype.GetDesc = function(e, t) {
                    var n = "";
                    switch (e) {
                        case 0:
                            n = t >= 0 ? t > 0 ? "screen_dress".ToUILocale() : "screen_undress".ToUILocale() : "screen_all".ToUILocale();
                            break;
                        case 1:
                            n = t < 0 ? "screen_all".ToUILocale() : ("pet_quality_" + t).ToUILocale();
                            break;
                        case 2:
                            n = t < 0 ? "screen_all".ToUILocale() : t.ToHeroElementName()
                    }
                    return n
                }, t.prototype.SetHintNodePosition = function() {
                    if (this.SelectButtons[this._selectIndex]) {
                        var e = this.SelectButtons[this._selectIndex].node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            t = this.node.convertToNodeSpaceAR(e);
                        this.HintNode.x = t.x, this.HintNode.y = t.y + 40
                    }
                }, t.prototype.SortItems = function(e, t) {
                    var n, o, r = I.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, e.Sid),
                        i = I.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, t.Sid);
                    return e.HeroId == (null === (n = this._selectHero) || void 0 === n ? void 0 : n.Sid) ? -1 : t.HeroId == (null === (o = this._selectHero) || void 0 === o ? void 0 : o.Sid) ? 1 : r.Quality == i.Quality ? e.Star == t.Star ? e.Level == t.Level ? t.Sid - e.Sid : t.Level - e.Level : t.Star - e.Star : i.Quality - r.Quality
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(_.default).Init(n._selectHero, n._sortModelArray[t], n._itemPrefab)
                    })
                }, i([S(cc.Node)], t.prototype, "ItemContainer", void 0), i([S(cc.Label)], t.prototype, "ItemName", void 0), i([S(cc.Node)], t.prototype, "TagContainer", void 0), i([S(cc.Label)], t.prototype, "TagLabel", void 0), i([S(cc.Label)], t.prototype, "ItemTypeDesc", void 0), i([S(cc.Label)], t.prototype, "ItemTypeValue", void 0), i([S(cc.Label)], t.prototype, "ItemScoreDesc", void 0), i([S(cc.Label)], t.prototype, "ItemScoreValue", void 0), i([S(cc.Node)], t.prototype, "NoneEquipHintNode", void 0), i([S(cc.Node)], t.prototype, "ScrollviewBg", void 0), i([S(h.default)], t.prototype, "CustomLayout", void 0), i([S(cc.Label)], t.prototype, "NoneItemHint", void 0), i([S(cc.Button)], t.prototype, "ResetButton", void 0), i([S(cc.Button)], t.prototype, "SelectButtons", void 0), i([S(cc.Node)], t.prototype, "HintNode", void 0), i([S(cc.Node)], t.prototype, "HintLayout", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/MagicCircleChangeItem": "MagicCircleChangeItem",
        "../Components/PetSelectTabComponent": "PetSelectTabComponent"
    }],
    MagicCircleCollectionHandBookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9d6e9AMzeZH8osjsZU9agaI", "MagicCircleCollectionHandBookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/LevelComponent"),
            d = e("../Components/QualitySelectGroup"),
            h = e("../Components/LoadAssetHelper"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("./CollectionHandbookPanel"),
            v = e("../Components/MagicCircleListItem"),
            b = e("../../RedDot/RedDotDataHandler"),
            S = e("../Components/AsyncLayout"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.BottomMagicCircleAvatarNode = null, t.TopMagicCircleAvatarNode = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.AsyncLayout = null, t.InfoNode = null, t.AttrNode = null, t.MaxLabel = null, t.UpgradeButton = null, t.UpgradeButtonLabel = null, t.GrayButton = null, t.GrayButtonLabel = null, t.UpgradeRedDot = null, t.DetailButton = null, t.DetailButtonLabel = null, t.HintLabel = null, t.SmallTitleLabel = null, t.QualitySelectGroup = null, t.RedDotNodeArr = [], t.NameLabel = null, t.StarBgNode = null, t.LevelComponent = null, t.BackButton = null, t.UpgradeNode = null, t._attrComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchQuality, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchQuality, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("MagicCirclePanel/Components/MagicCircleListItem", cc.Prefab), this.LoadDynamicAsset("MagicCirclePanel/Png/MagicCircle", cc.SpriteAtlas)]).then(function(e) {
                                        t._cardPrefab = e[0], t._atlas = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.UpgradeButton.node.on("click", this.OnUpgradeButtonClick, this), this.GrayButton.node.on("click", this.OnGrayButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.SmallTitleLabel.string = "CollectionPavilion_HeroFetter_TotalAttr_Attr".ToUILocale(), this.DetailButtonLabel.string = "HeroFavorList_AttributeTitle".ToUILocale(), this.MaxLabel.string = "CollectionPavilion_HeroFetter_MaxLevel".ToUILocale(), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(h.default)), this.AttrNode.children.forEach(function(e, n) {
                        t._attrComponents[n] = {
                            Icon: e.getChildByName("Icon").getComponent(cc.Sprite),
                            NameLabel: e.getChildByName("NameLabel").getComponent(cc.Label),
                            ValueRichText: e.getChildByName("ValueRichText").getComponent(cc.RichText),
                            OldValueLabel: e.getChildByName("OldValueLabel").getComponent(cc.Label),
                            NewValueLabel: e.getChildByName("NewValueLabel").getComponent(cc.Label),
                            Arrow: e.getChildByName("Arrow")
                        }
                    }), this.InitAsyncLayout()
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._baseConfigArr = f.ConfigDataComponent.Instance.GetArrayConfig(u.MagicCircleBase_Config).filter(function(e) {
                        return g.default.Instance.IsModuleShowAvailable(I.ModuleStartTime.MagicCircle, e.Id)
                    }), this.SortBaseConfig(), this._selectedIndex = 0, this._magicCircleGroupByQuality = {}, this._baseConfigArr.forEach(function(e) {
                        n._magicCircleGroupByQuality[e.Quality] || (n._magicCircleGroupByQuality[e.Quality] = []), n._magicCircleGroupByQuality[e.Quality].push(e), n._magicCircleGroupByQuality[0] || (n._magicCircleGroupByQuality[0] = []), n._magicCircleGroupByQuality[0].push(e)
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t ? this.RenderAsyncLayout() : this.QualitySelectGroup.SetDefault(), this.SetSelectMagicCircleInfo(), this.SetGroupRedDot()
                }, t.prototype.SortBaseConfig = function() {
                    this._baseConfigArr.sort(function(e, t) {
                        var n = f.DataCenter.Instance.GetDataById(c.MagicCircle_Model, e.Id),
                            o = f.DataCenter.Instance.GetDataById(c.MagicCircle_Model, t.Id);
                        return (!n || !n.TeamStar) && o && o.TeamStar > 0 ? 1 : !(n && n.TeamStar > 0) || o && o.TeamStar ? e.Quality < t.Quality ? 1 : e.Quality > t.Quality ? -1 : n && o ? n.Star < o.Star ? 1 : n.Star > o.Star ? -1 : e.Id - t.Id : e.Id - t.Id : -1
                    })
                }, t.prototype.OnInitializeItem = function(e, t) {
                    e.name = t.toString();
                    var n = e.getComponent(v.default),
                        o = this._magicCircleGroupByQuality[this._selectQuality][t];
                    n.Init(o, this._atlas, !0), n.SetLabelScale(1 / this.AsyncLayout.ScrollView.node.scale), n.SetSelectedBorder(this._selectedIndex == t), n.SetRedDotState(b.RedDotDataHandler.Instance.RefreshMagicCircleHandBookCard({
                        Value1: o.Id
                    })), this._selectedIndex == t && (this._selectedCardNode = e), e.hasEventListener("click") || e.on("click", this.OnClickCard, this)
                }, t.prototype.InitAsyncLayout = function() {
                    this.AsyncLayout.Init(this._cardPrefab, this.OnInitializeItem.bind(this))
                }, t.prototype.RenderAsyncLayout = function() {
                    this.AsyncLayout.RenderLayout(this._magicCircleGroupByQuality[this._selectQuality] ? this._magicCircleGroupByQuality[this._selectQuality].length : 0, this._selectedIndex)
                }, t.prototype.SetSelectMagicCircleInfo = function() {
                    var e = this;
                    if (-1 == this._selectedIndex) return this.InfoNode.active = !1, this.UpgradeNode.active = !1, this.BottomMagicCircleAvatarNode.active = !1, this.TopMagicCircleAvatarNode.active = !1, this.LeftArrowButton.node.active = !1, this.RightArrowButton.node.active = !1, this.NameLabel.string = "", void this.LevelComponent.Init(0);
                    this.InfoNode.active = !0, this.UpgradeNode.active = !0, this.BottomMagicCircleAvatarNode.active = !0, this.TopMagicCircleAvatarNode.active = !0, this._upLevelAddAttrData = [];
                    var t = this._magicCircleGroupByQuality[this._selectQuality][this._selectedIndex];
                    this.NameLabel.string = t.Id.ToItemName(), this.SetMagicCircleAvatar(t.Model);
                    var n = f.DataCenter.Instance.GetDataById(c.MagicCircle_Model, t.Id);
                    this.LevelComponent.Init(n ? n.Star : 1);
                    var o = f.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleQuality_Config, t.Quality);
                    this._attrComponents.forEach(function(r, i) {
                        var a = o.TeamAttrs[i].Items[0],
                            s = 0;
                        n && n.TeamStar > 0 && (s = o.TeamAttrs[i].Items[n.TeamStar]);
                        var l = g.default.GetHeroAttribute(a, s, !0);
                        if (r.Icon.spriteFrame = l.Icon, r.NameLabel.string = l.Name, r.OldValueLabel.string = "+" + l.Value, n && n.TeamStar < n.Star) {
                            var c = o.TeamAttrs[i].Items[n.Star];
                            r.OldValueLabel.node.x = 62, r.NewValueLabel.node.active = !0, r.Arrow.active = !0, r.NewValueLabel.string = "+" + g.default.GetHeroAttributeValue(c, a, null, !0), e._upLevelAddAttrData.push(a), e._upLevelAddAttrData.push(c - s)
                        } else n && n.TeamStar >= t.MaxStar ? (r.OldValueLabel.node.x = r.Arrow.x, r.NewValueLabel.node.active = !1, r.Arrow.active = !1) : (r.OldValueLabel.node.x = 62, r.NewValueLabel.node.active = !0, r.Arrow.active = !0, r.NewValueLabel.string = "+" + g.default.GetHeroAttributeValue(o.TeamAttrs[i].Items[n ? n.TeamStar + 1 : 1], a, null, !0))
                    }), this.GrayButton.node.active = !1, n && n.Star >= t.MaxStar && n.TeamStar >= t.MaxStar ? (this.UpgradeButton.node.active = !1, this.MaxLabel.node.parent.active = !0, this.HintLabel.node.active = !1) : (this.MaxLabel.node.parent.active = !1, n ? (this.UpgradeButtonLabel.string = "CollectionPavilion_HeroFetter_UpLevel".ToUILocale(), this.UpgradeButton.node.active = !0, n.TeamStar < n.Star ? (this.HintLabel.node.active = !1, this.UpgradeRedDot.active = !0) : (this.HintLabel.node.active = !0, this.HintLabel.string = "magicCircle_handBook_upHint".ToUILocale().Fmt(n.Star + 1), this.UpgradeRedDot.active = !1)) : (this.HintLabel.node.active = !0, this.HintLabel.string = "magicCircle_handBook_upHint".ToUILocale().Fmt(1), this.GrayButtonLabel.string = "CollectionPavilion_HeroFetter_UnLock".ToUILocale(), this.UpgradeButton.node.active = !1, this.GrayButton.node.active = !0, this.UpgradeRedDot.active = !1)), this.SetArrowBtn()
                }, t.prototype.SetMagicCircleAvatar = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function() {
                            return this._loadAssetHelper.LoadPrefab(e + "/HeroAvatar", this.BottomMagicCircleAvatarNode, function(e) {
                                t = e, n && t && (t.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), n.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                            }, 2), this._loadAssetHelper.LoadPrefab(e + "/HeroAvatar", this.TopMagicCircleAvatarNode, function(e) {
                                (n = e) && t && (t.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), n.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                            }, 3), [2]
                        })
                    })
                }, t.prototype.OnLeftArrowButtonClick = function() {
                    this._selectedIndex > 0 && (this._selectedIndex--, this.RenderAsyncLayout(), this.SetSelectMagicCircleInfo())
                }, t.prototype.OnRightArrowButtonClick = function() {
                    this._selectedIndex < this._magicCircleGroupByQuality[this._selectQuality].length - 1 && (this._selectedIndex++, this.RenderAsyncLayout(), this.SetSelectMagicCircleInfo())
                }, t.prototype.SetArrowBtn = function() {
                    this._selectedIndex <= 0 ? this.LeftArrowButton.node.active = !1 : this.LeftArrowButton.node.active = !0, this._selectedIndex >= this._magicCircleGroupByQuality[this._selectQuality].length - 1 ? this.RightArrowButton.node.active = !1 : this.RightArrowButton.node.active = !0
                }, t.prototype.OnUpgradeButtonClick = function() {
                    var e = this;
                    if (this.HintLabel.node.active) m.UIUtlity.ShowFloatingHint(this.HintLabel.string);
                    else {
                        var t = new c.Req_Item_MagicCircleHandbookUpgrade;
                        t.Id = this._magicCircleGroupByQuality[this._selectQuality][this._selectedIndex].Id;
                        var n = f.DataCenter.Instance.GetIntData(I.UserDataKey.Power);
                        f.RpcComponent.Instance.Call(t, function() {
                            l.UIManager.Instance.ShowUIPanel(_.PanelConfig.CollectionHandbookSuccessPanel.Path, C.CollectionHandbookType.MagicCircle, null, null, e._upLevelAddAttrData);
                            var t = f.DataCenter.Instance.GetIntData(I.UserDataKey.Power);
                            n != t && l.UIManager.Instance.ShowUIPanel(_.PanelConfig.BattlePowerChangePanel.Path, n, t), e.RenderAsyncLayout(), e.SetSelectMagicCircleInfo(), e.SetGroupRedDot()
                        })
                    }
                }, t.prototype.OnGrayButtonClick = function() {
                    m.UIUtlity.ShowFloatingHint(this.HintLabel.string)
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = {};
                    this._baseConfigArr.forEach(function(t) {
                        var n = f.DataCenter.Instance.GetDataById(c.MagicCircle_Model, t.Id);
                        n && n.TeamStar > 0 && f.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleQuality_Config, t.Quality).TeamAttrs.forEach(function(t) {
                            var o = t.Items[0],
                                r = t.Items[n.TeamStar];
                            e[o] && (r += e[o]), e[o] = r
                        })
                    });
                    var t = {};
                    for (var n in t.Title = "heroSkin_attr".ToUILocale(), t.IsShowAddAttr = !0, t.AttrArray = [], t.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(), e) {
                        var o = {};
                        o.attrId = Number(n), o.attrvalue = e[n], t.AttrArray.push(o)
                    }
                    l.UIManager.Instance.ShowUIPanel(_.PanelConfig.CommonTotalAttrPanel.Path, [t])
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickCard = function(e) {
                    var t = e.target,
                        n = Number.parseInt(t.name);
                    this._selectedIndex != n && (this._selectedIndex = n, this.SetSelectMagicCircleInfo(), this.SetSelectedCard(t))
                }, t.prototype.SetSelectedCard = function(e) {
                    this._selectedCardNode && this._selectedCardNode.getComponent(v.default).SetSelectedBorder(!1), this._selectedCardNode = e, this._selectedCardNode.getComponent(v.default).SetSelectedBorder(!0)
                }, t.prototype.OnSwitchQuality = function(e, t) {
                    t == this.QualitySelectGroup.node && this._selectQuality != e && (this._selectQuality = e, this.RefreshSelectedIndex(), this.RenderAsyncLayout(), this.SetSelectMagicCircleInfo())
                }, t.prototype.RefreshSelectedIndex = function() {
                    var e = this._magicCircleGroupByQuality[this._selectQuality];
                    if (e && e.length > 0) {
                        for (var t = 0; t < e.length; t++) {
                            var n = f.DataCenter.Instance.GetDataById(c.MagicCircle_Model, e[t].Id);
                            if (n && n.TeamStar < n.Star) return void(this._selectedIndex = t)
                        }
                        this._selectedIndex = 0
                    } else this._selectedIndex = -1
                }, t.prototype.SetGroupRedDot = function() {
                    for (var e = 0, t = this.RedDotNodeArr; e < t.length; e++) {
                        var n = t[e],
                            o = Number.parseInt(n.name),
                            r = this._magicCircleGroupByQuality[o];
                        if (r && r.length > 0) {
                            for (var i = !1, a = 0; a < r.length; a++) {
                                var s = f.DataCenter.Instance.GetDataById(c.MagicCircle_Model, r[a].Id);
                                if (s && s.TeamStar < s.Star) {
                                    i = !0;
                                    break
                                }
                            }
                            n.active = i
                        } else n.active = !1
                    }
                }, i([A(cc.Node)], t.prototype, "BottomMagicCircleAvatarNode", void 0), i([A(cc.Node)], t.prototype, "TopMagicCircleAvatarNode", void 0), i([A(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([A(cc.Button)], t.prototype, "RightArrowButton", void 0), i([A(S.default)], t.prototype, "AsyncLayout", void 0), i([A(cc.Node)], t.prototype, "InfoNode", void 0), i([A(cc.Node)], t.prototype, "AttrNode", void 0), i([A(cc.Label)], t.prototype, "MaxLabel", void 0), i([A(cc.Button)], t.prototype, "UpgradeButton", void 0), i([A(cc.Label)], t.prototype, "UpgradeButtonLabel", void 0), i([A(cc.Button)], t.prototype, "GrayButton", void 0), i([A(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([A(cc.Node)], t.prototype, "UpgradeRedDot", void 0), i([A(cc.Button)], t.prototype, "DetailButton", void 0), i([A(cc.Label)], t.prototype, "DetailButtonLabel", void 0), i([A(cc.Label)], t.prototype, "HintLabel", void 0), i([A(cc.Label)], t.prototype, "SmallTitleLabel", void 0), i([A(d.default)], t.prototype, "QualitySelectGroup", void 0), i([A(cc.Node)], t.prototype, "RedDotNodeArr", void 0), i([A(cc.Label)], t.prototype, "NameLabel", void 0), i([A(cc.Node)], t.prototype, "StarBgNode", void 0), i([A(p.LevelComponent)], t.prototype, "LevelComponent", void 0), i([A(cc.Button)], t.prototype, "BackButton", void 0), i([A(cc.Node)], t.prototype, "UpgradeNode", void 0), i([P], t)
            }(l.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/MagicCircleListItem": "MagicCircleListItem",
        "../Components/QualitySelectGroup": "QualitySelectGroup",
        "./CollectionHandbookPanel": "CollectionHandbookPanel"
    }],
    MagicCircleDetailsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b761fNML5tO27dEn1IfuMB5", "MagicCircleDetailsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../Components/ItemComponent"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/SkillItemComponent"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../Components/PetDetailAttr"),
            _ = e("../Components/ItemClickComponent"),
            C = e("./MagicCircleInfoPanel"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.ItemContainer = null, t.NameLabel = null, t.LevelText = null, t.ItemTypeTag = null, t.ItemTypeValue = null, t.ItemScoreTag = null, t.ItemScoreValue = null, t.AttrTittle = null, t.AttrLayout = null, t.SkillTittle = null, t.SkillItemNode = null, t.TakeOffBtn = null, t.TakeOffBtnLabel = null, t.StrengthenBtn = null, t.StrengthenBtnLabel = null, t.ChangeBtn = null, t.ChangeBtnLabel = null, t.TitleBgs = [], t.TitleLabels = [], t._attributeComponent = [], t._skillComponent = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/SkillItemComponent", cc.Prefab), o = this.LoadDynamicAsset("HeroPetPanel/Components/PetDetailAttr", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._coreSkillPrefab = e[1], r._attributePrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ItemTypeTag.string = "equip_type_tag".ToUILocale(), this.ItemScoreTag.string = "equip_score_tag".ToUILocale(), this.AttrTittle.string = "magicCircle_detail_attr".ToUILocale(), this.SkillTittle.string = "magicCircle_detail_skill".ToUILocale(), this.TakeOffBtnLabel.string = "PowerCore_Remove".ToUILocale(), this.StrengthenBtnLabel.string = "PowerCore_Train".ToUILocale(), this.ChangeBtnLabel.string = "equip_change".ToUILocale(), this.ItemTypeValue.string = "magicCircle".ToUILocale(), this.TakeOffBtn.node.on("click", this.OnClickTakeOff, this), this.StrengthenBtn.node.on("click", this.OnClickStrengthen, this), this.ChangeBtn.node.on("click", this.OnClickChange, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._magicCircleId = t[0], this._heroSid = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetPowerCoreData(t), this.ConfigInfoContainer(), this.ConfigAttrsContainer(), this.ConfigSkillContainer(), this.SetRedDot()
                }, t.prototype.SetPowerCoreData = function(e) {
                    this._model = d.DataCenter.Instance.GetDataById(c.MagicCircle_Model, this._magicCircleId), this._baseConfig = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, this._model.Sid), this._starConfig = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleStar_Config, this._baseConfig.MaxStar), e || (this._qualityConfig = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleQuality_Config, this._baseConfig.Quality))
                }, t.prototype.ConfigInfoContainer = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), e.getComponent(_.default).enabled = !1, this._itemComponent = e.getComponent(h.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: this._model.Sid,
                        StarLevel: this._model.Star
                    }, h.ItemComponentType.ItemWithStar), this.NameLabel.string = this._baseConfig.Id.ToItemName(), this._model && (this.LevelText.string = "<outline color=#202434 width=3><color=#6eeea7>" + "HeroTalent_LevelValue".ToUILocale().Fmt(this._model.Level + "</color></outline>", this._starConfig.MaxLevel), this._model.Level > 0 ? this.ItemScoreValue.string = (this._model.Star * this._qualityConfig.StarScore + this._model.Level * this._qualityConfig.LevelScore).toString() : this.ItemScoreValue.string = "0")
                }, t.prototype.ConfigAttrsContainer = function() {
                    for (var e = C.default.GetMagicCircleAttrByQuality(this._baseConfig.Quality, this._model.Star, this._model.Level, this._magicCircleId), t = 0; t < e.length; t++) {
                        var n = f.default.GetHeroAttribute(e[t].attrId, e[t].attrvalue, !0);
                        if (!this._attributeComponent[t]) {
                            var o = cc.instantiate(this._attributePrefab);
                            o.parent = this.AttrLayout, this._attributeComponent[t] = o.getComponent(I.default)
                        }
                        this._attributeComponent[t].Init(n.Icon, n.Name, "<outline color=#202434 width=3><color=#6eeea7>+" + n.Value + "</color></outline>", 410)
                    }
                }, t.prototype.ConfigSkillContainer = function() {
                    for (var e = C.default.GetMagicCircleSkills(this._model.Sid, this._model.Star), t = 0; t < e.length; t++) {
                        if (!this._skillComponent[t]) {
                            var n = cc.instantiate(this._coreSkillPrefab);
                            n.parent = this.SkillItemNode, this._skillComponent[t] = n.getComponent(g.default)
                        }
                        this._skillComponent[t].Init(e[t].SkillId, e[t].Level)
                    }
                }, t.prototype.OnClickTakeOff = function() {
                    var e = new c.Req_Item_MagicCircleChangeHeroId;
                    e.Id = this._model.Sid, d.RpcComponent.Instance.Call(e, this.OnTakeOffResponse)
                }, t.prototype.OnTakeOffResponse = function() {
                    l.UIManager.Instance.BackUIPanel(), y.UIUtlity.ShowFloatingHint("magicCircle_unload_success".ToUILocale())
                }, t.prototype.SetRedDot = function() {
                    m.RedDotManager.Instance.BindInstance(this.ChangeBtn.node, m.RedDotManager.Instance.InstanceRedDot.MagicCircleChangeBtn, {
                        Value1: this._heroSid
                    }, 15, 15)
                }, t.prototype.OnClickStrengthen = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.MagicCircleInfoPanel.Path, this._magicCircleId), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickChange = function() {
                    var e = d.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid);
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.MagicCircleChangePanel.Path, e), l.UIManager.Instance.BackUIPanel()
                }, i([S(cc.Node)], t.prototype, "ItemContainer", void 0), i([S(cc.Label)], t.prototype, "NameLabel", void 0), i([S(cc.RichText)], t.prototype, "LevelText", void 0), i([S(cc.Label)], t.prototype, "ItemTypeTag", void 0), i([S(cc.Label)], t.prototype, "ItemTypeValue", void 0), i([S(cc.Label)], t.prototype, "ItemScoreTag", void 0), i([S(cc.Label)], t.prototype, "ItemScoreValue", void 0), i([S(cc.Label)], t.prototype, "AttrTittle", void 0), i([S(cc.Node)], t.prototype, "AttrLayout", void 0), i([S(cc.Label)], t.prototype, "SkillTittle", void 0), i([S(cc.Node)], t.prototype, "SkillItemNode", void 0), i([S(cc.Button)], t.prototype, "TakeOffBtn", void 0), i([S(cc.Label)], t.prototype, "TakeOffBtnLabel", void 0), i([S(cc.Button)], t.prototype, "StrengthenBtn", void 0), i([S(cc.Label)], t.prototype, "StrengthenBtnLabel", void 0), i([S(cc.Button)], t.prototype, "ChangeBtn", void 0), i([S(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([S(cc.Sprite)], t.prototype, "TitleBgs", void 0), i([S(cc.Label)], t.prototype, "TitleLabels", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PetDetailAttr": "PetDetailAttr",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./MagicCircleInfoPanel": "MagicCircleInfoPanel"
    }],
    MagicCircleDetailsTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4711f9mPMFLf7qPHBhVwqzv", "MagicCircleDetailsTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("./MagicCircleInfoPanel"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Components/PetDetailAttr"),
            g = e("../Components/ItemComponent"),
            m = e("../Components/ItemClickComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1), t.ItemNode = null, t.NameLabel = null, t.TypeTagLabel = null, t.TypeValueLabel = null, t.ScoreTagLabel = null, t.ScoreValueLabel = null, t.GetWayButton = null, t.GetWayButtonLabel = null, t.Bottom = null, t.Top = null, t.AttrTagLabel = null, t.AttrLayoutNode = null, t.DescTagLabel = null, t.Desc = null, t.BtnContainer = null, t.ActiveButton = null, t.ActiveButtonLabel = null, t._attributeComponent = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetWayButton.node.on("click", this.OnGetWayButtonClick, this), this.ActiveButton.node.on("click", this.OnActiveButtonClick, this), this.TypeValueLabel.string = "magicCircle".ToUILocale(), this.TypeTagLabel.string = "equip_type_tag".ToUILocale(), this.ScoreTagLabel.string = "equip_score_tag".ToUILocale(), this.AttrTagLabel.string = "magicCircle_tipTag".ToUILocale(), this.DescTagLabel.string = "skill_description".ToUILocale(), this.GetWayButtonLabel.string = "CollectionPavilion_Btn_get".ToUILocale(), this.ActiveButtonLabel.string = "ChaosTemple_Active".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._magicCircleId = t[0], this._baseConfig = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, this._magicCircleId), this._model = d.DataCenter.Instance.GetDataById(c.MagicCircle_Model, this._magicCircleId), this._model ? this.BtnContainer.active = !1 : (this.BtnContainer.active = !0, this._model = new c.MagicCircle_Model({
                        Sid: this._magicCircleId,
                        Star: this._baseConfig.MaxStar,
                        Level: 1
                    }))
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), [4, Promise.all([this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset(this._baseConfig.Model + "/HeroAvatar", cc.Prefab), this.LoadDynamicAsset("HeroPetPanel/Components/PetDetailAttr", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._magicCirclePrefab = e[1], t._attributePrefab = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.ConfigInfoContainer(), this.SetMagicCircleAvatar(), this.SetAttr(), this.SetSkillDesc()
                }, t.prototype.ConfigInfoContainer = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemNode), e.getComponent(m.default).enabled = !1, this._itemComponent = e.getComponent(g.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: this._model.Sid,
                        StarLevel: this._model.Star
                    }, g.ItemComponentType.ItemWithStar), this.NameLabel.string = this._magicCircleId.ToItemName();
                    var t = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleQuality_Config, this._baseConfig.Quality);
                    this.ScoreValueLabel.string = (t.StarScore * this._model.Star + t.LevelScore * this._model.Level).toString()
                }, t.prototype.SetMagicCircleAvatar = function() {
                    var e;
                    0 == this.Bottom.childrenCount && ((e = cc.instantiate(this._magicCirclePrefab)).parent = this.Bottom, e.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0)), 0 == this.Top.childrenCount && ((e = cc.instantiate(this._magicCirclePrefab)).parent = this.Top, e.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                }, t.prototype.SetAttr = function() {
                    for (var e = h.default.GetMagicCircleAttrByQuality(this._baseConfig.Quality, this._model.Star, this._model.Level, this._magicCircleId), t = 0; t < e.length; t++) {
                        var n = f.default.GetHeroAttribute(e[t].attrId, e[t].attrvalue, !0);
                        if (!this._attributeComponent[t]) {
                            var o = cc.instantiate(this._attributePrefab);
                            o.parent = this.AttrLayoutNode, this._attributeComponent[t] = o.getComponent(y.default)
                        }
                        this._attributeComponent[t].Init(n.Icon, n.Name, "<outline color=#202434 width=3><color=#6eeea7>+" + n.Value + "</color></outline>", 410)
                    }
                }, t.prototype.SetSkillDesc = function() {
                    for (var e = "", t = 0, n = this._baseConfig.Skills; t < n.length; t++) {
                        var o = n[t];
                        e.length > 0 && (e += "\n"), e += o.Items[this._model.Star - 1].ToHeroSkillDesc()
                    }
                    this.Desc.string = e
                }, t.prototype.OnGetWayButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, this._magicCircleId), this.Close()
                }, t.prototype.OnActiveButtonClick = function() {
                    this.Close(), l.UIManager.Instance.ShowUIPanel(p.PanelConfig.MagicCircleInfoPanel.Path, this._magicCircleId)
                }, i([C(cc.Node)], t.prototype, "ItemNode", void 0), i([C(cc.Label)], t.prototype, "NameLabel", void 0), i([C(cc.Label)], t.prototype, "TypeTagLabel", void 0), i([C(cc.Label)], t.prototype, "TypeValueLabel", void 0), i([C(cc.Label)], t.prototype, "ScoreTagLabel", void 0), i([C(cc.Label)], t.prototype, "ScoreValueLabel", void 0), i([C(cc.Button)], t.prototype, "GetWayButton", void 0), i([C(cc.Label)], t.prototype, "GetWayButtonLabel", void 0), i([C(cc.Node)], t.prototype, "Bottom", void 0), i([C(cc.Node)], t.prototype, "Top", void 0), i([C(cc.Label)], t.prototype, "AttrTagLabel", void 0), i([C(cc.Node)], t.prototype, "AttrLayoutNode", void 0), i([C(cc.Label)], t.prototype, "DescTagLabel", void 0), i([C(cc.RichText)], t.prototype, "Desc", void 0), i([C(cc.Node)], t.prototype, "BtnContainer", void 0), i([C(cc.Button)], t.prototype, "ActiveButton", void 0), i([C(cc.Label)], t.prototype, "ActiveButtonLabel", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PetDetailAttr": "PetDetailAttr",
        "./MagicCircleInfoPanel": "MagicCircleInfoPanel"
    }],
    MagicCircleInfoAttrPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "96707ExPI1OIJXlkSp5xnES", "MagicCircleInfoAttrPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../Components/CurrencyBarItem"),
            p = e("./MagicCircleInfoPanel"),
            d = e("../../Components/DataCenter"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Components/PetSkillComponent"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.MaxLevelLimit = 1] = "MaxLevelLimit", e[e.StarLevelLimit = 2] = "StarLevelLimit", e[e.LevelUpToMax = 3] = "LevelUpToMax", e[e.LevelUpNormal = 4] = "LevelUpNormal"
        })(a || (a = {}));
        var S = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HeroLevelLabel = null, t.HeroMaxLevelLabel = null, t.PatternWithContent = null, t.AttrNodes = [], t.SkillLayout = null, t.UpLevelBtn = null, t.MaxUpLevelBtn = null, t.UpLevelIconBtn = null, t.UpLevelIconSprite = null, t.UpLevelLabel = null, t.MaxUpLevelLabel = null, t.UpLevelIconLabel = null, t.UpLevelIconLabelOutline = null, t.CurencyBarContainer = null, t.CurencyBars = [], t.MaxStarNode = null, t.MaxLevelHint = null, t.DetailButton = null, t._upLevelRequestTimes = 0, t._isRequestingLevelUp = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                s.Game.EventDispatcher.On(y.EventKeys.EVENT_UPHERO_TO_MAX, this.UpLevelToMax, this)
            }, t.prototype.onDisable = function() {
                s.Game.EventDispatcher.Off(y.EventKeys.EVENT_UPHERO_TO_MAX, this.UpLevelToMax, this)
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.UpLevelBtn.node.on("click", this.OnLevelUp, this), this.UpLevelIconBtn.node.on("click", this.OnLevelUp, this), this.MaxUpLevelBtn.node.on("click", this.OnMaxLevelUp, this), this.DetailButton.node.on("click", this.OnDetailButton, this), this.PatternWithContent.string = "magicCircle_attrValue".ToUILocale()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._magicCircleId = t[0], this._baseUIPanel = t[1], this._levelUpMode = a.None, this._upToLevel = 0, this._baseConfig = h.ConfigDataComponent.Instance.GetConfigById(c.MagicCircleBase_Config, this._magicCircleId)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._magicCircleModel = d.DataCenter.Instance.GetDataById(l.MagicCircle_Model, this._magicCircleId), this._curStarConfig = h.ConfigDataComponent.Instance.GetConfigById(c.MagicCircleStar_Config, this._magicCircleModel.Star), this._curLevelConfig = h.ConfigDataComponent.Instance.GetConfigById(c.MagicCircleLevel_Config, this._magicCircleModel.Level), this.CofigLevelUpMode(), this.ConfigMagicCircleInfo(), this.ConfigSkills(), this.ConfigPanelByMode()
            }, t.prototype.CofigLevelUpMode = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(c.MagicCircleStar_Config, this._baseConfig.MaxStar);
                this._currentLevel = this._magicCircleModel.Level, this._currentLevel >= e.MaxLevel && (this._levelUpMode = a.MaxLevelLimit)
            }, t.prototype.ConfigMagicCircleInfo = function() {
                var e = this,
                    t = p.default.GetMagicCircleAttrByQuality(this._baseConfig.Quality, this._magicCircleModel.Star, this._magicCircleModel.Level, this._magicCircleId);
                this.HeroLevelLabel.string = "Lv." + this._currentLevel, this.HeroMaxLevelLabel.string = "/" + this._curStarConfig.MaxLevel, this.AttrNodes.forEach(function(e) {
                    e.active = !1
                }), t.forEach(function(t, n) {
                    if (n < e.AttrNodes.length) {
                        e.AttrNodes[n].active = !0;
                        var o = f.default.GetHeroAttribute(t.attrId, t.attrvalue, !0);
                        e.AttrNodes[n].getChildByName("Icon").getComponent(cc.Sprite).spriteFrame = o.Icon, e.AttrNodes[n].getChildByName("Label").getComponent(cc.Label).string = o.Value
                    }
                })
            }, t.prototype.ConfigSkills = function() {
                for (var e = p.default.GetMagicCircleSkills(this._magicCircleId, this._magicCircleModel.Star), t = 0; t < e.length; t++) {
                    var n = e[t],
                        o = this.SkillLayout.children[t];
                    void 0 === o && (o = cc.instantiate(this._baseUIPanel.SkillPrefab)).setParent(this.SkillLayout), o.active = !0;
                    var r = o.getComponent(_.default);
                    r.Init(n.SkillId, n.Level), n.Active ? r.OffIconGray() : r.OnIconGray()
                }
                for (t = e.length; t < this.SkillLayout.childrenCount; t++) this.SkillLayout.children[t].active = !1
            }, t.prototype.ConfigPanelByMode = function() {
                this.CurencyBarContainer.active = !1, this.ConfigLevelUpMaterials(), this.ConfigLevelUpCost(), this.ConfigMaxLevelHint(), this.ConfigLevelUpButton()
            }, t.prototype.ConfigLevelUpMaterials = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(c.MagicCircleStar_Config, this._baseConfig.MaxStar);
                if (this._currentLevel >= e.MaxLevel) this._levelUpMode = a.MaxLevelLimit;
                else if (this._currentLevel >= this._curStarConfig.MaxLevel) this._levelUpMode = a.StarLevelLimit;
                else {
                    var t = h.ConfigDataComponent.Instance.GetArrayConfig(c.MagicCircleStar_Config).map(function(e) {
                        return e.MaxLevel
                    });
                    this._nearStarMaxLevel = t[this._magicCircleModel.Star - 1], this.CheckLevelMaterials()
                }
            }, t.prototype.GetLevelUpMaterials = function(e) {
                for (var t = new Map, n = new Map, o = this._curLevelConfig.Materials, r = 0; r < o.length; r++) {
                    var i = o[r].Items;
                    n.set(i[0], i[1])
                }
                var a = new Map,
                    s = h.ConfigDataComponent.Instance.GetConfigById(c.MagicCircleLevel_Config, e).Materials;
                for (r = 0; r < s.length; r++) i = s[r].Items, a.set(i[0], i[1]);
                return a.forEach(function(e, o) {
                    var r = 0;
                    n.has(o) && (r = n.get(o)), t.set(o, e - r)
                }), t
            }, t.prototype.CheckLevelMaterials = function() {
                var e = this._nearStarMaxLevel,
                    t = this._currentLevel,
                    n = !1;
                if (e - this._currentLevel > 5) {
                    n = !0;
                    for (var o = (p = this.GetLevelUpMaterials(e)).keys(), r = void 0; !(r = o.next()).done;) {
                        var i = r.value,
                            s = p.get(i);
                        if (!d.DataCenter.Instance.IsItemEnough(i, s)) {
                            n = !1;
                            break
                        }
                    }
                }
                this._levelUpMode = n ? a.LevelUpToMax : a.LevelUpNormal;
                for (var l = this._currentLevel + 1, c = Math.min(this._currentLevel + 5, e), u = l; u <= c; u++) {
                    var p, h = !0;
                    for (o = (p = this.GetLevelUpMaterials(u)).keys(), r = void 0; !(r = o.next()).done;)
                        if (i = r.value, s = p.get(i), !d.DataCenter.Instance.IsItemEnough(i, s)) {
                            this._notEnoughId = i, h = !1;
                            break
                        } if (!h) break;
                    t = u
                }
                this._upToLevel = t
            }, t.prototype.ConfigLevelUpButton = function() {
                switch (this.UpLevelBtn.node.active = !1, this.MaxUpLevelBtn.node.active = !1, this.UpLevelIconBtn.node.active = !1, this._levelUpMode) {
                    case a.StarLevelLimit:
                        this.UpLevelBtn.node.active = !0;
                        break;
                    case a.LevelUpToMax:
                        m.UIUtlity.OffSpriteGray(this.UpLevelIconSprite), this.UpLevelIconLabelOutline.color = (new cc.Color).fromHEX("#684c1b"), this.UpLevelIconBtn.node.active = !0, this.MaxUpLevelBtn.node.active = !0, this.MaxUpLevelLabel.string = "up_to_max_level".ToUILocale().Fmt("Lv." + this._nearStarMaxLevel);
                        break;
                    case a.MaxLevelLimit:
                        break;
                    default:
                        m.UIUtlity.OffSpriteGray(this.UpLevelIconSprite), this.UpLevelIconLabelOutline.color = (new cc.Color).fromHEX("#684c1b"), this.UpLevelIconBtn.node.active = !0
                }
                var e = this._upToLevel - this._currentLevel;
                e > 0 ? (this.UpLevelIconLabel.string = "up_level".ToUILocale().Fmt(e), g.RedDotManager.Instance.BindNodeByResult(this.UpLevelIconBtn.node, g.RedDotManager.Instance.InstanceRedDot.HeroInfoAttrLevelBtn, !0)) : (this.UpLevelLabel.string = "up_level".ToUILocale().Fmt(""), this.UpLevelIconLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), m.UIUtlity.OnSpriteGray(this.UpLevelIconSprite), this.UpLevelIconLabelOutline.color = (new cc.Color).fromHEX("#202434"), g.RedDotManager.Instance.BindNodeByResult(this.UpLevelIconBtn.node, g.RedDotManager.Instance.InstanceRedDot.HeroInfoAttrLevelBtn, !1))
            }, t.prototype.ConfigLevelUpCost = function() {
                switch (this._levelUpMode) {
                    case a.MaxLevelLimit:
                    case a.StarLevelLimit:
                        return void(this.CurencyBarContainer.active = !1)
                }
                var e;
                this.CurencyBarContainer.active = !0, e = this._upToLevel == this._currentLevel ? this._currentLevel + 1 : this._upToLevel;
                for (var t, n = this.GetLevelUpMaterials(e), o = n.keys(), r = 0; !(t = o.next()).done;) {
                    var i = t.value,
                        s = n.get(i),
                        l = this.CurencyBars[r];
                    s > 0 ? (l.node.active = !0, l.Init(i, !1, void 0, s), r++, l.SetFixedWidth(257)) : l.node.active = !1
                }
                for (var c = r; c < this.CurencyBars.length; c++) this.CurencyBars[c].node.active = !1
            }, t.prototype.ConfigMaxLevelHint = function() {
                switch (this._levelUpMode) {
                    case a.MaxLevelLimit:
                        this.MaxStarNode.active = !0, this.MaxLevelHint.string = "level_limit_reach".ToUILocale();
                        break;
                    default:
                        this.MaxStarNode.active = !1
                }
            }, t.prototype.OnLevelUp = function() {
                var e = this;
                switch (this._levelUpMode) {
                    case a.StarLevelLimit:
                        m.UIUtlity.ShowHintPanel("", "starLevel_limit".ToUILocale(), "", null, "", function() {
                            e._baseUIPanel.SetPanelTab(1)
                        });
                        break;
                    default:
                        this._upToLevel > this._currentLevel ? this._isRequestingLevelUp || (this._upLevelRequestTimes++, this._isRequestingLevelUp = !0, this.RequestUpgradeLevel(this._upToLevel)) : m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughId.ToItemName()))
                }
            }, t.prototype.OnMaxLevelUp = function() {
                var e = this.GetLevelUpMaterials(this._nearStarMaxLevel);
                s.UIManager.Instance.ShowUIPanel(I.PanelConfig.LevelUpConfirmPanel.Path, this._currentLevel, this._nearStarMaxLevel, e, y.EventKeys.EVENT_UPHERO_TO_MAX)
            }, t.prototype.OnDetailButton = function() {
                var e = p.default.GetMagicCircleAttrByQuality(this._baseConfig.Quality, this._magicCircleModel.Star, this._magicCircleModel.Level, this._magicCircleId),
                    t = {};
                t.Title = "heroSkin_attr".ToUILocale(), t.IsShowAddAttr = !0, t.AttrArray = e, s.UIManager.Instance.ShowUIPanel(I.PanelConfig.CommonTotalAttrPanel.Path, [t])
            }, t.prototype.RequestUpgradeLevel = function(e) {
                var t = this,
                    n = new l.Req_Item_MagicCircleUpgradeLevel;
                n.Id = this._magicCircleId, n.NewLevel = e, h.RpcComponent.Instance.CallWithoutMask(n, function() {
                    t.isValid && (t._upLevelRequestTimes--, t._isRequestingLevelUp = !1, t.node.active && n.Id == t._magicCircleId && (t.DisPlay(), m.UIUtlity.ShowFloatingHint("pet_level_up_seccess".ToUILocale()), t._upLevelRequestTimes > 0 && t.UpLevelBtn.node.active && t.OnLevelUp(), t._baseUIPanel.BindAttrToggle()))
                }, function() {
                    t._isRequestingLevelUp = !1, t._upLevelRequestTimes = 0
                })
            }, t.prototype.UpLevelToMax = function() {
                this.RequestUpgradeLevel(this._nearStarMaxLevel)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, i([b(cc.Label)], t.prototype, "HeroLevelLabel", void 0), i([b(cc.Label)], t.prototype, "HeroMaxLevelLabel", void 0), i([b(cc.Label)], t.prototype, "PatternWithContent", void 0), i([b(cc.Node)], t.prototype, "AttrNodes", void 0), i([b(cc.Node)], t.prototype, "SkillLayout", void 0), i([b(cc.Button)], t.prototype, "UpLevelBtn", void 0), i([b(cc.Button)], t.prototype, "MaxUpLevelBtn", void 0), i([b(cc.Button)], t.prototype, "UpLevelIconBtn", void 0), i([b(cc.Sprite)], t.prototype, "UpLevelIconSprite", void 0), i([b(cc.Label)], t.prototype, "UpLevelLabel", void 0), i([b(cc.Label)], t.prototype, "MaxUpLevelLabel", void 0), i([b(cc.Label)], t.prototype, "UpLevelIconLabel", void 0), i([b(cc.LabelOutline)], t.prototype, "UpLevelIconLabelOutline", void 0), i([b(cc.Node)], t.prototype, "CurencyBarContainer", void 0), i([b(u.default)], t.prototype, "CurencyBars", void 0), i([b(cc.Node)], t.prototype, "MaxStarNode", void 0), i([b(cc.Label)], t.prototype, "MaxLevelHint", void 0), i([b(cc.Button)], t.prototype, "DetailButton", void 0), i([v], t)
        }(s.BaseUIPage);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/PetSkillComponent": "PetSkillComponent",
        "./MagicCircleInfoPanel": "MagicCircleInfoPanel"
    }],
    MagicCircleInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "31501cCnB5J07IDKr1sTBQv", "MagicCircleInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Components/CustomToggle"),
            h = e("../../Components/DataCenter"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/LevelComponent"),
            m = e("../../Components/Components"),
            I = e("../Components/LoadAssetHelper"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../RedDot/RedDotDataHandler"),
            S = e("./PetSelectHeroPanel"),
            w = e("../Components/GameModuleGuideManager"),
            P = e("../../Auxiliary/EventKeys");
        (function(e) {
            e[e.Attr = 0] = "Attr", e[e.UpStar = 1] = "UpStar", e[e.Talent = 2] = "Talent", e[e.None = 3] = "None"
        })(l || (l = {}));
        var A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.TalentPageBgNode = null, t.BottomMagicCircleAvatarNode = null, t.HeroAvatarNode = null, t.TopMagicCircleAvatarNode = null, t.NameLabel = null, t.StarBgNode = null, t.Toggles = [], t.LeftArrowBtn = null, t.RightArrowBtn = null, t.TabBgNode = null, t.RebornBtn = null, t.RebornBtnLabel = null, t.ReturnBtn = null, t.HeroBtnNode = null, t.HeroHeaderBgNode = null, t.HeroIcon = null, t.HeroRedDotNode = null, t._moduleType = C.GameModuleType.MagicCircle, t._isShowGuide = !1, t._guideStepIndex = 0, t._guideGroupId = 0, t._moduleGuideGroupIds = [10007], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(P.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(P.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ItemsComponent/LevelComponent", cc.Prefab), this.LoadDynamicAsset("HeroPetPanel/Components/PetSkillComponent", cc.Prefab)]).then(function(e) {
                                        t._starPrefab = e[0], t.SkillPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    if (e.prototype.InitUI.call(this), this._tabTextKey = ["petInfo_toggle_0", "petInfo_toggle_1", "allianceBase_mainPageTalent"], this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this), this.LeftArrowBtn.node.on("click", this.OnClickLeftArrow, this), this.RightArrowBtn.node.on("click", this.OnClickRightArrow, this), this.RebornBtn.node.on("click", this.OnClickReborn, this), this.HeroBtnNode.on("click", this.OnHeroButtonClick, this), this.RebornBtnLabel.string = "hero_reborn_btn".ToUILocale(), this.InitToggles(), !this._starComponent) {
                        var t = cc.instantiate(this._starPrefab);
                        t.setParent(this.StarBgNode), this._starComponent = t.getComponent(g.LevelComponent), t.scale = 1.4
                    }
                    this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(I.default))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._magicCircleId = t[0], t[1] ? this._idArr = t[1] : this._idArr = [], this._selectIndex = this._idArr.indexOf(this._magicCircleId), this._defaultTab = l.Attr
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.CheckMagicCircleUnlock(), this._currentTab = l.None, this.ConfigArrowBtn(), this.ConfigTitle();
                    var n = this.Toggles[this._defaultTab];
                    n.isChecked = !0, this.OnSwitchTab(n), this.ShowGameModuleGuide()
                }, t.prototype.CheckMagicCircleUnlock = function() {
                    var e = this;
                    this._baseConfig = m.ConfigDataComponent.Instance.GetConfigById(p.MagicCircleBase_Config, this._magicCircleId), h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, this._magicCircleId) ? (this.Toggles.forEach(function(t, n) {
                        n != l.UpStar ? t.SetInteractable(!0) : t.Init(e._tabTextKey[l.UpStar].ToUILocale())
                    }), this.HeroBtnNode.active = !0, this.RebornBtn.node.active = !0, this.SetHeroHeader()) : (this._defaultTab = this._currentTab = l.UpStar, this.Toggles.forEach(function(e, t) {
                        t != l.UpStar ? e.SetInteractable(!1, "magicCircle_curNotGet".ToUILocale()) : e.Init("ChaosTemple_Active".ToUILocale())
                    }), this.HeroBtnNode.active = !1, this.RebornBtn.node.active = !1), this.SetHeroAvatar()
                }, t.prototype.SetHeroHeader = function() {
                    var e = h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, this._magicCircleId);
                    if (e.HeroId) {
                        var t = h.DataCenter.Instance.GetDataById(u.UserHero_Model, e.HeroId);
                        t ? (this.HeroHeaderBgNode.active = !0, this.HeroIcon.node.parent.active = !0, t.SkinId ? this._loadAssetHelper.LoadSpriteFrame(y.BundlePath.HeroHeadIcon + "/" + t.SkinId, this.HeroIcon, null, 1) : this._loadAssetHelper.LoadSpriteFrame(y.BundlePath.HeroHeadIcon + "/" + t.HeroId, this.HeroIcon, null, 1)) : (this.HeroHeaderBgNode.active = !1, this.HeroIcon.node.parent.active = !1)
                    } else this.HeroHeaderBgNode.active = !1, this.HeroIcon.node.parent.active = !1;
                    this.HeroRedDotNode.active = b.RedDotDataHandler.Instance.MagicCircieCanEquip({
                        Value1: this._magicCircleId
                    })
                }, t.prototype.SetHeroAvatar = function() {
                    var e = h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, this._magicCircleId);
                    if (e && e.HeroId) {
                        var t = _.default.Instance.GetHeroSDAvatarPathById(e.HeroId);
                        t ? (this.HeroAvatarNode.active = !0, this._loadAssetHelper.LoadPrefab(t, this.HeroAvatarNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, "standby", !0)
                        }, 4)) : this.HeroAvatarNode.active = !1
                    } else this.HeroAvatarNode.active = !1
                }, t.prototype.OnHeroButtonClick = function() {
                    var e, t = this,
                        n = h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, this._magicCircleId);
                    n.HeroId && (e = h.DataCenter.Instance.GetDataById(u.UserHero_Model, n.HeroId)), n.HeroId > 0 && e ? f.UIUtlity.ShowHintPanel("", "artifact_remove_check".ToUILocale().Fmt(this._magicCircleId.ToItemName()), "", null, "", function() {
                        var e = new u.Req_Item_MagicCircleChangeHeroId;
                        e.Id = t._magicCircleId, e.HeroId, m.RpcComponent.Instance.Call(e, function() {
                            t.SetHeroHeader(), t.SetHeroAvatar()
                        })
                    }) : c.UIManager.Instance.ShowUIPanel(y.PanelConfig.PetSelectHeroPanel.Path, [], function(e) {
                        var n = new u.Req_Item_MagicCircleChangeHeroId;
                        n.Id = t._magicCircleId, n.HeroId = e, m.RpcComponent.Instance.Call(n, function() {
                            t.SetHeroHeader(), t.SetHeroAvatar()
                        }, null, t._moduleGuideGroupIds[0])
                    }, S.HeroSelectType.MagicCircle)
                }, t.prototype.InitToggles = function() {
                    for (var e = this.Toggles.length, t = 0; t < e; t++) {
                        var n = this.Toggles[t];
                        n.node.on("toggle", this.OnSwitchTab, this), n.Init(this._tabTextKey[t].ToUILocale())
                    }
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.name);
                    this.SetPanelTab(t), this.BindRedDot()
                }, t.prototype.SetPanelTab = function(e) {
                    this._currentTab != e && (this._currentTab = e, this._defaultTab = e, this.Toggles[this._currentTab].isChecked = !0, this.DoSwitchTabJob(), this.ConfigAvatar())
                }, t.prototype.DoSwitchTabJob = function() {
                    var e = h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, this._magicCircleId);
                    switch (e && e.Star >= this._baseConfig.MaxStar ? (this.Toggles[l.UpStar].node.active = !1, this._currentTab == l.UpStar && (this.SetPanelTab(l.Attr), this._currentTab = l.Attr, this.Toggles[l.Attr].isChecked = !0)) : this.Toggles[l.UpStar].node.active = !0, this.Toggles[this._currentTab].isChecked = !0, this._currentTab) {
                        case l.Attr:
                            this.TabBgNode.active = !0, this.TalentPageBgNode.active = !1, this.ShowPage("MagicCirclePanel/MagicCircleInfoAttrPage", this._magicCircleId, this);
                            break;
                        case l.UpStar:
                            this.TabBgNode.active = !0, this.TalentPageBgNode.active = !1, this.ShowPage("MagicCirclePanel/MagicCircleInfoStarPage", this._magicCircleId, this);
                            break;
                        case l.Talent:
                            this.TabBgNode.active = !1, this.TalentPageBgNode.active = !0, this.ShowPage("MagicCirclePanel/MagicCircleInfoTalentPage", this._magicCircleId, this)
                    }
                }, t.prototype.OnReturnBtnClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickLeftArrow = function() {
                    this._selectIndex > 0 && this._selectIndex--, this.ConfigArrowBtn(), this.SwitchMagicCircle(this._selectIndex)
                }, t.prototype.OnClickRightArrow = function() {
                    this._selectIndex < this._idArr.length - 1 && this._selectIndex++, this.ConfigArrowBtn(), this.SwitchMagicCircle(this._selectIndex)
                }, t.prototype.ConfigArrowBtn = function() {
                    this._idArr.length > 1 ? this._selectIndex <= 0 ? (this.LeftArrowBtn.node.active = !1, this.RightArrowBtn.node.active = !0) : this._selectIndex >= this._idArr.length - 1 ? (this.LeftArrowBtn.node.active = !0, this.RightArrowBtn.node.active = !1) : (this.LeftArrowBtn.node.active = !0, this.RightArrowBtn.node.active = !0) : (this.LeftArrowBtn.node.active = !1, this.RightArrowBtn.node.active = !1)
                }, t.prototype.ConfigTitle = function() {
                    this.NameLabel.string = this._magicCircleId.ToItemName();
                    var e = h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, this._magicCircleId);
                    this._starComponent.Init(e ? e.Star : 1)
                }, t.prototype.SwitchMagicCircle = function(e) {
                    this._magicCircleId = this._idArr[e], this.CheckMagicCircleUnlock(), this.ConfigTitle(), this.DoSwitchTabJob(), this.ConfigAvatar(), this.BindRedDot()
                }, t.prototype.ConfigAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function() {
                            return this._loadAssetHelper.LoadPrefab(this._baseConfig.Model + "/HeroAvatar", this.BottomMagicCircleAvatarNode, function(n) {
                                e = n, t && e && (e.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), t.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                            }, 2), this._loadAssetHelper.LoadPrefab(this._baseConfig.Model + "/HeroAvatar", this.TopMagicCircleAvatarNode, function(n) {
                                (t = n) && e && (e.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), t.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                            }, 3), [2]
                        })
                    })
                }, t.prototype.BindRedDot = function() {
                    this.BindAttrToggle(), this.BindStarToggle(), this.BindRefineToggle()
                }, t.prototype.BindAttrToggle = function() {
                    var e = this.Toggles[l.Attr].node;
                    v.RedDotManager.Instance.BindInstance(e, v.RedDotManager.Instance.InstanceRedDot.MagicCircleInfoAttrToggle, {
                        Value1: this._magicCircleId
                    })
                }, t.prototype.BindStarToggle = function() {
                    var e = this.Toggles[l.UpStar].node;
                    v.RedDotManager.Instance.BindInstance(e, v.RedDotManager.Instance.InstanceRedDot.MagicCircleInfoStarToggle, {
                        Value1: this._magicCircleId
                    })
                }, t.prototype.BindRefineToggle = function() {
                    v.RedDotManager.Instance.BindInstance(this.Toggles[l.Talent].node, v.RedDotManager.Instance.InstanceRedDot.MagicCircleInfoTalentToggle, {
                        Value1: this._magicCircleId
                    })
                }, t.prototype.OnClickReborn = function() {
                    var e = h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, this._magicCircleId);
                    if (e) {
                        for (var t = m.ConfigDataComponent.Instance.GetConfigById(p.MagicCircleLevel_Config, e.Level), n = [].concat(t.Materials), o = 0; o < e.Talents.length; o++)
                            for (var r = this._baseConfig.TalentIds[o], i = e.Talents[o], a = 1; a < i; a++)
                                for (var s = function(e) {
                                        var t = n.find(function(t) {
                                            return t.Items[0] == e.Items[0]
                                        });
                                        t ? t.Items[1] += e.Items[1] : (t = {
                                            Items: [e.Items[0], e.Items[1]]
                                        }, n.push(t))
                                    }, l = 0, d = m.ConfigDataComponent.Instance.GetConfigById(p.MagicCircleTalent_Config, 1e3 * r + a).Materials; l < d.length; l++) s(d[l]);
                        n && 0 != n.length ? c.UIManager.Instance.ShowUIPanel(y.PanelConfig.MagicCircleRebornPanel.Path, {
                            Sid: this._magicCircleId,
                            Level: e.Level,
                            Star: e.Star,
                            LevelParam: C.LevelParamType.MagicCircleReset,
                            Materials: n,
                            PanelTitle: "magicCircle_reborn_title".ToUILocale(),
                            RebornCallBack: function() {
                                var t = new u.Req_Item_MagicCircleReset;
                                t.Id = e.Sid, m.RpcComponent.Instance.Call(t, function(e) {
                                    f.UIUtlity.ShowFloatingHint("hero_reborn_succes".ToUILocale()), c.UIManager.Instance.BackUIPanel(), c.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                                })
                            }
                        }) : f.UIUtlity.ShowFloatingHint("magicCircle_noRebornMaterial".ToUILocale())
                    }
                }, t.prototype.RefreshStarLevel = function() {
                    var e = h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, this._magicCircleId);
                    this._starComponent.Init(e.Star)
                }, t.prototype.ShowGameModuleGuide = function() {
                    this._isShowGuide || (this._isShowGuide = !0, this.ShowGameGuid())
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) switch (this._moduleType) {
                        case C.GameModuleType.MagicCircle:
                            var t = w.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds);
                            if (t <= 0) return;
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = m.ConfigDataComponent.Instance.GetConfigById(p.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (!n) return;
                            for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                var r = !0;
                                switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                    case 23:
                                        w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                        break;
                                    case 24:
                                        w.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.HeroBtnNode);
                                        break;
                                    default:
                                        r = !1
                                }
                                if (this._guideStepIndex++, r) break
                            }
                    }
                }, t.GetMagicCircleSkills = function(e, t) {
                    for (var n = [], o = m.ConfigDataComponent.Instance.GetConfigById(p.MagicCircleBase_Config, e), r = 0; r < o.Skills.length; r++) {
                        var i = {
                            SkillId: o.Skills[r].Items[t - 1],
                            Level: t,
                            Active: !0
                        };
                        n.push(i)
                    }
                    return n
                }, t.GetMagicCircleAttrByQuality = function(e, t, n, o) {
                    var r = {},
                        i = [],
                        a = {},
                        s = m.ConfigDataComponent.Instance.GetConfigById(p.MagicCircleQuality_Config, e);
                    s.Attrs.forEach(function(e) {
                        r[e.Items[0]] || (r[e.Items[0]] = e.Items[1])
                    });
                    for (var l = s.StarAttrs[t - 1].Items.length / 2, c = 0; c < l; c++) {
                        var d = s.StarAttrs[t - 1],
                            f = d.Items[2 * c],
                            y = d.Items[2 * c + 1];
                        r[f] ? r[f] += y : r[f] = y, a[f] = c + 1
                    }
                    s.LevelAttrs.forEach(function(e) {
                        r[e.Items[0]] ? r[e.Items[0]] += e.Items[1] * n : r[e.Items[0]] = e.Items[1]
                    });
                    var g = h.DataCenter.Instance.GetDataById(u.MagicCircle_Model, o);
                    if (g) {
                        var I = m.ConfigDataComponent.Instance.GetConfigById(p.MagicCircleBase_Config, o),
                            _ = {};
                        for (c = 0; c < g.Talents.length; c++)
                            for (var v = I.TalentIds[c], b = m.ConfigDataComponent.Instance.GetConfigById(p.MagicCircleTalent_Config, 1e3 * v + g.Talents[c]), S = 0; S < b.Skills.length; S++) b.Skills[S].Items[0] == C.MagicCircleTalentEffect.AddAttrValuePercent && (_[b.Skills[S].Items[1]] ? _[b.Skills[S].Items[1]] += b.Skills[S].Items[2] : _[b.Skills[S].Items[1]] = b.Skills[S].Items[2]);
                        for (var w in _) f = Number(w), y = _[w], r[f] && (r[f] += Math.floor(r[f] * y / 1e3))
                    }
                    for (var w in r) {
                        var P = {};
                        P.attrId = Number(w), P.attrvalue = r[w], i.push(P)
                    }
                    return i.sort(function(e, t) {
                        return a[e.attrId] ? a[t.attrId] ? a[e.attrId] < a[t.attrId] ? -1 : a[e.attrId] > a[t.attrId] ? 1 : 0 : -1 : a[t.attrId] ? 1 : 0
                    }), i
                }, i([R(cc.Node)], t.prototype, "TalentPageBgNode", void 0), i([R(cc.Node)], t.prototype, "BottomMagicCircleAvatarNode", void 0), i([R(cc.Node)], t.prototype, "HeroAvatarNode", void 0), i([R(cc.Node)], t.prototype, "TopMagicCircleAvatarNode", void 0), i([R(cc.Label)], t.prototype, "NameLabel", void 0), i([R(cc.Node)], t.prototype, "StarBgNode", void 0), i([R(d.default)], t.prototype, "Toggles", void 0), i([R(cc.Button)], t.prototype, "LeftArrowBtn", void 0), i([R(cc.Button)], t.prototype, "RightArrowBtn", void 0), i([R(cc.Node)], t.prototype, "TabBgNode", void 0), i([R(cc.Button)], t.prototype, "RebornBtn", void 0), i([R(cc.Label)], t.prototype, "RebornBtnLabel", void 0), i([R(cc.Button)], t.prototype, "ReturnBtn", void 0), i([R(cc.Node)], t.prototype, "HeroBtnNode", void 0), i([R(cc.Node)], t.prototype, "HeroHeaderBgNode", void 0), i([R(cc.Sprite)], t.prototype, "HeroIcon", void 0), i([R(cc.Node)], t.prototype, "HeroRedDotNode", void 0), i([T], t)
            }(c.BaseUIFullScreenFrame);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./PetSelectHeroPanel": "PetSelectHeroPanel"
    }],
    MagicCircleInfoStarPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0e1efwcyg5NBbKR2SmQ0fT6", "MagicCircleInfoStarPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/PetSkillComponent"),
            d = e("./MagicCircleInfoPanel"),
            h = e("../Components/LevelComponent"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Components/RpcComponent"),
            _ = e("../../Components/DataCenter"),
            C = e("../../Components/Components"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../Auxiliary/DataUtlity"),
            S = e("../../../ShareConsts/EnumType"),
            w = e("../../RedDot/RedDotDataHandler"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelContainer = null, t.Arrow = null, t.StarInfoContainer = null, t.SkillMode = null, t.TextMode = null, t.CurSkillComponent = null, t.NextSkillComponent = null, t.SkillMode_LevelDesc = null, t.SkillMode_CurMaxLevel = null, t.SkillMode_NextMaxLevel = null, t.SkillModeInfoLayoutNode = null, t.TextModeMaxLevelDesc = null, t.TextModeCurMaxLevel = null, t.TextModeLevelArrow = null, t.TextModeNextMaxLevel = null, t.TextModeLayoutNode = null, t.TextMode_LevelDesc = null, t.TextMode_CurMaxLevel = null, t.TextMode_NextMaxLevel = null, t.TextMode_SkillDesc = null, t.TextMode_CurSkillLevel = null, t.TextMode_NextSkillLevel = null, t.TextMode_AttrDesc = null, t.TextMode_AttrValue = null, t.TextMode_Skill_Layout = null, t.ItemContainer = null, t.UpGradeBg = null, t.UpGradeBtn = null, t.UpGradeBtnLabel = null, t.GrayUpGradeButton = null, t.GrayUpGradeButtonLabel = null, t.MaxStarNode = null, t.MaxStarHint = null, t._isReachMaxStarLevel = !1, t.CurLevelComponentOffset = -120, t._materialItemComponents = [], t._skillModeAttrs = [], t._textModeAttrs = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickMaterial, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickMaterial)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ItemsComponent/LevelComponent", cc.Prefab), this.LoadDynamicAsset("ItemsComponent/ItemComponent", cc.Prefab)]).then(function(e) {
                                        t._starPrefab = e[0], t._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.SkillMode_LevelDesc.string = "level_limit".ToUILocale(), this.TextModeMaxLevelDesc.string = "level_limit".ToUILocale(), this.GrayUpGradeButton.node.on("click", this.OnGrayUpGradeButtonClick, this), this.UpGradeBtn.node.on("click", this.OnUpGrade, this);
                    for (var n = 1; n < this.SkillModeInfoLayoutNode.childrenCount; n++)
                        if (!this._skillModeAttrs[n - 1]) {
                            var o = this.SkillModeInfoLayoutNode.children[n];
                            this._skillModeAttrs[n - 1] = {
                                Node: o,
                                Icon: o.getChildByName("Icon").getComponent(cc.Sprite),
                                NameLabel: o.getChildByName("NameLabel").getComponent(cc.Label),
                                ValueRichText: o.getChildByName("ValueRichText").getComponent(cc.RichText)
                            }
                        } this.TextModeLayoutNode.children.forEach(function(e, n) {
                        t._textModeAttrs[n] || (t._textModeAttrs[n] = {
                            Node: e,
                            Icon: e.getChildByName("Icon").getComponent(cc.Sprite),
                            NameLabel: e.getChildByName("NameLabel").getComponent(cc.Label),
                            ValueRichText: e.getChildByName("ValueRichText").getComponent(cc.RichText)
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._magicCircleId = t[0], this._baseUIPanel = t[1], this._magicCircleModel = _.DataCenter.Instance.GetDataById(c.MagicCircle_Model, this._magicCircleId), this._magicCircleBaseConfig = C.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, this._magicCircleId), this.SetMagicCircleModel()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.ConfigStarLevel(), this.ConfigStarUpInfo(), this.ConfigMaterials(), this.ConfigMaxStarHint(), this.BindUpgradeRedDot()
                }, Object.defineProperty(t.prototype, "Star", {
                    get: function() {
                        return this._magicCircleModel ? this._magicCircleModel.Star : 1
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Level", {
                    get: function() {
                        return this._magicCircleModel ? this._magicCircleModel.Level : 1
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.SetMagicCircleModel = function() {
                    this._magicCircleModel ? (this._magicCircleModel.Star >= this._magicCircleBaseConfig.MaxStar ? this._isReachMaxStarLevel = !0 : (this._isReachMaxStarLevel = !1, this._nextStarConfig = C.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleStar_Config, this.Star + 1)), this.UpGradeBtn.node.active = !0, this.GrayUpGradeButton.node.active = !1, this.UpGradeBtnLabel.string = "ok".ToUILocale()) : (this._isReachMaxStarLevel = !1, this.UpGradeBtn.node.active = !1, this.GrayUpGradeButton.node.active = !0, this.GrayUpGradeButtonLabel.string = "ChaosTemple_Active".ToUILocale()), this._curStarConfig = C.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleStar_Config, this.Star)
                }, t.prototype.ConfigStarLevel = function() {
                    this._magicCircleModel ? this._isReachMaxStarLevel ? (this.Arrow.active = !1, this.ConfigCurLevelComponent(0, 0), this.ConfigNextLevelComponent(!1)) : (this.Arrow.active = !0, this.ConfigCurLevelComponent(this.CurLevelComponentOffset, 0), this.ConfigNextLevelComponent(!0, this.Star + 1)) : (this.Arrow.active = !1, this.ConfigCurLevelComponent(0, 0), this.ConfigNextLevelComponent(!1))
                }, t.prototype.ConfigCurLevelComponent = function(e, t) {
                    if (!this._curLevelComponent) {
                        var n = cc.instantiate(this._starPrefab);
                        n.setParent(this.LevelContainer), this._curLevelComponent = n.getComponent(h.LevelComponent), n.scale = 1.4
                    }
                    this._curLevelComponent.Init(this.Star), this._curLevelComponent.node.setPosition(e, t)
                }, t.prototype.ConfigNextLevelComponent = function(e, t) {
                    if (e) {
                        if (!this._nextLevelComponent) {
                            var n = cc.instantiate(this._starPrefab);
                            n.setParent(this.LevelContainer), this._nextLevelComponent = n.getComponent(h.LevelComponent), n.setPosition(-this.CurLevelComponentOffset, 0), n.scale = 1.4
                        }
                        this._nextLevelComponent.node.active = !0, this._nextLevelComponent.Init(t)
                    } else this._nextLevelComponent && (this._nextLevelComponent.node.active = !1)
                }, t.prototype.ConfigStarUpInfo = function() {
                    var e = this;
                    if (this._isReachMaxStarLevel) this.StarInfoContainer.active = !1;
                    else {
                        this.StarInfoContainer.active = !0;
                        for (var t = [], n = d.default.GetMagicCircleSkills(this._magicCircleId, this.Star), o = this._magicCircleModel ? d.default.GetMagicCircleSkills(this._magicCircleId, this.Star + 1) : [], r = n.length, i = 0; i < r; i++) {
                            var a = n[i],
                                s = o[i];
                            s && s.SkillId == a.SkillId || t.push(i)
                        }
                        var l = C.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleQuality_Config, this._magicCircleBaseConfig.Quality),
                            c = d.default.GetMagicCircleAttrByQuality(this._magicCircleBaseConfig.Quality, this.Star, this.Level, this._magicCircleId);
                        if (1 == t.length) {
                            this.SkillMode.active = !0, this.TextMode.active = !1;
                            var p = t[0];
                            this.CurSkillComponent.Init(n[p].SkillId, n[p].Level), this.SkillMode_CurMaxLevel.string = this._curStarConfig.MaxLevel.toString(), this._magicCircleModel ? (this.NextSkillComponent.node.active = !0, this.CurSkillComponent.node.x = -405, this.NextSkillComponent.Init(o[p].SkillId, o[p].Level), this.SkillMode_NextMaxLevel.node.active = !0, this.SkillMode_NextMaxLevel.node.parent.getChildByName("Arrow").active = !0, this.SkillMode_NextMaxLevel.string = this._nextStarConfig.MaxLevel.toString()) : (this.NextSkillComponent.node.active = !1, this.CurSkillComponent.node.x = -307, this.SkillMode_NextMaxLevel.node.parent.getChildByName("Arrow").active = !1, this.SkillMode_NextMaxLevel.node.active = !1);
                            var h = l.StarAttrs[this.Star].Items,
                                f = l.StarAttrs[this.Star - 1].Items;
                            for (c.forEach(function(t, n) {
                                    if (e._skillModeAttrs[n]) {
                                        e._skillModeAttrs[n].Node.active = !0;
                                        var o = b.default.GetHeroAttribute(t.attrId, t.attrvalue, !0);
                                        e._skillModeAttrs[n].Icon.spriteFrame = o.Icon, e._skillModeAttrs[n].NameLabel.string = o.Name;
                                        var r = h.findIndex(function(e) {
                                                return e == t.attrId
                                            }),
                                            i = f.findIndex(function(e) {
                                                return e == t.attrId
                                            });
                                        if (e._magicCircleModel) {
                                            var a;
                                            a = r > -1 ? i > -1 ? h[r + 1] - f[i + 1] : h[r + 1] : 0;
                                            var s = b.default.GetHeroAttribute(t.attrId, a, !0);
                                            e._skillModeAttrs[n].ValueRichText.string = o.Value + " <outline color=#202434 width=3><color = #6eeea7>+" + s.Value + "</c></outline>"
                                        } else e._skillModeAttrs[n].ValueRichText.string = o.Value
                                    }
                                }), i = c.length; i < this._skillModeAttrs.length; i++) this._skillModeAttrs[i].Node.active = !1
                        } else {
                            this.SkillMode.active = !1, this.TextMode.active = !0;
                            var y = l.StarAttrs[this.Star].Items,
                                g = l.StarAttrs[this.Star - 1].Items;
                            for (c.forEach(function(t, n) {
                                    if (e._textModeAttrs[n]) {
                                        e._textModeAttrs[n].Node.active = !0;
                                        var o = b.default.GetHeroAttribute(t.attrId, t.attrvalue, !0);
                                        e._textModeAttrs[n].Icon.spriteFrame = o.Icon, e._textModeAttrs[n].NameLabel.string = o.Name;
                                        var r = y.findIndex(function(e) {
                                                return e == t.attrId
                                            }),
                                            i = g.findIndex(function(e) {
                                                return e == t.attrId
                                            });
                                        if (e._magicCircleModel) {
                                            var a;
                                            a = r > -1 ? i > -1 ? y[r + 1] - g[i + 1] : y[r + 1] : 0;
                                            var s = b.default.GetHeroAttribute(t.attrId, a, !0);
                                            e._textModeAttrs[n].ValueRichText.string = o.Value + " <outline color=#202434 width=3><color = #6eeea7>+" + s.Value + "</c></outline>"
                                        } else e._textModeAttrs[n].ValueRichText.string = o.Value
                                    }
                                }), i = c.length; i < this._textModeAttrs.length; i++) this._textModeAttrs[i].Node.active = !1;
                            this._magicCircleModel ? (this.TextModeCurMaxLevel.node.x = 55, this.TextModeCurMaxLevel.string = this._curStarConfig.MaxLevel.toString(), this.TextModeLevelArrow.active = !0, this.TextModeNextMaxLevel.node.active = !0, this.TextModeNextMaxLevel.string = this._nextStarConfig.MaxLevel.toString()) : (this.TextModeCurMaxLevel.node.x = 106, this.TextModeCurMaxLevel.string = this._curStarConfig.MaxLevel.toString(), this.TextModeLevelArrow.active = !1, this.TextModeNextMaxLevel.node.active = !1)
                        }
                    }
                }, t.prototype.ConfigMaterials = function() {
                    if (this._isReachMaxStarLevel) this.ItemContainer.active = !1;
                    else {
                        var e;
                        this.ItemContainer.active = !0, this._selectData = [], e = this._magicCircleModel ? this._nextStarConfig.StarMaterials : [{
                            Items: [0, 1]
                        }];
                        for (var t = 0; t < e.length; t++) {
                            var n = this._materialItemComponents[t];
                            if (!n) {
                                var o = cc.instantiate(this._itemPrefab);
                                o.setParent(this.ItemContainer), n = o.getComponent(f.ItemComponent), this._materialItemComponents[t] = n
                            }
                            n.node.name = t.toString(), n.node.active = !0;
                            var r = e[t].Items,
                                i = r[0],
                                a = r[1];
                            0 == i && (i = this._magicCircleId), n.Init({
                                ItemId: i,
                                Count: 1
                            }, f.ItemComponentType.ItemCommon);
                            var s = _.DataCenter.Instance.IsItemEnough(i, a) ? a : _.DataCenter.Instance.GetItemCount(i);
                            n.SetProgressBar(s, a), s > 0 ? n.OffIconGray() : n.OnIconGray();
                            for (var l = [], c = 0; c < s; c++) l.push(i);
                            var u = {
                                Component: n,
                                Type: 0,
                                ItemId: i,
                                StarLevel: 0,
                                Element: S.HeroElementType.All,
                                NeedCount: a,
                                SelectIds: l
                            };
                            this._selectData.push(u)
                        }
                        for (t = e.length; t < this._materialItemComponents.length; t++) this._materialItemComponents[t].node.active = !1
                    }
                }, t.prototype.ConfigMaxStarHint = function() {
                    this._isReachMaxStarLevel ? (this.MaxStarNode.active = !0, this.UpGradeBg.active = !1, this.MaxStarHint.string = "starLevel_limit_reach".ToUILocale()) : (this.MaxStarNode.active = !1, this.UpGradeBg.active = !0)
                }, t.prototype.OnClickMaterial = function(e, t) {
                    if (-1 != this.ItemContainer.children.indexOf(t)) {
                        var n = this._selectData[e];
                        g.UIUtlity.ShowItemTip(n.ItemId, t)
                    }
                }, t.prototype.OnGrayUpGradeButtonClick = function() {
                    this.OnUpGrade(!1)
                }, t.prototype.OnUpGrade = function(e) {
                    if (void 0 === e && (e = !0), this._magicCircleModel) {
                        for (var t, n = !1, o = 0; o < this._selectData.length; o++) {
                            var r = this._selectData[o];
                            if (r.SelectIds.length < r.NeedCount) {
                                n = !0, t = r.ItemId;
                                break
                            }
                        }
                        if (n) l.UIManager.Instance.ShowUIPanel(m.PanelConfig.ItemGetWayPanel.Path, t);
                        else if (e) {
                            var i = new c.Req_Item_MagicCircleUpgradeStar;
                            i.Id = this._magicCircleId, I.RpcComponent.Instance.Call(i, this.UpgradeStarSuccess.bind(this))
                        }
                    } else l.UIManager.Instance.ShowUIPanel(m.PanelConfig.ItemGetWayPanel.Path, this._magicCircleId)
                }, t.prototype.UpgradeStarSuccess = function() {
                    l.UIManager.Instance.ShowUIPanelByQueue(m.PanelConfig.MagicCircleUpStarSucessPanel.Path, this._magicCircleModel), this.node.active && (this.RefreshStarMode(), this._baseUIPanel.BindRedDot(), this._baseUIPanel.RefreshStarLevel(), this.BindUpgradeRedDot())
                }, t.prototype.RefreshStarMode = function() {
                    this._magicCircleModel = _.DataCenter.Instance.GetDataById(c.MagicCircle_Model, this._magicCircleId), this.SetMagicCircleModel(), this.DisPlay()
                }, t.prototype.BindUpgradeRedDot = function() {
                    v.RedDotManager.Instance.BindNodeByResult(this.UpGradeBtn.node, v.RedDotManager.Instance.InstanceRedDot.MagicCircleInfoStarUpgrade, w.RedDotDataHandler.Instance.IsMagicCircleCanUpStar({
                        Value1: this._magicCircleId
                    }))
                }, i([T(cc.Node)], t.prototype, "LevelContainer", void 0), i([T(cc.Node)], t.prototype, "Arrow", void 0), i([T(cc.Node)], t.prototype, "StarInfoContainer", void 0), i([T(cc.Node)], t.prototype, "SkillMode", void 0), i([T(cc.Node)], t.prototype, "TextMode", void 0), i([T(p.default)], t.prototype, "CurSkillComponent", void 0), i([T(p.default)], t.prototype, "NextSkillComponent", void 0), i([T(cc.Label)], t.prototype, "SkillMode_LevelDesc", void 0), i([T(cc.Label)], t.prototype, "SkillMode_CurMaxLevel", void 0), i([T(cc.Label)], t.prototype, "SkillMode_NextMaxLevel", void 0), i([T(cc.Node)], t.prototype, "SkillModeInfoLayoutNode", void 0), i([T(cc.Label)], t.prototype, "TextModeMaxLevelDesc", void 0), i([T(cc.Label)], t.prototype, "TextModeCurMaxLevel", void 0), i([T(cc.Node)], t.prototype, "TextModeLevelArrow", void 0), i([T(cc.Label)], t.prototype, "TextModeNextMaxLevel", void 0), i([T(cc.Node)], t.prototype, "TextModeLayoutNode", void 0), i([T(cc.Label)], t.prototype, "TextMode_LevelDesc", void 0), i([T(cc.Label)], t.prototype, "TextMode_CurMaxLevel", void 0), i([T(cc.Label)], t.prototype, "TextMode_NextMaxLevel", void 0), i([T(cc.Label)], t.prototype, "TextMode_SkillDesc", void 0), i([T(cc.Label)], t.prototype, "TextMode_CurSkillLevel", void 0), i([T(cc.Label)], t.prototype, "TextMode_NextSkillLevel", void 0), i([T(cc.Label)], t.prototype, "TextMode_AttrDesc", void 0), i([T(cc.Label)], t.prototype, "TextMode_AttrValue", void 0), i([T(cc.Node)], t.prototype, "TextMode_Skill_Layout", void 0), i([T(cc.Node)], t.prototype, "ItemContainer", void 0), i([T(cc.Node)], t.prototype, "UpGradeBg", void 0), i([T(cc.Button)], t.prototype, "UpGradeBtn", void 0), i([T(cc.Label)], t.prototype, "UpGradeBtnLabel", void 0), i([T(cc.Button)], t.prototype, "GrayUpGradeButton", void 0), i([T(cc.Label)], t.prototype, "GrayUpGradeButtonLabel", void 0), i([T(cc.Node)], t.prototype, "MaxStarNode", void 0), i([T(cc.Label)], t.prototype, "MaxStarHint", void 0), i([A], t)
            }(l.BaseUIPage);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/PetSkillComponent": "PetSkillComponent",
        "./MagicCircleInfoPanel": "MagicCircleInfoPanel"
    }],
    MagicCircleInfoTalentPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dc659WI7X9NlYfCGsbtJ497", "MagicCircleInfoTalentPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("./MagicCircleInfoPanel"),
            d = e("../Components/MagicCircleTalentComponent"),
            h = e("../../Components/Components"),
            f = e("../Components/LoadAssetHelper"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ProgressLeft = null, t.ProgressRight = null, t.ScoreLabel = null, t.TalentNodeArr = [], t.SkillIcon = null, t.SkillLevelLabel = null, t.DetailButton = null, t.DetailButtonLabel = null, t._talentComponentArr = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset("MagicCirclePanel/Components/MagicCircleTalentComponent", cc.Prefab)];
                                case 1:
                                    return e._talentItemPrefab = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.DetailButtonLabel.string = "hero_attr_title".ToUILocale(), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.SkillIcon.node.on(cc.Node.EventType.TOUCH_END, this.OnSkillTouchEnd, this), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(f.default))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._magicCircleId = t[0], this._baseUIPanel = t[1], this._magicCircleBaseConfig = h.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, this._magicCircleId)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._magicCircleModel = h.DataCenter.Instance.GetDataById(c.MagicCircle_Model, this._magicCircleId), this._curStarConfig = h.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleStar_Config, this._magicCircleModel.Star), this.SetMagicCircleScore(), this.ConfigMagicCircleTalent(), this._curStarConfig.ActivateTalentCount < 6 ? this.SetProgressByProgress((this._curStarConfig.ActivateTalentCount - 1) / 6) : this.SetProgressByProgress(1), this.SetSkillInfo()
                }, t.prototype.SetMagicCircleScore = function() {
                    var e = h.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleQuality_Config, this._magicCircleBaseConfig.Quality);
                    this.ScoreLabel.string = "equip_score_tag".ToUILocale() + ": " + (e.StarScore * this._magicCircleModel.Star + e.LevelScore * this._magicCircleModel.Level)
                }, t.prototype.ConfigMagicCircleTalent = function() {
                    for (var e = 0; e < this.TalentNodeArr.length; e++) {
                        var t = this._talentComponentArr[e];
                        if (!t) {
                            var n = cc.instantiate(this._talentItemPrefab);
                            t = n.getComponent(d.default), this.TalentNodeArr[e].addChild(n), this._talentComponentArr.push(t), n.on(cc.Node.EventType.TOUCH_END, this.OnTalentTouchEnd, this)
                        }
                        t.node.name = e.toString(), t.Init(this._magicCircleBaseConfig.TalentIds[e], e < this._curStarConfig.ActivateTalentCount, !0, this._magicCircleModel.Talents[e], this._magicCircleBaseConfig.TalentMaxLevel, -30 - 60 * e)
                    }
                }, t.prototype.OnTalentTouchEnd = function(e) {
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MagicCircleTalentDetailPanel.Path, this._magicCircleId, Number.parseInt(e.target.name))
                }, t.prototype.SetProgressByProgress = function(e) {
                    this.ProgressRight.fillRange = e, this.ProgressLeft.fillRange = -e
                }, t.prototype.SetSkillInfo = function() {
                    for (var e = 0, t = 0; t < this._magicCircleModel.Talents.length; t++) e += this._magicCircleModel.Talents[t];
                    var n = 0,
                        o = this._magicCircleBaseConfig.TalentUltimateSkills.length;
                    if (this._magicCircleBaseConfig.TalentUltimateSkills[o - 1].Items[0] <= e) n = o;
                    else
                        for (t = 0; t < o; t++)
                            if (e < this._magicCircleBaseConfig.TalentUltimateSkills[t].Items[0]) {
                                n = t;
                                break
                            } this.SkillLevelLabel.string = "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(n), this._loadAssetHelper.LoadSpriteFrame(y.BundlePath.SkillIcon + "/" + g.default.GetSkillIconId(this._magicCircleBaseConfig.TalentUltimateSkills[n > 0 ? n - 1 : 0].Items[1]), this.SkillIcon)
                }, t.prototype.OnSkillTouchEnd = function() {
                    for (var e = 0, t = 0; t < this._magicCircleModel.Talents.length; t++) e += this._magicCircleModel.Talents[t];
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MagicCircleSkillTipPanel.Path, this._magicCircleBaseConfig.TalentUltimateSkills, e)
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = p.default.GetMagicCircleAttrByQuality(this._magicCircleBaseConfig.Quality, this._magicCircleModel.Star, this._magicCircleModel.Level, this._magicCircleId),
                        t = {};
                    t.Title = "heroSkin_attr".ToUILocale(), t.IsShowAddAttr = !0, t.AttrArray = e, l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonTotalAttrPanel.Path, [t])
                }, i([_(cc.Sprite)], t.prototype, "ProgressLeft", void 0), i([_(cc.Sprite)], t.prototype, "ProgressRight", void 0), i([_(cc.Label)], t.prototype, "ScoreLabel", void 0), i([_(cc.Node)], t.prototype, "TalentNodeArr", void 0), i([_(cc.Sprite)], t.prototype, "SkillIcon", void 0), i([_(cc.Label)], t.prototype, "SkillLevelLabel", void 0), i([_(cc.Button)], t.prototype, "DetailButton", void 0), i([_(cc.Label)], t.prototype, "DetailButtonLabel", void 0), i([I], t)
            }(l.BaseUIPage);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/MagicCircleTalentComponent": "MagicCircleTalentComponent",
        "./MagicCircleInfoPanel": "MagicCircleInfoPanel"
    }],
    MagicCircleListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "72d90utm2RF67OLgr1aYUI1", "MagicCircleListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../Components/DataCenter"),
            l = e("./LevelComponent2"),
            c = e("./LoadAssetHelper"),
            u = e("../../Auxiliary/DataUtlity"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.QualityBg = null, t.EquipTagNode = null, t.Icon = null, t.LevelLabel = null, t.NameLabel = null, t.StarNode = null, t.StarNode2 = null, t.DarkMaskSprite = null, t.LockNode = null, t.RedDotNode = null, t.SelectedBorder = null, t.HintLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = !1), this.HideAllNode(), this._baseConfig = e, this._atlas = t, this._isHandbook = n, this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(c.default)), this.SetQualityBg(), this.SetIcon(), this.NameLabel.node.active = !0, this.NameLabel.string = e.Id.ToItemName(), this._model = s.DataCenter.Instance.GetDataById(a.MagicCircle_Model, e.Id), this._model ? (this.SetStarLevel(this._model.Star), this.SetLevel(this._model.Level), this.SetUnlockState(!0)) : (this.SetStarLevel(0), this.SetLevel(), this.SetUnlockState(!1))
                }, t.prototype.HideAllNode = function() {
                    this.node.children.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetQualityBg = function() {
                    this.QualityBg.node.active = !0, this.QualityBg.spriteFrame = this._atlas.getSpriteFrame("quality" + this._baseConfig.Quality)
                }, t.prototype.SetIcon = function() {
                    this.Icon.node.active = !0, this._loadAssetHelper.LoadSpriteFrame(u.default.Instance.GetItemPathById(this._baseConfig.Id), this.Icon, null, 2)
                }, t.prototype.SetStarLevel = function(e) {
                    var t = this;
                    if (this._isHandbook) {
                        if (!e) return;
                        this.StarNode2.active = !0
                    } else this.StarNode.active = !0;
                    this._loadAssetHelper.LoadPrefab("ItemsComponent/LevelComponent2", this._isHandbook ? this.StarNode2 : this.StarNode, function(n) {
                        n.getComponent(l.default).Init(e, t._baseConfig.MaxStar, l.LevelComponent2Type.Orange)
                    }, 1)
                }, t.prototype.SetLevel = function(e) {
                    e ? (this.LevelLabel.node.active = !0, this.LevelLabel.string = "PowerCore_UpSuccess_Level".ToUILocale().Fmt(e)) : this.LevelLabel.node.active = !1
                }, t.prototype.SetUnlockState = function(e) {
                    this.DarkMaskSprite.spriteFrame = this._atlas.getSpriteFrame("quality" + this._baseConfig.Quality), this.DarkMaskSprite.node.active = !e, this._isHandbook ? e || (this.HintLabel.string = "heroSkin_notGet".ToUILocale(), this.HintLabel.node.parent.active = !0) : this.LockNode.active = !e
                }, t.prototype.SetLabelScale = function(e) {
                    this.LevelLabel.node.scale = e, this.NameLabel.node.scale = e, this.HintLabel.node.scale = e
                }, t.prototype.SetRedDotState = function(e, t) {
                    this.RedDotNode.active = e, t && (this.RedDotNode.scale = t)
                }, t.prototype.SetSelectedBorder = function(e) {
                    this.SelectedBorder.node.active = !!e
                }, i([h(cc.Sprite)], t.prototype, "QualityBg", void 0), i([h(cc.Node)], t.prototype, "EquipTagNode", void 0), i([h(cc.Sprite)], t.prototype, "Icon", void 0), i([h(cc.Label)], t.prototype, "LevelLabel", void 0), i([h(cc.Label)], t.prototype, "NameLabel", void 0), i([h(cc.Node)], t.prototype, "StarNode", void 0), i([h(cc.Node)], t.prototype, "StarNode2", void 0), i([h(cc.Sprite)], t.prototype, "DarkMaskSprite", void 0), i([h(cc.Node)], t.prototype, "LockNode", void 0), i([h(cc.Node)], t.prototype, "RedDotNode", void 0), i([h(cc.Sprite)], t.prototype, "SelectedBorder", void 0), i([h(cc.Label)], t.prototype, "HintLabel", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/DataCenter": "DataCenter",
        "./LevelComponent2": "LevelComponent2",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    MagicCircleListPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0cf90AJMIhFsIc/hCo4Woas", "MagicCircleListPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/AsyncLayout"),
            d = e("../Components/QualitySelectGroup"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/MagicCircleListItem"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../RedDot/RedDotDataHandler"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../Components/GameModuleGuideManager"),
            v = e("../../Auxiliary/DataUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.AsyncLayout = null, t.QualitySelectGroup = null, t.HandBookButton = null, t.HandBookButtonLabel = null, t.BagButton = null, t.BagButtonLabel = null, t._isInit = !1, t._isLoadItemAsset = !1, t._isInitAsyncLayout = !1, t._moduleType = _.GameModuleType.MagicCircle, t._isShowGuide = !1, t._guideStepIndex = 0, t._guideGroupId = 0, t._moduleGuideGroupIds = [10006, 10007], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchQuality, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchQuality, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Init = function() {
                    this.SetBaseConfigByQuality(), this._isInit ? this.LoadItemAsset() : (this._isInit = !0, this.Title.string = "magicCircle".ToUILocale(), this.HandBookButtonLabel.string = "HeroHandbook_Toggle_0".ToUILocale(), this.BagButtonLabel.string = "itemDecompose_bag".ToUILocale().Fmt("magicCircle".ToUILocale()), this.HandBookButton.node.on("click", this.OnHandBookButtonClick, this), this.BagButton.node.on("click", this.OnBagButtonClick, this), this.QualitySelectGroup.SetDefault()), m.RedDotManager.Instance.Bind(this.HandBookButton.node, m.RedDotManager.Instance.RedDot.MagicCircleHandBookNode), m.RedDotManager.Instance.Bind(this.BagButton.node, m.RedDotManager.Instance.RedDot.MagicCircleDecomposeBtn)
                }, t.prototype.SetBaseConfigByQuality = function() {
                    var e = h.ConfigDataComponent.Instance.GetArrayConfig(u.MagicCircleBase_Config).filter(function(e) {
                        return v.default.Instance.IsModuleShowAvailable(_.ModuleStartTime.MagicCircle, e.Id)
                    });
                    e.sort(this.SortMagicCircle.bind(this)), this._baseConfigArrMapByQuality = new Map, this._baseConfigArrMapByQuality.set(0, e);
                    for (var t = 0, n = e; t < n.length; t++) {
                        var o = n[t],
                            r = o.Quality;
                        this._baseConfigArrMapByQuality.has(r) || this._baseConfigArrMapByQuality.set(r, []), this._baseConfigArrMapByQuality.get(r).push(o)
                    }
                }, t.prototype.SortMagicCircle = function(e, t) {
                    var n = h.DataCenter.Instance.GetDataById(c.MagicCircle_Model, e.Id),
                        o = h.DataCenter.Instance.GetDataById(c.MagicCircle_Model, t.Id);
                    return !n && o ? 1 : n && !o ? -1 : e.Quality < t.Quality ? 1 : e.Quality > t.Quality ? -1 : n || o ? n.Star < o.Star ? 1 : n.Star > o.Star ? -1 : n.Level < o.Level ? 1 : n.Level > o.Level ? -1 : e.Id - t.Id : e.Id - t.Id
                }, t.prototype.OnSwitchQuality = function(e, t) {
                    t == this.QualitySelectGroup.node && this._selectQuality != e && (this._selectQuality = e, this._selectQualityConfigArr = this._baseConfigArrMapByQuality.get(e) || [], this._isInitAsyncLayout ? this.RenderAsyncLayout() : this.LoadItemAsset())
                }, t.prototype.LoadItemAsset = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._isLoadItemAsset ? [3, 2] : (this._isLoadItemAsset = !0, [4, Promise.all([l.AssetsManager.Instance.LoadAsset("MagicCirclePanel/Components/MagicCircleListItem", cc.Prefab), l.AssetsManager.Instance.LoadAsset("MagicCirclePanel/Png/MagicCircle", cc.SpriteAtlas)]).then(function(t) {
                                        e._listItemPrefab = t[0], e._magicCircleSpriteAtlas = t[1]
                                    })]);
                                case 1:
                                    return t.sent(), this.isValid ? [3, 3] : (l.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), l.AssetsManager.Instance.UnloadAsset(this._magicCircleSpriteAtlas), this._listItemPrefab = null, this._magicCircleSpriteAtlas = null, this._isLoadItemAsset = !1, [2]);
                                case 2:
                                    if (!this._listItemPrefab || !this._magicCircleSpriteAtlas) return [2];
                                    t.label = 3;
                                case 3:
                                    return this.InitAsyncLayout(), this.RenderAsyncLayout(), [2]
                            }
                        })
                    })
                }, t.prototype.InitAsyncLayout = function() {
                    this._isInitAsyncLayout || (this._isInitAsyncLayout = !0, this.AsyncLayout.Init(this._listItemPrefab, this.OnInitializeItem.bind(this)))
                }, t.prototype.RenderAsyncLayout = function() {
                    var e = this;
                    this.AsyncLayout.RenderLayout(this._selectQualityConfigArr.length), 0 == this._selectQuality && this.scheduleOnce(function() {
                        e._guideStepIndex--, e._guideStepIndex = Math.min(e._guideStepIndex, 0), e.ShowGameGuid()
                    })
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(y.default);
                    e.name = this._selectQualityConfigArr[t].Id.toString(), n.Init(this._selectQualityConfigArr[t], this._magicCircleSpriteAtlas), n.SetRedDotState(I.RedDotDataHandler.Instance.RefreshMagicCircieCardState({
                        Value1: this._selectQualityConfigArr[t].Id
                    })), e.on("click", this.OnListItemTouchEnd, this)
                }, t.prototype.OnListItemTouchEnd = function(e) {
                    var t = Number.parseInt(e.node.name);
                    t && (h.DataCenter.Instance.GetDataById(c.MagicCircle_Model, t) ? l.UIManager.Instance.ShowUIPanel(g.PanelConfig.MagicCircleInfoPanel.Path, t, this._selectQualityConfigArr.map(function(e) {
                        return e.Id
                    })) : l.UIManager.Instance.ShowUIPanel(g.PanelConfig.MagicCircleDetailsTipPanel.Path, t))
                }, t.prototype.OnHandBookButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.MagicCircleCollectionHandBookPanel.Path)
                }, t.prototype.OnBagButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.ItemDecomposeBagPanel.Path, _.ItemType.MagicCircle)
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), l.AssetsManager.Instance.UnloadAsset(this._magicCircleSpriteAtlas), this._listItemPrefab = null, this._magicCircleSpriteAtlas = null
                }, t.prototype.ShowGameModuleGuide = function() {
                    this._isShowGuide || (this._isShowGuide = !0, this.ShowGameGuid())
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) switch (this._moduleType) {
                        case _.GameModuleType.MagicCircle:
                            var t = C.default.Instance.GetCurrentGroupId(this._moduleGuideGroupIds);
                            if (t <= 0) return;
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = h.ConfigDataComponent.Instance.GetConfigById(u.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (!n) return;
                            for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                var r = !0;
                                switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                    case 21:
                                        C.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex);
                                        break;
                                    case 22:
                                        var i = this.AsyncLayout.node.children.find(function(e) {
                                            return e.active = !0
                                        });
                                        C.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, i);
                                        break;
                                    default:
                                        r = !1
                                }
                                if (this._guideStepIndex++, r) break
                            }
                    }
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(p.default)], t.prototype, "AsyncLayout", void 0), i([w(d.default)], t.prototype, "QualitySelectGroup", void 0), i([w(cc.Button)], t.prototype, "HandBookButton", void 0), i([w(cc.Label)], t.prototype, "HandBookButtonLabel", void 0), i([w(cc.Button)], t.prototype, "BagButton", void 0), i([w(cc.Label)], t.prototype, "BagButtonLabel", void 0), i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/MagicCircleListItem": "MagicCircleListItem",
        "../Components/QualitySelectGroup": "QualitySelectGroup"
    }],
    MagicCircleRebornPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b10e42IHuVOwa+XinIlKZDr", "MagicCircleRebornPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../Components/ItemComponent"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/Components"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Hint = null, t.Tip = null, t.LeftItemContainer = null, t.LeftLevel = null, t.RightItemContainer = null, t.RightLevel = null, t.MaterialContainer = null, t.CancelBtn = null, t.CancelBtnLabel = null, t.ConfirmBtn = null, t.ConfirmBtnLabel = null, t.DiamondCount = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(f.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.ConfirmBtnLabel.string = "ok".ToUILocale(), this.CancelBtn.node.on("click", this.OnClose, this), this.ConfirmBtn.node.on("click", this.OnReborn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0], this.Title.string = this._data.PanelTitle;
                    var n = g.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, this._data.LevelParam).Data2;
                    this._freeLevelLimit = n[0].Items[0], this._diamondCost = 0;
                    for (var o = n.length - 1; o >= 0; o--)
                        if (this._data.Level > n[o].Items[0]) {
                            this._diamondCost = n[o].Items[1];
                            break
                        } this.Tip.string = "angel_reborn_free".ToUILocale().Fmt(this._freeLevelLimit)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.ConfigItem(), this.ConfigMaterials(), this.ConfigDiamondCost())
                }, t.prototype.ConfigItem = function() {
                    var e;
                    this._leftComponent || ((e = cc.instantiate(this._itemPrefab)).scale = .825, e.setParent(this.LeftItemContainer), this._leftComponent = e.getComponent(u.ItemComponent)), this._rightComponent || ((e = cc.instantiate(this._itemPrefab)).scale = .825, e.setParent(this.RightItemContainer), this._rightComponent = e.getComponent(u.ItemComponent)), this._leftComponent.Init({
                        ItemId: this._data.Sid,
                        StarLevel: this._data.Star
                    }, u.ItemComponentType.ItemWithStar), this._rightComponent.Init({
                        ItemId: this._data.Sid,
                        StarLevel: this._data.Star
                    }, u.ItemComponentType.ItemWithStar), this.LeftLevel.string = "Lv." + this._data.Level, this.RightLevel.string = "Lv.1", this.Hint.string = "pet_reborn_check".ToUILocale().Fmt(this._data.Sid.ToItemName())
                }, t.prototype.ConfigMaterials = function() {
                    for (var e = 0; e < this._data.Materials.length; e++) {
                        var t = this._data.Materials[e].Items,
                            n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.MaterialContainer), n.getComponent(u.ItemComponent).Init({
                            ItemId: t[0],
                            Count: t[1]
                        })
                    }
                }, t.prototype.ConfigDiamondCost = function() {
                    this._data.Level <= this._freeLevelLimit ? this.DiamondCount.string = "0" : this.DiamondCount.string = this._diamondCost.toString()
                }, t.prototype.OnClose = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnReborn = function() {
                    if (this._data.Level <= this._freeLevelLimit) this._data.RebornCallBack();
                    else {
                        if (y.DataCenter.Instance.GetItemCount(p.CommonItemId.Diamond) < this._diamondCost) return l.UIManager.Instance.ShowUIPanel(f.PanelConfig.MallNewPanel.Path, [p.MallPageType.DiamondShop, p.GiftPackType.BuyDiamond]);
                        this._data.RebornCallBack()
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.MaterialContainer.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.RichText)], t.prototype, "Hint", void 0), i([_(cc.Label)], t.prototype, "Tip", void 0), i([_(cc.Node)], t.prototype, "LeftItemContainer", void 0), i([_(cc.Label)], t.prototype, "LeftLevel", void 0), i([_(cc.Node)], t.prototype, "RightItemContainer", void 0), i([_(cc.Label)], t.prototype, "RightLevel", void 0), i([_(cc.Node)], t.prototype, "MaterialContainer", void 0), i([_(cc.Button)], t.prototype, "CancelBtn", void 0), i([_(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([_(cc.Button)], t.prototype, "ConfirmBtn", void 0), i([_(cc.Label)], t.prototype, "ConfirmBtnLabel", void 0), i([_(cc.Label)], t.prototype, "DiamondCount", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MagicCircleSelectItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d1ab7oaUI1GCZAi8mcaTEGT", "MagicCircleSelectItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("./ItemComponent"),
            u = e("./ItemClickComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property;
        (function(e) {
            e[e.hero = 1] = "hero", e[e.skin = 2] = "skin"
        })(a || (a = {}));
        var f = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ItemRoot = null, t.EmptyNode = null, t.SelectBg = null, t.UsedFlag = null, t.UsedLabel = null, t.Mask = null, t.RedDot = null, t._itemPrefab = null, t._itemComponent = null, t._isInit = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
            }, t.prototype.SetUI = function(e, t) {
                this._itemPrefab = t, this._isInit || (this.SetClickEvent(), this.UsedLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale(), this._isInit = !0), this.LoadItem(e)
            }, t.prototype.SetClickEvent = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
            }, t.prototype.OnTouchNode = function() {
                s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ITEM_CLICK, Number.parseInt(this.node.name), this.node)
            }, t.prototype.LoadItem = function(e) {
                e ? (null == this._itemComponent && (this._itemComponent = cc.instantiate(this._itemPrefab).getComponent(c.ItemComponent), this._itemComponent.node.setParent(this.ItemRoot), this._itemComponent.getComponent(u.default).enabled = !1, this._itemComponent.getComponent(cc.BlockInputEvents).enabled = !1), this.EmptyNode.active = !1, this.ItemRoot.active = !0, this._itemComponent.Init({
                    ItemId: e,
                    Count: 1
                })) : (this.EmptyNode.active = !0, this.ItemRoot.active = !1)
            }, t.prototype.SetUsedFlag = function(e) {
                this.UsedFlag.active = e
            }, t.prototype.SetSelect = function(e) {
                this.SelectBg.active = e
            }, t.prototype.SetMask = function(e) {
                this.Mask.active = e
            }, t.prototype.SetRedDot = function(e) {
                this.RedDot.active = e
            }, i([h(cc.Node)], t.prototype, "ItemRoot", void 0), i([h(cc.Node)], t.prototype, "EmptyNode", void 0), i([h(cc.Node)], t.prototype, "SelectBg", void 0), i([h(cc.Node)], t.prototype, "UsedFlag", void 0), i([h(cc.Label)], t.prototype, "UsedLabel", void 0), i([h(cc.Node)], t.prototype, "Mask", void 0), i([h(cc.Node)], t.prototype, "RedDot", void 0), i([d], t)
        }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent"
    }],
    MagicCircleSkillTipItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "38341v8xB1FVKFlOasD8d5Q", "MagicCircleSkillTipItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelLabel = null, t.CurrentLabel = null, t.UnlockLabel = null, t.DescLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this.LevelLabel.string = "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(e), this.DescLabel.string = n[1].ToHeroSkillDesc(), t < n[0] ? (this.UnlockLabel.node.active = !0, this.UnlockLabel.string = "magicCircle_totalLevel".ToUILocale().Fmt(t, n[0])) : this.UnlockLabel.node.active = !1, o ? (this.CurrentLabel.node.active = !0, this.CurrentLabel.string = "magicCircle_currentLevel".ToUILocale()) : this.CurrentLabel.node.active = !1
                }, i([l(cc.Label)], t.prototype, "LevelLabel", void 0), i([l(cc.Label)], t.prototype, "CurrentLabel", void 0), i([l(cc.Label)], t.prototype, "UnlockLabel", void 0), i([l(cc.Label)], t.prototype, "DescLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    MagicCircleSkillTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ee70bgue1BIUan/SZsG+7JS", "MagicCircleSkillTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../Components/MagicCircleSkillTipItem"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Icon = null, t.LevelLabel = null, t.NameLabel = null, t.DescLabel = null, t.Content = null, t._tipItemArr = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("MagicCirclePanel/Components/MagicCircleSkillTipItem", cc.Prefab)];
                                case 1:
                                    return t._tipItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.node.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.node._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._talentUltimateSkills = t[0], this._talentLevel = t[1]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    if (e.prototype.PreloadByData.call(this), this._talentLevel >= this._talentUltimateSkills[this._talentUltimateSkills.length - 1].Items[0]) t = this._talentUltimateSkills[this._talentUltimateSkills.length - 1].Items[1], this._skillLevel = this._talentUltimateSkills.length;
                                    else
                                        for (n = 0; n < this._talentUltimateSkills.length; n++)
                                            if (o = this._talentUltimateSkills[n].Items[0], this._talentLevel < o) {
                                                t = this._talentUltimateSkills[n - 1] ? this._talentUltimateSkills[n - 1].Items[1] : this._talentUltimateSkills[n].Items[1], this._skillLevel = n;
                                                break
                                            } return this.LevelLabel.string = this._skillLevel.toString(), this.NameLabel.string = t.ToHeroSkillName(), this.DescLabel.string = t.ToHeroSkillDesc(), r = this.Icon, [4, this.LoadDynamicAsset(c.BundlePath.SkillIcon + "/" + u.default.GetSkillIconId(t), cc.SpriteFrame)];
                                case 1:
                                    return r.spriteFrame = i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    for (var n = 0; n < this._talentUltimateSkills.length; n++) {
                        var o = this._tipItemArr[n];
                        if (!o) {
                            var r = cc.instantiate(this._tipItemPrefab);
                            o = r.getComponent(p.default), this._tipItemArr.push(o), this.Content.addChild(r)
                        }
                        o.Init(n + 1, this._talentLevel, this._talentUltimateSkills[n].Items, this._skillLevel == n + 1)
                    }
                }, i([f(cc.Sprite)], t.prototype, "Icon", void 0), i([f(cc.Label)], t.prototype, "LevelLabel", void 0), i([f(cc.Label)], t.prototype, "NameLabel", void 0), i([f(cc.Label)], t.prototype, "DescLabel", void 0), i([f(cc.Node)], t.prototype, "Content", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/MagicCircleSkillTipItem": "MagicCircleSkillTipItem"
    }],
    MagicCircleTalentComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6670cfI3KZJdYGqsnvv3iV3", "MagicCircleTalentComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("./LoadAssetHelper"),
            c = e("../../Components/Components"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LightNode = null, t.Icon = null, t.Border = null, t.Lock = null, t.Level = null, t.RedDot = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r, i) {
                    void 0 === o && (o = 0), this._level = o, this.LightNode.active = n, this.Border.angle = i, this._talentConfig = c.ConfigDataComponent.Instance.GetConfigById(a.MagicCircleTalent_Config, 1e3 * e + (o > 0 ? o : 1)), this.SetUnlock(t), this.SetIcon(), this.SetLevel(t, o, r), this.RefreshRedDot()
                }, t.prototype.SetUnlock = function(e) {
                    e ? (this.Lock.active = !1, s.UIUtlity.OffSpriteGray(this.Icon), s.UIUtlity.OffNodeGray(this.Border)) : (this.Lock.active = !0, s.UIUtlity.OnSpriteDark(this.Icon, .6), s.UIUtlity.OnNodeDark(this.Border, .6))
                }, t.prototype.SetIcon = function() {
                    this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(l.default)), this._loadAssetHelper.LoadSpriteFrame("MagicCirclePanel/TalentIcon/" + this._talentConfig.Icon, this.Icon)
                }, t.prototype.SetLevel = function(e, t, n) {
                    e && n ? (this.Level.node.parent.active = !0, this.Level.string = t + "/" + n) : this.Level.node.parent.active = !1
                }, t.prototype.RefreshRedDot = function() {
                    var e = this._talentConfig.Materials;
                    if (0 != this._level && e && 0 != e.length) {
                        for (var t = 0, n = e; t < n.length; t++) {
                            var o = n[t];
                            if (!c.DataCenter.Instance.IsItemEnough(o.Items[0], o.Items[1])) return void(this.RedDot.active = !1)
                        }
                        this.RedDot.active = !0
                    } else this.RedDot.active = !1
                }, i([d(cc.Node)], t.prototype, "LightNode", void 0), i([d(cc.Sprite)], t.prototype, "Icon", void 0), i([d(cc.Node)], t.prototype, "Border", void 0), i([d(cc.Node)], t.prototype, "Lock", void 0), i([d(cc.Label)], t.prototype, "Level", void 0), i([d(cc.Node)], t.prototype, "RedDot", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    MagicCircleTalentDetailItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fac2bjq5UJJhri6+skhBmUn", "MagicCircleTalentDetailItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("./LoadAssetHelper"),
            u = e("../../../ShareConsts/EnumType"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TagLabel = null, t.Icon = null, t.NameLabel = null, t.DescLabel = null, t.Dark = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = 0), this.NameLabel.string = ("magicCircle_talentName_" + e).ToUILocale() + "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(t), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(c.default));
                    var o = s.ConfigDataComponent.Instance.GetConfigById(a.MagicCircleTalent_Config, 1e3 * e + t);
                    o && (this._loadAssetHelper.LoadSpriteFrame("MagicCirclePanel/TalentIcon/" + o.Icon, this.Icon), this.DescLabel.string = this.GetTalentDesc(o.Skills)), t == n ? (this.Dark.active = !1, this.TagLabel.node.parent.active = !0, this.TagLabel.string = "magicCircle_now".ToUILocale()) : t > n ? (this.Dark.active = !0, this.TagLabel.node.parent.active = !1) : (this.Dark.active = !1, this.TagLabel.node.parent.active = !1)
                }, t.prototype.GetTalentDesc = function(e) {
                    for (var t = "", n = 0; n < e.length; n++) switch (e[n].Items[0]) {
                        case u.MagicCircleTalentEffect.AddAttrValue:
                            for (var o = 1; o < e[n].Items.length; o += 2) {
                                var r = e[n].Items[o],
                                    i = e[n].Items[o + 1];
                                t.length > 0 && (t += ","), t += "LuckyCharm_EnteredSkillEffect".ToUILocale().Fmt(l.default.GetHeroAttributeName(r), l.default.GetHeroAttributeValue(i, r, null, !0))
                            }
                            break;
                        case u.MagicCircleTalentEffect.AddSkill:
                            for (o = 1; o < e[n].Items.length; o++) {
                                var a = e[n].Items[o];
                                t.length > 0 && (t += ","), t += "magicCircle_addSkill".ToUILocale().Fmt(a.ToHeroSkillName())
                            }
                            break;
                        case u.MagicCircleTalentEffect.AddAttrValuePercent:
                            for (o = 1; o < e[n].Items.length; o += 2) {
                                r = e[n].Items[o];
                                var s = e[n].Items[o + 1];
                                t.length > 0 && (t += ","), t += "magicCircle_addAttr".ToUILocale().Fmt(l.default.GetHeroAttributeName(r), s / 10 + "%")
                            }
                    }
                    return t
                }, i([h(cc.Label)], t.prototype, "TagLabel", void 0), i([h(cc.Sprite)], t.prototype, "Icon", void 0), i([h(cc.Label)], t.prototype, "NameLabel", void 0), i([h(cc.Label)], t.prototype, "DescLabel", void 0), i([h(cc.Node)], t.prototype, "Dark", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    MagicCircleTalentDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "10b5cnxNyFO67POa1+sT28S", "MagicCircleTalentDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/MagicCircleTalentDetailItem"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.ScrollView = null, t.Layout = null, t.ItemBgNode = null, t.ItemLayoutNode = null, t.GrayButton = null, t.GrayButtonLabel = null, t.UpLevelButton = null, t.UpLevelButtonLabel = null, t.ConditionLabel = null, t.MaxLevelNode = null, t.MaxLabel = null, t._detailItemComponentArr = [], t._itemComponentArr = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickMaterial, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickMaterial)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("MagicCirclePanel/Components/MagicCircleTalentDetailItem", cc.Prefab), this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        t._detailItemPrefab = e[0], t._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GrayButton.node.on("click", this.OnGrayButtonClick, this), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this), this.Title.string = "magicCircle_talent1".ToUILocale(), this.GrayButtonLabel.string = this.UpLevelButtonLabel.string = "CollectionPavilion_HeroFetter_UpLevel".ToUILocale(), this.MaxLabel.string = "CollectionPavilion_HeroFetter_MaxLevel".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._magicCircleId = t[0], this._talentIndex = t[1], this._magicCircleBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, this._magicCircleId)
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this._magicCircleModel = d.DataCenter.Instance.GetDataById(c.MagicCircle_Model, this._magicCircleId), this._curStarConfig = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleStar_Config, this._magicCircleModel.Star), this._talentIndex < this._curStarConfig.ActivateTalentCount) {
                        this.ConditionLabel.node.active = !1;
                        var n = this._magicCircleModel.Talents[this._talentIndex] || 1;
                        if (n >= this._magicCircleBaseConfig.TalentMaxLevel) this.ItemBgNode.active = !1, this.MaxLevelNode.active = !0;
                        else {
                            this.ItemBgNode.active = !0, this.MaxLevelNode.active = !1;
                            var o = d.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleTalent_Config, 1e3 * this._magicCircleBaseConfig.TalentIds[this._talentIndex] + n);
                            this.SetMaterials(o), this.SetBtnState(o)
                        }
                    } else {
                        this.ItemBgNode.active = !1, this.ConditionLabel.node.active = !0;
                        for (var r = 0, i = d.ConfigDataComponent.Instance.GetArrayConfig(u.MagicCircleStar_Config); r < i.length; r++) {
                            var a = i[r];
                            if (a.ActivateTalentCount > this._talentIndex) {
                                this.ConditionLabel.string = "magicCircle_unlockTalent".ToUILocale().Fmt(a.Id);
                                break
                            }
                        }
                    }
                    this.SetDetailItems()
                }, t.prototype.SetMaterials = function(e) {
                    for (var t = 0; t < e.Materials.length; t++) {
                        var n = this._itemComponentArr[t];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            n = o.getComponent(f.ItemComponent), this.ItemLayoutNode.addChild(o), this._itemComponentArr[t] = n
                        }
                        n.node.active = !0, n.Init({
                            ItemId: e.Materials[t].Items[0],
                            Count: e.Materials[t].Items[1]
                        }), n.SetProgressBar(d.DataCenter.Instance.GetItemCount(e.Materials[t].Items[0]), e.Materials[t].Items[1])
                    }
                    for (t = e.Materials.length; t < this._itemComponentArr.length; t++) this._itemComponentArr[t].node.active = !1
                }, t.prototype.SetBtnState = function(e) {
                    for (var t = 0, n = e.Materials; t < n.length; t++) {
                        var o = n[t];
                        if (!d.DataCenter.Instance.IsItemEnough(o.Items[0], o.Items[1])) return this.GrayButton.node.active = !0, this.UpLevelButton.node.active = !1, void(this._noEnoughItemId = o.Items[0])
                    }
                    this.GrayButton.node.active = !1, this.UpLevelButton.node.active = !0
                }, t.prototype.SetDetailItems = function() {
                    for (var e = this, t = 0; t < this._magicCircleBaseConfig.TalentMaxLevel; t++) {
                        var n = this._detailItemComponentArr[t];
                        if (!n) {
                            var o = cc.instantiate(this._detailItemPrefab);
                            n = o.getComponent(p.default), this.ScrollView.content.addChild(o), this._detailItemComponentArr[t] = n
                        }
                        n.Init(this._magicCircleBaseConfig.TalentIds[this._talentIndex], t + 1, this._magicCircleModel.Talents[this._talentIndex])
                    }
                    this.scheduleOnce(function() {
                        e.ScrollView.scrollToOffset(cc.v2(0, (e._magicCircleModel.Talents[e._talentIndex] - 1) * (e.Layout.node.children[0].height + e.Layout.spacingY)))
                    })
                }, t.prototype.OnGrayButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemGetWayPanel.Path, this._noEnoughItemId)
                }, t.prototype.OnUpLevelButtonClick = function() {
                    var e = this,
                        t = new c.Req_Item_MagicCircleUpgradeTalent;
                    t.Id = this._magicCircleId, t.TalentIndex = this._talentIndex, d.RpcComponent.Instance.Call(t, function() {
                        e.DisPlay(!0)
                    })
                }, t.prototype.OnClickMaterial = function(e, t) {
                    t.parent == this.ItemLayoutNode && g.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([_(cc.Layout)], t.prototype, "Layout", void 0), i([_(cc.Node)], t.prototype, "ItemBgNode", void 0), i([_(cc.Node)], t.prototype, "ItemLayoutNode", void 0), i([_(cc.Button)], t.prototype, "GrayButton", void 0), i([_(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([_(cc.Button)], t.prototype, "UpLevelButton", void 0), i([_(cc.Label)], t.prototype, "UpLevelButtonLabel", void 0), i([_(cc.Label)], t.prototype, "ConditionLabel", void 0), i([_(cc.Node)], t.prototype, "MaxLevelNode", void 0), i([_(cc.Label)], t.prototype, "MaxLabel", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/MagicCircleTalentDetailItem": "MagicCircleTalentDetailItem"
    }],
    MagicCircleUpStarSucessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f753cHjY6RFBZ4bEGBhB7mV", "MagicCircleUpStarSucessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = e("../Components/ItemComponent"),
            f = e("../Components/ItemClickComponent"),
            y = e("../../Components/Components"),
            g = e("./MagicCircleInfoPanel"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/PetSkillComponent"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.OldItemContainer = null, t.NewItemContainer = null, t.AttrDesc = null, t.LevelDesc = null, t.OldLevel = null, t.NewLevel = null, t.AttrNodes = [], t.SkillDesc = null, t.NoneSkillDesc = null, t.SkillLayout = null, t.StarUpSpine = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrDesc.string = "upgrade_attr".ToUILocale(), this.SkillDesc.string = "upgrade_skill".ToUILocale(), this.LevelDesc.string = "level_limit".ToUILocale(), this.NoneSkillDesc.string = "upgrade_skill_none".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._oldModel = t[0], this._newModel = d.DataCenter.Instance.GetDataById(c.MagicCircle_Model, this._oldModel.Sid)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.ConfigHeroItem(), this.ConfigAttrInfo(), this.ConfigSkills()
                }, t.prototype.ConfigHeroItem = function() {
                    var e;
                    this._oldItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.OldItemContainer), e.getComponent(f.default).enabled = !1, this._oldItemComponent = e.getComponent(h.ItemComponent)), this._newItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.NewItemContainer), e.getComponent(f.default).enabled = !1, this._newItemComponent = e.getComponent(h.ItemComponent)), this._oldItemComponent.Init({
                        ItemId: this._oldModel.Sid,
                        StarLevel: this._oldModel.Star
                    }, h.ItemComponentType.ItemWithStar), this._newItemComponent.Init({
                        ItemId: this._newModel.Sid,
                        StarLevel: this._newModel.Star
                    }, h.ItemComponentType.ItemWithStar)
                }, t.prototype.ConfigAttrInfo = function() {
                    var e = this,
                        t = y.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleStar_Config, this._oldModel.Star),
                        n = y.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleStar_Config, this._newModel.Star),
                        o = y.ConfigDataComponent.Instance.GetConfigById(u.MagicCircleBase_Config, this._oldModel.Sid);
                    this.OldLevel.string = t.MaxLevel.toString(), this.NewLevel.string = n.MaxLevel.toString(), this.AttrNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var r = g.default.GetMagicCircleAttrByQuality(o.Quality, this._oldModel.Star, this._oldModel.Level, this._oldModel.Sid);
                    g.default.GetMagicCircleAttrByQuality(o.Quality, this._newModel.Star, this._newModel.Level, this._oldModel.Sid).forEach(function(t, n) {
                        if (e.AttrNodes[n]) {
                            var o = r.find(function(e) {
                                return e.attrId == t.attrId
                            });
                            o ? t.attrvalue != o.attrvalue && e.SetAttrs(e.AttrNodes[n], t.attrId, o.attrvalue, t.attrvalue) : e.SetAttrs(e.AttrNodes[n], t.attrId, 0, t.attrvalue)
                        }
                    })
                }, t.prototype.SetAttrs = function(e, t, n, o) {
                    var r = m.default.GetHeroAttribute(t, o, !0);
                    e.getChildByName("Icon").getComponent(cc.Sprite).spriteFrame = r.Icon, e.getChildByName("Desc").getComponent(cc.Label).string = r.Name, e.getChildByName("OldValue").getComponent(cc.Label).string = n.toString(), e.getChildByName("NewValue").getComponent(cc.Label).string = o.toString(), e.active = !0
                }, t.prototype.ConfigSkills = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    for (e = g.default.GetMagicCircleSkills(this._oldModel.Sid, this._oldModel.Star), t = g.default.GetMagicCircleSkills(this._newModel.Sid, this._newModel.Star), n = [], u = 0; u < e.length; u++) o = e[u], r = t[u], o.SkillId != r.SkillId && n.push(r);
                                    return n.length > 0 ? (this.NoneSkillDesc.node.active = !1, this.SkillLayout.active = !0, null != this._skillItemPrefab ? [3, 2] : (i = this, [4, this.LoadDynamicAsset("HeroPetPanel/Components/PetSkillComponent")])) : [3, 3];
                                case 1:
                                    i._skillItemPrefab = s.sent(), s.label = 2;
                                case 2:
                                    for (u = 0; u < n.length; u++) a = n[u], void 0 === (l = this.SkillLayout.children[u]) && (l = cc.instantiate(this._skillItemPrefab)).setParent(this.SkillLayout), l.active = !0, (c = l.getComponent(I.default)).Init(a.SkillId, a.Level), a.Active ? c.OffIconGray() : c.OnIconGray();
                                    for (u = n.length; u < this.SkillLayout.childrenCount; u++) this.SkillLayout.children[u].active = !1;
                                    return [3, 4];
                                case 3:
                                    this.NoneSkillDesc.node.active = !0, this.SkillLayout.active = !1, s.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, i([v(cc.Node)], t.prototype, "OldItemContainer", void 0), i([v(cc.Node)], t.prototype, "NewItemContainer", void 0), i([v(cc.Label)], t.prototype, "AttrDesc", void 0), i([v(cc.Label)], t.prototype, "LevelDesc", void 0), i([v(cc.Label)], t.prototype, "OldLevel", void 0), i([v(cc.Label)], t.prototype, "NewLevel", void 0), i([v(cc.Node)], t.prototype, "AttrNodes", void 0), i([v(cc.Label)], t.prototype, "SkillDesc", void 0), i([v(cc.Label)], t.prototype, "NoneSkillDesc", void 0), i([v(cc.Node)], t.prototype, "SkillLayout", void 0), i([v(sp.Skeleton)], t.prototype, "StarUpSpine", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PetSkillComponent": "PetSkillComponent",
        "./MagicCircleInfoPanel": "MagicCircleInfoPanel"
    }],
    MagicComposeMaterialComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f4625Qr0TlEi5TuX262iMGg", "MagicComposeMaterialComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/DataCenter"),
            s = e("./ItemComponent"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/DataUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.AddIconNode = null, t.CountRichText = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    if (void 0 === t && (t = 0), void 0 === n && (n = 0), this._needItemId = t, this._needItemCount = n, this.ItemNode.active = e, this.CountRichText.node.parent.active = e, this.AddIconNode.active = !1, e) {
                        if (!this._itemComponent) {
                            var r = cc.instantiate(o);
                            r.setParent(this.ItemNode), this._itemComponent = r.getComponent(s.ItemComponent)
                        }
                        this._itemComponent.Init({
                            ItemId: t
                        });
                        var i = a.DataCenter.Instance.GetItemCount(t);
                        this.AddIconNode.active = i < n, this.CountRichText.string = i >= n ? "item_count_enough".ToUILocale().Fmt(i.FmtCurrency(), n.FmtCurrency()) : "item_count_not_enough".ToUILocale().Fmt(i.FmtCurrency(), n.FmtCurrency()), i < n ? this._itemComponent.EnableMask() : this._itemComponent.DisableMask()
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && (a.DataCenter.Instance.IsItemEnough(this._needItemId, this._needItemCount) ? u.UIUtlity.ShowItemTip(t.getComponent(s.ItemComponent).ItemId, t) : p.default.ShowItemGetWay(t.getComponent(s.ItemComponent).ItemId))
                }, i([f(cc.Node)], t.prototype, "ItemNode", void 0), i([f(cc.Node)], t.prototype, "AddIconNode", void 0), i([f(cc.RichText)], t.prototype, "CountRichText", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    MagicComposePotComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "46afc5UvbtCF6P4junMDJxS", "MagicComposePotComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("./ItemComponent"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../Consts/Etc"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Panel/ActivityMagicComposePanel"),
            I = e("./CustomProgressBar"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BottomIcon = null, t.WaterIcon = null, t.BottomPotSpine = null, t.TopPotSpine = null, t.ItemContainer = null, t.ItemNode = null, t.LockIconNode = null, t.ProgressBar = null, t.LeftTime = null, t.QuickButton = null, t.QuickButtonLabel = null, t.RedDotNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.QuickButtonLabel.string = "ActivityMagicCompose_Quick".ToUILocale(), this.QuickButton.node.on("click", this.OnQuickButtonClick, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnPotNodeClick, this)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    this._potData = e, this._playerModel = e.playerModel, this.SetCurrentShow()
                }, t.prototype.SetCurrentShow = function() {
                    if (this.BottomPotSpine.node.active = !1, this.TopPotSpine.node.active = !1, this.ItemContainer.active = !1, this.ItemNode.active = !1, this.LockIconNode.active = !1, this.ProgressBar.node.active = !1, this.QuickButton.node.active = !1, this.RedDotNode.active = !1, this.BottomIcon.spriteFrame = this._potData.atlas.getSpriteFrame("pot_shadow"), this.WaterIcon.spriteFrame = null, this._currentPotDataArray = this._playerModel.Int2DArray[this._potData.slotConfig.Id - 1] ? this._playerModel.Int2DArray[this._potData.slotConfig.Id - 1].Items : [], this._currentPotDataArray.length > 1) {
                        var e = this._currentPotDataArray[2],
                            t = p.RpcComponent.Instance.ServerTime;
                        this.ItemContainer.active = !0, this.ItemNode.active = !0, this.ProgressBar.node.active = t < e, this.QuickButton.node.active = t < e, this.RedDotNode.active = t >= e, this.SetItemNode(), t < e ? (this.BottomIcon.spriteFrame = this._potData.atlas.getSpriteFrame("plot"), this.WaterIcon.spriteFrame = this._potData.atlas.getSpriteFrame("waterIcon_progress"), this.SetLeftTime(), this.schedule(this.SetLeftTime, 1), this.SetComposingSpine()) : (this.WaterIcon.spriteFrame = this._potData.atlas.getSpriteFrame("waterIcon_complete"), this.SetCompleteSpine())
                    } else !this._potData.slotConfig.UnlockPackId || this._playerModel.Packs[this._potData.slotConfig.UnlockPackId] && this._playerModel.Packs[this._potData.slotConfig.UnlockPackId].Items[0] ? this.ItemContainer.active = !0 : this.LockIconNode.active = !0
                }, t.prototype.SetItemNode = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._potData.itemPrefab);
                        e.setParent(this.ItemNode), this._itemComponent = e.getComponent(d.ItemComponent)
                    }
                    var t = this._currentPotDataArray[0],
                        n = this._potData.reelConfigMap[t],
                        o = n.Product[0].Items[0],
                        r = n.Product[0].Items[1] * this._currentPotDataArray[1];
                    this._itemComponent.Init({
                        ItemId: o,
                        Count: r
                    })
                }, t.prototype.SetLeftTime = function() {
                    var e = this._currentPotDataArray[2] - p.RpcComponent.Instance.ServerTime;
                    if (e < 0) return this.unschedule(this.SetLeftTime), this._playerModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._potData.activityConfig._id), void this.SetCurrentShow();
                    this.ProgressBar.progress = 1 - e / (this._potData.reelConfigMap[this._currentPotDataArray[0]].Time * f.Etc.MinuteDuration * this._currentPotDataArray[1]), this.LeftTime.string = h.default.ActivityTimeLeftFormat(e)
                }, t.prototype.SetComposingSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.TopPotSpine.node.active = !0, [4, this._potData.mainPanel.GetPotSpine(m.MagicComposeSpineType.TopPotSpine1)];
                                case 1:
                                    return e = t.sent(), this.TopPotSpine.skeletonData = e, this.TopPotSpine.setAnimation(0, "Ani_UI_Effect_hechengjinxingzhong", !0), [2]
                            }
                        })
                    })
                }, t.prototype.SetCompleteSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.BottomPotSpine.node.active = !0, this.TopPotSpine.node.active = !0, [4, this._potData.mainPanel.GetPotSpine(m.MagicComposeSpineType.BottomPotSpine)];
                                case 1:
                                    return e = n.sent(), [4, this._potData.mainPanel.GetPotSpine(m.MagicComposeSpineType.TopPotSpine2)];
                                case 2:
                                    return t = n.sent(), this.BottomPotSpine.skeletonData = e, this.BottomPotSpine.setAnimation(0, "Ani_UI_Effect_hechengwancheng_2", !0), this.TopPotSpine.skeletonData = t, this.TopPotSpine.setAnimation(0, "Ani_UI_Effect_hechengwancheng", !0), [2]
                            }
                        })
                    })
                }, t.prototype.OnQuickButtonClick = function() {
                    for (var e, t = this, n = "", o = this._currentPotDataArray[2] - p.RpcComponent.Instance.ServerTime, r = 0; r < this._potData.activityConfig.CustomPart.AccelerateCost.length; r++) {
                        var i = this._potData.activityConfig.CustomPart.AccelerateCost[r].Items,
                            a = i[0],
                            s = Math.ceil(o / f.Etc.MinuteDuration / 10 * i[1]);
                        n += s + a.ToItemName(), p.DataCenter.Instance.IsItemEnough(a, s) || (e = a)
                    }
                    c.UIUtlity.ShowHintPanel(null, "ActivityMagicCompose_Quick_Tip".ToUILocale().Fmt(n), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                        e ? c.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.ToItemName())) : t.RequestGetReward(!0)
                    })
                }, t.prototype.RequestGetReward = function(e) {
                    var t = this,
                        n = new u.Req_Activity_MagicComposeGetReward;
                    n.ActivityId = this._potData.activityConfig._id, n.SlotId = this._potData.slotConfig.Id, n.IsAccelerate = e, p.RpcComponent.Instance.Call(n, function(n) {
                        c.UIUtlity.ShwDisplayRewardPanel(n.Rewards), e && t.unschedule(t.SetLeftTime)
                    })
                }, t.prototype.OnPotNodeClick = function() {
                    if (this._currentPotDataArray.length <= 1 && this._potData.slotConfig.UnlockPackId && (!this._playerModel.Packs[this._potData.slotConfig.UnlockPackId] || !this._playerModel.Packs[this._potData.slotConfig.UnlockPackId].Items[0])) {
                        for (var e = "ActivityMagicCompose_Compose_Privilege".ToUILocale().Fmt(this._potData.slotConfig.CutShort / 10), t = void 0, n = 0; n < this._potData.activityConfig._Packs.length; n++)
                            if (this._potData.activityConfig._Packs[n].Id == this._potData.slotConfig.UnlockPackId) {
                                t = this._potData.activityConfig._Packs[n];
                                break
                            } l.UIManager.Instance.ShowUIPanel(g.PanelConfig.PrivilegeGiftBuyHintPanel.Path, t, this._potData.activityConfig._id, e)
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && (this._currentPotDataArray[2] < p.RpcComponent.Instance.ServerTime ? this.RequestGetReward(!1) : c.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t))
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([v(cc.Sprite)], t.prototype, "BottomIcon", void 0), i([v(cc.Sprite)], t.prototype, "WaterIcon", void 0), i([v(sp.Skeleton)], t.prototype, "BottomPotSpine", void 0), i([v(sp.Skeleton)], t.prototype, "TopPotSpine", void 0), i([v(cc.Node)], t.prototype, "ItemContainer", void 0), i([v(cc.Node)], t.prototype, "ItemNode", void 0), i([v(cc.Node)], t.prototype, "LockIconNode", void 0), i([v(I.default)], t.prototype, "ProgressBar", void 0), i([v(cc.Label)], t.prototype, "LeftTime", void 0), i([v(cc.Button)], t.prototype, "QuickButton", void 0), i([v(cc.Label)], t.prototype, "QuickButtonLabel", void 0), i([v(cc.Node)], t.prototype, "RedDotNode", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/ActivityMagicComposePanel": "ActivityMagicComposePanel",
        "./CustomProgressBar": "CustomProgressBar",
        "./ItemComponent": "ItemComponent"
    }],
    MailContent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ad727B87/JEVqB2rUc51kE7", "MailContent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../Components/CustomRichText"),
            u = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            p = e("../../../EZFramework/UIFrame/UIPanelType"),
            d = e("../../../EZFramework/EZDefine/SysDefine"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/RpcComponent"),
            g = e("../../../Consts/Consts"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/ItemComponent"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../../../EZFramework/EZFramework"),
            b = e("../../../Consts/Consts"),
            S = e("../../../../Proto/Static/ConfigProto"),
            w = e("../../Components/ConfigData/ConfigDataComponent"),
            P = e("../../../../Proto/Static/ConfigProto"),
            A = e("./StarPiecePanel"),
            T = e("../../Channel/ChannelManager"),
            R = e("../../Components/GlobalConfigComponent"),
            L = e("../../Auxiliary/DataUtlity"),
            k = e("../../Auxiliary/GameRecord"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property;
        (function(e) {
            e[e.NotHaveAttach = 0] = "NotHaveAttach", e[e.HaveAttach = 1] = "HaveAttach"
        })(l || (l = {}));
        var B = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(d.UINodeType.Fixed, !0, !1, !1, p.AssetUnloadMode.Normal, !1), t.MainNode = null, t.BgNode = null, t.MailTittle = null, t.MailIcon = null, t.ReceiveTimeLabel = null, t.ValidPeriodLabel = null, t.AttachNode = null, t.ContentLabel = null, t.BtnDelete = null, t.BtnReceive = null, t.BtnSure = null, t.ContentScroll = null, t.RewardScroll = null, t.RewardItemGrid = null, t.ContentMainTittle = null, t.AttachTittleLabel = null, t.ContentBtnDeleteLabel = null, t.ContentBtnReceive = null, t.ContentBtnSure = null, t.ItemBG = null, t.NoticeImage = null, t.TranslateBtn = null, t.TranslateBtnLabel = null, t._mailData = null, t._mailIconAtlas = null, t._rewardItemPrefab = null, t._commonItemTable = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("MailPanel/mailpanel", cc.SpriteAtlas)];
                            case 1:
                                return t._mailIconAtlas = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.onEnable = function() {
                _.Game.EventDispatcher.On(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                _.Game.EventDispatcher.Off(C.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
            }, t.prototype.OnItemClick = function(e, t) {
                if (-1 != this.RewardItemGrid.children.indexOf(t)) {
                    var n = w.ConfigDataComponent.Instance.GetConfigById(P.ItemBase_Config, e);
                    if (n.Type == b.ItemType.TemplePiece) {
                        var o = {
                            pieceId: L.default.GetStarPieceIdByFragmentId(e, A.StarTemplePieceType.General),
                            pieceType: A.StarTemplePieceType.General,
                            showFullStatus: !1,
                            isFragment: !0,
                            tipParentNode: t
                        };
                        v.UIManager.Instance.ShowUIPanel(h.PanelConfig.StarPieceFragmentTipsPanel.Path, o)
                    } else n.Type == b.ItemType.ExclusiveTemplePiece ? (o = {
                        pieceId: L.default.GetStarPieceIdByFragmentId(e, A.StarTemplePieceType.Exclusive),
                        pieceType: A.StarTemplePieceType.Exclusive,
                        showFullStatus: !1,
                        isFragment: !0,
                        tipParentNode: t
                    }, v.UIManager.Instance.ShowUIPanel(h.PanelConfig.StarPieceFragmentTipsPanel.Path, o)) : m.UIUtlity.ShowItemTip(e, t)
                }
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetTranslateBtnLabel(), this.TranslateBtn.node.on("click", this.OnTranslate, this);
                var t = T.default.Instance.IsVNChannel();
                this.TranslateBtn.node.active = !t;
                var n = T.default.Instance.IsHighSchoolChannel();
                this.ContentLabel.node.color = n ? new cc.Color(98, 78, 60) : new cc.Color(255, 255, 255)
            }, t.prototype.SetStaticLocalText = function() {
                this.ContentMainTittle.string = "mail_content_tittle".ToUILocale(), this.AttachTittleLabel.string = "mail_attach".ToUILocale(), this.ContentBtnDeleteLabel.string = "mail_delete".ToUILocale(), this.ContentBtnReceive.string = "mail_receive".ToUILocale(), this.ContentBtnSure.string = "ok".ToUILocale()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._mailData = t[0], this.SetUI()
            }, t.prototype.SetUI = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e = this._mailData.Items.length, this.SetUIHeight(), this.SetMailContentUI(), this.SetMailReceiveTime(), this.SetMailIconState(), this.SetMailValidPeriod(), this.BtnReceive.node.active = !1, this.BtnDelete.node.active = !0, this.BtnSure.node.active = !1, this._mailData.Items.length > 0 ? (this._mailData.IsDraw ? this._mailData.Type >= 2 && this._mailData.Type <= 4 ? (this.BtnDelete.node.active = !1, this.BtnSure.node.active = !0) : this.BtnDelete.node.active = !0 : (this.BtnReceive.node.active = !0, this.BtnDelete.node.active = !1), this.SetContentByType(l.HaveAttach)) : (this.BtnDelete.node.active = this._mailData.Type < 2 || this._mailData.Type > 4, this.BtnSure.node.active = this._mailData.Type >= 2 && this._mailData.Type <= 4, this.SetContentByType(l.NotHaveAttach)), this.BtnDelete.node.on("click", this.OnBtnDeleteOnceClick, this), this.BtnReceive.node.on("click", this.OnBtnReceiveClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this), null == this._commonItemTable && (this._commonItemTable = []), null != this._rewardItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent)]);
                            case 1:
                                if (t._rewardItemPrefab = n.sent(), !this.isValid) return v.AssetsManager.Instance.UnloadAsset(this._rewardItemPrefab), [2];
                                n.label = 2;
                            case 2:
                                return this.LoadRewardItem(e), [2]
                        }
                    })
                })
            }, t.prototype.SetUIHeight = function() {
                this.MainNode.height = this._mailData.Type >= 2 && this._mailData.Type <= 4 ? 1380 : 1080, this.BgNode.height = this._mailData.Type >= 2 && this._mailData.Type <= 4 ? 1424 : 1124
            }, t.prototype.LoadRewardItem = function(e) {
                new cc.Size(0, 0);
                for (var t = 0; t < this._commonItemTable.length; t++) this._commonItemTable[t].node.active = !1;
                for (t = 0; t < e; t++) {
                    var n;
                    null == this._commonItemTable[t] ? ((n = cc.instantiate(this._rewardItemPrefab)).parent = this.RewardItemGrid, this._commonItemTable[t] = n.getComponent(I.ItemComponent), n.getContentSize()) : (n = this._commonItemTable[t]).node.getContentSize();
                    var o = this._mailData.Items[t];
                    this._commonItemTable[t].node.name = o.ItemId.toString(), this._commonItemTable[t].node.active = !0;
                    var r = w.ConfigDataComponent.Instance.GetConfigById(S.ItemBase_Config, o.ItemId);
                    if (r.Type == b.ItemType.Equip || r.Type == b.ItemType.HolyEquip) this._commonItemTable[t].Init(o, I.ItemComponentType.ItemWithStar);
                    else if (r.Type == b.ItemType.GodSoul) {
                        var i = w.ConfigDataComponent.Instance.GetConfigById(P.AngelGodSoul_Config, r.Id);
                        this._commonItemTable[t].Init(o, I.ItemComponentType.ItemCommon), this._commonItemTable[t].SetLeftTopTag(!0, m.UIUtlity.COMMON_ATLAS4.getSpriteFrame("item_count_bg1"), i.Level)
                    } else if (r.Id == g.CommonItemId.Currency) {
                        var a = Math.floor(100 * T.default.Instance.ExchangeMoney(o.Count) + .5);
                        this._commonItemTable[t].Init({
                            ItemId: o.ItemId,
                            Count: a
                        }, I.ItemComponentType.ItemCommon)
                    } else this._commonItemTable[t].Init(o, I.ItemComponentType.ItemCommon);
                    this._mailData.IsDraw ? this._commonItemTable[t].SetReceivedTagState(!0) : this._commonItemTable[t].SetReceivedTagState(!1)
                }
                m.UIUtlity.AnimationItemsByType1(this.RewardItemGrid.children)
            }, t.prototype.SetMailContentUI = function() {
                if (this.MailTittle.string = this._mailData.Title, this._contentTitleOriginal = this._mailData.Title, this._mailData.Type >= 2 && this._mailData.Type <= 4) {
                    this.NoticeImage.node.active = !0;
                    var e = "";
                    switch (this._mailData.Type) {
                        case 2:
                            e = "notice_advance";
                            break;
                        case 3:
                            e = "notice_maintain";
                            break;
                        case 4:
                            e = "notice_game"
                    }
                    this.NoticeImage.spriteFrame = m.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame(e)
                } else this.NoticeImage.node.active = !1;
                this.ContentLabel.Init(this._mailData.Content), this._contentInfoOriginal = this._mailData.Content, this.ContentScroll.scrollToTop()
            }, t.prototype.SetMailReceiveTime = function() {
                var e = y.RpcComponent.Instance.ServerTime - this._mailData.Ts;
                e < b.Etc.MinuteDuration ? this.ReceiveTimeLabel.string = "last".ToUILocale() : this.ReceiveTimeLabel.string = "time_duration_ago".ToUILocale().Fmt(e.FmtSimpleRemainTime())
            }, t.prototype.SetMailIconState = function() {
                var e = this._mailData.Items.length > 0;
                this._mailData.IsRead || this._mailData.IsDraw ? e ? this.LoadMailIconSpriteByName("hasread_item") : this.LoadMailIconSpriteByName("hasread") : e ? this.LoadMailIconSpriteByName("hasnotred_item") : this.LoadMailIconSpriteByName("hasnotread")
            }, t.prototype.SetMailValidPeriod = function() {
                var e = this._mailData.Duration * g.Etc.DayDuration;
                this.ValidPeriodLabel.string = "mail_validPeriod".ToUILocale().Fmt(e.FmtSimpleRemainTime("d"))
            }, t.prototype.SetContentByType = function(e) {
                this.ContentScroll.node.height = this._mailData.Type >= 2 && this._mailData.Type <= 4 ? 610 : 310, e == l.HaveAttach ? (this.ContentScroll.node.height = this._mailData.Type >= 2 && this._mailData.Type <= 4 ? 610 : 310, this.AttachNode.active = !0, this.RewardScroll.active = !0, this.ItemBG.active = !0) : (this.ContentScroll.node.height = this._mailData.Type >= 2 && this._mailData.Type <= 4 ? 848 : 548, this.AttachNode.active = !1, this.RewardScroll.active = !1, this.ItemBG.active = !1)
            }, t.prototype.LoadMailIconSpriteByName = function(e) {
                this.MailIcon.spriteFrame = this._mailIconAtlas.getSpriteFrame(e)
            }, t.prototype.OnBtnDeleteOnceClick = function() {
                var e = this;
                1 == this._mailData.Type ? k.default.GetItem(k.GameRecordDefine.ImportantMailDeleteCheck) ? this.RequestDeleteMail() : m.UIUtlity.ShowHintPanel("", "mail_delete_check".ToUILocale(), "", null, "", function() {
                    e.RequestDeleteMail()
                }, null, k.GameRecordDefine.ImportantMailDeleteCheck) : this.RequestDeleteMail()
            }, t.prototype.OnBtnReceiveClick = function() {
                this.RequestDrawMail()
            }, t.prototype.OnBtnSureClick = function() {
                _.UIManager.Instance.BackUIPanel()
            }, t.prototype.RequestDrawMail = function() {
                var e = new f.Req_Mail_DrawReward;
                e.Sids.push(this._mailData.Sid), y.RpcComponent.Instance.Call(e, this.RequestDrawMailSuccess.bind(this))
            }, t.prototype.RequestDrawMailSuccess = function(e) {
                this._mailData.IsDraw = !0, this.BtnReceive.node.active = !1, this._mailData.Type >= 2 && this._mailData.Type <= 4 ? (this.BtnDelete.node.active = !1, this.BtnSure.node.active = !0) : this.BtnDelete.node.active = !0;
                for (var t = 0; t < this._commonItemTable.length; t++) this._commonItemTable[t].SetReceivedTagState(!0);
                _.Game.EventDispatcher.Emit(C.EventKeys.EVENT_SET_MAIL_REDDOT, this._mailData.Sid, null, !0, !0), m.UIUtlity.ShwDisplayRewardPanel(e.Rewards), v.EZLog.Log("\u90ae\u4ef6\u9886\u53d6\u6210\u529f")
            }, t.prototype.RequestDeleteMail = function() {
                var e = new f.Req_Mail_Delete;
                e.Sids.push(this._mailData.Sid), y.RpcComponent.Instance.Call(e, this.ResponseDeleteMailSuccess.bind(this))
            }, t.prototype.ResponseDeleteMailSuccess = function() {
                v.EZLog.Log("\u90ae\u4ef6\u5220\u9664\u6210\u529f"), _.Game.EventDispatcher.Emit(C.EventKeys.EVENT_DELETE_MAIL_DATA, this._mailData.Sid), v.UIManager.Instance.BackUIPanel(), m.UIUtlity.ShowFloatingHint("mail_tips_hasdelete".ToUILocale())
            }, t.prototype.OnTranslate = function() {
                var e = this;
                if (this._isTranslating) this._isTranslating = !this._isTranslating, this.SetTranslateBtnLabel(), this.MailTittle.string = this._contentTitleOriginal, this.ContentLabel.Init(this._contentInfoOriginal);
                else {
                    var t = new f.Req_Chat_G123Translate;
                    t.Content = this._contentTitleOriginal + "|||" + this._contentInfoOriginal, t.Target = T.default.Instance.GetLocaleISOCodeByLocale(R.GlobalConfigComponent.Instance.Locale), y.RpcComponent.Instance.CallWithoutMask(t, function(t) {
                        e._isTranslating = !e._isTranslating, e.SetTranslateBtnLabel();
                        var n = t.Result.split("|||");
                        e.MailTittle.string = n[0], e.ContentLabel.Init(n[1])
                    })
                }
            }, t.prototype.SetTranslateBtnLabel = function() {
                this._isTranslating ? this.TranslateBtnLabel.string = "translate_cancel".ToUILocale() : this.TranslateBtnLabel.string = "translate".ToUILocale()
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this)
            }, i([D(cc.Node)], t.prototype, "MainNode", void 0), i([D(cc.Node)], t.prototype, "BgNode", void 0), i([D(cc.Label)], t.prototype, "MailTittle", void 0), i([D(cc.Sprite)], t.prototype, "MailIcon", void 0), i([D(cc.Label)], t.prototype, "ReceiveTimeLabel", void 0), i([D(cc.RichText)], t.prototype, "ValidPeriodLabel", void 0), i([D(cc.Node)], t.prototype, "AttachNode", void 0), i([D(c.CustomRichText)], t.prototype, "ContentLabel", void 0), i([D(cc.Button)], t.prototype, "BtnDelete", void 0), i([D(cc.Button)], t.prototype, "BtnReceive", void 0), i([D(cc.Button)], t.prototype, "BtnSure", void 0), i([D(cc.ScrollView)], t.prototype, "ContentScroll", void 0), i([D(cc.Node)], t.prototype, "RewardScroll", void 0), i([D(cc.Node)], t.prototype, "RewardItemGrid", void 0), i([D(cc.Label)], t.prototype, "ContentMainTittle", void 0), i([D(cc.Label)], t.prototype, "AttachTittleLabel", void 0), i([D(cc.Label)], t.prototype, "ContentBtnDeleteLabel", void 0), i([D(cc.Label)], t.prototype, "ContentBtnReceive", void 0), i([D(cc.Label)], t.prototype, "ContentBtnSure", void 0), i([D(cc.Node)], t.prototype, "ItemBG", void 0), i([D(cc.Sprite)], t.prototype, "NoticeImage", void 0), i([D(cc.Button)], t.prototype, "TranslateBtn", void 0), i([D(cc.Label)], t.prototype, "TranslateBtnLabel", void 0), i([M], t)
        }(u.BaseUIPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/ItemComponent": "ItemComponent",
        "./StarPiecePanel": "StarPiecePanel"
    }],
    MailItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ca1342SonFBO4RGVRAe370l", "MailItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../Components/RpcComponent"),
            l = e("../../../EZFramework/Auxiliary/EZLog"),
            c = e("../../../Consts/Consts"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../EZFramework/UIFrame/UIManager"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../../Consts/Consts"),
            g = e("../Panel/CommonLongLabelRollComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MailTittle = null, t.MailIconBottom = null, t.MailIcon = null, t.NotReadLabel = null, t.HasReadLabel = null, t.ReceiveTimeLabel = null, t.Mask = null, t.ReadBgMask = null, t.RedDot = null, t.NoticeImage = null, t.CommonLongLabelRollComponent = null, t._oldMailData = null, t._mailData = null, t._mailIconAtlas = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._mailData = e, this._mailIconAtlas = t, this.SetStaticLocalText(), this.SetItemUI(), this.node.on("click", this.OnMailItemClick, this)
                }, t.prototype.SetStaticLocalText = function() {
                    this.NotReadLabel.string = "mail_notRead".ToUILocale(), this.HasReadLabel.string = "mail_hasRead".ToUILocale()
                }, t.prototype.SetItemUI = function() {
                    this.SetMailReceiveTime(), this.SetMailTittle(), this.SetMailReadState(), this.SetMailIconState()
                }, t.prototype.SetMailReceiveTime = function() {
                    var e = s.RpcComponent.Instance.ServerTime - this._mailData.Ts;
                    e < y.Etc.MinuteDuration ? this.ReceiveTimeLabel.string = "last".ToUILocale() : this.ReceiveTimeLabel.string = "time_duration_ago".ToUILocale().Fmt(e.FmtSimpleRemainTime())
                }, t.prototype.SetMailTittle = function() {
                    var e = this._mailData.Title;
                    if (this.MailTittle.string = e, this._mailData.Type >= 2 && this._mailData.Type <= 4) {
                        this.NoticeImage.node.active = !0;
                        var t = "";
                        switch (this._mailData.Type) {
                            case 2:
                                t = "notice_advance";
                                break;
                            case 3:
                                t = "notice_maintain";
                                break;
                            case 4:
                                t = "notice_game"
                        }
                        this.NoticeImage.spriteFrame = u.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame(t), this.CommonLongLabelRollComponent.SetUI(e, 450, 34, cc.color(98, 78, 60))
                    } else this.NoticeImage.node.active = !1, this.CommonLongLabelRollComponent.SetUI(e, 574, 34, cc.color(98, 78, 60))
                }, t.prototype.SetMailReadState = function() {
                    var e = this._mailData.IsRead,
                        t = this._mailData.IsDraw;
                    this.Mask.active = !1, this.ReadBgMask.active = !1, e || t ? (this.NotReadLabel.node.parent.active = !1, this.HasReadLabel.node.parent.active = !0, this._IsMaiRead = !0, (this._mailData.IsDraw || 0 == this._mailData.Items.length) && (this.Mask.active = !0, this.ReadBgMask.active = !0)) : (this.NotReadLabel.node.parent.active = !0, this.HasReadLabel.node.parent.active = !1, this._IsMaiRead = !1)
                }, t.prototype.IsMailOutOfDate = function() {
                    return s.RpcComponent.Instance.ServerTime - this._mailData.Ts > this._mailData.Duration * c.Etc.DayDuration
                }, t.prototype.SetMailIconState = function() {
                    var e = this._mailData.Items.length > 0;
                    this.MailIconBottom.spriteFrame, this._IsMaiRead ? (e ? this.LoadMailIconSpriteByName("hasread_item") : this.LoadMailIconSpriteByName("hasread"), this.MailIconBottom.spriteFrame = this._mailIconAtlas.getSpriteFrame("bottom_green")) : (e ? this.LoadMailIconSpriteByName("hasnotred_item") : this.LoadMailIconSpriteByName("hasnotread"), this.MailIconBottom.spriteFrame = this._mailIconAtlas.getSpriteFrame("bottom_red"))
                }, t.prototype.LoadMailIconSpriteByName = function(e) {
                    var t = this._mailIconAtlas.getSpriteFrame(e);
                    this.MailIcon.spriteFrame = t
                }, t.prototype.SetMask = function(e) {
                    this.Mask.active = e, this.ReadBgMask.active = e
                }, t.prototype.SetRedDot = function(e) {
                    this.RedDot.active = e
                }, t.prototype.OnMailItemClick = function() {
                    this._mailData.IsRead ? d.UIManager.Instance.ShowUIPanel(p.PanelConfig.MailContent.Path, this._mailData) : this.RequestReadMail()
                }, t.prototype.RequestDeleteMail = function() {
                    var e = new a.Req_Mail_Delete;
                    e.Sids.push(this._mailData.Sid), s.RpcComponent.Instance.Call(e, this.ResponseDeleteMailSuccess.bind(this))
                }, t.prototype.ResponseDeleteMailSuccess = function() {
                    h.Game.EventDispatcher.Emit(f.EventKeys.EVENT_DELETE_MAIL_DATA, this._mailData.Sid)
                }, t.prototype.RequestReadMail = function() {
                    var e = new a.Req_Mail_Read;
                    e.Sids.push(this._mailData.Sid), l.EZLog.Log("\u8bfb\u4fe1"), this._oldMailData = this._mailData, s.RpcComponent.Instance.Call(e, this.ResponseReadMailSuccess.bind(this))
                }, t.prototype.ResponseReadMailSuccess = function() {
                    l.EZLog.Log("\u8bfb\u4fe1\u8bf7\u6c42\u8fd4\u56de\u6210\u529f"), this._mailData.IsRead = !0, this.SetMailReadState(), this.SetMailIconState(), 0 == this._mailData.Items.length && (this.SetRedDot(!1), h.Game.EventDispatcher.Emit(f.EventKeys.EVENT_SET_MAIL_REDDOT, this._mailData.Sid));
                    var e = this._oldMailData || this._mailData;
                    d.UIManager.Instance.ShowUIPanel(p.PanelConfig.MailContent.Path, e)
                }, t.prototype.Dispose = function() {}, i([_(cc.Label)], t.prototype, "MailTittle", void 0), i([_(cc.Sprite)], t.prototype, "MailIconBottom", void 0), i([_(cc.Sprite)], t.prototype, "MailIcon", void 0), i([_(cc.Label)], t.prototype, "NotReadLabel", void 0), i([_(cc.Label)], t.prototype, "HasReadLabel", void 0), i([_(cc.Label)], t.prototype, "ReceiveTimeLabel", void 0), i([_(cc.Node)], t.prototype, "Mask", void 0), i([_(cc.Node)], t.prototype, "ReadBgMask", void 0), i([_(cc.Node)], t.prototype, "RedDot", void 0), i([_(cc.Sprite)], t.prototype, "NoticeImage", void 0), i([_(g.default)], t.prototype, "CommonLongLabelRollComponent", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/CommonLongLabelRollComponent": "CommonLongLabelRollComponent"
    }],
    MailUIPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a115e4lt7NHOaw9SWyYXpI9", "MailUIPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/RpcComponent"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/MailItem"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../../Consts/Consts"),
            m = e("../../../Consts/Consts"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property;
        (function(e) {
            e[e.NormalMail = 0] = "NormalMail", e[e.ImportantMail = 1] = "ImportantMail", e[e.NoticeMail_2 = 2] = "NoticeMail_2", e[e.NoticeMail_3 = 3] = "NoticeMail_3", e[e.NoticeMail_4 = 4] = "NoticeMail_4"
        })(l || (l = {}));
        var v = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.MainTittle = null, t.MailTypeToggle = null, t.MailBoxEmpty = null, t.MailItemGrid = null, t.BtnDeleteHasRead = null, t.BtnReceiveAll = null, t.ToggleNormalRedDot = null, t.ToggleImportantRedDot = null, t.ToggleNoticeRedDot = null, t.ToggleNormalBgLabel = null, t.ToggleNormalMarkLabel = null, t.ToggleImportantBgLabel = null, t.ToggleImportMarkLabel = null, t.ToggleNoticeBgLabel = null, t.ToggleNoticeMarkLabel = null, t.BtnDeleteHasReadLabel = null, t.BtnReceiveAllLabel = null, t.BtnClose = null, t.MailAtlasPath = "MailPanel/mailpanel", t.MailItemPath = "MailPanel/MailItem", t._mailItemTable = null, t._currPageType = l.NormalMail, t._toggleNormal = null, t._toggleImportant = null, t._toggleNotice = null, t._mailItemPrefab = null, t._mailAtlas = null, t._normalMailNotReadCount = 0, t._importantMailNotReadCount = 0, t._noticeMailNotReadCount = 0, t._redDotMap = new Map, t._drawMailIndexList = null, t._deleteIndexList = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                h.Game.EventDispatcher.On(y.EventKeys.EVENT_SET_MAIL_REDDOT, this.UpdateReadDotMapData, this), h.Game.EventDispatcher.On(y.EventKeys.EVENT_DELETE_MAIL_DATA, this.OnMailDeleted, this), h.Game.EventDispatcher.On(g.GameEventIds.SpecialRedDotChange.Fmt(m.SpecialRedDotType.UnreadMail), this.OnMailAdd, this)
            }, t.prototype.onDisable = function() {
                h.Game.EventDispatcher.Off(y.EventKeys.EVENT_SET_MAIL_REDDOT), h.Game.EventDispatcher.Off(y.EventKeys.EVENT_DELETE_MAIL_DATA, this.OnMailDeleted, this), h.Game.EventDispatcher.Off(g.GameEventIds.SpecialRedDotChange.Fmt(m.SpecialRedDotType.UnreadMail), this.OnMailAdd)
            }, t.prototype.UpdateReadDotMapData = function(e, t, n, o) {
                void 0 === n && (n = !1), void 0 === o && (o = !1), this._redDotMap.set(e, !1), this.ReduceInnerRedDotCount(1), this.RefreshMailList()
            }, t.prototype.ReduceInnerRedDotCount = function(e) {
                this._currPageType == l.NormalMail ? (this._normalMailNotReadCount -= e, this._normalMailNotReadCount > 0 ? this.ToggleNormalRedDot.active = !0 : this.ToggleNormalRedDot.active = !1) : this._currPageType == l.ImportantMail ? (this._importantMailNotReadCount -= e, this._importantMailNotReadCount > 0 ? this.ToggleImportantRedDot.active = !0 : this.ToggleImportantRedDot.active = !1) : (this._noticeMailNotReadCount -= e, this._noticeMailNotReadCount > 0 ? this.ToggleNoticeRedDot.active = !0 : this.ToggleNoticeRedDot.active = !1)
            }, t.prototype.OnMailAdd = function() {
                this.node.active && this.RequestMailData()
            }, t.prototype.InitUI = function() {
                c.EZLog.Log("\u521d\u59cb\u5316UI"), this.BtnDeleteHasRead.node.on("click", this.OnBtnDeleteHasReadClick, this), this.BtnReceiveAll.node.on("click", this.OnBtnReceiveAllClick, this), this.BtnClose.node.on("click", this.OnBtnCloseClick, this), this._toggleNormal = this.MailTypeToggle.toggleItems[0].getComponent(cc.Toggle), this._toggleImportant = this.MailTypeToggle.toggleItems[1].getComponent(cc.Toggle), this._toggleNotice = this.MailTypeToggle.toggleItems[2].getComponent(cc.Toggle), this._toggleNormal.node.on("click", this.OnNormalMailSwitch, this), this._toggleImportant.node.on("click", this.OnImportantMailSwitch, this), this._toggleNotice.node.on("click", this.OnNoticeMailSwitch, this), this.SetStaticLocalText()
            }, t.prototype.OnBtnCloseClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.SelectMailData = function() {
                return this._currPageType == l.NormalMail ? this._normalMailData : this._currPageType == l.ImportantMail ? this._importantMailData : this._noticeMailData
            }, t.prototype.RequestDeleteHasReadMail = function() {
                this._deleteIndexList = [];
                for (var e = this.SelectMailData(), t = new d.Req_Mail_Delete, n = 0; n < e.length; n++) 0 == e[n].Items.length ? e[n].IsRead && (this._deleteIndexList.push(n), t.Sids.push(e[n].Sid)) : e[n].IsDraw && (this._deleteIndexList.push(n), t.Sids.push(e[n].Sid));
                0 != this._deleteIndexList.length ? u.RpcComponent.Instance.Call(t, this.RequestDeleteHasReadMailSuccess.bind(this)) : p.UIUtlity.ShowFloatingHint("mail_tips_noMailCanDelete".ToUILocale())
            }, t.prototype.RequestDeleteHasReadMailSuccess = function() {
                c.EZLog.Log("\u6240\u6709\u5df2\u8bfb\u90ae\u4ef6\u5220\u9664\u6210\u529f");
                for (var e = this.SelectMailData(), t = this._deleteIndexList.length - 1; t >= 0; t--) e.splice(this._deleteIndexList[t], 1);
                this.RefreshMailList(), p.UIUtlity.ShowFloatingHint("mail_tips_deletesuccess".ToUILocale())
            }, t.prototype.RequestDrawAllMailReward = function() {
                this._drawMailIndexList = [];
                for (var e = this.SelectMailData(), t = new d.Req_Mail_DrawReward, n = 0; n < e.length; n++) e[n].IsDraw && e[n].IsRead || (this._drawMailIndexList.push(n), t.Sids.push(e[n].Sid));
                0 != this._drawMailIndexList.length ? (c.EZLog.Log("\u9886\u53d6\u5168\u90e8"), u.RpcComponent.Instance.Call(t, this.RequestDrawAllMailSuccess.bind(this))) : p.UIUtlity.ShowFloatingHint("mail_tips_noMailCanReceive".ToUILocale())
            }, t.prototype.RequestDrawAllMailSuccess = function(e) {
                c.EZLog.Log("\u5168\u90e8\u53ef\u9886\u53d6\u90ae\u4ef6\u9886\u53d6\u6210\u529f");
                for (var t = this.SelectMailData(), n = this._drawMailIndexList.length - 1; n >= 0; n--) t[this._drawMailIndexList[n]].IsDraw = !0, this._redDotMap.set(t[n].Sid, !1);
                this.ReduceInnerRedDotCount(this._drawMailIndexList.length), this.RefreshMailList(), e.Rewards && e.Rewards.length > 0 && p.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.GetMailCountByType = function(e) {
                for (var t = this.SelectMailData(), n = 0, o = 0; o < t.length; o++) e >= l.NoticeMail_2 && e <= l.NoticeMail_4 ? n++ : t[o].Type == e && n++;
                return n
            }, t.prototype.InitRedDot = function() {
                this._normalMailNotReadCount = 0, this._importantMailNotReadCount = 0, this._noticeMailNotReadCount = 0, this.ToggleNormalRedDot.active = !1, this.ToggleImportantRedDot.active = !1, this.ToggleNoticeRedDot.active = !1, this.ComputeRedDot(), this._normalMailNotReadCount && (this.ToggleNormalRedDot.active = !0), this._importantMailNotReadCount && (this.ToggleImportantRedDot.active = !0), this._noticeMailNotReadCount && (this.ToggleNoticeRedDot.active = !0)
            }, t.prototype.CalcRedDotByType = function() {
                var e;
                e = this._currPageType == l.NormalMail ? this._normalMailData : this._importantMailData;
                for (var t = 0; t < e.length; t++) 0 == e[t].Items.length ? e[t].IsRead ? this._redDotMap.set(e[t].Sid, !1) : (this._currPageType == l.NormalMail ? this._normalMailNotReadCount++ : this._importantMailNotReadCount++, this._redDotMap.set(e[t].Sid, !0)) : e[t].IsDraw ? this._redDotMap.set(e[t].Sid, !1) : (this._currPageType == l.NormalMail ? this._normalMailNotReadCount++ : this._importantMailNotReadCount++, this._redDotMap.set(e[t].Sid, !0))
            }, t.prototype.ComputeRedDot = function() {
                for (var e = [this._normalMailData, this._importantMailData, this._noticeMailData], t = [this._normalMailNotReadCount, this._importantMailNotReadCount, this._noticeMailNotReadCount], n = 0; n < e.length; n++)
                    for (var o = e[n], r = 0; r < o.length; r++) 0 == o[r].Items.length ? (this._redDotMap.set(o[r].Sid, !o[r].IsRead), o[r].IsRead || t[n]++) : (this._redDotMap.set(o[r].Sid, !o[r].IsDraw), o[r].IsDraw || t[n]++);
                this._normalMailNotReadCount = t[0], this._importantMailNotReadCount = t[1], this._noticeMailNotReadCount = t[2]
            }, t.prototype.SetStaticLocalText = function() {
                this.MainTittle.string = "mail_mainTittle".ToUILocale(), this.ToggleNormalBgLabel.string = "mail_normalType".ToUILocale(), this.ToggleNormalMarkLabel.string = "mail_normalType".ToUILocale(), this.ToggleImportantBgLabel.string = "mail_importantType".ToUILocale(), this.ToggleImportMarkLabel.string = "mail_importantType".ToUILocale(), this.ToggleNoticeBgLabel.string = "mial_noticeType".ToUILocale(), this.ToggleNoticeMarkLabel.string = "mial_noticeType".ToUILocale(), this.BtnDeleteHasReadLabel.string = "mail_deleteHasRead".ToUILocale(), this.BtnReceiveAllLabel.string = "mail_receiveAndRead_all".ToUILocale()
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this), t || this.RequestMailData()
            }, t.prototype.BindRedDotUI = function() {}, t.prototype.RequestMailData = function() {
                var e = new d.Req_Mail_GetMailList;
                u.RpcComponent.Instance.Call(e, this.ResponseMailDataSuccess.bind(this))
            }, t.prototype.ResponseMailDataSuccess = function(e) {
                c.EZLog.Log("\u90ae\u4ef6\u6570\u91cf---\x3e" + e.Data.length), this.ReloadMailData(e.Data), this.InitRedDot(), this.RefreshMailList()
            }, t.prototype.ResetPanelState = function() {
                this._currPageType = l.NormalMail, this.ResetMailTypeToggle()
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(this.MailAtlasPath, cc.SpriteAtlas), n = this.LoadDynamicAsset(this.MailItemPath), [4, Promise.all([t, n]).then(function(e) {
                                    o._mailAtlas = e[0], o._mailItemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitData = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return e.prototype.InitData.call(this), [2]
                    })
                })
            }, t.prototype.ReloadMailData = function(e) {
                for (var t in this._normalMailData = [], this._importantMailData = [], this._noticeMailData = [], e) e[t].IsDraw && (e[t].IsRead = !0), e[t].Type == l.NormalMail ? this._normalMailData.push(e[t]) : e[t].Type == l.ImportantMail ? this._importantMailData.push(e[t]) : e[t].Type >= l.NoticeMail_2 && e[t].Type <= l.NoticeMail_4 && this._noticeMailData.push(e[t]);
                c.EZLog.Log("\u91cd\u8981\u90ae\u4ef6\u6570\u91cf---\x3e" + this._importantMailData.length)
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this)
            }, t.prototype.ResetMailTypeToggle = function() {
                this._toggleNormal.isChecked = !0, this.ShowBottomBtn(!0)
            }, t.prototype.ShowBottomBtn = function(e) {
                this.BtnDeleteHasRead.node.active = e, this.BtnReceiveAll.node.active = e
            }, t.prototype.SortMailData = function(e) {
                e.sort(function(e, t) {
                    return e.IsRead && !t.IsRead ? 1 : !e.IsRead && t.IsRead ? -1 : e.Ts < t.Ts ? 1 : e.Ts > t.Ts ? -1 : 0
                })
            }, t.prototype.RefreshMailList = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function() {
                        for (e = this.SelectMailData(), null == this._mailItemTable && (this._mailItemTable = []), this.SortMailData(e), t = this.GetMailCountByType(this._currPageType), c.EZLog.Log("\u90ae\u4ef6\u6570\u91cf----\x3e" + t), c.EZLog.Log("\u90ae\u4ef6   ----\x3e", e), t > 0 ? this.MailBoxEmpty.node.active = !1 : (this.MailBoxEmpty.node.active = !0, this.MailBoxEmpty.string = this._currPageType != l.NoticeMail_2 ? "mail_empty".ToUILocale() : "mail_notice_empty".ToUILocale()), n = 0; n < this._mailItemTable.length; n++) this._mailItemTable[n].node.active = !1;
                        return this.LoadMailItem(e, t), [2]
                    })
                })
            }, t.prototype.LoadMailItem = function(e, t) {
                for (var n = 0; n < t; n++) {
                    if (null == this._mailItemTable[n]) {
                        var o = cc.instantiate(this._mailItemPrefab);
                        o.parent = this.MailItemGrid, this._mailItemTable[n] = o.getComponent(f.default)
                    }
                    this._mailItemTable[n].node.active = !0, this._mailItemTable[n].Init(e[n], this._mailAtlas), this._mailItemTable[n].SetRedDot(this._redDotMap.get(e[n].Sid))
                }
            }, t.prototype.OnBtnDeleteHasReadClick = function() {
                c.EZLog.Log("\u5220\u9664\u6240\u6709\u5df2\u8bfb\u90ae\u4ef6"), this.RequestDeleteHasReadMail()
            }, t.prototype.OnBtnReceiveAllClick = function() {
                c.EZLog.Log("\u4e00\u4ef6\u9886\u53d6\u6240\u6709\u90ae\u4ef6"), this.RequestDrawAllMailReward()
            }, t.prototype.OnNormalMailSwitch = function() {
                this._currPageType != l.NormalMail && (this._currPageType = l.NormalMail, c.EZLog.Log("\u5207\u6362\u5230\u666e\u901a\u90ae\u4ef6"), this.BtnDeleteHasRead.node.active = !0, this.BtnReceiveAll.node.active = !0, this.RefreshMailList())
            }, t.prototype.OnImportantMailSwitch = function() {
                this._currPageType != l.ImportantMail && (this._currPageType = l.ImportantMail, c.EZLog.Log("\u5207\u6362\u5230\u91cd\u8981\u90ae\u4ef6"), this.BtnDeleteHasRead.node.active = !1, this.BtnReceiveAll.node.active = !1, this.RefreshMailList())
            }, t.prototype.OnNoticeMailSwitch = function() {
                this._currPageType != l.NoticeMail_2 && (this._currPageType = l.NoticeMail_2, this.BtnDeleteHasRead.node.active = !1, this.BtnReceiveAll.node.active = !0, this.RefreshMailList())
            }, t.prototype.OnMailDeleted = function(e) {
                var t = this.SelectMailData(),
                    n = t.findIndex(function(t) {
                        return t.Sid == e
                    });
                n > -1 && (t.splice(n, 1), this.RefreshMailList())
            }, t.prototype.Dispose = function() {
                e.prototype.Dispose.call(this)
            }, i([C(cc.Label)], t.prototype, "MainTittle", void 0), i([C(cc.ToggleContainer)], t.prototype, "MailTypeToggle", void 0), i([C(cc.Label)], t.prototype, "MailBoxEmpty", void 0), i([C(cc.Node)], t.prototype, "MailItemGrid", void 0), i([C(cc.Button)], t.prototype, "BtnDeleteHasRead", void 0), i([C(cc.Button)], t.prototype, "BtnReceiveAll", void 0), i([C(cc.Node)], t.prototype, "ToggleNormalRedDot", void 0), i([C(cc.Node)], t.prototype, "ToggleImportantRedDot", void 0), i([C(cc.Node)], t.prototype, "ToggleNoticeRedDot", void 0), i([C(cc.Label)], t.prototype, "ToggleNormalBgLabel", void 0), i([C(cc.Label)], t.prototype, "ToggleNormalMarkLabel", void 0), i([C(cc.Label)], t.prototype, "ToggleImportantBgLabel", void 0), i([C(cc.Label)], t.prototype, "ToggleImportMarkLabel", void 0), i([C(cc.Label)], t.prototype, "ToggleNoticeBgLabel", void 0), i([C(cc.Label)], t.prototype, "ToggleNoticeMarkLabel", void 0), i([C(cc.Label)], t.prototype, "BtnDeleteHasReadLabel", void 0), i([C(cc.Label)], t.prototype, "BtnReceiveAllLabel", void 0), i([C(cc.Button)], t.prototype, "BtnClose", void 0), i([_], t)
        }(h.BaseUIFullScreenPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/MailItem": "MailItem"
    }],
    MainSceneAngelCardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a0a4dVAR3NL/KkXIXWr/kR5", "MainSceneAngelCardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Auxiliary/UIUtlity"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Auxiliary/EventKeys"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Icon = null, t.Border = null, t.LockNode = null, t.SelectNode = null, t.InUseNode = null, t.InUseLabel = null, t.TagNew = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.InUseLabel.string = "in_use".ToUILocale()
                }, t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.CheckItemSelected, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnAngelCardItemClick, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.CheckItemSelected, this), this.node.off(cc.Node.EventType.TOUCH_END, this.OnAngelCardItemClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._angelAvatarConfig = u.ConfigDataComponent.Instance.GetConfigById(c.AngelGodAvatar_Config, e);
                    var i = u.DataCenter.Instance.GetDataById(h.UserAngel_Model, this._angelAvatarConfig.Angel);
                    i && i.StarLevel >= t ? this.LockNode.active = !1 : this.LockNode.active = !0, this.SelectNode.active = n, this.InUseNode.active = o, this.TagNew.node.active = r && !this.LockNode.active, this.SetAngelBorderAndBg(), this.SetIcon()
                }, t.prototype.SetAngelBorderAndBg = function() {
                    var e = u.ConfigDataComponent.Instance.GetConfigById(c.AngelBase_Config, this._angelAvatarConfig.Angel).Quality,
                        t = "card_border_" + (e = e > l.UIUtlity.Max_Quality_Level ? l.UIUtlity.Max_Quality_Level : e),
                        n = "card_bg_" + e,
                        o = l.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(t),
                        r = l.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(n);
                    this.Border.spriteFrame = o, this.Bg.spriteFrame = r
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, p.AssetsManager.Instance.LoadAsset(d.BundlePath.AngelCardIcon + "/" + this._angelAvatarConfig.AngelCard, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._loadedAssets.push(e), this.Icon.spriteFrame = e, [2]) : (p.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.OnAngelCardItemClick = function() {
                    this.TagNew.node.active = !1, this.SelectNode.active || (this.SelectNode.active = !0, p.Game.EventDispatcher.Emit(f.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this._angelAvatarConfig.Id, this.LockNode.active))
                }, t.prototype.CheckItemSelected = function(e) {
                    this.SelectNode.active = e == this._angelAvatarConfig.Id
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) p.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([m(cc.Sprite)], t.prototype, "Bg", void 0), i([m(cc.Sprite)], t.prototype, "Icon", void 0), i([m(cc.Sprite)], t.prototype, "Border", void 0), i([m(cc.Node)], t.prototype, "LockNode", void 0), i([m(cc.Node)], t.prototype, "SelectNode", void 0), i([m(cc.Node)], t.prototype, "InUseNode", void 0), i([m(cc.Label)], t.prototype, "InUseLabel", void 0), i([m(cc.Sprite)], t.prototype, "TagNew", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    MainSceneCustomItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "24ff5YGDKFJmJz2v3vo58xX", "MainSceneCustomItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Components/Components"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.SelectSprite = null, t.InUseNode = null, t.InUseLabel = null, t.TagNew = null, t.LockNode = null, t._configId = 0, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.InUseLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale()
                }, t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.CheckItemSelected, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnItemClicked, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnItemClicked, this), u.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.CheckItemSelected, this)
                }, t.prototype.onDestroy = function() {
                    this.UnloadAsset()
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    switch (this._configId != e && this.UnloadAsset(), this._configId = e, this._itemType = t, this.SelectSprite.node.active = n, this.InUseNode.active = o, t) {
                        case p.CustomizeMainSceneType.Personal:
                            this.LoadSpriteFrame("HeroStaticImage/" + this._configId);
                            var a = f.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, i),
                                s = d.default.GetPersonalRequiredStar(a, e),
                                u = f.DataCenter.Instance.GetDataById(c.HeroInfo_Model, i);
                            u && u.PersonalityStar >= s ? this.LockNode.active = !1 : this.LockNode.active = !0;
                            break;
                        case p.CustomizeMainSceneType.Scene:
                            var h = f.ConfigDataComponent.Instance.GetConfigById(l.ItemMainSceneBackground_Config, this._configId);
                            this.LoadSpriteFrame("CustomizeMainScenePanel/Png/SceneBg/" + h.BackgroundPicture), this.Icon.node.destroyAllChildren(), h.Animation && this.LoadAnimation(h.Animation), d.default.GetMainSceneLockState(this._configId) ? this.LockNode.active = !0 : this.LockNode.active = !1;
                            break;
                        case p.CustomizeMainSceneType.Angel:
                            this.LockNode.active = !1
                    }
                    this.TagNew.node.active = r && !this.LockNode.active
                }, t.prototype.LoadSpriteFrame = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, u.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._loadedAssets.push(t), this.Icon.spriteFrame = t, [2]) : (u.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.LoadAnimation = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, u.AssetsManager.Instance.LoadAsset("ActivitySpine/" + e + "_Prefab", cc.Prefab)];
                                case 1:
                                    return t = o.sent(), this.isValid ? (this._loadedAssets.push(t), (n = cc.instantiate(t)).y = 0, this.Icon.node.addChild(n), n.scale = this.Icon.node.width / 1080, [2]) : (u.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.OnItemClicked = function() {
                    this.TagNew.node.active = !1, this.SelectSprite.node.active || (this.SelectSprite.node.active = !0, u.Game.EventDispatcher.Emit(h.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this._configId, this.LockNode.active))
                }, t.prototype.CheckItemSelected = function(e) {
                    this.SelectSprite.node.active = e == this._configId
                }, t.prototype.UnloadAsset = function() {
                    this._loadedAssets.length > 0 && (this._loadedAssets.forEach(function(e) {
                        e && u.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssets = [])
                }, i([m(cc.Sprite)], t.prototype, "Icon", void 0), i([m(cc.Sprite)], t.prototype, "SelectSprite", void 0), i([m(cc.Node)], t.prototype, "InUseNode", void 0), i([m(cc.Label)], t.prototype, "InUseLabel", void 0), i([m(cc.Sprite)], t.prototype, "TagNew", void 0), i([m(cc.Node)], t.prototype, "LockNode", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components"
    }],
    MainSceneFunctionItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2c4abOwvpNFAq5pQNkw5tln", "MainSceneFunctionItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Components/Components"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../Consts/Consts"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Auxiliary/GuideManager"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../../Consts/Consts"),
            I = e("../../Auxiliary/ModuleGuideManager"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GameModuleId = 0, t.PanelId = 0, t.PanelParams = -1, t.LocaleKey = "", t.Bg = null, t.Label = null, t.LabelOutline = null, t.Lock = null, t._touchMoveDelta = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
                }, t.prototype.Init = function() {
                    this._isInitial || (this._isInitial = !0, this.node.on(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this.Label.string = this.LocaleKey.ToUILocale()), this.ConfigModuleState(), this.ShowGuide()
                }, t.prototype.ConfigModuleState = function() {
                    if (this.RemoveEvent(), this.GameModuleId > 0) {
                        var e = c.default.Instance.IsGameModuleUnlock(this.GameModuleId);
                        this._unlock = e[0], this._unlockInfo = e[1]
                    } else this._unlock = !0;
                    this._unlock ? (this.Bg.spriteFrame = p.UIUtlity.COMMON_ATLAS5.getSpriteFrame("functionBg"), this.Label.node.color = cc.color(255, 255, 255), this.LabelOutline.color = cc.color(104, 76, 27), this.Lock.active = !1) : (this.Bg.spriteFrame = p.UIUtlity.COMMON_ATLAS5.getSpriteFrame("functionBg_dark"), this.Label.node.color = cc.color(153, 153, 153), this.LabelOutline.color = cc.color(32, 36, 52), this.Lock.active = !0, this.AddEvent())
                }, t.prototype.AddEvent = function() {
                    l.Game.EventDispatcher.On(d.GameEventIds.ChangeDataDetail.Fmt(h.GameModule_Model._n_), this.OnGameModuleStateChange, this)
                }, t.prototype.RemoveEvent = function() {
                    l.Game.EventDispatcher.Off(d.GameEventIds.ChangeDataDetail.Fmt(h.GameModule_Model._n_), this.OnGameModuleStateChange, this)
                }, t.prototype.OnGameModuleStateChange = function(e) {
                    for (var t in e) e[t].Sid == this.GameModuleId && this.ConfigModuleState()
                }, t.prototype.OnTouchMove = function(e) {
                    this._touchMoveDelta = e.getDeltaX()
                }, t.prototype.OnTouchEnd = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return Math.abs(this._touchMoveDelta) >= 5 ? (this._touchMoveDelta = 0, [2]) : this._unlock ? this.PanelId != y.PanelConfig.AllianceBaseMainPanel.Id ? [3, 2] : [4, c.default.ShowAlliancePanelByGuide()] : [3, 7];
                                case 1:
                                    return t.sent(), [3, 6];
                                case 2:
                                    return this.PanelParams >= 0 ? [4, p.UIUtlity.ShowPanelByIdByGuide(this.PanelId, this.PanelParams)] : [3, 4];
                                case 3:
                                    return t.sent(), [3, 6];
                                case 4:
                                    return [4, p.UIUtlity.ShowPanelByIdByGuide(this.PanelId)];
                                case 5:
                                    t.sent(), t.label = 6;
                                case 6:
                                    switch (this.GameModuleId) {
                                        case m.GameModuleType.ItemShop:
                                        case m.GameModuleType.SummonCard:
                                            I.default.instance.CheckNeedRequestGameModule(this.GameModuleId) && ((e = new h.Req_Player_CompleteGameModuleGuide).Id = this.GameModuleId, u.RpcComponent.Instance.Call(e, function() {
                                                l.Game.EventDispatcher.Emit(g.EventKeys.EVENT_REFRESH_GUIDE_MODULE)
                                            }))
                                    }
                                    return [3, 8];
                                case 7:
                                    p.UIUtlity.ShowFloatingHint(this._unlockInfo), t.label = 8;
                                case 8:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.ShowGuide = function() {
                    if (f.default.Instance.IsInGuide && this.PanelId == y.PanelConfig.SummonHeroPanel.Id && this.PanelParams < 0) switch (f.default.Instance.CurrentStep) {
                        case 2102:
                        case 9102:
                            f.default.Instance.ShowGuide(this.node)
                    }
                }, i([v], t.prototype, "GameModuleId", void 0), i([v], t.prototype, "PanelId", void 0), i([v], t.prototype, "PanelParams", void 0), i([v], t.prototype, "LocaleKey", void 0), i([v(cc.Sprite)], t.prototype, "Bg", void 0), i([v(cc.Label)], t.prototype, "Label", void 0), i([v(cc.LabelOutline)], t.prototype, "LabelOutline", void 0), i([v(cc.Node)], t.prototype, "Lock", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    MainSceneHeroHeaderItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d1cb8TjOwhKp6i6A0dZ2uYF", "MainSceneHeroHeaderItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = e("../../Components/DataCenter"),
            g = e("../Auxiliary/UIUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Background = null, t.Icon = null, t.Border = null, t.ElementIcon = null, t.SelectSprite = null, t.HeroNameLabel = null, t.IsInUseNode = null, t.IsInUseLabel = null, t.TagNew = null, t.LockNode = null, t._loadedAssets = [], t._configId = 0, t._quality = 0, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.IsInUseLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnItemClicked, this), u.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.CheckItemSelected, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnItemClicked, this), u.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.CheckItemSelected, this)
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets.length > 0 && (this._loadedAssets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssets = [])
                }, t.prototype.Init = function(e, t, n, o) {
                    this._configId = e;
                    var r = f.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, e);
                    r ? (u.EZLog.Log("Hero Id: " + e), this.SetHeroView(r)) : (u.EZLog.Log("Hero Skin Id: " + e), this.SetHeroSkinView()), this.SelectSprite.node.active = t, this.IsInUseNode.active = n, this.TagNew.node.active = o && !this.LockNode.active
                }, t.prototype.SetHeroView = function(e) {
                    this._quality = e.StarLevel > g.UIUtlity.Max_Quality_Level ? g.UIUtlity.Max_Quality_Level : e.StarLevel, this.SetBackgroundAndBorder(), this.SetIcon(e.Id), this.SetHeroElementIcon(e.ElementType), this.SetName(!1);
                    var t = y.DataCenter.Instance.GetDataById(c.HeroInfo_Model, e.Id);
                    this.LockNode.active = null == t
                }, t.prototype.SetHeroSkinView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function() {
                            return e = f.ConfigDataComponent.Instance.GetConfigById(l.HeroSkin_Config, this._configId), t = f.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, e.HeroId), this._quality = t.StarLevel > g.UIUtlity.Max_Quality_Level ? g.UIUtlity.Max_Quality_Level : t.StarLevel, this.SetBackgroundAndBorder(), this.SetIcon(e.Id), this.SetHeroElementIcon(t.ElementType), this.SetName(!0), n = y.DataCenter.Instance.GetDataById(c.HeroSkin_Model, this._configId), this.LockNode.active = null == n, [2]
                        })
                    })
                }, t.prototype.SetBackgroundAndBorder = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function() {
                            return e = "card_border_" + this._quality, this.Border.spriteFrame = g.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(e), t = "card_bg_" + this._quality, n = g.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(t), this.Background.spriteFrame = n, [2]
                        })
                    })
                }, t.prototype.SetIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, u.AssetsManager.Instance.LoadAsset(h.BundlePath.HeroCardIcon + "/" + e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._loadedAssets.push(t), this.Icon.spriteFrame = t, [2]) : (u.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetHeroElementIcon = function(e) {
                    this.ElementIcon.node.active = !0;
                    var t = g.UIUtlity.GetHeroElementIcon(e);
                    this.ElementIcon.spriteFrame = t
                }, t.prototype.SetName = function(e) {
                    this.HeroNameLabel.string = e ? this._configId.ToSkinName() : this._configId.ToHeroTitle(), this.HeroNameLabel.string = p.default.GetAbridgeString(this.HeroNameLabel, this.HeroNameLabel.string, 185)
                }, t.prototype.OnItemClicked = function() {
                    this.TagNew.node.active = !1, this.SelectSprite.node.active || (this.SelectSprite.node.active = !0, u.Game.EventDispatcher.Emit(d.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this._configId, this.LockNode.active))
                }, t.prototype.CheckItemSelected = function(e) {
                    this.SelectSprite.node.active = e == this._configId
                }, i([_(cc.Sprite)], t.prototype, "Background", void 0), i([_(cc.Sprite)], t.prototype, "Icon", void 0), i([_(cc.Sprite)], t.prototype, "Border", void 0), i([_(cc.Sprite)], t.prototype, "ElementIcon", void 0), i([_(cc.Sprite)], t.prototype, "SelectSprite", void 0), i([_(cc.Label)], t.prototype, "HeroNameLabel", void 0), i([_(cc.Node)], t.prototype, "IsInUseNode", void 0), i([_(cc.Label)], t.prototype, "IsInUseLabel", void 0), i([_(cc.Sprite)], t.prototype, "TagNew", void 0), i([_(cc.Node)], t.prototype, "LockNode", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    MainSceneNewPersonalityItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "11200IQ9/BPwZYf+GZ5zuIX", "MainSceneNewPersonalityItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.LockNode = null, t.SelectNode = null, t.InUseNode = null, t.InUseLabel = null, t.TagNew = null, t.SpecialNode = null, t.SpecialLabel = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.SpecialLabel.string = "specailTag".ToUILocale(), this.InUseLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale(), this.node.on(cc.Node.EventType.TOUCH_END, this.OnNewPersonalityItemClick, this)
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.CheckItemSelected, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this.CheckItemSelected, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._data = e, this.LockNode.active = !e.IsUnLock, this.SelectNode.active = t, this.InUseNode.active = n, this.TagNew.node.active = o && !this.LockNode.active, this.SpecialNode.active = e.NewPersonalityConfig.Id != e.BaseConfig.PersonalityIds[0], this._saveId = 100 * this._data.NewPersonalityConfig.Id + this._data.StateIndex + 1, this.SetIcon()
                }, t.prototype.SetIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.ClearNewPersonalitySprite(), [4, c.AssetsManager.Instance.LoadAsset("NewPersonalityPanel/NewPersonalityPNG/Custom_" + this._saveId, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (e.name == "NewPersonalityPanel/NewPersonalityPNG/Custom_" + this._saveId ? (this._newPersonalitySprite = e, this.Icon.spriteFrame = e) : c.AssetsManager.Instance.UnloadAsset(e), [2]) : (c.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.ClearNewPersonalitySprite = function() {
                    this._newPersonalitySprite && c.AssetsManager.Instance.UnloadAsset(this._newPersonalitySprite), this._newPersonalitySprite = null
                }, t.prototype.OnNewPersonalityItemClick = function() {
                    if (this.TagNew.node.active = !1, !this.SelectNode.active) {
                        this.SelectNode.active = !0;
                        var e = l.DataCenter.Instance.GetDataById(u.NewPersonality_Model, this._data.BaseConfig.Id);
                        if (this._data.StateIndex > 0 && !this._data.IsUnLock)(t = e && e.Map && !!e.Map[this._data.NewPersonalityConfig.Id]) ? d.UIUtlity.ShowFloatingHint("newPersonality_mainScene_hint".ToUILocale()) : d.UIUtlity.ShowFloatingHint("newPersonality_mainScene_hint1".ToUILocale());
                        else {
                            var t = e && e.Map && !!e.Map[this._data.NewPersonalityConfig.Id];
                            this._data.NewPersonalityConfig.Id == this._data.BaseConfig.PersonalityIds[0] ? t || d.UIUtlity.ShowFloatingHint("newPersonality_mainScene_hint1".ToUILocale()) : t || d.UIUtlity.ShowFloatingHint("newPersonality_mainScene_hint2".ToUILocale())
                        }
                        c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_CUSTOMIZE_SCENE_ITEM_CLICK, this._saveId, this.LockNode.active)
                    }
                }, t.prototype.CheckItemSelected = function(e) {
                    this.SelectNode.active = e == this._saveId
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) c.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this.ClearNewPersonalitySprite()
                }, i([y(cc.Sprite)], t.prototype, "Icon", void 0), i([y(cc.Node)], t.prototype, "LockNode", void 0), i([y(cc.Node)], t.prototype, "SelectNode", void 0), i([y(cc.Node)], t.prototype, "InUseNode", void 0), i([y(cc.Label)], t.prototype, "InUseLabel", void 0), i([y(cc.Sprite)], t.prototype, "TagNew", void 0), i([y(cc.Node)], t.prototype, "SpecialNode", void 0), i([y(cc.Label)], t.prototype, "SpecialLabel", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    MainScenePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d6b76KUN8BOz5UjaJ7xEvth", "MainScenePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../Consts/Consts"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/RpcComponent"),
            g = e("./MainSceneFunctionItem"),
            m = e("../../Components/DataCenter"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../../../SkillEditor/SkillEditorData"),
            C = e("../../Auxiliary/GuideManager"),
            v = e("../../../Consts/Consts"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../../Components/Components"),
            w = e("../../../../Proto/Static/RpcProto"),
            P = e("./GuideEntranceHint"),
            A = e("../../../InteractiveSpine/InteractiveSpineController"),
            T = e("../Components/GameUnlockFingerListener"),
            R = e("./NewPersonalityInfoPanel"),
            L = e("../Components/AllianceBossEntryBattleTipNode"),
            k = e("../../../Util/TimeUtil"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property;
        (function(e) {
            e[e.Day = 0] = "Day", e[e.Night = 1] = "Night"
        })(l || (l = {})),
        function(e) {
            e[e.StarTemple = 0] = "StarTemple", e[e.HeroPlace = 1] = "HeroPlace", e[e.Alliance = 2] = "Alliance", e[e.ShopUI = 3] = "ShopUI", e[e.Angel = 4] = "Angel", e[e.HolyFurnace = 5] = "HolyFurnace", e[e.Summon = 6] = "Summon", e[e.Magic = 7] = "Magic", e[e.Collection = 8] = "Collection"
        }(c || (c = {}));
        var B = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Normal, !1, !1), t.SceneNode = null, t.BackgroundSprite = null, t.MaskSprite = null, t.AnimationContainer = null, t.FunctionContainer = null, t.SkillEditorBtn = null, t.ChanceTestBtn = null, t.RequestTestBtn = null, t.CheckIconBtn = null, t.NewPersonalityeNode = null, t.TalkLabel = null, t.TalkNode = null, t.DayTime = 6, t.NightTime = 18, t._isCheckIcon = !1, t._moudleEnters = {}, t.GameUnlockSteps = {
                    0: [1, 17, 18, 19],
                    1: [4],
                    2: [27, 29],
                    3: [],
                    4: [3],
                    5: [],
                    6: [5],
                    7: [24, 25],
                    8: [2, 26]
                }, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.ChanceTestBtn.node.active = !1
            }, t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(b.EventKeys.EVENT_CHANGE_MAIN_SCENE_BUTTON_VISIBLE, this.ChangeFunctionContainerVisible, this), u.Game.EventDispatcher.On(b.EventKeys.EVENT_CUSTOMIZE_SCENE_CHANGED, this.OnCustomizeSceneChanged, this), u.Game.EventDispatcher.On(b.EventKeys.EVENT_PRIVILEGE_PAY, this.RefreshPetRedDot, this), u.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(w.GameModule_Model._n_), this.NewPalyerTaskGuide, this), u.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this), u.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(w.UserSimpleData_Model._n_), this.UserSimpleDataChange, this), u.Game.EventDispatcher.On(b.EventKeys.EVENT_NEWPERSONALITY_HIDE_MAINUI, this.SetFunctionContainerActive, this), u.Game.EventDispatcher.On(b.EventKeys.EVENT_IS_PLAYANIMATION_COMPLETED, this.OnNewPersoanlityHandleSuccess, this), u.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(w.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), u.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(w.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(b.EventKeys.EVENT_CHANGE_MAIN_SCENE_BUTTON_VISIBLE, this.ChangeFunctionContainerVisible), u.Game.EventDispatcher.Off(b.EventKeys.EVENT_CUSTOMIZE_SCENE_CHANGED, this.OnCustomizeSceneChanged), u.Game.EventDispatcher.Off(b.EventKeys.EVENT_PRIVILEGE_PAY, this.RefreshPetRedDot, this), u.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(w.GameModule_Model._n_), this.NewPalyerTaskGuide, this), u.Game.EventDispatcher.Off(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.AllianceId), this.SetAllianceCityWarEntry, this), u.Game.EventDispatcher.Off(p.GameEventIds.ChangeDataDetail.Fmt(w.UserSimpleData_Model._n_), this.UserSimpleDataChange, this), u.Game.EventDispatcher.Off(b.EventKeys.EVENT_NEWPERSONALITY_HIDE_MAINUI, this.SetFunctionContainerActive, this), u.Game.EventDispatcher.Off(b.EventKeys.EVENT_IS_PLAYANIMATION_COMPLETED, this.OnNewPersoanlityHandleSuccess, this), u.Game.EventDispatcher.Off(p.GameEventIds.AddDataDetail.Fmt(w.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), u.Game.EventDispatcher.Off(p.GameEventIds.RemoveDataDetail.Fmt(w.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), [4, this.SetMainSceneView()];
                            case 1:
                                return t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.SetEnterNodes(), u.UIManager.Instance.ShowUIPanel(f.PanelConfig.MainUIPanel.Path), this.ConfigGameModuleState(), this.BindReddot(), this.ChanceTestBtn.node.active = !1, this.ChanceTestBtn.node.off("click"), m.DataCenter.Instance.IsChanceTestUser && (this.ChanceTestBtn.node.active = !0, this.ChanceTestBtn.node.on("click", this.OnChanceTestBtnClick, this)), this.SkillEditorBtn.node.active = !1, this.SkillEditorBtn.node.off("click"), _.SkillEditorData.EnableSkillEditor && (this.SkillEditorBtn.node.active = !0, this.SkillEditorBtn.node.on("click", this.OnClickSkillEditorBtn, this)), this.RequestTestBtn.node.active = !1, this.RequestTestBtn.node.off("click"), _.SkillEditorData.EnableSkillEditor && (this.RequestTestBtn.node.active = !0, this.RequestTestBtn.node.on("click", this.OnClickRequestTestBtn, this)), this.CheckIconBtn.node.active = !1, this.CheckIconBtn.node.off("click"), _.SkillEditorData.EnableSkillEditor && (this.CheckIconBtn.node.active = !0, this.CheckIconBtn.node.on("click", this.OnClickCheckIconBtn, this)), this.NewPalyerTaskGuide(), this.SetAllianceCityWarEntry(), this.SetAllianceBossEntryTip(), this.ShowAllGameUnlockFinger(!1)
            }, t.prototype.SetEnterNodes = function() {
                for (var e = 0; e < this.FunctionContainer.children.length; e++) this._moudleEnters[e] = this.FunctionContainer.children[e]
            }, t.prototype.SetMainSceneView = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, c, u, p, f, y, g;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                if (this._selectedSceneIds = m.DataCenter.Instance.GetArrayData(v.UserDataKey.MainBackground), e = "MainSceneBg/MainSceneDefaultBg", t = "MainSceneBg/MainSceneDefaultMask", n = null, this.NewPersonalityeNode.active = !1, this.NewPersonalityeNode.destroyAllChildren(), this._interactiveSpineController = null, o = h.default.GetCurrentSelctedMainSceneInfo()) switch (i = o[0], this._currentBackgroundType = o[1], a = void 0, l = void 0, this._currentBackgroundType) {
                                    case v.CustomizeMainSceneType.Personal:
                                        a = S.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, v.LevelParamType.MainScenePersonalityNoBacgroundIds).Data, l = S.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, v.LevelParamType.MainScenePersonalityNoMaskIds).Data, n = "AdultPicture" + i + "/Avatar", a.indexOf(i) >= 0 && (e = null, t = null), -1 == l.indexOf(i) && (t = null);
                                        break;
                                    case v.CustomizeMainSceneType.Hero:
                                        a = S.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, v.LevelParamType.MainSceneHeroNoBacgroundIds).Data, l = S.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, v.LevelParamType.MainSceneHeroNoMaskIds).Data, (r = S.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, i)) ? n = r.UIAvatar + "/Avatar" : (c = S.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, i), n = c.UIAvatar + "/Avatar"), a.indexOf(i) >= 0 && (e = null, t = null), -1 == l.indexOf(i) && (t = null);
                                        break;
                                    case v.CustomizeMainSceneType.Scene:
                                        g = S.ConfigDataComponent.Instance.GetConfigById(d.ItemMainSceneBackground_Config, i), e = "MainSceneBg/" + g.BackgroundPicture, t = null, n = g.Animation ? "ActivitySpine/" + g.Animation + "_Prefab" : null;
                                        break;
                                    case v.CustomizeMainSceneType.Angel:
                                        u = S.ConfigDataComponent.Instance.GetConfigById(d.AngelGodAvatar_Config, i), n = u.UIAvatar + "/Avatar", t = null;
                                        break;
                                    case v.CustomizeMainSceneType.NewPersonality:
                                        p = i % 100, f = Math.floor(i / 100), y = S.ConfigDataComponent.Instance.GetConfigById(d.NewPersonality_Config, f), this.LoadMainSceneNewPersonality(y, p)
                                } else g = S.ConfigDataComponent.Instance.GetArrayConfig(d.ItemMainSceneBackground_Config)[0], e = "MainSceneBg/" + g.BackgroundPicture, n = g.Animation ? "ActivitySpine/" + g.Animation + "_Prefab" : null, t = null;
                                return this._currentBackgroundType == v.CustomizeMainSceneType.NewPersonality ? [3, 2] : [4, this.LoadMainScendView(e, t, n, r)];
                            case 1:
                                s.sent(), s.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.LoadMainScendView = function(e, t, n, o) {
                return a(this, void 0, void 0, function() {
                    var r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return r = [], e && e != this._lastBackgroundPath ? (this._lastBackground && u.AssetsManager.Instance.UnloadAsset(this._lastBackground), r.push(u.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame))) : e || this._lastBackground && u.AssetsManager.Instance.UnloadAsset(this._lastBackground), t && t != this._lastMaskPath ? (this._lastMask && u.AssetsManager.Instance.UnloadAsset(this._lastMask), r.push(u.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame))) : t || this._lastMask && u.AssetsManager.Instance.UnloadAsset(this._lastMask), n && n != this._lastAnimationPath ? (this._lastAnimation && u.AssetsManager.Instance.UnloadAsset(this._lastAnimation), r.push(u.AssetsManager.Instance.LoadAsset(n, cc.Prefab))) : n || this._lastAnimation && u.AssetsManager.Instance.UnloadAsset(this._lastAnimation), [4, Promise.all(r).then(function(r) {
                                    if (e && e != i._lastBackgroundPath) {
                                        if (i._lastBackgroundPath = e, i._lastBackground = r.shift(), !i.isValid) return void u.AssetsManager.Instance.UnloadAsset(i._lastBackground);
                                        i.BackgroundSprite.spriteFrame = i._lastBackground, i.BackgroundSprite.node.active = !0
                                    } else e || (i.BackgroundSprite.node.active = !1);
                                    if (t && t != i._lastMaskPath) {
                                        if (i._lastMaskPath = t, i._lastMask = r.shift(), !i.isValid) return void u.AssetsManager.Instance.UnloadAsset(i._lastMask);
                                        i.MaskSprite.spriteFrame = i._lastMask, i.MaskSprite.node.active = !0
                                    } else t || (i.MaskSprite.node.active = !1);
                                    var a = null;
                                    if (n && n != i._lastAnimationPath) {
                                        if (i._lastAnimationPath = n, i._lastAnimation = r.shift(), !i.isValid) return void u.AssetsManager.Instance.UnloadAsset(i._lastAnimation);
                                        i.AnimationContainer.y = 380, i.AnimationContainer.destroyAllChildren(), a = i._lastAnimation;
                                        var s = cc.instantiate(a),
                                            l = s.getComponent(sp.Skeleton);
                                        if (s.setParent(i.AnimationContainer), i._currentBackgroundType == v.CustomizeMainSceneType.Hero && o) {
                                            var c = m.DataCenter.Instance.GetDataById(w.HeroInfo_Model, o.Id),
                                                p = c && c.MaxStar ? c.MaxStar : o.StarLevel;
                                            h.default.Instance.SetHeroAvatarSkin(s, o.Id, p)
                                        }
                                        i._currentBackgroundType == v.CustomizeMainSceneType.Scene ? s.y = -380 : l.setAnimation(0, v.SkillAnimationType.Standby, !0), i.AnimationContainer.active = !0
                                    } else n || (i.AnimationContainer.active = !1)
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.LoadMainSceneNewPersonality = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this.NewPersonalityeNode.active = !0, this.BackgroundSprite.node.active = !1, this.MaskSprite.node.active = !1, this.AnimationContainer.active = !1, this._lastMaskPath = "", this._lastAnimationPath = "", this._lastBackgroundPath = "", this._lastMask && u.AssetsManager.Instance.UnloadAsset(this._lastMask), this._lastBackground && u.AssetsManager.Instance.UnloadAsset(this._lastBackground), this._lastAnimation && u.AssetsManager.Instance.UnloadAsset(this._lastAnimation), this._interactiveSpinePrefab ? [3, 2] : [4, this.LoadDynamicAsset("ISCommonEditor/InteractiveSpineController", cc.Prefab)];
                            case 1:
                                if (n = r.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(n), [2];
                                this._interactiveSpinePrefab = n, r.label = 2;
                            case 2:
                                return this._interactiveSpineController || ((o = cc.instantiate(this._interactiveSpinePrefab)).parent = this.NewPersonalityeNode, this._interactiveSpineController = o.getComponent(A.default)), this._interactiveSpineController.Init(e.AvatarId, this.NewPersonalityeNode, {
                                    AvatarState: t,
                                    EventId: A.InteractiveSpineEventType.MainScene
                                }), this._interactiveSpineController.SetTalkLabel(this.TalkLabel, this.TalkNode), this._interactiveSpineController.SetCustomConditionCallback(this.CheckMotionIsUnlock.bind(this)), [2]
                        }
                    })
                })
            }, t.prototype.CheckMotionIsUnlock = function(e, t) {
                var n = m.DataCenter.Instance.GetArrayData(v.UserDataKey.MainBackground);
                if (!(n[v.CustomizeMainSceneType.NewPersonality] > 0)) return !1;
                var o = Math.floor(n[v.CustomizeMainSceneType.NewPersonality] / 100);
                if (R.default.GetNewPersoanlityIdByAvatarId(e).Id != o) return !1;
                var r = this.GetNewPersonalityBaseConfig(o),
                    i = m.DataCenter.Instance.GetDataById(w.NewPersonality_Model, r.Id),
                    a = r.PersonalityIds.indexOf(o),
                    s = R.default.GetActionConfigByMotion(e, t);
                if (a > 0 && !(i && i.Map && i.Map[o])) return !1;
                if (!s || !s.Condition || !s.Condition.length) return !0;
                for (var l = i && i.Level ? i.Level : 0, c = !0, u = 0; u < s.Condition.length; u++) {
                    var p = s.Condition[u],
                        d = p.Items[0],
                        h = p.Items[1];
                    switch (d) {
                        case 1:
                            l < h && (c = !1)
                    }
                }
                return !!c
            }, t.prototype.ConfigGameModuleState = function() {
                var e = h.default.Instance.IsGameModuleOpen(p.GameModuleType.MainUISimplifyMode),
                    t = h.default.Instance.IsGameModuleUnlock(p.GameModuleType.MainUISimplifyMode)[0];
                e && t && (this.FunctionContainer.active = !h.default.GetFunctionSkipState(p.FunctionSkipKey.MainUISimplifyMode));
                for (var n = 0; n < this.FunctionContainer.childrenCount; n++) {
                    var o = this.FunctionContainer.children[n],
                        r = o.getComponent(g.default);
                    o.active && r.Init()
                }
            }, t.prototype.BindReddot = function() {
                I.RedDotManager.Instance.Bind(this.FunctionContainer.children[0], I.RedDotManager.Instance.RedDot.StarTempleBtnNode, -50, -22), I.RedDotManager.Instance.Bind(this.FunctionContainer.children[1], I.RedDotManager.Instance.RedDot.HeroPalaceBtnNode, -50, -22), I.RedDotManager.Instance.Bind(this.FunctionContainer.children[2], I.RedDotManager.Instance.RedDot.AllianceBtnNode, -50, -22), I.RedDotManager.Instance.Bind(this.FunctionContainer.children[3], I.RedDotManager.Instance.RedDot.ShopBtnNode, -50, -22), I.RedDotManager.Instance.Bind(this.FunctionContainer.children[5], I.RedDotManager.Instance.RedDot.FurnaceNode, -50, -22), I.RedDotManager.Instance.Bind(this.FunctionContainer.children[6], I.RedDotManager.Instance.RedDot.SummonQueenMainScene, -50, -22), I.RedDotManager.Instance.Bind(this.FunctionContainer.children[7], I.RedDotManager.Instance.RedDot.MagicResearchMainScene, -50, -22), I.RedDotManager.Instance.Bind(this.FunctionContainer.children[8], I.RedDotManager.Instance.RedDot.CollectionPavilionEntryNode, -50, -22), I.RedDotManager.Instance.Bind(this.FunctionContainer.children[4], I.RedDotManager.Instance.RedDot.AngelEntrance, -50, -22), this.RefreshPetRedDot()
            }, t.prototype.OnChanceTestBtnClick = function() {
                u.UIManager.Instance.ShowUIPanel(f.PanelConfig.ChanceTestPanel.Path)
            }, t.prototype.OnClickSkillEditorBtn = function() {
                return a(this, void 0, Promise, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                if (this._SkillEditorPanel) return [2];
                                n.label = 1;
                            case 1:
                                return n.trys.push([1, 3, , 4]), [4, u.AssetsManager.Instance.LoadAsset("SkillEditor/SkillEditorPanel")];
                            case 2:
                                return e = n.sent(), this._SkillEditorPanel = cc.instantiate(e), this._SkillEditorPanel.parent = cc.find("Canvas/SkillEditor"), this._SkillEditorPanel.scale = 1, this._SkillEditorPanel.position = cc.Vec3.ZERO, u.Game.EventDispatcher.Only(p.GameEventIds.SeCloseEditorPanel, this.OnSkillEditorClose, this), [3, 4];
                            case 3:
                                return t = n.sent(), cc.error(t), [3, 4];
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnClickRequestTestBtn = function() {
                u.UIManager.Instance.ShowUIPanel(f.PanelConfig.RequestTestPanel.Path)
            }, t.prototype.OnSkillEditorClose = function() {
                var e = this;
                u.Game.EventDispatcher.Off(p.GameEventIds.SeCloseEditorPanel), this._SkillEditorPanel && (this._SkillEditorPanel.active = !1, this.scheduleOnce(function() {
                    var t, n;
                    null === (t = e._SkillEditorPanel) || void 0 === t || t.removeFromParent(), null === (n = e._SkillEditorPanel) || void 0 === n || n.destroy(), e._SkillEditorPanel = null
                }, .1))
            }, t.prototype.OnClickCheckIconBtn = function() {
                var e = cc.find("Canvas/MouseRect");
                this.CheckIconBtn.node.parent = e, this._isCheckIcon ? this._lastPanelName = null : (this._isCheckIcon = !0, e.on(cc.Node.EventType.MOUSE_DOWN, this.OnMouseMove, this))
            }, t.prototype.OnMouseMove = function(e) {
                var t, n = cc.find("Canvas/UIROOT/Fixed"),
                    o = cc.find("Canvas/UIROOT/Normal");
                if (n.childrenCount > 1 ? t = n.children[n.childrenCount - 1] : o.childrenCount > 0 && (t = o.children[o.childrenCount - 1]), t) {
                    t.name != this._lastPanelName && (this._lastPanelName = t.name, this._iconNodes = [], this.SetAllIconNode(t, 0));
                    var r = e.getLocation(),
                        i = new cc.Rect(r.x - 5, r.y - 5, 10, 10);
                    this.CheckIcon(i)
                }
            }, t.prototype.SetAllIconNode = function(e, t) {
                for (var n = 0; n < e.childrenCount; n++) {
                    var o = e.children[n];
                    if (o.active) {
                        var r = o.getComponent(cc.Sprite);
                        r && r.spriteFrame && r.enabled && "redDot" != r.spriteFrame.name && (this._iconNodes[t] ? this._iconNodes[t].push(o) : this._iconNodes[t] = [o]), o.childrenCount > 0 && this.SetAllIconNode(o, t + 1)
                    }
                }
            }, t.prototype.CheckIcon = function(e) {
                if (this._iconNodes.length > 0)
                    for (var t = this._iconNodes.length - 1; t > 0; t--) {
                        var n = this._iconNodes[t];
                        if (n && n.length > 0)
                            for (var o = n.length - 1; o > 0; o--) {
                                var r = n[o];
                                if (r.getBoundingBoxToWorld().intersects(e)) {
                                    r.opacity = 100;
                                    var i = r.getComponent(cc.Sprite);
                                    return void u.EZLog.Error("\u56fe\u7247\u540d\u79f0\uff1a", i.spriteFrame.name)
                                }
                            }
                    }
            }, t.prototype.ChangeFunctionContainerVisible = function() {
                var e = h.default.Instance.IsGameModuleOpen(p.GameModuleType.MainUISimplifyMode),
                    t = h.default.Instance.IsGameModuleUnlock(p.GameModuleType.MainUISimplifyMode)[0];
                if (e && t) {
                    var n = h.default.GetFunctionSkipState(p.FunctionSkipKey.MainUISimplifyMode);
                    this.FunctionContainer.active = !n
                } else this.FunctionContainer.active = !this.FunctionContainer.active
            }, t.prototype.SetFunctionContainerActive = function(e) {
                this.FunctionContainer.active = e, this.ShowAllGameUnlockFinger(!1)
            }, t.prototype.OnNewPersoanlityHandleSuccess = function(e, t, n) {
                if (n && n == A.InteractiveSpineEventType.MainScene) {
                    var o = m.DataCenter.Instance.GetArrayData(v.UserDataKey.MainBackground);
                    if (o[v.CustomizeMainSceneType.NewPersonality] > 0) {
                        var r = Math.floor(o[v.CustomizeMainSceneType.NewPersonality] / 100);
                        if (R.default.GetNewPersoanlityIdByAvatarId(e).Id == r) {
                            var i = R.default.GetActionConfigByMotion(e, t);
                            if (i) {
                                var a = this.GetNewPersonalityBaseConfig(r),
                                    s = m.DataCenter.Instance.GetDataById(w.NewPersonality_Model, a.Id);
                                if (!(s && s.Map && s.Map[r] && s.Map[r].Items ? s.Map[r].Items : []).includes(i.Id)) {
                                    var l = new w.Req_Hero_NewPersonalitySee;
                                    l.Sid = a.Id, l.PersonalityId = r, l.ActionIds = [i.Id], y.RpcComponent.Instance.Call(l, function() {})
                                }
                            }
                        }
                    }
                }
            }, t.prototype.GetNewPersonalityBaseConfig = function(e) {
                var t = this;
                return this._newPersonalityIdToBaseConfig || (this._newPersonalityIdToBaseConfig = {}, S.ConfigDataComponent.Instance.GetArrayConfig(d.NewPersonalityBase_Config).forEach(function(e) {
                    e.PersonalityIds.forEach(function(n) {
                        t._newPersonalityIdToBaseConfig[n] = e
                    })
                })), this._newPersonalityIdToBaseConfig[e]
            }, t.prototype.OnCustomizeSceneChanged = function() {
                this._selectedSceneIds && this._selectedSceneIds == m.DataCenter.Instance.GetArrayData(v.UserDataKey.MainBackground) || this.SetMainSceneView()
            }, t.prototype.NewPalyerTaskGuide = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return !h.default.Instance.IsGameModuleUnlock(v.GameModuleType.NoviceGuideTaskUnlock)[0] || h.default.Instance.IsGameModuleUnlock(v.GameModuleType.NoviceGuideTaskHide)[0] ? [3, 3] : (e = !0, this._GuideEntranceHintComponent ? [3, 2] : [4, this.LoadDynamicAsset("TaskGuidancePanel/GuideEntranceHint", cc.Prefab)]);
                            case 1:
                                t = o.sent(), n = cc.instantiate(t), this._GuideEntranceHintComponent = n.getComponent(P.default), n.parent = this.node, e = !1, o.label = 2;
                            case 2:
                                this._GuideEntranceHintComponent.Init(e), o.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnSimpleDataChage = function(e) {
                var t;
                for (var n in e)
                    if (parseInt(n) == v.UserDataKey.GameModulePopGuide) {
                        t = !0;
                        break
                    } t && this.ShowAllGameUnlockFinger()
            }, t.prototype.ShowAllGameUnlockFinger = function(e) {
                if (void 0 === e && (e = !0), !C.default.Instance.IsInGuide) {
                    var t = T.default.Instance.CurrencyMoudleId;
                    if (!t || t < 0)
                        for (var n = 0; n < this.FunctionContainer.children.length; n++) T.default.Instance.RemoveFinger(this.FunctionContainer.children[n]);
                    else {
                        var o = S.ConfigDataComponent.Instance.GetConfigById(d.GameModuleUnlockPop_Config, t);
                        if (o) {
                            var r = e ? 2 : 0;
                            for (var i in this.GameUnlockSteps) {
                                var a = parseInt(i);
                                if (-1 != this.GameUnlockSteps[i].indexOf(t)) {
                                    switch (t) {
                                        case 24:
                                        case 25:
                                        case 26:
                                        case 27:
                                        case 29:
                                            T.default.Instance.SetFinger(this._moudleEnters[a], o.Id, 0, 0, r, !1);
                                            break;
                                        default:
                                            T.default.Instance.SetFinger(this._moudleEnters[a], o.Id, 0, 0, r)
                                    }
                                    return
                                }
                            }
                        } else
                            for (n = 0; n < this.FunctionContainer.children.length; n++) T.default.Instance.RemoveFinger(this.FunctionContainer.children[n])
                    }
                }
            }, t.prototype.SetAllianceCityWarEntry = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return h.default.Instance.IsGameModuleUnlock(p.GameModuleType.Alliance)[0] && m.DataCenter.Instance.AllianceId > 0 && h.default.Instance.IsGameModuleUnlock(p.GameModuleType.AllianceCityWar)[0] && h.default.Instance.IsGameModuleOpen(p.GameModuleType.AllianceCityWar) ? this._allianceCityWarEntryNode ? [3, 2] : [4, this.LoadDynamicAsset("MainPanel/Components/AllianceCityWarEntryComponent", cc.Prefab)] : [3, 3];
                            case 1:
                                if (e = t.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._allianceCityWarEntryNode = cc.instantiate(e), this._allianceCityWarEntryNode.setParent(this.FunctionContainer.children[2]), this._allianceCityWarEntryNode.y = 90, t.label = 2;
                            case 2:
                                return this._allianceCityWarEntryNode.active = !0, [3, 4];
                            case 3:
                                this._allianceCityWarEntryNode && (this._allianceCityWarEntryNode.active = !1), t.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetAllianceBossEntryTip = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return h.default.Instance.IsGameModuleUnlock(p.GameModuleType.AllianceBOSSBattle)[0] && m.DataCenter.Instance.AllianceId > 0 && h.default.Instance.IsGameModuleOpen(p.GameModuleType.AllianceBOSSBattle) ? 1 != m.DataCenter.Instance.GetSpecialRedDot(p.SpecialRedDotType.AllianceBOSSLevel) ? [2] : (e = S.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, p.LevelParamType.AllianceBOSSBattleTime), t = k.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) + p.Etc.HourDuration * e.Data[0] + p.Etc.MinuteDuration * e.Data[1], n = k.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) + p.Etc.HourDuration * e.Data[2] + p.Etc.MinuteDuration * e.Data[3], t < y.RpcComponent.Instance.ServerTime && y.RpcComponent.Instance.ServerTime < n ? this._allianceBossBattleTip ? [3, 2] : [4, this.LoadDynamicAsset("AllianceBossPanel/Components/AllianceBossEntryBattleTipNode", cc.Prefab)] : [3, 3]) : [3, 4];
                            case 1:
                                if (o = r.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(o), [2];
                                this._allianceBossBattleTip = cc.instantiate(o), this._allianceBossBattleTip.setParent(this.FunctionContainer.children[2]), this._allianceBossBattleTip.y = 90, this._allianceBossBattleTip.getComponent(L.default).Init(), r.label = 2;
                            case 2:
                                this._allianceBossBattleTip.active = !0, r.label = 3;
                            case 3:
                                return [3, 5];
                            case 4:
                                this._allianceBossBattleTip && (this._allianceBossBattleTip.active = !1), r.label = 5;
                            case 5:
                                return [2]
                        }
                    })
                })
            }, t.prototype.UserSimpleDataChange = function(e) {
                for (var t in e) Number(t) == v.UserDataKey.PetNest && this.RefreshPetRedDot();
                this.OnSimpleDataChage(e)
            }, t.prototype.RefreshPetRedDot = function() {
                var e = this,
                    t = m.DataCenter.Instance.GetArrayData(v.UserDataKey.PetNest),
                    n = t[0],
                    o = t[1];
                if (n) {
                    var r = h.default.Instance.GetPetHatchNeedTime(n) + o;
                    if (r > y.RpcComponent.Instance.ServerTime) return void this.scheduleOnce(function() {
                        I.RedDotManager.Instance.RedDot.PetToggleNode.NeedRefresh = !0, I.RedDotManager.Instance.RedDot.AngelEntrance.NeedRefresh = !0, I.RedDotManager.Instance.Bind(e.FunctionContainer.children[4], I.RedDotManager.Instance.RedDot.AngelEntrance, -70, -22)
                    }, Math.ceil((r - y.RpcComponent.Instance.ServerTime) / p.Etc.SecondDuration))
                }
            }, i([D(cc.Node)], t.prototype, "SceneNode", void 0), i([D(cc.Sprite)], t.prototype, "BackgroundSprite", void 0), i([D(cc.Sprite)], t.prototype, "MaskSprite", void 0), i([D(cc.Node)], t.prototype, "AnimationContainer", void 0), i([D(cc.Node)], t.prototype, "FunctionContainer", void 0), i([D(cc.Button)], t.prototype, "SkillEditorBtn", void 0), i([D(cc.Button)], t.prototype, "ChanceTestBtn", void 0), i([D(cc.Button)], t.prototype, "RequestTestBtn", void 0), i([D(cc.Button)], t.prototype, "CheckIconBtn", void 0), i([D(cc.Node)], t.prototype, "NewPersonalityeNode", void 0), i([D(cc.Label)], t.prototype, "TalkLabel", void 0), i([D(cc.Node)], t.prototype, "TalkNode", void 0), i([M], t)
        }(u.BaseUIPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../InteractiveSpine/InteractiveSpineController": "InteractiveSpineController",
        "../../../SkillEditor/SkillEditorData": "SkillEditorData",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/AllianceBossEntryBattleTipNode": "AllianceBossEntryBattleTipNode",
        "../Components/GameUnlockFingerListener": "GameUnlockFingerListener",
        "./GuideEntranceHint": "GuideEntranceHint",
        "./MainSceneFunctionItem": "MainSceneFunctionItem",
        "./NewPersonalityInfoPanel": "NewPersonalityInfoPanel"
    }],
    MainUIPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6b80d4xlkJFIroQnsdBJN+1", "MainUIPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DockTab = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../RedDot/RedDotManager"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../../Consts/Consts"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../Components/CurrencyBarItem"),
            I = e("../Components/CustomToggle"),
            _ = e("../../Components/Components"),
            C = e("../Components/VerticalButtonSlider"),
            v = e("../../../Consts/Consts"),
            b = e("../Components/HeadComponent"),
            S = e("../Auxiliary/UIUtlity"),
            w = e("../../Auxiliary/GuideManager"),
            P = e("../../Auxiliary/GameDataChecker"),
            A = e("../../Auxiliary/DataUtlity"),
            T = e("../../Channel/ChannelManager"),
            R = e("./TimeLimitedActivityPanel"),
            L = e("./TimeLimitedActivityComponent"),
            k = e("../../Auxiliary/ModuleGuideManager"),
            O = e("../../../Util/TimeUtil"),
            M = e("../../Auxiliary/GameRecord"),
            D = e("../Components/LoginBroadcastComponent"),
            B = e("../Components/IconTimeBtn"),
            N = e("../../Channel/AdjustAction"),
            E = e("../Battle/BattleManager"),
            U = e("./BagPanel"),
            G = e("./ActivityBaseContent"),
            x = e("./SimplifyModeFunctionBtnComponent"),
            H = e("./AgreementPanel"),
            F = e("../Components/GameUnlockFingerListener"),
            j = e("../Components/ActivityBubbleTipComponent"),
            W = e("../Components/GameUnlockPopListener"),
            z = e("../Components/GameModuleOpenHintComponent"),
            q = cc._decorator,
            V = q.ccclass,
            Z = q.property;
        (function(e) {
            e[e.Main = 0] = "Main", e[e.World = 1] = "World", e[e.Battle = 2] = "Battle", e[e.Hero = 3] = "Hero", e[e.Shop = 4] = "Shop", e[e.None = 5] = "None"
        })(l = n.DockTab || (n.DockTab = {}));
        var K = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1, !1), t.HeaderNode = null, t.DockNode = null, t.TopLeftNode = null, t.TopRightNode = null, t.BottomLeftNode = null, t.BottomRightNode = null, t.UserNameLabel = null, t.UserIconContainer = null, t.HeadNode = null, t.BattlePower = null, t.LevelLabel = null, t.BuyVoucherCurrencyBtn = null, t.VoucherCurrency = null, t.DiamondCurrency = null, t.BuyDiamondBtn = null, t.CoinCurrency = null, t.BuyCoindBtn = null, t.BottomToggles = [], t.BottomToggleEffect = [], t.MallBubbleTipComponent = null, t.ChatBtnContainer = null, t.FriendsBtn = null, t.MailBtn = null, t.ActivityPreviewBtn = null, t.CustomServiceBtn = null, t.BagBtn = null, t.BagBtnLabel = null, t.MainUITaskNode = null, t.TopLeftSlider = null, t.TopRightSlider = null, t.FlyItemSprite = null, t.FlyEndPosHead = null, t.FlyEndPosCoin = null, t.FlashAnim = null, t.CoinFlashAnim = null, t.BottomRightLayoutNode = null, t.RightDownBottomContainer = null, t.UTC = null, t.ToggleMainSceneMudulesButton = null, t.AssistantButton = null, t.LeftVerticalBtn = null, t.LeftVerticalBtnBg = null, t.LeftVerticalLayout = null, t.UserTitleIcon = null, t.LoginBroadcast = null, t.TopButtonLeftNode = null, t.TopButtonRightNode = null, t.CashMallBtn = null, t.CashMallLabel = null, t.BubbleNode = null, t.BubbleText = null, t.BubbleAwwor = null, t.BubbleBg = null, t.PageView = null, t.PageIndicator = null, t.IndicatorToggle = null, t.BannerLeftButton = null, t.BannerRightButton = null, t.SimplifyButton = null, t.SimplifyLabel = null, t.SimplifyModeMaskNode = null, t.SimplifyModeContent = null, t.VipText = null, t.VipLevel = null, t.WorldInBattleAniNode = null, t.BattleInBattleAniNode = null, t.PowerBeStrong = null, t.TaskNode = null, t.NewPersonalityHideButton = null, t.NewPersonalityHideBtnBg = null, t.NewPersonalityHideNodes = [], t.GameModuleOpenHintNode = null, t._defaultDockTab = l.None, t._currentDockTab = l.None, t._flyRewardItemArray = [], t._flyRewardTween = [], t._headScaleTween = null, t._flySprites = [], t.isHeadAnimPlaying = !1, t.isFlashAnimPlaying = !1, t.isCoinFlashAnimPlaying = !1, t._leftVerticalState = !1, t._keyToButton = {}, t._topRightNodes = [], t._loadAssets = [], t._simplifyBtns = [], t._isHideUI = !1, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(u.EventKeys.EVENT_HIDE_MAINUIPANEL, this.OnHidePanel, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_SHOW_MAINUIPANEL, this.OnShowPanel, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_REFRESH_MAINPANEL, this.OnRefreshMainPanel, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_SWITCH_MAINPANEL_TOGGLE, this.OnSwitchToggleByEvent, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_REFRESH_USER_HEAD, this.OnSwitchUserIcon, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_CLOSE_ACT_PREVIEW_PANEL, this.RefreshActPreviewRedDot, this), c.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.On(y.GameEventIds.RemoveDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(g.UserSimpleData_Model._n_), this.OnSimpleDataChange, this), c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.UserSimpleData_Model._n_), this.OnSimpleDataChange, this), c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.UserTask_Model._n_), this.OnTaskUserDataChange, this), c.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(g.GameModule_Model._n_), this.OnGameModuleStateChange, this), c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.GameModule_Model._n_), this.OnGameModuleStateChange, this), c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.UserActivity_Model._n_), this.OnActivityDataChanges, this), c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.UserHero_Model._n_), this.OnUserHeroChange, this), c.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(g.UserHero_Model._n_), this.OnUserHeroChange, this), c.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(g.MallActivity_Model._n_), this.OnModelChange, this), c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.MallActivity_Model._n_), this.OnModelChange, this), c.Game.EventDispatcher.On(y.GameEventIds.RemoveDataDetail.Fmt(g.MallActivity_Model._n_), this.OnModelChange, this), c.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(g.GiftPack_Model._n_), this.OnGiftPackChange, this), c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.GiftPack_Model._n_), this.OnGiftPackChange, this), c.Game.EventDispatcher.On(y.GameEventIds.RemoveDataDetail.Fmt(g.GiftPack_Model._n_), this.OnGiftPackChange, this), c.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(g.SubscribePrivilege_Model._n_), this.CheckAssistantModule, this), c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.SubscribePrivilege_Model._n_), this.CheckAssistantModule, this), c.Game.EventDispatcher.On(y.GameEventIds.RemoveDataDetail.Fmt(g.SubscribePrivilege_Model._n_), this.CheckAssistantModule, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_FLY_ITEM, this.SetFakeIdleBattleRewardAnim, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_NAMING_SUCCESS, this.OnNamingSuccess, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_REFRESH_GUIDE_MODULE_ACTIVE, this.RefreshModuleGuide, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySuccess, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_OFFSERVICE_DATA_REFRESH, this.SetOffServiceTip, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_LOGINBROADCAST_SHOW, this.DisplayLoginBroadcast, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_CHANGE_MAINUI_SIMPLFILY, this.SetSimplfilyMode, this), c.Game.EventDispatcher.On(y.GameEventIds.ServerConnected, this.SetChannelSchedule, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_MAINBATTLEANI_REFRESH, this.RefreshBattleAni, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_CUSTOMIZE_SCENE_CHANGED, this.SetNewPersonalityHideBtn, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_PANEL_FINALCLOSE, this.OnPanelFinalClose, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_DESTORY_ARTIFACT_NOTICE, this.DestoryArtifactNoticeButton, this), this.SetChannelSchedule()
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(u.EventKeys.EVENT_HIDE_MAINUIPANEL, this.OnHidePanel), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_SHOW_MAINUIPANEL, this.OnShowPanel), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_REFRESH_MAINPANEL, this.OnRefreshMainPanel), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_SWITCH_MAINPANEL_TOGGLE, this.OnSwitchToggleByEvent), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_REFRESH_USER_HEAD, this.OnSwitchUserIcon, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_CLOSE_ACT_PREVIEW_PANEL, this.RefreshActPreviewRedDot, this), c.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.RemoveDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(g.UserSimpleData_Model._n_), this.OnSimpleDataChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.UserSimpleData_Model._n_), this.OnSimpleDataChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.UserTask_Model._n_), this.OnTaskUserDataChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(g.GameModule_Model._n_), this.OnGameModuleStateChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.GameModule_Model._n_), this.OnGameModuleStateChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.UserActivity_Model._n_), this.OnActivityDataChanges, this), c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.UserHero_Model._n_), this.OnUserHeroChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(g.UserHero_Model._n_), this.OnUserHeroChange, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_FLY_ITEM, this.SetFakeIdleBattleRewardAnim), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_NAMING_SUCCESS, this.OnNamingSuccess, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_REFRESH_GUIDE_MODULE_ACTIVE, this.RefreshModuleGuide, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySuccess, this), c.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(g.MallActivity_Model._n_), this.OnModelChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.MallActivity_Model._n_), this.OnModelChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.RemoveDataDetail.Fmt(g.MallActivity_Model._n_), this.OnModelChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(g.GiftPack_Model._n_), this.OnGiftPackChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.GiftPack_Model._n_), this.OnGiftPackChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.RemoveDataDetail.Fmt(g.GiftPack_Model._n_), this.OnGiftPackChange, this), c.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(g.SubscribePrivilege_Model._n_), this.CheckAssistantModule, this), c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.SubscribePrivilege_Model._n_), this.CheckAssistantModule, this), c.Game.EventDispatcher.Off(y.GameEventIds.RemoveDataDetail.Fmt(g.SubscribePrivilege_Model._n_), this.CheckAssistantModule, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_OFFSERVICE_DATA_REFRESH, this.SetOffServiceTip, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_LOGINBROADCAST_SHOW, this.DisplayLoginBroadcast, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_CHANGE_MAINUI_SIMPLFILY, this.SetSimplfilyMode, this), c.Game.EventDispatcher.Off(y.GameEventIds.ServerConnected, this.SetChannelSchedule, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_MAINBATTLEANI_REFRESH, this.RefreshBattleAni, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_CUSTOMIZE_SCENE_CHANGED, this.SetNewPersonalityHideBtn, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_PANEL_FINALCLOSE, this.OnPanelFinalClose, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_DESTORY_ARTIFACT_NOTICE, this.DestoryArtifactNoticeButton, this), this.unscheduleAllCallbacks()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._gameModuleDatas = [{
                    Id: 1301,
                    Name: "simplify_startemp".ToUILocale(),
                    PanelId: 3045,
                    Param: -1
                }, {
                    Id: 1008,
                    Name: "heroPalace_rule_maintittle".ToUILocale(),
                    PanelId: 3011,
                    Param: -1
                }, {
                    Id: 1005,
                    Name: "PlayerSetting_alliance".ToUILocale(),
                    PanelId: 6010,
                    Param: -1
                }, {
                    Id: 1003,
                    Name: "simplify_shop".ToUILocale(),
                    PanelId: 3003,
                    Param: -1
                }, {
                    Id: 1305,
                    Name: "angel_toggle_name1".ToUILocale(),
                    PanelId: 13630,
                    Param: -1
                }, {
                    Id: 1304,
                    Name: "simplify_magicResearch".ToUILocale(),
                    PanelId: 3045,
                    Param: 3
                }, {
                    Id: 1013,
                    Name: "CollectionPavilion_Title".ToUILocale(),
                    PanelId: 13260,
                    Param: -1
                }, {
                    Id: 1001,
                    Name: "simplify_summonQueen".ToUILocale(),
                    PanelId: 3032,
                    Param: -1
                }, {
                    Id: 2020,
                    Name: "simplify_furnace".ToUILocale(),
                    PanelId: 4019,
                    Param: -1
                }], this._reddots = [p.RedDotManager.Instance.RedDot.SimplifyStarTempleBtnNode, p.RedDotManager.Instance.RedDot.SimplifyHeroPalaceBtnNode, p.RedDotManager.Instance.RedDot.SimplifyAllianceBtnNode, p.RedDotManager.Instance.RedDot.SimplifyShopBtnNode, p.RedDotManager.Instance.RedDot.SimplifyAngelEntrance, p.RedDotManager.Instance.RedDot.SimplifyMagicResearchMainScene, p.RedDotManager.Instance.RedDot.SimplifyCollectionPavilionEntryNode, p.RedDotManager.Instance.RedDot.SimplifySummonQueenMainScene, p.RedDotManager.Instance.RedDot.SimplifyFurnaceNode]
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, c, u, p = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = A.default.Instance.GetItemPathById(v.CommonItemId.Coin), n = A.default.Instance.GetItemPathById(v.CommonItemId.Xp), o = this.LoadDynamicAsset("Chatting/ChattingMiniPanel"), r = this.LoadDynamicAsset(d.BundlePath.HeadComponent), i = this.LoadDynamicAsset(t, cc.SpriteFrame), a = this.LoadDynamicAsset(n, cc.SpriteFrame), l = this.LoadDynamicAsset("MainPanel/Components/IconBtn"), c = this.LoadDynamicAsset("MainPanel/UI/MainUIPanel", cc.SpriteAtlas), u = this.LoadDynamicAsset("MainPanel/Components/SimplifyModeFunctionBtnComponent", cc.Prefab), [4, Promise.all([o, r, i, a, l, c, u]).then(function(e) {
                                    p._chattingMiniPanelPrefab = e[0], p._userHeaderPrefab = e[1], p._flySprites[0] = e[2], p._flySprites[1] = e[3], p._buttonPrefab = e[4], p._atlas = e[5], p._simplifyPrefab = e[6]
                                })];
                            case 1:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.InitToggleContainer(), this._isAnimationPlay = !1, this.FriendsBtn.node.on("click", this.OnClickFriendBtn, this), this.MailBtn.node.on("click", this.OnClickMailBtn, this), this.CustomServiceBtn.node.on("click", this.OnCustomServiceBtn, this), this.BagBtn.node.on("click", this.OnClickBagBtn, this), this.ActivityPreviewBtn.node.on("click", this.OnClickActivityPreviewBtn, this), this.BuyVoucherCurrencyBtn.node.on("click", this.OnClickBuyVoucher, this), this.BuyDiamondBtn.node.on("click", this.OnClickBuyDiamondBtn, this), this.BuyCoindBtn.node.on("click", this.OnClickBuyCoinBtn, this), this.VipLevel.node.parent.on("click", this.OnClickVIPBtn, this), this.ToggleMainSceneMudulesButton.node.on("click", this.OnToggleMainSceneModulesButtonClick, this), this.AssistantButton.node.on("click", this.OnClickAssistantButton, this), this.LeftVerticalBtn.node.on("click", this.OnClickLeftVerticalBtn, this), this.CashMallBtn.node.on("click", this.OnClickCashMallBtn, this), this.BannerLeftButton.node.on("click", this.OnClickBannerLeftButton, this), this.BannerRightButton.node.on("click", this.OnClickBannerRightButton, this), this.SimplifyButton.node.on("click", this.OnClickSimplifyButton, this), this.SimplifyModeMaskNode.on(cc.Node.EventType.TOUCH_END, this.OnSimplifyModeMaskNodeClick, this), this.PowerBeStrong.node.on("click", this.OnClickBtnStrong, this), this.NewPersonalityHideButton.node.on("click", this.OnClickNewPersonalityHideButton, this), this.UserNameLabel.string = _.DataCenter.Instance.GetStringData(v.UserDataKey.RoleName), this.BagBtnLabel.string = "btn_bag".ToUILocale(), this.CashMallLabel.string = "cashMall_title".ToUILocale(), this.SimplifyLabel.string = "simplify_menu".ToUILocale(), this.VipText.string = "vip".ToUILocale(), this._chattingMiniPanelNode || (this._chattingMiniPanelNode = cc.instantiate(this._chattingMiniPanelPrefab), this._chattingMiniPanelNode.setParent(this.ChatBtnContainer)), c.AudioManager.Instance.Init(), w.default.Instance.IsInGuide, this._timeIinterval = _.ConfigDataComponent.Instance.GetGlobalSettingByKey("BannerSkip_Time_Interval")
            }, t.prototype.InitToggleContainer = function() {
                for (var e = 0; e < this.BottomToggles.length; e++) {
                    var t = this.BottomToggles[e];
                    t.node.on("toggle", this.OnSwitchTab, this), t.Init(("mainUI_toggle_" + e).ToUILocale())
                }
            }, t.prototype.update = function(e) {
                if (this._isAutoTurningPages && (this._posterRollingTimer += e, this._posterRollingTimer >= this._timeIinterval)) {
                    var t = this.PageView.getCurrentPageIndex() + 1;
                    t = t >= this.PageView.content.childrenCount ? 0 : t, this.PageView.scrollToPage(t, 1), this._posterRollingTimer = 0
                }
            }, t.prototype.DisPlay = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return e.prototype.DisPlay.call(this), this.InitMallBubbleStorage(), this.BindReddot(), this.CheckGameModule(), S.UIUtlity.ShowMaskPanel(), [4, this.ShowAnimation()];
                            case 1:
                                return t.sent(), this.PlayAudioEffect(), this.SetDefaultTab(), this.SetCurrencyBar(), this.SetBattlePower(), this.SetLevelLabel(), this.SetVipLevel(), [4, this.SetSideButtons()];
                            case 2:
                                return t.sent(), this.ConfigUserIcon(), P.default.Instance.Init(), this.ShowRightDownButtons(), this.ActivityPreviewBtnState(), this.SetTopButtonNode(), this.RefreshSliderActivityBubble(), this.RefreshMallBubbleTip(), _.DataCenter.Instance.LoginBroadcastWaitingArr.length > 0 && this.DisplayLoginBroadcast(), S.UIUtlity.CloseMaskPanel(), this.ShowGuide(), this.SetUTCTime(), this.SetUserTitleIcon(), this.SetOffServiceTip(), A.default.Instance.ShowColorDiamondEntrance(), this.SetBannerCampaign(), this.SetSimplfilyMode(), this.SetBattleInBattleAniNode(), this.ShowFloatIconPanel(), this.SetAllPageFinger(!1), this.CheckAllianceBossOpenHint(), W.default.Instance.MainUIPanelIsOpen(), [2]
                        }
                    })
                })
            }, t.prototype.BindReddot = function() {
                p.RedDotManager.Instance.Bind(this.MailBtn.node, p.RedDotManager.Instance.RedDot.MailBtnNode), p.RedDotManager.Instance.Bind(this.LeftVerticalBtn.node, p.RedDotManager.Instance.RedDot.LeftVerticalBtnNode), p.RedDotManager.Instance.Bind(this.FriendsBtn.node, p.RedDotManager.Instance.RedDot.FriendBtnNode), p.RedDotManager.Instance.Bind(this.UserIconContainer, p.RedDotManager.Instance.RedDot.PlayerHeadNode), p.RedDotManager.Instance.Bind(this.BagBtn.node, p.RedDotManager.Instance.RedDot.MainBagNode), p.RedDotManager.Instance.Bind(this.BottomToggles[l.Battle].node, p.RedDotManager.Instance.RedDot.MainBattleNode, -6, -16), p.RedDotManager.Instance.Bind(this.BottomToggles[l.Hero].node, p.RedDotManager.Instance.RedDot.MainHeroNode, -6, -16), p.RedDotManager.Instance.Bind(this.BottomToggles[l.World].node, p.RedDotManager.Instance.RedDot.WildoutNode, -6, -16), p.RedDotManager.Instance.Bind(this.BottomToggles[l.Shop].node, p.RedDotManager.Instance.RedDot.MallNode, -6, -16), p.RedDotManager.Instance.Bind(this.CoinCurrency.BtnAdd.node, p.RedDotManager.Instance.RedDot.CoinPurchaseNode, 8, 20, .75), p.RedDotManager.Instance.Bind(this.VipLevel.node.parent, p.RedDotManager.Instance.RedDot.MianVIPNode, 10, -10, .75), p.RedDotManager.Instance.Bind(this.AssistantButton.node, p.RedDotManager.Instance.RedDot.AssistantNode), p.RedDotManager.Instance.Bind(this.PowerBeStrong.node, p.RedDotManager.Instance.RedDot.WantStrongBtnNode, 0, 18)
            }, t.prototype.PlayAudioEffect = function() {
                var e = A.default.Instance.GetAudioRandomNumByType(y.RandomAudioType.Login);
                h.AudioManager.Instance.PlayEffect(e)
            }, t.prototype.SetDefaultTab = function() {
                this._currentDockTab = l.None;
                var e = this.BottomToggles[l.Main];
                e.isChecked = !0, this.OnSwitchTab(e)
            }, t.prototype.ShowAnimation = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function() {
                        return 0 == this._isAnimationPlay ? (this._isAnimationPlay = !0, e = this.HeaderNode.height, t = this.DockNode.height, this.HeaderNode.y = this.HeaderNode.y + e, this.DockNode.y = this.DockNode.y - t, cc.tween(this.HeaderNode).to(.5, {
                            position: cc.v3(this.HeaderNode.x, this.HeaderNode.y - e, 0)
                        }, {
                            easing: "bounceOut"
                        }).start(), [2, new Promise(function(e) {
                            cc.tween(n.DockNode).to(.5, {
                                position: cc.v3(n.DockNode.x, n.DockNode.y + t, 0)
                            }, {
                                easing: "bounceOut"
                            }).call(function() {
                                e(void 0)
                            }).start()
                        })]) : [2]
                    })
                })
            }, t.prototype.HideNodes = function() {
                this.TopLeftNode.active = !1, this.TopRightNode.active = !1, this.BottomLeftNode.active = !1, this.BottomRightNode.active = !1, this.TopButtonLeftNode.active = !1, this.TopButtonRightNode.active = !1, this.TopLeftSlider.SetShowingState(!1), this.TopRightSlider.SetShowingState(!1), this._LoginBroadcastComponent && (this._LoginBroadcastComponent.node.active = !1), this.PageView.node.active = !1, this.SimplifyButton.node.active = !1
            }, t.prototype.ShowNodes = function() {
                this.BottomLeftNode.active = !0, this.BottomRightNode.active = !0, this.TopButtonLeftNode.active = !0, this.TopButtonRightNode.active = !0, this.RefreshSliderButtons(), this.RefreshSliderRedDot(), this.TopLeftSlider.SetShowingState(!0), this.TopRightSlider.SetShowingState(!0), this._LoginBroadcastComponent && this._LoginBroadcastComponent.node.opacity > 0 && (this._LoginBroadcastComponent.node.active = !0), this.SetBannerCampaign(), this.SetSimplfilyMode()
            }, t.prototype.OnSwitchTab = function(e) {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function() {
                        if (t = Number.parseInt(e.name), this._currentDockTab == t) return [2];
                        switch (this._currentDockTab = t, this._currentDockTab < 5 && this.SetAllPageFinger(!1), w.default.Instance.IsInGuide ? c.UIManager.Instance.CloseStackPanel() : c.UIManager.Instance.CloseAllPanels(!0), this.BottomToggleEffect[t] && this._defaultDockTab != this._currentDockTab && this.BottomToggleEffect[t].setAnimation(0, "Ani_UI_Effect_MX", !1), this._defaultDockTab = this._currentDockTab, this.HideNodes(), this.NewPersonalityHideButton.node.active = !1, t) {
                            case l.Main:
                                this._isHideUI || this.ShowNodes(), this.SetNewPersonalityHideBtn(), c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_REFRESH_DOUBLE_REDDOT), c.AudioManager.Instance.PlayMainSceneMusic();
                                break;
                            case l.World:
                                h.UIManager.Instance.ShowUIPanel(d.PanelConfig.WildoutPanel.Path);
                                break;
                            case l.Battle:
                                h.UIManager.Instance.ShowUIPanel(d.PanelConfig.IdleBattleMainPanel.Path);
                                break;
                            case l.Hero:
                                h.UIManager.Instance.ShowUIPanel(d.PanelConfig.HeroListPanel.Path);
                                break;
                            case l.Shop:
                                h.UIManager.Instance.ShowUIPanel(d.PanelConfig.MallNewPanel.Path)
                        }
                        return [2]
                    })
                })
            }, t.prototype.SetLevelLabel = function() {
                this.LevelLabel.string = "Lv." + _.DataCenter.Instance.GetIntData(y.UserDataKey.PlayerLevel)
            }, t.prototype.SetVipLevel = function() {
                this.VipLevel.string = "" + _.DataCenter.Instance.GetIntData(y.UserDataKey.VipLevel)
            }, t.prototype.SetCurrencyBar = function() {
                this.DiamondCurrency.Init(y.CommonItemId.Diamond, !0), this.CoinCurrency.Init(y.CommonItemId.Coin, !0), this.VoucherCurrency.SetCurrencyItem()
            }, t.prototype.SetBattlePower = function() {
                this.BattlePower.string = _.DataCenter.Instance.GetIntData(v.UserDataKey.Power).toString();
                var e = this.BattlePower.string.length > 9 ? .9 : 1;
                this.BattlePower.node.scale = e
            }, t.prototype.SetSideButtons = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                for (e = [], t = [], n = _.ConfigDataComponent.Instance.GetArrayConfig(f.MainUISliderButtons_Config), o = 0; o < n.length; o++) switch ((r = n[o]).Position) {
                                    case 1:
                                        e.push(r);
                                        break;
                                    case 2:
                                        t.push(r)
                                }
                                return e.length > 0 ? [4, this.TopLeftSlider.Init(e, 1)] : [3, 2];
                            case 1:
                                return i.sent(), this._leftSliderState = !0, [3, 4];
                            case 2:
                                return this.TopLeftSlider.node.active = !1, [4, this.TopLeftSlider.Init(e, 1)];
                            case 3:
                                i.sent(), this._leftSliderState = !1, i.label = 4;
                            case 4:
                                return t.length > 0 ? [4, this.TopRightSlider.Init(t, 2)] : [3, 6];
                            case 5:
                                return i.sent(), this._rightSliderState = !0, [3, 8];
                            case 6:
                                return this.TopRightSlider.node.active = !1, [4, this.TopRightSlider.Init(t, 2)];
                            case 7:
                                i.sent(), this._rightSliderState = !1, i.label = 8;
                            case 8:
                                return P.default.Instance.CheckActivitySideButtons(), [2]
                        }
                    })
                })
            }, t.prototype.RefreshSliderActivityBubble = function() {
                var e = this;
                this.scheduleOnce(function() {
                    e.TopLeftSlider && e.TopLeftSlider.node.active && e.TopLeftSlider.RefreshActivityNewBubble(), e.TopRightSlider && e.TopRightSlider.node.active && e.TopRightSlider.RefreshActivityNewBubble()
                })
            }, t.prototype.OnRefreshMainPanel = function() {
                this.SetDefaultTab(), this.ShowGuide()
            }, t.prototype.OnUserItemChange = function(e) {
                var t = Object.keys(e),
                    n = !1;
                t.forEach(function(e) {
                    var t = Number.parseInt(e);
                    switch (t) {
                        case y.CommonItemId.Diamond:
                        case y.CommonItemId.Coin:
                            n = !0
                    }
                    n || _.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, t).Type == y.ItemType.Voucher && (n = !0)
                }), n && this.SetCurrencyBar()
            }, t.prototype.OnSimpleDataChange = function(e) {
                for (var t in c.EZLog.Log(" ---\x3e data = ", e), this.UpdateLevel(), e) {
                    var n = Number.parseInt(t);
                    if (n == v.UserDataKey.PlayerLevel) {
                        this.SetLevelLabel();
                        var o = e[t].V;
                        h.UIManager.Instance.ShowUIPanel(d.PanelConfig.PlayerLevelUpPanel.Path, o);
                        var r = _.DataCenter.Instance.GetIntData(v.UserDataKey.PlayerLevel);
                        o < r && r >= 3 && N.default.AdjustTrackEvent(N.AdjustEventToken.Lv3)
                    } else n == v.UserDataKey.VipLevel ? this.SetVipLevel() : n == v.UserDataKey.Power ? this.SetBattlePower() : n == v.UserDataKey.Designation ? this.SetUserTitleIcon() : (n = v.UserDataKey.GameModulePopGuide) && this.SetAllPageFinger(!0, 10)
                }
            }, t.prototype.SetAllPageFinger = function(e) {
                if (void 0 === e && (e = !0), !w.default.Instance.IsInGuide) {
                    var t = F.default.Instance.CurrencyMoudleId;
                    if (!t || t < 0)
                        for (var n = 0; n < this.BottomToggles.length; n++) F.default.Instance.RemoveFinger(this.BottomToggles[n].node);
                    else {
                        var o = _.ConfigDataComponent.Instance.GetConfigById(f.GameModuleUnlockPop_Config, t);
                        if (o) {
                            var r = e ? 2 : 0,
                                i = o.Type - 1;
                            for (n = 0; n < this.BottomToggles.length; n++) n == i ? this._currentDockTab == i ? F.default.Instance.RemoveFinger(this.BottomToggles[n].node) : F.default.Instance.SetPageFinger(this.BottomToggles[n].node, r) : F.default.Instance.RemoveFinger(this.BottomToggles[n].node)
                        } else
                            for (n = 0; n < this.BottomToggles.length; n++) F.default.Instance.RemoveFinger(this.BottomToggles[n].node)
                    }
                }
            }, t.prototype.OnTaskUserDataChange = function(e) {
                var t = [];
                for (var n in e) {
                    var o = _.ConfigDataComponent.Instance.GetConfigById(f.TaskBase_Config, e[n].Sid),
                        r = _.DataCenter.Instance.GetDataById(g.UserTask_Model, e[n].Sid);
                    o && o.Type > 0 && o.Type < 4 && null != o && r.Progress >= o.TotalCount && !r.IsCompleted && t.push(e[n].Sid)
                }
                t.length > 0 && h.UIManager.Instance.ShowUIPanel(d.PanelConfig.TaskBubble.Path, t)
            }, t.prototype.OnGameModuleStateChange = function(e) {
                var t, n = this.GetNeedPushActivitys();
                for (var o in e) {
                    switch ((t = e[o]).Sid) {
                        case y.GameModuleType.EightDays:
                            c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 20, 1);
                            break;
                        case y.GameModuleType.CloudTreasureHunt:
                            c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 22, 1);
                            break;
                        case y.GameModuleType.InfiniteTenSummon:
                            if (A.default.Instance.IsGameModuleOpen(y.GameModuleType.InfiniteTenSummon)) {
                                var r = _.DataCenter.Instance.GetIntData(v.UserDataKey.InfiniteTenSummonTime),
                                    i = _.DataCenter.Instance.GetIntData(y.UserDataKey.InfiniteTenSummonCount),
                                    a = _.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, y.LevelParamType.InfiniteTenSummon).Data2[i].Items[2];
                                c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 25, r + a * v.Etc.DayDuration)
                            }
                            break;
                        case y.GameModuleType.HeroGift:
                            c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 23, 1);
                            break;
                        case y.GameModuleType.DailyClockIn:
                            c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 15, 1);
                            break;
                        case 1010:
                            var s = 0;
                            for (var l in _.DataCenter.Instance.ActivityFrameMap)
                                for (var p = 0; p < _.DataCenter.Instance.ActivityFrameMap[l].length; p++) _.DataCenter.Instance.ActivityConfigs[_.DataCenter.Instance.ActivityFrameMap[l][p]].Common.BannerType && s++;
                            s > 0 && c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 17, 1), P.default.Instance.CheckActivitySideButtons(), P.default.Instance.CheckSummonActivityList(), this.SetTopRightCotnent();
                            break;
                        case y.GameModuleType.LetterFromDeveloper:
                            var d = _.DataCenter.Instance.GetIntData(v.UserDataKey.LetterFromDeveloperTime);
                            d && d > 0 && c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 26, d + 7 * v.Etc.DayDuration);
                            break;
                        case y.GameModuleType.Friends:
                            this.FriendsBtn.node.active = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Friends)[0];
                            break;
                        case y.GameModuleType.Task:
                            this.MainUITaskNode.active = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Task)[0];
                            break;
                        case y.GameModuleType.Mall:
                            this.CheckMallModule(), this.RefreshMallBubbleTip();
                            break;
                        case y.GameModuleType.Outdoor:
                            this.CheckWildOutModule();
                            break;
                        case y.GameModuleType.SinglePagePack:
                            c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 29, 1);
                            break;
                        case y.GameModuleType.WarTokenList:
                            c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 32, 1);
                            break;
                        case y.GameModuleType.Helper:
                            this.CheckAssistantModule();
                            break;
                        case y.GameModuleType.Angel:
                            S.UIUtlity.ShowFloatingHint("angel_module_unlock".ToUILocale()), P.default.Instance.AngelDataCheckUnlock(!0);
                            break;
                        case y.GameModuleType.CashMall:
                            var h = A.default.Instance.IsGameModuleOpen(y.GameModuleType.CashMall),
                                g = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.CashMall)[0];
                            h && g && c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_SET_VERTICAL_BUTTON, 35, 1), this.CashMallBtn.node.active = h && g;
                            break;
                        case y.GameModuleType.OldPlayerRecall:
                            P.default.Instance.CheckOldPlayerRecallGift();
                            break;
                        case y.GameModuleType.MainUISimplifyMode:
                            this.SetSimplfilyMode();
                            break;
                        case y.GameModuleType.FloatIcon:
                            this.ShowFloatIconPanel(!0);
                            break;
                        default:
                            P.default.Instance.CheckActivitySideButtons()
                    }
                    n && n[t.Sid] && n[t.Sid].forEach(function(e) {
                        var t = R.ActivityData.GetActivityTypeToPath(e.Common.Type);
                        t && (_.DataCenter.Instance.IsInBattle ? E.BattleManager.Instance.ShowSettlePanel(t, e._id) : w.default.Instance.IsInGuide || c.UIManager.Instance.ShowUIPanelByQueue(t, e._id))
                    })
                }
            }, t.prototype.GetNeedPushActivitys = function() {
                var e, t, n;
                for (var o in _.DataCenter.Instance.ActivityConfigs)
                    if (null === (t = null === (e = _.DataCenter.Instance.ActivityConfigs[o]) || void 0 === e ? void 0 : e.CustomPart) || void 0 === t ? void 0 : t.IsEject) {
                        if (!A.default.GetActivityUnlockState(_.DataCenter.Instance.ActivityConfigs[o].Common)) continue;
                        var r = y.GameModuleType.Activity;
                        _.DataCenter.Instance.ActivityConfigs[o].Common.GameModule && (r = _.DataCenter.Instance.ActivityConfigs[o].Common.GameModule), n || (n = {}), n[r] || (n[r] = []), n[r].push(_.DataCenter.Instance.ActivityConfigs[o])
                    } return n
            }, t.prototype.CheckGameModule = function() {
                var e = this;
                this.MailBtn.node.active = A.default.Instance.IsGameModuleOpen(y.GameModuleType.Mail) && A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Mail)[0], this.FriendsBtn.node.active = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Friends)[0], this.MainUITaskNode.active = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Task)[0];
                var t, n = A.default.Instance.IsGameModuleOpen(y.GameModuleType.CashMall),
                    o = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.CashMall)[0];
                for (var r in this.CashMallBtn.node.active = n && o, _.DataCenter.Instance.ActivityConfigs)
                    if (_.DataCenter.Instance.ActivityConfigs[r].Common.Type == y.ActivityType.CashMallDisCount) {
                        var i = A.default.Instance.ComputeDeadTime(_.DataCenter.Instance.ActivityConfigs[r].Common);
                        if (_.RpcComponent.Instance.ServerTime < i) {
                            t = _.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    } if (t && t.Common.BubbleType > 0) {
                    switch (this.BubbleNode.active = !0, this.BubbleText.string = t.Common.BubbleText, this.BubbleBg.spriteFrame = S.UIUtlity.COMMON_ATLAS4.getSpriteFrame(B.default.bubble_bg_colors[t.Common.BubbleType - 1]), this.BubbleAwwor.spriteFrame = S.UIUtlity.COMMON_ATLAS4.getSpriteFrame(B.default.bubble_arrow_colors[t.Common.BubbleType - 1]), t.Common.BubbleType - 1) {
                        case B.IconTimeBtnBubbleColor.Orange:
                            this.BubbleText.node.color = new cc.Color(254, 217, 74);
                            break;
                        case B.IconTimeBtnBubbleColor.Green:
                            this.BubbleText.node.color = new cc.Color(0, 255, 0)
                    }
                    var a = A.default.Instance.ComputeDeadTime(t.Common);
                    this.scheduleOnce(function() {
                        e.BubbleNode.active = !1
                    }, (a - _.RpcComponent.Instance.ServerTime) / v.Etc.SecondDuration)
                } else this.BubbleNode.active = !1;
                this.CheckAssistantModule(), this.CheckMallModule(), this.CheckWildOutModule()
            }, t.prototype.CheckAssistantModule = function() {
                var e = A.default.Instance.IsGameModuleOpen(y.GameModuleType.Helper);
                if (this.AssistantButton.node.active = e, e) {
                    var t = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Helper)[0],
                        n = !0,
                        o = A.default.GetModuleBonus();
                    o[y.ModuleBonusType.Helper] && 0 != o[y.ModuleBonusType.Helper].length || (n = !1), t && n ? S.UIUtlity.OffNodeGray(this.AssistantButton.node) : S.UIUtlity.OnNodeGray(this.AssistantButton.node)
                }
            }, t.prototype.CheckMallModule = function() {
                var e = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Mall);
                e[0] ? this.BottomToggles[l.Shop].SetInteractable(!0) : this.BottomToggles[l.Shop].SetInteractable(!1, e[1])
            }, t.prototype.InitMallBubbleStorage = function() {
                var e = M.default.GetItem(M.GameRecordDefine.MallActivityGoToBubble);
                if (!e) {
                    e = {};
                    for (var t = !1, n = 0, o = _.DataCenter.Instance.GetDataList(g.MallActivity_Model); n < o.length; n++) {
                        var r = o[n],
                            i = _.ConfigDataComponent.Instance.GetConfigById(f.MallActivity_Config, r.Sid);
                        i && i.Reminder && (t = !0, i.Show && A.default.Instance.IsGameModuleUnlock(i.Show)[0] && i.UnLock && A.default.Instance.IsGameModuleUnlock(i.UnLock)[0] && (e[r.Sid] = O.TimeUtil.StrToTime("2025-05-13 14:00:00")))
                    }
                    t && M.default.SetItem(M.GameRecordDefine.MallActivityGoToBubble, JSON.stringify(e))
                }
            }, t.prototype.RefreshMallBubbleTip = function() {
                if (this._showMallBubbleCacheId = 0, A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Mall)[0]) {
                    var e = M.default.GetItem(M.GameRecordDefine.MallActivityGoToBubble);
                    e && (e = JSON.parse(e)) && "object" != typeof e && (e = {});
                    for (var t = [], n = 0, o = _.DataCenter.Instance.GetDataList(g.MallActivity_Model); n < o.length; n++) {
                        var r = o[n];
                        if ((u = _.ConfigDataComponent.Instance.GetConfigById(f.MallActivity_Config, r.Sid)) && u.Reminder && (!u.Show || A.default.Instance.IsGameModuleUnlock(u.Show)[0]) && (!u.UnLock || A.default.Instance.IsGameModuleUnlock(u.UnLock)[0])) {
                            var i = O.TimeUtil.StrToTime(u.Reminder),
                                a = _.RpcComponent.Instance.ServerTime,
                                s = void 0;
                            e && e[r.Sid] && (s = e[r.Sid]), (!s || s < i && a > i) && t.push(u)
                        }
                    }
                    if (t.length > 0) {
                        h.UIManager.Instance.IsOnlyShowingMainUIPanel() ? this.MallBubbleTipComponent.InitMallTip(t[0].Id) : this._showMallBubbleCacheId = t[0].Id, e || (e = {});
                        for (var l = 0, c = t; l < c.length; l++) {
                            var u;
                            e[(u = c[l]).Id] = _.RpcComponent.Instance.ServerTime
                        }
                        M.default.SetItem(M.GameRecordDefine.MallActivityGoToBubble, JSON.stringify(e))
                    }
                }
            }, t.prototype.OnPanelFinalClose = function() {
                this._showMallBubbleCacheId && h.UIManager.Instance.IsOnlyShowingMainUIPanel() && (this.MallBubbleTipComponent.InitMallTip(this._showMallBubbleCacheId), this._showMallBubbleCacheId = 0)
            }, t.prototype.CheckWildOutModule = function() {
                var e = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Outdoor);
                e[0] ? this.BottomToggles[l.World].SetInteractable(!0) : this.BottomToggles[l.World].SetInteractable(!1, e[1])
            }, t.prototype.OnClickFriendBtn = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.FriendsPanel.Path)
            }, t.prototype.OnClickMailBtn = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.MailPanel.Path)
            }, t.prototype.OnClickChatBtn = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.ChattingMainPanel.Path)
            }, t.prototype.OnCustomServiceBtn = function() {
                T.default.Instance.CustomerServiceFeedback()
            }, t.prototype.OnClickActivityPreviewBtn = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.ActivityPreviewMainPanel.Path)
            }, t.prototype.OnClickBagBtn = function() {
                w.default.Instance.IsInGuide ? c.UIManager.Instance.ShowUIPanel(d.PanelConfig.BagPanel.Path, U.Tab.Fragment) : c.UIManager.Instance.ShowUIPanel(d.PanelConfig.BagPanel.Path)
            }, t.prototype.OnClickWelfareBtn = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.WelfareFramePanel.Path)
            }, t.prototype.OnHidePanel = function(e) {
                null != e ? (c.UIManager.Instance.CloseStackPanel(), this.TopLeftNode.active = !1, this.TopRightNode.active = !1, this.BottomLeftNode.active = !1, this.BottomRightNode.active = !1, this.BottomToggles[e].isChecked = !0, this._currentDockTab = e) : (this.DockNode.active = !1, this.TopLeftNode.active = !1, this.TopRightNode.active = !1), this.TopButtonLeftNode.active = !1, this.TopButtonRightNode.active = !1, this._LoginBroadcastComponent && (this._LoginBroadcastComponent.node.active = !1), this.PageView.node.active = !1, this.SimplifyButton.node.active = !1, this.TopLeftSlider.SetShowingState(!1), this.TopRightSlider.SetShowingState(!1)
            }, t.prototype.OnShowPanel = function() {
                this.DockNode.active = !0, this.TopLeftSlider.SetShowingState(!0), this.TopRightSlider.SetShowingState(!0), this.RefreshSliderButtons()
            }, t.prototype.RefreshSliderButtons = function() {
                this._leftSliderState && (this.TopLeftNode.active = !0, this.TopLeftSlider.RefreshNodeHeight()), this._rightSliderState && (this.TopRightNode.active = !0, this.TopRightSlider.RefreshNodeHeight())
            }, t.prototype.RefreshSliderRedDot = function() {
                P.default.Instance.LetterDeveloperCheck()
            }, t.prototype.OnSwitchToggleByEvent = function(e) {
                var t = this.BottomToggles[e];
                t.isChecked = !0, this.OnSwitchTab(t)
            }, t.prototype.OnClickBuyVoucher = function() {
                this.VoucherCurrency.SetClickCallBack(function() {
                    h.UIManager.Instance.ShowUIPanel(d.PanelConfig.MallNewPanel.Path, [y.MallPageType.DiamondShop, y.GiftPackType.BuyCurrency])
                })
            }, t.prototype.OnClickBuyDiamondBtn = function() {
                this.DiamondCurrency.SetClickCallBack(function() {
                    h.UIManager.Instance.ShowUIPanel(d.PanelConfig.MallNewPanel.Path, [y.MallPageType.DiamondShop, y.GiftPackType.BuyDiamond])
                })
            }, t.prototype.OnClickVIPBtn = function() {
                h.UIManager.Instance.ShowUIPanel(d.PanelConfig.FamePriviledgePanel.Path)
            }, t.prototype.OnClickBuyCoinBtn = function() {
                this.CoinCurrency.SetClickCallBack(function() {
                    h.UIManager.Instance.ShowUIPanel(d.PanelConfig.CoinPurchasePanel.Path)
                })
            }, t.prototype.ConfigUserIcon = function() {
                if (!this._headComponent) {
                    var e = cc.instantiate(this._userHeaderPrefab);
                    e.setParent(this.HeadNode), this._headComponent = e.getComponent(b.default), e.on(cc.Node.EventType.TOUCH_END, this.OnClickHeadComponent, this)
                }
                this._headComponent.AutoSetUI(), this._headComponent.SetLevel(_.DataCenter.Instance.GetIntData(y.UserDataKey.PlayerLevel))
            }, t.prototype.UpdateLevel = function() {
                this._headComponent && this._headComponent.SetLevel(_.DataCenter.Instance.GetIntData(y.UserDataKey.PlayerLevel))
            }, t.prototype.OnClickHeadComponent = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.PlayerSettingPanel.Path)
            }, t.prototype.OnSwitchUserIcon = function() {
                this.ConfigUserIcon()
            }, t.prototype.OnNamingSuccess = function() {
                this.UserNameLabel.string = _.DataCenter.Instance.GetStringData(v.UserDataKey.RoleName)
            }, t.prototype.SetFakeIdleBattleRewardAnim = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o = this;
                    return s(this, function() {
                        for (e = function(e) {
                                if (null == t._flyRewardItemArray[e]) {
                                    var n = Math.random() > .5 ? v.CommonItemId.Coin : v.CommonItemId.Xp;
                                    switch (n) {
                                        case v.CommonItemId.Xp:
                                            t.FlyItemSprite.spriteFrame = t._flySprites[1];
                                            break;
                                        case v.CommonItemId.Coin:
                                            t.FlyItemSprite.spriteFrame = t._flySprites[0]
                                    }
                                    var r = cc.instantiate(t.FlyItemSprite.node);
                                    c.UIManager.Instance.SetParentNode(r, c.UINodeType.Independent), r.active = !0, t._flyRewardItemArray[e] = r;
                                    var i = void 0;
                                    switch (n) {
                                        case v.CommonItemId.Xp:
                                            i = t.FlyEndPosHead;
                                            break;
                                        case v.CommonItemId.Coin:
                                            i = t.FlyEndPosCoin
                                    }
                                    if (i.x, t._headComponent.node.scaleX = 1, t._headComponent.node.scaleY = 1, null == t._headScaleTween) {
                                        var a = cc.tween(t._headComponent.node).to(.08, {
                                                scaleX: 1.3,
                                                scaleY: 1.3
                                            }),
                                            s = cc.tween(t._headComponent.node).to(.08, {
                                                scaleX: 1,
                                                scaleY: 1
                                            });
                                        t._headScaleTween = cc.tween(t._headComponent.node).sequence(a, s, a, s, a, s, a, s)
                                    }
                                    t.FlashAnim.setCompleteListener(function() {
                                        o.FlashAnim.node.active = !1, o.isFlashAnimPlaying = !1
                                    }), t.CoinFlashAnim.setCompleteListener(function() {
                                        o.CoinFlashAnim.node.active = !1, o.isCoinFlashAnimPlaying = !1
                                    }), null == t._flyRewardTween[e] && (t._flyRewardTween[e] = cc.tween(r).delay(.01 * e).call(function() {
                                        r.opacity = 255
                                    }).to(1, {
                                        x: i.x,
                                        y: i.y
                                    }).call(function() {
                                        r.opacity = 0, o.isHeadAnimPlaying || (o.isHeadAnimPlaying = !0, o._headScaleTween.call(function() {
                                            o.isHeadAnimPlaying = !1
                                        }).start()), o.isFlashAnimPlaying || (o.isFlashAnimPlaying = !0, o.FlashAnim.node.active = !0, o.FlashAnim.setAnimation(0, o.FlashAnim.defaultAnimation, !1)), o.isCoinFlashAnimPlaying || (o.isCoinFlashAnimPlaying = !0, o.CoinFlashAnim.node.active = !0, o.CoinFlashAnim.setAnimation(0, o.CoinFlashAnim.defaultAnimation, !1))
                                    }))
                                }
                                t._flyRewardItemArray[e].x = 300 * Math.random(), t._flyRewardItemArray[e].y = 300 * Math.random(), t._flyRewardItemArray[e].opacity = 0, t._flyRewardTween[e].start()
                            }, t = this, n = 0; n < 40; n++) e(n);
                        return [2]
                    })
                })
            }, t.prototype.SetUTCTime = function() {
                n.UTCTimeStr = O.TimeUtil.Format("YYYY/MM/DD HH:mm:ss", _.RpcComponent.Instance.ServerTime), this.schedule(function() {
                    n.UTCTimeStr = O.TimeUtil.Format("YYYY/MM/DD HH:mm:ss", _.RpcComponent.Instance.ServerTime)
                }, 1)
            }, t.prototype.ShowGuide = function() {
                if (w.default.Instance.IsInGuide) switch (w.default.Instance.CurrentStep) {
                    case 1102:
                    case 3101:
                    case 4201:
                    case 5101:
                    case 6101:
                    case 7201:
                    case 8201:
                    case 8801:
                    case 9101:
                    case 10101:
                    case 13101:
                    case 13201:
                    case 15201:
                        w.default.Instance.ShowGuide();
                        break;
                    case 3102:
                    case 3602:
                    case 4202:
                    case 8102:
                    case 8202:
                    case 10102:
                    case 11201:
                    case 12201:
                    case 13202:
                    case 14201:
                    case 11602:
                    case 12602:
                    case 14602:
                        w.default.Instance.ShowGuide(this.BottomToggles[l.Battle].node);
                        break;
                    case 4106:
                    case 8107:
                    case 8502:
                        w.default.Instance.ShowGuide(this.BottomToggles[l.Main].node);
                        break;
                    case 5102:
                        w.default.Instance.ShowGuide(this.BagBtn.node);
                        break;
                    case 6102:
                    case 7202:
                    case 15102:
                    case 15202:
                        w.default.Instance.ShowGuide(this.BottomToggles[l.Hero].node);
                        break;
                    case 8802:
                        w.default.Instance.ShowGuide(this.TaskNode)
                }
            }, t.prototype.ShowRightDownButtons = function() {
                if (A.default.Instance.IsGameModuleUnlock(1010)[0]) {
                    var e = [];
                    for (var t in _.DataCenter.Instance.ActivityFrameMap) {
                        var n = _.DataCenter.Instance.ActivityConfigs[t];
                        A.default.Instance.GetActivityPositionAndSort(n.Common)[0][0] == R.ActivityShowPostion.MainRightBottom && e.push(n)
                    }
                    this._keyToButton = {}, this._keys = [];
                    for (var o = 0; o < e.length; o++) {
                        n = e[o];
                        var r = cc.instantiate(this._buttonPrefab);
                        r.children[0].children[0].getComponent(cc.Label).string = n.Common.Title, this.SetRightDownActivityIcon(n.Common.Icon, r.children[0].getComponent(cc.Sprite)), r.setParent(this.RightDownBottomContainer), r.name = n._id.toString(), this._keys.push(n._id), this._keyToButton[n._id] = r.getComponent(L.default), r.off("click", this.OnRightDownButtonClick, this), r.on("click", this.OnRightDownButtonClick, this)
                    }
                    this.OnActivityDataChanges()
                }
            }, t.prototype.SetRightDownActivityIcon = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return n = S.UIUtlity.GetIconPath(e), [4, A.default.LoadActivityTexture(n)];
                            case 1:
                                return o = r.sent(), this.isValid ? (this._loadAssets.push(o), t.spriteFrame = o, [2]) : (c.AssetsManager.Instance.UnloadAsset(o), [2])
                        }
                    })
                })
            }, t.prototype.SetBindActivityBtn = function() {
                if (A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Activity)[0] && this._iconTimeBtnPrefab)
                    for (var e in _.DataCenter.Instance.ActivityConfigs) {
                        var t = _.DataCenter.Instance.ActivityConfigs[e],
                            n = A.default.Instance.GetActivityPositionAndSort(t.Common);
                        if (t.Common.Type == y.ActivityType.Bind && n[0][0] == R.ActivityShowPostion.MainRightBottom) {
                            var o = !1,
                                r = this.BottomRightLayoutNode.children[3];
                            if (A.default.Instance.IsGameModuleUnlock(t.Common.GameModule)[0]) {
                                var i = _.DataCenter.Instance.GetDataById(g.UserActivity_Model, t._id);
                                if (i) {
                                    var a = A.default.Instance.ComputeExtraShowDeadTime(t.Common);
                                    _.RpcComponent.Instance.ServerTime < a && (i.IntArray[0] && i.IntArray[1] || (o = !0))
                                }
                            }
                            if (!o) return void(r && (r.active = !1));
                            var s = void 0;
                            r ? s = r.getComponent(B.default) : ((r = cc.instantiate(this._iconTimeBtnPrefab)).setParent(this.BottomRightLayoutNode), r.name = t._id.toString(), r.y = 75, r.on("click", this.OnBottomRightActivityClick, this), s = r.getComponent(B.default), this.SetRightDownActivityIcon(t.Common.Icon, s.Icon), s.SetNameLabel(t.Common.Title), s.SetTimeLabel(A.default.Instance.ComputeExtraShowDeadTime(t.Common), t._id));
                            var l = R.ActivityData.GetTopicActivityTypeToRedDot(t.Common.Type),
                                c = !1;
                            l && (c = l.callBackFunc({
                                Value1: t._id
                            })), s.SetReddot(c);
                            break
                        }
                    }
            }, t.prototype.OnBottomRightActivityClick = function(e) {
                G.default.OpenActivityPanel(Number(e.node.name))
            }, t.prototype.ComputeRedDot = function(e) {
                var t = _.DataCenter.Instance.ActivityFrameMap[e];
                if (null == t) return !1;
                for (var n = 0; n < t.length; n++) {
                    var o = t[n],
                        r = _.DataCenter.Instance.ActivityConfigs[o];
                    if (null != r) {
                        var i = R.ActivityData.GetTopicActivityTypeToRedDot(r.Common.Type);
                        if (i && i.callBackFunc && i.callBackFunc({
                                Value1: r._id
                            })) return !0
                    }
                }
                return !1
            }, t.prototype.OnActivityDataChanges = function() {
                if (this._keys && this._keys.length > 0)
                    for (var e = 0; e < this._keys.length; e++) {
                        var t = this._keys[e];
                        this._keyToButton[t].SetRedDot(this.ComputeRedDot(t))
                    }
                this._topRightNodes.forEach(function(e) {
                    var t = e.getComponent(B.default),
                        n = Number(e.name),
                        o = _.DataCenter.Instance.ActivityConfigs[n],
                        r = R.ActivityData.GetTopicActivityTypeToRedDot(o.Common.Type),
                        i = !1;
                    r && (i = r.callBackFunc({
                        Value1: n
                    })), t.SetReddot(i)
                })
            }, t.prototype.OnRightDownButtonClick = function(e) {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.TimeLimitedActivityPanel.Path, e.node.name)
            }, t.prototype.RefreshModuleGuide = function(e, t) {
                k.default.instance.SetModuleActive(this.BottomToggles[e].node, t)
            }, t.prototype.OnPaySuccess = function() {
                P.default.Instance.CheckActivitySideButtons(), P.default.Instance.CheckSummonActivityList()
            }, t.prototype.OnModelChange = function(e) {
                for (var t in e) switch (Number.parseInt(t)) {
                    case y.GiftPackType.SubscribePrivilege:
                        this.CheckAssistantModule()
                }
            }, t.prototype.OnGiftPackChange = function() {}, t.prototype.OnUserHeroChange = function() {
                P.default.Instance.AngelDataCheckUnlock(!0)
            }, t.prototype.OnToggleMainSceneModulesButtonClick = function() {
                var e = A.default.Instance.IsGameModuleOpen(y.GameModuleType.MainUISimplifyMode),
                    t = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.MainUISimplifyMode)[0];
                if (e && t) {
                    var n = A.default.GetFunctionSkipState(y.FunctionSkipKey.MainUISimplifyMode);
                    A.default.SetFunctionSkipState(y.FunctionSkipKey.MainUISimplifyMode, !n, function() {
                        c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CHANGE_MAIN_SCENE_BUTTON_VISIBLE)
                    })
                } else c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CHANGE_MAIN_SCENE_BUTTON_VISIBLE);
                this.SetSimplfilyMode()
            }, t.prototype.SetSimplfilyMode = function() {
                var e = A.default.Instance.IsGameModuleOpen(y.GameModuleType.MainUISimplifyMode),
                    t = A.default.Instance.IsGameModuleUnlock(y.GameModuleType.MainUISimplifyMode)[0];
                if (e && t) {
                    var n = A.default.GetFunctionSkipState(y.FunctionSkipKey.MainUISimplifyMode);
                    this.SimplifyButton.node.active = n
                } else this.SimplifyButton.node.active = !1
            }, t.prototype.SetNewPersonalityHideBtn = function() {
                var e = _.DataCenter.Instance.GetArrayData(v.UserDataKey.MainBackground);
                this.NewPersonalityHideButton.node.active = e[v.CustomizeMainSceneType.NewPersonality] > 0, e[v.CustomizeMainSceneType.NewPersonality] || (this._isHideUI = !1, c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_NEWPERSONALITY_HIDE_MAINUI, !0), this.ShowNodes()), this.NewPersonalityHideBtnBg.spriteFrame = this._isHideUI ? S.UIUtlity.COMMON_ATLAS5.getSpriteFrame("newPersonality_showUI") : S.UIUtlity.COMMON_ATLAS5.getSpriteFrame("newPersonality_hideUI")
            }, t.prototype.OnClickAssistantButton = function() {
                var e = A.default.Instance.IsGameModuleUnlock(v.GameModuleType.Helper);
                e[0] ? c.UIManager.Instance.ShowUIPanel(d.PanelConfig.NewAssistantPanel.Path) : S.UIUtlity.ShowFloatingHint(e[1])
            }, t.prototype.OnClickLeftVerticalBtn = function() {
                this._leftVerticalState = !this._leftVerticalState, this._leftVerticalState ? (this.LeftVerticalLayout.active = this._leftVerticalState, this.LeftVerticalBtnBg.node.angle = 180, this._layoutAlphaTween && this._layoutAlphaTween.stop(), this.LeftVerticalLayout.opacity = 20, this._layoutAlphaTween = cc.tween(this.LeftVerticalLayout).to(.25, {
                    opacity: 255
                }, {
                    easing: "cubicIn"
                }).start()) : (this.LeftVerticalLayout.active = this._leftVerticalState, this.LeftVerticalBtnBg.node.angle = 0)
            }, t.prototype.OnClickCashMallBtn = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.CashMallPanel.Path)
            }, t.prototype.OnClickBannerLeftButton = function() {
                var e = this.PageView.getCurrentPageIndex(),
                    t = e - 1 >= 0 ? e - 1 : 0;
                this.PageView.scrollToPage(t, 1)
            }, t.prototype.OnClickBannerRightButton = function() {
                var e = this.PageView.getCurrentPageIndex(),
                    t = e + 1 <= this.PageView.content.childrenCount - 1 ? e + 1 : this.PageView.content.childrenCount - 1;
                this.PageView.scrollToPage(t, 1)
            }, t.prototype.OnClickSimplifyButton = function() {
                var e = this;
                this.SimplifyModeMaskNode.active = !0, this._gameModuleDatas.forEach(function(t, n) {
                    if (!e._simplifyBtns[n]) {
                        var o = cc.instantiate(e._simplifyPrefab);
                        o.parent = e.SimplifyModeContent, e._simplifyBtns[n] = o.getComponent(x.default)
                    }
                    var r = {};
                    r.Atlas = e._atlas, r.GameModuleId = t.Id, r.Name = t.Name, r.PanelId = t.PanelId, r.Param = t.Param, e._simplifyBtns[n].Init(r), p.RedDotManager.Instance.Bind(e._simplifyBtns[n].node, e._reddots[n])
                })
            }, t.prototype.OnSimplifyModeMaskNodeClick = function() {
                this.SimplifyModeMaskNode.active = !1
            }, t.prototype.OnClickPoster = function() {
                var e = this.PageView.getCurrentPageIndex();
                if (this._bannerSkipConfigs && this._bannerSkipConfigs[e]) {
                    var t = this._bannerSkipConfigs[e];
                    switch (t.CustomPart.Type) {
                        case y.BannerCampaignType.JumpWebsite:
                            window.open(t.CustomPart.SkipParam);
                            break;
                        case y.BannerCampaignType.JumpGift:
                            t.CustomPart.SkipParam && A.default.ShowPanelByGetWayId(Number(t.CustomPart.SkipParam), !1)
                    }
                }
            }, t.prototype.ActivityPreviewBtnState = function() {
                var e, t = A.default.Instance.IsGameModuleOpen(v.GameModuleType.ActivityPreview),
                    n = _.DataCenter.Instance.GetDataById(g.GameModule_Model, v.GameModuleType.ActivityPreview);
                e = !n || n.IsUnlocked, this.ActivityPreviewBtn.node.active = t && e, this.RefreshActPreviewRedDot()
            }, t.prototype.SetIconTimeBtnPrefab = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._iconTimeBtnPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(d.BundlePath.ICON_TIME_BUTTON, cc.Prefab)]);
                            case 1:
                                if (e._iconTimeBtnPrefab = t.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._iconTimeBtnPrefab), [2];
                                t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetTopButtonNode = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return [4, this.SetIconTimeBtnPrefab()];
                            case 1:
                                return e.sent(), this.SetTopRightCotnent(), this.SetArtifactNoticeButton(), this.SetBindActivityBtn(), [2]
                        }
                    })
                })
            }, t.prototype.SetArtifactNoticeButton = function() {
                var e = this;
                if (A.default.Instance.IsGameModuleOpen(y.GameModuleType.Artifact)) {
                    var t = _.ConfigDataComponent.Instance.GetGlobalSettingByKey("ArtifactOpenTime"),
                        n = _.ConfigDataComponent.Instance.GetGlobalSettingByKey("ArtifactNoticeShowTime"),
                        o = t - n * v.Etc.HourDuration,
                        r = function() {
                            return a(e, void 0, void 0, function() {
                                var e, n, o;
                                return s(this, function(r) {
                                    switch (r.label) {
                                        case 0:
                                            return this._artifactNoticeNode || (this._artifactNoticeNode = cc.instantiate(this._iconTimeBtnPrefab), this._artifactNoticeNode.parent = this.TopButtonLeftNode, this._artifactNoticeNode.on("click", this.ClickArtifactNotice, this)), this._artifactNoticeNode.active = !0, e = this._artifactNoticeNode.getComponent(B.default), [4, this.LoadDynamicAsset("ArtifactPanel/PNG/NoticeIcon", cc.SpriteFrame)];
                                        case 1:
                                            return n = r.sent(), this.isValid ? (e.LoadIcon(n), e.SetNameLabel("artifact_notice_name".ToUILocale()), o = (t - _.RpcComponent.Instance.ServerTime) / 1e3, this.scheduleOnce(this.DestoryArtifactNoticeButton.bind(this), o), [2]) : (c.AssetsManager.Instance.UnloadAsset(n), [2])
                                    }
                                })
                            })
                        };
                    if (!(_.RpcComponent.Instance.ServerTime >= t))
                        if (_.RpcComponent.Instance.ServerTime < o) {
                            var i = (o - _.RpcComponent.Instance.ServerTime) / 1e3;
                            this.scheduleOnce(r.bind(this), i)
                        } else r()
                }
            }, t.prototype.DestoryArtifactNoticeButton = function() {
                this._artifactNoticeNode && (this._artifactNoticeNode.removeFromParent(), this._artifactNoticeNode.destroy(), this._artifactNoticeNode = null)
            }, t.prototype.SetActivityWarTokenButton = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, u;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                if (!A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Activity)[0]) return [3, 4];
                                for (t in e = [], _.DataCenter.Instance.ActivityConfigs) _.DataCenter.Instance.ActivityConfigs[t].Common.Type != y.ActivityType.ActiveWarToken && _.DataCenter.Instance.ActivityConfigs[t].Common.Type != y.ActivityType.WarToken || (n = A.default.GetActivityUnlockState(_.DataCenter.Instance.ActivityConfigs[t].Common), o = _.DataCenter.Instance.ActivityConfigs[t], n && o.CustomPart.BuyDays > 0 && _.RpcComponent.Instance.ServerTime < o.Common.StartTime + o.CustomPart.BuyDays * v.Etc.DayDuration && e.push(_.DataCenter.Instance.ActivityConfigs[t]));
                                return e.length > 0 ? (e.sort(function(e, t) {
                                    return t._id - e._id
                                }), [4, this.SetIconTimeBtnPrefab()]) : [3, 4];
                            case 1:
                                return s.sent(), this._activityWarTokenNode || (this._activityWarTokenNode = cc.instantiate(this._iconTimeBtnPrefab), this._activityWarTokenNode.parent = this.TopButtonRightNode), this._activityWarTokenNode.active = !0, r = this._activityWarTokenNode.getComponent(B.default), (i = e[0]).Common.Icon ? (a = S.UIUtlity.GetIconPath(i.Common.Icon), [4, A.default.LoadActivityTexture(a)]) : [3, 3];
                            case 2:
                                if (l = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(l), [2];
                                this._loadAssets.push(l), r.LoadIcon(l), s.label = 3;
                            case 3:
                                i.Common.ShortName ? r.SetNameLabel(i.Common.ShortName) : r.SetNameLabel(i.Common.Title), u = R.ActivityData.GetTopicActivityTypeToRedDot(i.Common.Type), r.SetReddot(u.callBackFunc({
                                    Value1: i._id
                                })), r.SetTimeLabel(i.Common.StartTime + i.CustomPart.BuyDays * v.Etc.DayDuration), r.SetSpineEffect(["UI_effect_xinyuanzhaohuan_xinyuanzhuli2", "Ani_effect_xinyuanzhaohuan_xinyuanzhuli2"]), s.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetTopRightCotnent = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, u, p;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                if (!A.default.Instance.IsGameModuleUnlock(y.GameModuleType.Activity)[0]) return [2];
                                for (t in this._topRightNodes.forEach(function(e) {
                                        e.active = !1
                                    }), e = [], _.DataCenter.Instance.ActivityConfigs) A.default.Instance.GetActivityPositionAndSort(_.DataCenter.Instance.ActivityConfigs[t].Common)[0][0] == R.ActivityShowPostion.MainRightTop && e.length < 3 && A.default.GetActivityUnlockState(_.DataCenter.Instance.ActivityConfigs[t].Common) && e.push(_.DataCenter.Instance.ActivityConfigs[t]);
                                if (!e.length) return [2];
                                e.sort(function(e, t) {
                                    var n = A.default.Instance.ComputeActivitStartTime(e.Common);
                                    return A.default.Instance.ComputeActivitStartTime(t.Common) - n
                                }), n = 0, s.label = 1;
                            case 1:
                                return n < e.length ? (o = e[n], this._topRightNodes[n] || (this._topRightNodes[n] = cc.instantiate(this._iconTimeBtnPrefab), this._topRightNodes[n].parent = this.TopButtonRightNode, this._topRightNodes[n].on("click", this.OnClickTopRightBtn, this)), this._topRightNodes[n].name = o._id.toString(), this._topRightNodes[n].active = !0, r = this._topRightNodes[n].getComponent(B.default), i = R.ActivityData.GetTopicActivityTypeToRedDot(o.Common.Type), a = !1, l = void 0, i && (a = i.callBackFunc({
                                    Value1: o._id
                                })), l = o.Common.ShowDays ? A.default.Instance.ComputeMainUIShowOffTime(o.Common) : A.default.Instance.ComputeExtraShowDeadTime(o.Common), u = S.UIUtlity.GetIconPath(o.Common.Icon), [4, A.default.LoadActivityTexture(u)]) : [3, 4];
                            case 2:
                                if (p = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(p), [2];
                                this._loadAssets.push(p), r.LoadIcon(p), r.SetReddot(a), o.Common.ShortName ? r.SetNameLabel(o.Common.ShortName) : r.SetNameLabel(o.Common.Title), o.Common.IsHide && 1 == o.Common.IsHide[0] ? r.HideTimeLabel() : r.SetTimeLabel(l), o.Common.SpineEffect && r.SetSpineEffect(o.Common.SpineEffect), s.label = 3;
                            case 3:
                                return n++, [3, 1];
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.CheckIsShowMonthCardButton = function() {
                for (var e = _.DataCenter.Instance.GetDataById(g.MallActivity_Model, y.GiftPackType.MonthCard), t = 0, n = 0; n < e.Int2DArray.length; n++) e.Int2DArray[n].Items && e.Int2DArray[n].Items.length > 2 && e.Int2DArray[n].Items[2] < e.Int2DArray[n].Items[1] && t++;
                return t != e.Int2DArray.length
            }, t.prototype.CheckIsShowDailySelectionButton = function() {
                var e = _.DataCenter.Instance.GetDataById(g.MallActivity_Model, y.GiftPackType.DailySelection),
                    t = _.DataCenter.Instance.GetDataById(g.MallActivity_Model, y.GiftPackType.DailyRecommend),
                    n = !1,
                    o = e.PackIds[0],
                    r = _.ConfigDataComponent.Instance.GetConfigById(f.GiftPack_Config, o);
                if (A.default.Instance.GetGiftBuyCount(o) < r.LimitCount) return !0;
                var i = e.PackIds[e.PackIds.length - 1],
                    a = _.ConfigDataComponent.Instance.GetConfigById(f.GiftPack_Config, i);
                if (A.default.Instance.GetGiftBuyCount(i) >= a.LimitCount && 0 != a.LimitType && (n = !0), !n) {
                    for (var s = 1; s < e.PackIds.length - 1; s++) {
                        var l = _.ConfigDataComponent.Instance.GetConfigById(f.GiftPack_Config, e.PackIds[s]);
                        if (A.default.Instance.GetGiftBuyCount(e.PackIds[s]) < l.LimitCount) return !0
                    }
                    n = !0
                }
                var c = !1,
                    u = t.PackIds[0],
                    p = _.ConfigDataComponent.Instance.GetConfigById(f.GiftPack_Config, u);
                if (A.default.Instance.GetGiftBuyCount(u) < p.LimitCount) return !0;
                var d = t.PackIds[t.PackIds.length - 1],
                    h = _.ConfigDataComponent.Instance.GetConfigById(f.GiftPack_Config, d);
                if (A.default.Instance.GetGiftBuyCount(d) >= h.LimitCount && 0 != h.LimitType && (c = !0), !c) {
                    for (s = 1; s < t.PackIds.length - 1; s++)
                        if (l = _.ConfigDataComponent.Instance.GetConfigById(f.GiftPack_Config, t.PackIds[s]), A.default.Instance.GetGiftBuyCount(t.PackIds[s]) < l.LimitCount) return !0;
                    c = !0
                }
                return !1
            }, t.prototype.RefreshActPreviewRedDot = function() {
                this.ActivityPreviewBtn.node.getChildByName("RedDot").active = p.RedDotManager.Instance.RedDot.ActivityPreviewNode.callBackFunc()
            }, t.prototype.SetUserTitleIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.UserTitleIcon.node.active = !1, [2];
                            case 1:
                                return !(e = t.sent()) || e.nowLevel <= 0 ? (this.UserTitleIcon.node.active = !1, [2]) : (this.UserTitleIcon.sizeMode = cc.Sprite.SizeMode.TRIMMED, this.UserTitleIcon.spriteFrame = e.spriteFrame, this.UserTitleIcon.node.active = !0, [3, 3]);
                            case 2:
                                this.UserTitleIcon.node.active = !1, t.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetOffServiceTip = function() {
                var e, t;
                if (_.DataCenter.Instance.SystemMaintainModel.forEach(function(n) {
                        n.StartTime > _.RpcComponent.Instance.ServerTime && (t ? n.StartTime < t && (t = n.StartTime, e = n) : (t = n.StartTime, e = n))
                    }), !(!e || e.StartZone && e.EndZone && (_.DataCenter.Zone < e.StartZone || e.EndZone < _.DataCenter.Zone) || "all" != e.Channel && e.Channel != _.GlobalConfigComponent.Instance.Channel || "all" != e.Locale && e.Locale != _.GlobalConfigComponent.Instance.Locale)) {
                    var n, o = e.Notice.split("@@", 1);
                    n = o.length > 1 ? O.TimeUtil.StrToTime(o[0]) : e.NoticeTime ? e.NoticeTime : e.EndTime, this._offServiceDuration = (n - e.StartTime) / v.Etc.MinuteDuration;
                    for (var r = _.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, v.LevelParamType.MaintainNotificationInterval), i = Math.floor((e.StartTime - _.RpcComponent.Instance.ServerTime) / v.Etc.SecondDuration), a = 0; a < r.Data.length; a++)
                        if (this._offServiceInterval = r.Data[a], i > this._offServiceInterval) {
                            var s = i - this._offServiceInterval;
                            return this.unschedule(this.ShowOffServiceTIpHint), void this.scheduleOnce(this.ShowOffServiceTIpHint, s)
                        }
                }
            }, t.prototype.ShowOffServiceTIpHint = function() {
                var e = "OffService_Hint_Tip".ToUILocale().Fmt(this._offServiceInterval / 60, this._offServiceDuration);
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.OffServiceTipHint.Path, e)
            }, t.prototype.DisplayLoginBroadcast = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._LoginBroadcastComponent ? [3, 3] : this._LoginBroadcastPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("MainPanel/Components/LoginBroadcastComponent")]);
                            case 1:
                                e._LoginBroadcastPrefab = n.sent(), n.label = 2;
                            case 2:
                                t = cc.instantiate(this._LoginBroadcastPrefab), this._LoginBroadcastComponent = t.getComponent(D.default), t.parent = this.LoginBroadcast, n.label = 3;
                            case 3:
                                return this._LoginBroadcastComponent.Init(_.DataCenter.Instance.LoginBroadcastWaitingArr[0]), [2]
                        }
                    })
                })
            }, t.prototype.CheckAllianceBossOpenHint = function() {
                var e = this;
                if (A.default.Instance.IsGameModuleUnlock(y.GameModuleType.AllianceBOSSBattle)[0] && A.default.Instance.IsGameModuleOpen(y.GameModuleType.AllianceBOSSBattle)) {
                    var t = _.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceBossLevel");
                    if (_.DataCenter.Instance.AllianceId && !(_.DataCenter.Instance.AllianceInfo.Level < t)) {
                        var n = _.RpcComponent.Instance.ServerTime,
                            o = _.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, v.LevelParamType.AllianceBOSSBattleTime),
                            r = O.TimeUtil.Get0ClockTs(n) + y.Etc.HourDuration * o.Data[0] + y.Etc.MinuteDuration * o.Data[1];
                        n < r && this.scheduleOnce(function() {
                            e.SetAllianceBossHint()
                        }, Math.floor((r - n) / 1e3))
                    }
                }
            }, t.prototype.SetAllianceBossHint = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._gameModuleOpenHintComponent ? [3, 2] : [4, this.LoadDynamicAsset("MainPanel/Components/GameModuleOpenHintComponent")];
                            case 1:
                                if (e = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                (t = cc.instantiate(e)).setParent(this.GameModuleOpenHintNode), this._gameModuleOpenHintComponent = t.getComponent(z.default), n.label = 2;
                            case 2:
                                return this.GameModuleOpenHintNode.active = !0, this._gameModuleOpenHintComponent.node.active = !0, this._gameModuleOpenHintComponent.Init("allianceBoss_open_hint".ToUILocale()), [2]
                        }
                    })
                })
            }, t.prototype.ClickMonthCard = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.MallMonthCardPanel.Path)
            }, t.prototype.ClickArtifactNotice = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.ArtifactNoticePanel.Path)
            }, t.prototype.ClickDailySelect = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.MallDailyChoosePanel.Path)
            }, t.prototype.OnClickTopRightBtn = function(e) {
                var t = Number.parseInt(e.target.name);
                G.default.OpenActivityPanel(t)
            }, t.prototype.SetBannerCampaign = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a, l, c, u, p, d = this;
                    return s(this, function() {
                        for (e in this._bannerSkipConfigs = [], this._nextRefreshTime = 0, _.DataCenter.Instance.ActivityConfigs) _.DataCenter.Instance.ActivityConfigs[e].Common.Type == y.ActivityType.BannerSkip && (t = A.default.Instance.ComputeDeadTime(_.DataCenter.Instance.ActivityConfigs[e].Common), _.RpcComponent.Instance.ServerTime < t && (n = _.DataCenter.Instance.ActivityConfigs[e], this._bannerSkipConfigs.push(n), this._nextRefreshTime = 0 == this._nextRefreshTime ? t : Math.min(this._nextRefreshTime, t)));
                        if (!(o = _.DataCenter.Instance.GetDataById(g.GameModule_Model, y.GameModuleType.Activity)) || !o.IsUnlocked) return [2];
                        if (this._isAutoTurningPages = !1, 0 == this._bannerSkipConfigs.length) return this.PageView.node.active = !1, [2];
                        for (this.BannerLeftButton.node.active = this._bannerSkipConfigs.length > 1, this.BannerRightButton.node.active = this._bannerSkipConfigs.length > 1, this.PageView.node.active = !0, this.PageView.removeAllPages(), this.PageIndicator.destroyAllChildren(), this._indicatorToggles = [], this.PageView.node.on("page-turning", this.OnPageChanged, this), r = 0; r < this._bannerSkipConfigs.length; r++) i = this._bannerSkipConfigs[r]._id, (a = new cc.Node(i.toString())).on(cc.Node.EventType.TOUCH_END, this.OnClickPoster, this), (l = a.addComponent(cc.Sprite)).trim = !1, l.sizeMode = cc.Sprite.SizeMode.RAW, this.LoadRollingPoster(l, i), this.PageView.addPage(a), (c = cc.instantiate(this.IndicatorToggle)).active = !0, c.setParent(this.PageIndicator), this._indicatorToggles.push(c.getComponent(cc.Toggle));
                        return this._bannerSkipConfigs.length > 1 && (this._isAutoTurningPages = !0), this._posterRollingTimer = 0, this.RefreshPageIndicator(), u = Math.pow(2, 31) - 1, (p = Math.min(u, this._nextRefreshTime - _.RpcComponent.Instance.ServerTime)) > 0 && setTimeout(function() {
                            d.SetBannerCampaign()
                        }, p), [2]
                    })
                })
            }, t.prototype.LoadRollingPoster = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return [4, A.default.LoadActivityTexture(_.DataCenter.Instance.ActivityConfigs[t].Common.BannerImage)];
                            case 1:
                                return n = o.sent(), this.isValid ? (e.spriteFrame = n, [2]) : (c.AssetsManager.Instance.UnloadAsset(n), [2])
                        }
                    })
                })
            }, t.prototype.RefreshPageIndicator = function() {
                var e = this.PageView.getCurrentPageIndex();
                this._indicatorToggles[e].isChecked = !0
            }, t.prototype.OnPageChanged = function() {
                this._posterRollingTimer = 0, this.RefreshPageIndicator()
            }, t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, t.prototype.SetChannelSchedule = function() {
                if (T.default.Instance.IsMainlandCheckChannel() && T.default.Instance.StorageAccountInfo.Current.AgeType != y.UserAgeType.Over18) {
                    var e = this.RemainingGameTime();
                    this.unschedule(this.ShowAgreementPanel), e > 0 ? this.scheduleOnce(this.ShowAgreementPanel, e / v.Etc.SecondDuration) : this.ShowAgreementPanel()
                }
            }, t.prototype.ShowAgreementPanel = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.AgreementPanel.Path, H.AgreementType.Under18NotInTime, function() {
                    cc.game.end()
                })
            }, t.prototype.RemainingGameTime = function() {
                var e = _.RpcComponent.Instance.ServerTime,
                    t = O.TimeUtil.GetHour(e);
                return t >= 20 && t <= 21 ? O.TimeUtil.GetIndexClockTs(e, 21) - e : 0
            }, t.prototype.RefreshBattleAni = function(e) {
                e == y.MapType.MainLine ? this.SetBattleInBattleAniNode() : this.SetWorldInBattleAniNode()
            }, t.prototype.SetWorldInBattleAniNode = function() {
                E.BattleManager.Instance.IsInBattle(y.MapType.TestTower) || E.BattleManager.Instance.IsInBattle(y.MapType.TowerHeart) || E.BattleManager.Instance.IsInBattle(y.MapType.TowerPower) || E.BattleManager.Instance.IsInBattle(y.MapType.TowerTech) || E.BattleManager.Instance.IsInBattle(y.MapType.TowerBreak) || E.BattleManager.Instance.IsInBattle(y.MapType.TowerFight) || E.BattleManager.Instance.IsInBattle(y.MapType.EndlessAbyssSingle) || E.BattleManager.Instance.IsInBattle(y.MapType.EndlessAbyssMulti) || E.BattleManager.Instance.IsInBattle(y.MapType.DailyInstanceCoin) || E.BattleManager.Instance.IsInBattle(y.MapType.DailyInstanceXp) || E.BattleManager.Instance.IsInBattle(y.MapType.DailyInstanceHero) || E.BattleManager.Instance.IsInBattle(y.MapType.DailyInstanceLuckyCharm) || E.BattleManager.Instance.IsInBattle(y.MapType.DailyInstanceAngel) || E.BattleManager.Instance.IsInBattle(y.MapType.DailyInstanceGem) || E.BattleManager.Instance.IsInBattle(y.MapType.SecretArea) || E.BattleManager.Instance.IsInBattle(y.MapType.AncientSacred) ? this.WorldInBattleAniNode.active = !0 : this.WorldInBattleAniNode.active = !1
            }, t.prototype.SetBattleInBattleAniNode = function() {
                E.BattleManager.Instance.IsInBattle(y.MapType.MainLine) ? this.BattleInBattleAniNode.active = !0 : this.BattleInBattleAniNode.active = !1
            }, t.prototype.ShowFloatIconPanel = function(e) {
                return void 0 === e && (e = !1), a(this, void 0, void 0, function() {
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return A.default.Instance.IsGameModuleOpen(v.GameModuleType.FloatIcon) && A.default.Instance.IsGameModuleUnlock(v.GameModuleType.FloatIcon)[0] ? [4, h.UIManager.Instance.ShowUIPanel(d.PanelConfig.FloatIconPanel.Path, e)] : [2, !1];
                            case 1:
                                return t.sent().node.setSiblingIndex(0), [2]
                        }
                    })
                })
            }, t.prototype.OnClickBtnStrong = function() {
                c.UIManager.Instance.ShowUIPanel(d.PanelConfig.IWantStrongPanel.Path)
            }, t.prototype.OnClickNewPersonalityHideButton = function() {
                var e = this;
                this._isHideUI = !this._isHideUI, c.Game.EventDispatcher.Emit(u.EventKeys.EVENT_NEWPERSONALITY_HIDE_MAINUI, !this._isHideUI), this._isHideUI ? this.HideNodes() : this.SetDefaultTab(), this.NewPersonalityHideNodes.forEach(function(t) {
                    t.active = !e._isHideUI
                }), this.NewPersonalityHideBtnBg.spriteFrame = this._isHideUI ? S.UIUtlity.COMMON_ATLAS5.getSpriteFrame("newPersonality_showUI") : S.UIUtlity.COMMON_ATLAS5.getSpriteFrame("newPersonality_hideUI")
            }, t.prototype.Close = function(t) {
                e.prototype.Close.call(this, t);
                var n = h.UIManager.Instance.GetUIPanel(d.PanelConfig.FloatIconPanel.Path);
                n && n.Close()
            }, t.isNeedPlayRewardAnim = 0, i([Z(cc.Node)], t.prototype, "HeaderNode", void 0), i([Z(cc.Node)], t.prototype, "DockNode", void 0), i([Z(cc.Node)], t.prototype, "TopLeftNode", void 0), i([Z(cc.Node)], t.prototype, "TopRightNode", void 0), i([Z(cc.Node)], t.prototype, "BottomLeftNode", void 0), i([Z(cc.Node)], t.prototype, "BottomRightNode", void 0), i([Z(cc.Label)], t.prototype, "UserNameLabel", void 0), i([Z(cc.Node)], t.prototype, "UserIconContainer", void 0), i([Z(cc.Node)], t.prototype, "HeadNode", void 0), i([Z(cc.Label)], t.prototype, "BattlePower", void 0), i([Z(cc.Label)], t.prototype, "LevelLabel", void 0), i([Z(cc.Button)], t.prototype, "BuyVoucherCurrencyBtn", void 0), i([Z(m.default)], t.prototype, "VoucherCurrency", void 0), i([Z(m.default)], t.prototype, "DiamondCurrency", void 0), i([Z(cc.Button)], t.prototype, "BuyDiamondBtn", void 0), i([Z(m.default)], t.prototype, "CoinCurrency", void 0), i([Z(cc.Button)], t.prototype, "BuyCoindBtn", void 0), i([Z(I.default)], t.prototype, "BottomToggles", void 0), i([Z(sp.Skeleton)], t.prototype, "BottomToggleEffect", void 0), i([Z(j.default)], t.prototype, "MallBubbleTipComponent", void 0), i([Z(cc.Node)], t.prototype, "ChatBtnContainer", void 0), i([Z(cc.Button)], t.prototype, "FriendsBtn", void 0), i([Z(cc.Button)], t.prototype, "MailBtn", void 0), i([Z(cc.Button)], t.prototype, "ActivityPreviewBtn", void 0), i([Z(cc.Button)], t.prototype, "CustomServiceBtn", void 0), i([Z(cc.Button)], t.prototype, "BagBtn", void 0), i([Z(cc.Label)], t.prototype, "BagBtnLabel", void 0), i([Z(cc.Node)], t.prototype, "MainUITaskNode", void 0), i([Z(C.default)], t.prototype, "TopLeftSlider", void 0), i([Z(C.default)], t.prototype, "TopRightSlider", void 0), i([Z(cc.Sprite)], t.prototype, "FlyItemSprite", void 0), i([Z(cc.Node)], t.prototype, "FlyEndPosHead", void 0), i([Z(cc.Node)], t.prototype, "FlyEndPosCoin", void 0), i([Z(sp.Skeleton)], t.prototype, "FlashAnim", void 0), i([Z(sp.Skeleton)], t.prototype, "CoinFlashAnim", void 0), i([Z(cc.Node)], t.prototype, "BottomRightLayoutNode", void 0), i([Z(cc.Node)], t.prototype, "RightDownBottomContainer", void 0), i([Z(cc.Label)], t.prototype, "UTC", void 0), i([Z(cc.Button)], t.prototype, "ToggleMainSceneMudulesButton", void 0), i([Z(cc.Button)], t.prototype, "AssistantButton", void 0), i([Z(cc.Button)], t.prototype, "LeftVerticalBtn", void 0), i([Z(cc.Sprite)], t.prototype, "LeftVerticalBtnBg", void 0), i([Z(cc.Node)], t.prototype, "LeftVerticalLayout", void 0), i([Z(cc.Sprite)], t.prototype, "UserTitleIcon", void 0), i([Z(cc.Node)], t.prototype, "LoginBroadcast", void 0), i([Z(cc.Node)], t.prototype, "TopButtonLeftNode", void 0), i([Z(cc.Node)], t.prototype, "TopButtonRightNode", void 0), i([Z(cc.Button)], t.prototype, "CashMallBtn", void 0), i([Z(cc.Label)], t.prototype, "CashMallLabel", void 0), i([Z(cc.Node)], t.prototype, "BubbleNode", void 0), i([Z(cc.Label)], t.prototype, "BubbleText", void 0), i([Z(cc.Sprite)], t.prototype, "BubbleAwwor", void 0), i([Z(cc.Sprite)], t.prototype, "BubbleBg", void 0), i([Z(cc.PageView)], t.prototype, "PageView", void 0), i([Z(cc.Node)], t.prototype, "PageIndicator", void 0), i([Z(cc.Node)], t.prototype, "IndicatorToggle", void 0), i([Z(cc.Button)], t.prototype, "BannerLeftButton", void 0), i([Z(cc.Button)], t.prototype, "BannerRightButton", void 0), i([Z(cc.Button)], t.prototype, "SimplifyButton", void 0), i([Z(cc.Label)], t.prototype, "SimplifyLabel", void 0), i([Z(cc.Node)], t.prototype, "SimplifyModeMaskNode", void 0), i([Z(cc.Node)], t.prototype, "SimplifyModeContent", void 0), i([Z(cc.Label)], t.prototype, "VipText", void 0), i([Z(cc.Label)], t.prototype, "VipLevel", void 0), i([Z(cc.Node)], t.prototype, "WorldInBattleAniNode", void 0), i([Z(cc.Node)], t.prototype, "BattleInBattleAniNode", void 0), i([Z(cc.Button)], t.prototype, "PowerBeStrong", void 0), i([Z(cc.Node)], t.prototype, "TaskNode", void 0), i([Z(cc.Button)], t.prototype, "NewPersonalityHideButton", void 0), i([Z(cc.Sprite)], t.prototype, "NewPersonalityHideBtnBg", void 0), i([Z(cc.Node)], t.prototype, "NewPersonalityHideNodes", void 0), i([Z(cc.Node)], t.prototype, "GameModuleOpenHintNode", void 0), n = i([V], t)
        }(c.BaseUIPanel);
        n.default = K, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameDataChecker": "GameDataChecker",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/AdjustAction": "AdjustAction",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ActivityBubbleTipComponent": "ActivityBubbleTipComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/GameModuleOpenHintComponent": "GameModuleOpenHintComponent",
        "../Components/GameUnlockFingerListener": "GameUnlockFingerListener",
        "../Components/GameUnlockPopListener": "GameUnlockPopListener",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/IconTimeBtn": "IconTimeBtn",
        "../Components/LoginBroadcastComponent": "LoginBroadcastComponent",
        "../Components/VerticalButtonSlider": "VerticalButtonSlider",
        "./ActivityBaseContent": "ActivityBaseContent",
        "./AgreementPanel": "AgreementPanel",
        "./BagPanel": "BagPanel",
        "./SimplifyModeFunctionBtnComponent": "SimplifyModeFunctionBtnComponent",
        "./TimeLimitedActivityComponent": "TimeLimitedActivityComponent",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    MainUITaskComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ae3f1VqeQlDbKRSQywyOhBd", "MainUITaskComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../RedDot/RedDotDataHandler"),
            m = e("../../Auxiliary/GuideManager"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MaskNode = null, t.Bg = null, t.DescLabel = null, t.TaskButton = null, t.GoToButton = null, t.GetButton = null, t.RedDot = null, t.RedDotNumberLabel = null, t.CommonRedDot = null, t.Bg1SpriteFrame = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.GoToButton.node.on("click", this.OnGoToButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this)
                }, t.prototype.onEnable = function() {
                    this.SetTaskConfigArr(), this.SortTaskConfig(), this.SetCurrentTask(), this.SetRedDot(), l.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(c.UserTask_Model._n_), this.OnTaskUserDataChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(c.UserTask_Model._n_), this.OnTaskUserDataChange, this)
                }, t.prototype.SetTaskConfigArr = function() {
                    var e = this;
                    if (!this._mainLineTaskConfigArr) {
                        this._mainLineTaskConfigArr = [], this._redDotTaskArray = [], d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.GuideTaskList).Data.forEach(function(t) {
                            var n = d.ConfigDataComponent.Instance.GetConfigById(u.TaskBase_Config, t);
                            e._mainLineTaskConfigArr.push(n)
                        });
                        var t = d.ConfigDataComponent.Instance.GetConfig(u.TaskBase_Config);
                        for (var n in t) t[n].Type != h.TaskType.MainLine && t[n].Type != h.TaskType.Daily && t[n].Type != h.TaskType.Weekly || this._redDotTaskArray.push(t[n])
                    }
                }, t.prototype.SortTaskConfig = function() {}, t.prototype.SortByCompleteState = function(e, t) {
                    var n = d.DataCenter.Instance.GetDataById(c.UserTask_Model, e.Id),
                        o = d.DataCenter.Instance.GetDataById(c.UserTask_Model, t.Id);
                    return !n.IsCompleted && o.IsCompleted ? -1 : n.IsCompleted && !o.IsCompleted ? 1 : n.Progress < e.TotalCount && o.Progress >= t.TotalCount ? 1 : n.Progress >= e.TotalCount && o.Progress < t.TotalCount ? -1 : this.SortBySortId(e, t)
                }, t.prototype.SortBySortId = function(e, t) {
                    return e.SortId < t.SortId ? -1 : e.SortId > t.SortId ? 1 : 0
                }, t.prototype.SetCurrentTask = function() {
                    for (var e, t = 0, n = this._mainLineTaskConfigArr; t < n.length; t++) {
                        var o = n[t],
                            r = d.DataCenter.Instance.GetDataById(c.UserTask_Model, o.Id);
                        if (r && f.default.IsTaskCanShow(o.Id) && !r.IsCompleted) {
                            e = o;
                            break
                        }
                    }
                    e ? this.SetTaskState(e) : (this.DescLabel.string = "guideTaskEnd".ToUILocale(), this._currentTaskConfig = null, this.GetButton.node.active = !1, this.GoToButton.node.active = !0, this.LoadDarkBg())
                }, t.prototype.SetTaskState = function(e) {
                    this._currentTaskConfig = e;
                    var t = d.DataCenter.Instance.GetDataById(c.UserTask_Model, e.Id);
                    e.Condition[0] == h.TaskConditionType.Adventure ? this.DescLabel.string = f.default.GetTaskDesc(e) : this.DescLabel.string = f.default.GetTaskDesc(e) + "(" + t.Progress + "/" + e.TotalCount + ")", t && !t.IsCompleted && t.Progress >= e.TotalCount ? (this.GetButton.node.active = !0, this.GoToButton.node.active = !1, this.Bg.spriteFrame = this.Bg1SpriteFrame) : (this.GetButton.node.active = !1, this.GoToButton.node.active = !0, this.LoadDarkBg())
                }, t.prototype.LoadDarkBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._darkBg ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset("Chatting/Atlas/mini-chat-bg", cc.SpriteFrame)]);
                                case 1:
                                    e._darkBg = t.sent(), this.isValid || l.AssetsManager.Instance.UnloadAsset(this._darkBg), t.label = 2;
                                case 2:
                                    return this.Bg.spriteFrame = this._darkBg, [2]
                            }
                        })
                    })
                }, t.prototype.SetRedDot = function() {
                    for (var e = 0, t = 0, n = this._redDotTaskArray; t < n.length; t++) {
                        var o = n[t];
                        if (f.default.IsTaskCanShow(o.Id)) {
                            var r = d.DataCenter.Instance.GetDataById(c.UserTask_Model, o.Id);
                            r && !r.IsCompleted && r.Progress >= o.TotalCount && e++
                        }
                    }
                    e > 0 ? (this.RedDot.active = !0, this.CommonRedDot.active = !1, this.RedDotNumberLabel.string = e.toString()) : (this.RedDot.active = !1, this.CommonRedDot.active = g.RedDotDataHandler.Instance.RefreshActiveCommandState())
                }, t.prototype.PlayAnimation = function() {
                    var e = this;
                    if (!this._isPlayAni) {
                        this._isPlayAni = !0;
                        var t = 520 / 1500;
                        cc.tween(this.MaskNode).call(function() {
                            e.DescLabel.node.active = !1
                        }).to(t, {
                            x: -825
                        }).call(function() {
                            e.DescLabel.node.active = !0
                        }).to(t, {
                            x: -305
                        }).call(function() {
                            e._isPlayAni = !1
                        }).start(), cc.tween(this.Bg.node).to(t, {
                            x: 520
                        }).to(t, {
                            x: 0
                        }).start(), cc.tween(this.GoToButton.target).to(t, {
                            x: -565
                        }).to(t, {
                            x: -45
                        }).start()
                    }
                }, t.prototype.OnTaskButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.TaskPanel.Path)
                }, t.prototype.OnGoToButtonClick = function() {
                    this._currentTaskConfig ? this._currentTaskConfig.GetWayId && f.default.ShowPanelByGetWayId(this._currentTaskConfig.GetWayId) : this.OnTaskButtonClick()
                }, t.prototype.SetFingerGuideData = function(e) {
                    var t = e.Condition[0];
                    switch (t) {
                        case h.TaskConditionType.ReceiveHangUpReward:
                            d.DataCenter.Instance.SetTempData("TaskConditionType" + t, !0)
                    }
                }, t.prototype.OnGetButtonClick = function() {
                    this.RequestDrawTaskReward()
                }, t.prototype.RequestDrawTaskReward = function() {
                    var e = this,
                        t = new c.Req_Task_DrawReward;
                    t.TaskIds = [this._currentTaskConfig.Id], d.RpcComponent.Instance.Call(t, function(t) {
                        e.PlayAnimation(), y.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    }, null, m.default.Instance.CurrentGroup)
                }, t.prototype.GetCanReceiveTaskIds = function() {
                    var e = [];
                    return this._mainLineTaskConfigArr && this._mainLineTaskConfigArr.forEach(function(t) {
                        var n = d.DataCenter.Instance.GetDataById(c.UserTask_Model, t.Id);
                        n && !n.IsCompleted && n.Progress >= t.TotalCount && e.push(t.Id)
                    }), e
                }, t.prototype.OnTaskUserDataChange = function() {
                    this.SortTaskConfig(), this.SetCurrentTask(), this.SetRedDot()
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._darkBg)
                }, i([C(cc.Node)], t.prototype, "MaskNode", void 0), i([C(cc.Sprite)], t.prototype, "Bg", void 0), i([C(cc.Label)], t.prototype, "DescLabel", void 0), i([C(cc.Button)], t.prototype, "TaskButton", void 0), i([C(cc.Button)], t.prototype, "GoToButton", void 0), i([C(cc.Button)], t.prototype, "GetButton", void 0), i([C(cc.Node)], t.prototype, "RedDot", void 0), i([C(cc.Label)], t.prototype, "RedDotNumberLabel", void 0), i([C(cc.Node)], t.prototype, "CommonRedDot", void 0), i([C(cc.SpriteFrame)], t.prototype, "Bg1SpriteFrame", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    MallActiveCommandPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "44510Q5IAdKt5A4HOL64Qtf", "MallActiveCommandPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../../Util/TimeUtil"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/ItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../Components/CustomLayout"),
            C = e("../Components/ElementScriptureListItem"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../Consts/GameEventIds"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.BannerTip = null, t.UnlockButton = null, t.UnlockButtonLabel = null, t.GoButton = null, t.RuleButton = null, t.ResetTime = null, t.MedalNumber = null, t.MedalPicture = null, t.RewardTitle = null, t.RewardPreviewLabel = null, t.RewardIndex = null, t.RewardItemContainer = null, t.SingleContainer = null, t.View = null, t.QuadBlue = null, t.QuadGrey = null, t.LevelCountBlue = null, t.LevelCountGrey = null, t._medalId = 12, t._configs = [], t._initCustomLayout = !0, t.warTokenConfigData = [], t._topItemKey = 0, t._itemComponentTable = [], t._recordKey = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallActiveCommandPanel/Component/ActiveCommandComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "mall_activeCommand".ToUILocale(), this.BannerTip.string = "mall_activeCommand_tip".ToUILocale(), this.UnlockButtonLabel.string = "climbTower_scripture_unlock_high".ToUILocale(), this.RewardPreviewLabel.string = "rewards_preview".ToUILocale(), this.RewardTitle.string = "rewards_preview".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.GoButton.node.on("click", this.OnGoButtonClick, this), this.UnlockButton.node.on("click", this.OnUnlockButtonClick, this), this._enterConfig = h.ConfigDataComponent.Instance.GetConfigById(p.WarTokenType_Config, I.WarTokenType.Active);
                    for (var t = 0; t < this._enterConfig.TaskList.length; t++) this._configs[t] = h.ConfigDataComponent.Instance.GetConfigById(p.WarTokenTask_Config, this._enterConfig.TaskList[t])
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._recordKey = 0, this._model = h.DataCenter.Instance.GetDataById(d.WarToken_Model, I.WarTokenType.Active), this.UnlockButton.node.active = !this._model.ActivePrivilege, this.MedalNumber.string = h.DataCenter.Instance.GetItemCount(this._medalId).toString(), this.CountDown(), this.unscheduleAllCallbacks(), this.schedule(this.CountDown, 1), this._initCustomLayout && (this.View.Init(this._singlePrefab), this._initCustomLayout = !1), this.View.RenderLayOut(this._configs.length, this._model.RewardIndex)
                }, t.prototype.ResetPanelState = function() {
                    this.LoadWarTokenBaseData()
                }, t.prototype.CountDown = function() {
                    var e = v.default.Instance.GetMallDeadTime(I.GiftPackType.WarTokenActive, f.TimeUtil.Get0ClockTs(this._model.StartTime));
                    if (null != e) {
                        var t = h.RpcComponent.Instance.ServerTime,
                            n = e - t;
                        n < 0 && (this._model = h.DataCenter.Instance.GetDataById(d.WarToken_Model, I.WarTokenType.Active), n = v.default.Instance.GetMallDeadTime(I.GiftPackType.WarTokenActive, f.TimeUtil.Get0ClockTs(this._model.StartTime)) - t), this.ResetTime.string = "mall_activeCommand_remainderTime".ToUILocale().Fmt(v.default.ActivityTimeLeftFormat(n))
                    } else this.ResetTime.node.active = !1
                }, t.prototype.LoadWarTokenBaseData = function() {
                    this.warTokenConfigData = [];
                    for (var e = h.ConfigDataComponent.Instance.GetConfigById(p.WarTokenType_Config, I.WarTokenType.Active), t = e.TaskList.length, n = 0; n < t; n++) {
                        var o = e.TaskList[n],
                            r = h.ConfigDataComponent.Instance.GetConfigById(p.WarTokenTask_Config, o);
                        this.warTokenConfigData.push(r)
                    }
                }, t.prototype.SetRewardPreviewUI = function() {
                    var e = Math.max(0, this._topItemKey - 1),
                        t = 10 * (Math.floor(e / 10) + 1);
                    this.warTokenConfigData[t].RequirePoint <= this._model.Point ? (this.QuadBlue.active = !0, this.QuadGrey.active = !1) : (this.QuadBlue.active = !1, this.QuadGrey.active = !0), this.LevelCountBlue.string = t.toString(), this.LevelCountGrey.string = t.toString(), this.SetPrevirwRewardItem(t)
                }, t.prototype.SetPrevirwRewardItem = function(e) {
                    if (this._recordKey != e) {
                        this._recordKey = e;
                        for (var t = this.warTokenConfigData[e], n = t.NormalReward.length + t.AdvanceReward.length, o = t.NormalReward.length, r = this.GetRewardState(e), i = 0; i < n; i++) {
                            null == this._itemComponentTable[i] && (this._itemComponentTable[i] = cc.instantiate(this._itemPrefab).getComponent(g.ItemComponent)), this._itemComponentTable[i].node.parent = this.RewardItemContainer;
                            var a = void 0,
                                s = void 0;
                            i < t.NormalReward.length ? (a = t.NormalReward[i].Items[0], s = t.NormalReward[i].Items[1]) : (a = t.AdvanceReward[i - o].Items[0], s = t.AdvanceReward[i - o].Items[1]), this._itemComponentTable[i].node.name = a.toString();
                            var c = h.ConfigDataComponent.Instance.GetConfigById(p.ItemBase_Config, a);
                            this._itemComponentTable[i].Init({
                                ItemId: a,
                                Count: s
                            }, c.Star ? g.ItemComponentType.ItemWithStar : g.ItemComponentType.ItemCommon), this._itemComponentTable[i].node.active = !0, r == l.PartReceive ? i < t.NormalReward.length ? this._itemComponentTable[i].SetReceivedTagState(!0) : this._itemComponentTable[i].SetReceivedTagState(!1) : r == l.ReceiveOver ? this._itemComponentTable[i].SetReceivedTagState(!0) : this._itemComponentTable[i].SetReceivedTagState(!1), r == l.PartReceive ? i < t.NormalReward.length ? (this._itemComponentTable[i].SetReceivedTagState(!0), this._itemComponentTable[i].SetLockFlag(!1)) : (this._itemComponentTable[i].SetReceivedTagState(!1), this._model.ActivePrivilege ? this._itemComponentTable[i].SetLockFlag(!1) : this._itemComponentTable[i].SetLockFlag(!0, "lock_yellow")) : r == l.ReceiveOver ? (this._itemComponentTable[i].SetReceivedTagState(!0), this._itemComponentTable[i].SetLockFlag(!1)) : (this._itemComponentTable[i].SetReceivedTagState(!1), i >= t.NormalReward.length ? this._model.ActivePrivilege ? this._itemComponentTable[i].SetLockFlag(!1) : this._itemComponentTable[i].SetLockFlag(!0, "lock_yellow") : this._itemComponentTable[i].SetLockFlag(!1))
                        }
                    }
                }, t.prototype.GetRewardState = function(e) {
                    var t = this.warTokenConfigData[e];
                    return this._model.Point < t.RequirePoint ? l.Lock : this._model.RewardIndex >= e + 1 ? this._model.ActivePrivilege ? l.ReceiveOver : l.PartReceive : l.NotReceive
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "mall_activeCommand".ToUILocale(),
                        titles: ["warToken_activity_subTitle".ToUILocale()],
                        contents: ["warToken_activity_ruleText".ToUILocale()]
                    };
                    m.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnGoButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(u.PanelConfig.TaskPanel.Path)
                }, t.prototype.OnUnlockButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(u.PanelConfig.ActivePrivilegePanel.Path, I.WarTokenType.Active)
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), c.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(b.GameEventIds.ChangeDataDetail.Fmt(d.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), c.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(b.GameEventIds.ChangeDataDetail.Fmt(d.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    if (t == this.View) {
                        var o = -1;
                        e.forEach(function(e, t) {
                            e.name = t.toString(), e.getComponent(C.default).InitUI(n._configs[t], t, n._configs.length - 1, I.WarTokenType.Active), o < 0 && (o = t)
                        });
                        var r = this.View.node.children[this.View.node.children.length - 1].name;
                        this._topItemKey = Number.parseInt(r), this.SetRewardPreviewUI()
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemRoot3" == t.parent.name && m.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.OnMallActivityDataChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == I.WarTokenType.Active) return void this.DisPlay(!0)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Label)], t.prototype, "BannerTip", void 0), i([P(cc.Button)], t.prototype, "UnlockButton", void 0), i([P(cc.Label)], t.prototype, "UnlockButtonLabel", void 0), i([P(cc.Button)], t.prototype, "GoButton", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.Label)], t.prototype, "ResetTime", void 0), i([P(cc.Label)], t.prototype, "MedalNumber", void 0), i([P(cc.Sprite)], t.prototype, "MedalPicture", void 0), i([P(cc.Label)], t.prototype, "RewardTitle", void 0), i([P(cc.Label)], t.prototype, "RewardPreviewLabel", void 0), i([P(cc.Label)], t.prototype, "RewardIndex", void 0), i([P(cc.Node)], t.prototype, "RewardItemContainer", void 0), i([P(cc.Node)], t.prototype, "SingleContainer", void 0), i([P(_.default)], t.prototype, "View", void 0), i([P(cc.Node)], t.prototype, "QuadBlue", void 0), i([P(cc.Node)], t.prototype, "QuadGrey", void 0), i([P(cc.Label)], t.prototype, "LevelCountBlue", void 0), i([P(cc.Label)], t.prototype, "LevelCountGrey", void 0), i([w], t)
            }(c.BaseUIPanel);
        n.default = A,
            function(e) {
                e[e.Lock = 0] = "Lock", e[e.NotReceive = 1] = "NotReceive", e[e.PartReceive = 2] = "PartReceive", e[e.ReceiveOver = 3] = "ReceiveOver"
            }(l || (l = {})), cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ElementScriptureListItem": "ElementScriptureListItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MallChosenGiftPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "50e26QZlz5AsL8axFZppxZ8", "MallChosenGiftPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/ItemComponent"),
            y = e("../../Channel/ChannelManager"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../../Util/TimeUtil"),
            C = e("../../../Consts/Etc"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.LeftTimeRichText = null, t.ItemContainer = null, t.BuyButton = null, t.DiscountLabel = null, t.DiscountValue = null, t.BuyButtonPriceLabel = null, t.BuyButtonAttainLabel = null, t.BuyButtonAttainValue = null, t.BuyLimitLabel = null, t.Sellout = null, t._modelId = 15, t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BuyButtonAttainLabel.string = "task_get_score_tag".ToUILocale(), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, I.GiftPackType.ChosenGiftPack), this._gift = d.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._model.IntValue), h.default.Instance.SetDisCount(this._gift.Discount, this.DiscountValue, this.DiscountLabel), this._deadLine = _.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime) + C.Etc.DayDuration, this.BuyButtonAttainValue.string = "x" + this._gift.VipPoint, this.BuyButtonPriceLabel.string = y.default.Instance.CurrencySymbol + y.default.Instance.ExchangeMoney(this._gift.Money)
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1);
                    var o = h.default.Instance.GetGiftBuyCount(this._gift.Id);
                    this.BuyButton.node.active = o < this._gift.LimitCount, this.Sellout.active = !this.BuyButton.node.active, this.BuyLimitLabel.string = "weekCard_limitedBuy".ToUILocale().Fmt(this._gift.LimitCount - o);
                    for (var r = 0; r < this._gift.Items.length; r++) {
                        if (null == this._items[r]) {
                            var i = cc.instantiate(this._itemPrefab);
                            i.setParent(this.ItemContainer), this._items[r] = i.getComponent(f.ItemComponent)
                        }
                        this._items[r].node.active = !0;
                        var a = d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._gift.Items[r].Items[0]);
                        this._items[r].Init({
                            ItemId: a.Id,
                            Count: this._gift.Items[r].Items[1]
                        }, a.Star ? f.ItemComponentType.ItemWithStar : f.ItemComponentType.ItemCommon)
                    }
                    for (r = this._gift.Items.length; r < this._items.length; r++) this._items[r].node.active = !1;
                    this._items.forEach(function(e) {
                        e.SetReceivedTagState(n.Sellout.active)
                    })
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - d.RpcComponent.Instance.ServerTime;
                    e < 0 ? (this.InitUI(), this.DisPlay()) : this.LeftTimeRichText.string = "chosenGift_refresh".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OnBuyButtonClick = function() {
                    y.default.Instance.Pay(this._gift.Id)
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemContainer_mcgx00" == t.parent.name && g.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([S(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([S(cc.Node)], t.prototype, "ItemContainer", void 0), i([S(cc.Button)], t.prototype, "BuyButton", void 0), i([S(cc.Label)], t.prototype, "DiscountLabel", void 0), i([S(cc.Label)], t.prototype, "DiscountValue", void 0), i([S(cc.Label)], t.prototype, "BuyButtonPriceLabel", void 0), i([S(cc.Label)], t.prototype, "BuyButtonAttainLabel", void 0), i([S(cc.Label)], t.prototype, "BuyButtonAttainValue", void 0), i([S(cc.Label)], t.prototype, "BuyLimitLabel", void 0), i([S(cc.Node)], t.prototype, "Sellout", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MallDailyChargePage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "10954EGKO9FS7opLmNpgOCe", "MallDailyChargePage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/ItemComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../../Auxiliary/GameRecord"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../../../Consts/GameEventIds"),
            v = e("../../Channel/ChannelManager"),
            b = e("./ProgressRewardComponent"),
            S = e("../../../Consts/Consts"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Desc = null, t.OrangeButtonLabel = null, t.OrangeButton = null, t.RedButtonLabel = null, t.RedButton = null, t.ReceivedTag = null, t.ChargeDesc = null, t.RewardContainer = null, t.ShopButtonLabel = null, t.ShopButton = null, t.ProgressRewardNode = null, t._items = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("FirstChargePanel/Components/ProgressRewardComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._progressRewardPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Desc.string = "mall_getBelowWonderfulReward".ToUILocale(), this.OrangeButtonLabel.string = "receive".ToUILocale(), this.RedButtonLabel.string = "mall_rightGo".ToUILocale(), this.ShopButtonLabel.string = d.ConfigDataComponent.Instance.GetLocale("ShopBase_name_12"), this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this), this.RedButton.node.on("click", this.OnRedButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this);
                    var t = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, g.GiftPackType.DailyPay).Phase,
                        n = d.ConfigDataComponent.Instance.GetConfigById(u.DailyPayRewards_Config, t);
                    this._rewards = n.Rewards, this._needPayCountYuan = d.ConfigDataComponent.Instance.GetConfigById(u.PayCount_Config, n.CountId).Count, this._needPayCount = 0 == this._needPayCountYuan ? 0 : v.default.Instance.ExchangeMoney(this._needPayCountYuan), this.SetItem()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, g.GiftPackType.DailyPay),
                        o = d.DataCenter.Instance.GetIntData(g.UserDataKey.DailyPay),
                        r = 1 == n.IntArray[0];
                    this.RedButton.node.active = o < this._needPayCountYuan, this.OrangeButton.node.active = o >= this._needPayCountYuan && !r, _.RedDotManager.Instance.Bind(this.OrangeButton.node, _.RedDotManager.Instance.RedDot.MallDailyChargeButtonNode), this.ReceivedTag.active = o >= this._needPayCountYuan && r;
                    var i = o + "/" + this._needPayCountYuan;
                    o >= this._needPayCountYuan && (i = "<color = 568f00>" + this._needPayCountYuan + "/" + this._needPayCountYuan + "</c>"), this.ChargeDesc.string = "mall_dailyCharge_desc".ToUILocale().Fmt(i), I.default.SetItem(I.GameRecordDefine.DailyChargeRedDot, d.RpcComponent.Instance.ServerTime), _.RedDotManager.Instance.RefreshRedDotNode(_.RedDotManager.Instance.RedDot.MallDailyChargeNode), this.SetProgressRewardNode(t), _.RedDotManager.Instance.Bind(this.ProgressRewardNode, _.RedDotManager.Instance.RedDot.DailyPayProgreeRewardNode)
                }, t.prototype.SetItem = function() {
                    for (var e, t = 0; t < this._rewards.length; t++) {
                        var n = this._items[t];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(this.RewardContainer), o.name = this._rewards[t].Items[0].toString(), n = o.getComponent(f.ItemComponent), this._items[t] = n
                        }
                        e = d.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._rewards[t].Items[0]), n.Init({
                            ItemId: this._rewards[t].Items[0],
                            Count: this._rewards[t].Items[1]
                        }, e.Star ? f.ItemComponentType.ItemWithStar : f.ItemComponentType.ItemCommon)
                    }
                }, t.prototype.OnOrangeButtonClick = function() {
                    var e = new p.Req_Game_CommonRewards;
                    e.Type = 1, e.Id = g.GameModuleType.DailyPay, d.RpcComponent.Instance.Call(e, function(e) {
                        y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnRedButtonClick = function() {
                    if (m.default.Instance.HasBoughtFirstPay()) l.UIManager.Instance.QuitPanelStack(c.PanelConfig.MallDailyChoosePanel.Path);
                    else {
                        var e = m.default.CheckActivityFirstPayIsExist();
                        e ? l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ActivityFirstPayPanel.Path, e) : l.UIManager.Instance.QuitPanelStack(c.PanelConfig.MallDailyChoosePanel.Path)
                    }
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(C.GameEventIds.ChangeDataDetail.Fmt(p.MallActivity_Model._n_), this.OnMallActivityDataChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(C.GameEventIds.ChangeDataDetail.Fmt(p.MallActivity_Model._n_), this.OnMallActivityDataChange, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemContainerheh" == t.parent.name && y.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnMallActivityDataChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == g.GiftPackType.DailyPay) return void this.DisPlay(!0)
                }, t.prototype.OnShopButtonClick = function() {
                    var e = m.default.Instance.IsGameModuleUnlock(S.GameModuleType.ItemShop);
                    e[0] ? l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ShopPanel.Path, 2, 12) : y.UIUtlity.ShowFloatingHint(e[1])
                }, t.prototype.SetProgressRewardNode = function(e) {
                    var t = n.GetMaxProgress(),
                        o = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, g.GiftPackType.DailyPay),
                        r = o && o.IntArray && o.IntArray[2] ? o.IntArray[2] : 0,
                        i = o && o.IntArray && o.IntArray[1] ? o.IntArray[1] : 0;
                    if (this.ProgressRewardNode.active = r < t, !(r >= t)) {
                        var a = n.GetNextProgressData();
                        if (a.TotalValue) {
                            if (!this._progressRewardComponent) {
                                var s = cc.instantiate(this._progressRewardPrefab);
                                s.parent = this.ProgressRewardNode, this._progressRewardComponent = s.getComponent(b.default)
                            }
                            var l = {};
                            l.ItemId = a.Rewards[0], l.Desc = "progressReward_days_get".ToUILocale().Fmt(a.TotalValue), l.CurValue = i, l.TotalValue = a.TotalValue, l.IsReceive = r >= a.TotalValue && i >= a.TotalValue, l.ReceiveCallback = this.RequestGetAllBuyReward.bind(this), e ? this._progressRewardComponent.UpdateInfo(l.CurValue, l.IsReceive, l.TotalValue, l.ItemId, l.Desc) : this._progressRewardComponent.Init(l)
                        } else this.ProgressRewardNode.active = !1
                    }
                }, t.GetMaxProgress = function() {
                    var e = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, g.LevelParamType.DailyPayCountRewards);
                    return e.Data2[e.Data2.length - 1].Items[0] + e.Data2[e.Data2.length - 1].Items[1] * (e.Data2[e.Data2.length - 1].Items[2] - 1)
                }, t.GetNextProgressData = function() {
                    var e = {},
                        t = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, g.LevelParamType.DailyPayCountRewards),
                        n = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, g.GiftPackType.DailyPay),
                        o = n && n.IntArray && n.IntArray[2] ? n.IntArray[2] : 0;
                    e.Rewards = [];
                    for (var r = 0; r < t.Data2.length; r++)
                        for (var i = t.Data2[r], a = 0; a < i.Items[2]; a++) {
                            var s = i.Items[0] + a * i.Items[1];
                            if (o < s) {
                                e.TotalValue = s;
                                for (var l = 3; l < i.Items.length; l++) e.Rewards.push(i.Items[l]);
                                return e
                            }
                        }
                    return e
                }, t.prototype.RequestGetAllBuyReward = function() {
                    var e = new p.Req_Game_CommonRewards;
                    e.Type = 2, e.Id = g.GameModuleType.DailyPay, d.RpcComponent.Instance.Call(e, function(e) {
                        y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, i([A(cc.Label)], t.prototype, "Desc", void 0), i([A(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([A(cc.Button)], t.prototype, "OrangeButton", void 0), i([A(cc.Label)], t.prototype, "RedButtonLabel", void 0), i([A(cc.Button)], t.prototype, "RedButton", void 0), i([A(cc.Node)], t.prototype, "ReceivedTag", void 0), i([A(cc.RichText)], t.prototype, "ChargeDesc", void 0), i([A(cc.Node)], t.prototype, "RewardContainer", void 0), i([A(cc.Label)], t.prototype, "ShopButtonLabel", void 0), i([A(cc.Button)], t.prototype, "ShopButton", void 0), i([A(cc.Node)], t.prototype, "ProgressRewardNode", void 0), n = i([P], t)
            }(l.BaseUIPage);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./ProgressRewardComponent": "ProgressRewardComponent"
    }],
    MallDailyChoosePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "20ed7p8ZSRNkJJ/h03VKsD8", "MallDailyChoosePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("./NodePool"),
            f = e("./DailyChooseComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../../Proto/Static/ConfigProto"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../../Consts/GameEventIds"),
            b = e("../Components/CustomToggle"),
            S = e("../../Components/Components"),
            w = e("../../RedDot/RedDotManager"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.DailyChoose = 0] = "DailyChoose", e[e.DailyRecommend = 1] = "DailyRecommend", e[e.DailyCharge = 2] = "DailyCharge"
        })(l || (l = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !0, !1, !0), t.Title = null, t.OneKeyBuyButtonLabel = null, t.OriginPriceLabel = null, t.OriginPrice = null, t.CurrentPriceLabel = null, t.CurrentPrice = null, t.CanGetLabel = null, t.CanGetNumber = null, t.NextRefreshLabel = null, t.NextRefreshTime = null, t.OneKeyNode = null, t.OneKeyBuyButton = null, t.SingleContainer = null, t.DiscountLabel = null, t.DiscountValue = null, t.ShopButton = null, t.ShopButtonLabel = null, t.BannerImg = null, t.WordImg = null, t.Toggles = [], t.DailyChargeToggle = null, t.DailyChooseNode = null, t.DailyChargeNode = null, t._dailyCompArray = [], t._showGifts = [], t._dailyAtlas = null, t._mallAtlas = null, t._selectIndex = 0, t._banners = [], t._words = [], t._mallModel = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(y.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnPurchaseButtonClick, this), c.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(v.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(y.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnPurchaseButtonClick, this), c.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(v.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallDailyChoosePanel/Component/DailyChooseComponent"), o = this.LoadDynamicAsset("MallDailyChoosePanel/PNG/dailyChosen", cc.SpriteAtlas), r = this.LoadDynamicAsset(S.GlobalConfigComponent.GetMultilangKey("Multilang/mall"), cc.SpriteAtlas), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._itemPrefab = e[0], i._singlePrefab = e[1], i._dailyAtlas = e[2], i._mallAtlas = e[3]
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.Title.string = "mall_dailyChoose".ToUILocale(), this.NextRefreshLabel.string = "mall_nextRefresh".ToUILocale(), this.OriginPriceLabel.string = "mall_originPrice".ToUILocale(), this.CurrentPriceLabel.string = "mall_currentPrice".ToUILocale(), this.CanGetLabel.string = "task_get_score_tag".ToUILocale(), this.OneKeyBuyButtonLabel.string = "oneKey_allBuy".ToUILocale(), this._banners = ["banner2", "banner3"], this._words = ["dailyChosen", "daily_recommend"], this.ShopButtonLabel.string = d.ConfigDataComponent.Instance.GetLocale("ShopBase_name_12"), this._mallModel = [g.GiftPackType.DailySelection, g.GiftPackType.DailyRecommend];
                var n = ["mall_dailyChoose".ToUILocale(), "daily_recommend".ToUILocale()],
                    o = [g.GameModuleType.DailySelectionShow, g.GameModuleType.DailyRecommendShow];
                this.Toggles.forEach(function(e, t) {
                    e.Init(n[t]);
                    var r = C.default.Instance.IsGameModuleOpen(o[t]),
                        i = C.default.Instance.IsGameModuleUnlock(o[t])[0];
                    e.node.active = r && i
                }), this.DailyChargeToggle.Init("mall_dailyCharge".ToUILocale()), this.DailyChargeToggle.node.on("toggle", this.ClickDailyChargeToggle, this), this.OneKeyBuyButton.node.on("click", this.OnOneKeyBuyButtonClick, this), this.ShopButton.node.on("click", this.OnShopButtonClick, this), this.Toggles.forEach(function(e) {
                    e.node.on("toggle", t.ClickToggle, t)
                }), this._itemPool = new h.default(this._itemPrefab), this._singlePool = new h.default(this._singlePrefab)
            }, t.prototype.InitData = function(e) {
                var t = e[0];
                null != t && (t == l.DailyCharge ? (this.ClickDailyChargeToggle(), this.DailyChargeToggle.isChecked = !0) : (this._selectIndex = t, this.Toggles[this._selectIndex].isChecked = !0))
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this._selectIndex == l.DailyCharge ? this.DailyChargeToggle.isChecked = !0 : this.Toggles[this._selectIndex].isChecked = !0), this.SetGood(), this.SetImages(), this.BindRedDot(), this.RefreshTime(), this.unscheduleAllCallbacks(), this.schedule(this.RefreshTime, 1)
            }, t.prototype.SetGood = function() {
                if (this._selectIndex != l.DailyCharge) {
                    if (this._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, this._mallModel[this._selectIndex]), this._oneKeyGiftId = this._model.PackIds[this._model.PackIds.length - 1], null == this._gifts) {
                        this._gifts = [];
                        for (var e = 0; e < this._model.PackIds.length; e++) this._gifts.push(d.ConfigDataComponent.Instance.GetConfigById(I.GiftPack_Config, this._model.PackIds[e]));
                        for (this._oneKeyGift = this._gifts[this._gifts.length - 1], this._showGifts = [], C.default.Instance.SetDisCount(this._oneKeyGift.Discount, this.DiscountValue, this.DiscountLabel), e = 0; e < this._model.PackIds.length - 1; e++) {
                            var t = d.ConfigDataComponent.Instance.GetConfigById(I.GiftPack_Config, this._model.PackIds[e]);
                            this._showGifts[e] = t
                        }
                    }
                    var n = !0;
                    for (e = 0; e < this._gifts.length; e++)
                        if (0 != this._gifts[e].Money && C.default.Instance.GetGiftBuyCount(this._gifts[e].Id) > 0) {
                            n = !1;
                            break
                        } if (this.OneKeyNode.active = n, n) {
                        var o = this._gifts[this._gifts.length - 1];
                        this.OriginPrice.string = _.default.Instance.CurrencySymbol + _.default.Instance.ExchangeMoney(o.ShowMoney), this.CurrentPrice.string = _.default.Instance.CurrencySymbol + _.default.Instance.ExchangeMoney(o.Money), this.CanGetNumber.string = "x" + o.VipPoint
                    }
                    this.SetItem()
                }
            }, t.prototype.OnOneKeyBuyButtonClick = function() {
                _.default.Instance.Pay(this._gifts[this._gifts.length - 1].Id)
            }, t.prototype.OnPurchaseButtonClick = function(e) {
                if (0 == this._showGifts[e].Money) {
                    var t = new p.Req_Pay_ByDiamond;
                    t.Id = this._gifts[e].Id, d.RpcComponent.Instance.Call(t, function(e) {
                        m.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                } else _.default.Instance.Pay(this._showGifts[e].Id)
            }, t.prototype.RefreshTime = function() {
                if (this._selectIndex != l.DailyCharge) {
                    var e = d.RpcComponent.Instance.ServerTime,
                        t = C.default.Instance.GetMallDeadTime(this._mallModel[this._selectIndex], this._model.RefreshTime);
                    t < 0 ? this.DisPlay(!0) : this.NextRefreshTime.string = C.default.ActivityTimeLeftFormat(t - e)
                }
            }, t.prototype.SetImages = function() {
                this._selectIndex != l.DailyCharge && (this.BannerImg.spriteFrame = this._dailyAtlas.getSpriteFrame(this._banners[this._selectIndex]), this.WordImg.spriteFrame = this._mallAtlas.getSpriteFrame(this._words[this._selectIndex]))
            }, t.prototype.BindRedDot = function() {
                w.RedDotManager.Instance.Bind(this.Toggles[l.DailyChoose].node, w.RedDotManager.Instance.RedDot.DailyChooseToggleNode), w.RedDotManager.Instance.Bind(this.Toggles[l.DailyRecommend].node, w.RedDotManager.Instance.RedDot.DailyRecommendToggleNode), w.RedDotManager.Instance.Bind(this.DailyChargeToggle.node, w.RedDotManager.Instance.RedDot.MallDailyChargeNode)
            }, t.prototype.SetItem = function() {
                for (var e = this, t = C.default.Instance.GetGiftBuyCount(this._oneKeyGiftId), n = {}, o = 0; o < this._showGifts.length; o++) n[this._showGifts[o].Id] = C.default.Instance.GetGiftBuyCount(this._showGifts[o].Id), this._showGifts[o].Money > 0 && (n[this._showGifts[o].Id] += t);
                for (this._showGifts.sort(function(t, o) {
                        return t.LimitCount - n[t.Id] <= 0 ? 1 : o.LimitCount - n[o.Id] <= 0 ? -1 : e._model.PackIds.indexOf(t.Id) - e._model.PackIds.indexOf(o.Id)
                    }), o = 0; o < this._showGifts.length; o++) {
                    if (null == this._dailyCompArray[o]) {
                        var r = this._singlePool.Get();
                        r.setParent(this.SingleContainer), this._dailyCompArray[o] = r.getComponent(f.default)
                    }
                    var i = this._showGifts[o],
                        a = n[i.Id];
                    this._dailyCompArray[o].SetItems(this._itemPool, i.Items).SetPrice(i.Money, i.VipPoint, i.Discount).SetPurchaseLimit(i.LimitCount - a, i.LimitCount, i.LimitType).SetTitle(d.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + i.Id)).SetButtonClick(o)
                }
            }, t.prototype.OnItemClick = function(e, t) {
                "ItemLayout68" == t.parent.name && m.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.OnShopButtonClick = function() {
                c.UIManager.Instance.ShowUIPanel(u.PanelConfig.ShopPanel.Path, 2, 12)
            }, t.prototype.ClickToggle = function(e) {
                var t = Number.parseInt(e.name);
                this._selectIndex != t && (this.DailyChargeNode.active = !1, this.DailyChooseNode.active = !0, this._selectIndex = t, this._gifts = null, this.DisPlay(!0))
            }, t.prototype.ClickDailyChargeToggle = function() {
                this._selectIndex != l.DailyCharge && (this.DailyChargeNode.active = !0, this.DailyChooseNode.active = !1, this._selectIndex = l.DailyCharge, this.ShowPage("MallDailyChoosePanel/MallDailyChargePage"))
            }, t.prototype.OnGiftPackDataChange = function(e) {
                for (var t in e)
                    if (Number.parseInt(t) == g.GiftPackType.DailySelection) return void this.DisPlay(!0)
            }, t.prototype.onDestroy = function() {
                var e, t;
                this.unscheduleAllCallbacks(), null === (e = this._itemPool) || void 0 === e || e.Clear(), null === (t = this._singlePool) || void 0 === t || t.Clear()
            }, i([T(cc.Label)], t.prototype, "Title", void 0), i([T(cc.Label)], t.prototype, "OneKeyBuyButtonLabel", void 0), i([T(cc.Label)], t.prototype, "OriginPriceLabel", void 0), i([T(cc.Label)], t.prototype, "OriginPrice", void 0), i([T(cc.Label)], t.prototype, "CurrentPriceLabel", void 0), i([T(cc.Label)], t.prototype, "CurrentPrice", void 0), i([T(cc.Label)], t.prototype, "CanGetLabel", void 0), i([T(cc.Label)], t.prototype, "CanGetNumber", void 0), i([T(cc.Label)], t.prototype, "NextRefreshLabel", void 0), i([T(cc.Label)], t.prototype, "NextRefreshTime", void 0), i([T(cc.Node)], t.prototype, "OneKeyNode", void 0), i([T(cc.Button)], t.prototype, "OneKeyBuyButton", void 0), i([T(cc.Node)], t.prototype, "SingleContainer", void 0), i([T(cc.Label)], t.prototype, "DiscountLabel", void 0), i([T(cc.Label)], t.prototype, "DiscountValue", void 0), i([T(cc.Button)], t.prototype, "ShopButton", void 0), i([T(cc.Label)], t.prototype, "ShopButtonLabel", void 0), i([T(cc.Sprite)], t.prototype, "BannerImg", void 0), i([T(cc.Sprite)], t.prototype, "WordImg", void 0), i([T(b.default)], t.prototype, "Toggles", void 0), i([T(b.default)], t.prototype, "DailyChargeToggle", void 0), i([T(cc.Node)], t.prototype, "DailyChooseNode", void 0), i([T(cc.Node)], t.prototype, "DailyChargeNode", void 0), i([A], t)
        }(c.BaseUIFrame);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "./DailyChooseComponent": "DailyChooseComponent",
        "./NodePool": "NodePool"
    }],
    MallDailySelectionHeroComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4a3bcU7Tn5C8av+dkRbC4mW", "MallDailySelectionHeroComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../../../Consts/Consts"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Channel/ChannelManager"),
            y = e("../../Components/DataCenter"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("./AsyncLayout"),
            I = e("./MallNewGiftComponent"),
            _ = e("./ItemComponent"),
            C = e("./ItemClickComponent"),
            v = e("./MallNewDailyChooseAutoBuyComponent"),
            b = e("../../Auxiliary/GameRecord"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ShopBtn = null, t.ChooseBtn = null, t.ChooseItemNode = null, t.ChangeNode = null, t.ChangeRedDot = null, t.TimeLabel = null, t.ScrollView = null, t.GiftPackLayout = null, t.OneClickBuyPackItem = null, t._isInit = !1, t._autoTimes = 0, t._giftPacks = [], t._newBatch = 0, t._hasNewBatchRecord = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ChooseBtn.node.on("click", this.OnChooseBtn, this), this.ShopBtn.node.on("click", this.OnShopBtn, this)
                }, t.prototype.Init = function(e, t, n) {
                    if (this._itemPrefab = e, this._atlas = n, !this._isInit) {
                        this._isInit = !0, this.GiftPackLayout.Init(t, this.OnInitializeItem.bind(this));
                        var o = cc.instantiate(this._itemPrefab);
                        o.setParent(this.ChooseItemNode), o.getComponent(C.default).enabled = !1, o.getComponent(cc.BlockInputEvents).enabled = !1, this._chooseItem = o.getComponent(_.ItemComponent), this._mallData = y.DataCenter.Instance.GetDataById(s.MallActivity_Model, p.GiftPackType.DailySelectionHero), this.RefreshTime(), this.schedule(this.RefreshTime, 1)
                    }
                    this.SetInfo()
                }, t.prototype.RefreshTime = function() {
                    var e = d.default.Instance.GetMallDeadTime(c.GiftPackType.DailySelectionHero, this._mallData.RefreshTime),
                        t = d.default.ActivityTimeLeftFormat(e - l.RpcComponent.Instance.ServerTime);
                    this.TimeLabel.string = "<outline width=3 color=#202434>" + "element_timeLbl".ToUILocale() + "<color=#6eeea7>" + t + "</c></outline>"
                }, t.prototype.SetInfo = function() {
                    this._mallData = y.DataCenter.Instance.GetDataById(s.MallActivity_Model, p.GiftPackType.DailySelectionHero), this.GetChooseHeroIds(), this.SetChooseItem(), this.SetGiftPacks()
                }, t.prototype.GetChooseHeroIds = function() {
                    if (this._chooseHeroIds && this._chooseHeroIds.length > 0) return this._chooseHeroIds;
                    for (var e = [], t = l.ConfigDataComponent.Instance.GetArrayConfig(a.DailySelection_Config), n = 0, o = 0; o < t.length; o++) {
                        var r = t[o];
                        n = Math.max(n, r.Batch), e.push(r)
                    }
                    for (this._newBatch = n, e.sort(function(e, t) {
                            if (e.Batch != n && t.Batch == n) return 1;
                            if (e.Batch == n && t.Batch != n) return -1;
                            var o = l.ConfigDataComponent.Instance.GetConfigById(a.HeroBase_Config, e.Id),
                                r = l.ConfigDataComponent.Instance.GetConfigById(a.HeroBase_Config, t.Id);
                            return o.ElementType != r.ElementType ? o.ElementType - r.ElementType : t.Id - e.Id
                        }), this._chooseHeroIds = [], o = 0; o < e.length; o++) this._chooseHeroIds.push(e[o].Id);
                    return this._chooseHeroIds
                }, t.prototype.SetChooseItem = function() {
                    this._hasNewBatchRecord = !1;
                    var e = 0,
                        t = b.default.GetItem(b.GameRecordDefine.DailySelectionHeroBatch);
                    null != t && (e = parseInt(t));
                    var n = this._mallData.IntValue;
                    n ? (this._chooseItem.Init({
                        ItemId: n
                    }, _.ItemComponentType.HeroInfo), this.ChangeRedDot.active = !1, this.ChangeNode.active = !0) : (this._chooseItem.SetItemSimpleState(), this._chooseItem.SetAddFlagState(!0), this._chooseItem.AddFlag.node.width = 120, this._chooseItem.AddFlag.node.height = 120, this.ChangeRedDot.active = !0, this.ChangeNode.active = !1), e < this._newBatch && (this.ChangeRedDot.active = !0, this.ChangeNode.active = !1, this._hasNewBatchRecord = !0)
                }, t.prototype.SetGiftPacks = function() {
                    var e = this._mallData.IntValue;
                    e || (e = l.ConfigDataComponent.Instance.GetArrayConfig(a.DailySelection_Config)[0].Id);
                    var t = l.ConfigDataComponent.Instance.GetConfigById(a.DailySelection_Config, e),
                        n = l.ConfigDataComponent.Instance.GetConfigById(a.MallActivity_Config, p.GiftPackType.DailySelectionHero),
                        o = l.ConfigDataComponent.Instance.GetConfigById(a.GiftPack_Config, n.Gifts[0].Items[0]);
                    this._giftPacks = [], this._giftPacks.push(o);
                    for (var r = 0; r < t.PackIds.length; r++) {
                        var i = t.PackIds[r],
                            s = l.ConfigDataComponent.Instance.GetConfigById(a.GiftPack_Config, i);
                        this._giftPacks.push(s)
                    }
                    this._autoTimes = d.default.Instance.GetGiftBuyCount(this._giftPacks[this._giftPacks.length - 1].Id), this.GiftPackLayout.RenderLayout(this._giftPacks.length - 1), this.SetOneClickBuyPack()
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(I.default),
                        o = this._giftPacks[t];
                    n.Init({
                        AutoBuyTimes: this._autoTimes,
                        Title: "<outline color=#202434 width=3>" + l.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id) + "</color>",
                        CallBack: this.OnBuyGiftPack.bind(this),
                        GiftPack: o,
                        ItemPrefab: this._itemPrefab,
                        Type: I.MallNewGiftType.SpuerValue,
                        TitleBg: this._atlas.getSpriteFrame("title_0"),
                        DailySelectionHeroId: this._mallData.IntValue,
                        ChooseHeroIds: this.GetChooseHeroIds(),
                        ClickItemCallback: this.OnChooseBtn.bind(this)
                    })
                }, t.prototype.SetOneClickBuyPack = function() {
                    for (var e = this, t = !0, n = 0; n < this._giftPacks.length; n++)
                        if (0 != this._giftPacks[n].Money && d.default.Instance.GetGiftBuyCount(this._giftPacks[n].Id) > 0) {
                            t = !1;
                            break
                        } this.OneClickBuyPackItem.Init(t, this._giftPacks[this._giftPacks.length - 1], function() {
                        e._mallData.IntValue ? f.default.Instance.Pay(e._giftPacks[e._giftPacks.length - 1].Id) : g.UIUtlity.ShowFloatingHint("artifact_please_select_hero".ToUILocale())
                    })
                }, t.prototype.OnShopBtn = function() {
                    var e = d.default.Instance.IsGameModuleUnlock(c.GameModuleType.ItemShop);
                    e[0] ? u.UIManager.Instance.ShowUIPanel(h.PanelConfig.ShopPanel.Path, 2, 12) : g.UIUtlity.ShowFloatingHint(e[1])
                }, t.prototype.OnChooseBtn = function() {
                    var e = [];
                    this._hasNewBatchRecord && (b.default.SetItem(b.GameRecordDefine.DailySelectionHeroBatch, this._newBatch.toString()), e = this.GetNewBatchHeroIds(), this._hasNewBatchRecord = !1, this._mallData.IntValue && (this.ChangeRedDot.active = !1, this.ChangeNode.active = !0));
                    var t = {};
                    t.ShowHeroIds = this.GetChooseHeroIds(), t.SelectHeroId = 0, t.NewTagHeroIds = e, t.MallType = c.GiftPackType.DailySelectionHero, t.Callback = this.OnSelectHero.bind(this), u.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallSelectHeroPanel.Path, t)
                }, t.prototype.OnBuyGiftPack = function(e) {
                    if (0 == e.Money) {
                        var t = new s.Req_Pay_ByDiamond;
                        t.Id = e.Id, l.RpcComponent.Instance.Call(t, function(e) {
                            g.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else {
                        if (!this._mallData.IntValue) return void g.UIUtlity.ShowFloatingHint("artifact_please_select_hero".ToUILocale());
                        f.default.Instance.Pay(e.Id)
                    }
                }, t.prototype.OnSelectHero = function(e) {
                    var t = this;
                    if (e) {
                        var n = new s.Req_Mall_DailySelectionChooseHero;
                        n.Id = e, l.RpcComponent.Instance.Call(n, function() {
                            t.SetInfo()
                        })
                    }
                }, t.prototype.GetNewBatchHeroIds = function() {
                    for (var e = [], t = this.GetChooseHeroIds(), n = 0; n < t.length; n++) {
                        var o = t[n];
                        l.ConfigDataComponent.Instance.GetConfigById(a.DailySelection_Config, o).Batch == this._newBatch && e.push(o)
                    }
                    return e
                }, i([P(cc.Button)], t.prototype, "ShopBtn", void 0), i([P(cc.Button)], t.prototype, "ChooseBtn", void 0), i([P(cc.Node)], t.prototype, "ChooseItemNode", void 0), i([P(cc.Node)], t.prototype, "ChangeNode", void 0), i([P(cc.Node)], t.prototype, "ChangeRedDot", void 0), i([P(cc.RichText)], t.prototype, "TimeLabel", void 0), i([P(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([P(m.default)], t.prototype, "GiftPackLayout", void 0), i([P(v.default)], t.prototype, "OneClickBuyPackItem", void 0), i([w], t)
            }(cc.Component);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AsyncLayout": "AsyncLayout",
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent",
        "./MallNewDailyChooseAutoBuyComponent": "MallNewDailyChooseAutoBuyComponent",
        "./MallNewGiftComponent": "MallNewGiftComponent"
    }],
    MallDaysGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "176237EWCxIXLCmDUOT48ml", "MallDaysGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("./NodePool"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("./DaysGiftComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../../Consts/GameEventIds"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0, !1, !0), t.Title = null, t.ChestButton = null, t.ChestButtonSeal = null, t.SingleContainer = null, t.RedDot = null, t.AniNode = null, t._daysGiftArray = [], t._configs = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_DAYSGIFT_GETBUTTONCLICK, this.OnGetButtonClick, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_DAYSGIFT_GOBUTTONCLICK, this.OnGoButtonClick, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_DAYSGIFT_UNOPENBUTTONCLICK, this.OnUnopenButtonClick, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(_.GameEventIds.ChangeDataDetail.Fmt(p.MallActivity_Model._n_), this.OnMallActivityDataChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_DAYSGIFT_GETBUTTONCLICK, this.OnGetButtonClick, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_DAYSGIFT_GOBUTTONCLICK, this.OnGoButtonClick, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_DAYSGIFT_UNOPENBUTTONCLICK, this.OnUnopenButtonClick, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(_.GameEventIds.ChangeDataDetail.Fmt(p.MallActivity_Model._n_), this.OnMallActivityDataChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallDaysGiftPanel/Component/DaysGiftComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1], o._itemPool = new h.default(o._itemPrefab), o._singlePool = new h.default(o._singlePrefab)
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.Title.string = "mall_daysGift".ToUILocale(), this.ChestButton.node.on("click", this.OnChestButtonClick, this), this.GetConfigsByPhase(), this.CreateItem()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, m.GiftPackType.DaysGift), this.ChestButtonSeal.active = 1 == this._model.IntArray[0], this.AniNode.active = !this.ChestButtonSeal.active;
                    var n = this._model.IntArray[3];
                    this._configs.sort(function(e, t) {
                        return 0 == e.Id ? -1 : 0 == t.Id ? 1 : e.Id > n && t.Id > n || e.Id <= n && t.Id <= n ? e.Id > t.Id ? 1 : -1 : e.Id > n && t.Id <= n ? -1 : 1
                    }), this.SetItem()
                }, t.prototype.GetConfigsByPhase = function() {
                    this._configs = d.ConfigDataComponent.Instance.GetArrayConfig(u.DaysGift_Config);
                    for (var e = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, m.GiftPackType.DaysGift).Phase, t = [], n = 0; n < this._configs.length; n++) this._configs[n].Phase == e && t.push(this._configs[n]);
                    this._configs = t
                }, t.prototype.CreateItem = function() {
                    for (var e = 0; e < this._configs.length; e++)
                        if (null == this._daysGiftArray[e]) {
                            var t = this._singlePool.Get();
                            t.setParent(this.SingleContainer), this._daysGiftArray[e] = t.getComponent(y.default)
                        }
                }, t.prototype.SetItem = function() {
                    for (var e = this._model.IntArray[3], t = this._model.IntArray[1], n = 0 == this._model.IntArray[2], o = 0; o < this._configs.length; o++) this._daysGiftArray[o].SetItems(this._itemPool, this._configs[o].Rewards).SetPurchaseLimit(t, this._configs[o].Days, n, e >= this._configs[o].Id).SetTitle("mall_daysGift_dayth".ToUILocale().Fmt(this._configs[o].Days)).SetButtonClick(o)
                }, t.prototype.OnChestButtonClick = function() {
                    var e = this;
                    if (this.ChestButtonSeal.active) g.UIUtlity.ShowFloatingHint("mall_daysGift_receivedToday".ToUILocale());
                    else {
                        var t = new p.Req_Mall_ReceiveDaysGift;
                        t.Type = 1, d.RpcComponent.Instance.Call(t, function(t) {
                            g.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.ChestButtonSeal.active = !0, e.AniNode.active = !1
                        })
                    }
                }, t.prototype.OnGetButtonClick = function() {
                    var e = new p.Req_Mall_ReceiveDaysGift;
                    e.Type = 2, d.RpcComponent.Instance.Call(e, function(e) {
                        g.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnGoButtonClick = function() {
                    I.default.Instance.HasBoughtFirstPay() ? l.UIManager.Instance.BackUIPanel() : I.default.ShowActivityFirstPayPanel()
                }, t.prototype.OnUnopenButtonClick = function() {
                    g.UIUtlity.ShowFloatingHint("dailyInstance_unopen".ToUILocale())
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayout78" == t.parent.name && g.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnMallActivityDataChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == m.GiftPackType.DaysGift) return void this.DisPlay(!0)
                }, t.prototype.onDestroy = function() {
                    this._singlePool && this._singlePool.Clear(), this._itemPool && this._itemPool.Clear()
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Button)], t.prototype, "ChestButton", void 0), i([b(cc.Node)], t.prototype, "ChestButtonSeal", void 0), i([b(cc.Node)], t.prototype, "SingleContainer", void 0), i([b(cc.Node)], t.prototype, "RedDot", void 0), i([b(cc.Node)], t.prototype, "AniNode", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./DaysGiftComponent": "DaysGiftComponent",
        "./NodePool": "NodePool"
    }],
    MallElderGiftPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9ad4arjFOdFnKutlWt4ViXs", "MallElderGiftPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("./NodePool"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/CustomLayout"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Channel/ChannelManager"),
            v = e("./ElderGiftPackComponent"),
            b = e("../../../Consts/GameEventIds"),
            S = e("../Components/CustomToggle"),
            w = e("../../RedDot/RedDotManager"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.Prophet = -1] = "Prophet", e[e.Holy = -2] = "Holy", e[e.Gem = -3] = "Gem"
        })(l || (l = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !0, !1, !0), t.Title = null, t.LeftTimeRichText = null, t.View = null, t.Billboard = null, t.BillboardArtWord = null, t.CustomToggles = [], t.ToggleContainerBgNode = null, t.ToggleContainerNode = null, t._initCustomLayout = !0, t._giftIds = [], t._modeIdToMode = [], t._billboardNameArray = ["hero_banner", "grow_banner", "legend_banner", "favor_banner"], t._artWordNameArray = ["heroGift", "superGift", "legendGift", "friendliness"], t._configIds = [m.GiftPackType.HeroGift, m.GiftPackType.GrowUpGift, m.GiftPackType.LegendGift], t._giftIndexMap = {}, t._upToDown = {}, t._legendModeIds = [m.GiftPackType.LegendGift, m.GiftPackType.LegendGift2, m.GiftPackType.LegendGift3, m.GiftPackType.LegendGift4, m.GiftPackType.LegendGift5], t._gameModuleShow = [], t._gameModuleUnlock = [], t._selectIndex = 0, t._reddots = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallElderGiftPackPanel/Component/ElderGiftPackComponent"), o = this.LoadDynamicAsset("MallElderGiftPackPanel/PNG/elderGift", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._itemPrefab = e[0], r._singlePrefab = e[1], r._atlas = e[2], r._itemPool = new f.default(r._itemPrefab)
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this._gameModuleShow = [m.GameModuleType.LegendGiftShow, m.GameModuleType.LegendGift2Show, m.GameModuleType.LegendGift3Show, m.GameModuleType.LegendGift4Show, m.GameModuleType.LegendGift5Show], this._gameModuleUnlock = [m.GameModuleType.LegendGift, m.GameModuleType.LegendGift2, m.GameModuleType.LegendGift3, m.GameModuleType.LegendGift4, m.GameModuleType.LegendGift5], this._reddots = [w.RedDotManager.Instance.RedDot.MallLegendGift1Node, w.RedDotManager.Instance.RedDot.MallLegendGift2Node, w.RedDotManager.Instance.RedDot.MallLegendGift3Node, w.RedDotManager.Instance.RedDot.MallLegendGift4Node, w.RedDotManager.Instance.RedDot.MallLegendGift5Node], this._toggleNames = [], this._legendModeIds.forEach(function(e) {
                    t._toggleNames.push(("mall_giftPack_" + e).ToUILocale())
                }), this.CustomToggles.forEach(function(e, n) {
                    e.Init(t._toggleNames[n]), e.node.on("toggle", t.ClickToggle, t)
                }), this._currentShowMode = 0, this._modeIdToMode[9] = 0, this._modeIdToMode[10] = 1, this._modeIdToMode[11] = 2, this._modeIdToMode[12] = 3, this._modeIdToMode[22] = 2, this._modeIdToMode[23] = 2, this._modeIdToMode[24] = 2, this._modeIdToMode[25] = 2
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._modeId = t[0], this._defaultMode = t[0], this._gifts = null
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), this._modeId > 0) this._currentShowMode = this._modeIdToMode[this._modeId], this.Title.string = ("mall_giftPack_" + this._currentShowMode).ToUILocale(), this.Billboard.spriteFrame = this._atlas.getSpriteFrame(this._billboardNameArray[this._currentShowMode]), this.BillboardArtWord.spriteFrame = I.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame(this._artWordNameArray[this._currentShowMode]), this.UpdateGiftData();
                else {
                    var n = void 0;
                    switch (this._modeId) {
                        case l.Prophet:
                            this.Title.string = "elementSummon_giftPackage".ToUILocale(), this.BillboardArtWord.spriteFrame = null, n = h.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, m.LevelParamType.Prophet).Data, this.GetGiftDataAndDeadLine(n);
                            break;
                        case l.Holy:
                            this.Title.string = "holyfurnace_gift".ToUILocale(), this.Billboard.spriteFrame = this._atlas.getSpriteFrame("holyFurnace_banner"), this.BillboardArtWord.spriteFrame = I.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("holy_gift"), n = h.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, m.LevelParamType.SmelterSmelt).Data, this.GetGiftDataAndDeadLine(n);
                            break;
                        case l.Gem:
                            this.Title.string = "gemfurnace_gift".ToUILocale(), this.BillboardArtWord.spriteFrame = I.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("gem_gift"), n = h.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, 152).Data, this.GetGiftDataAndDeadLine(n)
                    }
                }
                this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                this.InitToggles(), this._defaultMode == m.GiftPackType.LegendGift && (this.SetToggles(), this.BindReddot()), this.PeelAndSortGifts(), this._initCustomLayout && (this.View.Init(this._singlePrefab), this._initCustomLayout = !1), this.View.RenderLayOut(this._gifts.length), this.CountDown(), this.unscheduleAllCallbacks(), this.schedule(this.CountDown, 1)
            }, t.prototype.UpdateGiftData = function() {
                if (this._model = h.DataCenter.Instance.GetDataById(d.MallActivity_Model, this._modeId), this._refreshGap = h.ConfigDataComponent.Instance.GetConfigById(p.MallActivity_Config, this._modeId).Interval, null == this._gifts) {
                    this._gifts = [], this._giftIndexMap = {};
                    for (var e = 0, t = void 0, n = 0; n < this._model.PackIds.length; n++) null == (t = h.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, this._model.PackIds[n])).UnlockCondition || 0 == t.UnlockCondition ? (this._gifts.push(t), this._giftIndexMap[t.Id] = e, e++) : (this._upToDown[t.UnlockCondition] = t.Id, this._giftIndexMap[t.Id] = this._giftIndexMap[t.UnlockCondition])
                }
                this._deadLine = _.default.Instance.GetMallDeadTime(this._modeId, this._model.RefreshTime)
            }, t.prototype.InitToggles = function() {
                this.ToggleContainerNode.active = !1, this.ToggleContainerBgNode.active = !1
            }, t.prototype.SetToggles = function() {
                var e = this,
                    t = 0;
                this._legendModeIds.forEach(function(n, o) {
                    var r = e.CustomToggles[o];
                    if (_.default.Instance.IsGameModuleUnlock(e._gameModuleShow[o])[0]) {
                        r.node.active = !0, t++;
                        var i = _.default.Instance.IsGameModuleUnlock(e._gameModuleUnlock[o]);
                        i[0] ? r.SetInteractable(!0) : r.SetInteractable(!1, i[1])
                    } else r.node.active = !1
                }), t >= 2 && (this.ToggleContainerNode.active = !0, this.ToggleContainerBgNode.active = !0)
            }, t.prototype.BindReddot = function() {
                var e = this;
                this._legendModeIds.forEach(function(t, n) {
                    var o = e.CustomToggles[n];
                    w.RedDotManager.Instance.Bind(o.node, e._reddots[n])
                })
            }, t.prototype.CountDown = function() {
                var e = h.RpcComponent.Instance.ServerTime,
                    t = this._deadLine - e;
                t < 0 && c.UIManager.Instance.BackUIPanel(), this.LeftTimeRichText.string = "Activity_Story_LeftTime".ToUILocale().Fmt(_.default.ActivityTimeLeftFormat(t))
            }, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(y.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnGetButtonClick, this), c.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), c.Game.EventDispatcher.On(b.GameEventIds.ChangeDataDetail.Fmt(d.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(y.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnGetButtonClick), c.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), c.Game.EventDispatcher.Off(b.GameEventIds.ChangeDataDetail.Fmt(d.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.OnGetButtonClick = function(e) {
                var t = this;
                if ("" == this._gifts[e].PayId)
                    if (h.DataCenter.Instance.IsItemEnough(m.CommonItemId.Diamond, this._gifts[e].Money))
                        if (0 == this._gifts[e].Money) this.RequestPurchase(e);
                        else {
                            var n = h.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + this._gifts[e].Id);
                            _.default.Instance.ShowDiamondBuyQuery(this._gifts[e].Money, n, function() {
                                t.RequestPurchase(e)
                            })
                        }
                else c.UIManager.Instance.ShowUIPanel(u.PanelConfig.MallNewPanel.Path, [m.MallPageType.DiamondShop, m.GiftPackType.BuyDiamond]);
                else C.default.Instance.Pay(this._gifts[e].Id)
            }, t.prototype.RequestPurchase = function(e) {
                var t = new d.Req_Pay_ByDiamond;
                t.Id = this._gifts[e].Id, h.RpcComponent.Instance.Call(t, function(e) {
                    null == e ? I.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale()) : I.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                })
            }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                var n = this;
                t == this.View && e.forEach(function(e, t) {
                    var o = n._gifts[t],
                        r = null == o.Money || 0 == o.Money ? 0 : C.default.Instance.ExchangeMoney(o.Money),
                        i = "" == o.PayId ? o.Money : 0;
                    e.getComponent(v.default).SetItems(n._itemPool, o.Items).SetButtonLabel(r, o.VipPoint, i).SetPurchaseLimit(o.LimitCount - _.default.Instance.GetGiftBuyCount(o.Id), o.LimitCount, o.LimitType).SetTitle(h.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id)).SetDiscount(o.Discount).SetButtonClick(t)
                })
            }, t.prototype.ClickToggle = function(e) {
                var t = Number.parseInt(e.name);
                this._selectIndex != t && this._defaultMode == m.GiftPackType.LegendGift && (this._gifts = null, this._selectIndex = t, this._modeId = this._legendModeIds[this._selectIndex], this.UpdateGiftData(), this.SetUIContent())
            }, t.prototype.PeelAndSortGifts = function() {
                for (var e = this, t = 0; t < this._gifts.length; t++)
                    for (var n = this._gifts[t].Id; this._gifts[t].LimitCount <= _.default.Instance.GetGiftBuyCount(n) && null != this._upToDown[n];) this._gifts[t] = h.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, this._upToDown[n]), n = this._gifts[t].Id;
                this._gifts.sort(function(t, n) {
                    return t.LimitCount - _.default.Instance.GetGiftBuyCount(t.Id) == 0 ? 1 : n.LimitCount - _.default.Instance.GetGiftBuyCount(n.Id) == 0 ? -1 : e._giftIndexMap[t.Id] - e._giftIndexMap[n.Id]
                })
            }, t.prototype.GetGiftDataAndDeadLine = function(e) {
                this._gifts = [];
                for (var t = 0; t < e.length; t++) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, e[t]);
                    this._gifts[t] = n
                }
                this._deadLine = _.default.Instance.GetGiftDeadTime(e[0])
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear()
            }, i([T(cc.Label)], t.prototype, "Title", void 0), i([T(cc.RichText)], t.prototype, "LeftTimeRichText", void 0), i([T(g.default)], t.prototype, "View", void 0), i([T(cc.Sprite)], t.prototype, "Billboard", void 0), i([T(cc.Sprite)], t.prototype, "BillboardArtWord", void 0), i([T(S.default)], t.prototype, "CustomToggles", void 0), i([T(cc.Node)], t.prototype, "ToggleContainerBgNode", void 0), i([T(cc.Node)], t.prototype, "ToggleContainerNode", void 0), i([A], t)
        }(c.BaseUIPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./ElderGiftPackComponent": "ElderGiftPackComponent",
        "./NodePool": "NodePool"
    }],
    MallFriendinessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b503a4yN3BF3aSjerCbWMf0", "MallFriendinessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomLayout"),
            h = e("./NodePool"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("./GiftPackComponent1"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../Components/ItemComponent"),
            v = e("../../Channel/ChannelManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Tip), t.Title = null, t.TimeLabel = null, t.TimeValue = null, t.View = null, t._gifts = [], t._initCustomLayout = !0, t._upToDown = {}, t._giftIndexMap = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnMallButtonClick, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnMallButtonClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/GiftPackComponent")];
                                case 1:
                                    return t._singlePrefab = o.sent(), [4, Promise.all([this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/GiftPackComponent"), this.LoadDynamicAsset(y.BundlePath.ItemComponent)]).then(function(e) {
                                        n._singlePrefab = e[0], n._itemPrefab = e[1], n._itemPool = new h.default(n._itemPrefab)
                                    })];
                                case 2:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "friendinessGift".ToUILocale(), this.TimeLabel.string = "mall_nextRefresh".ToUILocale(), this._config = c.ConfigDataComponent.Instance.GetConfigById(u.MallActivity_Config, m.GiftPackType.FavorGift), this._gifts = [];
                    var t, n = 0;
                    this._model = c.DataCenter.Instance.GetDataById(l.MallActivity_Model, m.GiftPackType.FavorGift);
                    for (var o = 0; o < this._model.PackIds.length; o++) null == (t = c.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._model.PackIds[o])).UnlockCondition || 0 == t.UnlockCondition ? (this._gifts.push(t), this._giftIndexMap[t.Id] = n, n++) : (this._upToDown[t.UnlockCondition] = t.Id, this._giftIndexMap[t.Id] = this._giftIndexMap[t.UnlockCondition]);
                    this._offset = cc.v2()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._model = c.DataCenter.Instance.GetDataById(l.MallActivity_Model, m.GiftPackType.FavorGift), this._deadline = g.default.Instance.GetMallDeadTime(m.GiftPackType.FavorGift, this._model.RefreshTime), this._initCustomLayout && (this.View.Init(this._singlePrefab), this._initCustomLayout = !1), this.PeelGifts(), this.View.RenderLayOut(this._gifts.length, 0, 0, this._offset), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.View && e.forEach(function(e, t) {
                        var o = n._gifts[t],
                            r = (n._model.PackIds[o.Id], 0);
                        e.getComponent(I.default).SetTitle(c.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id)).SetItems(n._itemPool, o.Items).SetButtonLabel(o.Money, o.VipPoint).SetPurchaseLimit(o.LimitCount - r, o.LimitCount, o.LimitType).SetButtonClick(t, o.Id)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayoutgif" == t.parent.name && _.UIUtlity.ShowItemTip(t.getComponent(C.ItemComponent).ItemId, t)
                }, t.prototype.OnMallButtonClick = function(e, t) {
                    this._offset = this.View.ScrollView.getScrollOffset(), v.default.Instance.Pay(t, this._activityId)
                }, t.prototype.CountDown = function() {
                    var e = this._deadline - c.RpcComponent.Instance.ServerTime;
                    e < 0 && p.UIManager.Instance.BackUIPanel(), this.TimeValue.string = g.default.ActivityTimeLeftFormat(e)
                }, t.prototype.PeelGifts = function() {
                    for (var e = this, t = 0; t < this._gifts.length; t++) this._gifts[t].Id;
                    this._gifts.sort(function(t, n) {
                        return e._giftIndexMap[t.Id] - e._giftIndexMap[n.Id]
                    })
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear()
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Label)], t.prototype, "TimeLabel", void 0), i([w(cc.Label)], t.prototype, "TimeValue", void 0), i([w(d.default)], t.prototype, "View", void 0), i([S], t)
            }(p.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./GiftPackComponent1": "GiftPackComponent1",
        "./NodePool": "NodePool"
    }],
    MallFundPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e1567q+l6lKALIdJyGrlLGe", "MallFundPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            p = e("../../../EZFramework/UIFrame/UIPanelType"),
            d = e("../../../EZFramework/EZDefine/SysDefine"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/ConfigData/ConfigDataComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/ItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../../../Proto/Static/RpcProto"),
            _ = e("../../Components/DataCenter"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../../Channel/ChannelManager"),
            S = e("../../Auxiliary/DataUtlity"),
            w = e("../../../Consts/Consts"),
            P = e("../../Components/RpcComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.Id = 0] = "Id", e[e.Count = 1] = "Count"
        })(l || (l = {})),
        function(e) {
            e[e.GrandTotal = 0] = "GrandTotal", e[e.RightNow = 1] = "RightNow"
        }(c || (c = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(d.UINodeType.Tip, !1), t.Tittle = null, t.TipsTop = null, t.TipsBottom = null, t.GradTotalScroll = null, t.BuyNowScroll = null, t.GradTotalItemGrid = null, t.BuyNowItemGrid = null, t.BuyButton = null, t.BuyButtonLabel = null, t.AttainLabel = null, t.AttainValue = null, t.DiscountLabel = null, t.DiscountValue = null, t.NoGrandHint = null, t.COLUMN_MAX = 5, t._grandTotalItemTable = [], t._buyNowItemTable = [], t._grandTotalRewardMap = new Map, t._buyNowRewardMap = new Map, t._userData = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                C.Game.EventDispatcher.On(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                C.Game.EventDispatcher.Off(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.GradTotalItemGrid.node.children.indexOf(t) && m.UIUtlity.ShowItemTip(e, t), -1 != this.BuyNowItemGrid.node.children.indexOf(t) && m.UIUtlity.ShowItemTip(e, t)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent)];
                            case 1:
                                return t._itemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetClickEvent(), this.SetStaticLocalText()
            }, t.prototype.SetStaticLocalText = function() {
                this.NoGrandHint.string = "mallFundPreview_hint".ToUILocale(), this.Tittle.string = "Answer_RewardPreview".ToUILocale(), this.TipsTop.string = "<outline width=3 color=#221611>" + "privilege_buyNow".ToUILocale() + "</outline>", this.TipsBottom.string = "privilege_grandTotal".ToUILocale(), this.AttainLabel.string = "task_get_score_tag".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
            }, t.prototype.InitData = function(e) {
                this._customData = e[0];
                var t = f.ConfigDataComponent.Instance.GetConfigById(h.MallActivity_Config, this._customData.MallActivityType);
                switch (this._userData = _.DataCenter.Instance.GetDataById(I.MallActivity_Model, this._customData.MallActivityType), this._customData.MallActivityType) {
                    case w.GiftPackType.GrowUpFund:
                        var n = this._userData.IntArray[1] - 1;
                        this._giftId = t.Gifts[n].Items[0], this._gift = f.ConfigDataComponent.Instance.GetConfigById(h.GiftPack_Config, this._giftId);
                        break;
                    case w.GiftPackType.NewGoodFund:
                    case w.GiftPackType.NewGoodFund2:
                        this._giftId = t.Gifts[0].Items[0], this._gift = f.ConfigDataComponent.Instance.GetConfigById(h.GiftPack_Config, this._giftId);
                        break;
                    default:
                        return
                }
                this.BuyButtonLabel.string = b.default.Instance.CurrencySymbol + b.default.Instance.ExchangeMoney(this._gift.Money), this.AttainValue.string = "x" + this._gift.VipPoint, S.default.Instance.SetDisCount(this._gift.Discount, this.DiscountValue, this.DiscountLabel)
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.CalcRewardData(), this.InitGrid(c.GrandTotal), this.InitGrid(c.RightNow)
            }, t.prototype.CalcRewardData = function() {
                switch (this._grandTotalRewardMap.clear(), this._buyNowRewardMap.clear(), this._customData.MallActivityType) {
                    case w.GiftPackType.GrowUpFund:
                        this.ConfigGrowUpReward();
                        break;
                    case w.GiftPackType.NewGoodFund:
                    case w.GiftPackType.NewGoodFund2:
                        this.ConfigGoodFundReward()
                }
            }, t.prototype.ConfigGrowUpReward = function() {
                for (var e = this._userData.IntArray[1], t = _.DataCenter.Instance.GetIntData(w.UserDataKey.PlayerLevel), n = 0; n < this._customData.GrowUpConfigs.length; n++) {
                    var o = this._customData.GrowUpConfigs[n];
                    o.Type == this._customData.MallActivityType && o.Phase == this._userData.Phase && o.Stage == e && (t >= o.Level ? this.SetMap(this._buyNowRewardMap, o.Rewards) : this.SetMap(this._grandTotalRewardMap, o.Rewards))
                }
            }, t.prototype.ConfigGoodFundReward = function() {
                for (var e = Math.floor((P.RpcComponent.Instance.ServerTime - this._userData.RefreshTime) / w.Etc.DayDuration), t = 0; t < this._customData.GoodFundConfig.DailyRewards.length; t++) {
                    var n = f.ConfigDataComponent.Instance.GetConfigById(h.ItemRewards_Config, this._customData.GoodFundConfig.DailyRewards[t]).Rewards;
                    e >= t ? this.SetMap(this._buyNowRewardMap, n) : this.SetMap(this._grandTotalRewardMap, n)
                }
            }, t.prototype.SetMap = function(e, t) {
                for (var n = 0; n < t.length; n++)
                    if (e.has(t[n].Items[l.Id])) {
                        var o = e.get(t[n].Items[l.Id]),
                            r = t[n].Items[l.Count];
                        e.set(t[n].Items[l.Id], o + r)
                    } else e.set(t[n].Items[l.Id], t[n].Items[l.Count])
            }, t.prototype.InitGrid = function(e) {
                var t, n, o, r, i = this,
                    a = 0;
                e == c.GrandTotal ? (t = this._grandTotalItemTable, n = this._grandTotalRewardMap, r = this.GradTotalScroll, o = this.GradTotalItemGrid) : (t = this._buyNowItemTable, n = this._buyNowRewardMap, r = this.BuyNowScroll, o = this.BuyNowItemGrid);
                for (var s = 0; s < t.length; s++) t[s].node.active = !1;
                n.forEach(function(e, n) {
                    if (null == t[a]) {
                        var r = cc.instantiate(i._itemPrefab).getComponent(g.ItemComponent);
                        r.node.parent = o.node, t[a] = r
                    }
                    t[a].node.name = n.toString(), t[a].Init({
                        ItemId: n,
                        Count: e
                    }), t[a].node.active = !0, a++
                }), 0 == t.length && e == c.GrandTotal && (this.NoGrandHint.node.active = !0), this.ResizeLayout(r, o, n.size)
            }, t.prototype.ResizeLayout = function(e, t, n) {
                if (n < this.COLUMN_MAX) e.enabled = !1, t.node.anchorX = .5, t.resizeMode = cc.Layout.ResizeMode.CONTAINER;
                else {
                    e.enabled = !0, t.node.anchorX = 0, t.resizeMode = cc.Layout.ResizeMode.NONE;
                    var o = t.spacingX,
                        r = t.node.scaleX;
                    t.node.width = m.UIUtlity.ITEM_COMPONENT_WIDTH * r * n + o * (n - 1), e.scheduleOnce(function() {
                        this.scrollToOffset(cc.v2(0, 0))
                    }, .1)
                }
                t.updateLayout()
            }, t.prototype.OnBuyButtonClick = function() {
                b.default.Instance.Pay(this._giftId), this.Close()
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, i([R(cc.Label)], t.prototype, "Tittle", void 0), i([R(cc.RichText)], t.prototype, "TipsTop", void 0), i([R(cc.RichText)], t.prototype, "TipsBottom", void 0), i([R(cc.ScrollView)], t.prototype, "GradTotalScroll", void 0), i([R(cc.ScrollView)], t.prototype, "BuyNowScroll", void 0), i([R(cc.Layout)], t.prototype, "GradTotalItemGrid", void 0), i([R(cc.Layout)], t.prototype, "BuyNowItemGrid", void 0), i([R(cc.Button)], t.prototype, "BuyButton", void 0), i([R(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([R(cc.Label)], t.prototype, "AttainLabel", void 0), i([R(cc.Label)], t.prototype, "AttainValue", void 0), i([R(cc.Label)], t.prototype, "DiscountLabel", void 0), i([R(cc.Label)], t.prototype, "DiscountValue", void 0), i([R(cc.Label)], t.prototype, "NoGrandHint", void 0), i([T], t)
        }(u.BaseUIPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MallGiftComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7e2a1g58hZFXKxi0VXlAKNo", "MallGiftComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GiftBG = null, t.GiftName = null, t.GiftMask = null, t.GiftTag = null, t.GiftTagLabel = null, t.GiftRemainderTime = null, t.GiftRemainderTimeLabel = null, t.GiftRemainderTimeValue = null, t
                }
                return r(t, e), t.prototype.SetMode = function(e, t) {
                    return this.GiftBG.spriteFrame = e, this.GiftName.spriteFrame = t, this
                }, t.prototype.SetMask = function(e) {
                    this.GiftMask.active = e
                }, t.prototype.SetTag = function(e) {
                    return null == e ? this.GiftTag.active : (this.GiftTag.active, this.GiftTagLabel.string = e), this
                }, t.prototype.SetRemainderTime = function(e) {
                    null == e ? this.GiftRemainderTime.active : (this.GiftRemainderTime.active, this.GiftRemainderTimeLabel.string = "gift_remainderTime".ToUILocale(), this.GiftRemainderTimeValue.string = e)
                }, i([l(cc.Sprite)], t.prototype, "GiftBG", void 0), i([l(cc.Sprite)], t.prototype, "GiftName", void 0), i([l(cc.Node)], t.prototype, "GiftMask", void 0), i([l(cc.Node)], t.prototype, "GiftTag", void 0), i([l(cc.Label)], t.prototype, "GiftTagLabel", void 0), i([l(cc.Node)], t.prototype, "GiftRemainderTime", void 0), i([l(cc.Label)], t.prototype, "GiftRemainderTimeLabel", void 0), i([l(cc.Label)], t.prototype, "GiftRemainderTimeValue", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    MallGiftPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "181e1JwgidHFp0QGtFMkXfa", "MallGiftPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("./NodePool"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("./CustomGiftPackComponent"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../../Consts/Etc"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/ItemComponent"),
            C = e("../../Channel/ChannelManager"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../Consts/GameEventIds"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.NextRefreshLabel = null, t.NextRefreshTime = null, t.View = null, t.Scroll = null, t.DownArrow = null, t.Billboard = null, t.BillboardArtWord = null, t.ReturnButton = null, t._initCustomLayout = !0, t._modeIdToMode = [], t._billboardNameArray = ["gift_hero", "gift_grow", "gift_lefend", "friendiness"], t._artWordNameArray = ["mall_herogift", "mall_growgift", "mall_legendgift", "mall_favor"], t._upToDown = {}, t._giftIndexMap = {}, t._packComponents = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallGiftPackPanel/Component/CustomGiftPackComponent"), o = this.LoadDynamicAsset("MallPanel/PNG/mall", cc.SpriteAtlas), r = this.LoadDynamicAsset("MallGiftPackPanel/Component/GiftPackItemContainer"), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._itemPrefab = e[0], i._singlePrefab = e[1], i._atlas = e[2], i._itemPool = new h.default(i._itemPrefab), i._packItemPool = new h.default(e[3])
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.NextRefreshLabel.string = "mall_nextRefresh".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.Scroll.node.on("scrolling", this.OnScrollViewScroll, this), this._currentShowMode = 0, this._modeIdToMode[g.GiftPackType.HeroGift] = 0, this._modeIdToMode[g.GiftPackType.GrowUpGift] = 1, this._modeIdToMode[g.GiftPackType.LegendGift] = 2, this._modeIdToMode[g.GiftPackType.FavorGift] = 3, this.View.parent.height = I.UIUtlity.DESIGN_SCREEN_HEIGHT - 420, this.Scroll.node.height = this.View.parent.height
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._modeId = t[0]
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this._currentShowMode = this._modeIdToMode[this._modeId], this.Billboard.spriteFrame = this._atlas.getSpriteFrame(this._billboardNameArray[this._currentShowMode]), this.BillboardArtWord.spriteFrame = I.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame(this._artWordNameArray[this._currentShowMode]), this._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, this._modeId), null == this._gifts) {
                        this._gifts = [], this._giftIndexMap = {};
                        for (var n = 0, o = void 0, r = 0; r < this._model.PackIds.length; r++) null == (o = d.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._model.PackIds[r])).UnlockCondition || 0 == o.UnlockCondition ? (this._gifts.push(o), this._giftIndexMap[o.Id] = n, n++) : (this._upToDown[o.UnlockCondition] = o.Id, this._giftIndexMap[o.Id] = this._giftIndexMap[o.UnlockCondition]);
                        for (this._packComponents = [], r = 0; r < this._gifts.length; r++) {
                            var i = cc.instantiate(this._singlePrefab);
                            i.setParent(this.View), this._packComponents.push(i.getComponent(y.default))
                        }
                    }
                    var a;
                    for (this.PeelAndSortGifts(), r = 0; r < this._packComponents.length; r++) {
                        var s = (a = this._gifts[r]).Money > 0 ? C.default.Instance.ExchangeMoney(a.Money) : 0;
                        this._packComponents[r].SetButtonClick(r, a.Id).SetButtonLabel(s, a.VipPoint).SetTag(a.Discount).SetItems(this._itemPool, this._packItemPool, a.Items).SetPurchaseLimit(a.LimitCount - v.default.Instance.GetGiftBuyCount(a.Id), a.LimitCount, a.LimitType).SetTitle(a.BannerImage, a.GiftNameImage)
                    }
                    this.CountDown(), this.unscheduleAllCallbacks(), this.schedule(this.CountDown, 1)
                }, t.prototype.CountDown = function() {
                    var e = d.RpcComponent.Instance.ServerTime,
                        t = v.default.Instance.GetMallDeadTime(this._modeId, this._model.RefreshTime) - e;
                    if (t < 0 && (this._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, this._modeId), t = v.default.Instance.GetMallDeadTime(this._modeId, this._model.RefreshTime) - e), t >= m.Etc.DayDuration) {
                        var n = Math.floor(t / m.Etc.DayDuration),
                            o = Math.floor(t % m.Etc.DayDuration / m.Etc.HourDuration);
                        this.NextRefreshTime.string = "timeFormat_DayAndHour".ToUILocale().Fmt(n, o)
                    } else this.NextRefreshTime.string = t.FmtRemainTime()
                }, t.prototype.PeelAndSortGifts = function() {
                    for (var e = this, t = 0; t < this._gifts.length; t++)
                        for (var n = this._gifts[t].Id; this._gifts[t].LimitCount <= v.default.Instance.GetGiftBuyCount(n) && null != this._upToDown[n];) this._gifts[t] = d.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._upToDown[n]), n = this._gifts[t].Id;
                    this._gifts.sort(function(t, n) {
                        return t.LimitCount - v.default.Instance.GetGiftBuyCount(t.Id) == 0 ? 1 : n.LimitCount - v.default.Instance.GetGiftBuyCount(n.Id) == 0 ? -1 : e._giftIndexMap[t.Id] - e._giftIndexMap[n.Id]
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnGetButtonClick, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(b.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnGetButtonClick), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(b.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.OnGetButtonClick = function(e) {
                    if (0 == C.default.Instance.ExchangeMoney(this._gifts[e].Money)) {
                        var t = new p.Req_Pay_ByDiamond;
                        t.Id = this._gifts[e].Id, d.RpcComponent.Instance.Call(t, function(e) {
                            I.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else C.default.Instance.Pay(this._gifts[e].Id)
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemFather" == t.parent.name && I.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnScrollViewScroll = function(e) {
                    e == this.Scroll && (this.DownArrow.active = e.getMaxScrollOffset().y - e.getScrollOffset().y > 100)
                }, t.prototype.OnMallActivityDataChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == this._modeId) return void this.DisPlay(!0)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._packItemPool && this._packItemPool.Clear(), this._itemPool && this._itemPool.Clear()
                }, i([P(cc.Label)], t.prototype, "NextRefreshLabel", void 0), i([P(cc.Label)], t.prototype, "NextRefreshTime", void 0), i([P(cc.Node)], t.prototype, "View", void 0), i([P(cc.ScrollView)], t.prototype, "Scroll", void 0), i([P(cc.Node)], t.prototype, "DownArrow", void 0), i([P(cc.Sprite)], t.prototype, "Billboard", void 0), i([P(cc.Sprite)], t.prototype, "BillboardArtWord", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./CustomGiftPackComponent": "CustomGiftPackComponent",
        "./NodePool": "NodePool"
    }],
    MallGrowFundPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eb371HkyJFAkJxpNdZZBAxw", "MallGrowFundPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("./NodePool"),
            f = e("./GrowFundComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/CustomLayout"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../../Consts/GameEventIds"),
            b = e("../Components/CustomToggle"),
            S = e("../../RedDot/RedDotManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.CanGetLabel = null, t.CanGetNumber = null, t.Banner = null, t.Word = null, t.BuyButtonLabel = null, t.BuyButton = null, t.OnekeyButtonLabel = null, t.OnekeyButton = null, t.NextRefreshLabel = null, t.NextRefreshTime = null, t.SingleContainer = null, t.View = null, t.DiscountLabel = null, t.DiscountValue = null, t.ScrollView = null, t.ToggleContainer = null, t.BottomToggleNode = null, t._giftIds = [], t._initCustLayo = !0, t._selectIndex = 0, t._bannerNames = [], t._wordNames = [], t._growTypes = [], t._configMap = null, t._toggleNames = [], t._atlas = null, t._mallAtlas = null, t._togglePrefab = null, t._gameModuleShow = [], t._gameModuleUnlock = [], t._reddots = [], t._toggleNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(v.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.SetUIContent, this), l.Game.EventDispatcher.On(v.GameEventIds.AddDataDetail.Fmt(p.GiftPack_Model._n_), this.SetUIContent, this), l.Game.EventDispatcher.On(v.GameEventIds.ChangeDataDetail.Fmt(p.GiftPack_Model._n_), this.SetUIContent, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(v.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.SetUIContent, this), l.Game.EventDispatcher.Off(v.GameEventIds.AddDataDetail.Fmt(p.GiftPack_Model._n_), this.SetUIContent, this), l.Game.EventDispatcher.Off(v.GameEventIds.ChangeDataDetail.Fmt(p.GiftPack_Model._n_), this.SetUIContent, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallGrowFundPanel/Component/GrowFundComponent"), o = this.LoadDynamicAsset("MallGrowFundPanel/PNG/MallGrowFund", cc.SpriteAtlas), r = this.LoadDynamicAsset(d.GlobalConfigComponent.GetMultilangKey("Multilang/mall"), cc.SpriteAtlas), i = this.LoadDynamicAsset("Buttons/ToggleBottom", cc.Prefab), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._itemPrefab = e[0], a._singlePrefab = e[1], a._atlas = e[2], a._mallAtlas = e[3], a._togglePrefab = e[4], a._itemPool = new h.default(a._itemPrefab), a._singlePool = new h.default(a._singlePrefab)
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "mall_growth_fund".ToUILocale(), this.CanGetLabel.string = "task_get_score_tag".ToUILocale(), this.NextRefreshLabel.string = "mall_nextRefresh".ToUILocale(), this.OnekeyButtonLabel.string = "mail_receiveAllReward".ToUILocale(), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.OnekeyButton.node.on("click", this.OnOnekeyButtonClick, this), this._bannerNames = ["banner_summonHero", "banner_wishCall", "banner_summonChaos", "banner_personality", "banner_summonPerson", "banner_personality_lr", "banner_wishCall_lr"], this._wordNames = ["growGift", "growGift_65", "growGift_70", "growGift_65", "growGift_65", "growGift", "growGift"], this._toggleNames = ["mall_growth_fund".ToUILocale(), "growth_wishcall".ToUILocale(), "growth_summonChaos".ToUILocale(), "growth_personality".ToUILocale(), "growth_summonPerson".ToUILocale(), "growth_personality_lr".ToUILocale(), "growth_wishcall_lr".ToUILocale()], this._growTypes = [m.GiftPackType.GrowUpFund, m.GiftPackType.GrowUpWishCall, m.GiftPackType.GrowUpSummonChaos, m.GiftPackType.GrowUpPersonality, m.GiftPackType.GrowUpSummonPerson, m.GiftPackType.GrowUpLRPersonality, m.GiftPackType.GrowUpLRHero], this._gameModuleShow = [m.GameModuleType.GrowUpFundShow, m.GameModuleType.GrowUpWishCallShow, m.GameModuleType.GrowUpSummonChaosShow, m.GameModuleType.GrowUpPersonalityShow, m.GameModuleType.GrowUpSummonPersonShow, m.GameModuleType.GrowUpLRPersonalityShow, m.GameModuleType.GrowUpLRHeroShow], this._gameModuleUnlock = [m.GameModuleType.GrowUpFund, m.GameModuleType.GrowUpWishCall, m.GameModuleType.GrowUpSummonChaos, m.GameModuleType.GrowUpPersonality, m.GameModuleType.GrowUpSummonPerson, m.GameModuleType.GrowUpLRPersonality, m.GameModuleType.GrowUpLRHero], this._reddots = [S.RedDotManager.Instance.RedDot.MallGrowthHero, S.RedDotManager.Instance.RedDot.MallGrowthWishCall, S.RedDotManager.Instance.RedDot.MallGrowthSummonChaos, S.RedDotManager.Instance.RedDot.MallGrowthPersonailty, S.RedDotManager.Instance.RedDot.MallGrowthSummonPerson, S.RedDotManager.Instance.RedDot.MallGrowthPersonalityLR, S.RedDotManager.Instance.RedDot.MallGrowthWishCallLR]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetToggleContainer(), this.SetUIContent()
                }, t.prototype.SetToggleContainer = function() {
                    for (var e = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, m.LevelParamType.GrowUpFundType), t = 0, n = 0; n < e.Data.length; n++) {
                        var o = cc.instantiate(this._togglePrefab);
                        o.setParent(this.ToggleContainer);
                        var r = o.getComponent(b.default),
                            i = e.Data[n],
                            a = this._growTypes.indexOf(i);
                        if (o.name = a.toString(), o.on("toggle", this.ClickToggle, this), r.Init(this._toggleNames[a]), this._toggleNodes[a] = o, C.default.Instance.IsGameModuleUnlock(this._gameModuleShow[a])[0]) {
                            t++;
                            var s = C.default.Instance.IsGameModuleUnlock(this._gameModuleUnlock[a]);
                            s[0] ? r.SetInteractable(!0) : r.SetInteractable(!1, s[1])
                        } else o.active = !1
                    }
                    this._selectIndex = this._growTypes.indexOf(e.Data[0]), this._toggleNodes[this._selectIndex].getComponent(b.default).isChecked = !0, this.BottomToggleNode.active = t > 1, this.ScrollView.enabled = t >= 5, t < 5 && (this.ToggleContainer.x = 0)
                }, t.prototype.SetUIContent = function() {
                    this.SetData(), this.SetButtonState(), this.GetConfigsByPhase(), this.SetBanner(), this.BindReddot(), this.unscheduleAllCallbacks(), this.RefreshTime(), this.schedule(this.RefreshTime, 1), this.InitCustomLayout(), null == this._gifts && (this._gifts = [d.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._giftId)]), this.CanGetNumber.string = "x" + this._gifts[0].VipPoint, this.BuyButtonLabel.string = _.default.Instance.CurrencySymbol + _.default.Instance.ExchangeMoney(this._gifts[0].Money)
                }, t.prototype.SetData = function() {
                    var e = this;
                    this._configMap || (this._configMap = {}, d.ConfigDataComponent.Instance.GetArrayConfig(u.GrowUpFund_Config).forEach(function(t) {
                        e._configMap[t.Type] || (e._configMap[t.Type] = []), e._configMap[t.Type].push(t)
                    })), this._configs = this._configMap[this._growTypes[this._selectIndex]];
                    for (var t = d.ConfigDataComponent.Instance.GetConfigById(u.MallActivity_Config, this._growTypes[this._selectIndex]).Gifts, n = 0; n < t.length; n++) this._giftIds[n] = t[n].Items[0]
                }, t.prototype.GetConfigsByPhase = function() {
                    var e = [],
                        t = this._model.IntArray[1];
                    l.EZLog.Log("stage = ", t, ", phase = ", this._model.Phase);
                    for (var n = 0; n < this._configs.length; n++) this._configs[n].Phase == this._model.Phase && this._configs[n].Stage == t && e.push(this._configs[n]);
                    this._configs = e
                }, t.prototype.SetBanner = function() {
                    this.Banner.spriteFrame = this._atlas.getSpriteFrame(this._bannerNames[this._selectIndex]), this.Word.spriteFrame = this._mallAtlas.getSpriteFrame(this._wordNames[this._selectIndex])
                }, t.prototype.BindReddot = function() {
                    var e = this;
                    this._toggleNodes.forEach(function(t) {
                        S.RedDotManager.Instance.Bind(t, e._reddots[Number(t.name)])
                    })
                }, t.prototype.RefreshTime = function() {
                    var e = C.default.Instance.GetMallDeadTime(this._growTypes[this._selectIndex], this._model.RefreshTime);
                    if (null != e) {
                        var t = e - d.RpcComponent.Instance.ServerTime;
                        t < 0 && (this._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, this._growTypes[this._selectIndex]), t = (e = C.default.Instance.GetMallDeadTime(this._growTypes[this._selectIndex], this._model.RefreshTime)) - d.RpcComponent.Instance.ServerTime), this.NextRefreshTime.string = C.default.ActivityTimeLeftFormat(t)
                    } else this.NextRefreshTime.node.parent.active = !1
                }, t.prototype.InitCustomLayout = function() {
                    this._initCustLayo && (this._initCustLayo = !1, this.View.Init(this._singlePrefab)), this.View.RenderLayOut(this._configs.length)
                }, t.prototype.SetButtonState = function() {
                    this._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, this._growTypes[this._selectIndex]);
                    var e = this._model.IntArray[1] - 1,
                        t = d.ConfigDataComponent.Instance.GetConfigById(u.MallActivity_Config, this._growTypes[this._selectIndex]);
                    this._giftId = t.Gifts[e].Items[0];
                    var n = d.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._giftId);
                    C.default.Instance.SetDisCount(n.Discount, this.DiscountValue, this.DiscountLabel), this._isBought = C.default.Instance.GetGiftBuyCount(this._giftId) > 0, this.OnekeyButton.node.active = this._isBought, this.BuyButton.node.active = !this._isBought
                }, t.prototype.OnBuyButtonClick = function() {
                    _.default.Instance.Pay(this._giftId)
                }, t.prototype.OnOnekeyButtonClick = function() {
                    var e = new p.Req_Mall_ReceiveGrowUpFund;
                    e.Type = this._growTypes[this._selectIndex], d.RpcComponent.Instance.Call(e, function(e) {
                        e.Rewards.length > 0 ? I.UIUtlity.ShwDisplayRewardPanel(e.Rewards) : I.UIUtlity.ShowFloatingHint("temporaryNoReward".ToUILocale())
                    })
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    this._selectIndex != t && (this._gifts = null, this._selectIndex = t, this.SetUIContent())
                }, t.prototype.OnPurchaseButtonClick = function() {
                    this._isBought ? this.OnOnekeyButtonClick() : I.UIUtlity.ShowFloatingHint("mall_growFund_availableAfterBuy".ToUILocale())
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    if (t == this.View) {
                        var o = d.DataCenter.Instance.GetIntData(m.UserDataKey.PlayerLevel),
                            r = this._model.IntArray[0];
                        this._configs.sort(function(e, t) {
                            return e.Id <= r ? 1 : t.Id <= r ? -1 : e.Id - t.Id
                        }), e.forEach(function(e, t) {
                            e.getComponent(f.default).SetTitle("mall_growFund_getWhenLevel".ToUILocale().Fmt(n._configs[t].Level)).SetBuyProgress(o, n._configs[t].Level, n._configs[t].Id <= r, n._isBought).SetItems(n._itemPool, n._configs[t].Rewards).SetButtonClick(t)
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayout69" == t.parent.name && I.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear(), this._singlePool && this._singlePool.Clear()
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.Label)], t.prototype, "CanGetLabel", void 0), i([A(cc.Label)], t.prototype, "CanGetNumber", void 0), i([A(cc.Sprite)], t.prototype, "Banner", void 0), i([A(cc.Sprite)], t.prototype, "Word", void 0), i([A(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([A(cc.Button)], t.prototype, "BuyButton", void 0), i([A(cc.Label)], t.prototype, "OnekeyButtonLabel", void 0), i([A(cc.Button)], t.prototype, "OnekeyButton", void 0), i([A(cc.Label)], t.prototype, "NextRefreshLabel", void 0), i([A(cc.Label)], t.prototype, "NextRefreshTime", void 0), i([A(cc.Node)], t.prototype, "SingleContainer", void 0), i([A(g.default)], t.prototype, "View", void 0), i([A(cc.Label)], t.prototype, "DiscountLabel", void 0), i([A(cc.Label)], t.prototype, "DiscountValue", void 0), i([A(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([A(cc.Node)], t.prototype, "ToggleContainer", void 0), i([A(cc.Node)], t.prototype, "BottomToggleNode", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "./GrowFundComponent": "GrowFundComponent",
        "./NodePool": "NodePool"
    }],
    MallMonthCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "96ca5rZna1BGY93flYTgIFO", "MallMonthCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Channel/ChannelManager"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../../ShareConsts/EnumType"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.CardNameIcon = null, t.TopRichText = null, t.BoughtTag = null, t.RewardsContainer = null, t.RewardTitle = null, t.BuyButton = null, t.BuyButtonLabel = null, t.AttainLabel = null, t.AttainValue = null, t.DiscountLabel = null, t.DiscountValue = null, t.ImmediatelyRewardContainer = null, t.ImmediatelyLabel = null, t.LimitCardContainer = null, t.BuyLimitLabel = null, t.IsUnlockCard1 = null, t.IsUnlockCard2 = null, t._itemComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onLoad = function() {
                    this.ImmediatelyLabel.string = "monthCard_buyAndGot".ToUILocale(), this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.RewardTitle.string = "monthCard_activeBenefit".ToUILocale(), this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._cardType = e, this._monthCardData = t, this._giftId = n, this._itemPrefab = o, this._atlas = r, this._currentCardData = this._monthCardData[this._cardType - 1].Items, this._giftConfig = h.ConfigDataComponent.Instance.GetConfigById(g.GiftPack_Config, this._giftId), this.SetDifferentCardType(), this.SetRemainderTime(), this.SetImmediatelyReward(), this.SetButton()
                }, t.prototype.SetDifferentCardType = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            switch (this.LimitCardContainer.active = !1, this._cardType) {
                                case m.MonthCardType.Glory:
                                    e = "monthCard_banner1", this.CardNameIcon.spriteFrame = f.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("monthCard_1"), this._rewardConfig = h.ConfigDataComponent.Instance.GetConfigById(g.LevelParam_Config, m.LevelParamType.GloryMonthCard);
                                    break;
                                case m.MonthCardType.Supreme:
                                    e = "monthCard_banner2", this.CardNameIcon.spriteFrame = f.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("monthCard_2"), this._rewardConfig = h.ConfigDataComponent.Instance.GetConfigById(g.LevelParam_Config, m.LevelParamType.SupremeMonthCard);
                                    break;
                                case m.MonthCardType.Perfect:
                                    this.LimitCardContainer.active = !0, e = "monthCard_banner3", this.CardNameIcon.spriteFrame = f.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("monthCard_3"), this._rewardConfig = h.ConfigDataComponent.Instance.GetConfigById(g.LevelParam_Config, m.LevelParamType.PerfectMonthCard), this.SetPerfectCardLabel();
                                    break;
                                case m.MonthCardType.King:
                                    e = "monthCard_banner1", this._rewardConfig = h.ConfigDataComponent.Instance.GetConfigById(g.LevelParam_Config, m.LevelParamType.KingMonthCard), this.CardNameIcon.spriteFrame = f.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("monthCard_1")
                            }
                            return this.Bg.spriteFrame = this._atlas.getSpriteFrame(e), this.SetRewardItems(), [2]
                        })
                    })
                }, t.prototype.SetRemainderTime = function() {
                    var e = this._currentCardData[1] - this._currentCardData[2];
                    this.BoughtTag.active = e > 0, this.TopRichText.node.parent.active = e > 0, this.TopRichText.string = "monthCard_countDown".ToUILocale().Fmt(e)
                }, t.prototype.SetImmediatelyReward = function() {
                    if (!this._immediatelyRewardComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ImmediatelyRewardContainer), this._immediatelyRewardComponent = e.getComponent(y.ItemComponent)
                    }
                    var t = h.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, this._giftConfig.Items[0].Items[0]);
                    this._immediatelyRewardComponent.Init({
                        ItemId: t.Id,
                        Count: this._giftConfig.Items[0].Items[1]
                    }, t.Star ? y.ItemComponentType.ItemWithStar : y.ItemComponentType.ItemCommon), this._immediatelyRewardComponent.PlayLightingCircleEffect(2)
                }, t.prototype.SetRewardItems = function() {
                    for (var e = 0; e < this._rewardConfig.Data2.length; e++) {
                        var t = this._itemComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.RewardsContainer), t = n.getComponent(y.ItemComponent), this._itemComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o = this._rewardConfig.Data2[e].Items[0],
                            r = h.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, o);
                        t.Init({
                            ItemId: o,
                            Count: this._rewardConfig.Data2[e].Items[1]
                        }, r.Star ? y.ItemComponentType.ItemWithStar : y.ItemComponentType.ItemCommon), this.PlayEffect(t, this._rewardConfig.Data2[e].Items[2])
                    }
                    if (this._rewardConfig.Data2.length < this._itemComponentArray.length)
                        for (e = this._rewardConfig.Data2.length; e < this._itemComponentArray.length; e++) this._itemComponentArray[e].node.active = !1
                }, t.prototype.SetButton = function() {
                    this.BuyButtonLabel.string = d.default.Instance.CurrencySymbol + d.default.Instance.ExchangeMoney(this._giftConfig.Money), this.AttainValue.string = "x" + this._giftConfig.VipPoint, u.default.Instance.SetDisCount(this._giftConfig.Discount, this.DiscountValue, this.DiscountLabel)
                }, t.prototype.SetPerfectCardLabel = function() {
                    var e = this._monthCardData[m.MonthCardType.Glory - 1].Items[1] - this._monthCardData[m.MonthCardType.Glory - 1].Items[2],
                        t = this._monthCardData[m.MonthCardType.Supreme - 1].Items[1] - this._monthCardData[m.MonthCardType.Supreme - 1].Items[2];
                    this.BuyLimitLabel.string = "monthCard_tip_buy_limit".ToUILocale(), this.IsUnlockCard1.string = e > 0 ? "monthCard_active".ToUILocale() : "monthCard_not_active".ToUILocale(), this.IsUnlockCard2.string = t > 0 ? "monthCard_active".ToUILocale() : "monthCard_not_active".ToUILocale()
                }, t.prototype.PlayEffect = function(e, t) {
                    if (null != t && (1 == t || 2 == t || 3 == t || 4 == t)) {
                        var n = t;
                        e.PlayLightingCircleEffect(n)
                    }
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("MonthCardDaysCountLimit");
                    if (0 == this._currentCardData[0] || this._currentCardData[1] - this._currentCardData[2] < e)
                        if (this._cardType == m.MonthCardType.Perfect) {
                            var t = this._monthCardData[m.MonthCardType.Glory - 1].Items,
                                n = this._monthCardData[m.MonthCardType.Supreme - 1].Items;
                            t[1] - t[2] > 0 && n[1] - n[2] > 0 ? d.default.Instance.Pay(this._giftId) : f.UIUtlity.ShowFloatingHint("monthCard_buy_limit".ToUILocale())
                        } else d.default.Instance.Pay(this._giftId);
                    else f.UIUtlity.ShowFloatingHint("mall_monthCard_notReachLimitTime".ToUILocale().Fmt(e))
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent != this.ImmediatelyRewardContainer && t.parent != this.RewardsContainer || f.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                }, i([C(cc.Sprite)], t.prototype, "Bg", void 0), i([C(cc.Sprite)], t.prototype, "CardNameIcon", void 0), i([C(cc.RichText)], t.prototype, "TopRichText", void 0), i([C(cc.Node)], t.prototype, "BoughtTag", void 0), i([C(cc.Node)], t.prototype, "RewardsContainer", void 0), i([C(cc.RichText)], t.prototype, "RewardTitle", void 0), i([C(cc.Button)], t.prototype, "BuyButton", void 0), i([C(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([C(cc.Label)], t.prototype, "AttainLabel", void 0), i([C(cc.Label)], t.prototype, "AttainValue", void 0), i([C(cc.Label)], t.prototype, "DiscountLabel", void 0), i([C(cc.Label)], t.prototype, "DiscountValue", void 0), i([C(cc.Node)], t.prototype, "ImmediatelyRewardContainer", void 0), i([C(cc.Label)], t.prototype, "ImmediatelyLabel", void 0), i([C(cc.Node)], t.prototype, "LimitCardContainer", void 0), i([C(cc.Label)], t.prototype, "BuyLimitLabel", void 0), i([C(cc.RichText)], t.prototype, "IsUnlockCard1", void 0), i([C(cc.RichText)], t.prototype, "IsUnlockCard2", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MallMonthCardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3436ccZKVtEUKwvlPMhurWj", "MallMonthCardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/GameEventIds"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Channel/ChannelManager"),
            y = e("../../Components/Components"),
            g = e("../../Components/DataCenter"),
            m = e("./MallMonthCardComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Tip), t.TipLabel = null, t.CardContainer = null, t.ReturnButton = null, t.ScrollView = null, t._workData = [], t._cardComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("MallMonthCardPanel/Components/MallMonthCardComponent", cc.Prefab), o = this.LoadDynamicAsset("MallMonthCardPanel/PNG/monthCard", cc.SpriteAtlas), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._monthCardPrefab = e[1], r._atlas = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TipLabel.string = "monthCard_continus_buy".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this);
                    var t = f.default.Instance.IsVNChannel();
                    this.ScrollView.enabled = !t, this.CardContainer.anchorY = t ? .5 : 1, this.CardContainer.y = t ? 0 : this.CardContainer.parent.height / 2
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this.SetMonthCardConfig(), this._cardTypeArray = [d.MonthCardType.Glory, d.MonthCardType.Supreme, d.MonthCardType.Perfect]
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this._model = g.DataCenter.Instance.GetDataById(c.MallActivity_Model, d.GiftPackType.MonthCard), this._workData = [{
                        Items: [0, 0, 0]
                    }, {
                        Items: [0, 0, 0]
                    }, {
                        Items: [0, 0, 0]
                    }, {
                        Items: [0, 0, 0]
                    }], null != this._model && null != this._model.Int2DArray && this._model.Int2DArray.forEach(function(e, t) {
                        n._workData[t] = e
                    }), this.SetCardContainer()
                }, t.prototype.SetMonthCardConfig = function() {
                    this._monthCardConfig = {};
                    for (var e = y.ConfigDataComponent.Instance.GetConfigById(l.MallActivity_Config, d.GiftPackType.MonthCard), t = 0; t < e.Gifts.length; t++) this._monthCardConfig[t + 1] = e.Gifts[t]
                }, t.prototype.SetCardContainer = function() {
                    for (var e = 0; e < this._cardTypeArray.length; e++) {
                        var t = this._cardTypeArray[e];
                        if (this._monthCardConfig[t]) {
                            var n = this._cardComponentArray[e];
                            if (!n) {
                                var o = cc.instantiate(this._monthCardPrefab);
                                o.setParent(this.CardContainer), n = o.getComponent(m.default), this._cardComponentArray[e] = n
                            }
                            n.Init(t, this._workData, this._monthCardConfig[t].Items[0], this._itemPrefab, this._atlas)
                        }
                    }
                }, t.prototype.OnReturnButtonClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnMallActivityDataChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == d.GiftPackType.MonthCard) return void this.DisPlay(!0)
                }, i([C(cc.Label)], t.prototype, "TipLabel", void 0), i([C(cc.Node)], t.prototype, "CardContainer", void 0), i([C(cc.Button)], t.prototype, "ReturnButton", void 0), i([C(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([_], t)
            }(p.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "./MallMonthCardComponent": "MallMonthCardComponent"
    }],
    MallNewCenterComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9eddd+Bk8xCVrpxXcUKzgLh", "MallNewCenterComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./AsyncLayout"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("./MallNewGiftComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("./MallNewDailyChooseAutoBuyComponent"),
            _ = e("../../Channel/ChannelManager"),
            C = e("./MallSubPageBtnCompontent"),
            v = e("./_MultilangSprite"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("./DiamondShopItemGoodComponent"),
            w = e("./MallNewPanelVipLevelComponent"),
            P = e("./ContinuePayProgressComponent"),
            A = e("../../RedDot/RedDotDataHandler"),
            T = e("./MallNewMonthCardContainerComponent"),
            R = e("./MallNewPermanentPrivilegeComponent"),
            L = e("../../../Consts/Etc"),
            k = e("../Panel/MallNewPanel"),
            O = e("./MallDailySelectionHeroComponent"),
            M = cc._decorator,
            D = M.ccclass,
            B = M.property,
            N = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Banner = null, t.Banner1 = null, t.ArtWord = null, t.Time = null, t.TimeLabel = null, t.TimeValue = null, t.StoneShop = null, t.StoneShopLabel = null, t.BannerHint = null, t.RuleButton = null, t.FreeBtn = null, t.TimeLeftLabel = null, t.FreeAni = null, t.GiftPackContainer = null, t.ViewWidgets = [], t.DiamondViewWidgets = [], t.ScrollView = null, t.View = null, t.DiamondScrollview = null, t.DiamondView = null, t.DiamondAsyncLayout = null, t.DailySelectionAutoBuy = null, t.PageLessContainer = null, t.PageLotContainer = null, t.PageLotContainerScrollview = null, t.MultilangSprite = null, t.VipLevelContainer = null, t.ContinueProgressContainer = null, t.FundBg = null, t.FundBuyNode = null, t.FundBtn = null, t.FundBtnLabel = null, t.FundNoGetBtn = null, t.FundNoGetBtnLabel = null, t.FundDiscount = null, t.FundVipPointLeft = null, t.FundVipPointRight = null, t.FundGood = null, t.FundGoodValue = null, t.FundRedDot = null, t.FundHint = null, t.ChildPageContainer = null, t.PreviewBtn = null, t.PreviewBtnLabel = null, t._currencyPage = -1, t._mallIds = [], t._pageBtns = [], t._asset = [], t._assetMap = {}, t._assetByPath = {}, t._sortPageIds = [], t._giftPacksByPageId = {}, t._giftPackSortIds = {}, t._giftPacks = [], t._autoTimes = 0, t._continueTasks = [], t._goodFundGonfigs = [], t._growthFundConfig = [], t._subPrivilegeSortIds = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(b.EventKeys.EVENT_DIAMONDSHOP_BUYDIAMOND, this.OnChargeButtonClick, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(b.EventKeys.EVENT_DIAMONDSHOP_BUYDIAMOND, this.OnChargeButtonClick, this)
                }, t.prototype.OnChargeButtonClick = function(e) {
                    var t = this._giftPacksByPageId[this._currencyPageType];
                    if (this._currencyPageType == g.GiftPackType.BuyCurrency) _.default.Instance.Pay(t[e].Id);
                    else if (this._currencyPageType == g.GiftPackType.BuyDiamond) {
                        if (_.default.Instance.IsVNChannel() && !c.DataCenter.Instance.IsItemEnough(g.CommonItemId.ColorDiamond, t[e].Money)) return void f.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(g.CommonItemId.ColorDiamond.ToItemName()));
                        _.default.Instance.Pay(t[e].Id)
                    }
                }, t.prototype.SetPrefab = function(e, t, n, o) {
                    this._itemPrefab = e, this._giftPrefab = t, this._pagePrefab = n, this._atlas = o, this.GiftPackContainer.Init(t, this.OnInitializeItem.bind(this))
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = e.getComponent(h.default),
                        o = this._giftPacks[t];
                    switch (this._currencyPageType) {
                        case g.GiftPackType.DailySelection:
                            n.Init({
                                AutoBuyTimes: this._autoTimes,
                                Title: "<outline color=#202434 width=3>" + c.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id) + "</color>",
                                CallBack: this.GetNormalRewardCallBack.bind(this),
                                GiftPack: o,
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.SpuerValue,
                                TitleBg: this._atlas.getSpriteFrame("title_0")
                            });
                            break;
                        case g.GiftPackType.DailyPay:
                            n.Init({
                                Title: "<outline color=#202434 width=3>" + m.default.GetTaskDesc(this._continueTasks[t]) + "</outline>",
                                CallBack: this.OnGetContinueTask.bind(this),
                                ActivityId: this._continueActivityConfig._id,
                                Task: this._continueTasks[t],
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.Task,
                                TitleBg: this._atlas.getSpriteFrame("title_0")
                            });
                            break;
                        case g.GiftPackType.HeroGift:
                            n.Init({
                                Title: "<outline color=#202434 width=3>" + c.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id) + "</outline>",
                                CallBack: this.GetNormalRewardCallBack.bind(this),
                                GiftPack: o,
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.SpuerValue,
                                TitleBg: this._atlas.getSpriteFrame("title_1")
                            });
                            break;
                        case g.GiftPackType.GrowUpGift:
                            n.Init({
                                Title: "<outline color=#202434 width=3>" + c.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id) + "</outline>",
                                CallBack: this.GetNormalRewardCallBack.bind(this),
                                GiftPack: o,
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.SpuerValue,
                                TitleBg: this._atlas.getSpriteFrame("title_2")
                            });
                            break;
                        case g.GiftPackType.LegendGift:
                            n.Init({
                                Title: "<outline color=#202434 width=3>" + c.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id) + "</outline>",
                                CallBack: this.GetNormalRewardCallBack.bind(this),
                                GiftPack: o,
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.SpuerValue,
                                TitleBg: this._atlas.getSpriteFrame("title_3")
                            });
                            break;
                        case g.GiftPackType.SubscribePrivilege:
                            var r = c.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, this._subscribePrivilegeConfigs[this._subPrivilegeSortIds[t]].PackId);
                            n.Init({
                                Title: "<outline color=#202434 width=3>" + c.ConfigDataComponent.Instance.GetLocale("SubscribePrivilege_name_" + this._subPrivilegeSortIds[t]) + "</outline>",
                                CallBack: this.GetNormalRewardCallBack.bind(this),
                                GiftPack: r,
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.Privilege,
                                PrivilegeAtlas: this._atlas,
                                PrivilegeConfig: this._subscribePrivilegeConfigs[this._subPrivilegeSortIds[t]],
                                CallBackParam: this._subscribePrivilegeConfigs[this._subPrivilegeSortIds[t]].Id,
                                TitleBg: this._atlas.getSpriteFrame("title_0")
                            });
                            break;
                        case g.GiftPackType.GrowUpFund:
                            var i, a, s = c.DataCenter.Instance.GetIntData(g.UserDataKey.PlayerLevel),
                                l = this._model.IntArray[0];
                            i = s >= this._growthFundConfig[t].Level ? "<color = #6EEEA7>" + this._growthFundConfig[t].Level + "/" + this._growthFundConfig[t].Level + "</color>" : "<color = #FFFFFF>" + s + "/" + this._growthFundConfig[t].Level + "</color>", a = this._currencyFundBuyState ? this._growthFundConfig[t].Id <= l ? h.MallFundBtnState.IsGet : s >= this._growthFundConfig[t].Level ? h.MallFundBtnState.BuyAndLimit : h.MallFundBtnState.BuyAndNoLimit : s >= this._growthFundConfig[t].Level ? h.MallFundBtnState.NoBuyAndLimit : h.MallFundBtnState.NoBuyAndNoLimit, n.Init({
                                Title: "<outline color=#202434 width=3>" + "mall_growFund_getWhenLevel".ToUILocale().Fmt(this._growthFundConfig[t].Level) + "</outline>",
                                CallBack: this.OnFundRewardCallBack.bind(this),
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.Fund,
                                TitleBg: this._atlas.getSpriteFrame("title_0"),
                                ProgressLabe: i,
                                Rewards: this._growthFundConfig[t].Rewards,
                                FundBtnState: a
                            });
                            break;
                        case g.GiftPackType.NewGoodFund:
                        case g.GiftPackType.NewGoodFund2:
                            var u, d = (this._goodFundGotIndex + t + 1) % this.GetGoodFundConfig(this._currencyPageType).DailyRewards.length,
                                f = this.GetGoodFundConfig(this._currencyPageType);
                            u = this._goodFundCanGetIndex >= d ? "<color = #6EEEA7>" + (d + 1) + "/" + (d + 1) + "</color>" : "<color = #FFFFFF>" + (this._goodFundCanGetIndex + 1) + "/" + (d + 1) + "</color>";
                            var y;
                            y = 0 == m.default.Instance.GetGiftBuyCount(this._fundGiftId) ? d <= this._goodFundCanGetIndex ? h.MallFundBtnState.NoBuyAndLimit : h.MallFundBtnState.NoBuyAndNoLimit : d <= this._goodFundGotIndex ? h.MallFundBtnState.IsGet : d <= this._goodFundCanGetIndex ? h.MallFundBtnState.BuyAndLimit : h.MallFundBtnState.BuyAndNoLimit, n.Init({
                                Title: "<outline color=#202434 width=3>" + "mallNewGoodFund_title".ToUILocale().Fmt(d + 1) + "</outline>",
                                CallBack: this.OnGoodFundGet.bind(this),
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.Fund,
                                TitleBg: this._atlas.getSpriteFrame("title_0"),
                                ProgressLabe: u,
                                Rewards: c.ConfigDataComponent.Instance.GetConfigById(p.ItemRewards_Config, f.DailyRewards[d]).Rewards,
                                FundBtnState: y
                            });
                            break;
                        case g.GiftPackType.LegendGift2:
                            n.Init({
                                Title: "<outline color=#202434 width=3>" + c.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id) + "</outline>",
                                CallBack: this.GetNormalRewardCallBack.bind(this),
                                GiftPack: o,
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.SpuerValue,
                                TitleBg: this._atlas.getSpriteFrame("title_1")
                            });
                            break;
                        case g.GiftPackType.LegendGift3:
                            n.Init({
                                Title: "<outline color=#202434 width=3>" + c.ConfigDataComponent.Instance.GetLocale("GiftPack_name_" + o.Id) + "</outline>",
                                CallBack: this.GetNormalRewardCallBack.bind(this),
                                GiftPack: o,
                                ItemPrefab: this._itemPrefab,
                                Type: h.MallNewGiftType.SpuerValue,
                                TitleBg: this._atlas.getSpriteFrame("title_2")
                            })
                    }
                }, t.prototype.OnDiamondInitializeItem = function(e, t) {
                    var n = e.getComponent(S.default),
                        o = t < 9 ? t : 8,
                        r = this._currencyDiamondGifts[t],
                        i = m.default.Instance.GetGiftBuyCount(r.Id) > 0,
                        a = r.Items[0].Items[i ? 3 : 2];
                    switch (e.name = t.toString(), this._currencyPageType) {
                        case g.GiftPackType.BuyCurrency:
                            var s = _.default.Instance.ExchangeMoney(r.Items[0].Items[1]);
                            n.SetIcon(this._diamondAtlas.getSpriteFrame("currency_" + (o + 1))).SetDiamondCount(s).SetTag2(!i, "diamondShop_firstGive".ToUILocale(), a.toString()).SetButtonLabel(m.default.Instance.GetFormatPrice(r.Money)).SetVipPoint();
                            break;
                        case g.GiftPackType.BuyDiamond:
                            var l = r.Items[0].Items[1];
                            n.SetIcon(this._diamondAtlas.getSpriteFrame("diamond_" + (o + 1))).SetDiamondCount(l).SetTag2(!i, "diamondShop_firstGive".ToUILocale(), a.toString()).SetButtonLabel(m.default.Instance.GetFormatPrice(r.Money)).SetVipPoint(r.VipPoint)
                    }
                }, t.prototype.onLoad = function() {
                    this.FreeBtn.node.on("click", this.OnGetFree, this), this.StoneShop.node.on("click", this.OnStoneShop, this), this.RuleButton.node.on("click", this.OnRule, this), this.TimeLeftLabel.string = "mall_nextRefresh".ToUILocale(), this.FundBtn.node.on("click", this.OnClickFund, this), this.FundNoGetBtnLabel.string = "StrongholdWar_GetBtn".ToUILocale(), this.FundNoGetBtn.node.on("click", this.OnClickFundNoReward, this), this.PreviewBtn.node.on("click", this.OnPreviewBtnClick, this), this.PreviewBtnLabel.string = "Answer_RewardPreview".ToUILocale()
                }, t.prototype.Init = function(e, t, n) {
                    this._mallPanel = e, this._mallIds = t, this._currencyPageType = n, this.Refresh(n)
                }, t.prototype.Refresh = function() {
                    this.SetData(), this.InitPage(), this.SetFirstPage(), this.RefreshRedDot()
                }, t.prototype.SetData = function() {
                    this._dataById || (this._dataById = {}), this._sortPageIds = [];
                    for (var e = 0; e < this._mallIds.length; e++) {
                        var t, n = this._dataById[this._mallIds[e]],
                            o = !(t = n ? n.Config : c.ConfigDataComponent.Instance.GetConfigById(p.MallActivity_Config, this._mallIds[e])).Show || m.default.Instance.IsGameModuleUnlock(t.Show)[0],
                            r = [!0, null];
                        t.UnLock && (r = m.default.Instance.IsGameModuleUnlock(t.UnLock)), t.Id == g.GiftPackType.DailyPay && (this.SetContinueRechargeActivityConfig(), this._continueActivityConfig || (o = !1)), this._dataById[this._mallIds[e]] = {
                            Config: t,
                            IsShow: o,
                            IsUnLock: r[0],
                            UnLockHint: r[1]
                        }, o && this._sortPageIds.push(this._mallIds[e])
                    }
                }, t.prototype.InitPage = function() {
                    var e = 0,
                        t = this._sortPageIds.length > 3 ? this.PageLotContainer : this.PageLessContainer;
                    for (this._sortPageIds.length > 3 ? (this.PageLotContainerScrollview.active = !0, this.PageLessContainer.active = !1) : (this.PageLotContainerScrollview.active = !1, this.PageLessContainer.active = !0); e < this._sortPageIds.length; e++) {
                        var n = this._pageBtns[e];
                        if (n && n.node.setParent(t), !n) {
                            var o = cc.instantiate(this._pagePrefab);
                            o.setParent(t), o.on(cc.Node.EventType.TOUCH_END, this.OnModeLogoTouch, this), n = o.getComponent(C.default), this._pageBtns.push(n)
                        }
                        if (n.node.name = e.toString(), n.node.active = !0, n.SetName(this._dataById[this._sortPageIds[e]].Config.Name.ToUILocale()).SetState(this._dataById[this._sortPageIds[e]].IsUnLock).SetLogo(this._atlas.getSpriteFrame("subPageBtn_" + this._dataById[this._sortPageIds[e]].Config.Icon)).SetTag(), this._dataById[this._sortPageIds[e]].Config.Id == g.GiftPackType.PermanentPrivilege || this._dataById[this._sortPageIds[e]].Config.Id == g.GiftPackType.NewPersonPrivilege) {
                            var r = c.DataCenter.Instance.GetDataById(d.GiftPack_Model, this._dataById[this._sortPageIds[e]].Config.Gifts[0].Items[0]);
                            (!r || r.Count <= 0) && n.SetTag(!0)
                        }
                    }
                    for (; e < this._pageBtns.length; e++) this._pageBtns[e].node.active = !1, this._pageBtns[e].node.setParent(t)
                }, t.prototype.RefreshRedDot = function() {
                    for (var e = 0; e < this._sortPageIds.length; e++) {
                        var t = !1;
                        switch (this._sortPageIds[e]) {
                            case g.GiftPackType.DailySelection:
                                t = A.RedDotDataHandler.Instance.RefreshDailyChooseState(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.DailySelectionHero:
                                t = A.RedDotDataHandler.Instance.RefreshDailySelectionHeroState(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.DailyPay:
                                t = A.RedDotDataHandler.Instance.RefreshContinuousChargeNode(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.GrowUpFund:
                                t = A.RedDotDataHandler.Instance.RefreshGrowthFundState(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.HeroGift:
                                t = A.RedDotDataHandler.Instance.RefreshHeroGiftState(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.LegendGift:
                                t = A.RedDotDataHandler.Instance.RefreshLegendGiftState(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.LegendGift2:
                                t = A.RedDotDataHandler.Instance.RefreshLegendGift1State(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.LegendGift3:
                                t = A.RedDotDataHandler.Instance.RefreshLegendGift2State(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.LegendGift4:
                                t = A.RedDotDataHandler.Instance.RefreshLegendGift3State(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.LegendGift5:
                                t = A.RedDotDataHandler.Instance.RefreshLegendGift4State(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.GrowUpGift:
                                t = A.RedDotDataHandler.Instance.RefreshGrowGiftState(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.PermanentPrivilege:
                                t = A.RedDotDataHandler.Instance.RefreshPermanentPrivilegeHero(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.NewGoodFund:
                                t = A.RedDotDataHandler.Instance.RefreshSuperFundState(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.NewGoodFund2:
                            case g.GiftPackType.NewGoodFund2:
                                t = A.RedDotDataHandler.Instance.RefreshRespectFundState(), this._pageBtns[e].RedDot = t;
                                break;
                            case g.GiftPackType.NewPersonPrivilege:
                                t = A.RedDotDataHandler.Instance.RefreshPermanentPrivilegePersonality(), this._pageBtns[e].RedDot = t;
                                break;
                            default:
                                this._pageBtns[e].RedDot = !1
                        }
                    }
                }, t.prototype.SetFirstPage = function() {
                    if (this._currencyPageType && (this._currencyPage = this._sortPageIds.indexOf(this._currencyPageType), this._dataById[this._currencyPageType].IsUnLock)) this.SetTab(this._currencyPage);
                    else
                        for (var e = 0; e < this._sortPageIds.length; e++)
                            if (this._dataById[this._sortPageIds[e]].IsUnLock) return this._currencyPage = e, void this.SetTab(e)
                }, t.prototype.OnModeLogoTouch = function(e) {
                    var t = Number.parseInt(e.currentTarget.name);
                    if (this._currencyPage != t) {
                        var n = this._sortPageIds[t];
                        this._dataById[n].IsUnLock ? this.SetTab(t) : this._dataById[n].UnLockHint && f.UIUtlity.ShowFloatingHint(this._dataById[n].UnLockHint)
                    }
                }, t.prototype.SetTab = function(e) {
                    var t = this;
                    this._currencyPage = e;
                    var n = this._sortPageIds[e];
                    this._currencyPageType = n, this._model = c.DataCenter.Instance.GetDataById(d.MallActivity_Model, this._currencyPageType);
                    var o = 0;
                    switch (this.DailySelectionAutoBuy.active = !1, this.VipLevelContainer.active = !1, this.ContinueProgressContainer.active = !1, this.FundBg.active = !1, this.FundBuyNode.active = !1, this.Banner.node.parent.active = !0, this.Banner.node.active = !0, this.Banner1.node.active = !1, this.FundHint.node.parent.active = !1, this.PreviewBtn.node.active = !1, this.ChildPageContainer.removeAllChildren(), this._currencyPageType) {
                        case g.GiftPackType.DailySelection:
                            this.SetBannerNodeState1(), this.SetCenterView1(), this._autoTimes = m.default.Instance.GetGiftBuyCount(this._giftPacksByPageId[this._currencyPageType][this._giftPacksByPageId[this._currencyPageType].length - 1].Id), o = this._model.PackIds.length - 1, this._giftPacks = [];
                            for (var r = 0; r < this._giftPacksByPageId[this._currencyPageType].length - 1; r++) this._giftPacks.push(this._giftPacksByPageId[this._currencyPageType][r]);
                            this._giftPacks.sort(this.NormalGiftSortModel.bind(this));
                            break;
                        case g.GiftPackType.DailyPay:
                            this.SetContinueRechargeActivityConfig(), this.SetCenterView5(), this._playerModel = c.DataCenter.Instance.GetDataById(d.UserActivity_Model, this._continueActivityConfig._id), this.SetBannerNodeState2(), this._continueTasks.sort(function(e, n) {
                                var o = c.DataCenter.Instance.GetDataById(d.UserTask_Model, 1e4 * t._continueActivityConfig._id + e.Id),
                                    r = c.DataCenter.Instance.GetDataById(d.UserTask_Model, 1e4 * t._continueActivityConfig._id + n.Id);
                                return o.IsCompleted && !r.IsCompleted ? 1 : !o.IsCompleted && r.IsCompleted ? -1 : o.Progress >= e.TotalCount && r.Progress < n.TotalCount ? -1 : o.Progress < e.TotalCount && r.Progress >= n.TotalCount ? 1 : e.SortId - n.SortId
                            }), o = this._continueTasks.length, this.LoadContinuePayDayItem();
                            break;
                        case g.GiftPackType.SubscribePrivilege:
                            this.SetBannerNodeState6(), this.SetCenterView6(), this.SetSubPrivilegeConfig(), o = this._subPrivilegeSortIds.length;
                            break;
                        case g.GiftPackType.NewGoodFund:
                            this.Banner.node.active = !1, this.Banner1.node.active = !0, this._model || (this._model = m.default.Instance.GetNewMallActivityModel(this._currencyPageType)), this.FundHint.node.parent.active = !0, this.FundHint.string = "mallNewFund_hint".ToUILocale(), this.FundBg.active = !0, this.FundBuyNode.active = !0, this.SetCenterView7(), this.SetGoddFundBtnState(), this.SetBannerNodeState8(), this.SetGoodFund(), o = this.GetGoodFundConfig(this._currencyPageType).DailyRewards.length;
                            break;
                        case g.GiftPackType.NewGoodFund2:
                            this._model || (this._model = m.default.Instance.GetNewMallActivityModel(this._currencyPageType)), this.FundHint.node.parent.active = !0, this.FundHint.string = "mallNewFund_hint".ToUILocale(), this.FundBg.active = !0, this.FundBuyNode.active = !0, this.SetCenterView7(), this.SetBannerNodeState8(), this.SetGoddFundBtnState(), this.SetGoodFund(), o = this.GetGoodFundConfig(this._currencyPageType).DailyRewards.length;
                            break;
                        case g.GiftPackType.GrowUpFund:
                            this.FundBg.active = !0, this.FundBuyNode.active = !0, this.SetBannerNodeState7(), this.SetCenterView7(), this.SetGrowthFundConfigsByPhase(), this.SetFundBtnState(), o = this._growthFundConfig.length;
                            break;
                        case g.GiftPackType.HeroGift:
                        case g.GiftPackType.GrowUpGift:
                        case g.GiftPackType.LegendGift:
                        case g.GiftPackType.LegendGift2:
                        case g.GiftPackType.LegendGift3:
                            for (this.SetBannerNodeState3(), this.SetCenterView2(), o = this._model.PackIds.length, this._giftPacks = [], r = 0; r < this._giftPacksByPageId[this._currencyPageType].length; r++) this._giftPacks.push(this._giftPacksByPageId[this._currencyPageType][r]);
                            this._giftPacks.sort(this.GiftSortModel2.bind(this));
                            break;
                        case g.GiftPackType.MonthCard:
                            this.Banner.node.parent.active = !1, this.ScrollView.node.active = !1, this.Time.active = !1, this.DiamondScrollview.node.active = !1, this.SetMonthCard();
                            break;
                        case g.GiftPackType.PermanentPrivilege:
                            this.Banner.node.parent.active = !1, this.ScrollView.node.active = !1, this.Time.active = !1, this.DiamondScrollview.node.active = !1, this.SetPermanentPrivilege(g.GiftPackType.PermanentPrivilege);
                            break;
                        case g.GiftPackType.BuyCurrency:
                            this.SetBannerNodeState4(), this.SetCenterView3(), this.SetDiamondData(), this.SetDiamondShop();
                            break;
                        case g.GiftPackType.BuyDiamond:
                            this.SetBannerNodeState5(), this.SetCenterView4(), this.SetDiamondData(), this.SetDiamondShop();
                            break;
                        case g.GiftPackType.NewPersonPrivilege:
                            this.Banner.node.parent.active = !1, this.ScrollView.node.active = !1, this.Time.active = !1, this.DiamondScrollview.node.active = !1, this.SetPermanentPrivilege(g.GiftPackType.NewPersonPrivilege);
                            break;
                        case g.GiftPackType.DailySelectionHero:
                            this.Banner.node.parent.active = !1, this.ScrollView.node.active = !1, this.DiamondScrollview.node.active = !1, this.StoneShop.node.active = !1, this.SetDailySelectionHero()
                    }
                    this._currencyPageType == g.GiftPackType.NewPersonPrivilege ? this._mallPanel.ChangeBgColor(k.MallNewPanleColorType.Blue) : this._mallPanel.ChangeBgColor(k.MallNewPanleColorType.Red), this.LoadBanner(), this.SetTimeLabel(), this._pageBtns[e].SetHalo(), this.ScrollView.node.active && this.GiftPackContainer.RenderLayout(o)
                }, t.prototype.SetContinueRechargeActivityConfig = function() {
                    if (!this._continueActivityConfig) {
                        var e = g.ActivityType.ContinuousPay;
                        for (var t in c.DataCenter.Instance.ActivityConfigs) {
                            var n = c.DataCenter.Instance.ActivityConfigs[t];
                            if (n.Common.Type == e && m.default.GetActivityUnlockState(n.Common)) {
                                this._continueActivityConfig = n;
                                break
                            }
                        }
                        if (this._continueActivityConfig)
                            for (var o = 0; o < this._continueActivityConfig._Tasks.length; o++) this._continueActivityConfig._Tasks[o].Condition[0] == g.TaskConditionType.PayCount && this._continueTasks.push(this._continueActivityConfig._Tasks[o])
                    }
                }, t.prototype.SetBannerNodeState1 = function() {
                    this.BannerHint.node.active = !1, this.Time.active = !0, this.RuleButton.node.active = !1, this.FreeBtn.node.active = !1, this.StoneShop.node.active = !0, this.ArtWord.setPosition(26, 11), this.Time.setPosition(0, -64), this.StoneShopLabel.string = "".ToUILocale()
                }, t.prototype.SetBannerNodeState2 = function() {
                    this.BannerHint.node.active = !1, this.ContinueProgressContainer.active = !0, this.Time.active = !0, this.RuleButton.node.active = !0, this.FreeBtn.node.active = !0, this.StoneShop.node.active = !1, this.ArtWord.setPosition(-18, 11), this.Time.setPosition(0, -64), this.FreeAni.active = !this._playerModel || this._playerModel.IntValue <= 0
                }, t.prototype.SetBannerNodeState3 = function() {
                    this.BannerHint.node.active = !1, this.Time.active = !0, this.RuleButton.node.active = !1, this.FreeBtn.node.active = !1, this.StoneShop.node.active = !1, this.ArtWord.setPosition(100, 11), this.Time.setPosition(0, -64)
                }, t.prototype.SetBannerNodeState4 = function() {
                    this.BannerHint.node.active = !1, this.Time.active = !1, this.RuleButton.node.active = !1, this.FreeBtn.node.active = !1, this.StoneShop.node.active = !1, this.ArtWord.setPosition(114, -8)
                }, t.prototype.SetBannerNodeState5 = function() {
                    this.BannerHint.node.active = !1, this.Time.active = !1, this.RuleButton.node.active = !1, this.FreeBtn.node.active = !1, this.StoneShop.node.active = !1, this.ArtWord.setPosition(114, -8)
                }, t.prototype.SetBannerNodeState6 = function() {
                    this.BannerHint.node.active = !1, this.Time.active = !1, this.RuleButton.node.active = !1, this.FreeBtn.node.active = !1, this.StoneShop.node.active = !1, this.ArtWord.setPosition(136, -14)
                }, t.prototype.SetBannerNodeState7 = function() {
                    this.BannerHint.node.active = !1, this.Time.active = !1, this.RuleButton.node.active = !1, this.FreeBtn.node.active = !1, this.StoneShop.node.active = !1, this.ArtWord.setPosition(0, -9)
                }, t.prototype.SetBannerNodeState8 = function() {
                    this.BannerHint.node.active = !1, this.Time.active = !1, this.RuleButton.node.active = !1, this.FreeBtn.node.active = !1, this.StoneShop.node.active = !1, this.ArtWord.setPosition(112, -9)
                }, t.prototype.SetCenterView1 = function() {
                    this.ScrollView.node.active = !0, this.DiamondScrollview.node.active = !1, this.DailySelectionAutoBuy.active = !0, void 0 === this._giftPacksByPageId[this._currencyPageType] && this.SetGiftPack(), this.SetDailyChooseAutoBuy(), this.ScrollView.stopAutoScroll(), this.ViewWidgets[0].top = 20, this.ViewWidgets[0].bottom = 480;
                    for (var e = 0; e < this.ViewWidgets.length; e++) this.ViewWidgets[e].updateAlignment()
                }, t.prototype.SetCenterView2 = function() {
                    this.ScrollView.node.active = !0, this.DiamondScrollview.node.active = !1, this.DailySelectionAutoBuy.active = !1, void 0 === this._giftPacksByPageId[this._currencyPageType] && this.SetGiftPack(), this.ScrollView.stopAutoScroll(), this.ViewWidgets[0].top = 20, this.ViewWidgets[0].bottom = 220;
                    for (var e = 0; e < this.ViewWidgets.length; e++) this.ViewWidgets[e].updateAlignment()
                }, t.prototype.SetCenterView3 = function() {
                    this.ScrollView.node.active = !1, this.DiamondScrollview.node.active = !0, this.DailySelectionAutoBuy.active = !1, this.DiamondScrollview.stopAutoScroll(), this.DiamondViewWidgets[0].top = 20, this.DiamondViewWidgets[0].bottom = 220;
                    for (var e = 0; e < this.DiamondViewWidgets.length; e++) this.DiamondViewWidgets[e].updateAlignment()
                }, t.prototype.SetCenterView4 = function() {
                    this.ScrollView.node.active = !1, this.DiamondScrollview.node.active = !0, this.VipLevelContainer.active = !0, this.DiamondScrollview.stopAutoScroll(), this.DiamondViewWidgets[0].top = 200, this.DiamondViewWidgets[0].bottom = 220;
                    for (var e = 0; e < this.DiamondViewWidgets.length; e++) this.DiamondViewWidgets[e].updateAlignment()
                }, t.prototype.SetCenterView5 = function() {
                    this.ScrollView.node.active = !0, this.DiamondScrollview.node.active = !1, this.ScrollView.stopAutoScroll(), this.ViewWidgets[0].top = 340, this.ViewWidgets[0].bottom = 220;
                    for (var e = 0; e < this.ViewWidgets.length; e++) this.ViewWidgets[e].updateAlignment()
                }, t.prototype.SetCenterView6 = function() {
                    this.ScrollView.node.active = !0, this.DiamondScrollview.node.active = !1, this.ScrollView.stopAutoScroll(), this.ViewWidgets[0].top = 20, this.ViewWidgets[0].bottom = 220;
                    for (var e = 0; e < this.ViewWidgets.length; e++) this.ViewWidgets[e].updateAlignment()
                }, t.prototype.SetCenterView7 = function() {
                    this.ScrollView.node.active = !0, this.DiamondScrollview.node.active = !1, this.ScrollView.stopAutoScroll(), this.ViewWidgets[0].top = 20, this.ViewWidgets[0].bottom = 520;
                    for (var e = 0; e < this.ViewWidgets.length; e++) this.ViewWidgets[e].updateAlignment()
                }, t.prototype.LoadContinuePayDayItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._continuePayDayItem ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("MallPanel/Component/ContinuePayProgressComponent", cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._asset.push(e), (t = cc.instantiate(e)).setParent(this.ContinueProgressContainer), this._continuePayDayItem = t.getComponent(P.default), n.label = 2;
                                case 2:
                                    return this._continuePayDayItem.Init(this._continueActivityConfig, this._itemPrefab), [2]
                            }
                        })
                    })
                }, t.prototype.SetFundBtnState = function() {
                    var e = this._model.IntArray[1] - 1;
                    this._fundGiftId = this._dataById[this._currencyPageType].Config.Gifts[e].Items[0];
                    var t = c.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, this._fundGiftId);
                    this._currencyFundBuyState = m.default.Instance.GetGiftBuyCount(this._fundGiftId) > 0;
                    var n = c.DataCenter.Instance.GetIntData(g.UserDataKey.PlayerLevel),
                        o = this._model.IntArray[0];
                    if (this._currencyFundBuyState) {
                        var r = this._growthFundConfig[0].Level <= n && this._growthFundConfig[0].Id >= o;
                        this.FundDiscount.active = !1, r ? (this.FundNoGetBtn.node.active = !1, this.FundBtn.node.active = !0, this.FundBtnLabel.string = "StrongholdWar_GetBtn".ToUILocale(), this.FundRedDot.active = !0) : (this.FundNoGetBtn.node.active = !0, this.FundBtn.node.active = !1, this.FundRedDot.active = !1)
                    } else this.PreviewBtn.node.active = !0, this.FundRedDot.active = !1, this.FundNoGetBtn.node.active = !1, this.FundBtnLabel.string = m.default.Instance.GetFormatPrice(t.Money), this.FundBtn.node.active = !0, this.FundDiscount.active = !0, this.FundVipPointLeft.string = "diamondShop_vipQuantity".ToUILocale(), this.FundVipPointRight.string = "shop_refreshPrice".ToUILocale().Fmt(t.VipPoint), m.default.Instance.SetDisCount(t.Discount, this.FundGoodValue, this.FundGood)
                }, t.prototype.SetGoddFundBtnState = function() {
                    this._model || (this._model = m.default.Instance.GetNewMallActivityModel(this._currencyPageType)), this._fundGiftId = this._model.PackIds[0];
                    var e = c.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, this._fundGiftId);
                    this._currencyFundBuyState = m.default.Instance.GetGiftBuyCount(this._fundGiftId) > 0;
                    var t = Math.floor((c.RpcComponent.Instance.ServerTime - this._model.RefreshTime) / L.Etc.DayDuration),
                        n = this._model.IntArray[0] - 1;
                    if (this._currencyFundBuyState) {
                        var o = n < t;
                        this.FundDiscount.active = !1, o ? (this.FundNoGetBtn.node.active = !1, this.FundBtn.node.active = !0, this.FundBtnLabel.string = "StrongholdWar_GetBtn".ToUILocale(), this.FundRedDot.active = !0) : (this.FundNoGetBtn.node.active = !0, this.FundBtn.node.active = !1, this.FundRedDot.active = !1)
                    } else this.PreviewBtn.node.active = !0, this.FundRedDot.active = !1, this.FundNoGetBtn.node.active = !1, this.FundBtnLabel.string = m.default.Instance.GetFormatPrice(e.Money), this.FundBtn.node.active = !0, this.FundDiscount.active = !0, this.FundVipPointLeft.string = "diamondShop_vipQuantity".ToUILocale(), this.FundVipPointRight.string = "shop_refreshPrice".ToUILocale().Fmt(e.VipPoint), m.default.Instance.SetDisCount(e.Discount, this.FundGoodValue, this.FundGood)
                }, t.prototype.SetGrowthFundConfigsByPhase = function() {
                    if (!this._growthFundConfig || this._growthFundConfig.length <= 0 || this._growthFundConfig[0].Stage != this._model.IntArray[1] || this._growthFundConfig[0].Phase != this._model.Phase) {
                        this._growthFundConfig = [];
                        for (var e = c.ConfigDataComponent.Instance.GetArrayConfig(p.GrowUpFund_Config), t = this._model.IntArray[1], n = 0; n < e.length; n++) e[n].Phase == this._model.Phase && e[n].Stage == t && e[n].Type == this._currencyPageType && this._growthFundConfig.push(e[n])
                    }
                    var o = this._model.IntArray[0];
                    this._growthFundConfig.sort(function(e, t) {
                        return e.Id <= o ? 1 : t.Id <= o ? -1 : e.Id - t.Id
                    })
                }, t.prototype.SetGoodFund = function() {
                    this._fundGiftId = this._model.PackIds[0];
                    var e = c.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, this._fundGiftId);
                    this._model.PackIds[0], this._goodFundCanGetIndex = Math.floor((c.RpcComponent.Instance.ServerTime - this._model.RefreshTime) / L.Etc.DayDuration), this._model.IntArray && this._model.IntArray[0] ? this._goodFundGotIndex = this._model.IntArray[0] - 1 : this._goodFundGotIndex = -1, 0 == m.default.Instance.GetGiftBuyCount(e.Id) ? (this.FundRedDot.active = !1, this.FundNoGetBtn.node.active = !1, this.FundBtnLabel.string = m.default.Instance.GetFormatPrice(e.Money), this.FundBtn.node.active = !0, this.FundDiscount.active = !0, this.FundVipPointLeft.string = "diamondShop_vipQuantity".ToUILocale(), this.FundVipPointRight.string = "shop_refreshPrice".ToUILocale().Fmt(e.VipPoint), m.default.Instance.SetDisCount(e.Discount, this.FundGoodValue, this.FundGood)) : this._goodFundCanGetIndex > this._goodFundGotIndex ? (this.FundNoGetBtn.node.active = !1, this.FundBtn.node.active = !0, this.FundBtnLabel.string = "StrongholdWar_GetBtn".ToUILocale(), this.FundRedDot.active = !0) : (this.FundNoGetBtn.node.active = !0, this.FundBtn.node.active = !1, this.FundRedDot.active = !1)
                }, t.prototype.GetGoodFundConfig = function(e) {
                    var t = this._model.Phase;
                    if (this._goodFundConfigByType || (this._goodFundConfigByType = {}), this._goodFundConfigByType[e] && this._goodFundConfigByType[e].Phase == t) return this._goodFundConfigByType[e];
                    this._goodFundGonfigs.length <= 0 && (this._goodFundGonfigs = c.ConfigDataComponent.Instance.GetArrayConfig(p.GoodFund_Config));
                    for (var n = 0; n < this._goodFundGonfigs.length; n++)
                        if (this._goodFundGonfigs[n].Phase == t && this._goodFundGonfigs[n].Type == e) {
                            this._goodFundConfigByType[this._currencyPageType] = this._goodFundGonfigs[n];
                            break
                        } return this._goodFundConfigByType[e]
                }, t.prototype.OnClickFund = function() {
                    switch (this._currencyPageType) {
                        case g.GiftPackType.GrowUpFund:
                            this._currencyFundBuyState ? ((e = new d.Req_Mall_ReceiveGrowUpFund).Type = this._currencyPageType, c.RpcComponent.Instance.Call(e, function(e) {
                                e.Rewards.length > 0 ? f.UIUtlity.ShwDisplayRewardPanel(e.Rewards) : f.UIUtlity.ShowFloatingHint("temporaryNoReward".ToUILocale())
                            })) : _.default.Instance.Pay(this._fundGiftId);
                            break;
                        case g.GiftPackType.NewGoodFund:
                        case g.GiftPackType.NewGoodFund2:
                            var e;
                            this._currencyFundBuyState ? ((e = new d.Req_Mall_ReceiveGoodFund).Type = this._currencyPageType, c.RpcComponent.Instance.Call(e, function(e) {
                                e.Rewards.length > 0 ? f.UIUtlity.ShwDisplayRewardPanel(e.Rewards) : f.UIUtlity.ShowFloatingHint("temporaryNoReward".ToUILocale())
                            })) : _.default.Instance.Pay(this._fundGiftId)
                    }
                }, t.prototype.OnFundRewardCallBack = function() {
                    this._currencyFundBuyState ? this.OnClickFund() : f.UIUtlity.ShowFloatingHint("mall_buyFund_canGet".ToUILocale().Fmt(this._dataById[this._currencyPageType].Config.Name.ToUILocale()))
                }, t.prototype.OnGoodFundGet = function() {
                    0 == m.default.Instance.GetGiftBuyCount(this._fundGiftId) ? f.UIUtlity.ShowFloatingHint("mall_buyFund_canGet".ToUILocale().Fmt(this._dataById[this._currencyPageType].Config.Name.ToUILocale())) : this.OnClickFund()
                }, t.prototype.OnClickFundNoReward = function() {
                    this._currencyPageType == g.GiftPackType.GoodFund && (this._goodFundComponent && this._goodFundComponent.IsAllSelect ? f.UIUtlity.ShowFloatingHint("superFund_select_first".ToUILocale()) : f.UIUtlity.ShowFloatingHint("mall_superFund_chanceOut".ToUILocale())), f.UIUtlity.ShowFloatingHint("temporaryNoReward".ToUILocale())
                }, t.prototype.SetMonthCard = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = "MallPanel/Component/MallNewMonthCardContainerComponent", (t = this._assetMap[e]) ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset(e, cc.Prefab)];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(t), [2];
                                    o.label = 2;
                                case 2:
                                    return this._asset.push(t), this._assetMap[e] = t, (n = cc.instantiate(t)).setParent(this.ChildPageContainer), n.getComponent(T.default).Init(this._itemPrefab, this._atlas), [2]
                            }
                        })
                    })
                }, t.prototype.SetDailySelectionHero = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = "MallPanel/Component/MallDailySelectionHeroComponent", (t = this._assetMap[e]) ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset(e, cc.Prefab)];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(t), [2];
                                    o.label = 2;
                                case 2:
                                    return this._asset.push(t), this._assetMap[e] = t, (n = cc.instantiate(t)).setParent(this.ChildPageContainer), n.getComponent(O.default).Init(this._itemPrefab, this._giftPrefab, this._atlas), [2]
                            }
                        })
                    })
                }, t.prototype.SetPermanentPrivilege = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return t = "MallPanel/Component/MallNewPermanentPrivilegeComponent", (n = this._assetMap[t]) ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset(t, cc.Prefab)];
                                case 1:
                                    if (n = r.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(n), [2];
                                    r.label = 2;
                                case 2:
                                    return this._asset.push(n), this._assetMap[t] = n, (o = cc.instantiate(n)).setParent(this.ChildPageContainer), o.getComponent(R.default).Init(e, this._itemPrefab), [2]
                            }
                        })
                    })
                }, t.prototype.SetDiamondData = function() {
                    if (!this._giftPacksByPageId || !this._giftPacksByPageId[this._currencyPageType]) {
                        this._giftPacksByPageId || (this._giftPacksByPageId = {}), this._giftPacksByPageId[this._currencyPageType] = [];
                        var e = [];
                        this._currencyPageType == g.GiftPackType.BuyCurrency ? e = c.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, g.LevelParamType.BuyCurrency).Data : this._currencyPageType == g.GiftPackType.BuyDiamond && (e = c.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, g.LevelParamType.BuyDiamond).Data);
                        for (var t = 0; t < e.length; t++) this._giftPacksByPageId[this._currencyPageType].push(c.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, e[t]))
                    }
                }, t.prototype.SetDiamondShop = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this._diamondAtlas && this._diamondGoodsPrefab ? [3, 2] : (e = u.AssetsManager.Instance.LoadAsset("DiamondShopPanel/PNG/diamondShop", cc.SpriteAtlas), t = u.AssetsManager.Instance.LoadAsset("MallPanel/Component/ItemGood", cc.Prefab), n = u.AssetsManager.Instance.LoadAsset("MallPanel/Component/MallNewPanelVipLevelComponent", cc.Prefab), o = u.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemIcon + "/" + g.CommonItemId.Diamond, cc.SpriteFrame), r = u.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemIcon + "/" + g.CommonItemId.Currency, cc.SpriteFrame), [4, Promise.all([e, t, n, o, r]).then(function(e) {
                                        var t;
                                        if (i.isValid) i._diamondAtlas = e[0], i._diamondGoodsPrefab = e[1], i._vipLevelPrefab = e[2], i._diamondIcon = e[3], i._colorDiamondIcon = e[4], (t = i._asset).push.apply(t, e), i.DiamondAsyncLayout.Init(i._diamondGoodsPrefab, i.OnDiamondInitializeItem.bind(i)), i.DealLoadAfter();
                                        else
                                            for (var n = 0; n < e.length; n++) u.AssetsManager.Instance.UnloadAsset(e[n])
                                    })]);
                                case 1:
                                    return a.sent(), [3, 3];
                                case 2:
                                    this.DealLoadAfter(), a.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DealLoadAfter = function() {
                    if (this._currencyPageType == g.GiftPackType.BuyDiamond) {
                        if (!this._vipLevelItem) {
                            var e = cc.instantiate(this._vipLevelPrefab);
                            e.setParent(this.VipLevelContainer), this._vipLevelItem = e.getComponent(w.default)
                        }
                        this._vipLevelItem.Init()
                    }
                    this._currencyDiamondGifts = [];
                    for (var t = this._giftPacksByPageId[this._currencyPageType], n = 0; n < t.length; n++)(!t[n].UnlockCondition || m.default.Instance.GetGiftBuyCount(t[n].UnlockCondition) > 0) && this._currencyDiamondGifts.push(t[n]);
                    this.DiamondAsyncLayout.RenderLayout(this._currencyDiamondGifts.length)
                }, t.prototype.NormalGiftSortModel = function(e, t) {
                    var n = m.default.Instance.GetGiftBuyCount(e.Id),
                        o = m.default.Instance.GetGiftBuyCount(t.Id),
                        r = e.LimitCount - n,
                        i = t.LimitCount - o;
                    return r > 0 && i <= 0 ? -1 : r <= 0 && i > 0 ? 1 : 0 == e.Money && t.Money > 0 ? -1 : e.Money > 0 && 0 == t.Money ? 1 : e.Id - t.Id
                }, t.prototype.GiftSortModel2 = function(e, t) {
                    var n = m.default.Instance.GetGiftBuyCount(e.Id),
                        o = m.default.Instance.GetGiftBuyCount(t.Id),
                        r = e.LimitCount - n,
                        i = t.LimitCount - o;
                    return r > 0 && i <= 0 ? -1 : r <= 0 && i > 0 ? 1 : 0 == e.Money && t.Money > 0 ? -1 : e.Money > 0 && 0 == t.Money ? 1 : this._giftPackSortIds && this._giftPackSortIds[e.Id] && this._giftPackSortIds[t.Id] ? this._giftPackSortIds[e.Id] - this._giftPackSortIds[t.Id] : e.Id - t.Id
                }, t.prototype.SetDailyChooseAutoBuy = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._dailyChooseAutoBuyItem ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("MallPanel/Component/MallNewDailyChooseAutoBuyComponent", cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._asset.push(e), (t = cc.instantiate(e)).setParent(this.DailySelectionAutoBuy), this._dailyChooseAutoBuyItem = t.getComponent(I.default), i.label = 2;
                                case 2:
                                    for (n = !0, o = this._giftPacksByPageId[this._currencyPageType], r = 0; r < o.length; r++)
                                        if (0 != o[r].Money && m.default.Instance.GetGiftBuyCount(o[r].Id) > 0) {
                                            n = !1;
                                            break
                                        } return this._dailyChooseAutoBuyItem.Init(n, o[o.length - 1], function() {
                                        _.default.Instance.Pay(o[o.length - 1].Id)
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetGiftPack = function() {
                    this._giftPacksByPageId[this._currencyPageType] = [];
                    for (var e = 0; e < this._model.PackIds.length; e++) this._giftPacksByPageId[this._currencyPageType].push(c.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, this._model.PackIds[e])), this._giftPackSortIds[this._model.PackIds[e]] = e
                }, t.prototype.LoadBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this.Banner.node.parent.active || this.Banner1.node.parent.active ? (e = "MallPanel/PNG/Banners/subPageBanner_" + this._dataById[this._currencyPageType].Config.Icon, this.MultilangSprite.LoadSpriteFrame("MultilangSinglePng2", "mallSubArt_" + this._dataById[this._currencyPageType].Config.Icon), this._assetByPath[e] ? (this.Banner.spriteFrame = this._assetByPath[e], [3, 3]) : [3, 1]) : [2];
                                case 1:
                                    return [4, u.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 2:
                                    if (t = n.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._currencyPageType == g.GiftPackType.NewGoodFund ? this.Banner1.spriteFrame = t : this.Banner.spriteFrame = t, this._asset.push(t), this._assetByPath.bannerPath = t, n.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetTimeLabel = function() {
                    this.Time.active || this.unschedule(this.RefreshTime), this.RefreshTime(), this.unschedule(this.RefreshTime), this.schedule(this.RefreshTime, 1)
                }, t.prototype.RefreshTime = function() {
                    if (this.Time.active) {
                        var e = c.RpcComponent.Instance.ServerTime,
                            t = m.default.Instance.GetMallDeadTime(this._currencyPageType, this._model.RefreshTime);
                        t <= 0 ? this.Init(this._mallPanel, this._mallIds, this._currencyPageType) : this.TimeValue.string = m.default.ActivityTimeLeftFormat(t - e)
                    }
                }, t.prototype.SetSubPrivilegeConfig = function() {
                    var e = this;
                    if (!this._subscribePrivilegeConfigs) {
                        this._subscribePrivilegeConfigs = {};
                        for (var t = c.ConfigDataComponent.Instance.GetArrayConfig(p.SubscribePrivilege_Config), n = 0; n < t.length; n++) this._subscribePrivilegeConfigs[t[n].Id] = t[n]
                    }
                    for (var o in this._subPrivilegeSortIds = [], this._subscribePrivilegeConfigs) {
                        var r = this._subscribePrivilegeConfigs[o],
                            i = !0;
                        switch (r.Id) {
                            case 6:
                                if (this._subscribePrivilegeConfigs[o].Unlock) {
                                    var a = m.default.Instance.IsGameModuleOpen(this._subscribePrivilegeConfigs[o].Unlock),
                                        s = m.default.Instance.IsGameModuleUnlock(this._subscribePrivilegeConfigs[o].Unlock)[0];
                                    a && s || (i = !1)
                                }
                        }
                        i && this._subPrivilegeSortIds.push(r.Id)
                    }
                    this._subPrivilegeSortIds.sort(function(t, n) {
                        var o = m.default.GetSubscribePrivilegeIsActive(t),
                            r = m.default.GetSubscribePrivilegeIsActive(n);
                        return o && !r ? 1 : !o && r ? -1 : e._subscribePrivilegeConfigs[t].SortIndex - e._subscribePrivilegeConfigs[n].SortIndex
                    })
                }, t.prototype.GetNormalRewardCallBack = function(e) {
                    if (0 == e.Money) {
                        var t = new d.Req_Pay_ByDiamond;
                        t.Id = e.Id, c.RpcComponent.Instance.Call(t, function(e) {
                            f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else _.default.Instance.Pay(e.Id)
                }, t.prototype.OnGetContinueTask = function() {
                    for (var e = [], t = 0; t < this._continueTasks.length; t++) {
                        var n = c.DataCenter.Instance.GetDataById(d.UserTask_Model, 1e4 * this._continueActivityConfig._id + this._continueTasks[t].Id);
                        !n.IsCompleted && n.Progress >= this._continueTasks[t].TotalCount && e.push(this._continueTasks[t].Id)
                    }
                    var o = new d.Req_Activity_CommonTaskReward;
                    o.ActivityId = this._continueActivityConfig._id, o.TaskIds = e, c.RpcComponent.Instance.Call(o, function(e) {
                        f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnGetFree = function() {
                    switch (this._currencyPageType) {
                        case g.GiftPackType.DailyPay:
                            if (this._playerModel && 1 == this._playerModel.IntValue) return void f.UIUtlity.ShowFloatingHint("continuousCharge_dailyGift_received".ToUILocale());
                            var e = new d.Req_Activity_ContinuousPayReward;
                            e.ActivityId = this._continueActivityConfig._id, c.RpcComponent.Instance.Call(e, function(e) {
                                f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            })
                    }
                }, t.prototype.OnRule = function() {
                    switch (this._currencyPageType) {
                        case g.GiftPackType.DailyPay:
                            var e = {
                                name: "continuousCharge_rule_sub".ToUILocale(),
                                titles: ["HeroTalent_Rule".ToUILocale()],
                                contents: ["continuousCharge_rule_content".ToUILocale()]
                            };
                            f.UIUtlity.ShowRulePanel(e)
                    }
                }, t.prototype.OnStoneShop = function() {
                    var e = m.default.Instance.IsGameModuleUnlock(g.GameModuleType.ItemShop);
                    e[0] ? u.UIManager.Instance.ShowUIPanel(y.PanelConfig.ShopPanel.Path, 2, 12) : f.UIUtlity.ShowFloatingHint(e[1])
                }, t.prototype.OnPreviewBtnClick = function() {
                    u.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallFundPreviewPanel.Path, {
                        MallActivityType: this._currencyPageType,
                        GrowUpConfigs: this._growthFundConfig,
                        GoodFundConfig: this.GetGoodFundConfig(this._currencyPageType)
                    })
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._asset.length; e++) u.AssetsManager.Instance.UnloadAsset(this._asset[e]);
                    this._assetMap = {}, this._asset = []
                }, i([B(cc.Sprite)], t.prototype, "Banner", void 0), i([B(cc.Sprite)], t.prototype, "Banner1", void 0), i([B(cc.Node)], t.prototype, "ArtWord", void 0), i([B(cc.Node)], t.prototype, "Time", void 0), i([B(cc.Label)], t.prototype, "TimeLabel", void 0), i([B(cc.Label)], t.prototype, "TimeValue", void 0), i([B(cc.Button)], t.prototype, "StoneShop", void 0), i([B(cc.Label)], t.prototype, "StoneShopLabel", void 0), i([B(cc.Label)], t.prototype, "BannerHint", void 0), i([B(cc.Button)], t.prototype, "RuleButton", void 0), i([B(cc.Button)], t.prototype, "FreeBtn", void 0), i([B(cc.Label)], t.prototype, "TimeLeftLabel", void 0), i([B(cc.Node)], t.prototype, "FreeAni", void 0), i([B(l.default)], t.prototype, "GiftPackContainer", void 0), i([B(cc.Widget)], t.prototype, "ViewWidgets", void 0), i([B(cc.Widget)], t.prototype, "DiamondViewWidgets", void 0), i([B(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([B(cc.Node)], t.prototype, "View", void 0), i([B(cc.ScrollView)], t.prototype, "DiamondScrollview", void 0), i([B(cc.Node)], t.prototype, "DiamondView", void 0), i([B(l.default)], t.prototype, "DiamondAsyncLayout", void 0), i([B(cc.Node)], t.prototype, "DailySelectionAutoBuy", void 0), i([B(cc.Node)], t.prototype, "PageLessContainer", void 0), i([B(cc.Node)], t.prototype, "PageLotContainer", void 0), i([B(cc.Node)], t.prototype, "PageLotContainerScrollview", void 0), i([B(v.default)], t.prototype, "MultilangSprite", void 0), i([B(cc.Node)], t.prototype, "VipLevelContainer", void 0), i([B(cc.Node)], t.prototype, "ContinueProgressContainer", void 0), i([B(cc.Node)], t.prototype, "FundBg", void 0), i([B(cc.Node)], t.prototype, "FundBuyNode", void 0), i([B(cc.Button)], t.prototype, "FundBtn", void 0), i([B(cc.Label)], t.prototype, "FundBtnLabel", void 0), i([B(cc.Button)], t.prototype, "FundNoGetBtn", void 0), i([B(cc.Label)], t.prototype, "FundNoGetBtnLabel", void 0), i([B(cc.Node)], t.prototype, "FundDiscount", void 0), i([B(cc.Label)], t.prototype, "FundVipPointLeft", void 0), i([B(cc.Label)], t.prototype, "FundVipPointRight", void 0), i([B(cc.Label)], t.prototype, "FundGood", void 0), i([B(cc.Label)], t.prototype, "FundGoodValue", void 0), i([B(cc.Node)], t.prototype, "FundRedDot", void 0), i([B(cc.Label)], t.prototype, "FundHint", void 0), i([B(cc.Node)], t.prototype, "ChildPageContainer", void 0), i([B(cc.Button)], t.prototype, "PreviewBtn", void 0), i([B(cc.Label)], t.prototype, "PreviewBtnLabel", void 0), i([D], t)
            }(cc.Component);
        n.default = N, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/MallNewPanel": "MallNewPanel",
        "./AsyncLayout": "AsyncLayout",
        "./ContinuePayProgressComponent": "ContinuePayProgressComponent",
        "./DiamondShopItemGoodComponent": "DiamondShopItemGoodComponent",
        "./MallDailySelectionHeroComponent": "MallDailySelectionHeroComponent",
        "./MallNewDailyChooseAutoBuyComponent": "MallNewDailyChooseAutoBuyComponent",
        "./MallNewGiftComponent": "MallNewGiftComponent",
        "./MallNewMonthCardContainerComponent": "MallNewMonthCardContainerComponent",
        "./MallNewPanelVipLevelComponent": "MallNewPanelVipLevelComponent",
        "./MallNewPermanentPrivilegeComponent": "MallNewPermanentPrivilegeComponent",
        "./MallSubPageBtnCompontent": "MallSubPageBtnCompontent",
        "./_MultilangSprite": "_MultilangSprite"
    }],
    MallNewDailyChooseAutoBuyComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "21a47jSnn5E+4dd9zm+YzhA", "MallNewDailyChooseAutoBuyComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Channel/ChannelManager"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AutoBuyBtn = null, t.AutoBuyBtnLabel = null, t.GetVipLeft = null, t.GetVipRight = null, t.NormalValueTitle = null, t.AutoBuyValue = null, t.SellOut = null, t.Mask = null, t.Tips = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.GetVipLeft.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.NormalValueTitle.string = "mall_originPrice".ToUILocale(), this.SellOut.string = "sellout".ToUILocale(), this.AutoBuyBtn.node.on("click", this.OnClickBuy, this), this.Tips.string = "mall_dailySelect_autoTips".ToUILocale()
                }, t.prototype.OnClickBuy = function() {
                    this._getCallBack && this._getCallBack()
                }, t.prototype.Init = function(e, t, n) {
                    this.AutoBuyBtn.node.active = e, this.Mask.active = !e, this.AutoBuyValue.string = a.default.Instance.CurrencySymbol + a.default.Instance.ExchangeMoney(t.ShowMoney), this.AutoBuyBtnLabel.string = a.default.Instance.CurrencySymbol + a.default.Instance.ExchangeMoney(t.Money), this.GetVipRight.string = "x" + t.VipPoint, this._getCallBack = n
                }, i([c(cc.Button)], t.prototype, "AutoBuyBtn", void 0), i([c(cc.Label)], t.prototype, "AutoBuyBtnLabel", void 0), i([c(cc.Label)], t.prototype, "GetVipLeft", void 0), i([c(cc.Label)], t.prototype, "GetVipRight", void 0), i([c(cc.Label)], t.prototype, "NormalValueTitle", void 0), i([c(cc.Label)], t.prototype, "AutoBuyValue", void 0), i([c(cc.Label)], t.prototype, "SellOut", void 0), i([c(cc.Node)], t.prototype, "Mask", void 0), i([c(cc.Label)], t.prototype, "Tips", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Channel/ChannelManager": "ChannelManager"
    }],
    MallNewGiftComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ce9e0zGBcFHKYTYUVXt2swz", "MallNewGiftComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.MallFundBtnState = n.MallNewGiftType = void 0;
        var s, l, c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Etc"),
            h = e("../../Components/Components"),
            f = e("./ItemComponent"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Auxiliary/UIUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property;
        (function(e) {
            e[e.Privilege = 0] = "Privilege", e[e.SpuerValue = 1] = "SpuerValue", e[e.Task = 2] = "Task", e[e.Fund = 3] = "Fund"
        })(s = n.MallNewGiftType || (n.MallNewGiftType = {})),
        function(e) {
            e[e.NoBuyAndNoLimit = 0] = "NoBuyAndNoLimit", e[e.NoBuyAndLimit = 1] = "NoBuyAndLimit", e[e.BuyAndNoLimit = 2] = "BuyAndNoLimit", e[e.BuyAndLimit = 3] = "BuyAndLimit", e[e.IsGet = 4] = "IsGet"
        }(l = n.MallFundBtnState || (n.MallFundBtnState = {}));
        var b = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.PrivilegeIcon = null, t.ScrollView = null, t.View = null, t.RewardContainer = null, t.TitleBg = null, t.Title = null, t.HintBg = null, t.Hint = null, t.LongHint = null, t.BuyBtn = null, t.BuyBtnLabel = null, t.FreeBtn = null, t.FreeBtnLabel = null, t.GoBtn = null, t.GoBtnLabel = null, t.GetBtn = null, t.GetBtnLabel = null, t.NoGetWayBtn = null, t.NoGetWayBtnLabel = null, t.LockBtn = null, t.LockBtnLabel = null, t.VipLeftLabel = null, t.VipRightLabel = null, t.ValuTagBg = null, t.ValueTagLabel = null, t.TimeNode = null, t.TimeLabel = null, t.Mask = null, t.ReciveLabel = null, t.TaskRecive = null, t.TaskReciveLabel = null, t.PrivilegeSpecialBg = null, t.TagMask = null, t.TagMaskLabel = null, t.GetBtnRedDot = null, t._items = [], t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.FreeBtn.node.on("click", this.OnClickBuy, this), this.BuyBtn.node.on("click", this.OnClickBuy, this), this.GoBtn.node.on("click", this.OnGoButtonClick, this), this.GetBtn.node.on("click", this.OnClickBuy, this), this.LockBtn.node.on("click", this.OnClickLockBtn, this), this.VipLeftLabel.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.FreeBtnLabel.string = "CrazyWheel_free".ToUILocale(), this.ReciveLabel.string = "sellout".ToUILocale(), this.GetBtnLabel.string = "receive".ToUILocale(), this.GoBtnLabel.string = "task_goto".ToUILocale(), this.NoGetWayBtnLabel.string = "mall_notReach".ToUILocale(), this.TaskReciveLabel.string = "already_receive".ToUILocale(), this.LockBtnLabel.string = "CollectionPavilion_Item_Lock".ToUILocale()
            }, t.prototype.onEnable = function() {
                y.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                y.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.OnClickBuy = function() {
                this._param.CallBack && (this._param.GiftPack ? this._param.CallBack(this._param.GiftPack, this._param.CallBackParam) : this._param.CallBack())
            }, t.prototype.OnClickLockBtn = function() {
                this._unlockInfo && I.UIUtlity.ShowFloatingHint(this._unlockInfo)
            }, t.prototype.Init = function(e) {
                this._param = e, this._unlockInfo = void 0, this._param.TitleBg ? this.TitleBg.spriteFrame = this._param.TitleBg : this.TitleBg.spriteFrame = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("title1"), this.SetUI()
            }, t.prototype.SetUI = function() {
                switch (this.unschedule(this.ComPuteTime), this.PrivilegeSpecialBg.active = !1, this.PrivilegeIcon.node.parent.active = !1, this.LongHint.node.parent.active = !1, this.Hint.node.active = !0, this.TimeNode.active = !1, this._param.Type) {
                    case s.Privilege:
                        this.ValuTagBg.spriteFrame = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("discount_bg"), this.HintBg.node.width = 320, this.Hint.node.x = -160, this.ValuTagBg.node.width = 116, this.ValueTagLabel.node.x = 55, this.ValuTagBg.node.active = !0, this.ScrollView.node.width = 830, this.View.width = 830, this._privilegeModel = c.DataCenter.Instance.GetDataById(p.SubscribePrivilege_Model, this._param.PrivilegeConfig.Id), this.SetPrivilegeBtnStae(), this._privilegeModel ? (this._isGet = !0, this.SetTime(this._privilegeModel.Time, this._privilegeModel.CanDay)) : this._isGet = !1, this.ValueTagLabel.string = "DiscountTicketBag_Item_Time_Day".ToUILocale().Fmt(this._param.PrivilegeConfig.Days.toString()), this.Hint.string = h.ConfigDataComponent.Instance.GetLocale("SubscribePrivilege_desc_" + this._param.PrivilegeConfig.Id), this.Hint.node.width > 290 && (this.Hint.node.active = !1, this.LongHint.node.parent.active = !0, this.LongHint.string = this.Hint.string), this.PrivilegeIcon.node.parent.active = !0, this.Title.string = this._param.Title, this.PrivilegeIcon.spriteFrame = this._param.PrivilegeAtlas.getSpriteFrame("privilege_" + this._param.PrivilegeConfig.Id), this.SetReward(), this.SetMask(!1);
                        break;
                    case s.SpuerValue:
                        this.ValuTagBg.spriteFrame = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("discount_bg"), this.HintBg.node.width = 200, this.Hint.node.x = -100, this.ValuTagBg.node.width = 225, this.ValueTagLabel.node.x = 107, this.ScrollView.stopAutoScroll(), this.ScrollView.node.width = 1100, this.View.width = 1100, this.Title.string = this._param.Title;
                        var e = this._param.GiftPack.LimitCount,
                            t = e - m.default.Instance.GetGiftBuyCount(this._param.GiftPack.Id);
                        this._param.AutoBuyTimes && this._param.GiftPack.PayId && (t -= this._param.AutoBuyTimes), this.SetSuperValueBtnStae(t), this.SetReward();
                        var n = void 0;
                        n = t > 0 ? "<color = #6EEEA7>" + t + "/" + e + "</color>" : "<color = #ff403e>" + t + "/" + e + "</color>", 1 == this._param.GiftPack.LimitType ? this.Hint.string = "mall_buyLimit_1_2".ToUILocale().Fmt(n) : this.Hint.string = "activityScoreShop_remainderCount".ToUILocale().Fmt(n);
                        break;
                    case s.Task:
                        this.ValuTagBg.node.width = 116, this.ValueTagLabel.node.x = 55, this.HintBg.node.width = 200, this.Hint.node.x = -100, this.ScrollView.stopAutoScroll(), this.ScrollView.node.width = 1100, this.View.width = 1100, this.Title.string = this._param.Title;
                        var o, r = this._param.Task.TotalCount,
                            i = c.DataCenter.Instance.GetDataById(p.UserTask_Model, 1e4 * this._param.ActivityId + this._param.Task.Id),
                            a = i.Progress;
                        o = n = i.Progress >= r && !i.IsCompleted ? "<color = #6EEEA7>" + a + "/" + r + "</color>" : "<color = #FFFFFF>" + a + "/" + r + "</color>", this.Hint.string = o, this.ValuTagBg.spriteFrame = this._param.Task.IsDaily ? I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("discount_bg") : I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("discountBg_green"), this.ValueTagLabel.string = this._param.Task.IsDaily ? "continuousCharge_task_tag_daily".ToUILocale() : "continuousCharge_task_tag_period".ToUILocale(), this.SetTaskBtnState(i), this.SetReward(), this.SetMask(i.IsCompleted);
                        break;
                    case s.Fund:
                        this.ValuTagBg.node.active = !1, this.HintBg.node.width = 200, this.Hint.node.x = -100, this.ScrollView.stopAutoScroll(), this.ScrollView.node.width = 1100, this.View.width = 1100, this.Title.string = this._param.Title, this.Hint.string = this._param.ProgressLabe ? this._param.ProgressLabe : "", this.SetFundBtnState(), this.SetReward(), this.SetMask(this._param.FundBtnState == l.IsGet)
                }
            }, t.prototype.SetPrivilegeBtnStae = function() {
                this.GoBtn.node.active = !1, this.GetBtn.node.active = !1, this.NoGetWayBtn.node.active = !1, this.LockBtn.node.active = !1, this.BuyBtn.node.active = !1;
                var e = [!0, null];
                this._param.PrivilegeConfig.Unlock && (e = m.default.Instance.IsGameModuleUnlock(this._param.PrivilegeConfig.Unlock)), e[0] ? this._param.GiftPack.Money && this._param.GiftPack.Money > 0 ? (this._param.GiftPack.PayId && (this.BuyBtn.node.active = !0, this.BuyBtnLabel.string = m.default.Instance.GetFormatPrice(this._param.GiftPack.Money), this.VipRightLabel.string = "x" + this._param.GiftPack.VipPoint), this.FreeBtn.node.active = !1) : (this.ValuTagBg.node.active = !1, this.FreeBtn.node.active = !0, this.BuyBtn.node.active = !1) : (this.LockBtn.node.active = !0, this._unlockInfo = e[1])
            }, t.prototype.SetSuperValueBtnStae = function(e) {
                this.GoBtn.node.active = !1, this.GetBtn.node.active = !1, this.NoGetWayBtn.node.active = !1, this.LockBtn.node.active = !1, e > 0 ? (this._param.GiftPack.Money && this._param.GiftPack.Money > 0 ? (this._param.GiftPack.PayId && (this.FreeBtn.node.active = !1, this.BuyBtn.node.active = !0, this.BuyBtnLabel.string = m.default.Instance.GetFormatPrice(this._param.GiftPack.Money), this.VipRightLabel.string = "x" + this._param.GiftPack.VipPoint), this._param.GiftPack.Discount ? (this.ValuTagBg.node.active = !0, this.ValueTagLabel.string = "disCount_greatValue".ToUILocale().Fmt(this._param.GiftPack.Discount + "%")) : this.ValuTagBg.node.active = !1) : (this.BuyBtn.node.active = !1, this.ValuTagBg.node.active = !1, this.FreeBtn.node.active = !0), this.SetMask(!1)) : (this.BuyBtn.node.active = !1, this.ValuTagBg.node.active = !1, this.FreeBtn.node.active = !1, this.SetMask(!0))
            }, t.prototype.SetTaskBtnState = function(e) {
                this.ValuTagBg.node.active = !0, this.FreeBtn.node.active = !1, this.BuyBtn.node.active = !1, this.LockBtn.node.active = !1;
                var t = this._param.Task;
                this.GoBtn.node.active = e.Progress < t.TotalCount && t.GetWayId && t.GetWayId > 0, this.GetBtn.node.active = e.Progress >= t.TotalCount && !e.IsCompleted, this.GetBtnRedDot.active = this.GetBtn.node.active, this.TaskRecive.active = e.Progress >= t.TotalCount && e.IsCompleted, this.NoGetWayBtn.node.active = e.Progress < t.TotalCount && !t.GetWayId
            }, t.prototype.SetFundBtnState = function() {
                this.GoBtn.node.active = !1, this.GetBtn.node.active = !1, this.NoGetWayBtn.node.active = !1, this.BuyBtn.node.active = !1, this.FreeBtn.node.active = !1, this.LockBtn.node.active = !1;
                var e = this._param.FundBtnState;
                switch (e || (e = l.NoBuyAndNoLimit), e) {
                    case l.NoBuyAndNoLimit:
                        this.NoGetWayBtn.node.active = !0;
                        break;
                    case l.NoBuyAndLimit:
                        this.GetBtn.node.active = !0, this.GetBtnRedDot.active = !1;
                        break;
                    case l.BuyAndNoLimit:
                        this.NoGetWayBtn.node.active = !0;
                        break;
                    case l.BuyAndLimit:
                        this.GetBtn.node.active = !0, this.GetBtnRedDot.active = !0;
                        break;
                    case l.IsGet:
                }
            }, t.prototype.SetMask = function(e) {
                void 0 === e && (e = !1), this.TagMask.width = this.ValuTagBg.node.width, this.TagMask.active = this.ValuTagBg.node.active, this.TagMaskLabel.node.x = this.ValueTagLabel.node.x, this.TagMaskLabel.string = this.ValueTagLabel.string, this.Mask.active = e, this._param.Type == s.Task || this._param.Type == s.Fund ? (this.ReciveLabel.node.parent.active = !1, this.TaskRecive.active = !0) : (this.ReciveLabel.node.parent.active = !0, this.TaskRecive.active = !1)
            }, t.prototype.SetTime = function(e, t) {
                if (-1 == t) return this.unschedule(this.ComPuteTime), this.TimeNode.active = !0, this.FreeBtn.node.active = !1, this.BuyBtn.node.active = !1, void(this.TimeLabel.string = "mall_privilege_foreverwork".ToUILocale());
                this._time = e + t * d.Etc.DayDuration, this.ScheduleTime()
            }, t.prototype.ScheduleTime = function() {
                this.unschedule(this.ComPuteTime), this.ComPuteTime(), this.schedule(this.ComPuteTime, 1)
            }, t.prototype.ComPuteTime = function() {
                var e = this._time - c.RpcComponent.Instance.ServerTime;
                e > 0 ? (this.TimeNode.active = !0, this.FreeBtn.node.active = !1, this.BuyBtn.node.active = !1, this.TimeLabel.string = e.FmtRemainTime()) : (this._isGet = !1, this.SetReward(), this.TimeNode.active = !1, this._param.GiftPack.Money && this._param.GiftPack.Money > 0 ? this.BuyBtn.node.active = !0 : this.FreeBtn.node.active = !0)
            }, t.prototype.SetReward = function() {
                var e = 0,
                    t = this._param.Type,
                    n = [];
                for (this._param.Rewards ? n = this._param.Rewards : this._param.Task ? n = this._param.Task.Rewards : this._param.GiftPack && (n = a(this._param.GiftPack.Items)), this.AddonReward(n); e < n.length; e++) {
                    var o = this._items[e];
                    if (!o) {
                        var r = cc.instantiate(this._param.ItemPrefab);
                        r.setParent(this.RewardContainer), o = r.getComponent(f.ItemComponent), this._items.push(o)
                    }
                    o.node.active = !0;
                    var i = n[e].Items[0];
                    i > 0 ? o.Init({
                        ItemId: i,
                        Count: n[e].Items[1]
                    }) : (o.SetItemSimpleState(), o.SetAddFlagState(!0), o.AddFlag.node.width = 120, o.AddFlag.node.height = 120), o.SetCountFontSize(26, 117), t == s.Privilege && o.SetReceivedTagState(this._isGet)
                }
                for (; e < this._items.length; e++) this._items[e].node.active = !1
            }, t.prototype.AddonReward = function(e) {
                if (null != this._param.DailySelectionHeroId) {
                    var t = c.ConfigDataComponent.Instance.GetConfigById(u.DailySelectionPack_Config, this._param.GiftPack.Id);
                    if (t) {
                        var n = this._param.DailySelectionHeroId;
                        if (0 == n)
                            for (var o = 0; o < t.ChooseRewards.length; o++) {
                                var r = t.ChooseRewards[o];
                                e.splice(1, 0, {
                                    Items: [r.Items[0], t.ChooseRewards[o].Items[1]]
                                })
                            } else {
                                var i = c.ConfigDataComponent.Instance.GetConfigById(u.DailySelection_Config, n),
                                    a = {};
                                for (o = 0; o < i.ChooseRewards.length; o++) a[i.ChooseRewards[o].Items[0]] = i.ChooseRewards[o].Items[1];
                                for (o = 0; o < t.ChooseRewards.length; o++) {
                                    var s = Math.abs(t.ChooseRewards[o].Items[0]),
                                        l = t.ChooseRewards[o].Items[1],
                                        p = a[s];
                                    e.splice(1, 0, {
                                        Items: [p, l]
                                    })
                                }
                            }
                    }
                }
            }, t.prototype.OnGoButtonClick = function() {
                m.default.Instance.HasBoughtFirstPay() ? m.default.ShowPanelByGetWayId(this._param.Task.GetWayId) : m.default.ShowActivityFirstPayPanel(!0)
            }, t.prototype.OnItemClick = function(e, t) {
                if (-1 != this.RewardContainer.children.indexOf(t)) {
                    var n = t.getComponent(f.ItemComponent).ItemId;
                    n < 0 ? null != this._param.DailySelectionHeroId && this._param.ClickItemCallback() : I.UIUtlity.ShowItemTip(n, t)
                }
            }, i([v(cc.Sprite)], t.prototype, "PrivilegeIcon", void 0), i([v(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([v(cc.Node)], t.prototype, "View", void 0), i([v(cc.Node)], t.prototype, "RewardContainer", void 0), i([v(cc.Sprite)], t.prototype, "TitleBg", void 0), i([v(cc.RichText)], t.prototype, "Title", void 0), i([v(cc.Sprite)], t.prototype, "HintBg", void 0), i([v(cc.RichText)], t.prototype, "Hint", void 0), i([v(cc.RichText)], t.prototype, "LongHint", void 0), i([v(cc.Button)], t.prototype, "BuyBtn", void 0), i([v(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([v(cc.Button)], t.prototype, "FreeBtn", void 0), i([v(cc.Label)], t.prototype, "FreeBtnLabel", void 0), i([v(cc.Button)], t.prototype, "GoBtn", void 0), i([v(cc.Label)], t.prototype, "GoBtnLabel", void 0), i([v(cc.Button)], t.prototype, "GetBtn", void 0), i([v(cc.Label)], t.prototype, "GetBtnLabel", void 0), i([v(cc.Button)], t.prototype, "NoGetWayBtn", void 0), i([v(cc.Label)], t.prototype, "NoGetWayBtnLabel", void 0), i([v(cc.Button)], t.prototype, "LockBtn", void 0), i([v(cc.Label)], t.prototype, "LockBtnLabel", void 0), i([v(cc.Label)], t.prototype, "VipLeftLabel", void 0), i([v(cc.Label)], t.prototype, "VipRightLabel", void 0), i([v(cc.Sprite)], t.prototype, "ValuTagBg", void 0), i([v(cc.Label)], t.prototype, "ValueTagLabel", void 0), i([v(cc.Node)], t.prototype, "TimeNode", void 0), i([v(cc.Label)], t.prototype, "TimeLabel", void 0), i([v(cc.Node)], t.prototype, "Mask", void 0), i([v(cc.Label)], t.prototype, "ReciveLabel", void 0), i([v(cc.Node)], t.prototype, "TaskRecive", void 0), i([v(cc.Label)], t.prototype, "TaskReciveLabel", void 0), i([v(cc.Node)], t.prototype, "PrivilegeSpecialBg", void 0), i([v(cc.Node)], t.prototype, "TagMask", void 0), i([v(cc.Label)], t.prototype, "TagMaskLabel", void 0), i([v(cc.Node)], t.prototype, "GetBtnRedDot", void 0), i([C], t)
        }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    MallNewGoodFundRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9a8da14hYtKJLGBI67L4eBy", "MallNewGoodFundRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../Components/ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("../../Components/Components"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.ItemContainer = null, t.ConvertNode = null, t.BgLight = null, t.BgDark = null, t.CanGetFlag = null, t._index = 0, t._itemIndex = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ConvertNode.on(cc.Node.EventType.TOUCH_END, this.OnConvertNodeTouch, this)
                }, t.prototype.onDisable = function() {
                    this.ConvertNode.off(cc.Node.EventType.TOUCH_END, this.OnConvertNodeTouch, this)
                }, t.prototype.SetTitle = function(e) {
                    return this.Title.string = e, this
                }, t.prototype.SetChosen = function(e) {
                    return this.BgLight.active = e, this.BgDark.active = !e, this
                }, t.prototype.SetItem = function(e, t, n, o, r) {
                    if (this._rewards = t, this._itemIndex = n || 0, this.ConvertNode.active = t.length > 1, this._currentMode = r, null == this._item) {
                        var i = e.Get();
                        i.setParent(this.ItemContainer), this._item = i.getComponent(l.ItemComponent)
                    }
                    if (t.length > 1)
                        if (0 == this._itemIndex)
                            if (o < d.DataCenter.Instance.GetDataById(h.MallActivity_Model, f.GiftPackType.GoodFund).IntArray[r]) {
                                var a = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[this._itemIndex].Items[0]);
                                this._item.Init({
                                    ItemId: t[this._itemIndex].Items[0],
                                    Count: t[this._itemIndex].Items[1]
                                }, a.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this.PlayEffect(this._item, t[this._itemIndex].Items[2])
                            } else this._item.SetItemSimpleState(), this._item.SetAddFlagState(!0, "add_green");
                    else {
                        var s = this._itemIndex - 1;
                        a = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[s].Items[0]), this._item.Init({
                            ItemId: t[s].Items[0],
                            Count: t[s].Items[1]
                        }, a.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this.PlayEffect(this._item, t[s].Items[2])
                    } else a = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t[this._itemIndex].Items[0]), this._item.Init({
                        ItemId: t[this._itemIndex].Items[0],
                        Count: t[this._itemIndex].Items[1]
                    }, a.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon), this.PlayEffect(this._item, t[this._itemIndex].Items[2]);
                    return this._item.node.name = o.toString(), this
                }, t.prototype.SetCheck = function(e) {
                    return this._item.SetReceivedTagState(e), e && (this.ConvertNode.active = !1), this
                }, t.prototype.SetFlag = function(e) {
                    return this.CanGetFlag.active = e, this
                }, t.prototype.SetIndex = function(e) {
                    this._itemIndex = e;
                    var t = this._itemIndex - 1,
                        n = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, this._rewards[t].Items[0]);
                    this._item.Init({
                        ItemId: this._rewards[t].Items[0],
                        Count: this._rewards[t].Items[1]
                    }, n.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon)
                }, t.prototype.GetIndex = function() {
                    return this._itemIndex
                }, Object.defineProperty(t.prototype, "index", {
                    get: function() {
                        return this._index
                    },
                    set: function(e) {
                        this._index = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.OnConvertNodeTouch = function() {
                    var e = d.DataCenter.Instance.GetDataById(h.MallActivity_Model, f.GiftPackType.GoodFund).IntArray[this._currentMode];
                    this._index < e ? s.UIUtlity.ShowFloatingHint("heroIntrodice_has_receive".ToUILocale()) : a.UIManager.Instance.ShowUIPanel(u.PanelConfig.MallSuperFundItemChooseHint.Path, this._rewards, this, this._itemIndex)
                }, t.prototype.PlayEffect = function(e, t) {
                    if (null != t && (1 == t || 2 == t || 3 == t || 4 == t)) {
                        var n = t;
                        e.PlayLightingCircleEffect(n)
                    }
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([m(cc.Node)], t.prototype, "ConvertNode", void 0), i([m(cc.Node)], t.prototype, "BgLight", void 0), i([m(cc.Node)], t.prototype, "BgDark", void 0), i([m(cc.Node)], t.prototype, "CanGetFlag", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MallNewHeroTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5b016NokiJKt424ek86DUvh", "MallNewHeroTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/ItemComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1), t.Title = null, t.Grid = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "bubbleTip_new2".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    this._heroIds = e[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetGrid()
                }, t.prototype.SetGrid = function() {
                    this._heroIds.length > 4 ? (this.Grid.type = cc.Layout.Type.GRID, this.Grid.startAxis = cc.Layout.AxisDirection.HORIZONTAL, this.Grid.node.width = 971) : (this.Grid.type = cc.Layout.Type.HORIZONTAL, this.Grid.resizeMode = cc.Layout.ResizeMode.CONTAINER);
                    for (var e = 0; e < this._heroIds.length; e++) {
                        var t = this._heroIds[e],
                            n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.Grid.node), n.getComponent(u.ItemComponent).Init({
                            ItemId: t
                        }, u.ItemComponentType.HeroInfo)
                    }
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Layout)], t.prototype, "Grid", void 0), i([d], t)
            }(l.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MallNewMonthCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "32af0J/ezVABoZi3Hnx7hjY", "MallNewMonthCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./_MultilangSprite"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("./ItemComponent"),
            h = e("../../Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Channel/ChannelManager"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.ArtWord = null, t.InstantlyItemContainer = null, t.WorkTime = null, t.InstantlyHint = null, t.DailyHint = null, t.DailyItemConatiner = null, t.Card = null, t.Mask = null, t.UnlockHint = null, t.BuyBtn = null, t.BuyBtnLabel = null, t.LockBtn = null, t.LockBtnLabel = null, t.VipLeft = null, t.VipValue = null, t.GoodTitle = null, t.GoodValue = null, t.Pattern = null, t.ConditionNode = null, t.UnLockInfo1 = null, t.UnLockInfo2 = null, t.IsActive = null, t.Time = null, t.RefreshTime = null, t.RewardNode = null, t._itemComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent != this.DailyItemConatiner && t.parent != this.InstantlyItemContainer || p.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, t.prototype.onLoad = function() {
                    this.InstantlyHint.string = "monthCard_buyAndGot".ToUILocale(), this.VipLeft.string = "task_get_score_tag".ToUILocale(), this.DailyHint.string = "<outline color=#202434, width=3>" + "monthCard_activeBenefit".ToUILocale() + "</color>", this.IsActive.string = "artifact_has_active".ToUILocale(), this.BuyBtn.node.on("click", this.OnBuyButtonClick, this), this.LockBtn.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    this._cardType = e, this._monthCardData = t, this._giftId = n, this._itemPrefab = o, this._atlas = r, this.Bg.spriteFrame = i, this._currentCardData = this._monthCardData[this._cardType - 1].Items, this._giftConfig = h.ConfigDataComponent.Instance.GetConfigById(f.GiftPack_Config, this._giftId), this.SetDifferentCardType(), this.SetRemainderTime(), this.SetImmediatelyReward(), this.SetButton()
                }, t.prototype.SetPattern = function(e) {
                    this.Pattern.active = e
                }, t.prototype.SetDifferentCardType = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            switch (e = "card_" + this._cardType, this.Card.spriteFrame = this._atlas.getSpriteFrame(e), this.ConditionNode.active = !1, this._cardType) {
                                case y.MonthCardType.Glory:
                                    this.Mask.active = !1, this.ArtWord.LoadSpriteFrame("MultilangSinglePng2", "monthCard_1"), this._rewardConfig = h.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, y.LevelParamType.GloryMonthCard);
                                    break;
                                case y.MonthCardType.Supreme:
                                    this.Mask.active = !1, this.ArtWord.LoadSpriteFrame("MultilangSinglePng2", "monthCard_3"), this._rewardConfig = h.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, y.LevelParamType.SupremeMonthCard);
                                    break;
                                case y.MonthCardType.Perfect:
                                    this.ConditionNode.active = !0, this.ArtWord.LoadSpriteFrame("MultilangSinglePng2", "monthCard_2"), this._rewardConfig = h.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, y.LevelParamType.PerfectMonthCard), this.SetPerfectCardLabel();
                                    break;
                                case y.MonthCardType.King:
                                    this.Mask.active = !1, this._rewardConfig = h.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, y.LevelParamType.KingMonthCard)
                            }
                            return this.SetRewardItems(), [2]
                        })
                    })
                }, t.prototype.SetPerfectCardLabel = function() {
                    var e = this._monthCardData[y.MonthCardType.Glory - 1].Items[1] - this._monthCardData[y.MonthCardType.Glory - 1].Items[2],
                        t = this._monthCardData[y.MonthCardType.Supreme - 1].Items[1] - this._monthCardData[y.MonthCardType.Supreme - 1].Items[2];
                    this.UnlockHint.string = "monthCard_tip_buy_limi_richText".ToUILocale(), this.UnLockInfo1.string = e > 0 ? "monthCard_active".ToUILocale() : "monthCard_not_active".ToUILocale(), this.UnLockInfo2.string = t > 0 ? "monthCard_active".ToUILocale() : "monthCard_not_active".ToUILocale(), e > 0 && t > 0 ? (this.Mask.active = !1, p.UIUtlity.OffNodeGray(this.Card.node)) : (this.Mask.active = !0, p.UIUtlity.OnNodeGray(this.Card.node), this.IsActive.node.active = !1)
                }, t.prototype.SetRewardItems = function() {
                    for (var e = 0; e < this._rewardConfig.Data2.length; e++) {
                        var t = this._itemComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.DailyItemConatiner), t = n.getComponent(d.ItemComponent), this._itemComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o = this._rewardConfig.Data2[e].Items[0],
                            r = h.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, o);
                        t.Init({
                            ItemId: o,
                            Count: this._rewardConfig.Data2[e].Items[1]
                        }, r.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon), this.PlayEffect(t, this._rewardConfig.Data2[e].Items[2])
                    }
                    if (this._rewardConfig.Data2.length < this._itemComponentArray.length)
                        for (e = this._rewardConfig.Data2.length; e < this._itemComponentArray.length; e++) this._itemComponentArray[e].node.active = !1
                }, t.prototype.SetRemainderTime = function() {
                    var e = this._currentCardData[1] - this._currentCardData[2];
                    this.IsActive.node.parent.active = e > 0, this.RewardNode.active = e <= 0, e > 0 && this.ConditionNode.active && (this.ConditionNode.active = !1), this.Time.active = e > 0, this.RefreshTime.string = "monthCard_countDownGreen".ToUILocale().Fmt(e)
                }, t.prototype.SetImmediatelyReward = function() {
                    if (!this._immediatelyRewardComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.InstantlyItemContainer), this._immediatelyRewardComponent = e.getComponent(d.ItemComponent)
                    }
                    var t = h.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, this._giftConfig.Items[0].Items[0]);
                    this._immediatelyRewardComponent.Init({
                        ItemId: t.Id,
                        Count: this._giftConfig.Items[0].Items[1]
                    }, t.Star ? d.ItemComponentType.ItemWithStar : d.ItemComponentType.ItemCommon), this._immediatelyRewardComponent.PlayLightingCircleEffect(2)
                }, t.prototype.PlayEffect = function(e, t) {
                    if (null != t && (1 == t || 2 == t || 3 == t || 4 == t)) {
                        var n = t;
                        e.PlayLightingCircleEffect(n)
                    }
                }, t.prototype.SetButton = function() {
                    this.BuyBtnLabel.string = m.default.Instance.GetFormatPrice(this._giftConfig.Money), this.LockBtnLabel.string = m.default.Instance.GetFormatPrice(this._giftConfig.Money), this.VipValue.string = "x" + this._giftConfig.VipPoint, m.default.Instance.SetDisCount(this._giftConfig.Discount, this.GoodValue, this.GoodTitle);
                    var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("MonthCardDaysCountLimit"),
                        t = this._currentCardData[1] - this._currentCardData[2];
                    if (this.BuyBtn.node.active = t < e, this.LockBtn.node.active = t >= e, this._cardType == y.MonthCardType.Perfect) {
                        var n = this._monthCardData[y.MonthCardType.Glory - 1].Items[1] - this._monthCardData[y.MonthCardType.Glory - 1].Items[2],
                            o = this._monthCardData[y.MonthCardType.Supreme - 1].Items[1] - this._monthCardData[y.MonthCardType.Supreme - 1].Items[2];
                        (n <= 0 || o <= 0) && (this.BuyBtn.node.active = !1, this.LockBtn.node.active = !0)
                    }
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("MonthCardDaysCountLimit");
                    if (0 == this._currentCardData[0] || this._currentCardData[1] - this._currentCardData[2] < e)
                        if (this._cardType == y.MonthCardType.Perfect) {
                            var t = this._monthCardData[y.MonthCardType.Glory - 1].Items,
                                n = this._monthCardData[y.MonthCardType.Supreme - 1].Items;
                            t[1] - t[2] > 0 && n[1] - n[2] > 0 ? g.default.Instance.Pay(this._giftId) : p.UIUtlity.ShowFloatingHint("monthCard_buy_limit".ToUILocale())
                        } else g.default.Instance.Pay(this._giftId);
                    else p.UIUtlity.ShowFloatingHint("mall_monthCard_notReachLimitTime".ToUILocale().Fmt(e))
                }, i([C(cc.Sprite)], t.prototype, "Bg", void 0), i([C(l.default)], t.prototype, "ArtWord", void 0), i([C(cc.Node)], t.prototype, "InstantlyItemContainer", void 0), i([C(cc.Label)], t.prototype, "WorkTime", void 0), i([C(cc.Label)], t.prototype, "InstantlyHint", void 0), i([C(cc.RichText)], t.prototype, "DailyHint", void 0), i([C(cc.Node)], t.prototype, "DailyItemConatiner", void 0), i([C(cc.Sprite)], t.prototype, "Card", void 0), i([C(cc.Node)], t.prototype, "Mask", void 0), i([C(cc.RichText)], t.prototype, "UnlockHint", void 0), i([C(cc.Button)], t.prototype, "BuyBtn", void 0), i([C(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([C(cc.Button)], t.prototype, "LockBtn", void 0), i([C(cc.Label)], t.prototype, "LockBtnLabel", void 0), i([C(cc.Label)], t.prototype, "VipLeft", void 0), i([C(cc.Label)], t.prototype, "VipValue", void 0), i([C(cc.Label)], t.prototype, "GoodTitle", void 0), i([C(cc.Label)], t.prototype, "GoodValue", void 0), i([C(cc.Node)], t.prototype, "Pattern", void 0), i([C(cc.Node)], t.prototype, "ConditionNode", void 0), i([C(cc.RichText)], t.prototype, "UnLockInfo1", void 0), i([C(cc.RichText)], t.prototype, "UnLockInfo2", void 0), i([C(cc.Label)], t.prototype, "IsActive", void 0), i([C(cc.Node)], t.prototype, "Time", void 0), i([C(cc.RichText)], t.prototype, "RefreshTime", void 0), i([C(cc.Node)], t.prototype, "RewardNode", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent",
        "./_MultilangSprite": "_MultilangSprite"
    }],
    MallNewMonthCardContainerComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "061a4/Z9klIl5i2eM85TavI", "MallNewMonthCardContainerComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Components/Components"),
            h = e("../../Components/DataCenter"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("./MallNewMonthCardComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Hint = null, t.Card = null, t.CardContainer = null, t.ScrollView = null, t.View = null, t.Widget = null, t._workData = [], t._cardComponentArray = [], t._assets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._cardTypeArray = [p.MonthCardType.Glory, p.MonthCardType.Supreme, p.MonthCardType.Perfect], this.Hint.string = "<outline color = #202434 width = 3><color = #FED94A>" + "monthCard_continus_buy".ToUILocale() + "</color></outline>", this.SetMonthCardConfig(), this.SetView()
                }, t.prototype.SetMonthCardConfig = function() {
                    this._monthCardConfig = {};
                    for (var e = d.ConfigDataComponent.Instance.GetConfigById(l.MallActivity_Config, p.GiftPackType.MonthCard), t = 0; t < e.Gifts.length; t++) this._monthCardConfig[t + 1] = e.Gifts[t]
                }, t.prototype.SetView = function() {
                    var e = f.UIUtlity.DESIGN_SCREEN_HEIGHT - 1920;
                    e = Math.min(e, 0), this.Hint.node.parent.y = 811 + e / 2, this.ScrollView.node.height = 1320 + e, this.View.height = 1320 + e, this.Widget.updateAlignment()
                }, t.prototype.Init = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab = e, this._atlas = t, [4, this.LoadCardBg()];
                                case 1:
                                    return o.sent(), this.isValid ? (this._model = h.DataCenter.Instance.GetDataById(c.MallActivity_Model, p.GiftPackType.MonthCard), this._workData = [{
                                        Items: [0, 0, 0]
                                    }, {
                                        Items: [0, 0, 0]
                                    }, {
                                        Items: [0, 0, 0]
                                    }, {
                                        Items: [0, 0, 0]
                                    }], null != this._model && null != this._model.Int2DArray && this._model.Int2DArray.forEach(function(e, t) {
                                        n._workData[t] = e
                                    }), this.SetCardContainer(), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.SetCardContainer = function() {
                    for (var e = 0; e < this._cardTypeArray.length; e++) {
                        var t = this._cardTypeArray[e];
                        if (this._monthCardConfig[t]) {
                            var n = this._cardComponentArray[e];
                            if (!n) {
                                var o = cc.instantiate(this.Card);
                                o.setParent(this.CardContainer), n = o.getComponent(y.default), this._cardComponentArray[e] = n
                            }
                            n.node.active = !0, n.Init(t, this._workData, this._monthCardConfig[t].Items[0], this._itemPrefab, this._atlas, this._cardBgByType[t]), n.SetPattern(e < this._cardTypeArray.length - 1)
                        }
                    }
                }, t.prototype.LoadCardBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    if (this._cardBgByType) return [2];
                                    for (this._cardBgByType = {}, e = [], t = 0; t < this._cardTypeArray.length; t++) e.push(u.AssetsManager.Instance.LoadAsset("MallPanel/PNG/Banners/monthCard_" + this._cardTypeArray[t], cc.SpriteFrame));
                                    return [4, Promise.all(e).then(function(e) {
                                        var t;
                                        if (!n.isValid)
                                            for (var o = 0; o < e.length; o++) return void u.AssetsManager.Instance.UnloadAsset(e[o]);
                                        for ((t = n._assets).push.apply(t, e), o = 0; o < n._cardTypeArray.length; o++) n._cardBgByType[n._cardTypeArray[o]] = e[o]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, i([I(cc.RichText)], t.prototype, "Hint", void 0), i([I(cc.Node)], t.prototype, "Card", void 0), i([I(cc.Node)], t.prototype, "CardContainer", void 0), i([I(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([I(cc.Node)], t.prototype, "View", void 0), i([I(cc.Widget)], t.prototype, "Widget", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./MallNewMonthCardComponent": "MallNewMonthCardComponent"
    }],
    MallNewPageBtnItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "37572iqj5dDkLPHxWSPzxWs", "MallNewPageBtnItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Label = null, t.MainSprite = null, t.Lock = null, t.Halo = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.SetState = function(e) {
                    return this._isUnLock = e, this.Lock.active = !e, e ? (this.SetLabelNormal(), a.UIUtlity.OffSpriteGray(this.MainSprite)) : (this.SetLabelLocked(), a.UIUtlity.OnSpriteGray(this.MainSprite)), this
                }, t.prototype.SetLogo = function(e) {
                    return this.MainSprite.spriteFrame = e, this
                }, t.prototype.SetName = function(e) {
                    return this.Label.string = e, this
                }, t.prototype.SetHalo = function(e) {
                    this.Halo.spriteFrame = e, n._chosenLogoItem && n._chosenLogoItem.UnsetHalo(), n._chosenLogoItem = this
                }, t.prototype.UnsetHalo = function() {
                    this.Halo.spriteFrame = null, this._isUnLock ? this.SetLabelNormal() : this.SetLabelLocked()
                }, t.prototype.SetLabelNormal = function() {
                    this.SetLabel(cc.Color.WHITE, new cc.Color(32, 36, 52))
                }, t.prototype.SetLabelLocked = function() {
                    this.SetLabel(cc.Color.WHITE, new cc.Color(32, 36, 52))
                }, t.prototype.SetLabel = function(e, t) {
                    this.Label.node.color = e, this.Label.getComponent(cc.LabelOutline).color = t
                }, t.prototype.onDestroy = function() {
                    n._chosenLogoItem = null
                }, i([c(cc.Label)], t.prototype, "Label", void 0), i([c(cc.Sprite)], t.prototype, "MainSprite", void 0), i([c(cc.Node)], t.prototype, "Lock", void 0), i([c(cc.Sprite)], t.prototype, "Halo", void 0), n = i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    MallNewPanelVipLevelComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a0a82yaM+hJvorHM8ESu35I", "MallNewPanelVipLevelComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../ShareConsts/EnumType"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../../Components/Components"),
            c = e("../../Components/DataCenter"),
            u = e("./CustomProgressBar"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../../Consts/GameEventIds"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.VipLevel = null, t.DialogueRichText = null, t.CustomProgressBar = null, t.GoBtn = null, t.GoBtnLabel = null, t.ValueLabel = null, t._vipEXPId = 2, t._configs = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.GoBtn.node.on("click", this.OnGo, this), this.GoBtnLabel.string = "diamondShop_acquire".ToUILocale(), this._configs = l.ConfigCacheComponent.Instance.GetVipLevelConfigs()
                }, t.prototype.onEnable = function() {
                    d.Game.EventDispatcher.On(h.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemModelChange, this), d.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemModelChange, this)
                }, t.prototype.onDisable = function() {
                    d.Game.EventDispatcher.Off(h.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemModelChange, this), d.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemModelChange, this)
                }, t.prototype.OnUserItemModelChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == a.CommonItemId.VipPoint) return void this.Refresh()
                }, t.prototype.OnGo = function() {
                    d.UIManager.Instance.ShowUIPanel(s.PanelConfig.ItemGetWayPanel.Path, a.CommonItemId.VipPoint)
                }, t.prototype.Init = function() {
                    this.Refresh()
                }, t.prototype.Refresh = function() {
                    var e, t;
                    this._vipLevel = c.DataCenter.Instance.GetIntData(a.UserDataKey.VipLevel), this._vipLevel >= this._configs.length ? (this._vipLevel = this._configs.length, e = t = this._configs[this._vipLevel - 1].Point - this._configs[this._vipLevel - 2].Point) : this._vipLevel > 0 ? (e = c.DataCenter.Instance.GetItemCount(this._vipEXPId) - this._configs[this._vipLevel - 1].Point, t = this._configs[this._vipLevel].Point - this._configs[this._vipLevel - 1].Point) : (e = c.DataCenter.Instance.GetItemCount(this._vipEXPId), t = this._configs[this._vipLevel].Point);
                    var n = t - e;
                    this.DialogueRichText.string = (this._vipLevel == this._configs.length ? "diamondShop_maxVipLevel" : "diamondShop_moreItemToVipUp").ToUILocale().Fmt(n > 0 ? n : 0), this.GoBtn.node.active = !(this._vipLevel >= this._configs.length), this.ValueLabel.string = e + "/" + t, this._vipLevel, this.VipLevel.string = "<outline color = #202434 width = 3><color = #ffffff>" + "vip".ToUILocale() + "</color><color = #33ff8e>" + "allianceBase_level".ToUILocale().Fmt(this._vipLevel) + "</color></outline>", this.CustomProgressBar.progress = e / t
                }, i([g(cc.RichText)], t.prototype, "VipLevel", void 0), i([g(cc.RichText)], t.prototype, "DialogueRichText", void 0), i([g(u.default)], t.prototype, "CustomProgressBar", void 0), i([g(cc.Button)], t.prototype, "GoBtn", void 0), i([g(cc.Label)], t.prototype, "GoBtnLabel", void 0), i([g(cc.Label)], t.prototype, "ValueLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "./CustomProgressBar": "CustomProgressBar"
    }],
    MallNewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "19623ipd/JNL5d2/EOvgupu", "MallNewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.MallNewPanleColorType = void 0;
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../Consts/Consts"),
            g = e("../Components/MallNewPageBtnItem"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../Components/CurrencyBarItem"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../Components/MallNewCenterComponent"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.Red = 0] = "Red", e[e.Blue = 1] = "Blue"
        })(n.MallNewPanleColorType || (n.MallNewPanleColorType = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.WindowBgs = [], t.Bg = null, t.Table = null, t.Title = null, t.VipTitle = null, t.VipLevel = null, t.VipBtn = null, t.CurColorDiamond = null, t.CurDiamond = null, t.BottomBtnScro = null, t.BottomBtnContainer = null, t.View = null, t.Arrow = null, t.ReturnBtn = null, t.MallNewCenterNode = null, t._param0 = [], t._pageBtnItems = [], t.PageRedDotById = {}, t._colorBgByType = {}, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                l.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(y.GameEventIds.RemoveDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(u.GameModule_Model._n_), this.OnGameModuleChange, this), l.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(u.GameModule_Model._n_), this.OnGameModuleChange, this)
            }, t.prototype.onDisable = function() {
                l.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(y.GameEventIds.RemoveDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(u.GameModule_Model._n_), this.OnGameModuleChange, this), l.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(u.GameModule_Model._n_), this.OnGameModuleChange, this)
            }, t.prototype.OnUserItemChange = function(e) {
                for (var t in e) {
                    var n = parseInt(t);
                    n == y.CommonItemId.Diamond ? this.CurDiamond.Init(y.CommonItemId.Diamond, !0) : n == _.default.Instance.CurrencyItemID && this.CurColorDiamond.SetCurrencyItem()
                }
            }, t.prototype.OnGameModuleChange = function(e) {
                var t, n = this._sortPageIds[this._currencyPage];
                for (var o in e)
                    for (var r in t = e[o], this._mallPageDataById) t.Sid == this._mallPageDataById[r].PageConfig.ShowCondition && t.IsUnlocked ? (this._sortPageIds.push(this._mallPageDataById[r].PageConfig.Id), this._mallPageDataById[r].IsShow = !0) : t.Sid == this._mallPageDataById[r].PageConfig.GameModuleId && t.IsUnlocked && (this._mallPageDataById[r].IsUnLock = !0);
                this.SortPageId(), this.InitPage(), this.BindRedDot(), this._currencyPage = this._sortPageIds.indexOf(n), this._pageBtnItems[this._currencyPage].SetHalo(d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border3"))
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("MallPanel/PNG/mall", cc.SpriteAtlas), this.LoadDynamicAsset("MallPanel/Component/MallNewPageBtnItem", cc.Prefab), this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("MallPanel/Component/MallSubPageBtn", cc.Prefab), this.LoadDynamicAsset("MallPanel/Component/MallNewGiftComponent", cc.Prefab)]).then(function(e) {
                                    t._atlas = e[0], t._pageBtnPrefab = e[1], t._itemPrefab = e[2], t._subPagePrefab = e[3], t._giftPackPrefab = e[4]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                e.prototype.InitUI.call(this), this.Title.string = "mainUI_toggle_4".ToUILocale(), this.VipTitle.string = "vip".ToUILocale(), this.VipBtn.node.on("click", this.OnVip, this), this.ReturnBtn.node.on("click", this.OnReturn, this), this.CurColorDiamond.SetCurrencyItem(), this.CurColorDiamond.SetClickCallBack(function() {
                    var e = t._sortPageIds.indexOf(y.MallPageType.DiamondShop);
                    t.SetTab(e, y.GiftPackType.BuyCurrency)
                }), this.CurDiamond.Init(y.CommonItemId.Diamond, !1), this.CurDiamond.SetClickCallBack(function() {
                    var e = t._sortPageIds.indexOf(y.MallPageType.DiamondShop);
                    t.SetTab(e, y.GiftPackType.BuyDiamond)
                }), this._mallNewCenterItem = this.MallNewCenterNode.getComponent(C.default), this._mallNewCenterItem.SetPrefab(this._itemPrefab, this._giftPackPrefab, this._subPagePrefab, this._atlas), this.SetRedDotMap()
            }, t.prototype.SetRedDotMap = function() {
                this.PageRedDotById = {
                    1: m.RedDotManager.Instance.RedDot.MallDailyChooseNode,
                    2: m.RedDotManager.Instance.RedDot.MallSuperGiftPackNode,
                    3: m.RedDotManager.Instance.RedDot.PermanentPrivilegeHeroNode,
                    4: m.RedDotManager.Instance.RedDot.MallSRFundNode
                }
            }, t.prototype.InitData = function(t) {
                if (e.prototype.InitData.call(this, t), this._param0 = [], t)
                    if ("number" == typeof t[0])
                        for (var n = 0; n < t.length; n++) "number" == typeof t[0] && this._param0.push(t[n]);
                    else this._param0 = t[0];
                this._param0 && this._param0.length > 0 && (this._isJump = !0)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t ? (this._isJump && this.JumpPage(), this._mallNewCenterItem.Refresh()) : (this.SetPageData(), this.InitPage(), this.BindRedDot(), this.SetFirstOpenPage()), this.VipLevel.string = "" + p.DataCenter.Instance.GetIntData(y.UserDataKey.VipLevel)
            }, t.prototype.SetPageData = function() {
                this._mallPageDataById = {}, this._sortPageIds = [];
                for (var e = p.ConfigDataComponent.Instance.GetArrayConfig(c.MallPage_Config), t = 0; t < e.length; t++)
                    if (!e[t].GameModuleId || h.default.Instance.IsGameModuleOpen(e[t].GameModuleId)) {
                        var n = e[t].Id,
                            o = !1;
                        e[t].ShowCondition && !h.default.Instance.IsGameModuleUnlock(e[t].ShowCondition)[0] || (o = !0), o && this._sortPageIds.push(n);
                        var r = [!0, null];
                        e[t].GameModuleId && (r = h.default.Instance.IsGameModuleUnlock(e[t].GameModuleId));
                        var i = {
                            PageConfig: e[t],
                            IsShow: o,
                            IsUnLock: r[0],
                            UnLockHint: r[1]
                        };
                        this._mallPageDataById[n] = i
                    } this.SortPageId()
            }, t.prototype.InitPage = function() {
                for (var e = 0; e < this._sortPageIds.length; e++) {
                    var t = this._pageBtnItems[e],
                        n = this._sortPageIds[e],
                        o = this._mallPageDataById[n];
                    if (!t) {
                        var r = cc.instantiate(this._pageBtnPrefab);
                        r.setParent(this.BottomBtnContainer.node), r.on(cc.Node.EventType.TOUCH_END, this.OnModeLogoTouch, this), t = r.getComponent(g.default), this._pageBtnItems.push(t)
                    }
                    t.node.name = e.toString(), t.node.active = !0, t.SetName(o.PageConfig.PageName.ToUILocale()).SetState(o.IsUnLock).SetLogo(this._atlas.getSpriteFrame(o.PageConfig.Icon))
                }
                for (; e < this._pageBtnItems.length; e++) this._pageBtnItems[e].node.active = !1;
                var i = this._sortPageIds.length * this._pageBtnPrefab.data.width + this.BottomBtnContainer.spacingX * (this._sortPageIds.length - 1);
                i > 914 ? (this.View.enabled = !0, this.BottomBtnScro.enabled = !0, this.BottomBtnScro.scrollToLeft(), this.BottomBtnContainer.node.x = 0) : (this.View.enabled = !1, this.BottomBtnScro.enabled = !1, this.BottomBtnContainer.node.x = 879 - i), this.Arrow.active = i > 914
            }, t.prototype.SortPageId = function() {
                var e = this;
                this._sortPageIds.sort(function(t, n) {
                    var o = e._mallPageDataById[t],
                        r = e._mallPageDataById[n];
                    return o.PageConfig.SortId - r.PageConfig.SortId
                })
            }, t.prototype.BindRedDot = function() {
                for (var e = 0; e < this._sortPageIds.length; e++) {
                    var t = this._sortPageIds[e];
                    this._mallPageDataById[t].IsUnLock && this.PageRedDotById[t] && m.RedDotManager.Instance.Bind(this._pageBtnItems[e].node, this.PageRedDotById[t])
                }
                m.RedDotManager.Instance.Bind(this.VipBtn.node, m.RedDotManager.Instance.RedDot.MallVipNode, 20)
            }, t.prototype.SetFirstOpenPage = function() {
                if (!this.JumpPage()) {
                    for (var e = 0; e < this._sortPageIds.length; e++)
                        if (this._mallPageDataById[this._sortPageIds[e]].IsUnLock) return void this.SetTab(e);
                    this.SetTab(0)
                }
            }, t.prototype.JumpPage = function() {
                if (!this._isJump) return !1;
                if (this._isJump = !1, !this._param0 || this._param0.length <= 0) return !1;
                var e = this._param0[0];
                if (this._mallPageDataById[e]) {
                    if (this._mallPageDataById[e].IsShow) {
                        if (this._mallPageDataById[e].IsUnLock) {
                            var t = this._sortPageIds.indexOf(e);
                            return this.SetTab(t, this._param0[1]), !0
                        }
                        return this._mallPageDataById[e].UnLockHint && d.UIUtlity.ShowFloatingHint(this._mallPageDataById[e].UnLockHint), !1
                    }
                    return !1
                }
                return !1
            }, t.prototype.OnModeLogoTouch = function(e) {
                var t = Number.parseInt(e.currentTarget.name);
                if (this._currencyPage != t) {
                    var n = this._sortPageIds[t];
                    this._mallPageDataById[n].IsUnLock ? this.SetTab(t) : this._mallPageDataById[n].UnLockHint && d.UIUtlity.ShowFloatingHint(this._mallPageDataById[n].UnLockHint)
                }
            }, t.prototype.SetTab = function(e, t) {
                this._currencyPage = e;
                var n = this._sortPageIds[e];
                this._pageBtnItems[e].SetHalo(d.UIUtlity.COMMON_ATLAS5.getSpriteFrame("select_border3")), 4 == n && (m.RedDotManager.Instance.RedDot.MallSuperFundNode.callBackFunc(), m.RedDotManager.Instance.RedDot.MallRespectFundNode.callBackFunc()), this._mallNewCenterItem.Init(this, this._mallPageDataById[n].PageConfig.MallActivityIds, t)
            }, t.prototype.OnVip = function() {
                l.UIManager.Instance.ShowUIPanel(f.PanelConfig.FamePriviledgePanel.Path)
            }, t.prototype.OnReturn = function() {
                l.UIManager.Instance.BackUIPanel()
            }, t.prototype.ChangeBgColor = function(e) {
                if (e != this._curColorType) {
                    for (var t = 0; t < this.WindowBgs.length; t++) this.WindowBgs[t].spriteFrame = null;
                    this.Bg.spriteFrame = null, this.Table.spriteFrame = null, this.SetBgColor(e)
                }
            }, t.prototype.SetBgColor = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._curColorType = e, this._colorBgByType || (this._colorBgByType = {}), !this._colorBgByType[e] || this._colorBgByType[e].length < 3 ? (this._colorBgByType[e] = [], [4, Promise.all([this.LoadDynamicAsset("MallPanel/PNG/Bg/window" + e, cc.SpriteFrame), this.LoadDynamicAsset("MallPanel/PNG/Bg/bg" + e, cc.SpriteFrame), this.LoadDynamicAsset("MallPanel/PNG/Bg/table" + e, cc.SpriteFrame)]).then(function(t) {
                                    if (!n.isValid)
                                        for (var o = 0; o < t.length; o++) return void l.AssetsManager.Instance.UnloadAsset(t[o]);
                                    for (o = 0; o < t.length; o++) n._colorBgByType[e].push(t[o])
                                })]) : [3, 2];
                            case 1:
                                o.sent(), o.label = 2;
                            case 2:
                                for (t = 0; t < this.WindowBgs.length; t++) this.WindowBgs[t].spriteFrame = this._colorBgByType[e][0];
                                return this.Bg.spriteFrame = this._colorBgByType[e][1], this.Table.spriteFrame = this._colorBgByType[e][2], [2]
                        }
                    })
                })
            }, i([S(cc.Sprite)], t.prototype, "WindowBgs", void 0), i([S(cc.Sprite)], t.prototype, "Bg", void 0), i([S(cc.Sprite)], t.prototype, "Table", void 0), i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Label)], t.prototype, "VipTitle", void 0), i([S(cc.Label)], t.prototype, "VipLevel", void 0), i([S(cc.Button)], t.prototype, "VipBtn", void 0), i([S(I.default)], t.prototype, "CurColorDiamond", void 0), i([S(I.default)], t.prototype, "CurDiamond", void 0), i([S(cc.ScrollView)], t.prototype, "BottomBtnScro", void 0), i([S(cc.Layout)], t.prototype, "BottomBtnContainer", void 0), i([S(cc.Mask)], t.prototype, "View", void 0), i([S(cc.Node)], t.prototype, "Arrow", void 0), i([S(cc.Button)], t.prototype, "ReturnBtn", void 0), i([S(cc.Node)], t.prototype, "MallNewCenterNode", void 0), i([b], t)
        }(l.BaseUIFullScreenFrame);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/MallNewCenterComponent": "MallNewCenterComponent",
        "../Components/MallNewPageBtnItem": "MallNewPageBtnItem"
    }],
    MallNewPermanentPrivilegeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a8891Y1e0FKH6kgNLWyoicY", "MallNewPermanentPrivilegeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../../Channel/ChannelManager"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../../Util/TimeUtil"),
            m = e("../../../Consts/Consts"),
            I = e("./ItemComponent"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("./_MultilangSprite"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Hero = null, t.Bgs = [], t.IsBuyLabel = null, t.Title = null, t.TotalTitle = null, t.TotalScrollview = null, t.TotalContainer = null, t.DailyTitle = null, t.DailyScrollview = null, t.DailyContainer = null, t.VipNode = null, t.VipLeft = null, t.VipVlaue = null, t.DisCountValueNode = null, t.DisCountTitle = null, t.DisCountValue = null, t.GetBtnLabel = null, t.GetBtn = null, t.RedDot = null, t.GrayGetBtn = null, t.GrayGetBtnLabel = null, t.MultilangSprite = null, t._rewardsComponentArr = [], t._dailyRewardsComponentArr = [], t._bgById = {}, t._assets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Title.string = "mallNewPrivilege_title".ToUILocale(), this.IsBuyLabel.string = "mall_permanentPrivilege".ToUILocale(), this.VipLeft.string = "task_get_score_tag".ToUILocale(), this.DailyTitle.string = "PermanentPrivilege_Tittle_Rewards".ToUILocale(), this.GrayGetBtnLabel.string = "GiftCode_receive".ToUILocale(), this.DisCountTitle.string = "mall_giftPack_superValue".ToUILocale(), this.GetBtn.node.on("click", this.OnGet, this), this.GrayGetBtn.node.on("click", this.OnGray, this)
                }, t.prototype.OnGet = function() {
                    if (this._isBuy) {
                        var e = new p.Req_Mall_PermanentRewards;
                        e.GiftPackType = this._mallConfig.Id, e.Indexs = [0], h.RpcComponent.Instance.Call(e, function(e) {
                            u.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else f.default.Instance.Pay(this._giftPack.Id)
                }, t.prototype.OnGray = function() {
                    u.UIUtlity.ShowFloatingHint("continuousCharge_dailyGift_received".ToUILocale())
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent != this.TotalContainer && t.parent != this.DailyContainer || u.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.Init = function(e, t) {
                    this._itemPrefab = t, this._mallModel = h.DataCenter.Instance.GetDataById(p.MallActivity_Model, e), this.SetConfig(e), this.ChangeBg(), this._giftModel = h.DataCenter.Instance.GetDataById(p.GiftPack_Model, this._giftPack.Id), this.TotalTitle.string = "mallPrivilege_totalGetChange".ToUILocale().Fmt(this.GetTotalDays()), this.SetDailyConfig(e), this.SetTotalReward(), this.SetDailyReward(), this.SetBtnState()
                }, t.prototype.SetConfig = function(e) {
                    this._mallConfig && this._mallConfig.Id == e || (this._mallConfig = h.ConfigDataComponent.Instance.GetConfigById(d.MallActivity_Config, e), this._giftPack = h.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, this._mallConfig.Gifts[0].Items[0]))
                }, t.prototype.SetDailyConfig = function(e) {
                    if (e == m.GiftPackType.PermanentPrivilege) {
                        var t = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, m.LevelParamType.PermanentPrivilegeDailyRewards);
                        this._dailyRewards = h.ConfigDataComponent.Instance.GetConfigById(d.ItemRewards_Config, t.Data[0])
                    } else e == m.GiftPackType.NewPersonPrivilege && (t = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, m.LevelParamType.NewPersonalPrivilegeDailyRewards), this._dailyRewards = h.ConfigDataComponent.Instance.GetConfigById(d.ItemRewards_Config, t.Data[0]))
                }, t.prototype.GetTotalDays = function() {
                    var e, t, n = h.DataCenter.Instance.GetIntData(y.UserDataKey.CreateTime);
                    return !this._mallModel || !this._mallModel.IntArray || this._mallModel.IntArray.length <= 0 || !this._mallModel.IntArray[0] ? (e = h.RpcComponent.Instance.ServerTime, t = g.TimeUtil.GetDiffDays(n, e, !0)) : (e = this._mallModel.IntArray[0], t = g.TimeUtil.GetDiffDays(n, e, !0) + 1), t
                }, t.prototype.SetTotalReward = function() {
                    for (var e = this.GetTotalDays(), t = {}, n = 0, o = 0; o < this._giftPack.Items.length; o++) t[this._giftPack.Items[o].Items[0]] || (t[this._giftPack.Items[o].Items[0]] = 0, n++), t[this._giftPack.Items[o].Items[0]] += this._giftPack.Items[o].Items[1];
                    var r = this._dailyRewards.Rewards;
                    for (o = 0; o < r.length; o++) t[r[o].Items[0]] || (t[r[o].Items[0]] = 0, n++), t[r[o].Items[0]] += r[o].Items[1] * e;
                    n >= 5 ? (this.TotalScrollview.enabled = !0, this.TotalContainer.anchorX = 0, this.TotalContainer.x = 0) : (this.TotalScrollview.enabled = !1, this.TotalContainer.anchorX = .5, this.TotalContainer.x = this.TotalScrollview.node.width / 2);
                    var i = 0;
                    for (var a in t) {
                        var s = t[a],
                            l = parseInt(a),
                            c = this._rewardsComponentArr[i++];
                        if (!c) {
                            var u = cc.instantiate(this._itemPrefab);
                            u.setParent(this.TotalContainer), u.name = l.toString(), c = u.getComponent(I.ItemComponent), this._rewardsComponentArr.push(c)
                        }
                        c.node.active = !0, c.Init({
                            ItemId: l,
                            Count: s
                        })
                    }
                    for (; i < this._rewardsComponentArr.length; i++) this._rewardsComponentArr[i].node.active = !1
                }, t.prototype.SetDailyReward = function() {
                    var e, t = {};
                    if (this._giftModel && this._mallModel && this._giftModel.Count) {
                        var n = this._mallModel.IntArray[0];
                        e = g.TimeUtil.GetDiffDays(n, h.RpcComponent.Instance.ServerTime, !0)
                    } else e = 1;
                    e = Math.max(1, e);
                    for (var o = this._dailyRewards.Rewards, r = 0, i = 0; i < o.length; i++) t[o[i].Items[0]] || (t[o[i].Items[0]] = 0, r++), t[o[i].Items[0]] += o[i].Items[1] * e;
                    r >= 5 ? (this.DailyScrollview.enabled = !0, this.DailyContainer.anchorX = 0, this.DailyContainer.x = 0) : (this.DailyScrollview.enabled = !1, this.DailyContainer.anchorX = .5, this.DailyContainer.x = this.DailyScrollview.node.width / 2);
                    var a = 0;
                    for (var s in t) {
                        var l = t[s],
                            c = parseInt(s),
                            u = this._dailyRewardsComponentArr[a++];
                        if (!u) {
                            var p = cc.instantiate(this._itemPrefab);
                            p.setParent(this.DailyContainer), p.name = c.toString(), u = p.getComponent(I.ItemComponent), this._dailyRewardsComponentArr.push(u)
                        }
                        u.node.active = !0, u.Init({
                            ItemId: c,
                            Count: l
                        })
                    }
                    for (; a < this._dailyRewardsComponentArr.length; a++) this._dailyRewardsComponentArr[a].node.active = !1
                }, t.prototype.SetBtnState = function() {
                    this.GetBtn.node.active = !1, this.GrayGetBtn.node.active = !1, this.VipNode.active = !1, this.DisCountValueNode.active = !1, this._isBuy = !1, this.RedDot.active = !1, this._giftModel && this._mallModel ? this._giftModel.Count ? this._giftModel.Count > 0 && this.GetRewardDays() > 0 ? (this._isBuy = !0, this.GetBtn.node.active = !0, this.RedDot.active = !0, this.GetBtnLabel.string = "GiftCode_receive".ToUILocale(), this.SetReceivedTag(this._rewardsComponentArr, !0)) : (this._isBuy = !0, this.GrayGetBtn.node.active = !0, this.SetReceivedTag(this._rewardsComponentArr, !0), this.SetReceivedTag(this._dailyRewardsComponentArr, !0)) : (this.VipNode.active = !0, this.GetBtn.node.active = !0, this.GetBtnLabel.string = _.default.Instance.GetFormatPrice(this._giftPack.Money), this.VipVlaue.string = "x" + this._giftPack.VipPoint, this._giftPack.Discount && (this.DisCountValueNode.active = !0, this.DisCountValue.string = this._giftPack.Discount.toString() + "%")) : (this.VipNode.active = !0, this.VipVlaue.string = "x" + this._giftPack.VipPoint, this.GetBtn.node.active = !0, this.GetBtnLabel.string = _.default.Instance.GetFormatPrice(this._giftPack.Money), this._giftPack.Discount && (this.DisCountValueNode.active = !0, this.DisCountValue.string = this._giftPack.Discount.toString() + "%"))
                }, t.prototype.SetReceivedTag = function(e, t) {
                    e.forEach(function(e) {
                        e.SetReceivedTagState(t)
                    })
                }, t.prototype.GetRewardDays = function() {
                    var e, t = this._mallModel.IntArray[0];
                    return e = this._mallModel && this._mallModel.IntArray && this._mallModel.IntArray[0] ? 1 == t ? m.SpecialDataKey.PermanentPrivilegeTime + m.Etc.DayDuration : t : h.DataCenter.Instance.GetIntData(y.UserDataKey.CreateTime), g.TimeUtil.GetDiffDays(e, h.RpcComponent.Instance.ServerTime, !0)
                }, t.prototype.ChangeBg = function() {
                    if (!this._curBgType || this._curBgType != this._mallConfig.Id) {
                        this._curBgType = this._mallConfig.Id, this.Hero.spriteFrame = null;
                        for (var e = 0; e < this.Bgs.length; e++) this.Bgs[e].spriteFrame = null;
                        this.SetBg()
                    }
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._bgById || (this._bgById = {}), !this._bgById[this._mallConfig.Id] || this._bgById[this._mallConfig.Id].length < 2 ? (this._bgById[this._mallConfig.Id] = [], [4, Promise.all([l.AssetsManager.Instance.LoadAsset("MallPanel/PNG/Bg/permanentHero_" + this._mallConfig.Icon, cc.SpriteFrame), l.AssetsManager.Instance.LoadAsset("MallPanel/PNG/Bg/permanentBg_" + this._mallConfig.Icon, cc.SpriteFrame)]).then(function(e) {
                                        if (!t.isValid)
                                            for (var n = 0; n < e.length; n++) return void l.AssetsManager.Instance.UnloadAsset(e[n]);
                                        for (n = 0; n < e.length; n++) t._bgById[t._mallConfig.Id].push(e[n]), t._assets.push(e[n])
                                    })]) : [3, 2];
                                case 1:
                                    n.sent(), n.label = 2;
                                case 2:
                                    for (this.Hero.spriteFrame = this._bgById[this._mallConfig.Id][0], e = 0; e < this.Bgs.length; e++) this.Bgs[e].spriteFrame = this._bgById[this._mallConfig.Id][1];
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.Sleep = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, new Promise(function(t) {
                                        e.scheduleOnce(function() {
                                            t(null)
                                        }, 3)
                                    })];
                                case 1:
                                    return [2, t.sent()]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._assets[e]);
                    this._assets = []
                }, i([S(cc.Sprite)], t.prototype, "Hero", void 0), i([S(cc.Sprite)], t.prototype, "Bgs", void 0), i([S(cc.Label)], t.prototype, "IsBuyLabel", void 0), i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Label)], t.prototype, "TotalTitle", void 0), i([S(cc.ScrollView)], t.prototype, "TotalScrollview", void 0), i([S(cc.Node)], t.prototype, "TotalContainer", void 0), i([S(cc.Label)], t.prototype, "DailyTitle", void 0), i([S(cc.ScrollView)], t.prototype, "DailyScrollview", void 0), i([S(cc.Node)], t.prototype, "DailyContainer", void 0), i([S(cc.Node)], t.prototype, "VipNode", void 0), i([S(cc.Label)], t.prototype, "VipLeft", void 0), i([S(cc.Label)], t.prototype, "VipVlaue", void 0), i([S(cc.Node)], t.prototype, "DisCountValueNode", void 0), i([S(cc.Label)], t.prototype, "DisCountTitle", void 0), i([S(cc.Label)], t.prototype, "DisCountValue", void 0), i([S(cc.Label)], t.prototype, "GetBtnLabel", void 0), i([S(cc.Button)], t.prototype, "GetBtn", void 0), i([S(cc.Node)], t.prototype, "RedDot", void 0), i([S(cc.Button)], t.prototype, "GrayGetBtn", void 0), i([S(cc.Label)], t.prototype, "GrayGetBtnLabel", void 0), i([S(C.default)], t.prototype, "MultilangSprite", void 0), i([b], t)
            }(cc.Component);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent",
        "./_MultilangSprite": "_MultilangSprite"
    }],
    MallNewSuperFundComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0ba51SGJ2FJ+JBJBNw5nGIE", "MallNewSuperFundComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/DataCenter"),
            y = e("../Panel/NodePool"),
            g = e("../../Components/Components"),
            m = e("./AsyncLayout"),
            I = e("./MallNewGoodFundRewardItem"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("./ItemComponent"),
            v = e("../Auxiliary/UIUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AsyncLayout = null, t.RewardNode = null, t._configs = [], t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.AsyncLayout.Init(this.RewardNode, this.OnInitializeItem.bind(this))
                }, t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.AsyncLayout.node.children.indexOf(t.parent.parent)) {
                        var n = t.getComponent(C.ItemComponent).ItemId;
                        n > 0 && v.UIUtlity.ShowItemTip(n, t)
                    }
                }, t.prototype.OnInitializeItem = function(e, t) {
                    var n = t > this._gotIndex && t <= this._canGetIndex ? "climbTower_canGet".ToUILocale() : "firstCharge_dayth".ToUILocale().Fmt(t + 1),
                        o = this._currencyConfig.DailyRewards,
                        r = g.ConfigDataComponent.Instance.GetConfigById(l.ItemRewards_Config, o[t]).Rewards,
                        i = 0;
                    this._model.Int2DArray[0] && this._model.Int2DArray[0].Items && (i = this._model.Int2DArray[0].Items[t]), e.getComponent(I.default).SetTitle(n).SetItem(this._itemPool, r, i, t, 0).SetChosen(t <= this._canGetIndex).SetCheck(t <= this._gotIndex).SetFlag(t > this._gotIndex && t <= this._canGetIndex).index = t
                }, Object.defineProperty(t.prototype, "IsBuyState", {
                    get: function() {
                        return !this._currencyGift || 0 == d.default.Instance.GetGiftBuyCount(this._currencyGift.Id)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "CanGet", {
                    get: function() {
                        return this._canGetIndex > this._gotIndex
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "IsAllSelect", {
                    get: function() {
                        for (var e = !0, t = this._currencyConfig.DailyRewards, n = 0; n < t.length && !(n > this._canGetIndex); n++) {
                            var o = !0;
                            if (g.ConfigDataComponent.Instance.GetConfigById(l.ItemRewards_Config, t[n]).Rewards.length > 1 && (o = !(!this._model.Int2DArray[0] || !this._model.Int2DArray[0].Items) && this._model.Int2DArray[0].Items[n] > 0), !o) {
                                e = !1;
                                break
                            }
                        }
                        return e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e, t) {
                    this._itemPrefab = t, this._itemPool || (this._itemPool = new y.default(this._itemPrefab)), this._mallType = e, this._model = f.DataCenter.Instance.GetDataById(c.MallActivity_Model, e), this._model || (this._model = d.default.Instance.GetNewMallActivityModel(e)), this._giftId = this._model.PackIds[0], this._currencyGift = this.GetGiftConfig(), this._canGetIndex = Math.floor((g.RpcComponent.Instance.ServerTime - this._model.RefreshTime) / u.Etc.DayDuration), this._gotIndex = this._model.IntArray[0] - 1, this.SetConfigs(), this.SetConfig(), this.AsyncLayout.RenderLayout(this._currencyConfig.DailyRewards.length)
                }, t.prototype.SetConfigs = function() {
                    this._configs.length <= 0 && (this._configs = g.ConfigDataComponent.Instance.GetArrayConfig(l.GoodFund_Config))
                }, t.prototype.SetConfig = function() {
                    for (var e = this._model.Phase, t = 0; t < this._configs.length; t++)
                        if (this._configs[t].Phase == e && this._configs[t].Type == this._mallType) {
                            this._currencyConfig = this._configs[t];
                            break
                        }
                }, t.prototype.GetGiftConfig = function() {
                    return this._giftConfigById || (this._giftConfigById = {}), this._giftConfigById[this._giftId] ? this._giftConfigById[this._giftId] : (this._giftConfigById[this._giftId] = g.ConfigDataComponent.Instance.GetConfigById(l.GiftPack_Config, this._giftId), this._giftConfigById[this._giftId])
                }, t.prototype.SetView = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._loadAssets.push(e), this._itemPool = new y.default(this._itemPrefab), t.label = 2;
                                case 2:
                                    return this.AsyncLayout.RenderLayout(this._currencyConfig.DailyRewards.length), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadAssets.length; e++) p.AssetsManager.Instance.UnloadAsset(this._loadAssets[e]);
                    this._loadAssets = [], this._itemPool && this._itemPool.Clear()
                }, i([w(m.default)], t.prototype, "AsyncLayout", void 0), i([w(cc.Node)], t.prototype, "RewardNode", void 0), i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/NodePool": "NodePool",
        "./AsyncLayout": "AsyncLayout",
        "./ItemComponent": "ItemComponent",
        "./MallNewGoodFundRewardItem": "MallNewGoodFundRewardItem"
    }],
    MallPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d588f+USShCpKLgp6OnzzsM", "MallPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../RedDot/RedDotManager"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../Consts/Consts"),
            m = e("../../RedDot/RedDotDataHandler"),
            I = e("../../Components/Components"),
            _ = e("../../Auxiliary/GameRecord"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../../../Consts/Consts"),
            b = e("../../Auxiliary/ModuleGuideManager"),
            S = e("./CommonRenewPanel"),
            w = e("../Components/CurrencyBarItem"),
            P = e("./DiamondShopPanel"),
            A = e("../../Channel/ChannelManager"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.VipTitle = null, t.VipLevel = null, t.VipBtn = null, t.CurColorDiamond = null, t.CurDiamond = null, t.ChosenGiftButtonLabel = null, t.ChosenGiftButton = null, t.ChosenGiftLock = null, t.ChosenGiftAni = null, t.ContinuousPayButtonLabel = null, t.ContinuousPayButton = null, t.ContinuousPayLock = null, t.ContinuousPaytAni = null, t.GrowthMustHave = null, t.SuperMonthPassButton = null, t.SuperMonthPassSprite = null, t.SuperMonthPassLock = null, t.ColorDiamondButton = null, t.ColorDiamondSprite = null, t.ColorDiamondLock = null, t.DailyChooseButton = null, t.DailyChooseSprite = null, t.DailyChooseLock = null, t.LuckyStarButton = null, t.LuckyStarSprite = null, t.LuckyStarLock = null, t.ReturnButton = null, t.PrivilegeNode = null, t.PrivilegeRedNode = null, t.PrivilegeLock = null, t.HeroGiftNode = null, t.GrowGiftNode = null, t.LegendGiftNode = null, t.ActiveCommandNode = null, t.SuperFundNode = null, t.GrowFundNode = null, t.Interlayers = [], t.ModeEnters = [], t.ModeMasks = [], t.CounterThreeGlowAni = [], t._giftY = 21, t._posX = [0, -344, 0, 336], t._interlayer2Y = -227, t._showConditions = [g.GameModuleType.DailySelectionShow, g.GameModuleType.SubscribePrivilegeShow, g.GameModuleType.ActiveWarTokenShow, g.GameModuleType.GoodFundShow, g.GameModuleType.GrowUpFundShow, g.GameModuleType.HeroGiftShow, g.GameModuleType.GrowUpGiftShow, g.GameModuleType.LegendGiftShow, g.GameModuleType.MonthCardShow, g.GameModuleType.LuckyStarShow, null, null], t._unlockConditions = [g.GameModuleType.DailySelection, g.GameModuleType.SubscribePrivilege, g.GameModuleType.ActiveWarToken, g.GameModuleType.GoodFund, g.GameModuleType.GrowUpFund, g.GameModuleType.HeroGift, g.GameModuleType.GrowUpGift, g.GameModuleType.LegendGift, g.GameModuleType.MonthCard, g.GameModuleType.LuckyStar, null, null], t._paths = [y.PanelConfig.MallDailyChoosePanel.Path, y.PanelConfig.MallPrivilegeGiftPanel.Path, y.PanelConfig.WarTokenListPanel.Path, y.PanelConfig.MallSuperFundPanel.Path, y.PanelConfig.MallGrowFundPanel.Path, y.PanelConfig.MallElderGiftPackPanel.Path, y.PanelConfig.MallElderGiftPackPanel.Path, y.PanelConfig.MallElderGiftPackPanel.Path, y.PanelConfig.MallMonthCardPanel.Path, y.PanelConfig.MallLuckyStarPanel.Path, null, y.PanelConfig.DiamondShopPanel.Path], t._params = [null, null, null, null, null, g.GiftPackType.HeroGift, g.GiftPackType.GrowUpGift, g.GiftPackType.LegendGift, null, null, null, null, P.DiamondShopTabType.Diamond], t._privilegeTimeKey = [2071, 2072, 2073], t._configIds = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.GameEventIds.AddDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(g.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(g.GameEventIds.RemoveDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.GameEventIds.AddDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(g.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(g.GameEventIds.RemoveDataDetail.Fmt(u.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.OnUserItemChange = function(e) {
                    for (var t in e) {
                        var n = parseInt(t);
                        n == g.CommonItemId.Diamond ? this.CurDiamond.Init(g.CommonItemId.Diamond, !0) : n == A.default.Instance.CurrencyItemID && this.CurColorDiamond.SetCurrencyItem()
                    }
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("MallPanel/PNG/mall", cc.SpriteAtlas)];
                                case 1:
                                    return t._atlas = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this);
                    for (var t = 0; t < this.ModeEnters.length; t++) null != this.ModeEnters[t] && (this.ModeEnters[t].active = !1);
                    var n = I.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, g.LevelParamType.MallEnterConfigIds);
                    this._configIds = n.Data;
                    var o = I.ConfigDataComponent.Instance.GetArrayConfig(c.MallActivity_Config),
                        r = -1;
                    for (t = 0; t < o.length && o[t].Id < 100; t++) {
                        var i = o[t].Id,
                            a = n.Data.indexOf(i);
                        if (null != this.ModeEnters[a] && (this.ModeEnters[a].active = !0, !(null == o[t].Position[0] || o[t].Position[0].Items[0] < 2))) {
                            var s = o[t].Position[0].Items[0];
                            s > r && (r = s), this.Interlayers[s].active = !0, this.ModeEnters[a].setParent(this.Interlayers[s]), this.ModeEnters[a].x = this._posX[o[t].Position[1].Items[0]]
                        }
                    }
                    for (t = r + 1; t < this.Interlayers.length; t++) null != this.Interlayers[t] && (this.Interlayers[t].active = !1);
                    this.ChosenGiftButtonLabel.string = "mall_chosenGift".ToUILocale(), this.ContinuousPayButtonLabel.string = "mall_continuePay".ToUILocale(), this.Title.string = "mainUI_toggle_4".ToUILocale(), this.GrowthMustHave.string = "mall_growMustHave".ToUILocale(), this.VipTitle.string = "vip".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ChosenGiftButton.node.on("click", this.OnChosenGiftButtonClick, this), this.ContinuousPayButton.node.on("click", this.OnClickContinuePay, this), this.SuperMonthPassButton.node.on("click", this.OnMonthCardButtonClick, this), this.ColorDiamondButton.node.on("click", this.OnColorDiamond, this), this.DailyChooseButton.node.on("click", this.OnDailyChooseButtonClick, this), this.LuckyStarButton.node.on("click", this.OnLuckyStarButtonClick, this), this.PrivilegeNode.on(cc.Node.EventType.TOUCH_END, this.OnPrivilegeTouch, this), this.HeroGiftNode.on(cc.Node.EventType.TOUCH_END, this.OnHeroGiftTouch, this), this.GrowGiftNode.on(cc.Node.EventType.TOUCH_END, this.OnGrowGiftTouch, this), this.LegendGiftNode.on(cc.Node.EventType.TOUCH_END, this.OnLegendGiftTouch, this), this.ActiveCommandNode.on(cc.Node.EventType.TOUCH_END, this.OnActivityCommandButtonClick, this), this.SuperFundNode.on(cc.Node.EventType.TOUCH_END, this.OnSuperFundButtonClick, this), this.GrowFundNode.on(cc.Node.EventType.TOUCH_END, this.OnGrowFundButtonClick, this), this.VipBtn.node.on("click", this.OnVip, this), this._privilegeConfigs = I.ConfigCacheComponent.Instance.GetSubscriPriviConfigs()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._param0 = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), this._isRedisplay = t, t || (C.AudioManager.Instance.StopMusic(), C.AudioManager.Instance.PlayMusic(1005), this.CurColorDiamond.SetCurrencyItem(), this.CurColorDiamond.SetFixedWidth(190), this.CurDiamond.Init(g.CommonItemId.Diamond, !1), this.CurDiamond.SetFixedWidth(190)), this.VipLevel.string = "" + p.DataCenter.Instance.GetIntData(g.UserDataKey.VipLevel), this._param0 && (l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallGiftPackPanel.Path, this._param0), this._param0 = null);
                    var n, o = p.DataCenter.Instance.ActivityConfigs;
                    for (var r in o)
                        if (o[r].Common.Type == g.ActivityType.ContinuousPay) {
                            n = !0;
                            break
                        } this.ChosenGiftButton.node.active = h.default.Instance.IsGameModuleOpen(g.GameModuleType.ChosenGiftPackShow) && h.default.Instance.IsGameModuleUnlock(g.GameModuleType.ChosenGiftPackShow)[0], this.ChosenGiftLock.active = !h.default.Instance.IsGameModuleUnlock(g.GameModuleType.ChosenGiftPack)[0], this.ContinuousPayButton.node.active = h.default.Instance.IsGameModuleUnlock(g.GameModuleType.ContinuousChargeShow)[0] && n, this.ContinuousPayLock.active = !h.default.Instance.IsGameModuleUnlock(g.GameModuleType.ContinuousCharge)[0];
                    for (var i = 0; i < this.ModeEnters.length; i++) this.ModeEnters[i] && this.ModeEnters[i].active && (this.ModeEnters[i].active = null == this._showConditions[i] || h.default.Instance.IsGameModuleUnlock(this._showConditions[i])[0], this.ModeMasks[i].active = null != this._unlockConditions[i] && !h.default.Instance.IsGameModuleUnlock(this._unlockConditions[i])[0], i == this._configIds.indexOf(g.GiftPackType.SubscribePrivilege) && (this.GrowthMustHave.node.parent.active = this.ModeEnters[i].active && !this.ModeMasks[i].active));
                    for (i = 0; i < this.Interlayers.length; i++)
                        if (null != this.Interlayers[i])
                            if (null == this.Interlayers[i].children || 1 == this.Interlayers[i].children.length) this.Interlayers[i].active = !1;
                            else {
                                for (var a = !1, s = 1; s < this.Interlayers[i].children.length; s++)
                                    if (this.Interlayers[i].children[s].active) {
                                        a = !0;
                                        break
                                    } this.Interlayers[i].active = a
                            } this.SuperMonthPassSprite.spriteFrame = this._atlas.getSpriteFrame("monthCard_0"), this.CounterThreeGlowAni[1].active = !1, this.ColorDiamondSprite.spriteFrame = this._atlas.getSpriteFrame("diamond_0"), this.CounterThreeGlowAni[2].active = !1, m.RedDotDataHandler.Instance.RefreshDailyChoose() ? (this.DailyChooseSprite.spriteFrame = this._atlas.getSpriteFrame("dailyChoose_1"), this.CounterThreeGlowAni[3].active = !0) : (this.DailyChooseSprite.spriteFrame = this._atlas.getSpriteFrame("dailyChoose_0"), this.CounterThreeGlowAni[3].active = !1), m.RedDotDataHandler.Instance.RefreshLuckyStarState() ? (this.LuckyStarSprite.spriteFrame = this._atlas.getSpriteFrame("luckyStar_1"), this.CounterThreeGlowAni[4].active = !0) : (this.LuckyStarSprite.spriteFrame = this._atlas.getSpriteFrame("luckyStar_0"), this.CounterThreeGlowAni[4].active = !1), this._configIds.indexOf, m.RedDotDataHandler.Instance.RefreshPermanentPrivilegeState() ? this.PrivilegeRedNode.active = !0 : this.PrivilegeRedNode.active = !1, f.RedDotManager.Instance.Bind(this.ChosenGiftButton.node, f.RedDotManager.Instance.RedDot.MallSkyChooseGiftNode), this.ChosenGiftAni.active = f.RedDotManager.Instance.RedDot.MallSkyChooseGiftNode.callBackFunc(), f.RedDotManager.Instance.Bind(this.ContinuousPayButton.node, f.RedDotManager.Instance.RedDot.ContinuousChargeNode), this.ChosenGiftAni.active = f.RedDotManager.Instance.RedDot.ContinuousChargeNode.callBackFunc(), f.RedDotManager.Instance.Bind(this.ActiveCommandNode, f.RedDotManager.Instance.RedDot.MallActiveCommandNode), f.RedDotManager.Instance.Bind(this.SuperFundNode, f.RedDotManager.Instance.RedDot.MallSRFundNode), f.RedDotManager.Instance.Bind(this.HeroGiftNode, f.RedDotManager.Instance.RedDot.MallHeroGiftNode), f.RedDotManager.Instance.Bind(this.GrowGiftNode, f.RedDotManager.Instance.RedDot.MallGrowUpGiftNode), f.RedDotManager.Instance.RedDot.MallLegendGiftNode.NeedRefresh = !0, f.RedDotManager.Instance.Bind(this.LegendGiftNode, f.RedDotManager.Instance.RedDot.MallLegendGiftNode), f.RedDotManager.Instance.Bind(this.VipBtn.node, f.RedDotManager.Instance.RedDot.MallVipNode, 20), h.default.Instance.IsGameModuleUnlock(g.GameModuleType.GoodFund)[0] && (f.RedDotManager.Instance.RedDot.MallSRFundNode.NeedRefresh = !0, f.RedDotManager.Instance.RefreshRedDotNode(f.RedDotManager.Instance.RedDot.MallRespectFundNode), f.RedDotManager.Instance.RefreshRedDotNode(f.RedDotManager.Instance.RedDot.MallSuperFundNode)), f.RedDotManager.Instance.Bind(this.GrowFundNode, f.RedDotManager.Instance.RedDot.MallGrowthFundNode), this.unscheduleAllCallbacks(), this._activeWarTokenModel = p.DataCenter.Instance.GetDataById(u.WarToken_Model, g.WarTokenType.Active), this.ShowGuide()
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnDailyChooseButtonClick = function() {
                    this.ExecuteFunction(g.GiftPackType.DailySelection)
                }, t.prototype.OnLuckyStarButtonClick = function() {
                    this.ExecuteFunction(g.GiftPackType.LuckyStar)
                }, t.prototype.OnPrivilegeTouch = function() {
                    this.ExecuteFunction(g.GiftPackType.SubscribePrivilege)
                }, t.prototype.OnHeroGiftTouch = function() {
                    this.ExecuteFunction(g.GiftPackType.HeroGift)
                }, t.prototype.OnGrowGiftTouch = function() {
                    this.ExecuteFunction(g.GiftPackType.GrowUpGift)
                }, t.prototype.OnLegendGiftTouch = function() {
                    this.ExecuteFunction(g.GiftPackType.LegendGift)
                }, t.prototype.OnFavorGiftTouch = function() {
                    this.ExecuteFunction(g.GiftPackType.FavorGift)
                }, t.prototype.OnActivityCommandButtonClick = function() {
                    this.ExecuteFunction(g.GiftPackType.WarTokenActive)
                }, t.prototype.OnSuperFundButtonClick = function() {
                    this.ExecuteFunction(g.GiftPackType.GoodFund)
                }, t.prototype.OnGrowFundButtonClick = function() {
                    this.ExecuteFunction(g.GiftPackType.GrowUpFund)
                }, t.prototype.OnMonthCardButtonClick = function() {
                    this.ExecuteFunction(g.GiftPackType.MonthCard)
                }, t.prototype.OnColorDiamond = function() {
                    this.ExecuteFunction(g.GiftPackType.ColorDiamond)
                }, t.prototype.ExecuteFunction = function(e) {
                    var t = this._configIds.indexOf(e);
                    this.ModeMasks[t].active ? d.UIUtlity.ShowFloatingHint(h.default.Instance.IsGameModuleUnlock(this._unlockConditions[t])[1]) : this._paths[t] == y.PanelConfig.WarTokenListPanel.Path ? l.UIManager.Instance.ShowUIPanel(this._paths[t], !1, v.WarTokenType.Active) : this._paths[t] && l.UIManager.Instance.ShowUIPanel(this._paths[t], this._params[t])
                }, t.prototype.OnChosenGiftButtonClick = function() {
                    this.ChosenGiftLock.active ? d.UIUtlity.ShowFloatingHint(h.default.Instance.IsGameModuleUnlock(g.GameModuleType.ChosenGiftPack)[1]) : (_.default.SetItem(_.GameRecordDefine.MallChosenGift, JSON.stringify(p.RpcComponent.Instance.ServerTime)), f.RedDotManager.Instance.RefreshRedDotNode(f.RedDotManager.Instance.RedDot.MallSkyChooseGiftNode), l.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallChosenGiftPackPanel.Path))
                }, t.prototype.OnClickContinuePay = function() {
                    this.ContinuousPayLock.active ? d.UIUtlity.ShowFloatingHint(h.default.Instance.IsGameModuleUnlock(g.GameModuleType.ContinuousCharge)[1]) : l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ActivityContinuousChargePanel.Path)
                }, t.prototype.GiftCountDown = function() {
                    for (var e, t = p.RpcComponent.Instance.ServerTime, n = [g.GiftPackType.HeroGift, g.GiftPackType.GrowUpGift, g.GiftPackType.LegendGift, g.GiftPackType.FavorGift], o = 0; o < n.length; o++) e = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, n[o]).RefreshTime, h.default.Instance.GetMallDeadTime(n[o], e) - t < 0 && (e = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, n[o]).RefreshTime, h.default.Instance.GetMallDeadTime(n[o], e))
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), l.AudioManager.Instance.StopMusic(), l.AudioManager.Instance.PlayMainSceneMusic()
                }, t.prototype.OnVip = function() {
                    C.UIManager.Instance.ShowUIPanel(y.PanelConfig.DiamondShopPanel.Path, P.DiamondShopTabType.VIP)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.ShowGuide = function() {
                    b.default.instance.GetNextGuideModule(), b.default.instance.AddFingerNode(this.PrivilegeNode)
                }, t.prototype.CheckRenewTip = function() {
                    var e = _.default.GetItem(_.GameRecordDefine.RenewPanelTip),
                        t = e ? JSON.parse(e) : {};
                    if (!h.default.Instance.IsSameDay(t[S.RenewPanelType.Mall], p.RpcComponent.Instance.ServerTime)) {
                        for (var n = [], o = g.SubscribePrivilegeType.Summon; o <= g.SubscribePrivilegeType.VipMoney; o++) {
                            var r = p.DataCenter.Instance.GetDataById(u.SubscribePrivilege_Model, o);
                            if (r && r.CanDay > 0) {
                                var i = r.Time + r.CanDay * g.Etc.DayDuration;
                                if (p.RpcComponent.Instance.ServerTime < i && p.RpcComponent.Instance.ServerTime > i - 3 * g.Etc.DayDuration) {
                                    n.push([S.RenewMallType.Privilege]);
                                    break
                                }
                            }
                        }
                        var a = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, g.GiftPackType.MonthCard);
                        if (null != a && null != a.Int2DArray)
                            for (o = 0; o < a.Int2DArray.length; o++) {
                                var s = a.Int2DArray[o].Items;
                                if (s[0] > 0 && (i = s[0] + s[1] * g.Etc.DayDuration, p.RpcComponent.Instance.ServerTime < i && p.RpcComponent.Instance.ServerTime > i - 3 * g.Etc.DayDuration)) {
                                    n.push([S.RenewMallType.MonthCard]);
                                    break
                                }
                            }
                        var c = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, g.GiftPackType.GoodFund);
                        if (c && c.IntValue && c.Int2DArray)
                            for (o = 0; o < c.Int2DArray.length; o++)
                                if (1 == (c.IntValue >> o & 1) && c.RefreshTime + 3 * g.Etc.DayDuration > p.RpcComponent.Instance.ServerTime) {
                                    var d = p.DataCenter.Instance.GetDataById(u.GiftPack_Model, c.PackIds[o]);
                                    if (!d || d.Count <= 0) {
                                        n.push([S.RenewMallType.GoodFund]);
                                        break
                                    }
                                } n.length > 0 && l.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonRenewPanel.Path, S.RenewPanelType.Mall, n)
                    }
                }, i([L(cc.Label)], t.prototype, "Title", void 0), i([L(cc.Label)], t.prototype, "VipTitle", void 0), i([L(cc.Label)], t.prototype, "VipLevel", void 0), i([L(cc.Button)], t.prototype, "VipBtn", void 0), i([L(w.default)], t.prototype, "CurColorDiamond", void 0), i([L(w.default)], t.prototype, "CurDiamond", void 0), i([L(cc.Label)], t.prototype, "ChosenGiftButtonLabel", void 0), i([L(cc.Button)], t.prototype, "ChosenGiftButton", void 0), i([L(cc.Node)], t.prototype, "ChosenGiftLock", void 0), i([L(cc.Node)], t.prototype, "ChosenGiftAni", void 0), i([L(cc.Label)], t.prototype, "ContinuousPayButtonLabel", void 0), i([L(cc.Button)], t.prototype, "ContinuousPayButton", void 0), i([L(cc.Node)], t.prototype, "ContinuousPayLock", void 0), i([L(cc.Node)], t.prototype, "ContinuousPaytAni", void 0), i([L(cc.Label)], t.prototype, "GrowthMustHave", void 0), i([L(cc.Button)], t.prototype, "SuperMonthPassButton", void 0), i([L(cc.Sprite)], t.prototype, "SuperMonthPassSprite", void 0), i([L(cc.Node)], t.prototype, "SuperMonthPassLock", void 0), i([L(cc.Button)], t.prototype, "ColorDiamondButton", void 0), i([L(cc.Sprite)], t.prototype, "ColorDiamondSprite", void 0), i([L(cc.Node)], t.prototype, "ColorDiamondLock", void 0), i([L(cc.Button)], t.prototype, "DailyChooseButton", void 0), i([L(cc.Sprite)], t.prototype, "DailyChooseSprite", void 0), i([L(cc.Node)], t.prototype, "DailyChooseLock", void 0), i([L(cc.Button)], t.prototype, "LuckyStarButton", void 0), i([L(cc.Sprite)], t.prototype, "LuckyStarSprite", void 0), i([L(cc.Node)], t.prototype, "LuckyStarLock", void 0), i([L(cc.Button)], t.prototype, "ReturnButton", void 0), i([L(cc.Node)], t.prototype, "PrivilegeNode", void 0), i([L(cc.Node)], t.prototype, "PrivilegeRedNode", void 0), i([L(cc.Node)], t.prototype, "PrivilegeLock", void 0), i([L(cc.Node)], t.prototype, "HeroGiftNode", void 0), i([L(cc.Node)], t.prototype, "GrowGiftNode", void 0), i([L(cc.Node)], t.prototype, "LegendGiftNode", void 0), i([L(cc.Node)], t.prototype, "ActiveCommandNode", void 0), i([L(cc.Node)], t.prototype, "SuperFundNode", void 0), i([L(cc.Node)], t.prototype, "GrowFundNode", void 0), i([L({
                    type: [cc.Node]
                })], t.prototype, "Interlayers", void 0), i([L({
                    type: [cc.Node]
                })], t.prototype, "ModeEnters", void 0), i([L({
                    type: [cc.Node]
                })], t.prototype, "ModeMasks", void 0), i([L({
                    type: [cc.Node]
                })], t.prototype, "CounterThreeGlowAni", void 0), i([R], t)
            }(l.BaseUIFullScreenPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "./CommonRenewPanel": "CommonRenewPanel",
        "./DiamondShopPanel": "DiamondShopPanel"
    }],
    MallPrivilegeGiftPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "03c95ivQ8ZBjqoma4GCQB4n", "MallPrivilegeGiftPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/CustomLayout"),
            c = e("./NodePool"),
            u = e("./PrivilegeGiftComponent"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../../Consts/GameEventIds"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../Components/Components"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Channel/ChannelManager"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../../Consts/Etc"),
            S = e("../../Auxiliary/ModuleGuideManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new h.UIPanelType(h.UINodeType.Fixed), t.Title = null, t.View = null, t._bannerNames = [], t._privilegeArray = [], t._configSortIndex = [], t._initCustomLayout = !0, t._resetTimes = [], t._gameModules = {
                        4: d.GameModuleType.DiamondPrivilegeShow,
                        5: d.GameModuleType.HelperPrivilegeShow,
                        7: d.GameModuleType.CashMallPrivilegeShow
                    }, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    h.Game.EventDispatcher.On(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnPurchaseButtonClick, this), h.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), h.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), h.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    h.Game.EventDispatcher.Off(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnPurchaseButtonClick, this), h.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), h.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), h.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.OnPurchaseButtonClick = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return "" != (n = m.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, t)).PayId ? [3, 2] : m.DataCenter.Instance.GetItemCount(d.CommonItemId.Diamond) < n.Money ? (h.UIManager.Instance.ShowUIPanel(I.PanelConfig.MallNewPanel.Path, [d.MallPageType.DiamondShop, d.GiftPackType.BuyDiamond]), [2]) : [4, _.UIUtlity.ShowHintPanel(null, "mall_query_costDiamondBuy".ToUILocale().Fmt(n.Money, this._bannerNames[this._configSortIndex[e]]), "cancel".ToUILocale(), function() {}, "ok".ToUILocale(), function() {
                                        var e = new g.Req_Pay_ByDiamond;
                                        e.Id = n.Id, m.RpcComponent.Instance.Call(e, function(e) {
                                            null == e ? _.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale()) : "" == n.PayId && _.UIUtlity.ShwDisplayRewardPanel(e.Rewards), o.SetGood()
                                        })
                                    })];
                                case 1:
                                    return r.sent(), [2];
                                case 2:
                                    return C.default.Instance.Pay(n.Id), [2]
                            }
                        })
                    })
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(I.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallPrivilegeGiftPanel/Component/PrivilegeGiftComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1], o._itemPool = new c.default(o._itemPrefab)
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "mall_privilege".ToUILocale(), this._configs = m.ConfigDataComponent.Instance.GetArrayConfig(p.SubscribePrivilege_Config), this._configSortIndex = [];
                    for (var t = 0; t < this._configs.length; t++) {
                        var n = this._configs[t];
                        if (this._gameModules[n.Id]) {
                            var o = v.default.Instance.IsGameModuleOpen(this._gameModules[n.Id]),
                                r = v.default.Instance.IsGameModuleUnlock(this._gameModules[n.Id])[0];
                            if (!o || !r) continue
                        }(!n.Unlock || v.default.Instance.IsGameModuleOpen(n.Unlock) && v.default.Instance.IsGameModuleUnlock(n.Unlock)[0]) && this._configSortIndex.push(t)
                    }
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._itemPrefab = t[0], this._singlePrefab = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SortGifts(), this.SetGood(), this.ShowGuide()
                }, t.prototype.SortGifts = function() {
                    var e = this;
                    this._configSortIndex.sort(function(t, n) {
                        var o = v.default.GetSubscribePrivilegeIsActive(e._configs[t].Id),
                            r = v.default.GetSubscribePrivilegeIsActive(e._configs[n].Id);
                        return o && !r ? 1 : !o && r ? -1 : e._configs[t].SortIndex - e._configs[n].SortIndex
                    })
                }, t.prototype.SetGood = function() {
                    var e = this;
                    this._configs.forEach(function(t, n) {
                        var o = m.DataCenter.Instance.GetDataById(g.SubscribePrivilege_Model, t.Id);
                        if (o)
                            if (-1 != o.CanDay) {
                                var r = o.Time + o.CanDay * b.Etc.DayDuration;
                                r > m.RpcComponent.Instance.ServerTime ? e._resetTimes[n] = r : e._resetTimes[n] = void 0
                            } else e._resetTimes[n] = Number.POSITIVE_INFINITY;
                        else e._resetTimes[n] = void 0
                    }), this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._initCustomLayout && (this._initCustomLayout = !1, this.View.Init(this._singlePrefab)), this.View.RenderLayOut(this._configSortIndex.length)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.View && e.forEach(function(e, t) {
                        var o = n._configSortIndex[t],
                            r = n._configs[o],
                            i = m.ConfigDataComponent.Instance.GetConfigById(p.GiftPack_Config, r.PackId);
                        n._bannerNames[o] = m.ConfigDataComponent.Instance.GetLocale("SubscribePrivilege_name_" + r.Id), e.getComponent(u.default).SetTime(r.Days, r.BannerColor).SetBannerLabel(n._bannerNames[o]).SetTitle(m.ConfigDataComponent.Instance.GetLocale("SubscribePrivilege_desc_" + r.Id)).SetItems(n._itemPool, n.ExtractRewardData(i)).SetButtonClick(o, i.Id).SetCountDown(n._resetTimes[o]).SetBuyButton("" != i.PayId ? C.default.Instance.ExchangeMoney(i.Money) : i.Money, "" != i.PayId ? i.VipPoint : i.ShowMoney, i.PayId, i.Discount)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayout" == t.parent.name && _.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.ExtractRewardData = function(e) {
                    for (var t = [], n = 0; n < e.Items.length; n++) t[n] = [e.Items[n].Items[0], e.Items[n].Items[1], e.Items[n].Items[2]];
                    return t
                }, t.prototype.ShowGuide = function() {
                    S.default.instance.CheckGameModeuleGuideNeedShow(5005) && (S.default.instance.ShowNPCDialogs([1020, 1019]), S.default.instance.CompleteGameModuleWeakGuide(5005))
                }, t.prototype.onDestroy = function() {
                    this._itemPool && this._itemPool.Clear()
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(l.default)], t.prototype, "View", void 0), i([P], t)
            }(h.BaseUIPage);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./NodePool": "NodePool",
        "./PrivilegeGiftComponent": "PrivilegeGiftComponent"
    }],
    MallPrivilegeGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "677b7YImfFIL5EsaOSPyEfw", "MallPrivilegeGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("./NodePool"),
            f = e("./PrivilegeGiftComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/CustomLayout"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../Consts/Etc"),
            C = e("../../Channel/ChannelManager"),
            v = e("../../../Consts/GameEventIds"),
            b = e("../../Auxiliary/ModuleGuideManager"),
            S = e("../../Auxiliary/DataUtlity"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.View = null, t._bannerNames = [], t._privilegeArray = [], t._configSortIndex = [], t._initCustomLayout = !0, t._resetTimes = [], t._gameModules = {
                        4: m.GameModuleType.DiamondPrivilegeShow,
                        5: m.GameModuleType.HelperPrivilegeShow,
                        7: m.GameModuleType.CashMallPrivilegeShow
                    }, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(v.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(v.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.OnPurchaseButtonClick = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return "" != (n = d.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, t)).PayId ? [3, 2] : d.DataCenter.Instance.GetItemCount(m.CommonItemId.Diamond) < n.Money ? (l.UIManager.Instance.ShowUIPanel(c.PanelConfig.MallNewPanel.Path, [m.MallPageType.DiamondShop, m.GiftPackType.BuyDiamond]), [2]) : [4, I.UIUtlity.ShowHintPanel(null, "mall_query_costDiamondBuy".ToUILocale().Fmt(n.Money, this._bannerNames[this._configSortIndex[e]]), "cancel".ToUILocale(), function() {}, "ok".ToUILocale(), function() {
                                        var e = new p.Req_Pay_ByDiamond;
                                        e.Id = n.Id, d.RpcComponent.Instance.Call(e, function(e) {
                                            null == e ? I.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale()) : "" == n.PayId && I.UIUtlity.ShwDisplayRewardPanel(e.Rewards), o.SetGood()
                                        })
                                    })];
                                case 1:
                                    return r.sent(), [2];
                                case 2:
                                    return C.default.Instance.Pay(n.Id), [2]
                            }
                        })
                    })
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallPrivilegeGiftPanel/Component/PrivilegeGiftComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1], o._itemPool = new h.default(o._itemPrefab)
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "mall_privilege".ToUILocale(), this._configs = d.ConfigDataComponent.Instance.GetArrayConfig(u.SubscribePrivilege_Config), this._configSortIndex = [];
                    for (var t = 0; t < this._configs.length; t++) {
                        var n = this._configs[t];
                        if (this._gameModules[n.Id]) {
                            var o = S.default.Instance.IsGameModuleOpen(this._gameModules[n.Id]),
                                r = S.default.Instance.IsGameModuleUnlock(this._gameModules[n.Id])[0];
                            if (!o || !r) continue
                        }(!n.Unlock || S.default.Instance.IsGameModuleOpen(n.Unlock) && S.default.Instance.IsGameModuleUnlock(n.Unlock)[0]) && this._configSortIndex.push(t)
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SortGifts(), this.SetGood(), this.ShowGuide()
                }, t.prototype.SortGifts = function() {
                    var e = this;
                    this._configSortIndex.sort(function(t, n) {
                        var o = S.default.GetSubscribePrivilegeIsActive(e._configs[t].Id),
                            r = S.default.GetSubscribePrivilegeIsActive(e._configs[n].Id);
                        return o && !r ? 1 : !o && r ? -1 : e._configs[t].SortIndex - e._configs[n].SortIndex
                    })
                }, t.prototype.SetGood = function() {
                    var e = this;
                    this._configs.forEach(function(t, n) {
                        var o = d.DataCenter.Instance.GetDataById(p.SubscribePrivilege_Model, t.Id);
                        if (o)
                            if (-1 != o.CanDay) {
                                var r = o.Time + o.CanDay * _.Etc.DayDuration;
                                r > d.RpcComponent.Instance.ServerTime ? e._resetTimes[n] = r : e._resetTimes[n] = void 0
                            } else e._resetTimes[n] = Number.POSITIVE_INFINITY;
                        else e._resetTimes[n] = void 0
                    }), this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._initCustomLayout && (this._initCustomLayout = !1, this.View.Init(this._singlePrefab)), this.View.RenderLayOut(this._configSortIndex.length)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.View && e.forEach(function(e, t) {
                        var o = n._configSortIndex[t],
                            r = n._configs[o],
                            i = d.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, r.PackId);
                        n._bannerNames[o] = d.ConfigDataComponent.Instance.GetLocale("SubscribePrivilege_name_" + r.Id), e.getComponent(f.default).SetTime(r.Days, r.BannerColor).SetBannerLabel(n._bannerNames[o]).SetTitle(d.ConfigDataComponent.Instance.GetLocale("SubscribePrivilege_desc_" + r.Id)).SetItems(n._itemPool, n.ExtractRewardData(i)).SetButtonClick(o, i.Id).SetCountDown(n._resetTimes[o]).SetBuyButton("" != i.PayId ? C.default.Instance.ExchangeMoney(i.Money) : i.Money, "" != i.PayId ? i.VipPoint : i.ShowMoney, i.PayId, i.Discount)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayout" == t.parent.name && I.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.ExtractRewardData = function(e) {
                    for (var t = [], n = 0; n < e.Items.length; n++) t[n] = [e.Items[n].Items[0], e.Items[n].Items[1], e.Items[n].Items[2]];
                    return t
                }, t.prototype.OnMallActivityDataChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == m.GiftPackType.SubscribePrivilege) return void this.DisPlay(!0)
                }, t.prototype.ShowGuide = function() {
                    b.default.instance.CheckGameModeuleGuideNeedShow(5005) && (b.default.instance.ShowNPCDialogs([1020, 1019]), b.default.instance.CompleteGameModuleWeakGuide(5005))
                }, t.prototype.onDestroy = function() {
                    this._itemPool && this._itemPool.Clear()
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(g.default)], t.prototype, "View", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./NodePool": "NodePool",
        "./PrivilegeGiftComponent": "PrivilegeGiftComponent"
    }],
    MallPrivilegeMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "edf3f6aq5JFYLxEhokLW5Xs", "MallPrivilegeMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.MallPrivilegeBasePageType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../Consts/Consts"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Components/CustomToggle"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../../Auxiliary/ModuleGuideManager"),
            I = e("../../Auxiliary/EventKeys");
        (function(e) {
            e[e.Hero = 0] = "Hero", e[e.Subscribe = 1] = "Subscribe"
        })(l = n.MallPrivilegeBasePageType || (n.MallPrivilegeBasePageType = {}));
        var _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Toggles = [], t._foreverPageParams = {}, t._showConditions = [d.GameModuleType.PermanentPrivilegeShow, d.GameModuleType.SubscribePrivilegeShow], t._unlockConditions = [d.GameModuleType.PermanentPrivilege, d.GameModuleType.SubscribePrivilege], t._toggleNames = ["PermanentPrivilege_Toggle_2", "mall_privilege"], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(I.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowGuide, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(I.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowGuide, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("MallPrivilegeGiftPanel/Component/PrivilegeGiftComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._currencyPage = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetGiftConfigAndRewardArray(), this.SetToggleContainer())
                }, t.prototype.SetGiftConfigAndRewardArray = function() {
                    this._foreverMallConfig = h.ConfigDataComponent.Instance.GetConfigById(u.MallActivity_Config, d.GiftPackType.PermanentPrivilege);
                    for (var e = 0; e < this._foreverMallConfig.Gifts.length; e++) {
                        var t = h.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._foreverMallConfig.Gifts[e].Items[0]);
                        this._foreverPageParams[e] = {
                            GiftPackConfig: t,
                            DailyRewards: null
                        }
                    }
                    var n = h.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, d.LevelParamType.PermanentPrivilegeDailyRewards);
                    for (e = 0; e < n.Data.length; e++) {
                        var o = h.ConfigDataComponent.Instance.GetConfigById(u.ItemRewards_Config, n.Data[e]);
                        this._foreverPageParams[e].DailyRewards = o
                    }
                }, t.prototype.SetToggleContainer = function() {
                    for (var e, t = this._currencyPage, n = 0; n < this.Toggles.length; n++)
                        if (f.default.Instance.IsGameModuleUnlock(this._showConditions[n])[0]) {
                            this.Toggles[n].active = !0;
                            var o = this.Toggles[n].getComponent(y.default),
                                r = f.default.Instance.IsGameModuleUnlock(this._unlockConditions[n]);
                            switch (o.Init(this._toggleNames[n].ToUILocale()), o.SetInteractable(r[0], r[1]), r[0] ? (o.SetInteractable(!0, r[1]), null == t && (t = n)) : o.SetInteractable(!1, r[1]), this.Toggles[n].on("toggle", this.SwitchToggle, this), n) {
                                case l.Hero:
                                    g.RedDotManager.Instance.Bind(this.Toggles[n], g.RedDotManager.Instance.RedDot.PermanentPrivilegeHeroNode), null == this._currencyPage && !e && g.RedDotManager.Instance.RedDot.PermanentPrivilegeHeroNode.IsActive && (e = n)
                            }
                        } else this.Toggles[n].active = !1;
                    this._currencyPage || (this._currencyPage = e || t), this.Toggles[this._currencyPage].getComponent(y.default).isChecked = !0, this.SetPage(this._currencyPage)
                }, t.prototype.SwitchToggle = function(e) {
                    var t = parseInt(e.name);
                    this._currencyPage != t && this.SetPage(t)
                }, t.prototype.SetPage = function(e) {
                    switch (this.ShowGuide(), e) {
                        case l.Hero:
                            this._foreverPageParams[l.Hero].Type = 0, this.ShowPage("MallPrivilegeGiftPanel/PermanentPrivilegePage", this._foreverPageParams[l.Hero], this._itemPrefab);
                            break;
                        case l.Subscribe:
                            this.ShowPage("MallPrivilegeGiftPanel/MallPrivilegeGiftPage", this._itemPrefab, this._singlePrefab)
                    }
                    this._currencyPage = e
                }, t.prototype.ShowGuide = function() {
                    var e = m.default.instance.GetNextGuideModule();
                    e && 5005 == e && this.Toggles[l.Subscribe].active && !this.Toggles[l.Subscribe].getComponent(y.default).DisableNode.active ? m.default.instance.AddFingerNode(this.Toggles[l.Subscribe]) : m.default.instance.RemoveFingerNode(this.Toggles[l.Subscribe])
                }, i([v(cc.Node)], t.prototype, "Toggles", void 0), i([C], t)
            }(c.BaseUIFrame);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/CustomToggle": "CustomToggle"
    }],
    MallSelectHeroPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e7650kJHpFL+Liqjbyz9do4", "MallSelectHeroPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/HeroElementGroup"),
            m = e("../../../ShareConsts/EnumType"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1), t.Title = null, t.ScrollView = null, t.CustomLayout = null, t.HeroElementGroup = null, t.ConfirmBtn = null, t.ConfirmBtnLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ConfirmBtnLabel.string = "ok".ToUILocale(), this.ConfirmBtn.node.on("click", this.OnConfirmBtn, this), this.HeroElementGroup.SetElementModeByIndex(m.HeroElementType.All), this.CustomLayout.Init(this._itemPrefab)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0], this._selectedHeroId = this._data.SelectHeroId || 0
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.Title.string = this._data.Title ? this._data.Title : "heroJob_hero_select".ToUILocale(), this.ReadyShowJobByMallType(), this.SetHeroIds(), this.CustomLayout.RenderLayOut(this._currentShowHeroIds.length), this.FinishedShowJobByMallType()
                }, t.prototype.ReadyShowJobByMallType = function() {
                    if (this._data.MallType) switch (this._data.MallType) {
                        case p.GiftPackType.DailySelectionHero:
                            this._data.NewTagHeroIds && this._data.NewTagHeroIds.length > 0 && l.UIManager.Instance.ShowUIPanel(f.PanelConfig.MallNewHeroTipPanel.Path, this._data.NewTagHeroIds)
                    }
                }, t.prototype.FinishedShowJobByMallType = function() {
                    if (this._data.MallType) switch (this._data.MallType) {
                        case p.GiftPackType.DailySelectionHero:
                    }
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._currentShowHeroIds[t],
                            r = e.getComponent(y.ItemComponent);
                        r.node.name = o.toString(), r.Init({
                            ItemId: o
                        }, y.ItemComponentType.HeroInfo), r.SetSelectFlagState(o == n._selectedHeroId), n._data.NewTagHeroIds && n._data.NewTagHeroIds.includes(o) && r.SetNewTagState(!0)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    if (this.CustomLayout.node.children.indexOf(t) > -1) {
                        var n = this.CustomLayout.node.getChildByName(this._selectedHeroId.toString());
                        n && n.getComponent(y.ItemComponent).SetSelectFlagState(!1);
                        var o = parseInt(t.name);
                        if (this._selectedHeroId == o) return void(this._selectedHeroId = 0);
                        this._selectedHeroId = o, t.getComponent(y.ItemComponent).SetSelectFlagState(!0)
                    }
                }, t.prototype.OnSwitchHeroElement = function(e, t) {
                    t == this.HeroElementGroup.node && this._selectElementType != e && (this._selectElementType = e, this.SetHeroIds(), this.CustomLayout.RenderLayOut(this._currentShowHeroIds.length))
                }, t.prototype.SetHeroIds = function() {
                    var e = this;
                    this._currentShowHeroIds = [], this._selectElementType ? this._data.ShowHeroIds.forEach(function(t) {
                        u.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, t).ElementType == e._selectElementType && e._currentShowHeroIds.push(t)
                    }) : this._currentShowHeroIds = this._data.ShowHeroIds
                }, t.prototype.OnConfirmBtn = function() {
                    this._data.Callback && this._data.Callback(this._selectedHeroId), this.Close()
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([C(d.default)], t.prototype, "CustomLayout", void 0), i([C(g.default)], t.prototype, "HeroElementGroup", void 0), i([C(cc.Button)], t.prototype, "ConfirmBtn", void 0), i([C(cc.Label)], t.prototype, "ConfirmBtnLabel", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MallSevenDayChargePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "94039TVYJ1AZr3K7sCMwKBt", "MallSevenDayChargePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("./NodePool"),
            f = e("./SevenDayChargeComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../Components/CustomLayout"),
            I = e("../../../Consts/Etc"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../Auxiliary/GameRecord"),
            b = e("../../../Consts/GameEventIds"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0, !1, !0), t.Title = null, t.NextRefreshLabel = null, t.NextRefreshTime = null, t.View = null, t._configs = [], t._initCustomLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_DAYSGIFT_GETBUTTONCLICK, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_DAYSGIFT_GOBUTTONCLICK, this.OnGoButtonClick, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(b.GameEventIds.ChangeDataDetail.Fmt(p.MallActivity_Model._n_), this.OnMallActivityDataChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_DAYSGIFT_GETBUTTONCLICK, this.OnPurchaseButtonClick, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_DAYSGIFT_GOBUTTONCLICK, this.OnGoButtonClick, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(b.GameEventIds.ChangeDataDetail.Fmt(p.MallActivity_Model._n_), this.OnMallActivityDataChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallSevenDayChargePanel/Component/SevenDayChargeComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._singlePrefab = e[1], o._itemPool = new h.default(o._itemPrefab)
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "mall_sevenDays_charge".ToUILocale(), this.NextRefreshLabel.string = "mall_nextRefresh".ToUILocale(), this._configs = d.ConfigDataComponent.Instance.GetArrayConfig(u.SevenDayPay_Config)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.GetConfigsByPhase(), this.RefreshTime(), this.unscheduleAllCallbacks(), this.schedule(this.RefreshTime, 1), this.InitCustomLayout(), v.default.SetItem(v.GameRecordDefine.SevenDayRedDot, d.RpcComponent.Instance.ServerTime)
                }, t.prototype.GetConfigsByPhase = function() {
                    for (var e = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, g.GiftPackType.SevenDayPay).Phase, t = [], n = 0; n < this._configs.length; n++) this._configs[n].Phase == e && t.push(this._configs[n]);
                    this._configs = t
                }, t.prototype.RefreshTime = function() {
                    var e = d.RpcComponent.Instance.ServerTime;
                    this._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, g.GiftPackType.SevenDayPay);
                    var t = C.default.Instance.GetMallDeadTime(g.GiftPackType.SevenDayPay, this._model.RefreshTime) - e;
                    if (t > I.Etc.DayDuration) {
                        var n = Math.floor(t / I.Etc.DayDuration),
                            o = Math.floor(t % I.Etc.DayDuration / I.Etc.HourDuration);
                        this.NextRefreshTime.string = "timeFormat_DayAndHour".ToUILocale().Fmt(n, o)
                    } else this.NextRefreshTime.string = t.FmtRemainTime()
                }, t.prototype.InitCustomLayout = function() {
                    this._initCustomLayout && (this._initCustomLayout = !1, this.View.Init(this._singlePrefab));
                    var e = this._model.IntArray[1];
                    this._configs.sort(function(t, n) {
                        return t.Id > e && n.Id > e || t.Id <= e && n.Id <= e ? t.Id > n.Id ? 1 : -1 : t.Id > e && n.Id <= e ? -1 : 1
                    }), this.View.RenderLayOut(this._configs.length)
                }, t.prototype.OnPurchaseButtonClick = function() {
                    var e = new p.Req_Mall_ReceiveSevenDayPay;
                    d.RpcComponent.Instance.Call(e, function(e) {
                        _.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnGoButtonClick = function() {
                    if (C.default.Instance.HasBoughtFirstPay()) l.UIManager.Instance.QuitPanelStack(this);
                    else {
                        var e = C.default.CheckActivityFirstPayIsExist();
                        e ? l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ActivityFirstPayPanel.Path, e) : l.UIManager.Instance.QuitPanelStack(this)
                    }
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    if (t == this.View) {
                        var o = this._model.IntArray[0],
                            r = this._model.IntArray[1];
                        e.forEach(function(e, t) {
                            var i = d.ConfigDataComponent.Instance.GetConfigById(u.PayCount_Config, n._configs[t].CountId).Count;
                            e.getComponent(f.default).SetTitle("mall_sevenDayCharge_money".ToUILocale().Fmt(i)).SetPurchaseLimit(o, i, t > n._configs.length - r - 1).SetItems(n._itemPool, n._configs[t].Rewards).SetButtonClick(t)
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayout7" == t.parent.name && _.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnMallActivityDataChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == g.GiftPackType.SevenDayPay) return void this.DisPlay(!0)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear()
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Label)], t.prototype, "NextRefreshLabel", void 0), i([P(cc.Label)], t.prototype, "NextRefreshTime", void 0), i([P(m.default)], t.prototype, "View", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./NodePool": "NodePool",
        "./SevenDayChargeComponent": "SevenDayChargeComponent"
    }],
    MallSkinPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d06be9JY8RA55mTdzQxX3rk", "MallSkinPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/HeroSkinCardComponent"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("./HeroSkinPanel"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("./BuyAndSellItemPanel"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SkinCardNode = null, t.BuyButton = null, t.ItemIcon = null, t.BuyLabel = null, t._laodAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.BuyButton.node.on("click", this.ClickBuyButton, this)
                }, t.prototype.onDisable = function() {
                    this.BuyButton.node.off("click", this.ClickBuyButton, this)
                }, t.prototype.Init = function(e) {
                    if (this._data = e, !this._cardComponent) {
                        var t = cc.instantiate(e.Prefab);
                        t.parent = this.SkinCardNode, this._cardComponent = t.getComponent(p.default)
                    }
                    this._cardComponent.Init(e.SkinId, null, 0, this.ClickSkinCard.bind(this)), this._cardComponent.HideNameAndTime(), this._data.IsMaxLevel ? f.UIUtlity.SetGray(this.BuyButton.node, !0, !0) : f.UIUtlity.SetGray(this.BuyButton.node, !1, !0), this.BuyLabel.string = this._data.IsMaxLevel ? "common_max_level".ToUILocale() : this._data.ItemCount.toString(), this.BuyLabel.node.x = this._data.IsMaxLevel ? 0 : 18, this.ItemIcon.node.active = !this._data.IsMaxLevel, this._data.IsMaxLevel || this.SetIcon(this._data.ItemId)
                }, t.prototype.SetIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return t = g.default.Instance.GetItemPathById(e), [4, u.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this._laodAssets.push(n), this.ItemIcon.spriteFrame = n, [2]) : (u.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.ClickSkinCard = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(l.HeroSkin_Config, this._data.SkinId);
                    u.UIManager.Instance.ShowUIPanel(d.PanelConfig.HeroSkinPanel.Path, e.HeroId, h.HeroSkinShowType.Activity, this._data.SkinId)
                }, t.prototype.onDestroy = function() {
                    this._laodAssets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.ClickBuyButton = function() {
                    this._data.IsMaxLevel || u.UIManager.Instance.ShowUIPanel(d.PanelConfig.BuyAndSellItemPanel.Path, this._data.Id, this._data.Index, this._data.HasBuyCount, y.BuyAndSellType.Buy, y.GoodsType.MallHeroSkin)
                }, i([_(cc.Node)], t.prototype, "SkinCardNode", void 0), i([_(cc.Button)], t.prototype, "BuyButton", void 0), i([_(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([_(cc.Label)], t.prototype, "BuyLabel", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeroSkinCardComponent": "HeroSkinCardComponent",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./HeroSkinPanel": "HeroSkinPanel"
    }],
    MallSkinPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dbf619bFXNPSZ/D+aOo8eXL", "MallSkinPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/HeroElementGroup"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("./ShopUIPanel"),
            g = e("../Components/CurrencyBarItem"),
            m = e("../Components/CustomLayout"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("./MallSkinPackComponent"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../../RedDot/RedDotManager"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RuleButton = null, t.Title = null, t.CurrencyBarContent = null, t.SkinScrollView = null, t.CustomLayout = null, t.HeroElementGroup = null, t.GiftButton = null, t.GiftLabel = null, t.ReturnButton = null, t.NoSkinLabel = null, t._currencyBarNodes = [], t._initCustomLayout = !0, t._currentElement = 0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), l.Game.EventDispatcher.On(I.EventKeys.EVENT_SKIN_PACK_REFRESH, this.OnRefreshSkinPackItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), l.Game.EventDispatcher.Off(I.EventKeys.EVENT_SKIN_PACK_REFRESH, this.OnRefreshSkinPackItem, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(d.BundlePath.CurrencyBarComponent, cc.Prefab), n = this.LoadDynamicAsset("MallSkinPackPanel/Components/MallSkinPackComponent", cc.Prefab), o = this.LoadDynamicAsset("HeroInfoPanel/HeroSkinCardComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._currencyBarPrefab = e[0], r._listItemPrefab = e[1], r._skinCardPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RuleButton.node.on("click", this.ClickRuleButton, this), this.GiftButton.node.on("click", this.ClickGiftButton, this), this.ReturnButton.node.on("click", this.ClickReturnButton, this), this.GiftLabel.string = "skinPack".ToUILocale(), this.NoSkinLabel.string = "skinPack_no_skin".ToUILocale()
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this._shopConfig = p.ConfigDataComponent.Instance.GetConfigById(u.ShopBase_Config, y.ShopType.HeroSkinShop), this.HeroElementGroup.SetElementModeByIndex(C.HeroElementType.All)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this), t || (this.Title.string = this._shopConfig.Id.ToShopName(), this.SetCurrencyBarNodes(), this.SetShopItemDatas(), this.InitCustomLayout()), this.UpdateCurrencyBarNodes(), this.BindReddot()
                }, t.prototype.SetCurrencyBarNodes = function() {
                    var e = this;
                    this._shopConfig.HeaderCurrencyType.forEach(function() {
                        var t = cc.instantiate(e._currencyBarPrefab);
                        t.parent = e.CurrencyBarContent, e._currencyBarNodes.push(t)
                    })
                }, t.prototype.UpdateCurrencyBarNodes = function() {
                    var e = this;
                    this._shopConfig.HeaderCurrencyType.forEach(function(t, n) {
                        e._currencyBarNodes[n].getComponent(g.default).Init(t)
                    })
                }, t.prototype.BindReddot = function() {
                    b.RedDotManager.Instance.Bind(this.GiftButton.node, b.RedDotManager.Instance.RedDot.MallSkinGiftBtnNode)
                }, t.prototype.SetShopItemDatas = function() {
                    var e = this;
                    this._datas = [];
                    var t = p.DataCenter.Instance.GetDataById(c.UserShop_Model, this._shopConfig.Id);
                    this._shopConfig.Goods.forEach(function(o, r) {
                        var i = p.ConfigDataComponent.Instance.GetConfigById(u.ShopItem_Config, o.Items[0]),
                            a = p.ConfigDataComponent.Instance.GetConfigById(u.ItemConsume_Config, i.ItemId);
                        if (a && a.SubType == C.ConsumeItemType.HeroSkin) {
                            var s = p.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, a.Param[0].Items[0]);
                            if (v.default.IsSkinShownAvailable(s)) {
                                var l = p.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, s.HeroId);
                                if (e._currentElement == l.ElementType || e._currentElement == C.HeroElementType.All) {
                                    var c = t && t.Goods[i.Id] && t.Goods[i.Id].Items[1] ? t.Goods[i.Id].Items[1] : 0,
                                        d = {};
                                    d.Id = i.Id, d.Index = r, d.HasBuyCount = c, d.ItemId = i.CurrencyType, d.ItemCount = i.Price, d.SkinId = a.Param[0].Items[0], d.Prefab = e._skinCardPrefab;
                                    var h = p.DataCenter.Instance.GetItemCount(i.CurrencyType),
                                        f = Math.floor(h / d.ItemCount),
                                        y = n.GetSkinPackRemainCount(d.SkinId, s, f);
                                    d.RemainCount = y[0], d.IsMaxLevel = y[1], e._datas.push(d)
                                }
                            }
                        }
                    })
                }, t.GetSkinPackRemainCount = function(e, t, n) {
                    var o = 0,
                        r = 0,
                        i = !1,
                        a = p.DataCenter.Instance.GetDataById(c.HeroSkin_Model, e);
                    a && a.IsPerpetual || (r = 1);
                    var s = a && a.IsPerpetual && a.Level > 0 ? a.Level : 1,
                        l = p.ConfigDataComponent.Instance.GetArrayConfig(u.HeroSkinLevel_Config),
                        d = l.length;
                    if (s < d) {
                        var h = l[s - 1],
                            f = l[d - 1],
                            y = {},
                            g = {};
                        for (var m in h.Cost.forEach(function(e) {
                                if (1 == e.Items[0]) {
                                    var n = t.Transform[0].Items[0];
                                    y[n] ? y[n] += e.Items[1] : y[n] = e.Items[1]
                                }
                            }), f.Cost.forEach(function(e) {
                                if (1 == e.Items[0]) {
                                    var n = t.Transform[0].Items[0];
                                    g[n] ? g[n] += e.Items[1] : g[n] = e.Items[1]
                                }
                            }), g) {
                            var I = g[m] - y[m],
                                _ = p.DataCenter.Instance.GetItemCount(Number(m));
                            if (_ < I) {
                                var C = t.Transform[0].Items[1],
                                    v = Math.ceil((I - _) / C);
                                o = Math.min(v + r, n)
                            } else i = !0
                        }
                    } else i = !0;
                    return [o, i]
                }, t.prototype.InitCustomLayout = function() {
                    this._initCustomLayout && (this._initCustomLayout = !1, this.CustomLayout.Init(this._listItemPrefab)), this.NoSkinLabel.node.active = 0 == this._datas.length, this.SkinScrollView.node.active = this._datas.length > 0, this._datas.length > 0 && this.CustomLayout.RenderLayOut(this._datas.length)
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.name = n._datas[t].Id.toString(), e.getComponent(_.default).Init(n._datas[t])
                    })
                }, t.prototype.OnSwitchHeroElement = function(e, t) {
                    t == this.HeroElementGroup.node && this._currentElement != e && (this._currentElement = e, this.SetShopItemDatas(), this.InitCustomLayout())
                }, t.prototype.OnRefreshSkinPackItem = function(e) {
                    for (var t = 0; t < this.CustomLayout.node.children.length; t++) {
                        var o = this.CustomLayout.node.children[t],
                            r = Number.parseInt(o.name),
                            i = o.getComponent(_.default);
                        if (r == e && i) {
                            var a = this._datas.find(function(t) {
                                return t.Id == e
                            });
                            if (a) {
                                var s = p.DataCenter.Instance.GetDataById(c.UserShop_Model, this._shopConfig.Id),
                                    l = s && s.Goods[e] && s.Goods[e].Items[1] ? s.Goods[e].Items[1] : 0,
                                    d = p.ConfigDataComponent.Instance.GetConfigById(u.ShopItem_Config, e),
                                    h = p.ConfigDataComponent.Instance.GetConfigById(u.ItemConsume_Config, d.ItemId),
                                    f = p.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, h.Param[0].Items[0]);
                                a.HasBuyCount = l;
                                var y = n.GetSkinPackRemainCount(a.SkinId, f, a.ItemCount);
                                a.RemainCount = y[0], a.IsMaxLevel = y[1], i.Init(a)
                            }
                        }
                    }
                }, t.prototype.ClickRuleButton = function() {
                    var e = {
                        name: "skinPack_rule_main_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["skinPack_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.ClickGiftButton = function() {
                    var e = [];
                    p.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, C.LevelParamType.SkinStorePack).Data.forEach(function(t) {
                        var n = p.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, t);
                        e.push(n)
                    });
                    var t = {
                        ModuleGiftPackData: e,
                        BannerPath: p.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/skinPack_banner"),
                        Title: "skinPack".ToUILocale(),
                        LoadBannerWay: 1
                    };
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.ClickReturnButton = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Node)], t.prototype, "CurrencyBarContent", void 0), i([P(cc.ScrollView)], t.prototype, "SkinScrollView", void 0), i([P(m.default)], t.prototype, "CustomLayout", void 0), i([P(h.default)], t.prototype, "HeroElementGroup", void 0), i([P(cc.Button)], t.prototype, "GiftButton", void 0), i([P(cc.Label)], t.prototype, "GiftLabel", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([P(cc.Label)], t.prototype, "NoSkinLabel", void 0), n = i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "./MallSkinPackComponent": "MallSkinPackComponent",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    MallSubPageBtnCompontent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2f8dcu7x1pFWqDGC/UuLSz4", "MallSubPageBtnCompontent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Label = null, t.MainSprite = null, t.Lock = null, t.Mask = null, t.Halo = null, t.RedDotNode = null, t.Tag = null, t.MustBuy = null, t
                }
                var n;
                return r(t, e), n = t, Object.defineProperty(t.prototype, "RedDot", {
                    get: function() {
                        return this.RedDotNode.active
                    },
                    set: function(e) {
                        this.RedDotNode.active = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.IsUnLock = function() {
                    return this._isUnLock
                }, t.prototype.SetState = function(e) {
                    return this._isUnLock = e, e ? (this.SetLabelNormal(), a.UIUtlity.OffSpriteGray(this.MainSprite)) : (this.SetLabelLocked(), a.UIUtlity.OnSpriteGray(this.MainSprite)), this
                }, t.prototype.SetLogo = function(e) {
                    return this.MainSprite.spriteFrame = e, this.Mask.spriteFrame = e, this
                }, t.prototype.SetName = function(e) {
                    return this.Label.string = e, this
                }, t.prototype.SetHalo = function() {
                    n._chosenLogoItem && n._chosenLogoItem.UnsetHalo(), this.Halo.node.active = !0, n._chosenLogoItem = this
                }, t.prototype.UnsetHalo = function() {
                    this.Halo.node.active = !1, this._isUnLock ? this.SetLabelNormal() : this.SetLabelLocked()
                }, t.prototype.SetTag = function(e) {
                    return void 0 === e && (e = !1), this.Tag.active = e, e && (this.MustBuy.string = "crazyDiscounts_tag".ToUILocale()), this
                }, t.prototype.SetLabelNormal = function() {
                    this.SetLabel(cc.Color.WHITE, new cc.Color(32, 36, 52))
                }, t.prototype.SetLabelLocked = function() {
                    this.SetLabel(cc.Color.WHITE, new cc.Color(32, 36, 52))
                }, t.prototype.SetLabel = function(e, t) {
                    this.Label.node.color = e, this.Label.getComponent(cc.LabelOutline).color = t
                }, t.prototype.onDestroy = function() {
                    n._chosenLogoItem = null
                }, i([c(cc.Label)], t.prototype, "Label", void 0), i([c(cc.Sprite)], t.prototype, "MainSprite", void 0), i([c(cc.Node)], t.prototype, "Lock", void 0), i([c(cc.Sprite)], t.prototype, "Mask", void 0), i([c(cc.Sprite)], t.prototype, "Halo", void 0), i([c(cc.Node)], t.prototype, "RedDotNode", void 0), i([c(cc.Node)], t.prototype, "Tag", void 0), i([c(cc.Label)], t.prototype, "MustBuy", void 0), n = i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    MallSuperFundItemChooseHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f79d1macrtA9rqt71fLyfQy", "MallSuperFundItemChooseHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/CustomLayout"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/ItemComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Components/Components"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.Title = null, t.Tip = null, t.OrangeButton = null, t.OrangeButtonLabel = null, t.View = null, t._initCustomLayout = !0, t._chosenIndex = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "selectReward".ToUILocale(), this.Tip.string = "selectReward_tag".ToUILocale(), this.OrangeButtonLabel.string = "ok".ToUILocale(), this.OrangeButton.node.on("click", this.OnOrangeButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rewards = t[0], this._superFundItem = t[1], this._chosenIndex = t[2]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._initCustomLayout && (this.View.Init(this._itemPrefab), this._initCustomLayout = !1), this.View.RenderLayOut(this._rewards.length)
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this._chosenItem = null
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n, o = this;
                    t == this.View && e.forEach(function(e, t) {
                        n = y.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, o._rewards[t].Items[0]), e.getComponent(h.ItemComponent).Init({
                            ItemId: o._rewards[t].Items[0],
                            Count: o._rewards[t].Items[1]
                        }, n.Star ? h.ItemComponentType.ItemWithStar : h.ItemComponentType.ItemCommon);
                        var r = t + 1;
                        e.name = r.toString(), null == o._chosenItem && r == o._chosenIndex && (o._chosenItem = e.getComponent(h.ItemComponent), o._chosenItem.SetSelectFlagState(!0))
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    "GridFuni" == t.parent.name && (this._chosenIndex = e, this._chosenItem && this._chosenItem.SetSelectFlagState(!1), this._chosenItem = t.getComponent(h.ItemComponent), this._chosenItem.SetSelectFlagState(!0), f.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t))
                }, t.prototype.OnOrangeButtonClick = function() {
                    0 != this._chosenIndex ? (this.Close(), this._superFundItem && this._superFundItem.SetIndex(this._chosenIndex), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_MALL_BUTTONCLICK, this._superFundItem.index, this._chosenIndex)) : f.UIUtlity.ShowFloatingHint("superFund_select_first".ToUILocale())
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(cc.Label)], t.prototype, "Tip", void 0), i([I(cc.Button)], t.prototype, "OrangeButton", void 0), i([I(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([I(c.default)], t.prototype, "View", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MallSuperFundPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "64b18krHKxEoKls1jNT3eYb", "MallSuperFundPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("./NodePool"),
            f = e("../Components/CustomLayout"),
            y = e("../Components/CustomToggle"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("./SuperFundItem"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../../Consts/Etc"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../Channel/ChannelManager"),
            S = e("../Components/ItemComponent"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../../Auxiliary/GameRecord"),
            A = e("../../../Consts/GameEventIds"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.AttainLabel = null, t.AttainNumber = null, t.Tip = null, t.Banner = null, t.ArtWord = null, t.View = null, t.BuyButton = null, t.GrayButton = null, t.BuyButtonLabel = null, t.GrayButtonLabel = null, t.Toggles = [], t.ExpNode = null, t.RedNode = null, t.DiscountLabel = null, t.DiscountValue = null, t._gifts = [], t._giftIds = [], t._configs = [], t._modeNames = ["mall_superFund", "mall_respectFund", "mall_chaosFund", "mall_cheap"], t._modeArtWords = ["superFund_blue", "superFund_red", "superFund_chaos", "superFund_cheap"], t._modeInfoArray = [], t._modeReddotArray = [], t._gotIndexKeys = [], t._goodFundType = [I.GoodFundType.GoodFund, I.GoodFundType.GoodFund2, I.GoodFundType.GoodFund3, I.GoodFundType.GoodFund4], t._initLayout = !0, t._modeGiftIds = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(g.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnItemChange, this), l.Game.EventDispatcher.On(A.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(g.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnItemChange, this), l.Game.EventDispatcher.Off(A.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), n = this.LoadDynamicAsset("MallSuperFundPanel/Component/SuperFundItem"), o = this.LoadDynamicAsset("MallSuperFundPanel/PNG/superFund", cc.SpriteAtlas), r = this.LoadDynamicAsset(d.GlobalConfigComponent.GetMultilangKey("Multilang/mall"), cc.SpriteAtlas), [4, Promise.all([t, n, o, r]).then(function(e) {
                                        i._itemPrefab = e[0], i._singlePrefab = e[1], i._atlas = e[2], i._mallAtlas = e[3], i._itemPool = new h.default(i._itemPrefab)
                                    })];
                                case 1:
                                    return a.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.Tip.string = "mall_superFund_tip".ToUILocale(), this.GrayButtonLabel.string = "already_receive".ToUILocale();
                    for (var t = d.ConfigDataComponent.Instance.GetConfigById(u.MallActivity_Config, I.GiftPackType.GoodFund), n = 0; n < t.Gifts.length; n++) this._modeGiftIds[n] = t.Gifts[n].Items[0];
                    this._modeInfoArray = [P.GameRecordDefine.SuperFundRedDot, P.GameRecordDefine.RespectFundRedDot, P.GameRecordDefine.ChaosRedDot, P.GameRecordDefine.CheapRedDot], this._modeReddotArray = [v.RedDotManager.Instance.RedDot.MallSuperFundNode, v.RedDotManager.Instance.RedDot.MallRespectFundNode, v.RedDotManager.Instance.RedDot.MallChaosFundNode, v.RedDotManager.Instance.RedDot.MallCheapFundNode], this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.GrayButton.node.on("click", this.OnGrayButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this.GetConfigsByPhase();
                    for (var n = 0; n < this.Toggles.length; n++) this.Toggles[n].Init(this._modeNames[n].ToUILocale()), this.Toggles[n].node.on("toggle", this.OnToggleSwitch, this), this.Toggles[n].node.active = !1, this._configs[n] && (this._gifts[n] = this._configs[n].DailyRewards);
                    if (this._configs.length > 0) {
                        var o = this._configs[0].Type - 1;
                        this.OnToggleSwitch(this.Toggles[o])
                    }
                }, t.prototype.GetConfigsByPhase = function() {
                    var e = d.ConfigDataComponent.Instance.GetArrayConfig(u.GoodFund_Config),
                        t = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, I.GiftPackType.GoodFund).Phase;
                    this._configs = [], this._showType = [];
                    for (var n = 0; n < e.length; n++) e[n].Phase == t && (this._configs[e[n].Type - 1] = e[n], this._showType.push(e[n].Type))
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t);
                    var o = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, I.GiftPackType.GoodFund);
                    if (null == this._modeGifts) {
                        this._giftIds = [], o.PackIds.forEach(function(e) {
                            n._giftIds.push(e)
                        }), this._modeGifts = [];
                        for (var r = 0; r < this._giftIds.length; r++) this._modeGifts.push(d.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._giftIds[r]))
                    }
                    o.PackIds.forEach(function(e, t) {
                        n._showType[t] && (n.Toggles[n._showType[t] - 1].node.active = !0)
                    }), this._gotIndexKeys = o.IntArray, this.VariedValueAssign(), v.RedDotManager.Instance.Bind(this.Toggles[0].node, v.RedDotManager.Instance.RedDot.MallSuperFundNode), v.RedDotManager.Instance.Bind(this.Toggles[1].node, v.RedDotManager.Instance.RedDot.MallRespectFundNode), v.RedDotManager.Instance.Bind(this.Toggles[2].node, v.RedDotManager.Instance.RedDot.MallChaosFundNode), v.RedDotManager.Instance.Bind(this.Toggles[3].node, v.RedDotManager.Instance.RedDot.MallCheapFundNode), v.RedDotManager.Instance.RedDot.MallSuperFundNode.callBackFunc(), v.RedDotManager.Instance.RedDot.MallRespectFundNode.callBackFunc(), v.RedDotManager.Instance.RedDot.MallChaosFundNode.callBackFunc(), v.RedDotManager.Instance.RedDot.MallCheapFundNode.callBackFunc()
                }, t.prototype.VariedValueAssign = function() {
                    var e;
                    if (3 == this._currentMode ? this.Banner.spriteFrame = this._atlas.getSpriteFrame(this._modeNames[2]) : this.Banner.spriteFrame = this._atlas.getSpriteFrame(this._modeNames[this._currentMode]), this.ArtWord.spriteFrame = this._mallAtlas.getSpriteFrame(this._modeArtWords[this._currentMode]), this._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, I.GiftPackType.GoodFund), this._modeGifts) {
                        var t = this._modeGifts[this._currentMode];
                        t && (this.AttainNumber.string = "x" + t.VipPoint, this._price = b.default.Instance.CurrencySymbol + b.default.Instance.ExchangeMoney(t.Money), w.default.Instance.SetDisCount(t.Discount, this.DiscountValue, this.DiscountLabel), e = 0 == w.default.Instance.GetGiftBuyCount(t.Id), this.SetButtonState(e))
                    }
                    this.SetGotAndCanGet(), this.RedNode.active = !this.ExpNode.active && this._canGetIndex > this._gotIndex;
                    var n = this._canGetIndex <= this._gotIndex;
                    n || e || this.SetButtonState(!1), this.BuyButton.node.active = !n, this.GrayButton.node.active = n, this._initLayout && (this.View.Init(this._singlePrefab), this._initLayout = !1), this.View.RenderLayOut(this._gifts[this._currentMode].length)
                }, t.prototype.SetButtonState = function(e) {
                    this.ExpNode.active = e, this.Tip.node.active = e, this.DiscountValue.node.parent.active = e, this.BuyButtonLabel.string = e ? this._price : "mail_receive".ToUILocale(), this.BuyButtonLabel.node.y = e ? 19 : 0
                }, t.prototype.SetGotAndCanGet = function() {
                    this._canGetIndex = Math.floor((d.RpcComponent.Instance.ServerTime - this._model.RefreshTime) / C.Etc.DayDuration), this._gotIndex = this._gotIndexKeys && this._gotIndexKeys[this._currentMode] ? this._gotIndexKeys[this._currentMode] - 1 : -1
                }, t.prototype.OnBuyButtonClick = function() {
                    if (this.ExpNode.active) b.default.Instance.Pay(this._giftIds[this._currentMode]);
                    else {
                        for (var e = !0, t = 0; t < this._gifts[this._currentMode].length && !(t > this._canGetIndex); t++) {
                            var n = !0;
                            if (d.ConfigDataComponent.Instance.GetConfigById(u.ItemRewards_Config, this._gifts[this._currentMode][t]).Rewards.length > 1 && (n = !(!this._model.Int2DArray[this._currentMode] || !this._model.Int2DArray[this._currentMode].Items) && this._model.Int2DArray[this._currentMode].Items[t] > 0), !n) {
                                e = !1;
                                break
                            }
                        }
                        if (e) {
                            var o = new p.Req_Mall_ReceiveGoodFund;
                            o.Type = this._goodFundType[this._currentMode], d.RpcComponent.Instance.Call(o, function(e) {
                                _.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                            })
                        } else _.UIUtlity.ShowFloatingHint("superFund_select_first".ToUILocale());
                        this.VariedValueAssign()
                    }
                }, t.prototype.OnGrayButtonClick = function() {
                    _.UIUtlity.ShowFloatingHint("mall_superFund_chanceOut".ToUILocale())
                }, t.prototype.OnToggleSwitch = function(e) {
                    var t = Number.parseInt(e.name);
                    this._currentMode != t && (this._currentMode = t, this._multiRewardsIndexes = null, l.EZLog.Log("\u5f53\u524d\u65f6\u95f4 = ", d.RpcComponent.Instance.ServerTime), P.default.SetItem(this._modeInfoArray[this._currentMode], d.RpcComponent.Instance.ServerTime), v.RedDotManager.Instance.RefreshRedDotNode(this._modeReddotArray[this._currentMode]), this.Title.string = this._modeNames[this._currentMode].ToUILocale(), d.DataCenter.Instance.SetTempData(this._modeNames[this._currentMode], 1), this.VariedValueAssign())
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    if (t == this.View) {
                        this.SetGotAndCanGet();
                        var o = !1;
                        null == this._multiRewardsIndexes && (this._multiRewardsIndexes = [], this._multiRewardsChosens = [], o = !0), e.forEach(function(e, t) {
                            var r = d.ConfigDataComponent.Instance.GetConfigById(u.ItemRewards_Config, n._gifts[n._currentMode][t]).Rewards;
                            r.length > 1 && o && null != n._model.Int2DArray[n._currentMode] && null != n._model.Int2DArray[n._currentMode].Items && (n._multiRewardsIndexes.push(t), n._multiRewardsChosens.push(n._model.Int2DArray[n._currentMode].Items[t]));
                            var i = 0;
                            n._model.Int2DArray[n._currentMode] && n._model.Int2DArray[n._currentMode].Items && (i = n._model.Int2DArray[n._currentMode].Items[t]), e.name = t.toString();
                            var a = t > n._gotIndex && t <= n._canGetIndex ? "climbTower_canGet".ToUILocale() : "firstCharge_dayth".ToUILocale().Fmt(t + 1);
                            e.getComponent(m.default).SetTitle(a).SetItem(n._itemPool, r, i, t, n._currentMode).SetChosen(t <= n._canGetIndex, n._atlas).SetCheck(t <= n._gotIndex).index = t
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    if ("ItemContainer" == t.parent.name) {
                        var n = t.getComponent(S.ItemComponent).ItemId;
                        if (n > 0) _.UIUtlity.ShowItemTip(n, t);
                        else if (this._gifts[this._currentMode][e]) {
                            var o = d.ConfigDataComponent.Instance.GetConfigById(u.ItemRewards_Config, this._gifts[this._currentMode][e]).Rewards,
                                r = this._model.Int2DArray[this._currentMode] && this._model.Int2DArray[this._currentMode].Items[e] ? this._model.Int2DArray[this._currentMode].Items[e] : 0,
                                i = this.View.node.children.find(function(t) {
                                    return t.name == e.toString()
                                });
                            i && l.UIManager.Instance.ShowUIPanel(c.PanelConfig.MallSuperFundItemChooseHint.Path, o, i.getComponent(m.default), r)
                        }
                    }
                }, t.prototype.OnItemSelect = function() {
                    var e = new p.Req_Mall_ReceiveGoodFund;
                    e.Type = this._goodFundType[this._currentMode], d.RpcComponent.Instance.Call(e, function(e) {
                        _.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnItemChange = function(e, t) {
                    var n = this;
                    this._multiRewardsChosens[this._multiRewardsIndexes.indexOf(e)] = t;
                    var o = new p.Req_Mall_ChangeGoodFundIndex;
                    o.Type = this._goodFundType[this._currentMode], o.RewardIndex = e, o.Index = t, d.RpcComponent.Instance.Call(o, function() {
                        _.UIUtlity.ShowFloatingHint("mall_superFund_rewardChanged".ToUILocale()), n._model = d.DataCenter.Instance.GetDataById(p.MallActivity_Model, I.GiftPackType.GoodFund)
                    })
                }, t.prototype.OnMallActivityDataChange = function(e) {
                    for (var t in e)
                        if (Number.parseInt(t) == I.GiftPackType.GoodFund) return void this.DisPlay(!0)
                }, t.prototype.onDestroy = function() {
                    this._itemPool && this._itemPool.Clear()
                }, i([L(cc.Label)], t.prototype, "Title", void 0), i([L(cc.Label)], t.prototype, "AttainLabel", void 0), i([L(cc.Label)], t.prototype, "AttainNumber", void 0), i([L(cc.Label)], t.prototype, "Tip", void 0), i([L(cc.Sprite)], t.prototype, "Banner", void 0), i([L(cc.Sprite)], t.prototype, "ArtWord", void 0), i([L(f.default)], t.prototype, "View", void 0), i([L(cc.Button)], t.prototype, "BuyButton", void 0), i([L(cc.Button)], t.prototype, "GrayButton", void 0), i([L(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([L(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([L({
                    type: [y.default]
                })], t.prototype, "Toggles", void 0), i([L(cc.Node)], t.prototype, "ExpNode", void 0), i([L(cc.Node)], t.prototype, "RedNode", void 0), i([L(cc.Label)], t.prototype, "DiscountLabel", void 0), i([L(cc.Label)], t.prototype, "DiscountValue", void 0), i([R], t)
            }(l.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "./NodePool": "NodePool",
        "./SuperFundItem": "SuperFundItem"
    }],
    ManageStrongholdPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1480b/X5CNCL5DzUshQOfCq", "ManageStrongholdPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/ConfigData/ConfigDataComponent"),
            y = e("./StrongholdOperationPanel"),
            g = e("../../Components/RpcComponent"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../../Components/DataCenter"),
            C = e("../Components/StrongholdWarLogoComponent"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.MainTitle = null, t.SmallMap = null, t.LogoContainer = null, t.StrongholdIconArray = [], t.StrongholdTypeLabelArray = [], t.InfoTagLabelArray = [], t.StrongholdNumberRichText = null, t.RewardButton = null, t.RewardButtonLabel = null, t._strongholdPos = new Map, t._logoScale = [.43, .68, 1, 1, 1], t._qualitys = [1, 2, 3, 5], t._spriteComponent = [], t._ownNumber = [], t._weEffectsMap = new Map, t._strongholdInfos = {}, t._holyRankAddtion = 0, t._allianceCityIconIndex = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_STRONGHOLDWAR_DATA_HANDLER, this.RefreshStrongholdData, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_STRONGHOLDWAR_DATA_HANDLER, this.RefreshStrongholdData, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("StrongholdWarPanel/PNG/StrongholdWarAtlas"), n = this.LoadDynamicAsset("StrongholdWarPanel/Components/StrongholdWarLogoComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._strongholdWarAtlas = e[0], o._logoPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MainTitle.string = "StrongholdWar_Manage_Terrtory".ToUILocale(), this.RewardButtonLabel.string = "StrongholdWar_Manage_Btn_2".ToUILocale(), this.RewardButton.node.on("click", this.OnRewardClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._strongholdPos = t[0], this._widthScale = this.SmallMap.width / t[1], this._heightScale = this.SmallMap.height / t[2], this._myAlliance = t[3], this._strongholdInfos = t[4];
                    var n = t[5];
                    if (this._allianceCityIconIndex = t[6], n > 0) {
                        var o = f.ConfigDataComponent.Instance.GetConfigById(u.WarRankRewards_Config, n);
                        this._holyRankAddtion = o.ScoreBonus
                    }
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), t || (this._strongholdsConfig = f.ConfigDataComponent.Instance.GetArrayConfig(u.WarCity_Config), this._qualitys.forEach(function(e, t) {
                        n.StrongholdIconArray[t].spriteFrame = n._strongholdWarAtlas.getSpriteFrame("Stronghold_" + e), n.StrongholdTypeLabelArray[t].string = ("StrongholdWar_StrongholdQuality_" + e).ToUILocale()
                    }), this.SetLogoContainer(), this.SetMapUI()), this.BindRedDot()
                }, t.prototype.SetLogoContainer = function() {
                    for (var e in this._allianceCityIconIndex) {
                        var t = cc.instantiate(this._logoPrefab);
                        t.setParent(this.LogoContainer);
                        var n = this._allianceCityIconIndex[e],
                            o = this._strongholdWarAtlas.getSpriteFrame("Logo_City_" + n[0]);
                        t.getComponent(C.default).Init(o, this._strongholdInfos[n[1]].AllianceName)
                    }
                }, t.prototype.RefreshStrongholdData = function(e) {
                    if (e.CityMap) {
                        for (var t in e.CityMap) this._strongholdInfos[t] = e.CityMap[t];
                        this.SetMapUI()
                    }
                }, t.prototype.SetMapUI = function() {
                    var e = this;
                    this._ownNumber = [0, 0, 0], this._strongholdsConfig.forEach(function(t, n) {
                        if (!e._spriteComponent[n]) {
                            var o = new cc.Node;
                            o.setParent(e.SmallMap), e._spriteComponent[n] = o.addComponent(cc.Sprite);
                            var r = e._strongholdPos.get(t.Id);
                            o.name = t.Id.toString(), o.x = r.x * e._widthScale, o.y = r.y * e._heightScale, o.scale = e._logoScale[t.Type - 1], o.on(cc.Node.EventType.TOUCH_END, e.OnMapLogoTouchEnd, e)
                        }
                        var i = e._strongholdInfos[t.Id];
                        if (i.AllianceId) {
                            var a = e._allianceCityIconIndex[i.AllianceId][0];
                            e._spriteComponent[n].spriteFrame = 5 == t.Type ? e._strongholdWarAtlas.getSpriteFrame("Logo_Holy_" + a) : e._strongholdWarAtlas.getSpriteFrame("Logo_City_" + a), i.AllianceId == _.DataCenter.Instance.AllianceId ? (e._ownNumber[t.Type - 1]++, 4 == t.Type && (e._myMainCity = t.Id), i.State == m.WarCityStatus.Battle && e.ConfigLogoEffect(e._spriteComponent[n].node, t.Id)) : e._weEffectsMap.has(t.Id) && e._weEffectsMap.get(t.Id).removeFromParent(!1)
                        } else e._spriteComponent[n].spriteFrame = 5 == t.Type ? e._strongholdWarAtlas.getSpriteFrame("Logo_Neutral_Holy") : e._strongholdWarAtlas.getSpriteFrame("Logo_Neutral"), e._weEffectsMap.has(t.Id) && e._weEffectsMap.get(t.Id).removeFromParent(!1)
                    });
                    for (var t = 0, n = 0; n < this.InfoTagLabelArray.length; n++) n < this.InfoTagLabelArray.length - 1 ? (this.InfoTagLabelArray[n].string = "StrongholdWar_Manage_CanOwn".ToUILocale().Fmt(this._ownNumber[n]), t += this._ownNumber[n]) : this.InfoTagLabelArray[n].string = "StrongholdWar_Manage_HolyAddtion".ToUILocale().Fmt(this._holyRankAddtion / 10);
                    this.StrongholdNumberRichText.string = "StrongholdWar_Manage_HasOwn".ToUILocale().Fmt(t)
                }, t.prototype.ConfigLogoEffect = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._weEffectsMap.has(t) ? [3, 3] : this._logoWeEffectPrefab ? [3, 2] : (n = this, [4, p.AssetsManager.Instance.LoadAsset("StrongholdWarPanel/Spine/LogoWeEffect", cc.Prefab)]);
                                case 1:
                                    if (n._logoWeEffectPrefab = r.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._logoWeEffectPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    return (o = cc.instantiate(this._logoWeEffectPrefab)).setParent(e), this._weEffectsMap.set(t, o), [3, 4];
                                case 3:
                                    this._weEffectsMap.get(t).setParent(e), r.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.BindRedDot = function() {
                    I.RedDotManager.Instance.Bind(this.RewardButton.node, I.RedDotManager.Instance.RedDot.StrongholdWarTerritoryReawardBtnNode), I.RedDotManager.Instance.RefreshRedDotNode(I.RedDotManager.Instance.RedDot.StrongholdWarTerritoryReawardBtnNode)
                }, t.prototype.OnMapLogoTouchEnd = function(e) {
                    l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_MAP_SCROLLTOSTRONGHOLD, Number(e.target.name)), p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRewardClick = function() {
                    this.ShowStrongholdOperationPanel(y.OperationType.Reward)
                }, t.prototype.ShowStrongholdOperationPanel = function(e) {
                    var t = this;
                    switch (e) {
                        case y.OperationType.GiveUp:
                            var n = new c.Req_War_Action;
                            n.Type = m.WarActionType.GetARewards, n.Params = [0], g.RpcComponent.Instance.Call(n, function(n) {
                                p.UIManager.Instance.ShowUIPanel(h.PanelConfig.StrongholdOperationPanel.Path, e, n.Int2DArray, t._myAlliance.MyPost)
                            });
                            break;
                        case y.OperationType.Reward:
                            var o = new c.Req_War_Action;
                            o.Type = m.WarActionType.GetARewards, o.Params = [0], g.RpcComponent.Instance.Call(o, function(t) {
                                p.UIManager.Instance.ShowUIPanel(h.PanelConfig.StrongholdOperationPanel.Path, e, null, null, t.Int2DArray)
                            })
                    }
                }, t.prototype.onDestroy = function() {
                    p.AssetsManager.Instance.UnloadAsset(this._logoWeEffectPrefab)
                }, i([S(cc.Label)], t.prototype, "MainTitle", void 0), i([S(cc.Node)], t.prototype, "SmallMap", void 0), i([S(cc.Node)], t.prototype, "LogoContainer", void 0), i([S(cc.Sprite)], t.prototype, "StrongholdIconArray", void 0), i([S(cc.Label)], t.prototype, "StrongholdTypeLabelArray", void 0), i([S(cc.Label)], t.prototype, "InfoTagLabelArray", void 0), i([S(cc.RichText)], t.prototype, "StrongholdNumberRichText", void 0), i([S(cc.Button)], t.prototype, "RewardButton", void 0), i([S(cc.Label)], t.prototype, "RewardButtonLabel", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/StrongholdWarLogoComponent": "StrongholdWarLogoComponent",
        "./StrongholdOperationPanel": "StrongholdOperationPanel"
    }],
    ManualBattlePlayer: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c8696l0d71BArE5Ewu03zzf", "ManualBattlePlayer");
        var o, r = this && this.__extends || (o = function(e, t) {
            return (o = Object.setPrototypeOf || {
                    __proto__: []
                }
                instanceof Array && function(e, t) {
                    e.__proto__ = t
                } || function(e, t) {
                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                })(e, t)
        }, function(e, t) {
            function n() {
                this.constructor = e
            }
            o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
        });
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ManualBattlePlayer = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../../EZFramework/EZFramework"),
            s = e("../../../Consts/Consts"),
            l = e("../../Components/Components"),
            c = e("../Battle/BattleData"),
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.IsWaitForAction = !1, t.SelectedTargetId = 0, t.DoneHeroIds = {}, t.IsWaitForApi = !1, t._DefenderStationId2HeroId = {}, t._AttackerHeros = [], t
                }
                return r(t, e), t.prototype.Init = function(t, n) {
                    for (var o in void 0 === n && (n = 0), e.prototype.Init.call(this, t, n), a.Game.EventDispatcher.Only("manual_battle_hero_action", this.OnTouchHeroIcon, this), a.Game.EventDispatcher.Only("manual_battle_select_target", this.OnTouchHeroAvatar, this), this._DefenderStationId2HeroId = {}, this.HeroDatas) {
                        var r = this.HeroDatas[o];
                        r.HeroInfo.Id <= 0 || (r.Camp == s.CampType.Defender && (this._DefenderStationId2HeroId[r.HeroInfo.StationId] = r.HeroInfo.Id), r.Camp == s.CampType.Attacker && this._AttackerHeros.push(r))
                    }
                    this._AttackerHeros.sort(function(e, t) {
                        return e.HeroInfo.StationId < t.HeroInfo.StationId ? -1 : 1
                    })
                }, t.prototype.Update = function(e) {
                    !this.IsStart || this.IsPause || this.IsEnd || this.IsWaitForAction || (this._CurrentDataPlayTime += Math.floor(e * c.BattleData.BattlePlaySpeed * 1e3), this._Update())
                }, t.prototype._Update = function() {
                    if (!(this._CurrentDataPlayTime < this._CurrentDataDuration))
                        if (this._CurrentDataPlayTime = 0, this._CurrentDataVerifyStage) {
                            if (this._CurrentDataIndex == this.Report.Data.length - 1) return void this.WaitForAction();
                            this._CurrentDataIndex++, this._CurrentDataVerifyStage = !1;
                            var e = this.Report.Data[this._CurrentDataIndex];
                            if (e.DataType == s.BattleReportDataType.BattleResult) return void this.Settle();
                            e.DataType == s.BattleReportDataType.NewRound && (this.DoneHeroIds = {}), this._CurrentDataDuration = this.GetCurrentDataDuration(), this.ProcessReportDataEventCb && this.ProcessReportDataEventCb(this.Report.Data[this._CurrentDataIndex])
                        } else this._CurrentDataVerifyStage = !0, this._CurrentDataDuration = c.BattleData.ReportEventInterval, this.VerifyHeroData()
                }, t.prototype.WaitForAction = function() {
                    if (this.IsWaitForApi) this.IsWaitForAction = !1;
                    else if (!this.IsWaitForAction) {
                        if (this.IsWaitForAction = !0, this.SelectedTargetId > 0) {
                            var e = this.HeroDatas[this.SelectedTargetId];
                            e && !e.IsDead || (this.SelectedTargetId = 0)
                        }
                        if (this.SelectedTargetId <= 0) {
                            var t = null;
                            for (var n in this.HeroDatas) {
                                var o = this.HeroDatas[n];
                                o.Camp != s.CampType.Defender || o.IsDead || (!t || o.HeroInfo.StationId < t.HeroInfo.StationId) && (t = o)
                            }
                            t && (this.SelectedTargetId = t.HeroInfo.Id)
                        }
                    }
                }, t.prototype.OnTouchHeroIcon = function(e, t) {
                    console.log("OnTouchHeroIcon", e, t), this.IsWaitForApi || this.IsWaitForAction && (this.DoneHeroIds[e] || this.DoAction(e, t))
                }, t.prototype.OnTouchHeroAvatar = function(e) {
                    if (!this.IsWaitForApi && this.IsWaitForAction) {
                        var t = this._DefenderStationId2HeroId[e];
                        if (t) {
                            var n = this.HeroDatas[t];
                            if (n && !n.IsDead)
                                if (t != this.SelectedTargetId) {
                                    var o = 0;
                                    for (n.HeroInfo.StationId >= 6 ? o = 6 : n.HeroInfo.StationId >= 3 && (o = 3), i = 0; i < o; i++)
                                        if (this._DefenderStationId2HeroId[i]) {
                                            var r = this.HeroDatas[this._DefenderStationId2HeroId[i]];
                                            if (r && !r.IsDead) return
                                        } this.SelectedTargetId = t
                                } else
                                    for (var i = 0; i < this._AttackerHeros.length; i++)
                                        if (!this.DoneHeroIds[this._AttackerHeros[i].HeroInfo.Id] && !this._AttackerHeros[i].IsDead) {
                                            this.DoAction(this._AttackerHeros[i].HeroInfo.Id, 0);
                                            break
                                        }
                        }
                    }
                }, t.prototype.DoAction = function(e, t) {
                    var n = null,
                        o = null,
                        r = this;
                    new Promise(function(t, i) {
                        n = function(n) {
                            cc.log(n);
                            for (var o = 0; o < n.NewReportData.length; o++) r.Report.Data.push(n.NewReportData[o]);
                            r.IsWaitForApi = !1, r.IsWaitForAction = !1, r.DoneHeroIds[e] = 1, t(n)
                        }, o = function(e, t) {
                            r.IsWaitForApi = !1, i("Error: " + t + ", code: " + e)
                        }
                    }), this.IsWaitForApi = !0;
                    var a = new i.Req_Battle_ManualBattleAction;
                    a.Id = e, a.IsBurstAttack = t, a.TargetId = this.SelectedTargetId, l.RpcComponent.Instance.Call(a, n, o)
                }, t
            }(e("../Battle/BattlePlayer").BattlePlayer);
        n.ManualBattlePlayer = u, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattlePlayer": "BattlePlayer"
    }],
    MaskPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "66be2kdmWdA6aEJy0VnYbCL", "MaskPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.MaskPanel = void 0;
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Independent, !1, !1, !1, s.AssetUnloadMode.Resident), t.Bg0 = null, t.Bg1 = null, t.Bg2 = null, t._isShowingBg = !1, t._timer = 0, t._delay = 2, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.SetNodeState(!1), this.RoatateBg()
                }, t.prototype.RoatateBg = function() {
                    this._tween1 = cc.tween(this.Bg1).by(10, {
                        angle: 360
                    }).repeatForever(), this._tween2 = cc.tween(this.Bg2).by(10, {
                        angle: -360
                    }).repeatForever()
                }, t.prototype.DisPlay = function() {
                    this.node.active = !0
                }, t.prototype.update = function() {
                    this._isShowingBg || (this._timer >= this._delay && (this._isShowingBg = !0, this.StartShowingBg()), this._timer += cc.director.getDeltaTime())
                }, t.prototype.SetNodeState = function(e) {
                    this.Bg0.active = e, this.Bg1.active = e, this.Bg2.active = e
                }, t.prototype.StartShowingBg = function() {
                    this.SetNodeState(!0), this._tween1.start(), this._tween2.start()
                }, t.prototype.Close = function() {
                    this._tween1.stop(), this._tween2.stop(), this._timer = 0, this._isShowingBg = !1, this.SetNodeState(!1), this.node.active = !1
                }, i([u(cc.Node)], t.prototype, "Bg0", void 0), i([u(cc.Node)], t.prototype, "Bg1", void 0), i([u(cc.Node)], t.prototype, "Bg2", void 0), i([c], t)
            }(a.BaseUIPanel);
        n.MaskPanel = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    Mask: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "288d2yC/UxOIIZdf3xQtm+i", "Mask");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("./UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property;
        (function(e) {
            e[e.TouchEnd = 0] = "TouchEnd", e[e.MouseDown = 1] = "MouseDown"
        })(l || (l = {}));
        var y = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ClickMode = l.TouchEnd, t.HintNode = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function() {
                        if (this.node.opacity = 220, this.HintNode.active) switch (this.ClickMode) {
                            case l.TouchEnd:
                            case l.MouseDown:
                                this.node.on(cc.Node.EventType.TOUCH_END, this.OnClose, this)
                        }
                        return (e = this.HintNode.getComponent(cc.Sprite)) ? (e.sizeMode = cc.Sprite.SizeMode.RAW, e.trim = !1, p.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL && (e.spriteFrame = p.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("click_anywhere_hint")), [2]) : [2]
                    })
                })
            }, t.prototype.DisableClickEvent = function() {
                switch (this.HintNode.active = !1, this.ClickMode) {
                    case l.TouchEnd:
                    case l.MouseDown:
                        this.node.off(cc.Node.EventType.TOUCH_END, this.OnClose, this)
                }
            }, t.prototype.EnableClickEvent = function() {
                switch (this.HintNode.active = !0, this.ClickMode) {
                    case l.TouchEnd:
                    case l.MouseDown:
                        this.node.on(cc.Node.EventType.TOUCH_END, this.OnClose, this)
                }
            }, t.prototype.OnClose = function() {
                var e = this;
                this.scheduleOnce(function() {
                    var t = e.node.parent.getComponent(c.BaseUIPanel);
                    t ? t.UIType.IsStackPanel && !t.UIType.PopStackOnClose ? u.UIManager.Instance.BackUIPanel() : t.Close() : e.node.parent.active = !1
                }, 0)
            }, i([f({
                type: cc.Enum(l),
                displayName: "\u5173\u95ed\u65b9\u5f0f"
            })], t.prototype, "ClickMode", void 0), i([f(cc.Node)], t.prototype, "HintNode", void 0), i([h], t)
        }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./UIUtlity": "UIUtlity"
    }],
    MazeExploreFinalRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d4076gBPqJLl5lbXeajkyWR", "MazeExploreFinalRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/ItemComponent"),
            g = e("../../Components/DataCenter"),
            m = e("./MazeItemComponent"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Tag = null, t.ItemScroll = null, t.ItemsNode = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t._commonItemPrefab = null, t._mazeItemPrefab = null, t._selectNode = null, t._configData = null, t._userData = null, t._finalRewardIdx = -1, t._isSelectNew = !1, t._mazeItemNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleMazeExplore/MazeItemComponent", cc.Prefab)]).then(function(t) {
                                        e._commonItemPrefab = t[0], e._mazeItemPrefab = t[1]
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "explore_final_select".ToUILocale(), this.Tag.string = "explore_select_first".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0], this._isSelectNew = t[1], this._userData = g.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id), this._customItemArray = this._configData.CustomPart.Rewards
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this._selectNode = null, this._finalRewardIdx = -1, -1 != this._userData.IntArray[1] && (this._finalRewardIdx = this._userData.IntArray[1])
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetItems()
                }, t.prototype.SetItems = function() {
                    var e = this;
                    this._customItemArray.forEach(function(t, n) {
                        var o = t.Items[0],
                            r = t.Items[1],
                            i = t.Items[2];
                        if (!e._mazeItemNodes[n]) {
                            var a = cc.instantiate(e._mazeItemPrefab),
                                s = a.getChildByName("ItemNode"),
                                l = cc.instantiate(e._commonItemPrefab);
                            a.parent = e.ItemsNode, l.parent = s, e._mazeItemNodes[n] = a
                        }
                        var c = e._mazeItemNodes[n].getComponentInChildren(y.ItemComponent),
                            u = e._mazeItemNodes[n].getComponent(m.default);
                        c.node.name = n.toString(), u.init(), u.SetNum("explore_lock_level".ToUILocale().Fmt(i)), c.Init({
                            ItemId: o,
                            Count: r
                        }, y.ItemComponentType.ItemCommon), c.SetSelectFlagState(!1), c.SetLockFlag(!1), e._finalRewardIdx == n && (e._selectNode = c), null != e._selectNode && e._finalRewardIdx == n ? c.SetSelectFlagState(!0) : e._userData.IntArray[0] < i && c.SetLockFlag(!0, "lock_yellow")
                    })
                }, t.prototype.SetClickEvent = function() {
                    this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    if ("ItemNode" == t.parent.name) {
                        var n = t.getChildByName("LockFlag"),
                            o = t.getComponent(y.ItemComponent);
                        if (n.active) {
                            var r = this._configData.CustomPart.Rewards[e].Items[2];
                            return f.UIUtlity.ShowFloatingHint("mazeExplore_unlock".ToUILocale().Fmt(r)), void f.UIUtlity.ShowItemTip(o.ItemId, t)
                        }
                        null == this._selectNode ? o.SetSelectFlagState(!0) : (this._selectNode.SetSelectFlagState(!1), o.SetSelectFlagState(!0)), f.UIUtlity.ShowItemTip(o.ItemId, t), this._selectNode = o, this._finalRewardIdx = e
                    }
                }, t.prototype.OnBtnCancelClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnSureClick = function() {
                    if (null == this._selectNode) f.UIUtlity.ShowFloatingHint("explore_select_first".ToUILocale());
                    else {
                        if (I.default.CheckActivityIsEnd(this._configData.Common, !0)) return;
                        var e = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id);
                        if (e && e.Int2DArray && e.Int2DArray.length > 0) {
                            var t = this._configData.Rewards.findIndex(function(e) {
                                return 0 == e.ItemId
                            });
                            if (t > -1) {
                                var n = this._configData.Rewards[t].Id;
                                if (e.Int2DArray[0].Items.findIndex(function(e) {
                                        return e == n
                                    }) > -1) return void f.UIUtlity.ShowFloatingHint("explore_cant_change_final".ToUILocale())
                            }
                            this.RequestSelectReward()
                        }
                    }
                }, t.prototype.RequestSelectReward = function() {
                    var e = this,
                        t = new c.Req_Activity_MazeExploreSelectReward;
                    t.ActivityId = this._configData._id, t.Index = this._finalRewardIdx, u.RpcComponent.Instance.Call(t, function() {
                        l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_MAZEEXPLORE_SELECT_REWARD, e._isSelectNew), p.UIManager.Instance.BackUIPanel()
                    })
                }, t.prototype.onDestroy = function() {
                    this._mazeItemNodes = []
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Label)], t.prototype, "Tag", void 0), i([v(cc.ScrollView)], t.prototype, "ItemScroll", void 0), i([v(cc.Node)], t.prototype, "ItemsNode", void 0), i([v(cc.Button)], t.prototype, "BtnCancel", void 0), i([v(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([v(cc.Button)], t.prototype, "BtnSure", void 0), i([v(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./MazeItemComponent": "MazeItemComponent"
    }],
    MazeExploreFindGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cf1dfg1pHNDXYNzepvf5dtp", "MazeExploreFindGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("./GiftPackComponent1"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./NodePool"),
            m = e("../../Channel/ChannelManager"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/ItemComponent"),
            C = e("../../Auxiliary/GameRecord"),
            v = e("../../Components/Components"),
            b = e("../../RedDot/RedDotManager"),
            S = e("../../../Consts/GameEventIds"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp), t.Tittle = null, t.CustomLayout = null, t.Time = null, t.TimeValue = null, t._configData = null, t._itemPrefab = null, t._cellPrefab = null, t._isLayoutInit = !1, t._deadLine = 0, t._gifts = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnMallButtonClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(S.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnMallButtonClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(S.GameEventIds.ChangeDataDetail.Fmt(u.UserItem_Model._n_), this.DisPlay, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/GiftPackComponent"), this.LoadDynamicAsset(y.BundlePath.ItemComponent)]).then(function(e) {
                                        t._cellPrefab = e[0], t._itemPrefab = e[1], t._itemPool = new g.default(t._itemPrefab)
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._configData = t[0], this._deadLine = h.default.Instance.ComputeDeadTime(this._configData.Common), this._gifts = [], this._configData._Packs.forEach(function(e) {
                        n._gifts.push(e)
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "explore_findGift".ToUILocale(), this.Time.string = "explore_remain_time".ToUILocale(), this._offset = cc.v2()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this.InitCustomLayout(), C.default.SetItem(C.GameRecordDefine.MazeExploreRedDot, v.RpcComponent.Instance.ServerTime), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._configData._id), b.RedDotManager.Instance.RefreshInstanceRedDotNode(b.RedDotManager.Instance.InstanceRedDot.MazeExploreFindGiftBtnNode, {
                        Value1: this._configData._id
                    })
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab)), this.SortTaskData();
                    var e = this._gifts.length;
                    this.CustomLayout.RenderLayOut(e, 0, 0, this._offset)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (this.CustomLayout == t) {
                        var o = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                        o && o.Packs && e.forEach(function(e, t) {
                            var r = n._gifts[t].Id,
                                i = null == o.Packs[r] ? 0 : o.Packs[r].Items[0];
                            e.getComponent(f.default).SetTitle(n._gifts[t].Name).SetItems(n._itemPool, n._gifts[t].Items).SetButtonLabel(n._gifts[t].Money, n._gifts[t].VipPoint).SetDiscount(n._gifts[t].Discount).SetPurchaseLimit(n._gifts[t].LimitCount - i, n._gifts[t].LimitCount, n._gifts[t].LimitType).SetButtonClick(t, r)
                        })
                    }
                }, t.prototype.SortTaskData = function() {
                    var e = this,
                        t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id),
                        n = [];
                    this._gifts = [], this._configData._Packs.forEach(function(t) {
                        e._gifts.push(t)
                    }), t && t.Packs && (this._gifts.sort(function(e, n) {
                        var o = t.Packs[e.Id.toString()] && t.Packs[e.Id.toString()].Items[0] ? t.Packs[e.Id.toString()].Items[0] : 0,
                            r = t.Packs[n.Id.toString()] && t.Packs[n.Id.toString()].Items[0] ? t.Packs[n.Id.toString()].Items[0] : 0;
                        return o >= e.LimitCount && r < n.LimitCount ? 1 : o < e.LimitCount && r >= n.LimitCount ? -1 : e.LimitType && !n.LimitType ? 1 : !e.LimitType && n.LimitType ? -1 : void 0
                    }), this._gifts.forEach(function(o) {
                        if (o.UnlockCondition) {
                            var r = o.UnlockCondition;
                            (t.Packs[r.toString()] && t.Packs[r.toString()].Items[0] ? t.Packs[r.toString()].Items[0] : 0) >= e.FindGiftById(r).LimitCount ? n.push(r) : n.push(o.Id)
                        }
                    }), this.RemoveHiddenGift(n))
                }, t.prototype.OnItemClick = function(e, t) {
                    "ItemLayoutgif" == t.parent.name && I.UIUtlity.ShowItemTip(t.getComponent(_.ItemComponent).ItemId, t)
                }, t.prototype.OnMallButtonClick = function(e, t) {
                    this._offset = this.CustomLayout.ScrollView.getScrollOffset(), m.default.Instance.Pay(t, this._configData._id)
                }, t.prototype.CountDown = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 && l.UIManager.Instance.BackUIPanel(), this.TimeValue.string = h.default.ActivityTimeLeftFormat(t)
                }, t.prototype.FindGiftById = function(e) {
                    var t = null,
                        n = this._configData._Packs.findIndex(function(t) {
                            return t.Id == e
                        });
                    return n > -1 && (t = this._configData._Packs[n]), t
                }, t.prototype.RemoveHiddenGift = function(e) {
                    var t = this;
                    e.forEach(function(e) {
                        var n = t._gifts.findIndex(function(t) {
                            return t.Id == e
                        });
                        n > -1 && t._gifts.splice(n)
                    })
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear()
                }, i([A(cc.Label)], t.prototype, "Tittle", void 0), i([A(p.default)], t.prototype, "CustomLayout", void 0), i([A(cc.Label)], t.prototype, "Time", void 0), i([A(cc.Label)], t.prototype, "TimeValue", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./GiftPackComponent1": "GiftPackComponent1",
        "./NodePool": "NodePool"
    }],
    MazeExploreGetTimesPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "842acapcHxNI5B1wWEMWpty", "MazeExploreGetTimesPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/CustomLayout"),
            f = e("../../Components/DataCenter"),
            y = e("./ActivityTaskComponent"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Components/Components"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../../Consts/Etc"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp), t.Title = null, t.TaskScroll = null, t.TaskGrid = null, t.BtnGo = null, t.GoBtnLabel = null, t.BuyGiftLbl = null, t.GiftLbl = null, t._taskPrefab = null, t._itemPrefab = null, t._isLayoutInit = !1, t._configData = null, t._tasks = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_COMMON_TASK_REFRESH, this.UpdateScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_COMMON_TASK_REFRESH, this.UpdateScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/ActivityTaskComponent", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._taskPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetClickEvent();
                    var t = m.ConfigDataComponent.Instance.GetConfigById(u.CardCommonSummon_Config, I.CardCommonSummonType.MazeExplore).ConsumeItem[0].Items[0];
                    this.Title.string = "explore_get_timea".ToUILocale(), this.BuyGiftLbl.string = "explore_buy_gift".ToUILocale(), this.GoBtnLabel.string = "task_goto".ToUILocale(), this.GiftLbl.string = "explore_buy_gift_get_item".ToUILocale().Fmt(t.ToItemName())
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.TaskGrid.Init(this._taskPrefab, !1)), this.SortTasks();
                    var e = this._tasks.length;
                    this.TaskGrid.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.TaskGrid == t && e.forEach(function(e, t) {
                        var o = e.getComponent(y.default),
                            r = {};
                        r.itemPrefab = n._itemPrefab, r.activityId = n._configData._id, r.task = n._tasks[t], o.initData(r)
                    })
                }, t.prototype.UpdateScrollView = function() {
                    this.InitCustomLayout()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnGo.node.on("click", this.OnBtnGoClick, this)
                }, t.prototype.OnBtnGoClick = function() {
                    l.UIManager.Instance.ShowUIPanel(g.PanelConfig.MazeExploreFindGiftPanel.Path, this._configData), p.UIManager.Instance.BackUIPanel()
                }, t.prototype.SortTasks = function() {
                    var e = this;
                    this._tasks = this._configData._Tasks, this._tasks.sort(function(t, n) {
                        var o = e._configData._id * _.Etc.Multiplier + t.Id,
                            r = f.DataCenter.Instance.GetDataById(c.UserTask_Model, o),
                            i = e._configData._id * _.Etc.Multiplier + n.Id,
                            a = f.DataCenter.Instance.GetDataById(c.UserTask_Model, i);
                        if (r && a) return r.IsCompleted && !a.IsCompleted ? 1 : !r.IsCompleted && a.IsCompleted ? -1 : r.Progress >= t.TotalCount && a.Progress < n.TotalCount ? -1 : r.Progress < t.TotalCount && a.Progress >= n.TotalCount ? 1 : t.SortId - n.SortId
                    })
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.ScrollView)], t.prototype, "TaskScroll", void 0), i([b(h.default)], t.prototype, "TaskGrid", void 0), i([b(cc.Button)], t.prototype, "BtnGo", void 0), i([b(cc.Label)], t.prototype, "GoBtnLabel", void 0), i([b(cc.Label)], t.prototype, "BuyGiftLbl", void 0), i([b(cc.Label)], t.prototype, "GiftLbl", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CustomLayout": "CustomLayout",
        "./ActivityTaskComponent": "ActivityTaskComponent"
    }],
    MazeExplorePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a205asJX+1C8aKod5bKfVwY", "MazeExplorePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../Components/Components"),
            I = e("../Components/ItemComponent"),
            _ = e("./ExploreItem"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Components/CustomProgressBar"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = new cc.Vec2(-418, 300.897),
            T = new cc.Vec2(0, 21.187),
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.NodeNoSelect = null, t.NodeSelect = null, t.TalkNode = null, t.AddBtn = null, t.TalkLbl = null, t.RewardNode = null, t.ChangeBtn = null, t.PreviewBtn = null, t.PreviewLbl = null, t.NextBtn = null, t.NextLbl = null, t.ItemsNode = null, t.SlmEff = null, t.NodeEff = null, t.LevelRtx = null, t.ConsumeLbl = null, t.ItemSprite = null, t.NumLbl = null, t.TimesProgress = null, t.TimesLbl = null, t.TimesBtn = null, t.TimesSpine = null, t.RuleBtn = null, t.TitleLbl = null, t.MilkCurrency = null, t.TimeLbl = null, t.FindGiftBtn = null, t.FindGiftLbl = null, t.GetBtn = null, t.GetLbl = null, t.ReturnBtn = null, t._itemPrefab = null, t._itemNode = null, t._slmNodePrefab = null, t._slmNodes = [], t._configData = null, t._deadLine = 0, t._slmNodesPos = [], t._slmDatas = [], t._activityId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_MAZEEXPLORE_FINALREWARDCLICK, this.UpdateFianlReward, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_MAZEEXPLORE_SELECT_REWARD, this.SelectFianlReward, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_MAZEEXPLORE_LOCK, this.LockSlmNode, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_MAZEEXPLORE_UNLOCK, this.UnlockSlmNode, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_MAZEEXPLORE_UPDATE_INFO, this.ClickSlmNode, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_MAZEEXPLORE_FINALREWARDCLICK, this.UpdateFianlReward, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_MAZEEXPLORE_SELECT_REWARD, this.SelectFianlReward, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_MAZEEXPLORE_LOCK, this.LockSlmNode, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_MAZEEXPLORE_UNLOCK, this.UnlockSlmNode, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_MAZEEXPLORE_UPDATE_INFO, this.ClickSlmNode, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/ExploreItem", cc.Prefab)]).then(function(t) {
                                        e._itemPrefab = t[0], e._slmNodePrefab = t[1], e._itemNode = cc.instantiate(e._itemPrefab);
                                        for (var n = 0; n < 30; n++) {
                                            var o = cc.instantiate(e._slmNodePrefab);
                                            o.setParent(e.ItemsNode), e._slmNodes.push(o)
                                        }
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PreviewLbl.string = "explore_preview".ToUILocale(), this.NextLbl.string = "explore_next".ToUILocale(), this.ConsumeLbl.string = "explore_consume".ToUILocale(), this.FindGiftLbl.string = "explore_findGift".ToUILocale(), this.GetLbl.string = "explore_getMroe".ToUILocale(), this.RuleBtn.node.on("click", this.OnRuleButtonClick, this), this.ReturnBtn.node.on("click", this.OnReturnButtonClick, this), this.AddBtn.node.on("click", this.OnAddButtonClick, this), this.ChangeBtn.node.on("click", this.OnChangeButtonClick, this), this.PreviewBtn.node.on("click", this.OnPreviewClick, this), this.NextBtn.node.on("click", this.OnNextClick, this), this.TimesBtn.node.on("click", this.OnTimesClick, this), this.FindGiftBtn.node.on("click", this.OnFindGiftClick, this), this.GetBtn.node.on("click", this.OnGetClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._configData = c.DataCenter.Instance.ActivityConfigs[n], this._activityId = this._configData._id, this._deadLine = g.default.Instance.ComputeDeadTime(this._configData.Common), this.TitleLbl.string = this._configData.Common.Title, this.SetExploreItemData(!1)
                }, t.prototype.DisPlay = function(t) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this.UpdateInfo(), this.SetSlmNodes(), v.RedDotManager.Instance.BindInstance(this.TimesBtn.node, v.RedDotManager.Instance.InstanceRedDot.MazeExploreTimesBtnNode, {
                                Value1: this._configData._id
                            }), v.RedDotManager.Instance.BindInstance(this.FindGiftBtn.node, v.RedDotManager.Instance.InstanceRedDot.MazeExploreFindGiftBtnNode, {
                                Value1: this._configData._id
                            }), v.RedDotManager.Instance.BindInstance(this.GetBtn.node, v.RedDotManager.Instance.InstanceRedDot.MazeExploreGetMoreBtnNode, {
                                Value1: this._configData._id
                            }), v.RedDotManager.Instance.RefreshInstanceRedDotNode(v.RedDotManager.Instance.InstanceRedDot.MazeExploreNode, {
                                Value1: this._configData._id
                            }), [2]
                        })
                    })
                }, t.prototype.UpdateInfo = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.SetTopInfo(), this.SetProgress(), this.SetCurrency(), this.SetConsume(), [2]
                        })
                    })
                }, t.prototype.SetCurrency = function() {
                    var e = this,
                        t = m.ConfigDataComponent.Instance.GetConfigById(p.CardCommonSummon_Config, C.CardCommonSummonType.MazeExplore).ConsumeItem;
                    this.MilkCurrency.Init(t[0].Items[0]), this.MilkCurrency.SetClickCallBack(function() {
                        l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MazeExploreGetTimesPanel.Path, e._configData)
                    })
                }, t.prototype.SetTopInfo = function() {
                    var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    if (e && e.IntArray && e.IntArray.length > 1) {
                        if (this.NodeNoSelect.active = -1 == e.IntArray[1], this.NodeSelect.active = e.IntArray[1] > -1, this.TalkNode.active = -1 == e.IntArray[1] || this.CheckIsAllGet() || this.CheckFinalRewardIsGet(), -1 == e.IntArray[1] ? this.TalkLbl.string = "explore_talk".ToUILocale() : this.CheckFinalRewardIsGet() && e.IntArray[0] != this._configData.CustomPart.Stage ? this.TalkLbl.string = "explore_this_level_reward_received".ToUILocale() : this.CheckIsAllGet() && (this.TalkLbl.string = "explore_get_all".ToUILocale()), e.IntArray[1] > -1) {
                            var t = e.IntArray[1],
                                n = this._configData.CustomPart.Rewards[t].Items[0],
                                o = this._configData.CustomPart.Rewards[t].Items[1];
                            this._itemNode.getComponent(I.ItemComponent).Init({
                                ItemId: n,
                                Count: o
                            }, I.ItemComponentType.ItemCommon), this._itemNode.getComponent(I.ItemComponent).SetSelectFlagState(!1), this._itemNode.scale = .69, this._itemNode.parent = this.RewardNode, e.Int2DArray[0].Items.findIndex(function(e) {
                                return 1 == e
                            }) > -1 && this._itemNode.getComponent(I.ItemComponent).SetSelectFlagState(!0)
                        }
                        this.LevelRtx.string = "explore_level".ToUILocale().Fmt(e.IntArray[0]), this.NextBtn.node.active = this.CheckNextBtnActive()
                    }
                }, t.prototype.SetConsume = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e = m.ConfigDataComponent.Instance.GetConfigById(p.CardCommonSummon_Config, C.CardCommonSummonType.MazeExplore).ConsumeItem, t = e[0].Items[0], n = e[0].Items[1], this.NumLbl.string = n.toString(), o = g.default.Instance.GetItemPathById(t), [4, this.LoadDynamicAsset(o, cc.SpriteFrame)];
                                case 1:
                                    return r = i.sent(), this.isValid ? (this.ItemSprite.spriteFrame = r, [2]) : (l.AssetsManager.Instance.UnloadAsset(r), [2])
                            }
                        })
                    })
                }, t.prototype.SetProgress = function() {
                    var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    this.TimesLbl.string = "explore_times".ToUILocale().Fmt(e.IntValue, this.GetNearestTaskTimes()), this.TimesProgress.progress = e.IntValue / this.GetNearestTaskTimes(), this.TimesSpine.node.active = e.IntValue >= this.GetNearestTaskTimes() && !this.CheckIsAllReceiveTaskTimes()
                }, t.prototype.SetSlmNodes = function() {
                    var e = this;
                    this._slmNodesPos.length > 0 && (this._slmNodesPos = []), this._slmNodes.forEach(function(t, n) {
                        var o = Math.floor(n / 6),
                            r = n % 6;
                        t.x = A.x + 167 * r, t.y = A.y - 162 * o;
                        var i = new cc.Vec2(A.x + 167 * r, A.y - 162 * o);
                        e._slmNodesPos.push(i)
                    })
                }, t.prototype.SetSlmMoveEff = function() {
                    var e = this;
                    this._slmNodes.forEach(function(t, n) {
                        cc.tween(t).to(.5, {
                            x: T.x,
                            y: T.y
                        }, {
                            easing: "easeOutQuad"
                        }).call(function() {
                            t.active = !1, t.x = e._slmNodesPos[n].x, t.y = e._slmNodesPos[n].y
                        }).start()
                    }), this.scheduleOnce(function() {
                        e.SlmEff.setAnimation(0, "Ani_effect_mizhentanbao_xipai", !1)
                    }, .33), this.scheduleOnce(function() {
                        e.SetExploreItemData(!0), e._slmNodes.forEach(function(e) {
                            e.active = !0, e.getComponent(_.default).SetSlmSpine()
                        })
                    }, 1.23)
                }, t.prototype.CountDown = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 && l.UIManager.Instance.BackUIPanel(), this.TimeLbl.string = "explore_time".ToUILocale().Fmt(g.default.ActivityTimeLeftFormat(t))
                }, t.prototype.UpdateFianlReward = function(e) {
                    var t = this;
                    this.SetTopInfo(), this.SetCurrency(), this.SetProgress();
                    var n = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    if (n && n.IntArray && n.IntArray.length > 0)
                        if (n.IntArray[0] != this._configData.CustomPart.Stage) {
                            var o = [];
                            e.forEach(function(e) {
                                var t = new u.UserItem_Model;
                                t.ItemId = e.Items[0], t.Count = e.Items[1], o.push(t)
                            }), l.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.DisplayRewardsPanel.Path, o), l.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.HintPanel.Path, "", "explore_go_next".ToUILocale(), "cancel".ToUILocale(), function() {}, "ok".ToUILocale(), function() {
                                t.OnNextClick()
                            })
                        } else f.UIUtlity.ShowHintPanel("", "explore_get_all_tip".ToUILocale(), null, function() {}, "ok".ToUILocale(), function() {})
                }, t.prototype.SelectFianlReward = function(e) {
                    e && this.SetSlmMoveEff()
                }, t.prototype.ClickSlmNode = function() {
                    this.SetCurrency(), this.SetProgress()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardNode.children.indexOf(t) && l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MazeExploreFinalRewardPanel.Path, this._configData, !1)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "explore_mainRule".ToUILocale(),
                        titles: ["rule_subtittle".ToUILocale()],
                        contents: ["explore_contentRule".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnAddButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MazeExploreFinalRewardPanel.Path, this._configData, !0)
                }, t.prototype.OnChangeButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MazeExploreFinalRewardPanel.Path, this._configData, !1)
                }, t.prototype.OnPreviewClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MazeExploreRewardPanel.Path, this._configData)
                }, t.prototype.OnNextClick = function() {
                    var e = this;
                    if (!g.default.CheckActivityIsEnd(this._configData.Common, !0)) {
                        var t = new u.Req_Activity_MazeExploreNextStage;
                        t.ActivityId = this._configData._id, c.RpcComponent.Instance.Call(t, function() {
                            e.NodeEff.setAnimation(0, "Ani_effect_mizhentanbao_shuaxin", !1), e.SetExploreItemData(!0), e.UpdateInfo()
                        })
                    }
                }, t.prototype.OnTimesClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MazeExploreTimesRewardPanel.Path, this._configData)
                }, t.prototype.OnFindGiftClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MazeExploreFindGiftPanel.Path, this._configData)
                }, t.prototype.OnGetClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MazeExploreGetTimesPanel.Path, this._configData)
                }, t.prototype.GetNearestTaskTimes = function() {
                    for (var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), t = 0, n = 0, o = 0; o < this._configData.Tasks.length; o++)
                        if (!e.IntMap[this._configData.Tasks[o].Id]) {
                            t = this._configData.Tasks[o].Id;
                            break
                        } if (t) {
                        var r = this._configData.Tasks.findIndex(function(e) {
                            return e.Id == t
                        });
                        r > -1 && (n = this._configData.Tasks[r].TotalCount)
                    } else {
                        var i = this._configData.Tasks.length;
                        n = this._configData.Tasks[i - 1].TotalCount
                    }
                    return n
                }, t.prototype.CheckIsAllReceiveTaskTimes = function() {
                    for (var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id), t = !0, n = 0; n < this._configData.Tasks.length; n++)
                        if (!e.IntMap[this._configData.Tasks[n].Id]) {
                            t = !1;
                            break
                        } return t
                }, t.prototype.SetExploreItemData = function(e) {
                    var t = this;
                    this._slmDatas = [];
                    var n = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id),
                        o = m.ConfigDataComponent.Instance.GetConfigById(p.CardCommonSummon_Config, C.CardCommonSummonType.MazeExplore).ConsumeItem,
                        r = o[0].Items[0],
                        i = o[0].Items[1];
                    if (n && n.IntArray && n.IntArray.length > 1) {
                        if (-1 == n.IntArray[1]) {
                            var a = -1;
                            this._configData.Rewards.forEach(function(e) {
                                for (var n = 0; n < e.Copies; n++) {
                                    a++;
                                    var o = {};
                                    o.ID = e.Id, o.ItemId = e.ItemId, o.Count = e.Count, o.Index = a, o.RewardIdx = -1, o.ActivityId = t._activityId, o.ConsumeId = r, o.ConsumeNum = i, o.ConfigData = t._configData, t._slmDatas.push(o)
                                }
                            })
                        } else n.Int2DArray.forEach(function(e) {
                            e.Items.forEach(function(e, o) {
                                var a = {};
                                a.ID = e;
                                var s = t.getItemInfoByID(e);
                                s && (a.ItemId = s.itemId, a.Count = s.itmeNum), a.Index = o, a.RewardIdx = n.IntArray[1], a.ActivityId = t._activityId, a.ConsumeId = r, a.ConsumeNum = i, a.ConfigData = t._configData, t._slmDatas.push(a)
                            })
                        });
                        this._slmNodes.forEach(function(n, o) {
                            n.getComponent(_.default).Init(t._slmDatas[o], e)
                        })
                    }
                }, t.prototype.CheckIsAllGet = function() {
                    var e = !1,
                        t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    if (t && t.IntArray && t.IntArray.length > 0)
                        if (t.IntArray[0] >= this._configData.CustomPart.Stage) {
                            var n = this._configData.Rewards.findIndex(function(e) {
                                    return 0 == e.ItemId
                                }),
                                o = this._configData.Rewards[n].Id;
                            t.Int2DArray.forEach(function(t) {
                                var n = t.Items.findIndex(function(e) {
                                    return e == o
                                });
                                e = n > -1
                            })
                        } else e = !1;
                    return e
                }, t.prototype.LockSlmNode = function() {
                    this._slmNodes.forEach(function(e) {
                        e.getComponent(_.default).isLock = !0
                    })
                }, t.prototype.UnlockSlmNode = function() {
                    this._slmNodes.forEach(function(e) {
                        e.getComponent(_.default).isLock = !1
                    })
                }, t.prototype.getItemInfoByID = function(e) {
                    var t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    if (t && t.IntArray && t.IntArray.length > 1) {
                        var n = {},
                            o = this._configData.Rewards.findIndex(function(t) {
                                return t.Id == e
                            });
                        return o > -1 && (this._configData.Rewards[o].ItemId ? (n.itemId = this._configData.Rewards[o].ItemId, n.itmeNum = this._configData.Rewards[o].Count) : (n.itemId = this._configData.CustomPart.Rewards[t.IntArray[1]].Items[0], n.itmeNum = this._configData.CustomPart.Rewards[t.IntArray[1]].Items[1])), n
                    }
                }, t.prototype.CheckNextBtnActive = function() {
                    var e = !1,
                        t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    return t && t.IntArray && t.IntArray.length > 0 && t.IntArray[0] != this._configData.CustomPart.Stage && this.CheckFinalRewardIsGet() && (e = !0), e
                }, t.prototype.CheckFinalRewardIsGet = function() {
                    var e = !1,
                        t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    return t && t.Int2DArray && t.Int2DArray.length > 0 && t.Int2DArray[0].Items.findIndex(function(e) {
                        return 1 == e
                    }) > -1 && (e = !0), e
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([P(cc.Node)], t.prototype, "NodeNoSelect", void 0), i([P(cc.Node)], t.prototype, "NodeSelect", void 0), i([P(cc.Node)], t.prototype, "TalkNode", void 0), i([P(cc.Button)], t.prototype, "AddBtn", void 0), i([P(cc.Label)], t.prototype, "TalkLbl", void 0), i([P(cc.Node)], t.prototype, "RewardNode", void 0), i([P(cc.Button)], t.prototype, "ChangeBtn", void 0), i([P(cc.Button)], t.prototype, "PreviewBtn", void 0), i([P(cc.Label)], t.prototype, "PreviewLbl", void 0), i([P(cc.Button)], t.prototype, "NextBtn", void 0), i([P(cc.Label)], t.prototype, "NextLbl", void 0), i([P(cc.Node)], t.prototype, "ItemsNode", void 0), i([P(sp.Skeleton)], t.prototype, "SlmEff", void 0), i([P(sp.Skeleton)], t.prototype, "NodeEff", void 0), i([P(cc.RichText)], t.prototype, "LevelRtx", void 0), i([P(cc.Label)], t.prototype, "ConsumeLbl", void 0), i([P(cc.Sprite)], t.prototype, "ItemSprite", void 0), i([P(cc.Label)], t.prototype, "NumLbl", void 0), i([P(b.default)], t.prototype, "TimesProgress", void 0), i([P(cc.Label)], t.prototype, "TimesLbl", void 0), i([P(cc.Button)], t.prototype, "TimesBtn", void 0), i([P(sp.Skeleton)], t.prototype, "TimesSpine", void 0), i([P(cc.Button)], t.prototype, "RuleBtn", void 0), i([P(cc.Label)], t.prototype, "TitleLbl", void 0), i([P(y.default)], t.prototype, "MilkCurrency", void 0), i([P(cc.Label)], t.prototype, "TimeLbl", void 0), i([P(cc.Button)], t.prototype, "FindGiftBtn", void 0), i([P(cc.Label)], t.prototype, "FindGiftLbl", void 0), i([P(cc.Button)], t.prototype, "GetBtn", void 0), i([P(cc.Label)], t.prototype, "GetLbl", void 0), i([P(cc.Button)], t.prototype, "ReturnBtn", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./ExploreItem": "ExploreItem"
    }],
    MazeExploreRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0dda6W/QZpAMIDy5nPdFVbN", "MazeExploreRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Components/ItemComponent"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./MazeItemComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp), t.Tittle = null, t.Content = null, t._itemPrefab = null, t._mazeItemPrefab = null, t._configData = null, t._userData = null, t._itemNodes = [], t._mazeItemComponent = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleMazeExplore/MazeItemComponent", cc.Prefab)]).then(function(t) {
                                        e._itemPrefab = t[0], e._mazeItemPrefab = t[1]
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0], this._userData = h.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id), this.Tittle.string = "explore_preview".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitGroupGrid()
                }, t.prototype.InitGroupGrid = function() {
                    var e = this;
                    this._configData.Rewards.forEach(function(t, n) {
                        if (!e._mazeItemComponent[n]) {
                            var o = cc.instantiate(e._mazeItemPrefab);
                            e._mazeItemComponent[n] = o, e._mazeItemComponent[n].parent = e.Content
                        }
                        if (!e._itemNodes[n]) {
                            var r = cc.instantiate(e._itemPrefab);
                            e._itemNodes[n] = r;
                            var i = e._mazeItemComponent[n].getChildByName("ItemNode");
                            e._itemNodes[n].parent = i
                        }
                        var a = e._itemNodes[n].getComponent(d.ItemComponent),
                            s = e._mazeItemComponent[n].getComponent(y.default);
                        if (s.init(), t.ItemId) a.Init({
                            ItemId: t.ItemId,
                            Count: t.Count
                        }, d.ItemComponentType.ItemCommon);
                        else {
                            var l = e._userData.IntArray[1],
                                c = e._configData.CustomPart.Rewards[l].Items;
                            a.Init({
                                ItemId: c[0],
                                Count: c[1]
                            }, d.ItemComponentType.ItemCommon), s.SetFinal(!0, "exlore_final".ToUILocale())
                        }
                        var u = e.GetRewardNumDescById(t.Id);
                        s.SetNum(u)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    p.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, t.prototype.GetRewardNumDescById = function(e) {
                    var t = 0,
                        n = 0;
                    return this._configData.Rewards.forEach(function(t) {
                        t.Id == e && (n = t.Copies)
                    }), this._userData.Int2DArray.forEach(function(n) {
                        n.Items.forEach(function(n) {
                            n == e && t++
                        })
                    }), "<color=" + (n - t > 0 ? "#FFFFFF" : "#FF4B4B") + ">" + (n - t) + "</c><color=#FFFFFF>/" + n + "</c>"
                }, t.prototype.onDestroy = function() {
                    this._itemNodes = []
                }, i([I(cc.Label)], t.prototype, "Tittle", void 0), i([I(cc.Node)], t.prototype, "Content", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./MazeItemComponent": "MazeItemComponent"
    }],
    MazeExploreTimesRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ac60esFL7lBHbVJxUNAYwu0", "MazeExploreTimesRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../Components/CustomLayout"),
            d = e("./TimesRewardComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp), t.Tittle = null, t.CustomLayout = null, t._configData = null, t._itemPrefab = null, t._cellPrefab = null, t._isLayoutInit = !1, t._tasks = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_MAZEEXPLORE_CLOSE, this.ClosePanel, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_MAZEEXPLORE_RECEIVE_REWARD, this.UpdateScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_MAZEEXPLORE_CLOSE, this.ClosePanel, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_MAZEEXPLORE_RECEIVE_REWARD, this.UpdateScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/Component/TimesRewardComponent", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._cellPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0]
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "explore_times_reward".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    this.InitCustomLayout(), e.prototype.DisPlay.call(this, t)
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._cellPrefab)), this.SortTaskData();
                    var e = this._tasks.length;
                    this.CustomLayout.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = e.getComponent(d.default),
                            r = {};
                        r.activityId = n._configData._id, r.itemPrefab = n._itemPrefab, r.timesTask = n._tasks[t], o.initData(r)
                    })
                }, t.prototype.SortTaskData = function() {
                    var e = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._configData._id);
                    this._tasks = this._configData.Tasks, e && e.IntMap && this._tasks.sort(function(t, n) {
                        return e.IntMap[t.Id] && !e.IntMap[n.Id] ? 1 : !e.IntMap[t.Id] && e.IntMap[n.Id] ? -1 : t.TotalCount - n.TotalCount
                    })
                }, t.prototype.ClosePanel = function() {
                    f.UIManager.Instance.BackUIPanel()
                }, t.prototype.UpdateScrollView = function() {
                    this.InitCustomLayout()
                }, i([I(cc.Label)], t.prototype, "Tittle", void 0), i([I(p.default)], t.prototype, "CustomLayout", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "./TimesRewardComponent": "TimesRewardComponent"
    }],
    MazeItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "51338XPwdREq5VmH9ZBOujX", "MazeItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.NumRtx = null, t.FinalImg = null, t.FinalLbl = null, t
                }
                return r(t, e), t.prototype.init = function() {
                    this.NumRtx.node.active = !1, this.FinalImg.node.active = !1
                }, t.prototype.SetNum = function(e) {
                    this.NumRtx.node.active = !0, this.NumRtx.string = e
                }, t.prototype.SetFinal = function(e, t) {
                    this.FinalImg.node.active = e, e && (this.FinalImg.spriteFrame = a.UIUtlity.COMMON_ATLAS4.getSpriteFrame("discount_bg"), this.FinalLbl.string = t)
                }, i([c(cc.Node)], t.prototype, "ItemNode", void 0), i([c(cc.RichText)], t.prototype, "NumRtx", void 0), i([c(cc.Sprite)], t.prototype, "FinalImg", void 0), i([c(cc.Label)], t.prototype, "FinalLbl", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    MegaMask: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0037csKvbZOBpXk+TXcgpgl", "MegaMask");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.pButton = null, t.pRoot = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.pButton.node.on("click", this.HideSelf.bind(this), this)
                }, t.prototype.HideSelf = function() {
                    this.pRoot.active = !1
                }, i([l(cc.Button)], t.prototype, "pButton", void 0), i([l(cc.Node)], t.prototype, "pRoot", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    MiraculousEquipTip: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7582b8XUtNByaVlrcBfb+xM", "MiraculousEquipTip");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../Components/Components"),
            d = e("../Components/ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.EquipName = null, t.EquipType = null, t.EquipDesc = null, t.ItemContainer = null, t.MainNode = null, t.MaskBGNode = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent), [4, Promise.all([t]).then(function(e) {
                                        n._itemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.MaskBGNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskBGNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._itemId = t[0], this._clickNode = t[1], this._equipType = t[2]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetItem(), this.SetMultiLang(), this.RepositionPanel()
                }, t.prototype.SetItem = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.ItemContainer), e.getComponent(d.ItemComponent).Init({
                        ItemId: this._itemId
                    })
                }, t.prototype.SetMultiLang = function() {
                    this.EquipName.string = this._itemId.ToItemName(), this.EquipType.string = "<outline  color = #000000 width = 3>" + "miraculousEquipTipType".ToUILocale().Fmt("<color = #ffffff>" + this._equipType + "</c>") + "</outline>", this.EquipDesc.string = p.ConfigDataComponent.Instance.GetLocale("ItemBase_desc_" + this._itemId)
                }, t.prototype.RepositionPanel = function() {
                    if (this.MainNode.x = 0, this.MainNode.y = 0, null != this._clickNode) {
                        var e = this._clickNode.getParent().convertToWorldSpaceAR(this._clickNode.getPosition()),
                            t = this.MainNode.convertToNodeSpaceAR(e),
                            n = this.GetRealitySize(this._clickNode);
                        t.x += (this.MainNode.width - n[0]) / 2, t.y += n[1] / 2 + this.MainNode.height;
                        var o = (u.UIUtlity.DESIGN_SCREEN_WIDTH - this.MainNode.width) / 2,
                            r = -1 * o,
                            i = u.UIUtlity.DESIGN_SCREEN_HEIGHT / 2,
                            a = -1 * (u.UIUtlity.DESIGN_SCREEN_HEIGHT / 2 - this.MainNode.height);
                        t.x > o - 30 ? t.x = o - 30 : t.x < r + 30 && (t.x = r + 30), t.y > i - 30 ? t.y = i - 30 : t.y < a + 30 && (t.y = a + 30), this.MainNode.setPosition(t)
                    }
                }, t.prototype.GetRealitySize = function(e) {
                    for (var t = e.width, n = e.height; null != e.parent;) t *= e.scaleX, n *= e.scaleY, e = e.parent;
                    return [t, n]
                }, i([y(cc.Label)], t.prototype, "EquipName", void 0), i([y(cc.RichText)], t.prototype, "EquipType", void 0), i([y(cc.RichText)], t.prototype, "EquipDesc", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([y(cc.Node)], t.prototype, "MainNode", void 0), i([y(cc.Node)], t.prototype, "MaskBGNode", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ModeLogoItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "68889URqxNKCIiThWlBuvQ9", "ModeLogoItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../RedDot/RedDotManager"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("./WelfareFramePanel"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Label = null, t.MainSprite = null, t.LabelBG = null, t.Lock = null, t.Halo = null, t
                }
                var n;
                return r(t, e), n = t, Object.defineProperty(t.prototype, "IsApproach", {
                    get: function() {
                        return this._isApproach
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.SetState = function(e, t) {
                    return this._isApproach = e, t != l.Mode.AttentionGift && t != l.Mode.BindSNS ? (e ? (this.SetLabelNormal(), s.UIUtlity.OffSpriteGray(this.MainSprite)) : (this.SetLabelLocked(), s.UIUtlity.OnSpriteGray(this.MainSprite)), this.Lock.active = !e) : (this.node.active = e, this.Lock.active = !1), this
                }, t.prototype.SetInfo = function(e, t) {
                    this._prefabName = e, this._extraParams = t
                }, t.prototype.SetRedDot = function(e) {
                    return this._redDot = e, this._instanceRedDot = null, this
                }, t.prototype.GetPrefabName = function() {
                    return this._prefabName
                }, t.prototype.GetParams = function() {
                    return this._extraParams
                }, t.prototype.SetLogo = function(e) {
                    return this.MainSprite.spriteFrame = e, this
                }, t.prototype.SetName = function(e) {
                    return this.Label.string = e, this
                }, t.prototype.SetHalo = function(e) {
                    this.Halo.spriteFrame = e, n._chosenLogoItem && n._chosenLogoItem.UnsetHalo(), n._chosenLogoItem = this
                }, t.prototype.SetInstanceRedDot = function(e) {
                    this._instanceRedDot = e, this._redDot = null
                }, t.prototype.SetActivityId = function(e) {
                    this._activityId = e
                }, t.prototype.UnsetHalo = function() {
                    this.Halo.spriteFrame = null, this._isApproach ? this.SetLabelNormal() : this.SetLabelLocked()
                }, t.prototype.BindRedDot = function() {
                    this._redDot ? a.RedDotManager.Instance.Bind(this.node, this._redDot) : this._instanceRedDot && this._activityId && a.RedDotManager.Instance.BindInstance(this.node, this._instanceRedDot, {
                        Value1: this._activityId
                    })
                }, t.prototype.SetLabelChosen = function() {
                    this.SetLabel(new cc.Color(254, 217, 74), new cc.Color(32, 36, 52))
                }, t.prototype.SetLabelNormal = function() {
                    this.SetLabel(cc.Color.WHITE, new cc.Color(32, 36, 52))
                }, t.prototype.SetLabelLocked = function() {
                    this.SetLabel(cc.Color.WHITE, new cc.Color(32, 36, 52))
                }, t.prototype.SetLabel = function(e, t) {
                    this.Label.node.color = e, this.Label.getComponent(cc.LabelOutline).color = t
                }, t.prototype.onDestroy = function() {
                    n._chosenLogoItem = null
                }, i([p(cc.Label)], t.prototype, "Label", void 0), i([p(cc.Sprite)], t.prototype, "MainSprite", void 0), i([p(cc.Sprite)], t.prototype, "LabelBG", void 0), i([p(cc.Node)], t.prototype, "Lock", void 0), i([p(cc.Sprite)], t.prototype, "Halo", void 0), n = i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./WelfareFramePanel": "WelfareFramePanel"
    }],
    ModuleGuideManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ffc1bnaY3hBULlYKF1wVZv9", "ModuleGuideManager");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var i = e("../../EZFramework/EZFramework"),
            a = e("../../ShareConsts/EnumType"),
            s = e("../Components/DataCenter"),
            l = e("./DataUtlity"),
            c = e("./GameRecord"),
            u = e("../../../Proto/Static/RpcProto"),
            p = e("../Components/RpcComponent"),
            d = e("./EventKeys"),
            h = e("./GlobalDefine"),
            f = e("../Channel/ChannelManager"),
            y = function() {
                function e() {
                    this._finger = null, this._npcDiaLogIds = [], this.CheckGameModeuleGuideNeedShow = this.CheckNeedRequestGameModule
                }
                return Object.defineProperty(e, "instance", {
                    get: function() {
                        return this._instance || (this._instance = new e), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.prototype.AddFingerNode = function(e, t, n) {
                    return void 0 === t && (t = 0), void 0 === n && (n = 0), o(this, void 0, void 0, function() {
                        var o, a, s;
                        return r(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.getChildByName("fingerModule") ? [3, 3] : this._finger ? [3, 2] : (o = this, [4, i.AssetsManager.Instance.LoadAsset("ItemsComponent/Finger", cc.Prefab)]);
                                case 1:
                                    if (o._finger = r.sent(), !e.isValid) return [2];
                                    r.label = 2;
                                case 2:
                                    e.getChildByName("fingerModule") || ((a = cc.instantiate(this._finger)).name = "fingerModule", a.y += t, a.x += n, s = e.children.length, e.addChild(a, s)), r.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.RemoveFingerNode = function(e) {
                    e.children.forEach(function(e) {
                        "fingerModule" == e.name && e.destroy()
                    })
                }, e.prototype.SetModuleLock = function(e, t) {
                    var n, o = c.default.GetItem(c.GameRecordDefine.ModuleGuideNew);
                    if (o)
                        if ((n = JSON.parse(o)).hasOwnProperty("moduleIds")) {
                            var r, i = n.moduleIds;
                            if (t > 0) {
                                if ((r = i.indexOf(e)) > -1) {
                                    if (n.hasOwnProperty("hasUnLockModule")) {
                                        var a = n.hasUnLockModule; - 1 == a.indexOf(i[r]) && a.push(i[r]), n.hasUnLockModule = a
                                    } else n.hasUnLockModule = [i[r]];
                                    i.splice(r, 1)
                                }
                            } else - 1 == (r = i.indexOf(e)) && i.push(e);
                            c.default.SetItem(c.GameRecordDefine.ModuleGuideNew, JSON.stringify(n))
                        } else n.moduleIds = [e], c.default.SetItem(c.GameRecordDefine.ModuleGuideNew, JSON.stringify(n));
                    else(n = {}).moduleIds = [e], c.default.SetItem(c.GameRecordDefine.ModuleGuideNew, JSON.stringify(n))
                }, e.prototype.GetModuleLockIds = function() {
                    var e = [],
                        t = c.default.GetItem(c.GameRecordDefine.ModuleGuideNew);
                    if (t) {
                        var n = JSON.parse(t);
                        n.hasOwnProperty("moduleIds") && (e = n.moduleIds)
                    }
                    return e
                }, e.prototype.SetModuleActive = function(e, t) {
                    e.children.forEach(function(e) {
                        "fingerModule" == e.name && (e.active = t)
                    })
                }, e.prototype.GetIsFirst = function() {
                    var e = c.default.GetItem(c.GameRecordDefine.ModuleGuideNew);
                    if (e) {
                        var t = JSON.parse(e);
                        return 1 != t.hasOwnProperty("isFirst") || t.isFirst
                    }
                    return !0
                }, e.prototype.SetIsFirst = function(e) {
                    var t = c.default.GetItem(c.GameRecordDefine.ModuleGuideNew);
                    if (t) {
                        var n = JSON.parse(t);
                        n.isFirst = e, c.default.SetItem(c.GameRecordDefine.ModuleGuideNew, JSON.stringify(n))
                    } else {
                        var o = {};
                        o.isFirst = e, c.default.SetItem(c.GameRecordDefine.ModuleGuideNew, JSON.stringify(o))
                    }
                }, e.prototype.SetHasUnLockModuleGuide = function(e) {
                    var t = c.default.GetItem(c.GameRecordDefine.ModuleGuideNew);
                    if (t) {
                        var n = JSON.parse(t);
                        if (n.hasOwnProperty("hasUnLockModule")) {
                            var o = n.hasUnLockModule;
                            e.forEach(function(e) {
                                -1 == o.indexOf(e) && o.push(e)
                            }), n.hasUnLockModule = o, c.default.SetItem(c.GameRecordDefine.ModuleGuideNew, JSON.stringify(n))
                        } else n.hasUnLockModule = e, c.default.SetItem(c.GameRecordDefine.ModuleGuideNew, JSON.stringify(n))
                    } else {
                        var r = {};
                        r.hasUnLockModule = e, c.default.SetItem(c.GameRecordDefine.ModuleGuideNew, JSON.stringify(r))
                    }
                }, e.prototype.GetHasUnLockModuleGuide = function() {
                    var e = [],
                        t = c.default.GetItem(c.GameRecordDefine.ModuleGuideNew);
                    if (t) {
                        var n = JSON.parse(t);
                        n.hasOwnProperty("hasUnLockModule") && (e = n.hasUnLockModule)
                    }
                    return e
                }, e.prototype.GetNextGuideModule = function() {
                    for (var t = s.DataCenter.Instance.GetArrayData(a.UserDataKey.GameModuleGuide), n = f.default.Instance.IsVNChannel(), o = 0; o < e.ModuleIds.length; o++)
                        if ((!n || e.ModuleIds[o] != a.GameModuleType.SaintsWar && e.ModuleIds[o] != a.GameModuleType.Angel) && !t.includes(e.ModuleIds[o])) {
                            var r = l.default.Instance.IsGameModuleUnlock(e.ModuleIds[o])[0],
                                i = l.default.Instance.IsGameModuleOpen(e.ModuleIds[o]);
                            if (r && i) {
                                if (e.ModuleIds[o] == a.GameModuleType.AllianceCityWar && !s.DataCenter.Instance.AllianceId) continue;
                                return e.ModuleIds[o]
                            }
                        } return 0
                }, e.prototype.CheckNeedRequestGameModule = function(e) {
                    if (!s.DataCenter.Instance.GetArrayData(a.UserDataKey.GameModuleGuide).includes(e)) {
                        var t = l.default.Instance.IsGameModuleUnlock(e)[0],
                            n = l.default.Instance.IsGameModuleOpen(e);
                        if (t && n) return !0
                    }
                    return !1
                }, e.prototype.CompleteGameModuleWeakGuide = function(e) {
                    if (this.CheckNeedRequestGameModule(e)) {
                        var t = new u.Req_Player_CompleteGameModuleGuide;
                        t.Id = e, p.RpcComponent.Instance.Call(t, function() {
                            i.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_GUIDE_MODULE)
                        })
                    }
                }, e.prototype.ShowNPCDialogs = function(e) {
                    e && 0 != e.length && (this._npcDiaLogIds = e, this.OnCloseNPCDialog(), i.Game.EventDispatcher.On(d.EventKeys.EVENT_CLOSE_NPC_DIALOG, this.OnCloseNPCDialog, this))
                }, e.prototype.OnCloseNPCDialog = function() {
                    this._npcDiaLogIds.length <= 0 || (i.UIManager.Instance.ShowUIPanel(h.PanelConfig.NPCDialog.Path, this._npcDiaLogIds.pop()), 0 == this._npcDiaLogIds.length && i.Game.EventDispatcher.Off(d.EventKeys.EVENT_CLOSE_NPC_DIALOG, this.OnCloseNPCDialog, this))
                }, e._instance = null, e.ModuleIds = [a.GameModuleType.BattleSpeed, a.GameModuleType.SummonCard, a.GameModuleType.ItemShop, a.GameModuleType.DailyInstanceCoin, a.GameModuleType.HeroPalace, a.GameModuleType.TreasureHunt, a.GameModuleType.IntelligenceTask, a.GameModuleType.TestTower, a.GameModuleType.Arena, a.GameModuleType.Alliance, a.GameModuleType.RelicTreasureHunt, a.GameModuleType.StarTemple, a.GameModuleType.StarPiece, a.GameModuleType.PersonalSignature, a.GameModuleType.StarResonance, a.GameModuleType.StarGarrison, a.GameModuleType.FighterSpirit, a.GameModuleType.AllianceCityWar, a.GameModuleType.EndlessAbyss, a.GameModuleType.ElementTower, a.GameModuleType.SaintsWar, a.GameModuleType.Angel, 5003, 5004, 5005, 5006, a.GameModuleType.HolyEquipGallery, a.GameModuleType.CollectionHall, a.GameModuleType.ParanormalPuzzle], e.AddModuleIds = [], e
            }();
        n.default = y, cc._RF.pop()
    }, {
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../EZFramework/EZFramework": "EZFramework",
        "../../ShareConsts/EnumType": "EnumType",
        "../Channel/ChannelManager": "ChannelManager",
        "../Components/DataCenter": "DataCenter",
        "../Components/RpcComponent": "RpcComponent",
        "./DataUtlity": "DataUtlity",
        "./EventKeys": "EventKeys",
        "./GameRecord": "GameRecord",
        "./GlobalDefine": "GlobalDefine"
    }],
    MonopolyGridComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2e73aHSuhdASo+ou5kMcymm", "MonopolyGridComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = (l.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_MONOPOLY_SCROLLING, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_MONOPOLY_SCROLLING, this.CheckVisible, this)
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, i([c], t)
            }(cc.Component));
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    MonopolyMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5d4b0CeWGtEd5XL8MRotknp", "MonopolyMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Auxiliary/GlobalDefine"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Components/CurrencyBarItem"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../Components/SecretPropFloating"),
            _ = e("./CloudsTurnPanel"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../Components/MonopolyGridComponent"),
            b = e("../../../../Proto/Static/ConfigProto"),
            S = e("../../Components/Components"),
            w = e("./WarTokenListPanel"),
            P = e("./ActivityJumpBtnComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new f.UIPanelType(f.UINodeType.Fixed), t.MapScrollView = null, t.CircleNumberRichText = null, t.DiceCurrency = null, t.MonopolyTokenCurrency = null, t.RuleBtn = null, t.TaskBtn = null, t.AdventureGiftBagBtn = null, t.ShopBtn = null, t.RemoteDiceBtn = null, t.TittleLab = null, t.TaskBtnLab = null, t.TimeLabel = null, t.TimeValue = null, t.RemoteDiceBtnLab = null, t.GoAheadLabel = null, t.GrayGoAheadLabel = null, t.GoAheadBtn = null, t.ShopLabel = null, t.AdventureGiftBagBtnLab = null, t.ReturnBtn = null, t.DiceAnimationSkeleton = null, t.DiceAnimationMask = null, t.GoWarToken = null, t.GoWarTokenLabel = null, t.WarTokenSprite = null, t.LayoutNode = null, t._towardsRight = 1, t._towardsLeft = -1, t._heroMoveTime = .25, t._monopolyForkRewardIdArr = [], t._monopolyRewardIdArr = [], t._mapRoadGrid = [], t._gridIdArray = [], t._heroMoveWay = [], t._turnGridIdArr = [12, 23, 34, 107, 114, 43], t._forwardLightPool = new cc.NodePool, t._diceAnimationPrefix = "UI_effect_yijixunbao_touzi", t._isShow = !1, t.CurrencyId = 268, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    f.Game.EventDispatcher.On(g.EventKeys.EVENT_MONOPOLY_REMOTE, this.GoAhead, this)
                }, t.prototype.onDisable = function() {
                    f.Game.EventDispatcher.Off(g.EventKeys.EVENT_MONOPOLY_REMOTE, this.GoAhead, this), cc.Tween.stopAllByTag(l.PanelConfig.MonopolyMainPanel.Id), this.unscheduleAllCallbacks()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("MonopolyMap/Map/Map01", cc.Prefab), n = this.LoadDynamicAsset("MonopolyMap/MonopolyMap", cc.SpriteAtlas), o = this.LoadDynamicAsset("ItemsComponent/ItemComponent", cc.Prefab), r = this.LoadDynamicAsset("MonopolyPanel/PNG/MonopolyPng", cc.SpriteAtlas), i = this.LoadDynamicAsset("MonopolyPanel/Components/ArrowHint", cc.Prefab), a = this.LoadDynamicAsset("RelicTreasureHuntPanel/Spine/UI_effect_yijixunbao_touzi", sp.SkeletonData), [4, Promise.all([t, n, o, r, i, a]).then(function(e) {
                                        l._mapPrefab = e[0], l._monopolyMapAtlas = e[1], l._itemComponentPrefab = e[2], l._monopolyPngAtlas = e[3], l._arrowHintPrefab = e[4], l.DiceAnimationSkeleton.skeletonData = e[5]
                                    })];
                                case 1:
                                    return s.sent(), this._twoTimesIcon = this._monopolyPngAtlas.getSpriteFrame("multiple2"), this._threeTimesIcon = this._monopolyPngAtlas.getSpriteFrame("multiple3"), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    this.TimeLabel.string = "gift_remainderTime".ToUILocale(), this.GoAheadLabel.string = "monopoly_advance".ToUILocale(), this.GrayGoAheadLabel.string = "monopoly_advance".ToUILocale(), this.TittleLab.string = "monopoly_ruleMainTitle".ToUILocale(), this.TaskBtnLab.string = "btn_task".ToUILocale(), this.AdventureGiftBagBtnLab.string = "monopoly_gift".ToUILocale(), this.ShopLabel.string = "monopoly_exchangeShop".ToUILocale(), this.GoWarTokenLabel.string = "monopoly_WarToken".ToUILocale(), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this), this.TaskBtn.node.on("click", this.OnTaskBtnClick, this), this.AdventureGiftBagBtn.node.on("click", this.OnAdventureGiftBagBtnClick, this), this.ShopBtn.node.on("click", this.OnShopBtnClick, this), this.GoAheadBtn.node.on("click", this.OnGoAheadBtnClick, this), this.RemoteDiceBtn.node.on("click", this.OnRemoteDiceBtnClick, this), this.ReturnBtn.node.on("click", this.OnBtnReturnClick, this), this.GoWarToken.on("click", this.OnGoWarTokenClick, this)
                }, t.prototype.InitData = function(e) {
                    for (var t in this._activityId = e[0], this._activityConfig = p.DataCenter.Instance.ActivityConfigs[this._activityId], this._deadLine = u.default.Instance.ComputeDeadTime(this._activityConfig.Common), this.ShopBtn.node.active = this._activityConfig._Shops && this._activityConfig._Shops.length > 0, p.DataCenter.Instance.ActivityConfigs) {
                        var n = p.DataCenter.Instance.ActivityConfigs[t];
                        if (n && m.ActivityType.WarToken == n.Common.Type && n.CustomPart && n.CustomPart.Type == w.ActivityWarTokenType.Monopoly) {
                            this.SetWarTokenSprite(), this._warTokenId = Number(t);
                            break
                        }
                    }
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this._activityConfig.Common.JumpIds && this._activityConfig.Common.JumpIds.length > 0 ? [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)] : [3, 2];
                                case 1:
                                    for (t = i.sent(), n = 0; n < this._activityConfig.Common.JumpIds.length; n++) o = this._activityConfig.Common.JumpIds[n], (r = cc.instantiate(t)).parent = this.LayoutNode, r.getComponent(P.default).Init(o, this._activityConfig.Common.JumpIcons[n]);
                                    i.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetWarTokenSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset("MainPanel/UI/MainUIIcons/sc_dfwzl001", cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.WarTokenSprite.spriteFrame = e, [2]) : (f.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this.BindRedDot(), this.MonopolyTokenCurrency.Init(this.CurrencyId), this.DiceCurrency.Init(this._activityConfig.CustomPart.DiceId), this.RemoteDiceBtnLab.string = p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.ControlId).toString(), this._userActivityModel = p.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), this.SetCircleNumberRichText(this._userActivityModel.IntValue + 1), !t) {
                        if (this.ShowMap(), !this._isShow) {
                            this.MonopolyCountDown(), this.schedule(this.MonopolyCountDown, 1), this.GetGridTypeId(), this.SetGridGrass(), this.ShowItems();
                            var n = cc.instantiate(this._arrowHintPrefab);
                            n.parent = this._mapRoadGrid[this._monopolyOriginId], n.y = 80, this._mapRoadGrid[this._monopolyForkId].on(cc.Node.EventType.TOUCH_END, this.ShowForkTip, this);
                            var o = this.MapScrollView.node.getBoundingBoxToWorld();
                            this._mapScrollViewRect = new cc.Rect(o.x - 300, o.y + 100, this.MapScrollView.node.width + 800, this.MapScrollView.node.height + 200), this.MapScrollView.node.on("scrolling", this.OnScrolling, this)
                        }
                        this.OnScrolling(), this._isShow = !0, this.InitHeroPosition(), this.RenderGoWarTokenBtn()
                    }
                }, t.prototype.SetCircleNumberRichText = function(e) {
                    this.CircleNumberRichText.string = "<outline width=3 color=#202434>" + "monopoly_circleNumber".ToUILocale().Fmt("<color=#fed94a>" + e + "</color>") + "</outline>"
                }, t.prototype.BindRedDot = function() {
                    C.RedDotManager.Instance.BindInstance(this.TaskBtn.node, C.RedDotManager.Instance.InstanceRedDot.MonopolyTaskNode, {
                        Value1: this._activityId
                    }), C.RedDotManager.Instance.BindInstance(this.GoAheadBtn.node, C.RedDotManager.Instance.InstanceRedDot.MonopolyDiceNode, {
                        Value1: this._activityId
                    }), C.RedDotManager.Instance.BindInstance(this.RemoteDiceBtn.node, C.RedDotManager.Instance.InstanceRedDot.MonopolyRemoteDiceNode, {
                        Value1: this._activityId
                    }), C.RedDotManager.Instance.BindInstance(this.GoWarToken, C.RedDotManager.Instance.InstanceRedDot.MonopolyWarToken, {
                        Value1: this._warTokenId
                    })
                }, t.prototype.MonopolyCountDown = function() {
                    var e = this._deadLine - p.RpcComponent.Instance.ServerTime;
                    e < 0 && f.UIManager.Instance.BackUIPanel(), this.TimeValue.string = u.default.ActivityTimeLeftFormat(e)
                }, t.prototype.ShowMap = function() {
                    if (!this._isShow) {
                        var e = cc.instantiate(this._mapPrefab);
                        e.parent = this.MapScrollView.content, this._mapWidth = e.width, this._emptyNode = new cc.Node, this._emptyNode.width = this._mapWidth, this._emptyNode.height = this._mapWidth, this._emptyNode.parent = this.MapScrollView.content;
                        for (var t = 0; t < e.children.length; t++) {
                            var n = Number(e.children[t].name);
                            e.children[t].addComponent(v.default), this._mapRoadGrid[n] = e.children[t], this._gridIdArray[t] = n
                        }
                        this._gridIdArray.sort(function(e, t) {
                            return e - t
                        })
                    }
                    this.MapScrollView.content.scale = .3, this.MapScrollView.scrollTo(cc.v2(.5, .5))
                }, t.prototype.GetGridTypeId = function() {
                    for (var e = 0; e < this._gridIdArray.length; e++) this._activityConfig.__Grids[e].Type == m.MonopolyGridType.Origin ? this._monopolyOriginId = this._gridIdArray[e] : this._activityConfig.__Grids[e].Type == m.MonopolyGridType.Fork ? this._monopolyForkId = this._gridIdArray[e] : this._activityConfig.__Grids[e].Type == m.MonopolyGridType.ForkReward ? this._monopolyForkRewardIdArr.push(this._gridIdArray[e]) : this._activityConfig.__Grids[e].Type == m.MonopolyGridType.Reward && this._monopolyRewardIdArr.push(this._gridIdArray[e])
                }, t.prototype.SetGridGrass = function() {
                    var e = this._mapRoadGrid[this._monopolyForkId],
                        t = this._monopolyMapAtlas.getSpriteFrame("road2"),
                        n = new cc.Node;
                    n.addComponent(cc.Sprite).spriteFrame = this._monopolyMapAtlas.getSpriteFrame("guidePost"), n.parent = this._mapRoadGrid[this._monopolyForkId], n.y = this._mapRoadGrid[this._monopolyForkId].height / 2 - 20;
                    var o = new cc.Node;
                    o.addComponent(cc.Sprite).spriteFrame = this._monopolyPngAtlas.getSpriteFrame("arrow_right"), o.parent = e, o.position = cc.v3(120, 140), cc.tween(o).tag(l.PanelConfig.MonopolyMainPanel.Id).repeat(3, cc.tween(o).to(.5, {
                        position: cc.v3(140, 160, 0)
                    }).to(.5, {
                        position: cc.v3(120, 140, 0)
                    })).repeatForever().start();
                    for (var r = this._monopolyForkRewardIdArr[0]; r <= this._monopolyForkRewardIdArr[this._monopolyForkRewardIdArr.length - 1]; r++) this._mapRoadGrid[r].getComponent(cc.Sprite).spriteFrame = t;
                    var i = new cc.Node;
                    i.addComponent(cc.Sprite).spriteFrame = this._monopolyPngAtlas.getSpriteFrame("arrow_right"), i.parent = this._mapRoadGrid[this._activityConfig.__Grids[this._gridIdArray.length - 1].SkipId], i.x = 120, i.y = 140, cc.tween(i).tag(l.PanelConfig.MonopolyMainPanel.Id).repeat(3, cc.tween(i).to(.5, {
                        position: cc.v3(140, 160, 0)
                    }).to(.5, {
                        position: cc.v3(120, 140, 0)
                    })).repeatForever().start(), i.scale = -i.scale
                }, t.prototype.ShowForkTip = function() {
                    d.UIUtlity.ShowFloatingHint("monopoly_showForkTip".ToUILocale())
                }, t.prototype.ShowItems = function() {
                    for (var e = function(e) {
                            var n = t._monopolyPngAtlas.getSpriteFrame("itemShadow");
                            if (t._activityConfig.__Grids[e].Rewards[0]) {
                                var o = new cc.Node;
                                o.addComponent(cc.Sprite).spriteFrame = n;
                                var r = cc.instantiate(t._itemComponentPrefab);
                                r.name = "itemNode";
                                var i = t._activityConfig.__Grids[e].Rewards[0].Items[0],
                                    a = t._activityConfig.__Grids[e].Rewards[0].Items[1],
                                    s = r.getComponent(y.ItemComponent);
                                s.Init({
                                    ItemId: i,
                                    Count: a
                                }, y.ItemComponentType.ItemCommon), t._activityConfig.__Grids[e].Quality >= 1 && t._activityConfig.__Grids[e].Quality <= 4 && s.PlayLightingCircleEffect(t._activityConfig.__Grids[e].Quality);
                                var l = new cc.Node,
                                    c = l.addComponent(I.default);
                                if (c.IconNode = r, c.ShadowNode = o, l.y = 80, o.parent = l, r.parent = l, r.scale = .65, r.on(cc.Node.EventType.TOUCH_END, function() {
                                        s.ShowItemTip()
                                    }, t), 1 == t._activityConfig.__Grids[e].CanDouble) {
                                    var u = t._activityConfig.CustomPart.Times[t._userActivityModel.IntMap[t._gridIdArray[e]]];
                                    t.ShowItemTimesNumber(r, u)
                                }
                                l.zIndex = 3, l.name = t._gridIdArray[e].toString(), l.addComponent(v.default), l.parent = t._emptyNode, l.x = t._mapRoadGrid[t._gridIdArray[e]].x, l.y = t._mapRoadGrid[t._gridIdArray[e]].y + 80, t._gridIdArray[e] >= t._turnGridIdArr[2] && t._gridIdArray[e] <= t._monopolyRewardIdArr[t._monopolyRewardIdArr.length - 1] && (l.zIndex = t._monopolyRewardIdArr[t._monopolyRewardIdArr.length - 1] - t._gridIdArray[e]), t._gridIdArray[e] >= t._turnGridIdArr[3] && t._gridIdArray[e] <= t._turnGridIdArr[4] && (l.zIndex = t._turnGridIdArr[4] - t._gridIdArray[e]), t._userActivityModel.Int2DArray[0].Items.indexOf(t._gridIdArray[e]) > 0 && (l.active = !1)
                            }
                        }, t = this, n = 0; n < this._gridIdArray.length; n++) e(n)
                }, t.prototype.InitHeroPosition = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._heroSpineComponent ? [3, 2] : (e = void 0, (t = S.ConfigDataComponent.Instance.GetConfigById(b.HeroSkin_Config, this._activityConfig.CustomPart.Skin)) ? e = "Hero_" + t.Model + "/HeroAvatar" : (n = S.ConfigDataComponent.Instance.GetConfigById(b.HeroBase_Config, this._activityConfig.CustomPart.Skin), e = "Hero_" + n.Model + "/HeroAvatar"), [4, this.LoadDynamicAsset(e, cc.Prefab)]);
                                case 1:
                                    o = s.sent(), this._heroNode = cc.instantiate(o), this._heroNode.parent = this.MapScrollView.content, this._heroSpineComponent = this._heroNode.getComponent(sp.Skeleton), s.label = 2;
                                case 2:
                                    return this._heroSpineComponent.setAnimation(0, "standby", !0), this._heroSpineComponent.loop = !0, r = this._userActivityModel.IntArray, this._heroNode.x = this._mapRoadGrid[r[0]].x, this._heroNode.y = this._mapRoadGrid[r[0]].y + 80, 0 == (i = this._activityConfig.__Grids[this._gridIdArray.indexOf(r[0])].SkipId) ? this._mapRoadGrid[r[0]].x > this._mapRoadGrid[r[0] + 1].x ? this._heroNode.scaleX = this._towardsLeft : this._heroNode.scaleX = this._towardsRight : this._mapRoadGrid[r[0]].x > this._mapRoadGrid[i].x ? this._heroNode.scaleX = this._towardsLeft : this._heroNode.scaleX = this._towardsRight, a = this.ScrollToPos(this._heroNode), cc.tween(this.MapScrollView.content).tag(l.PanelConfig.MonopolyMainPanel.Id).call(function() {
                                        c.DiceAnimationMask.active = !0
                                    }).delay(1).call(function() {
                                        c.MapScrollView.scrollTo(cc.v2(a[0], a[1]), 1, !1)
                                    }).to(1, {
                                        scale: 1
                                    }).call(function() {
                                        c.DiceAnimationMask.active = !1
                                    }).start(), [2]
                            }
                        })
                    })
                }, t.prototype.OnScrolling = function() {
                    f.Game.EventDispatcher.Emit(g.EventKeys.EVENT_MONOPOLY_SCROLLING, this._mapScrollViewRect)
                }, t.prototype.ShowItemTimesNumber = function(e, t) {
                    var n = new cc.Node("timesNode"),
                        o = n.addComponent(cc.Sprite);
                    2 == t ? o.spriteFrame = this._twoTimesIcon : 3 == t && (o.spriteFrame = this._threeTimesIcon), n.parent = e, n.width = 89, n.height = 77, n.x = -88, n.y = 127, n.scale = 1 / e.scale, o.sizeMode = cc.Sprite.SizeMode.CUSTOM
                }, t.prototype.OnRuleBtnClick = function() {
                    var e = {
                        name: "monopoly_ruleMainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["monopoly_ruleText".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnTaskBtnClick = function() {
                    var e = {
                        IsActivity: !0
                    };
                    e.Title = "btn_task".ToUILocale(), e.Tasks = this._activityConfig._Tasks, e.ActivityId = this._activityId, f.UIManager.Instance.ShowUIPanel(l.PanelConfig.CommonTaskPanel.Path, [e])
                }, t.prototype.OnAdventureGiftBagBtnClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: u.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[1] || "",
                            Title: "monopoly_gift".ToUILocale()
                        };
                    f.UIManager.Instance.ShowUIPanel(l.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnShopBtnClick = function() {
                    var e = this._activityConfig.Common.Pictures,
                        t = {
                            name: "monopoly_ExchangeShop_RuleMainTitle".ToUILocale(),
                            titles: ["monopoly_ExchangeShop_RuleSubtitle".ToUILocale()],
                            contents: ["monopoly_ExchangeShop_RuleText".ToUILocale()]
                        };
                    f.UIManager.Instance.ShowUIPanel(l.PanelConfig.ActivityExchangeShopPanel.Path, this._activityId, 1, e[0] || "", t)
                }, t.prototype.OnGoAheadBtnClick = function(e) {
                    p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.DiceId) <= 0 ? f.UIManager.Instance.ShowUIPanel(l.PanelConfig.ItemGetWayPanel.Path, this._activityConfig.CustomPart.DiceId, !1) : this.GoAhead(e)
                }, t.prototype.OnRemoteDiceBtnClick = function() {
                    p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.ControlId) <= 0 ? f.UIManager.Instance.ShowUIPanel(l.PanelConfig.ItemGetWayPanel.Path, this._activityConfig.CustomPart.ControlId, !1) : f.UIManager.Instance.ShowUIPanel(l.PanelConfig.MonopolyRemoteDicePanel.Path)
                }, t.prototype.GoAhead = function(e) {
                    var t = this,
                        n = this._userActivityModel.IntArray;
                    this._heroPositionNow = n[0], this._heroStartPosition = n[0];
                    var o = new c.Req_Activity_MonopolyThrow;
                    o.ActivityId = this._activityId, e && (o.Point = e), p.RpcComponent.Instance.Call(o, function(e) {
                        e && (t.GoAheadBtn.node.active = !1, t.DiceAnimationSkeleton.node.active = !0, t.DiceAnimationMask.active = !0, t.DiceCurrency.Init(t._activityConfig.CustomPart.DiceId), t.RemoteDiceBtnLab.string = p.DataCenter.Instance.GetItemCount(t._activityConfig.CustomPart.ControlId).toString(), t.DiceAnimationSkeleton.setAnimation(0, t._diceAnimationPrefix + e.Point, !1), t.DiceAnimationSkeleton.setCompleteListener(function() {
                            t.DiceAnimationSkeleton.node.active = !1, t.HeroMove(e.Point, e)
                        }))
                    })
                }, t.prototype.HeroMove = function(e, t) {
                    var n = this;
                    this._userActivityModel = p.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId);
                    var o = this._userActivityModel.IntArray[0];
                    if (o == this._monopolyOriginId)
                        if (this._monopolyForkRewardIdArr.indexOf(this._heroPositionNow) > 0) {
                            var r = this._activityConfig.__Grids[this._gridIdArray.indexOf(this._monopolyForkRewardIdArr[this._monopolyForkRewardIdArr.length - 1])].SkipId;
                            e = this._monopolyRewardIdArr[this._monopolyRewardIdArr.length - 1] - r + 1 + (this._monopolyForkRewardIdArr[this._monopolyForkRewardIdArr.length - 1] - this._heroPositionNow) + 1
                        } else this._monopolyRewardIdArr.indexOf(this._heroPositionNow) > 0 && (e = this._monopolyRewardIdArr[this._monopolyRewardIdArr.length - 1] - this._heroPositionNow + this._monopolyOriginId);
                    this.CreateHeroMoveWay(e);
                    var i = 0;
                    this.schedule(function() {
                        var e = this._mapRoadGrid[this._heroMoveWay[i]].getChildByName("forwardLightNode");
                        this._forwardLightPool.put(e), i++
                    }, this._heroMoveTime, e - 1, 0), cc.tween(this._heroNode).tag(l.PanelConfig.MonopolyMainPanel.Id).call(function() {
                        "move" != n._heroSpineComponent.getState().tracks[0].animation.name && (n._heroSpineComponent.setAnimation(0, "move", !0), n._heroSpineComponent.timeScale = 1.5);
                        var e = n.ScrollToPos(n._mapRoadGrid[n._heroMoveWay[n._turnGridIndex]]);
                        n.MapScrollView.scrollTo(cc.v2(e[0], e[1]), n._heroMoveTime * (n._turnGridIndex + 1), !1)
                    }).to(this._heroMoveTime * (this._turnGridIndex + 1), {
                        position: cc.v3(this._mapRoadGrid[this._heroMoveWay[this._turnGridIndex]].x, this._mapRoadGrid[this._heroMoveWay[this._turnGridIndex]].y + 80)
                    }).call(function() {
                        n._mapRoadGrid[o].x > n._mapRoadGrid[n._heroMoveWay[n._turnGridIndex]].x ? n._heroNode.scaleX = n._towardsRight : n._heroNode.scaleX = n._towardsLeft;
                        var t = n.ScrollToPos(n._mapRoadGrid[n._heroMoveWay[n._heroMoveWay.length - 1]]);
                        n.MapScrollView.scrollTo(cc.v2(t[0], t[1]), n._heroMoveTime * (e - (n._turnGridIndex + 1)), !1)
                    }).to(this._heroMoveTime * (e - (this._turnGridIndex + 1)), {
                        position: cc.v3(this._mapRoadGrid[this._heroMoveWay[e - 1]].x, this._mapRoadGrid[this._heroMoveWay[e - 1]].y + 80)
                    }).call(function() {
                        var e = n._activityConfig.__Grids[n._gridIdArray.indexOf(o)].SkipId;
                        0 == e ? n._mapRoadGrid[o].x > n._mapRoadGrid[o + 1].x ? n._heroNode.scaleX = n._towardsLeft : n._heroNode.scaleX = n._towardsRight : n._mapRoadGrid[o].x > n._mapRoadGrid[e].x ? n._heroNode.scaleX = n._towardsLeft : n._heroNode.scaleX = n._towardsRight, "standby" != n._heroSpineComponent.getState().tracks[0].animation.name && (n._heroSpineComponent.setAnimation(0, "standby", !0), n._heroSpineComponent.timeScale = 1);
                        var r = n._emptyNode.getChildByName(o.toString());
                        r && (r.active = !1), n.MonopolyTokenCurrency.Init(n.CurrencyId), o == n._monopolyForkId && d.UIUtlity.ShowFloatingHint("monopoly_forkTip".ToUILocale()), t.Rewards.length > 0 && n.ShowReward(t.Rewards), n.GoAheadBtn.node.active = !0, n.DiceAnimationMask.active = !1, o == n._monopolyOriginId && n.ResetScene()
                    }).start()
                }, t.prototype.CreateHeroMoveWay = function(e) {
                    this._forwardLightPool.size() <= 0 && this.CreateForwardLightPool(), this._heroMoveWay = [], this._turnGridIndex = -1;
                    for (var t = 0; t < e; t++) {
                        var n = void 0;
                        this._heroStartPosition != this._monopolyForkId ? n = this._heroPositionNow + 1 : (n = this._activityConfig.__Grids[this._gridIdArray.indexOf(this._heroPositionNow)].SkipId, this._heroStartPosition = n), this._heroPositionNow != this._monopolyForkRewardIdArr[this._monopolyForkRewardIdArr.length - 1] && this._heroPositionNow != this._monopolyRewardIdArr[this._monopolyRewardIdArr.length - 1] || (n = this._activityConfig.__Grids[this._gridIdArray.indexOf(this._heroPositionNow)].SkipId), this._heroPositionNow = n, this._heroMoveWay.push(this._heroPositionNow);
                        var o = null;
                        (o = this._forwardLightPool.get()).parent = this._mapRoadGrid[this._heroPositionNow], o.y = 80, o.zIndex = 1, o.name = "forwardLightNode", this._turnGridIdArr.indexOf(this._heroPositionNow) > -1 && (this._turnGridIndex = t)
                    } - 1 == this._turnGridIndex && (this._turnGridIndex = e - 1)
                }, t.prototype.CreateForwardLightPool = function() {
                    for (var e = 0; e < 6; e++) {
                        var t = new cc.Node;
                        t.addComponent(cc.Sprite).spriteFrame = this._monopolyPngAtlas.getSpriteFrame("forwardtips"), this._forwardLightPool.put(t)
                    }
                }, t.prototype.ScrollToPos = function(e) {
                    var t = [];
                    return t[0] = 1.3 * e.x / this._mapWidth + .5, t[1] = 2 * e.y / this._mapWidth + .5, t
                }, t.prototype.ResetScene = function() {
                    var e = this;
                    this.BindRedDot(), f.UIManager.Instance.ShowUIPanel(l.PanelConfig.CloudsTurnPanel.Path, function() {
                        d.UIUtlity.ShowFloatingHint("monopoly_mapRefreshed".ToUILocale()), e.scheduleOnce(function() {
                            e.DiceAnimationMask.active = !1, e._userActivityModel = p.DataCenter.Instance.GetDataById(c.UserActivity_Model, e._activityId), e.SetCircleNumberRichText(e._userActivityModel.IntValue + 1), e.RefreshItems(), _.default.SetCondition()
                        }, 2)
                    })
                }, t.prototype.ShowReward = function(e) {
                    d.UIUtlity.ShwDisplayRewardPanel(e)
                }, t.prototype.RefreshItems = function() {
                    for (var e = this._emptyNode.children, t = 0; t < e.length; t++) {
                        var n = Number(e[t].name),
                            o = this._activityConfig.CustomPart.Times[this._userActivityModel.IntMap[n]];
                        if (o > 1) {
                            var r = e[t].getChildByName("itemNode"),
                                i = this._activityConfig.__Grids[this._gridIdArray.indexOf(n)].Rewards[0].Items[0],
                                a = this._activityConfig.__Grids[this._gridIdArray.indexOf(n)].Rewards[0].Items[1],
                                s = r.getComponent(y.ItemComponent);
                            s.Init({
                                ItemId: i,
                                Count: a
                            }, y.ItemComponentType.ItemCommon), this._activityConfig.__Grids[this._gridIdArray.indexOf(n)].Quality >= 1 && this._activityConfig.__Grids[this._gridIdArray.indexOf(n)].Quality <= 4 && s.PlayLightingCircleEffect(this._activityConfig.__Grids[this._gridIdArray.indexOf(n)].Quality), this.RefreshItemsTimes(r, o)
                        }
                        e[t].active = !1, e[t].active = !0
                    }
                }, t.prototype.RefreshItemsTimes = function(e, t) {
                    var n = e.getChildByName("timesNode");
                    n.active = !0, 2 == t ? n.getComponent(cc.Sprite).spriteFrame = this._twoTimesIcon : 3 == t && (n.getComponent(cc.Sprite).spriteFrame = this._threeTimesIcon)
                }, t.prototype.OnBtnReturnClick = function() {
                    f.UIManager.Instance.BackUIPanel()
                }, t.prototype.RenderGoWarTokenBtn = function() {
                    this._warTokenId ? this.GoWarToken.active = !0 : this.GoWarToken.active = !1
                }, t.prototype.OnGoWarTokenClick = function() {
                    this._warTokenId && f.UIManager.Instance.ShowUIPanel(l.PanelConfig.WarTokenListPanel.Path, !0, this._warTokenId)
                }, i([R(cc.ScrollView)], t.prototype, "MapScrollView", void 0), i([R(cc.RichText)], t.prototype, "CircleNumberRichText", void 0), i([R(h.default)], t.prototype, "DiceCurrency", void 0), i([R(h.default)], t.prototype, "MonopolyTokenCurrency", void 0), i([R(cc.Button)], t.prototype, "RuleBtn", void 0), i([R(cc.Button)], t.prototype, "TaskBtn", void 0), i([R(cc.Button)], t.prototype, "AdventureGiftBagBtn", void 0), i([R(cc.Button)], t.prototype, "ShopBtn", void 0), i([R(cc.Button)], t.prototype, "RemoteDiceBtn", void 0), i([R(cc.Label)], t.prototype, "TittleLab", void 0), i([R(cc.Label)], t.prototype, "TaskBtnLab", void 0), i([R(cc.Label)], t.prototype, "TimeLabel", void 0), i([R(cc.Label)], t.prototype, "TimeValue", void 0), i([R(cc.Label)], t.prototype, "RemoteDiceBtnLab", void 0), i([R(cc.Label)], t.prototype, "GoAheadLabel", void 0), i([R(cc.Label)], t.prototype, "GrayGoAheadLabel", void 0), i([R(cc.Button)], t.prototype, "GoAheadBtn", void 0), i([R(cc.Label)], t.prototype, "ShopLabel", void 0), i([R(cc.Label)], t.prototype, "AdventureGiftBagBtnLab", void 0), i([R(cc.Button)], t.prototype, "ReturnBtn", void 0), i([R(sp.Skeleton)], t.prototype, "DiceAnimationSkeleton", void 0), i([R(cc.Node)], t.prototype, "DiceAnimationMask", void 0), i([R(cc.Node)], t.prototype, "GoWarToken", void 0), i([R(cc.Label)], t.prototype, "GoWarTokenLabel", void 0), i([R(cc.Sprite)], t.prototype, "WarTokenSprite", void 0), i([R(cc.Node)], t.prototype, "LayoutNode", void 0), i([T], t)
            }(f.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/MonopolyGridComponent": "MonopolyGridComponent",
        "../Components/SecretPropFloating": "SecretPropFloating",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent",
        "./CloudsTurnPanel": "CloudsTurnPanel",
        "./WarTokenListPanel": "WarTokenListPanel"
    }],
    MonopolyMapEditor: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "83f53CBCz1B+rEYddlzIdVh", "MonopolyMapEditor");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = l.inspector,
            d = l.executeInEditMode,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Row = 0, t.Column = 0, t.OffSideY = 158, t.GridPath = null, t.SpriteAtlas = null, t
                }
                return r(t, e), t.prototype.BuildMap = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return this.node.destroyAllChildren(), (e = new cc.Node).name = "1", this.node.addChild(e), e.addComponent(cc.Sprite).spriteFrame = this.SpriteAtlas.getSpriteFrame(this.GridPath), this._gridWidth = e.width, this._gridHeight = e.height, this.node.destroyAllChildren(), this.PrepareData(), this.CalculateVectorPos(), this.CalculateNodesPos(), this.InstantiateGrids(), [2]
                        })
                    })
                }, t.prototype.PrepareData = function() {
                    this._middleRow = Math.ceil(this.Row / 2 + .5), this._middleColumn = Math.ceil(this.Column / 2 + .5)
                }, t.prototype.CalculateMiddleRowPos = function() {
                    this._baseXPos = [];
                    for (var e = 0; e < this._middleColumn; e++) {
                        var t = (e - (this._middleColumn - 1)) * this._gridWidth;
                        this._baseXPos.push(t)
                    }
                    var n = this.Column - this._middleColumn;
                    for (e = 1; e <= n; e++) t = e * this._gridWidth, this._baseXPos.push(t)
                }, t.prototype.CalculateOffsetX = function() {
                    this._offsetXPos = [];
                    var e, t = this._gridWidth / 2;
                    e = this.IsSameMiddleXPos(1) ? 1 : -1;
                    for (var n = 0; n < this._baseXPos.length; n++) {
                        var o = this._baseXPos[n];
                        this._offsetXPos.push(o + t * e)
                    }
                }, t.prototype.CalculateVectorPos = function() {
                    this._vectorPos = [];
                    for (var e = 1; e <= this._middleRow; e++)
                        for (var t = this._middleRow - e, n = this.Column - (t + 1), o = Math.ceil(n / 2), r = t + (this.Column - o - (t + 1)), i = -1 * o; i <= r; i++) {
                            var a = 0 - (c = i) - (u = -t),
                                s = new cc.Vec3(c, a, u);
                            this._vectorPos.push(s)
                        }
                    var l = this.Row - this._middleRow;
                    for (e = 1; e <= l; e++)
                        for (n = this.Column - (e + 1), o = Math.ceil(n / 2), r = this.Column - o - (e + 1), i = -1 * (e + o); i <= r; i++) {
                            var c, u;
                            a = 0 - (c = i) - (u = e), s = new cc.Vec3(c, a, u), this._vectorPos.push(s)
                        }
                    for (this._outPutVectors = "", e = 0; e < this._vectorPos.length; e++) {
                        var p = "";
                        e != this._vectorPos.length - 1 && (p = "|");
                        var d = this._vectorPos[e];
                        this._outPutVectors += d.x + ":" + d.y + ":" + d.z + p
                    }
                    Editor.log("VectorPos:", this._outPutVectors)
                }, t.prototype.WriteFile = function() {}, t.prototype.CalculateNodesPos = function() {
                    this._nodesPos = [];
                    for (var e = 0; e < this._vectorPos.length; e++) {
                        var t, n, o = Math.floor(e / this.Column) + 1,
                            r = this._middleRow - o,
                            i = r * this.OffSideY;
                        n = o <= this._middleRow ? -1 : 1, t = Math.abs(r) * (this._gridWidth / 2 - 30) * n;
                        for (var a = e; a < e + this.Column; a++) {
                            var s = this._vectorPos[a].x * this._gridWidth + t;
                            this._nodesPos.push(cc.v2(s, i))
                        }
                        e += this.Column - 1
                    }
                }, t.prototype.IsSameMiddleXPos = function(e) {
                    return e % 2 == this._middleRow % 2
                }, t.prototype.InstantiateGrids = function() {
                    var e = new cc.Node("Map");
                    this.node.addChild(e), e.setPosition(0, 0), e.width = (this.Column + 3) * this._gridWidth, e.height = (this.Row + 4.5) * this.OffSideY;
                    for (var t = 0; t < this._nodesPos.length; t++) {
                        var n = new cc.Node;
                        n.name = t.toString(), e.addChild(n), n.addComponent(cc.Sprite).spriteFrame = this.SpriteAtlas.getSpriteFrame(this.GridPath), n.setPosition(this._nodesPos[t]), n.addComponent(cc.BlockInputEvents)
                    }
                }, t.prototype.FilterVectors = function() {}, i([u({
                    type: cc.Integer,
                    displayName: "\u5730\u56fe\u884c\u6570"
                })], t.prototype, "Row", void 0), i([u({
                    type: cc.Integer,
                    displayName: "\u5730\u56fe\u5217\u6570"
                })], t.prototype, "Column", void 0), i([u({
                    type: cc.Integer,
                    displayName: "\u5730\u56fe\u504f\u79fb\u91cf \u9ed8\u8ba4\u662f158"
                })], t.prototype, "OffSideY", void 0), i([u], t.prototype, "GridPath", void 0), i([u(cc.SpriteAtlas)], t.prototype, "SpriteAtlas", void 0), i([c, d, p("packages://monopoly_map_editor/inspector.js")], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        fs: void 0,
        path: 149
    }],
    MonopolyRemoteDicePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2177dlATS5LZJMaz6yU1Q9R", "MonopolyRemoteDicePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../../../EZFramework/EZFramework"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1), t.TitleLabel = null, t.TipLabel = null, t.BtnLabel = null, t.BtnConfirm = null, t.HighLightBackPic = null, t.Dices = [], t._currentChosenDice = 0, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "treasure_remoteDice".ToUILocale(), this.TipLabel.string = "treasure_remoteDiceTip".ToUILocale(), this.BtnLabel.string = "ok".ToUILocale();
                    for (var t = 0; t < this.Dices.length; t++) this.Dices[t].on(cc.Node.EventType.TOUCH_END, this.OnDiceChosen, this);
                    this.BtnConfirm.node.on("click", this.OnBtnConfirmClick, this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._currentChosenDice = 0, this.HighLightBackPic.active = !1
                }, t.prototype.OnDiceChosen = function(e) {
                    this._currentChosenDice = Number.parseInt(e.target.name), this.HighLightBackPic.active = !0, this.HighLightBackPic.position = this.Dices[this._currentChosenDice].position
                }, t.prototype.OnBtnConfirmClick = function() {
                    0 != this._currentChosenDice ? (c.Game.EventDispatcher.Emit(l.EventKeys.EVENT_MONOPOLY_REMOTE, this._currentChosenDice), this.Close()) : s.UIUtlity.ShowFloatingHint("treasure_pleaseChooseDice".ToUILocale())
                }, i([d(cc.Label)], t.prototype, "TitleLabel", void 0), i([d(cc.Label)], t.prototype, "TipLabel", void 0), i([d(cc.Label)], t.prototype, "BtnLabel", void 0), i([d(cc.Button)], t.prototype, "BtnConfirm", void 0), i([d(cc.Node)], t.prototype, "HighLightBackPic", void 0), i([d({
                    type: [cc.Node]
                })], t.prototype, "Dices", void 0), i([p], t)
            }(a.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    MonsterTipsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "09019RuUaFIdLdW5ba2UydR", "MonsterTipsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../Components/TipsLocationComponent"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ItemComponent"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Components/ConfigData/ConfigDataComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Tip, !1), t.MaskNode = null, t.ItemRoot = null, t.HeroName = null, t.HeroLevel = null, t.DescContent = null, t.ContentScroll = null, t.ViewLayout = null, t.LocationComponent = null, t.VIEW_MAX_HIGHT = 905, t._commonItemPrefab = null, t._item = null, t._mapConfig = null, t._heroConfig = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._commonItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetClickEvent()
                }, t.prototype.SetClickEvent = function() {
                    this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.Close, this), this.MaskNode._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._monsterHeroId = t[0], this._mapId = t[1], this._clickNode = t[2]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this._mapConfig = y.ConfigDataComponent.Instance.GetConfigById(f.MapBase_Config, this._mapId), this._heroConfig = y.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, this._monsterHeroId)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.node.opacity = 0, this.LoadItemComponent(), this.ConfigTips()
                }, t.prototype.ResizePanelHeight = function() {
                    this.ContentScroll.scrollToTop(), this.ViewLayout.node.height >= this.VIEW_MAX_HIGHT && (this.ViewLayout.enabled = !1, this.ViewLayout.node.height = this.VIEW_MAX_HIGHT)
                }, t.prototype.LoadItemComponent = function() {
                    null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(h.ItemComponent), this._item.node.parent = this.ItemRoot, this._item.node.active = !0)
                }, t.prototype.ConfigTips = function() {
                    var e = this;
                    this.ResizePanelHeight(), setTimeout(function() {
                        e.isValid && (e.LocationComponent.RepositionPanel(e._clickNode), e.node.opacity = 255)
                    }, 2e3 * cc.director.getDeltaTime()), this._item.Init({
                        ItemId: this._heroConfig.Id,
                        ElementType: this._heroConfig.ElementType,
                        StarLevel: this._mapConfig.Strength[0]
                    }, h.ItemComponentType.HeroInfo), this.HeroName.string = this._heroConfig.Id.ToHeroName(), this.HeroLevel.string = "Lv." + this._mapConfig.Strength[1], this.DescContent.string = this._heroConfig.Id.ToHeroDesc()
                }, i([I(cc.Node)], t.prototype, "MaskNode", void 0), i([I(cc.Node)], t.prototype, "ItemRoot", void 0), i([I(cc.Label)], t.prototype, "HeroName", void 0), i([I(cc.Label)], t.prototype, "HeroLevel", void 0), i([I(cc.RichText)], t.prototype, "DescContent", void 0), i([I(cc.ScrollView)], t.prototype, "ContentScroll", void 0), i([I(cc.Layout)], t.prototype, "ViewLayout", void 0), i([I(p.default)], t.prototype, "LocationComponent", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/TipsLocationComponent": "TipsLocationComponent"
    }],
    MonthTakenChallengeFailComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06d81dAUxNCHb7JRUEIyq6u", "MonthTakenChallengeFailComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../EZFramework/UIFrame/UIManager"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/Components"),
            p = e("../../Components/Components"),
            d = e("../Components/SettlementBaseComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LineLv = null, t.LvLabel = null, t.LineTimes = null, t.TimesRichText = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t.BattleName = null, t._isInit = !1, t._battleData = null, t
                }
                return r(t, e), t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t), this._battleData = t.SettleParams[0], this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.SetBtnState(), this.SetInfo()
                }, t.prototype.SetStaticLocalText = function() {
                    this.LineLv.string = "moonTemple_strength_level".ToUILocale(), this.LineTimes.string = "moonTemple_strength_add".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this)
                }, t.prototype.SetBtnState = function() {
                    var e = l.UIManager.Instance.GetUIPanel(c.PanelConfig.MonthTakenTemplePanel.Path);
                    this.BtnReturn.node.active = null == e
                }, t.prototype.SetInfo = function() {
                    this.LvLabel.string = "Lv." + this._battleData.Level, this.TimesRichText.string = "moonTemple_settle_times".ToUILocale().Fmt(this._battleData.Intensify);
                    var e = u.ConfigDataComponent.Instance.GetConfigById(a.MoonShrine_Config, this._battleData.ShrineId);
                    e && (this.BattleName.string = e.Id.ToMoonShrineName())
                }, t.prototype.OnBtnSureClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    l.UIManager.Instance.BackUIPanel();
                    var e = new s.Req_Map_MoonTempleEnter;
                    p.RpcComponent.Instance.Call(e, function(e) {
                        l.UIManager.Instance.ShowUIPanel(c.PanelConfig.MonthTakenTemplePanel.Path, e)
                    })
                }, i([y(cc.Label)], t.prototype, "LineLv", void 0), i([y(cc.Label)], t.prototype, "LvLabel", void 0), i([y(cc.Label)], t.prototype, "LineTimes", void 0), i([y(cc.RichText)], t.prototype, "TimesRichText", void 0), i([y(cc.Button)], t.prototype, "BtnReturn", void 0), i([y(cc.Button)], t.prototype, "BtnSure", void 0), i([y(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([y(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([y(cc.Label)], t.prototype, "BattleName", void 0), i([f], t)
            }(d.default);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent"
    }],
    MonthTakenTempleBaseItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3b31e50+ZNBbLEo8roI+dqX", "MonthTakenTempleBaseItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./MonthTakenTemplePanel"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Components/Components"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BaseImage = null, t.BaseLabel = null, t.NameBg = null, t.NameLabel = null, t.HeroNode = null, t.Country = null, t.LightBgs = [], t._heroPrefab = null, t._moonShrine = null, t._playerInfo = null, t._config = null, t._moonShrines = [], t._myRank = 0, t._playerInfoMap = new Map, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnBaseClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnBaseClick, this)
                }, t.prototype.InitUI = function(e, t, n) {
                    var o = this;
                    if (this._moonShrine = e, this._moonShrines = t, this._myRank = n, this.Country.node.active = !1, this._config = d.ConfigDataComponent.Instance.GetConfigById(p.MoonShrine_Config, this._moonShrine._id), this._config) {
                        this.BaseLabel.string = this._config.Id.ToMoonShrineName();
                        var r = this.GetImageByType(this._config.Type);
                        if (r.baseBg && r.nameBg) {
                            this.BaseImage.spriteFrame = r.baseBg, this.NameBg.spriteFrame = r.nameBg;
                            for (var i = 0; i < this.LightBgs.length; i++) this.LightBgs[i].active = i + 1 == this._config.Type
                        }
                    }
                    if (this._moonShrine.Uid && this._moonShrine.Uid > 0)
                        if (this._playerInfoMap.has(this._moonShrine.Uid)) this._playerInfo = this._playerInfoMap.get(this._moonShrine.Uid), this.NameLabel.string = this._playerInfo.Info.Name, this._playerInfo.Info.Country && (this.Country.node.active = !0, g.UIUtlity.SetCountrySpriteFrame(this.Country, this._playerInfo.Info.Country)), this.SetHero(!0);
                        else {
                            var a = new c.Req_Player_GetPlayerDetailInfo;
                            a.Uid = this._moonShrine.Uid, d.RpcComponent.Instance.Call(a, function(e) {
                                o._playerInfo = e, o._playerInfoMap.set(e.Info.Uid, e), o._playerInfo && o._playerInfo.Info && (o.NameLabel.string = o._playerInfo.Info.Name, o._playerInfo.Info.Country && (o.Country.node.active = !0, g.UIUtlity.SetCountrySpriteFrame(o.Country, o._playerInfo.Info.Country)), o.SetHero(!0))
                            })
                        }
                    else this.NameLabel.string = "rank_no_people".ToUILocale(), this._playerInfo = null, this.SetHero(!1)
                }, t.prototype.SetHero = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, c, f;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e ? (t = this._playerInfo.Info.HeadIcon, (n = m.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, t)) || (n = m.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, t)), n && n.Model ? (o = this, [4, h.AssetsManager.Instance.LoadAsset("Hero_" + n.Model + "/HeroAvatar", cc.Prefab)]) : [3, 2]) : [3, 3];
                                case 1:
                                    if (o._heroPrefab = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._heroPrefab), [2];
                                    this.HeroNode.destroyAllChildren(), (f = cc.instantiate(this._heroPrefab)).parent = this.HeroNode, f.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0), s.label = 2;
                                case 2:
                                    return [3, 5];
                                case 3:
                                    return this._config ? (r = 0, (i = d.ConfigDataComponent.Instance.GetConfigById(p.MapBase_Config, this._config.MapId)) && i.Heros.length > 0 && (r = i.Heros[0].Items[1]), r && (a = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, r)) && a.Model ? (c = this, [4, h.AssetsManager.Instance.LoadAsset("Hero_" + a.Model + "/HeroAvatar", cc.Prefab)]) : [3, 5]) : [3, 5];
                                case 4:
                                    if (c._heroPrefab = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._heroPrefab), [2];
                                    this.HeroNode.destroyAllChildren(), (f = cc.instantiate(this._heroPrefab)).parent = this.HeroNode, f.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0), s.label = 5;
                                case 5:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetImageByType = function(e) {
                    var t = {};
                    if (y.default.MonthTakenAtlas) {
                        var n = y.default.MonthTakenAtlas.getSpriteFrame("base_" + e),
                            o = y.default.MonthTakenAtlas.getSpriteFrame("nameBg_" + e),
                            r = y.default.MonthTakenAtlas.getSpriteFrame("light_" + e);
                        t.baseBg = n, t.nameBg = o, t.lightBg = r
                    }
                    return t
                }, t.prototype.OnBaseClick = function() {
                    h.UIManager.Instance.ShowUIPanel(f.PanelConfig.MonthTakenTempleChallengePanel.Path, this._playerInfo, this._moonShrine, this._heroPrefab, this._moonShrines, this._myRank)
                }, t.prototype.onDestroy = function() {
                    h.AssetsManager.Instance.UnloadAsset(this._heroPrefab), this._playerInfo = null, this._playerInfoMap = null
                }, i([C(cc.Sprite)], t.prototype, "BaseImage", void 0), i([C(cc.Label)], t.prototype, "BaseLabel", void 0), i([C(cc.Sprite)], t.prototype, "NameBg", void 0), i([C(cc.Label)], t.prototype, "NameLabel", void 0), i([C(cc.Node)], t.prototype, "HeroNode", void 0), i([C(cc.Sprite)], t.prototype, "Country", void 0), i([C(cc.Node)], t.prototype, "LightBgs", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./MonthTakenTemplePanel": "MonthTakenTemplePanel"
    }],
    MonthTakenTempleChallengePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fc175OmK+NCPaTz4mfMQ7ih", "MonthTakenTempleChallengePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("./MonthTakenTemplePanel"),
            m = e("../Components/HeadComponent"),
            I = e("../../Components/Components"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../../Consts/Consts"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !0), t.TitleLabel = null, t.BaseLabel = null, t.BaseImage = null, t.BaseNameBg = null, t.Lights = [], t.CurrentLabel = null, t.AddLabel = null, t.NoPlayerLabel = null, t.PlayerNode = null, t.Head = null, t.PlayerNameLabel = null, t.LevelTag = null, t.PlayerLevelLabel = null, t.ZoneTag = null, t.PlayerZoneLabel = null, t.AddAttrNodes = [], t.HeroNode = null, t.Limit1Label = null, t.Limit1ValueLabel = null, t.Limit2Label = null, t.Limit2ValueLabel = null, t.GoButton = null, t.StrengDescLabel = null, t.StrengLvLabel = null, t.Toggles = [], t.ChallengeButton = null, t.ChallengeLabel = null, t.ReportButton = null, t.ReportLabel = null, t._selectTog = 0, t._headItemPrefab = null, t._deadLine = 0, t._moonShrine = null, t._playerInfo = null, t._config = null, t._heroHead = null, t._heroPrefab = null, t._heroNode = null, t._moonTempleCooldown = 0, t._moonShrines = [], t._myRank = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                        n._headItemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "moonTemple_challenge_title".ToUILocale(), this.CurrentLabel.string = "moonTemple_current".ToUILocale(), this.AddLabel.string = "moonTemple_add_attr".ToUILocale(), this.ChallengeLabel.string = "moonTemple_challenge_limit".ToUILocale(), this.StrengDescLabel.string = "moonTemple_strength_level".ToUILocale(), this.ReportLabel.string = "moonTemple_report".ToUILocale(), this.NoPlayerLabel.string = "moonTemple_no_player_success".ToUILocale(), this.Limit1Label.string = "moonTemple_challenge_limit".ToUILocale(), this.Limit2Label.string = "moonTemple_myRank".ToUILocale(), this.ZoneTag.string = "PlayerSetting_server".ToUILocale(), this.LevelTag.string = "allianceBase_levelSimple".ToUILocale(), this.GoButton.node.on("click", this.OnGoButtonClick, this), this.ReportButton.node.on("click", this.OnReportButtonClick, this), this.ChallengeButton.node.on("click", this.OnChallengeButtonClick, this), this.Head.on(cc.Node.EventType.TOUCH_END, this.OnHeadClick, this);
                    for (var t = 0; t < this.Toggles.length; t++) this.Toggles[t].node.on("toggle", this.OnSwitchTab, this);
                    this.Toggles.forEach(function(e) {
                        e.node.active = !1
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._playerInfo = t[0], this._moonShrine = t[1], this._heroPrefab = t[2], this._moonShrines = t[3], this._myRank = t[4], this._config = c.ConfigDataComponent.Instance.GetConfigById(p.MoonShrine_Config, this._moonShrine._id), this._moonTempleCooldown = I.ConfigDataComponent.Instance.GetGlobalSettingByKey("MoonTempleCooldown")
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.initNode(), this.SetBase(), this.SetCurrentPossession(), this.SetAddAttr(), this.SetLimit(), this.SetStrengthLv(), this.SetChallengeButton(), this.SetHero()
                }, t.prototype.initNode = function() {
                    this.NoPlayerLabel.node.active = !1, this.PlayerNode.active = !1
                }, t.prototype.SetBase = function() {
                    if (this._config && (this.BaseLabel.string = this._config.Id.ToMoonShrineName(), g.default.MonthTakenAtlas)) {
                        var e = g.default.MonthTakenAtlas.getSpriteFrame("base_" + this._config.Type),
                            t = g.default.MonthTakenAtlas.getSpriteFrame("nameBg_" + this._config.Type);
                        this.BaseImage.spriteFrame = e, this.BaseNameBg.spriteFrame = t;
                        for (var n = 0; n < this.Lights.length; n++) this.Lights[n].active = this._config.Type && n == this._config.Type - 1
                    }
                }, t.prototype.SetCurrentPossession = function() {
                    this._moonShrine.Uid && this._moonShrine.Uid > 0 ? (this.PlayerNode.active = !0, this.PlayerNameLabel.string = this._playerInfo.Info.Name, this.PlayerZoneLabel.string = "S" + this._playerInfo.Info.Zone, this.PlayerLevelLabel.string = "" + this._playerInfo.Info.Level, this._heroHead || (this._heroHead = cc.instantiate(this._headItemPrefab), this._heroHead.parent = this.Head), this._heroHead.getComponent(m.default).SetUI(this._playerInfo.Info.HeadIcon, this._playerInfo.Info.HeadFrame)) : this.NoPlayerLabel.node.active = !0
                }, t.prototype.SetAddAttr = function() {
                    var e = this;
                    this.AddAttrNodes.forEach(function(t, n) {
                        if (e._config.Attrs[n]) {
                            t.active = !0;
                            var o = t.getChildByName("Icon").getComponent(cc.Sprite),
                                r = t.getChildByName("Tag").getComponent(cc.Label),
                                i = t.getChildByName("Value").getComponent(cc.Label),
                                a = e._config.Attrs[n].Items[0],
                                s = e._config.Attrs[n].Items[1],
                                l = I.ConfigDataComponent.Instance.GetConfigById(p.HeroAttribute_Config, a);
                            if (l) {
                                var c = f.default.GetAttrIcon(a);
                                o.spriteFrame = c, r.string = l.Name.ToUILocale(), i.string = 1 == l.Format ? "+" + s : "+" + Math.round(s / 10) + "%"
                            }
                        } else t.active = !1
                    })
                }, t.prototype.SetHero = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._heroPrefab && (this._heroNode || (this._heroNode = cc.instantiate(this._heroPrefab), this._heroNode.parent = this.HeroNode), this._heroNode.getComponent(sp.Skeleton).setAnimation(0, u.SkillAnimationType.Standby, !0)), [2]
                        })
                    })
                }, t.prototype.SetLimit = function() {
                    var e = c.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, u.LevelParamType.MoonTempleRequirements).Data2;
                    e && e[this._config.Type - 1] && (this.Limit1ValueLabel.string = "moonTemple_limit".ToUILocale().Fmt(e[this._config.Type - 1].Items[1])), this._myRank ? this.Limit2ValueLabel.string = this._myRank.toString() : this.Limit2ValueLabel.string = "PlayerSetting_noAlliance".ToUILocale()
                }, t.prototype.SetStrengthLv = function() {
                    var e = this,
                        t = I.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, u.LevelParamType.MoonTempleCount);
                    this.StrengLvLabel.string = "Lv." + this._moonShrine.Level, t && this.Toggles.forEach(function(n, o) {
                        n.node.active = !0, n.isChecked = e._selectTog == o, t.Data[o] && (n.node.getChildByName("StrengLabel").getComponent(cc.Label).string = "moonTemple_strength_times".ToUILocale().Fmt(t.Data[o]))
                    })
                }, t.prototype.SetChallengeButton = function() {
                    var e = c.DataCenter.Instance.GetIntData(u.UserDataKey.MoonTempleTime),
                        t = c.RpcComponent.Instance.ServerTime;
                    e + this._moonTempleCooldown * C.Etc.SecondDuration < t ? this.ChallengeLabel.string = "SeniorArenaChallenge".ToUILocale() : (this._deadLine = e + this._moonTempleCooldown * C.Etc.SecondDuration, this.CountDownTime(), this.unschedule(this.CountDownTime), this.schedule(this.CountDownTime, 1));
                    var n = this.GetBaseId();
                    n && c.ConfigDataComponent.Instance.GetConfigById(p.MoonShrine_Config, n).Type < this._config.Type ? _.UIUtlity.OnNodeGray(this.ChallengeButton.node) : _.UIUtlity.OffNodeGray(this.ChallengeButton.node)
                }, t.prototype.CountDownTime = function() {
                    var e = c.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 ? (this.unschedule(this.CountDownTime), this.ChallengeLabel.string = "SeniorArenaChallenge".ToUILocale()) : this.ChallengeLabel.string = f.default.ActivityTimeLeftFormat(t)
                }, t.prototype.GetBaseId = function() {
                    var e = 0,
                        t = I.DataCenter.Instance.Uid;
                    return this._moonShrines.forEach(function(n) {
                        n.Uid == t && (e = n._id)
                    }), e
                }, t.prototype.OnSwitchTab = function(e) {
                    var t = Number.parseInt(e.name);
                    this._selectTog = t
                }, t.prototype.OnGoButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.ArenaPanel.Path)
                }, t.prototype.OnReportButtonClick = function() {
                    var e = new y.Req_Map_MoonTempleReports;
                    e.ReportIds = this._moonShrine.ReportIds, c.RpcComponent.Instance.Call(e, function(e) {
                        l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MonthTakenTempleReportPanel.Path, e.Reports)
                    })
                }, t.prototype.OnChallengeButtonClick = function() {
                    if (!f.default.IsCrossServerLadderChallengeEnable()) return _.UIUtlity.ShowFloatingHint("CrossServerChallengeTimeHint".ToUILocale());
                    var e = this.GetBaseId();
                    if (e && c.ConfigDataComponent.Instance.GetConfigById(p.MoonShrine_Config, e).Type < this._config.Type) _.UIUtlity.ShowFloatingHint("moonTemple_higher_level".ToUILocale());
                    else if (this._myRank && this._myRank > 0) {
                        var t = c.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, u.LevelParamType.MoonTempleRequirements).Data2;
                        if (t && t[this._config.Type - 1]) {
                            var n = t[this._config.Type - 1].Items[1];
                            if (this._myRank > n) _.UIUtlity.ShowFloatingHint("moonTemple_limit_challenge".ToUILocale());
                            else {
                                var o = c.DataCenter.Instance.GetIntData(u.UserDataKey.MoonTempleTime),
                                    r = c.RpcComponent.Instance.ServerTime;
                                if (o + this._moonTempleCooldown * C.Etc.SecondDuration < r) {
                                    var i = I.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, u.LevelParamType.MoonTempleCount),
                                        a = this._selectTog < i.Data.length && this._selectTog >= 0 ? i.Data[this._selectTog] : i.Data[i.Data.length - 1];
                                    l.Game.EventDispatcher.Emit(u.GameEventIds.StartBattle.Fmt(u.MapType.MoonTemple), this._config.MapId, this._moonShrine._id, a, this._moonShrine.Level + a), l.UIManager.Instance.BackUIPanel()
                                } else _.UIUtlity.ShowFloatingHint("moonTemple_coldDown".ToUILocale())
                            }
                        }
                    } else _.UIUtlity.ShowFloatingHint("moonTemple_limit_challenge".ToUILocale())
                }, t.prototype.OnHeadClick = function() {
                    this._playerInfo && this._playerInfo.Info && this._playerInfo.Info.Uid > 0 && l.UIManager.Instance.ShowUIPanel(h.PanelConfig.PlayerInfoPanel.Path, this._playerInfo.Info.Uid)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([S(cc.Label)], t.prototype, "TitleLabel", void 0), i([S(cc.Label)], t.prototype, "BaseLabel", void 0), i([S(cc.Sprite)], t.prototype, "BaseImage", void 0), i([S(cc.Sprite)], t.prototype, "BaseNameBg", void 0), i([S(cc.Node)], t.prototype, "Lights", void 0), i([S(cc.Label)], t.prototype, "CurrentLabel", void 0), i([S(cc.Label)], t.prototype, "AddLabel", void 0), i([S(cc.Label)], t.prototype, "NoPlayerLabel", void 0), i([S(cc.Node)], t.prototype, "PlayerNode", void 0), i([S(cc.Node)], t.prototype, "Head", void 0), i([S(cc.Label)], t.prototype, "PlayerNameLabel", void 0), i([S(cc.Label)], t.prototype, "LevelTag", void 0), i([S(cc.Label)], t.prototype, "PlayerLevelLabel", void 0), i([S(cc.Label)], t.prototype, "ZoneTag", void 0), i([S(cc.Label)], t.prototype, "PlayerZoneLabel", void 0), i([S(cc.Node)], t.prototype, "AddAttrNodes", void 0), i([S(cc.Node)], t.prototype, "HeroNode", void 0), i([S(cc.Label)], t.prototype, "Limit1Label", void 0), i([S(cc.Label)], t.prototype, "Limit1ValueLabel", void 0), i([S(cc.Label)], t.prototype, "Limit2Label", void 0), i([S(cc.Label)], t.prototype, "Limit2ValueLabel", void 0), i([S(cc.Button)], t.prototype, "GoButton", void 0), i([S(cc.Label)], t.prototype, "StrengDescLabel", void 0), i([S(cc.Label)], t.prototype, "StrengLvLabel", void 0), i([S(cc.Toggle)], t.prototype, "Toggles", void 0), i([S(cc.Button)], t.prototype, "ChallengeButton", void 0), i([S(cc.Label)], t.prototype, "ChallengeLabel", void 0), i([S(cc.Button)], t.prototype, "ReportButton", void 0), i([S(cc.Label)], t.prototype, "ReportLabel", void 0), i([b], t)
            }(d.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "./MonthTakenTemplePanel": "MonthTakenTemplePanel"
    }],
    MonthTakenTemplePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e1d7aeSeoRIyYAB1chhG8qz", "MonthTakenTemplePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../Consts/Consts"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Components/Components"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./MonthTakenTempleBaseItem"),
            m = e("../../Components/Components"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Battle/BattleManager"),
            C = e("../../../Util/TimeUtil"),
            v = e("../../../Consts/Consts"),
            b = e("../../Auxiliary/GameRecord"),
            S = e("../../RedDot/RedDotManager"),
            w = e("../../Auxiliary/EventKeys"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !0), t.NameLabel = null, t.RuleButton = null, t.LimitDescLabel = null, t.LimitRichText = [], t.BaseItems = [], t.ReturnButton = null, t.TimeDescLabel = null, t.TimeValueLabel = null, t._deadLine = 0, t._data = null, t._moonId = 0, t._moonDatas = {}, t._moonShrines = [], t._moonTempleConfig = null, t._myRank = 0, t.Names = ["moonTemple_name1", "moonTemple_name2", "moonTemple_name3"], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(w.EventKeys.EVENT_REFRESH_MOONTEMPLE_DATA, this.OnUpdateData, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(w.EventKeys.EVENT_REFRESH_MOONTEMPLE_DATA, this.OnUpdateData, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = n, [4, this.LoadDynamicAsset("MonthTakenTemplePanel/PNG/MonthTakenTemple", cc.SpriteAtlas)];
                                case 1:
                                    return t.MonthTakenAtlas = o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LimitDescLabel.string = "moonTemple_challenge_limit".ToUILocale(), this.TimeDescLabel.string = "gift_remainderTime".ToUILocale(), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0], this._moonDatas = this._data.Shrines, this._moonId = this._data.MoonId, this._myRank = this._data.MyRank, this._moonTempleConfig = f.ConfigDataComponent.Instance.GetConfigById(u.MoonTemple_Config, this._moonId), this.DealWithData()
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetInfo(), this.SetTime(), this.SetBaseItems()
                }, t.prototype.DealWithData = function() {
                    var e = this;
                    this._moonShrines = [], this._moonTempleConfig && this._moonTempleConfig.ShrineIds.forEach(function(t) {
                        var n = {},
                            o = e._moonDatas[t.toString()];
                        o ? n = o : (n.InitLevel = 0, n.Level = 0, n.ReportIds = [], n.Uid = -1, n._id = t), e._moonShrines.push(n)
                    })
                }, t.prototype.SetInfo = function() {
                    var e = this;
                    this.NameLabel.string = "SystemSetting_message_1".ToUILocale(), b.default.SetItem(b.GameRecordDefine.MoonTakenTempleRedDot, m.RpcComponent.Instance.ServerTime), S.RedDotManager.Instance.RedDot.MoonTakenTempleNode.NeedRefresh = !0;
                    var t = f.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, p.LevelParamType.MoonTempleRequirements).Data2;
                    t && this.LimitRichText.forEach(function(n, o) {
                        e.GetBaseConfig(o + 1) && t[o] ? (n.node.active = !0, n.string = "moonTemple_limit_arena".ToUILocale().Fmt(e.Names[o].ToUILocale(), t[o].Items[1])) : n.node.active = !1
                    })
                }, t.prototype.SetBaseItems = function() {
                    var e = this;
                    this.BaseItems.forEach(function(t, n) {
                        e._moonShrines[n] && t.InitUI(e._moonShrines[n], e._moonShrines, e._myRank)
                    })
                }, t.prototype.SetTime = function() {
                    this._deadLine = C.TimeUtil.GetMondayClock0Ts(f.RpcComponent.Instance.ServerTime) + 7 * v.Etc.DayDuration, this.CountDownTime(), this.unschedule(this.CountDownTime), this.schedule(this.CountDownTime, 1)
                }, t.prototype.CountDownTime = function() {
                    var e = f.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 && c.UIManager.Instance.BackUIPanel(), this.TimeValueLabel.string = h.default.ActivityTimeLeftFormat(t)
                }, t.prototype.GetBaseConfig = function(e) {
                    for (var t = null, n = 0; n < this._moonShrines.length; n++) {
                        var o = f.ConfigDataComponent.Instance.GetConfigById(u.MoonShrine_Config, this._moonShrines[n]._id);
                        if (o.Type == e) {
                            t = o;
                            break
                        }
                    }
                    return t
                }, t.prototype.OnReturnButtonClick = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "SystemSetting_message_1".ToUILocale(),
                        titles: ["moonTemple_rule_sub".ToUILocale()],
                        contents: ["moonTemple_rule_content".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnUpdateData = function(e) {
                    this._moonDatas = e.Shrines, this._myRank = e.MyRank, this.DealWithData(), this.SetUIContent()
                }, t.InitBattle = function() {
                    var e = p.MapType.MoonTemple;
                    c.Game.EventDispatcher.Only(p.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), c.Game.EventDispatcher.Only(p.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), c.Game.EventDispatcher.Only(p.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), c.Game.EventDispatcher.Only(p.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n), c.Game.EventDispatcher.Only(p.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.RestartBattle = function() {
                    n.StartBattle(n._CurrentBattleMapId, n._ShrineId, n._Intensify, n._Level)
                }, t.StartBattle = function(e, t, o, r) {
                    n._CurrentBattleMapId = e, n._ShrineId = t, n._Intensify = o, n._Level = r, d.UIManager.Instance.ShowUIPanel(I.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.RequestChallenge(e)
                    }, [e], {
                        MoonTempleLevel: n._Level
                    })
                }, t.RequestChallenge = function(e) {
                    var t = new l.Req_Map_MoonTempleChallenge;
                    t.ShrineId = n._ShrineId, t.Intensify = n._Intensify, t.Formations = e, f.RpcComponent.Instance.Call(t, function(e) {
                        c.Game.EventDispatcher.Emit(w.EventKeys.EVENT_REFRESH_MOONTEMPLE_DATA, e);
                        _.BattleManager.Instance.StartPlay(e.ReportData, {
                            CanCanel: !1,
                            CanRestart: !1
                        })
                    }.bind(this))
                }, t.SettleBattle = function(e) {
                    if (e.SettleParams) 1 == e.SettleParams[0].Result ? _.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementWinPanel.Path, n.settlementWin_prefab_path, e) : _.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementFailPanel.Path, n.settlementFail_prefab_path, e);
                    else {
                        var t = new l.Req_Map_BattleSettlement;
                        t.MapType = e.MapType, m.RpcComponent.Instance.Call(t, function(t) {
                            e.SettleParams = [JSON.parse(t.StringParam)], 1 == t.Result ? _.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementWinPanel.Path, n.settlementWin_prefab_path, e) : _.BattleManager.Instance.ShowSettlePanel(I.PanelConfig.SettlementFailPanel.Path, n.settlementFail_prefab_path, e)
                        })
                    }
                }, t.CancelBattle = function(e) {
                    var t = new l.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, m.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {
                    d.UIManager.Instance.QuitPanelStack(I.PanelConfig.MonthTakenTemplePanel.Path)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, t.MonthTakenAtlas = null, t.settlementWin_prefab_path = "MonthTakenTemplePanel/SubItems/MonthTakenTempleSettlementComponent", t.settlementFail_prefab_path = "MonthTakenTemplePanel/SubItems/MonthTakenChallengeFailComponent", t._CurrentBattleMapId = 0, t._ShrineId = 0, t._Intensify = 0, t._Level = 0, i([T(cc.Label)], t.prototype, "NameLabel", void 0), i([T(cc.Button)], t.prototype, "RuleButton", void 0), i([T(cc.Label)], t.prototype, "LimitDescLabel", void 0), i([T(cc.RichText)], t.prototype, "LimitRichText", void 0), i([T(g.default)], t.prototype, "BaseItems", void 0), i([T(cc.Button)], t.prototype, "ReturnButton", void 0), i([T(cc.Label)], t.prototype, "TimeDescLabel", void 0), i([T(cc.Label)], t.prototype, "TimeValueLabel", void 0), n = i([A], t)
            }(c.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "./MonthTakenTempleBaseItem": "MonthTakenTempleBaseItem"
    }],
    MonthTakenTempleReportItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "09a52WfOmlN9Z9r2zNPHDwH", "MonthTakenTempleReportItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../Components/HeadComponent"),
            p = e("../Components/ItemComponent"),
            d = e("../../../Util/TimeUtil"),
            h = e("../Battle/BattleManager"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NameLabel = null, t.DataLabel = null, t.TimeLabel = null, t.PowerLabel = null, t.TimesLabel = null, t.HeadNode = null, t.FormationsNode = null, t.ReplayButton = null, t._itemPrefab = null, t._headItemPrefab = null, t._formations = [], t._report = null, t._head = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ReplayButton.node.on("click", this.OnReplayClick, this)
                }, t.prototype.onDisable = function() {
                    this.ReplayButton.node.off("click", this.OnReplayClick, this)
                }, t.prototype.InitUI = function(e, t, n) {
                    this._headItemPrefab = e, this._itemPrefab = t, this._report = n, this.InitNode(), this.SetInfo(), this.SetHead(), this.SetFormations()
                }, t.prototype.InitNode = function() {
                    this._formations.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetInfo = function() {
                    this.NameLabel.string = "moonTemple_challenge_player".ToUILocale().Fmt(this._report.TargetInfo.Name), this.DataLabel.string = d.TimeUtil.Format("YYYY/MM/DD", this._report.Ts), this.TimeLabel.string = d.TimeUtil.Format("HH:mm:ss", this._report.Ts), this.PowerLabel.string = this._report.TargetInfo.Power.toString(), this.TimesLabel.string = "moonTemple_times".ToUILocale().Fmt(this._report.Level)
                }, t.prototype.SetHead = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            return this._head || (this._head = cc.instantiate(this._headItemPrefab), this._head.parent = this.HeadNode), (e = this._head.getComponent(u.default)).SetUI(this._report.TargetInfo.HeadIcon, this._report.TargetInfo.HeadFrame), e.SetLevel(this._report.TargetInfo.Level), e.SetCountry(this._report.TargetInfo.Country), [2]
                        })
                    })
                }, t.prototype.SetFormations = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function() {
                            return (this._report.Heros || []).forEach(function(t, n) {
                                if (!e._formations[n]) {
                                    var o = cc.instantiate(e._itemPrefab);
                                    o.parent = e.FormationsNode, e._formations[n] = o
                                }
                                e._formations[n].active = !0;
                                var r = {
                                    ItemId: t.HeroId,
                                    StarLevel: t.StarLevel,
                                    Level: t.Level,
                                    SkinId: t.SkinId
                                };
                                e._formations[n].getComponent(p.ItemComponent).Init(r, p.ItemComponentType.HeroInfo)
                            }), [2]
                        })
                    })
                }, t.prototype.OnReplayClick = function() {
                    var e = this,
                        t = new l.Req_Player_GetCommonReport;
                    t.Id = this._report.ReportId, c.RpcComponent.Instance.Call(t, function(t) {
                        h.BattleManager.Instance.StartPlay(t.Reports[0], {
                            CanCanel: !1,
                            CanRestart: !1,
                            CanPlayInBackground: !1,
                            CanSkipPlay: !0
                        }).SettleParams = [e._report]
                    })
                }, i([g(cc.Label)], t.prototype, "NameLabel", void 0), i([g(cc.Label)], t.prototype, "DataLabel", void 0), i([g(cc.Label)], t.prototype, "TimeLabel", void 0), i([g(cc.Label)], t.prototype, "PowerLabel", void 0), i([g(cc.RichText)], t.prototype, "TimesLabel", void 0), i([g(cc.Node)], t.prototype, "HeadNode", void 0), i([g(cc.Node)], t.prototype, "FormationsNode", void 0), i([g(cc.Button)], t.prototype, "ReplayButton", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Components/Components": "Components",
        "../Battle/BattleManager": "BattleManager",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    MonthTakenTempleReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "441e1/xL7xM+KGvrH9zkfYo", "MonthTakenTempleReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Components/CustomLayout"),
            d = e("./MonthTakenTempleReportItem"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0), t.PanelNameLabel = null, t.EmptyTipLabel = null, t.ReportScrollView = null, t.ReportListContainer = null, t._customLayout = null, t._headItemPrefab = null, t._reportItemPrefab = null, t._itemPrefab = null, t._reports = [], t._sortReports = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.HeadComponent, cc.Prefab), n = this.LoadDynamicAsset("MonthTakenTemplePanel/SubItems/MonthTakenTempleReportItem", cc.Prefab), o = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._headItemPrefab = e[0], r._reportItemPrefab = e[1], r._itemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshReportList, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshReportList, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelNameLabel.string = "moonTemple_report".ToUILocale(), this.EmptyTipLabel.string = "arena_reportPanelEmptyDesc".ToUILocale(), this._customLayout = this.ReportListContainer.getComponent(p.default)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._reports = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetListView()
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._customLayout.Init(this._reportItemPrefab), this.SortReports(), this.EmptyTipLabel.node.active = this._reports.length <= 0, this._customLayout.RenderLayOut(this._reports.length), [2]
                        })
                    })
                }, t.prototype.SortReports = function() {
                    var e = this;
                    this._sortReports = [], this._reports.forEach(function(t) {
                        e._sortReports.push(t)
                    }), this._sortReports.sort(function(e, t) {
                        return t.Ts - e.Ts
                    })
                }, t.prototype.OnRefreshReportList = function(e, t) {
                    var n = this;
                    this._customLayout == t && e.forEach(function(e, t) {
                        e.getComponent(d.default).InitUI(n._headItemPrefab, n._itemPrefab, n._sortReports[t])
                    })
                }, i([y(cc.Label)], t.prototype, "PanelNameLabel", void 0), i([y(cc.Label)], t.prototype, "EmptyTipLabel", void 0), i([y(cc.ScrollView)], t.prototype, "ReportScrollView", void 0), i([y(cc.Node)], t.prototype, "ReportListContainer", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/CustomLayout": "CustomLayout",
        "./MonthTakenTempleReportItem": "MonthTakenTempleReportItem"
    }],
    MonthTakenTempleSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fccccbFMXVJb6waVSd6CqAq", "MonthTakenTempleSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./SettlementBaseComponent"),
            s = e("./CustomRichText"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/UIFrame/UIManager"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../Components/Components"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LineLv = null, t.LvLabel = null, t.LineTimes = null, t.TimesRichText = null, t.BtnReturn = null, t.BtnSure = null, t.LabelBtnReturn = null, t.LabelBtnSure = null, t.BattleName = null, t._isInit = !1, t._battleData = null, t
                }
                return r(t, e), t.prototype.SetUI = function(t) {
                    e.prototype.SetUI.call(this, t), this._battleData = t.SettleParams[0], this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.SetBtnState(), this.SetInfo()
                }, t.prototype.SetStaticLocalText = function() {
                    this.LineLv.string = "moonTemple_strength_level".ToUILocale(), this.LineTimes.string = "moonTemple_strength_add".ToUILocale(), this.LabelBtnReturn.string = "win_return".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this)
                }, t.prototype.SetBtnState = function() {
                    var e = u.UIManager.Instance.GetUIPanel(p.PanelConfig.MonthTakenTemplePanel.Path);
                    this.BtnReturn.node.active = null == e
                }, t.prototype.SetInfo = function() {
                    this.LvLabel.string = "Lv." + this._battleData.Level, this.TimesRichText.string = "moonTemple_settle_times".ToUILocale().Fmt(this._battleData.Intensify);
                    var e = d.ConfigDataComponent.Instance.GetConfigById(l.MoonShrine_Config, this._battleData.ShrineId);
                    e && this.BattleName.Init(e.Id.ToMoonShrineName())
                }, t.prototype.OnBtnSureClick = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnReturnClick = function() {
                    u.UIManager.Instance.BackUIPanel();
                    var e = new c.Req_Map_MoonTempleEnter;
                    h.RpcComponent.Instance.Call(e, function(e) {
                        u.UIManager.Instance.ShowUIPanel(p.PanelConfig.MonthTakenTemplePanel.Path, e)
                    })
                }, i([g(cc.Label)], t.prototype, "LineLv", void 0), i([g(cc.Label)], t.prototype, "LvLabel", void 0), i([g(cc.Label)], t.prototype, "LineTimes", void 0), i([g(cc.RichText)], t.prototype, "TimesRichText", void 0), i([g(cc.Button)], t.prototype, "BtnReturn", void 0), i([g(cc.Button)], t.prototype, "BtnSure", void 0), i([g(cc.Label)], t.prototype, "LabelBtnReturn", void 0), i([g(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([g(s.CustomRichText)], t.prototype, "BattleName", void 0), i([y], t)
            }(a.default);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "./CustomRichText": "CustomRichText",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    MsgComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "49042ToNG5En5XebsDdWsPU", "MsgComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MsgRichText = null, t.ItemIcon = null, t.ItemCountLabel = null, t._itemIconMap = new Map, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this.MsgRichText.string = e, this.ItemCountLabel.string = n, (o = this._itemIconMap.get(t)) ? [3, 2] : (r = c.default.Instance.GetItemPathById(t), [4, l.AssetsManager.Instance.LoadAsset(r, cc.SpriteFrame)]);
                                case 1:
                                    if (o = i.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(o), [2];
                                    this._itemIconMap.set(t, o), i.label = 2;
                                case 2:
                                    return this.ItemIcon.spriteFrame = o, [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._itemIconMap.size > 0 && this._itemIconMap.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([d(cc.RichText)], t.prototype, "MsgRichText", void 0), i([d(cc.Sprite)], t.prototype, "ItemIcon", void 0), i([d(cc.Label)], t.prototype, "ItemCountLabel", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    MultipleGiftPackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1bdd5dCroJHHIpiJoxQ+ThK", "MultipleGiftPackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GiftPackState = void 0;
        var a, s = e("./LevelComponent"),
            l = e("./LoadAssetHelper"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property;
        (function(e) {
            e[e.CanBuy = 0] = "CanBuy", e[e.SoldOut = 1] = "SoldOut", e[e.Locked = 2] = "Locked"
        })(a = n.GiftPackState || (n.GiftPackState = {}));
        var d = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.MaskSprite = null, t.Lock = null, t.Icon = null, t.SelectNode = null, t.Stars = null, t.StateLabel = null, t.HasBoughtTag = null, t.LoadAssetHelper = null, t.WHITE_COLOR = (new cc.Color).fromHEX("#E2E2E2"), t.GREEN_COLOR = (new cc.Color).fromHEX("#6eeea7"), t
            }
            return r(t, e), t.prototype.Init = function(e, t, n) {
                switch (this.State = e, this.SetStar(n), this.LoadAssetHelper.LoadSpriteFrame(t, this.Icon, null, 0, !0), this.LoadAssetHelper.LoadSpriteFrame(t, this.MaskSprite, null, 1, !0), this.StateLabel.node.active = !1, this.Lock.active = !1, this.HasBoughtTag.active = !1, this.MaskSprite.node.active = !1, e) {
                    case a.CanBuy:
                        this.StateLabel.node.active = !0, this.StateLabel.string = "MultipleGift_unlock".ToUILocale(), this.StateLabel.node.color = this.GREEN_COLOR;
                        break;
                    case a.Locked:
                        this.StateLabel.node.active = !0, this.StateLabel.string = "CollectionPavilion_Item_Lock".ToUILocale(), this.StateLabel.node.color = this.WHITE_COLOR, this.Lock.active = !0, this.MaskSprite.node.active = !0;
                        break;
                    case a.SoldOut:
                        this.HasBoughtTag.active = !0, this.MaskSprite.node.active = !0
                }
            }, t.prototype.SetStar = function(e) {
                this.Stars.Init(e, 0, 0)
            }, i([p(cc.Sprite)], t.prototype, "MaskSprite", void 0), i([p(cc.Node)], t.prototype, "Lock", void 0), i([p(cc.Sprite)], t.prototype, "Icon", void 0), i([p(cc.Node)], t.prototype, "SelectNode", void 0), i([p(s.LevelComponent)], t.prototype, "Stars", void 0), i([p(cc.Label)], t.prototype, "StateLabel", void 0), i([p(cc.Node)], t.prototype, "HasBoughtTag", void 0), i([p(l.default)], t.prototype, "LoadAssetHelper", void 0), i([u], t)
        }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "./LevelComponent": "LevelComponent",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    MultipleGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d4ee0pLH+VKhbq4tqaolD9E", "MultipleGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Components/Components"),
            f = e("../Components/LoadAssetHelper"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../Util/TimeUtil"),
            m = e("../Components/MultipleGiftToggle"),
            I = e("../../Components/Components"),
            _ = e("../Components/MultipleGiftPackComponent"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../Components/ItemComponent"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../../Auxiliary/DataUtlity"),
            w = e("../../Channel/ChannelManager"),
            P = e("../../../Consts/Etc"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.ArtLabel = 1] = "ArtLabel", e[e.BgImage = 2] = "BgImage"
        })(l || (l = {})),
        function(e) {
            e[e.Image = 1] = "Image", e[e.Hero = 2] = "Hero", e[e.SuperWeapon = 3] = "SuperWeapon", e[e.Pet = 4] = "Pet", e[e.Angel = 5] = "Angel", e[e.Personality = 6] = "Personality"
        }(c || (c = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new d.UIPanelType(d.UINodeType.Fixed), t.GiftPackNodes = null, t.SelectNode = null, t.AvatarNode = null, t.BgSprite = null, t.FreeRewardBtn = null, t.FreeRewardLabel = null, t.ArtLabel = null, t.LfetArrowButton = null, t.RightArrowButton = null, t.GiftPackItemScrollView = null, t.GiftPackItemContainer = null, t.OrangeButtonLabel = null, t.OrangeButton = null, t.AttainLabel = null, t.AttainValue = null, t.SellOutTag = null, t.SellOutTagLabel = null, t.DiscountValue = null, t.LoackLabel = null, t.Back = null, t.CountDownNode = null, t.CountDownLabel = null, t.CountDownValue = null, t.ToogleContainer = null, t.ScrollView = null, t.LoadAssetHelper = null, t._multipleGiftComponentPrefab = null, t._itemPrefab = null, t._activePageConfigs = [], t._itemComponents = [], t._packComponents = [], t.MAX_COUNT = 5, t.CIRCLE_CENTER = [0, 350], t.CIRCLE_RADIUS = 420, t.CIRCLE_ANGLE = 160, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                d.Game.EventDispatcher.On(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                d.Game.EventDispatcher.Off(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("MultipleGiftPanel/MultipleGiftPackComponent", cc.Prefab), n = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._multipleGiftComponentPrefab = e[0], o._itemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.FreeRewardLabel.string = "eightDays_toggle0".ToUILocale(), this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.SellOutTagLabel.string = "sellout".ToUILocale(), this.LoackLabel.string = "stockUpFestival_limit".ToUILocale(), this.OrangeButton.node.on("click", this.OnPurchaseButtonClick, this), this.LfetArrowButton.node.on("click", this.OnLeftArrowClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowClick, this), this.FreeRewardBtn.node.on("click", this.OnFreeRewardClick, this), this.Back.node.on("click", this.OnBackClick, this)
            }, t.prototype.InitData = function(t) {
                var n = this;
                e.prototype.InitData.call(this, t);
                var o = t[0];
                if (this._activityConfig = h.DataCenter.Instance.ActivityConfigs[o], !this._pageMap) {
                    this._pageMap = {};
                    for (var r = 0; r < this._activityConfig.__PageType.length; r++) {
                        var i = this._activityConfig.__PageType[r];
                        this._pageMap[i.Id] = i
                    }
                }
                if (!this._packMap)
                    for (this._packMap = {}, r = 0; r < this._activityConfig._Packs.length; r++) i = this._activityConfig._Packs[r], this._packMap[i.Id] = i;
                void 0 === this._localeMap && (this._localeMap = {}, this._activityConfig._Locale.forEach(function(e) {
                    n._localeMap[e.Id] = e
                }))
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), this._activityData = I.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), !t) {
                    if (this._activityConfig.CustomPart.ShowTime ? this.CountDownNode.active = !0 : this.CountDownNode.active = !1, this._activityConfig.Common.IsZoneOpen) {
                        var n = I.DataCenter.Instance.Zones[I.DataCenter.Zone].OpenTime,
                            o = this._activityConfig.Common.RequireOpenDays - 1;
                        o = o < 0 ? 0 : o, this._activityStartTime = g.TimeUtil.Get0ClockTs(n) + o * P.Etc.DayDuration
                    } else this._activityStartTime = this._activityConfig.Common.StartTime;
                    if (this._activePageConfigs = S.default.Instance.GetSortedActiveMultipleGift(this._activityConfig._id), this._activePageConfigs.length < 1) return void d.UIManager.Instance.BackUIPanel();
                    this._currentSelectPageId = this._activePageConfigs[0].Id
                }
                this.InitToggles(), this.RenderPage(!t);
                var r = S.default.Instance.GetSortedActiveMultipleGift(this._activityConfig._id);
                r.length > 0 ? d.Game.EventDispatcher.Emit(b.EventKeys.EVENT_ACTIVITY_ICON_REFRESH, this._activityConfig._id, r[0].Icon) : d.Game.EventDispatcher.Emit(b.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, this._activityConfig._id, -1)
            }, t.prototype.SetTimeValue = function(e) {
                this._deadLineTime = e, this.CountDownLabel.string = "activity_remain_time".ToUILocale(), this.RefreshLeftTime(), this.unschedule(this.RefreshLeftTime), this.schedule(this.RefreshLeftTime, 1)
            }, t.prototype.RefreshLeftTime = function() {
                var e = this._deadLineTime - I.RpcComponent.Instance.ServerTime;
                e <= 0 ? (e = 0, this.unschedule(this.RefreshLeftTime), this.CountDownLabel.string = "Activity_HeroPK_Round_Tag_End".ToUILocale()) : this.CountDownValue.string = S.default.ActivityTimeLeftFormat(e)
            }, t.prototype.InitToggles = function() {
                if (!this._toggles) {
                    this._toggles = [], this._toggles.push(this.ToogleContainer.children[0].getComponent(m.default));
                    for (var e = 0; e < this._activePageConfigs.length; e++) {
                        var t = this._toggles[e];
                        if (!t) {
                            var n = cc.instantiate(this.ToogleContainer.children[0]);
                            n.parent = this.ToogleContainer, t = n.getComponent(m.default), this._toggles.push(t)
                        }
                        t.node.active = !0, t.Init(this._localeMap[this._activePageConfigs[e].Id].Content, 24, this._activePageConfigs[e].Icon), t.node.on("click", this.OnToggleClick, this), t.node.name = this._activePageConfigs[e].Id.toString()
                    }
                    this._activePageConfigs.length > this.MAX_COUNT ? this.ScrollView.scrollToLeft() : this.ScrollView.scrollToRight()
                }
                for (e = 0; e < this._toggles.length; e++) this._activityData.IntMap[this._activePageConfigs[e].Id] ? this._toggles[e].SetRedDot(!1) : this._toggles[e].SetRedDot(!0)
            }, t.prototype.OnToggleClick = function(e) {
                var t = Number.parseInt(e.name);
                t != this._currentSelectPageId && (this._currentSelectPageId = t, this.RefreshToggleLabel(), this.RenderPage(!0))
            }, t.prototype.RefreshToggleLabel = function() {
                for (var e = 0; e < this._toggles.length; e++) this._toggles[e].OnIsCheckedChanged()
            }, t.prototype.RenderPage = function(e) {
                void 0 === e && (e = !0);
                for (var t = this._pageMap[this._currentSelectPageId].GiftIds.length, n = 0; n < t; n++) {
                    var o = this._packComponents[n];
                    o || (o = cc.instantiate(this._multipleGiftComponentPrefab).getComponent(_.default), this._packComponents.push(o), o.node.name = n.toString(), o.node.on("click", this.OnPackClick, this), o.node.parent = this.GiftPackNodes), o.node.setPosition(this.SetPackPos(t, n));
                    var r, i = this._pageMap[this._currentSelectPageId].GiftIds[n],
                        a = this._pageMap[this._currentSelectPageId].GiftIds[n - 1];
                    r = this._activityData.Packs[i].Items[0] && this._packMap[i].LimitCount && this._activityData.Packs[i].Items[0] >= this._packMap[i].LimitCount ? _.GiftPackState.SoldOut : !n || this._activityData.Packs[a].Items[0] ? _.GiftPackState.CanBuy : _.GiftPackState.Locked;
                    var s = this._pageMap[this._currentSelectPageId].GiftStars[n] ? this._pageMap[this._currentSelectPageId].GiftStars[n] : 0;
                    o.Init(r, this._pageMap[this._currentSelectPageId].GiftIcons[n], s), o.node.active = !0
                }
                for (n = t; n < this._packComponents.length; n++) this._packComponents[n].node.active = !1;
                if (this._activityData.IntMap[this._currentSelectPageId] ? this.FreeRewardBtn.node.active = !1 : this.FreeRewardBtn.node.active = !0, this._pageMap[this._currentSelectPageId].TextPics.length > 0 ? (this.ArtLabel.node.active = !0, this.LoadAssetHelper.LoadSpriteFrame(this._pageMap[this._currentSelectPageId].TextPics[0], this.ArtLabel, null, l.ArtLabel, !0)) : this.ArtLabel.node.active = !1, this._pageMap[this._currentSelectPageId].BgType == c.Image) this.BgSprite.node.active = !0, this.AvatarNode.active = !1, this.LoadAssetHelper.LoadSpriteFrame(this._pageMap[this._currentSelectPageId].BgContent, this.BgSprite, null, l.BgImage, !0);
                else switch (this.BgSprite.node.active = !1, this.AvatarNode.active = !0, this.AvatarNode.y = 425, this._pageMap[this._currentSelectPageId].BgType) {
                    case c.Hero:
                        var u = h.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, Number.parseInt(this._pageMap[this._currentSelectPageId].BgContent));
                        u && this.LoadAssetHelper.LoadPrefab(u.UIAvatar + "/Avatar", this.AvatarNode);
                        break;
                    case c.SuperWeapon:
                        var d = h.ConfigDataComponent.Instance.GetConfigById(p.SuperWeapon_Config, Number.parseInt(this._pageMap[this._currentSelectPageId].BgContent));
                        d && this.LoadAssetHelper.LoadPrefab(d.Model + "/Avatar", this.AvatarNode);
                        break;
                    case c.Pet:
                        this.AvatarNode.y = 0;
                        var f = h.ConfigDataComponent.Instance.GetConfigById(p.PetBase_Config, Number.parseInt(this._pageMap[this._currentSelectPageId].BgContent));
                        f && this.LoadAssetHelper.LoadPrefab(f.UIAvatar + "/Avatar", this.AvatarNode);
                        break;
                    case c.Angel:
                        var y = h.ConfigDataComponent.Instance.GetConfigById(p.AngelGodAvatar_Config, Number.parseInt(this._pageMap[this._currentSelectPageId].BgContent));
                        y && this.LoadAssetHelper.LoadPrefab(y.UIAvatar + "/Avatar", this.AvatarNode);
                        break;
                    case c.Personality:
                        var g = h.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, Number.parseInt(this._pageMap[this._currentSelectPageId].BgContent));
                        g && this.LoadAssetHelper.LoadPrefab(g.UIAvatar + "/Avatar", this.AvatarNode)
                }
                if (e && (this._currentSelectGiftPackIndex = this.GetCurrentSelectPackId()), this._activityConfig.CustomPart.ShowTime) {
                    var m = this._pageMap[this._currentSelectPageId].EndTime;
                    m ? (this.CountDownNode.active = !0, this.SetTimeValue(this._activityStartTime + (m - 1) * P.Etc.DayDuration)) : (this.CountDownNode.active = !1, this.unschedule(this.RefreshLeftTime))
                }
                this.RenderPack()
            }, t.prototype.SetPackPos = function(e, t) {
                var n = this.CIRCLE_ANGLE / (e - 1),
                    o = 90 + this.CIRCLE_ANGLE / 2 - n * t,
                    r = this.CIRCLE_CENTER[0] + this.CIRCLE_RADIUS * Math.cos(o * Math.PI / 180),
                    i = this.CIRCLE_CENTER[1] + this.CIRCLE_RADIUS * Math.sin(o * Math.PI / 180);
                return cc.v2(r, i)
            }, t.prototype.GetCurrentSelectPackId = function() {
                for (var e = this._pageMap[this._currentSelectPageId].GiftIds, t = 0; t < e.length; t++)
                    if (!this._activityData.Packs[e[t]].Items[0]) return t;
                return e.length - 1
            }, t.prototype.OnPackClick = function(e) {
                var t = Number.parseInt(e.node.name);
                t != this._currentSelectGiftPackIndex && (this._currentSelectGiftPackIndex = t, this.RenderPack())
            }, t.prototype.RenderPack = function() {
                this.SelectNode.setParent(this._packComponents[this._currentSelectGiftPackIndex].SelectNode), this.LfetArrowButton.node.active = !0, this.RightArrowButton.node.active = !0, 0 == this._currentSelectGiftPackIndex && (this.LfetArrowButton.node.active = !1), this._currentSelectGiftPackIndex == this._pageMap[this._currentSelectPageId].GiftIds.length - 1 && (this.RightArrowButton.node.active = !1);
                for (var e = this._packMap[this._pageMap[this._currentSelectPageId].GiftIds[this._currentSelectGiftPackIndex]], t = 0; t < e.Items.length; t++) {
                    var n = this._itemComponents[t];
                    if (!n) {
                        var o = cc.instantiate(this._itemPrefab);
                        o.parent = this.GiftPackItemContainer, n = o.getComponent(v.ItemComponent), this._itemComponents.push(n)
                    }
                    n.node.active = !0, n.Init({
                        ItemId: e.Items[t].Items[0],
                        Count: e.Items[t].Items[1]
                    })
                }
                for (this.GiftPackItemScrollView.scrollToLeft(), t = e.Items.length; t < this._itemComponents.length; t++) this._itemComponents[t].node.active = !1;
                switch (this.AttainLabel.node.parent.active = !0, this.DiscountValue.node.parent.active = !0, this.LoackLabel.node.active = !1, this._packComponents[this._currentSelectGiftPackIndex].State) {
                    case _.GiftPackState.CanBuy:
                        if (this.SellOutTag.active = !1, this.OrangeButton.node.active = !0, C.UIUtlity.OffNodeGray(this.OrangeButton.node), this._packComponents[this._currentSelectGiftPackIndex].State != _.GiftPackState.SoldOut) {
                            null != e.Discount && e.Discount > 0 ? (this.DiscountValue.node.parent.active = !0, this.DiscountValue.string = "disCount_greatValue".ToUILocale().Fmt(e.Discount + "%")) : this.DiscountValue.node.parent.active = !1;
                            var r = w.default.Instance.ExchangeMoney(e.Money);
                            r <= 0 ? (this.OrangeButtonLabel.string = "shop_buyFree".ToUILocale(), this.AttainValue.string = "x" + e.VipPoint, this.AttainLabel.node.parent.active = !1, this.OrangeButton.node.y = -92) : (this.OrangeButtonLabel.string = w.default.Instance.CurrencySymbol + r, this.AttainValue.string = "x" + e.VipPoint, this.AttainLabel.node.parent.active = !0, this.OrangeButton.node.y = -117)
                        }
                        break;
                    case _.GiftPackState.SoldOut:
                        this.SellOutTag.active = !0, this.OrangeButton.node.active = !1, this.AttainLabel.node.parent.active = !1;
                        break;
                    case _.GiftPackState.Locked:
                        this.SellOutTag.active = !1, this.OrangeButton.node.active = !1, this.DiscountValue.node.parent.active = !1, this.LoackLabel.node.active = !0
                }
            }, t.prototype.OnFreeRewardClick = function() {
                var e = u.Req_Activity_MultipleGiftFreeRewards.create();
                e.ActivityId = this._activityConfig._id, e.PageId = this._currentSelectPageId, h.RpcComponent.Instance.Call(e, function(e) {
                    d.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                })
            }, t.prototype.OnBackClick = function() {
                d.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.GiftPackItemContainer.children.indexOf(t) && C.UIUtlity.ShowItemTip(t.getComponent(v.ItemComponent).ItemId, t)
            }, t.prototype.OnPurchaseButtonClick = function() {
                if (this._packComponents[this._currentSelectGiftPackIndex].State != _.GiftPackState.Locked) {
                    var e = this._packMap[this._pageMap[this._currentSelectPageId].GiftIds[this._currentSelectGiftPackIndex]];
                    S.default.RequestBuyActivityGift(this._activityData.Packs[e.Id].Items[0], e, this._activityConfig._id)
                } else C.UIUtlity.ShowFloatingHint("stockUpFestival_limit".ToUILocale())
            }, t.prototype.OnLeftArrowClick = function() {
                this._currentSelectGiftPackIndex--, this.RenderPack()
            }, t.prototype.OnRightArrowClick = function() {
                this._currentSelectGiftPackIndex++, this.RenderPack()
            }, i([R(cc.Node)], t.prototype, "GiftPackNodes", void 0), i([R(cc.Node)], t.prototype, "SelectNode", void 0), i([R(cc.Node)], t.prototype, "AvatarNode", void 0), i([R(cc.Sprite)], t.prototype, "BgSprite", void 0), i([R(cc.Button)], t.prototype, "FreeRewardBtn", void 0), i([R(cc.Label)], t.prototype, "FreeRewardLabel", void 0), i([R(cc.Sprite)], t.prototype, "ArtLabel", void 0), i([R(cc.Button)], t.prototype, "LfetArrowButton", void 0), i([R(cc.Button)], t.prototype, "RightArrowButton", void 0), i([R(cc.ScrollView)], t.prototype, "GiftPackItemScrollView", void 0), i([R(cc.Node)], t.prototype, "GiftPackItemContainer", void 0), i([R(cc.Label)], t.prototype, "OrangeButtonLabel", void 0), i([R(cc.Button)], t.prototype, "OrangeButton", void 0), i([R(cc.Label)], t.prototype, "AttainLabel", void 0), i([R(cc.Label)], t.prototype, "AttainValue", void 0), i([R(cc.Node)], t.prototype, "SellOutTag", void 0), i([R(cc.Label)], t.prototype, "SellOutTagLabel", void 0), i([R(cc.Label)], t.prototype, "DiscountValue", void 0), i([R(cc.Label)], t.prototype, "LoackLabel", void 0), i([R(cc.Button)], t.prototype, "Back", void 0), i([R(cc.Node)], t.prototype, "CountDownNode", void 0), i([R(cc.Label)], t.prototype, "CountDownLabel", void 0), i([R(cc.Label)], t.prototype, "CountDownValue", void 0), i([R(cc.Node)], t.prototype, "ToogleContainer", void 0), i([R(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([R(f.default)], t.prototype, "LoadAssetHelper", void 0), i([T], t)
        }(d.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/MultipleGiftPackComponent": "MultipleGiftPackComponent",
        "../Components/MultipleGiftToggle": "MultipleGiftToggle"
    }],
    MultipleGiftToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "07808oDljJCc5Klqpw3jLlW", "MultipleGiftToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../Panel/CommonLongLabelRollComponent"),
            l = e("./LoadAssetHelper"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UnCheckLabel = null, t.UnCheckIcon = null, t.CheckLabel = null, t.CheckIcon = null, t.DisableLabel = null, t.DisableIcon = null, t.DisableNode = null, t.RedDot = null, t.LoadAssetHelper = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    null != this.DisableNode && this.DisableNode.on(cc.Node.EventType.TOUCH_END, this.OnClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    void 0 === t && (t = 24), this._disableHintInfo = void 0, this.UnCheckLabel.SetUI(e, this.UnCheckLabel.node.width, t), this.CheckLabel.SetUI(e, this.UnCheckLabel.node.width, t), this.DisableLabel.SetUI(e, this.UnCheckLabel.node.width, t), n && this.LoadAssetHelper.LoadSpriteFrame(n, this.CheckIcon, this.LoadIconCallBack.bind(this), 1, !0)
                }, t.prototype.LoadIconCallBack = function() {
                    this.UnCheckIcon.spriteFrame = this.CheckIcon.spriteFrame, this.DisableIcon.spriteFrame = this.CheckIcon.spriteFrame
                }, t.prototype.SetInteractable = function(e, t) {
                    this.interactable = e, this.DisableNode.active = !e, this.DisableLabel.node.active = !e, this._disableHintInfo = t
                }, t.prototype.IsToggleCanClick = function() {
                    return !this.DisableNode.active || (this.OnClick(), !1)
                }, t.prototype.OnClick = function() {
                    this._disableHintInfo && a.UIUtlity.ShowFloatingHint(this._disableHintInfo)
                }, t.prototype.SetRedDot = function(e) {
                    this.RedDot.active = e
                }, t.prototype.OnIsCheckedChanged = function() {
                    this.UnCheckLabel.node.active = !this.isChecked
                }, i([p(s.default)], t.prototype, "UnCheckLabel", void 0), i([p(cc.Sprite)], t.prototype, "UnCheckIcon", void 0), i([p(s.default)], t.prototype, "CheckLabel", void 0), i([p(cc.Sprite)], t.prototype, "CheckIcon", void 0), i([p(s.default)], t.prototype, "DisableLabel", void 0), i([p(cc.Sprite)], t.prototype, "DisableIcon", void 0), i([p(cc.Node)], t.prototype, "DisableNode", void 0), i([p(cc.Node)], t.prototype, "RedDot", void 0), i([p(l.default)], t.prototype, "LoadAssetHelper", void 0), i([u], t)
            }(cc.Toggle);
        n.default = d, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/CommonLongLabelRollComponent": "CommonLongLabelRollComponent",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    MultipleWidgets: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7440bP5DE5Klb++6kA776Vn", "MultipleWidgets");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = a.executeInEditMode,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Target = null, t.IsStretchHeight = !1, t.IsStretchWidth = !1, t._heightDifference = 0, t._widthDifference = 0, t._maxHeight = 0, t._allWidgets = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "HeightDifference", {
                    get: function() {
                        return this._heightDifference
                    },
                    set: function(e) {
                        this._heightDifference = e, this.OnTargetSizeChanged()
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "WidthDifference", {
                    get: function() {
                        return this._widthDifference
                    },
                    set: function(e) {
                        this._widthDifference = e, this.OnTargetSizeChanged()
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "MaxHeight", {
                    get: function() {
                        return this._maxHeight
                    },
                    set: function(e) {
                        this._maxHeight = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onLoad = function() {
                    this.node.on("size-changed", this.OnSelfSizeChanged, this), this.Target && (this.Target.on("size-changed", this.OnTargetSizeChanged, this), this.OnTargetSizeChanged()), this._allWidgets = this.GetAllWidgets(this.node)
                }, t.prototype.OnTargetSizeChanged = function() {
                    this.Target && (this.IsStretchHeight && (this.MaxHeight ? this.node.height = Math.min(this.Target.height + this.HeightDifference, this._maxHeight) : this.node.height = this.Target.height + this.HeightDifference), this.IsStretchWidth && (this.node.width = this.Target.width + this.WidthDifference))
                }, t.prototype.OnSelfSizeChanged = function() {
                    for (var e = 0; e < this._allWidgets.length; e++) {
                        var t;
                        (t = this._allWidgets[e]).node != this.node && t.updateAlignment()
                    }
                }, t.prototype.GetAllWidgets = function(e) {
                    var t = [];
                    return function e(n) {
                        n.getComponent(cc.Widget) && t.push(n.getComponent(cc.Widget)), n.children.forEach(function(t) {
                            return e(t)
                        })
                    }(e), t
                }, i([l(cc.Node)], t.prototype, "Target", void 0), i([l(cc.Boolean)], t.prototype, "IsStretchHeight", void 0), i([l], t.prototype, "HeightDifference", null), i([l(cc.Boolean)], t.prototype, "IsStretchWidth", void 0), i([l], t.prototype, "WidthDifference", null), i([l], t.prototype, "MaxHeight", null), i([l], t.prototype, "_heightDifference", void 0), i([l], t.prototype, "_widthDifference", void 0), i([l], t.prototype, "_maxHeight", void 0), i([s, c], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {}],
    NPCDialog: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5ee37FE3cxN259CHYAaPWUR", "NPCDialog");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GuideManager"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1, !1, !1, d.AssetUnloadMode.Resident), t.Avatar1 = null, t.Avatar2 = null, t.Title1 = null, t.Title2 = null, t.Info = null, t.ClickNode = null, t.NextBtn = null, t.SkipBtn = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this);
                    var t = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_NPCDialog_Left_HeroId"),
                        n = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_NPCDialog_Right_HeroId");
                    this.Title1.string = t.ToHeroName(), this.Title2.string = n.ToHeroName(), this.ClickNode.on(cc.Node.EventType.TOUCH_END, this.OnClickNext, this), this.NextBtn.node.on("click", this.OnClickNext, this), this.SkipBtn.node.on("click", this.OnClickSkip, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._dialogConfig = u.ConfigDataComponent.Instance.GetConfigById(c.GuideNPCDialog_Config, t[0]);
                    var n = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_NPCDialog_Left_HeroId"),
                        o = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_NPCDialog_Right_HeroId");
                    this._leftConfig = u.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, n), this._rightConfig = u.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, o), this._leftHeroPath = this._leftConfig.UIAvatar, this._rightHeroPath = this._rightConfig.UIAvatar
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._progress = 0, this._totalCount = this._dialogConfig.InfoKeys.length, this.ConfigDialogInfo()
                }, t.prototype.ConfigDialogInfo = function() {
                    if (this._progress == this._totalCount) return 0 != this._audioEffectId && d.AudioManager.Instance.StopEffect(this._audioEffectId), this._progress++, this.Close(), l.Game.EventDispatcher.Emit(h.EventKeys.EVENT_CLOSE_NPC_DIALOG), void(p.default.Instance.IsInGuide && p.default.Instance.CheckNextStep());
                    this.Info.string = this._dialogConfig.InfoKeys[this._progress].ToUILocale(), this.ConfigAvatarInfo(), this.ConfigNPCAudio(), this._progress++
                }, t.prototype.ConfigAvatarInfo = function() {
                    switch (this._dialogConfig.NPCKeys[this._progress]) {
                        case 1:
                            this.Avatar1.active = !0, this.Title1.node.parent.active = !0, this.Avatar2.active = !1, this.Title2.node.parent.active = !1, this.LoadLeftAvatar();
                            break;
                        case 2:
                            this.Avatar1.active = !1, this.Title1.node.parent.active = !1, this.Avatar2.active = !0, this.Title2.node.parent.active = !0, this.LoadRightAvatar();
                            break;
                        default:
                            this.Avatar1.active = !1, this.Title1.node.parent.active = !1, this.Avatar2.active = !1, this.Title2.node.parent.active = !1
                    }
                }, t.prototype.LoadLeftAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._leftAvatar ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(this._leftHeroPath + "/Avatar")];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._loadedAssets.push(e), this._leftAvatar = cc.instantiate(e), this.Avatar1.destroyAllChildren(), this._leftAvatar.setParent(this.Avatar1), f.default.Instance.SetHeroAvatarSkin(this._leftAvatar, this._leftConfig.Id, this._leftConfig.StarLevel), t.label = 2;
                                case 2:
                                    return this._leftAvatar.getComponent(sp.Skeleton).timeScale = 0, [2]
                            }
                        })
                    })
                }, t.prototype.LoadRightAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._rightAvatar ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(this._rightHeroPath + "/Avatar")];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._loadedAssets.push(e), this._rightAvatar = cc.instantiate(e), this.Avatar2.destroyAllChildren(), this._rightAvatar.setParent(this.Avatar2), f.default.Instance.SetHeroAvatarSkin(this._rightAvatar, this._rightConfig.Id, this._rightConfig.StarLevel), t.label = 2;
                                case 2:
                                    return this._rightAvatar.getComponent(sp.Skeleton).timeScale = 0, [2]
                            }
                        })
                    })
                }, t.prototype.ConfigNPCAudio = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return 0 != this._audioEffectId && d.AudioManager.Instance.StopEffect(this._audioEffectId), this._audioConfigId = this._dialogConfig.AudioKeys[this._progress], this._audioConfigId && 0 !== this._audioConfigId ? [4, d.AudioManager.Instance.PlayEffect(this._audioConfigId)] : [2];
                                case 1:
                                    return e = t.sent(), this.isValid ? (e.ConfigId != this._audioConfigId ? d.AudioManager.Instance.StopEffect(e.EffectId) : this._audioEffectId = e.EffectId, [2]) : (d.AudioManager.Instance.StopEffect(e.EffectId), [2])
                            }
                        })
                    })
                }, t.prototype.OnClickNext = function() {
                    this.ConfigDialogInfo()
                }, t.prototype.OnClickSkip = function() {
                    this._progress = this._totalCount, this.ConfigDialogInfo()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this);
                    for (var t = 0; t < this._loadedAssets.length; t++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[t]);
                    this._loadedAssets = [], this.Avatar1.destroyAllChildren(), this.Avatar2.destroyAllChildren(), this._leftAvatar = null, this._rightAvatar = null
                }, i([m(cc.Node)], t.prototype, "Avatar1", void 0), i([m(cc.Node)], t.prototype, "Avatar2", void 0), i([m(cc.Label)], t.prototype, "Title1", void 0), i([m(cc.Label)], t.prototype, "Title2", void 0), i([m(cc.RichText)], t.prototype, "Info", void 0), i([m(cc.Node)], t.prototype, "ClickNode", void 0), i([m(cc.Button)], t.prototype, "NextBtn", void 0), i([m(cc.Button)], t.prototype, "SkipBtn", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Components/Components": "Components"
    }],
    NationalFlagToggleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "27a12TX3hZFyLlITgwtpgFo", "NationalFlagToggleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BgLabel = null, t.CheckedLabel = null, t
                }
                return r(t, e), t.prototype.InitData = function(e) {
                    this.BgLabel.string = e, this.CheckedLabel.string = e
                }, i([l(cc.Label)], t.prototype, "BgLabel", void 0), i([l(cc.Label)], t.prototype, "CheckedLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    NewAssistantPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8f7dfF0srhNcp4nI3BFMqds", "NewAssistantPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/Components"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Components/CustomToggleRollingLabel"),
            I = e("../Components/AssistantComponent"),
            _ = e("../../../ShareConsts/BattleConsts"),
            C = e("../Battle/BattleManager"),
            v = e("./ContinuousFightPanel"),
            b = e("../../../Util/TimeUtil"),
            S = e("./CrossServerRankPanel"),
            w = e("../../../Consts/Consts"),
            P = e("../../Auxiliary/GameRecord"),
            A = e("../../RedDot/RedDotManager"),
            T = e("./EndlessAbyssUIPanel"),
            R = e("../Components/TowerLayerItem"),
            L = e("../../../Consts/Consts"),
            k = e("./MallPrivilegeMainPanel"),
            O = cc._decorator,
            M = O.ccclass,
            D = O.property,
            B = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RuleButton = null, t.ToggleContainer = null, t.ScrollView = null, t.AssistanComponentContainer = null, t.UnexecuteButton = null, t.UnexecuteButtonLabel = null, t.ExecuteButton = null, t.ExecuteButtonLabel = null, t.ReturnButton = null, t.UncompleteButton = null, t.UncompleteButtonLabel = null, t.CompleteButton = null, t.CompleteButtonLabel = null, t.GiftButton = null, t.GiftButtonLabel = null, t.ExperienceCardButton = null, t.ExperienceCardButtonLabel = null, t.AvatarNode = null, t.TOGGLE_NAME_ARRAY = ["assistant_toggle_0", "climbTower_rule_maintittle_0", "assistant_toggle_1", "guild", "abyss_marshAssassin", "assistant_toggle_2", "assistant_toggle_3", "riskPort", "HolyRelic_title"], t.TOGGLE_MODULE_TYPE_ARRAY = [w.GameModuleType.HelperAdventure, w.GameModuleType.HelperTestTower, w.GameModuleType.HelperDailyInstance, w.GameModuleType.HelperAlliance, w.GameModuleType.HelperEndlessAbyss, w.GameModuleType.HelperCrossZoneBattle, w.GameModuleType.HelperInteraction, w.GameModuleType.HelperRiskPort, w.GameModuleType.HelperArtefactRelic2], t._currentToggleIndex = 0, t._assistantComponentArray = [], t._allAssistantData = {}, t._specialResultData = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_Assistant_HeroId"), this._heroConfig = f.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, t), n = this.LoadDynamicAsset("Buttons/ToggleTopRollingLabel", cc.Prefab), o = this.LoadDynamicAsset("AssistantPanel/SubItems/AssistantComponent", cc.Prefab), r = this.LoadDynamicAsset("AssistantPanel/SubItems/AssistantDescItemType1", cc.Prefab), i = this.LoadDynamicAsset("AssistantPanel/SubItems/AssistantDescItemType2", cc.Prefab), a = this.LoadDynamicAsset(this._heroConfig.UIAvatar + "/Avatar", cc.Prefab), [4, Promise.all([n, o, r, i, a]).then(function(e) {
                                        l._togglePrefab = e[0], l._assistantComponentPrefab = e[1], l._descType1Prefab = e[2], l._descType2Prefab = e[3], l._heroPrefab = e[4]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ExecuteButtonLabel.string = "assistant_execute".ToUILocale(), this.CompleteButtonLabel.string = "assistant_auto_complete".ToUILocale(), this.UnexecuteButtonLabel.string = "assistant_execute".ToUILocale(), this.UncompleteButtonLabel.string = "assistant_auto_complete".ToUILocale(), this.GiftButtonLabel.string = "assistant_gift".ToUILocale(), this.ExperienceCardButtonLabel.string = "assistant_experienceCard_Name".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.ExecuteButton.node.on("click", this.OnExecuteButtonClick, this), this.CompleteButton.node.on("click", this.OnCompleteButtonClick, this), this.UnexecuteButton.node.on("click", this.OnGiftButtonClick, this), this.UncompleteButton.node.on("click", this.OnGiftButtonClick, this), this.ExperienceCardButton.node.on("click", this.OnExperienceCardButtonClick, this);
                    var t = cc.instantiate(this._heroPrefab);
                    t.parent = this.AvatarNode, g.default.Instance.SetHeroAvatarSkin(t, this._heroConfig.Id, this._heroConfig.StarLevel)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this._assistantConfig = f.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, y.LevelParamType.HelperOperations), this.SetDefaultData()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetToggle(), this.SetAssistantComponentContainer(), P.default.SetItem(P.GameRecordDefine.AssistantDailyReddot, d.RpcComponent.Instance.ServerTime), A.RedDotManager.Instance.RefreshRedDotNode(A.RedDotManager.Instance.RedDot.AssistantNode)), this.SetButtonState()
                }, t.prototype.SetAllAssistantData = function(e, t) {
                    this._allAssistantData[e] = t;
                    var n = JSON.stringify(this._allAssistantData);
                    g.default.SetServerRecordString(y.UserDataKey.Helper2, n)
                }, t.prototype.SetDefaultData = function() {
                    var e = g.default.GetServerRecordString(y.UserDataKey.Helper2),
                        t = {};
                    e && (t = JSON.parse(e));
                    for (var n = [], o = 0; o < this._assistantConfig.Data2.length; o++)
                        if (g.default.Instance.IsGameModuleUnlock(this.TOGGLE_MODULE_TYPE_ARRAY[o])[0])
                            for (var r = function(e) {
                                    var r = i._assistantConfig.Data2[o].Items[e];
                                    if (t[r]) {
                                        if (i._allAssistantData[r] = t[r], r == y.HelperOperationType.CityWarKillRewards) i._allAssistantData[y.HelperOperationType.CityWarAllianceRewards] = t[y.HelperOperationType.CityWarAllianceRewards], i._allAssistantData[y.HelperOperationType.CityWarTaskRewards] = t[y.HelperOperationType.CityWarTaskRewards], i._allAssistantData[y.HelperOperationType.CityWarHang] = t[y.HelperOperationType.CityWarHang], i._allAssistantData[y.HelperOperationType.CityWarBattlePoint] = t[y.HelperOperationType.CityWarBattlePoint];
                                        else if (r == y.HelperOperationType.TestTowerChallenge) i._allAssistantData[y.HelperOperationType.TestTowerRewards] = t[y.HelperOperationType.TestTowerRewards];
                                        else if (r == y.HelperOperationType.HolyArea) {
                                            var a = g.default.Instance.IsHolyAreaCompleteMaxStar();
                                            i._allAssistantData[r] = a && g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperHolyArea)[0] ? t[r] : []
                                        }
                                        return "continue"
                                    }
                                    switch (r) {
                                        case y.HelperOperationType.AdventureQuickBattle:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.QuickBattle)[0] ? [1, 0] : [];
                                            break;
                                        case y.HelperOperationType.DailyInstanceQuickBattle:
                                            for (var s = d.ConfigDataComponent.Instance.GetArrayConfig(u.DailyInstance_Config), l = 0; l < s.length; l++) {
                                                n[3 * l] = s[l].Id;
                                                var c = void 0;
                                                switch (s[l].Id) {
                                                    case 1:
                                                        c = g.default.Instance.IsGameModuleUnlock(w.GameModuleType.DailyInstanceCoin)[0];
                                                        break;
                                                    case 2:
                                                        c = g.default.Instance.IsGameModuleUnlock(w.GameModuleType.DailyInstanceExp)[0];
                                                        break;
                                                    case 3:
                                                        c = g.default.Instance.IsGameModuleUnlock(w.GameModuleType.DailyInstanceFighter)[0];
                                                        break;
                                                    case 4:
                                                        c = g.default.Instance.IsGameModuleUnlock(w.GameModuleType.DailyInstanceRune)[0];
                                                        break;
                                                    case 5:
                                                        c = g.default.Instance.IsGameModuleUnlock(w.GameModuleType.DailyInstanceAngel)[0] && g.default.Instance.IsGameModuleOpen(w.GameModuleType.DailyInstanceAngel);
                                                        break;
                                                    case 6:
                                                        c = g.default.Instance.IsGameModuleUnlock(w.GameModuleType.DailyInstanceGem)[0] && g.default.Instance.IsGameModuleOpen(w.GameModuleType.DailyInstanceGem)
                                                }
                                                n[3 * l + 1] = c ? 1 : 0, n[3 * l + 2] = 0, i._allAssistantData[r] = n
                                            }
                                            break;
                                        case y.HelperOperationType.AdventureReceiveHangUpReward:
                                            i._allAssistantData[r] = [1];
                                            break;
                                        case y.HelperOperationType.GiveAndReceiveGifts:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperGiveAndReceiveGifts)[0] ? [1] : [];
                                            break;
                                        case y.HelperOperationType.Intelligence:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.IntelligenceTask)[0] ? [1, 4, 2] : [];
                                            break;
                                        case y.HelperOperationType.AdventureAutoBattle:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperAdventureChallenge)[0] ? [1] : [];
                                            break;
                                        case y.HelperOperationType.CrossZoneContinueWarRank:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.ContinuousFight)[0] ? [1] : [];
                                            break;
                                        case y.HelperOperationType.CrossZoneRank:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.CrossZoneRank)[0] ? [1] : [];
                                            break;
                                        case y.HelperOperationType.GodLandDuel:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperGodLandDuel)[0] ? [1] : [];
                                            break;
                                        case y.HelperOperationType.TestTowerChallenge:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperTestTower)[0] ? [1] : [], i._allAssistantData[y.HelperOperationType.TestTowerRewards] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperTestTower)[0] ? [1] : [];
                                            break;
                                        case y.HelperOperationType.TowerHeartChallenge:
                                        case y.HelperOperationType.TowerPowerChallenge:
                                        case y.HelperOperationType.TowerTechChallenge:
                                        case y.HelperOperationType.TowerBreakChallenge:
                                        case y.HelperOperationType.TowerFightChallenge:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperElementTower)[0] ? [1] : [];
                                            break;
                                        case y.HelperOperationType.EndlessAbyssSingle:
                                        case y.HelperOperationType.EndlessAbyssMulti:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperEndlessAbyss)[0] ? [1] : [];
                                            break;
                                        case y.HelperOperationType.AllianceTest:
                                            var h = f.DataCenter.Instance.AllianceId > 0 && g.default.Instance.IsGameModuleUnlock(w.GameModuleType.HelperAlliance)[0];
                                            i._allAssistantData[r] = h ? [1] : [];
                                            break;
                                        case y.HelperOperationType.CityWarKillRewards:
                                            var m = f.DataCenter.Instance.AllianceId > 0 && g.default.Instance.IsGameModuleUnlock(w.GameModuleType.HelperAllianceCityWar)[0];
                                            i._allAssistantData[r] = m ? [1] : [], i._allAssistantData[y.HelperOperationType.CityWarAllianceRewards] = m ? [1] : [], i._allAssistantData[y.HelperOperationType.CityWarTaskRewards] = m ? [1] : [], i._allAssistantData[y.HelperOperationType.CityWarHang] = m ? [1] : [], i._allAssistantData[y.HelperOperationType.CityWarBattlePoint] = m ? [1, 0, 0] : [];
                                            break;
                                        case y.HelperOperationType.ArtefactRelicBuyCount:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperArtefactRelic)[0] ? [1] : [];
                                            break;
                                        case y.HelperOperationType.ArtefactRelicWater:
                                        case y.HelperOperationType.ArtefactRelicFire:
                                        case y.HelperOperationType.ArtefactRelicWind:
                                        case y.HelperOperationType.ArtefactRelicLight:
                                        case y.HelperOperationType.ArtefactRelicDark:
                                        case y.HelperOperationType.ArtefactRelicChaos:
                                            var I = 0;
                                            f.DataCenter.Instance.GetDataList(p.ArtefactRelic_Model).forEach(function(e) {
                                                I += 10 * e.Index + e.MapIndex + 1
                                            });
                                            var _ = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperArtefactRelic),
                                                C = void 0;
                                            switch (r) {
                                                case y.HelperOperationType.ArtefactRelicWater:
                                                    C = d.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 1);
                                                    break;
                                                case y.HelperOperationType.ArtefactRelicFire:
                                                    C = d.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 2);
                                                    break;
                                                case y.HelperOperationType.ArtefactRelicWind:
                                                    C = d.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 3);
                                                    break;
                                                case y.HelperOperationType.ArtefactRelicLight:
                                                    C = d.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 4);
                                                    break;
                                                case y.HelperOperationType.ArtefactRelicDark:
                                                    C = d.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 5);
                                                    break;
                                                case y.HelperOperationType.ArtefactRelicChaos:
                                                    C = d.ConfigDataComponent.Instance.GetConfigById(u.ArtefactRelic_Config, 6)
                                            }
                                            i._allAssistantData[r] = !_[0] || I < C.Unlock ? [] : [1];
                                            break;
                                        case y.HelperOperationType.SecretAreaExplore:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperSecretAreaExplore)[0] ? [1, 1] : [];
                                            break;
                                        case y.HelperOperationType.HolyArea:
                                            a = g.default.Instance.IsHolyAreaCompleteMaxStar(), i._allAssistantData[r] = a && g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperHolyArea)[0] ? [1] : [0];
                                            break;
                                        case y.HelperOperationType.StarLightSecret:
                                            i._allAssistantData[r] = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperStarLightSecretLand)[0] ? [0, 0] : []
                                    }
                                }, i = this, a = 0; a < this._assistantConfig.Data2[o].Items.length; a++) r(a)
                }, t.prototype.SetToggle = function() {
                    for (var e = 0; e < this._assistantConfig.Data2.length; e++) {
                        var t = cc.instantiate(this._togglePrefab);
                        t.setParent(this.ToggleContainer), t.name = e.toString();
                        var n = g.default.Instance.IsGameModuleUnlock(this.TOGGLE_MODULE_TYPE_ARRAY[e]),
                            o = t.getComponent(m.default);
                        switch (o.Init(this.TOGGLE_NAME_ARRAY[e].ToUILocale()), e) {
                            case 3:
                                n[0] ? f.DataCenter.Instance.AllianceId || o.SetInteractable(!1, "assistant_alliance_toggle_no_alliance_tip".ToUILocale()) : o.SetInteractable(!1, n[1]);
                                break;
                            default:
                                n[0] || o.SetInteractable(!1, n[1])
                        }
                        t.on("toggle", this.OnSwitchToggle, this)
                    }
                }, t.prototype.OnSwitchToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._currentToggleIndex != t && (this._currentToggleIndex = t, this.ScrollView.scrollToTop(.1), this.SetAssistantComponentContainer())
                }, t.prototype.SetAssistantComponentContainer = function() {
                    for (var e = this._assistantConfig.Data2[this._currentToggleIndex].Items, t = 0, n = 0; n < e.length; n++)
                        if (e[n] == y.HelperOperationType.DailyInstanceQuickBattle)
                            for (var o = d.ConfigDataComponent.Instance.GetArrayConfig(u.DailyInstance_Config), r = 0; r < o.length; r++)(5 != o[r].Id || g.default.Instance.IsGameModuleOpen(w.GameModuleType.DailyInstanceAngel)) && ((i = this._assistantComponentArray[t]) || ((a = cc.instantiate(this._assistantComponentPrefab)).setParent(this.AssistanComponentContainer), i = a.getComponent(I.default), this._assistantComponentArray[t] = i), i.node.active = !0, i.Init(e[n], this._allAssistantData, this._descType1Prefab, this._descType2Prefab, this, o[r].Id), t++);
                        else {
                            var i, a;
                            (i = this._assistantComponentArray[t]) || ((a = cc.instantiate(this._assistantComponentPrefab)).setParent(this.AssistanComponentContainer), i = a.getComponent(I.default), this._assistantComponentArray[t] = i), i.node.active = !0, i.Init(e[n], this._allAssistantData, this._descType1Prefab, this._descType2Prefab, this), t++
                        } if (t < this._assistantComponentArray.length)
                        for (n = t; n < this._assistantComponentArray.length; n++) this._assistantComponentArray[n].node.active = !1
                }, t.prototype.SetButtonState = function() {
                    var e = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.Helper)[0],
                        t = !0,
                        n = g.default.GetModuleBonus();
                    n[y.ModuleBonusType.Helper] && 0 != n[y.ModuleBonusType.Helper].length || (t = !1), this.CompleteButton.node.active = e && t, this.ExecuteButton.node.active = e && t, this.UncompleteButton.node.active = !e || !t, this.UnexecuteButton.node.active = !e || !t, this.ExperienceCardButton.node.active = f.DataCenter.Instance.GetItemCount(w.CommonItemId.AssistantExperienceCard) > 0
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "assistant_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["assistant_rule_content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnGiftButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallPrivilegeGiftPanel.Path, k.MallPrivilegeBasePageType.Subscribe)
                }, t.prototype.OnExperienceCardButtonClick = function() {
                    var e = this,
                        t = d.ConfigDataComponent.Instance.GetConfigById(u.ItemConsume_Config, w.CommonItemId.AssistantExperienceCard).Param[0].Items[1];
                    c.UIUtlity.ShowHintPanel(null, "assistant_experienceCard_use_tip".ToUILocale().Fmt(t), "cancel".ToUILocale(), null, "button_confirm".ToUILocale(), function() {
                        var t = new p.Req_Item_UseItem;
                        t.ItemId = w.CommonItemId.AssistantExperienceCard, t.Count = 1, d.RpcComponent.Instance.Call(t, function() {
                            c.UIUtlity.ShowFloatingHint("assistant_experienceCard_use_success".ToUILocale()), e.SetButtonState()
                        })
                    })
                }, t.prototype.OnExecuteButtonClick = function() {
                    this._requestParams = [];
                    var e = this._assistantConfig.Data2[this._currentToggleIndex].Items;
                    this._specialResultData = [], this._requestParamsIndex = 0, this._needCompleteAutoBattle = {};
                    for (var t = 0; t < e.length; t++) {
                        var n = e[t];
                        this._allAssistantData[n] && (this.SetRequestData(n), n == y.HelperOperationType.TestTowerChallenge ? this.SetRequestData(y.HelperOperationType.TestTowerRewards) : n == y.HelperOperationType.CityWarKillRewards && (this.SetRequestData(y.HelperOperationType.CityWarAllianceRewards), this.SetRequestData(y.HelperOperationType.CityWarTaskRewards), this.SetRequestData(y.HelperOperationType.CityWarHang), this.SetRequestData(y.HelperOperationType.CityWarBattlePoint)))
                    }
                    this._requestParams.length > 0 ? this.SendRequest(this._requestParams) : l.UIManager.Instance.ShowUIPanel(h.PanelConfig.AssistantShowResultPanel.Path, this._specialResultData, this._allAssistantData, this._needCompleteAutoBattle)
                }, t.prototype.OnCompleteButtonClick = function() {
                    for (var e in this._requestParams = [], this._specialResultData = [], this._requestParamsIndex = 0, this._needCompleteAutoBattle = {}, this._allAssistantData) {
                        var t = Number(e);
                        this.SetRequestData(t)
                    }
                    this._requestParams.length > 0 ? this.SendRequest(this._requestParams) : l.UIManager.Instance.ShowUIPanel(h.PanelConfig.AssistantShowResultPanel.Path, this._specialResultData, this._allAssistantData, this._needCompleteAutoBattle)
                }, t.prototype.SetRequestData = function(e) {
                    if (this._allianceTypeSet || (this._allianceTypeSet = new Set([y.HelperOperationType.CityWarKillRewards, y.HelperOperationType.CityWarAllianceRewards, y.HelperOperationType.CityWarTaskRewards, y.HelperOperationType.CityWarHang, y.HelperOperationType.CityWarBattlePoint, y.HelperOperationType.AllianceTest])), !this._allianceTypeSet.has(e) || f.DataCenter.Instance.AllianceId) switch (e) {
                        case y.HelperOperationType.AdventureReceiveHangUpReward:
                        case y.HelperOperationType.GiveAndReceiveGifts:
                        case y.HelperOperationType.CityWarKillRewards:
                        case y.HelperOperationType.CityWarAllianceRewards:
                        case y.HelperOperationType.CityWarTaskRewards:
                        case y.HelperOperationType.CityWarHang:
                            this._allAssistantData[e][0] && (this._requestParams[this._requestParamsIndex] = new p.IntArray, this._requestParams[this._requestParamsIndex].Items.push(e), this._requestParamsIndex++);
                            break;
                        case y.HelperOperationType.AdventureQuickBattle:
                            var t = d.DataCenter.Instance.GetDataById(p.Adventure_Model, 1),
                                o = this._allAssistantData[e][1] - t.DailyQuickCount > 0 ? this._allAssistantData[e][1] - t.DailyQuickCount : 0,
                                r = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, y.LevelParamType.AdventureQuickBattleDiamond),
                                i = 0,
                                a = t.DailyQuickCount ? t.DailyQuickCount : 0;
                            if (this._allAssistantData[e][1] && this._allAssistantData[e][1] > a) {
                                for (var s = a + 1; s <= this._allAssistantData[e][1]; s++)
                                    if (s > r.Data.length ? i += r.Data[r.Data.length - 1] : i += r.Data[s - 1], !f.DataCenter.Instance.IsItemEnough(w.CommonItemId.Diamond, i)) {
                                        o = s - a - 1;
                                        break
                                    } o > 0 && (this._requestParams[this._requestParamsIndex] = new p.IntArray, this._requestParams[this._requestParamsIndex].Items.push(e), this._requestParams[this._requestParamsIndex].Items.push(this._allAssistantData[e][0]), this._requestParams[this._requestParamsIndex].Items.push(o), this._requestParamsIndex++)
                            }
                            break;
                        case y.HelperOperationType.DailyInstanceQuickBattle:
                            this._requestParams[this._requestParamsIndex] = new p.IntArray, this._requestParams[this._requestParamsIndex].Items.push(e);
                            for (var l = 0; l < this._allAssistantData[e].length; l += 3) {
                                var c = this._allAssistantData[e][l + 1] ? this._allAssistantData[e][l + 1] : 0,
                                    h = d.DataCenter.Instance.GetDataById(p.DailyInstance_Model, this._allAssistantData[e][l]),
                                    m = h && h.BattleCount ? h.BattleCount : 0,
                                    I = this._allAssistantData[e][l + 2] - m > 0 ? this._allAssistantData[e][l + 2] - m : 0;
                                this._requestParams[this._requestParamsIndex].Items.push(this._allAssistantData[e][l]), this._requestParams[this._requestParamsIndex].Items.push(c), this._requestParams[this._requestParamsIndex].Items.push(I)
                            }
                            this._requestParamsIndex++;
                            break;
                        case y.HelperOperationType.EndlessAbyssSingle:
                            if (this._allAssistantData[e][0] && n.CheckEndlessAbyssBattle(y.EndlessAbyssType.SingleMode)) {
                                var _ = {
                                    Type: e
                                };
                                this._specialResultData.push(_), n.SetEndlessAbyssAutoComplete(y.EndlessAbyssType.SingleMode)
                            }
                            break;
                        case y.HelperOperationType.EndlessAbyssMulti:
                            this._allAssistantData[e][0] && n.CheckEndlessAbyssBattle(y.EndlessAbyssType.MultiMode) && (_ = {
                                Type: e
                            }, this._specialResultData.push(_), n.SetEndlessAbyssAutoComplete(y.EndlessAbyssType.MultiMode));
                            break;
                        case y.HelperOperationType.AdventureAutoBattle:
                        case y.HelperOperationType.TestTowerChallenge:
                        case y.HelperOperationType.TowerHeartChallenge:
                        case y.HelperOperationType.TowerPowerChallenge:
                        case y.HelperOperationType.TowerTechChallenge:
                        case y.HelperOperationType.TowerBreakChallenge:
                        case y.HelperOperationType.TowerFightChallenge:
                        case y.HelperOperationType.CrossZoneRank:
                        case y.HelperOperationType.CrossZoneContinueWarRank:
                        case y.HelperOperationType.GodLandDuel:
                        case y.HelperOperationType.AllianceTest:
                        case y.HelperOperationType.ArtefactRelicBuyCount:
                        case y.HelperOperationType.ArtefactRelicWater:
                        case y.HelperOperationType.ArtefactRelicFire:
                        case y.HelperOperationType.ArtefactRelicWind:
                        case y.HelperOperationType.ArtefactRelicLight:
                        case y.HelperOperationType.ArtefactRelicDark:
                        case y.HelperOperationType.ArtefactRelicChaos:
                        case y.HelperOperationType.SecretAreaExplore:
                        case y.HelperOperationType.HolyArea:
                            this._allAssistantData[e][0] && (this._needCompleteAutoBattle[e] = !0);
                            break;
                        case y.HelperOperationType.StarLightSecret:
                            for (s = 0; s < this._allAssistantData[e].length; s++)
                                if (this._allAssistantData[e][s]) {
                                    this._needCompleteAutoBattle[e] = !0;
                                    break
                                } break;
                        case y.HelperOperationType.TestTowerRewards:
                            var C = !1;
                            if (d.DataCenter.Instance.GetDataById(p.TestTower_Model, R.TestTowerType.Normal).IsDrawDailyReward) {
                                var v = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.HelperHardTestTower),
                                    b = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.ClimbTowerHard),
                                    S = g.default.Instance.IsGameModuleUnlock(y.GameModuleType.MainHardTower),
                                    P = d.DataCenter.Instance.GetDataById(p.TestTower_Model, R.TestTowerType.HardNormal);
                                v[0] && b[0] && S[0] && !P.IsDrawDailyReward && (C = !0)
                            } else C = !0;
                            if (C) {
                                for (this._requestParams[this._requestParamsIndex] = new p.IntArray, this._requestParams[this._requestParamsIndex].Items.push(e), l = 0; l < this._allAssistantData[e].length; l++) this._requestParams[this._requestParamsIndex].Items.push(this._allAssistantData[e][l]);
                                this._requestParamsIndex++
                            }
                            break;
                        case y.HelperOperationType.CityWarBattlePoint:
                            this._requestParams[this._requestParamsIndex] = new p.IntArray, this._requestParams[this._requestParamsIndex].Items.push(e);
                            var A = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, y.LevelParamType.BuyAllianceCityWarBattlePoint),
                                T = [d.DataCenter.Instance.GetIntData(w.UserDataKey.BuyBattlePointCount1), d.DataCenter.Instance.GetIntData(w.UserDataKey.BuyBattlePointCount2), d.DataCenter.Instance.GetIntData(w.UserDataKey.BuyBattlePointCount3)];
                            for ((0 == T.length || this.IsRefreshCityWarPointBuyTimes()) && (T = [0, 0, 0]), l = 0; l < this._allAssistantData[e].length; l++) {
                                var L = A.Data2[l].Items[1] - T[l],
                                    k = L >= this._allAssistantData[e][l] ? this._allAssistantData[e][l] : L;
                                this._requestParams[this._requestParamsIndex].Items.push(k)
                            }
                            this._requestParamsIndex++;
                            break;
                        default:
                            for (this._requestParams[this._requestParamsIndex] = new p.IntArray, this._requestParams[this._requestParamsIndex].Items.push(e), l = 0; l < this._allAssistantData[e].length; l++) this._requestParams[this._requestParamsIndex].Items.push(this._allAssistantData[e][l]);
                            this._requestParamsIndex++
                    }
                }, t.prototype.IsRefreshCityWarPointBuyTimes = function() {
                    var e = d.DataCenter.Instance.GetIntData(w.UserDataKey.BuyBattlePointTime),
                        t = [],
                        n = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, w.LevelParamType.BuyAllianceCityWarBattlePointTime).Data;
                    if (0 == n[0]) {
                        for (var o = 0; o < n.length - 1; o++) n[o] = n[o + 1];
                        n[n.length - 1] = 24
                    }
                    for (o = 0; o < n.length; o++) t[o] = n[o] * w.Etc.HourDuration;
                    var r = d.RpcComponent.Instance.ServerTime;
                    if (r - e >= w.Etc.DayDuration) return !0;
                    var i = e - b.TimeUtil.Get0ClockTs(e),
                        a = r - b.TimeUtil.Get0ClockTs(r),
                        s = null,
                        l = null;
                    for (o = 0; o < t.length && (null == s || null == l); o++) i < t[o] && null == s && (s = o), a < t[o] && null == l && (l = o);
                    return s != l
                }, t.prototype.SendRequest = function(e) {
                    var t = this,
                        n = new p.Req_Game_HelperOneClick;
                    n.Params = e, d.RpcComponent.Instance.Call(n, function(e) {
                        if (t._specialResultData.length > 0)
                            for (var n = 0; n < t._specialResultData.length; n++) e.Datas.push(t._specialResultData[n]);
                        l.UIManager.Instance.ShowUIPanel(h.PanelConfig.AssistantShowResultPanel.Path, e.Datas, t._allAssistantData, t._needCompleteAutoBattle)
                    })
                }, t.SetContinuousFightAutoComplete = function() {
                    if (!C.BattleManager.Instance.IsInBattle(y.MapType.CrossZoneContinueWarRank) && n.CheckContinuousFight()) {
                        var e = f.DataCenter.Instance.GetDataById(p.UserFormation_Model, _.FormationIdType.CrossZoneContinueWarRankAttack1),
                            t = !1;
                        if (e && e.HeroIds && e.HeroIds.forEach(function(e) {
                                e > 0 && (t = !0)
                            }), v.default.IsAssistantComplete = !0, t) o = new p.Req_Map_CrossZoneContinueWarRankChallenge, d.RpcComponent.Instance.Call(o, n.OnContinuousFightRequestMatchingSuccess, n.OnContinuousFightRequestMatchingFail);
                        else {
                            var o = new p.Req_Map_CrossZoneContinueWarRankEnter;
                            d.RpcComponent.Instance.Call(o, function() {
                                var e = new p.Req_Map_CrossZoneContinueWarRankChallenge;
                                d.RpcComponent.Instance.Call(e, n.OnContinuousFightRequestMatchingSuccess, n.OnContinuousFightRequestMatchingFail)
                            })
                        }
                    }
                }, t.OnContinuousFightRequestMatchingSuccess = function(e) {
                    v.default.BattleInfo = e, v.default.BattleReports = e.Reports, v.default.StartBattle()
                }, t.OnContinuousFightRequestMatchingFail = function() {
                    v.default.IsAssistantComplete = !1;
                    var e = "assistant_continuousFight".ToUILocale();
                    c.UIUtlity.ShowFloatingHint("assistant_tip".ToUILocale().Fmt(e))
                }, t.CheckContinuousFight = function() {
                    if (7 == b.TimeUtil.GetWeekDay(d.RpcComponent.Instance.ServerTime)) {
                        var e = b.TimeUtil.Get0ClockTs(d.RpcComponent.Instance.ServerTime),
                            t = e + 21 * L.Etc.HourDuration,
                            n = e + 24 * L.Etc.HourDuration;
                        if (d.RpcComponent.Instance.ServerTime >= t && d.RpcComponent.Instance.ServerTime < n) return v.default.IsAssistantComplete = !1, c.UIUtlity.ShowFloatingHint("assistant_continuousFight_settlement".ToUILocale()), !1
                    }
                    var o = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneContinueWarRankDailyFreeChallengeCount");
                    return !(f.DataCenter.Instance.GetIntData(y.UserDataKey.CrossZoneContinueWarRankChallengeCount) >= o && (v.default.IsAssistantComplete = !1, 1))
                }, t.SetCrossServerRankAutoComplete = function() {
                    var e = f.DataCenter.Instance.GetDataById(p.UserFormation_Model, _.FormationIdType.CrossZoneRankAttack1),
                        t = !1;
                    if (e && e.HeroIds && e.HeroIds.forEach(function(e) {
                            e > 0 && (t = !0)
                        }), !C.BattleManager.Instance.IsInBattle(y.MapType.CrossZoneRank) && n.CheckCrossServerRank())
                        if (S.default.IsAssistantComplete = !0, t) o = new p.Req_Map_CrossZoneRankChallenge, d.RpcComponent.Instance.Call(o, n.OnCrossZoneRankRequestMatchingSuccess, n.OnCrossZoneRankRequestMatchingFail);
                        else {
                            var o = new p.Req_Map_CrossZoneRankEnter;
                            d.RpcComponent.Instance.Call(o, function() {
                                var e = new p.Req_Map_CrossZoneRankChallenge;
                                d.RpcComponent.Instance.Call(e, n.OnCrossZoneRankRequestMatchingSuccess, n.OnCrossZoneRankRequestMatchingFail)
                            })
                        }
                }, t.OnCrossZoneRankRequestMatchingSuccess = function(e) {
                    S.default.BattleInfo = e, S.default.BattleReports = e.Reports, S.default.StartBattle()
                }, t.OnCrossZoneRankRequestMatchingFail = function() {
                    if (this.CheckCrossServerRank()) {
                        var e = new p.Req_Map_CrossZoneRankEnter;
                        d.RpcComponent.Instance.Call(e, function() {
                            var e = new p.Req_Map_CrossZoneRankChallenge;
                            d.RpcComponent.Instance.Call(e, n.OnCrossZoneRankRequestMatchingSuccess, n.OnCrossZoneRankRequestMatchingFail)
                        })
                    }
                }, t.CheckCrossServerRank = function() {
                    if (f.DataCenter.Instance.Zones[f.DataCenter.Zone].Group <= 0) return S.default.IsAssistantComplete = !1, c.UIUtlity.ShowFloatingHint("CrossServerLimitHint".ToUILocale()), !1;
                    if (!g.default.IsCrossServerLadderChallengeEnable()) return S.default.IsAssistantComplete = !1, c.UIUtlity.ShowFloatingHint("assistant_crossServer_limit".ToUILocale()), !1;
                    var e = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneRankDailyFreeChallengeCount");
                    return !(f.DataCenter.Instance.GetIntData(y.UserDataKey.CrossZoneRankChallengeCount) >= e && (S.default.IsAssistantComplete = !1, 1))
                }, t.SetEndlessAbyssAutoComplete = function(e) {
                    var t, o = f.DataCenter.Instance.GetDataById(p.EndlessAbyss_Model, e),
                        r = o.MapIndex == n.EndlessAbyssMaxLevel ? o.MapIndex : o.MapIndex + 1;
                    T.default.CurrentStageIndex = r, e == y.EndlessAbyssType.SingleMode ? t = [f.DataCenter.Instance.GetDataById(p.UserFormation_Model, _.FormationIdType.EnelessAbyssSingle1), f.DataCenter.Instance.GetDataById(p.UserFormation_Model, _.FormationIdType.EnelessAbyssSingle2), f.DataCenter.Instance.GetDataById(p.UserFormation_Model, _.FormationIdType.EnelessAbyssSingle3)] : e == y.EndlessAbyssType.MultiMode && (t = [f.DataCenter.Instance.GetDataById(p.UserFormation_Model, _.FormationIdType.EnelessAbyssMulti)]);
                    var i = new p.Req_Map_EndlessAbyssChallenge;
                    i.Formations = t, i.MapIndex = r, i.Type = e, i.ChallengeType = 1, i.BuffIndex = null, d.RpcComponent.Instance.Call(i, function(t) {
                        f.DataCenter.Instance.SetTempData("EndlessAbyss_currentAvailableMode", e), T.default.IsAssistantComplete = !0, T.default.CurrentShownMode = e, T.default.CurrentResult = t.Result, T.default.CurrentBuffIdArray = t.Params, C.BattleManager.Instance.StartPlay(t.Reports[0], {
                            BattleWaveNumber: 1,
                            DontCloseOnEnd: !0,
                            ShowHaloBtn: !0
                        }, !0)
                    })
                }, t.CheckEndlessAbyssBattle = function(e) {
                    var t;
                    if (e == y.EndlessAbyssType.SingleMode) {
                        if (C.BattleManager.Instance.IsInBattle(y.MapType.EndlessAbyssSingle)) return !1;
                        t = f.DataCenter.Instance.GetDataById(p.UserFormation_Model, _.FormationIdType.EnelessAbyssSingle1)
                    } else if (e == y.EndlessAbyssType.MultiMode) {
                        if (C.BattleManager.Instance.IsInBattle(y.MapType.EndlessAbyssMulti)) return !1;
                        t = f.DataCenter.Instance.GetDataById(p.UserFormation_Model, _.FormationIdType.EnelessAbyssMulti)
                    }
                    var o = d.ConfigDataComponent.Instance.GetConfigById(u.EndlessAbyssType_Config, e),
                        r = d.DataCenter.Instance.GetDataById(p.EndlessAbyss_Model, e),
                        i = f.ConfigDataComponent.Instance.GetArrayConfig(u.MapEndlessAbyss_Config);
                    if (n.EndlessAbyssMaxLevel = 0, i.forEach(function(e) {
                            e.Id - o.MapIdPrefix > 0 && e.Id - o.MapIdPrefix < 1e4 && n.EndlessAbyssMaxLevel++
                        }), r.MapIndex >= n.EndlessAbyssMaxLevel && r.IsDrawDailyReward) return !1;
                    if (o.OpenTime && o.OpenTime.length > 0) {
                        for (var a = b.TimeUtil.GetWeekDay(d.RpcComponent.Instance.ServerTime), s = !1, l = 0; l < o.OpenTime.length; l++)
                            if (a == o.OpenTime[l]) {
                                s = !0;
                                break
                            } if (!s) return !1
                    }
                    var c = !1;
                    return t && t.HeroIds && t.HeroIds.forEach(function(e) {
                        e > 0 && (c = !0)
                    }), !!c
                }, i([D(cc.Button)], t.prototype, "RuleButton", void 0), i([D(cc.Node)], t.prototype, "ToggleContainer", void 0), i([D(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([D(cc.Node)], t.prototype, "AssistanComponentContainer", void 0), i([D(cc.Button)], t.prototype, "UnexecuteButton", void 0), i([D(cc.Label)], t.prototype, "UnexecuteButtonLabel", void 0), i([D(cc.Button)], t.prototype, "ExecuteButton", void 0), i([D(cc.Label)], t.prototype, "ExecuteButtonLabel", void 0), i([D(cc.Button)], t.prototype, "ReturnButton", void 0), i([D(cc.Button)], t.prototype, "UncompleteButton", void 0), i([D(cc.Label)], t.prototype, "UncompleteButtonLabel", void 0), i([D(cc.Button)], t.prototype, "CompleteButton", void 0), i([D(cc.Label)], t.prototype, "CompleteButtonLabel", void 0), i([D(cc.Button)], t.prototype, "GiftButton", void 0), i([D(cc.Label)], t.prototype, "GiftButtonLabel", void 0), i([D(cc.Button)], t.prototype, "ExperienceCardButton", void 0), i([D(cc.Label)], t.prototype, "ExperienceCardButtonLabel", void 0), i([D(cc.Node)], t.prototype, "AvatarNode", void 0), n = i([M], t)
            }(l.BaseUIFullScreenPanel);
        n.default = B, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/AssistantComponent": "AssistantComponent",
        "../Components/CustomToggleRollingLabel": "CustomToggleRollingLabel",
        "../Components/TowerLayerItem": "TowerLayerItem",
        "./ContinuousFightPanel": "ContinuousFightPanel",
        "./CrossServerRankPanel": "CrossServerRankPanel",
        "./EndlessAbyssUIPanel": "EndlessAbyssUIPanel",
        "./MallPrivilegeMainPanel": "MallPrivilegeMainPanel"
    }],
    NewDailyCheckComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ed069IVVEtAfI4ADvI83vl1", "NewDailyCheckComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./ItemComponent"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.DayBg = null, t.Day = null, t.ItemContainer = null, t.Lock = null, t.SelectNode = null, t.ReceivedNode = null, t._haveEventFlag = !1, t._unloadAssets = [], t.Received = !1, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Data", {
                    get: function() {
                        return this._itemData
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.onEnable = function() {
                    d.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), this.node.on(cc.Node.EventType.TOUCH_END, this.OnClickNode, this)
                }, t.prototype.onDisable = function() {
                    d.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), this.node.off(cc.Node.EventType.TOUCH_END, this.OnClickNode, this)
                }, t.prototype.Set = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        var o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this._itemData = e, this._itemComponent ? [3, 2] : [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (o = s.sent(), !this.isValid) return [2];
                                    this._unloadAssets.push(o), this._itemPrefab = o, r = cc.instantiate(o), this.ItemContainer.addChild(r), r.y = -20, this._itemComponent = r.getComponent(l.ItemComponent), s.label = 2;
                                case 2:
                                    return this._itemComponent.Init(this._itemData.ItemData), this.Lock.active = !this._itemData.Charged && !this._itemData.UnLock, this.Day.string = "firstCharge_dayth".ToUILocale().Fmt(this._itemData.Day), this.Day.node.color = this._itemData.IsFree ? (new cc.Color).fromHEX("#fef9c7") : this._itemData.UnLock ? (new cc.Color).fromHEX("#fef9c7") : (new cc.Color).fromHEX("#FFFFFF"), this.ReceivedNode.active = this._itemData.Received, !this._itemData.Received && this._itemData.UnLock && this._itemData.Charged ? (this._itemComponent.PlayGetRewardEffect(), this.CanReceive = !0) : (this._itemComponent.PauseGetRewardEffect(), this.CanReceive = !1), this._haveEventFlag || (this._haveEventFlag = !0, this._clickCallBack = t), i = this._itemData.Charged || this._itemData.UnLock ? "commonPanelBorder5" : "commonPanelBorder7", this.Bg.spriteFrame = p.UIUtlity.COMMON_ATLAS5.getSpriteFrame(i), a = this._itemData.IsFree ? "titleBg" : this._itemData.UnLock ? "titleBg2" : "titleBg3", this.DayBg.spriteFrame = n.getSpriteFrame(a), this.SelectNode.active = this.CanReceive, [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && d.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && this._clickCallBack(this._itemData, this)
                }, t.prototype.OnClickNode = function() {
                    this._clickCallBack(this._itemData, this, !1)
                }, i([g(cc.Sprite)], t.prototype, "Bg", void 0), i([g(cc.Sprite)], t.prototype, "DayBg", void 0), i([g(cc.Label)], t.prototype, "Day", void 0), i([g(cc.Node)], t.prototype, "ItemContainer", void 0), i([g(cc.Node)], t.prototype, "Lock", void 0), i([g(cc.Node)], t.prototype, "SelectNode", void 0), i([g(cc.Node)], t.prototype, "ReceivedNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    NewDailyCheckInRunnerPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c2225hEabhL0bWS4G6Fcjf9", "NewDailyCheckInRunnerPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/DataCenter"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Components/RpcComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Channel/ChannelManager"),
            m = e("../../../Consts/Consts"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../Components/NewDailyCheckComponent"),
            C = e("../Components/CustomToggle"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../../Util/TimeUtil"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.EffectBack = null, t.EffectFront = null, t.MultilangImg = null, t.Content = null, t.BgSprite = null, t.HeroContainer = null, t.BuyNode = null, t.BuyButton = null, t.BottomToggleScrollView = null, t.BottomToggleContent = null, t.ReturnButton = null, t.BtnShowNode = null, t.VipLeftLabel = null, t.VipRightLabel = null, t.DiscountUpLabel = null, t.DiscountDownLabel = null, t.BuyBtnLabel = null, t.ReceivedNode = null, t.ReceivedLabel = null, t.BtnTips = null, t.TimeDesc = null, t.Time = null, t._itemsNodes = [], t._toggleNodes = [], t._showConfigs = [], t._reddots = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(I.EventKeys.EVENT_PAY_SUCCESS, this.OnDataChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(I.EventKeys.EVENT_PAY_SUCCESS, this.OnDataChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("DailyCheckInRunnerPanel/PNG/MainHS", cc.SpriteAtlas), n = this.LoadDynamicAsset("DailyCheckInRunnerPanel/Components/NewDailyCheckComponent", cc.Prefab), o = this.LoadDynamicAsset("Buttons/Toggle2", cc.Prefab), r = this.LoadDynamicAsset("Common/RedDot", cc.Prefab), [4, Promise.all([t, n, o, r])];
                                case 1:
                                    return i = a.sent(), this._atlas = i[0], this._itemPrefab = i[1], this._togglePrefab = i[2], this._reddotPrefab = i[3], [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BtnTips.string = "NewSignIn_NeedCharge".ToUILocale(), this.ReceivedLabel.string = "artifact_has_unlock".ToUILocale(), this.TimeDesc.string = "activity_remain_time".ToUILocale(), this.BuyButton.node.on("click", this.OnClickBuy, this), this.ReturnButton.node.on("click", this.OnClickBack, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._config = d.DataCenter.Instance.ActivityConfigs[n], this._activityModel = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._config._id);
                    for (var o = this._activityModel.IntValue, r = 0; r < this._config.__Rewards.length; r++) {
                        for (var i = this._config.__Rewards[r], a = !0, s = 0; s < i.Condition.length; s++) {
                            var c = i.Condition[s];
                            switch (c.Items[0]) {
                                case 1:
                                    (o < c.Items[1] || c.Items[2] > 0 && o > c.Items[2]) && (a = !1)
                            }
                        }
                        a && this._showConfigs.push(i)
                    }
                    this._showConfigs.length > 0 ? (this._selectIndex = 0 == this._config.CustomPart.DefaultEnterPageId ? 0 : this._showConfigs.length - 1, this._loadRes = {}) : l.UIManager.Instance.BackUIPanel()
                }, t.prototype.DisPlay = function(t) {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this._activityModel = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._config._id), t || (this.RefreshDeadLine(), this.schedule(this.RefreshDeadLine, 1)), this.SetUIContent(), [2]
                        })
                    })
                }, t.prototype.SetUIContent = function() {
                    this.SetTitle(), this.SetBg(), this.SetBackEffect(), this.SetFrontEffect(), this.SetHeroAvator(), this.RanderCircleItems(), this.SetMultilangImg(), this.SetToggles(), this.SetBuyButton()
                }, t.prototype.SetTitle = function() {
                    var e = this._showConfigs[this._selectIndex].Id,
                        t = this._config._Locale.find(function(t) {
                            return t.Id == e
                        });
                    this.Title.string = t.Content
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = this._showConfigs[this._selectIndex].Bg, this._bg && (l.AssetsManager.Instance.UnloadAsset(this._bg), this._bg = null), [4, h.default.LoadActivityTexture(e)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._bg = t, this.BgSprite.spriteFrame = this._bg, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetEffect = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._loadRes[t[0]] ? [3, 2] : [4, this.LoadDynamicAsset(t[0], sp.SkeletonData)];
                                case 1:
                                    if (n = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._loadRes[t[0]] = n, o.label = 2;
                                case 2:
                                    return e.skeletonData = this._loadRes[t[0]], e.setAnimation(0, t[1], !0), [2]
                            }
                        })
                    })
                }, t.prototype.SetBackEffect = function() {
                    var e = this._showConfigs[this._selectIndex].BgEffect;
                    if (this.EffectBack.node.active = !!e, e) {
                        var t = h.default.GetActivityEffectPath(e);
                        t.length > 0 && this.SetEffect(this.EffectBack, t)
                    }
                }, t.prototype.SetFrontEffect = function() {
                    var e = this._showConfigs[this._selectIndex].FgEffect;
                    if (this.EffectFront.node.active = !!e, e) {
                        var t = h.default.GetActivityEffectPath(e);
                        t.length > 0 && this.SetEffect(this.EffectFront, t)
                    }
                }, t.prototype.SetHeroAvator = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, p;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    switch (e = this._showConfigs[this._selectIndex].BgHeros[0].Items[0], t = this._showConfigs[this._selectIndex].BgHeros[0].Items[1], e) {
                                        case 1:
                                            o = c.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, t), n = o.UIAvatar + "/Avatar";
                                            break;
                                        case 2:
                                            n = "AdultPicture" + t + "/Avatar";
                                            break;
                                        case 3:
                                            r = c.ConfigDataComponent.Instance.GetConfigById(u.HeroSkin_Config, t), n = r.UIAvatar + "/Avatar"
                                    }
                                    return this._loadRes[n] ? [3, 2] : [4, this.LoadDynamicAsset(n, cc.Prefab)];
                                case 1:
                                    if (i = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(i), [2];
                                    this._loadRes[n] = i, s.label = 2;
                                case 2:
                                    return a = this._loadRes[n], p = cc.instantiate(a), this.HeroContainer.destroyAllChildren(), this.HeroContainer.addChild(p), o && h.default.Instance.SetHeroAvatarSkin(p, o.Id, o.StarLevel), [2]
                            }
                        })
                    })
                }, t.prototype.GetReceiveDays = function() {
                    var e = this._showConfigs[this._selectIndex].Id;
                    return this._activityModel.IntMap && this._activityModel.IntMap[e] ? this._activityModel.IntMap[e] : 0
                }, t.prototype.RanderCircleItems = function() {
                    var e;
                    if (this._showConfigs[this._selectIndex]) {
                        var t = this._showConfigs[this._selectIndex].Rewards,
                            n = this._showConfigs[this._selectIndex].PackId,
                            o = null === (e = this._activityModel) || void 0 === e ? void 0 : e.Packs[n],
                            r = (o ? o.Items[0] : 0) > 0;
                        this._itemsNodes.forEach(function(e) {
                            e.active = !1
                        });
                        for (var i = 0; i < t.length; i++) {
                            var a = t[i],
                                s = !this._showConfigs[this._selectIndex].PackId,
                                l = h.default.Instance.ComputeActivitStartTime(this._config.Common),
                                c = f.RpcComponent.Instance.ServerTime,
                                u = this.GetReceiveDays(),
                                p = {
                                    ItemData: {
                                        ItemId: a.Items[0],
                                        Count: a.Items[1]
                                    },
                                    UnLock: (c - l) / m.Etc.DayDuration >= i,
                                    Day: i + 1,
                                    Received: i + 1 <= u,
                                    Charged: !!s || r,
                                    IsFree: s
                                };
                            if (!this._itemsNodes[i]) {
                                var d = cc.instantiate(this._itemPrefab);
                                d.parent = this.Content, this._itemsNodes.push(d)
                            }
                            this._itemsNodes[i].active = !0, this._itemsNodes[i].getComponent(_.default).Set(p, this.OnclickBubble.bind(this), this._atlas)
                        }
                    }
                }, t.prototype.SetMultilangImg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return (e = this._showConfigs[this._selectIndex].MultilangImg) ? this._loadRes[e] ? [3, 2] : [4, h.default.LoadActivityTexture(e)] : [3, 3];
                                case 1:
                                    if (t = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._loadRes[e] = t, n.label = 2;
                                case 2:
                                    this.MultilangImg.spriteFrame = this._loadRes[e], n.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this._toggleNodes.forEach(function(e) {
                        e.active = !1
                    }), this._reddots.forEach(function(e) {
                        e.active = !1
                    }), this._showConfigs.forEach(function(t, n) {
                        if (e._toggleNodes[n] || ((o = cc.instantiate(e._togglePrefab)).parent = e.BottomToggleContent, o.name = n.toString(), o.on("toggle", e.ClickToggle, e), e._toggleNodes[n] = o), !e._reddots[n]) {
                            var o = cc.instantiate(e._reddotPrefab);
                            e._reddots[n] = o
                        }
                        e._toggleNodes[n].active = !0, e._reddots[n].parent = e._toggleNodes[n], e._reddots[n].setPosition(e._toggleNodes[n].width / 2 - 15, e._toggleNodes[n].height / 2 - 10), e._reddots[n].active = e.CheckToggleReddot(t);
                        var r = e._config._Locale.find(function(e) {
                                return e.Id == t.Id
                            }),
                            i = e._toggleNodes[n].getComponent(C.default);
                        i.isChecked = n == e._selectIndex, i.Init(r.Content)
                    }), this.BottomToggleScrollView.enabled = this._showConfigs.length > 4, this._showConfigs.length <= 4 && (this.BottomToggleContent.x = 0)
                }, t.prototype.CheckToggleReddot = function(e) {
                    var t = c.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._config._id),
                        n = h.default.Instance.ComputeActivitStartTime(this._config.Common),
                        o = b.TimeUtil.GetDiffDays(n, f.RpcComponent.Instance.ServerTime, !0) + 1;
                    if (e.PackId > 0) {
                        var r = e.PackId,
                            i = null == t ? void 0 : t.Packs[r],
                            a = (i ? i.Items[0] : 0) > 0,
                            s = v.RedDotManager.DataHandler.GetNewDailyCheckInRunnerReceiveDays(this._config, t, e.Id);
                        if (a && o > s) return !0
                    } else if (o > (s = v.RedDotManager.DataHandler.GetNewDailyCheckInRunnerReceiveDays(this._config, t, e.Id))) return !0;
                    return !1
                }, t.prototype.SetBuyButton = function() {
                    var e, t = this._showConfigs[this._selectIndex].PackId,
                        n = this._config._Packs.find(function(e) {
                            return e.Id == t
                        });
                    if (this.BtnShowNode.active = !!n, n) {
                        var o = null === (e = this._activityModel) || void 0 === e ? void 0 : e.Packs[t],
                            r = (o ? o.Items[0] : 0) > 0;
                        this.ReceivedNode.active = r, this.BuyNode.active = !r;
                        var i = n.Money;
                        this.BuyBtnLabel.string = i > 0 ? g.default.Instance.CurrencySymbol + g.default.Instance.ExchangeMoney(i) : "shop_buyFree".ToUILocale(), this.VipLeftLabel.node.parent.active = n.VipPoint > 0, this.VipLeftLabel.string = "task_get_score_tag".ToUILocale(), this.VipRightLabel.string = "x" + n.VipPoint, h.default.Instance.SetDisCount(n.Discount, this.DiscountUpLabel, this.DiscountDownLabel)
                    }
                }, t.prototype.OnClickBuy = function() {
                    var e = this._showConfigs[this._selectIndex].PackId;
                    g.default.Instance.Pay(e, this._config._id)
                }, t.prototype.OnclickBubble = function(e, t, n) {
                    if (void 0 === n && (n = !0), !t.CanReceive) return t.Data.Charged ? e.UnLock ? e.Received : y.UIUtlity.ShowFloatingHint("NewSignIn_CanNotReceive".ToUILocale().Fmt(e.Day)) : y.UIUtlity.ShowFloatingHint("NewSignIn_ChargeGet".ToUILocale()), void(n && y.UIUtlity.ShowItemTip(e.ItemData.ItemId, t.node));
                    var o = new p.Req_Activity_CommonRewards;
                    o.ActivityId = this._config._id, o.Params = [this._showConfigs[this._selectIndex].Id], f.RpcComponent.Instance.Call(o, function(e) {
                        y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnClickBack = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.RefreshDeadLine = function() {
                    var e = h.default.Instance.ComputeExtraShowDeadTime(this._config.Common) - f.RpcComponent.Instance.ServerTime;
                    e < 0 ? (this.unschedule(this.RefreshDeadLine), l.UIManager.Instance.BackUIPanel()) : this.Time.string = h.default.ActivityTimeLeftFormat(e)
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    t != this._selectIndex && (this._selectIndex = t, this.SetUIContent())
                }, t.prototype.OnDataChange = function() {
                    this._activityModel = d.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._config._id), this.RanderCircleItems(), this.SetBuyButton()
                }, t.prototype.onDestroy = function() {
                    this._bg && l.AssetsManager.Instance.UnloadAsset(this._bg), this._reddots.forEach(function(e) {
                        e && e.destroy()
                    })
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(sp.Skeleton)], t.prototype, "EffectBack", void 0), i([P(sp.Skeleton)], t.prototype, "EffectFront", void 0), i([P(cc.Sprite)], t.prototype, "MultilangImg", void 0), i([P(cc.Node)], t.prototype, "Content", void 0), i([P(cc.Sprite)], t.prototype, "BgSprite", void 0), i([P(cc.Node)], t.prototype, "HeroContainer", void 0), i([P(cc.Node)], t.prototype, "BuyNode", void 0), i([P(cc.Button)], t.prototype, "BuyButton", void 0), i([P(cc.ScrollView)], t.prototype, "BottomToggleScrollView", void 0), i([P(cc.Node)], t.prototype, "BottomToggleContent", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([P(cc.Node)], t.prototype, "BtnShowNode", void 0), i([P(cc.Label)], t.prototype, "VipLeftLabel", void 0), i([P(cc.Label)], t.prototype, "VipRightLabel", void 0), i([P(cc.Label)], t.prototype, "DiscountUpLabel", void 0), i([P(cc.Label)], t.prototype, "DiscountDownLabel", void 0), i([P(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([P(cc.Node)], t.prototype, "ReceivedNode", void 0), i([P(cc.Label)], t.prototype, "ReceivedLabel", void 0), i([P(cc.Label)], t.prototype, "BtnTips", void 0), i([P(cc.Label)], t.prototype, "TimeDesc", void 0), i([P(cc.Label)], t.prototype, "Time", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/NewDailyCheckComponent": "NewDailyCheckComponent"
    }],
    NewGameGuideFingerPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "20fe3zr+/JOA5cU4+XBKDeP", "NewGameGuideFingerPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1), t.ClickArea = null, t.MaskNode = null, t.Bg = null, t.FingerSpine = null, t._offsetY = 0, t.SPINE_ANIMATION_1 = "UI_effect_xinshouyindao", t.SPINE_ANIMATION_2 = "UI_effect_xinshouyindao2", t
                }
                return r(t, e), t.prototype.update = function() {
                    this._timer <= 1.8 && (this.SetPosition(), this._timer += cc.director.getDeltaTime())
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ClickArea.on(cc.Node.EventType.TOUCH_END, this.OnClickArea, this), this.ClickArea._touchListener.setSwallowTouches(!1), this.Bg.on(cc.Node.EventType.TOUCH_END, this.OnClickBg, this), this.Bg._touchListener.setSwallowTouches(!1)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._data = t[0];
                    var n = u.ConfigDataComponent.Instance.GetConfigById(c.GameModuleUnlockGuideStep_Config, this._data.StepId);
                    !n || !n.Type || n.Type.length <= 1 ? this.Close() : (this._guideHintConfig = u.ConfigDataComponent.Instance.GetConfigById(c.GuideFingerHint_Config, n.Type[1]), this._guideHintConfig && this._guideHintConfig.OffsetY ? this._offsetY = this._guideHintConfig.OffsetY : this._offsetY = 0)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._timer = 0, this.ConfigFingerNode(), this.ConfigMaskNode(), this.ConfigMandatory()
                }, t.prototype.ConfigMandatory = function() {
                    var e = this.Bg.getComponent(cc.BlockInputEvents);
                    this._data.IsMandatory ? e.enabled = !0 : e.enabled = !1
                }, t.prototype.RefreshViewSize = function() {
                    this && this.isValid && this.SetPosition()
                }, t.prototype.SetPosition = function() {
                    if (this._data.TargetNode && this._data.TargetNode.isValid) {
                        var e = this._data.TargetNode.convertToWorldSpaceAR(cc.v2(0, 0)),
                            t = this.node.convertToNodeSpaceAR(e);
                        this.FingerSpine.node.setPosition(t), this.MaskNode.setPosition(this.FingerSpine.node.position.x, this.FingerSpine.node.position.y + this._offsetY), this.ClickArea.setPosition(this.MaskNode.position)
                    }
                }, t.prototype.ConfigFingerNode = function() {
                    this.SetPosition(), this.FingerSpine.setAnimation(0, this.SPINE_ANIMATION_1, !0)
                }, t.prototype.ConfigMaskNode = function() {
                    this._guideHintConfig && this._guideHintConfig.Size.length > 1 ? (this.MaskNode.width = this._guideHintConfig.Size[0], this.MaskNode.height = this._guideHintConfig.Size[1]) : (this.MaskNode.width = this._data.TargetNode.width, this.MaskNode.height = this._data.TargetNode.height), this.ClickArea.width = this.MaskNode.width, this.ClickArea.height = this.MaskNode.height
                }, t.prototype.OnClickBg = function() {
                    var e = this;
                    this._data.IsMandatory ? (this.FingerSpine.setAnimation(0, this.SPINE_ANIMATION_2, !1), this.FingerSpine.setCompleteListener(function() {
                        e.FingerSpine.setAnimation(0, e.SPINE_ANIMATION_1, !0)
                    })) : this.scheduleOnce(function() {
                        e._data.TargetNode && e._data.TargetNode.isValid || e.Close()
                    })
                }, t.prototype.OnClickArea = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.Close(), this._data.CallBack(this._data.GroupId, this._data.StepId, this._data.IsDatachenge), [2]
                        })
                    })
                }, i([h(cc.Node)], t.prototype, "ClickArea", void 0), i([h(cc.Node)], t.prototype, "MaskNode", void 0), i([h(cc.Node)], t.prototype, "Bg", void 0), i([h(sp.Skeleton)], t.prototype, "FingerSpine", void 0), i([d], t)
            }(l.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components"
    }],
    NewPersonalityCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d8c70x5owlB/L9a1k9LgFcM", "NewPersonalityCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/DataCenter"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../RedDot/RedDotManager"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NewPersonalitySprite = null, t.CardBorder = null, t.Tag = null, t.Name = null, t.Level = null, t.Reddot = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on("click", this.OnCardClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off("click", this.OnCardClick, this)
                }, t.prototype.Init = function(e, t) {
                    this._config = e, this._atlas = t, this._model = u.DataCenter.Instance.GetDataById(l.NewPersonality_Model, e.Id), this._selectId = this._model && this._model.ShowId ? this._model.ShowId : e.PersonalityIds[0], this.SetInfo(), this.SetNewPersonality(), this.SetReddot()
                }, t.prototype.SetNewPersonality = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.ClearNewPersonalitySprite(), [4, c.AssetsManager.Instance.LoadAsset("NewPersonalityPanel/NewPersonalityPNG/" + this._selectId, cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (e.name == "NewPersonalityPanel/NewPersonalityPNG/" + this._selectId ? (this._newPersonalitySprite = e, this.NewPersonalitySprite.spriteFrame = e) : c.AssetsManager.Instance.UnloadAsset(e), [2]) : (c.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.ClearNewPersonalitySprite = function() {
                    this._newPersonalitySprite && c.AssetsManager.Instance.UnloadAsset(this._newPersonalitySprite), this._newPersonalitySprite = null
                }, t.prototype.SetInfo = function() {
                    this.Name.string = this._config.Id.ToNewPersonalityName();
                    var e = this._model && this._model.Level ? this._model.Level : 0;
                    this.Level.string = e.toString();
                    var t = this._config.PersonalityIds.indexOf(this._selectId);
                    this.CardBorder.spriteFrame = this._atlas.getSpriteFrame("cardBorder" + t), this.Tag.string = 0 == t ? "newPersonality_normal".ToUILocale() : "newPersonality_special2".ToUILocale()
                }, t.prototype.SetReddot = function() {
                    var e = {};
                    e.Value1 = this._config.Id;
                    var t = d.RedDotManager.DataHandler.RefreshNewPersonalityItem(e);
                    this.Reddot.active = t
                }, t.prototype.OnCardClick = function() {
                    c.UIManager.Instance.ShowUIPanel(p.PanelConfig.NewPersonalityInfoPanel.Path, this._config)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    }), this.ClearNewPersonalitySprite()
                }, i([y(cc.Sprite)], t.prototype, "NewPersonalitySprite", void 0), i([y(cc.Sprite)], t.prototype, "CardBorder", void 0), i([y(cc.Label)], t.prototype, "Tag", void 0), i([y(cc.Label)], t.prototype, "Name", void 0), i([y(cc.Label)], t.prototype, "Level", void 0), i([y(cc.Node)], t.prototype, "Reddot", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager"
    }],
    NewPersonalityGuideComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "81031jZD1lFypGvIdSnY/Gt", "NewPersonalityGuideComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/ConfigData/ConfigDataComponent"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = (p.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._guides = [21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008], t._isInGuide = !1, t._isPause = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_CLOSE_NPC_DIALOG, this.CheckNextStep, this), a.Game.EventDispatcher.On(u.EventKeys.EVENT_GUIDEHINT_CLOSE, this.CheckNextStep, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.EventKeys.EVENT_CLOSE_NPC_DIALOG, this.CheckNextStep, this), a.Game.EventDispatcher.Off(u.EventKeys.EVENT_GUIDEHINT_CLOSE, this.CheckNextStep, this)
                }, Object.defineProperty(t.prototype, "IsInGuide", {
                    get: function() {
                        return this._isInGuide
                    },
                    set: function(e) {
                        this._isInGuide = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.GetNextStepId = function(e) {
                    return e ? this._guides.indexOf(e) + 1 : 0
                }, t.prototype.StartGuide = function(e, t) {
                    this._stepIndex = t ? this._guides.indexOf(t) : 0, this._showGuideCallBack = e, this._guides[this._stepIndex] && (this._isInGuide = !0, this._showGuideCallBack(this._guides[this._stepIndex]))
                }, t.prototype.PauseGuide = function() {
                    this._isPause = !0
                }, t.prototype.GoOnGuide = function() {
                    this._isPause = !1, this.CheckNextStep()
                }, t.prototype.ShowGuide = function(e) {
                    var t = l.ConfigDataComponent.Instance.GetConfigById(s.GuideStep_Config, this._guides[this._stepIndex]);
                    if (t) switch (t.Type[0]) {
                        case 1:
                            a.UIManager.Instance.ShowUIPanel(c.PanelConfig.NPCDialog.Path, t.Type[1]);
                            break;
                        case 2:
                            a.UIManager.Instance.ShowUIPanel(c.PanelConfig.GuideHintPanel.Path, t.Type[1], e, !1)
                    }
                }, t.prototype.CheckNextStep = function() {
                    this._isInGuide && !this._isPause && (this._stepIndex++, this._stepIndex < this._guides.length ? this._showGuideCallBack(this._guides[this._stepIndex]) : (this._isInGuide = !1, this._showGuideCallBack()))
                }, t.CompleteStep = 21004, i([d], t)
            }(cc.Component));
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent"
    }],
    NewPersonalityHintComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0b4d11/JJ9LdYTWYRqBflx/", "NewPersonalityHintComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HintLock = null, t.HintLabel = null, t.HintLockIconNode = null, t.Heart = null, t.LockNode = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
                }, t.prototype.Init = function(e) {
                    var t = c.ConfigDataComponent.Instance.GetConfigById(u.NewPersonalityAction_Config, e.ActionId),
                        n = c.DataCenter.Instance.GetDataById(l.NewPersonality_Model, e.BaseConfig.Id),
                        o = n && n.Level ? n.Level : 0;
                    if (this._isUnlock = !0, this._lockLabel = "", e.IsSpecial) this._isUnlock = n && n.Map && !!n.Map[e.PersonalityId], this._isUnlock || (this._lockLabel = "newPersonality_limited_condition".ToUILocale());
                    else
                        for (var r = 0; r < t.Condition.length; r++) {
                            var i = t.Condition[r];
                            if (1 == i.Items[0] && o < i.Items[1]) {
                                this._isUnlock = !1, this._lockLabel = "newPersonality_unlock".ToUILocale().Fmt(i.Items[1]);
                                break
                            }
                        }
                    this.HintLock.active = !this._isUnlock, this.HintLockIconNode.active = !this._isUnlock, this.LockNode.active = !this._isUnlock;
                    var a = n && n.Map && n.Map[e.PersonalityId] && n.Map[e.PersonalityId].Items.includes(e.ActionId);
                    this._isUnlock ? this.HintLabel.string = a ? t.Id.ToNewPersonalityActionUnlockDesc() : t.Id.ToNewPersonalityActionLockDesc() : this.HintLabel.string = t.Id.ToNewPersonalityActionLockDesc(), this.SetHeart()
                }, t.prototype.SetHeart = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._atlas ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("FamePriviledgePanel/Png/FamePriviledge", cc.SpriteAtlas)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._atlas = e, this._loadAssets.push(e), this.Heart.spriteFrame = e.getSpriteFrame("heart"), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnTouch = function() {
                    this._isUnlock || d.UIUtlity.ShowFloatingHint(this._lockLabel)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Node)], t.prototype, "HintLock", void 0), i([y(cc.Label)], t.prototype, "HintLabel", void 0), i([y(cc.Node)], t.prototype, "HintLockIconNode", void 0), i([y(cc.Sprite)], t.prototype, "Heart", void 0), i([y(cc.Node)], t.prototype, "LockNode", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    NewPersonalityInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9050fXkolBB4p3dfh1TPOc0", "NewPersonalityInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./NewPersonalityToggleComponent"),
            m = e("./NewPersonalityHintComponent"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../Components/AttributeItemComponent"),
            v = e("../../../InteractiveSpine/InteractiveSpineController"),
            b = e("../Components/CustomLayout"),
            S = e("../../Auxiliary/GameRecord"),
            w = e("../../../Consts/Consts"),
            P = e("../Components/NewPersonalityGuideComponent"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property,
            L = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Level = null, t.NameBg = null, t.NewPersonalityName = null, t.NewPersonalityNode = null, t.HintButton = null, t.HintLabel = null, t.HideButton = null, t.HideLabel = null, t.ToggleScrollView = null, t.ToggleContent = null, t.HintPageMaskNode = null, t.CustomLayout = null, t.AttrContent = null, t.ConsumeContent = null, t.LevelUpButton = null, t.LevelUpLabel = null, t.DressButton = null, t.DressLabel = null, t.BackButton = null, t.BottomLayoutNode = null, t.HideTopNode = null, t.HideMidNode = null, t.HideBottomNode = null, t.ConsumeHintNode = null, t.ConsumeHintLabel = null, t.TalkLabel = null, t.TalkNode = null, t.UnLockNode = null, t.UnLockLabel = null, t.LevelLabel = null, t.LevelUpNode = null, t.CurLevelLabel = null, t.NextLevelLabel = null, t.LevelMaxLabel = null, t.HideBtnSprite = null, t.BottomBgNode = null, t.NewPersonalityGuideComponent = null, t.GuideNode = null, t.FingerNode = null, t.GuideMaskNode = null, t.SetBgButton = null, t.SetBgLabel = null, t.ResetButton = null, t.ResetLabel = null, t.HintRedDot = null, t._toggleComponents = [], t._hintComponents = [], t._attrComponents = [], t._itemComponents = [], t._isHide = !1, t._guideActions = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_IS_PLAYANIMATION_COMPLETED, this.OnLive2dHandleSuccess, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_NEWPERSONALITY_ACTIVE_GUIDE, this.ShowGuide, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_IS_INITIAL_COMPLETED, this.SetResetButton, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_IS_PLAYANIMATION_COMPLETED, this.OnLive2dHandleSuccess, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_NEWPERSONALITY_ACTIVE_GUIDE, this.ShowGuide, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_IS_INITIAL_COMPLETED, this.SetResetButton, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("NewPersonalityPanel/Components/NewPersonalityToggleComponent", cc.Prefab), n = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), o = this.LoadDynamicAsset("NewPersonalityPanel/Components/NewPersonalityHintComponent", cc.Prefab), r = this.LoadDynamicAsset("ISCommonEditor/InteractiveSpineController", cc.Prefab), i = this.LoadDynamicAsset("NewPersonalitySummonPanel/PNG/NewPersonalitySummon", cc.SpriteAtlas), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._togglePrefab = e[0], a._itemPrefab = e[1], a._hintPrefab = e[2], a._newPersonalityPrefab = e[3], a.NameBg.spriteFrame = e[4].getSpriteFrame("nameBg")
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.HintLabel.string = "hint".ToUILocale(), this.HideLabel.string = "newPersonality_hideUI".ToUILocale(), this.UnLockLabel.string = "newPersonality_unlock_hint".ToUILocale(), this.LevelLabel.string = "allianceBase_levelSimple".ToUILocale(), this.SetBgLabel.string = "newpersonality_setBg".ToUILocale(), this.ResetLabel.string = "newPersonality_reset".ToUILocale(), this.HintButton.node.on("click", this.OnHintButtonClick, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.LevelUpButton.node.on("click", this.OnLevelUpButtonClick, this), this.DressButton.node.on("click", this.OnDressButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.HintPageMaskNode.on(cc.Node.EventType.TOUCH_END, this.OnPageMaskNodeTouch, this), this.SetBgButton.node.on("click", this.OnSetBgButtonClick, this), this.ResetButton.node.on("click", this.OnResetButtonClick, this), this._attrComponents[0] = this.AttrContent.children[1].getComponent(C.default)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._baseConfig = t[0], t[1] && (this._jumpId = t[1]), this._isinit = !1, this.SetCurData()
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.PreloadByData.call(this), [2]
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this._isinit || (this.SetToggles(), this.SetNewPersonality(), this._isinit = !0), this.SetTitle(), this.SetAttrInfo(), this.SetBottomNode(), this.RefreshHintRedDot(), _.RedDotManager.Instance.BindInstance(this.LevelUpButton.node, _.RedDotManager.Instance.InstanceRedDot.NewPersonalityLevelUpBtn, {
                        Value1: this._baseConfig.Id,
                        extra: this._showId
                    })
                }, t.prototype.SetPersonalityName = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset(u.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/NewPersonality_" + this._showId), cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.NewPersonalityName.spriteFrame = e, [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetTitle = function() {
                    var e = this._model && this._model.Level ? this._model.Level : 0;
                    this.Level.string = e.toString()
                }, t.prototype.SetNewPersonality = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._newPersonalityComponent ? Number(this._newPersonalityComponent.name) != this._showId && (this.NewPersonalityNode.destroyAllChildren(), this._newPersonalityComponent = null, (e = cc.instantiate(this._newPersonalityPrefab)).parent = this.NewPersonalityNode, e.name = this._showId.toString(), this._newPersonalityComponent = e.getComponent(v.default)) : ((e = cc.instantiate(this._newPersonalityPrefab)).parent = this.NewPersonalityNode, e.name = this._showId.toString(), this._newPersonalityComponent = e.getComponent(v.default)), t = !!(this._model && this._model.Map && this._model.Map[this._showId]), o = n.GetShowState(this._showId), [4, this._newPersonalityComponent.Init(this._curConfig.AvatarId, this.NewPersonalityNode, {
                                        IsLock: !t,
                                        AvatarState: o,
                                        NeedKeepAnimation: !0
                                    })];
                                case 1:
                                    return r.sent(), t ? h.UIUtlity.OffSpineGray(this._newPersonalityComponent.node) : h.UIUtlity.OnSpineGray(this._newPersonalityComponent.node), this._newPersonalityComponent.SetTalkLabel(this.TalkLabel, this.TalkNode), this._newPersonalityComponent.SetCustomConditionCallback(this.CheckMotionIsUnlock.bind(this)), this.SetPersonalityName(), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshActiveNewPersonality = function() {
                    this._newPersonalityComponent.Unlock(), h.UIUtlity.OffSpineGray(this._newPersonalityComponent.node)
                }, t.prototype.CheckMotionIsUnlock = function(e, t) {
                    this._model = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id);
                    var o = this._baseConfig.PersonalityIds.indexOf(this._showId),
                        r = n.GetActionConfigByMotion(e, t);
                    if (o > 0 && !(this._model && this._model.Map && this._model.Map[this._showId])) return !1;
                    if (!r || !r.Condition || !r.Condition.length) return !0;
                    for (var i = this._model && this._model.Level ? this._model.Level : 0, a = !0, s = 0; s < r.Condition.length; s++) {
                        var l = r.Condition[s],
                            c = l.Items[0],
                            d = l.Items[1];
                        switch (c) {
                            case 1:
                                i < d && (a = !1)
                        }
                    }
                    return !!a
                }, t.prototype.SetToggles = function() {
                    this.ToggleScrollView.enabled = this._baseConfig.PersonalityIds.length > 3, this._baseConfig.PersonalityIds.length <= 3 && (this.ToggleContent.x = 0), this._toggleComponents.forEach(function(e) {
                        e.node.active = !1
                    });
                    for (var e = 0; e < this._baseConfig.PersonalityIds.length; e++) {
                        var t = this._baseConfig.PersonalityIds[e];
                        if (!this._toggleComponents[e]) {
                            var n = cc.instantiate(this._togglePrefab);
                            n.name = e.toString(), n.parent = this.ToggleContent, n.on("toggle", this.OnToggleClick, this), this._toggleComponents[e] = n.getComponent(g.default)
                        }
                        this._toggleComponents[e].node.active = !0, this._toggleComponents[e].node.getComponent(cc.Toggle).isChecked = this._showId == t, this._toggleComponents[e].Init(t, this._baseConfig), this._toggleComponents[e].SetReddot(), this._toggleComponents[e].SetSelectTagActive(this._model && this._model.ShowId == t)
                    }
                }, t.prototype.SetHintPage = function() {
                    var e = this;
                    this._datas = [], this._baseConfig.PersonalityIds.forEach(function(t, n) {
                        for (var o = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonality_Config, t), r = 0; r < o.ActionIds.length; r++) {
                            var i = {};
                            i.ActionId = o.ActionIds[r], i.BaseConfig = e._baseConfig, i.IsSpecial = n > 0, i.PersonalityId = o.Id, e._datas.push(i)
                        }
                    }), this.HintPageMaskNode.active = !0, this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._initCustomLayout || (this._initCustomLayout = !0, this.CustomLayout.Init(this._hintPrefab)), this.CustomLayout.RenderLayOut(this._datas.length)
                }, t.prototype.SetAttrInfo = function() {
                    var e = this,
                        t = this.GetAttrData();
                    this._attrComponents.forEach(function(e) {
                        e.node.active = !1
                    }), this.SetLevelComponent();
                    var n = function(t, n, o, r) {
                            if (!e._attrComponents[t]) {
                                var i = cc.instantiate(e.AttrContent.children[1]);
                                i.parent = e.AttrContent, e._attrComponents[t] = i.getComponent(C.default)
                            }
                            var a, s = I.default.GetHeroAttribute(n, o),
                                l = I.default.GetHeroAttribute(n, o + r);
                            a = r ? {
                                Name: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + s.Name,
                                Icon: s.Icon,
                                OldValue: "+" + s.Value,
                                NewValue: "+" + l.Value
                            } : {
                                Name: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale() + s.Name,
                                Icon: s.Icon,
                                OldValue: "+" + s.Value
                            }, e._attrComponents[t].Init(a), e._attrComponents[t].node.active = !0
                        },
                        o = [],
                        r = [],
                        i = [];
                    if (t.AddAttrs)
                        for (var a in t.AddAttrs) l = Number(a), p = u.ConfigDataComponent.Instance.GetConfigById(c.HeroAttribute_Config, l), t.CurAttrs[l] ? t.AddAttrs[l] >= t.CurAttrs[l] && ((s = {}).attrId = l, s.curValue = t.CurAttrs[l], s.addValue = t.AddAttrs[l] - t.CurAttrs[l], 1 == p.Format ? r.push(s) : i.push(s)) : ((s = {}).attrId = l, s.curValue = 0, s.addValue = t.AddAttrs[l], 1 == p.Format ? r.push(s) : i.push(s));
                    else
                        for (var a in t.CurAttrs) {
                            var s, l = Number(a),
                                p = u.ConfigDataComponent.Instance.GetConfigById(c.HeroAttribute_Config, l);
                            (s = {}).attrId = l, s.curValue = t.CurAttrs[l], s.addValue = 0, 1 == p.Format ? r.push(s) : i.push(s)
                        }
                    for (var d = Math.max(r.length, i.length), h = 0; h < d; h++) r[h] && o.push(r[h]), i[h] && o.push(i[h]);
                    o.forEach(function(e, t) {
                        n(t, e.attrId, e.curValue, e.addValue)
                    })
                }, t.prototype.SetLevelComponent = function() {
                    var e = this._model && this._model.Level ? this._model.Level : 0,
                        t = e == this._baseConfig.Attrs[0].Items.length - 1;
                    this.LevelUpNode.active = !t, this.LevelMaxLabel.node.active = t, t ? this.LevelMaxLabel.string = e.toString() : (this.CurLevelLabel.string = e.toString(), this.NextLevelLabel.string = (e + 1).toString())
                }, t.prototype.GetAttrData = function() {
                    this._model = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id);
                    var e = {},
                        t = this._showId != this._baseConfig.PersonalityIds[0],
                        n = !1,
                        o = this._model && this._model.Map && !!this._model.Map[this._showId];
                    if (t) {
                        var r = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonality_Config, this._baseConfig.PersonalityIds[0]);
                        n = (h = this._model && this._model.Level ? this._model.Level : 0) == this._baseConfig.Attrs[0].Items.length - 1;
                        var i = this.GetAttrByLevel(h, r);
                        if (n) e.CurAttrs = i, e.AddAttrs = null;
                        else if (e.AddAttrs = this.GetAttrByLevel(h + 1, r), i) e.CurAttrs = i;
                        else {
                            var a = {};
                            for (var s in e.AddAttrs) a[Number(s)] = 0;
                            e.CurAttrs = a
                        }
                        var l = {};
                        if (this._curConfig.Attrs.forEach(function(e) {
                                l[e.Items[0]] = e.Items[1]
                            }), o) {
                            for (var d in l) e.CurAttrs[d] ? e.CurAttrs[d] += l[d] : e.CurAttrs[d] = l[d];
                            e.AddAttrs = null
                        } else {
                            for (var d in e.AddAttrs) e.AddAttrs[d] = 0;
                            for (var d in l) e.AddAttrs || (e.AddAttrs = {}), e.AddAttrs[Number(d)] ? e.AddAttrs[Number(d)] += l[d] : e.AddAttrs[Number(d)] = l[d], i && i[Number(d)] && (e.AddAttrs[Number(d)] += i[Number(d)])
                        }
                    } else {
                        var h;
                        n = (h = this._model && this._model.Level ? this._model.Level : 0) == this._baseConfig.Attrs[0].Items.length - 1;
                        var f = this._model && this._model.Map && !!this._model.Map[this._baseConfig.PersonalityIds[1]],
                            y = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonality_Config, this._baseConfig.PersonalityIds[1]),
                            g = {};
                        if (f && y.Attrs.forEach(function(e) {
                                g[e.Items[0]] = e.Items[1]
                            }), i = this.GetAttrByLevel(h, this._curConfig), n) {
                            for (var s in g) i[Number(s)] && (i[Number(s)] += g[s]);
                            e.CurAttrs = i, e.AddAttrs = null
                        } else {
                            if (e.AddAttrs = this.GetAttrByLevel(h + 1, this._curConfig), i) e.CurAttrs = i;
                            else {
                                for (var s in a = {}, e.AddAttrs) a[Number(s)] = 0;
                                e.CurAttrs = a
                            }
                            for (var s in g) e.CurAttrs && e.CurAttrs[Number(s)] && (e.CurAttrs[Number(s)] += g[s]), e.AddAttrs && e.AddAttrs[Number(s)] && (e.AddAttrs[Number(s)] += g[s])
                        }
                    }
                    return e
                }, t.prototype.GetAttrByLevel = function(e, t) {
                    if (!e) return null;
                    var n = {};
                    return t.Attrs.forEach(function(e) {
                        n[e.Items[0]] = e.Items[1]
                    }), this._baseConfig.Attrs.forEach(function(t) {
                        t.Items[e] && (n[t.Items[0]] ? n[t.Items[0]] += t.Items[e] : n[t.Items[0]] = t.Items[e])
                    }), n
                }, t.prototype.GetUnlockTipIsShow = function() {
                    for (var e = 1; e < this._baseConfig.PersonalityIds.length; e++)
                        if (!(this._model && this._model.ActIds && this._model.ActIds[e - 1] > 0 && this._model.ActIds[e - 1])) return !0;
                    return !1
                }, t.prototype.SetResetButton = function() {
                    var e = this._newPersonalityComponent.GetAvatarStateIndex(),
                        t = !1,
                        n = v.default.AVATAR_ANIMATIONS_RECORDER;
                    n && n[this._curConfig.AvatarId] && n[this._curConfig.AvatarId].length > 0 && (t = !0), this.ResetButton.node.active = e > 0 || t
                }, t.prototype.SetBottomNode = function() {
                    var e, t, n = this,
                        o = this._showId != this._baseConfig.PersonalityIds[0],
                        r = this._model && this._model.Map && !!this._model.Map[this._showId],
                        i = this._model && this._model.Map && !!this._model.Map[this._baseConfig.PersonalityIds[0]],
                        a = I.default.Instance.IsGameModuleUnlock(w.GameModuleType.NewPersonalityMainScene)[0],
                        s = I.default.Instance.IsGameModuleOpen(w.GameModuleType.NewPersonalityMainScene);
                    this.SetBgButton.node.active = r && a && s, this.SetResetButton(), this._itemComponents.forEach(function(e) {
                        e.node.active = !1
                    }), r || this.GetActiveConsume().forEach(function(e, t) {
                        if (!n._itemComponents[t]) {
                            var o = cc.instantiate(n._itemPrefab);
                            o.parent = n.ConsumeContent, o.y = -20, n._itemComponents[t] = o.getComponent(f.ItemComponent)
                        }
                        n._itemComponents[t].node.active = !0, n._itemComponents[t].Init({
                            ItemId: e[0],
                            Count: e[1]
                        });
                        var r = u.DataCenter.Instance.GetItemCount(e[0]);
                        n._itemComponents[t].SetProgressBar(r, e[1], !0, 1.4, 1.62, -124, null, 26)
                    });
                    var l = this.GetUnlockTipIsShow();
                    o ? (this.ConsumeContent.active = !r, this.UnLockNode.active = !r && l) : (t = (e = this._model && this._model.Level ? this._model.Level : 0) == this._baseConfig.Attrs[0].Items.length - 1, this.ConsumeContent.active = !r || !t, !t && e > 0 && this.GetLevelUpConsume(e).forEach(function(e, t) {
                        if (!n._itemComponents[t]) {
                            var o = cc.instantiate(n._itemPrefab);
                            o.parent = n.ConsumeContent, o.y = -20, n._itemComponents[t] = o.getComponent(f.ItemComponent)
                        }
                        n._itemComponents[t].node.active = !0, n._itemComponents[t].Init({
                            ItemId: e[0],
                            Count: e[1]
                        });
                        var r = u.DataCenter.Instance.GetItemCount(e[0]);
                        n._itemComponents[t].SetProgressBar(r, e[1], !0, 1.4, 1.62, -124, null, 26)
                    }), this.UnLockNode.active = !t && l), this.ConsumeHintNode.active = !1, o ? i ? (this.LevelUpButton.node.active = !r, r ? (this.ConsumeHintNode.active = !0, this.ConsumeHintLabel.string = "artifact_has_active".ToUILocale()) : this.LevelUpLabel.string = "ChaosTemple_Active".ToUILocale()) : (this.LevelUpButton.node.active = !0, this.LevelUpLabel.string = "ChaosTemple_Active".ToUILocale()) : r ? t ? t && (this.LevelUpButton.node.active = !1, this.ConsumeHintNode.active = !0, this.ConsumeHintLabel.string = "newPersonality_maxLevel".ToUILocale()) : (this.LevelUpButton.node.active = !0, this.LevelUpLabel.string = "newPersonality_levelUp".ToUILocale()) : (this.LevelUpButton.node.active = !0, this.LevelUpLabel.string = "ChaosTemple_Active".ToUILocale()), this.DressButton.node.active = r && this._model && this._model.ShowId != this._showId, this.DressLabel.string = "heroSkin_dress".ToUILocale()
                }, t.prototype.GetActiveConsume = function() {
                    var e = [];
                    return this._curConfig.Materials.forEach(function(t) {
                        t.Items[1] > 0 && e.push([t.Items[0], t.Items[1]])
                    }), e
                }, t.prototype.GetLevelUpConsume = function(e) {
                    var t = [];
                    return this._baseConfig.Materials.forEach(function(n) {
                        if (n.Items[e] > 0) {
                            var o = n.Items[0],
                                r = n.Items[e];
                            t.push([o, r])
                        }
                    }), t
                }, t.prototype.OnToggleClick = function(e) {
                    var t = Number(e.node.name);
                    this._baseConfig.PersonalityIds[t] && this._showId != this._baseConfig.PersonalityIds[t] && (this._showId = this._baseConfig.PersonalityIds[t], this._curConfig = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonality_Config, this._showId), this.SetNewPersonality(), this.SetAttrInfo(), this.SetBottomNode(), _.RedDotManager.Instance.BindInstance(this.LevelUpButton.node, _.RedDotManager.Instance.InstanceRedDot.NewPersonalityLevelUpBtn, {
                        Value1: this._baseConfig.Id,
                        extra: this._showId
                    }))
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.ConsumeContent.children.indexOf(t)) {
                        var n = t.getComponent(f.ItemComponent).ItemId;
                        I.default.ShowItemGetWay(n)
                    }
                }, t.GetNewPersoanlityIdByAvatarId = function(e) {
                    return n.AvatarIdToPersonalityConfig || (n.AvatarIdToPersonalityConfig = {}, u.ConfigDataComponent.Instance.GetArrayConfig(c.NewPersonality_Config).forEach(function(e) {
                        n.AvatarIdToPersonalityConfig[e.AvatarId] = e
                    })), n.AvatarIdToPersonalityConfig[e]
                }, t.GetActionConfigByMotion = function(e, t) {
                    n.ActionIdToPersonalityActionConfig || (n.ActionIdToPersonalityActionConfig = {}, u.ConfigDataComponent.Instance.GetArrayConfig(c.NewPersonality_Config).forEach(function(e) {
                        var t = e.AvatarId;
                        e.ActionIds.forEach(function(e) {
                            var o = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonalityAction_Config, e);
                            if (o.ActionName) {
                                var r = t + "_" + o.ActionName;
                                n.ActionIdToPersonalityActionConfig[r] = o
                            }
                        })
                    }));
                    var o = e + "_" + t;
                    return n.ActionIdToPersonalityActionConfig[o]
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(m.default).Init(n._datas[t])
                    })
                }, t.prototype.OnLive2dHandleSuccess = function(e, t) {
                    var o = this,
                        r = n.GetNewPersoanlityIdByAvatarId(e);
                    if (r.Id == this._showId) {
                        var i = n.GetActionConfigByMotion(e, t);
                        if (i) {
                            if (i.NextState && n.SetShowState(this._showId, i.NextState), r.ActionIds.includes(i.Id) && !this.GetTakeMotionMap().includes(i.Id)) {
                                var a = new p.Req_Hero_NewPersonalitySee;
                                a.Sid = this._baseConfig.Id, a.PersonalityId = this._showId, a.ActionIds = [i.Id], u.RpcComponent.Instance.Call(a, function() {})
                            }
                        } else {
                            this.SetResetButton();
                            var s = I.default.Instance.IsGameModuleUnlock(w.GameModuleType.NewPersonalityGuide)[0],
                                c = I.default.Instance.IsGameModuleOpen(w.GameModuleType.NewPersonalityGuide);
                            if (!s || !c) return;
                            if (100101 == r.Id && this.GuideNode.active && ("Rod_xie_L" == t || "Rod_xie_R" == t))
                                if (this._guideActions.push(t), this._guideActions.includes("Rod_xie_L") && this._guideActions.includes("Rod_xie_R")) {
                                    this.HideGuide();
                                    I.default.SetServerRecordString(w.UserDataKey.NewPersonalityGuide, JSON.stringify({
                                        NewPersonalityId: 100101,
                                        StepId: 21007
                                    })), this.scheduleOnce(function() {
                                        o.GuideMaskNode.active = !1, l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_GUIDEHINT_CLOSE)
                                    }, 4.3)
                                } else this._guideActions.includes("Rod_xie_L") ? this.SetDragShoesGuide(!1) : this.SetDragShoesGuide(!0)
                        }
                    }
                }, t.prototype.ShowGuide = function(e) {
                    var t = this;
                    void 0 === e && (e = !1), this.HideGuide();
                    var n = I.default.Instance.IsGameModuleUnlock(w.GameModuleType.NewPersonalityGuide)[0],
                        o = I.default.Instance.IsGameModuleOpen(w.GameModuleType.NewPersonalityGuide);
                    if (n && o) {
                        var r, i = I.default.GetServerRecordString(w.UserDataKey.NewPersonalityGuide),
                            a = 0;
                        if (i) {
                            if ((r = JSON.parse(i)).NewPersonalityId != this._showId) return;
                            if (!e && r.StepId >= P.default.CompleteStep || r.StepId >= 21008) return;
                            if (100101 != r.NewPersonalityId && r.StepId >= 21004) return;
                            a = r.StepId
                        } else {
                            if (!(this._model && this._model.Map && this._model.Map[this._showId])) return;
                            (r = {}).NewPersonalityId = this._showId
                        }
                        this._guideActions = [], this.NewPersonalityGuideComponent.GetNextStepId(a), this.NewPersonalityGuideComponent.StartGuide(function(e) {
                            if (e) {
                                switch (e) {
                                    case 21002:
                                        t.NewPersonalityGuideComponent.ShowGuide(t.HideButton.node);
                                        break;
                                    case 21003:
                                        t.NewPersonalityGuideComponent.ShowGuide(t.HintButton.node);
                                        break;
                                    case 21004:
                                        100101 == r.NewPersonalityId ? t.NewPersonalityGuideComponent.ShowGuide(t.HintButton.node) : (t.NewPersonalityGuideComponent.IsInGuide = !1, t.HideGuide());
                                        break;
                                    case 21007:
                                        t.SetDragShoesGuide(!0);
                                        break;
                                    default:
                                        t.NewPersonalityGuideComponent.ShowGuide()
                                }
                                21007 != e && (r.StepId = e, I.default.SetServerRecordString(w.UserDataKey.NewPersonalityGuide, JSON.stringify(r)))
                            }
                        })
                    }
                }, t.prototype.SetDragShoesGuide = function(e) {
                    this.GuideMaskNode.active = !0, this.GuideNode.active = !0;
                    var t = [cc.v3(-36, -860), cc.v3(-36, -540)],
                        n = [cc.v3(328, -960), cc.v3(328, -588)],
                        o = e ? t[0] : n[0],
                        r = e ? t[1] : n[1];
                    cc.Tween.stopAllByTarget(this.FingerNode), e ? this.FingerNode.setPosition(t[1]) : this.FingerNode.setPosition(n[1]), cc.tween(this.FingerNode).repeatForever(cc.tween(this.FingerNode).to(1, {
                        position: o
                    }).to(0, {
                        position: r
                    })).start()
                }, t.prototype.HideGuide = function() {
                    this.GuideNode.active = !1, cc.Tween.stopAllByTarget(this.FingerNode)
                }, t.prototype.GetTakeMotionMap = function() {
                    return this._model = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id), this._model && this._model.Map && this._model.Map[this._showId] && this._model.Map[this._showId].Items ? this._model.Map[this._showId].Items : []
                }, t.prototype.SetCurData = function() {
                    this._model = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id), this._jumpId ? this._showId = this._jumpId : this._showId = this._model && this._model.ShowId ? this._model.ShowId : this._baseConfig.PersonalityIds[0], this._curConfig = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonality_Config, this._showId)
                }, t.prototype.OnHintButtonClick = function() {
                    this.SetHintPage(), this.SetHintRedDot()
                }, t.prototype.OnHideButtonClick = function() {
                    this._isHide = !this._isHide, this.HideLabel.string = this._isHide ? "newPersonality_showUI".ToUILocale() : "newPersonality_hideUI".ToUILocale(), this.HideTopNode.active = !this._isHide, this.HideMidNode.active = !this._isHide, this.HideBottomNode.active = !this._isHide, this.HideBtnSprite.spriteFrame = this._isHide ? h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("newPersonality_showUI") : h.UIUtlity.COMMON_ATLAS5.getSpriteFrame("newPersonality_hideUI"), this.BottomBgNode.y = this._isHide ? -101 : -8, this.BackButton.node.active = !this._isHide, this._isHide && this.CheckHintDialog(), this.GuideNode.active && !this._isHide && this.HideGuide()
                }, t.prototype.RefreshLevelUp = function() {
                    this._model = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id), this.SetTitle(), this.SetToggles(), this.SetAttrInfo(), this.SetBottomNode()
                }, t.prototype.RequestActive = function() {
                    for (var e = this, t = this.GetActiveConsume(), n = 0; n < t.length; n++) {
                        var o = t[n];
                        if (!u.DataCenter.Instance.IsItemEnough(o[0], o[1])) return void I.default.ShowItemGetWay(o[0])
                    }
                    var r = this.GetAttrData(),
                        i = u.DataCenter.Instance.GetIntData(w.UserDataKey.Power),
                        a = new p.Req_Hero_NewPersonalityUnlock;
                    a.Sid = this._baseConfig.Id, a.PersonalityId = this._showId, u.RpcComponent.Instance.Call(a, function() {
                        l.UIManager.Instance.ShowUIPanel(y.PanelConfig.NewPersonalitySuccessPanel.Path, r, 1), e.RefreshLevelUp(), e.RefreshActiveNewPersonality(), _.RedDotManager.Instance.BindInstance(e.LevelUpButton.node, _.RedDotManager.Instance.InstanceRedDot.NewPersonalityLevelUpBtn, {
                            Value1: e._baseConfig.Id,
                            extra: e._showId
                        }), _.RedDotManager.Instance.BindInstance(e.HintButton.node, _.RedDotManager.Instance.InstanceRedDot.NewPersonalityHintBtn, {
                            Value1: e._baseConfig.Id
                        });
                        var t = u.DataCenter.Instance.GetIntData(w.UserDataKey.Power);
                        l.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattlePowerChangePanel.Path, i, t), e.RefreshHintRedDot()
                    })
                }, t.prototype.OnLevelUpButtonClick = function() {
                    var e = this,
                        t = this._showId != this._baseConfig.PersonalityIds[0],
                        n = this._model && this._model.Map && !!this._model.Map[this._showId],
                        o = this._model && this._model.Map && !!this._model.Map[this._baseConfig.PersonalityIds[0]];
                    if (t) {
                        if (!o) return h.UIUtlity.ShowFloatingHint("newPersonality_base_unActive".ToUILocale());
                        if (n) return;
                        this.RequestActive()
                    } else {
                        var r = this._model && this._model.Level ? this._model.Level : 0,
                            i = r == this._baseConfig.Attrs[0].Items.length - 1;
                        if (i) return;
                        if (n) {
                            if (!i) {
                                for (var a = this.GetLevelUpConsume(r), s = 0; s < a.length; s++) {
                                    var c = a[s];
                                    if (!u.DataCenter.Instance.IsItemEnough(c[0], c[1])) return void I.default.ShowItemGetWay(c[0])
                                }
                                var d = this.GetAttrData(),
                                    f = u.DataCenter.Instance.GetIntData(w.UserDataKey.Power),
                                    g = new p.Req_Hero_NewPersonalityUpgrade;
                                g.Sid = this._baseConfig.Id, u.RpcComponent.Instance.Call(g, function() {
                                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.NewPersonalitySuccessPanel.Path, d, 2), e._model = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, e._baseConfig.Id), e.RefreshLevelUp(), _.RedDotManager.Instance.BindInstance(e.LevelUpButton.node, _.RedDotManager.Instance.InstanceRedDot.NewPersonalityLevelUpBtn, {
                                        Value1: e._baseConfig.Id,
                                        extra: e._showId
                                    }), _.RedDotManager.Instance.BindInstance(e.HintButton.node, _.RedDotManager.Instance.InstanceRedDot.NewPersonalityHintBtn, {
                                        Value1: e._baseConfig.Id
                                    });
                                    var t = u.DataCenter.Instance.GetIntData(w.UserDataKey.Power);
                                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattlePowerChangePanel.Path, f, t)
                                })
                            }
                        } else this.RequestActive()
                    }
                }, t.prototype.OnDressButtonClick = function() {
                    var e = this;
                    if (this._model && this._model.Map && this._model.Map[this._showId] && this._model.ShowId != this._showId) {
                        var t = new p.Req_Hero_NewPersonalityChange;
                        t.Sid = this._baseConfig.Id, t.PersonalityId = this._showId, u.RpcComponent.Instance.Call(t, function() {
                            e._model = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, e._baseConfig.Id), e.RefreshLevelUp()
                        })
                    }
                }, t.prototype.OnPageMaskNodeTouch = function() {
                    this.HintPageMaskNode.active = !1, _.RedDotManager.Instance.BindInstance(this.HintButton.node, _.RedDotManager.Instance.InstanceRedDot.NewPersonalityHintBtn, {
                        Value1: this._baseConfig.Id
                    })
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnSetBgButtonClick = function() {
                    if (this._model && this._model.Map && this._model.Map[this._showId]) {
                        var e = this._newPersonalityComponent.GetAvatarStateIndex(),
                            t = u.DataCenter.Instance.GetArrayData(w.UserDataKey.MainBackground)[w.CustomizeMainSceneType.NewPersonality];
                        if (t > 0 && Math.floor(t / 100) == this._showId) return void h.UIUtlity.ShowFloatingHint("CustomizeMainScene_UsingNow".ToUILocale());
                        for (var n = [], o = 100 * this._showId + e + 1, r = 0; r <= w.CustomizeMainSceneType.NewPersonality; r++) r == w.CustomizeMainSceneType.NewPersonality ? n.push(o) : n.push(0);
                        var i = new p.Req_Player_SetMainBackground;
                        i.Data = n, u.RpcComponent.Instance.Call(i, function() {
                            l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_CUSTOMIZE_SCENE_CHANGED), h.UIUtlity.ShowFloatingHint("CustomizeMainScene_ChangeSuccess".ToUILocale())
                        })
                    } else h.UIUtlity.ShowFloatingHint("Personalise_title_unactive".ToUILocale())
                }, t.prototype.OnResetButtonClick = function() {
                    this._newPersonalityComponent.GetAvatarStateIndex() > 0 ? this._newPersonalityComponent.Init(this._curConfig.AvatarId, this.NewPersonalityNode, {
                        AvatarState: 1,
                        NeedResetState: !0
                    }) : this._newPersonalityComponent.RestoreAvatarAnimations(), n.SetShowState(this._showId, 1), this.SetResetButton()
                }, t.GetShowState = function(e) {
                    var t = S.default.GetItem(S.GameRecordDefine.NewPersonalityShowState);
                    if (!t) return 1;
                    var n = JSON.parse(t);
                    return n && n[e] ? n[e] : 1
                }, t.SetShowState = function(e, t) {
                    var n, o = S.default.GetItem(S.GameRecordDefine.NewPersonalityShowState);
                    (n = o ? JSON.parse(o) : {})[e] = t, S.default.SetItem(S.GameRecordDefine.NewPersonalityShowState, JSON.stringify(n))
                }, t.prototype.SetHintRedDot = function() {
                    if (this._baseConfig.NeedHintRedDot && 0 != this.HintRedDot.active) {
                        var e, t = S.default.GetItem(S.GameRecordDefine.NewPersonalityHintRedDot);
                        (e = t ? JSON.parse(t) : {})[this._baseConfig.Id] = 1, S.default.SetItem(S.GameRecordDefine.NewPersonalityHintRedDot, JSON.stringify(e)), this.RefreshHintRedDot()
                    }
                }, t.prototype.RefreshHintRedDot = function() {
                    if (this.HintRedDot.active = !1, this._baseConfig.NeedHintRedDot && this.IsModelActive()) {
                        var e = S.default.GetItem(S.GameRecordDefine.NewPersonalityHintRedDot);
                        e && JSON.parse(e)[this._baseConfig.Id] || (this.HintRedDot.active = !0)
                    }
                }, t.prototype.CheckHintDialog = function() {
                    if (!this.NewPersonalityGuideComponent.IsInGuide && this._baseConfig.DialogHint && this.IsModelActive()) {
                        var e, t = S.default.GetItem(S.GameRecordDefine.NewPersonalityHintDialog);
                        if (t && JSON.parse(t)[this._baseConfig.Id] || (e = !0), e) {
                            l.UIManager.Instance.ShowUIPanel(y.PanelConfig.NPCDialog.Path, this._baseConfig.DialogHint);
                            var n = void 0;
                            (n = t ? JSON.parse(t) : {})[this._baseConfig.Id] = 1, S.default.SetItem(S.GameRecordDefine.NewPersonalityHintDialog, JSON.stringify(n))
                        }
                    }
                }, t.prototype.IsModelActive = function() {
                    return this._model && this._model.Map && this._model.Map[this._showId]
                }, i([R(cc.Label)], t.prototype, "Level", void 0), i([R(cc.Sprite)], t.prototype, "NameBg", void 0), i([R(cc.Sprite)], t.prototype, "NewPersonalityName", void 0), i([R(cc.Node)], t.prototype, "NewPersonalityNode", void 0), i([R(cc.Button)], t.prototype, "HintButton", void 0), i([R(cc.Label)], t.prototype, "HintLabel", void 0), i([R(cc.Button)], t.prototype, "HideButton", void 0), i([R(cc.Label)], t.prototype, "HideLabel", void 0), i([R(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([R(cc.Node)], t.prototype, "ToggleContent", void 0), i([R(cc.Node)], t.prototype, "HintPageMaskNode", void 0), i([R(b.default)], t.prototype, "CustomLayout", void 0), i([R(cc.Node)], t.prototype, "AttrContent", void 0), i([R(cc.Node)], t.prototype, "ConsumeContent", void 0), i([R(cc.Button)], t.prototype, "LevelUpButton", void 0), i([R(cc.Label)], t.prototype, "LevelUpLabel", void 0), i([R(cc.Button)], t.prototype, "DressButton", void 0), i([R(cc.Label)], t.prototype, "DressLabel", void 0), i([R(cc.Button)], t.prototype, "BackButton", void 0), i([R(cc.Node)], t.prototype, "BottomLayoutNode", void 0), i([R(cc.Node)], t.prototype, "HideTopNode", void 0), i([R(cc.Node)], t.prototype, "HideMidNode", void 0), i([R(cc.Node)], t.prototype, "HideBottomNode", void 0), i([R(cc.Node)], t.prototype, "ConsumeHintNode", void 0), i([R(cc.Label)], t.prototype, "ConsumeHintLabel", void 0), i([R(cc.Label)], t.prototype, "TalkLabel", void 0), i([R(cc.Node)], t.prototype, "TalkNode", void 0), i([R(cc.Node)], t.prototype, "UnLockNode", void 0), i([R(cc.Label)], t.prototype, "UnLockLabel", void 0), i([R(cc.Label)], t.prototype, "LevelLabel", void 0), i([R(cc.Node)], t.prototype, "LevelUpNode", void 0), i([R(cc.Label)], t.prototype, "CurLevelLabel", void 0), i([R(cc.Label)], t.prototype, "NextLevelLabel", void 0), i([R(cc.Label)], t.prototype, "LevelMaxLabel", void 0), i([R(cc.Sprite)], t.prototype, "HideBtnSprite", void 0), i([R(cc.Node)], t.prototype, "BottomBgNode", void 0), i([R(P.default)], t.prototype, "NewPersonalityGuideComponent", void 0), i([R(cc.Node)], t.prototype, "GuideNode", void 0), i([R(cc.Node)], t.prototype, "FingerNode", void 0), i([R(cc.Node)], t.prototype, "GuideMaskNode", void 0), i([R(cc.Button)], t.prototype, "SetBgButton", void 0), i([R(cc.Label)], t.prototype, "SetBgLabel", void 0), i([R(cc.Button)], t.prototype, "ResetButton", void 0), i([R(cc.Label)], t.prototype, "ResetLabel", void 0), i([R(cc.Node)], t.prototype, "HintRedDot", void 0), n = i([T], t)
            }(l.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../InteractiveSpine/InteractiveSpineController": "InteractiveSpineController",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttributeItemComponent": "AttributeItemComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/NewPersonalityGuideComponent": "NewPersonalityGuideComponent",
        "./NewPersonalityHintComponent": "NewPersonalityHintComponent",
        "./NewPersonalityToggleComponent": "NewPersonalityToggleComponent"
    }],
    NewPersonalityPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "edb3e7vVT1I44btr8S8n2dj", "NewPersonalityPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("./NewPersonalityCardComponent"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Components/AsyncLayout"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.AsyncLayout = null, t.AttrButton = null, t.AttrLabel = null, t.BackButton = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("NewPersonalityPanel/Components/NewPersonalityCardComponent", cc.Prefab), n = this.LoadDynamicAsset("NewPersonalityPanel/PNG/NewPersonality", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                        o._cardPrefab = e[0], o._atlas = e[1]
                                    })];
                                case 1:
                                    return r.sent(), this.AsyncLayout.Init(this._cardPrefab, this.OnRenderCardItem.bind(this)), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "newPersonality_title".ToUILocale(), this.AttrLabel.string = "HeroFavorList_AttributeTitle".ToUILocale(), this.AttrButton.node.on("click", this.OnAttrButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._showConfigs = [], u.ConfigDataComponent.Instance.GetArrayConfig(c.NewPersonalityBase_Config).forEach(function(e) {
                        f.default.IsNewPersonalityShowAvailable(e) && n._showConfigs.push(e)
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t ? this.AsyncLayout.ReRender() : this.AsyncLayout.RenderLayout(this._showConfigs.length)
                }, t.prototype.OnRenderCardItem = function(e, t) {
                    var n = this._showConfigs[t];
                    e.getComponent(d.default).Init(n, this._atlas)
                }, t.prototype.OnAttrButtonClick = function() {
                    var e = [],
                        t = {};
                    t.Title = "newPersonality_attr_title".ToUILocale(), t.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale();
                    var n = [],
                        o = {};
                    for (var r in this._showConfigs.forEach(function(e) {
                            var t = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, e.Id);
                            if (t)
                                for (var n = 0; n < e.PersonalityIds.length; n++) {
                                    var r = e.PersonalityIds[n];
                                    if (t.Map && t.Map[r]) {
                                        for (var i = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonality_Config, r), a = 0; a < i.Attrs.length; a++) {
                                            var s = i.Attrs[a];
                                            o[s.Items[0]] ? o[s.Items[0]] += s.Items[1] : o[s.Items[0]] = s.Items[1]
                                        }
                                        if (0 == n && t.Level > 0)
                                            for (var l = 0; l < e.Attrs.length; l++) {
                                                var d = e.Attrs[l].Items[0];
                                                o[d] ? o[d] += e.Attrs[l].Items[t.Level] : o[d] = e.Attrs[l].Items[t.Level]
                                            }
                                    }
                                }
                        }), o) {
                        var i = {
                            attrId: Number(r),
                            attrvalue: o[r]
                        };
                        n.push(i)
                    }
                    t.AttrArray = n, e.push(t), l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonTotalAttrPanel.Path, e)
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(y.default)], t.prototype, "AsyncLayout", void 0), i([I(cc.Button)], t.prototype, "AttrButton", void 0), i([I(cc.Label)], t.prototype, "AttrLabel", void 0), i([I(cc.Button)], t.prototype, "BackButton", void 0), i([m], t)
            }(l.BaseUIFullScreenPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/AsyncLayout": "AsyncLayout",
        "./NewPersonalityCardComponent": "NewPersonalityCardComponent"
    }],
    NewPersonalitySuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d25f2YD7ydM57gFN+XpYjcP", "NewPersonalitySuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../Components/HolyStatueAttrItem"),
            p = e("../../Auxiliary/EventKeys"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.TitleMulti = null, t.AttrLabel = null, t.AttrContent = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("StarTemplePanel/Private/StarOperateDetailAttrItem", cc.Prefab)];
                                case 1:
                                    return t._attrPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrLabel.string = "upgrade_attr".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._attrData = t[0], this._type = t[1]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), 1 != this._type ? [3, 2] : (n = c.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng2/active_success"), t = this.TitleMulti, [4, this.LoadDynamicAsset(n, cc.SpriteFrame)]);
                                case 1:
                                    return t.spriteFrame = r.sent(), [3, 4];
                                case 2:
                                    return 2 != this._type ? [3, 4] : (n = c.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng2/upGrade_success"), o = this.TitleMulti, [4, this.LoadDynamicAsset(n, cc.SpriteFrame)]);
                                case 3:
                                    o.spriteFrame = r.sent(), r.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t)
                        for (var n in this._attrData.AddAttrs) {
                            var o = cc.instantiate(this._attrPrefab);
                            o.parent = this.AttrContent;
                            var r = o.getComponent(u.default),
                                i = [Number(n), this._attrData.CurAttrs[n]],
                                a = [Number(n), this._attrData.AddAttrs[n]];
                            r.SetUI(i, a, void 0, !0)
                        }
                }, t.prototype.onDestroy = function() {
                    1 == this._type && l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_NEWPERSONALITY_ACTIVE_GUIDE, !0)
                }, i([f(cc.Sprite)], t.prototype, "TitleMulti", void 0), i([f(cc.Label)], t.prototype, "AttrLabel", void 0), i([f(cc.Node)], t.prototype, "AttrContent", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/HolyStatueAttrItem": "HolyStatueAttrItem"
    }],
    NewPersonalitySummonComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "47984jrpEBGE4ReOCSMQykJ", "NewPersonalitySummonComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../Components/ItemComponent"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Components/DataCenter"),
            g = e("./NewPersonalitySummonPanel"),
            m = e("../../Auxiliary/DataUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeadSprite = null, t.Level = null, t.ItemNode = null, t.Tag = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.GoButton = null, t.GoLabel = null, t.ReeceiveMaskNode = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ReceiveLabel.string = "receive".ToUILocale(), this.GoLabel.string = "task_goto".ToUILocale()
                }, t.prototype.onEnable = function() {
                    this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this), this.GoButton.node.on("click", this.OnGoButtonClick, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.ReceiveButton.node.off("click", this.OnReceiveButtonClick, this), this.GoButton.node.off("click", this.OnGoButtonClick, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    this._data = e, this.Level.string = e.RewardData.Score.toString(), this.SetHeadSprite(), this.SetItemNodes(), this.SetState()
                }, t.prototype.SetHeadSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._headSprite ? [3, 2] : (e = g.default.GetItemIdByNewPersonalityId(this._data.BaseConfig.Id)) ? (t = m.default.Instance.GetItemPathById(e), [4, l.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)]) : [2];
                                case 1:
                                    if (n = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._headSprite = n, this._loadAssets.push(n), this.HeadSprite.spriteFrame = n, o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetItemNodes = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._loadAssets.push(e), n.label = 2;
                                case 2:
                                    return this._itemComponent || ((t = cc.instantiate(this._itemPrefab)).parent = this.ItemNode, t.y = -20, this._itemComponent = t.getComponent(p.ItemComponent)), this._itemComponent.node.active = !0, this._itemComponent.Init({
                                        ItemId: this._data.RewardData.Rewards[0].Items[0],
                                        Count: this._data.RewardData.Rewards[0].Items[1]
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.SetState = function() {
                    var e = y.DataCenter.Instance.GetDataById(c.NewPersonality_Model, this._data.BaseConfig.Id);
                    this.Tag.active = e && e.Level >= this._data.RewardData.Score, this.ReceiveButton.node.active = e && e.Level >= this._data.RewardData.Score && (!e.LevelRewards || e.LevelRewards < this._data.RewardData.Score), this.GoButton.node.active = !e || e.Level < this._data.RewardData.Score, this.ReeceiveMaskNode.active = e && e.LevelRewards >= this._data.RewardData.Score
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = new c.Req_Activity_CommonRewards;
                    e.ActivityId = this._data.ActivityId, u.RpcComponent.Instance.Call(e, function(e) {
                        e.Rewards && e.Rewards.length > 0 && f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnGoButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(d.PanelConfig.NewPersonalityInfoPanel.Path, this._data.BaseConfig, this._data.BaseConfig.PersonalityIds[1])
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(p.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._headSprite = null
                }, i([C(cc.Sprite)], t.prototype, "HeadSprite", void 0), i([C(cc.Label)], t.prototype, "Level", void 0), i([C(cc.Node)], t.prototype, "ItemNode", void 0), i([C(cc.Node)], t.prototype, "Tag", void 0), i([C(cc.Button)], t.prototype, "ReceiveButton", void 0), i([C(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([C(cc.Button)], t.prototype, "GoButton", void 0), i([C(cc.Label)], t.prototype, "GoLabel", void 0), i([C(cc.Node)], t.prototype, "ReeceiveMaskNode", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./NewPersonalitySummonPanel": "NewPersonalitySummonPanel"
    }],
    NewPersonalitySummonPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a1595d3l4pEJaQncYw1SPjl", "NewPersonalitySummonPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("./NewPersonalityToggleComponent"),
            m = e("../Components/ItemComponent"),
            I = e("../../../Consts/Etc"),
            _ = e("../../../Util/TimeUtil"),
            C = e("./NewPersonalitySummonComponent"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("./BuyAndSellItemPanel"),
            S = e("./CommonRatePanel"),
            w = e("./NewPersonalityHintComponent"),
            P = e("../../RedDot/RedDotManager"),
            A = e("../Components/CustomProgressBar"),
            T = e("../../Auxiliary/GameRecord"),
            R = e("../../../InteractiveSpine/InteractiveSpineController"),
            L = e("../Components/CustomLayout"),
            k = e("./NewPersonalityInfoPanel"),
            O = e("../../../ShareConsts/EnumType"),
            M = cc._decorator,
            D = M.ccclass,
            B = M.property,
            N = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.RuleButton = null, t.Title = null, t.TimeDesc = null, t.CountDown = null, t.CurrencyBarItem = null, t.NewPersonalityNode = null, t.ToggleScrollView = null, t.ToggleContent = null, t.NewPersonalityName = null, t.GiftButton = null, t.GiftLabel = null, t.RateButton = null, t.RateLabel = null, t.HintButton = null, t.HintLabel = null, t.HideButton = null, t.HideLabel = null, t.ShowButton = null, t.ShowLabel = null, t.SummonNode = null, t.RewardNode = null, t.ItemNode = null, t.LimitRichText = null, t.ProgressBar = null, t.ProgressLabel = null, t.LevelUpButton = null, t.LevelUpLabel = null, t.AutoButton = null, t.AutoLabel = null, t.AutoCurrencyBarItem = null, t.SummonOneButton = null, t.SummonOneLabel = null, t.SummonOneTimeLabel = null, t.SummonOneCurrencyBarItem = null, t.SummonTenButton = null, t.SummonTenLabel = null, t.SummonTenCurrencyBarItem = null, t.LevelLabel = null, t.RewardScrollView = null, t.RewardContent = null, t.BackButton = null, t.HintPageMaskNode = null, t.CustomLayout = null, t.HintBg = null, t.TalkLabel = null, t.TalkNode = null, t.TopBgNode = null, t.HeadSprite = null, t.HeadLv = null, t.NameBgNode = null, t.HideNodes = [], t.LevelUpReddot = null, t.WarmingUpCountingDownRoot = null, t.WarmingUpCountingDownRichText = null, t.HeaderTimeLeftRoot = null, t.HeaderCurrencyBarRoot = null, t.HintRedDot = null, t._summonComponents = [], t._isHide = !1, t._activityConfigs = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(v.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(v.EventKeys.EVENT_IS_ENTRY_COMPLETED, this.OnEntryCompleted, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(v.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnCustomLayoutRefresh, this), l.Game.EventDispatcher.On(v.EventKeys.EVENT_IS_ENTRY_COMPLETED, this.OnEntryCompleted, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a, l = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("NewPersonalityPanel/Components/NewPersonalityToggleComponent", cc.Prefab), n = this.LoadDynamicAsset("NewPersonalityPanel/PNG/NewPersonality", cc.SpriteAtlas), o = this.LoadDynamicAsset("NewPersonalitySummonPanel/PNG/NewPersonalitySummon", cc.SpriteAtlas), r = this.LoadDynamicAsset("NewPersonalitySummonPanel/Components/NewPersonalitySummonComponent", cc.Prefab), i = this.LoadDynamicAsset("NewPersonalityPanel/Components/NewPersonalityHintComponent", cc.Prefab), a = this.LoadDynamicAsset("ISCommonEditor/InteractiveSpineController", cc.Prefab), [4, Promise.all([t, n, o, r, i, a]).then(function(e) {
                                        l._togglePrefab = e[0], l._atlas = e[1], l._summonAtlas = e[2], l._summonPrefab = e[3], l._hintPrefab = e[4], l._interactiveSpinePrefab = e[5]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._defaultNameRootPositionY = cc.find("Bottom/nameBg", this.node).y, this._warmingUpNameRootPositionY = cc.find("Bottom/WarmUpNameBgPosition", this.node).y, this.GiftLabel.string = "LuckyDraw_pack".ToUILocale(), this.RateLabel.string = "ratepanel_tittle".ToUILocale(), this.HintLabel.string = "hint".ToUILocale(), this.LevelUpLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), this.AutoLabel.string = "auto_summon".ToUILocale(), this.SummonTenLabel.string = "summon_times".ToUILocale().Fmt(10), this.TimeDesc.string = "activity_remain_time".ToUILocale(), this.HideLabel.string = "newPersonality_hideUI".ToUILocale(), this.ShowLabel.string = "newPersonality_showUI".ToUILocale(), this.SummonOneButton.node.on("click", this.OnSummonOneButtonClick, this), this.SummonTenButton.node.on("click", this.OnSummonTenButtonClick, this), this.AutoButton.node.on("click", this.OnAutoButtonClick, this), this.LevelUpButton.node.on("click", this.OnLevelUpButtonClick, this), this.HideButton.node.on("click", this.OnHideButtonClick, this), this.ShowButton.node.on("click", this.OnShowButtonClick, this), this.HintButton.node.on("click", this.OnHintButtonClick, this), this.RateButton.node.on("click", this.OnRateButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.HintPageMaskNode.on(cc.Node.EventType.TOUCH_END, this.OnPageMaskNodeTouch, this), this.HintBg.spriteFrame = this._atlas.getSpriteFrame("hintBg");
                    var t = cc.instantiate(this._interactiveSpinePrefab);
                    t.parent = this.NewPersonalityNode, this._interactiveSpineController = t.getComponent(R.default)
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t);
                    var o = t[0];
                    this._activityConfig = u.DataCenter.Instance.ActivityConfigs[o], this.Title.string = this._activityConfig.Common.Title, this._deadLine = y.default.Instance.ComputeExtraShowDeadTime(this._activityConfig.Common), this._baseConfig = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonalityBase_Config, this._activityConfig.CustomPart.Sid), this._selectIndex = 0, this._consumeId = this._activityConfig.__CommonSummon[0].ConsumeItem[0].Items[0], this._activityConfig.__CommonSummon.forEach(function(e) {
                        1 == e.SummonCount ? (n._consumeCountOne = e.ConsumeItem[0].Items[1], n._commonSummonOneId = e.Id) : 10 == e.SummonCount && (n._consumeCountTen = e.ConsumeItem[0].Items[1], n._commonSummonTenId = e.Id)
                    }), this.ToggleContent.children.length > 0 && (this.ToggleContent.children[this._selectIndex].getComponent(cc.Toggle).isChecked = !0)
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.PreloadByData.call(this), this.SetNewPersonalityNode(), this.SetSkinNameSprite(), this.SetHeadSprite(), [2]
                        })
                    })
                }, t.prototype.SetNewPersonalityNode = function() {
                    var e, t = this._baseConfig.PersonalityIds[this._selectIndex],
                        o = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonality_Config, t),
                        r = n.GetDailyShow(this._activityConfig._id);
                    r || (n.SetDailyShow(this._activityConfig._id), this.OnHideButtonClick()), this._interactiveSpineController ? Number(this._interactiveSpineController.name) != t && (this.NewPersonalityNode.destroyAllChildren(), this._interactiveSpineController = null, (e = cc.instantiate(this._interactiveSpinePrefab)).parent = this.NewPersonalityNode, e.name = t.toString(), this._interactiveSpineController = e.getComponent(R.default)) : ((e = cc.instantiate(this._interactiveSpinePrefab)).parent = this.NewPersonalityNode, e.name = t.toString(), this._interactiveSpineController = e.getComponent(R.default)), this._interactiveSpineController.Init(o.AvatarId, this.NewPersonalityNode, {
                        NeedEntryAnimation: !r
                    }), this._interactiveSpineController.SetTalkLabel(this.TalkLabel, this.TalkNode), this._interactiveSpineController.SetCustomConditionCallback(this.CheckMotionIsUnlock.bind(this))
                }, t.prototype.CheckMotionIsUnlock = function(e, t) {
                    var n = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id),
                        o = this._baseConfig.PersonalityIds[this._selectIndex],
                        r = this._baseConfig.PersonalityIds.indexOf(o),
                        i = k.default.GetActionConfigByMotion(e, t);
                    if (r > 0 && !(n && n.Map && n.Map[o])) return !1;
                    if (!i || !i.Condition || !i.Condition.length) return !0;
                    for (var a = n && n.Level ? n.Level : 0, s = !0, l = 0; l < i.Condition.length; l++) {
                        var c = i.Condition[l],
                            d = c.Items[0],
                            h = c.Items[1];
                        switch (d) {
                            case 1:
                                a < h && (s = !1)
                        }
                    }
                    return !!s
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetCountDown(), this.schedule(this.SetCountDown, 1), this.SetToggleContent()), this.SetTopItem(), this.SetBottomNode(), this.SetNameBgNode(), this.SetReddot(), this.RefreshHintRedDot()
                }, t.prototype.SetCountDown = function() {
                    var e = u.RpcComponent.Instance.ServerTime,
                        t = this._deadLine - e;
                    t < 0 ? (this.unschedule(this.SetCountDown), l.UIManager.Instance.BackUIPanel()) : this.CountDown.string = y.default.ActivityTimeLeftFormat(t)
                }, t.prototype.SetNameBgNode = function() {
                    var e = y.default.Instance.GetActivityWarmingUpTimeLeftTSS(this._activityConfig.Common);
                    this.NameBgNode.y = e > 0 ? this._warmingUpNameRootPositionY : 0 == this._selectIndex ? 735 : 952
                }, t.prototype.SetTopItem = function() {
                    this.CurrencyBarItem.Init(this._consumeId), this.CurrencyBarItem.SetClickCallBack(this.OnGiftButtonClick.bind(this))
                }, t.prototype.SetSkinNameSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = this._baseConfig.PersonalityIds[this._selectIndex], [4, this.LoadDynamicAsset(u.GlobalConfigComponent.GetMultilangKey("MultilangHeroName/NewPersonality_" + e), cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this.NewPersonalityName.spriteFrame = t, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetHeadSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return (e = n.GetItemIdByNewPersonalityId(this._baseConfig.Id)) ? (t = y.default.Instance.GetItemPathById(e), [4, this.LoadDynamicAsset(t, cc.SpriteFrame)]) : [2];
                                case 1:
                                    return o = r.sent(), this.HeadSprite.spriteFrame = o, [2]
                            }
                        })
                    })
                }, t.prototype.GetShowToggleIds = function() {
                    var e = this,
                        t = [],
                        n = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id);
                    return this._baseConfig.PersonalityIds.forEach(function(o, r) {
                        r ? r == e._activityConfig.CustomPart.Index && (n && n.ActIds && n.ActIds[r - 1] && n.ActIds[r - 1] != e._activityConfig._id || t.push(o)) : t.push(o)
                    }), t
                }, t.prototype.SetToggleContent = function() {
                    var e = this.GetShowToggleIds();
                    if (this.ToggleScrollView.node.active = e.length > 1 && !this._isHide, this.ToggleScrollView.enabled = e.length > 3 && !this._isHide, e.length <= 3 && (this.ToggleContent.x = 0), e.length > 1)
                        for (var t = 0; t < e.length; t++) {
                            var n = e[t],
                                o = cc.instantiate(this._togglePrefab);
                            o.parent = this.ToggleContent, o.name = t.toString(), o.on("toggle", this.OnToggleClick, this), o.getComponent(g.default).Init(n, this._baseConfig)
                        }
                    this.HideButton.node.active = !this._isHide, this.ShowButton.node.active = this._isHide
                }, t.prototype.SetBottomNode = function() {
                    y.default.Instance.GetActivityWarmingUpTimeLeftTSS(this._activityConfig.Common) > 0 ? (this.SummonNode.active = !1, this.RewardNode.active = !1, this.WarmingUpCountingDownRoot.active = 0 == this._selectIndex && !this._isHide, this.HeaderTimeLeftRoot.active = !1, this.HeaderCurrencyBarRoot.active = !1, this.RateButton.node.active = !1, this.GiftButton.node.active = !1, this.NameBgNode.y = this._warmingUpNameRootPositionY, this.UpdateWarmingUpCountingDown(), this.schedule(this.UpdateWarmingUpCountingDown, 1)) : (this.unschedule(this.UpdateWarmingUpCountingDown), this.SummonNode.active = 0 == this._selectIndex && !this._isHide, this.RewardNode.active = this._selectIndex > 0 && !this._isHide, this.RateButton.node.active = !this._isHide && 0 == this._selectIndex, this.WarmingUpCountingDownRoot.active = !1, this.HeaderTimeLeftRoot.active = !0, this.HeaderCurrencyBarRoot.active = !0, this.GiftButton.node.active = !this._isHide, this.NameBgNode.y = 0 == this._selectIndex ? 735 : 952, 0 == this._selectIndex ? this.SetSummonNode() : this.SetRewardNode())
                }, t.prototype.UpdateWarmingUpCountingDown = function() {
                    var e = y.default.Instance.GetActivityWarmingUpTimeLeftTSS(this._activityConfig.Common),
                        t = "newPersonality_summon_warmup_countingdown".ToUILocale(),
                        n = y.default.ActivityTimeLeftFormat(1e3 * e);
                    this.WarmingUpCountingDownRichText.string = "<outline width=3 color=#202434><color=#ffffff>" + t + "</c><color=#6eeea7>" + n + "</c></outline>", e <= 0 && (this.unschedule(this.UpdateWarmingUpCountingDown), this.SetBottomNode())
                }, t.prototype.SetReddot = function() {
                    var e = this;
                    P.RedDotManager.Instance.BindInstance(this.SummonOneButton.node, P.RedDotManager.Instance.InstanceRedDot.NewPersonalitySummonOneBtn, {
                        Value1: this._activityConfig._id
                    }), this.ToggleContent.children.forEach(function(t, n) {
                        var o, r = t.getComponent(g.default),
                            i = {};
                        if (i.Value1 = e._activityConfig._id, n) o = P.RedDotManager.DataHandler.RefreshNewPersonalityRewardToggle(i);
                        else {
                            var a = {};
                            a.Value1 = e._baseConfig.Id;
                            var s = P.RedDotManager.DataHandler.RefreshNewPersonalitySummonOneBtn(i),
                                l = P.RedDotManager.DataHandler.RefreshNewPersonalitySummonJumpBtn(a);
                            o = s || l
                        }
                        r.SetReddotActive(o)
                    })
                }, t.prototype.SetSummonNode = function() {
                    this._summonData = y.default.Instance.GetActivitySummonData(this._activityConfig._id), this.SetFinalReward(), this.SetProgressInfoNode(), this.SetSummonButtons()
                }, t.prototype.SetFinalReward = function() {
                    var e = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id),
                        t = e && e.Level ? e.Level : 0;
                    this.HeadLv.string = t.toString()
                }, t.prototype.GetGuaranteedCount = function() {
                    var e = this._activityConfig.__SummonType[0].Libs[0].Items[1];
                    return this._activityConfig.__RandomLib.find(function(t) {
                        return t.Id == e
                    }).MaxCount
                }, t.prototype.SetProgressInfoNode = function() {
                    var e, t;
                    this.LimitRichText.string = "newPersonality_summon_limit".ToUILocale();
                    var n = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id),
                        o = n && n.Map && !!n.Map[this._baseConfig.PersonalityIds[0]],
                        r = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonality_Config, this._baseConfig.PersonalityIds[0]);
                    if (o ? n.Level == this._baseConfig.Attrs[0].Items.length - 1 ? e = -1 : (e = this._baseConfig.Materials[0].Items[n.Level], t = this._baseConfig.Materials[0].Items[0]) : (e = r.Materials[0].Items[1], t = r.Materials[0].Items[0]), -1 == e) this.ProgressBar.progress = 1, this.ProgressLabel.string = "newPersonality_maxLevel".ToUILocale(), this.LevelUpReddot.active = !1;
                    else {
                        var i = u.DataCenter.Instance.GetItemCount(t);
                        this.ProgressBar.progress = i / e, this.ProgressLabel.string = i + "/" + e, this.LevelUpReddot.active = i / e >= 1
                    }
                }, t.prototype.SetSummonButtons = function() {
                    this.AutoCurrencyBarItem.Init(this._consumeId), this.AutoCurrencyBarItem.SetFixedWidth(224), this.SummonOneCurrencyBarItem.Init(this._consumeId, !1, null, this._consumeCountOne), this.SummonOneCurrencyBarItem.SetFixedWidth(224), this.SummonTenCurrencyBarItem.Init(this._consumeId, !1, null, this._consumeCountTen), this.SummonTenCurrencyBarItem.SetFixedWidth(224);
                    var e = this._activityConfig.__SummonType[0].StartFreeCount;
                    this.SummonOneLabel.string = e > 0 && this._summonData[1] > 0 ? "shop_buyFree".ToUILocale() : "summon_times".ToUILocale().Fmt(1), this.SummonOneTimeLabel.node.active = !this._summonData[1] && e > 0, !this._summonData[1] && e > 0 && (this.unschedule(this.SetFreeCountDown), this.SetFreeCountDown(), this.schedule(this.SetFreeCountDown, 1))
                }, t.prototype.SetFreeCountDown = function() {
                    var e = u.RpcComponent.Instance.ServerTime,
                        t = I.Etc.DayDuration - (e - _.TimeUtil.Get0ClockTs(e));
                    this.SummonOneTimeLabel.string = "newPersonality_summon_free".ToUILocale().Fmt(y.default.ActivityTimeLeftFormat(t))
                }, t.prototype.SetRewardNode = function() {
                    var e = this,
                        t = this._activityConfig.__Rewards[this._activityConfig.__Rewards.length - 1].Score;
                    this.LevelLabel.string = t.toString(), this._summonComponents.forEach(function(e) {
                        e.node.active = !1
                    }), this._activityConfig.__Rewards.forEach(function(t, n) {
                        if (!e._summonComponents[n]) {
                            var o = cc.instantiate(e._summonPrefab);
                            o.parent = e.RewardContent, e._summonComponents[n] = o.getComponent(C.default)
                        }
                        e._summonComponents[n].node.active = !0;
                        var r = {};
                        r.ActivityId = e._activityConfig._id, r.RewardData = t, r.BaseConfig = e._baseConfig, e._summonComponents[n].Init(r)
                    }), this._activityConfig.__Rewards.length > 4 && this.RewardScrollView.scrollToLeft()
                }, t.prototype.OnCustomLayoutRefresh = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(w.default).Init(n._datas[t])
                    })
                }, t.prototype.OnEntryCompleted = function() {
                    this._isHide = !1, this.SetUIActive()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t)
                }, t.prototype.OnToggleClick = function(e) {
                    var t = Number(e.node.name);
                    if (this._selectIndex != t) {
                        this._selectIndex = t, this.SetNewPersonalityNode(), this.SetBottomNode(), this.SetNameBgNode(), this.SetSkinNameSprite();
                        var n = y.default.Instance.GetActivityWarmingUpTimeLeftTSS(this._activityConfig.Common);
                        this.RateButton.node.active = !(n > 0 || this._isHide || 0 != this._selectIndex)
                    }
                }, t.prototype.OnSummonOneButtonClick = function() {
                    if (this._activityConfig.__SummonType[0].StartFreeCount && this._summonData[1]) this.RequestSummon(this._commonSummonOneId, !0);
                    else {
                        if (!u.DataCenter.Instance.IsItemEnough(this._consumeId, this._consumeCountOne)) return void this.OnGiftButtonClick();
                        this.RequestSummon(this._commonSummonOneId)
                    }
                }, t.prototype.OnSummonTenButtonClick = function() {
                    u.DataCenter.Instance.IsItemEnough(this._consumeId, this._consumeCountTen) ? this.RequestSummon(this._commonSummonTenId) : this.OnGiftButtonClick()
                }, t.prototype.RequestSummon = function(e, t) {
                    var n = this;
                    void 0 === t && (t = !1);
                    var o = new p.Req_Activity_CommonSummon;
                    o.Type = e, o.ItemId = t ? 0 : this._consumeId, o.ActivityId = this._activityConfig._id, o.Count = 1, u.RpcComponent.Instance.Call(o, function(e) {
                        if (e.Items && e.Items.length > 0) {
                            var t = [];
                            e.Items.forEach(function(e) {
                                var o = 0 == e.Items[0] ? n._activityConfig.CustomPart.RewardId : e.Items[0];
                                t.push({
                                    ItemId: o,
                                    Count: e.Items[1]
                                })
                            }), f.UIUtlity.ShwDisplayRewardPanel(t, null, null, !0)
                        }
                    })
                }, t.prototype.OnAutoButtonClick = function() {
                    var e = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit"),
                        t = u.DataCenter.Instance.GetItemCount(this._consumeId);
                    if (t >= this._consumeCountOne) {
                        var n = Math.floor(t / this._consumeCountOne),
                            o = n > e ? e : n;
                        this.DisplayUseItemPanel(o)
                    } else this.OnGiftButtonClick()
                }, t.prototype.DisplayUseItemPanel = function(e) {
                    var t = {};
                    t.UseItemId = this._consumeId, t.Title = "use".ToUILocale(), t.MaxCount = e, t.PerItemCount = this._consumeCountOne, t.Callback = this.RequestAutoSummon.bind(this), t.BuyOrSaleCount = e, l.UIManager.Instance.ShowUIPanel(h.PanelConfig.BuyAndSellItemPanel.Path, null, null, null, b.BuyAndSellType.Use, null, null, t)
                }, t.prototype.RequestAutoSummon = function(e) {
                    if (!y.default.CheckActivityIsEnd(this._activityConfig.Common, !0)) {
                        var t = new p.Req_Activity_CommonSummon;
                        t.Type = this._commonSummonOneId, t.ItemId = this._consumeId, t.ActivityId = this._activityConfig._id, t.Count = e, u.RpcComponent.Instance.Call(t, this.RequestAutoSummonSuccess.bind(this))
                    }
                }, t.prototype.RequestAutoSummonSuccess = function(e) {
                    var t = this;
                    if (e.Items && e.Items.length > 0) {
                        var n = [];
                        e.Items.forEach(function(e) {
                            var o = 0 == e.Items[0] ? t._activityConfig.CustomPart.RewardId : e.Items[0];
                            n.push({
                                ItemId: o,
                                Count: e.Items[1]
                            })
                        }), f.UIUtlity.ShwDisplayRewardPanel(n, null, null, !0)
                    }
                }, t.prototype.OnLevelUpButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.NewPersonalityInfoPanel.Path, this._baseConfig, this._baseConfig.PersonalityIds[0])
                }, t.prototype.OnHideButtonClick = function() {
                    this._isHide = !0, this.SetUIActive()
                }, t.prototype.OnShowButtonClick = function() {
                    this._isHide = !1, this.SetUIActive()
                }, t.prototype.SetUIActive = function() {
                    var e = this,
                        t = this.GetShowToggleIds();
                    this.ToggleScrollView.node.active = !this._isHide && t.length > 1;
                    var n = y.default.Instance.GetActivityWarmingUpTimeLeftTSS(this._activityConfig.Common);
                    n > 0 ? (this.SummonNode.active = !1, this.RewardNode.active = !1, this.WarmingUpCountingDownRoot.active = !this._isHide, this.HeaderTimeLeftRoot.active = !1, this.HeaderCurrencyBarRoot.active = !1, this.RateButton.node.active = !1, this.GiftButton.node.active = !1, this.NameBgNode.y = this._warmingUpNameRootPositionY) : (this.SummonNode.active = !this._isHide && 0 == this._selectIndex, this.RewardNode.active = !this._isHide && this._selectIndex > 0, this.WarmingUpCountingDownRoot.active = !1, this.HeaderTimeLeftRoot.active = !0, this.HeaderCurrencyBarRoot.active = !0, this.RateButton.node.active = !this._isHide && 0 == this._selectIndex, this.GiftButton.node.active = !this._isHide, this.NameBgNode.y = 0 == this._selectIndex ? 735 : 952), this.TopBgNode.active = !this._isHide, this.NameBgNode.active = !this._isHide, this.HideButton.node.active = !this._isHide, this.ShowButton.node.active = this._isHide, this.BackButton.node.active = !this._isHide, this.HideNodes.forEach(function(t) {
                        "GiftButton" === t.name ? t.active = n <= 0 && !e._isHide : t.active = !e._isHide
                    })
                }, t.prototype.OnHintButtonClick = function() {
                    this.SetHintPage(), this.SetHintRedDot()
                }, t.prototype.SetHintPage = function() {
                    var e = this;
                    this._datas = [], this._baseConfig.PersonalityIds.forEach(function(t, n) {
                        for (var o = u.ConfigDataComponent.Instance.GetConfigById(c.NewPersonality_Config, t), r = 0; r < o.ActionIds.length; r++) {
                            var i = {};
                            i.ActionId = o.ActionIds[r], i.BaseConfig = e._baseConfig, i.IsSpecial = n > 0, i.PersonalityId = o.Id, e._datas.push(i)
                        }
                    }), this.HintPageMaskNode.active = !0, this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._initCustomLayout || (this._initCustomLayout = !0, this.CustomLayout.Init(this._hintPrefab)), this.CustomLayout.RenderLayOut(this._datas.length)
                }, t.prototype.OnRateButtonClick = function() {
                    for (var e = this._activityConfig.__CommonSummon[0].ShowLibs[0].Items[0], t = this._activityConfig.__ShowChance.find(function(t) {
                            return t.Id == e
                        }).ShowLib, n = [], o = 0; o < t.length; o++) {
                        n[o] = new c.IntArray_Config, n[o].Items = [];
                        for (var r = 0; r < t[o].Items.length; r++) n[o].Items[r] = t[o].Items[r]
                    }
                    n[0].Items[0] = this._activityConfig.CustomPart.RewardId, l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonRatePanel.Path, S.ShowRateType.NewPersonality, n)
                }, t.prototype.OnGiftButtonClick = function() {
                    var e = this._activityConfig.Common.ShowImage.split("|"),
                        t = {
                            ActivityId: this._activityConfig._id,
                            ActivityGiftPackData: this._activityConfig._Packs,
                            Deadline: y.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                            BannerPath: e[0],
                            Title: "LuckyDraw_pack".ToUILocale()
                        };
                    l.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnPageMaskNodeTouch = function() {
                    this.HintPageMaskNode.active = !1
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "newPersonality_summon_rule_title".ToUILocale(),
                        titles: ["newPersonality_summon_rule_sub_title".ToUILocale()],
                        contents: ["newPersonality_summon_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.GetDailyShow = function(e) {
                    var t = T.default.GetItem(T.GameRecordDefine.NewPersonalityLoginShow);
                    if (!t) return !1;
                    var n = JSON.parse(t);
                    return !(!n || !n[e.toString()])
                }, t.SetDailyShow = function(e) {
                    var t, n = T.default.GetItem(T.GameRecordDefine.NewPersonalityLoginShow);
                    (t = n ? JSON.parse(n) : {})[e.toString()] = 1, T.default.SetItem(T.GameRecordDefine.NewPersonalityLoginShow, JSON.stringify(t))
                }, t.GetItemIdByNewPersonalityId = function(e) {
                    return n.NewPersonalityBaseIdToItemId || (n.NewPersonalityBaseIdToItemId = {}, u.ConfigDataComponent.Instance.GetArrayConfig(c.ItemPiece_Config).forEach(function(e) {
                        e.SubType == O.ItemPieceType.NewPersonality && e.CardId > 0 && (n.NewPersonalityBaseIdToItemId[e.CardId] = e.Id)
                    })), n.NewPersonalityBaseIdToItemId[e]
                }, t.prototype.SetHintRedDot = function() {
                    if (this._baseConfig.NeedHintRedDot && 0 != this.HintRedDot.active) {
                        var e, t = T.default.GetItem(T.GameRecordDefine.NewPersonalityHintRedDot);
                        (e = t ? JSON.parse(t) : {})[this._baseConfig.Id] = 1, T.default.SetItem(T.GameRecordDefine.NewPersonalityHintRedDot, JSON.stringify(e)), this.RefreshHintRedDot()
                    }
                }, t.prototype.RefreshHintRedDot = function() {
                    if (this.HintRedDot.active = !1, this._baseConfig.NeedHintRedDot && this.IsModelActive()) {
                        var e = T.default.GetItem(T.GameRecordDefine.NewPersonalityHintRedDot);
                        e && JSON.parse(e)[this._baseConfig.Id] || (this.HintRedDot.active = !0)
                    }
                }, t.prototype.IsModelActive = function() {
                    var e = u.DataCenter.Instance.GetDataById(p.NewPersonality_Model, this._baseConfig.Id),
                        t = this._baseConfig.PersonalityIds[this._selectIndex];
                    return e && e.Map && e.Map[t]
                }, i([B(cc.Button)], t.prototype, "RuleButton", void 0), i([B(cc.Label)], t.prototype, "Title", void 0), i([B(cc.Label)], t.prototype, "TimeDesc", void 0), i([B(cc.Label)], t.prototype, "CountDown", void 0), i([B(d.default)], t.prototype, "CurrencyBarItem", void 0), i([B(cc.Node)], t.prototype, "NewPersonalityNode", void 0), i([B(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([B(cc.Node)], t.prototype, "ToggleContent", void 0), i([B(cc.Sprite)], t.prototype, "NewPersonalityName", void 0), i([B(cc.Button)], t.prototype, "GiftButton", void 0), i([B(cc.Label)], t.prototype, "GiftLabel", void 0), i([B(cc.Button)], t.prototype, "RateButton", void 0), i([B(cc.Label)], t.prototype, "RateLabel", void 0), i([B(cc.Button)], t.prototype, "HintButton", void 0), i([B(cc.Label)], t.prototype, "HintLabel", void 0), i([B(cc.Button)], t.prototype, "HideButton", void 0), i([B(cc.Label)], t.prototype, "HideLabel", void 0), i([B(cc.Button)], t.prototype, "ShowButton", void 0), i([B(cc.Label)], t.prototype, "ShowLabel", void 0), i([B(cc.Node)], t.prototype, "SummonNode", void 0), i([B(cc.Node)], t.prototype, "RewardNode", void 0), i([B(cc.Node)], t.prototype, "ItemNode", void 0), i([B(cc.RichText)], t.prototype, "LimitRichText", void 0), i([B(A.default)], t.prototype, "ProgressBar", void 0), i([B(cc.Label)], t.prototype, "ProgressLabel", void 0), i([B(cc.Button)], t.prototype, "LevelUpButton", void 0), i([B(cc.Label)], t.prototype, "LevelUpLabel", void 0), i([B(cc.Button)], t.prototype, "AutoButton", void 0), i([B(cc.Label)], t.prototype, "AutoLabel", void 0), i([B(d.default)], t.prototype, "AutoCurrencyBarItem", void 0), i([B(cc.Button)], t.prototype, "SummonOneButton", void 0), i([B(cc.Label)], t.prototype, "SummonOneLabel", void 0), i([B(cc.RichText)], t.prototype, "SummonOneTimeLabel", void 0), i([B(d.default)], t.prototype, "SummonOneCurrencyBarItem", void 0), i([B(cc.Button)], t.prototype, "SummonTenButton", void 0), i([B(cc.Label)], t.prototype, "SummonTenLabel", void 0), i([B(d.default)], t.prototype, "SummonTenCurrencyBarItem", void 0), i([B(cc.Label)], t.prototype, "LevelLabel", void 0), i([B(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([B(cc.Node)], t.prototype, "RewardContent", void 0), i([B(cc.Button)], t.prototype, "BackButton", void 0), i([B(cc.Node)], t.prototype, "HintPageMaskNode", void 0), i([B(L.default)], t.prototype, "CustomLayout", void 0), i([B(cc.Sprite)], t.prototype, "HintBg", void 0), i([B(cc.Label)], t.prototype, "TalkLabel", void 0), i([B(cc.Node)], t.prototype, "TalkNode", void 0), i([B(cc.Node)], t.prototype, "TopBgNode", void 0), i([B(cc.Sprite)], t.prototype, "HeadSprite", void 0), i([B(cc.Label)], t.prototype, "HeadLv", void 0), i([B(cc.Node)], t.prototype, "NameBgNode", void 0), i([B(cc.Node)], t.prototype, "HideNodes", void 0), i([B(cc.Node)], t.prototype, "LevelUpReddot", void 0), i([B(cc.Node)], t.prototype, "WarmingUpCountingDownRoot", void 0), i([B(cc.RichText)], t.prototype, "WarmingUpCountingDownRichText", void 0), i([B(cc.Node)], t.prototype, "HeaderTimeLeftRoot", void 0), i([B(cc.Node)], t.prototype, "HeaderCurrencyBarRoot", void 0), i([B(cc.Node)], t.prototype, "HintRedDot", void 0), n = i([D], t)
            }(l.BaseUIFullScreenPanel);
        n.default = N, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../InteractiveSpine/InteractiveSpineController": "InteractiveSpineController",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./CommonRatePanel": "CommonRatePanel",
        "./NewPersonalityHintComponent": "NewPersonalityHintComponent",
        "./NewPersonalityInfoPanel": "NewPersonalityInfoPanel",
        "./NewPersonalitySummonComponent": "NewPersonalitySummonComponent",
        "./NewPersonalityToggleComponent": "NewPersonalityToggleComponent"
    }],
    NewPersonalityToggleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0b6bcguDO1CmoYPTgdy9sMD", "NewPersonalityToggleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../RedDot/RedDotManager"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Tag1 = null, t.Tag2 = null, t.ReddotNode = null, t.SelectTag = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._personalityId = e, this._baseConfig = t, this.SetTag()
                }, t.prototype.SetTag = function() {
                    this.Tag1.active = this._baseConfig.PersonalityIds[0] == this._personalityId, this.Tag2.active = this._baseConfig.PersonalityIds[0] != this._personalityId
                }, t.prototype.SetReddot = function() {
                    var e = {};
                    e.Value1 = this._baseConfig.Id, e.extra = this._personalityId;
                    var t = s.RedDotManager.DataHandler.RefreshNewPersonalityLevelUp(e);
                    this.ReddotNode.active = t
                }, t.prototype.SetReddotActive = function(e) {
                    this.ReddotNode.active = e
                }, t.prototype.SetSelectTagActive = function(e) {
                    this.SelectTag.active = e
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        a.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([u(cc.Node)], t.prototype, "Tag1", void 0), i([u(cc.Node)], t.prototype, "Tag2", void 0), i([u(cc.Node)], t.prototype, "ReddotNode", void 0), i([u(cc.Node)], t.prototype, "SelectTag", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../RedDot/RedDotManager": "RedDotManager"
    }],
    NewTopicActivityComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "08dbfbEeKVOXLqSOcTdi3MV", "NewTopicActivityComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../Consts/Etc"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Components/RpcComponent"),
            d = e("./ActivityBaseComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.WordSprite = null, t.TimeNode = null, t.TimeLabel = null, t.TimeValue = null, t._data = null, t._asset = [], t
                }
                return r(t, e), t.prototype.InitData = function(e) {
                    this._data = e, this.SetBgAndWord()
                }, t.prototype.SetBgAndWord = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return (e = this._data.BannerImage.split("|")).length > 1 ? [4, u.default.LoadActivityTexture(e[1])] : [3, 3];
                                case 1:
                                    return t = o.sent(), this.isValid ? (t && (this.WordSprite.spriteFrame = t), this._asset.push(t), [4, u.default.LoadActivityTexture(e[0])]) : (c.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    if (n = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this.Bg.spriteFrame = n, this._asset.push(n), o.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetTime = function(e, t, n) {
                    void 0 === t && (t = 0), null == e || n < p.RpcComponent.Instance.ServerTime ? this.TimeNode.active = !1 : (this._resetTime = e, this._showoffTime = n, this.TimeLabel.string = "gift_remainderTime".ToUILocale(), this.TimeNode.active = !0, this.TimeValueAssign(), this.schedule(this.TimeValueAssign, this._refreshInterval))
                }, t.prototype.TimeValueAssign = function() {
                    var e = this._resetTime - p.RpcComponent.Instance.ServerTime;
                    e > 0 ? (this._refreshInterval = e > l.Etc.DayDuration ? 600 : 1, this.TimeValue.string = u.default.ActivityTimeLeftFormat(e)) : p.RpcComponent.Instance.ServerTime < this._showoffTime ? (this.TimeLabel.string = "activityTime_show".ToUILocale() + "  ", this.TimeValue.string = u.default.ActivityTimeLeftFormat(this._showoffTime - p.RpcComponent.Instance.ServerTime)) : this.TimeNode.active = !1
                }, t.prototype.onDestroy = function() {
                    this._asset.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Sprite)], t.prototype, "Bg", void 0), i([y(cc.Sprite)], t.prototype, "WordSprite", void 0), i([y(cc.Node)], t.prototype, "TimeNode", void 0), i([y(cc.Label)], t.prototype, "TimeLabel", void 0), i([y(cc.Label)], t.prototype, "TimeValue", void 0), i([f], t)
            }(d.default);
        n.default = g, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/RpcComponent": "RpcComponent",
        "./ActivityBaseComponent": "ActivityBaseComponent"
    }],
    NewTopicActivityContent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "17305PNwN9NMKt/JrelGrEC", "NewTopicActivityContent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/DataCenter"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Components/Components"),
            y = e("./NewTopicActivityComponent"),
            g = e("./TimeLimitActivityContent"),
            m = e("./ActivityBaseContent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroNode = null, t.HeroAttrBG = null, t.HeroName = null, t.HeroTitle = null, t.HeroAttrIcon = null, t.ScrollView = null, t.ScrollNode = null, t.ArrowButton = null, t.SpBg = null, t._newTopicPrefab = null, t._showModel = null, t._heroAttrBg = null, t._canArrow = !1, t._canClickArrow = !0, t.offSetHeight = 215, t._activityNodes = [], t._assets = [], t
                }
                return r(t, e), t.prototype.update = function() {
                    this._canArrow ? Math.round(this.ScrollView.getScrollOffset().y) >= Math.round(this.ScrollView.getMaxScrollOffset().y) ? this.ArrowButton.node.active = !1 : this.ArrowButton.node.active = !0 : this.ArrowButton.node.active = !1
                }, t.prototype.Init = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a, m, I, _, C, v, b, S, w, P, A, T, R, L, k, O;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Init.call(this, t, !0, !0), this._canArrow = !1, this._newTopicPrefab ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/Component/NewTopicActivityComponent")];
                                case 1:
                                    if (n = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(n), [2];
                                    this._assets.push(n), this._newTopicPrefab = n, s.label = 2;
                                case 2:
                                    for (this._activityIdToNode = {}, o = 0; o < this._activityDatas.length; o++) this._activityNodes[o] || ((r = cc.instantiate(this._newTopicPrefab)).setParent(this.ScrollNode), r.on(cc.Node.EventType.TOUCH_END, this.OnModuleTouch, this), this._activityNodes[o] = r), i = h.default.Instance.ComputeExtraShowDeadTime(this._activityDatas[o].Common), a = h.default.Instance.ComputeDeadTime(this._activityDatas[o].Common), m = g.default.GetActivityTime(this._activityDatas[o].Common.Type, i, a, this._activityDatas[o]), i = m.showoffTime, a = m.deadTime, this._activityNodes[o].name = this._activityDatas[o]._id.toString(), (I = this._activityNodes[o].getComponent(y.default)).InitData(this._activityDatas[o].Common), I.SetTime(a, this._activityDatas[o].Common.Type, i), this._activityIdToNode[this._activityDatas[o]._id] = this._activityNodes[o];
                                    for (C in this._canArrow = !0, this._canClickArrow = !0, _ = [], this._activityIdToNode) _.push(C);
                                    v = 0, s.label = 3;
                                case 3:
                                    return v < _.length ? (b = _[v], S = Number.parseInt(b), [4, this.BindRedDot(c.DataCenter.Instance.ActivityConfigs[b].Common.Type, S)]) : [3, 6];
                                case 4:
                                    s.sent(), s.label = 5;
                                case 5:
                                    return v++, [3, 3];
                                case 6:
                                    return w = c.DataCenter.Instance.ActivityConfigs[this._frameConfig._id], !(P = h.default.GetActivityModelPath(w.CustomPart.NewRelevancy[0].Items)) || this._showModel ? [3, 8] : [4, u.AssetsManager.Instance.LoadAsset(P, cc.Prefab)];
                                case 7:
                                    if (A = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(A), [2];
                                    this._assets.push(A), this._showModel = cc.instantiate(A), this._showModel.setParent(this.HeroNode), s.label = 8;
                                case 8:
                                    return (T = h.default.GetTopActivityHeroId(w.CustomPart.NewRelevancy[0].Items)) ? (R = f.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, T), 1, L = R.CoreHero == p.CoreHeroTag.SP ? 2 : 6 == R.ElementType ? 6 : 1, this._heroAttrBg ? [3, 10] : [4, u.AssetsManager.Instance.LoadAsset("ActivityBanners/topicBanner" + L, cc.SpriteFrame)]) : [3, 11];
                                case 9:
                                    if (k = s.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(k), [2];
                                    this._heroAttrBg = k, this._assets.push(k), this.HeroAttrBG.spriteFrame = this._heroAttrBg, s.label = 10;
                                case 10:
                                    this.SpBg.node.active = R.CoreHero == p.CoreHeroTag.SP, R.CoreHero == p.CoreHeroTag.SP && (this.SpBg.spriteFrame = d.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame("spCricle")), O = d.UIUtlity.GetHeroElementIcon(R.ElementType), this.HeroAttrIcon.spriteFrame = O, this.HeroName.string = T.ToHeroName(), this.HeroTitle.string = T.ToHeroTitle(), s.label = 11;
                                case 11:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    e.prototype.onEnable.call(this), this.ArrowButton.node.on("click", this.ClickArrowButton, this)
                }, t.prototype.onDisable = function() {
                    e.prototype.onDisable.call(this), this.ArrowButton.node.off("click", this.ClickArrowButton, this)
                }, t.prototype.ClickArrowButton = function() {
                    var e = this;
                    if (this._canClickArrow) {
                        this._canClickArrow = !1;
                        var t = this.ScrollView.getScrollOffset(),
                            n = new cc.Vec2;
                        n.x = t.x, n.y = t.y + this.offSetHeight > this.ScrollView.getMaxScrollOffset().y ? this.ScrollView.getMaxScrollOffset().y : t.y + this.offSetHeight, this.ScrollView.scrollToOffset(n, .4), this.scheduleOnce(function() {
                            e._canClickArrow = !0
                        }, .4)
                    }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([C(cc.Node)], t.prototype, "HeroNode", void 0), i([C(cc.Sprite)], t.prototype, "HeroAttrBG", void 0), i([C(cc.Label)], t.prototype, "HeroName", void 0), i([C(cc.Label)], t.prototype, "HeroTitle", void 0), i([C(cc.Sprite)], t.prototype, "HeroAttrIcon", void 0), i([C(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([C(cc.Node)], t.prototype, "ScrollNode", void 0), i([C(cc.Button)], t.prototype, "ArrowButton", void 0), i([C(cc.Sprite)], t.prototype, "SpBg", void 0), i([_], t)
            }(m.default);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ActivityBaseContent": "ActivityBaseContent",
        "./NewTopicActivityComponent": "NewTopicActivityComponent",
        "./TimeLimitActivityContent": "TimeLimitActivityContent"
    }],
    NewWarTokenBuyItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c700a/YU/BBM7zefMWbJfvR", "NewWarTokenBuyItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemComponent"),
            s = e("../../Channel/ChannelManager"),
            l = e("../../Auxiliary/DataUtlity"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Tittle = null, t.TipsTop = null, t.TipsBottom = null, t.TotalScrollView = null, t.InstantlyScrollView = null, t.GradTotalItemGridLot = null, t.GradTotalItemGridLess = null, t.BuyNowItemGridLot = null, t.BuyNowItemGridLess = null, t.HasGotNode = null, t.BuyButton = null, t.BuyButtonLabel = null, t.AttainLabel = null, t.AttainValue = null, t.DiscountLabel = null, t.DiscountValue = null, t._nowGetItems = [], t._gradTotalItems = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.Init = function(e, t) {
                    this._base = e, this._index = t, this._giftPack = this._base.GiftPacks[t], this.SetFixUI(), this.SetGiftUI(), this.SetNowGetItems(), this.SetGradTotalItems(), this.RefreshState()
                }, t.prototype.SetFixUI = function() {
                    this.TipsTop.string = "climbTower_unlock_high_grandTotal".ToUILocale(), this.TipsBottom.string = "climbTower_unlock_high_buyNow".ToUILocale(), this.AttainLabel.string = "task_get_score_tag".ToUILocale()
                }, t.prototype.SetGiftUI = function() {
                    this.Tittle.string = this._base.Titles[this._index], this.AttainValue.string = "x" + this._giftPack.VipPoint, l.default.Instance.SetDisCount(this._giftPack.Discount, this.DiscountValue, this.DiscountLabel), this.BuyButtonLabel.string = 0 == this._giftPack.Money ? "shop_buyFree".ToUILocale() : s.default.Instance.CurrencySymbol + s.default.Instance.ExchangeMoney(this._giftPack.Money)
                }, t.prototype.SetGradTotalItems = function() {
                    var e = this._base.GradTotalReward[this._index],
                        t = 0;
                    for (var n in e) {
                        var o = parseInt(n),
                            r = this._gradTotalItems[t];
                        if (!r) {
                            var i = cc.instantiate(this._base.ItemPrefab);
                            i.setParent(this.GradTotalItemGridLot.node), r = i.getComponent(a.ItemComponent), this._gradTotalItems.push(r)
                        }
                        r.node.active = !0, r.Init({
                            ItemId: o,
                            Count: e[o]
                        }), t++
                    }
                    for (t <= 5 ? (this.TotalScrollView.enabled = !1, this.GradTotalItemGridLot.node.anchorX = .5, this.GradTotalItemGridLot.node.x = 0) : (this.TotalScrollView.enabled = !0, this.GradTotalItemGridLot.node.anchorX = 0, this.GradTotalItemGridLot.node.x = -this.TotalScrollView.node.width / 2); t < this._gradTotalItems.length; t++) this._gradTotalItems[t].node.active = !1
                }, t.prototype.SetNowGetItems = function() {
                    var e = this._base.InstantlyRewards[this._index],
                        t = 0;
                    for (var n in e) {
                        var o = parseInt(n),
                            r = this._nowGetItems[t];
                        if (!r) {
                            var i = cc.instantiate(this._base.ItemPrefab);
                            i.setParent(this.BuyNowItemGridLot.node), r = i.getComponent(a.ItemComponent), this._nowGetItems.push(r)
                        }
                        r.node.active = !0, r.Init({
                            ItemId: o,
                            Count: e[o]
                        }), t++
                    }
                    for (t <= 5 ? (this.InstantlyScrollView.enabled = !1, this.BuyNowItemGridLot.node.anchorX = .5, this.BuyNowItemGridLot.node.x = 0) : (this.InstantlyScrollView.enabled = !0, this.BuyNowItemGridLot.node.anchorX = 0, this.BuyNowItemGridLot.node.x = -this.InstantlyScrollView.node.width / 2); t < this._nowGetItems.length; t++) this._nowGetItems[t].node.active = !1
                }, t.prototype.RefreshState = function() {
                    !this._base.ActivityModel.Packs || !this._base.ActivityModel.Packs[this._giftPack.Id] || this._base.ActivityModel.Packs[this._giftPack.Id].Items.length <= 0 || this._base.ActivityModel.Packs[this._giftPack.Id].Items[0] <= 0 ? (this._isCanBuy = !0, this.BuyButton.node.active = !0, this.HasGotNode.active = !1) : (this._isCanBuy = !1, this.BuyButton.node.active = !1, this.HasGotNode.active = !0)
                }, t.prototype.OnBuyButtonClick = function() {
                    this._isCanBuy && s.default.Instance.Pay(this._giftPack.Id, this._base.ActivityId)
                }, i([p(cc.Label)], t.prototype, "Tittle", void 0), i([p(cc.RichText)], t.prototype, "TipsTop", void 0), i([p(cc.RichText)], t.prototype, "TipsBottom", void 0), i([p(cc.ScrollView)], t.prototype, "TotalScrollView", void 0), i([p(cc.ScrollView)], t.prototype, "InstantlyScrollView", void 0), i([p(cc.Layout)], t.prototype, "GradTotalItemGridLot", void 0), i([p(cc.Layout)], t.prototype, "GradTotalItemGridLess", void 0), i([p(cc.Layout)], t.prototype, "BuyNowItemGridLot", void 0), i([p(cc.Layout)], t.prototype, "BuyNowItemGridLess", void 0), i([p(cc.Node)], t.prototype, "HasGotNode", void 0), i([p(cc.Button)], t.prototype, "BuyButton", void 0), i([p(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([p(cc.Label)], t.prototype, "AttainLabel", void 0), i([p(cc.Label)], t.prototype, "AttainValue", void 0), i([p(cc.Label)], t.prototype, "DiscountLabel", void 0), i([p(cc.Label)], t.prototype, "DiscountValue", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Channel/ChannelManager": "ChannelManager",
        "../Components/ItemComponent": "ItemComponent"
    }],
    NewWarTokenBuyPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d7476xKsdtISIvnawM2uN9k", "NewWarTokenBuyPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/UIPanelType"),
            c = e("../../../EZFramework/EZDefine/SysDefine"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/ItemComponent"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Channel/ChannelManager"),
            g = e("../Auxiliary/UIUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.Hint1 = null, t.Hint2 = null, t.TotalScrollView = null, t.InstantlyScrollView = null, t.NowGetRewardContainer = null, t.TotalGetRewardContainer = null, t.BuyBtn = null, t.BuyBtnLabel = null, t.VipLeft = null, t.VipValue = null, t.GoodTitle = null, t.GoodValue = null, t._nowGetItems = [], t._gradTotalItems = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent != this.NowGetRewardContainer && t.parent != this.TotalGetRewardContainer || g.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return e._itemPrefab = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Hint1.string = "<outline width=3 color=#221611>" + "privilege_buyNow".ToUILocale() + "</outline>", this.Hint2.string = "privilege_grandTotal".ToUILocale(), this.VipLeft.string = "task_get_score_tag".ToUILocale(), this.BuyBtn.node.on("click", this.OnPaySucess, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0], this.Title.string = this._data.Titles, this._activityId = this._data.ActivityId, this.VipValue.string = "x" + this._data.GiftPack.VipPoint, this.BuyBtnLabel.string = y.default.Instance.CurrencySymbol + y.default.Instance.ExchangeMoney(this._data.GiftPack.Money), f.default.Instance.SetDisCount(this._data.GiftPack.Discount, this.GoodValue, this.GoodTitle)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetGradTotalItems(), this.SetNowGetItems()
                }, t.prototype.SetGradTotalItems = function() {
                    var e = this._data.GradTotalReward,
                        t = 0;
                    for (var n in e) {
                        var o = parseInt(n),
                            r = this._gradTotalItems[t];
                        if (!r) {
                            var i = cc.instantiate(this._itemPrefab);
                            i.setParent(this.TotalGetRewardContainer), r = i.getComponent(h.ItemComponent), this._gradTotalItems.push(r)
                        }
                        r.node.active = !0, r.Init({
                            ItemId: o,
                            Count: e[o]
                        }), t++
                    }
                    for (t <= 5 ? (this.TotalScrollView.enabled = !1, this.TotalGetRewardContainer.anchorX = .5, this.TotalGetRewardContainer.x = 0) : (this.TotalScrollView.enabled = !0, this.TotalGetRewardContainer.anchorX = 0, this.TotalGetRewardContainer.x = -this.TotalScrollView.node.width / 2); t < this._gradTotalItems.length; t++) this._gradTotalItems[t].node.active = !1
                }, t.prototype.SetNowGetItems = function() {
                    var e = this._data.InstantlyRewards,
                        t = 0;
                    for (var n in e) {
                        var o = parseInt(n),
                            r = this._nowGetItems[t];
                        if (!r) {
                            var i = cc.instantiate(this._itemPrefab);
                            i.setParent(this.NowGetRewardContainer), r = i.getComponent(h.ItemComponent), this._nowGetItems.push(r)
                        }
                        r.node.active = !0, r.Init({
                            ItemId: o,
                            Count: e[o]
                        }), t++
                    }
                    for (t <= 5 ? (this.InstantlyScrollView.enabled = !1, this.NowGetRewardContainer.anchorX = .5, this.NowGetRewardContainer.x = 0) : (this.InstantlyScrollView.enabled = !0, this.NowGetRewardContainer.anchorX = 0, this.NowGetRewardContainer.x = -this.InstantlyScrollView.node.width / 2); t < this._nowGetItems.length; t++) this._nowGetItems[t].node.active = !1
                }, t.prototype.OnPaySucess = function() {
                    this.Close(), y.default.Instance.Pay(this._data.GiftPack.Id, this._data.ActivityId)
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.RichText)], t.prototype, "Hint1", void 0), i([_(cc.Label)], t.prototype, "Hint2", void 0), i([_(cc.ScrollView)], t.prototype, "TotalScrollView", void 0), i([_(cc.ScrollView)], t.prototype, "InstantlyScrollView", void 0), i([_(cc.Node)], t.prototype, "NowGetRewardContainer", void 0), i([_(cc.Node)], t.prototype, "TotalGetRewardContainer", void 0), i([_(cc.Button)], t.prototype, "BuyBtn", void 0), i([_(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([_(cc.Label)], t.prototype, "VipLeft", void 0), i([_(cc.Label)], t.prototype, "VipValue", void 0), i([_(cc.Label)], t.prototype, "GoodTitle", void 0), i([_(cc.Label)], t.prototype, "GoodValue", void 0), i([I], t)
            }(p.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    NewWarTokenFreeRewardProgressBar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "639dfn97rZN5a5vzNw4XdI2", "NewWarTokenFreeRewardProgressBar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.NewWarTokenProgressRewardState = void 0;
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../Components/CustomProgressBar"),
            u = e("./NewWarTokenProgressRewardItem"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property;
        (function(e) {
            e[e.Lock = 0] = "Lock", e[e.CanGet = 1] = "CanGet", e[e.HasGot = 2] = "HasGot"
        })(a = n.NewWarTokenProgressRewardState || (n.NewWarTokenProgressRewardState = {}));
        var f = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ScrollView = null, t.View = null, t.ProgressLabel = null, t.List = null, t.RewardContainer = null, t.CustomProgressBar = null, t.FixedRewardContainer = null, t.RewardNode = null, t.ProgressBarWidget = [], t.Icon = null, t._rewardItems = [], t._rewardModels = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                s.Game.EventDispatcher.On(l.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
            }, t.prototype.onDisable = function() {
                s.Game.EventDispatcher.Off(l.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
            }, t.prototype.SetIcon = function(e) {
                this.Icon.spriteFrame = e
            }, t.prototype.Init = function(e) {
                this._data = e, this._rewardModels = e.Rewards, this._progress = e.Progress, this.SetRewards(), this._isInit || (this._scrollviewWidth = this.ScrollView.node.width, this._isInit = !0, this._fixedIndex = -1, this.SetFixedRewardIndex(), this.SetProgressBar()), this.ProgressLabel.string = this._progress.toString(), this.RefreshProgressBar()
            }, t.prototype.SetRewards = function() {
                for (var e = 0; e < this._rewardModels.length; e++) {
                    var t = this._rewardItems[e];
                    if (!t) {
                        var n = cc.instantiate(this.RewardNode);
                        n.setParent(this.RewardContainer.node), t = n.getComponent(u.default), n.name = e.toString(), this._rewardItems.push(t)
                    }
                    var o = this._rewardModels[e];
                    t.node.active = !0, this.InitReward(t, o)
                }
            }, t.prototype.SetFixReward = function() {
                if (!this._fixedRewardItem) {
                    var e = cc.instantiate(this.RewardNode);
                    e.setParent(this.FixedRewardContainer), this._fixedRewardItem = e.getComponent(u.default)
                }
                this._fixedRewardItem.node.active = !0;
                var t = Math.ceil(-this.ScrollView.getScrollOffset().x / (this.RewardNode.width + this.RewardContainer.spacingX));
                t = Math.max(t, 0), t = Math.min(t, this._rewardModels.length - 1);
                var n = this._fixedShowMap[t]; - 1 != n ? (this.ScrollView.node.width != this._scrollviewWidth && (this.ScrollView.node.width = this._scrollviewWidth, this.View.width = this._scrollviewWidth), this._fixedRewardItem.node.name = n.toString(), this.FixedRewardContainer.active = !0, this._fixedIndex = n, this.InitReward(this._fixedRewardItem, this._rewardModels[n])) : (this._fixedRewardItem.node.parent.active = !1, this.ScrollView.node.width = this._scrollviewWidth + this.FixedRewardContainer.width, this.View.width = this._scrollviewWidth + this.FixedRewardContainer.width)
            }, t.prototype.Refresh = function(e, t) {
                this._progress = e, this.ProgressLabel.string = e.toString();
                for (var n = 0; n < this._rewardItems.length; n++) {
                    var o = this._rewardItems[n];
                    this.InitReward(o, t[n])
                }
                this.RefreshProgressBar()
            }, t.prototype.InitReward = function(e, t) {
                var n, o, r, i = -1;
                t.Rewards.length > 1 ? (o = !0, void 0 !== t.OptionalIndex && t.OptionalIndex >= 0 ? (i = t.Rewards[t.OptionalIndex].Items[0], n = t.Rewards[t.OptionalIndex].Items[1]) : i = -1) : (o = !1, i = t.Rewards[0].Items[0], n = t.Rewards[0].Items[1]), r = "<outline color=#202434 width=3><color=#FFFFFF>" + t.Progress + "</color></outline>", e.Init({
                    ItemId: i,
                    Count: n,
                    IsOptional: o,
                    RewardSate: t.RewardState,
                    ItemPrefab: this._data.ItemPrefab,
                    BottomDesc: r,
                    CallBack: this._data.OPtionalCallBack
                }), e.ItemNodeName = t.Index.toString()
            }, t.prototype.SetFixedRewardIndex = function() {
                this._fixedShowMap = {};
                for (var e = Math.floor(this._scrollviewWidth / (this.RewardNode.width + this.RewardContainer.spacingX)), t = 0, n = 0; n < this._rewardModels.length; n++) {
                    for (t < n + e && (t = n + e); t < this._rewardModels.length;) {
                        if (this._rewardModels[t].IsFixed) {
                            this._fixedShowMap[n] = t;
                            break
                        }
                        t++
                    }
                    t >= this._rewardModels.length && (this._fixedShowMap[n] = -1)
                }
            }, t.prototype.SetProgressBar = function() {
                var e = (this._rewardModels.length - 1) * (this.RewardContainer.spacingX + this.RewardNode.width) + this.RewardContainer.paddingLeft + this.RewardNode.width / 2;
                this.List.width = e + this.RewardContainer.paddingRight, this.CustomProgressBar.node.width = e, this.CustomProgressBar.TotalLength = e;
                for (var t = 0; t < this.ProgressBarWidget.length; t++) this.ProgressBarWidget[t].updateAlignment()
            }, t.prototype.RefreshProgressBar = function() {
                for (var e = this.RewardContainer.spacingX, t = 0, n = 0; t < this._rewardModels.length; t++) {
                    var o = this._rewardModels[t];
                    if (!(this._progress >= o.Progress)) break;
                    n = 0 == t ? n + this.RewardContainer.paddingLeft + this.RewardNode.width / 2 : n + e + this.RewardNode.width
                }
                t < this._rewardModels.length ? (n += 0 == t ? this._progress / this._rewardModels[t].Progress * (this.RewardContainer.paddingLeft + this.RewardNode.width / 2) : (this._progress - this._rewardModels[t - 1].Progress) / (this._rewardModels[t].Progress - this._rewardModels[t - 1].Progress) * (e + this.RewardNode.width), this.CustomProgressBar.progress = n / this.CustomProgressBar.TotalLength) : this.CustomProgressBar.progress = 1
            }, t.prototype.OnClickItem = function(e, t) {
                for (var n = -1, o = 0; o < this._rewardItems.length; o++) t == this._rewardItems[o].Item.node && (n = o);
                this._fixedRewardItem && this._fixedRewardItem.Item.node == t && (n = this._fixedIndex), n < 0 || (this._rewardModels[n].RewardState == a.CanGet && this._data.GetCallBack ? this._data.GetCallBack(n) : (1 == this._rewardModels[n].Rewards.length || this._rewardModels[n].OptionalIndex >= 0) && this._rewardItems[n].Item.ShowItemTip())
            }, t.prototype.SetReward = function(e, t) {
                this._rewardModels = t, this.InitReward(this._rewardItems[e], this._rewardModels[e])
            }, i([h(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([h(cc.Node)], t.prototype, "View", void 0), i([h(cc.Label)], t.prototype, "ProgressLabel", void 0), i([h(cc.Node)], t.prototype, "List", void 0), i([h(cc.Layout)], t.prototype, "RewardContainer", void 0), i([h(c.default)], t.prototype, "CustomProgressBar", void 0), i([h(cc.Node)], t.prototype, "FixedRewardContainer", void 0), i([h(cc.Node)], t.prototype, "RewardNode", void 0), i([h(cc.Widget)], t.prototype, "ProgressBarWidget", void 0), i([h(cc.Sprite)], t.prototype, "Icon", void 0), i([d], t)
        }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "./NewWarTokenProgressRewardItem": "NewWarTokenProgressRewardItem"
    }],
    NewWarTokenItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fffcceCLYlAH5BpkxVnG6X7", "NewWarTokenItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s, l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Components/ItemComponent"),
            p = e("../Components/CustomProgressBar"),
            d = e("../../Components/DataCenter"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.Lock = 0] = "Lock", e[e.Forbid = 1] = "Forbid", e[e.CanGet = 2] = "CanGet", e[e.HasGot = 3] = "HasGot"
        })(a || (a = {})),
        function(e) {
            e[e.Free = 0] = "Free", e[e.Advanced = 1] = "Advanced", e[e.Luxury = 2] = "Luxury"
        }(s || (s = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.FreeItemContainer = null, t.AdvancedContainer = null, t.LuxuryContainer = null, t.ProgressBar = null, t.ProgressBgBright = null, t.ProgressDark = null, t.ConditionLabel = null, t.Index = null, t.Special = null, t._freeItems = [], t._advancedItems = [], t._luxuryItems = [], t._rewardState = [a.Forbid, a.Lock, a.Lock], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.OnItemClick = function(e, t) {
                var n = t.getComponent(u.ItemComponent); - 1 != this._freeItems.indexOf(n) ? this.ClickSucessEvent(n, 0) : -1 != this._advancedItems.indexOf(n) ? this.ClickSucessEvent(n, 1) : -1 != this._luxuryItems.indexOf(n) && this.ClickSucessEvent(n, 2)
            }, t.prototype.ClickSucessEvent = function(e, t) {
                this._rewardState[t] == a.CanGet ? this._base.GetReward() : e.ShowItemTip()
            }, t.prototype.Init = function(e, t, n) {
                void 0 === n && (n = !1), this.Index.string = (t + 1).toString(), this._base = e, this._reward = e.ActivityConfig.__Reward[t];
                for (var o = 0; o < this._rewardState.length; o++) this.SetRewardState(o);
                this.InitReward(), this.RefreshRewardsUI();
                var r = !n && t < e.ActivityConfig.__Reward.length - 1;
                this.Special.active = n;
                var i = 0;
                t < e.ActivityConfig.__Reward.length - 1 && (i = e.ActivityConfig.__Reward[t + 1].Count), this.SetProgress(r, i)
            }, t.prototype.SetRewardState = function(e) {
                if (e > 0 && !this.IsRewardUnLock(this._base.GiftPackIds[e - 1])) this._rewardState[e] = a.Lock;
                else {
                    var t;
                    t = 1 == this._base.ActivityConfig.CustomPart.NoCommit ? this._base.ActivityConfig.CustomPart.Item[1] * d.DataCenter.Instance.GetItemCount(this._base.ActivityConfig.CustomPart.Item[0]) : this._base.ActivityModel.IntValue, !this._base.ActivityModel.IntArray || this._base.ActivityModel.IntArray.length, t >= this._reward.Count ? !this._base.ActivityModel.IntArray || this._base.ActivityModel.IntArray.length < e + 3 || this._reward.Id > this._base.ActivityModel.IntArray[e + 3] ? this._rewardState[e] = a.CanGet : this._rewardState[e] = a.HasGot : this._rewardState[e] = a.Forbid
                }
            }, t.prototype.InitReward = function() {
                this.SetReward(s.Free), this.SetReward(s.Advanced), this.SetReward(s.Luxury)
            }, t.prototype.SetReward = function(e) {
                var t, n = [],
                    o = [];
                e == s.Free ? (n = this._reward.FreeRewards, t = this.FreeItemContainer, o = this._freeItems) : e == s.Advanced ? (n = this._reward.AdvanceRewards, t = this.AdvancedContainer, o = this._advancedItems) : (n = this._reward.LuxuryRewards, t = this.LuxuryContainer, o = this._luxuryItems);
                for (var r = 0; r < n.length; r++) {
                    var i = o[r];
                    if (!i) {
                        var a = cc.instantiate(this._base.ItemPrefab);
                        a.setParent(t), i = a.getComponent(u.ItemComponent), o.push(i)
                    }
                    i.node.active = !0, i.Init({
                        ItemId: n[r].Items[0],
                        Count: n[r].Items[1]
                    })
                }
                for (r = n.length; r < o.length; r++) o[r].node.active = !1
            }, t.prototype.RefreshRewardsUI = function() {
                this.SetRewardUI(this._rewardState[s.Free], this._freeItems), this.SetRewardUI(this._rewardState[s.Advanced], this._advancedItems, this._reward.AdvanceRewards.length), this.SetRewardUI(this._rewardState[s.Luxury], this._luxuryItems, this._reward.LuxuryRewards.length)
            }, t.prototype.SetRewardUI = function(e, t, n) {
                void 0 === n && (n = 1);
                for (var o = 0; o < n; o++) e == a.Lock ? t[o].SetLockFlag(!0, "lock_yellow") : t[o].SetLockFlag(!1), t[o].SetSelectFlagState(e >= a.HasGot), e == a.CanGet ? t[o].PlayGetRewardEffect() : t[o].PauseGetRewardEffect()
            }, t.prototype.SetProgress = function(e, t) {
                var n;
                n = 1 == this._base.ActivityConfig.CustomPart.NoCommit ? this._base.ActivityConfig.CustomPart.Item[1] * d.DataCenter.Instance.GetItemCount(this._base.ActivityConfig.CustomPart.Item[0]) : this._base.ActivityModel.IntValue, this.ConditionLabel.string = "" + this._reward.Count, this.ProgressBar.node.active = e, n < this._reward.Count ? (this.ProgressBgBright.active = !1, this.ProgressDark.active = !0, this.ProgressBar.progress = 0) : (this.ProgressBgBright.active = !0, this.ProgressDark.active = !1, this.ProgressBar.progress = n >= t ? 1 : (n - this._reward.Count) / (t - this._reward.Count))
            }, t.prototype.IsRewardUnLock = function(e) {
                return e <= 0 || !(!this._base.ActivityModel.Packs || !this._base.ActivityModel.Packs[e] || this._base.ActivityModel.Packs[e].Items.length <= 0 || 0 == this._base.ActivityModel.Packs[e].Items[0])
            }, i([y(cc.Node)], t.prototype, "FreeItemContainer", void 0), i([y(cc.Node)], t.prototype, "AdvancedContainer", void 0), i([y(cc.Node)], t.prototype, "LuxuryContainer", void 0), i([y(p.default)], t.prototype, "ProgressBar", void 0), i([y(cc.Node)], t.prototype, "ProgressBgBright", void 0), i([y(cc.Node)], t.prototype, "ProgressDark", void 0), i([y(cc.Label)], t.prototype, "ConditionLabel", void 0), i([y(cc.Label)], t.prototype, "Index", void 0), i([y(cc.Node)], t.prototype, "Special", void 0), i([f], t)
        }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent"
    }],
    NewWarTokenOptionalPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4ad406HufhCJJwdkKVeblPS", "NewWarTokenOptionalPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/ItemComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Tag = null, t.RewardNode = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t._itemComponents = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "allianceBase_ok".ToUILocale(), this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(t) {
                    var n;
                    e.prototype.InitData.call(this, t), this._data = t[0], this._selectIndex = null !== (n = this._data.DefaultIndex) && void 0 !== n ? n : -1
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.ConfigUI(), this.InitRewards()
                }, t.prototype.ConfigUI = function() {
                    var e, t;
                    this.Title.string = null !== (e = this._data.Title) && void 0 !== e ? e : "custom_giftPack_select".ToUILocale(), this.Tag.string = null !== (t = this._data.Tag) && void 0 !== t ? t : "custom_giftPack_please_select".ToUILocale()
                }, t.prototype.InitRewards = function() {
                    for (var e = 0; e < this._data.Rewards.length; e++) {
                        var t = this._itemComponents[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.RewardNode), t = n.getComponent(p.ItemComponent), this._itemComponents.push(t)
                        }
                        t.node.name = e.toString(), t.node.active = !0, t.Init({
                            ItemId: this._data.Rewards[e].Items[0],
                            Count: this._data.Rewards[e].Items[1]
                        }, p.ItemComponentType.ItemWithName), t.SetSelectFlagState(this._selectIndex == e)
                    }
                    for (e = this._data.Rewards.length; e < this._itemComponents.length; e++) this._itemComponents[e].node.active = !1
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = t.getComponent(p.ItemComponent); - 1 != this._itemComponents.indexOf(n) && (this._selectIndex >= 0 && this._itemComponents[this._selectIndex] && this._itemComponents[this._selectIndex].SetSelectFlagState(!1), n.SetSelectFlagState(!0), this._selectIndex = e)
                }, t.prototype.OnBtnCancelClick = function() {
                    this.Close(), this._data.CancelCallBack && this._data.CancelCallBack()
                }, t.prototype.OnBtnSureClick = function() {
                    this.Close(), this._selectIndex < 0 ? d.UIUtlity.ShowFloatingHint("custom_giftPack_please_select".ToUILocale()) : this._data.SureCallBack && this._data.SureCallBack(this._selectIndex, this._data.Flag)
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "Tag", void 0), i([y(cc.Node)], t.prototype, "RewardNode", void 0), i([y(cc.Button)], t.prototype, "BtnCancel", void 0), i([y(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([y(cc.Button)], t.prototype, "BtnSure", void 0), i([y(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([f], t)
            }(l.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    NewWarTokenPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "468751dBY9Ng7VEGPoGfCYP", "NewWarTokenPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.NewWarTokenRewardGetState = n.NewWarTokenModelInt2DArryKey = n.NewWarTokenModelIntArryKey = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/CustomLayout"),
            m = e("../Components/CustomProgressBar"),
            I = e("./NewWarTokenItem"),
            _ = e("../Components/CountdownLabel"),
            C = e("./NewWarTokenFreeRewardProgressBar"),
            v = e("../../../Consts/GameEventIds"),
            b = e("../../../../Proto/Static/ConfigProto"),
            S = e("../../../Consts/Etc"),
            w = e("../../RedDot/RedDotManager"),
            P = e("../Components/CurrencyBarItem"),
            A = e("./ActivityJumpBtnComponent"),
            T = e("./TimeLimitedActivityPanel"),
            R = cc._decorator,
            L = R.ccclass,
            k = R.property;
        (function(e) {
            e[e.ExtraBoxGetCount = 0] = "ExtraBoxGetCount", e[e.FreeProgress = 1] = "FreeProgress", e[e.OptionalProgress = 2] = "OptionalProgress", e[e.NormalFree = 3] = "NormalFree", e[e.NormalAdvanced = 4] = "NormalAdvanced", e[e.NormalLuxury = 5] = "NormalLuxury"
        })(l = n.NewWarTokenModelIntArryKey || (n.NewWarTokenModelIntArryKey = {})),
        function(e) {
            e[e.FreeProgress = 0] = "FreeProgress", e[e.AdvancedProgress = 1] = "AdvancedProgress", e[e.LuxuryProgress = 2] = "LuxuryProgress"
        }(n.NewWarTokenModelInt2DArryKey || (n.NewWarTokenModelInt2DArryKey = {})),
        function(e) {
            e[e.None = 0] = "None", e[e.Free = 1] = "Free", e[e.FreeAndAdvanced = 11] = "FreeAndAdvanced", e[e.All = 111] = "All"
        }(n.NewWarTokenRewardGetState || (n.NewWarTokenRewardGetState = {}));
        var O = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !0), t.Banner = null, t.CurrencyBarItem = null, t.ArtWord = null, t.TimeInfo = null, t.CountdownLabel = null, t.ProgressRewardBar = null, t.ProgressLabel = null, t.FreeTitle = null, t.AdvancedTitle = null, t.LuxuryTitle = null, t.ScrollView = null, t.CustomLayout = null, t.NormalRewardNode = null, t.NormalFixedRewardParent = null, t.ExtraRewardTitle = null, t.ExtraTokenIcon = null, t.ExtraProgressBar = null, t.ExtraRewardProgress = null, t.ExtraRewardBtn = null, t.ExtraRewardCount = null, t.ExtraRewardGetHint = null, t.ExtraRewardCanGetSpine = null, t.ExtraRedDot = null, t.UnlockAdvanceBtn = null, t.UnlockAdvanceBtnLabel = null, t.UnlockLuxuryBtn = null, t.UnlockLuxuryBtnLabel = null, t.SubmitItemBtn = null, t.SubmitLabel = null, t.SubmitItemBtnLabel = null, t.SubmitItemIcon = null, t.BackBtn = null, t.View = null, t.TaskBtn = null, t.TaskBtnLabel = null, t.ButtonNode = null, t._giftPackIds = [], t._extraReward = [], t._assets = [], t._progressRewardModel = [], t._jumpButtonNode = [], t
            }
            return r(t, e), Object.defineProperty(t.prototype, "ActivityConfig", {
                get: function() {
                    return this._activityConfig
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ActivityModel", {
                get: function() {
                    return this._activityModel
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ItemPrefab", {
                get: function() {
                    return this._itemPrefab
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "GiftPackIds", {
                get: function() {
                    return this._giftPackIds
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(v.GameEventIds.AddDataDetail.Fmt(u.UserTask_Model._n_), this.OnUserTaskChanged, this), c.Game.EventDispatcher.On(v.GameEventIds.ChangeDataDetail.Fmt(u.UserTask_Model._n_), this.OnUserTaskChanged, this), c.Game.EventDispatcher.On(v.GameEventIds.RemoveDataDetail.Fmt(u.UserTask_Model._n_), this.OnUserTaskChanged, this), c.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshReportList, this), c.Game.EventDispatcher.On(d.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySucess, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(v.GameEventIds.AddDataDetail.Fmt(u.UserTask_Model._n_), this.OnUserTaskChanged, this), c.Game.EventDispatcher.Off(v.GameEventIds.ChangeDataDetail.Fmt(u.UserTask_Model._n_), this.OnUserTaskChanged, this), c.Game.EventDispatcher.Off(v.GameEventIds.RemoveDataDetail.Fmt(u.UserTask_Model._n_), this.OnUserTaskChanged, this), c.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.OnRefreshReportList, this), c.Game.EventDispatcher.Off(d.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySucess, this)
            }, t.prototype.OnUserTaskChanged = function(e) {
                for (var t in e) {
                    var n = Number.parseInt(t);
                    p.ConfigDataComponent.Instance.GetConfigById(b.TaskBase_Config, n) || Math.floor(n / S.Etc.Multiplier) == this._activityId && w.RedDotManager.Instance.BindInstance(this.TaskBtn.node, w.RedDotManager.Instance.InstanceRedDot.NewWarTokenTaskNode, {
                        Value1: this._activityId
                    })
                }
            }, t.prototype.OnRefreshReportList = function(e, t) {
                var n = this;
                this.CustomLayout == t && (e.forEach(function(e, t) {
                    e.getComponent(I.default).Init(n, t)
                }), this.SetFixReward())
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab)];
                            case 1:
                                return t._itemPrefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ExtraRewardTitle.string = "GiftCode_extraReward".ToUILocale(), this.SubmitLabel.string = "newWarToken_submit".ToUILocale(), this.TimeInfo.string = "gift_remainderTime".ToUILocale(), this.FreeTitle.string = "CrazyWheel_free".ToUILocale(), this.AdvancedTitle.string = "SelectedGiftBag_toggle3".ToUILocale(), this.LuxuryTitle.string = "SelectedGiftBag_toggle5".ToUILocale(), this.TaskBtnLabel.string = "btn_task".ToUILocale(), this.UnlockAdvanceBtnLabel.string = "climbTower_scripture_unlock_high".ToUILocale(), this.UnlockLuxuryBtnLabel.string = "newWaToken_unlockLuxury".ToUILocale(), this.ProgressLabel.string = "warTokenList_progress".ToUILocale(), this.ExtraRewardBtn.node.on("click", this.OnGetExtraReward, this), this.SubmitItemBtn.node.on("click", this.OnUseItem, this), this.BackBtn.node.on("click", this.OnBack, this), this.TaskBtn.node.on("click", this.OnClickTaskBtn, this), this.CustomLayout.Init(this.NormalRewardNode), this.UnlockAdvanceBtn.node.on("click", this.OnUnLockAdvance, this), this.UnlockLuxuryBtn.node.on("click", this.OnUnlockLuxury, this), this._scrollviewHeight = this.ScrollView.node.height
            }, t.prototype.InitData = function(t) {
                var n = this;
                e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = p.DataCenter.Instance.ActivityConfigs[this._activityId];
                var o = this._activityConfig.__Reward.length - 1;
                this._progressMax = this._activityConfig.__Reward[o].Count, this._tokenId = this._activityConfig.CustomPart.Item[0], this._extraReward = this._activityConfig.CustomPart.ExtraReward, this._giftPackIds = [this._activityConfig.CustomPart.Advance, this._activityConfig.CustomPart.Luxury];
                var r = this._activityConfig._Locale.find(function(e) {
                    return e.Id == n._activityConfig.CustomPart.Name
                });
                r && (this._tokenName = r.Content)
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), this._activityModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId), this._activityModel) {
                    this._activityConfig.CustomPart.Item && this._activityConfig.CustomPart.Item.length > 0 && this.CurrencyBarItem.Init(this._activityConfig.CustomPart.Item[0]), this.LoadTokenIcon(), this.ExtraRewardGetHint.string = "newWarToken_submitHint".ToUILocale().Fmt(this._progressMax, this._tokenName, this._extraReward[0].Items[0], this._tokenName, this._activityConfig.CustomPart.ExtraRewardNumber);
                    var n = f.default.Instance.ComputeDeadTime(this._activityConfig.Common);
                    this.CountdownLabel.Init(n, "activity_end".ToUILocale()), w.RedDotManager.Instance.BindInstance(this.TaskBtn.node, w.RedDotManager.Instance.InstanceRedDot.NewWarTokenTaskNode, {
                        Value1: this._activityId
                    }), this.HideTaskBtn(), this.SetGiftMap(), this.SetFreeIdToIndex(), this.SetGiftPackBuyState(), this.LoadUISpriteFrame(), this.ConfigProgressRewards(), this.InitProgressRewardBar(), this.SetIndexToFixedIndex(), this.RefreshPanel(), this.RefreshTokenCount(), this.LoadIcon(), this.SetConfigButton()
                } else c.UIManager.Instance.BackUIPanel()
            }, t.prototype.SetConfigButton = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return this._buttonPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset("Buttons/ActivityJumpBtnComponent", cc.Prefab)]);
                            case 1:
                                if (e._buttonPrefab = a.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._buttonPrefab), [2];
                                a.label = 2;
                            case 2:
                                for (t = 0; t < this._activityConfig.Common.JumpIds.length; t++) n = this._activityConfig.Common.JumpIds[t], (o = p.DataCenter.Instance.ActivityNameMap[n]) && (p.RpcComponent.Instance.ServerTime > f.default.Instance.ComputeDeadTime(o.Common) || ((r = this._jumpButtonNode[t]) || ((r = cc.instantiate(this._buttonPrefab)).setParent(this.ButtonNode), this._jumpButtonNode[t] = r, r.getComponent(A.default).Init(n, this._activityConfig.Common.JumpIcons[t]), cc.find("Background/Label", r).y = -62), (i = T.ActivityData.GetTopicActivityTypeToRedDot(o.Common.Type)) && w.RedDotManager.Instance.BindInstance(r, i, {
                                    Value1: o._id
                                })));
                                return [2]
                        }
                    })
                })
            }, t.prototype.LoadIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.ExtraTokenIcon.spriteFrame ? [3, 2] : [4, this.LoadDynamicAsset(y.BundlePath.ItemIcon + "/" + this._activityConfig.CustomPart.Item[0], cc.SpriteFrame)];
                            case 1:
                                if (e = t.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                this.ExtraTokenIcon.spriteFrame = e, this.ProgressRewardBar.SetIcon(e), t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.LoadTokenIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e = f.default.Instance.GetItemPathById(this._tokenId), [4, this.LoadDynamicAsset(e, cc.SpriteFrame)];
                            case 1:
                                return t = n.sent(), this.isValid ? (this.SubmitItemIcon.spriteFrame = t, [2]) : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.HideTaskBtn = function() {
                this.TaskBtn.node.active = this._activityConfig._Tasks && this._activityConfig._Tasks.length > 0
            }, t.prototype.SetFreeIdToIndex = function() {
                this._freeIdToIndex || (this._freeIdToIndex = {});
                for (var e = 0; e < this._activityConfig.__FreeRewards.length; e++) this._freeIdToIndex[this._activityConfig.__FreeRewards[e].Id] = e
            }, t.prototype.SetGiftMap = function() {
                this._giftPackIdToConfig = {};
                for (var e = 0; e < this._activityConfig._Packs.length; e++) this._giftPackIdToConfig[this._activityConfig._Packs[e].Id] = this._activityConfig._Packs[e]
            }, t.prototype.SetGiftPackBuyState = function() {
                this._isBuyaAdvanced = !1, this._isBuyLuxury = !1, this._activityModel.Packs && this._activityModel.Packs[this._activityConfig.CustomPart.Advance] && this._activityModel.Packs[this._activityConfig.CustomPart.Advance].Items.length > 0 && this._activityModel.Packs[this._activityConfig.CustomPart.Advance].Items[0] > 0 && (this._isBuyaAdvanced = !0), this._activityModel.Packs && this._activityModel.Packs[this._activityConfig.CustomPart.Luxury] && this._activityModel.Packs[this._activityConfig.CustomPart.Luxury].Items.length > 0 && this._activityModel.Packs[this._activityConfig.CustomPart.Luxury].Items[0] > 0 && (this._isBuyLuxury = !0), this.UnlockAdvanceBtn.node.active = !this._isBuyaAdvanced, this.UnlockLuxuryBtn.node.active = !this._isBuyLuxury
            }, t.prototype.SetFixReward = function(e) {
                var t;
                void 0 === e && (e = -1), t = e >= 0 ? e : Math.floor(this.ScrollView.getScrollOffset().y / (this.NormalRewardNode.height + this.CustomLayout.SpaceY)), t = Math.max(t, 0), t = Math.min(t, this._activityConfig.__Reward.length - 1);
                var n = this._indexToFixedIndex[t];
                if (n >= 0) {
                    if (this.NormalFixedRewardParent.active = !0, !this._normalFixedReward) {
                        var o = cc.instantiate(this.NormalRewardNode);
                        o.setParent(this.NormalFixedRewardParent), this._normalFixedReward = o.getComponent(I.default)
                    }
                    this._normalFixedReward.node.active = !0, this._normalFixedReward.Init(this, n, !0)
                } else this.NormalFixedRewardParent.active = !1
            }, t.prototype.LoadUISpriteFrame = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, Promise.all([f.default.LoadActivityTexture(this._activityConfig.Common.BannerImage), f.default.LoadActivityTexture(this._activityConfig.Common.Pictures[0])]).then(function(t) {
                                    var n;
                                    if (!e.isValid) return c.AssetsManager.Instance.UnloadAsset(t[0]), void c.AssetsManager.Instance.UnloadAsset(t[1]);
                                    e.Banner.spriteFrame = t[0], e.ArtWord.spriteFrame = t[1], (n = e._assets).push.apply(n, [t[0], t[1]])
                                })];
                            case 1:
                                return t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.ConfigProgressRewards = function() {
                var e = 0;
                this._progressRewardModel = [];
                for (var t = 0; t < this._activityConfig.__FreeRewards.length; t++) this._progressRewardModel.push({
                    Index: t,
                    Progress: this._activityConfig.__FreeRewards[t].Count,
                    Rewards: this._activityConfig.__FreeRewards[t].Rewards,
                    RewardState: C.NewWarTokenProgressRewardState.Lock,
                    IsFixed: null != this._activityConfig.__FreeRewards[t].Show && 1 == this._activityConfig.__FreeRewards[t].Show,
                    Postion: this._activityConfig.__FreeRewards[t].Rewards.length > 1 ? e++ : -1,
                    OptionalIndex: 0
                }), this.SetProgressReward(t)
            }, t.prototype.SetProgressReward = function(e) {
                var t;
                t = 1 == this._activityConfig.CustomPart.NoCommit ? this._activityConfig.CustomPart.Item[1] * p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.Item[0]) : this._activityModel.IntValue;
                var n = this._progressRewardModel[e];
                t >= n.Progress ? n.Rewards.length > 1 ? this._activityModel.Int2DArray && this._activityModel.Int2DArray.length > n.Postion && this._activityModel.Int2DArray[n.Postion].Items.length > 2 ? 0 == this._activityModel.Int2DArray[n.Postion].Items[2] ? n.RewardState = C.NewWarTokenProgressRewardState.CanGet : n.RewardState = C.NewWarTokenProgressRewardState.HasGot : n.RewardState = C.NewWarTokenProgressRewardState.CanGet : this._activityConfig.__FreeRewards[e].Id <= this._activityModel.IntArray[l.FreeProgress] ? n.RewardState = C.NewWarTokenProgressRewardState.HasGot : n.RewardState = C.NewWarTokenProgressRewardState.CanGet : n.RewardState = C.NewWarTokenProgressRewardState.Lock, n.Postion >= 0 && (this._activityModel.Int2DArray && this._activityModel.Int2DArray.length > n.Postion && this._activityModel.Int2DArray[n.Postion].Items.length > 1 ? n.OptionalIndex = this._activityModel.Int2DArray[n.Postion].Items[1] : n.OptionalIndex = -1)
            }, t.prototype.InitProgressRewardBar = function() {
                var e;
                e = 1 == this._activityConfig.CustomPart.NoCommit ? this._activityConfig.CustomPart.Item[1] * p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.Item[0]) : this._activityModel.IntValue, this.ProgressRewardBar.Init({
                    ItemPrefab: this._itemPrefab,
                    Progress: e,
                    Info: this._tokenName,
                    Rewards: this._progressRewardModel,
                    GetCallBack: this.OnGetProgressReward.bind(this),
                    OPtionalCallBack: this.OnOptionalReward.bind(this)
                })
            }, t.prototype.SetIndexToFixedIndex = function() {
                this._indexToFixedIndex = {};
                for (var e = Math.ceil(this.ScrollView.node.height / (this.NormalRewardNode.height + this.CustomLayout.SpaceY)), t = 0, n = 0, o = this._activityConfig.__Reward, r = 0; r < o.length; r++) {
                    for (t < r + e && (t = r + e); t < o.length;) {
                        if (o[t].Show) {
                            n = t, this._indexToFixedIndex[r] = t;
                            break
                        }
                        t++
                    }
                    t >= o.length && (this._indexToFixedIndex[r] = n)
                }
                this._indexToFixedIndex[o.length - e - 1] = n
            }, t.prototype.RefreshPanel = function() {
                this.RefreshExtraReward(), this.RefreshNormalRewards()
            }, t.prototype.RefreshTokenCount = function() {
                var e = p.DataCenter.Instance.GetItemCount(this._tokenId);
                this.SubmitItemBtnLabel.string = e.FmtCurrency()
            }, t.prototype.RefreshNormalRewards = function() {
                var e = this._activityConfig.__Reward.length;
                !this._activityModel || !this._activityModel.IntArray || this._activityModel.IntArray.length < l.NormalFree ? e = 0 : (null != this._activityModel.IntArray[l.NormalFree] && (e = Math.min(e, this._activityModel.IntArray[l.NormalFree])), null != this._activityModel.IntArray[l.NormalAdvanced] && this._isBuyaAdvanced && (e = Math.min(e, this._activityModel.IntArray[l.NormalAdvanced])), null != this._activityModel.IntArray[l.NormalLuxury] && this._isBuyLuxury && (e = Math.min(e, this._activityModel.IntArray[l.NormalLuxury]))), this.CustomLayout.RenderLayOut(this._activityConfig.__Reward.length, e), this.SetFixReward(e)
            }, t.prototype.RefreshExtraReward = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e = this._activityConfig.CustomPart.ExtraRewardNumber, t = this._activityModel.IntArray[l.ExtraBoxGetCount], n = this._extraReward[0].Items[0], o = 1 == this._activityConfig.CustomPart.NoCommit ? this._activityConfig.CustomPart.Item[1] * p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.Item[0]) : this._activityModel.IntValue, r = (r = o - this._progressMax - t * n) <= 0 ? 0 : r, o - this._progressMax >= e * n ? this.ExtraRewardProgress.string = "MAX/" + n : this.ExtraRewardProgress.string = r + "/" + n, r >= n ? (this.ExtraProgressBar.progress = 1, this._isExtraCanGet = !(t >= e)) : (this._isExtraCanGet = !1, this.ExtraProgressBar.progress = r / n), this.ExtraRewardCount.string = t + "/" + e, this._isExtraCanGet ? this._extraGetEffect ? [3, 2] : (i = this, [4, this.LoadDynamicAsset("NewWarTokenPanel/Spine/UI_Effect_TFZL_baoxiang", sp.SkeletonData)]) : [3, 2];
                            case 1:
                                if (i._extraGetEffect = a.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._extraGetEffect), [2];
                                a.label = 2;
                            case 2:
                                return this.ExtraRedDot.active = this._isExtraCanGet, [2]
                        }
                    })
                })
            }, t.prototype.RefreshProgressBar = function() {
                for (var e = 0; e < this._progressRewardModel.length; e++) this.SetProgressReward(e);
                var t;
                t = 1 == this._activityConfig.CustomPart.NoCommit ? this._activityConfig.CustomPart.Item[1] * p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.Item[0]) : this._activityModel.IntValue, this.ProgressRewardBar.Refresh(t, this._progressRewardModel)
            }, t.prototype.OnUseItem = function() {
                if (p.DataCenter.Instance.IsItemEnough(this._tokenId, 1)) {
                    var e = p.DataCenter.Instance.GetItemCount(this._tokenId);
                    c.UIManager.Instance.ShowUIPanel(y.PanelConfig.FantasticPastureUseItemPanel.Path, {
                        ItemId: this._tokenId,
                        Info: "".ToUILocale().Fmt(),
                        DefaultUseCount: e,
                        MaxUseCount: e,
                        CallBack: this.ReqUseItem.bind(this),
                        IsHindSilder: !1
                    })
                } else h.UIUtlity.ShowFloatingHint("ChaosSummon_TicketNotEngough".ToUILocale().Fmt(this._tokenId.ToItemName()))
            }, t.prototype.ReqUseItem = function(e) {
                var t = this,
                    n = u.Req_Activity_NewWarTokenUseItems.create();
                n.ActivityId = this._activityId, n.Number = e, p.RpcComponent.Instance.Call(n, function() {
                    t._activityModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._activityId), t.RefreshPanel(), t.RefreshTokenCount(), t.RefreshProgressBar()
                })
            }, t.prototype.GetReward = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, this.ReqGetReward(2)];
                            case 1:
                                return e = t.sent(), c.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), this.isValid ? (this.RefreshNormalRewards(), [2]) : [2]
                        }
                    })
                })
            }, t.prototype.OnGetAllReward = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this.IsHavaCanGet() ? [4, this.ReqGetReward(0)] : [3, 2];
                            case 1:
                                return e = t.sent(), c.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), this.isValid ? (this.RefreshPanel(), this.RefreshProgressBar(), [3, 3]) : [2];
                            case 2:
                                this._isBuyLuxury && this._isBuyaAdvanced ? h.UIUtlity.ShowFloatingHint("error_hint_content_code_9114_debug".ToUILocale()) : this.OnUnLock(), t.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.IsHavaCanGet = function() {
                var e, t;
                if (this._isExtraCanGet) return !0;
                t = 1 == this._activityConfig.CustomPart.NoCommit ? this._activityConfig.CustomPart.Item[1] * p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.Item[0]) : this._activityModel.IntValue;
                var n = this._activityModel.IntArray[l.FreeProgress],
                    o = this._activityConfig.__FreeRewards,
                    r = o.length;
                if (n < o[r - 1].Id)
                    for (var i = (s = null !== (e = this._freeIdToIndex[n]) && void 0 !== e ? e : -1) + 1; i < r; i++)
                        if (!(o[i].Rewards.length > 1)) {
                            if (o[i].Count <= t) return !0;
                            break
                        } for (i = 0; i < this._activityModel.Int2DArray.length; i++) {
                    var a = this._activityModel.Int2DArray[i].Items;
                    if (a.length > 2) {
                        var s = this._freeIdToIndex[a[0]];
                        if (t >= this._activityConfig.__FreeRewards[s].Count && a[1] >= 0 && a[2] <= 0) return !0
                    }
                }
                var c = this._activityConfig.__Reward,
                    u = this._activityModel.IntArray[l.NormalFree],
                    d = this._activityModel.IntArray[l.NormalAdvanced],
                    h = this._activityModel.IntArray[l.NormalLuxury];
                return u < c[c.length - 1].Id && t >= c[u].Count || !(!this._isBuyaAdvanced || u == d) || !(!this._isBuyLuxury || u == h)
            }, t.prototype.OnGetExtraReward = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return this._isExtraCanGet ? [4, this.ReqGetReward(3)] : [3, 2];
                            case 1:
                                return e = i.sent(), c.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), this.isValid ? (this.RefreshExtraReward(), [3, 3]) : [2];
                            case 2:
                                for (t = [], n = 1; n < this._extraReward.length; n++) o = this._extraReward[n].Items[0], r = this._extraReward[n].Items[1], t.push({
                                    ItemId: o,
                                    Count: r
                                });
                                h.UIUtlity.ShowHintPanel("GiftCode_extraReward".ToUILocale(), t), i.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnGetProgressReward = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return (t = this._progressRewardModel[e]).Postion >= 0 && t.OptionalIndex < 0 ? (this.OnOptionalReward(e), [2]) : t.RewardState != C.NewWarTokenProgressRewardState.CanGet ? [3, 2] : [4, this.ReqGetReward(1)];
                            case 1:
                                if (n = o.sent(), c.UIManager.Instance.ShowUIPanel(y.PanelConfig.DisplayRewardsPanel.Path, n.Rewards), !this.isValid) return [2];
                                this.RefreshProgressBar(), o.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnOptionalReward = function(e) {
                var t = this._progressRewardModel[e];
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.NewWarTokenOptionalPanel.Path, {
                    Flag: t.Index,
                    DefaultIndex: t.OptionalIndex,
                    Rewards: t.Rewards,
                    SureCallBack: this.ReqOptional.bind(this)
                })
            }, t.prototype.ReqOptional = function(e, t) {
                var n = this,
                    o = this._progressRewardModel[t],
                    r = u.Req_Activity_NewWarTokenChoose.create();
                r.ActivityId = this._activityId, r.Id = this._activityConfig.__FreeRewards[o.Index].Id, r.Index = e, p.RpcComponent.Instance.Call(r, function() {
                    n._activityModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, n._activityId), n.SetProgressReward(t);
                    var e = n._progressRewardModel[t];
                    n.ProgressRewardBar.SetReward(e.Index, n._progressRewardModel)
                })
            }, t.prototype.ReqGetReward = function(e) {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return [4, new Promise(function(n) {
                                    var o = u.Req_Activity_NewWarTokenRewards.create();
                                    o.ActivityId = t._activityId, o.Type = e, p.RpcComponent.Instance.Call(o, function(e) {
                                        t._activityModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._activityId), n(e)
                                    })
                                })];
                            case 1:
                                return [2, n.sent()]
                        }
                    })
                })
            }, t.prototype.OnUnLock = function() {}, t.prototype.GetTotalRewards = function(e) {
                this._totalRewards || (this._totalRewards = {});
                var t = this._activityConfig.__Reward;
                if (!this._totalRewards[e])
                    if (this._totalRewards[e] = {}, 0 == e)
                        for (var n = 0; n < t.length; n++)
                            for (var o = 0; o < t[n].AdvanceRewards.length; o++) this._totalRewards[e][t[n].AdvanceRewards[o].Items[0]] ? this._totalRewards[e][t[n].AdvanceRewards[o].Items[0]] += t[n].AdvanceRewards[o].Items[1] : this._totalRewards[e][t[n].AdvanceRewards[o].Items[0]] = t[n].AdvanceRewards[o].Items[1];
                    else
                        for (n = 0; n < t.length; n++)
                            for (o = 0; o < t[n].LuxuryRewards.length; o++) this._totalRewards[e][t[n].LuxuryRewards[o].Items[0]] ? this._totalRewards[e][t[n].LuxuryRewards[o].Items[0]] += t[n].LuxuryRewards[o].Items[1] : this._totalRewards[e][t[n].LuxuryRewards[o].Items[0]] = t[n].LuxuryRewards[o].Items[1];
                return this._totalRewards[e]
            }, t.prototype.GetInstantlyRewards = function(e) {
                var t, n, o, r, i = this._activityConfig.__Reward;
                r = 1 == this._activityConfig.CustomPart.NoCommit ? this._activityConfig.CustomPart.Item[1] * p.DataCenter.Instance.GetItemCount(this._activityConfig.CustomPart.Item[0]) : this._activityModel.IntValue;
                for (var a = {}, s = null !== (t = this._activityModel.IntArray[3]) && void 0 !== t ? t : 0, l = null !== (n = this._activityModel.IntArray[4]) && void 0 !== n ? n : 0, c = null !== (o = this._activityModel.IntArray[5]) && void 0 !== o ? o : 0, u = 0; u < i.length && !(r < i[u].Count); u++) {
                    if (i[u].Id > s)
                        for (var d = 0; d < i[u].FreeRewards.length; d++) a[i[u].FreeRewards[d].Items[0]] ? a[i[u].FreeRewards[d].Items[0]] += i[u].FreeRewards[d].Items[1] : a[i[u].FreeRewards[d].Items[0]] = i[u].FreeRewards[d].Items[1];
                    if (0 == e) {
                        for (d = 0; d < i[u].AdvanceRewards.length; d++) a[i[u].AdvanceRewards[d].Items[0]] ? a[i[u].AdvanceRewards[d].Items[0]] += i[u].AdvanceRewards[d].Items[1] : a[i[u].AdvanceRewards[d].Items[0]] = i[u].AdvanceRewards[d].Items[1];
                        if (this._isBuyLuxury && i[u].Id > c)
                            for (d = 0; d < i[u].LuxuryRewards.length; d++) a[i[u].LuxuryRewards[d].Items[0]] ? a[i[u].LuxuryRewards[d].Items[0]] += i[u].LuxuryRewards[d].Items[1] : a[i[u].LuxuryRewards[d].Items[0]] = i[u].LuxuryRewards[d].Items[1]
                    } else {
                        for (d = 0; d < i[u].LuxuryRewards.length; d++) a[i[u].LuxuryRewards[d].Items[0]] ? a[i[u].LuxuryRewards[d].Items[0]] += i[u].LuxuryRewards[d].Items[1] : a[i[u].LuxuryRewards[d].Items[0]] = i[u].LuxuryRewards[d].Items[1];
                        if (this._isBuyaAdvanced && i[u].Id > l)
                            for (d = 0; d < i[u].AdvanceRewards.length; d++) a[i[u].AdvanceRewards[d].Items[0]] ? a[i[u].AdvanceRewards[d].Items[0]] += i[u].AdvanceRewards[d].Items[1] : a[i[u].AdvanceRewards[d].Items[0]] = i[u].AdvanceRewards[d].Items[1]
                    }
                }
                return a
            }, t.prototype.OnUnLockAdvance = function() {
                var e = {
                    ActivityId: this._activityId,
                    Titles: "climbTower_scripture_unlock_high".ToUILocale(),
                    GiftPack: this._giftPackIdToConfig[this._activityConfig.CustomPart.Advance],
                    GradTotalReward: this.GetTotalRewards(0),
                    InstantlyRewards: this.GetInstantlyRewards(0)
                };
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.NewWarTokenBuyPanel.Path, e)
            }, t.prototype.OnUnlockLuxury = function() {
                var e = {
                    ActivityId: this._activityId,
                    Titles: "newWaToken_unlockLuxury".ToUILocale(),
                    GiftPack: this._giftPackIdToConfig[this._activityConfig.CustomPart.Luxury],
                    GradTotalReward: this.GetTotalRewards(1),
                    InstantlyRewards: this.GetInstantlyRewards(1)
                };
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.NewWarTokenBuyPanel.Path, e)
            }, t.prototype.OnPaySucess = function(e) {
                e.ActivityId == this._activityId && (this._activityModel = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityId), this.SetGiftPackBuyState(), this.RefreshNormalRewards())
            }, t.prototype.OnClickTaskBtn = function() {
                var e = {
                    IsActivity: !0
                };
                e.Tasks = this._activityConfig._Tasks, e.Title = "btn_task".ToUILocale(), e.ActivityId = this._activityId, e.HideAllPanels = !1, c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonTaskPanel.Path, [e])
            }, t.prototype.OnBack = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.onDestroy = function() {
                for (var e = 0; e < this._assets.length; e++) c.AssetsManager.Instance.UnloadAsset(this._assets[e]);
                this._assets = []
            }, i([k(cc.Sprite)], t.prototype, "Banner", void 0), i([k(P.default)], t.prototype, "CurrencyBarItem", void 0), i([k(cc.Sprite)], t.prototype, "ArtWord", void 0), i([k(cc.Label)], t.prototype, "TimeInfo", void 0), i([k(_.default)], t.prototype, "CountdownLabel", void 0), i([k(C.default)], t.prototype, "ProgressRewardBar", void 0), i([k(cc.Label)], t.prototype, "ProgressLabel", void 0), i([k(cc.Label)], t.prototype, "FreeTitle", void 0), i([k(cc.Label)], t.prototype, "AdvancedTitle", void 0), i([k(cc.Label)], t.prototype, "LuxuryTitle", void 0), i([k(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([k(g.default)], t.prototype, "CustomLayout", void 0), i([k(cc.Node)], t.prototype, "NormalRewardNode", void 0), i([k(cc.Node)], t.prototype, "NormalFixedRewardParent", void 0), i([k(cc.Label)], t.prototype, "ExtraRewardTitle", void 0), i([k(cc.Sprite)], t.prototype, "ExtraTokenIcon", void 0), i([k(m.default)], t.prototype, "ExtraProgressBar", void 0), i([k(cc.Label)], t.prototype, "ExtraRewardProgress", void 0), i([k(cc.Button)], t.prototype, "ExtraRewardBtn", void 0), i([k(cc.Label)], t.prototype, "ExtraRewardCount", void 0), i([k(cc.Label)], t.prototype, "ExtraRewardGetHint", void 0), i([k(sp.Skeleton)], t.prototype, "ExtraRewardCanGetSpine", void 0), i([k(cc.Node)], t.prototype, "ExtraRedDot", void 0), i([k(cc.Button)], t.prototype, "UnlockAdvanceBtn", void 0), i([k(cc.Label)], t.prototype, "UnlockAdvanceBtnLabel", void 0), i([k(cc.Button)], t.prototype, "UnlockLuxuryBtn", void 0), i([k(cc.Label)], t.prototype, "UnlockLuxuryBtnLabel", void 0), i([k(cc.Button)], t.prototype, "SubmitItemBtn", void 0), i([k(cc.Label)], t.prototype, "SubmitLabel", void 0), i([k(cc.Label)], t.prototype, "SubmitItemBtnLabel", void 0), i([k(cc.Sprite)], t.prototype, "SubmitItemIcon", void 0), i([k(cc.Button)], t.prototype, "BackBtn", void 0), i([k(cc.Node)], t.prototype, "View", void 0), i([k(cc.Button)], t.prototype, "TaskBtn", void 0), i([k(cc.Label)], t.prototype, "TaskBtnLabel", void 0), i([k(cc.Node)], t.prototype, "ButtonNode", void 0), i([L], t)
        }(c.BaseUIFullScreenPanel);
        n.default = O, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CountdownLabel": "CountdownLabel",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "./ActivityJumpBtnComponent": "ActivityJumpBtnComponent",
        "./NewWarTokenFreeRewardProgressBar": "NewWarTokenFreeRewardProgressBar",
        "./NewWarTokenItem": "NewWarTokenItem",
        "./TimeLimitedActivityPanel": "TimeLimitedActivityPanel"
    }],
    NewWarTokenProgressRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7c434HOJJBB+7Leeu3AkpFk", "NewWarTokenProgressRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../Components/ItemComponent"),
            l = e("./NewWarTokenFreeRewardProgressBar"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.Progress = null, t.RefreshTag = null, t.State = null, t._isOptional = !1, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "ItemNodeName", {
                    set: function(e) {
                        this._item.node.name = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Item", {
                    get: function() {
                        return this._item
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "IsOptional", {
                    get: function() {
                        return this._isOptional
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e) {
                    this._data = e, this.SetItem(), this.SetItemState(this._data.RewardSate), e.BottomDesc ? (this.Progress.node.active = !0, this.Progress.string = e.BottomDesc) : this.Progress.node.active = !1
                }, t.prototype.SetItem = function() {
                    var e;
                    if (!this._item) {
                        var t = cc.instantiate(this._data.ItemPrefab);
                        t.setParent(this.ItemContainer), this._item = t.getComponent(s.ItemComponent), this.RefreshTag.node.on("click", this.OnRefresh, this)
                    }
                    this._isOptional = this._data.IsOptional, this._data.ItemId > 0 ? this._item.Init({
                        ItemId: this._data.ItemId,
                        Count: null !== (e = this._data.Count) && void 0 !== e ? e : 0
                    }) : (this._item.SetItemSimpleState(), this._item.SetAddFlagState(!0, "add_green"))
                }, t.prototype.SetItemState = function(e) {
                    e == l.NewWarTokenProgressRewardState.Lock ? this._item.SetLockFlag(!0, "lock_yellow") : this._item.SetLockFlag(!1), this.State.spriteFrame = e == l.NewWarTokenProgressRewardState.Lock ? a.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_off") : a.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_on"), this._item.SetSelectFlagState(e == l.NewWarTokenProgressRewardState.HasGot), e == l.NewWarTokenProgressRewardState.CanGet ? this._item.PlayGetRewardEffect() : this._item.PauseGetRewardEffect(), e == l.NewWarTokenProgressRewardState.CanGet && this._isOptional && this._data.ItemId > 0 ? this.RefreshTag.node.active = !0 : this.RefreshTag.node.active = !1
                }, t.prototype.SetOptionalItem = function(e, t, n, o) {
                    void 0 === o && (o = !0), this.RefreshTag.node.active = o, this._item.Init({
                        ItemId: e,
                        Count: t
                    }), this.SetItemState(n)
                }, t.prototype.OnRefresh = function() {
                    this._data.CallBack && this._data.CallBack(parseInt(this.node.name))
                }, i([p(cc.Node)], t.prototype, "ItemContainer", void 0), i([p(cc.RichText)], t.prototype, "Progress", void 0), i([p(cc.Sprite)], t.prototype, "RefreshTag", void 0), i([p(cc.Sprite)], t.prototype, "State", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "./NewWarTokenFreeRewardProgressBar": "NewWarTokenFreeRewardProgressBar"
    }],
    NewYearWeaponDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cc863y/0SlFyIxlVUHedZ2E", "NewYearWeaponDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/NewYearWeaponRateItem"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.CustomLayout = null, t._initLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("NewYearWeaponPanel/NewYearWeaponRateItem", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/ItemCountComponent", cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/LevelComponent2", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._previewPrefab = e[0], r._itemPrefab = e[1], r._starPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "upStarPreview_title".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._paramId = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetPreviewData(), this.SetPreviewList()
                }, t.prototype.SetPreviewData = function() {
                    this._datas = [];
                    for (var e = u.ConfigDataComponent.Instance.GetArrayConfig(c.NewYearWeaponStar_Config), t = u.DataCenter.Instance.GetDataById(f.NewYearWeapon_Model, this._paramId), n = t ? t.Star : 0, o = 0; o < e.length; o++) {
                        var r = {};
                        r.CurStar = e[o].Id, r.ParamId = this._paramId, r.ChanceId = e[o].CardShowChance, r.CurrentStar = n == e[o].Id, this._datas.push(r)
                    }
                }, t.prototype.SetPreviewList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._previewPrefab), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._datas.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(h.default).Init(n._datas[t], n._itemPrefab, n._starPrefab)
                    })
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(p.default)], t.prototype, "CustomLayout", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/NewYearWeaponRateItem": "NewYearWeaponRateItem"
    }],
    NewYearWeaponInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8626bjFKuBIfLf79gIA7GYK", "NewYearWeaponInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/AttrComponent2"),
            y = e("../Components/CustomToggle"),
            g = e("../Components/LevelComponent2"),
            m = e("../Components/StarPieceMaterialItem"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("./CommonUpStarPreviewPanel"),
            b = e("../../../ShareConsts/EnumType"),
            S = e("../Components/CurrencyBarItem"),
            w = e("../../RedDot/RedDotManager"),
            P = e("../Components/NewYearWeaponProgressBar"),
            A = e("../../../Util/TimeUtil"),
            T = e("../../../Consts/Consts"),
            R = e("../../RedDot/RedDotDataHandler");
        (function(e) {
            e[e.UpStar = 0] = "UpStar", e[e.UpLevel = 1] = "UpLevel"
        })(l || (l = {}));
        var L = cc._decorator,
            k = L.ccclass,
            O = L.property,
            M = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new d.UIPanelType(d.UINodeType.Fixed), t.Name = null, t.RuleButton = null, t.PreviewButton = null, t.PreviewLabel = null, t.NewYearWeaponNode = null, t.UseEffect = null, t.UseBtn = null, t.UseCDLabel = null, t.UseCDBar = null, t.StarNode = null, t.AttrTitle = null, t.LevelTag = null, t.CurLevelLimit = null, t.NextLevelLimit = null, t.ArrowNode = null, t.AttrComponents = [], t.UpStarNode = null, t.UpLevelNode = null, t.EffectTitle = null, t.SingleEffectNode = null, t.DoubleEffectNode = null, t.SingleEffectStar = null, t.SingleEffect = null, t.DoubleEffectStar1 = null, t.DoubleEffect1 = null, t.DoubleEffectStar2 = null, t.DoubleEffect2 = null, t.UpStarMaterialNode = null, t.CurrencyBarItem = null, t.UpStarButton = null, t.UpStarLabel = null, t.ExpiredLabel = null, t.MaxStarLabel = null, t.UpLevelTitle = null, t.UpLevelMaterialNode = null, t.UpLevelButton = null, t.UpLevelLabel = null, t.MaxLevelLabel = null, t.CustomToggles = [], t.ReturnButton = null, t.QuickUpLevelButton = null, t.QuickUpLevelLabel = null, t.UpStarPreviewButton = null, t.UpStarPreviewLabel = null, t.Mask = null, t.Bg = null, t.Bg1 = null, t._materialComponents = [], t._levelMaterialComponents = [], t.QuickUpLevelStart = 5, t.QuickUpLevelEnd = 10, t.MaxStarLevel = 7, t._canUseItem = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    d.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), d.Game.EventDispatcher.On(_.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback, this)
                }, t.prototype.onDisable = function() {
                    d.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), d.Game.EventDispatcher.Off(_.EventKeys.EVENT_SELECT_HEROSIDS, this.OnSelectCallback, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("StarTemplePanel/Private/StarPieceMaterialItem", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/LevelComponent2", cc.Prefab), o = this.LoadDynamicAsset("ItemsComponent/Spine/UI_effect_xinshouyindao", sp.SkeletonData), r = this.LoadDynamicAsset("SuperWeaponPanel/PNG/bg", cc.SpriteFrame), i = this.LoadDynamicAsset("SuperWeaponPanel/PNG/bg1", cc.SpriteFrame), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._materialPrefab = e[0], a._levelPrefab2 = e[1], a._useEffectData = e[2], a.Bg.spriteFrame = e[3], a.Bg1.spriteFrame = e[4]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.AttrTitle.string = "gem_base_attr".ToUILocale(), this.EffectTitle.string = "angel_specialEffect".ToUILocale(), this.UpLevelTitle.string = "superWeapon_upLevel_consume".ToUILocale(), this.UpLevelLabel.string = "holy_equip_developToggle_0".ToUILocale(), this.MaxStarLabel.string = "SoulRecord_graphStarFull".ToUILocale(), this.MaxLevelLabel.string = "common_max_level".ToUILocale(), this.PreviewLabel.string = "detail".ToUILocale(), this.UpStarPreviewLabel.string = "upStarPreview_button".ToUILocale();
                    var n = ["angel_toggle_1".ToUILocale(), "holy_equip_developToggle_0".ToUILocale()];
                    this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.PreviewButton.node.on("click", this.OnPreviewButtonClick, this), this.UpStarButton.node.on("click", this.OnUpStarButtonClick, this), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this), this.QuickUpLevelButton.node.on("click", this.OnQuickUpLevelButtonClick, this), this.UpStarPreviewButton.node.on("click", this.OnUpStarPreviewButtonClick, this), this.UseBtn.node.on("click", this.OnUseBtnClick, this), this.CustomToggles.forEach(function(e, o) {
                        e.Init(n[o]), e.node.on("toggle", t.OnClickToggle, t)
                    }), this.UseEffect.skeletonData = this._useEffectData
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._config = t[0], this._model = p.DataCenter.Instance.GetDataById(u.NewYearWeapon_Model, this._config.Id), this._selectToggle = l.UpStar
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.SetButton(), this.SetName(), this.SetNewYearWeaponNode(), this.SetLevelNode(), this.SetAttrNode(), this.SetMidNode(), this.BindReddot(), this.SetProgressBar()
                }, t.prototype.SetButton = function() {
                    var e = this._config.UnAvailableTime ? A.TimeUtil.StrToTime(this._config.UnAvailableTime) : 0,
                        t = p.RpcComponent.Instance.ServerTime;
                    e && t > e ? (this.UpStarPreviewButton.node.active = !1, this.PreviewButton.node.active = !1) : (this.UpStarPreviewButton.node.active = !0, this.PreviewButton.node.active = !0)
                }, t.prototype.SetName = function() {
                    this.Name.string = this._config.Id.ToNewYearWeaponName()
                }, t.prototype.SetNewYearWeaponNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this.NewYearWeaponNode.destroyAllChildren(), this.NewYearWeaponNode.active = !1, this._config.Model ? (this.ClaerAvatarPrefab(), this.NewYearWeaponNode.active = !0, e = this._config.Id, [4, d.AssetsManager.Instance.LoadAsset(this._config.Model + "/Avatar")]) : [3, 6];
                                case 1:
                                    return t = o.sent(), this.isValid ? e != this._config.Id ? [3, 5] : (this._currentAvatarPrefab = t, (n = cc.instantiate(t)).setParent(this.NewYearWeaponNode), n.opacity = 0, this._model ? [3, 3] : (n.getComponent(sp.Skeleton).clearTracks(), [4, h.UIUtlity.OnSpineGray(this.NewYearWeaponNode)])) : (d.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    return o.sent(), n.opacity = 255, [3, 4];
                                case 3:
                                    n.getComponent(sp.Skeleton).clearTracks(), n.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), h.UIUtlity.OffSpineGray(this.NewYearWeaponNode), n.opacity = 255, o.label = 4;
                                case 4:
                                    return this._avatarAlphaTween && this._avatarAlphaTween.stop(), this._isReDisplay || (n.opacity = 20, this._avatarAlphaTween = cc.tween(n).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start()), this._isReDisplay = !1, [3, 6];
                                case 5:
                                    d.AssetsManager.Instance.UnloadAsset(t), o.label = 6;
                                case 6:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetLevelNode = function() {
                    if (!this._levelComponent) {
                        var e = cc.instantiate(this._levelPrefab2);
                        e.parent = this.StarNode, this._levelComponent = e.getComponent(g.default)
                    }
                    var t = 0;
                    this._model && (t = this._model.Star), this._levelComponent.Init(t, this.MaxStarLevel, g.LevelComponent2Type.Orange)
                }, t.prototype.SetAttrNode = function() {
                    var e, t, n, o = this;
                    if (this._isMaxStar = !1, this._isMaxLevel = !1, this._curStar = 0, this._curLevel = 0, !this._maxLevel) {
                        var r = p.ConfigDataComponent.Instance.GetArrayConfig(c.NewYearWeaponStar_Config);
                        this._maxLevel = 0, r.forEach(function(e) {
                            o._maxLevel = Math.max(o._maxLevel, e.LevelCap)
                        })
                    }
                    this._model ? (this._curStar = this._model.Star, this._curLevel = this._model.Level, this._isMaxLevel = this._curLevel >= this._maxLevel, this._curConfig = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponStar_Config, this._model.Star), this._nextStarConfig = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponStar_Config, this._model.Star + 1), this._nextStarConfig || (this._isMaxStar = !0)) : (this._curConfig = null, this._nextStarConfig = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponStar_Config, 1)), this._selectToggle == l.UpStar ? (this.LevelTag.string = "starPiece_detail_level_upper".ToUILocale(), this.ArrowNode.active = !this._isMaxStar, this.NextLevelLimit.node.active = !this._isMaxStar, this._curConfig ? this.CurLevelLimit.string = "Lv.{0}".Fmt(this._curConfig.LevelCap) : this.CurLevelLimit.string = "Lv.{0}".Fmt(0), this._isMaxStar || (this.NextLevelLimit.string = "Lv.{0}".Fmt(this._nextStarConfig.LevelCap)), e = this._curStar, t = this._curConfig, n = this._nextStarConfig) : (this.LevelTag.string = "starPiece_detail_level_add".ToUILocale(), this.ArrowNode.active = !this._isMaxLevel, this.NextLevelLimit.node.active = !this._isMaxLevel, this.CurLevelLimit.string = "Lv.{0}".Fmt(this._curLevel), this._isMaxLevel || (this.NextLevelLimit.string = "Lv.{0}".Fmt(this._curLevel + 1)), e = this._curLevel, this._curLevel > 0 ? (t = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponLevel_Config, this._curLevel), n = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponLevel_Config, this._curLevel + 1)) : n = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponLevel_Config, 1));
                    var i = [];
                    e > 0 ? t.Attrs.forEach(function(e, t) {
                        var o = {};
                        o.CurValue = e.Items[1], n && n.Attrs[t] ? o.AddValue = n.Attrs[t].Items[1] - e.Items[1] : o.AddValue = 0, o.AttrId = e.Items[0], i.push(o)
                    }) : n.Attrs.forEach(function(e) {
                        var t = {
                            CurValue: 0
                        };
                        t.AddValue = e.Items[1], t.AttrId = e.Items[0], i.push(t)
                    }), this.AttrComponents.forEach(function(e, t) {
                        e.node.active = !1, i[t] && (i[t].AddValue > 0 ? e.Init(i[t].AttrId, i[t].CurValue, i[t].AddValue) : e.Init(i[t].AttrId, i[t].CurValue), e.node.active = !0)
                    })
                }, t.prototype.SetMidNode = function() {
                    this.UpStarNode.active = this._selectToggle == l.UpStar, this.UpLevelNode.active = this._selectToggle == l.UpLevel, this._selectToggle == l.UpStar ? (this.SetUpStarNode(), this.SetUpStarDesc()) : this._selectToggle == l.UpLevel && this.SetUpLevelNode()
                }, t.prototype.BindReddot = function() {
                    w.RedDotManager.Instance.BindInstance(this.UpStarButton.node, w.RedDotManager.Instance.InstanceRedDot.NewYearWeaponUpStarBtnNode, {
                        Value1: this._config.Id
                    }), w.RedDotManager.Instance.BindInstance(this.UpLevelButton.node, w.RedDotManager.Instance.InstanceRedDot.NewYearWeaponUpLevelBtnNode, {
                        Value1: this._config.Id
                    }), w.RedDotManager.Instance.BindInstance(this.CustomToggles[0].node, w.RedDotManager.Instance.InstanceRedDot.NewYearWeaponUpStarToggleNode, {
                        Value1: this._config.Id
                    }, 0, -20), w.RedDotManager.Instance.BindInstance(this.CustomToggles[1].node, w.RedDotManager.Instance.InstanceRedDot.NewYearWeaponUpLevelToggleNode, {
                        Value1: this._config.Id
                    }, 0, -20)
                }, t.prototype.SetProgressBar = function() {
                    this.UseCDBar.node.active = !1, this.UseEffect.node.active = !1, this._canUseItem = !1;
                    var e = p.DataCenter.Instance.GetDataById(u.NewYearWeapon_Model, this._config.Id);
                    if (e) {
                        var t = this._config.UnAvailableTime ? A.TimeUtil.StrToTime(this._config.UnAvailableTime) : 0,
                            n = p.RpcComponent.Instance.ServerTime;
                        if (!(t && n > t)) {
                            this.UseCDBar.node.active = !0;
                            var o = this._config.CoolDownTime * T.Etc.MinuteDuration;
                            if (n > o + e.UseTime) this._canUseItem = !0, this.UseCDLabel.string = "newYearWeapon_chargingCompleted".ToUILocale(), this.UseCDBar.progress = 1, this.UseEffect.node.active = !0, this.UseEffect.setAnimation(1, "UI_effect_xinshouyindao", !0);
                            else {
                                this._canUseItem = !1;
                                var r = o + e.UseTime - n;
                                this._deadLineTime = r, this.UseEffect.node.active = !1, this.SetCountDown()
                            }
                        }
                    }
                }, t.prototype.SetCountDown = function() {
                    this.RefreshLeftTime(), this.unschedule(this.RefreshLeftTime), this.schedule(this.RefreshLeftTime, 1)
                }, t.prototype.RefreshLeftTime = function() {
                    var e = this._deadLineTime;
                    if (e <= 0) return e = 0, this.unschedule(this.RefreshLeftTime), this._canUseItem = !0, this.UseCDLabel.string = "newYearWeapon_chargingCompleted".ToUILocale(), this.UseCDBar.progress = 1, this.UseEffect.node.active = !0, void this.UseEffect.setAnimation(1, "UI_effect_xinshouyindao", !0);
                    var t = I.default.ActivityTimeLeftFormat(e);
                    this.UseCDLabel.string = "" + "newYearWeapon_chargingTime".ToUILocale() + t, this.UseCDBar.progress = (this._config.CoolDownTime * T.Etc.MinuteDuration - e) / (this._config.CoolDownTime * T.Etc.MinuteDuration), this._deadLineTime = this._deadLineTime - 1e3
                }, t.prototype.SetUpStarNode = function() {
                    if (this.MaxStarLabel.node.active = this._isMaxStar, this.UpStarMaterialNode.active = !this._isMaxStar, this.UpStarButton.node.active = !this._isMaxStar, this.CurrencyBarItem.node.active = !1, this._selectData = [], this._itemStarData = [], this._diamondData = null, this._model ? this.UpStarLabel.string = "angel_toggle_1".ToUILocale() : this.UpStarLabel.string = "ChaosTemple_Active".ToUILocale(), !this._isMaxStar) {
                        var e = this._nextStarConfig.HeroMaterials,
                            t = this._nextStarConfig.Materials,
                            n = e.length;
                        this._materialComponents.forEach(function(e) {
                            e.node.active = !1
                        });
                        for (var o = [], r = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, this._config.Id), i = 0; i < e.length; i++) {
                            var a = e[i].Items,
                                s = a[0],
                                l = a[1],
                                u = a[2];
                            this._materialComponents[i] || ((A = cc.instantiate(this._materialPrefab)).setParent(this.UpStarMaterialNode), this._materialComponents[i] = A.getComponent(m.default)), this._materialComponents[i].SetBGWidth(210), this._materialComponents[i].node.active = !0, this._materialComponents[i].node.name = i.toString();
                            var d, h = void 0,
                                f = 0,
                                y = [];
                            switch (s) {
                                case 1:
                                    h = 0;
                                    break;
                                case 3:
                                    h = 0, f = r.ElementType;
                                    break;
                                case 4:
                                    f = 0, h = 0
                            }
                            d = I.default.GetHeroUpStarPools(s, h, l, f, o, !0);
                            for (var g = 0; g < d.length; g++) {
                                var _ = d[g];
                                if (y.push(_), o.push(_), y.length >= u) break
                            }
                            this._materialComponents[i].SetUI({
                                ItemId: h,
                                StarLevel: l,
                                ElementType: f
                            }, !0, y.length, u, i.toString());
                            var C = {
                                Component: null,
                                Type: s,
                                ItemId: h,
                                StarLevel: l,
                                Element: f,
                                NeedCount: u,
                                SelectMaterials: y
                            };
                            this._selectData.push(C)
                        }
                        var v = 0;
                        for (i = 0; i < t.length; i++) {
                            var S = {};
                            if (-1 == t[i].Items[0]) {
                                var w = this._config.PieceId;
                                S.ItemId = w
                            } else S.ItemId = t[i].Items[0];
                            var P = p.DataCenter.Instance.GetItemCount(S.ItemId);
                            if (S.Count = P, S.NeedCount = t[i].Items[1], t[i].Items[0] == b.CommonItemId.Diamond) this._diamondData = S, this.CurrencyBarItem.node.active = !0, this.CurrencyBarItem.Init(b.CommonItemId.Diamond, !1, void 0, S.NeedCount), this.CurrencyBarItem.SetFixedWidth(300);
                            else {
                                var A, T = v + n;
                                this._materialComponents[T] || ((A = cc.instantiate(this._materialPrefab)).setParent(this.UpStarMaterialNode), this._materialComponents[T] = A.getComponent(m.default)), this._materialComponents[T].SetBGWidth(220), this._materialComponents[T].node.active = !0, this._itemStarData.push(S);
                                var R = S.Count >= S.NeedCount ? S.NeedCount : S.Count;
                                this._materialComponents[T].SetUI({
                                    ItemId: S.ItemId
                                }, !1, R, S.NeedCount, S.ItemId.toString()), v++
                            }
                        }
                    }
                }, t.prototype.SetUpStarDesc = function() {
                    var e = this._config.UnAvailableTime ? A.TimeUtil.StrToTime(this._config.UnAvailableTime) : 0,
                        t = p.RpcComponent.Instance.ServerTime;
                    if (e && t > e) return this.ExpiredLabel.node.active = !0, this.ExpiredLabel.string = "newYearWeapon_expired".ToUILocale(), this.SingleEffectStar.string = "", this.SingleEffect.string = "", this.SingleEffectNode.active = !0, void(this.DoubleEffectNode.active = !1);
                    this.ExpiredLabel.node.active = !1, this.SingleEffectNode.active = this._isMaxStar, this.DoubleEffectNode.active = !this._isMaxStar, this._isMaxStar ? (this.SingleEffectStar.string = "starPiece_Info_exclusive_prefeix".ToUILocale().Fmt(this._model.Star), this.SingleEffect.string = this._curConfig.Id.ToNewYearWeaponStarDesc()) : (this.DoubleEffectStar1.string = "starPiece_Info_exclusive_prefeix".ToUILocale().Fmt(this._curStar), this.DoubleEffectStar2.string = "starPiece_Info_exclusive_prefeix".ToUILocale().Fmt(this._curStar + 1), this._curConfig ? this.DoubleEffect1.string = this._curConfig.Id.ToNewYearWeaponStarDesc() : this.DoubleEffect1.string = "superWeapon_none".ToUILocale(), this.DoubleEffect2.string = this._nextStarConfig.Id.ToNewYearWeaponStarDesc())
                }, t.prototype.SetUpLevelNode = function() {
                    this._quickUpLevel = 0;
                    var e = this.CheckNextFiveLevel(this._curLevel + this.QuickUpLevelStart);
                    if (this.MaxLevelLabel.node.active = this._isMaxLevel, this.UpLevelMaterialNode.active = !this._isMaxLevel, this.UpLevelButton.node.active = !this._isMaxLevel, this.QuickUpLevelButton.node.active = !this._isMaxLevel && e, this._itemLevelData = [], !this._isMaxLevel) {
                        var t = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponLevel_Config, this._curLevel),
                            n = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponLevel_Config, this._curLevel + 1).Materials;
                        if (this._levelMaterialComponents.forEach(function(e) {
                                e.node.active = !1
                            }), e) {
                            var o = this.CheckNextFiveLevel(this._curLevel + this.QuickUpLevelEnd);
                            this._quickUpLevel = o ? this.QuickUpLevelEnd : this.QuickUpLevelStart, this.QuickUpLevelLabel.string = "up_level".ToUILocale().Fmt(this._quickUpLevel)
                        }
                        for (var r = 0; r < n.length; r++) {
                            if (!this._levelMaterialComponents[r]) {
                                var i = cc.instantiate(this._materialPrefab);
                                i.setParent(this.UpLevelMaterialNode), this._levelMaterialComponents[r] = i.getComponent(m.default)
                            }
                            this._levelMaterialComponents[r].SetBGWidth(210), this._levelMaterialComponents[r].node.active = !0;
                            var a = {};
                            a.ItemId = n[r].Items[0];
                            var s = p.DataCenter.Instance.GetItemCount(a.ItemId);
                            a.Count = s, t.Materials[r] ? a.NeedCount = n[r].Items[1] - t.Materials[r].Items[1] : a.NeedCount = n[r].Items[1], this._itemLevelData.push(a), this._levelMaterialComponents[r].SetUI({
                                ItemId: a.ItemId
                            }, !1, a.Count, a.NeedCount, a.ItemId.toString())
                        }
                    }
                }, t.prototype.CheckNextFiveLevel = function(e, t) {
                    if (void 0 === t && (t = !1), e > this._curConfig.LevelCap) return !1;
                    var n = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponLevel_Config, this._curLevel),
                        o = p.ConfigDataComponent.Instance.GetConfigById(c.NewYearWeaponLevel_Config, e);
                    if (!o) return !1;
                    for (var r = 0; r < o.Materials.length; r++) {
                        var i, a = o.Materials[r],
                            s = a.Items[0];
                        if (i = n.Materials[r] ? a.Items[1] - n.Materials[r].Items[1] : a.Items[1], !p.DataCenter.Instance.IsItemEnough(s, i)) return t && h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(s.ToItemName())), !1
                    }
                    return !0
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "newYearWeapon_rule_title".ToUILocale(),
                        titles: ["newYearWeapon_rule_ssub_title".ToUILocale()],
                        contents: ["newYearWeapon_rule_content".ToUILocale()]
                    };
                    h.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    d.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnPreviewButtonClick = function() {
                    d.UIManager.Instance.ShowUIPanel(C.PanelConfig.NewYearWeaponDetailPanel.Path, this._config.Id)
                }, t.prototype.OnUpStarButtonClick = function() {
                    var e, t = this;
                    e = this._diamondData ? this._itemStarData.concat([this._diamondData]) : this._itemStarData;
                    for (var n = 0; n < e.length; n++)
                        if ((o = e[n]).Count < o.NeedCount) return h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o.ItemId.ToItemName())), void I.default.ShowItemGetWay(o.ItemId);
                    for (n = 0; n < this._selectData.length; n++) {
                        var o;
                        if ((o = this._selectData[n]).SelectMaterials.length < o.NeedCount) return void h.UIUtlity.ShowFloatingHint("superWeapon_hero_not_enough".ToUILocale())
                    }
                    var r = p.DataCenter.Instance.GetIntData(b.UserDataKey.Power),
                        i = new u.Req_Temple_SuperWeaponUpgrade;
                    i.Sid = this._config.Id, i.NewYearWeapon = !0;
                    var a = [];
                    for (n = 0; n < this._selectData.length; n++) a[n] = new u.IntArray, a[n].Items = this._selectData[n].SelectIds;
                    i.Materials = a, p.RpcComponent.Instance.Call(i, function(e) {
                        if (d.UIManager.Instance.ShowUIPanel(C.PanelConfig.BattlePowerChangePanel.Path, r, p.DataCenter.Instance.GetIntData(b.UserDataKey.Power)), e.Rewards && e.Rewards.length > 0 && h.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t._model = p.DataCenter.Instance.GetDataById(u.NewYearWeapon_Model, t._config.Id), t.SetLevelNode(), t.SetAttrNode(), t.SetMidNode(), t.BindReddot(), t.SetProgressBar(), t._model && 1 == t._model.Star) {
                            var n = t.NewYearWeaponNode.children[0];
                            n && (n.getComponent(sp.Skeleton).clearTracks(), n.getComponent(sp.Skeleton).setAnimation(0, "standby", !0), h.UIUtlity.OffSpineGray(t.NewYearWeaponNode))
                        }
                    })
                }, t.prototype.OnUpLevelButtonClick = function() {
                    this.RequestUpLevel(this._curLevel + 1)
                }, t.prototype.OnQuickUpLevelButtonClick = function() {
                    this._quickUpLevel > 0 && this.RequestUpLevel(this._curLevel + this._quickUpLevel)
                }, t.prototype.RequestUpLevel = function(e) {
                    var t = this;
                    if (this._model)
                        if (this._isMaxLevel) h.UIUtlity.ShowFloatingHint("common_max_level".ToUILocale());
                        else if (this._curConfig && e > this._curConfig.LevelCap) h.UIUtlity.ShowFloatingHint("superWeapon_max_star_level".ToUILocale());
                    else {
                        for (var n = 0; n < this._itemLevelData.length; n++) {
                            var o = this._itemLevelData[n];
                            if (o.Count < o.NeedCount) return h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o.ItemId.ToItemName())), void I.default.ShowItemGetWay(o.ItemId)
                        }
                        var r = p.DataCenter.Instance.GetIntData(b.UserDataKey.Power),
                            i = new u.Req_Temple_SuperWeaponLevelUp;
                        i.Sid = this._config.Id, i.NewLevel = e, i.NewYearWeapon = !0, p.RpcComponent.Instance.Call(i, function() {
                            d.UIManager.Instance.ShowUIPanel(C.PanelConfig.BattlePowerChangePanel.Path, r, p.DataCenter.Instance.GetIntData(b.UserDataKey.Power)), t._model = p.DataCenter.Instance.GetDataById(u.NewYearWeapon_Model, t._config.Id), t.SetAttrNode(), t.SetMidNode(), t.BindReddot()
                        })
                    }
                }, t.prototype.OnUpStarPreviewButtonClick = function() {
                    d.UIManager.Instance.ShowUIPanel(C.PanelConfig.CommonUpStarPreviewPanel.Path, v.UpStarPreviewType.NewYearWeapon, this._config.Id)
                }, t.prototype.OnClickToggle = function(e) {
                    var t = Number.parseInt(e.name);
                    if (this._selectToggle != t) {
                        if (t == l.UpLevel && !this._model) return this.CustomToggles[l.UpStar].isChecked = !0, void h.UIUtlity.ShowFloatingHint("superWeapon_active".ToUILocale().Fmt(this._config.Id.ToNewYearWeaponName()));
                        this._selectToggle = t, this.SetAttrNode(), this.SetMidNode()
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    for (var n = !1, o = this.UpStarMaterialNode.children.concat(this.UpLevelMaterialNode.children), r = 0; r < o.length; r++) {
                        var i = o[r].getComponent(m.default);
                        if (i && -1 != i.ItemRoot.children.indexOf(t)) {
                            n = !0;
                            break
                        }
                    }
                    if (n)
                        if (e < 0) {
                            var a = Math.abs(e);
                            h.UIUtlity.ShowItemTip(a, t)
                        } else {
                            var s = e;
                            this._clickMaterialIndex = s;
                            var l = this.GetHeroPools(s),
                                c = this._selectData[s],
                                u = [c.Type];
                            d.UIManager.Instance.ShowUIPanel(C.PanelConfig.SelectMaterialHeroPanel.Path, l, c.SelectMaterials, c.NeedCount, void 0, void 0, c.StarLevel, u)
                        }
                }, t.prototype.OnSelectCallback = function(e) {
                    if (this._selectData[this._clickMaterialIndex]) {
                        var t = this._selectData[this._clickMaterialIndex];
                        t.SelectMaterials = e, this._materialComponents[this._clickMaterialIndex] && this._materialComponents[this._clickMaterialIndex].SetUI({
                            ItemId: t.ItemId,
                            StarLevel: t.StarLevel,
                            ElementType: t.Element
                        }, !0, e.length, t.NeedCount)
                    }
                }, t.prototype.GetHeroPools = function(e) {
                    for (var t = this._selectData[e], n = [], o = 0; o < this._selectData.length; o++)
                        if (o != e)
                            for (var r = this._selectData[o].SelectMaterials, i = 0; i < r.length; i++) n.push(r[i]);
                    return I.default.GetHeroUpStarPools(t.Type, t.ItemId, t.StarLevel, t.Element, n)
                }, t.prototype.ClaerAvatarPrefab = function() {
                    this._currentAvatarPrefab && d.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
                }, t.prototype.OnUseBtnClick = function() {
                    var e = this;
                    this._canUseItem && (this.Mask.active = !0, this.UseEffect.node.active = !1, this.NewYearWeaponNode.angle = 0, cc.tween(this.NewYearWeaponNode).to(.8, {
                        angle: -10
                    }, {
                        easing: "backOut"
                    }).to(.8, {
                        angle: 10
                    }, {
                        easing: "backOut"
                    }).to(.8, {
                        angle: -10
                    }, {
                        easing: "backOut"
                    }).to(.8, {
                        angle: 10
                    }, {
                        easing: "backOut"
                    }).to(.8, {
                        angle: -10
                    }, {
                        easing: "backOut"
                    }).to(.8, {
                        angle: 0
                    }, {
                        easing: "backOut"
                    }).call(function() {
                        var t = new u.Req_Temple_NewYearWeaponUse;
                        t.Sid = e._config.Id, p.RpcComponent.Instance.Call(t, function(t) {
                            e.Mask.active = !1, e.NewYearWeaponNode.angle = 0, d.UIManager.Instance.ShowUIPanel(C.PanelConfig.DisplayRewardsPanel.Path, t.Rewards), R.RedDotDataHandler.RefreshNewYearWeaponRedDot()
                        }, function() {
                            e.Mask.active = !1, e.NewYearWeaponNode.angle = 0
                        })
                    }).start())
                }, t.prototype.onDestroy = function() {
                    this.ClaerAvatarPrefab()
                }, i([O(cc.Label)], t.prototype, "Name", void 0), i([O(cc.Button)], t.prototype, "RuleButton", void 0), i([O(cc.Button)], t.prototype, "PreviewButton", void 0), i([O(cc.Label)], t.prototype, "PreviewLabel", void 0), i([O(cc.Node)], t.prototype, "NewYearWeaponNode", void 0), i([O(sp.Skeleton)], t.prototype, "UseEffect", void 0), i([O(cc.Button)], t.prototype, "UseBtn", void 0), i([O(cc.Label)], t.prototype, "UseCDLabel", void 0), i([O(P.default)], t.prototype, "UseCDBar", void 0), i([O(cc.Node)], t.prototype, "StarNode", void 0), i([O(cc.Label)], t.prototype, "AttrTitle", void 0), i([O(cc.Label)], t.prototype, "LevelTag", void 0), i([O(cc.Label)], t.prototype, "CurLevelLimit", void 0), i([O(cc.Label)], t.prototype, "NextLevelLimit", void 0), i([O(cc.Node)], t.prototype, "ArrowNode", void 0), i([O(f.default)], t.prototype, "AttrComponents", void 0), i([O(cc.Node)], t.prototype, "UpStarNode", void 0), i([O(cc.Node)], t.prototype, "UpLevelNode", void 0), i([O(cc.Label)], t.prototype, "EffectTitle", void 0), i([O(cc.Node)], t.prototype, "SingleEffectNode", void 0), i([O(cc.Node)], t.prototype, "DoubleEffectNode", void 0), i([O(cc.Label)], t.prototype, "SingleEffectStar", void 0), i([O(cc.Label)], t.prototype, "SingleEffect", void 0), i([O(cc.Label)], t.prototype, "DoubleEffectStar1", void 0), i([O(cc.Label)], t.prototype, "DoubleEffect1", void 0), i([O(cc.Label)], t.prototype, "DoubleEffectStar2", void 0), i([O(cc.Label)], t.prototype, "DoubleEffect2", void 0), i([O(cc.Node)], t.prototype, "UpStarMaterialNode", void 0), i([O(S.default)], t.prototype, "CurrencyBarItem", void 0), i([O(cc.Button)], t.prototype, "UpStarButton", void 0), i([O(cc.Label)], t.prototype, "UpStarLabel", void 0), i([O(cc.Label)], t.prototype, "ExpiredLabel", void 0), i([O(cc.Label)], t.prototype, "MaxStarLabel", void 0), i([O(cc.Label)], t.prototype, "UpLevelTitle", void 0), i([O(cc.Node)], t.prototype, "UpLevelMaterialNode", void 0), i([O(cc.Button)], t.prototype, "UpLevelButton", void 0), i([O(cc.Label)], t.prototype, "UpLevelLabel", void 0), i([O(cc.Label)], t.prototype, "MaxLevelLabel", void 0), i([O(y.default)], t.prototype, "CustomToggles", void 0), i([O(cc.Button)], t.prototype, "ReturnButton", void 0), i([O(cc.Button)], t.prototype, "QuickUpLevelButton", void 0), i([O(cc.Label)], t.prototype, "QuickUpLevelLabel", void 0), i([O(cc.Button)], t.prototype, "UpStarPreviewButton", void 0), i([O(cc.Label)], t.prototype, "UpStarPreviewLabel", void 0), i([O(cc.Node)], t.prototype, "Mask", void 0), i([O(cc.Sprite)], t.prototype, "Bg", void 0), i([O(cc.Sprite)], t.prototype, "Bg1", void 0), i([k], t)
            }(d.BaseUIFullScreenPanel);
        n.default = M, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/LevelComponent2": "LevelComponent2",
        "../Components/NewYearWeaponProgressBar": "NewYearWeaponProgressBar",
        "../Components/StarPieceMaterialItem": "StarPieceMaterialItem",
        "./CommonUpStarPreviewPanel": "CommonUpStarPreviewPanel"
    }],
    NewYearWeaponListItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8c1a2UjRglPKIYXVlXXOR3z", "NewYearWeaponListItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("./LoadAssetHelper"),
            c = e("../../Components/GlobalConfigComponent"),
            u = e("../../RedDot/RedDotManager"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.TagLabel = null, t.TitleSprite = null, t.SpriteAtlas = null, t.LoadAssetHelper = null, t.ReddotNode = null, t._needInit = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t) {
                    this._needInit && (this._needInit = !1, this.node.on("click", this.OnItemClick, this)), this._index = t, this._newYearWeaponConfig = e, this.SetBg();
                    var n = {};
                    n.Value1 = e.Id, this.ReddotNode.active = u.RedDotManager.DataHandler.RefreshNewYearWeaponCardNode(n)
                }, t.prototype.SetBg = function() {
                    this.Bg.spriteFrame = this.SpriteAtlas.getSpriteFrame("banner_" + this._index), this.LoadAssetHelper.LoadSpriteFrame(c.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/newYearWeapon_" + this._newYearWeaponConfig.Id), this.TitleSprite), this.TagLabel.string = "newYearWeapon_tag".ToUILocale().Fmt(this._index + 2025)
                }, t.prototype.OnItemClick = function() {
                    a.UIManager.Instance.ShowUIPanel(s.PanelConfig.NewYearWeaponInfoPanel.Path, this._newYearWeaponConfig)
                }, i([h(cc.Sprite)], t.prototype, "Bg", void 0), i([h(cc.Label)], t.prototype, "TagLabel", void 0), i([h(cc.Sprite)], t.prototype, "TitleSprite", void 0), i([h(cc.SpriteAtlas)], t.prototype, "SpriteAtlas", void 0), i([h(l.default)], t.prototype, "LoadAssetHelper", void 0), i([h(cc.Node)], t.prototype, "ReddotNode", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    NewYearWeaponPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1e523qZrp5OfpEbLb1+Tope", "NewYearWeaponPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../Util/TimeUtil"),
            g = e("../Components/NewYearWeaponListItemComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.RuleButton = null, t.CustomLayout = null, t.Bg = null, t._assets = [], t._isInit = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.Title.string = "newYearWeapon_toggle_name".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), [4, p.AssetsManager.Instance.LoadAsset("SuperWeaponPanel/PNG/bg", cc.SpriteFrame)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._assets.push(e), this.Bg.spriteFrame = e, [2]) : (p.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Init = function() {
                    this.SetListData(), this.SetList()
                }, t.prototype.SetListData = function() {
                    this._newYearWeaponConfigs = [];
                    for (var e = u.ConfigDataComponent.Instance.GetArrayConfig(l.NewYearWeapon_Config), t = 0; t < e.length; t++) {
                        if (e[t].AvailableStartTime) {
                            var n = e[t].AvailableStartTime ? y.TimeUtil.StrToTime(e[t].AvailableStartTime) : 0;
                            if (u.RpcComponent.Instance.ServerTime < n) continue
                        }
                        this._newYearWeaponConfigs.push(e[t])
                    }
                    this._newYearWeaponConfigs.sort(function(e, t) {
                        var n = u.DataCenter.Instance.GetDataById(c.NewYearWeapon_Model, e.Id),
                            o = u.DataCenter.Instance.GetDataById(c.NewYearWeapon_Model, t.Id);
                        return n && !o ? -1 : !n && o ? 1 : t.Id - e.Id
                    })
                }, t.prototype.SetList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = p.AssetsManager.Instance.LoadAsset("NewYearWeaponPanel/NewYearWeaponListItemComponent", cc.Prefab), [4, Promise.all([e]).then(function(e) {
                                        t.isValid ? (t._assets.push(e[0]), t._itemPrefab = e[0]) : p.AssetsManager.Instance.UnloadAsset(e[0])
                                    })]);
                                case 1:
                                    if (n.sent(), !this.isValid) return [2];
                                    n.label = 2;
                                case 2:
                                    return this._isInit || (this.CustomLayout.Init(this._itemPrefab), this._isInit = !0), this.CustomLayout.RenderLayOut(this._newYearWeaponConfigs.length), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(g.default).Init(n._newYearWeaponConfigs[t], t)
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "newYearWeapon_rule_title".ToUILocale(),
                        titles: ["newYearWeapon_rule_ssub_title".ToUILocale()],
                        contents: ["newYearWeapon_rule_content".ToUILocale()]
                    };
                    f.UIUtlity.ShowRulePanel(e)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Button)], t.prototype, "RuleButton", void 0), i([_(d.default)], t.prototype, "CustomLayout", void 0), i([_(cc.Sprite)], t.prototype, "Bg", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/NewYearWeaponListItemComponent": "NewYearWeaponListItemComponent"
    }],
    NewYearWeaponProgressBar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "12ed3v55sxGUq04/F/phdBp", "NewYearWeaponProgressBar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Progress = null, t.MaxBarPercent = .836, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "progress", {
                    set: function(e) {
                        this.Progress.fillRange = e * this.MaxBarPercent
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([l(cc.Sprite)], t.prototype, "Progress", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    NewYearWeaponRateItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9a065Zyv05GAb9eD3l388tj", "NewYearWeaponRateItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/ItemCountComponent"),
            s = e("../Components/ItemComponent"),
            l = e("../Components/LevelComponent2"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/ConfigData/ConfigDataComponent"),
            p = e("../../../EZFramework/UIFrame/UIManager"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Panel/CommonRatePanel"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LeftItemNode = null, t.LeftStarNode = null, t.InfoLabel = null, t.DetailBtn = null, t.TagLabel = null, t._needInit = !0, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._needInit && (this._needInit = !1, this.DetailBtn.node.on("click", this.OnDetailBtnClick, this), this._itemCountPrefab = t, this.TagLabel.string = "newYearWeapon_currentlyEffective".ToUILocale()), this._data = e, this._starPrefab = n, this.LeftStarNode.active = !1, this.TagLabel.node.parent.active = e.CurrentStar, this.SetItemNode(), this.SetStarNode(), this._leftItemComponent.InitHero({
                        ItemId: e.ParamId
                    }, s.ItemComponentType.ItemCommon, 1, -40), this._leftItemComponent.SetCountBg(!1), this._leftLevelComponent.Init(e.CurStar, 0, l.LevelComponent2Type.Orange), this.LeftStarNode.active = !0, this.InfoLabel.string = "newYearWeapon_rate".ToUILocale().Fmt(e.CurStar)
                }, t.prototype.SetItemNode = function() {
                    if (!this._leftItemComponent) {
                        var e = cc.instantiate(this._itemCountPrefab);
                        e.parent = this.LeftItemNode, this._leftItemComponent = e.getComponent(a.default)
                    }
                }, t.prototype.SetStarNode = function() {
                    if (!this._leftLevelComponent) {
                        var e = cc.instantiate(this._starPrefab);
                        e.parent = this.LeftStarNode, this._leftLevelComponent = e.getComponent(l.default)
                    }
                }, t.prototype.OnDetailBtnClick = function() {
                    var e = u.ConfigDataComponent.Instance.GetConfigById(c.CardShowChance_Config, this._data.ChanceId);
                    p.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonRatePanel.Path, h.ShowRateType.NewYearWeapon, e.ShowLib)
                }, i([g(cc.Node)], t.prototype, "LeftItemNode", void 0), i([g(cc.Node)], t.prototype, "LeftStarNode", void 0), i([g(cc.Label)], t.prototype, "InfoLabel", void 0), i([g(cc.Button)], t.prototype, "DetailBtn", void 0), i([g(cc.Label)], t.prototype, "TagLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/ItemCountComponent": "ItemCountComponent",
        "../Components/LevelComponent2": "LevelComponent2",
        "../Panel/CommonRatePanel": "CommonRatePanel"
    }],
    NodeAwardData: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "476f4YgN9RGzKoR/WZ5usW6", "NodeAwardData"), Object.defineProperty(n, "__esModule", {
            value: !0
        });
        n.default = function() {
            this.ItemExist = !0
        }, cc._RF.pop()
    }, {}],
    NodeJiggling: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e760c9hVv9JfZdVClzW2jbQ", "NodeJiggling");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.animationEnabled = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.originalPosition = this.node.position, this.originalScaleY = this.node.scaleY
                }, t.prototype.ResetStatus = function() {
                    this.node.position = this.originalPosition, this.node.scaleY = this.originalScaleY
                }, t.prototype.CreateTweening = function(e) {
                    var t = cc.tween(this.node).delay(e || 0),
                        n = cc.tween(this.node).to(.2, {
                            position: this.originalPosition.add(cc.v3(0, 10, 0)),
                            scaleY: 1.13
                        }, {
                            easing: "quadOut"
                        }),
                        o = cc.tween(this.node).to(.2, {
                            position: this.originalPosition,
                            scaleY: 1
                        }, {
                            easing: "quadIn"
                        }),
                        r = cc.tween(this.node).delay(.5);
                    this.tweenAnimation = cc.tween(this.node).sequence(t, n, o, n, o, r).repeatForever()
                }, t.prototype.Enable = function(e) {
                    null == this.originalPosition && (this.originalPosition = this.node.position), this.tweenAnimation || this.CreateTweening(e), this.animationEnabled || (this.animationEnabled = !0, this.tweenAnimation.start())
                }, t.prototype.Disable = function() {
                    this.animationEnabled && (this.animationEnabled = !1, this.tweenAnimation.stop(), this.ResetStatus())
                }, i([s], t)
            }(cc.Component));
        n.default = l, cc._RF.pop()
    }, {}],
    NodePool: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3b754fj1URPjZgvm8CiqHzl", "NodePool"), Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var o = e("../../../EZFramework/EZFramework"),
            r = e("../Components/ItemClickComponent"),
            i = function() {
                function e(e) {
                    this._pool = new cc.NodePool, this._prefab = e, this._count = 0
                }
                return e.prototype.Get = function(e) {
                    var t;
                    return this._pool.size() > 0 ? t = this._pool.get() : (t = cc.instantiate(this._prefab), this._count++, e && t.getComponent(r.default) && t.getComponent(r.default).Rescale(e)), t
                }, e.prototype.Put = function(e) {
                    e && this._pool.put(e)
                }, e.prototype.Clear = function() {
                    this._pool.clear(), this._count = 0
                }, e.prototype.ShowInfo = function(e) {
                    o.EZLog.Log(e + "\u5bf9\u8c61\u6c60\u5927\u5c0f\u4e3a: " + this._count)
                }, e
            }();
        n.default = i, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Components/ItemClickComponent": "ItemClickComponent"
    }],
    NormalServerListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6cbfaSd0wtB/IzjUQCNi0lj", "NormalServerListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ServerStateType = void 0;
        var l, c = e("./HeadComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.Recommand = 0] = "Recommand", e[e.Busy = 1] = "Busy", e[e.Maintainance = 2] = "Maintainance"
        })(l = n.ServerStateType || (n.ServerStateType = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ServerStatePic = null, t.HeadRoot = null, t.PlayerName = null, t.ZoneName = null, t.UsedFlag = null, t.UsedLabel = null, t.ServerTag = null, t._headItemPrefab = null, t._headItem = null, t._currServerState = l.Busy, t._currentAtlas = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.UsedLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale(), null != this.ServerTag && (this.ServerTag.string = "serverSelect_zone".ToUILocale())
            }, t.prototype.SetHeadIcon = function(e, t, n) {
                return a(this, void 0, void 0, function() {
                    var o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return null != this._headItemPrefab ? [3, 2] : (o = this, [4, p.AssetsManager.Instance.LoadAsset(d.BundlePath.HeadComponent, cc.Prefab)]);
                            case 1:
                                if (o._headItemPrefab = r.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                r.label = 2;
                            case 2:
                                return null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(c.default), this._headItem.node.parent = this.HeadRoot), this._headItem.SetUI(e, 0), this._headItem.SetLevel(t), this._headItem.SetHeadFrame(n), [2]
                        }
                    })
                })
            }, t.prototype.SetHeadShowing = function(e) {
                this.HeadRoot.active = e
            }, t.prototype.SetPlayerName = function(e) {
                this.PlayerName.string = e
            }, t.prototype.SetPlayerNameShowing = function(e) {
                this.PlayerName.node.active = e
            }, t.prototype.SetZoneName = function(e) {
                this.ZoneName.string = e
            }, t.prototype.SetUsedShow = function(e) {
                this.UsedFlag.active = e
            }, t.prototype.SetServerState = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                if (this._currServerState == e) return [2];
                                switch (this._currServerState = e, t = "", e) {
                                    case l.Busy:
                                        p.EZLog.Log("ServerStateType.Busy"), t = "serverState_1";
                                        break;
                                    case l.Recommand:
                                        p.EZLog.Log("ServerStateType.Recommand"), t = "serverState_3";
                                        break;
                                    case l.Maintainance:
                                        p.EZLog.Log("ServerStateType.Maintainance"), t = "serverState_2"
                                }
                                return this._currentAtlas ? [3, 2] : (n = this, [4, p.AssetsManager.Instance.LoadAsset("PlayerSettingPanel/Png/PlayerSetting", cc.SpriteAtlas)]);
                            case 1:
                                if (n._currentAtlas = o.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._currentAtlas), [2];
                                o.label = 2;
                            case 2:
                                return this.ServerStatePic.spriteFrame = this._currentAtlas.getSpriteFrame(t), [2]
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                null != this._headItemPrefab && u.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), this._currentAtlas && p.AssetsManager.Instance.UnloadAsset(this._currentAtlas), this._headItemPrefab = null
            }, i([y(cc.Sprite)], t.prototype, "ServerStatePic", void 0), i([y(cc.Node)], t.prototype, "HeadRoot", void 0), i([y(cc.Label)], t.prototype, "PlayerName", void 0), i([y(cc.Label)], t.prototype, "ZoneName", void 0), i([y(cc.Node)], t.prototype, "UsedFlag", void 0), i([y(cc.Label)], t.prototype, "UsedLabel", void 0), i([y(cc.Label)], t.prototype, "ServerTag", void 0), i([f], t)
        }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "./HeadComponent": "HeadComponent"
    }],
    NoticeCommonItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "151aag2wCxH6aU5Wz45FlKb", "NoticeCommonItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Back = null, t.LeftLabel = null, t.RightLabel = null, t.CenterLabel = null, t
                }
                return r(t, e), t.prototype.Set = function(e, t, n, o) {
                    void 0 === e && (e = ""), void 0 === t && (t = ""), void 0 === n && (n = ""), void 0 === o && (o = !1), this.LeftLabel.string = e, this.RightLabel.string = n, this.CenterLabel.string = t, this.Back.active = o
                }, i([l(cc.Node)], t.prototype, "Back", void 0), i([l(cc.Label)], t.prototype, "LeftLabel", void 0), i([l(cc.RichText)], t.prototype, "RightLabel", void 0), i([l(cc.RichText)], t.prototype, "CenterLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    NoticeGroupComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "941c6sUKXdP0LznMi2SRuzP", "NoticeGroupComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            l = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var c = e("../../Components/RpcComponent"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../Consts/Etc"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("./NoticeCommonItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NoticeContainer = null, t.MaskNode = null, t.AdvanceNoticeComp = null, t.AdcanceEffectOnce = null, t._noticeNum = 3, t
                }
                return r(t, e), t.prototype.Set = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._noticePrefab ? [3, 2] : (t = this, [4, d.AssetsManager.Instance.LoadAsset("LabelsComponent/NoticeCommonItemComponent", cc.Prefab)]);
                                case 1:
                                    t._noticePrefab = o.sent(), o.label = 2;
                                case 2:
                                    return this.isValid ? (this._param = e, this._data = this.node.addComponent(I), [4, this._data.Init(e.ActivityId, e.NoticeType, this.ChangeAdvance.bind(this))]) : (d.AssetsManager.Instance.UnloadAsset(this._noticePrefab), [2]);
                                case 3:
                                    return o.sent(), [4, this.NextNotice()];
                                case 4:
                                    return o.sent(), this.schedule(function() {
                                        return a(n, void 0, void 0, function() {
                                            return s(this, function(e) {
                                                switch (e.label) {
                                                    case 0:
                                                        return [4, this.NextNotice()];
                                                    case 1:
                                                        return e.sent(), [2]
                                                }
                                            })
                                        })
                                    }, 2), [2]
                            }
                        })
                    })
                }, t.prototype.NextNotice = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, this._data.GetNormal()];
                                case 1:
                                    return e = t.sent(), [4, this.AddNotice(e)];
                                case 2:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.AddNotice = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e ? (this.NoticeContainer.children.length > this._noticeNum + 1 ? (t = this.NoticeContainer.children[0]).removeFromParent() : t = cc.instantiate(this._noticePrefab), n = t.getComponent(h.default), o = this._param.GetNoticeTextCall(e), n.Set.apply(n, o), this.NoticeContainer.addChild(t), r = Math.max(this._noticeNum + 1 - this.NoticeContainer.children.length, 0), this.ArrangeMsg(r + 1), [4, this.MoveMsg()]) : [2];
                                case 1:
                                    return i.sent(), this.ArrangeMsg(r), [2]
                            }
                        })
                    })
                }, t.prototype.ChangeAdvance = function(e) {
                    var t;
                    this.AdcanceEffectOnce.node.active = !0;
                    var n = this._param.GetAdvanceTextCall(e);
                    (t = this.AdvanceNoticeComp).Set.apply(t, l(n, [!0])), this.AdcanceEffectOnce.setAnimation(0, "UI_Effect_xingyunxunbao_mingdanshanguang", !1)
                }, t.prototype.ArrangeMsg = function(e) {
                    var t = this;
                    if (0 != this.NoticeContainer.children.length) {
                        var n = this.NoticeContainer.children[0].height * e;
                        this.NoticeContainer.children.forEach(function(e, o) {
                            e.y = -(e.height + t._param.SpacingY) * o - n
                        })
                    }
                }, t.prototype.MoveMsg = function() {
                    return a(this, void 0, Promise, function() {
                        var e = this;
                        return s(this, function() {
                            return new Promise(function(t) {
                                e.NoticeContainer.children.forEach(function(n, o) {
                                    e.MoveFun(n), 0 == o ? e.NoticeContainer.children.length >= e._noticeNum && e.MoveFun(n, function() {
                                        t(null)
                                    }, .8, 204) : 1 == o && e.NoticeContainer.children.length > e._noticeNum && e.MoveFun(n, function() {}, .8, 204)
                                })
                            }), [2]
                        })
                    })
                }, t.prototype.MoveFun = function(e, t, n, o) {
                    void 0 === n && (n = 1), void 0 === o && (o = 255), cc.tween(e).by(.5, {
                        y: e.height + this._param.SpacingY,
                        scaleX: n - e.scaleX,
                        scaleY: n - e.scaleY,
                        opacity: o - e.opacity
                    }).call(t).start()
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks(), d.AssetsManager.Instance.UnloadAsset(this._noticePrefab)
                }, i([g(cc.Node)], t.prototype, "NoticeContainer", void 0), i([g(cc.Node)], t.prototype, "MaskNode", void 0), i([g(h.default)], t.prototype, "AdvanceNoticeComp", void 0), i([g(sp.Skeleton)], t.prototype, "AdcanceEffectOnce", void 0), i([y], t)
            }(cc.Component);
        n.default = m;
        var I = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.PoolEmpty_ReqEmpty_ReqInterval = 10, t.ReqInterval = 30, t.MoniterInterval = 1, t.PoolLength = 30, t._lastReqTime = 0, t._lastResPoolLengthAdd = 0, t
            }
            return r(t, e), t.prototype.Init = function(e, t, n) {
                return void 0 === n && (n = null), a(this, void 0, void 0, function() {
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._activityId = e, this._noticeType = t, this._headPosition = 0, this._position = 0, this._normalPool = [], this._setAdvanceCall = n, [4, this.NeedNewData()];
                            case 1:
                                return o.sent(), [2]
                        }
                    })
                })
            }, t.prototype.GetNormal = function() {
                var e = this._normalPool[this._position];
                return this._position < this._normalPool.length - 2 ? this._position++ : this._position < this._normalPool.length - 1 ? (this.NeedNewData(), this._position++) : (this._position = this.PoolLength - this._lastResPoolLengthAdd, e = this._normalPool[this._position]), e
            }, t.prototype.NeedNewData = function() {
                var e = this,
                    t = c.RpcComponent.Instance.ServerTime;
                return new Promise(function(n) {
                    return a(e, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return 0 == this._normalPool.length && (t - this._lastReqTime) / p.Etc.SecondDuration > this.PoolEmpty_ReqEmpty_ReqInterval ? [4, this.ReqNotice()] : [3, 2];
                                case 1:
                                    e.sent(), n(!0), e.label = 2;
                                case 2:
                                    return this._normalPool && this._position >= this._normalPool.length - 2 && (t - this._lastReqTime) / p.Etc.SecondDuration > this.ReqInterval ? [4, this.ReqNotice()] : [3, 4];
                                case 3:
                                    e.sent(), n(!0), e.label = 4;
                                case 4:
                                    return [2, n(!1)]
                            }
                        })
                    })
                })
            }, t.prototype.ReqNotice = function() {
                var e = this;
                return this._reqing ? this._reqing : (this._lastReqTime = c.RpcComponent.Instance.ServerTime, this._reqing = new Promise(function(t) {
                    var n = new u.Req_Notice_GetByType;
                    n.ActivityId = e._activityId, n.Type = e._noticeType, c.RpcComponent.Instance.Call(n, function(n) {
                        e._reqing = void 0, n.Notice && (e._lastResPoolLengthAdd = Math.min(Math.max(e._normalPool.length + n.Notice.Normal.length - e.PoolLength, 0), e.PoolLength), n.Notice.Normal.forEach(function(t) {
                            e.AddNormalNotice(t)
                        }), n.Notice.Advance[0] && (e._advance = n.Notice.Advance[0], e._setAdvanceCall && e._setAdvanceCall(e._advance)), t(n))
                    })
                }))
            }, t.prototype.AddNormalNotice = function(e) {
                this._normalPool.push(e);
                var t = this._normalPool.length - 30;
                t > 0 && (this._normalPool.splice(0, t), this._headPosition += t)
            }, t.prototype.Destory = function() {
                this.unscheduleAllCallbacks()
            }, t
        }(cc.Component);
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/RpcComponent": "RpcComponent",
        "./NoticeCommonItemComponent": "NoticeCommonItemComponent"
    }],
    NoviceFormationComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "43aaf9GVSBFKKa868ZiviQX", "NoviceFormationComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../Panel/NoviceFormationPanel"),
            u = e("./ItemComponent"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.HeroContent = null, t.GoButton = null, t.GoLabel = null, t._heroItems = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.GoLabel.string = "task_goto".ToUILocale(), this.GoButton.node.on("click", this.OnGoButtonClick, this)
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    var t = this;
                    this._data = e, this.Title.string = c.default.GetLocalContent(e.Activity, e.Formation.NameKey), this._heroItems.forEach(function(e) {
                        e.node.active = !1
                    }), e.Formation.HeroIds.forEach(function(n, o) {
                        if (!t._heroItems[o]) {
                            var r = cc.instantiate(e.ItemPrefab);
                            r.parent = t.HeroContent, r.y = -20, r.name = n.toString(), t._heroItems[o] = r.getComponent(u.ItemComponent)
                        }
                        t._heroItems[o].node.active = !0, t._heroItems[o].Init({
                            ItemId: n
                        }, u.ItemComponentType.HeroInfo)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.HeroContent.children.indexOf(t)) {
                        for (var n = l.DataCenter.Instance.GetDataList(s.UserHero_Model), o = void 0, r = 0; r < n.length; r++) {
                            var i = n[r];
                            if (i.HeroId == e) {
                                o = i;
                                break
                            }
                        }
                        o ? a.UIManager.Instance.ShowUIPanel(d.PanelConfig.HeroInfoPanel.Path, o.Sid) : a.UIManager.Instance.ShowUIPanel(d.PanelConfig.HeroHandbookPanel.Path, e)
                    }
                }, t.prototype.OnGoButtonClick = function() {
                    a.UIManager.Instance.ShowUIPanel(d.PanelConfig.NoviceFormationGiftPanel.Path, this._data.Activity, this._data.Formation)
                }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Node)], t.prototype, "HeroContent", void 0), i([y(cc.Button)], t.prototype, "GoButton", void 0), i([y(cc.Label)], t.prototype, "GoLabel", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Panel/NoviceFormationPanel": "NoviceFormationPanel",
        "./ItemComponent": "ItemComponent"
    }],
    NoviceFormationGiftPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e15acU56BBH6pBun0BiqL6J", "NoviceFormationGiftPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/CustomLayout"),
            h = e("./CommonTaskTipComponent"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Channel/ChannelManager"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Auxiliary/UIUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.Title = null, t.ToggleScrollView = null, t.ToggleContent = null, t.ToggleNode = null, t.CustomLayout = null, t.BuyNode = null, t.SoldoutNode = null, t.BuyButton = null, t.BuyLabel = null, t.OldPriceNode = null, t.OldPriceLayout = null, t.OldPriceDesc = null, t.OldPrice = null, t.RedLine = null, t.VipNode = null, t.VipDesc = null, t.VipCount = null, t.CommonTaskTipComponent = null, t.ReturnButton = null, t._toggleIndex = 0, t._toggleNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OldPriceDesc.string = "firstCharge_originalPrice".ToUILocale(), this.VipDesc.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.CommonTaskTipComponent.InitData(), this._titleSprites = {}, this.ToggleScrollView.enabled = !1
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t), this._activityConfig = t[0], this._formation = t[1], this._packConfig = {}, this._activityConfig._Packs.forEach(function(e) {
                        n._packConfig[e.Id] = e
                    });
                    for (var o = 0; o < this._formation.PackIds.length; o++) {
                        var r = this._formation.PackIds[o],
                            i = this._packConfig[r];
                        if (!f.default.Instance.CheckGiftPackIsAllBuy(i, this._activityConfig._id)) {
                            this._toggleIndex = o;
                            break
                        }
                    }
                    var a = this._formation.PackIds[this._toggleIndex];
                    this._gift = this._packConfig[a]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), t = this.Bg, [4, f.default.LoadActivityTexture(this._formation.Bg)];
                                case 1:
                                    return t.spriteFrame = n.sent(), [4, this.SetTitleSprite()];
                                case 2:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), t || this.SetToggles(), this.SetItemNodes(), this.SetBuyButton()
                }, t.prototype.SetToggles = function() {
                    var e = this;
                    this.ToggleScrollView.enabled = this._formation.PackIds.length > 4, this._formation.PackIds.forEach(function(t, n) {
                        if (!e._toggleNodes[n]) {
                            var o = cc.instantiate(e.ToggleNode);
                            o.parent = e.ToggleContent, o.active = !0, o.name = n.toString(), o.on("toggle", e.OnToggleClick, e), e._toggleNodes[n] = o;
                            var r = cc.find("Background/CommonLongLabelRollComponent/Label", o).getComponent(cc.Label),
                                i = cc.find("checkmark/CommonLongLabelRollComponent/Label", o).getComponent(cc.Label),
                                a = e._packConfig[t];
                            r.string = a.Name, i.string = a.Name
                        }
                        e._toggleNodes[n].getComponent(cc.Toggle).isChecked = n == e._toggleIndex
                    })
                }, t.prototype.SetItemNodes = function() {
                    this._isInitList || (this.CustomLayout.Init(this._itemPrefab), this._isInitList = !0), this.CustomLayout.RenderLayOut(this._gift.Items.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        e.getComponent(g.ItemComponent).Init({
                            ItemId: n._gift.Items[t].Items[0],
                            Count: n._gift.Items[t].Items[1]
                        })
                    })
                }, t.prototype.SetBuyButton = function() {
                    var e = f.default.Instance.CheckGiftPackIsAllBuy(this._gift, this._activityConfig._id);
                    this.BuyNode.active = !e, this.SoldoutNode.active = e, e || (this.OldPriceNode.active = this._gift.ShowMoney > 0, this.VipNode.active = this._gift.VipPoint > 0, this.BuyLabel.node.y = this._gift.ShowMoney > 0 ? 23.5 : 0, this.BuyLabel.string = this._gift.Money > 0 ? y.default.Instance.CurrencySymbol + y.default.Instance.ExchangeMoney(this._gift.Money) : "shop_buyFree".ToUILocale(), this._gift.ShowMoney > 0 && (this.OldPrice.string = y.default.Instance.CurrencySymbol + y.default.Instance.ExchangeMoney(this._gift.ShowMoney), this.OldPriceLayout.updateLayout(), this.RedLine.setPosition(this.OldPrice.node.getPosition()), this.RedLine.width = this.OldPrice.node.width), this.VipCount.string = this._gift.VipPoint > 0 ? "x" + this._gift.VipPoint : "")
                }, t.prototype.SetTitleSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = this._toggleIndex, this._titleSprites[e] ? [3, 2] : [4, f.default.LoadActivityTexture(this._formation.Paths[e])];
                                case 1:
                                    if (t = n.sent(), !this.isValid || e != this._toggleIndex) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._titleSprites[e] = t, n.label = 2;
                                case 2:
                                    return this.Title.spriteFrame = this._titleSprites[e], [2]
                            }
                        })
                    })
                }, t.prototype.OnToggleClick = function(e) {
                    var t = Number(e.node.name);
                    if (t != this._toggleIndex) {
                        this._toggleIndex = t;
                        var n = this._formation.PackIds[this._toggleIndex];
                        this._gift = this._packConfig[n], this.SetTitleSprite(), this.SetItemNodes(), this.SetBuyButton()
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.CustomLayout.node.children.indexOf(t) && I.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.OnBuyButtonClick = function() {
                    var e = this._packConfig[this._formation.PackIds[this._toggleIndex]],
                        t = this._model.Packs[e.Id] && this._model.Packs[e.Id].Items[0] ? this._model.Packs[e.Id].Items[0] : 0;
                    f.default.RequestBuyActivityGift(t, e, this._activityConfig._id)
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, i([v(cc.Sprite)], t.prototype, "Bg", void 0), i([v(cc.Sprite)], t.prototype, "Title", void 0), i([v(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([v(cc.Node)], t.prototype, "ToggleContent", void 0), i([v(cc.Node)], t.prototype, "ToggleNode", void 0), i([v(d.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Node)], t.prototype, "BuyNode", void 0), i([v(cc.Node)], t.prototype, "SoldoutNode", void 0), i([v(cc.Button)], t.prototype, "BuyButton", void 0), i([v(cc.Label)], t.prototype, "BuyLabel", void 0), i([v(cc.Node)], t.prototype, "OldPriceNode", void 0), i([v(cc.Layout)], t.prototype, "OldPriceLayout", void 0), i([v(cc.Label)], t.prototype, "OldPriceDesc", void 0), i([v(cc.Label)], t.prototype, "OldPrice", void 0), i([v(cc.Node)], t.prototype, "RedLine", void 0), i([v(cc.Node)], t.prototype, "VipNode", void 0), i([v(cc.Label)], t.prototype, "VipDesc", void 0), i([v(cc.Label)], t.prototype, "VipCount", void 0), i([v(h.default)], t.prototype, "CommonTaskTipComponent", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent"
    }],
    NoviceFormationPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a8f02KQTaFNOZv/hsQNYJH+", "NoviceFormationPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../Components/CustomLayout"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/ActivityCountDownComponent"),
            f = e("../Components/NoviceFormationComponent"),
            y = e("../../Auxiliary/GameRecord"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.ActivityCountDownComponent = null, t.CustomLayout = null, t.ReturnButton = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("NoviceFormationPanel/Components/NoviceFormationComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._formationPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._activityConfig = c.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._activityConfig.Common.Title
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.ActivityCountDownComponent.Init(this._activityConfig.Common), y.default.SetItem(y.GameRecordDefine.NoviceFormationDaily, c.RpcComponent.Instance.ServerTime), l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._activityConfig._id)), this._isInitList || (this.CustomLayout.Init(this._formationPrefab), this._isInitList = !0, this.CustomLayout.RenderLayOut(this._activityConfig.__Formations.length))
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = {};
                        o.Activity = n._activityConfig, o.ItemPrefab = n._itemPrefab, o.Formation = n._activityConfig.__Formations[t], e.getComponent(f.default).Init(o)
                    })
                }, t.GetLocalContent = function(e, t) {
                    return n.ContentMap || (n.ContentMap = {}, e._Locale.forEach(function(e) {
                        n.ContentMap[e.Id] = e.Content
                    })), n.ContentMap[t]
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    n.ContentMap = null
                }, i([I(cc.Label)], t.prototype, "Title", void 0), i([I(h.default)], t.prototype, "ActivityCountDownComponent", void 0), i([I(u.default)], t.prototype, "CustomLayout", void 0), i([I(cc.Button)], t.prototype, "ReturnButton", void 0), n = i([m], t)
            }(l.BaseUIFullScreenPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/NoviceFormationComponent": "NoviceFormationComponent"
    }],
    NoviceTrainingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eec67sgJXJOkofwfciOAoDv", "NoviceTrainingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/ActivityCountDownComponent"),
            d = e("../Components/CustomProgressBar"),
            h = e("../../Components/DataCenter"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/RpcComponent"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../Components/ItemComponent"),
            I = e("../Components/LoadAssetHelper"),
            _ = e("../../Components/Components"),
            C = e("../Components/HeadComponent"),
            v = e("../../Auxiliary/EventKeys"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("./NoviceTrainingRewardPanel"),
            w = e("../Battle/BattleManager"),
            P = e("../../../Consts/Consts"),
            A = e("../../RedDot/RedDotDataHandler"),
            T = e("../../../ShareConsts/BattleConsts"),
            R = e("../Components/CustomToggle"),
            L = e("../Components/LevelComponent"),
            k = e("../Components/SectorProgressBar"),
            O = e("../Components/NoviceTrainingProgressComponent"),
            M = e("../../RedDot/RedDotManager"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property,
            E = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.AvatarNode = null, t.BossLevelCustomToggleContainer = null, t.ReportButton = null, t.ReportButtonLabel = null, t.DayValueLabel = null, t.PowerLabel = null, t.PlayerHintLabel = null, t.PlayerName = null, t.RecommendLabel = null, t.RecommendHeroLayoutNode = null, t.RecommendRichText = null, t.RewardLabel = null, t.RewardDetailLabel = null, t.RewardDetailButton = null, t.ItemLayoutNode = null, t.TitleLabel1 = null, t.CustomProgressBar = null, t.Progress = null, t.ProgressLabel = null, t.ProgressItemLayoutNode = null, t.BoxButton = null, t.BoxButtonRedDot = null, t.HistoryValueLabel = null, t.BoxProgressLabel = null, t.BattleButton = null, t.BattleButtonLabel = null, t.BattleButtonRedDot = null, t.RuleButton = null, t.Title = null, t.ActivityCountDownComponent = null, t.ElementSprite = null, t.ProfessionSprite = null, t.Stars = null, t.ZoneRewards = null, t.BackButton = null, t._recommendHeroComponents = [], t._showRewardItems = [], t._progressRewardItems = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(v.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset(f.BundlePath.HeadComponent, cc.Prefab), this.LoadDynamicAsset("NoviceTrainingPanel/NoviceTrainingProgressComponent", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._headerPrefab = e[1], t._progressRewardPrefab = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ReportButton.node.on("click", this.OnReportButtonClick, this), this.RewardDetailButton.node.on("click", this.OnRewardDetailButtonClick, this), this.BoxButton.node.on("click", this.OnBoxButtonClick, this), this.BattleButton.node.on("click", this.OnBattleButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.ReportButtonLabel.string = "noviceTraining_record".ToUILocale(), this.PlayerHintLabel.string = "noviceTraining_firstPlayer".ToUILocale(), this.RecommendLabel.string = "noviceTraining_recommendHero".ToUILocale(), this.RewardLabel.string = "AccumulateRecharge_rewardPreview".ToUILocale(), this.TitleLabel1.string = "noviceTraining_bossReward".ToUILocale(), this.ProgressLabel.string = "total_damage".ToUILocale(), this.RewardDetailLabel.string = "rewardDetail".ToUILocale(), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(I.default))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._activityConfig = h.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._activityConfig.Common.Title, this.ActivityCountDownComponent.Init(this._activityConfig.Common)
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this._activityModel = h.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), n._CurrentDay = g.default.Instance.ComputeContiuousTime(this._activityConfig.Common), !this._bossToggles) {
                        this._bossToggles = [], this._missionsConfig = [];
                        for (var o = this._activityConfig.CustomPart.MissionIds[n._CurrentDay - 1].Items, r = function(e) {
                                i._missionsConfig.push(i._activityConfig.Missions.find(function(t) {
                                    return t.Id == o[e]
                                }))
                            }, i = this, a = 0; a < o.length; a++) r(a);
                        this.ConfigBossItems()
                    }
                    this.DayValueLabel.string = "firstCharge_dayth".ToUILocale().Fmt(n._CurrentDay), t || (this.ConfigRecommendHero(), this.InitSelectIndex()), this.ConfigShowRewards(), this.SetBossInfo(), this.ConfigProgressRewards(), this.RequestTrainingInfo(), this.RefreshRedDot(), w.BattleManager.Instance.IsInBattle(P.MapType.NoviceTraining) ? this.BattleButtonLabel.string = "idlebattle_inBattle".ToUILocale() : this.BattleButtonLabel.string = "HolyRelic_challenge".ToUILocale()
                }, t.prototype.RefreshRedDot = function() {
                    this.BoxButtonRedDot.active = A.RedDotDataHandler.Instance.RefreshNoviceTrainingZoneRewardNode(), this.TogglesBindRedDot()
                }, t.prototype.TogglesBindRedDot = function() {
                    this._redDotArr || (this._redDotArr = []);
                    for (var e = h.DataCenter.Instance.GetIntData(P.UserDataKey.Power), t = 0; t < this._bossToggles.length; t++) {
                        var o = _.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, this._missionsConfig[t].Id),
                            r = this._redDotArr[t];
                        r || (r = {}, this._redDotArr.push(r));
                        var i = this.GetCurMissionProgress(n._CurrentDay, t);
                        M.RedDotManager.Instance.BindNodeByResult(this._bossToggles[t].node, r, 0 == i && e >= o.BattlePower)
                    }
                }, t.prototype.RefreshBattleBtnRedDot = function() {
                    var e = h.DataCenter.Instance.GetIntData(P.UserDataKey.Power),
                        t = this._missionsConfig[this._selectIndex],
                        o = _.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, t.Id),
                        r = this.GetCurMissionProgress(n._CurrentDay, this._selectIndex);
                    o && e >= o.BattlePower && 0 == r ? this.BattleButtonRedDot.active = !0 : this.BattleButtonRedDot.active = !1
                }, t.prototype.ConfigRecommendHero = function() {
                    for (var e = 0; e < this._activityConfig.CustomPart.HeroIds.length; e++) {
                        var t = this._recommendHeroComponents[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.RecommendHeroLayoutNode), t = n.getComponent(m.ItemComponent), this._recommendHeroComponents.push(t)
                        }
                        t.Init({
                            ItemId: this._activityConfig.CustomPart.HeroIds[e]
                        }, m.ItemComponentType.HeroInfo)
                    }
                    this.RecommendRichText.string = "noviceTraining_recommendHeroTips".ToUILocale().Fmt(g.default.GetHeroAttributeValue(this._activityConfig.CustomPart.HeroBonus[0].Items[1], this._activityConfig.CustomPart.HeroBonus[0].Items[0]))
                }, t.prototype.ConfigShowRewards = function() {
                    for (var e = 0; e < this._activityConfig.CustomPart.ShowRewards.length; e++) {
                        var t = this._showRewardItems[e];
                        if (!t) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.setParent(this.ItemLayoutNode), t = n.getComponent(m.ItemComponent), this._showRewardItems.push(t)
                        }
                        var o = this._activityConfig.CustomPart.ShowRewards[e].Items;
                        t.Init({
                            ItemId: o[0],
                            Count: o[1]
                        }, m.ItemComponentType.ItemCommon)
                    }
                }, t.prototype.ConfigBossItems = function() {
                    for (var e = 0; e < this._missionsConfig.length; e++) {
                        var t = this._bossToggles[e];
                        if (!t) {
                            var n = cc.instantiate(this.BossLevelCustomToggleContainer.children[0]);
                            n.setParent(this.BossLevelCustomToggleContainer), t = n.getComponent(R.default), this._bossToggles.push(t)
                        }
                        t.node.name = e.toString(), t.node.on("click", this.OnBossItemClick, this), t.node.active = !0, t.Init(("noviceTraining_difficulty" + e).ToUILocale())
                    }
                }, t.prototype.InitSelectIndex = function() {
                    for (var e = 0; e < this._missionsConfig.length; e++) {
                        var t = this.GetCurMissionProgress(n._CurrentDay, e);
                        if (!t || t < 100) {
                            this._selectIndex = e;
                            break
                        }
                        e == this._missionsConfig.length - 1 && (this._selectIndex = this._missionsConfig.length - 1)
                    }
                    this._bossToggles[this._selectIndex].isChecked = !0
                }, t.prototype.OnBossItemClick = function(e) {
                    var t = parseInt(e.node.name);
                    t != this._selectIndex && (this._selectIndex = t, this.SetBossInfo(), this.ConfigProgressRewards(), this.SetTrainingInfo(this._noviceTrainingInfo))
                }, t.prototype.SetBossInfo = function() {
                    var e = this._missionsConfig[this._selectIndex],
                        t = _.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, e.Avatar);
                    this._loadAssetHelper.LoadPrefab("UIHeroAvatar_" + t.Model + "/Avatar", this.AvatarNode, null, 1);
                    var o = _.ConfigDataComponent.Instance.GetConfigById(u.MapBase_Config, e.Id);
                    this.PowerLabel.string = o.BattlePower.toString(), this.BattleButton.node.active = this.GetCurMissionProgress(n._CurrentDay, this._selectIndex) < 100, this.RefreshBattleBtnRedDot();
                    var r = b.UIUtlity.GetHeroElementIcon(t.ElementType);
                    this.ElementSprite.spriteFrame = r, this.ProfessionSprite.spriteFrame = b.UIUtlity.COMMON_ATLAS4.getSpriteFrame("profession_" + t.Career);
                    var i = L.LevelComponent.GetLevelShowType(t.CoreHero, t.ElementType);
                    this.Stars.Init(t.StarLevel, 0, L.StarLayoutMode.Middle, i)
                }, t.prototype.ConfigProgressRewards = function() {
                    for (var e = this._missionsConfig[this._selectIndex], t = 0; t < e.ProgressRewards.length; t++) {
                        var o = e.ProgressRewards[t].Items,
                            r = this._progressRewardItems[t];
                        if (!r) {
                            var i = cc.instantiate(this._progressRewardPrefab);
                            i.setParent(this.ProgressItemLayoutNode), r = i.getComponent(O.default), this._progressRewardItems.push(r)
                        }
                        r.Init(o[1], o[2], this.IsMissionRewardReceived(n._CurrentDay, t), o[0], this._itemPrefab), r.node.x = this.ProgressItemLayoutNode.width * (o[0] / 100) - this.ProgressItemLayoutNode.width / 2
                    }
                    this.CustomProgressBar.progress = this.GetCurMissionProgress(n._CurrentDay, this._selectIndex) / 100, this.Progress.string = this.GetCurMissionProgress(n._CurrentDay, this._selectIndex).toString();
                    var a = 0;
                    for (t = 0; t < n._CurrentDay; t++) this._activityModel.IntMap[100 * t + this._selectIndex] && (a = Math.max(a, this._activityModel.IntMap[100 * t + this._selectIndex]));
                    n._HistoryRecord = a, this.HistoryValueLabel.string = "noviceTraining_highestInHistory".ToUILocale() + "{0}%".Fmt(a)
                }, t.prototype.GetCurMissionProgress = function(e, t) {
                    return this._activityModel.IntMap[100 * e + t] ? this._activityModel.IntMap[100 * e + t] : 0
                }, t.prototype.IsMissionRewardReceived = function(e, t) {
                    var n;
                    return (null === (n = this._activityModel.Int2DArray[e - 1]) || void 0 === n ? void 0 : n.Items[this._selectIndex]) > t
                }, t.prototype.RequestTrainingInfo = function() {
                    var e = this,
                        t = new c.Req_Activity_NoviceTrainingInfo;
                    t.ActivityId = this._activityConfig._id, y.RpcComponent.Instance.Call(t, function(t) {
                        e._noviceTrainingInfo = t, e.SetTrainingInfo(t)
                    })
                }, t.prototype.SetTrainingInfo = function(e) {
                    var t = e.PlayerInfos[this._selectIndex];
                    if (t && t.HeadIcon) {
                        if (!this._playerHeadComponent) {
                            var n = cc.instantiate(this._headerPrefab);
                            n.setParent(this.PlayerName.node.parent.parent), n.y = 21, n.scale = 124 / 144, this._playerHeadComponent = n.getComponent(C.default)
                        }
                        this._playerHeadComponent.node.active = !0, this._playerHeadComponent.SetUI(t.HeadIcon, t.HeadFrame, t.Title), this.PlayerName.node.parent.y = -72, this.PlayerName.string = t.Name
                    } else this._playerHeadComponent && (this._playerHeadComponent.node.active = !1), this.PlayerName.node.parent.y = 21, this.PlayerName.string = "rank_no_people".ToUILocale();
                    var o = this._missionsConfig[this._selectIndex];
                    this.ZoneRewards.Init(e.Infos[this._selectIndex] || 0, o.Num, null, "noviceTraining_allZoneReward".ToUILocale())
                }, t.prototype.OnReportButtonClick = function() {
                    var e = this;
                    n._CurrentBattleMapId = this._missionsConfig[this._selectIndex].Id, n._CurrentIndex = this._selectIndex, n._CurrentActivityConfig = this._activityConfig;
                    var t = new c.Req_Activity_NoviceTrainingInfo;
                    t.ActivityId = this._activityConfig._id, y.RpcComponent.Instance.Call(t, function(t) {
                        e._noviceTrainingInfo = t, l.UIManager.Instance.ShowUIPanel(f.PanelConfig.NoviceTrainingReportPanel.Path, t.Messages[e._selectIndex]), e.SetTrainingInfo(t)
                    })
                }, t.prototype.OnRewardDetailButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.NoviceTrainingRewardPanel.Path, this._activityConfig._id, S.NoviceTrainingRewardMode.Normal)
                }, t.prototype.OnBoxButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.NoviceTrainingRewardPanel.Path, this._activityConfig._id, S.NoviceTrainingRewardMode.Zone)
                }, t.prototype.OnBattleButtonClick = function() {
                    w.BattleManager.Instance.IsInBattle(P.MapType.NoviceTraining) ? w.BattleManager.Instance.ResumePlayBattle(P.MapType.NoviceTraining) : n.StartBattle(this._missionsConfig[this._selectIndex].Id, this._selectIndex, this._activityConfig)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "noviceTraining_ruleTip".ToUILocale(),
                        titles: ["noviceTraining_ruleTip1".ToUILocale()],
                        contents: ["noviceTraining_ruleContent".ToUILocale()]
                    };
                    b.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent == this.ItemLayoutNode || t.parent == this.ProgressItemLayoutNode ? b.UIUtlity.ShowItemTip(t.getComponent(m.ItemComponent).ItemId, t) : t.parent == this.RecommendHeroLayoutNode && l.UIManager.Instance.ShowUIPanel(f.PanelConfig.HeroHandbookPanel.Path, t.getComponent(m.ItemComponent).ItemId)
                }, t.InitBattle = function() {
                    l.Game.EventDispatcher.Only(P.GameEventIds.StartBattle.Fmt(P.MapType.NoviceTraining), n.StartBattle, n), l.Game.EventDispatcher.Only(P.GameEventIds.RestartBattle.Fmt(P.MapType.NoviceTraining), n.RestartBattle, n), l.Game.EventDispatcher.Only(P.GameEventIds.SettleBattle.Fmt(P.MapType.NoviceTraining), n.SettleBattle, n), l.Game.EventDispatcher.Only(P.GameEventIds.CancelBattle.Fmt(P.MapType.NoviceTraining), n.CancelBattle, n), l.Game.EventDispatcher.Only(P.GameEventIds.BattleSwitchToBackground.Fmt(P.MapType.NoviceTraining), n.OnBattleSwitchToBackground, n)
                }, t.RestartBattle = function() {
                    n.StartBattle(n._CurrentBattleMapId, n._CurrentIndex, n._CurrentActivityConfig)
                }, t.StartBattle = function(e, t, o) {
                    n._CurrentBattleMapId = e, n._CurrentIndex = t, n._CurrentActivityConfig = o, l.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.RequestChallenge(e)
                    }, [e], n._CurrentActivityConfig._id)
                }, t.RequestChallenge = function(e) {
                    var t = new c.Req_Activity_NoviceTrainingChallenge;
                    t.ActivityId = n._CurrentActivityConfig._id, t.Formation = e[0], t.MissionIndex = n._CurrentIndex, y.RpcComponent.Instance.Call(t, function(e) {
                        var t = g.default.Instance.IsGameModuleOpen(P.GameModuleType.NoviceTrainingSkip) && g.default.Instance.IsGameModuleUnlock(P.GameModuleType.NoviceTrainingSkip)[0];
                        w.BattleManager.Instance.StartPlay(e.Report, {
                            CanPlayInBackground: !1,
                            CanSkipPlay: t,
                            UserParams: {
                                isRecording: !1
                            }
                        })
                    }.bind(this))
                }, t.SettleBattle = function(e) {
                    var t = new c.Req_Map_BattleSettlement;
                    t.MapType = e.MapType, y.RpcComponent.Instance.Call(t, function(t) {
                        var o;
                        o = n.settlement_prefab_path, e.SettleParams = [t.Result], w.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementWinPanel.Path, o, e, t.Rewards, T.CampType.Attacker)
                    })
                }, t.CancelBattle = function(e) {
                    var t = new c.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, y.RpcComponent.Instance.Call(t, null)
                }, t.OnBattleSwitchToBackground = function() {}, t.SortHeroList = function(e, t) {
                    var n = [];
                    e.forEach(function(e) {
                        n.push(e)
                    });
                    var o = h.DataCenter.Instance.ActivityConfigs[t].CustomPart.HeroIds,
                        r = this.GetHighestPowerHeroSid(n, o);
                    n.sort(function(e, t) {
                        return r.includes(e.Sid) && r.includes(t.Sid) ? t.Power - e.Power : r.includes(e.Sid) ? -1 : r.includes(t.Sid) ? 1 : t.Power - e.Power
                    });
                    for (var i = 0; i < r.length; i++) 0 == r[i] && n.unshift(this.GetHeroData(-o[i], o[i]));
                    return n
                }, t.GetHeroData = function(e, t, n, o) {
                    void 0 === n && (n = 1);
                    var r = o,
                        i = _.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, t);
                    r || (r = i.StarLevel ? i.StarLevel : 1);
                    var a = Math.min(r, i.MaxStarLevel),
                        s = _.ConfigDataComponent.Instance.GetConfigById(u.HeroStar_Config, a),
                        l = Math.min(n, s.MaxLevel),
                        p = {
                            Sid: e,
                            HeroId: t,
                            Level: l,
                            StarLevel: a,
                            Power: _.ConfigCacheComponent.Instance.GetHeroPowerByStarAndLevel(t, a, l)
                        };
                    return c.UserHero_Model.create(p)
                }, t.GetHighestPowerHeroSid = function(e, t) {
                    for (var n = [], o = [], r = 0; r < t.length; r++) o.push(0), n.push(0);
                    for (r = 0; r < e.length; r++) {
                        var i = t.indexOf(e[r].HeroId); - 1 != i && e[r].Power > o[i] && (o[i] = e[r].Power, n[i] = e[r].Sid)
                    }
                    return n
                }, t._HistoryRecord = 0, t.settlement_prefab_path = "NoviceTrainingPanel/NoviceTrainingSettlementComponent", t._CurrentBattleMapId = 0, t._CurrentIndex = 0, t._CurrentActivityConfig = null, i([N(cc.Node)], t.prototype, "AvatarNode", void 0), i([N(cc.Node)], t.prototype, "BossLevelCustomToggleContainer", void 0), i([N(cc.Button)], t.prototype, "ReportButton", void 0), i([N(cc.Label)], t.prototype, "ReportButtonLabel", void 0), i([N(cc.Label)], t.prototype, "DayValueLabel", void 0), i([N(cc.Label)], t.prototype, "PowerLabel", void 0), i([N(cc.Label)], t.prototype, "PlayerHintLabel", void 0), i([N(cc.Label)], t.prototype, "PlayerName", void 0), i([N(cc.Label)], t.prototype, "RecommendLabel", void 0), i([N(cc.Node)], t.prototype, "RecommendHeroLayoutNode", void 0), i([N(cc.RichText)], t.prototype, "RecommendRichText", void 0), i([N(cc.Label)], t.prototype, "RewardLabel", void 0), i([N(cc.Label)], t.prototype, "RewardDetailLabel", void 0), i([N(cc.Button)], t.prototype, "RewardDetailButton", void 0), i([N(cc.Node)], t.prototype, "ItemLayoutNode", void 0), i([N(cc.Label)], t.prototype, "TitleLabel1", void 0), i([N(d.default)], t.prototype, "CustomProgressBar", void 0), i([N(cc.Label)], t.prototype, "Progress", void 0), i([N(cc.Label)], t.prototype, "ProgressLabel", void 0), i([N(cc.Node)], t.prototype, "ProgressItemLayoutNode", void 0), i([N(cc.Button)], t.prototype, "BoxButton", void 0), i([N(cc.Node)], t.prototype, "BoxButtonRedDot", void 0), i([N(cc.Label)], t.prototype, "HistoryValueLabel", void 0), i([N(cc.Label)], t.prototype, "BoxProgressLabel", void 0), i([N(cc.Button)], t.prototype, "BattleButton", void 0), i([N(cc.Label)], t.prototype, "BattleButtonLabel", void 0), i([N(cc.Node)], t.prototype, "BattleButtonRedDot", void 0), i([N(cc.Button)], t.prototype, "RuleButton", void 0), i([N(cc.Label)], t.prototype, "Title", void 0), i([N(p.default)], t.prototype, "ActivityCountDownComponent", void 0), i([N(cc.Sprite)], t.prototype, "ElementSprite", void 0), i([N(cc.Sprite)], t.prototype, "ProfessionSprite", void 0), i([N(L.LevelComponent)], t.prototype, "Stars", void 0), i([N(k.default)], t.prototype, "ZoneRewards", void 0), i([N(cc.Button)], t.prototype, "BackButton", void 0), n = i([B], t)
            }(l.BaseUIFullScreenPanel);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/NoviceTrainingProgressComponent": "NoviceTrainingProgressComponent",
        "../Components/SectorProgressBar": "SectorProgressBar",
        "./NoviceTrainingRewardPanel": "NoviceTrainingRewardPanel"
    }],
    NoviceTrainingProgressComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d8a84BzqUhED43vrEfVgvJC", "NoviceTrainingProgressComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("./ItemComponent"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../../Auxiliary/EventKeys"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.ProgressNode = null, t.ProgressLabel = null, t._needInit = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    if (this._needInit) {
                        this._needInit = !1;
                        var i = cc.instantiate(r);
                        i.parent = this.ItemNode, this._item = i.getComponent(s.ItemComponent)
                    }
                    this._item.Init({
                        ItemId: e,
                        Count: t
                    }, s.ItemComponentType.ItemCommon), n ? (this._item.SetReceivedTagState(!0), this.ProgressNode.spriteFrame = l.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_on")) : (this._item.SetReceivedTagState(!1), this.ProgressNode.spriteFrame = l.UIUtlity.COMMON_ATLAS5.getSpriteFrame("progressNode_off")), this.ProgressLabel.string = "{0}%".Fmt(o)
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent == this.ItemNode && l.UIUtlity.ShowItemTip(t.getComponent(s.ItemComponent).ItemId, t)
                }, i([d(cc.Node)], t.prototype, "ItemNode", void 0), i([d(cc.Sprite)], t.prototype, "ProgressNode", void 0), i([d(cc.Label)], t.prototype, "ProgressLabel", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    NoviceTrainingReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a8e004KgGpI1rIMTfHM0GcL", "NoviceTrainingReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Components/Components"),
            c = e("../Components/HeadComponent"),
            u = e("../Battle/BattleManager"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Fixed), t.TitleLabel = null, t.NoviceTrainingReportItem = null, t.EmptyNode = null, t.ReportTitle = null, t.HeadComponent = null, t.PlayerName = null, t.Power = null, t.PlayBtn = null, t.PlayBtnLabel = null, t._reportData = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "allianceWar_report".ToUILocale(), this.EmptyNode.string = "noviceTraining_empty_report".ToUILocale(), this.ReportTitle.string = "noviceTraining_reportTitle".ToUILocale(), this.PlayBtnLabel.string = "FavorHandbook_Play".ToUILocale(), this.PlayBtn.node.on("click", this.OnPlayBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._reportData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this._reportData && this._reportData.AttackerInfo ? this.SetItem() : (this.EmptyNode.node.active = !0, this.NoviceTrainingReportItem.active = !1))
                }, t.prototype.SetItem = function() {
                    this.EmptyNode.node.active = !1, this.NoviceTrainingReportItem.active = !0, this.HeadComponent.SetUI(this._reportData.AttackerInfo.HeadIcon, this._reportData.AttackerInfo.HeadFrame, this._reportData.AttackerInfo.Title), this.PlayerName.string = this._reportData.AttackerInfo.Name, this.Power.string = "noviceTraining_power".ToUILocale().Fmt(this._reportData.AttackerInfo.Power.toString())
                }, t.prototype.OnPlayBtnClick = function() {
                    var e = this,
                        t = new a.Req_Player_GetCommonReport;
                    t.Id = this._reportData.Report, l.RpcComponent.Instance.Call(t, function(t) {
                        u.BattleManager.Instance.StartPlay(t.Reports[0], {
                            CanCanel: !1,
                            CanRestart: !1,
                            CanPlayInBackground: !1,
                            CanSkipPlay: !0,
                            UserParams: {
                                isRecording: !0
                            },
                            SkipPlayRound: 1
                        }).SettleParams = [e._reportData]
                    })
                }, i([h(cc.Label)], t.prototype, "TitleLabel", void 0), i([h(cc.Node)], t.prototype, "NoviceTrainingReportItem", void 0), i([h(cc.Label)], t.prototype, "EmptyNode", void 0), i([h(cc.Label)], t.prototype, "ReportTitle", void 0), i([h(c.default)], t.prototype, "HeadComponent", void 0), i([h(cc.Label)], t.prototype, "PlayerName", void 0), i([h(cc.Label)], t.prototype, "Power", void 0), i([h(cc.Button)], t.prototype, "PlayBtn", void 0), i([h(cc.Label)], t.prototype, "PlayBtnLabel", void 0), i([d], t)
            }(s.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Battle/BattleManager": "BattleManager",
        "../Components/HeadComponent": "HeadComponent"
    }],
    NoviceTrainingRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "87306uDaNpANrXqSF4dqITP", "NoviceTrainingRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Components/Components"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../Panel/NoviceTrainingRewardPanel"),
            f = e("./ItemComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Progress = null, t.ItemContainer = null, t.GetRewardButton = null, t.GetRewardButtonLabel = null, t.MaskNode = null, t.ShowTag = null, t.ShowTagLabel = null, t._needInit = !0, t._itemComponent = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    s.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    s.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    if (this._needInit) switch (this._needInit = !1, this._basePanel = e, this._mode = t, this.ShowTagLabel.string = "already_receive".ToUILocale(), this._mode) {
                        case h.NoviceTrainingRewardMode.Normal:
                            this.Progress.node.parent.active = !1, this.GetRewardButton.node.active = !1, this.MaskNode.active = !1, this.ShowTag.active = !1;
                            break;
                        case h.NoviceTrainingRewardMode.Zone:
                            this.Progress.node.parent.active = !0, this.GetRewardButton.node.on("click", this.OnGetRewardBtnClick, this), this.GetRewardButtonLabel.string = "receive".ToUILocale()
                    }
                    switch (this._index = n, this._day = o, this._mode) {
                        case h.NoviceTrainingRewardMode.Normal:
                            this.InitNormalMode();
                            break;
                        case h.NoviceTrainingRewardMode.Zone:
                            this.InitZoneMode()
                    }
                }, t.prototype.InitNormalMode = function() {
                    this.Title.string = "noviceTraining_normalRewardTitle".ToUILocale().Fmt(this._day, ("noviceTraining_difficulty" + this._index).ToUILocale());
                    for (var e = this._basePanel.ActivityConfig.CustomPart.MissionIds[this._day - 1].Items[this._index], t = this._basePanel.ActivityConfig.Missions.find(function(t) {
                            return t.Id == e
                        }), n = 0; n < t.ProgressRewards.length; n++) {
                        var o = this._itemComponent[n];
                        if (!o) {
                            var r = cc.instantiate(this._basePanel.ItemPrefab);
                            r.setParent(this.ItemContainer), o = r.getComponent(f.ItemComponent), this._itemComponent.push(o)
                        }
                        var i = t.ProgressRewards[n].Items;
                        o.Init({
                            ItemId: i[1],
                            Count: i[2]
                        }, f.ItemComponentType.ItemCommon)
                    }
                }, t.prototype.InitZoneMode = function() {
                    var e = this._basePanel.ActivityConfig.CustomPart.MissionIds[this._day - 1].Items[this._index],
                        t = this._basePanel.ActivityConfig.Missions.find(function(t) {
                            return t.Id == e
                        });
                    this.Title.string = "noviceTraining_zoneRewardTitle".ToUILocale().Fmt(("noviceTraining_difficulty" + this._index).ToUILocale(), t.Num);
                    for (var n = 0; n < t.ZoneRewards.length; n++) {
                        var o = this._itemComponent[n];
                        if (!o) {
                            var r = cc.instantiate(this._basePanel.ItemPrefab);
                            r.setParent(this.ItemContainer), o = r.getComponent(f.ItemComponent), this._itemComponent.push(o)
                        }
                        var i = t.ZoneRewards[n].Items;
                        o.Init({
                            ItemId: i[0],
                            Count: i[1]
                        }, f.ItemComponentType.ItemCommon)
                    }
                    var s = this._basePanel.ZoneData.Data[this._day].Items[this._index];
                    if ((s = s > t.Num ? t.Num : s) >= t.Num) {
                        s = t.Num, this.Progress.string = "<color = #0BF100>" + s + "</c>/" + t.Num, d.UIUtlity.OffNodeGray(this.GetRewardButton.node);
                        var l = p.DataCenter.Instance.GetDataById(a.UserActivity_Model, this._basePanel.ActivityConfig._id),
                            c = 100 * this._day + this._index;
                        l.IntArray && l.IntArray.includes(c) ? (this.GetRewardButton.node.active = !1, this.MaskNode.active = !0, this.ShowTag.active = !0) : (this.GetRewardButton.node.active = !0, this.MaskNode.active = !1, this.ShowTag.active = !1)
                    } else this.Progress.string = s + "/" + t.Num, d.UIUtlity.OnNodeGray(this.GetRewardButton.node), this.GetRewardButton.node.active = !1, this.MaskNode.active = !1, this.ShowTag.active = !1
                }, t.prototype.OnItemClick = function(e, t) {
                    d.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, t.prototype.OnGetRewardBtnClick = function() {
                    var e = a.Req_Activity_NoviceTrainingZoneRewards.create();
                    e.ActivityId = this._basePanel.ActivityConfig._id, e.Day = this._day, e.MissionIndex = this._index, l.RpcComponent.Instance.Call(e, function(e) {
                        s.UIManager.Instance.ShowUIPanel(c.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                    })
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.RichText)], t.prototype, "Progress", void 0), i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([m(cc.Button)], t.prototype, "GetRewardButton", void 0), i([m(cc.Label)], t.prototype, "GetRewardButtonLabel", void 0), i([m(cc.Node)], t.prototype, "MaskNode", void 0), i([m(cc.Node)], t.prototype, "ShowTag", void 0), i([m(cc.Label)], t.prototype, "ShowTagLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/NoviceTrainingRewardPanel": "NoviceTrainingRewardPanel",
        "./ItemComponent": "ItemComponent"
    }],
    NoviceTrainingRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d9285+zZBxIC7TMd00C4QXt", "NoviceTrainingRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.NoviceTrainingRewardMode = void 0;
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../Consts/Consts"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/CustomLayout"),
            g = e("../../Components/Components"),
            m = e("../Components/CustomToggle"),
            I = e("../Components/NoviceTrainingRewardComponent"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property;
        (function(e) {
            e[e.Normal = 1] = "Normal", e[e.Zone = 2] = "Zone"
        })(l = n.NoviceTrainingRewardMode || (n.NoviceTrainingRewardMode = {}));
        var b = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.ToggleContainer = null, t.CustomLayoutBg = null, t.CustomLayout = null, t._redDots = [], t
            }
            return r(t, e), Object.defineProperty(t.prototype, "ItemPrefab", {
                get: function() {
                    return this._itemPrefab
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ActivityConfig", {
                get: function() {
                    return this._activityConfig
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(t.prototype, "ZoneData", {
                get: function() {
                    return this._zoneData
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("NoviceTrainingPanel/NoviceTrainingRewardComponent", cc.Prefab)]).then(function(e) {
                                    t._itemPrefab = e[0], t._rewardPrefab = e[1]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.CustomLayout.Init(this._rewardPrefab)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t);
                var n = t[0];
                this._panelMode = t[1], this._activityConfig = g.DataCenter.Instance.ActivityConfigs[n], this.Title.string = this._panelMode == l.Normal ? "AccumulateRecharge_rewardPreview".ToUILocale() : "noviceTraining_allZoneReward".ToUILocale()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || this.InitCustomToggle(), this.RerenderUI()
            }, t.prototype.RerenderUI = function() {
                switch (this._panelMode) {
                    case l.Normal:
                        this.RenderNormalReward(), this.CustomLayoutBg.active = !1;
                        break;
                    case l.Zone:
                        this.RenderZoneReward(), this.CustomLayoutBg.active = !0
                }
            }, t.prototype.InitCustomToggle = function() {
                for (var e = 0; e < this._activityConfig.CustomPart.MissionIds.length; e++) {
                    var t = cc.instantiate(this.ToggleContainer.children[0]);
                    t.setParent(this.ToggleContainer), t.on("toggle", this.ClickToggle, this), t.getComponent(m.default).Init("firstCharge_dayth".ToUILocale().Fmt(e + 1)), t.active = !0, t.name = e.toString(), null == this._selectToggle && (this._selectToggle = e, t.getComponent(m.default).check());
                    var n = cc.find("redDot", t);
                    this._redDots.push(n)
                }
            }, t.prototype.ClickToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._selectToggle != t && (this._selectToggle = t, this.RerenderUI())
            }, t.prototype.RenderNormalReward = function() {
                this.CustomLayout.RenderLayOut(this._activityConfig.CustomPart.MissionIds[this._selectToggle].Items.length)
            }, t.prototype.RenderZoneReward = function() {
                var e = this,
                    t = c.Req_Activity_NoviceTrainingZoneData.create();
                t.ActivityId = this._activityConfig._id, d.RpcComponent.Instance.Call(t, function(t) {
                    e._zoneData = t, e.RefreshRedDot(), e.CustomLayout.RenderLayOut(e._activityConfig.CustomPart.MissionIds[e._selectToggle].Items.length)
                })
            }, t.prototype.RefreshRedDot = function() {
                var e;
                if (this._panelMode != l.Normal) {
                    for (var t = !1, n = g.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityConfig._id), o = function(e) {
                            for (var o = r._activityConfig.CustomPart.MissionIds[e].Items, i = !1, a = function(a) {
                                    var s = 100 * (e + 1) + a;
                                    if (n.IntArray && n.IntArray.includes(s)) return "continue";
                                    var l = r._activityConfig.Missions.find(function(e) {
                                        return e.Id == o[a]
                                    });
                                    return r._zoneData.Data[e + 1].Items[a] >= l.Num ? (i = !0, t = !0, "break") : void 0
                                }, s = 0; s < o.length && "break" !== a(s); s++);
                            r._redDots[e].active = i
                        }, r = this, i = 0; i < this._redDots.length; i++) o(i);
                    t || g.DataCenter.Instance.GetSpecialRedDot(p.SpecialRedDotType.NoviceTrainingZoneReward) > 0 && g.DataCenter.Instance.CheckSpecialRedDot(((e = {})[p.SpecialRedDotType.NoviceTrainingZoneReward] = 0, e))
                }
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                this.CustomLayout == t && e.forEach(function(e, t) {
                    e.getComponent(I.default).Init(n, n._panelMode, t, n._selectToggle + 1)
                })
            }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Node)], t.prototype, "ToggleContainer", void 0), i([v(cc.Node)], t.prototype, "CustomLayoutBg", void 0), i([v(y.default)], t.prototype, "CustomLayout", void 0), i([C], t)
        }(u.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/NoviceTrainingRewardComponent": "NoviceTrainingRewardComponent"
    }],
    NoviceTrainingSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9bb49RuFdZKJoWf82c9teen", "NoviceTrainingSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./SettlementBaseComponent"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/UIFrame/UIManager"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("./DisplayRewardsComponent"),
            h = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Components/Components"),
            g = e("../Panel/NoviceTrainingPanel"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Difficulty = null, t.NewRecord = null, t.Damage = null, t.RewardNodeLabelNode = null, t.RewardNode = null, t.RewardNodeLabel = null, t.RewardContainer = null, t.BtnSure = null, t.LabelBtnSure = null, t._isInit = !1, t._reward = [], t
                }
                return r(t, e), t.prototype.SetUI = function(t, n) {
                    if (g.default._CurrentActivityConfig) {
                        if (e.prototype.SetUI.call(this, t), this._isInit || (this._isInit = !0, this.RewardNodeLabel.string = "StrongholdWar_Battle_Result_GetReward".ToUILocale(), this.LabelBtnSure.string = "ok".ToUILocale(), this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.Difficulty.string = ("noviceTraining_difficulty" + g.default._CurrentIndex).ToUILocale()), t.ExtraParam.UserParams && t.ExtraParam.UserParams.isRecording) return this.RewardNode.active = !1, this.RewardNodeLabelNode.active = !1, void(this.Damage.string = "noviceTraining_totalDamage".ToUILocale().Fmt(100));
                        this._reward = n, this._result = t.SettleParams[0], this.SetInfo()
                    } else u.UIManager.Instance.BackUIPanel()
                }, t.prototype.SetInfo = function() {
                    var e = y.DataCenter.Instance.GetDataById(c.UserActivity_Model, g.default._CurrentActivityConfig._id),
                        t = 100 * g.default._CurrentDay + g.default._CurrentIndex,
                        n = e.IntMap[t];
                    this.Damage.string = n ? "noviceTraining_totalDamage".ToUILocale().Fmt(n) : "noviceTraining_totalDamage".ToUILocale().Fmt(0), n > g.default._HistoryRecord ? (this.NewRecord.node.active = !0, this.NewRecord.string = "NewRecord".ToUILocale()) : this.NewRecord.node.active = !1, this._reward.length > 0 ? (this.RewardNode.active = !0, this.RewardNodeLabelNode.active = !0, this.SetRewardsContent()) : (this.RewardNode.active = !1, this.RewardNodeLabelNode.active = !1)
                }, t.prototype.SetRewardsContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, h.AssetsManager.Instance.LoadAsset(p.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (e._displayRewardPrefab = n.sent(), !this.isValid) return f.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(d.DisplayRewardsComponent), this.RewardContainer.addChild(t), this._rewardComponent.Init(this._reward), [2]
                            }
                        })
                    })
                }, t.prototype.OnBtnSureClick = function() {
                    u.UIManager.Instance.BackUIPanel()
                }, i([_(cc.Label)], t.prototype, "Difficulty", void 0), i([_(cc.Label)], t.prototype, "NewRecord", void 0), i([_(cc.Label)], t.prototype, "Damage", void 0), i([_(cc.Node)], t.prototype, "RewardNodeLabelNode", void 0), i([_(cc.Node)], t.prototype, "RewardNode", void 0), i([_(cc.Label)], t.prototype, "RewardNodeLabel", void 0), i([_(cc.Node)], t.prototype, "RewardContainer", void 0), i([_(cc.Button)], t.prototype, "BtnSure", void 0), i([_(cc.Label)], t.prototype, "LabelBtnSure", void 0), i([I], t)
            }(l.default);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Panel/NoviceTrainingPanel": "NoviceTrainingPanel",
        "./DisplayRewardsComponent": "DisplayRewardsComponent",
        "./SettlementBaseComponent": "SettlementBaseComponent"
    }],
    NumberExtends: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8bc88eeVnVGm5zKzUOnv6S3", "NumberExtends"), Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var o = e("../../Consts/Consts"),
            r = e("../Components/Components"),
            i = e("../../../Proto/Static/ConfigProto"),
            a = e("../Channel/ChannelManager"),
            s = e("../UI/Panel/StarPiecePanel");
        Number.prototype.ToHeroName = function() {
            var e = "HeroBase_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroTitle = function() {
            var e = a.default.Instance.IsVNChannel() ? "HeroBase_name_" + this : "HeroBase_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroElementName = function() {
            return ("hero_element_" + this).ToUILocale()
        }, Number.prototype.ToHeroTips = function() {
            var e = "HeroAttribute_tips_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToMapName = function() {
            var e = "MapBase_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToItemName = function() {
            var e = "ItemBase_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToItemDesc = function() {
            var e = "ItemBase_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSecretAreaPropsName = function() {
            var e = "SecretAreaProps_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSecretAreaMonsterName = function() {
            var e = "SecretAreaMonsterType_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSecretAreaPropsDesc = function() {
            var e = "SecretAreaProps_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroDesc = function() {
            var e = "HeroBase_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToMissionName = function() {
            var e = "MapBase_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroSkillName = function() {
            var e = "SkillBase_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroSkillDesc = function() {
            var e = "SkillBase_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToBuffName = function() {
            var e = "BuffBase_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToBuffEffectName = function() {
            var e = "BuffDescription_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAttributeName = function() {
            return "hero_attr_{0}".Fmt(this).ToUILocale()
        }, Number.prototype.ToShopName = function() {
            var e = "ShopBase_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToChapterName = function() {
            var e = "AdventureChapter_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToRankName = function() {
            var e = "RankType_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToTaskDesc = function() {
            var e = "TaskBase_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToTaskConditionDesc = function() {
            return ("common_task_condtion_" + this).ToUILocale()
        }, Number.prototype.ToTaskAchievementDesc = function() {
            var e = "RankType_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToIntelligenceDesc = function() {
            var e = "IntelligenceTask_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToIntelligenceQualityName = function() {
            var e = "IntelligenceQuality_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStarPieceExclusiveDesc = function(e, t, n, o) {
            var a = "StarPiece_exclusiveDesc_" + this,
                l = r.ConfigDataComponent.Instance.GetLocale(a);
            if (t == s.StarTemplePieceType.Exclusive) return "";
            var c = r.ConfigDataComponent.Instance.GetConfigById(i.StarPiece_Config, this);
            e = e > 1 ? e : 1;
            var u = c.Exclusive[e].Items[0];
            2 == r.ConfigDataComponent.Instance.GetConfigById(i.HeroAttribute_Config, c.Exclusive[0].Items[2]).Format && (u /= 1e3);
            var p = u.toString();
            return n && (p = "<color=" + n + ">" + u + "</>"), o && (p = "<outline width=3 color=" + o + ">" + p + "</outline>"), l.Fmt(p)
        }, Number.prototype.ToStarPieceQualityName = function() {
            var e = "StarPieceQuality_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStarPieceWakeDesc = function(e, t) {
            var n = "StarPiece_awakeningDesc_" + this,
                o = r.ConfigDataComponent.Instance.GetLocale(n),
                i = null,
                a = null;
            return e && (i = "color=" + e), t && (a = "outline width=3 color=" + t), o.Fmt(a, i)
        }, Number.prototype.ToStarPowerElementName = function() {
            var e = "StarPowerType_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStarPowerElementDesc = function() {
            var e = "StarPowerType_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToWarTokenName = function() {
            var e = "WarTokenType_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToWarTokenUnlockText = function() {
            var e = "WarTokenType_unlock_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToElementEffectName = function() {
            var e = "ElementEffect_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.FmtSize = function(e) {
            return void 0 === e && (e = 2), this > o.Etc.GB ? (this / o.Etc.GB).toFixed(e) + "G" : this > o.Etc.MB ? (this / o.Etc.MB).toFixed(e) + "M" : this > o.Etc.KB ? (this / o.Etc.KB).toFixed(e) + "K" : Math.round(this).toString()
        };
        var l = [1e4, 1e8],
            c = ["{0}\u4e07", "{0}\u4ebf"],
            u = [1e3, 1e6, 1e9],
            p = ["{0}K", "{0}M", "{0}G"];
        Number.prototype.FmtCurrency = function() {
            var e, t;
            r.GlobalConfigComponent.Instance.Locale == o.GameLocales.Cn ? (e = l, t = c) : (e = u, t = p);
            for (var n = 0, i = "", a = parseInt(this) || 0, s = e.length - 1; s >= 0; s--)
                if (a >= (0 == s ? 10 * e[s] : e[s])) {
                    n = a / e[s], i = t[s];
                    break
                } return "" == i ? a.toString() : n >= 100 ? i.Fmt(n.ToFixedExact(0)) : i.Fmt(n.ToFixedExact(1))
        }, Number.prototype.FmtSimpleRemainTime = function(e) {
            void 0 === e && (e = "");
            var t = Math.ceil(this);
            if (t >= o.Etc.DayDuration) {
                var n = Math.floor(t / o.Etc.DayDuration);
                return n > 1 ? n + r.ConfigDataComponent.Instance.GetLocale("locale_ui_days") : n + r.ConfigDataComponent.Instance.GetLocale("locale_ui_day")
            }
            if ("d" == e) return r.ConfigDataComponent.Instance.GetLocale("locale_ui_less_than_one_day");
            if (t >= o.Etc.HourDuration) {
                var i = Math.floor(t / o.Etc.HourDuration);
                return i > 1 ? i + r.ConfigDataComponent.Instance.GetLocale("locale_ui_hours") : i + r.ConfigDataComponent.Instance.GetLocale("locale_ui_hour")
            }
            if ("h" == e) return r.ConfigDataComponent.Instance.GetLocale("locale_ui_less_than_one_hour");
            if (t >= o.Etc.MinuteDuration) {
                var a = Math.floor(t / o.Etc.MinuteDuration);
                return a > 1 ? a + r.ConfigDataComponent.Instance.GetLocale("locale_ui_minutes") : a + r.ConfigDataComponent.Instance.GetLocale("locale_ui_minute")
            }
            return "m" == e ? r.ConfigDataComponent.Instance.GetLocale("locale_ui_less_than_one_minute") : 0 + r.ConfigDataComponent.Instance.GetLocale("locale_ui_minute")
        }, Number.prototype.FmtRemainTime = function() {
            var e = Math.floor(this / o.Etc.HourDuration);
            if (e >= 24) {
                var t = Math.floor(e / 24),
                    n = Math.floor(e % 24);
                return "" + t + "day".ToUILocale() + n + "hour".ToUILocale()
            }
            var r = Math.floor(this % o.Etc.HourDuration / o.Etc.MinuteDuration),
                i = Math.floor(this % o.Etc.HourDuration % o.Etc.MinuteDuration / o.Etc.SecondDuration);
            return (e < 10 ? "0" + e : e.toString()) + ":" + (r < 10 ? "0" + r : r.toString()) + ":" + (i < 10 ? "0" + i : i.toString())
        }, Number.prototype.ToFixedExact = function(e) {
            if (void 0 === e && (e = 0), e <= 0) return Math.floor(this).toString();
            var t = this.toString(),
                n = t.indexOf(".");
            if (-1 != n && t.length - n - 1 > e)
                for (t = t.substr(0, n + e + 1); t.endsWith("0");) t = t.substr(0, t.length - 1);
            return t.endsWith(".") && (t = t.substr(0, t.length - 1)), t
        }, Number.prototype.ToHolyEquipSuitName = function() {
            var e = "HolyEquipSuit_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHolyHolyEquipBlessingName = function() {
            var e = "HolyEquipBlessingType_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToFormationInstanceName = function() {
            var e = "FormationInstance_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroCharacteristicName = function() {
            var e = "HeroCharacteristic_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroLines = function() {
            var e = "HeroBase_lines_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroEnhanceName = function() {
            var e = "Enhance_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroEnhanceDesc = function() {
            var e = "Enhance_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToRecommendFormationName = function() {
            var e = "RecommendFormation_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToRecommendFormationDesc = function() {
            var e = "RecommendFormation_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToReceommentFormationDetail = function() {
            var e = "RecommendFormation_detailDesc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToQuestionName = function() {
            var e = "Question_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToQuestionAnswer = function() {
            var e = "Question_answer_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToTriggerGiftName = function() {
            var e = "TriggerGift_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSubscribePrivilegeName = function() {
            var e = "SubscribePrivilege_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToTowerOpenTimeDesc = function() {
            var e = "TestTowerType_openTimeDesc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToLuckyCharmEquipAttr = function() {
            var e = "LuckyCharmEquip_attr_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToLuckyCharmEquipSkill = function() {
            var e = "LuckyCharmEquip_skill_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToGiftPackName = function() {
            var e = "GiftPack_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToLocalizationurrency = function() {
            return a.default.Instance.ExchangeMoney(this)
        }, Number.prototype.ToCrossZoneRankStageName = function() {
            var e = "CrossZoneRankStage_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToMoonShrineName = function() {
            var e = "MoonShrine_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSkinName = function() {
            var e = "HeroSkin_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSkinDesc = function() {
            var e = "HeroSkin_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroIntroduce = function() {
            var e = "HeroIntroduce_Introduce_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSecretMapName = function() {
            var e = "SecretActivityMap_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSecretAreaBuffName = function() {
            var e = "SecretAreaBuff_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSecretAreaBuffDesc = function() {
            var e = "SecretAreaBuff_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToChaosExtraDesc = function() {
            var e = "HeroStar_chaos_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToEmbattleName = function() {
            var e = "Embattle_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAnswerCompetitionQuestion = function() {
            var e = "AnswerCompetitionQuestion_question_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToContinueWarRankStageName = function() {
            var e = "CrossZoneContinueWarRankStage_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToMainSceneBackgroundName = function() {
            var e = "ItemMainSceneBackground_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToRankTopNotifyDase = function() {
            var e = "RankTopNotify_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToRankTypePushText = function() {
            var e = "RankType_pushtext_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToRankTypeSystem = function() {
            var e = "RankType_system_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToNewPlayerTaskDesc = function() {
            var e = "NewbieMainTask_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToRankDesc = function() {
            var e = "RankType_rankdesc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToCollectStoryDesc = function() {
            var e = "CollectionStory_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToCollectStoryTitle = function() {
            var e = "CollectionStory_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToCollectChapterTitle = function() {
            var e = "CollectionStoryContent_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToCollectChapterContent = function() {
            var e = "CollectionStoryContent_content_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSaintsWarDifficultName = function() {
            var e = "SaintsWarDifficultLevel_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToPetName = function() {
            var e = "PetBase_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToPetDesc = function() {
            var e = "PetBase_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToItemGetWayName = function() {
            var e = "ItemGetWay_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroFetterName = function() {
            var e = "HeroFetter_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStoryDialogueContent = function() {
            var e = "StoryDialogue_content_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStoryDialogueTitle = function() {
            var e = "StoryDialogue_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStoryChapterTitle = function() {
            var e = "StoryChapter_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStoryChapterContent = function() {
            var e = "StoryChapter_content_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAngelTitle = function() {
            var e = "AngelBase_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroChangeContent = function() {
            var e = "HeroChange_content_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStarPieceSuitDesc = function() {
            var e = "StarPieceSuit_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStrongholdName = function() {
            var e = "WarCity_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStrongholdInfo = function() {
            var e = "WarCity_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStrongholdStage = function() {
            var e = "WarStage_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAngelIntroduce = function() {
            var e = "AngelIntroduce_Introduce_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAngelSkinName = function() {
            var e = "AngelGodAvatar_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStarPieceResonanceName = function() {
            var e = "StarPieceResonance_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToDesignationName = function() {
            var e = "Designation_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToDukeName = function() {
            var e = "Duke_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStrategyName = function() {
            var e = "Strategy_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStrategySkillName = function() {
            var e = "Strategy_skill_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAngelSoulTypeName = function() {
            var e = "AngelGodSoulType_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToTreasureHouseName = function() {
            var e = "TreasureHouseAssociation_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToEmojiImageName = function() {
            var e = "EmojiImage_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToTreasureSerialName = function() {
            var e = "TreasureHouseSerials_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToTreasureItemName = function() {
            var e = "TreasureHouseTreauseItem_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSoulGraphName = function() {
            var e = "FighterSpiritGraph_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSoulRecordChapterName = function() {
            var e = "FighterSpiritChapter_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToFighterSpiritCatalogDesc = function() {
            var e = "FighterSpiritCatalog_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToPuzzleGroupName = function() {
            var e = "PuzzleGroup_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToArtifactName = function() {
            var e = "Artefact_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToArtifactPhantomDesc = function() {
            var e = "ArtefactStar_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToArtifactResonanceName = function() {
            var e = "ArtefactResonance_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToLuckyCharmStarEffectDesc = function() {
            var e = "LuckyCharmStar_effectDesc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToCashMallToggleName = function() {
            var e = "CashMallPage_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSuperWeaponName = function() {
            var e = "SuperWeapon_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToNewYearWeaponName = function() {
            var e = "NewYearWeapon_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToNewYearWeaponStarDesc = function() {
            var e = "NewYearWeaponStar_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAngelPvpRankStageName = function() {
            var e = "GodLandDuelRankStage_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToVnPayMethodName = function() {
            var e = "VnPayMethod_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroJobName = function() {
            var e = "HeroJob_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToHeroJobDesc = function() {
            var e = "HeroJob_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToDailyBuffTitle = function() {
            var e = "DailyBuff_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToDailyBuffDesc = function() {
            var e = "DailyBuff_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToNewPersonalityName = function() {
            var e = "NewPersonalityBase_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToNewPersonalityActionLockDesc = function() {
            var e = "NewPersonalityAction_lockDesc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToNewPersonalityActionUnlockDesc = function() {
            var e = "NewPersonalityAction_unlockDesc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToSeasonWeaponName = function() {
            var e = "SeasonWeapon_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStrongPathTaskDesc = function() {
            var e = "StrongPathTask_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStrongPathTaskTitle = function() {
            var e = "StrongPathTask_title_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStrongPathWishListDesc = function() {
            var e = "SummonWish_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToStarPieceSpecialDesc = function() {
            var e = "StarPiece_specialDesc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToRankMatchName = function() {
            var e = "RankMatch_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToGameUnlockPopName = function() {
            var e = "GameModuleUnlockPop_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAllianceRedPacketDesc = function() {
            var e = "AllianceRedPacket_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAssualtOperationResourceName = function() {
            var e = "AssaultOperationResourceItem_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToMagicCircleDesc = function() {
            var e = "MagicCircleBase_desc_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAllianceBadgeName = function() {
            var e = "AllianceBadge_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAJRoleName = function() {
            var e = "AJRoleAdvanced_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, Number.prototype.ToAJRandomSkillName = function() {
            var e = "AJRandomSkill_name_" + this;
            return r.ConfigDataComponent.Instance.GetLocale(e)
        }, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Consts/Consts": "Consts",
        "../Channel/ChannelManager": "ChannelManager",
        "../Components/Components": "Components",
        "../UI/Panel/StarPiecePanel": "StarPiecePanel"
    }],
    OffFormationPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "41dffQHXt9AG6aI8taDjBl1", "OffFormationPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../GamePlay/Components/Components"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.Title = null, t.Hint = null, t.Layout = null, t.CancelBtn = null, t.CancelBtnLabel = null, t.OkBtn = null, t.OkBtnLabel = null, t._isBattleInWar = !1, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("SelectMaterialHeroPanel/OnFormationItem")];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "formation_off_title".ToUILocale(), this.Hint.string = "formation_off_hint".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.OkBtnLabel.string = "ok".ToUILocale(), this.CancelBtn.node.on("click", this.OnClickCancel, this), this.OkBtn.node.on("click", this.OnClickOffBtn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._heroSid = t[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._formationSids = u.DataCenter.Instance.GetHeroFormations(this._heroSid), this.ConfigLayout()
                }, t.prototype.ConfigLayout = function() {
                    this.Layout.destroyAllChildren();
                    for (var e = 0; e < this._formationSids.length; e++) {
                        var t = cc.instantiate(this._itemPrefab);
                        t.setParent(this.Layout), cc.find("Info", t).getComponent(cc.Label).string = this._formationSids[e].ToFormationInstanceName()
                    }
                }, t.prototype.OnClickCancel = function() {
                    this.Close()
                }, t.prototype.OnClickOffBtn = function() {
                    if (this._isBattleInWar) d.UIUtlity.ShowFloatingHint("StrongholdWar_Battle_Fromation_Unchange".ToUILocale());
                    else {
                        var e = !1,
                            t = u.ConfigDataComponent.Instance.GetConfigById(h.MapType_Config, f.MapType.War);
                        this._requestFormation = [];
                        for (var n = 0; n < this._formationSids.length; n++) {
                            var o = this._formationSids[n],
                                r = u.DataCenter.Instance.GetDataById(c.UserFormation_Model, o),
                                i = new c.UserFormation_Model;
                            i.Sid = o, i.FormationType = r.FormationType;
                            var a = [];
                            if (-1 != t.AttackerFormation.indexOf(o) && this._heroSid == r.HeroIds[0]) a = [0, 0, 0, 0, 0];
                            else
                                for (var s = 0; s < r.HeroIds.length; s++) {
                                    var l = r.HeroIds[s];
                                    l != this._heroSid ? a.push(l) : a.push(0)
                                }
                            i.HeroIds = a, -1 != t.AttackerFormation.indexOf(o) ? (e = !0, this._warFormation = i) : this._requestFormation.push(i)
                        }
                        e ? this.OffWarFormation() : this._requestFormation.length > 0 && this.OffFormationArray()
                    }
                }, t.prototype.OffWarFormation = function() {
                    var e = this,
                        t = new c.Req_War_Action;
                    t.Type = f.WarActionType.SetFormations, t.Formations = [this._warFormation], u.RpcComponent.Instance.Call(t, function() {
                        for (var t = u.DataCenter.Instance.GetDataById(c.UserFormation_Model, e._warFormation.Sid), n = 0; n < t.HeroIds.length; n++)
                            if (t.HeroIds[n] != e._warFormation.HeroIds[n]) return e._isBattleInWar = !0, void d.UIUtlity.ShowFloatingHint("StrongholdWar_Battle_Fromation_Unchange".ToUILocale());
                        e._requestFormation.length > 0 ? e.OffFormationArray() : e.OnFormationConfirm()
                    })
                }, t.prototype.OffFormationArray = function() {
                    var e = new c.Req_Hero_SetFormation;
                    e.Formations = this._requestFormation, u.RpcComponent.Instance.Call(e, this.OnFormationConfirm.bind(this))
                }, t.prototype.OnFormationConfirm = function() {
                    d.UIUtlity.ShowFloatingHint("hero_already_off_formation".ToUILocale()), l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_REFRESH_SELECT_MATERIALHERO, this._heroSid), this.Close()
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Label)], t.prototype, "Hint", void 0), i([m(cc.Node)], t.prototype, "Layout", void 0), i([m(cc.Button)], t.prototype, "CancelBtn", void 0), i([m(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([m(cc.Button)], t.prototype, "OkBtn", void 0), i([m(cc.Label)], t.prototype, "OkBtnLabel", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    OffServicePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c9cearicilLl52Jsp9j2LPi", "OffServicePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../Util/TimeUtil"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../../Components/RpcComponent"),
            u = e("../../InitHelper"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Independent, !1), t.Title = null, t.Info = null, t.OKBtn = null, t.OKLabel = null, t.TimeLeftNode = null, t.TimeLeftTagLabel = null, t.TimeLeftCountDownLabel = null, t._serverOpenTs = -1, t
                }
                return r(t, e), t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "off_service_title".ToUILocale(), this.TimeLeftTagLabel.string = "OffService_timeLeftTag".ToUILocale(), this.OKLabel.string = "ok".ToUILocale(), this.OKBtn.node.on("click", this.OnOkBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0].split("@@");
                    n.length > 1 ? (this._serverOpenTs = s.TimeUtil.StrToTime(n[0]), this._info = n[1]) : this._info = n[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.Info.string = this._info, this._serverOpenTs > 0 ? (this.TimeLeftNode.active = !0, this.SetCountDownLabel(), this.schedule(this.SetCountDownLabel, 1)) : this.TimeLeftNode.active = !1
                }, t.prototype.SetCountDownLabel = function() {
                    var e = this._serverOpenTs - c.RpcComponent.Instance.ServerTime;
                    e >= 0 ? this.TimeLeftCountDownLabel.string = l.default.ActivityTimeLeftFormat(e) : (this.unschedule(this.SetCountDownLabel), this.OnOkBtnClick())
                }, t.prototype.OnOkBtnClick = function() {
                    this.Close(), u.InitHelper.RestartWeb()
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.RichText)], t.prototype, "Info", void 0), i([h(cc.Button)], t.prototype, "OKBtn", void 0), i([h(cc.Label)], t.prototype, "OKLabel", void 0), i([h(cc.Node)], t.prototype, "TimeLeftNode", void 0), i([h(cc.Label)], t.prototype, "TimeLeftTagLabel", void 0), i([h(cc.Label)], t.prototype, "TimeLeftCountDownLabel", void 0), i([d], t)
            }(a.BaseUIPanel);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/RpcComponent": "RpcComponent",
        "../../InitHelper": "InitHelper"
    }],
    OffServiceTipHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2c6e936rAhMLJ6l4tOY1OjU", "OffServiceTipHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Independent, !1), t.Tip = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._tip = t[0]
                }, t.prototype.DisPlay = function() {
                    var t = this;
                    e.prototype.DisPlay.call(this), this.Tip.string = this._tip, this.scheduleOnce(function() {
                        a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_OFFSERVICE_DATA_REFRESH), t.Close()
                    }, 60)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([u(cc.RichText)], t.prototype, "Tip", void 0), i([c], t)
            }(a.BaseUIPanel);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    OldPlayerRecallBoxComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "37449akz2hK+L4mkm2A5Uxh", "OldPlayerRecallBoxComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../Panel/OldPlayerRecallPanel"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MaskNode = null, t.ReceiveIconNode = null, t.ConditionLabel = null, t.RedDotNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnBoxNodeClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._playerData = n, this._index = t, this._taskConfig = c.ConfigDataComponent.Instance.GetConfigById(s.TaskPointReward_Config, e), this.ConditionLabel.string = "OldPlayerRecallPanel_TaskInfo_Box_Condition".ToUILocale().Fmt(this._taskConfig.Point), this.MaskNode.active = this._taskConfig.Point > this._playerData[p.OldPlayerDataIndex.ActiveValue], this.ReceiveIconNode.active = this._playerData[p.OldPlayerDataIndex.ReceivedDailyGift] > t, this.RedDotNode.active = this._index >= this._playerData[p.OldPlayerDataIndex.ReceivedDailyGift] && this._playerData[p.OldPlayerDataIndex.ActiveValue] >= this._taskConfig.Point
                }, t.prototype.OnBoxNodeClick = function() {
                    if (this._index >= this._playerData[p.OldPlayerDataIndex.ReceivedDailyGift] && this._playerData[p.OldPlayerDataIndex.ActiveValue] >= this._taskConfig.Point) {
                        var e = new l.Req_Player_OldPlayerReward;
                        e.Type = u.OldPlayerRecallType.DailyRewards, c.RpcComponent.Instance.Call(e, function(e) {
                            a.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else {
                        for (var t = "reward".ToUILocale(), n = [], o = 0; o < this._taskConfig.Rewards.length; o++) {
                            var r = this._taskConfig.Rewards[o].Items[0],
                                i = this._taskConfig.Rewards[o].Items[1];
                            n.push({
                                ItemId: r,
                                Count: i
                            })
                        }
                        a.UIUtlity.ShowHintPanel(t, n)
                    }
                }, i([f(cc.Node)], t.prototype, "MaskNode", void 0), i([f(cc.Node)], t.prototype, "ReceiveIconNode", void 0), i([f(cc.Label)], t.prototype, "ConditionLabel", void 0), i([f(cc.Node)], t.prototype, "RedDotNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/OldPlayerRecallPanel": "OldPlayerRecallPanel"
    }],
    OldPlayerRecallDailyRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "470a1flRrZNp7KmjtRXWtCt", "OldPlayerRecallDailyRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Auxiliary/UIUtlity"),
            c = e("./ItemComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Panel/OldPlayerRecallPanel"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.ItemNode = null, t.GetIconNode = null, t.DaysLabel = null, t.RedDotNode = null, t._isSetReward = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnRewardNodeClick, this)
                }, t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._playerData = e, this._daysIndex = t + 1, this._rewardConfig = n, this._itemPrefab = o, this._isSetReward || (this._isSetReward = !0, this.SetReward(), this.DaysLabel.string = "OldPlayerRecallPanel_DailyReward_Days".ToUILocale().Fmt(this._daysIndex)), this.GetIconNode.active = this._daysIndex <= this._playerData[y.OldPlayerDataIndex.SignInReceivedDay], this._daysIndex > this._playerData[y.OldPlayerDataIndex.SignInReceivedDay] && this._daysIndex <= this._playerData[y.OldPlayerDataIndex.SignInCanReceiveDay] ? (this.SetHighLightBg(), this.RedDotNode.active = !0) : (this.Bg.spriteFrame = l.UIUtlity.COMMON_ATLAS2.getSpriteFrame("goodBg"), this.RedDotNode.active = !1)
                }, t.prototype.SetReward = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.ItemNode), e.getComponent(c.ItemComponent).Init({
                        ItemId: this._rewardConfig.Items[0],
                        Count: this._rewardConfig.Items[1]
                    })
                }, t.prototype.SetHighLightBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this.Bg, [4, l.UIUtlity.GetCommonAtlas3Sprite("highLight_goodsBg")];
                                case 1:
                                    return e.spriteFrame = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.OnRewardNodeClick = function() {
                    if (this._daysIndex > this._playerData[y.OldPlayerDataIndex.SignInReceivedDay] && this._daysIndex <= this._playerData[y.OldPlayerDataIndex.SignInCanReceiveDay]) {
                        var e = new d.Req_Player_OldPlayerReward;
                        e.Type = f.OldPlayerRecallType.ClockIn, h.RpcComponent.Instance.Call(e, function(e) {
                            l.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    }
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemNode.children.indexOf(t) && l.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t)
                }, i([I(cc.Sprite)], t.prototype, "Bg", void 0), i([I(cc.Node)], t.prototype, "ItemNode", void 0), i([I(cc.Node)], t.prototype, "GetIconNode", void 0), i([I(cc.Label)], t.prototype, "DaysLabel", void 0), i([I(cc.Node)], t.prototype, "RedDotNode", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/OldPlayerRecallPanel": "OldPlayerRecallPanel",
        "./ItemComponent": "ItemComponent"
    }],
    OldPlayerRecallDailyRewardInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8fee2ZySHpBU7z3Ij/NvN50", "OldPlayerRecallDailyRewardInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Auxiliary/UIUtlity"),
            s = e("./OldPlayerRecallDailyRewardComponent"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RuleButton = null, t.TipIcon = null, t.DailyRewardNodeArray = [], t._dailyRewardComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.RuleButton.node.on("click", this.OnRuleButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    this._playerData = e, this._oldPlayerRecallConfig = t, this._dailyRewardPrefab = n, this._itemPrefab = o, this.TipIcon.spriteFrame = r, this.SetDailyRewards()
                }, t.prototype.SetDailyRewards = function() {
                    for (var e = 0; e < this.DailyRewardNodeArray.length; e++) {
                        var t = this._dailyRewardComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._dailyRewardPrefab);
                            n.setParent(this.DailyRewardNodeArray[e]), t = n.getComponent(s.default), this._dailyRewardComponentArray[e] = t
                        }
                        var o = this._oldPlayerRecallConfig.ClockInRewards[e];
                        t.Init(this._playerData, e, o, this._itemPrefab)
                    }
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "OldPlayerRecallPanel_DailyReward_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["OldPlayerRecallPanel_DailyReward_Rule_Content".ToUILocale()]
                    };
                    a.UIUtlity.ShowRulePanel(e)
                }, i([u(cc.Button)], t.prototype, "RuleButton", void 0), i([u(cc.Sprite)], t.prototype, "TipIcon", void 0), i([u([cc.Node])], t.prototype, "DailyRewardNodeArray", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./OldPlayerRecallDailyRewardComponent": "OldPlayerRecallDailyRewardComponent"
    }],
    OldPlayerRecallFreeRewardInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "69c37whd6xMF6GaNloW1uuI", "OldPlayerRecallFreeRewardInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("./ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Panel/OldPlayerRecallPanel"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RuleButton = null, t.FreeRewardsContainer = null, t.GetButton = null, t.GetButtonLabel = null, t.UngetButton = null, t.UngetButtonLabel = null, t.Tip = null, t._isSetReward = !1, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this), this.GetButtonLabel.string = "OldPlayerRecallPanel_FreeReward_Get".ToUILocale(), this.UngetButtonLabel.string = "already_receive".ToUILocale(), this.Tip.string = "OldPlayerRecallPanel_FreeReward_Tip".ToUILocale()
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._playerData = e, this._oldPlayerRecallConfig = t, this._itemPrefab = n, this._isSetReward || (this._isSetReward = !0, this.SetRewardContainer()), this.GetButton.node.active = !this._playerData[y.OldPlayerDataIndex.RecallReward], this.UngetButton.node.active = !!this._playerData[y.OldPlayerDataIndex.RecallReward]
                }, t.prototype.SetRewardContainer = function() {
                    for (var e = u.ConfigDataComponent.Instance.GetConfigById(l.MapAdventure_Config, this._playerData[y.OldPlayerDataIndex.AdventureProgress]), t = f.default.GetModuleBonus(), n = 0; n < 3; n++) {
                        var o = cc.instantiate(this._itemPrefab);
                        o.setParent(this.FreeRewardsContainer);
                        var r = e.Rewards[n].Items[0],
                            i = 1440 * e.Rewards[n].Items[1] * this._oldPlayerRecallConfig.Days / 1e5;
                        i = Math.floor(i * (1e3 + t[p.ModuleBonusType["HangUp" + p.CommonItemId[r]]]) / 1e3), o.getComponent(d.ItemComponent).Init({
                            ItemId: r,
                            Count: i
                        })
                    }
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "OldPlayerRecallPanel_FreeReward_Get".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["OldPlayerRecallPanel_FreeReward_Rule_Content".ToUILocale()]
                    };
                    s.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnGetButtonClick = function() {
                    var e = new c.Req_Player_OldPlayerReward;
                    e.Type = p.OldPlayerRecallType.LoginRewards, u.RpcComponent.Instance.Call(e, function(e) {
                        s.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.FreeRewardsContainer.children.indexOf(t) && s.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, i([I(cc.Button)], t.prototype, "RuleButton", void 0), i([I(cc.Node)], t.prototype, "FreeRewardsContainer", void 0), i([I(cc.Button)], t.prototype, "GetButton", void 0), i([I(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([I(cc.Button)], t.prototype, "UngetButton", void 0), i([I(cc.Label)], t.prototype, "UngetButtonLabel", void 0), i([I(cc.Label)], t.prototype, "Tip", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/OldPlayerRecallPanel": "OldPlayerRecallPanel",
        "./ItemComponent": "ItemComponent"
    }],
    OldPlayerRecallGiftInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cbac38X6iRD65ihOAdrihSM", "OldPlayerRecallGiftInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("./CustomLayout"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Panel/CommonGiftPackComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.GiftCustomLayout = null, t._isSetGift = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._oldPlayerRecallConfig = e, this._itemPrefab = n, this._isSetGift || (this._isSetGift = !0, this.GiftCustomLayout.Init(t)), this.SetRecallPacks(), this.GiftCustomLayout.RenderLayOut(this._recallGiftPacks.length)
                }, t.prototype.SetRecallPacks = function() {
                    var e = [],
                        t = [];
                    this._oldPlayerRecallConfig.RecallPacks.forEach(function(n) {
                        var o = c.DataCenter.Instance.GetDataById(l.GiftPack_Model, n),
                            r = o ? o.Count : 0,
                            i = c.ConfigDataComponent.Instance.GetConfigById(s.GiftPack_Config, n);
                        0 != i.LimitType && r >= i.LimitCount ? e.push(n) : t.push(n)
                    }), this._recallGiftPacks = t.concat(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.GiftCustomLayout && e.forEach(function(e, t) {
                        var o = n._recallGiftPacks[t],
                            r = c.ConfigDataComponent.Instance.GetConfigById(s.GiftPack_Config, o);
                        e.getComponent(d.default).Init(n._itemPrefab, r)
                    })
                }, i([y(u.default)], t.prototype, "GiftCustomLayout", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../Panel/CommonGiftPackComponent": "CommonGiftPackComponent",
        "./CustomLayout": "CustomLayout"
    }],
    OldPlayerRecallPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "01a6aOjDpFFuKE6Ws5bDqBP", "OldPlayerRecallPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.OldPlayerDataIndex = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/CustomToggle"),
            y = e("../Components/OldPlayerRecallDailyRewardInfoComponent"),
            g = e("../Components/OldPlayerRecallTaskInfoComponent"),
            m = e("../Components/OldPlayerRecallFreeRewardInfoComponent"),
            I = e("../Components/OldPlayerRecallGiftInfoComponent"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../../Consts/Etc"),
            b = e("../../../Util/TimeUtil"),
            S = e("../../RedDot/RedDotManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.ActiveTime = 0] = "ActiveTime", e[e.SignInCanReceiveDay = 1] = "SignInCanReceiveDay", e[e.SignInReceivedDay = 2] = "SignInReceivedDay", e[e.ActiveValue = 3] = "ActiveValue", e[e.ReceivedDailyGift = 4] = "ReceivedDailyGift", e[e.AdventureProgress = 5] = "AdventureProgress", e[e.RecallReward = 6] = "RecallReward", e[e.ConfigIndex = 7] = "ConfigIndex"
        })(l = n.OldPlayerDataIndex || (n.OldPlayerDataIndex = {})),
        function(e) {
            e[e.DailyReward = 0] = "DailyReward", e[e.Task = 1] = "Task", e[e.FreeReward = 2] = "FreeReward", e[e.Gift = 3] = "Gift", e[e.TotalCount = 4] = "TotalCount"
        }(c || (c = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.TimeDuration = null, t.Tip = null, t.InfoContainer = null, t.LeftTime = null, t.ToggleContainer = null, t._currentToggleIndex = 0, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("Buttons/ToggleBottom", cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._togglePrefab = e[0], o._itemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this)
            }, t.prototype.InitData = function() {
                e.prototype.InitData.call(this), this._durationTime = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("OldPlayerRecallDuration"), this._activeTime = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("OldPlayerRecallCannotActivate"), this._toggleRedDotArray = [S.RedDotManager.Instance.RedDot.OldPlayerRecallToggleDailyReward, S.RedDotManager.Instance.RedDot.OldPlayerRecallToggleTask, S.RedDotManager.Instance.RedDot.OldPlayerRecallToggleFreeReward, S.RedDotManager.Instance.RedDot.OldPlayerRecallToggleGift]
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._playerData = d.DataCenter.Instance.GetArrayData(_.UserDataKey.OldPlayerRecall), t || (this._oldPlayerRecallConfig = d.ConfigDataComponent.Instance.GetConfigById(p.OldPlayerRecall_Config, this._playerData[l.ConfigIndex]), this.Tip.string = "OldPlayerRecallPanel_Tip".ToUILocale().Fmt(this._activeTime), this.TimeDuration.string = "OldPlayerRecallPanel_Duration_Time".ToUILocale().Fmt(b.TimeUtil.Format("MM/DD", this._playerData[l.ActiveTime]) + "-" + b.TimeUtil.Format("MM/DD", this._playerData[l.ActiveTime] + this._durationTime * v.Etc.DayDuration)), this.SetLeftTime(), this.schedule(this.SetLeftTime, 1), this.SetToggle()), this.SetCurrentInfoContainer(), this.SetRedDot()
            }, t.prototype.SetLeftTime = function() {
                var e = this._playerData[l.ActiveTime] + this._durationTime * v.Etc.DayDuration - d.RpcComponent.Instance.ServerTime;
                e < 0 ? u.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "openServer_countDown".ToUILocale().Fmt(C.default.ActivityTimeLeftFormat(e))
            }, t.prototype.SetToggle = function() {
                this._toggleNodeArray = [];
                for (var e = 0; e < c.TotalCount; e++) {
                    var t = cc.instantiate(this._togglePrefab);
                    t.setParent(this.ToggleContainer), t.name = e.toString();
                    var n = t.getComponent(f.default);
                    n.isChecked = 0 == e, n.Init(("OldPlayerRecallPanel_Toggle_" + e).ToUILocale()), t.on("toggle", this.OnSwitchToggle, this), this._toggleNodeArray[e] = t
                }
            }, t.prototype.OnSwitchToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentToggleIndex != t && (this._currentToggleIndex = t, this.SetCurrentInfoContainer())
            }, t.prototype.SetCurrentInfoContainer = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                switch (this.HideInfoContainerAllChild(), this._currentToggleIndex) {
                                    case c.DailyReward:
                                        return [3, 1];
                                    case c.Task:
                                        return [3, 4];
                                    case c.FreeReward:
                                        return [3, 7];
                                    case c.Gift:
                                        return [3, 10]
                                }
                                return [3, 13];
                            case 1:
                                return this._dailyRewardInfoComponent ? [3, 3] : [4, Promise.all([this.LoadDynamicAsset("OldPlayerRecallPanel/Components/OldPlayerRecallDailyRewardInfoComponent", cc.Prefab), this.LoadDynamicAsset("OldPlayerRecallPanel/Components/OldPlayerRecallDailyRewardComponent", cc.Prefab), this.LoadDynamicAsset(d.GlobalConfigComponent.GetMultilangKey("MultilangSinglePng/OldPlayerRecallFreeRewardTip"), cc.SpriteFrame)]).then(function(t) {
                                    if (!i.isValid) return u.AssetsManager.Instance.UnloadAsset(t[0]), u.AssetsManager.Instance.UnloadAsset(t[1]), void u.AssetsManager.Instance.UnloadAsset(t[2]);
                                    e = t[0], i._dailyRewardPrefab = t[1], i._dailyRewardTipIcon = t[2]
                                })];
                            case 2:
                                a.sent(), (r = cc.instantiate(e)).setParent(this.InfoContainer), this._dailyRewardInfoComponent = r.getComponent(y.default), a.label = 3;
                            case 3:
                                return this._dailyRewardInfoComponent.node.active = !0, this._dailyRewardInfoComponent.Init(this._playerData, this._oldPlayerRecallConfig, this._dailyRewardPrefab, this._itemPrefab, this._dailyRewardTipIcon), [3, 13];
                            case 4:
                                return this._taskInfoComponent ? [3, 6] : [4, Promise.all([this.LoadDynamicAsset("OldPlayerRecallPanel/Components/OldPlayerRecallTaskInfoComponent", cc.Prefab), this.LoadDynamicAsset("OldPlayerRecallPanel/Components/OldPlayerRecallBoxComponent", cc.Prefab)]).then(function(e) {
                                    if (!i.isValid) return u.AssetsManager.Instance.UnloadAsset(e[0]), void u.AssetsManager.Instance.UnloadAsset(e[1]);
                                    t = e[0], i._taskPrefab = e[1]
                                })];
                            case 5:
                                a.sent(), (r = cc.instantiate(t)).setParent(this.InfoContainer), this._taskInfoComponent = r.getComponent(g.default), a.label = 6;
                            case 6:
                                return this._taskInfoComponent.node.active = !0, this._taskInfoComponent.Init(this._playerData, this._oldPlayerRecallConfig, this._taskPrefab, this._itemPrefab), [3, 13];
                            case 7:
                                return this._freeRewardInfoComponent ? [3, 9] : [4, this.LoadDynamicAsset("OldPlayerRecallPanel/Components/OldPlayerRecallFreeRewardInfoComponent", cc.Prefab)];
                            case 8:
                                n = a.sent(), this.isValid || u.AssetsManager.Instance.UnloadAsset(n), (r = cc.instantiate(n)).setParent(this.InfoContainer), this._freeRewardInfoComponent = r.getComponent(m.default), a.label = 9;
                            case 9:
                                return this._freeRewardInfoComponent.node.active = !0, this._freeRewardInfoComponent.Init(this._playerData, this._oldPlayerRecallConfig, this._itemPrefab), [3, 13];
                            case 10:
                                return this._giftInfoComponent ? [3, 12] : [4, Promise.all([this.LoadDynamicAsset("OldPlayerRecallPanel/Components/OldPlayerRecallGiftInfoComponent", cc.Prefab), this.LoadDynamicAsset("CommonPanel/SubItems/CommonGiftPackComponent", cc.Prefab)]).then(function(e) {
                                    if (!i.isValid) return u.AssetsManager.Instance.UnloadAsset(e[0]), void u.AssetsManager.Instance.UnloadAsset(e[1]);
                                    o = e[0], i._giftPrefab = e[1]
                                })];
                            case 11:
                                a.sent(), (r = cc.instantiate(o)).setParent(this.InfoContainer), this._giftInfoComponent = r.getComponent(I.default), a.label = 12;
                            case 12:
                                return this._giftInfoComponent.node.active = !0, this._giftInfoComponent.Init(this._oldPlayerRecallConfig, this._giftPrefab, this._itemPrefab), [3, 13];
                            case 13:
                                return [2]
                        }
                    })
                })
            }, t.prototype.HideInfoContainerAllChild = function() {
                this.InfoContainer.children.forEach(function(e) {
                    e.active = !1
                })
            }, t.prototype.SetRedDot = function() {
                for (var e = 0; e < c.TotalCount; e++) S.RedDotManager.Instance.Bind(this._toggleNodeArray[e], this._toggleRedDotArray[e], 0, -30)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, i([A(cc.RichText)], t.prototype, "TimeDuration", void 0), i([A(cc.Label)], t.prototype, "Tip", void 0), i([A(cc.Node)], t.prototype, "InfoContainer", void 0), i([A(cc.RichText)], t.prototype, "LeftTime", void 0), i([A(cc.Node)], t.prototype, "ToggleContainer", void 0), i([P], t)
        }(u.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/OldPlayerRecallDailyRewardInfoComponent": "OldPlayerRecallDailyRewardInfoComponent",
        "../Components/OldPlayerRecallFreeRewardInfoComponent": "OldPlayerRecallFreeRewardInfoComponent",
        "../Components/OldPlayerRecallGiftInfoComponent": "OldPlayerRecallGiftInfoComponent",
        "../Components/OldPlayerRecallTaskInfoComponent": "OldPlayerRecallTaskInfoComponent"
    }],
    OldPlayerRecallTaskInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ac23fhWgopCzJz4DMRNQm+8", "OldPlayerRecallTaskInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("./ItemComponent"),
            p = e("./OldPlayerRecallBoxComponent"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Panel/OldPlayerRecallPanel"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RuleButton = null, t.Tip = null, t.BigRewardContainer = null, t.BoxNodeArray = [], t.ActiveValue = null, t.GetWayButton = null, t.GetWayButtonLabel = null, t._isSetBigReward = !1, t._boxComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.GetWayButton.node.on("click", this.OnGetWayButtonClick, this), this.GetWayButtonLabel.string = "task_goto".ToUILocale(), this.Tip.string = "OldPlayerRecallPanel_TaskInfo_Tip".ToUILocale()
                }, t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._playerData = e, this._oldPlayerRecallConfig = t, this._taskPrefab = n, this._itemPrefab = o, this._isSetBigReward || (this._isSetBigReward = !0, this.SetBigRewardContainer()), this.SetBoxComponent(), this.ActiveValue.string = "OldPlayerRecallPanel_TaskInfo_ActiveValue".ToUILocale().Fmt(this._playerData[h.OldPlayerDataIndex.ActiveValue])
                }, t.prototype.SetBigRewardContainer = function() {
                    for (var e = c.ConfigDataComponent.Instance.GetConfigById(l.TaskPointReward_Config, this._oldPlayerRecallConfig.PointRewards[this._oldPlayerRecallConfig.PointRewards.length - 1]), t = 0; t < e.Rewards.length; t++) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.BigRewardContainer), n.getComponent(u.ItemComponent).Init({
                            ItemId: e.Rewards[t].Items[0],
                            Count: e.Rewards[t].Items[1]
                        })
                    }
                }, t.prototype.SetBoxComponent = function() {
                    for (var e = 0; e < this.BoxNodeArray.length; e++) {
                        var t = this._boxComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._taskPrefab);
                            n.setParent(this.BoxNodeArray[e]), t = n.getComponent(p.default), this._boxComponentArray[e] = t
                        }
                        t.Init(this._oldPlayerRecallConfig.PointRewards[e], e, this._playerData)
                    }
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "OldPlayerRecallPanel_TaskInfo_Rule_Name".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["OldPlayerRecallPanel_TaskInfo_Rule_Content".ToUILocale()]
                    };
                    s.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnGetWayButtonClick = function() {
                    a.UIManager.Instance.ShowUIPanel(f.PanelConfig.TaskPanel.Path)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.BigRewardContainer.children.indexOf(t) && s.UIUtlity.ShowItemTip(t.getComponent(u.ItemComponent).ItemId, t)
                }, i([m(cc.Button)], t.prototype, "RuleButton", void 0), i([m(cc.RichText)], t.prototype, "Tip", void 0), i([m(cc.Node)], t.prototype, "BigRewardContainer", void 0), i([m({
                    type: [cc.Node]
                })], t.prototype, "BoxNodeArray", void 0), i([m(cc.RichText)], t.prototype, "ActiveValue", void 0), i([m(cc.Button)], t.prototype, "GetWayButton", void 0), i([m(cc.Label)], t.prototype, "GetWayButtonLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/OldPlayerRecallPanel": "OldPlayerRecallPanel",
        "./ItemComponent": "ItemComponent",
        "./OldPlayerRecallBoxComponent": "OldPlayerRecallBoxComponent"
    }],
    OnAllianceBossHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a03e0L60xtCjL8HJfMQKGQx", "OnAllianceBossHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../Auxiliary/EventKeys"),
            s = e("../../../EZFramework/EZFramework");
        n.OpType = i.Push_AllianceBossSkill, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                return r(this, function() {
                    return s.Game.EventDispatcher.Emit(a.EventKeys.EVENT_ALLIANCEBOSS_SKILL_PUSH, e), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    OnAssaultOperationDataChangeHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ed08bMvlyVMeYzUTNbAtnrh", "OnAssaultOperationDataChangeHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../EZFramework/EZFramework"),
            a = e("../../../../Proto/Static/RpcProto"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../../UI/Panel/AssaultOperationModel");
        n.OpType = a.Push_OnAssaultOperationMessage, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                return r(this, function() {
                    return i.EZLog.Log("Push_OnAssaultOperationMessage", e), l.AssaultOperationModel.Data && (e.BattleInfo && e.BattleInfo.length > 0 && l.AssaultOperationModel.OnBattleStart(e.BattleInfo, !0), e.EnergyValueInfo && e.EnergyValueInfo.length > 0 && l.AssaultOperationModel.OnPlayerEnergyChange(e.EnergyValueInfo), e.Routes && e.Routes.length > 0 && l.AssaultOperationModel.OnPlayerMove(e.Routes), e.Routes && e.ChangedResourcePoint.length > 0 && l.AssaultOperationModel.OnResourceInfoChange(e.ChangedResourcePoint), e.winningStreaKInfo && e.winningStreaKInfo.length > 0 && i.Game.EventDispatcher.Emit(s.EventKeys.EVENT_ASSAULT_OPERATION_WIN_STEAK, e.winningStreaKInfo)), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../UI/Panel/AssaultOperationModel": "AssaultOperationModel"
    }],
    OnDataChangeHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "186e6JYAmZJfqFhoa4dsKLw", "OnDataChangeHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../../EZFramework/Auxiliary/EZLog");
        n.OpType = i.Push_OnDataChange, n.Handler = function() {
            return o(this, void 0, Promise, function() {
                return r(this, function() {
                    return a.EZLog.Log("Push_OnDataChange"), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog"
    }],
    OnFightingMiniGameHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "acd52I3hqxOpbTYPW8E5hWS", "OnFightingMiniGameHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../../EZFramework/Auxiliary/EZLog"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys");
        n.OpType = i.Push_OnFightingMiniGameMessage, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                return r(this, function() {
                    return a.EZLog.Log("Push_OnFightingMiniGameMessage", e), s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_FIGHTINGMINIGAME_PUSH, e), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    OnOrderArrivedHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a6483sp8+9Ef6oC9jdEhan0", "OnOrderArrivedHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../Channel/ChannelManager"),
            s = e("../../Components/Components");
        n.OpType = i.Push_OnOrderArrived, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                var t;
                return r(this, function() {
                    return e.CacheEventIds && e.CacheEventIds.length ? ((t = new i.Req_Player_ProcessCacheEvent).CacheEventIds = e.CacheEventIds, s.RpcComponent.Instance.Call(t, function(e) {
                        var t = e.Rewards.find(function(e) {
                            return -4 == e.ItemId
                        });
                        t && a.default.Instance.FireBaseLogEventPay("purchase", t.Count)
                    }, null), [2]) : [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components"
    }],
    OnPayPicksSuccessHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3d1bb+zSR1L0YV6VI/KOB85", "OnPayPicksSuccessHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../../EZFramework/EZFramework"),
            s = e("../../UI/Auxiliary/UIUtlity"),
            l = e("../ConfigData/ConfigCacheComponent"),
            c = e("../../../Consts/Consts"),
            u = e("../DataCenter"),
            p = e("../../Auxiliary/GameDataChecker"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../UI/Panel/DisplayRewardsPanel"),
            m = e("../Components"),
            I = e("../../../../Proto/Static/ConfigProto");
        n.OpType = i.Push_OnPayPicksSucceeded, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                function t(e) {
                    var t = u.DataCenter.Instance.ActivityConfigs[e];
                    return !(!t || t.Common.Type != c.ActivityType.LuckyPack && t.Common.Type != c.ActivityType.ContinuousPack)
                }
                var n, o, _, C, v, b;
                return r(this, function() {
                    var r, S;
                    return 1 == e.Packs.length && 1 == e.Packs[0].Items[1] && ((n = i.Push_OnPaySucceeded.create()).GiftId = e.Packs[0].Items[0] % c.Etc.ActivityPrefixRatio, n.ActivityId = Math.floor(e.Packs[0].Items[0] / c.Etc.ActivityPrefixRatio), n.Rewards = e.Rewards, n.IntParams = e.IntParams, d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_PAY_SUCCESS, n)), d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_PAY_PICKS_SUCCESS, e), o = f.default.Instance.GetAudioRandomNumByType(c.RandomAudioType.Recharge), a.AudioManager.Instance.PlayEffect(o), e.Rewards && e.Rewards.length > 0 ? (_ = Math.floor(e.Packs[0].Items[0] / c.Etc.ActivityPrefixRatio)) > 0 && t(_) ? (C = u.DataCenter.Instance.ActivityConfigs[_]).Common.Type == c.ActivityType.LuckyPack ? (v = e.Packs[0].Items[0] % c.Etc.ActivityPrefixRatio, b = [e.IntParams[0], e.IntParams[1], _, v], s.UIUtlity.ShwDisplayRewardPanel(e.Rewards, g.RewardPanelSpineType.MultipleSpine, b)) : C.Common.Type == c.ActivityType.ContinuousPack && (r = e.Rewards, S = [], r.forEach(function(e) {
                        var t = m.ConfigDataComponent.Instance.GetConfigById(I.ItemBase_Config, e.ItemId),
                            n = s.UIUtlity.GetLabelColorByQuality(t.Quality),
                            o = "treasure_auto_reward".ToUILocale().Fmt(n.toHEX("#rrggbb"), e.ItemId.ToItemName(), e.Count);
                        S.push(o)
                    }), s.UIUtlity.ShowFloatingHint(S)) : s.UIUtlity.ShwDisplayRewardPanel(e.Rewards) : s.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale()), e.Packs && e.Packs.length > 0 && e.Packs.forEach(function(e) {
                        var t, n = e.Items[0];
                        if (n > 0) {
                            var o = l.ConfigCacheComponent.Instance.GetGiftInfoById(n);
                            if (null != o) switch (o.Type) {
                                case c.GiftPackType.Trigger:
                                    var r = o.Index;
                                    a.EZLog.Log("\u793c\u5305id---\x3e" + r), t = r, u.DataCenter.Instance.TriggerGifts[t] && (d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REMOVE_TRIGGER_GIFT_DATA, t), delete u.DataCenter.Instance.TriggerGifts[t], p.default.Instance.TriggerGiftCheck()), d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_TRIGGER_GIFT_CLOSE, r);
                                    var i = u.DataCenter.Instance.GetTempData("UserOldBattlePowerData"),
                                        s = u.DataCenter.Instance.GetIntData(c.UserDataKey.Power);
                                    s > i && d.UIManager.Instance.ShowUIPanel(y.PanelConfig.BattlePowerChangePanel.Path, i, s)
                            }
                        } else {
                            var f = u.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts");
                            f[-n] && (f[-n].BuyCount++, u.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", f), d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REFRESH_POPUPGIFT_DATA, -n), p.default.Instance.TriggerGiftCheck())
                        }
                    }), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameDataChecker": "GameDataChecker",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../UI/Auxiliary/UIUtlity": "UIUtlity",
        "../../UI/Panel/DisplayRewardsPanel": "DisplayRewardsPanel",
        "../Components": "Components",
        "../ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../DataCenter": "DataCenter"
    }],
    OnPaySuccessHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "97a72T6IEJFqqMX4AtXTVoB", "OnPaySuccessHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../../EZFramework/EZFramework"),
            s = e("../../UI/Auxiliary/UIUtlity"),
            l = e("../ConfigData/ConfigCacheComponent"),
            c = e("../../../Consts/Consts"),
            u = e("../DataCenter"),
            p = e("../../Auxiliary/GameDataChecker"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../UI/Panel/DisplayRewardsPanel"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../Components"),
            _ = e("../../Channel/ChannelManager");
        n.OpType = i.Push_OnPaySucceeded, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                function t(e) {
                    var t = u.DataCenter.Instance.ActivityConfigs[e];
                    return !(!t || t.Common.Type != c.ActivityType.LuckyPack && t.Common.Type != c.ActivityType.ContinuousPack)
                }
                var n, o, i, C, v, b, S, w;
                return r(this, function() {
                    var r, P, A;
                    if (d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_PAY_SUCCESS, e), _.default.Instance.PostMessage(_.ActionType.PayEnd, e.GiftId, e.ActivityId), n = f.default.Instance.GetAudioRandomNumByType(c.RandomAudioType.Recharge), a.AudioManager.Instance.PlayEffect(n), null == e.Rewards ? s.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale()) : e.Rewards.length > 0 && (e.ActivityId > 0 && t(e.ActivityId) ? (o = u.DataCenter.Instance.ActivityConfigs[e.ActivityId]).Common.Type == c.ActivityType.LuckyPack ? (i = [e.IntParams[0], e.IntParams[1], e.ActivityId, e.GiftId, 1], s.UIUtlity.ShwDisplayRewardPanel(e.Rewards, y.RewardPanelSpineType.MultipleSpine, i)) : o.Common.Type == c.ActivityType.ContinuousPack && (r = e.Rewards, P = [], r.forEach(function(e) {
                            var t = I.ConfigDataComponent.Instance.GetConfigById(m.ItemBase_Config, e.ItemId),
                                n = s.UIUtlity.GetLabelColorByQuality(t.Quality),
                                o = "treasure_auto_reward".ToUILocale().Fmt(n.toHEX("#rrggbb"), e.ItemId.ToItemName(), e.Count);
                            P.push(o)
                        }), s.UIUtlity.ShowFloatingHint(P)) : s.UIUtlity.ShwDisplayRewardPanel(e.Rewards)), 0 != e.ActivityId) return [2];
                    if (null != (C = l.ConfigCacheComponent.Instance.GetGiftInfoById(e.GiftId))) switch (C.Type) {
                        case c.GiftPackType.Trigger:
                            v = C.Index, a.EZLog.Log("\u793c\u5305id---\x3e" + v), A = v, u.DataCenter.Instance.TriggerGifts[A] && (d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REMOVE_TRIGGER_GIFT_DATA, A), delete u.DataCenter.Instance.TriggerGifts[A], p.default.Instance.TriggerGiftCheck()), d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_TRIGGER_GIFT_CLOSE, v), b = u.DataCenter.Instance.GetTempData("UserOldBattlePowerData"), (S = u.DataCenter.Instance.GetIntData(c.UserDataKey.Power)) > b && d.UIManager.Instance.ShowUIPanel(g.PanelConfig.BattlePowerChangePanel.Path, b, S)
                    }
                    return e.GiftId < 0 && (w = u.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts"))[-e.GiftId] && (w[-e.GiftId].BuyCount++, u.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", w), d.Game.EventDispatcher.Emit(h.EventKeys.EVENT_REFRESH_POPUPGIFT_DATA, -e.GiftId), p.default.Instance.TriggerGiftCheck()), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameDataChecker": "GameDataChecker",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../UI/Auxiliary/UIUtlity": "UIUtlity",
        "../../UI/Panel/DisplayRewardsPanel": "DisplayRewardsPanel",
        "../Components": "Components",
        "../ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../DataCenter": "DataCenter"
    }],
    OnPopupGiftHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f4d08yY/+BM4K6iFn0NPlB/", "OnPopupGiftHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../../EZFramework/UIFrame/UIManager"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../DataCenter"),
            c = e("../../Auxiliary/GameDataChecker"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../../ShareConsts/EnumType");
        n.OpType = i.Push_OnPopupGift, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                return r(this, function() {
                    return u.default.Instance.IsGameModuleUnlock(p.GameModuleType.PopupGift)[0] && u.default.Instance.IsGameModuleOpen(p.GameModuleType.PopupGift) ? (e.Gift.ExpireTs || ((t = l.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts")) || (t = {}), t[e.Gift.Sid] = e.Gift, l.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", t), c.default.Instance.TriggerGiftCheck(), l.DataCenter.Instance.IsInBattle ? a.UIManager.Instance.SetMainSceneWaitingPanel(s.PanelConfig.RecommendedGiftPackPanel.Path, e.Gift) : a.UIManager.Instance.ShowUIPanelByQueue(s.PanelConfig.RecommendedGiftPackPanel.Path, e.Gift)), [2]) : [2];
                    var t
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameDataChecker": "GameDataChecker",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../DataCenter": "DataCenter"
    }],
    OnPrivateChatHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "66f13VMGUNEMqzcNuXkc7GG", "OnPrivateChatHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../DataCenter"),
            s = e("../../UI/Panel/ChattingMainPanel");
        n.OpType = i.Push_OnPrivateChat, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                return r(this, function() {
                    return a.DataCenter.Instance.AddPrivateChatMessage(e.Msg, e.TargetInfo), s.default.singleton && s.default.singleton.OnPrivateMessagesComing(e.Msg, e.TargetInfo), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../UI/Panel/ChattingMainPanel": "ChattingMainPanel",
        "../DataCenter": "DataCenter"
    }],
    OnPublicChatHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5d729AXYzJPFovcHiD1Vjw3", "OnPublicChatHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../DataCenter"),
            s = e("../../UI/Panel/ChattingMainPanel"),
            l = e("../../UI/Panel/ChattingMiniPanel"),
            c = e("../../UI/Components/StrongholdWarMiniChatting"),
            u = e("../../UI/Panel/AssaultOperationChattingMiniPanel");
        n.OpType = i.Push_OnPublicChat, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                var t;
                return r(this, function() {
                    for (t = 0; t < e.Msgs.length; t++) a.DataCenter.Instance.AddPublicChatMessage(e.Msgs[t]), s.default.singleton && s.default.singleton.OnPublicMessagesComing(e.Msgs[t]), l.default.OnPublicMessagesComing(e.Msgs[t]), c.default.OnPublicMessagesComing(e.Msgs[t]), u.default.OnPublicMessagesComing(e.Msgs[t]);
                    return [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../UI/Components/StrongholdWarMiniChatting": "StrongholdWarMiniChatting",
        "../../UI/Panel/AssaultOperationChattingMiniPanel": "AssaultOperationChattingMiniPanel",
        "../../UI/Panel/ChattingMainPanel": "ChattingMainPanel",
        "../../UI/Panel/ChattingMiniPanel": "ChattingMiniPanel",
        "../DataCenter": "DataCenter"
    }],
    OnPublishMaintainHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f477cH964VMkbHOHbhWxlbc", "OnPublishMaintainHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../Auxiliary/EventKeys"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../DataCenter");
        n.OpType = i.Push_OnPublishMaintain, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                return r(this, function() {
                    return l.DataCenter.Instance.SystemMaintainModel = e.Maintains, s.Game.EventDispatcher.Emit(a.EventKeys.EVENT_OFFSERVICE_DATA_REFRESH), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../DataCenter": "DataCenter"
    }],
    OnRuinsWarMapMessage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5995bpVAfZCr5G0KrFos4gH", "OnRuinsWarMapMessage");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../UI/Panel/RuinsWarModel");
        n.OpType = i.Push_OnRuinsWarMapMessage, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                return r(this, function() {
                    return a.RuinsWarModel.HandleMapMessageAction(e), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../UI/Panel/RuinsWarModel": "RuinsWarModel"
    }],
    OnStrongholdWarDataChangeHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "77cb5wkKdlE7aQp/TEYy9NW", "OnStrongholdWarDataChangeHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../Auxiliary/EventKeys"),
            s = e("../../../EZFramework/EZFramework");
        n.OpType = i.Res_War_CommonData, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                return r(this, function() {
                    return s.Game.EventDispatcher.Emit(a.EventKeys.EVENT_STRONGHOLDWAR_DATA_HANDLER, e), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    OnTopRankAlertHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4dd38EuimRDDLRaaBwBMc/F", "OnTopRankAlertHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../../Consts/Consts"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("../DataCenter");
        n.OpType = i.Push_OnTopRankAlert, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                function t(e) {
                    c.DataCenter.Instance.LoginBroadcastWaitingArr.length > 0 ? -1 == c.DataCenter.Instance.LoginBroadcastWaitingArr.indexOf(e) && c.DataCenter.Instance.LoginBroadcastWaitingArr.push(e) : (c.DataCenter.Instance.LoginBroadcastWaitingArr.push(e), s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_LOGINBROADCAST_SHOW))
                }
                var n, o, u, p;
                return r(this, function() {
                    if (e)
                        if (e.Type == a.HorseRaceLampType.RankAchievement) {
                            if (1 == c.DataCenter.Instance.GetIntData(a.UserDataKey.TopRankAlertShowState)) return [2];
                            for (n = 0, o = e.RankInfo; n < o.length; n++) u = o[n], (p = new i.Push_OnTopRankAlert).Type = e.Type, p.RankInfo = [u], p.UserInfo = e.UserInfo, t(p)
                        } else t(e);
                    return [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../DataCenter": "DataCenter"
    }],
    OnTrigerGiftHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eee04qjW6JHz6IhfLszIgVe", "OnTrigerGiftHandler");
        var o = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            r = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Handler = n.OpType = void 0;
        var i = e("../../../../Proto/Static/RpcProto"),
            a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../../EZFramework/Auxiliary/EZLog"),
            l = e("../DataCenter"),
            c = e("../../Auxiliary/GameDataChecker"),
            u = e("../RpcComponent"),
            p = e("../ConfigData/ConfigDataComponent"),
            d = e("../../../EZFramework/UIFrame/UIManager"),
            h = e("../../Auxiliary/GlobalDefine");
        n.OpType = i.Push_OnTriggerGifts, n.Handler = function(e) {
            return o(this, void 0, Promise, function() {
                function t(e) {
                    if (l.DataCenter.Instance.TriggerGifts[e]) return l.DataCenter.Instance.TriggerGifts[e]
                }

                function n(e) {
                    for (var n = 0, o = 0; o < e.Gifts.length; o++) {
                        l.DataCenter.Instance.TriggerGiftWaitingSet.has(e.Gifts[o].Sid) && l.DataCenter.Instance.TriggerGiftWaitingSet.delete(e.Gifts[o].Sid);
                        var r = t(e.Gifts[o].Sid),
                            i = e.Gifts[o];
                        r.Time = i.Time, r.Count = i.Count, r.IsStart = i.IsStart
                    }
                    if (c.default.Instance.TriggerGiftCheck(), s.EZLog.Log("\u6709\u793c\u5305\u89e6\u53d1\u4e86"), l.DataCenter.Instance.IsInBattle) d.UIManager.Instance.SetMainSceneWaitingPanel(h.PanelConfig.TriggerGiftPanel.Path, e.Gifts);
                    else if (1 == e.Gifts.length) p.ConfigDataComponent.Instance.GetConfigById(a.TriggerGift_Config, e.Gifts[0].Sid).IsShow ? d.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.TriggerGiftPanel.Path, e.Gifts) : d.UIManager.Instance.SetMainSceneWaitingPanel(h.PanelConfig.TriggerGiftPanel.Path, e.Gifts);
                    else {
                        for (o = 0; o < e.Gifts.length; o++) p.ConfigDataComponent.Instance.GetConfigById(a.TriggerGift_Config, e.Gifts[0].Sid).IsShow && n++;
                        n > 0 ? d.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.TriggerGiftPanel.Path, e.Gifts) : d.UIManager.Instance.SetMainSceneWaitingPanel(h.PanelConfig.TriggerGiftPanel.Path, e.Gifts)
                    }
                }
                var o, f, y, g, m, I;
                return r(this, function() {
                    for (s.EZLog.Log("OnTrigerGiftHandler Handler function"), o = 0; o < e.Gifts.length; o++) f = e.Gifts[o], l.DataCenter.Instance.TriggerGifts[f.Sid] = f;
                    for (m in y = new i.Req_Trigger_StartTheTime, g = [], l.DataCenter.Instance.TriggerGifts)
                        if (!(I = l.DataCenter.Instance.TriggerGifts[m]).IsEnd && !I.IsStart && I.Time > 0) {
                            if (l.DataCenter.Instance.TriggerGiftWaitingSet.has(I.Sid)) continue;
                            l.DataCenter.Instance.TriggerGiftWaitingSet.add(I.Sid), g.push(I.Sid)
                        } return g.length > 0 ? (y.Sids = g, u.RpcComponent.Instance.Call(y, n)) : c.default.Instance.TriggerGiftCheck(), [2]
                })
            })
        }, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../Auxiliary/GameDataChecker": "GameDataChecker",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../DataCenter": "DataCenter",
        "../RpcComponent": "RpcComponent"
    }],
    OnlineRewardsComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a802cMM+NxBs6HgUH5O9swV", "OnlineRewardsComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/DataUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TimeLabel = null, t.RewardSprite = null, t.RedDot = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
                }, t.prototype.start = function() {
                    this.Fresh(), n.Instance = this
                }, t.prototype.OnTouchEnd = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.OnlineRewardPanel.Path)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
                }, t.prototype.Fresh = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = u.RpcComponent.Instance.ServerTime - u.DataCenter.Instance.GetIntData(p.UserDataKey.LastLogin), t = e + u.DataCenter.Instance.OnLineDurationTime, n = u.DataCenter.Instance.GetIntData(p.UserDataKey.OnlineRewardIndex) + 1, o = u.ConfigCacheComponent.Instance.GetRequireTimeByIndex(n), this._remainTime = o - t, r = u.ConfigCacheComponent.Instance.GetOnlineItemByIndex(n), i = d.default.Instance.IsGameModuleUnlock(p.GameModuleType.OnlineTime), null != r && i[0] ? (this.SetTime(), this.unscheduleAllCallbacks(), this.schedule(this.SetTime, 1), a = d.default.Instance.GetItemPathById(r[0]), c = this, [4, l.AssetsManager.Instance.LoadAsset(a, cc.SpriteFrame)]) : (this.node.active = !1, [2]);
                                case 1:
                                    return c._rewardSpriteFrame = s.sent(), this.isValid ? (null != this.RewardSprite.spriteFrame && l.AssetsManager.Instance.UnloadAsset(this.RewardSprite.spriteFrame), this.RewardSprite.spriteFrame = this._rewardSpriteFrame, [2]) : (l.AssetsManager.Instance.UnloadAsset(this._rewardSpriteFrame), [2])
                            }
                        })
                    })
                }, t.prototype.SetTime = function() {
                    if (this._remainTime <= 0) this.TimeLabel.string = "online_canGet".ToUILocale(), this.RedDot.active = !0;
                    else {
                        var e = u.RpcComponent.Instance.ServerTime - u.DataCenter.Instance.GetIntData(p.UserDataKey.LastLogin) + u.DataCenter.Instance.OnLineDurationTime,
                            t = u.DataCenter.Instance.GetIntData(p.UserDataKey.OnlineRewardIndex) + 1,
                            n = u.ConfigCacheComponent.Instance.GetRequireTimeByIndex(t);
                        this._remainTime = n - e, this.RedDot.active = !1, this.TimeLabel.string = this._remainTime.FmtRemainTime(), this._remainTime -= p.Etc.SecondDuration, this._remainTime = this._remainTime > 0 ? this._remainTime : 0
                    }
                }, t.prototype.onDestroy = function() {
                    null != this._rewardSpriteFrame && (l.AssetsManager.Instance.UnloadAsset(this._rewardSpriteFrame), this._rewardSpriteFrame = null), this.unscheduleAllCallbacks()
                }, t.Instance = null, i([y(cc.Label)], t.prototype, "TimeLabel", void 0), i([y(cc.Sprite)], t.prototype, "RewardSprite", void 0), i([y(cc.Node)], t.prototype, "RedDot", void 0), n = i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components"
    }],
    OnlineRewardsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "049d6//ga5K2I0AoSKcaMC6", "OnlineRewardsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ItemComponent"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../../../Consts/Consts"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./OnlineRewardsComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.NextRewardRichText = null, t.GetButtonLabel = null, t.GetButton = null, t.GrayButtonLabel = null, t.GrayButton = null, t.ItemContainer = null, t.EffectContainer = null, t._aniName = "ANi_UI_effect_kelingqu", t._offset = cc.v3(0, 21), t._itemArray = [], t._rewardArray = [], t._remainTime = -1, t._deadLine = -1, t._nextRewardIndex = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(f.GameEventIds.ServerConnected, this.OnGameServerConnected, this), cc.game.on(cc.game.EVENT_SHOW, this.ChangeFront, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(f.GameEventIds.ServerConnected, this.OnGameServerConnected, this), cc.game.off(cc.game.EVENT_SHOW, this.ChangeFront, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                        n._itemPrefab = e[0]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetButtonLabel.string = "mail_receiveAllReward".ToUILocale(), this.GrayButtonLabel.string = "mail_receiveAllReward".ToUILocale(), this.GetButton.node.on("click", this.OnGetButtonClick, this);
                    for (var t = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.OnlineRewards), n = 0; n < 9; n++) {
                        var o = this.NewRewardItem(this.ItemContainer.children[n]);
                        o.Name.string = "AllZoneChampionShip_Reward".ToUILocale() + (n + 1);
                        var r = cc.instantiate(this._itemPrefab);
                        r.setParent(o.ItemNode), r.scale = 1, r.name = t.Data2[n].Items[0].toString();
                        var i = h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, t.Data2[n].Items[0]),
                            a = r.getComponent(u.ItemComponent);
                        a.Init({
                            ItemId: t.Data2[n].Items[0],
                            Count: t.Data2[n].Items[1]
                        }, i.Star ? u.ItemComponentType.ItemWithStar : u.ItemComponentType.ItemCommon), o.ItemComponent = a, this._rewardArray.push(o)
                    }
                }, t.prototype.NewRewardItem = function(e) {
                    return {
                        Bg1: e.getChildByName("Bg1"),
                        Bg2: e.getChildByName("Bg2"),
                        Name: e.getChildByName("Name").getComponent(cc.Label),
                        Focus: e.getChildByName("Focus"),
                        Mask: e.getChildByName("Mask"),
                        ItemNode: e.getChildByName("ItemNode")
                    }
                }, t.prototype.OnGetButtonClick = function() {
                    var e = this,
                        t = new p.Req_Player_OnlineRewards;
                    h.RpcComponent.Instance.Call(t, function(t) {
                        g.default.Instance.Fresh(), e.scheduleOnce(function() {
                            y.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.CountDown(), this.unscheduleAllCallbacks(), this.schedule(this.CountDown, 1), -1 == this._deadLine && t && l.UIManager.Instance.BackUIPanel(), this.SetItemState()
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - h.RpcComponent.Instance.ServerTime;
                    e < 0 && (this.SetDeadLine(), this._deadLine < 0 ? (this._nextRewardIndex = 9, e = 0, this.unscheduleAllCallbacks()) : (e = this._deadLine - h.RpcComponent.Instance.ServerTime, this.SetItemState())), this.NextRewardRichText.string = "noviceReward_next".ToUILocale().Fmt(e.FmtRemainTime())
                }, t.prototype.SetCanGet = function() {
                    var e = h.DataCenter.Instance.GetIntData(f.UserDataKey.OnlineRewardIndex) < this._nextRewardIndex;
                    this.GetButton.node.active = e, this.GrayButton.node.active = !e
                }, t.prototype.SetDeadLine = function() {
                    var e = h.RpcComponent.Instance.ServerTime - h.DataCenter.Instance.GetIntData(f.UserDataKey.LastLogin) + h.DataCenter.Instance.OnLineDurationTime,
                        t = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.OnlineRewards).Data2;
                    this._deadLine = -1;
                    for (var n = 0; n < t.length; n++) {
                        var o = h.ConfigCacheComponent.Instance.GetRequireTimeByIndex(n + 1) - e;
                        if (o > 0) {
                            this._nextRewardIndex = n, this._deadLine = h.RpcComponent.Instance.ServerTime + o;
                            break
                        }
                    }
                }, t.prototype.SetItemState = function() {
                    for (var e = h.DataCenter.Instance.GetIntData(f.UserDataKey.OnlineRewardIndex), t = 0; t < e; t++)(n = this._rewardArray[t]).Bg1.active = !0, n.Bg2.active = !1, n.Focus.active = !1, n.Mask.active = !0, n.ItemComponent.PauseGetRewardEffect();
                    for (t = this._nextRewardIndex; t < this._rewardArray.length; t++)(n = this._rewardArray[t]).Bg1.active = !0, n.Bg2.active = !1, n.Focus.active = !1, n.Mask.active = !1, n.ItemComponent.PauseGetRewardEffect();
                    for (t = e; t < this._nextRewardIndex; t++) {
                        var n;
                        (n = this._rewardArray[t]).Bg1.active = !1, n.Bg2.active = !0, n.Focus.active = !0, n.Mask.active = !1, n.ItemComponent.PlayGetRewardEffect()
                    }
                    this.SetCanGet()
                }, t.prototype.OnItemClick = function(e, t) {
                    "itemContainer363" == t.parent.parent.parent.name && y.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnGameServerConnected = function() {
                    this.ChangeFront()
                }, t.prototype.ChangeFront = function() {
                    this.SetDeadLine(), this.CountDown(), this.unscheduleAllCallbacks(), this.schedule(this.CountDown, 1)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([C(cc.RichText)], t.prototype, "NextRewardRichText", void 0), i([C(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([C(cc.Button)], t.prototype, "GetButton", void 0), i([C(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([C(cc.Button)], t.prototype, "GrayButton", void 0), i([C(cc.Node)], t.prototype, "ItemContainer", void 0), i([C(cc.Node)], t.prototype, "EffectContainer", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent",
        "./OnlineRewardsComponent": "OnlineRewardsComponent"
    }],
    OpCodeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fe301Zr9itHa7HnlA6ROnyh", "OpCodeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
            return (o = Object.setPrototypeOf || {
                    __proto__: []
                }
                instanceof Array && function(e, t) {
                    e.__proto__ = t
                } || function(e, t) {
                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                })(e, t)
        }, function(e, t) {
            function n() {
                this.constructor = e
            }
            o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
        });
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.OpCodeComponent = void 0;
        var i = e("../../Consts/Consts"),
            a = e("../../../Proto/Static/RpcProto"),
            s = e("../Auxiliary/EZLog"),
            l = e("../Base/Game"),
            c = e("../Base/GameError"),
            u = function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return t._Instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function() {
                    for (var n in t._Instance = this, this._OpCodeClassMap = {}, i.OpCode) a[n] && (this._OpCodeClassMap[i.OpCode[n]] = a[n]);
                    e.prototype.Init.call(this)
                }, t.prototype.GetOpCode = function() {
                    var e = "";
                    return e = "string" == typeof arguments[0] ? arguments[0] : arguments[0]._n_, i.OpCode[e] || 0
                }, t.prototype.GetType = function(e) {
                    return this._OpCodeClassMap[e] || null
                }, t.prototype.IsNeedLogMessage = function(e) {
                    return !(!s.EZLog.Enabled || e <= 0 || e in [])
                }, t.prototype.EncodeRpcData = function(e) {
                    var t = e.constructor._n_,
                        n = i.OpCode[t] || 0;
                    if (!n) throw new c.GameError("invalid proto data.", i.ErrCode.UserError);
                    var o = this.GetType(n);
                    this.IsNeedLogMessage(n) && (cc.log("request data:"), cc.log(o.toObject(e))), a.RpcPackage.encode(e).finish();
                    var r = o.encode(e).finish(),
                        s = new a.RpcPackage;
                    return s.Type = n, s.Data = r, s
                }, t.CompName = "OpCodeComponent", t
            }(l.Component);
        n.OpCodeComponent = u, cc._RF.pop()
    }, {
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../Consts/Consts": "Consts",
        "../Auxiliary/EZLog": "EZLog",
        "../Base/Game": "Game",
        "../Base/GameError": "GameError"
    }],
    OpCode: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "daaafMcjg9PdrrxilvA7+1V", "OpCode"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.InnerOpcodes = n.OpCode = void 0;
        var o = function() {
            function e() {}
            return e.RpcPackage = 1910486, e.UserModelChange = 14211927, e.CommonParam = 15311290, e.IntArray = 14373353, e.FloatArray = 8007676, e.DoubleArray = 7700161, e.IntMap = 16754203, e.IntArrayMap = 13580479, e.RankPlayerInfo = 6581055, e.RankAllianceInfo = 4534667, e.RankHeroInfo = 8568299, e.RankRowData = 13736789, e.RankAchievement = 13595708, e.RankData = 9754009, e.PlayerDetailInfo = 7058873, e.PlayerSimpleInfo = 15194803, e.HeroDetailInfo = 4561109, e.AngelInfo = 2196918, e.SimpleAllianceInfo = 4327062, e.AllianceMemberInfo = 2523090, e.AllianceLog = 11067632, e.AllianceMazeData = 10638648, e.AllianceMazeMap = 342207, e.BattleMessage = 3138640, e.SimpleBattleMessage = 2080513, e.HotUpdateAsset = 3038766, e.TradeWarRoundMessage = 10423666, e.CutPriceGiftInfo = 1714343, e.RuinsWarPlayerBattleData = 1876506, e.RuinsWarStrongPoint = 896983, e.RuinsWarReportMessage = 995448, e.RuinsWarPlayerEnterStrongPoint = 2378089, e.RuinsWarPlayerLeaveStrongPoint = 15622989, e.RuinsWarPlayerLeaveAlliance = 14906546, e.RuinsWarStrongPointCompete = 15321456, e.BossHuntGroupInfo = 1763005, e.BossHuntGroupRoundInfo = 6478591, e.AngelCardHandCard = 12794701, e.AssResourcePointSimpleInfo = 648255, e.AssWinstreakInfo = 8145865, e.AngelCardGameInfo = 10718100, e.AngelCardGlobalInfo = 604574, e.AngelCardPlayerInfo = 9501775, e.AssaultOperationMoveRoute = 8090705, e.AssaultOperationEnergyValueChange = 6672867, e.AssaultOperationResourcePoint = 10478775, e.AssaultOperationPlayerBattleInfo = 8142622, e.ModuleStartTime_Model = 377182, e.WebCommonParam = 10403722, e.UserLoginInfo = 14245806, e.Req_Web_InitGame = 4383918, e.Res_Web_InitGame = 8807194, e.Req_Web_GetLoginInfo = 6924243, e.Res_Web_GetLoginInfo = 7944445, e.Req_Web_Login = 9011280, e.Res_Web_Login = 6803974, e.Req_Web_LoginDebug = 15298511, e.Req_Web_GetUpdateAssets = 10220920, e.Res_Web_GetUpdateAssets = 12774466, e.Req_Web_ClientEvent = 11804967, e.Res_Web_ClientEvent = 12259142, e.Req_Account_Register = 2266222, e.Res_Account_Register = 3279680, e.Req_Account_Bind = 564532, e.Res_Account_Bind = 13376128, e.Req_Account_Login = 15199033, e.Res_Account_Login = 14245294, e.Req_Account_Password = 665461, e.Res_Account_Password = 1751131, e.Req_Account_VerifyCode = 15063037, e.Res_Account_VerifyCode = 7530386, e.Req_Account_IdCardVerification = 11474158, e.Res_Account_IdCardVerification = 14545752, e.Req_Editor_Login = 1761940, e.Res_Editor_Login = 14574880, e.Req_Editor_GetList = 12133667, e.Res_Editor_GetList = 8298390, e.Req_Editor_NewConfig = 9253567, e.Res_Editor_NewConfig = 10333585, e.Req_Editor_SaveConfig = 4103593, e.Res_Editor_SaveConfig = 6618400, e.Req_Editor_CommitConfig = 7754115, e.Res_Editor_CommitConfig = 3098809, e.Req_Player_EnterGame = 141, e.Res_Player_EnterGame = 142, e.Req_Player_ProcessCacheEvent = 4008588, e.Req_Player_AfterEnterGame = 6654158, e.Res_Player_AfterEnterGame = 13889884, e.Res_Common_Empty = 16454115, e.Res_Common_Rewards = 11227974, e.Res_Common_BattleChallenge = 7832193, e.Res_Common_Challenge = 333086, e.Res_Common_PlayerDetails = 9299391, e.Req_Player_GetRank = 5682107, e.Res_Player_GetRank = 9505038, e.Req_Player_GetTopRanks = 7546085, e.Res_Player_GetTopRanks = 14947466, e.Req_Player_DrawRankReward = 14138786, e.Req_Player_RankLike = 1245433, e.Req_Player_GetPlayerDetailInfo = 3282035, e.Res_Player_GetPlayerDetailInfo = 4256709, e.Req_Player_GetPlayerSimpleInfo = 12483449, e.Res_Player_GetPlayerSimpleInfo = 13409487, e.Req_Player_GetFormations = 2926432, e.Res_Player_GetFormations = 13549049, e.Req_Player_GetHeroDetailInfo = 1403353, e.Res_Player_GetHeroDetailInfo = 13369461, e.Req_Player_GetPlayerFormations = 3158569, e.Res_Player_GetPlayerFormations = 4380063, e.Req_Player_ChangeIcon = 2006434, e.Req_Player_ChangeShowMagicCircle = 3066767, e.Req_Player_ChangeShowPet = 4335798, e.Req_Player_Rename = 13542474, e.Req_Player_ChangeSignature = 4155523, e.Req_Player_ChangeCountry = 8586276, e.Req_Player_ChangeCountryShowState = 15481790, e.Req_Player_ChangeTopRankAlertShowState = 292336, e.Req_Player_ChangeRadio = 9016629, e.Req_Player_OnlineRewards = 8332344, e.Req_Player_ClockIn = 6713152, e.Req_Player_UseGiftCode = 5975469, e.Req_Player_ReceiveOuterRewards = 16258822, e.Req_Vip_BuyGift = 8761256, e.Req_Player_SearchUser = 14552358, e.Res_Player_SearchUser = 8678831, e.Req_Player_GetFriendList = 2729404, e.Res_Player_GetFriendList = 13352741, e.Req_Player_GetBlacklist = 6273957, e.Res_Player_GetBlacklist = 434847, e.Req_Player_GetFriendRequests = 5299297, e.Res_Player_GetFriendRequests = 9024973, e.Req_Player_ApplyFriend = 14514706, e.Req_Player_RemoveFriend = 4518626, e.Req_Player_HandleFriendRequest = 3149320, e.Req_Player_AddBlacklist = 14990326, e.Req_Player_RemoveBlacklist = 6158853, e.Req_Player_GiveGift = 12324879, e.Req_Player_AcceptGift = 15367112, e.Req_Player_GiveAndReceiveGifts = 10179475, e.Res_Player_GiveAndReceiveGifts = 15316005, e.Req_Player_FriendPK = 14370020, e.Res_Player_FriendPK = 13920901, e.Req_Player_ShareCallback = 7461301, e.Res_Player_ShareCallback = 9683756, e.Req_Player_CompleteNewerGuide = 249357, e.Req_Player_CompleteGameModuleGuide = 4582123, e.Req_Player_SaveClientStorage = 1928377, e.Req_Player_NewPlayerReward = 4599623, e.Req_Player_DaysPayEnter = 14262260, e.Res_Player_DaysPayEnter = 8423118, e.Req_Player_DaysPayReward = 14015798, e.Res_Player_DaysPayReward = 3655599, e.Req_Player_ReciveChaosTicket = 14704810, e.Req_Player_GetBattleMessages = 5909391, e.Res_Player_GetBattleMessages = 8602147, e.Req_Player_GetCommonReport = 6846440, e.Res_Player_GetCommonReport = 15863488, e.Req_Player_SetMainBackground = 6228802, e.Req_Player_SetSkip = 15678630, e.Req_Player_DetailNotShow = 11613698, e.Req_Player_OldPlayerReward = 1885544, e.Req_Player_DailyBuffReward = 4698674, e.Req_Player_SnsReward = 2376743, e.Req_Mail_GetMailList = 1172302, e.Res_Mail_GetMailList = 97376, e.Req_Mail_Read = 6519826, e.Req_Mail_Delete = 12179242, e.Req_Mail_DrawReward = 4534789, e.Req_Shop_BuyItem = 4052501, e.Req_Shop_OneClickBuyItem = 10964287, e.Req_Shop_Refresh = 15682183, e.Req_TreasureHunt_Hunt = 16376930, e.Res_TreasureHunt_Hunt = 10716395, e.Req_TreasureHunt_Refresh = 7351254, e.Req_TreasureHunt_PointReward = 5891859, e.Req_TreasureHunt_GetNotice = 2908722, e.Res_TreasureHunt_GetNotice = 11934490, e.Req_Item_SellItem = 15081018, e.Req_Item_UseItem = 8602812, e.Req_Item_UseItems = 10995478, e.Req_Item_ComposePiece = 8310659, e.Req_Item_OneClickComposePiece = 13926161, e.Req_Item_DisplaceCommonItem = 13716679, e.Req_Item_DecomposeHeroPiece = 3697011, e.Req_Item_CommonCompose = 11270317, e.Res_Item_CommonCompose = 3983554, e.Req_Item_DecomposeCore = 11399722, e.Req_Item_EquipmentPutOn = 16708842, e.Req_Item_EquipmentPutOff = 10191266, e.Req_Item_EquipmentForging = 12882241, e.Req_Item_EquipmentOneClickPutOn = 8620502, e.Req_Item_EquipmentOneClickPutOff = 8563251, e.Req_Item_EquipmentOneClickForging = 885514, e.Req_Item_BuyCoin = 14668239, e.Req_Item_BuyBattlePoint = 12576330, e.Req_Holy_EquipmentLevelUp = 8871249, e.Req_Holy_EquipmentStarUp = 6436822, e.Req_Holy_EquipmentUnlock = 15789450, e.Req_Holy_EquipmentBlessing = 11382805, e.Req_Holy_EquipmentReplace = 11679099, e.Req_Holy_EquipmentClear = 6279479, e.Req_Holy_EquipmentSoul = 5048937, e.Req_Holy_EquipmentDisplace = 7323891, e.Req_Item_SetLuckyCharmShowHouse = 8065427, e.Req_Item_UpgradeLuckyCharmShowHouse = 784168, e.Req_Item_LuckyCharmCompose = 9092460, e.Res_Item_LuckyCharmCompose = 1098820, e.Req_Item_BatchLuckyCharmCompose = 8454751, e.Res_Item_BatchLuckyCharmCompose = 3956192, e.Req_Item_LuckyCharmCast = 1388424, e.Req_Item_LuckyCharmCastSave = 7931790, e.Req_Item_LuckyCharmSelectSkill = 9057489, e.Req_Item_LuckyCharmPutOn = 10851942, e.Req_Item_LuckyCharmPutOff = 8976438, e.Req_Item_LuckyCharmLock = 10905035, e.Req_Item_LuckyCharmUpgradeStar = 14841002, e.Req_Item_LuckyCharmChangeSkill = 4406583, e.Req_Item_GemCompose = 12583714, e.Res_Item_GemCompose = 13577539, e.Req_Item_GemPutOn = 15153837, e.Req_Item_GemOneClickPutOn = 8865492, e.Req_Item_GemPutOff = 12010985, e.Req_Item_GemOneClickPutOff = 14569170, e.Req_Item_GemLock = 8184729, e.Req_Item_GemUpgrade = 16453443, e.Req_Item_CoreUpgradeLevel = 3023538, e.Req_Item_CoreUpgradeStar = 4901234, e.Req_Item_CoresUpgradeStar = 15981827, e.Req_Item_CorePutOn = 6371189, e.Req_Item_CorePutOff = 9496993, e.Req_Item_PetUpgradeStar = 3616722, e.Req_Item_PetUpgradeLevel = 11310371, e.Req_Item_PetPutOn = 11357499, e.Req_Item_SetPetShowHouse = 5564999, e.Req_Item_UpgradePetShowHouse = 8020735, e.Req_Item_PetHandbookUpgrade = 7777877, e.Req_Item_PetNestHatch = 2367456, e.Req_Item_PetNestReceive = 4128513, e.Req_Item_OneClickPetNestHatch = 9351026, e.Req_Item_PetReborn = 280907, e.Req_Item_PetLock = 5205224, e.Req_Item_PetRefine = 2264265, e.Req_Item_PetWishChange = 1073356, e.Req_Item_PetWishReceive = 16377695, e.Req_Hero_UpgradeLevel = 4923503, e.Req_Hero_UpgradeTalent = 1332276, e.Req_Hero_BatchUpgradeTalent = 2545870, e.Req_Hero_ResetTalent = 2538907, e.Res_Hero_ResetTalent = 3547829, e.Req_Hero_UpgradeStar = 6327285, e.Req_Hero_HerosUpgradeStar = 6773535, e.Req_Hero_SetFormation = 7278717, e.Req_Hero_SetSkin = 16568590, e.Req_Hero_Reborn = 9799769, e.Req_Hero_Decompose = 1131715, e.Req_Hero_Displace = 15416578, e.Req_Hero_LockHero = 9226694, e.Req_Hero_DrawReward = 9450698, e.Req_Hero_LuckSkillStudy = 10781689, e.Req_Hero_LuckSkillClear = 9679026, e.Req_Hero_HandbookUpgradeStar = 4406604, e.Req_Hero_HandbookDeposit = 13297447, e.Req_Hero_HandbookWithdraw = 4861888, e.Req_Hero_UpgradeHeroSkin = 14501209, e.Req_Hero_JobChange = 11024594, e.Req_Hero_JobReset = 4472968, e.Req_Hero_NewPersonalityUnlock = 1878323, e.Req_Hero_NewPersonalityChange = 6933270, e.Req_Hero_NewPersonalityUpgrade = 3831151, e.Req_Hero_NewPersonalitySee = 11155677, e.Req_Item_AngelUpgradeLevel = 6178981, e.Req_Item_AngelUpgradeStar = 5056103, e.Req_Item_AngelUnlock = 10303507, e.Req_Item_AngelReborn = 11006714, e.Req_Item_AngelAddFavor = 3978735, e.Req_Item_AngelGetReward = 6566341, e.Req_Item_AngelActiveFatePoint = 5854279, e.Req_Item_AngelSetSkin = 12925027, e.Req_Item_AngelActiveSkin = 194396, e.Req_Item_AngelSetSkill = 15541791, e.Req_Item_GetTargetAngel = 6507630, e.Res_Item_GetTargetAngel = 3822932, e.Req_Item_GodSoulPutOn = 3525205, e.Req_Item_GodSoulPutOff = 2277915, e.Req_Item_GodSoulCast = 5322129, e.Req_Item_GodSoulCompose = 10768917, e.Res_Item_GodSoulCompose = 16599855, e.Req_Item_GodSoulLock = 14843858, e.Req_Item_AngeleUpdateGuide = 4116223, e.Req_Item_UpStepHolyEquip = 6029743, e.Req_Item_AngelHandBookUpdate = 9618887, e.Req_Item_AngelHandbookDeposit = 12946575, e.Req_Item_AngelHandbookWithdraw = 2062830, e.Req_Item_MagicCircleUpgradeLevel = 11948509, e.Req_Item_MagicCircleUpgradeStar = 1091256, e.Req_Item_MagicCircleUpgradeTalent = 3323393, e.Req_Item_MagicCircleChangeHeroId = 984508, e.Req_Item_MagicCircleReset = 9459100, e.Req_Item_MagicCircleHandbookUpgrade = 6819541, e.Req_Hero_ActivePicSkin = 3002813, e.Req_Map_BattleSettlement = 5276180, e.Res_Map_BattleSettlement = 11704461, e.Req_Map_CancelChallenge = 13315481, e.Req_Map_DailyInstanceChallenge = 6581755, e.Req_Map_DailyInstanceQuickBattle = 11524105, e.Req_Map_ElementTowerSuppress = 7319842, e.Res_Map_ElementTowerSuppress = 11982990, e.Req_Map_TestTowerChallenge = 14498872, e.Req_Map_TestTowerQuickBattle = 7929461, e.Req_Map_TestTowerDialyReward = 14107569, e.Req_Map_TestTowerExtraReward = 7989797, e.Req_Map_TestTowerHardChallenge = 3584396, e.Req_Map_EndlessAbyssPointReward = 15787759, e.Req_Map_EndlessAbyssChallenge = 3662931, e.Res_Map_EndlessAbyssChallenge = 9842542, e.Req_Map_AdventureChallenge = 14520817, e.Req_Map_AdventureGetHangUpReward = 11923248, e.Res_Map_AdventureHangUpReward = 3378326, e.Req_Map_AdventureReceiveHangUpReward = 5439868, e.Req_Map_AdventureQuickBattle = 3818267, e.Req_Adventure_ReceiveRewards = 2088209, e.Req_Map_RefreshArenaInfo = 15935614, e.Res_Map_RefreshArenaInfo = 1127143, e.Req_Map_GetArenaTargetDetail = 7134573, e.Res_Map_GetArenaTargetDetail = 11908289, e.Req_Map_ArenaChallenge = 6357271, e.Res_Map_ArenaChallenge = 16134520, e.Req_Map_RefreshSeniorArenaInfo = 3415642, e.Res_Map_RefreshSeniorArenaInfo = 4651500, e.Req_Map_SeniorArenaChallenge = 15821937, e.Res_Map_SeniorArenaChallenge = 2622941, e.Req_Map_CollectSeniorArenaCoin = 4045035, e.Req_Map_BuySeniorArenaTicket = 12400236, e.Req_Map_CrossZoneRankEnter = 882011, e.Res_Map_CrossZoneRankEnter = 9899123, e.Req_Map_CrossZoneRankChallenge = 8569386, e.Res_Map_CrossZoneRankChallenge = 15738268, e.Req_Map_CrossZoneContinueWarRankEnter = 9512131, e.Res_Map_CrossZoneContinueWarRankEnter = 5190934, e.Req_Map_CrossZoneContinueWarRankChallenge = 8070498, e.Res_Map_CrossZoneContinueWarRankChallenge = 1394538, e.Req_Map_MoonTempleEnter = 15381564, e.Res_Map_MoonTempleEnter = 11775238, e.Req_Map_MoonTempleChallenge = 12710682, e.Res_Map_MoonTempleChallenge = 6653443, e.Req_Map_MoonTempleReports = 14637225, e.Res_Map_MoonTempleReports = 6889787, e.Req_Map_StarLightSecretLandChallenge = 3761173, e.Res_Map_StarLightSecretLandChallenge = 3605174, e.Req_Map_StarLightSecretLandSweep = 7642963, e.Req_Map_GodLandDuelEnter = 8253528, e.Res_Map_GodLandDuelEnter = 10480321, e.Req_Map_GodLandDuelChangeFormation = 13123575, e.Req_Map_GodLandDuelBattle = 13611817, e.Res_Map_GodLandDuelBattle = 7981755, e.Req_Map_RankMatchEnroll = 14077595, e.Req_Map_EnterScoreMatch = 13306436, e.Res_Map_EnterScoreMatch = 9573246, e.Req_Map_RankMatchClassificationChallenge = 3156714, e.Req_Map_RankMatchChallenge = 5403061, e.Req_Map_WorldBossGetInfo = 3046631, e.Res_Map_WorldBossGetInfo = 13395582, e.Req_Map_WorldBossChallenge = 6072191, e.Req_Map_WorldBossRewards = 15338309, e.Req_Map_WorldBossRewardsInfo = 14829007, e.Res_Map_WorldBossRewardsInfo = 3877987, e.Req_Relic_GetMap = 14567315, e.Res_Relic_GetMap = 1753127, e.Req_Relic_ThrowingDice = 11469992, e.Res_Relic_ThrowingDice = 3683527, e.Req_Relic_Fork = 5669960, e.Req_Relic_BuyDice = 9569667, e.Req_Relic_SlotMachine = 4169471, e.Req_Relic_Compass = 10354439, e.Req_Relic_CompassSelect = 2318619, e.Req_Relic_BuyGoods = 9852839, e.Req_Secret_GetMap = 3401620, e.Res_Secret_GetMap = 872707, e.Req_Secret_Click = 8271722, e.Res_Secret_Click = 12234974, e.Req_Secret_UseProp = 13551992, e.Req_Secret_GetReward = 9434292, e.Req_Secret_Resurgence = 6179096, e.Req_Secret_RewardChallenge = 9221125, e.Res_Secret_RewardChallenge = 1494317, e.Req_Intelligence_Refresh = 5325970, e.Req_Intelligence_Dispatch = 11583937, e.Req_Intelligence_GetReward = 15580521, e.Req_Intelligence_OneClickGetReward = 10398422, e.Req_Intelligence_SpeedUp = 3334658, e.Req_Star_Enter = 8781404, e.Res_Star_Enter = 4796182, e.Req_Star_PutIn = 2917466, e.Req_Star_Leave = 15882788, e.Req_Star_Unlock = 4474105, e.Req_Star_Clear = 12147352, e.Req_Star_Order = 7715727, e.Req_Star_UnlockSecond = 10436350, e.Req_Star_LevelUp = 4657268, e.Req_Star_GetEnergy = 14875681, e.Req_Star_StatueLevelUp = 5488286, e.Req_Star_SetGem = 7683262, e.Req_Star_PowerLevelUp = 13794860, e.Req_Star_PieceLevelUp = 8460449, e.Req_Star_StarUp = 14065317, e.Req_Star_Awaken = 4400569, e.Req_Star_Turn = 5466256, e.Req_Star_EmbattleLevelUp = 8854108, e.Req_Star_EmbattleSkillUp = 3663671, e.Req_Star_PointExchange = 7702511, e.Req_Star_GarrisonUnlock = 11253216, e.Req_Star_GarrisonPutOn = 6805949, e.Req_Star_GarrisonPutOff = 6754893, e.Req_Star_GarrisonOneClick = 10522487, e.Req_Star_GemMasterLevelUp = 9274339, e.Req_Ancient_Enter = 13084376, e.Req_Ancient_Challenge = 15503109, e.Res_Ancient_Challenge = 11988876, e.Req_Ancient_Rewards = 10586770, e.Req_Ancient_NodeRewards = 15855930, e.Req_Ancient_OneClickChallenge = 4964934, e.Req_Smelter_Smelt = 9570806, e.Req_Smelter_Cash = 2459272, e.Req_Temple_ExclusiveWeaponUpgrade = 12352796, e.Req_Temple_ExclusiveWeaponLevelUp = 5357157, e.Req_Temple_ExclusiveWeaponAwaken = 16609661, e.Req_Temple_ExclusiveWeaponGalleryOneClick = 8222479, e.Req_Temple_ExclusiveWeaponGalleryLevelUp = 15955963, e.Req_Temple_SuperWeaponUpgrade = 7523254, e.Req_Temple_SuperWeaponLevelUp = 10422479, e.Req_Temple_SuperWeaponSlot = 13524436, e.Req_Temple_NewYearWeaponUse = 3872355, e.Req_Strong_ReceiveFormationsRewards = 5442671, e.Req_Favor_AddFavor = 12711307, e.Req_Favor_Reset = 12309807, e.Req_Personality_UpgradeStar = 5157713, e.Req_Personality_SetAdultPictures = 2194996, e.Req_Feedback_Enter = 14140347, e.Res_Feedback_Enter = 1079566, e.Req_Feedback_ReceiveRewards = 12844518, e.Req_Player_EightDaysRewards = 10270283, e.Req_Activity_Cloud = 8839888, e.Res_Activity_Cloud = 4282469, e.Req_Player_InfiniteTenSummonEnter = 11980972, e.Res_Player_InfiniteTenSummonEnter = 12137950, e.Req_Player_LetterFromDeveloperRewards = 1016434, e.Req_Card_ProphetSummon = 1431794, e.Req_Card_CommonSummon = 14477117, e.Res_Card_CommonSummon = 8816564, e.Req_Card_ChangeWish = 11863683, e.Req_Card_ReceiveProgressRewards = 299239, e.Req_Card_ElementDisplace = 10519346, e.Req_Card_ElementDisplaceSave = 1637732, e.Req_Card_ElementDisplaceCancel = 12307859, e.Req_Card_PersonalityDisplace = 3245671, e.Req_Card_PersonalityDisplaceSave = 6395028, e.Req_Card_PersonalityDisplaceCancel = 15992427, e.Req_Card_GemDisplace = 5381569, e.Req_Card_GemDisplaceSave = 6769747, e.Req_Card_GemDisplaceCancel = 11289318, e.Req_Card_LibChanceTest = 1917104, e.Req_Card_ActivityChanceTest = 5899517, e.Req_Activity_WarTokenReward = 11589100, e.Req_Task_DrawReward = 1061584, e.Req_Task_DrawPointReward = 1823105, e.Req_Task_StrongPathReward = 6780913, e.Req_Notice_GetByType = 16775346, e.Res_Notice_GetByType = 15689628, e.Req_Alliance_CreateAlliance = 1777557, e.Res_Alliance_CreateAlliance = 12544652, e.Req_Alliance_GetAllianceList = 13201304, e.Res_Alliance_GetAllianceList = 1050164, e.Req_Alliance_GetMyAlliance = 1858653, e.Res_Alliance_GetMyAlliance = 8791413, e.Req_Alliance_GetAllianceDetail = 7331216, e.Res_Alliance_GetAllianceDetail = 1915430, e.Req_Alliance_GetMemeberList = 7608181, e.Res_Alliance_GetMemeberList = 13656684, e.Req_Alliance_GetAllianceLog = 6130024, e.Res_Alliance_GetAllianceLog = 16383089, e.Req_Alliance_AllianceSetting = 12304015, e.Req_Alliance_AllianceRename = 15457818, e.Req_Alliance_ChangePost = 2799806, e.Req_Alliance_AppointLeader = 10830762, e.Req_Alliance_DismissAlliance = 9225286, e.Req_Alliance_KickMember = 6391746, e.Req_Alliance_Advertise = 6868658, e.Res_Alliance_Advertise = 16776925, e.Req_Alliance_GetRequestList = 13466622, e.Res_Alliance_GetRequestList = 6885095, e.Req_Alliance_AgreeRequest = 3929368, e.Req_Alliance_RejectRequest = 3526053, e.Req_Alliance_ApplyJoin = 6522303, e.Res_Alliance_ApplyJoin = 16037328, e.Req_Alliance_QuitAlliance = 9465880, e.Req_Alliance_ImpeachLeader = 4594709, e.Res_Alliance_ImpeachLeader = 14443837, e.Req_Alliance_UpgradeTalent = 14603043, e.Req_Alliance_ResetTalent = 12121205, e.Req_Alliance_TestEnter = 14251044, e.Res_Alliance_TestEnter = 5129291, e.Req_Alliance_TestChallenge = 11762124, e.Req_Alliance_TestRedPacket = 8330715, e.Res_Alliance_TestRedPacket = 15033587, e.Req_Alliance_TestRank = 15563315, e.Res_Alliance_TestRank = 11999930, e.Req_Alliance_TestPass = 14056814, e.Req_Alliance_ChallengeEnter = 933153, e.Res_Alliance_ChallengeEnter = 11159608, e.Req_Alliance_Challenge = 16425314, e.Res_Alliance_Challenge = 7180557, e.Req_Alliance_ChallengeDailyReports = 459211, e.Res_Alliance_ChallengeDailyReports = 14454245, e.Req_Alliance_ChallengeDailyRank = 1888715, e.Res_Alliance_ChallengeDailyRank = 10587764, e.Req_Alliance_ChallengeSeason = 14729400, e.Res_Alliance_ChallengeSeason = 3778836, e.Req_Alliance_BadgeUpgrade = 6879625, e.Req_Alliance_GetRedPacketList = 160798, e.Res_Alliance_GetRedPacketList = 10731299, e.Req_Alliance_OpenRedPacket = 7379652, e.Res_Alliance_OpenRedPacket = 15393772, e.Req_Alliance_GetMyRedPackets = 4518127, e.Res_Alliance_GetMyRedPackets = 10328387, e.Req_Alliance_SendRedPacket = 11339053, e.Res_Alliance_SendRedPacket = 3636229, e.Req_Alliance_GetRedPacketInfo = 693102, e.Res_Alliance_GetRedPacketInfo = 11229267, e.Req_Alliance_GetAllianceBossInfo = 14797585, e.Res_Alliance_GetAllianceBossInfo = 15763446, e.Req_Alliance_AllianceBossApply = 2750061, e.Res_Alliance_AllianceBossApply = 5968347, e.Req_Alliance_AllianceBossSkill = 8309874, e.Req_Alliance_AllianceBossReward = 6599478, e.Req_Alliance_GetAllianceBossRank = 4510599, e.Res_Alliance_GetAllianceBossRank = 5611360, e.Req_Chat_PrivateChat = 14259931, e.Res_Chat_PrivateChat = 13175285, e.Req_Chat_PublicChat = 16403001, e.Res_Chat_PublicChat = 16082008, e.Req_Chat_SetShowMessageCount = 10806160, e.Req_Chat_SetPublicChatViewTs = 11712639, e.Req_Chat_SetPrivateChatViewTs = 901584, e.Req_Chat_RemovePrivateChat = 1737304, e.Req_Chat_G123Translate = 395858, e.Res_Chat_G123Translate = 9517629, e.Req_Game_GetMaxScoreHeros = 16097065, e.Res_Game_GetMaxScoreHeros = 4449979, e.Req_Game_GetHotFormations = 2976621, e.Res_Game_GetHotFormations = 10162943, e.Req_Game_GetGuruFormations = 14499854, e.GuruFormations_Model = 5727410, e.Res_Game_GetGuruFormations = 4667686, e.Req_Game_HelperOneClick = 8889657, e.HelperData = 15118233, e.Res_Game_HelperOneClick = 14597123, e.Req_Game_CommonBuyCount = 8056672, e.Req_Game_SetFrontStatusData = 5292403, e.Req_Game_CommonRewards = 14050521, e.Req_Battle_TestBattle = 14727854, e.Res_Battle_TestBattle = 12245543, e.Req_Battle_ManualBattleStart = 5911051, e.Res_Battle_ManualBattleStart = 8608679, e.Req_Battle_ManualBattleAction = 11671243, e.Res_Battle_ManualBattleAction = 1302006, e.Req_Battle_ManualBattleCancel = 11056748, e.Req_Mall_ReceiveDaysGift = 3520785, e.Req_Mall_ReceiveDailyPay = 2465154, e.Req_Mall_ReceiveSevenDayPay = 13080123, e.Req_Mall_ChangeGoodFundIndex = 2444590, e.Req_Mall_ReceiveGoodFund = 4198758, e.Req_Mall_ReceiveGrowUpFund = 12495118, e.Req_Mall_ReceiveFirstPay = 12125817, e.Req_Mall_ReceiveLevelGift = 2314491, e.Req_Mall_LuckyStarFree = 13816758, e.Req_Mall_LuckyStarSummon = 2091668, e.Res_Mall_LuckyStarSummon = 16642061, e.Req_Mall_PermanentRewards = 7444742, e.Req_Mall_ChangeShoppingCart = 9992973, e.Req_Mall_DailySelectionChooseHero = 8298492, e.Req_Team_HeroFetterUpgradeLevel = 348797, e.Req_Team_HeroFetterRewards = 3562534, e.Req_Team_TreasureHouseTreasureUpgradeLevel = 13716247, e.Req_Team_TreasureHouseAssociationUpgradeLevel = 5302121, e.Req_Team_TreasureHouseStoneUpgradeLevel = 13078242, e.Req_Team_TreasureHouseSerialSkill = 9797667, e.Req_Team_FighterSpiritUpgradeGraph = 11780572, e.Req_Team_FighterSpiritUpgradeChapterSkill = 13215686, e.Req_Team_FighterSpiritResetChapterSkill = 14319233, e.Res_Team_FighterSpiritResetChapterSkill = 1557695, e.Req_Team_FighterSpiritPromote = 8280547, e.Req_Team_FighterSpiritDecompose = 5900893, e.Res_Team_FighterSpiritDecompose = 15160802, e.Req_Team_FighterSpiritChapterReset = 13430592, e.Res_Team_FighterSpiritChapterReset = 1532782, e.Req_Team_FighterSpiritAddWish = 16119427, e.Req_Team_FighterSpiritDelWish = 12586382, e.Req_Team_FighterSpiritOneKeyUpgradeGraph = 2823861, e.Req_Team_StarPieceResonanceUpgrade = 9186607, e.Req_Team_HeroTalentResonanceUpgrade = 1679055, e.Req_Team_ChaosTempleUpgradeLevel = 14865155, e.Req_Team_DesignationUpgradeLevel = 16522777, e.Req_Team_StrategyUpgradeLevel = 12901261, e.Req_Team_StrategyBookReset = 10649483, e.Req_Team_DukeUpgradeLevel = 10392687, e.Req_Team_DukeScrollUpgradeLevel = 8726122, e.Req_Team_DukeScrollReset = 15492088, e.Req_Team_GemGalleryPutOn = 918283, e.Req_Team_GemGalleryPutOff = 9378740, e.Req_Team_GemGalleryUpgradeLevel = 4261201, e.Req_Team_HolyEquipGalleryPutOn = 1580117, e.Req_Team_HolyEquipGalleryPutOff = 4995281, e.Req_Team_HolyEquipGalleryUpgradeLevel = 11703823, e.Req_Team_PowerCoreGalleryPutOn = 12427466, e.Req_Team_PowerCoreGalleryPutOff = 14326662, e.Req_Team_PowerCoreGalleryUpgradeLevel = 12638432, e.Req_Team_ParanormalPuzzleFitInto = 10591865, e.Req_Team_ParanormalPuzzleTakeOut = 3645373, e.Req_Team_ParanormalPuzzleUnlock = 3862726, e.Req_Team2_ArtefactUpgradeStar = 11533085, e.Req_Team2_ArtefactForge = 11103735, e.Req_Team2_ArtefactPutOn = 10140813, e.Req_Team2_ArtefactPutOff = 5599864, e.Req_Team2_ArtefactResonanceUpgradeStar = 813441, e.Req_Team2_ArtefactRelicChallenge = 12141011, e.Req_Team2_ArtefactRelicEquip = 8554571, e.Req_Team2_ArtefactRelicBuyCount = 4899406, e.Req_Team2_ElementTempleUpgradeLevel = 2768862, e.Req_Team2_ElementTempleBless = 6869337, e.Res_Pay_TestPay = 12596346, e.Req_Pay_Succeeded_Test = 13001580, e.Req_Pay_Succeeded_Test2 = 1307127, e.Req_Trigger_StartTheTime = 14369702, e.Req_Trigger_Enter = 9775234, e.Res_Trigger_Gifts = 10245771, e.Req_PopupGift_Start = 10928296, e.Req_Pay_ByDiamond = 6655601, e.Res_Pay_ByDiamond = 5978342, e.Req_Pay_ByCurrency = 9925607, e.Req_PayOrder_G123 = 10389260, e.Res_PayOrder_G123 = 10498459, e.Req_PayOrders_G123 = 9231445, e.Req_PayOrder_VN = 10033896, e.Res_PayOrder_VN = 5296966, e.Req_PaySucceeded_VN = 10412953, e.Req_PaySucceeded_VN2 = 15624341, e.Req_Activity_CommonSummon = 4725583, e.Res_Activity_CommonSummon = 16671453, e.Req_Activity_CommonDailyRewards = 892610, e.Req_Activity_NotPrompt = 10705283, e.Req_Activity_CommonTaskReward = 6059623, e.Req_Activity_CommonBuyTaskReward = 11065502, e.Req_Activity_CommonBuyTicket = 9563826, e.Req_Activity_CommonRewardsReplace = 9171060, e.Req_Activity_CommonRewards = 15357722, e.Req_Activity_CommonEnter = 260136, e.Res_Activity_CommonEnter = 14803633, e.Req_Activity_WishChangeCard = 9159141, e.Req_Activity_ActiveWarReceiveRewards = 3884679, e.Req_Activity_NewSignInReceiveRewards = 16755096, e.Req_Activity_NewSignInReceiveRewards2 = 3626837, e.Req_Activity_GetRankOverview = 6731213, e.Req_Activity_GetRank = 8076127, e.Res_Activity_GetRank = 7054449, e.Req_Activity_CarnivalBuyPack = 7082969, e.Req_Activity_FatePraySelectReward = 6450158, e.Req_Activity_FatePrayDraw = 4297996, e.Req_Activity_GetLuckyLotteryInfo = 15535931, e.Res_Activity_GetLuckyLotteryInfo = 16532444, e.Req_Activity_GetLuckyLotteryPlayerInfo = 2165137, e.Res_Activity_GetLuckyLotteryPlayerInfo = 6800571, e.Req_Activity_BuyLuckyLottery = 11153495, e.Res_Activity_BuyLuckyLottery = 7559675, e.Req_Activity_GetLuckyLotteryReward = 1738483, e.Req_Activity_HeroTestChallenge = 4625969, e.Req_Activity_DrawHeroTestChallengeReward = 14968154, e.Res_Activity_HeroTestChallenge = 3436935, e.Req_Activity_HeroTestTaskReward = 7681509, e.Req_Activity_AllUserImpactRankEnter = 14922625, e.Req_Activity_ElementTestChallenge = 8909243, e.Req_Activity_ElementTestQuickBattle = 10508833, e.Req_Activity_HeroTryChallengeBegin = 3568717, e.Req_Activity_SkinTryChallengeBegin = 64354, e.Req_Activity_StoryChallenge = 13555842, e.Req_Activity_StoryBossChallenge = 11184374, e.Req_Activity_StoryFinishTask = 14618367, e.Req_Activity_StoryFinishContent = 2010196, e.Req_Activity_StoryFinishChapter = 9414550, e.Req_Activity_HeroDungeonChallenge = 7355999, e.Req_Activity_HeroDungeonQuickBattle = 11934227, e.Req_Activity_RebateSummon = 4447091, e.Req_Activity_UpgradeStarReward = 13393623, e.Req_Activity_MazeExploreSelectReward = 4465697, e.Req_Activity_MazeExploreNextStage = 10852262, e.Req_Activity_MazeExploreReceiveReward = 7752833, e.Req_Activity_HappyTurnSettlement = 14541584, e.Res_Activity_HappyTurnSettlement = 13414391, e.Req_Activity_PickFoodSettlement = 15465383, e.Res_Activity_PickFoodSettlement = 5678104, e.Req_Activity_OptionalUpgradeStarReward = 4263240, e.Req_Activity_OptionalUpgradeStarSelect = 2294722, e.Req_Activity_OptionalUpgradeStarLock = 8117879, e.Req_Activity_PersonalityChangeItem = 11418203, e.Req_Activity_BuyItem = 11938565, e.Req_Activity_ShoppingCart = 7053010, e.Req_Activity_TaskTalentReward = 14010335, e.Req_Activity_PayGuideReward = 15100893, e.Req_Activity_InfiniteGiftPackReward = 8653979, e.Req_Activity_InfiniteGiftPackUpdate = 16578321, e.Req_Activity_CustomGiftPackSelect = 3634063, e.Req_Activity_SinglePagePackSelect = 10277281, e.Req_Activity_FateStarBoxReset = 3004987, e.Req_Activity_IngenuitySettlement = 634163, e.Res_Activity_IngenuitySettlement = 1630676, e.Req_Activity_SecretEnter = 9098713, e.Res_Activity_SecretEnter = 6868800, e.Req_Activity_SecretClick = 9746126, e.Res_Activity_SecretClick = 7777367, e.Req_Activity_SecretUseProp = 672260, e.Req_Activity_SecretResurgence = 16683099, e.Req_Activity_SecretIsland = 6804325, e.Res_Activity_SecretIsland = 13740791, e.Req_Activity_WishTreeEnter = 3343846, e.Res_Activity_WishTreeEnter = 11107534, e.Req_Activity_WishTreeSummon = 8145455, e.Res_Activity_WishTreeSummon = 14171958, e.Req_Activity_WorldBossEnter = 947713, e.Res_Activity_WorldBossEnter = 11141912, e.Req_Activity_WorldBossChallenge = 2024543, e.Req_Activity_WorldBossInnerRank = 2150938, e.Res_Activity_WorldBossInnerRank = 10325413, e.Req_Activity_WarTokenRewards = 15962496, e.Req_Activity_TaskWarTokenRewards = 16193199, e.Req_Activity_NewWarTokenRewards = 12725089, e.Req_Activity_NewWarTokenChoose = 11739198, e.Req_Activity_NewWarTokenUseItems = 1785821, e.Req_Activity_AllUserPuzzleActivate = 2411796, e.Res_Activity_AllUserPuzzleActivate = 16728378, e.Req_Activity_AllUserPuzzleGiveList = 16579541, e.PlayerPuzzleGiveInfo = 8642352, e.Res_Activity_AllUserPuzzleGiveList = 2586619, e.Req_Activity_AllUserPuzzleDemand = 16313672, e.Req_Activity_AllUserPuzzleGive = 1117167, e.Req_Activity_AllUserPuzzleDisplace = 7390804, e.Req_Activity_CumulativeBuyGiftReward = 3310704, e.Req_Activity_ExquisiteCustomCardSelect = 1606427, e.Req_Activity_ExquisiteCustomCardReward = 8031633, e.Req_Activity_BadgeCollectLighten = 15053085, e.Req_Activity_BadgeCollectReward = 5127699, e.Req_Activity_PlayerReturnReward = 16757076, e.Req_Activity_MonopolyThrow = 7250585, e.Res_Activity_MonopolyThrow = 16047025, e.Req_Activity_ContinuousPayReward = 15997760, e.Req_Activity_AnswerCompetitionEnter = 3603077, e.Req_Activity_AnswerCompetitionCompete = 14439544, e.Res_Activity_AnswerCompetitionCompete = 148909, e.Req_Activity_AnswerCompetitionQuit = 4855378, e.Res_Activity_AnswerCompetitionQuit = 9542268, e.Req_Activity_AnswerCompetitionAnswer = 16659978, e.Req_Activity_AnswerCompetitionInfo = 15641486, e.Res_Activity_AnswerCompetitionInfo = 3483552, e.Req_Activity_LoveArcherStart = 2275509, e.Res_Activity_LoveArcherStart = 16503065, e.Req_Activity_LoveArcherFinish = 5278824, e.Res_Activity_LoveArcherFinish = 15812437, e.Req_Activity_LoveArcherHeroPiece = 1028522, e.Res_Activity_LoveArcherHeroPiece = 2030925, e.Req_Activity_TwentyOneGameRequireCard = 13742683, e.Res_Activity_TwentyOneGameRequireCard = 1024910, e.Req_Activity_TwentyOneGameStopCard = 11608905, e.Res_Activity_TwentyOneGameStopCard = 6991719, e.Req_Activity_LuckyBagRewards = 2763852, e.Req_Activity_DailySigninRewards = 6392292, e.Req_Activity_WarmUpActRewards = 12738720, e.Req_Activity_DrawStoryReward = 16661306, e.Req_Activity_DrawHeroStarGift = 11997208, e.Req_Activity_LockHeroStarGiftHero = 11133189, e.Req_Activity_DrawStarUpReward = 10893293, e.Req_Activity_DrawCarnivalReward = 7467663, e.Req_Activity_AllianceTraderGetInfo = 9994144, e.Res_Activity_AllianceTraderGetInfo = 4453262, e.Req_Activity_EightDaysRewards = 1552480, e.Req_Alliance_GetAllianceMazeInfo = 2507877, e.Res_Alliance_GetAllianceMazeInfo = 3606658, e.Req_Alliance_AllianceMazeChallenge = 4970610, e.Res_Alliance_AllianceMazeChallenge = 9458780, e.Req_Alliance_AllianceMazeSingleChallenge = 3948678, e.Res_Alliance_AllianceMazeSingleChallenge = 1618387, e.Req_Alliance_GetAllianceMazeShowInfo = 2318863, e.Res_Alliance_GetAllianceMazeShowInfo = 2950316, e.Req_Alliance_SetAllianceMazeShowInfo = 7322458, e.Req_Alliance_GetAllianceMazeShowReward = 10854603, e.Req_Alliance_AddAllianceMazeHolyExp = 10421304, e.Res_Alliance_AddAllianceMazeHolyExp = 5347336, e.Req_Alliance_GetAllianceMazeLevelReward = 16552687, e.Req_Alliance_GetAllianceMazeAllianceRank = 10793233, e.Res_Alliance_GetAllianceMazeAllianceRank = 8405060, e.Req_Alliance_GetAllianceMazeMemberRank = 2805987, e.Res_Alliance_GetAllianceMazeMemberRank = 7085513, e.Req_Alliance_SetAllianceMazeFire = 12331703, e.Req_Alliance_GetAllianceMazeResourceInfo = 2710264, e.Res_Alliance_GetAllianceMazeResourceInfo = 895917, e.Req_Alliance_GetAllianceMazeResourcePlayers = 6348268, e.Res_Alliance_GetAllianceMazeResourcePlayers = 12331444, e.Req_Alliance_JoinAllianceMazeResource = 1134069, e.Req_Alliance_QuitAllianceMazeResource = 14620652, e.Req_Alliance_GetAllianceMazeChallengeNotice = 13125245, e.Res_Alliance_GetAllianceMazeChallengeNotice = 1356325, e.Req_SaintsWar_SetFormation = 8921356, e.Req_SaintsWar_ChangeDifficulty = 5691814, e.Req_SaintsWar_Challenge = 2340674, e.Req_SaintsWar_QuickBattle = 2398090, e.Req_CrossZone_GetGroupInfo = 1943551, e.Req_Activity_BuyCollectHouse = 10592498, e.Req_Activity_ActivityBossChallenge = 2920794, e.Req_Activity_ActivityBossUseItems = 2249221, e.Req_Activity_JoinSupportGroup = 6646292, e.Req_Activity_DonateSupportGroup = 1658784, e.Req_Activity_DrawPersonSupportReward = 4255937, e.Req_Activity_DrawGroupSupportReward = 476048, e.Req_Activity_RefreshSupportInfo = 13027875, e.Res_Activity_RefreshSupportInfo = 8099228, e.Req_Activity_GetSupportMsg = 6856168, e.Res_Activity_GetSupportMsg = 15918272, e.ActivitySupportMsg = 6005688, e.Req_Activity_HeroSuitChange = 16735288, e.Req_Activity_SummonBoxReset = 11120042, e.Req_Activity_SummonBoxSelect = 14603149, e.Req_Activity_ReceiveFirstPay = 12105910, e.Req_Activity_KnifeTrainingPlay = 6937627, e.Res_Activity_KnifeTrainingPlay = 1784749, e.Req_Activity_KnifeTrainingRewards = 14344009, e.Req_Activity_CrazyWheelEnter = 10893624, e.Res_Activity_CrazyWheelEnter = 8343700, e.Req_Activity_HeroTestTowerEnter = 15602926, e.Res_Activity_HeroTestTowerEnter = 5458769, e.Req_Activity_HeroTestTowerRewards = 5924221, e.Req_Activity_HeroTestTowerLike = 6761703, e.Req_Activity_HeroTestTowerChallenge = 14257331, e.Req_Activity_ElementArenaMatchOpponent = 3505434, e.Res_Activity_ElementArenaMatchOpponent = 7581744, e.Req_Activity_ElementArenaBattle = 11090430, e.Res_Activity_ElementArenaBattle = 1336897, e.Req_Activity_ElementArenaExchangeBadge = 8393097, e.Req_Activity_SecondKillEnter = 10577373, e.Res_Activity_SecondKillEnter = 7867505, e.Req_Activity_SecondKillCollect = 14078694, e.Req_Activity_EmaPrayChooseRewards = 15505283, e.Req_Activity_MagicComposeAppraiseReel = 6187882, e.Req_Activity_MagicComposeStart = 9496308, e.Req_Activity_MagicComposeGetReward = 9851258, e.Req_Activity_RunningTrainChooseHero = 3373524, e.Req_Activity_RunningTrainGetMeters = 3809772, e.Req_Activity_RunningTrainUseItemConsume = 7631019, e.Req_Activity_RunningTrainUpgradeAttrsLevel = 1437429, e.Req_Activity_RunningTrainGetRewards = 10517073, e.Req_Activity_RunningTrainGetRank = 3256691, e.Req_Activity_RecordStoryProgress = 8887295, e.Req_Activity_GetSuperGiftRewards = 14340628, e.Req_Activity_RechargeFeedbackRefreshItem = 5237484, e.Req_Activity_RechargeFeedbackSelectRewards = 8868264, e.Req_Activity_RechargeFeedbackExtraRewards = 866153, e.Req_Activity_HeroPKEnter = 11652044, e.Req_Activity_HeroPKTargetInfo = 12132811, e.Res_Activity_HeroPKTargetInfo = 1633014, e.Req_Activity_HeroPKApply = 4264763, e.Req_Activity_HeroPKChallenge = 5498648, e.Req_Activity_HeroPKGetRank = 7850762, e.Req_Activity_HeroPKRewards = 1483838, e.Req_Activity_HeroPKReports = 6454908, e.Req_Activity_SailingTreasureHuntChooseRewards = 11090763, e.Req_Activity_SailingTreasureHuntChooseTurnRewards = 7543765, e.Req_Activity_SailingTreasureHuntDrawTurnRewards = 16397503, e.Req_Activity_ChampionApply = 4352530, e.Req_Activity_ChampionGetMyReports = 14963160, e.Req_Activity_ChampionGetRank = 175010, e.Req_Activity_ChampionGetContestants = 12870511, e.Req_Activity_ChampionGetRace = 16254034, e.Req_Activity_ScratchCardGetNumber = 2875709, e.Req_Activity_ScratchCardDrawRewards = 7685682, e.Req_Activity_ScratchCardGetShow = 11125689, e.Res_Activity_ScratchCardGetShow = 1350662, e.Req_Activity_LuckyCakeDrawRewards = 10350890, e.Req_Activity_CircusMazeEnter = 4840457, e.Res_Activity_CircusMazeEnter = 9483685, e.Req_Activity_CircusMazeAct = 3710746, e.Res_Activity_CircusMazeAct = 10675762, e.Req_Activity_CircusMazeDrawProgressRewards = 15074940, e.Req_Activity_NinjaMiniGameStart = 14486272, e.Req_Activity_NinjaMiniGameSettle = 7327104, e.Req_Activity_ChampionshipEnter = 1124556, e.Res_Activity_ChampionshipEnter = 6541178, e.Req_Activity_ChampionshipTarget = 14643657, e.Req_Activity_ChampionshipChallenge = 9798553, e.Req_Activity_ChampionshipRank = 3850938, e.Req_Activity_ChampionshipRewards = 6104089, e.Req_Activity_ChampionshipReports = 2752091, e.Req_Activity_ChampionshipBuyTicket = 15286487, e.Req_Activity_KnockWatermelonAct = 6790184, e.Res_Activity_KnockWatermelonAct = 14336919, e.Req_Activity_DrawCardFightChallenge = 6094546, e.Req_Activity_DrawCardFightReset = 2261948, e.Req_Activity_DrawCardFightAttack = 11801502, e.Res_Activity_DrawCardFightAttack = 10837881, e.Req_Activity_GetLimitTimeImpactRankGroupRewards = 7718996, e.Req_Activity_BreakouTargets = 3844229, e.Req_Activity_BreakouChallenge = 14922932, e.Req_Activity_BreakouReports = 7302731, e.Req_Activity_BreakouFloors = 10189099, e.Res_Activity_BreakouFloors = 65539, e.Req_Activity_FightingMiniGameMatchStart = 2364053, e.Req_Activity_FightingMiniGameMatchCancel = 14722571, e.Req_Activity_FightingMiniGameBattleStart = 7894198, e.Req_Activity_FightingMiniGameRoundCommand = 15095313, e.Req_Activity_FightingMiniGameRoundEnd = 8349883, e.Req_Activity_FightingMiniGameQuit = 4689492, e.Req_Activity_FightingMiniGameReports = 854285, e.Res_Activity_FightingMiniGameReports = 225198, e.Req_Activity_FightingMiniGameTask = 12699323, e.Req_Activity_GiftAllHeroesGetFreeRewrads = 8393696, e.Req_Activity_GiftAllHeroesGetPayRewrads = 2080744, e.Req_Activity_SuperKoiGetWinners = 6626601, e.Res_Activity_SuperKoiGetWinners = 14172822, e.Req_Activity_BindRewards = 6729188, e.Req_Activity_TradeWarInfo = 14814300, e.Res_Activity_TradeWarInfo = 5535182, e.Req_Activity_TradeWarJoin = 3297587, e.Req_Activity_TradeWarRoleUpgrade = 4586523, e.Req_Activity_TradeWarGoToCity = 11710332, e.Req_Activity_TradeWarSpeedUp = 8821227, e.Req_Activity_TradeWarTrade = 8062174, e.Req_Activity_TradeWarAttack = 4627266, e.Req_Activity_TradeWarRoundReward = 12371157, e.Req_Activity_TradeWarRoundMessage = 1286547, e.Res_Activity_TradeWarRoundMessage = 1852641, e.Req_Activity_TradeWarRoundRank = 3165463, e.Req_Activity_TradeWarTotalRank = 15290002, e.Res_Activity_TradeWarRank = 15822168, e.Req_Activity_TradeWarSetScoreReward = 2103319, e.Req_Activity_TradeWarGetScoreReward = 1201608, e.Req_Activity_NoviceTrainingInfo = 7764694, e.Res_Activity_NoviceTrainingInfo = 13313385, e.Req_Activity_NoviceTrainingChallenge = 15054966, e.Req_Activity_NoviceTrainingZoneData = 14684022, e.Res_Activity_NoviceTrainingZoneData = 3052358, e.Req_Activity_NoviceTrainingZoneRewards = 3491799, e.Req_Activity_Game2048Start = 12009495, e.Res_Activity_Game2048Start = 2963775, e.Req_Activity_Game2048Move = 1630477, e.Req_Activity_Game2048UseItem = 8015697, e.Req_Activity_FantasticPastureReStart = 3870639, e.Req_Activity_FantasticPastureMove = 462668, e.Res_Activity_FantasticPastureMove = 584254, e.Req_Activity_FantasticPastureUseItem = 11747651, e.Res_Activity_FantasticPastureUseItem = 12396512, e.Req_Activity_RushUpMove = 699526, e.Req_Activity_RushUpSetFloorReward = 6254710, e.Req_Activity_RushUpGetFloorReward = 7159209, e.Req_Activity_CutPriceGiftInfo = 10461219, e.Res_Activity_CutPriceGiftInfo = 4090654, e.Req_Activity_CutPriceGiftPublishHelp = 4537760, e.Res_Activity_CutPriceGiftPublishHelp = 4938499, e.Req_Activity_CutPriceGiftHelp = 3086891, e.Res_Activity_CutPriceGiftHelp = 9359638, e.Req_Activity_BossHuntInfo = 5522812, e.Res_Activity_BossHuntInfo = 14826734, e.Req_Activity_BossHuntJoin = 8656915, e.Res_Activity_BossHuntJoin = 3301761, e.Req_Activity_BossHuntChallenge = 3351600, e.Req_Activity_BossHuntRoundReward = 10113149, e.Req_Activity_BossHuntRoundRank = 5803015, e.Req_Activity_BossHuntTotalRank = 8490882, e.Res_Activity_BossHuntRank = 4662392, e.Req_Activity_UniversalBenefitsInfo = 14313671, e.Res_Activity_UniversalBenefitsInfo = 124137, e.Req_Activity_UniversalBenefitsDrawReward = 7074061, e.Req_Activity_Flop = 12037554, e.Res_Activity_Flop = 8985381, e.Req_Activity_FlopRewards = 16508106, e.Req_Activity_ActGameEnd = 15381407, e.Req_Activity_ActGameRewards = 15923077, e.Req_Activity_MysteryBoxOpen = 8308442, e.Res_Activity_MysteryBoxOpen = 14332867, e.Req_Activity_MysteryBoxRewards = 10912370, e.Req_Activity_MysteryBoxChooseReward = 946750, e.Req_Activity_PowerTaskReward = 5522144, e.Req_Activity_SeasonWeaponUpgradeLevel = 5623389, e.Req_Activity_SeasonWeaponUpgradeStar = 13853530, e.Req_Activity_SeasonWeaponPutOn = 3202371, e.Req_Activity_SeasonWeaponFly = 10504221, e.Req_Activity_AngelCardEnterGame = 6167807, e.Res_Activity_AngelCardEnterGame = 14893888, e.Req_Activity_AngelCardStartGame = 14405914, e.Res_Activity_AngelCardStartGame = 6721189, e.Req_Activity_AngelCardOverGame = 8672473, e.Req_Activity_AngelCardPlayCard = 4538080, e.Res_Activity_AngelCardPlayCard = 3660118, e.Req_Activity_AngelCardDisCard = 15948107, e.Res_Activity_AngelCardDisCard = 5411446, e.Req_Activity_AngelCardSuccessChooseCardBag = 12056284, e.Res_Activity_AngelCardSuccessChooseCardBag = 7880242, e.Req_Activity_AngelCardChooseCard = 4871040, e.Res_Activity_AngelCardChooseCard = 5971815, e.Req_Activity_AngelCardBuyCard = 121293, e.Req_Activity_AngelCardRefreshShop = 13762595, e.Res_Activity_AngelCardRefreshShop = 14542161, e.Req_Activity_AngelCardRefreshStage = 11307284, e.Res_Activity_AngelCardRefreshStage = 7800122, e.Req_Activity_AngelCardSellAngelCard = 10558386, e.Res_Activity_AngelCardSellAngelCard = 7309186, e.Req_Activity_AngelCardChooseBuffer = 2370988, e.Req_Activity_AngelCardGameOver = 7968164, e.Req_Activity_SingleRankLike = 6132400, e.Req_Activity_MultipleGiftFreeRewards = 1480229, e.Req_Activity_TreasureBoxOpenSummon = 323544, e.Req_Activity_TreasureBoxOpenGetTimesReward = 9683727, e.Req_Activity_TreasureBoxOpenChooseReward = 2353902, e.Req_Activity_TreasureBoxOpenGetLayersReward = 84223, e.Req_Activity_StarryPrayerSummonCard = 11979435, e.Res_Activity_StarryPrayerSummonCard = 7886491, e.Req_Activity_StarryPrayerChooseReward = 9715051, e.Req_Activity_StarryPrayerGetCumulativeTimesRewards = 10725721, e.Req_Activity_StarryPrayerGetSummonData = 11409380, e.Res_Activity_StarryPrayerGetSummonData = 15260366, e.Req_Activity_LuckySummonChooseGrandReward = 1194703, e.Req_Activity_LuckySummonSummon = 12217407, e.Res_Activity_LuckySummonSummon = 13142921, e.Req_Activity_OpenBoxChooseOneGetLayersReward = 6380076, e.Req_RuinsWar_EnterGameModule = 13400071, e.Res_RuinsWar_EnterGameModule = 1380779, e.Req_RuinsWar_EnterMap = 12616994, e.Res_RuinsWar_EnterMap = 10151339, e.Req_RuinsWar_PlayerUpgrade = 11048147, e.Req_RuinsWar_GetMyInfo = 15712444, e.Res_RuinsWar_GetMyInfo = 7925971, e.Req_RuinsWar_AttrUpgrade = 1001776, e.Req_RuinsWar_AttrReset = 6363520, e.Req_RuinsWar_BattleFlagUpgrade = 3769352, e.Req_RuinsWar_EnterStrongPoint = 10385865, e.Res_RuinsWar_EnterStrongPoint = 4174580, e.Req_RuinsWar_LeaveStrongPoint = 5526509, e.Req_RuinsWar_GetCurrentRoundResult = 15858705, e.Res_RuinsWar_GetCurrentRoundResult = 2781247, e.Req_RuinsWar_GetRank = 5253597, e.Req_RuinsWar_LeaveMap = 11668966, e.Req_AssaultOperation_EnterMap = 7380351, e.Res_AssaultOperation_EnterMap = 13719106, e.Req_AssaultOperation_GetResourcePointInfo = 10387780, e.Res_AssaultOperation_GetResourcePointInfo = 15786828, e.Req_AssaultOperation_RefreshStoredEnergyValue = 6748554, e.Res_AssaultOperation_RefreshStoredEnergyValue = 14205601, e.Req_AssaultOperation_GetEnergyValue = 12809484, e.Res_AssaultOperation_GetEnergyValue = 911676, e.Req_AssaultOperation_AddStoredEnergyValue = 8733824, e.Res_AssaultOperation_AddStoredEnergyValue = 15410824, e.Req_AssaultOperation_RefreshEnergyValueLimit = 9335527, e.Res_AssaultOperation_RefreshEnergyValueLimit = 11003840, e.Req_AssaultOperation_LeaderMove = 14840564, e.Req_AssaultOperation_LeaderAccelerateMove = 9086399, e.Req_AssaultOperation_ChallengeResourcePoint = 1089658, e.Res_AssaultOperation_ChallengeResourcePoint = 13390882, e.Req_AssaultOperation_GetRank = 12163133, e.Res_AssaultOperation_GetRank = 6353297, e.Req_AssaultOperation_GetPlayerRank = 9364387, e.Res_AssaultOperation_GetPlayerRank = 5599117, e.Req_AssaultOperation_GetResourcePointReward = 9894565, e.Res_AssaultOperation_GetResourcePointReward = 4853501, e.Req_AssaultOperation_GetAttackResourcePointInfo = 5823025, e.Res_AssaultOperation_GetAttackResourcePointInfo = 15612481, e.Req_AssaultOperation_ChangeAttackResourcePointInfo = 9135989, e.Req_AssaultOperation_GetAllianceRankRewards = 3260916, e.Req_AssaultOperation_GetPlayerRankRewards = 12176621, e.Req_AssaultOperation_GetPlayerBattleMessage = 8839984, e.Res_AssaultOperation_GetPlayerBattleMessage = 5904232, e.Req_AssaultOperation_GetAllianceBattleMessage = 9537843, e.Res_AssaultOperation_GetAllianceBattleMessage = 3125784, e.Req_AssaultOperation_Guess = 712327, e.Res_AssaultOperation_Guess = 9480111, e.Req_AssaultOperation_ReceiveGuessReward = 3242355, e.Req_AssaultOperation_RefreshGuessResult = 12619408, e.Res_AssaultOperation_RefreshGuessResult = 865454, e.Req_AssaultOperation_SLGSendLiquid = 3396067, e.Req_AssaultOperation_SLGReceiveLiquid = 11081896, e.Res_AssaultOperation_SLGReceiveLiquid = 7801213, e.Req_AssaultOperation_SLGReceiveGrassReward = 8672662, e.Req_AssaultOperation_SLGGetAllianceHelpCount = 2685001, e.Res_AssaultOperation_SLGGetAllianceHelpCount = 93550, e.Req_AssaultOperation_SLGGetAllianceHelpGotCount = 5490033, e.Res_AssaultOperation_SLGGetAllianceHelpGotCount = 15017217, e.Req_AssaultOperation_SLGReceiveAllianceHelpLiquid = 10893166, e.Req_AssaultOperation_SLGReceiveAchieveReward = 1994154, e.Req_AssaultOperation_ShowAchieveReward = 3647646, e.Res_AssaultOperation_ShowAchieveReward = 7431604, e.Req_AssaultOperation_SLGLiquidGetRank = 4057010, e.Res_AssaultOperation_SLGLiquidGetRank = 14939751, e.Req_AssaultOperation_SLGCanGetLiquid = 12162475, e.Res_AssaultOperation_SLGCanGetLiquid = 12055304, e.Req_AssaultOperation_EnterGameModule = 10403216, e.Res_AssaultOperation_EnterGameModule = 9493299, e.Req_AssaultOperation_LeavaMap = 14299379, e.Res_CrossZone_GetGroupInfo = 8904407, e.Req_CrossZone_EnterLadderRace = 8828e3, e.Res_CrossZone_EnterLadderRace = 2588509, e.Req_CrossZone_LadderRaceChallenge = 302885, e.Res_CrossZone_LadderRaceChallenge = 752215, e.Req_CrossZone_LadderRaceBuyCount = 4813577, e.Req_CrossZone_GetMyChampionRace = 4848997, e.Res_CrossZone_GetMyChampionRace = 16032474, e.Req_CrossZone_GetMyChampionHistoryRank = 6951487, e.Res_CrossZone_GetMyChampionHistoryRank = 2940693, e.Req_CrossZone_GetMyChampionBetCoinNum = 7348515, e.Res_CrossZone_GetMyChampionBetCoinNum = 11415798, e.Req_CrossZone_GetMyChampionHistoryReports = 14851892, e.Res_CrossZone_GetMyChampionHistoryReports = 9239868, e.Req_CrossZone_GetMyChampionBetHistory = 15249890, e.Res_CrossZone_GetMyChampionBetHistory = 3579959, e.Req_CrossZone_GetMyChampionBetInfo = 10382109, e.Res_CrossZone_GetMyChampionBetInfo = 4581171, e.Req_CrossZone_GetChampionCurrentGuessRaceInfo = 15852381, e.Res_CrossZone_GetChampionCurrentGuessRaceInfo = 5232758, e.Req_CrossZone_GetChampionMatchInfo = 5572296, e.Res_CrossZone_GetChampionMatchInfo = 9341670, e.Req_CrossZone_ChampionGuessBet = 2032548, e.Res_CrossZone_ChampionGuessBet = 7201810, e.Req_CrossZone_TakeForecast = 2849496, e.Req_CrossZone_GetForecastData = 5243220, e.Res_CrossZone_GetForecastData = 15845993, e.Req_CrossZone_GetForecastRewards = 7643975, e.ForecastRank = 7999581, e.Champion_MatchInfo = 14002416, e.Req_AllZoneChampion_Enter = 3951092, e.Res_AllZoneChampion_Enter = 9056358, e.Req_AllZoneChampion_GetMyRace = 1760602, e.Req_AllZoneChampion_GetMyReports = 11735093, e.Req_AllZoneChampion_GetMyBets = 15366615, e.Req_AllZoneChampion_GetMyBet = 1435192, e.Req_AllZoneChampion_GetCurrentBet = 11079839, e.Req_AllZoneChampion_Bet = 8289042, e.Req_AllZoneChampion_GetRace = 13388256, e.Req_AllZoneChampion_GetContestants = 3275362, e.Req_CrossZone_GetChampionParticipant = 4016332, e.Res_CrossZone_GetChampionParticipant = 3354223, e.Res_War_CommonData = 15947023, e.Req_War_Action = 10441064, e.WarGroup_Model = 13202666, e.WarGroupAlliance_Model = 6983525, e.WarGroupUser_Model = 6948016, e.Req_War_Season = 14070936, e.Res_War_Season = 1730002, e.Req_AllianceCityWar_JoinCityBattle = 6430810, e.Res_AllianceCityWar_JoinCityBattle = 12168308, e.Req_AllianceCityWar_EnterCity = 2522391, e.Res_AllianceCityWar_EnterCity = 8893994, e.Req_AllianceCityWar_LeaveCity = 16011432, e.Req_AllianceCityWar_UpdateGuide = 9730886, e.Req_AllianceCityWar_EnterHome = 9719629, e.Res_AllianceCityWar_EnterHome = 3507312, e.Req_AllianceCityWar_LeaveHome = 4612850, e.Req_AllianceCityWar_SetFormation = 5459704, e.Req_AllianceCityWar_AbandonCity = 2832982, e.Res_AllianceCityWar_AbandonCity = 9856489, e.Req_AllianceCityWar_ChangeHQ = 5920267, e.Res_AllianceCityWar_ChangeHQ = 8601511, e.Req_AllianceCityWar_ReturnActionPoint = 9750245, e.Req_AllianceCityWar_SetTarget = 2073360, e.Req_AllianceCityWar_ReviveFormation = 279652, e.Res_AllianceCityWar_ReviveFormation = 13293652, e.Req_AllianceCityWar_RetreatFormation = 13651773, e.Res_AllianceCityWar_RetreatFormation = 14559646, e.Req_AllianceCityWar_HangFormation = 2055667, e.Res_AllianceCityWar_HangFormation = 1095809, e.Req_AllianceCityWar_StopHangFormation = 16056135, e.Res_AllianceCityWar_StopHangFormation = 2813586, e.Req_AllianceCityWar_GetCityBattleInfo = 13898782, e.Res_AllianceCityWar_GetCityBattleInfo = 656843, e.Req_AllianceCityWar_GetBattleEndRewards = 8258365, e.Res_AllianceCityWar_GetBattleEndRewards = 11778307, e.Req_AllianceCityWar_GetCityInfo = 16706644, e.Res_AllianceCityWar_GetCityInfo = 4436971, e.Req_AllianceCityWar_GetUserInfo = 13791016, e.Res_AllianceCityWar_GetUserInfo = 7286935, e.Req_AllianceCityWar_GetHistoryReports = 1892627, e.Res_AllianceCityWar_GetHistoryReports = 12775622, e.AllianceCityWar_HistoryReport = 12026945, e.Req_AllianceCityWar_ReceiveKillRewards = 16037113, e.Req_AllianceCityWar_GetAllianceInfo = 9141228, e.Res_AllianceCityWar_GetAllianceInfo = 4581340, e.Req_AllianceCityWar_GetAllianceRewards = 6786417, e.Res_AllianceCityWar_GetAllianceRewards = 2179163, e.Req_AllianceCityWar_ReceiveAllianceRewards = 6726576, e.Res_AllianceCityWar_ReceiveAllianceRewards = 11103070, e.AllianceCityWar_AllianceReward = 14438140, e.Req_AllianceCityWar_UpdateSetting = 150725, e.AllianceCityWar_BattleUserInfo = 16258206, e.AllianceCityWar_BattleArenaInfo = 2010243, e.Push_OnDataChange = 5080472, e.Push_OnResetData = 5681621, e.Push_OnPublicChat = 3209180, e.Push_OnPrivateChat = 6669209, e.Push_OnOrderArrived = 9454259, e.Push_OnPaySucceeded = 11143977, e.Push_OnPayPicksSucceeded = 8156094, e.Push_OnTriggerGifts = 1368943, e.Push_OnTopRankAlert = 1604139, e.RuinsWarPlayerBattleAction = 2708730, e.Push_OnRuinsWarMapMessage = 3909606, e.Push_AssaultOperationLeaderMove = 10210496, e.Push_AssaultOperationResourcePoint = 7982503, e.Push_AssaultOperationEnergyChange = 881937, e.Push_AssaultOperationBattleInfo = 335685, e.Push_OnAssaultOperationMessage = 12248227, e.War_CityInfo = 1073522, e.War_UserData = 15642588, e.War_BaseFormation = 3158471, e.War_Formation = 2144353, e.War_Arena = 4333188, e.War_BattleResult = 10668338, e.War_BattleEndResultMap = 7457244, e.War_BattleEndResult = 3878536, e.Push_OnAllianceCityWarCityOccupy = 10685521, e.Push_OnAllianceCityWarHome = 15569351, e.Push_OnAllianceCityWarUserData = 9716441, e.Push_OnAllianceCityWarTargetCity = 12099523, e.Push_OnAllianceCityWarAttackCity = 2588628, e.Push_OnAllianceCityWarBattleResult = 16764545, e.Push_OnAllianceCityWarBattleEndResult = 11232262, e.Push_OnAllianceCityWarAllData = 6814388, e.Push_OnFightingMiniGameMessage = 9653809, e.FightingMiniGameRoomInfo = 6457453, e.FightingMiniGamePlayerInfo = 9758460, e.Push_OnPopupGift = 8981832, e.Push_OnPublishMaintain = 3807972, e.AppInfo = 15889710, e.ChatMessage_PushData = 15334161, e.InnerReq_Gate_PushMessage = 8208878, e.InnerReq_Gate_PublicChatMessage = 11422195, e.InnerReq_Gate_CreateAuth = 15112643, e.InnerRes_Gate_CreateAuth = 15316898, e.InnerReq_Gate_SessionEvent = 7668774, e.InnerRes_Gate_SessionEvent = 3105967, e.InnerReq_Gate_GetOnlineUser = 12871101, e.InnerRes_Gate_GetOnlineUser = 5461458, e.InnerReq_Gate_SimulateReq = 100231, e.InnerReq_Gate_PushRuinsWarMapData = 10097931, e.InnerRes_Gate_PushRuinsWarMapData = 4422823, e.AllianceCityWar_HomeData = 14154397, e.AllianceCityWar_BattleInfoData = 8764100, e.AllianceCityWar_UserData = 4185357, e.InnerReq_Gate_AllianceCityWarPushMessage = 13236415, e.InnerReq_All_MonitorOperation = 509, e.InnerRes_All_MonitorOperation = 510, e.InnerReq_Admin_ReportProcessInfo = 14354133, e.InnerRes_Admin_ReportProcessInfo = 8352716, e.InnerReq_Manager_OperateApp = 2448031, e.InnerRes_Manager_OperateApp = 11692784, e.InnerReq_Rank_GetRank = 12139380, e.InnerRes_Rank_GetRank = 8240320, e.InnerReq_Rank_ClearRank = 7565217, e.InnerReq_Rank_GetTopRanks = 10082785, e.InnerRes_Rank_GetTopRanks = 8996559, e.InnerReq_Rank_GetAchievements = 10460459, e.InnerRes_Rank_GetAchievements = 8226738, e.InnerReq_Rank_CheckRank = 14873714, e.InnerRes_Rank_CheckRank = 2444999, e.InnerReq_Rank_GetHotFormation = 7500886, e.InnerRes_Rank_GetHotFormation = 9465551, e.InnerReq_Rank_AddFormationCount = 8403137, e.InnerRes_Rank_AddFormationCount = 1720809, e.InnerReq_Rank_MergeZone = 5130630, e.InnerRes_Rank_MergeZone = 9040691, e.InnerReq_Lock_GetLock = 4894471, e.InnerRes_Lock_GetLock = 9316531, e.InnerReq_Lock_RemoveLock = 10383650, e.InnerRes_Lock_RemoveLock = 9527107, e.InnerReq_Location_Register = 9507881, e.InnerRes_Location_Register = 13333664, e.InnerReq_Location_Logout = 11879641, e.InnerRes_Location_Logout = 12217016, e.InnerReq_Location_UpdateMany = 11017258, e.InnerRes_Location_UpdateMany = 15795472, e.InnerReq_Location_GetPushMap = 7440017, e.InnerRes_Location_GetPushMap = 2662315, e.InnerReq_Location_GetOnlineUsers = 16078656, e.InnerRes_Location_GetOnlineUsers = 5317209, e.InnerReq_Chat_GetPublicHistory = 8466584, e.InnerRes_Chat_GetPublicHistory = 3623178, e.InnerReq_Chat_AddPublicMessage = 6456784, e.InnerRes_Chat_AddPublicMessage = 13958210, e.InnerReq_Chat_RemovePublicMessage = 8719521, e.InnerRes_Chat_RemovePublicMessage = 6055181, e.InnerReq_Pay_Succeeded = 15374386, e.InnerReq_Pay_PacksSucceeded = 12306824, e.InnerRes_Pay_Succeeded = 13905573, e.InnerReq_LadderRace_GetMyInfo = 12637084, e.InnerRes_LadderRace_GetMyInfo = 2279685, e.InnerReq_LadderRace_GetTargetInfo = 1305222, e.InnerRes_LadderRace_GetTargetInfo = 13271850, e.InnerReq_LadderRace_ExchangeRank = 11213021, e.InnerRes_LadderRace_ExchangeRank = 1011140, e.InnerReq_LadderRace_System = 4681877, e.InnerRes_LadderRace_System = 1904668, e.InnerReq_LadderRace_GetRank = 5969558, e.InnerRes_LadderRace_GetRank = 13379321, e.InnerReq_LadderRace_RankLike = 132826, e.InnerRes_LadderRace_RankLike = 5971936, e.InnerReq_LadderRace_GetChampionRaceUser = 3250765, e.InnerRes_LadderRace_GetChampionRaceUser = 15341155, e.InnerReq_Answer_Update = 4470486, e.InnerRes_Answer_Update = 8028225, e.InnerReq_AllianceBOSS_Apply = 11170473, e.InnerRes_AllianceBOSS_Apply = 4014790, e.InnerReq_AllianceBOSS_Skill = 16599222, e.InnerReq_AllianceBOSS_Quit = 14254226, e.InnerReq_AllianceBOSS_Rewards = 10786197, e.InnerReq_AllianceBOSS_Dismiss = 3689844, e.InnerReq_AllianceBOSS_Kick = 8229707, e.InnerReq_Champion_Enter = 13068525, e.InnerRes_Champion_Enter = 53848, e.InnerReq_Champion_GetMyRace = 9470836, e.InnerRes_Champion_GetMyRace = 504603, e.InnerReq_Champion_GetCurrentGuess = 1727514, e.InnerReq_Champion_GetMatch = 5626651, e.Champion_Race = 4922644, e.InnerRes_Champion_GetMatch = 1031058, e.InnerReq_Champion_Guess = 12990727, e.InnerReq_Champion_GetMyCoin = 2057796, e.InnerReq_Champion_GetMyLastGuess = 13510714, e.InnerReq_Champion_GetMyHistory = 11889641, e.InnerReq_Champion_GetRank = 6796037, e.InnerReq_Champion_RankLike = 6057314, e.InnerReq_Champion_Action = 15843580, e.InnerReq_ChampionRace_GetMyRace = 970296, e.InnerRes_ChampionRace_GetMyRace = 9746192, e.InnerReq_ChampionRace_GetMyHistoryRank = 9036490, e.InnerRes_ChampionRace_GetMyHistoryRank = 8783800, e.InnerReq_ChampionRace_GetMyBetCoinNum = 15468221, e.InnerRes_ChampionRace_GetMyBetCoinNum = 16599642, e.InnerReq_ChampionRace_GetMyHistoryReports = 3634746, e.InnerRes_ChampionRace_GetMyHistoryReports = 3739801, e.InnerReq_ChampionRace_GetMyBetHistory = 7640700, e.InnerRes_ChampionRace_GetMyBetHistory = 6675099, e.InnerReq_ChampionRace_GetMyBetInfo = 8680947, e.InnerRes_ChampionRace_GetMyBetInfo = 2473678, e.InnerReq_ChampionRace_GetCurrentGuessRaceInfo = 15504606, e.InnerRes_ChampionRace_GetCurrentGuessRaceInfo = 13133195, e.InnerReq_ChampionRace_GetMatchInfo = 3974380, e.InnerRes_ChampionRace_GetMatchInfo = 10317777, e.ChampionRace_SimpleMatchInfo = 6601900, e.InnerReq_ChampionRace_GuessBet = 166441, e.InnerRes_ChampionRace_GuessBet = 11858875, e.InnerReq_ChampionRace_GetCurrentRank = 4346534, e.InnerRes_ChampionRace_GetCurrentRank = 16715033, e.InnerReq_ChampionRace_RankLike = 766141, e.InnerReq_ChampionRace_Settle = 5466017, e.InnerReq_AllZoneChampion_Enter = 16265516, e.InnerRes_AllZoneChampion_Enter = 5130430, e.InnerReq_AllZoneChampion_GetMyRace = 6474656, e.InnerRes_AllZoneChampion_GetMyRace = 12779677, e.InnerReq_AllZoneChampion_GetMyReports = 11268960, e.InnerRes_AllZoneChampion_GetMyReports = 12238727, e.InnerReq_AllZoneChampion_GetMyBets = 9596717, e.InnerReq_AllZoneChampion_GetMyBet = 14902374, e.InnerRes_AllZoneChampion_GetMyBet = 3804618, e.InnerReq_AllZoneChampion_GetCurrentBet = 3050031, e.InnerRes_AllZoneChampion_GetCurrentBet = 2191197, e.InnerReq_AllZoneChampion_Bet = 6125484, e.InnerReq_AllZoneChampion_GetRace = 12220013, e.AllZoneChampion_Race = 12491428, e.InnerRes_AllZoneChampion_GetRace = 1966964, e.InnerReq_AllZoneChampion_GetRank = 4250013, e.InnerReq_AllZoneChampion_BeLike = 6944213, e.InnerReq_AllZoneChampion_Settle = 1542218, e.InnerReq_AllZoneChampion_GetContestants = 488145, e.InnerRes_AllZoneChampion_GetContestants = 14483199, e.InnerReq_AllZoneChampion_Reset = 10769604, e.AllianceCityWar_SimpleCityInfo = 14450858, e.InnerReq_AllianceCityWar_GetTaskStatus = 5338475, e.InnerRes_AllianceCityWar_GetTaskStatus = 6197273, e.InnerReq_AllianceCityWar_ReturnActionPoint = 15401939, e.InnerRes_AllianceCityWar_ReturnActionPoint = 3478022, e.InnerReq_AllianceCityWar_GetBattleEndRewards = 2840091, e.InnerRes_AllianceCityWar_GetBattleEndRewards = 15133733, e.InnerReq_AllianceCityWar_GetCityInfo = 3369592, e.InnerRes_AllianceCityWar_GetCityInfo = 9319879, e.InnerReq_AllianceCityWar_JoinCityBattle = 5548265, e.InnerRes_AllianceCityWar_JoinCityBattle = 9381063, e.InnerReq_AllianceCityWar_AbandonCity = 15121530, e.InnerRes_AllianceCityWar_AbandonCity = 6022085, e.InnerReq_AllianceCityWar_ChangeHQ = 11326549, e.InnerRes_AllianceCityWar_ChangeHQ = 7716345, e.InnerReq_AllianceCityWar_SetTarget = 6796778, e.InnerRes_AllianceCityWar_SetTarget = 13008599, e.InnerReq_AllianceCityWar_GetCityBattleInfo = 11260200, e.InnerRes_AllianceCityWar_GetCityBattleInfo = 7717117, e.InnerReq_AllianceCityWar_HangFormation = 10012483, e.InnerRes_AllianceCityWar_HangFormation = 9904689, e.InnerReq_AllianceCityWar_StopHangFormation = 9124465, e.InnerRes_AllianceCityWar_StopHangFormation = 5581732, e.InnerReq_AllianceCityWar_ReviveFormation = 6052840, e.InnerRes_AllianceCityWar_ReviveFormation = 9619416, e.InnerReq_AllianceCityWar_RetreatFormation = 11710303, e.InnerRes_AllianceCityWar_RetreatFormation = 12372476, e.InnerReq_AllianceCityWar_GetUserInfo = 2091268, e.InnerRes_AllianceCityWar_GetUserInfo = 10663611, e.InnerReq_AllianceCityWar_ReceiveKillRewards = 14631013, e.InnerRes_AllianceCityWar_ReceiveKillRewards = 10063183, e.InnerReq_AllianceCityWar_GetAllianceRewards = 5011949, e.InnerRes_AllianceCityWar_GetAllianceRewards = 701639, e.InnerReq_AllianceCityWar_ReceiveAllianceRewards = 6515431, e.InnerRes_AllianceCityWar_ReceiveAllianceRewards = 11313673, e.InnerReq_AllianceCityWar_EnterHome = 15489463, e.InnerRes_AllianceCityWar_EnterHome = 5083786, e.InnerReq_AllianceCityWar_LeaveHome = 4092936, e.InnerReq_AllianceCityWar_EnterCity = 6188013, e.InnerRes_AllianceCityWar_EnterCity = 16752848, e.InnerReq_AllianceCityWar_LeaveCity = 9193042, e.InnerReq_AllianceCityWar_SetFormation = 4959661, e.InnerRes_AllianceCityWar_SetFormation = 5955914, e.InnerReq_AllianceCityWar_ResetAllData = 4448817, e.InnerReq_AllianceCityWar_RankReward = 9876772, e.InnerReq_AllianceCityWar_InnerResetData = 14564266, e.InnerReq_AllianceCityWar_GetRank = 16308596, e.InnerRes_AllianceCityWar_GetRank = 6073453, e.InnerReq_AllianceCityWar_GetHistoryReports = 6497317, e.InnerRes_AllianceCityWar_GetHistoryReports = 12400112, e.InnerReq_AllianceCityWar_UpdateSetting = 8771189, e.InnerReq_AllianceCityWar_GetAllianceInfo = 13853792, e.InnerRes_AllianceCityWar_GetAllianceInfo = 1964112, e.InnerReq_AllianceCityWar_UpdateTask = 8554234, e.InnerReq_AllianceCityWar_Helper = 15178597, e.InnerRes_AllianceCityWar_Helper = 8249933, e.Push_OnAllianceCityWarAllDataArray = 11731169, e.Push_AllianceBossSkill = 9879804, e.AllianceCityWar_UpdateTask = 1301228, e.InnerReq_Gate_WarPushMessage = 2174811, e.InnerReq_War_Action = 12614839, e.InnerReq_War_GetRank = 9710494, e.InnerReq_FightingMiniGame_MatchStart = 7891104, e.InnerReq_FightingMiniGame_MatchCancel = 7608712, e.InnerReq_FightingMiniGame_BattleStart = 15518517, e.InnerReq_FightingMiniGame_RoundCommand = 3947229, e.InnerReq_FightingMiniGame_RoundEnd = 10601128, e.InnerReq_FightingMiniGame_Leave = 6255816, e.InnerReq_Gate_FightingMiniGameMessage = 14245124, e.InnerReq_RuinsWar_EnterMap = 12882881, e.InnerRes_RuinsWar_EnterMap = 10416968, e.InnerReq_RuinsWar_BattleFlagUpgrade = 6210435, e.InnerRes_RuinsWar_BattleFlagUpgrade = 2892853, e.InnerReq_RuinsWar_EnterStrongPoint = 15101747, e.InnerRes_RuinsWar_EnterStrongPoint = 4695054, e.InnerReq_RuinsWar_LeaveStrongPoint = 2901271, e.InnerRes_RuinsWar_LeaveStrongPoint = 9276970, e.InnerReq_RuinsWar_UpdatePlayerInfo = 5646064, e.InnerRes_RuinsWar_UpdatePlayerInfo = 16248269, e.InnerReq_RuinsWar_LeaveMap = 11934469, e.InnerRes_RuinsWar_LeaveMap = 15498124, e.InnerReq_RuinsWar_System = 12664317, e.InnerRes_RuinsWar_System = 13505436, e.InnerReq_RuinsWar_GetRank = 3934942, e.InnerRes_RuinsWar_GetRank = 2921968, e.InnerReq_RuinsWar_GetMyInfo = 6997341, e.InnerRes_RuinsWar_GetMyInfo = 16643378, e.InnerReq_AssaultOperation_GetMapInfo = 12122303, e.InnerRes_AssaultOperation_GetMapInfo = 370432, e.InnerReq_AssaultOperation_GetResourcePointInfo = 3911345, e.InnerRes_AssaultOperation_GetResourcePointInfo = 5622969, e.InnerReq_AssaultOperation_GetResourcePointReward = 4851647, e.InnerRes_AssaultOperation_GetResourcePointReward = 9892839, e.InnerReq_AssaultOperation_GetRank = 5184099, e.InnerRes_AssaultOperation_GetRank = 9860047, e.InnerReq_AssaultOperation_SetAttackResourcePoint = 10243662, e.InnerRes_AssaultOperation_SetAttackResourcePoint = 4241942, e.InnerReq_AssaultOperation_GetPlayerRank = 12086032, e.InnerRes_AssaultOperation_GetPlayerRank = 6547262, e.InnerReq_AssaultOperation_Leave = 12448130, e.InnerRes_AssaultOperation_Leave = 2590890, e.InnerReq_AssaultOperation_GetMyInfo = 6947571, e.InnerRes_AssaultOperation_GetMyInfo = 1631557, e.InnerReq_AssaultOperation_PlayerOperation = 11029941, e.InnerRes_AssaultOperation_PlayerOperation = 10890006, e.InnerReq_AssaultOperation_GetJoinAllianceInfo = 5609733, e.InnerRes_AssaultOperation_GetJoinAllianceInfo = 7432272, e.InnerReq_AssaultOperation_System = 14393591, e.InnerRes_AssaultOperation_System = 8377838, e.InnerReq_Activity_ChampionReset = 3083674, e.AppData_Model = 3225310, e.ZoneInfo_Model = 7387158, e.ChannelInfo_Model = 1734886, e.ModuleSwitch_Model = 2632842, e.CommonTargetInfo = 11806558, e.AllianceChallengeReport_Model = 7614989, e.AllianceChallengeScore = 9733852, e.AllianceChallenge_Model = 6733034, e.AnswerCompetitionRoom_Model = 7593016, e.MoonShrineReport_Model = 5406524, e.MoonShrine = 13184879, e.MoonTemple_Model = 3893970, e.SupportActivityRank = 11174854, e.SupportActivityMsg = 12050517, e.SystemMaintain_Model = 12623391, e.ScoreRank = 12382121, e.ActivityRank = 10988286, e.AllianceInfo_Model = 4253885, e.AllianceExtraInfo_Model = 12222071, e.HeroScore_Model = 14694875, e.TreasureHuntNoticeMsg = 15246529, e.TreasureHuntNotice_Model = 16069857, e.CommonNoticeMsg = 5384997, e.CommonNotice_Model = 6872377, e.ChatMessage_Model = 978934, e.StatusLog_Model = 14970870, e.UserSimpleData_Model = 8502562, e.UserIcon_Model = 10262005, e.UserActualWeight_Model = 7069614, e.UserServerOnly_Model = 2791030, e.UserCacheEvent_Model = 2992370, e.UserItem_Model = 1765228, e.UserStar_Model = 978507, e.UserMail_Model = 8821301, e.UserFormation_Model = 10582001, e.HeroTryFormation_Model = 12460603, e.UserFormation = 707260, e.UserHero_Model = 8344381, e.HeroInfo_Model = 7294715, e.HeroSkin_Model = 10946294, e.MainSceneBackground_Model = 6693388, e.Equipment_Model = 1705035, e.HolyEquipment_Model = 655596, e.HolyEquipBlessing_Model = 16031456, e.LuckyCharmEquip_Model = 15432304, e.GemEquip_Model = 14799211, e.UserAngel_Model = 9563616, e.AngelSkin_Model = 6534018, e.UserGodSoul_Model = 1223389, e.PowerCore_Model = 2473878, e.PetInfo_Model = 13852816, e.UserPet_Model = 7665846, e.PetShowHouse_Model = 5568174, e.LuckyCharmShowHouse_Model = 15769772, e.Strategy_Model = 9823847, e.DukeScroll_Model = 4131416, e.UserShop_Model = 10417036, e.UserFriend_Model = 13108160, e.UserRelation_Model = 16502012, e.UserDungeonMap_Model = 12606575, e.TreasureHunt_Model = 6417455, e.DailyInstance_Model = 3183400, e.TeamBonus_Model = 4296732, e.TestTower_Model = 9783176, e.SaintsWar_Model = 10192066, e.EndlessAbyss_Model = 16633602, e.Adventure_Model = 4900660, e.RelicTreasureHunt_Model = 12878657, e.SecretAreaExplore_Model = 638686, e.IntelligenceTask_Model = 548459, e.StarResonance_Model = 7402772, e.StarPiece_Model = 8598303, e.StarEmbattle_Model = 5500579, e.StarGarrisonSlot_Model = 8985941, e.ExclusiveWeapon_Model = 16093330, e.AncientSacred_Model = 10434e3, e.FirstPay_Model = 12988893, e.HeroFetter_Model = 1645314, e.TreasureHouseTreasure_Model = 11985807, e.TreasureHouseUserData_Model = 7449027, e.FighterSpirit_Model = 9297632, e.ParanormalPuzzle_Model = 9625952, e.Artefact_Model = 14336376, e.ArtefactResonance_Model = 9906750, e.ArtefactRelic_Model = 11861821, e.ArtefactRelicEquip_Model = 3464639, e.SuperWeapon_Model = 2039652, e.NewYearWeapon_Model = 5662592, e.UserPassPower_Model = 10394393, e.DrawCardFightCard_Model = 11119877, e.DrawCardFightBlessing_Model = 6141836, e.NewPersonality_Model = 10999015, e.SeasonWeapon_Model = 7978373, e.WarToken_Model = 226370, e.GameModule_Model = 9033392, e.UserTask_Model = 15447230, e.TaskPointReward_Model = 5522757, e.SummonCard_Model = 14906516, e.UserRankLike_Model = 5902872, e.MagicCircle_Model = 10753920, e.AllianceRedPack_Model = 16267881, e.AllianceBadge_Model = 693593, e.UserPlayingBattle_Model = 16547867, e.UserBattleReport_Model = 6181668, e.PrivateChatMessage = 4748085, e.PrivateChatMessage_Model = 367441, e.ShoppingCart_Model = 3165786, e.GiftPack_Model = 7471838, e.CurrencyDiscountTicket_Model = 2340556, e.MallActivity_Model = 325466, e.SubscribePrivilege_Model = 11001703, e.TriggerGiftType_Model = 9417829, e.TriggerGift_Model = 8526879, e.ClientStorage_Model = 5642739, e.PopupGift_Model = 1369213, e.ActivityWarTokenType_Model = 16633444, e.UserActivity_Model = 13393496, e.UserActivitySummon_Model = 1369555, e.ActivityConfigData = 16266764, e.ActivityTrailer = 9241991, e.ActivityCommonPart = 8123841, e.ActivityGiftPack = 7004708, e.ActivityTask = 2115419, e.ActivityLocale = 267908, e.ExchangeShop_Shop = 14141376, e.ActivityShopItem = 12297555, e.ShopDiscount = 15075923, e.ActivityShowChance = 4198623, e.ActivityRandomLib = 362143, e.ActivitySummonType = 13193052, e.ActivityCommonSummon = 11383795, e.ActivityReward = 11013028, e.WarTokenReward = 6697407, e.RankReward = 15838953, e.ScoreReward = 1161070, e.ActivityAttrs = 2514569, e.StoryFragment = 13255158, e.StoryContent = 9262359, e.ItemRecycle = 15240131, e.ItemGetWay = 13527026, e.Announcement = 622246, e.RewardsReplace = 11608475, e.ActivityConfig_Frame1 = 13677625, e.ActivityConfig_Frame2 = 14429647, e.ActivityConfig_Frame3 = 5923124, e.ActivityConfig_Frame4 = 12918307, e.ActivityConfig_Frame5 = 4412120, e.ActivityConfig_Frame6 = 5229358, e.ActivityConfig_Frame7 = 13207509, e.ActivityConfig_Frame8 = 16218619, e.Frame_CustomPart = 13786650, e.Frame8_CustomPart = 5055032, e.Frame6_Label = 8774272, e.Frame6_New_Label = 5588283, e.Frame_Node = 6987319, e.Frame_SubNode = 1650133, e.ActivityConfig_FatePray = 15137077, e.FatePray_CustomPart = 11435565, e.FatePray_RewardItem = 10799763, e.ActivityConfig_GiftPack = 10763501, e.GiftPack_CustomPart = 1130460, e.ActivityConfig_Carnival = 10861372, e.Carnival_CustomPart = 2832991, e.Carnival_Rewards = 9678785, e.Carnival_Pack = 2057782, e.ActivityConfig_HeroTest = 1708649, e.HeroTest_CustomPart = 8101304, e.HeroTest_Rewards = 10300716, e.HeroTest_Task = 11391684, e.ActivityConfig_LimitTimeTask = 16525717, e.LimitTimeTask_CustomPart = 16604090, e.ActivityConfig_AllUserImpactRank = 10534336, e.AllUserImpactRank_Reward = 10942292, e.ActivityConfig_Bind = 15820684, e.Bind_CustomPart = 13894551, e.ActivityConfig_WishSummon = 2707967, e.WishSummon_CustomPart = 1481145, e.ActivityConfig_NewHeroSummon = 10666119, e.NewHeroSummon_CustomPart = 6318997, e.HeroTry_Map = 3198737, e.ActivityConfig_PersonalitySummon = 2195054, e.PersonalitySummon_CustomPart = 8080184, e.PersonalitySummon_Reward = 7017756, e.ActivityConfig_ChaosSummon = 1673066, e.ChaosSummon_CustomPart = 4312911, e.ChaosSummon_Reward = 10031992, e.ActivityConfig_WishPersonality = 3081077, e.WishPersonality_CustomPart = 12047683, e.ActivityConfig_AngelSummon = 9633892, e.AngelSummon_CustomPart = 4007849, e.ActivityConfig_WeekCard = 4213299, e.WeekCard_CustomPart = 9501891, e.ActivityConfig_ActiveWarToken = 15084401, e.ActiveWarToken_CustomPart = 14408997, e.ActiveWarToken_Reward = 13796141, e.WarToken_TypeReward = 12729172, e.WarToken_Page = 3453158, e.ActivityConfig_NewSignIn = 16147719, e.NewSignIn_CustomPart = 16271756, e.ActivityConfig_NewSignIn2 = 14419351, e.NewSignIn2_Reward = 7175345, e.ActivityConfig_UpgradeStar = 1888817, e.UpgradeStar_CustomPart = 3657923, e.UpgradeStar_Rewards = 64e4, e.ActivityConfig_MazeExplore = 5236037, e.MazeExplore_CustomPart = 15412062, e.MazeExplore_Task = 9138963, e.MazeExplore_Reward = 4729861, e.ActivityConfig_HappyTurn = 4950752, e.HappyTurn_CustomPart = 14383802, e.HappyTurn_Reward = 11285263, e.HappyTurn_Picture = 4468822, e.ActivityConfig_PickFood = 5481048, e.PickFood_CustomPart = 10211997, e.PickFood_Reward = 3644391, e.PickFood_Foods = 2477050, e.ActivityConfig_OptionalUpgradeStar = 6789192, e.OptionalUpgradeStar_CustomPart = 11697769, e.OptionalUpgradeStar_Heros = 10015394, e.OptionalUpgradeStar_Rewards = 4535581, e.ActivityConfig_ElementTest = 9878616, e.ElementTest_CustomPart = 9450021, e.ElementTest_Reward = 6104853, e.ElementTest_Map = 8001910, e.ActivityConfig_DailySignin = 14783351, e.DailySignin_Reward = 8942026, e.ActivityConfig_WarmUpAct = 13056052, e.WarmUpAct_CustomPart = 2127112, e.WarmUpAct_Reward = 4229778, e.ActivityConfig_LuckyBagSummon = 7888687, e.LuckyBagSummon_CustomPart = 9435575, e.LuckyBagBox_Level = 10058022, e.ActivityConfig_HeroDungeon = 5611355, e.HeroDungeon_CustomPart = 8811031, e.HeroDungeon_Reward = 8896922, e.HeroDungeon_Map = 7745878, e.ActivityConfig_RebateSummon = 2810906, e.RebateSummon_CustomPart = 11050505, e.RebateSummon_Reward = 1777852, e.ActivityConfig_SinglePagePack = 5580414, e.SinglePagePack_CustomPart = 5140361, e.SinglePagePack_PackExtend = 921541, e.SinglePagePack_Custom = 13972409, e.SkinTry_Map = 2340945, e.ActivityConfig_LuckyPack = 3670028, e.LuckyPack_CustomPart = 8980177, e.LuckyPack_Prob = 5591970, e.ActivityConfig_ExchangeShop = 7922547, e.ExchangeShop_CustomPart = 12318731, e.ActivityConfig_TaskTalent = 10456363, e.TaskTalent_CustomPart = 8355522, e.ActivityConfig_PayGuide = 2110749, e.PayGuide_CustomPart = 10236194, e.PayGuide_Stage = 1648038, e.PayGuide_Picture = 15630029, e.ActivityConfig_InfiniteGiftPack = 5403122, e.InfiniteGiftPack_CustomPart = 3564308, e.InfiniteGiftPack_Reward = 8676433, e.ActivityConfig_StockUpFestival = 2003485, e.StockUpFestival_Reward = 8194610, e.ActivityConfig_CustomGiftPack = 15899978, e.CustomGiftPack_CustomPart = 702005, e.CustomGiftPack_Custom = 15045435, e.ActivityConfig_FateStarBox = 2151766, e.FateStarBox_CustomPart = 3291875, e.ActivityConfig_GiftPackSummon = 10327521, e.GiftPackSummon_CustomPart = 2119909, e.ActivityConfig_Ingenuity = 904862, e.Ingenuity_CustomPart = 15275428, e.Ingenuity_Reward = 15176037, e.ActivityConfig_ScoreShop = 6217172, e.ActivityConfig_TotalPaySummon = 983753, e.TotalPaySummon_CustomPart = 13253461, e.ActivityConfig_DiamondSummon = 1331019, e.DiamondSummon_CustomPart = 9221633, e.ActivityConfig_GemForgeSummon = 2652602, e.ActivityConfig_SecretArea = 6044381, e.SecretArea_CustomPart = 15593659, e.ActivityConfig_WishTree = 15777896, e.WishTree_CustomPart = 167447, e.WishTree_Reward = 16049726, e.ActivityConfig_WorldBoss = 13134257, e.WorldBoss_CustomPart = 13611581, e.WorldBoss_Reward = 8934780, e.ActivityConfig_ZoneWorldBoss = 14733135, e.ZoneWorldBoss_CustomPart = 2935343, e.ZoneWorldBoss_Reward = 12574819, e.ActivityConfig_AllianceWorldBoss = 4732204, e.AllianceWorldBoss_CustomPart = 4212919, e.AllianceWorldBoss_Reward = 4565265, e.ActivityConfig_WarToken = 11642446, e.WarToken_CustomPart = 11179300, e.WarToken_Reward = 15087909, e.ActivityConfig_AllUserPuzzle = 2632721, e.AllUserPuzzle_CustomPart = 10724943, e.AllUserPuzzle_Block = 14922779, e.ActivityConfig_CumulativeBuyGift = 4873522, e.CumulativeBuyGift_CustomPart = 3703488, e.ActivityConfig_ExquisiteCustomCard = 12319738, e.ExquisiteCustomCard_CustomPart = 13914286, e.ExquisiteCustomCard_Reward = 14462753, e.ActivityConfig_BadgeCollect = 9296913, e.BadgeCollect_CustomPart = 14573205, e.BadgeCollect_Reward = 4250303, e.BadgeCollect_Site = 3520572, e.ActivityConfig_SkipInlet = 16497144, e.ActivityConfig_PlayerReturn = 1492632, e.PlayerReturn_CustomPart = 3174582, e.ActivityConfig_Monopoly = 13892316, e.Monopoly_CustomPart = 15387497, e.Monopoly_Grid = 5514761, e.ActivityConfig_ContinuousPay = 5413840, e.ContinuousPay_CustomPart = 7764334, e.ActivityConfig_AnswerCompetition = 5762710, e.AnswerCompetition_CustomPart = 9800291, e.AnswerCompetition_Rewards = 12634366, e.ActivityConfig_LoveArcher = 11254474, e.LoveArcher_CustomPart = 12330985, e.LoveArcher_Heros = 7755238, e.ActivityConfig_Story = 9498789, e.Story_CustomPart = 5397073, e.Story_DailyTaskReward = 7818224, e.Story_Chapter = 7351413, e.Story_World = 1351390, e.Story_Node = 3841510, e.Story_Boss = 13558991, e.Story_RankRewards = 3588131, e.Story_Task = 16717080, e.Story_Battle = 5879365, e.ActivityConfig_HeroStarGift = 10709939, e.HeroStarGift_CustomPart = 8058536, e.HeroStarGift_Heros = 811215, e.HeroStarGift_Rewards = 12004597, e.ActivityConfig_SupportHero = 8737036, e.SupportHero_CustomPart = 10911501, e.SupportHero_Group = 8261107, e.SupportHero_PersonReward = 9617721, e.SupportHero_GroupReward = 12923713, e.SupportHero_RankReward = 9086903, e.ActivityConfig_HeroStarUp = 5040738, e.HeroStarUp_CustomPart = 16590637, e.HeroStarUp_Rewards = 12168021, e.ActivityConfig_CarnivalSkin = 16365280, e.ActivityConfig_ActivityBoss = 4128224, e.ActivityBoss_CustomPart = 3098294, e.ActivityBoss_Condition = 11119223, e.ActivityBoss_Reward = 13458839, e.ActivityBoss_Prop = 8493545, e.ActivityConfig_HeroSuit = 9243348, e.HeroSuit_CustomPart = 7093511, e.HeroSuit_HeroPack = 3545169, e.ActivityConfig_CommonSummon = 2171942, e.CommonSummon_CustomPart = 3170110, e.ActivityConfig_SummonBox = 10597187, e.SummonBox_CustomPart = 5287580, e.SummonBoxQuality = 9193235, e.ActivityConfig_FirstPay = 5981502, e.FirstPay_CustomPart = 3347410, e.FirstPayRewards = 10193663, e.ActivityConfig_KnifeTraining = 4048719, e.KnifeTraining_CustomPart = 14591564, e.KnifeTraining_Map = 7552268, e.KnifeTraining_Prop = 15285571, e.ActivityConfig_CrazyWheel = 11524157, e.CrazyWheel_CustomPart = 5023955, e.ActivityConfig_PremiumLuckyBag = 16026699, e.PremiumLuckyBag_CustomPart = 10163417, e.PremiumLuckyBag_Rewards = 14155880, e.ActivityConfig_NewbieCoupon = 16554897, e.NewbieCoupon_CustomPart = 14116702, e.NewbieCoupon_LowPricePack = 7874909, e.ActivityConfig_LuckyLottery = 16304177, e.LuckyLottery_CustomPart = 1498431, e.LuckyLottery_Rewards = 2098392, e.ActivityConfig_ElementArena = 10795975, e.ElementArena_CustomPart = 13530114, e.ElementArena_Exchangebadge = 380082, e.ActivityConfig_HeroTestTower = 14912294, e.HeroTestTower_CustomPart = 1702624, e.HeroTestTower_Map = 16305652, e.HeroTestTower_Debuff = 7821036, e.HeroTestTower_Hero = 82657, e.HeroTestTower_Star = 12088618, e.ActivityConfig_ContinuousPack = 15841512, e.ContinuousPack_CustomPart = 14582960, e.ActivityConfig_SecondKill = 9369339, e.SecondKill_CustomPart = 10085398, e.SecondKill_PackGroup = 12125667, e.SecondKill_PackExtend = 14255194, e.ActivityConfig_Champion = 8517881, e.Champion_CustomPart = 5279093, e.Champion_Round = 11127139, e.ActivityConfig_EmaPray = 8089387, e.EmaPray_Day = 11205454, e.EmaPray_Content = 10125553, e.ActivityConfig_MagicCompose = 6021830, e.MagicCompose_CustomPart = 3715218, e.MagicCompose_Slot = 6587780, e.MagicCompose_UncertifiedReel = 12266173, e.MagicCompose_Reel = 13311950, e.ActivityConfig_RunningTrain = 3667627, e.RunningTrain_CustomPart = 480745, e.RunningTrain_AttrLevel = 8889546, e.RunningTrain_ItemConsume = 1207511, e.ActivityConfig_SuperGift = 8207973, e.ActivityConfig_RechargeFeedback = 13900595, e.RechargeFeedback_CustomPart = 2932712, e.ActivityConfig_HeroPK = 6202170, e.HeroPK_CustomPart = 10855162, e.HeroPK_RoundRankRewards = 4866308, e.HeroPK_Round = 5040579, e.HeroPK_Hero = 9852109, e.ActivityConfig_SailingTreasureHunt = 1611258, e.SailingTreasureHunt_CustomPart = 10075754, e.SailingTreasureHunt_GrandRewards = 9929131, e.SailingTreasureHunt_TurnRewards = 1218472, e.ActivityConfig_CashMallDisCount = 3097972, e.CashMallDisCount_PackExtend = 3363971, e.ActivityConfig_ScratchCard = 11326197, e.ScratchCard_CustomPart = 15840017, e.ActivityConfig_LuckyCake = 9324111, e.LuckyCake_CustomPart = 14641542, e.LuckyCake_Turn = 12325039, e.ActivityConfig_CircusMaze = 3133605, e.CircusMaze_CustomPart = 3804753, e.CircusMaze_Turn = 13608394, e.CircusMaze_Event = 5149704, e.ActivityConfig_BannerSkip = 2648555, e.BannerSkip_CustomPart = 10246158, e.ActivityConfig_NinjaMiniGame = 6710346, e.NinjaMiniGame_CustomPart = 1944213, e.NinjaMiniGame_Passes = 13486700, e.NinjaMiniGame_Props = 7032664, e.ActivityConfig_WishAngel = 10430716, e.WishAngel_CustomPart = 14128232, e.ActivityConfig_Championship = 2868883, e.Championship_CustomPart = 15555310, e.Championship_Stage = 3059913, e.Championship_Stage2 = 4710481, e.Championship_Group = 3874610, e.ActivityConfig_CrazyDiscount = 11320735, e.CrazyDiscount_CustomPart = 14774914, e.ActivityConfig_KnockWatermelon = 15560923, e.KnockWatermelon_CustomPart = 4627086, e.ActivityConfig_DrawCardFight = 12640876, e.DrawCardFight_CustomPart = 14307162, e.DrawCardFight_Card = 14042968, e.DrawCardFight_Blessing = 9361472, e.DrawCardFight_Mission = 15654309, e.ActivityConfig_LimitTimeImpactRankFrame = 16414726, e.LimitTimeImpactRankFrame_CustomPart = 13734432, e.ActivityConfig_LimitTimeImpactRank = 9069672, e.LimitTimeImpactRank_CustomPart = 10795152, e.LimitTimeImpactRank_TaskGroup = 9380647, e.ActivityConfig_NoviceFormation = 13185090, e.NoviceFormation_CustomPart = 9100266, e.NoviceFormation_Formation = 6509539, e.ActivityConfig_Breakou = 10558469, e.Breakou_CustomPart = 9031251, e.Breakou_Floor = 13714672, e.ActivityConfig_FightingMiniGame = 6063426, e.FightingMiniGame_CustomPart = 6115258, e.FightingMiniGame_Hero = 11983437, e.FightingMiniGame_Level = 450426, e.ActivityConfig_GiftAllHeroes = 15503395, e.GiftAllHeroes_CustomPart = 12843519, e.GiftAllHeroes_Reward = 9633837, e.ActivityConfig_SuperKoi = 8415790, e.SuperKoi_CustomPart = 8151919, e.SuperKoi_Issue = 1868088, e.ActivityConfig_TradeWar = 1960143, e.TradeWar_CustomPart = 8774325, e.TradeWar_Round = 1536785, e.TradeWar_Level = 14619713, e.TradeWar_Goods = 12257861, e.TradeWar_ScoreReward = 16268556, e.ActivityConfig_Rocket = 4201894, e.Rocket_CustomPart = 1617960, e.Rocket_Stage = 8216446, e.ActivityConfig_NoviceTraining = 7545652, e.NoviceTraining_CustomPart = 9155334, e.NoviceTraining_Mission = 9000886, e.ActivityConfig_Game2048 = 7286488, e.Game2048_CustomPart = 8550270, e.Game2048_Stage = 238234, e.Game2048_Item = 10620291, e.ActivityConfig_FantasticPasture = 7029859, e.FantasticPasture_CustomPart = 2760192, e.FantasticPasture_Line = 11352253, e.FantasticPasture_Object = 338886, e.FantasticPasture_Item = 7252070, e.ActivityConfig_Flop = 1875554, e.Flop_CustomPart = 12639732, e.Flop_Round = 5385145, e.ActivityConfig_RushUp = 15097131, e.RushUp_CustomPart = 14339613, e.RushUp_Floor = 2482336, e.RushUp_Step = 11904540, e.RushUp_Reward = 2031387, e.ActivityConfig_CutPriceGift = 5196094, e.CutPriceGift_Page = 3676098, e.ActivityConfig_NewPersonality = 11970796, e.NewPersonality_CustomPart = 4214635, e.ActivityConfig_SeasonExpedition = 5020751, e.SeasonExpedition_CustomPart = 3855771, e.SeasonExpedition_Map = 15432232, e.ActivityConfig_RuinsWar = 108738, e.RuinsWar_CustomPart = 9174562, e.RuinsWar_PlayerLevel = 6790271, e.RuinsWar_PlayerAttr = 2277034, e.RuinsWar_BattleFlagLevel = 1016194, e.RuinsWar_PlayerRankReward = 3767829, e.RuinsWar_AllianceRankReward = 12604327, e.RuinsWar_AllianceRankScore = 9183673, e.RuinsWar_StrongPoint = 10675623, e.RuinsWar_BattleConfig = 15769620, e.RuinsWar_ReportConfig = 1000633, e.RuinsWar_PlayerRankRewardIndex = 7216682, e.ActivityConfig_BossHunt = 15527233, e.BossHunt_CustomPart = 10712605, e.BossHunt_Round = 13146472, e.BossHunt_Level = 65080, e.ActivityConfig_NewWarToken = 594271, e.NewWarToken_CustomPart = 343776, e.NewWarToken_FreeReward = 9864964, e.NewWarToken_Reward = 2872143, e.ActivityConfig_Rhythm = 13543355, e.Rhythm_CustomPart = 3660749, e.Rhythm_Level = 13302177, e.Rhythm_Tutorial = 6624664, e.ActivityConfig_DrawBattle = 16318712, e.DrawBattle_CustomPart = 8582510, e.DrawBattle_Map = 8987958, e.DrawBattle_Monster = 9267056, e.ActivityConfig_Archery = 4180801, e.Archery_CustomPart = 8499638, e.Archery_Level = 15656360, e.ActivityConfig_MysteryBox = 1396669, e.MysteryBox_CustomPart = 12188239, e.MysteryBox_Layer = 12276792, e.MysteryBox_Event = 5003411, e.MysteryBox_Reward = 1018234, e.ActivityConfig_AngelCard = 6778916, e.AngelCard_CustomPart = 13900379, e.AngelCard_Deck = 9309354, e.AngelCard_Stage = 14000294, e.AngelCard_CardType = 8336779, e.AngelCard_AngelCardType = 10272337, e.AngelCard_AngelCardExtraQuality = 2596947, e.AngelCard_MagicCard = 13753484, e.AngelCard_CardRandomLib = 15261401, e.AngelCard_Difficulty = 813500, e.AngelCard_Monster = 5924098, e.AngelCard_Buffer = 9193380, e.ActivityConfig_PowerTask = 2494235, e.PowerTask_CustomPart = 15075782, e.ActivityConfig_UniversalBenefits = 6120165, e.UniversalBenefits_CustomPart = 13313180, e.UniversalBenefits_Reward = 11650306, e.ActivityConfig_PiggyBank = 10214696, e.PiggyBank_CustomPart = 13341860, e.PiggyBank_Round = 10078100, e.ActivityConfig_SingleRank = 4367516, e.SingleRank_CustomPart = 8923817, e.ActivityConfig_MultipleGift = 7889680, e.MultipleGift_CustomPart = 4069221, e.MultipleGift_PageType = 5662224, e.ActivityConfig_ChainGift = 1193003, e.ChainGift_CustomPart = 2590625, e.ChainGift_Page = 10065129, e.ActivityConfig_AllianceTrader = 8754088, e.AllianceTrader_PackInfo = 9008558, e.ActivityConfig_ClothDamage = 1365679, e.ClothDamage_CustomPart = 15251554, e.ActivityConfig_EightDays = 11918681, e.EightDays_CustomPart = 8362549, e.EightDaysReward = 5313596, e.ActivityConfig_TreasureBoxOpen = 12420563, e.TreasureBoxOpen_CustomPart = 5057198, e.TreasureBoxOpen_Round = 11026916, e.TreasureBoxOpen_RoundRewards = 5344903, e.ActivityConfig_AllianceMaze = 14262911, e.AllianceMaze_CustomPart = 12173130, e.AllianceMaze_Level = 14099216, e.AllianceMaze_Event = 9173541, e.AllianceMaze_Holy = 8726546, e.AllianceMaze_AllianceRank = 5332622, e.AllianceMaze_Resource = 11662514, e.ActivityConfig_StarryPrayer = 5742525, e.StarryPrayer_CustomPart = 2795093, e.StarryPrayer_SummonCardLib = 3873930, e.StarryPrayer_HigherChooseReward = 1294842, e.ActivityConfig_AssaultOperation = 5573350, e.AssaultOperation_CustomPart = 1025417, e.AssaultOperation_GrassPart = 1123325, e.AssaultOperation_GuessPart = 12485261, e.AssaultOperation_Move = 9066678, e.AssaultOperation_AllianceRankSocre = 9111519, e.AssaultOperation_AllianceRankRewards = 3602841, e.AssaultOperation_PlayerRank = 6466799, e.ActivityConfig_LuckySummon = 12171051, e.LuckySummon_CustomPart = 10022e3, e.LuckySummon_Cardlib = 13165747, e.LuckySummon_CardSummon = 12943316, e.ActivityConfig_TaskWarToken = 13983151, e.TaskWarToken_CustomPart = 7805911, e.TaskWarToken_Reward = 16018259, e.TaskWarToken_Page = 9816324, e.ActivityConfig_OpenBoxChooseOne = 10594069, e.OpenBoxChooseOne_CustomPart = 7069286, e.OpenBoxChooseOne_LayerRewards = 1046053, e.OpenBoxChooseOne_RoundConfig = 11518043, e.Req_AdventureJournal_SetName = 16005356, e.Res_AdventureJournal_SetName = 2969920, e.AdventureJournal_Model = 749501, e.ActivityConfig_Announcement = 2504138, e.Announcement_CustomPart = 6517699, e.ActivityConfig_ItemGetWay = 15251200, e.ItemGetWay_Items = 1908524, e.ItemGetWay_GetWays = 3121349, e.HeroSkillConfig = 15787941, e.HeroSkillEvents = 14721069, e.SkillEventItem = 10882161, e.BattleReport = 8967731, e.BattleReportPlayerInfo = 2429909, e.BattleReportHeroInfo = 16042849, e.BattleReportHeroInfo2 = 16299674, e.BattleReportBuffInfo = 11308111, e.BattleReportHitPointEvent = 9854031, e.BattleReportHitPoint = 6465319, e.BattleReportData = 8053780, e
        }();
        n.OpCode = o, n.InnerOpcodes = {
            8208878: 1,
            11422195: 1,
            15112643: 1,
            15316898: 1,
            7668774: 1,
            3105967: 1,
            12871101: 1,
            5461458: 1,
            100231: 1,
            10097931: 1,
            4422823: 1,
            13236415: 1,
            509: 1,
            510: 1,
            14354133: 1,
            8352716: 1,
            2448031: 1,
            11692784: 1,
            12139380: 1,
            8240320: 1,
            7565217: 1,
            10082785: 1,
            8996559: 1,
            10460459: 1,
            8226738: 1,
            14873714: 1,
            2444999: 1,
            7500886: 1,
            9465551: 1,
            8403137: 1,
            1720809: 1,
            5130630: 1,
            9040691: 1,
            4894471: 1,
            9316531: 1,
            10383650: 1,
            9527107: 1,
            9507881: 1,
            13333664: 1,
            11879641: 1,
            12217016: 1,
            11017258: 1,
            15795472: 1,
            7440017: 1,
            2662315: 1,
            16078656: 1,
            5317209: 1,
            8466584: 1,
            3623178: 1,
            6456784: 1,
            13958210: 1,
            8719521: 1,
            6055181: 1,
            15374386: 1,
            12306824: 1,
            13905573: 1,
            12637084: 1,
            2279685: 1,
            1305222: 1,
            13271850: 1,
            11213021: 1,
            1011140: 1,
            4681877: 1,
            1904668: 1,
            5969558: 1,
            13379321: 1,
            132826: 1,
            5971936: 1,
            3250765: 1,
            15341155: 1,
            4470486: 1,
            8028225: 1,
            11170473: 1,
            4014790: 1,
            16599222: 1,
            14254226: 1,
            10786197: 1,
            3689844: 1,
            8229707: 1,
            13068525: 1,
            53848: 1,
            9470836: 1,
            504603: 1,
            1727514: 1,
            5626651: 1,
            1031058: 1,
            12990727: 1,
            2057796: 1,
            13510714: 1,
            11889641: 1,
            6796037: 1,
            6057314: 1,
            15843580: 1,
            970296: 1,
            9746192: 1,
            9036490: 1,
            8783800: 1,
            15468221: 1,
            16599642: 1,
            3634746: 1,
            3739801: 1,
            7640700: 1,
            6675099: 1,
            8680947: 1,
            2473678: 1,
            15504606: 1,
            13133195: 1,
            3974380: 1,
            10317777: 1,
            166441: 1,
            11858875: 1,
            4346534: 1,
            16715033: 1,
            766141: 1,
            5466017: 1,
            16265516: 1,
            5130430: 1,
            6474656: 1,
            12779677: 1,
            11268960: 1,
            12238727: 1,
            9596717: 1,
            14902374: 1,
            3804618: 1,
            3050031: 1,
            2191197: 1,
            6125484: 1,
            12220013: 1,
            1966964: 1,
            4250013: 1,
            6944213: 1,
            1542218: 1,
            488145: 1,
            14483199: 1,
            10769604: 1,
            5338475: 1,
            6197273: 1,
            15401939: 1,
            3478022: 1,
            2840091: 1,
            15133733: 1,
            3369592: 1,
            9319879: 1,
            5548265: 1,
            9381063: 1,
            15121530: 1,
            6022085: 1,
            11326549: 1,
            7716345: 1,
            6796778: 1,
            13008599: 1,
            11260200: 1,
            7717117: 1,
            10012483: 1,
            9904689: 1,
            9124465: 1,
            5581732: 1,
            6052840: 1,
            9619416: 1,
            11710303: 1,
            12372476: 1,
            2091268: 1,
            10663611: 1,
            14631013: 1,
            10063183: 1,
            5011949: 1,
            701639: 1,
            6515431: 1,
            11313673: 1,
            15489463: 1,
            5083786: 1,
            4092936: 1,
            6188013: 1,
            16752848: 1,
            9193042: 1,
            4959661: 1,
            5955914: 1,
            4448817: 1,
            9876772: 1,
            14564266: 1,
            16308596: 1,
            6073453: 1,
            6497317: 1,
            12400112: 1,
            8771189: 1,
            13853792: 1,
            1964112: 1,
            8554234: 1,
            15178597: 1,
            8249933: 1,
            2174811: 1,
            12614839: 1,
            9710494: 1,
            7891104: 1,
            7608712: 1,
            15518517: 1,
            3947229: 1,
            10601128: 1,
            6255816: 1,
            14245124: 1,
            12882881: 1,
            10416968: 1,
            6210435: 1,
            2892853: 1,
            15101747: 1,
            4695054: 1,
            2901271: 1,
            9276970: 1,
            5646064: 1,
            16248269: 1,
            11934469: 1,
            15498124: 1,
            12664317: 1,
            13505436: 1,
            3934942: 1,
            2921968: 1,
            6997341: 1,
            16643378: 1,
            12122303: 1,
            370432: 1,
            3911345: 1,
            5622969: 1,
            4851647: 1,
            9892839: 1,
            5184099: 1,
            9860047: 1,
            10243662: 1,
            4241942: 1,
            12086032: 1,
            6547262: 1,
            12448130: 1,
            2590890: 1,
            6947571: 1,
            1631557: 1,
            11029941: 1,
            10890006: 1,
            5609733: 1,
            7432272: 1,
            14393591: 1,
            8377838: 1,
            3083674: 1
        }, cc._RF.pop()
    }, {}],
    OpenBubbleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3355dg0AvtByLRizW6VXxYe", "OpenBubbleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.OpenButton = null, t.OpenLabel = null, t.CloseNode = null, t.CloseButton = null, t.CloseLabel = null, t.DescRichText = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.OpenButton.node.on("click", this.ClickOpenButton, this), this.CloseButton.node.on("click", this.ClicCloseButton, this)
                }, t.prototype.onDisable = function() {
                    this.OpenButton.node.off("click", this.ClickOpenButton, this), this.CloseButton.node.off("click", this.ClicCloseButton, this)
                }, t.prototype.Init = function(e) {
                    e.Desc ? (this.DescRichText.node.active = !0, this.DescRichText.string = e.Desc) : this.DescRichText.node.active = !1, e.OpenLabel ? this.OpenLabel.string = e.OpenLabel : this.OpenLabel.string = "heroSkin_desc_open".ToUILocale(), e.CloseLabel ? this.CloseLabel.string = e.CloseLabel : this.CloseLabel.string = "heroSkin_desc_close".ToUILocale()
                }, t.prototype.ClickOpenButton = function() {
                    this.OpenButton.node.active = !1, this.CloseNode.active = !0
                }, t.prototype.ClicCloseButton = function() {
                    this.OpenButton.node.active = !0, this.CloseNode.active = !1
                }, i([l(cc.Button)], t.prototype, "OpenButton", void 0), i([l(cc.Label)], t.prototype, "OpenLabel", void 0), i([l(cc.Node)], t.prototype, "CloseNode", void 0), i([l(cc.Button)], t.prototype, "CloseButton", void 0), i([l(cc.Label)], t.prototype, "CloseLabel", void 0), i([l(cc.RichText)], t.prototype, "DescRichText", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    OpenLockedBoxPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7088bNfppNABZF8XtgehhOi", "OpenLockedBoxPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../Components/Components"),
            p = e("../Components/ItemNumComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GameRecord"),
            f = e("../../../Consts/Etc"),
            y = e("../../../Util/index"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Content = null, t.BoxContainer = null, t.KeyContainer = null, t.Slider = null, t.SliderNumLabel = null, t.BtnNode = null, t.BtnLabel = null, t.SubtractNode = null, t.AddNode = null, t.SliderFill = null, t._itemNumMap = {}, t._useTimes = 1, t._canUseTimes = 0, t._progress = 0, t._itemComponentMap = {}, t._onceConsume = {}, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, l.AssetsManager.Instance.LoadAsset("ItemInfoPanel/ItemNumComponent", cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "LockedBox_open".ToUILocale(), this.Content.string = "LockedBox_getNumber".ToUILocale(), this.SliderNumLabel.string = "0", this.BtnLabel.string = "use".ToUILocale(), this.Slider.node.on("slide", this.OnSlide, this), this.BtnNode.on("click", this.OnClickUse, this), this.AddNode.on("click", this.OnClickAdd, this), this.SubtractNode.on("click", this.OnClickSubtract, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._itemId = t[0], this._itemConfig = u.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, this._itemId), this._consumeConfig = u.ConfigDataComponent.Instance.GetConfigById(c.ItemConsume_Config, this._itemId);
                    for (var n = this._consumeConfig.Param[0].Items, o = 0; o < n.length; o += 2) {
                        var r = n[o],
                            i = n[o + 1],
                            a = u.DataCenter.Instance.GetItemCount(r);
                        this._itemNumMap[r] = a, this._onceConsume[r] = i
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.InitSlider(), this.RenderItem()
                }, t.prototype.RenderItem = function() {
                    for (var e in this._itemNumMap) {
                        var t = Number(e);
                        if (!this._itemComponentMap[e]) {
                            var n = cc.instantiate(this._itemPrefab),
                                o = n.getComponent(p.default);
                            t == this._consumeConfig.Param[0].Items[0] ? this.BoxContainer.addChild(n) : this.KeyContainer.addChild(n), this._itemComponentMap[e] = o
                        }
                        this._itemComponentMap[e].Set({
                            ItemId: t,
                            Count: this._useTimes * this._onceConsume[e]
                        })
                    }
                }, t.prototype.InitSlider = function() {
                    this.Slider.progress = 1;
                    var e = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("UseItemCountLimit");
                    for (var t in this._canUseTimes = e, this._itemNumMap) this._canUseTimes = Math.min(Math.floor(this._itemNumMap[t] / this._onceConsume[t]), this._canUseTimes);
                    this.SetProgress(this._useTimes)
                }, t.prototype.OnSlide = function() {
                    0 != this._canUseTimes ? (this._progress = this.Slider.progress, this.SetProgress()) : this.Slider.progress = 0
                }, t.prototype.OnClickSubtract = function() {
                    this._useTimes >= 1 && (this._useTimes -= 1, this._progress = this._useTimes / this._canUseTimes), this.SetProgress(this._useTimes)
                }, t.prototype.OnClickAdd = function() {
                    this._useTimes < this._canUseTimes && (this._useTimes += 1, this._progress = this._useTimes / this._canUseTimes), this.SetProgress(this._useTimes)
                }, t.prototype.OnClickUse = function() {
                    if (this._canUseTimes < 1) {
                        var e = void 0;
                        for (var t in this._itemNumMap) {
                            var n = Number(t);
                            if (!this._itemNumMap[n]) {
                                e = n;
                                break
                            }
                        }
                        d.UIUtlity.ShowFloatingHint("ChaosSummon_TicketNotEngough".ToUILocale().Fmt(e.ToItemName()))
                    } else {
                        var o = h.default.GetItem(h.GameRecordDefine.OpenLockedBox);
                        null == o && (o = 0);
                        var r = y.TimeUtil.Get0ClockTs(Number(o));
                        u.RpcComponent.Instance.ServerTime <= r + f.Etc.DayDuration ? this.DoOpenCall() : d.UIUtlity.ShowHintPanel(null, "LockedBox_Tip".ToUILocale().Fmt(this._useTimes, this._consumeConfig.Param[0].Items[0]), "", null, "", this.DoOpenCall.bind(this), void 0, h.GameRecordDefine.OpenLockedBox, !0)
                    }
                }, t.prototype.DoOpenCall = function() {
                    l.UIManager.Instance.BackUIPanel();
                    var e = new g.Req_Item_UseItem;
                    e.ItemId = this._itemId, e.Count = this._useTimes, u.RpcComponent.Instance.Call(e, function(e) {
                        d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.SetProgress = function(e) {
                    null == e && (this._useTimes = Math.floor(this._canUseTimes * this.Slider.progress)), this._useTimes > this._canUseTimes && (this._useTimes = this._canUseTimes), this.SliderFill.width = 512 * this._progress, this.Slider.progress = this._progress, this.SliderNumLabel.string = "" + this._useTimes + "GodSoul_CombineTimes".ToUILocale(), this.RenderItem()
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "Content", void 0), i([_(cc.Node)], t.prototype, "BoxContainer", void 0), i([_(cc.Node)], t.prototype, "KeyContainer", void 0), i([_(cc.Slider)], t.prototype, "Slider", void 0), i([_(cc.Label)], t.prototype, "SliderNumLabel", void 0), i([_(cc.Node)], t.prototype, "BtnNode", void 0), i([_(cc.Label)], t.prototype, "BtnLabel", void 0), i([_(cc.Node)], t.prototype, "SubtractNode", void 0), i([_(cc.Node)], t.prototype, "AddNode", void 0), i([_(cc.Node)], t.prototype, "SliderFill", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/index": "index",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemNumComponent": "ItemNumComponent"
    }],
    OpenServerActivityContent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e20fdDZ6QVGyojkb9yfG9Xy", "OpenServerActivityContent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../Consts/Etc"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Components/DataCenter"),
            d = e("../../Components/RpcComponent"),
            h = e("./ActivityBaseContent"),
            f = e("../Components/OpenServerEntrance"),
            y = e("../Components/LoadAssetHelper"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BgAniSkeleton = null, t.TopSprite = null, t.TimeLabel = null, t.TimeValue = null, t.Banner = null, t.OpenServerEntrances = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(y.default))
                }, t.prototype.onEnable = function() {
                    e.prototype.onEnable.call(this)
                }, t.prototype.onDisable = function() {
                    this.unschedule(this.CountDown), e.prototype.onDisable.call(this)
                }, t.prototype.Init = function(t) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return s(this, function() {
                            for (n in e.prototype.Init.call(this, t), this._frameConfig.Common.Pictures[3] && this._loadAssetHelper.LoadSpriteFrame(this._frameConfig.Common.Pictures[3], this.TopSprite, null, 1, !0), this.SetBanner(), this.LoadBgAni(), this._deadLine = u.default.Instance.GetOpenZeroTime() + (this._frameConfig.Common.Duration + this._frameConfig.Common.RequireOpenDays - 1) * l.Etc.DayDuration + this._frameConfig.Common.ExtraShowDays * l.Etc.DayDuration, this.TimeLabel.string = "gift_remainderTime".ToUILocale(), this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this.SetEntrances(), this._activityIdToNode) o = Number.parseInt(n), this.BindRedDot(p.DataCenter.Instance.ActivityConfigs[n].Common.Type, o);
                            return [2]
                        })
                    })
                }, t.prototype.SetBanner = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return (e = this._frameConfig.Common.Pictures[2]) ? this._bannerSpriteFrame && this._bannerPath == e ? [2] : void 0 !== this._bannerSpriteFrame ? [3, 2] : (this._bannerSpriteFrame = null, this._bannerPath = e, [4, u.default.LoadActivityTexture(e)]) : (this._bannerSpriteFrame && (this.Banner.spriteFrame = null, c.AssetsManager.Instance.UnloadAsset(this._bannerSpriteFrame), this._bannerSpriteFrame = void 0), [2]);
                                case 1:
                                    return t = n.sent(), this.isValid && e == this._bannerPath ? (this._bannerSpriteFrame && (c.AssetsManager.Instance.UnloadAsset(this._bannerSpriteFrame), this._bannerSpriteFrame = void 0), this._bannerSpriteFrame = t, [3, 3]) : (c.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    if (!this._bannerSpriteFrame) return [2];
                                    n.label = 3;
                                case 3:
                                    return this.Banner.spriteFrame = this._bannerSpriteFrame, [2]
                            }
                        })
                    })
                }, t.prototype.LoadBgAni = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._skeletonDataMap || (this._skeletonDataMap = {}), e = this._frameConfig.CustomPart.Round, null != this._skeletonDataMap[e] ? [3, 2] : (this._skeletonDataMap[e] = null, [4, c.AssetsManager.Instance.LoadAsset("TimeLimitedActivityPanel/Spine/UI_Effect_KFQD_0" + e, sp.SkeletonData)]);
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._skeletonDataMap[e] = t, [3, 3]) : (c.AssetsManager.Instance.UnloadAsset(t), [2]);
                                case 2:
                                    if (!this._skeletonDataMap[e]) return [2];
                                    n.label = 3;
                                case 3:
                                    return this.BgAniSkeleton.skeletonData = this._skeletonDataMap[e], this.BgAniSkeleton.setAnimation(0, "Ani_UI_Effect_KFQD_0" + e, !0), [2]
                            }
                        })
                    })
                }, t.prototype.CountDown = function() {
                    var e;
                    (e = this._deadLine - d.RpcComponent.Instance.ServerTime) < 0 && c.UIManager.Instance.BackUIPanel(), this.TimeValue.string = u.default.ActivityTimeLeftFormat(e)
                }, t.prototype.SetEntrances = function() {
                    var e = this,
                        t = this.GetEntrancePosArr();
                    this._activityDatas.forEach(function(n, o) {
                        var r = e.OpenServerEntrances[o];
                        r.node.active = !0, r.Init(n), r.node.name = n._id.toString(), r.node.on(cc.Node.EventType.TOUCH_END, e.OnModuleTouch, e), e._activityIdToNode[n._id] = r.node, t[o] && r.node.setPosition(t[o])
                    });
                    for (var n = this._activityDatas.length; n < this.OpenServerEntrances.length; n++) this.OpenServerEntrances[n].node.active = !1
                }, t.prototype.GetEntrancePosArr = function() {
                    return 3 != this._frameConfig.CustomPart.Round ? [cc.v2(-215, 291.5), cc.v2(330, 178.5), cc.v2(-256, 17.5), cc.v2(181, -162.5), cc.v2(-252, -393.5), cc.v2(270, -575.5)] : [cc.v2(-215, 291.5), cc.v2(330, 178.5), cc.v2(2, -151.5), cc.v2(-246, -518.5), cc.v2(221.5, -394)]
                }, t.prototype.onDestroy = function() {
                    for (var e in c.AssetsManager.Instance.UnloadAsset(this._bannerSpriteFrame), this._skeletonDataMap) c.AssetsManager.Instance.UnloadAsset(this._skeletonDataMap[e]), delete this._skeletonDataMap[e]
                }, i([I(sp.Skeleton)], t.prototype, "BgAniSkeleton", void 0), i([I(cc.Sprite)], t.prototype, "TopSprite", void 0), i([I(cc.Label)], t.prototype, "TimeLabel", void 0), i([I(cc.Label)], t.prototype, "TimeValue", void 0), i([I(cc.Sprite)], t.prototype, "Banner", void 0), i([I(f.default)], t.prototype, "OpenServerEntrances", void 0), i([m], t)
            }(h.default);
        n.default = _, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/OpenServerEntrance": "OpenServerEntrance",
        "./ActivityBaseContent": "ActivityBaseContent"
    }],
    OpenServerEntrance: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8cbccwynoRGuINKR5lu8lTR", "OpenServerEntrance");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = e("../../Components/Components"),
            l = e("../../../Consts/Consts"),
            c = e("../Panel/ActivityBaseComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NameLabel = null, t.TimeLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._activityData = e, this.NameLabel.string = e.Common.Title, this.SetTime()
                }, t.prototype.SetTime = function() {
                    this._resetTime = a.default.Instance.ComputeDeadTime(this._activityData.Common), this._showoffTime = a.default.Instance.ComputeExtraShowDeadTime(this._activityData.Common), null == this._resetTime || this._showoffTime < s.RpcComponent.Instance.ServerTime ? this.TimeLabel.node.parent.active = !1 : (this.TimeValueAssign(), this.schedule(this.TimeValueAssign, this._refreshInterval))
                }, t.prototype.TimeValueAssign = function() {
                    var e = this._resetTime - s.RpcComponent.Instance.ServerTime;
                    e > 0 ? (this._refreshInterval = e > l.Etc.DayDuration ? 600 : 1, this.TimeLabel.string = a.default.ActivityTimeLeftFormat(e)) : s.RpcComponent.Instance.ServerTime < this._showoffTime ? (this.TimeLabel.string = "activityTime_show".ToUILocale() + "  ", this.TimeLabel.string = a.default.ActivityTimeLeftFormat(this._showoffTime - s.RpcComponent.Instance.ServerTime)) : this.TimeLabel.node.parent.active = !1
                }, i([d(cc.Label)], t.prototype, "NameLabel", void 0), i([d(cc.Label)], t.prototype, "TimeLabel", void 0), i([p], t)
            }(c.default);
        n.default = h, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Panel/ActivityBaseComponent": "ActivityBaseComponent"
    }],
    OpenServerHalfComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "44e9b/ebelJlalk3Az7p0Db", "OpenServerHalfComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../Consts/Etc"),
            s = e("../../Auxiliary/DataUtlity"),
            l = e("../../Components/RpcComponent"),
            c = e("./ActivityBaseComponent"),
            u = e("./TimeLimitedActivityComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BGS = [], t.TimeLabels = [], t.TimeValues = [], t.Reddots = [], t
                }
                return r(t, e), t.prototype.SetIndex = function(e) {
                    return this._index = e, this.BGS[e].node.active = !0, this
                }, t.prototype.SetBG = function(e) {
                    this.BGS[this._index].spriteFrame = e, this.node.height = e.getOriginalSize().height
                }, t.prototype.SetTime = function(e, t) {
                    return this.BGS[this._index].node.getComponent(u.default).SetTime(e, null, t), this
                }, t.prototype.GetNode = function(e) {
                    return this.BGS[e].node.active = !0, this.BGS[e].node
                }, t.prototype.TimeValueAssign = function() {
                    var e = this._resetTime - l.RpcComponent.Instance.ServerTime;
                    e < 0 ? this.TimeLabels[this._index].node.parent.active = !1 : (this._refreshInterval = e > a.Etc.DayDuration ? 600 : 1, this.TimeValues[this._index].string = s.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetReddot = function(e) {
                    void 0 === e && (e = !1), this.Reddots[this._index].active = e
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([h({
                    type: [cc.Sprite]
                })], t.prototype, "BGS", void 0), i([h({
                    type: [cc.Label]
                })], t.prototype, "TimeLabels", void 0), i([h({
                    type: [cc.Label]
                })], t.prototype, "TimeValues", void 0), i([h({
                    type: [cc.Node]
                })], t.prototype, "Reddots", void 0), i([d], t)
            }(c.default);
        n.default = f, cc._RF.pop()
    }, {
        "../../../Consts/Etc": "Etc",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/RpcComponent": "RpcComponent",
        "./ActivityBaseComponent": "ActivityBaseComponent",
        "./TimeLimitedActivityComponent": "TimeLimitedActivityComponent"
    }],
    OptionalUpgradeStarPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "23a6aIlAHBF0q0+RJq8eJeQ", "OptionalUpgradeStarPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/GameEventIds"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Channel/ChannelManager"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = e("../../Components/DataCenter"),
            _ = e("../../Components/RpcComponent"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../Components/CustomLayout"),
            b = e("../Components/ItemComponent"),
            S = e("./NodePool"),
            w = e("./UpgradeStarSingleItem"),
            P = e("../../../EZFramework/EZFramework"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.EMPTY = 0] = "EMPTY", e[e.UNCHOSEN = 1] = "UNCHOSEN", e[e.CHOSEN = 2] = "CHOSEN"
        })(l || (l = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.LeftTimeLabel = null, t.LeftTimeValue = null, t.HeroDetailLabel = null, t.StarLevelLabel = null, t.FreeGetLabel = null, t.ExclusiveLabel = null, t.RuleButton = null, t.BannerImage = null, t.TextImage = null, t.View = null, t.GoButton = null, t.ReturnButton = null, t.ChargeButton = null, t.ChargeButtonLabel = null, t.HeroItemContainer = null, t.EmptyItemNode = null, t.FloatingBG = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t.HandAniNode = null, t.TouchBoard = null, t.DescRichText = null, t._initCustomLayout = !0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                p.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_MALL_ITEMCHOOSE, this.OnFreeItemTouch, this), p.Game.EventDispatcher.On(u.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.onDisable = function() {
                p.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_MALL_ITEMCHOOSE, this.OnFreeItemTouch, this), p.Game.EventDispatcher.Off(u.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.DisPlay, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("OptionalUpgradeStarPanel/Components/UpgradeStarSingleItem", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._itemPrefab = e[0], o._singlePrefab = e[1], o._itemPool = new S.default(o._itemPrefab)
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.LeftTimeLabel.string = "gift_remainderTime".ToUILocale(), this.HeroDetailLabel.string = "HeroDetail_title".ToUILocale(), this.StarLevelLabel.string = "starPiece_info_star".ToUILocale(), this.FreeGetLabel.string = "timeLimited_upgradeStar_freeGet".ToUILocale(), this.ExclusiveLabel.string = "timeLimited_upgradeStar_exclusiveGift".ToUILocale(), this.ChargeButtonLabel.string = "timeLimited_upgradeStar_goSummon".ToUILocale(), this.ConfirmButtonLabel.string = "hero_lock".ToUILocale(), this.GoButton.node.on("click", this.OnGoButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ChargeButton.node.on("click", this.OnSummonButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.TouchBoard.on(cc.Node.EventType.TOUCH_END, this.OnTouchBoardTouch, this), this.ConfirmButton.node.on("click", this.OnChosenButtonClick, this);
                var t = this._itemPool.Get();
                t.setParent(this.HeroItemContainer), t.active = !1, this._heroItem = t.getComponent(b.ItemComponent), this.SetCommonTaskTipComponent()
            }, t.prototype.InitData = function(t) {
                var n = this;
                e.prototype.InitData.call(this);
                var o = t[0];
                this._data = I.DataCenter.Instance.ActivityConfigs[o], this._deadLine = d.default.Instance.ComputeDeadTime(this._data.Common), this.SetBanner(), this._heroIdToPacks = {}, this._heroIds = [], this._data.Heros.forEach(function(e) {
                    n._heroIdToPacks[e.HeroId] = e.PackIds, n._heroIds.push(e.HeroId)
                }), this._giftIdToGifts = {}, this._data._Packs.forEach(function(e) {
                    n._giftIdToGifts[e.Id] = e
                }), this.ChargeButton.node.active = d.default.Instance.IsJumpIdExist(this._data.Common.JumpId, !0)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._model = I.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._data._id), this._chosenId = this._model.IntValue, this.CountDown(), this.unschedule(this.CountDown), this.schedule(this.CountDown, 1), this._initCustomLayout && (this._initCustomLayout = !1, this.View.Init(this._singlePrefab)), this._chosenId || (this._chosenId = this._heroIds[0]), this.View.RenderLayOut(this._data.Rewards.length), this._model.IntValue > 0 ? (this.EmptyItemNode.active = !1, 0 == this._heroItem.node.active && (this._heroItem.node.active = !0), this._heroItem.Init({
                    ItemId: this._model.IntValue
                }, b.ItemComponentType.HeroInfo)) : this.EmptyItemNode.active = !0, this.RefreshHeroState()
            }, t.prototype.OnGoButtonClick = function() {
                p.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroHandbookPanel.Path, this._chosenId)
            }, t.prototype.OnReturnButtonClick = function() {
                p.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRuleButtonClick = function() {
                if (this._data.Heros.length > 1) {
                    var e = {
                        name: "timeLimited_optionalUpgradeStar_RuleMainTitle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["timeLimited_optionalUpgradeStar_RuleText".ToUILocale()]
                    };
                    C.UIUtlity.ShowRulePanel(e)
                } else e = {
                    name: "timeLimited_upgradeStar_RuleMainTitle".ToUILocale(),
                    titles: ["timeLimited_upgradeStar_RuleSubtitle".ToUILocale()],
                    contents: ["timeLimited_upgradeStar_RuleText".ToUILocale()]
                }, C.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnSummonButtonClick = function() {
                var e = m.ConfigDataComponent.Instance.GetConfigById(h.ItemGetWay_Config, this._data.Common.JumpId);
                if (e) {
                    var t = e.PanelInfo[0],
                        n = P.UIManager.Instance.GetUIPanel(y.PanelConfig.WishCallPanel.Path);
                    if (t == y.PanelConfig.WishCallPanel.Id && n) return void p.UIManager.Instance.BackUIPanel();
                    var o = P.UIManager.Instance.GetUIPanel(y.PanelConfig.SummonActivityListPanel.Path);
                    if (t == y.PanelConfig.SummonActivityListPanel.Id && o) return void p.UIManager.Instance.BackUIPanel();
                    var r = P.UIManager.Instance.GetUIPanel(y.PanelConfig.ChaosSummonPanel.Path);
                    if (t == y.PanelConfig.ChaosSummonPanel.Id && r) return void p.UIManager.Instance.BackUIPanel()
                }
                d.default.ShowPanelByGetWayId(this._data.Common.JumpId)
            }, t.prototype.OnItemClick = function(e, t) {
                "ItemContainer1453" == t.parent.name ? C.UIUtlity.ShowItemTip(t.getComponent(b.ItemComponent).ItemId, t) : this.HeroItemContainer.children.indexOf(t) > -1 && this._model.IntValue > 0 && p.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroHandbookPanel.Path, this._model.IntValue)
            }, t.prototype.RefreshCustomLayout = function(e, t) {
                var n = this;
                if (t == this.View) {
                    var o, r = I.DataCenter.Instance.GetDataById(c.HeroInfo_Model, this._chosenId);
                    o = null == r ? 0 : r.MaxStar, e.forEach(function(e, t) {
                        var i = n._giftIdToGifts[n._heroIdToPacks[n._chosenId][t]],
                            a = n._data.Rewards[t],
                            s = n._data.Rewards[t + 1],
                            l = null == s || o < a.StarLevel ? 0 : (o - a.StarLevel) / (s.StarLevel - a.StarLevel),
                            c = 0 != o && n.JudgeByBit(r.OptionalUpgradeStar, t),
                            u = 0 != i.LimitType && n._model.Packs[i.Id] && n._model.Packs[i.Id].Items[0] >= i.LimitCount;
                        e.getComponent(w.default).SetHeroAndStar(n._chosenId, a.StarLevel, n._itemPool, o).SetRewards(a.Rewards, i.Items).SetPrice(g.default.Instance.ExchangeMoney(i.Money), i.VipPoint, i.LimitCount - n._model.Packs[i.Id].Items[0], i.LimitCount).SetProgress(null != s, l, i.Discount).SetIndex(t, !n._model.IntValue || !n._model.IntArray[0]).SetDiscount(i.Discount).SetBuyState(o >= a.StarLevel, u, c)
                    })
                }
            }, t.prototype.OnButtonClick = function(e) {
                if (this.isValid)
                    if (this._model.IntValue > 0 && this._model.IntArray[0]) {
                        var t = this._heroIdToPacks[this._chosenId][e];
                        g.default.Instance.Pay(t, this._data._id)
                    } else C.UIUtlity.ShowFloatingHint("timeLimited_upgradeStar_heroNotLocked".ToUILocale())
            }, t.prototype.OnFreeItemTouch = function(e) {
                if (null != this._data)
                    if (this._model.IntArray[0]) {
                        var t = new c.Req_Activity_OptionalUpgradeStarReward;
                        t.ActivityId = this._data._id, t.RewardId = this._data.Rewards[e].Id, _.RpcComponent.Instance.Call(t, function(e) {
                            C.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else C.UIUtlity.ShowFloatingHint("timeLimited_upgradeStar_heroNotLocked".ToUILocale())
            }, t.prototype.OnTouchBoardTouch = function() {
                p.UIManager.Instance.ShowUIPanel(y.PanelConfig.OptionalUpgradeStarHeroHintPanel.Path, this._itemPrefab, this._heroIds, [], this._model.IntValue, this._data._id, this._data.Common.Type)
            }, t.prototype.OnChosenHero = function(e) {
                this._chosenId = e
            }, t.prototype.OnChosenButtonClick = function() {
                var e = this;
                C.UIUtlity.ShowHintPanel("hint".ToUILocale(), "timeLimited_upgradeStar_lockHeroTip".ToUILocale(), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                    var t = new c.Req_Activity_OptionalUpgradeStarLock;
                    t.ActivityId = e._data._id, _.RpcComponent.Instance.Call(t, function() {
                        e.DisPlay()
                    })
                })
            }, t.prototype.JudgeByBit = function(e, t) {
                return null != e && 1 == (e >> t & 1)
            }, t.prototype.SetCommonTaskTipComponent = function() {
                this.DescRichText.node.active = !1
            }, t.prototype.CountDown = function() {
                var e = this._deadLine - _.RpcComponent.Instance.ServerTime;
                e < 0 && p.UIManager.Instance.BackUIPanel(), this.LeftTimeValue.string = d.default.ActivityTimeLeftFormat(e)
            }, t.prototype.SetBanner = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = this._data.Common.ShowImage.split("|"), t = this, [4, d.default.LoadActivityTexture(e[0])];
                            case 1:
                                return t._banner = o.sent(), this.isValid ? (this.BannerImage.spriteFrame = this._banner, n = this, [4, d.default.LoadActivityTexture(e[1])]) : (p.AssetsManager.Instance.UnloadAsset(this._banner), [2]);
                            case 2:
                                return n._text = o.sent(), this.isValid ? (this.TextImage.spriteFrame = this._text, [2]) : (p.AssetsManager.Instance.UnloadAsset(this._text), [2])
                        }
                    })
                })
            }, t.prototype.RefreshHeroState = function() {
                this.FloatingBG.active = 1 == this._model.IntArray[0], this.ConfirmButton.node.active = this._model.IntValue > 0 && 1 != this._model.IntArray[0], this.HandAniNode.active = 0 == this._model.IntValue, this.TouchBoard.active = 1 != this._model.IntArray[0]
            }, t.prototype.onDestroy = function() {
                p.AssetsManager.Instance.UnloadAsset(this._banner), p.AssetsManager.Instance.UnloadAsset(this._text), this.unscheduleAllCallbacks(), this._itemPool && this._itemPool.Clear()
            }, i([R(cc.Label)], t.prototype, "LeftTimeLabel", void 0), i([R(cc.Label)], t.prototype, "LeftTimeValue", void 0), i([R(cc.Label)], t.prototype, "HeroDetailLabel", void 0), i([R(cc.Label)], t.prototype, "StarLevelLabel", void 0), i([R(cc.Label)], t.prototype, "FreeGetLabel", void 0), i([R(cc.Label)], t.prototype, "ExclusiveLabel", void 0), i([R(cc.Button)], t.prototype, "RuleButton", void 0), i([R(cc.Sprite)], t.prototype, "BannerImage", void 0), i([R(cc.Sprite)], t.prototype, "TextImage", void 0), i([R(v.default)], t.prototype, "View", void 0), i([R(cc.Button)], t.prototype, "GoButton", void 0), i([R(cc.Button)], t.prototype, "ReturnButton", void 0), i([R(cc.Button)], t.prototype, "ChargeButton", void 0), i([R(cc.Label)], t.prototype, "ChargeButtonLabel", void 0), i([R(cc.Node)], t.prototype, "HeroItemContainer", void 0), i([R(cc.Node)], t.prototype, "EmptyItemNode", void 0), i([R(cc.Node)], t.prototype, "FloatingBG", void 0), i([R(cc.Button)], t.prototype, "ConfirmButton", void 0), i([R(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([R(cc.Node)], t.prototype, "HandAniNode", void 0), i([R(cc.Node)], t.prototype, "TouchBoard", void 0), i([R(cc.RichText)], t.prototype, "DescRichText", void 0), i([T], t)
        }(p.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./NodePool": "NodePool",
        "./UpgradeStarSingleItem": "UpgradeStarSingleItem"
    }],
    OracleExchangeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "520a9P+U6JGQo1N+W6pqCSx", "OracleExchangeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../ShareConsts/EnumType"),
            c = e("../../Components/ConfigData/ConfigDataComponent"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/DataCenter"),
            d = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            h = e("../../Auxiliary/DataUtlity"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ElementType = l.HeroElementType.Heart, t.CurrencyIcon = null, t.NeedCountLabel = null, t._isInit = !0, t._crystalConfig = null, t._colorFF5B5B = new cc.Color(255, 91, 91), t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    this._isInit && (this._isInit = !1, this.LoadAtlas(), this.LoadBaseData()), this.SetNeedCount()
                }, t.prototype.LoadAtlas = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._itemSprite ? [3, 2] : (e = h.default.Instance.GetItemPathById(l.CommonItemId.OracleExchangeItemId), t = this, [4, d.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)]);
                                case 1:
                                    if (t._itemSprite = n.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._itemSprite), [2];
                                    n.label = 2;
                                case 2:
                                    return this.LoadIcon(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.CurrencyIcon.spriteFrame = this._itemSprite, [2]
                        })
                    })
                }, t.prototype.LoadBaseData = function() {
                    this._crystalConfig = c.ConfigDataComponent.Instance.GetConfigById(u.CardProphetSummon_Config, l.ProphetSummonType.Crystal)
                }, t.prototype.SetNeedCount = function() {
                    var e;
                    e = this.ElementType == l.HeroElementType.Break || this.ElementType == l.HeroElementType.Fight ? this._crystalConfig.AdvCurrencyCount : this._crystalConfig.BaseCurrencyCount, this.NeedCountLabel.string = e.toString(), this.IsMaterialItemCountEnough(e) ? this.NeedCountLabel.node.color = cc.Color.WHITE : this.NeedCountLabel.node.color = this._colorFF5B5B
                }, t.prototype.IsMaterialItemCountEnough = function(e) {
                    return p.DataCenter.Instance.IsItemEnough(l.CommonItemId.OracleExchangeItemId, e)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._itemSprite && d.AssetsManager.Instance.UnloadAsset(this._itemSprite), this._itemSprite = null
                }, i([g({
                    type: cc.Enum(l.HeroElementType),
                    displayName: "ElementType"
                })], t.prototype, "ElementType", void 0), i([g(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([g(cc.Label)], t.prototype, "NeedCountLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter"
    }],
    OracleExchangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d8715OAZkZMzY5NlOoDlTPz", "OracleExchangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../Components/OracleExchangeItem"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../Components/CustomRichText"),
            f = e("../../../Util/AppUtil"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../../../Proto/Static/RpcProto"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Components/RpcComponent"),
            v = e("./DrawAgainRewardsPanel"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../../Auxiliary/GlobalDefine"),
            A = e("../../../EZFramework/EZFramework"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Fixed, !0, !1), t.CardItems = [], t.SelectEffect = null, t.BtnSummon = null, t.SummonBtnLabel = null, t.BtnUnOpen = null, t.UnOpenBtnLabel = null, t.TipsLabel = null, t.CurrencyIcon = null, t.CurrencyCount = null, t.BtnReturn = null, t._currSelectElement = 0, t._gameModuleConfig = null, t._crystalConfig = null, t._isBusy = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    b.Game.EventDispatcher.On(S.EventKeys.EVENT_ORACLE_EXCHANGE_SUCCESS, this.RefreshView, this)
                }, t.prototype.onDisable = function() {
                    b.Game.EventDispatcher.Off(S.EventKeys.EVENT_ORACLE_EXCHANGE_SUCCESS, this.RefreshView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = w.default.Instance.GetItemPathById(d.CommonItemId.OracleExchangeItemId), n = this, [4, this.LoadDynamicAsset(t, cc.SpriteFrame)];
                                case 1:
                                    return n._itemSprite = o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.CurrencyIcon.spriteFrame = this._itemSprite, [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.TipsLabel.Init("oracleDraw_crystalDraw_tips".ToUILocale().Fmt(d.CommonItemId.OracleExchangeItemId.ToItemName())), this.SummonBtnLabel.string = "oracleDraw_crystalDraw_sure".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnSummon.node.on("click", this.OnBtnSummonClick, this);
                    for (var e = 0; e < this.CardItems.length; e++) this.CardItems[e].node.on(cc.Node.EventType.TOUCH_END, this.OnCardClick, this)
                }, t.prototype.OnBtnReturnClick = function() {
                    A.UIManager.Instance.BackUIPanel()
                }, t.prototype.InitData = function() {}, t.prototype.LoadBaseData = function() {
                    this._gameModuleConfig = g.ConfigDataComponent.Instance.GetConfigById(m.GameModule_Config, d.GameModuleType.CrystalSummon), this._crystalConfig = g.ConfigDataComponent.Instance.GetConfigById(m.CardProphetSummon_Config, d.ProphetSummonType.Crystal)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.RefreshView()
                }, t.prototype.ResetPanelState = function() {
                    this.LoadBaseData(), this._currSelectElement = 0, this.LoadIcon()
                }, t.prototype.RefreshView = function() {
                    this.InitCardItems(), this.SetSelectEffect(), this.SetBtnState(), this.SetCurrentyCount()
                }, t.prototype.InitCardItems = function() {
                    for (var e = 0; e < this.CardItems.length; e++) this.CardItems[e].InitUI()
                }, t.prototype.OnCardClick = function(e) {
                    var t = f.AppUtil.ToInt(e.target.name);
                    if (t != this._currSelectElement)
                        if (this.IsUnLock()) {
                            var n = this.GetNeedCount(t),
                                o = d.CommonItemId.OracleExchangeItemId.ToItemName();
                            this.IsMaterialItemCountEnough(n) ? (this._currSelectElement = t, this.SetSelectEffect()) : _.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(o))
                        } else {
                            var r = "oracleDraw_crystalDraw_lock".ToUILocale().Fmt(this._gameModuleConfig.Requirements1[0].Items[1]);
                            _.UIUtlity.ShowFloatingHint(r)
                        }
                }, t.prototype.GetNeedCount = function(e) {
                    return e == d.HeroElementType.Break || e == d.HeroElementType.Fight ? this._crystalConfig.AdvCurrencyCount : this._crystalConfig.BaseCurrencyCount
                }, t.prototype.OnBtnSummonClick = function() {
                    var e = this;
                    if (!this._isBusy)
                        if (0 != this._currSelectElement)
                            if (w.default.Instance.IsCanGetNewHero(1)) {
                                var t = this.GetNeedCount(this._currSelectElement),
                                    n = d.CommonItemId.OracleExchangeItemId.ToItemName(),
                                    o = this._currSelectElement.ToHeroElementName(),
                                    r = "oracleDraw_crystalDraw_hint".ToUILocale().Fmt(t, n, o);
                                _.UIUtlity.ShowHintPanel("", r, "", null, "", function() {
                                    e.RequestSummon()
                                })
                            } else {
                                var i = w.default.Instance.GetHeroCountLimit(),
                                    a = "drawCard_heroCount_limit".ToUILocale().Fmt(i);
                                _.UIUtlity.ShowHintPanel("", a, "", null, "go_to_treat".ToUILocale(), function() {
                                    b.UIManager.Instance.ShowUIPanel(P.PanelConfig.HeroPalacePanel.Path, 1)
                                })
                            }
                    else _.UIUtlity.ShowFloatingHint("oracleDraw_unknow_element".ToUILocale())
                }, t.prototype.RequestSummon = function() {
                    this._isBusy = !0;
                    var e = new I.Req_Card_ProphetSummon;
                    e.Type = 2, e.ElementType = this._currSelectElement, C.RpcComponent.Instance.Call(e, this.ResponseSummonSuccess.bind(this), this.ResponseSummonFailed.bind(this))
                }, t.prototype.ResponseSummonSuccess = function(e) {
                    if (null != this) {
                        this._isBusy = !1;
                        var t = this.GetNeedCount(this._currSelectElement);
                        this.node.active && this.RefreshView(), _.UIUtlity.ShwDrawAgainlRewardsPanel(e.Rewards, d.CommonItemId.OracleExchangeItemId, t, v.DrawAgainRewardsPanelType.OracleExchange, this._currSelectElement), w.default.Instance.HasCoreHeroInRewards(e.Rewards) && A.AudioManager.Instance.PlayEffect(w.default.Instance.GetAudioRandomNumByType(d.RandomAudioType.GetCoreHero)), this._currSelectElement = 0
                    }
                }, t.prototype.ResponseSummonFailed = function() {
                    null != this && (this._isBusy = !1)
                }, t.prototype.SetSelectEffect = function() {
                    0 != this._currSelectElement ? (this.SelectEffect.active = !0, this.SelectEffect.position = this.CardItems[this._currSelectElement - 1].node.position) : this.SelectEffect.active = !1
                }, t.prototype.IsMaterialItemCountEnough = function(e) {
                    return y.DataCenter.Instance.IsItemEnough(d.CommonItemId.OracleExchangeItemId, e)
                }, t.prototype.SetCurrentyCount = function() {
                    var e = y.DataCenter.Instance.GetItemCount(d.CommonItemId.OracleExchangeItemId);
                    this.CurrencyCount.string = e.toString()
                }, t.prototype.SetBtnState = function() {
                    this.IsUnLock() ? (this.BtnUnOpen.node.active = !1, this.BtnSummon.node.active = !0) : (this.BtnUnOpen.node.active = !0, this.BtnSummon.node.active = !1, this.UnOpenBtnLabel.string = "oracleDraw_crystalDraw_lock".ToUILocale().Fmt(this._gameModuleConfig.Requirements1[0].Items[1]))
                }, t.prototype.IsUnLock = function() {
                    return y.DataCenter.Instance.GetDataById(I.GameModule_Model, d.GameModuleType.CrystalSummon).IsUnlocked
                }, i([L(p.default)], t.prototype, "CardItems", void 0), i([L(cc.Node)], t.prototype, "SelectEffect", void 0), i([L(cc.Button)], t.prototype, "BtnSummon", void 0), i([L(cc.Label)], t.prototype, "SummonBtnLabel", void 0), i([L(cc.Button)], t.prototype, "BtnUnOpen", void 0), i([L(cc.Label)], t.prototype, "UnOpenBtnLabel", void 0), i([L(h.CustomRichText)], t.prototype, "TipsLabel", void 0), i([L(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([L(cc.Label)], t.prototype, "CurrencyCount", void 0), i([L(cc.Button)], t.prototype, "BtnReturn", void 0), i([R], t)
            }(l.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/OracleExchangeItem": "OracleExchangeItem",
        "./DrawAgainRewardsPanel": "DrawAgainRewardsPanel"
    }],
    OracleShopPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7709bKSrlJDj6tihqtgtAuz", "OracleShopPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/UIPanelType"),
            c = e("../../../EZFramework/EZDefine/SysDefine"),
            u = e("../Components/CurrencyBarItem"),
            p = e("../../../Consts/Consts"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/HeroElementGroup"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../Components/GoodsItem"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("./ShopUIPanel"),
            v = e("../Components/CustomLayout"),
            b = e("../../Auxiliary/DataUtlity"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(c.UINodeType.Fixed), t.Tittle = null, t.HeroElementGroup = null, t.DiamondCurrencyItem = null, t.BtnReturn = null, t.Scroll = null, t.BtnRule = null, t.HeroAvatarContainer = null, t.ItemCustomLayout = null, t.GOODS_ITEM_PATH = "ItemsComponent/GoodsItem", t.DEFAULT = 0, t.ORACLE_SHOP_BASE_ID = 1001, t._goodsItemPrefab = null, t._currentElement = -1, t._isItemLayoutInit = !1, t._configObj = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    d.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), d.Game.EventDispatcher.On(h.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.BuyItemSuccess, this), d.Game.EventDispatcher.On(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
                }, t.prototype.onDisable = function() {
                    d.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), d.Game.EventDispatcher.Off(h.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.BuyItemSuccess), d.Game.EventDispatcher.Off(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.GOODS_ITEM_PATH, cc.Prefab)];
                                case 1:
                                    return t._goodsItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "oracleDraw_shop".ToUILocale(), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.InitItemLayout()
                }, t.prototype.InitData = function() {
                    for (var e = g.ConfigDataComponent.Instance.GetConfigById(y.ShopBase_Config, this.ORACLE_SHOP_BASE_ID), t = p.HeroElementType.All; t <= p.HeroElementType.Chaos; t++) this._configObj[t] = [];
                    for (t = 0; t < e.Goods.length; t++)
                        for (var n = 0, o = e.Goods[t].Items; n < o.length; n++) {
                            var r = o[n],
                                i = g.ConfigDataComponent.Instance.GetConfigById(y.ShopItem_Config, r),
                                a = i.ItemId,
                                s = g.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, a);
                            this._configObj[p.HeroElementType.All].push(i), this._configObj[s.ElementType].push(i)
                        }
                }, t.prototype.InitItemLayout = function() {
                    this._isItemLayoutInit || (this._isItemLayoutInit = !0, this.ItemCustomLayout.Init(this._goodsItemPrefab))
                }, t.prototype.RefreshScrollView = function(e, t) {
                    if (this.ItemCustomLayout == t) {
                        var n = this._configObj[this._currentElement];
                        e.forEach(function(e, t) {
                            e.getComponent(m.default).SetUI(n[t].Id, t, C.ShopType.Oracle)
                        })
                    }
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisplay = t, t || (this._currentElement = -1, this.HeroElementGroup.SetDefault(), this.LoadTitleAvatar()), this.DiamondCurrencyItem.Init(p.CommonItemId.OracleShopItemId)
                }, t.prototype.RefreshItemGrid = function() {
                    var e = this._configObj[this._currentElement];
                    this.ItemCustomLayout.RenderLayOut(e.length), this._isReDisplay || I.UIUtlity.AnimationItemsByType1(this.ItemCustomLayout.node.children)
                }, t.prototype.LoadTitleAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this.HeroAvatarContainer.destroyAllChildren(), e = g.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_ElementSummon_Shop_HeroId"), t = g.ConfigDataComponent.Instance.GetConfigById(y.HeroBase_Config, e), [4, this.LoadDynamicAsset(t.UIAvatar + "/Avatar")];
                                case 1:
                                    return n = r.sent(), this.isValid ? ((o = cc.instantiate(n)).setParent(this.HeroAvatarContainer), b.default.Instance.SetHeroAvatarSkin(o, t.Id, t.StarLevel), this._avatarAlphaTween && this._avatarAlphaTween.stop(), o.opacity = 20, this._avatarAlphaTween = cc.tween(o).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start(), [2]) : (_.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.BuyItemSuccess = function() {
                    this.DiamondCurrencyItem.Init(p.CommonItemId.OracleShopItemId), this.RefreshItemGrid()
                }, t.prototype.OnSwitchHeroElement = function(e) {
                    e != this._currentElement && (this._currentElement = e, this.RefreshItemGrid())
                }, t.prototype.OnBtnRuleClick = function() {
                    var e = {
                        name: "oracle_shop_rule_maintittle".ToUILocale(),
                        titles: ["oracle_shop_rule_subtittle".ToUILocale()],
                        contents: ["oracle_shop_rule_text".ToUILocale()]
                    };
                    I.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnBtnReturnClick = function() {
                    _.UIManager.Instance.BackUIPanel()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this._avatarAlphaTween && this._avatarAlphaTween.stop()
                }, t.isBusy = !1, i([P(cc.Label)], t.prototype, "Tittle", void 0), i([P(f.default)], t.prototype, "HeroElementGroup", void 0), i([P(u.default)], t.prototype, "DiamondCurrencyItem", void 0), i([P(cc.Button)], t.prototype, "BtnReturn", void 0), i([P(cc.ScrollView)], t.prototype, "Scroll", void 0), i([P(cc.Button)], t.prototype, "BtnRule", void 0), i([P(cc.Node)], t.prototype, "HeroAvatarContainer", void 0), i([P(v.default)], t.prototype, "ItemCustomLayout", void 0), i([w], t)
            }(d.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/GoodsItem": "GoodsItem",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    OrangeBubbleTipComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8657dS6wYNOUaZ+4YephWJ1", "OrangeBubbleTipComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Panel/CommonLongLabelRollComponent"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Tip = null, t.BgNode = null, t.CommonLongLabelRollComponent = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.Tip.string = e
                }, i([c(cc.Label)], t.prototype, "Tip", void 0), i([c(cc.Node)], t.prototype, "BgNode", void 0), i([c(a.default)], t.prototype, "CommonLongLabelRollComponent", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../Panel/CommonLongLabelRollComponent": "CommonLongLabelRollComponent"
    }],
    OrigionSkillSelectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "16f04wRG+dHwIlsR4YRtnRG", "OrigionSkillSelectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../Panel/LuckyCharmOrigionSkillPanel"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SkillIcon = null, t.SkillNameLabel = null, t.SkillDescriptionLabel = null, t.CheckNode = null, t.CheckMark = null, t.TouchArea = null, t._iconSpriteFrame = null, t._skillId = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.TouchArea.on(cc.Node.EventType.TOUCH_END, this.OnCheckedTouch, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._skillId = e, this.SetLabels(), this.LoadIcon(), this.CheckNode.active = t == p.LuckyCharmOrigionSkillPanelSelectMode.Select, this.CheckMark.node.active = n
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, l.AssetsManager.Instance.LoadAsset("LuckyCharmSkillIcon/" + this._skillId, cc.SpriteFrame)];
                                case 1:
                                    return e._iconSpriteFrame = t.sent(), this.isValid || l.AssetsManager.Instance.UnloadAsset(this._iconSpriteFrame), this.SkillIcon.spriteFrame = this._iconSpriteFrame, [2]
                            }
                        })
                    })
                }, t.prototype.SetLabels = function() {
                    this.SkillNameLabel.string = this._skillId.ToHeroSkillName(), this.SkillDescriptionLabel.string = this._skillId.ToHeroSkillDesc()
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_LUCKYCHARM_SELECT_SKILL, this.OnSelectedChanged, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_LUCKYCHARM_SELECT_SKILL, this.OnSelectedChanged)
                }, t.prototype.OnSelectedChanged = function(e) {
                    this._skillId == e ? this.CheckMark.node.active = !0 : this.CheckMark.node.active && (this.CheckMark.node.active = !1)
                }, t.prototype.SetToGrey = function() {
                    u.UIUtlity.OnNodeGray(this.node), this.TouchArea.active = !1, this.CheckNode.active = !1
                }, t.prototype.OnCheckedTouch = function() {
                    this.CheckMark.node.active || l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_LUCKYCHARM_SELECT_SKILL, this._skillId)
                }, t.prototype.onDestroy = function() {
                    this._iconSpriteFrame && l.AssetsManager.Instance.UnloadAsset(this._iconSpriteFrame)
                }, i([f(cc.Sprite)], t.prototype, "SkillIcon", void 0), i([f(cc.Label)], t.prototype, "SkillNameLabel", void 0), i([f(cc.Label)], t.prototype, "SkillDescriptionLabel", void 0), i([f(cc.Node)], t.prototype, "CheckNode", void 0), i([f(cc.Sprite)], t.prototype, "CheckMark", void 0), i([f(cc.Node)], t.prototype, "TouchArea", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/LuckyCharmOrigionSkillPanel": "LuckyCharmOrigionSkillPanel"
    }],
    OuterMapComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ee71cpo+v5JQ6tOLBIyvx57", "OuterMapComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Consts"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../Panel/WorldMapPanel"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MapPlaceNode = null, t.Label = null, t._loadedAssets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Init = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this.Label.string = "<outline width = 3 color = #202434>" + "worldMap".ToUILocale() + "</outline>", e = u.ConfigCacheComponent.Instance.IsFinalMap(u.DataCenter.Instance.GetIntData(p.UserDataKey.MainLineProgress)), t = u.ConfigCacheComponent.Instance.GetAreaIdByMapId(e), o = u.ConfigDataComponent.Instance.GetConfigById(d.MapWorld_Config, t), r = o.OwningMap > 1 ? h.default.CityChangeIds[t] ? h.default.CityChangeIds[t].Name : t.toString() : n.AreaIdToName[t], [4, l.AssetsManager.Instance.LoadAsset("WorldMapPanel/PNG/WorldMap", cc.SpriteAtlas)];
                                case 1:
                                    return i = a.sent(), this.isValid ? (this._loadedAssets.push(i), this.MapPlaceNode.spriteFrame = i.getSpriteFrame(r), [2]) : (l.AssetsManager.Instance.UnloadAsset(i), [2])
                            }
                        })
                    })
                }, t.prototype.GetCurrentChapter = function() {
                    var e = u.DataCenter.Instance.GetIntData(p.UserDataKey.MainLineProgress),
                        t = u.ConfigCacheComponent.Instance.GetChapterIdByMapId(e),
                        n = u.ConfigCacheComponent.Instance.GetAreaIdByChapterId(t),
                        o = u.ConfigDataComponent.Instance.GetLocale("MapWorld_name_" + n),
                        r = u.ConfigCacheComponent.Instance.GetLevelIndexByMapId(e);
                    this.Label.string = "<outline width = 3 color = 221611>" + o + " <color = 00ffff>" + t + "-" + r + "</>"
                }, t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this), this.Init()
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchEnd, this)
                }, t.prototype.OnTouchEnd = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.WorldMapPanel.Path)
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e])
                }, t.AreaIdToName = ["", "town1", "forest2", "castle3", "crystalCave4", "snowField5", "cave6", "ruins7", "ForestOfFog8", "grassland9", "highland10", "demonForest11", "shore12", "desert13", "wilderness14", "darkcitt15"], i([g(cc.Sprite)], t.prototype, "MapPlaceNode", void 0), i([g(cc.RichText)], t.prototype, "Label", void 0), n = i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Panel/WorldMapPanel": "WorldMapPanel"
    }],
    PRRewardListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a30dfgc0uZC8p7U14YTicjg", "PRRewardListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../Components/ItemComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelLabel = null, t.NoRatingLabel = null, t.ItemContainer = null, t.LevelLogo = null, t._items = [], t._iconNames = ["", "rank_no1", "rank_no2", "rank_no3"], t
                }
                return r(t, e), t.prototype.SetLevel = function(e) {
                    return e > 3 ? (this.LevelLabel.node.active = !0, this.LevelLogo.node.active = !1, this.NoRatingLabel.node.active = !1, this.LevelLabel.string = e.toString()) : e >= 1 ? (this.LevelLabel.node.active = !1, this.LevelLogo.node.active = !0, this.NoRatingLabel.node.active = !1, this.LevelLogo.spriteFrame = l.UIUtlity.COMMON_ATLAS4.getSpriteFrame(this._iconNames[e])) : e > 0 ? (this.LevelLabel.node.active = !0, this.LevelLogo.node.active = !1, this.NoRatingLabel.node.active = !1, this.LevelLabel.string = 100 * e + "%") : (this.LevelLabel.node.active = !1, this.LevelLogo.node.active = !1, this.NoRatingLabel.node.active = !0, this.NoRatingLabel.string = "openServer_heroTest_noRatingYet".ToUILocale()), this.ItemContainer.active = !this.NoRatingLabel.node.active, this
                }, t.prototype.SetTagLabel = function(e) {
                    this.LevelLabel.string = e
                }, t.prototype.SetItems = function(e, t) {
                    if (null == e && (e = []), this._items.length > e.length) {
                        for (var n = 0; n < e.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = e.length; n < this._items.length; n++) this._items[n].node.active = !1, t.Put(this._items[n].node);
                        this._items.length = e.length
                    } else {
                        for (n = 0; n < this._items.length; n++) this._items[n].node.active = !0, this.SetItem(n, e[n].Items);
                        for (n = this._items.length; n < e.length; n++) {
                            var o = t.Get();
                            o.active = !0, o.setParent(this.ItemContainer), this._items[n] = o.getComponent(c.ItemComponent), this.SetItem(n, e[n].Items)
                        }
                    }
                    return this
                }, t.prototype.SetItem = function(e, t) {
                    var n = s.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, t[0]);
                    this._items[e].Init({
                        ItemId: t[0],
                        Count: t[1]
                    }, n.Star ? c.ItemComponentType.ItemWithStar : c.ItemComponentType.ItemCommon)
                }, i([d(cc.Label)], t.prototype, "LevelLabel", void 0), i([d(cc.Label)], t.prototype, "NoRatingLabel", void 0), i([d(cc.Node)], t.prototype, "ItemContainer", void 0), i([d(cc.Sprite)], t.prototype, "LevelLogo", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PWAManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b9f16L0DHlAQZFVl2KLDgTX", "PWAManager");
        var o = this && this.__decorate || function(e, t, n, o) {
            var r, i = arguments.length,
                a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
            if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
            else
                for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
            return i > 3 && a && Object.defineProperty(t, n, a), a
        };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var r = cc._decorator,
            i = r.ccclass,
            a = (r.property, function() {
                function e() {}
                return e.AddToHome = function() {
                    var e = window.addToHome;
                    e && (this.IsPWAInstalled() || this.IsSidebarPWA() || e(function() {}))
                }, e.CanInstallPWA = function() {
                    return !(!window.addToHome || this.IsPWAInstalled() || this.IsSidebarPWA())
                }, e.IsPWAInstalled = function() {
                    return window.matchMedia("(display-mode: window-controls-overlay)").matches || window.matchMedia("(display-mode: standalone)").matches
                }, e.IsSidebarPWA = function() {
                    return !!navigator.userAgentData && navigator.userAgentData.brands.some(function(e) {
                        return "Edge Side Panel" === e.brand
                    })
                }, e.GetBrowserName = function() {
                    var e = navigator.userAgent;
                    return e.indexOf("Opera") > -1 || e.indexOf("OPR") > -1 ? this.Browser_Opera : e.indexOf("compatible") > -1 && e.indexOf("MSIE") > -1 ? this.Browser_IE : e.indexOf("Edg") > -1 ? this.Browser_Edge : e.indexOf("Firefox") > -1 ? this.Browser_Firefox : e.indexOf("QQBrowser") > -1 ? this.Browser_QQBrowser : e.indexOf("UCBrowser") > -1 ? this.Browser_UCBrowser : e.indexOf("Safari") > -1 && -1 == e.indexOf("Chrome") ? this.Browser_Safari : e.indexOf("Chrome") > -1 && e.indexOf("Safari") > -1 ? this.Browser_Chrome : "Nobody"
                }, e.Browser_Opera = "Opera", e.Browser_IE = "IE", e.Browser_Edge = "Edge", e.Browser_Firefox = "Firefox", e.Browser_QQBrowser = "QQBrowser", e.Browser_UCBrowser = "UCBrowser", e.Browser_Safari = "Safari", e.Browser_Chrome = "Chrome", o([i], e)
            }());
        n.default = a, cc._RF.pop()
    }, {}],
    PackListComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "49bfaJ4IotFUZjF4NcpAE67", "PackListComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/DataCenter"),
            d = e("../Panel/NodePool"),
            h = e("./CustomLayout"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/RpcComponent"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../../Consts/Consts"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../../Consts/Consts"),
            C = e("./SevenDayGiftListItem"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PackLayout = null, t._packs = [], t._activityModel = null, t.PackIdMap = {}, t._needAsset = {
                        itemPrefab: {
                            cache: null,
                            loadFunction: function() {
                                return l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent)
                            }
                        },
                        packPrefab: {
                            cache: null,
                            loadFunction: function() {
                                return l.AssetsManager.Instance.LoadAsset("SevenDayCelebrationPanel/SevenDayGiftListItem")
                            }
                        }
                    }, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return l.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_PAY_SUCCESS, this.PaySuccess, this), [2]
                        })
                    })
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_MALL_BUTTONCLICK, this.OnButtonClick, this), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_PAY_SUCCESS, this.PaySuccess, this)
                }, t.prototype.onDestroy = function() {
                    var e;
                    this.unscheduleAllCallbacks(), this.UnloadNeedAsset(), null === (e = this._itemPool) || void 0 === e || e.Clear()
                }, t.prototype.Init = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._activityId = e, this._packs = t, this._activityModel = p.DataCenter.Instance.GetDataById(f.UserActivity_Model, this._activityId), [4, this.LoadNeedAsset()];
                                case 1:
                                    return o.sent(), this._itemPool || (this._itemPool = new d.default(this._needAsset.itemPrefab.cache)), this.SortPacks(), this.PackLayout.Init(this._needAsset.packPrefab.cache), this._packs.forEach(function(e) {
                                        n.PackIdMap[e.Id] = e
                                    }), this.PackLayout.RenderLayOut(this._packs.length), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.PackLayout && e.forEach(function(e, t) {
                        var o = e.getComponent(C.default),
                            r = n._packs[t];
                        o.SetTitle(r.Name, "openServer_carnival_needVip".ToUILocale().Fmt(r.Unlock[0] ? r.Unlock[0].Items[1] : 0), r.Id, I.default.Instance.CheckPackPayUnlock(r.Unlock), r.Unlock.length > 0).SetItems(r.Items, n._itemPool).SetPrice2(r).SetPurchaseLimit(n._activityModel.Packs[r.Id].Items[0], r.LimitCount)
                    })
                }, t.prototype.OnButtonClick = function(e) {
                    var t = this,
                        n = this.PackIdMap[e];
                    if (I.default.Instance.CheckPackPayUnlock(n.Unlock))
                        if (n.Money > 0) {
                            if (n.PayId) return void I.default.Instance.SendBuyGiftPackRequest(n, this._activityId);
                            if (n.Money > p.DataCenter.Instance.GetItemCount(m.CommonItemId.Diamond)) return void g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(m.CommonItemId.Diamond.ToItemName()));
                            g.UIUtlity.ShowHintPanel(null, "mall_query_costDiamondBuy".ToUILocale().Fmt(n.Money, n.Name), "cancel".ToUILocale(), null, "ok".ToUILocale(), function() {
                                I.default.Instance.SendBuyGiftPackRequest(n, t._activityId)
                            })
                        } else I.default.Instance.SendBuyGiftPackRequest(n, this._activityId);
                    else l.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, _.CommonItemId.VipPoint)
                }, t.prototype.GetGift = function(e) {
                    var t = this,
                        n = new f.Req_Activity_CarnivalBuyPack;
                    n.ActivityId = this._activityId, n.PackId = e, y.RpcComponent.Instance.Call(n, function(e) {
                        g.UIUtlity.ShwDisplayRewardPanel(e.Rewards), t.PaySuccess()
                    })
                }, t.prototype.PaySuccess = function() {
                    this.isValid && (this._activityModel = p.DataCenter.Instance.GetDataById(f.UserActivity_Model, this._activityId), this.SortPacks(), this.PackLayout.RenderLayOut(this._packs.length))
                }, t.prototype.SortPacks = function() {
                    var e = this;
                    this._packs.sort(function(t, n) {
                        return null != e._activityModel.Packs[t.Id] && e._activityModel.Packs[t.Id].Items[0] >= t.LimitCount ? 1 : null != e._activityModel.Packs[n.Id] && e._activityModel.Packs[n.Id].Items[0] >= n.LimitCount ? -1 : t.Id - n.Id
                    })
                }, t.prototype.LoadNeedAsset = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return 0 === (e = Object.values(this._needAsset).filter(function(e) {
                                        return !e.cache
                                    })).length ? [2] : (t = e.map(function(e) {
                                        return e.loadFunction()
                                    }), [4, Promise.all(t).then(function(t) {
                                        n.isValid ? e.forEach(function(e, n) {
                                            e.cache = t[n]
                                        }) : t.forEach(function(e) {
                                            l.AssetsManager.Instance.UnloadAsset(e)
                                        })
                                    })]);
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.UnloadNeedAsset = function() {
                    Object.values(this._needAsset).forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e.cache)
                    })
                }, i([S(h.default)], t.prototype, "PackLayout", void 0), i([b], t)
            }(cc.Component);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/NodePool": "NodePool",
        "./CustomLayout": "CustomLayout",
        "./SevenDayGiftListItem": "SevenDayGiftListItem"
    }],
    PanelBottomToggles: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f7a95G94uJJyKpSIV/XTLvr", "PanelBottomToggles");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Content = null, t.ScrollView = null, t.Arrow = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Content.children.length > 0 && this.RefreshUIStyle()
                }, t.prototype.RefreshUIStyle = function() {
                    var e = 0;
                    this.Content.getComponent(cc.Layout).updateLayout(), this.Content.children.forEach(function(t) {
                        t.active && e++
                    }), e > 4 ? (this.ScrollView.node.x = 456, this.ScrollView.node.width = 830, this.ScrollView.enabled = !0, this.ScrollView.scrollToLeft()) : (this.ScrollView.node.x = 540, this.ScrollView.node.width = 914, this.ScrollView.enabled = !1, this.Content.x = 0), this.Arrow.active = e > 4
                }, i([l(cc.Node)], t.prototype, "Content", void 0), i([l(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([l(cc.Node)], t.prototype, "Arrow", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    ParanormalPuzzleAttrPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d46cc/XH85Eg4v54rIgcnjr", "ParanormalPuzzleAttrPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/HeroAttributeItem"),
            h = e("./PuzzleStageComponent"),
            f = e("./PuzzleStageItemComponent"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !1), t.Title = null, t.ScoreDesc = null, t.Score = null, t.AttrTitle = null, t.Attrs = [], t.ExtraTitle = null, t.Layout = null, t.NoAttrLabel = null, t._unlockItemNode = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ParanormalPuzzlePanel/Components/PuzzleStageItemComponent", cc.Prefab)];
                                case 1:
                                    return t._stageItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "puzzle_attr".ToUILocale(), this.ScoreDesc.string = "puzzle_curScore".ToUILocale(), this.AttrTitle.string = "puzzle_attr_up".ToUILocale(), this.ExtraTitle.string = "puzzle_extra_attr_up".ToUILocale(), this.NoAttrLabel.string = "CollectionPavilion_Tip_UnAttr".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._config = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this._model = u.DataCenter.Instance.GetDataById(c.ParanormalPuzzle_Model, this._config.Id), this.SetTopNode(), this.SetAttrNode(), this.SetExtrAttrNode(), [2]
                        })
                    })
                }, t.prototype.SetTopNode = function() {
                    this.Score.string = this._model.Score.toString()
                }, t.GetStageAttrs = function(e) {
                    var t = [];
                    if (e) {
                        var n = {};
                        for (var o in e.Items.forEach(function(e) {
                                var t = e.Items[0];
                                u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, t).Attrs.forEach(function(e) {
                                    n[e.Items[0]] ? n[e.Items[0]] += e.Items[1] : n[e.Items[0]] = e.Items[1]
                                })
                            }), n) {
                            var r = [Number(o), n[o]];
                            t.push(r)
                        }
                    }
                    return t
                }, t.prototype.SetAttrNode = function() {
                    var e = h.default.GetStageAttrs(this._model);
                    this.NoAttrLabel.node.active = 0 == e.length, this.Attrs.forEach(function(t, n) {
                        e[n] ? (t.node.active = !0, t.Init(e[n][0], e[n][1]), t.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())) : t.node.active = !1
                    })
                }, t.GetExtraAttrData = function(e, t) {
                    var n = [];
                    return e.Attrs.length > 0 && e.Attrs.forEach(function(e) {
                        var o = u.ConfigDataComponent.Instance.GetConfigById(l.PuzzleStageAttr_Config, e);
                        switch (o.Unlock[0].Items[0]) {
                            case h.PuzzleStageExtraAttrUnlockType.Score:
                                (r = {}).Title = "puzzle_limit_score".ToUILocale().Fmt(o.Unlock[0].Items[1]), r.IsUnlock = t.Score >= o.Unlock[0].Items[1], r.Attrs = o.Attrs, n.push(r);
                                break;
                            case h.PuzzleStageExtraAttrUnlockType.Full:
                                (r = {}).Title = "puzzle_limit_all".ToUILocale(), r.IsUnlock = t.IsFull, r.Attrs = o.Attrs, n.push(r);
                                break;
                            case h.PuzzleStageExtraAttrUnlockType.FullAndScore:
                                var r;
                                (r = {}).Title = "puzzle_limit_score_all".ToUILocale().Fmt(o.Unlock[0].Items[1]), r.IsUnlock = t.IsFull && t.Score >= o.Unlock[0].Items[1], r.Attrs = o.Attrs, n.push(r)
                        }
                    }), n
                }, t.prototype.SetExtrAttrNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function() {
                            return this._unlockItemNode.forEach(function(e) {
                                e.active = !1
                            }), h.default.GetExtraAttrData(this._config, this._model).forEach(function(t, n) {
                                if (!e._unlockItemNode[n]) {
                                    var o = cc.instantiate(e._stageItemPrefab);
                                    o.parent = e.Layout.node, o.scale = 1.2, o.x = -65, e._unlockItemNode[n] = o
                                }
                                e._unlockItemNode[n].active = !0, e._unlockItemNode[n].getComponent(f.default).Init(t)
                            }), [2]
                        })
                    })
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Label)], t.prototype, "ScoreDesc", void 0), i([m(cc.Label)], t.prototype, "Score", void 0), i([m(cc.Label)], t.prototype, "AttrTitle", void 0), i([m(d.default)], t.prototype, "Attrs", void 0), i([m(cc.Label)], t.prototype, "ExtraTitle", void 0), i([m(cc.Layout)], t.prototype, "Layout", void 0), i([m(cc.Label)], t.prototype, "NoAttrLabel", void 0), i([g], t)
            }(p.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Components/HeroAttributeItem": "HeroAttributeItem",
        "./PuzzleStageComponent": "PuzzleStageComponent",
        "./PuzzleStageItemComponent": "PuzzleStageItemComponent"
    }],
    ParanormalPuzzleBagPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2c287aGI8JC0r1m/TNHdXr2", "ParanormalPuzzleBagPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("./PuzzleSelectComponent"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Components/ItemComponent"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Auxiliary/UIUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !0), t.Title = null, t.PuzzleSelectComponent = null, t.CustomLayout = null, t.DeComposeButton = null, t.DeComposeLabel = null, t._initLayout = !0, t._selectStages = [], t._selectQualitys = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_PARANORMAL_PUZZLE_SELECT, this.RefreshSelect, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_CLOSE_PUZZLE_SELECT_TIP, this.HideSelectComponent, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_PARANORMAL_PUZZLE_SELECT, this.RefreshSelect, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_CLOSE_PUZZLE_SELECT_TIP, this.HideSelectComponent, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "puzzle_bag".ToUILocale(), this.DeComposeLabel.string = "puzzle_decompose".ToUILocale(), this.DeComposeButton.node.on("click", this.ClickDeComposeButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetItemDatas(), this.SetItemList(), this.SetPuzzleSelectComponent()
                }, t.prototype.SetItemDatas = function() {
                    var e = this;
                    if (this._itemModels = [], this._selectItemModels = [], u.ConfigDataComponent.Instance.GetArrayConfig(l.ItemPuzzle_Config).forEach(function(t) {
                            var n = u.DataCenter.Instance.GetDataById(c.UserItem_Model, t.Id);
                            n && n.Count > 0 && e._itemModels.push(n)
                        }), this._itemModels.sort(function(e, t) {
                            var n = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, e.ItemId),
                                o = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, t.ItemId),
                                r = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, e.ItemId),
                                i = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, t.ItemId);
                            return n.Stage == o.Stage ? i.Quality - r.Quality : o.Stage - n.Stage
                        }), this._selectStages.length > 0 || this._selectQualitys.length > 0)
                        for (var t = 0; t < this._itemModels.length; t++) {
                            var o = this._itemModels[t],
                                r = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, o.ItemId);
                            if (!(this._selectStages.length > 0) || this._selectStages.includes(r.Stage - 1)) {
                                if (this._selectQualitys.length > 0) {
                                    var i = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, o.ItemId);
                                    if (!this._selectQualitys.includes(n.MaxQuality - i.Quality)) continue
                                }
                                var a = u.DataCenter.Instance.GetDataById(c.UserItem_Model, o.ItemId);
                                a && a.Count > 0 && this._selectItemModels.push(a)
                            }
                        } else this._selectItemModels = this._itemModels
                }, t.prototype.SetItemList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._itemPrefab, !0), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._selectItemModels.length)
                }, t.prototype.SetPuzzleSelectComponent = function() {
                    var e = 0;
                    u.ConfigDataComponent.Instance.GetArrayConfig(l.PuzzleStage_Config).forEach(function(t) {
                        e = Math.max(t.Stage, e)
                    });
                    var t = [],
                        o = {};
                    o.Title = "puzzle_stage".ToUILocale(), o.Items = [], o.SelectIndexs = this._selectStages;
                    for (var r = 0; r < e; r++) o.Items.push("puzzle_stage_number".ToUILocale().Fmt((r + 1).toString()));
                    t.push(o);
                    var i = {};
                    for (i.Title = "puzzle_level".ToUILocale(), i.Items = [], i.SelectIndexs = this._selectQualitys, r = n.MaxQuality; r >= 2; r--) i.Items.push(("paraPuzzle_quality" + r).ToUILocale());
                    t.push(i), this.PuzzleSelectComponent.Init(t, this.node)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        t >= n._selectItemModels.length ? e.getComponent(y.ItemComponent).SetItemSimpleState() : e.getComponent(y.ItemComponent).Init(n._selectItemModels[t])
                    })
                }, t.prototype.RefreshSelect = function(e, t, n) {
                    this.PuzzleSelectComponent == e && (0 == t ? this._selectStages = n : 1 == t && (this._selectQualitys = n), this.SetUIContent())
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.CustomLayout.node.children.indexOf(t) && t.getComponent(y.ItemComponent).ItemId > 0 && m.UIUtlity.ShowItemTip(t.getComponent(y.ItemComponent).ItemId, t)
                }, t.prototype.HideSelectComponent = function(e) {
                    this.PuzzleSelectComponent == e && this.PuzzleSelectComponent.HideSelectNode()
                }, t.prototype.ClickDeComposeButton = function() {
                    p.UIManager.Instance.ShowUIPanel(g.PanelConfig.ParanormalPuzzleDeComposePanel.Path)
                }, t.MaxQuality = 7, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(d.default)], t.prototype, "PuzzleSelectComponent", void 0), i([C(h.default)], t.prototype, "CustomLayout", void 0), i([C(cc.Button)], t.prototype, "DeComposeButton", void 0), i([C(cc.Label)], t.prototype, "DeComposeLabel", void 0), n = i([_], t)
            }(p.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./PuzzleSelectComponent": "PuzzleSelectComponent"
    }],
    ParanormalPuzzleComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e984cqbO2xL04gSTb23j+Fi", "ParanormalPuzzleComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("./PuzzleDetailComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./AttrTotalComponent"),
            m = e("./PuzzleStageComponent"),
            I = e("./ShopUIPanel"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../../ShareConsts/EnumType"),
            v = e("../../RedDot/RedDotManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ScrollView = null, t.CustomLayout = null, t.TaskButton = null, t.TaskLabel = null, t.BagButton = null, t.BagLabel = null, t.ShopButton = null, t.ShopLabel = null, t.PreviewButton = null, t.PreviewLabel = null, t.AttrTotalNode = null, t._isInit = !1, t._initLayout = !0, t._assets = [], t._configs = [], t._isShowTotalAttr = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_CLOSE_ATTRTOTAL_COMPONENT, this.HideAttrTotalComponent, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CLOSE_ATTRTOTAL_COMPONENT, this.HideAttrTotalComponent, this)
                }, t.prototype.Init = function() {
                    this.InitButtons(), this.SetPuzzleList(), this.SetAttrTotalNode(), this.SetRedDot()
                }, t.prototype.InitButtons = function() {
                    this._isInit || (this.BagLabel.string = "puzzle_bag_btn".ToUILocale(), this.ShopLabel.string = "puzzle_shop".ToUILocale(), this.PreviewLabel.string = "puzzle_all_attr_preview".ToUILocale(), this.TaskLabel.string = "btn_task".ToUILocale(), this.BagButton.node.on("click", this.ClickBagButton, this), this.ShopButton.node.on("click", this.ClickShopButton, this), this.PreviewButton.node.on("click", this.ClickPreviewButton, this), this.TaskButton.node.on("click", this.ClickTaskButton, this), this._isInit = !0, this.InitData())
                }, t.prototype.InitData = function() {
                    var e = this;
                    u.ConfigDataComponent.Instance.GetArrayConfig(l.PuzzleGroup_Config).forEach(function(t) {
                        e._configs.push(t)
                    }), this._configs.sort(function(e, t) {
                        return e.SortId - t.SortId
                    }), this._groupConfigs = {}, u.ConfigDataComponent.Instance.GetArrayConfig(l.PuzzleStage_Config).forEach(function(t) {
                        e._groupConfigs[t.GroupId] ? e._groupConfigs[t.GroupId].push(t) : e._groupConfigs[t.GroupId] = [t]
                    })
                }, t.prototype.SetPuzzleList = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._puzzleDetailPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleDetailComponent", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._assets.push(e), this._puzzleDetailPrefab = e, t.label = 2;
                                case 2:
                                    return this._initLayout && (this.CustomLayout.Init(this._puzzleDetailPrefab), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._configs.length), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(f.default).Init(n._configs[t], n._groupConfigs[n._configs[t].Id])
                    })
                }, t.prototype.HideAttrTotalComponent = function(e) {
                    this.AttrTotalNode.children.indexOf(e.node) > -1 && (this._isShowTotalAttr = !1, this.AttrTotalNode.active = !1)
                }, t.prototype.GetTotolAttrData = function() {
                    var e = {},
                        t = [],
                        n = u.ConfigDataComponent.Instance.GetArrayConfig(l.PuzzleStage_Config);
                    for (var o in n.forEach(function(t) {
                            var n = u.DataCenter.Instance.GetDataById(c.ParanormalPuzzle_Model, t.Id);
                            if (n) {
                                var o = m.default.GetStageAttrs(n),
                                    r = m.default.GetExtraAttrData(t, n);
                                o.forEach(function(t) {
                                    e[t[0]] ? e[t[0]] += t[1] : e[t[0]] = t[1]
                                }), r.forEach(function(t) {
                                    t.IsUnlock && t.Attrs.forEach(function(t) {
                                        e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1]
                                    })
                                })
                            }
                        }), e) {
                        var r = {};
                        r.AttrId = Number(o), r.AttrValue = e[o], t.push(r)
                    }
                    return t
                }, t.prototype.SetAttrTotalNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this.AttrTotalNode.active = this._isShowTotalAttr, this._isShowTotalAttr ? this._totaAttrPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ItemsComponent/AttrTotalComponent", cc.Prefab)] : [3, 3];
                                case 1:
                                    if (e = r.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._assets.push(e), this._totaAttrPrefab = e, r.label = 2;
                                case 2:
                                    this._totaAttrNode || (this._totaAttrNode = cc.instantiate(this._totaAttrPrefab), this._totaAttrNode.parent = this.AttrTotalNode), t = this.GetTotolAttrData(), (n = {}).Title = "puzzle_all_attr_preview".ToUILocale(), n.Attrs = t, (o = this._totaAttrNode.getComponent(g.default)).Init(n, this.node), o.SetNodeWidth(440), r.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetRedDot = function() {
                    v.RedDotManager.Instance.Bind(this.TaskButton.node, v.RedDotManager.Instance.RedDot.ParanormalPuzzleTask)
                }, t.prototype.ClickBagButton = function() {
                    p.UIManager.Instance.ShowUIPanel(y.PanelConfig.ParanormalPuzzleBagPanel.Path)
                }, t.prototype.ClickShopButton = function() {
                    p.UIManager.Instance.ShowUIPanel(y.PanelConfig.ShopPanel.Path, 4, I.ShopType.ParanormalPuzzle)
                }, t.prototype.ClickPreviewButton = function() {
                    this._isShowTotalAttr = !this._isShowTotalAttr, this.SetAttrTotalNode()
                }, t.prototype.ClickTaskButton = function() {
                    var e = _.default.Instance.GetTaskBaseConfigByType(C.TaskType.ParanormalPuzzle),
                        t = {
                            IsActivity: !1
                        };
                    t.Title = "btn_task".ToUILocale(), t.FeatureTasks = e, t.HideAllPanels = !1, p.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonTaskPanel.Path, [t])
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    }), this._puzzleDetailPrefab = null
                }, i([w(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([w(d.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Button)], t.prototype, "TaskButton", void 0), i([w(cc.Label)], t.prototype, "TaskLabel", void 0), i([w(cc.Button)], t.prototype, "BagButton", void 0), i([w(cc.Label)], t.prototype, "BagLabel", void 0), i([w(cc.Button)], t.prototype, "ShopButton", void 0), i([w(cc.Label)], t.prototype, "ShopLabel", void 0), i([w(cc.Button)], t.prototype, "PreviewButton", void 0), i([w(cc.Label)], t.prototype, "PreviewLabel", void 0), i([w(cc.Node)], t.prototype, "AttrTotalNode", void 0), i([S], t)
            }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/CustomLayout": "CustomLayout",
        "./AttrTotalComponent": "AttrTotalComponent",
        "./PuzzleDetailComponent": "PuzzleDetailComponent",
        "./PuzzleStageComponent": "PuzzleStageComponent",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    ParanormalPuzzleDeComposePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "65402wCcJJOxpldoZ+D1c95", "ParanormalPuzzleDeComposePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("./PuzzleSelectComponent"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("./PuzzleFragmentInfoComponent"),
            g = e("../Components/SliderComponent"),
            m = e("./ParanormalPuzzleBagPanel"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Auxiliary/UIUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !0), t.Title = null, t.Desc = null, t.PuzzleSelectComponent = null, t.ScrollView = null, t.CustomLayout = null, t.NoPuzzleLabel = null, t.DeComposeButton = null, t.DeComposeLabel = null, t.SliderComponent = null, t.Count = null, t.QuickButton = null, t.QuickLabel = null, t._initLayout = !0, t._selectStages = [], t._selectQualitys = [], t._selectIndex = -1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_PARANORMAL_PUZZLE_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_PARANORMAL_PUZZLE_SELECT, this.RefreshSelect, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_PARANORMAL_PUZZLE_CLOSE_HINT, this.OnUpdateSelectData, this), p.Game.EventDispatcher.On(f.EventKeys.EVENT_CLOSE_PUZZLE_SELECT_TIP, this.HideSelectComponent, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_PARANORMAL_PUZZLE_ITEM_CLICK, this.OnItemClick, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_PARANORMAL_PUZZLE_SELECT, this.RefreshSelect, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_SLIDER_DRAG_OVER, this.OnSliderDragOver, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_PARANORMAL_PUZZLE_CLOSE_HINT, this.OnUpdateSelectData, this), p.Game.EventDispatcher.Off(f.EventKeys.EVENT_CLOSE_PUZZLE_SELECT_TIP, this.HideSelectComponent, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ParanormalPuzzlePanel/Components/PuzzleFragmentInfoComponent", cc.Prefab)];
                                case 1:
                                    return t._itemInfoPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "puzzle_decompose".ToUILocale(), this.DeComposeLabel.string = "puzzle_decompose".ToUILocale(), this.QuickLabel.string = "puzzle_quick_decompose".ToUILocale(), this.NoPuzzleLabel.string = "puzzle_not_enough".ToUILocale(), this.Desc.string = "puzzle_select_decompose".ToUILocale(), this.DeComposeButton.node.on("click", this.ClickDeComposeButton, this), this.QuickButton.node.on("click", this.ClickQuickButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._selectItems = {}
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetItemDatas(), this.SetItemList(), this.SetSliderComponent(), this.SetPuzzleSelectComponent()
                }, t.prototype.SetItemDatas = function() {
                    var e = this;
                    if (this._itemModels = [], this._selectItemModels = [], u.ConfigDataComponent.Instance.GetArrayConfig(l.ItemPuzzle_Config).forEach(function(t) {
                            var n = u.DataCenter.Instance.GetDataById(c.UserItem_Model, t.Id);
                            n && n.Count > 0 && e._itemModels.push(n)
                        }), this._itemModels.sort(function(e, t) {
                            var n = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, e.ItemId),
                                o = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, t.ItemId),
                                r = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, e.ItemId),
                                i = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, t.ItemId);
                            return n.Stage == o.Stage ? r.Quality - i.Quality : n.Stage - o.Stage
                        }), this._selectStages.length > 0 || this._selectQualitys.length > 0)
                        for (var t = 0; t < this._itemModels.length; t++) {
                            var n = this._itemModels[t],
                                o = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, n.ItemId);
                            if (!(this._selectStages.length > 0) || this._selectStages.includes(o.Stage - 1)) {
                                if (this._selectQualitys.length > 0) {
                                    var r = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, n.ItemId);
                                    if (!this._selectQualitys.includes(m.default.MaxQuality - r.Quality)) continue
                                }
                                var i = u.DataCenter.Instance.GetDataById(c.UserItem_Model, n.ItemId);
                                i && i.Count > 0 && this._selectItemModels.push(i)
                            }
                        } else this._selectItemModels = this._itemModels
                }, t.prototype.SetItemList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._itemInfoPrefab), this._initLayout = !1), this.ScrollView.node.active = this._selectItemModels.length > 0, this.NoPuzzleLabel.node.active = 0 == this._selectItemModels.length, this._selectItemModels.length > 0 && this.CustomLayout.RenderLayOut(this._selectItemModels.length)
                }, t.prototype.SetSliderComponent = function() {
                    var e = !1;
                    if (this._selectIndex > -1) {
                        var t = this._selectItemModels[this._selectIndex].ItemId;
                        if (t > 0) {
                            e = !0;
                            var n = this._selectItems[t] > 0 ? this._selectItems[t] : 0,
                                o = this._selectItemModels[this._selectIndex].Count;
                            this.SliderComponent.SetUI(n, o, 0, !0), this.Count.string = n.toString()
                        }
                    }
                    e || (this.SliderComponent.SetUI(0, 0, 0), this.Count.string = "0")
                }, t.prototype.SetPuzzleSelectComponent = function() {
                    var e = 0;
                    u.ConfigDataComponent.Instance.GetArrayConfig(l.PuzzleStage_Config).forEach(function(t) {
                        e = Math.max(t.Stage, e)
                    });
                    var t = [],
                        n = {};
                    n.Title = "puzzle_stage".ToUILocale(), n.Items = [], n.SelectIndexs = this._selectStages;
                    for (var o = 0; o < e; o++) n.Items.push("puzzle_stage_number".ToUILocale().Fmt((o + 1).toString()));
                    t.push(n);
                    var r = {};
                    for (r.Title = "puzzle_level".ToUILocale(), r.Items = [], r.SelectIndexs = this._selectQualitys, o = m.default.MaxQuality; o >= 2; o--) r.Items.push(("paraPuzzle_quality" + o).ToUILocale());
                    t.push(r), this.PuzzleSelectComponent.Init(t, this.node)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.name = t.toString();
                        var o = e.getComponent(y.default);
                        o.Init(n._selectItemModels[t].ItemId);
                        var r = n._selectItemModels[t].ItemId,
                            i = n._selectItems[r] > 0 ? n._selectItems[r] : 0;
                        o.SetCount(!0, i), o.SetSelect(n._selectIndex == t)
                    })
                }, t.prototype.RefreshSelect = function(e, t, n) {
                    this.PuzzleSelectComponent == e && (0 == t ? this._selectStages = n : 1 == t && (this._selectQualitys = n), this._selectIndex = -1, this.SetUIContent())
                }, t.prototype.OnSliderDragOver = function(e) {
                    var t = this;
                    if (-1 != this._selectIndex) {
                        var n = this._selectItemModels[this._selectIndex].ItemId;
                        this._selectItems[n] = e, this.CustomLayout.node.children.forEach(function(n) {
                            Number.parseInt(n.name) == t._selectIndex && (n.getComponent(y.default).SetCount(!0, e), t.Count.string = e.toString())
                        })
                    }
                }, t.prototype.OnItemClick = function(e) {
                    var t = this;
                    if (-1 != this.CustomLayout.node.children.indexOf(e)) {
                        var n = Number.parseInt(e.name);
                        this._selectIndex != n && (this.CustomLayout.node.children.forEach(function(e) {
                            var o = Number.parseInt(e.name);
                            o == n ? e.getComponent(y.default).SetSelect(!0) : o == t._selectIndex && e.getComponent(y.default).SetSelect(!1)
                        }), this._selectIndex = n, this.SetSliderComponent())
                    }
                }, t.prototype.OnUpdateSelectData = function() {
                    this._selectItems = {}, this._selectIndex = -1
                }, t.prototype.HideSelectComponent = function(e) {
                    this.PuzzleSelectComponent == e && this.PuzzleSelectComponent.HideSelectNode()
                }, t.prototype.ClickDeComposeButton = function() {
                    var e = [];
                    for (var t in this._selectItems)
                        if (this._selectItems[t] > 0) {
                            var n = new c.IntArray;
                            n.Items = [Number(t), this._selectItems[t]], e.push(n)
                        } e.length > 0 ? p.UIManager.Instance.ShowUIPanel(I.PanelConfig.ParanormalPuzzleHintPanel.Path, e) : _.UIUtlity.ShowFloatingHint("puzzle_decompose_tip".ToUILocale())
                }, t.prototype.ClickQuickButton = function() {
                    p.UIManager.Instance.ShowUIPanel(I.PanelConfig.ParanormalPuzzleQuickPanel.Path)
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Label)], t.prototype, "Desc", void 0), i([b(d.default)], t.prototype, "PuzzleSelectComponent", void 0), i([b(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([b(h.default)], t.prototype, "CustomLayout", void 0), i([b(cc.Label)], t.prototype, "NoPuzzleLabel", void 0), i([b(cc.Button)], t.prototype, "DeComposeButton", void 0), i([b(cc.Label)], t.prototype, "DeComposeLabel", void 0), i([b(g.default)], t.prototype, "SliderComponent", void 0), i([b(cc.Label)], t.prototype, "Count", void 0), i([b(cc.Button)], t.prototype, "QuickButton", void 0), i([b(cc.Label)], t.prototype, "QuickLabel", void 0), i([v], t)
            }(p.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/SliderComponent": "SliderComponent",
        "./ParanormalPuzzleBagPanel": "ParanormalPuzzleBagPanel",
        "./PuzzleFragmentInfoComponent": "PuzzleFragmentInfoComponent",
        "./PuzzleSelectComponent": "PuzzleSelectComponent"
    }],
    ParanormalPuzzleHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "85af4Zpw95JrbnO64NDh9DC", "ParanormalPuzzleHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./PuzzleFragmentInfoComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/ItemComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Title = null, t.Desc1 = null, t.Desc2 = null, t.Desc3 = null, t.HintNode = null, t.CustomLayout = null, t.ScrollView = null, t.Layout = null, t.CancleButton = null, t.CancleLabel = null, t.SureButton = null, t.SureLabel = null, t._initLayout = !0, t._materialNodes = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ParanormalPuzzlePanel/Components/PuzzleFragmentInfoComponent", cc.Prefab), this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        t._puzzleItemPrefab = e[0], t._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "puzzle_check".ToUILocale(), this.Desc1.string = "puzzle_show_decompose".ToUILocale(), this.Desc3.string = "puzzle_get_decompose".ToUILocale(), this.CancleLabel.string = "cancel".ToUILocale(), this.SureLabel.string = "puzzle_sure".ToUILocale(), this.CancleButton.node.on("click", this.ClickCancleButton, this), this.SureButton.node.on("click", this.ClickSureButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._items = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetHintNode(), this.SetPuzzleList(), this.SetMaterialData(), this.SetMaterialList()
                }, t.prototype.SetHintNode = function() {
                    for (var e = u.ConfigDataComponent.Instance.GetGlobalSettingByKey("ParanormalPuzzleHintQuality"), t = !1, n = 0; n < this._items.length; n++)
                        if (u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, this._items[n].Items[0]).Quality >= e) {
                            t = !0;
                            break
                        } this.HintNode.active = t, t && (this.Desc2.string = "puzzle_limit_level".ToUILocale().Fmt(e))
                }, t.prototype.SetPuzzleList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._puzzleItemPrefab), this._initLayout = !1), this.CustomLayout.RenderLayOut(this._items.length)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.name = t.toString(), e.getComponent(f.default).Init(n._items[t].Items[0], n._items[t].Items[1])
                    })
                }, t.prototype.SetMaterialData = function() {
                    var e = this;
                    this._materials = {}, this._items.forEach(function(t) {
                        var n = t.Items[0];
                        u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, n).DecomposeItems.forEach(function(n) {
                            var o = t.Items[1] * n.Items[1];
                            e._materials[n.Items[0]] ? e._materials[n.Items[0]] += o : e._materials[n.Items[0]] = o
                        })
                    })
                }, t.prototype.SetMaterialList = function() {
                    this._materialNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var e = 0;
                    for (var t in this._materials) {
                        if (!this._materialNodes[e]) {
                            var n = cc.instantiate(this._itemPrefab);
                            n.parent = this.Layout.node, n.y = -20, this._materialNodes[e] = n
                        }
                        this._materialNodes[e].active = !0, this._materialNodes[e].getComponent(g.ItemComponent).Init({
                            ItemId: Number(t),
                            Count: this._materials[t]
                        }), e++
                    }
                    this.ScrollView.enabled = e > 4
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.Layout.node.children.indexOf(t) && m.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
                }, t.prototype.ClickCancleButton = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.ClickSureButton = function() {
                    var e = new c.Req_Item_DecomposeHeroPiece;
                    e.Items = this._items, u.RpcComponent.Instance.Call(e, function(e) {
                        p.Game.EventDispatcher.Emit(y.EventKeys.EVENT_PARANORMAL_PUZZLE_CLOSE_HINT), p.UIManager.Instance.BackUIPanel(), m.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Label)], t.prototype, "Desc1", void 0), i([C(cc.Label)], t.prototype, "Desc2", void 0), i([C(cc.Label)], t.prototype, "Desc3", void 0), i([C(cc.Node)], t.prototype, "HintNode", void 0), i([C(d.default)], t.prototype, "CustomLayout", void 0), i([C(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([C(cc.Layout)], t.prototype, "Layout", void 0), i([C(cc.Button)], t.prototype, "CancleButton", void 0), i([C(cc.Label)], t.prototype, "CancleLabel", void 0), i([C(cc.Button)], t.prototype, "SureButton", void 0), i([C(cc.Label)], t.prototype, "SureLabel", void 0), i([_], t)
            }(p.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./PuzzleFragmentInfoComponent": "PuzzleFragmentInfoComponent"
    }],
    ParanormalPuzzleQuickPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ad5a4bnPlJOU4wOgUra8k6Z", "ParanormalPuzzleQuickPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("./PuzzleQuickComponent"),
            h = e("../../Auxiliary/GameRecord"),
            f = e("./ParanormalPuzzleBagPanel"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !0), t.Title = null, t.Desc = null, t.Layout = null, t.QuickButton = null, t.QuickLabel = null, t._quickNodes = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ParanormalPuzzlePanel/Components/PuzzleQuickComponent", cc.Prefab)];
                                case 1:
                                    return t._quickPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "puzzle_quick_decompose".ToUILocale(), this.Desc.string = "puzzle_select_auto_decompose".ToUILocale(), this.QuickLabel.string = "puzzle_quick_decompose".ToUILocale(), this.QuickButton.node.on("click", this.ClickQuickButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._maxStage = n.GetMaxStage()
                }, t.GetMaxStage = function() {
                    var e = 0;
                    return u.ConfigDataComponent.Instance.GetArrayConfig(l.PuzzleStage_Config).forEach(function(t) {
                        e = Math.max(t.Stage, e)
                    }), e
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this._quickNodes.forEach(function(e) {
                        e.active = !1
                    });
                    for (var e = 0; e < this._maxStage; e++) {
                        if (!this._quickNodes[e]) {
                            var t = cc.instantiate(this._quickPrefab);
                            t.parent = this.Layout.node, this._quickNodes[e] = t
                        }
                        this._quickNodes[e].active = !0, this._quickNodes[e].getComponent(d.default).Init(e + 1)
                    }
                }, t.GetQuickSetData = function(e, t) {
                    var o = h.default.GetItem(h.GameRecordDefine.ParanormalPuzzleQuickSet);
                    if (o) return 0 | JSON.parse(o)[e][t - 2];
                    for (var r = n.GetMaxStage(), i = {}, a = 1; a <= r; a++) {
                        for (var s = [], l = 1; l < f.default.MaxQuality; l++) s.push(0);
                        i[a] = s
                    }
                    return h.default.SetItem(h.GameRecordDefine.ParanormalPuzzleQuickSet, JSON.stringify(i)), 0
                }, t.SetQuickSetData = function(e, t, n) {
                    var o = h.default.GetItem(h.GameRecordDefine.ParanormalPuzzleQuickSet);
                    if (o) {
                        var r = JSON.parse(o);
                        r[e][t - 2] = n, h.default.SetItem(h.GameRecordDefine.ParanormalPuzzleQuickSet, JSON.stringify(r))
                    }
                }, t.prototype.ClickQuickButton = function() {
                    var e = [],
                        t = {},
                        o = !1;
                    for (var r in h.default.GetItem(h.GameRecordDefine.ParanormalPuzzleQuickSet) && u.ConfigDataComponent.Instance.GetArrayConfig(l.ItemPuzzle_Config).forEach(function(e) {
                            var r = u.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, e.Id);
                            if (1 == n.GetQuickSetData(e.Stage, r.Quality)) {
                                o = !0;
                                var i = u.DataCenter.Instance.GetDataById(c.UserItem_Model, e.Id);
                                i && i.Count > 0 && (t[e.Id] = i.Count)
                            }
                        }), t)
                        if (t[r] > 0) {
                            var i = new c.IntArray;
                            i.Items = [Number(r), t[r]], e.push(i)
                        } e.length > 0 ? p.UIManager.Instance.ShowUIPanel(g.PanelConfig.ParanormalPuzzleHintPanel.Path, e) : o ? y.UIUtlity.ShowFloatingHint("puzzle_no_checked".ToUILocale()) : y.UIUtlity.ShowFloatingHint("puzzle_decompose_tip".ToUILocale())
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "Desc", void 0), i([_(cc.Layout)], t.prototype, "Layout", void 0), i([_(cc.Button)], t.prototype, "QuickButton", void 0), i([_(cc.Label)], t.prototype, "QuickLabel", void 0), n = i([I], t)
            }(p.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ParanormalPuzzleBagPanel": "ParanormalPuzzleBagPanel",
        "./PuzzleQuickComponent": "PuzzleQuickComponent"
    }],
    ParanormalPuzzleSetPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bd3bcHX5p9AdKzW5f/J8gOJ", "ParanormalPuzzleSetPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ParanormalPuzzleSetMoveType = void 0;
        var l, c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../Components/CurrencyBarItem"),
            f = e("./PuzzleItemComponent"),
            y = e("./PuzzleSelectComponent"),
            g = e("../Components/CustomLayout"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("./ParanormalPuzzleBagPanel"),
            v = e("./PuzzleFragmentInfoComponent"),
            b = e("../../Auxiliary/GlobalDefine"),
            S = e("./ShopUIPanel"),
            w = e("./PuzzleBlockComponent"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.ItemBlock = 0] = "ItemBlock", e[e.PuzzleBlock = 1] = "PuzzleBlock"
        })(l = n.ParanormalPuzzleSetMoveType || (n.ParanormalPuzzleSetMoveType = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new d.UIPanelType(d.UINodeType.Fixed, !0), t.Title = null, t.RuleButton = null, t.CurrencyBars = [], t.ScoreDesc = null, t.Score = null, t.PuzzleItemNode = null, t.PuzzleLayout = null, t.HaveTitle = null, t.PuzzleSelectComponent = null, t.CustomLayout = null, t.NoPuzzleNode = null, t.NoPuzzleLabel = null, t.LeftButton = null, t.RightButton = null, t.BagButton = null, t.BagLabel = null, t.ShopButton = null, t.ShopLabel = null, t.PreviewButton = null, t.PreviewLabel = null, t.ReturnButton = null, t.ScrollBarEventNode = null, t.ScrollBarBgNode = null, t.ScrollBarNode = null, t.BlockMoveNode = null, t.AutoUpButton = null, t.AutoUpLabel = null, t.AutoDownButton = null, t.AutoDownLabel = null, t._initLayout = !0, t._showItemIds = [_.CommonItemId.PuzzleCoin], t._setNodes = [], t._selectQualitys = [], t._isStartMove = !1, t._offSet = new cc.Vec2(0, 0), t
            }
            return r(t, e), t.prototype.onEnable = function() {
                d.Game.EventDispatcher.On(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), d.Game.EventDispatcher.On(I.EventKeys.EVENT_PARANORMAL_PUZZLE_SELECT, this.RefreshSelect, this), d.Game.EventDispatcher.On(I.EventKeys.EVENT_CLOSE_PUZZLE_SELECT_TIP, this.HideSelectComponent, this), d.Game.EventDispatcher.On(I.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE_START, this.BlockMoveStart, this), d.Game.EventDispatcher.On(I.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE, this.BlockMove, this), d.Game.EventDispatcher.On(I.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE_END, this.BlockMoveEnd, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.ScrollBarEventNode.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this)
            }, t.prototype.onDisable = function() {
                d.Game.EventDispatcher.Off(I.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), d.Game.EventDispatcher.Off(I.EventKeys.EVENT_PARANORMAL_PUZZLE_SELECT, this.RefreshSelect, this), d.Game.EventDispatcher.Off(I.EventKeys.EVENT_CLOSE_PUZZLE_SELECT_TIP, this.HideSelectComponent, this), d.Game.EventDispatcher.Off(I.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE_START, this.BlockMoveStart, this), d.Game.EventDispatcher.Off(I.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE, this.BlockMove, this), d.Game.EventDispatcher.Off(I.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE_END, this.BlockMoveEnd, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.ScrollBarEventNode.off(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this)
            }, t.prototype.StarTouchEvent = function() {
                this._isStartMove = !0
            }, t.prototype.StarMoveEvent = function(e) {
                if (this._isStartMove) {
                    var t = e.getDelta(),
                        n = this.ScrollBarNode.y + t.y;
                    if (n < -this.ScrollBarBgNode.height + this.ScrollBarNode.height) {
                        this.ScrollBarNode.y = -this.ScrollBarBgNode.height + this.ScrollBarNode.height;
                        var o = new cc.Vec2(0, 0);
                        this.CustomLayout.ScrollView.scrollTo(o)
                    } else n >= 0 ? (this.ScrollBarNode.y = 0, o = new cc.Vec2(0, 1), this.CustomLayout.ScrollView.scrollTo(o)) : (this.ScrollBarNode.y = n, o = new cc.Vec2(0, 1 - n / (-this.ScrollBarBgNode.height + this.ScrollBarNode.height)), this.CustomLayout.ScrollView.scrollTo(o));
                    this.CustomLayout.OnScrolling()
                }
            }, t.prototype.TouchEndEvent = function() {
                this._isStartMove = !1
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ParanormalPuzzlePanel/Components/PuzzleFragmentInfoComponent", cc.Prefab), this.LoadDynamicAsset("ParanormalPuzzlePanel/Components/PuzzleSetComponent", cc.Prefab), this.LoadDynamicAsset("ParanormalPuzzlePanel/PNG/ParanormalPuzzle", cc.SpriteAtlas), this.LoadDynamicAsset("ParanormalPuzzlePanel/Components/PuzzleBlockComponent", cc.Prefab)]).then(function(e) {
                                    t._itemPrefab = e[0], t._setPrefab = e[1], t._atlas = e[2], t._blockPrefab = e[3]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ScoreDesc.string = "puzzle_curScore".ToUILocale(), this.HaveTitle.string = "puzzle_haved".ToUILocale(), this.BagLabel.string = "puzzle_bag_btn".ToUILocale(), this.ShopLabel.string = "puzzle_shop".ToUILocale(), this.PreviewLabel.string = "puzzle_attr".ToUILocale(), this.NoPuzzleLabel.string = "puzzle_no_checked".ToUILocale(), this.AutoUpLabel.string = "puzzle_auto_up".ToUILocale(), this.AutoDownLabel.string = "puzzle_auto_down".ToUILocale(), this.RuleButton.node.on("click", this.ClickRuleButton, this), this.LeftButton.node.on("click", this.ClickLeftButton, this), this.RightButton.node.on("click", this.ClickRightButton, this), this.BagButton.node.on("click", this.ClickBagButton, this), this.ShopButton.node.on("click", this.ClickShopButton, this), this.PreviewButton.node.on("click", this.ClickPreviewButton, this), this.ReturnButton.node.on("click", this.ClickReturnButton, this), this.AutoUpButton.node.on("click", this.ClickAutoUpButton, this), this.AutoDownButton.node.on("click", this.ClickAutoDownButton, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._config = t[0]
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                this._model = p.DataCenter.Instance.GetDataById(u.ParanormalPuzzle_Model, this._config.Id), this.SetTopNode(), this.SetMidNode(), this.SetLeftRightButtons(), this.SetItemDatas(), this.SetPuzzleSelectComponent(), this.SetItemList(), this.SetBlockNode(), this.SetUpDownButtons()
            }, t.prototype.RefreshUIContent = function() {
                this._model = p.DataCenter.Instance.GetDataById(u.ParanormalPuzzle_Model, this._config.Id), this.SetMidNode(), this.SetLeftRightButtons(), this.SetItemDatas(), this.SetItemList(), this.SetUpDownButtons()
            }, t.prototype.SetTopNode = function() {
                var e = this;
                this.Title.string = "puzzle_stage_param".ToUILocale().Fmt(this._config.Stage), this.CurrencyBars.forEach(function(t, n) {
                    e._showItemIds[n] ? (t.Init(e._showItemIds[n]), t.node.active = !0) : t.node.active = !1
                })
            }, t.prototype.GetSetPuzzleDatas = function() {
                var e = {};
                return this._model.Items.forEach(function(t) {
                    var n = t.Items[0],
                        o = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, n);
                    e[o.Quality] ? e[o.Quality] += 1 : e[o.Quality] = 1
                }), e
            }, t.prototype.SetMidNode = function() {
                var e = this;
                this.Score.string = this._model.Score.toString(), this.PuzzleItemNode.Init(this._config, !0), this._setNodes.forEach(function(e) {
                    e.active = !1
                });
                var t = this.GetSetPuzzleDatas(),
                    n = [];
                for (var o in t) n.push([Number(o), t[o]]);
                n.sort(function(e, t) {
                    return t[0] - e[0]
                }), this.PuzzleLayout.node.active = n.length > 0, n.length > 0 && n.forEach(function(t, n) {
                    if (!e._setNodes[n]) {
                        var o = cc.instantiate(e._setPrefab);
                        o.parent = e.PuzzleLayout.node, e._setNodes[n] = o
                    }
                    e._setNodes[n].active = !0, e._setNodes[n].getChildByName("PuzzleImg").getComponent(cc.Sprite).spriteFrame = e._atlas.getSpriteFrame("puzzle" + t[0]), e._setNodes[n].getChildByName("Count").getComponent(cc.Label).string = t[1].toString()
                })
            }, t.prototype.GetConfig = function(e, t) {
                return p.ConfigDataComponent.Instance.GetArrayConfig(c.PuzzleStage_Config).find(function(n) {
                    return n.GroupId == e && n.Stage == t
                })
            }, t.prototype.CheckStageIsShow = function(e) {
                var t = 1 == e ? this._config.Id - 1 : this._config.Id + 1;
                return !!p.ConfigDataComponent.Instance.GetConfigById(c.PuzzleStage_Config, t)
            }, t.prototype.SetLeftRightButtons = function() {
                this.LeftButton.node.active = this.CheckStageIsShow(1), this.RightButton.node.active = this.CheckStageIsShow(2)
            }, t.prototype.SetItemDatas = function() {
                var e = this;
                if (this._itemModels = [], this._selectItemModels = [], p.ConfigDataComponent.Instance.GetArrayConfig(c.ItemPuzzle_Config).forEach(function(t) {
                        if (t.Stage == e._config.Stage) {
                            var n = p.DataCenter.Instance.GetDataById(u.UserItem_Model, t.Id);
                            n && n.Count > 0 && e._itemModels.push(n)
                        }
                    }), this._itemModels.sort(function(e, t) {
                        var n = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, e.ItemId);
                        return p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, t.ItemId).Quality - n.Quality
                    }), this._selectQualitys.length > 0)
                    for (var t = 0; t < this._itemModels.length; t++) {
                        var n = this._itemModels[t];
                        if (this._selectQualitys.length > 0) {
                            var o = p.ConfigDataComponent.Instance.GetConfigById(c.ItemBase_Config, n.ItemId);
                            if (!this._selectQualitys.includes(C.default.MaxQuality - o.Quality)) continue
                        }
                        var r = p.DataCenter.Instance.GetDataById(u.UserItem_Model, n.ItemId);
                        r && r.Count > 0 && this._selectItemModels.push(r)
                    } else this._selectItemModels = this._itemModels
            }, t.prototype.SetPuzzleSelectComponent = function() {
                var e = [],
                    t = {};
                t.Title = "puzzle_level".ToUILocale(), t.Items = [], t.SelectIndexs = this._selectQualitys;
                for (var n = C.default.MaxQuality; n >= 2; n--) t.Items.push(("paraPuzzle_quality" + n).ToUILocale());
                e.push(t), this.PuzzleSelectComponent.Init(e, this.node)
            }, t.prototype.SetItemList = function() {
                this._initLayout && (this.CustomLayout.Init(this._itemPrefab, !0), this._initLayout = !1), this.NoPuzzleNode.active = 0 == this._selectItemModels.length, this.CustomLayout.RenderLayOut(this._selectItemModels.length);
                var e = this.CustomLayout.ScrollView.node.height / this.CustomLayout.node.height;
                this.ScrollBarNode.y = 0, this.ScrollBarNode.height = this._selectItemModels.length > 0 ? e * this.ScrollBarBgNode.height : this.ScrollBarBgNode.height
            }, t.prototype.SetBlockNode = function() {
                this._blockMoveNode || (this._blockMoveNode = cc.instantiate(this._blockPrefab), this._blockMoveNode.parent = this.BlockMoveNode, this._blockMoveNode.active = !1)
            }, t.prototype.SetUpDownButtons = function() {
                this.AutoUpButton.node.active = !this._model.Items || 0 == this._model.Items.length, this.AutoDownButton.node.active = this._model.Items && this._model.Items.length > 0
            }, t.prototype.RefreshCustomLayout = function(e, t) {
                var n = this;
                t == this.CustomLayout && e.forEach(function(e, t) {
                    if (t >= n._selectItemModels.length) e.getComponent(v.default).Init(null);
                    else {
                        var o = e.getComponent(v.default),
                            r = p.ConfigDataComponent.Instance.GetConfigById(c.ItemPuzzle_Config, n._selectItemModels[t].ItemId);
                        o.Init(n._selectItemModels[t].ItemId, null, !0), o.SetScore(!0, r.Score)
                    }
                })
            }, t.prototype.RefreshSelect = function(e, t, n) {
                this.PuzzleSelectComponent == e && (0 == t && (this._selectQualitys = n), this.SetItemDatas(), this.SetItemList(), this.SetPuzzleSelectComponent())
            }, t.prototype.BlockMoveStart = function(e, t, n, o) {
                if (this._offSet.x = 0, this._offSet.y = 0, n == l.PuzzleBlock) {
                    this.PuzzleItemNode.SetMoveNode(o, t);
                    var r = void 0;
                    e.parent.children[4] ? (r = e.parent.children[4], this._offSet.x = r.x - e.x, this._offSet.y = r.y - e.y) : r = e, this._blockMoveNode.active = !0;
                    var i = r.convertToWorldSpaceAR(cc.v2(0, 0)),
                        a = this.BlockMoveNode.convertToNodeSpaceAR(i);
                    this._blockMoveNode.setPosition(a), this._blockMoveNode.getComponent(w.default).Init(t)
                } else this._blockMoveNode.active = !0, i = e.convertToWorldSpaceAR(cc.v2(0, 0)), a = this.BlockMoveNode.convertToNodeSpaceAR(i), this._blockMoveNode.setPosition(a), this._blockMoveNode.getComponent(w.default).Init(t)
            }, t.prototype.BlockMove = function(e, t) {
                var n = e.getLocation(),
                    o = this.BlockMoveNode.convertToNodeSpaceAR(n);
                if (0 != this._offSet.x || 0 != this._offSet.y) {
                    var r = o.add(this._offSet);
                    this._blockMoveNode.setPosition(r)
                } else this._blockMoveNode.setPosition(o);
                this.CheckCanPush(t)
            }, t.prototype.BlockMoveEnd = function(e, t, n) {
                var o = this,
                    r = this.CheckCanPush(t, !0),
                    i = p.DataCenter.Instance.GetIntData(_.UserDataKey.Power);
                if (r[0]) {
                    var a = new u.Req_Team_ParanormalPuzzleFitInto,
                        s = new u.IntArray,
                        c = e == l.ItemBlock ? 1 : 2,
                        d = e == l.ItemBlock ? t : n;
                    s.Items = [c, d, r[1][0], r[1][1]], a.Sid = this._config.Id, a.Param = [s], p.RpcComponent.Instance.Call(a, function() {
                        if (o._blockMoveNode.active = !1, o.RefreshUIContent(), e == l.ItemBlock) {
                            var t = p.DataCenter.Instance.GetIntData(_.UserDataKey.Power);
                            t > i && m.UIUtlity.ShowFloatingHint("puzzle_power_up".ToUILocale().Fmt(i, t, t - i))
                        }
                    })
                } else this._blockMoveNode.active = !1, e == l.PuzzleBlock && -999 == r[1][0] ? ((a = new u.Req_Team_ParanormalPuzzleTakeOut).Sid = this._config.Id, a.Indexs = [n], a.Index = -1, p.RpcComponent.Instance.Call(a, function() {
                    var e = p.DataCenter.Instance.GetIntData(_.UserDataKey.Power);
                    e < i && m.UIUtlity.ShowFloatingHint("puzzle_power_down".ToUILocale().Fmt(i, e, i - e)), o.RefreshUIContent()
                })) : this.RefreshUIContent()
            }, t.prototype.CheckCanPush = function(e, t) {
                void 0 === t && (t = !1);
                var n = this._blockMoveNode.convertToWorldSpaceAR(cc.v2(0, 0)),
                    o = this.PuzzleItemNode.Layout.node.convertToNodeSpaceAR(n);
                return this.PuzzleItemNode.CheckCanPush(o, e, t)
            }, t.prototype.CheckItemCanPush = function(e, t, n) {
                var o = t.convertToWorldSpaceAR(cc.v2(0, 0)),
                    r = this.PuzzleItemNode.Layout.node.convertToNodeSpaceAR(o);
                return this.PuzzleItemNode.CheckItemCanPush(r, e, n)
            }, t.prototype.ClickRuleButton = function() {
                var e = {
                    name: "puzzle_rule_title".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["puzzle_rule_content2".ToUILocale()]
                };
                m.UIUtlity.ShowRulePanel(e)
            }, t.prototype.ClickLeftButton = function() {
                var e = this.GetConfig(this._config.GroupId, this._config.Stage - 1);
                e && (p.DataCenter.Instance.GetDataById(u.ParanormalPuzzle_Model, e.Id) ? (this._config = e, this.SetUIContent()) : m.UIUtlity.ShowFloatingHint("CollectionPavilion_Item_Lock".ToUILocale()))
            }, t.prototype.ClickRightButton = function() {
                var e = this.GetConfig(this._config.GroupId, this._config.Stage + 1);
                e && (p.DataCenter.Instance.GetDataById(u.ParanormalPuzzle_Model, e.Id) ? (this._config = e, this.SetUIContent()) : m.UIUtlity.ShowFloatingHint("CollectionPavilion_Item_Lock".ToUILocale()))
            }, t.prototype.HideSelectComponent = function(e) {
                this.PuzzleSelectComponent == e && this.PuzzleSelectComponent.HideSelectNode()
            }, t.prototype.ClickBagButton = function() {
                d.UIManager.Instance.ShowUIPanel(b.PanelConfig.ParanormalPuzzleBagPanel.Path)
            }, t.prototype.ClickShopButton = function() {
                d.UIManager.Instance.ShowUIPanel(b.PanelConfig.ShopPanel.Path, 4, S.ShopType.ParanormalPuzzle)
            }, t.prototype.ClickPreviewButton = function() {
                d.UIManager.Instance.ShowUIPanel(b.PanelConfig.ParanormalPuzzleAttrPanel.Path, this._config)
            }, t.prototype.ClickAutoUpButton = function() {
                var e = this;
                this._cantPushShape = {};
                var t = [],
                    n = [];
                this.PuzzleItemNode.puzzleItemMoveData.forEach(function(e) {
                    n.push(e)
                });
                for (var o = 0; o < this._selectItemModels.length; o++)
                    for (var r = this._selectItemModels[o], i = p.ConfigDataComponent.Instance.GetConfigById(c.ItemPuzzle_Config, r.ItemId), a = 0; a < r.Count; a++)
                        if (1 != this._cantPushShape[i.Shape]) {
                            for (var s = !1, l = 0; l < this.PuzzleItemNode.Layout.node.children.length; l++) {
                                var d = this.PuzzleItemNode.Layout.node.children[l],
                                    h = this.CheckItemCanPush(r.ItemId, d, n);
                                if (h[0]) {
                                    s = !0;
                                    var f = new u.IntArray;
                                    f.Items = [1, r.ItemId, h[1][0], h[1][1]], t.push(f);
                                    break
                                }
                            }
                            s || (this._cantPushShape[i.Shape] = 1)
                        } var y = p.DataCenter.Instance.GetIntData(_.UserDataKey.Power),
                    g = new u.Req_Team_ParanormalPuzzleFitInto;
                g.Sid = this._config.Id, g.Param = t, p.RpcComponent.Instance.Call(g, function() {
                    e.RefreshUIContent();
                    var t = p.DataCenter.Instance.GetIntData(_.UserDataKey.Power);
                    t > y && m.UIUtlity.ShowFloatingHint("puzzle_power_up".ToUILocale().Fmt(y, t, t - y))
                })
            }, t.prototype.ClickAutoDownButton = function() {
                var e = this;
                m.UIUtlity.ShowHintPanel("", "puzzle_auto_down_hint".ToUILocale(), "", null, "", function() {
                    for (var t = p.DataCenter.Instance.GetIntData(_.UserDataKey.Power), n = p.DataCenter.Instance.GetDataById(u.ParanormalPuzzle_Model, e._config.Id), o = [], r = 0; r < n.Items.length; r++) o.push(r);
                    var i = new u.Req_Team_ParanormalPuzzleTakeOut;
                    i.Sid = e._config.Id, i.Indexs = o, i.Index = -1, p.RpcComponent.Instance.Call(i, function() {
                        var n = p.DataCenter.Instance.GetIntData(_.UserDataKey.Power);
                        n < t && m.UIUtlity.ShowFloatingHint("puzzle_power_down".ToUILocale().Fmt(t, n, t - n)), e.RefreshUIContent()
                    })
                })
            }, t.prototype.ClickReturnButton = function() {
                d.UIManager.Instance.BackUIPanel()
            }, i([T(cc.Label)], t.prototype, "Title", void 0), i([T(cc.Button)], t.prototype, "RuleButton", void 0), i([T(h.default)], t.prototype, "CurrencyBars", void 0), i([T(cc.Label)], t.prototype, "ScoreDesc", void 0), i([T(cc.Label)], t.prototype, "Score", void 0), i([T(f.default)], t.prototype, "PuzzleItemNode", void 0), i([T(cc.Layout)], t.prototype, "PuzzleLayout", void 0), i([T(cc.Label)], t.prototype, "HaveTitle", void 0), i([T(y.default)], t.prototype, "PuzzleSelectComponent", void 0), i([T(g.default)], t.prototype, "CustomLayout", void 0), i([T(cc.Node)], t.prototype, "NoPuzzleNode", void 0), i([T(cc.Label)], t.prototype, "NoPuzzleLabel", void 0), i([T(cc.Button)], t.prototype, "LeftButton", void 0), i([T(cc.Button)], t.prototype, "RightButton", void 0), i([T(cc.Button)], t.prototype, "BagButton", void 0), i([T(cc.Label)], t.prototype, "BagLabel", void 0), i([T(cc.Button)], t.prototype, "ShopButton", void 0), i([T(cc.Label)], t.prototype, "ShopLabel", void 0), i([T(cc.Button)], t.prototype, "PreviewButton", void 0), i([T(cc.Label)], t.prototype, "PreviewLabel", void 0), i([T(cc.Button)], t.prototype, "ReturnButton", void 0), i([T(cc.Node)], t.prototype, "ScrollBarEventNode", void 0), i([T(cc.Node)], t.prototype, "ScrollBarBgNode", void 0), i([T(cc.Node)], t.prototype, "ScrollBarNode", void 0), i([T(cc.Node)], t.prototype, "BlockMoveNode", void 0), i([T(cc.Button)], t.prototype, "AutoUpButton", void 0), i([T(cc.Label)], t.prototype, "AutoUpLabel", void 0), i([T(cc.Button)], t.prototype, "AutoDownButton", void 0), i([T(cc.Label)], t.prototype, "AutoDownLabel", void 0), i([A], t)
        }(d.BaseUIFullScreenPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "./ParanormalPuzzleBagPanel": "ParanormalPuzzleBagPanel",
        "./PuzzleBlockComponent": "PuzzleBlockComponent",
        "./PuzzleFragmentInfoComponent": "PuzzleFragmentInfoComponent",
        "./PuzzleItemComponent": "PuzzleItemComponent",
        "./PuzzleSelectComponent": "PuzzleSelectComponent",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    ParanormalPuzzleStagePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "00262oDU4pDNZOi3RPeXEsu", "ParanormalPuzzleStagePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/CustomLayout"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/CurrencyBarItem"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("./PuzzleStageComponent"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("./AttrTotalComponent"),
            C = e("./ShopUIPanel"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed, !0), t.Title = null, t.RuleButton = null, t.CurrencyBars = [], t.Title2 = null, t.CustomLayout = null, t.BagButton = null, t.BagLabel = null, t.ShopButton = null, t.ShopLabel = null, t.PreviewButton = null, t.PreviewLabel = null, t.ReturnButton = null, t.AttrTotalNode = null, t._initLayout = !0, t._showItemIds = [I.CommonItemId.PuzzleCoin, I.CommonItemId.Diamond], t._isShowTotalAttr = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_PARANORMAL_PUZZLE_STAGE_REFRESH, this.RefreshStagePanel, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_CLOSE_ATTRTOTAL_COMPONENT, this.HideAttrTotalComponent, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_PARANORMAL_PUZZLE_STAGE_REFRESH, this.RefreshStagePanel, this), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CLOSE_ATTRTOTAL_COMPONENT, this.HideAttrTotalComponent, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ParanormalPuzzlePanel/Components/PuzzleStageComponent", cc.Prefab), this.LoadDynamicAsset("ItemsComponent/AttrTotalComponent", cc.Prefab)]).then(function(e) {
                                        t._itemInfoPrefab = e[0], t._totaAttrPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BagLabel.string = "puzzle_bag_btn".ToUILocale(), this.ShopLabel.string = "puzzle_shop".ToUILocale(), this.RuleButton.node.on("click", this.ClickRuleButton, this), this.BagButton.node.on("click", this.ClickBagButton, this), this.ShopButton.node.on("click", this.ClickShopButton, this), this.PreviewButton.node.on("click", this.ClickPreviewButton, this), this.ReturnButton.node.on("click", this.ClickReturnButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configs = t[0], this._curIndex = t[1], this._groupId = t[2], this.PreviewLabel.string = "puzzle_stage_attr_up".ToUILocale().Fmt(this._groupId.ToPuzzleGroupName())
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetTitle(), this.SetCurrencyBars(), this.SetStageList(), this.SetAttrTotalNode()
                }, t.prototype.SetTitle = function() {
                    this.Title.string = this._groupId.ToPuzzleGroupName(), this.Title2.string = this._groupId.ToPuzzleGroupName()
                }, t.prototype.SetCurrencyBars = function() {
                    var e = this;
                    this.CurrencyBars.forEach(function(t, n) {
                        e._showItemIds[n] ? (t.Init(e._showItemIds[n]), t.node.active = !0) : t.node.active = !1
                    })
                }, t.prototype.SetStageList = function() {
                    this._initLayout && (this.CustomLayout.Init(this._itemInfoPrefab), this._initLayout = !1);
                    var e = this._curIndex - 1 > 0 ? this._curIndex - 1 : 0;
                    this.CustomLayout.RenderLayOut(this._configs.length, e)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        e.getComponent(g.default).Init(n._configs[t])
                    })
                }, t.prototype.RefreshCurIndex = function() {
                    this._curIndex = 0;
                    for (var e = 0; e < this._configs.length; e++) u.DataCenter.Instance.GetDataById(c.ParanormalPuzzle_Model, this._configs[e].Id) && (this._curIndex = e)
                }, t.prototype.RefreshStagePanel = function() {
                    this.RefreshCurIndex(), this.SetCurrencyBars(), this.SetStageList()
                }, t.prototype.HideAttrTotalComponent = function(e) {
                    this.AttrTotalNode.children.indexOf(e.node) > -1 && (this._isShowTotalAttr = !1, this.AttrTotalNode.active = !1)
                }, t.GetTotalPuzzleScore = function(e) {
                    var t = 0;
                    return u.DataCenter.Instance.GetDataList(c.ParanormalPuzzle_Model).forEach(function(n) {
                        n && n.Score > 0 && u.ConfigDataComponent.Instance.GetConfigById(l.PuzzleStage_Config, n.Sid).GroupId == e && (t += n.Score)
                    }), t
                }, t.prototype.GetTotolAttrData = function() {
                    var e = {},
                        t = [];
                    for (var n in this._configs.forEach(function(t) {
                            var n = u.DataCenter.Instance.GetDataById(c.ParanormalPuzzle_Model, t.Id);
                            if (n) {
                                var o = g.default.GetStageAttrs(n),
                                    r = g.default.GetExtraAttrData(t, n);
                                o.forEach(function(t) {
                                    e[t[0]] ? e[t[0]] += t[1] : e[t[0]] = t[1]
                                }), r.forEach(function(t) {
                                    t.IsUnlock && t.Attrs.forEach(function(t) {
                                        e[t.Items[0]] ? e[t.Items[0]] += t.Items[1] : e[t.Items[0]] = t.Items[1]
                                    })
                                })
                            }
                        }), e) {
                        var o = {};
                        o.AttrId = Number(n), o.AttrValue = e[n], t.push(o)
                    }
                    return t
                }, t.prototype.SetAttrTotalNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function() {
                            return this.AttrTotalNode.active = this._isShowTotalAttr, this._isShowTotalAttr && (this._totaAttrNode || (this._totaAttrNode = cc.instantiate(this._totaAttrPrefab), this._totaAttrNode.parent = this.AttrTotalNode), e = this.GetTotolAttrData(), (t = {}).Title = "puzzle_stage_attr_preview".ToUILocale().Fmt(this._groupId.ToPuzzleGroupName()), t.Attrs = e, this._totaAttrNode.getComponent(_.default).Init(t, this.node)), [2]
                        })
                    })
                }, t.prototype.ClickRuleButton = function() {
                    var e = {
                        name: "puzzle_rule_title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["puzzle_rule_content2".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.prototype.ClickBagButton = function() {
                    p.UIManager.Instance.ShowUIPanel(m.PanelConfig.ParanormalPuzzleBagPanel.Path)
                }, t.prototype.ClickShopButton = function() {
                    p.UIManager.Instance.ShowUIPanel(m.PanelConfig.ShopPanel.Path, 4, C.ShopType.ParanormalPuzzle)
                }, t.prototype.ClickPreviewButton = function() {
                    this._isShowTotalAttr = !this._isShowTotalAttr, this.SetAttrTotalNode()
                }, t.prototype.ClickReturnButton = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, i([S(cc.Label)], t.prototype, "Title", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(f.default)], t.prototype, "CurrencyBars", void 0), i([S(cc.Label)], t.prototype, "Title2", void 0), i([S(d.default)], t.prototype, "CustomLayout", void 0), i([S(cc.Button)], t.prototype, "BagButton", void 0), i([S(cc.Label)], t.prototype, "BagLabel", void 0), i([S(cc.Button)], t.prototype, "ShopButton", void 0), i([S(cc.Label)], t.prototype, "ShopLabel", void 0), i([S(cc.Button)], t.prototype, "PreviewButton", void 0), i([S(cc.Label)], t.prototype, "PreviewLabel", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([S(cc.Node)], t.prototype, "AttrTotalNode", void 0), i([b], t)
            }(p.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "./AttrTotalComponent": "AttrTotalComponent",
        "./PuzzleStageComponent": "PuzzleStageComponent",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    ParkourGamePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0acebGzWgFMJoZRzi8oumqS", "ParkourGamePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ParkourGamePanel = n.PropertySubType = void 0;
        var l, c, u, p, d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/Components"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../Components/ParkourPropertyComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/ParkourHeartComponent"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../Components/ParkourWallComponent"),
            v = e("../../Auxiliary/DataUtlity"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Idle = 0] = "Idle", e[e.Run = 1] = "Run", e[e.Jump1 = 2] = "Jump1", e[e.Jump2 = 3] = "Jump2", e[e.Eruption = 4] = "Eruption", e[e.Fall = 5] = "Fall", e[e.Dead = 6] = "Dead", e[e.SpecialEruption = 7] = "SpecialEruption", e[e.Revive = 8] = "Revive"
        })(l || (l = {})),
        function(e) {
            e[e.Land = 0] = "Land", e[e.Kunai = 1] = "Kunai", e[e.Plank = 2] = "Plank", e[e.Acanthosphere = 3] = "Acanthosphere", e[e.Coin = 4] = "Coin", e[e.Milk = 5] = "Milk"
        }(c = n.PropertySubType || (n.PropertySubType = {})),
        function(e) {
            e[e.Land = 1] = "Land", e[e.Property = 2] = "Property"
        }(u || (u = {})),
        function(e) {
            e[e.None = 0] = "None", e[e.Top = 1] = "Top", e[e.Bottom = 2] = "Bottom", e[e.Left = 3] = "Left", e[e.Right = 4] = "Right"
        }(p || (p = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new y.UIPanelType(y.UINodeType.Fixed), t.BgNode = null, t.CloudNodes = [], t.BgWallNode = null, t.LandNode = null, t.WallNode = null, t.PropertyNode = null, t.HeroNode = null, t.HeroContent = null, t.TimeThreeNode = null, t.TimeImage = null, t.ReturnButton = null, t.HintLabel = null, t.ScoreDesc = null, t.ScoreLabel = null, t.DistanceDesc = null, t.DistanceLabel = null, t.HeartContent = null, t.PowerBg = null, t.PowerSprite = null, t.PowerMask = null, t.ItemSprite = null, t.ItemCount = null, t.HeroBackSpine = null, t.HeroFrontSpine = null, t.EruptionEffectData = null, t.ReviveEffectData1 = null, t.ReviveEffectData2 = null, t.JumpEffectData1 = null, t.JumpEffectData2 = null, t.JumpEffectNode = null, t.DownG = -1400, t.RightSpeed = 400, t.OffsetX = 163, t.CanCreateOffsetX = 100, t.EruptionY = 480, t.Rate = 10, t.ReviveDistance = 800, t.WallWidth = 560, t.EruptionAbsorbedSpeed = 3e3, t.MaxScore = 99999999, t.MaxDistance = 999999, t._parkourProComponents = [], t._parkourWallComponents = [], t._jumpEffects = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ParkourGamePanel/Components/ParkourPropertyComponent", cc.Prefab), this.LoadDynamicAsset("ParkourGamePanel/Components/ParkourHeartComponent", cc.Prefab), this.LoadDynamicAsset("ActivityRunningTrainPanel/PNG/ActivityRunningTrainAtlas", cc.SpriteAtlas), this.LoadDynamicAsset("ParkourGamePanel/PNG/ParkourGame", cc.SpriteAtlas), this.LoadDynamicAsset("ParkourGamePanel/Components/ParkourWallComponent", cc.Prefab), this.LoadDynamicAsset("ParkourGamePanel/Components/ParkourJumpEffectComponent", cc.Prefab)]).then(function(e) {
                                    t._parkourProPrefab = e[0], t._heartPrefab = e[1], t._runTrainAtlas = e[2], t._parkourAtlas = e[3], t._wallPrefab = e[4], t._jumpEffectPrefab = e[5]
                                })];
                            case 1:
                                return n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.BgNode.on(cc.Node.EventType.TOUCH_END, this.OnClickBg, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.ScoreDesc.string = "parkour_score_desc".ToUILocale(), this.DistanceDesc.string = "parkour_distance_desc".ToUILocale(), this.HintLabel.string = "parkour_hint".ToUILocale()
            }, t.prototype.InitData = function(t) {
                var n = this;
                e.prototype.InitData.call(this, t), this._config = t[0], this._isStart = !1, this._isPause = !1, this._passConfigs = [], this._passConfig = {}, this._propConfig = {}, this._config.__Passes.forEach(function(e) {
                    n._passConfig[e.Id] = e
                }), this._config.__Props.forEach(function(e) {
                    n._propConfig[e.Id] = e
                }), this._defaultHeroPos = [-m.UIUtlity.DESIGN_SCREEN_WIDTH / 2 + this.OffsetX, this.LandNode.y + this.HeroNode.height / 2], this._needCheckPropertySubType = [c.Coin, c.Kunai, c.Acanthosphere, c.Milk], this.PowerBg.spriteFrame = this._runTrainAtlas.getSpriteFrame("progress_bottom"), this.PowerSprite.spriteFrame = this._runTrainAtlas.getSpriteFrame("progress_bar"), this.RandomCloudSpeed()
            }, t.prototype.RandomCloudSpeed = function() {
                var e = this;
                this._cloudsSpeeds = [], this.CloudNodes.forEach(function() {
                    var t = 150 * Math.random() + 50;
                    e._cloudsSpeeds.push(t)
                })
            }, t.prototype.AddLoopPassConfig = function() {
                var e = this;
                this._config.CustomPart.LoopPassIds.forEach(function(t) {
                    e._curTotalDistance += e._passConfig[t].Length, e._passConfigs.push(e._passConfig[t])
                })
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), t = f.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, this._config.CustomPart.HeroId), n = v.default.Instance.GetItemPathById(this._config.CustomPart.ItemId), [4, Promise.all([this.LoadDynamicAsset(n, cc.SpriteFrame), this.LoadDynamicAsset("Hero_" + t.Model + "/HeroAvatar", cc.Prefab)]).then(function(e) {
                                    r._itemSprite = e[0], r._heroPrefab = e[1]
                                })];
                            case 1:
                                return i.sent(), this.ItemSprite.spriteFrame = this._itemSprite, (o = cc.instantiate(this._heroPrefab)).parent = this.HeroContent, this._heroSpine = o.getComponent(sp.Skeleton), [2]
                        }
                    })
                })
            }, t.prototype.update = function(e) {
                if (this._isStart && !this._isPause && this._heroState != l.Dead && this._heroState != l.Revive) {
                    var t = e * this._vx,
                        n = t * this._config.CustomPart.PointParam / this.Rate;
                    this._curDistance += t, this._score += n, this.SetCloudsMove(e), this.SetConfigData(), this.SetEruption(t), this.SetLandAndPropNode(e), this.SetWallNode(e), this.SetJumpEffectNode(e), this.SetBgWallNode(e), this.SetHeroNode(e), this.SetScore(), this.SetDistance(), this.SetVx()
                }
            }, t.prototype.SetCloudsMove = function(e) {
                var t = this;
                this.CloudNodes.forEach(function(n, o) {
                    n.x -= e * t._cloudsSpeeds[o], n.x <= -(n.width + m.UIUtlity.DESIGN_SCREEN_WIDTH) / 2 && (n.x = (n.width + m.UIUtlity.DESIGN_SCREEN_WIDTH) / 2)
                })
            }, t.prototype.SetConfigData = function() {
                this._curDistance + m.UIUtlity.DESIGN_SCREEN_WIDTH + 2 * this.CanCreateOffsetX >= this._curTotalDistance && this.AddLoopPassConfig(), this._curDistance + m.UIUtlity.DESIGN_SCREEN_WIDTH + 2 * this.CanCreateOffsetX >= this._curTotalWallDistance && this.AddWallData()
            }, t.prototype.SetHeroNode = function(e) {
                if (this._heroState == l.Eruption || this._heroState == l.SpecialEruption) {
                    if (this.HeroNode.y < this.EruptionY) {
                        var t = 3575 * e;
                        this.HeroNode.y = this.HeroNode.y + t >= this.EruptionY ? this.EruptionY : this.HeroNode.y + t
                    }
                    if (this.HeroNode.x < this._defaultHeroPos[0]) {
                        var n = 650 * e;
                        this.HeroNode.x = this.HeroNode.x + n >= this._defaultHeroPos[0] ? this._defaultHeroPos[0] : this.HeroNode.x + n
                    }
                } else {
                    var o = this.HeroNode.y,
                        r = this._vy * e + .5 * this._curG * e * e;
                    this._vy += this._curG * e, this.HeroNode.y = o + r
                }
                for (var i = [], a = 0; a < this.PropertyNode.children.length; a++)(s = this.PropertyNode.children[a]).active && this.CheckCollisionNode(s, i);
                for (a = 0; a < this.LandNode.children.length; a++) {
                    var s = this.LandNode.children[a];
                    this.CheckCollisionNode(s, i)
                }
                if (i.includes(p.Top) && this._jumpCount > 0 && (this._jumpCount = 0), this._heroState != l.Eruption && this._heroState != l.SpecialEruption) {
                    if (this.HeroNode.x < this._defaultHeroPos[0] && this.HeroNode.x > -(m.UIUtlity.DESIGN_SCREEN_WIDTH + this.HeroNode.width) / 2) {
                        if (!i.includes(p.Left)) {
                            var c = this.HeroNode.x + this.RightSpeed * e <= this._defaultHeroPos[0] ? this.HeroNode.x + this.RightSpeed * e : this._defaultHeroPos[0];
                            this.HeroNode.x = c
                        }
                    } else this.HeroNode.x <= -(m.UIUtlity.DESIGN_SCREEN_WIDTH + this.HeroNode.width) / 2 && this.SetHeroState(l.Dead);
                    this.HeroNode.y <= -m.UIUtlity.DESIGN_SCREEN_HEIGHT / 2 && this.SetHeroState(l.Dead), this._heroState == l.Run && 0 == i.length && this.SetHeroState(l.Fall)
                }
            }, t.prototype.CheckCollisionNode = function(e, t) {
                var n = e.getComponent(g.ParkourPropertyComponent),
                    o = this.CollisionNodeDirection(e);
                if (o != p.None) switch (n.Data.ConfigData[0]) {
                    case c.Coin:
                    case c.Kunai:
                    case c.Acanthosphere:
                    case c.Milk:
                        n.IsAbsorbed = !1, this.SetCollisionProp(n);
                        break;
                    case c.Land:
                    case c.Plank:
                        if (this._heroState == l.Eruption || this._heroState == l.SpecialEruption) return;
                        t.push(o), this.SetCollisionLand(o, n)
                }
            }, t.prototype.SetCollisionProp = function(e) {
                var t = e.Data,
                    n = t.DataIndex + "_" + t.ParamIndex;
                if (!(this._propCollisionCount[n] >= 1)) switch (e.node.active = !1, this._propCollisionCount[n] = 1, t.ConfigData[0]) {
                    case c.Coin:
                        this._score += this._propConfig[c.Coin].Effects[0].Items[1];
                        break;
                    case c.Kunai:
                    case c.Acanthosphere:
                        if (this._heroState == l.Eruption || this._heroState == l.SpecialEruption) return;
                        var o = this._curHp - this._propConfig[t.ConfigData[0]].Effects[0].Items[1];
                        this._curHp = o >= 0 ? o : 0, this.SetHp(), this.SetHeroInjured(), this._curHp <= 0 && this.SetHeroState(l.Dead);
                        break;
                    case c.Milk:
                        if (this._heroState != l.Eruption && this._heroState != l.SpecialEruption) {
                            var r = this._propConfig[t.ConfigData[0]].Effects[0].Items[1];
                            this.SetPowerProgress(r)
                        }
                }
            }, t.prototype.SetHeroInjured = function() {
                this._injuredTween || (this._injuredTween = cc.tween(this.HeroNode).to(.4, {
                    opacity: 5
                }).to(.2, {
                    opacity: 255
                }).to(.4, {
                    opacity: 5
                }).to(.2, {
                    opacity: 255
                })), this._injuredTween.stop(), this.HeroNode.opacity = 255, this._injuredTween.start()
            }, t.prototype.SetCollisionLand = function(e, t) {
                var n = t.node.convertToWorldSpaceAR(cc.v2(0, 0)),
                    o = this.node.convertToNodeSpaceAR(n);
                switch (e) {
                    case p.Left:
                        this.HeroNode.x = o.x - this.HeroNode.width / 2;
                        break;
                    case p.Right:
                        this.HeroNode.x = o.x + t.node.width + this.HeroNode.width / 2;
                        break;
                    case p.Top:
                        this.HeroNode.y = o.y + this.HeroNode.height / 2 - 1, this.SetHeroState(l.Run);
                        break;
                    case p.Bottom:
                        this.HeroNode.y = o.y - t.node.height - this.HeroNode.height / 2
                }
            }, t.prototype.CollisionNodeDirection = function(e) {
                var t = this.HeroNode.convertToWorldSpaceAR(cc.v2(0, 0)),
                    n = new cc.Rect(t.x - this.HeroNode.width / 2, t.y - this.HeroNode.height / 2, this.HeroNode.width, this.HeroNode.height),
                    o = p.None,
                    r = e.convertToWorldSpaceAR(cc.v2(0, 0)),
                    i = new cc.Rect(r.x, r.y - e.height, e.width, e.height);
                if (n.intersects(i)) {
                    var a = n.x - i.x < 0 ? p.Left : p.Right,
                        s = n.y - i.y < 0 ? p.Bottom : p.Top;
                    o = (n.x - i.x < 0 ? n.x + n.width - i.x : i.x + i.width - n.x) > (n.y - i.y < 0 ? n.y + n.height - i.y : i.y + i.height - n.y) ? s : a
                }
                return o
            }, t.prototype.SetScore = function() {
                var e = Math.floor(this._score) > this.MaxScore ? this.MaxScore : Math.floor(this._score);
                this.ScoreLabel.string = e.toString()
            }, t.prototype.SetDistance = function() {
                var e = Math.floor(this._curDistance / this.Rate) > this.MaxDistance ? this.MaxDistance : Math.floor(this._curDistance / this.Rate);
                this.DistanceLabel.string = e + "M"
            }, t.prototype.SetVx = function() {
                if (this._heroState == l.Eruption || this._heroState == l.SpecialEruption) this._vx = this._config.CustomPart.SprintSpeed;
                else
                    for (var e = this._config.CustomPart.Speed.length - 1; e >= 0; e--)
                        if (this._curDistance >= this._config.CustomPart.Speed[e].Items[0]) {
                            this._vx = this._config.CustomPart.Speed[e].Items[1];
                            break
                        }
            }, t.prototype.SetEruption = function(e) {
                if (this._heroState != l.Eruption && this._heroState != l.SpecialEruption) {
                    var t = e * this._config.CustomPart.AddPower / this.Rate;
                    this.SetPowerProgress(t)
                } else if (this._heroState == l.Eruption) {
                    this._eruptionDistance += e;
                    var n = -e * this._config.CustomPart.MaxPower / this._config.CustomPart.Sprint;
                    this.SetPowerProgress(n), this._eruptionDistance >= this._config.CustomPart.Sprint && (this._eruptionDistance = 0, this.SetHeroState(l.Fall))
                } else this._heroState == l.SpecialEruption && (this._eruptionDistance += e, this._eruptionDistance >= this._specialEruptionDistance && (this._eruptionDistance = 0, this.SetHeroState(l.Fall)))
            }, t.prototype.SetJumpEffectNode = function(e) {
                for (var t = this.JumpEffectNode.children.length - 1; t >= 0; t--) {
                    var n = this.JumpEffectNode.children[t];
                    n.x -= e * this._vx, this.CheckIsMoveOutLeft(n) && (n.removeFromParent(), this._jumpEffects.push(n.getComponent(sp.Skeleton)))
                }
            }, t.prototype.SetWallNode = function(e) {
                for (var t = this.WallNode.children.length - 1; t >= 0; t--) {
                    var n = this.WallNode.children[t];
                    n.x -= e * this._vx, this.CheckIsMoveOutLeft(n) && (n.removeFromParent(), this._parkourWallComponents.push(n.getComponent(C.ParkourWallComponent)))
                }
                for (var o = this._wallIndex; !(o >= this._wallDatas.length - 1) && (o++, this._wallDatas[o].X < this._curDistance + m.UIUtlity.DESIGN_SCREEN_WIDTH + this.CanCreateOffsetX);) this.CreateWallNode(o), this._wallIndex = o
            }, t.prototype.CreateWallNode = function(e) {
                if (this._wallDatas[e])
                    for (var t = Math.floor(this._wallDatas[e].Width / this.WallWidth), n = 0; n < t; n++) {
                        var o = {};
                        o.Index = n, o.IsHigh = this._wallDatas[e].IsHigh, o.Count = t;
                        var r = this._wallDatas[e].X - this._curDistance - m.UIUtlity.DESIGN_SCREEN_WIDTH / 2;
                        r += n * this.WallWidth;
                        var i = this._parkourWallComponents.pop();
                        i || (i = cc.instantiate(this._wallPrefab).getComponent(C.ParkourWallComponent)), i.node.parent = this.WallNode, i.node.setPosition(r, 0), i.node.getComponent(C.ParkourWallComponent).Init(o)
                    }
            }, t.prototype.SetBgWallNode = function(e) {
                var t = this,
                    n = -1;
                if (this.BgWallNode.children.forEach(function(o, r) {
                        o.x -= e * t._vx, o.x <= -(o.width + m.UIUtlity.DESIGN_SCREEN_WIDTH) / 2 && (n = r)
                    }), n > -1) {
                    var o = 0;
                    this.BgWallNode.children.forEach(function(e) {
                        o = Math.max(o, e.x)
                    }), this.BgWallNode.children[n].x = o + this.BgWallNode.children[n].width
                }
            }, t.prototype.SetLandAndPropNode = function(e) {
                for (var t = this.LandNode.children.length - 1; t >= 0; t--)(n = this.LandNode.children[t]).x -= e * this._vx, this.CheckIsMoveOutLeft(n) && (n.removeFromParent(), this._parkourProComponents.push(n.getComponent(g.ParkourPropertyComponent)));
                for (t = this.PropertyNode.children.length - 1; t >= 0; t--) {
                    var n, o = (n = this.PropertyNode.children[t]).getComponent(g.ParkourPropertyComponent),
                        r = this._vx;
                    switch (o.Data.ConfigData[0]) {
                        case c.Kunai:
                            r += this._propConfig[c.Kunai].Speed, n.x -= e * r;
                            break;
                        case c.Coin:
                        case c.Milk:
                            if (n.x < m.UIUtlity.DESIGN_SCREEN_WIDTH / 2 && n.active && (this._heroState == l.Eruption || this._heroState == l.SpecialEruption) && (o.IsAbsorbed = !0), o.IsAbsorbed) {
                                var i = this.HeroNode.convertToWorldSpaceAR(cc.v2(0, 0)),
                                    a = this.PropertyNode.convertToNodeSpaceAR(i),
                                    s = n.x > a.x ? 1 : -1,
                                    p = n.y > a.y ? 1 : -1;
                                r = this.EruptionAbsorbedSpeed * s;
                                var d = this.EruptionAbsorbedSpeed * p;
                                n.x -= e * r, n.y -= e * d
                            } else n.x -= e * r;
                            break;
                        default:
                            n.x -= e * r
                    }
                    this.CheckIsMoveOutLeft(n) && (n.removeFromParent(), this._parkourProComponents.push(o))
                }
                for (var h = this._levelLandDataIndex, f = this._levelLandIndex; !(h >= this._passConfigs.length);)
                    if (++f >= this._passConfigs[h].Plots.length) h++, f = -1;
                    else {
                        if (!this.CheckCanMoveIn(u.Land, h, f)) break;
                        this.CreateParkourProperty(u.Land, h, f), this._levelLandDataIndex = h, this._levelLandIndex = f
                    } for (var y = this._levelPropDataIndex, I = this._levelPropertyIndex; !(y >= this._passConfigs.length);)
                    if (++I >= this._passConfigs[y].Props.length) y++, I = 0;
                    else {
                        if (!this.CheckCanMoveIn(u.Property, y, I)) break;
                        this.CreateParkourProperty(u.Property, y, I), this._levelPropDataIndex = y, this._levelPropertyIndex = I
                    }
            }, t.prototype.CreateParkourProperty = function(e, t, n) {
                var o = {};
                o.DataIndex = t, o.ParamIndex = n, o.Atlas = this._parkourAtlas;
                for (var r = 0, i = 0; i < t; i++) r += this._passConfigs[i].Length;
                switch (e) {
                    case u.Land:
                        var a = this._passConfigs[t].Plots[n].Items,
                            s = Math.ceil(a[1] / g.ParkourPropertyComponent.LandWidth);
                        for (i = 0; i < s; i++) {
                            (p = this._parkourProComponents.pop()) || (p = cc.instantiate(this._parkourProPrefab).getComponent(g.ParkourPropertyComponent));
                            var l = this.GetNodeRealPos(r + a[0], i);
                            p.node.active = !0, o.LandIndex = i, o.LandTotalCount = s, o.ConfigData = [c.Land, a[1]], p.node.parent = this.LandNode, p.node.setPosition(l, 0), p.Init(o)
                        }
                        break;
                    case u.Property:
                        var p;
                        (p = this._parkourProComponents.pop()) || (p = cc.instantiate(this._parkourProPrefab).getComponent(g.ParkourPropertyComponent)), p.node.active = !0;
                        var d = (a = this._passConfigs[t].Props[n].Items)[0];
                        if (l = this.GetNodeRealPos(r + a[1]), o.ConfigData = [a[0], a[3]], o.ContentSize = this._propConfig[d].Look, o.Y = a[2] + this.LandNode.y, p.node.parent = this.PropertyNode, p.node.setPosition(l, a[2] + this.LandNode.y), p.Init(o), this._needCheckPropertySubType.includes(d)) {
                            var h = t + "_" + n;
                            this._propCollisionCount[h] = 0
                        }
                }
            }, t.prototype.GetNodeRealPos = function(e, t) {
                return void 0 === t && (t = 0), e - this._curDistance - m.UIUtlity.DESIGN_SCREEN_WIDTH / 2 + t * g.ParkourPropertyComponent.LandWidth
            }, t.prototype.CheckIsMoveOutLeft = function(e) {
                return e.x + e.width < -m.UIUtlity.DESIGN_SCREEN_WIDTH / 2 - 50
            }, t.prototype.CheckCanMoveIn = function(e, t, n) {
                if (!this._passConfigs[t]) return !1;
                var o;
                if (e == u.Land) {
                    if (!this._passConfigs[t].Plots[n]) return !1;
                    o = this._passConfigs[t].Plots[n].Items[0]
                } else if (e == u.Property) {
                    if (!this._passConfigs[t].Props[n]) return !1;
                    o = this._passConfigs[t].Props[n].Items[1]
                }
                for (var r = 0, i = 0; i < t; i++) r += this._passConfigs[i].Length;
                return (r += o) <= this._curDistance + m.UIUtlity.DESIGN_SCREEN_WIDTH + this.CanCreateOffsetX
            }, t.prototype.SetHeroState = function(e) {
                var t = this;
                if (e != this._heroState) switch (this._heroState = e, e != l.Revive && (this.HeroContent.opacity = 255), this._heroSpine.clearTracks(), this.HeroBackSpine.clearTracks(), this.HeroBackSpine.skeletonData = null, this.HeroFrontSpine.clearTracks(), this.HeroFrontSpine.skeletonData = null, e) {
                    case l.Idle:
                        this._heroSpine.setAnimation(0, "jump_standby", !0);
                        break;
                    case l.Run:
                        this._heroSpine.setAnimation(0, "jump_move", !0), this._curG = 0, this._vy = 0;
                        break;
                    case l.Jump1:
                        this._heroSpine.setAnimation(0, "jump_jump_1", !1), this._heroSpine.setCompleteListener(function() {
                            t._heroState != l.Eruption && t._heroState != l.SpecialEruption && t.SetHeroState(l.Fall), t._heroSpine.setCompleteListener(null)
                        }), this.CreateJumpEffect(e), this._vy = 800, this._curG = this.DownG;
                        break;
                    case l.Jump2:
                        this._heroSpine.setAnimation(0, "jump_jump_2", !1), this._heroSpine.setCompleteListener(function() {
                            t._heroState != l.Eruption && t._heroState != l.SpecialEruption && t.SetHeroState(l.Fall), t._heroSpine.setCompleteListener(null)
                        }), this.CreateJumpEffect(e), this._vy = 800, this._curG = this.DownG;
                        break;
                    case l.Dead:
                        this.OpenSettlePanel(!1);
                        break;
                    case l.Fall:
                        this._heroSpine.setAnimation(0, "jump_loop", !0), this._curG = this.DownG;
                        break;
                    case l.Eruption:
                    case l.SpecialEruption:
                        this._heroSpine.setAnimation(0, "jump_chongci", !0), this.HeroFrontSpine.skeletonData = this.EruptionEffectData, this.HeroFrontSpine.setAnimation(0, "Ani_UI_Effect_rzdzz_chongci", !0), this._curG = 0, this._vy = 0, this._jumpCount = 0;
                        break;
                    case l.Revive:
                        this._heroSpine.setAnimation(0, "jump_fuhuo", !0), this.HeroContent.opacity = 0, this.HeroFrontSpine.skeletonData = this.ReviveEffectData1, this.HeroFrontSpine.setAnimation(0, "Ani_UI_Effect_rzdzz_fuhuo", !1), this.HeroBackSpine.skeletonData = this.ReviveEffectData2, this.HeroBackSpine.setAnimation(0, "Ani_UI_Effect_rzdzz_fuhuo_2", !1), cc.tween(this.HeroContent).delay(.1).call(function() {
                            t.HeroNode.setPosition(t._defaultHeroPos[0], t.EruptionY)
                        }).to(.1, {
                            opacity: 255
                        }).delay(.3).call(function() {
                            t.SetHeroState(l.SpecialEruption)
                        }).start()
                }
            }, t.prototype.CreateJumpEffect = function(e) {
                var t = this._jumpEffects.pop();
                t || (t = cc.instantiate(this._jumpEffectPrefab).getComponent(sp.Skeleton)), t.clearTracks(), t.skeletonData = null, t.node.parent = this.JumpEffectNode;
                var n = this.HeroContent.convertToWorldSpaceAR(cc.v2(0, 0)),
                    o = this.JumpEffectNode.convertToNodeSpaceAR(n);
                t.node.setPosition(o), t.skeletonData = e == l.Jump1 ? this.JumpEffectData1 : this.JumpEffectData2, e == l.Jump1 ? t.setAnimation(0, "Ani_UI_Effect_rzdzz_qitiao", !1) : t.setAnimation(0, "Ani_UI_Effect_rzdzz_qitiao2", !1)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._model = f.DataCenter.Instance.GetDataById(h.UserActivity_Model, this._config._id), t || (this.InitLevelData(), this.AddWallData(), this.SetHp(), this.SetScore(), this.SetDistance(), this.SetPowerProgress(0), this.SetItemCount(), this.SetLandAndPropNode(0), this.SetWallNode(0))
            }, t.prototype.InitLevelData = function() {
                var e = this;
                this._countDownThree = 3, this.SetHeroState(l.Idle), this._curDistance = 0, this._propCollisionCount = {}, this._curG = this.DownG, this._vx = this._config.CustomPart.Speed[0].Items[1], this._vy = 0, this._score = 0, this._curHp = this._config.CustomPart.InitHp, this._power = 0, this._jumpCount = 0, this._eruptionDistance = 0, this._useItemCount = 0, this._levelLandDataIndex = 0, this._levelPropDataIndex = 0, this._levelLandIndex = -1, this._levelPropertyIndex = 0, this._wallIndex = -1, this._curTotalDistance = 0, this._curTotalWallDistance = 0, this._config.CustomPart.StartPassIds.forEach(function(t) {
                    var n;
                    if (t.Items.length > 1) {
                        var o = Math.floor(Math.random() * t.Items.length);
                        n = t.Items[o]
                    } else n = t.Items[0];
                    e._curTotalDistance += e._passConfig[n].Length, e._passConfigs.push(e._passConfig[n])
                }), this._specialEruptionDistance = 0;
                for (var t = this._config.CustomPart.OpenSprint.length - 1; t >= 0; t--)
                    if (this._model.IntArray[1] >= this._config.CustomPart.OpenSprint[t].Items[0]) {
                        this._specialEruptionDistance = this._config.CustomPart.OpenSprint[t].Items[1];
                        break
                    } this.TimeThreeNode.active = !0, this.HintLabel.node.active = !0, this.TimeImage.spriteFrame = m.UIUtlity.COMMON_ATLAS2.getSpriteFrame("3"), this.schedule(this.CountDownThree, 1)
            }, t.prototype.AddWallData = function() {
                var e = {};
                if (this._wallDatas) {
                    var t = this._wallDatas[this._wallDatas.length - 1].X + this._wallDatas[this._wallDatas.length - 1].Width + 200;
                    e.X = t
                } else this._wallDatas = [], e.X = 0;
                e.IsHigh = Math.random() > .5, e.Width = Math.floor(3 * Math.random() + 2) * this.WallWidth, this._wallDatas.push(e), this._curTotalWallDistance = this._wallDatas[this._wallDatas.length - 1].X + this._wallDatas[this._wallDatas.length - 1].Width
            }, t.prototype.CountDownThree = function() {
                var e = this;
                if (this._countDownThree--, this._countDownThree >= 0)
                    if (this._countDownThree > 0) {
                        var t = Math.round(this._countDownThree);
                        this.TimeImage.spriteFrame = m.UIUtlity.COMMON_ATLAS2.getSpriteFrame(t.toString())
                    } else this.TimeImage.spriteFrame = m.UIUtlity.MULTILANG_ATLAS_HIGHSCHOOL.getSpriteFrame("go");
                else {
                    this.TimeThreeNode.active = !1, this.HintLabel.node.active = !1, this.unschedule(this.CountDownThree);
                    var n = new h.Req_Activity_NinjaMiniGameStart;
                    n.ActivityId = this._config._id, f.RpcComponent.Instance.Call(n, function() {
                        e._isStart = !0, e._specialEruptionDistance > 0 ? e.SetHeroState(l.SpecialEruption) : e.SetHeroState(l.Run)
                    })
                }
            }, t.prototype.SetHp = function() {
                var e = this;
                if (!this._heartComponetns) {
                    this._heartComponetns = [];
                    for (var t = 0; t < this._config.CustomPart.InitHp; t++) {
                        var n = cc.instantiate(this._heartPrefab);
                        n.parent = this.HeartContent;
                        var o = n.getComponent(I.ParkourHeartComponent);
                        this._heartComponetns.push(o)
                    }
                }
                this._heartComponetns.forEach(function(t, n) {
                    t.Init(n, e._curHp)
                })
            }, t.prototype.SetPowerProgress = function(e) {
                var t = this._power + e;
                t >= this._config.CustomPart.MaxPower ? (this._power = this._config.CustomPart.MaxPower, this.SetHeroState(l.Eruption)) : this._power = t < 0 ? 0 : t, this.PowerMask.width = Math.floor(this._power * this.PowerSprite.node.width / this._config.CustomPart.MaxPower)
            }, t.prototype.SetItemCount = function() {
                var e = f.DataCenter.Instance.GetItemCount(this._config.CustomPart.ItemId),
                    t = e - this._useItemCount >= 0 ? e - this._useItemCount : 0;
                this.ItemCount.string = t.toString()
            }, t.prototype.OpenSettlePanel = function(e) {
                var t = {};
                t.ActivityConfig = this._config, t.CurDistance = Math.floor(this._curDistance), t.CurScore = Math.floor(this._score), t.LastDistance = this._model.IntArray[1] || 0, t.LastScore = this._model.IntArray[2] || 0, t.ReplayCallBack = this.OnClickReplay.bind(this), t.UseItemCount = this._useItemCount, t.HideReplay = e, y.UIManager.Instance.ShowUIPanel(_.PanelConfig.ParkourSettlementPanel.Path, t)
            }, t.prototype.OnClickReplay = function() {
                this._isPause = !1;
                var e = f.DataCenter.Instance.GetItemCount(this._config.CustomPart.ItemId);
                if (this._useItemCount >= e) {
                    var t = this._config.CustomPart.ItemId.ToItemName();
                    m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t))
                } else this._useItemCount++, this._curHp = this._config.CustomPart.InitHp, this._specialEruptionDistance = this.ReviveDistance, this.SetItemCount(), this.SetHp(), this.SetHeroState(l.Revive)
            }, t.prototype.OnClickBg = function() {
                this._heroState == l.Dead || this._jumpCount >= 2 || this._heroState == l.Eruption || this._heroState == l.SpecialEruption || (this._jumpCount++, 1 == this._jumpCount ? this.SetHeroState(l.Jump1) : 2 == this._jumpCount && this.SetHeroState(l.Jump2))
            }, t.prototype.OnReturnButtonClick = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._isPause = !0, [4, m.UIUtlity.ShowHintPanel("", "parkour_back_hint".ToUILocale(), "", function() {
                                    e._isPause = !1
                                }, "", function() {
                                    var t = e._heroState != l.Dead;
                                    e.OpenSettlePanel(t)
                                }, null)];
                            case 1:
                                return t.sent().DisableMaskClose(), [2]
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                this._parkourProComponents.forEach(function(e) {
                    e.node && e.node.destroy()
                }), this._parkourWallComponents.forEach(function(e) {
                    e.node && e.node.destroy()
                }), this._jumpEffects.forEach(function(e) {
                    e.node && e.node.destroy()
                }), this._injuredTween = null, this.unscheduleAllCallbacks()
            }, i([w(cc.Node)], t.prototype, "BgNode", void 0), i([w(cc.Node)], t.prototype, "CloudNodes", void 0), i([w(cc.Node)], t.prototype, "BgWallNode", void 0), i([w(cc.Node)], t.prototype, "LandNode", void 0), i([w(cc.Node)], t.prototype, "WallNode", void 0), i([w(cc.Node)], t.prototype, "PropertyNode", void 0), i([w(cc.Node)], t.prototype, "HeroNode", void 0), i([w(cc.Node)], t.prototype, "HeroContent", void 0), i([w(cc.Node)], t.prototype, "TimeThreeNode", void 0), i([w(cc.Sprite)], t.prototype, "TimeImage", void 0), i([w(cc.Button)], t.prototype, "ReturnButton", void 0), i([w(cc.Label)], t.prototype, "HintLabel", void 0), i([w(cc.Label)], t.prototype, "ScoreDesc", void 0), i([w(cc.Label)], t.prototype, "ScoreLabel", void 0), i([w(cc.Label)], t.prototype, "DistanceDesc", void 0), i([w(cc.Label)], t.prototype, "DistanceLabel", void 0), i([w(cc.Node)], t.prototype, "HeartContent", void 0), i([w(cc.Sprite)], t.prototype, "PowerBg", void 0), i([w(cc.Sprite)], t.prototype, "PowerSprite", void 0), i([w(cc.Node)], t.prototype, "PowerMask", void 0), i([w(cc.Sprite)], t.prototype, "ItemSprite", void 0), i([w(cc.Label)], t.prototype, "ItemCount", void 0), i([w(sp.Skeleton)], t.prototype, "HeroBackSpine", void 0), i([w(sp.Skeleton)], t.prototype, "HeroFrontSpine", void 0), i([w(sp.SkeletonData)], t.prototype, "EruptionEffectData", void 0), i([w(sp.SkeletonData)], t.prototype, "ReviveEffectData1", void 0), i([w(sp.SkeletonData)], t.prototype, "ReviveEffectData2", void 0), i([w(sp.SkeletonData)], t.prototype, "JumpEffectData1", void 0), i([w(sp.SkeletonData)], t.prototype, "JumpEffectData2", void 0), i([w(cc.Node)], t.prototype, "JumpEffectNode", void 0), i([S], t)
        }(y.BaseUIFullScreenPanel);
        n.ParkourGamePanel = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ParkourHeartComponent": "ParkourHeartComponent",
        "../Components/ParkourPropertyComponent": "ParkourPropertyComponent",
        "../Components/ParkourWallComponent": "ParkourWallComponent"
    }],
    ParkourHeartComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a958aLo7dxLX4q/C1iBUgHN", "ParkourHeartComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ParkourHeartComponent = void 0;
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeartNode = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this.HeartNode.active = t > e
                }, i([l(cc.Node)], t.prototype, "HeartNode", void 0), i([s], t)
            }(cc.Component);
        n.ParkourHeartComponent = c, cc._RF.pop()
    }, {}],
    ParkourMainPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8c531qzXe5G96Rn8fU0fHJE", "ParkourMainPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ParkourMainPanel = void 0;
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("./SmallRankComponent"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../RedDot/RedDotManager"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.RuleButton = null, t.Title = null, t.TimeRichText = null, t.SmallRankNode = null, t.WarTokenButton = null, t.WarTokenLabel = null, t.TaskButton = null, t.TaskLabel = null, t.GiftButton = null, t.GiftLabel = null, t.HeroNode = null, t.CountDesc = null, t.Count = null, t.StartButton = null, t.StartLabel = null, t.MaxScore = null, t.MaxDistance = null, t.ReturnButton = null, t.RankButton = null, t.RankLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ItemsComponent/SmallRankComponent", cc.Prefab)];
                                case 1:
                                    return t._smallRankPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.WarTokenLabel.string = "parkour_wartoken".ToUILocale(), this.TaskLabel.string = "btn_task".ToUILocale(), this.GiftLabel.string = "parkour_gift".ToUILocale(), this.CountDesc.string = "parkour_today_count".ToUILocale(), this.StartLabel.string = "parkour_start".ToUILocale(), this.RankLabel.string = "AllZoneChampionShip_RankButton".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.TaskButton.node.on("click", this.OnTaskButtonClick, this), this.GiftButton.node.on("click", this.OnGiftButtonClick, this), this.StartButton.node.on("click", this.OnStartButtonClick, this), this.RankButton.node.on("click", this.OnRankButtonClick, this), this.WarTokenButton.node.active = !1
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = t[0];
                    this._config = u.DataCenter.Instance.ActivityConfigs[n], this._deadLine = h.default.Instance.ComputeDeadTime(this._config.Common), this.Title.string = this._config.Common.Title
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), this._heroConfig = u.ConfigDataComponent.Instance.GetConfigById(l.HeroBase_Config, this._config.CustomPart.HeroId), t = this, [4, this.LoadDynamicAsset(this._heroConfig.UIAvatar + "/Avatar", cc.Prefab)];
                                case 1:
                                    return t._heroPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetTime(), this.SetHeroNode()), this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._config._id), this.SetSmallRankNode(), this.SetInfo(), this.BindRedDot()
                }, t.prototype.SetTime = function() {
                    this.CountDownTime(), this.unschedule(this.CountDownTime), this.schedule(this.CountDownTime, 1)
                }, t.prototype.CountDownTime = function() {
                    var e = this._deadLine - u.RpcComponent.Instance.ServerTime;
                    if (e <= 0) return this.unschedule(this.CountDownTime), void p.UIManager.Instance.BackUIPanel();
                    this.TimeRichText.string = "openServer_frameCountDown".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
                }, t.prototype.SetHeroNode = function() {
                    var e = cc.instantiate(this._heroPrefab);
                    e.parent = this.HeroNode, h.default.Instance.SetHeroAvatarSkin(e, this._heroConfig.Id, this._heroConfig.StarLevel), e.getComponent(sp.Skeleton).clearTracks(), e.getComponent(sp.Skeleton).setAnimation(0, "standby", !0)
                }, t.prototype.SetSmallRankNode = function() {
                    var e = this;
                    if (!this._smallRankComponent) {
                        var t = cc.instantiate(this._smallRankPrefab);
                        t.parent = this.SmallRankNode, this._smallRankComponent = t.getComponent(y.default)
                    }
                    if (this._data) this._smallRankComponent.InitData(this._data, this.OnClickRank.bind(this), g.RankTypeId.Activity, this._myRank);
                    else {
                        var n = new c.Req_Activity_GetRankOverview;
                        n.ActivityId = this._config._id, u.RpcComponent.Instance.Call(n, function(t) {
                            var n = t && t.Rows && t.Rows.length > 0 ? t.Rows : [];
                            e._data = n, e._myRank = null == t ? void 0 : t.MyRank, e._smallRankComponent.InitData(n, e.OnClickRank.bind(e), g.RankTypeId.Activity, e._myRank)
                        })
                    }
                }, t.prototype.SetInfo = function() {
                    var e = this._model.IntArray[0] > 0 ? this._model.IntArray[0] : 0,
                        t = this._config.CustomPart.DailyCount - e > 0 ? this._config.CustomPart.DailyCount - e : 0;
                    this.Count.string = t + "/" + this._config.CustomPart.DailyCount;
                    var n = this._model.IntArray[2] > 0 ? this._model.IntArray[2] : 0,
                        o = this._model.IntArray[1] > 0 ? this._model.IntArray[1] : 0;
                    this.MaxScore.string = "parkour_history_score".ToUILocale().Fmt(n), this.MaxDistance.string = "parkour_history_distance".ToUILocale().Fmt(o)
                }, t.prototype.BindRedDot = function() {
                    m.RedDotManager.Instance.BindInstance(this.TaskButton.node, m.RedDotManager.Instance.InstanceRedDot.ParkourTaskNode, {
                        Value1: this._config._id
                    }), m.RedDotManager.Instance.BindInstance(this.GiftButton.node, m.RedDotManager.Instance.InstanceRedDot.ParkourGiftNode, {
                        Value1: this._config._id
                    })
                }, t.prototype.OnClickRank = function() {
                    var e = this,
                        t = new c.Req_Activity_GetRank;
                    t.ActivityId = this._config._id, u.RpcComponent.Instance.Call(t, function(t) {
                        var n = {};
                        n.ActivityId = e._config._id, n.Title = "parkour_rank".ToUILocale(), n.RankDatas = [t], p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonActivityRankPanel.Path, n)
                    })
                }, t.prototype.OnTaskButtonClick = function() {
                    var e = {
                        IsActivity: !0
                    };
                    e.Title = "btn_task".ToUILocale(), e.Tasks = this._config._Tasks, e.ActivityId = this._config._id, p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonTaskPanel.Path, [e])
                }, t.prototype.OnGiftButtonClick = function() {
                    var e = this._config.Common.ShowImage.split("|"),
                        t = {
                            ActivityId: this._config._id,
                            ActivityGiftPackData: this._config._Packs,
                            Deadline: h.default.Instance.ComputeDeadTime(this._config.Common),
                            BannerPath: e[0],
                            Title: "parkour_gift_title".ToUILocale()
                        };
                    p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonGiftPackPanel.Path, t)
                }, t.prototype.OnStartButtonClick = function() {
                    (this._model.IntArray[0] > 0 ? this._model.IntArray[0] : 0) >= this._config.CustomPart.DailyCount ? d.UIUtlity.ShowFloatingHint("parkour_count_not_enough".ToUILocale()) : p.UIManager.Instance.ShowUIPanel(f.PanelConfig.ParkourGamePanel.Path, this._config)
                }, t.prototype.OnRankButtonClick = function() {
                    var e = new c.Req_Activity_GetRank;
                    e.ActivityId = this._config._id, u.RpcComponent.Instance.Call(e, function(e) {
                        var t = {};
                        t.ActivityId = this._config._id, t.Title = "bossWar_rank_name".ToUILocale().Fmt(this._config.Common.Title), t.RankDatas = [e], p.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonActivityRankPanel.Path, t)
                    }.bind(this))
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "parkour_rule_title".ToUILocale(),
                        titles: ["parkour_rule_sub_title".ToUILocale()],
                        contents: ["parkour_rule_content".ToUILocale()]
                    };
                    d.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnReturnButtonClick = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, i([C(cc.Button)], t.prototype, "RuleButton", void 0), i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.RichText)], t.prototype, "TimeRichText", void 0), i([C(cc.Node)], t.prototype, "SmallRankNode", void 0), i([C(cc.Button)], t.prototype, "WarTokenButton", void 0), i([C(cc.Label)], t.prototype, "WarTokenLabel", void 0), i([C(cc.Button)], t.prototype, "TaskButton", void 0), i([C(cc.Label)], t.prototype, "TaskLabel", void 0), i([C(cc.Button)], t.prototype, "GiftButton", void 0), i([C(cc.Label)], t.prototype, "GiftLabel", void 0), i([C(cc.Node)], t.prototype, "HeroNode", void 0), i([C(cc.Label)], t.prototype, "CountDesc", void 0), i([C(cc.Label)], t.prototype, "Count", void 0), i([C(cc.Button)], t.prototype, "StartButton", void 0), i([C(cc.Label)], t.prototype, "StartLabel", void 0), i([C(cc.Label)], t.prototype, "MaxScore", void 0), i([C(cc.Label)], t.prototype, "MaxDistance", void 0), i([C(cc.Button)], t.prototype, "ReturnButton", void 0), i([C(cc.Button)], t.prototype, "RankButton", void 0), i([C(cc.Label)], t.prototype, "RankLabel", void 0), i([_], t)
            }(p.BaseUIFullScreenPanel);
        n.ParkourMainPanel = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./SmallRankComponent": "SmallRankComponent"
    }],
    ParkourPropertyComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d3390E9xc1BxZ+f6JT7f8q6", "ParkourPropertyComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ParkourPropertyComponent = void 0;
        var a = e("../Panel/ParkourGamePanel"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.LandNode = null, t.MaskNode = null, t.LeftSideNode = null, t.RightSideNode = null, t.WindowNode = null, t.Lantern1Node = null, t.Lantern2Node = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.Init = function(e) {
                    this._data = e, this._isAbsorbed = !1, this.WindowNode.active = !1, this.Lantern1Node.active = !1, this.Lantern2Node.active = !1, cc.Tween.stopAllByTarget(this.Icon.node), this.Icon.node.angle = 0, this.Icon.node.y = 0, this.Icon.node.active = e.ConfigData[0] != a.PropertySubType.Land, this.LandNode.active = e.ConfigData[0] == a.PropertySubType.Land, e.ConfigData[0] == a.PropertySubType.Land ? this.SetLandNode() : this.SetPropSprite()
                }, t.prototype.SetPropSprite = function() {
                    switch (this.Icon.spriteFrame = this._data.Atlas.getSpriteFrame("prop" + this._data.ConfigData[0]), this.Icon.node.setContentSize(this._data.ContentSize[0], this._data.ContentSize[1]), this.node.setContentSize(this._data.ContentSize[0], this._data.ContentSize[1]), this.Icon.node.setPosition(this._data.ContentSize[0] / 2, -this._data.ContentSize[1] / 2), this._data.ConfigData[0]) {
                        case a.PropertySubType.Coin:
                        case a.PropertySubType.Milk:
                            cc.tween(this.Icon.node).repeatForever(cc.tween(this.Icon.node).to(.4, {
                                y: this._data.Y + 20
                            }).to(.8, {
                                y: this._data.Y - 20
                            }).to(.4, {
                                y: this._data.Y
                            })).start();
                            break;
                        case a.PropertySubType.Acanthosphere:
                            cc.tween(this.Icon.node).by(2, {
                                angle: -360
                            }).repeatForever().start()
                    }
                }, t.prototype.SetLandNode = function() {
                    var e = n.LandWidth;
                    this.MaskNode.width = e, this.LeftSideNode.active = 0 == this._data.LandIndex, this.RightSideNode.active = this._data.LandIndex == this._data.LandTotalCount - 1, this._data.LandIndex == this._data.LandTotalCount - 1 && (e = this._data.ConfigData[1] - n.LandWidth * (this._data.LandTotalCount - 1), this.MaskNode.width = e, this.RightSideNode.x = e + this.RightSideNode.width / 2), this.node.setContentSize(e, n.LandHeight);
                    var t, o, r, i = this.WindowNode.x + this.WindowNode.width / 2 < e,
                        a = this.Lantern1Node.x + this.Lantern1Node.width / 2 < e,
                        s = this.Lantern2Node.x + this.Lantern2Node.width / 2 < e;
                    0 == this._data.LandIndex ? (t = .2, o = .2, r = .8) : this._data.LandIndex == this._data.LandTotalCount - 1 ? (t = .2, o = .8, r = .2) : (t = .66, o = .66, r = .66);
                    var l = Math.random() > t;
                    this.WindowNode.active = l && i, this.WindowNode.active || (this.Lantern1Node.active = Math.random() > o && a, this.Lantern2Node.active = Math.random() > r && s)
                }, Object.defineProperty(t.prototype, "IsAbsorbed", {
                    get: function() {
                        return this._isAbsorbed
                    },
                    set: function(e) {
                        this._isAbsorbed = e, e && cc.Tween.stopAllByTarget(this.Icon.node)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Data", {
                    get: function() {
                        return this._data
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.LandWidth = 510, t.LandHeight = 894, i([c(cc.Sprite)], t.prototype, "Icon", void 0), i([c(cc.Node)], t.prototype, "LandNode", void 0), i([c(cc.Node)], t.prototype, "MaskNode", void 0), i([c(cc.Node)], t.prototype, "LeftSideNode", void 0), i([c(cc.Node)], t.prototype, "RightSideNode", void 0), i([c(cc.Node)], t.prototype, "WindowNode", void 0), i([c(cc.Node)], t.prototype, "Lantern1Node", void 0), i([c(cc.Node)], t.prototype, "Lantern2Node", void 0), n = i([l], t)
            }(cc.Component);
        n.ParkourPropertyComponent = u, cc._RF.pop()
    }, {
        "../Panel/ParkourGamePanel": "ParkourGamePanel"
    }],
    ParkourSettlementPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0846fN2ncNM47yDxCRONSOB", "ParkourSettlementPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ParkourSettlementPanel = void 0;
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../Consts/Consts"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.ScoreDesc = null, t.Score = null, t.DistanceDesc = null, t.Distance = null, t.NewRecord1Node = null, t.NewRecord2Node = null, t.Reward = null, t.RewardContent = null, t.ReplayButton = null, t.ReplayLabel = null, t.ItemSprite = null, t.RemainCount = null, t.SureButton = null, t.SureLabel = null, t.Tips = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ScoreDesc.string = "parkour_curScore".ToUILocale(), this.DistanceDesc.string = "parkour_curDistance".ToUILocale(), this.Reward.string = "reward".ToUILocale(), this.ReplayLabel.string = "parkour_revive".ToUILocale(), this.SureLabel.string = "ok".ToUILocale(), this.Tips.string = "parkour_reward_hint".ToUILocale(), this.ReplayButton.node.on("click", this.OnReplayButtonClick, this), this.SureButton.node.on("click", this.OnSureButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._data = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetInfo(), t || (this.SetReward(), this.SetItem())
                }, t.prototype.SetInfo = function() {
                    this.Score.string = this._data.CurScore.toString(), this.Distance.string = this._data.CurDistance.toString(), this.NewRecord1Node.active = this._data.CurScore > this._data.LastScore, this.NewRecord2Node.active = this._data.CurDistance > this._data.LastDistance;
                    var e = c.DataCenter.Instance.GetItemCount(this._data.ActivityConfig.CustomPart.ItemId),
                        t = e - this._data.UseItemCount > 0 ? e - this._data.UseItemCount : 0;
                    this.RemainCount.string = "parkour_remain_count".ToUILocale().Fmt(t), this.ReplayButton.node.active = !this._data.HideReplay
                }, t.prototype.SetReward = function() {
                    var e = this;
                    this._data.ActivityConfig.CustomPart.Rewards.forEach(function(t) {
                        var n = cc.instantiate(e._itemPrefab);
                        n.parent = e.RewardContent, n.y = -20, n.getComponent(f.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        })
                    })
                }, t.prototype.SetItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = g.default.Instance.GetItemPathById(this._data.ActivityConfig.CustomPart.ItemId), [4, this.LoadDynamicAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this.ItemSprite.spriteFrame = t, [2]) : (u.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContent.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, t.prototype.OnReplayButtonClick = function() {
                    if (c.DataCenter.Instance.GetItemCount(this._data.ActivityConfig.CustomPart.ItemId) - this._data.UseItemCount > 0) this._data.ReplayCallBack(), u.UIManager.Instance.BackUIPanel();
                    else {
                        var e = this._data.ActivityConfig.CustomPart.ItemId.ToItemName();
                        d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e));
                        var t = this._data.ActivityConfig.Common.ShowImage.split("|"),
                            n = {
                                ActivityId: this._data.ActivityConfig._id,
                                ActivityGiftPackData: this._data.ActivityConfig._Packs,
                                Deadline: g.default.Instance.ComputeDeadTime(this._data.ActivityConfig.Common),
                                BannerPath: t[0],
                                Title: "parkour_gift_title".ToUILocale()
                            };
                        u.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonGiftPackPanel.Path, n)
                    }
                }, t.prototype.OnSureButtonClick = function() {
                    var e = new l.Req_Activity_NinjaMiniGameSettle;
                    e.ActivityId = this._data.ActivityConfig._id, e.Count = this._data.UseItemCount, e.Meters = this._data.CurDistance, e.Point = this._data.CurScore, c.RpcComponent.Instance.Call(e, function(e) {
                        e && e.Rewards && e.Rewards.length > 0 && d.UIUtlity.ShwDisplayRewardPanel(e.Rewards), u.UIManager.Instance.BackUIPanel(), u.UIManager.Instance.QuitPanelStack(h.PanelConfig.ParkourGamePanel.Path)
                    }, function(e) {
                        e == p.ErrCode.ActNinjaDataIsCheat && (d.UIUtlity.ShowFloatingHint("parkour_settle_error".ToUILocale()), u.UIManager.Instance.BackUIPanel(), u.UIManager.Instance.QuitPanelStack(h.PanelConfig.ParkourGamePanel.Path))
                    })
                }, i([_(cc.Label)], t.prototype, "ScoreDesc", void 0), i([_(cc.Label)], t.prototype, "Score", void 0), i([_(cc.Label)], t.prototype, "DistanceDesc", void 0), i([_(cc.Label)], t.prototype, "Distance", void 0), i([_(cc.Node)], t.prototype, "NewRecord1Node", void 0), i([_(cc.Node)], t.prototype, "NewRecord2Node", void 0), i([_(cc.Label)], t.prototype, "Reward", void 0), i([_(cc.Node)], t.prototype, "RewardContent", void 0), i([_(cc.Button)], t.prototype, "ReplayButton", void 0), i([_(cc.Label)], t.prototype, "ReplayLabel", void 0), i([_(cc.Sprite)], t.prototype, "ItemSprite", void 0), i([_(cc.Label)], t.prototype, "RemainCount", void 0), i([_(cc.Button)], t.prototype, "SureButton", void 0), i([_(cc.Label)], t.prototype, "SureLabel", void 0), i([_(cc.Label)], t.prototype, "Tips", void 0), i([I], t)
            }(u.BaseUIPanel);
        n.ParkourSettlementPanel = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ParkourWallComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1e898sHViVPd53DOKsDYC4D", "ParkourWallComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ParkourWallComponent = void 0;
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HighWallNode = null, t.ShortWallNode = null, t.HighSide1 = null, t.HighSide2 = null, t.HighWindowBottom = null, t.ShortSide1 = null, t.ShortSide2 = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.HighWallNode.active = e.IsHigh, this.ShortWallNode.active = !e.IsHigh, this.HighSide1.active = e.IsHigh && 0 == e.Index, this.HighSide2.active = e.IsHigh && e.Index == e.Count - 1, this.ShortSide1.active = !e.IsHigh && 0 == e.Index, this.ShortSide2.active = !e.IsHigh && e.Index == e.Count - 1, this.HighWindowBottom.active = Math.random() > .66
                }, i([l(cc.Node)], t.prototype, "HighWallNode", void 0), i([l(cc.Node)], t.prototype, "ShortWallNode", void 0), i([l(cc.Node)], t.prototype, "HighSide1", void 0), i([l(cc.Node)], t.prototype, "HighSide2", void 0), i([l(cc.Node)], t.prototype, "HighWindowBottom", void 0), i([l(cc.Node)], t.prototype, "ShortSide1", void 0), i([l(cc.Node)], t.prototype, "ShortSide2", void 0), i([s], t)
            }(cc.Component);
        n.ParkourWallComponent = c, cc._RF.pop()
    }, {}],
    PermanentPrivilegePage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b299ciM6nBH1ZUPS6vDmxvG", "PermanentPrivilegePage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Consts/Etc"),
            d = e("../../../Util/TimeUtil"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/ItemComponent"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../Channel/ChannelManager"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../../Auxiliary/EventKeys"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Bg = null, t.TotalGetHint = null, t.RewardsContainer = null, t.BuyLideLabel = null, t.TittleLabel = null, t.DailyRewardsContainer = null, t.GetBtn = null, t.OrangeBtnLabel = null, t.BuyBtn = null, t.PriceLabel = null, t.VipExperienceLabel = null, t.VipExperienceValueLabel = null, t.CountDown = null, t.CountDownTipLabel = null, t.CountDownLabel = null, t.BG_NAME_ARRAY = ["Bg", "PersonalityBg", "Bg", "PersonalityBg"], t._rewardsComponentArr = [], t._dailyRewardsComponentArr = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.unscheduleAllCallbacks()
                }, t.prototype.OnItemClick = function(e, t) {
                    t.parent != this.RewardsContainer.node && t.parent != this.DailyRewardsContainer.node || h.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TittleLabel.string = "PermanentPrivilege_Tittle_Rewards".ToUILocale(), this.OrangeBtnLabel.string = "receive".ToUILocale(), this.CountDownTipLabel.string = "PermanentPrivilege_Tittle_CountDown".ToUILocale(), this.VipExperienceLabel.string = "task_get_score_tag".ToUILocale(), this.GetBtn.node.on("click", this.OnClickGetBtn, this), this.BuyBtn.node.on("click", this.OnClickBuyBtn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._param = t[0], this._itemPrefab = t[1]
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this.Bg, [4, this.LoadDynamicAsset("MallPrivilegeGiftPanel/PNG/Banner_forever_" + this._param.Type, cc.SpriteFrame)];
                                case 1:
                                    return e.spriteFrame = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._mallActivitymodel = u.DataCenter.Instance.GetDataById(c.MallActivity_Model, y.GiftPackType.PermanentPrivilege), this._giftPackModel = u.DataCenter.Instance.GetDataById(c.GiftPack_Model, this._param.GiftPackConfig.Id), this.SetRedDot(), this.SetTotalHint(), this.SetTotalReward(), this.SetDailyReward(), this.SetBtnState(), t || (this.PriceLabel.string = m.default.Instance.CurrencySymbol + m.default.Instance.ExchangeMoney(this._param.GiftPackConfig.Money), this.VipExperienceValueLabel.string = "x" + this._param.GiftPackConfig.VipPoint)
                }, t.prototype.SetTotalHint = function() {
                    this.TotalGetHint.string = "mallPrivilege_totalGetChange".ToUILocale().Fmt(this.GetTotalDays())
                }, t.prototype.SetTotalReward = function() {
                    for (var e = this.GetTotalDays(), t = {}, n = 0; n < this._param.GiftPackConfig.Items.length; n++) t[this._param.GiftPackConfig.Items[n].Items[0]] || (t[this._param.GiftPackConfig.Items[n].Items[0]] = 0), t[this._param.GiftPackConfig.Items[n].Items[0]] += this._param.GiftPackConfig.Items[n].Items[1];
                    var o = this._param.DailyRewards.Rewards;
                    for (n = 0; n < o.length; n++) t[o[n].Items[0]] || (t[o[n].Items[0]] = 0), t[o[n].Items[0]] += o[n].Items[1] * e;
                    var r = 0;
                    for (var i in t) {
                        var a = t[i],
                            s = parseInt(i),
                            l = this._rewardsComponentArr[r++];
                        if (!l) {
                            var c = cc.instantiate(this._itemPrefab);
                            c.setParent(this.RewardsContainer.node), c.name = s.toString(), l = c.getComponent(f.ItemComponent), this._rewardsComponentArr.push(l)
                        }
                        l.Init({
                            ItemId: s,
                            Count: a
                        })
                    }
                }, t.prototype.SetDailyReward = function() {
                    var e, t = {};
                    if (this._giftPackModel && this._mallActivitymodel && this._giftPackModel.Count) {
                        var n = this._mallActivitymodel.IntArray[this._param.Type];
                        e = d.TimeUtil.GetDiffDays(n, u.RpcComponent.Instance.ServerTime, !0)
                    } else e = 1;
                    e = Math.max(1, e);
                    for (var o = this._param.DailyRewards.Rewards, r = 0; r < o.length; r++) t[o[r].Items[0]] || (t[o[r].Items[0]] = 0), t[o[r].Items[0]] += o[r].Items[1] * e;
                    var i = 0;
                    for (var a in t) {
                        var s = t[a],
                            l = parseInt(a),
                            c = this._dailyRewardsComponentArr[i++];
                        if (!c) {
                            var p = cc.instantiate(this._itemPrefab);
                            p.setParent(this.DailyRewardsContainer.node), p.name = l.toString(), c = p.getComponent(f.ItemComponent), this._dailyRewardsComponentArr.push(c)
                        }
                        c.Init({
                            ItemId: l,
                            Count: s
                        })
                    }
                }, t.prototype.GetTotalDays = function() {
                    var e, t, n = u.DataCenter.Instance.GetIntData(y.UserDataKey.CreateTime);
                    return !this._mallActivitymodel || !this._mallActivitymodel.IntArray || this._mallActivitymodel.IntArray.length <= 0 || !this._mallActivitymodel.IntArray[this._param.Type] ? (e = u.RpcComponent.Instance.ServerTime, t = d.TimeUtil.GetDiffDays(n, e, !0)) : (e = this._mallActivitymodel.IntArray[this._param.Type], t = d.TimeUtil.GetDiffDays(n, e, !0) + 1), t
                }, t.prototype.GetRewardDays = function() {
                    var e, t = this._mallActivitymodel.IntArray[this._param.Type];
                    return e = this._mallActivitymodel && this._mallActivitymodel.IntArray && this._mallActivitymodel.IntArray[this._param.Type] ? 1 == t ? y.SpecialDataKey.PermanentPrivilegeTime + p.Etc.DayDuration : t : u.DataCenter.Instance.GetIntData(y.UserDataKey.CreateTime), d.TimeUtil.GetDiffDays(e, u.RpcComponent.Instance.ServerTime, !0)
                }, t.prototype.SetBtnState = function() {
                    this.BuyBtn.node.active = !1, this.GetBtn.node.active = !1, this.CountDown.active = !1, this.BuyLideLabel.string = "mallPrivilege_totalGet".ToUILocale(), this._giftPackModel && this._mallActivitymodel && this._giftPackModel.Count ? this._giftPackModel.Count > 0 && this.GetRewardDays() > 0 ? (this.GetBtn.node.active = !0, this.SetReceivedTag(this._rewardsComponentArr, !0)) : (this.CountDown.active = !0, this.SetReceivedTag(this._rewardsComponentArr, !0), this.SetReceivedTag(this._dailyRewardsComponentArr, !0), this.SetCountDown(), this.unscheduleAllCallbacks(), this.schedule(this.SetCountDown, 1)) : (this.BuyBtn.node.active = !0, this.BuyLideLabel.string = "weekCard_immediatelyGet".ToUILocale())
                }, t.prototype.SetReceivedTag = function(e, t) {
                    e.forEach(function(e) {
                        e.SetReceivedTagState(t)
                    })
                }, t.prototype.SetCountDown = function() {
                    var e = u.RpcComponent.Instance.ServerTime;
                    this.CountDownLabel.string = g.default.ActivityTimeLeftFormat(p.Etc.DayDuration - (e - d.TimeUtil.Get0ClockTs(e)))
                }, t.prototype.SetRedDot = function() {
                    this._param && 0 == this._param.Type && I.RedDotManager.Instance.BindInstance(this.GetBtn.node, I.RedDotManager.Instance.InstanceRedDot.PermanentPrivilegeToggle0, {
                        Value1: 0
                    })
                }, t.prototype.OnClickGetBtn = function() {
                    var e = new c.Req_Mall_PermanentRewards;
                    e.Indexs = [this._param.Type], u.RpcComponent.Instance.Call(e, function(e) {
                        h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnClickBuyBtn = function() {
                    m.default.Instance.Pay(this._param.GiftPackConfig.Id)
                }, i([b(cc.Sprite)], t.prototype, "Bg", void 0), i([b(cc.Label)], t.prototype, "TotalGetHint", void 0), i([b(cc.Layout)], t.prototype, "RewardsContainer", void 0), i([b(cc.Label)], t.prototype, "BuyLideLabel", void 0), i([b(cc.Label)], t.prototype, "TittleLabel", void 0), i([b(cc.Layout)], t.prototype, "DailyRewardsContainer", void 0), i([b(cc.Button)], t.prototype, "GetBtn", void 0), i([b(cc.Label)], t.prototype, "OrangeBtnLabel", void 0), i([b(cc.Button)], t.prototype, "BuyBtn", void 0), i([b(cc.Label)], t.prototype, "PriceLabel", void 0), i([b(cc.Label)], t.prototype, "VipExperienceLabel", void 0), i([b(cc.Label)], t.prototype, "VipExperienceValueLabel", void 0), i([b(cc.Node)], t.prototype, "CountDown", void 0), i([b(cc.Label)], t.prototype, "CountDownTipLabel", void 0), i([b(cc.Label)], t.prototype, "CountDownLabel", void 0), i([v], t)
            }(l.BaseUIPage);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PermanentPrivilegePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b4bf7BjR2VNIbx8XDj/gfRS", "PermanentPrivilegePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../../Consts/Etc"),
            h = e("../../../Util/TimeUtil"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/ItemComponent"),
            m = e("../../Components/Components"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Channel/ChannelManager"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../Components/CustomToggle"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.Bg = null, t.RewardsContainer = null, t.BuyLideLabel = null, t.ActivatedTag = null, t.TittleLabel = null, t.DailyRewardsContainer = null, t.GetBtn = null, t.OrangeBtnLabel = null, t.BuyBtn = null, t.PriceLabel = null, t.VipExperienceLabel = null, t.VipExperienceValueLabel = null, t.CountDown = null, t.CountDownTipLabel = null, t.CountDownLabel = null, t.ToggleContainer = null, t.ReawrdTip = null, t.BG_NAME_ARRAY = ["Bg", "PersonalityBg", "Bg", "PersonalityBg"], t._bgArray = [], t._rewardsComponentArr = [], t._dailyRewardsComponentArr = [], t._currentToggle = 0, t._toggleNodeArray = [], t
                }
                return r(t, e), t.prototype.onDisable = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("Buttons/ToggleBottom", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._togglePrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.BuyLideLabel.string = "PermanentPrivilege_BuyLide".ToUILocale(), this.TittleLabel.string = "PermanentPrivilege_Tittle_Rewards".ToUILocale(), this.OrangeBtnLabel.string = "receive".ToUILocale(), this.CountDownTipLabel.string = "PermanentPrivilege_Tittle_CountDown".ToUILocale(), this.VipExperienceLabel.string = "task_get_score_tag".ToUILocale(), this.ReawrdTip.string = "PermanentPrivilege_Reward_Tip".ToUILocale(), this.GetBtn.node.on("click", this.OnClickGetBtn, this), this.BuyBtn.node.on("click", this.OnClickBuyBtn, this)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this._mallActivityConfig = m.ConfigDataComponent.Instance.GetConfigById(c.MallActivity_Config, I.GiftPackType.PermanentPrivilege), this.SetGiftConfigAndRewardArray()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._mallActivitymodel = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, I.GiftPackType.PermanentPrivilege), t ? this.SetRedDot() : (this.SetToggleContainer(), this.SetCurrentShow()), this.SetBtnState()
                }, t.prototype.SetGiftConfigAndRewardArray = function() {
                    this._giftPackConfigArray = [];
                    for (var e = 0; e < this._mallActivityConfig.Gifts.length; e++) {
                        var t = m.ConfigDataComponent.Instance.GetConfigById(c.GiftPack_Config, this._mallActivityConfig.Gifts[e].Items[0]);
                        this._giftPackConfigArray.push(t)
                    }
                    var n = m.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, I.LevelParamType.PermanentPrivilegeDailyRewards);
                    for (this._dailyRewardsArray = [], e = 0; e < n.Data.length; e++) {
                        var o = p.ConfigDataComponent.Instance.GetConfigById(c.ItemRewards_Config, n.Data[e]);
                        this._dailyRewardsArray.push(o.Rewards)
                    }
                }, t.prototype.SetToggleContainer = function() {
                    if (!(this._mallActivityConfig.Gifts.length <= 1) && _.default.Instance.IsGameModuleUnlock(I.GameModuleType.PermanentPrivilege2Show)[0])
                        for (var e = 0; e < this._mallActivityConfig.Gifts.length; e++) {
                            var t = cc.instantiate(this._togglePrefab);
                            t.setParent(this.ToggleContainer), t.on("toggle", this.OnSwithToggle, this), t.name = e.toString(), this._toggleNodeArray[e] = t;
                            var n = t.getComponent(b.default);
                            n.isChecked = e == this._currentToggle, n.Init(("PermanentPrivilege_Toggle_" + e).ToUILocale())
                        }
                }, t.prototype.OnSwithToggle = function(e) {
                    var t = Number.parseInt(e.node.name);
                    this._currentToggle != t && (this._currentToggle = t, this.SetCurrentShow())
                }, t.prototype.SetCurrentShow = function() {
                    this.SetBg(), this._rewardsComponentArr = this.DisplayRewards(this._giftPackConfigArray[this._currentToggle].Items, this._rewardsComponentArr, this.RewardsContainer.node, !1), this._dailyRewardsComponentArr = this.DisplayRewards(this._dailyRewardsArray[this._currentToggle], this._dailyRewardsComponentArr, this.DailyRewardsContainer.node, !0), this.PriceLabel.string = C.default.Instance.CurrencySymbol + C.default.Instance.ExchangeMoney(this._giftPackConfigArray[this._currentToggle].Money), this.VipExperienceValueLabel.string = "x" + this._giftPackConfigArray[this._currentToggle].VipPoint, this.SetBtnState(), this.SetRedDot()
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._bgArray[this._currentToggle] ? [3, 2] : (e = this._bgArray, t = this._currentToggle, [4, this.LoadDynamicAsset("PermanentPrivilegePanel/PNG/" + this.BG_NAME_ARRAY[this._currentToggle], cc.SpriteFrame)]);
                                case 1:
                                    if (e[t] = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._bgArray[this._currentToggle]), [2];
                                    n.label = 2;
                                case 2:
                                    return this.Bg.spriteFrame = this._bgArray[this._currentToggle], [2]
                            }
                        })
                    })
                }, t.prototype.DisplayRewards = function(e, t, n, o) {
                    var r = 1;
                    if (o && (this._giftPackModel = p.DataCenter.Instance.GetDataById(u.GiftPack_Model, this._giftPackConfigArray[this._currentToggle].Id), this._giftPackModel && this._giftPackModel.Count > 0)) {
                        var i = this.GetRewardDays();
                        r = i > 0 ? i : 1
                    }
                    for (var a = function(o) {
                            if (!t[o]) {
                                var i = cc.instantiate(s._itemPrefab);
                                t[o] = i.getComponent(g.ItemComponent), i.parent = n, i.on(cc.Node.EventType.TOUCH_END, function() {
                                    t[o].ShowItemTip()
                                }, s)
                            }
                            t[o].Init({
                                ItemId: e[o].Items[0],
                                Count: e[o].Items[1] * r
                            })
                        }, s = this, l = 0; l < e.length; l++) a(l);
                    return t
                }, t.prototype.GetRewardDays = function() {
                    var e, t = this._mallActivitymodel.IntArray[this._currentToggle];
                    return e = t ? 1 == t ? I.SpecialDataKey.PermanentPrivilegeTime + d.Etc.DayDuration : t : I.SpecialDataKey.PermanentPrivilegeTime, h.TimeUtil.GetDiffDays(e, p.RpcComponent.Instance.ServerTime, !0)
                }, t.prototype.SetBtnState = function() {
                    this._giftPackModel = p.DataCenter.Instance.GetDataById(u.GiftPack_Model, this._giftPackConfigArray[this._currentToggle].Id), this.BuyBtn.node.active = !1, this.GetBtn.node.active = !1, this.CountDown.active = !1, this.ActivatedTag.active = !1, this._giftPackModel && this._mallActivitymodel && this._giftPackModel.Count ? this._giftPackModel.Count > 0 && this.GetRewardDays() > 0 ? (this.GetBtn.node.active = !0, this.ActivatedTag.active = !0, this.SetReceivedTag(this._rewardsComponentArr, !0)) : (this.CountDown.active = !0, this.ActivatedTag.active = !0, this.SetReceivedTag(this._rewardsComponentArr, !0), this.SetReceivedTag(this._dailyRewardsComponentArr, !0), this.SetCountDown(), this.unscheduleAllCallbacks(), this.schedule(this.SetCountDown, 1)) : this.BuyBtn.node.active = !0
                }, t.prototype.SetReceivedTag = function(e, t) {
                    e.forEach(function(e) {
                        e.SetReceivedTagState(t)
                    })
                }, t.prototype.SetCountDown = function() {
                    var e = p.RpcComponent.Instance.ServerTime;
                    this.CountDownLabel.string = _.default.ActivityTimeLeftFormat(d.Etc.DayDuration - (e - h.TimeUtil.Get0ClockTs(e)))
                }, t.prototype.SetRedDot = function() {
                    switch (this._currentToggle) {
                        case 0:
                            v.RedDotManager.Instance.Bind(this.GetBtn.node, v.RedDotManager.Instance.RedDot.PermanentPrivilegeLRHeroNode);
                            break;
                        case 1:
                            v.RedDotManager.Instance.Bind(this.GetBtn.node, v.RedDotManager.Instance.RedDot.PermanentPrivilegeLRPersonalityNode);
                            break;
                        case 2:
                            v.RedDotManager.Instance.Bind(this.GetBtn.node, v.RedDotManager.Instance.RedDot.PermanentPrivilegeHeroNode);
                            break;
                        case 3:
                            v.RedDotManager.Instance.Bind(this.GetBtn.node, v.RedDotManager.Instance.RedDot.PermanentPrivilegePersonalityNode)
                    }
                    this._toggleNodeArray.length > 1 && (v.RedDotManager.Instance.BindInstance(this._toggleNodeArray[0], v.RedDotManager.Instance.InstanceRedDot.PermanentPrivilegeToggle0, {
                        Value1: 0
                    }, 0, -50), v.RedDotManager.Instance.BindInstance(this._toggleNodeArray[1], v.RedDotManager.Instance.InstanceRedDot.PermanentPrivilegeToggle1, {
                        Value1: 1
                    }, 0, -50), v.RedDotManager.Instance.BindInstance(this._toggleNodeArray[2], v.RedDotManager.Instance.InstanceRedDot.PermanentPrivilegeToggle2, {
                        Value1: 2
                    }, 0, -50), v.RedDotManager.Instance.BindInstance(this._toggleNodeArray[3], v.RedDotManager.Instance.InstanceRedDot.PermanentPrivilegeToggle3, {
                        Value1: 3
                    }, 0, -50))
                }, t.prototype.OnClickGetBtn = function() {
                    var e = new u.Req_Mall_PermanentRewards;
                    e.Indexs = [this._currentToggle], p.RpcComponent.Instance.Call(e, function(e) {
                        y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnClickBuyBtn = function() {
                    C.default.Instance.Pay(this._mallActivityConfig.Gifts[this._currentToggle].Items[0])
                }, i([P(cc.Sprite)], t.prototype, "Bg", void 0), i([P(cc.Layout)], t.prototype, "RewardsContainer", void 0), i([P(cc.Label)], t.prototype, "BuyLideLabel", void 0), i([P(cc.Node)], t.prototype, "ActivatedTag", void 0), i([P(cc.Label)], t.prototype, "TittleLabel", void 0), i([P(cc.Layout)], t.prototype, "DailyRewardsContainer", void 0), i([P(cc.Button)], t.prototype, "GetBtn", void 0), i([P(cc.Label)], t.prototype, "OrangeBtnLabel", void 0), i([P(cc.Button)], t.prototype, "BuyBtn", void 0), i([P(cc.Label)], t.prototype, "PriceLabel", void 0), i([P(cc.Label)], t.prototype, "VipExperienceLabel", void 0), i([P(cc.Label)], t.prototype, "VipExperienceValueLabel", void 0), i([P(cc.Node)], t.prototype, "CountDown", void 0), i([P(cc.Label)], t.prototype, "CountDownTipLabel", void 0), i([P(cc.Label)], t.prototype, "CountDownLabel", void 0), i([P(cc.Node)], t.prototype, "ToggleContainer", void 0), i([P(cc.Label)], t.prototype, "ReawrdTip", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PersonalSummonCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "90a61wTCbpGdp+RmKXUBhxW", "PersonalSummonCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../Consts/Consts"),
            l = e("../../Auxiliary/GlobalDefine"),
            c = e("../Components/ItemComponent"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("./PersonalSummonResult"),
            d = e("./ChaosSummonPanel"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BlueStarNode = null, t.YellowStarNode = null, t.BlueSpine1 = null, t.BlueSpine2 = null, t.YellowSpine1 = null, t.YellowSpine2 = null, t.ItemContainer = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    this.unscheduleAllCallbacks(), a.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n, o, r) {
                    void 0 === r && (r = 0), this._itemComponent = null, this._summonType = e, this._itemPrefab = t, this._itemData = n, this._skipAnimation = o, this._index = r, this.ItemContainer.destroyAllChildren(), this.ConfigStar()
                }, t.prototype.ConfigStar = function() {
                    var e = this;
                    switch (this._itemData.length >= 4 ? (this.BlueStarNode.active = !1, this.YellowStarNode.active = !0, this._itemSpine = this.YellowSpine1, this._cardSpine = this.YellowSpine2) : (this.BlueStarNode.active = !0, this.YellowStarNode.active = !1, this._itemSpine = this.BlueSpine1, this._cardSpine = this.BlueSpine2), this._cardSpine.node.active = !1, this._itemSpine.node.active = !0, this._itemSpine.setAnimation(0, this._itemSpine.defaultAnimation, !0), this.node.setPosition(new cc.Vec2(0, 0)), this._summonType) {
                        case s.CardCommonSummonType.PersonalitySummon:
                        case s.CardCommonSummonType.ChaosSummon:
                        case s.CardCommonSummonType.ChaosPersonalitySummon:
                        case d.ActivityChaosSummonType.SummonOnce:
                        case d.ActivityChaosSummonType.PersonalSummonOnce:
                            this.node.scale = 1, this.scheduleOnce(function() {
                                e.PlayCardAnimation()
                            }, .5);
                            break;
                        case s.CardCommonSummonType.PersonalitySummon10:
                        case s.CardCommonSummonType.ChaosSummon10:
                        case s.CardCommonSummonType.ChaosPersonalitySummon10:
                        case d.ActivityChaosSummonType.SummonTen:
                        case d.ActivityChaosSummonType.PersonalSummonTen:
                            this.Move()
                    }
                }, t.prototype.Move = function() {
                    var e = this,
                        t = 2 * Math.PI / 10,
                        n = p.default.Radius,
                        o = cc.v3(Math.cos(2 * t), Math.sin(2 * t)),
                        r = cc.v3(Math.cos(2 * t - Math.PI / 2), Math.sin(2 * t - Math.PI / 2)),
                        i = o.mul(n * Math.cos(t * this._index)).add(r.mul(n * Math.sin(t * this._index)));
                    this._skipAnimation ? (this.node.setPosition(i), this.PlayCardAnimation()) : (this.node.scale = 0, cc.tween(this.node).tag(l.PanelConfig.ChaosSummonPanel.Id).delay(.2).to(.4, {
                        position: i,
                        scale: 1
                    }, {
                        easing: "circOut"
                    }).call(function() {
                        e.scheduleOnce(function() {
                            e.PlayCardAnimation()
                        }, .15 * e._index + .1)
                    }).start())
                }, t.prototype.PlayCardAnimation = function() {
                    this._itemSpine.node.active = !1, this._cardSpine.node.active = !0, this._cardSpine.setAnimation(0, this._cardSpine.defaultAnimation, !1), this.ItemContainer.eulerAngles = cc.v3(0, 90, 0), this.PlayFrontEffect()
                }, t.prototype.PlayFrontEffect = function() {
                    var e = this,
                        t = cc.instantiate(this._itemPrefab);
                    this._itemComponent = t.getComponent(c.ItemComponent), this._itemComponent.Init({
                        ItemId: this._itemData[0],
                        Count: this._itemData[1]
                    }), t.setParent(this.ItemContainer);
                    var n = .35;
                    this._skipAnimation && (n = 0), cc.tween(this.ItemContainer).tag(l.PanelConfig.ChaosSummonPanel.Id).delay(.1).to(n, {
                        eulerAngles: cc.v3(0, 0, 0)
                    }, {
                        easing: "quadInOut"
                    }).call(function() {
                        switch (e._summonType) {
                            case s.CardCommonSummonType.PersonalitySummon:
                            case s.CardCommonSummonType.ChaosSummon:
                            case s.CardCommonSummonType.ChaosPersonalitySummon:
                            case d.ActivityChaosSummonType.SummonOnce:
                            case d.ActivityChaosSummonType.PersonalSummonOnce:
                                0 == e._index && a.Game.EventDispatcher.Emit(u.EventKeys.EVENT_DISPLAY_SUMMON_CARD_END);
                                break;
                            case s.CardCommonSummonType.PersonalitySummon10:
                            case s.CardCommonSummonType.ChaosSummon10:
                            case s.CardCommonSummonType.ChaosPersonalitySummon10:
                            case d.ActivityChaosSummonType.SummonTen:
                            case d.ActivityChaosSummonType.PersonalSummonTen:
                                e._index >= 9 && a.Game.EventDispatcher.Emit(u.EventKeys.EVENT_DISPLAY_SUMMON_CARD_END)
                        }
                    }).start()
                }, t.prototype.OnClickItem = function(e, t) {
                    this._itemComponent && this._itemComponent.node == t && this._itemComponent.ShowItemTip()
                }, i([y(cc.Node)], t.prototype, "BlueStarNode", void 0), i([y(cc.Node)], t.prototype, "YellowStarNode", void 0), i([y(sp.Skeleton)], t.prototype, "BlueSpine1", void 0), i([y(sp.Skeleton)], t.prototype, "BlueSpine2", void 0), i([y(sp.Skeleton)], t.prototype, "YellowSpine1", void 0), i([y(sp.Skeleton)], t.prototype, "YellowSpine2", void 0), i([y(cc.Node)], t.prototype, "ItemContainer", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemComponent": "ItemComponent",
        "./ChaosSummonPanel": "ChaosSummonPanel",
        "./PersonalSummonResult": "PersonalSummonResult"
    }],
    PersonalSummonPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a796fGqecVK0YdEslvttUBS", "PersonalSummonPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GameRecord"),
            l = e("../Components/CurrencyBarItem"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../Util/index"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("./CommonRatePanel"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../../Components/Components"),
            v = e("../../../Consts/Consts"),
            b = e("./DisplayRewardsPanel"),
            S = e("./BuyAndSellItemPanel"),
            w = e("../Components/SectorProgressBar"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property,
            R = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RateBtn = null, t.RateBtnLabel = null, t.ShopBtn = null, t.ShopBtnLabel = null, t.SwitchBtn = null, t.SwitchBtnLabel = null, t.SummonBtnOne = null, t.SummonBtnOneLabel = null, t.SummonBtnTen = null, t.SummonBtnTenLabel = null, t.CurrencyBarOne = null, t.CurrencyBarTen = null, t.SkipAnimationToggle = null, t.SkipHint = null, t.FreeLabel = null, t.ButtonLayout = null, t.AutoSummonNode = null, t.AutoBtn = null, t.AutoBtnLabel = null, t.CurrencyBarAuto = null, t.ProgressRewards = null, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onDisable = function() {
                    this.unscheduleAllCallbacks()
                }, t.prototype.Display = function() {
                    this._isInit || (this._isInit = !0, this.InitUI()), this.BindReddot(), this.ConfigSkipState(), this.RefreshFreeSummonState(), this.ConfigSummonCurrencyBar(), this.RefreshProgressRewards(), this.scheduleOnce(function() {
                        s.default.SetItem(s.GameRecordDefine.PersonalitySummonTen, C.RpcComponent.Instance.ServerTime)
                    }, 0)
                }, t.prototype.BindReddot = function() {
                    I.RedDotManager.Instance.Bind(this.SummonBtnOne.node, I.RedDotManager.Instance.RedDot.SummonPersonalOnceBtn), I.RedDotManager.Instance.Bind(this.SummonBtnTen.node, I.RedDotManager.Instance.RedDot.SummonPersonalTenBtn), I.RedDotManager.Instance.Bind(this.ProgressRewards.node, I.RedDotManager.Instance.RedDot.ProgressRewardsPersonality)
                }, t.prototype.ConfigSkipState = function() {
                    this.SkipAnimationToggle.isChecked = _.default.GetFunctionSkipState(v.FunctionSkipKey.JuniorAndSeniorSummon)
                }, t.prototype.InitUI = function() {
                    var e = this.node.addComponent(cc.Widget);
                    e.isAlignTop = !0, e.isAlignBottom = !0, this.SummonBtnOne.node.on("click", this.OnSummonOnce, this), this.SummonBtnTen.node.on("click", this.OnSummonTenTimes, this), this.RateBtn.node.on("click", this.ClickRateBtn, this), this.SkipAnimationToggle.node.on("toggle", this.OnClickSkip, this), this.SwitchBtn.node.on("click", this.OnSwitch, this), this.ShopBtn.node.on("click", this.OnClickShop, this), this.AutoBtn.node.on("click", this.ClickAutoBtn, this), this.ProgressRewards.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEndProgressRewards, this), this.SkipHint.string = "infinite_jump".ToUILocale(), this.SummonBtnTenLabel.string = "summon_times".ToUILocale().Fmt(10), this.RateBtnLabel.string = "ratepanel_tittle".ToUILocale(), this.ShopBtnLabel.string = "personal_shop".ToUILocale(), this.SwitchBtnLabel.string = "personal_switch".ToUILocale(), this.AutoBtnLabel.string = "auto_summon".ToUILocale()
                }, t.prototype.RefreshFreeSummonState = function() {
                    var e = this;
                    if (!this._summonType) {
                        var t = d.ConfigDataComponent.Instance.GetConfigById(c.CardCommonSummon_Config, u.CardCommonSummonType.PersonalitySummon);
                        this._summonType = t.SummonType
                    }
                    d.DataCenter.Instance.GetDataById(p.SummonCard_Model, this._summonType).FreeCount > 0 ? (this._isFree = !0, this.FreeLabel.string = "summon_free_hint".ToUILocale()) : (this._isFree = !1, this.FreeLabel.string = this.LeftFreeTime, this.schedule(function() {
                        e.FreeLabel.string = e.LeftFreeTime
                    }, 1)), this._isFree ? this.SummonBtnOneLabel.string = "summon_free".ToUILocale() : this.SummonBtnOneLabel.string = "summon_times".ToUILocale().Fmt(1)
                }, Object.defineProperty(t.prototype, "LeftFreeTime", {
                    get: function() {
                        var e = d.RpcComponent.Instance.ServerTime,
                            t = h.TimeUtil.Get0ClockTs(e),
                            n = h.TimeUtil.GetOffsetDayTs(1, t) - e;
                        return "summon_free_leftTime".ToUILocale().Fmt(n.FmtRemainTime())
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.ConfigSummonCurrencyBar = function() {
                    for (var e = d.ConfigDataComponent.Instance.GetConfigById(c.CardCommonSummon_Config, u.CardCommonSummonType.PersonalitySummon), t = d.ConfigDataComponent.Instance.GetConfigById(c.CardCommonSummon_Config, u.CardCommonSummonType.PersonalitySummon10), o = 0; o < e.ConsumeItem.length; o++) {
                        var r = e.ConsumeItem[o];
                        if (this._summonOnceCurrencyId = r.Items[0], this._summonOnceCurrencyCount = r.Items[1], d.DataCenter.Instance.GetItemCount(this._summonOnceCurrencyId) >= this._summonOnceCurrencyCount) break
                    }
                    for (o = 0; o < t.ConsumeItem.length && (r = t.ConsumeItem[o], this._summonTenCurrencyId = r.Items[0], this._summonTenCurrencyCount = r.Items[1], !(d.DataCenter.Instance.GetItemCount(this._summonTenCurrencyId) >= this._summonTenCurrencyCount)); o++);
                    this.CurrencyBarOne.Init(this._summonOnceCurrencyId, !1, this._summonOnceCurrencyCount);
                    var i = d.DataCenter.Instance.IsItemEnough(this._summonOnceCurrencyId, this._summonOnceCurrencyCount);
                    this.CurrencyBarOne.SetFixedColor(i ? cc.Color.WHITE : cc.Color.RED), this.CurrencyBarTen.Init(this._summonTenCurrencyId, !1, this._summonTenCurrencyCount);
                    var a = d.DataCenter.Instance.IsItemEnough(this._summonTenCurrencyId, this._summonTenCurrencyCount);
                    this.CurrencyBarTen.SetFixedColor(a ? cc.Color.WHITE : cc.Color.RED);
                    var s = _.default.Instance.IsGameModuleUnlock(u.GameModuleType.SummonAutoConsumeItem)[0];
                    if (this.AutoSummonNode.active = s, this.ButtonLayout.spacingX = s ? n.LAYOUT_THREE_NODES : n.LAYOUT_TWO_NODES, s) {
                        var l = 0,
                            p = !1;
                        for (this._summonAutoCurrencyId = 0, o = 0; o < e.ConsumeItem.length; o++)
                            if ((r = e.ConsumeItem[o]).Items[0] != v.CommonItemId.Diamond && (p || (l = o, p = !0), d.DataCenter.Instance.GetItemCount(r.Items[0]) >= r.Items[1])) {
                                this._summonAutoCurrencyId = r.Items[0], this._summonAutoCurrencyCount = r.Items[1];
                                break
                            } 0 == this._summonAutoCurrencyId && (this._summonAutoCurrencyId = e.ConsumeItem[l].Items[0], this._summonAutoCurrencyCount = e.ConsumeItem[l].Items[1]);
                        var h = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit") * this._summonAutoCurrencyCount,
                            f = d.DataCenter.Instance.GetItemCount(this._summonAutoCurrencyId),
                            y = f > h ? h : f;
                        this.CurrencyBarAuto.Init(this._summonAutoCurrencyId, !1, y)
                    }
                }, t.prototype.RefreshProgressRewards = function() {
                    if (_.default.Instance.IsGameModuleOpen(u.GameModuleType.ProgressRewards)) {
                        this.ProgressRewards.node.active = !0;
                        var e = _.default.GetProgressRewardsByType(u.ProgressRewardsType.Personality);
                        this.ProgressRewards.Init(e.value, e.maxValue, e.itemId, "progress_rewards_personality".ToUILocale()), _.default.Instance.IsGameModuleUnlock(u.GameModuleType.ProgressRewards)[0] ? (m.UIUtlity.OffNodeGray(this.ProgressRewards.node), this.ProgressRewards.SetBubbleNode("online_canGet".ToUILocale())) : m.UIUtlity.OnNodeGray(this.ProgressRewards.node)
                    } else this.ProgressRewards.node.active = !1
                }, t.prototype.OnSummonOnce = function() {
                    this._currentSummonType = u.CardCommonSummonType.PersonalitySummon, this.RequestSummon(this._summonOnceCurrencyId, this._summonOnceCurrencyCount, 1, this._isFree)
                }, t.prototype.OnSummonTenTimes = function() {
                    this._currentSummonType = u.CardCommonSummonType.PersonalitySummon10, this.RequestSummon(this._summonTenCurrencyId, this._summonTenCurrencyCount, 10)
                }, t.prototype.RequestSummon = function(e, t, n, o) {
                    var r = this;
                    void 0 === o && (o = !1);
                    var i = d.DataCenter.Instance.GetItemCount(e);
                    if (!o && i < t) e == u.CommonItemId.Diamond ? f.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [u.MallPageType.DiamondShop, u.GiftPackType.BuyDiamond]) : m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.ToItemName()));
                    else {
                        if (!o && e == u.CommonItemId.Diamond && !s.default.GetItem(s.GameRecordDefine.SummonCostDiamondHint)) return m.UIUtlity.ShowHintPanel(null, "costDiamondSummonHint".ToUILocale().Fmt(t), "", null, "", function() {
                            r.DoRequestSummonJob(o, e)
                        }, void 0, s.GameRecordDefine.SummonCostDiamondHint);
                        this.DoRequestSummonJob(o, e)
                    }
                }, t.prototype.DoRequestSummonJob = function(e, t) {
                    var n = new p.Req_Card_CommonSummon;
                    n.Type = this._currentSummonType, n.ItemId = e ? 0 : t, d.RpcComponent.Instance.Call(n, this.OnSummonSucces.bind(this))
                }, t.prototype.OnSummonSucces = function(e) {
                    this.unscheduleAllCallbacks();
                    for (var t = [], n = 0; n < e.Items.length; n++) t.push(e.Items[n].Items)
                }, t.prototype.ClickRateBtn = function() {
                    f.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonRatePanel.Path, g.ShowRateType.Common, u.CardCommonSummonType.PersonalitySummon)
                }, t.prototype.OnClickSkip = function(e) {
                    _.default.SetFunctionSkipState(v.FunctionSkipKey.JuniorAndSeniorSummon, e.isChecked)
                }, t.prototype.OnSwitch = function() {}, t.prototype.OnClickShop = function() {
                    f.UIManager.Instance.ShowUIPanel(y.PanelConfig.ShopPanel.Path, 2, 13)
                }, t.prototype.ClickAutoBtn = function() {
                    if (this._summonAutoCurrencyId) {
                        var e = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit"),
                            t = d.DataCenter.Instance.GetItemCount(this._summonAutoCurrencyId);
                        if (t >= this._summonAutoCurrencyCount) {
                            var n = Math.floor(t / this._summonAutoCurrencyCount),
                                o = n > e ? e : n;
                            this.DisplayUseItemPanel(o)
                        } else m.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._summonAutoCurrencyId.ToItemName()))
                    }
                }, t.prototype.OnTouchEndProgressRewards = function() {
                    var e = _.default.Instance.IsGameModuleUnlock(u.GameModuleType.ProgressRewards);
                    if (!e[0]) return m.UIUtlity.ShowFloatingHint(e[1]);
                    var t = _.default.GetProgressRewardsByType(u.ProgressRewardsType.Personality);
                    if (t.value < t.maxValue) return m.UIUtlity.ShowFloatingHint("progress_rewards_progress_not_enough".ToUILocale());
                    var n = new p.Req_Card_ReceiveProgressRewards;
                    n.Type = u.ProgressRewardsType.Personality, C.RpcComponent.Instance.Call(n, function(e) {
                        e.Rewards.length > 0 && m.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.DisplayUseItemPanel = function(e) {
                    var t = {};
                    t.UseItemId = this._summonAutoCurrencyId, t.Title = "use".ToUILocale(), t.MaxCount = e, t.PerItemCount = this._summonAutoCurrencyCount, t.Callback = this.RequestAutoSummon.bind(this), a.UIManager.Instance.ShowUIPanel(y.PanelConfig.BuyAndSellItemPanel.Path, null, null, null, S.BuyAndSellType.Use, null, null, t)
                }, t.prototype.RequestAutoSummon = function(e) {
                    var t = new p.Req_Card_CommonSummon;
                    t.Type = u.CardCommonSummonType.PersonalitySummon, t.ItemId = this._summonAutoCurrencyId, t.Count = e, d.RpcComponent.Instance.Call(t, this.RequestAutoSummonSuccess.bind(this))
                }, t.prototype.RequestAutoSummonSuccess = function(e) {
                    var t = [];
                    e.Items.forEach(function(e) {
                        var n = new p.UserItem_Model;
                        n.ItemId = e.Items[0], n.Count = e.Items[1], t.push(n)
                    }), a.UIManager.Instance.ShowUIPanelByQueue(y.PanelConfig.DisplayRewardsPanel.Path, t, b.RewardPanelSpineType.SpineFlash)
                }, t.LAYOUT_TWO_NODES = 130, t.LAYOUT_THREE_NODES = 30, i([T(cc.Button)], t.prototype, "RateBtn", void 0), i([T(cc.Label)], t.prototype, "RateBtnLabel", void 0), i([T(cc.Button)], t.prototype, "ShopBtn", void 0), i([T(cc.Label)], t.prototype, "ShopBtnLabel", void 0), i([T(cc.Button)], t.prototype, "SwitchBtn", void 0), i([T(cc.Label)], t.prototype, "SwitchBtnLabel", void 0), i([T(cc.Button)], t.prototype, "SummonBtnOne", void 0), i([T(cc.Label)], t.prototype, "SummonBtnOneLabel", void 0), i([T(cc.Button)], t.prototype, "SummonBtnTen", void 0), i([T(cc.Label)], t.prototype, "SummonBtnTenLabel", void 0), i([T(l.default)], t.prototype, "CurrencyBarOne", void 0), i([T(l.default)], t.prototype, "CurrencyBarTen", void 0), i([T(cc.Toggle)], t.prototype, "SkipAnimationToggle", void 0), i([T(cc.Label)], t.prototype, "SkipHint", void 0), i([T(cc.RichText)], t.prototype, "FreeLabel", void 0), i([T(cc.Layout)], t.prototype, "ButtonLayout", void 0), i([T(cc.Node)], t.prototype, "AutoSummonNode", void 0), i([T(cc.Button)], t.prototype, "AutoBtn", void 0), i([T(cc.Label)], t.prototype, "AutoBtnLabel", void 0), i([T(l.default)], t.prototype, "CurrencyBarAuto", void 0), i([T(w.default)], t.prototype, "ProgressRewards", void 0), n = i([A], t)
            }(cc.Component);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/index": "index",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/SectorProgressBar": "SectorProgressBar",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./CommonRatePanel": "CommonRatePanel",
        "./DisplayRewardsPanel": "DisplayRewardsPanel"
    }],
    PersonalSummonResult: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8937aaEfO5D1ZH43UYoItGs", "PersonalSummonResult");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/CurrencyBarItem"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../../Consts/Consts"),
            _ = e("./PersonalSummonCardComponent"),
            C = e("../../Auxiliary/GameRecord"),
            v = e("../Components/ItemComponent"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0, !1, !0), t.Title = null, t.RuleBtn = null, t.HeaderCurrencyBars = [], t.ItemContainer = null, t.CloseBtn = null, t.CloseBtnLabel = null, t.SummonBtn = null, t.SummonBtnLabel = null, t.SummonCurrencyBarItem = null, t.BtnContainer = null, t.ExtraRewardNode = null, t.ExtraRewardsContainer = null, t.ExtraRewardHint = null, t.QueenSummonCurrency = [m.CommonItemId.Diamond, m.CommonItemId.PersonalSummonTicket], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_DISPLAY_SUMMON_CARD_END, this.OnDisplayEnd, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_DISPLAY_SUMMON_CARD_END, this.OnDisplayEnd, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(f.BundlePath.ItemComponent), n = this.LoadDynamicAsset("PersonalSummonPanel/PersonalSummonCardComponent"), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._summonCardPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CloseBtn.node.on("click", this.OnReturnPanel, this), this.SummonBtn.node.on("click", this.OnSummon, this), this.CloseBtnLabel.string = "close".ToUILocale(), this.Title.string = "summon_3".ToUILocale(), this.ExtraRewardHint.string = "extraThingsInThisTurn".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._summonType = t[0], this._itemsData = t[1], this._isSkipAnimation = t[2], this._cardSummonConfig = p.ConfigDataComponent.Instance.GetConfigById(u.CardCommonSummon_Config, this._summonType), this._starEffectPool = new cc.NodePool
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.ConfigHeader(), this.PlayEffectByType(), this.ConfigSummonCurrencyBar(), this.ConfigExtraReards(), this.BtnContainer.active = !1, this.ExtraRewardNode.active = !1, t || this.ConfigSummonTimes(), [2]
                        })
                    })
                }, t.prototype.ConfigHeader = function() {
                    for (var e = this.QueenSummonCurrency, t = 0; t < this.HeaderCurrencyBars.length; t++) this.HeaderCurrencyBars[t].Init(e[t])
                }, t.prototype.ConfigSummonTimes = function() {
                    switch (this._summonType) {
                        case I.CardCommonSummonType.PersonalitySummon:
                            this._summonTimes = 1, this.SummonBtnLabel.string = "summon_times".ToUILocale().Fmt(1);
                            break;
                        case I.CardCommonSummonType.PersonalitySummon10:
                            this._summonTimes = 10, this.SummonBtnLabel.string = "summon_times".ToUILocale().Fmt(10)
                    }
                }, t.prototype.ConfigSummonCurrencyBar = function() {
                    for (var e = 0; e < this._cardSummonConfig.ConsumeItem.length; e++) {
                        var t = this._cardSummonConfig.ConsumeItem[e];
                        if (this._currencyId = t.Items[0], this._currencyCount = t.Items[1], p.DataCenter.Instance.GetItemCount(this._currencyId) >= this._currencyCount) break
                    }
                    this.SummonCurrencyBarItem.Init(this._currencyId, !1, this._currencyCount);
                    var n = p.DataCenter.Instance.IsItemEnough(this._currencyId, this._currencyCount);
                    this.SummonCurrencyBarItem.SetFixedColor(n ? cc.Color.WHITE : cc.Color.RED)
                }, t.prototype.ConfigExtraReards = function() {
                    if (!(this.ExtraRewardsContainer.childrenCount > 0)) {
                        for (var e = 0, t = 0; t < this._cardSummonConfig.ExtraReward.length; t++) {
                            var n = this._cardSummonConfig.ExtraReward[t].Items[0],
                                o = this._cardSummonConfig.ExtraReward[t].Items[1];
                            if (n != m.CommonItemId.ProgressRewardsPersonality) {
                                this._summonType == I.CardCommonSummonType.PersonalitySummon10 && (o *= 10);
                                var r = this.ExtraRewardsContainer.children[e];
                                r ? r.active = !0 : (r = cc.instantiate(this._itemPrefab)).setParent(this.ExtraRewardsContainer), r.getComponent(v.ItemComponent).Init({
                                    ItemId: n,
                                    Count: o
                                }), e++
                            }
                        }
                        for (t = e; t < this.ExtraRewardsContainer.childrenCount; t++) this.ExtraRewardsContainer.children[t].active = !1
                    }
                }, t.prototype.PlayEffectByType = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function() {
                            for (e = 0; e < this.ItemContainer.childrenCount; e++) this._starEffectPool.put(this.ItemContainer.children[e]);
                            switch (this.ItemContainer.removeAllChildren(), this._summonType) {
                                case I.CardCommonSummonType.PersonalitySummon:
                                    this.PlayOneEffect();
                                    break;
                                case I.CardCommonSummonType.PersonalitySummon10:
                                    this.PlayTenEffect()
                            }
                            return [2]
                        })
                    })
                }, t.prototype.PlayOneEffect = function() {
                    var e = this.GetStarEffectNode();
                    e.getComponent(_.default).Init(this._summonType, this._itemPrefab, this._itemsData[0], this._isSkipAnimation), e.setParent(this.ItemContainer)
                }, t.prototype.PlayTenEffect = function() {
                    for (var e = 0; e < this._itemsData.length; e++) {
                        var t = this.GetStarEffectNode();
                        t.getComponent(_.default).Init(this._summonType, this._itemPrefab, this._itemsData[e], this._isSkipAnimation, e), t.setParent(this.ItemContainer)
                    }
                }, t.prototype.GetStarEffectNode = function() {
                    return this._starEffectPool.size() > 0 ? this._starEffectPool.get() : cc.instantiate(this._summonCardPrefab)
                }, t.prototype.OnReturnPanel = function() {
                    h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnSummon = function() {
                    var e = this;
                    if (p.DataCenter.Instance.GetItemCount(this._currencyId) < this._currencyCount) this._currencyId == I.CommonItemId.Diamond ? h.UIManager.Instance.ShowUIPanel(f.PanelConfig.MallNewPanel.Path, [I.MallPageType.DiamondShop, I.GiftPackType.BuyDiamond]) : d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._currencyId.ToItemName()));
                    else {
                        if (this._currencyId == I.CommonItemId.Diamond && !C.default.GetItem(C.GameRecordDefine.SummonCostDiamondHint)) return d.UIUtlity.ShowHintPanel(null, "costDiamondSummonHint".ToUILocale().Fmt(this._currencyCount), "", null, "", function() {
                            e.DoRequestSummonJob()
                        }, void 0, C.GameRecordDefine.SummonCostDiamondHint);
                        this.DoRequestSummonJob()
                    }
                }, t.prototype.DoRequestSummonJob = function() {
                    d.UIUtlity.ShowMaskPanel();
                    var e = new c.Req_Card_CommonSummon;
                    e.Type = this._summonType, e.ItemId = this._currencyId, p.RpcComponent.Instance.Call(e, this.OnSummonSucces.bind(this), this.OnSummonError.bind(this))
                }, t.prototype.OnSummonSucces = function(e) {
                    d.UIUtlity.CloseMaskPanel();
                    for (var t = [], n = 0; n < e.Items.length; n++) t.push(e.Items[n].Items);
                    this._itemsData = t, this.DisPlay(!0)
                }, t.prototype.OnSummonError = function() {
                    d.UIUtlity.CloseMaskPanel()
                }, t.prototype.OnDisplayEnd = function() {
                    this.BtnContainer.active = !0, this.ExtraRewardNode.active = !0
                }, t.prototype.OnClickItem = function(e, t) {
                    this.ExtraRewardsContainer.children.indexOf(t) >= 0 && t.getComponent(v.ItemComponent).ShowItemTip()
                }, t.Radius = 440, t.Angle = 36, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Button)], t.prototype, "RuleBtn", void 0), i([w(g.default)], t.prototype, "HeaderCurrencyBars", void 0), i([w(cc.Node)], t.prototype, "ItemContainer", void 0), i([w(cc.Button)], t.prototype, "CloseBtn", void 0), i([w(cc.Label)], t.prototype, "CloseBtnLabel", void 0), i([w(cc.Button)], t.prototype, "SummonBtn", void 0), i([w(cc.Label)], t.prototype, "SummonBtnLabel", void 0), i([w(g.default)], t.prototype, "SummonCurrencyBarItem", void 0), i([w(cc.Node)], t.prototype, "BtnContainer", void 0), i([w(cc.Node)], t.prototype, "ExtraRewardNode", void 0), i([w(cc.Node)], t.prototype, "ExtraRewardsContainer", void 0), i([w(cc.Label)], t.prototype, "ExtraRewardHint", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/ItemComponent": "ItemComponent",
        "./PersonalSummonCardComponent": "PersonalSummonCardComponent"
    }],
    PersonalSwitchPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5da7fODuMBO3oX949424cRu", "PersonalSwitchPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/CurrencyBarItem"),
            h = e("../../../Consts/Consts"),
            f = e("../Components/CustomLayout"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/ItemComponent"),
            m = e("../../Components/DataCenter"),
            I = e("../../Components/Components"),
            _ = e("../Components/HeroElementGroup"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("./CommonRatePanel"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.LeftIcon = null, t.RightIcon = null, t.RuleBtn = null, t.RightNode = null, t.CurrencyBar = null, t.ReturnBtn = null, t.CustomLayout = null, t.ElementGroup = null, t.SwitchBtn = null, t.SwitchBtnLabel = null, t.SwitchCostLabel = null, t.CancelBtn = null, t.CancelBtnLabel = null, t.ConfirmBtn = null, t.ConfirmBtnLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), l.Game.EventDispatcher.On(y.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this), l.Game.EventDispatcher.Off(y.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ReturnBtn.node.on("click", this.Close, this), this.Title.string = "personal_switch".ToUILocale(), this.SwitchBtnLabel.string = "personal_switch".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.ConfirmBtnLabel.string = "ok".ToUILocale(), this.SwitchBtn.node.on("click", this.OnSwitch, this), this.CancelBtn.node.on("click", this.OnCancel, this), this.ConfirmBtn.node.on("click", this.OnConfirm, this), this.RuleBtn.node.on("click", this.OnClickRule, this), this.RightNode.on(cc.Node.EventType.TOUCH_END, this.OnCheckRate, this);
                    var t = I.ConfigDataComponent.Instance.GetConfigById(u.CardProphetSummon_Config, 6);
                    this._switchTicket = t.CurrencyId, this._switchCost = t.BaseCurrencyCount, this.SwitchCostLabel.string = this._switchCost.toString(), this.CurrencyBar.Init(this._switchTicket)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this._currentElement = -1
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this)
                }, t.prototype.DisPlay = function(t) {
                    return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                        var n;
                        return s(this, function() {
                            return e.prototype.DisPlay.call(this, t), this.ConfigItemData(), this.ConfigSwitchState(), this.InitCustomLayout(), n = this._currentElement < 0 ? 0 : this._currentElement, this.ElementGroup.SetElementModeByIndex(n), [2]
                        })
                    })
                }, t.prototype.ConfigItemData = function() {
                    this._itemData = {};
                    var e = [];
                    this._itemData[h.HeroElementType.All] = e;
                    for (var t = m.DataCenter.Instance.GetDataList(c.UserItem_Model), n = 0; n < t.length; n++) {
                        var o = t[n];
                        if (!(o.Count <= 0)) {
                            var r = I.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, o.ItemId);
                            if (r.Type == h.ItemType.Personality && r.ElementType != h.HeroElementType.Break && r.ElementType != h.HeroElementType.Fight && r.ElementType != h.HeroElementType.Chaos) {
                                e.push(o);
                                var i = this._itemData[r.ElementType];
                                i ? i.push(o) : ((i = []).push(o), this._itemData[r.ElementType] = i)
                            }
                        }
                    }
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._itemData[n._currentElement][t];
                        e.name = o.ItemId.toString();
                        var r = e.getComponent(g.ItemComponent);
                        r.Init(o), o.ItemId == n._currentSelectId ? (r.SetSelectFlagState(!0), n._lastSelectItem = e) : r.SetSelectFlagState(!1)
                    })
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.CustomLayout.Init(this._itemPrefab))
                }, t.prototype.OnSwitchHeroElement = function(e) {
                    if (this._currentElement != e) {
                        this._currentElement = e;
                        var t = this._itemData[this._currentElement],
                            n = 0;
                        t && (n = t.length), this.CustomLayout.RenderLayOut(n)
                    }
                }, t.prototype.ConfigSwitchState = function() {
                    this._currentSelectId = m.DataCenter.Instance.GetIntData(h.UserDataKey.CurrentBeDisplacePersonality), this._currentSwitchId = m.DataCenter.Instance.GetIntData(h.UserDataKey.CurrentNewDisplacePersonality);
                    var e = 0;
                    this._currentSelectId ? e = this._currentSelectId : this._lastSelectItem && (e = this._lastSelectItem.getComponent(g.ItemComponent).ItemId), this._currentSwitchId ? (this.SwitchBtn.node.active = !1, this.CancelBtn.node.active = !0, this.ConfirmBtn.node.active = !0) : (this.SwitchBtn.node.active = !0, this.CancelBtn.node.active = !1, this.ConfirmBtn.node.active = !1), this.SetPersonalIcon(this.LeftIcon, e), this.SetPersonalIcon(this.RightIcon, this._currentSwitchId)
                }, t.prototype.SetPersonalIcon = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r, i, a;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return t ? (n = I.ConfigDataComponent.Instance.GetConfigById(u.ItemPersonality_Config, t), (o = I.ConfigDataComponent.Instance.GetConfigById(u.HeroBase_Config, n.HeroId)).AdultPictures.length > 0 ? (r = o.AdultPictures[0].Items[0], i = "HeroPersonalityPanel/PersonalityPictures/" + r, [4, this.LoadDynamicAsset(i, cc.SpriteFrame)]) : [3, 2]) : [3, 3];
                                case 1:
                                    if (a = s.sent(), !this.isValid) return C.AssetsManager.Instance.UnloadAsset(a), [2];
                                    a.name == i && (e.spriteFrame = a), s.label = 2;
                                case 2:
                                    return [3, 4];
                                case 3:
                                    e.spriteFrame = null, s.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    if (-1 != this.CustomLayout.node.children.indexOf(t)) {
                        if (this._currentSwitchId > 0) return v.UIUtlity.ShowFloatingHint("personal_cant_switch".ToUILocale());
                        this._currentSelectId = e, this.SetPersonalIcon(this.LeftIcon, e), this._lastSelectItem && this._lastSelectItem.getComponent(g.ItemComponent).SetSelectFlagState(!1), this._lastSelectItem = t, t.getComponent(g.ItemComponent).SetSelectFlagState(!0)
                    }
                }, t.prototype.OnSwitch = function() {
                    var e = 0;
                    if (this._currentSelectId ? e = this._currentSelectId : this._lastSelectItem && (e = this._lastSelectItem.getComponent(g.ItemComponent).ItemId), !e) return v.UIUtlity.ShowFloatingHint("personal_switch_select_hint".ToUILocale());
                    if (!m.DataCenter.Instance.IsItemEnough(this._switchTicket, this._switchCost)) return v.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._switchTicket.ToItemName()));
                    var t = new c.Req_Card_PersonalityDisplace;
                    t.ItemId = e, I.RpcComponent.Instance.Call(t, this.OnSwitchSucces.bind(this))
                }, t.prototype.OnSwitchSucces = function() {
                    this.CurrencyBar.Init(this._switchTicket), this.ConfigSwitchState()
                }, t.prototype.OnCancel = function() {
                    var e = this,
                        t = new c.Req_Card_PersonalityDisplaceCancel;
                    t.ItemId = this._currentSelectId, t.NewItemId = this._currentSwitchId, I.RpcComponent.Instance.Call(t, function() {
                        return e.ConfigSwitchState(), v.UIUtlity.ShowFloatingHint("personal_switch_cancel".ToUILocale())
                    })
                }, t.prototype.OnConfirm = function() {
                    var e = this,
                        t = new c.Req_Card_PersonalityDisplaceSave;
                    t.ItemId = this._currentSelectId, t.NewItemId = this._currentSwitchId, I.RpcComponent.Instance.Call(t, function() {
                        e._lastSelectItem = null, e.ConfigItemData(), e.ConfigSwitchState();
                        var t = e._currentElement;
                        return e._currentElement = -1, e.ElementGroup.SetElementModeByIndex(t), v.UIUtlity.ShowFloatingHint("oracleDraw_saveSuccess".ToUILocale())
                    })
                }, t.prototype.OnClickRule = function() {
                    var e = "personalSwitch_rule_title".ToUILocale(),
                        t = ["HeroTalent_Rule".ToUILocale()],
                        n = ["personalSwitch_rule_content".ToUILocale()];
                    v.UIUtlity.ShowRulePanel({
                        name: e,
                        titles: t,
                        contents: n
                    })
                }, t.prototype.OnCheckRate = function() {
                    if (this._currentSelectId > 0) {
                        var e = void 0;
                        switch (I.ConfigDataComponent.Instance.GetConfigById(u.ItemBase_Config, this._currentSelectId).ElementType) {
                            case h.HeroElementType.Heart:
                                e = 410201;
                                break;
                            case h.HeroElementType.Power:
                                e = 410202;
                                break;
                            case h.HeroElementType.Tech:
                                e = 410203
                        }
                        var t = I.ConfigDataComponent.Instance.GetConfigById(u.CardShowChance_Config, e);
                        C.UIManager.Instance.ShowUIPanel(p.PanelConfig.CommonRatePanel.Path, b.ShowRateType.Personality, t.ShowLib)
                    }
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Sprite)], t.prototype, "LeftIcon", void 0), i([P(cc.Sprite)], t.prototype, "RightIcon", void 0), i([P(cc.Button)], t.prototype, "RuleBtn", void 0), i([P(cc.Node)], t.prototype, "RightNode", void 0), i([P(d.default)], t.prototype, "CurrencyBar", void 0), i([P(cc.Button)], t.prototype, "ReturnBtn", void 0), i([P(f.default)], t.prototype, "CustomLayout", void 0), i([P(_.default)], t.prototype, "ElementGroup", void 0), i([P(cc.Button)], t.prototype, "SwitchBtn", void 0), i([P(cc.Label)], t.prototype, "SwitchBtnLabel", void 0), i([P(cc.Label)], t.prototype, "SwitchCostLabel", void 0), i([P(cc.Button)], t.prototype, "CancelBtn", void 0), i([P(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([P(cc.Button)], t.prototype, "ConfirmBtn", void 0), i([P(cc.Label)], t.prototype, "ConfirmBtnLabel", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonRatePanel": "CommonRatePanel"
    }],
    PersonalityAttrItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c2ec3Go+GJCZLj9y5qCcl6i", "PersonalityAttrItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.AttrLabel = null, t.AddAttrNumLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.Icon.spriteFrame = e, this.AttrLabel.string = t, this.AddAttrNumLabel.string = n
                }, i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([l(cc.Label)], t.prototype, "AttrLabel", void 0), i([l(cc.Label)], t.prototype, "AddAttrNumLabel", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    PersonalityCallToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6bbe4NHj61CT4AbjS4TNqpy", "PersonalityCallToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelLabels = [], t.UnlockLevelLabels = [], t
                }
                return r(t, e), t.prototype.InitDisplay = function(e, t) {
                    this.LevelLabels.forEach(function(t) {
                        t.string = e.toString()
                    }), this.UnlockLevelLabels.forEach(function(e) {
                        e.string = t
                    })
                }, i([l({
                    type: [cc.Label]
                })], t.prototype, "LevelLabels", void 0), i([l({
                    type: [cc.Label]
                })], t.prototype, "UnlockLevelLabels", void 0), i([s], t)
            }(cc.Toggle);
        n.default = c, cc._RF.pop()
    }, {}],
    PersonalityHandbookComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c95caVIlb9JooQmjxESIHFG", "PersonalityHandbookComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelectBg = null, t.GrayNode = null, t.Icon = null, t.RedDotNode = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnCardClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnCardClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._index = e, this.SelectBg.active = e == n, this.LoadSpriteFrame("HeroStaticImage/" + t)
                }, t.prototype.LoadSpriteFrame = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return [4, c.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._loadedAssets.push(t), this.Icon.spriteFrame = t, [2]) : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetRedDot = function(e) {
                    this.RedDotNode.active = e
                }, t.prototype.SetSelectBG = function(e) {
                    this.SelectBg.active = e
                }, t.prototype.IsGrayIcon = function(e) {
                    e ? p.UIUtlity.OnNodeGray(this.GrayNode) : p.UIUtlity.OffNodeGray(this.GrayNode)
                }, t.prototype.OnCardClick = function() {
                    l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_PERSONALITYHANDBOOK_REFRESH, this._index)
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([f(cc.Node)], t.prototype, "SelectBg", void 0), i([f(cc.Node)], t.prototype, "GrayNode", void 0), i([f(cc.Sprite)], t.prototype, "Icon", void 0), i([f(cc.Node)], t.prototype, "RedDotNode", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    PersonalityHandbookItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1a4eem1m/5IlJj0UrBcY/hM", "PersonalityHandbookItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GameRecord"),
            u = e("../Auxiliary/UIUtlity"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BaseNode = null, t.SelectedEffect = null, t.LockedStatus = null, t.HandbookItemBG = null, t.UnlockCondition = null, t.UnlockConditionDescLabel = null, t.UnlockConditionLabel = null, t.CurPersonalityNode = null, t.CurPersonalityLabel = null, t.NewNode = null, t.InUseTitle = null, t.InUseTitleLabel = null, t._isInUse = !1, t._unlocked = !1, t._itemId = 0, t._unlockLevel = 0, t._isSelected = !1, t._handbookItemSpriteFrame = null, t._isShowing = !1, t._heroId = 0, t._inUseKey = "FvorHandbookItem_InUse", t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o, r, i, a) {
                    void 0 === r && (r = 0), this._panelInstance = e, this._isInUse = t, this._unlocked = n, this._itemId = o, this._unlockLevel = r, this._isShowing = i, this._heroId = a, this.BaseNode.on(cc.Node.EventType.TOUCH_END, this.OnItemClicked, this), this.InitView()
                }, t.prototype.InitView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i = this;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return this.InUseTitle.active = this._isInUse, this.InUseTitleLabel.string = this._inUseKey.ToUILocale(), this.UnlockConditionDescLabel.string = "personality_condition".ToUILocale(), this.CurPersonalityLabel.string = "personality_current".ToUILocale(), this.HandbookItemBG.node.active = this._unlocked, this.LockedStatus.node.active = !this._unlocked, this.UnlockCondition.active = !this._unlocked, this.CurPersonalityNode.active = this._isShowing, this.NewNode.active = !1, (e = c.default.GetItem(c.GameRecordDefine.NewPersonality)) && (t = JSON.parse(e))[this._heroId] && t[this._heroId].length > 0 && (n = t[this._heroId], o = n.findIndex(function(e) {
                                        return e == i._itemId
                                    }), this.NewNode.active = o > -1), this._unlocked ? (r = this, [4, l.AssetsManager.Instance.LoadAsset("HeroPersonalityPanel/PersonalityPictures/" + this._itemId.toString(), cc.SpriteFrame)]) : [3, 2];
                                case 1:
                                    return r._handbookItemSpriteFrame = a.sent(), this.isValid ? (this.HandbookItemBG.spriteFrame = this._handbookItemSpriteFrame, [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(this._handbookItemSpriteFrame), [2]);
                                case 2:
                                    this.UnlockConditionLabel.string = this._unlockLevel.toString(), a.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onLoad = function() {}, t.prototype.onDestroy = function() {
                    this.BaseNode.off(cc.Node.EventType.TOUCH_END, this.OnItemClicked), null != this._handbookItemSpriteFrame && l.AssetsManager.Instance.UnloadAsset(this._handbookItemSpriteFrame)
                }, t.prototype.SetSelecteStatus = function(e) {
                    this._isSelected = e, this.SelectedEffect.node.active = e
                }, t.prototype.SetIsShowing = function(e) {
                    this._isShowing = e, this.CurPersonalityNode.active = e
                }, t.prototype.SetInUseStatus = function(e) {
                    this._isInUse = e, this.InUseTitle.active = e
                }, Object.defineProperty(t.prototype, "IsInUse", {
                    get: function() {
                        return this._isInUse
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "ItemId", {
                    get: function() {
                        return this._itemId
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.OnItemClicked = function() {
                    var e = this,
                        t = c.default.GetItem(c.GameRecordDefine.NewPersonality);
                    if (t) {
                        var n = JSON.parse(t);
                        if (n[this._heroId] && n[this._heroId].length > 0) {
                            var o = n[this._heroId],
                                r = o.findIndex(function(t) {
                                    return t == e._itemId
                                });
                            r > -1 && (o.splice(r), n[this._heroId] = o, c.default.SetItem(c.GameRecordDefine.NewPersonality, JSON.stringify(n)), this.NewNode.active = !1)
                        }
                    }
                    this._unlocked ? this._isSelected ? this._isSelected = !0 : (this._panelInstance.OnItemSelected(this._itemId), this.SelectedEffect.node.active = !0) : u.UIUtlity.ShowFloatingHint("personality_unlock_level".ToUILocale().Fmt(this._unlockLevel))
                }, i([h(cc.Node)], t.prototype, "BaseNode", void 0), i([h(cc.Sprite)], t.prototype, "SelectedEffect", void 0), i([h(cc.Sprite)], t.prototype, "LockedStatus", void 0), i([h(cc.Sprite)], t.prototype, "HandbookItemBG", void 0), i([h(cc.Node)], t.prototype, "UnlockCondition", void 0), i([h(cc.Label)], t.prototype, "UnlockConditionDescLabel", void 0), i([h(cc.Label)], t.prototype, "UnlockConditionLabel", void 0), i([h(cc.Node)], t.prototype, "CurPersonalityNode", void 0), i([h(cc.Label)], t.prototype, "CurPersonalityLabel", void 0), i([h(cc.Node)], t.prototype, "NewNode", void 0), i([h(cc.Node)], t.prototype, "InUseTitle", void 0), i([h(cc.Label)], t.prototype, "InUseTitleLabel", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    PersonalityHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "93f92CofVxIM7oew3b3C8ZO", "PersonalityHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Components/Components"),
            h = e("../../Components/DataCenter"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/PersonalityHandbookItem"),
            g = e("../../../ShareConsts/EnumType"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new p.UIPanelType(p.UINodeType.Tip, !0), t.HandbookItemsContainer = null, t.SetToUseButton = null, t.SetToUseButtonLabel = null, t.SetToCancelButton = null, t.SetToCancelButtonLabel = null, t.ChangeButton = null, t.ChangeButtonLabel = null, t.ReturnButton = null, t._itemIdSelected = 0, t._handbookItemPrefeb = null, t._itemInstanceMap = new Map, t._setToUseButonKey = "FavorHandbook_SetToUse", t._setToCancelButtonKey = "FavorHandbook_SetToCancel", t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._currHeroId = t[0], p.EZLog.Log("InitData _currHeroId " + this._currHeroId), this._currHeroConfig = d.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, this._currHeroId), this._currHeroData = h.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._currHeroId), this._itemIdSelected = this._currHeroData.Picture || 0
                }, t.prototype.InitUI = function() {
                    this.InitLabels(), this.ReturnButton.node.on("click", this.OnReturnButtonClicked, this), this.SetToCancelButton.node.on("click", this.OnSetToCancelButtonClicked, this), this.SetToUseButton.node.on("click", this.OnSetToUseButtonClicked, this), this.ChangeButton.node.on("click", this.OnChangeButtonClicked, this)
                }, t.prototype.DisPlay = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e.prototype.DisPlay.call(this), [4, this.InitFavorbookItemList()];
                                case 1:
                                    return t.sent(), this.SetButtonView(), [2]
                            }
                        })
                    })
                }, t.prototype.InitLabels = function() {
                    this.SetToCancelButtonLabel.string = this._setToCancelButtonKey.ToUILocale(), this.SetToUseButtonLabel.string = this._setToUseButonKey.ToUILocale(), this.ChangeButtonLabel.string = "personality_change_show".ToUILocale()
                }, t.prototype.InitFavorbookItemList = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, c, u, d, h;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return this.HandbookItemsContainer.destroyAllChildren(), this._itemInstanceMap.clear(), e = this.HandbookItemsContainer.getComponent(cc.Layout), this._currHeroConfig.AdultPictures.length <= 3 ? e.type = cc.Layout.Type.HORIZONTAL : e.type = cc.Layout.Type.GRID, null != this._handbookItemPrefeb ? [3, 2] : (t = this, [4, p.AssetsManager.Instance.LoadAsset("HeroPersonalityPanel/SubItems/PersonalityHandbookItem")]);
                                case 1:
                                    if (t._handbookItemPrefeb = s.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._handbookItemPrefeb), [2];
                                    s.label = 2;
                                case 2:
                                    for (n = 0; n < this._currHeroConfig.AdultPictures.length; n++) o = this._currHeroConfig.AdultPictures[n].Items[0], r = this._currHeroConfig.AdultPictures[n].Items[1], i = cc.instantiate(this._handbookItemPrefeb), a = i.getComponent(y.default), c = this._currHeroData.AdultPicture == o, u = this._currHeroData.PersonalityStar >= r, d = this._currHeroData.Picture == o, h = o == this._currHeroData.Picture, a.Init(this, c, u, o, r, d, this._currHeroId), a.SetSelecteStatus(h), this.HandbookItemsContainer.addChild(i), this._itemInstanceMap.set(o, a);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetButtonView = function() {
                    if (0 != this._itemIdSelected) {
                        var e = this._itemInstanceMap.get(this._itemIdSelected);
                        this.SetToCancelButton.node.active = e.IsInUse, this.SetToUseButton.node.active = !e.IsInUse, this.ChangeButton.node.active = !0
                    } else this.SetToCancelButton.node.active = !1, this.SetToUseButton.node.active = !1, this.ChangeButton.node.active = !1
                }, t.prototype.OnItemSelected = function(e) {
                    0 != this._itemIdSelected && this._itemInstanceMap.get(this._itemIdSelected).SetSelecteStatus(!1), this._itemIdSelected = e, this.SetButtonView()
                }, t.prototype.OnReturnButtonClicked = function() {
                    p.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnSetToUseButtonClicked = function() {
                    var e = new u.Req_Personality_SetAdultPictures;
                    e.HeroId = this._currHeroId, e.Type = g.PersonalityPictureType.Adult;
                    for (var t = 0; t < this._currHeroConfig.AdultPictures.length; t++)
                        if (this._itemIdSelected == this._currHeroConfig.AdultPictures[t].Items[0]) {
                            e.Index = t;
                            break
                        } var n = this._currHeroConfig.AdultPictures[e.Index];
                    if (n) {
                        var o = n.Items[1];
                        if (this._currHeroData.PersonalityStar < o) return void f.UIUtlity.ShowFloatingHint("unlock".ToUILocale())
                    }
                    p.EZLog.Log("OnSetToUseButtonClicked CurrentHeroID " + e.HeroId), d.RpcComponent.Instance.Call(e, function() {
                        this.OnSendRequestSuccess(!0)
                    }.bind(this))
                }, t.prototype.OnSetToCancelButtonClicked = function() {
                    p.EZLog.Log("OnSetToCancelButtonClicked CurrentHeroID " + this._currHeroId);
                    var e = new u.Req_Personality_SetAdultPictures;
                    e.HeroId = this._currHeroId, e.Index = -1, e.Type = g.PersonalityPictureType.Adult, p.EZLog.Log("OnSetToUseButtonClicked CurrentHeroID " + e.HeroId), d.RpcComponent.Instance.Call(e, function() {
                        this.OnSendRequestSuccess(!1)
                    }.bind(this))
                }, t.prototype.OnSendRequestSuccess = function(e) {
                    var t = this;
                    this._currHeroData = h.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._currHeroId), this._itemInstanceMap.forEach(function(e) {
                        e.ItemId == t._currHeroData.AdultPicture ? e.SetInUseStatus(!0) : e.SetInUseStatus(!1)
                    }), this.SetButtonView(), 1 == e ? f.UIUtlity.ShowFloatingHint("personality_set".ToUILocale()) : f.UIUtlity.ShowFloatingHint("personality_cancle".ToUILocale())
                }, t.prototype.OnChangeButtonClicked = function() {
                    var e = this,
                        t = new u.Req_Personality_SetAdultPictures;
                    t.HeroId = this._currHeroId, t.Type = g.PersonalityPictureType.Picture;
                    for (var n = 0; n < this._currHeroConfig.AdultPictures.length; n++)
                        if (this._itemIdSelected == this._currHeroConfig.AdultPictures[n].Items[0]) {
                            t.Index = n;
                            break
                        } this._itemIdSelected != this._currHeroData.Picture ? (p.EZLog.Log("OnSetToUseButtonClicked CurrentHeroID " + t.HeroId), d.RpcComponent.Instance.Call(t, function() {
                        e._currHeroData = h.DataCenter.Instance.GetDataById(u.HeroInfo_Model, e._currHeroId), e._itemInstanceMap.forEach(function(t) {
                            t.ItemId == e._currHeroData.Picture ? t.SetIsShowing(!0) : t.SetIsShowing(!1)
                        }), f.UIUtlity.ShowFloatingHint("personality_set_default".ToUILocale())
                    }.bind(this))) : f.UIUtlity.ShowFloatingHint("personality_default".ToUILocale())
                }, i([_(cc.Node)], t.prototype, "HandbookItemsContainer", void 0), i([_(cc.Button)], t.prototype, "SetToUseButton", void 0), i([_(cc.Label)], t.prototype, "SetToUseButtonLabel", void 0), i([_(cc.Button)], t.prototype, "SetToCancelButton", void 0), i([_(cc.Label)], t.prototype, "SetToCancelButtonLabel", void 0), i([_(cc.Button)], t.prototype, "ChangeButton", void 0), i([_(cc.Label)], t.prototype, "ChangeButtonLabel", void 0), i([_(cc.Button)], t.prototype, "ReturnButton", void 0), i([I], t)
            }(p.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/PersonalityHandbookItem": "PersonalityHandbookItem"
    }],
    PersonalityMaxLevelPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9e792O3wtdKk5WNoUJSxdwF", "PersonalityMaxLevelPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Components/Components"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Auxiliary/DataUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Title = null, t.AttrNodes = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "hero_personality_max_level".ToUILocale()
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t);
                    var o = s.ConfigDataComponent.Instance.GetArrayConfig(l.PersonalityStar_Config),
                        r = o[o.length - 1];
                    this.AttrNodes.forEach(function(e) {
                        e.active = !1
                    }), r.Attrs.forEach(function(e, t) {
                        if (n.AttrNodes[t]) {
                            n.AttrNodes[t].active = !0;
                            var o = e.Items[0],
                                r = e.Items[1],
                                i = s.ConfigDataComponent.Instance.GetConfigById(l.HeroAttribute_Config, o),
                                a = c.default.GetAttrIcon(o);
                            cc.find("Icon", n.AttrNodes[t]).getComponent(cc.Sprite).spriteFrame = a, cc.find("Tag", n.AttrNodes[t]).getComponent(cc.Label).string = i.Name.ToUILocale(), cc.find("ValueNode/Value1", n.AttrNodes[t]).getComponent(cc.Label).string = 1 == i.Format ? "+" + r : "+" + Math.round(r / 10) + "%", cc.find("ValueNode/Value2", n.AttrNodes[t]).active = !1
                        }
                    })
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "AttrNodes", void 0), i([p], t)
            }(a.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    PersonalityTipSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c307fteiFRHJrPOdJHl/hUZ", "PersonalityTipSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Components/Components"),
            I = e("../../Components/DataCenter"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property;
        (function(e) {
            e[e.UpStar = 1] = "UpStar", e[e.UnLock = 2] = "UnLock"
        })(l || (l = {}));
        var b = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new f.UIPanelType(f.UINodeType.Tip), t.HeroAvatarNode = null, t.TitleImage = null, t.EffectImage = null, t.UpStarDescLabel = null, t.DoubleNode = null, t.BeforeStarLabel = null, t.AfterStarLabel = null, t.SingleNode = null, t.CurStarLabel = null, t.UpAttrDescLabel = null, t.UnLockDescLabel = null, t.NewBtnNode = null, t.NoNewUnlockLabel = null, t.NewButton = null, t.UnlockLabel = null, t.AttrNodes = [], t._currHeroId = 0, t._currHeroData = null, t._currHeroConfig = null, t._isReDisplay = !1, t._attrItemNodes = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.NewButton.node.on("click", this.OnNewButtonClicked, this)
            }, t.prototype.onDisable = function() {
                this.NewButton.node.off("click", this.OnNewButtonClicked, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HeroFavorPanel/PNG/HeroFavor", cc.SpriteAtlas)];
                            case 1:
                                return t._atlas = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.InitLabels()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._currHeroId = t[0], this._type = t[1], this._currHeroData = I.DataCenter.Instance.GetDataById(h.HeroInfo_Model, this._currHeroId), t[2] ? this._oldStar = t[2] : this._oldStar = this._currHeroData.PersonalityStar - 1, this._currHeroConfig = m.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, this._currHeroId), this.EffectImage.spriteFrame = this._atlas.getSpriteFrame("upgradeSuccessLight")
            }, t.prototype.InitLabels = function() {
                this.UpStarDescLabel.string = "personality_up".ToUILocale(), this.UpAttrDescLabel.string = "upgrade_attr".ToUILocale(), this.UnLockDescLabel.string = "personality_unlock_desc".ToUILocale(), this.NoNewUnlockLabel.string = "personality_no_new".ToUILocale(), this.UnlockLabel.string = "personality_new".ToUILocale()
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.InitAttrNodes(), this.SetUpStar(), this.LoadTitleAvatar(), this.SetPersonalityUnlock(), this.SetNodeAttributeList()
            }, t.prototype.InitAttrNodes = function() {
                this._attrItemNodes.forEach(function(e) {
                    e.active = !1
                })
            }, t.prototype.SetUpStar = function() {
                this.SingleNode.active = this._type == l.UnLock, this.DoubleNode.active = this._type == l.UpStar, this._type == l.UpStar ? (this.BeforeStarLabel.string = this._oldStar.toString(), this.AfterStarLabel.string = this._currHeroData.PersonalityStar.toString()) : this._type == l.UnLock && (this.CurStarLabel.string = this._currHeroData.PersonalityStar.toString())
            }, t.prototype.SetNodeAttributeList = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function() {
                        return e = m.ConfigDataComponent.Instance.GetConfigById(p.PersonalityStar_Config, this._currHeroData.PersonalityStar), this.AttrNodes.forEach(function(e) {
                            e.active = !1
                        }), (t = m.ConfigDataComponent.Instance.GetConfigById(p.PersonalityStar_Config, this._oldStar)) ? e.Attrs.forEach(function(e, o) {
                            var r = e.Items[0],
                                i = e.Items[1],
                                a = 0,
                                s = t.Attrs.findIndex(function(e) {
                                    return e.Items[0] == r
                                });
                            s > -1 && (i = e.Items[1] - t.Attrs[s].Items[1], a = t.Attrs[s].Items[1]), n.AttrNodes[o].active = !0;
                            var l = m.ConfigDataComponent.Instance.GetConfigById(p.HeroAttribute_Config, r),
                                c = y.default.GetAttrIcon(r);
                            cc.find("Icon", n.AttrNodes[o]).getComponent(cc.Sprite).spriteFrame = c, cc.find("Tag", n.AttrNodes[o]).getComponent(cc.Label).string = l.Name.ToUILocale(), cc.find("ValueNode/Value1", n.AttrNodes[o]).getComponent(cc.Label).string = 1 == l.Format ? a.toString() : Math.round(a / 10) + "%", cc.find("ValueNode/Value2", n.AttrNodes[o]).active = !0, cc.find("ValueNode/Value2", n.AttrNodes[o]).getComponent(cc.Label).string = 1 == l.Format ? "+" + i : "+" + Math.round(i / 10) + "%"
                        }) : e.Attrs.forEach(function(e, t) {
                            var o = e.Items[0],
                                r = e.Items[1],
                                i = m.ConfigDataComponent.Instance.GetConfigById(p.HeroAttribute_Config, o),
                                a = y.default.GetAttrIcon(o);
                            n.AttrNodes[t].active = !0, cc.find("Icon", n.AttrNodes[t]).getComponent(cc.Sprite).spriteFrame = a, cc.find("Tag", n.AttrNodes[t]).getComponent(cc.Label).string = i.Name.ToUILocale(), cc.find("ValueNode/Value1", n.AttrNodes[t]).getComponent(cc.Label).string = 1 == i.Format ? "+0" : "+0%", cc.find("ValueNode/Value2", n.AttrNodes[t]).active = !0, cc.find("ValueNode/Value2", n.AttrNodes[t]).getComponent(cc.Label).string = 1 == i.Format ? "+" + r : "+" + Math.round(r / 10) + "%"
                        }), [2]
                    })
                })
            }, t.prototype.LoadTitleAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this.HeroAvatarNode.destroyAllChildren(), (e = this._currHeroData.Picture) || (e = this._currHeroConfig.AdultPictures[0].Items[0]), [4, c.AssetsManager.Instance.LoadAsset("AdultPicture" + e + "/Avatar")];
                            case 1:
                                return t = o.sent(), 1 == this._type || this._type, this.isValid ? (t.name == "AdultPicture" + e + "/Avatar" && ((n = cc.instantiate(t)).setParent(this.HeroAvatarNode), this._avatarAlphaTween && this._avatarAlphaTween.stop(), this._isReDisplay || (n.opacity = 20, this._avatarAlphaTween = cc.tween(n).to(.25, {
                                    opacity: 255
                                }, {
                                    easing: "cubicIn"
                                }).start()), this._isReDisplay = !1), [2]) : (f.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.SetPersonalityUnlock = function() {
                this.NewBtnNode.active = this.CheckNewPersonality(), this.NoNewUnlockLabel.node.active = !this.CheckNewPersonality()
            }, t.prototype.CheckNewPersonality = function() {
                var e = !1,
                    t = I.DataCenter.Instance.GetDataById(u.HeroInfo_Model, this._currHeroData.HeroId),
                    n = m.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._currHeroData.HeroId),
                    o = t.PersonalityStar || 0;
                return n.AdultPictures && n.AdultPictures.length > 0 && n.AdultPictures.forEach(function(t) {
                    t.Items[1] == o && (e = !0)
                }), e
            }, t.prototype.OnNewButtonClicked = function() {
                f.UIManager.Instance.BackUIPanel(), f.UIManager.Instance.ShowUIPanel(g.PanelConfig.PersonalityHandbookPanel.Path, this._currHeroId)
            }, i([v(cc.Node)], t.prototype, "HeroAvatarNode", void 0), i([v(cc.Sprite)], t.prototype, "TitleImage", void 0), i([v(cc.Sprite)], t.prototype, "EffectImage", void 0), i([v(cc.Label)], t.prototype, "UpStarDescLabel", void 0), i([v(cc.Node)], t.prototype, "DoubleNode", void 0), i([v(cc.Label)], t.prototype, "BeforeStarLabel", void 0), i([v(cc.Label)], t.prototype, "AfterStarLabel", void 0), i([v(cc.Node)], t.prototype, "SingleNode", void 0), i([v(cc.Label)], t.prototype, "CurStarLabel", void 0), i([v(cc.Label)], t.prototype, "UpAttrDescLabel", void 0), i([v(cc.Label)], t.prototype, "UnLockDescLabel", void 0), i([v(cc.Node)], t.prototype, "NewBtnNode", void 0), i([v(cc.Label)], t.prototype, "NoNewUnlockLabel", void 0), i([v(cc.Button)], t.prototype, "NewButton", void 0), i([v(cc.Label)], t.prototype, "UnlockLabel", void 0), i([v(cc.Node)], t.prototype, "AttrNodes", void 0), i([C], t)
        }(f.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter"
    }],
    PetCardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b9c92YLdIVFfLqN5XwU3ynk", "PetCardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./LevelComponent"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/DataCenter"),
            d = e("../../Components/Components"),
            h = e("./LoadAssetHelper"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Icon = null, t.Border = null, t.PetLevel = null, t.LevelComponent = null, t.RedDot = null, t.OwnerNode = null, t.ItemNode = null, t.DarkNode = null, t.LockNode = null, t.SelectedBorder = null, t.HintLabel = null, t._starLevel = 0, t._level = 0, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    void 0 === t && (t = !0), this.HideAllNode(), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(h.default)), this._petData = null, e instanceof s.UserPet_Model ? (this._petData = e, this._itemId = e.Sid, this._starLevel = e.Star, this._level = e.Level, this.SetLockState(!1)) : (this._itemId = e.ItemId, this._starLevel = e.StarLevel, this._level = 0, t && this.SetLockState(!0)), this.ConfigPetInfo()
                }, t.prototype.HideAllNode = function() {
                    this.node.children.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.ConfigPetInfo = function() {
                    this.SetPetBorderAndBg(), this.SetIcon(), this.SetStarLevel(), this.SetLevel(), this.SetOwner()
                }, t.prototype.SetPetBorderAndBg = function() {
                    var e, t, n = d.ConfigDataComponent.Instance.GetConfigById(l.PetBase_Config, this._itemId).Quality;
                    7 == n ? (e = "card_border_7", t = "card_bg_7") : 9 == n ? (e = "card_border_ur", t = "card_bg_ur") : (e = "card_border_" + n, t = "card_bg_" + n);
                    var o = c.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(e),
                        r = c.UIUtlity.HEROCOMPONENT_ATLAS.getSpriteFrame(t);
                    this.Border.node.active = !0, this.Border.spriteFrame = o, this.Bg.node.active = !0, this.Bg.spriteFrame = r
                }, t.prototype.SetIcon = function() {
                    this.Icon.node.active = !0, this._loadAssetHelper.LoadSpriteFrame(u.BundlePath.PetCardIcon + "/" + this._itemId, this.Icon)
                }, t.prototype.SetStarLevel = function() {
                    this._starLevel > 0 ? (this.LevelComponent.node.active = !0, this.LevelComponent.Init(this._starLevel, 0, a.StarLayoutMode.Left)) : this.LevelComponent.node.active = !1
                }, t.prototype.SetLevel = function() {
                    this._level > 0 ? (this.PetLevel.node.active = !0, this.PetLevel.string = "Lv." + this._level) : this.PetLevel.node.active = !1
                }, t.prototype.SetLockState = function(e) {
                    this.DarkNode.active = e, this.LockNode.active = e
                }, t.prototype.SetOwner = function() {
                    if (this._petData) {
                        for (var e, t = 0, n = this._petData.Owners; t < n.length; t++) {
                            var o = n[t];
                            if (o > 0) {
                                e = o;
                                break
                            }
                        }
                        if (e) {
                            var r = p.DataCenter.Instance.GetDataById(s.UserHero_Model, e);
                            this.OwnerNode.active = !!r
                        } else this.OwnerNode.active = !1
                    } else this.OwnerNode.active = !1
                }, t.prototype.SetRedDotState = function(e, t) {
                    this.RedDot.active = e, t && (this.RedDot.scale = t)
                }, t.prototype.SetSelectedBorder = function(e) {
                    e ? (this.SelectedBorder.spriteFrame || (this.SelectedBorder.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("itemMask1")), this.SelectedBorder.node.active = !0) : this.SelectedBorder.node.active = !1
                }, t.prototype.ShowHandBookLock = function() {
                    this.HintLabel.string = "heroSkin_notGet".ToUILocale(), this.DarkNode.active = !0, this.HintLabel.node.parent.active = !0
                }, i([g(cc.Sprite)], t.prototype, "Bg", void 0), i([g(cc.Sprite)], t.prototype, "Icon", void 0), i([g(cc.Sprite)], t.prototype, "Border", void 0), i([g(cc.Label)], t.prototype, "PetLevel", void 0), i([g(a.LevelComponent)], t.prototype, "LevelComponent", void 0), i([g(cc.Node)], t.prototype, "RedDot", void 0), i([g(cc.Node)], t.prototype, "OwnerNode", void 0), i([g(cc.Node)], t.prototype, "ItemNode", void 0), i([g(cc.Node)], t.prototype, "DarkNode", void 0), i([g(cc.Node)], t.prototype, "LockNode", void 0), i([g(cc.Sprite)], t.prototype, "SelectedBorder", void 0), i([g(cc.Label)], t.prototype, "HintLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LevelComponent": "LevelComponent",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    PetChangeItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "32715h7J8NJQLrRUDfU76zI", "PetChangeItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../../../GamePlay/Components/Components"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/EventKeys"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.HeroContainer = null, t.HeroItemContainer = null, t.OwnerTag = null, t.ItemName = null, t.ItemScore = null, t.ChangeBtn = null, t.ChangeBtnLabel = null, t.WearBtn = null, t.WearBtnLabel = null, t.BtnUpLabel = null, t.TakeOffBtn = null, t.TakeOffLabel = null, t._isInitial = !1, t._usedByHolyRelic = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._isInitial || (this._isInitial = !0, this.InitUI()), this._selectHero = e, this._petData = t, this._itemPrefab = n, o && (this._usedByHolyRelic = !0, this._commonEquipSetData = o), this.ConfigEquipItem(), this.ConfigHeroItem(), this.ConfigButtons()
                }, t.prototype.InitUI = function() {
                    this.ChangeBtn.node.on("click", this.OnChange, this), this.WearBtn.node.on("click", this.OnWear, this), this.TakeOffBtn.node.on("click", this.ClickTakeOffBtn, this), this.WearBtnLabel.string = "pet_take".ToUILocale(), this.TakeOffLabel.string = "PowerCore_Remove".ToUILocale(), this.OwnerTag.string = "holyEquip_worn_by".ToUILocale()
                }, t.prototype.ConfigEquipItem = function() {
                    if (!this._petComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._petComponent = e.getComponent(d.ItemComponent)
                    }
                    var t = c.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, this._petData.Sid),
                        n = c.ConfigDataComponent.Instance.GetConfigById(u.PetQuality_Config, t.Quality);
                    this.ItemScore.string = "equip_score_tag".ToUILocale() + ": " + (n.StarScore * this._petData.Star + n.LevelScore * this._petData.Level).toString(), this._petComponent.Init(this._petData, d.ItemComponentType.Pet), this.ItemName.string = this._petData.Sid.ToPetName()
                }, t.prototype.ConfigHeroItem = function() {
                    if (this._usedByHolyRelic) this.HeroContainer.active = !1;
                    else {
                        if (!this._heroComponent) {
                            var e = cc.instantiate(this._itemPrefab);
                            e.setParent(this.HeroItemContainer), this._heroComponent = e.getComponent(d.ItemComponent)
                        }
                        for (var t, n = 0, o = this._petData.Owners; n < o.length; n++) {
                            var r = o[n];
                            if (r > 0) {
                                t = r;
                                break
                            }
                        }
                        t ? (this.HeroContainer.active = !0, this._heroComponent.node.active = !0, this._owner = c.DataCenter.Instance.GetDataById(s.UserHero_Model, t), this._heroComponent.Init(this._owner, d.ItemComponentType.HeroInfo)) : (this.HeroContainer.active = !1, this._owner = void 0, this._heroComponent.node.active = !1)
                    }
                }, t.prototype.ConfigButtons = function() {
                    this.ChangeBtn.node.active = !1, this.WearBtn.node.active = !1, this.TakeOffBtn.node.active = !1, this._usedByHolyRelic ? (this.TakeOffBtn.node.active = 1 == this._commonEquipSetData.IsSelf, this.ChangeBtn.node.active = !this._commonEquipSetData.IsSelf && (0 === this._commonEquipSetData.EquipmentSetTeamIndex || this._commonEquipSetData.EquipmentSetTeamIndex > 0), this.WearBtn.node.active = !this._commonEquipSetData.IsSelf && (null == this._commonEquipSetData.EquipmentSetTeamIndex || null == this._commonEquipSetData.EquipmentSetTeamIndex), this.ChangeBtnLabel.string = "equip_replace".ToUILocale()) : this._owner ? (this.ChangeBtn.node.active = !0, this._owner.Sid == this._selectHero.Sid ? this.ChangeBtnLabel.string = "PowerCore_Remove".ToUILocale() : this.ChangeBtnLabel.string = "equip_replace".ToUILocale()) : this.WearBtn.node.active = !0, this._usedByHolyRelic && (0 === this._commonEquipSetData.EquipmentSetTeamIndex || this._commonEquipSetData.EquipmentSetTeamIndex > 0) ? this.BtnUpLabel.string = "HolyRelic_wearInfo".ToUILocale().Fmt(this._commonEquipSetData.EquipmentSetTeamIndex + 1, this._commonEquipSetData.EquipmentSetTeamSlot + 1) : this.BtnUpLabel.string = ""
                }, t.prototype.OnChange = function() {
                    var e;
                    if (this._usedByHolyRelic) a.Game.EventDispatcher.Emit(f.EventKeys.HOLYRELIC_WEAR, this._commonEquipSetData);
                    else if (this._owner.Sid == (null === (e = this._selectHero) || void 0 === e ? void 0 : e.Sid)) {
                        l.UIUtlity.ShowMaskPanel();
                        var t = new s.Req_Item_PetPutOn;
                        t.Sid = this._petData.Sid, c.RpcComponent.Instance.Call(t, this.OnPutOffSucces.bind(this), this.OnWearFail.bind(this))
                    } else this.OnWear()
                }, t.prototype.OnWear = function() {
                    if (this._usedByHolyRelic) a.Game.EventDispatcher.Emit(f.EventKeys.HOLYRELIC_WEAR, this._commonEquipSetData);
                    else if (this._selectHero) {
                        l.UIUtlity.ShowMaskPanel();
                        var e = new s.Req_Item_PetPutOn;
                        e.Sid = this._petData.Sid, e.OwnerId = this._selectHero.Sid, this._oldBP = this._selectHero.Power, c.RpcComponent.Instance.Call(e, this.OnWearSucces.bind(this), this.OnWearFail.bind(this))
                    }
                }, t.prototype.OnWearSucces = function() {
                    if (this._selectHero) {
                        p.UIManager.Instance.CloseUIPanel(h.PanelConfig.PetChangePanel.Path), l.UIUtlity.CloseMaskPanel(), a.Game.EventDispatcher.Emit(f.EventKeys.EVENT_PET_DATA_REFRESH), l.UIUtlity.ShowFloatingHint("pet_take_success".ToUILocale());
                        var e = c.DataCenter.Instance.GetDataById(s.UserHero_Model, this._selectHero.Sid);
                        p.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattlePowerChangePanel.Path, this._oldBP, e.Power)
                    }
                }, t.prototype.OnWearFail = function() {
                    p.UIManager.Instance.CloseUIPanel(h.PanelConfig.PetChangePanel.Path), l.UIUtlity.CloseMaskPanel()
                }, t.prototype.OnPutOffSucces = function() {
                    p.UIManager.Instance.CloseUIPanel(h.PanelConfig.PetChangePanel.Path), l.UIUtlity.CloseMaskPanel(), a.Game.EventDispatcher.Emit(f.EventKeys.EVENT_PET_DATA_REFRESH), l.UIUtlity.ShowFloatingHint("pet_unload_success".ToUILocale())
                }, t.prototype.OnClickItem = function(e, t) {
                    var n = t.getComponent(d.ItemComponent);
                    this._petComponent == n && a.UIManager.Instance.ShowUIPanel(h.PanelConfig.ItemWithModelTipsPanel.Path, this._petData, t)
                }, t.prototype.ClickTakeOffBtn = function() {
                    this._usedByHolyRelic && a.Game.EventDispatcher.Emit(f.EventKeys.HOLYRELIC_WEAR, this._commonEquipSetData)
                }, i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([m(cc.Node)], t.prototype, "HeroContainer", void 0), i([m(cc.Node)], t.prototype, "HeroItemContainer", void 0), i([m(cc.Label)], t.prototype, "OwnerTag", void 0), i([m(cc.Label)], t.prototype, "ItemName", void 0), i([m(cc.Label)], t.prototype, "ItemScore", void 0), i([m(cc.Button)], t.prototype, "ChangeBtn", void 0), i([m(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([m(cc.Button)], t.prototype, "WearBtn", void 0), i([m(cc.Label)], t.prototype, "WearBtnLabel", void 0), i([m(cc.Label)], t.prototype, "BtnUpLabel", void 0), i([m(cc.Button)], t.prototype, "TakeOffBtn", void 0), i([m(cc.Label)], t.prototype, "TakeOffLabel", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PetChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ace51MtmGlLfLxP6J3E609T", "PetChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Consts"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../GamePlay/Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../Components/ItemComponent"),
            m = e("../Components/CustomLayout"),
            I = e("../Components/ItemClickComponent"),
            _ = e("./PetChangeItem"),
            C = e("./SelectLuckyCharmHint"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../Components/PetSelectTabComponent"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.ItemContainer = null, t.ItemName = null, t.TagContainer = null, t.TagLabel = null, t.ItemTypeDesc = null, t.ItemTypeValue = null, t.ItemScoreDesc = null, t.ItemScoreValue = null, t.NoneEquipHintNode = null, t.ScrollviewBg = null, t.CustomLayout = null, t.NonePetHint = null, t.ElementUp = null, t.ResetButton = null, t.SelectButtons = [], t.HintNode = null, t.HintLayout = null, t._isCusomLayoutInit = !1, t._usedByHolyRelic = !1, t._selectIndex = -1, t._selectTabs = [-1, -1, -1], t._tabNodes = [], t._sortPetsModelArray = [], t._staticDesc = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(p.EventKeys.HOLYRELIC_WEAR, this.OnWearHolyRelicEqu, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), l.Game.EventDispatcher.Off(p.EventKeys.HOLYRELIC_WEAR, this.OnWearHolyRelicEqu, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this.OnSelectTab, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(d.BundlePath.ItemComponent), n = this.LoadDynamicAsset("HeroPetPanel/Components/PetChangeItem"), o = this.LoadDynamicAsset("HeroPetPanel/Components/PetSelectTabComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._changeItemPrefab = e[1], r._tabPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.ItemTypeDesc.string = "equip_type_tag".ToUILocale(), this.ItemScoreDesc.string = "equip_score_tag".ToUILocale(), this.TagLabel.string = "pet_current_take".ToUILocale(), this.NonePetHint.string = "pet_not_have".ToUILocale(), this.ItemTypeValue.string = "pet".ToUILocale(), this.ElementUp.string = "pet_equip_element".ToUILocale(), this._staticDesc = ["screen_isDress".ToUILocale(), "common_quality".ToUILocale(), "common_element".ToUILocale()], this.ResetButton.node.on("click", this.OnResetButtonClick, this), this.SelectButtons.forEach(function(e) {
                        e.node.on("click", t.OnSelectButtonClick, t)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectHero = t[0], t[1] && (this._usedByHolyRelic = !0, this._commonEquipSetData = t[1]), this._totalModels = f.DataCenter.Instance.GetDataList(c.UserPet_Model), this._totalModels.sort(this.SortPets.bind(this))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.ConfigSelectItem(), this.InitCusomtLayout(), this._sortPetsModelArray = this._totalModels.concat(), this.SetNoPetHint(), this.CustomLayout.RenderLayOut(this._sortPetsModelArray.length), this.SetSelectNode(t)
                }, t.prototype.ConfigSelectItem = function() {
                    var e;
                    if (!this._itemComponent) {
                        var t = cc.instantiate(this._itemPrefab);
                        t.setParent(this.ItemContainer), t.getComponent(I.default).enabled = !1, this._itemComponent = t.getComponent(g.ItemComponent)
                    }
                    var n = f.DataCenter.Instance.GetHeroPet(null === (e = this._selectHero) || void 0 === e ? void 0 : e.Sid);
                    if (this._usedByHolyRelic && (n = this._commonEquipSetData.Sids[0] > 0 ? this._commonEquipSetData.Sids : []), n.length > 0) {
                        var o = f.DataCenter.Instance.GetDataById(c.UserPet_Model, n[0]);
                        this._itemComponent.Init(o, g.ItemComponentType.Pet);
                        var r = f.ConfigDataComponent.Instance.GetConfigById(y.PetBase_Config, o.Sid),
                            i = f.ConfigDataComponent.Instance.GetConfigById(y.PetQuality_Config, r.Quality);
                        this.ItemScoreValue.string = (i.StarScore * o.Star + i.LevelScore * o.Level).toString(), this.ItemName.string = o.Sid.ToPetName(), this.TagContainer.active = !0
                    } else this._itemComponent.SetItemSimpleState(), this.ItemScoreValue.string = "", this.ItemName.string = "pet_not_take".ToUILocale(), this.TagContainer.active = !1
                }, t.prototype.InitCusomtLayout = function() {
                    this._isCusomLayoutInit || (this._isCusomLayoutInit = !0, this.CustomLayout.Init(this._changeItemPrefab))
                }, t.prototype.UpdateCustomLayout = function() {
                    this._sortPetsModelArray.length || h.UIUtlity.ShowFloatingHint("pet_not_have".ToUILocale()), this.SetNoPetHint(), this.CustomLayout.RenderLayOut(this._sortPetsModelArray.length)
                }, t.prototype.SetNoPetHint = function() {
                    0 == this._sortPetsModelArray.length ? (this.NoneEquipHintNode.active = !0, this.ScrollviewBg.active = !1) : (this.NoneEquipHintNode.active = !1, this.ScrollviewBg.active = !0)
                }, t.prototype.OnResetButtonClick = function() {
                    this._selectTabs = [-1, -1, -1], this._selectIndex = -1, this.HintNode.active = !1, this._sortPetsModelArray = this._totalModels.concat(), this.SetSelectNode(!1), this.UpdateCustomLayout()
                }, t.prototype.OnSelectButtonClick = function(e) {
                    var t = Number(e.node.name);
                    t == this._selectIndex ? (this._selectIndex = -1, this.HintNode.active = !1) : (this._selectIndex = t, this.HintNode.active = !0, this.ResetTabNodes(), this.SetSelectTabHint(), this.SetHintNodePosition()), this.SetSelectNode(!0)
                }, t.prototype.OnSelectTab = function(e) {
                    if (this._selectIndex < this._selectTabs.length) {
                        if (this._selectTabs[this._selectIndex] == e) return this.HintNode.active = !1, this._selectIndex = -1, void this.SetSelectNode(!0);
                        this._selectTabs[this._selectIndex] = e, this.SetSelectTabHint(), this.SortArray(), this.UpdateCustomLayout(), this._selectIndex = -1, this.HintNode.active = !1, this.SetSelectNode(!0)
                    }
                }, t.prototype.ResetTabNodes = function() {
                    this._tabNodes.forEach(function(e) {
                        e.active = !1
                    })
                }, t.prototype.SetSelectNode = function(e) {
                    var t = this;
                    this.SelectButtons.forEach(function(n, o) {
                        var r = cc.find("Background/SelectLabel", n.node).getComponent(cc.Label);
                        if (cc.find("ArrowSprite", n.node).scaleY = t._selectIndex == o ? 1 : -1, e) {
                            var i = t.GetPropertyList(o),
                                a = i[0];
                            if (o < t._selectTabs.length) {
                                var s = t._selectTabs[o];
                                if (s < i.length && s >= 0) {
                                    a = i[s];
                                    var l = t.GetDesc(o, a);
                                    r.string = l
                                }
                            }
                        } else r.string = t._staticDesc[o]
                    })
                }, t.prototype.SortArray = function() {
                    var e = [],
                        t = [],
                        n = 0;
                    e = this._totalModels.concat();
                    for (var o = function() {
                            t = [];
                            var o = r.GetPropertyList(n),
                                i = -1;
                            if (r._selectTabs[n] < o.length) {
                                var a = -1 == r._selectTabs[n] ? 0 : r._selectTabs[n];
                                i = o[a]
                            }
                            if (-1 == i) return n++, "continue";
                            switch (n) {
                                case 0:
                                    i > 0 ? e.forEach(function(e) {
                                        v.default.Instance.GetPetOwnerCountByModel(e) && t.push(e)
                                    }) : 0 == i && e.forEach(function(e) {
                                        v.default.Instance.GetPetOwnerCountByModel(e) || t.push(e)
                                    });
                                    break;
                                case 1:
                                    e.forEach(function(e) {
                                        f.ConfigDataComponent.Instance.GetConfigById(y.PetBase_Config, e.Sid).Quality == i && t.push(e)
                                    });
                                    break;
                                default:
                                    t = e
                            }
                            e = t, n++
                        }, r = this; n < 3;) o();
                    this._sortPetsModelArray = e
                }, t.prototype.SetSelectTabHint = function() {
                    var e = this;
                    if (this.HintNode.active = this._selectIndex > -1, this._selectIndex > -1 && this._selectIndex < this._selectTabs.length) {
                        var t = this.GetPropertyList(this._selectIndex),
                            n = t.length;
                        t.forEach(function(t, o) {
                            if (!e._tabNodes[o]) {
                                var r = cc.instantiate(e._tabPrefab);
                                r.parent = e.HintLayout, e._tabNodes[o] = r
                            }
                            e._tabNodes[o].active = !0;
                            var i = e._selectTabs[e._selectIndex],
                                a = e.GetDesc(e._selectIndex, t);
                            e._tabNodes[o].getComponent(b.default).InitUI(i, o, a, n)
                        })
                    }
                }, t.prototype.GetPropertyList = function(e) {
                    var t = [];
                    switch (e) {
                        case 0:
                            t = [-1, 1, 0];
                            break;
                        case 1:
                            var n = f.ConfigDataComponent.Instance.GetArrayConfig(y.PetQuality_Config);
                            t = [-1], n.forEach(function(e) {
                                t.push(e.Id)
                            });
                            break;
                        case 2:
                            t = [-1, u.HeroElementType.Heart, u.HeroElementType.Power, u.HeroElementType.Tech, u.HeroElementType.Break, u.HeroElementType.Fight, u.HeroElementType.Chaos]
                    }
                    return t
                }, t.prototype.GetDesc = function(e, t) {
                    var n = "";
                    switch (e) {
                        case 0:
                            n = t >= 0 ? t > 0 ? "screen_dress".ToUILocale() : "screen_undress".ToUILocale() : "screen_all".ToUILocale();
                            break;
                        case 1:
                            n = t < 0 ? "screen_all".ToUILocale() : ("pet_quality_" + t).ToUILocale();
                            break;
                        case 2:
                            n = t < 0 ? "screen_all".ToUILocale() : t.ToHeroElementName()
                    }
                    return n
                }, t.prototype.SetHintNodePosition = function() {
                    if (this.SelectButtons[this._selectIndex]) {
                        var e = this.SelectButtons[this._selectIndex].node.convertToWorldSpaceAR(cc.v2(0, 0)),
                            t = this.node.convertToNodeSpaceAR(e);
                        this.HintNode.x = t.x, this.HintNode.y = t.y + 40
                    }
                }, t.prototype.SortPets = function(e, t) {
                    var n, o, r = f.ConfigDataComponent.Instance.GetConfigById(y.PetBase_Config, e.Sid),
                        i = f.ConfigDataComponent.Instance.GetConfigById(y.PetBase_Config, t.Sid),
                        a = v.default.Instance.GetPetOwnerCountByModel(e),
                        s = v.default.Instance.GetPetOwnerCountByModel(t);
                    return a && !s ? 1 : !a && s ? -1 : a && s ? e.Owners.includes(null === (n = this._selectHero) || void 0 === n ? void 0 : n.Sid) ? -1 : t.Owners.includes(null === (o = this._selectHero) || void 0 === o ? void 0 : o.Sid) ? 1 : r.Quality == i.Quality ? e.Star == t.Star ? e.Level == t.Level ? t.Sid - e.Sid : t.Level - e.Level : t.Star - e.Star : i.Quality - r.Quality : r.Quality == i.Quality ? e.Star == t.Star ? e.Level == t.Level ? t.Sid - e.Sid : t.Level - e.Level : t.Star - e.Star : i.Quality - r.Quality
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = e.getComponent(_.default),
                            r = n._sortPetsModelArray[t].Sid;
                        if (n._usedByHolyRelic) {
                            var i = C.default.GetEquipmentSetInfo(r, u.ArtefactRelicEquipIndex.Pet),
                                a = {};
                            a.Sid = r, a.IsSelf = r == n._commonEquipSetData.Sids[0], i && (a.EquipmentSetTeamIndex = i.equipmentSetTeamIndex, a.EquipmentSetTeamSlot = i.equipmentSetTeamSlot, a.EquipmentSetIndex = i.equipmentSetIndex), o.Init(n._selectHero, n._sortPetsModelArray[t], n._itemPrefab, a)
                        } else o.Init(n._selectHero, n._sortPetsModelArray[t], n._itemPrefab)
                    })
                }, t.prototype.OnWearHolyRelicEqu = function(e) {
                    var t, n, o;
                    n = u.ArtefactRelicEquipIndex.Pet, o = u.ArtefactRelicEquipIndex.Pet;
                    var r = {};
                    e.IsSelf ? (r.Type = 1, r.CurEquipType = n, r.CurTeamIndex = this._commonEquipSetData.TeamIndex, r.CurSlot = this._commonEquipSetData.Slot, r.CurIndex = this._commonEquipSetData.Index) : f.DataCenter.Instance.GetHeroPet(null === (t = this._selectHero) || void 0 === t ? void 0 : t.Sid)[0] || null != e.EquipmentSetTeamIndex && null != e.EquipmentSetTeamIndex ? (r.Type = 3, r.CurEquipType = n, r.CurTeamIndex = this._commonEquipSetData.TeamIndex, r.CurSlot = this._commonEquipSetData.Slot, r.CurIndex = this._commonEquipSetData.Index, r.TargetEquipType = o, r.TargetTeamIndex = e.EquipmentSetTeamIndex, r.TargetSlot = e.EquipmentSetTeamSlot, r.TargetIndex = e.EquipmentSetIndex, r.TargetSid = e.Sid) : (r.Type = 2, r.CurTeamIndex = this._commonEquipSetData.TeamIndex, r.CurSlot = this._commonEquipSetData.Slot, r.CurIndex = this._commonEquipSetData.Index, r.TargetEquipType = o, r.TargetSid = e.Sid), l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_COMMON_EQUIPMENT_SET_DATA, r), this.Close()
                }, i([P(cc.Node)], t.prototype, "ItemContainer", void 0), i([P(cc.Label)], t.prototype, "ItemName", void 0), i([P(cc.Node)], t.prototype, "TagContainer", void 0), i([P(cc.Label)], t.prototype, "TagLabel", void 0), i([P(cc.Label)], t.prototype, "ItemTypeDesc", void 0), i([P(cc.Label)], t.prototype, "ItemTypeValue", void 0), i([P(cc.Label)], t.prototype, "ItemScoreDesc", void 0), i([P(cc.Label)], t.prototype, "ItemScoreValue", void 0), i([P(cc.Node)], t.prototype, "NoneEquipHintNode", void 0), i([P(cc.Node)], t.prototype, "ScrollviewBg", void 0), i([P(m.default)], t.prototype, "CustomLayout", void 0), i([P(cc.Label)], t.prototype, "NonePetHint", void 0), i([P(cc.RichText)], t.prototype, "ElementUp", void 0), i([P(cc.Button)], t.prototype, "ResetButton", void 0), i([P(cc.Button)], t.prototype, "SelectButtons", void 0), i([P(cc.Node)], t.prototype, "HintNode", void 0), i([P(cc.Node)], t.prototype, "HintLayout", void 0), i([w], t)
            }(l.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PetSelectTabComponent": "PetSelectTabComponent",
        "./PetChangeItem": "PetChangeItem",
        "./SelectLuckyCharmHint": "SelectLuckyCharmHint"
    }],
    PetChooseHatchPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ea2feZ1p91LHZfcJDTZIg3q", "PetChooseHatchPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../Components/ChooseHatchItem"),
            h = e("../../../Consts/Consts"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Channel/ChannelManager"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../Components/ItemComponent"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.LeaveTimeLabel = null, t.PrivilegeTimeLabel = null, t.DescRichText = null, t.DescRichText2 = null, t.DescRichText3 = null, t.LangTag = null, t.LangTagLabel = null, t.PayButton = null, t.PayButtonLabel = null, t.AttainNumber = null, t.AttainLabel = null, t.ItemContainer = null, t.Title = null, t.PatternWithContent = null, t.ScrollView = null, t.HatchItemContainer = null, t.BubbleNode = null, t.NeedTimeRichText = null, t.OkButton = null, t.OkButtonLabel = null, t.QuickButton = null, t.QuickButtonLabel = null, t.GrayButton = null, t.GrayButtonLabel = null, t.CostHintRichText = null, t._hatchItemComponent = [], t._privilegeItems = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(f.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySuccess, this), l.Game.EventDispatcher.On(h.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(h.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.On(h.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(f.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySuccess, this), l.Game.EventDispatcher.Off(h.GameEventIds.AddDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(h.GameEventIds.ChangeDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this), l.Game.EventDispatcher.Off(h.GameEventIds.RemoveDataDetail.Fmt(c.UserItem_Model._n_), this.OnUserItemChange, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("HeroPetPanel/Components/ChooseHatchItem", cc.Prefab), this.LoadDynamicAsset(m.BundlePath.ItemComponent, cc.Prefab)]).then(function(e) {
                                        t._hatchItemComponentPrefab = e[0], t._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OkButton.node.on("click", this.OnOkButtonClick, this), this.QuickButton.node.on("click", this.OnQuickButtonClick, this), this.GrayButton.node.on("click", this.OnGrayButtonClick, this), this.OkButtonLabel.string = "ok".ToUILocale(), this.GrayButtonLabel.string = this.QuickButtonLabel.string = "petChoose_hatchQuick".ToUILocale(), this.PayButton.node.on("click", this.OnPayButtonClick, this), this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.LangTagLabel.string = "petChoose_privilegeOpen".ToUILocale(), this.PatternWithContent.string = "pet_selectMagic".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), t && t.length > 0 ? (this._hintText = t[0], this._okBtnCallBack = t[1], this.Title.string = "hint".ToUILocale()) : this.Title.string = "pet_selectMagic".ToUILocale(), this._privilegeConfig = p.ConfigDataComponent.Instance.GetConfigById(u.SubscribePrivilege_Config, h.SubscribePrivilegeType.PetNest), this._giftPackConfig = p.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._privilegeConfig.PackId);
                    var n = p.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.PetHatchIds);
                    this._itemIds = n.Data
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._hintText ? this.CostHintRichText.string = this._hintText : this.SetHatchItemContainer(), this.ConfigPrivilege(), this.SetQuickBtnState()
                }, t.prototype.SetHatchItemContainer = function() {
                    this._itemIds.length >= 4 && (this.ScrollView.enabled = !0, this.HatchItemContainer.anchorX = 0);
                    for (var e = 0; e <= this._itemIds.length; e++) {
                        var t = this._hatchItemComponent[e];
                        if (!t) {
                            var n = cc.instantiate(this._hatchItemComponentPrefab);
                            n.setParent(this.HatchItemContainer), t = n.getComponent(d.default), this._hatchItemComponent[e] = t
                        }
                        t.node.name = e.toString();
                        var o = this._itemIds[e];
                        o > 0 ? t.Init({
                            ItemId: o
                        }) : (t.Init(), t.SetGetWayItemId(h.CommonItemId.AbstractPetId, function() {
                            l.UIManager.Instance.BackUIPanel()
                        }))
                    }
                }, t.prototype.OnOkButtonClick = function() {
                    if (this._okBtnCallBack) this._okBtnCallBack();
                    else if (null != this._chooseHatchItemIndex)
                        if (p.DataCenter.Instance.IsItemEnough(this._chooseHatchItemId, 1)) {
                            var e = new c.Req_Item_PetNestHatch;
                            e.ItemId = this._chooseHatchItemId, p.RpcComponent.Instance.Call(e, function() {
                                l.UIManager.Instance.BackUIPanel()
                            })
                        } else y.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._chooseHatchItemId.ToItemName()));
                    else l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    if (t.parent != this.ItemContainer) {
                        if (-1 != this.HatchItemContainer.children.indexOf(t.parent.parent) && this._chooseHatchItemIndex != e) {
                            null != this._chooseHatchItemIndex && this._hatchItemComponent[this._chooseHatchItemIndex].SetSelectFlagState(!1), this._chooseHatchItemIndex = e, this._chooseHatchItemId = this._itemIds[this._chooseHatchItemIndex], this._hatchItemComponent[this._chooseHatchItemIndex].SetSelectFlagState(!0);
                            var n = p.ConfigDataComponent.Instance.GetConfigById(u.ItemConsume_Config, this._chooseHatchItemId);
                            this.BubbleNode.active = !0, this.NeedTimeRichText.string = "<outline width=3 color=#202434>" + "pet_hatch_time".ToUILocale().Fmt(n.Param[0].Items[0]) + "</outline>", y.UIUtlity.ShowItemTip(this._chooseHatchItemId, t)
                        }
                    } else y.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.ConfigPrivilege = function() {
                    this.DescRichText.string = "priviledgeDesc_26".ToUILocale().Fmt("<outline color=202434 width=3><color=#33ff8e>" + this._privilegeConfig.Privilege[0].Items[1] / 10 + "%</color></outline>"), this._privilegeConfig.Privilege[1] && (this.DescRichText2.node.active = !0, this.DescRichText2.string = ("priviledgeDesc_" + this._privilegeConfig.Privilege[1].Items[0]).ToUILocale().Fmt("33ff8e", "<outline color=202434 width=3>" + this._privilegeConfig.Privilege[1].Items[1] + "</outline>", this._privilegeConfig.Privilege[1].Items[2].ToItemName())), this.DescRichText3.string = "petChoose_privilegeQuick".ToUILocale(), this.AttainNumber.string = "\xd7" + this._giftPackConfig.VipPoint, this.PayButtonLabel.string = g.default.Instance.CurrencySymbol + g.default.Instance.ExchangeMoney(this._giftPackConfig.Money), this.SetPayBtnState(), this.SetTimeByPayState(), this.ConfigPrivilegeItems(this._giftPackConfig.Items)
                }, t.prototype.ConfigPrivilegeItems = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        var n = this._privilegeItems[t];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(this.ItemContainer), n = o.getComponent(I.ItemComponent), this._privilegeItems[t] = n, n.Count.node.scale = 1.5
                        }
                        n.node.name = e[t].Items[0].toString(), n.Init({
                            ItemId: e[t].Items[0],
                            Count: e[t].Items[1]
                        }, I.ItemComponentType.ItemCommon), n.SetSelectFlagState(!this.PayButton.node.active, "select", 126, 124)
                    }
                }, t.prototype.OnPayButtonClick = function() {
                    var e = this;
                    if ("" == this._giftPackConfig.PayId) return p.DataCenter.Instance.GetItemCount(h.CommonItemId.Diamond) < this._giftPackConfig.Money ? void l.UIManager.Instance.ShowUIPanel(m.PanelConfig.ItemGetWayPanel.Path, h.CommonItemId.Diamond) : void y.UIUtlity.ShowHintPanel(null, "mall_query_costDiamondBuy".ToUILocale().Fmt(this._giftPackConfig.Money, this._privilegeConfig.PackId.ToGiftPackName()), "cancel".ToUILocale(), function() {}, "ok".ToUILocale(), function() {
                        var t = new c.Req_Pay_ByDiamond;
                        t.Id = e._giftPackConfig.Id, p.RpcComponent.Instance.Call(t, function(t) {
                            null == t ? y.UIUtlity.ShowFloatingHint("mall_purchaseSuccessed".ToUILocale()) : "" == e._giftPackConfig.PayId && y.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.OnPaySuccess()
                        })
                    });
                    g.default.Instance.Pay(this._giftPackConfig.Id)
                }, t.prototype.OnPaySuccess = function() {
                    l.UIManager.Instance.QuitPanelStack(m.PanelConfig.PetChooseHatchPanel.Path), l.Game.EventDispatcher.Emit(f.EventKeys.EVENT_PRIVILEGE_PAY, this._privilegeConfig.Id)
                }, t.prototype.SetPayBtnState = function() {
                    if (this._giftPackConfig.LimitType == h.LimitBuyType.Not || _.default.Instance.GetGiftBuyCount(this._giftPackConfig.Id) >= this._giftPackConfig.LimitCount) return this.PayButton.node.active = !1, void(this.LangTag.active = !0);
                    var e = p.DataCenter.Instance.GetDataById(c.SubscribePrivilege_Model, this._privilegeConfig.Id);
                    if (e && (-1 == e.CanDay || this._privilegeConfig.Days > e.CanDay - Math.ceil((p.RpcComponent.Instance.ServerTime - e.Time) / h.Etc.DayDuration))) return this.PayButton.node.active = !1, void(this.LangTag.active = !0);
                    this.PayButton.node.active = !0, this.LangTag.active = !1
                }, t.prototype.SetTimeByPayState = function() {
                    this.PayButton.node.active ? (this.PrivilegeTimeLabel.node.parent.active = !0, this.LeaveTimeLabel.node.parent.active = !1, this.PrivilegeTimeLabel.string = "workTime".ToUILocale().Fmt(this._privilegeConfig.Days)) : (this.PrivilegeTimeLabel.node.parent.active = !1, this.LeaveTimeLabel.node.parent.active = !0, p.DataCenter.Instance.GetDataById(c.SubscribePrivilege_Model, this._privilegeConfig.Id) && this.ScheduleTime())
                }, t.prototype.ScheduleTime = function() {
                    this.unschedule(this.ComPuteTime), this.ComPuteTime(), this.schedule(this.ComPuteTime, 1)
                }, t.prototype.ComPuteTime = function() {
                    var e = p.DataCenter.Instance.GetDataById(c.SubscribePrivilege_Model, this._privilegeConfig.Id),
                        t = e.Time + e.CanDay * h.Etc.DayDuration - p.RpcComponent.Instance.ServerTime;
                    t > 0 ? this.LeaveTimeLabel.string = "activityGetWayTime".ToUILocale().Fmt(t.FmtRemainTime()) : (this.SetPayBtnState(), this.SetTimeByPayState(), this.unscheduleAllCallbacks())
                }, t.prototype.SetQuickBtnState = function() {
                    this._hintText ? this.QuickButton.node.active = !1 : (this._unlockQuick = _.default.GetModuleBonusByType(h.ModuleBonusType.PetNestRatio) > 0, this._unlockQuick ? (this.QuickButton.node.active = !0, this.GrayButton.node.active = !1) : (this.QuickButton.node.active = !1, this.GrayButton.node.active = !0))
                }, t.prototype.OnQuickButtonClick = function() {
                    if (this._unlockQuick) {
                        var e = !1,
                            t = new c.Req_Item_OneClickPetNestHatch;
                        t.Materials = [];
                        for (var n = {}, o = 0, r = this._itemIds; o < r.length; o++) {
                            var i = r[o],
                                a = p.DataCenter.Instance.GetItemCount(i);
                            if (!(a <= 0)) {
                                e = !0;
                                for (var s = {
                                        Items: [i, a]
                                    }, d = _.default.Instance.GetPetHatchNeedTime(i), f = p.ConfigDataComponent.Instance.GetConfigById(u.ItemConsume_Config, i), g = 1; g < f.Param.length; g++) {
                                    var I, C = f.Param[g].Items,
                                        v = Math.floor(C[1] / f.Param[0].Items[0]) * Math.floor(d / h.Etc.HourDuration);
                                    if (I = n[C[0]] ? v + n[C[0]] : v, p.DataCenter.Instance.IsItemEnough(C[0], I)) {
                                        s.Items[2] = g, n[C[0]] = I, t.Materials.push(s);
                                        break
                                    }
                                    if (g == f.Param.length - 1) return void l.UIManager.Instance.ShowUIPanel(m.PanelConfig.ItemGetWayPanel.Path, C[0])
                                }
                            }
                        }
                        e ? p.RpcComponent.Instance.Call(t, function(e) {
                            l.UIManager.Instance.BackUIPanel(), y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        }) : l.UIManager.Instance.ShowUIPanel(m.PanelConfig.ItemGetWayPanel.Path, h.CommonItemId.AbstractPetId)
                    } else y.UIUtlity.ShowFloatingHint("pet_buyPrivilege".ToUILocale())
                }, t.prototype.OnGrayButtonClick = function() {
                    y.UIUtlity.ShowFloatingHint("pet_buyPrivilege".ToUILocale())
                }, t.prototype.OnUserItemChange = function() {
                    this.HatchItemContainer.childrenCount > 0 && this.SetHatchItemContainer()
                }, i([b(cc.Label)], t.prototype, "LeaveTimeLabel", void 0), i([b(cc.Label)], t.prototype, "PrivilegeTimeLabel", void 0), i([b(cc.RichText)], t.prototype, "DescRichText", void 0), i([b(cc.RichText)], t.prototype, "DescRichText2", void 0), i([b(cc.RichText)], t.prototype, "DescRichText3", void 0), i([b(cc.Node)], t.prototype, "LangTag", void 0), i([b(cc.Label)], t.prototype, "LangTagLabel", void 0), i([b(cc.Button)], t.prototype, "PayButton", void 0), i([b(cc.Label)], t.prototype, "PayButtonLabel", void 0), i([b(cc.Label)], t.prototype, "AttainNumber", void 0), i([b(cc.Label)], t.prototype, "AttainLabel", void 0), i([b(cc.Node)], t.prototype, "ItemContainer", void 0), i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Label)], t.prototype, "PatternWithContent", void 0), i([b(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([b(cc.Node)], t.prototype, "HatchItemContainer", void 0), i([b(cc.Node)], t.prototype, "BubbleNode", void 0), i([b(cc.RichText)], t.prototype, "NeedTimeRichText", void 0), i([b(cc.Button)], t.prototype, "OkButton", void 0), i([b(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([b(cc.Button)], t.prototype, "QuickButton", void 0), i([b(cc.Label)], t.prototype, "QuickButtonLabel", void 0), i([b(cc.Button)], t.prototype, "GrayButton", void 0), i([b(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([b(cc.RichText)], t.prototype, "CostHintRichText", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ChooseHatchItem": "ChooseHatchItem",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PetCollectionHandBookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a9030UjWEtOMoqrB3ukcQlS", "PetCollectionHandBookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/CustomLayout"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Components/PetCardComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../Components/LoadAssetHelper"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../Components/LevelComponent"),
            v = e("./CollectionHandbookPanel"),
            b = e("../../RedDot/RedDotDataHandler"),
            S = e("../Components/QualitySelectGroup"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.AvatarNode = null, t.LeftArrowButton = null, t.RightArrowButton = null, t.CustomLayout = null, t.InfoNode = null, t.AttrNode = null, t.MaxLabel = null, t.UpgradeButton = null, t.UpgradeButtonLabel = null, t.UpgradeRedDot = null, t.DetailButton = null, t.DetailButtonLabel = null, t.HintLabel = null, t.SmallTitleLabel = null, t.QualitySelectGroup = null, t.RedDotNodeArr = [], t.NameLabel = null, t.StarBgNode = null, t.LevelComponent = null, t.BackButton = null, t.UpgradeNode = null, t._attrComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickPetCard, this), l.Game.EventDispatcher.On(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchQuality, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickPetCard, this), l.Game.EventDispatcher.Off(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchQuality, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("ItemsComponent/PetCardComponent", cc.Prefab)];
                                case 1:
                                    return t._petCardPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this), this.UpgradeButton.node.on("click", this.OnUpgradeButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.BackButton.node.on("click", this.OnBackButtonClick, this), this.SmallTitleLabel.string = "CollectionPavilion_HeroFetter_TotalAttr_Attr".ToUILocale(), this.DetailButtonLabel.string = "HeroFavorList_AttributeTitle".ToUILocale(), this.MaxLabel.string = "CollectionPavilion_HeroFetter_MaxLevel".ToUILocale(), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(I.default)), this.AttrNode.children.forEach(function(e, n) {
                        t._attrComponents[n] = {
                            Icon: e.getChildByName("Icon").getComponent(cc.Sprite),
                            NameLabel: e.getChildByName("NameLabel").getComponent(cc.Label),
                            ValueRichText: e.getChildByName("ValueRichText").getComponent(cc.RichText),
                            OldValueLabel: e.getChildByName("OldValueLabel").getComponent(cc.Label),
                            NewValueLabel: e.getChildByName("NewValueLabel").getComponent(cc.Label),
                            Arrow: e.getChildByName("Arrow")
                        }
                    }), this.InitCustomLayout()
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t);
                    var o = d.ConfigDataComponent.Instance.GetArrayConfig(u.PetBase_Config);
                    this._petBaseConfigArr = this.FilterPetConfig(o), this.SortPetBaseConfig(), this._selectedIndex = 0, this._petGroupByQuality = {}, this._petBaseConfigArr.forEach(function(e) {
                        n._petGroupByQuality[e.Quality] || (n._petGroupByQuality[e.Quality] = []), n._petGroupByQuality[e.Quality].push(e), n._petGroupByQuality[0] || (n._petGroupByQuality[0] = []), n._petGroupByQuality[0].push(e)
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t ? this.RenderCustomLayout() : this.QualitySelectGroup.SetDefault(), this.SetSelectPetInfo(), this.SetGroupRedDot()
                }, t.prototype.FilterPetConfig = function(e) {
                    var t = [];
                    return e.forEach(function(e) {
                        y.default.Instance.IsModuleShowAvailable(g.ModuleStartTime.Pet, e.Id) && t.push(e)
                    }), t
                }, t.prototype.SortPetBaseConfig = function() {
                    this._petBaseConfigArr.sort(function(e, t) {
                        var n = d.DataCenter.Instance.GetDataById(c.UserPet_Model, e.Id),
                            o = d.DataCenter.Instance.GetDataById(c.UserPet_Model, t.Id);
                        return (!n || !n.TeamStar) && o && o.TeamStar > 0 ? 1 : !(n && n.TeamStar > 0) || o && o.TeamStar ? e.Quality < t.Quality ? 1 : e.Quality > t.Quality ? -1 : n && o ? n.Star < o.Star ? 1 : n.Star > o.Star ? -1 : e.Id - t.Id : e.Id - t.Id : -1
                    })
                }, t.prototype.InitCustomLayout = function() {
                    this.CustomLayout.Init(this._petCardPrefab)
                }, t.prototype.RenderCustomLayout = function() {
                    this.CustomLayout.RenderLayOut(this._petGroupByQuality[this._selectQuality] ? this._petGroupByQuality[this._selectQuality].length : 0, this._selectedIndex)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        e.angle = -90, e.name = t.toString();
                        var o = e.getComponent(f.default),
                            r = n._petGroupByQuality[n._selectQuality][t],
                            i = d.DataCenter.Instance.GetDataById(c.UserPet_Model, r.Id);
                        i ? o.Init(i, !1) : (o.Init({
                            ItemId: n._petGroupByQuality[n._selectQuality][t].Id,
                            StarLevel: 1
                        }, !1), o.ShowHandBookLock()), o.SetSelectedBorder(n._selectedIndex == t), o.SetRedDotState(b.RedDotDataHandler.Instance.RefreshPetHandBookCard({
                            Value1: r.Id
                        })), n._selectedIndex == t && (n._selectedCardNode = e)
                    })
                }, t.prototype.SetSelectPetInfo = function() {
                    var e = this;
                    if (-1 == this._selectedIndex) return this.InfoNode.active = !1, this.UpgradeNode.active = !1, this.AvatarNode.active = !1, this.LeftArrowButton.node.active = !1, this.RightArrowButton.node.active = !1, this.NameLabel.string = "", void this.LevelComponent.Init(0);
                    this.InfoNode.active = !0, this.UpgradeNode.active = !0, this.AvatarNode.active = !0, this._upLevelAddAttrData = [];
                    var t = this._petGroupByQuality[this._selectQuality][this._selectedIndex];
                    this.NameLabel.string = t.Id.ToPetName(), this._loadAssetHelper.LoadPrefab(t.UIAvatar + "/Avatar", this.AvatarNode);
                    var n = d.DataCenter.Instance.GetDataById(c.UserPet_Model, t.Id);
                    this.LevelComponent.Init(n ? n.Star : 1);
                    var o = d.ConfigDataComponent.Instance.GetConfigById(u.PetQuality_Config, t.Quality);
                    this._attrComponents.forEach(function(r, i) {
                        var a = o.TeamAttrs[i].Items[0],
                            s = 0;
                        n && n.TeamStar > 0 && (s = o.TeamAttrs[i].Items[n.TeamStar]);
                        var l = y.default.GetHeroAttribute(a, s);
                        if (r.Icon.spriteFrame = l.Icon, r.NameLabel.string = l.Name, r.OldValueLabel.string = "+" + l.Value, n && n.TeamStar < n.Star) {
                            var c = o.TeamAttrs[i].Items[n.Star];
                            r.OldValueLabel.node.x = 62, r.NewValueLabel.node.active = !0, r.Arrow.active = !0, r.NewValueLabel.string = "+" + y.default.GetHeroAttributeValue(c, a, null, !0), e._upLevelAddAttrData.push(a), e._upLevelAddAttrData.push(c - s)
                        } else n && n.TeamStar >= t.MaxStar ? (r.OldValueLabel.node.x = r.Arrow.x, r.NewValueLabel.node.active = !1, r.Arrow.active = !1) : (r.OldValueLabel.node.x = 62, r.NewValueLabel.node.active = !0, r.Arrow.active = !0, r.NewValueLabel.string = "+" + y.default.GetHeroAttributeValue(o.TeamAttrs[i].Items[n ? n.TeamStar + 1 : 1], a, null, !0))
                    }), n && n.Star >= t.MaxStar && n.TeamStar >= t.MaxStar ? (this.UpgradeButton.node.active = !1, this.MaxLabel.node.parent.active = !0, this.HintLabel.node.active = !1) : (this.UpgradeButton.node.active = !0, this.MaxLabel.node.parent.active = !1, n ? (this.UpgradeButtonLabel.string = "CollectionPavilion_HeroFetter_UpLevel".ToUILocale(), _.UIUtlity.OffNodeGray(this.UpgradeButton.node), n.TeamStar < n.Star ? (this.HintLabel.node.active = !1, this.UpgradeRedDot.active = !0) : (this.HintLabel.node.active = !0, this.HintLabel.string = "pet_handBook_upHint".ToUILocale().Fmt(n.Star + 1), this.UpgradeRedDot.active = !1)) : (this.HintLabel.node.active = !0, this.HintLabel.string = "pet_handBook_upHint".ToUILocale().Fmt(1), this.UpgradeButtonLabel.string = "CollectionPavilion_HeroFetter_UnLock".ToUILocale(), _.UIUtlity.OnNodeGray(this.UpgradeButton.node), this.UpgradeRedDot.active = !1)), this.SetArrowBtn()
                }, t.prototype.OnLeftArrowButtonClick = function() {
                    this._selectedIndex > 0 && (this._selectedIndex--, this.RenderCustomLayout(), this.SetSelectPetInfo())
                }, t.prototype.OnRightArrowButtonClick = function() {
                    this._selectedIndex < this._petGroupByQuality[this._selectQuality].length - 1 && (this._selectedIndex++, this.RenderCustomLayout(), this.SetSelectPetInfo())
                }, t.prototype.SetArrowBtn = function() {
                    this._selectedIndex <= 0 ? this.LeftArrowButton.node.active = !1 : this.LeftArrowButton.node.active = !0, this._selectedIndex >= this._petGroupByQuality[this._selectQuality].length - 1 ? this.RightArrowButton.node.active = !1 : this.RightArrowButton.node.active = !0
                }, t.prototype.OnUpgradeButtonClick = function() {
                    var e = this;
                    if (this.HintLabel.node.active) _.UIUtlity.ShowFloatingHint(this.HintLabel.string);
                    else {
                        var t = new c.Req_Item_PetHandbookUpgrade;
                        t.Sids = [this._petGroupByQuality[this._selectQuality][this._selectedIndex].Id];
                        var n = d.DataCenter.Instance.GetIntData(g.UserDataKey.Power);
                        d.RpcComponent.Instance.Call(t, function() {
                            l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CollectionHandbookSuccessPanel.Path, v.CollectionHandbookType.Pet, null, null, e._upLevelAddAttrData);
                            var t = d.DataCenter.Instance.GetIntData(g.UserDataKey.Power);
                            n != t && l.UIManager.Instance.ShowUIPanel(m.PanelConfig.BattlePowerChangePanel.Path, n, t), e.RenderCustomLayout(), e.SetSelectPetInfo(), e.SetGroupRedDot()
                        })
                    }
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = {};
                    this._petBaseConfigArr.forEach(function(t) {
                        var n = d.DataCenter.Instance.GetDataById(c.UserPet_Model, t.Id);
                        n && n.TeamStar > 0 && d.ConfigDataComponent.Instance.GetConfigById(u.PetQuality_Config, t.Quality).TeamAttrs.forEach(function(t) {
                            var o = t.Items[0],
                                r = t.Items[n.TeamStar];
                            e[o] && (r += e[o]), e[o] = r
                        })
                    });
                    var t = {};
                    for (var n in t.Title = "heroSkin_attr".ToUILocale(), t.IsShowAddAttr = !0, t.AttrArray = [], t.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale(), e) {
                        var o = {};
                        o.attrId = Number(n), o.attrvalue = e[n], t.AttrArray.push(o)
                    }
                    l.UIManager.Instance.ShowUIPanel(m.PanelConfig.CommonTotalAttrPanel.Path, [t])
                }, t.prototype.OnBackButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickPetCard = function(e, t) {
                    this.CustomLayout.node == t.parent && this._selectedIndex != e && (this._selectedIndex = e, this.SetSelectPetInfo(), this.SetSelectedCard(t))
                }, t.prototype.SetSelectedCard = function(e) {
                    this._selectedCardNode && this._selectedCardNode.getComponent(f.default).SetSelectedBorder(!1), this._selectedCardNode = e, this._selectedCardNode.getComponent(f.default).SetSelectedBorder(!0)
                }, t.prototype.OnSwitchQuality = function(e, t) {
                    t == this.QualitySelectGroup.node && this._selectQuality != e && (this._selectQuality = e, this.RefreshSelectedIndex(), this.RenderCustomLayout(), this.SetSelectPetInfo())
                }, t.prototype.RefreshSelectedIndex = function() {
                    var e = this._petGroupByQuality[this._selectQuality];
                    if (e && e.length > 0) {
                        for (var t = 0; t < e.length; t++) {
                            var n = d.DataCenter.Instance.GetDataById(c.UserPet_Model, e[t].Id);
                            if (n && n.TeamStar < n.Star) return void(this._selectedIndex = t)
                        }
                        this._selectedIndex = 0
                    } else this._selectedIndex = -1
                }, t.prototype.SetGroupRedDot = function() {
                    for (var e = 0, t = this.RedDotNodeArr; e < t.length; e++) {
                        var n = t[e],
                            o = Number.parseInt(n.name),
                            r = this._petGroupByQuality[o];
                        if (r && r.length > 0) {
                            for (var i = !1, a = 0; a < r.length; a++) {
                                var s = d.DataCenter.Instance.GetDataById(c.UserPet_Model, r[a].Id);
                                if (s && s.TeamStar < s.Star) {
                                    i = !0;
                                    break
                                }
                            }
                            n.active = i
                        } else n.active = !1
                    }
                }, i([A(cc.Node)], t.prototype, "AvatarNode", void 0), i([A(cc.Button)], t.prototype, "LeftArrowButton", void 0), i([A(cc.Button)], t.prototype, "RightArrowButton", void 0), i([A(p.default)], t.prototype, "CustomLayout", void 0), i([A(cc.Node)], t.prototype, "InfoNode", void 0), i([A(cc.Node)], t.prototype, "AttrNode", void 0), i([A(cc.Label)], t.prototype, "MaxLabel", void 0), i([A(cc.Button)], t.prototype, "UpgradeButton", void 0), i([A(cc.Label)], t.prototype, "UpgradeButtonLabel", void 0), i([A(cc.Node)], t.prototype, "UpgradeRedDot", void 0), i([A(cc.Button)], t.prototype, "DetailButton", void 0), i([A(cc.Label)], t.prototype, "DetailButtonLabel", void 0), i([A(cc.Label)], t.prototype, "HintLabel", void 0), i([A(cc.Label)], t.prototype, "SmallTitleLabel", void 0), i([A(S.default)], t.prototype, "QualitySelectGroup", void 0), i([A(cc.Node)], t.prototype, "RedDotNodeArr", void 0), i([A(cc.Label)], t.prototype, "NameLabel", void 0), i([A(cc.Node)], t.prototype, "StarBgNode", void 0), i([A(C.LevelComponent)], t.prototype, "LevelComponent", void 0), i([A(cc.Button)], t.prototype, "BackButton", void 0), i([A(cc.Node)], t.prototype, "UpgradeNode", void 0), i([P], t)
            }(l.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "../Components/PetCardComponent": "PetCardComponent",
        "../Components/QualitySelectGroup": "QualitySelectGroup",
        "./CollectionHandbookPanel": "CollectionHandbookPanel"
    }],
    PetDetailAttr: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "90c8bt8x9NPFY54ztW4VnBB", "PetDetailAttr");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.TagLab = null, t.Value = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this.AttrIcon.spriteFrame = e, this.TagLab.string = t, this.Value.string = n, this.node.width = o
                }, i([l(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([l(cc.Label)], t.prototype, "TagLab", void 0), i([l(cc.RichText)], t.prototype, "Value", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    PetDetailsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fdf96W+vqJA5LS/VaLXmwLR", "PetDetailsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../Components/ItemComponent"),
            f = e("../Components/ItemClickComponent"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/SkillItemComponent"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("./PetInfoTabAttr"),
            v = e("../Components/PetDetailAttr"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.ItemContainer = null, t.NameLabel = null, t.LevelText = null, t.ItemTypeTag = null, t.ItemTypeValue = null, t.ItemScoreTag = null, t.ItemScoreValue = null, t.AttrTittle = null, t.AttrLayout = null, t.SkillTittle = null, t.SkillItemNode = null, t.ItemDescTittle = null, t.PowerCoreDescText = null, t.GetItemBtn = null, t.GetItemHint = null, t.TakeOffBtn = null, t.TakeOffBtnLabel = null, t.StrengthenBtn = null, t.StrengthenBtnLabel = null, t.ChangeBtn = null, t.ChangeBtnLabel = null, t.TitleBgs = [], t.TitleLabels = [], t._attributeComponent = [], t._skillComponent = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(u.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/SkillItemComponent", cc.Prefab), o = this.LoadDynamicAsset("HeroPetPanel/Components/PetDetailAttr", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._coreSkillPrefab = e[1], r._attributePrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ItemTypeTag.string = "equip_type_tag".ToUILocale(), this.ItemScoreTag.string = "equip_score_tag".ToUILocale(), this.AttrTittle.string = "pet_detail_attr".ToUILocale(), this.SkillTittle.string = "pet_detail_skill".ToUILocale(), this.ItemDescTittle.string = "pet_detail_desc".ToUILocale(), this.GetItemHint.string = "Personalise_getway".ToUILocale(), this.TakeOffBtnLabel.string = "PowerCore_Remove".ToUILocale(), this.StrengthenBtnLabel.string = "PowerCore_Train".ToUILocale(), this.ChangeBtnLabel.string = "equip_change".ToUILocale(), this.ItemTypeValue.string = "pet".ToUILocale(), this.TakeOffBtn.node.on("click", this.OnClickTakeOff, this), this.StrengthenBtn.node.on("click", this.OnClickStrengthen, this), this.ChangeBtn.node.on("click", this.OnClickChange, this), this.GetItemBtn.node.on("click", this.OnClickGetWay, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._petSid = t[0], this._heroSid = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetPowerCoreData(t), this.ConfigInfoContainer(), this.ConfigAttrsContainer(), this.ConfigSkillContainer(), this.SetRedDot()
                }, t.prototype.SetPetDesc = function() {
                    var e = this;
                    if (!this._petItemConfig) {
                        var t = p.ConfigDataComponent.Instance.GetArrayConfig(d.ItemPetCard_Config);
                        this._petItemConfig = t.find(function(t) {
                            return t.PetId == e._petModel.Sid
                        })
                    }
                    this.PowerCoreDescText.string = this._petItemConfig.Id.ToItemDesc()
                }, t.prototype.SetPowerCoreData = function(e) {
                    this._petModel = p.DataCenter.Instance.GetDataById(c.UserPet_Model, this._petSid), this._petConfig = p.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, this._petModel.Sid), this._petStarConfig = p.ConfigDataComponent.Instance.GetConfigById(d.PetStar_Config, this._petConfig.MaxStar), e || (this._petQualityConfig = p.ConfigDataComponent.Instance.GetConfigById(d.PetQuality_Config, this._petConfig.Quality))
                }, t.prototype.ConfigInfoContainer = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), e.getComponent(f.default).enabled = !1, this._itemComponent = e.getComponent(h.ItemComponent)
                    }
                    this._itemComponent.Init(this._petModel, h.ItemComponentType.Pet), this.NameLabel.string = this._petConfig.Id.ToPetName(), this._petModel && (this.LevelText.string = "<outline color=#202434 width=3><color=#6eeea7>" + "HeroTalent_LevelValue".ToUILocale().Fmt(this._petModel.Level + "</color></outline>", this._petStarConfig.MaxLevel), this._petModel.Level > 0 ? this.ItemScoreValue.string = (this._petModel.Star * this._petQualityConfig.StarScore + this._petModel.Level * this._petQualityConfig.LevelScore).toString() : this.ItemScoreValue.string = "0")
                }, t.prototype.ConfigAttrsContainer = function() {
                    for (var e = C.default.GetPetAttrByQuality(this._petConfig.Quality, this._petModel.Star, this._petModel.Level), t = 0; t < e.length; t++) {
                        var n = y.default.GetHeroAttribute(e[t].attrId, e[t].attrvalue);
                        if (!this._attributeComponent[t]) {
                            var o = cc.instantiate(this._attributePrefab);
                            o.parent = this.AttrLayout, this._attributeComponent[t] = o.getComponent(v.default)
                        }
                        this._attributeComponent[t].Init(n.Icon, n.Name, "<outline color=#202434 width=3><color=#6eeea7>+" + n.Value + "</color></outline>", 410)
                    }
                }, t.prototype.ConfigSkillContainer = function() {
                    for (var e = C.default.GetPetSkills(this._petModel.Sid, this._petModel.Star), t = 0; t < e.length; t++) {
                        if (!this._skillComponent[t]) {
                            var n = cc.instantiate(this._coreSkillPrefab);
                            n.parent = this.SkillItemNode, this._skillComponent[t] = n.getComponent(I.default)
                        }
                        this._skillComponent[t].Init(e[t].SkillId, e[t].Level)
                    }
                }, t.prototype.SetTitleBgs = function() {
                    var e = this;
                    this.TitleBgs.forEach(function(t) {
                        var n = m.UIUtlity.GetTitleInfoByQuality(e._petConfig.Quality);
                        t.spriteFrame = n[0]
                    })
                }, t.prototype.OnClickTakeOff = function() {
                    var e = new c.Req_Item_PetPutOn;
                    e.Sid = this._petModel.Sid, p.RpcComponent.Instance.Call(e, this.OnTakeOffResponse)
                }, t.prototype.OnTakeOffResponse = function() {
                    l.UIManager.Instance.BackUIPanel(), m.UIUtlity.ShowFloatingHint("pet_detail_takeOff".ToUILocale())
                }, t.prototype.SetRedDot = function() {
                    _.RedDotManager.Instance.BindInstance(this.ChangeBtn.node, _.RedDotManager.Instance.InstanceRedDot.PetChangeBtn, {
                        Value1: this._heroSid
                    }, 15, 15)
                }, t.prototype.OnClickStrengthen = function() {
                    g.UIManager.Instance.ShowUIPanel(u.PanelConfig.PetInfoPanel.Path, this._petSid), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickChange = function() {
                    var e = p.DataCenter.Instance.GetDataById(c.UserHero_Model, this._heroSid);
                    g.UIManager.Instance.ShowUIPanel(u.PanelConfig.PetChangePanel.Path, e), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickGetWay = function() {
                    this._petItemConfig && l.UIManager.Instance.ShowUIPanel(u.PanelConfig.ItemGetWayPanel.Path, this._petItemConfig.Id)
                }, i([w(cc.Node)], t.prototype, "ItemContainer", void 0), i([w(cc.Label)], t.prototype, "NameLabel", void 0), i([w(cc.RichText)], t.prototype, "LevelText", void 0), i([w(cc.Label)], t.prototype, "ItemTypeTag", void 0), i([w(cc.Label)], t.prototype, "ItemTypeValue", void 0), i([w(cc.Label)], t.prototype, "ItemScoreTag", void 0), i([w(cc.Label)], t.prototype, "ItemScoreValue", void 0), i([w(cc.Label)], t.prototype, "AttrTittle", void 0), i([w(cc.Node)], t.prototype, "AttrLayout", void 0), i([w(cc.Label)], t.prototype, "SkillTittle", void 0), i([w(cc.Node)], t.prototype, "SkillItemNode", void 0), i([w(cc.Label)], t.prototype, "ItemDescTittle", void 0), i([w(cc.RichText)], t.prototype, "PowerCoreDescText", void 0), i([w(cc.Button)], t.prototype, "GetItemBtn", void 0), i([w(cc.Label)], t.prototype, "GetItemHint", void 0), i([w(cc.Button)], t.prototype, "TakeOffBtn", void 0), i([w(cc.Label)], t.prototype, "TakeOffBtnLabel", void 0), i([w(cc.Button)], t.prototype, "StrengthenBtn", void 0), i([w(cc.Label)], t.prototype, "StrengthenBtnLabel", void 0), i([w(cc.Button)], t.prototype, "ChangeBtn", void 0), i([w(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([w(cc.Sprite)], t.prototype, "TitleBgs", void 0), i([w(cc.Label)], t.prototype, "TitleLabels", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PetDetailAttr": "PetDetailAttr",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./PetInfoTabAttr": "PetInfoTabAttr"
    }],
    PetDetailsTipPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d8f4duY9ldCTYYR8jxFIfbH", "PetDetailsTipPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Components/PetDetailAttr"),
            y = e("../Components/ItemComponent"),
            g = e("../Components/ItemClickComponent"),
            m = e("./PetInfoTabAttr"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.PopUp, !1), t.ItemNode = null, t.NameLabel = null, t.TypeTagLabel = null, t.TypeValueLabel = null, t.ScoreTagLabel = null, t.ScoreValueLabel = null, t.GetWayButton = null, t.GetWayButtonLabel = null, t.AvatarNode = null, t.AttrTagLabel = null, t.AttrLayoutNode = null, t.DescTagLabel = null, t.Desc = null, t.BtnContainer = null, t.ActiveButton = null, t.ActiveButtonLabel = null, t._attributeComponent = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GetWayButton.node.on("click", this.OnGetWayButtonClick, this), this.ActiveButton.node.on("click", this.OnActiveButtonClick, this), this.TypeValueLabel.string = "pet".ToUILocale(), this.TypeTagLabel.string = "equip_type_tag".ToUILocale(), this.ScoreTagLabel.string = "equip_score_tag".ToUILocale(), this.AttrTagLabel.string = "magicCircle_tipTag".ToUILocale(), this.DescTagLabel.string = "skill_description".ToUILocale(), this.GetWayButtonLabel.string = "CollectionPavilion_Btn_get".ToUILocale(), this.ActiveButtonLabel.string = "ChaosTemple_Active".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._itemId = t[0], this._petId = parseInt(this._itemId.toString().slice(-5)), this._baseConfig = d.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, this._petId), this._model = d.DataCenter.Instance.GetDataById(c.UserPet_Model, this._petId), this._model ? this.BtnContainer.active = !1 : (this.BtnContainer.active = !0, this._model = new c.UserPet_Model({
                        Sid: this._petId,
                        Star: this._baseConfig.MaxStar,
                        Level: 1
                    }))
                }, t.prototype.PreloadByData = function() {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.PreloadByData.call(this), [4, Promise.all([this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset(this._baseConfig.Model + "/HeroAvatar", cc.Prefab), this.LoadDynamicAsset("HeroPetPanel/Components/PetDetailAttr", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._petPrefab = e[1], t._attributePrefab = e[2]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.ConfigInfoContainer(), this.SetAvatar(), this.SetAttr(), this.SetSkillDesc()
                }, t.prototype.ConfigInfoContainer = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemNode), e.getComponent(g.default).enabled = !1, this._itemComponent = e.getComponent(y.ItemComponent)
                    }
                    this._itemComponent.Init(this._model, y.ItemComponentType.Pet), this.NameLabel.string = this._petId.ToPetName();
                    var t = d.ConfigDataComponent.Instance.GetConfigById(u.PetQuality_Config, this._baseConfig.Quality);
                    this.ScoreValueLabel.string = (t.StarScore * this._model.Star + t.LevelScore * this._model.Level).toString()
                }, t.prototype.SetAvatar = function() {
                    if (this._petPrefab) {
                        if (0 == this.AvatarNode.childrenCount) {
                            var e = cc.instantiate(this._petPrefab);
                            e.parent = this.AvatarNode, e.getComponent(sp.Skeleton).setAnimation(0, "standby", !0)
                        }
                        if (this._baseConfig.ModelConfig && this._baseConfig.ModelConfig.length > 0) {
                            var t = this._baseConfig.ModelConfig[0],
                                n = this._baseConfig.ModelConfig[1];
                            t && this.AvatarNode.children[0].setPosition(0, t), n && (this.AvatarNode.children[0].scale = n / 1e3)
                        }
                    }
                }, t.prototype.SetAttr = function() {
                    for (var e = m.default.GetPetAttrByQuality(this._baseConfig.Quality, this._model.Star, this._model.Level), t = 0; t < e.length; t++) {
                        var n = h.default.GetHeroAttribute(e[t].attrId, e[t].attrvalue, !0);
                        if (!this._attributeComponent[t]) {
                            var o = cc.instantiate(this._attributePrefab);
                            o.parent = this.AttrLayoutNode, this._attributeComponent[t] = o.getComponent(f.default)
                        }
                        this._attributeComponent[t].Init(n.Icon, n.Name, "<outline color=#202434 width=3><color=#6eeea7>+" + n.Value + "</color></outline>", 410)
                    }
                }, t.prototype.SetSkillDesc = function() {
                    for (var e = "", t = 0, n = this._baseConfig.Skills; t < n.length; t++) {
                        var o = n[t];
                        e.length > 0 && (e += "\n"), e += o.Items[this._model.Star - 1].ToHeroSkillDesc()
                    }
                    this.Desc.string = e
                }, t.prototype.OnGetWayButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, this._itemId), this.Close()
                }, t.prototype.OnActiveButtonClick = function() {
                    this.Close(), l.UIManager.Instance.ShowUIPanel(p.PanelConfig.PetInfoPanel.Path, this._petId)
                }, i([C(cc.Node)], t.prototype, "ItemNode", void 0), i([C(cc.Label)], t.prototype, "NameLabel", void 0), i([C(cc.Label)], t.prototype, "TypeTagLabel", void 0), i([C(cc.Label)], t.prototype, "TypeValueLabel", void 0), i([C(cc.Label)], t.prototype, "ScoreTagLabel", void 0), i([C(cc.Label)], t.prototype, "ScoreValueLabel", void 0), i([C(cc.Button)], t.prototype, "GetWayButton", void 0), i([C(cc.Label)], t.prototype, "GetWayButtonLabel", void 0), i([C(cc.Node)], t.prototype, "AvatarNode", void 0), i([C(cc.Label)], t.prototype, "AttrTagLabel", void 0), i([C(cc.Node)], t.prototype, "AttrLayoutNode", void 0), i([C(cc.Label)], t.prototype, "DescTagLabel", void 0), i([C(cc.RichText)], t.prototype, "Desc", void 0), i([C(cc.Node)], t.prototype, "BtnContainer", void 0), i([C(cc.Button)], t.prototype, "ActiveButton", void 0), i([C(cc.Label)], t.prototype, "ActiveButtonLabel", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PetDetailAttr": "PetDetailAttr",
        "./PetInfoTabAttr": "PetInfoTabAttr"
    }],
    PetGalleryChangeListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "12e907lNJxLHa44L9LySWjC", "PetGalleryChangeListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("./ItemComponent"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Panel/PetGalleryItemChangePanel"),
            y = e("../Panel/LuckyCharmGalleryPanel"),
            g = e("./AttrComponent5"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.PetItemNode = null, t.AttrContainer = null, t.ChangeButton = null, t.ChangeButtonLabel = null, t.AddButton = null, t.AddButtonLabel = null, t._attrComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ChangeButtonLabel.string = "artifact_change".ToUILocale(), this.AddButtonLabel.string = "PetGalleryListPanel_Add".ToUILocale(), this.ChangeButton.node.on("click", this.OnChangeButtonClick, this), this.AddButton.node.on("click", this.OnChangeButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    switch (this._isChange = e, this._type = t, this._soltIndex = o, this._itemPrefab = r, this._attrPrefab = i, this.ChangeButton.node.active = this._isChange, this.AddButton.node.active = !this._isChange, t) {
                        case f.GalleryItemChangeType.Pet:
                            this._petModel = n;
                            break;
                        case f.GalleryItemChangeType.LuckyCharm:
                            this._luckyCharmModel = n;
                            break;
                        case f.GalleryItemChangeType.Core:
                            this._coreModel = n
                    }
                    this.SetItemNode(), this.SetAttrContainer()
                }, t.prototype.SetItemNode = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.PetItemNode), this._itemComponent = e.getComponent(p.ItemComponent)
                    }
                    switch (this._type) {
                        case f.GalleryItemChangeType.Pet:
                            this._itemComponent.Init({
                                ItemId: this._petModel.Sid,
                                StarLevel: this._petModel.Star
                            }, p.ItemComponentType.Pet), this.Name.string = this._petModel.Sid.ToPetName();
                            break;
                        case f.GalleryItemChangeType.LuckyCharm:
                            var t = void 0;
                            this._luckyCharmModel.ItemId >= d.CommonItemId.PrimordialLuckyCharm ? (t = this._luckyCharmModel.ItemId, this._itemComponent.Init(this._luckyCharmModel, p.ItemComponentType.LuckyCharm)) : (t = this._luckyCharmModel.ItemId, this._itemComponent.Init({
                                ItemId: this._luckyCharmModel.ItemId
                            })), this.Name.string = t.ToItemName();
                            break;
                        case f.GalleryItemChangeType.Core:
                            var n = u.ConfigDataComponent.Instance.GetConfigById(l.PowerCore_Config, this._coreModel.ItemId);
                            this._itemComponent.Init({
                                ItemId: this._coreModel.ItemId,
                                StarLevel: n.Star
                            }, p.ItemComponentType.ItemWithStar), this.Name.string = this._coreModel.ItemId.ToItemName()
                    }
                }, t.prototype.SetAttrContainer = function() {
                    for (var e = 0; e < this._attrComponentArray.length; e++) this._attrComponentArray[e].node.active = !1;
                    var t;
                    switch (this._type) {
                        case f.GalleryItemChangeType.Pet:
                            var n = u.ConfigDataComponent.Instance.GetConfigById(l.PetBase_Config, this._petModel.Sid),
                                o = void 0;
                            for (e = 0; e < n.ShowAttr.length; e++)
                                if (this._petModel.Star == n.ShowAttr[e].Items[0]) {
                                    o = n.ShowAttr[e].Items[1];
                                    break
                                } var r = u.ConfigDataComponent.Instance.GetConfigById(l.PetShowAttr_Config, o);
                            t = r.Attrs;
                            break;
                        case f.GalleryItemChangeType.LuckyCharm:
                            t = [];
                            var i = [];
                            this._luckyCharmModel.ItemId >= d.CommonItemId.PrimordialLuckyCharm && (this._luckyCharmModel.StarSkills.length > 0 || this._luckyCharmModel.GloryStar > 0) ? i = y.default.GetLuckyCharmGalleryAttrs(this._luckyCharmModel) : u.ConfigDataComponent.Instance.GetConfigById(l.LuckyCharmEquip_Config, this._luckyCharmModel.ItemId).ShowAttr.forEach(function(e) {
                                var t = {};
                                t.AttrId = e.Items[0], t.AttrValue = e.Items[1], i.push(t)
                            }), i.forEach(function(e) {
                                var n = new l.IntArray_Config;
                                n.Items = [e.AttrId, e.AttrValue], t.push(n)
                            });
                            break;
                        case f.GalleryItemChangeType.Core:
                            var a = u.ConfigDataComponent.Instance.GetConfigById(l.PowerCore_Config, this._coreModel.ItemId);
                            t = a.ShowAttr
                    }
                    for (e = 0; e < t.length; e++) {
                        var s = this._attrComponentArray[e];
                        if (!s) {
                            var c = cc.instantiate(this._attrPrefab);
                            c.setParent(this.AttrContainer), s = c.getComponent(g.default), this._attrComponentArray[e] = s
                        }
                        s.node.active = !0;
                        var p = t[e].Items;
                        s.Init(p[0], p[1], {
                            NodeWidth: 352,
                            ValueNodeWidth: 145,
                            ValueAlign: g.AttrComponent5Align.Mid,
                            AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                        })
                    }
                }, t.prototype.OnChangeButtonClick = function() {
                    switch (this._oldPower = u.DataCenter.Instance.GetIntData(d.UserDataKey.Power), this._type) {
                        case f.GalleryItemChangeType.Pet:
                            (e = new c.Req_Item_SetPetShowHouse).Pos = this._soltIndex, e.Sid = this._petModel.Sid, u.RpcComponent.Instance.Call(e, this.OnRequestSuccess.bind(this));
                            break;
                        case f.GalleryItemChangeType.LuckyCharm:
                            (e = new c.Req_Item_SetLuckyCharmShowHouse).Pos = this._soltIndex, e.Sid = this._luckyCharmModel.Sid, u.RpcComponent.Instance.Call(e, this.OnRequestSuccess.bind(this));
                            break;
                        case f.GalleryItemChangeType.Core:
                            var e;
                            (e = new c.Req_Team_PowerCoreGalleryPutOn).Slot = this._soltIndex, e.PowerCoreId = this._coreModel.Sid, u.RpcComponent.Instance.Call(e, this.OnRequestSuccess.bind(this))
                    }
                }, t.prototype.OnRequestSuccess = function() {
                    var e = this._isChange ? "PetGalleryListPanel_Change_Success".ToUILocale() : "PetGalleryListPanel_Add_Success".ToUILocale();
                    s.UIUtlity.ShowFloatingHint(e), a.UIManager.Instance.BackUIPanel();
                    var t = u.DataCenter.Instance.GetIntData(d.UserDataKey.Power);
                    t > this._oldPower && a.UIManager.Instance.ShowUIPanel(h.PanelConfig.BattlePowerChangePanel.Path, this._oldPower, t)
                }, i([_(cc.Label)], t.prototype, "Name", void 0), i([_(cc.Node)], t.prototype, "PetItemNode", void 0), i([_(cc.Node)], t.prototype, "AttrContainer", void 0), i([_(cc.Button)], t.prototype, "ChangeButton", void 0), i([_(cc.Label)], t.prototype, "ChangeButtonLabel", void 0), i([_(cc.Button)], t.prototype, "AddButton", void 0), i([_(cc.Label)], t.prototype, "AddButtonLabel", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/LuckyCharmGalleryPanel": "LuckyCharmGalleryPanel",
        "../Panel/PetGalleryItemChangePanel": "PetGalleryItemChangePanel",
        "./AttrComponent5": "AttrComponent5",
        "./ItemComponent": "ItemComponent"
    }],
    PetGalleryItemChangePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7606d8QFQRPxokMCv94FmCn", "PetGalleryItemChangePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GalleryItemChangeType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../Components/CustomLayout"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../Components/ItemComponent"),
            I = e("../Components/PetGalleryChangeListItem"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("./LuckyCharmGalleryPanel"),
            v = e("../Components/AttrComponent5");
        (function(e) {
            e[e.Pet = 0] = "Pet", e[e.LuckyCharm = 1] = "LuckyCharm", e[e.Core = 2] = "Core"
        })(l = n.GalleryItemChangeType || (n.GalleryItemChangeType = {}));
        var b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.ItemNode = null, t.Name = null, t.CurrentTagNode = null, t.CurrentTagLabel = null, t.AttrContainer = null, t.UnloadButton = null, t.UnloadButtonLabel = null, t.CustomLayout = null, t.NonePetTip = null, t._petModelArray = [], t._luckyCharmModelArray = [], t._coreModelArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshListScrollView, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshListScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("PetGalleryListPanel/Components/PetGalleryChangeListItem", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/AttrComponent5", cc.Prefab), o = this.LoadDynamicAsset(g.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._petChangeItemPrefab = e[0], r._attrPrefab = e[1], r._itemPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.UnloadButton.node.on("click", this.OnUnloadButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    switch (e.prototype.InitData.call(this), this._itemSid = t[0], this._slotIndex = t[1], this._type = t[2], this._type) {
                        case l.Pet:
                            this._petModel = h.DataCenter.Instance.GetDataById(d.UserPet_Model, this._itemSid), this.SetPetModelArray();
                            break;
                        case l.LuckyCharm:
                            this._luckyCharmModel = h.DataCenter.Instance.GetDataById(d.LuckyCharmEquip_Model, this._itemSid), this.SetLuckyCharmModelArray();
                            break;
                        case l.Core:
                            this._coreModel = h.DataCenter.Instance.GetDataById(d.PowerCore_Model, this._itemSid), this.SetCoreModelArray()
                    }
                }, t.prototype.DisPlay = function(t) {
                    switch (e.prototype.DisPlay.call(this, t), t || (this.SetCurrentShow(), this.SetItemNode(), this.SetAttrContainer(), this.CustomLayout.Init(this._petChangeItemPrefab)), this._type) {
                        case l.Pet:
                            this.CustomLayout.RenderLayOut(this._petModelArray.length);
                            break;
                        case l.LuckyCharm:
                            this.CustomLayout.RenderLayOut(this._luckyCharmModelArray.length);
                            break;
                        case l.Core:
                            this.CustomLayout.RenderLayOut(this._coreModelArray.length), 0 == this._coreModelArray.length && (this.NonePetTip.node.active = !0, this.NonePetTip.string = "PowerCoreGallery_None_Tip".ToUILocale())
                    }
                }, t.prototype.SetPetModelArray = function() {
                    for (var e = this, t = [], n = h.ConfigDataComponent.Instance.GetConfigById(p.LevelParam_Config, _.LevelParamType.PetShowHousePos), o = 0; o < n.Data2.length; o++) {
                        var r = h.DataCenter.Instance.GetDataById(d.PetShowHouse_Model, n.Data2[o].Items[0]);
                        r && r.PetId && t.push(r.PetId)
                    }
                    h.DataCenter.Instance.GetDataList(d.UserPet_Model).forEach(function(n) {
                        -1 == t.indexOf(n.Sid) && e._petModelArray.push(n)
                    }), this._petModelArray.sort(this.SortPetModelArray.bind(this))
                }, t.prototype.SetLuckyCharmModelArray = function() {
                    var e = this;
                    this._luckyCharmModelArray = [];
                    for (var t = h.DataCenter.Instance.GetDataList(d.LuckyCharmEquip_Model), n = 0; n < t.length; n++) this._itemSid != t[n].Sid && this._luckyCharmModelArray.push(t[n]);
                    this._luckyCharmHasWearMap = {}, h.DataCenter.Instance.GetDataList(d.LuckyCharmShowHouse_Model).forEach(function(t) {
                        t.LuckyCharmId > 0 && (e._luckyCharmHasWearMap[t.LuckyCharmId] = 1)
                    }), this._luckyCharmModelArray.sort(this.SortLuckyCharmModelArray.bind(this))
                }, t.prototype.SetCoreModelArray = function() {
                    var e = this;
                    h.DataCenter.Instance.GetDataList(d.PowerCore_Model).forEach(function(t) {
                        t.GallerySlot || e._coreModelArray.push(t)
                    }), this._coreModelArray.sort(this.SortCoreModelArray.bind(this))
                }, t.prototype.SortPetModelArray = function(e, t) {
                    for (var n, o, r = h.ConfigDataComponent.Instance.GetConfigById(p.PetBase_Config, e.Sid), i = h.ConfigDataComponent.Instance.GetConfigById(p.PetBase_Config, t.Sid), a = 0; a < r.ShowAttr.length; a++)
                        if (e.Star == r.ShowAttr[a].Items[0]) {
                            n = r.ShowAttr[a].Items[1];
                            break
                        } var s = h.ConfigDataComponent.Instance.GetConfigById(p.PetShowAttr_Config, n);
                    for (a = 0; a < i.ShowAttr.length; a++)
                        if (t.Star == i.ShowAttr[a].Items[0]) {
                            o = i.ShowAttr[a].Items[1];
                            break
                        } return h.ConfigDataComponent.Instance.GetConfigById(p.PetShowAttr_Config, o).AttrScore - s.AttrScore
                }, t.prototype.SortLuckyCharmModelArray = function(e, t) {
                    if (this._luckyCharmHasWearMap[e.Sid] && !this._luckyCharmHasWearMap[t.Sid]) return 1;
                    if (!this._luckyCharmHasWearMap[e.Sid] && this._luckyCharmHasWearMap[t.Sid]) return -1;
                    var n = e.ItemId,
                        o = t.ItemId;
                    if (n != o) return o - n;
                    if (n == _.CommonItemId.PrimordialLuckyCharm) {
                        var r = e.StarSkills && e.StarSkills.length ? e.StarSkills.length : 0;
                        return (t.StarSkills && t.StarSkills.length ? t.StarSkills.length : 0) - r
                    }
                    return n == _.CommonItemId.GloryLuckyCharm ? t.GloryStar - e.GloryStar : -1
                }, t.prototype.SortCoreModelArray = function(e, t) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, e.ItemId);
                    return h.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, t.ItemId).Score - n.Score
                }, t.prototype.SetCurrentShow = function() {
                    this._itemSid ? (this.CurrentTagNode.active = !0, this.UnloadButton.node.active = !0, this.CurrentTagLabel.string = "PetGalleryListPanel_Change_Current_Tag".ToUILocale(), this.UnloadButtonLabel.string = "PowerCore_Remove".ToUILocale()) : (this.CurrentTagNode.active = !1, this.UnloadButton.node.active = !1)
                }, t.prototype.SetItemNode = function() {
                    var e = cc.instantiate(this._itemPrefab);
                    e.setParent(this.ItemNode);
                    var t = e.getComponent(m.ItemComponent);
                    if (this._itemSid) switch (this._type) {
                        case l.Pet:
                            t.Init({
                                ItemId: this._petModel.Sid,
                                StarLevel: this._petModel.Star
                            }, m.ItemComponentType.Pet), this.Name.string = this._petModel.Sid.ToPetName();
                            break;
                        case l.LuckyCharm:
                            var n = this._luckyCharmModel.ItemId;
                            this._luckyCharmModel.ItemId >= _.CommonItemId.PrimordialLuckyCharm ? t.Init(this._luckyCharmModel, m.ItemComponentType.LuckyCharm) : t.Init({
                                ItemId: this._luckyCharmModel.ItemId
                            }), this.Name.string = n.ToItemName();
                            break;
                        case l.Core:
                            var o = h.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, this._coreModel.ItemId);
                            t.Init({
                                ItemId: this._coreModel.ItemId,
                                StarLevel: o.Star
                            }, m.ItemComponentType.ItemWithStar), this.Name.string = this._coreModel.ItemId.ToItemName()
                    } else switch (t.SetItemSimpleState(), this._type) {
                        case l.Pet:
                            this.Name.string = "PetGalleryListPanel_Change_None".ToUILocale();
                            break;
                        case l.LuckyCharm:
                            this.Name.string = "LuckyCharmGallery_Change_None".ToUILocale();
                            break;
                        case l.Core:
                            this.Name.string = "PowerCoreGallery_Core_None".ToUILocale()
                    }
                }, t.prototype.SetAttrContainer = function() {
                    var e = this;
                    if (this.AttrContainer.active = !1, this._itemSid) switch (this.AttrContainer.active = !0, this._type) {
                        case l.Pet:
                            for (var t = h.ConfigDataComponent.Instance.GetConfigById(p.PetBase_Config, this._petModel.Sid), n = void 0, o = 0; o < t.ShowAttr.length; o++)
                                if (this._petModel.Star == t.ShowAttr[o].Items[0]) {
                                    n = t.ShowAttr[o].Items[1];
                                    break
                                } var r = h.ConfigDataComponent.Instance.GetConfigById(p.PetShowAttr_Config, n);
                            for (o = 0; o < r.Attrs.length; o++) {
                                var i = cc.instantiate(this._attrPrefab);
                                i.setParent(this.AttrContainer);
                                var a = r.Attrs[o].Items;
                                i.getComponent(v.default).Init(a[0], a[1], {
                                    NodeWidth: 362,
                                    ValueNodeWidth: 145,
                                    AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                                })
                            }
                            break;
                        case l.LuckyCharm:
                            var s = [];
                            this._luckyCharmModel.ItemId >= _.CommonItemId.PrimordialLuckyCharm && (this._luckyCharmModel.StarSkills.length > 0 || this._luckyCharmModel.GloryStar > 0) ? s = C.default.GetLuckyCharmGalleryAttrs(this._luckyCharmModel) : h.ConfigDataComponent.Instance.GetConfigById(p.LuckyCharmEquip_Config, this._luckyCharmModel.ItemId).ShowAttr.forEach(function(e) {
                                var t = {};
                                t.AttrId = e.Items[0], t.AttrValue = e.Items[1], s.push(t)
                            }), s.forEach(function(t) {
                                var n = cc.instantiate(e._attrPrefab);
                                n.setParent(e.AttrContainer), n.getComponent(v.default).Init(t.AttrId, t.AttrValue, {
                                    NodeWidth: 362,
                                    ValueNodeWidth: 145,
                                    AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                                })
                            });
                            break;
                        case l.Core:
                            h.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, this._coreModel.ItemId).ShowAttr.forEach(function(t) {
                                var n = cc.instantiate(e._attrPrefab);
                                n.setParent(e.AttrContainer), n.getComponent(v.default).Init(t.Items[0], t.Items[1], {
                                    NodeWidth: 362,
                                    ValueNodeWidth: 145,
                                    AttrNamePrefix: "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale()
                                })
                            })
                    }
                }, t.prototype.OnUnloadButtonClick = function() {
                    switch (this._type) {
                        case l.Pet:
                            (e = new d.Req_Item_SetPetShowHouse).Pos = this._slotIndex, e.Sid = 0, h.RpcComponent.Instance.Call(e, function() {
                                u.UIUtlity.ShowFloatingHint("pet_unload_success".ToUILocale()), c.UIManager.Instance.BackUIPanel()
                            });
                            break;
                        case l.LuckyCharm:
                            (e = new d.Req_Item_SetLuckyCharmShowHouse).Pos = this._slotIndex, e.Sid = 0, h.RpcComponent.Instance.Call(e, function() {
                                u.UIUtlity.ShowFloatingHint("LuckyCharm_unload_success".ToUILocale()), c.UIManager.Instance.BackUIPanel()
                            });
                            break;
                        case l.Core:
                            var e;
                            (e = new d.Req_Team_PowerCoreGalleryPutOff).PowerCoreId = this._coreModel.Sid, h.RpcComponent.Instance.Call(e, function() {
                                u.UIUtlity.ShowFloatingHint("PowerCoreGallery_Unload_Success".ToUILocale()), c.UIManager.Instance.BackUIPanel()
                            })
                    }
                }, t.prototype.RefreshListScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o, r = !!n._itemSid;
                        switch (n._type) {
                            case l.Pet:
                                o = n._petModelArray[t];
                                break;
                            case l.LuckyCharm:
                                var i = n._luckyCharmModelArray[t].Sid;
                                r = !!n._itemSid || n._luckyCharmHasWearMap[i] && 1 == n._luckyCharmHasWearMap[i], o = n._luckyCharmModelArray[t];
                                break;
                            case l.Core:
                                o = n._coreModelArray[t]
                        }
                        e.getComponent(I.default).Init(r, n._type, o, n._slotIndex, n._itemPrefab, n._attrPrefab)
                    })
                }, i([w(cc.Node)], t.prototype, "ItemNode", void 0), i([w(cc.Label)], t.prototype, "Name", void 0), i([w(cc.Node)], t.prototype, "CurrentTagNode", void 0), i([w(cc.Label)], t.prototype, "CurrentTagLabel", void 0), i([w(cc.Node)], t.prototype, "AttrContainer", void 0), i([w(cc.Button)], t.prototype, "UnloadButton", void 0), i([w(cc.Label)], t.prototype, "UnloadButtonLabel", void 0), i([w(f.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Label)], t.prototype, "NonePetTip", void 0), i([S], t)
            }(c.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent5": "AttrComponent5",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PetGalleryChangeListItem": "PetGalleryChangeListItem",
        "./LuckyCharmGalleryPanel": "LuckyCharmGalleryPanel"
    }],
    PetGalleryListItemAttr: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "12d14ftyzFN9o8P/SjCTIZI", "PetGalleryListItemAttr");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Auxiliary/DataUtlity"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrTag = null, t.AttrValue = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.AttrTag.string = ("hero_attr_" + e).ToUILocale(), this.AttrValue.string = a.default.GetAttrText(e, t), n && (this.node.width = n)
                }, t.prototype.SetLabelColor = function(e, t) {
                    this.AttrTag.node.color = (new cc.Color).fromHEX(e), this.AttrValue.node.color = (new cc.Color).fromHEX(t)
                }, i([c(cc.Label)], t.prototype, "AttrTag", void 0), i([c(cc.Label)], t.prototype, "AttrValue", void 0), i([l], t)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    PetGalleryListItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9c208ZFcptO8b1gwBB7ObTX", "PetGalleryListItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("./PetGalleryListItemAttr"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../Panel/PetGalleryItemChangePanel"),
            m = e("../../Channel/ChannelManager"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SlotNode = null, t.LockIconNode = null, t.LockTip = null, t.AddIconNode = null, t.PetNode = null, t.AvatarNode = null, t.PetName = null, t.AttrContainer = null, t.RedDotNode = null, t._attrComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnPetSlotNodeClick, this), m.default.Instance.IsVNChannel() && (this.SlotNode.x = 0, this.LockIconNode.x = 0, this.AddIconNode.x = 0, this.AvatarNode.y = 85)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._slotCondition = e, this._nextLockSlotId = t, this._currentGalleryLevel = n, this._attrPrefab = o, this.SetSlotState()
                }, t.prototype.SetSlotState = function() {
                    this.SlotNode.active = !1, this.PetNode.active = !1, this.LockIconNode.active = !1, this.AddIconNode.active = !1, this._slotCondition[1] <= this._currentGalleryLevel ? (this._slotModel = p.DataCenter.Instance.GetDataById(u.PetShowHouse_Model, this._slotCondition[0]), this._slotModel && this._slotModel.PetId ? (this.PetNode.active = !0, this._petModel = p.DataCenter.Instance.GetDataById(u.UserPet_Model, this._slotModel.PetId), this._petBaseConfig = p.ConfigDataComponent.Instance.GetConfigById(c.PetBase_Config, this._petModel.Sid), this.PetName.string = this._petBaseConfig.Id.ToPetName(), this.SetPetAvatar(), this.SetAttrContainer()) : (this.SlotNode.active = !0, this.AddIconNode.active = !0)) : (this.SlotNode.active = !0, this.LockIconNode.active = !0, this.LockTip.node.active = !1, this._nextLockSlotId == this._slotCondition[0] && (this.LockTip.node.active = !0, this.LockTip.string = "PetGalleryListPanel_ListItem_Lock_Tip".ToUILocale().Fmt(this._slotCondition[1]))), this.RedDotNode.active = this.GetRedDotState()
                }, t.prototype.SetPetAvatar = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.AvatarNode.destroyAllChildren(), this._petAvatarPrefab && l.AssetsManager.Instance.UnloadAsset(this._petAvatarPrefab), e = this, [4, l.AssetsManager.Instance.LoadAsset(this._petBaseConfig.UIAvatar + "/Avatar", cc.Prefab)];
                                case 1:
                                    return e._petAvatarPrefab = t.sent(), this.isValid ? (cc.instantiate(this._petAvatarPrefab).setParent(this.AvatarNode), [2]) : (l.AssetsManager.Instance.UnloadAsset(this._petAvatarPrefab), [2])
                            }
                        })
                    })
                }, t.prototype.SetAttrContainer = function() {
                    for (var e, t = 0; t < this._petBaseConfig.ShowAttr.length; t++)
                        if (this._petModel.Star == this._petBaseConfig.ShowAttr[t].Items[0]) {
                            e = this._petBaseConfig.ShowAttr[t].Items[1];
                            break
                        } for (this._currentAttrConfig = p.ConfigDataComponent.Instance.GetConfigById(c.PetShowAttr_Config, e), t = 0; t < this._currentAttrConfig.Attrs.length; t++) {
                        var n = this._attrComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._attrPrefab);
                            o.setParent(this.AttrContainer), n = o.getComponent(f.default), this._attrComponentArray[t] = n
                        }
                        n.node.active = !0;
                        var r = this._currentAttrConfig.Attrs[t].Items;
                        n.Init(r[0], r[1])
                    }
                    if (this._currentAttrConfig.Attrs.length < this._attrComponentArray.length)
                        for (t = this._currentAttrConfig.Attrs.length; t < this._attrComponentArray.length; t++) this._attrComponentArray[t].node.active = !1
                }, t.prototype.GetRedDotState = function() {
                    if (this._slotCondition[1] > this._currentGalleryLevel) return !1;
                    for (var e = [], t = p.ConfigDataComponent.Instance.GetConfigById(c.LevelParam_Config, y.LevelParamType.PetShowHousePos), n = 0; n < t.Data2.length; n++) {
                        var o = p.DataCenter.Instance.GetDataById(u.PetShowHouse_Model, t.Data2[n].Items[0]);
                        o && o.PetId && e.push(o.PetId)
                    }
                    var r = p.DataCenter.Instance.GetDataList(u.UserPet_Model);
                    for (n = 0; n < r.length; n++) {
                        var i = r[n];
                        if (-1 == e.indexOf(i.Sid)) {
                            if (!this._slotModel || !this._slotModel.PetId) return !0;
                            for (var a = p.ConfigDataComponent.Instance.GetConfigById(c.PetBase_Config, i.Sid), s = 0; s < a.ShowAttr.length; s++)
                                if (i.Star == a.ShowAttr[s].Items[0]) {
                                    if (p.ConfigDataComponent.Instance.GetConfigById(c.PetShowAttr_Config, a.ShowAttr[s].Items[1]).AttrScore > this._currentAttrConfig.AttrScore) return !0;
                                    break
                                }
                        }
                    }
                    return !1
                }, t.prototype.OnPetSlotNodeClick = function() {
                    var e;
                    this._slotCondition[1] > this._currentGalleryLevel ? h.UIUtlity.ShowFloatingHint("PetGalleryListPanel_ListItem_Lock_Tip".ToUILocale().Fmt(this._slotCondition[1])) : (this._slotModel && this._slotModel.PetId && (e = this._slotModel.PetId), l.UIManager.Instance.ShowUIPanel(d.PanelConfig.PetGalleryItemChangePanel.Path, e, this._slotCondition[0], g.GalleryItemChangeType.Pet))
                }, i([C(cc.Node)], t.prototype, "SlotNode", void 0), i([C(cc.Node)], t.prototype, "LockIconNode", void 0), i([C(cc.Label)], t.prototype, "LockTip", void 0), i([C(cc.Node)], t.prototype, "AddIconNode", void 0), i([C(cc.Node)], t.prototype, "PetNode", void 0), i([C(cc.Node)], t.prototype, "AvatarNode", void 0), i([C(cc.Label)], t.prototype, "PetName", void 0), i([C(cc.Node)], t.prototype, "AttrContainer", void 0), i([C(cc.Node)], t.prototype, "RedDotNode", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/PetGalleryItemChangePanel": "PetGalleryItemChangePanel",
        "./PetGalleryListItemAttr": "PetGalleryListItemAttr"
    }],
    PetGalleryListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "63eb20WqLRNfblCHWAYmiq8", "PetGalleryListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../Components/CustomLayout"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/PetGalleryListItemComponent"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../Components/AttrComponent2"),
            _ = e("../Components/FetterSkillMaterialComponent"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../Auxiliary/DataUtlity"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.RuleButton = null, t.SubTitle = null, t.PetCustomLayout = null, t.InfoTitle = null, t.CurrentLevelLabel = null, t.NextLevelLabel = null, t.LevelArrowIconNode = null, t.AttrContainer = null, t.NoneAttrTip = null, t.MaterialNode = null, t.MaterialTitle = null, t.MaterialContainer = null, t.UpLevelButton = null, t.UpLevelButtonLabel = null, t.DetailButton = null, t.DetailButtonLabel = null, t.MaxTipLabel = null, t.ReturnButton = null, t._attrComponentArray = [], t._materialComponentArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshListScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshListScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r, i, a = this;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("PetGalleryListPanel/Components/PetGalleryListItemComponent", cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/AttrComponent2", cc.Prefab), o = this.LoadDynamicAsset("CollectionPavilionPanel/Components/FetterSkillMaterialComponent", cc.Prefab), r = this.LoadDynamicAsset(m.BundlePath.ItemComponent, cc.Prefab), i = this.LoadDynamicAsset("PetGalleryListPanel/Components/PetGalleryListItemAttr", cc.Prefab), [4, Promise.all([t, n, o, r, i]).then(function(e) {
                                        a._petListItemPrefab = e[0], a._attrPrefab = e[1], a._materialPrefab = e[2], a._itemPrefab = e[3], a._listItemAttr = e[4]
                                    })];
                                case 1:
                                    return s.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "PetGalleryListPanel_Title".ToUILocale(), this.InfoTitle.string = "PetGalleryListPanel_InfoTitle".ToUILocale(), this.MaterialTitle.string = "PetGalleryListPanel_MaterialTitle".ToUILocale(), this.UpLevelButtonLabel.string = "common_upgrade_level".ToUILocale(), this.DetailButtonLabel.string = "PetGalleryListPanel_Total_Addtion".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.UpLevelButton.node.on("click", this.OnUpLevelButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.PetCustomLayout.Init(this._petListItemPrefab)
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this._petSlotConfig = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, f.LevelParamType.PetShowHousePos), this._galleryConfigArray = d.ConfigDataComponent.Instance.GetArrayConfig(u.PetShowHouse_Config)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n = d.DataCenter.Instance.GetDataById(p.UserSimpleData_Model, f.UserDataKey.PetShowHouseLevel);
                    n && n.V ? this._currentGalleryLevel = n.V : this._currentGalleryLevel = 0, this.PetCustomLayout.RenderLayOut(this._petSlotConfig.Data2.length), this._currentGalleryConfig = d.ConfigDataComponent.Instance.GetConfigById(u.PetShowHouse_Config, this._currentGalleryLevel), this._nextGalleryConfig = d.ConfigDataComponent.Instance.GetConfigById(u.PetShowHouse_Config, this._currentGalleryLevel + 1), this._nextGalleryConfig || (this._nextGalleryConfig = this._currentGalleryConfig), this._currentGalleryLevel || (this._currentGalleryConfig = this._nextGalleryConfig), this.SetSubTitle(), this.SetLevelTip(), this.SetAttrContainer(), this.MaterialNode.active = !1, this.UpLevelButton.node.active = this._currentGalleryLevel < this._galleryConfigArray.length - 1, this.MaxTipLabel.node.active = this._currentGalleryLevel == this._galleryConfigArray.length - 1, this._currentGalleryLevel < this._galleryConfigArray.length - 1 ? (this.MaterialNode.active = !0, this.SetMaterialContainer()) : this.MaxTipLabel.string = "common_max_level".ToUILocale(), this.SetRedDot()
                }, t.prototype.SetSubTitle = function() {
                    for (var e = 0, t = 0; t < this._petSlotConfig.Data2.length; t++) {
                        var n = d.DataCenter.Instance.GetDataById(p.PetShowHouse_Model, this._petSlotConfig.Data2[t].Items[0]);
                        n && n.PetId && e++
                    }
                    this.SubTitle.string = "PetGalleryListPanel_Subtitle".ToUILocale().Fmt(e, this._petSlotConfig.Data2.length)
                }, t.prototype.SetLevelTip = function() {
                    this.CurrentLevelLabel.string = "Lv." + this._currentGalleryLevel, this._currentGalleryLevel < this._galleryConfigArray.length - 1 ? this.NextLevelLabel.string = "Lv." + (this._currentGalleryLevel + 1) : (this.NextLevelLabel.node.active = !1, this.LevelArrowIconNode.active = !1)
                }, t.prototype.SetAttrContainer = function() {
                    for (var e = 0; e < this._currentGalleryConfig.Attr.length; e++) {
                        var t = this._attrComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._attrPrefab);
                            n.setParent(this.AttrContainer), t = n.getComponent(I.default), this._attrComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o = this._currentGalleryConfig.Attr[e].Items[0],
                            r = this._currentGalleryLevel > 0 ? this._currentGalleryConfig.Attr[e].Items[1] : 0,
                            i = this._nextGalleryConfig.Attr[e].Items[1] - r;
                        i > 0 ? t.Init(o, r, i) : t.Init(o, r), t.SetAttrValueStyle(486, 258, I.AttrComponent2Style.Mid, I.AttrComponent2Style.Mid), t.SetPrefix("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())
                    }
                    if (this._currentGalleryConfig.Attr.length < this._attrComponentArray.length)
                        for (e = this._currentGalleryConfig.Attr.length; e < this._attrComponentArray.length; e++) this._attrComponentArray[e].node.active = !1
                }, t.prototype.SetMaterialContainer = function() {
                    this._notEnoughItemId = null;
                    for (var e = 0; e < this._nextGalleryConfig.ConsumeItems.length; e++) {
                        var t = this._materialComponentArray[e];
                        if (!t) {
                            var n = cc.instantiate(this._materialPrefab);
                            n.setParent(this.MaterialContainer), t = n.getComponent(_.default), this._materialComponentArray[e] = t
                        }
                        t.node.active = !0;
                        var o, r = this._nextGalleryConfig.ConsumeItems[e].Items[0];
                        o = this._currentGalleryLevel > 0 ? this._nextGalleryConfig.ConsumeItems[e].Items[1] - this._currentGalleryConfig.ConsumeItems[e].Items[1] : this._currentGalleryConfig.ConsumeItems[e].Items[1], t.Init(this._itemPrefab, r, o), this._notEnoughItemId || d.DataCenter.Instance.IsItemEnough(r, o) || (this._notEnoughItemId = r)
                    }
                }, t.prototype.SetRedDot = function() {
                    v.RedDotManager.Instance.Bind(this.UpLevelButton.node, v.RedDotManager.Instance.RedDot.PetGalleryUpLevel)
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "PetGalleryListPanel_Title".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["PetGalleryListPanel_Rule_Content".ToUILocale()]
                    };
                    c.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnDetailButtonClick = function() {
                    var e = this.GetTotalAttrData();
                    l.UIManager.Instance.ShowUIPanel(C.PanelConfig.CommonTotalAttrPanel.Path, e)
                }, t.prototype.OnUpLevelButtonClick = function() {
                    var e = this;
                    if (this._notEnoughItemId) return c.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughItemId.ToItemName())), void b.default.ShowItemGetWay(this._notEnoughItemId);
                    var t = new p.Req_Item_UpgradePetShowHouse;
                    t.Count = 1, d.RpcComponent.Instance.Call(t, function() {
                        c.UIUtlity.ShowFloatingHint("pet_level_up_seccess".ToUILocale());
                        var t = d.DataCenter.Instance.GetTempData("UserOldBattlePowerData"),
                            n = d.DataCenter.Instance.GetIntData(f.UserDataKey.Power);
                        n > t && l.UIManager.Instance.ShowUIPanel(C.PanelConfig.BattlePowerChangePanel.Path, t, n), e.DisPlay(!0)
                    })
                }, t.prototype.OnReturnButtonClick = function() {
                    l.UIManager.Instance.BackUIPanel()
                }, t.prototype.GetTotalAttrData = function() {
                    var e = [],
                        t = {};
                    t.Title = "gallery_all_attr_up".ToUILocale(), t.IsShowAddAttr = !0, t.AttrPrefix = "CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale();
                    var n = [];
                    this._currentGalleryLevel > 0 && this._currentGalleryConfig.Attr.forEach(function(e) {
                        var t = {};
                        t.attrId = e.Items[0], t.attrvalue = e.Items[1], n.push(t)
                    }), t.AttrArray = n, e.push(t);
                    var o = {};
                    o.Title = "PetGalleryListPanel_TotalAtttr_Pet".ToUILocale(), o.IsShowAddAttr = !0, o.AttrPrefix = null;
                    for (var r = {}, i = 0; i < this._petSlotConfig.Data2.length; i++) {
                        var a = d.DataCenter.Instance.GetDataById(p.PetShowHouse_Model, this._petSlotConfig.Data2[i].Items[0]);
                        if (a && a.PetId) {
                            for (var s = d.DataCenter.Instance.GetDataById(p.UserPet_Model, a.PetId), l = d.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, s.Sid), c = void 0, h = 0; h < l.ShowAttr.length; h++)
                                if (s.Star == l.ShowAttr[h].Items[0]) {
                                    c = l.ShowAttr[h].Items[1];
                                    break
                                } for (var f = d.ConfigDataComponent.Instance.GetConfigById(u.PetShowAttr_Config, c), y = 0; y < f.Attrs.length; y++) {
                                var g = f.Attrs[y].Items[0],
                                    m = f.Attrs[y].Items[1];
                                r[g] ? r[g] += m : r[g] = m
                            }
                        }
                    }
                    var I = [];
                    for (var _ in r) {
                        var C = {};
                        C.attrId = Number(_), C.attrvalue = r[_], I.push(C)
                    }
                    return o.AttrArray = I, e.push(o), e
                }, t.prototype.RefreshListScrollView = function(e, t) {
                    var n = this;
                    if (t == this.PetCustomLayout) {
                        for (var o, r = 0; r < this._petSlotConfig.Data2.length; r++)
                            if (this._currentGalleryLevel < this._petSlotConfig.Data2[r].Items[1]) {
                                o = this._petSlotConfig.Data2[r].Items[0];
                                break
                            } e.forEach(function(e, t) {
                            e.getComponent(g.default).Init(n._petSlotConfig.Data2[t].Items, o, n._currentGalleryLevel, n._listItemAttr)
                        })
                    }
                }, i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(cc.RichText)], t.prototype, "SubTitle", void 0), i([P(h.default)], t.prototype, "PetCustomLayout", void 0), i([P(cc.Label)], t.prototype, "InfoTitle", void 0), i([P(cc.Label)], t.prototype, "CurrentLevelLabel", void 0), i([P(cc.Label)], t.prototype, "NextLevelLabel", void 0), i([P(cc.Node)], t.prototype, "LevelArrowIconNode", void 0), i([P(cc.Node)], t.prototype, "AttrContainer", void 0), i([P(cc.Label)], t.prototype, "NoneAttrTip", void 0), i([P(cc.Node)], t.prototype, "MaterialNode", void 0), i([P(cc.Label)], t.prototype, "MaterialTitle", void 0), i([P(cc.Node)], t.prototype, "MaterialContainer", void 0), i([P(cc.Button)], t.prototype, "UpLevelButton", void 0), i([P(cc.Label)], t.prototype, "UpLevelButtonLabel", void 0), i([P(cc.Button)], t.prototype, "DetailButton", void 0), i([P(cc.Label)], t.prototype, "DetailButtonLabel", void 0), i([P(cc.Label)], t.prototype, "MaxTipLabel", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([w], t)
            }(l.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent2": "AttrComponent2",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/FetterSkillMaterialComponent": "FetterSkillMaterialComponent",
        "../Components/PetGalleryListItemComponent": "PetGalleryListItemComponent"
    }],
    PetHandbookInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3f348irUslPBowamvinS7BI", "PetHandbookInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/Components"),
            d = e("../Components/SkillItemComponent"),
            h = e("../Components/LevelComponent"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("./PetInfoTabAttr"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1, !1), t.PetName = null, t.PetLevel = null, t.PetAttrNodes = [], t.SkillsContainer = null, t.HeaderLevel = null, t.AnimationNode = null, t.ReturnButton = null, t.LeftButton = null, t.RightButton = null, t.DetailButton = null, t._skillItemArray = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(c.BundlePath.SkillItemComponent)];
                                case 1:
                                    return t._skillItem = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OnEvent()
                }, t.prototype.OnEvent = function() {
                    this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.LeftButton.node.on("click", this.OnLeftButtonClick, this), this.RightButton.node.on("click", this.OnRightButtonClick, this), this.DetailButton.node.on("click", this.OnDetailButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._petId = t[0], null == t[1] ? (this._petIdArray = [this._petId], this._currentPetIndex = 0) : (this._petIdArray = t[1], this._currentPetIndex = this._petIdArray.indexOf(this._petId))
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.GetPetConfig(), this.GetConfigLevelData(), this.SetSideButton(), this.RefreshSkills(), this.SetLevel(), this.SetRole(), this.SetAttrValue()
                }, t.prototype.GetPetConfig = function() {
                    this._petId = this._petIdArray[this._currentPetIndex], this._petConfig = p.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, this._petId), this._petStarConfig = p.ConfigDataComponent.Instance.GetConfigById(u.PetStar_Config, this._petConfig.MaxStar)
                }, t.prototype.GetConfigLevelData = function() {
                    this.HeaderLevel.Init(this._petConfig.MaxStar)
                }, t.prototype.SetSideButton = function() {
                    this.LeftButton.node.active = 0 != this._currentPetIndex, this.RightButton.node.active = this._currentPetIndex != this._petIdArray.length - 1
                }, t.prototype.RefreshSkills = function() {
                    this._petSkillsData = g.default.GetPetSkills(this._petId, this._petConfig.MaxStar);
                    for (var e = 0; e < this._petSkillsData.length; e++) {
                        var t = this._skillItemArray[e];
                        if (null == t) {
                            var n = cc.instantiate(this._skillItem);
                            t = n.getComponent(d.default), n.setParent(this.SkillsContainer), this._skillItemArray[e] = t
                        }
                        t.node.active = !0, t.node.name = e.toString(), t.Init(this._petSkillsData[e].SkillId, this._petSkillsData[e].Level)
                    }
                    for (e = this._petSkillsData.length; e < this._skillItemArray.length; e++) this._skillItemArray[e].node.active = !1
                }, t.prototype.SetAttrValue = function() {
                    var e = this,
                        t = g.default.GetPetAttrByQuality(this._petConfig.Quality, this._petConfig.MaxStar, this._petStarConfig.MaxLevel);
                    this.PetAttrNodes.forEach(function(e) {
                        e.active = !1
                    }), t.forEach(function(t, n) {
                        if (n < e.PetAttrNodes.length) {
                            e.PetAttrNodes[n].active = !0;
                            var o = f.default.GetHeroAttribute(t.attrId, t.attrvalue);
                            e.PetAttrNodes[n].getComponent(cc.Sprite).spriteFrame = o.Icon, e.PetAttrNodes[n].getChildByName("Value").getComponent(cc.Label).string = o.Value
                        }
                    })
                }, t.prototype.SetLevel = function() {
                    this.PetLevel.string = "Lv. " + this._petStarConfig.MaxLevel
                }, t.prototype.SetRole = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this.PetName.string = this._petConfig.Id.ToPetName(), this.AnimationNode.destroyAllChildren(), this.AnimationNode.active = !1, this._petConfig.UIAvatar ? (this.ClaerAvatarPrefab(), this.AnimationNode.active = !0, e = this._petConfig.Id, [4, l.AssetsManager.Instance.LoadAsset(this._petConfig.UIAvatar + "/Avatar")]) : [3, 2];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    e == this._petConfig.Id ? (this._currentAvatarPrefab = t, (n = cc.instantiate(t)).setParent(this.AnimationNode), this._avatarAlphaTween && this._avatarAlphaTween.stop(), this._isReDisplay || (n.opacity = 20, this._avatarAlphaTween = cc.tween(n).to(.25, {
                                        opacity: 255
                                    }, {
                                        easing: "cubicIn"
                                    }).start()), this._isReDisplay = !1) : l.AssetsManager.Instance.UnloadAsset(t), o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnReturnButtonClick = function() {
                    this.Close(), l.Game.EventDispatcher.Emit(y.EventKeys.EVENT_REFRESH_HANDBOOK_ITEM, this._petId)
                }, t.prototype.OnLeftButtonClick = function() {
                    this._currentPetIndex > 0 && (this._currentPetIndex--, this.DisPlay())
                }, t.prototype.OnRightButtonClick = function() {
                    this._currentPetIndex < this._petIdArray.length - 1 && (this._currentPetIndex++, this.DisPlay())
                }, t.prototype.ClaerAvatarPrefab = function() {
                    this._currentAvatarPrefab && l.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
                }, t.prototype.OnDetailButton = function() {
                    var e = g.default.GetPetAttrByQuality(this._petConfig.Quality, this._petConfig.MaxStar, this._petStarConfig.MaxLevel),
                        t = {};
                    t.Title = "heroSkin_attr".ToUILocale(), t.IsShowAddAttr = !0, t.AttrArray = e, l.UIManager.Instance.ShowUIPanel(c.PanelConfig.CommonTotalAttrPanel.Path, [t])
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.ClaerAvatarPrefab(), this.AnimationNode.destroyAllChildren()
                }, i([_(cc.Label)], t.prototype, "PetName", void 0), i([_(cc.Label)], t.prototype, "PetLevel", void 0), i([_(cc.Node)], t.prototype, "PetAttrNodes", void 0), i([_(cc.Node)], t.prototype, "SkillsContainer", void 0), i([_(h.LevelComponent)], t.prototype, "HeaderLevel", void 0), i([_(cc.Node)], t.prototype, "AnimationNode", void 0), i([_(cc.Button)], t.prototype, "ReturnButton", void 0), i([_(cc.Button)], t.prototype, "LeftButton", void 0), i([_(cc.Button)], t.prototype, "RightButton", void 0), i([_(cc.Button)], t.prototype, "DetailButton", void 0), i([I], t)
            }(l.BaseUIFullScreenPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/SkillItemComponent": "SkillItemComponent",
        "./PetInfoTabAttr": "PetInfoTabAttr"
    }],
    PetHandbookPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "818c98ReclK/4TpEUfpst74", "PetHandbookPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../Components/ItemComponent"),
            f = e("../Components/CustomLayout"),
            y = e("../Components/HatchItemComponent"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../../Consts/Consts"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Hint = null, t.CustomLayout = null, t._isCustomLayoutInit = !1, t._sortPets = [], t._sortPetIds = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HeroListPanel/PetPanel/Components/HatchItemComponent")];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "pet_handbook".ToUILocale(), this.Hint.string = "pet_max_star_preview".ToUILocale()
                }, t.prototype.InitData = function() {
                    e.prototype.InitData.call(this), this.ConfigAllPets()
                }, t.prototype.ConfigAllPets = function() {
                    var e = this,
                        t = p.ConfigDataComponent.Instance.GetArrayConfig(d.PetBase_Config),
                        n = p.ConfigDataComponent.Instance.GetArrayConfig(d.PetStar_Config);
                    t.forEach(function(t) {
                        g.default.Instance.IsModuleShowAvailable(m.ModuleStartTime.Pet, t.Id) && e._sortPets.push(t)
                    }), this._sortPets.sort(function(e, t) {
                        return e.Quality == t.Quality ? t.Id - e.Id : t.Quality - e.Quality
                    }), this._sortPetIds = [], this._sortPets.forEach(function(t) {
                        e._sortPetIds.push(t.Id)
                    }), this._starMap = {}, n.forEach(function(t) {
                        e._starMap[t.Id] || (e._starMap[t.Id] = t.MaxLevel)
                    })
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._isCustomLayoutInit || (this._isCustomLayoutInit = !0, this.CustomLayout.Init(this._itemPrefab)), this.CustomLayout.RenderLayOut(this._sortPets.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = n._sortPets[t],
                            r = e.getComponent(y.default);
                        e.name = o.Id.toString(), r.Init({
                            ItemId: o.Id,
                            StarLevel: o.MaxStar,
                            Level: n._starMap[o.MaxStar]
                        }, h.ItemComponentType.Pet)
                    })
                }, t.prototype.OnClickItem = function(e, t) {
                    this.CustomLayout.node.children.indexOf(t.parent.parent) < 0 || l.UIManager.Instance.ShowUIPanel(u.PanelConfig.PetHandbookInfoPanel.Path, e, this._sortPetIds)
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.Label)], t.prototype, "Hint", void 0), i([C(f.default)], t.prototype, "CustomLayout", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HatchItemComponent": "HatchItemComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PetHatchComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5e985fi4WlBWrA8dVHLl61u", "PetHatchComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/DataCenter"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("./LoadAssetHelper"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Components/ConfigData/ConfigDataComponent"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../RedDot/RedDotDataHandler"),
            I = e("../../../Consts/Etc"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AddButton = null, t.TimeBgNode = null, t.TimeLabel = null, t.TagLabel = null, t.Icon = null, t.RedDotNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.AddButton.node.on("click", this.OnAddButtonClick, this), this.Icon.node.on(cc.Node.EventType.TOUCH_END, this.OnIconTouchEnd, this), this.TagLabel.string = "pet_magicTag".ToUILocale(), this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(p.default))
                }, t.prototype.Init = function() {
                    this._nestData = c.DataCenter.Instance.GetArrayData(u.UserDataKey.PetNest), this.RedDotNode.active = m.RedDotDataHandler.Instance.RefreshPetHatchState(), this.CheckNestState()
                }, t.prototype.CheckNestState = function() {
                    this._nestData[0] > 0 ? (this._consumeConfig = h.ConfigDataComponent.Instance.GetConfigById(l.ItemConsume_Config, this._nestData[0]), this.TimeBgNode.active = !0, this.AddButton.node.active = !1, this.Icon.node.active = !0, this._loadAssetHelper.LoadSpriteFrame(d.default.Instance.GetItemPathById(this._nestData[0]), this.Icon), this.SetProgressBar()) : (this.TimeBgNode.active = !1, this.Icon.node.active = !1, this.AddButton.node.active = !0)
                }, t.prototype.SetProgressBar = function() {
                    var e = this;
                    this._hatchNeedTime = d.default.Instance.GetPetHatchNeedTime(this._nestData[0]), this.SetCountDown(this._hatchNeedTime, this._nestData[1]), this.unscheduleAllCallbacks(), this.schedule(function() {
                        e.SetCountDown(e._hatchNeedTime, e._nestData[1])
                    }, 1)
                }, t.prototype.SetCountDown = function(e, t) {
                    var n = f.RpcComponent.Instance.ServerTime;
                    this._leaveTime = e - (n - t), this._leaveTime <= 0 && (this._leaveTime = 0, this.RedDotNode.active = m.RedDotDataHandler.Instance.RefreshPetHatchState(), this.unscheduleAllCallbacks()), this.TimeLabel.string = d.default.ActivityTimeLeftFormat(this._leaveTime)
                }, t.prototype.OnAddButtonClick = function() {
                    a.UIManager.Instance.ShowUIPanel(y.PanelConfig.PetChooseHatchPanel.Path)
                }, t.prototype.OnIconTouchEnd = function() {
                    var e = this,
                        t = this._consumeConfig.Param[1].Items[0],
                        n = this._consumeConfig.Param[1].Items[1],
                        o = f.RpcComponent.Instance.ServerTime,
                        r = d.default.Instance.GetPetHatchNeedTime(this._nestData[0]),
                        i = this._nestData[1] + r,
                        s = 0;
                    i > o ? (s = Math.floor(n / this._consumeConfig.Param[0].Items[0]) * Math.ceil((r - (o - this._nestData[1])) / I.Etc.HourDuration), a.UIManager.Instance.ShowUIPanel(y.PanelConfig.PetChooseHatchPanel.Path, "pet_pastTime".ToUILocale().Fmt("<color=#ff6900>" + s + "</color>", t.ToItemName()), function() {
                        c.DataCenter.Instance.IsItemEnough(t, s) ? e.RequestReceivePet(1) : g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(t.ToItemName()))
                    })) : this.RequestReceivePet()
                }, t.prototype.RequestReceivePet = function(e) {
                    var t = new s.Req_Item_PetNestReceive;
                    t.Index = e, f.RpcComponent.Instance.Call(t, function(t) {
                        e && a.UIManager.Instance.BackUIPanel(), g.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    })
                }, i([v(cc.Button)], t.prototype, "AddButton", void 0), i([v(cc.Node)], t.prototype, "TimeBgNode", void 0), i([v(cc.Label)], t.prototype, "TimeLabel", void 0), i([v(cc.Label)], t.prototype, "TagLabel", void 0), i([v(cc.Sprite)], t.prototype, "Icon", void 0), i([v(cc.Node)], t.prototype, "RedDotNode", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    PetHatchPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1c217NV5/lOr71gURa2Nn2t", "PetHatchPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../Components/CurrencyBarItem"),
            p = e("../Components/HatchEggComponent"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("./SinglePagePackPanel"),
            _ = e("./MallPrivilegeMainPanel"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.EggContainer = null, t.HandbookButton = null, t.HandbookButtonLabel = null, t.PrivilegeButton = null, t.PrivilegeButtonLabel = null, t.PetGiftPackButton = null, t.PetGiftPackButtonLabel = null, t.PetWishButton = null, t.PetWishButtonLabel = null, t.RetrunButton = null, t.CurrencyBarItem = null, t._isInit = !1, t._hatchEggComponents = [], t._assets = [], t
                }
                return r(t, e), t.prototype.Init = function() {
                    this._isInit || (this._isInit = !0, this.HandbookButton.node.on("click", this.OnHandbookButtonClick, this), this.PrivilegeButton.node.on("click", this.OnPrivilegeButtonClick, this), this.RetrunButton.node.on("click", this.OnRetrunButtonClick, this), this.PetGiftPackButton.node.on("click", this.OnPetGiftPackButtonClick, this), this.PetWishButton.node.on("click", this.OnPetWishButtonClick, this), this.HandbookButtonLabel.string = "handbook_label".ToUILocale(), this.PrivilegeButtonLabel.string = "pet_privilege".ToUILocale(), this.PetGiftPackButtonLabel.string = "pet_giftPack".ToUILocale(), this.PetWishButtonLabel.string = "pet_wish".ToUILocale(), this.PetWishButton.node.active = m.default.Instance.IsGameModuleUnlock(g.GameModuleType.PetWish)[0]), this.RequestPetNextEnter(), this.SetCurrencyBar()
                }, t.prototype.RequestPetNextEnter = function() {}, t.prototype.SetEggContainer = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this._hatchEggPrefab ? [3, 2] : [4, d.AssetsManager.Instance.LoadAsset("HeroListPanel/PetPanel/Components/HatchEggComponent")];
                                case 1:
                                    if (e = r.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._hatchEggPrefab = e, this._assets.push(e), r.label = 2;
                                case 2:
                                    for (t = h.ConfigDataComponent.Instance.GetArrayConfig(c.PetNest_Config), n = 0; n < t.length; n++) this._hatchEggComponents.length < t.length && ((o = cc.instantiate(this._hatchEggPrefab)).setParent(this.EggContainer.node), this._hatchEggComponents.push(o.getComponent(p.default))), this._hatchEggComponents[n].Init(t[n]);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetCurrencyBar = function() {
                    var e = h.ConfigDataComponent.Instance.GetConfigById(c.ItemConsume_Config, 1103);
                    this.CurrencyBarItem.Init(e.Param[1].Items[0])
                }, t.prototype.OnHandbookButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.PetHandbookPanel.Path)
                }, t.prototype.OnPrivilegeButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.MallPrivilegeGiftPanel.Path, _.MallPrivilegeBasePageType.Subscribe)
                }, t.prototype.OnPetGiftPackButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(f.PanelConfig.SinglePagePackPanel.Path, I.SinglePagePackShowType.PetPage)
                }, t.prototype.OnPetWishButtonClick = function() {
                    l.Game.EventDispatcher.Emit(y.EventKeys.EVENT_PETWISH_PAGE_SHOW)
                }, t.prototype.OnRetrunButtonClick = function() {
                    l.Game.EventDispatcher.Emit(y.EventKeys.EVENT_PETLIST_SHOW)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        d.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([b(cc.Layout)], t.prototype, "EggContainer", void 0), i([b(cc.Button)], t.prototype, "HandbookButton", void 0), i([b(cc.Label)], t.prototype, "HandbookButtonLabel", void 0), i([b(cc.Button)], t.prototype, "PrivilegeButton", void 0), i([b(cc.Label)], t.prototype, "PrivilegeButtonLabel", void 0), i([b(cc.Button)], t.prototype, "PetGiftPackButton", void 0), i([b(cc.Label)], t.prototype, "PetGiftPackButtonLabel", void 0), i([b(cc.Button)], t.prototype, "PetWishButton", void 0), i([b(cc.Label)], t.prototype, "PetWishButtonLabel", void 0), i([b(cc.Button)], t.prototype, "RetrunButton", void 0), i([b(u.default)], t.prototype, "CurrencyBarItem", void 0), i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/HatchEggComponent": "HatchEggComponent",
        "./MallPrivilegeMainPanel": "MallPrivilegeMainPanel",
        "./SinglePagePackPanel": "SinglePagePackPanel"
    }],
    PetInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "eecedLyaXpNToPn0lCR26M8", "PetInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.Tab = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../../GamePlay/Components/Components"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../Components/LevelComponent"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../Components/CustomToggle"),
            I = e("../../RedDot/RedDotManager"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../Components/LoadAssetHelper"),
            v = e("../../RedDot/RedDotDataHandler"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Attr = 0] = "Attr", e[e.UpStar = 1] = "UpStar", e[e.Refine = 2] = "Refine", e[e.None = 3] = "None"
        })(l = n.Tab || (n.Tab = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.PetName = null, t.StarBgNode = null, t.Toggles = [], t.LeftArrowBtn = null, t.RightArrowBtn = null, t.ReturnBtn = null, t.AvatarContainer = null, t.HeroBtnContainer = null, t.RebornBtn = null, t.RebornBtnLabel = null, t._heroBtns = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, Promise.all([this.LoadDynamicAsset("ItemsComponent/LevelComponent", cc.Prefab), this.LoadDynamicAsset("HeroPetPanel/Components/PetSkillComponent", cc.Prefab), this.LoadDynamicAsset("HeroPetPanel/PNG/PetInfoAtlas", cc.SpriteAtlas)]).then(function(t) {
                                    e._starPrefab = t[0], e.PetSkillPrefab = t[1], e.PetInfoAtlas = t[2]
                                })];
                            case 1:
                                return t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                var t = this;
                if (e.prototype.InitUI.call(this), this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this), this.LeftArrowBtn.node.on("click", this.OnClickLeftArrow, this), this.RightArrowBtn.node.on("click", this.OnClickRightArrow, this), this.RebornBtn.node.on("click", this.OnClickReborn, this), this.RebornBtnLabel.string = "hero_reborn_btn".ToUILocale(), this.InitToggles(), !this._starComponent) {
                    var n = cc.instantiate(this._starPrefab);
                    n.setParent(this.StarBgNode), this._starComponent = n.getComponent(y.LevelComponent), n.scale = 1.4
                }
                this._loadAssetHelper || (this._loadAssetHelper = this.node.addComponent(C.default)), this.HeroBtnContainer.children.forEach(function(e, n) {
                    t._heroBtns[n] || (t._heroBtns[n] = {
                        BtnNode: e,
                        HeaderBgNode: cc.find("Background/HeaderBg", e),
                        Icon: cc.find("Background/MaskNode/Icon", e).getComponent(cc.Sprite),
                        LockNode: cc.find("Background/Lock", e),
                        RedDotNode: cc.find("Background/RedDot", e)
                    }, e.name = n.toString(), e.on("click", t.OnHeroButtonClick, t))
                })
            }, t.prototype.InitToggles = function() {
                for (var e = this.Toggles.length, t = 0; t < e; t++) {
                    var n = this.Toggles[t];
                    n.node.on("toggle", this.OnSwitchTab, this), n.Init(("petInfo_toggle_" + t).ToUILocale())
                }
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._petSid = t[0], t[1] ? this._petArr = t[1] : this._petArr = [], this._selectIndex = this._petArr.indexOf(this._petSid), this._defaultTab = l.Attr
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.CheckPetUnlock(this._petSid), this._isReDisplay = t, this._currentTab = l.None, this.ConfigArrowBtn(), this.ConfigTitle();
                var n = this.Toggles[this._defaultTab];
                n.isChecked = !0, this.OnSwitchTab(n)
            }, t.prototype.CheckPetUnlock = function(e) {
                this._petBaseConfig = h.ConfigDataComponent.Instance.GetConfigById(f.PetBase_Config, this._petSid), h.DataCenter.Instance.GetDataById(u.UserPet_Model, e) ? (this.Toggles.forEach(function(e, t) {
                    t != l.UpStar ? e.SetInteractable(!0) : e.Init(("petInfo_toggle_" + l.UpStar).ToUILocale())
                }), this.HeroBtnContainer.active = !0, this.SetHeroHeader(), this.RebornBtn.node.active = !0) : (this._defaultTab = this._currentTab = l.UpStar, this.Toggles.forEach(function(e, t) {
                    t != l.UpStar ? e.SetInteractable(!1, "pet_notGet".ToUILocale()) : e.Init("ChaosTemple_Active".ToUILocale())
                }), this.HeroBtnContainer.active = !1, this.RebornBtn.node.active = !1)
            }, t.prototype.SetHeroHeader = function() {
                var e = this,
                    t = h.DataCenter.Instance.GetDataById(u.UserPet_Model, this._petSid),
                    n = h.ConfigDataComponent.Instance.GetConfigById(f.PetQuality_Config, this._petBaseConfig.Quality);
                n.Slots.forEach(function(n, o) {
                    var r = e._heroBtns[o];
                    if (r) {
                        r.BtnNode.active = !0;
                        var i = t.Owners[o];
                        if (!n || n <= t.Star) {
                            if (i) {
                                r.HeaderBgNode.active = !0, r.Icon.node.parent.active = !0;
                                var a = h.DataCenter.Instance.GetDataById(u.UserHero_Model, i);
                                a && a.SkinId ? e._loadAssetHelper.LoadSpriteFrame(_.BundlePath.HeroHeadIcon + "/" + a.SkinId, r.Icon, null, o) : e._loadAssetHelper.LoadSpriteFrame(_.BundlePath.HeroHeadIcon + "/" + a.HeroId, r.Icon, null, o)
                            } else r.HeaderBgNode.active = !1, r.Icon.node.parent.active = !1;
                            r.LockNode.active = !1
                        } else r.HeaderBgNode.active = !0, r.LockNode.active = !0, r.Icon.node.parent.active = !1;
                        r.RedDotNode.active = v.RedDotDataHandler.Instance.PetNoHero(e._petSid)
                    }
                });
                for (var o = n.Slots.length; o < this._heroBtns.length; o++) this._heroBtns[o].BtnNode.active = !1
            }, t.prototype.ConfigArrowBtn = function() {
                this._petArr.length > 1 ? this._selectIndex <= 0 ? (this.LeftArrowBtn.node.active = !1, this.RightArrowBtn.node.active = !0) : this._selectIndex >= this._petArr.length - 1 ? (this.LeftArrowBtn.node.active = !0, this.RightArrowBtn.node.active = !1) : (this.LeftArrowBtn.node.active = !0, this.RightArrowBtn.node.active = !0) : (this.LeftArrowBtn.node.active = !1, this.RightArrowBtn.node.active = !1)
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                this.SetPanelTab(t), this.BindRedDot()
            }, t.prototype.BindRedDot = function() {
                this.BindAttrToggle(), this.BindStarToggle(), this.BindRefineToggle()
            }, t.prototype.BindAttrToggle = function() {
                var e = this.Toggles[l.Attr].node;
                I.RedDotManager.Instance.BindInstance(e, I.RedDotManager.Instance.InstanceRedDot.PetInfoAttrToggle, {
                    Value1: this._petSid
                })
            }, t.prototype.BindStarToggle = function() {
                var e = this.Toggles[l.UpStar].node;
                I.RedDotManager.Instance.BindInstance(e, I.RedDotManager.Instance.InstanceRedDot.PetInfoStarToggle, {
                    Value1: this._petSid
                })
            }, t.prototype.BindRefineToggle = function() {
                I.RedDotManager.Instance.BindInstance(this.Toggles[l.Refine].node, I.RedDotManager.Instance.InstanceRedDot.PetInfoRefineToggle, {
                    Value1: this._petSid
                })
            }, t.prototype.SetPanelTab = function(e) {
                this._currentTab != e && (this._currentTab = e, this._defaultTab = e, this.Toggles[this._currentTab].isChecked = !0, this.DoSwitchTabJob(), this.ConfigPetAvatar())
            }, t.prototype.DoSwitchTabJob = function() {
                var e = h.DataCenter.Instance.GetDataById(u.UserPet_Model, this._petSid);
                switch (e && e.Star >= this._petBaseConfig.MaxStar ? (this.Toggles[l.UpStar].node.active = !1, this._currentTab == l.UpStar && (this.SetPanelTab(l.Attr), this._currentTab = l.Attr, this.Toggles[l.Attr].isChecked = !0)) : this.Toggles[l.UpStar].node.active = !0, this.Toggles[this._currentTab].isChecked = !0, this._currentTab) {
                    case l.Attr:
                        this.ShowPage("HeroPetPanel/Components/PetInfoTabAttr", this._petSid, this);
                        break;
                    case l.UpStar:
                        this.ShowPage("HeroPetPanel/Components/PetInfoTabStar", this._petSid, this);
                        break;
                    case l.Refine:
                        this.ShowPage("HeroPetPanel/Components/PetInfoTabRefine", this._petSid, this)
                }
            }, t.prototype.OnClickLeftArrow = function() {
                this._selectIndex > 0 && this._selectIndex--, this.ConfigArrowBtn(), this.SwitchPet(this._selectIndex), c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_SELECT_HEROSID, this._petSid)
            }, t.prototype.OnClickRightArrow = function() {
                this._selectIndex < this._petArr.length - 1 && this._selectIndex++, this.ConfigArrowBtn(), this.SwitchPet(this._selectIndex), c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_SELECT_HEROSID, this._petSid)
            }, t.prototype.SwitchPet = function(e) {
                this._petSid = this._petArr[e], this.CheckPetUnlock(this._petSid), this.ConfigTitle(), this.DoSwitchTabJob(), this.ConfigPetAvatar(), this.BindRedDot()
            }, t.prototype.ConfigTitle = function() {
                this.PetName.string = this._petSid.ToPetName();
                var e = h.DataCenter.Instance.GetDataById(u.UserPet_Model, this._petSid);
                this._starComponent.Init(e ? e.Star : 1)
            }, t.prototype.ConfigPetAvatar = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this.AvatarContainer.destroyAllChildren(), this.AvatarContainer.active = !1, this._petBaseConfig.UIAvatar ? (this.ClaerAvatarPrefab(), this.AvatarContainer.active = !0, e = this._petSid, [4, c.AssetsManager.Instance.LoadAsset(this._petBaseConfig.UIAvatar + "/Avatar")]) : [3, 2];
                            case 1:
                                if (t = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(t), [2];
                                e == this._petSid ? (this._currentAvatarPrefab = t, (n = cc.instantiate(t)).setParent(this.AvatarContainer), this._avatarAlphaTween && this._avatarAlphaTween.stop(), this._isReDisplay || (n.opacity = 20, this._avatarAlphaTween = cc.tween(n).to(.25, {
                                    opacity: 255
                                }, {
                                    easing: "cubicIn"
                                }).start()), this._isReDisplay = !1) : c.AssetsManager.Instance.UnloadAsset(t), o.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnReturnBtnClick = function() {
                g.UIManager.Instance.BackUIPanel()
            }, t.prototype.RefreshStarLevel = function() {
                var e = h.DataCenter.Instance.GetDataById(u.UserPet_Model, this._petSid);
                this._starComponent.Init(e.Star)
            }, t.prototype.RefreshPetAttrMode = function() {
                this.ShowPage("HeroPetPanel/Components/PetInfoTabAttr", this._petSid, this)
            }, t.prototype.RefreshPetStarMode = function(e) {
                var t = h.DataCenter.Instance.GetDataById(u.UserPet_Model, this._petSid);
                this.ShowPage("HeroPetPanel/Components/PetInfoTabStar", this._petSid, this), this._starComponent.Init(t.Star);
                for (var n = 0; n < e.length; n++) {
                    var o = e[n],
                        r = this._petArr.indexOf(o);
                    r > -1 && this._petArr.splice(r, 1)
                }
                this._selectIndex = this._petArr.indexOf(this._petSid)
            }, t.prototype.RefreshPetArr = function(e) {
                for (var t = 0; t < e.length; t++) {
                    var n = e[t],
                        o = this._petArr.indexOf(n);
                    o > -1 && this._petArr.splice(o, 1)
                }
                this._selectIndex = this._petArr.indexOf(this._petSid)
            }, t.prototype.OnHeroButtonClick = function(e) {
                var t = this,
                    n = Number.parseInt(e.node.name),
                    o = h.DataCenter.Instance.GetDataById(u.UserPet_Model, this._petSid),
                    r = h.ConfigDataComponent.Instance.GetConfigById(f.PetQuality_Config, this._petBaseConfig.Quality),
                    i = r.Slots[n] || 0;
                if (i <= o.Star)
                    if (o.Owners[n] > 0) d.UIUtlity.ShowHintPanel("", "artifact_remove_check".ToUILocale().Fmt(this._petSid.ToPetName()), "", null, "", function() {
                        t.RequestPutOn(n)
                    });
                    else {
                        var a = o.Owners.filter(function(e) {
                            return e != o.Owners[n]
                        });
                        g.UIManager.Instance.ShowUIPanel(_.PanelConfig.PetSelectHeroPanel.Path, a, function(e) {
                            var i = new u.Req_Item_PetPutOn;
                            i.Sid = t._petSid, i.OwnerId = e, i.Slot = n;
                            for (var a = 0; a < r.Slots.length; a++)
                                if (!o.Owners[a]) {
                                    i.Slot = a;
                                    break
                                } h.RpcComponent.Instance.Call(i, function() {
                                t.SetHeroHeader()
                            })
                        })
                    }
                else d.UIUtlity.ShowFloatingHint("pet_unlockSlot".ToUILocale().Fmt(i))
            }, t.prototype.RequestPutOn = function(e) {
                var t = this,
                    n = new u.Req_Item_PetPutOn;
                n.Sid = this._petSid, n.OwnerId, n.Slot = e, h.RpcComponent.Instance.Call(n, function() {
                    t.SetHeroHeader()
                })
            }, t.prototype.OnClickReborn = function() {
                var e = h.DataCenter.Instance.GetDataById(u.UserPet_Model, this._petSid);
                e.Level <= 1 ? d.UIUtlity.ShowFloatingHint("pet_reborn_limit".ToUILocale()) : g.UIManager.Instance.ShowUIPanel(_.PanelConfig.PetRebornPanel.Path, e)
            }, t.prototype.ClaerAvatarPrefab = function() {
                this._currentAvatarPrefab && c.AssetsManager.Instance.UnloadAsset(this._currentAvatarPrefab), this._currentAvatarPrefab = null
            }, t.prototype.Close = function() {
                e.prototype.Close.call(this), this.AvatarContainer.destroyAllChildren(), this.ClaerAvatarPrefab()
            }, i([w(cc.Label)], t.prototype, "PetName", void 0), i([w(cc.Node)], t.prototype, "StarBgNode", void 0), i([w(m.default)], t.prototype, "Toggles", void 0), i([w(cc.Button)], t.prototype, "LeftArrowBtn", void 0), i([w(cc.Button)], t.prototype, "RightArrowBtn", void 0), i([w(cc.Button)], t.prototype, "ReturnBtn", void 0), i([w(cc.Node)], t.prototype, "AvatarContainer", void 0), i([w(cc.Node)], t.prototype, "HeroBtnContainer", void 0), i([w(cc.Button)], t.prototype, "RebornBtn", void 0), i([w(cc.Label)], t.prototype, "RebornBtnLabel", void 0), i([S], t)
        }(c.BaseUIFullScreenFrame);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper"
    }],
    PetInfoTabAttr: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "88fb9x5g+VGeYO+Iu9vPLmS", "PetInfoTabAttr");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../GamePlay/Components/Components"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/DataUtlity"),
            I = e("../Components/CurrencyBarItem"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../Components/PetSkillComponent"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.None = 0] = "None", e[e.MaxLevelLimit = 1] = "MaxLevelLimit", e[e.StarLevelLimit = 2] = "StarLevelLimit", e[e.LevelUpToMax = 3] = "LevelUpToMax", e[e.LevelUpNormal = 4] = "LevelUpNormal"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HeroLevelLabel = null, t.HeroMaxLevelLabel = null, t.PatternWithContent = null, t.AttrNodes = [], t.SkillLayout = null, t.UpLevelBtn = null, t.MaxUpLevelBtn = null, t.UpLevelIconBtn = null, t.UpLevelIconSprite = null, t.UpLevelLabel = null, t.MaxUpLevelLabel = null, t.UpLevelIconLabel = null, t.UpLevelIconLabelOutline = null, t.CurencyBarContainer = null, t.CurencyBars = [], t.MaxStarNode = null, t.MaxLevelHint = null, t.DetailButton = null, t._isInitial = !1, t._upLevelRequestTimes = 0, t._isRequestingLevelUp = !1, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(p.EventKeys.EVENT_UPHERO_TO_MAX, this.UpPetToMax, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(p.EventKeys.EVENT_UPHERO_TO_MAX, this.UpPetToMax)
            }, t.prototype.Init = function(e, t, n) {
                void 0 === n && (n = !1), n || (this._isRequestingLevelUp = !1, this._upLevelRequestTimes = 0), this._baseUIPanel = t, this._levelUpMode = l.None, this._upToLevel = 0, this._petBaseConfig = f.ConfigDataComponent.Instance.GetConfigById(y.PetBase_Config, this._petId), this._currentStarConfig = f.ConfigDataComponent.Instance.GetConfigById(y.PetStar_Config, this._petModel.Star), this._currentLevelConfig = f.ConfigDataComponent.Instance.GetConfigById(y.PetLevel_Config, this._petModel.Level), this.CofigLevelUpMode(), this.ConfigPetInfo(), this.ConfigSkills(), this.ConfigPanelByMode()
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.UpLevelBtn.node.on("click", this.OnLevelUp, this), this.UpLevelIconBtn.node.on("click", this.OnLevelUp, this), this.MaxUpLevelBtn.node.on("click", this.OnMaxLevelUp, this), this.DetailButton.node.on("click", this.OnDetailButton, this), this.PatternWithContent.string = "pet_attrValue".ToUILocale()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._petId = t[0], this._baseUIPanel = t[1], this._petModel = f.DataCenter.Instance.GetDataById(u.UserPet_Model, this._petId), this._levelUpMode = l.None, this._upToLevel = 0, this._petBaseConfig = f.ConfigDataComponent.Instance.GetConfigById(y.PetBase_Config, this._petId), this._currentStarConfig = f.ConfigDataComponent.Instance.GetConfigById(y.PetStar_Config, this._petModel.Star), this._currentLevelConfig = f.ConfigDataComponent.Instance.GetConfigById(y.PetLevel_Config, this._petModel.Level)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.CofigLevelUpMode(), this.ConfigPetInfo(), this.ConfigSkills(), this.ConfigPanelByMode()
            }, t.prototype.CofigLevelUpMode = function() {
                var e = f.ConfigDataComponent.Instance.GetConfigById(y.PetStar_Config, this._petBaseConfig.MaxStar);
                this._currentPetLevel = this._petModel.Level, this._currentPetLevel >= e.MaxLevel && (this._levelUpMode = l.MaxLevelLimit)
            }, t.prototype.ConfigPetInfo = function() {
                var e = this,
                    t = n.GetPetAttrByQuality(this._petBaseConfig.Quality, this._petModel.Star, this._petModel.Level);
                this.HeroLevelLabel.string = "Lv." + this._currentPetLevel, this.HeroMaxLevelLabel.string = "/" + this._currentStarConfig.MaxLevel, this.AttrNodes.forEach(function(e) {
                    e.active = !1
                }), t.forEach(function(t, n) {
                    if (n < e.AttrNodes.length) {
                        e.AttrNodes[n].active = !0;
                        var o = m.default.GetHeroAttribute(t.attrId, t.attrvalue);
                        e.AttrNodes[n].getChildByName("Icon").getComponent(cc.Sprite).spriteFrame = o.Icon, e.AttrNodes[n].getChildByName("Label").getComponent(cc.Label).string = o.Value
                    }
                })
            }, t.GetPetAttrByQuality = function(e, t, n) {
                var o = {},
                    r = [],
                    i = f.ConfigDataComponent.Instance.GetConfigById(y.PetQuality_Config, e);
                i.Attrs.forEach(function(e) {
                    o[e.Items[0]] || (o[e.Items[0]] = e.Items[1])
                });
                for (var a = i.StarAttrs[t - 1].Items.length / 2, s = 0; s < a; s++) {
                    var l = i.StarAttrs[t - 1],
                        c = l.Items[2 * s],
                        u = l.Items[2 * s + 1];
                    o[c] ? o[c] += u : o[c] = u
                }
                for (var p in i.LevelAttrs.forEach(function(e) {
                        o[e.Items[0]] ? o[e.Items[0]] += e.Items[1] * n : o[e.Items[0]] = e.Items[1]
                    }), o) {
                    var d = {};
                    d.attrId = Number(p), d.attrvalue = o[p], r.push(d)
                }
                return r
            }, t.prototype.ConfigSkills = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, o, r, i;
                    return s(this, function() {
                        for (e = n.GetPetSkills(this._petId, this._petModel.Star), i = 0; i < e.length; i++) t = e[i], void 0 === (o = this.SkillLayout.children[i]) && (o = cc.instantiate(this._baseUIPanel.PetSkillPrefab)).setParent(this.SkillLayout), o.active = !0, (r = o.getComponent(C.default)).Init(t.SkillId, t.Level), t.Active ? r.OffIconGray() : r.OnIconGray();
                        for (i = e.length; i < this.SkillLayout.childrenCount; i++) this.SkillLayout.children[i].active = !1;
                        return [2]
                    })
                })
            }, t.GetPetSkills = function(e, t) {
                for (var n = [], o = f.ConfigDataComponent.Instance.GetConfigById(y.PetBase_Config, e).Skills, r = o.length, i = 0; i < r; i++) {
                    for (var a = o[i].Items, s = 0, l = 0, c = 0; c < a.length; c++) {
                        var u = a[c];
                        s != u && t > c && (l++, s = u)
                    }
                    var p = {
                        SkillId: s,
                        Level: l,
                        Active: !0
                    };
                    n.push(p)
                }
                return n
            }, t.prototype.ConfigPanelByMode = function() {
                this.CurencyBarContainer.active = !1, this.ConfigLevelUpMaterials(), this.ConfigLevelUpCost(), this.ConfigMaxLevelHint(), this.ConfigLevelUpButton()
            }, t.prototype.ConfigLevelUpMaterials = function() {
                var e = f.ConfigDataComponent.Instance.GetConfigById(y.PetStar_Config, this._petBaseConfig.MaxStar);
                if (this._currentPetLevel >= e.MaxLevel) this._levelUpMode = l.MaxLevelLimit;
                else if (this._currentPetLevel >= this._currentStarConfig.MaxLevel) this._levelUpMode = l.StarLevelLimit;
                else {
                    var t = f.ConfigCacheComponent.Instance.GetPetMaxLevelPerStar(),
                        n = t[this._petModel.Star - 1];
                    this._nearStarMaxLevel = n;
                    for (var o = 0; o < t.length; o++) {
                        var r = t[o];
                        if (this._currentPetLevel < r && r >= n) {
                            this._nearStarMaxLevel = r;
                            break
                        }
                    }
                    this.CheckLevelMaterials()
                }
            }, t.prototype.GetLevelUpMaterials = function(e) {
                for (var t = new Map, n = new Map, o = this._currentLevelConfig.Materials, r = 0; r < o.length; r++) {
                    var i = o[r].Items;
                    n.set(i[0], i[1])
                }
                var a = new Map,
                    s = f.ConfigDataComponent.Instance.GetConfigById(y.PetLevel_Config, e).Materials;
                for (r = 0; r < s.length; r++) i = s[r].Items, a.set(i[0], i[1]);
                return a.forEach(function(e, o) {
                    var r = 0;
                    n.has(o) && (r = n.get(o)), t.set(o, e - r)
                }), t
            }, t.prototype.CheckLevelMaterials = function() {
                var e = this._nearStarMaxLevel,
                    t = this._currentPetLevel,
                    n = !1;
                if (e - this._currentPetLevel > 5) {
                    n = !0;
                    for (var o = (p = this.GetLevelUpMaterials(e)).keys(), r = void 0; !(r = o.next()).done;) {
                        var i = r.value,
                            a = p.get(i);
                        if (!f.DataCenter.Instance.IsItemEnough(i, a)) {
                            n = !1;
                            break
                        }
                    }
                }
                this._levelUpMode = n ? l.LevelUpToMax : l.LevelUpNormal;
                for (var s = this._currentPetLevel + 1, c = Math.min(this._currentPetLevel + 5, e), u = s; u <= c; u++) {
                    var p, d = !0;
                    for (o = (p = this.GetLevelUpMaterials(u)).keys(), r = void 0; !(r = o.next()).done;)
                        if (i = r.value, a = p.get(i), !f.DataCenter.Instance.IsItemEnough(i, a)) {
                            this._notEnoughId = i, d = !1;
                            break
                        } if (!d) break;
                    t = u
                }
                this._upToLevel = t
            }, t.prototype.ConfigLevelUpButton = function() {
                switch (this.UpLevelBtn.node.active = !1, this.MaxUpLevelBtn.node.active = !1, this.UpLevelIconBtn.node.active = !1, this._levelUpMode) {
                    case l.StarLevelLimit:
                        this.UpLevelBtn.node.active = !0;
                        break;
                    case l.LevelUpToMax:
                        h.UIUtlity.OffSpriteGray(this.UpLevelIconSprite), this.UpLevelIconLabelOutline.color = (new cc.Color).fromHEX("#684c1b"), this.UpLevelIconBtn.node.active = !0, this.MaxUpLevelBtn.node.active = !0, this.MaxUpLevelLabel.string = "up_to_max_level".ToUILocale().Fmt("Lv." + this._nearStarMaxLevel);
                        break;
                    case l.MaxLevelLimit:
                        break;
                    default:
                        h.UIUtlity.OffSpriteGray(this.UpLevelIconSprite), this.UpLevelIconLabelOutline.color = (new cc.Color).fromHEX("#684c1b"), this.UpLevelIconBtn.node.active = !0
                }
                var e = this._upToLevel - this._currentPetLevel;
                e > 0 ? (this.UpLevelIconLabel.string = "up_level".ToUILocale().Fmt(e), _.RedDotManager.Instance.BindNodeByResult(this.UpLevelIconBtn.node, _.RedDotManager.Instance.InstanceRedDot.HeroInfoAttrLevelBtn, !0)) : (this.UpLevelLabel.string = "up_level".ToUILocale().Fmt(""), this.UpLevelIconLabel.string = "PowerCore_BottomToggle_0".ToUILocale(), h.UIUtlity.OnSpriteGray(this.UpLevelIconSprite), this.UpLevelIconLabelOutline.color = (new cc.Color).fromHEX("#202434"), _.RedDotManager.Instance.BindNodeByResult(this.UpLevelIconBtn.node, _.RedDotManager.Instance.InstanceRedDot.HeroInfoAttrLevelBtn, !1))
            }, t.prototype.ConfigLevelUpCost = function() {
                switch (this._levelUpMode) {
                    case l.MaxLevelLimit:
                    case l.StarLevelLimit:
                        return void(this.CurencyBarContainer.active = !1)
                }
                var e;
                this.CurencyBarContainer.active = !0, e = this._upToLevel == this._currentPetLevel ? this._currentPetLevel + 1 : this._upToLevel;
                for (var t, n = this.GetLevelUpMaterials(e), o = n.keys(), r = 0; !(t = o.next()).done;) {
                    var i = t.value,
                        a = n.get(i),
                        s = this.CurencyBars[r];
                    a > 0 ? (s.node.active = !0, s.Init(i, !1, void 0, a), r++, s.SetFixedWidth(257)) : s.node.active = !1
                }
                for (var c = r; c < this.CurencyBars.length; c++) this.CurencyBars[c].node.active = !1
            }, t.prototype.ConfigMaxLevelHint = function() {
                switch (this._levelUpMode) {
                    case l.MaxLevelLimit:
                        this.MaxStarNode.active = !0, this.MaxLevelHint.string = "level_limit_reach".ToUILocale();
                        break;
                    default:
                        this.MaxStarNode.active = !1
                }
            }, t.prototype.OnLevelUp = function() {
                var e = this;
                switch (this._levelUpMode) {
                    case l.StarLevelLimit:
                        h.UIUtlity.ShowHintPanel("", "starLevel_limit".ToUILocale(), "", null, "", function() {
                            e._baseUIPanel.SetPanelTab(1)
                        });
                        break;
                    default:
                        this._upToLevel > this._currentPetLevel ? this._isRequestingLevelUp || (this._upLevelRequestTimes++, this._isRequestingLevelUp = !0, this.RequestUpgradeLevel(this._upToLevel)) : h.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._notEnoughId.ToItemName()))
                }
            }, t.prototype.OnMaxLevelUp = function() {
                var e = this.GetLevelUpMaterials(this._nearStarMaxLevel);
                g.UIManager.Instance.ShowUIPanel(d.PanelConfig.LevelUpConfirmPanel.Path, this._currentPetLevel, this._nearStarMaxLevel, e, p.EventKeys.EVENT_UPHERO_TO_MAX)
            }, t.prototype.OnDetailButton = function() {
                var e = n.GetPetAttrByQuality(this._petBaseConfig.Quality, this._petModel.Star, this._petModel.Level),
                    t = {};
                t.Title = "heroSkin_attr".ToUILocale(), t.IsShowAddAttr = !0, t.AttrArray = e, g.UIManager.Instance.ShowUIPanel(d.PanelConfig.CommonTotalAttrPanel.Path, [t])
            }, t.prototype.RequestUpgradeLevel = function(e) {
                var t = this,
                    n = new u.Req_Item_PetUpgradeLevel;
                n.Sid = this._petModel.Sid, n.NewLevel = e, f.RpcComponent.Instance.CallWithoutMask(n, function() {
                    t._upLevelRequestTimes--, t._isRequestingLevelUp = !1, t.node.active && n.Sid == t._petModel.Sid && (t._baseUIPanel.RefreshPetAttrMode(), h.UIUtlity.ShowFloatingHint("pet_level_up_seccess".ToUILocale()), t._upLevelRequestTimes > 0 && t.UpLevelBtn.node.active && t.OnLevelUp(), t._baseUIPanel.BindAttrToggle())
                }, function() {
                    t._isRequestingLevelUp = !1, t._upLevelRequestTimes = 0
                })
            }, t.prototype.UpPetToMax = function() {
                this.RequestUpgradeLevel(this._nearStarMaxLevel)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, i([S(cc.Label)], t.prototype, "HeroLevelLabel", void 0), i([S(cc.Label)], t.prototype, "HeroMaxLevelLabel", void 0), i([S(cc.Label)], t.prototype, "PatternWithContent", void 0), i([S(cc.Node)], t.prototype, "AttrNodes", void 0), i([S(cc.Node)], t.prototype, "SkillLayout", void 0), i([S(cc.Button)], t.prototype, "UpLevelBtn", void 0), i([S(cc.Button)], t.prototype, "MaxUpLevelBtn", void 0), i([S(cc.Button)], t.prototype, "UpLevelIconBtn", void 0), i([S(cc.Sprite)], t.prototype, "UpLevelIconSprite", void 0), i([S(cc.Label)], t.prototype, "UpLevelLabel", void 0), i([S(cc.Label)], t.prototype, "MaxUpLevelLabel", void 0), i([S(cc.Label)], t.prototype, "UpLevelIconLabel", void 0), i([S(cc.LabelOutline)], t.prototype, "UpLevelIconLabelOutline", void 0), i([S(cc.Node)], t.prototype, "CurencyBarContainer", void 0), i([S(I.default)], t.prototype, "CurencyBars", void 0), i([S(cc.Node)], t.prototype, "MaxStarNode", void 0), i([S(cc.Label)], t.prototype, "MaxLevelHint", void 0), i([S(cc.Button)], t.prototype, "DetailButton", void 0), n = i([b], t)
        }(c.BaseUIPage);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/PetSkillComponent": "PetSkillComponent"
    }],
    PetInfoTabRefine: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3006ddlnsJIsJsVpWq7vW4q", "PetInfoTabRefine");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../Components/CustomProgressBar"),
            u = e("../Components/CurrencyBarItem"),
            p = e("../../Components/DataCenter"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Components/Components"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../RedDot/RedDotDataHandler"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.InfoButton = null, t.LevelLabel = null, t.CustomProgressBar = null, t.ProgressValueLabel = null, t.UpLevelSkeleton = null, t.CurrencyBarItem = null, t.GrayButton = null, t.GrayButtonLabel = null, t.OkButton = null, t.OkButtonLabel = null, t.LayoutNode = null, t._refineAttrArr = [], t._costItemId = d.CommonItemId.PetRefine, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.InfoButton.node.on("click", this.OnInfoButtonClick, this), this.OkButton.node.on("click", this.OnOkButtonClick, this), this.GrayButtonLabel.string = this.OkButtonLabel.string = "ok".ToUILocale();
                    for (var t = this.LayoutNode.childrenCount; t < 5; t++) {
                        var n = cc.instantiate(this.LayoutNode.children[0]);
                        this.LayoutNode.addChild(n)
                    }
                    for (t = 0; t < 5; t++) this._refineAttrArr[t] || ((n = this.LayoutNode.children[t]).name = t.toString(), n.on(cc.Node.EventType.TOUCH_END, this.OnAttrTouchEnd, this), this._refineAttrArr[t] = {
                        Node: n,
                        QualityBg: n.getChildByName("QualityBg").getComponent(cc.Sprite),
                        QualityRichText: n.getChildByName("QualityRichText").getComponent(cc.RichText),
                        ValueRichText: n.getChildByName("ValueRichText").getComponent(cc.RichText),
                        Lock: n.getChildByName("Lock").getComponent(cc.Sprite),
                        RedDotNode: n.getChildByName("RedDot"),
                        RefreshSkeleton: n.getChildByName("RefreshSkeleton").getComponent(sp.Skeleton),
                        UnlockSkeleton: n.getChildByName("UnlockSkeleton").getComponent(sp.Skeleton)
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._petId = t[0], this._baseUIPanel = t[1], this.SetPageData(), this._petBaseConfig = h.ConfigDataComponent.Instance.GetConfigById(l.PetBase_Config, this._petId), this._petQualityConfig = h.ConfigDataComponent.Instance.GetConfigById(l.PetQuality_Config, this._petBaseConfig.Quality), this._costItemCount = 0
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._hasRequestRefine = !1, this._hasTouchUnlockAttr = !1, this.RefreshPage(), this.PlayUpLevelAni(!1)
                }, t.prototype.SetPageData = function() {
                    this._petModel = p.DataCenter.Instance.GetDataById(s.UserPet_Model, this._petId), this._refineLevel = Math.max(1, p.DataCenter.Instance.GetIntData(d.UserDataKey.PetRefineLevel)), this._refineXp = p.DataCenter.Instance.GetIntData(d.UserDataKey.PetRefineXp)
                }, t.prototype.RefreshPage = function() {
                    this.LevelLabel.string = "pet_refineLevel".ToUILocale().Fmt(this._refineLevel), this.SetProgress(), this.SetRefineAttr(), this.RefreshCostItemCount(), this.SetOkBtnState()
                }, t.prototype.SetProgress = function() {
                    var e = h.ConfigDataComponent.Instance.GetConfigById(l.PetRefineLevel_Config, this._refineLevel),
                        t = h.ConfigDataComponent.Instance.GetConfigById(l.PetRefineLevel_Config, this._refineLevel + 1);
                    if (t) {
                        var n = this._refineXp - e.Xp,
                            o = t.Xp - e.Xp;
                        this.ProgressValueLabel.string = "{0}/{1}".Fmt(n, o), this.CustomProgressBar.progress = n / o
                    } else this.ProgressValueLabel.string = this._refineXp.toString(), this.CustomProgressBar.progress = 1
                }, t.prototype.SetRefineAttr = function() {
                    this.unscheduleAllCallbacks();
                    for (var e = 0; e < this._petQualityConfig.EntryUnlock.length; e++) this.RefreshSingleAttr(e);
                    for (e = this._petQualityConfig.EntryUnlock.length; e < this._refineAttrArr.length; e++) this._refineAttrArr[e].Node.active = !1;
                    this._hasRequestRefine = !1, this._hasTouchUnlockAttr = !1
                }, t.prototype.RefreshSingleAttr = function(e) {
                    var t = this._refineAttrArr[e];
                    t.Node.active = !0, this.StopAttrComponentAni(t);
                    var n = this._petQualityConfig.EntryUnlock[e].Items,
                        o = g.default.Instance.CheckPetRefineAttrUnlock(this._petId, n),
                        r = this._petModel.Entries[e],
                        i = this._hasRequestRefine && !t.EntryId && r > 0,
                        a = this._hasRequestRefine && !this._hasTouchUnlockAttr && r > 0;
                    if (t.IsUnlock = o, t.EntryId = r, t.RedDotNode.active = !1, o) r ? i ? this.PlayUnlockAni(t) : a ? this.PlayRefreshAni(t) : this.SetAttrValue(t) : (t.QualityRichText.string = "<img src='Lock' width=33 height=37 align=center/>", t.QualityBg.spriteFrame = this.GetPetInfoAtlasSpriteFrame("Bg2"), t.QualityBg.node.height = 50, t.QualityBg.node.width = 120, t.ValueRichText.string = "<color=#999999>" + "levelGift_canUnlock".ToUILocale() + "</color>", t.Lock.node.active = !1, t.RedDotNode.active = !0);
                    else {
                        var s = this.GetConditionText(n);
                        t.QualityRichText.string = "<img src='Lock' width=33 height=37 align=center/>", t.QualityBg.spriteFrame = this.GetPetInfoAtlasSpriteFrame("Bg2"), t.QualityBg.node.height = 50, t.QualityBg.node.width = 120, t.ValueRichText.string = "<color=#999999>" + s + "</color>", t.Lock.node.active = !1
                    }
                }, t.prototype.SetAttrValue = function(e) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(l.PetEntry_Config, Math.abs(e.EntryId));
                    e.QualityRichText.string = "<outline color=#202434 width=3>" + y.UIUtlity.GetQualityFlag(t.Quality) + "</outline>", e.QualityBg.spriteFrame = this.GetPetInfoAtlasSpriteFrame("qualityBg" + t.Quality), e.QualityBg.node.height = 61, e.QualityBg.node.width = 130;
                    var n = t.Attrs[0].Items[0],
                        o = t.Attrs[0].Items[1],
                        r = g.default.GetHeroAttributeName(n);
                    2 == t.Type && (r = "UserTitle_AllHero".ToUILocale() + r), e.ValueRichText.string = r + " <outline width=3 color=#202434><color=#6eeea7>+" + g.default.GetHeroAttributeValue(o, n, null, !0) + "</color></outline>", e.Lock.node.active = !0, e.EntryId < 0 ? e.Lock.spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("lock_gold") : e.Lock.spriteFrame = y.UIUtlity.COMMON_ATLAS4.getSpriteFrame("unlock")
                }, t.prototype.GetPetInfoAtlasSpriteFrame = function(e) {
                    return this._baseUIPanel.PetInfoAtlas.getSpriteFrame(e)
                }, t.prototype.GetConditionText = function(e) {
                    for (var t = "", n = 0; n < e.length; n += 2) {
                        var o = e[n],
                            r = e[n + 1];
                        switch (o) {
                            case 1:
                                t += "pet_refineAttrCondition_1".ToUILocale().Fmt(r);
                                break;
                            case 2:
                                t += "pet_refineAttrCondition_2".ToUILocale().Fmt(r)
                        }
                        n < e.length - 2 && (t += "\uff0c")
                    }
                    return t
                }, t.prototype.OnAttrTouchEnd = function(e) {
                    var t = this,
                        n = Number(e.target.name),
                        o = this._refineAttrArr[n];
                    if (o.IsUnlock)
                        if (o.EntryId) {
                            var r = new s.Req_Item_PetLock;
                            r.Sid = this._petId, r.Lock = [];
                            for (var i = 0; i < n; i++) r.Lock[i] = this._petModel.Entries[i] < 0;
                            r.Lock[n] = !(this._petModel.Entries[n] < 0), h.RpcComponent.Instance.Call(r, function() {
                                t.SetPageData(), t.RefreshCostItemCount(), t.RefreshSingleAttr(n), t.SetOkBtnState()
                            })
                        } else this.RequestRefine(!0)
                }, t.prototype.RefreshCostItemCount = function() {
                    var e = 0;
                    this._petModel.Entries.forEach(function(t) {
                        t < 0 && e++
                    });
                    var t = h.ConfigDataComponent.Instance.GetConfigById(l.PetRefineLevel_Config, this._refineLevel);
                    this._costItemCount = t.Consume[e], this.InitCurrencyBarItem()
                }, t.prototype.SetOkBtnState = function() {
                    this._baseUIPanel.BindRefineToggle(), this.BindRefineRedDot();
                    for (var e = 0; e < this._petModel.Entries.length; e++)
                        if (this._petModel.Entries[e] > 0) return this.OkButton.node.active = !0, void(this.GrayButton.node.active = !1);
                    this.OkButton.node.active = !1, this.GrayButton.node.active = !0
                }, t.prototype.BindRefineRedDot = function() {
                    m.RedDotManager.Instance.BindNodeByResult(this.OkButton.node, m.RedDotManager.Instance.InstanceRedDot.PetInfoRefineUpgrade, I.RedDotDataHandler.Instance.IsPetCanRefine({
                        Value1: this._petId
                    }))
                }, t.prototype.InitCurrencyBarItem = function() {
                    this.CurrencyBarItem.Init(this._costItemId, !1, void 0, this._costItemCount)
                }, t.prototype.OnInfoButtonClick = function() {
                    a.UIManager.Instance.ShowUIPanel(f.PanelConfig.PetRefineLevelPanel.Path, this._refineLevel)
                }, t.prototype.OnOkButtonClick = function() {
                    for (var e = this, t = 0; t < this._petModel.Entries.length; t++)
                        if (this._petModel.Entries[t] > 0) return p.DataCenter.Instance.IsItemEnough(this._costItemId, this._costItemCount) ? void(this.HaveMaxQualityEntryNotLock() ? y.UIUtlity.ShowHintPanel("", "pet_refineMaxQuality".ToUILocale(), "", null, "", function() {
                            e.RequestRefine()
                        }) : this.RequestRefine()) : void a.UIManager.Instance.ShowUIPanel(f.PanelConfig.ItemGetWayPanel.Path, this._costItemId)
                }, t.prototype.HaveMaxQualityEntryNotLock = function() {
                    for (var e, t = h.ConfigDataComponent.Instance.GetConfigById(l.PetRefineLevel_Config, this._refineLevel), n = t.EntryWeight.length - 1; n >= 0; n--)
                        if (t.EntryWeight[n] > 0) {
                            e = n + 1;
                            break
                        } for (n = 0; n < this._petModel.Entries.length; n++)
                        if (this._petModel.Entries[n] > 0 && h.ConfigDataComponent.Instance.GetConfigById(l.PetEntry_Config, this._petModel.Entries[n]).Quality >= e) return !0;
                    return !1
                }, t.prototype.RequestRefine = function(e) {
                    var t = this;
                    void 0 === e && (e = !1);
                    var n = new s.Req_Item_PetRefine;
                    n.Sid = this._petId, this._oldLevel = this._refineLevel, h.RpcComponent.Instance.Call(n, function() {
                        t._hasRequestRefine = !0, t._hasTouchUnlockAttr = e, t.SetPageData(), t.RefreshPage(), t._refineLevel > t._oldLevel && t.PlayUpLevelAni(!0)
                    })
                }, t.prototype.PlayUpLevelAni = function(e) {
                    var t = this;
                    e ? (this.UpLevelSkeleton.node.active = !0, this.UpLevelSkeleton.setAnimation(0, "Ani_UI_Effect_shimo_xilian", !1), this.UpLevelSkeleton.setCompleteListener(function() {
                        t.UpLevelSkeleton.node.active = !1
                    })) : this.UpLevelSkeleton.node.active = !1
                }, t.prototype.StopAttrComponentAni = function(e) {
                    e.UnlockSkeleton.node.active = !1, e.RefreshSkeleton.node.active = !1
                }, t.prototype.PlayUnlockAni = function(e) {
                    var t = this;
                    e.UnlockSkeleton.node.active = !0, e.UnlockSkeleton.setAnimation(0, "Ani_UI_Effect_shimo_jiesuo", !1), e.UnlockSkeleton.setCompleteListener(function() {
                        e.UnlockSkeleton.node.active = !1
                    }), e.QualityRichText.string = "", this.scheduleOnce(function() {
                        t.PlayRefreshAni(e)
                    }, 1)
                }, t.prototype.PlayRefreshAni = function(e) {
                    var t = this;
                    e.RefreshSkeleton.node.active = !0, e.RefreshSkeleton.setAnimation(0, "Ani_UI_Effect_shimo_shuaxin", !1), e.RefreshSkeleton.setCompleteListener(function() {
                        e.RefreshSkeleton.node.active = !1
                    }), this.scheduleOnce(function() {
                        t.SetAttrValue(e)
                    }, .133)
                }, i([v(cc.Button)], t.prototype, "InfoButton", void 0), i([v(cc.Label)], t.prototype, "LevelLabel", void 0), i([v(c.default)], t.prototype, "CustomProgressBar", void 0), i([v(cc.Label)], t.prototype, "ProgressValueLabel", void 0), i([v(sp.Skeleton)], t.prototype, "UpLevelSkeleton", void 0), i([v(u.default)], t.prototype, "CurrencyBarItem", void 0), i([v(cc.Button)], t.prototype, "GrayButton", void 0), i([v(cc.Label)], t.prototype, "GrayButtonLabel", void 0), i([v(cc.Button)], t.prototype, "OkButton", void 0), i([v(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([v(cc.Node)], t.prototype, "LayoutNode", void 0), i([C], t)
            }(a.BaseUIPage);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar"
    }],
    PetInfoTabStar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a02a77LACxDwYV0UUq5gdDD", "PetInfoTabStar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../Components/LevelComponent"),
            m = e("../Components/ItemComponent"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("./PetInfoTabAttr"),
            v = e("../../RedDot/RedDotManager"),
            b = e("../../RedDot/RedDotDataHandler"),
            S = e("../Components/PetSkillComponent"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LevelContainer = null, t.Arrow = null, t.StarInfoContainer = null, t.SkillMode = null, t.TextMode = null, t.Skill2Node = null, t.CurPetSkillComponent = null, t.NextPetSkillComponent = null, t.CurPetSkillComponent2 = null, t.NextPetSkillComponent2 = null, t.SkillMode_LevelDesc = null, t.SkillMode_CurMaxLevel = null, t.SkillMode_NextMaxLevel = null, t.SkillModeInfoLayoutNode = null, t.TextModeMaxLevelDesc = null, t.TextModeCurMaxLevel = null, t.TextModeLevelArrow = null, t.TextModeNextMaxLevel = null, t.TextModeLayoutNode = null, t.TextMode_LevelDesc = null, t.TextMode_CurMaxLevel = null, t.TextMode_NextMaxLevel = null, t.TextMode_SkillDesc = null, t.TextMode_CurSkillLevel = null, t.TextMode_NextSkillLevel = null, t.TextMode_AttrDesc = null, t.TextMode_AttrValue = null, t.TextMode_Skill_Layout = null, t.PetItemContainer = null, t.UpGradeBg = null, t.UpGradeBtn = null, t.UpGradeBtnLabel = null, t.GrayUpGradeButton = null, t.GrayUpGradeButtonLabel = null, t.MaxStarNode = null, t.MaxStarHint = null, t._isReachMaxStarLevel = !1, t.CurLevelComponentOffset = -120, t._materialItemComponents = [], t._skillModeAttrs = [], t._textModeAttrs = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnClickPetMaterial, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnClickPetMaterial)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("ItemsComponent/LevelComponent", cc.Prefab), this.LoadDynamicAsset("ItemsComponent/ItemComponent", cc.Prefab)]).then(function(e) {
                                        t._starPrefab = e[0], t._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    var t = this;
                    e.prototype.InitUI.call(this), this.SkillMode_LevelDesc.string = "level_limit".ToUILocale(), this.TextModeMaxLevelDesc.string = "level_limit".ToUILocale(), this.GrayUpGradeButton.node.on("click", this.OnGrayUpGradeButtonClick, this), this.UpGradeBtn.node.on("click", this.OnUpGrade, this);
                    for (var n = 1; n < this.SkillModeInfoLayoutNode.childrenCount; n++)
                        if (!this._skillModeAttrs[n - 1]) {
                            var o = this.SkillModeInfoLayoutNode.children[n];
                            this._skillModeAttrs[n - 1] = {
                                Node: o,
                                Icon: o.getChildByName("Icon").getComponent(cc.Sprite),
                                NameLabel: o.getChildByName("NameLabel").getComponent(cc.Label),
                                ValueRichText: o.getChildByName("ValueRichText").getComponent(cc.RichText)
                            }
                        } this.TextModeLayoutNode.children.forEach(function(e, n) {
                        t._textModeAttrs[n] || (t._textModeAttrs[n] = {
                            Node: e,
                            Icon: e.getChildByName("Icon").getComponent(cc.Sprite),
                            NameLabel: e.getChildByName("NameLabel").getComponent(cc.Label),
                            ValueRichText: e.getChildByName("ValueRichText").getComponent(cc.RichText)
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._petId = t[0], this._baseUIPanel = t[1], this._petModel = d.DataCenter.Instance.GetDataById(c.UserPet_Model, this._petId), this._petBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(h.PetBase_Config, this._petId), this.SetPetModel()
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.ConfigStarLevel(), this.ConfigStarUpInfo(), this.ConfigMaterials(), this.ConfigMaxStarHint(), this.BindUpgradeRedDot()
                }, Object.defineProperty(t.prototype, "Star", {
                    get: function() {
                        return this._petModel ? this._petModel.Star : 1
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Level", {
                    get: function() {
                        return this._petModel ? this._petModel.Level : 1
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.SetPetModel = function() {
                    this._petModel ? (this._petModel.Star >= this._petBaseConfig.MaxStar ? this._isReachMaxStarLevel = !0 : (this._isReachMaxStarLevel = !1, this._nextStarConfig = d.ConfigDataComponent.Instance.GetConfigById(h.PetStar_Config, this.Star + 1)), this.UpGradeBtn.node.active = !0, this.GrayUpGradeButton.node.active = !1, this.UpGradeBtnLabel.string = "ok".ToUILocale()) : (this._isReachMaxStarLevel = !1, this.UpGradeBtn.node.active = !1, this.GrayUpGradeButton.node.active = !0, this.GrayUpGradeButtonLabel.string = "ChaosTemple_Active".ToUILocale()), this._curStarConfig = d.ConfigDataComponent.Instance.GetConfigById(h.PetStar_Config, this.Star)
                }, t.prototype.ConfigStarLevel = function() {
                    this._petModel ? this._isReachMaxStarLevel ? (this.Arrow.active = !1, this.ConfigCurLevelComponent(0, 0), this.ConfigNextLevelComponent(!1)) : (this.Arrow.active = !0, this.ConfigCurLevelComponent(this.CurLevelComponentOffset, 0), this.ConfigNextLevelComponent(!0, this.Star + 1)) : (this.Arrow.active = !1, this.ConfigCurLevelComponent(0, 0), this.ConfigNextLevelComponent(!1))
                }, t.prototype.ConfigCurLevelComponent = function(e, t) {
                    if (!this._curLevelComponent) {
                        var n = cc.instantiate(this._starPrefab);
                        n.setParent(this.LevelContainer), this._curLevelComponent = n.getComponent(g.LevelComponent), n.scale = 1.4
                    }
                    this._curLevelComponent.Init(this.Star), this._curLevelComponent.node.setPosition(e, t)
                }, t.prototype.ConfigNextLevelComponent = function(e, t) {
                    if (e) {
                        if (!this._nextLevelComponent) {
                            var n = cc.instantiate(this._starPrefab);
                            n.setParent(this.LevelContainer), this._nextLevelComponent = n.getComponent(g.LevelComponent), n.setPosition(-this.CurLevelComponentOffset, 0), n.scale = 1.4
                        }
                        this._nextLevelComponent.node.active = !0, this._nextLevelComponent.Init(t)
                    } else this._nextLevelComponent && (this._nextLevelComponent.node.active = !1)
                }, t.prototype.ConfigStarUpInfo = function() {
                    var e = this;
                    if (this._isReachMaxStarLevel) this.StarInfoContainer.active = !1;
                    else {
                        this.StarInfoContainer.active = !0;
                        for (var t = [], n = C.default.GetPetSkills(this._petId, this.Star), o = this._petModel ? C.default.GetPetSkills(this._petId, this.Star + 1) : [], r = n.length, i = 0; i < r; i++) {
                            var a = n[i],
                                s = o[i];
                            s && s.SkillId == a.SkillId || t.push(i)
                        }
                        var l = d.ConfigDataComponent.Instance.GetConfigById(h.PetQuality_Config, this._petBaseConfig.Quality),
                            c = C.default.GetPetAttrByQuality(this._petBaseConfig.Quality, this.Star, this.Level);
                        this.SkillMode.active = !0, this.TextMode.active = !1;
                        var u = t[0];
                        if (this.CurPetSkillComponent.Init(n[u].SkillId, n[u].Level), this.SkillMode_CurMaxLevel.string = this._curStarConfig.MaxLevel.toString(), this._petModel ? (this.NextPetSkillComponent.node.active = !0, this.CurPetSkillComponent.node.x = -98, this.NextPetSkillComponent.Init(o[u].SkillId, o[u].Level), this.SkillMode_NextMaxLevel.node.active = !0, this.SkillMode_NextMaxLevel.node.parent.getChildByName("Arrow").active = !0, this.SkillMode_NextMaxLevel.string = this._nextStarConfig.MaxLevel.toString()) : (this.NextPetSkillComponent.node.active = !1, this.CurPetSkillComponent.node.x = 0, this.SkillMode_NextMaxLevel.node.parent.getChildByName("Arrow").active = !1, this.SkillMode_NextMaxLevel.node.active = !1), t.length > 1) {
                            this.Skill2Node.active = !0;
                            var p = t[1];
                            this.CurPetSkillComponent2.Init(n[p].SkillId, n[p].Level), this._petModel ? (this.NextPetSkillComponent2.node.active = !0, this.CurPetSkillComponent2.node.x = -98, this.NextPetSkillComponent2.Init(o[p].SkillId, o[p].Level)) : (this.NextPetSkillComponent2.node.active = !1, this.CurPetSkillComponent2.node.x = 0)
                        } else this.Skill2Node.active = !1;
                        var f = l.StarAttrs[this.Star].Items,
                            g = l.StarAttrs[this.Star - 1].Items;
                        for (c.forEach(function(t, n) {
                                if (e._skillModeAttrs[n]) {
                                    e._skillModeAttrs[n].Node.active = !0;
                                    var o = y.default.GetHeroAttribute(t.attrId, t.attrvalue);
                                    e._skillModeAttrs[n].Icon.spriteFrame = o.Icon, e._skillModeAttrs[n].NameLabel.string = o.Name;
                                    var r = f.findIndex(function(e) {
                                            return e == t.attrId
                                        }),
                                        i = g.findIndex(function(e) {
                                            return e == t.attrId
                                        });
                                    if (e._petModel) {
                                        var a;
                                        a = r > -1 ? i > -1 ? f[r + 1] - g[i + 1] : f[r + 1] : 0;
                                        var s = y.default.GetHeroAttribute(t.attrId, a);
                                        e._skillModeAttrs[n].ValueRichText.string = o.Value + " <outline color=#202434 width=3><color = #6eeea7>+" + s.Value + "</c></outline>"
                                    } else e._skillModeAttrs[n].ValueRichText.string = o.Value
                                }
                            }), i = c.length; i < this._skillModeAttrs.length; i++) this._skillModeAttrs[i].Node.active = !1
                    }
                }, t.prototype.ConfigMaterials = function() {
                    if (this._isReachMaxStarLevel) this.PetItemContainer.active = !1;
                    else {
                        var e;
                        this.PetItemContainer.active = !0, this._selectData = [], e = this._petModel ? this._nextStarConfig.StarMaterials : [{
                            Items: [0, 1]
                        }];
                        for (var t = 0; t < e.length; t++) {
                            var n = this._materialItemComponents[t];
                            if (!n) {
                                var o = cc.instantiate(this._itemPrefab);
                                o.setParent(this.PetItemContainer), n = o.getComponent(m.ItemComponent), this._materialItemComponents[t] = n
                            }
                            n.node.name = t.toString(), n.node.active = !0;
                            var r = e[t].Items,
                                i = r[0],
                                a = r[1];
                            0 == i && (i = Number.parseInt("10" + this._petId)), n.Init({
                                ItemId: i,
                                Count: 1
                            }, m.ItemComponentType.ItemCommon);
                            var s = d.DataCenter.Instance.IsItemEnough(i, a) ? a : d.DataCenter.Instance.GetItemCount(i);
                            n.SetProgressBar(s, a), s > 0 ? n.OffIconGray() : n.OnIconGray();
                            for (var l = [], c = 0; c < s; c++) l.push(i);
                            var u = {
                                Component: n,
                                Type: 0,
                                ItemId: i,
                                StarLevel: 0,
                                Element: I.HeroElementType.All,
                                NeedCount: a,
                                SelectIds: l
                            };
                            this._selectData.push(u)
                        }
                        for (t = e.length; t < this._materialItemComponents.length; t++) this._materialItemComponents[t].node.active = !1
                    }
                }, t.prototype.OnClickPetMaterial = function(e, t) {
                    if (-1 != this.PetItemContainer.children.indexOf(t)) {
                        this._clickMaterialIndex = e;
                        var n = this._selectData[e];
                        _.UIUtlity.ShowItemTip(n.ItemId, t)
                    }
                }, t.prototype.OnGrayUpGradeButtonClick = function() {
                    this.OnUpGrade()
                }, t.prototype.OnUpGrade = function() {
                    if (this._petModel) {
                        for (var e, t = !1, n = 0; n < this._selectData.length; n++) {
                            var o = this._selectData[n];
                            if (o.SelectIds.length < o.NeedCount) {
                                t = !0, e = o.ItemId;
                                break
                            }
                        }
                        if (t) f.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, e);
                        else {
                            var r = new c.Req_Item_PetUpgradeStar;
                            r.Sid = this._petId, d.RpcComponent.Instance.Call(r, this.UpgradeStarSucess.bind(this))
                        }
                    } else f.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, Number.parseInt("10" + this._petId))
                }, t.prototype.UpgradeStarSucess = function(e) {
                    for (var t = [], n = 0; n < this._selectData.length; n++)
                        if (1 == this._selectData[n].Type)
                            for (var o = this._selectData[n].SelectIds, r = 0; r < o.length; r++) t.push(o[r]);
                    f.UIManager.Instance.ShowUIPanelByQueue(p.PanelConfig.PetUpStarSucessPanel.Path, this._petModel), e.Rewards.length > 0 && f.UIManager.Instance.ShowUIPanelByQueue(p.PanelConfig.DisplayRewardsPanel.Path, e.Rewards), this.node.active && (this.RefreshPetStarMode(t), this._baseUIPanel.BindRedDot(), this._baseUIPanel.RefreshStarLevel(), this.BindUpgradeRedDot())
                }, t.prototype.RefreshPetStarMode = function() {
                    this._petModel = d.DataCenter.Instance.GetDataById(c.UserPet_Model, this._petId), this.SetPetModel(), this.DisPlay()
                }, t.prototype.ConfigMaxStarHint = function() {
                    this._isReachMaxStarLevel ? (this.MaxStarNode.active = !0, this.UpGradeBg.active = !1, this.MaxStarHint.string = "starLevel_limit_reach".ToUILocale()) : (this.MaxStarNode.active = !1, this.UpGradeBg.active = !0)
                }, t.prototype.BindUpgradeRedDot = function() {
                    v.RedDotManager.Instance.BindNodeByResult(this.UpGradeBtn.node, v.RedDotManager.Instance.InstanceRedDot.PetInfoStarUpgrade, b.RedDotDataHandler.Instance.IsPetCanUpStar({
                        Value1: this._petId
                    }))
                }, i([A(cc.Node)], t.prototype, "LevelContainer", void 0), i([A(cc.Node)], t.prototype, "Arrow", void 0), i([A(cc.Node)], t.prototype, "StarInfoContainer", void 0), i([A(cc.Node)], t.prototype, "SkillMode", void 0), i([A(cc.Node)], t.prototype, "TextMode", void 0), i([A(cc.Node)], t.prototype, "Skill2Node", void 0), i([A(S.default)], t.prototype, "CurPetSkillComponent", void 0), i([A(S.default)], t.prototype, "NextPetSkillComponent", void 0), i([A(S.default)], t.prototype, "CurPetSkillComponent2", void 0), i([A(S.default)], t.prototype, "NextPetSkillComponent2", void 0), i([A(cc.Label)], t.prototype, "SkillMode_LevelDesc", void 0), i([A(cc.Label)], t.prototype, "SkillMode_CurMaxLevel", void 0), i([A(cc.Label)], t.prototype, "SkillMode_NextMaxLevel", void 0), i([A(cc.Node)], t.prototype, "SkillModeInfoLayoutNode", void 0), i([A(cc.Label)], t.prototype, "TextModeMaxLevelDesc", void 0), i([A(cc.Label)], t.prototype, "TextModeCurMaxLevel", void 0), i([A(cc.Node)], t.prototype, "TextModeLevelArrow", void 0), i([A(cc.Label)], t.prototype, "TextModeNextMaxLevel", void 0), i([A(cc.Node)], t.prototype, "TextModeLayoutNode", void 0), i([A(cc.Label)], t.prototype, "TextMode_LevelDesc", void 0), i([A(cc.Label)], t.prototype, "TextMode_CurMaxLevel", void 0), i([A(cc.Label)], t.prototype, "TextMode_NextMaxLevel", void 0), i([A(cc.Label)], t.prototype, "TextMode_SkillDesc", void 0), i([A(cc.Label)], t.prototype, "TextMode_CurSkillLevel", void 0), i([A(cc.Label)], t.prototype, "TextMode_NextSkillLevel", void 0), i([A(cc.Label)], t.prototype, "TextMode_AttrDesc", void 0), i([A(cc.Label)], t.prototype, "TextMode_AttrValue", void 0), i([A(cc.Node)], t.prototype, "TextMode_Skill_Layout", void 0), i([A(cc.Node)], t.prototype, "PetItemContainer", void 0), i([A(cc.Node)], t.prototype, "UpGradeBg", void 0), i([A(cc.Button)], t.prototype, "UpGradeBtn", void 0), i([A(cc.Label)], t.prototype, "UpGradeBtnLabel", void 0), i([A(cc.Button)], t.prototype, "GrayUpGradeButton", void 0), i([A(cc.Label)], t.prototype, "GrayUpGradeButtonLabel", void 0), i([A(cc.Node)], t.prototype, "MaxStarNode", void 0), i([A(cc.Label)], t.prototype, "MaxStarHint", void 0), i([P], t)
            }(l.BaseUIPage);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/PetSkillComponent": "PetSkillComponent",
        "./PetInfoTabAttr": "PetInfoTabAttr"
    }],
    PetListComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9540avBfuRAe7Z42xzkOdCE", "PetListComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("./CustomLayout"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../Panel/HeroListPanel"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("./ItemComponent"),
            _ = e("./PetCardComponent"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../../RedDot/RedDotDataHandler"),
            b = e("../../../ShareConsts/BattleConsts"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PetItemScrollView = null, t.PetItemCustomLayout = null, t.PetCardScrollView = null, t.PetCardCustomLayout = null, t.NoPetLabel = null, t._isPetItemLayoutInit = !1, t._isPetCardLayoutInit = !1, t._petDataMap = new Map, t._isInit = !1, t._reddotArray = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnClickPet, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnClickPet, this)
                }, t.prototype.Init = function(e, t, n) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._itemPrefab = e, this._currentLayoutMode = t, this._currentElement = n, [4, this.InitPrefab()];
                                case 1:
                                    return o.sent(), this.ConfigPetDataMap(), this.RefreshReddot(), this.SetList(), [2]
                            }
                        })
                    })
                }, t.prototype.InitPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._isInit ? [3, 2] : (this.NoPetLabel.string = "pet_not_have".ToUILocale(), e = this, [4, h.AssetsManager.Instance.LoadAsset("ItemsComponent/PetCardComponent", cc.Prefab)]);
                                case 1:
                                    if (e._petCardPrefab = t.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(this._petCardPrefab), [2];
                                    this._isInit = !0, t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GetPetDatasByElement = function(e) {
                    var t = this._petDataMap.get(e);
                    return t || (t = []), t
                }, t.prototype.RefreshReddot = function() {
                    this._reddotArray = [];
                    for (var e = u.DataCenter.Instance.GetDataById(l.UserFormation_Model, b.FormationIdType.MainLine), t = 0; t < e.HeroIds.length; t++) {
                        var n = e.HeroIds[t];
                        if (0 != n) {
                            var o = u.DataCenter.Instance.GetHeroPet(n);
                            0 != o.length && v.RedDotDataHandler.Instance.IsPetCanDevelop(o[0]) && this._reddotArray.push(o[0])
                        }
                    }
                }, t.prototype.ConfigPetDataMap = function() {
                    this._petDataMap.clear();
                    var e = u.DataCenter.Instance.GetDataList(l.UserPet_Model);
                    f.default.Instance.SortPetDatas(e);
                    var t = [];
                    this._petDataMap.set(d.HeroElementType.All, t), this._ownPetIds = [];
                    for (var n = 0; n < e.length; n++) {
                        var o = e[n];
                        t.push(o), this._ownPetIds.push(e[n].Sid)
                    }
                }, t.prototype.SetList = function() {
                    var e = this.GetPetDatasByElement(this._currentElement);
                    this.PetItemScrollView.node.active = e.length > 0, this.PetCardScrollView.node.active = e.length > 0, this.NoPetLabel.node.active = 0 == e.length, e.length > 0 && this.ConfigPetMode(e)
                }, t.prototype.ConfigPetMode = function(e) {
                    var t = 0;
                    switch (null != e && (t = e.length), this._currentLayoutMode) {
                        case y.LayoutMode.ItemMode:
                            this.PetCardScrollView.node.active = !1, this.PetItemScrollView.node.active = !0, this.InitPetItemLayout(), this.PetItemScrollView.stopAutoScroll(), this.PetItemCustomLayout.RenderLayOut(t), g.UIUtlity.AnimationItemsByType1(this.PetItemCustomLayout.node.children);
                            break;
                        case y.LayoutMode.CardMode:
                            this.PetCardScrollView.node.active = !0, this.PetItemScrollView.node.active = !1, this.InitPetCardLayout(), this.PetCardScrollView.stopAutoScroll(), this.PetCardCustomLayout.RenderLayOut(t), g.UIUtlity.AnimationItemsByType1(this.PetCardCustomLayout.node.children)
                    }
                }, t.prototype.InitPetItemLayout = function() {
                    this._isPetItemLayoutInit || (this._isPetItemLayoutInit = !0, this.PetItemCustomLayout.Init(this._itemPrefab))
                }, t.prototype.InitPetCardLayout = function() {
                    this._isPetCardLayoutInit || (this._isPetCardLayoutInit = !0, this.PetCardCustomLayout.Init(this._petCardPrefab))
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (this.PetItemCustomLayout == t || this.PetCardCustomLayout == t) {
                        var o = this.GetPetDatasByElement(this._currentElement);
                        switch (this._currentLayoutMode) {
                            case y.LayoutMode.ItemMode:
                                e.forEach(function(e, t) {
                                    var r = e.getComponent(I.ItemComponent);
                                    r.Init(o[t], I.ItemComponentType.Pet);
                                    var i = o[t].Sid;
                                    r.node.name = i.toString();
                                    var a = n._reddotArray.indexOf(i) > -1;
                                    r.SetRedDotState(a)
                                });
                                break;
                            case y.LayoutMode.CardMode:
                                e.forEach(function(e, t) {
                                    var r = e.getComponent(_.default);
                                    r.Init(o[t]);
                                    var i = o[t].Sid;
                                    r.node.name = i.toString();
                                    var a = n._reddotArray.indexOf(i) > -1;
                                    r.SetRedDotState(a)
                                })
                        }
                    }
                }, t.prototype.OnClickPet = function(e, t) {
                    switch (this._currentLayoutMode) {
                        case y.LayoutMode.ItemMode:
                            if (-1 == this.PetItemCustomLayout.node.children.indexOf(t)) return;
                            break;
                        case y.LayoutMode.CardMode:
                            if (-1 == this.PetCardCustomLayout.node.children.indexOf(t)) return
                    }
                    for (var n = this.GetPetDatasByElement(this._currentElement), o = [], r = 0; r < n.length; r++) o.push(n[r].Sid);
                    c.UIManager.Instance.ShowUIPanel(C.PanelConfig.PetInfoPanel.Path, e, o)
                }, i([P(cc.ScrollView)], t.prototype, "PetItemScrollView", void 0), i([P(p.default)], t.prototype, "PetItemCustomLayout", void 0), i([P(cc.ScrollView)], t.prototype, "PetCardScrollView", void 0), i([P(p.default)], t.prototype, "PetCardCustomLayout", void 0), i([P(cc.Label)], t.prototype, "NoPetLabel", void 0), i([w], t)
            }(cc.Component);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/HeroListPanel": "HeroListPanel",
        "./CustomLayout": "CustomLayout",
        "./ItemComponent": "ItemComponent",
        "./PetCardComponent": "PetCardComponent"
    }],
    PetListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "82dc9vmXYBMeo8JNiPYOfEd", "PetListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("./PetHatchComponent"),
            p = e("./PetCardComponent"),
            d = e("../../Components/DataCenter"),
            h = e("../../RedDot/RedDotDataHandler"),
            f = cc._decorator,
            y = f.ccclass,
            g = (f.property, function(e) {
                function t() {
                    return null !== e && e.apply(this, arguments) || this
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._type = e, this._petId = t, 0 === e ? this.SetPetCard() : 1 === e && this.SetPetHatch()
                }, t.prototype.SetPetCard = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return void 0 !== this._petCardPrefab ? [3, 2] : (this._petCardPrefab = null, [4, l.AssetsManager.Instance.LoadAsset("ItemsComponent/PetCardComponent", cc.Prefab)]);
                                case 1:
                                    return e = o.sent(), this.isValid ? (this._petCardPrefab = e, [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    if (!this._petCardPrefab) return [2];
                                    o.label = 3;
                                case 3:
                                    return this._petCardComponent || (t = cc.instantiate(this._petCardPrefab), this._petCardComponent = t.getComponent(p.default), t.setParent(this.node)), this.SetComponentActive(), 0 != this._type ? [2] : (this._petCardComponent.node.name = this._petId.toString(), (n = d.DataCenter.Instance.GetDataById(c.UserPet_Model, this._petId)) ? (this._petCardComponent.Init(n), this._petCardComponent.SetRedDotState(h.RedDotDataHandler.Instance.RefreshPetCardState(this._petId))) : (this._petCardComponent.Init({
                                        ItemId: this._petId,
                                        StarLevel: 0
                                    }), this._petCardComponent.SetRedDotState(!1)), [2])
                            }
                        })
                    })
                }, t.prototype.SetPetHatch = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return void 0 !== this._hatchPrefab ? [3, 2] : (this._hatchPrefab = null, [4, l.AssetsManager.Instance.LoadAsset("HeroPetPanel/Components/PetHatchComponent", cc.Prefab)]);
                                case 1:
                                    return e = n.sent(), this.isValid ? (this._hatchPrefab = e, [3, 3]) : (l.AssetsManager.Instance.UnloadAsset(e), [2]);
                                case 2:
                                    if (!this._hatchPrefab) return [2];
                                    n.label = 3;
                                case 3:
                                    return this._hatchComponent || (t = cc.instantiate(this._hatchPrefab), this._hatchComponent = t.getComponent(u.default), t.setParent(this.node)), this.SetComponentActive(), 1 != this._type ? [2] : (this._hatchComponent.Init(), [2])
                            }
                        })
                    })
                }, t.prototype.SetComponentActive = function() {
                    this._hatchComponent && (this._hatchComponent.node.active = 1 == this._type), this._petCardComponent && (this._petCardComponent.node.active = 0 == this._type)
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._hatchPrefab), l.AssetsManager.Instance.UnloadAsset(this._petCardPrefab)
                }, i([y], t)
            }(cc.Component));
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "./PetCardComponent": "PetCardComponent",
        "./PetHatchComponent": "PetHatchComponent"
    }],
    PetListPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c05c3gCbm5OzqcIWwV7BFXh", "PetListPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Components/Components"),
            f = e("../Components/PetListItem"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/QualitySelectGroup"),
            m = e("../../RedDot/RedDotManager"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("../Auxiliary/UIUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CustomLayout = null, t.HandBookButton = null, t.HandBookButtonLabel = null, t.QualitySelectGroup = null, t.BagButton = null, t.BagButtonLabel = null, t._isDisplay = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickPetCard, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchQuality, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_PRIVILEGE_PAY, this.PrivilegePaySuccess, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnClickPetCard, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchQuality, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_PRIVILEGE_PAY, this.PrivilegePaySuccess, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HeroPetPanel/Components/PetListItem", cc.Prefab)];
                                case 1:
                                    return t._listItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.HandBookButtonLabel.string = "HeroHandbook_Toggle_0".ToUILocale(), this.BagButtonLabel.string = "itemDecompose_bag".ToUILocale().Fmt("pet".ToUILocale()), this.HandBookButton.node.on("click", this.OnHandBookButtonClick, this), this.BagButton.node.on("click", this.OnBagButtonClick, this), this.InitCustomLayout()
                }, t.prototype.InitData = function(t) {
                    var n = this;
                    e.prototype.InitData.call(this, t);
                    var o = h.ConfigDataComponent.Instance.GetArrayConfig(u.PetBase_Config);
                    this._petBaseConfigArr = this.FilterPetConfig(o), this.SortPetBaseConfig(), this._petGroupByQuality = {}, this._petBaseConfigArr.forEach(function(e) {
                        n._petGroupByQuality[e.Quality] || (n._petGroupByQuality[e.Quality] = []), n._petGroupByQuality[e.Quality].push(e), n._petGroupByQuality[0] || (n._petGroupByQuality[0] = []), n._petGroupByQuality[0].push(e)
                    })
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._isDisplay ? this.RenderCustomLayout() : (this._isDisplay = !0, this.CheckPetHatchEnd(), this.QualitySelectGroup.SetDefault()), m.RedDotManager.Instance.Bind(this.HandBookButton.node, m.RedDotManager.Instance.RedDot.PetTabHandBook), m.RedDotManager.Instance.Bind(this.BagButton.node, m.RedDotManager.Instance.RedDot.PetTabDecomposeBtn)
                }, t.prototype.FilterPetConfig = function(e) {
                    var t = [];
                    return e.forEach(function(e) {
                        _.default.Instance.IsModuleShowAvailable(I.ModuleStartTime.Pet, e.Id) && t.push(e)
                    }), t
                }, t.prototype.SortPetBaseConfig = function() {
                    this._petBaseConfigArr.sort(function(e, t) {
                        var n = h.DataCenter.Instance.GetDataById(c.UserPet_Model, e.Id),
                            o = h.DataCenter.Instance.GetDataById(c.UserPet_Model, t.Id);
                        return !n && o ? 1 : n && !o ? -1 : e.Quality < t.Quality ? 1 : e.Quality > t.Quality ? -1 : n && o ? n.Star < o.Star ? 1 : n.Star > o.Star ? -1 : e.Id - t.Id : e.Id - t.Id
                    })
                }, t.prototype.CheckPetHatchEnd = function() {
                    var e = this,
                        t = h.DataCenter.Instance.GetArrayData(I.UserDataKey.PetNest);
                    if (t[0]) {
                        var n = _.default.Instance.GetPetHatchNeedTime(t[0]);
                        if (t[1] + n <= h.RpcComponent.Instance.ServerTime) {
                            var o = new c.Req_Item_PetNestReceive;
                            h.RpcComponent.Instance.Call(o, function(t) {
                                C.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e.RefreshHatchComponent()
                            })
                        }
                    }
                }, t.prototype.InitCustomLayout = function() {
                    this.CustomLayout.Init(this._listItemPrefab)
                }, t.prototype.RenderCustomLayout = function() {
                    var e = 1;
                    this._petGroupByQuality[this._selectQuality] && (e = this._petGroupByQuality[this._selectQuality].length + 1), this.CustomLayout.RenderLayOut(e)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CustomLayout == t && e.forEach(function(e, t) {
                        var o = e.getComponent(f.default);
                        if (0 == t) o.Init(1), o.node.name = "0";
                        else {
                            var r = n._petGroupByQuality[n._selectQuality][t - 1];
                            o.node.name = r.Id.toString(), o.Init(0, r.Id)
                        }
                    })
                }, t.prototype.OnHandBookButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.PetCollectionHandBookPanel.Path)
                }, t.prototype.OnBagButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(y.PanelConfig.ItemDecomposeBagPanel.Path, I.ItemType.Pet)
                }, t.prototype.OnClickPetCard = function(e, t) {
                    t.parent.parent == this.CustomLayout.node && (h.DataCenter.Instance.GetDataById(c.UserPet_Model, e) ? l.UIManager.Instance.ShowUIPanel(y.PanelConfig.PetInfoPanel.Path, e, this._petGroupByQuality[this._selectQuality].map(function(e) {
                        return e.Id
                    })) : l.UIManager.Instance.ShowUIPanel(y.PanelConfig.PetDetailsTipPanel.Path, Number.parseInt("10" + e)))
                }, t.prototype.OnSwitchQuality = function(e, t) {
                    t == this.QualitySelectGroup.node && this._selectQuality != e && (this._selectQuality = e, this.RenderCustomLayout())
                }, t.prototype.PrivilegePaySuccess = function() {
                    this.RefreshHatchComponent()
                }, t.prototype.RefreshHatchComponent = function() {
                    var e = this.CustomLayout.node.getChildByName("0");
                    e && e.getComponent(f.default).Init(1)
                }, i([S(p.default)], t.prototype, "CustomLayout", void 0), i([S(cc.Button)], t.prototype, "HandBookButton", void 0), i([S(cc.Label)], t.prototype, "HandBookButtonLabel", void 0), i([S(g.default)], t.prototype, "QualitySelectGroup", void 0), i([S(cc.Button)], t.prototype, "BagButton", void 0), i([S(cc.Label)], t.prototype, "BagButtonLabel", void 0), i([b], t)
            }(l.BaseUIPage);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/PetListItem": "PetListItem",
        "../Components/QualitySelectGroup": "QualitySelectGroup"
    }],
    PetPalacePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "be10fapPL5OB5wWzMbi8jGb", "PetPalacePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.PetPalaceTab = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/CurrencyBarItem"),
            y = e("../Components/CustomToggle"),
            g = e("./PetSacrificePage"),
            m = e("../../Components/Components"),
            I = e("./PetRandomReplaceComponent"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../Auxiliary/EventKeys"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.PetSacrifice = 0] = "PetSacrifice", e[e.PetChange = 1] = "PetChange", e[e.None = 2] = "None"
        })(l = n.PetPalaceTab || (n.PetPalaceTab = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.TittleLabel = null, t.RuleButton = null, t.CurrencyBarContainer = null, t.PetSacrificePage = null, t.PetReplacePage = null, t.Toggles = [], t.ReturnButton = null, t.ToggleIcons = [], t._currencyBarItemComponents = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(C.EventKeys.EVENT_REFRESH_PET_CURRENCY, this.OnRefreshCurrency, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(C.EventKeys.EVENT_REFRESH_PET_CURRENCY, this.OnRefreshCurrency, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(d.BundlePath.CurrencyBarComponent), n = this.LoadDynamicAsset("HeroListPanel/PetPanel/PetSacrificePage", cc.Prefab), o = this.LoadDynamicAsset("HeroPetPanel/Components/PetRandomReplaceComponent", cc.Prefab), r = this.LoadDynamicAsset("HeroPalacePanel/HeroPalacel", cc.SpriteAtlas), [4, Promise.all([t, n, o, r]).then(function(e) {
                                    i._currencyItemPrefab = e[0], i._petSacrificePagePrefab = e[1], i._petReplacePagePrefab = e[2];
                                    for (var t = e[3], n = 0; n < i.ToggleIcons.length; n++) {
                                        var o = Math.floor(n / 3);
                                        i.ToggleIcons[n].spriteFrame = t.getSpriteFrame("btn_toplevel" + (2 + o))
                                    }
                                })];
                            case 1:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t);
                var n = t[0];
                this._defaultTab = null != n ? n : l.PetSacrifice
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.InitToggles()
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._currentTab = l.None;
                var n = this.Toggles[this._defaultTab];
                n.isChecked = !0, this.OnSwitchTab(n)
            }, t.prototype.InitToggles = function() {
                this.Toggles[l.PetSacrifice].Init("heroPalace_tittle_1".ToUILocale()), this.Toggles[l.PetChange].Init("pet_baptism".ToUILocale());
                for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].node.on("toggle", this.OnSwitchTab, this)
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                if (this._defaultTab = t, this._currentTab != t) switch (this._currentTab = t, t) {
                    case l.PetSacrifice:
                        this.TittleLabel.string = "heroPalace_tittle_1".ToUILocale(), this.PetSacrificePage.active = !0, this.PetReplacePage.active = !1;
                        var n = [];
                        n.push(_.CommonItemId.PetEssence), this.SetCurrencyBarContainer(n), this.SetPetSacrificePage();
                        break;
                    case l.PetChange:
                        this.TittleLabel.string = "pet_baptism".ToUILocale(), this.PetSacrificePage.active = !1, this.PetReplacePage.active = !0;
                        var o = m.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, _.LevelParamType.PetDisplaceMaterials).Data2,
                            r = [];
                        o.forEach(function(e, t) {
                            r[t] = e.Items[0]
                        }), this.SetCurrencyBarContainer(r), this.SetPetReplacePage()
                }
            }, t.prototype.OnRefreshCurrency = function() {
                switch (this._currentTab) {
                    case l.PetSacrifice:
                        var e = [];
                        e.push(_.CommonItemId.PetEssence), this.SetCurrencyBarContainer(e);
                        break;
                    case l.PetChange:
                        var t = m.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, _.LevelParamType.PetDisplaceMaterials).Data2,
                            n = [];
                        t.forEach(function(e, t) {
                            n[t] = e.Items[0]
                        }), this.SetCurrencyBarContainer(n)
                }
            }, t.prototype.SetCurrencyBarContainer = function(e) {
                var t = this;
                e.forEach(function(n, o) {
                    if (t._currencyBarItemComponents.length < e.length) {
                        var r = cc.instantiate(t._currencyItemPrefab);
                        r.setParent(t.CurrencyBarContainer.node), t._currencyBarItemComponents.push(r.getComponent(f.default))
                    }
                    t._currencyBarItemComponents[o].node.active = !0, t._currencyBarItemComponents[o].Init(n)
                });
                for (var n = e.length; n < this._currencyBarItemComponents.length; n++) this._currencyBarItemComponents[n].node.active = !1
            }, t.prototype.SetPetSacrificePage = function() {
                if (!this._petSacrificePage) {
                    var e = cc.instantiate(this._petSacrificePagePrefab);
                    e.setParent(this.PetSacrificePage), this._petSacrificePage = e.getComponent(g.default)
                }
                this._petSacrificePage.Init()
            }, t.prototype.SetPetReplacePage = function() {
                if (!this._petReplacePage) {
                    var e = cc.instantiate(this._petReplacePagePrefab);
                    e.setParent(this.PetReplacePage), this._petReplacePage = e.getComponent(I.default)
                }
                this._petReplacePage.InitData()
            }, t.prototype.OnRuleButtonClick = function() {
                var e, t, n = [],
                    o = [];
                switch (this._currentTab) {
                    case l.PetSacrifice:
                        t = "pet_resolve_ruleTittle".ToUILocale(), n = ["HeroTalent_Rule".ToUILocale()], o = ["pet_resolve_ruleDesc".ToUILocale()];
                        break;
                    case l.PetChange:
                        t = "pet_change_ruleTittle".ToUILocale(), n = ["HeroTalent_Rule".ToUILocale()], o = ["pet_change_ruleDesc".ToUILocale()]
                }
                e = {
                    name: t,
                    titles: n,
                    contents: o
                }, h.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnReturnButtonClick = function() {
                p.UIManager.Instance.BackUIPanel()
            }, i([S(cc.Label)], t.prototype, "TittleLabel", void 0), i([S(cc.Button)], t.prototype, "RuleButton", void 0), i([S(cc.Layout)], t.prototype, "CurrencyBarContainer", void 0), i([S(cc.Node)], t.prototype, "PetSacrificePage", void 0), i([S(cc.Node)], t.prototype, "PetReplacePage", void 0), i([S(y.default)], t.prototype, "Toggles", void 0), i([S(cc.Button)], t.prototype, "ReturnButton", void 0), i([S(cc.Sprite)], t.prototype, "ToggleIcons", void 0), i([b], t)
        }(c.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomToggle": "CustomToggle",
        "./PetRandomReplaceComponent": "PetRandomReplaceComponent",
        "./PetSacrificePage": "PetSacrificePage"
    }],
    PetRandomReplaceComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "53627+dJ3RKX7r7PAq7wAko", "PetRandomReplaceComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Components/DataCenter"),
            y = e("../Components/ItemComponent"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../Components/PetCardComponent"),
            C = e("../Components/ItemClickComponent"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../Auxiliary/GlobalDefine"),
            S = e("../Components/LevelComponent"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../Components/CustomLayout"),
            A = e("../../../Consts/Consts"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property;
        (function(e) {
            e[e.Select = 0] = "Select", e[e.Draw = 1] = "Draw"
        })(l || (l = {})),
        function(e) {
            e[e.Left = 0] = "Left", e[e.Right = 1] = "Right"
        }(c || (c = {}));
        var k = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HintNode = null, t.Hint = null, t.Tips = null, t.PetGrid = null, t.OriginCardRoot = null, t.OriginCardName = null, t.OriginCardAnim = null, t.TargetCardRoot = null, t.TargetCardName = null, t.TargetElementIcon = null, t.TargetPetLevel = null, t.TargetLevelComponent = null, t.TargetCardAnim = null, t.BtnReplace = null, t.LabelBtnReplace = null, t.MaterialItemIcon = null, t.MaterialItemCount = null, t.BtnPreview = null, t.BtnCancal = null, t.BtnCancalLabel = null, t.BtnSave = null, t.BtnSaveLabel = null, t.CARD_ANIM_EVENT_DELAY = 4e3, t._selectPet = null, t._currentElement = A.HeroElementType.All, t._petCardPrefab = null, t._itemPrefab = null, t._originCardItem = null, t._targetCardItem = null, t._operationState = l.Select, t._currBeDispalcePet = 0, t._currNewDisplacePet = 0, t._isBusy = !1, t._isInit = !1, t._assets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                g.Game.EventDispatcher.On(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), g.Game.EventDispatcher.On(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), g.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnClickPet, this)
            }, t.prototype.onDisable = function() {
                g.Game.EventDispatcher.Off(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), g.Game.EventDispatcher.Off(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement), g.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnClickPet, this)
            }, t.prototype.OnSwitchHeroElement = function(e) {
                this._currentElement != e && (this._currentElement = e, this._petDatas = this.GetPetataByElement(this._currentElement), this.PetGrid.RenderLayOut(this._petDatas.length))
            }, t.prototype.OnRefresh = function(e) {
                this.RefreshVisibleItem(), this.OnClickPet(e)
            }, t.prototype.RefreshVisibleItem = function() {
                for (var e = this.GetPetataByElement(this._currentElement), t = Math.min(e.length, this.PetGrid.node.children.length), n = 0; n < t; n++) {
                    var o = this.PetGrid.node.children[n].getComponent(y.ItemComponent),
                        r = e[n],
                        i = r.Sid;
                    o.Init(r, y.ItemComponentType.Pet);
                    var a = null != this._selectPet && this._selectPet.Sid == i;
                    o.SetSelectFlagState(a), o.node.name = i.toString()
                }
            }, t.prototype.InitData = function() {
                this.InitUI()
            }, t.prototype.InitUI = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._isInit ? [3, 2] : (e = g.AssetsManager.Instance.LoadAsset("ItemsComponent/PetCardComponent", cc.Prefab), t = g.AssetsManager.Instance.LoadAsset(b.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([e, t]).then(function(e) {
                                    n._petCardPrefab = e[0], n._itemPrefab = e[1], e.forEach(function(e) {
                                        n._assets.push(e)
                                    })
                                })]);
                            case 1:
                                if (o.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(this._petCardPrefab), g.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                this.InitAnimEvent(), this.SetStaticLocalText(), this.SetClickEvent(), this.ResetPanelState(), this._isInit = !0, o.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.InitAnimEvent = function() {
                var e = this;
                this.OriginCardAnim.setCompleteListener(function() {
                    e.OriginCardAnim.node.active = !1
                }), this.TargetCardAnim.setCompleteListener(function() {
                    e.TargetCardAnim.node.active = !1
                })
            }, t.prototype.SetStaticLocalText = function() {
                this.LabelBtnReplace.string = "transform".ToUILocale(), this.Tips.string = "pet_select_replace".ToUILocale(), this.BtnCancalLabel.string = "cancel".ToUILocale(), this.BtnSaveLabel.string = "ok".ToUILocale(), this.Hint.string = "pet_cant_replace".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnPreview.node.on("click", this.OnBtnPreviewClick, this), this.BtnReplace.node.on("click", this.OnBtnReplacleClick, this), this.BtnSave.node.on("click", this.OnBtnSaveClick, this), this.BtnCancal.node.on("click", this.OnBtnCancelClick, this)
            }, t.prototype.ResetPanelState = function() {
                this.LoadIcon(), this.ResetAnim(), this.Reset(), this.InitPetListComponent()
            }, t.prototype.LoadIcon = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.PetDisplaceMaterials).Data2, null != this._itemSprite ? [3, 2] : (t = w.default.Instance.GetItemPathById(e[0].Items[0]), n = this, [4, g.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)]);
                            case 1:
                                if (n._itemSprite = o.sent(), !this.isValid) return I.AssetsManager.Instance.UnloadAsset(this._itemSprite), [2];
                                this._assets.push(this._itemSprite), o.label = 2;
                            case 2:
                                return this.MaterialItemIcon.spriteFrame = this._itemSprite, [2]
                        }
                    })
                })
            }, t.prototype.ResetAnim = function() {
                this.OriginCardAnim.node.active = !1, this.TargetCardAnim.node.active = !1
            }, t.prototype.HideTargetFloatingUI = function() {
                this.TargetElementIcon.node.active = !1, this.TargetPetLevel.node.active = !1, this.TargetLevelComponent.node.active = !1
            }, t.prototype.ShowTargetFloatingUI = function() {
                this.TargetElementIcon.node.active = !0, this.TargetPetLevel.node.active = !0, this.TargetLevelComponent.node.active = !0
            }, t.prototype.Reset = function() {
                if (this.ReloadOperationState(), this._operationState == l.Select) this._selectPet = null, this.HideTargetFloatingUI();
                else {
                    var e = f.DataCenter.Instance.GetDataById(p.UserPet_Model, this._currBeDispalcePet);
                    null != e && (this._selectPet = e)
                }
                this.SetBtnState(), this.HideOriginCardRoot(), this.HideTargetCardRoot(), this.SetCardDisplay()
            }, t.prototype.RefreshView = function() {
                this.Reset(), this.RefreshPetListComponent()
            }, t.prototype.RefreshPetListComponent = function() {
                this._petDatas = this.GetPetData(), this.PetGrid.RenderLayOut(this._petDatas.length)
            }, t.prototype.ReloadOperationState = function() {
                this._currBeDispalcePet = f.DataCenter.Instance.GetIntData(h.UserDataKey.CurrentBeDisplacePet), this._currNewDisplacePet = f.DataCenter.Instance.GetIntData(h.UserDataKey.CurrentNewDisplacePet), this._currBeDispalcePet > 0 && this._currNewDisplacePet > 0 ? this._operationState = l.Draw : this._operationState = l.Select
            }, t.prototype.HideOriginCardRoot = function() {
                this.OriginCardRoot.active = !1
            }, t.prototype.HideTargetCardRoot = function() {
                this.TargetCardRoot.active = !1
            }, t.prototype.SetBtnState = function() {
                switch (this._operationState) {
                    case l.Select:
                        if (null == this._selectPet) return void this.HideAllBtn();
                        this.BtnReplace.node.active = !0, this.BtnCancal.node.active = !1, this.BtnSave.node.active = !1, this.HintNode.active = !1;
                        break;
                    case l.Draw:
                        this.BtnReplace.node.active = !1, this.BtnCancal.node.active = !0, this.BtnSave.node.active = !0, this.HintNode.active = !0
                }
            }, t.prototype.SetCardDisplay = function(e) {
                var t = this;
                if (void 0 === e && (e = !1), this._operationState == l.Draw) {
                    var n = f.DataCenter.Instance.GetDataById(p.UserPet_Model, this._currBeDispalcePet);
                    this.LoadPetCardLeft(), e ? (this.TargetCardAnim.node.active = !0, this.TargetCardAnim.setAnimation(0, this.TargetCardAnim.defaultAnimation, !1), setTimeout(function() {
                        t.TargetCardAnim.node.active && t.LoadPetCard(c.Right, n.Sid, n.Star, t._currNewDisplacePet)
                    }, cc.director.getDeltaTime() * this.CARD_ANIM_EVENT_DELAY)) : this.LoadPetCard(c.Right, n.Sid, n.Star, this._currNewDisplacePet)
                }
            }, t.prototype.HideAllBtn = function() {
                this.BtnReplace.node.active = !1, this.BtnCancal.node.active = !1, this.BtnSave.node.active = !1, this.HintNode.active = !1
            }, t.prototype.GetPetData = function() {
                var e = f.DataCenter.Instance.GetDataList(p.UserPet_Model),
                    t = [];
                for (var n in e) {
                    var o = e[n];
                    t.push(o)
                }
                return this.SortByEquipState(t), t
            }, t.prototype.GetPetataByElement = function() {
                f.DataCenter.Instance.GetDataList(p.UserPet_Model);
                var e = [];
                return this.SortByEquipState(e), e
            }, t.prototype.SortByEquipState = function(e) {
                e.sort(function(e, t) {
                    return !w.default.Instance.GetPetOwnerCountByModel(e) && w.default.Instance.GetPetOwnerCountByModel(t) ? -1 : w.default.Instance.GetPetOwnerCountByModel(e) && !w.default.Instance.GetPetOwnerCountByModel(t) ? 1 : 0
                })
            }, t.prototype.InitPetListComponent = function() {
                this._petDatas = this.GetPetData(), this.PetGrid.Init(this._itemPrefab), this.PetGrid.RenderLayOut(this._petDatas.length)
            }, t.prototype.OnClickPet = function(e, t) {
                var n = this;
                if (this._operationState != l.Draw && -1 != this.PetGrid.node.children.indexOf(t)) {
                    var o, r = f.DataCenter.Instance.GetDataById(p.UserPet_Model, e);
                    if (o = null == t ? this.PetGrid.node.getChildByName(e.toString()).getComponent(y.ItemComponent) : t.getComponent(y.ItemComponent), null == this._selectPet) this._selectPet = r, o.SetSelectFlagState(!0);
                    else {
                        var i = this.PetGrid.node.getChildByName(this._selectPet.Sid.toString());
                        this._selectPet.Sid == e ? (this._selectPet = null, this.HideOriginCardRoot(), this.HideTargetCardRoot(), i && i.getComponent(y.ItemComponent).SetSelectFlagState(!1)) : (this._selectPet = r, o.SetSelectFlagState(!0), i && i.getComponent(y.ItemComponent).SetSelectFlagState(!1))
                    }
                    null != this._selectPet && (this.SetMaterialItemCount(), this.OriginCardAnim.node.active = !0, this.OriginCardAnim.setAnimation(0, this.OriginCardAnim.defaultAnimation, !1), setTimeout(function() {
                        n.OriginCardAnim.node.active && n.LoadPetCardLeft()
                    }, cc.director.getDeltaTime() * this.CARD_ANIM_EVENT_DELAY)), this._operationState = l.Select, this.SetBtnState()
                }
            }, t.prototype.UnlockPet = function() {}, t.prototype.PutOffPet = function() {}, t.prototype.LoadPetCard = function(e, t, n, o) {
                var r, i, a;
                if (e == c.Left ? (r = this.OriginCardRoot, a = this.OriginCardName, i = this._originCardItem) : (r = this.TargetCardRoot, a = this.TargetCardName, i = this._targetCardItem), null == i) {
                    var s = cc.instantiate(this._petCardPrefab);
                    s.removeComponent(C.default), (i = s.getComponent(_.default)).node.parent = r
                }
                i.Init({
                    ItemId: t,
                    StarLevel: n,
                    ElementType: o
                }), a.string = t.ToPetName(), a.node.color = v.UIUtlity.GetLabelColorByQuality(Math.min(n, v.UIUtlity.Max_Quality_Level)), r.active = !0
            }, t.prototype.LoadPetCardLeft = function() {
                var e = this.OriginCardRoot,
                    t = this._originCardItem,
                    n = this.OriginCardName;
                if (null == t) {
                    var o = cc.instantiate(this._petCardPrefab);
                    o.removeComponent(C.default), (t = o.getComponent(_.default)).node.parent = e
                }
                t.Init(this._selectPet), n.string = this._selectPet.Sid.ToPetName(), n.node.color = v.UIUtlity.GetLabelColorByQuality(Math.min(this._selectPet.Star, v.UIUtlity.Max_Quality_Level)), e.active = !0, this.ShowTargetFloatingUI(), this.TargetElementIcon.node.active = !1, this.TargetPetLevel.string = "Lv." + this._selectPet.Level, this.TargetLevelComponent.Init(this._selectPet.Star)
            }, t.prototype.SetMaterialItemCount = function() {
                var e = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.PetDisplaceMaterials).Data2,
                    t = e[0].Items[1];
                this.MaterialItemCount.string = t.toString();
                var n = f.DataCenter.Instance.IsItemEnough(e[0].Items[0], t);
                this.MaterialItemCount.node.color = n ? cc.Color.WHITE : new cc.Color(255, 75, 75)
            }, t.prototype.OnBtnPreviewClick = function() {
                null != this._selectPet && I.UIManager.Instance.ShowUIPanel(b.PanelConfig.PetReplaceRatePanel.Path, this._selectPet.Sid, this._selectPet.Star)
            }, t.prototype.OnBtnReplacleClick = function() {
                if (1 != this._isBusy) {
                    var e = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.PetDisplaceMaterials).Data2,
                        t = e[0].Items[1];
                    this.MaterialItemCount.string = t.toString(), f.DataCenter.Instance.IsItemEnough(e[0].Items[0], t) ? this.RequestDisplaceHero() : (v.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e[0].Items[0].ToItemName())), I.UIManager.Instance.ShowUIPanel(b.PanelConfig.ItemGetWayPanel.Path, e[0].Items[0]))
                }
            }, t.prototype.OnBtnSaveClick = function() {
                1 != this._isBusy && this.RequestSaveDisplacePet()
            }, t.prototype.OnBtnCancelClick = function() {
                this.RequestCancelDisplacePet()
            }, t.prototype.RequestDisplaceHero = function() {
                this._isBusy = !0
            }, t.prototype.ResponseDisplaceHero = function() {
                null != this && (this._isBusy = !1, 0 != this.node.active && (this.ReloadOperationState(), this.SetBtnState(), this.SetCardDisplay(!0), g.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_PET_CURRENCY)))
            }, t.prototype.ResponseFailed = function() {
                null != this && (this._isBusy = !1)
            }, t.prototype.RequestSaveDisplacePet = function() {
                this._isBusy = !0
            }, t.prototype.ResponseSaveDisplacePet = function() {
                null != this && (this._isBusy = !1, 0 != this.node.active && (v.UIUtlity.ShowFloatingHint("pet_save_changeElement".ToUILocale()), this.RefreshView()))
            }, t.prototype.RequestCancelDisplacePet = function() {
                this._isBusy = !0
            }, t.prototype.ResponseCancelDisplaceHero = function() {
                null != this && (this._isBusy = !1, 0 != this.node.active && (this.ReloadOperationState(), this.SetBtnState(), this.HideTargetCardRoot()))
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                this.PetGrid == t && e.forEach(function(e, t) {
                    var o = e.getComponent(y.ItemComponent),
                        r = n._petDatas[t].Sid;
                    e.name = r.toString(), o.Init(n._petDatas[t], y.ItemComponentType.Pet), o.SetLockFlag(!1), null != n._selectPet && n._selectPet.Sid == r ? o.SetSelectFlagState(!0) : o.SetSelectFlagState(!1)
                })
            }, t.prototype.onDestroy = function() {
                this._assets.forEach(function(e) {
                    g.AssetsManager.Instance.UnloadAsset(e)
                }), this._assets = []
            }, i([L(cc.Node)], t.prototype, "HintNode", void 0), i([L(cc.RichText)], t.prototype, "Hint", void 0), i([L(cc.Label)], t.prototype, "Tips", void 0), i([L(P.default)], t.prototype, "PetGrid", void 0), i([L(cc.Node)], t.prototype, "OriginCardRoot", void 0), i([L(cc.Label)], t.prototype, "OriginCardName", void 0), i([L(sp.Skeleton)], t.prototype, "OriginCardAnim", void 0), i([L(cc.Node)], t.prototype, "TargetCardRoot", void 0), i([L(cc.Label)], t.prototype, "TargetCardName", void 0), i([L(cc.Sprite)], t.prototype, "TargetElementIcon", void 0), i([L(cc.Label)], t.prototype, "TargetPetLevel", void 0), i([L(S.LevelComponent)], t.prototype, "TargetLevelComponent", void 0), i([L(sp.Skeleton)], t.prototype, "TargetCardAnim", void 0), i([L(cc.Button)], t.prototype, "BtnReplace", void 0), i([L(cc.Label)], t.prototype, "LabelBtnReplace", void 0), i([L(cc.Sprite)], t.prototype, "MaterialItemIcon", void 0), i([L(cc.Label)], t.prototype, "MaterialItemCount", void 0), i([L(cc.Button)], t.prototype, "BtnPreview", void 0), i([L(cc.Button)], t.prototype, "BtnCancal", void 0), i([L(cc.Label)], t.prototype, "BtnCancalLabel", void 0), i([L(cc.Button)], t.prototype, "BtnSave", void 0), i([L(cc.Label)], t.prototype, "BtnSaveLabel", void 0), i([R], t)
        }(cc.Component);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/LevelComponent": "LevelComponent",
        "../Components/PetCardComponent": "PetCardComponent"
    }],
    PetRebornPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5b43aZB/upPVrmX/YuWhwPK", "PetRebornPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../../../GamePlay/Components/Components"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/ItemComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../../Auxiliary/EventKeys"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Hint = null, t.Tip = null, t.LeftPetContainer = null, t.LeftPetLevel = null, t.RightPetContainer = null, t.RightPetLevel = null, t.MaterialContainer = null, t.CancelBtn = null, t.CancelBtnLabel = null, t.ConfirmBtn = null, t.ConfirmBtnLabel = null, t.DiamondCount = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "pet_reborn_title".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.ConfirmBtnLabel.string = "ok".ToUILocale(), this.CancelBtn.node.on("click", this.OnClose, this), this.ConfirmBtn.node.on("click", this.OnReborn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._selectPet = t[0];
                    var n = p.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, g.LevelParamType.PetReborn).Data2;
                    this._freeLevelLimit = n[0].Items[0], this._diamondCost = 0;
                    for (var o = n.length - 1; o >= 0; o--)
                        if (this._selectPet.Level > n[o].Items[0]) {
                            this._diamondCost = n[o].Items[1];
                            break
                        } this.Tip.string = "pet_reborn_free".ToUILocale().Fmt(this._freeLevelLimit)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.ConfigPetItem(), this.ConfigMaterials(), this.ConfigDiamondCost())
                }, t.prototype.ConfigPetItem = function() {
                    var e;
                    this._leftPetComponent || ((e = cc.instantiate(this._itemPrefab)).scale = .825, e.setParent(this.LeftPetContainer), this._leftPetComponent = e.getComponent(f.ItemComponent)), this._rightPetComponent || ((e = cc.instantiate(this._itemPrefab)).scale = .825, e.setParent(this.RightPetContainer), this._rightPetComponent = e.getComponent(f.ItemComponent)), this._leftPetComponent.Init({
                        ItemId: this._selectPet.Sid,
                        StarLevel: this._selectPet.Star
                    }, f.ItemComponentType.Pet), this._rightPetComponent.Init({
                        ItemId: this._selectPet.Sid,
                        StarLevel: this._selectPet.Star
                    }, f.ItemComponentType.Pet), this.LeftPetLevel.string = "Lv." + this._selectPet.Level, this.RightPetLevel.string = "Lv.1", this.Hint.string = "pet_reborn_check".ToUILocale().Fmt(this._selectPet.Sid.ToPetName())
                }, t.prototype.ConfigMaterials = function() {
                    for (var e = p.ConfigDataComponent.Instance.GetConfigById(d.PetLevel_Config, this._selectPet.Level), t = 0; t < e.Materials.length; t++) {
                        var n = e.Materials[t].Items,
                            o = cc.instantiate(this._itemPrefab);
                        o.setParent(this.MaterialContainer), o.getComponent(f.ItemComponent).Init({
                            ItemId: n[0],
                            Count: n[1]
                        })
                    }
                }, t.prototype.ConfigDiamondCost = function() {
                    this._selectPet.Level <= this._freeLevelLimit ? this.DiamondCount.string = "0" : this.DiamondCount.string = this._diamondCost.toString()
                }, t.prototype.OnClose = function() {
                    h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnReborn = function() {
                    if (this._selectPet.Level <= this._freeLevelLimit) this.DoRebornJob();
                    else {
                        if (p.DataCenter.Instance.GetItemCount(g.CommonItemId.Diamond) < this._diamondCost) return h.UIManager.Instance.ShowUIPanel(y.PanelConfig.MallNewPanel.Path, [g.MallPageType.DiamondShop, g.GiftPackType.BuyDiamond]);
                        this.DoRebornJob()
                    }
                }, t.prototype.DoRebornJob = function() {
                    var e = new c.Req_Item_PetReborn;
                    e.Sid = this._selectPet.Sid, p.RpcComponent.Instance.Call(e, this.OnRebornSucces.bind(this))
                }, t.prototype.OnRebornSucces = function() {
                    u.UIUtlity.ShowFloatingHint("hero_reborn_succes".ToUILocale()), h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.MaterialContainer.children.indexOf(t) && u.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, i([C(cc.Label)], t.prototype, "Title", void 0), i([C(cc.RichText)], t.prototype, "Hint", void 0), i([C(cc.Label)], t.prototype, "Tip", void 0), i([C(cc.Node)], t.prototype, "LeftPetContainer", void 0), i([C(cc.Label)], t.prototype, "LeftPetLevel", void 0), i([C(cc.Node)], t.prototype, "RightPetContainer", void 0), i([C(cc.Label)], t.prototype, "RightPetLevel", void 0), i([C(cc.Node)], t.prototype, "MaterialContainer", void 0), i([C(cc.Button)], t.prototype, "CancelBtn", void 0), i([C(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([C(cc.Button)], t.prototype, "ConfirmBtn", void 0), i([C(cc.Label)], t.prototype, "ConfirmBtnLabel", void 0), i([C(cc.Label)], t.prototype, "DiamondCount", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PetRefineLevelPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fa16bf3MYpMib8K4KhT4crj", "PetRefineLevelPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("../Auxiliary/UIUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Fixed, !1), t.Title = null, t.HintLabel = null, t.LevelArrow = null, t.LevelTagLabel = null, t.CurLevelLabel = null, t.NextLevelLabel = null, t.LayoutNode = null, t.TipLabel = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "pet_refine_title".ToUILocale(), this.HintLabel.string = "pet_refine_tip1".ToUILocale(), this.TipLabel.string = "pet_refine_tip2".ToUILocale(), this.LevelTagLabel.string = "pet_refine_curLevel".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._curLevel = t[0], this._curLevelConfig = l.ConfigDataComponent.Instance.GetConfigById(s.PetRefineLevel_Config, this._curLevel), this._nextLevelConfig = l.ConfigDataComponent.Instance.GetConfigById(s.PetRefineLevel_Config, this._curLevel + 1)
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), this._nextLevelConfig ? this.NextLevelLabel.string = this._nextLevelConfig.Id.toString() : (this.CurLevelLabel.node.x = this.LevelArrow.x, this.LevelArrow.active = !1, this.NextLevelLabel.node.active = !1), this.CurLevelLabel.string = this._curLevel.toString(), 1 == this.LayoutNode.childrenCount)
                        for (var n = this.LayoutNode.childrenCount; n < this._curLevelConfig.EntryWeight.length; n++) {
                            var o = cc.instantiate(this.LayoutNode.children[0]);
                            this.LayoutNode.addChild(o)
                        }
                    var r = this._curLevelConfig.EntryWeight.reduce(function(e, t) {
                            return e + t
                        }, 0),
                        i = 0;
                    for (this._nextLevelConfig && (i = this._nextLevelConfig.EntryWeight.reduce(function(e, t) {
                            return e + t
                        }, 0)), n = 0; n < this.LayoutNode.childrenCount; n++) {
                        var a = this.LayoutNode.children[n].addComponent(f),
                            s = 100 * this._curLevelConfig.EntryWeight[n] / r;
                        if (this._nextLevelConfig) {
                            var l = 100 * this._nextLevelConfig.EntryWeight[n] / i;
                            a.Init(n + 1, s, l)
                        } else a.Init(n + 1, s)
                    }
                    this.LayoutNode.children[this.LayoutNode.childrenCount - 1].getComponent(f).Line.active = !1
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Label)], t.prototype, "HintLabel", void 0), i([d(cc.Node)], t.prototype, "LevelArrow", void 0), i([d(cc.Label)], t.prototype, "LevelTagLabel", void 0), i([d(cc.Label)], t.prototype, "CurLevelLabel", void 0), i([d(cc.Label)], t.prototype, "NextLevelLabel", void 0), i([d(cc.Node)], t.prototype, "LayoutNode", void 0), i([d(cc.Label)], t.prototype, "TipLabel", void 0), i([p], t)
            }(a.BaseUIPanel);
        n.default = h;
        var f = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Arrow = null, t.Line = null, t.QualityLabel = null, t.ValueLabel1 = null, t.ValueLabel2 = null, t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.Arrow = this.node.getChildByName("Arrow"), this.Line = this.node.getChildByName("Line"), this.QualityLabel = this.node.getChildByName("QualityLabel").getComponent(cc.Label), this.ValueLabel1 = this.node.getChildByName("ValueLabel1").getComponent(cc.Label), this.ValueLabel2 = this.node.getChildByName("ValueLabel2").getComponent(cc.Label)
            }, t.prototype.Init = function(e, t, n) {
                this.QualityLabel.node.color = c.UIUtlity.GetQualityLabelColor(e), this.QualityLabel.string = c.UIUtlity.GetQualityFlag(e), null == n ? (this.ValueLabel1.node.x = this.Arrow.x, this.Arrow.active = !1, this.ValueLabel2.node.active = !1) : this.ValueLabel2.string = n.ToFixedExact(2) + "%", this.ValueLabel1.string = t.ToFixedExact(2) + "%"
            }, i([d(cc.Node)], t.prototype, "Arrow", void 0), i([d(cc.Node)], t.prototype, "Line", void 0), i([d(cc.Label)], t.prototype, "QualityLabel", void 0), i([d(cc.Label)], t.prototype, "ValueLabel1", void 0), i([d(cc.Label)], t.prototype, "ValueLabel2", void 0), t
        }(cc.Component);
        cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    PetReplaceRatePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "79e40xwjZ5IUqSC94JyP2ol", "PetReplaceRatePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Components/RateCellItem"),
            h = e("../../Components/Components"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Components/ItemComponent"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Tip, !1), t.Tittle = null, t.Desc = null, t.Grid = null, t.RATE_CELL_ITEM_PATH = "ItemsComponent/RateCellItem", t._cellItemPrefab = null, t._cellNodes = [], t._replacePetElements = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.RATE_CELL_ITEM_PATH)];
                                case 1:
                                    return t._cellItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Tittle.string = "pet_changeElement_previrw".ToUILocale(), this.Desc.string = "heroDisplace_preview".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    this._petId = e[0], this._petStar = e[1], this._petElementType = e[2];
                    var t = h.ConfigDataComponent.Instance.GetConfigById(p.PetBase_Config, this._petId);
                    this._replacePetElements = [];
                    for (var n = f.HeroElementType.Heart; n <= f.HeroElementType.Chaos; n++) t.ExceptElement.indexOf(n) > -1 || this._petElementType != n && this._replacePetElements.push(n)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.InitGrid()
                }, t.prototype.InitGrid = function() {
                    var e = this;
                    this._cellNodes.forEach(function(e) {
                        e.active = !1
                    }), this._replacePetElements.forEach(function(t, n) {
                        if (!e._cellNodes[n]) {
                            var o = cc.instantiate(e._cellItemPrefab);
                            o.parent = e.Grid, e._cellNodes[n] = o
                        }
                        e._cellNodes[n].active = !0, e._cellNodes[n].getComponent(d.default).InitUI({
                            ItemId: e._petId,
                            StarLevel: e._petStar,
                            ElementType: t
                        }, y.ItemComponentType.Pet, "")
                    })
                }, i([I(cc.Label)], t.prototype, "Tittle", void 0), i([I(cc.Label)], t.prototype, "Desc", void 0), i([I(cc.Node)], t.prototype, "Grid", void 0), i([m], t)
            }(l.BaseUIPanel);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/RateCellItem": "RateCellItem"
    }],
    PetResolvePreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "040c3I0xyBElq0KtsOtdMYR", "PetResolvePreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../Components/ItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.TittleLabel = null, t.TipLabel = null, t.ItemContainer = null, t.CloseButton = null, t.CloseButtonLabel = null, t.OkButton = null, t.OkButtonLabel = null, t._selectPetSids = new Set, t._rewardsData = new Map, t._itemComponents = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemComponentPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._selectPetSids = t[0], this._okCallback = t[1]
                }, t.prototype.InitUI = function() {
                    e.prototype.InitData.call(this), this.TittleLabel.string = "pet_resolvePreview".ToUILocale(), this.TipLabel.string = "pet_resolvePreview_tip".ToUILocale(), this.CloseButtonLabel.string = "Answer_QuitNo".ToUILocale(), this.OkButtonLabel.string = "Answer_QuitYes".ToUILocale(), this.CloseButton.node.on("click", this.OnCloseButtonClick, this), this.OkButton.node.on("click", this.OnOkButtonClick, this)
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), this._selectPetSids.forEach(function(e) {
                        var t = d.DataCenter.Instance.GetDataById(c.UserPet_Model, e),
                            o = d.ConfigDataComponent.Instance.GetConfigById(u.PetBase_Config, t.Sid),
                            r = d.ConfigDataComponent.Instance.GetConfigById(u.PetQuality_Config, o.Quality),
                            i = n.SetStarMetarial(r.DecomposeItems[t.Star - 1]);
                        n.SetRewardsData(i);
                        var a = t.Level;
                        if (a > 1) {
                            var s = d.ConfigDataComponent.Instance.GetConfigById(u.PetLevel_Config, a);
                            n.SetRewardsData(s.Materials)
                        }
                    }), this.SetItemContainer()
                }, t.prototype.SetStarMetarial = function(e) {
                    for (var t = [], n = e.Items.length / 2, o = 0; o < n; o++) {
                        var r = e.Items[2 * o],
                            i = e.Items[2 * o + 1],
                            a = new u.IntArray_Config;
                        a.Items = [r, i], t.push(a)
                    }
                    return t
                }, t.prototype.SetRewardsData = function(e) {
                    var t = this;
                    e.forEach(function(e) {
                        var n = e.Items[0],
                            o = e.Items[1];
                        if (t._rewardsData.has(n)) {
                            var r = t._rewardsData.get(n);
                            t._rewardsData.set(n, r + o)
                        } else t._rewardsData.set(n, o)
                    })
                }, t.prototype.SetItemContainer = function() {
                    var e = this,
                        t = 0;
                    this._rewardsData.forEach(function(n, o) {
                        if (e._itemComponents.length < e._rewardsData.size) {
                            var r = cc.instantiate(e._itemComponentPrefab);
                            r.setParent(e.ItemContainer.node), r.name = o.toString(), e._itemComponents.push(r.getComponent(h.ItemComponent))
                        }
                        e._itemComponents[t].Init({
                            ItemId: o,
                            Count: n
                        }), t++
                    })
                }, t.prototype.OnCloseButtonClick = function() {
                    this.Close()
                }, t.prototype.OnOkButtonClick = function() {
                    this.Close(), null != this._okCallback && this._okCallback()
                }, i([g(cc.Label)], t.prototype, "TittleLabel", void 0), i([g(cc.Label)], t.prototype, "TipLabel", void 0), i([g(cc.Layout)], t.prototype, "ItemContainer", void 0), i([g(cc.Button)], t.prototype, "CloseButton", void 0), i([g(cc.Label)], t.prototype, "CloseButtonLabel", void 0), i([g(cc.Button)], t.prototype, "OkButton", void 0), i([g(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PetSacrificePage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "df8e9niHNxMsrdpoDw+GdCK", "PetSacrificePage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/CustomLayout"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Components/DataCenter"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../../EZFramework/EZFramework"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemContainer = null, t.FastSelectButton = null, t.FastSelectButtonLabel = null, t.SacrificeButton = null, t.SacrificeButtonLabel = null, t.SacrificeButtonDisable = null, t.SacrificeButtonDisableLabel = null, t.SelectPetCount = null, t._isLayoutInit = !1, t._currentElement = 0, t._petDataMap = new Map, t._currentElementDataList = [], t._selectPetSids = new Set, t._itemComponentMap = new Map, t._selectMaxNumber = 20, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    p.Game.EventDispatcher.On(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
                }, t.prototype.onDisable = function() {
                    p.Game.EventDispatcher.Off(h.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnClickHero, this)
                }, t.prototype.Init = function() {
                    this.FastSelectButton.node.on("click", this.OnFastSelectButtonClick, this), this.SacrificeButton.node.on("click", this.OnSacrificeButtonClick, this), this.SacrificeButtonDisable.node.on("click", this.OnSacrificeButtonDisableClick, this), this.FastSelectButtonLabel.string = "heroPalace_auto_select".ToUILocale(), this.SacrificeButtonLabel.string = "heroPalace_tittle_1".ToUILocale(), this.SacrificeButtonDisableLabel.string = "heroPalace_tittle_1".ToUILocale(), this.ClearSelectData(), this.ConfigPetDataMap(), this.InitCustomLayout(), this.SetSacrificeButtonState()
                }, t.prototype.ConfigPetDataMap = function() {
                    this._petDataMap.clear();
                    var e = f.DataCenter.Instance.GetDataList(d.UserPet_Model);
                    this._petDataMap.set(y.HeroElementType.All, e)
                }, t.prototype.InitCustomLayout = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._isLayoutInit ? [3, 3] : (this._isLayoutInit = !0, this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._assets.push(e), n.label = 2;
                                case 2:
                                    this.ItemContainer.Init(this._itemPrefab, !1), n.label = 3;
                                case 3:
                                    return this._currentElementDataList = this._petDataMap.get(this._currentElement), t = this._currentElementDataList ? this._currentElementDataList.length : 0, this.ItemContainer.RenderLayOut(t), g.UIUtlity.AnimationItemsByType1(this.ItemContainer.node.children), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshScrollView = function(e, t) {
                    this.ItemContainer == t && e.forEach(function() {})
                }, t.prototype.OnSwitchHeroElement = function(e) {
                    this._currentElement != e && (this._currentElement = e, this.ClearSelectData(), this.InitCustomLayout(), this.SetSacrificeButtonState())
                }, t.prototype.OnFastSelectButtonClick = function() {}, t.prototype.OnSacrificeButtonClick = function() {
                    m.UIManager.Instance.ShowUIPanel(c.PanelConfig.PetResolvePreviewPanel.Path, this._selectPetSids, this.RequestSacrificePet)
                }, t.prototype.RequestSacrificePet = function() {}, t.prototype.OnSacrificeButtonDisableClick = function() {
                    g.UIUtlity.ShowFloatingHint("pet_sacrificeDisable".ToUILocale())
                }, t.prototype.OnClickHero = function() {}, t.prototype.SetSacrificeButtonState = function() {
                    this.SacrificeButton.node.active = this._selectPetSids.size > 0, this.SacrificeButtonDisable.node.active = !(this._selectPetSids.size > 0)
                }, t.prototype.ClearSelectData = function() {
                    this._selectPetSids.clear(), this.SelectPetCount.string = "select_count".ToUILocale().Fmt(this._selectPetSids.size, this._selectMaxNumber)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([C(u.default)], t.prototype, "ItemContainer", void 0), i([C(cc.Button)], t.prototype, "FastSelectButton", void 0), i([C(cc.Label)], t.prototype, "FastSelectButtonLabel", void 0), i([C(cc.Button)], t.prototype, "SacrificeButton", void 0), i([C(cc.Label)], t.prototype, "SacrificeButtonLabel", void 0), i([C(cc.Button)], t.prototype, "SacrificeButtonDisable", void 0), i([C(cc.Label)], t.prototype, "SacrificeButtonDisableLabel", void 0), i([C(cc.Label)], t.prototype, "SelectPetCount", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout"
    }],
    PetSelectHeroPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4ed3eHtZ7xO76iE68aVKGNK", "PetSelectHeroPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HeroSelectType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Components/CustomLayout"),
            h = e("../Components/HeroElementGroup"),
            f = e("../../Auxiliary/EventKeys"),
            y = e("../../Components/ConfigData/ConfigDataComponent"),
            g = e("../../Components/Components"),
            m = e("../../../Consts/Consts"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../Components/ItemComponent"),
            C = e("../Components/ItemEquipItemComponent"),
            v = e("../Components/GameModuleGuideManager");
        (function(e) {
            e[e.Pet = 0] = "Pet", e[e.MagicCircle = 1] = "MagicCircle"
        })(l = n.HeroSelectType || (n.HeroSelectType = {}));
        var b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !1), t.Title = null, t.CustomLayout = null, t.HeroElementGroup = null, t.SureButton = null, t.SureLabel = null, t.NoHeroLabel = null, t._excludeIds = [], t._currentElement = 0, t._isShowGuide = !1, t._guideStepIndex = 0, t._guideGroupId = 0, t.GuideGroupIds = {
                        30: [10007]
                    }, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(f.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(f.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.Off(f.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset(I.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("HeroPetPanel/Components/ItemEquipItemComponent", cc.Prefab)]).then(function(e) {
                                        t._itemPrefab = e[0], t._equipItemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "artifact_select_hero".ToUILocale(), this.SureLabel.string = "ok".ToUILocale(), this.NoHeroLabel.string = "artifact_no_heros".ToUILocale(), this.SureButton.node.on("click", this.ClickSureButton, this), this.InitCustomLayout()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._excludeIds = t[0], this._btnCallBack = t[1], t[2] ? (this._heroSelectType = t[2], this._heroSelectType == l.MagicCircle && (this._moduleType = m.GameModuleType.MagicCircle)) : this._heroSelectType = l.Pet, this._selectedId = 0, this.HeroElementGroup.SetElementModeByIndex(m.HeroElementType.All)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetHeroDatas(), this.SetHeroList(), this.ShowGameModuleGuide()
                }, t.prototype.SetHeroDatas = function() {
                    var e = this;
                    this._heroModelsMap = {};
                    var t = g.DataCenter.Instance.GetDataList(u.UserHero_Model);
                    t.sort(function(e, t) {
                        return t.Power - e.Power
                    }), this._heroModelsMap[m.HeroElementType.All] = [], t.forEach(function(t) {
                        if (!e._excludeIds.includes(t.Sid)) {
                            var n = y.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, t.HeroId);
                            e._heroModelsMap[n.ElementType] || (e._heroModelsMap[n.ElementType] = []), e._heroModelsMap[n.ElementType].push(t), e._heroModelsMap[m.HeroElementType.All].push(t)
                        }
                    }), this._heroDatas = this._heroModelsMap[this._currentElement]
                }, t.prototype.SetHeroList = function() {
                    this.RenderCustomLayout(), this.NoHeroLabel.node.active = 0 == this._heroDatas.length
                }, t.prototype.InitCustomLayout = function() {
                    this.CustomLayout.Init(this._equipItemPrefab)
                }, t.prototype.RenderCustomLayout = function() {
                    this.CustomLayout.RenderLayOut(this._heroDatas.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    if (this.CustomLayout == t) switch (this._heroSelectType) {
                        case l.MagicCircle:
                            e.forEach(function(e, t) {
                                e.name = n._heroDatas[t].Sid.toString();
                                var o = e.getComponent(C.default);
                                o.InitItem(n._itemPrefab, n._heroDatas[t], _.ItemComponentType.HeroInfo);
                                var r = g.DataCenter.Instance.GetHeroMagicCircle(n._heroDatas[t].Sid);
                                if (r) {
                                    var i = g.DataCenter.Instance.GetDataById(u.MagicCircle_Model, r);
                                    o.InitEquipItem({
                                        ItemId: i.Sid,
                                        StarLevel: i.Star
                                    }, _.ItemComponentType.ItemWithStar)
                                }
                                n._heroDatas[t].Sid == n._selectedId ? o.SetSelectFlagState(!0) : o.SetSelectFlagState(!1)
                            });
                            break;
                        default:
                            e.forEach(function(e, t) {
                                e.name = n._heroDatas[t].Sid.toString();
                                var o = e.getComponent(C.default);
                                o.InitItem(n._itemPrefab, n._heroDatas[t], _.ItemComponentType.HeroInfo);
                                var r = g.DataCenter.Instance.GetHeroPet(n._heroDatas[t].Sid);
                                if (r[0]) {
                                    var i = g.DataCenter.Instance.GetDataById(u.UserPet_Model, r[0]);
                                    o.InitEquipItem(i, _.ItemComponentType.Pet)
                                }
                                n._heroDatas[t].Sid == n._selectedId ? o.SetSelectFlagState(!0) : o.SetSelectFlagState(!1)
                            })
                    }
                }, t.prototype.OnSwitchHeroElement = function(e, t) {
                    t == this.HeroElementGroup.node && this._currentElement != e && (this._currentElement = e, this._heroDatas = this._heroModelsMap[this._currentElement], this.SetHeroList())
                }, t.prototype.ClickSureButton = function() {
                    this._btnCallBack && this._btnCallBack(this._selectedId), this.Close()
                }, t.prototype.OnItemClick = function(e, t) {
                    var n = this;
                    if (this.CustomLayout.node == t.parent)
                        if (this._selectedId == e) t.getComponent(C.default).SetSelectFlagState(!1), this._selectedId = 0;
                        else {
                            var o = this.CustomLayout.node.children.find(function(e) {
                                return e.name == n._selectedId.toString()
                            });
                            o && o.getComponent(C.default).SetSelectFlagState(!1), t.getComponent(C.default).SetSelectFlagState(!0), this._selectedId = e
                        }
                }, t.prototype.ShowGameModuleGuide = function() {
                    this._isShowGuide || (this._isShowGuide = !0, this.ShowGameGuid())
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) switch (this._moduleType) {
                        case m.GameModuleType.MagicCircle:
                            var t = v.default.Instance.GetCurrentGroupId(this.GuideGroupIds[m.GameModuleType.MagicCircle], e);
                            if (t <= 0) return;
                            this._guideGroupId && this._guideGroupId == t || (this._guideGroupId = t, this._guideStepIndex = 0);
                            var n = y.ConfigDataComponent.Instance.GetConfigById(p.GameModuleGuideGroup_Config, this._guideGroupId);
                            if (!n) return;
                            for (var o = 0; o < n.GameModuleGuideStepIds.length; o++) {
                                var r = !0;
                                switch (n.GameModuleGuideStepIds[this._guideStepIndex]) {
                                    case 25:
                                        var i = this.CustomLayout.node.children.find(function(e) {
                                            return e.active = !0
                                        });
                                        v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, i);
                                        break;
                                    case 26:
                                        v.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.SureButton.node, !0);
                                        break;
                                    default:
                                        r = !1
                                }
                                if (this._guideStepIndex++, r) break
                            }
                    }
                }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(d.default)], t.prototype, "CustomLayout", void 0), i([w(h.default)], t.prototype, "HeroElementGroup", void 0), i([w(cc.Button)], t.prototype, "SureButton", void 0), i([w(cc.Label)], t.prototype, "SureLabel", void 0), i([w(cc.Label)], t.prototype, "NoHeroLabel", void 0), i([S], t)
            }(c.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/ItemEquipItemComponent": "ItemEquipItemComponent"
    }],
    PetSelectItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "45d19Xi4hJFuKTj1nfR/Uej", "PetSelectItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../Auxiliary/EventKeys"),
            c = e("./ItemComponent"),
            u = e("./ItemClickComponent"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property;
        (function(e) {
            e[e.hero = 1] = "hero", e[e.skin = 2] = "skin"
        })(a || (a = {}));
        var f = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ItemRoot = null, t.EmptyNode = null, t.SelectBg = null, t.UsedFlag = null, t.UsedLabel = null, t.Mask = null, t.RedDot = null, t._itemPrefab = null, t._itemComponent = null, t._isInit = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
            }, t.prototype.SetUI = function(e, t) {
                this._itemPrefab = t, this._isInit || (this.SetClickEvent(), this.UsedLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale(), this._isInit = !0), this.LoadItem(e)
            }, t.prototype.SetClickEvent = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchNode, this)
            }, t.prototype.OnTouchNode = function() {
                s.Game.EventDispatcher.Emit(l.EventKeys.EVENT_ITEM_CLICK, Number.parseInt(this.node.name), this.node)
            }, t.prototype.LoadItem = function(e) {
                e ? (null == this._itemComponent && (this._itemComponent = cc.instantiate(this._itemPrefab).getComponent(c.ItemComponent), this._itemComponent.node.setParent(this.ItemRoot), this._itemComponent.getComponent(u.default).enabled = !1, this._itemComponent.getComponent(cc.BlockInputEvents).enabled = !1), this.EmptyNode.active = !1, this.ItemRoot.active = !0, this._itemComponent.Init({
                    ItemId: e,
                    Count: 1
                })) : (this.EmptyNode.active = !0, this.ItemRoot.active = !1)
            }, t.prototype.SetUsedFlag = function(e) {
                this.UsedFlag.active = e
            }, t.prototype.SetSelect = function(e) {
                this.SelectBg.active = e
            }, t.prototype.SetMask = function(e) {
                this.Mask.active = e
            }, t.prototype.SetRedDot = function(e) {
                this.RedDot.active = e
            }, i([h(cc.Node)], t.prototype, "ItemRoot", void 0), i([h(cc.Node)], t.prototype, "EmptyNode", void 0), i([h(cc.Node)], t.prototype, "SelectBg", void 0), i([h(cc.Node)], t.prototype, "UsedFlag", void 0), i([h(cc.Label)], t.prototype, "UsedLabel", void 0), i([h(cc.Node)], t.prototype, "Mask", void 0), i([h(cc.Node)], t.prototype, "RedDot", void 0), i([d], t)
        }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent"
    }],
    PetSelectTabComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "df0ffZHGQtEk7/7FEeUkeZv", "PetSelectTabComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TabLabel = null, t.Line = null, t.CheckNode = null, t._index = 0, t._color6EEEA7 = new cc.Color(110, 238, 167), t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnClickTab, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnClickTab, this)
                }, t.prototype.InitUI = function(e, t, n, o) {
                    this._index = t, this.TabLabel.string = n, this.TabLabel.node.color = e == t ? this._color6EEEA7 : cc.Color.WHITE, this.Line.active = t < o - 1, this.CheckNode.active = e == t
                }, t.prototype.SetCheck = function(e) {
                    this.CheckNode.active = e, this.TabLabel.node.color = e ? this._color6EEEA7 : cc.Color.WHITE
                }, t.prototype.OnClickTab = function() {
                    a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_LUCKYCHARM_SELECT_TAB, this._index)
                }, i([u(cc.Label)], t.prototype, "TabLabel", void 0), i([u(cc.Node)], t.prototype, "Line", void 0), i([u(cc.Node)], t.prototype, "CheckNode", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    PetSkillComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "abaabtTX2NNa6bjVRifVN16", "PetSkillComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Icon = null, t.Level = null, t._isGray = !1, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t) {
                    void 0 === t && (t = 0), this._skillId = e, this._level = t, this.Level.string = t.toString(), this.SetIcon(e)
                }, t.prototype.SetIcon = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return t = c.default.GetSkillIconId(this._skillId), [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.SkillIcon + "/" + t, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.isValid && e == this._skillId ? (this.Icon.spriteFrame = n, this._loadedAssets.push(n), [2]) : (l.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.OnIconGray = function() {
                    this._isGray || (this._isGray = !0, p.UIUtlity.OnSpriteGray(this.Icon))
                }, t.prototype.OffIconGray = function() {
                    this._isGray && (this._isGray = !1, p.UIUtlity.OffSpriteGray(this.Icon))
                }, t.prototype.OnClickItem = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.SkillTipsPanel.Path, this._skillId, this.node, this._level)
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._loadedAssets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                    this._loadedAssets = []
                }, i([f(cc.Sprite)], t.prototype, "Icon", void 0), i([f(cc.Label)], t.prototype, "Level", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    PetUpStarSucessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3e6e8EP2FBDRIvI75LaFh9l", "PetUpStarSucessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/ItemComponent"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/DataCenter"),
            d = e("../../Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/ItemClickComponent"),
            m = e("./PetInfoTabAttr"),
            I = e("../Components/PetSkillComponent"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1, !1), t.OldItemContainer = null, t.NewItemContainer = null, t.AttrDesc = null, t.LevelDesc = null, t.OldLevel = null, t.NewLevel = null, t.AttrNodes = [], t.SkillDesc = null, t.NoneSkillDesc = null, t.SkillLayout = null, t.StarUpSpine = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(y.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.AttrDesc.string = "upgrade_attr".ToUILocale(), this.SkillDesc.string = "upgrade_skill".ToUILocale(), this.LevelDesc.string = "level_limit".ToUILocale(), this.NoneSkillDesc.string = "upgrade_skill_none".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._oldPet = t[0], this._newPet = p.DataCenter.Instance.GetDataById(u.UserPet_Model, this._oldPet.Sid)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.ConfigHeroItem(), this.ConfigAttrInfo(), this.ConfigSkills()
                }, t.prototype.ConfigHeroItem = function() {
                    var e;
                    this._oldItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.OldItemContainer), e.getComponent(g.default).enabled = !1, this._oldItemComponent = e.getComponent(c.ItemComponent)), this._newItemComponent || ((e = cc.instantiate(this._itemPrefab)).setParent(this.NewItemContainer), e.getComponent(g.default).enabled = !1, this._newItemComponent = e.getComponent(c.ItemComponent)), this._oldItemComponent.Init(this._oldPet, c.ItemComponentType.Pet), this._newItemComponent.Init(this._newPet, c.ItemComponentType.Pet)
                }, t.prototype.ConfigAttrInfo = function() {
                    var e = this,
                        t = d.ConfigDataComponent.Instance.GetConfigById(h.PetStar_Config, this._oldPet.Star),
                        n = d.ConfigDataComponent.Instance.GetConfigById(h.PetStar_Config, this._newPet.Star),
                        o = d.ConfigDataComponent.Instance.GetConfigById(h.PetBase_Config, this._oldPet.Sid);
                    this.OldLevel.string = t.MaxLevel.toString(), this.NewLevel.string = n.MaxLevel.toString(), this.AttrNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var r = m.default.GetPetAttrByQuality(o.Quality, this._oldPet.Star, this._oldPet.Level);
                    m.default.GetPetAttrByQuality(o.Quality, this._newPet.Star, this._newPet.Level).forEach(function(t, n) {
                        if (e.AttrNodes[n]) {
                            var o = r.find(function(e) {
                                return e.attrId == t.attrId
                            });
                            o ? t.attrvalue != o.attrvalue && e.SetAttrs(e.AttrNodes[n], t.attrId, o.attrvalue, t.attrvalue) : e.SetAttrs(e.AttrNodes[n], t.attrId, 0, t.attrvalue)
                        }
                    })
                }, t.prototype.SetAttrs = function(e, t, n, o) {
                    var r = f.default.GetHeroAttribute(t, o);
                    e.getChildByName("Icon").getComponent(cc.Sprite).spriteFrame = r.Icon, e.getChildByName("Desc").getComponent(cc.Label).string = r.Name, e.getChildByName("OldValue").getComponent(cc.Label).string = n.toString(), e.getChildByName("NewValue").getComponent(cc.Label).string = o.toString(), e.active = !0
                }, t.prototype.ConfigSkills = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c, u;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    for (e = m.default.GetPetSkills(this._oldPet.Sid, this._oldPet.Star), t = m.default.GetPetSkills(this._newPet.Sid, this._newPet.Star), n = [], u = 0; u < e.length; u++) o = e[u], r = t[u], o.SkillId != r.SkillId && n.push(r);
                                    return n.length > 0 ? (this.NoneSkillDesc.node.active = !1, this.SkillLayout.active = !0, null != this._skillItemPrefab ? [3, 2] : (i = this, [4, this.LoadDynamicAsset("HeroPetPanel/Components/PetSkillComponent")])) : [3, 3];
                                case 1:
                                    i._skillItemPrefab = s.sent(), s.label = 2;
                                case 2:
                                    for (u = 0; u < n.length; u++) a = n[u], void 0 === (l = this.SkillLayout.children[u]) && (l = cc.instantiate(this._skillItemPrefab)).setParent(this.SkillLayout), l.active = !0, (c = l.getComponent(I.default)).Init(a.SkillId, a.Level), a.Active ? c.OffIconGray() : c.OnIconGray();
                                    for (u = n.length; u < this.SkillLayout.childrenCount; u++) this.SkillLayout.children[u].active = !1;
                                    return [3, 4];
                                case 3:
                                    this.NoneSkillDesc.node.active = !0, this.SkillLayout.active = !1, s.label = 4;
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, i([v(cc.Node)], t.prototype, "OldItemContainer", void 0), i([v(cc.Node)], t.prototype, "NewItemContainer", void 0), i([v(cc.Label)], t.prototype, "AttrDesc", void 0), i([v(cc.Label)], t.prototype, "LevelDesc", void 0), i([v(cc.Label)], t.prototype, "OldLevel", void 0), i([v(cc.Label)], t.prototype, "NewLevel", void 0), i([v(cc.Node)], t.prototype, "AttrNodes", void 0), i([v(cc.Label)], t.prototype, "SkillDesc", void 0), i([v(cc.Label)], t.prototype, "NoneSkillDesc", void 0), i([v(cc.Node)], t.prototype, "SkillLayout", void 0), i([v(sp.Skeleton)], t.prototype, "StarUpSpine", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PetSkillComponent": "PetSkillComponent",
        "./PetInfoTabAttr": "PetInfoTabAttr"
    }],
    PetWishItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2ef3ahbCrlBN6tUGIbTFXdZ", "PetWishItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/DataCenter"),
            f = e("./ItemComponent"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Components/RpcComponent"),
            I = e("./CustomProgressBar"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemProgressBar = null, t.ProgressBar = null, t.QuadBlue = null, t.QuadBlueLabel = null, t.QuadGrey = null, t.QuadGreyLabel = null, t.NeedScore = null, t.ReceiveButton = null, t.ReceiveButtonLabel = null, t.LockReceiveButton = null, t.LockReceiveButtonLabel = null, t.Received = null, t.PetNode = null, t.NoItem = null, t.LastStageNode = null, t.LastQuadBlue = null, t.LastQuadBlueLabel = null, t.LastQuadGrey = null, t.LastQuadGreyLabel = null, t.LastNeedScore = null, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e, t, n) {
                    this._scoreConfig = e, this._key = t, this._itemId = n, this.ReceiveButtonLabel.string = "receive".ToUILocale(), this.LockReceiveButtonLabel.string = "receive".ToUILocale(), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this), this.LockReceiveButton.node.on("click", this.OnLockReceiveButtonClick, this), this.QuadBlueLabel.string = t.toString(), this.QuadGreyLabel.string = t.toString(), this._petToken = h.DataCenter.Instance.GetItemCount(p.CommonItemId.PetWishItem), this.SetProgressBar(), this.CheckHaveWishItem()
                }, t.prototype.SetProgressBar = function() {
                    if (0 == this._key) this.ItemProgressBar.active = !1;
                    else {
                        this.ItemProgressBar.active = !0;
                        var e = this._scoreConfig[this._key - 1].Items[0];
                        this.NeedScore.string = e.toString(), this._petToken >= e ? (this.QuadBlue.active = !0, this.QuadGrey.active = !1) : (this.QuadBlue.active = !1, this.QuadGrey.active = !0), this.ProgressBar.progress = (this._petToken - e) / (this._scoreConfig[this._key].Items[0] - e)
                    }
                    this._key == this._scoreConfig.length - 1 ? (this.LastStageNode.active = !0, this.LastQuadBlueLabel.string = (this._key + 1).toString(), this.LastQuadGreyLabel.string = (this._key + 1).toString(), this.LastNeedScore.string = this._scoreConfig[this._key].Items[0].toString(), this._petToken >= this._scoreConfig[this._key].Items[0] ? (this.LastQuadBlue.active = !0, this.LastQuadGrey.active = !1) : (this.LastQuadBlue.active = !1, this.LastQuadGrey.active = !0)) : this.LastStageNode.active = !1
                }, t.prototype.CheckHaveWishItem = function() {
                    if (this._itemId > 0) {
                        this.PetNode.active = !0, this.NoItem.active = !1, this.SetPetNode();
                        var e, t = h.DataCenter.Instance.GetSimpleData(p.UserDataKey.PetWishCount);
                        e = t ? t.V : 0;
                        var n = this._scoreConfig[this._key].Items[0];
                        this.ReceiveButton.node.active = this._petToken >= n && !(this._key < e), this.Received.active = this._petToken >= n && this._key < e, this.LockReceiveButton.node.active = this._petToken < n
                    } else this.PetNode.active = !1, this.NoItem.active = !0, this.ReceiveButton.node.active = !1, this.LockReceiveButton.node.active = !0, this.Received.active = !1
                }, t.prototype.SetPetNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._itemComponent ? [3, 3] : this._itemComponentPrefab ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemComponentPrefab = e, this._assets.push(e), n.label = 2;
                                case 2:
                                    (t = cc.instantiate(this._itemComponentPrefab)).setParent(this.PetNode), this._itemComponent = t.getComponent(f.ItemComponent), n.label = 3;
                                case 3:
                                    return this._itemComponent.Init({
                                        ItemId: this._itemId,
                                        Count: this._scoreConfig[this._key].Items[1]
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnReceiveButtonClick = function() {
                    var e = new c.Req_Item_PetWishReceive;
                    m.RpcComponent.Instance.Call(e, function(e) {
                        g.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnLockReceiveButtonClick = function() {
                    g.UIUtlity.ShowFloatingHint("pet_notReceive".ToUILocale())
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.PetNode.children.indexOf(t) && g.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([v(cc.Node)], t.prototype, "ItemProgressBar", void 0), i([v(I.default)], t.prototype, "ProgressBar", void 0), i([v(cc.Node)], t.prototype, "QuadBlue", void 0), i([v(cc.Label)], t.prototype, "QuadBlueLabel", void 0), i([v(cc.Node)], t.prototype, "QuadGrey", void 0), i([v(cc.Label)], t.prototype, "QuadGreyLabel", void 0), i([v(cc.Label)], t.prototype, "NeedScore", void 0), i([v(cc.Button)], t.prototype, "ReceiveButton", void 0), i([v(cc.Label)], t.prototype, "ReceiveButtonLabel", void 0), i([v(cc.Button)], t.prototype, "LockReceiveButton", void 0), i([v(cc.Label)], t.prototype, "LockReceiveButtonLabel", void 0), i([v(cc.Node)], t.prototype, "Received", void 0), i([v(cc.Node)], t.prototype, "PetNode", void 0), i([v(cc.Node)], t.prototype, "NoItem", void 0), i([v(cc.Node)], t.prototype, "LastStageNode", void 0), i([v(cc.Node)], t.prototype, "LastQuadBlue", void 0), i([v(cc.Label)], t.prototype, "LastQuadBlueLabel", void 0), i([v(cc.Node)], t.prototype, "LastQuadGrey", void 0), i([v(cc.Label)], t.prototype, "LastQuadGreyLabel", void 0), i([v(cc.Label)], t.prototype, "LastNeedScore", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomProgressBar": "CustomProgressBar",
        "./ItemComponent": "ItemComponent"
    }],
    PetWishPage: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5f775+XTVlJcp1T+6EOGU8r", "PetWishPage");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/EnumType"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/DataCenter"),
            d = e("../Components/CustomLayout"),
            h = e("../Components/ItemComponent"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Components/Components"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Components/PetWishItem"),
            _ = e("../Auxiliary/UIUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NoItem = null, t.PetNode = null, t.TokenLabel = null, t.RuleButton = null, t.ChangePetButton = null, t.ChangePetButtonLabel = null, t.ReturnButton = null, t.WishItemContainer = null, t._isInit = !1, t._isCustomLayoutInit = !1, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    g.Game.EventDispatcher.On(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), g.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    g.Game.EventDispatcher.Off(m.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), g.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._isInit ? [3, 2] : (this._isInit = !0, this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.ChangePetButton.node.on("click", this.OnChangePetButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this._petWishLevelParamConfig = y.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, c.LevelParamType.PetWish), [4, this.LoadAssest()]);
                                case 1:
                                    t.sent(), t.label = 2;
                                case 2:
                                    return e = p.DataCenter.Instance.GetItemCount(c.CommonItemId.PetWishItem), this.TokenLabel.string = "pet_hatch_gettoken".ToUILocale().Fmt(e), this.SetPetNode(), this.InitCustomLayout(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadAssest = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab), t = l.AssetsManager.Instance.LoadAsset("HeroListPanel/PetPanel/Components/PetWishItem", cc.Prefab), [4, Promise.all([e, t]).then(function(e) {
                                        n._itemComponentPrefab = e[0], n._petWishItemPrefab = e[1]
                                    })];
                                case 1:
                                    return o.sent(), this.isValid || (l.AssetsManager.Instance.UnloadAsset(this._itemComponentPrefab), l.AssetsManager.Instance.UnloadAsset(this._petWishItemPrefab)), [2]
                            }
                        })
                    })
                }, t.prototype.SetPetNode = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function() {
                            return (e = p.DataCenter.Instance.GetSimpleData(c.UserDataKey.PetWishItemId)) && (t = e.V) > 0 ? (this.NoItem.active = !1, this.PetNode.active = !0, this._wishItemId = e.V, this.ChangePetButtonLabel.string = "pet_change".ToUILocale(), this._petItemComponent || ((n = cc.instantiate(this._itemComponentPrefab)).setParent(this.PetNode), this._petItemComponent = n.getComponent(h.ItemComponent)), o = y.ConfigDataComponent.Instance.GetConfigById(f.ItemPiece_Config, t), this._petItemComponent.Init({
                                ItemId: o.CardId
                            }), [2]) : (this.NoItem.active = !0, this.PetNode.active = !1, this.ChangePetButtonLabel.string = "pet_choose".ToUILocale(), [2])
                        })
                    })
                }, t.prototype.InitCustomLayout = function() {
                    this._isCustomLayoutInit || (this.WishItemContainer.Init(this._petWishItemPrefab), this._isCustomLayoutInit = !0);
                    for (var e = this._petWishLevelParamConfig.Data2.length, t = 0, n = p.DataCenter.Instance.GetItemCount(c.CommonItemId.PetWishItem), o = 0; o < e; o++) n >= this._petWishLevelParamConfig.Data2[o].Items[0] && t++;
                    this.WishItemContainer.RenderLayOut(e, t)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.WishItemContainer && e.forEach(function(e, t) {
                        e.getComponent(I.default).Init(n._petWishLevelParamConfig.Data2, t, n._wishItemId)
                    })
                }, t.prototype.OnRuleButtonClick = function() {
                    var e = {
                        name: "pet_wish_ruleTittle".ToUILocale(),
                        titles: ["HeroTalent_Rule".ToUILocale()],
                        contents: ["pet_wish_ruleDesc".ToUILocale()]
                    };
                    _.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnChangePetButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(u.PanelConfig.WishPetHint.Path)
                }, t.prototype.OnReturnButtonClick = function() {
                    g.Game.EventDispatcher.Emit(m.EventKeys.EVENT_PETHATCH_PAGE_SHOW)
                }, t.prototype.onDestroy = function() {
                    this._itemComponentPrefab && l.AssetsManager.Instance.UnloadAsset(this._itemComponentPrefab), this._petWishItemPrefab && l.AssetsManager.Instance.UnloadAsset(this._petWishItemPrefab)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.PetNode.children.indexOf(t) && _.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
                }, i([b(cc.Node)], t.prototype, "NoItem", void 0), i([b(cc.Node)], t.prototype, "PetNode", void 0), i([b(cc.Label)], t.prototype, "TokenLabel", void 0), i([b(cc.Button)], t.prototype, "RuleButton", void 0), i([b(cc.Button)], t.prototype, "ChangePetButton", void 0), i([b(cc.Label)], t.prototype, "ChangePetButtonLabel", void 0), i([b(cc.Button)], t.prototype, "ReturnButton", void 0), i([b(d.default)], t.prototype, "WishItemContainer", void 0), i([v], t)
            }(cc.Component);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PetWishItem": "PetWishItem"
    }],
    PieceResolvePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "93abeILSqJFbo63/YUpHyYe", "PieceResolvePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../Components/HeroElementGroup"),
            d = e("../Components/CustomLayout"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/DataCenter"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/ConfigData/ConfigDataComponent"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../../Consts/Consts"),
            _ = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            C = e("../../Auxiliary/GlobalDefine"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../../Auxiliary/EventKeys"),
            w = e("../Components/ItemComponent"),
            P = e("../../Auxiliary/DataUtlity"),
            A = e("../../../EZFramework/EZFramework"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Tip), t.Title = null, t.Tag = null, t.HeroElementGroup = null, t.ItemScroll = null, t.ItemGrid = null, t.EmptyStateLabel = null, t.SliderNode = null, t.CountSlider = null, t.SliderFill = null, t.SelectCount = null, t.BtnAdd = null, t.BtnReduce = null, t.BtnResolve = null, t.ResolveBtnLabel = null, t._fillMaxWidth = 0, t._dataMap = new Map, t._itemPrefab = null, t._isLayoutInit = !1, t._currentElement = m.HeroElementType.All, t._selectItem = null, t._maxCount = 0, t._resolveCount = 0, t._canDrag = !0, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    b.Game.EventDispatcher.On(S.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), b.Game.EventDispatcher.On(S.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), b.Game.EventDispatcher.On(S.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    b.Game.EventDispatcher.Off(S.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView), b.Game.EventDispatcher.Off(S.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement), b.Game.EventDispatcher.Off(S.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this._fillMaxWidth = this.SliderFill.width - n.FILL_UI_PADDING, this.SetDragEvent(), this.SetClickEvent()
                }, t.prototype.SetDragEvent = function() {
                    this.CountSlider.node.on("slide", this.OnSliderDrag, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_END, this.OnDragOver, this), this.CountSlider.handle.node.on(cc.Node.EventType.TOUCH_CANCEL, this.OnDragOver, this)
                }, t.prototype.SetStaticLocalText = function() {
                    this._type == I.ItemType.ItemPiece ? (this.Title.string = "pieceResolve_title".ToUILocale(), this.Tag.string = "pieceResolve_tag".ToUILocale(), this.ResolveBtnLabel.string = "pieceResolve_title".ToUILocale(), this.EmptyStateLabel.string = "piece_resolve_element_none".ToUILocale()) : this._type == I.ItemType.Personality && (this.Title.string = "personality_decompose".ToUILocale(), this.Tag.string = "personality_decompose_tag".ToUILocale(), this.ResolveBtnLabel.string = "personality_decompose".ToUILocale(), this.EmptyStateLabel.string = "personality_decompose_element_none".ToUILocale())
                }, t.prototype.SetClickEvent = function() {
                    this.BtnAdd.node.on("click", this.OnBtnAddClick, this), this.BtnReduce.node.on("click", this.OnBtnReduceClick, this), this.BtnResolve.node.on("click", this.OnBtnResolveClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._type = t[0] || I.ItemType.ItemPiece, this.SetStaticLocalText()
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._selectItem = null, this.ConfigDataMap(), this.InitCustomLayout(), this.OffSlider()
                }, t.prototype.ConfigDataMap = function() {
                    this._dataMap.clear();
                    var e = [];
                    this._dataMap.set(I.HeroElementType.All, e);
                    for (var t = f.DataCenter.Instance.GetDataList(h.UserItem_Model), n = 0; n < t.length; n++) {
                        var o = t[n];
                        if (!(o.Count <= 0)) {
                            var r = g.ConfigDataComponent.Instance.GetConfigById(y.ItemBase_Config, o.ItemId);
                            if (r.Type == this._type) {
                                if (this._type == I.ItemType.ItemPiece) {
                                    if (!(i = g.ConfigDataComponent.Instance.GetConfigById(y.ItemPiece_Config, o.ItemId)) || i.SubType != m.ItemPieceType.HeroPiece && i.SubType != m.ItemPieceType.PersonalityPiece) continue
                                } else if (this._type == I.ItemType.Personality) {
                                    var i;
                                    if (!(i = g.ConfigDataComponent.Instance.GetConfigById(y.ItemPersonality_Config, o.ItemId))) continue
                                }
                                if (e.push(o), r.ElementType > m.HeroElementType.All) {
                                    var a = this._dataMap.get(r.ElementType);
                                    a ? a.push(o) : ((a = []).push(o), this._dataMap.set(r.ElementType, a))
                                }
                            }
                        }
                    }
                    this._type == I.ItemType.ItemPiece ? this._dataMap.forEach(function(e) {
                        P.default.Instance.SortData(I.SortDataType.ItemPiece, e, [{
                            Items: [I.SortType.Config2SubType, 1]
                        }, {
                            Items: [I.SortType.CanCompose, 1]
                        }, {
                            Items: [I.SortType.CanComposeCard, -1]
                        }, {
                            Items: [I.SortType.ConfigQuality, -1]
                        }, {
                            Items: [I.SortType.ConfigElementType, 1]
                        }, {
                            Items: [I.SortType.ItemId, 1]
                        }])
                    }) : this._type == I.ItemType.Personality && this._dataMap.forEach(function(e) {
                        P.default.Instance.SortData(I.SortDataType.ItemPiece, e, [{
                            Items: [I.SortType.ConfigElementType, 1]
                        }, {
                            Items: [I.SortType.ItemId, 1]
                        }])
                    })
                }, t.prototype.OnSwitchHeroElement = function(e) {
                    this._currentElement != e && (this._currentElement = e, this._selectItem = null, this.OffSlider(), this.RenderLayout())
                }, t.prototype.OnClickItem = function(e, t) {
                    -1 != this.ItemGrid.node.children.indexOf(t) && this.ChangeItemSelectState(e)
                }, t.prototype.ChangeItemSelectState = function(e) {
                    if (null == this._selectItem || this._selectItem.ItemId != e) {
                        var t = this.ItemGrid.node.getChildByName(e.toString()).getComponent(w.ItemComponent),
                            n = f.DataCenter.Instance.GetDataById(h.UserItem_Model, e);
                        null == this._selectItem ? (this._selectItem = n, t.SetSelectFlagState(!0)) : (this.ItemGrid.node.getChildByName(this._selectItem.ItemId.toString()) && this.ItemGrid.node.getChildByName(this._selectItem.ItemId.toString()).getComponent(w.ItemComponent).SetSelectFlagState(!1), this._selectItem = n, t.SetSelectFlagState(!0)), this.SetSliderUI()
                    }
                }, t.prototype.SetSliderUI = function() {
                    this._selectItem.Count <= 0 ? this.OffSlider() : (this.OnSlider(), this._maxCount = this._selectItem.Count, this.InitResourceSlider(), this.SetCountOperationBtnState(!0))
                }, t.prototype.OffSlider = function() {
                    this.SetDefaultSlider(), this.BtnAdd.interactable = !1, this.BtnReduce.interactable = !1, this.CountSlider.enabled = !1, this.CountSlider.handle.interactable = !1, this._canDrag = !1
                }, t.prototype.OnSlider = function() {
                    this.CountSlider.enabled = !0, this.CountSlider.handle.interactable = !0, this._canDrag = !0
                }, t.prototype.SetDefaultSlider = function() {
                    this.CountSlider.progress = 0, this.SliderFill.width = 0, this.SelectCount.string = "", this._resolveCount = 0
                }, t.prototype.InitResourceSlider = function() {
                    this.CountSlider.progress = 1 / this._maxCount, this.SliderFill.width = this._fillMaxWidth * this.CountSlider.progress, this.SelectCount.string = "1", this._resolveCount = 1
                }, t.prototype.SetCountOperationBtnState = function(e) {
                    e ? this._maxCount <= 1 ? (this.BtnAdd.interactable = !1, this.BtnReduce.interactable = !1) : (this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !1) : (this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0, this._resolveCount <= 1 ? this.BtnReduce.interactable = !1 : this._resolveCount >= this._maxCount && (this.BtnAdd.interactable = !1))
                }, t.prototype.SetSliderProgress = function() {
                    this.CountSlider.progress = this._resolveCount / this._maxCount, this.SliderFill.width = this._fillMaxWidth * this.CountSlider.progress, this.SelectCount.string = this._resolveCount.toString()
                }, t.prototype.InitCustomLayout = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(C.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = t.sent(), !this.isValid) return _.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    return this._isLayoutInit || (this._isLayoutInit = !0, this.ItemGrid.Init(this._itemPrefab, !1)), this.RenderLayout(), [2]
                            }
                        })
                    })
                }, t.prototype.GetHeroDataByElement = function(e) {
                    return this._dataMap.get(e)
                }, t.prototype.RenderLayout = function(e) {
                    void 0 === e && (e = !0);
                    var t = 0,
                        n = this.GetHeroDataByElement(this._currentElement);
                    null != n && (t = n.length), this.EmptyStateLabel.node.active = 0 == t, this.ItemGrid.RenderLayOut(t), v.UIUtlity.AnimationItemsByType1(this.ItemGrid.node.children)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n, o = this;
                    if (this.ItemGrid == t) {
                        var r = ((n = {})[I.ItemType.ItemPiece] = w.ItemComponentType.Fragment, n[I.ItemType.Personality] = w.ItemComponentType.ItemCommon, n),
                            i = this.GetHeroDataByElement(this._currentElement);
                        e.forEach(function(e, t) {
                            var n = e.getComponent(w.ItemComponent),
                                a = i[t];
                            n.Init(a, r[o._type]), null != o._selectItem && o._selectItem.ItemId == a.ItemId ? n.SetSelectFlagState(!0) : n.SetSelectFlagState(!1), n.node.name = a.ItemId.toString()
                        })
                    }
                }, t.prototype.OnSliderDrag = function() {
                    if (this._canDrag) {
                        this.SliderFill.width = this._fillMaxWidth * this.CountSlider.progress;
                        var e = this.CountSlider.progress;
                        this._resolveCount = Math.max(Math.floor(this._maxCount * e), 1), this.SelectCount.string = this._resolveCount.toString()
                    }
                }, t.prototype.OnDragOver = function() {
                    if (this._canDrag) {
                        var e = this.CountSlider.progress;
                        this._resolveCount = Math.max(Math.floor(this._maxCount * e), 1), this.SetSliderProgress(), this.SetCountOperationBtnState(!1)
                    }
                }, t.prototype.OnBtnAddClick = function() {
                    this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0, this._resolveCount < this._maxCount && (this._resolveCount += 1, this._resolveCount >= this._maxCount ? this.BtnAdd.interactable = !1 : this.BtnReduce.interactable = !0, this.SetSliderProgress())
                }, t.prototype.OnBtnReduceClick = function() {
                    this.BtnAdd.interactable = !0, this.BtnReduce.interactable = !0, this._resolveCount > 1 && (this._resolveCount -= 1, this._resolveCount <= 1 ? this.BtnReduce.interactable = !1 : this.BtnAdd.interactable = !0, this.SetSliderProgress())
                }, t.prototype.OnBtnResolveClick = function() {
                    var e, t = ((e = {})[I.ItemType.ItemPiece] = "piece_resolve_switch_hint", e[I.ItemType.Personality] = "personality_resolve_switch_hint", e);
                    this._resolveCount <= 0 ? v.UIUtlity.ShowFloatingHint(t[this._type].ToUILocale()) : A.UIManager.Instance.ShowUIPanel(C.PanelConfig.PieceResolvePreviewPanel.Path, this._selectItem.ItemId, this._resolveCount)
                }, t.FILL_UI_PADDING = 5, i([L(cc.Label)], t.prototype, "Title", void 0), i([L(cc.Label)], t.prototype, "Tag", void 0), i([L(p.default)], t.prototype, "HeroElementGroup", void 0), i([L(cc.ScrollView)], t.prototype, "ItemScroll", void 0), i([L(d.default)], t.prototype, "ItemGrid", void 0), i([L(cc.Label)], t.prototype, "EmptyStateLabel", void 0), i([L(cc.Node)], t.prototype, "SliderNode", void 0), i([L(cc.Slider)], t.prototype, "CountSlider", void 0), i([L(cc.Node)], t.prototype, "SliderFill", void 0), i([L(cc.Label)], t.prototype, "SelectCount", void 0), i([L(cc.Button)], t.prototype, "BtnAdd", void 0), i([L(cc.Button)], t.prototype, "BtnReduce", void 0), i([L(cc.Button)], t.prototype, "BtnResolve", void 0), i([L(cc.Label)], t.prototype, "ResolveBtnLabel", void 0), n = i([R], t)
            }(l.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PieceResolvePreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a4149wEDTRD4q7Ax9JWfbDA", "PieceResolvePreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../Components/CustomLayout"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/DataCenter"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Components/ConfigData/ConfigDataComponent"),
            g = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../Components/ItemComponent"),
            b = e("../../Components/RpcComponent"),
            S = e("../../../Consts/Consts"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Tip, !1), t.Title = null, t.ItemScroll = null, t.ItemGrid = null, t.Tag = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t._itemPrefab = null, t._isLayoutInit = !1, t._itemData = null, t._itemBaseConfig = null, t._itemPieceConfig = null, t._personalityConfig = null, t._DecomposeItemData = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    _.Game.EventDispatcher.On(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    _.Game.EventDispatcher.Off(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "pieceResolve_preview_title".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "pieceResolve_preview_sure".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnResolveClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._itemId = t[0], this._count = t[1], this._itemBaseConfig = y.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, this._itemId), this.SetStaticLocalText()
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadData()
                }, t.prototype.LoadData = function() {
                    this._itemData = h.DataCenter.Instance.GetDataById(d.UserItem_Model, this._itemId), this._itemBaseConfig.Type == S.ItemType.ItemPiece ? (this._itemPieceConfig = y.ConfigDataComponent.Instance.GetConfigById(f.ItemPiece_Config, this._itemId), this._DecomposeItemData = this._itemPieceConfig.DecomposeItems) : this._itemBaseConfig.Type == S.ItemType.Personality && (this._personalityConfig = y.ConfigDataComponent.Instance.GetConfigById(f.ItemPersonality_Config, this._itemId), this._DecomposeItemData = this._personalityConfig.DecomposeItems)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitCustomLayout(), this.SetTag()
                }, t.prototype.InitCustomLayout = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(m.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._itemPrefab = t.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    return this._isLayoutInit || (this._isLayoutInit = !0, this.ItemGrid.Init(this._itemPrefab, !1)), this.RenderLayout(), [2]
                            }
                        })
                    })
                }, t.prototype.RenderLayout = function() {
                    this.ItemGrid.RenderLayOut(this._DecomposeItemData.length), I.UIUtlity.AnimationItemsByType1(this.ItemGrid.node.children)
                }, t.prototype.SetTag = function() {
                    var e = this._itemId.ToItemName(),
                        t = y.ConfigDataComponent.Instance.GetConfigById(f.ItemBase_Config, this._itemId),
                        n = "<outline width=2 color=#000000><color=" + I.UIUtlity.GetLabelColorByQuality(t.Quality).toHEX("#rrggbb") + ">" + e + "</c></o>",
                        o = "pieceResolve_preview_tag".ToUILocale().Fmt(n, this._count);
                    this.Tag.string = o
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.ItemGrid == t && e.forEach(function(e, t) {
                        var o = n._DecomposeItemData[t].Items;
                        e.getComponent(v.ItemComponent).Init({
                            ItemId: o[0],
                            Count: o[1] * n._count
                        }, v.ItemComponentType.ItemCommon)
                    })
                }, t.prototype.OnBtnCancelClick = function() {
                    this.Close()
                }, t.prototype.OnBtnResolveClick = function() {
                    var e = this,
                        t = h.DataCenter.Instance.GetItemCount(this._itemId);
                    if (this._itemBaseConfig.Type == S.ItemType.ItemPiece)
                        if (t >= this._itemPieceConfig.RequireCount) {
                            var n = "pieceResolve_suggest".ToUILocale();
                            I.UIUtlity.ShowHintPanel("", n, "", null, "", function() {
                                e.Close(), e.RequestDecompose()
                            })
                        } else this.Close(), this.RequestDecompose();
                    else this._itemBaseConfig.Type == S.ItemType.Personality && (this.Close(), this.RequestDecompose())
                }, t.prototype.RequestDecompose = function() {
                    var e = new d.Req_Item_DecomposeHeroPiece;
                    e.ItemId = this._itemId, e.Count = this._count, b.RpcComponent.Instance.Call(e, this.ResponseDecomposeSuccess.bind(this))
                }, t.prototype.ResponseDecomposeSuccess = function(e) {
                    e.Rewards.length > 0 && I.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, i([A(cc.Label)], t.prototype, "Title", void 0), i([A(cc.ScrollView)], t.prototype, "ItemScroll", void 0), i([A(p.default)], t.prototype, "ItemGrid", void 0), i([A(cc.RichText)], t.prototype, "Tag", void 0), i([A(cc.Button)], t.prototype, "BtnCancel", void 0), i([A(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([A(cc.Button)], t.prototype, "BtnSure", void 0), i([A(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PiggyBankNextLevelPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2c9738sKghPH4KqG1H4A8v3", "PiggyBankNextLevelPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Hint = null, t.MascotImage = null, t.GotoLabel = null, t.GotoBtn = null, t._assets = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GotoLabel.string = "PiggyBank_goTo".ToUILocale(), this.GotoBtn.node.on("click", this.OnGoto, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._showRoundIndex = t[0], this._activityConfig = t[1], this._gotoCallBack = t[2], this._closeCallBack = t[3], this._showRoundIndex = Math.max(this._showRoundIndex, this._activityConfig.Round.length - 1), this._showRoundIndex = Math.min(this._showRoundIndex, 0)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.LoadMascot(), this.SetLocale()
                }, t.prototype.LoadMascot = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._activityConfig.Common.Pictures.length <= 0 ? [2] : [4, c.default.LoadActivityTexture(this._activityConfig.Common.Pictures[0])];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this.MascotImage.spriteFrame = e, this._assets.push(e), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.SetLocale = function() {
                    for (var e = {}, t = 0; t < this._activityConfig._Locale.length; t++) e[t] = this._activityConfig._Locale[t].Content;
                    var n = this._activityConfig.Round[this._showRoundIndex].Desc;
                    n.length > 0 && e[parseInt(n[0])] && (this.Title.string = e[parseInt(n[0])]), n.length > 2 && e[parseInt(n[2])] && (this.Hint.string = e[parseInt(n[2])])
                }, t.prototype.OnGoto = function() {
                    this._isGoto = !0, this.Close()
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this._isGoto ? this._gotoCallBack && this._gotoCallBack() : this._closeCallBack && this._closeCallBack()
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._assets[e]);
                    this._assets = []
                }, i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Label)], t.prototype, "Hint", void 0), i([d(cc.Sprite)], t.prototype, "MascotImage", void 0), i([d(cc.Label)], t.prototype, "GotoLabel", void 0), i([d(cc.Button)], t.prototype, "GotoBtn", void 0), i([p], t)
            }(l.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    PiggyBankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7226cwpxY1GT7kibATnUXzG", "PiggyBankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../../ShareConsts/EnumType"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/CustomProgressBar"),
            m = e("../../Channel/ChannelManager"),
            I = e("../Components/LoadAssetHelper"),
            _ = e("../../Auxiliary/GameRecord"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0), t.Title = null, t.RuleBtn = null, t.DeadLine = null, t.Discount = null, t.MascotImage = null, t.FlashEffect = null, t.GreatValue = null, t.StartCount = null, t.StartIcon = null, t.EndCount = null, t.EndIcon = null, t.CurrenyCountNode = null, t.CurrenyCount = null, t.RewardIcon = null, t.FinishLabel = null, t.CustomProgressBar = null, t.BuyBtn = null, t.BuyBtnLabel = null, t.LoadAssetHelper = null, t.Desc = null, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySucess, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySucess, this)
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.GreatValue.string = "cashMall_tag4".ToUILocale(), this.FinishLabel.string = "intelligence_complete".ToUILocale(), this.RuleBtn.node.on("click", this.OnRule, this), this.BuyBtn.node.on("click", this.OnPay, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = u.DataCenter.Instance.ActivityConfigs[this._activityId], this._activityEndTime = h.default.Instance.ComputeDeadTime(this._activityConfig.Common), this._currenyRound = 0, this._progressLength = this.CustomProgressBar.node.width
                }, t.prototype.DisPlay = function(t) {
                    var n = this;
                    e.prototype.DisPlay.call(this, t), t || (this.SetLocaleMap(), this.SetPacks(), this.SetDeadLine(), this.RefreshUI(!0)), this._panelHind && (this.node.opacity = 0, l.UIManager.Instance.ShowUIPanel(p.PanelConfig.PiggyBankNextLevelPanel.Path, this._currenyRound + 1, this._activityConfig, function() {
                        n.RefreshUI(), n.node.opacity = 255, n._panelHind = !1
                    }, function() {
                        l.UIManager.Instance.BackUIPanel()
                    }))
                }, t.prototype.SetLocaleMap = function() {
                    this._localeMap || (this._localeMap = {});
                    for (var e = 0; e < this._activityConfig._Locale.length; e++) this._localeMap[e] = this._activityConfig._Locale[e].Content
                }, t.prototype.SetPacks = function() {
                    this._packs || (this._packs = {});
                    for (var e = 0; e < this._activityConfig._Packs.length; e++) this._packs[this._activityConfig._Packs[e].Id] = this._activityConfig._Packs[e]
                }, t.prototype.SetDeadLine = function() {
                    var e = this._activityEndTime - u.RpcComponent.Instance.ServerTime;
                    this.DeadLine.string = e < 0 ? "activityBoss_end".ToUILocale() : "Activity_LuckyBag_LeftTime".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
                }, t.prototype.RefreshUI = function(e) {
                    if (void 0 === e && (e = !1), this._activityEndTime < u.RpcComponent.Instance.ServerTime) l.UIManager.Instance.BackUIPanel();
                    else {
                        this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), !this._activityModel.IntArray || this._activityModel.IntArray.length <= 0 ? this._currenyRound = 0 : this._currenyRound = this._activityModel.IntArray[0], this._currenyRound = Math.min(this._activityConfig.Round.length - 1, this._currenyRound);
                        var t = this._activityConfig.Round[this._currenyRound],
                            n = t.GiftPackId;
                        this._isBuy = this.IsBuyGiftPack(n), !e && this._isBuy || (this.LoadAssetHelper.LoadSpriteFrame(p.BundlePath.ItemIcon + "/" + t.ShowRewardId, this.RewardIcon), this.StartCount.string = t.Progress[0].FmtCurrency(), this.EndCount.string = t.Progress[1].FmtCurrency(), this.SetLoacle(), this.LoadSprite(t.Icon), this._pack = this._packs[n], this.Discount.string = this._pack.Discount + "%", this.RefreshProgress(this._isBuy)), this.SetBuyBtn()
                    }
                }, t.prototype.SetLoacle = function() {
                    var e = this._activityConfig.Round[this._currenyRound].Desc;
                    e.length > 0 && this._localeMap[parseInt(e[0])] && (this.Title.string = this._localeMap[parseInt(e[0])]), e.length > 1 && this._localeMap[parseInt(e[1])] && (this.Desc.string = this._localeMap[parseInt(e[1])])
                }, t.prototype.IsBuyGiftPack = function(e) {
                    return this._activityModel.Packs && this._activityModel.Packs[e] && this._activityModel.Packs[e].Items && this._activityModel.Packs[e].Items.length > 0 && this._activityModel.Packs[e].Items[0] > 0
                }, t.prototype.LoadSprite = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.length < 3 ? [2] : [4, Promise.all([h.default.LoadActivityTexture(e[0]), h.default.LoadActivityTexture(e[1]), h.default.LoadActivityTexture(e[2])]).then(function(e) {
                                        var n;
                                        if (!t.isValid) return l.AssetsManager.Instance.UnloadAsset(e[0]), l.AssetsManager.Instance.UnloadAsset(e[1]), void l.AssetsManager.Instance.UnloadAsset(e[2]);
                                        t.MascotImage.spriteFrame = e[0], t.StartIcon.spriteFrame = e[1], t.EndIcon.spriteFrame = e[2], (n = t._assets).push.apply(n, e)
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.RefreshProgress = function(e) {
                    if (e) return this.CustomProgressBar.progress = 1, this.CurrenyCountNode.x = this._progressLength, this.FinishLabel.node.active = !0, this.RewardIcon.node.active = !1, void(this.CurrenyCount.node.active = !1);
                    var t = this._activityModel.IntValue,
                        n = [],
                        o = this._activityConfig.Round[this._currenyRound];
                    switch (o.Action[0]) {
                        case f.PiggyBankActionType.CostItem:
                            n.push(o.Action[2]), n.push(o.Action[3])
                    }
                    this._activityConfig.CustomPart.ResetProgress <= 0 && (t -= h.default.Instance.GetPiggyBankBeforeRoundConsumeCOunt(this._currenyRound, this._activityConfig.Round));
                    var r = Math.floor(t / n[0] * n[1]),
                        i = (r = Math.max(r, 0)) / (o.Progress[1] - o.Progress[0]);
                    i = Math.min(1, i), this._taskFinish = i >= 1, this.CustomProgressBar.progress = i, this.CurrenyCountNode.x = this._progressLength * i;
                    var a = _.default.GetItem(_.GameRecordDefine.PiggyBankRedDot);
                    i >= 1 ? (this.FinishLabel.node.active = !0, this.RewardIcon.node.active = !1, this.CurrenyCount.node.active = !1, a || _.default.SetItem(_.GameRecordDefine.PiggyBankRedDot, 1)) : (this.FinishLabel.node.active = !1, this.RewardIcon.node.active = !0, this.CurrenyCount.node.active = !0, this.CurrenyCount.string = (r + o.Progress[0]).FmtCurrency(), a && _.default.SetItem(_.GameRecordDefine.PiggyBankRedDot, 0))
                }, t.prototype.SetBuyBtn = function() {
                    this._isBuy ? (this.BuyBtnLabel.string = "bought".ToUILocale(), y.UIUtlity.OnNodeGray(this.BuyBtn.node)) : (this.BuyBtnLabel.string = this._pack.Money > 0 ? m.default.Instance.CurrencySymbol + m.default.Instance.ExchangeMoney(this._pack.Money) : "shop_buyFree".ToUILocale(), this._taskFinish ? y.UIUtlity.OffNodeGray(this.BuyBtn.node) : y.UIUtlity.OnNodeGray(this.BuyBtn.node))
                }, t.prototype.OnRule = function() {
                    var e = {
                        name: "ActivityPurchase_Rule_Name".ToUILocale(),
                        titles: ["ActivityPurchase_Rule_Title".ToUILocale()],
                        contents: ["PiggyBank_ruleContent".ToUILocale()]
                    };
                    y.UIUtlity.ShowRulePanel(e)
                }, t.prototype.OnPay = function() {
                    this._isBuy ? y.UIUtlity.ShowFloatingHint("bought".ToUILocale()) : this._activityEndTime < u.RpcComponent.Instance.ServerTime ? y.UIUtlity.ShowFloatingHint("activity_end".ToUILocale()) : this._taskFinish ? m.default.Instance.Pay(this._pack.Id, this._activityId) : y.UIUtlity.ShowFloatingHint("piggyBank_purchaseHint".ToUILocale())
                }, t.prototype.OnPaySucess = function(e) {
                    this.isValid && e.ActivityId == this._activityId && (_.default.SetItem(_.GameRecordDefine.PiggyBankRedDot, 0), this._currenyRound < this._activityConfig.Round.length - 1 ? (this.node.opacity = 0, this._panelHind = !0) : this.RefreshUI())
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._assets[e]);
                    this._assets = []
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), l.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._activityId)
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Button)], t.prototype, "RuleBtn", void 0), i([b(cc.RichText)], t.prototype, "DeadLine", void 0), i([b(cc.Label)], t.prototype, "Discount", void 0), i([b(cc.Sprite)], t.prototype, "MascotImage", void 0), i([b(sp.Skeleton)], t.prototype, "FlashEffect", void 0), i([b(cc.Label)], t.prototype, "GreatValue", void 0), i([b(cc.Label)], t.prototype, "StartCount", void 0), i([b(cc.Sprite)], t.prototype, "StartIcon", void 0), i([b(cc.Label)], t.prototype, "EndCount", void 0), i([b(cc.Sprite)], t.prototype, "EndIcon", void 0), i([b(cc.Node)], t.prototype, "CurrenyCountNode", void 0), i([b(cc.Label)], t.prototype, "CurrenyCount", void 0), i([b(cc.Sprite)], t.prototype, "RewardIcon", void 0), i([b(cc.Label)], t.prototype, "FinishLabel", void 0), i([b(g.default)], t.prototype, "CustomProgressBar", void 0), i([b(cc.Button)], t.prototype, "BuyBtn", void 0), i([b(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([b(I.default)], t.prototype, "LoadAssetHelper", void 0), i([b(cc.Label)], t.prototype, "Desc", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/LoadAssetHelper": "LoadAssetHelper"
    }],
    PinkToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6e29fZrNp9LNYbd7yEaH0XM", "PinkToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Labels = [], t.Backgrounds = [], t.DEFAULT_WIDTH = 174, t
                }
                return r(t, e), t.prototype.InitDisplay = function(e) {
                    this.Labels.forEach(function(t) {
                        t.string = e
                    })
                }, t.prototype.SetScaleX = function(e) {
                    var t = this;
                    this.Backgrounds.forEach(function(n) {
                        n.node.width = t.DEFAULT_WIDTH * e
                    }), this.node.width = this.DEFAULT_WIDTH * e
                }, i([l({
                    type: [cc.Label]
                })], t.prototype, "Labels", void 0), i([l([cc.Sprite])], t.prototype, "Backgrounds", void 0), i([s], t)
            }(cc.Toggle);
        n.default = c, cc._RF.pop()
    }, {}],
    PlayMsgComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0807dTrtjlGmamEtgK8xzps", "PlayMsgComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._datas = [], t._msgNodePool = new cc.NodePool, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    void 0 === n && (n = 3), void 0 === o && (o = .5), this._infoPrefab = e, this._interval = n, this._timeCost = o, this._waitTime = n - o - .1, this._initF = t, this.Step(), this.schedule(this.Step, this._interval)
                }, t.prototype.Render = function(e) {
                    this._datas = e
                }, t.prototype.Step = function() {
                    var e = this;
                    if (this._initF) {
                        if (this._datas.length > 0) {
                            var t = void 0;
                            (t = this._msgNodePool.size() > 0 ? this._msgNodePool.get() : cc.instantiate(this._infoPrefab)).setParent(this.node), this._initF(t, this._datas.shift()), this.node.childrenCount > 3 && this.PutMsgNode()
                        } else if (0 == this._datas.length)
                            for (var n = 0; n < this.node.childrenCount; n++) this.PutMsgNode();
                        this.node.children.forEach(function(t) {
                            cc.tween(t).delay(e._waitTime).by(e._timeCost, {
                                y: t.height * t.scale,
                                scale: -.33
                            }).start()
                        })
                    }
                }, t.prototype.PutMsgNode = function() {
                    var e = this.node.children[0];
                    e.scale = 1, e.y = 0, cc.Tween.stopAllByTarget(e), this._msgNodePool.put(e)
                }, t.prototype.onDestroy = function() {
                    this.unscheduleAllCallbacks()
                }, i([s], t)
            }(cc.Component));
        n.default = l, cc._RF.pop()
    }, {}],
    PlayerComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e8780yfMuxPXqPfkhdGlPG+", "PlayerComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PlayerIcon = null, t.PlayerFrame = null, t.PlayerId = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.PlayerIcon.spriteFrame = e, this.PlayerFrame.spriteFrame = t, this.PlayerId.string = n
                }, i([l(cc.Sprite)], t.prototype, "PlayerIcon", void 0), i([l(cc.Sprite)], t.prototype, "PlayerFrame", void 0), i([l(cc.Label)], t.prototype, "PlayerId", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    PlayerCountrySelectionListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9e21d1FsVBF/qaOjVpFa7i2", "PlayerCountrySelectionListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/CustomLayout"),
            d = e("../../Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../Components/PlayerNationalFlagComponent"),
            y = e("../../Channel/ChannelManager"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../../../Proto/Static/RpcProto"),
            I = e("../../Components/Components"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../Auxiliary/EventKeys"),
            v = e("../Components/CustomToggle"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Asia = 0] = "Asia", e[e.Europe = 1] = "Europe", e[e.NorthAmerica = 2] = "NorthAmerica", e[e.SouthAmerica = 3] = "SouthAmerica", e[e.Oceania = 4] = "Oceania", e[e.Africa = 5] = "Africa", e[e.Others = 6] = "Others", e[e.length = 7] = "length"
        })(l || (l = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Title = null, t.Tip = null, t.ScrollView = null, t.CountryIcon = null, t.ToggleContainer = null, t.ToggleScrollView = null, t.LeftArrow = null, t.RightArrow = null, t.CustomLayout = null, t.BtnOk = null, t.BtnOkLabel = null, t.BtnDefault = null, t.BtnDefaultLabel = null, t.BtnCancel = null, t.BtnCancelLabel = null, t._lineItemCount = 5, t._currentCountryArry = [], t._isFreshCurNode = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(C.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("PlayerCountrySelectionListPanel/NationalFlagComponent", cc.Prefab), n = this.LoadDynamicAsset("PlayerCountrySelectionListPanel/NationalFlagPng/NationalFlagAtlas", cc.SpriteAtlas), o = this.LoadDynamicAsset("Buttons/Toggle1", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._nationalFlagItem = e[0], r._nationalFlagAtlas = e[1], r._toggleItem = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetLabel(), this.SetToggle(), this.LeftArrow.node.on("click", this.OnLeftArrowClick, this), this.RightArrow.node.on("click", this.OnRightArrowClick, this), this.BtnOk.node.on("click", this.OnBtnOkClick, this), this.BtnDefault.node.on("click", this.OnBtnDefaultClick, this), this.BtnCancel.node.on("click", this.OnBtnCancelClick, this)
            }, t.prototype.InitData = function() {
                e.prototype.InitData.call(this), this._nationFlagConfigArry = d.ConfigDataComponent.Instance.GetArrayConfig(h.PlayerNationalFlag_Config), this.SetCountryArry(), this.CustomLayout.Init(this._nationalFlagItem)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.ShowCurrentCountry()
            }, t.prototype.SetSelectItem = function(e, t) {
                this._selectNode && this._selectNode.getComponent(f.default).SetSelectBorderState(!1), this._selectNode = t, this._selectId = e, this._selectId == this._currentCountryId ? (this.BtnOk.node.active = !1, this.BtnCancel.node.active = !0) : this._selectId != this._currentCountryId && this.BtnCancel.node.active && (this.BtnOk.node.active = !0, this.BtnCancel.node.active = !1)
            }, Object.defineProperty(t.prototype, "SelectId", {
                get: function() {
                    return this._selectId
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.SetLabel = function() {
                this.Title.string = "PlayerCountrySelection_Title".ToUILocale(), this.Tip.string = "PlayerCountrySelection_Tip".ToUILocale(), this.BtnOkLabel.string = "button_confirm".ToUILocale(), this.BtnDefaultLabel.string = "PlayerCountrySelection_DefaultBtn".ToUILocale(), this.BtnCancelLabel.string = "FavorHandbook_SetToCancel".ToUILocale()
            }, t.prototype.SetToggle = function() {
                this._toggleGroup = [];
                for (var e = 0; e < l.length; e++) {
                    var t = cc.instantiate(this._toggleItem);
                    t.getComponent(v.default).Init(("PlayerCountrySelection_toggle_" + e).ToUILocale()), t.parent = this.ToggleContainer.node, t.name = e.toString(), t.on("toggle", this.OnSwitchTab, this), this._toggleGroup.push(t.getComponent(v.default))
                }
            }, t.prototype.SetCountryArry = function() {
                var e = this;
                for (var t in this._continentConfigArry = [], this._nationFlagConfigArry.forEach(function(t) {
                        if (t.Continent) {
                            var n = l[t.Continent - 1];
                            if (e._continentConfigArry[n]) e._continentConfigArry[n].push(t);
                            else {
                                var o = [];
                                o.push(t), e._continentConfigArry[n] = o
                            }
                        }
                    }), this._continentConfigArry) this._continentConfigArry[t].sort(this.SortCountryConfig.bind(this))
            }, t.prototype.SortCountryConfig = function(e, t) {
                return e.Priority - t.Priority
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.node.name);
                (this._currentTab != t || this._isFreshCurNode) && (this._currentTab = t, this._toggleGroup[this._currentTab].isChecked = !0, this._currentCountryArry = this._continentConfigArry[l[this._currentTab]], this.CustomLayout.RenderLayOut(this._currentCountryArry.length))
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                t == this.CustomLayout && e.forEach(function(e, t) {
                    var o = e.getComponent(f.default),
                        r = n._nationalFlagAtlas.getSpriteFrame(n._currentCountryArry[t].Id);
                    e.name = n._currentCountryArry[t].Id, o.InitData(n._currentCountryArry[t].Id, r, n._selectId == n._currentCountryArry[t].Id, n)
                })
            }, t.prototype.OnLeftArrowClick = function() {
                var e = this.ToggleScrollView.getScrollOffset().x + 226;
                this.ToggleScrollView.scrollToOffset(cc.v2(-e, this.ToggleScrollView.getScrollOffset().y), .2)
            }, t.prototype.OnRightArrowClick = function() {
                var e = this.ToggleScrollView.getScrollOffset().x - 226;
                this.ToggleScrollView.scrollToOffset(cc.v2(-e, this.ToggleScrollView.getScrollOffset().y), .2)
            }, t.prototype.OnBtnOkClick = function() {
                if (this._selectId) {
                    d.DataCenter.Instance.GetIntData(_.UserDataKey.CountryShowState) && this.SetCountryShowState();
                    var e = new m.Req_Player_ChangeCountry;
                    e.Country = this._selectId, this._isSetDefault = !1, I.RpcComponent.Instance.Call(e, this.ChangeCountrySuccess.bind(this))
                } else u.UIManager.Instance.BackUIPanel()
            }, t.prototype.ChangeCountrySuccess = function() {
                var e;
                if (this._isSetDefault) e = y.default.Instance.Localization_Country, g.UIUtlity.ShowFloatingHint("PlayerCountrySelection_DefaultCountry".ToUILocale());
                else {
                    e = this._selectId;
                    var t = d.ConfigDataComponent.Instance.GetConfigById(h.PlayerNationalFlag_Config, this._selectId);
                    g.UIUtlity.ShowFloatingHint("PlayerCountrySelection_SelectCountry".ToUILocale().Fmt(t.Id.ToCountryName()))
                }
                this.CountryIcon.spriteFrame = this._nationalFlagAtlas.getSpriteFrame(e), this._selectId = null, this._isFreshCurNode = !0, this.ShowCurrentCountry(), this._isFreshCurNode = !1
            }, t.prototype.OnBtnDefaultClick = function() {
                var e = y.default.Instance.Localization_Country,
                    t = d.ConfigDataComponent.Instance.GetConfigById(h.PlayerNationalFlag_Config, e);
                if (e && t) {
                    d.DataCenter.Instance.GetIntData(_.UserDataKey.CountryShowState) && this.SetCountryShowState();
                    var n = new m.Req_Player_ChangeCountry;
                    n.Country = e, this._isSetDefault = !0, I.RpcComponent.Instance.Call(n, this.ChangeCountrySuccess.bind(this))
                } else g.UIUtlity.ShowFloatingHint("PlayerCountrySelection_DefaultCountry_None".ToUILocale())
            }, t.prototype.OnBtnCancelClick = function() {
                var e = new m.Req_Player_ChangeCountryShowState;
                e.State = 1, I.RpcComponent.Instance.Call(e, this.CancelCountrySuccess.bind(this))
            }, t.prototype.CancelCountrySuccess = function() {
                this.BtnOk.node.active = !0, this.BtnCancel.node.active = !1, this.CountryIcon.spriteFrame = null, g.UIUtlity.ShowFloatingHint("PlayerCountrySelection_CancelCountry".ToUILocale());
                var e = this._selectId;
                this._selectId = null, this._currentCountryId = null, this._isFreshCurNode = !0, this.ShowCountryNode(e), this._isFreshCurNode = !1
            }, t.prototype.SetCountryShowState = function() {
                var e = new m.Req_Player_ChangeCountryShowState;
                e.State = 0, I.RpcComponent.Instance.Call(e, null)
            }, t.prototype.ShowCountryNode = function(e) {
                var t, n = d.ConfigDataComponent.Instance.GetConfigById(h.PlayerNationalFlag_Config, e).Continent - 1;
                this.OnSwitchTab(this._toggleGroup[n]);
                for (var o = 0; o < this._currentCountryArry.length; o++)
                    if (this._currentCountryArry[o].Id == e) {
                        t = o + 1;
                        break
                    } this._itemNode = cc.instantiate(this._nationalFlagItem);
                var r = (Math.floor(t / this._lineItemCount) - 1) * (this._itemNode.height + this.CustomLayout.SpaceY);
                this.ScrollView.scrollToOffset(cc.v2(0, r), .1)
            }, t.prototype.ShowCurrentCountry = function() {
                var e = d.DataCenter.Instance.GetStringData(_.UserDataKey.Country),
                    t = d.DataCenter.Instance.GetIntData(_.UserDataKey.CountryShowState);
                e || (e = y.default.Instance.Localization_Country);
                var n = d.ConfigDataComponent.Instance.GetConfigById(h.PlayerNationalFlag_Config, e);
                e && n && !t ? (this._currentCountryId = e, this.CountryIcon.spriteFrame = this._nationalFlagAtlas.getSpriteFrame(e), this.ShowCountryNode(e)) : this.OnSwitchTab(this._toggleGroup[0])
            }, i([w(cc.Label)], t.prototype, "Title", void 0), i([w(cc.Label)], t.prototype, "Tip", void 0), i([w(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([w(cc.Sprite)], t.prototype, "CountryIcon", void 0), i([w(cc.ToggleContainer)], t.prototype, "ToggleContainer", void 0), i([w(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([w(cc.Button)], t.prototype, "LeftArrow", void 0), i([w(cc.Button)], t.prototype, "RightArrow", void 0), i([w(p.default)], t.prototype, "CustomLayout", void 0), i([w(cc.Button)], t.prototype, "BtnOk", void 0), i([w(cc.Label)], t.prototype, "BtnOkLabel", void 0), i([w(cc.Button)], t.prototype, "BtnDefault", void 0), i([w(cc.Label)], t.prototype, "BtnDefaultLabel", void 0), i([w(cc.Button)], t.prototype, "BtnCancel", void 0), i([w(cc.Label)], t.prototype, "BtnCancelLabel", void 0), i([S], t)
        }(c.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/PlayerNationalFlagComponent": "PlayerNationalFlagComponent"
    }],
    PlayerFeedBackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "94a4bGIkfVOf6cmkspVo+ht", "PlayerFeedBackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/GlobalConfigComponent"),
            p = e("../../../Consts/GameServerConsts"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Fixed, !1), t.Title = null, t.Tag = null, t.CallServerTag = null, t.CallServerContent = null, t.EditLogTag = null, t.EditLogContent = null, t.Suggest = null, t.BtnSendLog = null, t.ServerButtonNode = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "SendLog_title".ToUILocale(), this.Tag.string = "Feedback_main_tag".ToUILocale(), this.CallServerTag.string = "Feedback_call_server".ToUILocale(), this.CallServerContent.string = "Feedback_call_server_content".ToUILocale(), this.EditLogTag.string = "Feedback_edit_log".ToUILocale(), this.EditLogContent.string = "Feedback_edit_log_content".ToUILocale(), this.Suggest.string = "Feedback_restart".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSendLog.node.on("click", this.OnBtnSendLogClick, this)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || u.GlobalConfigComponent.Instance.Channel == p.GameChannels.Mainland_Check && (this.ServerButtonNode.active = !1)
                }, t.prototype.OnBtnSendLogClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.SendLogPanel.Path)
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Label)], t.prototype, "Tag", void 0), i([f(cc.Label)], t.prototype, "CallServerTag", void 0), i([f(cc.Label)], t.prototype, "CallServerContent", void 0), i([f(cc.Label)], t.prototype, "EditLogTag", void 0), i([f(cc.Label)], t.prototype, "EditLogContent", void 0), i([f(cc.Label)], t.prototype, "Suggest", void 0), i([f(cc.Button)], t.prototype, "BtnSendLog", void 0), i([f(cc.Node)], t.prototype, "ServerButtonNode", void 0), i([h], t)
            }(a.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../Consts/GameServerConsts": "GameServerConsts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent"
    }],
    PlayerInfoPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5e468rhVStK4YKqPF00UE3P", "PlayerInfoPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/UIFrame/UIPanelType"),
            u = e("../../../EZFramework/EZDefine/SysDefine"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/RpcComponent"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../Consts/Consts"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Components/DataCenter"),
            m = e("../Components/HeadComponent"),
            I = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            _ = e("../../Auxiliary/GlobalDefine"),
            C = e("../Components/ItemComponent"),
            v = e("../../../EZFramework/EZFramework"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../../../EZFramework/EZFramework"),
            w = e("../../../ShareConsts/BattleConsts"),
            P = e("../Battle/BattleManager"),
            A = e("../../Auxiliary/DataUtlity"),
            T = cc._decorator,
            R = T.ccclass,
            L = T.property,
            k = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(u.UINodeType.Fixed), t.HeadRoot = null, t.Title = null, t.ServerTag = null, t.AllianceTag = null, t.BtnBlackList = null, t.BtnBlackListLabel = null, t.BtnAddFriend = null, t.BtnAddFriendLabel = null, t.BtnChat = null, t.BtnChatLabel = null, t.BtnReport = null, t.BtnReportLabel = null, t.PlayerName = null, t.ServerName = null, t.AllianceName = null, t.FormationGrid = null, t.PowerLabel = null, t.DesignationIcon = null, t.SignatureLabel = null, t.PKLabel = null, t.PKNode = null, t.CountryLabel = null, t.CountryIcon = null, t.Content1 = null, t.Content2 = null, t.SignatureTitle = null, t.color_normal = new cc.Color(98, 78, 60), t.color_light = new cc.Color(209, 192, 165), t._playerSid = 0, t._zone = 0, t._isBusy = !1, t._headItemPrefab = null, t._headItem = null, t._commonItemPrefab = null, t._itemArray = [], t._needPkBtn = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.onEnable = function() {
                    v.Game.EventDispatcher.On(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    v.Game.EventDispatcher.Off(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.FormationGrid.node.children.indexOf(t) && S.UIManager.Instance.ShowUIPanel(_.PanelConfig.HeroDetailPanel.Path, e, this._detailInfoData.Uid, this._detailInfoData.Zone, this._detailInfoData.NotShow)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.PKLabel.string = "function_PK".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnAddFriend.node.on("click", this.OnBtnAddFriendClick, this), this.BtnBlackList.node.on("click", this.OnBtnBlackListClick, this), this.BtnReport.node.on("click", this.OnBtnReportClick, this), this.BtnChat.node.on("click", this.OnBtnChatClick, this), this.PKNode.on("click", this.OnClickPk, this), v.Game.EventDispatcher.Only(f.GameEventIds.SettleBattle.Fmt(9999), this.SettleBattle, this), v.Game.EventDispatcher.Only(f.GameEventIds.RestartBattle.Fmt(9999), this.RestartBattle, this), this.Title.string = "PlayerSetting_title".ToUILocale(), this.ServerTag.string = "PlayerSetting_server".ToUILocale(), this.AllianceTag.string = "PlayerSetting_alliance".ToUILocale(), this.BtnAddFriendLabel.string = "add_friend".ToUILocale(), this.BtnChatLabel.string = "chatting_chPrivate".ToUILocale(), this.BtnReportLabel.string = "function_duel".ToUILocale(), this.CountryLabel.string = "country".ToUILocale(), this.Content1.string = "PlayerSetting_baseInfo".ToUILocale(), this.Content2.string = "PlayerSetting_formation".ToUILocale(), this.SignatureTitle.string = "player_signature".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    this._playerSid = e[0], null != e[1] && (this._zone = e[1]), e[2] && (this._needPkBtn = e[2])
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.RequestUserDetailInfo(), this.SetBtnState(), this.SetBlackBtnState(), this.SetPKBtnState()
                }, t.prototype.RequestUserDetailInfo = function() {
                    this._isBusy = !0;
                    var e = new p.Req_Player_GetPlayerDetailInfo;
                    e.Uid = this._playerSid, e.Zone = this._zone, d.RpcComponent.Instance.Call(e, this.ResponseUserDetailInfo.bind(this), this.ResponseFailed.bind(this))
                }, t.prototype.ResponseUserDetailInfo = function(e) {
                    this._isBusy = !1, this._detailInfoData = e.Info, this.PlayerName.string = this._detailInfoData.Name, A.default.SetDesignationIcon(this._detailInfoData.Designation, this.DesignationIcon), this.ServerName.string = g.DataCenter.Instance.Zones[this._detailInfoData.Zone].Name, this.PowerLabel.string = this._detailInfoData.Power.toString();
                    var t = this.PowerLabel.string.length > 9 ? .9 : 1;
                    this.PowerLabel.node.scale = t, this._detailInfoData.AllianceName.length > 0 ? this.AllianceName.string = this._detailInfoData.AllianceName : this.AllianceName.string = "PlayerSetting_noAlliance".ToUILocale(), this.LoadPlayerHead(), this.LoadFormation(), this.SetSignature(), this.SetCountry()
                }, t.prototype.LoadPlayerHead = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return null != this._headItemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(_.BundlePath.HeadComponent, cc.Prefab)]);
                                case 1:
                                    if (e._headItemPrefab = o.sent(), !this.isValid) return I.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    return null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(m.default), this._headItem.node.parent = this.HeadRoot), t = this._detailInfoData.HeadIcon, n = this._detailInfoData.HeadFrame, this._headItem.SetUI(t, n), this._headItem.SetLevel(this._detailInfoData.Level), this._headItem.SetCountry(this._detailInfoData.Country), [2]
                            }
                        })
                    })
                }, t.prototype.LoadFormation = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, l, c;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(_.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._commonItemPrefab = s.sent(), !this.isValid) return I.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    for (t = this._detailInfoData.Formations[0].Heros.length, n = this._detailInfoData.Uid == g.DataCenter.Instance.Uid, o = 0; o < this._itemArray.length; o++) this._itemArray[o].node.active = !1;
                                    for (o = 0; o < t; o++) r = this._detailInfoData.Formations[0].Heros[o].Sid, null == this._itemArray[o] && ((i = cc.instantiate(this._commonItemPrefab).getComponent(C.ItemComponent)).node.parent = this.FormationGrid.node, this._itemArray[o] = i), this._itemArray[o].node.name = r.toString(), r > 0 ? (a = this._detailInfoData.Formations[0].Heros[o], l = g.DataCenter.Instance.GetDataById(p.HeroInfo_Model, a.HeroId), c = (c = n ? l.PersonalityStar : this._detailInfoData.HeroPersonality[a.HeroId.toString()]) || 0, this._itemArray[o].Init(a, C.ItemComponentType.HeroInfo), this._itemArray[o].SetPersonalityParam(!1, c), this._itemArray[o].node.active = !0) : this._itemArray[o].node.active = !1;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetBtnState = function() {
                    var e = g.DataCenter.Instance.GetDataById(p.UserFriend_Model, this._playerSid);
                    null != e && e.Status == y.FriendStatus.Friend ? (this.BtnAddFriend.node.active = !1, this.BtnChat.node.active = !0) : (this.BtnAddFriend.node.active = !0, this.BtnChat.node.active = !0)
                }, t.prototype.SetBlackBtnState = function() {
                    g.DataCenter.Instance.InMyBlackList(this._playerSid) ? this.BtnBlackListLabel.string = "remove_blackList".ToUILocale() : this.BtnBlackListLabel.string = "add_to_blackList".ToUILocale()
                }, t.prototype.SetSignature = function() {
                    this._detailInfoData.Signature ? this.SignatureLabel.string = this._detailInfoData.Signature : this.SignatureLabel.string = "player_no_signature".ToUILocale()
                }, t.prototype.OnBtnBlackListClick = function() {
                    var e = this;
                    this._isBusy || (g.DataCenter.Instance.InMyBlackList(this._playerSid) ? this.RequestRemoveBlackList() : h.UIUtlity.ShowHintPanel("", "friends_blackList_add_hint".ToUILocale(), "", null, "", function() {
                        e.RequestJoinBlackList()
                    }))
                }, t.prototype.RequestJoinBlackList = function() {
                    var e = new p.Req_Player_AddBlacklist;
                    e.TargetUid = this._playerSid, d.RpcComponent.Instance.Call(e, this.ResponseJoinBlackList.bind(this), this.ResponseFailed.bind(this))
                }, t.prototype.ResponseJoinBlackList = function() {
                    g.DataCenter.Instance.AddToMyBlackList(this._playerSid), this.SetBlackBtnState(), h.UIUtlity.ShowFloatingHint("friends_blackList_add_success".ToUILocale())
                }, t.prototype.RequestRemoveBlackList = function() {
                    var e = new p.Req_Player_RemoveBlacklist;
                    e.TargetUid = this._playerSid, d.RpcComponent.Instance.Call(e, this.ResponseRemoveFromBlackListSuccess.bind(this))
                }, t.prototype.ResponseRemoveFromBlackListSuccess = function() {
                    g.DataCenter.Instance.RemoveFromMyBlackList(this._playerSid), this.SetBlackBtnState(), h.UIUtlity.ShowFloatingHint("friends_blackList_remove_success".ToUILocale())
                }, t.prototype.OnBtnAddFriendClick = function() {
                    this.RequestApplyFriend()
                }, t.prototype.RequestApplyFriend = function() {
                    var e = new p.Req_Player_ApplyFriend;
                    e.TargetUid = this._playerSid, d.RpcComponent.Instance.Call(e, this.ResponseApplyFriend.bind(this), this.ResponseFailed.bind(this))
                }, t.prototype.ResponseApplyFriend = function() {
                    h.UIUtlity.ShowFloatingHint("friends_has_send_apply".ToUILocale())
                }, t.prototype.ResponseFailed = function() {
                    this._isBusy = !1
                }, t.prototype.OnBtnReportClick = function() {
                    P.BattleManager.Instance.ResumePlayBattle(9999) || this.RequestTestBattle()
                }, t.prototype.RequestTestBattle = function() {
                    var e = new p.Req_Battle_TestBattle;
                    e.MapId = 1, e.TargetUid = this._playerSid, d.RpcComponent.Instance.Call(e, this.ResponseTestBattle.bind(this))
                }, t.prototype.ResponseTestBattle = function(e) {
                    P.BattleManager.Instance.StartPlay(e.Report, null)
                }, t.prototype.SettleBattle = function() {}, t.prototype.RestartBattle = function() {
                    this.RequestTestBattle()
                }, t.prototype.RequestAdventureSettlement = function(e) {
                    if (e.Reports[0].Result == w.BattleResult.AttackerWin) {
                        var t = n.settlement_win_prefab_path;
                        A.default.Instance.ShowWinPanelWrapper(t, 1)
                    } else t = n.settlement_fail_prefab_path, A.default.Instance.ShowFailPanelWrapper(t, 1)
                }, t.prototype.OnBtnChatClick = function() {
                    var e = new p.PlayerSimpleInfo;
                    e.Uid = this._detailInfoData.Uid, e.Zone = this._detailInfoData.Zone, e.Name = this._detailInfoData.Name, e.HeadIcon = this._detailInfoData.HeadIcon, e.HeadFrame = this._detailInfoData.HeadFrame, e.Level = this._detailInfoData.Level, e.Power = this._detailInfoData.Power, S.UIManager.Instance.ShowUIPanel(_.PanelConfig.ChattingMainPanel.Path, e)
                }, t.prototype.OnClickPk = function() {
                    var e = A.default.Instance.IsGameModuleUnlock(f.GameModuleType.Rank);
                    e[0] || h.UIUtlity.ShowFloatingHint(e[1]), this._detailInfoData && n.StartBattle(this._detailInfoData)
                }, t.InitBattle = function() {
                    var e = f.MapType.FriendPK;
                    v.Game.EventDispatcher.Only(f.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), v.Game.EventDispatcher.Only(f.GameEventIds.RestartBattle.Fmt(e), n.RestartBattle, n), v.Game.EventDispatcher.Only(f.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), v.Game.EventDispatcher.Only(f.GameEventIds.CancelBattle.Fmt(e), n.CancelBattle, n)
                }, t.RestartBattle = function() {
                    n.StartBattle(n.DetailInfoData)
                }, t.StartBattle = function(e) {
                    n.DetailInfoData = e, S.UIManager.Instance.ShowUIPanel(_.PanelConfig.BattleFormationPanel.Path, function(e) {
                        n.RequestChallenge(e)
                    }, [13], {
                        PlayerDetailInfos: [n.DetailInfoData]
                    })
                }, t.RequestChallenge = function(e) {
                    var t = new p.Req_Player_FriendPK;
                    t.TargetUid = n.DetailInfoData.Uid, t.Formations = e, d.RpcComponent.Instance.Call(t, function(e) {
                        P.BattleManager.Instance.StartPlay(e.Reports, {
                            CanPlayInBackground: !1,
                            CanSkipPlay: !0
                        })
                    }.bind(this))
                }, t.SettleBattle = function(e) {
                    var t = "PlayerInfoPanel/FriendPKSettlementComponent",
                        n = new p.Req_Map_BattleSettlement;
                    n.MapType = e.MapType, d.RpcComponent.Instance.Call(n, function(n) {
                        n.StringParam && (e.SettleParams = [JSON.parse(n.StringParam)], 1 == n.Result ? v.UIManager.Instance.ShowUIPanel(_.PanelConfig.SettlementWinPanel.Path, t, e, void 0, n.Result) : v.UIManager.Instance.ShowUIPanel(_.PanelConfig.SettlementFailPanel.Path, t, e, void 0, n.Result))
                    })
                }, t.CancelBattle = function(e) {
                    var t = new p.Req_Map_CancelChallenge;
                    t.MapType = e.MapType, d.RpcComponent.Instance.Call(t, null)
                }, t.prototype.SetPKBtnState = function() {
                    var e = A.default.Instance.IsGameModuleUnlock(f.GameModuleType.FriendPK);
                    this.PKNode.active = e[0] && this._needPkBtn
                }, t.prototype.SetCountry = function() {
                    this._detailInfoData.Country ? (this.CountryIcon.node.active = !0, h.UIUtlity.SetCountrySpriteFrame(this.CountryIcon, this._detailInfoData.Country)) : this.CountryIcon.node.active = !1
                }, t.settlement_win_prefab_path = "TestBattle/TestSuccessSettlementComponent", t.settlement_fail_prefab_path = "SettlementPanel/CommonFailSettlementComponent", i([L(cc.Node)], t.prototype, "HeadRoot", void 0), i([L(cc.Label)], t.prototype, "Title", void 0), i([L(cc.Label)], t.prototype, "ServerTag", void 0), i([L(cc.Label)], t.prototype, "AllianceTag", void 0), i([L(cc.Button)], t.prototype, "BtnBlackList", void 0), i([L(cc.Label)], t.prototype, "BtnBlackListLabel", void 0), i([L(cc.Button)], t.prototype, "BtnAddFriend", void 0), i([L(cc.Label)], t.prototype, "BtnAddFriendLabel", void 0), i([L(cc.Button)], t.prototype, "BtnChat", void 0), i([L(cc.Label)], t.prototype, "BtnChatLabel", void 0), i([L(cc.Button)], t.prototype, "BtnReport", void 0), i([L(cc.Label)], t.prototype, "BtnReportLabel", void 0), i([L(cc.Label)], t.prototype, "PlayerName", void 0), i([L(cc.Label)], t.prototype, "ServerName", void 0), i([L(cc.Label)], t.prototype, "AllianceName", void 0), i([L(cc.Layout)], t.prototype, "FormationGrid", void 0), i([L(cc.Label)], t.prototype, "PowerLabel", void 0), i([L(cc.Sprite)], t.prototype, "DesignationIcon", void 0), i([L(cc.Label)], t.prototype, "SignatureLabel", void 0), i([L(cc.Label)], t.prototype, "PKLabel", void 0), i([L(cc.Node)], t.prototype, "PKNode", void 0), i([L(cc.Label)], t.prototype, "CountryLabel", void 0), i([L(cc.Sprite)], t.prototype, "CountryIcon", void 0), i([L(cc.Label)], t.prototype, "Content1", void 0), i([L(cc.Label)], t.prototype, "Content2", void 0), i([L(cc.Label)], t.prototype, "SignatureTitle", void 0), n = i([R], t)
            }(l.BaseUIPanel);
        n.default = k, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZDefine/SysDefine": "SysDefine",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../EZFramework/UIFrame/UIPanelType": "UIPanelType",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleManager": "BattleManager",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PlayerLevelUpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0251ayJ1OlGWY2qcNcaBU7k", "PlayerLevelUpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/DataCenter"),
            p = e("../../../Consts/Consts"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../Components/DisplayRewardsComponent"),
            y = e("../../Components/ConfigData/ConfigDataComponent"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../Components/HeadComponent"),
            I = e("../../../Consts/Consts"),
            _ = e("../../Channel/ChannelManager"),
            C = e("../../Auxiliary/DataUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Independent, !1, !1), t.OldLevelLabel = null, t.CurrLevelLabel = null, t.Content = null, t.Tag = null, t.HeadRoot = null, t._headItemPrefab = null, t._headItem = null, t._rewardComponent = null, t._rewardData = [], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tag.string = "idleBattle_gradeUp_tag".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    this._oldPlayerLevel = e[0], this._currPlayerLevel = u.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.PlayAudioEffect(), this.SetLevelLabel(), this.LoadRewardData(), this.RenderContent(), this.LoadPlayerHead(), _.default.Instance.PostMessage(_.ActionType.Levelup)
                }, t.prototype.PlayAudioEffect = function() {
                    var e = C.default.Instance.GetAudioRandomNumByType(p.RandomAudioType.PlayerLevelUp);
                    g.AudioManager.Instance.PlayEffect(e)
                }, t.prototype.SetLevelLabel = function() {
                    this.OldLevelLabel.string = "Lv." + this._oldPlayerLevel, this.CurrLevelLabel.string = "Lv." + this._currPlayerLevel
                }, t.prototype.LoadRewardData = function() {
                    for (var e = this, t = new Map, n = this._oldPlayerLevel + 1; n <= this._currPlayerLevel; n++) {
                        var o = y.ConfigDataComponent.Instance.GetConfigById(h.PlayerLevel_Config, n).Rewards;
                        this._rewardData = [];
                        for (var r = 0; r < o.length; r++) {
                            var i = o[r].Items[0],
                                a = o[r].Items[1];
                            if (t.has(i)) {
                                var s = t.get(i);
                                s += a, t.set(i, s)
                            } else t.set(i, a)
                        }
                    }
                    var l = 0;
                    t.forEach(function(t, n) {
                        e._rewardData = [], e._rewardData[l] = {
                            ItemId: n,
                            Count: t
                        }, l++
                    })
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(d.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (e._displayRewardPrefab = n.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    n.label = 2;
                                case 2:
                                    return null == this._rewardComponent && (t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(f.DisplayRewardsComponent), this.Content.addChild(this._rewardComponent.node)), this._rewardComponent.Init(this._rewardData, this.Content.height), this._rewardComponent.DisableItemTip(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadPlayerHead = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != this._headItemPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(d.BundlePath.HeadComponent, cc.Prefab)]);
                                case 1:
                                    if (e._headItemPrefab = r.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    return null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(m.default), this._headItem.node.parent = this.HeadRoot), t = u.DataCenter.Instance.GetIntData(I.UserDataKey.HeadIcon), n = u.DataCenter.Instance.GetIntData(I.UserDataKey.HeadFrame), o = u.DataCenter.Instance.GetIntData(I.UserDataKey.Title), this._headItem.SetUI(t, n, o), [2]
                            }
                        })
                    })
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.Content.destroyAllChildren()
                }, i([S(cc.Label)], t.prototype, "OldLevelLabel", void 0), i([S(cc.Label)], t.prototype, "CurrLevelLabel", void 0), i([S(cc.Node)], t.prototype, "Content", void 0), i([S(cc.Label)], t.prototype, "Tag", void 0), i([S(cc.Node)], t.prototype, "HeadRoot", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Components/DisplayRewardsComponent": "DisplayRewardsComponent",
        "../Components/HeadComponent": "HeadComponent"
    }],
    PlayerNamingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4842a5H0A1I9otEruZgo2Xb", "PlayerNamingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../ShareConsts/EnumType"),
            f = e("../../Components/DataCenter"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Components/RpcComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.Tag = null, t.NameEditorBox = null, t.HolderLabel = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t.CurrencyIcon = null, t.CurrencyCount = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "ChangeName_title".ToUILocale(), this.Tag.string = "ChangeName_tag".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadUserData(), this.LoadGlobalSetting(), this.LoadLevelParams(), this.LoadCurrency()
                }, t.prototype.LoadUserData = function() {
                    this._currChangeCount = f.DataCenter.Instance.GetIntData(h.UserDataKey.RenameCount), this._oldRoleName = f.DataCenter.Instance.GetStringData(h.UserDataKey.RoleName)
                }, t.prototype.LoadGlobalSetting = function() {
                    this._nameMinLen = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("PlayerRoleNameMinChars"), this._nameMaxLen = d.ConfigDataComponent.Instance.GetGlobalSettingByKey("PlayerRoleNameMaxChars")
                }, t.prototype.LoadLevelParams = function() {
                    var e = d.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, h.LevelParamType.PersonalInfoRenamePrice);
                    this._nameChangeCost = e.Data, this._currCost = -1;
                    for (var t = 0; t < this._nameChangeCost.length; t++)
                        if (this._currChangeCount <= t) {
                            this._currCost = this._nameChangeCost[t];
                            break
                        } - 1 == this._currCost && (this._currCost = this._nameChangeCost[this._nameChangeCost.length - 1])
                }, t.prototype.LoadCurrency = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = _.default.Instance.GetItemPathById(h.CommonItemId.Diamond), [4, this.LoadDynamicAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this.CurrencyIcon.spriteFrame = t, this.CurrencyCount.string = this._currCost.toString(), [2]) : (c.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUI()
                }, t.prototype.SetUI = function() {
                    this.HolderLabel.string = "ChangeName_editbox_holder_label".ToUILocale().Fmt(this._nameMinLen, this._nameMaxLen)
                }, t.prototype.OnBtnCancelClick = function() {
                    y.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnSureClick = function() {
                    var e = this;
                    if (y.EZLog.Log(this.NameEditorBox.string), this.NameEditorBox.string != this._oldRoleName)
                        if (this.NameEditorBox.string.length < this._nameMinLen) g.UIUtlity.ShowFloatingHint("ChangeName_hint_tooshort".ToUILocale());
                        else if (this.NameEditorBox.string.length > this._nameMaxLen) g.UIUtlity.ShowFloatingHint("ChangeName_hint_toolong".ToUILocale());
                    else if (f.DataCenter.Instance.IsItemEnough(h.CommonItemId.Diamond, this._currCost)) {
                        var t = "ChangeName_need_change".ToUILocale().Fmt(this._currCost, h.CommonItemId.Diamond.ToItemName());
                        g.UIUtlity.ShowHintPanel("", t, "", null, "", function() {
                            e.RequestChangeName()
                        })
                    } else g.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(h.CommonItemId.Diamond.ToItemName()));
                    else g.UIUtlity.ShowFloatingHint("ChangeName_hint_samename".ToUILocale())
                }, t.prototype.RequestChangeName = function() {
                    var e = new p.Req_Player_Rename;
                    e.RoleName = this.NameEditorBox.string, m.RpcComponent.Instance.Call(e, this.ResponseChangeNameSuccess.bind(this))
                }, t.prototype.ResponseChangeNameSuccess = function() {
                    c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_NAMING_SUCCESS), g.UIUtlity.ShowFloatingHint("ChangeName_change_success".ToUILocale()), y.UIManager.Instance.BackUIPanel()
                }, i([b(cc.Label)], t.prototype, "Title", void 0), i([b(cc.Label)], t.prototype, "Tag", void 0), i([b(cc.EditBox)], t.prototype, "NameEditorBox", void 0), i([b(cc.Label)], t.prototype, "HolderLabel", void 0), i([b(cc.Button)], t.prototype, "BtnCancel", void 0), i([b(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([b(cc.Button)], t.prototype, "BtnSure", void 0), i([b(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([b(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([b(cc.Label)], t.prototype, "CurrencyCount", void 0), i([v], t)
            }(l.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    PlayerNationalFlagComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "52a1fCFLBpLMbhXqSWSyzBa", "PlayerNationalFlagComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../ShareConsts/EnumType"),
            s = e("../../Channel/ChannelManager"),
            l = e("../../Components/DataCenter"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UnSelectBorder = null, t.SelectBorder = null, t.FlagIcon = null, t.SelectFlagNode = null, t.SelectFlagLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnItemClick, this)
                }, t.prototype.InitData = function(e, t, n, o) {
                    this._id = e, this._flagIcon = t, this.FlagIcon.spriteFrame = this._flagIcon, this.UnSelectBorder.active = !n, this.SelectBorder.active = n, this._playerCountrySelectionListPanel = o, this.SetNowTipFlag()
                }, t.prototype.SetSelectBorderState = function(e) {
                    this.UnSelectBorder.active = !e, this.SelectBorder.active = e
                }, t.prototype.OnItemClick = function() {
                    this._selectId = this._playerCountrySelectionListPanel.SelectId, this._selectId != this._id && (this._selectId = this._id, this._playerCountrySelectionListPanel.SetSelectItem(this._selectId, this.node), this.SelectBorder.active = !0)
                }, t.prototype.SetNowTipFlag = function() {
                    var e = this.GetCountryId(),
                        t = l.DataCenter.Instance.GetIntData(a.UserDataKey.CountryShowState);
                    this._id != e || t ? this.SelectFlagNode.active = !1 : (this.SelectFlagNode.active = !0, this.SelectFlagLabel.string = "PlayerCountrySelection_SelectTip".ToUILocale())
                }, t.prototype.GetCountryId = function() {
                    var e = l.DataCenter.Instance.GetStringData(a.UserDataKey.Country);
                    return e || (e = s.default.Instance.Localization_Country), e
                }, i([p(cc.Node)], t.prototype, "UnSelectBorder", void 0), i([p(cc.Node)], t.prototype, "SelectBorder", void 0), i([p(cc.Sprite)], t.prototype, "FlagIcon", void 0), i([p(cc.Node)], t.prototype, "SelectFlagNode", void 0), i([p(cc.Label)], t.prototype, "SelectFlagLabel", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter"
    }],
    PlayerSettingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3992bnsvE9AWLRgPx8qXJEc", "PlayerSettingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/DataCenter"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../../EZFramework/EZFramework"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemComponent"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../../ShareConsts/BattleConsts"),
            m = e("../../Components/RpcComponent"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../Components/HeadComponent"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../../Channel/ChannelManager"),
            b = e("../../Components/Components"),
            S = e("../../../../Proto/Static/ConfigProto"),
            w = e("../Auxiliary/UIUtlity"),
            P = e("../../../Util/TimeUtil"),
            A = e("./MainUIPanel"),
            T = e("../../Auxiliary/DataUtlity"),
            R = e("../../Auxiliary/GuideManager"),
            L = e("../../Auxiliary/ModuleGuideManager"),
            k = e("./AccountInfoPanel"),
            O = e("../../../Consts/Consts"),
            M = e("../../Components/Components"),
            D = e("../Components/CustomProgressBar"),
            B = cc._decorator,
            N = B.ccclass,
            E = B.property,
            U = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.BaseInfoTag = null, t.LevelTag = null, t.UIDTag = null, t.AllianceTag = null, t.ServerTag = null, t.FormationTag = null, t.QuitGameBtnLabel = null, t.FeedbackBtnLabel = null, t.GiftCodeBtnLabel = null, t.SystemSettingBtnLabel = null, t.NoTitleTag = null, t.HeadRoot = null, t.NoTitle = null, t.BtnHeadSetting = null, t.BtnRenown = null, t.BtnChangeName = null, t.BtnQuitGame = null, t.BtnDiscord = null, t.BtnFeedBack = null, t.BtnGiftCode = null, t.BtnSystemSetting = null, t.PlayerNameLabel = null, t.PlayerRenownLabel = null, t.PlayerPowerLabel = null, t.PlayerCountry = null, t.PlayerUidLabel = null, t.PlayerGuildLabel = null, t.PlayerServerLabel = null, t.FormationGrid = null, t.PlayerLvLabel = null, t.PlayerExpLabel = null, t.ExpProgressBar = null, t.CopyButton = null, t.UTC = null, t.LocaleKeyBtn = null, t.LocaleKeyBtnLabel = null, t.CustomBtn = null, t.CustomBtnLabel = null, t.SnsConnectionBtn = null, t.SnsConnectionLabel = null, t.CountryButton = null, t.CountryNode = null, t.SignatureTitleLabel = null, t.SignatureLabel = null, t.SignatureButton = null, t.VNAccountNode = null, t.BtnLayoutNode = null, t._commonItemPrefab = null, t._headItemPrefab = null, t._headItem = null, t._myAdventureFormation = null, t._itemArray = [], t._accountBtnLabels = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this), c.Game.EventDispatcher.On(I.EventKeys.EVENT_VISITORBIND_SUCCESS, this.OnAccountSettingBtnClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(I.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_REFRESH_GUIDE_MODULE, this.ShowModuleGuide, this), c.Game.EventDispatcher.Off(I.EventKeys.EVENT_VISITORBIND_SUCCESS, this.OnAccountSettingBtnClick, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.FormationGrid.node.children.indexOf(t) && d.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroDetailPanel.Path, e, null, null)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset(h.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        r._commonItemPrefab = e[0], r._headItemPrefab = e[1]
                                    })];
                                case 1:
                                    return i.sent(), v.default.Instance.IsVNChannel() || v.default.Instance.IsMainlandCheckChannel() ? (o = this, [4, this.LoadDynamicAsset("LoginPanel/Png/VNAccountAtlas", cc.SpriteAtlas)]) : [3, 3];
                                case 2:
                                    o._vnAccountAtlas = i.sent(), i.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.CheckIsLive = function() {
                    return v.default.Instance.IsVNChannel() ? M.GlobalConfigComponent.Instance.ServerAddress == O.GameServerAddresses.VnLive : M.GlobalConfigComponent.Instance.Channel == O.GameChannels.Mainland_Check || v.default.Instance.IsG123Live()
                }, t.prototype.InitUI = function() {
                    if (e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent(), this.CheckIsLive() ? this.LocaleKeyBtn.node.active = !1 : (this.LocaleKeyBtn.node.active = !0, this.SetLocaleBtnLabel()), v.default.Instance.IsMainlandCheckChannel() && (this.BtnDiscord.node.active = !1, this.SnsConnectionBtn.node.active = !1, this.VNAccountNode.active = !0, 1 == this.VNAccountNode.childrenCount)) {
                        var t = cc.instantiate(this.BtnSystemSetting.node);
                        t.setParent(this.VNAccountNode), t.x = 0, cc.find("Background/Label", t).getComponent(cc.Label).string = "PlayerSetting_VNAccount".ToUILocale(), t.on("click", this.OnAccountSettingBtnClick, this)
                    }
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "PlayerSetting_title".ToUILocale(), this.BaseInfoTag.string = "PlayerSetting_baseInfo".ToUILocale(), this.LevelTag.string = "country".ToUILocale(), this.UIDTag.string = "uid".ToUILocale(), this.AllianceTag.string = "PlayerSetting_alliance".ToUILocale(), this.ServerTag.string = "PlayerSetting_server".ToUILocale(), this.FormationTag.string = "formation_toggle_0".ToUILocale(), this.QuitGameBtnLabel.string = "PlayerSetting_logout".ToUILocale(), this.FeedbackBtnLabel.string = "SendLog_title".ToUILocale(), this.GiftCodeBtnLabel.string = "PlayerSetting_giftCode".ToUILocale(), this.SystemSettingBtnLabel.string = "PlayerSetting_systemSetting".ToUILocale(), this.NoTitleTag.string = "PlayerSetting_noTitle".ToUILocale(), this.CustomBtnLabel.string = "Personalise_title".ToUILocale(), this.SnsConnectionLabel.string = "PlayerSetting_sns".ToUILocale(), this.SignatureTitleLabel.string = "player_signature".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnHeadSetting.node.on("click", this.OnBtnHeadSettingClick, this), this.BtnRenown.node.on("click", this.OnBtnRenownClick, this), this.BtnChangeName.node.on("click", this.OnBtnChangeNameClick, this), this.BtnQuitGame.node.on("click", this.OnBtnQuitGameClick, this), this.BtnFeedBack.node.on("click", this.OnBtnFeedBackClick, this), this.BtnGiftCode.node.on("click", this.OnBtnGiftCodeClick, this), this.BtnSystemSetting.node.on("click", this.OnBtnSystemSettingClick, this), this.CopyButton.node.on("click", this.OnCopyButtonClick, this), this.BtnDiscord.node.on("click", this.OnGoToDiscord, this), this.LocaleKeyBtn.node.on("click", this.OnShowLocaleKey, this), this.CustomBtn.node.on("click", this.OnCustomMainScene, this), this.SnsConnectionBtn.node.on("click", this.OnSnsConnecion, this), this.CountryButton.node.on("click", this.OnCountryButtonClick, this), this.SignatureButton.node.on("click", this.OnSignatureButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._snsOpenState = T.default.Instance.IsGameModuleOpen(O.GameModuleType.SNSConnection) && T.default.Instance.IsGameModuleUnlock(O.GameModuleType.SNSConnection)[0]
                }, t.prototype.BindRedDot = function() {
                    C.RedDotManager.Instance.Bind(this.HeadRoot, C.RedDotManager.Instance.RedDot.PlayerSettingHeadNode, 15, 15), C.RedDotManager.Instance.Bind(this.CustomBtn.node, C.RedDotManager.Instance.RedDot.CustomizeMainSceneNode), this._snsOpenState && C.RedDotManager.Instance.Bind(this.SnsConnectionBtn.node, C.RedDotManager.Instance.RedDot.SNSRewardEntry)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.SnsConnectionBtn.node.active = this._snsOpenState, this.BtnGiftCode.node.active = T.default.Instance.IsGameModuleOpen(O.GameModuleType.GiftCode) && T.default.Instance.IsGameModuleUnlock(O.GameModuleType.GiftCode)[0]), this.SetHead(), this.SetPlayerBaseInfo(), this.SetFormationShow(), this.SetUTCTime(), this.SetSignature(), this.BindRedDot(), this.ShowModuleGuide()
                }, t.prototype.SetHead = function() {
                    null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(_.default), this._headItem.node.parent = this.HeadRoot);
                    var e = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon),
                        t = u.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame),
                        n = u.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel);
                    this._headItem.SetUI(e, t), this._headItem.SetLevel(n);
                    var o = u.DataCenter.Instance.GetIntData(p.UserDataKey.Title);
                    o > 0 ? (this._headItem.SetTitleIcon(o), this.NoTitle.active = !1) : this.NoTitle.active = !0
                }, t.prototype.SetPlayerBaseInfo = function() {
                    var e = u.DataCenter.Instance.GetStringData(p.UserDataKey.RoleName),
                        t = u.DataCenter.Instance.GetIntData(p.UserDataKey.VipLevel),
                        n = u.DataCenter.Instance.GetIntData(p.UserDataKey.Power),
                        o = u.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel),
                        r = u.DataCenter.Instance.Uid,
                        i = u.DataCenter.Zone;
                    if (this.PlayerNameLabel.string = e, this.PlayerRenownLabel.string = t.toString(), this.PlayerPowerLabel.string = n.toString(), this.PlayerUidLabel.string = r.toString(), M.GlobalConfigComponent.Instance.Channel == O.GameChannels.Mainland_Check) this.CountryNode.active = !1;
                    else {
                        var a = void 0;
                        (a = u.DataCenter.Instance.GetStringData(p.UserDataKey.Country)) || (a = v.default.Instance.Localization_Country), a = 0 == u.DataCenter.Instance.GetIntData(p.UserDataKey.CountryShowState) ? a : "", w.UIUtlity.SetCountrySpriteFrame(this.PlayerCountry, a)
                    }
                    u.DataCenter.Zone != u.DataCenter.OriginalZone ? this.PlayerServerLabel.string = "zoneHint".ToUILocale().Fmt(u.DataCenter.Instance.Zones[i].Name, u.DataCenter.Instance.Zones[u.DataCenter.OriginalZone].Name) : this.PlayerServerLabel.string = u.DataCenter.Instance.Zones[i].Name, this.PlayerLvLabel.string = "Lv." + o.toString();
                    var s = this.GetExpData(),
                        l = s.curExp / s.maxExp >= 0 ? s.curExp / s.maxExp : 0;
                    this.PlayerExpLabel.string = s.curExp.FmtCurrency() + "/" + s.maxExp.FmtCurrency(), this.ExpProgressBar.progress = l, u.DataCenter.Instance.AllianceId > 0 ? this.GetMyAllianceInfo() : this.PlayerGuildLabel.string = "PlayerSetting_noAlliance".ToUILocale()
                }, t.prototype.GetExpData = function() {
                    var e = {},
                        t = u.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel),
                        n = t + 1,
                        o = u.DataCenter.Instance.GetItemCount(p.CommonItemId.Xp),
                        r = b.ConfigDataComponent.Instance.GetConfigById(S.PlayerLevel_Config, t),
                        i = b.ConfigDataComponent.Instance.GetConfigById(S.PlayerLevel_Config, n);
                    if (r)
                        if (e.curExp = o - r.Xp, i) e.maxExp = i.Xp - r.Xp;
                        else {
                            var a = t - 1,
                                s = b.ConfigDataComponent.Instance.GetConfigById(S.PlayerLevel_Config, a);
                            e.maxExp = r.Xp - s.Xp, e.curExp = r.Xp - s.Xp
                        } return e
                }, t.prototype.GetMyAllianceInfo = function() {
                    var e = new y.Req_Alliance_GetMyAlliance;
                    m.RpcComponent.Instance.Call(e, this.OnCallBackFromGetMyAllianceInfo.bind(this))
                }, t.prototype.OnCallBackFromGetMyAllianceInfo = function(e) {
                    this.isValid && (this.PlayerGuildLabel.string = e.Name)
                }, t.prototype.SetFormationShow = function() {
                    this._myAdventureFormation = u.DataCenter.Instance.GetDataById(y.UserFormation_Model, g.FormationIdType.MainLine);
                    for (var e = this._myAdventureFormation.HeroIds.length, t = 0; t < this._itemArray.length; t++) this._itemArray[t].node.active = !1;
                    for (t = 0; t < e; t++) {
                        var n = this._myAdventureFormation.HeroIds[t];
                        if (null == this._itemArray[t]) {
                            var o = cc.instantiate(this._commonItemPrefab).getComponent(f.ItemComponent);
                            o.node.name = n.toString(), o.node.parent = this.FormationGrid.node, this._itemArray[t] = o
                        }
                        if (n > 0) {
                            var r = u.DataCenter.Instance.GetDataById(y.UserHero_Model, n),
                                i = u.DataCenter.Instance.GetDataById(y.HeroInfo_Model, r.HeroId);
                            i && i.PersonalityStar && i.PersonalityStar, this._itemArray[t].Init(r, f.ItemComponentType.HeroInfo), this._itemArray[t].node.active = !0
                        } else this._itemArray[t].node.active = !1
                    }
                }, t.prototype.OnBtnHeadSettingClick = function() {
                    d.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeadPersonalisePanel.Path)
                }, t.prototype.OnBtnRenownClick = function() {
                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.FamePriviledgePanel.Path)
                }, t.prototype.OnBtnChangeNameClick = function() {
                    d.UIManager.Instance.ShowUIPanel(h.PanelConfig.PlayerNamingPanel.Path)
                }, t.prototype.OnBtnQuitGameClick = function() {
                    d.UIManager.Instance.ShowUIPanel(h.PanelConfig.ServerSelectPanel.Path)
                }, t.prototype.OnBtnFeedBackClick = function() {
                    v.default.Instance.CustomerServiceFeedback()
                }, t.prototype.OnBtnGiftCodeClick = function() {
                    d.UIManager.Instance.ShowUIPanel(h.PanelConfig.GiftCodePanel.Path)
                }, t.prototype.OnBtnSystemSettingClick = function() {
                    d.UIManager.Instance.ShowUIPanel(h.PanelConfig.SystemSettingPanel.Path)
                }, t.prototype.OnCopyButtonClick = function() {
                    var e = u.DataCenter.Instance.Uid;
                    this.Copy(e.toString()), w.UIUtlity.ShowFloatingHint("copy_success".ToUILocale())
                }, t.prototype.Copy = function(e) {
                    var t = function(t) {
                        t.clipboardData.setData("text/plain", e), t.preventDefault()
                    };
                    document.addEventListener("copy", t), document.execCommand("copy"), document.removeEventListener("copy", t)
                }, t.prototype.SetUTCTime = function() {
                    var e = this;
                    this.UTC.string = "(UTC+" + P.TimeUtil.GetTimeZoneInfo().offset / 3600 + ") " + A.default.UTCTimeStr, this.schedule(function() {
                        e.UTC.string = "(UTC+" + P.TimeUtil.GetTimeZoneInfo().offset / 3600 + ") " + A.default.UTCTimeStr
                    }, 1)
                }, t.prototype.SetSignature = function() {
                    var e = u.DataCenter.Instance.GetStringData(p.UserDataKey.Signature);
                    e ? (this.SignatureLabel.string = e, this.SignatureLabel.node.color = new cc.Color(98, 78, 60)) : (this.SignatureLabel.string = "player_set_signature".ToUILocale(), this.SignatureLabel.node.color = new cc.Color(187, 187, 187))
                }, t.prototype.OnGoToDiscord = function() {
                    cc.sys.openURL("https://discord.gg/rfNqQdvUJn")
                }, t.prototype.OnShowLocaleKey = function() {
                    b.ConfigDataComponent.ShowLocaleKey ? b.ConfigDataComponent.ShowLocaleKey = !1 : b.ConfigDataComponent.ShowLocaleKey = !0, this.SetLocaleBtnLabel()
                }, t.prototype.SetLocaleBtnLabel = function() {
                    b.ConfigDataComponent.ShowLocaleKey ? this.LocaleKeyBtnLabel.string = "Off Locale Key" : this.LocaleKeyBtnLabel.string = "Show Locale Key"
                }, t.prototype.OnCustomMainScene = function() {
                    var e = T.default.Instance.IsGameModuleUnlock(p.GameModuleType.CustomizeMainScene);
                    e[0] ? d.UIManager.Instance.ShowUIPanel(h.PanelConfig.CustomizeMainScenePanel.Path) : w.UIUtlity.ShowFloatingHint(e[1])
                }, t.prototype.OnSnsConnecion = function() {
                    var e = u.DataCenter.Instance.GetIntData(p.UserDataKey.SnsRewards);
                    if (e && 1 != e) d.UIManager.Instance.ShowUIPanel(h.PanelConfig.SnsConnectionPanel.Path);
                    else {
                        var t = new y.Req_Player_SnsReward;
                        m.RpcComponent.Instance.Call(t, function() {
                            d.UIManager.Instance.ShowUIPanel(h.PanelConfig.SnsConnectionPanel.Path)
                        })
                    }
                }, t.prototype.OnCountryButtonClick = function() {
                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.PlayerCountrySelectionListPanel.Path)
                }, t.prototype.OnSignatureButtonClick = function() {
                    if (c.UIManager.Instance.ShowUIPanel(h.PanelConfig.PlayerSignaturePanel.Path), L.default.instance.CheckNeedRequestGameModule(p.GameModuleType.PersonalSignature)) {
                        var e = new y.Req_Player_CompleteGameModuleGuide;
                        e.Id = p.GameModuleType.PersonalSignature, m.RpcComponent.Instance.Call(e, function() {
                            c.Game.EventDispatcher.Emit(I.EventKeys.EVENT_REFRESH_GUIDE_MODULE)
                        })
                    }
                }, t.prototype.ShowModuleGuide = function() {
                    if (!R.default.Instance.IsInGuide) {
                        var e = L.default.instance.GetNextGuideModule();
                        e > 0 && e == p.GameModuleType.PersonalSignature ? L.default.instance.AddFingerNode(this.SignatureButton.node) : L.default.instance.RemoveFingerNode(this.SignatureButton.node)
                    }
                }, t.prototype.OnAccountSettingBtnClick = function() {
                    if (this.BtnLayoutNode.active) this.BtnLayoutNode.active = !1;
                    else {
                        this.BtnLayoutNode.active = !0, 0 == this.BtnLayoutNode.childrenCount && (this.BtnLayoutNode.getComponent(cc.Sprite).spriteFrame = this._vnAccountAtlas.getSpriteFrame("bg1"), this.CreateBtnNode(this.VNAccountNode.children[1], this.BtnLayoutNode, this.OnBindAccountBtnClick), this.CreateBtnNode(this.VNAccountNode.children[1], this.BtnLayoutNode, this.OnSwitchAccountBtnClick), this._accountBtnLabels[0] = cc.find("Background/Label", this.BtnLayoutNode.children[0]).getComponent(cc.Label), this._accountBtnLabels[1] = cc.find("Background/Label", this.BtnLayoutNode.children[1]).getComponent(cc.Label));
                        var e = void 0;
                        switch (v.default.Instance.StorageAccountInfo.Current.Type) {
                            case p.EZUserAccountType.Visitor:
                                e = ["Vietnam_BindAccount", "Vietnam_SwitchAccount"];
                                break;
                            case p.EZUserAccountType.Google:
                                e = [null, "Vietnam_SwitchAccount"];
                                break;
                            case p.EZUserAccountType.Normal:
                                e = ["AccountInfoPanelTitle_ChangePassword", "Vietnam_SwitchAccount"]
                        }
                        for (var t = 0; t < this._accountBtnLabels.length; t++) e[t] ? (this.BtnLayoutNode.children[t].active = !0, this._accountBtnLabels[t].string = e[t].ToUILocale()) : this.BtnLayoutNode.children[t].active = !1
                    }
                }, t.prototype.OnBindAccountBtnClick = function() {
                    v.default.Instance.StorageAccountInfo.Current.Type == p.EZUserAccountType.Visitor ? d.UIManager.Instance.ShowUIPanel(h.PanelConfig.AccountInfoPanel.Path, !0, k.OperationType.BindAccount) : d.UIManager.Instance.ShowUIPanel(h.PanelConfig.AccountInfoPanel.Path, !0, k.OperationType.ChangePassword)
                }, t.prototype.OnSwitchAccountBtnClick = function() {
                    d.UIManager.Instance.ShowUIPanel(h.PanelConfig.AccountInfoPanel.Path, !0, k.OperationType.SwitchAccount)
                }, t.prototype.CreateBtnNode = function(e, t, n) {
                    var o = cc.instantiate(e);
                    o.setParent(t), o.on("click", n, this)
                }, i([E(cc.Label)], t.prototype, "Title", void 0), i([E(cc.Label)], t.prototype, "BaseInfoTag", void 0), i([E(cc.Label)], t.prototype, "LevelTag", void 0), i([E(cc.Label)], t.prototype, "UIDTag", void 0), i([E(cc.Label)], t.prototype, "AllianceTag", void 0), i([E(cc.Label)], t.prototype, "ServerTag", void 0), i([E(cc.Label)], t.prototype, "FormationTag", void 0), i([E(cc.Label)], t.prototype, "QuitGameBtnLabel", void 0), i([E(cc.Label)], t.prototype, "FeedbackBtnLabel", void 0), i([E(cc.Label)], t.prototype, "GiftCodeBtnLabel", void 0), i([E(cc.Label)], t.prototype, "SystemSettingBtnLabel", void 0), i([E(cc.Label)], t.prototype, "NoTitleTag", void 0), i([E(cc.Node)], t.prototype, "HeadRoot", void 0), i([E(cc.Node)], t.prototype, "NoTitle", void 0), i([E(cc.Button)], t.prototype, "BtnHeadSetting", void 0), i([E(cc.Button)], t.prototype, "BtnRenown", void 0), i([E(cc.Button)], t.prototype, "BtnChangeName", void 0), i([E(cc.Button)], t.prototype, "BtnQuitGame", void 0), i([E(cc.Button)], t.prototype, "BtnDiscord", void 0), i([E(cc.Button)], t.prototype, "BtnFeedBack", void 0), i([E(cc.Button)], t.prototype, "BtnGiftCode", void 0), i([E(cc.Button)], t.prototype, "BtnSystemSetting", void 0), i([E(cc.Label)], t.prototype, "PlayerNameLabel", void 0), i([E(cc.Label)], t.prototype, "PlayerRenownLabel", void 0), i([E(cc.Label)], t.prototype, "PlayerPowerLabel", void 0), i([E(cc.Sprite)], t.prototype, "PlayerCountry", void 0), i([E(cc.Label)], t.prototype, "PlayerUidLabel", void 0), i([E(cc.Label)], t.prototype, "PlayerGuildLabel", void 0), i([E(cc.Label)], t.prototype, "PlayerServerLabel", void 0), i([E(cc.Layout)], t.prototype, "FormationGrid", void 0), i([E(cc.Label)], t.prototype, "PlayerLvLabel", void 0), i([E(cc.Label)], t.prototype, "PlayerExpLabel", void 0), i([E(D.default)], t.prototype, "ExpProgressBar", void 0), i([E(cc.Button)], t.prototype, "CopyButton", void 0), i([E(cc.Label)], t.prototype, "UTC", void 0), i([E(cc.Button)], t.prototype, "LocaleKeyBtn", void 0), i([E(cc.Label)], t.prototype, "LocaleKeyBtnLabel", void 0), i([E(cc.Button)], t.prototype, "CustomBtn", void 0), i([E(cc.Label)], t.prototype, "CustomBtnLabel", void 0), i([E(cc.Button)], t.prototype, "SnsConnectionBtn", void 0), i([E(cc.Label)], t.prototype, "SnsConnectionLabel", void 0), i([E(cc.Button)], t.prototype, "CountryButton", void 0), i([E(cc.Node)], t.prototype, "CountryNode", void 0), i([E(cc.Label)], t.prototype, "SignatureTitleLabel", void 0), i([E(cc.Label)], t.prototype, "SignatureLabel", void 0), i([E(cc.Button)], t.prototype, "SignatureButton", void 0), i([E(cc.Node)], t.prototype, "VNAccountNode", void 0), i([E(cc.Node)], t.prototype, "BtnLayoutNode", void 0), i([N], t)
            }(l.BaseUIPanel);
        n.default = U, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./AccountInfoPanel": "AccountInfoPanel",
        "./MainUIPanel": "MainUIPanel"
    }],
    PlayerSignaturePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1850cJsgQZB8rvZUghFtfoe", "PlayerSignaturePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Components/DataCenter"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Components/RpcComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.Tag = null, t.SignatureEditorBox = null, t.HolderLabel = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "player_change_signature".ToUILocale(), this.Tag.string = "player_signature_tag".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadUserData()
                }, t.prototype.LoadUserData = function() {
                    this._oldSignature = d.DataCenter.Instance.GetStringData(p.UserDataKey.Signature)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetUI()
                }, t.prototype.SetUI = function() {
                    this.HolderLabel.string = "player_set_signature".ToUILocale(), this._oldSignature && (this.SignatureEditorBox.string = this._oldSignature)
                }, t.prototype.OnBtnCancelClick = function() {
                    h.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnSureClick = function() {
                    this.SignatureEditorBox.string != this._oldSignature ? this.SignatureEditorBox.string ? this.SignatureEditorBox.textLabel.node.getContentSize().height > 115 ? f.UIUtlity.ShowFloatingHint("player_signature_limit".ToUILocale()) : this.RequestChangeSignature() : f.UIUtlity.ShowFloatingHint("player_set_signature".ToUILocale()) : f.UIUtlity.ShowFloatingHint("player_signature_repeat".ToUILocale())
                }, t.prototype.RequestChangeSignature = function() {
                    var e = new u.Req_Player_ChangeSignature;
                    e.Signature = this.SignatureEditorBox.string, y.RpcComponent.Instance.Call(e, this.ResponseChangeSignatureSuccess.bind(this))
                }, t.prototype.ResponseChangeSignatureSuccess = function() {
                    c.Game.EventDispatcher.Emit(g.EventKeys.EVENT_NAMING_SUCCESS), f.UIUtlity.ShowFloatingHint("ChangeName_change_success".ToUILocale()), h.UIManager.Instance.BackUIPanel()
                }, t.prototype.onTextChanged = function(e, t) {
                    t.textLabel.node.getContentSize().height > 115 && f.UIUtlity.ShowFloatingHint("player_signature_limit".ToUILocale())
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "Tag", void 0), i([_(cc.EditBox)], t.prototype, "SignatureEditorBox", void 0), i([_(cc.Label)], t.prototype, "HolderLabel", void 0), i([_(cc.Button)], t.prototype, "BtnCancel", void 0), i([_(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([_(cc.Button)], t.prototype, "BtnSure", void 0), i([_(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    PointRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "098b7rVLClHUYNOQZSUj2UQ", "PointRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("./ItemComponent"),
            p = e("../../../EZFramework/Auxiliary/EZLog"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/RpcComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Panel/DrawAgainRewardsPanel"),
            g = e("./ItemClickComponent"),
            m = e("../Panel/LuckyWheelPanel"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Point = null, t.CubeOn = null, t.CubeOff = null, t.ClickBtn = null, t.ItemRoot = null, t.RedDot = null, t.ItemGlow = null, t._item = null, t._luckyValue = 0, t._rewardIndex = 0, t._isDraw = !1, t._moveAnim = null, t._isAnimPlaying = !1, t.REWARD_START_POSY = 0, t._hasInit = !1, t
                }
                return r(t, e), t.prototype.InitUI = function(e, t, n, o) {
                    this._type = o, this._data = t, this._rewardIndex = n, this.SetCube(e), this.SetPoint(), this.InitItem(), this.CreateAnimation(), this._hasInit || (this._hasInit = !0, this.ClickBtn.node.on("click", this.OnBtnClick, this))
                }, t.prototype.UpdateLuckyValue = function(e) {
                    this._luckyValue = e
                }, t.prototype.SetDrawState = function(e) {
                    this._isDraw = e, this.ItemGlow.active = 0 == this._isDraw && 1 == this.CubeOn.active
                }, t.prototype.CreateAnimation = function() {
                    if (null == this._moveAnim) {
                        var e = cc.tween(this.ClickBtn.node).by(1, {
                                position: cc.v3(0, 10, 0)
                            }),
                            t = cc.tween(this.ClickBtn.node).by(1, {
                                position: cc.v3(0, -10, 0)
                            });
                        this._moveAnim = cc.tween(this.ClickBtn.node).sequence(e, t).repeatForever()
                    }
                }, t.prototype.SetCube = function(e) {
                    e >= this._data[y.PointRewardData.Point] ? (this.CubeOff.active = !1, this.CubeOn.active = !0, this.Point.node.active = !0, this.ItemGlow.active = !this._isDraw) : (this.CubeOff.active = !0, this.CubeOn.active = !1, this.Point.node.active = !0, this.ItemGlow.active = !1)
                }, t.prototype.SetPoint = function() {
                    var e = this._data[y.PointRewardData.Point].toString();
                    this.Point.string = e
                }, t.prototype.InitItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset(c.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._commonItemPrefab = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    return null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(u.ItemComponent), this._item.node.parent = this.ItemRoot, this._item.node.removeComponent(g.default), this._item.node.removeComponent(cc.BlockInputEvents)), this._item.node.name = this._data[y.PointRewardData.ItemId].toString(), this._item.Init({
                                        ItemId: this._data[y.PointRewardData.ItemId],
                                        Count: this._data[y.PointRewardData.Count]
                                    }, u.ItemComponentType.ItemCommon), this._item.SetReceivedTagState(this._isDraw), this.SetAnimation(), this.SetRedDot(), [2]
                            }
                        })
                    })
                }, t.prototype.SetAnimation = function() {
                    this._data[y.PointRewardData.Point] <= this._luckyValue && !this._isDraw ? (this._isAnimPlaying || (this.ClickBtn.node.y = this.REWARD_START_POSY, this._moveAnim.start()), this._isAnimPlaying = !0) : (this.ClickBtn.node.y = this.REWARD_START_POSY, this._moveAnim.stop(), this._isAnimPlaying = !1)
                }, t.prototype.SetRedDot = function() {
                    this._data[y.PointRewardData.Point] <= this._luckyValue && !this._isDraw ? this.RedDot.active = !0 : this.RedDot.active = !1
                }, t.prototype.OnBtnClick = function() {
                    if (p.EZLog.Log(this._data[y.PointRewardData.Point]), p.EZLog.Log(this._luckyValue), p.EZLog.Log(this._isDraw), !m.default.isRotating)
                        if (this._data[y.PointRewardData.Point] <= this._luckyValue && !this._isDraw) this.RequestDrawPointReward();
                        else {
                            var e = Number.parseInt(this._item.node.name);
                            f.UIUtlity.ShowItemTip(e, this._item.node)
                        }
                }, t.prototype.RequestDrawPointReward = function() {
                    var e = new d.Req_TreasureHunt_PointReward;
                    e.Type = this._type, e.RewardIndex = this._rewardIndex, h.RpcComponent.Instance.Call(e, this.RequestDrawPointRewardSuccess.bind(this))
                }, t.prototype.RequestDrawPointRewardSuccess = function(e) {
                    f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._commonItemPrefab && (l.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), this._commonItemPrefab = null)
                }, i([C(cc.Label)], t.prototype, "Point", void 0), i([C(cc.Node)], t.prototype, "CubeOn", void 0), i([C(cc.Node)], t.prototype, "CubeOff", void 0), i([C(cc.Button)], t.prototype, "ClickBtn", void 0), i([C(cc.Node)], t.prototype, "ItemRoot", void 0), i([C(cc.Node)], t.prototype, "RedDot", void 0), i([C(cc.Node)], t.prototype, "ItemGlow", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/DrawAgainRewardsPanel": "DrawAgainRewardsPanel",
        "../Panel/LuckyWheelPanel": "LuckyWheelPanel",
        "./ItemClickComponent": "ItemClickComponent",
        "./ItemComponent": "ItemComponent"
    }],
    PolyNav2D: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "886b0HZF9FH3K57FUbaIexq", "PolyNav2D");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./PolyNavAStar"),
            s = e("./PolyNavPolygon"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AllPolygons = [], t._pathNodes = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.SetCustomMap(this.AllPolygons)
                }, t.prototype.SetCustomMap = function(e) {
                    this._allPolygons = [];
                    for (var t = 0; t < e.length; t++) {
                        for (var n = [], o = e[t], r = 0; r < o.ColliderPoints.length; r++) {
                            var i = o.ColliderPoints[r],
                                a = o.node.convertToWorldSpaceAR(i);
                            n.push(this.node.convertToNodeSpaceAR(a))
                        }
                        this._allPolygons.push({
                            points: n
                        })
                    }
                    this.CreateNodes(), this.LinkNodes(this._pathNodes)
                }, t.prototype.CheckLOS = function(e, t) {
                    if (cc.Vec2.squaredDistance(e, t) < Number.EPSILON) return !0;
                    for (var n = 0; n < this._allPolygons.length; n++) {
                        for (var o = this._allPolygons[n], r = 0; r < o.points.length; r++)
                            if (this.SegmentsCross(e, t, o.points[r], o.points[(r + 1) % o.points.length])) return !1;
                        this.node.position
                    }
                    return !0
                }, t.prototype.SegmentsCross = function(e, t, n, o) {
                    var r = (t.x - e.x) * (o.y - n.y) - (t.y - e.y) * (o.x - n.x);
                    if (0 == r) return !1;
                    var i = (e.y - n.y) * (o.x - n.x) - (e.x - n.x) * (o.y - n.y),
                        a = (e.y - n.y) * (t.x - e.x) - (e.x - n.x) * (t.y - e.y);
                    if (0 == i || 0 == a) return !1;
                    var s = i / r,
                        l = a / r;
                    return s > 0 && s < 1 && l > 0 && l < 1
                }, t.prototype.PointInsidePolygon = function(e, t) {
                    for (var n = 1 / 0, o = 0; o < e.length; o++) n = Math.min(n, e[o].x);
                    var r = new cc.Vec2(n - .1, t.y),
                        i = 0;
                    for (o = 0; o < e.length; o++) {
                        var a = e[o],
                            s = e[(o + 1) % e.length];
                        this.SegmentsCross(r, t, a, s) && i++
                    }
                    return 1 == (1 & i)
                }, t.prototype.GetCloserEdgePoint = function(e) {
                    for (var t = [], n = cc.Vec2.ZERO, o = 1 / 0, r = null, i = 0; i < this._allPolygons.length; i++) {
                        var a = this._allPolygons[i];
                        r = this.InflatePolygon(a.points, .01);
                        for (var s = 0; s < r.length; s++) {
                            var l = r[s],
                                c = r[(s + 1) % r.length],
                                u = a.points[s],
                                p = a.points[(s + 1) % a.points.length],
                                d = e.sub(l).project(c.sub(l)).add(l);
                            this.SegmentsCross(e, d, u, p) && this.PointIsValid(d) && t.push(d);
                            var h = cc.Vec2.distance(e, r[s]);
                            h < o && this.PointIsValid(r[s]) && (o = h, n = r[s])
                        }
                    }
                    return t.push(n), t.sort(function(t, n) {
                        return cc.Vec2.distance(e, t) - cc.Vec2.distance(e, n)
                    }), t[0]
                }, t.prototype.InflatePolygon = function(e, t) {
                    for (var n = [], o = 0; o < e.length; o++) {
                        var r = e[0 == o ? e.length - 1 : o - 1],
                            i = e[o],
                            a = e[(o + 1) % e.length],
                            s = r.sub(i).normalize(),
                            l = a.sub(i).normalize(),
                            c = s.add(l);
                        c.multiplyScalar(this.PointIsConcave(e, o) ? t : -t), n[o] = e[o].add(c)
                    }
                    return n
                }, t.prototype.PointIsConcave = function(e, t) {
                    var n = e[t],
                        o = e[(t + 1) % e.length],
                        r = e[0 == t ? e.length - 1 : t - 1],
                        i = new cc.Vec2(n.x - r.x, n.y - r.y),
                        a = new cc.Vec2(o.x - n.x, o.y - n.y);
                    return i.x * a.y - i.y * a.x > 0
                }, t.prototype.PointIsValid = function(e) {
                    for (var t = 0; t < this._allPolygons.length; t++)
                        if (0 == t ? !this.PointInsidePolygon(this._allPolygons[t].points, e) : this.PointInsidePolygon(this._allPolygons[t].points, e)) return !1;
                    return !0
                }, t.prototype.FindPath = function(e, t, n) {
                    if (this.CheckLOS(e, t)) return n.push(e), n.push(t), !0;
                    var o = new a.PathNode(e),
                        r = new a.PathNode(t);
                    this._pathNodes.push(o), this.LinkStart(o, this._pathNodes), this._pathNodes.push(r), this.LinkEnd(r, this._pathNodes), a.PolyNavAStar.CalculatePath(o, r, this._pathNodes, n);
                    for (var i = this._pathNodes.indexOf(r), s = 0; s < r.links.length; s++) {
                        var l = this._pathNodes[r.links[s]].links;
                        l.splice(l.indexOf(i), 1)
                    }
                    this._pathNodes.splice(i, 1), this._pathNodes.splice(this._pathNodes.indexOf(o), 1)
                }, t.prototype.CreateNodes = function() {
                    this._pathNodes = [];
                    for (var e = 0; e < this._allPolygons.length; e++)
                        for (var t = this._allPolygons[e], n = this.InflatePolygon(t.points, 20), o = 0; o < n.length; o++) this.PointIsConcave(n, o) || this.PointIsValid(n[o]) && this._pathNodes.push(new a.PathNode(n[o]))
                }, t.prototype.LinkNodes = function(e) {
                    for (var t = 0; t < e.length; t++) {
                        e[t].links = [];
                        for (var n = 0; n < t; n++) this.CheckLOS(e[t].pos, e[n].pos) && (e[t].links.push(n), e[n].links.push(t))
                    }
                }, t.prototype.LinkStart = function(e, t) {
                    for (var n = 0; n < t.length; n++) this.CheckLOS(e.pos, t[n].pos) && e.links.push(n)
                }, t.prototype.LinkEnd = function(e, t) {
                    for (var n = 0; n < t.length; n++) this.CheckLOS(e.pos, t[n].pos) && (e.links.push(n), t[n].links.push(t.indexOf(e)))
                }, i([u(s.default)], t.prototype, "AllPolygons", void 0), i([c], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "./PolyNavAStar": "PolyNavAStar",
        "./PolyNavPolygon": "PolyNavPolygon"
    }],
    PolyNavAStar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ae203IVpOlGxL4+5Oe3FVUe", "PolyNavAStar"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.PolyNavAStar = n.PathNode = void 0;
        var o = function() {
            function e(e) {
                this.pos = e, this.links = [], this.gCost = 1, this.hCost = 0, this.parent = null
            }
            return Object.defineProperty(e.prototype, "fCost", {
                get: function() {
                    return this.gCost + this.hCost
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.CompareTo = function(e) {
                var t = this.fCost - e.fCost;
                return 0 == t && (t = this.hCost - e.hCost), -t
            }, e
        }();
        n.PathNode = o;
        var r = function() {
            function e() {}
            return e.CalculatePath = function(e, t, n, o) {
                return this.Internal_CalculatePath(e, t, n, o)
            }, e.Internal_CalculatePath = function(e, t, n, o) {
                var r = [],
                    i = [],
                    a = !1;
                for (r.push(e); r.length > 0;) {
                    for (var s = r[0], l = 0, c = 1; c < r.length; c++)(r[c].fCost < s.fCost || r[c].fCost == s.fCost && r[c].hCost < s.hCost) && (s = r[c], l = c);
                    if (r.splice(l, 1), s == t) {
                        a = !0;
                        break
                    }
                    i.push(s);
                    var u = s.links;
                    for (c = 0; c < u.length; c++) {
                        var p = n[u[c]];
                        if (!i.includes(p)) {
                            var d = s.gCost + this.GetDistance(s, p);
                            (d < p.gCost || !r.includes(p)) && (p.gCost = d, p.hCost = this.GetDistance(p, t), p.parent = s, r.includes(p) || r.push(p))
                        }
                    }
                }
                if (a) {
                    for (s = t; s != e;) o.push(s.pos), s = s.parent;
                    return o.push(e.pos), o.reverse(), o
                }
                return null
            }, e.GetDistance = function(e, t) {
                return cc.Vec2.distance(e.pos, t.pos)
            }, e
        }();
        n.PolyNavAStar = r, cc._RF.pop()
    }, {}],
    PolyNavAgent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bbe08rfI3xEgaJsFbu288aM", "PolyNavAgent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = (a.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._currentPos = cc.Vec2.ZERO, t._currentPath = [], t._isMove = !1, t._maxSpeed = 200, t._dir = 1, t._velocity = cc.Vec2.ZERO, t.AbandonInvalidPos = !1, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "Dir", {
                    get: function() {
                        return this._dir
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "Velocity", {
                    get: function() {
                        return this._velocity
                    },
                    set: function(e) {
                        this._velocity = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "CurrentPath", {
                    get: function() {
                        return this._currentPath
                    },
                    set: function(e) {
                        this._currentPath = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "IsMove", {
                    get: function() {
                        return this._isMove
                    },
                    set: function(e) {
                        this._isMove = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e, t) {
                    this._polyNav2D = e, this.SetPos(t)
                }, t.prototype.SetPos = function(e) {
                    this._currentPos = e, this.node.setPosition(this._currentPos)
                }, Object.defineProperty(t.prototype, "Speed", {
                    set: function(e) {
                        this._maxSpeed = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.SetDestination = function(e) {
                    return null != this._polyNav2D && (!!(this._isMove && cc.Vec2.squaredDistance(e, this._targetPos) < Number.EPSILON) || (this._targetPos = e, cc.Vec2.squaredDistance(e, this._currentPos) < Number.EPSILON ? (this.Stop(), !1) : this._polyNav2D.PointIsValid(e) ? (this._currentPath = [], this._polyNav2D.PointIsValid(this._currentPos) || (this._currentPos = this._polyNav2D.GetCloserEdgePoint(this._currentPos)), this._polyNav2D.FindPath(this._currentPos, e, this._currentPath), 0 == this._currentPath.length ? (this.Stop(), !1) : (this._isMove = !0, !0)) : this.AbandonInvalidPos ? void 0 : this.SetDestination(this._polyNav2D.GetCloserEdgePoint(e))))
                }, t.prototype.SetDirPos = function(e, t) {
                    this.Stop();
                    var n = this._currentPos.add(e.normalize().multiplyScalar(this._maxSpeed * t));
                    this._polyNav2D.PointIsValid(n) ? this._currentPos.set(n) : this._currentPos.set(this._polyNav2D.GetCloserEdgePoint(n)), this.node.setPosition(this._currentPos), this._velocity.set(e), this.RefreshDir()
                }, t.prototype.Stop = function() {
                    this._currentPath = [], this._isMove = !1
                }, Object.defineProperty(t.prototype, "HasPath", {
                    get: function() {
                        return this._currentPath.length > 0
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "NextPoint", {
                    get: function() {
                        return this.HasPath ? this._currentPath[0] : this._currentPos
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.update = function(e) {
                    if (this.HasPath) {
                        var t = this._maxSpeed * e;
                        this._currentPos.set(this.Seek(this._currentPos, this.NextPoint, t)), this.node.setPosition(this._currentPos)
                    } else this._isMove = !1
                }, t.prototype.RefreshDir = function() {
                    this._velocity.x < 0 ? this._dir = -1 : this._velocity.x > 0 && (this._dir = 1)
                }, t.prototype.Seek = function(e, t, n) {
                    var o = cc.Vec2.distance(e, t);
                    return o < n ? (n -= o, this._currentPath.length > 1 ? (this._currentPath.shift(), this.Seek(t, this.NextPoint, n)) : (this._currentPath.shift(), cc.Vec2.subtract(this._velocity, t, e), t)) : (cc.Vec2.subtract(this._velocity, t, e), this.RefreshDir(), this._velocity.normalizeSelf().mulSelf(n), e.add(this._velocity))
                }, i([s], t)
            }(cc.Component));
        n.default = l, cc._RF.pop()
    }, {}],
    PolyNavPolygon: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d2c845EAJ5Lf5gekSS/ngLn", "PolyNavPolygon");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = a.executeInEditMode,
            u = a.inspector,
            p = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Points = [], t.IsObstacle = !1, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "ColliderPoints", {
                    get: function() {
                        return this.IsObstacle ? this.Points.slice(0, this.Points.length).reverse() : this.Points
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([l(cc.Vec2)], t.prototype, "Points", void 0), i([l(cc.Boolean)], t.prototype, "IsObstacle", void 0), i([s, c, u("packages://poly_nav2d_map_editor/inspector.js")], t)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {}],
    PolygonPowerComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5fe69ilFatCmKEagsT4u8AK", "PolygonPowerComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.PolygonPowerConfig = void 0;
        var s = e("../Auxiliary/UIUtlity"),
            l = cc._decorator,
            c = l.ccclass,
            u = l.property,
            p = function() {
                function e(e) {
                    this.Count = e.Count, this.Radius = e.Radius, this.MaxScale = e.MaxScale, this.InitialAngle = e.InitialAngle || 0, this._initialRadian = 2 * Math.PI * this.InitialAngle / 360, this.FillColor = e.FillColor || "#ffffff", this.FillAlpha = e.FillAlpha || 128, this.LineColor = e.LineColor || this.FillColor, this.LineAlpha = e.LineAlpha || this.FillAlpha, this.LineWidth = e.LineWidth || 4, this.HeighLightPoint = e.HeighLightPoint || !0
                }
                return e.prototype.GetInitialRadian = function() {
                    return this._initialRadian
                }, e
            }();
        n.PolygonPowerConfig = p;
        var d = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Bg = null, t.Graphics = null, t.TitleNodes = [], t.PointNodes = [], t
            }
            return r(t, e), t.prototype.Init = function(e, t) {
                this._data = e, this.Graphics.lineWidth = this._data.LineWidth, this.Graphics.strokeColor.fromHEX(this._data.LineColor), this.Graphics.strokeColor.setA(this._data.LineAlpha), this.Graphics.fillColor.fromHEX(this._data.FillColor), this.Graphics.fillColor.setA(this._data.FillAlpha), this._titlePrefab = t, this.UpdateTitles()
            }, t.prototype.UpdateTitles = function() {
                for (var e = 0; e < this._data.Count; e++) {
                    this.TitleNodes[e] || (this.TitleNodes[e] = cc.instantiate(this._titlePrefab), this.TitleNodes[e].name = e.toString(), this.TitleNodes[e].setParent(this.node)), this.TitleNodes[e].active = !0;
                    var t = this.TitleNodes[e],
                        n = 2 * Math.PI * e / this._data.Count + this._data.GetInitialRadian(),
                        o = Math.atan2(t.height, t.width);
                    t.x = this._data.Radius * Math.cos(n), t.y = this._data.Radius * Math.sin(n), n <= o || n >= 2 * Math.PI - o ? (t.x += t.width / 2, t.y += Math.tan(n) * t.width / 2) : n <= Math.PI - o ? (t.y += t.height / 2, t.x += t.height / (2 * Math.tan(n))) : n <= Math.PI + o ? (t.x -= t.width / 2, t.y -= Math.tan(n) * t.width / 2) : n <= 2 * Math.PI - o && (t.y -= t.height / 2, t.x -= t.height / (2 * Math.tan(n)))
                }
                for (e = this._data.Count; e < this.TitleNodes.length; e++) this.TitleNodes[e].active = !1
            }, t.prototype.Render = function(e) {
                void 0 === e && (e = []), this.Graphics.clear(), this._data.MaxScale = Math.ceil(Math.max.apply(Math, a([this._data.MaxScale], e)));
                for (var t = {
                        x: 0,
                        y: 0
                    }, n = 0; n < this._data.Count; n++) {
                    var o = 2 * Math.PI * n / this._data.Count + this._data.GetInitialRadian();
                    length = (e[n] || 0) * this._data.Radius;
                    var r = length * Math.cos(o) / this._data.MaxScale,
                        i = length * Math.sin(o) / this._data.MaxScale;
                    0 == n && (t.x = r, t.y = i, this.Graphics.moveTo(r, i)), this.Graphics.lineTo(r, i), this._data.HeighLightPoint && (this.PointNodes[n] || (this.PointNodes[n] = new cc.Node, this.PointNodes[n].addComponent(cc.Sprite), this.PointNodes[n].setParent(this.Graphics.node), this.PointNodes[n].getComponent(cc.Sprite).spriteFrame = s.UIUtlity.COMMON_ATLAS2.getSpriteFrame("highLight_point")), this.PointNodes[n].x = r, this.PointNodes[n].y = i)
                }
                this.Graphics.lineTo(t.x, t.y), this.Graphics.fill(), this.Graphics.stroke()
            }, i([u(cc.Sprite)], t.prototype, "Bg", void 0), i([u(cc.Graphics)], t.prototype, "Graphics", void 0), i([c], t)
        }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    PopularFormationListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9908e28eQdP74dt43D35wx2", "PopularFormationListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./ItemComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/DataCenter"),
            y = e("../../../EZFramework/EZFramework"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../../EZFramework/EZFramework"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DescLabel = null, t.FormationGrid = null, t._commonItemPrefab = null, t._itemArray = [], t._isInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    y.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnHeroClick, this)
                }, t.prototype.onDisable = function() {
                    y.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnHeroClick)
                }, t.prototype.OnHeroClick = function(e, t) {
                    -1 != this.FormationGrid.node.children.indexOf(t) && m.UIManager.Instance.ShowUIPanel(p.PanelConfig.HeroHandbookPanel.Path, e)
                }, t.prototype.SetUI = function(e, t) {
                    this._heroIds = e, this._formationIndex = t, this.SetBaseUI(), this.SetFormationShow()
                }, t.prototype.SetBaseUI = function() {
                    this.DescLabel.string = "iWantStrong_poplular_formation_tag".ToUILocale().Fmt(this._formationIndex)
                }, t.prototype.SetFormationShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : (e = this, [4, u.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._commonItemPrefab = i.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                    i.label = 2;
                                case 2:
                                    for (t = 0; t < this._heroIds.length; t++) n = this._heroIds[t], null == this._itemArray[t] && ((o = cc.instantiate(this._commonItemPrefab).getComponent(l.ItemComponent)).node.parent = this.FormationGrid.node, o.node.name = n.toString(), this._itemArray[t] = o), r = d.ConfigDataComponent.Instance.GetConfigById(c.HeroBase_Config, n), this._itemArray[t].Init({
                                        ItemId: r.Id,
                                        StarLevel: r.StarLevel,
                                        ElementType: r.ElementType
                                    }, l.ItemComponentType.HeroInfo), null == f.DataCenter.Instance.GetDataById(h.HeroInfo_Model, n) ? this._itemArray[t].OnIconGray(!0) : this._itemArray[t].OffIconGray();
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._commonItemPrefab && y.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), this._commonItemPrefab = null
                }, i([C(cc.Label)], t.prototype, "DescLabel", void 0), i([C(cc.Layout)], t.prototype, "FormationGrid", void 0), i([_], t)
            }(cc.Component);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "./ItemComponent": "ItemComponent"
    }],
    PopularFormationModule: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "75bdfnD5UNAQYqgT6I1yu/V", "PopularFormationModule");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("./PopularFormationListItem"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.FormationGrid = null, t._isInit = !1, t._listItemPrefab = null, t._listItemArray = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Display = function(e) {
                    this._formations = e, this.SetListItemShow()
                }, t.prototype.SetListItemShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return null != this._listItemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(n.ListItemPath, cc.Prefab)]);
                                case 1:
                                    if (e._listItemPrefab = r.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), [2];
                                    r.label = 2;
                                case 2:
                                    for (t = 0; t < this._listItemArray.length; t++) this._listItemArray[t].node.active = !1;
                                    for (t = 0; t < this._formations.length; t++) null == this._listItemArray[t] && ((o = cc.instantiate(this._listItemPrefab).getComponent(u.default)).node.parent = this.FormationGrid.node, this._listItemArray[t] = o), this._listItemArray[t].SetUI(this._formations[t].Items, t + 1), this._listItemArray[t].node.active = !0;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    null != this._listItemPrefab && l.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), this._listItemPrefab = null
                }, t.ListItemPath = "IWantStrongPanel/Private/PopularFormationListItem", i([h(cc.Layout)], t.prototype, "FormationGrid", void 0), n = i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./PopularFormationListItem": "PopularFormationListItem"
    }],
    PowerCoreAttributeComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "67844mFqiBLsaYcE8ZUUOab", "PowerCoreAttributeComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttrIcon = null, t.TagLab = null, t.Value = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    this.AttrIcon.spriteFrame = e, this.TagLab.string = t, this.Value.string = n, this.node.width = o
                }, i([l(cc.Sprite)], t.prototype, "AttrIcon", void 0), i([l(cc.Label)], t.prototype, "TagLab", void 0), i([l(cc.RichText)], t.prototype, "Value", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    PowerCoreDetailsPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3a781ap+1FBX4RU2MPui8ue", "PowerCoreDetailsPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../GamePlay/Components/Components"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../Components/ItemComponent"),
            y = e("../Components/ItemClickComponent"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/PowerCoreAttributeComponent"),
            C = e("../Components/SkillItemComponent"),
            v = e("../../RedDot/RedDotManager"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.ItemContainer = null, t.NameLabel = null, t.LevelText = null, t.ItemTypeTag = null, t.ItemTypeValue = null, t.ItemScoreTag = null, t.ItemScoreValue = null, t.AttrTittle = null, t.AttrLayout = null, t.SkillTittle = null, t.SkillItemNode = null, t.ItemDescTittle = null, t.PowerCoreDescText = null, t.GetItemBtn = null, t.GetItemHint = null, t.TakeOffBtn = null, t.TakeOffBtnLabel = null, t.StrengthenBtn = null, t.StrengthenBtnLabel = null, t.ChangeBtn = null, t.ChangeBtnLabel = null, t.ButtonContainer = null, t._attributeComponent = [], t.ATTR_COMPNOENT_TWIDTH = 456, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("ItemsComponent/SkillItemComponent", cc.Prefab), o = this.LoadDynamicAsset("CoreCultivatePanel/Components/AttributeComponent", cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._itemPrefab = e[0], r._coreSkillPrefab = e[1], r._attributePrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.ItemTypeTag.string = "equip_type_tag".ToUILocale(), this.ItemScoreTag.string = "equip_score_tag".ToUILocale(), this.AttrTittle.string = "PowerCore_Attribute".ToUILocale(), this.SkillTittle.string = "PowerCore_Skill".ToUILocale(), this.ItemDescTittle.string = "PowerCore_Desc".ToUILocale(), this.GetItemHint.string = "Personalise_getway".ToUILocale(), this.TakeOffBtnLabel.string = "PowerCore_Remove".ToUILocale(), this.StrengthenBtnLabel.string = "PowerCore_Train".ToUILocale(), this.ChangeBtnLabel.string = "equip_change".ToUILocale(), this.ItemTypeValue.string = "PowerCore_Type".ToUILocale(), this.TakeOffBtn.node.on("click", this.OnClickTakeOff, this), this.StrengthenBtn.node.on("click", this.OnClickStrengthen, this), this.ChangeBtn.node.on("click", this.OnClickChange, this), this.GetItemBtn.node.on("click", this.OnClickGetWay, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._powerCoreDataSid = t[0], this._heroSid = t[1]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.SetPowerCoreData(t), this.ConfigInfoContainer(), this.ConfigAttrsContainer(), this.ConfigSkillContainer(), this.PowerCoreDescText.string = this._powerCoreConfig.Id.ToItemDesc(), this._heroSid ? this.SetRedDot() : this.ButtonContainer.active = !1
                }, t.prototype.SetPowerCoreData = function(e) {
                    this._powerCoreDataModel = d.DataCenter.Instance.GetDataById(c.PowerCore_Model, this._powerCoreDataSid), this._powerCoreConfig = d.ConfigDataComponent.Instance.GetConfigById(h.PowerCore_Config, this._powerCoreDataModel.ItemId), this._itemBaseConfig = d.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, this._powerCoreDataModel.ItemId), this._powerCoreLevelConfig = d.ConfigDataComponent.Instance.GetConfigById(h.PowerCoreLevel_Config, this._powerCoreDataModel.Level), e || (this._powerCoreQualityConfig = d.ConfigDataComponent.Instance.GetConfigById(h.PowerCoreQuality_Config, this._itemBaseConfig.Quality))
                }, t.prototype.ConfigInfoContainer = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), e.getComponent(y.default).enabled = !1, this._itemComponent = e.getComponent(f.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: this._powerCoreConfig.Id,
                        StarLevel: this._powerCoreConfig.Star
                    }, f.ItemComponentType.ItemWithStar), this.NameLabel.string = this._powerCoreConfig.Id.ToItemName(), this._powerCoreDataModel && (this.LevelText.string = "PowerCore_Level".ToUILocale().Fmt(this._powerCoreDataModel.Level, this._powerCoreQualityConfig.MaxLevel), this._powerCoreDataModel.Level > 0 ? this.ItemScoreValue.string = (this._powerCoreLevelConfig.Score + this._powerCoreConfig.Score).toString() : this.ItemScoreValue.string = this._powerCoreConfig.Score.toString())
                }, t.prototype.ConfigAttrsContainer = function() {
                    this._attributeArr = g.default.Instance.GetPowerCoreAttribute(this._powerCoreDataModel.ItemId, this._powerCoreDataModel.Level);
                    for (var e = 0; e < this._attributeArr.length / 2; e++) {
                        var t = g.default.GetHeroAttribute(this._attributeArr[2 * e], this._attributeArr[2 * e + 1]);
                        if (!this._attributeComponent[e]) {
                            var n = cc.instantiate(this._attributePrefab);
                            n.parent = this.AttrLayout, this._attributeComponent[e] = n.getComponent(_.default)
                        }
                        this._attributeComponent[e].Init(t.Icon, t.Name, "+" + t.Value, this.ATTR_COMPNOENT_TWIDTH)
                    }
                }, t.prototype.ConfigSkillContainer = function() {
                    if (!this._skillComponent) {
                        var e = cc.instantiate(this._coreSkillPrefab);
                        e.parent = this.SkillItemNode, this._skillComponent = e.getComponent(C.default)
                    }
                    var t = this._powerCoreConfig.Skills[1];
                    this._skillComponent.Init(t, this._powerCoreConfig.Skills[0])
                }, t.prototype.OnClickTakeOff = function() {
                    var e = new c.Req_Item_CorePutOff;
                    e.Sid = this._powerCoreDataModel.Sid, d.RpcComponent.Instance.Call(e, this.OnTakeOffResponse)
                }, t.prototype.OnTakeOffResponse = function() {
                    l.UIManager.Instance.BackUIPanel(), l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_EQUIP_DATA_REFRESH), I.UIUtlity.ShowFloatingHint("PowerCore_PutOff".ToUILocale())
                }, t.prototype.SetRedDot = function() {
                    v.RedDotManager.Instance.BindInstance(this.StrengthenBtn.node, v.RedDotManager.Instance.InstanceRedDot.PowerCoreDevelopNode, {
                        Value1: this._powerCoreDataSid
                    }), v.RedDotManager.Instance.BindInstance(this.ChangeBtn.node, v.RedDotManager.Instance.InstanceRedDot.PowerCoreReplaceNode, {
                        Value1: this._heroSid
                    })
                }, t.prototype.OnClickStrengthen = function() {
                    m.UIManager.Instance.ShowUIPanel(p.PanelConfig.CoreUpgradePanel.Path, this._powerCoreDataSid, this._attributeArr), this.Close()
                }, t.prototype.OnClickChange = function() {
                    m.UIManager.Instance.ShowUIPanel(p.PanelConfig.PowerCoreReplacePanel.Path, this._heroSid, this._powerCoreDataSid, this._attributeArr), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnClickGetWay = function() {
                    var e = this,
                        t = 0;
                    d.DataCenter.Instance.GetDataList(c.PowerCore_Model).forEach(function(n) {
                        e._powerCoreDataModel.ItemId == n.ItemId && t++
                    }), l.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemGetWayPanel.Path, this._powerCoreDataModel.ItemId, !1, t)
                }, i([w(cc.Node)], t.prototype, "ItemContainer", void 0), i([w(cc.Label)], t.prototype, "NameLabel", void 0), i([w(cc.RichText)], t.prototype, "LevelText", void 0), i([w(cc.Label)], t.prototype, "ItemTypeTag", void 0), i([w(cc.Label)], t.prototype, "ItemTypeValue", void 0), i([w(cc.Label)], t.prototype, "ItemScoreTag", void 0), i([w(cc.Label)], t.prototype, "ItemScoreValue", void 0), i([w(cc.Label)], t.prototype, "AttrTittle", void 0), i([w(cc.Node)], t.prototype, "AttrLayout", void 0), i([w(cc.Label)], t.prototype, "SkillTittle", void 0), i([w(cc.Node)], t.prototype, "SkillItemNode", void 0), i([w(cc.Label)], t.prototype, "ItemDescTittle", void 0), i([w(cc.RichText)], t.prototype, "PowerCoreDescText", void 0), i([w(cc.Button)], t.prototype, "GetItemBtn", void 0), i([w(cc.Label)], t.prototype, "GetItemHint", void 0), i([w(cc.Button)], t.prototype, "TakeOffBtn", void 0), i([w(cc.Label)], t.prototype, "TakeOffBtnLabel", void 0), i([w(cc.Button)], t.prototype, "StrengthenBtn", void 0), i([w(cc.Label)], t.prototype, "StrengthenBtnLabel", void 0), i([w(cc.Button)], t.prototype, "ChangeBtn", void 0), i([w(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([w(cc.Node)], t.prototype, "ButtonContainer", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../GamePlay/Components/Components": "Components",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PowerCoreAttributeComponent": "PowerCoreAttributeComponent",
        "../Components/SkillItemComponent": "SkillItemComponent"
    }],
    PowerCoreFormComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "790376tmPNBkaYp546BQKI+", "PowerCoreFormComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/Components"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/DataUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BottomSpine = null, t.Icon = null, t.TopSpine = null, t._loadedAssets = [], t
                }
                return r(t, e), t.prototype.InitData = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._config = l.ConfigDataComponent.Instance.GetConfigById(c.PowerCoreForm_Config, e), t = p.default.Instance.GetItemPathById(e), n = this.Icon, [4, u.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)];
                                case 1:
                                    return n.spriteFrame = o.sent(), this.isValid ? (this._loadedAssets.push(this.Icon.spriteFrame), this.SetEffect(this._config.BottomEffects, this.BottomSpine), this.SetEffect(this._config.TopEffects, this.TopSpine), [2]) : (u.AssetsManager.Instance.UnloadAsset(this.Icon.spriteFrame), [2])
                            }
                        })
                    })
                }, t.prototype.SetEffect = function(e, t) {
                    if (e) {
                        t.destroyAllChildren();
                        for (var n = 0; n < e.length; n++) this.LoadEffect(e[n], t)
                    }
                }, t.prototype.LoadEffect = function(e, t) {
                    return a(this, void 0, void 0, function() {
                        var n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return (n = new cc.Node).setParent(t), [4, u.AssetsManager.Instance.LoadAsset("CoreCultivatePanel/Spine/" + e, sp.SkeletonData)];
                                case 1:
                                    return o = i.sent(), this.isValid ? (this._loadedAssets.push(o), n.isValid && ((r = n.addComponent(sp.Skeleton)).skeletonData = o, r.setAnimation(0, "Ani_" + e, !0)), [2]) : (u.AssetsManager.Instance.UnloadAsset(o), [2])
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    if (this._loadedAssets) {
                        for (var e = 0; e < this._loadedAssets.length; e++) u.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                        this._loadedAssets = []
                    }
                }, i([f(cc.Node)], t.prototype, "BottomSpine", void 0), i([f(cc.Sprite)], t.prototype, "Icon", void 0), i([f(cc.Node)], t.prototype, "TopSpine", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components"
    }],
    PowerCoreItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f36d4vFKihNhJJuMylFHC9u", "PowerCoreItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../Components/ItemComponent"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Components/Components"),
            y = e("../../../EZFramework/EZFramework"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.CoreItemContainer = null, t.CoreNameLabel = null, t.AttributeNode = [], t.AttributeIcon = [], t.AttributeValue = [], t.SkillButton = null, t.SkillName = null, t.OwnerLabel = null, t.ChangeBtnLabel = null, t.WearBtnLabel = null, t.HasWearLabel = null, t.ChangeBtn = null, t.WearBtn = null, t.HasWearBtn = null, t.HeroContainer = null, t.BtnUpLabel = null, t.TakeOffBtn = null, t.TakeOffLabel = null, t._usedByHolyRelic = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    y.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    y.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.start = function() {
                    this.OwnerLabel.string = "runeOwner".ToUILocale(), this.ChangeBtnLabel.string = "equip_replace".ToUILocale(), this.WearBtnLabel.string = "HeroDetail_equip".ToUILocale(), this.HasWearLabel.string = "heroSkin_hasDress".ToUILocale(), this.TakeOffLabel.string = "PowerCore_Remove".ToUILocale(), this.SkillButton.node.on("click", this.OnSkillIconClick, this), this.WearBtn.node.on("click", this.OnWearButtonClick, this), this.ChangeBtn.node.on("click", this.OnWearButtonClick, this), this.TakeOffBtn.node.on("click", this.ClickTakeOffBtn, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    this._coreData = e, this._heroSid = t, this._itemPrefab = n, o && (this._usedByHolyRelic = !0, this._commonEquipSetData = o), this._coreConfig = d.ConfigDataComponent.Instance.GetConfigById(l.PowerCore_Config, this._coreData.ItemId), this._wearHeroModel = d.DataCenter.Instance.GetDataById(a.UserHero_Model, this._coreData.OwnerId), this._skillId = this._coreConfig.Skills[1], this.SetUI(), this.ConfigCoreItem(), this.ConfigAttrsContainer(), this.ConfigHeroItem()
                }, t.prototype.SetUI = function() {
                    if (this.CoreNameLabel.string = this._coreConfig.Id.ToItemName(), this.SkillName.string = this._skillId.ToHeroSkillName(), this._usedByHolyRelic) this.OwnerLabel.node.active = !1, this.HasWearBtn.node.active = !1, this.TakeOffBtn.node.active = 1 == this._commonEquipSetData.IsSelf, this.ChangeBtn.node.active = !this._commonEquipSetData.IsSelf && (0 === this._commonEquipSetData.EquipmentSetTeamIndex || this._commonEquipSetData.EquipmentSetTeamIndex > 0), this.WearBtn.node.active = !this._commonEquipSetData.IsSelf && (null == this._commonEquipSetData.EquipmentSetTeamIndex || null == this._commonEquipSetData.EquipmentSetTeamIndex);
                    else {
                        var e = this._coreData.OwnerId > 0;
                        this.OwnerLabel.node.active = e, this.WearBtn.node.active = !e, this.ChangeBtn.node.active = e && this._coreData.OwnerId != this._heroSid, this.HasWearBtn.node.active = e && this._coreData.OwnerId == this._heroSid, this.TakeOffBtn.node.active = !1
                    }
                    this._usedByHolyRelic && (0 === this._commonEquipSetData.EquipmentSetTeamIndex || this._commonEquipSetData.EquipmentSetTeamIndex > 0) ? this.BtnUpLabel.string = "HolyRelic_wearInfo".ToUILocale().Fmt(this._commonEquipSetData.EquipmentSetTeamIndex + 1, this._commonEquipSetData.EquipmentSetTeamSlot + 1) : this.BtnUpLabel.string = ""
                }, t.prototype.ConfigCoreItem = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.parent = this.CoreItemContainer, this._itemComponent = e.getComponent(s.ItemComponent)
                    }
                    this._itemComponent.Init({
                        ItemId: this._coreData.ItemId,
                        StarLevel: this._coreConfig.Star
                    }, s.ItemComponentType.ItemWithStar)
                }, t.prototype.ConfigAttrsContainer = function() {
                    this._attributeArr = h.default.Instance.GetPowerCoreAttribute(this._coreData.ItemId, this._coreData.Level);
                    for (var e = 0; e < this._attributeArr.length / 2; e++) {
                        var t = h.default.GetHeroAttribute(this._attributeArr[2 * e], this._attributeArr[2 * e + 1]);
                        this.AttributeIcon[e].spriteFrame = t.Icon, this.AttributeValue[e].string = "+" + t.Value, this.AttributeNode[e].active = !0
                    }
                }, t.prototype.ConfigHeroItem = function() {
                    if (this.HeroContainer.active = !1, !this._usedByHolyRelic && this._coreData.OwnerId > 0) {
                        if (this.HeroContainer.active = !0, !this._ownerItemComponent) {
                            var e = cc.instantiate(this._itemPrefab);
                            e.setParent(this.HeroContainer), this._ownerItemComponent = e.getComponent(s.ItemComponent)
                        }
                        this._ownerItemComponent.Init(this._wearHeroModel, s.ItemComponentType.HeroInfo)
                    }
                }, t.prototype.OnSkillIconClick = function() {
                    u.UIManager.Instance.ShowUIPanel(p.PanelConfig.SkillTipsPanel.Path, this._skillId, this.SkillButton.node, this._coreConfig.Skills[0])
                }, t.prototype.OnWearButtonClick = function() {
                    if (this._usedByHolyRelic) y.Game.EventDispatcher.Emit(c.EventKeys.HOLYRELIC_WEAR, this._commonEquipSetData);
                    else {
                        var e = d.DataCenter.Instance.GetDataById(a.UserHero_Model, this._heroSid);
                        this._oldPower = e.Power;
                        var t = new a.Req_Item_CorePutOn;
                        t.Sid = this._coreData.Sid, t.OwnerId = this._heroSid, f.RpcComponent.Instance.Call(t, this.WearSuccess.bind(this))
                    }
                }, t.prototype.WearSuccess = function() {
                    y.UIManager.Instance.BackUIPanel(), y.Game.EventDispatcher.Emit(c.EventKeys.EVENT_EQUIP_DATA_REFRESH);
                    var e = d.DataCenter.Instance.GetDataById(a.UserHero_Model, this._heroSid);
                    u.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattlePowerChangePanel.Path, this._oldPower, e.Power)
                }, t.prototype.OnClickItem = function(e, t) {
                    var n = t.getComponent(s.ItemComponent);
                    this._itemComponent == n && y.UIManager.Instance.ShowUIPanel(p.PanelConfig.ItemWithModelTipsPanel.Path, this._coreData, t)
                }, t.prototype.ClickTakeOffBtn = function() {
                    this._usedByHolyRelic && y.Game.EventDispatcher.Emit(c.EventKeys.HOLYRELIC_WEAR, this._commonEquipSetData)
                }, i([I(cc.Node)], t.prototype, "CoreItemContainer", void 0), i([I(cc.Label)], t.prototype, "CoreNameLabel", void 0), i([I(cc.Node)], t.prototype, "AttributeNode", void 0), i([I(cc.Sprite)], t.prototype, "AttributeIcon", void 0), i([I(cc.Label)], t.prototype, "AttributeValue", void 0), i([I(cc.Button)], t.prototype, "SkillButton", void 0), i([I(cc.Label)], t.prototype, "SkillName", void 0), i([I(cc.Label)], t.prototype, "OwnerLabel", void 0), i([I(cc.Label)], t.prototype, "ChangeBtnLabel", void 0), i([I(cc.Label)], t.prototype, "WearBtnLabel", void 0), i([I(cc.Label)], t.prototype, "HasWearLabel", void 0), i([I(cc.Button)], t.prototype, "ChangeBtn", void 0), i([I(cc.Button)], t.prototype, "WearBtn", void 0), i([I(cc.Button)], t.prototype, "HasWearBtn", void 0), i([I(cc.Node)], t.prototype, "HeroContainer", void 0), i([I(cc.Label)], t.prototype, "BtnUpLabel", void 0), i([I(cc.Button)], t.prototype, "TakeOffBtn", void 0), i([I(cc.Label)], t.prototype, "TakeOffLabel", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PowerCoreReplacePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "258b8d2aTFL27kN7fc4GOVr", "PowerCoreReplacePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../Components/CustomLayout"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../../../Consts/Consts"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/ItemComponent"),
            m = e("../../Components/Components"),
            I = e("../Components/PowerCoreItemComponent"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("./SelectLuckyCharmHint"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property,
            P = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip), t.NoCorePage = null, t.NoCoreLabel = null, t.GetWayLabel = null, t.GetWayButton = null, t.CorePage = null, t.ItemContainer = null, t.CoreName = null, t.CurrentWearTag = null, t.CoreAttributeIcon = [], t.CoreAttributeValue = [], t.SkillButton = null, t.SkillName = null, t.CoreShowCustomLayout = null, t.PowerCoreEmptyTip = null, t._isCustomLayoutInit = !1, t._coreModelArray = [], t._usedByEquipmentSet = !1, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("CoreCultivatePanel/Components/CoreItemComponent", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._itemPrefab = e[0], o._coreItemPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.On(y.EventKeys.HOLYRELIC_WEAR, this.OnWearHolyRelicEqu, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), l.Game.EventDispatcher.Off(y.EventKeys.HOLYRELIC_WEAR, this.OnWearHolyRelicEqu, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._heroSid = t[0], this._coreSid = t[1], this._attributeArr = t[2], t[3] && (this._usedByEquipmentSet = !0, this._commonEquipSetData = t[3])
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.NoCoreLabel.string = "PowerCore_NotEquipped".ToUILocale(), this.GetWayLabel.string = "Personalise_getway".ToUILocale(), this.CurrentWearTag.string = "equip_current_wear".ToUILocale(), this.PowerCoreEmptyTip.string = "PowerCore_EmptyTip".ToUILocale(), this.SkillButton.node.on("click", this.OnSkillButtonClick, this), this.GetWayButton.node.on("click", this.OnGetWayClick, this)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this._coreSid ? (this.NoCorePage.active = !1, this.CorePage.active = !0, this._powerCoreData = m.DataCenter.Instance.GetDataById(d.PowerCore_Model, this._coreSid), this._powerCoreConfig = m.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, this._powerCoreData.ItemId), this.ShowPowerCore()) : (this.NoCorePage.active = !0, this.CorePage.active = !1), this.SetCustomLayout(), this.SetPowerCoreEmptyLTip()
                }, t.prototype.ShowPowerCore = function() {
                    if (!this._itemComponent) {
                        var e = cc.instantiate(this._itemPrefab);
                        e.setParent(this.ItemContainer), this._itemComponent = e.getComponent(g.ItemComponent)
                    }
                    this.CoreName.string = this._powerCoreData.ItemId.ToItemName(), this._itemComponent.Init({
                        ItemId: this._powerCoreConfig.Id,
                        StarLevel: this._powerCoreConfig.Star
                    }, g.ItemComponentType.ItemWithStar);
                    for (var t = 0; t < this.CoreAttributeIcon.length; t++) {
                        var n = C.default.GetHeroAttribute(this._attributeArr[2 * t], this._attributeArr[2 * t + 1]);
                        this.CoreAttributeIcon[t].spriteFrame = n.Icon, this.CoreAttributeValue[t].string = "+" + n.Value
                    }
                    this._skillId = this._powerCoreConfig.Skills[1], this.SkillName.string = this._skillId.ToHeroSkillName()
                }, t.prototype.SetCustomLayout = function() {
                    this._isCustomLayoutInit || (this.CoreShowCustomLayout.Init(this._coreItemPrefab), this._isCustomLayoutInit = !0), this._coreModelArray = h.DataCenter.Instance.GetDataList(d.PowerCore_Model), this._coreModelArray.sort(this.PowerCoreSort.bind(this)), this.CoreShowCustomLayout.RenderLayOut(this._coreModelArray.length)
                }, t.prototype.PowerCoreSort = function(e, t) {
                    var n = m.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, e.ItemId),
                        o = m.ConfigDataComponent.Instance.GetConfigById(p.PowerCore_Config, t.ItemId);
                    return n.Star > o.Star ? -1 : n.Star < o.Star ? 1 : e.OwnerId > 0 && t.OwnerId <= 0 ? 1 : e.OwnerId <= 0 && t.OwnerId > 0 ? -1 : e.Level < t.Level ? 1 : -1
                }, t.prototype.SetPowerCoreEmptyLTip = function() {
                    this._coreModelArray.length > 0 ? this.PowerCoreEmptyTip.node.active = !1 : this.PowerCoreEmptyTip.node.active = !0
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    this.CoreShowCustomLayout == t && e.forEach(function(e, t) {
                        var o = n._coreModelArray[t].Sid;
                        if (n._usedByEquipmentSet) {
                            var r = v.default.GetEquipmentSetInfo(o, f.ArtefactRelicEquipIndex.PowerCore),
                                i = {};
                            i.Sid = o, i.IsSelf = o == n._coreSid, r && (i.EquipmentSetTeamIndex = r.equipmentSetTeamIndex, i.EquipmentSetTeamSlot = r.equipmentSetTeamSlot, i.EquipmentSetIndex = r.equipmentSetIndex), e.getComponent(I.default).Init(n._coreModelArray[t], null, n._itemPrefab, i)
                        } else e.getComponent(I.default).Init(n._coreModelArray[t], n._heroSid, n._itemPrefab)
                    })
                }, t.prototype.OnGetWayClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.ItemGetWayPanel.Path, _.CommonItemId.AbstractPowerCoreId)
                }, t.prototype.OnSkillButtonClick = function() {
                    l.UIManager.Instance.ShowUIPanel(c.PanelConfig.SkillTipsPanel.Path, this._skillId, this.SkillButton.node, this._powerCoreConfig.Skills[0])
                }, t.prototype.OnWearHolyRelicEqu = function(e) {
                    var t, n;
                    t = f.ArtefactRelicEquipIndex.PowerCore, n = f.ArtefactRelicEquipIndex.PowerCore;
                    var o = {};
                    e.IsSelf ? (o.Type = 1, o.CurEquipType = t, o.CurTeamIndex = this._commonEquipSetData.TeamIndex, o.CurSlot = this._commonEquipSetData.Slot, o.CurIndex = this._commonEquipSetData.Index) : this._coreSid || null != e.EquipmentSetTeamIndex && null != e.EquipmentSetTeamIndex ? (o.Type = 3, o.CurEquipType = t, o.CurTeamIndex = this._commonEquipSetData.TeamIndex, o.CurSlot = this._commonEquipSetData.Slot, o.CurIndex = this._commonEquipSetData.Index, o.TargetEquipType = n, o.TargetTeamIndex = e.EquipmentSetTeamIndex, o.TargetSlot = e.EquipmentSetTeamSlot, o.TargetIndex = e.EquipmentSetIndex, o.TargetSid = e.Sid) : (o.Type = 2, o.CurTeamIndex = this._commonEquipSetData.TeamIndex, o.CurSlot = this._commonEquipSetData.Slot, o.CurIndex = this._commonEquipSetData.Index, o.TargetEquipType = n, o.TargetSid = e.Sid), l.Game.EventDispatcher.Emit(y.EventKeys.EVENT_COMMON_EQUIPMENT_SET_DATA, o), l.UIManager.Instance.BackUIPanel()
                }, i([w(cc.Node)], t.prototype, "NoCorePage", void 0), i([w(cc.Label)], t.prototype, "NoCoreLabel", void 0), i([w(cc.Label)], t.prototype, "GetWayLabel", void 0), i([w(cc.Button)], t.prototype, "GetWayButton", void 0), i([w(cc.Node)], t.prototype, "CorePage", void 0), i([w(cc.Node)], t.prototype, "ItemContainer", void 0), i([w(cc.Label)], t.prototype, "CoreName", void 0), i([w(cc.Label)], t.prototype, "CurrentWearTag", void 0), i([w(cc.Sprite)], t.prototype, "CoreAttributeIcon", void 0), i([w(cc.Label)], t.prototype, "CoreAttributeValue", void 0), i([w(cc.Button)], t.prototype, "SkillButton", void 0), i([w(cc.Label)], t.prototype, "SkillName", void 0), i([w(u.default)], t.prototype, "CoreShowCustomLayout", void 0), i([w(cc.Label)], t.prototype, "PowerCoreEmptyTip", void 0), i([S], t)
            }(l.BaseUIPanel);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/PowerCoreItemComponent": "PowerCoreItemComponent",
        "./SelectLuckyCharmHint": "SelectLuckyCharmHint"
    }],
    PowerPageTaskComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fc8783/fRlJfJjPvQvEDhB0", "PowerPageTaskComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../Components/ItemComponent"),
            u = e("../../Auxiliary/DataUtlity"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TaskDesc = null, t.Layout = null, t.GetBtn = null, t.GetBtnLabel = null, t.NotReachedBtn = null, t.NotReachedBtnLabel = null, t.GoToBtn = null, t.GoToBtnLabel = null, t.RedDot = null, t.HasGot = null, t._items = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.GetBtn.node.on("click", this.OnGetReward, this), this.GoToBtn.node.on("click", this.OnGoTo, this), this.NotReachedBtn.node.on("click", this.OnNotReached, this), this.GetBtnLabel.string = "receive".ToUILocale(), this.NotReachedBtnLabel.string = "allUserImpactRank_NoComplete".ToUILocale(), this.GoToBtnLabel.string = "task_goto".ToUILocale()
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(s.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), this.NotReachedBtn.node.off("click", this.OnNotReached, this), this.GetBtn.node.off("click", this.OnGetReward, this), this.GoToBtn.node.off("click", this.OnGoTo, this)
                }, t.prototype.Init = function(e) {
                    this._param = e, this._taskDesc = u.default.GetTaskDesc(this._param.TaskConfig), this.TaskDesc.string = this._taskDesc, this.SetButtonState(), this.SetReward()
                }, t.prototype.SetButtonState = function() {
                    this.RedDot.active = !1, this.GetBtn.node.active = !1, this.GoToBtn.node.active = !1, this.HasGot.active = !1, this.NotReachedBtn.node.active = !1, this._param.TaskModel.IsCompleted ? this.HasGot.active = !0 : this._param.TaskModel.Progress >= this._param.TaskConfig.TotalCount ? (this.RedDot.active = !0, this.GetBtn.node.active = !0) : this._param.TaskConfig.GetWayId ? this.GoToBtn.node.active = !0 : this.NotReachedBtn.node.active = !0, null != this._param.CompulsionRedDot && (this.RedDot.active = this._param.CompulsionRedDot)
                }, t.prototype.SetReward = function() {
                    for (var e = this._param.TaskConfig.Rewards, t = 0; t < e.length; t++) {
                        var n = this._items[t];
                        if (!n) {
                            var o = cc.instantiate(this._param.ItemPrefab);
                            o.setParent(this.Layout.node), n = o.getComponent(c.ItemComponent), this._items.push(n)
                        }
                        n.node.active = !0, n.Init({
                            ItemId: e[t].Items[0],
                            Count: e[t].Items[1]
                        }), n.SetSelectFlagState(this.HasGot.active)
                    }
                    for (t = e.length; t < this._items.length; t++) this._items[t].node.active = !1
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.Layout.node.children.indexOf(t) && l.UIUtlity.ShowItemTip(t.getComponent(c.ItemComponent).ItemId, t)
                }, t.prototype.OnGetReward = function() {
                    this._param.GetCallBack && this._param.GetCallBack()
                }, t.prototype.OnGoTo = function() {
                    var e, t = null !== (e = this._param.TaskConfig.GetWayId) && void 0 !== e ? e : 0;
                    t > 0 ? u.default.ShowPanelByGetWayId(t, !0) : a.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnNotReached = function() {
                    null == this._param.CompulsionRedDot ? l.UIUtlity.ShowFloatingHint(this._taskDesc) : l.UIUtlity.ShowFloatingHint("infiniteGift_limit_buy_gift".ToUILocale())
                }, i([h(cc.Label)], t.prototype, "TaskDesc", void 0), i([h(cc.Layout)], t.prototype, "Layout", void 0), i([h(cc.Button)], t.prototype, "GetBtn", void 0), i([h(cc.Label)], t.prototype, "GetBtnLabel", void 0), i([h(cc.Button)], t.prototype, "NotReachedBtn", void 0), i([h(cc.Label)], t.prototype, "NotReachedBtnLabel", void 0), i([h(cc.Button)], t.prototype, "GoToBtn", void 0), i([h(cc.Label)], t.prototype, "GoToBtnLabel", void 0), i([h(cc.Node)], t.prototype, "RedDot", void 0), i([h(cc.Node)], t.prototype, "HasGot", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PowerTaskPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "49ccdJaB7tMSpfZelRaQ9Or", "PowerTaskPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../../Consts/Etc"),
            g = e("../../RedDot/RedDotManager"),
            m = e("../Components/CustomLayout"),
            I = e("../../Channel/ChannelManager"),
            _ = e("../../../Consts/GameEventIds"),
            C = e("./PowerPageTaskComponent"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !0), t.Banner = null, t.ArtWord = null, t.CustomLayout = null, t.LeftTime = null, t.FreeReward = null, t.BuyBtn = null, t.BuyBtnLabel = null, t.RuleBtn = null, t.RuleComponent = null, t.RuleBg = null, t.RuleContent = null, t.TaskNode = null, t._assets = [], t._taskConfigs = [], t._freeRedDot = {}, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySucess, this), l.Game.EventDispatcher.On(_.GameEventIds.ChangeDataDetail.Fmt(c.UserTask_Model._n_), this.OnTaskDataChange, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_PAY_SUCCESS, this.OnPaySucess, this), l.Game.EventDispatcher.Off(_.GameEventIds.ChangeDataDetail.Fmt(c.UserTask_Model._n_), this.OnTaskDataChange, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        var o = e.getComponent(C.default),
                            r = n._taskConfigs[t],
                            i = r.Id,
                            a = void 0;
                        n.BuyBtn.node.active && (a = !1), o.Init({
                            TaskConfig: r,
                            TaskModel: n._taskModels[i],
                            ItemPrefab: n._itemPrefab,
                            GetCallBack: n.OnGetRewards.bind(n),
                            CompulsionRedDot: a
                        })
                    })
                }, t.prototype.OnTaskDataChange = function(e) {
                    var t;
                    for (var n in e) {
                        var o = parseInt(n),
                            r = Math.floor(o / y.Etc.Multiplier);
                        if (this._activityId = r) {
                            t = !0;
                            break
                        }
                    }
                    t && (this.CollatingTask(), this.CustomLayout.RenderLayOut(this._taskConfigs.length))
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RuleContent.string = "powerTask_rule".ToUILocale(), this.BuyBtnLabel.string = "powerTask_buy".ToUILocale(), this.BuyBtn.node.on("click", this.OnBuyGift, this), this.RuleBtn.node.on("click", this.OnRule, this), this.FreeReward.node.on("click", this.OnGetFreeReward, this), this.RuleComponent.node.on("click", this.OnCloseRule, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._activityId = t[0], this._activityConfig = u.DataCenter.Instance.ActivityConfigs[this._activityId], this.CustomLayout.Init(this.TaskNode), this._activityEndTime = h.default.Instance.ComputeDeadTime(this._activityConfig.Common)
                }, t.prototype.DisPlay = function(t) {
                    if (e.prototype.DisPlay.call(this, t), !t) {
                        if (this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), !this._activityModel) return void l.UIManager.Instance.BackUIPanel();
                        this.LoadPic(), this.SetDeadLine(), this.schedule(this.SetDeadLine, 1), this.HideBuyBtn(), this.SetTaskConfig(), this.CollatingTask(), this.CustomLayout.RenderLayOut(this._taskConfigs.length), g.RedDotManager.Instance.BindNodeByResult(this.FreeReward.node, this._freeRedDot, !this._activityModel.IntValue || this._activityModel.IntValue <= 0)
                    }
                }, t.prototype.LoadPic = function() {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return [4, Promise.all([h.default.LoadActivityTexture(this._activityConfig.Common.BannerImage), h.default.LoadActivityTexture(this._activityConfig.Common.Pictures[0])]).then(function(t) {
                                        var n;
                                        if (!e.isValid) return l.AssetsManager.Instance.UnloadAsset(t[0]), void l.AssetsManager.Instance.UnloadAsset(t[1]);
                                        (n = e._assets).push.apply(n, t), e.Banner.spriteFrame = t[0], e.ArtWord.spriteFrame = t[1]
                                    })];
                                case 1:
                                    return t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetDeadLine = function() {
                    var e = this._activityEndTime - u.RpcComponent.Instance.ServerTime;
                    e < 0 ? l.UIManager.Instance.BackUIPanel() : this.LeftTime.string = "Activity_LuckyBag_LeftTime".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
                }, t.prototype.HideBuyBtn = function() {
                    var e = this._activityConfig._Packs[0].Id;
                    this.BuyBtn.node.active = !this._activityModel.Packs || !this._activityModel.Packs[e] || this._activityModel.Packs[e].Items.length <= 0 || this._activityModel.Packs[e].Items[0] <= 0
                }, t.prototype.SetTaskConfig = function() {
                    for (var e = 0; e < this._activityConfig._Tasks.length; e++) this._taskConfigs.push(this._activityConfig._Tasks[e])
                }, t.prototype.CollatingTask = function() {
                    var e = this;
                    this._taskModels || (this._taskModels = {});
                    for (var t = 0; t < this._taskConfigs.length; t++) {
                        var n = this._taskConfigs[t].Id,
                            o = this._taskModels[n];
                        o && o.IsCompleted || (this._taskModels[n] = u.DataCenter.Instance.GetDataById(c.UserTask_Model, this._activityId * y.Etc.Multiplier + n))
                    }
                    this._taskConfigs.sort(function(t, n) {
                        var o = t.Id,
                            r = n.Id,
                            i = e._taskModels[o],
                            a = e._taskModels[r];
                        return i.IsCompleted && !a.IsCompleted ? 1 : !i.IsCompleted && a.IsCompleted ? -1 : i.Progress >= t.TotalCount && a.Progress < n.TotalCount ? -1 : i.Progress < t.TotalCount && a.Progress >= n.TotalCount ? 1 : t.Id - n.Id
                    })
                }, t.prototype.OnBuyGift = function() {
                    if (this._activityEndTime < u.RpcComponent.Instance.ServerTime) f.UIUtlity.ShowFloatingHint("Activity_end".ToUILocale());
                    else {
                        var e = this._activityConfig._Packs[0].Id;
                        I.default.Instance.Pay(e, this._activityId)
                    }
                }, t.prototype.OnPaySucess = function(e) {
                    this.isValid && e.ActivityId == this._activityId && (this._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._activityId), this.BuyBtn.node.active = !1, this.CustomLayout.RenderLayOut(this._taskConfigs.length))
                }, t.prototype.OnRule = function() {
                    this.RuleComponent.node.active = !0, cc.Tween.stopAllByTarget(this.RuleBg), this.RuleBg.scaleY = 0, cc.tween(this.RuleBg).to(.05, {
                        scaleY: 1
                    }).start()
                }, t.prototype.OnCloseRule = function() {
                    this.RuleComponent.node.active = !1
                }, t.prototype.OnGetFreeReward = function() {
                    var e = this;
                    if (this._activityEndTime < u.RpcComponent.Instance.ServerTime) f.UIUtlity.ShowFloatingHint("Activity_end".ToUILocale());
                    else if (this._activityModel.IntValue && this._activityModel.IntValue > 0) {
                        for (var t = [], n = 0; n < this._activityConfig.CustomPart.Rewards.length; n++) t.push({
                            ItemId: this._activityConfig.CustomPart.Rewards[n].Items[0],
                            Count: this._activityConfig.CustomPart.Rewards[n].Items[1]
                        });
                        l.UIManager.Instance.ShowUIPanel(p.PanelConfig.HintPanel.Path, "reward".ToUILocale(), t, null, null, null, null, null, null)
                    } else {
                        var o = c.Req_Activity_PowerTaskReward.create();
                        o.ActivityId = this._activityId, u.RpcComponent.Instance.Call(o, function(t) {
                            l.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, t.Rewards), e._activityModel = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, e._activityId), g.RedDotManager.Instance.BindNodeByResult(e.FreeReward.node, e._freeRedDot, !e._activityModel.IntValue || e._activityModel.IntValue <= 0)
                        })
                    }
                }, t.prototype.OnGetRewards = function() {
                    var e = this;
                    if (this.BuyBtn.node.active) f.UIUtlity.ShowFloatingHint("infiniteGift_limit_buy_gift".ToUILocale());
                    else if (this._activityEndTime < u.RpcComponent.Instance.ServerTime) f.UIUtlity.ShowFloatingHint("Activity_end".ToUILocale());
                    else {
                        for (var t = [], n = 0; n < this._taskConfigs.length; n++) {
                            var o = this._taskConfigs[n],
                                r = this._taskModels[o.Id];
                            !r || r && r.IsCompleted || r.Progress >= o.TotalCount && t.push(o.Id)
                        }
                        if (!(t.length <= 0)) {
                            var i = c.Req_Activity_CommonTaskReward.create();
                            i.ActivityId = this._activityId, i.TaskIds = t, u.RpcComponent.Instance.Call(i, function(n) {
                                for (var o = 0; o < t.length; o++) {
                                    var r = u.DataCenter.Instance.GetDataById(c.UserTask_Model, e._activityId * y.Etc.Multiplier + t[o]);
                                    e._taskModels[t[o]] = r
                                }
                                l.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, n.Rewards)
                            })
                        }
                    }
                }, t.prototype.onDestroy = function() {
                    for (var e = 0; e < this._assets.length; e++) l.AssetsManager.Instance.UnloadAsset(this._assets[e]);
                    this._assets = []
                }, i([S(cc.Sprite)], t.prototype, "Banner", void 0), i([S(cc.Sprite)], t.prototype, "ArtWord", void 0), i([S(m.default)], t.prototype, "CustomLayout", void 0), i([S(cc.RichText)], t.prototype, "LeftTime", void 0), i([S(cc.Button)], t.prototype, "FreeReward", void 0), i([S(cc.Button)], t.prototype, "BuyBtn", void 0), i([S(cc.Label)], t.prototype, "BuyBtnLabel", void 0), i([S(cc.Button)], t.prototype, "RuleBtn", void 0), i([S(cc.Button)], t.prototype, "RuleComponent", void 0), i([S(cc.Node)], t.prototype, "RuleBg", void 0), i([S(cc.RichText)], t.prototype, "RuleContent", void 0), i([S(cc.Node)], t.prototype, "TaskNode", void 0), i([b], t)
            }(l.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "./PowerPageTaskComponent": "PowerPageTaskComponent"
    }],
    PrefabListContainerComp: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f591cGp7M9MIbaBYYoGunJc", "PrefabListContainerComp");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = cc._decorator,
            u = c.ccclass,
            p = (c.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._compList = [], t
                }
                return r(t, e), Object.defineProperty(t.prototype, "CompList", {
                    get: function() {
                        return this._compList
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function(e, t, n) {
                    this._prefabPath = e, this._compType = t, this._CompHandler = n
                }, t.prototype.Set = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n, o;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return this.MaxLength = e, [4, this.CheckPrefab()];
                                case 1:
                                    if (r.sent(), !this._compList) return [2];
                                    for (o = 0; o < e; o++) t = void 0, this._compList[o] ? (t = this._compList[o]).node.active = !0 : (n = cc.instantiate(this._prefabCache), this.node.addChild(n), t = n.getComponent(this._compType), this._compList.push(t)), this._CompHandler(t, o);
                                    for (o = e; o < this._compList.length; o++) this._compList[o].node.active = !1;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.CheckPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._prefabCache ? [3, 2] : (e = this, [4, l.AssetsManager.Instance.LoadAsset(this._prefabPath, cc.Prefab)]);
                                case 1:
                                    e._prefabCache = t.sent(), this.isValid || l.AssetsManager.Instance.UnloadAsset(this._prefabCache), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    l.AssetsManager.Instance.UnloadAsset(this._prefabCache)
                }, i([u], t)
            }(cc.Component));
        n.default = p, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    PreloadLocaleStruct: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3644aG6U11OqJrA722SvSJB", "PreloadLocaleStruct"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), cc._RF.pop()
    }, {}],
    PreloadLocale_cn: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "80821ZQU9JP5JytbDG3qJ+Y", "PreloadLocale_cn"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.locale = void 0, n.locale = {
            ConnectingServer: "\u6b63\u5728\u83b7\u53d6\u670d\u52a1\u5668\u4fe1\u606f\uff0c\u8bf7\u8010\u5fc3\u7b49\u5019...",
            DownloadeBundle: "\u6b63\u5728\u66f4\u65b0\u6e38\u620f\u8d44\u6e90\uff0c\u5f53\u524d\u8fdb\u5ea6: {0}/100",
            DownloadConfigure: "\u6b63\u5728\u66f4\u65b0\u6e38\u620f\u914d\u7f6e",
            ConnectServerError: "\u65e0\u6cd5\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5",
            DownloadError: "\u4e0b\u8f7d\u6e38\u620f\u8d44\u6e90\u51fa\u9519\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5",
            ButtonRetry: "\u91cd \u8fde",
            DefaultDialogTitle: "\u7cfb\u7edf\u63d0\u793a"
        }, cc._RF.pop()
    }, {}],
    PreloadLocale_en: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3d18fLXU5dGI6MCFDec2Kqz", "PreloadLocale_en"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.locale = void 0, n.locale = {
            ConnectingServer: "Please be patient while we get the server information...",
            DownloadeBundle: "Updating game resources, current progress: {0}/100.",
            DownloadConfigure: "Updating game configuration.",
            ConnectServerError: "Can't connect to the server. Please check internet connection.",
            DownloadError: "Can't download game resources. Please check internet connection.",
            ButtonRetry: "Reconnecting",
            DefaultDialogTitle: "System Message"
        }, cc._RF.pop()
    }, {}],
    PreloadLocale_jp: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3f146QSTtRNMaG04I+aNLPf", "PreloadLocale_jp"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.locale = void 0, n.locale = {
            ConnectingServer: "\u30b5\u30fc\u30d0\u30fc\u60c5\u5831\u53d6\u5f97\u4e2d\u2026",
            DownloadeBundle: "\u30c7\u30fc\u30bf\u66f4\u65b0\u4e2d\u3001\u9032\u6357: {0}/100",
            DownloadConfigure: "\u30b2\u30fc\u30e0\u60c5\u5831\u66f4\u65b0\u4e2d",
            ConnectServerError: "\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002",
            DownloadError: "\u66f4\u65b0\u30a8\u30e9\u30fc\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002",
            ButtonRetry: "\u518d\u63a5\u7d9a",
            DefaultDialogTitle: "Tips"
        }, cc._RF.pop()
    }, {}],
    PreloadLocale: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "d6af9JKVhFEVIchdtSb19S2", "PreloadLocale");
        var o = this && this.__createBinding || (Object.create ? function(e, t, n, o) {
                void 0 === o && (o = n), Object.defineProperty(e, o, {
                    enumerable: !0,
                    get: function() {
                        return t[n]
                    }
                })
            } : function(e, t, n, o) {
                void 0 === o && (o = n), e[o] = t[n]
            }),
            r = this && this.__exportStar || function(e, t) {
                for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n)
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.jp = n.en = n.cn = void 0, r(e("./PreloadLocaleStruct"), n), n.cn = e("./PreloadLocale_cn"), n.en = e("./PreloadLocale_en"), n.jp = e("./PreloadLocale_jp"), cc._RF.pop()
    }, {
        "./PreloadLocaleStruct": "PreloadLocaleStruct",
        "./PreloadLocale_cn": "PreloadLocale_cn",
        "./PreloadLocale_en": "PreloadLocale_en",
        "./PreloadLocale_jp": "PreloadLocale_jp"
    }],
    PrepareBattleUserItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9f81eBYCsNF+pIrowyCmPst", "PrepareBattleUserItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./ItemComponent"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AllianceName = null, t.UserName = null, t.ItemNode = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    if (!this._itemComponent) {
                        var n = cc.instantiate(t);
                        n.parent = this.ItemNode, this._itemComponent = n.getComponent(a.ItemComponent)
                    }
                    if (e && (e.HeroId || e.AngelId))
                        if (this.AllianceName.string = e.AllianceName, this.UserName.string = e.Name, e.HeroId) {
                            var o = l.ConfigDataComponent.Instance.GetConfigById(s.HeroSkin_Config, e.HeroId);
                            o ? this._itemComponent.Init({
                                ItemId: o.HeroId,
                                StarLevel: e.HeroStarLevel,
                                SkinId: o.Id
                            }, a.ItemComponentType.HeroInfo) : this._itemComponent.Init({
                                ItemId: e.HeroId,
                                StarLevel: e.HeroStarLevel
                            }, a.ItemComponentType.HeroInfo)
                        } else e.AngelId && this._itemComponent.Init({
                            ItemId: e.AngelId,
                            StarLevel: e.HeroStarLevel
                        }, a.ItemComponentType.Angel);
                    else this._itemComponent.SetHeroSimpleState()
                }, i([p(cc.Label)], t.prototype, "AllianceName", void 0), i([p(cc.Label)], t.prototype, "UserName", void 0), i([p(cc.Node)], t.prototype, "ItemNode", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "./ItemComponent": "ItemComponent"
    }],
    PrivilegeGiftBuyHintPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c3817jD9KhMt45kViTbCsKV", "PrivilegeGiftBuyHintPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Components/ItemComponent"),
            y = e("../../Channel/ChannelManager"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.TagLabel = null, t.PrivilegeTip = null, t.UnLockTip = null, t.ItemContainer = null, t.VipPointNode = null, t.VipPointTag = null, t.VipPointValue = null, t.BuyButton = null, t.BuyButtonLabel = null, t.DiscountValue = null, t.DiscountLabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(d.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftSuccess, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(d.EventKeys.EVENT_PAY_SUCCESS, this.OnBuyGiftSuccess, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "common_unlock".ToUILocale(), this.TagLabel.string = "ActivityMagicCompose_Privilege_Tag".ToUILocale(), this.UnLockTip.string = "unlock".ToUILocale(), this.BuyButton.node.on("click", this.OnBuyButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._giftConfig = t[0], this._activityId = t[1], this._privilegeTip = t[2]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), this.PrivilegeTip.string = this._privilegeTip, this.SetItemContaienr(), this.BuyButtonLabel.string = this._giftConfig.Money > 0 ? y.default.Instance.CurrencySymbol + y.default.Instance.ExchangeMoney(this._giftConfig.Money) : "shop_buyFree".ToUILocale(), this.VipPointNode.active = this._giftConfig.VipPoint > 0, this._giftConfig.VipPoint > 0 && (this.VipPointTag.string = "task_get_score_tag".ToUILocale(), this.VipPointValue.string = "x" + this._giftConfig.VipPoint), g.default.Instance.SetDisCount(this._giftConfig.Discount, this.DiscountValue, this.DiscountLabel)
                }, t.prototype.SetItemContaienr = function() {
                    for (var e = 0; e < this._giftConfig.Items.length; e++) {
                        var t = cc.instantiate(this._itemPrefab);
                        t.setParent(this.ItemContainer);
                        var n = this._giftConfig.Items[e].Items;
                        t.getComponent(f.ItemComponent).Init({
                            ItemId: n[0],
                            Count: n[1]
                        })
                    }
                }, t.prototype.OnBuyButtonClick = function() {
                    if (null == this._giftConfig.Money || 0 == this._giftConfig.Money) {
                        var e = new u.Req_Pay_ByDiamond;
                        e.Id = this._giftConfig.Id, e.ActivityId = this._activityId, p.RpcComponent.Instance.Call(e, function(e) {
                            c.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                        })
                    } else y.default.Instance.Pay(this._giftConfig.Id, this._activityId)
                }, t.prototype.OnBuyGiftSuccess = function() {
                    c.UIUtlity.ShowFloatingHint("luckycharm_unlocked".ToUILocale()), l.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && c.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "TagLabel", void 0), i([_(cc.Label)], t.prototype, "PrivilegeTip", void 0), i([_(cc.Label)], t.prototype, "UnLockTip", void 0), i([_(cc.Node)], t.prototype, "ItemContainer", void 0), i([_(cc.Node)], t.prototype, "VipPointNode", void 0), i([_(cc.Label)], t.prototype, "VipPointTag", void 0), i([_(cc.Label)], t.prototype, "VipPointValue", void 0), i([_(cc.Button)], t.prototype, "BuyButton", void 0), i([_(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([_(cc.Label)], t.prototype, "DiscountValue", void 0), i([_(cc.Label)], t.prototype, "DiscountLabel", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PrivilegeGiftComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3e9a0At0KNI/KWcxLlYWs95", "PrivilegeGiftComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../Consts/Etc"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Channel/ChannelManager"),
            y = e("../../Components/Components"),
            g = e("../../Components/RpcComponent"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../Components/ItemComponent"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.Banner = null, t.Tag = null, t.BannerLabel = null, t.ItemContainer = null, t.FirstSprite = null, t.CountDownLabel = null, t.BuyButton = null, t.BuyButtonLabel = null, t.AttainLabel = null, t.AttainNumber = null, t.AttainIcon = null, t.ExpGotZone = null, t.DiamondSprite = null, t.DiamondPrice = null, t.Redline = null, t.WorkTime = null, t._items = [], t._assets = [], t
                }
                return r(t, e), t.prototype.SetTitle = function(e) {
                    return this.Title.string = e, this
                }, t.prototype.SetTime = function(e, t) {
                    var n, o, r;
                    return 1 == t ? r = new cc.Color(129, 81, 28) : 2 == t ? r = new cc.Color(32, 36, 52) : 3 == t ? r = new cc.Color(28, 80, 129) : 4 == t && (r = new cc.Color(87, 28, 129)), n = "title" + t, o = 0 == e ? "heroSkin_forever".ToUILocale() : "workTime".ToUILocale().Fmt(e), this.Banner.spriteFrame = m.UIUtlity.COMMON_ATLAS4.getSpriteFrame(n), this.WorkTime.string = o, this.BannerLabel.getComponent(cc.LabelOutline).color = r, this
                }, t.prototype.SetBannerLabel = function(e) {
                    return this.BannerLabel.string = e, this
                }, t.prototype.SetItems = function(e, t) {
                    var n;
                    if (this.SetFirstSprite(t[0][0]), t.length > this._items.length) {
                        for (var o = 0; o < this._items.length; o++) n = y.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, t[o][0]), this._items[o].Init({
                            ItemId: t[o][0],
                            Count: t[o][1]
                        }, n.Star ? I.ItemComponentType.ItemWithStar : I.ItemComponentType.ItemCommon), this._items[o].node.name = t[o][0].toString(), (i = t[o][2]) && this._items[o].PlayLightingCircleEffect(i);
                        for (o = this._items.length; o < t.length; o++) {
                            var r = e.Get();
                            r.active = !0, r.setParent(this.ItemContainer), this._items[o] = r.getComponent(I.ItemComponent), n = y.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, t[o][0]), this._items[o].Init({
                                ItemId: t[o][0],
                                Count: t[o][1]
                            }, n.Star ? I.ItemComponentType.ItemWithStar : I.ItemComponentType.ItemCommon), this._items[o].node.name = t[o][0].toString(), (i = t[o][2]) && this._items[o].PlayLightingCircleEffect(i)
                        }
                    } else {
                        for (o = 0; o < t.length; o++) {
                            var i;
                            n = y.ConfigDataComponent.Instance.GetConfigById(l.ItemBase_Config, t[o][0]), this._items[o].Init({
                                ItemId: t[o][0],
                                Count: t[o][1]
                            }, n.Star ? I.ItemComponentType.ItemWithStar : I.ItemComponentType.ItemCommon), this._items[o].node.name = t[o][0].toString(), (i = t[o][2]) && this._items[o].PlayLightingCircleEffect(i)
                        }
                        for (o = t.length; o < this._items.length; o++) this._items[o].node.active = !1, e.Put(this._items[o].node);
                        this._items.length = t.length
                    }
                    return this
                }, t.prototype.SetButtonClick = function(e, t) {
                    return this._index = e, this._giftId = t, this.BuyButton.node.on("click", this.OnBuyButtonClick, this), this
                }, t.prototype.SetBuyButton = function(e, t, n, o) {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return null != this._resetTime ? [2] : (this.BuyButton.node.active = !0, this.CountDownLabel.node.active = !1, this.ExpGotZone.active = t > 0, this.BuyButton.node.y = this.ExpGotZone.active ? -44 : -22, this._price = e, this._exp = t, this._currencyType = n, this._discount = o, "" != this._currencyType ? (this.BuyButtonLabel.node.active = !0, this.DiamondSprite.active = !1, this.DiamondPrice.node.active = !1, this.Redline.active = !1, this.BuyButtonLabel.string = f.default.Instance.CurrencySymbol + e, this.AttainLabel.string = "task_get_score_tag".ToUILocale()) : (this.BuyButtonLabel.node.active = !1, this.DiamondSprite.active = !0, this.DiamondPrice.node.active = !0, this.Redline.active = this.ExpGotZone.active, this._discount = null, e <= y.DataCenter.Instance.GetItemCount(p.CommonItemId.Diamond) ? this.DiamondPrice.string = "<outline color = #684C1B width = 3>" + e + "</>" : this.DiamondPrice.string = "<outline color = #202434 width = 3><color = #ff5b5b>" + e + "</>", this.AttainLabel.string = "firstCharge_originalPrice".ToUILocale()), this.AttainNumber.string = "x" + t, [2, this])
                        })
                    })
                }, t.prototype.SetFirstSprite = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return t = d.default.Instance.GetItemPathById(e), [4, u.AssetsManager.Instance.LoadAsset(t, cc.SpriteFrame)];
                                case 1:
                                    return n = o.sent(), this.isValid ? (this.FirstSprite.spriteFrame = n, this._assets.push(n), [2]) : (u.AssetsManager.Instance.UnloadAsset(n), [2])
                            }
                        })
                    })
                }, t.prototype.SetCountDown = function(e) {
                    return this._resetTime = e, null == e ? this : (this.BuyButton.node.active = !1, this.CountDownLabel.node.active = !0, this.unscheduleAllCallbacks(), e == Number.POSITIVE_INFINITY ? (this.CountDownLabel.string = "mall_privilege_foreverwork".ToUILocale(), this) : (this.CountDown(), this.schedule(this.CountDown, 1), this))
                }, t.prototype.CountDown = function() {
                    var e, t = this._resetTime - g.RpcComponent.Instance.ServerTime;
                    if (t < 0) return this.SetBuyButton(this._price, this._exp, this._currencyType, this._discount), void this.unscheduleAllCallbacks();
                    var n = Math.floor(t / c.Etc.DayDuration),
                        o = Math.floor(t % c.Etc.DayDuration / c.Etc.HourDuration);
                    e = n >= 1 ? "mall_privilege_remain_day_hour".ToUILocale().Fmt(n, o) : "mall_privilege_remain_hour".ToUILocale().Fmt(o), this.CountDownLabel.string = e
                }, t.prototype.OnBuyButtonClick = function() {
                    u.Game.EventDispatcher.Emit(h.EventKeys.EVENT_MALL_BUTTONCLICK, this._index, this._giftId)
                }, t.prototype.onDisable = function() {
                    this.BuyButton.node.off("click", this.OnBuyButtonClick, this)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    }), this.unscheduleAllCallbacks()
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Sprite)], t.prototype, "Banner", void 0), i([v(cc.Sprite)], t.prototype, "Tag", void 0), i([v(cc.Label)], t.prototype, "BannerLabel", void 0), i([v(cc.Node)], t.prototype, "ItemContainer", void 0), i([v(cc.Sprite)], t.prototype, "FirstSprite", void 0), i([v(cc.Label)], t.prototype, "CountDownLabel", void 0), i([v(cc.Button)], t.prototype, "BuyButton", void 0), i([v(cc.Label)], t.prototype, "BuyButtonLabel", void 0), i([v(cc.Label)], t.prototype, "AttainLabel", void 0), i([v(cc.Label)], t.prototype, "AttainNumber", void 0), i([v(cc.Sprite)], t.prototype, "AttainIcon", void 0), i([v(cc.Node)], t.prototype, "ExpGotZone", void 0), i([v(cc.Node)], t.prototype, "DiamondSprite", void 0), i([v(cc.RichText)], t.prototype, "DiamondPrice", void 0), i([v(cc.Node)], t.prototype, "Redline", void 0), i([v(cc.Label)], t.prototype, "WorkTime", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ProgressRewardComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "44db16jcs9DALQ9Lx6wtKfb", "ProgressRewardComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = e("../Auxiliary/UIUtlity"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ReceiveSpine = null, t.ItemSprite = null, t.DetailButton = null, t.DescLabel = null, t.ProgressRichText = null, t.ReceivedNode = null, t._loadAssets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.ItemSprite.node.on(cc.Node.EventType.TOUCH_END, this.OnItemClick, this), this.DetailButton.node.on("click", this.OnDetailButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.ItemSprite.node.off(cc.Node.EventType.TOUCH_END, this.OnItemClick, this), this.DetailButton.node.off("click", this.OnDetailButtonClick, this)
                }, t.prototype.Init = function(e) {
                    this._data = e, this.DescLabel.string = e.Desc, this.SetProgress(), this.SetItemSprite(), this.SetRewardSpine()
                }, t.prototype.SetItemSprite = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e = c.default.Instance.GetItemPathById(this._data.ItemId), [4, l.AssetsManager.Instance.LoadAsset(e, cc.SpriteFrame)];
                                case 1:
                                    return t = n.sent(), this.isValid ? (this._loadAssets.push(t), this.ItemSprite.spriteFrame = t, [2]) : (l.AssetsManager.Instance.UnloadAsset(t), [2])
                            }
                        })
                    })
                }, t.prototype.SetRewardSpine = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this.ReceiveSpine.skeletonData ? [2] : [4, l.AssetsManager.Instance.LoadAsset("MallPanel/Spine/UI_effect_shangcheng_libao", sp.SkeletonData)];
                                case 1:
                                    return e = t.sent(), this.isValid ? (this._loadAssets.push(e), this.ReceiveSpine.skeletonData = e, this.SetRewardSpineInfo(), [2]) : (l.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.UpdateInfo = function(e, t, n, o, r) {
                    this._data.CurValue = e, this._data.IsReceive = t, n && (this._data.TotalValue = n), o && o != this._data.ItemId && (this._data.ItemId = o, this.SetItemSprite()), r && this._data.Desc != r && (this._data.Desc = r, this.DescLabel.string = this._data.Desc), this.SetProgress(), this.SetRewardSpineInfo()
                }, t.prototype.SetProgress = function() {
                    var e = this._data.CurValue >= this._data.TotalValue ? "#5ebc12" : "#ff4b4b";
                    this.ProgressRichText.string = "progressReward_progress".ToUILocale().Fmt(this._data.CurValue, this._data.TotalValue, e), this.ReceivedNode.active = this._data.IsReceive
                }, t.prototype.SetRewardSpineInfo = function() {
                    this.ReceiveSpine.node.active = !this._data.IsReceive && this._data.CurValue >= this._data.TotalValue, !this._data.IsReceive && this._data.CurValue >= this._data.TotalValue && this.ReceiveSpine.setAnimation(0, "Ani_effect_shangcheng_libao", !0)
                }, t.prototype.OnItemClick = function() {
                    this._data.IsReceive || (this._data.CurValue < this._data.TotalValue ? u.UIUtlity.ShowFloatingHint("progressReward_cant_receive".ToUILocale()) : this._data.ReceiveCallback())
                }, t.prototype.OnDetailButtonClick = function() {
                    u.UIUtlity.ShowItemTip(this._data.ItemId, this.ItemSprite.node)
                }, t.prototype.onDestroy = function() {
                    this._loadAssets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([h(sp.Skeleton)], t.prototype, "ReceiveSpine", void 0), i([h(cc.Sprite)], t.prototype, "ItemSprite", void 0), i([h(cc.Button)], t.prototype, "DetailButton", void 0), i([h(cc.Label)], t.prototype, "DescLabel", void 0), i([h(cc.RichText)], t.prototype, "ProgressRichText", void 0), i([h(cc.Node)], t.prototype, "ReceivedNode", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    ProgressRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3627ewMCj9Cer3Wxep/itAI", "ProgressRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ProgressRewardShowType = void 0;
        var l, c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("./ItemComponent"),
            g = e("./NodeJiggling"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.Item = 0] = "Item", e[e.Box = 1] = "Box"
        })(l = n.ProgressRewardShowType || (n.ProgressRewardShowType = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Point = null, t.PointOutLine = null, t.CubeBlue = null, t.CubeOrange = null, t.ItemRoot = null, t.RedDot = null, t.BoxSprite = null, t.BoxReceivedMask = null, t.BoxBtnNode = null, t.SelectBg = null, t.Select = null, t._data = null, t._commonItemPrefab = null, t._itemNode = null, t._yellowColor = new cc.Color(255, 230, 133), t._yellowOutlineColor = new cc.Color(104, 76, 27), t._whiteOutlineColor = new cc.Color(34, 22, 17), t
            }
            return r(t, e), Object.defineProperty(t.prototype, "PackId", {
                get: function() {
                    return this._data.Id
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.onLoad = function() {
                this.BoxBtnNode.on("click", this.OnClickBox, this)
            }, t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.InitUI = function(e) {
                this._data = e, this.SetCube(), this.SetPoint(), this._data.RewardShowType && this._data.RewardShowType != l.Item ? this.SetBoxSprite() : this.SetItem()
            }, t.prototype.UpdateUI = function(e) {
                this._data = e, this._data.RewardShowType && this._data.RewardShowType != l.Item ? this.SetBoxSprite() : this.SetItem()
            }, t.prototype.SetCube = function() {
                this._data.Type ? (this.CubeBlue.active = !1, this.CubeOrange.active = !0) : (this.CubeBlue.active = !0, this.CubeOrange.active = !1)
            }, t.prototype.SetPoint = function() {
                this._data.CurProgress >= this._data.Point ? (this.Point.string = this._data.Point.toString(), this.Point.node.color = this._yellowColor, this.PointOutLine.color = this._yellowOutlineColor) : (this.Point.node.color = cc.Color.WHITE, this.PointOutLine.color = this._whiteOutlineColor, this.Point.string = this._data.Point.toString())
            }, t.prototype.SetItem = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._commonItemPrefab ? [3, 2] : (e = this, [4, p.AssetsManager.Instance.LoadAsset(h.BundlePath.ItemComponent)]);
                            case 1:
                                if (e._commonItemPrefab = n.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                n.label = 2;
                            case 2:
                                return this._itemNode || (this._itemNode = cc.instantiate(this._commonItemPrefab), this._itemNode.parent = this.ItemRoot), this._itemNode.name = this._data.ItemId.toString(), (t = this._itemNode.getComponent(y.ItemComponent)).Init({
                                    ItemId: this._data.ItemId,
                                    Count: this._data.ItemNum
                                }, y.ItemComponentType.ItemCommon), t.Count.fontSize = 53, t.Count.lineHeight = 0, t.SetReceivedTagState(this._data.IsReceive), this.SetRedDot(), [2]
                        }
                    })
                })
            }, t.prototype.SetBoxSprite = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._data.BoxSprite ? (this.BoxBtnNode.active = !0, this.BoxSprite.spriteFrame = this._data.BoxSprite, this.BoxReceivedMask.active = this._data.IsReceive, !this._data.IsReceive && this._data.CurProgress >= this._data.Point ? this.BoxSprite.node.getComponent(g.default).Enable() : this.BoxSprite.node.getComponent(g.default).Disable(), this.SetRedDot(), [2]) : [2]
                    })
                })
            }, t.prototype.SetRedDot = function() {
                this.RedDot.active = !this._data.IsReceive && this._data.CurProgress >= this._data.Point
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.ItemRoot.children.indexOf(t) && (this._data.IsReceive ? f.UIUtlity.ShowItemTip(e, this.ItemRoot) : this._data.CurProgress >= this._data.Point ? this._data.Callback && this._data.Callback(this._data.Id) : f.UIUtlity.ShowItemTip(e, this.ItemRoot))
            }, t.prototype.onDestroy = function() {
                null != this._commonItemPrefab && (p.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), this._commonItemPrefab = null)
            }, t.prototype.SetPointLabel = function(e) {
                this.Point.string = e
            }, t.prototype.RefreshStyle = function(e, t) {
                this._data.CurProgress = e, this._data.IsReceive = t, this._data.RewardShowType && this._data.RewardShowType != l.Item ? this.SetBoxSprite() : this.SetItem()
            }, t.prototype.ScaleItem = function(e) {
                this.ItemRoot.parent.scaleX = e, this.ItemRoot.parent.scaleY = e
            }, t.prototype.OnClickBox = function() {
                if (this._data.RewardShowType == l.Box)
                    if (!this._data.IsReceive && this._data.CurProgress >= this._data.Point) this._data.Callback && this._data.Callback(this._data.Id);
                    else {
                        var e = this._data.ItemId,
                            t = this._data.ItemNum,
                            n = e.map(function(e, n) {
                                if (null != t[n]) return new c.UserItem_Model({
                                    ItemId: e,
                                    Count: t[n]
                                })
                            });
                        f.UIUtlity.ShowHintPanel("reward".ToUILocale(), n)
                    }
            }, i([_(cc.Label)], t.prototype, "Point", void 0), i([_(cc.LabelOutline)], t.prototype, "PointOutLine", void 0), i([_(cc.Node)], t.prototype, "CubeBlue", void 0), i([_(cc.Node)], t.prototype, "CubeOrange", void 0), i([_(cc.Node)], t.prototype, "ItemRoot", void 0), i([_(cc.Node)], t.prototype, "RedDot", void 0), i([_(cc.Sprite)], t.prototype, "BoxSprite", void 0), i([_(cc.Node)], t.prototype, "BoxReceivedMask", void 0), i([_(cc.Node)], t.prototype, "BoxBtnNode", void 0), i([_(cc.Sprite)], t.prototype, "SelectBg", void 0), i([_(cc.Sprite)], t.prototype, "Select", void 0), i([I], t)
        }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent",
        "./NodeJiggling": "NodeJiggling"
    }],
    ProgressRewardNode: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b5f449erNJMPKhQdvWKcRCB", "ProgressRewardNode");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ValueLabel = null, t.ItemContainer = null, t.NodeSprite = null, t.TouchCover = null, t.Reddot = null, t
                }
                return r(t, e), Object.defineProperty(t.prototype, "item", {
                    get: function() {
                        return this._item
                    },
                    set: function(e) {
                        null == this._item && (this._item = e, this._item.node.setParent(this.ItemContainer), this._target = this.node.children[1], this._originPos = this._target.position)
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t.prototype, "reddot", {
                    set: function(e) {
                        this.Reddot.active = e, this.Reddot.active ? null == this._tween && (this._tween = cc.tween(this._target).repeatForever(cc.tween().to(1.5, {
                            position: this._originPos.add(new cc.Vec3(0, 20, 0))
                        }).to(1.5, {
                            position: this._originPos
                        })).start()) : null != this._tween && (this._tween.stop(), this._tween = null, this._target.setPosition(this._originPos))
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([l(cc.Label)], t.prototype, "ValueLabel", void 0), i([l(cc.Node)], t.prototype, "ItemContainer", void 0), i([l(cc.Sprite)], t.prototype, "NodeSprite", void 0), i([l(cc.Node)], t.prototype, "TouchCover", void 0), i([l(cc.Node)], t.prototype, "Reddot", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    PurchaseWayItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3b3cbw6UspNt659qHNrNngZ", "PurchaseWayItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/ConfigProto"),
            l = e("../../Components/Components"),
            c = e("../Components/ItemComponent"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Channel/ChannelManager"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/EventKeys"),
            g = cc._decorator,
            m = g.ccclass,
            I = g.property,
            _ = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.ItemsContainer = null, t.GoToBtn = null, t.GoToBtnLabel = null, t.DiamondNode = null, t.DiamondCount = null, t.LimitHint = null, t.LimitHintRichText = null, t.VIPRewardNode = null, t.RewardLabel = null, t.RewardCount = null, t.DiscountNode = null, t.DiscountDarkNode = null, t.DiscountLabel = null, t.SoldOutNode = null, t.SoldOutLabel = null, t.DarkMaskNode = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.Init = function(e, t, n) {
                    if (this._giftId = e, this._giftPackConfig = l.ConfigDataComponent.Instance.GetConfigById(s.GiftPack_Config, e), this._itemPrefab = t, this._activityId = n, n) {
                        var o = h.DataCenter.Instance.ActivityConfigs[n];
                        if (o && o._Packs) {
                            var r = o._Packs;
                            this._giftPackConfig = r.find(function(t) {
                                return t.Id == e
                            }), this.Name.string = this._giftPackConfig.Name;
                            var i = h.DataCenter.Instance.GetDataById(d.UserActivity_Model, n);
                            this._boughtCount = i.Packs[e] && i.Packs[e].Items[0] ? i.Packs[e].Items[0] : 0
                        }
                    } else this.Name.string = e.ToGiftPackName(), this._boughtCount = u.default.Instance.GetGiftBuyCount(this._giftId);
                    this.ConfigItems(), this.ConfigGiftInfo(), this.SetDiscount()
                }, t.prototype.ConfigItems = function() {
                    this.ItemsContainer.destroyAllChildren();
                    for (var e = 0; e < this._giftPackConfig.Items.length; e++) {
                        var t = this._giftPackConfig.Items[e].Items,
                            n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.ItemsContainer), n.getComponent(c.ItemComponent).Init({
                            ItemId: t[0],
                            Count: t[1]
                        })
                    }
                }, t.prototype.ConfigGiftInfo = function() {
                    if (this._boughtCount >= this._giftPackConfig.LimitCount) return this.GoToBtn.node.active = !1, this.LimitHintRichText.node.parent.active = !1, this.SoldOutNode.active = !0, this.DiscountDarkNode.active = !0, this.DarkMaskNode.active = !0, void(this.SoldOutLabel.string = "soldOut".ToUILocale());
                    this.GoToBtn.node.active = !0, this.SoldOutNode.active = !1, this.DiscountDarkNode.active = !1, this.DarkMaskNode.active = !1, this._giftPackConfig.LimitType > 0 ? (this.LimitHintRichText.node.parent.active = !0, this.LimitHintRichText.string = ("mall_buyLimit_" + this._giftPackConfig.LimitType).ToUILocale().Fmt("<color=#6eeea7>" + (this._giftPackConfig.LimitCount - this._boughtCount), this._giftPackConfig.LimitCount + "</color>")) : this.LimitHintRichText.node.parent.active = !1, 0 == this._giftPackConfig.Money ? (this.DiamondNode.active = !1, this.GoToBtnLabel.string = "shop_buyFree".ToUILocale()) : this._giftPackConfig.PayId ? (this.DiamondNode.active = !1, this.GoToBtnLabel.node.active = !0, this.GoToBtnLabel.string = p.default.Instance.CurrencySymbol + p.default.Instance.ExchangeMoney(this._giftPackConfig.Money)) : (this.DiamondNode.active = !0, this.GoToBtnLabel.node.active = !1, this.DiamondCount.string = this._giftPackConfig.Money.toString()), this._giftPackConfig.VipPoint > 0 ? (this.VIPRewardNode.active = !0, this.RewardLabel.string = "task_get_score_tag".ToUILocale(), this.RewardCount.string = "x" + this._giftPackConfig.VipPoint) : this.VIPRewardNode.active = !1, this.GoToBtn.node.on("click", this.OnBuy, this)
                }, t.prototype.SetDiscount = function() {
                    this._giftPackConfig.Discount > 0 && this._boughtCount < this._giftPackConfig.LimitCount ? (this.DiscountNode.active = !0, this.DiscountLabel.string = this._giftPackConfig.Discount + "%" + "mall_giftPack_superValue".ToUILocale()) : this.DiscountNode.active = !1
                }, t.prototype.OnBuy = function() {
                    if (this._giftPackConfig.PayId) p.default.Instance.Pay(this._giftId, this._activityId);
                    else {
                        var e = new d.Req_Pay_ByDiamond;
                        e.Id = this._giftId, e.ActivityId = this._activityId, h.RpcComponent.Instance.Call(e, function(e) {
                            f.UIUtlity.ShwDisplayRewardPanel(e.Rewards), a.Game.EventDispatcher.Emit(y.EventKeys.EVENT_PAY_SUCCESS)
                        })
                    }
                }, t.prototype.OnClickItem = function(e, t) {
                    -1 != this.ItemsContainer.children.indexOf(t) && t.getComponent(c.ItemComponent).ShowItemTip()
                }, i([I(cc.Label)], t.prototype, "Name", void 0), i([I(cc.Node)], t.prototype, "ItemsContainer", void 0), i([I(cc.Button)], t.prototype, "GoToBtn", void 0), i([I(cc.Label)], t.prototype, "GoToBtnLabel", void 0), i([I(cc.Node)], t.prototype, "DiamondNode", void 0), i([I(cc.Label)], t.prototype, "DiamondCount", void 0), i([I(cc.Label)], t.prototype, "LimitHint", void 0), i([I(cc.RichText)], t.prototype, "LimitHintRichText", void 0), i([I(cc.Node)], t.prototype, "VIPRewardNode", void 0), i([I(cc.Label)], t.prototype, "RewardLabel", void 0), i([I(cc.Label)], t.prototype, "RewardCount", void 0), i([I(cc.Node)], t.prototype, "DiscountNode", void 0), i([I(cc.Node)], t.prototype, "DiscountDarkNode", void 0), i([I(cc.Label)], t.prototype, "DiscountLabel", void 0), i([I(cc.Node)], t.prototype, "SoldOutNode", void 0), i([I(cc.Label)], t.prototype, "SoldOutLabel", void 0), i([I(cc.Node)], t.prototype, "DarkMaskNode", void 0), i([m], t)
            }(cc.Component);
        n.default = _, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    PushHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "194c2zjoOdH358L/dXA12iC", "PushHandler"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GetPushHandlers = void 0;
        var o = e("./OnDataChangeHandler"),
            r = e("./OnPublicChatHandler"),
            i = e("./OnPrivateChatHandler"),
            a = e("./OnPaySuccessHandler"),
            s = e("./OnTrigerGiftHandler"),
            l = e("./OnTopRankAlertHandler"),
            c = e("./OnPopupGiftHandler"),
            u = e("./OnStrongholdWarDataChangeHandler"),
            p = e("./OnPublishMaintainHandler"),
            d = e("./OnPayPicksSuccessHandler"),
            h = e("./OnFightingMiniGameHandler"),
            f = e("./OnOrderArrivedHandler"),
            y = e("./OnAllianceBossHandler"),
            g = e("./OnAssaultOperationDataChangeHandler"),
            m = e("./OnRuinsWarMapMessage"),
            I = e("../../../EZFramework/EZFramework"),
            _ = null;
        n.GetPushHandlers = function() {
            return _ || ((_ = {})[I.OpCodeComponent.Instance.GetOpCode(o.OpType)] = o.Handler, _[I.OpCodeComponent.Instance.GetOpCode(r.OpType)] = r.Handler, _[I.OpCodeComponent.Instance.GetOpCode(i.OpType)] = i.Handler, _[I.OpCodeComponent.Instance.GetOpCode(a.OpType)] = a.Handler, _[I.OpCodeComponent.Instance.GetOpCode(s.OpType)] = s.Handler, _[I.OpCodeComponent.Instance.GetOpCode(l.OpType)] = l.Handler, _[I.OpCodeComponent.Instance.GetOpCode(c.OpType)] = c.Handler, _[I.OpCodeComponent.Instance.GetOpCode(u.OpType)] = u.Handler, _[I.OpCodeComponent.Instance.GetOpCode(p.OpType)] = p.Handler, _[I.OpCodeComponent.Instance.GetOpCode(d.OpType)] = d.Handler, _[I.OpCodeComponent.Instance.GetOpCode(h.OpType)] = h.Handler, _[I.OpCodeComponent.Instance.GetOpCode(f.OpType)] = f.Handler, _[I.OpCodeComponent.Instance.GetOpCode(y.OpType)] = y.Handler, _[I.OpCodeComponent.Instance.GetOpCode(g.OpType)] = g.Handler, _[I.OpCodeComponent.Instance.GetOpCode(m.OpType)] = m.Handler), _
        }, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./OnAllianceBossHandler": "OnAllianceBossHandler",
        "./OnAssaultOperationDataChangeHandler": "OnAssaultOperationDataChangeHandler",
        "./OnDataChangeHandler": "OnDataChangeHandler",
        "./OnFightingMiniGameHandler": "OnFightingMiniGameHandler",
        "./OnOrderArrivedHandler": "OnOrderArrivedHandler",
        "./OnPayPicksSuccessHandler": "OnPayPicksSuccessHandler",
        "./OnPaySuccessHandler": "OnPaySuccessHandler",
        "./OnPopupGiftHandler": "OnPopupGiftHandler",
        "./OnPrivateChatHandler": "OnPrivateChatHandler",
        "./OnPublicChatHandler": "OnPublicChatHandler",
        "./OnPublishMaintainHandler": "OnPublishMaintainHandler",
        "./OnRuinsWarMapMessage": "OnRuinsWarMapMessage",
        "./OnStrongholdWarDataChangeHandler": "OnStrongholdWarDataChangeHandler",
        "./OnTopRankAlertHandler": "OnTopRankAlertHandler",
        "./OnTrigerGiftHandler": "OnTrigerGiftHandler"
    }],
    PuzzleBlockComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "96481KPZE5CTqRnSk39Xqc3", "PuzzleBlockComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = e("./PuzzleBlockItem"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BlockSprites = [], t.Atlas = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    var o = this;
                    void 0 === t && (t = !1), void 0 === n && (n = -1);
                    var r = s.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, e),
                        i = s.ConfigDataComponent.Instance.GetConfigById(a.ItemPuzzle_Config, e),
                        c = s.ConfigDataComponent.Instance.GetConfigById(a.PuzzleShape_Config, i.Shape);
                    this.BlockSprites.forEach(function(e) {
                        e.node.active = !1
                    }), c.Shape.forEach(function(i) {
                        var a = 3 * (i.Items[0] - 1) + i.Items[1] - 1;
                        if (o.BlockSprites[a]) {
                            o.BlockSprites[a].node.active = !0, o.BlockSprites[a].spriteFrame = o.Atlas.getSpriteFrame("puzzle" + r.Quality);
                            var s = o.BlockSprites[a].node.getComponent(l.default);
                            s && s.Init(e, t, n)
                        }
                    })
                }, i([p(cc.Sprite)], t.prototype, "BlockSprites", void 0), i([p(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "./PuzzleBlockItem": "PuzzleBlockItem"
    }],
    PuzzleBlockItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b7a3eyEKzFK0YI8BbKixq3g", "PuzzleBlockItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/EventKeys"),
            l = cc._decorator,
            c = l.ccclass,
            u = (l.property, function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._isStarMove = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.node.on(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.node.on(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_START, this.StarTouchEvent, this), this.node.off(cc.Node.EventType.TOUCH_MOVE, this.StarMoveEvent, this), this.node.off(cc.Node.EventType.TOUCH_END, this.TouchEndEvent, this), this.node.off(cc.Node.EventType.TOUCH_CANCEL, this.TouchEndEvent, this)
                }, t.prototype.Init = function(e, t, n) {
                    void 0 === t && (t = !1), void 0 === n && (n = -1), this._itemId = e, this._canMove = t, this._itemIndex = n, this._isStarMove = !1
                }, t.prototype.StarTouchEvent = function() {
                    this._canMove && this._itemId && (this._isStarMove = !0, a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE_START, this.node, this._itemId, 1, this._itemIndex))
                }, t.prototype.StarMoveEvent = function(e) {
                    this._canMove && this._itemId && this._isStarMove && a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE, e, this._itemId)
                }, t.prototype.TouchEndEvent = function() {
                    this._canMove && this._itemId && (this._isStarMove = !1, a.Game.EventDispatcher.Emit(s.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE_END, 1, this._itemId, this._itemIndex))
                }, i([c], t)
            }(cc.Component));
        n.default = u, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys"
    }],
    PuzzleDetailComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "62c371HMd1MZJUIT0bEA7fd", "PuzzleDetailComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("./PuzzleItemComponent"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../RedDot/RedDotManager"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.PuzzleItemNode = null, t.Phase = null, t.PhaseDesc = null, t.Reddot = null, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
                }, t.prototype.onDisable = function() {
                    this.node.off(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
                }, t.prototype.Init = function(e, t) {
                    this._config = e, this._stageConfigs = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return this.SetPuzzleInfo(), this.LoadPuzzleItem(), this.SetReddot(), [2]
                        })
                    })
                }, t.prototype.SetPuzzleInfo = function() {
                    var e = this;
                    this._curStageConfig = this._stageConfigs[0];
                    var t = this._stageConfigs.length;
                    this._stageConfigs.forEach(function(t) {
                        c.DataCenter.Instance.GetDataById(l.ParanormalPuzzle_Model, t.Id) && (e._curStageConfig = t.Stage > e._curStageConfig.Stage ? t : e._curStageConfig)
                    }), this.Name.string = this._config.Id.ToPuzzleGroupName(), this.Phase.string = this._curStageConfig.Stage.toString(), this.PhaseDesc.string = "puzzle_current_stage".ToUILocale().Fmt(this._curStageConfig.Stage, t)
                }, t.prototype.LoadPuzzleItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleItemComponent", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return this.SetPuzzleItem(), [2]
                            }
                        })
                    })
                }, t.prototype.SetReddot = function() {
                    for (var e = !1, t = 0; t < this._stageConfigs.length; t++)
                        if (h.RedDotManager.DataHandler.RefreshPuzzleCanUnLock({
                                Value1: this._stageConfigs[t].Id
                            })) {
                            e = !0;
                            break
                        } this.Reddot.active = e
                }, t.prototype.SetPuzzleItem = function() {
                    this._puzzleItemNode || (this._puzzleItemNode = cc.instantiate(this._itemPrefab), this._puzzleItemNode.scale = .6, this._puzzleItemNode.parent = this.PuzzleItemNode), this._puzzleItemNode.getComponent(p.default).Init(this._curStageConfig)
                }, t.prototype.OnTouch = function() {
                    var e = this,
                        t = this._stageConfigs.findIndex(function(t) {
                            return t.Id == e._curStageConfig.Id
                        }),
                        n = t > -1 ? t : 0;
                    u.UIManager.Instance.ShowUIPanel(d.PanelConfig.ParanormalPuzzleStagePanel.Path, this._stageConfigs, n, this._config.Id)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemPrefab = null
                }, i([g(cc.Label)], t.prototype, "Name", void 0), i([g(cc.Node)], t.prototype, "PuzzleItemNode", void 0), i([g(cc.Label)], t.prototype, "Phase", void 0), i([g(cc.RichText)], t.prototype, "PhaseDesc", void 0), i([g(cc.Node)], t.prototype, "Reddot", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "./PuzzleItemComponent": "PuzzleItemComponent"
    }],
    PuzzleFragmentInfoComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cc444BXCXZAFLaWZb+xMbUw", "PuzzleFragmentInfoComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("./ParanormalPuzzleSetPanel"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/ItemClickComponent"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.DefaultBgNode = null, t.ItemNode = null, t.CountNode = null, t.Count = null, t.ScoreNode = null, t.Score = null, t.SelectNode = null, t._assets = [], t._canMove = !1, t._isStarMove = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    u.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), u.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK_START, this.StarTouchEvent, this), u.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK_MOVE, this.StarMoveEvent, this), u.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK_CANCLE, this.TouchEndEvent, this)
                }, t.prototype.onDisable = function() {
                    u.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), u.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK_START, this.StarTouchEvent, this), u.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK_MOVE, this.StarMoveEvent, this), u.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK_CANCLE, this.TouchEndEvent, this)
                }, t.prototype.Init = function(e, t, n) {
                    void 0 === n && (n = !1), this._itmeId = e, this._count = t, this._canMove = n, this._isStarMove = !1, this.HideAllNodes(), this.LoadItemPrefab()
                }, t.prototype.HideAllNodes = function() {
                    this.ItemNode.active = !1, this.CountNode.active = !1, this.ScoreNode.active = !1, this.DefaultBgNode.active = !1
                }, t.prototype.LoadItemPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : [4, u.AssetsManager.Instance.LoadAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return u.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._assets.push(e), i.label = 2;
                                case 2:
                                    return this._itemNode || (this._itemNode = cc.instantiate(this._itemPrefab), this._itemNode.parent = this.ItemNode, this._itemNode.y = -20, (t = this._itemNode.getComponent(g.default)) && t.SetNeedHold(!1)), n = this._itemNode.getComponent(d.ItemComponent), this._itmeId > 0 ? (this.ItemNode.active = !0, o = void 0, this._count ? o = this._count : (r = c.DataCenter.Instance.GetDataById(l.UserItem_Model, this._itmeId), o = r && r.Count > 0 ? r.Count : 0), n.Init({
                                        ItemId: this._itmeId,
                                        Count: o
                                    })) : (this.HideAllNodes(), this.DefaultBgNode.active = !0), [2]
                            }
                        })
                    })
                }, t.prototype.SetCount = function(e, t) {
                    this.CountNode.active = e, e && (this.Count.string = t > 0 ? "-{0}".Fmt(t) : "")
                }, t.prototype.SetScore = function(e, t) {
                    this.ScoreNode.active = e, e && (this.Score.string = "+" + t)
                }, t.prototype.SetSelect = function(e) {
                    this._itemNode && (this.SelectNode.active = e)
                }, t.prototype.OnItemClick = function(e, t) {
                    this._canMove ? this.TouchEndEvent(t) : this._itemNode && this._itemNode == t && (t.getComponent(d.ItemComponent).ItemId > 0 && y.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t), u.Game.EventDispatcher.Emit(h.EventKeys.EVENT_PARANORMAL_PUZZLE_ITEM_CLICK, this.node))
                }, t.prototype.StarTouchEvent = function(e) {
                    if (this._itemNode && this._itemNode == e) {
                        if (!this._canMove || !this._itmeId) return;
                        this._isStarMove = !0, u.Game.EventDispatcher.Emit(h.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE_START, this.node, this._itmeId, f.ParanormalPuzzleSetMoveType.ItemBlock)
                    }
                }, t.prototype.StarMoveEvent = function(e, t) {
                    if (this._itemNode && this._itemNode == e) {
                        if (!this._canMove || !this._itmeId) return;
                        this._isStarMove && u.Game.EventDispatcher.Emit(h.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE, t, this._itmeId)
                    }
                }, t.prototype.TouchEndEvent = function(e) {
                    if (this._itemNode && this._itemNode == e) {
                        if (!this._canMove || !this._itmeId) return;
                        this._isStarMove = !1, u.Game.EventDispatcher.Emit(h.EventKeys.EVENT_PARANORMAL_PUZZLE_MOVE_END, f.ParanormalPuzzleSetMoveType.ItemBlock, this._itmeId)
                    }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        u.AssetsManager.Instance.UnloadAsset(e)
                    }), this._itemPrefab = null
                }, i([_(cc.Node)], t.prototype, "DefaultBgNode", void 0), i([_(cc.Node)], t.prototype, "ItemNode", void 0), i([_(cc.Node)], t.prototype, "CountNode", void 0), i([_(cc.Label)], t.prototype, "Count", void 0), i([_(cc.Node)], t.prototype, "ScoreNode", void 0), i([_(cc.Label)], t.prototype, "Score", void 0), i([_(cc.Node)], t.prototype, "SelectNode", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./ParanormalPuzzleSetPanel": "ParanormalPuzzleSetPanel"
    }],
    PuzzleItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "39aabE7HhhBOKvrJ8rhSVh9", "PuzzleItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("./PuzzleBlockComponent"),
            h = e("./PuzzleLineComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.PuzzleItem = null, t.Layout = null, t.PuzzleBlockNode = null, t.PuzzleLineNode = null, t._puzzleNodes = [], t._assets = [], t._blockNodes = [], t._lineNodes = [], t._lineCount = 0, t.PuzzleBgWidth = 102, t.PuzzleItemWidth = 106, t.PuzzleBorder = 10, t.PuzzleOffset = 104, t.PuzzleCheckOffset = 105, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    void 0 === t && (t = !1), this._curStageConfig = e, this._canMove = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.InitPuzzlesBG(), [4, this.LoadPuzzleBlockPrefab()];
                                case 1:
                                    return e.sent(), this.LoadPuzzleLinePrefab(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadPuzzleBlockPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._blockPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleBlockComponent", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._blockPrefab = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return [4, this.LoadAtlas()];
                                case 3:
                                    return t.sent(), this.SetPuzzles(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadPuzzleLinePrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._linePrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleLineComponent", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._linePrefab = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return this.SetPuzzleLines(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadAtlas = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._atlas ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/PNG/ParanormalPuzzle", cc.SpriteAtlas)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._atlas = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitPuzzleItemData = function() {
                    this._puzzleItemData = [], this._puzzleItemMoveData = [];
                    for (var e = this._curStageConfig.SideLength * this._curStageConfig.SideLength, t = 0; t < e; t++)(n = {}).BlockIndex = t, n.ItemIndex = -1, this._puzzleItemData.push(n);
                    for (t = 0; t < e; t++) {
                        var n;
                        (n = {}).BlockIndex = t, n.ItemIndex = -1, this._puzzleItemMoveData.push(n)
                    }
                }, t.prototype.InitPuzzlesBG = function() {
                    var e = this._curStageConfig.SideLength * this._curStageConfig.SideLength,
                        t = this._curStageConfig.SideLength * this.PuzzleBgWidth + 3 * (this._curStageConfig.SideLength - 1) + 2 * this.PuzzleBorder,
                        n = this._curStageConfig.SideLength * this.PuzzleItemWidth + 3 * (this._curStageConfig.SideLength - 1) + 2 * this.PuzzleBorder;
                    this.Bg.node.setContentSize(n, n), this.Layout.paddingLeft = this.PuzzleBorder, this.Layout.node.setContentSize(t, t), this._puzzleNodes.forEach(function(e) {
                        e.active = !1
                    });
                    for (var o = this._curStageConfig.SideLength % 2 == 0, r = 0; r < e; r++) {
                        if (!this._puzzleNodes[r]) {
                            var i = cc.instantiate(this.PuzzleItem);
                            i.parent = this.Layout.node, this._puzzleNodes[r] = i
                        }
                        if (o) {
                            var a = Math.floor(r / this._curStageConfig.SideLength);
                            this._puzzleNodes[r].getComponent(cc.Sprite).enabled = a % 2 == 0 ? r % 2 == 1 : r % 2 == 0
                        } else this._puzzleNodes[r].getComponent(cc.Sprite).enabled = r % 2 == 1;
                        this._puzzleNodes[r].active = !0
                    }
                    this.Layout.updateLayout()
                }, t.prototype.SetPuzzles = function() {
                    var e = this;
                    this.InitPuzzleItemData();
                    var t = u.DataCenter.Instance.GetDataById(c.ParanormalPuzzle_Model, this._curStageConfig.Id);
                    this._blockNodes.forEach(function(e) {
                        e.active = !1
                    }), t && t.Items.forEach(function(t, n) {
                        var o = t.Items[0],
                            r = t.Items[1],
                            i = t.Items[2];
                        if (!e._blockNodes[n]) {
                            var a = cc.instantiate(e._blockPrefab);
                            a.parent = e.PuzzleBlockNode, e._blockNodes[n] = a
                        }
                        e._blockNodes[n].active = !0, e._blockNodes[n].opacity = 255;
                        var s, c = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, o),
                            p = u.ConfigDataComponent.Instance.GetConfigById(l.PuzzleShape_Config, c.Shape);
                        e._blockNodes[n].getComponent(d.default).Init(o, e._canMove, n), s = e._curStageConfig.SideLength % 2 == 0 ? e._curStageConfig.SideLength / 2 - .5 : Math.floor(e._curStageConfig.SideLength / 2);
                        var h = -1 * (r - s) * e.PuzzleOffset,
                            f = (i - s) * e.PuzzleOffset;
                        e._blockNodes[n].setPosition(f, h), p.Shape.forEach(function(t) {
                            var o = [t.Items[0] - 2, t.Items[1] - 2],
                                a = [r + o[0], i + o[1]],
                                s = a[0] * e._curStageConfig.SideLength + a[1];
                            s < e._puzzleItemData.length && s >= 0 && (e._puzzleItemData[s].ItemIndex = n), s < e._puzzleItemMoveData.length && s >= 0 && (e._puzzleItemMoveData[s].ItemIndex = n)
                        })
                    })
                }, t.prototype.convertIndexToRowColumn = function(e) {
                    return [Math.floor(e / this._curStageConfig.SideLength), e % this._curStageConfig.SideLength]
                }, t.prototype.ConvertRowColumonToIndex = function(e, t) {
                    if (e < 0 || e >= this._curStageConfig.SideLength || t < 0 || t >= this._curStageConfig.SideLength) return -1;
                    var n = e * this._curStageConfig.SideLength + t,
                        o = this._curStageConfig.SideLength * this._curStageConfig.SideLength;
                    return n >= 0 && n < o ? n : -1
                }, t.prototype.SetPuzzleLines = function() {
                    var e = this;
                    this._lineCount = 0, this._lineNodes.forEach(function(e) {
                        e.active = !1
                    });
                    var t = this._puzzleNodes[0];
                    this._blockNodes.forEach(function(n) {
                        n.active && n.children.forEach(function(n) {
                            var o = n.convertToWorldSpaceAR(cc.v2(0, 0)),
                                r = e.Layout.node.convertToNodeSpaceAR(o),
                                i = r.x - t.x,
                                a = r.y - t.y,
                                s = i > 0 ? -.5 : .5,
                                l = a > 0 ? -.5 : .5,
                                c = i > 0 ? Math.ceil(i / e.PuzzleOffset + s) : Math.floor(i / e.PuzzleOffset + s),
                                u = [-(a > 0 ? Math.ceil(a / e.PuzzleOffset + l) : Math.floor(a / e.PuzzleOffset + l)), c],
                                p = e.ConvertRowColumonToIndex(u[0], u[1]);
                            if (p > -1 && e._puzzleItemMoveData[p].ItemIndex > -1) {
                                var d = !1;
                                if (0 == u[0]) d = !0;
                                else {
                                    var f = u[0] - 1,
                                        y = e.ConvertRowColumonToIndex(f, u[1]); - 1 != e._puzzleItemMoveData[y].ItemIndex && e._puzzleItemMoveData[y].ItemIndex == e._puzzleItemMoveData[p].ItemIndex || (d = !0)
                                }
                                d && e.CreateLineNode(e._atlas, n, h.PuzzleLineType.Line, h.PuzzleLinePositin.Top);
                                var g = !1,
                                    m = u[0] + 1,
                                    I = e.ConvertRowColumonToIndex(m, u[1]);
                                (u[0] == e._curStageConfig.SideLength - 1 || I > -1 && -1 == e._puzzleItemMoveData[I].ItemIndex) && (g = !0), g && e.CreateLineNode(e._atlas, n, h.PuzzleLineType.Line, h.PuzzleLinePositin.Bottom);
                                var _ = !1;
                                if (0 == u[1] && e._puzzleItemMoveData[p].ItemIndex > -1) _ = !0;
                                else {
                                    var C = u[1] - 1,
                                        v = e.ConvertRowColumonToIndex(u[0], C); - 1 != e._puzzleItemMoveData[v].ItemIndex && e._puzzleItemMoveData[v].ItemIndex == e._puzzleItemMoveData[p].ItemIndex || (_ = !0)
                                }
                                _ && e.CreateLineNode(e._atlas, n, h.PuzzleLineType.Line, h.PuzzleLinePositin.Left);
                                var b = !1,
                                    S = u[1] + 1,
                                    w = e.ConvertRowColumonToIndex(u[0], S);
                                (u[1] == e._curStageConfig.SideLength - 1 || w > -1 && -1 == e._puzzleItemMoveData[w].ItemIndex) && (b = !0), b && e.CreateLineNode(e._atlas, n, h.PuzzleLineType.Line, h.PuzzleLinePositin.Right);
                                var P = e.ConvertRowColumonToIndex(u[0], u[1] - 1),
                                    A = e.ConvertRowColumonToIndex(u[0] - 1, u[1]),
                                    T = e.ConvertRowColumonToIndex(u[0], u[1] + 1),
                                    R = e.ConvertRowColumonToIndex(u[0] + 1, u[1]),
                                    L = e.ConvertRowColumonToIndex(u[0] - 1, u[1] - 1),
                                    k = e.ConvertRowColumonToIndex(u[0] - 1, u[1] + 1),
                                    O = e.ConvertRowColumonToIndex(u[0] + 1, u[1] - 1),
                                    M = e.ConvertRowColumonToIndex(u[0] + 1, u[1] + 1);
                                e.SetLineAngle(h.PuzzleLinePositin.TopLeft, L, A, p, P, n), u[1] != e._curStageConfig.SideLength - 1 && -1 != T && -1 != e._puzzleItemMoveData[T].ItemIndex || e.SetLineAngle(h.PuzzleLinePositin.TopRight, A, k, T, p, n), u[0] != e._curStageConfig.SideLength - 1 && (-1 != P && -1 != e._puzzleItemMoveData[P].ItemIndex || -1 != O && -1 != e._puzzleItemMoveData[O].ItemIndex || -1 != R && -1 != e._puzzleItemMoveData[R].ItemIndex) || e.SetLineAngle(h.PuzzleLinePositin.BottomLeft, P, p, R, O, n), -1 != M && -1 != e._puzzleItemMoveData[M].ItemIndex || e.SetLineAngle(h.PuzzleLinePositin.BottomRight, p, T, M, R, n)
                            }
                        })
                    })
                }, t.prototype.CreateLineNode = function(e, t, n, o, r) {
                    var i = t.convertToWorldSpaceAR(cc.v2(0, 0)),
                        a = this.PuzzleLineNode.convertToNodeSpaceAR(i);
                    if (!this._lineNodes[this._lineCount]) {
                        var s = cc.instantiate(this._linePrefab);
                        s.parent = this.PuzzleLineNode, this._lineNodes[this._lineCount] = s
                    }
                    switch (this._lineNodes[this._lineCount].active = !0, this._lineNodes[this._lineCount].getComponent(h.default).Init(e, n), o) {
                        case h.PuzzleLinePositin.Top:
                            this._lineNodes[this._lineCount].setPosition(a.x, a.y + 52), this._lineNodes[this._lineCount].angle = 0;
                            break;
                        case h.PuzzleLinePositin.Bottom:
                            this._lineNodes[this._lineCount].setPosition(a.x, a.y - 52), this._lineNodes[this._lineCount].angle = 0;
                            break;
                        case h.PuzzleLinePositin.Left:
                            this._lineNodes[this._lineCount].setPosition(a.x - 52, a.y), this._lineNodes[this._lineCount].angle = 90;
                            break;
                        case h.PuzzleLinePositin.Right:
                            this._lineNodes[this._lineCount].setPosition(a.x + 52, a.y), this._lineNodes[this._lineCount].angle = 90;
                            break;
                        case h.PuzzleLinePositin.TopLeft:
                            this._lineNodes[this._lineCount].setPosition(a.x - 52, a.y + 52), this._lineNodes[this._lineCount].angle = r;
                            break;
                        case h.PuzzleLinePositin.TopRight:
                            this._lineNodes[this._lineCount].setPosition(a.x + 52, a.y + 52), this._lineNodes[this._lineCount].angle = r;
                            break;
                        case h.PuzzleLinePositin.BottomLeft:
                            this._lineNodes[this._lineCount].setPosition(a.x - 52, a.y - 52), this._lineNodes[this._lineCount].angle = r;
                            break;
                        case h.PuzzleLinePositin.BottomRight:
                            this._lineNodes[this._lineCount].setPosition(a.x + 52, a.y - 52), this._lineNodes[this._lineCount].angle = r
                    }
                    this._lineCount++
                }, t.prototype.SetLineAngle = function(e, t, n, o, r, i) {
                    var a, s, l = this,
                        c = t > -1 ? this._puzzleItemMoveData[t].ItemIndex : -1,
                        u = n > -1 ? this._puzzleItemMoveData[n].ItemIndex : -1,
                        p = o > -1 ? this._puzzleItemMoveData[o].ItemIndex : -1,
                        d = r > -1 ? this._puzzleItemMoveData[r].ItemIndex : -1;
                    c != u && u != p && p != d && c != d ? (a = h.PuzzleLineType.AngleAll, s = 0) : c == u && u != p && p != d && c != d ? (a = h.PuzzleLineType.AngleT, s = 90) : c != u && u == p && p != d && c != d ? (a = h.PuzzleLineType.AngleT, s = 0) : c != u && u != p && p == d && c != d ? (a = h.PuzzleLineType.AngleT, s = 270) : c != u && u != p && p != d && c == d ? (a = h.PuzzleLineType.AngleT, s = 180) : c == u && u == p && p != d && c != d ? (a = h.PuzzleLineType.Angle, s = 270) : c != u && u == p && p == d && c != d ? (a = h.PuzzleLineType.Angle, s = 180) : c != u && u != p && p == d && c == d ? (a = h.PuzzleLineType.Angle, s = 90) : c == u && u != p && p != d && c == d && (a = h.PuzzleLineType.Angle, s = 0), a > 0 && this.scheduleOnce(function() {
                        l.CreateLineNode(l._atlas, i, a, e, s)
                    })
                }, t.prototype.CheckCanPush = function(e, t, n) {
                    var o = this,
                        r = this._puzzleNodes[0],
                        i = this._puzzleNodes[this._curStageConfig.SideLength * this._curStageConfig.SideLength - 1];
                    if (e.x > r.x - 1.5 * this.PuzzleCheckOffset && e.x < i.x + 1.5 * this.PuzzleCheckOffset && e.y > i.y - 1.5 * this.PuzzleCheckOffset && e.y < r.y + 1.5 * this.PuzzleCheckOffset) {
                        for (var a = [], s = 0, c = 0, p = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, t), d = u.ConfigDataComponent.Instance.GetConfigById(l.PuzzleShape_Config, p.Shape), h = function(t) {
                                var n = d.Shape[t],
                                    r = [n.Items[0] - 2, n.Items[1] - 2],
                                    i = new cc.Vec2(r[1] * f.PuzzleCheckOffset + e.x, -r[0] * f.PuzzleCheckOffset + e.y),
                                    l = f._puzzleNodes.findIndex(function(e) {
                                        return i.x > e.x - o.PuzzleCheckOffset / 2 && i.x < e.x + o.PuzzleCheckOffset / 2 && i.y > e.y - o.PuzzleCheckOffset / 2 && i.y < e.y + o.PuzzleCheckOffset / 2
                                    });
                                l > -1 && (-1 == f._puzzleItemMoveData[l].ItemIndex ? (s++, a.push(l)) : c++)
                            }, f = this, y = 0; y < d.Shape.length; y++) h(y);
                        var g = s == d.Shape.length;
                        this._puzzleNodes.forEach(function(e, t) {
                            var r = e.getChildByName("StateSprite").getComponent(cc.Sprite);
                            n ? r.spriteFrame = null : a.includes(t) ? r.spriteFrame = g ? o._atlas.getSpriteFrame("greenBlock") : o._atlas.getSpriteFrame("redBlock") : r.spriteFrame = null
                        });
                        var m = [-1, -1];
                        if (g) {
                            var I = e.x - r.x,
                                _ = e.y - r.y,
                                C = I > 0 ? -.5 : .5,
                                v = _ > 0 ? -.5 : .5,
                                b = I > 0 ? Math.ceil(I / this.PuzzleCheckOffset + C) : Math.floor(I / this.PuzzleCheckOffset + C);
                            m = [-(_ > 0 ? Math.ceil(_ / this.PuzzleCheckOffset + v) : Math.floor(_ / this.PuzzleCheckOffset + v)), b]
                        } else 0 == s && 0 == c && (m = [-999, -999]);
                        return [g, m]
                    }
                    return this._puzzleNodes.forEach(function(e) {
                        e.getChildByName("StateSprite").getComponent(cc.Sprite).spriteFrame = null
                    }), [!1, [-999, -999]]
                }, t.prototype.CheckItemCanPush = function(e, t, n) {
                    var o = this,
                        r = this._puzzleNodes[0],
                        i = this._puzzleNodes[this._curStageConfig.SideLength * this._curStageConfig.SideLength - 1];
                    if (e.x > r.x - 1.5 * this.PuzzleCheckOffset && e.x < i.x + 1.5 * this.PuzzleCheckOffset && e.y > i.y - 1.5 * this.PuzzleCheckOffset && e.y < r.y + 1.5 * this.PuzzleCheckOffset) {
                        for (var a = 0, s = 0, c = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, t), p = u.ConfigDataComponent.Instance.GetConfigById(l.PuzzleShape_Config, c.Shape), d = [], h = function(t) {
                                var r = p.Shape[t],
                                    i = [r.Items[0] - 2, r.Items[1] - 2],
                                    l = new cc.Vec2(i[1] * f.PuzzleCheckOffset + e.x, -i[0] * f.PuzzleCheckOffset + e.y),
                                    c = f._puzzleNodes.findIndex(function(e) {
                                        return l.x > e.x - o.PuzzleCheckOffset / 2 && l.x < e.x + o.PuzzleCheckOffset / 2 && l.y > e.y - o.PuzzleCheckOffset / 2 && l.y < e.y + o.PuzzleCheckOffset / 2
                                    });
                                if (c > -1)
                                    if (-1 == n[c].ItemIndex) {
                                        a++;
                                        var u = {};
                                        u.BlockIndex = c, u.ItemIndex = 999, d.push(u)
                                    } else s++
                            }, f = this, y = 0; y < p.Shape.length; y++) h(y);
                        var g = a == p.Shape.length,
                            m = [-1, -1];
                        if (g) {
                            var I = e.x - r.x,
                                _ = e.y - r.y,
                                C = I > 0 ? -.5 : .5,
                                v = _ > 0 ? -.5 : .5,
                                b = I > 0 ? Math.ceil(I / this.PuzzleCheckOffset + C) : Math.floor(I / this.PuzzleCheckOffset + C);
                            m = [-(_ > 0 ? Math.ceil(_ / this.PuzzleCheckOffset + v) : Math.floor(_ / this.PuzzleCheckOffset + v)), b], d.forEach(function(e) {
                                n[e.BlockIndex].ItemIndex = e.ItemIndex
                            })
                        } else 0 == a && 0 == s && (m = [-999, -999]);
                        return [g, m]
                    }
                    return [!1, [-999, -999]]
                }, Object.defineProperty(t.prototype, "puzzleItemMoveData", {
                    get: function() {
                        return this._puzzleItemMoveData
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.SetMoveNode = function(e, t) {
                    var n = this,
                        o = u.DataCenter.Instance.GetDataById(c.ParanormalPuzzle_Model, this._curStageConfig.Id);
                    if (o && o.Items[e] && o.Items[e].Items[0] == t) {
                        var r = u.ConfigDataComponent.Instance.GetConfigById(l.ItemPuzzle_Config, t),
                            i = u.ConfigDataComponent.Instance.GetConfigById(l.PuzzleShape_Config, r.Shape),
                            a = o.Items[e].Items[1],
                            s = o.Items[e].Items[2];
                        this._blockNodes[e] && (this._blockNodes[e].opacity = 0), i.Shape.forEach(function(e) {
                            var t = [e.Items[0] - 2, e.Items[1] - 2],
                                o = [a + t[0], s + t[1]],
                                r = o[0] * n._curStageConfig.SideLength + o[1];
                            r < n._puzzleItemMoveData.length && r >= 0 && (n._puzzleItemMoveData[r].ItemIndex = -1)
                        }), this.SetPuzzleLines()
                    }
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    }), this._blockPrefab = null, this._atlas = null
                }, i([g(cc.Sprite)], t.prototype, "Bg", void 0), i([g(cc.Prefab)], t.prototype, "PuzzleItem", void 0), i([g(cc.Layout)], t.prototype, "Layout", void 0), i([g(cc.Node)], t.prototype, "PuzzleBlockNode", void 0), i([g(cc.Node)], t.prototype, "PuzzleLineNode", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "./PuzzleBlockComponent": "PuzzleBlockComponent",
        "./PuzzleLineComponent": "PuzzleLineComponent"
    }],
    PuzzleLineComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1b148eBNIJCxZpzbqcQzyJv", "PuzzleLineComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.PuzzleLinePositin = n.PuzzleLineType = void 0;
        var a, s = cc._decorator,
            l = s.ccclass,
            c = s.property;
        (function(e) {
            e[e.Line = 0] = "Line", e[e.Angle = 1] = "Angle", e[e.AngleT = 2] = "AngleT", e[e.AngleAll = 3] = "AngleAll"
        })(a = n.PuzzleLineType || (n.PuzzleLineType = {})),
        function(e) {
            e[e.Top = 0] = "Top", e[e.Bottom = 1] = "Bottom", e[e.Left = 2] = "Left", e[e.Right = 3] = "Right", e[e.TopLeft = 4] = "TopLeft", e[e.TopRight = 5] = "TopRight", e[e.BottomLeft = 6] = "BottomLeft", e[e.BottomRight = 7] = "BottomRight"
        }(n.PuzzleLinePositin || (n.PuzzleLinePositin = {}));
        var u = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.LineSprite = null, t
            }
            return r(t, e), t.prototype.Init = function(e, t) {
                switch (t) {
                    case a.Line:
                        this.LineSprite.spriteFrame = e.getSpriteFrame("whiteLine"), this.LineSprite.node.width = 104;
                        break;
                    case a.Angle:
                        this.LineSprite.spriteFrame = e.getSpriteFrame("whiteAngle"), this.LineSprite.node.width = 20;
                        break;
                    case a.AngleT:
                        this.LineSprite.spriteFrame = e.getSpriteFrame("whiteT"), this.LineSprite.node.width = 20;
                        break;
                    case a.AngleAll:
                        this.LineSprite.spriteFrame = e.getSpriteFrame("whiteAll"), this.LineSprite.node.width = 20
                }
            }, i([c(cc.Sprite)], t.prototype, "LineSprite", void 0), i([l], t)
        }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {}],
    PuzzleQuickComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a1c6bxZhmVOU5llGjnqxrma", "PuzzleQuickComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./ParanormalPuzzleBagPanel"),
            u = e("./ParanormalPuzzleQuickPanel"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.SelectNode = null, t._assets = [], t._quickItemNodes = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._stage = e, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, this.LoadQuickItemPrefab()];
                                case 1:
                                    return e.sent(), this.SetSelectToggles(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadQuickItemPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._quickItemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleQuickItemComponent", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._quickItemPrefab = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetSelectToggles = function() {
                    this.Title.string = "puzzle_stage_param".ToUILocale().Fmt(this._stage), this._quickItemNodes.forEach(function(e) {
                        e.active = !1
                    });
                    for (var e = 1; e < c.default.MaxQuality; e++) {
                        if (!this._quickItemNodes[e]) {
                            var t = cc.instantiate(this._quickItemPrefab);
                            t.name = (e + 1).toString(), t.parent = this.SelectNode, t.getChildByName("Toggle").on("toggle", this.ClickToggle, this), this._quickItemNodes[e] = t
                        }
                        var n = u.default.GetQuickSetData(this._stage, e + 1);
                        this._quickItemNodes[e].active = !0, this._quickItemNodes[e].getChildByName("Toggle").getComponent(cc.Toggle).isChecked = 1 == n, this._quickItemNodes[e].getChildByName("Level").getComponent(cc.Label).string = ("paraPuzzle_quality" + (e + 1)).ToUILocale()
                    }
                }, t.prototype.ClickToggle = function(e) {
                    var t = Number.parseInt(e.node.parent.name),
                        n = e.isChecked ? 1 : 0;
                    u.default.SetQuickSetData(this._stage, t, n)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._quickItemPrefab = null
                }, i([h(cc.Label)], t.prototype, "Title", void 0), i([h(cc.Node)], t.prototype, "SelectNode", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "./ParanormalPuzzleBagPanel": "ParanormalPuzzleBagPanel",
        "./ParanormalPuzzleQuickPanel": "ParanormalPuzzleQuickPanel"
    }],
    PuzzleSelectComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ce7d6BIQd5GlZV+639Kz2oP", "PuzzleSelectComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("./PuzzleSelectItemComponent"),
            u = e("../../Auxiliary/EventKeys"),
            p = cc._decorator,
            d = p.ccclass,
            h = p.property,
            f = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.SelectedButton = null, t.SelectedLabel = null, t.SelectedArrow = null, t.NoSelectedButton = null, t.NoSelectedLabel = null, t.NoSelectedArrow = null, t.SelectNode = null, t.ClickNode = null, t._assets = [], t._selectItemNodes = [], t._isOpen = !1, t
                }
                return r(t, e), t.prototype.start = function() {
                    this.SelectedLabel.string = "puzzle_fliter".ToUILocale(), this.NoSelectedLabel.string = "puzzle_fliter".ToUILocale(), this.ClickNode.on(cc.Node.EventType.TOUCH_END, this.OnTouch, this)
                }, t.prototype.onEnable = function() {
                    this.SelectedButton.node.on("click", this.ClickSelectButton, this), this.NoSelectedButton.node.on("click", this.ClickSelectButton, this)
                }, t.prototype.onDisable = function() {
                    this.SelectedButton.node.off("click", this.ClickSelectButton, this), this.NoSelectedButton.node.off("click", this.ClickSelectButton, this)
                }, t.prototype.Init = function(e, t) {
                    this._datas = e, this._targetNode = t, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.SetSelectButtonsActive(), this.SetButtonsArrow(), [4, this.LoadSelectItemPrefab()];
                                case 1:
                                    return e.sent(), this.SetSelectItems(), this.SetClickNodePosition(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadSelectItemPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._selectItemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleSelectItemComponent", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._selectItemPrefab = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetSelectButtonsActive = function() {
                    var e = !1;
                    this._datas.forEach(function(t) {
                        t.SelectIndexs.length > 0 && (e = !0)
                    }), this.SelectedButton.node.active = e, this.NoSelectedButton.node.active = !e, this.SelectedArrow.active = e, this.NoSelectedArrow.active = !e
                }, t.prototype.SetButtonsArrow = function() {
                    this.SelectedArrow.angle = this._isOpen ? -90 : 90, this.NoSelectedArrow.angle = this._isOpen ? -90 : 90
                }, t.prototype.SetSelectItems = function() {
                    var e = this;
                    this._selectItemNodes.forEach(function(e) {
                        e.active = !1
                    }), this._datas.forEach(function(t, n) {
                        if (!e._selectItemNodes[n]) {
                            var o = cc.instantiate(e._selectItemPrefab);
                            o.parent = e.SelectNode, e._selectItemNodes[n] = o
                        }
                        e._selectItemNodes[n].active = !0, e._selectItemNodes[n].getComponent(c.default).Init(t, n, e)
                    })
                }, t.prototype.SetClickNodePosition = function() {
                    var e = this._targetNode.convertToWorldSpaceAR(cc.v2(0, 0)),
                        t = this.node.convertToNodeSpaceAR(e);
                    this.ClickNode.setPosition(t)
                }, t.prototype.UpdateSelectData = function(e, t) {
                    l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_PARANORMAL_PUZZLE_SELECT, this, e, t)
                }, t.prototype.ClickSelectButton = function() {
                    this._isOpen = !this._isOpen, this.SelectNode.active = this._isOpen, this.ClickNode.active = this._isOpen, this.SetButtonsArrow()
                }, t.prototype.HideSelectNode = function() {
                    this._isOpen = !1, this.SelectNode.active = this._isOpen, this.ClickNode.active = this._isOpen, this.SetButtonsArrow()
                }, t.prototype.OnTouch = function() {
                    l.Game.EventDispatcher.Emit(u.EventKeys.EVENT_CLOSE_PUZZLE_SELECT_TIP, this)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._selectItemPrefab = null
                }, i([h(cc.Button)], t.prototype, "SelectedButton", void 0), i([h(cc.Label)], t.prototype, "SelectedLabel", void 0), i([h(cc.Node)], t.prototype, "SelectedArrow", void 0), i([h(cc.Button)], t.prototype, "NoSelectedButton", void 0), i([h(cc.Label)], t.prototype, "NoSelectedLabel", void 0), i([h(cc.Node)], t.prototype, "NoSelectedArrow", void 0), i([h(cc.Node)], t.prototype, "SelectNode", void 0), i([h(cc.Node)], t.prototype, "ClickNode", void 0), i([d], t)
            }(cc.Component);
        n.default = f, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "./PuzzleSelectItemComponent": "PuzzleSelectItemComponent"
    }],
    PuzzleSelectItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b92deyVXdNEh7JpDIdotz8U", "PuzzleSelectItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Name = null, t.Layout = null, t._assets = [], t._selectItemToggles = [], t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this._data = e, this._index = t, this._instance = n, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return this.Name.string = this._data.Title, [4, this.LoadSelectItemToggle()];
                                case 1:
                                    return e.sent(), this.SetItems(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadSelectItemToggle = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._togglePrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleSelectItemToggle", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._togglePrefab = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetItems = function() {
                    var e = this;
                    this._selectItemToggles.forEach(function(e) {
                        e.active = !1
                    }), this._data.Items.forEach(function(t, n) {
                        if (!e._selectItemToggles[n]) {
                            var o = cc.instantiate(e._togglePrefab);
                            o.parent = e.Layout.node, o.on("toggle", e.ClickToggle, e), e._selectItemToggles[n] = o
                        }
                        e._selectItemToggles[n].active = !0, e._selectItemToggles[n].getChildByName("ToggleLabel").getComponent(cc.Label).string = t, e._selectItemToggles[n].getComponent(cc.Toggle).isChecked = e._data.SelectIndexs.includes(n)
                    })
                }, t.prototype.ClickToggle = function() {
                    for (var e = [], t = 0; t < this._data.Items.length; t++) this._selectItemToggles[t] && this._selectItemToggles[t].getComponent(cc.Toggle).isChecked && e.push(t);
                    this._instance.UpdateSelectData(this._index, e)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._togglePrefab = null
                }, i([p(cc.Label)], t.prototype, "Name", void 0), i([p(cc.Layout)], t.prototype, "Layout", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework"
    }],
    PuzzleStageComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f1871lAWz5POZF6B1Ny9jC4", "PuzzleStageComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.PuzzleStageExtraAttrUnlockType = void 0;
        var l, c, u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/Components"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("./PuzzleItemComponent"),
            y = e("../Components/HeroAttributeItem"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("./PuzzleStageItemComponent"),
            I = e("./PuzzleStageLockItemComponent"),
            _ = e("./ParanormalPuzzleStagePanel"),
            C = e("../Components/CurrencyBarItem"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../../RedDot/RedDotManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.Score = 1] = "Score", e[e.Full = 2] = "Full", e[e.FullAndScore = 3] = "FullAndScore"
        })(l = n.PuzzleStageExtraAttrUnlockType || (n.PuzzleStageExtraAttrUnlockType = {})),
        function(e) {
            e[e.FrontFull = 1] = "FrontFull", e[e.FrontScore = 2] = "FrontScore", e[e.TotalScore = 3] = "TotalScore"
        }(c || (c = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ScoreNode = null, t.ScoreDesc = null, t.Score = null, t.EditButton = null, t.EditLabel = null, t.Stage = null, t.PuzzleItemNode = null, t.AttrNode = null, t.Attrs = [], t.AttrTitle = null, t.InfoButton = null, t.AttrLayoutNode = null, t.LockNode = null, t.ConditionNode = null, t.ConsumeNode = null, t.UnlockButton = null, t.UnlockLabel = null, t.NoAttrLabel = null, t.ReddotNode = null, t._assets = [], t._unlockItemNode = [], t._lockItemNode = [], t._consumeNode = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onLoad = function() {
                this.EditLabel.string = "puzzle_edit".ToUILocale(), this.ScoreDesc.string = "puzzle_stage_score".ToUILocale(), this.AttrTitle.string = "puzzle_extra_attr_up".ToUILocale(), this.UnlockLabel.string = "common_unlock".ToUILocale(), this.NoAttrLabel.string = "CollectionPavilion_Tip_UnAttr".ToUILocale()
            }, t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnClickSelf, this), this.EditButton.node.on("click", this.ClickEditButton, this), this.InfoButton.node.on("click", this.ClickInfoButton, this), this.UnlockButton.node.on("click", this.ClickUnlockButton, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.OnClickSelf, this), this.EditButton.node.off("click", this.ClickEditButton, this), this.InfoButton.node.off("click", this.ClickInfoButton, this), this.UnlockButton.node.off("click", this.ClickUnlockButton, this)
            }, t.prototype.Init = function(e) {
                this._config = e, this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function() {
                        return this._model = d.DataCenter.Instance.GetDataById(p.ParanormalPuzzle_Model, this._config.Id), this._isUnlock = !1, this._model && (this._isUnlock = !0), this.SetTopNode(), this.SetPuzzleItemComponent(), this.SetAttrNode(), this.SetExtrAttrNode(), this.SetLockItemNode(), this.SetLockMaterial(), this.SetReddot(), [2]
                    })
                })
            }, t.prototype.SetTopNode = function() {
                this.Stage.string = "puzzle_stage_param".ToUILocale().Fmt(this._config.Stage), this.ScoreNode.active = this._isUnlock, this.EditButton.node.active = this._isUnlock, this.AttrNode.active = this._isUnlock, this.LockNode.active = !this._isUnlock, this._isUnlock && (this.Score.string = this._model.Score.toString())
            }, t.prototype.SetPuzzleItemComponent = function() {
                return a(this, void 0, void 0, function() {
                    return s(this, function(e) {
                        switch (e.label) {
                            case 0:
                                return this._puzzleItemNode ? [3, 2] : [4, this.LoadPuzzleItemPrefab()];
                            case 1:
                                e.sent(), this._puzzleItemNode = cc.instantiate(this._puzzleItemPrefab), this._puzzleItemNode.parent = this.PuzzleItemNode, e.label = 2;
                            case 2:
                                return this._puzzleItemNode.getComponent(f.default).Init(this._config), [2]
                        }
                    })
                })
            }, t.GetStageAttrs = function(e) {
                var t = [];
                if (e) {
                    var n = {};
                    for (var o in e.Items.forEach(function(e) {
                            var t = e.Items[0];
                            d.ConfigDataComponent.Instance.GetConfigById(u.ItemPuzzle_Config, t).Attrs.forEach(function(e) {
                                n[e.Items[0]] ? n[e.Items[0]] += e.Items[1] : n[e.Items[0]] = e.Items[1]
                            })
                        }), n) {
                        var r = [Number(o), n[o]];
                        t.push(r)
                    }
                }
                return t
            }, t.prototype.SetAttrNode = function() {
                if (this._isUnlock) {
                    var e = n.GetStageAttrs(this._model);
                    this.NoAttrLabel.node.active = 0 == e.length, this.Attrs.forEach(function(t, n) {
                        e[n] ? (t.node.active = !0, t.Init(e[n][0], e[n][1]), t.SetTagName("CollectionPavilion_HeroFetter_Attr_AllHero".ToUILocale())) : t.node.active = !1
                    })
                }
            }, t.GetExtraAttrData = function(e, t) {
                var n = [];
                return e.Attrs.length > 0 && e.Attrs.forEach(function(e) {
                    var o = d.ConfigDataComponent.Instance.GetConfigById(u.PuzzleStageAttr_Config, e);
                    switch (o.Unlock[0].Items[0]) {
                        case l.Score:
                            (r = {}).Title = "puzzle_limit_score".ToUILocale().Fmt(o.Unlock[0].Items[1]), r.IsUnlock = t.Score >= o.Unlock[0].Items[1], r.Attrs = o.Attrs, n.push(r);
                            break;
                        case l.Full:
                            (r = {}).Title = "puzzle_limit_all".ToUILocale(), r.IsUnlock = t.IsFull, r.Attrs = o.Attrs, n.push(r);
                            break;
                        case l.FullAndScore:
                            var r;
                            (r = {}).Title = "puzzle_limit_score_all".ToUILocale().Fmt(o.Unlock[0].Items[1]), r.IsUnlock = t.IsFull && t.Score >= o.Unlock[0].Items[1], r.Attrs = o.Attrs, n.push(r)
                    }
                }), n
            }, t.prototype.SetExtrAttrNode = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._isUnlock ? [4, this.LoadStageItemPrefab()] : [2];
                            case 1:
                                return t.sent(), this._unlockItemNode.forEach(function(e) {
                                    e.active = !1
                                }), n.GetExtraAttrData(this._config, this._model).forEach(function(t, n) {
                                    if (!e._unlockItemNode[n]) {
                                        var o = cc.instantiate(e._stageItemPrefab);
                                        o.parent = e.AttrLayoutNode, e._unlockItemNode[n] = o
                                    }
                                    e._unlockItemNode[n].active = !0, e._unlockItemNode[n].getComponent(m.default).Init(t)
                                }), [2]
                        }
                    })
                })
            }, t.GetFrontConfig = function(e, t) {
                return d.ConfigDataComponent.Instance.GetArrayConfig(u.PuzzleStage_Config).find(function(n) {
                    return n.GroupId == e && n.Stage == t
                })
            }, t.prototype.GetLockData = function() {
                var e = [],
                    t = this._config.Stage - 1,
                    o = n.GetFrontConfig(this._config.GroupId, t),
                    r = d.DataCenter.Instance.GetDataById(p.ParanormalPuzzle_Model, o.Id);
                return this._config.Unlock.length > 0 && this._config.Unlock.forEach(function(t) {
                    switch (t.Items[0]) {
                        case c.FrontFull:
                            (n = {}).Title = "puzzle_unlock_full".ToUILocale(), n.IsUnlock = r && r.IsFull, e.push(n);
                            break;
                        case c.FrontScore:
                            (n = {}).Title = "puzzle_unlock_score".ToUILocale().Fmt(t.Items[1]), n.IsUnlock = r && r.Score >= t.Items[1], e.push(n);
                            break;
                        case c.TotalScore:
                            var n = {},
                                o = _.default.GetTotalPuzzleScore(t.Items[1]);
                            n.Title = "puzzle_unlock_all_score".ToUILocale().Fmt(t.Items[1].ToPuzzleGroupName(), t.Items[2]), n.IsUnlock = o >= t.Items[2], e.push(n)
                    }
                }), e
            }, t.prototype.SetLockItemNode = function() {
                return a(this, void 0, void 0, function() {
                    var e, t = this;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._isUnlock ? [2] : [4, this.LoadStageLockItemPrefab()];
                            case 1:
                                return n.sent(), e = this.GetLockData(), this._lockItemNode.forEach(function(e) {
                                    e.active = !1
                                }), e.forEach(function(e, n) {
                                    if (!t._lockItemNode[n]) {
                                        var o = cc.instantiate(t._stageLockItemPrefab);
                                        o.parent = t.ConditionNode, t._lockItemNode[n] = o
                                    }
                                    t._lockItemNode[n].active = !0, t._lockItemNode[n].getComponent(I.default).Init(e)
                                }), [2]
                        }
                    })
                })
            }, t.prototype.SetLockMaterial = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._isUnlock ? [2] : [4, this.LoadConsumeItemPrefab()];
                            case 1:
                                return t.sent(), this._consumeNode.forEach(function(e) {
                                    e.active = !1
                                }), this._config.Materials.forEach(function(t, n) {
                                    if (!e._consumeNode[n]) {
                                        var o = cc.instantiate(e._consumeItemPrefab);
                                        o.parent = e.ConsumeNode, e._consumeNode[n] = o
                                    }
                                    e._consumeNode[n].active = !0;
                                    var r = e._consumeNode[n].getComponent(C.default);
                                    r.Init(t.Items[0], !1, t.Items[1]), r.HideBtnAdd(), d.DataCenter.Instance.IsItemEnough(t.Items[0], t.Items[1]) ? r.SetFixedColor(cc.Color.WHITE) : r.SetFixedColor(cc.Color.RED)
                                }), [2]
                        }
                    })
                })
            }, t.prototype.SetReddot = function() {
                this.ReddotNode.active = S.RedDotManager.DataHandler.RefreshPuzzleCanUnLock({
                    Value1: this._config.Id
                })
            }, t.prototype.LoadPuzzleItemPrefab = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._puzzleItemPrefab ? [3, 2] : [4, h.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleItemComponent", cc.Prefab)];
                            case 1:
                                if (e = t.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._puzzleItemPrefab = e, this._assets.push(e), t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.LoadStageItemPrefab = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._stageItemPrefab ? [3, 2] : [4, h.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleStageItemComponent", cc.Prefab)];
                            case 1:
                                if (e = t.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._stageItemPrefab = e, this._assets.push(e), t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.LoadStageLockItemPrefab = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._stageLockItemPrefab ? [3, 2] : [4, h.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleStageLockItemComponent", cc.Prefab)];
                            case 1:
                                if (e = t.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._stageLockItemPrefab = e, this._assets.push(e), t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.LoadConsumeItemPrefab = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._consumeItemPrefab ? [3, 2] : [4, h.AssetsManager.Instance.LoadAsset(g.BundlePath.CurrencyBarComponent, cc.Prefab)];
                            case 1:
                                if (e = t.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._consumeItemPrefab = e, this._assets.push(e), t.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.ClickEditButton = function() {
                h.UIManager.Instance.ShowUIPanel(g.PanelConfig.ParanormalPuzzleSetPanel.Path, this._config)
            }, t.prototype.ClickInfoButton = function() {
                h.UIManager.Instance.ShowUIPanel(g.PanelConfig.ParanormalPuzzleAttrPanel.Path, this._config)
            }, t.prototype.ClickUnlockButton = function() {
                for (var e = this, t = this.GetLockData(), n = 0; n < t.length; n++)
                    if (!t[n].IsUnlock) return void v.UIUtlity.ShowFloatingHint(t[n].Title);
                var o = "",
                    r = "";
                for (n = 0; n < this._config.Materials.length; n++) {
                    var i = this._config.Materials[n],
                        a = d.DataCenter.Instance.GetItemCount(i.Items[0]);
                    o += i.Items[0].ToItemName() + i.Items[1], r += i.Items[0].ToItemName() + a.FmtCurrency()
                }
                v.UIUtlity.ShowHintPanel(null, "puzzle_unlock_hint".ToUILocale().Fmt(o, r), "", null, "ok".ToUILocale(), function() {
                    if (e.CheckMaterials(!0)) {
                        var t = new p.Req_Team_ParanormalPuzzleUnlock;
                        t.Sid = e._config.Id, d.RpcComponent.Instance.Call(t, function() {
                            v.UIUtlity.ShowFloatingHint("puzzle_unlock_tip".ToUILocale().Fmt(e._config.Stage)), h.Game.EventDispatcher.Emit(b.EventKeys.EVENT_PARANORMAL_PUZZLE_STAGE_REFRESH)
                        })
                    }
                })
            }, t.prototype.CheckMaterials = function(e) {
                for (var t = 0; t < this._config.Materials.length; t++) {
                    var n = this._config.Materials[t];
                    if (!d.DataCenter.Instance.IsItemEnough(n.Items[0], n.Items[1])) return e && v.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(n.Items[0].ToItemName())), !1
                }
                return !0
            }, t.prototype.OnClickSelf = function() {
                this._model && h.UIManager.Instance.ShowUIPanel(g.PanelConfig.ParanormalPuzzleSetPanel.Path, this._config)
            }, t.prototype.onDestroy = function() {
                this._assets.forEach(function(e) {
                    h.AssetsManager.Instance.UnloadAsset(e)
                }), this._stageItemPrefab = null, this._stageLockItemPrefab = null, this._consumeItemPrefab = null
            }, i([A(cc.Node)], t.prototype, "ScoreNode", void 0), i([A(cc.Label)], t.prototype, "ScoreDesc", void 0), i([A(cc.Label)], t.prototype, "Score", void 0), i([A(cc.Button)], t.prototype, "EditButton", void 0), i([A(cc.Label)], t.prototype, "EditLabel", void 0), i([A(cc.Label)], t.prototype, "Stage", void 0), i([A(cc.Node)], t.prototype, "PuzzleItemNode", void 0), i([A(cc.Node)], t.prototype, "AttrNode", void 0), i([A(y.default)], t.prototype, "Attrs", void 0), i([A(cc.Label)], t.prototype, "AttrTitle", void 0), i([A(cc.Button)], t.prototype, "InfoButton", void 0), i([A(cc.Node)], t.prototype, "AttrLayoutNode", void 0), i([A(cc.Node)], t.prototype, "LockNode", void 0), i([A(cc.Node)], t.prototype, "ConditionNode", void 0), i([A(cc.Node)], t.prototype, "ConsumeNode", void 0), i([A(cc.Button)], t.prototype, "UnlockButton", void 0), i([A(cc.Label)], t.prototype, "UnlockLabel", void 0), i([A(cc.Label)], t.prototype, "NoAttrLabel", void 0), i([A(cc.Node)], t.prototype, "ReddotNode", void 0), n = i([P], t)
        }(cc.Component);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/HeroAttributeItem": "HeroAttributeItem",
        "./ParanormalPuzzleStagePanel": "ParanormalPuzzleStagePanel",
        "./PuzzleItemComponent": "PuzzleItemComponent",
        "./PuzzleStageItemComponent": "PuzzleStageItemComponent",
        "./PuzzleStageLockItemComponent": "PuzzleStageLockItemComponent"
    }],
    PuzzleStageItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "721111iqNROzrdVzbCo5Eyo", "PuzzleStageItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/DataUtlity"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UnlockNode = null, t.LockNode = null, t.Title = null, t.AttrLayoutNode = null, t._assets = [], t._attrItemNodes = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this._data = e, this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return [4, this.LoadAttrItemPrefab()];
                                case 1:
                                    return e.sent(), this.SetPuzzleStageAttr(), [2]
                            }
                        })
                    })
                }, t.prototype.LoadAttrItemPrefab = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return this._attrItemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("ParanormalPuzzlePanel/Components/PuzzleStageAttrComponent", cc.Prefab)];
                                case 1:
                                    if (e = t.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._attrItemPrefab = e, this._assets.push(e), t.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetPuzzleStageAttr = function() {
                    var e = this;
                    this.UnlockNode.active = this._data.IsUnlock, this.LockNode.active = !this._data.IsUnlock, this.Title.string = this._data.Title, this.Title.node.opacity = this._data.IsUnlock ? 255 : 127, this._attrItemNodes.forEach(function(e) {
                        e.active = !1
                    }), this._data.Attrs.forEach(function(t, n) {
                        if (!e._attrItemNodes[n]) {
                            var o = cc.instantiate(e._attrItemPrefab);
                            o.parent = e.AttrLayoutNode, e._attrItemNodes[n] = o
                        }
                        e._attrItemNodes[n].active = !0;
                        var r = cc.find("CommonLongLabelRollComponent/AttrLabel", e._attrItemNodes[n]),
                            i = e._attrItemNodes[n].getChildByName("AttrNum");
                        r.getComponent(cc.Label).string = c.default.GetHeroAttributeName(t.Items[0]), i.getComponent(cc.Label).string = c.default.GetAttrText(t.Items[0], t.Items[1]), r.opacity = e._data.IsUnlock ? 255 : 127, i.opacity = e._data.IsUnlock ? 255 : 127
                    })
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    }), this._attrItemPrefab = null
                }, i([d(cc.Node)], t.prototype, "UnlockNode", void 0), i([d(cc.Node)], t.prototype, "LockNode", void 0), i([d(cc.Label)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "AttrLayoutNode", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity"
    }],
    PuzzleStageLockItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4959cDHpNVEfqyw6xlrONON", "PuzzleStageLockItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UnlockNode = null, t.LockNode = null, t.Condition = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.UnlockNode.active = e.IsUnlock, this.LockNode.active = !e.IsUnlock;
                    var t = e.IsUnlock ? "#83e832" : "#b4a282";
                    this.Condition.string = "<color={0}>{1}</c>".Fmt(t, e.Title)
                }, i([l(cc.Node)], t.prototype, "UnlockNode", void 0), i([l(cc.Node)], t.prototype, "LockNode", void 0), i([l(cc.RichText)], t.prototype, "Condition", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    QualitySelectGroup: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fae833919FP0by0TvpRufLn", "QualitySelectGroup");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../Auxiliary/UIUtlity"),
            l = e("../../Auxiliary/EventKeys"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LightNode = null, t.LayoutNode = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    var e = this;
                    this.LightNode || (this.LightNode = this.node.getChildByName("Light")), this.LayoutNode || (this.LayoutNode = this.node.getChildByName("Layout")), this.LayoutNode.children.forEach(function(t) {
                        t.on("click", e.OnBtnClick, e), "0" == t.name ? t.getChildByName("Background").getComponent(cc.Sprite).spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("element_all") : t.getChildByName("Background").getComponent(cc.Sprite).spriteFrame = s.UIUtlity.COMMON_ATLAS4.getSpriteFrame("quality_" + t.name)
                    })
                }, t.prototype.OnBtnClick = function(e) {
                    this.SetSelectNode(e.node)
                }, t.prototype.SetSelectNode = function(e) {
                    var t = Number.parseInt(e.name);
                    this.LightNode.setPosition(e.position), a.Game.EventDispatcher.Emit(l.EventKeys.EVENT_SWITCH_HERO_ELEMENT, t, this.node)
                }, t.prototype.SetDefault = function() {
                    this.SetSelectNode(this.LayoutNode.children[0])
                }, i([p(cc.Node)], t.prototype, "LightNode", void 0), i([p(cc.Node)], t.prototype, "LayoutNode", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    QueenSummonPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5cb0fbtR91F6opjpL5Olbnk", "QueenSummonPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../RedDot/RedDotManager"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../../Consts/Consts"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../Components/Components"),
            I = e("../Components/CurrencyBarItem"),
            _ = e("../../Components/Components"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../../Util/index"),
            b = e("./IWantStrongPanel"),
            S = e("../../Auxiliary/GuideManager"),
            w = e("./CommonRatePanel"),
            P = e("../../Auxiliary/GameRecord"),
            A = e("../../../Consts/Consts"),
            T = e("./DisplayRewardsPanel"),
            R = e("./BuyAndSellItemPanel"),
            L = e("../Components/SectorProgressBar"),
            k = e("../../Channel/ChannelManager"),
            O = e("../../Channel/AdjustAction"),
            M = cc._decorator,
            D = M.ccclass,
            B = M.property;
        (function(e) {
            e[e.Junior = 0] = "Junior", e[e.Senior = 1] = "Senior"
        })(l || (l = {}));
        var N = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.JuniorMode = null, t.SeniorMode = null, t.SummonBtnOne = null, t.SummonBtnOneLabel = null, t.SummonBtnTen = null, t.SummonBtnTenLabel = null, t.SummonSeniorBtnOne = null, t.SummonSeniorBtnOneLabel = null, t.SummonSeniorBtnTen = null, t.SummonSeniorBtnTenLabel = null, t.CurrencyBarOne = null, t.CurrencyBarTen = null, t.Toggles = [], t.RateBtn = null, t.RateBtnLabel = null, t.FormationBtn = null, t.FormationBtnLabel = null, t.DecomposeBtn = null, t.DecomposeBtnLabel = null, t.WishListBtn = null, t.WishListBtnLabel = null, t.PrivilegeBtn = null, t.PrivilegeBtnLabel = null, t.ScoreProgress = null, t.ScoreValue = null, t.ScoreBubbleNode = null, t.ScoreBubbleTipLabel = null, t.ScoreBtn = null, t.ScoreBtnLabel = null, t.JuniorFreeLabel = null, t.SeniorFreeLbel = null, t.SkipAnimationToggle = null, t.SkipHint = null, t.ButtonLayout = null, t.AutoSummonNode = null, t.AutoBtn = null, t.AutoBtnLabel = null, t.CurrencyBarAuto = null, t.ProgressRewards = null, t.StrongPath = null, t.summonSeniorDesc = null, t.summonJuniorDesc = null, t._loadAssets = [], t._autoSummonTicketLimit = 0, t._autoSummonCallLimit = 0, t
            }
            var n;
            return r(t, e), n = t, t.prototype.onDisable = function() {
                this.unscheduleAllCallbacks(), this.OffEvent()
            }, t.prototype.OnEvent = function() {
                c.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.SummonCard_Model._n_), this.OnSummonCardDataChange, this), c.Game.EventDispatcher.On(u.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
            }, t.prototype.OffEvent = function() {
                c.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.SummonCard_Model._n_), this.OnSummonCardDataChange, this), c.Game.EventDispatcher.Off(u.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
            }, t.prototype.Display = function(e) {
                this.OffEvent(), this.OnEvent(), this._isUIInit || (this._isUIInit = !0, this.InitUI()), this.SkipAnimationToggle.isChecked = C.default.GetFunctionSkipState(A.FunctionSkipKey.JuniorAndSeniorSummon), null == e ? null == this._currentSummonType && (this._currentSummonType = l.Senior) : this._currentSummonType = e;
                var t = this.Toggles[this._currentSummonType];
                t.isChecked = !0, this.RefreshFreeSummonState(), this.OnSwitchTab(t), this.RefreshScore(), this.BindReddot(), this.ShowGuide(), this.CheckUnLockState(), this.RefreshProgressRewards(), this.RefreshStrongPath(), this.RefreshPrivilegeBtn()
            }, t.prototype.InitUI = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function() {
                        for ((e = this.node.addComponent(cc.Widget)).isAlignTop = !0, e.isAlignBottom = !0, t = 0; t < this.Toggles.length; t++) this.Toggles[t].node.on("toggle", this.OnSwitchTab, this);
                        return this.SummonBtnOne.node.on("click", this.OnSummonOnce, this), this.SummonBtnTen.node.on("click", this.OnSummonTenTimes, this), this.SummonSeniorBtnOne.node.on("click", this.OnSummonOnce, this), this.SummonSeniorBtnTen.node.on("click", this.OnSummonTenTimes, this), this.RateBtn.node.on("click", this.ClickRateBtn, this), this.FormationBtn.node.on("click", this.ClickFormationBtn, this), this.DecomposeBtn.node.on("click", this.ClickDecomposeBtn, this), this.WishListBtn.node.on("click", this.ClickWishListBtn, this), this.ScoreBtn.on(cc.Node.EventType.TOUCH_END, this.ClickScoreBtn, this), this.SkipAnimationToggle.node.on("toggle", this.OnClickSkip, this), this.AutoBtn.node.on("click", this.ClickAutoBtn, this), this.ProgressRewards.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEndProgressRewards, this), this.StrongPath.node.on(cc.Node.EventType.TOUCH_END, this.OnTouchEndStrongPath, this), this.PrivilegeBtn.node.on("click", this.OnShowPrivilegePanel, this), this.SummonBtnTenLabel.string = "summon_times".ToUILocale().Fmt(10), this.SummonSeniorBtnTenLabel.string = "summon_times".ToUILocale().Fmt(10), this.RateBtnLabel.string = "ratepanel_tittle".ToUILocale(), this.FormationBtnLabel.string = "formation_recommend".ToUILocale(), this.DecomposeBtnLabel.string = "autoDecompose".ToUILocale(), this.WishListBtnLabel.string = "wishList".ToUILocale(), this.ScoreBtnLabel.string = "summon_score".ToUILocale(), this.SkipHint.string = "infinite_jump".ToUILocale(), this.AutoBtnLabel.string = "auto_summon".ToUILocale(), this.summonSeniorDesc.string = "summonSeniorDesc".ToUILocale(), this.summonJuniorDesc.string = "summonJuniorDesc".ToUILocale(), this.PrivilegeBtnLabel.string = y.SubscribePrivilegeType.Summon.ToSubscribePrivilegeName(), this._autoSummonTicketLimit = _.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AutoSummonTicketLimitCount"), this._autoSummonCallLimit = _.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AutoSummonCallLimitCount"), [2]
                    })
                })
            }, t.prototype.CheckUnLockState = function() {
                var e = C.default.Instance.IsGameModuleUnlock(y.GameModuleType.ScoreSummon);
                this._scoreSummonUnlock = e[0], this._scoreSummonUnlock ? d.UIUtlity.OffNodeGray(this.ScoreBtn) : (d.UIUtlity.OnNodeGray(this.ScoreBtn), this._scoreSummonUnlockInfo = e[1])
            }, t.prototype.RefreshFreeSummonState = function() {
                if (this.unscheduleAllCallbacks(), !this._juniorSummonSid) {
                    var e = _.ConfigDataComponent.Instance.GetConfigById(f.CardCommonSummon_Config, n.JUNIOR_SUMMON_ONCE_ID),
                        t = _.ConfigDataComponent.Instance.GetConfigById(f.CardCommonSummon_Config, n.SENIOR_SUMMON_ONCE_ID);
                    this._juniorSummonSid = e.SummonType, this._seniorSummonSid = t.SummonType
                }
                this.ConfigJuniorFreeState(), this.ConfigSeniorFreeState()
            }, t.prototype.ConfigJuniorFreeState = function() {
                var e = this;
                _.DataCenter.Instance.GetDataById(g.SummonCard_Model, this._juniorSummonSid).FreeCount > 0 ? (this._isJuniorFree = !0, this.JuniorFreeLabel.string = "summon_free_hint".ToUILocale()) : (this._isJuniorFree = !1, this.JuniorFreeLabel.string = this.LeftFreeTime, this.schedule(function() {
                    e.JuniorFreeLabel.string = e.LeftFreeTime
                }, 1))
            }, t.prototype.ConfigSeniorFreeState = function() {
                var e = this;
                _.DataCenter.Instance.GetDataById(g.SummonCard_Model, this._seniorSummonSid).FreeCount > 0 ? (this._isSeniorFree = !0, this.SeniorFreeLbel.string = "summon_free_hint".ToUILocale()) : (this._isSeniorFree = !1, this.SeniorFreeLbel.string = this.LeftFreeTime, this.schedule(function() {
                    e.SeniorFreeLbel.string = e.LeftFreeTime
                }, 1))
            }, Object.defineProperty(t.prototype, "LeftFreeTime", {
                get: function() {
                    var e = _.RpcComponent.Instance.ServerTime,
                        t = v.TimeUtil.Get0ClockTs(e),
                        n = v.TimeUtil.GetOffsetDayTs(1, t) - e;
                    return "summon_free_leftTime".ToUILocale().Fmt(n.FmtRemainTime())
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.OnSwitchTab = function(e) {
                var t, n = Number.parseInt(e.name);
                switch (this._currentSummonType = n, n) {
                    case l.Junior:
                        this.JuniorMode.active = !0, this.SeniorMode.active = !1, this.SummonBtnOne.node.active = !0, this.SummonBtnTen.node.active = !0, this.SummonSeniorBtnOne.node.active = !1, this.SummonSeniorBtnTen.node.active = !1, t = this._isJuniorFree, this.SummonBtnOneLabel.string = t ? "summon_free".ToUILocale() : "summon_times".ToUILocale().Fmt(1), P.default.SetItem(P.GameRecordDefine.NormalSummonHeroTen, m.RpcComponent.Instance.ServerTime), this.StrongPath.node.active = !1, this.WishListBtn.node.active = !1;
                        break;
                    case l.Senior:
                        this.JuniorMode.active = !1, this.SeniorMode.active = !0, this.SummonBtnOne.node.active = !1, this.SummonBtnTen.node.active = !1, this.SummonSeniorBtnOne.node.active = !0, this.SummonSeniorBtnTen.node.active = !0, t = this._isSeniorFree, this.SummonSeniorBtnOneLabel.string = t ? "summon_free".ToUILocale() : "summon_times".ToUILocale().Fmt(1), P.default.SetItem(P.GameRecordDefine.AdvanceSummonHeroTen, m.RpcComponent.Instance.ServerTime);
                        var o = C.default.Instance.IsGameModuleUnlock(y.GameModuleType.StrongPath)[0],
                            r = C.default.Instance.IsGameModuleOpen(y.GameModuleType.StrongPath);
                        o && r ? (this.StrongPath.node.active = !0, this.WishListBtn.node.active = !0) : (this.StrongPath.node.active = !1, this.WishListBtn.node.active = !1)
                }
                this.ConfigSummonCurrencyBar()
            }, t.prototype.ConfigSummonCurrencyBar = function() {
                var e, t;
                switch (this._currentSummonType) {
                    case l.Junior:
                        e = n.JUNIOR_SUMMON_ONCE_ID, t = n.JUNIOR_SUMMON_TEN_ID;
                        break;
                    case l.Senior:
                        e = n.SENIOR_SUMMON_ONCE_ID, t = n.SENIOR_SUMMON_TEN_ID
                }
                for (var o = _.ConfigDataComponent.Instance.GetConfigById(f.CardCommonSummon_Config, e), r = _.ConfigDataComponent.Instance.GetConfigById(f.CardCommonSummon_Config, t), i = 0; i < o.ConsumeItem.length; i++) {
                    var a = o.ConsumeItem[i];
                    if (this._summonOnceCurrencyId = a.Items[0], this._summonOnceCurrencyCount = a.Items[1], _.DataCenter.Instance.GetItemCount(this._summonOnceCurrencyId) >= this._summonOnceCurrencyCount) break
                }
                for (i = 0; i < r.ConsumeItem.length && (a = r.ConsumeItem[i], this._summonTenCurrencyId = a.Items[0], this._summonTenCurrencyCount = a.Items[1], !(_.DataCenter.Instance.GetItemCount(this._summonTenCurrencyId) >= this._summonTenCurrencyCount)); i++);
                this.CurrencyBarOne.Init(this._summonOnceCurrencyId, !1, this._summonOnceCurrencyCount);
                var s = _.DataCenter.Instance.IsItemEnough(this._summonOnceCurrencyId, this._summonOnceCurrencyCount);
                this.CurrencyBarOne.SetFixedColor(s ? cc.Color.WHITE : cc.Color.RED), this.CurrencyBarTen.Init(this._summonTenCurrencyId, !1, this._summonTenCurrencyCount);
                var c = _.DataCenter.Instance.IsItemEnough(this._summonTenCurrencyId, this._summonTenCurrencyCount);
                this.CurrencyBarTen.SetFixedColor(c ? cc.Color.WHITE : cc.Color.RED);
                var u = this.RefreshAutoSummonUnlockState();
                if (this.AutoSummonNode.active = u, this.ButtonLayout.spacingX = u ? n.LAYOUT_THREE_NODES : n.LAYOUT_TWO_NODES, u) {
                    var p = 0,
                        d = !1;
                    for (this._summonAutoCurrencyId = 0, i = 0; i < o.ConsumeItem.length; i++)
                        if ((a = o.ConsumeItem[i]).Items[0] != A.CommonItemId.Diamond && (d || (p = i, d = !0), _.DataCenter.Instance.GetItemCount(a.Items[0]) >= a.Items[1])) {
                            this._summonAutoCurrencyId = a.Items[0], this._summonAutoCurrencyCount = a.Items[1];
                            break
                        } 0 == this._summonAutoCurrencyId && (this._summonAutoCurrencyId = o.ConsumeItem[p].Items[0], this._summonAutoCurrencyCount = o.ConsumeItem[p].Items[1]);
                    var h = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit") * this._summonAutoCurrencyCount,
                        y = _.DataCenter.Instance.GetItemCount(this._summonAutoCurrencyId),
                        g = y > h ? h : y;
                    this.CurrencyBarAuto.Init(this._summonAutoCurrencyId, !1, g)
                }
            }, t.prototype.RefreshAutoSummonUnlockState = function() {
                if (C.default.Instance.IsGameModuleUnlock(y.GameModuleType.SummonAutoConsumeItem)[0]) return !0;
                var e, t, n = 0;
                switch (this._currentSummonType) {
                    case l.Junior:
                        e = y.CommonItemId.JuniorSummonTicket, t = _.DataCenter.Instance.GetDataById(g.SummonCard_Model, this._juniorSummonSid);
                        break;
                    case l.Senior:
                        e = y.CommonItemId.SeniorSummonTicket, t = _.DataCenter.Instance.GetDataById(g.SummonCard_Model, this._seniorSummonSid)
                }
                return t && (n = t.TotalCount), n >= this._autoSummonCallLimit || _.DataCenter.Instance.GetItemCount(e) >= this._autoSummonTicketLimit
            }, t.prototype.OnSummonOnce = function() {
                var e = !1;
                switch (this._currentSummonType) {
                    case l.Junior:
                        this._currentSummonId = n.JUNIOR_SUMMON_ONCE_ID, e = this._isJuniorFree;
                        break;
                    case l.Senior:
                        this._currentSummonId = n.SENIOR_SUMMON_ONCE_ID, e = this._isSeniorFree
                }
                this.RequestSummon(this._summonOnceCurrencyId, this._summonOnceCurrencyCount, 1, e)
            }, t.prototype.OnSummonTenTimes = function() {
                switch (this._currentSummonType) {
                    case l.Junior:
                        this._currentSummonId = n.JUNIOR_SUMMON_TEN_ID;
                        break;
                    case l.Senior:
                        this._currentSummonId = n.SENIOR_SUMMON_TEN_ID
                }
                this.RequestSummon(this._summonTenCurrencyId, this._summonTenCurrencyCount, 10)
            }, t.prototype.RequestSummon = function(e, t, o, r) {
                var i = this;
                void 0 === r && (r = !1), n.CheckOwnedHeroes();
                var a = _.DataCenter.Instance.GetItemCount(e);
                if (!r && a < t) e == y.CommonItemId.Diamond ? c.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [y.MallPageType.DiamondShop, y.GiftPackType.BuyDiamond]) : d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(e.ToItemName()));
                else if (C.default.Instance.IsCanGetNewHero(o)) {
                    if (!r && e == y.CommonItemId.Diamond && !P.default.GetItem(P.GameRecordDefine.SummonCostDiamondHint)) return d.UIUtlity.ShowHintPanel(null, "costDiamondSummonHint".ToUILocale().Fmt(t), "", null, "", function() {
                        i.DoRequestSummonJob(r, e)
                    }, void 0, P.GameRecordDefine.SummonCostDiamondHint);
                    this.DoRequestSummonJob(r, e, o)
                } else {
                    var s = C.default.Instance.GetHeroCountLimit(),
                        l = "drawCard_heroCount_limit".ToUILocale().Fmt(s);
                    d.UIUtlity.ShowHintPanel("", l, "", null, "go_to_treat".ToUILocale(), function() {
                        c.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroPalacePanel.Path, 1)
                    })
                }
            }, t.prototype.DoRequestSummonJob = function(e, t, o) {
                void 0 === o && (o = 0), d.UIUtlity.ShowMaskPanel();
                var r = new g.Req_Card_CommonSummon;
                r.Type = this._currentSummonId, r.ItemId = e ? 0 : t, this._currentSummonId == n.SCORE_SUMMON_ID && (r.Count = o), r.DecomposeStar = C.default.Instance.GetAutoDecomposeStar(), _.RpcComponent.Instance.Call(r, this.OnSummonSucces.bind(this), this.OnSummonError.bind(this), S.default.Instance.CurrentGroup)
            }, t.prototype.OnSummonSucces = function(e) {
                if (this.unscheduleAllCallbacks(), this.OffEvent(), d.UIUtlity.CloseMaskPanel(), this._currentSummonId == n.SCORE_SUMMON_ID && e.Items.length > 1) {
                    var t = [];
                    e.Items.forEach(function(e) {
                        var n = new g.UserItem_Model;
                        n.ItemId = e.Items[0], n.Count = e.Items[1], t.push(n)
                    }), c.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.DisplayRewardsPanel.Path, t), this.RefreshScore()
                } else {
                    for (var o = [], r = [], i = 0; i < e.Items.length; i++) o.push(e.Items[i].Items), e.Items[i].Items[5] && r.push(i);
                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.SummonResultPanel.Path, this._currentSummonId, o, r.length > 0 ? r : null), O.default.AdjustTrackEvent(O.AdjustEventToken.Summon)
                }
                if (e.Rewards.length > 0) {
                    var a = [];
                    for (i = 0; i < e.Rewards.length; i++) {
                        var s = e.Rewards[i].ItemId,
                            l = e.Rewards[i].Count;
                        a.push("autoDecompose_rewards".ToUILocale().Fmt(s.ToItemName(), l))
                    }
                    d.UIUtlity.ShowFloatingHint(a)
                }
            }, t.prototype.OnSummonError = function() {
                d.UIUtlity.CloseMaskPanel()
            }, t.prototype.RefreshScore = function() {
                if (!this._costScoreId) {
                    var e = _.ConfigDataComponent.Instance.GetConfigById(f.CardCommonSummon_Config, n.SCORE_SUMMON_ID);
                    this._costScoreId = e.ConsumeItem[0].Items[0], this._costScoreCount = e.ConsumeItem[0].Items[1]
                }
                var t, o = _.DataCenter.Instance.GetItemCount(this._costScoreId);
                t = o < this._costScoreCount ? "ff4b4b" : "ffffff", this.ScoreValue.string = "<color=#" + t + ">" + o + "</c>/" + this._costScoreCount, this.ScoreProgress.fillRange = o / this._costScoreCount, this.ScoreBubbleNode.active = o >= this._costScoreCount, this.ScoreBubbleTipLabel.string = "queenSummon_score_bubble_tip".ToUILocale()
            }, t.prototype.RefreshProgressRewards = function() {
                if (!k.default.Instance.IsVNChannel() && C.default.Instance.IsGameModuleOpen(y.GameModuleType.ProgressRewards)) {
                    this.ProgressRewards.node.active = !0;
                    var e = C.default.GetProgressRewardsByType(y.ProgressRewardsType.Senior);
                    this.ProgressRewards.Init(e.value, e.maxValue, e.itemId, "progress_rewards_senior".ToUILocale()), C.default.Instance.IsGameModuleUnlock(y.GameModuleType.ProgressRewards)[0] ? (d.UIUtlity.OffNodeGray(this.ProgressRewards.node), this.ProgressRewards.SetBubbleNode("online_canGet".ToUILocale())) : d.UIUtlity.OnNodeGray(this.ProgressRewards.node)
                } else this.ProgressRewards.node.active = !1
            }, t.prototype.RefreshStrongPath = function() {
                var e = C.default.Instance.IsGameModuleUnlock(y.GameModuleType.StrongPath)[0],
                    t = C.default.Instance.IsGameModuleOpen(y.GameModuleType.StrongPath);
                if (!e || !t) return this.StrongPath.node.active = !1, void(this.WishListBtn.node.active = !1);
                this.StrongPath.node.active = !0, this.WishListBtn.node.active = !0;
                var n = _.DataCenter.Instance.GetIntData(y.UserDataKey.StrongPathCount),
                    o = _.DataCenter.Instance.GetArrayData(y.UserDataKey.StrongPathTasks),
                    r = C.default.Instance.GetNextStrongPathTask(),
                    i = r[0];
                if (i) {
                    var a, s;
                    r[1] ? (a = r[2].Count - r[1].Count, s = n - r[1].Count) : (a = r[2].Count, s = n), o.includes(r[2].Id) ? this.StrongPath.Init(a, null, null, "StrongPath".ToUILocale()) : (s = s > a ? a : s, this.StrongPath.Init(s, a, null, "StrongPath".ToUILocale())), n >= i.Count ? this.StrongPath.SetBubbleNode(null) : this.StrongPath.SetBubbleNode(null, "StrongPathBubble".ToUILocale().Fmt(i.Count - n, i.Id.ToStrongPathTaskTitle()));
                    var l = _.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, y.LevelParamType.StrongPathWishListTaskId).Data[0];
                    _.DataCenter.Instance.GetArrayData(y.UserDataKey.StrongPathTasks).includes(l) ? d.UIUtlity.OffNodeGray(this.WishListBtn.node) : d.UIUtlity.OnNodeGray(this.WishListBtn.node)
                } else this.StrongPath.node.active = !1
            }, t.prototype.ClickRateBtn = function() {
                var e;
                switch (this._currentSummonType) {
                    case l.Junior:
                        e = 1, c.UIManager.Instance.ShowUIPanel(h.PanelConfig.CommonRatePanel.Path, w.ShowRateType.Common, e);
                        break;
                    case l.Senior:
                        e = 3, c.UIManager.Instance.ShowUIPanel(h.PanelConfig.SeniorSummonRatePanel.Path, w.ShowRateType.Common, e)
                }
            }, t.prototype.ClickFormationBtn = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.IWantStrongPanel.Path, b.WantStrongModule.RecommendFormation)
            }, t.prototype.ClickDecomposeBtn = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroDecomposeSettingPanel.Path)
            }, t.prototype.ClickWishListBtn = function() {
                var e = _.ConfigDataComponent.Instance.GetConfigById(f.LevelParam_Config, y.LevelParamType.StrongPathWishListTaskId).Data[0];
                if (_.DataCenter.Instance.GetArrayData(y.UserDataKey.StrongPathTasks).includes(e)) c.UIManager.Instance.ShowUIPanel(h.PanelConfig.StrongPathWishListPanel.Path);
                else {
                    var t = _.DataCenter.Instance.GetIntData(y.UserDataKey.StrongPathCount),
                        n = _.ConfigDataComponent.Instance.GetConfigById(f.StrongPathTask_Config, e);
                    t = t > n.Count ? n.Count : t, d.UIUtlity.ShowFloatingHint("strongPath_wishListLocked".ToUILocale().Fmt(t, n.Count))
                }
            }, t.prototype.ClickScoreBtn = function() {
                if (this._scoreSummonUnlock)
                    if (C.default.Instance.IsCanGetNewHero(1))
                        if (_.DataCenter.Instance.GetItemCount(this._costScoreId) < this._costScoreCount) d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._costScoreId.ToItemName()));
                        else {
                            var e = _.DataCenter.Instance.GetItemCount(this._costScoreId),
                                t = "summon_score".ToUILocale(),
                                n = (r = "summon_score_desc".ToUILocale(), "holyArea_treasury_score".ToUILocale().Fmt(e));
                            d.UIUtlity.ShowHintPanel(t, r, "summon_auto".ToUILocale(), this.OnSummonByScoreAuto.bind(this), "summon".ToUILocale(), this.OnSummonByScoreOnce.bind(this), n)
                        }
                else {
                    var o = C.default.Instance.GetHeroCountLimit(),
                        r = "timeLimited_wishCall_heroCount_limit".ToUILocale().Fmt(o);
                    d.UIUtlity.ShowHintPanel("", r, "", null, "go_to_treat".ToUILocale(), function() {
                        c.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroPalacePanel.Path, 1)
                    })
                } else d.UIUtlity.ShowHintPanel("", this._scoreSummonUnlockInfo, "close".ToUILocale(), null, "allianceBase_inspect".ToUILocale(), function() {
                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.FamePriviledgePanel.Path)
                })
            }, Object.defineProperty(t.prototype, "ScoreSummonData", {
                get: function() {
                    var e = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit"),
                        t = C.default.Instance.GetHeroCountLimit(),
                        n = _.DataCenter.Instance.GetItemCount(this._costScoreId),
                        o = Math.floor(n / this._costScoreCount),
                        r = m.DataCenter.Instance.GetDataList(g.UserHero_Model),
                        i = t - r.length > 0 ? t - r.length : 0,
                        a = Math.min(e, i),
                        s = o > a ? a : o;
                    return [s * this._costScoreCount, s]
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.OnSummonByScoreAuto = function() {
                this._currentSummonId = n.SCORE_SUMMON_ID;
                var e = this.ScoreSummonData;
                this.RequestSummon(this._costScoreId, this._costScoreCount, e[1])
            }, t.prototype.OnSummonByScoreOnce = function() {
                this._currentSummonId = n.SCORE_SUMMON_ID, this.RequestSummon(this._costScoreId, this._costScoreCount, 1)
            }, t.prototype.OnSummonCardDataChange = function(e) {
                var t = this;
                Object.keys(e).forEach(function(e) {
                    var n = Number.parseInt(e);
                    n != t._juniorSummonSid && n != t._seniorSummonSid || t.RefreshFreeSummonState()
                })
            }, t.prototype.BindReddot = function() {
                p.RedDotManager.Instance.Bind(this.Toggles[l.Junior].node, p.RedDotManager.Instance.RedDot.SummonQueenJuniorToggle, 0, -50), p.RedDotManager.Instance.Bind(this.Toggles[l.Senior].node, p.RedDotManager.Instance.RedDot.SummonQueenSeniorToggle, 0, -50), p.RedDotManager.Instance.Bind(this.StrongPath.node, p.RedDotManager.Instance.RedDot.StrongPathNode), p.RedDotManager.Instance.Bind(this.WishListBtn.node, p.RedDotManager.Instance.RedDot.StrongPathWishListNode), p.RedDotManager.Instance.Bind(this.ScoreBtn, p.RedDotManager.Instance.RedDot.SummonQueenScoreBtn), p.RedDotManager.Instance.Bind(this.SummonBtnOne.node, p.RedDotManager.Instance.RedDot.SummonQueenJuniorOnceBtn), p.RedDotManager.Instance.Bind(this.SummonBtnTen.node, p.RedDotManager.Instance.RedDot.SummonQueenJuniorTenBtn), p.RedDotManager.Instance.Bind(this.SummonSeniorBtnOne.node, p.RedDotManager.Instance.RedDot.SummonQueenSeniorOnceBtn), p.RedDotManager.Instance.Bind(this.SummonSeniorBtnTen.node, p.RedDotManager.Instance.RedDot.SummonQueenSeniorTenBtn), k.default.Instance.IsVNChannel() || p.RedDotManager.Instance.Bind(this.ProgressRewards.node, p.RedDotManager.Instance.RedDot.ProgressRewardsSenior)
            }, t.prototype.OnClickSkip = function(e) {
                C.default.SetFunctionSkipState(A.FunctionSkipKey.JuniorAndSeniorSummon, e.isChecked)
            }, t.prototype.ClickAutoBtn = function() {
                if (C.default.Instance.IsCanGetNewHero(1)) {
                    if (this._summonAutoCurrencyId) {
                        switch (this._currentSummonType) {
                            case l.Junior:
                                this._currentSummonId = n.JUNIOR_SUMMON_ONCE_ID;
                                break;
                            case l.Senior:
                                this._currentSummonId = n.SENIOR_SUMMON_ONCE_ID
                        }
                        var e = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("CommonSummonCountLimit"),
                            t = _.DataCenter.Instance.GetItemCount(this._summonAutoCurrencyId);
                        if (t >= this._summonAutoCurrencyCount) {
                            var o = Math.floor(t / this._summonAutoCurrencyCount),
                                r = C.default.Instance.GetHeroCountLimit(),
                                i = m.DataCenter.Instance.GetDataList(g.UserHero_Model),
                                a = r - i.length > 0 ? r - i.length : 0,
                                s = o > (u = Math.min(e, a)) ? u : o;
                            this.DisplayUseItemPanel(s)
                        } else d.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._summonAutoCurrencyId.ToItemName()))
                    }
                } else {
                    var u = C.default.Instance.GetHeroCountLimit(),
                        p = "timeLimited_wishCall_heroCount_limit".ToUILocale().Fmt(u);
                    d.UIUtlity.ShowHintPanel("", p, "", null, "go_to_treat".ToUILocale(), function() {
                        c.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroPalacePanel.Path, 1)
                    })
                }
            }, t.prototype.OnTouchEndProgressRewards = function() {
                if (!k.default.Instance.IsVNChannel()) {
                    var e = C.default.Instance.IsGameModuleUnlock(y.GameModuleType.ProgressRewards);
                    if (!e[0]) return d.UIUtlity.ShowFloatingHint(e[1]);
                    var t = C.default.GetProgressRewardsByType(y.ProgressRewardsType.Senior);
                    if (t.value < t.maxValue) return d.UIUtlity.ShowFloatingHint("progress_rewards_progress_not_enough".ToUILocale());
                    var n = new g.Req_Card_ReceiveProgressRewards;
                    n.Type = y.ProgressRewardsType.Senior, m.RpcComponent.Instance.Call(n, function(e) {
                        e.Rewards.length > 0 && d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }
            }, t.prototype.OnTouchEndStrongPath = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.StrongPathPanel.Path)
            }, t.prototype.DisplayUseItemPanel = function(e) {
                var t = {};
                t.UseItemId = this._summonAutoCurrencyId, t.Title = "use".ToUILocale(), t.MaxCount = e, t.BuyOrSaleCount = e, t.PerItemCount = this._summonAutoCurrencyCount, t.Callback = this.RequestAutoSummon.bind(this), c.UIManager.Instance.ShowUIPanel(h.PanelConfig.BuyAndSellItemPanel.Path, null, null, null, R.BuyAndSellType.Use, null, null, t)
            }, t.prototype.RequestAutoSummon = function(e) {
                if (C.default.Instance.IsCanGetNewHero(e)) {
                    n.CheckOwnedHeroes();
                    var t = new g.Req_Card_CommonSummon;
                    t.Type = this._currentSummonId, t.ItemId = this._summonAutoCurrencyId, t.Count = e, t.DecomposeStar = C.default.Instance.GetAutoDecomposeStar(), _.RpcComponent.Instance.Call(t, this.RequestAutoSummonSuccess.bind(this))
                } else {
                    var o = C.default.Instance.GetHeroCountLimit(),
                        r = "timeLimited_wishCall_heroCount_limit".ToUILocale().Fmt(o);
                    d.UIUtlity.ShowHintPanel("", r, "", null, "go_to_treat".ToUILocale(), function() {
                        c.UIManager.Instance.ShowUIPanel(h.PanelConfig.HeroPalacePanel.Path, 1)
                    })
                }
            }, t.prototype.RequestAutoSummonSuccess = function(e) {
                var t = [],
                    o = [];
                e.Items.forEach(function(e) {
                    var r = new g.UserItem_Model;
                    r.ItemId = e.Items[0], r.Count = e.Items[1], t.push(r);
                    var i = _.ConfigDataComponent.Instance.GetConfigById(f.ItemHeroCard_Config, e.Items[0]);
                    if (i && !n.OwnedHeroIds.includes(i.HeroId)) {
                        var a = _.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, i.HeroId);
                        (i.StarLevel >= 4 || a.StarLevel >= 4) && o.push(e.Items[0])
                    }
                }), o.length > 0 && !this.SkipAnimationToggle.isChecked && c.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.ShowOffHeroPanel.Path, o);
                var r = t.concat(e.Rewards);
                this._currentSummonId == n.SENIOR_SUMMON_ONCE_ID || this._currentSummonId == n.JUNIOR_SUMMON_ONCE_ID ? c.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.DisplayRewardsPanel.Path, r, T.RewardPanelSpineType.SpineFlash) : c.UIManager.Instance.ShowUIPanelByQueue(h.PanelConfig.DisplayRewardsPanel.Path, r)
            }, t.prototype.ShowGuide = function() {
                if (S.default.Instance.IsInGuide) switch (S.default.Instance.CurrentStep) {
                    case 2103:
                        S.default.Instance.ShowGuide(this.Toggles[0].node);
                        break;
                    case 2104:
                        S.default.Instance.ShowGuide(this.SummonBtnOne.node);
                        break;
                    case 9103:
                        S.default.Instance.ShowGuide(this.SummonSeniorBtnTen.node);
                        break;
                    case 3101:
                        S.default.Instance.ShowGuide()
                }
            }, t.prototype.RefreshPrivilegeBtn = function() {
                var e = C.default.Instance.SubscribePrivilegeIsEffective(y.SubscribePrivilegeType.Summon);
                this.PrivilegeBtn.node.active = !e
            }, t.prototype.OnShowPrivilegePanel = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [y.MallPageType.Privilege, y.GiftPackType.SubscribePrivilege])
            }, t.CheckOwnedHeroes = function() {
                n.OwnedHeroIds = [];
                for (var e = _.DataCenter.Instance.GetDataList(g.HeroInfo_Model), t = 0; t < e.length; t++) n.OwnedHeroIds.push(e[t].HeroId)
            }, t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    c.AssetsManager.Instance.UnloadAsset(e)
                })
            }, t.ACTIVITY_SUMMON_ONCE_ID = 0, t.JUNIOR_SUMMON_ONCE_ID = 1, t.JUNIOR_SUMMON_TEN_ID = 2, t.SENIOR_SUMMON_ONCE_ID = 3, t.SENIOR_SUMMON_TEN_ID = 4, t.SCORE_SUMMON_ID = 5, t.LAYOUT_TWO_NODES = 130, t.LAYOUT_THREE_NODES = 30, t.OwnedHeroIds = [], i([B(cc.Node)], t.prototype, "JuniorMode", void 0), i([B(cc.Node)], t.prototype, "SeniorMode", void 0), i([B(cc.Button)], t.prototype, "SummonBtnOne", void 0), i([B(cc.Label)], t.prototype, "SummonBtnOneLabel", void 0), i([B(cc.Button)], t.prototype, "SummonBtnTen", void 0), i([B(cc.Label)], t.prototype, "SummonBtnTenLabel", void 0), i([B(cc.Button)], t.prototype, "SummonSeniorBtnOne", void 0), i([B(cc.Label)], t.prototype, "SummonSeniorBtnOneLabel", void 0), i([B(cc.Button)], t.prototype, "SummonSeniorBtnTen", void 0), i([B(cc.Label)], t.prototype, "SummonSeniorBtnTenLabel", void 0), i([B(I.default)], t.prototype, "CurrencyBarOne", void 0), i([B(I.default)], t.prototype, "CurrencyBarTen", void 0), i([B(cc.Toggle)], t.prototype, "Toggles", void 0), i([B(cc.Button)], t.prototype, "RateBtn", void 0), i([B(cc.Label)], t.prototype, "RateBtnLabel", void 0), i([B(cc.Button)], t.prototype, "FormationBtn", void 0), i([B(cc.Label)], t.prototype, "FormationBtnLabel", void 0), i([B(cc.Button)], t.prototype, "DecomposeBtn", void 0), i([B(cc.Label)], t.prototype, "DecomposeBtnLabel", void 0), i([B(cc.Button)], t.prototype, "WishListBtn", void 0), i([B(cc.Label)], t.prototype, "WishListBtnLabel", void 0), i([B(cc.Button)], t.prototype, "PrivilegeBtn", void 0), i([B(cc.Label)], t.prototype, "PrivilegeBtnLabel", void 0), i([B(cc.Sprite)], t.prototype, "ScoreProgress", void 0), i([B(cc.RichText)], t.prototype, "ScoreValue", void 0), i([B(cc.Node)], t.prototype, "ScoreBubbleNode", void 0), i([B(cc.Label)], t.prototype, "ScoreBubbleTipLabel", void 0), i([B(cc.Node)], t.prototype, "ScoreBtn", void 0), i([B(cc.Label)], t.prototype, "ScoreBtnLabel", void 0), i([B(cc.RichText)], t.prototype, "JuniorFreeLabel", void 0), i([B(cc.RichText)], t.prototype, "SeniorFreeLbel", void 0), i([B(cc.Toggle)], t.prototype, "SkipAnimationToggle", void 0), i([B(cc.Label)], t.prototype, "SkipHint", void 0), i([B(cc.Layout)], t.prototype, "ButtonLayout", void 0), i([B(cc.Node)], t.prototype, "AutoSummonNode", void 0), i([B(cc.Button)], t.prototype, "AutoBtn", void 0), i([B(cc.Label)], t.prototype, "AutoBtnLabel", void 0), i([B(I.default)], t.prototype, "CurrencyBarAuto", void 0), i([B(L.default)], t.prototype, "ProgressRewards", void 0), i([B(L.default)], t.prototype, "StrongPath", void 0), i([B(cc.Label)], t.prototype, "summonSeniorDesc", void 0), i([B(cc.Label)], t.prototype, "summonJuniorDesc", void 0), n = i([D], t)
        }(cc.Component);
        n.default = N, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/index": "index",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Channel/AdjustAction": "AdjustAction",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/SectorProgressBar": "SectorProgressBar",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./CommonRatePanel": "CommonRatePanel",
        "./DisplayRewardsPanel": "DisplayRewardsPanel",
        "./IWantStrongPanel": "IWantStrongPanel"
    }],
    QuestionListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "07557ucZCdOaoR0LZ/boccG", "QuestionListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Grid = null, t.DescLabel = null, t.AnswerText = null, t.ExpandNode = null, t.BtnExpand = null, t.BtnShrink = null, t.ExpandGrid = null, t._isInit = !1, t
                }
                return r(t, e), t.prototype.SetUI = function(e) {
                    this._questionId = e, this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.InitUI()
                }, t.prototype.InitUI = function() {
                    this.ResetBtn(), this.ExpandNode.active = !1
                }, t.prototype.SetStaticLocalText = function() {
                    this.DescLabel.string = this._questionId.ToQuestionName(), this.AnswerText.string = this._questionId.ToQuestionAnswer()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnExpand.node.on("click", this.OnBtnExpandClick, this), this.BtnShrink.node.on("click", this.OnBtnShrinkClick, this)
                }, t.prototype.ResetBtn = function() {
                    this.BtnExpand.node.active = !0, this.BtnShrink.node.active = !1
                }, t.prototype.OnBtnExpandClick = function() {
                    this.ExpandNode.active = !0, this.BtnExpand.node.active = !1, this.BtnShrink.node.active = !0, this.AnswerText.node.height < 150 ? (this.ExpandGrid.enabled = !1, this.ExpandGrid.node.height = 170) : (this.ExpandGrid.enabled = !0, this.ExpandGrid.updateLayout()), this.Grid.updateLayout()
                }, t.prototype.OnBtnShrinkClick = function() {
                    this.ExpandNode.active = !1, this.BtnExpand.node.active = !0, this.BtnShrink.node.active = !1, this.Grid.updateLayout()
                }, i([l(cc.Layout)], t.prototype, "Grid", void 0), i([l(cc.Label)], t.prototype, "DescLabel", void 0), i([l(cc.RichText)], t.prototype, "AnswerText", void 0), i([l(cc.Node)], t.prototype, "ExpandNode", void 0), i([l(cc.Button)], t.prototype, "BtnExpand", void 0), i([l(cc.Button)], t.prototype, "BtnShrink", void 0), i([l(cc.Layout)], t.prototype, "ExpandGrid", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    QuestionPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "72e85a4IKhIWp+6qAHyOhi7", "QuestionPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../Components/ConfigData/ConfigDataComponent"),
            c = e("../../../../Proto/Static/ConfigProto"),
            u = e("../Components/QuestionListItem"),
            p = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.QuestionGrid = null, t._listItemPrefab = null, t._listItemArray = [], t._isInit = !1, t._assets = [], t
                }
                var n;
                return r(t, e), n = t, t.prototype.Display = function() {
                    this._isInit || (this.LoadConfig(), this._isInit = !0), this.SetListItemShow()
                }, t.prototype.LoadConfig = function() {
                    this._questionConfigList = l.ConfigDataComponent.Instance.GetArrayConfig(c.Question_Config), this._questionConfigList.sort(function(e, t) {
                        return e.SortId < t.SortId ? -1 : e.SortId > t.SortId ? 1 : 0
                    })
                }, t.prototype.SetListItemShow = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != this._listItemPrefab ? [3, 2] : [4, p.AssetsManager.Instance.LoadAsset(n.ListItemPath, cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return p.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._listItemPrefab = e, this._assets.push(e), i.label = 2;
                                case 2:
                                    for (o = 0; o < this._listItemArray.length; o++) this._listItemArray[o].node.active = !1;
                                    for (t = this._questionConfigList.length, o = 0; o < t; o++) null == this._listItemArray[o] && ((r = cc.instantiate(this._listItemPrefab).getComponent(u.default)).node.parent = this.QuestionGrid.node, this._listItemArray[o] = r), this._listItemArray[o].SetUI(this._questionConfigList[o].Id), this._listItemArray[o].node.active = !0;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    this._assets.forEach(function(e) {
                        p.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, t.ListItemPath = "IWantStrongPanel/Private/QuestionListItem", i([f(cc.Layout)], t.prototype, "QuestionGrid", void 0), n = i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Components/QuestionListItem": "QuestionListItem"
    }],
    QuickBattlePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "7f84aIPEAVFFIF5w/natuBI", "QuickBattlePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/ConfigData/ConfigDataComponent"),
            d = e("../Components/DisplayRewardsComponent"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Components/DataCenter"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../Components/ItemComponent"),
            I = e("../Components/CustomRichText"),
            _ = e("../../Components/RpcComponent"),
            C = e("../../../Consts/Consts"),
            v = e("../../../../Proto/Static/RpcProto"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../RedDot/RedDotManager"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("./MainUIPanel"),
            A = e("../../Auxiliary/GuideManager"),
            T = e("../../Channel/ChannelManager"),
            R = e("../../Auxiliary/EventKeys"),
            L = e("./MallPrivilegeMainPanel"),
            k = cc._decorator,
            O = k.ccclass,
            M = k.property,
            D = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !0, !1, !0), t.MaskHintNode = null, t.Tittle = null, t.Content = null, t.BtnQuickBattle = null, t.QuickBtnLabel = null, t.FreeBtn = null, t.FreeBtnLabel = null, t.CurrencyIcon = null, t.CurrentyCount = null, t.GrayBtn = null, t.GrayBtnLabel = null, t.TimesTag = null, t.TodayTimesText = null, t.DropTag = null, t.BuyPrivilegeButton = null, t.BuyPrivilegeButtonLabel = null, t.FreeLabel = null, t.FreeTimesNumLabel = null, t.BuyTimesLabel = null, t.BuyTimesNumLabel = null, t.PrivilegeTimeCycleLabel = null, t.VipPointPrefixLabel = null, t.VipPointCountLabel = null, t.PrivilegeActiveNode = null, t.PrivilegeActiveLabel = null, t.PrivilegeTimeLeftLabel = null, t.PrivilegeTimeLeftLabel2 = null, t.PrivilegeRewardsContainer = null, t.TalkBubble = null, t._adventureQuickBattleDailyCount = 0, t._adventureQuickBattleDailyDiamondCount = 0, t._adventureData = null, t._rewardComponent = null, t._rewardData = [], t._levelConfig = null, t._isBusy = !1, t._isFree = !1, t._vipQuickBattleFreeTime = 0, t._vipQuickBattleDiamondTime = 0, t._priviligeExpiredTime = 0, t._itemPrefab = null, t._priviligePackageId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(C.GameEventIds.ChangeDataDetail.Fmt(v.UserItem_Model._n_), this.DisPlay, this), l.Game.EventDispatcher.On(R.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(C.GameEventIds.ChangeDataDetail.Fmt(v.UserItem_Model._n_), this.DisPlay, this), l.Game.EventDispatcher.Off(R.EventKeys.EVENT_REFRESH_GUIDE_STEP, this.ShowGuide, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "idleBattle_quickBattle_tittle".ToUILocale(), this.DropTag.string = "idleBattle_quickBattle_tag_drop".ToUILocale(), this.GrayBtnLabel.string = "idleBattle_quickBattle_noTimes".ToUILocale(), this.FreeBtnLabel.string = "shop_buyFree".ToUILocale(), this.QuickBtnLabel.string = "idleBattle_quickBattle_tittle".ToUILocale(), this.FreeLabel.string = "quickBattle_free_times".ToUILocale(), this.BuyTimesLabel.string = "quickBattle_buy_times".ToUILocale(), this.PrivilegeActiveLabel.string = "artifact_has_active".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnQuickBattle.node.on("click", this.OnBtnQuickBattleClick, this), this.FreeBtn.node.on("click", this.OnBtnQuickBattleClick, this), this.BuyPrivilegeButton.node.on("click", this.OnBuyPrivilegeButtonClicked, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadGlobalSetting(), this.LoadLevelParamConfig()
                }, t.prototype.GetVipAddationData = function() {
                    var e = w.default.GetModuleBonus();
                    this._vipQuickBattleFreeTime = e[g.ModuleBonusType.QuickBattleFree], this._vipQuickBattleDiamondTime = e[g.ModuleBonusType.QuickBattleDiamond], null == this._vipQuickBattleFreeTime && (this._vipQuickBattleFreeTime = 0), null == this._vipQuickBattleDiamondTime && (this._vipQuickBattleDiamondTime = 0)
                }, t.prototype.LoadGlobalSetting = function() {
                    this._adventureQuickBattleDailyCount = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureQuickBattleDailyCount"), this._adventureQuickBattleDailyDiamondCount = p.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureQuickBattleDailyDiamondCount")
                }, t.prototype.SetBubbleContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, a, d, I, v, b;
                        return s(this, function(s) {
                            switch (s.label) {
                                case 0:
                                    return e = p.ConfigDataComponent.Instance.GetConfigById(u.SubscribePrivilege_Config, g.SubscribePrivilegeType.Battle), this._priviligePackageId = e.PackId, this._priviligePackageId && 0 != this._priviligePackageId ? (this.TalkBubble.active = !0, t = p.ConfigDataComponent.Instance.GetConfigById(u.GiftPack_Config, this._priviligePackageId), n = e.Privilege[0].Items[1], o = e.Privilege[1].Items[1], this.FreeTimesNumLabel.string = "+" + n, this.BuyTimesNumLabel.string = "+" + o, this.PrivilegeTimeCycleLabel.string = e.Days + "day".ToUILocale(), this.BuyPrivilegeButtonLabel.string = T.default.Instance.CurrencySymbol + T.default.Instance.ExchangeMoney(t.Money), this.VipPointPrefixLabel.string = "task_get_score_tag".ToUILocale(), this.VipPointCountLabel.string = "x" + t.VipPoint, r = [], this.PrivilegeRewardsContainer.destroyAllChildren(), null != this._itemPrefab ? [3, 2] : (i = this, [4, this.LoadDynamicAsset(h.BundlePath.ItemComponent)])) : (this.TalkBubble.active = !1, [2]);
                                case 1:
                                    if (i._itemPrefab = s.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    s.label = 2;
                                case 2:
                                    for (b = 0; b < t.Items.length; b++) a = cc.instantiate(this._itemPrefab), (d = a.getComponent(m.ItemComponent)).Init({
                                        ItemId: t.Items[b].Items[0],
                                        Count: t.Items[b].Items[1]
                                    }), a.name = t.Items[b].Items[0].toString(), this.PrivilegeRewardsContainer.addChild(a), r.push(d);
                                    if (l.Game.EventDispatcher.On(R.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), I = _.RpcComponent.Instance.ServerTime, (v = f.DataCenter.Instance.GetDataById(y.SubscribePrivilege_Model, g.SubscribePrivilegeType.Battle)) && v.CanDay > 0 ? this._priviligeExpiredTime = v.Time + v.CanDay * C.Etc.DayDuration : this._priviligeExpiredTime = 0, I < this._priviligeExpiredTime)
                                        for (this.PrivilegeActiveNode.active = !0, this.BuyPrivilegeButton.node.active = !1, this.PrivilegeTimeLeftLabel.string = "gift_remainderTime".ToUILocale(), this.PrivilegeTimeLeftLabel2.string = w.default.ActivityTimeLeftFormat(this._priviligeExpiredTime - I), this.schedule(this.PrivilegeTimeCountDown, 1), b = 0; b < r.length; b++) r[b].SetReceivedTagState(!0);
                                    else this.PrivilegeActiveNode.active = !1, this.BuyPrivilegeButton.node.active = !0;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.PrivilegeRewardsContainer.children.indexOf(t) && b.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.PrivilegeTimeCountDown = function() {
                    var e = _.RpcComponent.Instance.ServerTime;
                    e < this._priviligeExpiredTime ? (this.PrivilegeTimeLeftLabel.string = "gift_remainderTime".ToUILocale(), this.PrivilegeTimeLeftLabel2.string = w.default.ActivityTimeLeftFormat(this._priviligeExpiredTime - e)) : (this.unschedule(this.PrivilegeTimeCountDown), this.SetBubbleContent())
                }, t.prototype.OnBuyPrivilegeButtonClicked = function() {
                    T.default.Instance.Pay(this._priviligePackageId)
                }, t.prototype.LoadLevelParamConfig = function() {
                    this._levelParamConfig = p.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, g.LevelParamType.AdventureQuickBattleDiamond)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.GetVipAddationData(), this.BindRedDot(), this.RefreshView(), P.default.isNeedPlayRewardAnim = 0, this.ShowGuide(), this.SetBubbleContent()
                }, t.prototype.RefreshView = function() {
                    this.ReloadUserData(), this.ReloadAdventureConfigData(), this.RenderContent(), this.SetBtnState(), this.SetTimesUI()
                }, t.prototype.BindRedDot = function() {
                    S.RedDotManager.Instance.Bind(this.BtnQuickBattle.node, S.RedDotManager.Instance.RedDot.QuickBattleBtnNode, 0, 0)
                }, t.prototype.ReloadUserData = function() {
                    this._adventureData = f.DataCenter.Instance.GetDataById(y.Adventure_Model, 1);
                    var e = f.DataCenter.Instance.GetIntData(g.UserDataKey.MainLineProgress);
                    this._levelConfig = p.ConfigDataComponent.Instance.GetConfigById(u.MapAdventure_Config, e)
                }, t.prototype.ReloadAdventureConfigData = function() {
                    var e = f.DataCenter.Instance.GetIntData(g.UserDataKey.MainLineProgress),
                        t = p.ConfigDataComponent.Instance.GetConfigById(u.MapAdventure_Config, e).ShowRewards;
                    this._rewardData = [];
                    for (var n = 0; n < t.length; n++) this._rewardData[n] = {
                        ItemId: t[n]
                    }
                }, t.prototype.RenderContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return void 0 !== this._displayRewardPrefab ? [3, 2] : (e = this, [4, this.LoadDynamicAsset(h.BundlePath.DisplayRewardsComponent)]);
                                case 1:
                                    if (e._displayRewardPrefab = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._displayRewardPrefab), [2];
                                    o.label = 2;
                                case 2:
                                    return null == this._rewardComponent && (t = cc.instantiate(this._displayRewardPrefab), this._rewardComponent = t.getComponent(d.DisplayRewardsComponent), (n = this._rewardComponent.Content.getComponent(cc.Layout)).spacingX = 27, n.spacingY = -20), 0 == this.Content.childrenCount && this.Content.addChild(this._rewardComponent.node), this._rewardComponent.Init(this._rewardData, this.Content.height), [2]
                            }
                        })
                    })
                }, t.prototype.SetBtnState = function() {
                    if (this.LoadIcon(), this.GrayBtn.node.active = !1, this._adventureData.DailyCount < this._adventureQuickBattleDailyCount + this._vipQuickBattleFreeTime) this.BtnQuickBattle.node.active = !1, this.FreeBtn.node.active = !0, this.CurrencyIcon.node.active = !1, this._isFree = !0;
                    else if (this._adventureData.DailyQuickCount < this._adventureQuickBattleDailyDiamondCount + this._vipQuickBattleDiamondTime) {
                        this.BtnQuickBattle.node.active = !0, this.FreeBtn.node.active = !1, this.CurrencyIcon.node.active = !0;
                        var e = Math.min(this._adventureData.DailyQuickCount, this._levelParamConfig.Data.length - 1);
                        this.CurrentyCount.string = this._levelParamConfig.Data[e].toString(), this._isFree = !1
                    } else this.FreeBtn.node.active = !1, this.BtnQuickBattle.node.active = !1, this.GrayBtn.node.active = !0, this._isFree = !1
                }, t.prototype.IsCurrencyEnough = function() {
                    var e = Math.min(this._adventureData.DailyQuickCount, this._levelParamConfig.Data.length - 1),
                        t = this._levelParamConfig.Data[e];
                    return f.DataCenter.Instance.IsItemEnough(g.CommonItemId.Diamond, t)
                }, t.prototype.SetTimesUI = function() {
                    if (this._adventureData.DailyCount < this._adventureQuickBattleDailyCount + this._vipQuickBattleFreeTime) {
                        this.TimesTag.string = "idleBattle_quickBattle_tag_freeTimes".ToUILocale();
                        var e = this._adventureQuickBattleDailyCount - this._adventureData.DailyCount;
                        if (this._vipQuickBattleFreeTime > 0)
                            if (this._adventureData.DailyCount < this._adventureQuickBattleDailyCount) {
                                var t = e + "<outline color=#202434 width=3><color=#33ff8e>+" + this._vipQuickBattleFreeTime + "</c></outline>";
                                this.TodayTimesText.Init(t)
                            } else this.TodayTimesText.Init((this._adventureQuickBattleDailyCount - this._adventureData.DailyCount + this._vipQuickBattleFreeTime).toString());
                        else this.TodayTimesText.Init((this._adventureQuickBattleDailyCount - this._adventureData.DailyCount).toString())
                    } else e = this._adventureQuickBattleDailyDiamondCount - this._adventureData.DailyQuickCount, this.TimesTag.string = "idleBattle_quickBattle_tag_leftTimes".ToUILocale(), this._vipQuickBattleDiamondTime > 0 ? this._adventureData.DailyQuickCount < this._adventureQuickBattleDailyDiamondCount ? (t = e + "<outline color=#202434 width=3><color=#33ff8e>+" + this._vipQuickBattleDiamondTime + "</c></outline>", this.TodayTimesText.Init(t)) : this.TodayTimesText.Init((this._adventureQuickBattleDailyDiamondCount - this._adventureData.DailyQuickCount + this._vipQuickBattleDiamondTime).toString()) : this.TodayTimesText.Init((this._adventureQuickBattleDailyDiamondCount - this._adventureData.DailyQuickCount).toString())
                }, t.prototype.LoadIcon = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this.CurrencyIcon.spriteFrame ? [3, 2] : (e = w.default.Instance.GetItemPathById(g.CommonItemId.Diamond), t = this.CurrencyIcon, [4, this.LoadDynamicAsset(e, cc.SpriteFrame)]);
                                case 1:
                                    t.spriteFrame = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnBtnQuickBattleClick = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._isBusy ? [2] : this.IsIntelligenceOverFlow() ? (e = g.CommonItemId.Intelligence.ToItemName(), t = "function_quickBattle".ToUILocale(), n = "intelligence_tittle".ToUILocale(), o = "intelligence_hint_overflow".ToUILocale().Fmt(t, e, n, e), [4, b.UIUtlity.ShowHintPanel("", o, "", null, "", function() {
                                        r._isFree || r.IsCurrencyEnough() ? r.RequestQuickBattle() : c.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [C.MallPageType.DiamondShop, g.GiftPackType.BuyDiamond])
                                    })]) : [3, 2];
                                case 1:
                                    return i.sent().DisableMaskClose(), [3, 3];
                                case 2:
                                    if (!this._isFree && !this.IsCurrencyEnough()) return c.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallNewPanel.Path, [C.MallPageType.DiamondShop, g.GiftPackType.BuyDiamond]), [2];
                                    this.RequestQuickBattle(), i.label = 3;
                                case 3:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnBtnGoToPrivilegeClick = function() {
                    w.default.Instance.IsGameModuleUnlock(C.GameModuleType.SubscribePrivilegeShow)[0] && w.default.Instance.IsGameModuleUnlock(C.GameModuleType.Mall)[0] ? c.UIManager.Instance.ShowUIPanel(h.PanelConfig.MallPrivilegeGiftPanel.Path, L.MallPrivilegeBasePageType.Subscribe) : b.UIUtlity.ShowFloatingHint("error_hint_content_code_1019".ToUILocale())
                }, t.prototype.IsIntelligenceOverFlow = function() {
                    for (var e = 0, t = 0; t < this._levelConfig.Rewards.length; t++) this._levelConfig.Rewards[t].Items[0] == g.CommonItemId.Intelligence && (e = Math.floor(this._levelConfig.Rewards[t].Items[1] / 1e5));
                    var n = 120 * e;
                    return c.EZLog.Log("\u672c\u6b21\u5feb\u901f\u6218\u6597\u53ef\u83b7\u5f97\u60c5\u62a5---\x3e" + n), !!w.default.Instance.IsIntelligencePropOverFlow(n)
                }, t.prototype.RequestQuickBattle = function() {
                    this._isBusy = !0, this._oldPlayerLevel = f.DataCenter.Instance.GetIntData(C.UserDataKey.PlayerLevel), this._oldExp = f.DataCenter.Instance.GetItemCount(g.CommonItemId.Xp);
                    var e = new y.Req_Map_AdventureQuickBattle;
                    _.RpcComponent.Instance.Call(e, this.ResponseQuickBattleSuccess.bind(this), this.ResponseQuickBattleFail.bind(this), A.default.Instance.CurrentGroup)
                }, t.prototype.ResponseQuickBattleSuccess = function(e) {
                    this._isBusy = !1, this._rewardData = e.Rewards;
                    for (var t = 0; t < e.ActivityRewards.length; t++) this._rewardData.push(e.ActivityRewards[t]);
                    c.UIManager.Instance.ShowUIPanel(h.PanelConfig.IdleBattleRewardsPanel.Path, this._oldPlayerLevel, this._oldExp, 0, this._rewardData)
                }, t.prototype.ResponseQuickBattleFail = function() {
                    this._isBusy = !1
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this._rewardComponent.Dispose(), this.Content.destroyAllChildren(), this.unschedule(this.PrivilegeTimeCountDown), l.Game.EventDispatcher.Off(R.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.ShowGuide = function() {
                    if (A.default.Instance.IsInGuide) switch (A.default.Instance.CurrentStep) {
                        case 10104:
                            A.default.Instance.ShowGuide(this.BtnQuickBattle.node);
                            break;
                        case 10106:
                            A.default.Instance.ShowGuide(this.MaskHintNode)
                    }
                }, i([M(cc.Node)], t.prototype, "MaskHintNode", void 0), i([M(cc.Label)], t.prototype, "Tittle", void 0), i([M(cc.Node)], t.prototype, "Content", void 0), i([M(cc.Button)], t.prototype, "BtnQuickBattle", void 0), i([M(cc.Label)], t.prototype, "QuickBtnLabel", void 0), i([M(cc.Button)], t.prototype, "FreeBtn", void 0), i([M(cc.Label)], t.prototype, "FreeBtnLabel", void 0), i([M(cc.Sprite)], t.prototype, "CurrencyIcon", void 0), i([M(cc.Label)], t.prototype, "CurrentyCount", void 0), i([M(cc.Button)], t.prototype, "GrayBtn", void 0), i([M(cc.Label)], t.prototype, "GrayBtnLabel", void 0), i([M(cc.Label)], t.prototype, "TimesTag", void 0), i([M(I.CustomRichText)], t.prototype, "TodayTimesText", void 0), i([M(cc.Label)], t.prototype, "DropTag", void 0), i([M(cc.Button)], t.prototype, "BuyPrivilegeButton", void 0), i([M(cc.Label)], t.prototype, "BuyPrivilegeButtonLabel", void 0), i([M(cc.Label)], t.prototype, "FreeLabel", void 0), i([M(cc.Label)], t.prototype, "FreeTimesNumLabel", void 0), i([M(cc.Label)], t.prototype, "BuyTimesLabel", void 0), i([M(cc.Label)], t.prototype, "BuyTimesNumLabel", void 0), i([M(cc.Label)], t.prototype, "PrivilegeTimeCycleLabel", void 0), i([M(cc.Label)], t.prototype, "VipPointPrefixLabel", void 0), i([M(cc.Label)], t.prototype, "VipPointCountLabel", void 0), i([M(cc.Node)], t.prototype, "PrivilegeActiveNode", void 0), i([M(cc.Label)], t.prototype, "PrivilegeActiveLabel", void 0), i([M(cc.Label)], t.prototype, "PrivilegeTimeLeftLabel", void 0), i([M(cc.Label)], t.prototype, "PrivilegeTimeLeftLabel2", void 0), i([M(cc.Node)], t.prototype, "PrivilegeRewardsContainer", void 0), i([M(cc.Node)], t.prototype, "TalkBubble", void 0), i([O], t)
            }(c.BaseUIPanel);
        n.default = D, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/DisplayRewardsComponent": "DisplayRewardsComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./MainUIPanel": "MainUIPanel",
        "./MallPrivilegeMainPanel": "MallPrivilegeMainPanel"
    }],
    QuickResolveSettingPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "46f0ffwM4FKzL68adpTwQSI", "QuickResolveSettingPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GameRecord"),
            u = e("../Auxiliary/UIUtlity"),
            p = e("../Components/SettingToggle"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.Title = null, t.Hint = null, t.ToggleContainer = null, t.OkButton = null, t.OkButtonLabel = null, t._starLevelArray = [3, 4], t._settingToggles = [], t._colorArray = [cc.color(145, 220, 255), cc.color(226, 163, 255)], t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("HeroPalacePanel/Components/SettingToggle")];
                                case 1:
                                    return t._togglePrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "heroResolve_settingTitle".ToUILocale(), this.Hint.string = "heroResolve_settingHint".ToUILocale(), this.OkButtonLabel.string = "ok".ToUILocale(), this.OkButton.node.on("click", this.OnOkButtonClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    var n = c.default.GetItem(c.GameRecordDefine.HeroResolveSettingStar);
                    this._selectStar = n || this._starLevelArray[0];
                    for (var o = 0; o < this._starLevelArray.length; o++) {
                        if (this._settingToggles.length <= o) {
                            var r = cc.instantiate(this._togglePrefab);
                            r.setParent(this.ToggleContainer), r.on("toggle", this.OnToggleSelect, this), this._settingToggles.push(r.getComponent(p.default))
                        }
                        this._settingToggles[o].node.name = this._starLevelArray[o].toString(), this._settingToggles[o].SetInfo("heroResolve_settingStar".ToUILocale().Fmt(this._starLevelArray[o]), this._colorArray[o]), this._selectStar == this._starLevelArray[o] && this._settingToggles[o].ToggleCheck(!0)
                    }
                }, t.prototype.OnToggleSelect = function(e) {
                    var t = this,
                        n = parseInt(e.name);
                    n == this._starLevelArray[1] && this._selectStar != n ? u.UIUtlity.ShowHintPanel("", "heroResolve_settingTips".ToUILocale(), "", function() {
                        for (var e = 0; e < t._starLevelArray.length; e++) t._selectStar == t._starLevelArray[e] && t._settingToggles[e].ToggleCheck(!0)
                    }, "", function() {
                        t._selectStar = n
                    }) : this._selectStar = n
                }, t.prototype.OnOkButtonClick = function() {
                    c.default.SetItem(c.GameRecordDefine.HeroResolveSettingStar, this._selectStar), this.Close()
                }, i([f(cc.Label)], t.prototype, "Title", void 0), i([f(cc.Label)], t.prototype, "Hint", void 0), i([f(cc.Node)], t.prototype, "ToggleContainer", void 0), i([f(cc.Button)], t.prototype, "OkButton", void 0), i([f(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/SettingToggle": "SettingToggle"
    }],
    QuickUpgradeStarItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4bef1tv4v9ELaAY+Kw3GYMx", "QuickUpgradeStarItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/RpcProto"),
            s = e("../Components/ItemComponent"),
            l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.HeroItem = null, t.MaterialsLayout = null, t.NewItem = null, t.Toggle = null, t._materialsComponent = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.Toggle.node.on("toggle", this.ClickToggle, this)
                }, t.prototype.Init = function(e, t, n, o, r, i) {
                    for (var s in void 0 === i && (i = {}), this._itemPrefab = e, this._hero = n, this._newHero = new a.UserHero_Model, this._hero) this._newHero[s] = this._hero[s];
                    this._newHero.StarLevel = r, this._materials = o, this._index = t, this.Toggle.node.active = 5 != r, this.RefreshItem()
                }, t.prototype.RefreshItem = function() {
                    this._heroComponent || ((t = cc.instantiate(this._itemPrefab)).setParent(this.HeroItem), this._heroComponent = t.getComponent(s.ItemComponent)), this._heroComponent.Init(this._hero, s.ItemComponentType.HeroInfo), this._heroComponent.SetLabelFontSize(this._heroComponent.HeroLevel, 20, 142), this._newComponent || ((t = cc.instantiate(this._itemPrefab)).setParent(this.NewItem), this._newComponent = t.getComponent(s.ItemComponent)), this._newComponent.Init(this._newHero, s.ItemComponentType.HeroInfo), this._newComponent.SetLabelFontSize(this._newComponent.HeroLevel, 20, 142);
                    for (var e = 0; e < this._materials.length; e++) {
                        var t, n = this._materials[e];
                        this._materialsComponent[e] || ((t = cc.instantiate(this._itemPrefab)).setParent(this.MaterialsLayout.node), this._materialsComponent[e] = t.getComponent(s.ItemComponent)), this._materialsComponent[e].node.active = !0, n instanceof a.UserHero_Model ? (this._materialsComponent[e].Init(n, s.ItemComponentType.HeroInfo), this._materialsComponent[e].SetLabelFontSize(this._materialsComponent[e].HeroLevel, 20, 113)) : n instanceof a.UserItem_Model && (this._materialsComponent[e].Init(n, s.ItemComponentType.ItemCommon), this._materialsComponent[e].SetLabelFontSize(this._materialsComponent[e].Count, 20, 113))
                    }
                    for (e = this._materials.length; e < this._materialsComponent.length; e++) this._materialsComponent[e].node.active = !1
                }, t.prototype.SetToggle = function(e) {
                    this.Toggle.isChecked = e
                }, t.prototype.ClickToggle = function() {
                    l.Game.EventDispatcher.Emit(c.EventKeys.EVENT_SELECT_QUICK_HERO, this._index)
                }, t.prototype.SortMaterials = function() {}, i([d(cc.Node)], t.prototype, "HeroItem", void 0), i([d(cc.Layout)], t.prototype, "MaterialsLayout", void 0), i([d(cc.Node)], t.prototype, "NewItem", void 0), i([d(cc.Toggle)], t.prototype, "Toggle", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/ItemComponent": "ItemComponent"
    }],
    QuickUpgradeStarPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "67a6dFCIf5B0qpAs4osDIOv", "QuickUpgradeStarPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            },
            l = this && this.__spreadArrays || function() {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], a = 0, s = i.length; a < s; a++, r++) o[r] = i[a];
                return o
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var c, u, p = e("../../../EZFramework/EZFramework"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../Consts/Consts"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = e("../../../EZFramework/EZFramework"),
            C = e("../../../Util/AppUtil"),
            v = e("../Components/HeroElementGroup"),
            b = e("./QuickUpgradeStarItem"),
            S = e("../../Components/Components"),
            w = e("../Components/AsyncLayout"),
            P = e("./AutoSetHeroHintPanel"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.High = 0] = "High", e[e.Middle = 1] = "Middle", e[e.Normal = 2] = "Normal"
        })(c || (c = {})),
        function(e) {
            e[e.SameItem = 1] = "SameItem", e[e.DifferentItem = 2] = "DifferentItem", e[e.AllItem = 3] = "AllItem", e[e.ThreeItem = 4] = "ThreeItem", e[e.NoneItem = 5] = "NoneItem", e[e.FightBreakItem = 6] = "FightBreakItem", e[e.HeroLine = 100] = "HeroLine", e[e.SameNormal = 101] = "SameNormal", e[e.DifferentNormal = 102] = "DifferentNormal", e[e.SameMiddle = 103] = "SameMiddle", e[e.DifferentMiddle = 104] = "DifferentMiddle", e[e.SameHeight = 105] = "SameHeight"
        }(u || (u = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.RuleButton = null, t.Title = null, t.TopTggles = [], t.Title2 = null, t.AsyncLayout = null, t.NoneHeroHint = null, t.Desc = null, t.HeroElementGroup = null, t.QuickBtn = null, t.QuickBtnLabel = null, t.ReturnBtn = null, t._currentStar = 5, t._currentElement = f.HeroElementType.All, t._selectCount = 0, t._starObj = {}, t._selectArray = [], t._heroIdObj = {}, t._heroIdMaterialObj = {}, t._materialObj = {}, t._itemObj = {}, t._isCustomLayoutInit = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                p.Game.EventDispatcher.On(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this), p.Game.EventDispatcher.On(m.EventKeys.EVENT_SELECT_QUICK_HERO, this.OnSelectQuickHero, this)
            }, t.prototype.onDisable = function() {
                p.Game.EventDispatcher.Off(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement), p.Game.EventDispatcher.Off(m.EventKeys.EVENT_SELECT_QUICK_HERO, this.OnSelectQuickHero, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(y.BundlePath.ItemComponent), n = this.LoadDynamicAsset("HeroPalacePanel/QuickUpgradeStarItem"), [4, Promise.all([t, n]).then(function(e) {
                                    o._itemPrefab = e[0], o._quickItemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "quick_upgrade_star_title".ToUILocale(), this.Title2.string = "quick_upgrade_star_title2".ToUILocale(), this.Desc.string = "quick_upgrade_star_desc".ToUILocale(), this.QuickBtnLabel.string = "quick_upgrade_star_title".ToUILocale(), this.NoneHeroHint.string = "quick_upgrade_star_no_hero".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.QuickBtn.node.on("click", this.OnQuickBtnClick, this), this.ReturnBtn.node.on("click", this.OnReturnBtnClick, this);
                for (var t = 0; t < this.TopTggles.length; t++) this.TopTggles[t].on("toggle", this.OnTopToggleClick, this);
                this.AsyncLayout.Init(this._quickItemPrefab, this.OnInitializeItem.bind(this))
            }, t.prototype.OnInitializeItem = function(e, t) {
                var n = this._starObj[this._currentStar][this._currentElement],
                    o = e.getComponent(b.default),
                    r = n[t];
                r.Component = o, o.node.name = t.toString(), o.Init(this._itemPrefab, t, r.Hero, r.Materials, r.NewStar, r.ItemObj), o.SetToggle(t < this._selectCount)
            }, t.prototype.InitData = function() {
                e.prototype.InitData.call(this), this._heroConfigs = S.ConfigDataComponent.Instance.GetConfig(d.HeroBase_Config)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this.UpdateHeroData(), this.UpdateUpgradeStarData(this._currentStar);
                var n = this._starObj[this._currentStar][this._currentElement];
                this.NoneHeroHint.node.active = 0 == n.length, this.AsyncLayout.RenderLayout(n.length)
            }, t.prototype.UpdateHeroData = function() {
                var e;
                this._heroIdObj = {}, this._heroIdMaterialObj = {}, this._materialObj = {}, this._itemObj = {};
                for (var t = 0, n = S.DataCenter.Instance.GetDataList(h.UserHero_Model); t < n.length; t++) {
                    var o = n[t];
                    if (!((u = S.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, o.HeroId)).StarLevel < 3) && (u.StarLevel >= 4 && (null == this._heroIdObj[o.HeroId] && (this._heroIdObj[o.HeroId] = []), this._heroIdObj[o.HeroId].push(o)), this.CheckHero(o, !0))) {
                        null == this._heroIdMaterialObj[o.HeroId] && (this._heroIdMaterialObj[o.HeroId] = []), this._heroIdMaterialObj[o.HeroId].push(o);
                        var r = this.GetHeroType(o.HeroId);
                        null == this._materialObj[o.StarLevel] && (this._materialObj[o.StarLevel] = {}), null == this._materialObj[o.StarLevel][u.ElementType] && (this._materialObj[o.StarLevel][u.ElementType] = ((e = {})[c.Normal] = [], e[c.Middle] = [], e[c.High] = [], e)), this._materialObj[o.StarLevel][u.ElementType][r].push(o)
                    }
                }
                for (var i in this._heroIdObj) I.default.Instance.SortData(f.SortDataType.Hero, this._heroIdObj[i], [{
                    Items: [f.SortType.StarLevel, -1]
                }, {
                    Items: [f.SortType.Level, -1]
                }, {
                    Items: [f.SortType.Sid, 1]
                }]);
                for (var i in this._heroIdMaterialObj) I.default.Instance.SortData(f.SortDataType.Hero, this._heroIdMaterialObj[i], [{
                    Items: [f.SortType.StarLevel, 1]
                }, {
                    Items: [f.SortType.Level, -1]
                }, {
                    Items: [f.SortType.Sid, -1]
                }]);
                for (var i in this._materialObj)
                    for (var a in this._materialObj[i])
                        for (var s in this._materialObj[i][a]) I.default.Instance.SortData(f.SortDataType.Hero, this._materialObj[i][a][s], [{
                            Items: [f.SortType.ConfigElementType, 1]
                        }, {
                            Items: [f.SortType.Sid, -1]
                        }]);
                var l = S.ConfigDataComponent.Instance.GetConfig(d.ItemConsume_Config);
                for (var i in l) {
                    var u;
                    if ((u = l[i]).SubType == f.ConsumeItemType.HeroSoul) {
                        var p = S.DataCenter.Instance.GetDataById(h.UserItem_Model, u.Id);
                        if (p && p.Count > 0) {
                            var y = S.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, u.Id);
                            null == this._itemObj[y.Star] && (this._itemObj[y.Star] = {});
                            var g;
                            if (5 == (g = u.Param[0] && u.Param[0].Items.length ? u.Param[0].Items.length : 0)) null == this._itemObj[y.Star][f.HeroElementType.Combine5] && (this._itemObj[y.Star][f.HeroElementType.Combine5] = []), this._itemObj[y.Star][f.HeroElementType.Combine5].push(p);
                            else if (3 == g) null == this._itemObj[y.Star][f.HeroElementType.Combine3] && (this._itemObj[y.Star][f.HeroElementType.Combine3] = []), this._itemObj[y.Star][f.HeroElementType.Combine3].push(p);
                            else if (2 == g) null == this._itemObj[y.Star][f.HeroElementType.Combine2] && (this._itemObj[y.Star][f.HeroElementType.Combine2] = []), this._itemObj[y.Star][f.HeroElementType.Combine2].push(p);
                            else if (0 == g) null == this._itemObj[y.Star][f.HeroElementType.All] && (this._itemObj[y.Star][f.HeroElementType.All] = []), this._itemObj[y.Star][f.HeroElementType.All].push(p);
                            else
                                for (var m = 0, _ = u.Param[0].Items; m < _.length; m++) a = _[m], null == this._itemObj[y.Star][a] && (this._itemObj[y.Star][a] = []), this._itemObj[y.Star][a].push(p)
                        }
                    }
                }
                for (var i in this._itemObj)
                    for (var a in this._itemObj[i]) I.default.Instance.SortData(f.SortDataType.ItemHeroSoul, this._itemObj[i][a], [{
                        Items: [f.SortType.HeroSoulElements, 1]
                    }])
            }, t.prototype.CheckHero = function(e, t) {
                if (void 0 === t && (t = !1), e.Locked || e.Level > 1 || e.TemplePosition > 0 || e.TempleLevel > 1 || e.PVETalentLevel > 0 || e.PVPTalentLevel > 0 || e.LuckSkill1 > 0 || e.LuckSkill2 > 0) return !1;
                var n = this.GetHeroType(e.HeroId);
                if (!t && n == c.High) return !1;
                if (S.DataCenter.Instance.GetHeroFormations(e.Sid).length > 0) return !1;
                if (!this._displaceHero) {
                    var o = S.DataCenter.Instance.GetDataById(h.UserSimpleData_Model, f.UserDataKey.CurrentBeDisplaceHero);
                    this._displaceHero = o ? o.V : 0
                }
                if (e.Sid == this._displaceHero) return !1;
                if (!this._equipObj) {
                    this._equipObj = {};
                    for (var r = 0, i = S.DataCenter.Instance.GetDataList(h.Equipment_Model); r < i.length; r++)(m = i[r]).OwnerId > 0 && (this._equipObj[m.OwnerId] = !0)
                }
                if (this._equipObj[e.Sid]) return !1;
                if (!this._holyObj) {
                    this._holyObj = {};
                    for (var a = 0, s = S.DataCenter.Instance.GetDataList(h.HolyEquipment_Model); a < s.length; a++)(m = s[a]).OwnerId > 0 && (this._holyObj[m.OwnerId] = !0)
                }
                if (this._holyObj[e.Sid]) return !1;
                if (!this._coreObj) {
                    this._coreObj = {};
                    for (var l = 0, u = S.DataCenter.Instance.GetDataList(h.PowerCore_Model); l < u.length; l++)(m = u[l]).OwnerId > 0 && (this._coreObj[m.OwnerId] = !0)
                }
                if (this._coreObj[e.Sid]) return !1;
                if (!this._luckyObj) {
                    this._luckyObj = {};
                    for (var p = 0, d = S.DataCenter.Instance.GetDataList(h.LuckyCharmEquip_Model); p < d.length; p++)(m = d[p]).OwnerId > 0 && (this._luckyObj[m.OwnerId] = !0)
                }
                if (this._luckyObj[e.Sid]) return !1;
                if (!this._gemObj) {
                    this._gemObj = {};
                    for (var y = 0, g = S.DataCenter.Instance.GetDataList(h.LuckyCharmEquip_Model); y < g.length; y++) {
                        var m;
                        (m = g[y]).OwnerId > 0 && (this._gemObj[m.OwnerId] = !0)
                    }
                }
                return !this._gemObj[e.Sid] && !S.DataCenter.Instance.GetFlyHeroSeasonWeaponId(e.Sid)
            }, t.prototype.GetHeroType = function(e) {
                var t = S.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e);
                return t.CoreHero > 0 ? c.High : 12 == t.MaxStarLevel ? c.Middle : c.Normal
            }, t.prototype.UpdateUpgradeStarData = function(e) {
                var t, n = {},
                    o = {},
                    r = {};
                this._starObj[e] = {};
                for (var i = f.HeroElementType.All; i <= f.HeroElementType.Chaos; i++) this._starObj[e][i] = [];
                for (var a = 0, s = this._selectArray; a < s.length; a++) {
                    n[(i = s[a]).Hero.Sid] = !0;
                    for (var c = 0, u = i.Materials; c < u.length; c++)(U = u[c]) instanceof h.UserHero_Model ? n[U.Sid] = !0 : U instanceof h.UserItem_Model && (o[U.ItemId] || (o[U.ItemId] = 0), o[U.ItemId] += 1);
                    for (var p = 0, y = (O = S.ConfigDataComponent.Instance.GetConfigById(d.HeroStar_Config, e)).ItemMaterials; p < y.length; p++) {
                        var g = (U = y[p]).Items[0],
                            m = U.Items[1];
                        r[g] || (r[g] = 0), r[g] += m
                    }
                }
                for (var i in this._heroConfigs)
                    if (this._heroIdObj[i])
                        for (var I = this._heroConfigs[i], _ = 12, v = 0, b = this._heroIdObj[I.Id]; v < b.length; v++) {
                            var w = b[v];
                            if (!(w.StarLevel >= e || I.MaxStarLevel < e || 5 != e && w.StarLevel >= _ || n[w.Sid] || I.CoreHero >= f.CoreHeroTag.UR)) {
                                for (var P = {
                                        Hero: w,
                                        Materials: [],
                                        ItemObj: {},
                                        NewStar: e,
                                        Component: null,
                                        Type3Or4Materials: []
                                    }, A = ((t = {})[w.Sid] = !0, t), T = C.AppUtil.CloneObj(o), R = !1, L = !1, k = w.StarLevel + 1; k <= e; k++) {
                                    for (var O, M = 0, D = (O = S.ConfigDataComponent.Instance.GetConfigById(d.HeroStar_Config, k)).ItemMaterials; M < D.length; M++)
                                        if (g = (U = D[M]).Items[0], m = U.Items[1], null == P.ItemObj[g] && (P.ItemObj[g] = 0), P.ItemObj[g] += m, !S.DataCenter.Instance.IsItemEnough(g, P.ItemObj[g] + (r[g] || 0))) {
                                            R = !0;
                                            break
                                        } if (R) break;
                                    var B = O.HeroMaterials;
                                    I.ElementType == f.HeroElementType.Chaos && (B = O.ChaosHeroMaterials);
                                    for (var N = 0, E = B; N < E.length; N++) {
                                        var U, G, x = (U = E[N]).Items[0],
                                            H = U.Items[1];
                                        for (var F in m = U.Items[2], A) n[F] = A[F];
                                        G = n;
                                        var j = this.GetHeroByType(w.HeroId, x, H, m, G, T);
                                        if (j.length < m) {
                                            for (var W in L = !0, A) delete n[W];
                                            break
                                        }
                                        for (var z = 0, q = j; z < q.length; z++) {
                                            var V = q[z];
                                            V instanceof h.UserHero_Model ? A[V.Sid] = !0 : V instanceof h.UserItem_Model && (null == T[V.ItemId] && (T[V.ItemId] = 0), T[V.ItemId] += 1), P.Materials.push(V), x != f.HeroMaterialType.Element && x != f.HeroMaterialType.Any || P.Type3Or4Materials.push(V)
                                        }
                                    }
                                }
                                if (R || L) {
                                    for (var Z in A) delete n[Z];
                                    break
                                }
                                if (this._starObj[e][I.ElementType].push(P), this._starObj[e][f.HeroElementType.All].push(P), _ = w.StarLevel, 5 == e)
                                    for (var K in A) n[K] = A[K]
                            }
                        }
                for (var i in this._starObj[e]) this._starObj[e][i].sort(function(e, t) {
                    var n = S.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e.Hero.HeroId),
                        o = S.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, t.Hero.HeroId);
                    return n.ElementType != o.ElementType ? o.ElementType - n.ElementType : e.Hero.HeroId != t.Hero.HeroId ? t.Hero.HeroId - e.Hero.HeroId : t.Hero.StarLevel - e.Hero.StarLevel
                });
                this._starObj[this._currentStar][this._currentElement] = l(this._selectArray, this._starObj[this._currentStar][this._currentElement]), this._selectArray = []
            }, t.prototype.GetHeroByType = function(e, t, n, o, r, i) {
                var a = [];
                if (t == f.HeroMaterialType.Self || t == f.HeroMaterialType.SelfOnly) {
                    if (!this._heroIdMaterialObj[e]) return a;
                    for (var s = 0, l = this._heroIdMaterialObj[e]; s < l.length; s++) {
                        var c = l[s];
                        if (!r[c.Sid] && c.StarLevel == n && (a.push(c), a.length >= o)) return a
                    }
                } else if (t == f.HeroMaterialType.Element || t == f.HeroMaterialType.Any) {
                    var p = S.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e),
                        h = [];
                    t == f.HeroMaterialType.Any ? h = [u.NoneItem, u.SameItem, u.DifferentItem, u.ThreeItem, u.SameNormal, u.DifferentNormal, u.AllItem, u.SameMiddle, u.DifferentMiddle, u.SameHeight] : t == f.HeroMaterialType.Element && (h = p.ElementType <= f.HeroElementType.Tech ? [u.SameItem, u.ThreeItem, u.SameNormal, u.SameMiddle, u.SameHeight, u.AllItem] : [u.SameItem, u.FightBreakItem, u.SameNormal, u.SameMiddle, u.SameHeight, u.AllItem]);
                    for (var y = C.AppUtil.CloneObj(i), g = 0, m = h; g < m.length; g++) {
                        var I = m[g];
                        if (I > u.HeroLine) {
                            var _ = this.GetHeroMaterial(I, n, p.ElementType, o - a.length, r);
                            a.push.apply(a, _)
                        } else _ = this.GetItemMaterial(I, n, p.ElementType, o - a.length, y), a.push.apply(a, _);
                        if (a.length >= o) return a
                    }
                }
                return a
            }, t.prototype.GetItemMaterial = function(e, t, n, o, r) {
                var i = [],
                    a = [];
                if (null != this._itemObj[t]) switch (e) {
                    case u.SameItem:
                        a = this._itemObj[t][n] || [];
                        break;
                    case u.DifferentItem:
                        for (var s = f.HeroElementType.Heart; s <= f.HeroElementType.Chaos; s++) s != n && null != this._itemObj[t][s] && a.push.apply(a, this._itemObj[t][s]);
                        I.default.Instance.SortData(f.SortDataType.ItemHeroSoul, a, [{
                            Items: [f.SortType.HeroSoulElements, 1]
                        }]);
                        break;
                    case u.AllItem:
                        a = this._itemObj[t][f.HeroElementType.Combine5] || [];
                        break;
                    case u.ThreeItem:
                        a = this._itemObj[t][f.HeroElementType.Combine3] || [];
                        break;
                    case u.FightBreakItem:
                        a = this._itemObj[t][f.HeroElementType.Combine2] || [];
                        break;
                    case u.NoneItem:
                        a = this._itemObj[t][f.HeroElementType.All] || []
                }
                for (var l = 0, c = a; l < c.length; l++) {
                    null == r[(s = c[l]).ItemId] && (r[s.ItemId] = 0);
                    for (var p = r[s.ItemId]; p < s.Count; p++) {
                        var d = new h.UserItem_Model;
                        if (d.ItemId = s.ItemId, d.Count = 1, i.push(d), r[s.ItemId] += 1, i.length >= o) return i
                    }
                }
                return i
            }, t.prototype.GetHeroMaterial = function(e, t, n, o, r) {
                var i = [],
                    a = [];
                if (null != this._materialObj[t]) switch (e) {
                    case u.SameNormal:
                        null != this._materialObj[t][n] && (a = this._materialObj[t][n][c.Normal] || []);
                        break;
                    case u.DifferentNormal:
                        for (var s = f.HeroElementType.Heart; s <= f.HeroElementType.Chaos; s++) s != n && null != this._materialObj[t][s] && a.push.apply(a, this._materialObj[t][s][c.Normal]);
                        a.sort(function(e, t) {
                            return t.Sid - e.Sid
                        });
                        break;
                    case u.SameMiddle:
                        null != this._materialObj[t][n] && (a = this._materialObj[t][n][c.Middle] || []);
                        break;
                    case u.DifferentMiddle:
                        for (s = f.HeroElementType.Heart; s <= f.HeroElementType.Chaos; s++) s != n && null != this._materialObj[t][s] && a.push.apply(a, this._materialObj[t][s][c.Middle]);
                        a.sort(function(e, t) {
                            return t.Sid - e.Sid
                        });
                        break;
                    case u.SameHeight:
                        for (s = f.HeroElementType.Heart; s <= f.HeroElementType.Chaos; s++) s == n && null != this._materialObj[t][s] && a.push.apply(a, this._materialObj[t][s][c.High]);
                        a.sort(function(e, t) {
                            return t.Level - e.Level
                        })
                }
                for (var l = 0, p = a; l < p.length; l++)
                    if (!r[(s = p[l]).Sid] && (i.push(s), i.length >= o)) return i;
                return i
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "quick_upgrade_star_rule_main".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["quick_upgrade_star_rule_content".ToUILocale()]
                };
                g.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnTopToggleClick = function(e) {
                var t = C.AppUtil.ToInt(e.name);
                if (this._currentStar != t) {
                    this._currentStar = t, (!this._starObj[this._currentStar] || this._selectCount > 0) && (this._selectCount = 0), this.UpdateUpgradeStarData(this._currentStar);
                    var n = this._starObj[this._currentStar][this._currentElement];
                    this.NoneHeroHint.node.active = 0 == n.length, this.AsyncLayout.RenderLayout(n.length)
                }
            }, t.prototype.OnSwitchHeroElement = function(e, t) {
                if (t == this.HeroElementGroup.node && this._currentElement != e) {
                    this._currentElement = e, this._selectCount > 0 && (this._selectCount = 0, this.UpdateUpgradeStarData(this._currentStar));
                    var n = this._starObj[this._currentStar][this._currentElement];
                    this.NoneHeroHint.node.active = 0 == n.length, this.AsyncLayout.RenderLayout(n.length)
                }
            }, t.prototype.OnSelectQuickHero = function(e) {
                if (5 != this._currentStar) {
                    var t = this._starObj[this._currentStar][this._currentElement];
                    this._selectArray = t.slice(0, this._selectCount);
                    var n = t[e];
                    e < this._selectCount ? (this._selectArray.splice(e, 1), this._selectCount -= 1) : (this._selectArray.push(n), this._selectCount += 1), this.UpdateUpgradeStarData(this._currentStar), t = this._starObj[this._currentStar][this._currentElement], this.NoneHeroHint.node.active = 0 == t.length, this.AsyncLayout.RenderLayout(t.length)
                }
            }, t.prototype.OnQuickBtnClick = function() {
                if (5 != this._currentStar && this._selectCount <= 0) g.UIUtlity.ShowFloatingHint("quick_upgrade_star_select".ToUILocale());
                else {
                    var e = this._starObj[this._currentStar][this._currentElement];
                    if (5 != this._currentStar && (e = this._starObj[this._currentStar][this._currentElement].slice(0, this._selectCount)), 0 != e.length) {
                        for (var t = [], n = 0; n < e.length; n++)
                            for (var o = e[n], r = 0; r < o.Type3Or4Materials.length; r++)
                                if (o.Type3Or4Materials[r] instanceof h.UserHero_Model) {
                                    var i = o.Type3Or4Materials[r];
                                    t.push({
                                        Type: I.UpStarHeroMaterialType.Hero,
                                        Id: i.Sid
                                    })
                                } P.default.CheckNeedShowAutoShetHero(t) ? p.UIManager.Instance.ShowUIPanel(y.PanelConfig.AutoSetHeroHintPanel.Path, t, this.RequestUpgrade.bind(this)) : this.RequestUpgrade()
                    } else g.UIUtlity.ShowFloatingHint("quick_upgrade_star_select".ToUILocale())
                }
            }, t.prototype.RequestUpgrade = function() {
                var e = this._starObj[this._currentStar][this._currentElement];
                if (5 != this._currentStar && (e = this._starObj[this._currentStar][this._currentElement].slice(0, this._selectCount)), 0 != e.length) {
                    var t = new h.Req_Hero_HerosUpgradeStar;
                    t.Sids = [];
                    for (var n = 0; n < e.length; n++) {
                        var o = e[n];
                        t.Sids.push(o.Hero.Sid), t.Materials.push({
                            Items: o.Materials.map(function(e) {
                                return e instanceof h.UserHero_Model ? e.Sid : e instanceof h.UserItem_Model ? -e.ItemId : void 0
                            })
                        })
                    }
                    S.RpcComponent.Instance.Call(t, this.UpgradeStarSucess.bind(this))
                } else g.UIUtlity.ShowFloatingHint("quick_upgrade_star_select".ToUILocale())
            }, t.prototype.UpgradeStarSucess = function(e) {
                this._selectCount = 0, this._starObj = {}, this._displaceHero = null, this._equipObj = null, this._holyObj = null, this._petObj = null, this._coreObj = null, this._luckyObj = null, this._gemObj = null, g.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.OnReturnBtnClick = function() {
                _.UIManager.Instance.BackUIPanel()
            }, i([R(cc.Button)], t.prototype, "RuleButton", void 0), i([R(cc.Label)], t.prototype, "Title", void 0), i([R(cc.Node)], t.prototype, "TopTggles", void 0), i([R(cc.Label)], t.prototype, "Title2", void 0), i([R(w.default)], t.prototype, "AsyncLayout", void 0), i([R(cc.Label)], t.prototype, "NoneHeroHint", void 0), i([R(cc.Label)], t.prototype, "Desc", void 0), i([R(v.default)], t.prototype, "HeroElementGroup", void 0), i([R(cc.Button)], t.prototype, "QuickBtn", void 0), i([R(cc.Label)], t.prototype, "QuickBtnLabel", void 0), i([R(cc.Button)], t.prototype, "ReturnBtn", void 0), i([T], t)
        }(p.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/HeroElementGroup": "HeroElementGroup",
        "./AutoSetHeroHintPanel": "AutoSetHeroHintPanel",
        "./QuickUpgradeStarItem": "QuickUpgradeStarItem"
    }],
    RankDetailComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4e5a4l6xQpJ84d56JG3De69", "RankDetailComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RankDetailComponentStyle = void 0;
        var l, c, u = e("./CustomLayout"),
            p = e("./RankDetailListItem"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Components/DataCenter"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("../../../ShareConsts/EnumType"),
            _ = e("./CustomToggle"),
            C = e("../../Components/Components"),
            v = e("./RankDetailRewardItem"),
            b = cc._decorator,
            S = b.ccclass,
            w = b.property;
        (function(e) {
            e[e.Default = 0] = "Default", e[e.CampSupport = 1] = "CampSupport"
        })(l = n.RankDetailComponentStyle || (n.RankDetailComponentStyle = {})),
        function(e) {
            e[e.Rank = 0] = "Rank", e[e.Reward = 1] = "Reward"
        }(c || (c = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Style = l.Default, t.DetailListScroll = null, t.DetailListGrid = null, t.MyRankRoot = null, t.TopThreeDetailItemList = [], t.RewardAndRankNode = null, t.RankScroll = null, t.RankGrid = null, t.RewardScroll = null, t.RewardGrid = null, t.RewardAndRankToggles = [], t.LIST_ITEM_PREFAB_PATH = "RankPanel/Private/RankDetailListItem", t.SELF_LIST_ITEM_PREFAB_PATH = "RankPanel/Private/SelfRankDetailListItem", t.COPPER_ORDER = 3, t.IRON_ORDER = 4, t._listItemPrefab = null, t._selfListItemPrefab = null, t._myRankItem = null, t._isLayoutInit = !1, t._isInit = !1, t._isActivity = !1, t._rankAndRewardPrefab = null, t._selectIndex = -1, t._myRankNodeY = 0, t
            }
            return r(t, e), t.prototype.SetExtraParam = function(e) {
                this._extraParam = e
            }, t.prototype.SetUI = function(e, t, n, o, r, i) {
                if (void 0 === r && (r = !1), this._rankConfigId = e, this._rankRowDataList = t, this._myRank = n, this._myRankData = o, this._isActivity = i, this._isChaosSummon = !1, this._isActivity) {
                    var a = g.DataCenter.Instance.GetActivityConfigsByActId(this._rankConfigId);
                    this._activityType = a.Common.Type, this._isChaosSummon = a && a.Common.Type == I.ActivityType.ChaosSummon
                } else this._isChaosSummon = this._rankConfigId == I.RankTypeId.ChaosSummon;
                this.DetailListScroll.node.active = !this._isChaosSummon, this.RewardAndRankNode.active = this._isChaosSummon, this._isInit || (this.SetStaticLocalText(), this._isInit = !0), r ? i && this._activityType == I.ActivityType.SupportHero && (this._selectIndex = -1, this.InitCustomLayout()) : this._isChaosSummon && this._extraParam && this._extraParam.ToggleIndex >= 0 ? (this._selectIndex = this._extraParam.ToggleIndex, this.ClickRewardAndRankToggle()) : (this._selectIndex = -1, this.InitCustomLayout())
            }, t.prototype.SetMyRootWiget = function(e) {
                var t = this.MyRankRoot.getComponent(cc.Widget);
                t && (t.isAlignBottom = !0, t.bottom = e, t.updateAlignment())
            }, t.prototype.SetStaticLocalText = function() {}, t.prototype.onEnable = function() {
                f.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                f.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
            }, t.prototype.InitCustomLayout = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return null != this._listItemPrefab ? [3, 2] : (e = f.AssetsManager.Instance.LoadAsset(this.LIST_ITEM_PREFAB_PATH, cc.Prefab), t = f.AssetsManager.Instance.LoadAsset(this.SELF_LIST_ITEM_PREFAB_PATH, cc.Prefab), [4, Promise.all([e, t]).then(function(e) {
                                    n._listItemPrefab = e[0], n._selfListItemPrefab = e[1]
                                })]);
                            case 1:
                                if (o.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), m.AssetsManager.Instance.UnloadAsset(this._selfListItemPrefab), [2];
                                o.label = 2;
                            case 2:
                                return this._isLayoutInit || (this._isLayoutInit = !0, this.DetailListGrid.Init(this._listItemPrefab, !1)), this.RenderLayout(), this.LoadTopThreeRank(), this.LoadMyRank(), [2]
                        }
                    })
                })
            }, t.prototype.RenderLayout = function() {
                this.DetailListScroll.scrollToTop();
                var e = Math.max(this._rankRowDataList.length - this.COPPER_ORDER, 0);
                this.DetailListGrid.RenderLayOut(e)
            }, t.prototype.LoadTopThreeRank = function() {
                for (var e = 0; e < this.TopThreeDetailItemList.length; e++) {
                    var t = {};
                    t.ConfigId = this._rankConfigId, t.RowData = this._rankRowDataList[e], t.Order = e + 1, t.IsMyRank = !1, t.MyRankData = null, t.IsActivity = this._isActivity, t.ExtraData = this._extraParam, this.TopThreeDetailItemList[e].SetUI(t)
                }
            }, t.prototype.SetMyRankNodeY = function(e) {
                void 0 === e && (e = 14), this._myRankItem ? this._myRankItem.node.y = e : this._myRankNodeY = e
            }, t.prototype.LoadMyRank = function() {
                null == this._myRankItem && (this._myRankItem = cc.instantiate(this._selfListItemPrefab).getComponent(p.default), this._myRankItem.node.parent = this.MyRankRoot, this._myRankItem.node.y = this._myRankNodeY);
                for (var e = !1, t = 0; t < this._rankRowDataList.length; t++)
                    if (this._rankConfigId != I.RankTypeId.ZoneAlliance && this._rankConfigId != I.RankTypeId.CrossZoneAllianceChallenge && this._rankConfigId != I.RankTypeId.CrossZoneAlliance && this._rankConfigId != I.RankTypeId.CrossZoneAllianceChallengePrevious && this._rankConfigId != I.RankTypeId.WarAllianceScore && this._rankConfigId != I.RankTypeId.WarAllianceHolyScore && this._rankConfigId != I.RankTypeId.WarCityScore && this._rankConfigId != I.RankTypeId.WarSeasonScore || this._isActivity) {
                        if (this._isActivity && ((n = g.DataCenter.Instance.GetActivityConfigsByActId(this._rankConfigId)) && n.Common.Type == I.ActivityType.WorldBoss || n.Common.Type == I.ActivityType.AllianceMaze) && (n.CustomPart.Type == I.WorldBossType.Alliance || n.Common.Type == I.ActivityType.AllianceMaze)) {
                            if (this._rankRowDataList[t].PlayerInfo) {
                                if (this._rankRowDataList[t].PlayerInfo.Uid == g.DataCenter.Instance.Uid) {
                                    (o = {}).ConfigId = this._rankConfigId, o.RowData = this._rankRowDataList[t], o.Order = t + 1, o.IsMyRank = !0, o.MyRankData = this._myRankData, o.IsActivity = this._isActivity, o.ExtraData = this._extraParam, this._myRankItem.SetUI(o), e = !0;
                                    break
                                }
                            } else if (this._rankRowDataList[t].AllianceInfo.Id == g.DataCenter.Instance.AllianceId) {
                                (o = {}).ConfigId = this._rankConfigId, o.RowData = this._rankRowDataList[t], o.Order = t + 1, o.IsMyRank = !0, o.MyRankData = this._myRankData, o.IsActivity = this._isActivity, o.ExtraData = this._extraParam, this._myRankItem.SetUI(o), e = !0;
                                break
                            }
                            continue
                        }
                        if (this._rankRowDataList[t].PlayerInfo && this._rankRowDataList[t].PlayerInfo.Uid == g.DataCenter.Instance.Uid) {
                            (o = {}).ConfigId = this._rankConfigId, o.RowData = this._rankRowDataList[t], o.Order = t + 1, o.IsMyRank = !0, o.MyRankData = this._myRankData, o.IsActivity = this._isActivity, o.ExtraData = this._extraParam, this._myRankItem.SetUI(o), e = !0;
                            break
                        }
                    } else if (this._rankRowDataList[t].AllianceInfo && this._rankRowDataList[t].AllianceInfo.Id == g.DataCenter.Instance.AllianceId) {
                    (o = {}).ConfigId = this._rankConfigId, o.RowData = this._rankRowDataList[t], o.Order = t + 1, o.IsMyRank = !0, o.MyRankData = this._myRankData, o.IsActivity = this._isActivity, o.ExtraData = this._extraParam, this._myRankItem.SetUI(o), e = !0;
                    break
                }
                if (this._rankConfigId != I.RankTypeId.AllZoneBattlePower || e || this._myRankData && this._myRank > 100 && this._myRank <= 200 && (e = !0, (o = {}).ConfigId = this._rankConfigId, o.RowData = null, o.Order = this._myRank, o.IsMyRank = !0, o.MyRankData = this._myRankData, o.IsActivity = this._isActivity, o.ExtraData = this._extraParam, this._myRankItem.SetUI(o)), !e) {
                    var n, o;
                    if (this._isActivity && (n = g.DataCenter.Instance.GetActivityConfigsByActId(this._rankConfigId)) && (n.Common.Type == I.ActivityType.TradeWar || n.Common.Type == I.ActivityType.PickFood)) {
                        var r = {};
                        return r.ConfigId = this._rankConfigId, r.RowData = null, n.Common.Type == I.ActivityType.PickFood && 0 == this._myRank ? r.Order = -1 : r.Order = this._myRank, r.IsMyRank = !0, r.MyRankData = this._myRankData, r.IsActivity = this._isActivity, r.ExtraData = this._extraParam, void this._myRankItem.SetUI(r)
                    }(o = {}).ConfigId = this._rankConfigId, o.RowData = null, o.Order = -1, o.IsMyRank = !0, o.MyRankData = this._myRankData, o.IsActivity = this._isActivity, o.ExtraData = this._extraParam, this._myRankItem.SetUI(o)
                }
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (t == this.DetailListGrid || t == this.RankGrid || t == this.RewardGrid)
                    if (this._selectIndex == c.Reward) {
                        var o = this.GetChaosRewards();
                        e.forEach(function(e, t) {
                            e.getComponent(v.default).Init(o[t])
                        })
                    } else this._selectIndex == c.Rank ? e.forEach(function(e, t) {
                        var o = e.getComponent(p.default);
                        o.SetChaosRankListItem(!0);
                        var r = {};
                        r.ConfigId = n._rankConfigId, r.RowData = n._rankRowDataList[t], r.Order = t + 1, r.IsMyRank = !1, r.MyRankData = null, r.IsActivity = n._isActivity, r.ExtraData = n._extraParam, o.SetUI(r)
                    }) : -1 == this._selectIndex && e.forEach(function(e, t) {
                        var o = e.getComponent(p.default);
                        o.SetChaosRankListItem(!1);
                        var r = {};
                        r.ConfigId = n._rankConfigId, r.RowData = n._rankRowDataList[t + n.COPPER_ORDER], r.Order = t + n.IRON_ORDER, r.IsMyRank = !1, r.MyRankData = null, r.IsActivity = n._isActivity, r.ExtraData = n._extraParam, o.SetUI(r)
                    })
            }, t.prototype.SetMyRankRootActivie = function(e) {
                this.MyRankRoot.active = e
            }, t.prototype.SetRankOffsetUp = function(e) {
                void 0 === e && (e = 60), this.node.height = this.node.height - e, this.node.y = this.node.y + e / 2
            }, t.prototype.ClickRewardAndRankToggle = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return [4, this.SetListItemPrefab(this._selectIndex)];
                            case 1:
                                switch (n.sent(), this.RankScroll.node.active = !1, this.RewardScroll.node.active = !1, this._selectIndex) {
                                    case c.Rank:
                                        this.RankScroll.node.active = !0, this.RankGrid.Init(this._listItemPrefab, !1), this.RankScroll.scrollToTop(), t = this._rankRowDataList.length, this.RankGrid.RenderLayOut(t);
                                        break;
                                    case c.Reward:
                                        this.RewardScroll.node.active = !0, this.RewardGrid.Init(this._rankAndRewardPrefab, !1), this.RewardScroll.scrollToTop(), e = this.GetChaosRewards(), t = e.length, this.RewardGrid.RenderLayOut(t)
                                }
                                return this.LoadTopThreeRank(), this.LoadMyRank(), [2]
                        }
                    })
                })
            }, t.prototype.GetChaosRewards = function() {
                var e = this,
                    t = [];
                if (this._isActivity) g.DataCenter.Instance.GetActivityConfigsByActId(this._rankConfigId)._RankRewards.forEach(function(e) {
                    var n = {};
                    n.Rank = e.Rank, n.Rewards = e.Rewards, t.push(n)
                });
                else {
                    var n = C.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, I.LevelParamType.ChaosSummonRankReward).Data2;
                    n.forEach(function(o, r) {
                        var i = 0,
                            a = {},
                            s = e.GetRewardIntArray(o);
                        a.Rewards = s, r < n.length - 1 ? o.Items[0] > 3 ? (i = n[r + 1].Items[0] - 1, a.Rank = [o.Items[0], i]) : a.Rank = [o.Items[0], o.Items[0]] : (i = 100, a.Rank = [o.Items[0], i]), t.push(a)
                    })
                }
                return t
            }, t.prototype.GetRewardIntArray = function(e) {
                for (var t = [], n = 1; n < e.Items.length;) {
                    var o = new h.IntArray;
                    o.Items[0] = e.Items[n], o.Items[1] = e.Items[n + 1], t.push(o), n += 2
                }
                return t
            }, t.prototype.SetListItemPrefab = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                switch (e) {
                                    case c.Rank:
                                        return [3, 1];
                                    case c.Reward:
                                        return [3, 4]
                                }
                                return [3, 7];
                            case 1:
                                return null != this._listItemPrefab ? [3, 3] : (t = f.AssetsManager.Instance.LoadAsset(this.LIST_ITEM_PREFAB_PATH, cc.Prefab), n = f.AssetsManager.Instance.LoadAsset(this.SELF_LIST_ITEM_PREFAB_PATH, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    r._listItemPrefab = e[0], r._selfListItemPrefab = e[1]
                                })]);
                            case 2:
                                if (i.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), m.AssetsManager.Instance.UnloadAsset(this._selfListItemPrefab), [2];
                                i.label = 3;
                            case 3:
                                return [3, 8];
                            case 4:
                                return null != this._rankAndRewardPrefab ? [3, 6] : (o = this, [4, f.AssetsManager.Instance.LoadAsset("RankPanel/Private/RankDetailRewardItem", cc.Prefab)]);
                            case 5:
                                if (o._rankAndRewardPrefab = i.sent(), !this.isValid) return m.AssetsManager.Instance.UnloadAsset(this._rankAndRewardPrefab), [2];
                                i.label = 6;
                            case 6:
                            case 7:
                                return [3, 8];
                            case 8:
                                return [2]
                        }
                    })
                })
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                f.AssetsManager.Instance.UnloadAsset(this._listItemPrefab), f.AssetsManager.Instance.UnloadAsset(this._rankAndRewardPrefab), this._listItemPrefab = null, this._rankAndRewardPrefab = null
            }, i([w({
                type: cc.Enum(l),
                displayName: "\u6837\u5f0f"
            })], t.prototype, "Style", void 0), i([w(cc.ScrollView)], t.prototype, "DetailListScroll", void 0), i([w(u.default)], t.prototype, "DetailListGrid", void 0), i([w(cc.Node)], t.prototype, "MyRankRoot", void 0), i([w(p.default)], t.prototype, "TopThreeDetailItemList", void 0), i([w(cc.Node)], t.prototype, "RewardAndRankNode", void 0), i([w(cc.ScrollView)], t.prototype, "RankScroll", void 0), i([w(u.default)], t.prototype, "RankGrid", void 0), i([w(cc.ScrollView)], t.prototype, "RewardScroll", void 0), i([w(u.default)], t.prototype, "RewardGrid", void 0), i([w(_.default)], t.prototype, "RewardAndRankToggles", void 0), i([S], t)
        }(cc.Component);
        n.default = P, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "./CustomLayout": "CustomLayout",
        "./CustomToggle": "CustomToggle",
        "./RankDetailListItem": "RankDetailListItem",
        "./RankDetailRewardItem": "RankDetailRewardItem"
    }],
    RankDetailListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "85355RfxtVEep/YK/3I280j", "RankDetailListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RankDetailListItemStyle = void 0;
        var l, c, u, p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/Components"),
            h = e("../../Components/ConfigData/ConfigDataComponent"),
            f = e("./ItemComponent"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("./CustomRichText"),
            _ = e("../../../ShareConsts/EnumType"),
            C = e("../../../../Proto/Static/RpcProto"),
            v = e("../../Auxiliary/DataUtlity"),
            b = e("../Auxiliary/UIUtlity"),
            S = e("../../Components/DataCenter"),
            w = e("./HeadComponent"),
            P = e("../../Components/RpcComponent"),
            A = e("../../Auxiliary/EventKeys"),
            T = e("../../../EZFramework/EZFramework"),
            R = e("../../Components/ConfigData/ConfigCacheComponent"),
            L = e("../Panel/CrossServerRankPanel"),
            k = e("../../../Consts/Consts"),
            O = e("../../../Consts/Consts"),
            M = e("../Panel/ContinuousFightPanel"),
            D = e("../../Channel/ChannelManager"),
            B = e("./RankTypeListItem"),
            N = e("../Panel/AngelPvpComponent"),
            E = e("../Panel/CommonPvpPlayerInfoPanel"),
            U = e("../Panel/GlobalChampionShipPanel"),
            G = e("../Panel/GlobalChampionMainPanel"),
            x = e("./LoadAssetHelper"),
            H = cc._decorator,
            F = H.ccclass,
            j = H.property;
        (function(e) {
            e[e.Normal = 0] = "Normal", e[e.Hero = 0] = "Hero"
        })(l || (l = {})),
        function(e) {
            e[e.Pet = 1] = "Pet", e[e.MagicCircleBottom = 2] = "MagicCircleBottom", e[e.MagicCircleTop = 3] = "MagicCircleTop"
        }(c || (c = {})),
        function(e) {
            e[e.Default = 0] = "Default", e[e.CampSupport = 1] = "CampSupport"
        }(u = n.RankDetailListItemStyle || (n.RankDetailListItemStyle = {}));
        var W = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Style = u.Default, t.BgNode = null, t.FlagNode = null, t.HeadRoot = null, t.MagicCircleBottomNode = null, t.AvatarRoot = null, t.MagicCircleTopNode = null, t.PetNode = null, t.LoadAssetHelper = null, t.ItemRoot = null, t.OrderLabel = null, t.PlayerNameNode = null, t.PlayerName = null, t.UserIcon = null, t.HeroName = null, t.RankContentNode = null, t.RankContent = null, t.BattlePowerNode = null, t.PowerLabel = null, t.IntegalIcon = null, t.BtnBeLike = null, t.BtnBeLikeDisable = null, t.BeLikeCountNormal = null, t.BeLikeCountDisable = null, t.AllianceFlag = null, t.AllianceLogo = null, t.AllianceInfoNode = null, t.AllianceLeaderName = null, t.AllianceMemberCount = null, t.AllianceLevel = null, t.AllianceName = null, t.CrossSwordIcon = null, t.HappyTurnNode = null, t.HappyTurnTimeDesc = null, t.HappyTurnTime = null, t.PersonalityNode = null, t.PersonalityTimesLabel = null, t.PersonalityTimesValue = null, t.TwoLabelNode1 = null, t.TwoLabelNode1Label = null, t.TwoLabelNode1Value = null, t.TwoLabelNode2 = null, t.TwoLabelNode2Label = null, t.TwoLabelNode2Value = null, t.ZoneNode = null, t.ZoneValue = null, t.ArenaNode = null, t.ArenaValue = null, t.CrossServerRankNode = null, t.CrossServerRankTag = null, t.CrossServerRankImage = null, t.CrossServerRankValue = null, t.TwoLabelsNode = null, t.SupportValueNode = null, t.SupportTagLabel = null, t.SupportValueLabel = null, t.UserDesignation = null, t.PlayerNameModule = null, t.RankNumber = null, t.ChampionShipNode = null, t.ChampionShipGrade = null, t.ChampionShipCup = null, t.ChampionShipValue = null, t.SelfRankBg = null, t.NormalRankBg = null, t.PlayerTitleNode = null, t.PlayerTitleIcon = null, t.Top3TopLayout = null, t.Top3DownLayout = null, t.RANK_ALLIANCE_ATLAS_PATH = "AllianceBasePanel/PNG/allianceBase", t.Zoom = 1.1, t._commonItemPrefab = null, t._item = null, t._order = 0, t._isMyRank = !1, t._isUIInit = !1, t._myRankData = null, t._rankAllianceAtlas = null, t._headItemPrefab = null, t._headItem = null, t._beLikeCount = 0, t._isLike = !1, t._crossServerRankGrade = null, t._isActivity = !1, t._isChaosRankListItem = !1, t._assets = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onLoad = function() {
                this._scale = this.node.scale
            }, t.prototype.onEnable = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this), m.Game.EventDispatcher.On(A.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                this.node.off(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this), m.Game.EventDispatcher.Off(A.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.ItemRoot.children.indexOf(t) && (this._isMyRank ? T.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroDetailPanel.Path, e, null, null) : T.UIManager.Instance.ShowUIPanel(y.PanelConfig.HeroDetailPanel.Path, this._rankRowData.HeroInfo.Id, this._rankRowData.PlayerInfo.Uid, this._rankRowData.Zone, this._rankRowData.PlayerInfo.NotShow))
            }, t.prototype.SetChaosRankListItem = function(e) {
                this._isChaosRankListItem = e
            }, t.prototype.SetUI = function(e) {
                if (this._rankConfigId = e.ConfigId, this._rankRowData = e.RowData, this._order = e.Order, this._isMyRank = e.IsMyRank, this._myRankData = e.MyRankData, this._isActivity = e.IsActivity, this._data = e, null != e.MyRankData ? this._myValue = e.MyRankData.Value : this._myValue = 0, this._isUIInit || (this._isUIInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this._isAllianceRank = !1, this._isActivity) {
                    var t = S.DataCenter.Instance.GetActivityConfigsByActId(this._rankConfigId);
                    t && (t.Common.Type == _.ActivityType.WorldBoss ? t.CustomPart.Type == _.WorldBossType.Alliance && e.RowData && e.RowData.AllianceInfo && (this._isAllianceRank = !0) : t.Common.Type == _.ActivityType.HeroPK && this.LoadActivityAsset(), t.Common.Type == _.ActivityType.RuinsWar && this._data.ExtraData && 1 == this._data.ExtraData.Num && (this._isAllianceRank = !0), t.Common.Type == _.ActivityType.AllianceMaze && this._data.ExtraData && this._data.ExtraData.IsAlliance && (this._isAllianceRank = !0))
                } else(e.ConfigId == _.RankTypeId.ZoneAlliance || e.ConfigId == _.RankTypeId.CrossZoneAlliance || e.ConfigId == _.RankTypeId.CrossZoneAllianceChallenge || this._isAllianceRank || e.ConfigId == _.RankTypeId.CrossZoneAllianceChallengePrevious || this._rankConfigId == _.RankTypeId.WarAllianceScore || this._rankConfigId == _.RankTypeId.WarAllianceHolyScore || this._rankConfigId == _.RankTypeId.WarCityScore || this._rankConfigId == _.RankTypeId.WarSeasonScore) && (this._isAllianceRank = !0);
                this._isAllianceRank ? (this.HeadRoot.active = !1, this.AvatarRoot && (this.AvatarRoot.active = !1), this.AllianceInfoNode.active = !0, this.SetAllianceFlag(), this.SetAllianceInfo(), this.HeroName.node.active = !1, this.PlayerNameNode.active = !1, this.PlayerNameModule.active = !1, null != this.UserIcon && (this.UserIcon.active = !1)) : (this.LoadHeader(), this.SetPlayerName(), this.PlayerNameModule.active = !0, this.PlayerNameNode.active = !0, this.AllianceFlag.node.active = !1, this.AllianceLogo.node.active = !1, this.AllianceInfoNode.active = !1), e.ConfigId != _.RankTypeId.CrossZoneRank && e.ConfigId != _.RankTypeId.CrossZoneContinueWarRank && e.ConfigId != _.RankTypeId.CrossZoneChampionRace && e.ConfigId != _.RankTypeId.GodLandDuel && e.ConfigId != _.RankTypeId.AllZoneChampionRace || this.LoadCrossServerAsset(e.ConfigId), this.SetOrder(), this.SetHeroName(), e.IsActivity ? this.SetActivityContent() : this.SetRankContent()
            }, t.prototype.LoadCrossServerAsset = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._crossServerRankGrade ? [3, 2] : [4, m.AssetsManager.Instance.LoadAsset("CrossServerRankPanel/PNG/CrossServerRank", cc.SpriteAtlas)];
                            case 1:
                                if (t = o.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(t), [2];
                                this._crossServerRankGrade = t, this._assets.push(t), o.label = 2;
                            case 2:
                                return this.CrossServerRankImage.node.scale = .3, this._isMyRank ? e == _.RankTypeId.CrossZoneRank ? (n = L.default.GetGradeByScore(this._myValue)) && (this.CrossServerRankImage.spriteFrame = this._crossServerRankGrade.getSpriteFrame("grade_" + n.Id)) : e == _.RankTypeId.CrossZoneContinueWarRank ? (n = M.default.GetGradeByScore(this._myValue)) && (this.CrossServerRankImage.spriteFrame = this._crossServerRankGrade.getSpriteFrame("badge_" + n.Id), this.CrossServerRankImage.node.scale = .5) : e == _.RankTypeId.GodLandDuel && (n = N.default.GetStageConfig(this._myValue)) && (this.CrossServerRankImage.spriteFrame = this._crossServerRankGrade.getSpriteFrame("grade_" + n.Id)) : this._rankRowData && (e == _.RankTypeId.CrossZoneRank ? (n = L.default.GetGradeByScore(this._rankRowData.Value)) && (this.CrossServerRankImage.spriteFrame = this._crossServerRankGrade.getSpriteFrame("grade_" + n.Id)) : e == _.RankTypeId.CrossZoneContinueWarRank ? (n = M.default.GetGradeByScore(this._rankRowData.Value)) && (this.CrossServerRankImage.spriteFrame = this._crossServerRankGrade.getSpriteFrame("badge_" + n.Id), this.CrossServerRankImage.node.scale = .5) : e == _.RankTypeId.GodLandDuel && (n = N.default.GetStageConfig(this._rankRowData.Value)) && (this.CrossServerRankImage.spriteFrame = this._crossServerRankGrade.getSpriteFrame("grade_" + n.Id))), [2]
                        }
                    })
                })
            }, t.prototype.LoadActivityAsset = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._heroPKatlas ? [3, 2] : [4, m.AssetsManager.Instance.LoadAsset("ActivityHeroPKPanel/PNG/ActivityHeroPKAtlas", cc.SpriteAtlas)];
                            case 1:
                                if (e = t.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._heroPKatlas = e, this._assets.push(e), t.label = 2;
                            case 2:
                                return this.CrossServerRankImage.spriteFrame = this._heroPKatlas.getSpriteFrame("point_icon"), [2]
                        }
                    })
                })
            }, t.prototype.SetStaticLocalText = function() {}, t.prototype.SetClickEvent = function() {
                null != this.BtnBeLike && this.BtnBeLike.node.on("click", this.OnBtnBeLikeClick, this)
            }, t.prototype.OnBtnBeLikeClick = function() {
                this.RequestBeLike()
            }, t.prototype.RequestBeLike = function() {
                var e = new C.Req_Player_RankLike;
                e.RankType = this._rankConfigId, e.TargetUid = this._rankRowData.PlayerInfo.Uid, P.RpcComponent.Instance.Call(e, this.ResponseBeLikeSuccess.bind(this))
            }, t.prototype.ResponseBeLikeSuccess = function(e) {
                if (this._isLike = !0, this.BeLikeCountNormal.string = (this._beLikeCount + 1).toString(), this.BeLikeCountDisable.string = (this._beLikeCount + 1).toString(), this.BtnBeLike.node.active = !1, this.BtnBeLikeDisable.node.active = !0, e.Rewards.length > 0) {
                    var t = "rank_belike_hint".ToUILocale().Fmt(e.Rewards[0].ItemId.ToItemName(), e.Rewards[0].Count);
                    b.UIUtlity.ShowFloatingHint(t)
                }
            }, t.prototype.LoadHeader = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return null == this._rankConfig || this._rankConfig.Type != B.RankTopType.ZoneDevelop && this._rankConfig.Type != B.RankTopType.CrossServerDevelop ? (this._isMyRank ? (this.HeadRoot.active = !0, this.LoadPlayerHead(!0)) : null != this._rankRowData && this._rankRowData.PlayerInfo ? (this.HeadRoot.active = !0, this.LoadPlayerHead()) : (this.HeadRoot.active = !1, this.AvatarRoot && (this.AvatarRoot.active = !1)), this.ItemRoot.active = !1, [3, 8]) : [3, 1];
                            case 1:
                                return this.HeadRoot.active = !1, this.AvatarRoot && (this.AvatarRoot.active = !1), this._isMyRank ? [3, 5] : null == this._rankRowData ? [3, 3] : (this.ItemRoot.active = !0, [4, this.LoadItemComponent()]);
                            case 2:
                                return a.sent(), e = this._rankRowData.HeroInfo.HeroId, t = this._rankRowData.HeroInfo.StarLevel, n = Math.abs(this._rankRowData.HeroInfo.Level), o = h.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, e), r = o.ElementType, this._item.Init({
                                    ItemId: e,
                                    StarLevel: t,
                                    Level: n,
                                    ElementType: r
                                }, f.ItemComponentType.HeroInfo), this._item.node.name = this._rankRowData.PlayerInfo.Uid.toString(), this._rankRowData.HeroInfo.Level < 0 ? this._item.SetHeroLevelColor(b.UIUtlity.Herolevel_Label_Color_StarResonance) : this._item.SetHeroLevelColor(cc.Color.WHITE), [3, 4];
                            case 3:
                                this.ItemRoot.active = !1, a.label = 4;
                            case 4:
                                return [3, 8];
                            case 5:
                                return null == this._myRankData.HeroInfo ? [3, 7] : (i = S.DataCenter.Instance.GetDataById(C.UserHero_Model, this._myRankData.HeroInfo.Id), [4, this.LoadItemComponent()]);
                            case 6:
                                return a.sent(), this._item.Init(i, f.ItemComponentType.HeroInfo), this._item.node.name = this._myRankData.HeroInfo.Id.toString(), this.ItemRoot.active = !0, [3, 8];
                            case 7:
                                this.ItemRoot.active = !1, a.label = 8;
                            case 8:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetAllianceFlag = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return null != this._rankAllianceAtlas ? [3, 2] : [4, g.AssetsManager.Instance.LoadAsset(this.RANK_ALLIANCE_ATLAS_PATH, cc.SpriteAtlas)];
                            case 1:
                                if (e = i.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._rankAllianceAtlas = e, this._assets.push(e), i.label = 2;
                            case 2:
                                return this._isAllianceRank && null != this._rankRowData ? (t = this._rankRowData.AllianceInfo.Icon, n = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceIcon_Config, t), o = n.LogoID, r = n.FlagID, this.AllianceFlag.spriteFrame = this._rankAllianceAtlas.getSpriteFrame("flagBg" + r), this.AllianceLogo.spriteFrame = this._rankAllianceAtlas.getSpriteFrame("flagLogo" + o), this.AllianceFlag.node.active = !0, this.AllianceLogo.node.active = !0) : this.AllianceFlag.node.active = !1, [2]
                        }
                    })
                })
            }, t.prototype.SetAllianceInfo = function() {
                if (null != this._rankRowData) {
                    this.AllianceInfoNode.active = !0;
                    var e = this._rankRowData.AllianceInfo.Level,
                        t = this._rankRowData.AllianceInfo.Name;
                    this.AllianceInfoNode.active = !0, this.AllianceLevel.string = "Lv." + e, this.AllianceName.string = t, this.AllianceLeaderName.string = this._rankRowData.AllianceInfo.LeaderName
                } else this._isMyRank, this.AllianceInfoNode.active = !1
            }, t.prototype.LoadPlayerHead = function(e) {
                return void 0 === e && (e = !1), a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, c, u, h, f;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return this.AvatarRoot ? (this.AvatarRoot.scale = 1.5, this.AvatarRoot.active = !0, this.HeadRoot.active = !1, a = void 0, a = e ? S.DataCenter.Instance.GetIntData(_.UserDataKey.HeadIcon) : this._rankRowData.PlayerInfo.HeadIcon, (t = d.ConfigDataComponent.Instance.GetConfigById(p.HeroSkin_Config, a)) || (t = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, a)), n = "Hero_" + t.Model + "/HeroAvatar", this.LoadAssetHelper.LoadPrefab(n, this.AvatarRoot, function(e) {
                                    e.getComponent(sp.Skeleton).setAnimation(0, k.SkillAnimationType.Standby, !0)
                                }), this.MagicCircleTopNode && this.MagicCircleBottomNode && (this.MagicCircleTopNode.scale = 1.3, this.MagicCircleBottomNode.scale = 1.3, 0, o = e ? S.DataCenter.Instance.GetIntData(_.UserDataKey.ShowMagicCircle) : this._rankRowData.PlayerInfo.MagicCircle, this.SetMagicCircleByItemId(o)), this.PetNode && (this.PetNode.scale = 1.1, 0, r = e ? S.DataCenter.Instance.GetIntData(_.UserDataKey.ShowPet) : this._rankRowData.PlayerInfo.Pet, this.SetPetByItemId(r)), [3, 4]) : [3, 1];
                            case 1:
                                return this.AvatarRoot && (this.AvatarRoot.active = !1), this.HeadRoot.active = !0, null != this._headItemPrefab ? [3, 3] : [4, g.AssetsManager.Instance.LoadAsset(y.BundlePath.HeadComponent, cc.Prefab)];
                            case 2:
                                if (i = s.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(i), [2];
                                this._headItemPrefab = i, this._assets.push(i), s.label = 3;
                            case 3:
                                null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(w.default), this._headItem.node.parent = this.HeadRoot), e ? (c = S.DataCenter.Instance.GetIntData(_.UserDataKey.HeadIcon), u = S.DataCenter.Instance.GetIntData(_.UserDataKey.HeadFrame), h = S.DataCenter.Instance.GetIntData(_.UserDataKey.Title), this._headItem.SetUI(c, u, h), this._headItem.SetLevel(S.DataCenter.Instance.GetIntData(_.UserDataKey.PlayerLevel)), f = void 0, (f = S.DataCenter.Instance.GetStringData(_.UserDataKey.Country)) || (f = D.default.Instance.Localization_Country), f = 0 == S.DataCenter.Instance.GetIntData(_.UserDataKey.CountryShowState) ? f : "", this._headItem.SetCountry(f)) : (a = this._rankRowData.PlayerInfo.HeadIcon, l = this._rankRowData.PlayerInfo.HeadFrame, h = this._rankRowData.PlayerInfo.Title, this._headItem.SetUI(a, l, h), this._headItem.SetLevel(this._rankRowData.PlayerInfo.Level), this._headItem.SetCountry(this._rankRowData.PlayerInfo.Country)), s.label = 4;
                            case 4:
                                return [2]
                        }
                    })
                })
            }, t.prototype.SetMagicCircleByItemId = function(e) {
                if (e) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(p.MagicCircleBase_Config, e);
                    if (t) {
                        var n, o, r = t.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(r, this.MagicCircleBottomNode, function(e) {
                            n = e, o && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, c.MagicCircleBottom), this.LoadAssetHelper.LoadPrefab(r, this.MagicCircleTopNode, function(e) {
                            (o = e) && n && (n.getComponent(sp.Skeleton).setAnimation(0, "standby2", !0), o.getComponent(sp.Skeleton).setAnimation(0, "standby", !0))
                        }, c.MagicCircleTop)
                    }
                }
            }, t.prototype.SetPetByItemId = function(e) {
                if (e) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(p.PetBase_Config, e);
                    if (t) {
                        var n = t.Model + "/HeroAvatar";
                        this.LoadAssetHelper.LoadPrefab(n, this.PetNode, function(e) {
                            e.getComponent(sp.Skeleton).setAnimation(0, k.SkillAnimationType.Standby, !0)
                        }, c.Pet)
                    }
                }
            }, t.prototype.LoadItemComponent = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return null != this._commonItemPrefab ? [3, 2] : [4, g.AssetsManager.Instance.LoadAsset(y.BundlePath.ItemComponent, cc.Prefab)];
                            case 1:
                                if (e = t.sent(), !this.isValid) return g.AssetsManager.Instance.UnloadAsset(e), [2];
                                this._commonItemPrefab = e, this._assets.push(e), t.label = 2;
                            case 2:
                                return null != this._commonItemPrefab && null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(f.ItemComponent), this._item.node.parent = this.ItemRoot), [2]
                        }
                    })
                })
            }, t.prototype.SetOrder = function() {
                if (null != this.RankNumber && (this.RankNumber.node.active = !1), null != this.OrderLabel)
                    if (this.OrderLabel.fontSize = 56, this.OrderLabel.node.active = !1, this._order >= 0) this._isChaosRankListItem && this._order < 4 ? (this.RankNumber.node.active = !0, this.RankNumber.spriteFrame = b.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + this._order)) : (this.OrderLabel.node.active = !0, this.OrderLabel.string = this._order.toString());
                    else {
                        this.OrderLabel.node.active = !0;
                        var e = S.DataCenter.Instance.GetActivityConfigsByActId(this._rankConfigId);
                        if (e) switch (e.Common.Type) {
                            case _.ActivityType.AllUserImpactRank:
                                return void(this.OrderLabel.string = "100+");
                            case _.ActivityType.SupportHero:
                                var t = e;
                                if (this._myRankData.Value >= t.CustomPart.WinValue) {
                                    var n = d.DataCenter.Instance.GetDataById(C.UserActivity_Model, e._id);
                                    if (n && this._data.ExtraData && this._data.ExtraData.SupportTeam == n.IntArray[0]) return void(this.OrderLabel.string = t.CustomPart.RankCount + "+")
                                }
                        }
                        this.OrderLabel.string = "rank_out_max_rank".ToUILocale(), this.OrderLabel.fontSize = 46
                    }
            }, t.prototype.SetPlayerName = function() {
                if (null != this._rankConfig && (this._rankConfig.Type == B.RankTopType.ZoneDevelop || this._rankConfig.Type == B.RankTopType.CrossServerDevelop && this._rankConfigId != _.RankTypeId.HeroPower && this._rankConfigId != _.RankTypeId.CrossZoneHeroPower) ? (this._isChaosRankListItem || this._order >= n.IRON_ORDER || this._isMyRank, null != this.UserIcon && (this.UserIcon.active = !0)) : (this._isChaosRankListItem || this._order >= n.IRON_ORDER || this._isMyRank, null != this.UserIcon && (this.UserIcon.active = !1)), this._isMyRank) {
                    var e = S.DataCenter.Instance.GetStringData(_.UserDataKey.RoleName);
                    this.PlayerName.string = e;
                    var t = S.DataCenter.Instance.GetSimpleData(_.UserDataKey.Designation);
                    t && this.SetUserTitleIcon(t.V)
                } else null != this._rankRowData ? null != this._rankConfig && this._rankConfig.Type > 100 ? (this.PlayerName.string = "" + this._rankRowData.PlayerInfo.Name, (this._rankConfig.Type == B.RankTopType.CrossServerDevelop || this._rankConfigId == _.RankTypeId.CrossZoneHeroPower) && this._order < n.IRON_ORDER && (this.PlayerName.string = "[S" + this._rankRowData.Zone + "]" + this._rankRowData.PlayerInfo.Name)) : this._rankConfigId != _.RankTypeId.ZoneAlliance && this._rankConfigId != _.RankTypeId.CrossZoneAlliance && this._rankConfigId != _.RankTypeId.WarAllianceHolyScore && this._rankConfigId != _.RankTypeId.WarAllianceScore && this._rankConfigId != _.RankTypeId.WarCityScore && this._rankConfigId != _.RankTypeId.WarSeasonScore ? this.PlayerName.string = this._rankRowData.PlayerInfo.Name : this._rankRowData.AllianceInfo ? this.PlayerName.string = this._rankRowData.AllianceInfo.Name : this._rankRowData.PlayerInfo && (this.PlayerName.string = this._rankRowData.PlayerInfo.Name) : (this.PlayerName.string = "rank_no_people".ToUILocale(), null != this.UserIcon && (this.UserIcon.active = !1)), this._rankRowData && this.SetUserTitleIcon(this._rankRowData.PlayerInfo.Designation)
            }, t.prototype.SetHeroName = function() {
                if (null != this.HeroName)
                    if (null == this._rankConfig || this._rankConfig.Type != B.RankTopType.ZoneDevelop && this._rankConfig.Type != B.RankTopType.CrossServerDevelop && this._rankConfigId != _.RankTypeId.HeroPower && this._rankConfigId != _.RankTypeId.CrossZoneHeroPower) this.HeroName.node.active = !1;
                    else if (this._isMyRank) this.HeroName.node.color = n.DARK_BROWN, this.HeroName.node.active = !0, null != this._myRankData.HeroInfo ? this.HeroName.string = this._myRankData.HeroInfo.HeroId.ToHeroName() : this.HeroName.string = "rank_no_element_hero".ToUILocale();
                else if (null != this._rankRowData) {
                    this.HeroName.string = this._rankRowData.HeroInfo.HeroId.ToHeroName();
                    var e = h.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, this._rankRowData.HeroInfo.HeroId);
                    this._order < n.IRON_ORDER ? this.HeroName.node.color = b.UIUtlity.GetLabelColorByQuality(Math.min(e.StarLevel, b.UIUtlity.Max_Quality_Level)) : this.HeroName.node.color = n.DARK_BROWN, this.HeroName.node.active = !0
                } else this.HeroName.node.active = !1
            }, t.prototype.SetActivityContent = function() {
                this.RankContentNode.active = !1, this.BattlePowerNode.active = !1, this.HappyTurnNode.active = !1, this.ZoneNode.active = !1, this.CrossServerRankNode.active = !1, this.PersonalityNode.active = !1, this.ChampionShipNode.active = !1;
                var e = S.DataCenter.Instance.GetActivityConfigsByActId(this._rankConfigId),
                    t = 0;
                if (e) switch (t = e.Common.Type) {
                    case _.ActivityType.HappyTurn:
                        var n = d.DataCenter.Instance.ActivityConfigs[this._rankConfigId];
                        if (this._rankRowData) {
                            this.HappyTurnNode.active = !0, this.HappyTurnTimeDesc.node.active = !0, this.HappyTurnTime.node.active = !0, this.PersonalityTimesLabel.node.active = !1, this.PersonalityTimesValue.node.active = !1;
                            var o = Math.floor(Math.abs(this._rankRowData.Value) / 1e3);
                            o = o > n.CustomPart.Time ? n.CustomPart.Time : o;
                            var r = v.default.ActivityTimeLeftFormat(Math.abs(this._rankRowData.Value)).split(":"),
                                i = o >= n.CustomPart.Time ? "00" : (Math.abs(this._rankRowData.Value) / 1e3).toFixed(2).split(".")[1],
                                a = r[1] + ":" + r[2] + "." + i;
                            this.HappyTurnTimeDesc.string = "happyTurn_full_time".ToUILocale(), this.HappyTurnTime.string = a
                        }
                        break;
                    case _.ActivityType.PersonalitySummon:
                        this.HeroName.node.active = !0, "NameLayout" == this.PlayerName.node.parent.parent.name ? this.PlayerName.node.parent.parent.active = !1 : (this.PlayerNameModule.active = !1, this.PlayerNameNode.active = !1), this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "personalityCall_drawTimes".ToUILocale(), this._rankRowData ? (this.PersonalityTimesValue.string = this._rankRowData.Value.toString(), this.HeroName.string = this._rankRowData.PlayerInfo.Name) : this._isMyRank ? (this.HeroName.string = S.DataCenter.Instance.GetStringData(_.UserDataKey.RoleName), this._myRankData ? this.PersonalityTimesValue.string = this._myRankData.Value.toString() : this.PersonalityTimesValue.string = "rank_out_max_rank".ToUILocale()) : this.HeroName.string = "rank_no_people".ToUILocale(), this.PersonalityNode.active = !0;
                        break;
                    case _.ActivityType.ElementTest:
                        this._rankRowData ? (this.PersonalityNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "elementTrial_progress".ToUILocale(), this.PersonalityTimesValue.string = "climbTower_entrance_layer".ToUILocale().Fmt(this._rankRowData.Value)) : this._isMyRank && this._myRankData && (this.PersonalityNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "elementTrial_progress".ToUILocale(), this.PersonalityTimesValue.string = "climbTower_entrance_layer".ToUILocale().Fmt(this._myRankData.Value));
                        break;
                    case _.ActivityType.HeroDungeon:
                        if (this._rankRowData) {
                            if (this._rankRowData.Value >= 100) {
                                this.HappyTurnNode.active = !0, this.PersonalityNode.active = !0;
                                var s = Math.floor(this._rankRowData.Value / 100),
                                    l = _.SpecialDataKey.ActHeroDungeonRank - this._rankRowData.Value % 100;
                                this.PersonalityTimesLabel.string = "heroDungeon_round_desc".ToUILocale(), this.PersonalityTimesValue.string = "heroDungeon_round".ToUILocale().Fmt(l), this.HappyTurnTimeDesc.string = "elementTrial_progress".ToUILocale(), this.HappyTurnTime.string = "climbTower_entrance_layer".ToUILocale().Fmt(s)
                            }
                        } else this._isMyRank && this._myRankData && this._myRankData.Value >= 100 && (this.HappyTurnNode.active = !0, this.PersonalityNode.active = !0, s = Math.floor(this._myRankData.Value / 100), l = _.SpecialDataKey.ActHeroDungeonRank - this._myRankData.Value % 100, this.PersonalityTimesLabel.string = "heroDungeon_round_desc".ToUILocale(), this.PersonalityTimesValue.string = "heroDungeon_round".ToUILocale().Fmt(l), this.HappyTurnTimeDesc.string = "elementTrial_progress".ToUILocale(), this.HappyTurnTime.string = "climbTower_entrance_layer".ToUILocale().Fmt(s));
                        break;
                    case _.ActivityType.Ingenuity:
                        this._rankRowData && (this.HappyTurnNode.active = !0, this.HappyTurnTimeDesc.node.active = !0, this.HappyTurnTime.node.active = !0, this.PersonalityTimesLabel.node.active = !1, this.PersonalityTimesValue.node.active = !1, r = v.default.ActivityTimeLeftFormat(Math.abs(this._rankRowData.Value)).split(":"), i = (Math.abs(this._rankRowData.Value) / 1e3).toFixed(2).split(".")[1], a = r[1] + ":" + r[2] + "." + i, this.HappyTurnTimeDesc.string = "ingenuity_cost_time".ToUILocale(), this.HappyTurnTime.string = a);
                        break;
                    case _.ActivityType.WorldBoss:
                        break;
                    case _.ActivityType.ChaosSummon:
                        this.HeroName.node.active = !1, this.PlayerNameModule.active = !0, this.PlayerNameNode.active = !0, this.PersonalityNode.active = !0, this.HappyTurnNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "ChaosSummon_RankScore".ToUILocale(), this._isMyRank ? (this.PlayerName.string = this._myRankData.PlayerInfo.Name, this.PersonalityTimesValue.string = this._myRankData.Value.toString(), this.HappyTurnTimeDesc.string = "serverSelect_zone".ToUILocale(), this.HappyTurnTime.string = "[S" + this._myRankData.Zone + "]") : this._rankRowData ? (this.PlayerName.string = this._rankRowData.PlayerInfo.Name, this.PersonalityTimesValue.string = this._rankRowData.Value.toString(), this.HappyTurnTimeDesc.string = "serverSelect_zone".ToUILocale(), this.HappyTurnTime.string = "[S" + this._rankRowData.Zone + "]") : (this.HappyTurnTimeDesc.string = "serverSelect_zone".ToUILocale(), this.PersonalityTimesValue.string = "0");
                        break;
                    case _.ActivityType.ActivityBoss:
                    case _.ActivityType.NinjaMiniGame:
                        this.HeroName.node.active = !1, this.PlayerNameModule.active = !0, this.PlayerNameNode.active = !0, this.PersonalityNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "ChaosSummon_RankScore".ToUILocale(), this._isMyRank ? (this.PlayerName.string = this._myRankData.PlayerInfo.Name, this.PersonalityTimesValue.string = this._myRankData.Value.toString()) : this._rankRowData ? (this.PlayerName.string = this._rankRowData.PlayerInfo.Name, this.PersonalityTimesValue.string = this._rankRowData.Value.toString()) : this.PersonalityTimesValue.string = "0";
                        break;
                    case _.ActivityType.SupportHero:
                        this.SupportValueNode.active = !0, null != this.SupportTagLabel && (this.SupportTagLabel.string = "campSupport_personalValue".ToUILocale(), this.SupportTagLabel.node.active = this.Style != u.CampSupport), this._isMyRank ? this.SupportValueLabel.string = this._myRankData.Value.FmtCurrency() : this._rankRowData ? this.SupportValueLabel.string = this._rankRowData.Value.FmtCurrency() : this.SupportValueNode.active = !1;
                        break;
                    case _.ActivityType.PickFood:
                        this._rankRowData ? (this.HappyTurnNode.active = !0, this.HappyTurnTimeDesc.node.active = !0, this.HappyTurnTime.node.active = !0, this.PersonalityTimesLabel.node.active = !1, this.PersonalityTimesValue.node.active = !1, this.HappyTurnTimeDesc.string = "PickFood_personalValue".ToUILocale(), this._isMyRank ? this.HappyTurnTime.string = "" + this._myRankData.Value : this.HappyTurnTime.string = "" + this._rankRowData.Value) : this._isMyRank && this._myRankData && (this.HappyTurnNode.active = !0, this.HappyTurnTimeDesc.node.active = !0, this.HappyTurnTime.node.active = !0, this.PersonalityTimesLabel.node.active = !1, this.PersonalityTimesValue.node.active = !1, this.HappyTurnTimeDesc.string = "PickFood_personalValue".ToUILocale(), this.HappyTurnTime.string = "" + this._myRankData.Value);
                        break;
                    case _.ActivityType.KnifeTraining:
                    case _.ActivityType.Champion:
                    case _.ActivityType.LimitTimeImpactRank:
                    case _.ActivityType.Rocket:
                    case _.ActivityType.Game2048:
                        this.HappyTurnNode.active = !0, this.HappyTurnTimeDesc.node.active = !0, this.HappyTurnTime.node.active = !0, this.PersonalityTimesLabel.node.active = !1, this.PersonalityTimesValue.node.active = !1, this.HappyTurnTimeDesc.string = "activityBoss_score".ToUILocale(), this._isMyRank ? this.HappyTurnTime.string = "" + this._myRankData.Value : this._rankRowData && (this.HappyTurnTime.string = "" + this._rankRowData.Value), t == _.ActivityType.LimitTimeImpactRank && (this.HappyTurnNode.x = -30);
                        break;
                    case _.ActivityType.BossHunt:
                        this.HappyTurnNode.active = !0, this.HappyTurnTimeDesc.node.active = !0, this.HappyTurnTime.node.active = !0, this.PersonalityTimesLabel.node.active = !1, this.PersonalityTimesValue.node.active = !1, this.HappyTurnTimeDesc.string = "tradeWar_donate".ToUILocale(), this._isMyRank && this._myRankData ? this.HappyTurnTime.string = "" + this._myRankData.Value : this._rankRowData ? this.HappyTurnTime.string = "" + this._rankRowData.Value : this.HappyTurnTime.string = "0";
                        break;
                    case _.ActivityType.HeroTestTower:
                        if (this.TwoLabelNode2.active = !0, this.TwoLabelNode1.active = !0, this.TwoLabelNode2Label.string = "ActivityHeroTestTower_Rank_Time_Tag".ToUILocale(), this.TwoLabelNode1Label.string = "ActivityHeroTestTower_Rank_Count_Tag".ToUILocale(), this._isMyRank) 0 == (c = Math.floor(this._myRankData.Value / k.SpecialDataKey.ActHeroTestTowerTime)) ? this.TwoLabelNode1Label.string = "elementTrial_noGet".ToUILocale() : this.TwoLabelNode1Value.string = "level".ToUILocale().Fmt(c), this._myRankData.Value > 0 ? (a = k.SpecialDataKey.ActHeroTestTowerTime - this._myRankData.Value % k.SpecialDataKey.ActHeroTestTowerTime, this.TwoLabelNode2Value.string = v.default.TimeFormat(1e3 * a)) : (this.TwoLabelNode2.active = !1, this.TwoLabelNode2Value.string = "");
                        else if (this._rankRowData) {
                            var c = Math.floor(this._rankRowData.Value / k.SpecialDataKey.ActHeroTestTowerTime);
                            this.TwoLabelNode1Value.string = "level".ToUILocale().Fmt(c), this._rankRowData.Value > 0 ? (a = k.SpecialDataKey.ActHeroTestTowerTime - this._rankRowData.Value % k.SpecialDataKey.ActHeroTestTowerTime, this.TwoLabelNode2Value.string = v.default.TimeFormat(1e3 * a)) : this.TwoLabelNode2Value.string = ""
                        } else this.TwoLabelNode1.active = !1, this.TwoLabelNode2.active = !1;
                        break;
                    case _.ActivityType.RunningTrain:
                        this.HappyTurnNode.active = !0, this.HappyTurnTimeDesc.node.active = !0, this.HappyTurnTime.node.active = !0, this.PersonalityTimesLabel.node.active = !1, this.PersonalityTimesValue.node.active = !1;
                        var h = d.DataCenter.Instance.ActivityConfigs[e._id];
                        this.HappyTurnTimeDesc.string = 1 == h.CustomPart.Type ? "RunningTrain_AddDistance_Tag".ToUILocale() : "RunningTrain_AddDistance_Tag_Sword".ToUILocale();
                        var f = 1 == h.CustomPart.Type ? "RunningTrain_Distance".ToUILocale() : "RunningTrain_Distance_Sword".ToUILocale();
                        this._isMyRank ? this.HappyTurnTime.string = this._myRankData.Value + f : this._rankRowData && (this.HappyTurnTime.string = this._rankRowData.Value + f);
                        break;
                    case _.ActivityType.HeroPK:
                        this.CrossServerRankNode.active = !0, this.CrossServerRankTag.node.active = !1, this.CrossServerRankImage.node.active = !0, this._isMyRank ? null != this._myValue ? this.CrossServerRankValue.string = this._myValue.toString() : this.CrossServerRankNode.active = !1 : this._rankRowData ? this.CrossServerRankValue.string = this._rankRowData.Value.toString() : this.CrossServerRankNode.active = !1;
                        break;
                    case _.ActivityType.Championship:
                        this._isMyRank ? null != this._myValue && (this.ChampionShipNode.active = !0, this.ChampionShipCup.node.active = this._myValue > 0, this.ChampionShipValue.string = Math.abs(this._myValue).toString(), this.SetChampionAssets(e, this._myValue)) : this._rankRowData && (this.ChampionShipNode.active = !0, this.ChampionShipCup.node.active = this._rankRowData.Value > 0, this.ChampionShipValue.string = Math.abs(this._rankRowData.Value).toString(), this.SetChampionAssets(e, this._rankRowData.Value));
                        break;
                    case _.ActivityType.TradeWar:
                        this._rankRowData ? (this.PersonalityNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "tradeWar_donate".ToUILocale(), this.PersonalityTimesValue.string = this._rankRowData.Value.toString()) : this._isMyRank && this._myRankData && (this.PersonalityNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "tradeWar_donate".ToUILocale(), this.PersonalityTimesValue.string = this._myRankData.Value.toString());
                        break;
                    case _.ActivityType.FantasticPasture:
                        this._rankRowData ? (this.PersonalityNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "FantasticPasture_score".ToUILocale(), this.PersonalityTimesValue.string = this._rankRowData.Value.toString()) : this._isMyRank && this._myRankData && (this.PersonalityNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "FantasticPasture_score".ToUILocale(), this.PersonalityTimesValue.string = this._myRankData.Value.toString());
                        break;
                    case _.ActivityType.RuinsWar:
                        if (this._isAllianceRank) {
                            if (this.AllianceInfoNode.active = !0, this._isMyRank) this._myRankData && (this.PersonalityNode.active = !0, this.AllianceLeaderName.string = this._myRankData.PlayerInfo && this._myRankData.PlayerInfo.Name, y = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._myRankData.AllianceInfo.Level), this.AllianceMemberCount.string = this._myRankData.AllianceInfo.MemberCount + "/" + y.MemberCount, this.PersonalityTimesLabel.string = "activityBoss_score".ToUILocale(), this.PersonalityTimesValue.string = this._myRankData.Value.toString());
                            else if (this._rankRowData) {
                                this.PersonalityNode.active = !0, this.AllianceLeaderName.string = this._rankRowData.PlayerInfo && this._rankRowData.PlayerInfo.Name;
                                var y = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._rankRowData.AllianceInfo.Level);
                                this.AllianceMemberCount.string = this._rankRowData.AllianceInfo.MemberCount + "/" + y.MemberCount, this.PersonalityTimesLabel.string = "activityBoss_score".ToUILocale(), this.PersonalityTimesValue.string = this._rankRowData.Value.toString()
                            }
                        } else this._isMyRank && this._myRankData ? (this.PersonalityNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "activityBoss_score".ToUILocale(), this.PersonalityTimesValue.string = this._myRankData.Value.toString()) : this._rankRowData && (this.PersonalityNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "activityBoss_score".ToUILocale(), this.PersonalityTimesValue.string = this._rankRowData.Value.toString());
                        break;
                    case _.ActivityType.AllianceMaze:
                        this._isMyRank && this._myRankData ? (this.ZoneNode.active = !0, this._isAllianceRank && (y = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._myRankData.AllianceInfo.Level), this.AllianceMemberCount.string = this._myRankData.AllianceInfo.MemberCount + "/" + y.MemberCount), this.ZoneValue.string = "tradeWar_donate".ToUILocale() + ":" + this._myRankData.Value.toString()) : this._rankRowData && (this.ZoneNode.active = !0, this._isAllianceRank && (y = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._rankRowData.AllianceInfo.Level), this.AllianceMemberCount.string = this._rankRowData.AllianceInfo.MemberCount + "/" + y.MemberCount), this.ZoneValue.string = "tradeWar_donate".ToUILocale() + ":" + this._rankRowData.Value.toString());
                        break;
                    default:
                        this._isMyRank ? (this.BattlePowerNode.active = !0, this.CrossSwordIcon.active = !0, this.PowerLabel.string = this._myValue.toString()) : null != this._rankRowData ? (this.BattlePowerNode.active = !0, this.CrossSwordIcon.active = !0, this.PowerLabel.string = this._rankRowData.Value.toString()) : this.BattlePowerNode.active = !1
                }
            }, t.prototype.SetChampionAssets = function(e, t) {
                return a(this, void 0, void 0, function() {
                    var n, o, r, i, a, l;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return n = t < 0 ? Math.abs(t) : 0, o = t > 0 ? t : 0, r = U.default.GetCurGroupGradeId(n, o, e), i = G.default.GetGroupIdToStage2Map(e), a = i[r].Stage, [4, m.AssetsManager.Instance.LoadAsset("GlobalChampionShipPanel/PNG/GlobalChampionShip", cc.SpriteAtlas)];
                            case 1:
                                return l = s.sent(), this.isValid ? (this._assets.push(l), this.ChampionShipCup.spriteFrame = l.getSpriteFrame("cup"), this.ChampionShipGrade.spriteFrame = l.getSpriteFrame("cup" + a), [2]) : (m.AssetsManager.Instance.UnloadAsset(l), [2])
                        }
                    })
                })
            }, t.prototype.SetRankContent = function() {
                var e = this;
                switch (this.RankContentNode.active = !1, this.BattlePowerNode.active = !1, this.HappyTurnNode.active = !1, this.ZoneNode.active = !1, this.CrossServerRankNode.active = !1, null != this.BtnBeLike && (this.BtnBeLike.node.active = !1), null != this.BtnBeLikeDisable && (this.BtnBeLikeDisable.node.active = !1), this.PowerLabel.horizontalAlign = cc.Label.HorizontalAlign.CENTER, this._rankConfigId) {
                    case _.RankTypeId.MainLineProgress:
                        this.IntegalIcon.active = !1, this._isMyRank ? this.SetLevelName() : null != this._rankRowData && this.SetLevelName();
                        break;
                    case _.RankTypeId.TestTowerProgress:
                    case _.RankTypeId.Tower_Heart:
                    case _.RankTypeId.Tower_Power:
                    case _.RankTypeId.Tower_Tech:
                    case _.RankTypeId.Tower_Break:
                    case _.RankTypeId.Tower_Fight:
                    case _.RankTypeId.CrossZoneAngelPve:
                    case _.RankTypeId.TestTowerHardProgress:
                        this.IntegalIcon.active = !1, this._isMyRank ? this.SetTowerLayerName() : null != this._rankRowData && this.SetTowerLayerName();
                        break;
                    case _.RankTypeId.ZoneArena:
                    case _.RankTypeId.CrossArena:
                        this.ArenaNode.active = !0, this.ZoneNode.active = !0, this._isMyRank ? null != this._rankRowData ? (this.ZoneValue.string = "[S" + this._myRankData.Zone + "]", this.ArenaValue.string = "" + this._myRankData.Value, null != this.BtnBeLike && (this.BtnBeLike.node.active = !0, this.SetBeLikeBtn(this._rankRowData))) : this.ArenaValue.string = "" + this._myValue : null != this._rankRowData && (this.ZoneValue.string = "[S" + this._rankRowData.Zone + "]", this.ArenaValue.string = "" + this._rankRowData.Value, null != this.BtnBeLike && (this.BtnBeLike.node.active = !0, this.SetBeLikeBtn(this._rankRowData)));
                        break;
                    case _.RankTypeId.Hero_Heart:
                    case _.RankTypeId.Hero_Power:
                    case _.RankTypeId.Hero_Tech:
                    case _.RankTypeId.Hero_Break:
                    case _.RankTypeId.Hero_Fight:
                    case _.RankTypeId.HeroPower:
                        this.BattlePowerNode.active = !1, this._isMyRank ? null != this._myRankData && (this.PowerLabel.string = this._myValue.toString(), this.CrossSwordIcon.active = !0, this.BattlePowerNode.active = !0) : null != this._rankRowData && (this.BattlePowerNode.active = !0, this.CrossSwordIcon.active = !0, this.PowerLabel.string = this._rankRowData.HeroInfo.Power.toString());
                        break;
                    case _.RankTypeId.ZoneAlliance:
                    case _.RankTypeId.CrossZoneAlliance:
                        if (this.IntegalIcon.active = !1, this._isMyRank) null != this._rankRowData && (this.AllianceInfoNode.active = !0, this.BattlePowerNode.active = !0, this.AllianceLeaderName.string = this._rankRowData.AllianceInfo.LeaderName, t = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._rankRowData.AllianceInfo.Level), this.AllianceMemberCount.string = this._rankRowData.AllianceInfo.MemberCount + "/" + t.MemberCount, this.PowerLabel.string = this._rankRowData.AllianceInfo.Power.toString());
                        else if (null != this._rankRowData) {
                            this.AllianceInfoNode.active = !0, this.BattlePowerNode.active = !0, this.AllianceLeaderName.string = this._rankRowData.AllianceInfo.LeaderName;
                            var t = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._rankRowData.AllianceInfo.Level);
                            this.AllianceMemberCount.string = this._rankRowData.AllianceInfo.MemberCount + "/" + t.MemberCount, this.PowerLabel.string = this._rankRowData.AllianceInfo.Power.toString()
                        } else this.AllianceInfoNode.active = !1, this.BattlePowerNode.active = !1;
                        break;
                    case _.RankTypeId.AncientSacred:
                        if (this.IntegalIcon.active = !1, this._isMyRank) this.ZoneNode.active = !0, o = Math.floor(this._myRankData.Value / 100), r = this._myRankData.Value % 100, this.ZoneValue.string = "rank_difficuly_star".ToUILocale().Fmt(o, r);
                        else if (null != this._rankRowData) {
                            this.ZoneNode.active = !0;
                            var o = Math.floor(this._rankRowData.Value / 100),
                                r = this._rankRowData.Value % 100;
                            this.ZoneValue.string = "rank_difficuly_star".ToUILocale().Fmt(o, r)
                        }
                        break;
                    case _.RankTypeId.EndlessAbyss_Single:
                    case _.RankTypeId.EndlessAbyss_Multi:
                        if (this.IntegalIcon.active = !1, this._isMyRank) this.ZoneNode.active = !0, null != this._rankRowData ? (s = Math.floor(this._rankRowData.Value / 100), 0 == (a = this._rankRowData.Value % 100) && s > 0 ? null != (i = d.ConfigDataComponent.Instance.GetConfigById(p.MapEndlessAbyss_Config, s)) && (a = i.Monsters.length) : s += 1, this.ZoneValue.string = "rank_layer_complete".ToUILocale().Fmt(s, a)) : (s = void 0, a = void 0, 0 == this._myValue ? (s = 1, a = 0) : (s = Math.floor(this._myValue / 100), 0 == (a = this._myValue % 100) && s > 0 ? null != (i = d.ConfigDataComponent.Instance.GetConfigById(p.MapEndlessAbyss_Config, s)) && (a = i.Monsters.length) : s += 1), this.ZoneValue.string = "rank_layer_complete".ToUILocale().Fmt(s, a));
                        else if (null != this._rankRowData) {
                            this.ZoneNode.active = !0;
                            var i, a = this._rankRowData.Value % 100,
                                s = Math.floor(this._rankRowData.Value / 100);
                            0 == a && s > 0 ? null != (i = d.ConfigDataComponent.Instance.GetConfigById(p.MapEndlessAbyss_Config, s)) && (a = i.Monsters.length) : s += 1, this.ZoneValue.string = "rank_layer_complete".ToUILocale().Fmt(s, a)
                        }
                        break;
                    case _.RankTypeId.AllianceTest:
                        this.PersonalityNode.active = !0, this.PersonalityTimesLabel.string = "tag_damage".ToUILocale(), this._isMyRank ? (this.PersonalityNode.active = !0, this.PersonalityTimesValue.string = this._myValue.toString()) : null != this._rankRowData ? this.PersonalityTimesValue.string = this._rankRowData.Value.toString() : this.PersonalityNode.active = !1;
                        break;
                    case _.RankTypeId.CrossZoneArena:
                    case _.RankTypeId.CrossZonePower:
                        this.ZoneNode.active = !0, this.BattlePowerNode.active = !0, this._isMyRank ? (this.ZoneValue.string = "[S" + this._myRankData.Zone + "]", this.PowerLabel.string = this._myValue.toString()) : (this.ZoneValue.string = "[S" + this._rankRowData.Zone + "]", this.PowerLabel.string = this._rankRowData.Value.toString());
                        break;
                    case _.RankTypeId.CrossZoneRank:
                    case _.RankTypeId.CrossZoneContinueWarRank:
                    case _.RankTypeId.GodLandDuel:
                        this.ZoneNode.active = !0, this.CrossServerRankNode.active = !0, this.CrossServerRankTag.node.active = !1, this.CrossServerRankImage.node.active = !0, this._isMyRank ? null != this._myValue ? (this.ZoneValue.string = "[S" + this._myRankData.Zone + "]", this.CrossServerRankValue.string = this._myValue.toString()) : (this.ZoneNode.active = !1, this.CrossServerRankNode.active = !1) : this._rankRowData ? (this.ZoneValue.string = "[S" + this._rankRowData.Zone + "]", this.CrossServerRankValue.string = this._rankRowData.Value.toString()) : (this.ZoneNode.active = !1, this.CrossServerRankNode.active = !1);
                        break;
                    case _.RankTypeId.CrossZoneChampionRace:
                    case _.RankTypeId.AllZoneChampionRace:
                    case _.RankTypeId.ZoneChampionRace:
                        this.ZoneNode.active = !0, this.TwoLabelNode2.active = !0, this.CrossServerRankImage.node.active = !1, this.TwoLabelNode2Label.string = "RankDetailListItem_MatchWinCount".ToUILocale(), this._isMyRank ? null != this._myValue ? (this.ZoneValue.string = "[S" + this._myRankData.Zone + "]", this.TwoLabelNode2Value.string = this._myValue >= 0 ? this._myValue.toString() : "CrossServerRank_NotInRank".ToUILocale()) : (this.ZoneNode.active = !1, this.CrossServerRankNode.active = !1) : this._rankRowData ? (this.ZoneValue.string = "[S" + this._rankRowData.Zone + "]", this.TwoLabelNode2Value.string = this._rankRowData.Value >= 0 ? this._rankRowData.Value.toString() : "CrossServerRank_NotInRank".ToUILocale()) : (this.ZoneNode.active = !1, this.CrossServerRankNode.active = !1);
                        break;
                    case _.RankTypeId.ChaosSummon:
                        this.HeroName.node.active = !1, this.PlayerNameModule.active = !0, this.PlayerNameNode.active = !0, this.PersonalityNode.active = !0, this.HappyTurnNode.active = !0, this.PersonalityTimesLabel.node.active = !0, this.PersonalityTimesValue.node.active = !0, this.PersonalityTimesLabel.string = "ChaosSummon_RankScore".ToUILocale(), this._isMyRank ? (this.PlayerName.string = this._myRankData.PlayerInfo.Name, this.PersonalityTimesValue.string = this._myRankData.Value.toString(), this.HappyTurnTimeDesc.string = "serverSelect_zone".ToUILocale(), this.HappyTurnTime.string = "[S" + this._myRankData.Zone + "]") : this._rankRowData ? (this.PlayerName.string = this._rankRowData.PlayerInfo.Name, this.PersonalityTimesValue.string = this._rankRowData.Value.toString(), this.HappyTurnTimeDesc.string = "serverSelect_zone".ToUILocale(), this.HappyTurnTime.string = "[S" + this._rankRowData.Zone + "]") : (this.HappyTurnTimeDesc.string = "serverSelect_zone".ToUILocale(), this.PersonalityTimesValue.string = "0");
                        break;
                    case _.RankTypeId.CrossZoneAllianceChallenge:
                    case _.RankTypeId.CrossZoneAllianceChallengePrevious:
                        if (this.IntegalIcon.active = !1, this._isMyRank) null != this._rankRowData && (this.PersonalityNode.active = !0, this.TwoLabelNode1.active = !0, this.ZoneNode.active = !0, this.ZoneValue.string = "[S" + this._rankRowData.Zone + "]", this.TwoLabelNode1Label.string = "happyTurn_scoreNum".ToUILocale(), this.TwoLabelNode1Value.string = this._rankRowData.Value.toString(), this.PersonalityTimesLabel.string = "totalPower".ToUILocale(), this.PersonalityTimesValue.string = this._rankRowData.AllianceInfo.Power.toString(), t = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._rankRowData.AllianceInfo.Level), this.AllianceMemberCount.string = this._rankRowData.AllianceInfo.MemberCount + "/" + t.MemberCount);
                        else if (null != this._rankRowData) {
                            this.PersonalityNode.active = !0, this.TwoLabelNode1.active = !0, this.ZoneNode.active = !0, this.ZoneValue.string = "[S" + this._rankRowData.Zone + "]", this.TwoLabelNode1Label.string = "happyTurn_scoreNum".ToUILocale(), this.TwoLabelNode1Value.string = this._rankRowData.Value.toString(), this.PersonalityTimesLabel.string = "totalPower".ToUILocale(), this.PersonalityTimesValue.string = this._rankRowData.AllianceInfo.Power.toString();
                            t = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._rankRowData.AllianceInfo.Level);
                            this.AllianceMemberCount.string = this._rankRowData.AllianceInfo.MemberCount + "/" + t.MemberCount
                        } else this.ZoneNode.active = !1, this.TwoLabelNode1.active = !1;
                        break;
                    case _.RankTypeId.WarUserScore:
                        this.IntegalIcon.active = !1, this.PlayerNameModule.active = !0, this.PlayerNameNode.active = !0, this._isMyRank ? this._myRankData && (this.PersonalityNode.active = !0, this.PlayerName.string = this._myRankData.PlayerInfo.Name, this.PersonalityTimesLabel.string = "tag_damage".ToUILocale(), this.PersonalityTimesValue.string = this._myRankData.Value.FmtCurrency()) : this._rankRowData && (this.PersonalityNode.active = !0, this.PlayerName.string = this._rankRowData.PlayerInfo.Name, this.PersonalityTimesLabel.string = "tag_damage".ToUILocale(), this.PersonalityTimesValue.string = this._rankRowData.Value.FmtCurrency());
                        break;
                    case _.RankTypeId.WarAllianceScore:
                    case _.RankTypeId.WarAllianceHolyScore:
                    case _.RankTypeId.WarSeasonScore:
                        this.IntegalIcon.active = !1, this._isMyRank ? this._myRankData && (this.TwoLabelNode1.active = !0, this.TwoLabelNode2.active = !0, this.PersonalityNode.active = !0, this.TwoLabelNode1Label.string = this._myRankData.AllianceInfo.LeaderName, t = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._myRankData.AllianceInfo.Level), this.TwoLabelNode2Label.string = this._myRankData.AllianceInfo.MemberCount + "/" + t.MemberCount, this.PersonalityTimesLabel.string = "happyTurn_scoreNum".ToUILocale(), this.PersonalityTimesValue.string = this._myRankData.Value.toString()) : this._rankRowData && (this.TwoLabelNode1.active = !0, this.TwoLabelNode2.active = !0, this.PersonalityNode.active = !0, this.TwoLabelNode1Label.string = this._rankRowData.AllianceInfo.LeaderName, t = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._rankRowData.AllianceInfo.Level), this.TwoLabelNode1Value.string = this._rankRowData.AllianceInfo.MemberCount + "/" + t.MemberCount, this.PersonalityTimesLabel.string = "happyTurn_scoreNum".ToUILocale(), this.PersonalityTimesValue.string = this._rankRowData.Value.toString());
                        break;
                    case _.RankTypeId.WarCityScore:
                        this.IntegalIcon.active = !1, this._isMyRank, null != this._rankRowData && (this.TwoLabelNode1.active = !0, this.TwoLabelNode2.active = !0, this.PersonalityNode.active = !0, this.TwoLabelNode1Label.string = this._rankRowData.AllianceInfo.LeaderName, t = d.ConfigDataComponent.Instance.GetConfigById(p.AllianceLevel_Config, this._rankRowData.AllianceInfo.Level), this.TwoLabelNode2Label.string = this._rankRowData.AllianceInfo.MemberCount + "/" + t.MemberCount, this.PersonalityTimesLabel.string = "tag_damage".ToUILocale(), this.PersonalityTimesValue.string = this._rankRowData.Value.FmtCurrency());
                        break;
                    case _.RankTypeId.CrossZoneAlliancePersonal:
                        if (this.IntegalIcon.active = !1, this._isMyRank) null != this._rankRowData ? (this.TwoLabelNode1.active = !0, this.TwoLabelNode2.active = !0, r = this._rankRowData.Value % 10, l = Math.floor(this._rankRowData.Value / 10), this.TwoLabelNode1Label.string = "allianceWar_personl_rank_satr".ToUILocale(), this.TwoLabelNode1Value.string = r.toString(), this.TwoLabelNode2Label.string = "happyTurn_scoreNum".ToUILocale(), this.TwoLabelNode2Value.string = l.toString()) : (this.TwoLabelNode1.active = !1, this.TwoLabelNode2.active = !1);
                        else if (null != this._rankRowData) {
                            this.TwoLabelNode1.active = !0, this.TwoLabelNode2.active = !0;
                            r = this._rankRowData.Value % 10;
                            var l = Math.floor(this._rankRowData.Value / 10);
                            this.TwoLabelNode1Label.string = "allianceWar_personl_rank_satr".ToUILocale(), this.TwoLabelNode1Value.string = r.toString(), this.TwoLabelNode2Label.string = "happyTurn_scoreNum".ToUILocale(), this.TwoLabelNode2Value.string = l.toString()
                        } else this.ZoneNode.active = !1, this.TwoLabelNode1.active = !1, this.TwoLabelNode2.active = !1;
                        break;
                    case _.RankTypeId.CrossZoneAllianceSettlement:
                        this.IntegalIcon.active = !1, this._isMyRank ? null != this._rankRowData && (this.BattlePowerNode.active = !0, this.PowerLabel.string = Math.floor(this._rankRowData.Value / 10).toString()) : null != this._rankRowData ? (this.BattlePowerNode.active = !0, this.PowerLabel.string = Math.floor(this._rankRowData.Value / 10).toString()) : this.BattlePowerNode.active = !1;
                        break;
                    case _.RankTypeId.SeniorArena:
                        this.ArenaNode.active = !0, this._isMyRank ? null != this._rankRowData ? this.SetIntegralScore() : this.ArenaValue.string = "rank_arena_score".ToUILocale().Fmt(this._myValue) : null != this._rankRowData && this.SetIntegralScore();
                        break;
                    case _.RankTypeId.GemEquip:
                    case _.RankTypeId.HolyEquip:
                    case _.RankTypeId.Personality:
                    case _.RankTypeId.HolyStatue:
                    case _.RankTypeId.Favor:
                    case _.RankTypeId.Piece:
                    case _.RankTypeId.FighterSpirit:
                    case _.RankTypeId.ArtefactRelic:
                    case _.RankTypeId.PowerCore:
                    case _.RankTypeId.Pet:
                    case _.RankTypeId.Puzzle:
                        var c = function() {
                            e._rankConfigId == _.RankTypeId.GemEquip || e._rankConfigId == _.RankTypeId.HolyEquip || e._rankConfigId == _.RankTypeId.PowerCore || e._rankConfigId == _.RankTypeId.Pet ? e.PersonalityTimesLabel.string = "rank_score".ToUILocale() : e._rankConfigId == _.RankTypeId.Favor || e._rankConfigId == _.RankTypeId.HolyStatue || e._rankConfigId == _.RankTypeId.Piece ? e.PersonalityTimesLabel.string = "rank_total_level".ToUILocale() : e._rankConfigId == _.RankTypeId.Personality ? e.PersonalityTimesLabel.string = "rank_total_star_level".ToUILocale() : e._rankConfigId == _.RankTypeId.FighterSpirit ? e.PersonalityTimesLabel.string = "SoulRecord_graphValue".ToUILocale() : e._rankConfigId == _.RankTypeId.ArtefactRelic ? (e.PersonalityTimesLabel.string = "HolyRelic_RankDetial".ToUILocale(), e.PersonalityTimesLabel.node.color = n.YELLOW, e.PersonalityTimesValue.node.color = cc.Color.WHITE) : e._rankConfigId == _.RankTypeId.Puzzle && (e.PersonalityTimesLabel.string = "activityBoss_score".ToUILocale())
                        };
                        this._isMyRank ? (c(), this.PersonalityNode.active = !0, this._myRankData ? this.PersonalityTimesValue.string = this._myRankData.Value.toString() : this._rankRowData && (this.PersonalityTimesValue.string = this._rankRowData.Value.toString())) : null != this._rankRowData && (this.PersonalityNode.active = !0, this.PersonalityTimesValue.string = this._rankRowData.Value.toString(), c());
                        break;
                    case _.RankTypeId.CrossZoneGemEquip:
                    case _.RankTypeId.CrossZoneHolyEquip:
                    case _.RankTypeId.CrossZonePersonality:
                    case _.RankTypeId.CrossZoneFavor:
                    case _.RankTypeId.CrossZoneHolyStatue:
                    case _.RankTypeId.CrossZonePiece:
                    case _.RankTypeId.CrossZonePowerCore:
                    case _.RankTypeId.CrossZonePet:
                    case _.RankTypeId.CrossZonePuzzle:
                        this.ZoneNode.active = !0;
                        var u = function() {
                            e._rankConfigId == _.RankTypeId.CrossZoneGemEquip || e._rankConfigId == _.RankTypeId.CrossZoneHolyEquip || e._rankConfigId == _.RankTypeId.CrossZonePowerCore || e._rankConfigId == _.RankTypeId.CrossZonePet ? e.PersonalityTimesLabel.string = "rank_score".ToUILocale() : e._rankConfigId == _.RankTypeId.CrossZoneFavor || e._rankConfigId == _.RankTypeId.CrossZoneHolyStatue || e._rankConfigId == _.RankTypeId.CrossZonePiece ? e.PersonalityTimesLabel.string = "rank_total_level".ToUILocale() : e._rankConfigId == _.RankTypeId.CrossZonePersonality ? e.PersonalityTimesLabel.string = "rank_total_star_level".ToUILocale() : e._rankConfigId == _.RankTypeId.CrossZonePuzzle && (e.PersonalityTimesLabel.string = "activityBoss_score".ToUILocale())
                        };
                        this._isMyRank ? (u(), this.PersonalityNode.active = !0, this._myRankData ? (this.PersonalityTimesValue.string = this._myRankData.Value.toString(), this.ZoneValue.string = "[S" + this._myRankData.Zone + "]") : this._rankRowData && (this.PersonalityTimesValue.string = this._rankRowData.Value.toString(), this.ZoneValue.string = "[S" + this._rankRowData.Zone + "]")) : null != this._rankRowData && (this.PersonalityNode.active = !0, this.PersonalityTimesValue.string = this._rankRowData.Value.toString(), this.ZoneValue.string = "[S" + this._rankRowData.Zone + "]", u());
                        break;
                    case _.RankTypeId.CrossZoneHero_Heart:
                    case _.RankTypeId.CrossZoneHero_Power:
                    case _.RankTypeId.CrossZoneHero_Tech:
                    case _.RankTypeId.CrossZoneHero_Break:
                    case _.RankTypeId.CrossZoneHero_Fight:
                    case _.RankTypeId.CrossZoneHero_Chaos:
                    case _.RankTypeId.CrossZoneHeroPower:
                        this.ZoneNode.active = this._order >= n.IRON_ORDER, this.BattlePowerNode.active = !0, this._isMyRank ? (this.ZoneValue.string = "[S" + this._myRankData.Zone + "]", this.PowerLabel.string = this._myValue.toString()) : (this.ZoneValue.string = "[S" + this._rankRowData.Zone + "]", this.PowerLabel.string = this._rankRowData.Value.toString());
                        break;
                    case _.RankTypeId.SaintsWar1:
                        this.SetSaintsWarData(1);
                        break;
                    case _.RankTypeId.SaintsWar2:
                        this.SetSaintsWarData(2);
                        break;
                    case _.RankTypeId.SaintsWar3:
                        this.SetSaintsWarData(3);
                        break;
                    case _.RankTypeId.WorldBoss:
                        if (this._isMyRank) this.ZoneNode.active = !0, this.ZoneValue.string = "worldBoss_rankDesc".ToUILocale().Fmt(this._myValue.FmtCurrency());
                        else {
                            if (!this._rankRowData) return;
                            this.ZoneNode.active = !0, this.ZoneValue.string = "worldBoss_rankDesc".ToUILocale().Fmt(this._rankRowData.Value.FmtCurrency())
                        }
                        break;
                    case _.RankTypeId.RankMatch:
                        if (this.Top3TopLayout && (this._isMyRank ? (this.ZoneNode.active = !0, this.ZoneValue.string = S.DataCenter.Instance.Zones[S.DataCenter.Zone].Name) : this._rankRowData && (this.ZoneNode.active = !0, this.ZoneValue.string = S.DataCenter.Instance.Zones[this._rankRowData.Zone].Name)), this._order) {
                            var h = v.default.Instance.GetRankMatchConfigByRankNum(this._order);
                            h && (this.PlayerTitleNode.active = !0, this.LoadAssetHelper.LoadSpriteFrame(d.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + h), this.PlayerTitleIcon, null, 1))
                        }
                        break;
                    default:
                        this._isMyRank ? (this.BattlePowerNode.active = !0, this.CrossSwordIcon.active = !0, this.PowerLabel.string = this._myValue.toString()) : null != this._rankRowData ? (this.BattlePowerNode.active = !0, this.CrossSwordIcon.active = !0, this.PowerLabel.string = this._rankRowData.Value.toString()) : this.BattlePowerNode.active = !1
                }
                if (this.PowerLabel) {
                    var f = this.PowerLabel.string.length > 9 ? .8 : 1;
                    this.PowerLabel.node.scale = f
                }
            }, t.prototype.SetRankContentStr = function(e) {
                this.RankContent.Init("<outline color=#202434 width=3>" + e + "</outline>")
            }, t.prototype.SetSaintsWarData = function(e) {
                var t = cc.find("LeftLabel", this.TwoLabelsNode).getComponent(cc.Label),
                    n = cc.find("RightLabel", this.TwoLabelsNode).getComponent(cc.Label),
                    o = 0,
                    r = 0;
                if (this._isMyRank ? (this.TwoLabelsNode.active = !0, r = this._myRankData.Value % 100, o = Math.floor(this._myRankData.Value / 100)) : this._rankRowData ? (this.TwoLabelsNode.active = !0, r = this._rankRowData.Value % 100, o = Math.floor(this._rankRowData.Value / 100)) : this.TwoLabelsNode.active = !1, r = r || 1, (o = o || 1) && r) {
                    var i = h.ConfigDataComponent.Instance.GetConfigById(p.SaintsWarDifficultLevel_Config, o).MapIds[e - 1].Items[r - 1];
                    n.string = i.ToMapName(), t.string = o.ToSaintsWarDifficultName()
                }
            }, t.prototype.SetBeLikeBtn = function(e) {
                this._beLikeCount = e.BeLikeCount, this._isLike && this._beLikeCount++, this.BeLikeCountNormal.string = this._beLikeCount.toString(), this.BeLikeCountDisable.string = this._beLikeCount.toString();
                var t = S.DataCenter.Instance.GetDataById(C.UserRankLike_Model, this._rankConfigId),
                    n = 0;
                null == this._rankConfig && (this._rankConfig = h.ConfigDataComponent.Instance.GetConfigById(p.RankType_Config, this._rankConfigId), n = this._rankConfig ? this._rankConfig.DailyLikeCount : 0), null != t && (t.LikeUids.includes(this._rankRowData.PlayerInfo.Uid) || t.LikeUids.length >= n) ? (this.BtnBeLike.node.active = !1, this.BtnBeLikeDisable.node.active = !0) : (this.BtnBeLike.node.active = !0, this.BtnBeLikeDisable.node.active = !1)
            }, t.prototype.GetAncientBattleStarCount = function(e) {
                for (var t = 0, n = 0, o = e.Maps; n < o.length; n++)
                    for (var r = o[n]; r > 0;) t += 1 & r, r >>= 1;
                return t
            }, t.prototype.SetLevelName = function() {
                var e;
                e = this._isMyRank ? this._myValue : this._rankRowData.Value;
                var t = R.ConfigCacheComponent.Instance.GetChapterIdByMapId(e);
                if (this.ZoneNode.active = !0, t) {
                    var n = R.ConfigCacheComponent.Instance.GetAreaIdByChapterId(t),
                        o = h.ConfigDataComponent.Instance.GetLocale("MapWorld_name_" + n),
                        r = R.ConfigCacheComponent.Instance.GetLevelIndexByMapId(e);
                    this.ZoneValue.string = o + " " + t + "-" + r
                } else {
                    var i = h.ConfigDataComponent.Instance.GetConfigById(p.MapAdventure_Config, e);
                    i && !i.NextId && (this.ZoneValue.string = "mainline_pass".ToUILocale())
                }
            }, t.prototype.OnNodeClick = function() {
                var e = this;
                this._tween && (this._tween.stop(), this.node.scale = this._scale), this._tween = cc.tween(this.node).to(.12, {
                    scale: this._scale * this.Zoom
                }).to(.1, {
                    scale: this._scale
                }).call(function() {
                    var t = S.DataCenter.Instance.Uid;
                    if (null != e._rankRowData) {
                        var n = [],
                            o = null,
                            r = !0;
                        switch (e._rankConfigId) {
                            case _.RankTypeId.CrossZoneRank:
                                n = [O.FormationIdType.CrossZoneRankAttack1, O.FormationIdType.CrossZoneRankAttack2, O.FormationIdType.CrossZoneRankAttack3];
                                break;
                            case _.RankTypeId.CrossZoneAlliancePersonal:
                                n = [O.FormationIdType.AllianceChallengeAttack1];
                                break;
                            case _.RankTypeId.ZoneArena:
                                n = [O.FormationIdType.ArenaAttack];
                                break;
                            case _.RankTypeId.SeniorArena:
                                n = [O.FormationIdType.SeniorArenaAttack1, O.FormationIdType.SeniorArenaAttack2, O.FormationIdType.SeniorArenaAttack3];
                                break;
                            case _.RankTypeId.CrossZoneArena:
                                n = [O.FormationIdType.LadderRaceDefense];
                                break;
                            case _.RankTypeId.CrossZoneContinueWarRank:
                                if (e._rankRowData)
                                    for (var i = M.default.GetGradeByScore(e._rankRowData.Value), a = 0; a < i.FormationNum; a++) n.push(M.default.formationTypes[a]);
                                break;
                            case _.RankTypeId.CrossZoneChampionRace:
                                n = [O.FormationIdType.ChampionShip1, O.FormationIdType.ChampionShip2, O.FormationIdType.ChampionShip3], o = [O.FormationIdType.SeniorArenaAttack1, O.FormationIdType.SeniorArenaAttack2, O.FormationIdType.SeniorArenaAttack3];
                                break;
                            case _.RankTypeId.AllZoneChampionRace:
                                n = [O.FormationIdType.AllZoneChampion1, O.FormationIdType.AllZoneChampion2, O.FormationIdType.AllZoneChampion3], o = [O.FormationIdType.SeniorArenaAttack1, O.FormationIdType.SeniorArenaAttack2, O.FormationIdType.SeniorArenaAttack3];
                                break;
                            case _.RankTypeId.CrossZoneAngelPve:
                                n = d.ConfigDataComponent.Instance.GetConfigById(p.MapType_Config, k.MapType.StarLightSecretLand).AttackerFormation;
                                break;
                            case _.RankTypeId.GodLandDuel:
                                n = d.ConfigDataComponent.Instance.GetConfigById(p.MapType_Config, k.MapType.GodLandDuel).AttackerFormation;
                                break;
                            default:
                                if (r = !1, e._isAllianceRank) {
                                    T.EZLog.Log("\u5c55\u793a\u516c\u4f1a\u8be6\u60c5");
                                    var s = S.DataCenter.Instance.AllianceId > 0;
                                    T.UIManager.Instance.ShowUIPanel(y.PanelConfig.AllianceDetailPanel.Path, e._rankRowData.AllianceInfo.Id, e, s, e._rankRowData.Zone)
                                } else e._rankRowData.PlayerInfo.Uid <= 0 ? b.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale()) : e._isMyRank || e._rankRowData.PlayerInfo.Uid == t || m.UIManager.Instance.ShowUIPanel(y.PanelConfig.PlayerInfoPanel.Path, e._rankRowData.PlayerInfo.Uid, e._rankRowData.Zone)
                        }
                        r && e.ShowCommonPvpPlayerInfoPanel(e._rankRowData, n, o)
                    }
                }).start()
            }, t.prototype.ShowCommonPvpPlayerInfoPanel = function(e, t, n) {
                var o = this;
                if (e && e.PlayerInfo && e.PlayerInfo.Uid > 0) {
                    if (this._isMyRank || this._rankRowData.PlayerInfo.Uid == S.DataCenter.Instance.Uid) return;
                    var r = new C.Req_Player_GetFormations;
                    r.Uid = e.PlayerInfo.Uid, r.Zone = e.Zone, r.FormationIds = t, d.RpcComponent.Instance.Call(r, function(t) {
                        var r = !0;
                        if (t.Formations.forEach(function(e) {
                                e.Heros.forEach(function(e) {
                                    0 != e.Sid && (r = !1)
                                })
                            }), r && n) o.ShowCommonPvpPlayerInfoPanel(e, n);
                        else {
                            var i = 0,
                                a = {};
                            o._rankConfigId == _.RankTypeId.CrossZoneAngelPve ? i = E.CommonPvpPlayerInfo.AngelPve : o._rankConfigId == _.RankTypeId.GodLandDuel && (i = E.CommonPvpPlayerInfo.AngelPvp), a.Type = i, m.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonPvpPlayerInfoPanel.Path, t.Info, t.Formations, o._order, a)
                        }
                    })
                } else b.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale())
            }, t.prototype.SetTowerLayerName = function() {
                var e;
                e = this._isMyRank ? this._myValue : this._rankRowData.Value, this.ZoneNode.active = !0, this.ZoneValue.string = e > 0 ? "stage_index".ToUILocale().Fmt(e) : "rank_tower_no_battle".ToUILocale()
            }, t.prototype.SetIntegralScore = function() {
                var e;
                e = this._rankRowData.Value, this.ArenaValue.string = "rank_arena_score".ToUILocale().Fmt(e)
            }, t.prototype.SetBgAndFlagWidth = function(e, t) {
                this.BgNode.width = e, this.FlagNode.width = t
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                this._assets.forEach(function(e) {
                    g.AssetsManager.Instance.UnloadAsset(e)
                })
            }, t.prototype.SetUserTitleIcon = function(e) {
                return a(this, void 0, void 0, function() {
                    var t, n, o;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return this.UserDesignation ? (t = v.default.Instance.IsGameModuleOpen(k.GameModuleType.Designation), n = v.default.Instance.IsGameModuleUnlock(k.GameModuleType.Designation)[0], t && n ? e ? [4, v.default.GetUserTitleIconById(e)] : (this.UserDesignation.node.active = !1, [2]) : [3, 2]) : [2];
                            case 1:
                                return (o = r.sent()) ? (this.UserDesignation.sizeMode = cc.Sprite.SizeMode.TRIMMED, this.UserDesignation.spriteFrame = o, this.UserDesignation.node.active = !0, [3, 3]) : (this.UserDesignation.node.active = !1, [2]);
                            case 2:
                                this.UserDesignation.node.active = !1, r.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, t.DARK_BROWN = new cc.Color(86, 51, 51), t.LIGHT_BROWN = new cc.Color(178, 136, 80), t.YELLOW = new cc.Color(254, 217, 74), t.IRON_ORDER = 4, i([j({
                type: cc.Enum(u),
                displayName: "\u6837\u5f0f"
            })], t.prototype, "Style", void 0), i([j(cc.Node)], t.prototype, "BgNode", void 0), i([j(cc.Node)], t.prototype, "FlagNode", void 0), i([j(cc.Node)], t.prototype, "HeadRoot", void 0), i([j(cc.Node)], t.prototype, "MagicCircleBottomNode", void 0), i([j(cc.Node)], t.prototype, "AvatarRoot", void 0), i([j(cc.Node)], t.prototype, "MagicCircleTopNode", void 0), i([j(cc.Node)], t.prototype, "PetNode", void 0), i([j(x.default)], t.prototype, "LoadAssetHelper", void 0), i([j(cc.Node)], t.prototype, "ItemRoot", void 0), i([j(cc.Label)], t.prototype, "OrderLabel", void 0), i([j(cc.Node)], t.prototype, "PlayerNameNode", void 0), i([j(cc.Label)], t.prototype, "PlayerName", void 0), i([j(cc.Node)], t.prototype, "UserIcon", void 0), i([j(cc.Label)], t.prototype, "HeroName", void 0), i([j(cc.Node)], t.prototype, "RankContentNode", void 0), i([j(I.CustomRichText)], t.prototype, "RankContent", void 0), i([j(cc.Node)], t.prototype, "BattlePowerNode", void 0), i([j(cc.Label)], t.prototype, "PowerLabel", void 0), i([j(cc.Node)], t.prototype, "IntegalIcon", void 0), i([j(cc.Button)], t.prototype, "BtnBeLike", void 0), i([j(cc.Button)], t.prototype, "BtnBeLikeDisable", void 0), i([j(cc.Label)], t.prototype, "BeLikeCountNormal", void 0), i([j(cc.Label)], t.prototype, "BeLikeCountDisable", void 0), i([j(cc.Sprite)], t.prototype, "AllianceFlag", void 0), i([j(cc.Sprite)], t.prototype, "AllianceLogo", void 0), i([j(cc.Node)], t.prototype, "AllianceInfoNode", void 0), i([j(cc.Label)], t.prototype, "AllianceLeaderName", void 0), i([j(cc.Label)], t.prototype, "AllianceMemberCount", void 0), i([j(cc.Label)], t.prototype, "AllianceLevel", void 0), i([j(cc.Label)], t.prototype, "AllianceName", void 0), i([j(cc.Node)], t.prototype, "CrossSwordIcon", void 0), i([j(cc.Node)], t.prototype, "HappyTurnNode", void 0), i([j(cc.Label)], t.prototype, "HappyTurnTimeDesc", void 0), i([j(cc.Label)], t.prototype, "HappyTurnTime", void 0), i([j(cc.Node)], t.prototype, "PersonalityNode", void 0), i([j(cc.Label)], t.prototype, "PersonalityTimesLabel", void 0), i([j(cc.Label)], t.prototype, "PersonalityTimesValue", void 0), i([j(cc.Node)], t.prototype, "TwoLabelNode1", void 0), i([j(cc.Label)], t.prototype, "TwoLabelNode1Label", void 0), i([j(cc.Label)], t.prototype, "TwoLabelNode1Value", void 0), i([j(cc.Node)], t.prototype, "TwoLabelNode2", void 0), i([j(cc.Label)], t.prototype, "TwoLabelNode2Label", void 0), i([j(cc.Label)], t.prototype, "TwoLabelNode2Value", void 0), i([j(cc.Node)], t.prototype, "ZoneNode", void 0), i([j(cc.Label)], t.prototype, "ZoneValue", void 0), i([j(cc.Node)], t.prototype, "ArenaNode", void 0), i([j(cc.Label)], t.prototype, "ArenaValue", void 0), i([j(cc.Node)], t.prototype, "CrossServerRankNode", void 0), i([j(cc.Label)], t.prototype, "CrossServerRankTag", void 0), i([j(cc.Sprite)], t.prototype, "CrossServerRankImage", void 0), i([j(cc.Label)], t.prototype, "CrossServerRankValue", void 0), i([j(cc.Node)], t.prototype, "TwoLabelsNode", void 0), i([j(cc.Node)], t.prototype, "SupportValueNode", void 0), i([j(cc.Label)], t.prototype, "SupportTagLabel", void 0), i([j(cc.Label)], t.prototype, "SupportValueLabel", void 0), i([j(cc.Sprite)], t.prototype, "UserDesignation", void 0), i([j(cc.Node)], t.prototype, "PlayerNameModule", void 0), i([j(cc.Sprite)], t.prototype, "RankNumber", void 0), i([j(cc.Node)], t.prototype, "ChampionShipNode", void 0), i([j(cc.Sprite)], t.prototype, "ChampionShipGrade", void 0), i([j(cc.Sprite)], t.prototype, "ChampionShipCup", void 0), i([j(cc.Label)], t.prototype, "ChampionShipValue", void 0), i([j(cc.Node)], t.prototype, "SelfRankBg", void 0), i([j(cc.Node)], t.prototype, "NormalRankBg", void 0), i([j(cc.Node)], t.prototype, "PlayerTitleNode", void 0), i([j(cc.Sprite)], t.prototype, "PlayerTitleIcon", void 0), i([j(cc.Node)], t.prototype, "Top3TopLayout", void 0), i([j(cc.Node)], t.prototype, "Top3DownLayout", void 0), n = i([F], t)
        }(cc.Component);
        n.default = W, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/AngelPvpComponent": "AngelPvpComponent",
        "../Panel/CommonPvpPlayerInfoPanel": "CommonPvpPlayerInfoPanel",
        "../Panel/ContinuousFightPanel": "ContinuousFightPanel",
        "../Panel/CrossServerRankPanel": "CrossServerRankPanel",
        "../Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "../Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "./CustomRichText": "CustomRichText",
        "./HeadComponent": "HeadComponent",
        "./ItemComponent": "ItemComponent",
        "./LoadAssetHelper": "LoadAssetHelper",
        "./RankTypeListItem": "RankTypeListItem"
    }],
    RankDetailPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b656d3jGDNJdrfW1JN4EcCS", "RankDetailPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RankDetailPanelStyle = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../../Components/ConfigData/ConfigDataComponent"),
            h = e("../../../../Proto/Static/RpcProto"),
            f = e("../../Components/DataCenter"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../../ShareConsts/EnumType"),
            m = e("../Components/RankDetailComponent"),
            I = e("../../../Consts/Consts"),
            _ = e("../Components/CustomToggle"),
            C = e("../../Components/RpcComponent"),
            v = e("../Auxiliary/UIUtlity"),
            b = e("./CampSupportPanel"),
            S = e("../../RedDot/RedDotManager"),
            w = e("../../Auxiliary/DataUtlity"),
            P = e("../../../Consts/Consts"),
            A = cc._decorator,
            T = A.ccclass,
            R = A.property;
        (function(e) {
            e[e.Default = 0] = "Default", e[e.CampSupport = 1] = "CampSupport"
        })(l = n.RankDetailPanelStyle || (n.RankDetailPanelStyle = {}));
        var L = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Style = l.Default, t.Bg = null, t.Tittle = null, t.MiddleRoot = null, t.BtnReturn = null, t.BtnReward = null, t.RewardBtnLabel = null, t.TipBgNode = null, t.TipRichText = null, t.ToggleContainer = null, t.SupportValueRichText = null, t.ActivityTimeToLiveRichText = null, t.mainAtlas = null, t.RuleBtn = null, t.BottomBg1 = null, t.BottomBg2 = null, t.RANK_DETAIL_COMPONENT_PATH = "RankPanel/Private/RankDetailComponent", t.CAMP_SUPPORT_RANK_DETAIL_COMPONENT_PATH = "CampSupportPanel/Components/CampSupportRankDetailComponent", t._rank_detail_prefab = null, t._rank_detail_item = null, t._defaultTab = 0, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.Style == l.Default ? this.RANK_DETAIL_COMPONENT_PATH : this.CAMP_SUPPORT_RANK_DETAIL_COMPONENT_PATH, cc.Prefab)];
                            case 1:
                                return t._rank_detail_prefab = n.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent(), this.SetBottomBg()
            }, t.prototype.SetStaticLocalText = function() {
                this.RewardBtnLabel.string = "reward".ToUILocale()
            }, t.prototype.SetClickEvent = function() {
                this.BtnReward.node.on("click", this.OnBtnRewardClick, this), this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.RuleBtn.node.on("click", this.OnRuleBtnClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._rankConfigId = t[0], this._rankRowDataList = t[1], this._rankAchieveList = t[2], null != t[3] && (this._myRank = t[3]), null != t[4] && (this._myRankData = t[4]), null != t[5] && (this._activityId = t[5], this._activityType = f.DataCenter.Instance.ActivityConfigs[this._activityId].Common.Type, t[6] && (this._defaultTab = t[6]), this._supportRankData = t[7])
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), this._activityId ? (t = this, [4, this.LoadDynamicAsset("CampSupportPanel/Components/CampToggleContainer")]) : [3, 6];
                            case 1:
                                switch (t._saintTogglePrefab = i.sent(), this.ConfigToggles(), this._activityType) {
                                    case g.ActivityType.ChaosSummon:
                                        return [3, 2]
                                }
                                return [3, 4];
                            case 2:
                                return n = this, [4, this.LoadDynamicAsset("CommonBg/PanelBg22", cc.SpriteFrame)];
                            case 3:
                                return n._bg = i.sent(), this.SetBg(), [3, 5];
                            case 4:
                                return [3, 5];
                            case 5:
                                return [3, 11];
                            case 6:
                                switch (this._rankConfigId) {
                                    case I.RankTypeId.SaintsWar1:
                                    case I.RankTypeId.SaintsWar2:
                                    case I.RankTypeId.SaintsWar3:
                                        return [3, 7];
                                    case I.RankTypeId.ChaosSummon:
                                        return [3, 9]
                                }
                                return [3, 11];
                            case 7:
                                return this._lastToggleType = 1, this._selectToggleType = 1, o = this, [4, this.LoadDynamicAsset("SaintsWarPanel/SaintsRankToggleContainer")];
                            case 8:
                                return o._saintTogglePrefab = i.sent(), this.ConfigToggles(), [3, 11];
                            case 9:
                                return r = this, [4, this.LoadDynamicAsset("CommonBg/PanelBg22", cc.SpriteFrame)];
                            case 10:
                                return r._bg = i.sent(), this.SetBg(), [3, 11];
                            case 11:
                                return [2]
                        }
                    })
                })
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this.LoadConfig()
            }, t.prototype.LoadConfig = function() {
                this._rankConfig = d.ConfigDataComponent.Instance.GetConfigById(p.RankType_Config, this._rankConfigId)
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this.SetTittle(), this.SetRankComponent(), this.SetRewardBtnState(), this.SetTip(), this.SetRuleBtnState(), this.Style == l.CampSupport && (this.ActivityCountDown(), this.schedule(this.ActivityCountDown, 1)), S.RedDotManager.Instance.BindInstance(this.BtnReward.node, S.RedDotManager.Instance.InstanceRedDot.RankRewardsNode, {
                    Value1: this._rankConfigId
                })
            }, t.prototype.SetRuleBtnState = function() {
                switch (this._rankConfigId) {
                    case I.RankTypeId.RankMatch:
                        this.RuleBtn.node.active = !0;
                        break;
                    default:
                        this.RuleBtn.node.active = !1
                }
            }, t.prototype.SetBottomBg = function(e) {
                void 0 === e && (e = 1), this.Style == l.Default && (this.BottomBg1.active = 1 == e, this.BottomBg2.active = 1 != e)
            }, t.prototype.ActivityCountDown = function() {
                var e = w.default.Instance.ComputeDeadTime(this._activityConfig.Common),
                    t = 3 * P.Etc.HourDuration,
                    n = e - C.RpcComponent.Instance.ServerTime;
                n <= t ? this.ActivityTimeToLiveRichText.string = "timeLimited_wishCall_leftTime".ToUILocale().Fmt(w.default.ActivityTimeLeftFormat(n)) : (n -= t, this.ActivityTimeToLiveRichText.string = "campSupport_lastTime_support".ToUILocale().Fmt(w.default.ActivityTimeLeftFormat(n)))
            }, t.prototype.SetRankComponent = function() {
                var e = this;
                if (null == this._rank_detail_item && (this._rank_detail_item = cc.instantiate(this._rank_detail_prefab).getComponent(m.default), this._rank_detail_item.node.parent = this.MiddleRoot), !this._isReDisplay && this._activityId) switch (this._activityType) {
                    case g.ActivityType.SupportHero:
                        this._toggles[this._defaultTab].isChecked = !0, this.OnSwitchToggle(this._toggles[this._defaultTab]), this._rank_detail_item.SetRankOffsetUp(), this.SupportValueRichText.imageAtlas = this.mainAtlas, this.SupportValueRichText.node.active = !0, this.SupportValueRichText.string = "campSupport_onRank_style2".ToUILocale().Fmt(this._activityConfig.CustomPart.WinValue), this.TipBgNode.active = !0;
                        break;
                    case g.ActivityType.PickFood:
                        this._rank_detail_item.SetRankOffsetUp();
                        var t = new h.Req_Activity_GetRank;
                        t.ActivityId = this._activityId, C.RpcComponent.Instance.Call(t, function(t) {
                            e._rank_detail_item.SetUI(e._activityId, t.Rows, t.MyRank, t.MyRankData, e._isReDisplay, !0)
                        })
                } else if (!this._activityId) switch (this._rank_detail_item.SetUI(this._rankConfigId, this._rankRowDataList, this._myRank, this._myRankData, this._isReDisplay), this._rankConfigId) {
                    case I.RankTypeId.SaintsWar1:
                    case I.RankTypeId.SaintsWar2:
                    case I.RankTypeId.SaintsWar3:
                        this._rank_detail_item.SetMyRankNodeY()
                }
            }, t.prototype.SetRewardBtnState = function() {
                this._rankConfigId != g.RankTypeId.ChaosSummon ? this._rankConfigId != g.RankTypeId.AllZoneBattlePower && this._rankConfigId != g.RankTypeId.WarSeasonScore ? null != this._rankConfig ? (null != this._rankConfig.Achievements && this._rankConfig.Achievements.length > 0 ? this.BtnReward.node.active = !0 : this.BtnReward.node.active = !1, this._activityId && (this.BtnReward.node.active = !1)) : this.BtnReward.node.active = !1 : this.BtnReward.node.active = !0 : this.BtnReward.node.active = !1
            }, t.prototype.SetTittle = function() {
                if (this._activityId) switch (this._activityType) {
                    case g.ActivityType.SupportHero:
                        this.Tittle.string = "campSupport_title_rank".ToUILocale();
                        break;
                    case g.ActivityType.PickFood:
                        this.Tittle.string = "PickFood_title_rank".ToUILocale()
                } else switch (this.Tittle.string = this._rankConfigId.ToRankName(), this._rankConfigId) {
                    case I.RankTypeId.SaintsWar1:
                    case I.RankTypeId.SaintsWar2:
                    case I.RankTypeId.SaintsWar3:
                        this.Tittle.string = this._titles[this._selectToggleType - 1];
                        break;
                    default:
                        this.Tittle.string = this._rankConfigId.ToRankName()
                }
            }, t.prototype.SetTip = function() {
                this.TipRichText.node.active = !1, this.TipBgNode.active = this.Style == l.CampSupport, this._rankConfig && this._rankConfig.Id.ToRankDesc() && (this.TipRichText.node.active = !0, this.TipBgNode.active = !0, this.TipRichText.string = this._rankConfig.Id.ToRankDesc())
            }, t.prototype.SetBg = function() {
                this.Bg.spriteFrame = this._bg
            }, t.prototype.OnBtnRewardClick = function() {
                if (this._rankConfig.Achievements.length > 0) u.UIManager.Instance.ShowUIPanel(y.PanelConfig.RankRewardPanel.Path, this._rankConfigId, this._rankAchieveList, this._rankRowDataList);
                else if (this._rankConfigId == g.RankTypeId.ChaosSummon) u.UIManager.Instance.ShowUIPanel(y.PanelConfig.ChaosSummonRankRewardsPanel.Path, this._myRank);
                else if (this._rankConfigId == g.RankTypeId.AllZoneBattlePower) {
                    for (var e = {}, t = [], n = d.ConfigDataComponent.Instance.GetArrayConfig(p.ArenaRankReward_Config), o = 0; o < n.length; ++o)
                        if (n[o].AllZonePowerRewards.length > 0) {
                            var r = n[o].Id,
                                i = n[o + 1] ? n[o + 1].Id - 1 : 0,
                                a = {};
                            a.Id = n[o].Id, a.Ranks = [r, i], a.Rewards = n[o].AllZonePowerRewards, t.push(a)
                        } e.MyRank = this._myRank, e.Data = t, e.IsInRank = this._myRank > 0, c.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonRankRewardPanel.Path, e)
                } else if (this._rankConfigId == g.RankTypeId.WarSeasonScore) {
                    var s = this._myRankData ? this._myRankData.Value : 0;
                    u.UIManager.Instance.ShowUIPanel(y.PanelConfig.CrossServerRankRewardPanel.Path, s, I.RankTypeId.WarSeasonScore)
                }
            }, t.prototype.OnBtnReturnClick = function() {
                u.UIManager.Instance.BackUIPanel()
            }, t.prototype.ConfigToggles = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o, r, i, a;
                    return s(this, function() {
                        if (this._toggles = [], this._titles = [], this._activityId) switch (this._activityType) {
                            case g.ActivityType.SupportHero:
                                for (this._activityConfig = f.DataCenter.Instance.ActivityConfigs[this._activityId], e = {}, this._activityConfig._Locale.forEach(function(t) {
                                        e[t.Id] = t.Content
                                    }), (n = cc.instantiate(this._saintTogglePrefab)).setParent(this.ToggleContainer), r = 0; r < n.childrenCount; r++) n.children[r].on("toggle", this.OnSwitchToggle, this), (a = n.children[r].getComponent(_.default)).Init(e[r + 1]), this._toggles.push(a);
                                break;
                            case g.ActivityType.AllianceMaze:
                                for ((t = cc.instantiate(this._saintTogglePrefab)).setParent(this.ToggleContainer), r = 0; r < t.childrenCount; r++) t.children[r].on("toggle", this.OnSwitchToggle, this), (a = t.children[r].getComponent(_.default)).Init(e[r + 1]), this._toggles.push(a)
                        } else switch (this._rankConfigId) {
                            case I.RankTypeId.SaintsWar1:
                            case I.RankTypeId.SaintsWar2:
                            case I.RankTypeId.SaintsWar3:
                                for ((n = cc.instantiate(this._saintTogglePrefab)).setParent(this.ToggleContainer), o = w.default.Instance.GetSaintsWarLuckyHeroIds(), r = 0; r < n.childrenCount; r++) i = d.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, o[r]), n.children[r].on("toggle", this.OnSwitchToggle, this), (a = n.children[r].getComponent(_.default)).Init(("saintsWar_mapName_" + i.ElementType).ToUILocale()), this._toggles.push(a), this._titles.push(("saintsWar_mapName_" + i.ElementType).ToUILocale())
                        }
                        return this._toggles.length > 1 && this.SetBottomBg(2), [2]
                    })
                })
            }, t.prototype.OnSwitchToggle = function(e) {
                if (this._activityId) {
                    var t = Number.parseInt(e.name);
                    if (this._currentTab != t) {
                        this._currentTab = t;
                        var n = {};
                        switch (n.SupportTeam = t + 1, this._rank_detail_item.SetExtraParam(n), t + 1) {
                            case b.CampType.One:
                                this._rank_detail_item.SetUI(this._activityId, this._supportRankData.Rows1, this._supportRankData.MyRank, this._supportRankData.MyRankData, this._isReDisplay, !0);
                                break;
                            case b.CampType.Two:
                                this._rank_detail_item.SetUI(this._activityId, this._supportRankData.Rows2, this._supportRankData.MyRank, this._supportRankData.MyRankData, this._isReDisplay, !0)
                        }
                    }
                } else {
                    var o = Number.parseInt(e.name),
                        r = new h.Req_Player_GetRank;
                    r.RankType = I.RankTypeId.SaintsWar1 + (o - 1), this._selectToggleType = o, C.RpcComponent.Instance.Call(r, this.OnGetRankInfo.bind(this))
                }
            }, t.prototype.OnGetRankInfo = function(e) {
                e.Data.Rows.length > 0 ? (this._rankConfigId = I.RankTypeId.SaintsWar1 + (this._selectToggleType - 1), this._lastToggleType = this._selectToggleType, this._rankRowDataList = e.Data.Rows, this._rankAchieveList = e.Data.Achievements, this._myRank = e.MyRank, this._myRankData = e.MyRankData, this.DisPlay()) : (v.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale()), this._toggles[this._lastToggleType - 1].isChecked = !0)
            }, t.prototype.OnRuleBtnClick = function() {
                var e = {
                    name: this._rankConfigId.ToRankName(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: [("RankDetailPanel_" + this._rankConfigId + "_ruleDesc").ToUILocale()]
                };
                v.UIUtlity.ShowRulePanel(e)
            }, i([R({
                type: cc.Enum(l),
                displayName: "\u6837\u5f0f"
            })], t.prototype, "Style", void 0), i([R(cc.Sprite)], t.prototype, "Bg", void 0), i([R(cc.Label)], t.prototype, "Tittle", void 0), i([R(cc.Node)], t.prototype, "MiddleRoot", void 0), i([R(cc.Button)], t.prototype, "BtnReturn", void 0), i([R(cc.Button)], t.prototype, "BtnReward", void 0), i([R(cc.Label)], t.prototype, "RewardBtnLabel", void 0), i([R(cc.Node)], t.prototype, "TipBgNode", void 0), i([R(cc.RichText)], t.prototype, "TipRichText", void 0), i([R(cc.Node)], t.prototype, "ToggleContainer", void 0), i([R(cc.RichText)], t.prototype, "SupportValueRichText", void 0), i([R(cc.RichText)], t.prototype, "ActivityTimeToLiveRichText", void 0), i([R(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([R(cc.Button)], t.prototype, "RuleBtn", void 0), i([R(cc.Node)], t.prototype, "BottomBg1", void 0), i([R(cc.Node)], t.prototype, "BottomBg2", void 0), i([T], t)
        }(c.BaseUIFullScreenPanel);
        n.default = L, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/RankDetailComponent": "RankDetailComponent",
        "./CampSupportPanel": "CampSupportPanel"
    }],
    RankDetailRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "387faYZ8T9N2ZKBasB8Dz3Z", "RankDetailRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/EventKeys"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("./ItemComponent"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.Tag = null, t.RankIcon = null, t.RankLabel = null, t.RewardContent = null, t._itemNodes = [], t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(c.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Init = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return this._data = e, this.RankLabel.node.active = !1, this.RankIcon.node.active = !1, null != this._atlas ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset("RankPanel/Png/RankAtlas", cc.SpriteAtlas)];
                                case 1:
                                    if (t = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this._atlas = t, this._assets.push(t), n.label = 2;
                                case 2:
                                    return e.Rank[0] == e.Rank[1] ? e.Rank[0] <= 3 ? (this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e.Rank[0]), this.Bg.spriteFrame = this._atlas.getSpriteFrame("rankBg" + e.Rank[0]), this.Tag.spriteFrame = this._atlas.getSpriteFrame("tag" + e.Rank[0])) : (this.RankLabel.node.active = !0, this.RankLabel.string = "" + e.Rank[0], this.Bg.spriteFrame = this._atlas.getSpriteFrame("rankBg5"), this.Tag.spriteFrame = this._atlas.getSpriteFrame("tag5")) : e.Rank[1] ? (this.RankLabel.node.active = !0, this.RankLabel.string = e.Rank[0] + "-" + e.Rank[1]) : (this.RankLabel.node.active = !0, this.RankLabel.string = e.Rank[0] + "+"), this.SetRewardContent(), [2]
                            }
                        })
                    })
                }, t.prototype.SetRewardContent = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return null != this._itemPrefab ? [3, 2] : [4, l.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = n.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(e), [2];
                                    this._itemPrefab = e, this._assets.push(e), n.label = 2;
                                case 2:
                                    return this._itemNodes.forEach(function(e) {
                                        e.active = !1
                                    }), this._data.Rewards.forEach(function(e, n) {
                                        if (!t._itemNodes[n]) {
                                            var o = cc.instantiate(t._itemPrefab);
                                            o.parent = t.RewardContent, o.name = e.Items[0].toString(), o.y = -18, t._itemNodes[n] = o
                                        }
                                        t._itemNodes[n].active = !0, t._itemNodes[n].getComponent(d.ItemComponent).Init({
                                            ItemId: e.Items[0],
                                            Count: e.Items[1]
                                        })
                                    }), [2]
                            }
                        })
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardContent.children.indexOf(t) && p.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([y(cc.Sprite)], t.prototype, "Bg", void 0), i([y(cc.Sprite)], t.prototype, "Tag", void 0), i([y(cc.Sprite)], t.prototype, "RankIcon", void 0), i([y(cc.Label)], t.prototype, "RankLabel", void 0), i([y(cc.Node)], t.prototype, "RewardContent", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    RankMatchArenaEntranceItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "103b9wpRMVEaKEhVLaKG2hd", "RankMatchArenaEntranceItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../ShareConsts/EnumType"),
            l = e("../../Auxiliary/DataUtlity"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../RedDot/RedDotManager"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/RpcComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.LockNode = null, t.UnlockConditionLabel = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.node.on(cc.Node.EventType.TOUCH_END, this.OnComponnentClicked, this)
                }, t.prototype.Init = function() {
                    if (this._unlockStatus = l.default.Instance.IsGameModuleUnlock(s.GameModuleType.RankMatch), !this._unlockStatus[0]) return this.LockNode.active = !0, void(this.UnlockConditionLabel.string = this._unlockStatus[1]);
                    this.LockNode.active = !1, this.BindRedDot()
                }, t.prototype.BindRedDot = function() {
                    u.RedDotManager.Instance.Bind(this.node, u.RedDotManager.Instance.RedDot.RankMatchArenaNode, -47, -35)
                }, t.prototype.OnComponnentClicked = function() {
                    if (this._unlockStatus[0]) {
                        var e = d.Req_Map_EnterScoreMatch.create();
                        h.RpcComponent.Instance.Call(e, function(e) {
                            a.UIManager.Instance.ShowUIPanel(c.PanelConfig.RankMatchArenaPanel.Path, e)
                        })
                    } else p.UIUtlity.ShowFloatingHint(this._unlockStatus[1])
                }, i([g(cc.Node)], t.prototype, "LockNode", void 0), i([g(cc.Label)], t.prototype, "UnlockConditionLabel", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    RankMatchArenaMatchComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5841fb8uhFEhpQNMELQHPRl", "RankMatchArenaMatchComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/Components"),
            c = e("../../../Consts/Consts"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Components/HeadComponent"),
            d = e("./RankMatchArenaPanel"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/DataUtlity"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.TopRankBg = null, t.TopRankIcon = null, t.NormalRankNum = null, t.PlayerHeadContainer = null, t.PlayerInfoNode = null, t.RankHintNode = null, t.RankHintTag = null, t.DesignationIcon = null, t.PlayerName = null, t.ServerName = null, t.BattlePower = null, t.Score = null, t.ChallengeBtn = null, t.ChallengeBtnLabel = null, t.ChallengedTag = null, t.Challengedlabel = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    a.Game.EventDispatcher.On(u.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    a.Game.EventDispatcher.Off(u.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.Init = function(e, t, n, o) {
                    if (this._baseUIPanel = e, this._rank = t, this._rankData = n, this._isInit || (this._isInit = !0, this.Challengedlabel.string = "challenged".ToUILocale(), this.ChallengeBtn.node.on("click", this.OnChallengeBtnClick, this), this.ChallengeBtnLabel.string = "arena_challengeBtnText".ToUILocale()), this.ChallengeBtn.node.active = !0, this.Score.string = n.Value.toString(), n.Id < 0) {
                        for (var r = Math.abs(n.Id), i = l.ConfigDataComponent.Instance.GetConfigById(g.PlayerRobot_Config, r), a = i.Power[0] || 0, s = 1; s < i.Power.length; s++) a = Math.max(i.Power[s] || 0, a);
                        this.BattlePower.string = a.toString()
                    } else this.BattlePower.string = n.PlayerInfo.Power.toString();
                    this.PlayerName.string = n.PlayerInfo.Name, this.ServerName.string = l.DataCenter.Instance.Zones[n.Zone].Name, o == d.ArenaCrossRankUpState.Upgrade ? (this.RankHintNode.active = !0, this.RankHintTag.spriteFrame = e.Atlas.getSpriteFrame("up")) : o == d.ArenaCrossRankUpState.Degrade ? (this.RankHintNode.active = !0, this.RankHintTag.spriteFrame = e.Atlas.getSpriteFrame("down")) : this.RankHintNode.active = !1, n.PlayerInfo.Uid == l.DataCenter.Instance.Uid ? (this.ChallengeBtn.node.active = !1, this.ChallengedTag.active = !1) : l.DataCenter.Instance.GetArrayData(c.UserDataKey.RankMatchChallengeTargetUids).includes(this._rankData.PlayerInfo.Uid) ? (this.ChallengeBtn.node.active = !1, this.ChallengedTag.active = !0) : (this.ChallengeBtn.node.active = !0, this.ChallengedTag.active = !1), y.default.SetDesignationIcon(n.PlayerInfo.Designation, this.DesignationIcon), this.ConfigRankNum(), this.ConfigPlayerHeaderComponent(n.PlayerInfo)
                }, t.prototype.ConfigRankNum = function() {
                    this.NormalRankNum.node.active = !1, this._rank <= 3 ? (this.TopRankIcon.node.active = !0, this.TopRankBg.spriteFrame = this._baseUIPanel.Atlas.getSpriteFrame("flag" + this._rank), this.TopRankIcon.spriteFrame = h.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + this._rank)) : (this.TopRankBg.spriteFrame = this._baseUIPanel.Atlas.getSpriteFrame("flag4"), this.NormalRankNum.node.active = !0, this.TopRankIcon.node.active = !1, this.NormalRankNum.string = this._rank.toString())
                }, t.prototype.ConfigPlayerHeaderComponent = function(e) {
                    if (!this._headerComponent) {
                        var t = this._baseUIPanel.PlayerHeadPrefab,
                            n = cc.instantiate(t);
                        n.setParent(this.PlayerHeadContainer), n.on(cc.Node.EventType.TOUCH_END, this.OnShowPlayerInfo, this), this._headerComponent = n.getComponent(p.default)
                    }
                    this._headerComponent.SetUI(e.HeadIcon, e.HeadFrame, e.Title)
                }, t.prototype.OnShowPlayerInfo = function() {
                    if (this._rankData.PlayerInfo && this._rankData.PlayerInfo.Uid > 0) {
                        if (this._rankData.PlayerInfo.Uid == l.DataCenter.Instance.Uid) return;
                        var e;
                        e = this._baseUIPanel.Can3Teams ? [c.FormationIdType.RankMatch1, c.FormationIdType.RankMatch2, c.FormationIdType.RankMatch3] : [c.FormationIdType.RankMatch1];
                        var t = new s.Req_Player_GetFormations;
                        t.Uid = this._rankData.PlayerInfo.Uid, t.Zone = this._rankData.Zone, t.FormationIds = e, l.RpcComponent.Instance.Call(t, this.OnRequestChampionFormation.bind(this))
                    } else h.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale())
                }, t.prototype.OnRequestChampionFormation = function(e) {
                    a.UIManager.Instance.ShowUIPanel(f.PanelConfig.CommonPvpPlayerInfoPanel.Path, e.Info, e.Formations, this._rank)
                }, t.prototype.OnChallengeBtnClick = function() {
                    this._baseUIPanel.ReqScoreMatchChallenge(this._rankData.PlayerInfo.Uid)
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, i([_(cc.Sprite)], t.prototype, "TopRankBg", void 0), i([_(cc.Sprite)], t.prototype, "TopRankIcon", void 0), i([_(cc.Label)], t.prototype, "NormalRankNum", void 0), i([_(cc.Node)], t.prototype, "PlayerHeadContainer", void 0), i([_(cc.Node)], t.prototype, "PlayerInfoNode", void 0), i([_(cc.Node)], t.prototype, "RankHintNode", void 0), i([_(cc.Sprite)], t.prototype, "RankHintTag", void 0), i([_(cc.Sprite)], t.prototype, "DesignationIcon", void 0), i([_(cc.Label)], t.prototype, "PlayerName", void 0), i([_(cc.Label)], t.prototype, "ServerName", void 0), i([_(cc.Label)], t.prototype, "BattlePower", void 0), i([_(cc.Label)], t.prototype, "Score", void 0), i([_(cc.Button)], t.prototype, "ChallengeBtn", void 0), i([_(cc.Label)], t.prototype, "ChallengeBtnLabel", void 0), i([_(cc.Node)], t.prototype, "ChallengedTag", void 0), i([_(cc.Label)], t.prototype, "Challengedlabel", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "./RankMatchArenaPanel": "RankMatchArenaPanel"
    }],
    RankMatchArenaPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "fbaafOG+8JFsqzdIkOjE0ZX", "RankMatchArenaPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ArenaCrossRankUpState = n.RankMatchState = void 0;
        var l, c, u, p, d = e("../../../EZFramework/EZFramework"),
            h = e("../Components/AsyncLayout"),
            f = e("../Components/LoadAssetHelper"),
            y = e("../../../Consts/Consts"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../../Components/Components"),
            v = e("../../../Util/TimeUtil"),
            b = e("../Components/HeadComponent"),
            S = e("./RankMatchArenaPlacementComponent"),
            w = e("./RankMatchArenaMatchComponent"),
            P = e("../../Auxiliary/DataUtlity"),
            A = e("../Auxiliary/UIUtlity"),
            T = e("./CrossServerRankEditTeamPanel"),
            R = e("./ShopUIPanel"),
            L = e("./BuyAndSellItemPanel"),
            k = e("./RankMatchChallengeConfirmPanel"),
            O = e("../../RedDot/RedDotManager"),
            M = cc._decorator,
            D = M.ccclass,
            B = M.property;
        (function(e) {
            e[e.Resting = 1] = "Resting", e[e.PlacementMatching = 2] = "PlacementMatching", e[e.ScoreMatching = 3] = "ScoreMatching"
        })(l = n.RankMatchState || (n.RankMatchState = {})),
        function(e) {
            e[e.Upgrade = 1] = "Upgrade", e[e.Degrade = 2] = "Degrade", e[e.Stay = 3] = "Stay"
        }(c = n.ArenaCrossRankUpState || (n.ArenaCrossRankUpState = {})),
        function(e) {
            e[e.CurRankIcon = 1] = "CurRankIcon", e[e.NextRankIcon = 2] = "NextRankIcon"
        }(u || (u = {})),
        function(e) {
            e[e.NotEnroll = 0] = "NotEnroll", e[e.EnrollCurr = 1] = "EnrollCurr", e[e.EnrollNext = 2] = "EnrollNext"
        }(p || (p = {}));
        var N = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new d.UIPanelType(d.UINodeType.Fixed), t.Title = null, t.RuleBtn = null, t.BackBtn = null, t.ScoreMatchScrollView = null, t.UpSectionLabel = null, t.UpSectionNode = null, t.UpSectionHint = null, t.UpSectionLayout = null, t.MiddleSectionNode = null, t.MiddleSectionLabel = null, t.MiddleSectionLayout = null, t.DownSectionNode = null, t.DownSectionLabel = null, t.DownSectionLayout = null, t.PlacementLayout = null, t.PlacementScrollView = null, t.ChallengeReward = null, t.ChallengeBtn = null, t.ChallengeBtnLabel = null, t.SignUpGrayBtn = null, t.SignUpGrayBtnLabel = null, t.SignUpTip = null, t.SignUpBtn = null, t.SignUpBtnLabel = null, t.RewardBtn = null, t.RewardBtnLabel = null, t.ShopBtn = null, t.ShopBtnLabel = null, t.RankBtn = null, t.RankBtnLabel = null, t.BattleReportBtn = null, t.BattleReportBtnLabel = null, t.FormationBtn = null, t.FormationBtnLabel = null, t.TopPlacementTitleNode = null, t.TopPlacementTitleLabel = null, t.TopPlacementCurRankTitle = null, t.TopPlacementCurRankName = null, t.TopPlacementNextRankName = null, t.TopPlaceCurRankIcon = null, t.TopPlaceNextRankIcon = null, t.TopPlacementNextRankHint = null, t.TopStateTitleNode = null, t.TopStateTitleLabel = null, t.TopStateRankCurRankTitle = null, t.TopStateRankCurRankIcon = null, t.TopStateRankCurRankName = null, t.ScoreMatchCountDownNode = null, t.ScoreMatchCountDownTag = null, t.ScoreMatchCountDownTime = null, t.TopChallengeCountLayout = null, t.TopChallengeCount = null, t.BuyTickectBtn = null, t.RestingCountDownNode = null, t.SignCountDownLeftTimeTag = null, t.SignCountDownLeftTime = null, t.SignUpHint = null, t.SelfPlayerHeadContainer = null, t.SelfServerName = null, t.SelfRankInfoNode = null, t.SelfRankBg = null, t.SelfRankNum = null, t.SelfPlayerName = null, t.SelfBattlePower = null, t.SelfScore = null, t.SelfRestingInfoNode = null, t.SelfRestingPlayerName = null, t.SelfRestingLastRankScore = null, t.SelfRestingRankLabel = null, t.SelfPlacementInfoNode = null, t.SelfPlacementPlayerName = null, t.SelfPlacementBattlePower = null, t.Atlas = null, t.LoadAssetHelper = null, t.TopRankPromoteBtn = null, t.TopRankPromoteBtnLabel = null, t._playerScoreMatchItems = [], t._selectedTargetInfo = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                d.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), d.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), d.Game.EventDispatcher.On(_.EventKeys.EVENT_RANKMATCH_REFRESH, this.RefreshPanelInfo, this)
            }, t.prototype.onDisable = function() {
                d.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), d.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(g.UserItem_Model._n_), this.OnUserItemChange, this), d.Game.EventDispatcher.Off(_.EventKeys.EVENT_RANKMATCH_REFRESH, this.RefreshPanelInfo, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(I.BundlePath.HeadComponent), [4, this.LoadDynamicAsset("Arena/RankMatchArenaPanel/RankMatchArenaPlacementComponent", cc.Prefab)];
                            case 1:
                                return n = i.sent(), [4, this.LoadDynamicAsset("Arena/RankMatchArenaPanel/RankMatchArenaMatchComponent", cc.Prefab)];
                            case 2:
                                return o = i.sent(), [4, Promise.all([t, n, o]).then(function(e) {
                                    r.PlayerHeadPrefab = e[0], r._placementItemPrefab = e[1], r._scroeMatchPrefab = e[2]
                                })];
                            case 3:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "RankMatchArena_ruleTitle".ToUILocale(), this.ChallengeBtnLabel.string = "SeniorArenaChallenge".ToUILocale(), this.RewardBtnLabel.string = "crossServerRank_reward".ToUILocale(), this.SignCountDownLeftTimeTag.string = "gift_remainderTime".ToUILocale(), this.ScoreMatchCountDownTag.string = "gift_remainderTime".ToUILocale(), this.ShopBtnLabel.string = "shop_mainTittle".ToUILocale(), this.RankBtnLabel.string = "crossServerRank_rank".ToUILocale(), this.BattleReportBtnLabel.string = "crossServerRank_report".ToUILocale(), this.FormationBtnLabel.string = "formation_title".ToUILocale(), this.SignUpBtnLabel.string = "application".ToUILocale(), this.SignUpTip.string = "RankMatchArena_signUpTip".ToUILocale(), this.UpSectionLabel.string = "RankMatchArena_upArea".ToUILocale(), this.DownSectionLabel.string = "RankMatchArena_downArea".ToUILocale(), this.MiddleSectionLabel.string = "RankMatchArena_stayArea".ToUILocale(), this.TopPlacementTitleLabel.string = "RankMatchArena_placementTitle".ToUILocale(), this.SignUpGrayBtnLabel.string = "RankMatchArena_signed".ToUILocale(), this.TopPlacementCurRankTitle.string = this.TopStateRankCurRankTitle.string = "continuousFight_rank_current".ToUILocale(), this.ChallengeBtn.node.on("click", this.OnChallengeClick, this), this.RewardBtn.node.on("click", this.OnRewardBtnClick, this), this.RankBtn.node.on("click", this.OnRankBtnClick, this), this.ShopBtn.node.on("click", this.OnShopBtnClick, this), this.SignUpBtn.node.on("click", this.OnSignUpBtnClick, this), this.BattleReportBtn.node.on("click", this.OnBattleReportBtnClick, this), this.BuyTickectBtn.node.on("click", this.OnBuyTickectBtnClick, this), this.FormationBtn.node.on("click", this.OnFormationBtnClick, this), this.TopRankPromoteBtn.node.on("click", this.OnTopRankPromoteBtnClick, this), this.ScoreMatchScrollView.node.on("scrolling", this.OnScrolling, this), this.RuleBtn.node.on("click", this.OnShowRuleInfo, this), this.BackBtn.node.on("click", this.OnClose, this), this.PlacementLayout.Init(this._placementItemPrefab, this.RenderPlacementItems.bind(this)), this.ConfigChallegeReward()
            }, t.prototype.ConfigChallegeReward = function() {
                for (var e = C.ConfigDataComponent.Instance.GetConfigById(m.LevelParam_Config, y.LevelParamType.RankMatchChallengeReward), t = "", n = 0; n < e.Data2.length; n++) t += "<img src='" + e.Data2[n].Items[0] + "' width=56 height= 56 align=center/>x" + e.Data2[n].Items[1];
                this.ChallengeReward.string = "function_adventure".ToUILocale() + ": " + t
            }, t.prototype.OnScrolling = function() {
                d.Game.EventDispatcher.Emit(_.EventKeys.EVENT_CHECK_BUNDINGBOX, this._rateScrollViewRect)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._arenaRankData = t[0]
            }, t.prototype.DisPlay = function(t) {
                return void 0 === t && (t = !1), a(this, void 0, void 0, function() {
                    var n;
                    return s(this, function() {
                        return e.prototype.DisPlay.call(this, t), this._isInit || (this._isInit = !0, n = this.ScoreMatchScrollView.node.getBoundingBoxToWorld(), this._rateScrollViewRect = new cc.Rect(n.x, n.y, this.ScoreMatchScrollView.node.width, this.ScoreMatchScrollView.node.height), this.RefreshPanelInfo()), this.BindRedDot(), [2]
                    })
                })
            }, t.prototype.BindRedDot = function() {
                O.RedDotManager.Instance.Bind(this.FormationBtn.node, O.RedDotManager.Instance.RedDot.RankMatchArenaFormationNode)
            }, t.prototype.RefreshPanelInfo = function(e) {
                this._curCrossRankState && !e || this.GetArenaCrossRankState(), !this._arenaRankData || e ? this.RefreshArenaRankInfo() : this.OnGetRankInfoSuccess(this._arenaRankData)
            }, t.prototype.GetArenaCrossRankState = function() {
                var e, t, n = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("RankMathchCompetitionNum"),
                    o = C.DataCenter.Instance.GetArrayData(y.UserDataKey.RankMatchClassificationInfo);
                if (this._placementMathCount = o[0] || 0, this._placementWinCount = o[1], this._placementMathCount < n) this._curCrossRankState = l.PlacementMatching, this._nextRefreshTime = null;
                else {
                    var r, i, a, s;
                    this._startTimelevelParam || (this._startTimelevelParam = C.ConfigDataComponent.Instance.GetConfigById(m.LevelParam_Config, y.LevelParamType.RankMatchOpenTs)), r = (e = this._startTimelevelParam.Data2[0].Items)[0], i = e[1], a = (t = this._startTimelevelParam.Data2[1].Items)[0], s = t[1];
                    var c = C.RpcComponent.Instance.ServerTime,
                        u = v.TimeUtil.GetMondayClock0Ts(c),
                        p = v.TimeUtil.GetOffsetHourTs(3, u),
                        d = v.TimeUtil.GetOffsetHourTs(r, u),
                        h = v.TimeUtil.GetOffsetHourTs(i, u),
                        f = v.TimeUtil.GetOffsetDayTs(4, u),
                        g = v.TimeUtil.GetOffsetHourTs(3, f),
                        I = v.TimeUtil.GetOffsetHourTs(a, u),
                        _ = v.TimeUtil.GetOffsetHourTs(s, u);
                    c < p ? (this._curCrossRankState = l.Resting, this._nextRefreshTime = p) : c < d ? (this._curCrossRankState = l.Resting, this._nextRefreshTime = v.TimeUtil.GetOffsetDayTs(7, d)) : c < h ? (this._curCrossRankState = l.ScoreMatching, this._nextRefreshTime = h) : c < g ? (this._curCrossRankState = l.Resting, this._nextRefreshTime = g) : c < I ? (this._curCrossRankState = l.Resting, this._nextRefreshTime = v.TimeUtil.GetOffsetDayTs(7, I)) : c < _ ? (this._curCrossRankState = l.ScoreMatching, this._nextRefreshTime = _) : (this._curCrossRankState = l.Resting, this._nextRefreshTime = v.TimeUtil.GetOffsetDayTs(7, d))
                }
            }, t.prototype.RefreshArenaRankInfo = function() {
                var e = g.Req_Map_EnterScoreMatch.create();
                C.RpcComponent.Instance.Call(e, this.OnGetRankInfoSuccess.bind(this))
            }, t.prototype.OnGetRankInfoSuccess = function(e) {
                var t = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("RankMatchChallengeMoreTeamRank");
                e.MyInfo[0] >= t && (this.Can3Teams = !0), this._arenaRankData = e, this.ScoreMatchScrollView.node.active = !1, this.PlacementScrollView.node.active = !1, this._curCrossRankState == l.PlacementMatching ? this.RefreshPlacementPlayerItems() : this._curCrossRankState == l.ScoreMatching && this._arenaRankData.Players.length > 0 && this.RefreshScoreMatchPlayerItems(), this.ConfigSelfRankInfoItem()
            }, t.prototype.RefreshPlacementPlayerItems = function() {
                this.PlacementScrollView.node.active = !0, this.PlacementLayout.RenderLayout(this._arenaRankData.Players.length)
            }, t.prototype.RenderPlacementItems = function(e, t) {
                e.getComponent(S.default).Init(this, this._arenaRankData.Players[t])
            }, t.prototype.IsNextRankTopRank = function(e) {
                return !e.NextRank || !C.ConfigDataComponent.Instance.GetConfigById(m.RankMatch_Config, e.NextRank).NextRank
            }, t.prototype.RefreshScoreMatchPlayerItems = function() {
                this.ScoreMatchScrollView.node.active = !0;
                var e = this._arenaRankData.MyInfo[0],
                    t = C.ConfigDataComponent.Instance.GetConfigById(m.RankMatch_Config, e),
                    n = this.IsNextRankTopRank(t),
                    o = this._arenaRankData.Players.length,
                    r = n ? 0 : t.PromoteNum || 0,
                    i = r + (t.RelegationNum || 0),
                    a = o;
                this.UpSectionHint.node.active = !1, this.UpSectionNode.active = !0, this.UpSectionLayout.node.active = !0, this.TopRankPromoteBtn.node.active = !1, r <= 0 && (n ? t.NextRank ? (this.ConfigPromoteHint(), this.TopRankPromoteBtnLabel.string = "RankMatchArena_list".ToUILocale(), this.TopRankPromoteBtn.node.active = !0) : (this.UpSectionNode.active = !1, this.UpSectionLayout.node.active = !1) : (this.UpSectionHint.node.active = !0, this.UpSectionHint.string = "RankMatchArena_promotionHint".ToUILocale())), i <= r ? (this.MiddleSectionNode.active = !1, this.MiddleSectionLayout.node.active = !1) : (t.NextRank ? this.MiddleSectionNode.active = !0 : this.MiddleSectionNode.active = !1, this.MiddleSectionLayout.node.active = !0), a <= i ? (this.DownSectionNode.active = !1, this.DownSectionLayout.node.active = !1) : (this.DownSectionNode.active = !0, this.DownSectionLayout.node.active = !0);
                for (var s = 0; s < this._arenaRankData.Players.length; s++) {
                    var l = this._playerScoreMatchItems[s],
                        u = 0;
                    l || (l = cc.instantiate(this._scroeMatchPrefab).getComponent(w.default), this._playerScoreMatchItems.push(l)), s < r ? (u = c.Upgrade, l.node.setParent(this.UpSectionLayout.node)) : s < i ? (u = c.Stay, l.node.setParent(this.MiddleSectionLayout.node)) : (u = c.Degrade, l.node.setParent(this.DownSectionLayout.node)), l.node.zIndex = s, l.Init(this, s + 1, this._arenaRankData.Players[s], u)
                }
            }, t.prototype.ConfigPromoteHint = function() {
                var e = this;
                if (this.UpSectionHint.node.active = !0, this._promoteRankData) this.UpSectionHint.string = "RankMatchArena_promotionHint2".ToUILocale().Fmt(this._promoteRankData.MyRank);
                else {
                    var t = new g.Req_Player_GetRank;
                    t.RankType = y.RankTypeId.RankMatch1, t.Params = [this._arenaRankData.MyInfo[0]], C.RpcComponent.Instance.Call(t, function(t) {
                        e._promoteRankData = t, e.UpSectionHint.string = "RankMatchArena_promotionHint2".ToUILocale().Fmt(e._promoteRankData.MyRank)
                    })
                }
            }, t.prototype.OnTopRankPromoteBtnClick = function() {
                var e = this;
                if (this._promoteRankData) d.UIManager.Instance.ShowUIPanel(I.PanelConfig.RankMatchRankPanel.Path, this._promoteRankData, this._arenaRankData.MyInfo[2]);
                else {
                    var t = new g.Req_Player_GetRank;
                    t.RankType = y.RankTypeId.RankMatch1, t.Params = [this._arenaRankData.MyInfo[0]], C.RpcComponent.Instance.Call(t, function(t) {
                        e._promoteRankData = t, d.UIManager.Instance.ShowUIPanel(I.PanelConfig.RankMatchRankPanel.Path, t, e._arenaRankData.MyInfo[2])
                    })
                }
            }, t.prototype.ConfigSelfRankInfoItem = function() {
                if (!this._selfHeaderComponent) {
                    var e = cc.instantiate(this.PlayerHeadPrefab);
                    e.setParent(this.SelfPlayerHeadContainer), this._selfHeaderComponent = e.getComponent(b.default), this._selfHeaderComponent.AutoSetUI(), this.SelfServerName.string = C.DataCenter.Instance.Zones[C.DataCenter.Zone].Name
                }
                switch (this.HideAllInfoNode(), this._curCrossRankState) {
                    case l.PlacementMatching:
                        this.ShowPlacementState();
                        break;
                    case l.Resting:
                        this.ShowRestingState();
                        break;
                    case l.ScoreMatching:
                        this._arenaRankData.Players.length <= 0 ? this.ShowRestingState() : this.ShowScoreMatchingState()
                }
            }, t.prototype.HideAllInfoNode = function() {
                this.TopPlacementTitleNode.active = !1, this.TopStateTitleNode.active = !1, this.TopChallengeCountLayout.node.active = !1, this.RestingCountDownNode.active = !1, this.ScoreMatchCountDownNode.active = !1, this.SelfRestingInfoNode.active = !1, this.SelfRankInfoNode.active = !1, this.SelfRankBg.node.active = !1, this.ChallengeBtn.node.active = !1, this.BuyTickectBtn.node.active = !1, this.SelfRankNum.node.active = !1, this.SelfPlacementInfoNode.active = !1, this.SignUpBtn.node.active = !1, this.SignUpGrayBtn.node.active = !1
            }, t.prototype.ShowPlacementState = function() {
                this.TopPlacementTitleNode.active = !0, this.ChallengeBtn.node.active = !0, this.TopChallengeCountLayout.node.active = !0, this._placementNeedChallengeCount = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("RankMathchCompetitionNum"), this.SelfPlacementPlayerName.string = C.DataCenter.Instance.GetStringData(y.UserDataKey.RoleName), this.SelfPlacementBattlePower.string = C.DataCenter.Instance.GetIntData(y.UserDataKey.Power).toString(), this.TopChallengeCountLayout.paddingRight = this.TopChallengeCountLayout.paddingLeft, this.TopChallengeCount.string = "HolyRelic_leftTimes".ToUILocale().Fmt(this._placementNeedChallengeCount - this._placementMathCount + "/" + this._placementNeedChallengeCount), this.SelfPlacementInfoNode.active = !0;
                var e = this._arenaRankData.MyInfo[0],
                    t = C.ConfigDataComponent.Instance.GetConfigById(m.RankMatch_Config, e),
                    n = t.PlacementMatcheNextRank;
                if (this.TopPlacementCurRankName.string = e.ToRankMatchName(), this.LoadAssetHelper.LoadSpriteFrame("RankMatchIcons/" + t.MainRank, this.TopPlaceCurRankIcon, null, u.CurRankIcon), t.NextRank) {
                    var o = C.ConfigDataComponent.Instance.GetConfigById(m.RankMatch_Config, t.NextRank),
                        r = t.PromoteNeedWinCount - (this._placementWinCount || 0);
                    this.TopPlacementNextRankHint.string = "RankMatchArena_hint".ToUILocale().Fmt(r), this.TopPlacementNextRankName.string = n.ToRankMatchName(), this.LoadAssetHelper.LoadSpriteFrame("RankMatchIcons/" + o.MainRank, this.TopPlaceNextRankIcon, null, u.NextRankIcon)
                }
            }, t.prototype.ShowRestingState = function() {
                this.TopStateTitleNode.active = !0, this.SelfRestingInfoNode.active = !0, this.RestingCountDownNode.active = !0, this.SelfRestingPlayerName.string = C.DataCenter.Instance.GetStringData(y.UserDataKey.RoleName), this.SelfRestingLastRankScore.string = "<outline color=#202434>" + "RankMatchArena_prevScore".ToUILocale() + ": <color=#6EEEA7>" + this._arenaRankData.MyInfo[2] + "</c></outline>";
                var e = this._arenaRankData.MyInfo[1] ? this._arenaRankData.MyInfo[1].toString() : "openServer_heroTest_noRatingYet".ToUILocale();
                this.SelfRestingRankLabel.string = "<outline color=#202434>" + "SeniorArenaPlayerInfo_Rank".ToUILocale() + ": <color=#6EEEA7>" + e + "</c></outline>";
                var t = C.ConfigDataComponent.Instance.GetConfigById(m.RankMatch_Config, this._arenaRankData.MyInfo[0]);
                this.TopStateTitleLabel.string = "RankMatchArena_signUpState".ToUILocale(), this.TopStateRankCurRankName.string = this._arenaRankData.MyInfo[0].ToRankMatchName(), this.LoadAssetHelper.LoadSpriteFrame("RankMatchIcons/" + t.MainRank, this.TopStateRankCurRankIcon, null, 10), this._arenaRankData.IsEnroll ? (this.SignUpHint.string = "RankMatchArena_countDown1".ToUILocale(), this.SignUpGrayBtn.node.active = !0) : (this.SignUpHint.string = "RankMatchArena_countDown".ToUILocale(), this.SignUpBtn.node.active = !0), this.SetSignStateCountdown()
            }, t.prototype.SetSignStateCountdown = function() {
                this._nextRefreshTime = this.GetNextScoreRankTime(), this.RefreshSignUpCountDown(), this.unschedule(this.RefreshSignUpCountDown), this.schedule(this.RefreshSignUpCountDown, 1)
            }, t.prototype.RefreshSignUpCountDown = function() {
                var e = C.RpcComponent.Instance.ServerTime,
                    t = this._nextRefreshTime - e;
                if (t <= 0) return this.unschedule(this.RefreshSignUpCountDown), void this.RefreshPanelInfo(!0);
                this.SignCountDownLeftTime.string = P.default.ActivityTimeLeftFormat(t)
            }, t.prototype.GetNextScoreRankTime = function() {
                var e = C.RpcComponent.Instance.ServerTime,
                    t = v.TimeUtil.GetMondayClock0Ts(e);
                if (this._arenaRankData.IsEnroll) {
                    this._startTimelevelParam || (this._startTimelevelParam = C.ConfigDataComponent.Instance.GetConfigById(m.LevelParam_Config, y.LevelParamType.RankMatchOpenTs));
                    var n = this._startTimelevelParam.Data2[0].Items,
                        o = n[0],
                        r = (n[1], this._startTimelevelParam.Data2[1].Items),
                        i = r[0],
                        a = (r[1], C.RpcComponent.Instance.ServerTime),
                        s = v.TimeUtil.GetMondayClock0Ts(a),
                        l = v.TimeUtil.GetOffsetHourTs(o, s),
                        c = v.TimeUtil.GetOffsetHourTs(i, s);
                    return a < l ? this._arenaRankData.IsEnroll == p.EnrollCurr ? l : c : a < c && this._arenaRankData.IsEnroll == p.EnrollCurr ? c : v.TimeUtil.GetOffsetDayTs(7, l)
                }
                var u = v.TimeUtil.GetOffsetHourTs(3, t),
                    d = v.TimeUtil.GetOffsetDayTs(4, u);
                return e < u ? u : e < d ? d : v.TimeUtil.GetOffsetDayTs(7, u)
            }, t.prototype.ShowScoreMatchingState = function() {
                this.TopStateTitleNode.active = !0, this.SelfRankBg.node.active = !0, this.ChallengeBtn.node.active = !0, this.SelfRankInfoNode.active = !0, this.SelfPlayerName.string = C.DataCenter.Instance.GetStringData(y.UserDataKey.RoleName), this.SelfBattlePower.string = C.DataCenter.Instance.GetIntData(y.UserDataKey.Power).toString(), this.SelfScore.string = this._arenaRankData.MyInfo[2].toString();
                var e = this._arenaRankData.MyInfo[1];
                e <= 3 ? (this.SelfRankNum.node.active = !1, this.SelfRankBg.spriteFrame = A.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + e)) : (this.SelfRankNum.node.active = !0, this.SelfRankNum.string = e.toString());
                var t = C.ConfigDataComponent.Instance.GetConfigById(m.RankMatch_Config, this._arenaRankData.MyInfo[0]);
                t.NextRank ? this.TopStateTitleLabel.string = "CrossServerChampion_Start_PromotionRace".ToUILocale() : this.TopStateTitleLabel.string = "RankMatchArena_topBattle".ToUILocale(), this.TopStateRankCurRankName.string = this._arenaRankData.MyInfo[0].ToRankMatchName(), this.LoadAssetHelper.LoadSpriteFrame("RankMatchIcons/" + t.MainRank, this.TopStateRankCurRankIcon, null, u.CurRankIcon), this.TopChallengeCountLayout.node.active = !0, this.TopChallengeCountLayout.paddingRight = 0, this.BuyTickectBtn.node.active = !0, this.RefreshScoreMatchCount(), this.SetScoreMatchCountdown()
            }, t.prototype.RefreshScoreMatchCount = function() {
                var e = C.DataCenter.Instance.GetItemCount(y.CommonItemId.RankMatchTicket),
                    t = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("RankMatchDailyInitChallengeTimes");
                this.TopChallengeCount.string = "HolyRelic_ResidueTimes".ToUILocale() + " " + e + "/" + t
            }, t.prototype.SetScoreMatchCountdown = function() {
                this.ScoreMatchCountDownNode.active = !0, this.RefreshScoreMatchCountDown(), this.unschedule(this.RefreshScoreMatchCountDown), this.schedule(this.RefreshScoreMatchCountDown, 1)
            }, t.prototype.RefreshScoreMatchCountDown = function() {
                var e = C.RpcComponent.Instance.ServerTime,
                    t = this._nextRefreshTime - e;
                if (t <= 0) return this.unschedule(this.RefreshScoreMatchCountDown), void this.RefreshPanelInfo(!0);
                this.ScoreMatchCountDownTime.string = P.default.ActivityTimeLeftFormat(t)
            }, t.prototype.OnShowRuleInfo = function() {
                var e = {
                    name: "RankMatchArena_ruleTitle".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["RankMatchArena_rule_content".ToUILocale()]
                };
                A.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnChallengeClick = function() {
                this._curCrossRankState == l.PlacementMatching ? this.ReqPlacementChallenge() : this.ReqScoreMatchChallenge()
            }, t.prototype.OnRewardBtnClick = function() {
                var e = this.GetMyRewardRankId();
                d.UIManager.Instance.ShowUIPanel(I.PanelConfig.RankMatchRankRewardPanel.Path, e)
            }, t.prototype.GetMyRewardRankId = function() {
                var e;
                if (this._curCrossRankState != l.PlacementMatching && (e = this._arenaRankData.MyInfo[0]), e && this._curCrossRankState != l.Resting && this._arenaRankData.Players.length > 0) {
                    var t, n = C.ConfigDataComponent.Instance.GetConfigById(m.RankMatch_Config, e);
                    if (!n.NextRank) return P.default.Instance.GetRankMatchConfigByRankNum(this._arenaRankData.MyInfo[1]);
                    t = this.IsNextRankTopRank(n);
                    var o = n.PromoteNum || 0;
                    if (!t) {
                        if (!o) return e;
                        if (this._arenaRankData.MyInfo[1] <= o) return n.NextRank
                    }
                    if (n.RelegationNum + o >= this._arenaRankData.MyInfo[1]) return e;
                    this._allRankConfig || (this._allRankConfig = C.ConfigDataComponent.Instance.GetArrayConfig(m.RankMatch_Config));
                    for (var r = 0; r < this._allRankConfig.length; r++)
                        if (this._allRankConfig[r].NextRank == e) return this._allRankConfig[r].Id
                }
                return e
            }, t.prototype.OnBattleReportBtnClick = function() {
                var e = g.Req_Player_GetBattleMessages.create();
                e.Type = y.BattleMessageType.RankMatch, C.RpcComponent.Instance.Call(e, function(e) {
                    d.UIManager.Instance.ShowUIPanel(I.PanelConfig.RankMatchBattleReportPanel.Path, e.Data)
                })
            }, t.prototype.OnShopBtnClick = function() {
                d.UIManager.Instance.ShowUIPanel(I.PanelConfig.ShopPanel.Path, R.ShopType.SeniorArena, R.ShopType.SeniorArena)
            }, t.prototype.OnRankBtnClick = function() {
                var e = this;
                if (this._rankData) {
                    if (this._rankData.Rows.length <= 0) return void A.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale());
                    d.UIManager.Instance.ShowUIPanel(I.PanelConfig.RankDetailPanel.Path, y.RankTypeId.RankMatch, this._rankData.Rows, this._rankData.Achievements, this._myTopRank, this._myRankData)
                } else {
                    var t = new g.Req_Player_GetRank;
                    t.RankType = y.RankTypeId.RankMatch, C.RpcComponent.Instance.Call(t, function(t) {
                        e._rankData = t.Data, e._myTopRank = t.MyRank, e._myRankData = t.MyRankData, t.Data.Rows.length <= 0 ? A.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale()) : d.UIManager.Instance.ShowUIPanel(I.PanelConfig.RankDetailPanel.Path, y.RankTypeId.RankMatch, e._rankData.Rows, e._rankData.Achievements, e._myTopRank, e._myRankData)
                    })
                }
            }, t.prototype.OnSignUpBtnClick = function() {
                var e = this;
                if (this._arenaRankData && !this._arenaRankData.IsEnroll) {
                    var t = g.Req_Map_RankMatchEnroll.create();
                    C.RpcComponent.Instance.Call(t, function() {
                        e._arenaRankData.IsEnroll = 1, e.RefreshPanelInfo()
                    }, function() {
                        e.RefreshPanelInfo(!0)
                    })
                }
            }, t.prototype.OnFormationBtnClick = function() {
                d.UIManager.Instance.ShowUIPanel(I.PanelConfig.CrossServerRankEditTeamPanel.Path, {
                    Type: T.CrossServerRankEditTeamType.RankMatch,
                    Param: this._arenaRankData.MyInfo[0]
                })
            }, t.prototype.ReqPlacementChallenge = function(e) {
                if (!e) {
                    var t = Math.floor(Math.random() * this._arenaRankData.Players.length);
                    e = this._arenaRankData.Players[t].Id
                }
                this.RequestGetTargetDetail(e)
            }, t.prototype.ReqScoreMatchChallenge = function(e) {
                if (C.DataCenter.Instance.IsItemEnough(y.CommonItemId.RankMatchTicket, 1)) {
                    var t = C.DataCenter.Instance.GetArrayData(y.UserDataKey.RankMatchChallengeTargetUids);
                    if (e) {
                        if (t.includes(e)) return void A.UIUtlity.ShowFloatingHint("RankMatchArena_challengeHint".ToUILocale())
                    } else if (t) {
                        for (var n = {}, o = 0; o < t.length; o++) n[t[o]] = !0;
                        var r = [];
                        for (o = 0; o < this._arenaRankData.Players.length; o++) {
                            var i = this._arenaRankData.Players[o].Id;
                            i != C.DataCenter.Instance.Uid && (n[i] || r.push(o))
                        }
                        r.length > 0 && (a = Math.floor(Math.random() * r.length), e = this._arenaRankData.Players[r[a]].Id)
                    } else {
                        var a = Math.floor(Math.random() * this._arenaRankData.Players.length);
                        e = this._arenaRankData.Players[a].Id
                    }
                    e && this.RequestGetTargetDetail(e)
                } else A.UIUtlity.ShowFloatingHint("knife_count_limit".ToUILocale())
            }, t.prototype.RequestGetTargetDetail = function(e) {
                var t = new g.Req_Player_GetPlayerDetailInfo;
                t.Uid = e, this.Can3Teams ? t.FormationIds = [y.FormationIdType.RankMatch1, y.FormationIdType.RankMatch2, y.FormationIdType.RankMatch3] : t.FormationIds = [y.FormationIdType.RankMatch1], e < 0 && (t.PlayerType = y.PlayerInfoType.Robot), C.RpcComponent.Instance.Call(t, this.RequestTargetDetaileSuccess.bind(this))
            }, t.prototype.RequestTargetDetaileSuccess = function(e) {
                this._selectedTargetInfo = e.Info, this.Can3Teams ? d.UIManager.Instance.ShowUIPanel(I.PanelConfig.BattleFormationPanel.Path, this.OnEditTeamCallback.bind(this), [27, 27, 27], {
                    SeniorReport: e.Info,
                    CanSwitchFormation: !0
                }) : d.UIManager.Instance.ShowUIPanel(I.PanelConfig.BattleFormationPanel.Path, this.OnEditTeamCallback.bind(this), [27], {
                    SeniorReport: e.Info
                })
            }, t.prototype.OnEditTeamCallback = function(e) {
                var t;
                this.Can3Teams ? d.UIManager.Instance.ShowUIPanel(I.PanelConfig.RankMatchChallengeConfirmPanel.Path, this._selectedTargetInfo, this._placementMathCount < this._placementNeedChallengeCount, e) : (e = [e[0]], this._curCrossRankState == l.PlacementMatching ? ((t = new g.Req_Map_RankMatchClassificationChallenge).TargetUid = this._selectedTargetInfo.Uid, t.Formations = e, C.RpcComponent.Instance.Call(t, this.OnRequestChallengeSuccess.bind(this))) : ((t = new g.Req_Map_RankMatchChallenge).TargetUid = this._selectedTargetInfo.Uid, t.Formations = e, C.RpcComponent.Instance.Call(t, this.OnRequestChallengeSuccess.bind(this))))
            }, t.prototype.OnRequestChallengeSuccess = function(e) {
                k.default.BattleInfo = e, k.default.Reports = e.Reports, k.default.StartBattle(!1, this.Can3Teams)
            }, t.prototype.OnBuyTickectBtnClick = function() {
                var e = C.ConfigDataComponent.Instance.GetItemMax(y.CommonItemId.RankMatchTicket);
                if (e && C.DataCenter.Instance.GetItemCount(y.CommonItemId.RankMatchTicket) >= e) A.UIUtlity.ShowFloatingHint("itemBuyLimitHint".ToUILocale());
                else {
                    var t = C.ConfigDataComponent.Instance.GetConfigById(m.ShopItem_Config, 200101002),
                        n = this.GetAlreadyBuyCount();
                    t.LimitCount && t.LimitCount - n <= 0 ? A.UIUtlity.ShowFloatingHint("CrossServerLadderBuyCountLimit".ToUILocale()) : d.UIManager.Instance.ShowUIPanel(I.PanelConfig.BuyAndSellItemPanel.Path, 200101002, 1, n, L.BuyAndSellType.Buy, L.GoodsType.RankMatchTicket, 1)
                }
            }, t.prototype.GetAlreadyBuyCount = function() {
                var e = C.DataCenter.Instance.GetDataById(g.UserShop_Model, 2001),
                    t = 0;
                return e && e.Goods[200101002] && (t = e.Goods[200101002].Items[1]), t
            }, t.prototype.OnUserItemChange = function(e) {
                for (var t in e) switch (Number.parseInt(t)) {
                    case y.CommonItemId.RankMatchTicket:
                        this.RefreshScoreMatchCount()
                }
            }, t.prototype.OnClose = function() {
                d.UIManager.Instance.BackUIPanel()
            }, i([B(cc.Label)], t.prototype, "Title", void 0), i([B(cc.Button)], t.prototype, "RuleBtn", void 0), i([B(cc.Button)], t.prototype, "BackBtn", void 0), i([B(cc.ScrollView)], t.prototype, "ScoreMatchScrollView", void 0), i([B(cc.Label)], t.prototype, "UpSectionLabel", void 0), i([B(cc.Node)], t.prototype, "UpSectionNode", void 0), i([B(cc.Label)], t.prototype, "UpSectionHint", void 0), i([B(cc.Layout)], t.prototype, "UpSectionLayout", void 0), i([B(cc.Node)], t.prototype, "MiddleSectionNode", void 0), i([B(cc.Label)], t.prototype, "MiddleSectionLabel", void 0), i([B(cc.Layout)], t.prototype, "MiddleSectionLayout", void 0), i([B(cc.Node)], t.prototype, "DownSectionNode", void 0), i([B(cc.Label)], t.prototype, "DownSectionLabel", void 0), i([B(cc.Layout)], t.prototype, "DownSectionLayout", void 0), i([B(h.default)], t.prototype, "PlacementLayout", void 0), i([B(cc.ScrollView)], t.prototype, "PlacementScrollView", void 0), i([B(cc.RichText)], t.prototype, "ChallengeReward", void 0), i([B(cc.Button)], t.prototype, "ChallengeBtn", void 0), i([B(cc.Label)], t.prototype, "ChallengeBtnLabel", void 0), i([B(cc.Button)], t.prototype, "SignUpGrayBtn", void 0), i([B(cc.Label)], t.prototype, "SignUpGrayBtnLabel", void 0), i([B(cc.Label)], t.prototype, "SignUpTip", void 0), i([B(cc.Button)], t.prototype, "SignUpBtn", void 0), i([B(cc.Label)], t.prototype, "SignUpBtnLabel", void 0), i([B(cc.Button)], t.prototype, "RewardBtn", void 0), i([B(cc.Label)], t.prototype, "RewardBtnLabel", void 0), i([B(cc.Button)], t.prototype, "ShopBtn", void 0), i([B(cc.Label)], t.prototype, "ShopBtnLabel", void 0), i([B(cc.Button)], t.prototype, "RankBtn", void 0), i([B(cc.Label)], t.prototype, "RankBtnLabel", void 0), i([B(cc.Button)], t.prototype, "BattleReportBtn", void 0), i([B(cc.Label)], t.prototype, "BattleReportBtnLabel", void 0), i([B(cc.Button)], t.prototype, "FormationBtn", void 0), i([B(cc.Label)], t.prototype, "FormationBtnLabel", void 0), i([B(cc.Node)], t.prototype, "TopPlacementTitleNode", void 0), i([B(cc.Label)], t.prototype, "TopPlacementTitleLabel", void 0), i([B(cc.Label)], t.prototype, "TopPlacementCurRankTitle", void 0), i([B(cc.Label)], t.prototype, "TopPlacementCurRankName", void 0), i([B(cc.Label)], t.prototype, "TopPlacementNextRankName", void 0), i([B(cc.Sprite)], t.prototype, "TopPlaceCurRankIcon", void 0), i([B(cc.Sprite)], t.prototype, "TopPlaceNextRankIcon", void 0), i([B(cc.RichText)], t.prototype, "TopPlacementNextRankHint", void 0), i([B(cc.Node)], t.prototype, "TopStateTitleNode", void 0), i([B(cc.Label)], t.prototype, "TopStateTitleLabel", void 0), i([B(cc.Label)], t.prototype, "TopStateRankCurRankTitle", void 0), i([B(cc.Sprite)], t.prototype, "TopStateRankCurRankIcon", void 0), i([B(cc.Label)], t.prototype, "TopStateRankCurRankName", void 0), i([B(cc.Node)], t.prototype, "ScoreMatchCountDownNode", void 0), i([B(cc.Label)], t.prototype, "ScoreMatchCountDownTag", void 0), i([B(cc.Label)], t.prototype, "ScoreMatchCountDownTime", void 0), i([B(cc.Layout)], t.prototype, "TopChallengeCountLayout", void 0), i([B(cc.Label)], t.prototype, "TopChallengeCount", void 0), i([B(cc.Button)], t.prototype, "BuyTickectBtn", void 0), i([B(cc.Node)], t.prototype, "RestingCountDownNode", void 0), i([B(cc.Label)], t.prototype, "SignCountDownLeftTimeTag", void 0), i([B(cc.Label)], t.prototype, "SignCountDownLeftTime", void 0), i([B(cc.Label)], t.prototype, "SignUpHint", void 0), i([B(cc.Node)], t.prototype, "SelfPlayerHeadContainer", void 0), i([B(cc.Label)], t.prototype, "SelfServerName", void 0), i([B(cc.Node)], t.prototype, "SelfRankInfoNode", void 0), i([B(cc.Sprite)], t.prototype, "SelfRankBg", void 0), i([B(cc.Label)], t.prototype, "SelfRankNum", void 0), i([B(cc.Label)], t.prototype, "SelfPlayerName", void 0), i([B(cc.Label)], t.prototype, "SelfBattlePower", void 0), i([B(cc.Label)], t.prototype, "SelfScore", void 0), i([B(cc.Node)], t.prototype, "SelfRestingInfoNode", void 0), i([B(cc.Label)], t.prototype, "SelfRestingPlayerName", void 0), i([B(cc.RichText)], t.prototype, "SelfRestingLastRankScore", void 0), i([B(cc.RichText)], t.prototype, "SelfRestingRankLabel", void 0), i([B(cc.Node)], t.prototype, "SelfPlacementInfoNode", void 0), i([B(cc.Label)], t.prototype, "SelfPlacementPlayerName", void 0), i([B(cc.Label)], t.prototype, "SelfPlacementBattlePower", void 0), i([B(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([B(f.default)], t.prototype, "LoadAssetHelper", void 0), i([B(cc.Button)], t.prototype, "TopRankPromoteBtn", void 0), i([B(cc.Label)], t.prototype, "TopRankPromoteBtnLabel", void 0), i([D], t)
        }(d.BaseUIFullScreenPanel);
        n.default = N, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/LoadAssetHelper": "LoadAssetHelper",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./CrossServerRankEditTeamPanel": "CrossServerRankEditTeamPanel",
        "./RankMatchArenaMatchComponent": "RankMatchArenaMatchComponent",
        "./RankMatchArenaPlacementComponent": "RankMatchArenaPlacementComponent",
        "./RankMatchChallengeConfirmPanel": "RankMatchChallengeConfirmPanel",
        "./ShopUIPanel": "ShopUIPanel"
    }],
    RankMatchArenaPlacementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "83f1b+kHlhOv4XGsGczt8KD", "RankMatchArenaPlacementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../Consts/Consts"),
            l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../Components/HeadComponent"),
            p = e("../../Auxiliary/DataUtlity"),
            d = e("../../Components/DataCenter"),
            h = e("../../Components/RpcComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../../Components/Components"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.PlayerHeadContainer = null, t.PlayerName = null, t.PlayerServerName = null, t.BattlePower = null, t.DesignationIcon = null, t.ChallengeBtn = null, t.ChallengeBtnLabel = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._basePanel = e, this._playerInfo = t, this._isInitial || (this._isInitial = !0, this.ChallengeBtnLabel.string = "arena_challengeBtnText".ToUILocale(), this.ChallengeBtn.node.on("click", this.OnChallengeClick, this)), this.ConfigBaseInfo(), this.ConfigPlayerHeaderComponent()
                }, t.prototype.ConfigBaseInfo = function() {
                    if (this.PlayerName.string = this._playerInfo.PlayerInfo.Name, this._playerInfo.Id < 0) {
                        for (var e = Math.abs(this._playerInfo.Id), t = g.ConfigDataComponent.Instance.GetConfigById(l.PlayerRobot_Config, e), n = t.Power[0] || 0, o = 1; o < t.Power.length; o++) n = Math.max(t.Power[o] || 0, n);
                        this.BattlePower.string = n.toString()
                    } else this.BattlePower.string = this._playerInfo.PlayerInfo.Power.toString();
                    p.default.SetDesignationIcon(this._playerInfo.PlayerInfo.Designation, this.DesignationIcon)
                }, t.prototype.ConfigPlayerHeaderComponent = function() {
                    if (!this._headerComponent) {
                        var e = cc.instantiate(this._basePanel.PlayerHeadPrefab);
                        e.setParent(this.PlayerHeadContainer), e.on(cc.Node.EventType.TOUCH_END, this.OnShowPlayerInfo, this), this._headerComponent = e.getComponent(u.default)
                    }
                    var t;
                    this._playerInfo.Zone || (t = d.DataCenter.Zone), this.PlayerServerName.string = d.DataCenter.Instance.Zones[t].Name, this._headerComponent.SetUI(this._playerInfo.PlayerInfo.HeadIcon, this._playerInfo.PlayerInfo.HeadFrame, this._playerInfo.PlayerInfo.Title)
                }, t.prototype.OnShowPlayerInfo = function() {
                    if (this._playerInfo.PlayerInfo && this._playerInfo.PlayerInfo.Uid > 0) {
                        if (this._playerInfo.PlayerInfo.Uid == d.DataCenter.Instance.Uid) return;
                        var e;
                        e = this._basePanel.Can3Teams ? [s.FormationIdType.RankMatch1, s.FormationIdType.RankMatch2, s.FormationIdType.RankMatch3] : [s.FormationIdType.RankMatch1];
                        var t = new c.Req_Player_GetFormations;
                        t.Uid = this._playerInfo.PlayerInfo.Uid, t.Zone = this._playerInfo.Zone, t.FormationIds = e, h.RpcComponent.Instance.Call(t, this.OnRequestChampionFormation.bind(this))
                    } else f.UIUtlity.ShowFloatingHint("click_robot_hero_item_tip".ToUILocale())
                }, t.prototype.OnRequestChampionFormation = function(e) {
                    a.UIManager.Instance.ShowUIPanel(y.PanelConfig.CommonPvpPlayerInfoPanel.Path, e.Info, e.Formations)
                }, t.prototype.OnChallengeClick = function() {
                    this._basePanel.ReqPlacementChallenge(this._playerInfo.PlayerInfo.Uid)
                }, i([_(cc.Node)], t.prototype, "PlayerHeadContainer", void 0), i([_(cc.Label)], t.prototype, "PlayerName", void 0), i([_(cc.Label)], t.prototype, "PlayerServerName", void 0), i([_(cc.Label)], t.prototype, "BattlePower", void 0), i([_(cc.Sprite)], t.prototype, "DesignationIcon", void 0), i([_(cc.Button)], t.prototype, "ChallengeBtn", void 0), i([_(cc.Label)], t.prototype, "ChallengeBtnLabel", void 0), i([I], t)
            }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent"
    }],
    RankMatchArenaSettlementItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "89dfd+wqwxKmLjnmR3Kflh6", "RankMatchArenaSettlementItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../ShareConsts/BattleConsts"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../Components/DataCenter"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MyWinIcon = null, t.MyLoseIcon = null, t.StatisticButton = null, t.StatisticButtonLabel = null, t.OpponentWinIcon = null, t.OpponentLoseIcon = null, t.TeamNumLabelLeft = null, t.TeamNumLabelRight = null, t._itemPrefab = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.StatisticButton.node.on("click", this.OnStatisticButtonClicked, this)
                }, t.prototype.Init = function(e, t, n) {
                    return void 0 === n && (n = !1), a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return l.EZLog.Log("SeniorArenaSettlementItem Init data.Round : " + e.Round), this._reportData = e, this._needCheckTimeOut = n, this._myCamp = this.IsAttacker(e) ? c.CampType.Attacker : c.CampType.Defender, this.StatisticButtonLabel.string = "SeniorArena_BattleRound".ToUILocale().Fmt((t + 1).toString()), this.SetResultTagView(), this.TeamNumLabelLeft.string = this.TeamNumLabelRight.string = "SeniorArena_TeamIndex".ToUILocale().Fmt(t + 1), [2]
                        })
                    })
                }, t.prototype.IsAttacker = function(e) {
                    return e.Players[0].Uid == d.DataCenter.Instance.Uid && e.Players[0].Camp == c.CampType.Attacker || e.Players[1].Uid == d.DataCenter.Instance.Uid && e.Players[1].Camp == c.CampType.Attacker
                }, t.prototype.SetResultTagView = function() {
                    var e = u.default.CheckIsSelfBattleWin(this._reportData, this._needCheckTimeOut);
                    this.MyWinIcon.node.active = e, this.OpponentLoseIcon.node.active = e, this.MyLoseIcon.node.active = !e, this.OpponentWinIcon.node.active = !e
                }, t.prototype.OnStatisticButtonClicked = function() {
                    l.UIManager.Instance.ShowUIPanel(p.PanelConfig.BattleStatisticsPanel.Path, [this._reportData])
                }, t.prototype.isWin = function(e, t) {
                    var n = !1;
                    return e == c.CampType.Attacker && t == c.BattleResult.AttackerWin && (n = !0), e != c.CampType.Defender || t != c.BattleResult.DefenderWin && t != c.BattleResult.Timeout || (n = !0), n
                }, t.prototype.onDestroy = function() {
                    this._itemPrefab && (l.AssetsManager.Instance.UnloadAsset(this._itemPrefab), this._itemPrefab = null)
                }, i([y(cc.Sprite)], t.prototype, "MyWinIcon", void 0), i([y(cc.Sprite)], t.prototype, "MyLoseIcon", void 0), i([y(cc.Button)], t.prototype, "StatisticButton", void 0), i([y(cc.Label)], t.prototype, "StatisticButtonLabel", void 0), i([y(cc.Sprite)], t.prototype, "OpponentWinIcon", void 0), i([y(cc.Sprite)], t.prototype, "OpponentLoseIcon", void 0), i([y(cc.Label)], t.prototype, "TeamNumLabelLeft", void 0), i([y(cc.Label)], t.prototype, "TeamNumLabelRight", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter"
    }],
    RankMatchBattleReportItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e4f379jEv5I3Kqy/Sl8HBkL", "RankMatchBattleReportItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("./HeadComponent"),
            s = e("../../../../Proto/Static/RpcProto"),
            l = e("../../Components/DataCenter"),
            c = e("../../../Util/TimeUtil"),
            u = e("../../Components/RpcComponent"),
            p = e("../Panel/RankMatchChallengeConfirmPanel"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.AttackIcon = null, t.DefendIcon = null, t.WinIcon = null, t.LoseIcon = null, t.ScoreNode = null, t.UpIcon = null, t.UpValue = null, t.DownIcon = null, t.DownValue = null, t.HeadNode = null, t.ReplayButton = null, t.RivalName = null, t.Date = null, t.Time = null, t._headComponent = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t) {
                    this._reportData = e, this._isInit || (this._isInit = !0, this.ReplayButton.node.on("click", this.OnReplayButtonClicked, this));
                    var n = l.DataCenter.Instance.Uid == e.AttackerInfo.Uid,
                        o = n && !!e.Result || !n && !e.Result,
                        r = n ? e.IntParams[0] : e.IntParams[1];
                    r ? (this.ScoreNode.active = !0, this.UpValue.string = r.toString(), this.DownValue.string = this.UpValue.string) : this.ScoreNode.active = !1;
                    var i = c.TimeUtil.Format("YYYY/MM/DD", e.Ts),
                        a = c.TimeUtil.Format("HH:mm:ss", e.Ts),
                        s = n ? e.DefenderInfo : e.AttackerInfo;
                    this.AttackIcon.active = n, this.DefendIcon.active = !n, this.WinIcon.active = o, this.LoseIcon.active = !o, this.UpIcon.active = o, this.UpValue.node.active = o, this.DownIcon.active = !o, this.DownValue.node.active = !o, this.RivalName.string = s.Name, this.Date.string = i, this.Time.string = a, this.SetHeadComponent(t, s.HeadIcon, s.HeadFrame, s.Level, s.Title)
                }, t.prototype.OnReplayButtonClicked = function() {
                    var e = this,
                        t = new s.Req_Player_GetCommonReport;
                    t.Id = this._reportData.Report, u.RpcComponent.Instance.Call(t, function(t) {
                        p.default.BattleInfo = e._reportData, p.default.Reports = t.Reports, p.default.StartBattle(!0, t.Reports.length > 1)
                    })
                }, t.prototype.SetHeadComponent = function(e, t, n, o, r) {
                    if (!this._headComponent) {
                        var i = cc.instantiate(e);
                        i.setParent(this.HeadNode), this._headComponent = i.getComponent(a.default)
                    }
                    r ? this._headComponent.SetUI(t, n, r) : this._headComponent.SetUI(t, n), this._headComponent.SetLevel(o)
                }, i([f(cc.Node)], t.prototype, "AttackIcon", void 0), i([f(cc.Node)], t.prototype, "DefendIcon", void 0), i([f(cc.Node)], t.prototype, "WinIcon", void 0), i([f(cc.Node)], t.prototype, "LoseIcon", void 0), i([f(cc.Node)], t.prototype, "ScoreNode", void 0), i([f(cc.Node)], t.prototype, "UpIcon", void 0), i([f(cc.Label)], t.prototype, "UpValue", void 0), i([f(cc.Node)], t.prototype, "DownIcon", void 0), i([f(cc.Label)], t.prototype, "DownValue", void 0), i([f(cc.Node)], t.prototype, "HeadNode", void 0), i([f(cc.Button)], t.prototype, "ReplayButton", void 0), i([f(cc.Label)], t.prototype, "RivalName", void 0), i([f(cc.Label)], t.prototype, "Date", void 0), i([f(cc.Label)], t.prototype, "Time", void 0), i([h], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Panel/RankMatchChallengeConfirmPanel": "RankMatchChallengeConfirmPanel",
        "./HeadComponent": "HeadComponent"
    }],
    RankMatchBattleReportPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "40237yMpSRKk5D1x4Z+ZIq7", "RankMatchBattleReportPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Components/AsyncLayout"),
            u = e("../Components/RankMatchBattleReportItem"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.TitleText = null, t.ReportScrollView = null, t.ReportScrollViewContent = null, t.EmptyText = null, t.Mask = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t, n, o = this;
                        return s(this, function(r) {
                            switch (r.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("Arena/RankMatchArenaPanel/RankMatchBattleReportItem", cc.Prefab), n = this.LoadDynamicAsset(p.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                        o._reportItemPrefab = e[0], o._headComponentPrefab = e[1]
                                    })];
                                case 1:
                                    return r.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleText.string = "allianceWar_report".ToUILocale(), this.EmptyText.string = "arena_reportPanelEmptyDesc".ToUILocale(), this.ReportScrollViewContent.Init(this._reportItemPrefab, this.OnRenderReportItem.bind(this))
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._reportDatas = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this._reportDatas.length > 0 ? (this.ReportScrollViewContent.RenderLayout(this._reportDatas.length), this.EmptyText.node.active = !1) : this.EmptyText.node.active = !0)
                }, t.prototype.OnRenderReportItem = function(e, t) {
                    e.getComponent(u.default).Init(this._reportDatas[this._reportDatas.length - t - 1], this._headComponentPrefab)
                }, i([f(cc.Label)], t.prototype, "TitleText", void 0), i([f(cc.ScrollView)], t.prototype, "ReportScrollView", void 0), i([f(c.default)], t.prototype, "ReportScrollViewContent", void 0), i([f(cc.Label)], t.prototype, "EmptyText", void 0), i([f(cc.Node)], t.prototype, "Mask", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/RankMatchBattleReportItem": "RankMatchBattleReportItem"
    }],
    RankMatchChallengeConfirmPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "2ee49F6/eZKLJlZ84sTFSEs", "RankMatchChallengeConfirmPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../Consts/GameEventIds"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../../ShareConsts/BattleConsts"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/RpcComponent"),
            m = e("../Battle/BattleData"),
            I = e("../Battle/BattleManager"),
            _ = e("../Components/SeniorArenaVSInfoItem"),
            C = cc._decorator,
            v = C.ccclass,
            b = C.property,
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !1), t.PanelNameLabel = null, t.RuleLabel = null, t.ListViewContainer = null, t.ChallengeButton = null, t.ChallengeButtonLabel = null, t._myTeamDatas = null, t._opponentTargetInfo = null, t._opponentTeamDatas = [], t._editTeamSkiped = !1, t
                }
                var n;
                return r(t, e), n = t, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelNameLabel.string = "SeniorArenaChallengeConfirm_Name".ToUILocale(), this.RuleLabel.string = "SeniorArenaChallengeConfirm_Rule".ToUILocale(), this.ChallengeButtonLabel.string = "SeniorArenaChallenge".ToUILocale(), this.ChallengeButton.node.on("click", this.OnChallengeButtonClicked, this), n.PanelInstance = this
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._opponentTargetInfo = t[0], this._isPlacementChallenge = t[1], t[2] && (this._myTeamDatas = t[2])
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.SetMyTeamsData(), this.SetOpponentTeamData(), this.SetListView()
                }, t.prototype.SetMyTeamsData = function() {
                    if (null == this._myTeamDatas) {
                        this._editTeamSkiped = !0, this._myTeamDatas = [];
                        var e = y.DataCenter.Instance.GetDataById(l.UserFormation_Model, p.FormationIdType.SeniorArenaAttack1),
                            t = y.DataCenter.Instance.GetDataById(l.UserFormation_Model, p.FormationIdType.SeniorArenaAttack2),
                            n = y.DataCenter.Instance.GetDataById(l.UserFormation_Model, p.FormationIdType.SeniorArenaAttack3);
                        e && this._myTeamDatas.push(e), t && this._myTeamDatas.push(t), n && this._myTeamDatas.push(n)
                    }
                }, t.prototype.SetOpponentTeamData = function() {
                    var e = this._opponentTargetInfo.Formations[0] && this._opponentTargetInfo.Formations[0].Heros ? this._opponentTargetInfo.Formations[0].Heros : null,
                        t = this._opponentTargetInfo.Formations[1] && this._opponentTargetInfo.Formations[1].Heros ? this._opponentTargetInfo.Formations[1].Heros : null,
                        n = this._opponentTargetInfo.Formations[2] && this._opponentTargetInfo.Formations[2].Heros ? this._opponentTargetInfo.Formations[2].Heros : null;
                    e && this._opponentTeamDatas.push(e), t && this._opponentTeamDatas.push(t), n && this._opponentTeamDatas.push(n), this._opponentTeamDatas.length
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, this.LoadDynamicAsset("Arena/SeniorArenaPrivate/SeniorArenaVSInfoItem", cc.Prefab)];
                                case 1:
                                    for (e = o.sent(), this.isValid || u.AssetsManager.Instance.UnloadAsset(e), t = 0; t < this._myTeamDatas.length; t++)(n = cc.instantiate(e)).getComponent(_.default).Init(this._myTeamDatas[t].HeroIds, this._opponentTeamDatas[t], t, this._opponentTargetInfo), this.ListViewContainer.addChild(n);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnChallengeButtonClicked = function() {
                    if (this._isPlacementChallenge) {
                        (t = new l.Req_Map_RankMatchClassificationChallenge).TargetUid = this._opponentTargetInfo.Uid;
                        var e = [];
                        this._editTeamSkiped || (e = this._myTeamDatas), t.Formations = e, g.RpcComponent.Instance.Call(t, this.OnRequestSeniorArenaChallengeSuccess.bind(this))
                    } else {
                        var t;
                        (t = new l.Req_Map_RankMatchChallenge).TargetUid = this._opponentTargetInfo.Uid, e = [], this._editTeamSkiped || (e = this._myTeamDatas), t.Formations = e, g.RpcComponent.Instance.Call(t, this.OnRequestSeniorArenaChallengeSuccess.bind(this))
                    }
                }, t.prototype.OnRequestSeniorArenaChallengeSuccess = function(e) {
                    n.BattleInfo = e, n.Reports = e.Reports, n.StartBattle(!1, !0), u.UIManager.Instance.CloseUIPanel(f.PanelConfig.RankMatchChallengeConfirmPanel.Path)
                }, t.prototype.Close = function() {
                    e.prototype.Close.call(this), this.ListViewContainer.destroyAllChildren()
                }, t.InitBattle = function() {
                    var e = d.MapType.RankMatch;
                    u.Game.EventDispatcher.Only(c.GameEventIds.StartBattle.Fmt(e), n.StartBattle, n), u.Game.EventDispatcher.Only(c.GameEventIds.SettleBattle.Fmt(e), n.SettleBattle, n), u.Game.EventDispatcher.Only(c.GameEventIds.SettleAllBattle.Fmt(e), n.SettleFunction, n), u.Game.EventDispatcher.Only(c.GameEventIds.BattleSwitchToBackground.Fmt(e), n.OnBattleSwitchToBackground, n)
                }, t.StartBattle = function(e, t) {
                    void 0 === e && (e = !1), u.EZLog.Log("Enter StartBattle"), n.NextBattleIndex = 0;
                    var o = n.GetNextBattleReport(),
                        r = {},
                        i = {};
                    i = e ? {
                        CanCanel: !1,
                        CanRestart: !1,
                        DontCloseOnEnd: !0,
                        CanSwitchSpeed: !0,
                        CanSkipPlay: !0,
                        CanPlayInBackground: !1,
                        SkipPlayRound: 1
                    } : {
                        CanCanel: !1,
                        CanRestart: !1,
                        DontCloseOnEnd: !0,
                        CanSwitchSpeed: !0,
                        CanSkipPlay: !0,
                        CanPlayInBackground: !1
                    }, t && (i.MultiBattleResult = [0, 0, 0], i.CanSkipAllPlay = t), r = I.BattleManager.Instance.StartPlay(o, i), e && (r.SettleParams = [n.BattleInfo, n.Reports]), t && u.UIManager.Instance.ShowUIPanel(f.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, p.CampType.Attacker, r)
                }, t.GetNextBattleReport = function() {
                    var e = null;
                    return n.BattleInfo && n.NextBattleIndex < n.Reports.length && (e = n.Reports[n.NextBattleIndex], n.NextBattleIndex += 1), e
                }, t.SettleBattle = function(e) {
                    var t = n.GetNextBattleReport();
                    if (t) {
                        e.Reports[0] = t;
                        var o = n.Reports[n.NextBattleIndex - 2].Result,
                            r = !1;
                        n.Reports[n.NextBattleIndex - 2].Players.forEach(function(e) {
                            e.Uid == y.DataCenter.Instance.Uid && e.Camp == p.CampType.Attacker ? r = o == p.BattleResult.AttackerWin : e.Uid == y.DataCenter.Instance.Uid && e.Camp == p.CampType.Defender && (r = o == p.BattleResult.DefenderWin || o == p.BattleResult.Timeout)
                        }), e.ExtraParam.MultiBattleResult[n.NextBattleIndex - 2] = r ? 1 : -1, e.InBackground ? I.BattleManager.Instance.NextWave(e) : u.UIManager.Instance.ShowUIPanel(f.PanelConfig.SeniorArenaBattleTransitionPanel.Path, n.NextBattleIndex, p.CampType.Attacker, e, n.ShowNextBattle)
                    } else n.SettleFunction(e)
                }, t.SettleFunction = function(e) {
                    if (e.InBackground || u.Game.EventDispatcher.Emit(c.GameEventIds.DelayCloseBattlePanel), delete m.BattleData.PlayingBattleDatas[d.MapType.RankMatch], e.SettleParams) {
                        var t = "Arena/RankMatchArenaPanel/RankMatchSettlementComponent",
                            o = e.SettleParams[0];
                        y.DataCenter.Instance.Uid == o.AttackerInfo.Uid == !!o.Result ? I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementWinPanel.Path, t, e, null, o.Result, [!1]) : I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementFailPanel.Path, t, e, null, o.Result, [!1])
                    } else {
                        t = "Arena/RankMatchArenaPanel/RankMatchSettlementComponent";
                        var r = n.BattleInfo;
                        e.SettleParams = [r], r.Result ? I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementWinPanel.Path, t, e, null, r.Result, [!0]) : I.BattleManager.Instance.ShowSettlePanel(f.PanelConfig.SettlementFailPanel.Path, t, e, null, r.Result, [!0]), u.Game.EventDispatcher.Emit(h.EventKeys.EVENT_RANKMATCH_REFRESH, !0)
                    }
                }, t.ShowNextBattle = function(e) {
                    u.EZLog.Log("ShowNextBattle "), I.BattleManager.Instance.NextWave(e)
                }, t.OnBattleSwitchToBackground = function() {
                    u.UIManager.Instance.QuitPanelStack(f.PanelConfig.SeniorArenaPanel.Path)
                }, t.PanelInstance = null, t.CurrentBattleMapId = 0, t.CurrentStageIndex = 0, t.CurrentShownMode = 0, t.CurrentResult = 0, t.SelectedBuffIndex = 0, t.CacheWave = 0, t.BattleInfo = null, t.Reports = null, t.NextBattleIndex = 0, i([b(cc.Label)], t.prototype, "PanelNameLabel", void 0), i([b(cc.Label)], t.prototype, "RuleLabel", void 0), i([b(cc.Node)], t.prototype, "ListViewContainer", void 0), i([b(cc.Button)], t.prototype, "ChallengeButton", void 0), i([b(cc.Label)], t.prototype, "ChallengeButtonLabel", void 0), n = i([v], t)
            }(u.BaseUIPanel);
        n.default = S, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/GameEventIds": "GameEventIds",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/SeniorArenaVSInfoItem": "SeniorArenaVSInfoItem"
    }],
    RankMatchComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e1a00PFj/5Kyr3UHBlJyO48", "RankMatchComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../../Consts/Consts"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../Util/TimeUtil"),
            u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BtnName = null, t.CountDownLabel = null, t
                }
                return r(t, e), t.prototype.Init = function() {
                    this._isInit || (this.node.on("click", this.OnBtnClick), this.BtnName.string = "<outline width=4 color=#202434>" + "RankMatchArena_ruleTitle".ToUILocale() + "</outline>", this._isInit = !0);
                    var e = a.ConfigDataComponent.Instance.GetGlobalSettingByKey("RankMathchCompetitionNum");
                    if (!((a.DataCenter.Instance.GetArrayData(s.UserDataKey.RankMatchClassificationInfo)[0] || 0) < e || this._nextRefreshTime)) {
                        this._nextRefreshTime = -1;
                        var t = l.Req_Map_EnterScoreMatch.create();
                        a.RpcComponent.Instance.Call(t, this.RefreshBtnName.bind(this))
                    }
                }, t.prototype.OnBtnClick = function() {
                    var e = l.Req_Map_EnterScoreMatch.create();
                    a.RpcComponent.Instance.Call(e, function(e) {
                        p.UIManager.Instance.ShowUIPanel(d.PanelConfig.RankMatchArenaPanel.Path, e)
                    })
                }, t.prototype.RefreshBtnName = function(e) {
                    var t;
                    e && (this.scoreMatchInfo = e), t = this.GetNextRankMatchRefreshTime(this.scoreMatchInfo.IsEnroll), this._nextRefreshTime = t[0], t[1], this.SetCountDown()
                }, t.prototype.GetNextRankMatchRefreshTime = function(e) {
                    var t, n, o, r, i, l;
                    this._startTimelevelParam || (this._startTimelevelParam = a.ConfigDataComponent.Instance.GetConfigById(u.LevelParam_Config, s.LevelParamType.RankMatchOpenTs)), o = (t = this._startTimelevelParam.Data2[0].Items)[0], r = t[1], i = (n = this._startTimelevelParam.Data2[1].Items)[0], l = n[1];
                    var p = a.RpcComponent.Instance.ServerTime,
                        d = c.TimeUtil.GetMondayClock0Ts(p),
                        h = c.TimeUtil.GetOffsetHourTs(3, d),
                        f = c.TimeUtil.GetOffsetHourTs(o, d),
                        y = c.TimeUtil.GetOffsetHourTs(r, d),
                        g = c.TimeUtil.GetOffsetDayTs(4, d),
                        m = c.TimeUtil.GetOffsetHourTs(3, g),
                        I = c.TimeUtil.GetOffsetHourTs(i, d),
                        _ = c.TimeUtil.GetOffsetHourTs(l, d);
                    return e ? p < h ? [h, !1] : p < f ? 1 == e ? [f, !1] : [I, !1] : p < y ? 1 == e ? [y, !0] : [I, !1] : p < m ? [I, !1] : p < I ? 1 == e ? [I, !1] : [c.TimeUtil.GetOffsetDayTs(7, f), !1] : p < _ && 1 == e ? [_, !0] : [c.TimeUtil.GetOffsetDayTs(7, f), !1] : p < h ? [h, !1] : p < m ? [m, !1] : [c.TimeUtil.GetOffsetDayTs(7, h), !1]
                }, t.prototype.SetCountDown = function() {
                    var e = this;
                    this.CountDownLabel.node.active = !0, this.unschedule(this.RefreshTimeLabel), this.RefreshTimeLabel(), this.schedule(function() {
                        e.RefreshTimeLabel()
                    }, 1)
                }, t.prototype.RefreshTimeLabel = function() {
                    var e = a.RpcComponent.Instance.ServerTime,
                        t = this._nextRefreshTime - e;
                    t = t < 0 ? 0 : t, this.CountDownLabel.string = t.FmtRemainTime(), t <= 0 && (this.CountDownLabel.node.active = !1, this.RefreshBtnName())
                }, i([y(cc.RichText)], t.prototype, "BtnName", void 0), i([y(cc.Label)], t.prototype, "CountDownLabel", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components"
    }],
    RankMatchRankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e9ee0Md2ZlAEpsX+nwaISSx", "RankMatchRankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Components/Components"),
            p = e("../Components/CustomLayout"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Components/CustomToggle"),
            f = e("../Components/AllianceBossRankListItem"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/HeadComponent"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../Channel/ChannelManager"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.Title = null, t.Tip = null, t.CustomLayout = null, t.NoneTip = null, t.RankIcon = null, t.RankLabel = null, t.PlayerInfoScoreTag = null, t.PlayerInfoScoreValue = null, t.PlayerInfoName = null, t.PlayerInfoPlayerLevel = null, t.PlayerInfoHeadNode = null, t.PlayerTagBg = null, t.PlayerTagLabel = null, t.SelfRankBg = null, t.SelfRankNumBg = null, t.SelfRankBorder = null, t.SelfRankPattern1 = null, t.SelfRankPattern2 = null, t.Toggle = null, t.PROMOTE_COLOR = new cc.Color(254, 217, 74), t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("AllianceBossPanel/Components/AllianceBossRankListItem", cc.Prefab), n = this.LoadDynamicAsset("RankPanel/Png/RankAtlas", cc.SpriteAtlas), o = this.LoadDynamicAsset(y.BundlePath.HeadComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                        r._rankListPrefab = e[0], r._rankAtlas = e[1], r._headPrefab = e[2]
                                    })];
                                case 1:
                                    return i.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "RankMatchArena_list".ToUILocale(), this.NoneTip.string = "openServer_heroTest_noRatingYet".ToUILocale(), this.PlayerInfoScoreTag.string = "activityBoss_score".ToUILocale(), this.Toggle.Init("RankMatchArena_list".ToUILocale()), this.CustomLayout.Init(this._rankListPrefab), this.SetRankAtlasSprite()
                }, t.prototype.SetRankAtlasSprite = function() {
                    this.SelfRankBg.spriteFrame = this._rankAtlas.getSpriteFrame("rankBottomBg4"), this.SelfRankBorder.spriteFrame = this._rankAtlas.getSpriteFrame("rankBorder4"), this.SelfRankNumBg.spriteFrame = this._rankAtlas.getSpriteFrame("tag4"), this.SelfRankPattern1.spriteFrame = this._rankAtlas.getSpriteFrame("pattern1"), this.SelfRankPattern2.spriteFrame = this._rankAtlas.getSpriteFrame("pattern2")
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._rankData = t[0], this._myScore = t[1], this._rankData && this._rankData.Data && this._rankData.Data.Rows && (this.Tip.string = "RankMatchArena_promotionHint2".ToUILocale().Fmt(this._rankData.MyRank))
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.SetCurrentToggleInfo()
                }, t.prototype.SetCurrentToggleInfo = function() {
                    this.RankLabel.node.active = !1, this.RankIcon.node.active = !1, this.SetPlayerShow()
                }, t.prototype.SetMayPlayerInfo = function() {
                    this.PlayerInfoScoreValue.string = this._myScore.toString(), this.PlayerInfoName.string = u.DataCenter.Instance.GetStringData(m.UserDataKey.RoleName), this.PlayerInfoPlayerLevel.string = u.DataCenter.Instance.GetIntData(m.UserDataKey.PlayerLevel).toString();
                    var e = cc.instantiate(this._headPrefab);
                    e.parent = this.PlayerInfoHeadNode;
                    var t, n = e.getComponent(g.default),
                        o = u.DataCenter.Instance.GetIntData(m.UserDataKey.HeadIcon),
                        r = u.DataCenter.Instance.GetIntData(m.UserDataKey.HeadFrame);
                    n.SetUI(o, r), (t = u.DataCenter.Instance.GetStringData(m.UserDataKey.Country)) || (t = I.default.Instance.Localization_Country), t = 0 == u.DataCenter.Instance.GetIntData(m.UserDataKey.CountryShowState) ? t : "", n.SetCountry(t), this._rankData.MyRankData ? (this.PlayerTagBg.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_red"), this.PlayerTagLabel.string = "RankMatchArena_canPromote".ToUILocale(), this.PlayerTagLabel.node.color = this.PROMOTE_COLOR) : (this.PlayerTagBg.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_blue"), this.PlayerTagLabel.string = "RankMatchArena_cannotPromote".ToUILocale(), this.PlayerTagLabel.node.color = cc.Color.WHITE)
                }, t.prototype.SetPlayerShow = function() {
                    this.SetMayPlayerInfo(), this.CustomLayout.RenderLayOut(this._rankData.Data.Rows.length), this.NoneTip.node.active = 0 == this._rankData.Data.Rows.length, this._rankData.MyRankData && this._rankData.MyRankData.Id <= 3 ? (this.RankIcon.node.active = !0, this.RankIcon.spriteFrame = c.UIUtlity.COMMON_ATLAS4.getSpriteFrame("rank_no" + this._rankData.MyRankData.Id)) : (this.RankLabel.node.active = !0, this.RankLabel.string = this._rankData.MyRankData ? "" + this._rankData.MyRankData.Id : "rank_out_max_rank".ToUILocale())
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.CustomLayout && e.forEach(function(e, t) {
                        n._rankData.Data.Rows[t].Id = t + 1, e.getComponent(f.default).Init(n._rankData.Data.Rows[t], n._rankAtlas, null, n._headPrefab, 1)
                    })
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.Label)], t.prototype, "Tip", void 0), i([v(p.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Label)], t.prototype, "NoneTip", void 0), i([v(cc.Sprite)], t.prototype, "RankIcon", void 0), i([v(cc.Label)], t.prototype, "RankLabel", void 0), i([v(cc.Label)], t.prototype, "PlayerInfoScoreTag", void 0), i([v(cc.Label)], t.prototype, "PlayerInfoScoreValue", void 0), i([v(cc.Label)], t.prototype, "PlayerInfoName", void 0), i([v(cc.Label)], t.prototype, "PlayerInfoPlayerLevel", void 0), i([v(cc.Node)], t.prototype, "PlayerInfoHeadNode", void 0), i([v(cc.Sprite)], t.prototype, "PlayerTagBg", void 0), i([v(cc.Label)], t.prototype, "PlayerTagLabel", void 0), i([v(cc.Sprite)], t.prototype, "SelfRankBg", void 0), i([v(cc.Sprite)], t.prototype, "SelfRankNumBg", void 0), i([v(cc.Sprite)], t.prototype, "SelfRankBorder", void 0), i([v(cc.Sprite)], t.prototype, "SelfRankPattern1", void 0), i([v(cc.Sprite)], t.prototype, "SelfRankPattern2", void 0), i([v(h.default)], t.prototype, "Toggle", void 0), i([C], t)
            }(l.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AllianceBossRankListItem": "AllianceBossRankListItem",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/HeadComponent": "HeadComponent"
    }],
    RankMatchRankRewardItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dcf31BdLjtAlo7TC4gun7d6", "RankMatchRankRewardItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../Components/GlobalConfigComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./ItemComponent"),
            f = e("./LoadAssetHelper"),
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RankLabel = null, t.RankIcon = null, t.RankTitleLangIcon = null, t.ScrollView = null, t.ItemComponentContainer = null, t.LoadAssetHelper = null, t.NoRankHint = null, t._itemComponents = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemComponentContainer.children.indexOf(t) && d.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.Init = function(e, t) {
                    if (this._isInit || (this.NoRankHint.string = "RankMatchArena_noRank".ToUILocale(), this._isInit = !0), t) {
                        t.MinorRank ? (this.RankTitleLangIcon.node.active = !1, this.RankIcon.node.active = !0, this.LoadAssetHelper.LoadSpriteFrame("RankMatchIcons/" + t.MainRank, this.RankIcon, null, 1), this.RankLabel.string = d.UIUtlity.GetRomanNumerals(t.MinorRank)) : (this.RankTitleLangIcon.node.active = !0, this.RankIcon.node.active = !1, this.LoadAssetHelper.LoadSpriteFrame(p.GlobalConfigComponent.GetMultilangKey("MultilangPlayerTitleIcon/" + t.Id), this.RankTitleLangIcon, null, 2)), this.ItemComponentContainer.active = !0;
                        for (var n = !!t.NextRank, o = 0, r = 0; r < t.Rewards.length; r++) {
                            var i = t.Rewards[r].Items[0];
                            if (n || i != t.Id) {
                                if (!this._itemComponents[r - o]) {
                                    var a = cc.instantiate(e);
                                    a.setParent(this.ItemComponentContainer), this._itemComponents[r - o] = a.getComponent(h.ItemComponent)
                                }
                                var s = this._itemComponents[r - o];
                                s.node.active = !0;
                                var l = t.Rewards[r].Items[1];
                                s.Init({
                                    ItemId: i,
                                    Count: l
                                }), s.SetCountFontSize(28, 116), s.node.name = i.toString()
                            } else o += 1
                        }
                        for (r = t.Rewards.length - o; r < this._itemComponents.length; r++) this._itemComponents[r].node.active = !1;
                        this.NoRankHint.node.active = !1
                    } else this.NoRankHint.node.active = !0, this.ItemComponentContainer.active = !1
                }, i([l(cc.Label)], t.prototype, "RankLabel", void 0), i([l(cc.Sprite)], t.prototype, "RankIcon", void 0), i([l(cc.Sprite)], t.prototype, "RankTitleLangIcon", void 0), i([l(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([l(cc.Node)], t.prototype, "ItemComponentContainer", void 0), i([l(f.default)], t.prototype, "LoadAssetHelper", void 0), i([l(cc.Label)], t.prototype, "NoRankHint", void 0), i([s], t)
            }(cc.Component);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/GlobalConfigComponent": "GlobalConfigComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent",
        "./LoadAssetHelper": "LoadAssetHelper"
    }],
    RankMatchRankRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "03fb9i/AR9Pa5DB6XROAWYz", "RankMatchRankRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Auxiliary/GlobalDefine"),
            u = e("../../Components/Components"),
            p = e("../Components/AsyncLayout"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../Components/RankMatchRankRewardItem"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.PanelNameLabel = null, t.RuleLabel = null, t.MyRankTitleLabel = null, t.MyRewardNode = null, t.RewardAsyncLayout = null, t._myRankId = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return e = this.LoadDynamicAsset("Arena/RankMatchArenaPanel/RankMatchRankRewardItem", cc.Prefab), t = this.LoadDynamicAsset(c.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([e, t]).then(function(e) {
                                        n._rewardItemPrefab = e[0], n._itemComponentPrefab = e[1]
                                    })];
                                case 1:
                                    return o.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.PanelNameLabel.string = "crossServerRank_reward".ToUILocale(), this.MyRankTitleLabel.string = "RankMatchArena_myRankTitle".ToUILocale(), this.RuleLabel.string = "RankMatchArena_rankRewardTip".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._myRankId = t[0], this._rankMatchConfigs = u.ConfigDataComponent.Instance.GetArrayConfig(d.RankMatch_Config)
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.RewardAsyncLayout.Init(this._rewardItemPrefab, this.OnRenderRewardItem.bind(this)), this.RefreshPanelInfo(), this.SetMyReward())
                }, t.prototype.RefreshPanelInfo = function() {
                    this.RewardAsyncLayout.RenderLayout(this._rankMatchConfigs.length)
                }, t.prototype.OnRenderRewardItem = function(e, t) {
                    e.getComponent(h.default).Init(this._itemComponentPrefab, this._rankMatchConfigs[this._rankMatchConfigs.length - t - 1])
                }, t.prototype.SetMyReward = function() {
                    if (!this._myRewardItem) {
                        var e = cc.instantiate(this._rewardItemPrefab);
                        e.setParent(this.MyRewardNode), this._myRewardItem = e.getComponent(h.default)
                    }
                    var t;
                    this._myRankId && (t = u.ConfigDataComponent.Instance.GetConfigById(d.RankMatch_Config, this._myRankId)), this._myRewardItem.Init(this._itemComponentPrefab, t)
                }, i([g(cc.Label)], t.prototype, "PanelNameLabel", void 0), i([g(cc.Label)], t.prototype, "RuleLabel", void 0), i([g(cc.Label)], t.prototype, "MyRankTitleLabel", void 0), i([g(cc.Node)], t.prototype, "MyRewardNode", void 0), i([g(p.default)], t.prototype, "RewardAsyncLayout", void 0), i([y], t)
            }(l.BaseUIPanel);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/AsyncLayout": "AsyncLayout",
        "../Components/RankMatchRankRewardItem": "RankMatchRankRewardItem"
    }],
    RankMatchSettlementComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f66ecM93kVFYLC5IrVzmZXV", "RankMatchSettlementComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../ShareConsts/BattleConsts"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Channel/ChannelManager"),
            g = e("../../Components/Components"),
            m = e("../../Components/DataCenter"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../Components/HeadComponent"),
            C = e("../Components/ItemComponent"),
            v = e("../Components/RankMatchArenaSettlementItem"),
            b = e("../Components/SettlementBaseComponent"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property,
            A = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ReportPartTitleLabel = null, t.MyHeaderNode = null, t.MyNameLabel = null, t.MyScoreNode = null, t.MyCurrentScoreLabel = null, t.MyScoreChangedLabel = null, t.MyScoreChangedTag = null, t.VSResultLacel = null, t.OpponentNameLabel = null, t.OpponentScoreNode = null, t.OpponentCurrentScoreLabel = null, t.OpponentScoreChangedLabel = null, t.OpponentHeaderNode = null, t.OpponentScoreChangedTag = null, t.BattleReportsContainer = null, t.RewardsPartTitleLabel = null, t.RewardsContainer = null, t.ConfirmButton = null, t.ConfirmButtonLabel = null, t.LeftDesignationIcon = null, t.RightDesignationIcon = null, t._loadedAssets = [], t._TargetPlayerInfo = null, t._MyScore = 0, t._MyScoreChange = 0, t._TargetScore = 0, t._TargetScoreChange = 0, t._Reports = null, t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.ReportPartTitleLabel.string = "SeniorArenaSettlement_ReportPartTitle".ToUILocale(), this.RewardsPartTitleLabel.string = "reward".ToUILocale(), this.ConfirmButtonLabel.string = "ok".ToUILocale(), this.ConfirmButton.node.on("click", this.OnConfirmButtonClicked, this), this.LoadRewardData()
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.RewardsContainer.children.indexOf(t) && I.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.SetCallBack = function() {
                    c.UIManager.Instance.ShowUIPanel(f.PanelConfig.BattleStatisticsPanel.Path, this._Reports)
                }, t.prototype.SetUI = function(t) {
                    var n = t.SettleParams[0];
                    if (n.TargetInfo) {
                        var o = n;
                        this._TargetPlayerInfo = o.TargetInfo, this._MyScoreChange = o.Params[0], this._TargetScoreChange = o.Params[1], this._MyScore = o.Params[2], this._TargetScore = o.Params[3], this._Reports = o.Reports
                    } else {
                        var r = n,
                            i = m.DataCenter.Instance.Uid == r.AttackerInfo.Uid;
                        this._TargetPlayerInfo = i ? r.DefenderInfo : r.AttackerInfo, this._MyScoreChange = i ? r.IntParams[0] : r.IntParams[1], this._TargetScoreChange = i ? r.IntParams[1] : r.IntParams[0], this._MyScore = (i ? r.AttackerInfo : r.DefenderInfo).Value1, this._TargetScore = this._TargetPlayerInfo.Value1, this._Reports = t.SettleParams[1]
                    }
                    e.prototype.SetUI.call(this, t, null, this.SetCallBack.bind(this)), this.SetPlayerInfoView(), this.SetListView(), this.SetRewardsView()
                }, t.prototype.LoadRewardData = function() {
                    var e = g.ConfigDataComponent.Instance.GetConfigById(l.LevelParam_Config, p.LevelParamType.RankMatchChallengeReward);
                    this._rewardData = e.Data2
                }, t.prototype.SetPlayerInfoView = function() {
                    this.MyNameLabel.string = m.DataCenter.Instance.GetStringData(p.UserDataKey.RoleName), this._MyScore ? (this.MyScoreNode.active = !0, this.MyCurrentScoreLabel.string = this._MyScore.toString(), this._MyScoreChange > 0 ? (this.MyScoreChangedLabel.string = "+" + this._MyScoreChange.toString(), this.MyScoreChangedLabel.node.color = cc.Color.GREEN, this.MyScoreChangedTag.spriteFrame = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green")) : (this.MyScoreChangedLabel.string = this._MyScoreChange.toString(), this.MyScoreChangedLabel.node.color = cc.Color.RED, this.MyScoreChangedTag.spriteFrame = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red"))) : (this.MyScoreNode.active = !1, this.OpponentScoreNode.active = !1), this._TargetPlayerInfo.Value1 && (this.OpponentScoreNode.active = !0, this.OpponentCurrentScoreLabel.string = this._TargetScore.toString(), this._TargetScoreChange > 0 ? (this.OpponentScoreChangedLabel.node.color = cc.Color.GREEN, this.OpponentScoreChangedTag.spriteFrame = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_green"), this.OpponentScoreChangedLabel.string = "+" + this._TargetScoreChange.toString()) : (this.OpponentScoreChangedLabel.string = this._TargetScoreChange.toString(), this.OpponentScoreChangedLabel.node.color = cc.Color.RED, this.OpponentScoreChangedTag.spriteFrame = I.UIUtlity.COMMON_ATLAS4.getSpriteFrame("arrow_red")));
                    var e = m.DataCenter.Instance.GetSimpleData(p.UserDataKey.Designation);
                    e && d.default.SetDesignationIcon(e.V, this.LeftDesignationIcon), d.default.SetDesignationIcon(this._TargetPlayerInfo.Designation, this.RightDesignationIcon), this.OpponentNameLabel.string = this._TargetPlayerInfo.Name, this.VSResultLacel.string = this.GetVSResult(), this.SetHeaderView()
                }, t.prototype.SetHeaderView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i;
                        return s(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return [4, c.AssetsManager.Instance.LoadAsset(f.BundlePath.HeadComponent, cc.Prefab)];
                                case 1:
                                    return e = a.sent(), this.isValid ? (this._loadedAssets.push(e), t = cc.instantiate(e), (n = t.getComponent(_.default)).SetHeadIcon(m.DataCenter.Instance.GetIntData(p.UserDataKey.HeadIcon)), n.SetHeadFrame(m.DataCenter.Instance.GetIntData(p.UserDataKey.HeadFrame)), n.LevelNode.active = !1, t.parent = this.MyHeaderNode, n.SetLevel(m.DataCenter.Instance.GetIntData(p.UserDataKey.PlayerLevel)), (o = m.DataCenter.Instance.GetStringData(p.UserDataKey.Country)) || (o = y.default.Instance.Localization_Country), o = 0 == m.DataCenter.Instance.GetIntData(p.UserDataKey.CountryShowState) ? o : "", n.SetCountry(o), r = cc.instantiate(e), (i = r.getComponent(_.default)).SetHeadIcon(this._TargetPlayerInfo.HeadIcon), i.SetHeadFrame(this._TargetPlayerInfo.HeadFrame), i.LevelNode.active = !1, r.parent = this.OpponentHeaderNode, i.SetLevel(this._TargetPlayerInfo.Level), i.SetCountry(this._TargetPlayerInfo.Country), [2]) : (c.AssetsManager.Instance.UnloadAsset(e), [2])
                            }
                        })
                    })
                }, t.prototype.GetVSResult = function() {
                    for (var e = 0, t = 0, n = m.DataCenter.Instance.Uid, o = 0; o < this._Reports.length; o++) {
                        var r = this._Reports[o];
                        r.Players[0].Uid == n && r.Players[0].Camp == u.CampType.Attacker || r.Players[1].Uid == n && r.Players[1].Camp == u.CampType.Attacker ? r.Result == u.BattleResult.DefenderWin || r.Result == u.BattleResult.Timeout ? t += 1 : e += 1 : r.Result == u.BattleResult.AttackerWin ? t += 1 : e += 1
                    }
                    return e + ":" + t
                }, t.prototype.SetListView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return [4, c.AssetsManager.Instance.LoadAsset("Arena/RankMatchArenaPanel/RankMatchArenaSettlementItem", cc.Prefab)];
                                case 1:
                                    if (e = o.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), t = 0; t < this._Reports.length; t++)(n = cc.instantiate(e)).getComponent(v.default).Init(this._Reports[t], t), this.BattleReportsContainer.addChild(n);
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetRewardsView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return [4, c.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    if (e = i.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(e), [2];
                                    for (this._loadedAssets.push(e), t = 0; t < this._rewardData.length; t++) n = this._rewardData[t].Items[0], o = this._rewardData[t].Items[1], (r = cc.instantiate(e).getComponent(C.ItemComponent)).Init({
                                        ItemId: n,
                                        Count: o
                                    }, C.ItemComponentType.ItemCommon), r.node.name = n.toString(), r.node.parent = this.RewardsContainer;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.OnConfirmButtonClicked = function() {
                    c.UIManager.Instance.BackUIPanel()
                }, t.prototype.onDestroy = function() {
                    this._loadedAssets && (this._loadedAssets.forEach(function(e) {
                        c.AssetsManager.Instance.UnloadAsset(e)
                    }), this._loadedAssets = [])
                }, i([P(cc.Label)], t.prototype, "ReportPartTitleLabel", void 0), i([P(cc.Node)], t.prototype, "MyHeaderNode", void 0), i([P(cc.Label)], t.prototype, "MyNameLabel", void 0), i([P(cc.Node)], t.prototype, "MyScoreNode", void 0), i([P(cc.Label)], t.prototype, "MyCurrentScoreLabel", void 0), i([P(cc.Label)], t.prototype, "MyScoreChangedLabel", void 0), i([P(cc.Sprite)], t.prototype, "MyScoreChangedTag", void 0), i([P(cc.Label)], t.prototype, "VSResultLacel", void 0), i([P(cc.Label)], t.prototype, "OpponentNameLabel", void 0), i([P(cc.Node)], t.prototype, "OpponentScoreNode", void 0), i([P(cc.Label)], t.prototype, "OpponentCurrentScoreLabel", void 0), i([P(cc.Label)], t.prototype, "OpponentScoreChangedLabel", void 0), i([P(cc.Node)], t.prototype, "OpponentHeaderNode", void 0), i([P(cc.Sprite)], t.prototype, "OpponentScoreChangedTag", void 0), i([P(cc.Node)], t.prototype, "BattleReportsContainer", void 0), i([P(cc.Label)], t.prototype, "RewardsPartTitleLabel", void 0), i([P(cc.Node)], t.prototype, "RewardsContainer", void 0), i([P(cc.Button)], t.prototype, "ConfirmButton", void 0), i([P(cc.Label)], t.prototype, "ConfirmButtonLabel", void 0), i([P(cc.Sprite)], t.prototype, "LeftDesignationIcon", void 0), i([P(cc.Sprite)], t.prototype, "RightDesignationIcon", void 0), i([w], t)
            }(b.default);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/BattleConsts": "BattleConsts",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/HeadComponent": "HeadComponent",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/RankMatchArenaSettlementItem": "RankMatchArenaSettlementItem",
        "../Components/SettlementBaseComponent": "SettlementBaseComponent"
    }],
    RankPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8b040wIMs5KVonCSm79Fokv", "RankPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Components/CustomToggle"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/ConfigData/ConfigDataComponent"),
            f = e("../../../Util/AppUtil"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("../Components/RankTypeListItem"),
            m = e("../Auxiliary/UIUtlity"),
            I = e("../../Components/RpcComponent"),
            _ = e("./CrossServerPortPanel"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../../../Consts/Consts"),
            b = e("../../RedDot/RedDotManager"),
            S = e("../../RedDot/RedDotDataHandler"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property;
        (function(e) {
            e[e.Zone = 0] = "Zone", e[e.CrossServer = 1] = "CrossServer", e[e.AllZone = 2] = "AllZone"
        })(l || (l = {}));
        var T = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Tittle = null, t.TopToggleNode = null, t.BottomTggles = [], t.ListItemScroll = null, t.ListItemGrid = null, t.BtnReturn = null, t.Bg = null, t.Bgs = [], t.RANK_TYPE_LIST_ITEM_PREFAB_PATH = "RankPanel/Private/RankTypeListItem", t._listItemPrefab = null, t._topTogglePrefab = null, t._listItemTable = [], t._curBottomToggleIdx = l.Zone, t._curTopToggleIdx = 0, t._isPlayerAnim = !1, t._topToggleNodes = [], t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(this.RANK_TYPE_LIST_ITEM_PREFAB_PATH, cc.Prefab), n = this.LoadDynamicAsset("RankPanel/Private/RankTopToggle", cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._listItemPrefab = e[0], o._topTogglePrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
            }, t.prototype.SetStaticLocalText = function() {
                this.Tittle.string = "rank_bottom_toggle_1".ToUILocale();
                for (var e = 0; e < this.BottomTggles.length; e++) this.BottomTggles[e].Init(("rank_bottom_toggle_" + (e + 1)).ToUILocale())
            }, t.prototype.SetClickEvent = function() {
                this.BtnReturn.node.on("click", this.OnBtnReturnClick, this);
                for (var e = 0; e < this.BottomTggles.length; e++) this.BottomTggles[e].node.on("toggle", this.OnBottomToggleClick, this)
            }, t.prototype.OnBottomToggleClick = function(e) {
                var t = f.AppUtil.ToInt(e.name);
                if (this._curBottomToggleIdx != t) {
                    var n = t < this.Bgs.length ? t : 0;
                    this.Bg.spriteFrame = this.Bgs[n], this._curBottomToggleIdx = t, this._curTopToggleIdx = 0, this.Tittle.string = ("rank_bottom_toggle_" + (this._curBottomToggleIdx + 1)).ToUILocale(), this._isPlayerAnim = !1, this.InitTopNodes(), this.SetTopToggles(), this.RequestTopRank()
                }
            }, t.prototype.CheckCanShowCrossServer = function() {
                return !!_.default.CrossServerLimitConditions(!1) && !!C.default.Instance.IsGameModuleUnlock(v.GameModuleType.CrossServerSpaceTime)[0]
            }, t.prototype.OnTopToggleClick = function(e) {
                var t = f.AppUtil.ToInt(e.name);
                this._curTopToggleIdx != t && (this._curTopToggleIdx = t, this.RequestTopRank())
            }, t.prototype.RequestTopRank = function() {
                this.InitListItemNodes();
                var e = new y.Req_Player_GetTopRanks;
                this._rankBottomToTopType[this._curBottomToggleIdx] && this._rankBottomToTopType[this._curBottomToggleIdx][this._curTopToggleIdx] && (e.TabId = this._rankBottomToTopType[this._curBottomToggleIdx][this._curTopToggleIdx].Type, I.RpcComponent.Instance.Call(e, this.ResponseTopRank.bind(this)))
            }, t.prototype.ResponseTopRank = function(e) {
                this.LoadListItem(e.Data)
            }, t.prototype.InitData = function() {
                var e = {},
                    t = h.ConfigDataComponent.Instance.GetArrayConfig(d.RankType_Config);
                for (var n in t.forEach(function(t) {
                        if (0 != t.Type)
                            if (e[t.Type]) e[t.Type].push(t);
                            else {
                                var n = [];
                                n.push(t), e[t.Type] = n
                            }
                    }), e) e[n].sort(function(e, t) {
                    return e.SortId - t.SortId
                });
                this._rankBottomToTopType = {};
                var o = [],
                    r = [],
                    i = [];
                for (var n in e) {
                    var a = Number(n),
                        s = {};
                    s.Type = a, s.RankDatas = e[n], a < 100 ? o.push(s) : a < 300 ? r.push(s) : i.push(s)
                }
                for (var c in this._rankBottomToTopType[l.Zone] = o, this._rankBottomToTopType[l.CrossServer] = r, this._rankBottomToTopType[l.AllZone] = i, this._rankBottomToTopType) this._rankBottomToTopType[c].sort(function(e, t) {
                    return e.Type - t.Type
                });
                b.RedDotManager.Instance.Bind(this.BottomTggles[0].node, b.RedDotManager.Instance.RedDot.RankZoneNode, null), b.RedDotManager.Instance.Bind(this.BottomTggles[1].node, b.RedDotManager.Instance.RedDot.RankCrossZoneNode, null)
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this), this.ResetToggle()
            }, t.prototype.ResetToggle = function() {
                this.BottomTggles[0].isChecked = !0, this._curBottomToggleIdx = l.Zone
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitTopNodes(), this.SetTopToggles(), this.SetBottomToggles(), this.RequestTopRank()
            }, t.prototype.InitTopNodes = function() {
                this._topToggleNodes.forEach(function(e) {
                    e.active = !1
                })
            }, t.prototype.InitListItemNodes = function() {
                this._listItemTable.forEach(function(e) {
                    e.node.active = !1
                })
            }, t.prototype.SetTopToggles = function() {
                var e = this;
                this._curBottomToggleIdx != l.AllZone && this._rankBottomToTopType[this._curBottomToggleIdx].forEach(function(t, n) {
                    if (!e._topToggleNodes[n]) {
                        var o = cc.instantiate(e._topTogglePrefab);
                        o.parent = e.TopToggleNode, o.name = n.toString(), o.on("toggle", e.OnTopToggleClick, e), e._topToggleNodes[n] = o
                    }
                    e._topToggleNodes[n].children[3].active = S.RedDotDataHandler.Instance.CheckRankTypeData(t.Type), e._topToggleNodes[n].active = !0;
                    var r = e._topToggleNodes[n].getComponent(p.default);
                    r.Init(("rank_top_toggle_" + t.Type).ToUILocale()), r.isChecked = e._curTopToggleIdx == n
                })
            }, t.prototype.SetBottomToggles = function() {
                var e = this;
                this.BottomTggles.forEach(function(t, n) {
                    if (n == l.CrossServer) {
                        var o = e.CheckCanShowCrossServer();
                        t.node.active = o
                    } else if (n == l.AllZone) {
                        var r = C.default.Instance.IsGameModuleUnlock(v.GameModuleType.AllZoneRankShow),
                            i = C.default.Instance.IsGameModuleOpen(v.GameModuleType.AllZoneRankShow);
                        t.node.active = i && r[0]
                    }
                })
            }, t.prototype.LoadListItem = function(e) {
                if (!(e.length <= 0)) {
                    for (var t = 0, n = function(n) {
                            var r = o._rankBottomToTopType[o._curBottomToggleIdx][o._curTopToggleIdx].RankDatas[n],
                                i = e.findIndex(function(e) {
                                    return e.RankType == r.Id
                                });
                            if (i > -1) {
                                if (r.GameModuleId) {
                                    var a = C.default.Instance.IsGameModuleUnlock(r.GameModuleId)[0],
                                        s = C.default.Instance.IsGameModuleOpen(r.GameModuleId);
                                    if (!a || !s) return "continue"
                                }
                                switch (e[i].RankType) {
                                    case v.RankTypeId.ZoneArena:
                                    case v.RankTypeId.ZoneChampionRace:
                                        if (C.default.IsCrossServerConditonsEnable()) return "continue";
                                        break;
                                    case v.RankTypeId.CrossArena:
                                    case v.RankTypeId.CrossZoneChampionRace:
                                        if (!C.default.IsCrossServerConditonsEnable()) return "continue"
                                }
                                if (!o._listItemTable[t]) {
                                    var l = cc.instantiate(o._listItemPrefab).getComponent(g.default);
                                    l.node.parent = o.ListItemGrid, o._listItemTable[t] = l
                                }
                                var c = e[i].RankType;
                                o._listItemTable[t].SetUI(c, e[i].Rows), o._listItemTable[t].node.name = c.toString(), o._listItemTable[t].node.active = !0, t++
                            }
                        }, o = this, r = 0; r < this._rankBottomToTopType[this._curBottomToggleIdx][this._curTopToggleIdx].RankDatas.length; r++) n(r);
                    this._isPlayerAnim || (m.UIUtlity.AnimationItemsByType1(this.ListItemGrid.children), this._isPlayerAnim = !0)
                }
            }, t.prototype.OnBtnReturnClick = function() {
                u.UIManager.Instance.BackUIPanel()
            }, i([A(cc.Label)], t.prototype, "Tittle", void 0), i([A(cc.Node)], t.prototype, "TopToggleNode", void 0), i([A(p.default)], t.prototype, "BottomTggles", void 0), i([A(cc.ScrollView)], t.prototype, "ListItemScroll", void 0), i([A(cc.Node)], t.prototype, "ListItemGrid", void 0), i([A(cc.Button)], t.prototype, "BtnReturn", void 0), i([A(cc.Sprite)], t.prototype, "Bg", void 0), i([A(cc.SpriteFrame)], t.prototype, "Bgs", void 0), i([P], t)
        }(c.BaseUIFullScreenPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/RankTypeListItem": "RankTypeListItem",
        "./CrossServerPortPanel": "CrossServerPortPanel"
    }],
    RankRewardListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9f9402Uxp9PQIi7k/NE9zds", "RankRewardListItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../Components/ConfigData/ConfigDataComponent"),
            u = e("../../../Consts/Consts"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("./ItemComponent"),
            h = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../../../Proto/Static/RpcProto"),
            g = e("./CustomRichText"),
            m = e("../../../ShareConsts/EnumType"),
            I = e("../../../EZFramework/EZFramework"),
            _ = e("../../Auxiliary/EventKeys"),
            C = e("../Auxiliary/UIUtlity"),
            v = e("../../Components/RpcComponent"),
            b = e("../../Components/DataCenter"),
            S = e("./HeadComponent"),
            w = e("../../Components/ConfigData/ConfigCacheComponent"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.AchieveValue = 0] = "AchieveValue", e[e.ItemId = 1] = "ItemId", e[e.ItemCount = 2] = "ItemCount"
        })(l || (l = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.RewardTittle = null, t.ItemRoot = null, t.HeadRoot = null, t.PlayerName = null, t.EmptyState = null, t.RedDot = null, t._rankConfig = null, t._currRewardId = 0, t._commonItemPrefab = null, t._item = null, t._headItemPrefab = null, t._headItem = null, t._isInit = !1, t._loadedAssets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                I.Game.EventDispatcher.On(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                I.Game.EventDispatcher.Off(_.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.SetUI = function(e, t, n, o, r) {
                this._rankConfigId = e, this._achievementIndex = t, this._achievementIndexs = r, this._currAchieve = n, this._playerInfo = o, this._isInit || (this._isInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.LoadConfig(), this.LoadUserData(), this.LoadAchievement(), this.SetRewardTittle(), this.LoadItemComponent(), this.SetPlayerHeader(), this.SetPlayerName(), this.SetDetailUI()
            }, t.prototype.SetStaticLocalText = function() {
                this.EmptyState.string = "rank_no_people".ToUILocale()
            }, t.prototype.SetClickEvent = function() {}, t.prototype.OnBtnReceiveClick = function() {
                this.RequestDrawReward()
            }, t.prototype.OnItemClick = function(e, t) {
                this.ItemRoot.children[0] == t && (this.RedDot.active ? this.RequestDrawReward() : C.UIUtlity.ShowItemTip(e, t))
            }, t.prototype.LoadConfig = function() {
                this._rankConfig = c.ConfigDataComponent.Instance.GetConfigById(p.RankType_Config, this._rankConfigId)
            }, t.prototype.LoadUserData = function() {
                this._userData = b.DataCenter.Instance.GetArrayData(m.UserDataKey.DrawedRankRewards), this._currRewardId = 1e3 * this._rankConfigId + this._achievementIndex
            }, t.prototype.LoadAchievement = function() {
                this._currAchieveReward = this._rankConfig.Achievements[this._achievementIndex].Items
            }, t.prototype.SetRewardTittle = function() {
                var e;
                if (this._rankConfig.Id != m.RankTypeId.MainLineProgress) e = this._rankConfigId.ToTaskAchievementDesc().Fmt(this._currAchieveReward[l.AchieveValue]);
                else {
                    var t = this._currAchieveReward[l.AchieveValue],
                        n = w.ConfigCacheComponent.Instance.GetChapterIdByMapId(t),
                        o = w.ConfigCacheComponent.Instance.GetAreaIdByChapterId(n),
                        r = c.ConfigDataComponent.Instance.GetLocale("MapWorld_name_" + o),
                        i = w.ConfigCacheComponent.Instance.GetLevelIndexByMapId(t);
                    e = this._rankConfigId.ToTaskAchievementDesc().Fmt(r + " " + n + "-" + i)
                }
                this.RewardTittle.Init("<outline width=3 color=#202434>" + e + "</outline>")
            }, t.prototype.LoadItemComponent = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return null != this._commonItemPrefab ? [3, 2] : (e = this, [4, h.AssetsManager.Instance.LoadAsset(f.BundlePath.ItemComponent, cc.Prefab)]);
                            case 1:
                                if (e._commonItemPrefab = t.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                this._loadedAssets.push(this._commonItemPrefab), t.label = 2;
                            case 2:
                                return null != this._commonItemPrefab && null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(d.ItemComponent), this._item.node.name = this._currAchieveReward[l.ItemId].toString(), this._item.node.parent = this.ItemRoot), this._item.Init({
                                    ItemId: this._currAchieveReward[l.ItemId],
                                    Count: this._currAchieveReward[l.ItemCount]
                                }), this._item.SetCountFontSize(26, 117), this.SetBtnState(), [2]
                        }
                    })
                })
            }, t.prototype.SetPlayerHeader = function() {
                null != this._currAchieve ? (this.HeadRoot.active = !0, this.LoadPlayerHead()) : this.HeadRoot.active = !1
            }, t.prototype.LoadPlayerHead = function() {
                return a(this, void 0, void 0, function() {
                    var e;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return null != this._headItemPrefab ? [3, 2] : (e = this, [4, h.AssetsManager.Instance.LoadAsset(f.BundlePath.HeadComponent, cc.Prefab)]);
                            case 1:
                                if (e._headItemPrefab = t.sent(), !this.isValid) return h.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                this._loadedAssets.push(this._headItemPrefab), t.label = 2;
                            case 2:
                                return null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(S.default), this._headItem.node.parent = this.HeadRoot), this._headItem.SetUI(this._playerInfo.HeadIcon, this._playerInfo.HeadFrame, 0), [2]
                        }
                    })
                })
            }, t.prototype.SetPlayerName = function() {
                null != this._currAchieve ? (this.PlayerName.string = this._playerInfo.Name, this.PlayerName.node.active = !0) : (this.PlayerName.string = "-----", this.PlayerName.node.active = !0)
            }, t.prototype.SetDetailUI = function() {
                null != this._currAchieve ? this.EmptyState.node.active = !1 : this.EmptyState.node.active = !0
            }, t.prototype.SetBtnState = function() {
                this.RedDot.active = !1, this._item.DisableItemMask(), this._userData.includes(this._currRewardId) ? this._item.SetReceivedTagState(!0) : null != this._currAchieve && (this.RedDot.active = !0)
            }, t.prototype.RequestDrawReward = function() {
                var e = new y.Req_Player_DrawRankReward;
                e.RankType = this._rankConfig.Id, e.RewardIndexs = [];
                var t = b.DataCenter.Instance.GetDataById(y.UserSimpleData_Model, u.UserDataKey.DrawedRankRewards);
                t || ((t = new y.UserSimpleData_Model).K = u.UserDataKey.DrawedRankRewards, t.IntArray = []);
                for (var n = 0, o = this._achievementIndexs; n < o.length; n++) {
                    var r = o[n],
                        i = 1e3 * e.RankType + r;
                    t.IntArray.includes(i) || e.RewardIndexs.push(r)
                }
                v.RpcComponent.Instance.Call(e, this.ResponseDrawReward)
            }, t.prototype.ResponseDrawReward = function(e) {
                C.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                for (var e = 0; e < this._loadedAssets.length; e++) I.AssetsManager.Instance.UnloadAsset(this._loadedAssets[e]);
                this._loadedAssets = []
            }, i([T(g.CustomRichText)], t.prototype, "RewardTittle", void 0), i([T(cc.Node)], t.prototype, "ItemRoot", void 0), i([T(cc.Node)], t.prototype, "HeadRoot", void 0), i([T(cc.Label)], t.prototype, "PlayerName", void 0), i([T(cc.Label)], t.prototype, "EmptyState", void 0), i([T(cc.Node)], t.prototype, "RedDot", void 0), i([A], t)
        }(cc.Component);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./CustomRichText": "CustomRichText",
        "./HeadComponent": "HeadComponent",
        "./ItemComponent": "ItemComponent"
    }],
    RankRewardPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "06287RsNc5A9JYVlcdgn9V2", "RankRewardPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../../ShareConsts/EnumType"),
            p = e("../Components/CustomLayout"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/ConfigData/ConfigDataComponent"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Components/RankRewardListItem"),
            m = e("../../Components/DataCenter"),
            I = e("../../../EZFramework/EZFramework"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Title = null, t.ListScroll = null, t.ListItemGrid = null, t.LIST_ITEM_PREFAB_PATH = "RankPanel/Private/RankRewardListItem", t._listItemPrefab = null, t._rankConfig = null, t._isLayoutInit = !1, t._isPlayedAnim = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.LIST_ITEM_PREFAB_PATH, cc.Prefab)];
                                case 1:
                                    return t._listItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "reward".ToUILocale()
                }, t.prototype.InitData = function(e) {
                    this._rankConfigId = e[0], this._rankAchieveList = e[1], this._rankAchieveIds = this._rankAchieveList.map(function(e) {
                        return e.RewardIndex
                    }), this._rankRowDataList = e[2]
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadConfig()
                }, t.prototype.LoadConfig = function() {
                    this._rankConfig = h.ConfigDataComponent.Instance.GetConfigById(d.RankType_Config, this._rankConfigId)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o;
                        return s(this, function() {
                            if (this._isLayoutInit)
                                for (e = 0; e < this.ListItemGrid.node.children.length; e++) t = this.ListItemGrid.node.children[e], n = t.getComponent(g.default), o = Number.parseInt(t.name), null != this._rankAchieveList[o] ? n.SetUI(this._rankConfigId, o, this._rankAchieveList[o], this._rankAchieveList[o].PlayerInfo, this._rankAchieveIds) : n.SetUI(this._rankConfigId, o, this._rankAchieveList[o], null, this._rankAchieveIds);
                            else this._isLayoutInit = !0, this.ListItemGrid.Init(this._listItemPrefab, !1), this.RenderLayout();
                            return [2]
                        })
                    })
                }, t.prototype.RenderLayout = function() {
                    this.ListScroll.scrollToTop();
                    var e = this._rankConfig.Achievements.length,
                        t = this.GetSlideIndex();
                    I.EZLog.Log(e), this.ListItemGrid.RenderLayOut(e, t), I.EZLog.Log(this.ListItemGrid.node.children.length), this._isPlayedAnim || (f.UIUtlity.AnimationItemsByType1(this.ListItemGrid.node.children), this._isPlayedAnim = !0)
                }, t.prototype.GetSlideIndex = function() {
                    for (var e = m.DataCenter.Instance.GetArrayData(u.UserDataKey.DrawedRankRewards), t = -1, n = 0; n < this._rankConfig.Achievements.length; n++) {
                        null != this._rankAchieveList[n] && this._rankRowDataList[this._rankAchieveList[n].RewardIndex];
                        var o = 1e3 * this._rankConfigId + n;
                        if (!e.includes(o) && null != this._rankAchieveList[n]) {
                            t = n;
                            break
                        }
                    }
                    if (t < 0) {
                        e.sort(function(e, t) {
                            return e < t ? -1 : e > t ? 1 : 0
                        });
                        var r = 0;
                        for (e.length > 0 && (r = e[e.length - 1]), n = 0; n < this._rankConfig.Achievements.length; n++)
                            if (t = n, (o = 1e3 * this._rankConfigId + n) > r && null == this._rankAchieveList[n]) return t
                    }
                    return t
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.ListItemGrid && e.forEach(function(e, t) {
                        var o = e.getComponent(g.default);
                        o.node.name = t.toString(), null != n._rankAchieveList[t] ? o.SetUI(n._rankConfigId, t, n._rankAchieveList[t], n._rankAchieveList[t].PlayerInfo, n._rankAchieveIds) : o.SetUI(n._rankConfigId, t, n._rankAchieveList[t], null, n._rankAchieveIds)
                    })
                }, i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.ScrollView)], t.prototype, "ListScroll", void 0), i([v(p.default)], t.prototype, "ListItemGrid", void 0), i([C], t)
            }(l.BaseUIPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/RankRewardListItem": "RankRewardListItem"
    }],
    RankTypeListItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b842bOZOGtK4KlJbEH6K2yf", "RankTypeListItem");
        var o, r, i = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            a = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            s = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            l = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ZoneBannerToServerBanner = n.RankTopType = void 0;
        var c, u = e("../../../../Proto/Static/ConfigProto"),
            p = e("../../Components/ConfigData/ConfigDataComponent"),
            d = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("../../Components/RpcComponent"),
            m = e("../../../EZFramework/UIFrame/UIManager"),
            I = e("../../Auxiliary/GlobalDefine"),
            _ = e("../../Auxiliary/DataUtlity"),
            C = e("./CustomRichText"),
            v = e("./HeadComponent"),
            b = e("../../../EZFramework/EZFramework"),
            S = e("../../Components/ConfigData/ConfigCacheComponent"),
            w = e("../../Components/DataCenter"),
            P = e("../../Components/Components"),
            A = e("../../../Consts/Consts"),
            T = e("../Panel/CrossServerRankPanel"),
            R = e("../Panel/ContinuousFightPanel"),
            L = e("../../Channel/ChannelManager"),
            k = e("../Panel/CrossServerChampionShipPanel"),
            O = e("../../RedDot/RedDotDataHandler"),
            M = e("../Panel/AngelPvpComponent"),
            D = cc._decorator,
            B = D.ccclass,
            N = D.property;
        (function(e) {
            e[e.ZoneProgress = 1] = "ZoneProgress", e[e.ZoneDevelop = 2] = "ZoneDevelop", e[e.ZoneComprehensive = 3] = "ZoneComprehensive", e[e.CrossServerCompetitive = 101] = "CrossServerCompetitive", e[e.CrossServerDevelop = 102] = "CrossServerDevelop", e[e.CrossServerComprehensive = 103] = "CrossServerComprehensive"
        })(c = n.RankTopType || (n.RankTopType = {})), n.ZoneBannerToServerBanner = ((r = {})[y.RankTypeId.CrossZoneGemEquip] = y.RankTypeId.GemEquip, r[y.RankTypeId.CrossZoneHolyEquip] = y.RankTypeId.HolyEquip, r[y.RankTypeId.CrossZonePersonality] = y.RankTypeId.Personality, r[y.RankTypeId.CrossZoneFavor] = y.RankTypeId.Favor, r[y.RankTypeId.CrossZoneHolyStatue] = y.RankTypeId.HolyStatue, r[y.RankTypeId.CrossZonePiece] = y.RankTypeId.Piece, r[y.RankTypeId.CrossZoneHero_Heart] = y.RankTypeId.Hero_Heart, r[y.RankTypeId.CrossZoneHero_Power] = y.RankTypeId.Hero_Power, r[y.RankTypeId.CrossZoneHero_Tech] = y.RankTypeId.Hero_Tech, r[y.RankTypeId.CrossZoneHero_Break] = y.RankTypeId.Hero_Break, r[y.RankTypeId.CrossZoneHero_Fight] = y.RankTypeId.Hero_Fight, r[y.RankTypeId.CrossZoneHero_Chaos] = y.RankTypeId.Hero_Chaos, r[y.RankTypeId.CrossZonePowerCore] = y.RankTypeId.PowerCore, r[y.RankTypeId.CrossZonePuzzle] = y.RankTypeId.Puzzle, r[y.RankTypeId.CrossZonePet] = y.RankTypeId.Pet, r[y.RankTypeId.CrossArena] = y.RankTypeId.ZoneArena, r[y.RankTypeId.ZoneChampionRace] = y.RankTypeId.CrossZoneChampionRace, r);
        var E = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.TypeBg = null, t.HeadRoot = null, t.PlayerNameNode = null, t.PlayerNameLabel = null, t.BattlePowerLabel = null, t.RankContentNode = null, t.RankContent = null, t.IntegalIcon = null, t.GradeSprite = null, t.BattlePowerNode = null, t.ElementIcon = null, t.MultilangTittleSprite = null, t.AllianceFlag = null, t.AllianceLogo = null, t.RedDotNode = null, t.UserTitleIcon = null, t.NormalNode = null, t.NormalTag = null, t.NormalValue = null, t.RANK_ALLIANCE_ATLAS_PATH = "AllianceBasePanel/PNG/allianceBase", t.SERVER_POWER_ID = 101, t.SERVER_GUILD_ID = 105, t.CROSS_SERVER_POWER_ID = 302, t.CROSS_SERVER_GUILD_ID = 301, t.Zoom = 1.1, t._rankAllianceAtlas = null, t._isUIInit = !1, t._isBusy = !1, t._headItemPrefab = null, t._headItem = null, t._assats = [], t._crossServerRankAtlas = null, t
            }
            return i(t, e), t.prototype.onLoad = function() {
                this._scale = this.node.scale
            }, t.prototype.SetUI = function(e, t) {
                this._rankConfigId = e, this._rowData = t, this._isUIInit || (this._isUIInit = !0, this.SetStaticLocalText(), this.SetClickEvent()), this.LoadConfig(), this.LoadTypeBg(), this.LoadMultilangTittle(), this.LoadElementIcon(), this.SetPlayerName(), this.SetRankContent(), this.SetAllianceFlag(), this.SetUserTitleIcon(), this.RedDotNode.active = O.RedDotDataHandler.Instance.RefreshRankRewardsNode({
                    Value1: e
                })
            }, t.prototype.SetStaticLocalText = function() {}, t.prototype.SetClickEvent = function() {
                this.node.on(cc.Node.EventType.TOUCH_END, this.OnNodeClick, this)
            }, t.prototype.LoadConfig = function() {
                this._rankConfig = p.ConfigDataComponent.Instance.GetConfigById(u.RankType_Config, this._rankConfigId), this._rankConfigId != y.RankTypeId.ZoneAlliance && this._rankConfigId != y.RankTypeId.CrossZoneAlliance || (this._allianceIconConfig = S.ConfigCacheComponent.Instance.GetAllianceIconConfigs())
            }, t.prototype.LoadTypeBg = function() {
                return s(this, void 0, void 0, function() {
                    var e, t;
                    return l(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = this._rankConfigId, n.ZoneBannerToServerBanner[e] && (e = n.ZoneBannerToServerBanner[e]), [4, d.AssetsManager.Instance.LoadAsset("RankPanel/RankBannerPng/bg_" + e, cc.SpriteFrame)];
                            case 1:
                                return t = o.sent(), this.isValid ? (this._assats.push(t), this.TypeBg.spriteFrame = t, [2]) : (d.AssetsManager.Instance.UnloadAsset(t), [2])
                        }
                    })
                })
            }, t.prototype.LoadMultilangTittle = function() {
                return s(this, void 0, void 0, function() {
                    var e, t, o;
                    return l(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e = this._rankConfigId, n.ZoneBannerToServerBanner[e] && (e = n.ZoneBannerToServerBanner[e]), 307 == e && (e = 107), t = "rank_item_" + e, o = this.MultilangTittleSprite, [4, b.AssetsManager.Instance.LoadAsset(P.GlobalConfigComponent.GetMultilangKey(I.BundlePath.MultilangSinglePng2 + "/" + t), cc.SpriteFrame)];
                            case 1:
                                return o.spriteFrame = r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.LoadElementIcon = function() {
                if (this._rankConfig.Type != c.ZoneDevelop && this._rankConfig.Type != c.CrossServerDevelop) this.ElementIcon.node.active = !1;
                else {
                    this.ElementIcon.node.active = !0;
                    var e = this._rankConfigId % 100;
                    this.ElementIcon.spriteFrame = h.UIUtlity.GetHeroElementIcon(e)
                }
            }, t.prototype.SetPlayerName = function() {
                if (null != this._rowData && this._rowData.length > 0) {
                    if (this._rankConfig.Type > 100) {
                        var e;
                        e = this._rowData[0].Zone ? w.DataCenter.Instance.Zones[this._rowData[0].Zone].Name : "S0", this._rankConfigId == y.RankTypeId.CrossZoneAlliance || this._rankConfigId == y.RankTypeId.CrossZoneAllianceChallenge ? this.PlayerNameLabel.string = "[" + e + "]" + this._rowData[0].AllianceInfo.Name : this.PlayerNameLabel.string = "[" + e + "]" + this._rowData[0].PlayerInfo.Name
                    } else this._rankConfigId != y.RankTypeId.ZoneAlliance && this._rankConfigId != y.RankTypeId.CrossZoneAlliance ? this.PlayerNameLabel.string = this._rowData[0].PlayerInfo.Name : this.PlayerNameLabel.string = this._rowData[0].AllianceInfo.Name;
                    this._rankConfigId != y.RankTypeId.ZoneAlliance && this._rankConfigId != y.RankTypeId.CrossZoneAlliance && this._rankConfigId != y.RankTypeId.CrossZoneAllianceChallenge ? (this.HeadRoot.active = !0, this.LoadPlayerHead()) : this.HeadRoot.active = !1
                } else this._rankConfigId != y.RankTypeId.ZoneAlliance && this._rankConfigId != y.RankTypeId.CrossZoneAlliance ? this.PlayerNameLabel.string = "rank_no_people".ToUILocale() : this.PlayerNameLabel.string = "rank_no_alliance".ToUILocale(), this.HeadRoot.active = !1
            }, t.prototype.SetAllianceFlag = function() {
                return s(this, void 0, void 0, function() {
                    var e, t, n, o, r;
                    return l(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return null != this._rankAllianceAtlas ? [3, 2] : (e = this, [4, d.AssetsManager.Instance.LoadAsset(this.RANK_ALLIANCE_ATLAS_PATH, cc.SpriteAtlas)]);
                            case 1:
                                if (e._rankAllianceAtlas = i.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._rankAllianceAtlas), [2];
                                i.label = 2;
                            case 2:
                                return (this._rankConfigId == y.RankTypeId.ZoneAlliance || this._rankConfigId == y.RankTypeId.CrossZoneAlliance) && null != this._rowData && this._rowData.length > 0 ? (t = this._rowData[0].AllianceInfo.Icon, n = p.ConfigDataComponent.Instance.GetConfigById(u.AllianceIcon_Config, t), o = n.LogoID, r = n.FlagID, this.AllianceFlag.spriteFrame = this._rankAllianceAtlas.getSpriteFrame("flagBg" + r), this.AllianceLogo.spriteFrame = this._rankAllianceAtlas.getSpriteFrame("flagLogo" + o), this.AllianceFlag.node.active = !0) : this.AllianceFlag.node.active = !1, [2]
                        }
                    })
                })
            }, t.prototype.LoadPlayerHead = function() {
                return s(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return l(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return null != this._headItemPrefab ? [3, 2] : (e = this, [4, d.AssetsManager.Instance.LoadAsset(I.BundlePath.HeadComponent, cc.Prefab)]);
                            case 1:
                                if (e._headItemPrefab = r.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), [2];
                                r.label = 2;
                            case 2:
                                return null == this._headItem && (this._headItem = cc.instantiate(this._headItemPrefab).getComponent(v.default), this._headItem.node.parent = this.HeadRoot), t = this._rowData[0].PlayerInfo.HeadIcon, n = this._rowData[0].PlayerInfo.HeadFrame, this._headItem.SetUI(t, n), this._headItem.SetLevel(this._rowData[0].PlayerInfo.Level), this._headItem.SetTitleIcon(this._rowData[0].PlayerInfo.Title), this._rowData[0].PlayerInfo.Uid == w.DataCenter.Instance.Uid ? (o = void 0, (o = w.DataCenter.Instance.GetStringData(y.UserDataKey.Country)) || (o = L.default.Instance.Localization_Country), o = 0 == w.DataCenter.Instance.GetIntData(y.UserDataKey.CountryShowState) ? o : "", this._headItem.SetCountry(o)) : this._headItem.SetCountry(this._rowData[0].PlayerInfo.Country), [2]
                        }
                    })
                })
            }, t.prototype.SetRankContent = function() {
                switch (this.RankContentNode.active = !1, this.BattlePowerNode.active = !1, this.NormalNode.active = !1, this._rankConfigId) {
                    case y.RankTypeId.MainLineProgress:
                        this.IntegalIcon.active = !1, this.GradeSprite.node.active = !1, null != this._rowData && this._rowData.length > 0 && (this.SetLevelName(), this.RankContentNode.active = !0);
                        break;
                    case y.RankTypeId.TestTowerProgress:
                    case y.RankTypeId.CrossZoneAngelPve:
                    case y.RankTypeId.TestTowerHardProgress:
                        this.IntegalIcon.active = !1, this.GradeSprite.node.active = !1, null != this._rowData && this._rowData.length > 0 && (this.SetTowerLayerName(), this.RankContentNode.active = !0);
                        break;
                    case y.RankTypeId.ZoneArena:
                    case y.RankTypeId.CrossArena:
                        this.IntegalIcon.active = !0, this.GradeSprite.node.active = !1, null != this._rowData && this._rowData.length > 0 && (this.BattlePowerLabel.string = this._rowData[0].Value.toString(), this.RankContentNode.active = !0, this.SetIntegralScore());
                        break;
                    case y.RankTypeId.Hero_Heart:
                    case y.RankTypeId.Hero_Power:
                    case y.RankTypeId.Hero_Tech:
                    case y.RankTypeId.Hero_Break:
                    case y.RankTypeId.Hero_Fight:
                    case y.RankTypeId.Hero_Chaos:
                    case y.RankTypeId.CrossZoneHero_Heart:
                    case y.RankTypeId.CrossZoneHero_Power:
                    case y.RankTypeId.CrossZoneHero_Tech:
                    case y.RankTypeId.CrossZoneHero_Break:
                    case y.RankTypeId.CrossZoneHero_Fight:
                    case y.RankTypeId.CrossZoneHero_Chaos:
                    case y.RankTypeId.HeroPower:
                    case y.RankTypeId.CrossZoneHeroPower:
                        null != this._rowData && this._rowData.length > 0 && (this.BattlePowerLabel.string = this._rowData[0].HeroInfo.Power.toString(), this.BattlePowerNode.active = !0);
                        break;
                    case y.RankTypeId.ZoneAlliance:
                    case y.RankTypeId.CrossZoneAlliance:
                        null != this._rowData && this._rowData.length > 0 && (this.BattlePowerLabel.string = this._rowData[0].AllianceInfo.Power.toString(), this.BattlePowerNode.active = !0);
                        break;
                    case y.RankTypeId.CrossZoneRank:
                    case y.RankTypeId.CrossZoneContinueWarRank:
                    case y.RankTypeId.GodLandDuel:
                        this.IntegalIcon.active = !1, this.GradeSprite.node.active = !0, null != this._rowData && this._rowData.length > 0 && (this.RankContent.Init(this._rowData[0].Value.toString()), this.SetCrossServerRankGrade(), this.RankContentNode.active = !0);
                        break;
                    case y.RankTypeId.SeniorArena:
                        this.IntegalIcon.active = !0, this.GradeSprite.node.active = !1, null != this._rowData && this._rowData.length > 0 && (this.RankContent.Init("<outline width=3 color=#202434><color=#33ff8e>" + this._rowData[0].Value + "</outline></c>"), this.RankContentNode.active = !0);
                        break;
                    case y.RankTypeId.GemEquip:
                    case y.RankTypeId.HolyEquip:
                    case y.RankTypeId.Personality:
                    case y.RankTypeId.HolyStatue:
                    case y.RankTypeId.Favor:
                    case y.RankTypeId.Piece:
                    case y.RankTypeId.FighterSpirit:
                        null != this._rowData && this._rowData.length > 0 && (this.NormalValue.string = this._rowData[0].Value.toString(), this._rankConfigId == y.RankTypeId.GemEquip || this._rankConfigId == y.RankTypeId.HolyEquip ? this.NormalTag.string = "rank_score".ToUILocale() : this._rankConfigId == y.RankTypeId.Favor || this._rankConfigId == y.RankTypeId.HolyStatue || this._rankConfigId == y.RankTypeId.Piece ? this.NormalTag.string = "rank_total_level".ToUILocale() : this._rankConfigId == y.RankTypeId.Personality ? this.NormalTag.string = "rank_total_star_level".ToUILocale() : this._rankConfigId == y.RankTypeId.FighterSpirit && (this.NormalTag.string = "SoulRecord_graphValue".ToUILocale()), this.NormalNode.active = !0);
                        break;
                    case y.RankTypeId.CrossZoneGemEquip:
                    case y.RankTypeId.CrossZoneHolyEquip:
                    case y.RankTypeId.CrossZonePersonality:
                    case y.RankTypeId.CrossZoneHolyStatue:
                    case y.RankTypeId.CrossZoneFavor:
                    case y.RankTypeId.CrossZonePiece:
                        null != this._rowData && this._rowData.length > 0 && (this.NormalValue.string = this._rowData[0].Value.toString(), this._rankConfigId == y.RankTypeId.CrossZoneGemEquip || this._rankConfigId == y.RankTypeId.CrossZoneHolyEquip ? this.NormalTag.string = "rank_score".ToUILocale() : this._rankConfigId == y.RankTypeId.CrossZoneFavor || this._rankConfigId == y.RankTypeId.CrossZoneHolyStatue || this._rankConfigId == y.RankTypeId.CrossZonePiece ? this.NormalTag.string = "rank_total_level".ToUILocale() : this._rankConfigId == y.RankTypeId.CrossZonePersonality && (this.NormalTag.string = "rank_total_star_level".ToUILocale()), this.NormalNode.active = !0);
                        break;
                    case y.RankTypeId.CrossZoneChampionRace:
                    case y.RankTypeId.AllZoneChampionRace:
                    case y.RankTypeId.ZoneChampionRace:
                        this._rowData && this._rowData.length > 0 && (this.NormalValue.string = (k.ChampionShipRound.RACE_64_ROUND + k.ChampionShipRound.RACE_8_ROUND).toString(), this.NormalTag.string = "RankDetailListItem_MatchWinCount".ToUILocale(), this.NormalNode.active = !0);
                        break;
                    case y.RankTypeId.PowerCore:
                    case y.RankTypeId.Pet:
                    case y.RankTypeId.CrossZonePowerCore:
                    case y.RankTypeId.CrossZonePet:
                        this._rowData && this._rowData.length > 0 && (this.NormalValue.string = this._rowData[0].Value.toString(), this.NormalTag.string = "rank_score".ToUILocale(), this.NormalNode.active = !0);
                        break;
                    case y.RankTypeId.CrossZonePuzzle:
                    case y.RankTypeId.Puzzle:
                        this._rowData && this._rowData.length > 0 && (this.NormalValue.string = this._rowData[0].Value.toString(), this.NormalTag.string = "activityBoss_score".ToUILocale(), this.NormalNode.active = !0);
                        break;
                    case y.RankTypeId.RankMatch:
                        this.RankContentNode.active = !1;
                        break;
                    case y.RankTypeId.ArtefactRelic:
                        this._rowData && this._rowData.length > 0 && (this.IntegalIcon.active = !1, this.GradeSprite.node.active = !1, this.RankContentNode.active = !0, this.RankContent.Init("<outline width=3 color=#202434>" + "HolyRelic_RankDetial".ToUILocale() + " <color=#33ff8e>" + this._rowData[0].Value + "</c></outline>"));
                        break;
                    default:
                        null != this._rowData && this._rowData.length > 0 && (this.BattlePowerLabel.string = this._rowData[0].Value.toString(), this.BattlePowerNode.active = !0)
                }
            }, t.prototype.SetCrossServerRankGrade = function() {
                return s(this, void 0, void 0, function() {
                    var e, t;
                    return l(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return this._crossServerRankAtlas ? [3, 2] : (e = this, [4, d.AssetsManager.Instance.LoadAsset("CrossServerRankPanel/PNG/CrossServerRank", cc.SpriteAtlas)]);
                            case 1:
                                if (e._crossServerRankAtlas = n.sent(), !this.isValid) return d.AssetsManager.Instance.UnloadAsset(this._crossServerRankAtlas), [2];
                                n.label = 2;
                            case 2:
                                return this.GradeSprite.node.scale = .3, this._rankConfigId == y.RankTypeId.CrossZoneRank ? (t = T.default.GetGradeByScore(this._rowData[0].Value)) && (this.GradeSprite.spriteFrame = this._crossServerRankAtlas.getSpriteFrame("grade_" + t.Id)) : this._rankConfigId == y.RankTypeId.CrossZoneContinueWarRank ? (t = R.default.GetGradeByScore(this._rowData[0].Value)) && (this.GradeSprite.spriteFrame = this._crossServerRankAtlas.getSpriteFrame("badge_" + t.Id), this.GradeSprite.node.scale = .5) : this._rankConfigId == y.RankTypeId.GodLandDuel && (t = M.default.GetStageConfig(this._rowData[0].Value)) && (this.GradeSprite.spriteFrame = this._crossServerRankAtlas.getSpriteFrame("grade_" + t.Id)), [2]
                        }
                    })
                })
            }, t.prototype.SetLevelName = function() {
                var e = this._rowData[0].Value,
                    t = S.ConfigCacheComponent.Instance.GetChapterIdByMapId(e);
                if (t) {
                    var n = S.ConfigCacheComponent.Instance.GetAreaIdByChapterId(t),
                        o = p.ConfigDataComponent.Instance.GetLocale("MapWorld_name_" + n) + " <outline width = 3 color = 202434><color = 33ff8E>" + t + "-" + S.ConfigCacheComponent.Instance.GetLevelIndexByMapId(e) + "</>";
                    this.RankContent.Init(o)
                } else {
                    var r = p.ConfigDataComponent.Instance.GetConfigById(u.MapAdventure_Config, e);
                    r && !r.NextId && (o = "mainline_pass".ToUILocale(), this.RankContent.Init(o))
                }
            }, t.prototype.SetTowerLayerName = function() {
                var e = this._rowData[0].Value;
                this._rankConfigId == y.RankTypeId.TestTowerProgress || this._rankConfigId == y.RankTypeId.TestTowerHardProgress ? this.RankContent.Init("<outline width=3 color=#202434><color=#33ff8e>" + "stage_index".ToUILocale().Fmt(e) + "</outline></c>") : this.RankContent.Init("stage_index".ToUILocale().Fmt(e))
            }, t.prototype.SetIntegralScore = function() {
                var e = this._rowData[0].Value;
                this.RankContent.Init("<outline width=3 color=#202434><color=#33ff8e>" + "rank_arena_score".ToUILocale().Fmt(e) + "</outline></c>")
            }, t.prototype.OnNodeClick = function() {
                var e = this;
                this._tween && (this._tween.stop(), this.node.scale = this._scale), this._tween = cc.tween(this.node).to(.12, {
                    scale: this._scale * this.Zoom
                }).to(.1, {
                    scale: this._scale
                }).call(function() {
                    e._isBusy || e.RequestRankDataByType()
                }).start()
            }, t.prototype.RequestRankDataByType = function() {
                this._isBusy = !0;
                var e = new f.Req_Player_GetRank;
                e.RankType = this._rankConfigId, g.RpcComponent.Instance.Call(e, this.ResponseRankDataSuccess.bind(this), this.ResponseFailed.bind(this))
            }, t.prototype.ResponseRankDataSuccess = function(e) {
                if (this._isBusy = !1, e.Data.Rows.length > 0)
                    if (this._rankConfigId == y.RankTypeId.CrossZoneChampionRace || this._rankConfigId == y.RankTypeId.AllZoneChampionRace || this._rankConfigId == y.RankTypeId.ZoneChampionRace) {
                        var t = _.default.GetCrossServerChampionShipRankData(e);
                        m.UIManager.Instance.ShowUIPanel(I.PanelConfig.RankDetailPanel.Path, this._rankConfigId, t.Data.Rows, t.Data.Achievements, t.MyRank, t.MyRankData)
                    } else m.UIManager.Instance.ShowUIPanel(I.PanelConfig.RankDetailPanel.Path, this._rankConfigId, e.Data.Rows, e.Data.Achievements, e.MyRank, e.MyRankData);
                else h.UIUtlity.ShowFloatingHint("rank_empty_list".ToUILocale());
                w.DataCenter.Instance.UpdateRankData(e.Data)
            }, t.prototype.ResponseFailed = function() {
                this._isBusy = !1
            }, t.prototype.onDestroy = function() {
                this.Dispose()
            }, t.prototype.Dispose = function() {
                this._assats.forEach(function(e) {
                    d.AssetsManager.Instance.UnloadAsset(e)
                }), d.AssetsManager.Instance.UnloadAsset(this._rankAllianceAtlas), d.AssetsManager.Instance.UnloadAsset(this._crossServerRankAtlas), this._rankAllianceAtlas = null, null != this._headItemPrefab && b.AssetsManager.Instance.UnloadAsset(this._headItemPrefab), this._headItemPrefab = null
            }, t.prototype.SetUserTitleIcon = function() {
                var e;
                return s(this, void 0, void 0, function() {
                    var t, n, o, r, i;
                    return l(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return (t = this._rowData[0]) && (n = null === (e = t.PlayerInfo) || void 0 === e ? void 0 : e.Designation) ? (o = _.default.Instance.IsGameModuleOpen(A.GameModuleType.Designation), r = _.default.Instance.IsGameModuleUnlock(A.GameModuleType.Designation)[0], o && r ? [4, _.default.GetUserTitleIconById(n)] : [3, 2]) : (this.UserTitleIcon.node.active = !1, [2]);
                            case 1:
                                return (i = a.sent()) ? (this.UserTitleIcon.sizeMode = cc.Sprite.SizeMode.TRIMMED, this.UserTitleIcon.spriteFrame = i, this.UserTitleIcon.node.active = !0, [3, 3]) : (this.UserTitleIcon.node.active = !1, [2]);
                            case 2:
                                this.UserTitleIcon.node.active = !1, a.label = 3;
                            case 3:
                                return [2]
                        }
                    })
                })
            }, a([N(cc.Sprite)], t.prototype, "TypeBg", void 0), a([N(cc.Node)], t.prototype, "HeadRoot", void 0), a([N(cc.Node)], t.prototype, "PlayerNameNode", void 0), a([N(cc.Label)], t.prototype, "PlayerNameLabel", void 0), a([N(cc.Label)], t.prototype, "BattlePowerLabel", void 0), a([N(cc.Node)], t.prototype, "RankContentNode", void 0), a([N(C.CustomRichText)], t.prototype, "RankContent", void 0), a([N(cc.Node)], t.prototype, "IntegalIcon", void 0), a([N(cc.Sprite)], t.prototype, "GradeSprite", void 0), a([N(cc.Node)], t.prototype, "BattlePowerNode", void 0), a([N(cc.Sprite)], t.prototype, "ElementIcon", void 0), a([N(cc.Sprite)], t.prototype, "MultilangTittleSprite", void 0), a([N(cc.Sprite)], t.prototype, "AllianceFlag", void 0), a([N(cc.Sprite)], t.prototype, "AllianceLogo", void 0), a([N(cc.Node)], t.prototype, "RedDotNode", void 0), a([N(cc.Sprite)], t.prototype, "UserTitleIcon", void 0), a([N(cc.Node)], t.prototype, "NormalNode", void 0), a([N(cc.Label)], t.prototype, "NormalTag", void 0), a([N(cc.Label)], t.prototype, "NormalValue", void 0), a([B], t)
        }(cc.Component);
        n.default = E, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/UIManager": "UIManager",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotDataHandler": "RedDotDataHandler",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/AngelPvpComponent": "AngelPvpComponent",
        "../Panel/ContinuousFightPanel": "ContinuousFightPanel",
        "../Panel/CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "../Panel/CrossServerRankPanel": "CrossServerRankPanel",
        "./CustomRichText": "CustomRichText",
        "./HeadComponent": "HeadComponent"
    }],
    RateCellItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "59e83zX/ytGKqjrz5/raESf", "RateCellItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("./ItemComponent"),
            c = e("../../../EZFramework/AssetsLoader/AssetsManager"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../../../EZFramework/EZFramework"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../Auxiliary/UIUtlity"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = e("../../../ShareConsts/EnumType"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemRoot = null, t.RateLabel = null, t._heroCardPrefeix = 11e5, t._item = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    h.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), h.Game.EventDispatcher.On(y.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.onDisable = function() {
                    h.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), h.Game.EventDispatcher.Off(y.EventKeys.EVENT_CHECK_BUNDINGBOX, this.CheckVisible, this)
                }, t.prototype.OnItemClick = function(e, t) {
                    if (this.ItemRoot.children[0] == t)
                        if (this._itemType == l.ItemComponentType.ItemCommon) switch (m.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e).Type) {
                            case I.ItemType.HolyEquip:
                                f.UIManager.Instance.ShowUIPanel(u.PanelConfig.HolyEquipTipPanel.Path, {
                                    ItemId: e
                                }, this.node);
                                break;
                            default:
                                g.UIUtlity.ShowItemTip(e, t)
                        } else this._itemType == l.ItemComponentType.HeroInfo ? g.UIUtlity.ShowItemTip(e + this._heroCardPrefeix, t) : this._itemType == l.ItemComponentType.Pet || g.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.InitUI = function(e, t, n) {
                    this._itemData = e, this._itemType = t, this._rateStr = n, this.InitItem(), this.SetRate()
                }, t.prototype.InitItem = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return null != this._commonItemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(u.BundlePath.ItemComponent)]);
                                case 1:
                                    if (e._commonItemPrefab = t.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab), [2];
                                    t.label = 2;
                                case 2:
                                    return null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(l.ItemComponent), this._item.node.parent = this.ItemRoot), this._itemData instanceof p.UserItem_Model ? this._item.node.name = this._itemData.ItemId.toString() : this._itemData instanceof p.HeroInfo_Model || (this._item.node.name = this._itemData.ItemId.toString()), this._item.Init(this._itemData, this._itemType), [2]
                            }
                        })
                    })
                }, t.prototype.SetRate = function() {
                    "" != this._rateStr ? this.RateLabel.string = this._rateStr + "%" : this.RateLabel.string = ""
                }, t.prototype.CheckVisible = function(e) {
                    var t = this.node.getBoundingBoxToWorld().intersects(e);
                    this.node.opacity = t ? 255 : 0
                }, t.prototype.onDestroy = function() {
                    this.Dispose()
                }, t.prototype.Dispose = function() {
                    c.AssetsManager.Instance.UnloadAsset(this._commonItemPrefab)
                }, i([v(cc.Node)], t.prototype, "ItemRoot", void 0), i([v(cc.Label)], t.prototype, "RateLabel", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/AssetsLoader/AssetsManager": "AssetsManager",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent"
    }],
    RatePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5e075mvd5RHqoJhEQxporgZ", "RatePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../Components/CustomLayout"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/RateCellItem"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../../ShareConsts/EnumType"),
            h = e("../../Channel/ChannelManager"),
            f = e("../../Auxiliary/DataUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.PopUp, !1), t.Tittle = null, t.ShowTag = null, t.Scroll = null, t.Grid = null, t.RATE_CELL_ITEM_PATH = "ItemsComponent/RateCellItem", t._cellItemPrefab = null, t._isLayoutInit = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(this.RATE_CELL_ITEM_PATH)];
                                case 1:
                                    return t._cellItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitData = function(e) {
                    this._data = e[0], this._itemComonType = e[1], this._shrinkRate = e[2], this._fixedExact = e[3], this._consumeType = e[4], null != e[5] ? this._isNormalItemPiece = e[5] : this._isNormalItemPiece = !1
                }, t.prototype.DisPlay = function() {
                    if (e.prototype.DisPlay.call(this), null != this._consumeType) switch (this.ShowTag.node.active = !0, this.ShowTag.string = ("ratePanel_showTag_" + this._consumeType).ToUILocale(), this._consumeType) {
                        case d.ConsumeItemType.FixedBox:
                        case d.ConsumeItemType.RandomBox:
                        case d.ConsumeItemType.ManualBox:
                        case d.ConsumeItemType.DynamicBox:
                            this.Tittle.string = "detail".ToUILocale();
                            break;
                        default:
                            this.Tittle.string = "ratepanel_tittle".ToUILocale()
                    } else this._isNormalItemPiece ? this.Tittle.string = "detail".ToUILocale() : this.Tittle.string = "ratepanel_tittle".ToUILocale(), this.ShowTag.node.active = !1;
                    this.InitCustomLayout()
                }, t.prototype.InitCustomLayout = function() {
                    this._isLayoutInit || (this._isLayoutInit = !0, this.Grid.Init(this._cellItemPrefab, !1)), this.Grid.RenderLayOut(this._data.length)
                }, t.prototype.RefreshScrollView = function(e, t) {
                    var n = this;
                    t == this.Grid && e.forEach(function(e, t) {
                        var o, r = e.getComponent(u.default);
                        if (n._data[t].Rate > 0)
                            if (h.default.Instance.IsHighSchoolChannel()) {
                                var i = n._data[t].Rate / n._shrinkRate;
                                o = f.default.Instance.FormatNumber(i, 3)
                            } else o = n._data[t].Rate / n._shrinkRate;
                        else o = "";
                        r.InitUI(n._data[t].ItemData, n._itemComonType, o)
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this)
                }, i([m(cc.Label)], t.prototype, "Tittle", void 0), i([m(cc.Label)], t.prototype, "ShowTag", void 0), i([m(cc.ScrollView)], t.prototype, "Scroll", void 0), i([m(l.default)], t.prototype, "Grid", void 0), i([g], t)
            }(c.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Channel/ChannelManager": "ChannelManager",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/RateCellItem": "RateCellItem"
    }],
    RealNamePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "94702L26WJBzLBJ94o7xy4C", "RealNamePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../../Tool/Tool"),
            d = e("../../../Consts/Consts"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./AgreementPanel"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Channel/ChannelManager"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.HintLabel = null, t.OkButton = null, t.OkButtonLabel = null, t.NameEditBox = null, t.IDEditBox = null, t._closeCallBack = null, t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.OkButton.node.on("click", this.OnOkButtonClick, this), this.Title.string = "realName_title".ToUILocale(), this.HintLabel.string = "realName_hint".ToUILocale(), this.NameEditBox.placeholder = "realName_name".ToUILocale(), this.IDEditBox.placeholder = "realName_id".ToUILocale(), this.OkButtonLabel.string = "realName_submit".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._closeCallBack = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t)
                }, t.prototype.OnOkButtonClick = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r, i, m, I = this;
                        return s(this, function(_) {
                            switch (_.label) {
                                case 0:
                                    if (!this.NameEditBox.string) return y.UIUtlity.ShowFloatingHint("realName_nameEnter".ToUILocale()), [2];
                                    if (!this.IDEditBox.string) return y.UIUtlity.ShowFloatingHint("realName_idEnter".ToUILocale()), [2];
                                    e = null, t = u.GlobalConfigComponent.Instance.ServerAddress, n = t + "/account_id_card_verification", (o = new c.Req_Account_IdCardVerification).Param = u.GlobalConfigComponent.Instance.CreateWebCommonParam(d.GlobalSetting.RPC_SECRET_CODE), o.Pid = g.default.Instance.StorageAccountInfo.Current.Id, o.Token = g.default.Instance.StorageAccountInfo.Current.Token, o.Name = this.NameEditBox.string, o.IdCard = this.IDEditBox.string, _.label = 1;
                                case 1:
                                    return _.trys.push([1, 3, , 4]), [4, p.HttpTool.SendPostRequest(n, c.Req_Account_IdCardVerification.encode(o).finish())];
                                case 2:
                                    if (r = _.sent(), (i = c.Res_Account_IdCardVerification.decode(r)).ErrCode != d.ErrCode.OK) throw e = ("error_hint_content_code_" + i.ErrCode).ToUILocale() || null, new Error(i.ErrCode + ": " + i.ErrMsg);
                                    if (1 == i.Result) switch (g.default.Instance.StorageAccountInfo.Current.IdCardVerification = 1, g.default.Instance.StorageAccountInfo.Current.AgeType = i.AgeType, i.AgeType) {
                                        case d.UserAgeType.Over18:
                                            l.UIManager.Instance.ShowUIPanel(h.PanelConfig.AgreementPanel.Path, f.AgreementType.Over18, function() {
                                                I._closeCallBack && I._closeCallBack(), I.Close();
                                                var e = l.UIManager.Instance.GetUIPanel(h.PanelConfig.AccountInfoPanel.Path);
                                                e && e.Close()
                                            });
                                            break;
                                        case d.UserAgeType.From16To17:
                                            l.UIManager.Instance.ShowUIPanel(h.PanelConfig.AgreementPanel.Path, f.AgreementType.Under18, function() {
                                                I._closeCallBack && I._closeCallBack(), I.Close();
                                                var e = l.UIManager.Instance.GetUIPanel(h.PanelConfig.AccountInfoPanel.Path);
                                                e && e.Close()
                                            });
                                            break;
                                        case d.UserAgeType.Under16:
                                            l.UIManager.Instance.ShowUIPanel(h.PanelConfig.AgreementPanel.Path, f.AgreementType.Under16, function() {
                                                return a(I, void 0, void 0, function() {
                                                    return s(this, function(e) {
                                                        switch (e.label) {
                                                            case 0:
                                                                return [4, y.UIUtlity.ShowHintPanel("", "agreenment_under16End".ToUILocale(), null, null, "", function() {
                                                                    cc.game.end()
                                                                })];
                                                            case 1:
                                                                return e.sent().DisableMaskClose(), [2]
                                                        }
                                                    })
                                                })
                                            })
                                    }
                                    return [3, 4];
                                case 3:
                                    return m = _.sent(), l.EZLog.Error(m), e || (e = "AccountInfoPanelTip_AccountLoginError".ToUILocale()), y.UIUtlity.ShowFloatingHint(e), [3, 4];
                                case 4:
                                    return [2]
                            }
                        })
                    })
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.Label)], t.prototype, "HintLabel", void 0), i([_(cc.Button)], t.prototype, "OkButton", void 0), i([_(cc.Label)], t.prototype, "OkButtonLabel", void 0), i([_(cc.EditBox)], t.prototype, "NameEditBox", void 0), i([_(cc.EditBox)], t.prototype, "IDEditBox", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Tool/Tool": "Tool",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./AgreementPanel": "AgreementPanel"
    }],
    RealTimeScheduler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e9a1bQIIVBFyporusY4kMjm", "RealTimeScheduler");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RealTimeScheduler = void 0;
        var a = cc._decorator.ccclass,
            s = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._tasks = [], t
                }
                var n;
                return r(t, e), n = t, t.SetRpcComponent = function(e) {
                    this._rpcComponent = e
                }, t.prototype.ScheduleOnceAtRealTime = function(e, t, n) {
                    for (var o = null, r = 0; r < this._tasks.length; r++)
                        if (this._tasks[r].callback === e) {
                            o = this._tasks[r];
                            break
                        } if (o) o.endTimestamp = n, o.executed = !1;
                    else {
                        var i = {
                            callback: e,
                            endTimestamp: n,
                            executed: !1,
                            target: t
                        };
                        this._tasks.push(i)
                    }
                    this.CheckTasks()
                }, t.prototype.update = function() {
                    this.CheckTasks()
                }, t.prototype.CheckTasks = function() {
                    if (n._rpcComponent && 0 != this._tasks.length)
                        for (var e = n._rpcComponent.ServerTime, t = 0; t < this._tasks.length; t++) {
                            var o = this._tasks[t];
                            if (!o.executed && e >= o.endTimestamp) {
                                o.executed = !0;
                                var r = o.callback;
                                this._tasks.splice(t, 1), t--, r.call(o.target)
                            }
                        }
                }, t.prototype.UnscheduleAtRealTime = function(e) {
                    for (var t = 0; t < this._tasks.length; t++) this._tasks[t].callback === e && (this._tasks.splice(t, 1), t--)
                }, t.prototype.UnscheduleAllAtRealTime = function() {
                    this._tasks = []
                }, n = i([a], t)
            }(cc.Component);
        n.RealTimeScheduler = s, cc._RF.pop()
    }, {}],
    RechargeFeedbackComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9c6f6ZcqEFP157Lkc/NhLex", "RechargeFeedbackComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/Components"),
            u = e("./ItemComponent"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../Panel/RechargeFeedbackPanel"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../../Auxiliary/GameRecord"),
            g = e("../../Auxiliary/DataUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.Type1 = 0] = "Type1", e[e.Type2 = 1] = "Type2", e[e.Type3 = 2] = "Type3", e[e.Type4 = 3] = "Type4", e[e.Type5 = 4] = "Type5"
        })(a || (a = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ItemSprite = null, t.ItemNode = null, t.SelectLabel = null, t.MutlLabel = null, t.NodeButton = null, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                this.NodeButton.node.on("click", this.OnNodeButtonClick, this)
            }, t.prototype.onDisable = function() {
                this.NodeButton.node.off("click", this.OnNodeButtonClick, this)
            }, t.prototype.onLoad = function() {
                this.SelectLabel.string = "recharge_feedback_select_final".ToUILocale()
            }, t.prototype.Init = function(e, t) {
                this._itemPrefab = e, this.ItemSprite.spriteFrame = t
            }, t.prototype.SetData = function(e) {
                this._data = e, this.MutlLabel.string = "x" + e.Config.CustomPart.Multiple, this._model = c.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._data.Config._id), this._canClick = !0, this.SetItemNode()
            }, t.prototype.SetItemNode = function() {
                if (!this._itemComponent) {
                    var e = cc.instantiate(this._itemPrefab);
                    e.parent = this.ItemNode, this._itemComponent = e.getComponent(u.ItemComponent)
                }
                var t = h.default.GetOpenCount(this._data.Config._id);
                this._itemComponent.node.active = 0 != this._data.ItemId, this.ItemSprite.node.active = 0 == this._data.ItemId, this.SelectLabel.node.active = -1 == this._data.ItemId, this.MutlLabel.node.active = !1, this._itemComponent.PauseGetRewardEffect(), this._itemComponent.SetRedDotState(!1), this._data.ItemId > 0 ? (this._itemComponent.Init({
                    ItemId: this._data.ItemId,
                    Count: this._data.ItemCount
                }), this._model.Int2DArray && this._model.Int2DArray[0] && this._model.Int2DArray[0].Items[0] >= 0 ? (t >= this._data.Config.CustomPart.Count && !this._model.IntArray[3] && this._model.Int2DArray[2].Items.includes(this._data.Index) ? (this._state = a.Type4, this._itemComponent.PlayGetRewardEffect(), this._itemComponent.SetSelectFlagState(!1), this._itemComponent.SetRedDotState(!0, 1.4)) : (this._state = a.Type5, this._itemComponent.SetSelectFlagState(!0), this._data.IsFinalReward && this._itemComponent.PlayGetRewardEffect()), this.MutlLabel.node.active = 1 == this._model.IntArray[3] || t >= this._data.Config.CustomPart.Count && !this._model.Int2DArray[2].Items.includes(this._data.Index)) : this._state = a.Type3) : this._data.ItemId < 0 ? (this._state = a.Type2, this._itemComponent.SetItemSimpleState(), this._itemComponent.SetAddFlagState(!0), this._itemComponent.PlayGetRewardEffect()) : this._state = a.Type1
            }, t.prototype.OnNodeButtonClick = function() {
                var e = this;
                if (this._canClick && !(this._model.IntArray[0] >= this._data.Config.CustomPart.Turn && this._data.Config.CustomPart.Turn > 0)) switch (this._state) {
                    case a.Type1:
                        if (y.default.GetItem(y.GameRecordDefine.RechargeFeedbackOpenTip)) this.RequestOpenItem();
                        else {
                            var t = "";
                            this._data.Config._Locale && this._data.Config._Locale[h.RechargeFeedbackLocalUIType.OpenTips] && (t = this._data.Config._Locale[h.RechargeFeedbackLocalUIType.OpenTips].Content), p.UIUtlity.ShowHintPanel(null, t.Fmt(this._data.ConsumeId.ToItemName(), this._data.ConsumeCount), "", null, "", function() {
                                e.RequestOpenItem()
                            }, void 0, y.GameRecordDefine.RechargeFeedbackOpenTip)
                        }
                        break;
                    case a.Type2:
                        s.UIManager.Instance.ShowUIPanel(f.PanelConfig.RechargeFeedbackSelectPanel.Path, this._data.Config);
                        break;
                    case a.Type3:
                    case a.Type5:
                        p.UIUtlity.ShowItemTip(this._data.ItemId, this.ItemNode);
                        break;
                    case a.Type4:
                        var n = new l.Req_Activity_RechargeFeedbackExtraRewards;
                        n.ActivityId = this._data.Config._id, c.RpcComponent.Instance.Call(n, function(e) {
                            p.UIUtlity.ShwDisplayRewardPanel(e.Rewards), s.Game.EventDispatcher.Emit(d.EventKeys.EVENT_RECHARGE_FEEDBACK_REFRESH, !1, !0)
                        })
                }
            }, t.prototype.RequestOpenItem = function() {
                if (c.DataCenter.Instance.IsItemEnough(this._data.ConsumeId, this._data.ConsumeCount)) {
                    if (!g.default.CheckActivityIsEnd(this._data.Config.Common, !0)) {
                        var e = new l.Req_Activity_CommonSummon;
                        e.ActivityId = this._data.Config._id, e.Count = 1, e.ExtraParam = [this._data.Index], e.ItemId = this._data.Config.__CommonSummon[0].ConsumeItem[0].Items[0], e.Type = this._model.IntArray[1], c.RpcComponent.Instance.Call(e, function(e) {
                            var t = [];
                            e.Items.forEach(function(e) {
                                e.Items[0] > 0 && t.push({
                                    ItemId: e.Items[0],
                                    Count: e.Items[1]
                                })
                            }), p.UIUtlity.ShwDisplayRewardPanel(t), s.Game.EventDispatcher.Emit(d.EventKeys.EVENT_RECHARGE_FEEDBACK_REFRESH, !1)
                        })
                    }
                } else p.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(this._data.ConsumeId.ToItemName()))
            }, t.prototype.SetCanClick = function(e) {
                this._canClick = e
            }, i([_(cc.Sprite)], t.prototype, "ItemSprite", void 0), i([_(cc.Node)], t.prototype, "ItemNode", void 0), i([_(cc.Label)], t.prototype, "SelectLabel", void 0), i([_(cc.Label)], t.prototype, "MutlLabel", void 0), i([_(cc.Button)], t.prototype, "NodeButton", void 0), i([I], t)
        }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/RechargeFeedbackPanel": "RechargeFeedbackPanel",
        "./ItemComponent": "ItemComponent"
    }],
    RechargeFeedbackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1c640W+Ch9NmrnFJqlvd8dg", "RechargeFeedbackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RechargeFeedbackLocalUIType = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../Consts/Consts"),
            h = e("../Components/CustomLayout"),
            f = e("../../Auxiliary/GlobalDefine"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../Components/RechargeFeedbackComponent"),
            I = e("../../Auxiliary/DataUtlity"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property;
        (function(e) {
            e[e.RemainCount = 0] = "RemainCount", e[e.SubTitle = 1] = "SubTitle", e[e.DoubleDesc = 2] = "DoubleDesc", e[e.OpenTips = 3] = "OpenTips"
        })(l = n.RechargeFeedbackLocalUIType || (n.RechargeFeedbackLocalUIType = {}));
        var b = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Bg = null, t.Title = null, t.Time = null, t.RuleButton = null, t.FreeButton = null, t.FreeLabel = null, t.PrevieButton = null, t.PrevieLabel = null, t.ItemSprite1 = null, t.RechargeDesc = null, t.Recharge = null, t.CountDesc = null, t.Count = null, t.ItemSprite2 = null, t.SubTitle = null, t.Desc = null, t.CustomLayout = null, t.ReturnButton = null, t.EndSummon = null, t.EndLabel = null, t.FreeReddot = null, t.FreeReceived = null, t._initLayout = !0, t._loadAssets = [], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.On(g.EventKeys.EVENT_RECHARGE_FEEDBACK_REFRESH, this.OnRefreshList, this), c.Game.EventDispatcher.On(d.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemDataChange, this), c.Game.EventDispatcher.On(d.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemDataChange, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this), c.Game.EventDispatcher.Off(g.EventKeys.EVENT_RECHARGE_FEEDBACK_REFRESH, this.OnRefreshList, this), c.Game.EventDispatcher.Off(d.GameEventIds.AddDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemDataChange, this), c.Game.EventDispatcher.Off(d.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemDataChange, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("RechargeFeedbackPanel/Components/RechargeFeedbackComponent", cc.Prefab), n = this.LoadDynamicAsset(f.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n]).then(function(e) {
                                    o._listItemPrefab = e[0], o._itemPrefab = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.FreeLabel.string = "recharge_feedback_free".ToUILocale(), this.PrevieLabel.string = "AccumulateRecharge_rewardPreview".ToUILocale(), this.EndLabel.string = "recharge_feedback_end".ToUILocale(), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.FreeButton.node.on("click", this.OnFreeButtonClick, this), this.PrevieButton.node.on("click", this.OnPreviewButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._activityId = t[0], this._config = u.DataCenter.Instance.ActivityConfigs[this._activityId], this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), this._endTime = I.default.Instance.ComputeDeadTime(this._config.Common), this.Title.string = this._config.Common.Title, this.SetListData(), this.SetLabelInfo(), this.SetDesc()
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r, i = this;
                    return s(this, function(a) {
                        switch (a.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), t = I.default.Instance.GetItemPathById(this._consumeItemId), [4, this.LoadDynamicAsset(t, cc.SpriteFrame)];
                            case 1:
                                return n = a.sent(), this.ItemSprite1.spriteFrame = n, this.ItemSprite2.spriteFrame = n, o = I.default.LoadActivityTexture(this._config.CustomPart.Picture), r = I.default.LoadActivityTexture(this._config.Common.ShowImage), [4, Promise.all([o, r]).then(function(e) {
                                    i._itemSprite2 = e[0], i.Bg.spriteFrame = e[1], i._loadAssets.push(e[0]), i._loadAssets.push(e[1])
                                })];
                            case 2:
                                return a.sent(), [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || this.SetUIContent()
            }, t.prototype.SetUIContent = function() {
                this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), this.SetTime(), this.SetSubTitle(), this.SetRemainCount(), this.SetListContent(), this.SetFreeNode()
            }, t.prototype.SetTime = function() {
                this.CountDown(), this.schedule(this.CountDown, 1)
            }, t.prototype.SetSubTitle = function() {
                this._model.Int2DArray && this._model.Int2DArray[0] && this._model.Int2DArray[0].Items[0] >= 0 ? this.SubTitle.string = this.GetLocalContent(l.SubTitle) : this.SubTitle.string = "recharge_feedback_select_first".ToUILocale()
            }, t.prototype.SetRemainCount = function() {
                var e = u.DataCenter.Instance.GetItemCount(this._consumeItemId);
                this.Count.string = "x{0}".Fmt(e)
            }, t.prototype.CountDown = function() {
                var e = this._endTime - u.RpcComponent.Instance.ServerTime;
                if (e < 0) return this.unschedule(this.CountDown), void c.UIManager.Instance.BackUIPanel();
                this.Time.string = "elementArena_time".ToUILocale().Fmt(I.default.ActivityTimeLeftFormat(e))
            }, t.prototype.SetLabelInfo = function() {
                var e = this._model.IntArray[4] || 0,
                    t = u.DataCenter.Instance.GetItemCount(d.CommonItemId.VipPoint),
                    n = 0 == this._config.CustomPart.Turn ? "" : "recharge_feedback_limit".ToUILocale().Fmt(20 * this._config.CustomPart.Turn);
                this.RechargeDesc.string = "recharge_feedback_pay_get".ToUILocale().Fmt(this._config.CustomPart.Point, this._consumeItemId.ToItemName(), this._consumeCount, n), this.Recharge.string = "recharge_feedback_has_recharge".ToUILocale().Fmt(t - e), this.CountDesc.string = this.GetLocalContent(l.RemainCount)
            }, t.prototype.SetDesc = function() {
                1 == this._model.IntArray[3] ? this.Desc.string = "recharge_feedback_double".ToUILocale().Fmt(this._config.CustomPart.Multiple) : this.Desc.string = this.GetLocalContent(l.DoubleDesc).Fmt(this._config.CustomPart.Count, this._config.CustomPart.Multiple, this._config.CustomPart.Count - 1)
            }, t.prototype.GetLocalContent = function(e) {
                return this._config._Locale && this._config._Locale[e] ? this._config._Locale[e].Content : ""
            }, t.prototype.SetListData = function() {
                var e = this;
                this._isReceiveAll = this._model.IntArray[0] >= this._config.CustomPart.Turn && this._config.CustomPart.Turn > 0, this._listDatas = [], this._randomConfigMap || (this._randomConfigMap = {}, this._config.__RandomLib.forEach(function(t) {
                    e._randomConfigMap[t.Id] = t
                }));
                var t = this._model.IntArray[1],
                    n = this._config.__CommonSummon.find(function(e) {
                        return e.Id == t
                    });
                this._consumeItemId = n.ConsumeItem[0].Items[0], this._consumeCount = n.ConsumeItem[0].Items[1];
                var o = this._config.__SummonType.find(function(e) {
                    return e.Id == n.SummonType
                });
                if (o) {
                    for (var r, i = 0, a = 0; a < o.Libs.length; a++) {
                        var s = o.Libs[a].Items[1],
                            l = this._randomConfigMap[s];
                        if (l && 0 == l.Rewards[0].Items[0]) {
                            i = l.Rewards.length, r = l.Id;
                            break
                        }
                    }
                    for (a = 0; a < i; a++) {
                        var c = {},
                            u = void 0,
                            p = 0,
                            d = 0,
                            h = !1;
                        if (this._model.Int2DArray && this._model.Int2DArray[0] && this._model.Int2DArray[0].Items[a] >= 0)
                            if (this._model.IntMap && this._model.IntMap[a]) {
                                var f = Math.floor(this._model.IntMap[a] / 1e3),
                                    y = this._model.IntMap[a] % (1e3 * f);
                                if (r == f) {
                                    var g = this._model.Int2DArray[0].Items[y];
                                    u = this._config.CustomPart.Rewards[g].Items[0], p = this._config.CustomPart.Rewards[g].Items[1], d = this._config.CustomPart.Rewards[g].Items[3] || 0, h = !0
                                } else {
                                    var m = this._randomConfigMap[f];
                                    u = m.Rewards[y].Items[0], p = m.Rewards[y].Items[1], d = m.Rewards[y].Items[3] || 0
                                }
                            } else u = 0;
                        else u = -1;
                        c.Index = a, c.ItemId = u, c.ItemCount = p, c.Effect = d, c.Config = this._config, c.ConsumeId = this._consumeItemId, c.ConsumeCount = this._consumeCount, c.IsFinalReward = h, this._listDatas.push(c)
                    }
                    var I = i;
                    o.Libs[1].Items.forEach(function(t, n) {
                        n > 0 && e._randomConfigMap[t].Rewards.forEach(function(t) {
                            var n, o = {},
                                i = 0,
                                a = 0,
                                s = !1;
                            if (e._model.Int2DArray && e._model.Int2DArray[0] && e._model.Int2DArray[0].Items[0] >= 0)
                                if (e._model.IntMap && e._model.IntMap[I]) {
                                    var l = Math.floor(e._model.IntMap[I] / 1e3),
                                        c = e._model.IntMap[I] % (1e3 * l);
                                    if (r == l) {
                                        var u = e._model.Int2DArray[0].Items[c];
                                        n = e._config.CustomPart.Rewards[u].Items[0], i = e._config.CustomPart.Rewards[u].Items[1], a = e._config.CustomPart.Rewards[u].Items[3] || 0, s = !0
                                    } else {
                                        var p = e._randomConfigMap[l];
                                        n = p.Rewards[c].Items[0], i = p.Rewards[c].Items[1], a = p.Rewards[c].Items[3] || 0
                                    }
                                } else n = 0;
                            else n = t.Items[0], i = t.Items[1], a = t.Items[3] || 0;
                            o.Index = I, o.ItemId = n, o.ItemCount = i, o.Effect = a, o.Config = e._config, o.ConsumeId = e._consumeItemId, o.ConsumeCount = e._consumeCount, o.IsFinalReward = s, e._listDatas.push(o), I++
                        })
                    })
                }
            }, t.GetOpenCount = function(e) {
                var t = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, e),
                    n = u.DataCenter.Instance.ActivityConfigs[e],
                    o = t.IntArray[1],
                    r = {};
                n.__RandomLib.forEach(function(e) {
                    r[e.Id] = e
                });
                var i = n.__CommonSummon.find(function(e) {
                        return e.Id == o
                    }),
                    a = n.__SummonType.find(function(e) {
                        return e.Id == i.SummonType
                    }),
                    s = 0;
                a.Libs.forEach(function(e) {
                    s += r[e.Items[1]].Rewards.length
                });
                var l = 0;
                if (t.IntMap)
                    for (var c = 0; c < s; c++) t.IntMap[c] > 0 && l++;
                return l
            }, t.prototype.SetListContent = function() {
                this._initLayout && (this.CustomLayout.Init(this._listItemPrefab), this._initLayout = !1), this.EndSummon.active = this._isReceiveAll, this.CustomLayout.RenderLayOut(this._listDatas.length)
            }, t.prototype.SetFreeNode = function() {
                this.FreeReddot.active = !this._model.DailyRewards, this.FreeReceived.active = this._model.DailyRewards > 0
            }, t.prototype.RefreshCustomLayout = function(e, t) {
                var n = this;
                t == this.CustomLayout && e.forEach(function(e, t) {
                    var o = e.getComponent(m.default);
                    o.Init(n._itemPrefab, n._itemSprite2), o.SetData(n._listDatas[t])
                })
            }, t.prototype.OnRefreshList = function(e, t) {
                var n = this;
                if (void 0 === e && (e = !1), void 0 === t && (t = !1), this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId), this.SetListData(), this.SetSubTitle(), this.SetRemainCount(), this.SetListContent(), e) {
                    this._nodePos = [], this.CustomLayout.node.children.forEach(function(e) {
                        n._nodePos.push(e.position), e.getComponent(m.default).SetCanClick(!1)
                    });
                    var o = this.CustomLayout.ScrollView.node.convertToWorldSpaceAR(cc.v2(0, 0)),
                        r = this.CustomLayout.node.convertToNodeSpaceAR(o);
                    this.CustomLayout.node.children.forEach(function(e, t) {
                        n.SetMove(e, n._nodePos[t], r)
                    })
                }
                t && this.SetDesc()
            }, t.prototype.SetMove = function(e, t, n) {
                cc.tween(e).tag(this._activityId).to(.5, {
                    x: n.x,
                    y: n.y
                }).delay(.5).to(.5, {
                    x: t.x,
                    y: t.y
                }).call(function() {
                    e.getComponent(m.default).SetCanClick(!0)
                }).start()
            }, t.prototype.OnUserItemDataChange = function(e) {
                var t = this;
                for (var o in e)
                    if (Number.parseInt(o) == d.CommonItemId.VipPoint) {
                        if (n.CheckNeedRequest(this._activityId)) {
                            var r = new p.Req_Activity_RechargeFeedbackRefreshItem;
                            r.ActivityId = this._activityId, u.RpcComponent.Instance.Call(r, function() {
                                t.SetRemainCount()
                            })
                        }
                        break
                    }
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "recharge_feedback_rule_title".ToUILocale(),
                    titles: ["HeroTalent_Rule".ToUILocale()],
                    contents: ["recharge_feedback_rule_content".ToUILocale()]
                };
                y.UIUtlity.ShowRulePanel(e)
            }, t.prototype.OnFreeButtonClick = function() {
                var e = this;
                if (this._model.DailyRewards > 0) y.UIUtlity.ShowFloatingHint("recharge_feedback_free_received".ToUILocale());
                else {
                    var t = new p.Req_Activity_CommonDailyRewards;
                    t.ActivityId = this._activityId, t.Type = d.LimitBuyType.Daily, u.RpcComponent.Instance.Call(t, function(t) {
                        y.UIUtlity.ShwDisplayRewardPanel(t.Rewards), e._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, e._activityId), e.SetFreeNode()
                    })
                }
            }, t.prototype.OnPreviewButtonClick = function() {
                this._isReceiveAll ? y.UIUtlity.ShowFloatingHint("recharge_feedback_end_all".ToUILocale()) : this._model.Int2DArray && this._model.Int2DArray[0] && this._model.Int2DArray[0].Items[0] >= 0 ? c.UIManager.Instance.ShowUIPanel(f.PanelConfig.RechargeFeedbackPreviewPanel.Path, this._config) : y.UIUtlity.ShowFloatingHint("recharge_feedback_select_first".ToUILocale())
            }, t.CheckNeedRequest = function(e) {
                var t = u.DataCenter.Instance.ActivityConfigs[e];
                if (t) {
                    var n = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, e).IntArray[2];
                    if (u.DataCenter.Instance.GetItemCount(d.CommonItemId.VipPoint) - n >= t.CustomPart.Point) return !0
                }
                return !1
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks(), cc.Tween.stopAllByTag(this._activityId)
            }, i([v(cc.Sprite)], t.prototype, "Bg", void 0), i([v(cc.Label)], t.prototype, "Title", void 0), i([v(cc.RichText)], t.prototype, "Time", void 0), i([v(cc.Button)], t.prototype, "RuleButton", void 0), i([v(cc.Button)], t.prototype, "FreeButton", void 0), i([v(cc.Label)], t.prototype, "FreeLabel", void 0), i([v(cc.Button)], t.prototype, "PrevieButton", void 0), i([v(cc.Label)], t.prototype, "PrevieLabel", void 0), i([v(cc.Sprite)], t.prototype, "ItemSprite1", void 0), i([v(cc.RichText)], t.prototype, "RechargeDesc", void 0), i([v(cc.RichText)], t.prototype, "Recharge", void 0), i([v(cc.Label)], t.prototype, "CountDesc", void 0), i([v(cc.Label)], t.prototype, "Count", void 0), i([v(cc.Sprite)], t.prototype, "ItemSprite2", void 0), i([v(cc.Label)], t.prototype, "SubTitle", void 0), i([v(cc.Label)], t.prototype, "Desc", void 0), i([v(h.default)], t.prototype, "CustomLayout", void 0), i([v(cc.Button)], t.prototype, "ReturnButton", void 0), i([v(cc.Node)], t.prototype, "EndSummon", void 0), i([v(cc.Label)], t.prototype, "EndLabel", void 0), i([v(cc.Node)], t.prototype, "FreeReddot", void 0), i([v(cc.Node)], t.prototype, "FreeReceived", void 0), n = i([C], t)
        }(c.BaseUIFullScreenPanel);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/RechargeFeedbackComponent": "RechargeFeedbackComponent"
    }],
    RechargeFeedbackPreviewPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a5efdoxvx1HGqtGgg9J6hQ4", "RechargeFeedbackPreviewPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/Components"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = e("../Auxiliary/UIUtlity"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Title1 = null, t.Title2 = null, t.Layout1 = null, t.Layout2 = null, t.HasReceived = null, t.Tips = null, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._itemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "AccumulateRecharge_rewardPreview".ToUILocale(), this.Title1.string = "recharge_feedback_select".ToUILocale(), this.Title2.string = "recharge_feedback_other".ToUILocale(), this.Tips.string = "recharge_feedback_next".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._config = t[0]
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), t || (this.SetData(), this.SetRewardNodes())
                }, t.prototype.SetData = function() {
                    var e = this;
                    this._finalRewardDatas = [], this._rewardDatas = [], this._receiveCount = 0, this._totalCount = 0;
                    var t = c.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._config._id),
                        n = t.IntArray[1],
                        o = {};
                    this._config.__RandomLib.forEach(function(e) {
                        o[e.Id] = e
                    });
                    var r = this._config.__CommonSummon.find(function(e) {
                            return e.Id == n
                        }),
                        i = this._config.__SummonType.find(function(e) {
                            return e.Id == r.SummonType
                        }),
                        a = 0;
                    i.Libs.forEach(function(n) {
                        var r = o[n.Items[1]];
                        if (0 == r.Rewards[0].Items[0]) {
                            a = r.Rewards.length;
                            for (var i = 0; i < a; i++) {
                                var s = 1e3 * r.Id + i,
                                    l = !1;
                                t.IntMap && t.IntMap[s] >= 0 && (l = !0, e._receiveCount++);
                                var c = {};
                                c.Reward = e._config.CustomPart.Rewards[t.Int2DArray[0].Items[i]], c.IsReceive = l, e._finalRewardDatas.push(c), e._totalCount++
                            }
                        } else r.Rewards.forEach(function(n, o) {
                            var i = 1e3 * r.Id + o,
                                a = !1;
                            t.IntMap && t.IntMap[i] >= 0 && (a = !0, e._receiveCount++);
                            var s = {};
                            s.Reward = n, s.IsReceive = a, e._rewardDatas.push(s), e._totalCount++
                        })
                    })
                }, t.prototype.SetRewardNodes = function() {
                    var e = this;
                    this._finalRewardDatas.forEach(function(t) {
                        var n = cc.instantiate(e._itemPrefab);
                        n.parent = e.Layout1.node;
                        var o = n.getComponent(d.ItemComponent);
                        o.Init({
                            ItemId: t.Reward.Items[0],
                            Count: t.Reward.Items[1]
                        }), o.SetSelectFlagState(t.IsReceive)
                    }), this._rewardDatas.forEach(function(t) {
                        var n = cc.instantiate(e._itemPrefab);
                        n.parent = e.Layout2.node;
                        var o = n.getComponent(d.ItemComponent);
                        o.Init({
                            ItemId: t.Reward.Items[0],
                            Count: t.Reward.Items[1]
                        }), o.SetSelectFlagState(t.IsReceive)
                    }), this.HasReceived.string = "recharge_feedback_hasReceived".ToUILocale().Fmt(this._receiveCount, this._totalCount)
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.Layout1.node.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t), -1 != this.Layout2.node.children.indexOf(t) && f.UIUtlity.ShowItemTip(t.getComponent(d.ItemComponent).ItemId, t)
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Label)], t.prototype, "Title1", void 0), i([m(cc.Label)], t.prototype, "Title2", void 0), i([m(cc.Layout)], t.prototype, "Layout1", void 0), i([m(cc.Layout)], t.prototype, "Layout2", void 0), i([m(cc.RichText)], t.prototype, "HasReceived", void 0), i([m(cc.Label)], t.prototype, "Tips", void 0), i([g], t)
            }(l.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    RechargeFeedbackSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "5f534sK7dVCA5rrPmIfwzMs", "RechargeFeedbackSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Components/CustomLayout"),
            f = e("../Components/ItemComponent"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../../Auxiliary/GameRecord"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.Title = null, t.Tag = null, t.Customlayout = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t._commonItemPrefab = null, t._configData = null, t._model = null, t._initLayout = !0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.On(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), l.Game.EventDispatcher.Off(p.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshCustomLayout, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return t._commonItemPrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Title.string = "recharge_feedback_select_reward_title".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t), this._configData = t[0], this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id), this._selectIndexs = []
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetTag(), this.SetItems()
                }, t.prototype.SetTag = function() {
                    var e = this;
                    this._randomConfigMap || (this._randomConfigMap = {}, this._configData.__RandomLib.forEach(function(t) {
                        e._randomConfigMap[t.Id] = t
                    }));
                    for (var t = this._model.IntArray[1], n = this._configData.__CommonSummon.find(function(e) {
                            return e.Id == t
                        }), o = this._configData.__SummonType.find(function(e) {
                            return e.Id == n.SummonType
                        }), r = 0; r < o.Libs.length; r++) {
                        var i = this._randomConfigMap[o.Libs[r].Items[1]];
                        if (0 == i.Rewards[0].Items[0]) {
                            this._maxCount = i.Rewards.length;
                            break
                        }
                    }
                    this.Tag.string = "recharge_feedback_select_reward_tips".ToUILocale().Fmt(this._selectIndexs.length, this._maxCount)
                }, t.prototype.SetItems = function() {
                    this._initLayout && (this.Customlayout.Init(this._commonItemPrefab), this._initLayout = !1), this.Customlayout.RenderLayOut(this._configData.CustomPart.Rewards.length)
                }, t.prototype.SetClickEvent = function() {
                    this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.RefreshCustomLayout = function(e, t) {
                    var n = this;
                    t == this.Customlayout && e.forEach(function(e, t) {
                        e.name = t.toString();
                        var o = e.getComponent(f.ItemComponent);
                        o.Init({
                            ItemId: n._configData.CustomPart.Rewards[t].Items[0],
                            Count: n._configData.CustomPart.Rewards[t].Items[1]
                        }), o.SetSelectFlagState(n._selectIndexs.includes(t))
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    if (-1 != this.Customlayout.node.children.indexOf(t)) {
                        var n = Number(t.name),
                            o = this._selectIndexs.indexOf(n);
                        o > -1 ? (this._selectIndexs.splice(o, 1), t.getComponent(f.ItemComponent).SetSelectFlagState(!1), this.SetTag()) : this._selectIndexs.length >= this._maxCount ? y.UIUtlity.ShowFloatingHint("recharge_feedback_enough".ToUILocale()) : (this._selectIndexs.push(n), t.getComponent(f.ItemComponent).SetSelectFlagState(!0), this.SetTag()), this._configData.CustomPart.Rewards[n] && y.UIUtlity.ShowItemTip(this._configData.CustomPart.Rewards[n].Items[0], t)
                    }
                }, t.prototype.OnBtnCancelClick = function() {
                    this.Close()
                }, t.prototype.OnBtnSureClick = function() {
                    var e = this;
                    this._selectIndexs.length < this._maxCount ? y.UIUtlity.ShowFloatingHint("recharge_feedback_select_all".ToUILocale()) : g.default.GetItem(g.GameRecordDefine.RechargeFeedbackSelectTip) ? this.RequestSelectReward() : y.UIUtlity.ShowHintPanel(null, "recharge_feedback_select_tips".ToUILocale(), "", null, "", function() {
                        e.RequestSelectReward()
                    }, void 0, g.GameRecordDefine.RechargeFeedbackSelectTip)
                }, t.prototype.RequestSelectReward = function() {
                    var e = this,
                        t = new c.Req_Activity_RechargeFeedbackSelectRewards;
                    t.ActivityId = this._configData._id, t.Select = this._selectIndexs, u.RpcComponent.Instance.Call(t, function() {
                        l.Game.EventDispatcher.Emit(p.EventKeys.EVENT_RECHARGE_FEEDBACK_REFRESH, !0), e.Close()
                    })
                }, i([_(cc.Label)], t.prototype, "Title", void 0), i([_(cc.RichText)], t.prototype, "Tag", void 0), i([_(h.default)], t.prototype, "Customlayout", void 0), i([_(cc.Button)], t.prototype, "BtnCancel", void 0), i([_(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([_(cc.Button)], t.prototype, "BtnSure", void 0), i([_(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent"
    }],
    RechargeGuideItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "bf5f0qpq+hOVomoO/V2dpir", "RechargeGuideItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../../Consts/Etc"),
            p = e("../../Components/Components"),
            d = e("../../Auxiliary/DataUtlity"),
            h = e("./RechargeGuidePanel"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property,
            m = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.GoButton = null, t.GoButtonLabel = null, t.FinishNode = null, t.Received = null, t.Desc = null, t._task = null, t._assets = [], t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    this.GoButton.node.on("click", this.GoButtonClick, this)
                }, t.prototype.onDisable = function() {
                    this.GoButton.node.off("click", this.GoButtonClick, this)
                }, t.prototype.initData = function(e, t, n) {
                    this._task = e, this._configData = t;
                    var o = t._id * u.Etc.Multiplier + e.Id,
                        r = p.DataCenter.Instance.GetDataById(c.UserTask_Model, o);
                    r && (this.GoButton.node.active = r.Progress < e.TotalCount && e.GetWayId > 0, this.GoButtonLabel.string = "task_goto".ToUILocale(), this.FinishNode.active = r.Progress >= e.TotalCount), n == h.RechargeGuideMode.Accumulated ? (this.Received.string = "completed".ToUILocale(), this.Desc.node.active = r.Progress < e.TotalCount, this.Desc.string = "<outline color = #202434 width = 3>" + d.default.GetTaskDesc(this._task) + "(" + r.Progress + "/" + e.TotalCount + ")</outline>") : (this.Received.string = "BoughtToggleTagLabel".ToUILocale(), this.Desc.node.active = !1), this.SetBg()
                }, t.prototype.SetBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n = this;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return (e = this._configData.Picture.findIndex(function(e) {
                                        return e.Id == n._task.Id
                                    })) > -1 ? [4, d.default.LoadActivityTexture(this._configData.Picture[e].Picture)] : [3, 2];
                                case 1:
                                    if (t = o.sent(), !this.isValid) return l.AssetsManager.Instance.UnloadAsset(t), [2];
                                    this.Bg.spriteFrame = t, this._assets.push(t), o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.GoButtonClick = function() {
                    this._task.GetWayId && d.default.ShowPanelByGetWayId(this._task.GetWayId)
                }, t.prototype.onDestroy = function() {
                    this._assets.forEach(function(e) {
                        l.AssetsManager.Instance.UnloadAsset(e)
                    })
                }, i([g(cc.Sprite)], t.prototype, "Bg", void 0), i([g(cc.Button)], t.prototype, "GoButton", void 0), i([g(cc.Label)], t.prototype, "GoButtonLabel", void 0), i([g(cc.Node)], t.prototype, "FinishNode", void 0), i([g(cc.Label)], t.prototype, "Received", void 0), i([g(cc.RichText)], t.prototype, "Desc", void 0), i([y], t)
            }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "./RechargeGuidePanel": "RechargeGuidePanel"
    }],
    RechargeGuidePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f00abMB3uFCwIKXalxU90+7", "RechargeGuidePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RechargeGuideMode = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Components/Components"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../../Consts/Consts"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("./RechargeGuideItem"),
            _ = e("../../Components/Components"),
            C = e("../../RedDot/RedDotManager"),
            v = e("../../Auxiliary/GameRecord"),
            b = e("../Components/ActivityCountDownComponent"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property;
        (function(e) {
            e[e.Noraml = 0] = "Noraml", e[e.Accumulated = 1] = "Accumulated"
        })(l = n.RechargeGuideMode || (n.RechargeGuideMode = {}));
        var A = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.TitleLabel = null, t.FinalRewards = null, t.FinalReceiveButton = null, t.FinalReceiveLabel = null, t.FinalNoCompleteButton = null, t.FinalNoCompleteLabel = null, t.FinalReceived = null, t.FinalReceivedLabel = null, t.Toggles = [], t.ToggleLabels = [], t.PhaseTaskLabel = null, t.PhaseTaskProgress = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.NoCompleteButton = null, t.NoCompleteLabel = null, t.Mask = null, t.Received = null, t.ReceivedLabel = null, t.Rewards = null, t.ListParent = null, t.RuleButton = null, t.CountDownComponent = null, t.ReturnButton = null, t._cellPrefab = null, t._itemPrefab = null, t._deadLine = 0, t._finalRewards = [], t._rewards = [], t._curPhase = 0, t._cellNodes = [], t._mode = l.Noraml, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(m.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return [4, Promise.all([this.LoadDynamicAsset(h.BundlePath.ItemComponent, cc.Prefab), this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleRechargeGuide/RechargeGuideItem", cc.Prefab)]).then(function(t) {
                                    e._itemPrefab = t[0], e._cellPrefab = t[1]
                                })];
                            case 1:
                                return t.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t);
                var n = t[0];
                n && (this._configData = u.DataCenter.Instance.ActivityConfigs[n], this._configData.CustomPart.AccumulatedRecharge && (this._mode = l.Accumulated), this._deadLine = f.default.Instance.ComputeDeadTime(this._configData.Common), this.TitleLabel.string = this._configData.Common.Title), this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this.SetCurrentPhase()
            }, t.prototype.InitUI = function() {
                var e = this;
                this.ReceivedLabel.string = "already_receive".ToUILocale(), this.FinalReceivedLabel.string = "already_receive".ToUILocale(), this.PhaseTaskLabel.string = "payGuide_get_stage_reward".ToUILocale(), this.FinalReceiveLabel.string = "receive".ToUILocale(), this.FinalNoCompleteLabel.string = "mall_notReach".ToUILocale(), this.ReceiveLabel.string = "receive".ToUILocale(), this.NoCompleteLabel.string = "mall_notReach".ToUILocale(), this.ToggleLabels.forEach(function(e, t) {
                    var n = Math.floor(t / 3) + 1;
                    e.string = "payGuide_stage".ToUILocale().Fmt(n)
                }), this.FinalReceiveButton.node.on("click", this.OnFinalReceiveButtonClick, this), this.ReceiveButton.node.on("click", this.OnReceiveButtonClick, this), this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RuleButton.node.on("click", this.OnRuleButtonClick, this), this.Toggles.forEach(function(t) {
                    t.node.on("click", e.OnToggleSwitch, e)
                })
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), v.default.SetItem(v.GameRecordDefine.RechargeGuideRedDot, _.RpcComponent.Instance.ServerTime), c.Game.EventDispatcher.Emit(m.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._configData._id), this.SendRequest()
            }, t.prototype.SendRequest = function() {
                var e = this,
                    t = [];
                if (this._configData._Tasks.forEach(function(n) {
                        var o = e._configData._id * y.Etc.Multiplier + n.Id,
                            r = _.DataCenter.Instance.GetDataById(p.UserTask_Model, o);
                        r && r.IsCompleted || r.Progress >= n.TotalCount && t.push(n.Id)
                    }), t.length > 0) {
                    var n = new p.Req_Activity_CommonTaskReward;
                    n.ActivityId = this._configData._id, n.TaskIds = t, u.RpcComponent.Instance.Call(n, function() {
                        e._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, e._configData._id), e.SetUIContetn()
                    })
                } else this._model = u.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._configData._id), this.SetUIContetn();
                this.CheckIsAllBuy() && c.Game.EventDispatcher.Emit(m.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, this._configData._id, -1)
            }, t.prototype.CheckIsAllBuy = function() {
                for (var e = !0, t = 0; t < this._configData.Stage.length; t++)
                    if (!this._model.IntMap[this._configData.Stage[t].Id]) {
                        e = !1;
                        break
                    } return !(!this._model.IntValue || !e)
            }, t.prototype.SetUIContetn = function() {
                this.CountDownComponent.Init(this._configData.Common), this.InitNodes(), this.SetInfo(), this.SetFinalReward(), this.SetReward(), this.SetList(), this.SetToggles()
            }, t.prototype.SetCurrentPhase = function() {
                this._curPhase = this.GetCurrentPhase(), this._curPhase || (this._curPhase = 1)
            }, t.prototype.InitNodes = function() {
                this._finalRewards.forEach(function(e) {
                    e.active = !1
                }), this._rewards.forEach(function(e) {
                    e.active = !1
                }), this._cellNodes.forEach(function(e) {
                    e.active = !1
                }), this.FinalNoCompleteButton.node.active = !1, this.FinalReceiveButton.node.active = !1, this.FinalReceived.active = !1, this.NoCompleteButton.node.active = !1, this.ReceiveButton.node.active = !1, this.Received.active = !1, this.Mask.active = !1
            }, t.prototype.SetInfo = function() {
                var e = this.GetFinalState(),
                    t = this.GetPhaseData(this._curPhase),
                    n = [C.RedDotManager.Instance.InstanceRedDot.RechargeGuideStageNode1, C.RedDotManager.Instance.InstanceRedDot.RechargeGuideStageNode2, C.RedDotManager.Instance.InstanceRedDot.RechargeGuideStageNode3, C.RedDotManager.Instance.InstanceRedDot.RechargeGuideStageNode4];
                this.FinalNoCompleteButton.node.active = 0 == e, this.FinalReceiveButton.node.active = 1 == e, this.FinalReceived.active = 2 == e, this.NoCompleteButton.node.active = 0 == t.State || 3 == t.State, this.ReceiveButton.node.active = 1 == t.State, this.Received.active = this.Mask.active = 2 == t.State;
                var o = t.CurValue < t.MaxValue ? "#FF5B5B" : "#ffffff";
                this.PhaseTaskProgress.string = "<outline width = 3 color = #202434><color = " + o + ">" + t.CurValue + "</c>/" + t.MaxValue + "</outline>", C.RedDotManager.Instance.BindNodeByResult(this.FinalReceiveButton.node, C.RedDotManager.Instance.InstanceRedDot.RechargeGuideFianlNode, 1 == e);
                for (var r = 1; r < 5; r++) {
                    var i = this.GetPhaseData(r);
                    C.RedDotManager.Instance.BindNodeByResult(this.Toggles[r - 1].node, n[r - 1], 1 == i.State, 0, 0)
                }
            }, t.prototype.SetFinalReward = function() {
                var e = this;
                this._configData.CustomPart.Finally.forEach(function(t, n) {
                    var o = t.Items[0],
                        r = t.Items[1];
                    if (!e._finalRewards[n]) {
                        var i = cc.instantiate(e._itemPrefab);
                        e._finalRewards[n] = i, e._finalRewards[n].parent = e.FinalRewards
                    }
                    e._finalRewards[n].active = !0;
                    var a = e._finalRewards[n].getComponent(g.ItemComponent);
                    a.Init({
                        ItemId: o,
                        Count: r
                    }, g.ItemComponentType.ItemCommon), a.SetCountFontSize(30, 150)
                })
            }, t.prototype.SetReward = function() {
                var e = this;
                this._curPhase - 1 < 0 || this._configData.Stage[this._curPhase - 1].Rewards.forEach(function(t, n) {
                    var o = t.Items[0],
                        r = t.Items[1];
                    if (!e._rewards[n]) {
                        var i = cc.instantiate(e._itemPrefab);
                        e._rewards[n] = i, e._rewards[n].parent = e.Rewards
                    }
                    e._rewards[n].active = !0;
                    var a = e._rewards[n].getComponent(g.ItemComponent);
                    a.Init({
                        ItemId: o,
                        Count: r
                    }, g.ItemComponentType.ItemCommon), a.SetCountFontSize(26, 129)
                })
            }, t.prototype.SetToggles = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function() {
                        return this.Toggles.forEach(function(t, n) {
                            var o = t.node.getChildByName("Background"),
                                r = t.node.getChildByName("Lock"),
                                i = t.node.getChildByName("Check"),
                                a = e.GetPhaseData(n + 1);
                            o.active = !1, r.active = !1, i.active = !1, n + 1 == e._curPhase ? i.active = !0 : (o.active = a.State > 0, r.active = 0 == a.State)
                        }), [2]
                    })
                })
            }, t.prototype.SetList = function() {
                var e = this;
                this._configData.Stage[this._curPhase - 1].TaskIds.forEach(function(t, n) {
                    var o = e._configData._Tasks.find(function(e) {
                        return e.Id == t
                    });
                    if (o) {
                        if (!e._cellNodes[n]) {
                            var r = cc.instantiate(e._cellPrefab);
                            e._cellNodes[n] = r, e._cellNodes[n].parent = e.ListParent
                        }
                        e._cellNodes[n].active = !0, e._cellNodes[n].getComponent(I.default).initData(o, e._configData, e._mode)
                    }
                })
            }, t.prototype.GetCurrentPhase = function() {
                for (var e = 0, t = 0; t < this._configData.Stage.length; t++) {
                    var n = this._configData.Stage[t];
                    if (3 == this.GetPhaseData(n.Id).State) {
                        e = n.Id;
                        break
                    }
                }
                return e
            }, t.prototype.GetFinalState = function() {
                var e = this,
                    t = 0;
                if (1 == this._model.IntValue) t = 2;
                else {
                    var n = !0;
                    this._configData.Stage.forEach(function(t) {
                        t.TaskIds.forEach(function(t) {
                            var o = e._configData._id * y.Etc.Multiplier + t,
                                r = _.DataCenter.Instance.GetDataById(p.UserTask_Model, o);
                            r && r.IsCompleted || (n = !1)
                        })
                    }), t = 1 == n ? 1 : 0
                }
                return t
            }, t.prototype.GetPhaseData = function(e) {
                var t = this,
                    n = 0,
                    o = {},
                    r = this._configData.Stage[e - 1].TaskIds.length,
                    i = 0;
                if (this._model.IntMap[e]) n = 2;
                else {
                    for (var a = !0, s = !0, l = function(n) {
                            c._configData.Stage[n].TaskIds.forEach(function(o) {
                                var r = t._configData._id * y.Etc.Multiplier + o,
                                    l = _.DataCenter.Instance.GetDataById(p.UserTask_Model, r);
                                l && l.IsCompleted || (a = !1, i += 1, n < e - 1 && (s = !1))
                            })
                        }, c = this, u = 0; u < e; u++) l(u);
                    n = a ? 1 : e > 1 ? 1 == s ? 3 : 0 : 3
                }
                return o.State = n, o.CurValue = r - i, o.MaxValue = r, o
            }, t.prototype.OnToggleSwitch = function(e) {
                var t = Number.parseInt(e.name),
                    n = this.GetPhaseData(t);
                t == this._curPhase || 0 != n.State ? (this._curPhase = t, this.SetUIContetn()) : d.UIUtlity.ShowFloatingHint("payGuide_limit".ToUILocale())
            }, t.prototype.OnFinalReceiveButtonClick = function() {
                if (1 != this._model.IntValue) {
                    var e = new p.Req_Activity_PayGuideReward;
                    e.ActivityId = this._configData._id, e.Type = y.ReceiveRewardType.Finally, u.RpcComponent.Instance.Call(e, function(e) {
                        d.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }
            }, t.prototype.OnReceiveButtonClick = function() {
                var e = this;
                if (!(this._curPhase - 1 < 0 || this._model.IntMap[this._curPhase])) {
                    var t = new p.Req_Activity_PayGuideReward;
                    t.ActivityId = this._configData._id, t.Type = y.ReceiveRewardType.Stage, t.Id = this._curPhase, u.RpcComponent.Instance.Call(t, function(t) {
                        e.SetCurrentPhase(), d.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    })
                }
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.FinalRewards.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t), -1 != this.Rewards.children.indexOf(t) && d.UIUtlity.ShowItemTip(t.getComponent(g.ItemComponent).ItemId, t)
            }, t.prototype.OnReturnButtonClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRuleButtonClick = function() {
                var e = {
                    name: "payGuide_rule_main".ToUILocale(),
                    titles: ["payGuide_rule_sub".ToUILocale()],
                    contents: ["payGuide_rule_content".ToUILocale()]
                };
                d.UIUtlity.ShowRulePanel(e)
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, i([P(cc.Label)], t.prototype, "TitleLabel", void 0), i([P(cc.Node)], t.prototype, "FinalRewards", void 0), i([P(cc.Button)], t.prototype, "FinalReceiveButton", void 0), i([P(cc.Label)], t.prototype, "FinalReceiveLabel", void 0), i([P(cc.Button)], t.prototype, "FinalNoCompleteButton", void 0), i([P(cc.Label)], t.prototype, "FinalNoCompleteLabel", void 0), i([P(cc.Node)], t.prototype, "FinalReceived", void 0), i([P(cc.Label)], t.prototype, "FinalReceivedLabel", void 0), i([P(cc.Button)], t.prototype, "Toggles", void 0), i([P(cc.Label)], t.prototype, "ToggleLabels", void 0), i([P(cc.Label)], t.prototype, "PhaseTaskLabel", void 0), i([P(cc.RichText)], t.prototype, "PhaseTaskProgress", void 0), i([P(cc.Button)], t.prototype, "ReceiveButton", void 0), i([P(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([P(cc.Button)], t.prototype, "NoCompleteButton", void 0), i([P(cc.Label)], t.prototype, "NoCompleteLabel", void 0), i([P(cc.Node)], t.prototype, "Mask", void 0), i([P(cc.Node)], t.prototype, "Received", void 0), i([P(cc.Label)], t.prototype, "ReceivedLabel", void 0), i([P(cc.Node)], t.prototype, "Rewards", void 0), i([P(cc.Node)], t.prototype, "ListParent", void 0), i([P(cc.Button)], t.prototype, "RuleButton", void 0), i([P(b.default)], t.prototype, "CountDownComponent", void 0), i([P(cc.Button)], t.prototype, "ReturnButton", void 0), i([w], t)
        }(c.BaseUIFullScreenPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./RechargeGuideItem": "RechargeGuideItem"
    }],
    RecommendFormationPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "109a3dOVVREPqZyHVtje/cB", "RecommendFormationPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../Components/CustomToggle"),
            l = e("../Components/SystemFormationModule"),
            c = e("../Components/PopularFormationModule"),
            u = e("../Components/EliteFormationModule"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Components/RpcComponent"),
            h = e("../../RedDot/RedDotManager"),
            f = e("../../Auxiliary/DataUtlity"),
            y = e("../../../ShareConsts/EnumType"),
            g = e("./StrengthFormationModule"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.Strength = 0] = "Strength", e[e.System = 1] = "System", e[e.Popular = 2] = "Popular", e[e.Elite = 3] = "Elite"
        })(a || (a = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Toggles = [], t.StrengthFormationModule = null, t.SystemFormationModule = null, t.PopularFormationModule = null, t.EliteFormationModule = null, t._currFunctionType = a.System, t._hotFormationData = null, t._guruFormationData = null, t._isInit = !1, t
            }
            return r(t, e), t.prototype.Display = function() {
                this._isInit || (this.CheckToggleUnLockState(), this.SetStaticLocalText(), this.SetClickEvent(), this._isInit = !0), this.BindRedDot();
                var e = this.Toggles[this._currFunctionType];
                e.isChecked = !0, this.ChangeTab(e)
            }, t.prototype.CheckToggleUnLockState = function() {
                f.default.Instance.IsGameModuleUnlock(y.GameModuleType.HotFormation)[0] ? this.Toggles[a.Popular].node.active = !0 : this.Toggles[a.Popular].node.active = !1
            }, t.prototype.BindRedDot = function() {
                h.RedDotManager.Instance.Bind(this.Toggles[a.System].node, h.RedDotManager.Instance.RedDot.SystemFormationToggleBtnNode)
            }, t.prototype.SetStaticLocalText = function() {
                for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].Init(("iWantStrong_recommend_toggle_" + e).ToUILocale())
            }, t.prototype.SetClickEvent = function() {
                for (var e = 0; e < this.Toggles.length; e++) this.Toggles[e].node.on("toggle", this.OnSwitchTab, this)
            }, t.prototype.OnSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                this._currFunctionType != t && this.ChangeTab(e)
            }, t.prototype.ChangeTab = function(e) {
                var t = Number.parseInt(e.name);
                switch (this._currFunctionType = t, this.HideAllFunctionPage(), t) {
                    case a.Strength:
                        this.StrengthFormationModule.node.active = !0, this.StrengthFormationModule.Display();
                        break;
                    case a.System:
                        this.SystemFormationModule.node.active = !0, this.SystemFormationModule.Display();
                        break;
                    case a.Popular:
                        null == this._hotFormationData ? this.RequestPopularFormation() : this.PopularFormationModule.node.active = !0;
                        break;
                    case a.Elite:
                        null == this._guruFormationData ? this.RequestEliteFormation() : this.EliteFormationModule.node.active = !0
                }
            }, t.prototype.RequestPopularFormation = function() {
                var e = new p.Req_Game_GetHotFormations;
                d.RpcComponent.Instance.Call(e, this.ResponsePopularFormation.bind(this))
            }, t.prototype.ResponsePopularFormation = function(e) {
                this.PopularFormationModule.node.active = !0, this._hotFormationData = e.Formations, this.PopularFormationModule.Display(this._hotFormationData)
            }, t.prototype.RequestEliteFormation = function() {
                var e = new p.Req_Game_GetGuruFormations;
                d.RpcComponent.Instance.Call(e, this.ResponseEliteFormation.bind(this))
            }, t.prototype.ResponseEliteFormation = function(e) {
                this.EliteFormationModule.node.active = !0, this._guruFormationData = e.Formations, this.EliteFormationModule.Display(this._guruFormationData)
            }, t.prototype.HideAllFunctionPage = function() {
                this.StrengthFormationModule.node.active = !1, this.SystemFormationModule.node.active = !1, this.PopularFormationModule.node.active = !1, this.EliteFormationModule.node.active = !1
            }, i([_(s.default)], t.prototype, "Toggles", void 0), i([_(g.default)], t.prototype, "StrengthFormationModule", void 0), i([_(l.default)], t.prototype, "SystemFormationModule", void 0), i([_(c.default)], t.prototype, "PopularFormationModule", void 0), i([_(u.default)], t.prototype, "EliteFormationModule", void 0), i([I], t)
        }(cc.Component);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/EliteFormationModule": "EliteFormationModule",
        "../Components/PopularFormationModule": "PopularFormationModule",
        "../Components/SystemFormationModule": "SystemFormationModule",
        "./StrengthFormationModule": "StrengthFormationModule"
    }],
    RecommendMaterialItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "679f1qd7jNL8YHcCOrVO9ym", "RecommendMaterialItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../Auxiliary/GlobalDefine"),
            l = e("../Components/ItemClickComponent"),
            c = e("../Components/ItemComponent"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ItemNode = null, t.RecommendNode = null, t.RecommendLabel = null, t.ComposeNode = null, t.ComposeLabel = null, t.DetailBtn = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    if (this.SetRecommendState(!1), this.SetComposeState(!1), !this.ItemComponent) {
                        var t = cc.instantiate(e);
                        t.parent = this.ItemNode, this.ItemComponent = t.getComponent(c.ItemComponent), t.removeComponent(l.default), this.RecommendLabel.string = "recommend".ToUILocale(), this.ComposeLabel.string = "canBeComposed".ToUILocale(), this.DetailBtn.node.on("click", this.OnShowDetail, this)
                    }
                    return this.ItemComponent
                }, t.prototype.SetUpStarMaterialItem = function(e) {
                    this._upStarMaterialItem = e
                }, t.prototype.SetRecommendState = function(e) {
                    this.RecommendNode.opacity = e ? 255 : 0
                }, t.prototype.SetComposeState = function(e) {
                    this.ComposeNode.opacity = e ? 255 : 0
                }, t.prototype.OnShowDetail = function() {
                    a.UIManager.Instance.ShowUIPanel(s.PanelConfig.SelectMaterialDetailPanel.Path, this._upStarMaterialItem)
                }, i([d(cc.Node)], t.prototype, "ItemNode", void 0), i([d(cc.Node)], t.prototype, "RecommendNode", void 0), i([d(cc.Label)], t.prototype, "RecommendLabel", void 0), i([d(cc.Node)], t.prototype, "ComposeNode", void 0), i([d(cc.Label)], t.prototype, "ComposeLabel", void 0), i([d(cc.Button)], t.prototype, "DetailBtn", void 0), i([p], t)
            }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    RecommendedGiftComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c96eeCMOntKR7cvfprvL6yp", "RecommendedGiftComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/ItemComponent"),
            p = e("../../Channel/ChannelManager"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../../Components/DataCenter"),
            g = e("../../Components/Components"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("../../Auxiliary/GameDataChecker"),
            _ = cc._decorator,
            C = _.ccclass,
            v = _.property,
            b = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Bg = null, t.TitleSpriteNode = null, t.LeftTimeNode = null, t.LeftTime = null, t.GiftTitle = null, t.ItemContainer = null, t.GetButtonLabel = null, t.GetButton = null, t.AttainsNode = null, t.AttainLabel = null, t.AttainValue = null, t.DiscountValue = null, t.DiscountLabel = null, t._isLoadRemoteTexture = !1, t._itemComponentArray = [], t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.AttainLabel.string = "task_get_score_tag".ToUILocale(), this.GetButton.node.on("click", this.OnGetButtonClick, this)
                }, t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(d.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.InitData = function(e) {
                    this._giftData = e, this.SetGiftBg(), this.SetGiftLabel(), this.SetItemContainer(), this.unschedule(this.SetDeadLine), this.TitleSpriteNode.active = this._giftData.Money > 0, this.LeftTimeNode.active = !1, this._giftData.Money > 0 && (this.LeftTimeNode.active = !0, this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)), this.GiftTitle.string = this._giftData.Money > 0 ? "triggerGift_title".ToUILocale() : "RecommendedGift_Free_Tag".ToUILocale()
                }, t.prototype.OnGetButtonClick = function() {
                    var e = this;
                    if (this._giftData.Money > 0) p.default.Instance.Pay(-this._giftData.Sid, 0, this._giftData.Money);
                    else {
                        var t = new l.Req_Pay_ByDiamond;
                        t.Id = -this._giftData.Sid, t.ActivityId = null, g.RpcComponent.Instance.Call(t, function(t) {
                            var n = y.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts");
                            n[e._giftData.Sid] && (n[e._giftData.Sid].BuyCount++, y.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", n), c.Game.EventDispatcher.Emit(d.EventKeys.EVENT_REFRESH_POPUPGIFT_DATA, e._giftData.Sid), I.default.Instance.TriggerGiftCheck()), f.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                        })
                    }
                }, t.prototype.SetGiftBg = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return this._giftData.BgSpritePath ? (e = this, [4, c.AssetsManager.Instance.LoadRemoteTexture(this._giftData.BgSpritePath)]) : [3, 2];
                                case 1:
                                    return e._bgSprite = o.sent(), this.isValid ? (this.Bg.spriteFrame = this._bgSprite, this._isLoadRemoteTexture = !0, [2]) : (cc.assetManager.releaseAsset(this._bgSprite), [2]);
                                case 2:
                                    return t = this._giftData.Money > 0 ? "04" : "999", n = this, [4, c.AssetsManager.Instance.LoadAsset("RecommendedGiftPackPanel/PNG/" + t, cc.SpriteFrame)];
                                case 3:
                                    return n._bgSprite = o.sent(), this.isValid ? (this._unloadAssets.push(this._bgSprite), this.Bg.spriteFrame = this._bgSprite, [2]) : (c.AssetsManager.Instance.UnloadAsset(this._bgSprite), [2])
                            }
                        })
                    })
                }, t.prototype.SetGiftLabel = function() {
                    this.GetButtonLabel.string = this._giftData.Money > 0 ? p.default.Instance.CurrencySymbol + p.default.Instance.ExchangeMoney(this._giftData.Money) : "receive".ToUILocale(), this.AttainsNode.active = this._giftData.VipPoint > 0, this._giftData.VipPoint > 0 && (this.AttainValue.string = "x" + this._giftData.VipPoint), h.default.Instance.SetDisCount(this._giftData.Discount, this.DiscountValue, this.DiscountLabel)
                }, t.prototype.SetItemContainer = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return this._itemPrefab ? [3, 2] : (e = this, [4, c.AssetsManager.Instance.LoadAsset(m.BundlePath.ItemComponent, cc.Prefab)]);
                                case 1:
                                    if (e._itemPrefab = i.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2];
                                    this._unloadAssets.push(this._itemPrefab), i.label = 2;
                                case 2:
                                    for (r = 0; r < this._giftData.RewardData.length; r++)(t = this._itemComponentArray[r]) || ((n = cc.instantiate(this._itemPrefab)).setParent(this.ItemContainer), t = n.getComponent(u.ItemComponent), this._itemComponentArray[r] = t), t.node.active = !0, o = this._giftData.RewardData[r].ItemId, t.node.name = o.toString(), t.Init({
                                        ItemId: o,
                                        Count: this._giftData.RewardData[r].Count
                                    });
                                    if (this._giftData.RewardData.length < this._itemComponentArray.length)
                                        for (r = this._giftData.RewardData.length; r < this._itemComponentArray.length; r++) this._itemComponentArray[r].node.active = !1;
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.SetDeadLine = function() {
                    var e = this._giftData.EndTime - g.RpcComponent.Instance.ServerTime;
                    if (e <= 0) return this.unschedule(this.SetDeadLine), void c.Game.EventDispatcher.Emit(d.EventKeys.EVENT_POPUPGIFT_TIME_OUT);
                    this.LeftTime.string = "openServer_frameCountDown".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e))
                }, t.prototype.OnItemClick = function(e, t) {
                    -1 != this.ItemContainer.children.indexOf(t) && f.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.onDestroy = function() {
                    if (this._isLoadRemoteTexture && cc.assetManager.releaseAsset(this._bgSprite), this._unloadAssets.length > 0) {
                        for (var e = 0; e < this._unloadAssets.length; e++) c.AssetsManager.Instance.UnloadAsset(this._unloadAssets[e]);
                        this._unloadAssets = []
                    }
                    this.unscheduleAllCallbacks()
                }, i([v(cc.Sprite)], t.prototype, "Bg", void 0), i([v(cc.Node)], t.prototype, "TitleSpriteNode", void 0), i([v(cc.Node)], t.prototype, "LeftTimeNode", void 0), i([v(cc.RichText)], t.prototype, "LeftTime", void 0), i([v(cc.Label)], t.prototype, "GiftTitle", void 0), i([v(cc.Node)], t.prototype, "ItemContainer", void 0), i([v(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([v(cc.Button)], t.prototype, "GetButton", void 0), i([v(cc.Node)], t.prototype, "AttainsNode", void 0), i([v(cc.Label)], t.prototype, "AttainLabel", void 0), i([v(cc.Label)], t.prototype, "AttainValue", void 0), i([v(cc.Label)], t.prototype, "DiscountValue", void 0), i([v(cc.Label)], t.prototype, "DiscountLabel", void 0), i([C], t)
            }(cc.Component);
        n.default = b, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameDataChecker": "GameDataChecker",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    RecommendedGiftPackPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "4fda4GnD9hKS4BcIC1uJRNd", "RecommendedGiftPackPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RecommendedGiftsType = void 0;
        var l, c = e("./CommonTaskTipComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Auxiliary/DataUtlity"),
            f = e("../../Components/Components"),
            y = e("../../Auxiliary/EventKeys"),
            g = e("../../Components/Components"),
            m = e("../../../Consts/Etc"),
            I = e("../../Channel/ChannelManager"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../Components/ItemComponent"),
            v = e("../../../ShareConsts/EnumType"),
            b = e("../../Auxiliary/GameDataChecker"),
            S = e("../Components/CustomLayout"),
            w = e("../Auxiliary/Mask"),
            P = cc._decorator,
            A = P.ccclass,
            T = P.property;
        (function(e) {
            e[e.Mall = 1] = "Mall"
        })(l = n.RecommendedGiftsType || (n.RecommendedGiftsType = {}));
        var R = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !1), t.Type1PartNode = null, t.Type1Bg = null, t.Type1TitleSpriteNode = null, t.Type1LeftTimeNode = null, t.Type1LeftTime = null, t.Type1GiftTitle = null, t.Type1ItemContainer = null, t.Type1GetButtonLabel = null, t.Type1GetButton = null, t.Type1AttainsNode = null, t.Type1AttainLabel = null, t.Type1AttainValue = null, t.Type1DiscountNode = null, t.Type1DiscountLabel = null, t.Type1DiscountDesc = null, t.Type2PartNode = null, t.Type2CustomLayout = null, t.Type2ItemContainer2 = null, t.Type2GetButton = null, t.Type2GetButtonLabel = null, t.Type2AttainsNode = null, t.Type2AttainLabel = null, t.Type2AttainValue = null, t.Type2LeftArrowButton = null, t.Type2RightArrowButton = null, t.CommonTaskTipComponent = null, t.MaskNode = null, t._isLoadRemoteTexture = !1, t._isCustomLayoutInit = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), u.Game.EventDispatcher.On(y.EventKeys.EVENT_REFRESH_POPUPGIFT_DATA, this.RefreshData, this), u.Game.EventDispatcher.On(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(y.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), u.Game.EventDispatcher.Off(y.EventKeys.EVENT_REFRESH_POPUPGIFT_DATA, this.RefreshData, this), u.Game.EventDispatcher.Off(y.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset(p.BundlePath.ItemComponent, cc.Prefab), n = this.LoadDynamicAsset("TriggerGiftMainPanel/Png/TriggerGift", cc.SpriteAtlas), [4, Promise.all([t, n]).then(function(e) {
                                    o._itemPrefab = e[0], o._triggerAtlas = e[1]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Type1GetButton.node.on("click", this.OnGetButtonClick, this), this.Type2GetButton.node.on("click", this.OnGetButtonClick, this), this.Type2LeftArrowButton.node.on("click", this.OnLeftArrowButtonClick, this), this.Type2RightArrowButton.node.on("click", this.OnRightArrowButtonClick, this)
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this), this._giftData = t[0], t[1] && (this._currentGiftsType = t[1], this._giftDataArray = t[2], this._currentGiftIndex = 0, this._giftData = this._giftDataArray[this._currentGiftIndex]);
                var n = this._giftData.ExtraInfo ? JSON.parse(this._giftData.ExtraInfo) : null;
                this._templateId = n ? Number(n.template_id) : 0
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), !this._currentGiftsType && 200 == this._templateId || this._currentGiftsType == l.Mall ? [2] : (t = JSON.parse(this._giftData.ExtraInfo)).platform_creative && t.platform_creative.enable && t.platform_creative.creatives.component_1 ? (n = this, [4, u.AssetsManager.Instance.LoadRemoteTexture(t.platform_creative.creatives.component_1)]) : [3, 2];
                            case 1:
                                return n._bgSprite = i.sent(), this.isValid ? (this.Type1Bg.spriteFrame = this._bgSprite, this._isLoadRemoteTexture = !0, [2]) : (cc.assetManager.releaseAsset(this._bgSprite), [2]);
                            case 2:
                                return o = this._giftData.Money > 0 ? "04" : "999", r = this, [4, this.LoadDynamicAsset("RecommendedGiftPackPanel/PNG/" + o, cc.SpriteFrame)];
                            case 3:
                                return r._bgSprite = i.sent(), this.isValid ? (this.Type1Bg.spriteFrame = this._bgSprite, [2]) : (u.AssetsManager.Instance.UnloadAsset(this._bgSprite), [2])
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || (this.RefreshData(), this.SetCurrentTypeShow(), this._giftData.ExpireTs ? this._giftDataArray || (this.SetDeadLine(), this.schedule(this.SetDeadLine, 1)) : this.SetGiftStart(), this._giftData.Money > 0 && h.default.Instance.IsGameModuleUnlock(v.GameModuleType.ChaosSummon)[0] && (this.CommonTaskTipComponent.node.active = !0, this.CommonTaskTipComponent.InitData()), 0 == this._giftData.Money && (this._giftDataArray && this._giftDataArray.length > 1 ? this.MaskNode.getComponent(w.default).DisableClickEvent() : this.MaskNode.getComponent(w.default).EnableClickEvent(), this.MaskNode.on(cc.Node.EventType.TOUCH_END, this.OnGetButtonClick, this)))
            }, t.prototype.SetCurrentGift = function() {
                this._giftData = this._giftDataArray[this._currentGiftIndex];
                var e = this._giftData.ExtraInfo ? JSON.parse(this._giftData.ExtraInfo) : null;
                this._templateId = e ? Number(e.template_id) : 0, this.DisPlay(!1)
            }, t.prototype.SetCurrentTypeShow = function() {
                switch (this.Type1PartNode.active = !1, this.Type2PartNode.active = !1, this.Type2LeftArrowButton.node.active = !1, this.Type2RightArrowButton.node.active = !1, this._templateId) {
                    case 200:
                        if (this.Type2PartNode.active = !0, this.Type2LeftArrowButton.node.active = this._giftDataArray && this._currentGiftIndex > 0, this.Type2RightArrowButton.node.active = this._giftDataArray && this._currentGiftIndex < this._giftDataArray.length - 1, this.Type2GetButtonLabel.string = this._giftData.Money > 0 ? I.default.Instance.CurrencySymbol + I.default.Instance.ExchangeMoney(this._giftData.Money) : "receive".ToUILocale(), this.Type2AttainsNode.active = this._giftData.VipPoint > 0, this._giftData.VipPoint > 0 ? (this.Type2AttainLabel.string = "task_get_score_tag".ToUILocale(), this.Type2AttainValue.string = "x" + this._giftData.VipPoint.FmtCurrency(), this.Type2GetButtonLabel.node.y = 20) : this.Type2GetButtonLabel.node.y = 0, this._giftData.Items.length <= 5)
                            for (var e = 0; e < this._giftData.Items.length; e++) {
                                var t = cc.instantiate(this._itemPrefab);
                                t.setParent(this.Type2ItemContainer2);
                                var n = this._giftData.Items[e];
                                t.name = n.Items[0].toString(), t.getComponent(C.ItemComponent).Init({
                                    ItemId: n.Items[0],
                                    Count: n.Items[1]
                                })
                            } else this._isCustomLayoutInit || (this.Type2CustomLayout.Init(this._itemPrefab), this._isCustomLayoutInit = !0), this.Type2CustomLayout.RenderLayOut(this._giftData.Items.length);
                        break;
                    default:
                        this.Type1PartNode.active = !0, this.Type1GiftTitle.string = this._giftData.Money > 0 ? "triggerGift_title".ToUILocale() : "RecommendedGift_Free_Tag".ToUILocale(), this.Type1GetButtonLabel.string = this._giftData.Money > 0 ? I.default.Instance.CurrencySymbol + I.default.Instance.ExchangeMoney(this._giftData.Money) : "receive".ToUILocale(), this.Type1AttainsNode.active = this._giftData.VipPoint > 0, this._giftData.VipPoint > 0 && (this.Type1AttainLabel.string = "task_get_score_tag".ToUILocale(), this.Type1AttainValue.string = "x" + this._giftData.VipPoint), this._giftData.Money > 0 ? (this.Type1DiscountNode.active = !0, h.default.Instance.SetDisCount(this._giftData.Discount, this.Type1DiscountLabel, this.Type1DiscountDesc)) : this.Type1DiscountNode.active = !1, this.Type1TitleSpriteNode.active = this._giftData.Money > 0, this.Type1LeftTimeNode.active = this._giftData.Money > 0, this.SetType1ItemContainer()
                }
            }, t.prototype.OnGetButtonClick = function() {
                var e = this;
                if (this._giftData.Money > 0 || 200 == this._templateId) I.default.Instance.Pay(-this._giftData.Sid, 0, this._giftData.Money);
                else {
                    var t = new d.Req_Pay_ByDiamond;
                    t.Id = -this._giftData.Sid, t.ActivityId = null, f.RpcComponent.Instance.Call(t, function(t) {
                        var n = g.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts");
                        n && n[e._giftData.Sid] && (n[e._giftData.Sid].BuyCount++, g.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", n), u.Game.EventDispatcher.Emit(y.EventKeys.EVENT_REFRESH_POPUPGIFT_DATA, e._giftData.Sid), b.default.Instance.TriggerGiftCheck()), _.UIUtlity.ShwDisplayRewardPanel(t.Rewards)
                    })
                }
            }, t.prototype.OnLeftArrowButtonClick = function() {
                this._currentGiftIndex--, this.SetCurrentGift()
            }, t.prototype.OnRightArrowButtonClick = function() {
                this._currentGiftIndex++, this.SetCurrentGift()
            }, t.prototype.SetGiftStart = function() {
                var e = new d.Req_PopupGift_Start;
                e.Sid = this._giftData.Sid, g.RpcComponent.Instance.Call(e, this.OnRequextSuccess.bind(this))
            }, t.prototype.OnRequextSuccess = function() {
                this._giftData.ExpireTs = this._giftData.Duration * m.Etc.SecondDuration + f.RpcComponent.Instance.ServerTime;
                var e = g.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts");
                e && e[this._giftData.Sid] && (e[this._giftData.Sid].ExpireTs = this._giftData.ExpireTs, g.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", e)), this._giftDataArray || (this.SetDeadLine(), this.schedule(this.SetDeadLine, 1))
            }, t.prototype.SetType1ItemContainer = function() {
                for (var e = 0; e < this._giftData.Items.length; e++) {
                    var t = cc.instantiate(this._itemPrefab);
                    t.setParent(this.Type1ItemContainer);
                    var n = this._giftData.Items[e];
                    t.name = n.Items[0].toString(), t.getComponent(C.ItemComponent).Init({
                        ItemId: n.Items[0],
                        Count: n.Items[1]
                    })
                }
            }, t.prototype.SetDeadLine = function() {
                var e = this._giftData.ExpireTs - f.RpcComponent.Instance.ServerTime;
                if (e <= 0) {
                    var t = g.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts");
                    return delete t[this._giftData.Sid], g.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", t), void(this._giftDataArray && this._giftDataArray.length > 1 ? (this._giftDataArray.splice(this._currentGiftIndex, 1), this._currentGiftIndex = 0, this.SetCurrentGift()) : this.Close())
                }
                this._giftData.Money > 0 && 200 != this._templateId && (this.Type1LeftTime.string = "openServer_frameCountDown".ToUILocale().Fmt(h.default.ActivityTimeLeftFormat(e)))
            }, t.prototype.RefreshData = function(e) {
                var t, n = g.DataCenter.Instance.GetTempData("Recommended_Popup_Gifts");
                (t = e && n && n[e] ? n[e] : this._giftData).MaxCount - t.BuyCount <= 0 && (delete n[this._giftData.Sid], g.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", n), this._giftDataArray && this._giftDataArray.length > 1 ? (this._giftDataArray.splice(this._currentGiftIndex, 1), this._currentGiftIndex = 0, this.SetCurrentGift()) : this.Close())
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                t == this.Type2CustomLayout && e.forEach(function(e, t) {
                    e.getComponent(C.ItemComponent).Init({
                        ItemId: n._giftData.Items[t].Items[0],
                        Count: n._giftData.Items[t].Items[1]
                    })
                })
            }, t.prototype.OnItemClick = function(e, t) {
                -1 == this.Type1ItemContainer.children.indexOf(t) && -1 == this.Type2CustomLayout.node.children.indexOf(t) && t.parent != this.Type2ItemContainer2 || _.UIUtlity.ShowItemTip(t.getComponent(C.ItemComponent).ItemId, t)
            }, t.prototype.onDestroy = function() {
                this._isLoadRemoteTexture && cc.assetManager.releaseAsset(this._bgSprite), this.unscheduleAllCallbacks()
            }, i([T(cc.Node)], t.prototype, "Type1PartNode", void 0), i([T(cc.Sprite)], t.prototype, "Type1Bg", void 0), i([T(cc.Node)], t.prototype, "Type1TitleSpriteNode", void 0), i([T(cc.Node)], t.prototype, "Type1LeftTimeNode", void 0), i([T(cc.RichText)], t.prototype, "Type1LeftTime", void 0), i([T(cc.Label)], t.prototype, "Type1GiftTitle", void 0), i([T(cc.Node)], t.prototype, "Type1ItemContainer", void 0), i([T(cc.Label)], t.prototype, "Type1GetButtonLabel", void 0), i([T(cc.Button)], t.prototype, "Type1GetButton", void 0), i([T(cc.Node)], t.prototype, "Type1AttainsNode", void 0), i([T(cc.Label)], t.prototype, "Type1AttainLabel", void 0), i([T(cc.Label)], t.prototype, "Type1AttainValue", void 0), i([T(cc.Node)], t.prototype, "Type1DiscountNode", void 0), i([T(cc.Label)], t.prototype, "Type1DiscountLabel", void 0), i([T(cc.Label)], t.prototype, "Type1DiscountDesc", void 0), i([T(cc.Node)], t.prototype, "Type2PartNode", void 0), i([T(S.default)], t.prototype, "Type2CustomLayout", void 0), i([T(cc.Node)], t.prototype, "Type2ItemContainer2", void 0), i([T(cc.Button)], t.prototype, "Type2GetButton", void 0), i([T(cc.Label)], t.prototype, "Type2GetButtonLabel", void 0), i([T(cc.Node)], t.prototype, "Type2AttainsNode", void 0), i([T(cc.Label)], t.prototype, "Type2AttainLabel", void 0), i([T(cc.Label)], t.prototype, "Type2AttainValue", void 0), i([T(cc.Button)], t.prototype, "Type2LeftArrowButton", void 0), i([T(cc.Button)], t.prototype, "Type2RightArrowButton", void 0), i([T(c.default)], t.prototype, "CommonTaskTipComponent", void 0), i([T(cc.Node)], t.prototype, "MaskNode", void 0), i([A], t)
        }(u.BaseUIPanel);
        n.default = R, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameDataChecker": "GameDataChecker",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../Auxiliary/Mask": "Mask",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/ItemComponent": "ItemComponent",
        "./CommonTaskTipComponent": "CommonTaskTipComponent"
    }],
    RedCountComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cf19aBbQotMP6i+IMT11EkO", "RedCountComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Count = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    void 0 === t && (t = -30), void 0 === n && (n = -17), this.node.setPosition(e.width / 2 + t, e.height / 2 + n)
                }, t.prototype.SetCount = function(e) {
                    this.Count.string = e.toString()
                }, i([l(cc.Label)], t.prototype, "Count", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    RedDotDataHandler: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b42a0JPlzNMLZ1Ac3sZHnZS", "RedDotDataHandler");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RedDotDataHandler = void 0;
        var a, s, l, c, u = e("../../../Proto/Static/RpcProto"),
            p = e("../Components/DataCenter"),
            d = e("../../../Proto/Static/ConfigProto"),
            h = e("../Components/ConfigData/ConfigDataComponent"),
            f = e("../../ShareConsts/EnumType"),
            y = e("../Components/RpcComponent"),
            g = e("../../Consts/Etc"),
            m = e("../Auxiliary/DataUtlity"),
            I = e("../../Util/TimeUtil"),
            _ = e("../UI/Components/TowerLayerItem"),
            C = e("../../EZFramework/Auxiliary/EZLog"),
            v = e("./RedDotManager"),
            b = e("../Components/ConfigData/ConfigCacheComponent"),
            S = e("../../../Proto/Static/ConfigProto"),
            w = e("../../ShareConsts/BattleConsts"),
            P = e("../../Consts/Consts"),
            A = e("../Auxiliary/GameRecord"),
            T = e("../UI/Panel/TimeLimitedActivityPanel"),
            R = e("../UI/Panel/SeniorArenaPanel"),
            L = e("../Components/Components"),
            k = e("../UI/Panel/StarPiecePanel"),
            O = e("../UI/Panel/ArenaPanel"),
            M = e("../UI/Panel/ChaosSummonPanel"),
            D = e("../UI/Panel/AllianceBaseMainPanel"),
            B = e("../UI/Panel/StarTacticalComponent"),
            N = e("../UI/Panel/WarTokenListPanel"),
            E = e("../UI/Panel/HeroTalentPanel"),
            U = e("../UI/Auxiliary/UIUtlity"),
            G = e("../UI/Panel/ShopUIPanel"),
            x = e("../UI/Panel/BagPanel"),
            H = e("../UI/Panel/GiftPackListPanel"),
            F = e("../UI/Panel/CrossServerChampionShipPanel"),
            j = e("../UI/Panel/CollectionHandbookPanel"),
            W = e("../UI/Panel/HeroInfoPanel"),
            z = e("../UI/Panel/ActivityPreviewPanel"),
            q = e("../UI/Panel/StrongholdWarMainPanel"),
            V = e("../UI/Panel/UserTitlePanel"),
            Z = e("../UI/Components/StrategyBookComponent"),
            K = e("../UI/Panel/CollectionPavilionPanel"),
            J = e("../UI/Components/AngelInfoStarComponent"),
            X = e("../UI/Panel/StarGarrisonInfoPanel"),
            Q = e("../UI/Panel/ExclusiveWeaponGalleryPanel"),
            Y = e("../UI/Panel/CrossServerAllianceWarPanel"),
            $ = e("../UI/Panel/PuzzleStageComponent"),
            ee = e("../UI/Panel/ParanormalPuzzleStagePanel"),
            te = e("../UI/Panel/ArtifactPanel"),
            ne = e("../UI/Panel/ArtifactUpStarInfoComponent"),
            oe = e("../UI/Panel/CustomGiftPackPanel"),
            re = e("../UI/Panel/ElementTemplePanel"),
            ie = e("../UI/Panel/HolyRelicsPanel"),
            ae = e("../UI/Panel/OldPlayerRecallPanel"),
            se = e("../UI/Panel/ActivityRunningTrainPanel"),
            le = e("../UI/Panel/ChattingMainPanel"),
            ce = e("../UI/Panel/CircusMazePanel"),
            ue = e("../Channel/ChannelManager"),
            pe = e("../UI/Panel/GlobalChampionShipPanel"),
            de = e("../UI/Panel/GlobalChampionMainPanel"),
            he = e("../UI/Panel/BreakOutMatchLevelPanel"),
            fe = e("../UI/Panel/TradeWarPanel"),
            ye = e("../../EZFramework/EZFramework"),
            ge = e("../Auxiliary/EventKeys"),
            me = e("../UI/Panel/RuinsWarModel"),
            Ie = e("../UI/Panel/MallDailyChargePage"),
            _e = e("../UI/Panel/DailyInstancePanel"),
            Ce = e("../UI/Panel/ContinuousFightPanel"),
            ve = e("../UI/Panel/AssaultOperationModel"),
            be = cc._decorator,
            Se = be.ccclass;
        be.property,
            function(e) {
                e[e.Normal = 0] = "Normal", e[e.Important = 1] = "Important", e[e.All = 2] = "All"
            }(a || (a = {})),
            function(e) {
                e[e.Normal = 1] = "Normal", e[e.Advance = 2] = "Advance", e[e.All = 3] = "All"
            }(s || (s = {})),
            function(e) {
                e[e.Head = 0] = "Head", e[e.Frame = 1] = "Frame", e[e.Title = 2] = "Title", e[e.ChatWindow = 3] = "ChatWindow", e[e.MagicCircle = 4] = "MagicCircle", e[e.Pet = 5] = "Pet"
            }(l || (l = {})),
            function(e) {
                e[e.Designation = 1] = "Designation", e[e.OpenDays = 2] = "OpenDays"
            }(c || (c = {}));
        var we = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.intelligenceScheduleList = [], t._delayRefreshActivityDotNodes = [], t._delayAddDotNodes = [], t._isInCheck = !1, t._isAddSchedule = !1, t.HolyEquipStrengthMaterials = [P.CommonItemId.HolyEqptXpPrimary, P.CommonItemId.HolyEqptXpMiddle, P.CommonItemId.HolyEqptXpAdvanced, P.CommonItemId.HolyEqptXpSuper], t
            }
            var n;
            return r(t, e), n = t, Object.defineProperty(t, "Instance", {
                get: function() {
                    return null === this._instance && (this._instance = new n), this._instance
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.CheckDelayRefreshDotNodes = function() {
                this._isInCheck = !0;
                for (var e = y.RpcComponent.Instance.ServerTime, t = 0, n = 0; n < this._delayRefreshActivityDotNodes.length && e >= (o = this._delayRefreshActivityDotNodes[n]).Time; n++) t++, ye.Game.EventDispatcher.Emit(ge.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, o.ActivityId);
                for (t > 0 && this._delayRefreshActivityDotNodes.splice(0, t), this._isInCheck = !1, n = 0; n < this._delayAddDotNodes.length; n++) {
                    var o = this._delayAddDotNodes[n];
                    this.AddDelayRefreshDotNode(o)
                }
                this._delayAddDotNodes = [], 0 == this._delayRefreshActivityDotNodes.length && this.RemoveSchedule()
            }, t.prototype.AddDelayRefreshDotNode = function(e) {
                if (this.AddSchedule(), this._isInCheck) this._delayAddDotNodes.push(e);
                else {
                    for (var t = this._delayRefreshActivityDotNodes.length, n = 0; n < t; n++) {
                        var o = this._delayRefreshActivityDotNodes[n];
                        if (e.ActivityId === o.ActivityId) {
                            this._delayRefreshActivityDotNodes.splice(n, 1);
                            break
                        }
                    }
                    for (t = this._delayRefreshActivityDotNodes.length, n = 0; n < t; n++)
                        if (o = this._delayRefreshActivityDotNodes[n], e.Time < o.Time) return void this._delayRefreshActivityDotNodes.splice(n, 0, e);
                    this._delayRefreshActivityDotNodes.push(e)
                }
            }, t.prototype.AddSchedule = function() {
                0 == this._isAddSchedule && (this._isAddSchedule = !0, this.schedule(this.CheckDelayRefreshDotNodes, 1))
            }, t.prototype.RemoveSchedule = function() {
                1 == this._isAddSchedule && (this._isAddSchedule = !1, this.unschedule(this.CheckDelayRefreshDotNodes))
            }, t.prototype.RefreshMailBtnNode = function() {
                return C.EZLog.Log(" ---\x3e>>> \u672a\u8bfb\u90ae\u4ef6\u6570\u91cf = ", p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.UnreadMail)), p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.UnreadMail) > 0
            }, t.prototype.RefreshNormalMailBtnNode = function() {
                return n.CheckMailData(a.Normal)
            }, t.prototype.RefreshImportantMailBtnNode = function() {
                return n.CheckMailData(a.Important)
            }, t.CheckMailData = function(e) {
                var t = p.DataCenter.Instance.GetDataList(u.UserMail_Model);
                if (0 == t.length) return !1;
                for (var n = 0; n < t.length; n++) {
                    var o = t[n];
                    if (e == a.All || o.Type == e)
                        if (0 == o.Items.length) {
                            if (!o.IsRead) return !0
                        } else if (!o.IsDraw) return !0
                }
                return !1
            }, t.prototype.RefreshRankZoneNode = function() {
                var e = p.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, P.UserDataKey.DrawedRankRewards);
                e || ((e = new u.UserSimpleData_Model).K = P.UserDataKey.DrawedRankRewards, e.IntArray = []);
                for (var t = 0, n = p.DataCenter.Instance.RankAchievements; t < n.length; t++) {
                    var o = n[t],
                        r = h.ConfigDataComponent.Instance.GetConfigById(d.RankType_Config, o.RankType);
                    if (!(r.Type < 1 || r.Type > 100))
                        for (var i = 0, a = o.Achievements; i < a.length; i++) {
                            var s = a[i],
                                l = 1e3 * o.RankType + s.RewardIndex;
                            if (!e.IntArray.includes(l)) return !0
                        }
                }
                return !1
            }, t.prototype.RefreshRankCrossZoneNode = function() {
                var e = p.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, P.UserDataKey.DrawedRankRewards);
                e || ((e = new u.UserSimpleData_Model).K = P.UserDataKey.DrawedRankRewards, e.IntArray = []);
                for (var t = 0, n = p.DataCenter.Instance.RankAchievements; t < n.length; t++) {
                    var o = n[t],
                        r = h.ConfigDataComponent.Instance.GetConfigById(d.RankType_Config, o.RankType);
                    if (!(r.Type < 100 || r.Type > 200))
                        for (var i = 0, a = o.Achievements; i < a.length; i++) {
                            var s = a[i],
                                l = 1e3 * o.RankType + s.RewardIndex;
                            if (!e.IntArray.includes(l)) return !0
                        }
                }
                return !1
            }, t.prototype.CheckRankTypeData = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, P.UserDataKey.DrawedRankRewards);
                t || ((t = new u.UserSimpleData_Model).K = P.UserDataKey.DrawedRankRewards, t.IntArray = []);
                for (var n = 0, o = p.DataCenter.Instance.RankAchievements; n < o.length; n++) {
                    var r = o[n];
                    if (h.ConfigDataComponent.Instance.GetConfigById(d.RankType_Config, r.RankType).Type == e)
                        for (var i = 0, a = r.Achievements; i < a.length; i++) {
                            var s = a[i],
                                l = 1e3 * r.RankType + s.RewardIndex;
                            if (!t.IntArray.includes(l)) return !0
                        }
                }
                return !1
            }, t.prototype.RefreshRankRewardsNode = function(e) {
                if (!e) return !1;
                var t = p.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, P.UserDataKey.DrawedRankRewards);
                t || ((t = new u.UserSimpleData_Model).K = P.UserDataKey.DrawedRankRewards, t.IntArray = []);
                for (var n = 0, o = p.DataCenter.Instance.RankAchievements; n < o.length; n++) {
                    var r = o[n];
                    if (r.RankType == e.Value1)
                        for (var i = 0, a = r.Achievements; i < a.length; i++) {
                            var s = a[i],
                                l = 1e3 * r.RankType + s.RewardIndex;
                            if (!t.IntArray.includes(l)) return !0
                        }
                }
                return !1
            }, t.prototype.RefreshShopBtnNode = function() {
                return n.CheckShopData()
            }, t.CheckShopData = function(e) {
                void 0 === e && (e = 0);
                var t = h.ConfigDataComponent.Instance.GetConfig(d.ShopBase_Config);
                for (var o in t) {
                    var r = t[o];
                    if (r.Parent && (0 == e || e == r.Parent)) {
                        var i = p.DataCenter.Instance.GetDataById(u.UserShop_Model, r.Id);
                        if (n.CheckShopGoodsRedDot(i, r)) return !0;
                        if (n.CheckShopRefreshUIRedDot(i, r)) return !0
                    }
                }
                return !1
            }, t.CheckShopCanAutoBuy = function(e, t) {
                void 0 === t && (t = !1);
                var n = p.DataCenter.Instance.GetDataById(u.UserShop_Model, e),
                    o = {};
                if (!n) return t && U.UIUtlity.ShowFloatingHint("shop_no_items".ToUILocale()), [!1, o];
                var r = h.ConfigDataComponent.Instance.GetConfigById(d.ShopBase_Config, e),
                    i = {},
                    a = [];
                if (r.IsRefresh)
                    for (var s in n.Goods) {
                        var l = n.Goods[s].Items[0];
                        a.push(l), i[l] = n.Goods[s]
                    } else
                        for (s = 0; s < r.Goods.length; s++) l = r.Goods[s].Items[0], a.push(l), i[l] = n.Goods[l];
                for (var c = !1, f = 0, y = a; f < y.length; f++) {
                    l = y[f];
                    var g = h.ConfigDataComponent.Instance.GetConfigById(d.ShopItem_Config, l),
                        m = i[l] && i[l].Items[1] ? i[l].Items[1] : 0;
                    if (!(g.VipLimit > 0 && p.DataCenter.Instance.GetIntData(P.UserDataKey.VipLevel) < g.VipLimit)) {
                        var I = g.LimitCount - m;
                        if (!(I <= 0)) {
                            c = !0;
                            var _ = I * g.Price;
                            o[g.CurrencyType] ? o[g.CurrencyType] += _ : o[g.CurrencyType] = _
                        }
                    }
                }
                if (!c) return t && U.UIUtlity.ShowFloatingHint("shop_no_items".ToUILocale()), [!1, o];
                for (var C in o)
                    if (p.DataCenter.Instance.GetItemCount(Number(C)) < o[C]) return t && U.UIUtlity.ShowFloatingHint("item_not_enough".ToUILocale().Fmt(Number(C).ToItemName())), [!1, o];
                return [!0, o]
            }, t.prototype.RefreshAllianceShopBtn = function() {
                return n.CheckSingleShopData(G.ShopType.Guild)
            }, t.CheckSingleShopData = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserShop_Model, e),
                    o = h.ConfigDataComponent.Instance.GetConfigById(d.ShopBase_Config, e),
                    r = n.CheckShopRefreshUIRedDot(t, o);
                return n.CheckShopGoodsRedDot(t, o) || r
            }, t.CheckShopRefreshUIRedDot = function(e, t) {
                if (!e) return !1;
                for (var n = y.RpcComponent.Instance.ServerTime, o = 0; o < t.RefreshType.length; o++)
                    if (t.RefreshType[o].Items[0] == f.ShopRefreshType.AddFreeCount) {
                        var r = t.RefreshType[o].Items[1],
                            i = t.RefreshType[o].Items[2];
                        if (Math.floor((n - e.LastRefreshTime) / (r * P.Etc.HourDuration)) + e.FreeRefreshCount >= i) return !0
                    } return !1
            }, t.CheckShopGoodsRedDot = function(e, t) {
                if (t.IsRefresh) {
                    if (!e || !e.Goods) return !1;
                    for (var n in e.Goods) {
                        var o = e.Goods[n].Items[0],
                            r = e.Goods[n].Items[1] || 0,
                            i = !!(g = h.ConfigDataComponent.Instance.GetConfigById(d.ShopItem_Config, o)) && m.default.CheckEffectiveCondtion(g.EffectiveCondition);
                        if (g && i && 0 == g.Price && r < g.LimitCount) return !0
                    }
                } else {
                    var a = void 0,
                        s = p.DataCenter.Instance.GetSimpleData(f.UserDataKey.Designation),
                        l = s && s.V ? s.V + 1 : 1,
                        c = h.ConfigDataComponent.Instance.GetConfigById(d.Designation_Config, l);
                    c && c.Materials[0] && (a = c.Materials[0].Items);
                    for (var u = 0, y = t.Goods; u < y.length; u++) {
                        o = (n = y[u]).Items[0], r = e && e.Goods && e.Goods[o] && e.Goods[o].Items[1] || 0;
                        var g = h.ConfigDataComponent.Instance.GetConfigById(d.ShopItem_Config, o),
                            I = p.DataCenter.Instance.AllianceInfo,
                            _ = 0;
                        if (I && I.Level && (_ = I.Level), (!g.RequireAllianceLevel || p.DataCenter.Instance.AllianceId && !(_ < g.RequireAllianceLevel)) && g && r < g.LimitCount && (i = !!g && m.default.CheckEffectiveCondtion(g.EffectiveCondition))) {
                            if (0 == g.Price) return !0;
                            if (a && a[0] == g.ItemId && p.DataCenter.Instance.IsItemEnough(g.CurrencyType, g.Price) && !p.DataCenter.Instance.IsItemEnough(a[0], a[1])) return !0
                        }
                    }
                }
                return !1
            }, t.prototype.RefreshShopTypeNode1 = function() {
                return n.CheckShopData(P.ShopParentType.Type1)
            }, t.prototype.RefreshShopTypeNode2 = function() {
                return n.CheckShopData(P.ShopParentType.Type2)
            }, t.prototype.RefreshShopTypeNode3 = function() {
                return n.CheckShopData(P.ShopParentType.Type3)
            }, t.prototype.RefreshShopTypeNode4 = function() {
                return n.CheckShopData(P.ShopParentType.Type4)
            }, t.prototype.RefreshLuckyWheelBtnNode = function() {
                return n.CheckLuckyWheelData(s.All)
            }, t.prototype.RefreshNormalHuntBtnNode = function() {
                return m.default.Instance.IsGameModuleUnlock(P.GameModuleType.TreasureHuntDrawTen)[0] && (this.CheckLuckyWheelTickets(s.Normal, A.GameRecordDefine.LuckyWheelNormal10) || n.CheckLuckyWheelData(s.Normal))
            }, t.prototype.RefreshAdvanceHuntBtnNode = function() {
                return m.default.Instance.IsGameModuleUnlock(P.GameModuleType.TreasureHuntAdvance)[0] && (this.CheckLuckyWheelTickets(s.Advance, A.GameRecordDefine.LuckyWheelAdvance10) || n.CheckLuckyWheelData(s.Advance))
            }, t.CheckLuckyWheelData = function(e) {
                for (var t = p.DataCenter.Instance.GetDataList(u.TreasureHunt_Model), n = 0; n < t.length; n++) {
                    var o = h.ConfigDataComponent.Instance.GetConfigById(d.TreasureHuntBase_Config, t[n].Sid);
                    if (e == s.All || t[n].Sid == e)
                        for (var r = t[n].Point, i = o.PointRewards.length, a = 0; a < i; a++)
                            if (o.PointRewards[a].Items[0] <= r && 0 == t[n].DrawedPointReward[a]) return !0
                }
                return !1
            }, t.prototype.CheckLuckyWheelTickets = function(e, t) {
                var n = h.ConfigDataComponent.Instance.GetConfigById(d.TreasureHuntBase_Config, e);
                if (p.DataCenter.Instance.IsItemEnough(n.TicketId, n.Draw10TicketCount)) {
                    if (null == t) return !0;
                    var o = A.default.GetItem(t);
                    if (!o) return !0;
                    var r = JSON.parse(o);
                    if (null != r && 0 != r) {
                        var i = r;
                        return I.TimeUtil.Get0ClockTs(i) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)
                    }
                    return !0
                }
                return !1
            }, t.prototype.RefreshHeroPalaceBtnNode = function() {
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.HeroBase_Config), t = 0; t < e.length; t++) {
                    var n = e[t];
                    if (4 == n.StarLevel) {
                        var o, r = [],
                            i = h.ConfigDataComponent.Instance.GetConfigById(d.HeroStar_Config, n.StarLevel + 1);
                        o = n.ElementType == f.HeroElementType.Chaos ? i.ChaosHeroMaterials : i.HeroMaterials;
                        var a = this.HeroPalaceGetNoumenonHeroSid(n.Id, n.StarLevel);
                        if (a) {
                            r.push({
                                Type: m.UpStarHeroMaterialType.Hero,
                                Id: a
                            });
                            for (var s = !0, l = 0; l < o.length; l++) {
                                var c = o[l].Items,
                                    u = c[0],
                                    p = c[1],
                                    y = c[2],
                                    g = void 0,
                                    I = n.ElementType,
                                    _ = void 0,
                                    C = [];
                                switch (u) {
                                    case 1:
                                        g = n.Id, _ = m.default.GetHeroByItemIdAndStar(g, p, r, !0);
                                        break;
                                    case 2:
                                        g = n.BondHero, _ = m.default.GetHeroByItemIdAndStar(g, p, r, !0);
                                        break;
                                    case 3:
                                        g = 0, I = n.ElementType, _ = m.default.GetHeroByStarAndElement(p, I, I, r, !0);
                                        break;
                                    case 4:
                                        I = 0, g = 0, _ = m.default.GetHeroByStarAndElement(p, P.HeroElementType.All, I, r, !0);
                                        break;
                                    case 5:
                                        g = n.Id, _ = m.default.GetHeroByItemIdAndStar(g, p, r, !0, !0)
                                }
                                for (var v = 0; v < _.length; v++) {
                                    var b = _[v];
                                    if (C.push(b), r.push(b), C.length >= y) break
                                }
                                if (C.length < y) {
                                    s = !1;
                                    break
                                }
                            }
                            if (s) return !0
                        }
                    }
                }
                return !1
            }, t.prototype.HeroPalaceGetNoumenonHeroSid = function(e, t) {
                for (var n = p.DataCenter.Instance.GetDataList(u.UserHero_Model), o = n.length, r = 0; r < o; r++)
                    if (n[r].HeroId == e && n[r].StarLevel == t) return n[r].Sid;
                return 0
            }, t.prototype.RefreshDailyInstanceBtnNode = function() {
                return n.CheckDailyInstanceData(_e.DailyInstanceType.All)
            }, t.prototype.RefreshCoinInstanceBtnNode = function() {
                return n.CheckDailyInstanceData(_e.DailyInstanceType.Coin)
            }, t.prototype.RefreshExpInstanceBtnNode = function() {
                return n.CheckDailyInstanceData(_e.DailyInstanceType.Exp)
            }, t.prototype.RefreshFighterInstanceBtnNode = function() {
                return n.CheckDailyInstanceData(_e.DailyInstanceType.Fighter)
            }, t.prototype.RefreshRuneInstanceBtnNode = function() {
                return n.CheckDailyInstanceData(_e.DailyInstanceType.Rune)
            }, t.prototype.RefreshAngelInstanceBtnNode = function() {
                return n.CheckDailyInstanceData(_e.DailyInstanceType.Angel)
            }, t.prototype.RefreshGemInstanceBtnNode = function() {
                return n.CheckDailyInstanceData(_e.DailyInstanceType.Gem)
            }, t.CheckDailyInstanceData = function(e) {
                for (var t = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("DailyInstanceFreeBattleCountDaily"), n = p.DataCenter.Instance.GetIntData(f.UserDataKey.HighestPower), o = p.DataCenter.Instance.GetDataList(u.DailyInstance_Model), r = 0; r < o.length; r++) {
                    var i = o[r];
                    if (e == _e.DailyInstanceType.All || i.Sid == e) {
                        var a = !0,
                            s = void 0;
                        switch (r + 1) {
                            case _e.DailyInstanceType.Coin:
                                s = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.DailyInstanceCoin);
                                break;
                            case _e.DailyInstanceType.Exp:
                                s = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.DailyInstanceExp);
                                break;
                            case _e.DailyInstanceType.Fighter:
                                s = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.DailyInstanceFighter);
                                break;
                            case _e.DailyInstanceType.Rune:
                                s = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.DailyInstanceRune);
                                break;
                            case _e.DailyInstanceType.Angel:
                                s = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.DailyInstanceAngel), a = m.default.Instance.IsGameModuleOpen(f.GameModuleType.DailyInstanceAngel);
                                break;
                            case _e.DailyInstanceType.Gem:
                                s = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.DailyInstanceGem), a = m.default.Instance.IsGameModuleOpen(f.GameModuleType.DailyInstanceGem)
                        }
                        if (s[0] && a) {
                            var l = h.ConfigDataComponent.Instance.GetConfigById(d.DailyInstance_Config, i.Sid);
                            if (i.FreeBattleCount < t && i.MapId > 0) return !0;
                            for (var c = 0; c < l.Maps.length; c++) {
                                var y = l.Maps[c];
                                if (!(y <= i.MapId) && n >= h.ConfigDataComponent.Instance.GetConfigById(d.MapDailyInstance_Config, y).RequirePower) return !0
                            }
                        }
                    }
                }
                return !1
            }, t.prototype.RefreshBagFragmentToggle = function(e) {
                if (void 0 === e && (e = !1), !e) {
                    var t = A.default.GetItem(A.GameRecordDefine.ShowBagPanelTabRedDot);
                    if (t && JSON.parse(t)[x.Tab.Fragment - 1] > 0) return !1
                }
                for (var n = p.DataCenter.Instance.GetDataList(u.UserItem_Model), o = 0; o < n.length; o++) {
                    var r = n[o];
                    if (!(r.Count <= 0) && h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, r.ItemId).Type == P.ItemType.ItemPiece) {
                        var i = h.ConfigDataComponent.Instance.GetConfigById(d.ItemPiece_Config, r.ItemId);
                        if (i.SubType == P.ItemPieceType.CommonHeroPiece || i.SubType == P.ItemPieceType.CommonPersonalityPiece || i.SubType == P.ItemPieceType.ArtefactPiece || i.SubType == P.ItemPieceType.NewPersonality) continue;
                        if (r.Count >= i.RequireCount) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshBagPropToggle = function() {
                var e = A.default.GetItem(A.GameRecordDefine.ShowBagPanelTabRedDot);
                if (e && JSON.parse(e)[x.Tab.Prop - 1] > 0) return !1;
                for (var t = p.DataCenter.Instance.GetDataList(u.UserItem_Model), n = 0; n < t.length; n++) {
                    var o = t[n];
                    if (!(o.Count <= 0) && h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, o.ItemId).Type == P.ItemType.Consume) {
                        var r = h.ConfigDataComponent.Instance.GetConfigById(d.ItemConsume_Config, o.ItemId);
                        if (null != r && r.GameModule && !m.default.Instance.IsGameModuleUnlock(r.GameModule)[0]) continue;
                        if (r.SubType <= 4 || r.SubType == P.ConsumeItemType.Coupon) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshClimbTowerBtnNode = function() {
                var e = n.CheckTowerDailyReward(),
                    t = n.CheckTowerExtraReward(_.TestTowerType.All),
                    o = n.CheckElementScriptureReward(),
                    r = this.CheckAllTowerElementStrengthen();
                return e || t || o || r
            }, t.prototype.RefreshClimbTowerToggleNormalNode = function() {
                for (var e = n.CheckTowerDailyReward({
                        Value1: 0
                    }), t = p.DataCenter.Instance.GetDataList(u.TestTower_Model), o = !1, r = 0; r < t.length; r++)
                    if (t[r].Sid < 100 && n.CheckTowerExtraReward(t[r].Sid)) {
                        o = !0;
                        break
                    } return e || o
            }, t.prototype.RefreshClimbTowerToggleHardNode = function() {
                for (var e = {
                        101: f.GameModuleType.HeartHardTower,
                        102: f.GameModuleType.PowerHardTower,
                        103: f.GameModuleType.TechHardTower,
                        104: f.GameModuleType.BreakHardTower,
                        105: f.GameModuleType.FightHardTower,
                        199: f.GameModuleType.MainHardTower
                    }, t = n.CheckTowerDailyReward({
                        Value1: 1
                    }), o = p.DataCenter.Instance.GetDataList(u.TestTower_Model), r = !1, i = 0; i < o.length; i++)
                    if (o[i].Sid > 100 && n.CheckTowerExtraReward(o[i].Sid) && m.default.Instance.IsGameModuleUnlock(e[o[i].Sid])[0]) {
                        r = !0;
                        break
                    } return t || r
            }, t.prototype.RefreshClimbTowerDailyRewardBtnNode = function(e) {
                return n.CheckTowerDailyReward(e)
            }, t.prototype.RefreshNormalTowerExtraRewardBtnNode = function(e) {
                var t = _.TestTowerType.Normal + 100 * e.Value1;
                return n.CheckTowerExtraReward(t)
            }, t.prototype.RefreshPowerTowerEntrance = function(e) {
                if (this.RefreshPowerTowerExtraRewardBtnNode(e)) return !0;
                if (0 == e.Value1) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.TestTowerType_Config, _.TestTowerType.Power);
                    if (m.default.Instance.IsTestTowerOpenTime(t)) {
                        if (this.RefreshElementStrengthenStateByElement(f.HeroElementType.Power, !0)) return !0;
                        if (this.RefreshOnTowerStarPowerBtnNode({
                                Value1: f.HeroElementType.Power
                            })) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshTechTowerEntrance = function(e) {
                if (this.RefreshTechTowerExtraRewardBtnNode(e)) return !0;
                if (0 == e.Value1) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.TestTowerType_Config, _.TestTowerType.Tech);
                    if (m.default.Instance.IsTestTowerOpenTime(t)) {
                        if (this.RefreshElementStrengthenStateByElement(f.HeroElementType.Tech, !0)) return !0;
                        if (this.RefreshOnTowerStarPowerBtnNode({
                                Value1: f.HeroElementType.Tech
                            })) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshHeartTowerEntrance = function(e) {
                if (this.RefreshHeartTowerExtraRewardBtnNode(e)) return !0;
                if (0 == e.Value1) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.TestTowerType_Config, _.TestTowerType.Heart);
                    if (m.default.Instance.IsTestTowerOpenTime(t)) {
                        if (this.RefreshElementStrengthenStateByElement(f.HeroElementType.Heart, !0)) return !0;
                        if (this.RefreshOnTowerStarPowerBtnNode({
                                Value1: f.HeroElementType.Heart
                            })) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshBreakTowerEntrance = function(e) {
                if (this.RefreshBreakTowerExtraRewardBtnNode(e)) return !0;
                if (0 == e.Value1) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.TestTowerType_Config, _.TestTowerType.Break);
                    if (m.default.Instance.IsTestTowerOpenTime(t)) {
                        if (this.RefreshElementStrengthenStateByElement(f.HeroElementType.Break, !0)) return !0;
                        if (this.RefreshOnTowerStarPowerBtnNode({
                                Value1: f.HeroElementType.Break
                            })) return !0
                    }
                }
            }, t.prototype.RefreshFightTowerEntrance = function(e) {
                if (this.RefreshFightTowerExtraRewardBtnNode(e)) return !0;
                if (0 == e.Value1) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.TestTowerType_Config, _.TestTowerType.Fight);
                    if (m.default.Instance.IsTestTowerOpenTime(t)) {
                        if (this.RefreshElementStrengthenStateByElement(f.HeroElementType.Fight, !0)) return !0;
                        if (this.RefreshOnTowerStarPowerBtnNode({
                                Value1: f.HeroElementType.Fight
                            })) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshPowerTowerExtraRewardBtnNode = function(e) {
                var t = _.TestTowerType.Power + 100 * e.Value1;
                return n.CheckTowerExtraReward(t)
            }, t.prototype.RefreshTechTowerExtraRewardBtnNode = function(e) {
                var t = _.TestTowerType.Tech + 100 * e.Value1;
                return n.CheckTowerExtraReward(t)
            }, t.prototype.RefreshHeartTowerExtraRewardBtnNode = function(e) {
                var t = _.TestTowerType.Heart + 100 * e.Value1;
                return n.CheckTowerExtraReward(t)
            }, t.prototype.RefreshBreakTowerExtraRewardBtnNode = function(e) {
                var t = _.TestTowerType.Break + 100 * e.Value1;
                return n.CheckTowerExtraReward(t)
            }, t.prototype.RefreshFightTowerExtraRewardBtnNode = function(e) {
                var t = _.TestTowerType.Fight + 100 * e.Value1;
                return n.CheckTowerExtraReward(t)
            }, t.prototype.RefreshEntranceNormalBtnNode2 = function() {
                var e = this.RefreshEntranceNormalBtnNode({
                        Value1: 0
                    }),
                    t = this.RefreshEntranceNormalBtnNode({
                        Value1: 1
                    });
                return e || t
            }, t.prototype.RefreshEntranceNormalBtnNode = function(e) {
                var t = this.RefreshClimbTowerDailyRewardBtnNode(e),
                    n = this.RefreshNormalTowerExtraRewardBtnNode(e);
                return t || n
            }, t.prototype.RefreshElementScriptureBtnNode = function() {
                return n.CheckElementScriptureReward()
            }, t.CheckTowerDailyReward = function(e) {
                var t = p.DataCenter.Instance.GetDataList(u.TestTower_Model),
                    n = [_.TestTowerType.Normal, _.TestTowerType.HardNormal],
                    o = [];
                o = e && null != e.Value1 ? [n[e.Value1]] : n;
                for (var r = 0; r < t.length; r++)
                    if (o.includes(t[r].Sid) && !t[r].IsDrawDailyReward) {
                        if (t[r].Sid == _.TestTowerType.HardNormal && !m.default.Instance.IsGameModuleUnlock(f.GameModuleType.MainHardTower)[0]) continue;
                        return !0
                    } return !1
            }, t.CheckTowerExtraReward = function(e) {
                for (var t = p.DataCenter.Instance.GetDataList(u.TestTower_Model), n = 0; n < t.length; n++)
                    if (e == _.TestTowerType.All || t[n].Sid == e) {
                        var o = h.ConfigDataComponent.Instance.GetConfigById(d.TestTowerType_Config, t[n].Sid);
                        if (o.OpenTime && o.OpenTime.length > 0) {
                            var r = I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime);
                            if (!o.OpenTime.includes(r)) continue
                        }
                        for (var i = o.MapIdPrefix, a = i + t[n].MapIndex; a > i + t[n].ExtraRewardIndex; a--) {
                            var s = h.ConfigDataComponent.Instance.GetConfigById(d.MapTestTower_Config, a);
                            if (0 == s.Distance && s.ExtraRewards.length > 0) return !0
                        }
                    } return !1
            }, t.CheckElementScriptureReward = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.ElementTower)[0] || !m.default.Instance.IsGameModuleUnlock(P.GameModuleType.ElementTower2)[0]) return !1;
                var e = h.ConfigDataComponent.Instance.GetConfigById(d.GameModule_Config, P.GameModuleType.ElementTower),
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.GameModule_Config, P.GameModuleType.ElementTower2),
                    n = [];
                n = n.concat(e.WarTokenId, t.WarTokenId);
                for (var o = 0; o < n.length; o++) {
                    var r = n[o],
                        i = p.DataCenter.Instance.GetDataById(u.WarToken_Model, r);
                    if (i)
                        for (var a = h.ConfigDataComponent.Instance.GetConfigById(d.WarTokenType_Config, r), s = a.TaskList.length, l = 0; l < s; l++) {
                            var c = a.TaskList[l],
                                f = h.ConfigDataComponent.Instance.GetConfigById(d.WarTokenTask_Config, c);
                            if (i.Point >= f.RequirePoint && i.RewardIndex < l + 1) return !0
                        }
                }
                return !1
            }, t.prototype.CheckAllTowerElementStrengthen = function() {
                for (var e = 0, t = p.DataCenter.Instance.GetDataList(u.TestTower_Model); e < t.length; e++) {
                    var n = t[e],
                        o = void 0;
                    switch (n.Sid) {
                        case _.TestTowerType.Heart:
                            o = f.HeroElementType.Heart;
                            break;
                        case _.TestTowerType.Power:
                            o = f.HeroElementType.Power;
                            break;
                        case _.TestTowerType.Tech:
                            o = f.HeroElementType.Tech;
                            break;
                        case _.TestTowerType.Break:
                            o = f.HeroElementType.Break;
                            break;
                        case _.TestTowerType.Fight:
                            o = f.HeroElementType.Fight
                    }
                    if (o) {
                        var r = h.ConfigDataComponent.Instance.GetConfigById(d.TestTowerType_Config, n.Sid);
                        if (m.default.Instance.IsTestTowerOpenTime(r)) {
                            if (this.RefreshElementStrengthenStateByElement(o, !0)) return !0;
                            if (this.RefreshOnTowerStarPowerBtnNode({
                                    Value1: o
                                })) return !0
                        }
                    }
                }
                return !1
            }, t.prototype.CanSeniorFreeSummon = function() {
                return this.CanFreeSummon(P.CardCommonSummonType.AdvanceSummon)
            }, t.prototype.CanSeniorTenSummon = function() {
                return this.CanTenSummon(P.CardCommonSummonType.AdvanceSummon10)
            }, t.prototype.CanJuniorFreeSummon = function() {
                return this.CanFreeSummon(P.CardCommonSummonType.NormalSummon)
            }, t.prototype.CanJuniorTenSummon = function() {
                return this.CanTenSummon(P.CardCommonSummonType.NormalSummon10)
            }, t.prototype.CanPersonalFreeSummon = function() {
                return !ue.default.Instance.IsVNChannel() && this.CanFreeSummon(P.CardCommonSummonType.PersonalitySummon)
            }, t.prototype.CanPersonalTenSummon = function() {
                return !ue.default.Instance.IsVNChannel() && this.CanTenSummon(P.CardCommonSummonType.PersonalitySummon10)
            }, t.prototype.CanProgressRewardsSenior = function() {
                if (ue.default.Instance.IsVNChannel()) return !1;
                var e = m.default.GetProgressRewardsByType(P.ProgressRewardsType.Senior);
                return e.value >= e.maxValue
            }, t.prototype.CanProgressRewardsPersonality = function() {
                var e = m.default.GetProgressRewardsByType(P.ProgressRewardsType.Personality);
                return e.value >= e.maxValue
            }, t.prototype.CanProgressRewardsDaily = function() {
                if (!m.default.Instance.IsGameModuleOpen(P.GameModuleType.DailySummon) || !m.default.Instance.IsGameModuleUnlock(P.GameModuleType.DailySummon)) return !1;
                var e = m.default.GetProgressRewardsByType(P.ProgressRewardsType.Daily);
                return e.value >= e.maxValue
            }, t.prototype.CanFreeSummon = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.CardCommonSummon_Config, e),
                    n = p.DataCenter.Instance.GetDataById(u.SummonCard_Model, t.SummonType);
                return null != n && n.FreeCount > 0
            }, t.prototype.CanTenSummon = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.CardCommonSummon_Config, e).ConsumeItem[0],
                    n = t.Items[0],
                    o = t.Items[1];
                if (p.DataCenter.Instance.IsItemEnough(n, o)) {
                    var r = void 0;
                    switch (e) {
                        case f.CardCommonSummonType.AdvanceSummon10:
                        case f.CardCommonSummonType.NormalSummon10:
                            return !0;
                        case f.CardCommonSummonType.PersonalitySummon10:
                            var i;
                            r = null == (i = A.default.GetItem(A.GameRecordDefine.PersonalitySummonTen)) || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(i))
                    }
                    return r
                }
                return !1
            }, t.prototype.CanScoreSummon = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(d.CardCommonSummon_Config, P.CardCommonSummonType.ScoreSummon),
                    t = e.ConsumeItem[0].Items[0],
                    n = e.ConsumeItem[0].Items[1];
                return !!p.DataCenter.Instance.IsItemEnough(t, n)
            }, t.prototype.RefreshStrongPathNode = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.StrongPathTask_Config), t = L.DataCenter.Instance.GetIntData(P.UserDataKey.StrongPathCount), n = L.DataCenter.Instance.GetArrayData(P.UserDataKey.StrongPathTasks), o = 0; o < e.length; o++) {
                    var r = e[o];
                    if (!n.includes(r.Id) && t >= r.Count) return !0
                }
                return !1
            }, t.prototype.RefreshStrongPathWishListNode = function() {
                var e = L.DataCenter.Instance.GetDataById(u.SummonCard_Model, 102);
                for (var t in e.WishSlot)
                    if (!e.WishSlot[t]) return !0;
                return !1
            }, t.prototype.RefreshProphetCrystalBtnNode = function() {
                var e = p.DataCenter.Instance.GetDataById(u.GameModule_Model, f.GameModuleType.CrystalSummon),
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.CardProphetSummon_Config, f.ProphetSummonType.Crystal).AdvCurrencyCount;
                return !(!p.DataCenter.Instance.IsItemEnough(f.CommonItemId.OracleExchangeItemId, t) || !e.IsUnlocked)
            }, t.prototype.RefreshProphetTenButtonNode = function() {
                var e = p.DataCenter.Instance.GetDataById(u.GameModule_Model, f.GameModuleType.ProphetSummon),
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.CardProphetSummon_Config, f.ProphetSummonType.Prophet10),
                    n = t.BaseCurrencyCount;
                if (p.DataCenter.Instance.IsItemEnough(t.CurrencyId, n) && e.IsUnlocked) {
                    var o = A.default.GetItem(A.GameRecordDefine.ElementSummonDailyRedDot);
                    if (null == o || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(o))) return !0
                }
                return !1
            }, t.prototype.RefreshProphetButtonNode = function() {
                var e = p.DataCenter.Instance.GetDataById(u.GameModule_Model, f.GameModuleType.ProphetSummon),
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.CardProphetSummon_Config, f.ProphetSummonType.Prophet10);
                if (p.DataCenter.Instance.IsItemEnough(t.CurrencyId, 1) && e.IsUnlocked) {
                    var n = A.default.GetItem(A.GameRecordDefine.ElementSummonDailyRedDot);
                    if (null == n || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(n))) return !0
                }
                return !1
            }, t.prototype.RefreshElementSummonShopNode = function() {
                var e = A.default.GetItem(A.GameRecordDefine.ElementSummonShopRedDot),
                    t = p.DataCenter.Instance.IsItemEnough(f.CommonItemId.OracleShopItemId, 45),
                    n = null == e || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(e));
                return !(!t || !n)
            }, t.prototype.RefreshFriendsBtnNode = function() {
                var e = p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.FriendGift) > 0,
                    t = p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.FriendRequest) > 0;
                return e || t
            }, t.prototype.RefreshFriendOneKeyBtnNode = function() {
                return p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.FriendGift) > 0 && p.DataCenter.Instance.GetIntData(f.UserDataKey.AcceptGiftCount) < h.ConfigDataComponent.Instance.GetGlobalSettingByKey("FriendAcceptGiftCountLimit")
            }, t.prototype.RefreshFriensManageBtnNode = function() {
                return p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.FriendRequest) > 0
            }, t.prototype.RefreshBattleBtnNode = function() {
                return 1 == n.CheckIdleBattleTime() || 1 == n.CheckQuickBattleFreeTimes() || 1 == this.CheckIntelligenceState() || 1 == this.CheckSystemFormationRewardState() || 1 == this.RefreshTaskBtnNode() || 1 == this.RefreshOnlineRewardState()
            }, t.prototype.RefreshWantStrongBtnNode = function() {
                return this.CheckSystemFormationRewardState()
            }, t.prototype.CheckSystemFormationRewardState = function() {
                for (var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.FormationsRewards), t = h.ConfigDataComponent.Instance.GetArrayConfig(d.RecommendFormation_Config), n = 0; n < t.length; n++) {
                    for (var o = t[n].HeroIds, r = 0, i = 0; i < o.length; i++) null != p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, o[i]) && r++;
                    if (r >= o.length && 0 == (e >> t[n].Id - 1 & 1)) return !0
                }
                return !1
            }, t.prototype.RefreshFreshStrategyNode = function() {
                var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.NewPlayerStrategy);
                if (null == e || 0 == e) return !0;
                if (e < 0) return !1;
                for (var t = 0; t < 10; t += 2)
                    if (this.JudgeBit(e, t) && !this.JudgeBit(e, t + 1)) return !0;
                return !1
            }, t.prototype.RefreshQuickBattleBtnNode = function() {
                return n.CheckQuickBattleFreeTimes()
            }, t.prototype.RefreshIntelligenceBtnNode = function() {
                return this.CheckIntelligenceState()
            }, t.CheckIdleBattleTime = function() {
                var e = m.default.GetModuleBonusByType(f.ModuleBonusType.HangUpRewardTime),
                    t = p.DataCenter.Instance.GetDataById(u.Adventure_Model, 1),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureHangUpRewardTimeUpperLimit"),
                    o = y.RpcComponent.Instance.ServerTime,
                    r = t.ReceiveTime;
                return Math.max(o - r, 0) > (n + 60 * e) * g.Etc.MinuteDuration
            }, t.CheckQuickBattleFreeTimes = function() {
                var e = m.default.GetModuleBonusByType(f.ModuleBonusType.QuickBattleFree),
                    t = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("AdventureQuickBattleDailyCount");
                return p.DataCenter.Instance.GetDataById(u.Adventure_Model, 1).DailyCount < t + e
            }, t.prototype.CheckIntelligenceState = function() {
                for (var e = p.DataCenter.Instance.GetDataList(u.IntelligenceTask_Model), t = 0; t < this.intelligenceScheduleList.length; t++) this.unschedule(this.intelligenceScheduleList[t]);
                for (this.intelligenceScheduleList = [], t = 0; t < e.length; t++)
                    if (e[t].DispatchTime > 0) {
                        var n = h.ConfigDataComponent.Instance.GetConfigById(d.IntelligenceTask_Config, e[t].TaskId),
                            o = h.ConfigDataComponent.Instance.GetConfigById(d.IntelligenceQuality_Config, n.QualityId),
                            r = y.RpcComponent.Instance.ServerTime - e[t].DispatchTime;
                        if (r >= o.Hour * g.Etc.HourDuration) return !0;
                        var i = Math.floor((o.Hour * g.Etc.HourDuration - r) / 1e3) + .5,
                            a = function() {};
                        this.intelligenceScheduleList.push(a), this.scheduleOnce(a, i)
                    } return !1
            }, t.prototype.RefreshTaskBtnNode = function() {
                return 1 == this.CheckDailyTaskCompleteState() || 1 == this.CheckMainLineTaskCompleteState() || !!this.CheckWeeklyTaskCompleteState() || !!this.RefreshActiveCommandState()
            }, t.prototype.CheckDailyTaskCompleteState = function() {
                if (1 == n.CheckTaskPointRewardStateByType(f.TaskType.Daily)) return !0;
                for (var e = p.DataCenter.Instance.GetDataList(u.UserTask_Model), t = 0; t < e.length; t++) {
                    var o = e[t],
                        r = h.ConfigDataComponent.Instance.GetConfigById(d.TaskBase_Config, o.Sid);
                    if (r && r.Type == P.TaskType.Daily && o.Progress >= r.TotalCount && !o.IsCompleted) return !0
                }
                return !1
            }, t.prototype.CheckWeeklyTaskCompleteState = function() {
                if (1 == n.CheckTaskPointRewardStateByType(f.TaskType.Weekly)) return !0;
                for (var e = p.DataCenter.Instance.GetDataList(u.UserTask_Model), t = 0; t < e.length; t++) {
                    var o = e[t],
                        r = h.ConfigDataComponent.Instance.GetConfigById(d.TaskBase_Config, o.Sid);
                    if (r && r.Type == P.TaskType.Weekly && o.Progress >= r.TotalCount && !o.IsCompleted) return !0
                }
                return !1
            }, t.prototype.CheckMainLineTaskCompleteState = function() {
                for (var e = p.DataCenter.Instance.GetDataList(u.UserTask_Model), t = 0; t < e.length; t++) {
                    var n = e[t],
                        o = h.ConfigDataComponent.Instance.GetConfigById(d.TaskBase_Config, n.Sid);
                    if (o && o.Type == P.TaskType.MainLine && n.Progress >= o.TotalCount && !n.IsCompleted && m.default.IsTaskCanShow(n.Sid)) return !0
                }
                return !1
            }, t.CheckTaskPointRewardStateByType = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.TaskPointReward_Model, e);
                if (null == t) return !1;
                var n = [],
                    o = h.ConfigDataComponent.Instance.GetConfigById(d.PointRewardType_Config, t.Sid);
                if (null == o) return !1;
                for (var r = o.Nodes, i = 0; i < r.length; i++) {
                    var a = h.ConfigDataComponent.Instance.GetConfigById(d.TaskPointReward_Config, r[i]);
                    n.push(a)
                }
                for (i = 0; i < n.length; i++) {
                    var s = n[i].Point;
                    if (t.Point >= s && !t.DrawRewardIds.includes(i)) return !0
                }
                return !1
            }, t.CheckTaskCompleteStateByType = function(e) {
                for (var t = p.DataCenter.Instance.GetDataList(u.UserTask_Model), n = 0; n < t.length; n++) {
                    var o = h.ConfigDataComponent.Instance.GetConfigById(d.TaskBase_Config, t[n].Sid);
                    if (null != o && o.Type == e && t[n].Progress >= o.TotalCount && !t[n].IsCompleted) return !0
                }
                return !1
            }, t.prototype.RefreshStarResonanceBtn = function() {
                var e = this.CheckStarResonanceUnlock(),
                    t = this.CheckStarResonanceStage(),
                    n = this.CheckStarResonanceUpgrade();
                return e || t || n
            }, t.prototype.RefreshStarPowerBtn = function() {
                return !!this.CheckStarPowerCanLevelUp() || !!this.CheckStarPowerCanBreak()
            }, t.prototype.RefreshGeneralStarPieceBtn = function() {
                return this.CheckStarPieceState()
            }, t.prototype.RefreshSpecialStarPieceBtn = function() {
                return this.CheckStarPieceState(void 0, !0)
            }, t.prototype.CheckStarPieceState = function(e, t) {
                if (null != e) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(d.StarPiece_Config, e);
                    this.CheckSingleStarPieceAll(n)
                } else
                    for (var o = h.ConfigDataComponent.Instance.GetArrayConfig(d.StarPiece_Config), r = 0; r < o.length; r++) {
                        if (t) {
                            if (!o[r].Condition || o[r].Condition.length <= 0) continue
                        } else if (o[r].Condition && o[r].Condition.length > 0) continue;
                        if (this.CheckSingleStarPieceAll(o[r])) return !0
                    }
                return !1
            }, t.prototype.CheckSingleStarPieceAll = function(e) {
                var t = this.CheckSingleStarPieceCanActive(e);
                if (t) return t;
                var n = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.StarPieceStar).Data,
                    o = this.CheckSingleStarPieceCanIntensify(e, n);
                if (o) return o;
                var r = this.CheckSingleStarPieceCanStarUp(e);
                return r || (this.CheckSingleStarPieceCanAwaken(e) || !1)
            }, t.prototype.CheckSingleStarPieceCanActive = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.StarPieceQuality_Config, e.QualityId);
                if (null != p.DataCenter.Instance.GetDataById(u.StarPiece_Model, e.Id)) return !1;
                var n = !1,
                    o = e.ItemId,
                    r = t.ItemCount[0];
                p.DataCenter.Instance.IsItemEnough(o, r) && (n = !0);
                var i = !0,
                    a = e.HeroMaterials[0].Items;
                if (a.length > 1)
                    for (var s = a.length / 5, l = 0, c = 0; c < s; c++) {
                        l = a[5 * c + 4];
                        var f = this.GetHeroSids();
                        if (f = m.default.FilterHeroById(f, a[5 * c]), f = m.default.FilterHeroByPerk(f, a[5 * c + 1]), f = m.default.FilterHeroByElement(f, a[5 * c + 2]), l > (f = m.default.FilterHeroByStar(f, a[5 * c + 3])).length) {
                            i = !1;
                            break
                        }
                    }
                return !(!n || !i)
            }, t.prototype.GetHeroSids = function() {
                var e = p.DataCenter.Instance.GetDataList(u.UserHero_Model),
                    t = [];
                return e.forEach(function(e) {
                    t.push(e.Sid)
                }), t
            }, t.prototype.CheckSingleStarPieceCanStarUp = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.StarPieceQuality_Config, e.QualityId),
                    n = p.DataCenter.Instance.GetDataById(u.StarPiece_Model, e.Id);
                if (null == n) return !1;
                var o = n.Star;
                if (o >= t.MaxStar) return !1;
                var r = e.ItemId,
                    i = t.ItemCount[o];
                if (!p.DataCenter.Instance.IsItemEnough(r, i)) return !1;
                for (var a = !0, s = e.HeroMaterials[o].Items, l = s.length / 5, c = [], f = function(e) {
                        var t = m.default.GetHeroSids(c);
                        if (t = m.default.FilterHeroById(t, s[5 * e]), t = m.default.FilterHeroByPerk(t, s[5 * e + 1]), t = m.default.FilterHeroByElement(t, s[5 * e + 2]), t = m.default.FilterHeroByStar(t, s[5 * e + 3]), t = m.default.FilterHeroByCanConsume(t), 0 == s[5 * e] && m.default.GetHeroSoulItems(s[5 * e + 3], s[5 * e + 2]).forEach(function(e) {
                                t.push(-e)
                            }), t.length < s[5 * e + 4]) return a = !1, "break";
                        for (var n = s[5 * e + 4]; n > 0;) c.push(t.pop()), n--
                    }, y = 0; y < l && "break" !== f(y); y++);
                return !!a
            }, t.prototype.CheckSingleStarPieceCanAwaken = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.StarPieceQuality_Config, e.QualityId),
                    n = p.DataCenter.Instance.GetDataById(u.StarPiece_Model, e.Id);
                if (null == n) return !1;
                if (n.IsAwakening) return !1;
                if (n.Star < t.MaxStar) return !1;
                for (var o = 0, r = t.Materials.length, i = 0; i < t.Materials.length; i++) {
                    var a = t.Materials[i].Items[0],
                        s = t.Materials[i].Items[1];
                    p.DataCenter.Instance.IsItemEnough(a, s) && o++
                }
                return o >= r
            }, t.prototype.CheckSingleStarPieceCanIntensify = function(e, t) {
                var n = p.DataCenter.Instance.GetDataById(u.StarPiece_Model, e.Id);
                if (null == n) return !1;
                var o = n.Star,
                    r = n.Level;
                if (t || (t = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.StarPieceStar).Data), r >= (o > t.length ? t[t.length - 1] : t[o - 1])) return !1;
                for (var i = h.ConfigDataComponent.Instance.GetConfigById(d.StarPieceLevel_Config, r), a = h.ConfigDataComponent.Instance.GetConfigById(d.StarPieceLevel_Config, r + 1), s = [], l = 0; l < a.Materials.length; l++) {
                    var c = null == i.Materials[l] ? 0 : i.Materials[l].Items[1];
                    s[l] = [a.Materials[l].Items[0], a.Materials[l].Items[1] - c]
                }
                for (var y = 0, g = a.Materials.length, m = 0; m < g; m++) {
                    var I = s[m][0],
                        _ = s[m][1];
                    p.DataCenter.Instance.IsItemEnough(I, _) && y++
                }
                return y >= g
            }, t.prototype.RefreshExclusiveWeaponBtn = function(e) {
                return !!(this.CheckExclusiveWeaponCanActive(e) || this.CheckExclusiveWeaponCanIntensify(e) || this.CheckExclusiveWeaponCanStarUp(e) || this.CheckExclusiveWeaponCanAwaken(e))
            }, t.prototype.CheckSingleExclusiveWeaponCanActive = function(e) {
                if (null != p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, e.Id)) return !1;
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeaponStar_Config, 1),
                    n = e.PieceId,
                    o = t.PieceCount;
                return p.DataCenter.Instance.IsItemEnough(n, o)
            }, t.prototype.CheckExclusiveWeaponCanActive = function(e) {
                if (void 0 === e && (e = void 0), null != e) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeapon_Config, e);
                    return !!t && this.CheckSingleExclusiveWeaponCanActive(t)
                }
                for (var n = h.ConfigDataComponent.Instance.GetArrayConfig(d.ExclusiveWeapon_Config), o = 0; o < n.length; o++)
                    if (this.CheckSingleExclusiveWeaponCanActive(n[o])) return !0;
                return !1
            }, t.prototype.CheckSingleExclusiveWeaponCanIntensify = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, e.Id);
                if (null == t) return !1;
                var n = t.Star,
                    o = h.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeaponStar_Config, n),
                    r = t.Level;
                if (r >= o.LevelCap) return !1;
                for (var i = h.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeaponLevel_Config, r), a = h.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeaponLevel_Config, r + 1), s = [], l = 0; l < a.Materials.length; l++) {
                    var c = null == i.Materials[l] ? 0 : i.Materials[l].Items[1];
                    s[l] = [a.Materials[l].Items[0], a.Materials[l].Items[1] - c]
                }
                for (var f = 0, y = a.Materials.length, g = 0; g < y; g++) {
                    var m = s[g][0],
                        I = s[g][1];
                    p.DataCenter.Instance.IsItemEnough(m, I) && f++
                }
                return f >= y
            }, t.prototype.CheckExclusiveWeaponCanIntensify = function(e) {
                if (void 0 === e && (e = void 0), null != e) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeapon_Config, e);
                    return !!t && this.CheckSingleExclusiveWeaponCanIntensify(t)
                }
                for (var n = h.ConfigDataComponent.Instance.GetArrayConfig(d.ExclusiveWeapon_Config), o = 0; o < n.length; o++)
                    if (this.CheckSingleExclusiveWeaponCanIntensify(n[o])) return !0;
                return !1
            }, t.prototype.CheckExclusiveWeaponCanStarUp = function(e) {
                if (void 0 === e && (e = void 0), null != e) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeapon_Config, e);
                    return !!t && this.CheckSingleExclusiveWeaponCanStarUp(t)
                }
                for (var n = h.ConfigDataComponent.Instance.GetArrayConfig(d.ExclusiveWeapon_Config), o = 0; o < n.length; o++)
                    if (this.CheckSingleExclusiveWeaponCanStarUp(n[o])) return !0;
                return !1
            }, t.prototype.CheckSingleExclusiveWeaponCanStarUp = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, e.Id);
                if (null == t) return !1;
                var n = t.Star;
                if (n >= k.default.Exclusive_Max_Star) return !1;
                var o, r = h.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeaponStar_Config, n + 1),
                    i = e.PieceId,
                    a = r.PieceCount;
                if (!p.DataCenter.Instance.IsItemEnough(i, a)) return !1;
                var s = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e.Id);
                o = s.ElementType == P.HeroElementType.Chaos ? r.ChaosHeroMaterials : r.HeroMaterials;
                for (var l = [], c = 0; c < o.length; c++) {
                    var f, y = o[c].Items,
                        g = y[0],
                        I = y[1],
                        _ = y[2],
                        C = s.ElementType,
                        v = [],
                        b = void 0;
                    switch (g) {
                        case 1:
                        case 5:
                            b = s.Id;
                            break;
                        case 2:
                            b = s.BondHero
                    }
                    f = m.default.GetHeroUpStarPools(g, b, I, C, l, !0);
                    for (var S = 0; S < f.length; S++) {
                        var w = f[S];
                        if (v.push(w), l.push(w), v.length >= _) break
                    }
                    if (v.length < _) return !1
                }
                return !0
            }, t.prototype.CheckExclusiveWeaponCanAwaken = function(e) {
                if (void 0 === e && (e = void 0), null != e) return this.CheckSingleExclusiveWeaponCanAwaken(e);
                for (var t = h.ConfigDataComponent.Instance.GetArrayConfig(d.ExclusiveWeapon_Config), n = 0; n < t.length; n++)
                    if (this.CheckSingleExclusiveWeaponCanAwaken(t[n].Id)) return !0;
                return !1
            }, t.prototype.CheckSingleExclusiveWeaponCanAwaken = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, e);
                if (null == t || t.IsAwakening) return !1;
                if (t.Star < k.default.Exclusive_Max_Star) return !1;
                for (var n = 0, o = h.ConfigDataComponent.Instance.GetConfigById(d.StarPieceQuality_Config, k.default.Exclusive_Max_Star), r = o.Materials.length, i = 0; i < o.Materials.length; i++) {
                    var a = o.Materials[i].Items[0],
                        s = o.Materials[i].Items[1];
                    p.DataCenter.Instance.IsItemEnough(a, s) && n++
                }
                return n >= r
            }, t.prototype.CheckExclusiveWeaponCanDevelop = function(e) {
                return !!(v.RedDotManager.DataHandler.CheckExclusiveWeaponCanActive(e) || v.RedDotManager.DataHandler.CheckExclusiveWeaponCanIntensify(e) || v.RedDotManager.DataHandler.CheckExclusiveWeaponCanStarUp(e) || v.RedDotManager.DataHandler.CheckExclusiveWeaponCanAwaken(e))
            }, t.prototype.RefreshStarResonanceUpgradeBtn = function() {
                return this.CheckStarResonanceUpgrade()
            }, t.prototype.RefreshStarHolyStatueBtn = function() {
                var e = this.CheckHolyStatueCanGetEngery(),
                    t = this.CheckHolyStatueCanUpGrade(),
                    n = this.CheckHolyStatueCanInlay(),
                    o = this.RefreshStarTacticalReceiveBtnNode();
                return e || t || n || o
            }, t.prototype.RefreshStarHolyStatueUpGradeBtn = function() {
                return this.CheckHolyStatueCanUpGrade()
            }, t.prototype.RefreshStarHolyStatueGemBtn = function() {
                return this.CheckHolyStatueCanInlay()
            }, t.prototype.CheckStarResonanceUnlock = function() {
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarResonanceCountLimit"),
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.StarResonanceUnlockPrice),
                    n = p.DataCenter.Instance.GetDataById(u.StarResonance_Model, 1);
                if (n.Count >= e) return !1;
                var o = t.Data2,
                    r = n.Count,
                    i = o[Math.min(r, o.length - 1)].Items[0];
                return !!p.DataCenter.Instance.IsItemEnough(f.CommonItemId.StarResonanceCrumbs, i)
            }, t.prototype.CheckStarResonanceStage = function() {
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarResonanceSecondInitialLevel"),
                    t = p.DataCenter.Instance.GetDataById(u.StarResonance_Model, 1);
                return 1 == t.Stage && t.Level >= e
            }, t.prototype.CheckStarResonanceUpgrade = function() {
                var e = b.ConfigCacheComponent.Instance.GetStarResonanceUpperLimit(),
                    t = p.DataCenter.Instance.GetDataById(u.StarResonance_Model, 1);
                if (1 == t.Stage) return !1;
                if (!(t.Level < t.MaxLevel && t.Level < e)) return !1;
                var n = h.ConfigDataComponent.Instance.GetConfigById(d.StarResonanceLevel_Config, t.Level),
                    o = h.ConfigDataComponent.Instance.GetConfigById(d.StarResonanceLevel_Config, t.Level + 1);
                null != o && (n = o);
                for (var r = 0; r < n.Materials.length; r++) {
                    var i = n.Materials[r].Items[0],
                        a = n.Materials[r].Items[1];
                    if (!p.DataCenter.Instance.IsItemEnough(i, a)) return !1
                }
                return !0
            }, t.prototype.CheckHolyStatueCanGetEngery = function() {
                return p.DataCenter.Instance.GetArrayData(f.UserDataKey.StarHolyStatueHeros).length > 0
            }, t.prototype.CheckHolyStatueCanUpGrade = function() {
                var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.StarHolyStatueLevel);
                if (e < b.ConfigCacheComponent.Instance.GetStarStatueMaxLevel()) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.StarHolyStatueLevel_Config, e + 1);
                    if (null == t) return !1;
                    var n = t.Xp;
                    if (p.DataCenter.Instance.IsItemEnough(f.CommonItemId.StarHolyStatueEnergy, n)) return !0
                }
                return !1
            }, t.prototype.CheckHolyStatueCanInlay = function() {
                var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.StarHolyStatueLevel),
                    t = p.DataCenter.Instance.GetIntData(f.UserDataKey.StarHolyStatueCount),
                    n = h.ConfigDataComponent.Instance.GetConfigById(d.StarHolyStatueLevel_Config, e),
                    o = p.DataCenter.Instance.GetItemCount(f.CommonItemId.StarGem),
                    r = n.MaxCount - t;
                return Math.min(o, r) > 0
            }, t.prototype.CheckStarPowerCanLevelUp = function() {
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.StarPowerType_Config), t = p.DataCenter.Instance.GetArrayData(f.UserDataKey.StarPowerLevel), n = b.ConfigCacheComponent.Instance.GetStarPowerMaxLevel(), o = 0; o < e.length; o++)
                    if (null == t[o] || t[o] < n) {
                        var r;
                        r = null == t[o] ? 0 : t[o];
                        var i = e[o].ItemId,
                            a = h.ConfigDataComponent.Instance.GetConfigById(d.StarPowerLevel_Config, r + 1);
                        if (p.DataCenter.Instance.IsItemEnough(i, a.Count)) return !0
                    } return !1
            }, t.prototype.CheckStarPowerCanBreak = function() {
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.StarPowerType_Config), t = 0; t < e.length; t++)
                    if (this.CheckStarPowerCanBreakByElement(t + 1)) return !0;
                return !1
            }, t.prototype.RefreshOnTowerStarPowerBtnNode = function(e) {
                var t = e.Value1;
                return !!this.CheckStarPowerCanLevelUpByElement(t) || !!this.CheckStarPowerCanBreakByElement(t)
            }, t.prototype.CheckStarPowerCanLevelUpByElement = function(e) {
                var t = p.DataCenter.Instance.GetArrayData(f.UserDataKey.StarPowerLevel),
                    n = b.ConfigCacheComponent.Instance.GetStarPowerMaxLevel(),
                    o = t[e - 1] || 0;
                if (o < n) {
                    var r = h.ConfigDataComponent.Instance.GetConfigById(d.StarPowerType_Config, e),
                        i = h.ConfigDataComponent.Instance.GetConfigById(d.StarPowerLevel_Config, o + 1).Count;
                    if (p.DataCenter.Instance.IsItemEnough(r.ItemId, i)) return !0
                }
                return !1
            }, t.prototype.CheckStarPowerCanBreakByElement = function(e) {
                var t = p.DataCenter.Instance.GetArrayData(f.UserDataKey.StarPowerAwaken),
                    n = m.default.Instance.GetElementTowerBreakthroughUnlock(e);
                if (!n[0] || !n[1]) return !1;
                var o = t[e - 1] || 0,
                    r = h.ConfigDataComponent.Instance.GetConfigById(d.StarPowerAwaken_Config, 1e4 * e + o + 1);
                return !!r && p.DataCenter.Instance.GetDataById(u.TestTower_Model, r.Type).MapIndex >= r.Layer
            }, t.prototype.RefreshStarPieceBagBtnNode = function() {
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.StarPiece_Config), t = 0; t < e.length; t++)
                    if (p.DataCenter.Instance.GetDataById(u.UserItem_Model, e[t].ItemId) && this.CheckStarPieceIsFullStar(e[t])) return !0;
                var n = h.ConfigDataComponent.Instance.GetArrayConfig(d.ExclusiveWeapon_Config);
                for (t = 0; t < n.length; t++)
                    if (p.DataCenter.Instance.GetDataById(u.UserItem_Model, n[t].PieceId) && this.CheckExclusiveWeaponIsFullStar(n[t])) return !0;
                return !1
            }, t.prototype.RefreshTacticalNode = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.Embattle_Config), t = 0; t < e.length; t++) {
                    var n = B.default.CheckAttrButtonReddot(e[t].Id),
                        o = B.default.CheckSkillButtonReddot(e[t].Id);
                    if (n || o) return !0
                }
                return !1
            }, t.prototype.RefreshStarTacticalReceiveBtnNode = function() {
                return (0 | L.DataCenter.Instance.GetArrayData(P.UserDataKey.StarHolyStatuePoint)[0]) >= L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.StarHolyStatuePointExchange).Data2[0].Items[0]
            }, t.prototype.RefreshStarTacticalLevelUpButtonNode = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.Embattle_Config), t = 0; t < e.length; t++)
                    if (B.default.CheckAttrButtonReddot(e[t].Id)) return !0;
                return !1
            }, t.prototype.CheckStarPieceIsFullStar = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.StarPiece_Model, e.Id),
                    n = 0;
                return null != t && (n = t.Star), n >= h.ConfigDataComponent.Instance.GetConfigById(d.StarPieceQuality_Config, e.QualityId).MaxStar
            }, t.prototype.CheckExclusiveWeaponIsFullStar = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, e.Id);
                return !!(t && t.Star >= k.default.Exclusive_Max_Star)
            }, t.prototype.RefreshRelicTreasureModule = function() {
                var e;
                if (null == (e = p.DataCenter.Instance.GetDataById(u.RelicTreasureHunt_Model, 1))) return !1;
                var t = 5 * h.ConfigDataComponent.Instance.GetGlobalSettingByKey("RelicTreasureHuntOneGemCount"),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("RelicTreasureHuntDiceLimit") - h.ConfigDataComponent.Instance.GetGlobalSettingByKey("RelicTreasureHuntDailyDiceCount"),
                    o = p.DataCenter.Instance.GetItemCount(41);
                return e.Received || (o += h.ConfigDataComponent.Instance.GetGlobalSettingByKey("RelicTreasureHuntDailyDiceCount")), e.ThrowingCount >= t || o > n
            }, t.prototype.RefreshSecretAreaModule = function() {
                var e;
                return !!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.SecretAreaExplore)[0] && !!((e = p.DataCenter.Instance.GetDataById(u.SecretAreaExplore_Model, 1)) && e.Index > 0)
            }, t.prototype.RefreshSaintsWarForestState = function() {
                if (m.default.Instance.IsGameModuleUnlock(P.GameModuleType.SaintsWar)[0] && m.default.Instance.IsGameModuleOpen(P.GameModuleType.SaintsWar)) {
                    var e = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("SaintsWarMaxBattleCountDaily");
                    if (p.DataCenter.Instance.GetDataById(u.SaintsWar_Model, P.SaintsWarType.Forest).BattleCount < e) return !0
                }
                return !1
            }, t.prototype.RefreshSaintsWarDesertState = function() {
                if (m.default.Instance.IsGameModuleUnlock(P.GameModuleType.SaintsWar)[0] && m.default.Instance.IsGameModuleOpen(P.GameModuleType.SaintsWar)) {
                    var e = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("SaintsWarMaxBattleCountDaily");
                    if (p.DataCenter.Instance.GetDataById(u.SaintsWar_Model, P.SaintsWarType.Desert).BattleCount < e) return !0
                }
                return !1
            }, t.prototype.RefreshSaintsWarTombState = function() {
                if (m.default.Instance.IsGameModuleUnlock(P.GameModuleType.SaintsWar)[0] && m.default.Instance.IsGameModuleOpen(P.GameModuleType.SaintsWar)) {
                    var e = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("SaintsWarMaxBattleCountDaily");
                    if (p.DataCenter.Instance.GetDataById(u.SaintsWar_Model, P.SaintsWarType.Tomb).BattleCount < e) return !0
                }
                return !1
            }, t.prototype.CheckHolyAreaRewardState = function() {
                if (this.RefreshAncientWarTokenNode()) return !0;
                var e = p.DataCenter.Instance.GetDataById(u.AncientSacred_Model, 1);
                if (null == e) return !1;
                for (var t = h.ConfigDataComponent.Instance.GetConfigById(d.AncientSacredMap_Config, e.MapLevelId), n = t.MonsterType[t.MonsterType.length - 1].Items[0], o = 0, r = 0, i = e.Maps; r < i.length; r++)
                    for (var a = i[r]; a > 0;) o += 1 & a, a >>= 1;
                for (var s = o, l = 0; l < t.NodeRewards.length; l++)
                    if (s >= (l + 1) * n && e.NodeRewards[l] <= 0) return !0;
                return e.Maps.length == n && 0 != e.Maps[n - 1] && !e.IsReceived
            }, t.prototype.RefreshAncientWarTokenNode = function() {
                var e = p.DataCenter.Instance.GetDataById(u.WarToken_Model, f.WarTokenType.SacredTreasury);
                if (null == e) return !1;
                for (var t = h.ConfigDataComponent.Instance.GetConfigById(d.WarTokenType_Config, f.WarTokenType.SacredTreasury), n = t.TaskList.length, o = 0; o < n; o++) {
                    var r = t.TaskList[o],
                        i = h.ConfigDataComponent.Instance.GetConfigById(d.WarTokenTask_Config, r);
                    if (e.Point >= i.RequirePoint && e.RewardIndex < o + 1) return !0
                }
                return !1
            }, t.prototype.RefreshRelicTreasureHuntWarTokenNode = function() {
                for (var e = N.default.GetWarTokenListData(), t = 0; t < e.length; t++)
                    if (e[t].Id == f.WarTokenType.RelicTreasureHunt)
                        for (var n = N.default.GetRewardData(e[t]), o = 0; o < n.length; o++) {
                            var r = n[o];
                            if (r.CurProgress >= r.Require && (!r.IsFreeReceive || r.IsUnlock && !r.IsVipReceive)) return !0
                        }
                return !1
            }, t.prototype.RefreshEndlessAbyssModule = function() {
                if (this.RefreshEndlessAbyssSingleModule() || this.RefreshEndlessAbyssMultiModule()) return !0;
                var e, t = y.RpcComponent.Instance.ServerTime,
                    n = I.TimeUtil.GetWeekDay(t);
                return h.ConfigDataComponent.Instance.GetArrayConfig(d.EndlessAbyssType_Config).forEach(function(t) {
                    t.OpenTime.includes(n) && (e = t.Id)
                }), !p.DataCenter.Instance.GetDataById(u.EndlessAbyss_Model, e).IsDrawDailyReward
            }, t.prototype.RefreshEndlessAbyssSingleModule = function() {
                return p.DataCenter.Instance.GetDataById(u.EndlessAbyss_Model, f.EndlessAbyssType.SingleMode).PointReward.length > 0
            }, t.prototype.RefreshEndlessAbyssMultiModule = function() {
                return p.DataCenter.Instance.GetDataById(u.EndlessAbyss_Model, f.EndlessAbyssType.MultiMode).PointReward.length > 0
            }, t.prototype.RefreshAllianceTestBtnNode = function() {
                if (0 == p.DataCenter.Instance.AllianceId) return p.DataCenter.Instance.SetTempData("AllianceTest_PassRedDot", null), p.DataCenter.Instance.SetTempData("AllianceTest_ChestRedDot", null), p.DataCenter.Instance.SetTempData("AllianceTest_testTypeConfig_Id", null), !1;
                if (null == p.DataCenter.Instance.GetTempData("AllianceTest_testTypeConfig_Id")) return 1 == p.DataCenter.Instance.AllianceTestId;
                if (0 == p.DataCenter.Instance.GetIntData(f.UserDataKey.AllianceTestCount) && I.TimeUtil.GetHour(y.RpcComponent.Instance.ServerTime) > 0) return !0;
                if (p.DataCenter.Instance.GetTempData("AllianceTest_PassRedDot") || p.DataCenter.Instance.GetTempData("AllianceTest_ChestRedDot")) return !0;
                var e = p.DataCenter.Instance.GetTempData("AllianceTest_testTypeConfig_Id");
                return h.ConfigDataComponent.Instance.GetConfigById(d.AllianceTestType_Config, e).Count - p.DataCenter.Instance.GetIntData(f.UserDataKey.AllianceTestCount) > 0
            }, t.prototype.RefreshAllianceBtnNode = function() {
                if (p.DataCenter.Instance.AllianceId <= 0) return !1;
                var e = A.default.GetItem(A.GameRecordDefine.AllianceTalentRedDot);
                return !(null != e && I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) == I.TimeUtil.Get0ClockTs(parseInt(e)))
            }, t.prototype.RefresAllianceTalentBranchNode = function(e) {
                var t = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceTalentElementNodeUnlock"),
                    n = p.DataCenter.Instance.GetIntData(f.UserDataKey.AllianceTalentAll) / 6,
                    o = p.DataCenter.Instance.GetIntData(e);
                if (e != f.UserDataKey.AllianceTalentAll && n < t) return !1;
                var r = h.ConfigDataComponent.Instance.GetConfigById(d.AllianceTalentLevel_Config, o + 1);
                if (null == r) return !1;
                var i = !1,
                    a = !1;
                return e == f.UserDataKey.AllianceTalentAll ? (i = p.DataCenter.Instance.IsItemEnough(f.CommonItemId.Coin, r.BaseNodeCostCoin), a = p.DataCenter.Instance.IsItemEnough(f.CommonItemId.AllianceMedal, r.BaseNodeCostMedal)) : (i = p.DataCenter.Instance.IsItemEnough(f.CommonItemId.Coin, r.ElementNodeCostCoin), a = p.DataCenter.Instance.IsItemEnough(f.CommonItemId.AllianceMedal, r.ElementNodeCostMedal)), !(!i || !a)
            }, t.prototype.RefreshAllianceApplicationBtnNode = function() {
                if (0 == p.DataCenter.Instance.AllianceId) return !1;
                if (!p.DataCenter.Instance.AllianceInfo) return !1;
                if (!p.DataCenter.Instance.MyPost || p.DataCenter.Instance.MyPost == f.AlliancePostType.Member) return !1;
                var e = p.DataCenter.Instance.GetTempData("AllianceData_RequestList");
                return e && e.DataList && e.DataList.length > 0
            }, t.prototype.RefreshAllianceChallenegBtnNode = function() {
                var e = I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime);
                if (-1 == [1, 2, 3, 4, 5, 6, 7].indexOf(e)) return !1;
                if (null == p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model")) return 1 == p.DataCenter.Instance.AllianceWar;
                var t = p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model"),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneAllianceChallengeLevel");
                if (!t || !t.AllianceInfo || t && t.AllianceInfo && t.AllianceInfo.Level < n) return !1;
                if (2 != D.default.GetCrossServerAllianceTimeType()) return !1;
                var o = p.DataCenter.Instance.GetIntData(P.UserDataKey.AllianceChallengeStatus),
                    r = m.default.GetBit(o, 2),
                    i = m.default.GetBit(o, 3),
                    a = m.default.GetBit(o, 4);
                return !(r && i || a)
            }, t.prototype.RefreshAllianceSpyBtnNode = function() {
                var e = I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime);
                if (-1 == [1, 2, 3, 4, 5, 6, 7].indexOf(e)) return !1;
                if (null == p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model")) return 1 == p.DataCenter.Instance.AllianceWar;
                var t = p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model"),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneAllianceChallengeLevel");
                if (!t || !t.AllianceInfo || t && t.AllianceInfo && t.AllianceInfo.Level < n) return !1;
                if (2 != D.default.GetCrossServerAllianceTimeType()) return !1;
                var o = p.DataCenter.Instance.GetIntData(P.UserDataKey.AllianceChallengeStatus),
                    r = m.default.GetBit(o, 0);
                return !(r || !r && 0 == Y.default.RemainTeam || !Y.default.RemainTeam)
            }, t.prototype.RefreshAllianceSetAtkTeamBtnNode = function() {
                var e = I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime);
                if (-1 == [1, 2, 3, 4, 5, 6, 7].indexOf(e)) return !1;
                if (null == p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model")) return 1 == p.DataCenter.Instance.AllianceWar;
                var t = p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model"),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneAllianceChallengeLevel");
                return !(!t || !t.AllianceInfo || t && t.AllianceInfo && t.AllianceInfo.Level < n || !m.default.CheckFormationIsEmpty(w.FormationIdType.AllianceChallengeAttack1))
            }, t.prototype.RefreshAllianceAtkFormationBtnNode = function() {
                var e = this.RefreshAllianceSetAtkTeamBtnNode(),
                    t = this.RefreshAllianceSetLogisticsTeamBtnNode();
                return e || t
            }, t.prototype.RefreshAllianceDefFormationBtnNode = function() {
                var e = this.RefreshAllianceSetDefTeamBtnNode(),
                    t = this.RefreshAllianceSetLogisticsTeamBtnNode();
                return e || t
            }, t.prototype.RefreshAllianceSetLogisticsTeamBtnNode = function() {
                var e = I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime);
                if (-1 == [1, 2, 3, 4, 5, 6, 7].indexOf(e)) return !1;
                if (null == p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model")) return 1 == p.DataCenter.Instance.AllianceWar;
                var t = p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model"),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneAllianceChallengeLevel");
                return !(!t || !t.AllianceInfo || t && t.AllianceInfo && t.AllianceInfo.Level < n || !m.default.CheckFormationIsEmpty(w.FormationIdType.AllianceChallengeDefend2))
            }, t.prototype.RefreshAllianceSetDefTeamBtnNode = function() {
                var e = I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime);
                if (-1 == [1, 2, 3, 4, 5, 6, 7].indexOf(e)) return !1;
                if (null == p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model")) return 1 == p.DataCenter.Instance.AllianceWar;
                var t = p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model"),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneAllianceChallengeLevel");
                if (!t || !t.AllianceInfo || t && t.AllianceInfo && t.AllianceInfo.Level < n) return !1;
                var o = I.TimeUtil.Get0ClockTs(L.RpcComponent.Instance.ServerTime),
                    r = t.Data[o];
                return (!r || -1 != r.Player.findIndex(function(e) {
                    return e.Items[0] == p.DataCenter.Instance.Uid
                })) && !!m.default.CheckFormationIsEmpty(w.FormationIdType.AllianceChallengeDefend1)
            }, t.prototype.RefreshAllianceAttackBtnNode = function() {
                var e = I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime);
                if (-1 == [1, 2, 3, 4, 5, 6, 7].indexOf(e)) return !1;
                if (null == p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model")) return 1 == p.DataCenter.Instance.AllianceWar;
                var t = p.DataCenter.Instance.GetTempData("AllianceChallengeData_Model"),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneAllianceChallengeLevel");
                if (!t || !t.AllianceInfo || t && t.AllianceInfo && t.AllianceInfo.Level < n) return !1;
                var o = p.DataCenter.Instance.GetIntData(P.UserDataKey.AllianceChallengeStatus),
                    r = m.default.GetBit(o, 0),
                    i = m.default.GetBit(o, 2),
                    a = m.default.GetBit(o, 3),
                    s = m.default.GetBit(o, 4);
                return !((i && a || s) && (r || !r && 0 == Y.default.RemainTeam))
            }, t.prototype.RefreshAllianceRedPacketSend = function() {
                return 0 != p.DataCenter.Instance.AllianceId && p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.SendAllianceRedPacket) > 0
            }, t.prototype.RefreshAllianceRedPacketNormal = function() {
                if (0 == p.DataCenter.Instance.AllianceId) return !1;
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("AllianceRedPacketOpenCountLimit");
                return !(p.DataCenter.Instance.GetIntData(P.UserDataKey.AllianceRedPacketOpenCount) >= e) && p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.ReceiveNorAllianceRedPacket) > 0
            }, t.prototype.RefreshAllianceRedPacketAdvance = function() {
                return 0 != p.DataCenter.Instance.AllianceId && p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.ReceiveHigAllianceRedPacket) > 0
            }, t.prototype.RefreshFormationHeroDevelopState = function() {
                for (var e = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, w.FormationIdType.MainLine), t = 0; t < e.HeroIds.length; t++) {
                    var n = e.HeroIds[t];
                    if (0 != n) {
                        if (this.IsHeroCanDevelop(n)) return !0;
                        if (m.default.CheckHeroCanWearGem(n) || m.default.CheckHeroCanWearHigherGem(n) || this.CheckHeroGemCanProcessing(n)) return !0
                    }
                }
                return !1
            }, t.prototype.CheckHeroGemCanProcessing = function(e) {
                var t = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.Gem)[0];
                if (!m.default.Instance.IsGameModuleOpen(f.GameModuleType.Gem) || !t) return !1;
                if (!m.default.CheckHeroGemUnlock(e)) return !1;
                for (var n = m.default.FilterGemsBySid(e), o = 0; o < n.length; o++)
                    if (this.RefreshGemProcessingBtnNode({
                            Value1: n[o].Sid
                        })) return !0;
                return !1
            }, t.prototype.IsHeroCanDevelop = function(e) {
                if (this.IsHeroCanUpLevel({
                        Value1: e
                    })) return !0;
                if (this.IsHeroCanUpStar({
                        Value1: e
                    })) return !0;
                if (this.IsHeroCanDevelopEquip({
                        Value1: e
                    })) return !0;
                if (this.HsaNewSkin({
                        Value1: e
                    })) return !0;
                var t = p.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                if (this.OnHeroDescButtonNode({
                        Value1: t.HeroId
                    })) return !0;
                if (this.RefreshHeroTalentEntranceNode({
                        Value1: e
                    })) return !0;
                var n = m.default.Instance.IsGameModuleOpen(f.GameModuleType.Pet),
                    o = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.Pet);
                if (n && o[0] && this.RefreshHeroPet({
                        Value1: e
                    })) return !0;
                var r = p.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                if (this.CheckExclusiveWeaponCanDevelop(r.HeroId)) return !0;
                var i = m.default.Instance.IsGameModuleOpen(f.GameModuleType.MagicCircle),
                    a = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.MagicCircle);
                return !!(i && a[0] && this.RefreshHeroMagicCircle({
                    Value1: e
                })) || !!this.RefreshChaosElementButton({
                    Value1: r.HeroId
                })
            }, t.prototype.IsHeroCanUpLevel = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserHero_Model, t);
                if (null == n) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.HeroStar_Config, n.StarLevel);
                if (n.TemplePosition > 0 || n.Level >= o.MaxLevel) return !(!this.OnHeroLuckycharmSkill1Node({
                    Value1: t
                }) && !this.OnHeroLuckycharmSkill2Node({
                    Value1: t
                }));
                for (var r = h.ConfigDataComponent.Instance.GetConfigById(d.HeroLevel_Config, n.Level), i = h.ConfigDataComponent.Instance.GetConfigById(d.HeroLevel_Config, n.Level + 1), a = new Map, s = r.Materials, l = 0; l < s.length; l++) {
                    var c = s[l].Items;
                    a.set(c[0], c[1])
                }
                var f = new Map,
                    y = i.Materials;
                for (l = 0; l < y.length; l++) c = y[l].Items, f.set(c[0], c[1]);
                var g = !0;
                return f.forEach(function(e, t) {
                    var n = 0;
                    a.has(t) && (n = a.get(t));
                    var o = e - n;
                    p.DataCenter.Instance.GetItemCount(t) < o && (g = !1)
                }), !!(g || this.OnHeroLuckycharmSkill1Node({
                    Value1: t
                }) || this.OnHeroLuckycharmSkill2Node({
                    Value1: t
                }) || this.RefreshHeroJobChangeNode({
                    Value1: t
                })) || g
            }, t.prototype.IsHeroCanUpStar = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserHero_Model, t);
                if (null == n) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, n.HeroId);
                if (n.StarLevel >= o.MaxStarLevel) return !1;
                var r, i = h.ConfigDataComponent.Instance.GetConfigById(d.HeroStar_Config, n.StarLevel + 1);
                r = o.ElementType == P.HeroElementType.Chaos ? i.ChaosHeroMaterials : i.HeroMaterials;
                for (var a = i.ItemMaterials, s = 0; s < a.length; s++) {
                    var l = (g = a[s].Items)[0],
                        c = g[1];
                    if (p.DataCenter.Instance.GetItemCount(l) < c) return !1
                }
                var f = !0,
                    y = [];
                for (y.push({
                        Type: m.UpStarHeroMaterialType.Hero,
                        Id: t
                    }), s = 0; s < r.length; s++) {
                    var g, I = (g = r[s].Items)[0],
                        _ = g[1],
                        C = (c = g[2], o.Id);
                    2 == I && (C = o.BondHero);
                    for (var v = m.default.GetHeroUpStarPools(I, C, _, o.ElementType, y, !0), b = 0, S = 0; S < v.length; S++) {
                        var w = v[S];
                        if (b++, y.push(w), b >= c) break
                    }
                    if (b < c) {
                        f = !1;
                        break
                    }
                }
                return f
            }, t.prototype.IsHeroCanDevelopEquip = function(e) {
                for (var t = e.Value1, n = 0; n < 4; n++) {
                    if (this.CanChangeEquip(t, n + 1)) return !0;
                    if (this.CanForgingEquip(t, n + 1)) return !0;
                    if (this.IsHolyEquipCanDevelop(t, n + 1)) return !0
                }
                if (this.RefreshLuckyCharmBySidAndSlot(t)) return !0;
                var o = p.DataCenter.Instance.GetHeroLuckCharmEquips(t);
                return !!(o[0] && this.RefreshLuckyCharmUpgradeNodeNode({
                    Value1: o[0]
                }) || o[1] && this.RefreshLuckyCharmUpgradeNodeNode({
                    Value1: o[1]
                }) || this.RefreshPowerCoreCanEquipNode(e) || this.IsHeroCanWearArtifactOrDevelop(e))
            }, t.prototype.CheckHeroEquipUnlock = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserHero_Model, e),
                    n = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroEquipUnlockHeroLevel");
                return !!(t && t.Level >= n)
            }, t.prototype.CanChangeEquip = function(e, t) {
                if (p.DataCenter.Instance.GetHeroHolyEquips(e)[t - 1] > 0) return !1;
                if (!this.CheckHeroEquipUnlock(e)) return !1;
                var n, o = p.DataCenter.Instance.GetHeroEquips(e)[t - 1];
                if (0 == o) n = 0;
                else {
                    var r = p.DataCenter.Instance.GetDataById(u.Equipment_Model, o);
                    n = (l = h.ConfigDataComponent.Instance.GetConfigById(d.ItemEquipment_Config, r.ItemId)).Score
                }
                for (var i = p.DataCenter.Instance.GetDataList(u.HolyEquipment_Model), a = 0; a < i.length; a++) {
                    var s = i[a],
                        l = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipment_Config, s.ItemId);
                    if (0 == s.OwnerId && l.Type == t) return !0
                }
                var c = p.DataCenter.Instance.GetDataList(u.Equipment_Model);
                for (a = 0; a < c.length; a++)
                    if (0 == (s = c[a]).OwnerId) {
                        var f = h.ConfigDataComponent.Instance.GetConfigById(d.ItemEquipment_Config, s.ItemId);
                        if (f.Type != t) continue;
                        if (f.Score > n) return !0
                    } var y = p.DataCenter.Instance.GetDataList(u.UserItem_Model);
                for (a = 0; a < y.length; a++)
                    if (!((s = y[a]).Count <= 0) && h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, s.ItemId).Type == P.ItemType.Equip) {
                        if ((l = h.ConfigDataComponent.Instance.GetConfigById(d.ItemEquipment_Config, s.ItemId)).Type != t) continue;
                        if (l.Score > n) return !0
                    } return !1
            }, t.prototype.CanForgingEquip = function(e, t) {
                var n = p.DataCenter.Instance.GetHeroEquips(e)[t - 1];
                if (0 == n) return !1;
                if (!this.CheckHeroEquipUnlock(e)) return !1;
                var o = p.DataCenter.Instance.GetDataById(u.Equipment_Model, n),
                    r = h.ConfigDataComponent.Instance.GetConfigById(d.ItemEquipment_Config, o.ItemId);
                if (0 == r.NextId) return !1;
                var i = h.ConfigDataComponent.Instance.GetConfigById(d.ItemEquipment_Config, r.NextId).Xp - r.Xp - o.Xp,
                    a = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("EquipmentXpPrice");
                if (!p.DataCenter.Instance.IsItemEnough(P.CommonItemId.Coin, i * a)) return !1;
                for (var s = 0, l = p.DataCenter.Instance.GetDataList(u.UserItem_Model), c = 0; c < l.length; c++)
                    if (!((g = l[c]).Count <= 0) && h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, g.ItemId).Type == P.ItemType.Equip) {
                        var f = h.ConfigDataComponent.Instance.GetConfigById(d.ItemEquipment_Config, g.ItemId);
                        if (f.Type != t) continue;
                        if ((s += f.Xp * g.Count) >= i) return !0
                    } var y = p.DataCenter.Instance.GetDataList(u.Equipment_Model);
                for (c = 0; c < y.length; c++) {
                    var g;
                    if (0 == (g = y[c]).OwnerId) {
                        var m = h.ConfigDataComponent.Instance.GetConfigById(d.ItemEquipment_Config, g.ItemId);
                        if (m.Type != t) continue;
                        if ((s += m.Xp + g.Xp) >= i) return !0
                    }
                }
            }, t.prototype.IsHolyEquipCanDevelop = function(e, t) {
                var n = p.DataCenter.Instance.GetHeroHolyEquips(e)[t - 1];
                if (0 == n) return !1;
                if (!this.CheckHeroEquipUnlock(e)) return !1;
                if (this.CanHolyEquipStrength({
                        Value1: n
                    })) return !0;
                for (var o = 1; o <= 2; o++)
                    if (this.CanHolyEquipBlessingBySlot(n, o)) return !0;
                return !!this.CanHolyEquipSoul({
                    Value1: n
                }) || !!this.IsHolyEquipCanAdvanced({
                    Value1: n
                })
            }, t.prototype.IsHeroCanUpPersonality = function(e) {
                var t = e.Value1,
                    n = e.extra,
                    o = p.DataCenter.Instance.GetDataById(u.UserHero_Model, t),
                    r = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.Personality)[0],
                    i = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, o.HeroId),
                    a = h.ConfigDataComponent.Instance.GetConfigById(d.PersonalityStar_Config, i.PersonalityStar + 1),
                    s = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, w.FormationIdType.MainLine);
                if (null == o) return !1;
                if (!r) return !1;
                if (this.RefreshPersonalityHandbookBtn(e)) return !0;
                if (!a) return !1;
                var l = function() {
                    for (var e = 0; e < a.Materials.length; e++) {
                        var t = a.Materials[e],
                            n = 0,
                            r = 0;
                        if (1 == t.Items[0]) {
                            n = o.HeroId;
                            var i = {
                                    Type: m.UpStarHeroMaterialType.Hero,
                                    Id: this._hero.Sid
                                },
                                s = m.default.GetHeroByItemIdAndStar(n, t.Items[1], [i], !0);
                            if (r = t.Items[2], s.length < r) return !1
                        } else if (2 == t.Items[0]) {
                            if (n = this.FindPersonalityId(o.HeroId), r = t.Items[2], !p.DataCenter.Instance.IsItemEnough(n, r)) return !1
                        } else if (3 == t.Items[0] && (n = t.Items[1], r = t.Items[2], !p.DataCenter.Instance.IsItemEnough(n, r))) return !1
                    }
                    return !0
                }.bind(this);
                return n ? -1 != s.HeroIds.indexOf(t) && l() : l()
            }, t.prototype.HsaNewSkin = function(e) {
                for (var t = e.Value1, n = p.DataCenter.Instance.GetDataById(u.UserHero_Model, t), o = b.ConfigCacheComponent.Instance.GetHeroSkinsByHeroId(n.HeroId), r = function(e) {
                        var t = o[e],
                            n = p.DataCenter.Instance.GetDataById(u.HeroSkin_Model, t),
                            r = L.ConfigDataComponent.Instance.GetArrayConfig(d.HeroSkinLevel_Config);
                        if (n && n.Level > 0 && n.Level < r.length) {
                            var i = h.ConfigDataComponent.Instance.GetConfigById(d.HeroSkinLevel_Config, n.Level),
                                a = h.ConfigDataComponent.Instance.GetConfigById(d.HeroSkinLevel_Config, n.Level + 1),
                                s = L.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, t),
                                l = !0;
                            if (a.Cost.forEach(function(e) {
                                    switch (e.Items[0]) {
                                        case 1:
                                            var t = s.Transform[0].Items[0],
                                                n = e.Items[1] - i.Cost[0].Items[1];
                                            p.DataCenter.Instance.GetItemCount(t) < n && (l = !1)
                                    }
                                }), l) return {
                                value: !0
                            }
                        }
                    }, i = 0; i < o.length; i++) {
                    var a = r(i);
                    if ("object" == typeof a) return a.value
                }
                return !1
            }, t.prototype.OnHeroDescButtonNode = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.GetDataById(u.HeroInfo_Model, t),
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, t);
                return !(null == n || o.StarLevel < 4 || n.IsDrawReward)
            }, t.prototype.OnHeroLuckycharmSkill1Node = function(e) {
                var t = e.Value1,
                    n = this.OnComperhensionButtonNode({
                        Value1: t,
                        extra: 1
                    }),
                    o = this.OnHeroLuckycharmSkillLevelUpNode({
                        Value1: t,
                        extra: 1
                    });
                return n || o
            }, t.prototype.OnHeroLuckycharmSkill2Node = function(e) {
                var t = e.Value1,
                    n = this.OnComperhensionButtonNode({
                        Value1: t,
                        extra: 2
                    }),
                    o = this.OnHeroLuckycharmSkillLevelUpNode({
                        Value1: t,
                        extra: 2
                    });
                return n || o
            }, t.prototype.OnComperhensionButtonNode = function(e) {
                var t = e.Value1,
                    n = e.extra,
                    o = L.DataCenter.Instance.GetDataById(u.UserHero_Model, t);
                if (1 == n) {
                    var r = L.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroLuckyCharmUnlock1");
                    if (o.LuckSkill1 > 0 || o.StarLevel < r) return !1
                } else {
                    var i = L.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroLuckyCharmUnlock2");
                    if (o.LuckSkill2 > 0 || o.StarLevel < i) return !1
                }
                var a = [];
                L.ConfigDataComponent.Instance.GetArrayConfig(d.LuckyCharmSkill_Config).forEach(function(e) {
                    3 == e.Quality && a.push(e)
                });
                for (var s = function(e) {
                        var t = !0,
                            r = !1;
                        if (a[e].UnderstandMaterials.forEach(function(e) {
                                p.DataCenter.Instance.IsItemEnough(e.Items[0], e.Items[1]) || (t = !1)
                            }), 1 == n ? o.LuckSkill2 && L.ConfigDataComponent.Instance.GetConfigById(d.LuckyCharmSkill_Config, o.LuckSkill2).Type == a[e].Type && (r = !0) : o.LuckSkill1 && L.ConfigDataComponent.Instance.GetConfigById(d.LuckyCharmSkill_Config, o.LuckSkill1).Type == a[e].Type && (r = !0), t && !r) return {
                            value: !0
                        }
                    }, l = 0; l < a.length; l++) {
                    var c = s(l);
                    if ("object" == typeof c) return c.value
                }
                return !1
            }, t.prototype.OnHeroLuckycharmSkillLevelUpNode = function(e) {
                var t, n = e.Value1,
                    o = e.extra,
                    r = {},
                    i = L.DataCenter.Instance.GetDataById(u.UserHero_Model, n);
                if (L.ConfigDataComponent.Instance.GetArrayConfig(d.LuckyCharmSkill_Config).forEach(function(e) {
                        if (r[e.Type]) r[e.Type][e.Quality] || (r[e.Type][e.Quality] = e);
                        else {
                            var t = {};
                            t[e.Quality] = e, r[e.Type] = t
                        }
                    }), t = 1 == o ? i.LuckSkill1 : i.LuckSkill2) {
                    var a = L.ConfigDataComponent.Instance.GetConfigById(d.LuckyCharmSkill_Config, t);
                    if (r[a.Type] && r[a.Type][a.Quality + 1]) {
                        var s = [];
                        r[a.Type][a.Quality + 1].UnderstandMaterials.forEach(function(e) {
                            var t = a.UnderstandMaterials.find(function(t) {
                                    return t.Items[0] == e.Items[0]
                                }),
                                n = [];
                            t ? (n[0] = e.Items[0], n[1] = e.Items[1] - t.Items[1]) : (n[0] = e.Items[0], n[1] = e.Items[1]), s.push(n)
                        });
                        for (var l = !0, c = 0; c < s.length; c++)
                            if (!p.DataCenter.Instance.IsItemEnough(s[c][0], s[c][1])) {
                                l = !1;
                                break
                            } return l
                    }
                    return !1
                }
                return !1
            }, t.prototype.FindPersonalityId = function(e) {
                var t = 0,
                    n = h.ConfigDataComponent.Instance.GetConfig(d.ItemPersonality_Config);
                for (var o in n)
                    if (n[o].HeroId == e) {
                        t = n[o].Id;
                        break
                    } return t
            }, t.prototype.CanHolyEquipStrength = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.HolyEquipment_Model, t);
                if (n.Level >= b.ConfigCacheComponent.Instance.HolyEquipmentMaxLevel) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, n.Star);
                if (n.Level >= o.MaxLevel) {
                    for (var r = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, n.Star + 1).Materials, i = 0; i < r.length; i++) {
                        var a = r[i].Items[0],
                            s = r[i].Items[1];
                        if (p.DataCenter.Instance.GetItemCount(a) < s) return !1
                    }
                    return !0
                }
                var l = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentLevel_Config, n.Level),
                    c = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentLevel_Config, n.Level + 1),
                    y = n.Xp - l.Xp,
                    g = c.Xp - l.Xp - y,
                    m = 0,
                    I = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.HolyEqptXp);
                for (i = 0; i < this.HolyEquipStrengthMaterials.length; i++) {
                    var _ = this.HolyEquipStrengthMaterials[i];
                    if ((s = p.DataCenter.Instance.GetItemCount(_)) > 0 && (m += s * I.Data[i]) >= g) return !0
                }
                return !1
            }, t.prototype.IsHolyEquipCanBlessing = function(e) {
                for (var t = e.Value1, n = 1; n <= 2; n++)
                    if (this.CanHolyEquipBlessingBySlot(t, n)) return !0;
                return !1
            }, t.prototype.CanHolyEquipBlessing1 = function(e) {
                var t = e.Value1;
                return this.CanHolyEquipBlessingBySlot(t, 1)
            }, t.prototype.CanHolyEquipBlessing2 = function(e) {
                var t = e.Value1;
                return this.CanHolyEquipBlessingBySlot(t, 2)
            }, t.prototype.CanHolyEquipBlessingBySlot = function(e, t) {
                var n, o = p.DataCenter.Instance.GetDataById(u.HolyEquipment_Model, e);
                switch (t) {
                    case 1:
                        n = o.Blessing1;
                        break;
                    case 2:
                        n = o.Blessing2
                }
                if (n.BlessingId > 0) {
                    var r = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, o.Star);
                    if (n.Level >= r.BlessingMaxLevel) return !1;
                    var i = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipBlessingLevel_Config, n.Level).Materials[0].Items,
                        a = i[0],
                        s = i[1],
                        l = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipBlessingLevel_Config, n.Level + 1).Xp - n.Xp;
                    return p.DataCenter.Instance.IsItemEnough(a, s * l)
                }
                var c = void 0;
                switch (t) {
                    case 1:
                        c = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipBlessingUnlock1");
                        break;
                    case 2:
                        c = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("HolyEquipBlessingUnlock2")
                }
                return o.Star >= c
            }, t.prototype.CanHolyEquipSoul = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.HolyEquipment_Model, t),
                    o = b.ConfigCacheComponent.Instance.HolyEquipSoulMaxLevel,
                    r = n.Stage;
                if (r >= o) return !1;
                var i = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipSoul_Config, r + 1);
                if (n.Star < i.UnlockStar) return !1;
                var a = h.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipment_Config, n.ItemId),
                    s = i.Materials[a.Type - 1].Items,
                    l = s[0],
                    c = s[1],
                    f = p.DataCenter.Instance.GetItemCount(l);
                if (f >= c) return !0;
                for (var y = p.DataCenter.Instance.GetDataList(u.Equipment_Model), g = 0; g < y.length; g++) {
                    var m = y[g];
                    m.ItemId == l && 0 == m.OwnerId && f++
                }
                return f >= c
            }, t.prototype.IsHeroCanPutGem = function(e) {
                var t = e.Value1;
                return m.default.CheckHeroCanWearGem(t) || m.default.CheckHeroCanWearHigherGem(t) || this.CheckHeroGemCanProcessing(t)
            }, t.prototype.RefreshHeroHandbookState = function() {
                for (var e = p.DataCenter.Instance.GetDataList(u.HeroInfo_Model), t = 0; t < e.length; t++)
                    if (h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e[t].HeroId).StarLevel > 3 && null != e[t] && !e[t].IsDrawReward) return !0;
                if (m.default.Instance.IsGameModuleOpen(P.GameModuleType.HeroCollectShow) && m.default.Instance.IsGameModuleUnlock(P.GameModuleType.HeroCollectShow)[0])
                    for (var n = L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, P.LevelParamType.HeroHandbookCollect), o = 0; o < n.Data2.length; o++)
                        for (var r = 0; r < n.Data2[o].Items.length; r++) {
                            var i = n.Data2[o].Items[r],
                                a = L.ConfigDataComponent.Instance.GetConfigById(d.TaskBase_Config, i),
                                s = L.DataCenter.Instance.GetDataById(u.UserTask_Model, i);
                            if (s && !s.IsCompleted && s.Progress >= a.TotalCount) return !0
                        }
                return !1
            }, t.prototype.HasMeetGiftGotByHeroId = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, e);
                return !!t && h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e).StarLevel > 3 && !t.IsDrawReward
            }, t.prototype.RefreshLuckyCharmBySidAndSlot = function(e, t) {
                if (!this.CheckHeroEquipUnlock(e)) return !1;
                var n = this.CalculateHeroLuckyCharmState(e);
                if (null != t) {
                    var o = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.LuckyCharmUpgrade),
                        r = m.default.Instance.IsGameModuleOpen(f.GameModuleType.LuckyCharmUpgrade);
                    if (o[0] && r)
                        for (var i = p.DataCenter.Instance.GetHeroLuckCharmEquips(e), a = 0; a < i.length; a++) {
                            var s = i[a],
                                l = p.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, s);
                            if (l && l.SlotId == t && this.RefreshLuckyCharmUpgradeNodeNode({
                                    Value1: l.Sid
                                })) return !0
                        }
                    return n[0] && n[1].includes(t)
                }
                return n[0]
            }, t.prototype.RefreshLuckyCharmChangeBySidAndSlot = function(e, t) {
                if (!this.CheckHeroEquipUnlock(e)) return !1;
                var n = this.CalculateHeroLuckyCharmState(e);
                return null != t ? n[0] && n[1].includes(t) : n[0]
            }, t.prototype.CalculateHeroLuckyCharmState = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                if ((t.TemplePosition > 0 ? t.TempleLevel : t.Level) < h.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmSlot1UnlockLevel")) return [!1, []];
                for (var n = p.DataCenter.Instance.GetHeroLuckCharmEquips(e), o = [], r = this.GetBigestQualityOfUnequiptLuckyCharm(), i = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("LuckyCharmSlot2UnlockStarLevel"), a = 0; a < n.length; a++)
                    if (0 == n[a] && r > 0 || n[a] > 0 && this.GetQualityByLuckyCharmId(n[a]) < r) {
                        if (1 == a && t.StarLevel < i) continue;
                        o.push(a + 1)
                    } return [o.length > 0, o]
            }, t.prototype.RefreshHeroLuckyCharmState = function() {
                var e = this;
                return p.DataCenter.Instance.GetDataById(u.UserFormation_Model, w.FormationIdType.MainLine).HeroIds.forEach(function(t) {
                    if (e.RefreshLuckyCharmBySidAndSlot(t)) return !0
                }), !1
            }, t.prototype.RefreshCoinPurchaseModule = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.BuyCoin).Data2[0].Items[1],
                    t = p.DataCenter.Instance.GetIntData(f.UserDataKey.BuyCoinCount1);
                return this.shouldRefreshTime() || t < e
            }, t.prototype.GetCoinPruchaseRemainderTime = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.BuyCoinTime).Data,
                    t = [];
                if (0 == e[0]) {
                    for (var n = 0; n < e.length - 1; n++) e[n] = e[n + 1];
                    e[e.length - 1] = 24
                }
                for (n = 0; n < e.length; n++) t[n] = e[n] * g.Etc.HourDuration;
                var o = y.RpcComponent.Instance.ServerTime,
                    r = o - I.TimeUtil.Get0ClockTs(o);
                for (n = 0; n < t.length; n++)
                    if (r < t[n]) return t[n] - r;
                return g.Etc.DayDuration
            }, t.prototype.shouldRefreshTime = function(e) {
                var t, n;
                e == f.CommonItemId.WarPoint ? (t = f.LevelParamType.BuyAllianceCityWarBattlePointTime, n = f.UserDataKey.BuyBattlePointTime) : (t = f.LevelParamType.BuyCoinTime, n = f.UserDataKey.BuyCoinTime);
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, t).Data,
                    r = [];
                if (0 == o[0]) {
                    for (var i = 0; i < o.length - 1; i++) o[i] = o[i + 1];
                    o[o.length - 1] = 24
                }
                for (i = 0; i < o.length; i++) r[i] = o[i] * g.Etc.HourDuration;
                var a = y.RpcComponent.Instance.ServerTime,
                    s = p.DataCenter.Instance.GetIntData(n);
                if (a - s >= g.Etc.DayDuration) return !0;
                var l = s - I.TimeUtil.Get0ClockTs(s),
                    c = a - I.TimeUtil.Get0ClockTs(a),
                    u = null,
                    m = null;
                for (i = 0; i < r.length && (null == u || null == m); i++) l < r[i] && null == u && (u = i), c < r[i] && null == m && (m = i);
                return u != m
            }, t.prototype.RefreshHolyFurnaceState = function() {
                return !!(this.RefreshHolyFurnaceButton5State() || this.RefreshHolyFurnaceButton1State() || this.RefreshHolyGiftState()) || p.DataCenter.Instance.GetItemCount(P.CommonItemId.SmelterSmeltCount) >= h.ConfigDataComponent.Instance.GetGlobalSettingByKey("SmelterSmeltFullCount")
            }, t.prototype.RefreshGemFurnaceState = function() {
                if (!m.default.Instance.IsGameModuleUnlock(2022)[0]) return !1;
                for (var e = [], t = 0; t < e.length; t++) {
                    var n = L.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, e[t]);
                    if (0 == n.Money && (0 == n.LimitCount || m.default.Instance.GetGiftBuyCount(e[t]) < n.LimitCount)) return !0
                }
                var o = L.ConfigDataComponent.Instance.GetConfigById(d.CardCommonSummon_Config, P.CardCommonSummonType.GemForgeSummon),
                    r = o.ConsumeItem[0].Items[0],
                    i = o.ConsumeItem[0].Items[1];
                return p.DataCenter.Instance.IsItemEnough(r, i)
            }, t.prototype.RefreshHolyFurnaceButton5State = function() {
                return p.DataCenter.Instance.GetItemCount(P.CommonItemId.SmelterSmeltMaterial) >= 5 * h.ConfigDataComponent.Instance.GetGlobalSettingByKey("SmelterSmeltMaterialCount")
            }, t.prototype.RefreshHolyFurnaceButton1State = function() {
                return !this.RefreshHolyFurnaceButton5State() && p.DataCenter.Instance.GetItemCount(P.CommonItemId.SmelterSmeltMaterial) >= h.ConfigDataComponent.Instance.GetGlobalSettingByKey("SmelterSmeltMaterialCount")
            }, t.prototype.RefreshHolyGiftState = function() {
                for (var e = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.SmelterSmelt).Data, t = 0; t < e.length; t++) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, e[t]);
                    if (0 == n.Money && m.default.Instance.GetGiftBuyCount(n.Id) < n.LimitCount) return !0
                }
                return !1
            }, t.prototype.RefreshOnlineRewardState = function() {
                var e = y.RpcComponent.Instance.ServerTime - p.DataCenter.Instance.GetIntData(f.UserDataKey.LastLogin) + p.DataCenter.Instance.OnLineDurationTime,
                    t = p.DataCenter.Instance.GetIntData(f.UserDataKey.OnlineRewardIndex) + 1,
                    n = b.ConfigCacheComponent.Instance.GetRequireTimeByIndex(t);
                if (null == n) return !1;
                var o = n - e;
                return !(o > 0 && (setTimeout(function() {
                    v.RedDotManager.Instance.RefreshRedDotNode(v.RedDotManager.Instance.RedDot.OnlineRewardNode)
                }, o), 1))
            }, t.prototype.RefreshHangUPFreeGiftPackState = function() {
                for (var e = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, P.LevelParamType.HangUpPack), t = 0; t < e.Data.length; t++) {
                    var n = e.Data[t],
                        o = h.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, n);
                    if ("" == o.PayId && m.default.Instance.GetGiftBuyCount(n) < o.LimitCount) return !0
                }
                return !1
            }, t.prototype.RefreshDailySignState = function() {
                var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.ClockInInfo);
                return !this.JudgeBit(e, 0) || this.JudgeBit(e, 0) && this.JudgeBit(e, 1) && !this.JudgeBit(e, 2)
            }, t.prototype.JudgeBit = function(e, t) {
                return 1 == (e >> t & 1)
            }, t.prototype.RefreshHeaderRedDot = function() {}, t.prototype.RefreshHeadIconRedDot = function() {
                for (var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.HeadIcon), t = h.ConfigDataComponent.Instance.GetArrayConfig(d.HeadIcon_Config), n = 0; n < t.length; n++) {
                    var o = t[n],
                        r = void 0;
                    if (1 == o.Type ? r = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, o.Id) : 2 == o.Type && (r = p.DataCenter.Instance.GetDataById(u.HeroSkin_Model, o.Id)), r && !this.isCacheValExist(l.Head, o.Id) && o.Id != e) return !0
                }
                return !1
            }, t.prototype.RefreshHeadFrameRedDot = function() {
                for (var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.HeadFrame), t = h.ConfigDataComponent.Instance.GetArrayConfig(d.HeadFrame_Config), n = 0; n < t.length; n++) {
                    var o = t[n].Id,
                        r = this.IsFrameOrTitleUnlock(100 * o + f.ConsumeItemType.HeadFrame);
                    if (!this.isCacheValExist(1, o) && o != e && r) return !0
                }
                return !1
            }, t.prototype.RefreshSetMagicCircleToggleNodeNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.SettingMagicCircleAndPet)[0] || !m.default.Instance.IsGameModuleOpen(f.GameModuleType.SettingMagicCircleAndPet)) return !1;
                for (var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.ShowMagicCircle), t = h.ConfigDataComponent.Instance.GetArrayConfig(d.MagicCircleBase_Config).filter(function(e) {
                        return m.default.Instance.IsModuleShowAvailable(P.ModuleStartTime.MagicCircle, e.Id)
                    }), n = 0; n < t.length; n++) {
                    var o = t[n].Id,
                        r = this.IsMagicCircleUnlock(o);
                    if (!this.isCacheValExist(l.MagicCircle, o) && o != e && r) return !0
                }
                return !1
            }, t.prototype.RefreshSetPetToggleNodeNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.SettingMagicCircleAndPet)[0] || !m.default.Instance.IsGameModuleOpen(f.GameModuleType.SettingMagicCircleAndPet)) return !1;
                for (var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.ShowPet), t = h.ConfigDataComponent.Instance.GetArrayConfig(d.PetBase_Config), n = 0; n < t.length; n++) {
                    var o = t[n].Id,
                        r = this.IsPetUnlock(o);
                    if (!this.isCacheValExist(l.Pet, o) && o != e && r) return !0
                }
                return !1
            }, t.prototype.RefreshChatWindowToggleNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.ChatWindowShow)[0] || !m.default.Instance.IsGameModuleOpen(f.GameModuleType.ChatWindowShow)) return !1;
                for (var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.ChatWindow), t = h.ConfigDataComponent.Instance.GetArrayConfig(d.ChatWindow_Config), n = 0; n < t.length; n++) {
                    var o = t[n].Id,
                        r = this.IsFrameOrTitleUnlock(100 * o + f.ConsumeItemType.ChatWindow);
                    if (!this.isCacheValExist(l.ChatWindow, o) && o != e && r) return !0
                }
                return !1
            }, t.prototype.RefreshHeadTitleRedDot = function() {
                for (var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.Title), t = h.ConfigDataComponent.Instance.GetArrayConfig(d.Title_Config), n = 0; n < t.length; n++) {
                    var o = t[n].Id,
                        r = this.IsFrameOrTitleUnlock(100 * o + f.ConsumeItemType.Title);
                    if (!this.isCacheValExist(l.Title, o) && o != e && r) return !0
                }
                return !1
            }, t.prototype.GetHeadIconRedDotCount = function() {
                for (var e = 0, t = p.DataCenter.Instance.GetIntData(f.UserDataKey.HeadIcon), n = h.ConfigDataComponent.Instance.GetArrayConfig(d.HeadIcon_Config), o = 0; o < n.length; o++) {
                    var r = n[o],
                        i = void 0;
                    1 == r.Type ? i = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, r.Id) : 2 == r.Type && (i = p.DataCenter.Instance.GetDataById(u.HeroSkin_Model, r.Id)), i && !this.isCacheValExist(l.Head, r.Id) && r.Id != t && e++
                }
                return e
            }, t.prototype.GetHeadFrameRedDotCount = function() {
                for (var e = 0, t = p.DataCenter.Instance.GetIntData(f.UserDataKey.HeadFrame), n = h.ConfigDataComponent.Instance.GetArrayConfig(d.HeadFrame_Config), o = 0; o < n.length; o++) {
                    var r = n[o].Id,
                        i = this.IsFrameOrTitleUnlock(100 * r + f.ConsumeItemType.HeadFrame);
                    !this.isCacheValExist(l.Frame, r) && r != t && i && e++
                }
                return e
            }, t.prototype.GetHeadTitleRedDotCount = function() {
                for (var e = 0, t = p.DataCenter.Instance.GetIntData(f.UserDataKey.Title), n = h.ConfigDataComponent.Instance.GetArrayConfig(d.Title_Config), o = 0; o < n.length; o++) {
                    var r = n[o].Id,
                        i = this.IsFrameOrTitleUnlock(100 * r + f.ConsumeItemType.Title);
                    !this.isCacheValExist(l.Title, r) && r != t && i && e++
                }
                return e
            }, t.prototype.GetChatWindowRedDotCount = function() {
                for (var e = 0, t = p.DataCenter.Instance.GetIntData(f.UserDataKey.ChatWindow), n = h.ConfigDataComponent.Instance.GetArrayConfig(d.ChatWindow_Config), o = 0; o < n.length; o++) {
                    var r = n[o].Id,
                        i = this.IsFrameOrTitleUnlock(100 * r + f.ConsumeItemType.ChatWindow);
                    !this.isCacheValExist(l.ChatWindow, r) && r != t && i && e++
                }
                return e
            }, t.prototype.IsFrameOrTitleUnlock = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserIcon_Model, e);
                if (null != t) {
                    if (t.Time > 0) {
                        var n = y.RpcComponent.Instance.ServerTime;
                        return !(t.Time < n)
                    }
                    return !0
                }
                return !1
            }, t.prototype.IsMagicCircleUnlock = function(e) {
                return !e || !!p.DataCenter.Instance.GetDataById(u.MagicCircle_Model, e)
            }, t.prototype.IsPetUnlock = function(e) {
                return !e || !!p.DataCenter.Instance.GetDataById(u.UserPet_Model, e)
            }, t.prototype.GetCacheKey = function(e, t) {
                switch (e) {
                    case l.Head:
                        return n.Cache_Key_Prefeix_HeadIcon + "_" + p.DataCenter.Instance.Uid + "_" + t;
                    case l.Frame:
                        return n.Cache_Key_Prefeix_HeadFrame + "_" + p.DataCenter.Instance.Uid + "_" + t;
                    case l.Title:
                        return n.Cache_Key_Prefeix_HeadTitle + "_" + p.DataCenter.Instance.Uid + "_" + t;
                    case l.ChatWindow:
                        return n.Cache_Key_Prefeix_ChatWindow + "_" + p.DataCenter.Instance.Uid + "_" + t;
                    case l.MagicCircle:
                        return n.Cache_Key_Prefeix_MagicCircle + "_" + p.DataCenter.Instance.Uid + "_" + t;
                    case l.Pet:
                        return n.Cache_Key_Prefeix_Pet + "_" + p.DataCenter.Instance.Uid + "_" + t
                }
            }, t.prototype.isCacheValExist = function(e, t) {
                return null != cc.sys.localStorage.getItem(this.GetCacheKey(e, t))
            }, t.prototype.RefreshBagLuckyCharmState = function() {
                var e = A.default.GetItem(A.GameRecordDefine.ShowBagPanelTabRedDot);
                if (e && JSON.parse(e)[x.Tab.Rune - 1] > 0) return !1;
                for (var t = {
                        green: 0,
                        blue: 0
                    }, n = {
                        green: 0,
                        blue: 0
                    }, o = 0, r = p.DataCenter.Instance.GetDataList(u.LuckyCharmEquip_Model); o < r.length; o++) {
                    var i = r[o];
                    if (!(i.OwnerId > 0)) {
                        var a = h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, i.ItemId);
                        2 === a.Quality ? (t.green++, n.green || (n.green = i.ItemId)) : 3 === a.Quality && (t.blue++, n.blue || (n.blue = i.ItemId))
                    }
                }
                var s = function(e) {
                        if (!e) return !1;
                        var t = L.ConfigDataComponent.Instance.GetConfigById(d.LuckyCharmEquip_Config, e).ComposeData[3].Items[1];
                        return L.DataCenter.Instance.GetItemCount(P.CommonItemId.Coin) >= t
                    },
                    l = function(e, t) {
                        return e > 5 && s(t)
                    };
                return l(t.green, n.green) || l(t.blue, n.blue)
            }, t.prototype.GetBigestQualityOfUnequiptLuckyCharm = function() {
                var e, t = 0;
                return p.DataCenter.Instance.GetDataList(u.LuckyCharmEquip_Model).forEach(function(n) {
                    null != n.OwnerId && 0 != n.OwnerId || (e = h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, n.ItemId), n.StarSkills && n.StarSkills.length > 0 ? n.StarSkills.length + e.Quality > t && (t = n.StarSkills.length + e.Quality) : e.Quality > t && (t = e.Quality))
                }), t
            }, t.prototype.GetQualityByLuckyCharmId = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, e),
                    n = h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, t.ItemId),
                    o = t.StarSkills && t.StarSkills.length > 0 ? t.StarSkills.length : 0;
                return n.Quality + o
            }, t.prototype.RefreshFirstChargeState = function(e) {
                var t, n = h.ConfigDataComponent.Instance.GetArrayConfig(d.FirstPay_Config),
                    o = [];
                null == e && (e = []), n.forEach(function(e) {
                    o.push(e)
                }), o.sort(function(e, t) {
                    var n = L.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, e.GiftId),
                        o = L.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, t.GiftId);
                    return n.VipPoint - o.VipPoint
                });
                for (var r = !1, i = 0; i < o.length; i++) null != (t = p.DataCenter.Instance.GetDataById(u.FirstPay_Model, o[i].Id)) && t.Time > 0 && Math.min(this.TimeToNowInDay(t.Time), 3) > t.Index ? (e[i] = 1, r = !0) : e[i] = 0;
                return r
            }, t.prototype.TimeToNowInDay = function(e) {
                var t = y.RpcComponent.Instance.ServerTime,
                    n = I.TimeUtil.Get0ClockTs(e);
                return Math.ceil((t - n) / g.Etc.DayDuration)
            }, t.prototype.RefreshHangUpDropExchangeState = function() {
                var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.LastHangUpActivityId);
                if (0 == e) return !1;
                for (var t = p.DataCenter.Instance.GetIntData(f.UserDataKey.HangUpActivityTime) + h.ConfigDataComponent.Instance.GetConfigById(d.HangUpDrop_Config, e).ExchangeDays * g.Etc.DayDuration - y.RpcComponent.Instance.ServerTime, n = !1, o = L.ConfigDataComponent.Instance.GetConfigById(d.HangUpDrop_Config, e), r = L.ConfigDataComponent.Instance.GetConfigById(d.ShopBase_Config, o.ShopId), i = L.DataCenter.Instance.GetDataById(u.UserShop_Model, r.Id), a = p.DataCenter.Instance.GetItemCount(o.Items[0].Items[0]), s = 0; s < r.Goods.length; s++) {
                    var l = L.ConfigDataComponent.Instance.GetConfigById(d.ShopItem_Config, r.Goods[s].Items[0]);
                    if (a > l.Price && (!i || !i.Goods[l.Id] || i.Goods[l.Id].Items[1] < l.LimitCount)) {
                        n = !0;
                        break
                    }
                }
                return t > 0 && n
            }, t.prototype.RefreshHangUpDropShopRedDot = function() {
                var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.HangUpActivityId);
                if (!e) return !1;
                var t = L.ConfigDataComponent.Instance.GetConfigById(d.HangUpDrop_Config, e);
                if (!t) return !1;
                for (var n = L.ConfigDataComponent.Instance.GetConfigById(d.ShopBase_Config, t.ShopId), o = L.DataCenter.Instance.GetDataById(u.UserShop_Model, n.Id), r = 0; r < n.Goods.length; r++) {
                    var i = L.ConfigDataComponent.Instance.GetConfigById(d.ShopItem_Config, n.Goods[r].Items[0]);
                    if (0 == i.Price && (!o || !o.Goods[i.Id] || o.Goods[i.Id].Items[1] < i.LimitCount)) return !0
                }
                return !1
            }, t.prototype.RefreshLevelGiftState = function() {
                var e = h.ConfigDataComponent.Instance.GetConfigById(d.LevelGift_Config, p.DataCenter.Instance.GetIntData(f.UserDataKey.LevelGiftNormalIndex) + 1),
                    t = null != e && e.Level <= p.DataCenter.Instance.GetIntData(f.UserDataKey.PlayerLevel),
                    n = h.ConfigDataComponent.Instance.GetConfigById(d.LevelGift_Config, p.DataCenter.Instance.GetIntData(f.UserDataKey.LevelGiftAdvanceIndex) + 1),
                    o = null != e && n.Level <= p.DataCenter.Instance.GetIntData(f.UserDataKey.PlayerLevel) && n.VipLevel <= p.DataCenter.Instance.GetIntData(f.UserDataKey.VipLevel);
                return t || o
            }, t.prototype.RefreshDailyChoose = function() {
                var e = this.RefreshDailyChooseState(),
                    t = this.RefreshDailySelectionHeroState(),
                    n = this.RefreshContinuousChargeNode();
                return e || t || n
            }, t.prototype.RefreshDailyChooseState = function() {
                var e = m.default.Instance.IsGameModuleOpen(f.GameModuleType.DailySelectionShow),
                    t = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.DailySelectionShow)[0];
                if (!e || !t) return !1;
                var n = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.DailySelection);
                return null != n && 0 == m.default.Instance.GetGiftBuyCount(n.PackIds[0])
            }, t.prototype.RefreshDailySelectionHeroState = function() {
                var e = m.default.Instance.IsGameModuleOpen(f.GameModuleType.DailySelectionHero),
                    t = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.DailySelectionHero)[0];
                if (!e || !t) return !1;
                var n = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.DailySelectionHero);
                return null != n && 0 == m.default.Instance.GetGiftBuyCount(n.PackIds[0])
            }, t.prototype.RefreshDailyRecommendState = function() {
                var e = m.default.Instance.IsGameModuleOpen(f.GameModuleType.DailyRecommendShow),
                    t = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.DailyRecommendShow)[0];
                if (!e || !t) return !1;
                var n = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.DailyRecommend);
                return null != n && 0 == m.default.Instance.GetGiftBuyCount(n.PackIds[0])
            }, t.prototype.RefreshDailyChargeState = function() {
                var e = A.default.GetItem(A.GameRecordDefine.DailyChargeRedDot);
                if (null == e) return !0;
                var t = Number.parseInt(e);
                return null == t || I.TimeUtil.Get0ClockTs(t) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) || !!this.RefreshDailyChargeButtonState() || this.RefreshDailyPayProgreeRewardNode()
            }, t.prototype.RefreshDailyChargeButtonState = function() {
                var e = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.DailyPay);
                if (null == e) return !1;
                var t = p.DataCenter.Instance.GetIntData(f.UserDataKey.DailyPay),
                    n = null != e.IntArray && 1 == e.IntArray[0],
                    o = h.ConfigDataComponent.Instance.GetConfigById(d.DailyPayRewards_Config, e.Phase);
                return t >= h.ConfigDataComponent.Instance.GetConfigById(d.PayCount_Config, o.CountId).Count && !n
            }, t.prototype.RefreshSevenDayState = function() {
                return !1
            }, t.prototype.RefreshLuckyStarState = function() {
                var e = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, P.GiftPackType.LuckyStar);
                return !!e && 1 != e.IntArray[1]
            }, t.prototype.RefreshActiveCommandState = function() {
                var e = p.DataCenter.Instance.GetDataById(u.WarToken_Model, f.WarTokenType.Active);
                if (null == e) return !1;
                for (var t = h.ConfigDataComponent.Instance.GetConfigById(d.WarTokenType_Config, f.WarTokenType.Active), n = t.TaskList.length, o = 0; o < n; o++) {
                    var r = t.TaskList[o],
                        i = h.ConfigDataComponent.Instance.GetConfigById(d.WarTokenTask_Config, r);
                    if (e.Point >= i.RequirePoint && e.RewardIndex < o + 1) return !0
                }
                return !1
            }, t.prototype.RefreshSuperFundState = function() {
                return this.RefreshMallNewFund(f.GiftPackType.NewGoodFund, A.GameRecordDefine.SuperFundRedDot)
            }, t.prototype.RefreshRespectFundState = function() {
                return this.RefreshMallNewFund(f.GiftPackType.NewGoodFund2, A.GameRecordDefine.RespectFundRedDot)
            }, t.prototype.RefreshChaosFundState = function() {
                return this.CheckMallFundState(2, A.GameRecordDefine.ChaosRedDot)
            }, t.prototype.RefreshCheapFundState = function() {
                return this.CheckMallFundState(3, A.GameRecordDefine.CheapRedDot)
            }, t.prototype.CheckMallFundState = function(e, t) {
                var n = L.ConfigDataComponent.Instance.GetArrayConfig(d.GoodFund_Config);
                if (!L.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.GoodFund)) return !1;
                for (var o = L.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.GoodFund).Phase, r = [], i = 0; i < n.length; i++) n[i].Phase == o && r.push(n[i].Type);
                if (!r.includes(e + 1)) return !1;
                var a = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.GoodFund);
                if (null == a || !m.default.Instance.IsGameModuleUnlock(P.GameModuleType.GoodFund)[0]) return !1;
                var s = a.PackIds && a.PackIds[e] ? a.PackIds[e] : 0,
                    l = 0;
                s && (l = m.default.Instance.GetGiftBuyCount(s));
                var c = Math.floor((y.RpcComponent.Instance.ServerTime - a.RefreshTime) / g.Etc.DayDuration),
                    _ = a.IntArray && a.IntArray[e] ? a.IntArray[e] - 1 : -1,
                    C = l > 0 && c > _,
                    v = c >= h.ConfigDataComponent.Instance.GetGlobalSettingByKey("MallSuperFundRedDotDays"),
                    b = A.default.GetItem(t),
                    S = !0;
                return null != b && (S = I.TimeUtil.Get0ClockTs(Number.parseInt(b)) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)), C || 0 == l && v && S
            }, t.prototype.RefreshMallNewFund = function(e, t) {
                var n = L.ConfigDataComponent.Instance.GetConfigById(d.MallActivity_Config, e),
                    o = L.DataCenter.Instance.GetDataById(u.MallActivity_Model, e);
                if (!o || !m.default.Instance.IsGameModuleUnlock(n.UnLock)[0] || !m.default.Instance.IsGameModuleUnlock(n.Show)[0]) return !1;
                var r = o.PackIds && o.PackIds[0] ? o.PackIds[0] : 0,
                    i = 0;
                r && (i = m.default.Instance.GetGiftBuyCount(r));
                var a = Math.floor((y.RpcComponent.Instance.ServerTime - o.RefreshTime) / g.Etc.DayDuration),
                    s = o.IntArray && o.IntArray[0] ? o.IntArray[0] - 1 : -1,
                    l = i > 0 && a > s,
                    c = a >= h.ConfigDataComponent.Instance.GetGlobalSettingByKey("MallSuperFundRedDotDays"),
                    p = A.default.GetItem(t),
                    f = !0;
                return null != p && (f = I.TimeUtil.Get0ClockTs(Number.parseInt(p)) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)), l || 0 == i && c && f
            }, t.prototype.RefreshGrowthFundState = function() {
                return this.CheckGrowthFundStateByType(f.GiftPackType.GrowUpFund)
            }, t.prototype.RefreshGrowthWishCall = function() {
                return this.CheckGrowthFundStateByType(f.GiftPackType.GrowUpWishCall)
            }, t.prototype.RefreshGrowthSummonChaos = function() {
                return this.CheckGrowthFundStateByType(f.GiftPackType.GrowUpSummonChaos)
            }, t.prototype.RefreshGrowthPersonailty = function() {
                return this.CheckGrowthFundStateByType(f.GiftPackType.GrowUpPersonality)
            }, t.prototype.RefreshGrowthSummonPerson = function() {
                return this.CheckGrowthFundStateByType(f.GiftPackType.GrowUpSummonPerson)
            }, t.prototype.RefreshGrowthPersonailtyLR = function() {
                return -1 != L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.GrowUpFundType).Data.indexOf(f.GiftPackType.GrowUpLRPersonality) && this.CheckGrowthFundStateByType(f.GiftPackType.GrowUpLRPersonality)
            }, t.prototype.RefreshGrowthWishCallLR = function() {
                return -1 != L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.GrowUpFundType).Data.indexOf(f.GiftPackType.GrowUpLRHero) && this.CheckGrowthFundStateByType(f.GiftPackType.GrowUpLRHero)
            }, t.prototype.CheckGrowthFundStateByType = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, e);
                if (null == t) return !1;
                if (!L.ConfigDataComponent.Instance.GetConfigById(d.MallActivity_Config, e)) return !1;
                for (var n = p.DataCenter.Instance.GetIntData(f.UserDataKey.PlayerLevel), o = n >= h.ConfigDataComponent.Instance.GetGlobalSettingByKey("MallGrowFundRedDotLevel"), r = t.PackIds[t.IntArray[1] - 1], i = m.default.Instance.GetGiftBuyCount(r), a = t.IntArray[0], s = b.ConfigCacheComponent.Instance.GetGrowUpFundConfigs(t.IntArray[1], t.Phase, e), l = I.TimeUtil.Get0ClockTs(p.DataCenter.Instance.GetIntData(f.UserDataKey.LastLogin)) != I.TimeUtil.Get0ClockTs(), c = !1, y = 0; y < s.length; y++) {
                    var g = s[y];
                    if (n >= g.Level && g.Id > a) {
                        c = !0;
                        break
                    }
                }
                return i > 0 && c || 0 == i && o && l
            }, t.prototype.RefreshFeedbackGiftState = function() {
                var e = p.DataCenter.Instance.GetTempData("feedBack_receivedData");
                if (null == e) return !1;
                for (var t = 0; t < 32; t++)
                    if (1 == (e >> 2 * t & 1) && 0 == (e >> 2 * t + 1 & 1)) return !0;
                return !1
            }, t.prototype.RefreshLimitTimePurchaseState = function(e) {
                var t;
                if (e) t = e.Value1;
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame1);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.GiftPack && (t = p.DataCenter.Instance.ActivityConfigs[r]._id)
                    }
                }
                if (null == t || null == p.DataCenter.Instance.ActivityConfigs[t]) return !1;
                var i, a = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    s = p.DataCenter.Instance.ActivityConfigs[t],
                    l = !1;
                if (null != s && null != a) {
                    var c = s;
                    c._Packs && c._Packs.forEach(function(e) {
                        null != e && (0 == e.Money || null == e.Money) && (i = null == a.Packs[e.Id] ? 0 : a.Packs[e.Id].Items[0], e.LimitCount > i) && (l = !0)
                    })
                }
                return l
            }, t.prototype.RefreshCarnivalState = function(e) {
                var t, n = p.DataCenter.Instance.Zones[p.DataCenter.Zone];
                if (null == n) return !1;
                if (null == (t = e ? p.DataCenter.Instance.ActivityConfigs[e.Value1] : this.GetCarnivalConfig())) return !1;
                if (t.CustomPart && null != t.CustomPart.ActivityType && 0 != t.CustomPart.ActivityType) return this.RefreshNewCarnivalState(t);
                var o = this.GetCarnivalGiftData(t),
                    r = this.GetCarnivalTaskData(t),
                    i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                if (null == i) return !1;
                for (var a = this.RewardGiftDays(o, i), s = this.RewardTaskDays(r, 1e4 * t._id, []), l = Math.ceil((y.RpcComponent.Instance.ServerTime - (n.OpenTime + (t.Common.RequireOpenDays - 1) * g.Etc.DayDuration)) / g.Etc.DayDuration), c = 0; c < s.length; c++)
                    if (s[c] < l) return !0;
                for (c = 0; c < a[0].length; c++)
                    if (a[0][c] < l) return !0;
                var d = A.default.GetItem(A.GameRecordDefine.CarnivalRedDot);
                if (null != d) {
                    var h = Number.parseInt(d);
                    if (null == h || I.TimeUtil.Get0ClockTs(h) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)) return a[1]
                }
                return !1
            }, t.prototype.RefreshNewCarnivalState = function(e) {
                for (var t = e._Tasks, n = m.default.Instance.ComputeActivitStartTime(e.Common), o = Math.ceil((y.RpcComponent.Instance.ServerTime - n) / g.Etc.DayDuration), r = 0; r < t.length; r++) {
                    var i = t[r],
                        a = p.DataCenter.Instance.GetDataById(u.UserTask_Model, i.Id + 1e4 * e._id),
                        s = Math.floor(i.Id % 1e3 / 100),
                        l = null == a || null == a.Progress ? 0 : a.Progress;
                    if (a && !a.IsCompleted && l >= i.TotalCount && s <= o) return !0
                }
                var c = e._Packs,
                    d = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e._id);
                for (r = 0; r < c.length; r++) {
                    var h = c[r],
                        f = Math.floor(h.Id % 1e3 / 100);
                    if (d && d.Packs[h.Id] && h.Money <= 0 && d.Packs[h.Id].Items[0] < h.LimitCount && f <= o) return !0
                }
                var I = e.__Rewards,
                    _ = p.DataCenter.Instance.GetItemCount(e.CustomPart.ProgressItemId),
                    C = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e._id);
                for (r = 0;
                    (I[r] && I[r].Progress) <= _; r++)
                    if (-1 == C.IntArray.indexOf(I[r].Id)) return !0;
                return !1
            }, t.prototype.GetActivityFrame = function(e) {
                var t = [];
                if (null == p.DataCenter.Instance.ActivityFrameMap) return null;
                for (var n in p.DataCenter.Instance.ActivityFrameMap) p.DataCenter.Instance.ActivityConfigs[n].Common.Type == e && (t = p.DataCenter.Instance.ActivityFrameMap[n]);
                return t
            }, t.prototype.GetCarnivalConfig = function() {
                var e = this.GetActivityFrame(P.ActivityType.Frame1);
                if (null == e) return null;
                for (var t = 0; t < e.length; t++) {
                    var n = e[t];
                    if (p.DataCenter.Instance.ActivityConfigs[n].Common.Type == P.ActivityType.Carnival) return p.DataCenter.Instance.ActivityConfigs[n]
                }
                return null
            }, t.prototype.GetCarnivalGiftData = function(e) {
                var t = [];
                return null == p.DataCenter.Instance.GetTempData("OpenServer_CarnivalGifts") ? (e._Packs.forEach(function(e) {
                    var n = Math.floor(e.Id / 100) - 1;
                    null == t[n] && (t[n] = []), t[n].push(e)
                }), p.DataCenter.Instance.SetTempData("OpenServer_CarnivalGifts", t)) : t = p.DataCenter.Instance.GetTempData("OpenServer_CarnivalGifts"), t
            }, t.prototype.GetCarnivalTaskData = function(e) {
                var t = [];
                return null == p.DataCenter.Instance.GetTempData("OpenServer_CarnivalTasks") ? (e._Tasks.forEach(function(e) {
                    var n = Math.floor(e.Id / 100) - 1;
                    null == t[n] && (t[n] = []), t[n].push(e)
                }), p.DataCenter.Instance.SetTempData("OpenServer_CarnivalTasks", t)) : t = p.DataCenter.Instance.GetTempData("OpenServer_CarnivalTasks"), t
            }, t.prototype.RewardTaskDays = function(e, t, n, o) {
                void 0 === o && (o = 0);
                for (var r, i = [], a = 0; a < e.length; a++) {
                    var s = !0;
                    if (e[a])
                        for (var l = 0; l < e[a].length; l++) {
                            var c = e[a][l];
                            null != (r = p.DataCenter.Instance.GetDataById(u.UserTask_Model, t + c.Id)) && null != c && r.Progress >= c.TotalCount && !r.IsCompleted && (s && (i.push(a), s = !1), a <= o && n.push(e[a][l].Id))
                        }
                }
                return i
            }, t.prototype.RewardGiftDays = function(e, t) {
                for (var n, o = [], r = !1, i = 0; i < e.length; i++)
                    for (var a = 0; a < e[i].length; a++)(null == t.Packs[e[i][a].Id] || e[i][a].LimitCount > t.Packs[e[i][a].Id].Items[0]) && (r = !0, 0 == e[i][a].Money && n != i && (o.push(i), n = i));
                return [o, r]
            }, t.prototype.RefreshLimitTimeTaskState = function(e) {
                var t, n;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var o = this.GetActivityFrame(P.ActivityType.Frame1);
                    if (null == o) return !1;
                    for (var r = 0; r < o.length; r++) {
                        var i = o[r];
                        if (p.DataCenter.Instance.ActivityConfigs[i].Common.Type == P.ActivityType.LimitTimeTask) {
                            t = p.DataCenter.Instance.ActivityConfigs[i];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                for (r = 0; r < t._Tasks.length; r++) {
                    var a = t._Tasks[r];
                    if (!(null == (n = p.DataCenter.Instance.GetDataById(u.UserTask_Model, a.Id + 1e4 * t._id)) || n.Progress < a.TotalCount || n.IsCompleted)) return !0
                }
                return !1
            }, t.prototype.RefreshHeroTestState = function(e) {
                var t;
                if (null == e || e.Value1 <= 0) {
                    var n = this.GetActivityFrame(P.ActivityType.Frame1);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.HeroTest) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                } else t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (null == t) return !1;
                if (this.RefreshHeroTestTaskState({
                        Value1: t._id
                    })) return !0;
                var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                if (null == i.IntArray[0] || 0 == i.IntArray[0]) return null != e && (e.Value1 = 100), !0;
                var a = t.Rewards[0].RequireDamage;
                if (i && i.IntValue >= a) {
                    var s = i && i.IntArray && i.IntArray[1] ? i.IntArray[1] : 0,
                        l = m.default.Instance.ComputeActivitStartTime(t.Common);
                    if (s < I.TimeUtil.GetDiffDays(l, y.RpcComponent.Instance.ServerTime, !0) + 1) return !0
                }
                return !1
            }, t.prototype.RefreshHeroTestTaskState = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame1);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.HeroTest) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    a = !1;
                return t.Tasks.forEach(function(e) {
                    var t = 0;
                    switch (e.Condition) {
                        case 1:
                            i.IntArray.length >= 1 && (t = i.IntArray[0]);
                            break;
                        case 2:
                            t = i.IntValue;
                            break;
                        case 3:
                            i.IntArray.length >= 3 && (t = i.IntArray[2])
                    }
                    if (t >= e.TotalCount && !i.IntMap[e.Id]) return a = !0, !0
                }), a
            }, t.prototype.RefreshFatePrayState = function(e) {
                var t;
                if (e) t = e.Value1;
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame1);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.HeroTest) {
                            t = r;
                            break
                        }
                    }
                }
                if (null == t) return !1;
                var i = p.DataCenter.Instance.ActivityConfigs[t],
                    a = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, i._id);
                if (!a) return !1;
                var s = a.IntArray.length;
                if (null != i.CustomPart.TicketCounts && s < i.CustomPart.TicketCounts.length) {
                    var l = i.CustomPart.TicketCounts[s];
                    if (p.DataCenter.Instance.IsItemEnough(i.CustomPart.TicketId, l)) return !0
                }
                return !1
            }, t.prototype.RefreshUpgradeStarState = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.UpgradeStar) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                var i = A.default.GetItem(A.GameRecordDefine.UpgradeStarRedDot);
                if (null == i) return !0;
                var a = Number.parseInt(i);
                if (null == a || I.TimeUtil.Get0ClockTs(a) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)) return !0;
                var s = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, t.CustomPart.HeroId);
                if (null == s) return !1;
                if (null == p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id)) return !1;
                var l = s.MaxStar,
                    c = null == s.OptionalUpgradeStar ? 0 : s.OptionalUpgradeStar;
                for (o = 0; o < t.Rewards.length; o++)
                    if (!(t.Rewards[o].StarLevel > l) && 0 == (c >> o & 1)) return !0;
                return !1
            }, t.prototype.RefreshWishCallNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.WishSummon) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                if (this.JudgeIfTaskCompleted(t._id, t._Tasks)) return !0;
                if (null == t.__SummonType || null == t.__SummonType[0]) return !1;
                var i = t.__SummonType[0].Id,
                    a = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).Summons[i];
                return null == a ? t.__SummonType[0].StartFreeCount > 0 : a.FreeCount > 0
            }, t.prototype.RefreshWishCallNewNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.NewHeroSummon) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                if (null == t.__SummonType || null == t.__SummonType[0]) return !1;
                if (this.JudgeIfTaskCompleted(t._id, t._Tasks)) return !0;
                var i = t.__SummonType[0].Id,
                    a = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).Summons[i];
                return null == a ? t.__SummonType[0].StartFreeCount > 0 : !!this.RefreshHeroSummonTrialHeroNode({
                    Value1: t._id
                }) || a.FreeCount > 0
            }, t.prototype.JudgeIfTaskCompleted = function(e, t) {
                var n;
                if (t && t.length > 0) {
                    for (var o = void 0, r = 0; r < t.length; r++)
                        if (!(n = L.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * e + t[r].Id)) || !n.IsCompleted) {
                            o = t[r].TotalCount;
                            break
                        } if (o || (o = t[t.length - 1].TotalCount), n.Progress >= o && !n.IsCompleted) return !0
                }
                return !1
            }, t.prototype.RefreshEightDaysNode = function(e) {
                if (this.RefreshEightDaysPayToggle(e)) return !0;
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    r = Math.min(m.default.Instance.ComputeContiuousTime(n.Common), 8);
                return o.IntArray[0] < r
            }, t.prototype.RefreshEightDaysPayToggle = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    r = Math.min(m.default.Instance.ComputeContiuousTime(n.Common), 8),
                    i = o.IntArray[1] >= r;
                if (p.DataCenter.Instance.GetIntData(f.UserDataKey.TotalPay) - o.IntValue >= n.CustomPart.TotalPay) {
                    if (!i) return !0
                } else {
                    var a = A.default.GetItem(A.GameRecordDefine.EightDaysPayReddot),
                        s = null == a || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(a));
                    if (!i && s) return !0
                }
                return !1
            }, t.prototype.RefreshVIPNode = function() {
                for (var e = p.DataCenter.Instance.GetIntData(P.UserDataKey.VipLevel), t = 1; t <= e; t++) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(d.VipLevel_Config, t);
                    if (m.default.Instance.GetGiftBuyCount(n.PackIds[0]) <= 0) return !0;
                    if (n.PackageItems.length > 0) {
                        var o = L.DataCenter.Instance.GetIntData(P.UserDataKey.VipGift);
                        if (1 != (o = o >> t - 1 & 1)) return !0
                    }
                }
            }, t.prototype.RefreshMazeExplore = function(e) {
                return !!this.RefreshMazeExploreTimesBtnNode(e) || !!this.RefreshMazeExploreFindGiftBtnNode(e) || !!this.RefreshMazeExploreGetMoreBtnNode(e)
            }, t.prototype.RefreshMazeExploreTimesBtnNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.MazeExplore) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                for (var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), a = 0; a < t.Tasks.length; a++) {
                    var s = t.Tasks[a].Id;
                    if (!i.IntMap[s] && i.IntValue >= t.Tasks[a].TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshMazeExploreFindGiftBtnNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.MazeExplore) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                var i = A.default.GetItem(A.GameRecordDefine.MazeExploreRedDot);
                if (null == i) return !0;
                var a = Number.parseInt(i);
                return null == a || I.TimeUtil.Get0ClockTs(a) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)
            }, t.prototype.RefreshMazeExploreGetMoreBtnNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.MazeExplore) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                for (var i = 0; i < t._Tasks.length; i++) {
                    var a = t._id * g.Etc.Multiplier + t._Tasks[i].Id,
                        s = p.DataCenter.Instance.GetDataById(u.UserTask_Model, a);
                    if (s && !s.IsCompleted && s.Progress >= t._Tasks[i].TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshHappyTurnStartNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.HappyTurn) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                return null != t && p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).IntArray[0] < t.CustomPart.Count
            }, t.prototype.RefreshSevenDayWarTokenNode = function(e) {
                var t;
                if (null == e) {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.ActiveWarToken) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                } else null != e.Value1 && (t = p.DataCenter.Instance.ActivityConfigs[e.Value1]);
                if (null == t) return !1;
                var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    a = y.RpcComponent.Instance.ServerTime - I.TimeUtil.Get0ClockTs(t.Common.StartTime),
                    s = Math.ceil(a / g.Etc.DayDuration),
                    l = i.IntArray[0] > 0,
                    c = i.IntArray[1],
                    d = i.IntArray[2];
                return c < s || l && d < s
            }, t.prototype.RefreshInfiniteSummonNode = function() {
                var e = L.DataCenter.Instance.GetIntData(P.UserDataKey.InfiniteTenSummonCount),
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, P.LevelParamType.InfiniteTenSummon).Data2[e].Items[0];
                if (!m.default.Instance.GetGiftBuyCount(t)) {
                    var n = A.default.GetItem(A.GameRecordDefine.InfiniteSummonRedDot);
                    if (null == n || 0 == Number.parseInt(n)) return !0
                }
                return !1
            }, t.prototype.RefreshLetterDeveloperReceiveBtnNode = function() {
                var e = !0,
                    t = p.DataCenter.Instance.GetIntData(f.UserDataKey.LetterFromDeveloperTime),
                    n = p.DataCenter.Instance.GetIntData(P.UserDataKey.LetterFromDeveloper),
                    o = I.TimeUtil.Get0ClockTs(t),
                    r = y.RpcComponent.Instance.ServerTime,
                    i = I.TimeUtil.Get0ClockTs(r),
                    a = Math.round((i - o) / g.Etc.DayDuration);
                if (t && t > 0)
                    for (var s = 0; s < 3; s++)
                        if (s <= a && !(n >> s & 1)) {
                            e = !1;
                            break
                        } return e
            }, t.prototype.RefreshIdleLetterDeveloperNode = function() {
                var e = L.DataCenter.Instance.GetIntData(f.UserDataKey.LetterFromDeveloperTime);
                if (e <= 0) return !1;
                var t = L.RpcComponent.Instance.ServerTime;
                if (e + 7 * g.Etc.DayDuration - t <= 0) return !1;
                for (var n = L.DataCenter.Instance.GetIntData(f.UserDataKey.LetterFromDeveloper), o = !0, r = 0; r < 3; r++) 1 == (n >> r & 1) || (o = !1);
                if (o) return !1;
                var i = this.RefreshLetterDeveloperNode(0),
                    a = this.RefreshLetterDeveloperNode(1),
                    s = this.RefreshLetterDeveloperNode(2);
                return i || a || s
            }, t.prototype.RefreshLetterDeveloperNode1 = function() {
                return this.RefreshLetterDeveloperNode(0)
            }, t.prototype.RefreshLetterDeveloperNode2 = function() {
                return this.RefreshLetterDeveloperNode(1)
            }, t.prototype.RefreshLetterDeveloperNode3 = function() {
                return this.RefreshLetterDeveloperNode(2)
            }, t.prototype.RefreshLetterDeveloperNode = function(e) {
                var t = p.DataCenter.Instance.GetIntData(f.UserDataKey.LetterFromDeveloperTime),
                    n = p.DataCenter.Instance.GetIntData(P.UserDataKey.LetterFromDeveloper);
                if (t && t > 0) {
                    var o = I.TimeUtil.Get0ClockTs(t),
                        r = y.RpcComponent.Instance.ServerTime,
                        i = I.TimeUtil.Get0ClockTs(r);
                    if (e <= Math.floor((i - o) / g.Etc.DayDuration)) return 0 == (n >> e & 1)
                }
                return !1
            }, t.prototype.RefreshLevelPassRewardNode = function() {
                var e = p.DataCenter.Instance.GetIntData(P.UserDataKey.MainLineProgress),
                    t = b.ConfigCacheComponent.Instance.GetIndexOfMainLineMapIds(e);
                if (0 == t) return !1;
                var n = t - 1,
                    o = b.ConfigCacheComponent.Instance.GetMapIdByMainLineIndex(n),
                    r = b.ConfigCacheComponent.Instance.GetRwdIdByMapId(o);
                if (!r) return !1;
                var i = p.DataCenter.Instance.GetIntData(P.UserDataKey.AdventureRewardIndex);
                return r[0] > 0 && r[0] == i && (r = b.ConfigCacheComponent.Instance.GetRwdIdByMapId(e)), !!r && (r[0] > i || r[1] > i + 1)
            }, t.prototype.RefreshTopicActivityState = function() {
                return this.ComputeActivityFrameRedDot(P.ActivityType.Frame3)
            }, t.prototype.RefreshOpenServerActivityState = function() {
                return this.ComputeActivityFrameRedDot(P.ActivityType.Frame1)
            }, t.prototype.RefreshTimeLimitedActivityState = function() {
                return this.ComputeActivityFrameRedDot(P.ActivityType.Frame2) || !1
            }, t.prototype.RefreshValentineActivityState = function() {
                return this.ComputeActivityFrameRedDot(P.ActivityType.Frame4)
            }, t.prototype.ComputeActivityFrameRedDot = function(e) {
                var t = this.GetActivityFrame(e);
                if (null == t) return !1;
                for (var n = 0; n < t.length; n++) {
                    var o = t[n],
                        r = p.DataCenter.Instance.ActivityConfigs[o];
                    if (null != r) {
                        var i = T.ActivityData.GetTopicActivityTypeToRedDot(r.Common.Type);
                        if (i && i.callBackFunc && i.callBackFunc({
                                Value1: r._id
                            })) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshTimeLimitedActivityFrameState = function() {
                if (null == p.DataCenter.Instance.ActivityFrameMap || null == p.DataCenter.Instance.ActivityConfigs) return !1;
                for (var e in p.DataCenter.Instance.ActivityFrameMap) {
                    var t = p.DataCenter.Instance.ActivityFrameMap[e];
                    if (null != t)
                        for (var n = 0; n < t.length; n++) {
                            var o = t[n];
                            if (null != o) {
                                var r = p.DataCenter.Instance.ActivityConfigs[o];
                                if (null == r) continue;
                                var i = T.ActivityData.GetTopicActivityTypeToRedDot(r.Common.Type);
                                if (i && i.callBackFunc && i.callBackFunc({
                                        Value1: r._id
                                    })) return !0
                            }
                        }
                }
                return !1
            }, t.prototype.RefreshSailNodeState = function(e) {
                var t = this.RefreshSailFlyNodeState(e);
                return t || (t = this.RefreshSailGiftNodeState(e)) || !1
            }, t.prototype.RefreshSailFlyNodeState = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = n.__CommonSummon[0] && n.__CommonSummon[0].ConsumeItem[0] ? n.__CommonSummon[0].ConsumeItem[0].Items[0] : null;
                if (!o) return !1;
                var r = n.CustomPart.ItemCount;
                return !!p.DataCenter.Instance.IsItemEnough(o, r)
            }, t.prototype.RefreshSailGiftNodeState = function(e) {
                for (var t = e.Value1, n = p.DataCenter.Instance.ActivityConfigs[t], o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t), r = 0; r < n._Packs.length; r++) {
                    var i = n._Packs[r];
                    if (!(i.Money || o.Packs[i.Id] && o.Packs[i.Id].Items[0])) return !0
                }
                return !1
            }, t.prototype.RefreshHeroListRecommond = function() {
                var e = p.DataCenter.Instance.Zones[p.DataCenter.Zone],
                    t = I.TimeUtil.Get0ClockTs(e.OpenTime);
                if (I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) - t >= 6048e5) return !1;
                var n = A.default.GetItem(A.GameRecordDefine.HeroListRecommond);
                return !n || (n = Number.parseInt(n), I.TimeUtil.Get0ClockTs(n) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime))
            }, t.prototype.RefreshAllUserImpactRankGiftNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.AllUserImpactRank) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                for (var i = 0; i < t._Tasks.length; i++) {
                    var a = t._id * g.Etc.Multiplier + t._Tasks[i].Id,
                        s = p.DataCenter.Instance.GetDataById(u.UserTask_Model, a);
                    if (s && !s.IsCompleted && s.Progress >= t._Tasks[i].TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshOptionalUpgradeStarState = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        if (p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.OptionalUpgradeStar) {
                            t = p.DataCenter.Instance.ActivityConfigs[r];
                            break
                        }
                    }
                }
                if (null == t) return !1;
                var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                if (null == i) return !1;
                if (null == i.IntArray[0] || 0 == i.IntArray[0]) return !0;
                var a = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, i.IntValue);
                if (null == a) return !1;
                var s = a.MaxStar,
                    l = null == a.OptionalUpgradeStar ? 0 : a.OptionalUpgradeStar;
                for (o = 0; o < t.Rewards.length; o++)
                    if (!(t.Rewards[o].StarLevel > s) && 0 == (l >> o & 1)) return !0;
                return !1
            }, t.prototype.ComputeMallGiftPack = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.MallActivity_Model, e);
                if (null == t || null == t.PackIds) return !1;
                for (var n = 0; n < t.PackIds.length; n++) {
                    var o = t.PackIds[n];
                    if (o) {
                        var r = h.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, o);
                        if (r && 0 == r.Money && r.LimitCount > m.default.Instance.GetGiftBuyCount(o)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshHeroGiftState = function() {
                return !!this.GetMallPageIsOpen(f.GiftPackType.HeroGift) && m.default.Instance.IsGameModuleUnlock(f.GameModuleType.HeroGift)[0] && this.ComputeMallGiftPack(f.GiftPackType.HeroGift)
            }, t.prototype.RefreshGrowGiftState = function() {
                return !!this.GetMallPageIsOpen(f.GiftPackType.GrowUpGift) && m.default.Instance.IsGameModuleUnlock(f.GameModuleType.GrowUpGift)[0] && this.ComputeMallGiftPack(f.GiftPackType.GrowUpGift)
            }, t.prototype.RefreshLegendGiftState = function() {
                return !!this.GetMallPageIsOpen(f.GiftPackType.LegendGift) && m.default.Instance.IsGameModuleUnlock(f.GameModuleType.LegendGift)[0] && this.ComputeMallGiftPack(f.GiftPackType.LegendGift)
            }, t.prototype.RefreshLegendGift1State = function() {
                return !!this.GetMallPageIsOpen(f.GiftPackType.LegendGift2) && m.default.Instance.IsGameModuleUnlock(f.GameModuleType.LegendGift2)[0] && this.ComputeMallGiftPack(f.GiftPackType.LegendGift2)
            }, t.prototype.RefreshLegendGift2State = function() {
                return !!this.GetMallPageIsOpen(f.GiftPackType.LegendGift3) && m.default.Instance.IsGameModuleUnlock(f.GameModuleType.LegendGift3)[0] && this.ComputeMallGiftPack(f.GiftPackType.LegendGift3)
            }, t.prototype.RefreshLegendGift3State = function() {
                return !!this.GetMallPageIsOpen(f.GiftPackType.LegendGift4) && m.default.Instance.IsGameModuleUnlock(f.GameModuleType.LegendGift4)[0] && this.ComputeMallGiftPack(f.GiftPackType.LegendGift4)
            }, t.prototype.RefreshLegendGift4State = function() {
                return !!this.GetMallPageIsOpen(f.GiftPackType.LegendGift5) && m.default.Instance.IsGameModuleUnlock(f.GameModuleType.LegendGift5)[0] && this.ComputeMallGiftPack(f.GiftPackType.LegendGift5)
            }, t.prototype.RefreshFavorGiftState = function() {
                return !!this.GetMallPageIsOpen(f.GiftPackType.FavorGift) && m.default.Instance.IsGameModuleUnlock(f.GameModuleType.FavorGift)[0] && this.ComputeMallGiftPack(f.GiftPackType.FavorGift)
            }, t.prototype.GetMallPageIsOpen = function(e) {
                for (var t = h.ConfigDataComponent.Instance.GetArrayConfig(d.MallPage_Config), n = 0; n < t.length; n++)
                    if (-1 != t[n].MallActivityIds.indexOf(e)) return !0;
                return !1
            }, t.prototype.RefreshElementTrialNode = function(e) {
                var t = [];
                if (e) {
                    var n = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                    t.push(n)
                } else {
                    var o = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == o) return !1;
                    for (var r = 0; r < o.length; r++) {
                        var i = o[r];
                        p.DataCenter.Instance.ActivityConfigs[i].Common.Type == P.ActivityType.ElementTest && (n = p.DataCenter.Instance.ActivityConfigs[i], t.push(n))
                    }
                }
                if (0 == t.length) return !1;
                var a = "ElementTrialLastEnterTime_{0}";
                a = a.Fmt(e.Value1);
                var s = cc.sys.localStorage.getItem(a);
                if (null == s || "null" == s) return !0;
                for (var l = !0, c = 0; c < t.length; c++) {
                    var d = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t[c]._id),
                        h = t[c].Maps.length;
                    if (d.IntValue != t[c].Maps[h - 1].Id) {
                        l = !1;
                        break
                    }
                }
                if (l) return !1;
                var f = Number.parseInt(s);
                return I.TimeUtil.Get0ClockTs(f) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)
            }, t.prototype.RefreshPersonalityCallNode = function(e) {
                var t;
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.Personality)[0]) return !1;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.ElementTest && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                if (t.Common.IsZoneOpen) {
                    if (y.RpcComponent.Instance.ServerTime > m.default.Instance.ComputeDeadTime(t.Common)) return !1
                } else if (y.RpcComponent.Instance.ServerTime > m.default.Instance.ComputeDeadTime(t.Common)) return !1;
                var i, a = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).Summons[t.__SummonType[0].Id];
                if (null == a) {
                    if (t.__SummonType[0].StartFreeCount > 0) return !0
                } else if (a.FreeCount > 0) return !0;
                for (o = 0; o < t._Tasks.length; o++)
                    if (!(i = p.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * t._id + t._Tasks[o].Id)).IsCompleted && t._Tasks[o].TotalCount <= i.Progress) return !0;
                return !1
            }, t.prototype.RefreshRebateSummonNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.RebateSummon && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                var i = A.default.GetItem(A.GameRecordDefine.RebateSummonTime);
                if (null == i || m.default.IsNumberString(i)) return !0;
                var a = JSON.parse(i),
                    s = !0,
                    l = m.default.Instance.ComputeContiuousTime(t.Common);
                for (var r in a) Number.parseInt(r) == t._id && (l == a[r] || l > t.Rewards.length) && (s = !1);
                if (s) return !0;
                var c = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    d = t.Rewards,
                    h = Math.min(d.length - 1, l);
                for (o = 0; o < h; o++)
                    if (0 == (c.IntValue >> o & 1) && p.DataCenter.Instance.IsItemEnough(d[o].ItemId, d[o].Input)) return !0;
                return !1
            }, t.prototype.RefreshHeroDungeonNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.HeroDungeon && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                if (m.default.Instance.ComputeDeadTime(t.Common) - L.RpcComponent.Instance.ServerTime < (t.Common.IsZoneOpen, g.Etc.DayDuration * t.Common.ExtraShowDays)) return !1;
                var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    a = 0,
                    s = 0;
                if (i && i.IntArray && i.IntArray[1] && (a = i.IntArray[1]), i && i.IntArray && i.IntArray[0] && (s = i.IntArray[0]), 0 == s && a > 0) {
                    var l = A.default.GetItem(A.GameRecordDefine.HeroDungeonRedDot);
                    if (!l) return !0;
                    if (!JSON.parse(l)[e.Value1]) return !1
                }
                return a < t.CustomPart.Count
            }, t.prototype.RefreshExchangeShopNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.ExchangeShop && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                var i = !1,
                    a = m.default.Instance.ComputeDeadTime(t.Common);
                if (a > y.RpcComponent.Instance.ServerTime && a < y.RpcComponent.Instance.ServerTime + g.Etc.DayDuration) {
                    var s = p.DataCenter.Instance.GetTempData("ExchangeShopTime");
                    i = !0, null != s && null != s[t._id] && (i = !1)
                }
                var l = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    c = t.Shops || t._Shops;
                for (o = 0; o < c.length; o++)
                    for (var d = c[o], h = 0; h < d.Goods.length; h++) {
                        for (var f = d.Goods[h].Items[0], I = void 0, _ = 0; _ < t._ShopItems.length; _++) t._ShopItems[_].Id == f && (I = t._ShopItems[_]);
                        if (null != I)
                            if (I.Price > 0) {
                                if (i && p.DataCenter.Instance.IsItemEnough(d.HeaderCurrencyType[0], I.Price)) return !0
                            } else {
                                var C = 0;
                                if (l.ShopItems[I.Id] && (C = l.ShopItems[I.Id]), C < I.LimitCount) return !0
                            }
                    }
                return !1
            }, t.prototype.RefreshDaysPayNode = function() {
                return p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.DaysPay) > 0
            }, t.prototype.RefreshTaskTalentNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.HeroDungeon && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                var i, a = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    s = 0,
                    l = 0,
                    c = !1,
                    d = !1;
                if (a.IntArray && a.IntArray.length > 1 && (s = a.IntArray[0], l = a.IntArray[1]), i = 1 != s, !l) {
                    var h = 0;
                    t._Tasks.forEach(function(e) {
                        var n = t._id * g.Etc.Multiplier + e.Id,
                            o = p.DataCenter.Instance.GetDataById(u.UserTask_Model, n);
                        o && (o.IsCompleted ? h += 1 : o.Progress >= e.TotalCount && (d = !0))
                    }), c = h >= t.CustomPart.Count
                }
                return !!(i || c || d)
            }, t.prototype.RefreshRechargeGuideNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.PayGuide && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                var i = !0;
                t._Tasks.forEach(function(e) {
                    var n = t._id * g.Etc.Multiplier + e.Id,
                        o = p.DataCenter.Instance.GetDataById(u.UserTask_Model, n);
                    o && !o.IsCompleted && o.Progress < e.TotalCount && (i = !1)
                });
                var a = A.default.GetItem(A.GameRecordDefine.RechargeGuideRedDot);
                if (null == a) return !0;
                var s = Number.parseInt(a);
                if ((null == s || I.TimeUtil.Get0ClockTs(s) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)) && !i) return !0;
                var l = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                if (1 != l.IntValue && i) return !0;
                for (var c = {}, d = function(e) {
                        if (l.IntMap[e]) c[e] = !0;
                        else {
                            var n = !0;
                            if (t.Stage[e - 1].TaskIds.forEach(function(e) {
                                    var o = t._id * g.Etc.Multiplier + e,
                                        r = t._Tasks.findIndex(function(t) {
                                            return t.Id == e
                                        });
                                    if (r > -1) {
                                        var i = p.DataCenter.Instance.GetDataById(u.UserTask_Model, o);
                                        (!i || !i.IsCompleted && i.Progress < t._Tasks[r].TotalCount) && (n = !1)
                                    }
                                }), c[e] = n, n) {
                                for (var o = !0, r = 1; r < e; r++)
                                    if (!c[r]) {
                                        o = !1;
                                        break
                                    } if (o) return {
                                    value: !0
                                }
                            }
                        }
                    }, h = 1; h < 5; h++) {
                    var f = d(h);
                    if ("object" == typeof f) return f.value
                }
                return !1
            }, t.prototype.RefreshInfiniteGiftPackNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.InfiniteGiftPack && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                var i = A.default.GetItem(A.GameRecordDefine.InfiniteGiftPackRedDot);
                if (null == i) return !0;
                var a = Number.parseInt(i);
                if (null == a || I.TimeUtil.Get0ClockTs(a) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)) return !0;
                for (var s = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), l = s.Int2DArray.length, c = 0; c < l; c++) {
                    var d = s.Int2DArray[c];
                    if (d.Items.length > 1) {
                        var h = d.Items[0],
                            f = 1 == (d.Items[1] >> 0 & 1),
                            g = 1 == (d.Items[1] >> 1 & 1);
                        if (s.Packs[h] && s.Packs[h].Items[0] && s.Packs[h].Items[0] && (!f || f && !g)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshArenaNode = function() {
                if (C.EZLog.Log("Enter RefreshArenaNode"), 0 == m.default.Instance.IsGameModuleUnlock(f.GameModuleType.Arena)[0]) return !1;
                var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.ArenaChallengeCount);
                if (h.ConfigDataComponent.Instance.GetGlobalSettingByKey("ArenaDailyFreeChallengeCount") > e) return !0;
                if (p.DataCenter.Instance.GetItemCount(f.CommonItemId.ArenaChallengeTicket) > 0) return !0;
                var t = p.DataCenter.Instance.GetDataById(u.TaskPointReward_Model, O.default.arenaTaskPointRewardID),
                    n = h.ConfigDataComponent.Instance.GetConfigById(d.PointRewardType_Config, O.default.pointRewardTypeId),
                    o = t ? t.Point : 0;
                o = Math.min(o, O.default.pointRewardArrayMaxPoint);
                for (var r = t ? t.DrawRewardIds : [], i = 0, a = 0; a < n.Nodes.length; a++) o >= h.ConfigDataComponent.Instance.GetConfigById(d.TaskPointReward_Config, n.Nodes[a]).Point && i++;
                return i > r.length
            }, t.prototype.RefreshSeniorArenaFreeChallengeNode = function() {
                if (0 == m.default.Instance.IsGameModuleUnlock(f.GameModuleType.SeniorArena)[0]) return !1;
                var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.SeniorArenaChallengeCount);
                return h.ConfigDataComponent.Instance.GetGlobalSettingByKey("SeniorArenaDailyFreeChallengeCount") > e
            }, t.prototype.RefreshSeniorArenaResourceCollectNode = function() {
                return Math.floor(R.default.GetRealSeniorArenaResource(p.DataCenter.Instance.GetIntData(f.UserDataKey.SeniorArenaStoredCoin))) / h.ConfigDataComponent.Instance.GetGlobalSettingByKey("SeniorArenaCoinCapacity") >= h.ConfigDataComponent.Instance.GetGlobalSettingByKey("SeniorArenaCapacityFullRatio")
            }, t.prototype.RefreshSeniorArenaEditTeamNode = function() {
                if (0 == m.default.Instance.IsGameModuleUnlock(f.GameModuleType.SeniorArena)[0]) return !1;
                var e = A.default.GetItem(A.GameRecordDefine.SeniorArenaTeamEdited);
                return !e || "true" != e
            }, t.prototype.RefreshCrossLadderState = function() {
                return !!this.RefreshCrossLadderFreeChallenge() || !!this.RefreshCrossServerPalaceState()
            }, t.prototype.RefreshCrossLadderFreeChallenge = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.CrossServerArena)[0]) return !1;
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneGroupMinWorldLevel");
                return !(p.DataCenter.Instance.WorldLevel < e) && h.ConfigDataComponent.Instance.GetGlobalSettingByKey("LadderRaceDailyFreeCount") + p.DataCenter.Instance.GetIntData(P.UserDataKey.LadderRaceBuyCount) - p.DataCenter.Instance.GetIntData(P.UserDataKey.LadderRaceChallengeCount) > 0
            }, t.prototype.RefreshCrossServerPalaceState = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.CrossServerArena)[0]) return !1;
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneGroupMinWorldLevel");
                if (p.DataCenter.Instance.WorldLevel < e) return !1;
                var t = p.DataCenter.Instance.GetDataById(u.UserRankLike_Model, P.RankTypeId.CrossZoneArena);
                return !t || t.LikeUids.length < 3
            }, t.prototype.RefreshCustomGiftPackNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.CustomGiftPack && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                var i = A.default.GetItem(A.GameRecordDefine.CustomGiftPackRedDot);
                if (null == i) return !0;
                var a = Number.parseInt(i);
                if (null == a || I.TimeUtil.Get0ClockTs(a) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)) return !0;
                var s = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    l = !1;
                return t.__Custom.forEach(function(e) {
                    var n = t._Packs.find(function(t) {
                        return t.Id == e.Id
                    });
                    if (n && !n.Money) {
                        var o = s.Packs[e.Id] && s.Packs[e.Id].Items[0] ? s.Packs[e.Id].Items[0] : 0;
                        if (t.CustomPart.Count > 0) {
                            var r = oe.default.GetTotalBuyCount(t);
                            !o && r < t.CustomPart.Count && (l = !0)
                        } else o || (l = !0)
                    }
                }), l
            }, t.prototype.RefreshFateStarBoxNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.FateStarBox && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                if (null == A.default.GetItem(A.GameRecordDefine.FateStarBoxRedDot)) return !0;
                if ((i.Summons && i.Summons[t.__SummonType[0].Id.toString()] && i.Summons[t.__SummonType[0].Id.toString()].hasOwnProperty("FreeCount") ? i.Summons[t.__SummonType[0].Id.toString()].FreeCount : t.__SummonType[0].StartFreeCount) > 0) return !0;
                var a = t.__CommonSummon.length > 0 && t.__CommonSummon[0].ConsumeItem.length > 0 ? t.__CommonSummon[0].ConsumeItem[0].Items[0] : 0,
                    s = t.__CommonSummon.length > 0 && t.__CommonSummon[0].ConsumeItem.length > 0 ? t.__CommonSummon[0].ConsumeItem[0].Items[1] : 0;
                return !!a && p.DataCenter.Instance.GetItemCount(a) > s
            }, t.prototype.RefreshIngenuityNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else {
                    var n = this.GetActivityFrame(P.ActivityType.Frame2);
                    if (null == n) return !1;
                    for (var o = 0; o < n.length; o++) {
                        var r = n[o];
                        p.DataCenter.Instance.ActivityConfigs[r].Common.Type == P.ActivityType.Ingenuity && (t = p.DataCenter.Instance.ActivityConfigs[r])
                    }
                }
                if (!t) return !1;
                var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                return (i.IntArray.length > 0 ? t.CustomPart.Count - i.IntArray[0] >= 0 ? t.CustomPart.Count - i.IntArray[0] : 0 : t.CustomPart.Count) > 0
            }, t.prototype.RefreshGiftDrawNode = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                var n = A.default.GetItem(A.GameRecordDefine.GiftDrawRedDot);
                if (null == n) return !0;
                if (!JSON.parse(n).includes(t._id)) return !0;
                var o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                return !!(o && o.Summons && o.Summons[t.__SummonType[0].Id]) && o.Summons[t.__SummonType[0].Id].FreeCount > 0
            }, t.prototype.RefreshChargeDrawNode = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                var n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    o = n.Summons[t.__SummonType[0].Id];
                if (n && null != n.Summons && o && o.LibCount) {
                    for (var r = 0; r < t.__RandomLib.length; r++) o.LibCount[t.__RandomLib[r].Id] && o.LibCount[t.__RandomLib[r].Id] >= t.__RandomLib[r].Count && 0;
                    t.__RandomLib.length
                }
                var i, a = t.__CommonSummon[0].ConsumeItem[0].Items[0];
                if (L.DataCenter.Instance.IsItemEnough(a, 1)) return !0;
                for (r = 0; r < t._Tasks.length; r++) {
                    var s = t._Tasks[r];
                    if ((i = L.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * t._id + s.Id)) && !i.IsCompleted && s.TotalCount <= i.Progress) return !0
                }
                return !1
            }, t.prototype.RefreshMallChosenGiftPackNode = function() {
                if (this.IsBuyMallChosenGift()) return !1;
                var e = A.default.GetItem(A.GameRecordDefine.MallChosenGift);
                if (null == e) return !0;
                var t = JSON.parse(e);
                return I.TimeUtil.Get0ClockTs(t) != I.TimeUtil.Get0ClockTs(L.RpcComponent.Instance.ServerTime)
            }, t.prototype.IsBuyMallChosenGift = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.ChosenGiftPack)[0]) return !0;
                var e = L.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.ChosenGiftPack);
                if (null == e || null == e.IntValue) return !0;
                var t = L.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, e.IntValue);
                return !!(t && t.LimitCount > 0 && t.LimitCount <= m.default.Instance.GetGiftBuyCount(t.Id))
            }, t.prototype.RefreshDiamondDrawNode = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                if (this.JudgeIfTaskCompleted(t._id, t._Tasks)) return !0;
                if (null == t.__SummonType || null == t.__SummonType[0]) return !1;
                var n = t.__SummonType[0].Id,
                    o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).Summons[n];
                return null == o ? t.__SummonType[0].StartFreeCount > 0 : o.FreeCount > 0
            }, t.prototype.RefreshAttentionLineNodeRedDot = function() {
                return !1
            }, t.prototype.RefreshAttentionTwitterNodeRedDot = function() {
                return !1
            }, t.prototype.RefreshBindSNSNodeRedDotRedDot = function() {
                return !1
            }, t.prototype.RefreshMoonTakenTempleState = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.CrossServerArena)[0]) return !1;
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneGroupMinWorldLevel");
                if (p.DataCenter.Instance.WorldLevel < e) return !1;
                var t = A.default.GetItem(A.GameRecordDefine.MoonTakenTempleRedDot);
                if (null == t) return !0;
                var n = Number.parseInt(t);
                return null == n || I.TimeUtil.Get0ClockTs(n) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)
            }, t.prototype.RefreshCrossServerRankNodeState = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.CrossServerArena)[0]) return !1;
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneGroupMinWorldLevel");
                if (p.DataCenter.Instance.WorldLevel < e) return !1;
                if (!p.DataCenter.Instance.GetIntData(P.UserDataKey.CrossZoneRankChallengeCount)) return !0;
                var t = !1,
                    n = [],
                    o = [];
                L.ConfigDataComponent.Instance.GetArrayConfig(d.TaskBase_Config).forEach(function(e) {
                    e.Type == f.TaskType.CrossZoneRankDaily ? n.push(e) : e.Type == f.TaskType.CrossZoneRankWeekly && o.push(e)
                });
                for (var r = 0; r < n.length; r++)
                    if ((i = L.DataCenter.Instance.GetDataById(u.UserTask_Model, n[r].Id)) && !i.IsCompleted && i.Progress >= n[r].TotalCount) {
                        t = !0;
                        break
                    } if (!t)
                    for (r = 0; r < o.length; r++) {
                        var i;
                        if ((i = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o[r].Id)) && !i.IsCompleted && i.Progress >= o[r].TotalCount) {
                            t = !0;
                            break
                        }
                    }
                return t
            }, t.prototype.RefreshCrossServerRankDailyNodeState = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.CrossServerArena)[0]) return !1;
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneGroupMinWorldLevel");
                if (p.DataCenter.Instance.WorldLevel < e) return !1;
                var t = !1;
                return L.ConfigDataComponent.Instance.GetArrayConfig(d.TaskBase_Config).forEach(function(e) {
                    if (e.Type == f.TaskType.CrossZoneRankDaily) {
                        var n = L.DataCenter.Instance.GetDataById(u.UserTask_Model, e.Id);
                        n && !n.IsCompleted && n.Progress >= e.TotalCount && (t = !0)
                    }
                }), t
            }, t.prototype.RefreshCrossServerRankWeeklyNodeState = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.CrossServerArena)[0]) return !1;
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneGroupMinWorldLevel");
                if (p.DataCenter.Instance.WorldLevel < e) return !1;
                var t = !1;
                return L.ConfigDataComponent.Instance.GetArrayConfig(d.TaskBase_Config).forEach(function(e) {
                    if (e.Type == f.TaskType.CrossZoneRankWeekly) {
                        var n = L.DataCenter.Instance.GetDataById(u.UserTask_Model, e.Id);
                        n && !n.IsCompleted && n.Progress >= e.TotalCount && (t = !0)
                    }
                }), t
            }, t.prototype.RefreshBossWarNodeState = function() {
                for (var e in p.DataCenter.Instance.ActivityConfigs) {
                    var t = p.DataCenter.Instance.ActivityConfigs[e];
                    if (t.Common.Type == P.ActivityType.WorldBoss && m.default.Instance.ComputeDeadTime(t.Common) > L.RpcComponent.Instance.ServerTime) {
                        var n = 0;
                        switch (t.CustomPart.Type) {
                            case f.WorldBossType.Zone:
                                n = P.GameModuleType.ZoneBoss;
                                break;
                            case f.WorldBossType.Alliance:
                                n = P.GameModuleType.AllianceBoss;
                                break;
                            case f.WorldBossType.CrossZone:
                                n = P.GameModuleType.CrossZoneBoss
                        }
                        if (!m.default.Instance.IsGameModuleUnlock(n)[0]) break;
                        if (t.CustomPart.Type == f.WorldBossType.CrossZone) {
                            var o = !0;
                            if (p.DataCenter.Instance.Zones[p.DataCenter.Zone].Group <= 0 && (o = !1), m.default.IsCrossServerTimeEnable() || (o = !1), !o) break
                        }
                        if (t.CustomPart.Type == f.WorldBossType.Alliance && p.DataCenter.Instance.AllianceId <= 0) break;
                        var r = t.CustomPart.Open,
                            i = I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime);
                        if (!(r && r.indexOf(i) > -1)) break;
                        if (I.TimeUtil.GetHour(y.RpcComponent.Instance.ServerTime) >= 22) break;
                        var a = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                        if (t.CustomPart.Count - a.IntValue > 0) return !0;
                        if (this.CheckTaskCanReceive(t._id, t._Tasks)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshWishTreeNode = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                if (this.CheckTaskCanReceive(t._id, t._Tasks)) return !0;
                var n = A.default.GetItem(A.GameRecordDefine.WishTreeRedDot);
                if (null == n) return !0;
                var o = Number.parseInt(n);
                return null == o || I.TimeUtil.Get0ClockTs(o) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)
            }, t.prototype.RefreshWishTreePersonalNode = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                var n = [];
                return t._Tasks.forEach(function(e) {
                    e.Condition[0] != P.TaskConditionType.WishTreeSummon || e.IsDaily || n.push(e)
                }), !!this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshWishTreeTaskNode = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                var n = [];
                if (t._Tasks.forEach(function(e) {
                        var t = e.Condition[0];
                        (t != P.TaskConditionType.ZoneWishTreeSummon && t != P.TaskConditionType.WishTreeSummon || t == P.TaskConditionType.WishTreeSummon && e.IsDaily) && n.push(e)
                    }), this.CheckTaskCanReceive(t._id, n)) return !0;
                var o = A.default.GetItem(A.GameRecordDefine.WishTreeRedDot);
                if (null == o) return !0;
                var r = Number.parseInt(o);
                return null == r || I.TimeUtil.Get0ClockTs(r) != I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)
            }, t.prototype.CheckTaskCanReceive = function(e, t) {
                for (var n = 0; n < t.length; n++) {
                    var o = L.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * e + t[n].Id);
                    if (o && !o.IsCompleted && o.Progress >= t[n].TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshTaskCommandState = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                for (var n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), o = p.DataCenter.Instance.GetItemCount(t.CustomPart.ItemId), r = 0; r < t.Rewards.length; r++)
                    if (o >= t.Rewards[r].Count && n.IntValue < r + 1) return !0;
                return !1
            }, t.prototype.RefreshBossWarPartNodeState = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                if (m.default.Instance.ComputeDeadTime(t.Common) > L.RpcComponent.Instance.ServerTime) {
                    var n = 0;
                    switch (t.CustomPart.Type) {
                        case f.WorldBossType.Zone:
                            n = P.GameModuleType.ZoneBoss;
                            break;
                        case f.WorldBossType.Alliance:
                            n = P.GameModuleType.AllianceBoss;
                            break;
                        case f.WorldBossType.CrossZone:
                            n = P.GameModuleType.CrossZoneBoss
                    }
                    if (!m.default.Instance.IsGameModuleUnlock(n)[0]) return !1;
                    if (t.CustomPart.Type == f.WorldBossType.CrossZone) {
                        var o = !0;
                        if (p.DataCenter.Instance.Zones[p.DataCenter.Zone].Group <= 0 && (o = !1), m.default.IsCrossServerTimeEnable() || (o = !1), !o) return !1
                    }
                    if (t.CustomPart.Type == f.WorldBossType.Alliance && p.DataCenter.Instance.AllianceId <= 0) return !1;
                    var r = t.CustomPart.Open,
                        i = I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime);
                    if (!(r && r.indexOf(i) > -1)) return !1;
                    if (I.TimeUtil.GetHour(y.RpcComponent.Instance.ServerTime) >= 22) return !1;
                    var a = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                    if (t.CustomPart.Count - a.IntValue > 0) return !0;
                    if (this.CheckTaskCanReceive(t._id, t._Tasks)) return !0
                }
                return !1
            }, t.prototype.RefreshBossWarTaskNodeState = function(e) {
                var t;
                return !!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1]) && !!this.CheckTaskCanReceive(t._id, t._Tasks)
            }, t.prototype.RefreshBossWarChallengeNodeState = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                var n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                return t.CustomPart.Count - n.IntValue > 0
            }, t.prototype.RefreshSecretJourneyNode = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    r = n.CustomPart.MapIds,
                    i = [];
                for (var a in o.IntMap) i.push(Number.parseInt(a));
                var s = 0;
                for (var a in o.IntMap) o.IntMap[a] > 1 && s++;
                var l = n.CustomPart.Unlock[1],
                    c = n.CustomPart.Unlock[0],
                    f = 0;
                if (this.IsBaseMapUnLockEnough(r, i, n)) f = 0;
                else {
                    var g = y.RpcComponent.Instance.ServerTime - n.Common.StartTime,
                        m = Math.ceil(g / 1e3 / 86400) - 1;
                    f = Math.floor(m / l) * c + c
                }
                for (var I = 0; I < r.length; I++) {
                    var _ = r[I],
                        C = h.ConfigDataComponent.Instance.GetConfigById(d.SecretActivityMap_Config, _);
                    if (-1 == i.indexOf(_))
                        if (C.ElementType == P.HeroElementType.All) {
                            if (s >= n.CustomPart.Count) return !0
                        } else if (f > 0) return !0
                }
                return !1
            }, t.prototype.IsBaseMapUnLockEnough = function(e, t, n) {
                for (var o = 0, r = e[P.HeroElementType.All], i = n.CustomPart.Limit, a = 0; a < t.length; a++) t[a] != r && o++;
                return o >= i
            }, t.prototype.RefreshAllUserPuzzleNode = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                var n = t._Tasks.findIndex(function(e) {
                    return e.Condition[0] == P.TaskConditionType.AllUserPuzzleGiveBlock
                });
                if (n > -1) {
                    var o = t._Tasks[n],
                        r = p.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * t._id + o.Id);
                    if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                }
                for (var i = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), a = 0; a < t.__Blocks.length; a++)
                    if ((!i.IntMap || !i.IntMap[t.__Blocks[a].Id]) && p.DataCenter.Instance.GetItemCount(t.__Blocks[a].ItemId)) return !0;
                return !1
            }, t.prototype.RefreshAllUserPuzzleGiveNode = function(e) {
                var t;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                var n = t._Tasks.findIndex(function(e) {
                    return e.Condition[0] == P.TaskConditionType.AllUserPuzzleGiveBlock
                });
                if (n > -1) {
                    var o = t._Tasks[n],
                        r = p.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * t._id + o.Id);
                    if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshAccumulateRechargeNode = function(e) {
                var t, n = !1;
                if (!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                for (var o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1), r = t.CustomPart.PackIds, i = 0, a = 0; a < r.length; a++)
                    for (var s = 0; s < r[a].Items.length; s++) {
                        var l = r[a].Items[s];
                        if (o.Packs[l.toString()] && o.Packs[l.toString()].Items[0] > 0) {
                            i++;
                            break
                        }
                    }
                if (o.IntValue >= 0) return !1;
                i >= t.CustomPart.Count && (n = !0);
                var c = A.default.GetItem(A.GameRecordDefine.AccumulateRecharge),
                    d = null == c || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(c));
                return n || d
            }, t.prototype.RefreshAllianceTraderNode = function() {
                var e = A.default.GetItem(A.GameRecordDefine.AllianceTrader);
                return null == e || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(e))
            }, t.prototype.RefreshSummonActivityListNode = function() {
                var e = m.default.GetSpecificActivityList(m.ActivityListType.Summon);
                if (e.length)
                    for (var t = 0; t < e.length; t++) {
                        var n = T.ActivityData.GetTopicActivityTypeToRedDot(e[t].Common.Type);
                        if (n && n.callBackFunc && n.callBackFunc({
                                Value1: e[t]._id
                            })) return !0
                    }
                return !1
            }, t.prototype.RefreshWarTokenListNode = function() {
                for (var e = N.default.GetWarTokenListData(), t = 0; t < e.length; t++) {
                    if (e[t].Type == N.ActivityWarTokenType.Story) {
                        var n = L.DataCenter.Instance.ActivityConfigs[e[t].Id],
                            o = L.ConfigDataComponent.Instance.GetConfigById(d.ItemGetWay_Config, n.Common.JumpId);
                        if (o && o.PanelInfo[1]) {
                            var r = m.default.GetActivityByGetWay(o.PanelInfo[1]);
                            if (r) {
                                var i = L.DataCenter.Instance.ActivityConfigs[r] ? L.DataCenter.Instance.ActivityConfigs[r].Common.Type : 0,
                                    a = T.ActivityData.GetTopicActivityTypeToRedDot(i);
                                if (a && a.callBackFunc && a.callBackFunc({
                                        Value1: r
                                    })) return !0
                            }
                        }
                    }
                    for (var s = N.default.GetRewardData(e[t]), l = 0; l < s.length; l++) {
                        var c = s[l];
                        if (c.CurProgress >= c.Require && (!c.IsFreeReceive || c.IsUnlock && !c.IsVipReceive)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshGiftPackListNode = function() {
                var e = H.default.GetGiftPacksData();
                if (e.length > 0)
                    for (var t = 0; t < e.length; t++) {
                        var n = e[t];
                        if (n.IsActivity) {
                            var o = L.DataCenter.Instance.ActivityConfigs[n.Id];
                            if (H.default.CompeleteGiftPackActivityType.indexOf(o.Common.Type) > -1) {
                                var r = T.ActivityData.GetTopicActivityTypeToRedDot(o.Common.Type);
                                if (r && r.callBackFunc && r.callBackFunc({
                                        Value1: o._id
                                    })) return !0
                            } else if (this.CheckActivityRedDotState(o)) return !0
                        }
                    }
                return !1
            }, t.prototype.CheckActivityRedDotState = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e._id),
                    n = !1;
                if (e._Packs && e._Packs.length > 0)
                    for (var o = 0; o < e._Packs.length; o++) {
                        var r = e._Packs[o];
                        if (r && !r.Money) {
                            var i = null == t.Packs[r.Id] ? 0 : t.Packs[r.Id].Items[0];
                            if (r.LimitCount > i) {
                                n = !0;
                                break
                            }
                        }
                    }
                return n
            }, t.prototype.ChaosSummonTicketAvailableNode = function() {
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("ChaosSummonTicketPrice"),
                    t = p.DataCenter.Instance.GetIntData(f.UserDataKey.ChaosSummonRemainedPoint);
                return Math.floor(t / e) > 0
            }, t.prototype.ChaosSummonDrawOnceNode = function() {
                if (!this.IsInChaosSummonTime()) return !1;
                var e = m.default.GetSummonCurrencyIdBySummonType(f.CardCommonSummonType.ChaosSummon);
                return p.DataCenter.Instance.IsItemEnough(e, M.default.SUMMON_ONCE_TICKET_COUNT)
            }, t.prototype.IsInChaosSummonTime = function() {
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("ChaosSummonOpenTime"),
                    t = p.DataCenter.Instance.ZoneGroupResetTime,
                    n = t - g.Etc.HourDuration * e,
                    o = t - 3 * g.Etc.HourDuration,
                    r = y.RpcComponent.Instance.ServerTime;
                return r >= n && r < o
            }, t.prototype.ChaosSummonDrawTenNode = function() {
                if (!this.IsInChaosSummonTime()) return !1;
                var e = m.default.GetSummonCurrencyIdBySummonType(f.CardCommonSummonType.ChaosSummon10);
                return p.DataCenter.Instance.IsItemEnough(e, M.default.SUMMON_TEN_TICKET_COUNT)
            }, t.prototype.ChaosSummonFreeGiftNode = function() {
                if (!this.IsInChaosSummonTime()) return !1;
                for (var e = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.ChaosSummonGiftPack).Data, t = 0; t < e.length; t++) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, e[t]);
                    if (0 == n.Money && n.LimitCount > m.default.Instance.GetGiftBuyCount(n.Id)) return !0
                }
                return !1
            }, t.prototype.RefreshReturnWelfareNode = function(e) {
                var t;
                return !(!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1]) || L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).IntValue > 0)
            }, t.prototype.RefreshMonopolyEntranceNode = function(e) {
                var t;
                return !(!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1]) || !this.CheckTaskCanReceive(t._id, t._Tasks) && !this.RefreshMonopolyDiceNode(e) && !this.RefreahMonopolyRemoteDiceNode(e))
            }, t.prototype.RefreshMonopolyTaskNode = function(e) {
                var t;
                return !!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1]) && !!this.CheckTaskCanReceive(t._id, t._Tasks)
            }, t.prototype.RefreshMonopolyDiceNode = function(e) {
                var t;
                return !!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1]) && L.DataCenter.Instance.GetItemCount(t.CustomPart.DiceId) > 0
            }, t.prototype.RefreahMonopolyRemoteDiceNode = function(e) {
                var t;
                return !!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1]) && L.DataCenter.Instance.GetItemCount(t.CustomPart.ControlId) > 0
            }, t.prototype.RefreahMonopolyWarToken = function(e) {
                for (var t = N.default.GetWarTokenListData(), n = e.Value1, o = 0; o < t.length; o++)
                    if (t[o].Id == n)
                        for (var r = N.default.GetRewardData(t[o]), i = 0; i < r.length; i++) {
                            var a = r[i];
                            if (a.CurProgress >= a.Require && (!a.IsFreeReceive || a.IsUnlock && !a.IsVipReceive)) return !0
                        }
                return !1
            }, t.prototype.RefreshExquisiteCustomCardNode = function(e) {
                var t;
                t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                for (var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1), o = -1, r = 0; r < t._Packs.length; r++) {
                    var i = t._Packs[r];
                    if (n.Packs[i.Id].Items && n.Packs[i.Id].Items[0] > 0) {
                        o = i.Id;
                        break
                    }
                }
                if (!(o > 0)) {
                    var a = A.default.GetItem(A.GameRecordDefine.ExquisiteCustomCard);
                    return null == a || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(a))
                }
                var s = m.default.Instance.ComputeContiuousTime(t.Common);
                if (s > n.IntValue) return s > n.IntValue
            }, t.prototype.RefreshContinuousChargeNode = function() {
                var e = f.ActivityType.ContinuousPay,
                    t = [];
                for (var n in L.DataCenter.Instance.ActivityConfigs) {
                    var o = L.DataCenter.Instance.ActivityConfigs[n];
                    if (o.Common.Type == e) {
                        var r = o;
                        if (t.push(r), this.CheckTaskCanReceive(r._id, r._Tasks)) return !0
                    }
                }
                return !!this.RefreshContinuousChargeDailyGiftNode()
            }, t.prototype.RefreshContinuousChargeDailyGiftNode = function() {
                var e = f.ActivityType.ContinuousPay,
                    t = [];
                for (var n in L.DataCenter.Instance.ActivityConfigs) {
                    var o = L.DataCenter.Instance.ActivityConfigs[n];
                    if (o.Common.Type == e) {
                        var r = o;
                        t.push(r)
                    }
                }
                return t.sort(function(e, t) {
                    return e._id - t._id
                }), !(!t[0] || 0 != p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t[0]._id).IntValue)
            }, t.prototype.RefreshAnswerActivityNode = function(e) {
                var t;
                t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                for (var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1), o = t.CustomPart, r = [], i = 0; i < o.Hours.length; i++)
                    for (var a = 0; a < o.Hours[i].Items.length; a++) 1 == a ? r.push(o.Hours[i].Items[a] + 1) : r.push(o.Hours[i].Items[a]);
                var s = L.RpcComponent.Instance.ServerTime,
                    l = I.TimeUtil.Get0ClockTs(s);
                return n.IntArray[0] < o.Count && (s >= l + 36e5 * r[0] && s <= l + 36e5 * r[1] || s >= l + 36e5 * r[2] && s <= l + 36e5 * r[3] || s >= l + 36e5 * r[4] && s <= l + 36e5 * r[5])
            }, t.prototype.RefreshBadgeCollectNode = function(e) {
                var t = A.default.GetItem(A.GameRecordDefine.BadgeCollectRedDot);
                return !!(null == t || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(t)) || this.BadgeCollectTaskCanReceive(e) || this.RefreahBadgeCollectLightSquareNode(e) || this.RefreshBadgeCollectRewardNode(e) || this.RefreshBadgeCollectFinalRewardNode(e))
            }, t.prototype.BadgeCollectTaskCanReceive = function(e) {
                var t;
                return !!(t = p.DataCenter.Instance.ActivityConfigs[e.Value1]) && !!this.CheckTaskCanReceive(t._id, t._Tasks)
            }, t.prototype.RefreahBadgeCollectLightSquareNode = function(e) {
                var t;
                t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1),
                    o = !1;
                return t.__Sites.forEach(function(e) {
                    1 != n.IntMap[e.Id] && L.DataCenter.Instance.GetItemCount(e.BadgeId) >= e.Count && (o = !0)
                }), o
            }, t.prototype.RefreshBadgeCollectRewardNode = function(e) {
                var t, n, o = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    r = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                t = new Array(6);
                for (var i = 0; i < 6; i++) t[i] = new Array(6);
                for (i = 0; i < 6; i++) {
                    if (i < 5) {
                        for (var a = 0; a < 5; a++) t[i][a] = o.__Sites[5 * i + a].Id;
                        t[i][5] = o.__Rewards[i].Id
                    }
                    t[5][i] = o.__Rewards[i + 5].Id
                }
                for (i = 0; i < 5; i++) {
                    var s = !0;
                    if (0 == r.IntArray[t[i][5] - 1])
                        for (n = !1, a = 0; a < 5; a++) 1 != r.IntMap[t[i][a]] && (s = !1);
                    else n = !0;
                    if (!n && s) return !0;
                    var l = !0;
                    if (0 == r.IntArray[t[5][i] - 1])
                        for (n = !1, a = 0; a < 5; a++) 1 != r.IntMap[t[a][i]] && (l = !1);
                    else n = !0;
                    if (!n && l) return !0
                }
                var c = !0;
                if (0 == r.IntArray[t[5][5] - 1])
                    for (n = !1, i = 0; i < 5; i++) 1 != r.IntMap[t[i][i]] && (c = !1);
                else n = !0;
                return !(n || !c)
            }, t.prototype.RefreshBadgeCollectFinalRewardNode = function(e) {
                for (var t = p.DataCenter.Instance.ActivityConfigs[e.Value1], n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1), o = !0, r = 0; r < t.__Sites.length; r++) 1 != n.IntMap[t.__Sites[r].Id] && (o = !1);
                return !(1 == n.IntArray[t.__Rewards[t.__Rewards.length - 1].Id - 1] || !o)
            }, t.prototype.RefreshTacticalAttrLevelUpNode = function(e) {
                return B.default.CheckAttrButtonReddot(e.Value1)
            }, t.prototype.RefreshTacticalSkillLevelUpNode = function(e) {
                return B.default.CheckSkillButtonReddot(e.Value1)
            }, t.prototype.RefreshCustomizeMainScenePersonalityNode = function() {
                if (!m.default.Instance.IsGameModuleOpen(f.GameModuleType.Personality)) return !1;
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.CustomizeMainScene)[0]) return !1;
                for (var e = A.default.GetItem(A.GameRecordDefine.CustomizeMainSceneIdsSeen), t = e ? JSON.parse(e) : [], n = p.DataCenter.Instance.GetDataList(u.HeroInfo_Model), o = 0; o < n.length; o++) {
                    var r = n[o].PersonalityStar;
                    if (r && r > 0)
                        for (var i = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, n[o].HeroId), a = 0; a < i.AdultPictures.length; a++) {
                            var s = i.AdultPictures[a].Items[0];
                            if (r >= i.AdultPictures[a].Items[1] && t.indexOf(s) < 0) return !0
                        }
                }
                return !1
            }, t.prototype.RefreshCustomizeMainSceneHeroNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.CustomizeMainScene)[0]) return !1;
                for (var e = A.default.GetItem(A.GameRecordDefine.CustomizeMainSceneIdsSeen), t = e ? JSON.parse(e) : [], n = p.DataCenter.Instance.GetDataList(u.HeroInfo_Model), o = 0; o < n.length; o++)
                    if (t.indexOf(n[o].HeroId) < 0) return !0;
                var r = p.DataCenter.Instance.GetDataList(u.HeroSkin_Model);
                for (o = 0; o < r.length; o++)
                    if (t.indexOf(r[o].Sid) < 0) return !0;
                return !1
            }, t.prototype.RefreshCustomizeMainSceneSceneNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.CustomizeMainScene)[0]) return !1;
                var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.ItemMainSceneBackground_Config),
                    t = [];
                e.forEach(function(e) {
                    m.default.GetMainSceneLockState(e.Id) || t.push(e)
                });
                var n = A.default.GetItem(A.GameRecordDefine.CustomizeMainSceneIdsSeen),
                    o = n ? JSON.parse(n) : [];
                if (!o || 0 == o.length) return !0;
                for (var r = 0; r < t.length; r++)
                    if (o.indexOf(t[r].Id) < 0) return !0;
                return !1
            }, t.prototype.RefreshCustomizeMainSceneAngelNode = function() {
                if (!m.default.Instance.IsGameModuleOpen(f.GameModuleType.Angel)) return !1;
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.CustomizeMainScene)[0]) return !1;
                var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.AngelGodAvatar_Config),
                    t = [];
                e.forEach(function(e) {
                    for (var n = h.ConfigDataComponent.Instance.GetConfigById(d.AngelBase_Config, e.Angel), o = 1e3 * e.Angel, r = 1e3 * e.Angel + n.MaxStarLevel, i = o; i <= r; i++)
                        if (h.ConfigDataComponent.Instance.GetConfigById(d.AngelStar_Config, i).AngelShape == e.Id) {
                            var a = p.DataCenter.Instance.GetDataById(u.UserAngel_Model, e.Angel);
                            a && a.StarLevel >= i % 100 && t.push(e);
                            break
                        }
                });
                var n = A.default.GetItem(A.GameRecordDefine.CustomizeMainSceneIdsSeen),
                    o = n ? JSON.parse(n) : [];
                if (!o || 0 == o.length) return !0;
                for (var r = 0; r < t.length; r++)
                    if (o.indexOf(t[r].Id) < 0) return !0;
                return !1
            }, t.prototype.RefreshCustomizeMainSceneNewPersonalityNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.CustomizeMainScene)[0]) return !1;
                var e = A.default.GetItem(A.GameRecordDefine.CustomizeMainSceneIdsSeen),
                    t = e ? JSON.parse(e) : [];
                if (!t || 0 == t.length) return !0;
                for (var n = p.DataCenter.Instance.GetDataList(u.NewPersonality_Model), o = 0; o < n.length; o++) {
                    var r = n[o];
                    if (r && r.Map)
                        for (var i in r.Map) {
                            var a = Number(i);
                            if (!t.includes(a)) return !0
                        }
                }
                return !1
            }, t.prototype.RefreshPowerCoreCanEquipNode = function(e) {
                var t = e.Value1;
                if (m.default.Instance.IsGameModuleUnlock(f.GameModuleType.HeroStar)[0] && m.default.Instance.IsGameModuleUnlock(f.GameModuleType.PowerCore)[0]) {
                    var n = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("PowerCoreUnlockStarLevel"),
                        o = p.DataCenter.Instance.GetDataById(u.UserHero_Model, t);
                    if (!this.CheckHeroEquipUnlock(t)) return !1;
                    if (o.StarLevel >= n) {
                        for (var r = p.DataCenter.Instance.GetDataList(u.PowerCore_Model), i = [], a = 0; a < r.length; a++) 0 == r[a].OwnerId && i.push(r[a]);
                        var s = !1;
                        for (a = 0; a < r.length; a++)
                            if (r[a].OwnerId == t) {
                                if (s = !0, this.RefreshPowerCoreDevelopNode({
                                        Value1: r[a].Sid
                                    })) return !0;
                                for (var l = h.ConfigDataComponent.Instance.GetConfigById(d.PowerCore_Config, r[a].ItemId), c = 0; c < i.length; c++) {
                                    if (h.ConfigDataComponent.Instance.GetConfigById(d.PowerCore_Config, i[c].ItemId).Star > l.Star) return !0;
                                    if (i[c].Level > r[a].Level) return !0
                                }
                            } if (!s && i.length > 0) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshPowerCoreDevelopNode = function(e) {
                return !!this.RefreshPowerCoreUpgradeBtnNode(e) || !!this.RefreshPowerCoreBottomUpStarNode(e)
            }, t.prototype.RefreshPowerCoreBottomUpLevelNode = function(e) {
                return !!this.RefreshPowerCoreUpgradeBtnNode(e)
            }, t.prototype.RefreshPowerCoreUpgradeBtnNode = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.PowerCore_Model, e.Value1),
                    n = h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, t.ItemId),
                    o = h.ConfigDataComponent.Instance.GetConfigById(d.PowerCoreQuality_Config, n.Quality);
                if (t.Level < o.MaxLevel) {
                    var r, i = h.ConfigDataComponent.Instance.GetConfigById(d.PowerCoreLevel_Config, t.Level),
                        a = h.ConfigDataComponent.Instance.GetConfigById(d.PowerCoreLevel_Config, t.Level + 1);
                    if (r = i ? a.Materials[0].Items[1] - i.Materials[0].Items[1] : a.Materials[0].Items[1], L.DataCenter.Instance.GetItemCount(a.Materials[0].Items[0]) >= r) return !0
                }
                return !1
            }, t.prototype.RefreshPowerCoreBottomUpStarNode = function(e) {
                var t = p.DataCenter.Instance.GetDataList(u.PowerCore_Model),
                    n = 0,
                    o = p.DataCenter.Instance.GetDataById(u.PowerCore_Model, e.Value1),
                    r = h.ConfigDataComponent.Instance.GetConfigById(d.PowerCore_Config, o.ItemId),
                    i = h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, o.ItemId),
                    a = h.ConfigDataComponent.Instance.GetConfigById(d.PowerCoreQuality_Config, i.Quality);
                if (r.Star < a.StarAttrs.length) {
                    var s = r.Materials[0].Items;
                    if (1 != s[0]) return p.DataCenter.Instance.IsItemEnough(s[1], s[2]);
                    for (var l = 0; l < t.length; l++) t[l].ItemId != s[1] || t[l].Sid == o.Sid || t[l].OwnerId || n++;
                    if (n >= s[2]) return !0
                }
                return !1
            }, t.prototype.RefreshPowerCoreReplaceNode = function(e) {
                for (var t = e.Value1, n = p.DataCenter.Instance.GetDataList(u.PowerCore_Model), o = [], r = 0; r < n.length; r++) 0 == n[r].OwnerId && o.push(n[r]);
                for (r = 0; r < n.length; r++)
                    if (n[r].OwnerId == t)
                        for (var i = h.ConfigDataComponent.Instance.GetConfigById(d.PowerCore_Config, n[r].ItemId), a = 0; a < o.length; a++) {
                            if (h.ConfigDataComponent.Instance.GetConfigById(d.PowerCore_Config, o[a].ItemId).Star > i.Star) return !0;
                            if (o[a].Level > n[r].Level) return !0
                        }
                return !1
            }, t.prototype.RefreshTaskGuideNode = function() {
                var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.NewbieMainTask_Config);
                e.sort(function(e, t) {
                    if (e.SortId > t.SortId) return 1
                });
                for (var t = 0; t < e.length; t++) {
                    var n = p.DataCenter.Instance.GetDataById(u.UserTask_Model, e[t].TaskId),
                        o = h.ConfigDataComponent.Instance.GetConfigById(d.TaskBase_Config, e[t].TaskId);
                    if (!n.IsCompleted) return n.Progress == o.TotalCount
                }
                return !1
            }, t.prototype.GetContinuousFightIsSettlement = function() {
                var e = !1;
                if (7 == I.TimeUtil.GetWeekDay(y.RpcComponent.Instance.ServerTime)) {
                    var t = I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime),
                        n = t + 756e5,
                        o = t + 864e5;
                    y.RpcComponent.Instance.ServerTime >= n && y.RpcComponent.Instance.ServerTime < o && (e = !0)
                }
                return e
            }, t.prototype.RefreshContinuousFightMatchBtnNode = function() {
                return !this.GetContinuousFightIsSettlement() && p.DataCenter.Instance.GetIntData(P.UserDataKey.CrossZoneContinueWarRankChallengeCount) < h.ConfigDataComponent.Instance.GetGlobalSettingByKey("CrossZoneContinueWarRankDailyFreeChallengeCount")
            }, t.prototype.RefreshContinuousFightDailyToggleNode = function() {
                if (this.GetContinuousFightIsSettlement()) return !1;
                var e = [];
                L.ConfigDataComponent.Instance.GetArrayConfig(d.TaskBase_Config).forEach(function(t) {
                    t.Type == f.TaskType.CrossZoneContinueWarRankDaily && e.push(t)
                });
                for (var t = 0; t < e.length; t++) {
                    var n = L.DataCenter.Instance.GetDataById(u.UserTask_Model, e[t].Id);
                    if (n && !n.IsCompleted && n.Progress >= e[t].TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshContinuousFightWeeklyToggleNode = function() {
                if (this.GetContinuousFightIsSettlement()) return !1;
                var e = [];
                L.ConfigDataComponent.Instance.GetArrayConfig(d.TaskBase_Config).forEach(function(t) {
                    t.Type == f.TaskType.CrossZoneContinueWarRankWeekly && e.push(t)
                });
                for (var t = 0; t < e.length; t++) {
                    var n = L.DataCenter.Instance.GetDataById(u.UserTask_Model, e[t].Id);
                    if (n && !n.IsCompleted && n.Progress >= e[t].TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshContinuousFightFormationBtn = function() {
                for (var e = p.DataCenter.Instance.GetTempData("ContinuousFightFormation") || 0, t = Ce.default.GetGradeByScore(e), n = L.ConfigDataComponent.Instance.GetArrayConfig(d.CrossZoneContinueWarRankStage_Config), o = 0; o < n.length; o++) {
                    var r = n[o];
                    if (r.FormationNum > t.FormationNum) break;
                    if (!Ce.default.GetShowState(r.Id)) return !0
                }
                for (o = 0; o < Ce.default.formationTypes.length; o++)
                    if (!(o >= t.FormationNum)) {
                        var i = Ce.default.formationTypes[o],
                            a = L.DataCenter.Instance.GetDataById(u.UserFormation_Model, i);
                        if (!a) return !0;
                        for (var s = !0, l = 0; l < a.HeroIds.length; l++)
                            if (a.HeroIds[l] > 0) {
                                s = !1;
                                break
                            } if (s) return !0
                    } return !1
            }, t.prototype.RefreshPermanentPrivilegeState = function() {
                return !(!this.RefreshPermanentPrivilegeHero() && !this.RefreshPermanentPrivilegePersonality())
            }, t.prototype.RefreshPermanentPrivilegeHero = function() {
                if (m.default.Instance.IsGameModuleOpen(f.GameModuleType.PermanentPrivilege)) {
                    var e = h.ConfigDataComponent.Instance.GetConfigById(d.MallActivity_Config, f.GiftPackType.PermanentPrivilege),
                        t = L.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.PermanentPrivilege),
                        n = L.DataCenter.Instance.GetDataById(u.GiftPack_Model, e.Gifts[0].Items[0]);
                    if (e && n && t && e.Gifts.length > 0 && n.Count > 0) {
                        var o, r = t.IntArray[0];
                        if (o = r ? 1 == r ? P.SpecialDataKey.PermanentPrivilegeTime + P.Etc.DayDuration : r : L.DataCenter.Instance.GetIntData(f.UserDataKey.CreateTime), I.TimeUtil.GetDiffDays(o, L.RpcComponent.Instance.ServerTime, !0) > 0) return !0
                    }
                    return !1
                }
            }, t.prototype.RefreshPermanentPrivilegePersonality = function() {
                if (m.default.Instance.IsGameModuleOpen(f.GameModuleType.NewPersonPrivilege)) {
                    var e = h.ConfigDataComponent.Instance.GetConfigById(d.MallActivity_Config, f.GiftPackType.NewPersonPrivilege);
                    if (!e) return !1;
                    var t = L.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.NewPersonPrivilege);
                    if (!t) return !1;
                    var n = L.DataCenter.Instance.GetDataById(u.GiftPack_Model, e.Gifts[0].Items[0]);
                    if (!n) return !1;
                    if (e.Gifts.length > 0 && n.Count > 0) {
                        var o, r = t.IntArray[0];
                        if (o = r ? 1 == r ? P.SpecialDataKey.PermanentPrivilegeTime + P.Etc.DayDuration : r : L.DataCenter.Instance.GetIntData(f.UserDataKey.CreateTime), I.TimeUtil.GetDiffDays(o, L.RpcComponent.Instance.ServerTime, !0) > 0) return !0
                    }
                    return !1
                }
            }, t.prototype.RefreshPermanentPrivilegeToggle = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.MallActivity_Config, f.GiftPackType.PermanentPrivilege),
                    n = L.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.PermanentPrivilege),
                    o = L.DataCenter.Instance.GetDataById(u.GiftPack_Model, t.Gifts[e.Value1].Items[0]);
                if (o && n && t.Gifts.length > 0) {
                    var r, i = n.IntArray[e.Value1];
                    r = i ? 1 == i ? f.SpecialDataKey.PermanentPrivilegeTime + g.Etc.DayDuration : i : f.SpecialDataKey.PermanentPrivilegeTime;
                    var a = I.TimeUtil.GetDiffDays(r, L.RpcComponent.Instance.ServerTime, !0);
                    if (o.Count > 0 && a > 0) return !0
                }
                return !1
            }, t.prototype.RefreshMallNewPrivilegeToggle = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.MallActivity_Config, e.Value1),
                    n = L.DataCenter.Instance.GetDataById(u.MallActivity_Model, e.Value1),
                    o = L.DataCenter.Instance.GetDataById(u.GiftPack_Model, t.Gifts[0].Items[0]);
                if (o && n && t.Gifts.length > 0) {
                    var r, i = n.IntArray[0];
                    r = i ? 1 == i ? f.SpecialDataKey.PermanentPrivilegeTime + g.Etc.DayDuration : i : f.SpecialDataKey.PermanentPrivilegeTime;
                    var a = I.TimeUtil.GetDiffDays(r, L.RpcComponent.Instance.ServerTime, !0);
                    if (o.Count > 0 && a > 0) return !0
                }
                return !1
            }, t.prototype.RefreshWorldBossNode = function() {
                var e = L.ConfigDataComponent.Instance.GetGlobalSettingByKey("WorldBossChallengeCount");
                return p.DataCenter.Instance.GetIntData(P.UserDataKey.WorldBossChallengeCount) < e
            }, t.prototype.RefreshHeroTalentEntranceNode = function(e) {
                return !!(this.RefreshHeroPveTalentNode(e) || this.RefreshHeroPvpTalentNode(e) || this.HeroTalentResonanceCanUpgrade(e))
            }, t.prototype.RefreshHeroPveTalentNode = function(e) {
                var t = e.Value1;
                return this.RefreshHeroTalentActivateState(t, E.TalentType.PVE)
            }, t.prototype.RefreshHeroPvpTalentNode = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserHero_Model, t),
                    o = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("HeroTalentPVPUnlock");
                return n.PVETalentLevel >= o && this.RefreshHeroTalentActivateState(t, E.TalentType.PVP)
            }, t.prototype.RefreshHeroPet = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetHeroPet(t),
                    o = p.DataCenter.Instance.GetDataList(u.UserPet_Model);
                if (n.length > 0)
                    for (var r = n[0], i = p.DataCenter.Instance.GetDataById(u.UserPet_Model, r), a = h.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, i.Sid), s = 0; s < o.length; s++) {
                        var l = o[s],
                            c = h.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, l.Sid);
                        if (!m.default.Instance.GetPetOwnerCountByModel(l) && (c.Quality > a.Quality || c.Quality == a.Quality && l.Star > i.Star && !m.default.Instance.GetPetOwnerCountByModel(l))) return !0
                    } else
                        for (s = 0; s < o.length; s++)
                            if (l = o[s], !m.default.Instance.GetPetOwnerCountByModel(l)) return !0;
                return !1
            }, t.prototype.RefreshPetChangeBtn = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetHeroPet(t),
                    o = p.DataCenter.Instance.GetDataList(u.UserPet_Model);
                if (n.length > 0)
                    for (var r = n[0], i = p.DataCenter.Instance.GetDataById(u.UserPet_Model, r), a = h.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, i.Sid), s = 0; s < o.length; s++) {
                        var l = o[s],
                            c = h.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, l.Sid);
                        if (!m.default.Instance.GetPetOwnerCountByModel(l) && (c.Quality > a.Quality || c.Quality == a.Quality && l.Star > i.Star && !m.default.Instance.GetPetOwnerCountByModel(l))) return !0
                    }
                return !1
            }, t.prototype.HeroTalentActivateNode = function(e) {
                return this.RefreshHeroTalentActivateState(e.Value1, e.extra)
            }, t.prototype.RefreshHeroTalentActivateState = function(e, t) {
                var n = p.DataCenter.Instance.GetDataById(u.UserHero_Model, e);
                if (m.default.Instance.IsGameModuleUnlock(f.GameModuleType.HeroTalent)[0]) {
                    var o = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("HeroTalentHeroLevelUnlock"),
                        r = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("HeroTalentHeroStarUnlockLevel"),
                        i = n.Level;
                    if (n.TemplePosition > 0 && (i = n.TempleLevel), i >= o && n.StarLevel >= r) switch (t) {
                        case E.TalentType.PVE:
                            var a = Math.floor(n.PVETalentLevel / 6),
                                s = h.ConfigDataComponent.Instance.GetConfigById(d.HeroTalentItemConsume_Config, a + 1);
                            if (s) return this.CanActivateTalent(n, s.PVECommonItems, s.PVEHeroItems);
                            break;
                        case E.TalentType.PVP:
                            var l = Math.floor(n.PVPTalentLevel / 6),
                                c = h.ConfigDataComponent.Instance.GetConfigById(d.HeroTalentItemConsume_Config, l + 1);
                            if (c) return this.CanActivateTalent(n, c.PVPCommonItems, c.PVPHeroItems)
                    }
                }
                return !1
            }, t.prototype.CanActivateTalent = function(e, t, n) {
                for (var o = !0, r = 0; r < t.length; r++) p.DataCenter.Instance.IsItemEnough(t[r].Items[0], t[r].Items[1]) || (o = !1);
                var i = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e.HeroId);
                if (n) {
                    var a = [];
                    for (r = 0; r < n.length; r++) {
                        var s = n[r].Items[0],
                            l = n[r].Items[1],
                            c = n[r].Items[2],
                            u = void 0,
                            y = [];
                        switch (s) {
                            case f.HeroMaterialType.Self:
                                a.push({
                                    Type: m.UpStarHeroMaterialType.Hero,
                                    Id: e.Sid
                                }), u = m.default.GetHeroByItemIdAndStar(e.HeroId, l, a, !0);
                                break;
                            case f.HeroMaterialType.Bond:
                                u = m.default.GetHeroByItemIdAndStar(i.BondHero, l, a, !0);
                                break;
                            case f.HeroMaterialType.Element:
                                u = m.default.GetHeroByStarAndElement(l, i.ElementType, i.ElementType, a, !0);
                            case f.HeroMaterialType.Any:
                                u = m.default.GetHeroByStarAndElement(l, P.HeroElementType.All, i.ElementType, a, !0);
                                break;
                            case f.HeroMaterialType.SelfOnly:
                                a.push({
                                    Type: m.UpStarHeroMaterialType.Hero,
                                    Id: e.Sid
                                }), u = m.default.GetHeroByItemIdAndStar(e.HeroId, l, a, !0, !0)
                        }
                        for (var g = 0; g < u.length; g++) {
                            var I = u[g];
                            if (y.push(I), a.push(I), y.length >= c) break
                        }
                        if (y.length < c) {
                            o = !1;
                            break
                        }
                    }
                }
                return o
            }, t.prototype.RefreshLoverArrowStartNode = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return t.IntArray[0] > 0 || t.IntArray[1] > 0
            }, t.prototype.ChaosSummonActivityTicketAvailableNode = function() {
                return !1
            }, t.prototype.ChaosSummonActivityEntranceNode = function(e) {
                var t = this.ChaosSummonActivityDrawOnceNode(e),
                    n = this.ChaosSummonActivityDrawTenNode(e),
                    o = this.ChaosSummonActivityFreeGiftNode(e),
                    r = this.ChaosSummonActivityTicketAvailableNode(e);
                return t || n || o || r
            }, t.prototype.ChaosSummonActivityDrawOnceNode = function(e) {
                if (!this.IsInChaosSummonActivityTime(e.Value1)) return !1;
                var t = -1,
                    n = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    o = M.ActivityChaosSummonType.SummonOnce;
                return n.__CommonSummon.forEach(function(e) {
                    e.Id == o && (t = e.ConsumeItem[0].Items[0])
                }), t > 0 && p.DataCenter.Instance.IsItemEnough(t, M.default.SUMMON_ONCE_TICKET_COUNT)
            }, t.prototype.IsInChaosSummonActivityTime = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e],
                    n = t.Common.StartTime,
                    o = m.default.Instance.ComputeDeadTime(t.Common) - g.Etc.HourDuration * (24 - t.CustomPart.EndTime),
                    r = y.RpcComponent.Instance.ServerTime;
                return r >= n && r < o
            }, t.prototype.ChaosSummonActivityDrawTenNode = function(e) {
                if (!this.IsInChaosSummonActivityTime(e.Value1)) return !1;
                var t = -1,
                    n = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    o = M.ActivityChaosSummonType.SummonTen;
                return n.__CommonSummon.forEach(function(e) {
                    e.Id == o && (t = e.ConsumeItem[0].Items[0])
                }), t > 0 && p.DataCenter.Instance.IsItemEnough(t, M.default.SUMMON_TEN_TICKET_COUNT)
            }, t.prototype.ChaosSummonActivityPersonalityDrawOnceNode = function(e) {
                if (!this.IsInChaosSummonActivityTime(e.Value1)) return !1;
                var t = -1,
                    n = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    o = M.ActivityChaosSummonType.PersonalSummonOnce;
                return n.__CommonSummon.forEach(function(e) {
                    e.Id == o && (t = e.ConsumeItem[0].Items[0])
                }), t > 0 && p.DataCenter.Instance.IsItemEnough(t, M.default.SUMMON_ONCE_TICKET_COUNT)
            }, t.prototype.ChaosSummonActivityPersonalityDrawTenNode = function(e) {
                if (!this.IsInChaosSummonActivityTime(e.Value1)) return !1;
                var t = -1,
                    n = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    o = M.ActivityChaosSummonType.PersonalSummonTen;
                return n.__CommonSummon.forEach(function(e) {
                    e.Id == o && (t = e.ConsumeItem[0].Items[0])
                }), t > 0 && p.DataCenter.Instance.IsItemEnough(t, M.default.SUMMON_TEN_TICKET_COUNT)
            }, t.prototype.ChaosSummonActivityFreeGiftNode = function(e) {
                if (!this.IsInChaosSummonActivityTime(e.Value1)) return !1;
                for (var t = p.DataCenter.Instance.ActivityConfigs[e.Value1], n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1), o = 0; o < t._Packs.length; o++) {
                    var r = t._Packs[o],
                        i = n && n.Packs[r.Id] && n.Packs[r.Id].Items[0] ? n.Packs[r.Id].Items[0] : 0;
                    if (0 == r.Money && r.LimitCount > i) return !0
                }
                return !1
            }, t.prototype.RefreshAssistantBtnNode = function() {
                var e = m.default.GetModuleBonus();
                if (!e[P.ModuleBonusType.Helper] || 0 == e[P.ModuleBonusType.Helper].length) return !1;
                var t = A.default.GetItem(A.GameRecordDefine.AssistantDailyReddot);
                return !(null != t && I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) == I.TimeUtil.Get0ClockTs(parseInt(t)))
            }, t.prototype.LeftVerticalBtnNode = function() {
                var e = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.RankUI),
                    t = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.ActivityPreview);
                return e[0] && this.RefreshRankZoneNode() || this.RefreshRankCrossZoneNode() || t[0] && this.RefreshActivityPreview()
            }, t.prototype.RefreshActivityPreview = function() {
                var e = z.default.FilteringData(p.DataCenter.Instance.ActivityTrailers);
                if (!e || e.length <= 0) return !1;
                var t = A.default.GetItem(A.GameRecordDefine.ActivityPreviewHaveSeen);
                if (!t || 0 == Object.keys(t).length) return !0;
                for (var n = JSON.parse(t), o = 0; o < e.length; o++)
                    if (!n[e[o]._id]) return !0;
                return !1
            }, t.prototype.RefreshChaosSummonTrialHeroNode = function(e) {
                var t, n, o = e.Value1;
                if (o > 0) {
                    var r = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, o);
                    n = h.ConfigDataComponent.Instance.GetConfigById(d.ItemHeroCard_Config, r.IntArray[0]).HeroId;
                    for (var i = h.ConfigDataComponent.Instance.GetArrayConfig(d.CardChaosSummon_Config), a = 0; a < i.length; a++)
                        if (i[a].HeroId == n) {
                            t = i[a];
                            break
                        }
                } else {
                    i = h.ConfigDataComponent.Instance.GetArrayConfig(d.CardChaosSummon_Config);
                    var s = y.RpcComponent.Instance.ServerTime;
                    for (a = i.length - 1; a >= 0; a--)
                        if (s >= I.TimeUtil.StrToTime(i[a].StartTime)) {
                            n = (t = i[a]).HeroId;
                            break
                        }
                }
                if (t.HeroTry.length <= 0) return !1;
                if (!t.HeroTry[0].Items[0]) return !1;
                var l = 0,
                    c = p.DataCenter.Instance.GetSimpleData(f.UserDataKey.SPHeroTryMapIds);
                if (c) {
                    var g = c.IntArray.indexOf(t.HeroId);
                    g >= 0 && (l = c.IntArray[g + 1])
                }
                if (l == t.HeroTry.length - 1) return !1;
                var m = A.default.GetItem(A.GameRecordDefine.TrialHeroEverydayLogin);
                return !(null != m && I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) == I.TimeUtil.Get0ClockTs(parseInt(m)))
            }, t.prototype.RefreshHeroSummonTrialHeroNode = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.GetActivityConfigsByActId(t);
                if (!n.CustomPart.Enable) return !1;
                if (p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t).IntValue == n.Maps.length) return !1;
                var o = A.default.GetItem(A.GameRecordDefine.TrialHeroEverydayLogin);
                return !(null != o && I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) == I.TimeUtil.Get0ClockTs(parseInt(o)))
            }, t.prototype.RefreshPetTabHandBook = function() {
                for (var e = p.DataCenter.Instance.GetDataList(u.UserPet_Model), t = 0; t < e.length; t++)
                    if (this.RefreshPetHandBookCard({
                            Value1: e[t].Sid
                        })) return !0;
                return !1
            }, t.prototype.RefreshPetHandBookCard = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserPet_Model, t);
                return !!n && n.TeamStar < n.Star
            }, t.prototype.RefreshPetToggleNode = function() {
                if (this.RefreshPetHatchState()) return !0;
                for (var e = p.DataCenter.Instance.GetDataList(u.UserPet_Model), t = 0; t < e.length; t++)
                    if (this.RefreshPetCardState(e[t].Sid)) return !0;
                return !!this.RefreshPetTabHandBook() || !!this.RefreshPetDecomposeState()
            }, t.prototype.RefreshPetHatchState = function() {
                var e = p.DataCenter.Instance.GetArrayData(f.UserDataKey.PetNest),
                    t = e[0],
                    n = e[1];
                if (t) {
                    if (m.default.Instance.GetPetHatchNeedTime(t) + n < y.RpcComponent.Instance.ServerTime) return !0
                } else
                    for (var o = [f.CommonItemId.PetMagic1, f.CommonItemId.PetMagic2, f.CommonItemId.PetMagic3], r = 0; r < o.length; r++)
                        if (p.DataCenter.Instance.IsItemEnough(o[r], 1)) return !0;
                return !1
            }, t.prototype.RefreshPetCardState = function(e) {
                return !!this.IsPetCanDevelop(e) || !!this.PetNoHero(e) || !!this.RefreshPetInfoRefineToggle({
                    Value1: e
                })
            }, t.prototype.PetNoHero = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserPet_Model, e);
                if (t)
                    for (var n = 0; n < t.Owners.length; n++)
                        if (t.Owners[n]) return !1;
                return !0
            }, t.prototype.RefreshPetInfoRefineToggle = function(e) {
                return !!this.IsPetCanRefine(e) || !!this.IsPetRefineAttrUnlock(e)
            }, t.prototype.IsPetCanRefine = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserPet_Model, t);
                if (!n) return !1;
                for (var o = Math.max(1, p.DataCenter.Instance.GetIntData(f.UserDataKey.PetRefineLevel)), r = 0, i = !1, a = 0; a < n.Entries.length; a++) n.Entries[a] < 0 && r++, n.Entries[a] > 0 && (i = !0);
                if (!i) return !1;
                var s = h.ConfigDataComponent.Instance.GetConfigById(d.PetRefineLevel_Config, o).Consume[r];
                return !!p.DataCenter.Instance.IsItemEnough(f.CommonItemId.PetRefine, s)
            }, t.prototype.IsPetRefineAttrUnlock = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserPet_Model, t);
                if (!n) return !1;
                for (var o = h.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, t), r = h.ConfigDataComponent.Instance.GetConfigById(d.PetQuality_Config, o.Quality), i = 0; i < r.EntryUnlock.length; i++)
                    if (m.default.Instance.CheckPetRefineAttrUnlock(t, r.EntryUnlock[i].Items) && !n.Entries[i]) return !0;
                return !1
            }, t.prototype.IsPetCanUpLevel = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserPet_Model, t);
                if (null == n) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.PetStar_Config, n.Star);
                if (n.Level >= o.MaxLevel) return !1;
                for (var r = h.ConfigDataComponent.Instance.GetConfigById(d.PetLevel_Config, n.Level), i = h.ConfigDataComponent.Instance.GetConfigById(d.PetLevel_Config, n.Level + 1), a = new Map, s = r.Materials, l = 0; l < s.length; l++) {
                    var c = s[l].Items;
                    a.set(c[0], c[1])
                }
                var f = new Map,
                    y = i.Materials;
                for (l = 0; l < y.length; l++) c = y[l].Items, f.set(c[0], c[1]);
                var g = !0;
                return f.forEach(function(e, t) {
                    var n = 0;
                    a.has(t) && (n = a.get(t));
                    var o = e - n;
                    p.DataCenter.Instance.GetItemCount(t) < o && (g = !1)
                }), g
            }, t.prototype.IsPetCanUpStar = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserPet_Model, t);
                if (null == n) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, t);
                if (n.Star >= o.MaxStar) return !1;
                for (var r = h.ConfigDataComponent.Instance.GetConfigById(d.PetStar_Config, n.Star + 1), i = 0; i < r.StarMaterials.length; i++) {
                    var a = r.StarMaterials[i].Items,
                        s = a[0],
                        l = a[1];
                    if (0 == s && (s = Number.parseInt("10" + o.Id)), !p.DataCenter.Instance.IsItemEnough(s, l)) return !1
                }
                return !0
            }, t.prototype.IsPetCanDevelop = function(e) {
                return !!this.IsPetCanUpLevel({
                    Value1: e
                }) || !!this.IsPetCanUpStar({
                    Value1: e
                })
            }, t.prototype.RefreshPetDecomposeState = function() {
                for (var e = p.DataCenter.Instance.GetDataList(u.UserPet_Model), t = 0; t < e.length; t++) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, e[t].Sid);
                    if (n && e[t].Star >= n.MaxStar) {
                        var o = Number("10" + e[t].Sid);
                        if (p.DataCenter.Instance.GetItemCount(o) > 0) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshActivityStoryNode = function() {}, t.prototype.RefreshHeroRisingPackActivity = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!n) return !1;
                if (1 !== t.CustomPart.ActivityType) return !1;
                if (!n.IntArray[0]) return !1;
                for (var o = 0, r = 0; o < t.__Heros.length; o++)
                    for (; r < t.__Heros[o].GiftDay.length && !(t.Common.StartTime + 864e5 * t.__Heros[o].GiftDay[r] > y.RpcComponent.Instance.ServerTime) && 1 !== n.IntMap[r + 1]; r++) {
                        for (var i = void 0, a = t.__Heros[o].PackIds[0], s = 0; s < t._Packs.length; s++)
                            if (t._Packs[s].Id === a) {
                                i = t._Packs[s].Id;
                                break
                            } if (1 !== n.Packs[i].Items[0]) break;
                        return !0
                    }
                return !1
            }, t.prototype.RefreshActivityLuckyBagNode = function(e) {
                return !!(this.RefreshCommonLuckyBagNode(e) || this.RefreshHighLuckyBagNode(e) || this.RefreshSpecialLuckyBagNode(e) || this.RefreshAccumulatedChargeNode(e) || this.RefreshTreasureBoxNode(e))
            }, t.prototype.RefreshCommonLuckyBagNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1].__CommonSummon[0].ConsumeItem[0].Items;
                return p.DataCenter.Instance.GetItemCount(t[0]) > t[1]
            }, t.prototype.RefreshHighLuckyBagNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1].__CommonSummon[1].ConsumeItem[0].Items;
                return p.DataCenter.Instance.GetItemCount(t[0]) > t[1]
            }, t.prototype.RefreshSpecialLuckyBagNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1].__CommonSummon[2].ConsumeItem[0].Items;
                return p.DataCenter.Instance.GetItemCount(t[0]) > t[1]
            }, t.prototype.RefreshAccumulatedChargeNode = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n],
                        r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, 1e4 * t._id + o.Id);
                    if ((null == r || null == r.Progress ? 0 : r.Progress) >= o.TotalCount && !r.IsCompleted) return !0
                }
                return !1
            }, t.prototype.RefreshTreasureBoxNode = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), o = n.IntArray[1]; o < t.Levels.length; o++)
                    if (n.IntArray[0] >= t.Levels[o].Xp) return !0;
                return !1
            }, t.prototype.RefreshActivityBossNode = function(e) {
                var t = this.RefreshActivityBossChallengeNode(e),
                    n = this.RefreshActivityBossTaskDailyNode(e),
                    o = this.RefreshActivityBossTaskPeriodNode(e);
                return t || n || o
            }, t.prototype.RefreshActivityBossChallengeNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = m.default.Instance.ComputeDeadTime(t.Common);
                return !(y.RpcComponent.Instance.ServerTime > n || (L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1).IntArray[1] || 0) > 0)
            }, t.prototype.RefreshActivityBossTaskDailyNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily && n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshActivityBossTaskPeriodNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily || n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshActivityBossTaskNode = function(e) {
                return this.RefreshActivityBossTaskDailyNode(e) || this.RefreshActivityBossTaskPeriodNode(e)
            }, t.prototype.RefreshCampSupportNode = function(e) {
                if (this.RefreshCampSupportGiftNode(e)) return !0;
                if (this.RefreshCampSupportTaskNode(e)) return !0;
                if (this.CanSupportNode(e)) return !0;
                var t = e.Value1,
                    n = L.DataCenter.Instance.ActivityConfigs[t],
                    o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    r = o.IntArray[0];
                if (r) {
                    for (var i = 0; i < n.__PersonReward.length; i++) {
                        var a = n.__PersonReward[i];
                        if (r == a.GroupId && -1 == o.Int2DArray[0].Items.indexOf(a.Id) && o.IntArray[1] >= a.SupportValue) return !0
                    }
                    var s = p.DataCenter.Instance.GetTempData("RefreshSupportInfo");
                    s && n.__GroupReward.forEach(function(e) {
                        if (e.GroupId == r && -1 == o.Int2DArray[1].Items.indexOf(e.Id) && s.groupValue.Items[r - 1] >= e.SupportValue) return !0
                    })
                }
                return !1
            }, t.prototype.RefreshCampSupportGiftNode = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.ActivityConfigs[t],
                    o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t);
                if (o.IntArray[0] > 0 && m.default.Instance.ComputeDeadTime(n.Common) - y.RpcComponent.Instance.ServerTime - g.Etc.DayDuration <= 0) return !1;
                for (var r = 0; r < n._Packs.length; r++) {
                    var i = n._Packs[r];
                    if (!i.Money && (o && o.Packs[i.Id] && o.Packs[i.Id].Items[0] ? o.Packs[i.Id].Items[0] : 0) < i.LimitCount) return !0
                }
                return !1
            }, t.prototype.RefreshCampSupportTaskNode = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.ActivityConfigs[t];
                if (L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t).IntArray[0] > 0)
                    for (var o = 0; o < n._Tasks.length; o++) {
                        var r = n._Tasks[o],
                            i = L.DataCenter.Instance.GetDataById(u.UserTask_Model, r.Id + t * g.Etc.Multiplier);
                        if (r.TotalCount == i.Progress && !i.IsCompleted) return !0
                    }
                return !1
            }, t.prototype.CanSupportNode = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.ActivityConfigs[t];
                if (L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t).IntArray[0] > 0 && m.default.Instance.ComputeDeadTime(n.Common) - y.RpcComponent.Instance.ServerTime - 3 * g.Etc.HourDuration > 0)
                    for (var o = 0; o < n.CustomPart.Items.length; o++)
                        if (p.DataCenter.Instance.GetItemCount(n.CustomPart.Items[o].Items[0]) > 0) return !0;
                return !1
            }, t.prototype.RefreshActiveCollectionEntry = function(e) {
                var t = L.DataCenter.Instance.ActivityFrameMap[e.Value1];
                if (!t) return !1;
                for (var n = 0; n < t.length; n++) {
                    var o = p.DataCenter.Instance.ActivityConfigs[t[n]],
                        r = T.ActivityData.GetTopicActivityTypeToRedDot(o.Common.Type);
                    if (null != r && r.callBackFunc({
                            Value1: o._id
                        })) return !0
                }
                return !1
            }, t.prototype.RefreshCrossServerChampionShipGuessNode = function() {
                var e = y.RpcComponent.Instance.ServerTime,
                    t = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceRoundGuessDuration"),
                    n = t + h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceRoundBattleDuration"),
                    o = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceStartWeekDay"),
                    r = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("CrossChampionRaceStartHour"),
                    i = F.ChampionShipRound.RACE_Group_ROUND,
                    a = F.ChampionShipRound.RACE_64_ROUND + F.ChampionShipRound.RACE_8_ROUND + i,
                    s = I.TimeUtil.GetMondayClock0Ts(y.RpcComponent.Instance.ServerTime) + g.Etc.DayDuration * (o - 1) + g.Etc.HourDuration * r,
                    l = Math.ceil((e - s) / n),
                    c = e - s - (l - 1) * n,
                    u = A.default.GetItem(A.GameRecordDefine.ChampionShipGuessRedDote);
                return l > 0 && l <= a && c < t && !(u == s + "_" + l)
            }, t.prototype.RefreshAllZoneChampionShipGuessNode = function() {
                var e = y.RpcComponent.Instance.ServerTime,
                    t = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceRoundGuessDuration"),
                    n = t + h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceRoundBattleDuration"),
                    o = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceStartWeekDay"),
                    r = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("AllZoneChampionRaceStartHour"),
                    i = F.ChampionShipRound.RACE_64_ROUND + F.ChampionShipRound.RACE_8_ROUND + 0,
                    a = I.TimeUtil.GetMondayClock0Ts(y.RpcComponent.Instance.ServerTime) + g.Etc.DayDuration * (o - 1) + g.Etc.HourDuration * r,
                    s = Math.ceil((e - a) / n),
                    l = e - a - (s - 1) * n,
                    c = A.default.GetItem(A.GameRecordDefine.AllZoneChampionShipGuessRedDote);
                return s > 0 && s <= i && l < t && !(c == a + "_" + s)
            }, t.prototype.RefreshAllZoneChampionShipPredictNode = function() {
                return !!this.RefreshChampionPreviewRankButton()
            }, t.prototype.RefreshDailyCheckInActivityPanel = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!t || !n || !t.DailyRewards) return !1;
                var o = n.IntValue;
                return o != t.DailyRewards.length && y.RpcComponent.Instance.ServerTime > t.Common.StartTime + o * g.Etc.DayDuration
            }, t.prototype.RefreshWarmUpActivityPanel = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!t || !n || !t.DailyRewards) return !1;
                var o = n.IntValue;
                return o != t.DailyRewards.length && y.RpcComponent.Instance.ServerTime > t.Common.StartTime + o * g.Etc.DayDuration
            }, t.prototype.RefreshLimitTimeSummonNode = function(e) {
                return this.RefreshLimitTimeSummonFreeNode(e)
            }, t.prototype.RefreshLimitTimeSummonFreeNode = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1),
                    n = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    o = !1;
                if (t && t.Summons) {
                    var r = n.__SummonType[0].Id,
                        i = t.Summons[r];
                    o = i ? i.FreeCount > 0 : n.__SummonType[0].StartFreeCount > 0
                }
                return o
            }, t.prototype.RefreshHerosRisingStarGiftPanel = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    r = p.DataCenter.Instance.GetItemCount(n.CustomPart.ProgressItemId);
                if (!n || !o || null == r || !o.IntArray) return !1;
                if (this.RefreshHerosRisingHeart(e)) return !0;
                if (this.RefreshHerosRisingPower(e)) return !0;
                if (this.RefreshHerosRisingTech(e)) return !0;
                if (this.RefreshHerosRisingFigth(e)) return !0;
                if (this.RefreshHerosRisingBreak(e)) return !0;
                if (this.RefreshHerosRisingChaos(e)) return !0;
                for (var i = 0; i < n.__Rewards.length; i++)
                    if (n.__Rewards[i].Progress <= r && -1 == o.IntArray.indexOf(n.__Rewards[i].Id)) return !0;
                return !1
            }, t.prototype.RefreshHerosRising = function(e, t) {
                var n = p.DataCenter.Instance.ActivityConfigs[e]._Tasks;
                n = n.filter(function(e) {
                    return e.Condition[1] == t
                });
                for (var o = 0; o < n.length; o++) {
                    var r = n[o],
                        i = p.DataCenter.Instance.GetDataById(u.UserTask_Model, r.Id + 1e4 * e);
                    if (i && i.Progress && !i.IsCompleted && !i.IsCompleted && i.Progress >= r.TotalCount) return !0
                }
            }, t.prototype.RefreshHerosRisingHeart = function(e) {
                return this.RefreshHerosRising(e.Value1, f.HeroElementType.Heart)
            }, t.prototype.RefreshHerosRisingPower = function(e) {
                return this.RefreshHerosRising(e.Value1, f.HeroElementType.Power)
            }, t.prototype.RefreshHerosRisingTech = function(e) {
                return this.RefreshHerosRising(e.Value1, f.HeroElementType.Tech)
            }, t.prototype.RefreshHerosRisingFigth = function(e) {
                return this.RefreshHerosRising(e.Value1, f.HeroElementType.Fight)
            }, t.prototype.RefreshHerosRisingBreak = function(e) {
                return this.RefreshHerosRising(e.Value1, f.HeroElementType.Break)
            }, t.prototype.RefreshHerosRisingChaos = function(e) {
                return this.RefreshHerosRising(e.Value1, f.HeroElementType.Chaos)
            }, t.prototype.RefreshCarnivalSkinPanel = function(e) {
                for (var t = e.Value1, n = p.DataCenter.Instance.ActivityConfigs[t], o = n._Tasks, r = o[o.length - 1], i = p.DataCenter.Instance.GetDataById(u.UserTask_Model, r.Id + 1e4 * t).Progress, a = 0; a < o.length; a++) {
                    var s = o[a],
                        l = p.DataCenter.Instance.GetDataById(u.UserTask_Model, s.Id + 1e4 * n._id);
                    if (s.TotalCount <= i && 0 == l.IsCompleted) return !0
                }
                return !1
            }, t.prototype.RefreshCollectionPavilionEntryNode = function() {
                return this.RefreshHeroFetterTotalEntry() || this.RefreshStoryEntryNode() || this.RefreshPersonalityHandbookNode() || this.RefreshSkinHandbookNode() || this.RefreshStarPieceResonanceEntryNode() || this.RefreshUserTitlePromotionBtn() || this.RefreshDukeBtnNode() || this.RefreshDukeScrollEntry() || this.RefreshStrategyPageFormation() || this.RefreshStrategyPageElement() || this.RefreshStrategyPageOccupation() || this.RefreshStrategyPageUniversal() || this.RefreshGemGalleryReddot() || this.RefreshChaosHeroTempleEntry() || this.RefreshSoulRecordEntry() || this.RefreshExclusiveGalleryPointCollectNode() || this.RefreshExclusiveGalleryAnyWeaponOperational() || this.RefreshExclusiveGalleryPointUpgradeNode() || this.RefreshTreasureHouseEntry() || this.RefreshHeroHandbookEntry() || this.RefreshPetGalleryEntryNode() || this.RefreshLuckyCharmGalleryEntryNode() || this.RefreshPowerCoreGalleryEntryNode() || this.RefreshAngelHandbookEntry() || this.RefreshNewPersonalityEntry()
            }, t.prototype.RefreshCollectionPavilionMoudelEntry = function(e) {
                var t = !1;
                switch (e.Value1) {
                    case K.CollectionPavilionEntryItem.HeroFetter:
                        t = this.RefreshHeroFetterTotalEntry();
                        break;
                    case K.CollectionPavilionEntryItem.Story:
                        t = this.RefreshStoryEntryNode();
                        break;
                    case K.CollectionPavilionEntryItem.PersonalityHandbook:
                        t = this.RefreshPersonalityHandbookNode();
                        break;
                    case K.CollectionPavilionEntryItem.SkinHandbook:
                        t = this.RefreshSkinHandbookNode();
                        break;
                    case K.CollectionPavilionEntryItem.StarPieceResonance:
                        t = this.RefreshStarPieceResonanceEntryNode();
                        break;
                    case K.CollectionPavilionEntryItem.Designation:
                        t = this.RefreshUserTitlePromotionBtn() || this.RefreshDukeBtnNode() || this.RefreshDukeScrollEntry() || this.RefreshStrategyPageFormation() || this.RefreshStrategyPageElement() || this.RefreshStrategyPageOccupation() || this.RefreshStrategyPageUniversal();
                        break;
                    case K.CollectionPavilionEntryItem.GemGallery:
                        t = this.RefreshGemGalleryReddot();
                        break;
                    case K.CollectionPavilionEntryItem.SoulRecord:
                        t = this.RefreshSoulRecordEntry();
                        break;
                    case K.CollectionPavilionEntryItem.ChaosHero:
                        t = this.RefreshChaosHeroTempleEntry();
                        break;
                    case K.CollectionPavilionEntryItem.ExclusiveGallery:
                        t = this.RefreshExclusiveGalleryPointCollectNode() || this.RefreshExclusiveGalleryAnyWeaponOperational() || this.RefreshExclusiveGalleryPointUpgradeNode();
                        break;
                    case K.CollectionPavilionEntryItem.TreasureHouse:
                        t = this.RefreshTreasureHouseEntry();
                        break;
                    case K.CollectionPavilionEntryItem.HeroHandbook:
                        t = this.RefreshHeroHandbookEntry();
                        break;
                    case K.CollectionPavilionEntryItem.PetGallery:
                        t = this.RefreshPetGalleryEntryNode();
                        break;
                    case K.CollectionPavilionEntryItem.LuckyCharmGallery:
                        t = this.RefreshLuckyCharmGalleryEntryNode();
                        break;
                    case K.CollectionPavilionEntryItem.CoreGallery:
                        t = this.RefreshPowerCoreGalleryEntryNode();
                        break;
                    case K.CollectionPavilionEntryItem.AngelHandbook:
                        t = this.RefreshAngelHandbookEntry();
                        break;
                    case K.CollectionPavilionEntryItem.NewPersonality:
                        t = this.RefreshNewPersonalityEntry();
                        break;
                    case K.CollectionPavilionEntryItem.Pet:
                        t = this.RefreshPetTabHandBook();
                        break;
                    case K.CollectionPavilionEntryItem.MagicCircle:
                        t = this.MagicCircleHandBook()
                }
                return t
            }, t.prototype.RefreshGemGalleryReddot = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.GemGallery)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.GemGallery)) return !1;
                var e = this.RefreshGemGalleryLevelUp(),
                    t = this.RefreshGemGallerySlotType1(),
                    n = this.RefreshGemGallerySlotType2(),
                    o = this.RefreshGemGallerySlotType3();
                return e || t || n || o
            }, t.prototype.RefreshGemGalleryLevelUp = function() {
                var e = L.DataCenter.Instance.GetSimpleData(f.UserDataKey.GemGalleryLevel),
                    t = e && e.V ? e.V : 0,
                    n = L.ConfigDataComponent.Instance.GetConfigById(d.GemGalleryLevel_Config, t),
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.GemGalleryLevel_Config, t + 1);
                if (o) {
                    var r = {};
                    for (var i in o.Materials.forEach(function(e) {
                            var t = e.Items[0],
                                n = e.Items[1];
                            r[t] ? r[t] += n : r[t] = n
                        }), n.Materials && n.Materials.forEach(function(e) {
                            var t = e.Items[0],
                                n = e.Items[1];
                            r[t] && (r[t] -= n)
                        }), r)
                        if (!p.DataCenter.Instance.IsItemEnough(Number(i), r[i])) return !1;
                    return !0
                }
                return !1
            }, t.prototype.RefreshGemGallerySlotType1 = function() {
                return this.RefreshGemGallerySlot(1)
            }, t.prototype.RefreshGemGallerySlotType2 = function() {
                return this.RefreshGemGallerySlot(2)
            }, t.prototype.RefreshGemGallerySlotType3 = function() {
                return this.RefreshGemGallerySlot(3)
            }, t.prototype.RefreshGemGallerySlot = function(e) {
                var t = L.DataCenter.Instance.GetDataList(u.GemEquip_Model),
                    n = m.default.GetGemsArrayByType(t),
                    o = {},
                    r = L.ConfigDataComponent.Instance.GetArrayConfig(d.GemGallerySlot_Config),
                    i = [];
                if (r.forEach(function(t) {
                        t.Type == e && i.push(t)
                    }), n[e]) {
                    var a = !1;
                    n[e].forEach(function(e) {
                        e.GallerySlot > 0 ? o[e.GallerySlot] = e : a = !0
                    });
                    for (var s = L.DataCenter.Instance.GetSimpleData(f.UserDataKey.GemGalleryLevel), l = s && s.V ? s.V : 0, c = 0; c < i.length; c++) {
                        var p = i[c];
                        if (l >= p.Requirements) {
                            if (!o[p.Id] && a) return !0;
                            for (var h = 0; h < n[e].length; h++) {
                                var y = n[e][h];
                                if (!y.GallerySlot && y.ItemId > o[p.Id].ItemId) return !0
                            }
                        }
                    }
                }
                return !1
            }, t.prototype.RefreshCollectionPavilionBottomToggle = function(e) {
                for (var t = e.extra, n = 0; n < t.length; n++) {
                    var o = {
                        Value1: t[n]
                    };
                    if (this.RefreshCollectionPavilionMoudelEntry(o)) return !0
                }
                return !1
            }, t.prototype.RefreshHeroFetterTotalEntry = function() {
                var e = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.HeroFetter),
                    t = m.default.Instance.IsGameModuleOpen(P.GameModuleType.HeroFetter);
                if (!e[0] || !t) return !1;
                for (var n = h.ConfigDataComponent.Instance.GetArrayConfig(d.HeroFetter_Config), o = 0; o < n.length; o++) {
                    var r = {
                        Value1: n[o].Id
                    };
                    if (this.RefreshHeroFetterSingleEntry(r)) return !0
                }
                return !1
            }, t.prototype.RefreshPersonalityHandbookBtn = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserHero_Model, e.Value1),
                    n = W.default.GetCurrentPersonalityIdByHeroId(t.HeroId);
                if (!n) return !1;
                for (var o = L.DataCenter.Instance.GetArrayData(f.UserDataKey.ActivePersonalityIdLevels), r = L.ConfigDataComponent.Instance.GetConfigById(d.PersonalityAddon_Config, n), i = 0, a = 0; a < o.length; a += 2)
                    if (o[a] == r.Id && r.Attrs[o[a + 1]]) {
                        i = r.Attrs[o[a + 1]].Items[0];
                        break
                    } if (r.Attrs.length > 0) {
                    var s = r.Attrs.length;
                    if (i >= r.Attrs[s - 1].Items[0]) return !1
                }
                var l = {};
                return l.Id = r.Id, l.HeroId = r.HeroId, l.Attrs = r.Attrs, l.Type = j.CollectionHandbookType.Personality, !!j.default.CheckCardCanActive(l)
            }, t.prototype.RefreshSkinHandbookButton = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.HeroSkin_Config, e.Value1);
                if (t) {
                    var n = !1,
                        o = L.ConfigDataComponent.Instance.GetArrayConfig(d.HeroSkinLevel_Config),
                        r = L.DataCenter.Instance.GetDataById(u.HeroSkin_Model, e.Value1);
                    r && r.PicLevel > 0 && r.PicLevel == o.length && (n = !0);
                    var i = {};
                    if (i.Id = t.Id, i.HeroId = t.HeroId, i.AttrIds = t.PicAttrIds, i.Type = j.CollectionHandbookType.Skin, !n && j.default.CheckCardCanActive(i)) return !0
                }
                return !1
            }, t.prototype.RefreshPersonalityHandbookNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.SkinPersonalityPic)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.SkinPersonalityPic)) return !1;
                for (var e = L.DataCenter.Instance.GetArrayData(f.UserDataKey.ActivePersonalityIdLevels), t = L.ConfigDataComponent.Instance.GetArrayConfig(d.PersonalityAddon_Config), n = 0; n < t.length; n++) {
                    for (var o = 0, r = 0; r < e.length; r += 2)
                        if (e[r] == t[n].Id && t[n].Attrs[e[r + 1]]) {
                            o = t[n].Attrs[e[r + 1]].Items[0];
                            break
                        } if (t[n].Attrs.length > 0) {
                        var i = t[n].Attrs.length;
                        if (o >= t[n].Attrs[i - 1].Items[0]) continue
                    }
                    var a = {};
                    if (a.Id = t[n].Id, a.HeroId = t[n].HeroId, a.Attrs = t[n].Attrs, a.Type = j.CollectionHandbookType.Personality, j.default.CheckCardCanActive(a)) return !0
                }
                return !1
            }, t.prototype.RefreshSkinHandbookNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.SkinPersonalityPic)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.SkinPersonalityPic)) return !1;
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.HeroSkin_Config), t = 0; t < e.length; t++) {
                    var n = e[t];
                    if (n) {
                        var o = !1,
                            r = L.ConfigDataComponent.Instance.GetArrayConfig(d.HeroSkinLevel_Config),
                            i = L.DataCenter.Instance.GetDataById(u.HeroSkin_Model, n.Id);
                        i && i.PicLevel > 0 && i.PicLevel == r.length && (o = !0);
                        var a = {};
                        if (a.Id = n.Id, a.HeroId = n.HeroId, a.AttrIds = n.PicAttrIds, a.Type = j.CollectionHandbookType.Skin, !o && j.default.CheckCardCanActive(a)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshHeroFetterSingleEntry = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.HeroFetter_Config, e.Value1),
                    n = L.DataCenter.Instance.GetDataById(u.HeroFetter_Model, t.Id),
                    o = n.Star ? n.Star : 0;
                return !!(!n.IsReceive && o > 0 || this.RefreshHeroFetterSkillUpNode(e))
            }, t.prototype.RefreshHeroFetterSkillUpNode = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.HeroFetter_Config, e.Value1),
                    n = L.DataCenter.Instance.GetDataById(u.HeroFetter_Model, t.Id),
                    o = n.Level ? n.Level : 0,
                    r = 0;
                if (o == t.Attrs.length) return !1;
                for (var i = 0; i < t.HeroIds.length; i++) {
                    var a = L.DataCenter.Instance.GetDataById(u.HeroInfo_Model, t.HeroIds[i]);
                    if (!a) return !1;
                    r += a.MaxStar
                }
                if (r < t.Attrs[o].Items[0]) return !1;
                var s = h.ConfigDataComponent.Instance.GetConfigById(d.HeroFetterLevel_Config, o + 1);
                for (i = 0; i < s.Materials.length; i++) {
                    var l = s.Materials[i].Items[0],
                        c = s.Materials[i].Items[1];
                    if (o > 0)
                        for (var f = h.ConfigDataComponent.Instance.GetConfigById(d.HeroFetterLevel_Config, o), y = 0; y < f.Materials.length; y++) {
                            var g = f.Materials[y].Items;
                            if (g[0] == l) {
                                c -= g[1];
                                break
                            }
                        }
                    if (!p.DataCenter.Instance.IsItemEnough(l, c)) return !1
                }
                return !0
            }, t.prototype.OnAngelDescButtonNode = function(e) {
                var t = L.ConfigDataComponent.Instance.GetConfigById(d.AngelBase_Config, e.Value1);
                if (!t || !t.AngelIntroduce) return !1;
                var n = L.DataCenter.Instance.GetDataById(u.UserAngel_Model, e.Value1);
                return !!n && n.GetReward <= 0
            }, t.prototype.RefreshStoryEntryNode = function() {
                var e = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Story),
                    t = m.default.Instance.IsGameModuleOpen(P.GameModuleType.Story);
                if (!e[0] || !t) return !1;
                for (var n = h.ConfigDataComponent.Instance.GetArrayConfig(d.CollectionStory_Config), o = 0; o < n.length; o++) {
                    var r = {
                        Value1: n[o].Id
                    };
                    if (this.RefreshStoryUpStarEntryNode(r)) return !0
                }
                return !1
            }, t.prototype.RefreshStoryUpStarEntryNode = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.CollectionStory_Config, e.Value1),
                    n = t.Time.split("|");
                if (L.RpcComponent.Instance.ServerTime > I.TimeUtil.StrToTime(n[0]) + 3 * g.Etc.DayDuration) {
                    var o = L.DataCenter.Instance.GetDataById(u.UserStar_Model, t.StarIds[2]);
                    if ((o ? o.Count : 0) < t.StarIds[1] && this.RefreshStoryUpStarNode(e)) return !0
                }
                return !1
            }, t.prototype.RefreshStoryUpStarNode = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.CollectionStory_Config, e.Value1),
                    n = h.ConfigDataComponent.Instance.GetConfigById(d.CollectionStoryStar_Config, t.StarIds[0]),
                    o = L.DataCenter.Instance.GetDataById(u.UserStar_Model, t.StarIds[2]),
                    r = o ? o.Count : 0;
                return !!p.DataCenter.Instance.IsItemEnough(n.ItemId, n.ItemCounts[r])
            }, t.prototype.RefreshSummonBox = function(e) {
                if (this.RefreshSummonBoxProgress(e)) return !0;
                if (this.RefreshSummonBoxPack(e)) return !0;
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n, o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                if (o && !o.IntArray.length) return !0;
                if (!o || !o.Summons || !o.Summons[t.__CommonSummon[0].SummonType]) return !1;
                var r = t.__CommonSummon[0].SummonType;
                if ((n = o.Summons[r] && o.Summons[r].TotalItem[t.__CommonSummon[0].ConsumeItem[0].Items[0]] ? o.Summons[r].TotalItem[t.__CommonSummon[0].ConsumeItem[0].Items[0]] : 0) >= t.__CommonSummon[0].ConsumeItem[0].Items.length - 1) return !1;
                var i = t.__CommonSummon[0].ConsumeItem[0],
                    a = i.Items[n + 1];
                return p.DataCenter.Instance.GetItemCount(i.Items[0]) >= a
            }, t.prototype.RefreshSummonBoxProgress = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t || !t._Tasks) return !1;
                for (var n = t._Tasks, o = 0; o < n.length; o++) {
                    var r = n[o],
                        i = p.DataCenter.Instance.GetDataById(u.UserTask_Model, r.Id + 1e4 * t._id);
                    if (i && (i.Progress ? i.Progress : 0) >= r.TotalCount && 0 == i.IsCompleted) return !0
                }
                return !1
            }, t.prototype.RefreshSummonBoxPack = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                if (!n) return !1;
                for (var o = t._Packs, r = 0; r < o.length; r++) {
                    var i = o[r];
                    if (0 == i.Money && !n.Packs[i.Id]) return !0
                }
                return !1
            }, t.prototype.RefreshStrongholdWarTaskBtnNode = function() {
                if (p.DataCenter.Instance.AllianceId > 0) {
                    for (var e = p.DataCenter.Instance.GetDataList(u.UserTask_Model), t = 0; t < e.length; t++) {
                        var o = e[t],
                            r = h.ConfigDataComponent.Instance.GetConfigById(d.TaskBase_Config, o.Sid);
                        if (r && r.Type == P.TaskType.WarDaily && o.Progress >= r.TotalCount && !o.IsCompleted && m.default.IsTaskCanShow(o.Sid)) return !0
                    }
                    if (n.CheckTaskPointRewardStateByType(P.TaskType.WarDaily)) return !0
                }
                return !1
            }, t.prototype.StrongholdWarTerritoryReawardBtnNode = function() {
                if (p.DataCenter.Instance.AllianceId > 0) {
                    var e = p.DataCenter.Instance.GetTempData(q.default.TEMPDATA_STRONGHOLDREWARD);
                    if (e && e.length > 0)
                        for (var t = 0; t < e.length; t++)
                            if (e[t].Items[1] > 1) return !0
                }
                return !1
            }, t.prototype.StrongholdWarActivePoint = function() {
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("War_PointHour") * g.Etc.HourDuration,
                    t = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("War_PointHourStart"),
                    n = y.RpcComponent.Instance.ServerTime,
                    o = I.TimeUtil.GetMondayClock0Ts() + t * g.Etc.HourDuration;
                if (n >= o) {
                    var r = p.DataCenter.Instance.GetIntData(f.UserDataKey.WarPointTs) || o - e;
                    if (Math.ceil((n - r) / e) > 1) return !0
                }
                return !1
            }, t.prototype.RefreshStarPieceResonanceEntryNode = function() {
                var e = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.StarPieceResonance),
                    t = m.default.Instance.IsGameModuleOpen(P.GameModuleType.StarPieceResonance);
                if (!e[0] || !t) return !1;
                var n = h.ConfigDataComponent.Instance.GetArrayConfig(d.StarPieceResonance_Config),
                    o = {},
                    r = p.DataCenter.Instance.GetSimpleData(f.UserDataKey.StarPieceResonance);
                if (r)
                    for (var i = 0; i < r.IntArray.length; i += 2) o[r.IntArray[i]] = r.IntArray[i + 1];
                for (i = 0; i < n.length; i++) {
                    var a = n[i].StarPieceIds,
                        s = o[n[i].Id] ? o[n[i].Id] : 0;
                    if (!(s >= n[i].Attrs.length)) {
                        for (var l = !0, c = 0; c < a.length; c++) {
                            var y = h.ConfigDataComponent.Instance.GetConfigById(S.StarPiece_Config, a[c]),
                                g = p.DataCenter.Instance.GetDataById(u.StarPiece_Model, y.Id);
                            if (!g || g.Star < s + 1) {
                                l = !1;
                                break
                            }
                        }
                        if (l) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshAngelToggleNode = function() {
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.AngelBase_Config), t = 0; t < e.length; t++) {
                    var n = {};
                    if (n.Value1 = e[t].Id, this.RefreshAngel(n)) return !0
                }
                return !1
            }, t.prototype.RefreshAngel = function(e) {
                return !(!L.DataCenter.Instance.GetDataById(u.UserAngel_Model, e.Value1) || !this.RefreshAngelAttr(e) && !this.RefreshAngelUpStarButton(e))
            }, t.prototype.RefreshAngelAttr = function(e) {
                var t = this.OnAngelDescButtonNode(e),
                    n = this.IsAngelCanUpLevel(e),
                    o = this.RefreshAngelSkinButton(e);
                return !!(t || n || o)
            }, t.prototype.IsAngelCanUpLevel = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserAngel_Model, t);
                if (null == n) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.AngelStar_Config, 1e3 * t + n.StarLevel);
                if (n.Level >= o.LevelLimit) return !1;
                for (var r = h.ConfigDataComponent.Instance.GetConfigById(d.AngelLevel_Config, n.Level), i = h.ConfigDataComponent.Instance.GetConfigById(d.AngelLevel_Config, n.Level + 1), a = new Map, s = r.Materials, l = 0; l < s.length; l++) {
                    var c = s[l].Items;
                    a.set(c[0], c[1])
                }
                var f = new Map,
                    y = i.Materials;
                for (l = 0; l < y.length; l++) c = y[l].Items, f.set(c[0], c[1]);
                var g = !0;
                return f.forEach(function(e, t) {
                    var n = 0;
                    a.has(t) && (n = a.get(t));
                    var o = e - n;
                    p.DataCenter.Instance.GetItemCount(t) < o && (g = !1)
                }), g
            }, t.prototype.RefreshAngelSkinButton = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.AngelBase_Config, e.Value1);
                if (!p.DataCenter.Instance.GetDataById(u.UserAngel_Model, e.Value1)) return !1;
                if (t.GodAvatar.length > 0)
                    for (var n = function(e) {
                            var n = t.GodAvatar[e],
                                o = h.ConfigDataComponent.Instance.GetConfigById(d.AngelGodAvatar_Config, n);
                            if (!p.DataCenter.Instance.GetDataById(u.AngelSkin_Model, n)) {
                                var r = !0;
                                if (o.UpdateMaterial.forEach(function(e) {
                                        p.DataCenter.Instance.IsItemEnough(e.Items[0], e.Items[1]) || (r = !1)
                                    }), r) return {
                                    value: !0
                                }
                            }
                        }, o = 0; o < t.GodAvatar.length; o++) {
                        var r = n(o);
                        if ("object" == typeof r) return r.value
                    }
                return !1
            }, t.prototype.RefreshAngelFavorButton = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserAngel_Model, e.Value1);
                if (!t) return !1;
                var n = 0;
                if (L.ConfigDataComponent.Instance.GetArrayConfig(d.AngelFavorLevel_Config).forEach(function(e) {
                        n = Math.max(e.Id, n)
                    }), t.FavorLevel >= n) return !1;
                for (var o = L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.AngelFavorItem), r = 0; r < o.Data2.length; r++) {
                    var i = o.Data2[r].Items[0];
                    if (p.DataCenter.Instance.IsItemEnough(i, 1)) return !0
                }
                return !1
            }, t.prototype.RefreshAngelUpStarButton = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.UserAngel_Model, e.Value1),
                    n = h.ConfigDataComponent.Instance.GetConfigById(d.AngelBase_Config, t.AngelId);
                if (t.StarLevel == n.MaxStarLevel) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.AngelStar_Config, 1e3 * t.AngelId + t.StarLevel),
                    r = !0,
                    i = o.ConsumeHero[t.SubStarLevel].Items;
                if (0 != i[0])
                    for (var a = [], s = 0; s < i.length; s += 4) {
                        var l = 0,
                            c = [],
                            f = i[s + 2],
                            y = i[s + 3],
                            g = 0;
                        switch (i[s]) {
                            case J.AngelConsumeHeroType.Fixed:
                                l = h.ConfigDataComponent.Instance.GetConfigById(d.ItemHeroCard_Config, i[s + 1]).HeroId, c = m.default.GetHeroByItemIdAndStar(l, f, a, !0);
                                break;
                            case J.AngelConsumeHeroType.Any:
                            case J.AngelConsumeHeroType.Heart:
                            case J.AngelConsumeHeroType.Power:
                            case J.AngelConsumeHeroType.Tech:
                            case J.AngelConsumeHeroType.Break:
                            case J.AngelConsumeHeroType.Fight:
                                g = i[s] - 2, c = m.default.GetHeroByStarAndElement(f, g, g, a, !0)
                        }
                        if (c.length < y) {
                            r = !1;
                            break
                        }
                        for (var I = 0; I < c.length && a.length != y; I++) {
                            var _ = c[I];
                            _.Type == m.UpStarHeroMaterialType.Hero && a.push(_)
                        }
                    }
                if (!r) return !1;
                var C = !0;
                if (o.ConsumeFragment[t.SubStarLevel]) {
                    var v = o.ConsumeFragment[t.SubStarLevel].Items;
                    for (s = 0; s < v.length; s += 2) {
                        l = v[s];
                        var b = v[s + 1];
                        if (!p.DataCenter.Instance.IsItemEnough(l, b)) {
                            C = !1;
                            break
                        }
                    }
                }
                if (!C) return !1;
                var S = o.ConsumeItems[t.SubStarLevel].Items;
                return !(0 != S[0] && !p.DataCenter.Instance.IsItemEnough(S[0], S[1]))
            }, t.prototype.RefreshUserTitlePanel = function() {
                if (this.RefreshUserTitlePromotionBtn()) return !0;
                var e = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Designation),
                    t = m.default.Instance.IsGameModuleOpen(P.GameModuleType.Designation);
                if (!e[0] || !t) return !1;
                var n = p.DataCenter.Instance.GetSimpleData(f.UserDataKey.Designation),
                    o = (n ? n.V : 0) + 1,
                    r = h.ConfigDataComponent.Instance.GetConfig(d.Designation_Config);
                if (!r[o]) return !1;
                for (var i = 0, a = r[o].TaskIds; i < a.length; i++) {
                    var s = a[i],
                        l = p.DataCenter.Instance.GetDataById(u.UserTask_Model, s),
                        c = h.ConfigDataComponent.Instance.GetConfigById(d.TaskBase_Config, s);
                    if (l && !l.IsCompleted && l.Progress >= c.TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshUserTitlePromotionBtn = function() {
                var e = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Designation),
                    t = m.default.Instance.IsGameModuleOpen(P.GameModuleType.Designation);
                if (!e[0] || !t) return !1;
                var n = p.DataCenter.Instance.GetSimpleData(f.UserDataKey.Designation),
                    o = (n ? n.V : 0) + 1,
                    r = h.ConfigDataComponent.Instance.GetConfig(d.Designation_Config);
                if (!r[o]) return !1;
                for (var i = r[o].Materials, a = 0; a < i.length; a++) {
                    var s = i[a];
                    if (p.DataCenter.Instance.GetItemCount(s.Items[0]) < s.Items[1]) return !1
                }
                for (var l = 0, c = r[o].TaskIds; l < c.length; l++) {
                    var y = c[l],
                        g = p.DataCenter.Instance.GetDataById(u.UserTask_Model, y);
                    if (!g || !g.IsCompleted) return !1
                }
                return !0
            }, t.prototype.RefreshStrategyPageFormation = function() {
                return this.JudgeStrategyBookCanUp(Z.StrategyBookType.Formation + 1)
            }, t.prototype.RefreshStrategyPageElement = function() {
                return this.JudgeStrategyBookCanUp(Z.StrategyBookType.Element + 1)
            }, t.prototype.RefreshStrategyPageOccupation = function() {
                return this.JudgeStrategyBookCanUp(Z.StrategyBookType.Occupation + 1)
            }, t.prototype.RefreshStrategyPageUniversal = function() {
                return this.JudgeStrategyBookCanUp(Z.StrategyBookType.Universal + 1)
            }, t.prototype.JudgeStrategyBookCanUp = function(e) {
                var t = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Strategy),
                    n = m.default.Instance.IsGameModuleOpen(P.GameModuleType.Strategy);
                if (!t[0] || !n) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfig(d.StrategyBook_Config);
                if (o) {
                    var r = e - 1,
                        i = this.CalculateStrategyBookUsed(r),
                        a = o[e];
                    if (a) {
                        for (var s = 0, l = a.SkillList; s < l.length; s++)
                            for (var c = l[s], u = 0; u < c.Items.length; u++)
                                if (this.JudgeStrategyPointCanUp(c.Items[u], i)) return !0;
                        return !1
                    }
                }
            }, t.prototype.JudgeStrategyPointCanUp = function(e, t) {
                var n = h.ConfigDataComponent.Instance.GetConfig(d.StrategyBook_Config);
                if (!n) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfig(d.Strategy_Config)[e];
                if (!o) return !1;
                var r = n[Math.floor(o.Id / 100)];
                if (!r) return !1;
                var i = r.Point ? r.Point : 0,
                    a = p.DataCenter.Instance.GetDataById(u.Strategy_Model, e),
                    s = a && a.Level ? a.Level : 0,
                    l = p.DataCenter.Instance.GetDataById(u.Strategy_Model, o.PreSkill),
                    c = l && l.Level ? l.Level : 0,
                    y = h.ConfigDataComponent.Instance.GetConfigById(d.GlobalSetting_Config, V.default.KEY_UNLOCK_IN_GLOBALSETTING),
                    g = p.DataCenter.Instance.GetItemCount(f.CommonItemId.StrategyPoint),
                    m = o.MaterialCount;
                return !(i && null != t && t < i || c < y || g < m || s >= 3)
            }, t.prototype.CalculateStrategyBookUsed = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfig(d.StrategyBook_Config);
                if (t) {
                    var n = t[e];
                    if (n) {
                        var o = h.ConfigDataComponent.Instance.GetConfig(d.Strategy_Config);
                        if (o) {
                            for (var r = p.DataCenter.Instance.GetDataById(u.Strategy_Model, n.BaseSkill), i = h.ConfigDataComponent.Instance.GetConfigById(d.Strategy_Config, n.BaseSkill), a = r ? r.Level * i.MaterialCount : 0, s = 0, l = n.SkillList; s < l.length; s++)
                                for (var c = 0, f = l[s].Items; c < f.length; c++) {
                                    var y = f[c],
                                        g = p.DataCenter.Instance.GetDataById(u.Strategy_Model, y),
                                        m = o[y];
                                    g && (a += g.Level * m.MaterialCount)
                                }
                            return a
                        }
                    }
                }
            }, t.prototype.RefreshDukeBtnNode = function() {
                if (!m.default.Instance.IsGameModuleOpen(P.GameModuleType.Duke)) return !1;
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Duke)[0]) return !1;
                var e = p.DataCenter.Instance.GetIntData(P.UserDataKey.Duke),
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.Duke_Config, 1);
                if (e > 0) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(d.Duke_Config, e);
                    t = h.ConfigDataComponent.Instance.GetConfigById(d.Duke_Config, n.NextId)
                }
                if (!t) return !1;
                for (var o = 0, r = t.Materials; o < r.length; o++) {
                    var i = (s = r[o]).Items[0],
                        a = s.Items[1];
                    if (!p.DataCenter.Instance.IsItemEnough(i, a)) return !1
                }
                for (var s = 0; s < t.Condition.length; s++) {
                    var l = t.Condition[s].Items[0],
                        u = t.Condition[s].Items[1];
                    if (l == c.Designation) {
                        if (p.DataCenter.Instance.GetIntData(P.UserDataKey.Designation) < u) return !1
                    } else if (l == c.OpenDays) {
                        var f = m.default.Instance.GetOpenZeroTime(),
                            g = y.RpcComponent.Instance.ServerTime;
                        if (Math.ceil((g - f) / P.Etc.DayDuration) < u) return !1
                    }
                }
                return !0
            }, t.prototype.RefreshDukeScrollEntry = function() {
                if (!m.default.Instance.IsGameModuleOpen(P.GameModuleType.Duke)) return !1;
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Duke)[0]) return !1;
                var e = p.DataCenter.Instance.GetIntData(P.UserDataKey.Duke);
                if (0 == e) return !1;
                for (var t = h.ConfigDataComponent.Instance.GetConfigById(d.Duke_Config, e), n = p.DataCenter.Instance.GetUserData(u.DukeScroll_Model), o = P.HeroElementType.Heart; o <= P.HeroElementType.Chaos; o++) {
                    var r = n[o],
                        i = r ? r.Level : 0;
                    if (!(i + 1 > t.MaxLevel)) {
                        var a = h.ConfigDataComponent.Instance.GetConfigById(d.DukeScrollLevel_Config, i),
                            s = h.ConfigDataComponent.Instance.GetConfigById(d.DukeScrollLevel_Config, i + 1).MaterialCount - (a ? a.MaterialCount : 0);
                        if (p.DataCenter.Instance.IsItemEnough(P.CommonItemId.DukePoint, s)) return !0
                    }
                }
                return !1
            }, t.prototype.HeroTalentResonanceCanUpgrade = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserHero_Model, t),
                    o = h.ConfigDataComponent.Instance.GetConfigById(d.HeroTalentResonance_Config, n.TalentResonanceLevel + 1);
                if (!o) return !1;
                var r = Math.min(n.PVETalentLevel, n.PVPTalentLevel);
                return o.TalentLevel <= r
            }, t.prototype.RefreshActivityFirstPayState = function(e) {
                for (var t = p.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Packs.length; n++) {
                    var o = t._Packs[n];
                    if (this.RefreshActivityFirstPayToggle({
                            Value1: e.Value1,
                            extra: o.Id
                        })) return !0
                }
                return !1
            }, t.prototype.RefreshActivityFirstPayToggle = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1).Int2DArray.find(function(t) {
                    return t.Items[0] == e.extra
                });
                return !!(t && t.Items[1] > 0 && Math.min(this.TimeToNowInDay(t.Items[1]), 3) > t.Items[2])
            }, t.prototype.RefreshTreasureHouseEntry = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.TreasureHouse)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.TreasureHouse)) return !1;
                if (this.RefreshTreasureHouseWishTreeEntry() || this.RefreshTreasureHouseUpLevelEntry()) return !0;
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.TreasureHouseAssociation_Config), t = 0; t < e.length; t++) {
                    var n = e[t];
                    if (n.SerialIdArray.length > 0) {
                        var o = {
                            Value1: n.Id
                        };
                        if (this.RefreshTreasureHouseItemEntry(o)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshTreasureHouseWishTreeUpLevel = function(e) {
                for (var t = h.ConfigDataComponent.Instance.GetConfigById(d.TreasureHouseStone_Config, e.Value1), n = 1; n < t.Consume.length; n++) {
                    var o = t.Consume[n].Items[0],
                        r = t.Consume[n].Items[1];
                    if (!p.DataCenter.Instance.IsItemEnough(o, r)) return !1
                }
                return !0
            }, t.prototype.RefreshTreasureHouseWishTreeTag = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.TreasureHouseStoneNum),
                    n = L.DataCenter.Instance.GetDataById(u.TreasureHouseUserData_Model, 1),
                    o = n && n.AssociationLevels[4] ? n.AssociationLevels[4] : 0,
                    r = t.Data2[o].Items[1],
                    i = n ? n.StoneLevels[e.Value1] : 0;
                if (i < r) {
                    var a = {
                        Value1: 1e3 * e.Value1 + i + 1
                    };
                    if (this.RefreshTreasureHouseWishTreeUpLevel(a)) return !0
                }
                return !1
            }, t.prototype.RefreshTreasureHouseWishTreeEntry = function() {
                for (var e = 0; e < 4; e++) {
                    var t = {
                        Value1: e
                    };
                    if (this.RefreshTreasureHouseWishTreeTag(t)) return !0
                }
                return !1
            }, t.prototype.RefreshTreasureHouseUpLevelButtonNode = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.TreasureHouseAssociation_Config, e.Value1),
                    n = L.DataCenter.Instance.GetDataById(u.TreasureHouseUserData_Model, 1);
                if (!n) return !1;
                var o = n.AssociationLevels[t.Id - 1];
                if (o) {
                    if (o == t.MaxLevel) return !1
                } else o = 0;
                for (var r = t.LevelCondition[o].Items, i = 0; i < r.length; i++) {
                    var a = 0;
                    if (n && n.Attrs && (a = n.Attrs[i]), a < r[i]) return !1
                }
                var s = t.LevelConsume[o].Items;
                return !!p.DataCenter.Instance.IsItemEnough(s[0], s[1])
            }, t.prototype.RefreshTreasureHouseUpLevelEntry = function() {
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.TreasureHouseAssociation_Config), t = 0; t < e.length; t++) {
                    var n = {
                        Value1: e[t].Id
                    };
                    if (this.RefreshTreasureHouseUpLevelButtonNode(n)) return !0
                }
                return !1
            }, t.prototype.RefreshTreasureHouseItemEntry = function(e) {
                for (var t = h.ConfigDataComponent.Instance.GetConfigById(d.TreasureHouseAssociation_Config, e.Value1), n = 0; n < t.SerialIdArray.length; n++)
                    for (var o = h.ConfigDataComponent.Instance.GetConfigById(d.TreasureHouseSerials_Config, t.SerialIdArray[n]), r = 0; r < o.TreasureIds.length; r++) {
                        var i = {
                            Value1: o.TreasureIds[r]
                        };
                        if (this.RefreshTreasureHouseTreasureItemUpStar(i)) return !0
                    }
                return !1
            }, t.prototype.RefreshTreasureHouseTreasureItemUpStar = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.TreasureHouseTreauseItem_Config, e.Value1),
                    n = L.DataCenter.Instance.GetDataById(u.TreasureHouseTreasure_Model, e.Value1);
                if (n && n.Level == t.StarMax) return !1;
                for (var o = n ? t.ConsumeItems[n.Level + 1] : t.ConsumeItems[0], r = 1; r < o.Items.length; r += 2) {
                    var i = o.Items[r],
                        a = o.Items[r + 1];
                    if (!p.DataCenter.Instance.IsItemEnough(i, a)) return !1
                }
                return !0
            }, t.prototype.RefreshChaosHeroTempleEntry = function() {
                return !!(this.RefreshHeroTempleChaosToggle() || this.RefreshHeroTempleElementToggle() || this.RefreshHeroTempleLRToggle())
            }, t.prototype.RefreshHeroTempleChaosToggle = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.ChaosTemple)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.ChaosTemple)) return !1;
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.ChaosTemple_Config), t = 0; t < e.length; t++) {
                    var n = {
                        Value1: e[t].Id,
                        extra: re.HeroTempleType.Chaos
                    };
                    if (this.RefreshChaosHeroTempleUpLevelButtonNode(n) || this.RefreshChaosHeroResonanceUpLevelButtonNode(n)) return !0
                }
                return !1
            }, t.prototype.RefreshHeroTempleElementToggle = function() {
                if (m.default.Instance.IsGameModuleUnlock(f.GameModuleType.ElementTemple)[0] && m.default.Instance.IsGameModuleOpen(f.GameModuleType.ElementTemple))
                    for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.HeroBase_Config), t = 0; t < e.length; t++) {
                        var n = e[t];
                        if (n.CoreHero == f.CoreHeroTag.UR && n.ElementType != f.HeroElementType.Chaos && m.default.Instance.IsModuleShowAvailable(P.ModuleStartTime.Hero, n.Id)) {
                            var o = {
                                Value1: n.Id,
                                extra: re.HeroTempleType.Element
                            };
                            if (this.RefreshChaosHeroTempleUpLevelButtonNode(o) || this.RefreshChaosHeroResonanceUpLevelButtonNode(o)) return !0
                        }
                    }
                return !1
            }, t.prototype.RefreshHeroTempleLRToggle = function() {
                if (m.default.Instance.IsGameModuleUnlock(f.GameModuleType.LRHeroPalace)[0] && m.default.Instance.IsGameModuleOpen(f.GameModuleType.LRHeroPalace))
                    for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.HeroBase_Config), t = 0; t < e.length; t++) {
                        var n = e[t];
                        if (n.CoreHero == f.CoreHeroTag.LR && n.ElementType != f.HeroElementType.Chaos && m.default.Instance.IsModuleShowAvailable(P.ModuleStartTime.Hero, n.Id)) {
                            var o = {
                                Value1: n.Id,
                                extra: re.HeroTempleType.LR
                            };
                            if (this.RefreshChaosHeroTempleUpLevelButtonNode(o) || this.RefreshChaosHeroResonanceUpLevelButtonNode(o)) return !0
                        }
                    }
                return !1
            }, t.prototype.RefreshChaosTempleButton = function() {
                return !1
            }, t.prototype.RefreshChaosElementButton = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e.Value1);
                if (!t || t.ElementType != f.HeroElementType.Chaos || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.ChaosTemple) || !m.default.Instance.IsGameModuleUnlock(P.GameModuleType.ChaosTemple)[0]) return !1;
                var n = A.default.GetItem(A.GameRecordDefine.HeroChaosElementHint);
                return !n || !JSON.parse(n)[e.Value1]
            }, t.prototype.RefreshChaosHeroTempleUpLevelButtonNode = function(e) {
                var t, n = L.DataCenter.Instance.GetDataById(u.HeroInfo_Model, e.Value1),
                    o = L.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, e.Value1);
                switch (e.extra) {
                    case re.HeroTempleType.Chaos:
                        var r = L.DataCenter.Instance.GetArrayData(f.UserDataKey.ChaosTempleLevel),
                            i = r.indexOf(e.Value1);
                        t = -1 == i ? 0 : r[i + 1];
                        break;
                    case re.HeroTempleType.Element:
                    case re.HeroTempleType.LR:
                        t = n ? n.ElementTempleLevel : 0
                }
                var a = 0;
                return n && (a = n.MaxStar - 4 + n.PersonalityStar - t), o && (a += o.Star), a > 0
            }, t.prototype.RefreshChaosHeroResonanceUpLevelButtonNode = function(e) {
                var t, n, o = L.DataCenter.Instance.GetDataById(u.HeroInfo_Model, e.Value1),
                    r = L.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, e.Value1),
                    i = [];
                switch (e.extra) {
                    case re.HeroTempleType.Chaos:
                        var a = L.DataCenter.Instance.GetArrayData(f.UserDataKey.ChaosTempleLevel),
                            s = L.ConfigDataComponent.Instance.GetConfigById(d.ChaosTemple_Config, e.Value1);
                        n = s.ResonanceCondition.length;
                        var l = a.indexOf(e.Value1);
                        if ((t = -1 == l ? 0 : a[l + 2]) == n) return !1;
                        i = s.ResonanceCondition[t].Items;
                        break;
                    case re.HeroTempleType.Element:
                    case re.HeroTempleType.LR:
                        t = o ? o.ElementTempleResonance : 0;
                        var c = L.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e.Value1);
                        if (t == (n = c.ETResonance.length)) return !1;
                        var p = L.ConfigDataComponent.Instance.GetConfigById(d.ElementTempleResonance_Config, c.ETResonance[t]);
                        i[0] = p.HeroStar, i[1] = p.PersonalityStar, i[2] = p.WeaponStar
                }
                return !!(o && o.MaxStar >= i[0] && o.PersonalityStar >= i[1] && r && r.Star >= i[2])
            }, t.prototype.RefreshActivityLuckyPackNode = function(e) {
                for (var t = p.DataCenter.Instance.ActivityConfigs[e.Value1], n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1), o = !1, r = 0; r < t._Packs.length; r++) {
                    var i = t._Packs[r];
                    if (i && !i.Money && i.LimitType > 0 && !(n.Packs[i.Id] && n.Packs[i.Id].Items[0] && n.Packs[i.Id].Items[0])) {
                        o = !0;
                        break
                    }
                }
                return o
            }, t.prototype.RefreshLuckyCharmUpgradeNodeNode = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, e.Value1);
                return !!t && !L.ConfigDataComponent.Instance.GetConfigById(d.LuckyCharmEquip_Config, t.ItemId).NextId && (!(!t || !t.StarSkills || 0 != t.StarSkills[1] && 0 != t.StarSkills[3] && 0 != t.StarSkills[4]) || this.RefreshLuckyCharmUpBtn(e) || this.RefreshLuckyCharmEngraveBtn(e))
            }, t.prototype.RefreshLuckyCharmUpBtn = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, e.Value1);
                if (!t) return !1;
                for (var n = [], o = h.ConfigDataComponent.Instance.GetArrayConfig(d.LuckyCharmStar_Config), r = 0; r < o.length; r++) {
                    var i = o[r];
                    Math.floor(i.Id / 100) == f.CommonItemId.PrimordialLuckyCharm && n.push(i)
                }
                var a = t.StarSkills ? t.StarSkills.length : 0;
                if (a >= n.length) return !1;
                var s = n[a];
                if (s) {
                    var l = s.Materials;
                    for (r = 0; r < l.length; r++)
                        if (!p.DataCenter.Instance.IsItemEnough(l[r].Items[0], l[r].Items[1])) return !1
                }
                return !0
            }, t.prototype.RefreshGemProcessingBtnNode = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.GemEquip_Model, e.Value1);
                if (t && t.OwnerId && !m.default.CheckHeroGemUnlock(t.OwnerId)) return !1;
                var n = L.ConfigDataComponent.Instance.GetConfigById(d.GemEquip_Config, t.ItemId);
                if (n.NextId) {
                    var o = L.ConfigDataComponent.Instance.GetConfigById(d.GemEquip_Config, n.NextId),
                        r = {},
                        i = n.Quality,
                        a = o.Quality,
                        s = L.ConfigDataComponent.Instance.GetConfigById(d.GemQuality_Config, i),
                        l = L.ConfigDataComponent.Instance.GetConfigById(d.GemQuality_Config, a);
                    for (var c in l.UpgradeMaterials.forEach(function(e) {
                            var t = e.Items[0],
                                n = e.Items[1];
                            r[t] ? r[t] += n : r[t] = n
                        }), s.UpgradeMaterials && s.UpgradeMaterials.forEach(function(e) {
                            var t = e.Items[0],
                                n = e.Items[1];
                            r[t] && (r[t] -= n)
                        }), r)
                        if (!p.DataCenter.Instance.IsItemEnough(Number(c), r[c])) return !1;
                    return !0
                }
                return !1
            }, t.prototype.RefreshSoulRecordChapterRedDot = function(e) {
                var t = h.ConfigDataComponent.Instance.GetConfigById(d.FighterSpiritChapter_Config, e.Value1),
                    n = p.DataCenter.Instance.GetDataById(u.FighterSpirit_Model, 1);
                if ((n && n.MaxValue ? n.MaxValue : 0) < t.UnlockSpiritNum) return !1;
                if (m.default.GetSoulRecordSkillUpLevelState(e.Value1, 1)) return !0;
                if (m.default.GetSoulRecordSkillUpLevelState(e.Value1, 2)) return !0;
                for (var o = t.GraphIds, r = 0; r < o.length; r++) {
                    var i = m.default.CalculateFitSoulGraphState(o[r]);
                    if (!i.Full) {
                        if (i.SoulEnough) return !0;
                        if (i.MaterialsEnough) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshSoulRecordEntry = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.FighterSpirit)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.FighterSpirit)) return !1;
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.FighterSpiritChapter_Config), t = 0; t < e.length; t++)
                    if (this.RefreshSoulRecordChapterRedDot({
                            Value1: e[t].Id
                        })) return !0;
                return !1
            }, t.prototype.RefreshStarGarrisonToggleNode = function() {
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.StarGarrison_Config), t = 0; t < e.length; t++)
                    if (this.RefreshStarGarrisonSub(e[t])) return !0;
                return !1
            }, t.prototype.RefreshStarGarrisonSub = function(e) {
                for (var t = X.default.GetHeroListDatas(e.Id, !0), n = function(n) {
                        var o = e.SlotIds[n],
                            r = L.DataCenter.Instance.GetDataById(u.StarGarrisonSlot_Model, o),
                            i = [];
                        if (t.forEach(function(t) {
                                var n = X.default.SetStarGarrisonSelectData(t.HeroSid, t.State, o, e.Id);
                                i.push(n)
                            }), r && r.Sid > 0) {
                            var a = 0;
                            r && r.OwnerId > 0 && (a = X.default.GetHeroScoreBySid(r.OwnerId, e.Id));
                            for (var s = 0; s < i.length; s++)
                                if (i[s].Score > a) return {
                                    value: !0
                                }
                        }
                    }, o = 0; o < e.SlotIds.length; o++) {
                    var r = n(o);
                    if ("object" == typeof r) return r.value
                }
                return !1
            }, t.prototype.RefreshCookHouseEnterPanel = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (t) {
                    var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                    if (n) return Math.max(t.CustomPart.Count - (n && n.IntArray[0] ? n.IntArray[0] : 0), 0) > 0 || this.RefreshCookHouseEnterPanelTaskBtn(e)
                }
            }, t.prototype.RefreshCookHouseEnterPanelTaskBtn = function(e) {
                return this.RefreshCookHouseEnterPanelTaskToggle1(e) || this.RefreshCookHouseEnterPanelTaskToggle2(e)
            }, t.prototype.RefreshCookHouseEnterPanelTaskToggle1 = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (t && p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id)) {
                    for (var n = t._Tasks.filter(function(e) {
                            return e.IsDaily
                        }), o = 0; o < n.length; o++) {
                        var r = n[o],
                            i = L.DataCenter.Instance.GetDataById(u.UserTask_Model, r.Id + 1e4 * e.Value1);
                        if ((null == i || null == i.Progress ? 0 : i.Progress) >= r.TotalCount && 0 == i.IsCompleted) return !0
                    }
                    return !1
                }
            }, t.prototype.RefreshCookHouseEnterPanelTaskToggle2 = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (t && p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id)) {
                    for (var n = t._Tasks.filter(function(e) {
                            return !e.IsDaily
                        }), o = 0; o < n.length; o++) {
                        var r = n[o],
                            i = L.DataCenter.Instance.GetDataById(u.UserTask_Model, r.Id + 1e4 * e.Value1);
                        if ((null == i || null == i.Progress ? 0 : i.Progress) >= r.TotalCount && 0 == i.IsCompleted) return !0
                    }
                    return !1
                }
            }, t.prototype.RefreshNewSignIn = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (t) {
                    var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                    if (n) {
                        var o = n.IntArray[0],
                            r = n.IntArray[1];
                        if (o == t.Rewards.length) return !1;
                        if (y.RpcComponent.Instance.ServerTime > m.default.Instance.ComputeActivitStartTime(t.Common) + o * g.Etc.DayDuration) return !0;
                        var i = null == n ? void 0 : n.Packs[t._Packs[0].Id];
                        return !!((i ? i.Items[0] : 0) > 0) && r != t.Rewards.length && y.RpcComponent.Instance.ServerTime > m.default.Instance.ComputeActivitStartTime(t.Common) + r * g.Etc.DayDuration
                    }
                }
            }, t.prototype.RefreshAngelSummonNode = function(e) {
                var t;
                if (!e) return !1;
                if (null == (t = p.DataCenter.Instance.ActivityConfigs[e.Value1])) return !1;
                if (null == t.__SummonType || null == t.__SummonType[0]) return !1;
                if (this.JudgeIfTaskCompleted(t._id, t._Tasks)) return !0;
                var n = t.__SummonType[0].Id,
                    o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).Summons[n];
                return null == o ? t.__SummonType[0].StartFreeCount > 0 : o.FreeCount > 0
            }, t.prototype.RefreshAngelGodSoulButton = function(e) {
                var t = e.Value1;
                if (t)
                    for (var n = 0; n < 5; n++)
                        if (this.RefreshAngelGodSlotRedDot(t, n + 1)) return !0;
                return !1
            }, t.prototype.RefreshAngelGodSlotRedDot = function(e, t) {
                var n, o = p.DataCenter.Instance.GetDataList(u.UserGodSoul_Model);
                o = o.filter(function(e) {
                    return !e.OwnerId || (n = e, !1)
                });
                var r = h.ConfigDataComponent.Instance.GetConfigById(d.AngelGodSoulPos_Config, t),
                    i = r.FatePoint ? r.FatePoint : 0,
                    a = p.DataCenter.Instance.GetDataById(u.UserAngel_Model, t),
                    s = [];
                if (a && (s = a.FatePoints), i && -1 == s.indexOf(i)) return !1;
                if (null == n && 0 != o.length) return !0;
                if (0 == o.length) return !1;
                var l, c = h.ConfigDataComponent.Instance.GetConfig(d.AngelGodSoul_Config),
                    f = p.DataCenter.Instance.GetDataList(u.UserGodSoul_Model);
                l = n ? c[n.ItemId].Level : 0;
                var y = {},
                    g = {};
                f.forEach(function(t) {
                    t.OwnerId == e && (y[c[t.ItemId].Type] = !0);
                    var n = c[t.ItemId];
                    !t.OwnerId && n.Level > l && (g[n.Type] = !0)
                });
                for (var m = Object.keys(g), I = 0; I < m.length; I++) {
                    var _ = m[I];
                    if (!y[_]) return !0
                }
                return !1
            }, t.prototype.RefreshKnifeTrainNode = function(e) {
                if (!p.DataCenter.Instance.ActivityConfigs[e.Value1]) return !1;
                var t = this.RefreshKnifeTrainTaskNode(e),
                    n = this.RefreshKnifeTrainToggle1Node(e);
                return t || n
            }, t.prototype.RefreshKnifeTrainToggle1Node = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1),
                    o = t.CustomPart.RewardCount,
                    r = n.IntValue || 0,
                    i = o - r > 0 ? o - r : 0,
                    a = n.Int2DArray[0] && n.Int2DArray[0].Items[4] ? n.Int2DArray[0].Items[4] : 0;
                return i > 0 && a >= t.ScoreRewards[0].Score
            }, t.prototype.RefreshKnifeTrainTaskNode = function(e) {
                if (!p.DataCenter.Instance.ActivityConfigs[e.Value1]) return !1;
                var t = this.RefreshKnifeTrainTaskDailyNode(e),
                    n = this.RefreshKnifeTrainTaskPeriodNode(e);
                return t || n
            }, t.prototype.RefreshKnifeTrainTaskDailyNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily && n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshKnifeTrainTaskPeriodNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily || n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshExclusiveGalleryPointCollectNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.ExclusiveWeaponGallery)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.ExclusiveWeaponGallery)) return !1;
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.ExclusiveWeapon_Config), t = h.ConfigDataComponent.Instance.GetArrayConfig(d.ExclusiveWeaponLevel_Config), n = h.ConfigDataComponent.Instance.GetArrayConfig(d.ExclusiveWeaponStar_Config), o = 0, r = e.length; o < r; o++) {
                    var i = e[o],
                        a = i.Id,
                        s = p.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, a);
                    if (null != s) {
                        var l = s.LevelReward,
                            c = s.StarReward,
                            f = s.IsAwakeningReward,
                            y = (l > 0 ? t[l - 1].Telekinesis : 0) + (c > 0 ? n[c - 1].Telekinesis : 0) + (f ? i.AwakenRewards[0].Items[1] : 0),
                            g = s.Level,
                            I = s.Star,
                            _ = s.IsAwakening;
                        if ((g > 0 ? t[g - 1].Telekinesis : 0) + (I > 0 ? n[I - 1].Telekinesis : 0) + (_ ? i.AwakenRewards[0].Items[1] : 0) > y) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshExclusiveGalleryAnyWeaponOperational = function() {
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.ExclusiveWeapon_Config), t = 0, n = e.length; t < n; t++) {
                    var o = e[t].Id;
                    if (v.RedDotManager.DataHandler.CheckExclusiveWeaponCanActive(o)) return !0;
                    if (v.RedDotManager.DataHandler.CheckExclusiveWeaponCanIntensify(o)) return !0;
                    if (v.RedDotManager.DataHandler.CheckExclusiveWeaponCanStarUp(o)) return !0;
                    if (v.RedDotManager.DataHandler.CheckExclusiveWeaponCanAwaken(o)) return !0
                }
                return !1
            }, t.prototype.RefreshExclusiveGalleryPointUpgradeNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.ExclusiveWeaponGallery)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.ExclusiveWeaponGallery)) return !1;
                for (var e = Q.default.CAREER_TYPES, t = 0; t < e.length; t++)
                    if (m.default.GetExclusiveGalleryTalentRedDotState(t)) return !0;
                return !1
            }, t.prototype.RefreshHolyEquipGalleryToggleNode = function() {
                for (var e = [f.HeroEquipmentType.Weapon, f.HeroEquipmentType.Coat, f.HeroEquipmentType.Glove, f.HeroEquipmentType.Shoes], t = 0; t < e.length; t++) {
                    var n = {
                        Value1: e[t]
                    };
                    if (this.RefreshHolyEquipGalleryUpButton(n)) return !0
                }
                return !1
            }, t.prototype.RefreshHolyEquipGalleryUpButton = function(e) {
                var t, n = L.DataCenter.Instance.GetArrayData(f.UserDataKey.HolyEquipGalleryLevel),
                    o = n[e.Value1 - 1] ? n[e.Value1 - 1] : 0;
                if (o == L.ConfigDataComponent.Instance.GetArrayConfig(d.HolyEquipGalleryLevel_Config).length) return !1;
                var r = L.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipGalleryLevel_Config, o + 1);
                o > 0 && (t = L.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipGalleryLevel_Config, o));
                var i = {};
                for (var a in r.Materials.forEach(function(e) {
                        var t = e.Items[0],
                            n = e.Items[1];
                        i[t] ? i[t] += n : i[t] = n
                    }), t && t.Materials.forEach(function(e) {
                        var t = e.Items[0],
                            n = e.Items[1];
                        i[t] && (i[t] -= n)
                    }), i) {
                    var s = Number(a),
                        l = i[s];
                    if (!p.DataCenter.Instance.IsItemEnough(s, l)) return !1
                }
                return !0
            }, t.prototype.RefreshHeroHandbookEntry = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.HeroHandbook)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.HeroHandbook)) return !1;
                var e = {};
                L.ConfigDataComponent.Instance.GetArrayConfig(d.HeroBase_Config).forEach(function(t) {
                    t.CoreHero && 1 == t.Type && m.default.Instance.IsModuleShowAvailable(P.ModuleStartTime.Hero, t.Id) && (e[t.Id] = t)
                });
                var t = {};
                L.DataCenter.Instance.GetDataList(u.UserHero_Model).forEach(function(n) {
                    e[n.HeroId] && (t[n.HeroId] ? t[n.HeroId].StarLevel < n.StarLevel && (t[n.HeroId] = n) : t[n.HeroId] = n)
                });
                var n = {
                    extra: t
                };
                return !(!this.RefreshHeroHandbookUpLevelToggle(n) && !this.RefreshHeroHandbookSublimingToggle(n))
            }, t.prototype.RefreshHeroHandbookUpLevelToggle = function(e) {
                for (var t in e.extra) {
                    var n = {
                        Value1: e.extra[t].Sid
                    };
                    if (this.RefreshHeroHandbookUpLevelButton(n)) return !0
                }
                return !1
            }, t.prototype.RefreshHeroHandbookSublimingToggle = function(e) {
                if (!m.default.Instance.IsGameModuleOpen(f.GameModuleType.HeroHandbookSubliming) || !m.default.Instance.IsGameModuleUnlock(f.GameModuleType.HeroHandbookSubliming)[0]) return !1;
                for (var t in e.extra) {
                    var n = {
                        Value1: e.extra[t].Sid
                    };
                    if (this.RefreshHeroHandbookSublimingButton(n)) return !0
                }
                return !1
            }, t.prototype.RefreshHeroHandbookUpLevelButton = function(e) {
                if (e.Value1) {
                    var t = L.DataCenter.Instance.GetDataById(u.UserHero_Model, e.Value1),
                        n = L.DataCenter.Instance.GetDataById(u.HeroInfo_Model, t.HeroId);
                    if (t && n && t.StarLevel > n.HandbookStar) return !0
                }
                return !1
            }, t.prototype.RefreshHeroHandbookSublimingButton = function(e) {
                if (e.Value1) {
                    var t = L.DataCenter.Instance.GetDataById(u.UserHero_Model, e.Value1),
                        n = L.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, t.HeroId),
                        o = L.DataCenter.Instance.GetDataById(u.HeroInfo_Model, t.HeroId);
                    if (t && o && o.HandbookStar == n.MaxStarLevel) {
                        var r = m.default.Instance.GetHeroSublimingMaxLevelByHeroId(t.HeroId);
                        if (!r || o.HandbookCount >= r) return !1;
                        var i = n.Sublime[0];
                        o.HandbookCount > 0 && (i += o.HandbookCount - 1);
                        var a = L.ConfigDataComponent.Instance.GetConfigById(d.HeroHandbookLevel_Config, i),
                            s = n.Sublime[0] + o.HandbookCount,
                            l = L.ConfigDataComponent.Instance.GetConfigById(d.HeroHandbookLevel_Config, s),
                            c = o.HandbookCount > 0 ? l.UseCount - a.UseCount : a.UseCount,
                            p = {
                                Type: m.UpStarHeroMaterialType.Hero,
                                Id: t.Sid
                            };
                        if (m.default.GetHeroByItemIdAndStar(t.HeroId, n.StarLevel, [p], !0, !0, !0, !0).length >= c) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshCrazyWheel = function(e) {
                return this.RefreshCrazyWheelSummonBtn1(e) || this.RefreshCrazyWheelSummonBtn2(e) || this.RefreshCrazyWheelPack(e)
            }, t.prototype.RefreshCrazyWheelSummonBtn1 = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!n) return !1;
                var o = t.__CommonSummon[0].ConsumeItem[0].Items[0],
                    r = t.__CommonSummon[0].ConsumeItem[0].Items[1];
                return !(!t.CustomPart.DoNotCheck && !m.default.Instance.IsCanGetNewHero(1) || ! function() {
                    if (n && n.Summons && n.Summons[t.__SummonType[0].Id]) {
                        if (n.Summons[t.__SummonType[0].Id].FreeCount) return !0
                    } else if (t.__SummonType[0].StartFreeCount) return !0;
                    return !1
                }() && r > p.DataCenter.Instance.GetItemCount(o) || y.RpcComponent.Instance.ServerTime > m.default.Instance.ComputeExtraShowDeadTime(t.Common))
            }, t.prototype.RefreshCrazyWheelSummonBtn2 = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = t.__CommonSummon[1].ConsumeItem[0].Items[0],
                    o = t.__CommonSummon[1].ConsumeItem[0].Items[1];
                return !(!t.CustomPart.DoNotCheck && !m.default.Instance.IsCanGetNewHero(1) || o > p.DataCenter.Instance.GetItemCount(n) || y.RpcComponent.Instance.ServerTime > m.default.Instance.ComputeExtraShowDeadTime(t.Common))
            }, t.prototype.RefreshCrazyWheelPack = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return !!n && t._Packs.filter(function(e) {
                    return (null == e.Money || 0 == e.Money) && n.Packs[e.Id].Items[0] < e.LimitCount
                }).length
            }, t.prototype.RefreshPuzzleCanUnLock = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.GetDataById(u.ParanormalPuzzle_Model, t),
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.PuzzleStage_Config, t);
                if (n) return !1;
                for (var r = 0; r < o.Materials.length; r++) {
                    var i = o.Materials[r];
                    if (!L.DataCenter.Instance.IsItemEnough(i.Items[0], i.Items[1])) return !1
                }
                var a = $.default.GetFrontConfig(o.GroupId, o.Stage - 1),
                    s = L.DataCenter.Instance.GetDataById(u.ParanormalPuzzle_Model, a.Id);
                for (r = 0; r < o.Unlock.length; r++) {
                    var l = o.Unlock[r];
                    switch (l.Items[0]) {
                        case 1:
                            if (!s || !s.IsFull) return !1;
                            break;
                        case 2:
                            if (!s || s.Score < l.Items[1]) return !1;
                            break;
                        case 3:
                            if (ee.default.GetTotalPuzzleScore(l.Items[1]) < l.Items[2]) return !1
                    }
                }
                return !0
            }, t.prototype.RefreshSelectedGiftBag = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return !!t && !(null == t ? void 0 : t.DailyRewards)
            }, t.prototype.RefreshStarPuzzleToggleNode = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.PuzzleStage_Config), t = 0; t < e.length; t++)
                    if (this.RefreshPuzzleCanUnLock({
                            Value1: e[t].Id
                        })) return !0;
                return !!this.RefreshParanormalPuzzleTask()
            }, t.prototype.RefreshStarArtifactToggleNode = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.Artefact_Config), t = 0; t < e.length; t++)
                    if (this.RefreshArtifactNode({
                            Value1: e[t].Id
                        })) return !0;
                return !!this.RefreshArtifactResonanceNode()
            }, t.prototype.RefreshArtifactNode = function(e) {
                var t = e.Value1,
                    n = this.RefreshDetailToggleNode({
                        Value1: t
                    }),
                    o = this.RefreshForgeToggleNode({
                        Value1: t
                    }),
                    r = this.RefreshUpStarToggleNode({
                        Value1: t
                    });
                return !!(n || o || r)
            }, t.prototype.RefreshDetailToggleNode = function(e) {
                for (var t = e.Value1, n = L.ConfigDataComponent.Instance.GetConfigById(d.Artefact_Config, t), o = 0; o < n.Slots.length; o++)
                    if (this.RefreshArtifactHeroSlot({
                            Value1: t,
                            extra: o
                        })) return !0;
                return !1
            }, t.prototype.RefreshForgeToggleNode = function(e) {
                for (var t = e.Value1, n = 0; n < 3; n++)
                    if (this.RefreshArtifactForgeSlot({
                            Value1: t,
                            extra: n
                        })) return !0;
                return !1
            }, t.prototype.RefreshUpStarToggleNode = function(e) {
                var t = this.RefreshArtifactUpStarActiveBtn(e),
                    n = this.RefreshArtifactUpStarBtn(e),
                    o = this.RefreshArtifactPhantomActiveBtn(e);
                return !!(t || n || o)
            }, t.prototype.RefreshArtifactHeroSlot = function(e) {
                var t = e.Value1,
                    n = e.extra,
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.Artefact_Config, t),
                    r = L.DataCenter.Instance.GetDataById(u.Artefact_Model, t);
                if (r) {
                    var i = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, r.Star),
                        a = o.Slots[n];
                    if (i.Star >= a && !r.Owners[n]) return !0
                }
                return !1
            }, t.prototype.RefreshArtifactForgeSlot = function(e) {
                var t = e.Value1,
                    n = e.extra,
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.Artefact_Config, t),
                    r = L.DataCenter.Instance.GetDataById(u.Artefact_Model, t);
                if (r) {
                    var i = o.ArtefactForge.indexOf(r.ArtefactForge);
                    if (i < o.ArtefactForge.length - 1) {
                        var a = o.ArtefactForge[i + 1],
                            s = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactForge_Config, a),
                            l = s.ForgeAttrs[n].Items[4] || 0,
                            c = s.ForgeAttrs[n].Items[1],
                            p = L.DataCenter.Instance.GetItemCount(c),
                            h = te.default.GetRemainItemCount(n, t)[1];
                        if (p >= l && h > 0) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshArtifactUpStarActiveBtn = function(e) {
                var t = e.Value1,
                    n = L.ConfigDataComponent.Instance.GetConfigById(d.Artefact_Config, t);
                if (!L.DataCenter.Instance.GetDataById(u.Artefact_Model, t)) {
                    var o = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, n.Star),
                        r = o.Materials[o.Quality - 1];
                    if (L.DataCenter.Instance.GetItemCount(n.PieceId) >= r) return !0
                }
                return !1
            }, t.prototype.RefreshArtifactUpStarBtn = function(e) {
                var t = e.Value1,
                    n = L.ConfigDataComponent.Instance.GetConfigById(d.Artefact_Config, t),
                    o = L.DataCenter.Instance.GetDataById(u.Artefact_Model, t);
                if (o) {
                    var r = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, o.Star);
                    if (1 == r.Type && r.NextId > 0) {
                        var i = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, n.Star),
                            a = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, r.NextId).Materials[i.Quality - 1];
                        if (L.DataCenter.Instance.GetItemCount(n.PieceId) >= a) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshArtifactPhantomActiveBtn = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.GetDataById(u.Artefact_Model, t);
                if (n) {
                    var o = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, n.Star);
                    if (2 == o.Type && o.NextId > 0) {
                        for (var r = ne.default.GetPhantomConsumeData(t), i = 0; i < r.length; i++) {
                            var a = r[i];
                            if (!L.DataCenter.Instance.IsItemEnough(a.ItemId, a.ItemValue)) return !1
                        }
                        return !0
                    }
                }
                return !1
            }, t.prototype.RefreshArtifactResonanceNode = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.ArtefactResonance_Config), t = 0; t < e.length; t++)
                    if (this.RefreshArtifactResonanceActiveBtn({
                            Value1: e[t].Id
                        })) return !0;
                return !1
            }, t.prototype.RefreshArtifactResonanceActiveBtn = function(e) {
                var t = e.Value1,
                    n = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactResonance_Config, t),
                    o = L.DataCenter.Instance.GetDataById(u.ArtefactResonance_Model, t),
                    r = o && o.Star ? o.Star : 0;
                if (r < n.AttrIds.length) {
                    for (var i = n.AttrIds[r], a = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactResonanceAttrs_Config, i).Star, s = 0, l = 0; l < n.Artefact.length; l++) {
                        var c = n.Artefact[l],
                            p = L.DataCenter.Instance.GetDataById(u.Artefact_Model, c);
                        p && L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, p.Star).Star >= a && s++
                    }
                    if (s == n.Artefact.length) return !0
                }
                return !1
            }, t.prototype.IsHeroCanWearArtifactOrDevelop = function(e) {
                var t = e.Value1,
                    n = !1,
                    o = !1,
                    r = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("HeroPutOnArtefactStar"),
                    i = L.DataCenter.Instance.GetDataById(u.UserHero_Model, t),
                    a = m.default.GetHeroArtifactId(t),
                    s = L.DataCenter.Instance.GetDataById(u.Artefact_Model, a);
                if (!this.CheckHeroEquipUnlock(t)) return !1;
                if (i && i.StarLevel >= r && !s)
                    for (var l = L.ConfigDataComponent.Instance.GetArrayConfig(d.Artefact_Config), c = 0; c < l.length; c++) {
                        var p = l[c],
                            f = L.DataCenter.Instance.GetDataById(u.Artefact_Model, p.Id);
                        if (f)
                            for (var y = L.ConfigDataComponent.Instance.GetConfigById(d.ArtefactStar_Config, f.Star), g = 0; g < p.Slots.length; g++) {
                                var I = p.Slots[g];
                                y.Star >= I && !f.Owners[g] && (n = !0)
                            }
                    }
                if (!n && a > 0) {
                    var _ = this.RefreshForgeToggleNode({
                            Value1: a
                        }),
                        C = this.RefreshUpStarToggleNode({
                            Value1: a
                        });
                    (_ || C) && (o = !0)
                }
                return n || o
            }, t.prototype.RefreshParanormalPuzzleTask = function() {
                for (var e = m.default.Instance.GetTaskBaseConfigByType(f.TaskType.ParanormalPuzzle), t = 0; t < e.length; t++) {
                    var n = e[t];
                    if (m.default.IsTaskCanShow(n.Id)) {
                        var o = L.DataCenter.Instance.GetDataById(u.UserTask_Model, n.Id);
                        if (o && !o.IsCompleted && o.Progress >= n.TotalCount) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshLuckyDrawPanel = function(e) {
                return this.RefreshLuckyDrawExchangeBtn(e) || this.RefreshLuckyLuckyDrawPack(e) || this.RefreshLuckyDrawDetial(e)
            }, t.prototype.RefreshLuckyDrawExchangeBtn = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                for (var n = t.CustomPart.ExchangeItem, o = 0; o < n.length; o++) {
                    var r = n[o].Items[0];
                    if (n[o].Items[1] > p.DataCenter.Instance.GetItemCount(r)) return !1
                }
                return !0
            }, t.prototype.RefreshLuckyLuckyDrawPack = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!n) return !1;
                for (var o = t._Packs, r = 0; r < o.length; r++) {
                    var i = o[r];
                    if (0 == i.Money && !n.Packs[i.Id]) return !0
                }
                return !1
            }, t.prototype.RefreshLuckyDrawDetial = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!n) return !1;
                for (var o = e.extra, r = y.RpcComponent.Instance.ServerTime, i = 0, a = 0; a <= o; a++) i += t.CustomPart.Period[a];
                var s = m.default.Instance.ComputeActivitStartTime(t.Common);
                if (r < I.TimeUtil.Get0ClockTs(s) + (i - 1) * g.Etc.DayDuration + t.CustomPart.OpenTime * g.Etc.HourDuration) return !1;
                for (a = 0; a < n.Int2DArray.length; a++)
                    if (o) {
                        if (n.Int2DArray[a] && !n.Int2DArray[a].Items[3] && n.Int2DArray[a].Items[1] == o + 1) return !0
                    } else if (n.Int2DArray[a] && !n.Int2DArray[a].Items[3]) return !0;
                return !1
            }, t.prototype.RefreshPetGalleryEntryNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.PetShowHouse)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.PetShowHouse)) return !1;
                if (this.RefreshPetGalleryUpLevel()) return !0;
                for (var e, t = [], n = L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.PetShowHousePos), o = 0; o < n.Data2.length; o++) {
                    var r = L.DataCenter.Instance.GetDataById(u.PetShowHouse_Model, n.Data2[o].Items[0]);
                    r && r.PetId && t.push(r.PetId)
                }
                var i = L.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, f.UserDataKey.PetShowHouseLevel);
                for (e = i && i.V ? i.V : 0, o = 0; o < n.Data2.length; o++)
                    if (this.RefreshPetGallerySlotNode(n.Data2[o].Items, e, t)) return !0;
                return !1
            }, t.prototype.RefreshPetGallerySlotNode = function(e, t, n) {
                if (e[1] > t) return !1;
                var o, r, i = L.DataCenter.Instance.GetDataById(u.PetShowHouse_Model, e[0]);
                if (i && i.PetId)
                    for (var a = L.DataCenter.Instance.GetDataById(u.UserPet_Model, i.PetId), s = L.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, a.Sid), l = 0; l < s.ShowAttr.length; l++)
                        if (a.Star == s.ShowAttr[l].Items[0]) {
                            r = s.ShowAttr[l].Items[1];
                            break
                        } o = L.ConfigDataComponent.Instance.GetConfigById(d.PetShowAttr_Config, r);
                var c = L.DataCenter.Instance.GetDataList(u.UserPet_Model);
                for (l = 0; l < c.length; l++) {
                    var p = c[l];
                    if (-1 == n.indexOf(p.Sid)) {
                        if (!i || !i.PetId) return !0;
                        for (var h = L.ConfigDataComponent.Instance.GetConfigById(d.PetBase_Config, p.Sid), f = 0; f < h.ShowAttr.length; f++)
                            if (p.Star == h.ShowAttr[f].Items[0]) {
                                if (L.ConfigDataComponent.Instance.GetConfigById(d.PetShowAttr_Config, h.ShowAttr[f].Items[1]).AttrScore > o.AttrScore) return !0;
                                break
                            }
                    }
                }
                return !1
            }, t.prototype.RefreshPetGalleryUpLevel = function() {
                var e, t = L.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, f.UserDataKey.PetShowHouseLevel);
                if ((e = t && t.V ? t.V : 0) == L.ConfigDataComponent.Instance.GetArrayConfig(d.PetShowHouse_Config).length - 1) return !1;
                for (var n = L.ConfigDataComponent.Instance.GetConfigById(d.PetShowHouse_Config, e), o = L.ConfigDataComponent.Instance.GetConfigById(d.PetShowHouse_Config, e + 1), r = 0; r < o.ConsumeItems.length; r++) {
                    var i, a = o.ConsumeItems[r].Items[0];
                    if (i = e > 0 ? o.ConsumeItems[r].Items[1] - n.ConsumeItems[r].Items[1] : o.ConsumeItems[r].Items[1], !L.DataCenter.Instance.IsItemEnough(a, i)) return !1
                }
                return !0
            }, t.prototype.RefreshLuckyCharmGalleryEntryNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.LuckyCharmShowHouse)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.LuckyCharmShowHouse)) return !1;
                if (this.RefreshLuckyCharmGalleryUpLevel()) return !0;
                for (var e, t = {}, n = L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.LuckyCharmShowHousePos), o = 0; o < n.Data2.length; o++) {
                    var r = L.DataCenter.Instance.GetDataById(u.LuckyCharmShowHouse_Model, n.Data2[o].Items[0]);
                    r && r.LuckyCharmId > 0 && (t[r.LuckyCharmId] = 1)
                }
                var i = L.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, f.UserDataKey.LuckyCharmShowHouseLevel);
                for (e = i && i.V ? i.V : 0, o = 0; o < n.Data2.length; o++)
                    if (this.RefreshLuckyCharmGallerySlotNode(n.Data2[o].Items, e, t)) return !0;
                return !1
            }, t.prototype.RefreshLuckyCharmGallerySlotNode = function(e, t, n) {
                if (e[1] > t) return !1;
                var o = L.DataCenter.Instance.GetDataById(u.LuckyCharmShowHouse_Model, e[0]),
                    r = 0;
                t >= e[1] && (r = o && o.LuckyCharmId > 0 ? 2 : 1);
                var i = !1,
                    a = !1,
                    s = L.DataCenter.Instance.GetDataList(u.LuckyCharmEquip_Model);
                if (2 == r) {
                    var l = L.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, o.LuckyCharmId);
                    if (s.length > 0)
                        for (var c = 0; c < s.length; c++)
                            if (s[c].Sid != l.Sid && !n[s[c].Sid] && s[c].ItemId > l.ItemId) {
                                i = !0;
                                break
                            }
                } else if (1 == r && s.length > 0)
                    for (c = 0; c < s.length; c++)
                        if (!n[s[c].Sid]) {
                            a = !0;
                            break
                        } return !(!a && !i)
            }, t.prototype.RefreshLuckyCharmGalleryUpLevel = function() {
                var e, t = L.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, f.UserDataKey.LuckyCharmShowHouseLevel);
                if ((e = t && t.V ? t.V : 0) == L.ConfigDataComponent.Instance.GetArrayConfig(d.LuckyCharmShowHouse_Config).length - 1) return !1;
                for (var n = L.ConfigDataComponent.Instance.GetConfigById(d.LuckyCharmShowHouse_Config, e), o = L.ConfigDataComponent.Instance.GetConfigById(d.LuckyCharmShowHouse_Config, e + 1), r = 0; r < o.ConsumeItems.length; r++) {
                    var i, a = o.ConsumeItems[r].Items[0];
                    if (i = e > 0 ? o.ConsumeItems[r].Items[1] - n.ConsumeItems[r].Items[1] : o.ConsumeItems[r].Items[1], !L.DataCenter.Instance.IsItemEnough(a, i)) return !1
                }
                return !0
            }, t.prototype.RefreshPowerCoreGalleryEntryNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.PowerCoreGallery)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.PowerCoreGallery)) return !1;
                if (this.RefreshPowerCoreGalleryUpLevel()) return !0;
                var e, t = [],
                    n = {};
                L.DataCenter.Instance.GetDataList(u.PowerCore_Model).forEach(function(e) {
                    e.GallerySlot ? n[e.GallerySlot] = e : t.push(e)
                });
                var o = L.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, f.UserDataKey.PowerCoreGalleryLevel);
                e = o && o.V ? o.V : 0;
                for (var r = L.ConfigDataComponent.Instance.GetArrayConfig(d.PowerCoreGallerySlot_Config), i = 0; i < r.length; i++)
                    if (!r[i].Requirements || r[i].Requirements <= e) {
                        var a = r[i].Id;
                        if (n[a])
                            for (var s = L.ConfigDataComponent.Instance.GetConfigById(d.PowerCore_Config, n[a].ItemId), l = 0; l < t.length; l++) {
                                var c = L.ConfigDataComponent.Instance.GetConfigById(d.PowerCore_Config, t[l].ItemId);
                                if (s.Score < c.Score) return !0
                            } else if (t.length > 0) return !0
                    } return !1
            }, t.prototype.RefreshPowerCoreGalleryUpLevel = function() {
                var e, t = L.DataCenter.Instance.GetDataById(u.UserSimpleData_Model, f.UserDataKey.PowerCoreGalleryLevel);
                if ((e = t && t.V ? t.V : 0) == L.ConfigDataComponent.Instance.GetArrayConfig(d.PowerCoreGalleryLevel_Config).length - 1) return !1;
                for (var n = L.ConfigDataComponent.Instance.GetConfigById(d.PowerCoreGalleryLevel_Config, e), o = L.ConfigDataComponent.Instance.GetConfigById(d.PowerCoreGalleryLevel_Config, e + 1), r = 0; r < o.Materials.length; r++) {
                    var i, a = o.Materials[r].Items[0];
                    if (i = e > 0 ? o.Materials[r].Items[1] - n.Materials[r].Items[1] : o.Materials[r].Items[1], !L.DataCenter.Instance.IsItemEnough(a, i)) return !1
                }
                return !0
            }, t.prototype.RefreshElementArenaNode = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.ActivityConfigs[t],
                    o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    r = n.CustomPart.FalseIsCostCount ? o.IntValue : o.IntArray[3] || 0,
                    i = n.CustomPart.ChallengeCount;
                return (i - r > 0 ? i - r : 0) > 0
            }, t.prototype.RefreshHolyRelicEntry = function() {
                var e = m.default.Instance.IsGameModuleOpen(P.GameModuleType.Artifact),
                    t = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Artifact);
                return !(!e || !t[0]) && (this.RefreshHolyRelicFight() || this.RefreshHolyRelicWarToken())
            }, t.prototype.RefreshHolyRelicFight = function() {
                return ie.HolyRelicsData.GetLeftTimes().residueTimes > 0
            }, t.prototype.RefreshHolyRelicWarToken = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.HolyRelicsWarToken)[0]) return !1;
                for (var e = L.ConfigDataComponent.Instance.GetConfigById(d.GameModule_Config, P.GameModuleType.Artifact).WarTokenId, t = N.default.GetWarTokenListData(), n = 0; n < t.length; n++) {
                    var o = t[n].Id;
                    if (e.includes(o))
                        for (var r = N.default.GetRewardData(t[n]), i = 0; i < r.length; i++) {
                            var a = r[i];
                            if (a.CurProgress >= a.Require && (!a.IsFreeReceive || a.IsUnlock && !a.IsVipReceive)) return !0
                        }
                }
                return !1
            }, t.prototype.RefreshContinuousPurchaseGiftEntryNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                if (!n.DailyRewards) return !0;
                for (var o = 0; o < t._Packs.length; o++) {
                    var r = t._Packs[o];
                    if (!n.Packs[r.Id].Items[0]) {
                        if (0 == r.Money) return !0;
                        break
                    }
                }
                return !1
            }, t.prototype.RefreshContinuousPurchaseGiftDailyReward = function(e) {
                return !L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1).DailyRewards
            }, t.prototype.GetNewDailyCheckInRunnerReceiveDays = function(e, t, n) {
                return e.__Rewards.findIndex(function(e) {
                    return e.Id == n
                }) > -1 && t && t.IntMap[n] ? t.IntMap[n] : 0
            }, t.prototype.RefreshNewDailyCheckInRunnerNode = function(e) {
                var t, n = e.Value1,
                    o = L.DataCenter.Instance.ActivityConfigs[n],
                    r = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, n),
                    i = m.default.Instance.ComputeActivitStartTime(o.Common),
                    a = y.RpcComponent.Instance.ServerTime;
                t = I.TimeUtil.GetDiffDays(i, a, !0) + 1;
                for (var s = 0; s < o.__Rewards.length; s++) {
                    var l = o.__Rewards[s];
                    if (l.PackId > 0) {
                        var c = l.PackId,
                            p = null == r ? void 0 : r.Packs[c],
                            d = (p ? p.Items[0] : 0) > 0,
                            h = this.GetNewDailyCheckInRunnerReceiveDays(o, r, l.Id);
                        if (d && t > h) return !0
                    } else if (t > (h = this.GetNewDailyCheckInRunnerReceiveDays(o, r, l.Id))) return !0
                }
                return !1
            }, t.prototype.RefreshOldPlayerRecallToggleDailyRewardNode = function() {
                var e = L.DataCenter.Instance.GetArrayData(f.UserDataKey.OldPlayerRecall);
                return e[ae.OldPlayerDataIndex.SignInCanReceiveDay] > e[ae.OldPlayerDataIndex.SignInReceivedDay]
            }, t.prototype.RefreshOldPlayerRecallToggleTaskNode = function() {
                for (var e = L.DataCenter.Instance.GetArrayData(f.UserDataKey.OldPlayerRecall), t = L.ConfigDataComponent.Instance.GetConfigById(d.OldPlayerRecall_Config, e[ae.OldPlayerDataIndex.ConfigIndex]), n = 0; n < t.PointRewards.length; n++)
                    if (e[ae.OldPlayerDataIndex.ReceivedDailyGift] <= n) {
                        var o = L.ConfigDataComponent.Instance.GetConfigById(d.TaskPointReward_Config, t.PointRewards[n]);
                        if (e[ae.OldPlayerDataIndex.ActiveValue] >= o.Point) return !0
                    } return !1
            }, t.prototype.RefreshOldPlayerRecallToggleFreeRewardNode = function() {
                return !L.DataCenter.Instance.GetArrayData(f.UserDataKey.OldPlayerRecall)[ae.OldPlayerDataIndex.RecallReward]
            }, t.prototype.RefreshOldPlayerRecallToggleGiftNode = function() {
                for (var e = L.DataCenter.Instance.GetArrayData(f.UserDataKey.OldPlayerRecall), t = L.ConfigDataComponent.Instance.GetConfigById(d.OldPlayerRecall_Config, e[ae.OldPlayerDataIndex.ConfigIndex]), n = 0; n < t.RecallPacks.length; n++) {
                    var o = L.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, t.RecallPacks[n]);
                    if (!o.Money || 0 == o.Money) {
                        var r = L.DataCenter.Instance.GetDataById(u.GiftPack_Model, o.Id);
                        if ((r ? r.Count : 0) < o.LimitCount) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshSeckillGiftDailyReward = function(e) {
                return !L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1).DailyRewards
            }, t.prototype.RefreshSeckillGiftEntryNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).DailyRewards) return !0;
                var n = A.default.GetItem(A.GameRecordDefine.SeckillGiftShowGroupArray),
                    o = [];
                n && (o = JSON.parse(n));
                for (var r = 0; r < t.__PackGroup.length; r++) {
                    var i = t.__PackGroup[r],
                        a = I.TimeUtil.StrToTime(i.StartTime),
                        s = I.TimeUtil.StrToTime(i.EndTime);
                    if (a < L.RpcComponent.Instance.ServerTime && L.RpcComponent.Instance.ServerTime < s) return -1 == o.indexOf(i.Id)
                }
                return !1
            }, t.prototype.RefreshLuckyCharmEngraveBtn = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.LuckyCharmEquip_Model, e.Value1);
                if (!t) return !1;
                if (t.ItemId < f.CommonItemId.PrimordialLuckyCharm) return !1;
                var n = t.GloryStar + 1,
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.LuckyCharmStar_Config, 100 * f.CommonItemId.GloryLuckyCharm + n);
                if (!o) return !1;
                var r = o.Unlock[0] || 0,
                    i = o.Unlock[1] || 0;
                if (t.StarSkills.length < r || t.GloryStar < i) return !1;
                for (var a = 0; a < o.Materials.length; a++) {
                    var s = o.Materials[a];
                    if (!p.DataCenter.Instance.IsItemEnough(s.Items[0], s.Items[1])) return !1
                }
                return !0
            }, t.prototype.IsHolyEquipCanAdvanced = function(e) {
                if (!m.default.Instance.IsGameModuleUnlock(f.GameModuleType.UpStepHolyEquipShow)[0]) return !1;
                var t = L.DataCenter.Instance.GetDataById(u.HolyEquipment_Model, e.Value1),
                    n = h.ConfigDataComponent.Instance.GetConfigById(d.GlobalSetting_Config, "UnlockUpStepHolyEquip");
                if (t.Star < n.Value) return !1;
                var o = t.Step ? t.Step : 0,
                    r = L.ConfigDataComponent.Instance.GetConfigById(d.HolyEquipmentStar_Config, 100 * P.HolyEquipmentState.Step + o + 1);
                if (!r) return !1;
                for (var i = 0; i < r.Materials.length; i++) {
                    var a = r.Materials[i].Items[0],
                        s = r.Materials[i].Items[1];
                    if (!L.DataCenter.Instance.IsItemEnough(a, s)) return !1
                }
                return !0
            }, t.prototype.RefreshEmaPrayEntryNode = function(e) {
                for (var t, n = L.DataCenter.Instance.ActivityConfigs[e.Value1], o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, n._id), r = m.default.Instance.ComputeContiuousTime(n.Common), i = 0; i < n.__Days.length; i++) {
                    var a = n.__Days[i];
                    if (a.Id == r) {
                        t = a;
                        break
                    }
                }
                return !!t && (o.Int2DArray.length > 0 && o.Int2DArray[r - 1] ? o.Int2DArray[r - 1].Items : []).length < t.LimitCount
            }, t.prototype.RefreshOldMallSkinGiftBtnNode = function() {
                var e = [];
                L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.SkinStorePack).Data.forEach(function(t) {
                    var n = L.ConfigDataComponent.Instance.GetConfigById(d.GiftPack_Config, t);
                    e.push(n)
                });
                for (var t = 0; t < e.length; t++) {
                    var n = e[t];
                    if (!n.Money && m.default.Instance.GetGiftBuyCount(n.Id) < n.LimitCount) return !0
                }
                return !1
            }, t.prototype.RefreshMagicComposeEntryNode = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), o = 0; o < t.__Slot.length; o++) {
                    var r = t.__Slot[o],
                        i = n.Int2DArray[r.Id - 1] ? n.Int2DArray[r.Id - 1].Items : [];
                    if (i.length > 1 && i[2] <= L.RpcComponent.Instance.ServerTime) return !0
                }
                for (o = 0; o < t.__UncertifiedReel.length; o++)
                    if (L.DataCenter.Instance.GetItemCount(t.__UncertifiedReel[o].Id) > 0) return !0;
                return !!this.RefreshMagicComposeCombineButtonNode(e)
            }, t.prototype.RefreshMagicComposeCombineButtonNode = function(e) {
                for (var t, n = L.DataCenter.Instance.ActivityConfigs[e.Value1], o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, n._id), r = 0; r < n.__Slot.length; r++) {
                    var i = n.__Slot[r];
                    if ((o.Int2DArray[i.Id - 1] ? o.Int2DArray[i.Id - 1].Items : []).length <= 1 && (!i.UnlockPackId || o.Packs[i.UnlockPackId] && o.Packs[i.UnlockPackId].Items[0])) {
                        t = i.Id;
                        break
                    }
                }
                if (!t) return !1;
                for (r = 0; r < n.__Reel.length; r++) {
                    var a = n.__Reel[r];
                    if (L.DataCenter.Instance.GetItemCount(a.Id) > 0) {
                        for (var s = 0, l = 0; l < a.Cost.length; l++) {
                            var c = a.Cost[l].Items,
                                p = c[0],
                                d = c[1];
                            if (!L.DataCenter.Instance.IsItemEnough(p, d)) break;
                            s++
                        }
                        if (s == a.Cost.length) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshWeekCardNode = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return !t || 1 != t.PhaseRewards
            }, t.prototype.RefreshSuperGiftNodeNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1),
                    o = A.default.GetItem(A.GameRecordDefine.SuperPackDailyReddot);
                if (null == o || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) != I.TimeUtil.Get0ClockTs(parseInt(o))) return !0;
                if (t && n) {
                    var r = t._Packs[0].Id,
                        i = n.Packs[r] && n.Packs[r].Items[0] ? n.Packs[r].Items[0] : 0,
                        a = I.TimeUtil.GetDiffDays(m.default.Instance.ComputeActivitStartTime(t.Common), L.RpcComponent.Instance.ServerTime, !0) + 1;
                    if (i > 0 && n.IntValue < a) return !0
                }
                return !1
            }, t.prototype.RefreshRunningTrainEntryNode = function(e) {
                return !!(this.RefreshRunningTrainTaskNode(e) || this.RefreshRunningTrainReceiveNode(e) || this.RefreshRunningTrainConsume1Node(e) || this.RefreshRunningTrainConsume2Node(e))
            }, t.prototype.RefreshRunningTrainTaskNode = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n],
                        r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.Id + 1e4 * t._id);
                    if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshRunningTrainTaskDailyToggle = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n];
                    if (o.IsDaily) {
                        var r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.Id + 1e4 * t._id);
                        if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshRunningTrainTaskTotalToggle = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n];
                    if (!o.IsDaily) {
                        var r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.Id + 1e4 * t._id);
                        if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshRunningTrainReceiveNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    o = n.IntArray[se.RunningTrainDataIndex.Distance],
                    r = n.IntArray[se.RunningTrainDataIndex.ReceiveRewardId];
                if (n.Packs[t.CustomPart.PackId] && n.Packs[t.CustomPart.PackId].Items[0] > 0 && !n.IntArray[se.RunningTrainDataIndex.IsExclusive] && t.__Rewards[0].Count <= o) return !0;
                for (var i = 0; i < t.__Rewards.length; i++) {
                    var a = t.__Rewards[i];
                    if (a.Count <= o && a.Id > r) return !0
                }
                return !1
            }, t.prototype.RefreshRunningTrainConsume1Node = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = t.__ItemConsume[0] ? t.__ItemConsume[0].Id : null;
                return !!(n && p.DataCenter.Instance.GetItemCount(n) > 0)
            }, t.prototype.RefreshRunningTrainConsume2Node = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = t.__ItemConsume[1] ? t.__ItemConsume[1].Id : null;
                return !!(n && p.DataCenter.Instance.GetItemCount(n) > 0)
            }, t.prototype.RefreshRechargeFeedbackNode = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return !(!t || t.DailyRewards)
            }, t.prototype.RefreshSuperWeaponToggleNode = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.SuperWeapon_Config), t = 0; t < e.length; t++) {
                    var n = {};
                    if (n.Value1 = e[t].Id, this.RefreshSuperWeaponCardNode(n)) return !0
                }
                return !1
            }, t.prototype.RefreshSuperWeaponCardNode = function(e) {
                var t = this.RefreshSuperWeaponUpStarBtnNode(e),
                    n = this.RefreshSuperWeaponUpLevelBtnNode(e),
                    o = this.RefreshSuperWeaponSlotNode(e);
                return !!(t || n || o)
            }, t.prototype.RefreshSuperWeaponUpStarBtnNode = function(e) {
                var t = 0,
                    n = L.DataCenter.Instance.GetDataById(u.SuperWeapon_Model, e.Value1),
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.SuperWeapon_Config, e.Value1);
                n && (t = n.Star);
                var r = L.ConfigDataComponent.Instance.GetConfigById(d.SuperWeaponStar_Config, t + 1);
                if (!r) return !1;
                for (var i = r.HeroMaterials, a = r.Materials, s = [], l = L.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e.Value1), c = 0; c < i.length; c++) {
                    var p, h = i[c].Items,
                        f = h[0],
                        y = h[1],
                        g = h[2],
                        I = void 0,
                        _ = 0,
                        C = [];
                    switch (f) {
                        case 1:
                            I = 0;
                            break;
                        case 3:
                            I = 0, _ = l.ElementType;
                            break;
                        case 4:
                            _ = 0, I = 0
                    }
                    p = m.default.GetHeroUpStarPools(f, I, y, _, s, !0);
                    for (var v = 0; v < p.length; v++) {
                        var b = p[v];
                        if (C.push(b), s.push(b), C.length >= g) break
                    }
                    if (C.length < g) return !1
                }
                for (c = 0; c < a.length; c++)
                    if (I = void 0, I = -1 == a[c].Items[0] ? o.PieceId : a[c].Items[0], L.DataCenter.Instance.GetItemCount(I) < a[c].Items[1]) return !1;
                return !0
            }, t.prototype.RefreshSuperWeaponUpLevelBtnNode = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.SuperWeapon_Model, e.Value1);
                if (!t) return !1;
                var n = t.Level + 1,
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.SuperWeaponLevel_Config, n);
                if (!o) return !1;
                var r = L.ConfigDataComponent.Instance.GetConfigById(d.SuperWeaponStar_Config, t.Star);
                if (t.Level >= r.LevelCap) return !1;
                for (var i = L.ConfigDataComponent.Instance.GetConfigById(d.SuperWeaponLevel_Config, t.Level), a = 0; a < o.Materials.length; a++) {
                    var s = o.Materials[a].Items[0],
                        l = o.Materials[a].Items[1],
                        c = i.Materials[a] && i.Materials[a].Items[1] ? i.Materials[a].Items[1] : 0;
                    if (!p.DataCenter.Instance.IsItemEnough(s, l - c)) return !1
                }
                return !0
            }, t.prototype.RefreshSuperWeaponSlotNode = function(e) {
                for (var t = L.ConfigDataComponent.Instance.GetConfigById(d.SuperWeapon_Config, e.Value1), n = 0; n < t.Slot.length; n++) {
                    var o = {};
                    if (o.Value1 = e.Value1, o.extra = n, this.RefreshSuperWeaponSlotItemNode(o)) return !0
                }
                return !1
            }, t.prototype.RefreshSuperWeaponSlotItemNode = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.SuperWeapon_Model, e.Value1);
                if (!t) return !1;
                var n = L.ConfigDataComponent.Instance.GetConfigById(d.SuperWeapon_Config, e.Value1),
                    o = e.extra,
                    r = n.Slot[o].Items[0];
                if (t.Star < r) return !1;
                var i = L.DataCenter.Instance.GetSuperWeaponItems(e.Value1),
                    a = L.ConfigDataComponent.Instance.GetGlobalSettingByKey("SuperWeaponSlotQuality"),
                    s = [],
                    l = [],
                    c = p.DataCenter.Instance.GetUserData(u.StarPiece_Model),
                    h = p.DataCenter.Instance.GetUserData(u.ExclusiveWeapon_Model);
                for (var f in c) {
                    var y = c[f],
                        g = L.ConfigDataComponent.Instance.GetConfigById(d.StarPiece_Config, y.Sid);
                    g.QualityId >= a && !y.SuperId && ((m = {}).Model = y, m.Quality = g.QualityId, s.push(m))
                }
                for (var f in h) {
                    y = h[f];
                    var m, I = L.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeapon_Config, y.Sid),
                        _ = L.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, I.ItemBaseId);
                    _.Quality >= a && !y.SuperId && ((m = {}).Model = y, m.Quality = _.Quality, l.push(m))
                }
                var C, v = i[o] || 0,
                    b = n.Slot[o];
                if (v > 0)
                    if (1 == b.Items[1]) {
                        for (var S = L.DataCenter.Instance.GetDataById(u.StarPiece_Model, v), w = L.ConfigDataComponent.Instance.GetConfigById(d.StarPiece_Config, v), P = 0; P < s.length; P++)
                            if (s[P].Model.Sid != v && (s[P].Quality > w.QualityId || s[P].Quality == w.QualityId && s[P].Model.Star > S.Star)) return !0
                    } else {
                        S = L.DataCenter.Instance.GetDataById(u.ExclusiveWeapon_Model, v), w = L.ConfigDataComponent.Instance.GetConfigById(d.ExclusiveWeapon_Config, v);
                        var A = L.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, w.ItemBaseId);
                        for (P = 0; P < l.length; P++)
                            if (l[P].Model.Sid != v && (l[P].Quality > A.Quality || l[P].Quality == A.Quality && l[P].Model.Star > S.Star)) return !0
                    }
                else
                    for (C = 1 == b.Items[1] ? s : l, P = 0; P < C.length; P++)
                        if (C.length > 0) return !0;
                return !1
            }, t.prototype.RefreshNewYearWeaponToggleNode = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.NewYearWeapon_Config), t = 0; t < e.length; t++) {
                    var n = {};
                    if (n.Value1 = e[t].Id, this.RefreshNewYearWeaponCardNode(n)) return !0
                }
                return !1
            }, t.prototype.RefreshNewYearWeaponCardNode = function(e) {
                var t = this.RefreshNewYearWeaponUpStarBtnNode(e),
                    n = this.RefreshNewYearWeaponUpLevelBtnNode(e),
                    o = this.RefreshNewYearWeaponUseNode(e);
                return !!(t || n || o)
            }, t.prototype.RefreshNewYearWeaponUpStarBtnNode = function(e) {
                var t = 0,
                    n = L.DataCenter.Instance.GetDataById(u.NewYearWeapon_Model, e.Value1),
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.NewYearWeapon_Config, e.Value1);
                n && (t = n.Star);
                var r = L.ConfigDataComponent.Instance.GetConfigById(d.NewYearWeaponStar_Config, t + 1);
                if (!r) return !1;
                for (var i = r.HeroMaterials, a = r.Materials, s = [], l = L.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e.Value1), c = 0; c < i.length; c++) {
                    var p, h = i[c].Items,
                        f = h[0],
                        y = h[1],
                        g = h[2],
                        I = void 0,
                        _ = 0,
                        C = [];
                    switch (f) {
                        case 1:
                            I = 0;
                            break;
                        case 3:
                            I = 0, _ = l.ElementType;
                            break;
                        case 4:
                            _ = 0, I = 0
                    }
                    p = m.default.GetHeroUpStarPools(f, I, y, _, s, !0);
                    for (var v = 0; v < p.length; v++) {
                        var b = p[v];
                        if (C.push(b), s.push(b), C.length >= g) break
                    }
                    if (C.length < g) return !1
                }
                for (c = 0; c < a.length; c++)
                    if (I = void 0, I = -1 == a[c].Items[0] ? o.PieceId : a[c].Items[0], L.DataCenter.Instance.GetItemCount(I) < a[c].Items[1]) return !1;
                return !0
            }, t.prototype.RefreshNewYearWeaponUseNode = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.NewYearWeapon_Model, e.Value1);
                if (!t) return !1;
                var n = L.ConfigDataComponent.Instance.GetConfigById(d.NewYearWeapon_Config, e.Value1),
                    o = n.UnAvailableTime ? I.TimeUtil.StrToTime(n.UnAvailableTime) : 0,
                    r = L.RpcComponent.Instance.ServerTime;
                return !(o && r > o) && r > n.CoolDownTime * P.Etc.MinuteDuration + t.UseTime
            }, t.prototype.RefreshNewYearWeaponUpLevelBtnNode = function(e) {
                var t = L.DataCenter.Instance.GetDataById(u.NewYearWeapon_Model, e.Value1);
                if (!t) return !1;
                var n = t.Level + 1,
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.NewYearWeaponLevel_Config, n);
                if (!o) return !1;
                var r = L.ConfigDataComponent.Instance.GetConfigById(d.NewYearWeaponStar_Config, t.Star);
                if (t.Level >= r.LevelCap) return !1;
                for (var i = L.ConfigDataComponent.Instance.GetConfigById(d.NewYearWeaponLevel_Config, t.Level), a = 0; a < o.Materials.length; a++) {
                    var s = o.Materials[a].Items[0],
                        l = o.Materials[a].Items[1],
                        c = i.Materials[a] && i.Materials[a].Items[1] ? i.Materials[a].Items[1] : 0;
                    if (!p.DataCenter.Instance.IsItemEnough(s, l - c)) return !1
                }
                return !0
            }, t.RefreshNewYearWeaponRedDot = function() {
                var e = p.DataCenter.Instance.GetDataList(u.NewYearWeapon_Model);
                if (e && !(e.length <= 0)) {
                    for (var t = 0, o = 0; o < e.length; o++) {
                        var r = e[o].Sid,
                            i = h.ConfigDataComponent.Instance.GetConfigById(d.NewYearWeapon_Config, r),
                            a = i.UnAvailableTime ? I.TimeUtil.StrToTime(i.UnAvailableTime) : 0,
                            s = y.RpcComponent.Instance.ServerTime;
                        if (!(a && s > a)) {
                            var l = i.CoolDownTime * P.Etc.MinuteDuration + e[o].UseTime;
                            l < s || (t = t ? Math.min(t, l - s) : l - s)
                        }
                    }
                    n.Instance.unschedule(v.RedDotManager.Instance.OnNewYearWeaponModelChange), t && n.Instance.scheduleOnce(v.RedDotManager.Instance.OnNewYearWeaponModelChange, Math.ceil(t / P.Etc.SecondDuration))
                }
            }, t.prototype.RefreshHeroPKEntryNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (p.DataCenter.Instance.GetItemCount(t.CustomPart.ItemId) > 0)
                    for (var n = m.default.Instance.ComputeContiuousTime(t.Common), o = 0; o < t.__Rounds.length; o++) {
                        var r = t.__Rounds[o];
                        if (n > r.StartDay && n <= r.BattleDay) return !0
                    }
                if (this.RefreshHeroPKTaskNode(e)) return !0;
                var i = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                for (o = 0; o < t.__Rounds.length; o++) {
                    var a = t.__Rounds[o];
                    if (i.IntMap[a.Id] && !i.Int2DArray[a.Id - 1]) return !0
                }
                return !1
            }, t.prototype.RefreshHeroPKTaskNode = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n],
                        r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.Id + 1e4 * t._id);
                    if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshHeroPKDailyTaskToggle = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n];
                    if (o.IsDaily) {
                        var r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.Id + 1e4 * t._id);
                        if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshHeroPKTotalTaskToggle = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n];
                    if (!o.IsDaily) {
                        var r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.Id + 1e4 * t._id);
                        if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshHeroPKReceiveButtonNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = e.extra,
                    o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                return !(!o.IntMap[n] || o.Int2DArray[n - 1].Items[3])
            }, t.prototype.RefreshActivityWarToken = function(e) {
                for (var t = N.default.GetWarTokenListData(), n = e.Value1, o = 0; o < t.length; o++)
                    if (t[o].Id == n)
                        for (var r = N.default.GetRewardData(t[o]), i = 0; i < r.length; i++) {
                            var a = r[i];
                            if (a.CurProgress >= a.Require && (!a.IsFreeReceive || a.IsUnlock && !a.IsVipReceive)) return !0
                        }
                return !1
            }, t.prototype.RefreshTreasureHuntNode = function(e) {
                var t = this.RefreshTreasureHuntWarTokenBtn(e),
                    n = this.RefreshTreasureHuntTaskBtn(e),
                    o = this.RefreshTreasureHuntGiftPackBtn(e),
                    r = this.RefreshTreasureHuntTurnBtn(e);
                return !!(t || n || o || r)
            }, t.prototype.RefreshTreasureHuntWarTokenBtn = function(e) {
                var t, n = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.ItemGetWay_Config, n.Common.JumpId);
                if (o && o.PanelInfo[1] && !(t = m.default.GetActivityByGetWay(o.PanelInfo[1]))) return !1;
                for (var r = N.default.GetWarTokenListData(), i = 0; i < r.length; i++)
                    if (r[i].Id == t)
                        for (var a = N.default.GetRewardData(r[i]), s = 0; s < a.length; s++) {
                            var l = a[s];
                            if (l.CurProgress >= l.Require && (!l.IsFreeReceive || l.IsUnlock && !l.IsVipReceive)) return !0
                        }
                return !1
            }, t.prototype.RefreshTreasureHuntTaskBtn = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                return !!this.CheckTaskCanReceive(e.Value1, t._Tasks)
            }, t.prototype.RefreshTreasureHuntGiftPackBtn = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                return this.CheckActivityRedDotState(t)
            }, t.prototype.RefreshTreasureHuntTurnBtn = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    o = {};
                if (!n.DailyRewards) return !0;
                for (var r = 0; r < n.Int2DArray[0].Items.length; r++) o[n.Int2DArray[0].Items[r]] = 1;
                for (r = 0; r < t.__TurnRewards.length; r++) {
                    var i = t.__TurnRewards[r];
                    if (1 != o[i.Id] && n.IntArray[0] >= i.Id) return !0
                }
                return !1
            }, t.prototype.RefreshRiskPortAngelPve = function() {
                if (L.DataCenter.Instance.GetIntData(f.UserDataKey.StarLightSecretTodayCount) >= L.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarLightSecretLandDailyCount")) return !1;
                var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.StarLightSecretLandMap_Config),
                    t = 0;
                return e.forEach(function(e) {
                    t = Math.max(t, e.Id)
                }), !(L.DataCenter.Instance.GetIntData(f.UserDataKey.StarLightSecretProgress) >= t || this.GetContinuousFightIsSettlement())
            }, t.prototype.RefreshAngelHandbookEntry = function() {
                return !(!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.AngelHandbook)[0] || !m.default.Instance.IsGameModuleOpen(P.GameModuleType.AngelHandbook) || !this.RefreshAngelHandbookUpLevelToggle() && !this.RefreshAngelHandbookSublimingToggle())
            }, t.prototype.RefreshAngelHandbookUpLevelToggle = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.AngelBase_Config), t = 0; t < e.length; t++) {
                    var n = {
                        Value1: e[t].Id
                    };
                    if (this.RefreshAngelHandbookUpLevelButton(n)) return !0
                }
                return !1
            }, t.prototype.RefreshAngelHandbookSublimingToggle = function() {
                for (var e = L.ConfigDataComponent.Instance.GetArrayConfig(d.AngelBase_Config), t = 0; t < e.length; t++) {
                    var n = {
                        Value1: e[t].Id
                    };
                    if (this.RefreshAngelHandbookSublimingButton(n)) return !0
                }
                return !1
            }, t.prototype.RefreshAngelHandbookUpLevelButton = function(e) {
                if (e.Value1) {
                    var t = L.ConfigDataComponent.Instance.GetConfigById(d.AngelBase_Config, e.Value1),
                        n = L.ConfigDataComponent.Instance.GetConfigById(d.AngelStar_Config, 1e3 * t.Id + t.MaxStarLevel - 1),
                        o = 100 * (t.MaxStarLevel - 1) + n.AngelBookPointAttrs.length,
                        r = L.DataCenter.Instance.GetDataById(u.UserAngel_Model, e.Value1);
                    if (r) {
                        var i = void 0;
                        if (i = (i = 0 == r.StarLevel && 0 == r.SubStarLevel ? 0 : 0 == r.SubStarLevel ? 100 * (r.StarLevel - 1) + 5 : 100 * r.StarLevel + r.SubStarLevel) > o ? o : i, r.HandBookStar < i) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshAngelHandbookSublimingButton = function(e) {
                if (e.Value1) {
                    var t = L.DataCenter.Instance.GetDataById(u.UserAngel_Model, e.Value1),
                        n = L.ConfigDataComponent.Instance.GetConfigById(d.AngelBase_Config, e.Value1),
                        o = L.ConfigDataComponent.Instance.GetConfigById(d.AngelStar_Config, 1e3 * n.Id + n.MaxStarLevel - 1),
                        r = 100 * (n.MaxStarLevel - 1) + o.AngelBookPointAttrs.length;
                    if (t && t.HandBookStar == r) {
                        var i = L.ConfigDataComponent.Instance.GetConfigById(d.AngelHandBookSublimate_Config, e.Value1);
                        if (t.HandBookSublimate == i.Attr.length) return !1;
                        var a = t.HandBookSublimate > 0 ? i.Cost[t.HandBookSublimate] - i.Cost[t.HandBookSublimate - 1] : i.Cost[t.HandBookSublimate];
                        if (p.DataCenter.Instance.IsItemEnough(n.AngelSoulId, a)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshScratchCardNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = p.DataCenter.Instance.IsItemEnough(t.CustomPart.ItemId, 1),
                    o = this.RefreshScratchCardRewardNode(e),
                    r = this.RefreshScratchCardGiftNode(e),
                    i = this.RefreshScratchCardTaskNode(e);
                return !!(o || r || n || i)
            }, t.prototype.RefreshScratchCardRewardNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                return !!(n.Int2DArray && n.Int2DArray[0] && n.Int2DArray[0].Items.length > 0)
            }, t.prototype.RefreshScratchCardGiftNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                return this.CheckActivityRedDotState(t)
            }, t.prototype.RefreshScratchCardTaskNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                return !!this.CheckTaskCanReceive(e.Value1, t._Tasks)
            }, t.prototype.RefreshAngelPvpMatchBtn = function() {
                if (this.GetContinuousFightIsSettlement()) return !1;
                var e = L.ConfigDataComponent.Instance.GetGlobalSettingByKey("GodLandDuelDailyCount");
                return L.DataCenter.Instance.GetIntData(P.UserDataKey.GodLandDuelDailyCount) < e
            }, t.prototype.RefreshAngelPvpDailyToggle = function() {
                return !this.GetContinuousFightIsSettlement() && !!this.CheckTaskCanReceiveByTaskType(f.TaskType.GodLandDuelDaily)
            }, t.prototype.RefreshAngelPvpWeeklyToggle = function() {
                return !this.GetContinuousFightIsSettlement() && !!this.CheckTaskCanReceiveByTaskType(f.TaskType.GodLandDuelWeekly)
            }, t.prototype.CheckTaskCanReceiveByTaskType = function(e) {
                var t = [];
                L.ConfigDataComponent.Instance.GetArrayConfig(d.TaskBase_Config).forEach(function(n) {
                    n.Type == e && t.push(n)
                });
                for (var n = 0; n < t.length; n++) {
                    var o = L.DataCenter.Instance.GetDataById(u.UserTask_Model, t[n].Id);
                    if (o && !o.IsCompleted && o.Progress >= t[n].TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshLuckyCakeEntryNode = function(e) {
                return !!(this.RefreshLuckyCakeTaskNode(e) || this.RefreshLuckyCakeEatButtonNode(e) || this.RefreshLuckyCakeFreeRewardNode(e))
            }, t.prototype.RefreshLuckyCakeFreeRewardNode = function(e) {
                return !L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1).DailyRewards
            }, t.prototype.RefreshLuckyCakeEatButtonNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return !((n.IntArray[0] ? n.IntArray[0] : 0) == t.__Turn.length || !p.DataCenter.Instance.IsItemEnough(t.CustomPart.ItemId, 1))
            }, t.prototype.RefreshLuckyCakeTaskNode = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n],
                        r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.Id + 1e4 * t._id);
                    if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshLuckyCakeTaskDailyToggle = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n];
                    if (o.IsDaily) {
                        var r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.Id + 1e4 * t._id);
                        if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshLuckyCakeTaskTotalToggle = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = t._Tasks[n];
                    if (!o.IsDaily) {
                        var r = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.Id + 1e4 * t._id);
                        if (!r.IsCompleted && r.Progress >= o.TotalCount) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshEmojiButtonNode = function() {
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.EmojiType_Config), t = 0; t < e.length; t++)
                    if (le.default.CheckReddot(e[t])) return !0;
                return !1
            }, t.prototype.RefreshActivityChampionEntryButton = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), o = m.default.Instance.ComputeActivitStartTime(t.Common), r = L.RpcComponent.Instance.ServerTime, i = 0; i < t.__Rounds.length; i++) {
                    for (var a = t.__Rounds[i], s = !0, l = 0; l < a.ApplyCondition.length; l++)
                        if (1 == a.ApplyCondition[l].Items[0]) {
                            if (L.DataCenter.Instance.GetIntData(P.UserDataKey.Power) < a.ApplyCondition[l].Items[1]) {
                                s = !1;
                                break
                            }
                        } else if (2 == a.ApplyCondition[l].Items[0] && L.DataCenter.Instance.GetIntData(P.UserDataKey.PlayerLevel) < a.ApplyCondition[l].Items[1]) {
                        s = !1;
                        break
                    }
                    var c = o + (a.Apply - 1) * P.Etc.DayDuration + 2 * P.Etc.HourDuration,
                        p = o + (a.Preliminary[0] - 1) * P.Etc.DayDuration;
                    if (r > c && r < p && s && !n.IntArray[i]) return !0
                }
                return !1
            }, t.prototype.RefreshActivityChampionApplyButton = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                    o = m.default.Instance.ComputeActivitStartTime(t.Common),
                    r = L.RpcComponent.Instance.ServerTime,
                    i = t.__Rounds[e.extra];
                if (i) {
                    for (var a = 0; a < i.ApplyCondition.length; a++)
                        if (1 == i.ApplyCondition[a].Items[0]) {
                            if (L.DataCenter.Instance.GetIntData(P.UserDataKey.Power) < i.ApplyCondition[a].Items[1]) return !1
                        } else if (2 == i.ApplyCondition[a].Items[0] && L.DataCenter.Instance.GetIntData(P.UserDataKey.PlayerLevel) < i.ApplyCondition[a].Items[1]) return !1;
                    var s = o + (i.Apply - 1) * P.Etc.DayDuration + 2 * P.Etc.HourDuration,
                        l = o + (i.Preliminary[0] - 1) * P.Etc.DayDuration;
                    if (r > s && r < l && !n.IntArray[e.extra]) return !0
                }
                return !1
            }, t.prototype.RefreshActivityChampionPreviewButton = function() {
                return !1
            }, t.prototype.RefreshChampionPreviewToggle1 = function(e) {
                return L.DataCenter.Instance.ActivityConfigs[e.Value1], e.extra[0], !1
            }, t.prototype.RefreshChampionPreviewToggle2 = function() {
                return !1
            }, t.prototype.RefreshChampionPreviewToggle3 = function() {
                return !1
            }, t.prototype.RefreshChampionPreviewToggle4 = function() {
                return !1
            }, t.prototype.RefreshChampionPreviewToggle5 = function() {
                return !1
            }, t.prototype.RefreshChampionPreviewSelectButton = function(e) {
                return e.extra && L.DataCenter.Instance.ActivityConfigs[e.extra[0]].__Rounds[e.extra[1]], !1
            }, t.prototype.RefreshChampionPreviewRankButton = function(e) {
                if (e && e.extra) L.DataCenter.Instance.ActivityConfigs[e.extra[0]];
                else {
                    var t = L.DataCenter.Instance.GetSimpleData(P.UserDataKey.AllZoneChampionRaceRewardsState);
                    if (t && t.IntArray)
                        for (var n = 0; n < t.IntArray.length; n++)
                            if (1 == t.IntArray[n]) return !0
                }
                return !1
            }, t.prototype.RefreshChampionPreviewRewardButton = function(e) {
                if (e && e.extra) L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.extra[0]);
                else {
                    var t = L.DataCenter.Instance.GetSimpleData(P.UserDataKey.AllZoneChampionRaceRewardsState);
                    if (t && t.IntArray && 1 == t.IntArray[e.Value1]) return !0
                }
                return !1
            }, t.prototype.RefreshCircusMazeNode = function(e) {
                var t = this.RefreshCircusMazeWarTokenNode(e),
                    n = this.RefreshCircusMazeConsumeNode(e),
                    o = this.RefeshCircusMazeProgressNode(e),
                    r = this.RefreshCircusMazeGiftNode(e);
                return !!(t || n || o || r)
            }, t.prototype.RefreshCircusMazeWarTokenNode = function(e) {
                return this.CheckActivityWarTokenReddot(e.Value1)
            }, t.prototype.RefreshCircusMazeConsumeNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = (L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1), 3 * t.CustomPart.CostSp),
                    o = ce.default.GetRealRecoverTime(t);
                return Math.floor((L.RpcComponent.Instance.ServerTime - o) / (t.CustomPart.RecoverSpTime * g.Etc.MinuteDuration)) + L.DataCenter.Instance.GetItemCount(t.CustomPart.ItemId) >= n
            }, t.prototype.RefeshCircusMazeProgressNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return (n.Int2DArray[1] && n.Int2DArray[1].Items ? n.Int2DArray[1].Items : []).length != t.CustomPart.ProgressRewards.length
            }, t.prototype.RefreshCircusMazeGiftNode = function(e) {
                return this.CheckActivityPacksReddot(e.Value1)
            }, t.prototype.CheckActivityWarTokenReddot = function(e) {
                var t, n = L.DataCenter.Instance.ActivityConfigs[e],
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.ItemGetWay_Config, n.Common.JumpId);
                if (o && o.PanelInfo[1] && !(t = m.default.GetActivityByGetWay(o.PanelInfo[1]))) return !1;
                for (var r = N.default.GetWarTokenListData(), i = 0; i < r.length; i++)
                    if (r[i].Id == t)
                        for (var a = N.default.GetRewardData(r[i]), s = 0; s < a.length; s++) {
                            var l = a[s];
                            if (l.CurProgress >= l.Require && (!l.IsFreeReceive || l.IsUnlock && !l.IsVipReceive)) return !0
                        }
                return !1
            }, t.prototype.CheckActivityPacksReddot = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e], n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e), o = 0; o < t._Packs.length; o++) {
                    var r = t._Packs[o];
                    if (!r.Money && (n && n.Packs[r.Id] && n.Packs[r.Id].Items[0] ? n.Packs[r.Id].Items[0] : 0) < r.LimitCount) return !0
                }
                return !1
            }, t.prototype.RefreshParkourNode = function(e) {
                var t = this.RefreshParkourTaskNode(e),
                    n = this.RefreshParkourGiftNode(e);
                return !(!t && !n)
            }, t.prototype.RefreshParkourWarTokenNode = function(e) {
                return this.CheckActivityWarTokenReddot(e.Value1)
            }, t.prototype.RefreshParkourTaskNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                return !!this.CheckTaskCanReceive(t._id, t._Tasks)
            }, t.prototype.RefreshParkourGiftNode = function(e) {
                return this.CheckActivityPacksReddot(e.Value1)
            }, t.prototype.RefreshCrazyDiscountState = function(e) {
                var t = e.Value1;
                return !p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t).DailyRewards
            }, t.prototype.GetHeroJobChangeHigherJobIds = function(e) {
                var t = [],
                    n = e.Value1,
                    o = p.DataCenter.Instance.GetDataById(u.UserHero_Model, n),
                    r = L.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, o.HeroId);
                if (!r.Jobs || !r.Jobs.length) return [];
                var i = -1;
                if (o.JobMap)
                    for (var a in o.JobMap)
                        if (o.JobMap[a] > 0) {
                            var s = Number(a),
                                l = L.ConfigDataComponent.Instance.GetConfigById(d.HeroJob_Config, s);
                            i = Math.max(l.Stage, i)
                        } for (var c = 0; c < r.Jobs.length; c++) {
                    var h = L.ConfigDataComponent.Instance.GetConfigById(d.HeroJob_Config, r.Jobs[c].Items[0]);
                    if (!(o.JobMap[h.Id] > 0) && (!(r.Jobs[c].Items[1] > 0) || o.JobMap && o.JobMap[r.Jobs[c].Items[1]])) {
                        for (var f = !0, y = 0; y < h.Condition.length; y++) {
                            var g = h.Condition[y];
                            if (1 == g.Items[0] && o.StarLevel < g.Items[1]) {
                                f = !1;
                                break
                            }
                        }
                        if (f)
                            for (var m = 0; m < h.Materials.length; m++)
                                if (!L.DataCenter.Instance.IsItemEnough(h.Materials[m].Items[0], h.Materials[m].Items[1])) {
                                    f = !1;
                                    break
                                } f && h.Stage > i && t.push(h.Id)
                    }
                }
                return t
            }, t.prototype.RefreshHeroJobChangeNode = function(e) {
                var t = m.default.Instance.IsGameModuleOpen(P.GameModuleType.HeroJob),
                    n = m.default.Instance.IsGameModuleUnlock(P.GameModuleType.HeroJob)[0];
                return !(!t || !n) && this.GetHeroJobChangeHigherJobIds(e).length > 0
            }, t.prototype.RefreshBeatWatermelonEntryNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                return p.DataCenter.Instance.GetItemCount(t.CustomPart.ItemId) > 0 || !!this.RefreshBeatWatermelonGiftButton(e)
            }, t.prototype.RefreshBeatWatermelonGiftButton = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), o = 0; o < t._Packs.length; o++) {
                    var r = t._Packs[o];
                    if (!(r.Money || n.Packs[r.Id] && n.Packs[r.Id].Items[0] && n.Packs[r.Id].Items[0])) return !0
                }
                return !1
            }, t.prototype.RefreshGlobalChampionFormationBtn = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t];
                if (!n || !e.extra) return !1;
                for (var o = e.extra, r = pe.default.GetCurGroupGradeId(o.Rank, o.Score, n), i = de.default.GetGroupIdToStage2Map(n), a = de.default.GetStage2IdToStageMap(n)[i[r].Id], s = h.ConfigDataComponent.Instance.GetConfigById(d.MapBase_Config, n.CustomPart.MapId), l = h.ConfigDataComponent.Instance.GetConfigById(d.MapType_Config, s.Type), c = 0; c < a.Count; c++)
                    if (l.AttackerFormation[c]) {
                        var f = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, l.AttackerFormation[c]);
                        if (!f) return !0;
                        for (var y = !1, g = 0; g < f.HeroIds.length; g++)
                            if (f.HeroIds[g] > 0) {
                                y = !0;
                                break
                            } if (!y) return !0
                    } return !1
            }, t.prototype.RefreshGlobalChampionReward = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t];
                if (!n) return !1;
                for (var o = 0; o < n._Tasks.length; o++) {
                    var r = n._Tasks[o],
                        i = p.DataCenter.Instance.GetDataById(u.UserTask_Model, t * g.Etc.Multiplier + r.Id);
                    if (i && i.Progress >= r.TotalCount && !i.IsCompleted) return !0
                }
                return !1
            }, t.prototype.RefreshGlobalChampionShipNode = function(e) {
                var t;
                if (e) t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                else
                    for (var n in p.DataCenter.Instance.ActivityConfigs) {
                        var o = p.DataCenter.Instance.ActivityConfigs[n];
                        if (o.Common.Type == P.ActivityType.Championship) {
                            t = o;
                            break
                        }
                    }
                if (!t) return !1;
                var r = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id);
                return !!(r.IntArray[1] > 0 && (!r.IntArray[0] || r.IntArray[0] > r.IntArray[1])) || this.RefreshGlobalChampionReward({
                    Value1: t._id
                })
            }, t.prototype.RefreshRushRankFrameEntryNode = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).DailyRewards) return !0;
                for (var n = 0; n < t.CustomPart.SubIds.length; n++) {
                    var o = {
                        Value1: Number(t.CustomPart.SubIds[n])
                    };
                    if (this.RefreshRushRankEntryNode(o)) return !0
                }
                return !1
            }, t.prototype.RefreshRushRankFrameDailyRewardNode = function(e) {
                return !L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1).DailyRewards
            }, t.prototype.RefreshRushRankEntryNode = function(e) {
                return !!this.RefreshRushRankTotalTaskNode(e) || !!this.RefreshRushRankTaskToggle(e) || !!this.RefreshRushRankGiftToggle(e)
            }, t.prototype.RefreshRushRankTotalTaskNode = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (m.default.Instance.ComputeDeadTime(t.Common) - L.RpcComponent.Instance.ServerTime <= 0) return !1;
                var n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).IntArray[1];
                if (n == t.__TaskGroup.length) return !1;
                for (var o = t.__TaskGroup[n], r = 0, i = 0; i < o.TaskIds.length; i++) {
                    var a = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o.TaskIds[i] + 1e4 * t._id);
                    a && a.IsCompleted && r++
                }
                return r == o.TaskIds.length
            }, t.prototype.RefreshRushRankTaskToggle = function(e) {
                if (this.RefreshRushRankTotalTaskNode(e)) return !0;
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (m.default.Instance.ComputeDeadTime(t.Common) - L.RpcComponent.Instance.ServerTime <= 0) return !1;
                var n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id).IntArray[1];
                if (n == t.__TaskGroup.length) return !1;
                var o = {};
                t._Tasks.forEach(function(e) {
                    o[e.Id] = e
                });
                for (var r = t.__TaskGroup[n], i = 0; i < r.TaskIds.length; i++) {
                    var a = L.DataCenter.Instance.GetDataById(u.UserTask_Model, r.TaskIds[i] + 1e4 * t._id),
                        s = o[r.TaskIds[i]];
                    if (a && !a.IsCompleted && a.Progress >= s.TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshRushRankGiftToggle = function(e) {
                for (var t = p.DataCenter.Instance.ActivityConfigs[e.Value1], n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), o = 0; o < t._Packs.length; o++) {
                    var r = t._Packs[o],
                        i = 0;
                    if (n && n.Packs && n.Packs[r.Id] && n.Packs[r.Id].Items && n.Packs[r.Id].Items[0] && (i = n.Packs[r.Id].Items[0]), r.LimitCount > i && (null == r.Money || 0 == r.Money)) return !0
                }
                return !1
            }, t.prototype.RefreshHeroHandbookCollectionTaskButton = function(e) {
                if (m.default.Instance.IsGameModuleOpen(P.GameModuleType.HeroCollectShow) && m.default.Instance.IsGameModuleUnlock(P.GameModuleType.HeroCollectShow)[0])
                    for (var t = L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, P.LevelParamType.HeroHandbookCollect), n = 0; n < t.Data2[e.Value1].Items.length; n++) {
                        var o = t.Data2[e.Value1].Items[n],
                            r = L.ConfigDataComponent.Instance.GetConfigById(d.TaskBase_Config, o),
                            i = L.DataCenter.Instance.GetDataById(u.UserTask_Model, o);
                        if (i && !i.IsCompleted && i.Progress >= r.TotalCount) return !0
                    }
                return !1
            }, t.prototype.RefreshMultipleGiftNode = function(e) {
                var t, n = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (n.Common.IsZoneOpen) {
                    var r = p.DataCenter.Instance.Zones[p.DataCenter.Zone].OpenTime,
                        i = n.Common.RequireOpenDays - 1;
                    i = i < 0 ? 0 : i, t = I.TimeUtil.Get0ClockTs(r) + i * g.Etc.DayDuration
                } else t = n.Common.StartTime;
                for (var a = I.TimeUtil.GetDiffDays(t, L.RpcComponent.Instance.ServerTime, !0) + 1, s = 0; s < n.__PageType.length; s++)
                    if (n.__PageType[s].StartTime <= a && (!n.__PageType[s].EndTime || n.__PageType[s].EndTime > a) && !o.IntMap[n.__PageType[s].Id]) return !0;
                return !1
            }, t.prototype.RefreshChainGiftNode = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!t || !n) return !1;
                if (t.CustomPart.DailyRewards && t.CustomPart.DailyRewards.length > 0 && !n.DailyRewards) return !0;
                for (var o = [], r = p.DataCenter.Instance.GetIntData(P.UserDataKey.TotalPay), i = {}, a = 0; a < t._Packs.length; a++) i[t._Packs[a].Id] = t._Packs[a];
                for (a = 0; a < t.Pages.length; a++) r >= t.Pages[a].TotalPay && o.push(t.Pages[a]);
                for (a = 0; a < o.length; a++) {
                    for (var s = o[a].Group, l = void 0, c = 0; c < s.length; c++)
                        if (!n.Packs[s[c]].Items[0]) {
                            l = i[s[c]];
                            break
                        } if (l && 0 == l.Money) return !0
                }
                return !1
            }, t.prototype.RefreshNoviceFormationNode = function() {
                var e = A.default.GetItem(A.GameRecordDefine.NoviceFormationDaily);
                return !(null != e && I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) == I.TimeUtil.Get0ClockTs(parseInt(e)))
            }, t.prototype.RefreshBreakouNode = function(e) {
                var t;
                if (e) t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                else
                    for (var n in p.DataCenter.Instance.ActivityConfigs) {
                        var o = p.DataCenter.Instance.ActivityConfigs[n];
                        if (o.Common.Type == P.ActivityType.Breakou) {
                            t = o;
                            break
                        }
                    }
                if (!t) return !1;
                var r = this.RefreshBreakouTaskNode({
                        Value1: t._id
                    }),
                    i = he.default.GetRemainCount(t);
                return !!(r || i > 0)
            }, t.prototype.RefreshBreakouTaskNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                return !!this.CheckTaskCanReceive(t._id, t._Tasks)
            }, t.prototype.RefreshTardeWarRedDot = function(e) {
                var t;
                if (e) t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                else
                    for (var n in p.DataCenter.Instance.ActivityConfigs)
                        if (p.DataCenter.Instance.ActivityConfigs[n].Common.Type == f.ActivityType.TradeWar) {
                            t = p.DataCenter.Instance.ActivityConfigs[n];
                            break
                        } return !(!t || !this.RefreshTardeWarSignBtnRedDot(e) && !this.CheckTaskCanReceive(t._id, t._Tasks) && !this.RefreshTardeWarLevelUpRedDot(e))
            }, t.prototype.RefreshTardeWarTaskNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                return !!this.CheckTaskCanReceive(t._id, t._Tasks)
            }, t.prototype.RefreshTardeWarSignBtnRedDot = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n, o = L.RpcComponent.Instance.ServerTime;
                if (I.TimeUtil.GetDiffDays(t.Common.StartTime, o, !0) + 1 > t.Rounds.length) return !1;
                for (var r = t.CustomPart.TimeParam, i = 0; i < r.length; i++) {
                    var a = I.TimeUtil.GetIndexClockTs(y.RpcComponent.Instance.ServerTime, r[i]);
                    if (a - y.RpcComponent.Instance.ServerTime >= 0) {
                        n = i, this.AddDelayRefreshDotNode({
                            Time: a,
                            ActivityId: e.Value1
                        });
                        break
                    }
                    i == r.length - 1 && (a = -1, n = fe.TradeWarState.HasEnded)
                }
                var s = p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.TradeWarJoin);
                switch (n) {
                    case fe.TradeWarState.NotStarted:
                        return !1;
                    case fe.TradeWarState.Application:
                        if (1 == s) return !0;
                        break;
                    case fe.TradeWarState.Trade:
                        if (1 == s) return !0;
                        if (!(p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.TradeWarGoCityEndTime) > o)) return !0;
                        var l = t.CustomPart.ItemIds[2];
                        if (p.DataCenter.Instance.GetItemCount(l)) return !0;
                        break;
                    case fe.TradeWarState.Battle:
                        if (1 == s) return !0;
                        var c = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id),
                            d = t.CustomPart.DailyAttackCount - c.IntArray[0];
                        if (d = d < 0 ? 0 : d) return !0;
                        var h = t.CustomPart.ItemIds[3];
                        if (p.DataCenter.Instance.GetItemCount(h)) return !0
                }
                return !e.extra && !!this.RefreshTardeWarLevelUpRedDot({
                    Value1: t._id
                })
            }, t.prototype.RefreshTardeWarLevelUpRedDot = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!t) return !1;
                var n = L.RpcComponent.Instance.ServerTime;
                if (I.TimeUtil.GetDiffDays(t.Common.StartTime, n, !0) + 1 > t.Rounds.length) return !1;
                for (var o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t._id), r = 0; r < 2; r++) {
                    var i = o.IntArray[r + 1],
                        a = t.CustomPart.ItemIds[r];
                    if (!(i >= t.Levels.length) && p.DataCenter.Instance.GetItemCount(a) >= t.Levels[i - 1].UpgradeCost) return !0
                }
                return !1
            }, t.prototype.RefreshGiftAllHeroesNode = function(e) {
                var t, n = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1),
                    r = I.TimeUtil.GetDiffDays(n.Common.StartTime, L.RpcComponent.Instance.ServerTime, !0) + 1;
                if (n.CustomPart.PayScore) {
                    var i = p.DataCenter.Instance.GetIntData(P.UserDataKey.TotalPay),
                        a = o.IntValue;
                    t = i >= n.CustomPart.PayScore + a
                } else {
                    var s = null == o ? void 0 : o.Packs[n.Rewards[0].Id];
                    t = (s ? s.Items[0] : 0) > 0
                }
                for (var l = r > n.Rewards.length ? n.Rewards.length : r, c = 0; c < l; c++) {
                    if (n.Rewards[c].FreeRewards && n.Rewards[c].FreeRewards.length > 0 && n.Rewards[c].Id > o.IntArray[0]) return !0;
                    if (t && n.Rewards[c].Id > o.IntArray[1]) return !0
                }
                return !1
            }, t.prototype.RefreshKoiGiftDailyReward = function(e) {
                return !L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1).DailyRewards
            }, t.prototype.RefreshAccountActivityNode = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t);
                if (!n || n.IntArray[0] && n.IntArray[1]) return !1;
                var o, r = !1,
                    i = A.default.GetItem(A.GameRecordDefine.AccountActivityDaily);
                if (i) {
                    var a = JSON.parse(i);
                    a[1] > 0 && (r = !0), a[0] > 0 && (o = a[0])
                }
                if (ue.default.Instance.StorageAccountInfo.Current.Type != P.EZUserAccountType.Visitor) {
                    if (!n.IntArray[0]) return !0
                } else if (!o || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) > o) return !0;
                if (r) {
                    if (!n.IntArray[1]) return !0
                } else if (!o || I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime) > o) return !0;
                return !1
            }, t.prototype.RefreshRocketEntryNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1),
                    o = t.CustomPart.LeisureFree - n.IntArray[0],
                    r = t.CustomPart.Tickets[0].Items[0] - n.Tickets[2];
                return o > 0 || r > 0
            }, t.prototype.RefreshRocketChallengeButton = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return (e.extra ? t.CustomPart.Tickets[0].Items[0] - n.Tickets[2] : t.CustomPart.LeisureFree - n.IntArray[0]) > 0
            }, t.prototype.RefreshFightingMiniGameNode = function(e) {
                return this.RefreshFightingMiniGameTaskNode(e)
            }, t.prototype.RefreshFightingMiniGameTaskNode = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.ActivityConfigs[t];
                return this.CheckTaskCanReceive(n._id, n._Tasks)
            }, t.prototype.RefreshFightingMiniGameDailyTaskNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily && n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshFightingMiniGameAccumulateTaskNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily || n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshNoviceTraining = function(e) {
                if (this.RefreshNoviceTrainingZoneRewardNode(e)) return !0;
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t);
                if (n && o)
                    for (var r = m.default.Instance.ComputeContiuousTime(n.Common), i = n.CustomPart.MissionIds[r - 1].Items, a = p.DataCenter.Instance.GetIntData(P.UserDataKey.Power), s = function(e) {
                            var t = n.Missions.find(function(t) {
                                return t.Id == i[e]
                            });
                            if (!t) return "continue";
                            var s = h.ConfigDataComponent.Instance.GetConfigById(d.MapBase_Config, t.Id);
                            return s ? 0 == (o.IntMap[100 * r + e] ? o.IntMap[100 * r + e] : 0) && a >= s.BattlePower ? {
                                value: !0
                            } : void 0 : "continue"
                        }, l = 0; l < i.length; l++) {
                        var c = s(l);
                        if ("object" == typeof c) return c.value
                    }
                return !1
            }, t.prototype.RefreshNoviceTrainingZoneRewardNode = function() {
                return p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.NoviceTrainingZoneReward) > 0
            }, t.prototype.RefreshDailyBuffNode = function() {
                for (var e = p.DataCenter.Instance.GetArrayData(f.UserDataKey.DailyBuff), t = m.default.GetModuleBonusByType(f.ModuleBonusType.DailyBuffCount) + 1, n = 0; n < e.length; n++) e[n] > 0 && t--;
                return t > 0
            }, t.prototype.RefreshNewPersonalityEntry = function() {
                var e = m.default.Instance.IsGameModuleUnlock(f.GameModuleType.NewPersonality)[0],
                    t = m.default.Instance.IsGameModuleOpen(f.GameModuleType.NewPersonality);
                if (!e || !t) return !1;
                for (var n = L.ConfigDataComponent.Instance.GetArrayConfig(d.NewPersonalityBase_Config), o = 0; o < n.length; o++) {
                    var r = n[o];
                    if (m.default.IsNewPersonalityShowAvailable(r)) {
                        var i = {};
                        if (i.Value1 = r.Id, this.RefreshNewPersonalityItem(i)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshNewPersonalityItem = function(e) {
                var t = e.Value1,
                    n = L.ConfigDataComponent.Instance.GetConfigById(d.NewPersonalityBase_Config, t);
                if (!m.default.IsNewPersonalityShowAvailable(n)) return !1;
                for (var o = 0; o < n.PersonalityIds.length; o++) {
                    var r = n.PersonalityIds[o],
                        i = {};
                    if (i.Value1 = t, i.extra = r, this.RefreshNewPersonalityLevelUp(i)) return !0;
                    for (var a = L.ConfigDataComponent.Instance.GetConfigById(d.NewPersonality_Config, r), s = 0; s < a.ActionIds.length; s++) {
                        var l = a.ActionIds[s],
                            c = {};
                        if (c.Value1 = l, c.extra = [t, r], this.RefreshNewPersonalityHint(c)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshNewPersonalityHintBtn = function() {
                return !1
            }, t.prototype.RefreshNewPersonalityLevelUp = function(e) {
                var t = e.Value1,
                    n = e.extra,
                    o = L.ConfigDataComponent.Instance.GetConfigById(d.NewPersonalityBase_Config, t);
                if (!m.default.IsNewPersonalityShowAvailable(o)) return !1;
                var r = L.ConfigDataComponent.Instance.GetConfigById(d.NewPersonality_Config, n),
                    i = L.DataCenter.Instance.GetDataById(u.NewPersonality_Model, t),
                    a = n != o.PersonalityIds[0],
                    s = i && i.Map && !!i.Map[n],
                    l = i && i.Map && !!i.Map[o.PersonalityIds[0]];
                if (a) {
                    if (s) return !1;
                    if (!l) return !1;
                    for (var c = 0; c < r.Materials.length; c++) {
                        var h = r.Materials[c];
                        if (!p.DataCenter.Instance.IsItemEnough(h.Items[0], h.Items[1])) return !1
                    }
                    return !0
                }
                var f = i && i.Level ? i.Level : 0;
                if (f == o.Attrs[0].Items.length - 1) return !1;
                if (s) {
                    for (c = 0; c < o.Materials.length; c++) {
                        var y = o.Materials[c].Items[0],
                            g = o.Materials[c].Items[f];
                        if (!p.DataCenter.Instance.IsItemEnough(y, g)) return !1
                    }
                    return !0
                }
                for (c = 0; c < r.Materials.length; c++)
                    if (h = r.Materials[c], !p.DataCenter.Instance.IsItemEnough(h.Items[0], h.Items[1])) return !1;
                return !0
            }, t.prototype.RefreshNewPersonalityHint = function() {
                return !1
            }, t.prototype.RefreshSNSRewardEntryNode = function() {
                if (!m.default.Instance.IsGameModuleOpen(P.GameModuleType.SNSConnection) || !m.default.Instance.IsGameModuleUnlock(P.GameModuleType.SNSConnection)[0]) return !1;
                var e = p.DataCenter.Instance.GetIntData(f.UserDataKey.SnsRewards);
                return 1 == e || 2 == e
            }, t.prototype.RefreshSNSRewardNode = function() {
                return 2 == p.DataCenter.Instance.GetIntData(f.UserDataKey.SnsRewards)
            }, t.prototype.RefreshNewPersonalitySummonNode = function(e) {
                var t = e.Value1,
                    o = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    r = m.default.Instance.GetActivityWarmingUpTimeLeftTSS(o.Common);
                if (r > 0) return n.Instance.scheduleOnce(function() {
                    var e = m.default.Instance.ComputeDeadTime(o.Common);
                    ye.Game.EventDispatcher.Emit(ge.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, t, e)
                }, r + .1), !1;
                var i = {};
                i.Value1 = o.CustomPart.Sid;
                var a = this.RefreshNewPersonalitySummonOneBtn(e),
                    s = this.RefreshNewPersonalityRewardToggle(e),
                    l = this.RefreshNewPersonalitySummonJumpBtn(i);
                return a || s || l
            }, t.prototype.RefreshNewPersonalitySummonOneBtn = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = t.__SummonType[0].StartFreeCount,
                    o = m.default.Instance.GetActivitySummonData(t._id);
                return n > 0 && o[1] > 0
            }, t.prototype.RefreshNewPersonalitySummonJumpBtn = function(e) {
                var t, n, o = e.Value1,
                    r = L.DataCenter.Instance.GetDataById(u.NewPersonality_Model, o),
                    i = L.ConfigDataComponent.Instance.GetConfigById(d.NewPersonalityBase_Config, o);
                if (!m.default.IsNewPersonalityShowAvailable(i)) return !1;
                var a = r && r.Map && !!r.Map[i.PersonalityIds[0]],
                    s = L.ConfigDataComponent.Instance.GetConfigById(d.NewPersonality_Config, i.PersonalityIds[0]);
                return a ? r.Level == i.Attrs[0].Items.length - 1 ? t = -1 : (t = i.Materials[0].Items[r.Level], n = i.Materials[0].Items[0]) : (t = s.Materials[0].Items[1], n = s.Materials[0].Items[0]), -1 != t && L.DataCenter.Instance.GetItemCount(n) / t >= 1
            }, t.prototype.RefreshNewPersonalityRewardToggle = function(e) {
                for (var t = p.DataCenter.Instance.ActivityConfigs[e.Value1], n = p.DataCenter.Instance.GetDataById(u.NewPersonality_Model, t.CustomPart.Sid), o = n && n.Level > 0 ? n.Level : 0, r = 0; r < t.__Rewards.length; r++) {
                    var i = t.__Rewards[r];
                    if (o >= i.Score && i.Score > n.LevelRewards) return !0
                }
                return !1
            }, t.prototype.RefreshActivityTask = function(e) {
                for (var t = e.Value1, n = p.DataCenter.Instance.ActivityConfigs[t], o = 0; o < n._Tasks.length; o++) {
                    var r = n._Tasks[o],
                        i = p.DataCenter.Instance.GetDataById(u.UserTask_Model, t * P.Etc.Multiplier + r.Id);
                    if (i && !i.IsCompleted && i.Progress >= r.TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshActivityDailyNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily && n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshActivityPeriodNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily || n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshRuinsWar = function(e) {
                var t = e.Value1,
                    n = this.RefreshRuinsWarBattle({
                        Value1: t
                    });
                return n || ((n = this.RefreshActivityTask({
                    Value1: t
                })) ? n : (n = this.RefreshRuinsWarUpLevel({
                    Value1: t
                })) ? n : (n = this.RefreshRuinsWarBattleFlagNode({
                    Value1: t
                })) || n)
            }, t.prototype.RefreshRuinsWarUpLevel = function(e) {
                if (me.RuinsWarModel.GetGameState() == P.RuinsWarAllianceState.NotJoin) return !1;
                if (!p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AllianceId)) return !1;
                var t = e.Value1;
                if (p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t).IntValue > 0) return !0;
                var n = p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.RuinsWarLevleUpgrade),
                    o = p.DataCenter.Instance.ActivityConfigs[t];
                if (o.PlayerLevel.length <= n) return !1;
                var r = o.PlayerLevel[n - 1];
                return p.DataCenter.Instance.GetItemCount(r.CostItem[0]) >= r.CostItem[1]
            }, t.prototype.RefreshRuinsWarBattleFlagNode = function(e) {
                if (me.RuinsWarModel.GetGameState() == P.RuinsWarAllianceState.NotJoin) return !1;
                if (!p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AllianceId)) return !1;
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    r = n.BattleFlagLevel.UpgradeBattleFlagItem[0].Items[3],
                    i = n.BattleFlagLevel.UpgradeBattleFlagItem[0].Items[0],
                    a = o.IntMap[i] || 0;
                if (0 == r || a < r) {
                    var s = n.BattleFlagLevel.UpgradeBattleFlagItem[0].Items[1];
                    if (p.DataCenter.Instance.IsItemEnough(i, s)) return !0
                }
                i = n.BattleFlagLevel.UpgradeBattleFlagItem[1].Items[0];
                var l = n.BattleFlagLevel.UpgradeBattleFlagItem[1].Items[1];
                return !!p.DataCenter.Instance.IsItemEnough(i, l)
            }, t.prototype.RefreshRuinsWarBattle = function(e) {
                if (me.RuinsWarModel.GetGameState() == P.RuinsWarAllianceState.NotJoin) return !1;
                if (!p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AllianceId)) return !1;
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = n.CustomPart.BattlePeriodTime[0],
                    r = n.CustomPart.BattlePeriodTime[1],
                    i = y.RpcComponent.Instance.ServerTime,
                    a = I.TimeUtil.GetHour(i);
                if (a >= o && a < r) {
                    var s = JSON.parse(A.default.GetItem(A.GameRecordDefine.RuinsWarBattleStart)),
                        l = I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime);
                    if (!s || s < l) return !0
                } else if (a < o) {
                    var c = I.TimeUtil.Get0ClockTs(i) + o * P.Etc.HourDuration;
                    this.AddDelayRefreshDotNode({
                        Time: c,
                        ActivityId: t
                    })
                } else a >= o && (c = I.TimeUtil.Get0ClockTs(i) + o * P.Etc.HourDuration + P.Etc.DayDuration, this.AddDelayRefreshDotNode({
                    Time: c,
                    ActivityId: t
                }));
                return !1
            }, t.prototype.RefreshFlipHappyNode = function(e) {
                return !!n.Instance.RefreshFlipHappyRewardNode(e) || !!n.Instance.RefreshFlipHappyGiftPackNode(e) || !!n.Instance.RefreshFlipHappyTaskNode(e)
            }, t.prototype.RefreshFlipHappyRewardNode = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t);
                if (!n || !n.IntMap) return !1;
                var o = n.IntMap[1];
                return !(!o || 0 == o) && o - n.IntMap[4] > 1
            }, t.prototype.RefreshFlipHappyGiftPackNode = function(e) {
                for (var t = e.Value1, n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t), o = p.DataCenter.Instance.ActivityConfigs[e.Value1], r = 0; r < o._Packs.length; r++) {
                    var i = o._Packs[r];
                    if (!(0 != i.Money || n.Packs[i.Id] && n.Packs[i.Id].Items[0])) return !0
                }
                return !1
            }, t.prototype.RefreshFlipHappyTaskNode = function(e) {
                for (var t = p.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t._Tasks.length; n++) {
                    var o = e.Value1 * g.Etc.ActivityPrefixRatio + t._Tasks[n].Id,
                        r = p.DataCenter.Instance.GetDataById(u.UserTask_Model, o);
                    if (!r.IsCompleted && r.Progress >= t._Tasks[n].TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshCutPriceGiftPack = function(e) {
                var t = e.Value1,
                    o = p.DataCenter.Instance.ActivityConfigs[t];
                if (!o) return !1;
                if (n.Instance.RefreshActivityTask({
                        Value1: t
                    })) return !0;
                if (1 == p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.CutPriceGiftHelp)) return !0;
                for (var r = JSON.parse(A.default.GetItem(A.GameRecordDefine.CutPriceGiftPackSend)), i = o.Common.StartTime, a = m.default.Instance.ComputeDeadTime(o.Common), s = y.RpcComponent.Instance.ServerTime, l = 0, c = o.Pages; l < c.length; l++) {
                    var u = c[l],
                        d = u.StartTime ? I.TimeUtil.GetOffsetHourTs(u.StartTime, i) : i,
                        h = u.EndTime ? I.TimeUtil.GetOffsetHourTs(u.EndTime, i) : a;
                    if (d <= s && h >= s && (!r || !r[t] || 1 != r[t][u.Id])) return !0
                }
                return !1
            }, t.prototype.CutPriceGiftPackSend = function(e) {
                var t = e.Value1,
                    n = e.extra,
                    o = p.DataCenter.Instance.ActivityConfigs[t];
                if (!o) return !1;
                var r = JSON.parse(A.default.GetItem(A.GameRecordDefine.CutPriceGiftPackSend)),
                    i = o.Common.StartTime,
                    a = o.Pages.find(function(e) {
                        return e.Id == n
                    });
                return (a.StartTime ? I.TimeUtil.GetOffsetHourTs(a.StartTime, i) : i) <= y.RpcComponent.Instance.ServerTime && (!r || !r[t] || 1 != r[t][n])
            }, t.prototype.RefreshActivity2048EnergyNode = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t];
                if (m.default.Instance.ComputeDeadTime(n.Common) < L.RpcComponent.Instance.ServerTime) return !1;
                var o = I.TimeUtil.GetIndexClockTs(L.RpcComponent.Instance.ServerTime, n.CustomPart.TimeParam[0]),
                    r = I.TimeUtil.GetIndexClockTs(L.RpcComponent.Instance.ServerTime, n.CustomPart.TimeParam[1]);
                if (y.RpcComponent.Instance.ServerTime < o || y.RpcComponent.Instance.ServerTime > r) return !1;
                var i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    a = y.RpcComponent.Instance.ServerTime > r ? r : y.RpcComponent.Instance.ServerTime,
                    s = Math.floor((a - i.IntArray[2]) / g.Etc.SecondDuration / n.CustomPart.EnergyResume),
                    l = i.IntArray[1];
                return (l ? l >= n.CustomPart.EnergyValue ? l : l + s >= n.CustomPart.EnergyValue ? n.CustomPart.EnergyValue : l + s : s) >= n.CustomPart.EnergyValue
            }, t.prototype.RefreshSeaseonSecretJourneyNode = function(e) {
                var t = e.Value1,
                    n = this.RefreshSeasonSecretWeaponPageNode({
                        Value1: t
                    });
                if (n) return n;
                var o = this.RefreshSeasonSecretArenaPageNode({
                    Value1: t
                });
                return o || (this.RefreshSeasonSecretFrameJourneyNode({
                    Value1: t
                }) || !1)
            }, t.prototype.RefreshSeasonSecretFrameJourneyNode = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = L.DataCenter.Instance.ActivityFrameMap[n.CustomPart.Frame];
                if (null == o) return !1;
                for (var r = 0; r < o.length; r++) {
                    var i = o[r],
                        a = L.DataCenter.Instance.ActivityConfigs[i];
                    if (null != a) {
                        var s = T.ActivityData.GetTopicActivityTypeToRedDot(a.Common.Type);
                        if (s && s.callBackFunc && s.callBackFunc({
                                Value1: a._id
                            })) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshSeasonSecretArenaPageNode = function(e) {
                for (var t = e.Value1, n = p.DataCenter.Instance.ActivityConfigs[t], o = 0; o < n.CustomPart.Pvps.length; o++) {
                    var r = n.CustomPart.Pvps[o],
                        i = p.DataCenter.Instance.ActivityNameMap[r];
                    if (i) {
                        var a = T.ActivityData.GetTopicActivityTypeToRedDot(i.Common.Type);
                        if (a && a.callBackFunc && a.callBackFunc({
                                Value1: i._id
                            })) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshSeasonSecretWeaponPageNode = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t];
                return n.CustomPart.WeaponId && this.RefreshSeasonWeaponState({
                    Value1: n.CustomPart.WeaponId,
                    extra: !0
                }) || !1
            }, t.prototype.RefreshSeasonWeaponState = function(e) {
                var t = e.Value1,
                    n = e.extra;
                return n ? !!this.RefreshSeasonWeaponCanUpgrade({
                    Value1: t,
                    extra: n
                }) || !!this.RefreshSeasonWeaponCanUpStar({
                    Value1: t,
                    extra: n
                }) : this.RefreshSeasonWeaponCanFly({
                    Value1: t,
                    extra: n
                })
            }, t.prototype.RefreshSeasonWeaponCanUpgrade = function(e) {
                var t, n = e.Value1;
                if (!e.extra) return !1;
                var o = p.DataCenter.Instance.GetDataById(u.SeasonWeapon_Model, n);
                if (!o) return !1;
                for (var r = h.ConfigDataComponent.Instance.GetConfigById(d.SeasonWeapon_Config, n), i = (null !== (t = o.Level) && void 0 !== t ? t : 0) + 1, a = 0, s = 0; s < r.LevelMaterials.length; s++) {
                    var l = r.LevelMaterials[s].Items[0],
                        c = r.LevelMaterials[s].Items[i];
                    if (c) {
                        if (!p.DataCenter.Instance.IsItemEnough(l, c)) return !1
                    } else a += 1
                }
                return !(a >= r.LevelMaterials.length)
            }, t.prototype.RefreshSeasonWeaponCanUpStar = function(e) {
                var t, n = e.Value1;
                if (!e.extra) return !1;
                var o = p.DataCenter.Instance.GetDataById(u.SeasonWeapon_Model, n);
                if (!o) return !1;
                for (var r = h.ConfigDataComponent.Instance.GetConfigById(d.SeasonWeapon_Config, n), i = (null !== (t = o.Star) && void 0 !== t ? t : 0) + 1, a = 0, s = 0; s < r.StarMaterials.length; s++) {
                    var l = r.StarMaterials[s].Items[0],
                        c = r.StarMaterials[s].Items[i];
                    if (c) {
                        if (!p.DataCenter.Instance.IsItemEnough(l, c)) return !1
                    } else a += 1
                }
                return !(a >= r.LevelMaterials.length)
            }, t.prototype.RefreshSeasonWeaponCanFly = function() {
                return !1
            }, t.prototype.RefreshSeasonUpgradeBtnNode = function(e) {
                var t = e.Value1;
                return e.extra ? this.RefreshSeasonWeaponCanUpStar({
                    Value1: t,
                    extra: !0
                }) : this.RefreshSeasonWeaponCanUpgrade({
                    Value1: t,
                    extra: !0
                })
            }, t.prototype.RefreshActivityBossBattleEntryNode = function(e) {
                if (1 == p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.BossHuntJoin)) return !0;
                if (1 == p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.BossHuntRoundReward)) return !0;
                if (this.RefreshActivityBossBattleChallengeNode(e) || this.RefreshActivityBossBattleTaskDailyNode(e) || this.RefreshActivityBossBattleTaskPeriodNode(e)) return !0;
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t.CustomPart.JumpId.length; n++) {
                    var o = t.CustomPart.JumpId[n],
                        r = L.DataCenter.Instance.ActivityNameMap[o];
                    if (r && !(L.RpcComponent.Instance.ServerTime > m.default.Instance.ComputeDeadTime(r.Common)) && T.ActivityData.GetTopicActivityTypeToRedDot(r.Common.Type)) {
                        var i = {
                            Value1: r._id
                        };
                        if (T.ActivityData.GetTopicActivityTypeToRedDot(r.Common.Type).callBackFunc(i)) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshActivityBossBattleApplyNode = function() {
                return 1 == p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.BossHuntJoin)
            }, t.prototype.RefreshActivityBossBattleChallengeNode = function(e) {
                if (1 == p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.BossHuntJoin)) return !1;
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t];
                return p.DataCenter.Instance.GetItemCount(n.CustomPart.ItemId[0]) > 0
            }, t.prototype.RefreshActivityBossBattleTaskNode = function(e) {
                return !(!this.RefreshActivityBossBattleTaskDailyNode(e) && !this.RefreshActivityBossBattleTaskPeriodNode(e))
            }, t.prototype.RefreshActivityBossBattleTaskDailyNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily && n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshActivityBossBattleTaskPeriodNode = function(e) {
                var t = L.DataCenter.Instance.ActivityConfigs[e.Value1],
                    n = [];
                return t._Tasks.forEach(function(e) {
                    e.IsDaily || n.push(e)
                }), this.CheckTaskCanReceive(t._id, n)
            }, t.prototype.RefreshTrySkinReddot = function(e) {
                var t = e.Value1,
                    n = e.extra,
                    o = L.DataCenter.Instance.ActivityConfigs[t];
                if (!o.__Maps || !o.__Maps.length) return !1;
                var r = A.default.GetItem(A.GameRecordDefine.TrySkinReddot);
                if (!r) return !0;
                var i = JSON.parse(r);
                if (n) {
                    if (!i[t] || !i[t].includes(n)) return !0
                } else
                    for (var a = 0; a < o.__Maps.length; a++) {
                        var s = o.__Maps[a];
                        if (!i[t] || !i[t].includes(s.SkinId)) return !0
                    }
                return !1
            }, t.prototype.RefreshNewWarTokenGetAllBtnNode = function(e) {
                var t = e.Value1;
                if (this.RefreshActivityTask({
                        Value1: t
                    })) return !0;
                var n, o = L.DataCenter.Instance.ActivityConfigs[t],
                    r = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    i = o.__Reward;
                n = 1 == o.CustomPart.NoCommit ? p.DataCenter.Instance.GetItemCount(o.CustomPart.Item[0]) * o.CustomPart.Item[1] : r.IntValue;
                for (var a = 0, s = o.__FreeRewards, l = 0; l < s.length; l++) {
                    var c = s[l].Id;
                    if (n >= s[l].Count)
                        if (s[l].Rewards.length > 1) {
                            if (r.Int2DArray && r.Int2DArray.length > a && r.Int2DArray[a].Items.length > 2 && r.Int2DArray[a].Items[1] >= 0 && r.Int2DArray[a].Items[2] <= 0) return !0;
                            a++
                        } else if (r.IntArray.length > 1 && c > r.IntArray[1]) return !0
                }
                for (l = 0; l < i.length; l++)
                    if (i[l].Count <= n) {
                        if (c = i[l].Id, r.IntArray.length > 3 && c > r.IntArray[3]) return !0;
                        if (r.Packs) {
                            if (r.Packs[o.CustomPart.Advance] && r.Packs[o.CustomPart.Advance].Items.length > 0 && r.Packs[o.CustomPart.Advance].Items[0] > 0 && r.IntArray.length > 4 && c > r.IntArray[4]) return !0;
                            if (r.Packs[o.CustomPart.Luxury] && r.Packs[o.CustomPart.Luxury].Items.length > 0 && r.Packs[o.CustomPart.Luxury].Items[0] > 0 && r.IntArray.length > 5 && c > r.IntArray[5]) return !0
                        }
                    } var d = o.CustomPart.ExtraRewardNumber,
                    h = r.IntArray[0];
                if (h < d && n - i[i.length - 1].Count >= (h + 1) * o.CustomPart.ExtraReward[0].Items[0]) return !0;
                for (l = 0; l < o.Common.JumpIds.length; l++) {
                    var f = o.Common.JumpIds[l],
                        y = L.DataCenter.Instance.ActivityNameMap[f];
                    if (y && !(L.RpcComponent.Instance.ServerTime > m.default.Instance.ComputeDeadTime(y.Common))) {
                        var g = T.ActivityData.GetTopicActivityTypeToRedDot(y.Common.Type);
                        if (g && g.callBackFunc && g.callBackFunc({
                                Value1: y._id
                            })) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshFirstPayNodeNode = function(e) {
                var t = e.Value1,
                    n = L.DataCenter.Instance.ActivityConfigs[t],
                    o = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, t);
                if (o && o.IntValue > 0) return !1;
                var r = this.RefreshActivityFirstPayState(e);
                if (n.CustomPart && n.CustomPart.Rewards && n.CustomPart.Rewards.length) {
                    if (r) return !0;
                    var i = n._Packs.length,
                        a = 0;
                    return n._Packs.forEach(function(e) {
                        var t = o.Int2DArray.find(function(t) {
                            return t.Items[0] == e.Id
                        });
                        t && t.Items[1] > 0 && a++
                    }), a >= i
                }
                return r
            }, t.prototype.RefreshDailyPayProgreeRewardNode = function() {
                var e = Ie.default.GetMaxProgress(),
                    t = L.DataCenter.Instance.GetDataById(u.MallActivity_Model, f.GiftPackType.DailyPay),
                    n = t && t.IntArray && t.IntArray[2] ? t.IntArray[2] : 0,
                    o = t && t.IntArray && t.IntArray[1] ? t.IntArray[1] : 0;
                if (n >= e) return !1;
                var r = Ie.default.GetNextProgressData();
                return !!r.TotalValue && n < o && o >= r.TotalValue
            }, t.prototype.RefreshRhythmGameState = function(e) {
                for (var t = e.Value1, n = p.DataCenter.Instance.ActivityConfigs[t], o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t), r = I.TimeUtil.GetDiffDays(n.Common.StartTime, y.RpcComponent.Instance.ServerTime, !0) + 1, i = 0; i < n.__Maps.length; i++)
                    if (!(n.__Maps[i].StartDay > r) && o.Int2DArray[i])
                        for (var a = 0; a < n.__Maps[i].Hp; a++)
                            if (o.Int2DArray[i].Items[0] < o.Int2DArray[i].Items[1]) return !0;
                return !1
            }, t.prototype.RefreshPiggyBankNode = function(e) {
                var t = A.default.GetItem(A.GameRecordDefine.PiggyBankRedDot);
                if (null != t && 1 == t) return !1;
                var n, o = e.Value1,
                    r = p.DataCenter.Instance.ActivityConfigs[o],
                    i = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, o);
                n = !i.IntArray || i.IntArray.length <= 0 ? 0 : i.IntArray[0], n = Math.min(r.Round.length - 1, n);
                var a = r.Round[n],
                    s = a.GiftPackId;
                if (i.Packs && i.Packs[s] && i.Packs[s].Items && i.Packs[s].Items.length > 0 && i.Packs[s].Items[0] > 0) return !1;
                var l = i.IntValue,
                    c = [];
                switch (a.Action[0]) {
                    case P.PiggyBankActionType.CostItem:
                        c.push(a.Action[2]), c.push(a.Action[3])
                }
                r.CustomPart.ResetProgress <= 0 && (l -= m.default.Instance.GetPiggyBankBeforeRoundConsumeCOunt(n, r.Round));
                var d = Math.floor(l / c[0] * c[1]);
                return (d = Math.max(d, 0)) / (a.Progress[1] - a.Progress[0]) >= 1
            }, t.prototype.RefreshPowerTaskNode = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t);
                if (!o.IntValue || o.IntValue <= 0) return !0;
                var r = n._Packs[0].Id;
                if (!o.Packs || !o.Packs[r] || !o.Packs[r].Items || o.Packs[r].Items.length <= 0 || o.Packs[r].Items[0] <= 0) return !1;
                for (var i = 0; i < n._Tasks.length; i++) {
                    var a = p.DataCenter.Instance.GetDataById(u.UserTask_Model, t * g.Etc.Multiplier + n._Tasks[i].Id);
                    if (!a.IsCompleted && a.Progress >= n._Tasks[i].TotalCount) return !0
                }
                return !1
            }, t.prototype.RefreshActivityHeroTestDaily = function(e) {
                var t = A.default.GetItem(A.GameRecordDefine.ActivityHeroTestDaily);
                if (!t) return !0;
                var n = e.Value1,
                    o = (t = JSON.parse(t))[n];
                if (!o) return !0;
                var r = y.RpcComponent.Instance.ServerTime;
                return I.TimeUtil.Get0ClockTs(r) > o
            }, t.prototype.RefreshRankMatchArenaFormationRedDot = function() {
                var e = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("RankMatchChallengeMoreTeamRank"),
                    t = p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.RankMatchRankId);
                if (t && !(t < e)) {
                    for (var n = h.ConfigDataComponent.Instance.GetConfigById(d.MapType_Config, P.MapType.RankMatch), o = 0; o < n.AttackerFormation.length; o++)
                        if (!p.DataCenter.Instance.GetDataById(u.UserFormation_Model, n.AttackerFormation[o])) return !0;
                    return !1
                }
            }, t.prototype.RefreshFavorQuickSendRedDot = function(e) {
                for (var t = e.Value1, n = !1, o = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, P.FormationIdType.MainLine), r = 0; r < o.HeroIds.length; r++) {
                    var i = o.HeroIds[r],
                        a = p.DataCenter.Instance.GetDataById(u.UserHero_Model, i);
                    if (a && a.HeroId == t) {
                        n = !0;
                        break
                    }
                }
                if (0 == n) return !1;
                var s = p.DataCenter.Instance.GetDataById(u.HeroInfo_Model, t),
                    l = m.default.Instance.GetCurrentHeroFavorConfigs(t)[1],
                    c = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, t);
                if (0 == l.length) return !1;
                var f = m.default.Instance.GetFavorGiftsForCurrentGrade(t),
                    y = l[0].Xp - s.FavorXp,
                    g = [];
                for (r = 0; r < f.length; r++) {
                    var I = f[r],
                        _ = p.DataCenter.Instance.GetItemCount(I.Id);
                    if (!(_ <= 0)) {
                        var C = I.Favor[0],
                            v = I.Favor[1],
                            b = !1;
                        (1 == C && (v == c.ElementType || 0 == v) || 2 == C && v == c.Id) && (b = !0), g.push({
                            itemId: I.Id,
                            xp: b ? I.FavorXp : I.NoFeelXp,
                            amount: _
                        })
                    }
                }
                if (0 == g.length) return !1;
                for (r = 0; r < g.length; r++)
                    if ((y -= g[r].xp * g[r].amount) <= 0) return !0;
                return !1
            }, t.prototype.RefreshAllFavorQuickSendRedDot = function() {
                for (var e = p.DataCenter.Instance.GetDataById(u.UserFormation_Model, P.FormationIdType.MainLine), t = 0; t < e.HeroIds.length; t++) {
                    var n = e.HeroIds[t],
                        o = p.DataCenter.Instance.GetDataById(u.UserHero_Model, n);
                    if (o && this.RefreshFavorQuickSendRedDot({
                            Value1: o.HeroId
                        })) return !0
                }
                return !1
            }, t.prototype.RefreshFavorTabRedDot = function() {
                return !1
            }, t.prototype.RefreshMagicCircleToggleNode = function() {
                if (this.MagicCircleHandBook()) return !0;
                for (var e = 0, t = p.DataCenter.Instance.GetDataList(u.MagicCircle_Model); e < t.length; e++) {
                    var n = t[e];
                    if (this.RefreshMagicCircieCardState({
                            Value1: n.Sid
                        })) return !0
                }
                return !!this.RefreshMagicCircleDecomposeState()
            }, t.prototype.MagicCircleHandBook = function() {
                for (var e = p.DataCenter.Instance.GetDataList(u.MagicCircle_Model), t = 0; t < e.length; t++)
                    if (this.RefreshMagicCircleHandBookCard({
                            Value1: e[t].Sid
                        })) return !0;
                return !1
            }, t.prototype.RefreshMagicCircleHandBookCard = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.MagicCircle_Model, t);
                return !!n && n.TeamStar < n.Star
            }, t.prototype.RefreshMagicCircieCardState = function(e) {
                return !!(this.IsMagicCircleCanUpLevel(e) || this.IsMagicCircleCanUpStar(e) || this.IsMagicCircleCanUpTalent(e) || this.MagicCircieCanEquip(e))
            }, t.prototype.MagicCircieCanEquip = function(e) {
                var t, n = e.Value1,
                    o = p.DataCenter.Instance.GetDataById(u.MagicCircle_Model, n);
                if (o && o.HeroId && (t = p.DataCenter.Instance.GetDataById(u.UserHero_Model, o.HeroId)), !o || o.HeroId && t) return !1;
                for (var r = 0, i = p.DataCenter.Instance.GetDataList(u.UserHero_Model); r < i.length; r++) {
                    var a = i[r];
                    if (!p.DataCenter.Instance.GetHeroMagicCircle(a.Sid)) return !0
                }
                return !1
            }, t.prototype.IsMagicCircleCanUpLevel = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.MagicCircle_Model, t);
                if (!n) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleStar_Config, n.Star);
                if (n.Level >= o.MaxLevel) return !1;
                for (var r = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleLevel_Config, n.Level), i = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleLevel_Config, n.Level + 1), a = new Map, s = r.Materials, l = 0; l < s.length; l++) {
                    var c = s[l].Items;
                    a.set(c[0], c[1])
                }
                var f = new Map,
                    y = i.Materials;
                for (l = 0; l < y.length; l++) c = y[l].Items, f.set(c[0], c[1]);
                var g = !0;
                return f.forEach(function(e, t) {
                    var n = 0;
                    a.has(t) && (n = a.get(t));
                    var o = e - n;
                    p.DataCenter.Instance.GetItemCount(t) < o && (g = !1)
                }), g
            }, t.prototype.IsMagicCircleCanUpStar = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.MagicCircle_Model, t);
                if (!n) return !1;
                var o = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleBase_Config, t);
                if (n.Star >= o.MaxStar) return !1;
                for (var r = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleStar_Config, n.Star + 1), i = 0; i < r.StarMaterials.length; i++) {
                    var a = r.StarMaterials[i].Items,
                        s = a[0],
                        l = a[1];
                    if (0 == s && (s = t), !p.DataCenter.Instance.IsItemEnough(s, l)) return !1
                }
                return !0
            }, t.prototype.IsMagicCircleCanUpTalent = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetDataById(u.MagicCircle_Model, t);
                if (!n) return !1;
                for (var o = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleBase_Config, t), r = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleStar_Config, n.Star), i = o.TalentIds.slice(0, r.ActivateTalentCount), a = 0; a < i.length; a++) {
                    var s = n.Talents[a] || 1;
                    if (!(s >= o.TalentMaxLevel)) {
                        for (var l = !0, c = 0, f = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleTalent_Config, 1e3 * i[a] + s).Materials; c < f.length; c++) {
                            var y = f[c];
                            if (!p.DataCenter.Instance.IsItemEnough(y.Items[0], y.Items[1])) {
                                l = !1;
                                break
                            }
                        }
                        if (l) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshHeroMagicCircle = function(e) {
                if (this.RefreshMagicCircleChangeBtn(e)) return !0;
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetHeroMagicCircle(t),
                    o = p.DataCenter.Instance.GetDataList(u.MagicCircle_Model);
                if (!n)
                    for (var r = 0, i = o; r < i.length; r++) {
                        var a = i[r];
                        if (!a.HeroId) return !0;
                        if (!p.DataCenter.Instance.GetDataById(u.UserHero_Model, a.HeroId)) return !0
                    }
                return !1
            }, t.prototype.RefreshMagicCircleChangeBtn = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.GetHeroMagicCircle(t),
                    o = p.DataCenter.Instance.GetDataList(u.MagicCircle_Model);
                if (n)
                    for (var r = p.DataCenter.Instance.GetDataById(u.MagicCircle_Model, n), i = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleBase_Config, n), a = 0, s = o; a < s.length; a++) {
                        var l = s[a];
                        if (!l.HeroId || !p.DataCenter.Instance.GetDataById(u.UserHero_Model, l.HeroId)) {
                            var c = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleBase_Config, l.Sid);
                            if (c.Quality > i.Quality) return !0;
                            if (c.Quality == i.Quality && l.Star > r.Star) return !0
                        }
                    }
                return !1
            }, t.prototype.RefreshMagicCircleDecomposeState = function() {
                for (var e = p.DataCenter.Instance.GetDataList(u.MagicCircle_Model), t = 0; t < e.length; t++) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(d.MagicCircleBase_Config, e[t].Sid);
                    if (e[t].Star >= n.MaxStar) {
                        var o = e[t].Sid;
                        if (p.DataCenter.Instance.GetItemCount(o) > 0) return !0
                    }
                }
                return !1
            }, t.prototype.RefrehActivityOpenBox = function(e) {
                var t = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (n.Instance.RefrehActivityOpenBoxTask(e)) return !0;
                if (this.RefrehActivityOpenBoxFreePack(e)) return !0;
                for (var o = 0; o < t.Common.JumpIds.length; o++) {
                    var r = t.Common.JumpIds[o],
                        i = p.DataCenter.Instance.ActivityNameMap[r];
                    if (i && !(y.RpcComponent.Instance.ServerTime > m.default.Instance.ComputeDeadTime(i.Common)) && T.ActivityData.GetTopicActivityTypeToRedDot(i.Common.Type).callBackFunc(e)) return !0
                }
                return !1
            }, t.prototype.RefrehActivityOpenBoxTask = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1),
                    n = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                if (!(t.Int2DArray && t.Int2DArray[0] && t.Int2DArray[0].Items && t.Int2DArray[0].Items[0] && t.Int2DArray[0].Items[1])) return !1;
                var o = t.Int2DArray[0].Items[1];
                return !(o >= n.CustomPart.DrawTimesReward.length) && t.Int2DArray[0].Items[0] >= n.CustomPart.DrawTimesReward[o].Items[0]
            }, t.prototype.RefrehActivityOpenBoxFreePack = function(e) {
                for (var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1), n = p.DataCenter.Instance.ActivityConfigs[e.Value1], o = 0; o < n._Packs.length; o++) {
                    var r = n._Packs[o];
                    if (0 == r.Money && !(t.Packs[r.Id] && t.Packs[r.Id].Items[0] && t.Packs[r.Id].Items[0] >= r.LimitCount)) return !0
                }
                return !1
            }, t.prototype.RefreshAlliancePanelMazeBtnNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Alliance)[0]) return !1;
                if (!m.default.Instance.ActivityAllianceMazeIds.length) return !1;
                var e = p.DataCenter.Instance.ActivityConfigs[m.default.Instance.ActivityAllianceMazeIds[0]];
                return !!e && n.Instance.RefreshAllianceMazeRedDotState(e._id)
            }, t.prototype.RefreshAlliancePanelTraderBtnNodeNode = function() {
                if (!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Alliance)[0]) return !1;
                if (!m.default.Instance.ActivityAllianceTraderIds.length) return !1;
                var e = p.DataCenter.Instance.ActivityConfigs[m.default.Instance.ActivityAllianceTraderIds[0]];
                return !!e && n.Instance.RefreshAllianceTraderNode({
                    Value1: e._id
                })
            }, t.prototype.RefreshAllianceMazeRedDotState = function(e) {
                return !!m.default.Instance.IsGameModuleUnlock(P.GameModuleType.Alliance)[0] && (1 == n.Instance.RefreshAllianceMazeLevelRewardState({
                    Value1: e
                }) || 1 == n.Instance.RefreshAllianceMazeShowRewardState({
                    Value1: e
                }) || 1 == n.Instance.RefreshAllianceMazeCanSetShowState({
                    Value1: e
                }) || 1 == n.Instance.RefreshAllianceMazeStrengthState({
                    Value1: e
                }) || 1 == n.Instance.RefreshAllianceMazeDonateState({
                    Value1: e
                }) || 1 == n.Instance.RefreshAllianceMazeResoureState({
                    Value1: e
                }))
            }, t.prototype.RefreshAllianceMazeStrengthState = function() {
                var e = JSON.parse(A.default.GetItem(A.GameRecordDefine.AllianceMazeRedDotByFirstLogin));
                return null == e || e < I.TimeUtil.Get0ClockTs(y.RpcComponent.Instance.ServerTime)
            }, t.prototype.RefreshAllianceMazeDonateState = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t];
                if (!n) return !1;
                var o = n.CustomPart.HolyItemId;
                return !!p.DataCenter.Instance.GetItemCount(o)
            }, t.prototype.RefreshAllianceMazeLevelRewardState = function() {
                return p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AllianceMazeLevelReward) > 0
            }, t.prototype.RefreshAllianceMazeShowRewardState = function() {
                return p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AllianceMazeShowReward) > 0
            }, t.prototype.RefreshAllianceMazeCanSetShowState = function() {
                return p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AllianceMazeCanSetShow) > 0
            }, t.prototype.RefreshAllianceMazeResoureState = function() {
                var e = p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AllianceMazeResource);
                return e > 0 && y.RpcComponent.Instance.ServerTime >= e
            }, t.prototype.RefreshAllianceBossEntranceNode = function(e) {
                return !!this.RefreshAllianceBossApplyNode(e) || 1 == p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AllianceBOSSReward)
            }, t.prototype.RefreshAllianceBossApplyNode = function() {
                if (1 == p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AllianceBOSSLevel)) {
                    var e = L.ConfigDataComponent.Instance.GetConfigById(d.LevelParam_Config, f.LevelParamType.AllianceBOSSBattleTime),
                        t = I.TimeUtil.Get0ClockTs(L.RpcComponent.Instance.ServerTime) + P.Etc.HourDuration * e.Data[2] + P.Etc.MinuteDuration * e.Data[3];
                    if (L.RpcComponent.Instance.ServerTime < t) {
                        var n = L.DataCenter.Instance.GetIntData(P.UserDataKey.AllianceBossApply);
                        if (!n || p.DataCenter.Instance.AllianceId > 0 && n != p.DataCenter.Instance.AllianceId) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshFamilyMutualAidNodeState = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!t || !t.Int2DArray) return !1;
                for (var n = p.DataCenter.Instance.ActivityConfigs[e.Value1], o = -1, r = 0; r < t.Int2DArray[2].Items.length; r++)
                    if (0 == t.Int2DArray[2].Items[r]) {
                        o = r;
                        break
                    } if (-1 == o) return !1;
                var i = n.GrassPart.HelpItems[o].Items[0];
                return p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.SlgAllianceHelpMessage) >= i
            }, t.prototype.RefreshAssaultOperationFamilyNodeSate = function(e) {
                return 1 == this.RefreshAssaultOperationFamilyWelfareNodeState(e) || 1 == this.RefreshAssaultOperationSpiritCrystalGatherSate(e)
            }, t.prototype.RefreshAssaultOperationFamilyWelfareNodeState = function(e) {
                return 1 == this.RefreshAssaultFamilySpriteSend(e) || 1 == this.RefreshFairyGrassNodeState(e) || 1 == this.RefreshGetSpriteNodeState(e)
            }, t.prototype.RefreshFairyGrassNodeState = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!t || !t.Int2DArray || t.Int2DArray.length <= 0) return !1;
                for (var n = p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.SlgGrassExperienceMessage), o = p.DataCenter.Instance.ActivityConfigs[e.Value1], r = 1, i = 0; i < o.GrassPart.GrassLevel.length; i++)
                    if (n > o.GrassPart.GrassLevel[i]) {
                        if (r == o.GrassPart.GrassLevel.length) break;
                        r++
                    } return r > t.Int2DArray[0].Items[0]
            }, t.prototype.RefreshGetSpriteNodeState = function(e) {
                var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return !!t && p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.SlgGrassLiquidMessage) > t.IntValue
            }, t.prototype.RefreshAssaultFamilySpriteSend = function(e) {
                for (var t = p.DataCenter.Instance.ActivityConfigs[e.Value1], n = 0; n < t.GrassPart.Liquid.length; n++) {
                    var o = t.GrassPart.Liquid[n].Items[0];
                    if (p.DataCenter.Instance.GetItemCount(o) > 0) return !0
                }
                return !1
            }, t.prototype.RefreshAssaultOperationSpiritCrystalGatherSate = function(e) {
                if (p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AssaultOperationNotGetReward) > 0) return !0;
                for (var t = ve.AssaultOperationModel.Data.ResourceReceiveMap, n = ve.AssaultOperationModel.GetAllSimpleResourceInfos(), o = p.DataCenter.Instance.ActivityConfigs[e.Value1], r = p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.SlgSignUp), i = 0; i < n.length; i++)
                    if (n[i].OccupyAllianceId == r) {
                        var a;
                        if (a = t && t[n[i].Id] ? t[n[i].Id] : 0 == n[i].OccupyStartTime ? I.TimeUtil.GetOffsetHourTs(o.CustomPart.BattlePeriodTime[0], I.TimeUtil.Get0ClockTs()) : Math.max(I.TimeUtil.GetOffsetHourTs(o.CustomPart.BattlePeriodTime[0], I.TimeUtil.Get0ClockTs()), n[i].OccupyStartTime), (y.RpcComponent.Instance.ServerTime - a > 0 ? y.RpcComponent.Instance.ServerTime - a : 0) >= g.Etc.MinuteDuration) return !0
                    } return !1
            }, t.prototype.RefreshAssaultAchieveRewardsNodeSate = function(e) {
                var t = p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.AssaultOperationContribute),
                    n = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!n || !n.Int2DArray) return !1;
                for (var o = p.DataCenter.Instance.ActivityConfigs[e.Value1], r = m.default.Instance.AssaultOperationSetTaskConfig(o.GrassPart.AchieveItems), i = 0; i < r.length; i++) {
                    var a = r[i].Id;
                    if (t > r[i].Limit && 0 == n.Int2DArray[1].Items[a]) return !0
                }
                return !1
            }, t.prototype.RefreshAssaultOperationRankingGuessNodeSate = function(e) {
                var t = m.default.Instance.ComputeAssaultOperationLastSettlementTime(e.Value1),
                    n = I.TimeUtil.Get0ClockTs(t);
                if (y.RpcComponent.Instance.ServerTime < n) return !1;
                var o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                return t > y.RpcComponent.Instance.ServerTime ? !(!o || !o.Int2DArray || o.IntArray[0] > 0) : !(!o || !o.IntArray || 0 == o.IntArray[0]) && 1 != o.IntArray[3]
            }, t.prototype.RefreshAssaultOperationRankRewardNodeSate = function(e) {
                return 1 == this.RefreshAssaultOperationOwnRankRewardNodeSate(e) || 1 == this.RefreshAssaultOperationFamilyRankRewardNodeSate(e)
            }, t.prototype.RefreshAssaultOperationOwnRankRewardNodeSate = function(e) {
                if (0 == p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.SlgSignUp)) return !1;
                if (m.default.Instance.ComputeAssaultOperationLastSettlementTime(e.Value1) > y.RpcComponent.Instance.ServerTime) return !1;
                var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!t || !t.Int2DArray || t.Int2DArray.length <= 0) return !1;
                if (t.Int2DArray[3] && 1 == t.Int2DArray[3].Items[0]) return !1;
                if (!t.Int2DArray[4].Items[1] || 0 == t.Int2DArray[4].Items[1]) return !1;
                if (t.Int2DArray[4].Items[1]) {
                    var n = t.Int2DArray[4].Items[1],
                        o = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                    if (o.PlayerRank[o.PlayerRank.length - 1].Rank.length > 1 && o.PlayerRank[o.PlayerRank.length - 1].Rank[1] < n) return !1
                }
                return !0
            }, t.prototype.RefreshAssaultOperationFamilyRankRewardNodeSate = function(e) {
                if (0 == p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.SlgSignUp)) return !1;
                if (m.default.Instance.ComputeAssaultOperationLastSettlementTime(e.Value1) > y.RpcComponent.Instance.ServerTime) return !1;
                var t = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1);
                if (!t || !t.Int2DArray || 1 == t.Int2DArray[3].Items[1]) return !1;
                if (!t.Int2DArray[4].Items[2] || 0 == t.Int2DArray[4].Items[2]) return !1;
                if (t.Int2DArray[4].Items[2]) {
                    var n = t.Int2DArray[4].Items[2],
                        o = p.DataCenter.Instance.ActivityConfigs[e.Value1];
                    if (o.AllianceRankRewards[o.AllianceRankRewards.length - 1].Rank.length > 1 && o.AllianceRankRewards[o.AllianceRankRewards.length - 1].Rank[1] < n) return !1
                }
                return !0
            }, t.prototype.RefreshAllianceAssaultOperationState = function() {
                var e = m.default.Instance.ActivityAssaultOpeationId;
                return !!e && !!p.DataCenter.Instance.ActivityConfigs[e] && this.RefreshAssaultOperationState({
                    Value1: e
                })
            }, t.prototype.RefreshAssaultOperationState = function(e) {
                var t = e.Value1;
                if (1 == this.RefreshAssaultOperationRankingGuessNodeSate(e)) return !0;
                var n = p.DataCenter.Instance.ActivityConfigs[t],
                    o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t);
                if (!p.DataCenter.Instance.GetSpecialRedDot(P.SpecialRedDotType.SlgSignUp)) return !1;
                if (m.default.Instance.GetActivityEndTime(t) > y.RpcComponent.Instance.ServerTime) {
                    for (var r = 0; r < n._Packs.length; r++) {
                        var i = n._Packs[r];
                        if (!(0 != i.Money || o.Packs[i.Id] && o.Packs[i.Id].Items[0])) return !0
                    }
                    if (1 == this.RefreshFamilyMutualAidNodeState(e)) return !0
                }
                return 1 == this.RefreshAssaultOperationRankRewardNodeSate(e) || 1 == this.RefreshAssaultAchieveRewardsNodeSate(e)
            }, t.prototype.RefreshStarPrayState = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t];
                if (!n) return !1;
                var o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t),
                    r = o.IntArray[0],
                    i = (null == o.IntArray[1] ? -1 : o.IntArray[1]) + 1;
                if (n.CustomPart.CumulativeTimesRewards[i] && n.CustomPart.CumulativeTimesRewards[i].Items[0] <= r) return !0;
                for (var a = 0; a < n.Common.JumpIds.length; a++) {
                    var s = n.Common.JumpIds[a],
                        l = p.DataCenter.Instance.ActivityNameMap[s];
                    if (l) {
                        var c = T.ActivityData.GetTopicActivityTypeToRedDot(l.Common.Type).callBackFunc;
                        if (c) {
                            var d = c({
                                Value1: l._id
                            });
                            if (d) return d
                        }
                    }
                }
                return !1
            }, t.prototype.RefreshLuckySummonNodeState = function(e) {
                for (var t = e.Value1, n = p.DataCenter.Instance.ActivityConfigs[t], o = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, t), r = o.IntArray[1], i = 0; i < n.CustomPart.TimesReward.length; i++) {
                    var a = n.CustomPart.TimesReward[i].Items[0];
                    if (o.IntArray[3] <= i && r >= a) return !0
                }
                for (var s = 0; s < n.Common.JumpIds.length; s++) {
                    var l = n.Common.JumpIds[s],
                        c = p.DataCenter.Instance.ActivityNameMap[l];
                    if (c) {
                        var d = T.ActivityData.GetTopicActivityTypeToRedDot(c.Common.Type).callBackFunc;
                        if (d) {
                            var h = d({
                                Value1: c._id
                            });
                            if (h) return h
                        }
                    }
                }
                return !1
            }, t.prototype.RefreshDrawBattleNode = function(e) {
                for (var t = L.DataCenter.Instance.ActivityConfigs[e.Value1], n = L.DataCenter.Instance.GetDataById(u.UserActivity_Model, e.Value1).Int2DArray, o = 0; o < t.__Maps.length; o++) {
                    var r = t.__Maps[o];
                    if (n[o])
                        for (var i = n[o].Items, a = 0; a < r.Rewards.length; a++)
                            if (i[0] >= r.Rewards[a].Items[0] && i[1] < r.Rewards[a].Items[0]) return !0
                }
                return !1
            }, t.prototype.RefreshElementStrengthenStateByElement = function(e, t) {
                if (void 0 === t && (t = !1), t && !this.CheckElementStrengthenUnlock(e)) return !1;
                for (var n = p.DataCenter.Instance.GetArrayData(f.UserDataKey.StarTowerSuppressCurrent), o = p.DataCenter.Instance.GetArrayData(f.UserDataKey.StarTowerSuppressMax), r = Math.min(n[e - 1] || 0, o[e - 1] || 0), i = p.DataCenter.Instance.GetDataList(u.UserHero_Model), a = new Map, s = 0, l = i; s < l.length; s++) {
                    var c = l[s],
                        y = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, c.HeroId);
                    y.ElementType == e && (!y.Quality || y.Quality < 52 || (a.has(c.HeroId) ? a.get(c.HeroId).StarLevel < c.StarLevel && a.set(c.HeroId, c) : a.set(c.HeroId, c)))
                }
                var g = 0;
                return a.forEach(function(e) {
                    var t = h.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, e.HeroId),
                        n = h.ConfigDataComponent.Instance.GetConfigById(d.StarPowerSuppress_Config, 100 * t.Quality + e.StarLevel);
                    n && (g += n.NotOnValue)
                }), g > r
            }, t.prototype.CheckElementStrengthenUnlock = function(e) {
                var t;
                switch (e) {
                    case f.HeroElementType.Heart:
                        t = f.GameModuleType.HeartTowerSuppress;
                        break;
                    case f.HeroElementType.Power:
                        t = f.GameModuleType.PowerTowerSuppress;
                        break;
                    case f.HeroElementType.Tech:
                        t = f.GameModuleType.TechTowerSuppress;
                        break;
                    case f.HeroElementType.Break:
                        t = f.GameModuleType.BreakTowerSuppress;
                        break;
                    case f.HeroElementType.Fight:
                        t = f.GameModuleType.FightTowerSuppress
                }
                if (t) {
                    var n = m.default.Instance.IsGameModuleOpen(t),
                        o = m.default.Instance.IsGameModuleUnlock(t);
                    if (!n || !o[0]) return !1
                }
                return !0
            }, t.prototype.RefreshTaskWarToken = function(e) {
                return !!this.RefreshTaskWarTokenReward(e) || !!this.RefreshTaskWarTokenDailyTask(e) || !!this.RefreshTaskWarTokenIssueTask(e)
            }, t.prototype.RefreshTaskWarTokenReward = function(e) {
                var t, n = e.Value1,
                    o = p.DataCenter.Instance.ActivityConfigs[n],
                    r = p.DataCenter.Instance.GetDataById(u.UserActivity_Model, n),
                    i = o._Packs[0].Id;
                t = r.Packs[i] && r.Packs[i].Items[0] > 0 ? r.IntArray[1] || 0 : r.IntArray[0] || 0;
                var a = L.DataCenter.Instance.GetItemCount(o.CustomPart.ItemId);
                if (o.__Rewards[t] && a >= o.__Rewards[t].Count) return !0;
                var s = !0,
                    l = r.IntArray[2] || 0,
                    c = o.CustomPart.MaxBoxNum;
                if (c && l >= c && (s = !1), s) {
                    var d = o.__Rewards[o.__Rewards.length - 1].Count;
                    if (L.DataCenter.Instance.GetItemCount(o.CustomPart.ItemId) > d) {
                        var h = o.CustomPart.EachBoxCount,
                            f = L.DataCenter.Instance.GetItemCount(o.CustomPart.ItemId);
                        if ((f = f - d - l * h) >= h) return !0
                    }
                }
                return !1
            }, t.prototype.RefreshTaskWarTokenDailyTask = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t].__Pages[1].TaskIds;
                return this.CanDrawTaskWarTokenTask(t, n)
            }, t.prototype.RefreshTaskWarTokenIssueTask = function(e) {
                var t = e.Value1,
                    n = p.DataCenter.Instance.ActivityConfigs[t].__Pages[2].TaskIds;
                return this.CanDrawTaskWarTokenTask(t, n)
            }, t.prototype.CanDrawTaskWarTokenTask = function(e, t) {
                for (var n = p.DataCenter.Instance.ActivityConfigs[e], o = {}, r = 0; r < n._Tasks.length; r++) o[(a = n._Tasks[r]).Id] = a;
                for (r = 0; r < t.length; r++) {
                    var i = t[r],
                        a = o[i],
                        s = e * P.Etc.Multiplier + i,
                        l = L.DataCenter.Instance.GetDataById(u.UserTask_Model, s);
                    if (l && !l.IsCompleted && l.Progress >= a.TotalCount) return !0
                }
                return !1
            }, t.prototype.RefrsehAllianceInsighiaNode = function() {
                if (!m.default.Instance.IsGameModuleOpen(f.GameModuleType.AllianceBadge) || !m.default.Instance.IsGameModuleUnlock(f.GameModuleType.AllianceBadge)[0]) return !1;
                if (p.DataCenter.Instance.GetSpecialRedDot(f.SpecialRedDotType.AllianceBadge) > 0) return p.DataCenter.Instance.SetSpecialRedDot(f.SpecialRedDotType.AllianceBadge, 0), !0;
                for (var e = h.ConfigDataComponent.Instance.GetArrayConfig(d.AllianceBadge_Config), t = 0; t < e.length; t++)
                    if (m.default.Instance.GetAllianceInsigniaUpLevel(e[t].Id) > 0 && m.default.Instance.CheckAllianceInsigniaCanUp(e[t].Id)) return !0;
                return !1
            }, t.Cache_Key_Prefeix_HeadIcon = "HeadIcon", t.Cache_Key_Prefeix_HeadFrame = "HeadFrame", t.Cache_Key_Prefeix_HeadTitle = "HeadTitle", t.Cache_Key_Prefeix_ChatWindow = "ChatWindow", t.Cache_Key_Prefeix_MagicCircle = "MagicCircle", t.Cache_Key_Prefeix_Pet = "Pet", t._instance = null, n = i([Se], t)
        }(cc.Component);
        n.RedDotDataHandler = we, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../Consts/Consts": "Consts",
        "../../Consts/Etc": "Etc",
        "../../EZFramework/Auxiliary/EZLog": "EZLog",
        "../../EZFramework/EZFramework": "EZFramework",
        "../../ShareConsts/BattleConsts": "BattleConsts",
        "../../ShareConsts/EnumType": "EnumType",
        "../../Util/TimeUtil": "TimeUtil",
        "../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/GameRecord": "GameRecord",
        "../Channel/ChannelManager": "ChannelManager",
        "../Components/Components": "Components",
        "../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Components/DataCenter": "DataCenter",
        "../Components/RpcComponent": "RpcComponent",
        "../UI/Auxiliary/UIUtlity": "UIUtlity",
        "../UI/Components/AngelInfoStarComponent": "AngelInfoStarComponent",
        "../UI/Components/StrategyBookComponent": "StrategyBookComponent",
        "../UI/Components/TowerLayerItem": "TowerLayerItem",
        "../UI/Panel/ActivityPreviewPanel": "ActivityPreviewPanel",
        "../UI/Panel/ActivityRunningTrainPanel": "ActivityRunningTrainPanel",
        "../UI/Panel/AllianceBaseMainPanel": "AllianceBaseMainPanel",
        "../UI/Panel/ArenaPanel": "ArenaPanel",
        "../UI/Panel/ArtifactPanel": "ArtifactPanel",
        "../UI/Panel/ArtifactUpStarInfoComponent": "ArtifactUpStarInfoComponent",
        "../UI/Panel/AssaultOperationModel": "AssaultOperationModel",
        "../UI/Panel/BagPanel": "BagPanel",
        "../UI/Panel/BreakOutMatchLevelPanel": "BreakOutMatchLevelPanel",
        "../UI/Panel/ChaosSummonPanel": "ChaosSummonPanel",
        "../UI/Panel/ChattingMainPanel": "ChattingMainPanel",
        "../UI/Panel/CircusMazePanel": "CircusMazePanel",
        "../UI/Panel/CollectionHandbookPanel": "CollectionHandbookPanel",
        "../UI/Panel/CollectionPavilionPanel": "CollectionPavilionPanel",
        "../UI/Panel/ContinuousFightPanel": "ContinuousFightPanel",
        "../UI/Panel/CrossServerAllianceWarPanel": "CrossServerAllianceWarPanel",
        "../UI/Panel/CrossServerChampionShipPanel": "CrossServerChampionShipPanel",
        "../UI/Panel/CustomGiftPackPanel": "CustomGiftPackPanel",
        "../UI/Panel/DailyInstancePanel": "DailyInstancePanel",
        "../UI/Panel/ElementTemplePanel": "ElementTemplePanel",
        "../UI/Panel/ExclusiveWeaponGalleryPanel": "ExclusiveWeaponGalleryPanel",
        "../UI/Panel/GiftPackListPanel": "GiftPackListPanel",
        "../UI/Panel/GlobalChampionMainPanel": "GlobalChampionMainPanel",
        "../UI/Panel/GlobalChampionShipPanel": "GlobalChampionShipPanel",
        "../UI/Panel/HeroInfoPanel": "HeroInfoPanel",
        "../UI/Panel/HeroTalentPanel": "HeroTalentPanel",
        "../UI/Panel/HolyRelicsPanel": "HolyRelicsPanel",
        "../UI/Panel/MallDailyChargePage": "MallDailyChargePage",
        "../UI/Panel/OldPlayerRecallPanel": "OldPlayerRecallPanel",
        "../UI/Panel/ParanormalPuzzleStagePanel": "ParanormalPuzzleStagePanel",
        "../UI/Panel/PuzzleStageComponent": "PuzzleStageComponent",
        "../UI/Panel/RuinsWarModel": "RuinsWarModel",
        "../UI/Panel/SeniorArenaPanel": "SeniorArenaPanel",
        "../UI/Panel/ShopUIPanel": "ShopUIPanel",
        "../UI/Panel/StarGarrisonInfoPanel": "StarGarrisonInfoPanel",
        "../UI/Panel/StarPiecePanel": "StarPiecePanel",
        "../UI/Panel/StarTacticalComponent": "StarTacticalComponent",
        "../UI/Panel/StrongholdWarMainPanel": "StrongholdWarMainPanel",
        "../UI/Panel/TimeLimitedActivityPanel": "TimeLimitedActivityPanel",
        "../UI/Panel/TradeWarPanel": "TradeWarPanel",
        "../UI/Panel/UserTitlePanel": "UserTitlePanel",
        "../UI/Panel/WarTokenListPanel": "WarTokenListPanel",
        "./RedDotManager": "RedDotManager"
    }],
    RedDotDefine: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "c8650ZebEZJeoxNwGPA/9R7", "RedDotDefine"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.InstanceRedDotDefine = n.RedDotDefine = void 0;
        var o = e("../../Consts/Consts"),
            r = e("../Channel/ChannelManager");
        n.RedDotDefine = function() {
            this.RootNode = {}, this.MainBagNode = {
                Parent: this.RootNode
            }, this.BagFragmentNode = {
                Parent: this.MainBagNode
            }, this.BagPropNode = {
                Parent: this.MainBagNode
            }, this.WildoutNode = {
                Parent: this.RootNode,
                GameModuleId: o.GameModuleType.Outdoor
            }, this.MallNode = {
                Parent: this.RootNode,
                GameModuleId: o.GameModuleType.Mall
            }, this.MallVipNode = {
                Parent: this.MallNode
            }, this.MainLeftVerticalArrow = {
                Parent: this.RootNode
            }, this.MainRightVerticalArrow = {
                Parent: this.RootNode
            }, this.MainHeroNode = {
                Parent: this.RootNode,
                Id: 1
            }, this.HeroListNode = {
                Parent: this.MainHeroNode,
                Id: 2
            }, this.HeroHandbookNode = {
                Parent: this.MainHeroNode,
                Id: 4
            }, this.HeroFavorNode = {
                Parent: this.MainHeroNode,
                Id: 5
            }, this.SimplifyBtnNode = {
                Parent: this.RootNode
            }, this.LeftVerticalBtnNode = {
                Parent: this.RootNode
            }, this.MailBtnNode = {
                Parent: this.RootNode
            }, this.RankBtnNode = {
                Parent: this.WildoutNode,
                GameModuleId: o.GameModuleType.RankUI
            }, this.RankZoneNode = {
                Parent: this.RankBtnNode
            }, this.RankCrossZoneNode = {
                Parent: this.RankBtnNode
            }, this.SimplifyShopBtnNode = {
                Parent: this.SimplifyBtnNode,
                GameModuleId: o.GameModuleType.ItemShop
            }, this.ShopBtnNode = {
                Parent: this.SimplifyShopBtnNode,
                GameModuleId: o.GameModuleType.ItemShop
            }, this.ShopTypeNode1 = {
                Parent: this.ShopBtnNode
            }, this.ShopTypeNode2 = {
                Parent: this.ShopBtnNode
            }, this.ShopTypeNode3 = {
                Parent: this.ShopBtnNode
            }, this.ShopTypeNode4 = {
                Parent: this.ShopBtnNode
            }, this.SimplifyHeroPalaceBtnNode = {
                Parent: this.SimplifyBtnNode
            }, this.HeroPalaceBtnNode = {
                Parent: this.SimplifyHeroPalaceBtnNode,
                GameModuleId: o.GameModuleType.HeroPalace
            }, this.HeroMergeBtnNode = {
                Parent: this.RootNode
            }, this.DailyInstanceBtnNode = {
                Parent: this.WildoutNode,
                GameModuleId: o.GameModuleType.DailyInstanceCoin
            }, this.CoinInstanceBtnNode = {
                Parent: this.DailyInstanceBtnNode
            }, this.ExpInstanceBtnNode = {
                Parent: this.DailyInstanceBtnNode
            }, this.FighterInstanceBtnNode = {
                Parent: this.DailyInstanceBtnNode
            }, this.RuneInstanceBtnNode = {
                Parent: this.DailyInstanceBtnNode
            }, this.AngelInstanceBtnNode = {
                Parent: this.DailyInstanceBtnNode
            }, this.GemInstanceBtnNode = {
                Parent: this.DailyInstanceBtnNode
            }, this.ClimbTowerBtnNode = {
                Parent: this.WildoutNode,
                GameModuleId: o.GameModuleType.TestTower
            }, this.ClimbTowerToggleNormalNode = {
                Parent: this.ClimbTowerBtnNode,
                GameModuleId: o.GameModuleType.TestTower
            }, this.ClimbTowerToggleHardNode = {
                Parent: this.ClimbTowerBtnNode,
                GameModuleId: o.GameModuleType.ClimbTowerHard
            }, this.ElementScriptureBtnNode = {
                Parent: this.RootNode
            }, this.ElementWarTokenPeriodsBtnNode = {
                GameModuleId: o.GameModuleType.TestTower
            }, this.SimplifySummonQueenMainScene = {
                Parent: this.SimplifyBtnNode,
                GameModuleId: o.GameModuleType.SummonCard
            }, this.SummonQueenMainScene = {
                Parent: this.SimplifySummonQueenMainScene,
                GameModuleId: o.GameModuleType.SummonCard
            }, this.SummonQueenToggle = {
                Parent: this.SummonQueenMainScene
            }, this.SummonQueenSeniorToggle = {
                Parent: this.SummonQueenToggle
            }, this.SummonQueenJuniorToggle = {
                Parent: this.SummonQueenToggle
            }, this.StrongPathNode = {
                Parent: this.SummonQueenSeniorToggle,
                GameModuleId: o.GameModuleType.StrongPath
            }, this.StrongPathWishListNode = {
                Parent: this.SummonQueenSeniorToggle,
                GameModuleId: o.GameModuleType.StrongPath
            }, this.SummonQueenSeniorOnceBtn = {
                Parent: this.SummonQueenSeniorToggle
            }, this.SummonQueenSeniorTenBtn = {
                Parent: this.SummonQueenSeniorToggle
            }, this.SummonQueenJuniorOnceBtn = {
                Parent: this.SummonQueenJuniorToggle
            }, this.SummonQueenJuniorTenBtn = {
                Parent: this.SummonQueenJuniorToggle
            }, this.SummonQueenScoreBtn = {
                Parent: this.SummonQueenToggle,
                GameModuleId: o.GameModuleType.ScoreSummon
            }, this.SummonElementToggle = {
                Parent: this.SummonQueenMainScene,
                GameModuleId: o.GameModuleType.ProphetSummon
            }, this.OracleSummonTenBtnNode = {
                Parent: this.SummonElementToggle
            }, this.OracleSummonBtnNode = {
                Parent: this.SummonElementToggle
            }, this.CrystalSummonBtnNode = {
                Parent: this.SummonElementToggle
            }, this.ElementSummonShopNode = {
                Parent: this.SummonElementToggle
            }, this.SummonPersonalToggle = {
                Parent: this.SummonQueenMainScene,
                GameModuleId: o.GameModuleType.Personality
            }, this.SummonPersonalOnceBtn = {
                Parent: this.SummonPersonalToggle
            }, this.SummonPersonalTenBtn = {
                Parent: this.SummonPersonalToggle
            }, this.SummonDailyToggle = {
                Parent: this.SummonQueenMainScene,
                GameModuleId: o.GameModuleType.DailySummon
            }, this.FriendBtnNode = {
                Parent: this.RootNode
            }, this.FriendOneKeyBtnNode = {
                Parent: this.FriendBtnNode
            }, this.FriendManageBtnNode = {
                Parent: this.FriendBtnNode
            }, this.FriendApplyToggleNode = {
                Parent: this.FriendManageBtnNode
            }, this.TaskBtnNode = {
                Parent: this.RootNode
            }, this.TaskDailyBtnNode = {
                Parent: this.TaskBtnNode
            }, this.TaskMainLineBtnNode = {
                Parent: this.TaskBtnNode
            }, this.TaskWeeklyBtnNode = {
                Parent: this.TaskBtnNode
            }, this.TaskDailyWarTokenBtnNode = {
                Parent: this.TaskBtnNode
            }, this.SimplifyStarTempleBtnNode = {
                Parent: this.SimplifyBtnNode,
                GameModuleId: o.GameModuleType.StarTemple
            }, this.StarTempleBtnNode = {
                Parent: this.SimplifyStarTempleBtnNode,
                GameModuleId: o.GameModuleType.StarTemple,
                Id: 3333
            }, this.StarResonanceToggleNode = {
                Parent: this.StarTempleBtnNode,
                GameModuleId: o.GameModuleType.StarResonance,
                Id: 3334
            }, this.StarHolyStatueToggleNode = {
                Parent: this.StarTempleBtnNode,
                Id: 3335
            }, this.StarPowerToggleNode = {
                Parent: this.StarTempleBtnNode,
                GameModuleId: o.GameModuleType.ElementTower,
                Id: 3336
            }, this.NewYearWeaponToggleNode = {
                Parent: this.StarTempleBtnNode,
                GameModuleId: o.GameModuleType.NewYearWeapon
            }, this.StarGarrisonToggleNode = {
                Parent: this.StarTempleBtnNode,
                GameModuleId: o.GameModuleType.StarGarrison
            }, this.SimplifyAngelEntrance = {
                Parent: this.SimplifyBtnNode,
                GameModuleId: o.GameModuleType.Angel
            }, this.AngelEntrance = {
                Parent: this.SimplifyAngelEntrance,
                GameModuleId: o.GameModuleType.Pet
            }, this.AngelToggleNode = {
                Parent: this.AngelEntrance,
                GameModuleId: o.GameModuleType.Angel
            }, this.PetToggleNode = {
                Parent: this.AngelEntrance,
                GameModuleId: o.GameModuleType.Pet
            }, this.PetTabHandBook = {
                Parent: this.PetToggleNode
            }, this.PetTabDecomposeBtn = {
                Parent: this.PetToggleNode
            }, this.SimplifyMagicResearchMainScene = {
                Parent: this.SimplifyBtnNode
            }, this.MagicResearchMainScene = {
                Parent: this.SimplifyMagicResearchMainScene
            }, this.StarPieceToggleNode = {
                Parent: this.MagicResearchMainScene,
                GameModuleId: o.GameModuleType.StarPiece
            }, this.GeneralStarPieceNode = {
                Parent: this.StarPieceToggleNode
            }, this.SpecialStarPieceNode = {
                Parent: this.StarPieceToggleNode
            }, this.ExclusiveWeaponNode = {
                Parent: this.StarPieceToggleNode
            }, this.TacticalNode = {
                Parent: this.MagicResearchMainScene,
                GameModuleId: o.GameModuleType.StarEmbattle
            }, this.StarPuzzleToggleNode = {
                Parent: this.MagicResearchMainScene,
                GameModuleId: o.GameModuleType.ParanormalPuzzle
            }, this.StarArtifactToggleNode = {
                Parent: this.MagicResearchMainScene,
                GameModuleId: o.GameModuleType.Artifact
            }, this.StarArtifactResonanceNode = {
                Parent: this.StarArtifactToggleNode,
                GameModuleId: o.GameModuleType.Artifact
            }, this.SuperWeaponToggleNode = {
                Parent: this.MagicResearchMainScene,
                GameModuleId: o.GameModuleType.SuperWeapon
            }, this.MagicCircleToggleNode = {
                Parent: this.MagicResearchMainScene,
                GameModuleId: o.GameModuleType.MagicCircle
            }, this.MagicCircleHandBookNode = {
                Parent: this.MagicCircleToggleNode,
                GameModuleId: o.GameModuleType.MagicCircle
            }, this.MagicCircleDecomposeBtn = {
                Parent: this.MagicCircleToggleNode,
                GameModuleId: o.GameModuleType.MagicCircle
            }, this.StarResonanceUpgradeBtnNode = {
                Parent: this.StarTempleBtnNode,
                Id: 3338
            }, this.StarHolyStatueUpGradeBtnNode = {
                Parent: this.StarHolyStatueToggleNode
            }, this.StarHolyStatueGemBtnNode = {
                Parent: this.StarHolyStatueToggleNode
            }, this.StarHolyStatueInlayBtnNode = {
                Parent: this.StarHolyStatueGemBtnNode
            }, this.StarTacticalBtnNode = {
                Parent: this.StarHolyStatueToggleNode
            }, this.StarTacticalReceiveBtnNode = {
                Parent: this.StarTacticalBtnNode
            }, this.StarTacticalLevelUpButtonNode = {}, this.StarPieceBagBtnNode = {
                Parent: this.RootNode
            }, this.StarPieceResolveBtnNode = {
                Parent: this.RootNode
            }, this.SimplifyAllianceBtnNode = {
                Parent: this.SimplifyBtnNode,
                GameModuleId: o.GameModuleType.Alliance
            }, this.AllianceBtnNode = {
                Parent: this.SimplifyAllianceBtnNode,
                GameModuleId: o.GameModuleType.Alliance
            }, this.AllianceTalentBtnNode = {
                Parent: this.AllianceBtnNode
            }, this.AllianceTestBtnNode = {
                Parent: this.AllianceBtnNode
            }, this.AllianceSettingBtnNode = {
                Parent: this.AllianceBtnNode
            }, this.AllianceApplicationBtnNode = {
                Parent: this.AllianceSettingBtnNode
            }, this.AllianceWarBtnNode = {
                Parent: this.AllianceBtnNode,
                GameModuleId: o.GameModuleType.AllianceWar
            }, this.AllianceChalleneg1BtnNode = {
                Parent: this.AllianceWarBtnNode,
                GameModuleId: o.GameModuleType.AllianceWar
            }, this.AllianceChalleneg2BtnNode = {
                Parent: this.AllianceWarBtnNode,
                GameModuleId: o.GameModuleType.AllianceWar
            }, this.AllianceChalleneg3BtnNode = {
                Parent: this.AllianceWarBtnNode,
                GameModuleId: o.GameModuleType.AllianceWar
            }, this.AllianceBeatBtnNode = {
                Parent: this.AllianceWarBtnNode,
                GameModuleId: o.GameModuleType.AllianceWar
            }, this.AllianceSpyBtnNode = {
                Parent: this.AllianceWarBtnNode,
                GameModuleId: o.GameModuleType.AllianceWar
            }, this.AllianceAtkFormationBtnNode = {
                Parent: this.AllianceWarBtnNode,
                GameModuleId: o.GameModuleType.AllianceWar
            }, this.AllianceDefFormationBtnNode = {
                Parent: this.AllianceWarBtnNode,
                GameModuleId: o.GameModuleType.AllianceWar
            }, this.AllianceAttackBtnNode = {
                Parent: this.AllianceWarBtnNode,
                GameModuleId: o.GameModuleType.AllianceWar
            }, this.AllianceSetAtkTeamBtnNode = {
                Parent: this.AllianceAtkFormationBtnNode
            }, this.AllianceSetLogisticsTeamBtnNode = {
                Parent: this.AllianceAtkFormationBtnNode
            }, this.AllianceSetDefTeamBtnNode = {
                Parent: this.AllianceDefFormationBtnNode
            }, this.AllianceStrongholdWarBtnNode = {
                Parent: this.AllianceBtnNode,
                GameModuleId: o.GameModuleType.AllianceCityWar
            }, this.StrongholdWarTaskBtnNode = {
                Parent: this.AllianceStrongholdWarBtnNode
            }, this.StrongholdWarManageBtnNode = {
                Parent: this.AllianceStrongholdWarBtnNode
            }, this.StrongholdWarTerritoryReawardBtnNode = {
                Parent: this.StrongholdWarManageBtnNode
            }, this.StrongholdWarActivePointBtnNode = {
                Parent: this.AllianceStrongholdWarBtnNode
            }, this.AllianceShopBtnNode = {
                Parent: this.AllianceBtnNode
            }, this.AllianceRedPacketNode = {
                Parent: this.AllianceBtnNode,
                GameModuleId: o.GameModuleType.AllianceRedPacket
            }, this.AllianceRedPacketSend = {
                Parent: this.AllianceRedPacketNode,
                GameModuleId: o.GameModuleType.AllianceRedPacket
            }, this.AllianceRedPacketNormal = {
                Parent: this.AllianceRedPacketNode,
                GameModuleId: o.GameModuleType.AllianceRedPacket
            }, this.AllianceRedPacketAdvance = {
                Parent: this.AllianceRedPacketNode,
                GameModuleId: o.GameModuleType.AllianceRedPacket
            }, this.AllianceMazeBtnNode = {
                Parent: this.AllianceBtnNode,
                GameModuleId: o.GameModuleType.Alliance
            }, this.AllianceBossBtnNode = {
                Parent: this.AllianceBtnNode,
                GameModuleId: o.GameModuleType.AllianceBoss
            }, this.AllianceBossApplyBtnNode = {
                Parent: this.AllianceBossBtnNode,
                GameModuleId: o.GameModuleType.AllianceBoss
            }, this.AllianceTraderBtnNode = {
                Parent: this.AllianceBtnNode,
                GameModuleId: o.GameModuleType.Alliance
            }, this.AllianceAssaultOpertionNode = {
                Parent: this.AllianceBtnNode,
                GameModuleId: o.GameModuleType.AssaultOperation
            }, this.MainBattleNode = {
                Parent: this.RootNode
            }, this.ShowQuickBattlePanelBtnNode = {
                Parent: this.MainBattleNode
            }, this.QuickBattleBtnNode = {
                Parent: this.ShowQuickBattlePanelBtnNode
            }, this.IntelligenceBtnNode = {
                Parent: this.MainBattleNode
            }, this.WantStrongBtnNode = {
                Parent: this.MainBattleNode
            }, this.RecommendFormationToggleBtnNode = {
                Parent: this.WantStrongBtnNode,
                GameModuleId: o.GameModuleType.RecommendFormation
            }, this.FreshStrategyToggleBtnNode = {
                Parent: this.WantStrongBtnNode
            }, this.SystemFormationToggleBtnNode = {
                Parent: this.RecommendFormationToggleBtnNode
            }, this.TaskBtnEntrance = {
                Parent: this.MainBattleNode
            }, this.LevelPassRewardNode = {
                Parent: this.MainBattleNode
            }, this.OnlineRewardNode = {
                Parent: this.MainBattleNode
            }, this.HangUPFreeGiftPack = {
                Parent: this.MainBattleNode
            }, this.HangUPFreeGiftPackExtendBtn = {
                Parent: this.HangUPFreeGiftPack
            }, this.HangUPFreeGiftPackBuyBtn = {
                Parent: this.HangUPFreeGiftPackExtendBtn
            }, this.RiskPortBtnNode = {
                Parent: this.WildoutNode,
                GameModuleId: o.GameModuleType.RelicTreasureHunt
            }, this.RiskPortAncientBtnNode = {
                Parent: this.RiskPortBtnNode
            }, this.AncientHolyAreaWarTokenNode = {
                Parent: this.RiskPortAncientBtnNode
            }, this.RiskPortRelicBtnNode = {
                Parent: this.RiskPortBtnNode
            }, this.RelicTreasureHuntWarTokenNode = {
                Parent: this.RiskPortRelicBtnNode
            }, this.RiskPortSecretBtnNode = {
                Parent: this.RiskPortBtnNode
            }, this.RiskPortSaintsWarBtnNode = {
                Parent: this.RiskPortBtnNode
            }, this.RiskPortHolyRelic = {
                Parent: this.RiskPortBtnNode
            }, this.RiskPortAngelPve = {
                Parent: this.RiskPortBtnNode,
                GameModuleId: o.GameModuleType.AngelPve
            }, this.WorldBossNode = {
                Parent: this.WildoutNode,
                GameModuleId: o.GameModuleType.WorldBoss
            }, this.SaintsWarForest = {
                Parent: this.RiskPortSaintsWarBtnNode
            }, this.SaintsWarDesert = {
                Parent: this.RiskPortSaintsWarBtnNode
            }, this.SaintsWarTomb = {
                Parent: this.RiskPortSaintsWarBtnNode
            }, this.AbyssBtnNode = {
                Parent: this.WildoutNode,
                GameModuleId: o.GameModuleType.EndlessAbyss
            }, this.AbyssSingleModelBtnNode = {
                Parent: this.AbyssBtnNode
            }, this.AbyssMultiModelBtnNode = {
                Parent: this.AbyssBtnNode
            }, this.CoinPurchaseNode = {
                Parent: this.RootNode
            }, this.MianVIPNode = {
                Parent: this.RootNode
            }, this.VIPPageTab = {
                Parent: this.MianVIPNode
            }, this.LookVIPNode = {
                Parent: this.VIPPageTab
            }, this.SimplifyFurnaceNode = {
                Parent: this.SimplifyBtnNode,
                GameModuleId: o.GameModuleType.AncientSacred
            }, this.FurnaceNode = {
                Parent: this.SimplifyFurnaceNode,
                GameModuleId: o.GameModuleType.AncientSacred
            }, this.HolyFurnaceNode = {
                Parent: this.FurnaceNode,
                GameModuleId: o.GameModuleType.AncientSacred
            }, this.GemFurnaceNode = {
                Parent: this.FurnaceNode
            }, this.HolyFurnaceButton1Node = {
                Parent: this.HolyFurnaceNode
            }, this.HolyFurnaceButton5Node = {
                Parent: this.HolyFurnaceNode
            }, this.HolyGiftNode = {
                Parent: this.HolyFurnaceNode
            }, this.HolyEquipmentGalleryToggleNode = {
                Parent: this.FurnaceNode
            }, this.WelfareNode = {
                Parent: this.RootNode
            }, this.DailySignNode = {
                Parent: this.WelfareNode,
                GameModuleId: o.GameModuleType.DailyClockIn
            }, this.LevelGiftNode = {
                Parent: this.WelfareNode,
                GameModuleId: o.GameModuleType.LevelGift
            }, this.HangUpDropNodeCurr = {
                Parent: this.WelfareNode
            }, this.HangUpDropNodeCurrExchange = {
                Parent: this.HangUpDropNodeCurr
            }, this.HangUpDropNodeExpire = {
                Parent: this.WelfareNode
            }, this.HangUpDropNodeExpireExchange = {
                Parent: this.HangUpDropNodeExpire
            }, this.AttentionGiftNode = {
                Parent: this.WelfareNode,
                GameModuleId: o.GameModuleType.Attention
            }, this.AttentionLineNode = {
                Parent: this.AttentionGiftNode
            }, this.AttentionTwitterNode = {
                Parent: this.AttentionGiftNode
            }, this.BindSNSNode = {
                Parent: this.WelfareNode
            }, this.BindSNSBtnNode = {
                Parent: this.BindSNSNode
            }, this.SmallGamesBtnNode = {
                Parent: r.default.Instance.IsVNChannel() ? this.RootNode : this.WelfareNode,
                GameModuleId: o.GameModuleType.SmallGameEntry
            }, this.LuckyWheelBtnNode = {
                Parent: this.SmallGamesBtnNode,
                GameModuleId: o.GameModuleType.TreasureHunt
            }, this.NormalHuntBtnNode = {
                Parent: this.LuckyWheelBtnNode
            }, this.AdvanceHuntBtnNode = {
                Parent: this.LuckyWheelBtnNode
            }, this.Normal10ButtonNode = {
                Parent: this.NormalHuntBtnNode
            }, this.Advance10ButtonNode = {
                Parent: this.AdvanceHuntBtnNode
            }, this.DailyBuffNode = {
                Parent: this.WelfareNode,
                GameModuleId: o.GameModuleType.DailyBuff
            }, this.PlayerHeadNode = {
                Parent: this.RootNode,
                Id: 101
            }, this.PlayerSettingHeadNode = {
                Parent: this.PlayerHeadNode,
                Id: 1001
            }, this.HeadIconToggleNode = {
                Parent: this.PlayerSettingHeadNode
            }, this.HeadFrameToggleNode = {
                Parent: this.PlayerSettingHeadNode
            }, this.HeadTitleToggleNode = {
                Parent: this.PlayerSettingHeadNode
            }, this.ChatWindowToggleNode = {
                Parent: this.PlayerSettingHeadNode
            }, this.SetMagicCircleToggleNode = {
                Parent: this.PlayerSettingHeadNode,
                GameModuleId: o.GameModuleType.MagicCircle
            }, this.SetPetToggleNode = {
                Parent: this.PlayerSettingHeadNode,
                GameModuleId: o.GameModuleType.Pet
            }, this.CustomizeMainSceneNode = {
                Parent: this.PlayerHeadNode,
                Id: 1002
            }, this.CustomizeMainSceneTagNode0 = {
                Parent: this.CustomizeMainSceneNode,
                Id: 10001
            }, this.CustomizeMainSceneTagNode1 = {
                Parent: this.CustomizeMainSceneNode,
                Id: 10002
            }, this.CustomizeMainSceneTagNode2 = {
                Parent: this.CustomizeMainSceneNode,
                Id: 10003
            }, this.CustomizeMainSceneTagNode3 = {
                Parent: this.CustomizeMainSceneNode
            }, this.CustomizeMainSceneTagNode4 = {
                Parent: this.CustomizeMainSceneNode,
                GameModuleId: o.GameModuleType.NewPersonality
            }, this.SNSRewardEntry = {
                Parent: this.PlayerHeadNode
            }, this.SNSRewardNode = {
                Parent: this.SNSRewardEntry
            }, this.BagLuckyCharmNode = {
                Parent: this.MainBagNode
            }, this.BagRuneFunctionBtnNode = {
                Parent: this.MainBagNode
            }, this.HeroLuckyCharmLeftNode = {
                Parent: this.MainHeroNode
            }, this.HeroLuckyCharmRightNode = {
                Parent: this.MainHeroNode
            }, this.FirstChargeNode = {}, this.IdleFirstChargeNode = {}, this.InfiniteSummonNode = {
                Parent: this.SummonQueenMainScene,
                GameModuleId: o.GameModuleType.InfiniteTenSummon
            }, this.IdleInfiniteSummonNode = {
                GameModuleId: o.GameModuleType.InfiniteTenSummon
            }, this.InfiniteSummonToggle = {
                Parent: this.InfiniteSummonNode
            }, this.InfiniteSummonBtmNode1 = {
                Parent: this.InfiniteSummonToggle
            }, this.InfiniteSummonBtmNode2 = {
                Parent: this.InfiniteSummonToggle
            }, this.LetterDeveloperNode = {
                Parent: this.WelfareNode,
                GameModuleId: o.GameModuleType.LetterFromDeveloper
            }, this.IdleLetterDeveloperNode = {
                GameModuleId: o.GameModuleType.LetterFromDeveloper
            }, this.LetterDeveloperReceiveBtnNode = {
                Parent: this.LetterDeveloperNode
            }, this.LetterDeveloperRewardNode1 = {
                Parent: this.LetterDeveloperReceiveBtnNode
            }, this.LetterDeveloperRewardNode2 = {
                Parent: this.LetterDeveloperReceiveBtnNode
            }, this.LetterDeveloperRewardNode3 = {
                Parent: this.LetterDeveloperReceiveBtnNode
            }, this.DaysPayNode = {}, this.DaysPayFreeBtnNode = {}, this.DaysPayFinalBtnNode = {}, this.SummonActivityListNode = {}, this.WarTokenListNode = {}, this.GiftPackListNode = {}, this.MallDailyChooseNode = {
                Parent: this.MallNode
            }, this.DailyChooseToggleNode = {
                Parent: this.MallDailyChooseNode,
                GameModuleId: o.GameModuleType.DailySelectionShow
            }, this.DailyRecommendToggleNode = {
                GameModuleId: o.GameModuleType.DailyRecommendShow
            }, this.MallDailyChargeNode = {
                GameModuleId: o.GameModuleType.DailyPay
            }, this.MallDailyChargeButtonNode = {
                Parent: this.MallDailyChargeNode
            }, this.DailyPayProgreeRewardNode = {
                Parent: this.MallDailyChargeNode
            }, this.MallSevenDayNode = {
                GameModuleId: o.GameModuleType.SevenDayPay
            }, this.MallLuckyStarNode = {
                GameModuleId: o.GameModuleType.LuckyStar
            }, this.MallActiveCommandNode = {
                GameModuleId: o.GameModuleType.ActiveWarToken
            }, this.MallSRFundNode = {
                Parent: this.MallNode,
                GameModuleId: o.GameModuleType.GoodFund
            }, this.MallSuperFundNode = {
                Parent: this.MallSRFundNode,
                GameModuleId: o.GameModuleType.GoodFund
            }, this.MallRespectFundNode = {
                Parent: this.MallSRFundNode,
                GameModuleId: o.GameModuleType.GoodFund
            }, this.MallGrowthHero = {
                Parent: this.MallSRFundNode,
                GameModuleId: o.GameModuleType.GrowUpFund
            }, this.MallChaosFundNode = {
                GameModuleId: o.GameModuleType.GoodFund
            }, this.MallCheapFundNode = {
                GameModuleId: o.GameModuleType.GoodFund
            }, this.MallGrowthFundNode = {
                GameModuleId: o.GameModuleType.GrowUpFund
            }, this.MallGrowthWishCall = {
                Parent: this.MallGrowthFundNode
            }, this.MallGrowthSummonChaos = {
                Parent: this.MallGrowthFundNode
            }, this.MallGrowthPersonailty = {
                Parent: this.MallGrowthFundNode
            }, this.MallGrowthSummonPerson = {
                Parent: this.MallGrowthFundNode
            }, this.MallGrowthPersonalityLR = {
                Parent: this.MallGrowthFundNode
            }, this.MallGrowthWishCallLR = {
                Parent: this.MallGrowthFundNode
            }, this.MallSuperGiftPackNode = {
                Parent: this.MallNode,
                GameModuleId: o.GameModuleType.HeroGift
            }, this.MallHeroGiftNode = {
                Parent: this.MallSuperGiftPackNode,
                GameModuleId: o.GameModuleType.HeroGift
            }, this.MallGrowUpGiftNode = {
                Parent: this.MallSuperGiftPackNode,
                GameModuleId: o.GameModuleType.GrowUpGift
            }, this.MallLegendGiftNode = {
                Parent: this.MallSuperGiftPackNode,
                GameModuleId: o.GameModuleType.LegendGift
            }, this.MallLegendGift1Node = {
                Parent: this.MallLegendGiftNode,
                GameModuleId: o.GameModuleType.LegendGift
            }, this.MallLegendGift2Node = {
                Parent: this.MallLegendGiftNode,
                GameModuleId: o.GameModuleType.LegendGift2
            }, this.MallLegendGift3Node = {
                Parent: this.MallLegendGiftNode,
                GameModuleId: o.GameModuleType.LegendGift3
            }, this.MallLegendGift4Node = {
                Parent: this.MallLegendGiftNode,
                GameModuleId: o.GameModuleType.LegendGift4
            }, this.MallLegendGift5Node = {
                Parent: this.MallLegendGiftNode,
                GameModuleId: o.GameModuleType.LegendGift5
            }, this.MallFavorGiftNode = {
                GameModuleId: o.GameModuleType.FavorGift
            }, this.MallLuckyStarNodeChest = {
                Parent: this.MallLuckyStarNode
            }, this.MallSkyChooseGiftNode = {
                GameModuleId: o.GameModuleType.Mall
            }, this.PermanentPrivilegeHeroNode = {
                Parent: this.MallNode,
                GameModuleId: o.GameModuleType.PermanentPrivilege
            }, this.PermanentPrivilegePersonalityNode = {
                GameModuleId: o.GameModuleType.PermanentPrivilege
            }, this.PermanentPrivilegeLRHeroNode = {
                GameModuleId: o.GameModuleType.PermanentPrivilege
            }, this.PermanentPrivilegeLRPersonalityNode = {
                GameModuleId: o.GameModuleType.PermanentPrivilege
            }, this.FeedBackNode = {
                Parent: this.RootNode
            }, this.TimeLimitActivityFrame = {}, this.IdleTimeLimitActivityFrame = {}, this.OpenServerActivityNode = {
                Parent: this.TimeLimitActivityFrame
            }, this.IdleLimitTimePurchaseNode = {}, this.TimeLimitActivityNode = {
                Parent: this.TimeLimitActivityFrame
            }, this.TopicActivityNode = {
                Parent: this.TimeLimitActivityFrame
            }, this.ValentineActivityNode = {
                Parent: this.TimeLimitActivityFrame
            }, this.MainUIWishCallNode = {}, this.HeroListRecommondBtn = {
                Parent: this.RootNode
            }, this.ArenaPortNode = {
                Parent: this.WildoutNode
            }, this.CrossServerNode = {
                Parent: this.WildoutNode
            }, this.CrossServerLadderNode = {
                Parent: this.CrossServerNode
            }, this.CrossServePalaceNode = {
                Parent: this.CrossServerLadderNode
            }, this.MoonTakenTempleNode = {
                Parent: this.CrossServerNode
            }, this.CrossServerRankNode = {
                Parent: this.CrossServerNode
            }, this.CrossServerRankDayilyNode = {
                Parent: this.CrossServerRankNode
            }, this.CrossServerRankWeekilyNode = {
                Parent: this.CrossServerRankNode
            }, this.ArenaNode = {
                Parent: this.ArenaPortNode
            }, this.SeniorArenaNode = {
                Parent: this.ArenaPortNode,
                GameModuleId: o.GameModuleType.SeniorArena
            }, this.SeniorArenaEditTeamNode = {}, this.SeniorArenaResourceCollect = {
                Parent: this.SeniorArenaNode
            }, this.SeniorArenaFreeChallenge = {
                Parent: this.SeniorArenaNode
            }, this.ChampionShipNode = {
                Parent: this.ArenaPortNode
            }, this.BreakOutMatchNode = {
                Parent: this.ArenaPortNode
            }, this.BossWarNode = {
                Parent: this.WildoutNode
            }, this.ChaosSummonEntranceNode = {}, this.ChaosSummonDrawOnceNode = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ChaosSummonDrawTenNode = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ChaosSummonGetWayNode = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ChaosSummonFreeGiftPanelNode = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ChaosSummonTogglePersonality = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ContinuousFightNode = {
                Parent: this.ArenaPortNode,
                GameModuleId: o.GameModuleType.ContinuousFight
            }, this.ContinuousFightMatchBtn = {
                Parent: this.ContinuousFightNode
            }, this.ContinuousFightDailyRewardBtn = {
                Parent: this.ContinuousFightNode
            }, this.ContinuousFightDailyToggle = {
                Parent: this.ContinuousFightDailyRewardBtn
            }, this.ContinuousFightWeeklyToggle = {
                Parent: this.ContinuousFightDailyRewardBtn
            }, this.ContinuousFightFormationBtn = {
                Parent: this.ContinuousFightNode
            }, this.TaskGuideEntranceNode = {}, this.TaskDerailReceiveNode = {}, this.AssistantNode = {
                GameModuleId: o.GameModuleType.Helper
            }, this.ActivityPreviewNode = {
                Parent: this.RootNode
            }, this.ContinuousChargeNode = {
                Parent: this.MallDailyChooseNode
            }, this.ContinuousChargeDailyGiftNode = {
                Parent: this.ContinuousChargeNode
            }, this.CrossServerChampionGuessNode = {
                Parent: this.ArenaPortNode
            }, this.AllZoneChampionEntryNode = {
                Parent: this.CrossServerNode
            }, this.AllZoneChampionGuessNode = {
                Parent: this.AllZoneChampionEntryNode
            }, this.AllZoneChampionPredictNode = {
                Parent: this.AllZoneChampionEntryNode
            }, this.RankMatchArenaNode = {
                Parent: this.ArenaPortNode
            }, this.RankMatchArenaFormationNode = {
                Parent: this.RankMatchArenaNode
            }, this.SimplifyCollectionPavilionEntryNode = {
                Parent: this.SimplifyBtnNode
            }, this.CollectionPavilionEntryNode = {
                Parent: this.SimplifyCollectionPavilionEntryNode
            }, this.StarPieceResonanceEntryNode = {}, this.designationEntryNode = {}, this.SoulRecordEntry = {}, this.StarPieceExclusiveGalleryEntryNode = {}, this.ExclusiveGalleryCollectTabNode = {
                Parent: this.StarPieceExclusiveGalleryEntryNode
            }, this.ExclusiveGalleryUpgradeTabNode = {
                Parent: this.StarPieceExclusiveGalleryEntryNode
            }, this.ExclusiveGalleryCollectButtonNode = {
                Parent: this.ExclusiveGalleryCollectTabNode
            }, this.ExclusiveGalleryAnyWeaponOperationalNode = {
                Parent: this.ExclusiveGalleryCollectTabNode
            }, this.ExclusiveGalleryUpgradeButtonNode = {
                Parent: this.ExclusiveGalleryUpgradeTabNode
            }, this.UserTitlePanel = {
                Parent: this.designationEntryNode
            }, this.UserTitlePromotionBtn = {
                Parent: this.designationEntryNode
            }, this.StrategyEntry = {
                Parent: this.designationEntryNode,
                GameModuleId: o.GameModuleType.Strategy
            }, this.StrategyPageFormation = {
                Parent: this.StrategyEntry
            }, this.StrategyPageElement = {
                Parent: this.StrategyEntry
            }, this.StrategyPageOccupation = {
                Parent: this.StrategyEntry
            }, this.StrategyPageUniversal = {
                Parent: this.StrategyEntry
            }, this.HolyRelicEntry = {
                Parent: this.RiskPortHolyRelic
            }, this.HolyRelicFight = {
                Parent: this.HolyRelicEntry
            }, this.HolyRelicWarToken = {
                Parent: this.HolyRelicEntry
            }, this.DukeEntry = {
                Parent: this.designationEntryNode
            }, this.DukeBtnNode = {
                Parent: this.DukeEntry
            }, this.DukeScrollEntry = {
                Parent: this.designationEntryNode
            }, this.GemGalleryLevelUp = {
                GameModuleId: o.GameModuleType.GemGallery
            }, this.GemGallerySlot1 = {
                GameModuleId: o.GameModuleType.GemGallery
            }, this.GemGallerySlot2 = {
                GameModuleId: o.GameModuleType.GemGallery
            }, this.GemGallerySlot3 = {
                GameModuleId: o.GameModuleType.GemGallery
            }, this.ProgressRewardsSenior = {
                GameModuleId: o.GameModuleType.ProgressRewards,
                Parent: this.SummonQueenToggle
            }, this.ProgressRewardsPersonality = {
                GameModuleId: o.GameModuleType.ProgressRewards,
                Parent: this.SummonPersonalToggle
            }, this.ProgressRewardsDaily = {
                GameModuleId: o.GameModuleType.DailySummon,
                Parent: this.SummonDailyToggle
            }, this.ParanormalPuzzleTask = {
                GameModuleId: o.GameModuleType.ParanormalPuzzle,
                Parent: this.StarPuzzleToggleNode
            }, this.PetGalleryUpLevel = {}, this.LuckyCharmGalleryUpLevel = {}, this.PowerCoreGalleryUpLevel = {}, this.HeroTempleChaosToggleNode = {}, this.HeroTempleElementToggleNode = {}, this.HeroTempleLRToggleNode = {}, this.OldPlayerRecallEntryNode = {}, this.OldPlayerRecallToggleDailyReward = {
                Parent: this.OldPlayerRecallEntryNode
            }, this.OldPlayerRecallToggleTask = {
                Parent: this.OldPlayerRecallEntryNode
            }, this.OldPlayerRecallToggleFreeReward = {
                Parent: this.OldPlayerRecallEntryNode
            }, this.OldPlayerRecallToggleGift = {
                Parent: this.OldPlayerRecallEntryNode
            }, this.MallSkinGiftNode = {
                GameModuleId: o.GameModuleType.SkinStore
            }, this.MallSkinGiftBtnNode = {
                GameModuleId: o.GameModuleType.SkinStore,
                Parent: this.MallSkinGiftNode
            }, this.AngelPvpNode = {
                Parent: this.CrossServerNode,
                GameModuleId: o.GameModuleType.AngelPvp
            }, this.AngelPvpMatchBtn = {
                Parent: this.AngelPvpNode
            }, this.AngelPvpDailyRewardBtn = {
                Parent: this.AngelPvpNode
            }, this.AngelPvpWeeklyRewardBtn = {
                Parent: this.AngelPvpNode
            }, this.AngelPvpDailyToggle = {
                Parent: this.AngelPvpDailyRewardBtn
            }, this.AngelPvpWeeklyToggle = {
                Parent: this.AngelPvpWeeklyRewardBtn
            }, this.AngelHandbookEntryNode = {}, this.EmojiButtonNode = {}, this.AllianceInsigniaNode = {
                Parent: this.AllianceBtnNode,
                GameModuleId: o.GameModuleType.AllianceBadge
            }
        };
        n.InstanceRedDotDefine = function() {
            this.RankRewardsNode = {}, this.HeroInfoAttrToggle = {}, this.HeroInfoEquipToggle = {}, this.HeroInfoStarToggle = {}, this.HeroInfoAttrLevelBtn = {}, this.HeroInfoPersonalityToggle = {}, this.HeroInfoPersonalityTechBtn = {}, this.HeroInfoPersonalityUnlockBtn = {}, this.HeroInfoGemToggle = {}, this.HeroSkinButton = {}, this.HeroDescButton = {}, this.HeroLuckycharmSkill1 = {}, this.HeroLuckycharmSkill2 = {}, this.ComperhensionButton = {}, this.HeroLuckycharmSkillLevelUp = {}, this.ChaosTempleButton = {}, this.HeroJobChangeButton = {}, this.ChaosElementButton = {}, this.EquipAutoWearButton = {}, this.EquipAutoForgingButton = {}, this.ItemInfoChangeEquipButton = {}, this.ItemInfoForgingEquipButton = {}, this.HolyEquipDevelopButton = {}, this.HolyEquipStrengthToggle = {}, this.HolyEquipBlessingToggle = {}, this.HolyEquipSoulToggle = {}, this.HolyEquipAdvancedToggle = {}, this.HolyEquipBlessing1Unlock = {}, this.HolyEquipBlessing1Button = {}, this.HolyEquipBlessing2Unlock = {}, this.HolyEquipBlessing2Button = {}, this.HolyEquipBlessingCostButton = {}, this.HolyEquipSoulButton = {}, this.HolyEquipAdvancedButton = {}, this.PowerCoreCanEquipNode = {}, this.PowerCoreReplaceNode = {}, this.PowerCoreDevelopNode = {}, this.PowerCoreBottomUpLevelNode = {}, this.PowerCoreBottomUpStarNode = {}, this.PowerCoreUpgadeBtnNode = {
                Parent: this.PowerCoreBottomUpLevelNode
            }, this.PowerCoreUpStarBtnNode = {
                Parent: this.PowerCoreBottomUpStarNode
            }, this.LimitTimePurchaseNode = {}, this.LimitTimeTaskNode = {}, this.SevenDayWarTokenNode = {}, this.CarnivalNode = {}, this.HeroTestNode = {}, this.HeroTestTaskNode = {
                Parent: this.HeroTestNode
            }, this.FatePrayNode = {}, this.UpgradeStarNode = {}, this.WishCallNode = {}, this.WishCallNewNode = {}, this.AngelSummonNode = {}, this.WishAngelNode = {}, this.MazeExploreNode = {}, this.MazeExploreTimesBtnNode = {
                Parent: this.MazeExploreNode
            }, this.MazeExploreFindGiftBtnNode = {
                Parent: this.MazeExploreNode
            }, this.MazeExploreGetMoreBtnNode = {
                Parent: this.MazeExploreNode
            }, this.HappyTurnNode = {}, this.HappyTurnStartBtnNode = {
                Parent: this.HappyTurnNode
            }, this.OptionalUpgradeStarNode = {}, this.AllUserImpactRankNode = {}, this.AllUserImpactRankGiftNode = {
                Parent: this.AllUserImpactRankNode
            }, this.ElementTrialNode = {}, this.PersonalityCallNode = {}, this.RebateSummonNode = {}, this.HeroDungeonNode = {}, this.ExchangeShopNode = {}, this.TaskTalentNode = {}, this.AccumulateRechargeNode = {}, this.AllianceTradeNode = {}, this.ExquisiteCustomCardNode = {}, this.EmaPrayEntryNode = {}, this.BeatWatermelonEntryNode = {}, this.BeatWatermelonGiftButton = {}, this.BeatWatermelonStartButton = {}, this.RechargeGuideNode = {}, this.RechargeGuideFianlNode = {
                Parent: this.RechargeGuideNode
            }, this.RechargeGuideStageNode1 = {
                Parent: this.RechargeGuideNode
            }, this.RechargeGuideStageNode2 = {
                Parent: this.RechargeGuideNode
            }, this.RechargeGuideStageNode3 = {
                Parent: this.RechargeGuideNode
            }, this.RechargeGuideStageNode4 = {
                Parent: this.RechargeGuideNode
            }, this.InfiniteGiftPackNode = {}, this.InfiniteGiftPackItemNode = {
                Parent: this.InfiniteGiftPackNode
            }, this.CustomGiftPackNode = {}, this.FateStarBoxNode = {}, this.IngenuityNode = {}, this.GiftDrawNode = {}, this.ChargeDrawNode = {}, this.DiamondDrawNode = {}, this.WishTreeNode = {}, this.WishTreePersonalNode = {
                Parent: this.WishTreeNode
            }, this.WishTreeTaskNode = {
                Parent: this.WishTreeNode
            }, this.TaskCommand = {}, this.ReturnWelfareNode = {}, this.WarTokenListJumpNode = {}, this.SecretJourneyNode = {}, this.BossWarZoneNode = {}, this.BossWarAllianceNode = {}, this.BossWarCrossZoneNode = {}, this.BossWarChallengeNode = {}, this.BossWarTaskNode = {}, this.AllUserPuzzleNode = {}, this.AllUserPuzzleGiveNode = {}, this.MonopolyEntranceNode = {}, this.MonopolyTaskNode = {
                Parent: this.MonopolyEntranceNode
            }, this.MonopolyDiceNode = {
                Parent: this.MonopolyEntranceNode
            }, this.MonopolyRemoteDiceNode = {
                Parent: this.MonopolyEntranceNode
            }, this.MonopolyWarToken = {
                Parent: this.MonopolyEntranceNode
            }, this.AnswerActivityNode = {}, this.BadgeCollectNode = {}, this.BadgeCollectFinalRewardNode = {
                Parent: this.BadgeCollectNode
            }, this.TacticalAttrLevelUpNode = {}, this.TacticalSkillLevelUpNode = {}, this.HeroTalentEntranceNode = {}, this.HeroTalentActivateNode = {}, this.HeroPveTalentNode = {
                Parent: this.HeroTalentEntranceNode
            }, this.HeroPvpTalentNode = {
                Parent: this.HeroTalentEntranceNode
            }, this.HeroTalentResonanceEntranceNode = {
                Parent: this.HeroTalentEntranceNode
            }, this.TalentResonanceUpgradeNode = {
                Parent: this.HeroTalentResonanceEntranceNode
            }, this.LoverArrowStartNode = {}, this.ChaosSummonEntranceNode = {}, this.ChaosSummonDrawOnceNode = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ChaosSummonDrawTenNode = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ChaosSummonGetWayNode = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ChaosSummonFreeGiftPanelNode = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ChaosSummonTogglePersonality = {
                Parent: this.ChaosSummonEntranceNode
            }, this.ChaosPersonalityDrawOnceNode = {
                Parent: this.ChaosSummonTogglePersonality
            }, this.ChaosPersonalityDrawTenNode = {
                Parent: this.ChaosSummonTogglePersonality
            }, this.HeroSummonTrialHeroNode = {
                Parent: this.WishCallNewNode
            }, this.ChaosSummonTrialHeroNode = {
                Parent: this.ChaosSummonEntranceNode
            }, this.HeroPetNode = {
                GameModuleId: o.GameModuleType.Pet
            }, this.PetChangeBtn = {
                GameModuleId: o.GameModuleType.Pet
            }, this.PersonalityHandbookBtn = {
                GameModuleId: o.GameModuleType.SkinPersonalityPic
            }, this.SkinHandbookButton = {
                GameModuleId: o.GameModuleType.SkinPersonalityPic
            }, this.PetInfoAttrToggle = {}, this.PetInfoStarToggle = {}, this.PetInfoRefineToggle = {}, this.PetInfoStarUpgrade = {}, this.PetInfoRefineUpgrade = {}, this.ActivityStoryNode = {}, this.HeroRisingPackActivity = {}, this.ActivityLuckyBagNode = {}, this.CommonLuckyBagNode = {
                Parent: this.ActivityLuckyBagNode
            }, this.HighLuckyBagNode = {
                Parent: this.ActivityLuckyBagNode
            }, this.SpecialLuckyBagNode = {
                Parent: this.ActivityLuckyBagNode
            }, this.AccumulatedChargeNode = {
                Parent: this.ActivityLuckyBagNode
            }, this.AccumulatedGetNode = {
                Parent: this.ActivityLuckyBagNode
            }, this.TreasureBoxNode = {
                Parent: this.ActivityLuckyBagNode
            }, this.ActivityBossNode = {}, this.ActivityBossChallengeNode = {
                Parent: this.ActivityBossNode
            }, this.ActivityBossTaskNode = {
                Parent: this.ActivityBossNode
            }, this.ActivityBossTaskDailyNode = {
                Parent: this.ActivityBossTaskNode
            }, this.ActivityBossTaskPeriodNode = {
                Parent: this.ActivityBossTaskNode
            }, this.CampSupportNode = {}, this.CampSupportGiftNode = {
                Parent: this.CampSupportNode
            }, this.CampSupportTaskNode = {
                Parent: this.CampSupportNode
            }, this.SupportNode = {
                Parent: this.CampSupportNode
            }, this.ActiveCollectionEntry = {}, this.DailyCheckInActivityPanel = {}, this.WarmUpActivityPanel = {}, this.LimitTimeSummonNode = {}, this.LimitTimeSummonFreeNode = {}, this.HerosRisingStarGiftPanel = {}, this.HerosRisingStarHeart = {
                Parent: this.HerosRisingStarGiftPanel
            }, this.HerosRisingStarPower = {
                Parent: this.HerosRisingStarGiftPanel
            }, this.HerosRisingStarTech = {
                Parent: this.HerosRisingStarGiftPanel
            }, this.HerosRisingStarFigth = {
                Parent: this.HerosRisingStarGiftPanel
            }, this.HerosRisingStarBreak = {
                Parent: this.HerosRisingStarGiftPanel
            }, this.HerosRisingStarChaos = {
                Parent: this.HerosRisingStarGiftPanel
            }, this.CarnivalSkinPanel = {}, this.HeroFetterSkillUpNode = {}, this.AngelInfoAttrToggle = {
                GameModuleId: o.GameModuleType.Angel
            }, this.AngelInfoAttrLevelBtn = {}, this.AngelDescButton = {}, this.AngelSkinButton = {}, this.AngelFavorButton = {}, this.AngelFavorSendGiftButton = {}, this.AngelUpStarToggle = {}, this.AngelUpStarButton = {}, this.AngelGodSoulButton = {}, this.StoryUpStarNode = {}, this.SummonBox = {}, this.SummonBoxProgress = {
                Parent: this.SummonBox
            }, this.SummonBoxPack = {
                Parent: this.SummonBox
            }, this.LuckyDrawPanel = {}, this.LuckyDrawExchangeBtn = {
                Parent: this.LuckyDrawPanel
            }, this.LuckyDrawPack = {
                Parent: this.LuckyDrawPanel
            }, this.LuckyDrawDetial = {
                Parent: this.LuckyDrawPanel
            }, this.ActivityFirstPayNode = {}, this.IdleActivityFirstPayNode = {}, this.CollectionPavilionMoudelEntry_0 = {}, this.CollectionPavilionMoudelEntry_1 = {}, this.CollectionPavilionMoudelEntry_2 = {}, this.CollectionPavilionMoudelEntry_3 = {}, this.CollectionPavilionMoudelEntry_4 = {}, this.CollectionPavilionMoudelEntry_5 = {}, this.CollectionPavilionMoudelEntry_6 = {}, this.CollectionPavilionMoudelEntry_7 = {}, this.CollectionPavilionMoudelEntry_8 = {}, this.CollectionPavilionMoudelEntry_9 = {}, this.CollectionPavilionMoudelEntry_10 = {}, this.CollectionPavilionBottomToggle_0 = {}, this.CollectionPavilionBottomToggle_1 = {}, this.TreasureHouseWishTreeUpLevelNode = {}, this.TreasureHouseWishTreaTag_0 = {}, this.TreasureHouseWishTreaTag_1 = {}, this.TreasureHouseWishTreaTag_2 = {}, this.TreasureHouseWishTreaTag_3 = {}, this.TreasureHouseWishTreeEntry = {}, this.TreasureHouseUpLevelButtonNode = {}, this.TreasureHouseUpLevelEntryNode = {}, this.TreasureHouseItemEntry_0 = {}, this.TreasureHouseItemEntry_1 = {}, this.TreasureHouseItemEntry_2 = {}, this.TreasureHouseTreasureItemUpStar = {}, this.TreasureHouseTreasureItemUpStarLeftArrow = {}, this.TreasureHouseTreasureItemUpStarRightArrow = {}, this.ChaosHeroTempleUpLevelButtonNode = {}, this.ChaosHeroResonanceUpLevelButtonNode = {}, this.ActivityLuckyPackNode = {}, this.LuckyCharmUpgradeNode = {
                GameModuleId: o.GameModuleType.LuckyCharmUpgrade
            }, this.LuckyCharmUpgradeToggleNode = {}, this.LuckyCharmInfoUpgradeNode = {}, this.LuckyCharmEngraveNode = {}, this.LuckyCharmEngraveToggleNode = {}, this.GemProcessingBtnNode = {
                GameModuleId: o.GameModuleType.GemUpgrade
            }, this.GemProcessingNode = {
                GameModuleId: o.GameModuleType.GemUpgrade
            }, this.CookHouseEnterPanel = {}, this.CookHouseEnterPanelTaskBtn = {}, this.CookHouseEnterPanelTaskToggle1 = {}, this.CookHouseEnterPanelTaskToggle2 = {}, this.NewSignIn = {}, this.KnifeTrainNode = {}, this.KnifeTrainToggle1 = {}, this.KnifeTrainTask = {}, this.KnifeTrainReceiveBtn = {}, this.HolyEquipmentGalleryEntry_0 = {}, this.HolyEquipmentGalleryEntry_1 = {}, this.HolyEquipmentGalleryEntry_2 = {}, this.HolyEquipmentGalleryEntry_3 = {}, this.HolyEquipmentGalleryUpButton = {}, this.HeroHandbookUpLevelToggle = {}, this.HeroHandbookSublimingToggle = {}, this.HeroHandbookUpLevelButton = {}, this.HeroHandbookSublimingButton = {
                GameModuleId: o.GameModuleType.HeroHandbookSubliming
            }, this.AngelHandbookUpLevelToggle = {}, this.AngelHandbookSublimingToggle = {}, this.AngelHandbookUpLevelButton = {}, this.AngelHandbookSublimingButton = {}, this.CrazyWheel = {}, this.CrazyWheelSummonBtn1 = {
                Parent: this.CrazyWheel
            }, this.CrazyWheelSummonBtn2 = {
                Parent: this.CrazyWheel
            }, this.CrazyWheelPack = {
                Parent: this.CrazyWheel
            }, this.SelectedGiftBag = {}, this.ArtifactDetailToggle = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.ArtifactForgeToggle = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.ArtifactUpStarToggle = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.ArtifactForge1 = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.ArtifactForge2 = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.ArtifactForge3 = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.ArtifactUpStarActiveBtn = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.ArtifactUpStarBtn = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.ArtifactPhantomActiveBtn = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.HeroArtifactUpStarBtn = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.HeroArtifactForgeBtn = {
                GameModuleId: o.GameModuleType.Artifact
            }, this.ElementArenaNode = {}, this.ContinuousPurchaseGiftEntryNode = {}, this.ContinuousPurchaseGiftDailyReward = {}, this.NewDailyCheckInRunnerNode = {}, this.SeckillGiftDailyReward = {}, this.SeckillGiftEntryNode = {}, this.MagicComposeEntryNode = {}, this.MagicComposeCombineButton = {}, this.WeekCardNode = {}, this.SuperGiftNode = {}, this.WelfareSuperGiftNode = {}, this.RunningTrainEntryNode = {}, this.RunningTrainTaskNode = {}, this.RunningTrainTaskDailyToggle = {}, this.RunningTrainTaskTotalToggle = {}, this.RunningTrainReceiveNode = {}, this.RunningTrainConsume1Node = {}, this.RunningTrainConsume2Node = {}, this.RechargeFeedbackNode = {}, this.SuperWeaponUpStarBtnNode = {}, this.SuperWeaponUpLevelBtnNode = {}, this.SuperWeaponUpStarToggleNode = {}, this.SuperWeaponUpLevelToggleNode = {}, this.NewYearWeaponUpStarBtnNode = {}, this.NewYearWeaponUpLevelBtnNode = {}, this.NewYearWeaponUpStarToggleNode = {}, this.NewYearWeaponUpLevelToggleNode = {}, this.MultipleGiftNode = {}, this.ChainGiftNode = {}, this.HeroPKEntryNode = {}, this.HeroPKReceiveButtonNode = {}, this.HeroPKTaskNode = {}, this.HeroPKDailyTaskToggle = {}, this.HeroPKTotalTaskToggle = {}, this.HeroPKWarTokenButtonNode = {}, this.TreasureHuntNode = {}, this.TreasureHuntWarTokenBtn = {}, this.TreasureHuntTaskBtn = {}, this.TreasureHuntGiftPackBtn = {}, this.TreasureHuntTurnBtn = {}, this.ScratchCardNode = {}, this.ScratchCardRewardNode = {}, this.ScratchCardGiftNode = {}, this.ScratchCardTaskNode = {}, this.LuckyCakeEntryNode = {}, this.LuckyCakeTaskNode = {}, this.LuckyCakeTaskDailyToggle = {}, this.LuckyCakeTaskTotalToggle = {}, this.LuckyCakeEatButtonNode = {}, this.LuckyCakeFreeRewardNode = {}, this.ActivityChampionEntryButton = {}, this.ActivityChampionApplyButton = {}, this.ActivityChampionPreviewButton = {}, this.ChampionPreviewSelectButton = {}, this.ChampionPreviewRankButton = {}, this.ChampionPreviewRewardButton = {}, this.PermanentPrivilegeToggle0 = {}, this.PermanentPrivilegeToggle1 = {}, this.PermanentPrivilegeToggle2 = {}, this.PermanentPrivilegeToggle3 = {}, this.PowerTowerExtraRewardBtnNode = {}, this.TechTowerExtraRewardBtnNode = {}, this.HeartTowerExtraRewardBtnNode = {}, this.BreakTowerExtraRewardBtnNode = {}, this.FightTowerExtraRewardBtnNode = {}, this.EntrancePowerBtnNode = {}, this.EntranceTechBtnNode = {}, this.EntranceHeartBtnNode = {}, this.EntranceBreakBtnNode = {}, this.EntranceFightBtnNode = {}, this.EntranceNormalBtnNode = {}, this.ClimbTowerDailyRewardBtnNode = {}, this.NormalTowerExtraRewardBtnNode = {}, this.TowerStarPowerBtnNode = {
                GameModuleId: o.GameModuleType.ElementTower
            }, this.CircusMazeNode = {}, this.CircusMazeWarTokenNode = {}, this.CircusMazeConsumeNode = {}, this.CircusMazeGiftNode = {}, this.ParkourNode = {}, this.ParkourTaskNode = {}, this.ParkourGiftNode = {}, this.CrazyDiscountNode = {}, this.CrazyDiscountFreeItemNode = {}, this.GlobalChampionShipNode = {}, this.GlobalChampionFormationBtn = {}, this.GlobalChampionRewardBtn = {}, this.GlobalChampionRewardToggle = {}, this.RushRankFrameEntryNode = {}, this.RushRankFrameDailyReward = {}, this.RushRankEntryNode = {}, this.RushRankStageReward = {}, this.RushRankTaskToggle = {}, this.RushRankGiftToggle = {}, this.NoviceFormationNode = {}, this.BreakouNode = {}, this.BreakouTaskNode = {}, this.GiftAllHeroesNode = {}, this.KoiGiftEntryNode = {}, this.KoiGiftDailyReward = {}, this.TradeWarNode = {}, this.TardeWarTaskNode = {}, this.TardeWarActiveBtnNode = {}, this.TardeWarLevelUp = {}, this.RocketEntryNode = {}, this.RocketChallengeButton = {}, this.AccountActivityNode = {}, this.FightingMiniGameNode = {}, this.FightingMiniGameTaskNode = {}, this.FightingMiniGameDailyTaskNode = {}, this.FightingMiniGameAccumulateTaskNode = {}, this.NoviceTrainingNode = {}, this.NewPersonalityHintBtn = {
                GameModuleId: o.GameModuleType.NewPersonality
            }, this.NewPersonalityLevelUpBtn = {
                GameModuleId: o.GameModuleType.NewPersonality
            }, this.NewPersonalitySummonNode = {
                GameModuleId: o.GameModuleType.NewPersonality
            }, this.NewPersonalitySummonOneBtn = {
                GameModuleId: o.GameModuleType.NewPersonality
            }, this.FlipHappyNode = {}, this.Activity2048EntryNode = {}, this.Activity2048EnergyNode = {}, this.ActivityBossBattleEntryNode = {}, this.ActivityBossBattleApplyButton = {}, this.ActivityBossBattleChallengeButton = {}, this.ActivityBossBattleTaskNode = {}, this.ActivityBossBattleTaskDailyNode = {}, this.ActivityBossBattleTaskTotalNode = {}, this.RuinsWarNode = {}, this.RuinsWarTaskNode = {}, this.RuinsWarTaskDailyNode = {
                Parent: this.RuinsWarTaskNode
            }, this.RuinsWarTaskPeriodNode = {
                Parent: this.RuinsWarTaskNode
            }, this.RuinsWarUpLevelNode = {}, this.RuinsWarBattleFlagNode = {}, this.CutPriceGiftPackNode = {}, this.CutPriceGiftPackTaskNode = {}, this.CutPriceGiftPackSendBtn = {}, this.CutPriceGiftPackBuyBtn = {}, this.SeasonSecretJourneyNode = {}, this.SeasonWeaponUpgradeNode = {}, this.SeasonWeaponUpStarNode = {}, this.SeasonWeaponUpgradeBtnNode = {}, this.SkinTryBtn = {}, this.NewWarTokenNode = {}, this.NewWarTokenTaskNode = {}, this.RhythmNode = {}, this.FirstPayNode = {}, this.FirstPayItemNode = {}, this.FirstPayComponentItemNode = {}, this.PiggyBankNode = {}, this.PowerTaskNode = {}, this.ActivityHeroTestTowerNode = {}, this.SailNode = {
                GameModuleId: o.GameModuleType.CloudTreasureHunt
            }, this.SailGiftNode = {
                Parent: this.SailNode
            }, this.SailFlyNode = {
                Parent: this.SailNode
            }, this.EightDaysNode = {}, this.EightDaysPayToggle = {
                Parent: this.EightDaysNode
            }, this.FavorQuickSendNode = {}, this.HeroMagicCircleNode = {
                GameModuleId: o.GameModuleType.MagicCircle
            }, this.MagicCircleInfoAttrToggle = {}, this.MagicCircleInfoStarToggle = {}, this.MagicCircleInfoTalentToggle = {}, this.MagicCircleInfoStarUpgrade = {}, this.MagicCircleChangeBtn = {}, this.ActivityOpenBoxNode = {}, this.AllianceMazeNode = {}, this.LuckySummonNode = {}, this.AssaultOpeationNode = {}, this.FamilyMutualAidNode = {}, this.AssaultAchieveRewardsNode = {}, this.AssaultOperationRankingGuessNode = {}, this.AssaultOperationFamilyNode = {}, this.AssaultOperationFamilyWelfareNode = {}, this.AssaultOperationSpiritCrystalGatherNode = {}, this.AssaultOperationRankRewardNode = {}, this.AssaultOperationOwnRankRewardNode = {}, this.AssaultOperationFamilyRankRewardNode = {}, this.StarPrayNode = {}, this.DrawBattleNode = {}, this.TaskWarTokenNode = {}, this.TaskWarTokenRewardPageNode = {
                Parent: this.TaskWarTokenNode
            }, this.TaskWarTokenDailyTaskPageNode = {
                Parent: this.TaskWarTokenNode
            }, this.TaskWarTokenIssueTaskPageNode = {
                Parent: this.TaskWarTokenNode
            }
        }, cc._RF.pop()
    }, {
        "../../Consts/Consts": "Consts",
        "../Channel/ChannelManager": "ChannelManager"
    }],
    RedDotManager: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "3b8e3bgS8dIRKpHJ4c9Wf/A", "RedDotManager");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            a = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RedDotManager = void 0;
        var s = e("../../EZFramework/EZFramework"),
            l = e("../Auxiliary/GlobalDefine"),
            c = e("./RedDotDataHandler"),
            u = e("./RedDotDefine"),
            p = e("../../Consts/Consts"),
            d = e("../../../Proto/Static/RpcProto"),
            h = e("../../../Proto/Static/ConfigProto"),
            f = e("../../EZFramework/EZFramework"),
            y = e("../Components/DataCenter"),
            g = e("../../Consts/Consts"),
            m = e("../Components/ConfigData/ConfigDataComponent"),
            I = e("../Auxiliary/EventKeys"),
            _ = e("../Auxiliary/DataUtlity"),
            C = e("../Components/RpcComponent"),
            v = e("../Auxiliary/GameRecord"),
            b = e("../Channel/ChannelManager"),
            S = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t._redDotNodeArr = [], t
                }
                return r(t, e), Object.defineProperty(t, "Instance", {
                    get: function() {
                        return null === this._instance && (this._instance = cc.find(f.SysDefine.SYS_UIROOT_NAME).addComponent(this)), this._instance
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(t, "DataHandler", {
                    get: function() {
                        return this._instance._dataHandler
                    },
                    enumerable: !1,
                    configurable: !0
                }), t.prototype.Init = function() {
                    if (this.Reset(), void 0 === this.RedDot) {
                        this.RedDot = new u.RedDotDefine, this._dataHandler = cc.find(f.SysDefine.SYS_UIROOT_NAME).addComponent(c.RedDotDataHandler);
                        for (var e = 0, t = Object.getOwnPropertyNames(this.RedDot); e < t.length; e++) {
                            var n = t[e],
                                o = this.RedDot[n];
                            this._redDotNodeArr.push(o), o.IsActive = !1, o.NeedRefresh = !0, null != o.Parent && (void 0 === o.Parent.Children && (o.Parent.Children = []), o.Parent.Children.push(o))
                        }
                        this.RegisteCallback()
                    }
                    void 0 === this.InstanceRedDot && (this.InstanceRedDot = new u.InstanceRedDotDefine, this.RegisteInstanceCallback()), this.RegisteEvent()
                }, t.prototype.Reset = function() {
                    for (var e = 0; e < this._redDotNodeArr.length; e++) {
                        var t = this._redDotNodeArr[e];
                        t.IsActive = !1, t.NeedRefresh = !0
                    }
                    this._needRefreshRedDot = !1
                }, t.prototype.Bind = function(e, t, n, o, r, s) {
                    return void 0 === n && (n = 0), void 0 === o && (o = 0), i(this, void 0, void 0, function() {
                        return a(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return [4, this.InstantiateRedDot(e, t, n, o, r, s)];
                                case 1:
                                    return i.sent(), this.ConfigRedDotState(t), [2]
                            }
                        })
                    })
                }, t.prototype.UnBind = function(e) {
                    e.RedDotAsset && (e.RedDotAsset.active = !1)
                }, t.prototype.BindInstance = function(e, t, n, o, r, s, l) {
                    return void 0 === o && (o = 0), void 0 === r && (r = 0), i(this, void 0, void 0, function() {
                        var i, c, u;
                        return a(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return null != n.Result && 0 == n.Result ? (t.RedDotAsset && (t.RedDotAsset.active = !1), [2]) : [4, this.InstantiateRedDot(e, t, o, r, s, l)];
                                case 1:
                                    return a.sent(), null != n.Result ? (t.RedDotAsset.active = n.Result, [2]) : (i = !1, c = !0, u = !0, t.GameModuleId && (c = _.default.Instance.IsGameModuleUnlock(t.GameModuleId)[0], u = _.default.Instance.IsGameModuleOpen(t.GameModuleId)), t.callBackFunc && c && u && (i = t.callBackFunc(n)), t.RedDotAsset.active = i, [2])
                            }
                        })
                    })
                }, t.prototype.BindNodeByResult = function(e, t, n, o, r, s, l) {
                    return void 0 === o && (o = 0), void 0 === r && (r = 0), i(this, void 0, void 0, function() {
                        return a(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return [4, this.InstantiateRedDot(e, t, o, r, s, l)];
                                case 1:
                                    return i.sent(), t.RedDotAsset.active = n, [2]
                            }
                        })
                    })
                }, t.prototype.InstantiateRedDot = function(e, t, n, o, r, c) {
                    return void 0 === n && (n = 0), void 0 === o && (o = 0), i(this, void 0, void 0, function() {
                        var i;
                        return a(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return void 0 !== t.RedDotAsset && t.RedDotAsset.isValid ? [3, 2] : [4, s.AssetsManager.Instance.LoadAsset(l.BundlePath.RED_DOT_PREFAB)];
                                case 1:
                                    i = a.sent(), t.RedDotAsset = cc.instantiate(i), r && (r > 0 ? t.RedDotAsset.scale *= r : t.RedDotAsset.scaleY *= r), c && (t.RedDotAsset.rotation = c), a.label = 2;
                                case 2:
                                    return e && e.isValid ? (t.RedDotAsset.setParent(e), t.ButtonAsset = e, t.RedDotAsset.setPosition(e.width / 2 - t.RedDotAsset.width / 2 + 5 + n, e.height / 2 - t.RedDotAsset.height / 2 + 5 + o), [2]) : [2]
                            }
                        })
                    })
                }, t.prototype.ConfigRedDotState = function(e) {
                    var t = e.IsActive;
                    if (e.NeedRefresh) {
                        var n = !0,
                            o = !0;
                        e.GameModuleId && (n = _.default.Instance.IsGameModuleUnlock(e.GameModuleId)[0], o = _.default.Instance.IsGameModuleOpen(e.GameModuleId)), t = !(!n || !o) && (e.callBackFunc ? e.callBackFunc() : this.RecurseChildrenNodes(e))
                    }
                    e.IsActive = t, e.RedDotAsset.active = t, e.NeedRefresh = !1
                }, t.prototype.RecurseChildrenNodes = function(e) {
                    var t = !1;
                    if (null != e.Children)
                        for (var n = 0, o = e.Children; n < o.length; n++) {
                            var r = o[n];
                            if (r.NeedRefresh) {
                                var i = !0,
                                    a = !0;
                                r.GameModuleId && (i = _.default.Instance.IsGameModuleUnlock(r.GameModuleId)[0], a = _.default.Instance.IsGameModuleOpen(r.GameModuleId)), i && a ? r.callBackFunc ? (t = r.callBackFunc(), r.IsActive = t) : (t = this.RecurseChildrenNodes(r), r.IsActive = t) : (t = !1, r.IsActive = t), r.NeedRefresh = !1
                            } else t = r.IsActive;
                            if (r.ButtonAsset && r.ButtonAsset.isValid && 1 == r.ButtonAsset.active && (r.RedDotAsset.active = t), t) break
                        }
                    return t
                }, t.prototype.RecurseParentNodes = function(e) {
                    var t = e.Parent;
                    t && (this._currentRecurseParents.push(t), t.Parent && this.RecurseParentNodes(t))
                }, t.prototype.update = function() {
                    this._needRefreshRedDot && (this.DoRefreshRedDotJob(), this._needRefreshRedDot = !1)
                }, t.prototype.RefreshRedDotState = function() {
                    this._needRefreshRedDot = !0
                }, t.prototype.DoRefreshRedDotJob = function() {
                    this._currentRecurseParents = [];
                    for (var e = 0; e < this._redDotNodeArr.length; e++)(t = this._redDotNodeArr[e]).NeedRefresh && this.RecurseParentNodes(t);
                    for (e = 0; e < this._redDotNodeArr.length; e++)(t = this._redDotNodeArr[e]).NeedRefresh && t.ButtonAsset && t.ButtonAsset.isValid && 1 == t.ButtonAsset.active && this.ConfigRedDotState(t);
                    for (e = 0; e < this._currentRecurseParents.length; e++) {
                        var t;
                        (t = this._currentRecurseParents[e]).NeedRefresh = !0, t.NeedRefresh && t.ButtonAsset && t.ButtonAsset.isValid && 1 == t.ButtonAsset.active && this.ConfigRedDotState(t)
                    }
                }, t.prototype.RegisteCallback = function() {
                    this.RedDot.HeroListNode.callBackFunc = this._dataHandler.RefreshFormationHeroDevelopState.bind(this._dataHandler), this.RedDot.HeroHandbookNode.callBackFunc = this._dataHandler.RefreshHeroHandbookState.bind(this._dataHandler), this.RedDot.LeftVerticalBtnNode.callBackFunc = this._dataHandler.LeftVerticalBtnNode.bind(this._dataHandler), this.RedDot.BagFragmentNode.callBackFunc = this._dataHandler.RefreshBagFragmentToggle.bind(this._dataHandler), this.RedDot.BagPropNode.callBackFunc = this._dataHandler.RefreshBagPropToggle.bind(this._dataHandler), this.RedDot.MailBtnNode.callBackFunc = this._dataHandler.RefreshMailBtnNode.bind(this._dataHandler), this.RedDot.RankZoneNode.callBackFunc = this._dataHandler.RefreshRankZoneNode.bind(this._dataHandler), this.RedDot.RankCrossZoneNode.callBackFunc = this._dataHandler.RefreshRankCrossZoneNode.bind(this._dataHandler), this.RedDot.ShopBtnNode.callBackFunc = this._dataHandler.RefreshShopBtnNode.bind(this._dataHandler), this.RedDot.ShopTypeNode1.callBackFunc = this._dataHandler.RefreshShopTypeNode1.bind(this._dataHandler), this.RedDot.ShopTypeNode2.callBackFunc = this._dataHandler.RefreshShopTypeNode2.bind(this._dataHandler), this.RedDot.ShopTypeNode3.callBackFunc = this._dataHandler.RefreshShopTypeNode3.bind(this._dataHandler), this.RedDot.ShopTypeNode4.callBackFunc = this._dataHandler.RefreshShopTypeNode4.bind(this._dataHandler), this.RedDot.NormalHuntBtnNode.callBackFunc = this._dataHandler.RefreshNormalHuntBtnNode.bind(this._dataHandler), this.RedDot.AdvanceHuntBtnNode.callBackFunc = this._dataHandler.RefreshAdvanceHuntBtnNode.bind(this._dataHandler), this.RedDot.HeroPalaceBtnNode.callBackFunc = this._dataHandler.RefreshHeroPalaceBtnNode.bind(this._dataHandler), this.RedDot.HeroMergeBtnNode.callBackFunc = this._dataHandler.RefreshHeroPalaceBtnNode.bind(this._dataHandler), this.RedDot.DailyInstanceBtnNode.callBackFunc = this._dataHandler.RefreshDailyInstanceBtnNode.bind(this._dataHandler), this.RedDot.CoinInstanceBtnNode.callBackFunc = this._dataHandler.RefreshCoinInstanceBtnNode.bind(this._dataHandler), this.RedDot.ExpInstanceBtnNode.callBackFunc = this._dataHandler.RefreshExpInstanceBtnNode.bind(this._dataHandler), this.RedDot.FighterInstanceBtnNode.callBackFunc = this._dataHandler.RefreshFighterInstanceBtnNode.bind(this._dataHandler), this.RedDot.RuneInstanceBtnNode.callBackFunc = this._dataHandler.RefreshRuneInstanceBtnNode.bind(this._dataHandler), this.RedDot.AngelInstanceBtnNode.callBackFunc = this._dataHandler.RefreshAngelInstanceBtnNode.bind(this._dataHandler), this.RedDot.GemInstanceBtnNode.callBackFunc = this._dataHandler.RefreshGemInstanceBtnNode.bind(this._dataHandler), this.RedDot.ClimbTowerBtnNode.callBackFunc = this._dataHandler.RefreshClimbTowerBtnNode.bind(this._dataHandler), this.RedDot.ClimbTowerToggleNormalNode.callBackFunc = this._dataHandler.RefreshClimbTowerToggleNormalNode.bind(this._dataHandler), this.RedDot.ClimbTowerToggleHardNode.callBackFunc = this._dataHandler.RefreshClimbTowerToggleHardNode.bind(this._dataHandler), this.RedDot.ElementScriptureBtnNode.callBackFunc = this._dataHandler.RefreshElementScriptureBtnNode.bind(this._dataHandler), this.RedDot.ElementWarTokenPeriodsBtnNode.callBackFunc = this._dataHandler.RefreshElementScriptureBtnNode.bind(this._dataHandler), this.RedDot.SummonQueenSeniorOnceBtn.callBackFunc = this._dataHandler.CanSeniorFreeSummon.bind(this._dataHandler), this.RedDot.SummonQueenSeniorTenBtn.callBackFunc = this._dataHandler.CanSeniorTenSummon.bind(this._dataHandler), this.RedDot.SummonQueenJuniorOnceBtn.callBackFunc = this._dataHandler.CanJuniorFreeSummon.bind(this._dataHandler), this.RedDot.SummonQueenJuniorTenBtn.callBackFunc = this._dataHandler.CanJuniorTenSummon.bind(this._dataHandler), this.RedDot.SummonQueenScoreBtn.callBackFunc = this._dataHandler.CanScoreSummon.bind(this._dataHandler), this.RedDot.SummonPersonalOnceBtn.callBackFunc = this._dataHandler.CanPersonalFreeSummon.bind(this._dataHandler), this.RedDot.SummonPersonalTenBtn.callBackFunc = this._dataHandler.CanPersonalTenSummon.bind(this._dataHandler), this.RedDot.ProgressRewardsSenior.callBackFunc = this._dataHandler.CanProgressRewardsSenior.bind(this._dataHandler), this.RedDot.ProgressRewardsPersonality.callBackFunc = this._dataHandler.CanProgressRewardsPersonality.bind(this._dataHandler), this.RedDot.StrongPathNode.callBackFunc = this._dataHandler.RefreshStrongPathNode.bind(this._dataHandler), this.RedDot.StrongPathWishListNode.callBackFunc = this._dataHandler.RefreshStrongPathWishListNode.bind(this._dataHandler), this.RedDot.OracleSummonTenBtnNode.callBackFunc = this._dataHandler.RefreshProphetTenButtonNode.bind(this._dataHandler), this.RedDot.OracleSummonBtnNode.callBackFunc = this._dataHandler.RefreshProphetButtonNode.bind(this._dataHandler), this.RedDot.CrystalSummonBtnNode.callBackFunc = this._dataHandler.RefreshProphetCrystalBtnNode.bind(this._dataHandler), this.RedDot.ElementSummonShopNode.callBackFunc = this._dataHandler.RefreshElementSummonShopNode.bind(this._dataHandler), this.RedDot.ProgressRewardsDaily.callBackFunc = this._dataHandler.CanProgressRewardsDaily.bind(this._dataHandler), this.RedDot.FriendBtnNode.callBackFunc = this._dataHandler.RefreshFriendsBtnNode.bind(this._dataHandler), this.RedDot.FriendOneKeyBtnNode.callBackFunc = this._dataHandler.RefreshFriendOneKeyBtnNode.bind(this._dataHandler), this.RedDot.FriendManageBtnNode.callBackFunc = this._dataHandler.RefreshFriensManageBtnNode.bind(this._dataHandler), this.RedDot.FriendApplyToggleNode.callBackFunc = this._dataHandler.RefreshFriensManageBtnNode.bind(this._dataHandler), this.RedDot.TaskDailyBtnNode.callBackFunc = this._dataHandler.CheckDailyTaskCompleteState.bind(this._dataHandler), this.RedDot.TaskWeeklyBtnNode.callBackFunc = this._dataHandler.CheckWeeklyTaskCompleteState.bind(this._dataHandler), this.RedDot.TaskMainLineBtnNode.callBackFunc = this._dataHandler.CheckMainLineTaskCompleteState.bind(this._dataHandler), this.RedDot.TaskBtnEntrance.callBackFunc = this._dataHandler.RefreshTaskBtnNode.bind(this._dataHandler), this.RedDot.TaskDailyWarTokenBtnNode.callBackFunc = this._dataHandler.RefreshActiveCommandState.bind(this._dataHandler), this.RedDot.StrongholdWarTerritoryReawardBtnNode.callBackFunc = this._dataHandler.StrongholdWarTerritoryReawardBtnNode.bind(this._dataHandler), this.RedDot.ShowQuickBattlePanelBtnNode.callBackFunc = this._dataHandler.RefreshQuickBattleBtnNode.bind(this._dataHandler), this.RedDot.QuickBattleBtnNode.callBackFunc = this._dataHandler.RefreshQuickBattleBtnNode.bind(this._dataHandler), this.RedDot.IntelligenceBtnNode.callBackFunc = this._dataHandler.RefreshIntelligenceBtnNode.bind(this._dataHandler), this.RedDot.FreshStrategyToggleBtnNode.callBackFunc = this._dataHandler.RefreshFreshStrategyNode.bind(this._dataHandler), this.RedDot.StarResonanceToggleNode.callBackFunc = this._dataHandler.RefreshStarResonanceBtn.bind(this._dataHandler), this.RedDot.StarResonanceUpgradeBtnNode.callBackFunc = this._dataHandler.RefreshStarResonanceUpgradeBtn.bind(this._dataHandler), this.RedDot.StarHolyStatueToggleNode.callBackFunc = this._dataHandler.RefreshStarHolyStatueBtn.bind(this._dataHandler), this.RedDot.StarHolyStatueUpGradeBtnNode.callBackFunc = this._dataHandler.RefreshStarHolyStatueUpGradeBtn.bind(this._dataHandler), this.RedDot.StarHolyStatueGemBtnNode.callBackFunc = this._dataHandler.RefreshStarHolyStatueGemBtn.bind(this._dataHandler), this.RedDot.StarHolyStatueInlayBtnNode.callBackFunc = this._dataHandler.RefreshStarHolyStatueGemBtn.bind(this._dataHandler), this.RedDot.StarPowerToggleNode.callBackFunc = this._dataHandler.RefreshStarPowerBtn.bind(this._dataHandler), this.RedDot.GeneralStarPieceNode.callBackFunc = this._dataHandler.RefreshGeneralStarPieceBtn.bind(this._dataHandler), this.RedDot.SpecialStarPieceNode.callBackFunc = this._dataHandler.RefreshSpecialStarPieceBtn.bind(this._dataHandler), this.RedDot.ExclusiveWeaponNode.callBackFunc = this._dataHandler.RefreshExclusiveWeaponBtn.bind(this._dataHandler), this.RedDot.StarPieceBagBtnNode.callBackFunc = this._dataHandler.RefreshStarPieceBagBtnNode.bind(this._dataHandler), this.RedDot.StarPieceResolveBtnNode.callBackFunc = this._dataHandler.RefreshStarPieceBagBtnNode.bind(this._dataHandler), this.RedDot.TacticalNode.callBackFunc = this._dataHandler.RefreshTacticalNode.bind(this._dataHandler), this.RedDot.StarTacticalReceiveBtnNode.callBackFunc = this._dataHandler.RefreshStarTacticalReceiveBtnNode.bind(this._dataHandler), this.RedDot.StarTacticalLevelUpButtonNode.callBackFunc = this._dataHandler.RefreshStarTacticalLevelUpButtonNode.bind(this._dataHandler), this.RedDot.AngelToggleNode.callBackFunc = this._dataHandler.RefreshAngelToggleNode.bind(this._dataHandler), this.RedDot.StarGarrisonToggleNode.callBackFunc = this._dataHandler.RefreshStarGarrisonToggleNode.bind(this._dataHandler), this.RedDot.StarPuzzleToggleNode.callBackFunc = this._dataHandler.RefreshStarPuzzleToggleNode.bind(this._dataHandler), this.RedDot.StarArtifactToggleNode.callBackFunc = this._dataHandler.RefreshStarArtifactToggleNode.bind(this._dataHandler), this.RedDot.StarArtifactResonanceNode.callBackFunc = this._dataHandler.RefreshArtifactResonanceNode.bind(this._dataHandler), this.RedDot.SuperWeaponToggleNode.callBackFunc = this._dataHandler.RefreshSuperWeaponToggleNode.bind(this._dataHandler), this.RedDot.NewYearWeaponToggleNode.callBackFunc = this._dataHandler.RefreshNewYearWeaponToggleNode.bind(this._dataHandler), this.RedDot.RiskPortAncientBtnNode.callBackFunc = this._dataHandler.CheckHolyAreaRewardState.bind(this._dataHandler), this.RedDot.AncientHolyAreaWarTokenNode.callBackFunc = this._dataHandler.RefreshAncientWarTokenNode.bind(this._dataHandler), this.RedDot.RiskPortRelicBtnNode.callBackFunc = this._dataHandler.RefreshRelicTreasureModule.bind(this._dataHandler), this.RedDot.RelicTreasureHuntWarTokenNode.callBackFunc = this._dataHandler.RefreshRelicTreasureHuntWarTokenNode.bind(this._dataHandler), this.RedDot.RiskPortSecretBtnNode.callBackFunc = this._dataHandler.RefreshSecretAreaModule.bind(this._dataHandler), this.RedDot.SaintsWarForest.callBackFunc = this._dataHandler.RefreshSaintsWarForestState.bind(this._dataHandler), this.RedDot.SaintsWarDesert.callBackFunc = this._dataHandler.RefreshSaintsWarDesertState.bind(this._dataHandler), this.RedDot.SaintsWarTomb.callBackFunc = this._dataHandler.RefreshSaintsWarTombState.bind(this._dataHandler), this.RedDot.RiskPortAngelPve.callBackFunc = this._dataHandler.RefreshRiskPortAngelPve.bind(this._dataHandler), this.RedDot.WorldBossNode.callBackFunc = this._dataHandler.RefreshWorldBossNode.bind(this._dataHandler), this.RedDot.AbyssBtnNode.callBackFunc = this._dataHandler.RefreshEndlessAbyssModule.bind(this._dataHandler), this.RedDot.AbyssMultiModelBtnNode.callBackFunc = this._dataHandler.RefreshEndlessAbyssMultiModule.bind(this._dataHandler), this.RedDot.AbyssSingleModelBtnNode.callBackFunc = this._dataHandler.RefreshEndlessAbyssSingleModule.bind(this._dataHandler), this.RedDot.AllianceTalentBtnNode.callBackFunc = this._dataHandler.RefreshAllianceBtnNode.bind(this._dataHandler), this.RedDot.AllianceTestBtnNode.callBackFunc = this._dataHandler.RefreshAllianceTestBtnNode.bind(this._dataHandler), this.RedDot.AllianceApplicationBtnNode.callBackFunc = this._dataHandler.RefreshAllianceApplicationBtnNode.bind(this._dataHandler), this.RedDot.StrongholdWarTaskBtnNode.callBackFunc = this._dataHandler.RefreshStrongholdWarTaskBtnNode.bind(this._dataHandler), this.RedDot.StrongholdWarActivePointBtnNode.callBackFunc = this._dataHandler.StrongholdWarActivePoint.bind(this._dataHandler), this.RedDot.AllianceShopBtnNode.callBackFunc = this._dataHandler.RefreshAllianceShopBtn.bind(this._dataHandler), this.RedDot.AllianceRedPacketSend.callBackFunc = this._dataHandler.RefreshAllianceRedPacketSend.bind(this._dataHandler), this.RedDot.AllianceRedPacketNormal.callBackFunc = this._dataHandler.RefreshAllianceRedPacketNormal.bind(this._dataHandler), this.RedDot.AllianceRedPacketAdvance.callBackFunc = this._dataHandler.RefreshAllianceRedPacketAdvance.bind(this._dataHandler), this.RedDot.AllianceMazeBtnNode.callBackFunc = this._dataHandler.RefreshAlliancePanelMazeBtnNode.bind(this._dataHandler), this.RedDot.AllianceTraderBtnNode.callBackFunc = this._dataHandler.RefreshAlliancePanelTraderBtnNodeNode.bind(this._dataHandler), this.RedDot.AllianceBossBtnNode.callBackFunc = this._dataHandler.RefreshAllianceBossEntranceNode.bind(this._dataHandler), this.RedDot.AllianceBossApplyBtnNode.callBackFunc = this._dataHandler.RefreshAllianceBossApplyNode.bind(this._dataHandler), this.RedDot.AllianceAssaultOpertionNode.callBackFunc = this._dataHandler.RefreshAllianceAssaultOperationState.bind(this._dataHandler), this.RedDot.AllianceChalleneg1BtnNode.callBackFunc = this._dataHandler.RefreshAllianceChallenegBtnNode.bind(this._dataHandler), this.RedDot.AllianceChalleneg2BtnNode.callBackFunc = this._dataHandler.RefreshAllianceChallenegBtnNode.bind(this._dataHandler), this.RedDot.AllianceChalleneg3BtnNode.callBackFunc = this._dataHandler.RefreshAllianceChallenegBtnNode.bind(this._dataHandler), this.RedDot.AllianceBeatBtnNode.callBackFunc = this._dataHandler.RefreshAllianceChallenegBtnNode.bind(this._dataHandler), this.RedDot.AllianceSpyBtnNode.callBackFunc = this._dataHandler.RefreshAllianceSpyBtnNode.bind(this._dataHandler), this.RedDot.AllianceSetAtkTeamBtnNode.callBackFunc = this._dataHandler.RefreshAllianceSetAtkTeamBtnNode.bind(this._dataHandler), this.RedDot.AllianceSetLogisticsTeamBtnNode.callBackFunc = this._dataHandler.RefreshAllianceSetLogisticsTeamBtnNode.bind(this._dataHandler), this.RedDot.AllianceSetDefTeamBtnNode.callBackFunc = this._dataHandler.RefreshAllianceSetDefTeamBtnNode.bind(this._dataHandler), this.RedDot.AllianceAttackBtnNode.callBackFunc = this._dataHandler.RefreshAllianceAttackBtnNode.bind(this._dataHandler), this.RedDot.AllianceAtkFormationBtnNode.callBackFunc = this._dataHandler.RefreshAllianceAtkFormationBtnNode.bind(this._dataHandler), this.RedDot.AllianceDefFormationBtnNode.callBackFunc = this._dataHandler.RefreshAllianceDefFormationBtnNode.bind(this._dataHandler), this.RedDot.CoinPurchaseNode.callBackFunc = this._dataHandler.RefreshCoinPurchaseModule.bind(this._dataHandler), this.RedDot.LookVIPNode.callBackFunc = this._dataHandler.RefreshVIPNode.bind(this._dataHandler), this.RedDot.MallVipNode.callBackFunc = this._dataHandler.RefreshVIPNode.bind(this._dataHandler), this.RedDot.OnlineRewardNode.callBackFunc = this._dataHandler.RefreshOnlineRewardState.bind(this._dataHandler), this.RedDot.HangUPFreeGiftPackBuyBtn.callBackFunc = this._dataHandler.RefreshHangUPFreeGiftPackState.bind(this._dataHandler), this.RedDot.HolyFurnaceNode.callBackFunc = this._dataHandler.RefreshHolyFurnaceState.bind(this._dataHandler), this.RedDot.HolyFurnaceButton1Node.callBackFunc = this._dataHandler.RefreshHolyFurnaceButton1State.bind(this._dataHandler), this.RedDot.HolyFurnaceButton5Node.callBackFunc = this._dataHandler.RefreshHolyFurnaceButton5State.bind(this._dataHandler), this.RedDot.HolyGiftNode.callBackFunc = this._dataHandler.RefreshHolyGiftState.bind(this._dataHandler), this.RedDot.GemFurnaceNode.callBackFunc = this._dataHandler.RefreshGemFurnaceState.bind(this._dataHandler), this.RedDot.HolyEquipmentGalleryToggleNode.callBackFunc = this._dataHandler.RefreshHolyEquipGalleryToggleNode.bind(this._dataHandler), this.RedDot.BagLuckyCharmNode.callBackFunc = this._dataHandler.RefreshBagLuckyCharmState.bind(this._dataHandler), this.RedDot.BagRuneFunctionBtnNode.callBackFunc = this._dataHandler.RefreshBagLuckyCharmState.bind(this._dataHandler), this.RedDot.FirstChargeNode.callBackFunc = this._dataHandler.RefreshFirstChargeState.bind(this._dataHandler), this.RedDot.IdleFirstChargeNode.callBackFunc = this._dataHandler.RefreshFirstChargeState.bind(this._dataHandler), this.RedDot.IdleInfiniteSummonNode.callBackFunc = this._dataHandler.RefreshInfiniteSummonNode.bind(this._dataHandler), this.RedDot.InfiniteSummonBtmNode1.callBackFunc = this._dataHandler.RefreshInfiniteSummonNode.bind(this._dataHandler), this.RedDot.InfiniteSummonBtmNode2.callBackFunc = this._dataHandler.RefreshInfiniteSummonNode.bind(this._dataHandler), this.RedDot.LetterDeveloperNode.callBackFunc = this._dataHandler.RefreshIdleLetterDeveloperNode.bind(this._dataHandler), this.RedDot.IdleLetterDeveloperNode.callBackFunc = this._dataHandler.RefreshIdleLetterDeveloperNode.bind(this._dataHandler), this.RedDot.LetterDeveloperRewardNode1.callBackFunc = this._dataHandler.RefreshLetterDeveloperNode1.bind(this._dataHandler), this.RedDot.LetterDeveloperRewardNode2.callBackFunc = this._dataHandler.RefreshLetterDeveloperNode2.bind(this._dataHandler), this.RedDot.LetterDeveloperRewardNode3.callBackFunc = this._dataHandler.RefreshLetterDeveloperNode3.bind(this._dataHandler), this.RedDot.DaysPayNode.callBackFunc = this._dataHandler.RefreshDaysPayNode.bind(this._dataHandler), this.RedDot.SummonActivityListNode.callBackFunc = this._dataHandler.RefreshSummonActivityListNode.bind(this._dataHandler), this.RedDot.WarTokenListNode.callBackFunc = this._dataHandler.RefreshWarTokenListNode.bind(this._dataHandler), this.RedDot.GiftPackListNode.callBackFunc = this._dataHandler.RefreshGiftPackListNode.bind(this._dataHandler), this.RedDot.LevelGiftNode.callBackFunc = this._dataHandler.RefreshLevelGiftState.bind(this._dataHandler), this.RedDot.DailySignNode.callBackFunc = this._dataHandler.RefreshDailySignState.bind(this._dataHandler), this.RedDot.HangUpDropNodeCurrExchange.callBackFunc = this._dataHandler.RefreshHangUpDropShopRedDot.bind(this._dataHandler), this.RedDot.HangUpDropNodeExpireExchange.callBackFunc = this._dataHandler.RefreshHangUpDropExchangeState.bind(this._dataHandler), this.RedDot.AttentionLineNode.callBackFunc = this._dataHandler.RefreshAttentionLineNodeRedDot.bind(this._dataHandler), this.RedDot.AttentionTwitterNode.callBackFunc = this._dataHandler.RefreshAttentionTwitterNodeRedDot.bind(this._dataHandler), this.RedDot.BindSNSBtnNode.callBackFunc = this._dataHandler.RefreshBindSNSNodeRedDotRedDot.bind(this._dataHandler), this.RedDot.HeadIconToggleNode.callBackFunc = this._dataHandler.RefreshHeadIconRedDot.bind(this._dataHandler), this.RedDot.HeadFrameToggleNode.callBackFunc = this._dataHandler.RefreshHeadFrameRedDot.bind(this._dataHandler), this.RedDot.HeadTitleToggleNode.callBackFunc = this._dataHandler.RefreshHeadTitleRedDot.bind(this._dataHandler), this.RedDot.ChatWindowToggleNode.callBackFunc = this._dataHandler.RefreshChatWindowToggleNode.bind(this._dataHandler), this.RedDot.SetMagicCircleToggleNode.callBackFunc = this._dataHandler.RefreshSetMagicCircleToggleNodeNode.bind(this._dataHandler), this.RedDot.SetPetToggleNode.callBackFunc = this._dataHandler.RefreshSetPetToggleNodeNode.bind(this._dataHandler), this.RedDot.CustomizeMainSceneTagNode0.callBackFunc = this._dataHandler.RefreshCustomizeMainScenePersonalityNode.bind(this._dataHandler), this.RedDot.CustomizeMainSceneTagNode1.callBackFunc = this._dataHandler.RefreshCustomizeMainSceneHeroNode.bind(this._dataHandler), this.RedDot.CustomizeMainSceneTagNode2.callBackFunc = this._dataHandler.RefreshCustomizeMainSceneSceneNode.bind(this._dataHandler), this.RedDot.CustomizeMainSceneTagNode3.callBackFunc = this._dataHandler.RefreshCustomizeMainSceneAngelNode.bind(this._dataHandler), this.RedDot.CustomizeMainSceneTagNode4.callBackFunc = this._dataHandler.RefreshCustomizeMainSceneNewPersonalityNode.bind(this._dataHandler), this.RedDot.MallDailyChooseNode.callBackFunc = this._dataHandler.RefreshDailyChoose.bind(this._dataHandler), this.RedDot.DailyChooseToggleNode.callBackFunc = this._dataHandler.RefreshDailyChooseState.bind(this._dataHandler), this.RedDot.DailyRecommendToggleNode.callBackFunc = this._dataHandler.RefreshDailyRecommendState.bind(this._dataHandler), this.RedDot.MallSevenDayNode.callBackFunc = this._dataHandler.RefreshSevenDayState.bind(this._dataHandler), this.RedDot.MallDailyChargeNode.callBackFunc = this._dataHandler.RefreshDailyChargeState.bind(this._dataHandler), this.RedDot.MallDailyChargeButtonNode.callBackFunc = this._dataHandler.RefreshDailyChargeButtonState.bind(this._dataHandler), this.RedDot.MallLuckyStarNodeChest.callBackFunc = this._dataHandler.RefreshLuckyStarState.bind(this._dataHandler), this.RedDot.MallActiveCommandNode.callBackFunc = this._dataHandler.RefreshActiveCommandState.bind(this._dataHandler), this.RedDot.MallSuperFundNode.callBackFunc = this._dataHandler.RefreshSuperFundState.bind(this._dataHandler), this.RedDot.MallRespectFundNode.callBackFunc = this._dataHandler.RefreshRespectFundState.bind(this._dataHandler), this.RedDot.MallChaosFundNode.callBackFunc = this._dataHandler.RefreshChaosFundState.bind(this._dataHandler), this.RedDot.MallCheapFundNode.callBackFunc = this._dataHandler.RefreshCheapFundState.bind(this._dataHandler), this.RedDot.MallGrowthHero.callBackFunc = this._dataHandler.RefreshGrowthFundState.bind(this._dataHandler), this.RedDot.MallGrowthWishCall.callBackFunc = this._dataHandler.RefreshGrowthWishCall.bind(this._dataHandler), this.RedDot.MallGrowthSummonChaos.callBackFunc = this._dataHandler.RefreshGrowthSummonChaos.bind(this._dataHandler), this.RedDot.MallGrowthPersonailty.callBackFunc = this._dataHandler.RefreshGrowthPersonailty.bind(this._dataHandler), this.RedDot.MallGrowthSummonPerson.callBackFunc = this._dataHandler.RefreshGrowthSummonPerson.bind(this._dataHandler), this.RedDot.MallGrowthPersonalityLR.callBackFunc = this._dataHandler.RefreshGrowthPersonailtyLR.bind(this._dataHandler), this.RedDot.MallGrowthWishCallLR.callBackFunc = this._dataHandler.RefreshGrowthWishCallLR.bind(this._dataHandler), this.RedDot.MallHeroGiftNode.callBackFunc = this._dataHandler.RefreshHeroGiftState.bind(this._dataHandler), this.RedDot.MallGrowUpGiftNode.callBackFunc = this._dataHandler.RefreshGrowGiftState.bind(this._dataHandler), this.RedDot.MallLegendGift1Node.callBackFunc = this._dataHandler.RefreshLegendGiftState.bind(this._dataHandler), this.RedDot.MallLegendGift2Node.callBackFunc = this._dataHandler.RefreshLegendGift1State.bind(this._dataHandler), this.RedDot.MallLegendGift3Node.callBackFunc = this._dataHandler.RefreshLegendGift2State.bind(this._dataHandler), this.RedDot.MallLegendGift4Node.callBackFunc = this._dataHandler.RefreshLegendGift3State.bind(this._dataHandler), this.RedDot.MallLegendGift5Node.callBackFunc = this._dataHandler.RefreshLegendGift4State.bind(this._dataHandler), this.RedDot.MallFavorGiftNode.callBackFunc = this._dataHandler.RefreshFavorGiftState.bind(this._dataHandler), this.RedDot.MallSkyChooseGiftNode.callBackFunc = this._dataHandler.RefreshMallChosenGiftPackNode.bind(this._dataHandler), this.RedDot.PermanentPrivilegeHeroNode.callBackFunc = this._dataHandler.RefreshPermanentPrivilegeState.bind(this._dataHandler), this.RedDot.PermanentPrivilegePersonalityNode.callBackFunc = this._dataHandler.RefreshPermanentPrivilegeState.bind(this._dataHandler), this.RedDot.PermanentPrivilegeLRHeroNode.callBackFunc = this._dataHandler.RefreshPermanentPrivilegeState.bind(this._dataHandler), this.RedDot.PermanentPrivilegeLRPersonalityNode.callBackFunc = this._dataHandler.RefreshPermanentPrivilegeState.bind(this._dataHandler), this.RedDot.RecommendFormationToggleBtnNode.callBackFunc = this._dataHandler.RefreshWantStrongBtnNode.bind(this._dataHandler), this.RedDot.SystemFormationToggleBtnNode.callBackFunc = this._dataHandler.RefreshWantStrongBtnNode.bind(this._dataHandler), this.RedDot.FeedBackNode.callBackFunc = this._dataHandler.RefreshFeedbackGiftState.bind(this._dataHandler), this.RedDot.IdleLimitTimePurchaseNode.callBackFunc = this._dataHandler.RefreshLimitTimePurchaseState.bind(this._dataHandler), this.RedDot.MainUIWishCallNode.callBackFunc = this._dataHandler.RefreshWishCallNode.bind(this._dataHandler), this.RedDot.LevelPassRewardNode.callBackFunc = this._dataHandler.RefreshLevelPassRewardNode.bind(this._dataHandler), this.RedDot.TimeLimitActivityFrame.callBackFunc = this._dataHandler.RefreshTimeLimitedActivityFrameState.bind(this._dataHandler), this.RedDot.TopicActivityNode.callBackFunc = this._dataHandler.RefreshTopicActivityState.bind(this._dataHandler), this.RedDot.OpenServerActivityNode.callBackFunc = this._dataHandler.RefreshOpenServerActivityState.bind(this._dataHandler), this.RedDot.TimeLimitActivityNode.callBackFunc = this._dataHandler.RefreshTimeLimitedActivityState.bind(this._dataHandler), this.RedDot.ValentineActivityNode.callBackFunc = this._dataHandler.RefreshValentineActivityState.bind(this._dataHandler), this.RedDot.HeroListRecommondBtn.callBackFunc = this._dataHandler.RefreshHeroListRecommond.bind(this._dataHandler), this.RedDot.ArenaNode.callBackFunc = this._dataHandler.RefreshArenaNode.bind(this._dataHandler), this.RedDot.SeniorArenaEditTeamNode.callBackFunc = this._dataHandler.RefreshSeniorArenaEditTeamNode.bind(this._dataHandler), this.RedDot.SeniorArenaFreeChallenge.callBackFunc = this._dataHandler.RefreshSeniorArenaFreeChallengeNode.bind(this._dataHandler), this.RedDot.SeniorArenaResourceCollect.callBackFunc = this._dataHandler.RefreshSeniorArenaResourceCollectNode.bind(this._dataHandler), this.RedDot.CrossServerLadderNode.callBackFunc = this._dataHandler.RefreshCrossLadderState.bind(this._dataHandler), this.RedDot.CrossServePalaceNode.callBackFunc = this._dataHandler.RefreshCrossServerPalaceState.bind(this._dataHandler), this.RedDot.MoonTakenTempleNode.callBackFunc = this._dataHandler.RefreshMoonTakenTempleState.bind(this._dataHandler), this.RedDot.CrossServerRankNode.callBackFunc = this._dataHandler.RefreshCrossServerRankNodeState.bind(this._dataHandler), this.RedDot.CrossServerRankDayilyNode.callBackFunc = this._dataHandler.RefreshCrossServerRankDailyNodeState.bind(this._dataHandler), this.RedDot.CrossServerRankWeekilyNode.callBackFunc = this._dataHandler.RefreshCrossServerRankWeeklyNodeState.bind(this._dataHandler), this.RedDot.BossWarNode.callBackFunc = this._dataHandler.RefreshBossWarNodeState.bind(this._dataHandler), this.RedDot.ChaosSummonDrawOnceNode.callBackFunc = this._dataHandler.ChaosSummonDrawOnceNode.bind(this._dataHandler), this.RedDot.ChaosSummonDrawTenNode.callBackFunc = this._dataHandler.ChaosSummonDrawTenNode.bind(this._dataHandler), this.RedDot.ChaosSummonGetWayNode.callBackFunc = this._dataHandler.ChaosSummonTicketAvailableNode.bind(this._dataHandler), this.RedDot.ChaosSummonFreeGiftPanelNode.callBackFunc = this._dataHandler.ChaosSummonFreeGiftNode.bind(this._dataHandler), this.RedDot.ContinuousFightMatchBtn.callBackFunc = this._dataHandler.RefreshContinuousFightMatchBtnNode.bind(this._dataHandler), this.RedDot.ContinuousFightDailyToggle.callBackFunc = this._dataHandler.RefreshContinuousFightDailyToggleNode.bind(this._dataHandler), this.RedDot.ContinuousFightWeeklyToggle.callBackFunc = this._dataHandler.RefreshContinuousFightWeeklyToggleNode.bind(this._dataHandler), this.RedDot.ContinuousFightFormationBtn.callBackFunc = this._dataHandler.RefreshContinuousFightFormationBtn.bind(this._dataHandler), this.RedDot.TaskGuideEntranceNode.callBackFunc = this._dataHandler.RefreshTaskGuideNode.bind(this._dataHandler), this.RedDot.TaskDerailReceiveNode.callBackFunc = this._dataHandler.RefreshTaskGuideNode.bind(this._dataHandler), this.RedDot.ActivityPreviewNode.callBackFunc = this._dataHandler.RefreshActivityPreview.bind(this._dataHandler), this.RedDot.AssistantNode.callBackFunc = this._dataHandler.RefreshAssistantBtnNode.bind(this._dataHandler), this.RedDot.ContinuousChargeNode.callBackFunc = this._dataHandler.RefreshContinuousChargeNode.bind(this._dataHandler), this.RedDot.ContinuousChargeDailyGiftNode.callBackFunc = this._dataHandler.RefreshContinuousChargeDailyGiftNode.bind(this._dataHandler), this.RedDot.CrossServerChampionGuessNode.callBackFunc = this._dataHandler.RefreshCrossServerChampionShipGuessNode.bind(this._dataHandler), this.RedDot.AllZoneChampionGuessNode.callBackFunc = this._dataHandler.RefreshAllZoneChampionShipGuessNode.bind(this._dataHandler), this.RedDot.AllZoneChampionPredictNode.callBackFunc = this._dataHandler.RefreshAllZoneChampionShipPredictNode.bind(this._dataHandler), this.RedDot.RankMatchArenaFormationNode.callBackFunc = this._dataHandler.RefreshRankMatchArenaFormationRedDot.bind(this._dataHandler), this.RedDot.CollectionPavilionEntryNode.callBackFunc = this._dataHandler.RefreshCollectionPavilionEntryNode.bind(this._dataHandler), this.RedDot.StarPieceResonanceEntryNode.callBackFunc = this._dataHandler.RefreshStarPieceResonanceEntryNode.bind(this._dataHandler), this.RedDot.UserTitlePanel.callBackFunc = this._dataHandler.RefreshUserTitlePanel.bind(this._dataHandler), this.RedDot.UserTitlePromotionBtn.callBackFunc = this._dataHandler.RefreshUserTitlePromotionBtn.bind(this._dataHandler), this.RedDot.StrategyPageFormation.callBackFunc = this._dataHandler.RefreshStrategyPageFormation.bind(this._dataHandler), this.RedDot.StrategyPageElement.callBackFunc = this._dataHandler.RefreshStrategyPageElement.bind(this._dataHandler), this.RedDot.StrategyPageOccupation.callBackFunc = this._dataHandler.RefreshStrategyPageOccupation.bind(this._dataHandler), this.RedDot.StrategyPageUniversal.callBackFunc = this._dataHandler.RefreshStrategyPageUniversal.bind(this._dataHandler), this.RedDot.GemGalleryLevelUp.callBackFunc = this._dataHandler.RefreshGemGalleryLevelUp.bind(this._dataHandler), this.RedDot.GemGallerySlot1.callBackFunc = this._dataHandler.RefreshGemGallerySlotType1.bind(this._dataHandler), this.RedDot.GemGallerySlot2.callBackFunc = this._dataHandler.RefreshGemGallerySlotType2.bind(this._dataHandler), this.RedDot.GemGallerySlot3.callBackFunc = this._dataHandler.RefreshGemGallerySlotType3.bind(this._dataHandler), this.RedDot.HolyRelicEntry.callBackFunc = this._dataHandler.RefreshHolyRelicEntry.bind(this._dataHandler), this.RedDot.HolyRelicFight.callBackFunc = this._dataHandler.RefreshHolyRelicFight.bind(this._dataHandler), this.RedDot.HolyRelicWarToken.callBackFunc = this._dataHandler.RefreshHolyRelicWarToken.bind(this._dataHandler), this.RedDot.SoulRecordEntry.callBackFunc = this._dataHandler.RefreshSoulRecordEntry.bind(this._dataHandler), this.RedDot.DukeBtnNode.callBackFunc = this._dataHandler.RefreshDukeBtnNode.bind(this._dataHandler), this.RedDot.DukeScrollEntry.callBackFunc = this._dataHandler.RefreshDukeScrollEntry.bind(this._dataHandler), this.RedDot.ExclusiveGalleryCollectButtonNode.callBackFunc = this._dataHandler.RefreshExclusiveGalleryPointCollectNode.bind(this._dataHandler), this.RedDot.ExclusiveGalleryAnyWeaponOperationalNode.callBackFunc = this._dataHandler.RefreshExclusiveGalleryAnyWeaponOperational.bind(this._dataHandler), this.RedDot.ExclusiveGalleryUpgradeTabNode.callBackFunc = this._dataHandler.RefreshExclusiveGalleryPointUpgradeNode.bind(this._dataHandler), this.RedDot.ParanormalPuzzleTask.callBackFunc = this._dataHandler.RefreshParanormalPuzzleTask.bind(this._dataHandler), this.RedDot.PetGalleryUpLevel.callBackFunc = this._dataHandler.RefreshPetGalleryUpLevel.bind(this._dataHandler), this.RedDot.LuckyCharmGalleryUpLevel.callBackFunc = this._dataHandler.RefreshLuckyCharmGalleryUpLevel.bind(this._dataHandler), this.RedDot.PowerCoreGalleryUpLevel.callBackFunc = this._dataHandler.RefreshPowerCoreGalleryUpLevel.bind(this._dataHandler), this.RedDot.HeroTempleChaosToggleNode.callBackFunc = this._dataHandler.RefreshHeroTempleChaosToggle.bind(this._dataHandler), this.RedDot.HeroTempleElementToggleNode.callBackFunc = this._dataHandler.RefreshHeroTempleElementToggle.bind(this._dataHandler), this.RedDot.HeroTempleLRToggleNode.callBackFunc = this._dataHandler.RefreshHeroTempleLRToggle.bind(this._dataHandler), this.RedDot.OldPlayerRecallToggleDailyReward.callBackFunc = this._dataHandler.RefreshOldPlayerRecallToggleDailyRewardNode.bind(this._dataHandler), this.RedDot.OldPlayerRecallToggleTask.callBackFunc = this._dataHandler.RefreshOldPlayerRecallToggleTaskNode.bind(this._dataHandler), this.RedDot.OldPlayerRecallToggleFreeReward.callBackFunc = this._dataHandler.RefreshOldPlayerRecallToggleFreeRewardNode.bind(this._dataHandler), this.RedDot.OldPlayerRecallToggleGift.callBackFunc = this._dataHandler.RefreshOldPlayerRecallToggleGiftNode.bind(this._dataHandler), this.RedDot.MallSkinGiftBtnNode.callBackFunc = this._dataHandler.RefreshOldMallSkinGiftBtnNode.bind(this._dataHandler), this.RedDot.AngelHandbookEntryNode.callBackFunc = this._dataHandler.RefreshAngelHandbookEntry.bind(this._dataHandler), this.RedDot.EmojiButtonNode.callBackFunc = this._dataHandler.RefreshEmojiButtonNode.bind(this._dataHandler), this.RedDot.AngelPvpDailyToggle.callBackFunc = this._dataHandler.RefreshAngelPvpDailyToggle.bind(this._dataHandler), this.RedDot.AngelPvpWeeklyToggle.callBackFunc = this._dataHandler.RefreshAngelPvpWeeklyToggle.bind(this._dataHandler), this.RedDot.AngelPvpMatchBtn.callBackFunc = this._dataHandler.RefreshAngelPvpMatchBtn.bind(this._dataHandler), this.RedDot.ChampionShipNode.callBackFunc = this._dataHandler.RefreshGlobalChampionShipNode.bind(this._dataHandler), this.RedDot.BreakOutMatchNode.callBackFunc = this._dataHandler.RefreshBreakouNode.bind(this._dataHandler), this.RedDot.DailyBuffNode.callBackFunc = this._dataHandler.RefreshDailyBuffNode.bind(this._dataHandler), this.RedDot.SNSRewardNode.callBackFunc = this._dataHandler.RefreshSNSRewardNode.bind(this._dataHandler), this.RedDot.SNSRewardEntry.callBackFunc = this._dataHandler.RefreshSNSRewardEntryNode.bind(this._dataHandler), this.RedDot.DailyPayProgreeRewardNode.callBackFunc = this._dataHandler.RefreshDailyPayProgreeRewardNode.bind(this._dataHandler), this.RedDot.PetToggleNode.callBackFunc = this._dataHandler.RefreshPetToggleNode.bind(this._dataHandler), this.RedDot.PetTabHandBook.callBackFunc = this._dataHandler.RefreshPetTabHandBook.bind(this._dataHandler), this.RedDot.PetTabDecomposeBtn.callBackFunc = this._dataHandler.RefreshPetDecomposeState.bind(this._dataHandler), this.RedDot.HeroFavorNode.callBackFunc = this._dataHandler.RefreshAllFavorQuickSendRedDot.bind(this._dataHandler), this.RedDot.MagicCircleToggleNode.callBackFunc = this._dataHandler.RefreshMagicCircleToggleNode.bind(this._dataHandler), this.RedDot.MagicCircleHandBookNode.callBackFunc = this._dataHandler.MagicCircleHandBook.bind(this._dataHandler), this.RedDot.MagicCircleDecomposeBtn.callBackFunc = this._dataHandler.RefreshMagicCircleDecomposeState.bind(this._dataHandler), this.RedDot.AllianceInsigniaNode.callBackFunc = this._dataHandler.RefrsehAllianceInsighiaNode.bind(this._dataHandler)
                }, t.prototype.RegisteInstanceCallback = function() {
                    this.InstanceRedDot.RankRewardsNode.callBackFunc = this._dataHandler.RefreshRankRewardsNode.bind(this._dataHandler), this.InstanceRedDot.HeroInfoAttrToggle.callBackFunc = this._dataHandler.IsHeroCanUpLevel.bind(this._dataHandler), this.InstanceRedDot.HeroInfoEquipToggle.callBackFunc = this._dataHandler.IsHeroCanDevelopEquip.bind(this._dataHandler), this.InstanceRedDot.HeroInfoStarToggle.callBackFunc = this._dataHandler.IsHeroCanUpStar.bind(this._dataHandler), this.InstanceRedDot.HeroInfoPersonalityToggle.callBackFunc = this._dataHandler.IsHeroCanUpPersonality.bind(this._dataHandler), this.InstanceRedDot.HolyEquipStrengthToggle.callBackFunc = this._dataHandler.CanHolyEquipStrength.bind(this._dataHandler), this.InstanceRedDot.HolyEquipBlessingToggle.callBackFunc = this._dataHandler.IsHolyEquipCanBlessing.bind(this._dataHandler), this.InstanceRedDot.HolyEquipBlessing1Button.callBackFunc = this._dataHandler.CanHolyEquipBlessing1.bind(this._dataHandler), this.InstanceRedDot.HolyEquipBlessing2Button.callBackFunc = this._dataHandler.CanHolyEquipBlessing2.bind(this._dataHandler), this.InstanceRedDot.HolyEquipSoulToggle.callBackFunc = this._dataHandler.CanHolyEquipSoul.bind(this._dataHandler), this.InstanceRedDot.HolyEquipSoulButton.callBackFunc = this._dataHandler.CanHolyEquipSoul.bind(this._dataHandler), this.InstanceRedDot.HolyEquipAdvancedToggle.callBackFunc = this._dataHandler.IsHolyEquipCanAdvanced.bind(this._dataHandler), this.InstanceRedDot.HolyEquipAdvancedButton.callBackFunc = this._dataHandler.IsHolyEquipCanAdvanced.bind(this._dataHandler), this.InstanceRedDot.HeroInfoGemToggle.callBackFunc = this._dataHandler.IsHeroCanPutGem.bind(this._dataHandler), this.InstanceRedDot.HeroSkinButton.callBackFunc = this._dataHandler.HsaNewSkin.bind(this._dataHandler), this.InstanceRedDot.HeroDescButton.callBackFunc = this._dataHandler.OnHeroDescButtonNode.bind(this._dataHandler), this.InstanceRedDot.HeroLuckycharmSkill1.callBackFunc = this._dataHandler.OnHeroLuckycharmSkill1Node.bind(this._dataHandler), this.InstanceRedDot.HeroLuckycharmSkill2.callBackFunc = this._dataHandler.OnHeroLuckycharmSkill2Node.bind(this._dataHandler), this.InstanceRedDot.ComperhensionButton.callBackFunc = this._dataHandler.OnComperhensionButtonNode.bind(this._dataHandler), this.InstanceRedDot.HeroLuckycharmSkillLevelUp.callBackFunc = this._dataHandler.OnHeroLuckycharmSkillLevelUpNode.bind(this._dataHandler), this.InstanceRedDot.HeroFetterSkillUpNode.callBackFunc = this._dataHandler.RefreshHeroFetterSkillUpNode.bind(this._dataHandler), this.InstanceRedDot.ChaosTempleButton.callBackFunc = this._dataHandler.RefreshChaosTempleButton.bind(this._dataHandler), this.InstanceRedDot.HeroJobChangeButton.callBackFunc = this._dataHandler.RefreshHeroJobChangeNode.bind(this._dataHandler), this.InstanceRedDot.ChaosElementButton.callBackFunc = this._dataHandler.RefreshChaosElementButton.bind(this._dataHandler), this.InstanceRedDot.PowerCoreUpgadeBtnNode.callBackFunc = this._dataHandler.RefreshPowerCoreUpgradeBtnNode.bind(this._dataHandler), this.InstanceRedDot.PowerCoreUpStarBtnNode.callBackFunc = this._dataHandler.RefreshPowerCoreBottomUpStarNode.bind(this._dataHandler), this.InstanceRedDot.PowerCoreBottomUpLevelNode.callBackFunc = this._dataHandler.RefreshPowerCoreBottomUpLevelNode.bind(this._dataHandler), this.InstanceRedDot.PowerCoreBottomUpStarNode.callBackFunc = this._dataHandler.RefreshPowerCoreBottomUpStarNode.bind(this._dataHandler), this.InstanceRedDot.PowerCoreDevelopNode.callBackFunc = this._dataHandler.RefreshPowerCoreDevelopNode.bind(this._dataHandler), this.InstanceRedDot.PowerCoreReplaceNode.callBackFunc = this._dataHandler.RefreshPowerCoreReplaceNode.bind(this._dataHandler), this.InstanceRedDot.PowerCoreCanEquipNode.callBackFunc = this._dataHandler.RefreshPowerCoreCanEquipNode.bind(this._dataHandler), this.InstanceRedDot.SevenDayWarTokenNode.callBackFunc = this._dataHandler.RefreshSevenDayWarTokenNode.bind(this._dataHandler), this.InstanceRedDot.LimitTimeTaskNode.callBackFunc = this._dataHandler.RefreshLimitTimeTaskState.bind(this._dataHandler), this.InstanceRedDot.LimitTimePurchaseNode.callBackFunc = this._dataHandler.RefreshLimitTimePurchaseState.bind(this._dataHandler), this.InstanceRedDot.OptionalUpgradeStarNode.callBackFunc = this._dataHandler.RefreshOptionalUpgradeStarState.bind(this._dataHandler), this.InstanceRedDot.CarnivalNode.callBackFunc = this._dataHandler.RefreshCarnivalState.bind(this._dataHandler), this.InstanceRedDot.HeroTestNode.callBackFunc = this._dataHandler.RefreshHeroTestState.bind(this._dataHandler), this.InstanceRedDot.HeroTestTaskNode.callBackFunc = this._dataHandler.RefreshHeroTestTaskState.bind(this._dataHandler), this.InstanceRedDot.FatePrayNode.callBackFunc = this._dataHandler.RefreshFatePrayState.bind(this._dataHandler), this.InstanceRedDot.UpgradeStarNode.callBackFunc = this._dataHandler.RefreshUpgradeStarState.bind(this._dataHandler), this.InstanceRedDot.WishCallNode.callBackFunc = this._dataHandler.RefreshWishCallNode.bind(this._dataHandler), this.InstanceRedDot.WishCallNewNode.callBackFunc = this._dataHandler.RefreshWishCallNewNode.bind(this._dataHandler), this.InstanceRedDot.MazeExploreNode.callBackFunc = this._dataHandler.RefreshMazeExplore.bind(this._dataHandler), this.InstanceRedDot.MazeExploreTimesBtnNode.callBackFunc = this._dataHandler.RefreshMazeExploreTimesBtnNode.bind(this._dataHandler), this.InstanceRedDot.MazeExploreFindGiftBtnNode.callBackFunc = this._dataHandler.RefreshMazeExploreFindGiftBtnNode.bind(this._dataHandler), this.InstanceRedDot.MazeExploreGetMoreBtnNode.callBackFunc = this._dataHandler.RefreshMazeExploreGetMoreBtnNode.bind(this._dataHandler), this.InstanceRedDot.HappyTurnNode.callBackFunc = this._dataHandler.RefreshHappyTurnStartNode.bind(this._dataHandler), this.InstanceRedDot.HappyTurnStartBtnNode.callBackFunc = this._dataHandler.RefreshHappyTurnStartNode.bind(this._dataHandler), this.InstanceRedDot.AllUserImpactRankNode.callBackFunc = this._dataHandler.RefreshAllUserImpactRankGiftNode.bind(this._dataHandler), this.InstanceRedDot.AllUserImpactRankGiftNode.callBackFunc = this._dataHandler.RefreshAllUserImpactRankGiftNode.bind(this._dataHandler), this.InstanceRedDot.ElementTrialNode.callBackFunc = this._dataHandler.RefreshElementTrialNode.bind(this._dataHandler), this.InstanceRedDot.PersonalityCallNode.callBackFunc = this._dataHandler.RefreshPersonalityCallNode.bind(this._dataHandler), this.InstanceRedDot.RebateSummonNode.callBackFunc = this._dataHandler.RefreshRebateSummonNode.bind(this._dataHandler), this.InstanceRedDot.HeroDungeonNode.callBackFunc = this._dataHandler.RefreshHeroDungeonNode.bind(this._dataHandler), this.InstanceRedDot.ExchangeShopNode.callBackFunc = this._dataHandler.RefreshExchangeShopNode.bind(this._dataHandler), this.InstanceRedDot.TaskTalentNode.callBackFunc = this._dataHandler.RefreshTaskTalentNode.bind(this._dataHandler), this.InstanceRedDot.RechargeGuideNode.callBackFunc = this._dataHandler.RefreshRechargeGuideNode.bind(this._dataHandler), this.InstanceRedDot.InfiniteGiftPackNode.callBackFunc = this._dataHandler.RefreshInfiniteGiftPackNode.bind(this._dataHandler), this.InstanceRedDot.CustomGiftPackNode.callBackFunc = this._dataHandler.RefreshCustomGiftPackNode.bind(this._dataHandler), this.InstanceRedDot.GiftDrawNode.callBackFunc = this._dataHandler.RefreshGiftDrawNode.bind(this._dataHandler), this.InstanceRedDot.FateStarBoxNode.callBackFunc = this._dataHandler.RefreshFateStarBoxNode.bind(this._dataHandler), this.InstanceRedDot.IngenuityNode.callBackFunc = this._dataHandler.RefreshIngenuityNode.bind(this._dataHandler), this.InstanceRedDot.ChargeDrawNode.callBackFunc = this._dataHandler.RefreshChargeDrawNode.bind(this._dataHandler), this.InstanceRedDot.DiamondDrawNode.callBackFunc = this._dataHandler.RefreshDiamondDrawNode.bind(this._dataHandler), this.InstanceRedDot.WishTreeNode.callBackFunc = this._dataHandler.RefreshWishTreeNode.bind(this._dataHandler), this.InstanceRedDot.WishTreePersonalNode.callBackFunc = this._dataHandler.RefreshWishTreePersonalNode.bind(this._dataHandler), this.InstanceRedDot.WishTreeTaskNode.callBackFunc = this._dataHandler.RefreshWishTreeTaskNode.bind(this._dataHandler), this.InstanceRedDot.TaskCommand.callBackFunc = this._dataHandler.RefreshTaskCommandState.bind(this._dataHandler), this.InstanceRedDot.BossWarZoneNode.callBackFunc = this._dataHandler.RefreshBossWarPartNodeState.bind(this._dataHandler), this.InstanceRedDot.BossWarAllianceNode.callBackFunc = this._dataHandler.RefreshBossWarPartNodeState.bind(this._dataHandler), this.InstanceRedDot.BossWarCrossZoneNode.callBackFunc = this._dataHandler.RefreshBossWarPartNodeState.bind(this._dataHandler), this.InstanceRedDot.BossWarTaskNode.callBackFunc = this._dataHandler.RefreshBossWarTaskNodeState.bind(this._dataHandler), this.InstanceRedDot.BossWarChallengeNode.callBackFunc = this._dataHandler.RefreshBossWarChallengeNodeState.bind(this._dataHandler), this.InstanceRedDot.SecretJourneyNode.callBackFunc = this._dataHandler.RefreshSecretJourneyNode.bind(this._dataHandler), this.InstanceRedDot.AllUserPuzzleNode.callBackFunc = this._dataHandler.RefreshAllUserPuzzleNode.bind(this._dataHandler), this.InstanceRedDot.AllUserPuzzleGiveNode.callBackFunc = this._dataHandler.RefreshAllUserPuzzleGiveNode.bind(this._dataHandler), this.InstanceRedDot.AccumulateRechargeNode.callBackFunc = this._dataHandler.RefreshAccumulateRechargeNode.bind(this._dataHandler), this.InstanceRedDot.AllianceTradeNode.callBackFunc = this._dataHandler.RefreshAllianceTraderNode.bind(this._dataHandler), this.InstanceRedDot.ReturnWelfareNode.callBackFunc = this._dataHandler.RefreshReturnWelfareNode.bind(this._dataHandler), this.InstanceRedDot.MonopolyEntranceNode.callBackFunc = this._dataHandler.RefreshMonopolyEntranceNode.bind(this._dataHandler), this.InstanceRedDot.MonopolyTaskNode.callBackFunc = this._dataHandler.RefreshMonopolyTaskNode.bind(this._dataHandler), this.InstanceRedDot.MonopolyDiceNode.callBackFunc = this._dataHandler.RefreshMonopolyDiceNode.bind(this._dataHandler), this.InstanceRedDot.MonopolyRemoteDiceNode.callBackFunc = this._dataHandler.RefreahMonopolyRemoteDiceNode.bind(this._dataHandler), this.InstanceRedDot.MonopolyWarToken.callBackFunc = this._dataHandler.RefreahMonopolyWarToken.bind(this._dataHandler), this.InstanceRedDot.ExquisiteCustomCardNode.callBackFunc = this._dataHandler.RefreshExquisiteCustomCardNode.bind(this._dataHandler), this.InstanceRedDot.BadgeCollectNode.callBackFunc = this._dataHandler.RefreshBadgeCollectNode.bind(this._dataHandler), this.InstanceRedDot.BadgeCollectFinalRewardNode.callBackFunc = this._dataHandler.RefreshBadgeCollectFinalRewardNode.bind(this._dataHandler), this.InstanceRedDot.TacticalAttrLevelUpNode.callBackFunc = this._dataHandler.RefreshTacticalAttrLevelUpNode.bind(this._dataHandler), this.InstanceRedDot.TacticalSkillLevelUpNode.callBackFunc = this._dataHandler.RefreshTacticalSkillLevelUpNode.bind(this._dataHandler), this.InstanceRedDot.AnswerActivityNode.callBackFunc = this._dataHandler.RefreshAnswerActivityNode.bind(this._dataHandler), this.InstanceRedDot.HeroTalentActivateNode.callBackFunc = this._dataHandler.HeroTalentActivateNode.bind(this._dataHandler), this.InstanceRedDot.HeroPveTalentNode.callBackFunc = this._dataHandler.RefreshHeroPveTalentNode.bind(this._dataHandler), this.InstanceRedDot.HeroPvpTalentNode.callBackFunc = this._dataHandler.RefreshHeroPvpTalentNode.bind(this._dataHandler), this.InstanceRedDot.HeroTalentEntranceNode.callBackFunc = this._dataHandler.RefreshHeroTalentEntranceNode.bind(this._dataHandler), this.InstanceRedDot.LoverArrowStartNode.callBackFunc = this._dataHandler.RefreshLoverArrowStartNode.bind(this._dataHandler), this.InstanceRedDot.ActivityStoryNode.callBackFunc = this._dataHandler.RefreshActivityStoryNode.bind(this._dataHandler), this.InstanceRedDot.ActivityStoryNode.callBackFunc = this._dataHandler.RefreshActivityStoryNode.bind(this._dataHandler), this.InstanceRedDot.ActivityLuckyBagNode.callBackFunc = this._dataHandler.RefreshActivityLuckyBagNode.bind(this._dataHandler), this.InstanceRedDot.CommonLuckyBagNode.callBackFunc = this._dataHandler.RefreshCommonLuckyBagNode.bind(this._dataHandler), this.InstanceRedDot.HighLuckyBagNode.callBackFunc = this._dataHandler.RefreshHighLuckyBagNode.bind(this._dataHandler), this.InstanceRedDot.SpecialLuckyBagNode.callBackFunc = this._dataHandler.RefreshSpecialLuckyBagNode.bind(this._dataHandler), this.InstanceRedDot.AccumulatedChargeNode.callBackFunc = this._dataHandler.RefreshAccumulatedChargeNode.bind(this._dataHandler), this.InstanceRedDot.AccumulatedGetNode.callBackFunc = this._dataHandler.RefreshAccumulatedChargeNode.bind(this._dataHandler), this.InstanceRedDot.TreasureBoxNode.callBackFunc = this._dataHandler.RefreshTreasureBoxNode.bind(this._dataHandler), this.InstanceRedDot.AngelSummonNode.callBackFunc = this._dataHandler.RefreshAngelSummonNode.bind(this._dataHandler), this.InstanceRedDot.WishAngelNode.callBackFunc = this._dataHandler.RefreshAngelSummonNode.bind(this._dataHandler), this.InstanceRedDot.ContinuousPurchaseGiftEntryNode.callBackFunc = this._dataHandler.RefreshContinuousPurchaseGiftEntryNode.bind(this._dataHandler), this.InstanceRedDot.ContinuousPurchaseGiftDailyReward.callBackFunc = this._dataHandler.RefreshContinuousPurchaseGiftDailyReward.bind(this._dataHandler), this.InstanceRedDot.SeckillGiftDailyReward.callBackFunc = this._dataHandler.RefreshSeckillGiftDailyReward.bind(this._dataHandler), this.InstanceRedDot.SeckillGiftEntryNode.callBackFunc = this._dataHandler.RefreshSeckillGiftEntryNode.bind(this._dataHandler), this.InstanceRedDot.EmaPrayEntryNode.callBackFunc = this._dataHandler.RefreshEmaPrayEntryNode.bind(this._dataHandler), this.InstanceRedDot.MagicComposeEntryNode.callBackFunc = this._dataHandler.RefreshMagicComposeEntryNode.bind(this._dataHandler), this.InstanceRedDot.MagicComposeCombineButton.callBackFunc = this._dataHandler.RefreshMagicComposeCombineButtonNode.bind(this._dataHandler), this.InstanceRedDot.HeroPKEntryNode.callBackFunc = this._dataHandler.RefreshHeroPKEntryNode.bind(this._dataHandler), this.InstanceRedDot.HeroPKTaskNode.callBackFunc = this._dataHandler.RefreshHeroPKTaskNode.bind(this._dataHandler), this.InstanceRedDot.HeroPKReceiveButtonNode.callBackFunc = this._dataHandler.RefreshHeroPKReceiveButtonNode.bind(this._dataHandler), this.InstanceRedDot.HeroPKWarTokenButtonNode.callBackFunc = this._dataHandler.RefreshActivityWarToken.bind(this._dataHandler), this.InstanceRedDot.ChaosSummonEntranceNode.callBackFunc = this._dataHandler.ChaosSummonActivityEntranceNode.bind(this._dataHandler), this.InstanceRedDot.ChaosSummonDrawOnceNode.callBackFunc = this._dataHandler.ChaosSummonActivityDrawOnceNode.bind(this._dataHandler), this.InstanceRedDot.ChaosPersonalityDrawOnceNode.callBackFunc = this._dataHandler.ChaosSummonActivityPersonalityDrawOnceNode.bind(this._dataHandler), this.InstanceRedDot.ChaosPersonalityDrawTenNode.callBackFunc = this._dataHandler.ChaosSummonActivityPersonalityDrawTenNode.bind(this._dataHandler), this.InstanceRedDot.ChaosSummonDrawTenNode.callBackFunc = this._dataHandler.ChaosSummonActivityDrawTenNode.bind(this._dataHandler), this.InstanceRedDot.ChaosSummonGetWayNode.callBackFunc = this._dataHandler.ChaosSummonActivityTicketAvailableNode.bind(this._dataHandler), this.InstanceRedDot.ChaosSummonFreeGiftPanelNode.callBackFunc = this._dataHandler.ChaosSummonActivityFreeGiftNode.bind(this._dataHandler), this.InstanceRedDot.HeroSummonTrialHeroNode.callBackFunc = this._dataHandler.RefreshHeroSummonTrialHeroNode.bind(this._dataHandler), this.InstanceRedDot.ChaosSummonTrialHeroNode.callBackFunc = this._dataHandler.RefreshChaosSummonTrialHeroNode.bind(this._dataHandler), this.InstanceRedDot.HeroPetNode.callBackFunc = this._dataHandler.RefreshHeroPet.bind(this._dataHandler), this.InstanceRedDot.PetInfoAttrToggle.callBackFunc = this._dataHandler.IsPetCanUpLevel.bind(this._dataHandler), this.InstanceRedDot.PetInfoStarToggle.callBackFunc = this._dataHandler.IsPetCanUpStar.bind(this._dataHandler), this.InstanceRedDot.PetInfoRefineToggle.callBackFunc = this._dataHandler.RefreshPetInfoRefineToggle.bind(this._dataHandler), this.InstanceRedDot.PersonalityHandbookBtn.callBackFunc = this._dataHandler.RefreshPersonalityHandbookBtn.bind(this._dataHandler), this.InstanceRedDot.SkinHandbookButton.callBackFunc = this._dataHandler.RefreshSkinHandbookButton.bind(this._dataHandler), this.InstanceRedDot.PetChangeBtn.callBackFunc = this._dataHandler.RefreshPetChangeBtn.bind(this._dataHandler), this.InstanceRedDot.HeroRisingPackActivity.callBackFunc = this._dataHandler.RefreshHeroRisingPackActivity.bind(this._dataHandler), this.InstanceRedDot.ActivityBossNode.callBackFunc = this._dataHandler.RefreshActivityBossNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossChallengeNode.callBackFunc = this._dataHandler.RefreshActivityBossChallengeNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossTaskDailyNode.callBackFunc = this._dataHandler.RefreshActivityBossTaskDailyNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossTaskPeriodNode.callBackFunc = this._dataHandler.RefreshActivityBossTaskPeriodNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossTaskNode.callBackFunc = this._dataHandler.RefreshActivityBossTaskNode.bind(this._dataHandler), this.InstanceRedDot.TradeWarNode.callBackFunc = this._dataHandler.RefreshTardeWarRedDot.bind(this._dataHandler), this.InstanceRedDot.TardeWarTaskNode.callBackFunc = this._dataHandler.RefreshTardeWarTaskNode.bind(this._dataHandler), this.InstanceRedDot.TardeWarActiveBtnNode.callBackFunc = this._dataHandler.RefreshTardeWarSignBtnRedDot.bind(this._dataHandler), this.InstanceRedDot.TardeWarLevelUp.callBackFunc = this._dataHandler.RefreshTardeWarLevelUpRedDot.bind(this._dataHandler), this.InstanceRedDot.CampSupportNode.callBackFunc = this._dataHandler.RefreshCampSupportNode.bind(this._dataHandler), this.InstanceRedDot.CampSupportGiftNode.callBackFunc = this._dataHandler.RefreshCampSupportGiftNode.bind(this._dataHandler), this.InstanceRedDot.CampSupportTaskNode.callBackFunc = this._dataHandler.RefreshCampSupportTaskNode.bind(this._dataHandler), this.InstanceRedDot.SupportNode.callBackFunc = this._dataHandler.CanSupportNode.bind(this._dataHandler), this.InstanceRedDot.ActiveCollectionEntry.callBackFunc = this._dataHandler.RefreshActiveCollectionEntry.bind(this._dataHandler), this.InstanceRedDot.DailyCheckInActivityPanel.callBackFunc = this._dataHandler.RefreshDailyCheckInActivityPanel.bind(this._dataHandler), this.InstanceRedDot.WarmUpActivityPanel.callBackFunc = this._dataHandler.RefreshWarmUpActivityPanel.bind(this._dataHandler), this.InstanceRedDot.HerosRisingStarGiftPanel.callBackFunc = this._dataHandler.RefreshHerosRisingStarGiftPanel.bind(this._dataHandler), this.InstanceRedDot.HerosRisingStarHeart.callBackFunc = this._dataHandler.RefreshHerosRisingHeart.bind(this._dataHandler), this.InstanceRedDot.HerosRisingStarPower.callBackFunc = this._dataHandler.RefreshHerosRisingPower.bind(this._dataHandler), this.InstanceRedDot.HerosRisingStarTech.callBackFunc = this._dataHandler.RefreshHerosRisingTech.bind(this._dataHandler), this.InstanceRedDot.HerosRisingStarFigth.callBackFunc = this._dataHandler.RefreshHerosRisingFigth.bind(this._dataHandler), this.InstanceRedDot.HerosRisingStarBreak.callBackFunc = this._dataHandler.RefreshHerosRisingBreak.bind(this._dataHandler), this.InstanceRedDot.HerosRisingStarChaos.callBackFunc = this._dataHandler.RefreshHerosRisingChaos.bind(this._dataHandler), this.InstanceRedDot.LimitTimeSummonNode.callBackFunc = this._dataHandler.RefreshLimitTimeSummonNode.bind(this._dataHandler), this.InstanceRedDot.LimitTimeSummonFreeNode.callBackFunc = this._dataHandler.RefreshLimitTimeSummonFreeNode.bind(this._dataHandler), this.InstanceRedDot.CarnivalSkinPanel.callBackFunc = this._dataHandler.RefreshCarnivalSkinPanel.bind(this._dataHandler), this.InstanceRedDot.AngelDescButton.callBackFunc = this._dataHandler.OnAngelDescButtonNode.bind(this._dataHandler), this.InstanceRedDot.AngelInfoAttrToggle.callBackFunc = this._dataHandler.RefreshAngelAttr.bind(this._dataHandler), this.InstanceRedDot.AngelSkinButton.callBackFunc = this._dataHandler.RefreshAngelSkinButton.bind(this._dataHandler), this.InstanceRedDot.AngelFavorButton.callBackFunc = this._dataHandler.RefreshAngelFavorButton.bind(this._dataHandler), this.InstanceRedDot.AngelFavorSendGiftButton.callBackFunc = this._dataHandler.RefreshAngelFavorButton.bind(this._dataHandler), this.InstanceRedDot.AngelUpStarButton.callBackFunc = this._dataHandler.RefreshAngelUpStarButton.bind(this._dataHandler), this.InstanceRedDot.AngelUpStarToggle.callBackFunc = this._dataHandler.RefreshAngelUpStarButton.bind(this._dataHandler), this.InstanceRedDot.AngelGodSoulButton.callBackFunc = this._dataHandler.RefreshAngelGodSoulButton.bind(this._dataHandler), this.InstanceRedDot.SummonBox.callBackFunc = this._dataHandler.RefreshSummonBox.bind(this._dataHandler), this.InstanceRedDot.SummonBoxProgress.callBackFunc = this._dataHandler.RefreshSummonBoxProgress.bind(this._dataHandler), this.InstanceRedDot.SummonBoxPack.callBackFunc = this._dataHandler.RefreshSummonBoxPack.bind(this._dataHandler), this.InstanceRedDot.LuckyDrawPanel.callBackFunc = this._dataHandler.RefreshLuckyDrawPanel.bind(this._dataHandler), this.InstanceRedDot.LuckyDrawExchangeBtn.callBackFunc = this._dataHandler.RefreshLuckyDrawExchangeBtn.bind(this._dataHandler), this.InstanceRedDot.LuckyDrawPack.callBackFunc = this._dataHandler.RefreshLuckyLuckyDrawPack.bind(this._dataHandler), this.InstanceRedDot.LuckyDrawDetial.callBackFunc = this._dataHandler.RefreshLuckyDrawDetial.bind(this._dataHandler), this.InstanceRedDot.StoryUpStarNode.callBackFunc = this._dataHandler.RefreshStoryUpStarNode.bind(this._dataHandler), this.InstanceRedDot.HeroTalentResonanceEntranceNode.callBackFunc = this._dataHandler.HeroTalentResonanceCanUpgrade.bind(this._dataHandler), this.InstanceRedDot.TalentResonanceUpgradeNode.callBackFunc = this._dataHandler.HeroTalentResonanceCanUpgrade.bind(this._dataHandler), this.InstanceRedDot.ActivityFirstPayNode.callBackFunc = this._dataHandler.RefreshActivityFirstPayState.bind(this._dataHandler), this.InstanceRedDot.IdleActivityFirstPayNode.callBackFunc = this._dataHandler.RefreshActivityFirstPayState.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_0.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_1.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_2.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_3.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_4.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_5.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_6.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_7.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_8.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_9.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionMoudelEntry_10.callBackFunc = this._dataHandler.RefreshCollectionPavilionMoudelEntry.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionBottomToggle_0.callBackFunc = this._dataHandler.RefreshCollectionPavilionBottomToggle.bind(this._dataHandler), this.InstanceRedDot.CollectionPavilionBottomToggle_1.callBackFunc = this._dataHandler.RefreshCollectionPavilionBottomToggle.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseWishTreeUpLevelNode.callBackFunc = this._dataHandler.RefreshTreasureHouseWishTreeUpLevel.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseWishTreaTag_0.callBackFunc = this._dataHandler.RefreshTreasureHouseWishTreeTag.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseWishTreaTag_1.callBackFunc = this._dataHandler.RefreshTreasureHouseWishTreeTag.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseWishTreaTag_2.callBackFunc = this._dataHandler.RefreshTreasureHouseWishTreeTag.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseWishTreaTag_3.callBackFunc = this._dataHandler.RefreshTreasureHouseWishTreeTag.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseWishTreeEntry.callBackFunc = this._dataHandler.RefreshTreasureHouseWishTreeEntry.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseItemEntry_0.callBackFunc = this._dataHandler.RefreshTreasureHouseItemEntry.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseItemEntry_1.callBackFunc = this._dataHandler.RefreshTreasureHouseItemEntry.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseItemEntry_2.callBackFunc = this._dataHandler.RefreshTreasureHouseItemEntry.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseTreasureItemUpStar.callBackFunc = this._dataHandler.RefreshTreasureHouseTreasureItemUpStar.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseTreasureItemUpStarLeftArrow.callBackFunc = this._dataHandler.RefreshTreasureHouseTreasureItemUpStar.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseTreasureItemUpStarRightArrow.callBackFunc = this._dataHandler.RefreshTreasureHouseTreasureItemUpStar.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseUpLevelButtonNode.callBackFunc = this._dataHandler.RefreshTreasureHouseUpLevelButtonNode.bind(this._dataHandler), this.InstanceRedDot.TreasureHouseUpLevelEntryNode.callBackFunc = this._dataHandler.RefreshTreasureHouseUpLevelEntry.bind(this._dataHandler), this.InstanceRedDot.ChaosHeroTempleUpLevelButtonNode.callBackFunc = this._dataHandler.RefreshChaosHeroTempleUpLevelButtonNode.bind(this._dataHandler), this.InstanceRedDot.ChaosHeroResonanceUpLevelButtonNode.callBackFunc = this._dataHandler.RefreshChaosHeroResonanceUpLevelButtonNode.bind(this._dataHandler), this.InstanceRedDot.ActivityLuckyPackNode.callBackFunc = this._dataHandler.RefreshActivityLuckyPackNode.bind(this._dataHandler), this.InstanceRedDot.LuckyCharmUpgradeNode.callBackFunc = this._dataHandler.RefreshLuckyCharmUpBtn.bind(this._dataHandler), this.InstanceRedDot.LuckyCharmInfoUpgradeNode.callBackFunc = this._dataHandler.RefreshLuckyCharmUpgradeNodeNode.bind(this._dataHandler), this.InstanceRedDot.LuckyCharmUpgradeToggleNode.callBackFunc = this._dataHandler.RefreshLuckyCharmUpBtn.bind(this._dataHandler), this.InstanceRedDot.LuckyCharmEngraveNode.callBackFunc = this._dataHandler.RefreshLuckyCharmEngraveBtn.bind(this._dataHandler), this.InstanceRedDot.LuckyCharmEngraveToggleNode.callBackFunc = this._dataHandler.RefreshLuckyCharmEngraveBtn.bind(this._dataHandler), this.InstanceRedDot.GemProcessingBtnNode.callBackFunc = this._dataHandler.RefreshGemProcessingBtnNode.bind(this._dataHandler), this.InstanceRedDot.GemProcessingNode.callBackFunc = this._dataHandler.RefreshGemProcessingBtnNode.bind(this._dataHandler), this.InstanceRedDot.CookHouseEnterPanel.callBackFunc = this._dataHandler.RefreshCookHouseEnterPanel.bind(this._dataHandler), this.InstanceRedDot.CookHouseEnterPanelTaskBtn.callBackFunc = this._dataHandler.RefreshCookHouseEnterPanelTaskBtn.bind(this._dataHandler), this.InstanceRedDot.CookHouseEnterPanelTaskToggle1.callBackFunc = this._dataHandler.RefreshCookHouseEnterPanelTaskToggle1.bind(this._dataHandler), this.InstanceRedDot.CookHouseEnterPanelTaskToggle2.callBackFunc = this._dataHandler.RefreshCookHouseEnterPanelTaskToggle2.bind(this._dataHandler), this.InstanceRedDot.NewSignIn.callBackFunc = this._dataHandler.RefreshNewSignIn.bind(this._dataHandler), this.InstanceRedDot.KnifeTrainNode.callBackFunc = this._dataHandler.RefreshKnifeTrainNode.bind(this._dataHandler), this.InstanceRedDot.KnifeTrainToggle1.callBackFunc = this._dataHandler.RefreshKnifeTrainToggle1Node.bind(this._dataHandler), this.InstanceRedDot.KnifeTrainTask.callBackFunc = this._dataHandler.RefreshKnifeTrainTaskNode.bind(this._dataHandler), this.InstanceRedDot.KnifeTrainReceiveBtn.callBackFunc = this._dataHandler.RefreshKnifeTrainToggle1Node.bind(this._dataHandler), this.InstanceRedDot.HolyEquipmentGalleryUpButton.callBackFunc = this._dataHandler.RefreshHolyEquipGalleryUpButton.bind(this._dataHandler), this.InstanceRedDot.HolyEquipmentGalleryEntry_0.callBackFunc = this._dataHandler.RefreshHolyEquipGalleryUpButton.bind(this._dataHandler), this.InstanceRedDot.HolyEquipmentGalleryEntry_1.callBackFunc = this._dataHandler.RefreshHolyEquipGalleryUpButton.bind(this._dataHandler), this.InstanceRedDot.HolyEquipmentGalleryEntry_2.callBackFunc = this._dataHandler.RefreshHolyEquipGalleryUpButton.bind(this._dataHandler), this.InstanceRedDot.HolyEquipmentGalleryEntry_3.callBackFunc = this._dataHandler.RefreshHolyEquipGalleryUpButton.bind(this._dataHandler), this.InstanceRedDot.HeroHandbookUpLevelToggle.callBackFunc = this._dataHandler.RefreshHeroHandbookUpLevelToggle.bind(this._dataHandler), this.InstanceRedDot.HeroHandbookSublimingToggle.callBackFunc = this._dataHandler.RefreshHeroHandbookSublimingToggle.bind(this._dataHandler), this.InstanceRedDot.HeroHandbookUpLevelButton.callBackFunc = this._dataHandler.RefreshHeroHandbookUpLevelButton.bind(this._dataHandler), this.InstanceRedDot.HeroHandbookSublimingButton.callBackFunc = this._dataHandler.RefreshHeroHandbookSublimingButton.bind(this._dataHandler), this.InstanceRedDot.AngelHandbookUpLevelToggle.callBackFunc = this._dataHandler.RefreshAngelHandbookUpLevelToggle.bind(this._dataHandler), this.InstanceRedDot.AngelHandbookSublimingToggle.callBackFunc = this._dataHandler.RefreshAngelHandbookSublimingToggle.bind(this._dataHandler), this.InstanceRedDot.AngelHandbookUpLevelButton.callBackFunc = this._dataHandler.RefreshAngelHandbookUpLevelButton.bind(this._dataHandler), this.InstanceRedDot.AngelHandbookSublimingButton.callBackFunc = this._dataHandler.RefreshAngelHandbookSublimingButton.bind(this._dataHandler), this.InstanceRedDot.CrazyWheel.callBackFunc = this._dataHandler.RefreshCrazyWheel.bind(this._dataHandler), this.InstanceRedDot.CrazyWheelSummonBtn1.callBackFunc = this._dataHandler.RefreshCrazyWheelSummonBtn1.bind(this._dataHandler), this.InstanceRedDot.CrazyWheelSummonBtn2.callBackFunc = this._dataHandler.RefreshCrazyWheelSummonBtn2.bind(this._dataHandler), this.InstanceRedDot.CrazyWheelPack.callBackFunc = this._dataHandler.RefreshCrazyWheelPack.bind(this._dataHandler), this.InstanceRedDot.SelectedGiftBag.callBackFunc = this._dataHandler.RefreshSelectedGiftBag.bind(this._dataHandler), this.InstanceRedDot.ArtifactDetailToggle.callBackFunc = this._dataHandler.RefreshDetailToggleNode.bind(this._dataHandler), this.InstanceRedDot.ArtifactForgeToggle.callBackFunc = this._dataHandler.RefreshForgeToggleNode.bind(this._dataHandler), this.InstanceRedDot.ArtifactUpStarToggle.callBackFunc = this._dataHandler.RefreshUpStarToggleNode.bind(this._dataHandler), this.InstanceRedDot.ArtifactForge1.callBackFunc = this._dataHandler.RefreshArtifactForgeSlot.bind(this._dataHandler), this.InstanceRedDot.ArtifactForge2.callBackFunc = this._dataHandler.RefreshArtifactForgeSlot.bind(this._dataHandler), this.InstanceRedDot.ArtifactForge3.callBackFunc = this._dataHandler.RefreshArtifactForgeSlot.bind(this._dataHandler), this.InstanceRedDot.ArtifactUpStarActiveBtn.callBackFunc = this._dataHandler.RefreshArtifactUpStarActiveBtn.bind(this._dataHandler), this.InstanceRedDot.ArtifactUpStarBtn.callBackFunc = this._dataHandler.RefreshArtifactUpStarBtn.bind(this._dataHandler), this.InstanceRedDot.ArtifactPhantomActiveBtn.callBackFunc = this._dataHandler.RefreshArtifactPhantomActiveBtn.bind(this._dataHandler), this.InstanceRedDot.HeroArtifactForgeBtn.callBackFunc = this._dataHandler.RefreshForgeToggleNode.bind(this._dataHandler), this.InstanceRedDot.HeroArtifactUpStarBtn.callBackFunc = this._dataHandler.RefreshUpStarToggleNode.bind(this._dataHandler), this.InstanceRedDot.ElementArenaNode.callBackFunc = this._dataHandler.RefreshElementArenaNode.bind(this._dataHandler), this.InstanceRedDot.NewDailyCheckInRunnerNode.callBackFunc = this._dataHandler.RefreshNewDailyCheckInRunnerNode.bind(this._dataHandler), this.InstanceRedDot.WeekCardNode.callBackFunc = this._dataHandler.RefreshWeekCardNode.bind(this._dataHandler), this.InstanceRedDot.SuperGiftNode.callBackFunc = this._dataHandler.RefreshSuperGiftNodeNode.bind(this._dataHandler), this.InstanceRedDot.WelfareSuperGiftNode.callBackFunc = this._dataHandler.RefreshSuperGiftNodeNode.bind(this._dataHandler), this.InstanceRedDot.RunningTrainEntryNode.callBackFunc = this._dataHandler.RefreshRunningTrainEntryNode.bind(this._dataHandler), this.InstanceRedDot.RunningTrainTaskNode.callBackFunc = this._dataHandler.RefreshRunningTrainTaskNode.bind(this._dataHandler), this.InstanceRedDot.RunningTrainTaskDailyToggle.callBackFunc = this._dataHandler.RefreshRunningTrainTaskDailyToggle.bind(this._dataHandler), this.InstanceRedDot.RunningTrainTaskTotalToggle.callBackFunc = this._dataHandler.RefreshRunningTrainTaskTotalToggle.bind(this._dataHandler), this.InstanceRedDot.RunningTrainReceiveNode.callBackFunc = this._dataHandler.RefreshRunningTrainReceiveNode.bind(this._dataHandler), this.InstanceRedDot.RunningTrainConsume1Node.callBackFunc = this._dataHandler.RefreshRunningTrainConsume1Node.bind(this._dataHandler), this.InstanceRedDot.RunningTrainConsume2Node.callBackFunc = this._dataHandler.RefreshRunningTrainConsume2Node.bind(this._dataHandler), this.InstanceRedDot.RechargeFeedbackNode.callBackFunc = this._dataHandler.RefreshRechargeFeedbackNode.bind(this._dataHandler), this.InstanceRedDot.SuperWeaponUpStarBtnNode.callBackFunc = this._dataHandler.RefreshSuperWeaponUpStarBtnNode.bind(this._dataHandler), this.InstanceRedDot.SuperWeaponUpLevelBtnNode.callBackFunc = this._dataHandler.RefreshSuperWeaponUpLevelBtnNode.bind(this._dataHandler), this.InstanceRedDot.SuperWeaponUpStarToggleNode.callBackFunc = this._dataHandler.RefreshSuperWeaponUpStarBtnNode.bind(this._dataHandler), this.InstanceRedDot.SuperWeaponUpLevelToggleNode.callBackFunc = this._dataHandler.RefreshSuperWeaponUpLevelBtnNode.bind(this._dataHandler), this.InstanceRedDot.NewYearWeaponUpStarBtnNode.callBackFunc = this._dataHandler.RefreshNewYearWeaponUpStarBtnNode.bind(this._dataHandler), this.InstanceRedDot.NewYearWeaponUpLevelBtnNode.callBackFunc = this._dataHandler.RefreshNewYearWeaponUpLevelBtnNode.bind(this._dataHandler), this.InstanceRedDot.NewYearWeaponUpStarToggleNode.callBackFunc = this._dataHandler.RefreshNewYearWeaponUpStarBtnNode.bind(this._dataHandler), this.InstanceRedDot.NewYearWeaponUpLevelToggleNode.callBackFunc = this._dataHandler.RefreshNewYearWeaponUpLevelBtnNode.bind(this._dataHandler), this.InstanceRedDot.TreasureHuntNode.callBackFunc = this._dataHandler.RefreshTreasureHuntNode.bind(this._dataHandler), this.InstanceRedDot.TreasureHuntWarTokenBtn.callBackFunc = this._dataHandler.RefreshTreasureHuntWarTokenBtn.bind(this._dataHandler), this.InstanceRedDot.TreasureHuntTaskBtn.callBackFunc = this._dataHandler.RefreshTreasureHuntTaskBtn.bind(this._dataHandler), this.InstanceRedDot.TreasureHuntGiftPackBtn.callBackFunc = this._dataHandler.RefreshTreasureHuntGiftPackBtn.bind(this._dataHandler), this.InstanceRedDot.TreasureHuntTurnBtn.callBackFunc = this._dataHandler.RefreshTreasureHuntTurnBtn.bind(this._dataHandler), this.InstanceRedDot.ScratchCardNode.callBackFunc = this._dataHandler.RefreshScratchCardNode.bind(this._dataHandler), this.InstanceRedDot.ScratchCardRewardNode.callBackFunc = this._dataHandler.RefreshScratchCardRewardNode.bind(this._dataHandler), this.InstanceRedDot.ScratchCardGiftNode.callBackFunc = this._dataHandler.RefreshScratchCardGiftNode.bind(this._dataHandler), this.InstanceRedDot.ScratchCardTaskNode.callBackFunc = this._dataHandler.RefreshScratchCardTaskNode.bind(this._dataHandler), this.InstanceRedDot.LuckyCakeEntryNode.callBackFunc = this._dataHandler.RefreshLuckyCakeEntryNode.bind(this._dataHandler), this.InstanceRedDot.LuckyCakeEatButtonNode.callBackFunc = this._dataHandler.RefreshLuckyCakeEatButtonNode.bind(this._dataHandler), this.InstanceRedDot.LuckyCakeFreeRewardNode.callBackFunc = this._dataHandler.RefreshLuckyCakeFreeRewardNode.bind(this._dataHandler), this.InstanceRedDot.LuckyCakeTaskNode.callBackFunc = this._dataHandler.RefreshLuckyCakeTaskNode.bind(this._dataHandler), this.InstanceRedDot.LuckyCakeTaskDailyToggle.callBackFunc = this._dataHandler.RefreshLuckyCakeTaskDailyToggle.bind(this._dataHandler), this.InstanceRedDot.LuckyCakeTaskTotalToggle.callBackFunc = this._dataHandler.RefreshLuckyCakeTaskTotalToggle.bind(this._dataHandler), this.InstanceRedDot.PermanentPrivilegeToggle0.callBackFunc = this._dataHandler.RefreshPermanentPrivilegeHero.bind(this._dataHandler), this.InstanceRedDot.PermanentPrivilegeToggle1.callBackFunc = this._dataHandler.RefreshPermanentPrivilegePersonality.bind(this._dataHandler), this.InstanceRedDot.PermanentPrivilegeToggle2.callBackFunc = this._dataHandler.RefreshPermanentPrivilegeToggle.bind(this._dataHandler), this.InstanceRedDot.PermanentPrivilegeToggle3.callBackFunc = this._dataHandler.RefreshPermanentPrivilegeToggle.bind(this._dataHandler), this.InstanceRedDot.ClimbTowerDailyRewardBtnNode.callBackFunc = this._dataHandler.RefreshClimbTowerDailyRewardBtnNode.bind(this._dataHandler), this.InstanceRedDot.NormalTowerExtraRewardBtnNode.callBackFunc = this._dataHandler.RefreshNormalTowerExtraRewardBtnNode.bind(this._dataHandler), this.InstanceRedDot.TowerStarPowerBtnNode.callBackFunc = this._dataHandler.RefreshOnTowerStarPowerBtnNode.bind(this._dataHandler), this.InstanceRedDot.PowerTowerExtraRewardBtnNode.callBackFunc = this._dataHandler.RefreshPowerTowerExtraRewardBtnNode.bind(this._dataHandler), this.InstanceRedDot.TechTowerExtraRewardBtnNode.callBackFunc = this._dataHandler.RefreshTechTowerExtraRewardBtnNode.bind(this._dataHandler), this.InstanceRedDot.HeartTowerExtraRewardBtnNode.callBackFunc = this._dataHandler.RefreshHeartTowerExtraRewardBtnNode.bind(this._dataHandler), this.InstanceRedDot.BreakTowerExtraRewardBtnNode.callBackFunc = this._dataHandler.RefreshBreakTowerExtraRewardBtnNode.bind(this._dataHandler), this.InstanceRedDot.FightTowerExtraRewardBtnNode.callBackFunc = this._dataHandler.RefreshFightTowerExtraRewardBtnNode.bind(this._dataHandler), this.InstanceRedDot.EntrancePowerBtnNode.callBackFunc = this._dataHandler.RefreshPowerTowerEntrance.bind(this._dataHandler), this.InstanceRedDot.EntranceTechBtnNode.callBackFunc = this._dataHandler.RefreshTechTowerEntrance.bind(this._dataHandler), this.InstanceRedDot.EntranceHeartBtnNode.callBackFunc = this._dataHandler.RefreshHeartTowerEntrance.bind(this._dataHandler), this.InstanceRedDot.EntranceBreakBtnNode.callBackFunc = this._dataHandler.RefreshBreakTowerEntrance.bind(this._dataHandler), this.InstanceRedDot.EntranceFightBtnNode.callBackFunc = this._dataHandler.RefreshFightTowerEntrance.bind(this._dataHandler), this.InstanceRedDot.EntranceNormalBtnNode.callBackFunc = this._dataHandler.RefreshEntranceNormalBtnNode2.bind(this._dataHandler), this.InstanceRedDot.CircusMazeNode.callBackFunc = this._dataHandler.RefreshCircusMazeNode.bind(this._dataHandler), this.InstanceRedDot.CircusMazeWarTokenNode.callBackFunc = this._dataHandler.RefreshCircusMazeWarTokenNode.bind(this._dataHandler), this.InstanceRedDot.CircusMazeConsumeNode.callBackFunc = this._dataHandler.RefreshCircusMazeConsumeNode.bind(this._dataHandler), this.InstanceRedDot.CircusMazeGiftNode.callBackFunc = this._dataHandler.RefreshCircusMazeGiftNode.bind(this._dataHandler), this.InstanceRedDot.ActivityChampionEntryButton.callBackFunc = this._dataHandler.RefreshActivityChampionEntryButton.bind(this._dataHandler), this.InstanceRedDot.ActivityChampionApplyButton.callBackFunc = this._dataHandler.RefreshActivityChampionApplyButton.bind(this._dataHandler), this.InstanceRedDot.ChampionPreviewRankButton.callBackFunc = this._dataHandler.RefreshChampionPreviewRankButton.bind(this._dataHandler), this.InstanceRedDot.ChampionPreviewRewardButton.callBackFunc = this._dataHandler.RefreshChampionPreviewRewardButton.bind(this._dataHandler), this.InstanceRedDot.ParkourNode.callBackFunc = this._dataHandler.RefreshParkourNode.bind(this._dataHandler), this.InstanceRedDot.ParkourTaskNode.callBackFunc = this._dataHandler.RefreshParkourTaskNode.bind(this._dataHandler), this.InstanceRedDot.ParkourGiftNode.callBackFunc = this._dataHandler.RefreshParkourGiftNode.bind(this._dataHandler), this.InstanceRedDot.CrazyDiscountNode.callBackFunc = this._dataHandler.RefreshCrazyDiscountState.bind(this._dataHandler), this.InstanceRedDot.CrazyDiscountFreeItemNode.callBackFunc = this._dataHandler.RefreshCrazyDiscountState.bind(this._dataHandler), this.InstanceRedDot.BeatWatermelonEntryNode.callBackFunc = this._dataHandler.RefreshBeatWatermelonEntryNode.bind(this._dataHandler), this.InstanceRedDot.BeatWatermelonGiftButton.callBackFunc = this._dataHandler.RefreshBeatWatermelonGiftButton.bind(this._dataHandler), this.InstanceRedDot.BeatWatermelonStartButton.callBackFunc = this._dataHandler.RefreshBeatWatermelonEntryNode.bind(this._dataHandler), this.InstanceRedDot.GlobalChampionShipNode.callBackFunc = this._dataHandler.RefreshGlobalChampionShipNode.bind(this._dataHandler), this.InstanceRedDot.GlobalChampionFormationBtn.callBackFunc = this._dataHandler.RefreshGlobalChampionFormationBtn.bind(this._dataHandler), this.InstanceRedDot.GlobalChampionRewardBtn.callBackFunc = this._dataHandler.RefreshGlobalChampionReward.bind(this._dataHandler), this.InstanceRedDot.GlobalChampionRewardToggle.callBackFunc = this._dataHandler.RefreshGlobalChampionReward.bind(this._dataHandler), this.InstanceRedDot.RushRankFrameEntryNode.callBackFunc = this._dataHandler.RefreshRushRankFrameEntryNode.bind(this._dataHandler), this.InstanceRedDot.RushRankEntryNode.callBackFunc = this._dataHandler.RefreshRushRankEntryNode.bind(this._dataHandler), this.InstanceRedDot.RushRankFrameDailyReward.callBackFunc = this._dataHandler.RefreshRushRankFrameDailyRewardNode.bind(this._dataHandler), this.InstanceRedDot.RushRankStageReward.callBackFunc = this._dataHandler.RefreshRushRankTotalTaskNode.bind(this._dataHandler), this.InstanceRedDot.RushRankTaskToggle.callBackFunc = this._dataHandler.RefreshRushRankTaskToggle.bind(this._dataHandler), this.InstanceRedDot.RushRankGiftToggle.callBackFunc = this._dataHandler.RefreshRushRankGiftToggle.bind(this._dataHandler), this.InstanceRedDot.NoviceFormationNode.callBackFunc = this._dataHandler.RefreshNoviceFormationNode.bind(this._dataHandler), this.InstanceRedDot.MultipleGiftNode.callBackFunc = this._dataHandler.RefreshMultipleGiftNode.bind(this._dataHandler), this.InstanceRedDot.ChainGiftNode.callBackFunc = this._dataHandler.RefreshChainGiftNode.bind(this._dataHandler), this.InstanceRedDot.BreakouNode.callBackFunc = this._dataHandler.RefreshBreakouNode.bind(this._dataHandler), this.InstanceRedDot.BreakouTaskNode.callBackFunc = this._dataHandler.RefreshBreakouTaskNode.bind(this._dataHandler), this.InstanceRedDot.GiftAllHeroesNode.callBackFunc = this._dataHandler.RefreshGiftAllHeroesNode.bind(this._dataHandler), this.InstanceRedDot.KoiGiftEntryNode.callBackFunc = this._dataHandler.RefreshKoiGiftDailyReward.bind(this._dataHandler), this.InstanceRedDot.KoiGiftDailyReward.callBackFunc = this._dataHandler.RefreshKoiGiftDailyReward.bind(this._dataHandler), this.InstanceRedDot.RocketEntryNode.callBackFunc = this._dataHandler.RefreshRocketEntryNode.bind(this._dataHandler), this.InstanceRedDot.RocketChallengeButton.callBackFunc = this._dataHandler.RefreshRocketChallengeButton.bind(this._dataHandler), this.InstanceRedDot.AccountActivityNode.callBackFunc = this._dataHandler.RefreshAccountActivityNode.bind(this._dataHandler), this.InstanceRedDot.FightingMiniGameNode.callBackFunc = this._dataHandler.RefreshFightingMiniGameNode.bind(this._dataHandler), this.InstanceRedDot.FightingMiniGameTaskNode.callBackFunc = this._dataHandler.RefreshFightingMiniGameTaskNode.bind(this._dataHandler), this.InstanceRedDot.FightingMiniGameDailyTaskNode.callBackFunc = this._dataHandler.RefreshFightingMiniGameDailyTaskNode.bind(this._dataHandler), this.InstanceRedDot.FightingMiniGameAccumulateTaskNode.callBackFunc = this._dataHandler.RefreshFightingMiniGameAccumulateTaskNode.bind(this._dataHandler), this.InstanceRedDot.NoviceTrainingNode.callBackFunc = this._dataHandler.RefreshNoviceTraining.bind(this._dataHandler), this.InstanceRedDot.NewPersonalityHintBtn.callBackFunc = this._dataHandler.RefreshNewPersonalityHintBtn.bind(this._dataHandler), this.InstanceRedDot.NewPersonalityLevelUpBtn.callBackFunc = this._dataHandler.RefreshNewPersonalityLevelUp.bind(this._dataHandler), this.InstanceRedDot.NewPersonalitySummonNode.callBackFunc = this._dataHandler.RefreshNewPersonalitySummonNode.bind(this._dataHandler), this.InstanceRedDot.NewPersonalitySummonOneBtn.callBackFunc = this._dataHandler.RefreshNewPersonalitySummonOneBtn.bind(this._dataHandler), this.InstanceRedDot.FlipHappyNode.callBackFunc = this._dataHandler.RefreshFlipHappyNode.bind(this._dataHandler), this.InstanceRedDot.RuinsWarNode.callBackFunc = this._dataHandler.RefreshRuinsWar.bind(this._dataHandler), this.InstanceRedDot.RuinsWarTaskNode.callBackFunc = this._dataHandler.RefreshActivityTask.bind(this._dataHandler), this.InstanceRedDot.RuinsWarTaskDailyNode.callBackFunc = this._dataHandler.RefreshActivityDailyNode.bind(this._dataHandler), this.InstanceRedDot.RuinsWarTaskPeriodNode.callBackFunc = this._dataHandler.RefreshActivityPeriodNode.bind(this._dataHandler), this.InstanceRedDot.RuinsWarUpLevelNode.callBackFunc = this._dataHandler.RefreshRuinsWarUpLevel.bind(this._dataHandler), this.InstanceRedDot.RuinsWarBattleFlagNode.callBackFunc = this._dataHandler.RefreshRuinsWarBattleFlagNode.bind(this._dataHandler), this.InstanceRedDot.CutPriceGiftPackNode.callBackFunc = this._dataHandler.RefreshCutPriceGiftPack.bind(this._dataHandler), this.InstanceRedDot.CutPriceGiftPackTaskNode.callBackFunc = this._dataHandler.RefreshActivityTask.bind(this._dataHandler), this.InstanceRedDot.CutPriceGiftPackSendBtn.callBackFunc = this._dataHandler.CutPriceGiftPackSend.bind(this._dataHandler), this.InstanceRedDot.Activity2048EntryNode.callBackFunc = this._dataHandler.RefreshActivity2048EnergyNode.bind(this._dataHandler), this.InstanceRedDot.Activity2048EnergyNode.callBackFunc = this._dataHandler.RefreshActivity2048EnergyNode.bind(this._dataHandler), this.InstanceRedDot.SeasonSecretJourneyNode.callBackFunc = this._dataHandler.RefreshSeaseonSecretJourneyNode.bind(this._dataHandler), this.InstanceRedDot.SeasonWeaponUpStarNode.callBackFunc = this._dataHandler.RefreshSeasonWeaponCanUpStar.bind(this._dataHandler), this.InstanceRedDot.SeasonWeaponUpgradeNode.callBackFunc = this._dataHandler.RefreshSeasonWeaponCanUpgrade.bind(this._dataHandler), this.InstanceRedDot.SeasonWeaponUpgradeBtnNode.callBackFunc = this._dataHandler.RefreshSeasonUpgradeBtnNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossBattleEntryNode.callBackFunc = this._dataHandler.RefreshActivityBossBattleEntryNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossBattleApplyButton.callBackFunc = this._dataHandler.RefreshActivityBossBattleApplyNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossBattleChallengeButton.callBackFunc = this._dataHandler.RefreshActivityBossBattleChallengeNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossBattleTaskNode.callBackFunc = this._dataHandler.RefreshActivityBossBattleTaskNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossBattleTaskDailyNode.callBackFunc = this._dataHandler.RefreshActivityBossBattleTaskDailyNode.bind(this._dataHandler), this.InstanceRedDot.ActivityBossBattleTaskTotalNode.callBackFunc = this._dataHandler.RefreshActivityBossBattleTaskPeriodNode.bind(this._dataHandler), this.InstanceRedDot.SkinTryBtn.callBackFunc = this._dataHandler.RefreshTrySkinReddot.bind(this._dataHandler), this.InstanceRedDot.NewWarTokenNode.callBackFunc = this._dataHandler.RefreshNewWarTokenGetAllBtnNode.bind(this._dataHandler), this.InstanceRedDot.NewWarTokenTaskNode.callBackFunc = this._dataHandler.RefreshActivityTask.bind(this._dataHandler), this.InstanceRedDot.RhythmNode.callBackFunc = this._dataHandler.RefreshRhythmGameState.bind(this._dataHandler), this.InstanceRedDot.FirstPayNode.callBackFunc = this._dataHandler.RefreshFirstPayNodeNode.bind(this._dataHandler), this.InstanceRedDot.FirstPayComponentItemNode.callBackFunc = this._dataHandler.RefreshFirstPayNodeNode.bind(this._dataHandler), this.InstanceRedDot.FirstPayItemNode.callBackFunc = this._dataHandler.RefreshFirstPayNodeNode.bind(this._dataHandler), this.InstanceRedDot.PiggyBankNode.callBackFunc = this._dataHandler.RefreshPiggyBankNode.bind(this._dataHandler), this.InstanceRedDot.PowerTaskNode.callBackFunc = this._dataHandler.RefreshPowerTaskNode.bind(this._dataHandler), this.InstanceRedDot.ActivityHeroTestTowerNode.callBackFunc = this._dataHandler.RefreshActivityHeroTestDaily.bind(this._dataHandler), this.InstanceRedDot.SailNode.callBackFunc = this._dataHandler.RefreshSailNodeState.bind(this._dataHandler), this.InstanceRedDot.SailFlyNode.callBackFunc = this._dataHandler.RefreshSailFlyNodeState.bind(this._dataHandler), this.InstanceRedDot.SailGiftNode.callBackFunc = this._dataHandler.RefreshSailGiftNodeState.bind(this._dataHandler), this.InstanceRedDot.EightDaysNode.callBackFunc = this._dataHandler.RefreshEightDaysNode.bind(this._dataHandler), this.InstanceRedDot.EightDaysPayToggle.callBackFunc = this._dataHandler.RefreshEightDaysPayToggle.bind(this._dataHandler), this.InstanceRedDot.FavorQuickSendNode.callBackFunc = this._dataHandler.RefreshFavorQuickSendRedDot.bind(this._dataHandler), this.InstanceRedDot.HeroMagicCircleNode.callBackFunc = this._dataHandler.RefreshHeroMagicCircle.bind(this._dataHandler), this.InstanceRedDot.MagicCircleInfoAttrToggle.callBackFunc = this._dataHandler.IsMagicCircleCanUpLevel.bind(this._dataHandler), this.InstanceRedDot.MagicCircleInfoStarToggle.callBackFunc = this._dataHandler.IsMagicCircleCanUpStar.bind(this._dataHandler), this.InstanceRedDot.MagicCircleInfoTalentToggle.callBackFunc = this._dataHandler.IsMagicCircleCanUpTalent.bind(this._dataHandler), this.InstanceRedDot.MagicCircleChangeBtn.callBackFunc = this._dataHandler.RefreshMagicCircleChangeBtn.bind(this._dataHandler), this.InstanceRedDot.ActivityOpenBoxNode.callBackFunc = this._dataHandler.RefreshMagicCircleChangeBtn.bind(this._dataHandler), this.InstanceRedDot.AllianceMazeNode.callBackFunc = this._dataHandler.RefreshAllianceMazeRedDotState.bind(this._dataHandler), this.InstanceRedDot.StarPrayNode.callBackFunc = this._dataHandler.RefreshStarPrayState.bind(this._dataHandler), this.InstanceRedDot.LuckySummonNode.callBackFunc = this._dataHandler.RefreshLuckySummonNodeState.bind(this._dataHandler), this.InstanceRedDot.DrawBattleNode.callBackFunc = this._dataHandler.RefreshDrawBattleNode.bind(this._dataHandler), this.InstanceRedDot.TaskWarTokenNode.callBackFunc = this._dataHandler.RefreshTaskWarToken.bind(this._dataHandler), this.InstanceRedDot.TaskWarTokenRewardPageNode.callBackFunc = this._dataHandler.RefreshTaskWarTokenReward.bind(this._dataHandler), this.InstanceRedDot.TaskWarTokenDailyTaskPageNode.callBackFunc = this._dataHandler.RefreshTaskWarTokenDailyTask.bind(this._dataHandler), this.InstanceRedDot.TaskWarTokenIssueTaskPageNode.callBackFunc = this._dataHandler.RefreshTaskWarTokenIssueTask.bind(this._dataHandler)
                }, t.prototype.RegisteEvent = function() {
                    s.Game.EventDispatcher.On(I.EventKeys.EVENT_SET_LOCAL_STORAGE, this.OnSetLocalStorage, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserItem_Model._n_), this.OnUserItemChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserItem_Model._n_), this.OnUserItemChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.UserItem_Model._n_), this.OnUserItemChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnUserSimpleDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserFormation_Model._n_), this.OnFormationChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserFormation_Model._n_), this.OnFormationAdd, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserHero_Model._n_), this.OnUserHeroChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserHero_Model._n_), this.OnUserHeroAdd, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.UserHero_Model._n_), this.OnUserHeroRemove, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.HeroInfo_Model._n_), this.OnHeroInfoAdd, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.HeroInfo_Model._n_), this.OnHeroInfoChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.HeroSkin_Model._n_), this.OnSkinInfoAdd, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.HeroSkin_Model._n_), this.OnSkinInfoChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.UnreadMail), this.OnUserMailChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.VnPayOrder), this.OnUserVnPayOrderChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserShop_Model._n_), this.OnShopItemChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserShop_Model._n_), this.OnShopItemChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.TreasureHunt_Model._n_), this.OnTreasureHuntDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.DailyInstance_Model._n_), this.OnDailyInstanceDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.TestTower_Model._n_), this.OnTestTowerDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.WarToken_Model._n_), this.OnWarTokenDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.FriendGift), this.OnFriendDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.FriendRequest), this.OnFriendDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.TradeWarGoCityEndTime), this.OnTradeWarDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.TradeWarJoin), this.OnTradeWarDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.War), this.OnStrongholdWarDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.NoviceTrainingZoneReward), this.OnNoviceTrainingDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.AllianceBOSSLevel), this.OnAllianceBossDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.AllianceBOSSReward), this.OnAllianceBossDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.Adventure_Model._n_), this.OnAdventureDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserTask_Model._n_), this.OnTaskDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.TaskPointReward_Model._n_), this.OnTaskPointRewardDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.IntelligenceTask_Model._n_), this.OnIntelligenceDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.IntelligenceTask_Model._n_), this.OnIntelligenceDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.StarResonance_Model._n_), this.OnStarResonanceDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.EndlessAbyss_Model._n_), this.OnEndlessAbyssChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.EndlessAbyss_Model._n_), this.OnEndlessAbyssChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.EndlessAbyss_Model._n_), this.OnEndlessAbyssChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.RelicTreasureHunt_Model._n_), this.OnRelicTreasureChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.RelicTreasureHunt_Model._n_), this.OnRelicTreasureChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.RelicTreasureHunt_Model._n_), this.OnRelicTreasureChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.SecretAreaExplore_Model._n_), this.OnSecretExploreChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.SecretAreaExplore_Model._n_), this.OnSecretExploreChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.SecretAreaExplore_Model._n_), this.OnSecretExploreChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.SaintsWar_Model._n_), this.OnSaintsWarDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.SaintsWar_Model._n_), this.OnSaintsWarDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.SaintsWar_Model._n_), this.OnSaintsWarDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.AncientSacred_Model._n_), this.OnRiskPortChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.AncientSacred_Model._n_), this.OnRiskPortChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.AncientSacred_Model._n_), this.OnRiskPortChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.StarPiece_Model._n_), this.OnStarPieceDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.StarPiece_Model._n_), this.OnStarPieceDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.ExclusiveWeapon_Model._n_), this.OnStarPieceDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.ExclusiveWeapon_Model._n_), this.OnStarPieceDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.AllianceExtraInfo_Model._n_), this.OnAllianceTestChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.AllianceExtraInfo_Model._n_), this.OnAllianceTestChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.AllianceExtraInfo_Model._n_), this.OnAllianceTestChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.LuckyCharmEquip_Model._n_), this.OnLuckyCharmModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.LuckyCharmEquip_Model._n_), this.OnLuckyCharmModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.LuckyCharmEquip_Model._n_), this.OnLuckyCharmModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.MallActivity_Model._n_), this.OnMallModuleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.MallActivity_Model._n_), this.OnMallModuleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.MallActivity_Model._n_), this.OnMallModuleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.Equipment_Model._n_), this.OnEquipmentDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.Equipment_Model._n_), this.OnEquipmentDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.Equipment_Model._n_), this.OnEquipmentDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserActivity_Model._n_), this.OnUserActivityDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserActivity_Model._n_), this.OnUserActivityDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.UserActivity_Model._n_), this.OnUserActivityDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.FirstPay_Model._n_), this.OnFirstPayDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.FirstPay_Model._n_), this.OnFirstPayDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.FirstPay_Model._n_), this.OnFirstPayDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.SummonCard_Model._n_), this.OnSummonCardDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.SummonCard_Model._n_), this.OnSummonCardDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.SummonCard_Model._n_), this.OnSummonCardDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.GameModule_Model._n_), this.OnGameModuleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.GameModule_Model._n_), this.OnGameModuleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.GameModule_Model._n_), this.OnGameModuleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.GiftPack_Model._n_), this.OnGiftPackChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.GiftPack_Model._n_), this.OnGiftPackChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.GiftPack_Model._n_), this.OnGiftPackChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.AllianceId), this.OnAllianceIdChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.SendAllianceRedPacket), this.OnAllianceRedPacketSendChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.ReceiveNorAllianceRedPacket), this.OnAllianceRedPacketNormalChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.ReceiveHigAllianceRedPacket), this.OnAllianceRedPacketAdvanceChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ServerConnected, this.OnGameServerConnected, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.DaysPay), this.OnDaysPayDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserRankLike_Model._n_), this.onRankLikeChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserRankLike_Model._n_), this.onRankLikeChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.UserRankLike_Model._n_), this.onRankLikeChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.PowerCore_Model._n_), this.OnPowerCoreModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.PowerCore_Model._n_), this.OnPowerCoreModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.PowerCore_Model._n_), this.OnPowerCoreModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserIcon_Model._n_), this.OnUserIconChanged, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserIcon_Model._n_), this.OnUserIconChanged, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.UserIcon_Model._n_), this.OnUserIconChanged, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserPet_Model._n_), this.OnUserPet_ModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserPet_Model._n_), this.OnUserPet_ModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.UserPet_Model._n_), this.OnUserPet_ModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserStar_Model._n_), this.OnUserStarModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserStar_Model._n_), this.OnUserStarModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.UserStar_Model._n_), this.OnUserStarModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.UserAngel_Model._n_), this.OnAngelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.UserAngel_Model._n_), this.OnAngelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.UserAngel_Model._n_), this.OnAngelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.Strategy_Model._n_), this.OnStartegyDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.Strategy_Model._n_), this.OnStartegyDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.Strategy_Model._n_), this.OnStartegyDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.DukeScroll_Model._n_), this.OnDukeScrollDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.DukeScroll_Model._n_), this.OnDukeScrollDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.DukeScroll_Model._n_), this.OnDukeScrollDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.GemEquip_Model._n_), this.OnGemDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.GemEquip_Model._n_), this.OnGemDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.GemEquip_Model._n_), this.OnGemDataChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.StarGarrisonSlot_Model._n_), this.OnStarGarrisonChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.StarGarrisonSlot_Model._n_), this.OnStarGarrisonChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.StarGarrisonSlot_Model._n_), this.OnStarGarrisonChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.ParanormalPuzzle_Model._n_), this.OnStarPuzzleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.ParanormalPuzzle_Model._n_), this.OnStarPuzzleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.ParanormalPuzzle_Model._n_), this.OnStarPuzzleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.Artefact_Model._n_), this.OnArtifactModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.Artefact_Model._n_), this.OnArtifactModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.Artefact_Model._n_), this.OnArtifactModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.ArtefactResonance_Model._n_), this.OnArtifactResonanceModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.ArtefactResonance_Model._n_), this.OnArtifactResonanceModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.ArtefactResonance_Model._n_), this.OnArtifactResonanceModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.SuperWeapon_Model._n_), this.OnSuperWeaponModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.SuperWeapon_Model._n_), this.OnSuperWeaponModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.SuperWeapon_Model._n_), this.OnSuperWeaponModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.NewYearWeapon_Model._n_), this.OnNewYearWeaponModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.NewYearWeapon_Model._n_), this.OnNewYearWeaponModelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.NewYearWeapon_Model._n_), this.OnNewYearWeaponModelChange, this), s.Game.EventDispatcher.On(I.EventKeys.EVENT_UPDATE_RANK_DATA, this.OnUpdateRankData, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.SubscribePrivilege_Model._n_), this.OnSubscribePrivilegeChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.SubscribePrivilege_Model._n_), this.OnSubscribePrivilegeChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.SubscribePrivilege_Model._n_), this.OnSubscribePrivilegeChange, this), s.Game.EventDispatcher.On(p.GameEventIds.ChangeDataDetail.Fmt(d.MagicCircle_Model._n_), this.OnMagicCircleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.AddDataDetail.Fmt(d.MagicCircle_Model._n_), this.OnMagicCircleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.RemoveDataDetail.Fmt(d.MagicCircle_Model._n_), this.OnMagicCircleChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(g.SpecialRedDotType.AllianceBadge), this.OnUserAllianceInsigniaChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.AssaultOperationContribute), this.OnAssaultAchieveProgressChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.AssaultOperationNotGetReward), this.OnAssaultOperationNotGetRewardChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.SlgGrassExperienceMessage), this.OnAssaultGressLevelChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.SlgGrassLiquidMessage), this.OnAssaultSendSpriteWaterChange, this), s.Game.EventDispatcher.On(p.GameEventIds.SpecialRedDotChange.Fmt(p.SpecialRedDotType.SlgAllianceHelpMessage), this.OnAssaultFamilyHelpChange, this), this.InstanceRedDot.AssaultOpeationNode.callBackFunc = this._dataHandler.RefreshAssaultOperationState.bind(this._dataHandler), this.InstanceRedDot.FamilyMutualAidNode.callBackFunc = this._dataHandler.RefreshFamilyMutualAidNodeState.bind(this._dataHandler), this.InstanceRedDot.AssaultAchieveRewardsNode.callBackFunc = this._dataHandler.RefreshAssaultAchieveRewardsNodeSate.bind(this._dataHandler), this.InstanceRedDot.AssaultOperationRankingGuessNode.callBackFunc = this._dataHandler.RefreshAssaultOperationRankingGuessNodeSate.bind(this._dataHandler), this.InstanceRedDot.AssaultOperationOwnRankRewardNode.callBackFunc = this._dataHandler.RefreshAssaultOperationOwnRankRewardNodeSate.bind(this._dataHandler), this.InstanceRedDot.AssaultOperationFamilyRankRewardNode.callBackFunc = this._dataHandler.RefreshAssaultOperationFamilyRankRewardNodeSate.bind(this._dataHandler), this.InstanceRedDot.AssaultOperationFamilyNode.callBackFunc = this._dataHandler.RefreshAssaultOperationFamilyNodeSate.bind(this._dataHandler), this.InstanceRedDot.AssaultOperationFamilyWelfareNode.callBackFunc = this._dataHandler.RefreshAssaultOperationFamilyWelfareNodeState.bind(this._dataHandler), this.InstanceRedDot.AssaultOperationSpiritCrystalGatherNode.callBackFunc = this._dataHandler.RefreshAssaultOperationSpiritCrystalGatherSate.bind(this._dataHandler), this.InstanceRedDot.AssaultOperationRankRewardNode.callBackFunc = this._dataHandler.RefreshAssaultOperationRankRewardNodeSate.bind(this._dataHandler)
                }, t.prototype.OnSetLocalStorage = function(e) {
                    switch (e) {
                        case v.GameRecordDefine.ActivityPreviewHaveSeen.Name + (v.GameRecordDefine.ActivityPreviewHaveSeen.NeedUID ? y.DataCenter.Instance.Uid : ""):
                            this.RedDot.LeftVerticalBtnNode.NeedRefresh = !0
                    }
                    this.RefreshRedDotState()
                }, t.prototype.OnUserSimpleDataChange = function(e) {
                    for (var t in e) switch (Number.parseInt(t)) {
                        case g.UserDataKey.StarHolyStatueHeros:
                            this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarHolyStatueToggleNode.NeedRefresh = !0, this.RedDot.StarHolyStatueUpGradeBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.FormationsRewards:
                            this.RedDot.MainBattleNode.NeedRefresh = !0, this.RedDot.WantStrongBtnNode.NeedRefresh = !0, this.RedDot.RecommendFormationToggleBtnNode.NeedRefresh = !0, this.RedDot.SystemFormationToggleBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.ClockInInfo:
                            this.RedDot.DailySignNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.PlayerLevel:
                            this.RedDot.MallGrowthFundNode.NeedRefresh = !0, this.RedDot.MallGrowthHero.NeedRefresh = !0, this.RedDot.MallGrowthWishCall.NeedRefresh = !0, this.RedDot.MallGrowthSummonChaos.NeedRefresh = !0, this.RedDot.MallGrowthPersonailty.NeedRefresh = !0, this.RedDot.MallGrowthSummonPerson.NeedRefresh = !0, this.RedDot.MallGrowthPersonalityLR.NeedRefresh = !0, this.RedDot.MallGrowthWishCallLR.NeedRefresh = !0, this.RedDot.LevelGiftNode.NeedRefresh = !0, this.RedDot.OracleSummonBtnNode.NeedRefresh = !0, this.RedDot.OracleSummonTenBtnNode.NeedRefresh = !0, this.RedDot.CrystalSummonBtnNode.NeedRefresh = !0, this.RedDot.BagPropNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.VipLevel:
                            this.RedDot.LevelGiftNode.NeedRefresh = !0, this.RedDot.LookVIPNode.NeedRefresh = !0, this.RedDot.MallVipNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.VipGift:
                            this.RedDot.LookVIPNode.NeedRefresh = !0, this.RedDot.MallVipNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.LastLogin:
                            this.RedDot.MallSuperFundNode.NeedRefresh = !0, this.RedDot.MallRespectFundNode.NeedRefresh = !0, this.RedDot.MallChaosFundNode.NeedRefresh = !0, this.RedDot.MallCheapFundNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.HangUpActivityId:
                            this._expiredHangUpDropExchangeItemId = null, this.RedDot.HangUpDropNodeCurrExchange.NeedRefresh = !0, this.RedDot.HangUpDropNodeExpireExchange && (this.RedDot.HangUpDropNodeExpireExchange.NeedRefresh = !0);
                            break;
                        case g.UserDataKey.AllianceTestCount:
                            this.RedDot.AllianceTestBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.LetterFromDeveloper:
                            this.RedDot.LetterDeveloperRewardNode1.NeedRefresh = !0, this.RedDot.LetterDeveloperRewardNode2.NeedRefresh = !0, this.RedDot.LetterDeveloperRewardNode3.NeedRefresh = !0, this.RedDot.LetterDeveloperReceiveBtnNode.NeedRefresh = !0, this.RedDot.IdleLetterDeveloperNode.NeedRefresh = !0, this.RedDot.LetterDeveloperNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.MainLineProgress:
                        case g.UserDataKey.AdventureRewardIndex:
                            this.RedDot.LevelPassRewardNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.OnlineRewardIndex:
                            this.RedDot.OnlineRewardNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.LevelGiftNormalIndex:
                        case g.UserDataKey.LevelGiftAdvanceIndex:
                            this.RedDot.LevelGiftNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.BuyCoinCount1:
                            this.RedDot.CoinPurchaseNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.Power:
                            this.RedDot.CoinInstanceBtnNode.NeedRefresh = !0, this.RedDot.ExpInstanceBtnNode.NeedRefresh = !0, this.RedDot.FighterInstanceBtnNode.NeedRefresh = !0, this.RedDot.RuneInstanceBtnNode.NeedRefresh = !0, this.RedDot.AngelInstanceBtnNode.NeedRefresh = !0, this.RedDot.GemInstanceBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.NewPlayerStrategy:
                            this.RedDot.FreshStrategyToggleBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.SeniorArenaStoredCoin:
                            this.RedDot.SeniorArenaResourceCollect.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.SeniorArenaChallengeCount:
                            this.RedDot.SeniorArenaFreeChallenge.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.LadderRaceBuyCount:
                        case p.UserDataKey.LadderRaceChallengeCount:
                            this.RedDot.CrossServerLadderNode.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.DrawedOuterRewards:
                            this.RedDot.AttentionGiftNode.NeedRefresh = !0, this.RedDot.AttentionLineNode.NeedRefresh = !0, this.RedDot.AttentionTwitterNode.NeedRefresh = !0, this.RedDot.BindSNSBtnNode.NeedRefresh = !0, this.RedDot.BindSNSNode.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.ArenaChallengeCount:
                            f.EZLog.Log("SimpleData UserDataKey ArenaChallengeCount Change"), this.RedDot.ArenaNode.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.ChaosSummonRemainedPoint:
                            this.RedDot.ChaosSummonGetWayNode.NeedRefresh = !0, this.InstanceRedDot.ChaosSummonGetWayNode.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.AllianceChallengeStatus:
                            this.RedDot.AllianceWarBtnNode.NeedRefresh = !0, this.RedDot.AllianceChalleneg1BtnNode.NeedRefresh = !0, this.RedDot.AllianceChalleneg2BtnNode.NeedRefresh = !0, this.RedDot.AllianceChalleneg3BtnNode.NeedRefresh = !0, this.RedDot.AllianceBeatBtnNode.NeedRefresh = !0, this.RedDot.AllianceSpyBtnNode.NeedRefresh = !0, this.RedDot.AllianceAttackBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.StarHolyStatuePoint:
                            this.RedDot.StarTacticalReceiveBtnNode.NeedRefresh = !0, this.RedDot.StarTacticalBtnNode.NeedRefresh = !0, this.RedDot.StarTacticalLevelUpButtonNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.CrossZoneContinueWarRankChallengeCount:
                            this.RedDot.ContinuousFightMatchBtn.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.StarHolyStatueLevel:
                            this.RedDot.StarHolyStatueUpGradeBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.SPHeroTryMapIds:
                            this.InstanceRedDot.ChaosSummonTrialHeroNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.PetWishCount:
                        case g.UserDataKey.PetWishItemId:
                        case g.UserDataKey.DrawedRankRewards:
                            this.RedDot.RankZoneNode.NeedRefresh = !0, this.RedDot.RankCrossZoneNode.NeedRefresh = !0, this.RedDot.LeftVerticalBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.ActivePersonalityIdLevels:
                        case g.UserDataKey.ActiveSkinIds:
                            this.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, this.RedDot.SimplifyCollectionPavilionEntryNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.StarPieceResonance:
                            this.RedDot.StarPieceResonanceEntryNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.WarPointTs:
                            this.RedDot.StrongholdWarActivePointBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.Designation:
                            this.RedDot.UserTitlePanel.NeedRefresh = !0, this.RedDot.UserTitlePromotionBtn.NeedRefresh = !0, this.RedDot.ShopBtnNode.NeedRefresh = !0;
                        case g.UserDataKey.Duke:
                            this.RedDot.DukeEntry.NeedRefresh = !0, this.RedDot.DukeBtnNode.NeedRefresh = !0, this.RedDot.DukeScrollEntry.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.TotalPay:
                            this.RedDot.TimeLimitActivityFrame.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.GemGalleryLevel:
                            this.RedDot.GemGalleryLevelUp.NeedRefresh = !0, this.RedDot.GemGallerySlot1.NeedRefresh = !0, this.RedDot.GemGallerySlot2.NeedRefresh = !0, this.RedDot.GemGallerySlot3.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.ProgressRewardsSenior:
                            this.RedDot.ProgressRewardsSenior.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.ProgressRewardsPersonality:
                            this.RedDot.ProgressRewardsPersonality.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.ExclusiveWeaponGalleryLevel:
                            this.RedDot.ExclusiveGalleryUpgradeButtonNode.NeedRefresh = !0, this.RedDot.ExclusiveGalleryUpgradeTabNode.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.LuckyCharmShowHouseLevel:
                            this.RedDot.LuckyCharmGalleryUpLevel.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.PetShowHouseLevel:
                            this.RedDot.PetGalleryUpLevel.NeedRefresh = !0;
                            break;
                        case p.UserDataKey.OldPlayerRecall:
                            this.RedDot.OldPlayerRecallToggleDailyReward.NeedRefresh = !0, this.RedDot.OldPlayerRecallToggleFreeReward.NeedRefresh = !0, this.RedDot.OldPlayerRecallToggleGift.NeedRefresh = !0, this.RedDot.OldPlayerRecallToggleTask.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.GodLandDuelDailyCount:
                            this.RedDot.AngelPvpMatchBtn.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.ProgressRewardsDaily:
                            this.RedDot.ProgressRewardsDaily.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.DailyBuff:
                            this.RedDot.DailyBuffNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.SnsRewards:
                            this.RedDot.SNSRewardNode.NeedRefresh = !0, this.RedDot.SNSRewardEntry.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.PetRefineLevel:
                        case g.UserDataKey.PetRefineXp:
                        case g.UserDataKey.PetNest:
                            this.RedDot.PetToggleNode.NeedRefresh = !0, this.RedDot.AngelEntrance.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.StrongPathCount:
                        case g.UserDataKey.StrongPathTasks:
                            this.RedDot.StrongPathNode.NeedRefresh = !0, this.RedDot.StrongPathWishListNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.PowerCoreGalleryLevel:
                            this.RedDot.PowerCoreGalleryUpLevel.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.StarPowerAwaken:
                            this.RedDot.StarPowerToggleNode.NeedRefresh = !0, this.RedDot.StarTempleBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.StarTowerSuppressCurrent:
                        case g.UserDataKey.StarTowerSuppressMax:
                            this.RedDot.ClimbTowerBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.AllianceRedPacketOpenCount:
                            this.RedDot.AllianceRedPacketNormal.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.AllianceBossApply:
                        case g.UserDataKey.AllianceBossReward:
                            this.RedDot.AllianceBossApplyBtnNode.NeedRefresh = !0, this.RedDot.AllianceBossBtnNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.WorldBossChallengeCount:
                            this.RedDot.WorldBossNode.NeedRefresh = !0;
                            break;
                        case g.UserDataKey.ArtefactRelicUsedCount:
                            this.RedDot.HolyRelicFight.NeedRefresh = !0
                    }
                    this.RefreshRedDotState()
                }, t.prototype.RefreshRedDotNode = function(e) {
                    e.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.RefreshInstanceRedDotNode = function(e, t) {
                    e.NeedRefresh = !0, this.ConfigInstanceRedDotState(e, t), this.RecurseInstanceRedDotParentNodes(e, t)
                }, t.prototype.RecurseInstanceRedDotParentNodes = function(e, t) {
                    var n = e.Parent;
                    n && (n.NeedRefresh = !0, this.ConfigInstanceRedDotState(e, t), n.Parent && this.RecurseInstanceRedDotParentNodes(n, t))
                }, t.prototype.ConfigInstanceRedDotState = function(e, t) {
                    var n = e.IsActive;
                    if (e.NeedRefresh) {
                        var o = !0,
                            r = !0;
                        e.GameModuleId && (o = _.default.Instance.IsGameModuleUnlock(e.GameModuleId)[0], r = _.default.Instance.IsGameModuleOpen(e.GameModuleId)), o && r ? e.callBackFunc && (n = e.callBackFunc(t)) : n = !1
                    }
                    e.IsActive = n, e.NeedRefresh = !1, e.RedDotAsset && (e.RedDotAsset.active = n)
                }, t.prototype.OnUserHeroChange = function() {
                    this.RedDot.MainHeroNode.NeedRefresh = !0, this.RedDot.HeroListNode.NeedRefresh = !0, this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarPieceToggleNode.NeedRefresh = !0, this.RedDot.SpecialStarPieceNode.NeedRefresh = !0, this.RedDot.GeneralStarPieceNode.NeedRefresh = !0, this.RedDot.ExclusiveWeaponNode.NeedRefresh = !0, this.InstanceRedDot.HeroTalentActivateNode.NeedRefresh = !0, this.InstanceRedDot.HeroPveTalentNode.NeedRefresh = !0, this.InstanceRedDot.HeroPvpTalentNode.NeedRefresh = !0, this.InstanceRedDot.TalentResonanceUpgradeNode.NeedRefresh = !0, this.InstanceRedDot.HeroTalentResonanceEntranceNode.NeedRefresh = !0, this.InstanceRedDot.HeroTalentEntranceNode.NeedRefresh = !0, this.RedDot.StarGarrisonToggleNode.NeedRefresh = !0, this.RedDot.ClimbTowerBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnHeroInfoAdd = function() {
                    this.RedDot.MainBattleNode.NeedRefresh = !0, this.RedDot.WantStrongBtnNode.NeedRefresh = !0, this.RedDot.RecommendFormationToggleBtnNode.NeedRefresh = !0, this.RedDot.SystemFormationToggleBtnNode.NeedRefresh = !0, this.RedDot.HeroHandbookNode.NeedRefresh = !0, this.RedDot.CustomizeMainSceneTagNode0.NeedRefresh = !0, this.RedDot.CustomizeMainSceneTagNode1.NeedRefresh = !0, this.InstanceRedDot.UpgradeStarNode.NeedRefresh = !0, this.InstanceRedDot.OptionalUpgradeStarNode.NeedRefresh = !0, this.InstanceRedDot.HerosRisingStarGiftPanel.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnHeroInfoChange = function() {
                    this.RedDot.HeroHandbookNode.NeedRefresh = !0, this.RedDot.CustomizeMainSceneTagNode0.NeedRefresh = !0, this.InstanceRedDot.UpgradeStarNode.NeedRefresh = !0, this.InstanceRedDot.OptionalUpgradeStarNode.NeedRefresh = !0, this.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, this.RedDot.SimplifyCollectionPavilionEntryNode.NeedRefresh = !0, this.RedDot.HeroTempleElementToggleNode.NeedRefresh = !0, this.RedDot.HeroTempleLRToggleNode.NeedRefresh = !0, this.RedDot.HeroTempleChaosToggleNode.NeedRefresh = !0, this.RedDot.HeroFavorNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnSkinInfoAdd = function() {
                    this.RedDot.CustomizeMainSceneTagNode1.NeedRefresh = !0, this.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, this.RedDot.SimplifyCollectionPavilionEntryNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnSkinInfoChange = function() {
                    this.RedDot.CustomizeMainSceneTagNode1.NeedRefresh = !0, this.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, this.RedDot.SimplifyCollectionPavilionEntryNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserHeroAdd = function() {
                    this.RedDot.HeroPalaceBtnNode.NeedRefresh = !0, this.RedDot.SimplifyHeroPalaceBtnNode.NeedRefresh = !0, this.RedDot.HeroMergeBtnNode.NeedRefresh = !0, this.RedDot.ShopTypeNode2.NeedRefresh = !0, this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarPieceToggleNode.NeedRefresh = !0, this.RedDot.GeneralStarPieceNode.NeedRefresh = !0, this.RedDot.SpecialStarPieceNode.NeedRefresh = !0, this.RedDot.ExclusiveWeaponNode.NeedRefresh = !0, this.RedDot.MainHeroNode.NeedRefresh = !0, this.RedDot.HeroListNode.NeedRefresh = !0, this.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, this.RedDot.SimplifyCollectionPavilionEntryNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserHeroRemove = function() {
                    this.RedDot.HeroPalaceBtnNode.NeedRefresh = !0, this.RedDot.SimplifyHeroPalaceBtnNode.NeedRefresh = !0, this.RedDot.HeroMergeBtnNode.NeedRefresh = !0, this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarPieceToggleNode.NeedRefresh = !0, this.RedDot.SpecialStarPieceNode.NeedRefresh = !0, this.RedDot.GeneralStarPieceNode.NeedRefresh = !0, this.RedDot.ExclusiveWeaponNode.NeedRefresh = !0, this.RedDot.MainHeroNode.NeedRefresh = !0, this.RedDot.HeroListNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserItemChange = function(e) {
                    var t = this;
                    this.RedDot.MainBagNode.NeedRefresh = !0, Object.keys(e).forEach(function(e) {
                        var n = Number.parseInt(e);
                        switch (n) {
                            case p.CommonItemId.Coin:
                                t.RedDot.CoinPurchaseNode.NeedRefresh = !0, t.RedDot.HeroListNode.NeedRefresh = !0, t.RedDot.AllianceTalentBtnNode.NeedRefresh = !0, t.RedDot.StarPieceToggleNode.NeedRefresh = !0, t.RedDot.SpecialStarPieceNode.NeedRefresh = !0, t.RedDot.GeneralStarPieceNode.NeedRefresh = !0, t.RedDot.ExclusiveWeaponNode.NeedRefresh = !0, t.RedDot.BagLuckyCharmNode.NeedRefresh = !0, t.RedDot.BagRuneFunctionBtnNode.NeedRefresh = !0, t.RedDot.MagicResearchMainScene.NeedRefresh = !0, t.RedDot.MagicCircleToggleNode.NeedRefresh = !0, t.RedDot.MagicCircleHandBookNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.AllianceMedal:
                                t.RedDot.AllianceTalentBtnNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.XpWater:
                                t.RedDot.HeroListNode.NeedRefresh = !0, t.RedDot.MagicResearchMainScene.NeedRefresh = !0, t.RedDot.MagicCircleToggleNode.NeedRefresh = !0, t.RedDot.MagicCircleHandBookNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.SteppingStone:
                                t.RedDot.HeroListNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.Intelligence:
                                t.RedDot.MainBattleNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.StarResonanceCrumbs:
                                t.RedDot.StarTempleBtnNode.NeedRefresh = !0, t.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, t.RedDot.StarResonanceToggleNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.StarHolyStatueEnergy:
                                t.RedDot.StarTempleBtnNode.NeedRefresh = !0, t.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, t.RedDot.StarHolyStatueToggleNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.StarGem:
                                t.RedDot.StarTempleBtnNode.NeedRefresh = !0, t.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, t.RedDot.StarHolyStatueToggleNode.NeedRefresh = !0, t.RedDot.StarHolyStatueGemBtnNode.NeedRefresh = !0, t.RedDot.StarHolyStatueInlayBtnNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.StarPowerMaterialHeart:
                            case p.CommonItemId.StarPowerMaterialPower:
                            case p.CommonItemId.StarPowerMaterialTech:
                            case p.CommonItemId.StarPowerMaterialBreak:
                            case p.CommonItemId.StarPowerMaterialFight:
                                t.RedDot.StarTempleBtnNode.NeedRefresh = !0, t.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, t.RedDot.StarPowerToggleNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.StarPieceIntentsifyMaterial:
                            case p.CommonItemId.StarPieceNormalMaterialBlue:
                            case p.CommonItemId.StarPieceNormalMaterialPurple:
                            case p.CommonItemId.StarPieceNormalMaterialOrange:
                            case p.CommonItemId.StarPieceNormalMaterialRed:
                                t.RedDot.StarTempleBtnNode.NeedRefresh = !0, t.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, t.RedDot.StarPieceToggleNode.NeedRefresh = !0, t.RedDot.GeneralStarPieceNode.NeedRefresh = !0, t.RedDot.SpecialStarPieceNode.NeedRefresh = !0, t.RedDot.ExclusiveWeaponNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.SmelterSmeltMaterial:
                            case p.CommonItemId.SmelterSmeltCount:
                                t.RedDot.HolyFurnaceNode.NeedRefresh = !0, t.RedDot.HolyFurnaceButton1Node.NeedRefresh = !0, t.RedDot.HolyFurnaceButton5Node.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.VipPoint:
                                t.RedDot.FirstChargeNode.NeedRefresh = !0, t.RedDot.IdleFirstChargeNode.NeedRefresh = !0;
                                break;
                            case t.ExpiredHangUpDropExchangeItemId():
                                t.RedDot.HangUpDropNodeExpireExchange.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.HolyEqptXpPrimary:
                            case p.CommonItemId.HolyEqptXpMiddle:
                            case p.CommonItemId.HolyEqptXpAdvanced:
                            case p.CommonItemId.HolyEqptXpSuper:
                            case p.CommonItemId.BlessingPowder:
                            case p.CommonItemId.HolyEqptStarPrimary:
                            case p.CommonItemId.HolyEqptStarMiddle:
                            case p.CommonItemId.HolyEqptStarAdvanced:
                                t.RedDot.HeroListNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.DiceId:
                                t.RedDot.RiskPortRelicBtnNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.Diamond:
                            case p.CommonItemId.SeniorSummonTicket:
                                t.RedDot.SummonQueenSeniorOnceBtn.NeedRefresh = !0, t.RedDot.SummonQueenSeniorTenBtn.NeedRefresh = !0, t.RedDot.SummonPersonalOnceBtn.NeedRefresh = !0, t.RedDot.SummonPersonalTenBtn.NeedRefresh = !0;
                            case p.CommonItemId.JuniorSummonTicket:
                                t.RedDot.SummonQueenJuniorOnceBtn.NeedRefresh = !0, t.RedDot.SummonQueenJuniorTenBtn.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.PersonalSwitchTicket:
                                t.RedDot.SummonPersonalOnceBtn.NeedRefresh = !0, t.RedDot.SummonPersonalTenBtn.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.SummonScore:
                                t.RedDot.SummonQueenScoreBtn.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.OracleExchangeItemId:
                                t.RedDot.CrystalSummonBtnNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.OracleDrawItemId:
                                t.RedDot.OracleSummonTenBtnNode.NeedRefresh = !0, t.RedDot.OracleSummonBtnNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.AngelWings:
                                t.InstanceRedDot.SailFlyNode.NeedRefresh = !0;
                                break;
                            case 251:
                            case 252:
                            case 253:
                                t.InstanceRedDot.FatePrayNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.NormalTreasureTicket:
                                t.RedDot.NormalHuntBtnNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.AdvanceTreasureTicket:
                                t.RedDot.AdvanceHuntBtnNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.OracleShopItemId:
                                t.RedDot.ElementSummonShopNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.ChaosSummonTicket:
                                t.RedDot.ChaosSummonDrawOnceNode.NeedRefresh = !0, t.RedDot.ChaosSummonDrawTenNode.NeedRefresh = !0, t.InstanceRedDot.ChaosSummonDrawOnceNode.NeedRefresh = !0, t.InstanceRedDot.ChaosSummonDrawTenNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.ChaosPersonalityTicket:
                                t.InstanceRedDot.ChaosPersonalityDrawOnceNode.NeedRefresh = !0, t.InstanceRedDot.ChaosPersonalityDrawTenNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.CrownCoin:
                                t.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, t.RedDot.SimplifyCollectionPavilionEntryNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.ProgressRewardsSenior:
                                t.RedDot.ProgressRewardsSenior.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.ProgressRewardsPersonality:
                                t.RedDot.ProgressRewardsPersonality.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.DukePoint:
                                t.RedDot.DukeScrollEntry.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.WarriorTelekinesis:
                            case p.CommonItemId.MasterTelekinesis:
                            case p.CommonItemId.TankTelekinesis:
                            case p.CommonItemId.SupportTelekinesis:
                                t.RedDot.ExclusiveGalleryUpgradeButtonNode.NeedRefresh = !0, t.RedDot.ExclusiveGalleryUpgradeTabNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.PetStone:
                                t.RedDot.PetGalleryUpLevel.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.ProgressRewardsDaily:
                                t.RedDot.ProgressRewardsDaily.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.PetEssence:
                            case p.CommonItemId.PetRefine:
                            case p.CommonItemId.PetMagic1:
                            case p.CommonItemId.PetMagic2:
                            case p.CommonItemId.PetMagic3:
                                t.RedDot.PetToggleNode.NeedRefresh = !0, t.RedDot.AngelEntrance.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.MagicCircleMaterial1:
                            case p.CommonItemId.MagicCircleMaterial2:
                                t.RedDot.MagicResearchMainScene.NeedRefresh = !0, t.RedDot.MagicCircleToggleNode.NeedRefresh = !0, t.RedDot.MagicCircleHandBookNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.ArenaChallengeTicket:
                                t.RedDot.ArenaNode.NeedRefresh = !0;
                                break;
                            case p.CommonItemId.AllianceMazeHolyExp:
                                t.RedDot.AllianceMazeBtnNode.NeedRefresh = !0, t.InstanceRedDot.AllianceMazeNode.NeedRefresh = !0
                        }
                        var o = m.ConfigDataComponent.Instance.GetConfigById(h.ItemBase_Config, n);
                        if (o) switch (o.Type) {
                            case g.ItemType.TemplePiece:
                            case g.ItemType.ExclusiveTemplePiece:
                                t.RedDot.StarTempleBtnNode.NeedRefresh = !0, t.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, t.RedDot.StarPieceToggleNode.NeedRefresh = !0, t.RedDot.StarPieceBagBtnNode.NeedRefresh = !0, t.RedDot.StarPieceResolveBtnNode.NeedRefresh = !0, t.RedDot.GeneralStarPieceNode.NeedRefresh = !0, t.RedDot.SpecialStarPieceNode.NeedRefresh = !0, t.RedDot.ExclusiveWeaponNode.NeedRefresh = !0;
                                break;
                            case g.ItemType.Equip:
                            case g.ItemType.HolyEquip:
                            case g.ItemType.LuckyCharm:
                                t.RedDot.HeroListNode.NeedRefresh = !0;
                                break;
                            case g.ItemType.ItemPiece:
                                t.RedDot.BagFragmentNode.NeedRefresh = !0;
                                var r = m.ConfigDataComponent.Instance.GetConfigById(h.ItemPiece_Config, n);
                                if (r) switch (r.SubType) {
                                    case p.ItemPieceType.HeroPiece:
                                        t.RedDot.HeroListNode.NeedRefresh = !0;
                                        break;
                                    case p.ItemPieceType.ArtefactPiece:
                                        t.RedDot.StarArtifactToggleNode.NeedRefresh = !0
                                }
                                break;
                            case g.ItemType.Consume:
                                t.RedDot.BagPropNode.NeedRefresh = !0, m.ConfigDataComponent.Instance.GetConfigById(h.ItemConsume_Config, n).SubType == p.ConsumeItemType.ManualBox && (t.RedDot.HeroListNode.NeedRefresh = !0);
                                break;
                            case g.ItemType.Pet:
                                t.RedDot.PetToggleNode.NeedRefresh = !0, t.RedDot.PetTabDecomposeBtn.NeedRefresh = !0, t.RedDot.AngelEntrance.NeedRefresh = !0;
                                break;
                            case g.ItemType.FavorGift:
                                t.RedDot.HeroFavorNode.NeedRefresh = !0;
                                break;
                            case g.ItemType.MagicCircle:
                                t.RedDot.MagicResearchMainScene.NeedRefresh = !0, t.RedDot.MagicCircleToggleNode.NeedRefresh = !0, t.RedDot.MagicCircleHandBookNode.NeedRefresh = !0, t.RedDot.MagicCircleDecomposeBtn.NeedRefresh = !0
                        }
                    }), this.RedDot.StarResonanceUpgradeBtnNode.NeedRefresh = !0, this.RedDot.GemFurnaceNode.NeedRefresh = !0, this.InstanceRedDot.TacticalAttrLevelUpNode.NeedRefresh = !0, this.InstanceRedDot.TacticalSkillLevelUpNode.NeedRefresh = !0, this.RedDot.TacticalNode.NeedRefresh = !0, this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarResonanceToggleNode.NeedRefresh = !0, this.InstanceRedDot.HeroFetterSkillUpNode.NeedRefresh = !0, this.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, this.RedDot.SimplifyCollectionPavilionEntryNode.NeedRefresh = !0, this.RedDot.HolyEquipmentGalleryToggleNode.NeedRefresh = !0, this.RedDot.SuperWeaponToggleNode.NeedRefresh = !0, this.RedDot.NewYearWeaponToggleNode.NeedRefresh = !0, this.InstanceRedDot.LuckySummonNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnFormationAdd = function() {
                    this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarPieceToggleNode.NeedRefresh = !0, this.RedDot.GeneralStarPieceNode.NeedRefresh = !0, this.RedDot.SpecialStarPieceNode.NeedRefresh = !0, this.RedDot.ExclusiveWeaponNode.NeedRefresh = !0, this.RedDot.MainHeroNode.NeedRefresh = !0, this.RedDot.HeroListNode.NeedRefresh = !0, this.RedDot.AllianceWarBtnNode.NeedRefresh = !0, this.RedDot.AllianceAtkFormationBtnNode.NeedRefresh = !0, this.RedDot.AllianceDefFormationBtnNode.NeedRefresh = !0, this.RedDot.AllianceSetAtkTeamBtnNode.NeedRefresh = !0, this.RedDot.AllianceSetLogisticsTeamBtnNode.NeedRefresh = !0, this.RedDot.AllianceSetDefTeamBtnNode.NeedRefresh = !0, this.RedDot.HeroFavorNode.NeedRefresh = !0, this.RedDot.ContinuousFightFormationBtn.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnFormationChange = function() {
                    this.RedDot.HeroPalaceBtnNode.NeedRefresh = !0, this.RedDot.HeroMergeBtnNode.NeedRefresh = !0, this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarPieceToggleNode.NeedRefresh = !0, this.RedDot.GeneralStarPieceNode.NeedRefresh = !0, this.RedDot.SpecialStarPieceNode.NeedRefresh = !0, this.RedDot.ExclusiveWeaponNode.NeedRefresh = !0, this.RedDot.MainHeroNode.NeedRefresh = !0, this.RedDot.HeroListNode.NeedRefresh = !0, this.RedDot.AllianceWarBtnNode.NeedRefresh = !0, this.RedDot.AllianceAtkFormationBtnNode.NeedRefresh = !0, this.RedDot.AllianceDefFormationBtnNode.NeedRefresh = !0, this.RedDot.AllianceSetAtkTeamBtnNode.NeedRefresh = !0, this.RedDot.AllianceSetLogisticsTeamBtnNode.NeedRefresh = !0, this.RedDot.AllianceSetDefTeamBtnNode.NeedRefresh = !0, this.RedDot.RankMatchArenaFormationNode.NeedRefresh = !0, this.RedDot.HeroFavorNode.NeedRefresh = !0, this.RedDot.ContinuousFightFormationBtn.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnStarPieceDataChange = function() {
                    this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarPieceToggleNode.NeedRefresh = !0, this.RedDot.GeneralStarPieceNode.NeedRefresh = !0, this.RedDot.SpecialStarPieceNode.NeedRefresh = !0, this.RedDot.ExclusiveWeaponNode.NeedRefresh = !0, this.RedDot.StarPieceResonanceEntryNode.NeedRefresh = !0, this.RedDot.ExclusiveGalleryCollectButtonNode.NeedRefresh = !0, this.RedDot.ExclusiveGalleryAnyWeaponOperationalNode.NeedRefresh = !0, this.RedDot.ExclusiveGalleryCollectTabNode.NeedRefresh = !0, this.RedDot.ExclusiveGalleryUpgradeButtonNode.NeedRefresh = !0, this.RedDot.ExclusiveGalleryUpgradeTabNode.NeedRefresh = !0, this.RedDot.SuperWeaponToggleNode.NeedRefresh = !0, this.RedDot.MainHeroNode.NeedRefresh = !0, this.RedDot.HeroListNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.ExpiredHangUpDropExchangeItemId = function() {
                    if (this._expiredHangUpDropExchangeItemId) return this._expiredHangUpDropExchangeItemId;
                    var e = y.DataCenter.Instance.GetIntData(g.UserDataKey.LastHangUpActivityId);
                    if (0 == e) return -1;
                    var t = m.ConfigDataComponent.Instance.GetConfigById(h.HangUpDrop_Config, e);
                    return y.DataCenter.Instance.GetIntData(g.UserDataKey.HangUpActivityTime) + t.ExchangeDays * g.Etc.DayDuration - C.RpcComponent.Instance.ServerTime < 0 ? -1 : (this._expiredHangUpDropExchangeItemId = t.Items[0].Items[0], this._expiredHangUpDropExchangeItemId)
                }, t.prototype.OnShopItemChange = function() {
                    this.RedDot.ShopBtnNode.NeedRefresh = !0, this.RedDot.SimplifyShopBtnNode.NeedRefresh = !0, this.RedDot.ShopTypeNode1.NeedRefresh = !0, this.RedDot.ShopTypeNode2.NeedRefresh = !0, this.RedDot.HangUpDropNodeCurrExchange.NeedRefresh = !0, this.RedDot.AllianceShopBtnNode.NeedRefresh = !0, this.RedDot.HangUpDropNodeExpireExchange && (this.RedDot.HangUpDropNodeExpireExchange.NeedRefresh = !0), this.RefreshRedDotState()
                }, t.prototype.OnTreasureHuntDataChange = function() {
                    this.RedDot.LuckyWheelBtnNode.NeedRefresh = !0, this.RedDot.NormalHuntBtnNode.NeedRefresh = !0, this.RedDot.AdvanceHuntBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserMailChange = function(e) {
                    f.EZLog.Log("\u90ae\u4ef6\u5c0f\u7ea2\u70b9\u72b6\u6001---\x3e" + e), this.RedDot.MailBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserVnPayOrderChange = function() {
                    if (y.DataCenter.Instance.GetSpecialRedDot(p.SpecialRedDotType.VnPayOrder)) {
                        var e = new d.Req_Player_ProcessCacheEvent;
                        e.CacheEventType = p.CacheEventType.VnPayOrder, C.RpcComponent.Instance.Call(e, function(e) {
                            if (e.Rewards.length > 0) {
                                var t = e.Rewards.findIndex(function(e) {
                                    return -4 == e.ItemId
                                });
                                if (t >= 0) {
                                    var n = e.Rewards.splice(t, 1);
                                    b.default.Instance.FireBaseLogEventPay("purchase", n[0].Count)
                                }
                            }
                            e.Rewards.length > 0 && s.UIManager.Instance.ShowUIPanel(l.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                        }, function(e, t) {
                            s.EZLog.Error("process vn pay order error: code: " + e + ", msg: " + t)
                        })
                    }
                }, t.prototype.OnDailyInstanceDataChange = function() {
                    this.RedDot.DailyInstanceBtnNode.NeedRefresh = !0, this.RedDot.CoinInstanceBtnNode.NeedRefresh = !0, this.RedDot.ExpInstanceBtnNode.NeedRefresh = !0, this.RedDot.FighterInstanceBtnNode.NeedRefresh = !0, this.RedDot.RuneInstanceBtnNode.NeedRefresh = !0, this.RedDot.AngelInstanceBtnNode.NeedRefresh = !0, this.RedDot.GemInstanceBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnTestTowerDataChange = function() {
                    this.RedDot.ClimbTowerBtnNode.NeedRefresh = !0, this.RedDot.ElementScriptureBtnNode.NeedRefresh = !0, this.RedDot.ElementWarTokenPeriodsBtnNode.NeedRefresh = !0, this.RedDot.ClimbTowerToggleNormalNode.NeedRefresh = !0, this.RedDot.ClimbTowerToggleHardNode.NeedRefresh = !0, this.RedDot.StarPowerToggleNode.NeedRefresh = !0, this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnWarTokenDataChange = function(e) {
                    var t = m.ConfigDataComponent.Instance.GetConfigById(h.GameModule_Config, p.GameModuleType.ElementTower),
                        n = m.ConfigDataComponent.Instance.GetConfigById(h.GameModule_Config, p.GameModuleType.ElementTower2),
                        o = m.ConfigDataComponent.Instance.GetConfigById(h.GameModule_Config, p.GameModuleType.HolyRelicsWarToken).WarTokenId;
                    for (var r in e) {
                        var i = Number.parseInt(r);
                        if (t.WarTokenId.includes(i) || n.WarTokenId.includes(i)) this.RedDot.ClimbTowerBtnNode.NeedRefresh = !0, this.RedDot.ClimbTowerToggleNormalNode.NeedRefresh = !0, this.RedDot.ElementScriptureBtnNode.NeedRefresh = !0, this.RedDot.ElementWarTokenPeriodsBtnNode.NeedRefresh = !0;
                        else if (o.includes(i)) this.RedDot.HolyRelicWarToken.NeedRefresh = !0;
                        else switch (i) {
                            case p.WarTokenType.Active:
                                this.RedDot.MallActiveCommandNode.NeedRefresh = !0, this.RedDot.TaskDailyWarTokenBtnNode.NeedRefresh = !0, this.RedDot.TaskBtnEntrance.NeedRefresh = !0;
                                break;
                            case p.WarTokenType.SacredTreasury:
                                this.RedDot.AncientHolyAreaWarTokenNode.NeedRefresh = !0;
                                break;
                            case p.WarTokenType.RelicTreasureHunt:
                                this.RedDot.RelicTreasureHuntWarTokenNode.NeedRefresh = !0
                        }
                        this.RedDot.WarTokenListNode.NeedRefresh = !0
                    }
                    this.RefreshRedDotState()
                }, t.prototype.OnFriendDataChange = function() {
                    this.RedDot.FriendBtnNode.NeedRefresh = !0, this.RedDot.FriendOneKeyBtnNode.NeedRefresh = !0, this.RedDot.FriendManageBtnNode.NeedRefresh = !0, this.RedDot.FriendApplyToggleNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnStrongholdWarDataChange = function() {
                    this.RefreshRedDotState()
                }, t.prototype.OnNoviceTrainingDataChange = function() {
                    this.InstanceRedDot.NoviceTrainingNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnTradeWarDataChange = function() {
                    this.InstanceRedDot.TradeWarNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAdventureDataChange = function() {
                    this.RedDot.MainBattleNode.NeedRefresh = !0, this.RedDot.ShowQuickBattlePanelBtnNode.NeedRefresh = !0, this.RedDot.QuickBattleBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnTaskDataChange = function() {
                    this.RedDot.TaskDailyBtnNode.NeedRefresh = !0, this.RedDot.TaskWeeklyBtnNode.NeedRefresh = !0, this.RedDot.TaskMainLineBtnNode.NeedRefresh = !0, this.RedDot.MainBattleNode.NeedRefresh = !0, this.RedDot.TaskBtnEntrance.NeedRefresh = !0, this.InstanceRedDot.CarnivalNode.NeedRefresh = !0, this.InstanceRedDot.LimitTimeTaskNode.NeedRefresh = !0, this.InstanceRedDot.MazeExploreGetMoreBtnNode.NeedRefresh = !0, this.InstanceRedDot.AllUserImpactRankGiftNode.NeedRefresh = !0, this.RedDot.CrossServerRankNode.NeedRefresh = !0, this.RedDot.CrossServerRankDayilyNode.NeedRefresh = !0, this.RedDot.CrossServerRankWeekilyNode.NeedRefresh = !0, this.InstanceRedDot.WishTreeNode.NeedRefresh = !0, this.InstanceRedDot.WishTreePersonalNode.NeedRefresh = !0, this.InstanceRedDot.WishTreeTaskNode.NeedRefresh = !0, this.RedDot.BossWarNode.NeedRefresh = !0, this.InstanceRedDot.BossWarZoneNode.NeedRefresh = !0, this.InstanceRedDot.BossWarAllianceNode.NeedRefresh = !0, this.InstanceRedDot.BossWarCrossZoneNode.NeedRefresh = !0, this.InstanceRedDot.BossWarTaskNode.NeedRefresh = !0, this.InstanceRedDot.AllUserPuzzleNode.NeedRefresh = !0, this.InstanceRedDot.AllUserPuzzleGiveNode.NeedRefresh = !0, this.RedDot.SummonActivityListNode.NeedRefresh = !0, this.InstanceRedDot.MonopolyTaskNode.NeedRefresh = !0, this.InstanceRedDot.MonopolyEntranceNode.NeedRefresh = !0, this.InstanceRedDot.BadgeCollectNode.NeedRefresh = !0, this.RedDot.ContinuousFightDailyToggle.NeedRefresh = !0, this.RedDot.ContinuousFightWeeklyToggle.NeedRefresh = !0, this.RedDot.TaskDerailReceiveNode.NeedRefresh = !0, this.RedDot.TaskGuideEntranceNode.NeedRefresh = !0, this.InstanceRedDot.ActivityStoryNode.NeedRefresh = !0, this.InstanceRedDot.CampSupportTaskNode.NeedRefresh = !0, this.InstanceRedDot.CampSupportNode.NeedRefresh = !0, this.InstanceRedDot.HerosRisingStarGiftPanel.NeedRefresh = !0, this.RedDot.AllianceStrongholdWarBtnNode.NeedRefresh = !0, this.RedDot.StrongholdWarTaskBtnNode.NeedRefresh = !0, this.RedDot.ParanormalPuzzleTask.NeedRefresh = !0, this.RedDot.StarPuzzleToggleNode.NeedRefresh = !0, this.RedDot.WarTokenListNode.NeedRefresh = !0, this.RedDot.AngelPvpDailyToggle.NeedRefresh = !0, this.RedDot.AngelPvpWeeklyToggle.NeedRefresh = !0, this.RedDot.HeroHandbookNode.NeedRefresh = !0, this.RedDot.ChampionShipNode.NeedRefresh = !0, this.RedDot.BreakOutMatchNode.NeedRefresh = !0, this.RedDot.UserTitlePanel.NeedRefresh = !0, this.RedDot.UserTitlePromotionBtn.NeedRefresh = !0, this.RedDot.ContinuousChargeNode.NeedRefresh = !0, this.InstanceRedDot.LuckySummonNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnTaskPointRewardDataChange = function() {
                    f.EZLog.Log("OnTaskPointRewardDataChange"), this.RedDot.TaskDailyBtnNode.NeedRefresh = !0, this.RedDot.TaskWeeklyBtnNode.NeedRefresh = !0, this.RedDot.TaskMainLineBtnNode.NeedRefresh = !0, this.RedDot.MainBattleNode.NeedRefresh = !0, this.RedDot.TaskBtnEntrance.NeedRefresh = !0, this.RedDot.ArenaNode.NeedRefresh = !0, this.RedDot.StrongholdWarTaskBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnIntelligenceDataChange = function() {
                    this.RedDot.MainBattleNode.NeedRefresh = !0, this.RedDot.IntelligenceBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnStarResonanceDataChange = function(e) {
                    for (var t in e) {
                        var n = y.DataCenter.Instance.GetDataById(d.StarResonance_Model, 1);
                        e[t].Stage == n.Stage && e[t].Level == n.Level || (this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarResonanceToggleNode.NeedRefresh = !0), e[t].Count != n.Count && (this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarResonanceToggleNode.NeedRefresh = !0), 2 != e[t].Stage || 2 != n.Stage || e[t].Dan == n.Dan && e[t].MaxLevel == n.MaxLevel || (this.RedDot.StarTempleBtnNode.NeedRefresh = !0, this.RedDot.SimplifyStarTempleBtnNode.NeedRefresh = !0, this.RedDot.StarResonanceToggleNode.NeedRefresh = !0, this.RedDot.StarResonanceUpgradeBtnNode.NeedRefresh = !0)
                    }
                    this.RefreshRedDotState()
                }, t.prototype.OnEndlessAbyssChange = function() {
                    this.RedDot.AbyssBtnNode.NeedRefresh = !0, this.RedDot.AbyssSingleModelBtnNode.NeedRefresh = !0, this.RedDot.AbyssMultiModelBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnRiskPortChange = function() {
                    this.RedDot.RiskPortBtnNode.NeedRefresh = !0, this.RedDot.RiskPortAncientBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnRelicTreasureChange = function() {
                    this.RedDot.RiskPortRelicBtnNode.NeedRefresh = !0, this.RedDot.RelicTreasureHuntWarTokenNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnSecretExploreChange = function() {
                    this.RedDot.RiskPortSecretBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnSaintsWarDataChange = function() {
                    this.RedDot.RiskPortSaintsWarBtnNode.NeedRefresh = !0, this.RedDot.SaintsWarForest.NeedRefresh = !0, this.RedDot.SaintsWarDesert.NeedRefresh = !0, this.RedDot.SaintsWarTomb.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAllianceTestChange = function() {
                    this.RedDot.AllianceTestBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAllianceIdChange = function() {
                    this.RedDot.AllianceBtnNode.NeedRefresh = !0, this.RedDot.SimplifyAllianceBtnNode.NeedRefresh = !0, this.RedDot.AllianceRedPacketSend.NeedRefresh = !0, this.RedDot.AllianceRedPacketAdvance.NeedRefresh = !0, this.RedDot.AllianceRedPacketNormal.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAllianceRedPacketSendChange = function() {
                    this.RedDot.AllianceRedPacketSend.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAllianceRedPacketAdvanceChange = function() {
                    this.RedDot.AllianceRedPacketAdvance.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAllianceRedPacketNormalChange = function() {
                    this.RedDot.AllianceRedPacketNormal.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnLuckyCharmModelChange = function() {
                    this.RedDot.BagLuckyCharmNode.NeedRefresh = !0, this.RedDot.BagRuneFunctionBtnNode.NeedRefresh = !0, this.RedDot.HeroLuckyCharmRightNode.NeedRefresh = !0, this.RedDot.HeroLuckyCharmLeftNode.NeedRefresh = !0, this.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnMallModuleChange = function() {
                    this.RedDot.DailyChooseToggleNode.NeedRefresh = !0, this.RedDot.DailyRecommendToggleNode.NeedRefresh = !0, this.RedDot.MallActiveCommandNode.NeedRefresh = !0, this.RedDot.MallSuperFundNode.NeedRefresh = !0, this.RedDot.MallRespectFundNode.NeedRefresh = !0, this.RedDot.MallGrowthFundNode.NeedRefresh = !0, this.RedDot.MallGrowthHero.NeedRefresh = !0, this.RedDot.MallGrowthWishCall.NeedRefresh = !0, this.RedDot.MallGrowthSummonChaos.NeedRefresh = !0, this.RedDot.MallGrowthPersonailty.NeedRefresh = !0, this.RedDot.MallGrowthSummonPerson.NeedRefresh = !0, this.RedDot.MallGrowthPersonalityLR.NeedRefresh = !0, this.RedDot.MallGrowthWishCallLR.NeedRefresh = !0, this.RedDot.MallSevenDayNode.NeedRefresh = !0, this.RedDot.MallLuckyStarNodeChest.NeedRefresh = !0, this.RedDot.MallDailyChargeNode.NeedRefresh = !0, this.RedDot.MallHeroGiftNode.NeedRefresh = !0, this.RedDot.MallGrowUpGiftNode.NeedRefresh = !0, this.RedDot.MallLegendGift1Node.NeedRefresh = !0, this.RedDot.MallLegendGift2Node.NeedRefresh = !0, this.RedDot.MallLegendGift3Node.NeedRefresh = !0, this.RedDot.MallLegendGift4Node.NeedRefresh = !0, this.RedDot.MallLegendGift5Node.NeedRefresh = !0, this.RedDot.MallFavorGiftNode.NeedRefresh = !0, this.RedDot.MallSkyChooseGiftNode.NeedRefresh = !0, this.RedDot.MallChaosFundNode.NeedRefresh = !0, this.RedDot.MallCheapFundNode.NeedRefresh = !0, this.RedDot.PermanentPrivilegeHeroNode.NeedRefresh = !0, this.RedDot.PermanentPrivilegePersonalityNode.NeedRefresh = !0, this.RedDot.PermanentPrivilegeLRHeroNode.NeedRefresh = !0, this.RedDot.PermanentPrivilegeLRPersonalityNode.NeedRefresh = !0, this.RedDot.DailyBuffNode.NeedRefresh = !0, this.RedDot.DailyPayProgreeRewardNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnEquipmentDataChange = function() {
                    this.RedDot.HeroListNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserActivityDataChange = function() {
                    this.InstanceRedDot.LimitTimePurchaseNode.NeedRefresh = !0, this.InstanceRedDot.CarnivalNode.NeedRefresh = !0, this.InstanceRedDot.HeroTestNode.NeedRefresh = !0, this.InstanceRedDot.HeroTestTaskNode.NeedRefresh = !0, this.InstanceRedDot.FatePrayNode.NeedRefresh = !0, this.InstanceRedDot.UpgradeStarNode.NeedRefresh = !0, this.InstanceRedDot.MazeExploreTimesBtnNode.NeedRefresh = !0, this.InstanceRedDot.HappyTurnStartBtnNode.NeedRefresh = !0, this.InstanceRedDot.SevenDayWarTokenNode.NeedRefresh = !0, this.RedDot.TopicActivityNode.NeedRefresh = !0, this.RedDot.OpenServerActivityNode.NeedRefresh = !0, this.RedDot.TimeLimitActivityNode.NeedRefresh = !0, this.RedDot.IdleLimitTimePurchaseNode.NeedRefresh = !0, this.InstanceRedDot.OptionalUpgradeStarNode.NeedRefresh = !0, this.RedDot.TimeLimitActivityFrame.NeedRefresh = !0, this.InstanceRedDot.HeroDungeonNode.NeedRefresh = !0, this.RedDot.BossWarNode.NeedRefresh = !0, this.InstanceRedDot.BossWarZoneNode.NeedRefresh = !0, this.InstanceRedDot.BossWarAllianceNode.NeedRefresh = !0, this.InstanceRedDot.BossWarCrossZoneNode.NeedRefresh = !0, this.InstanceRedDot.BossWarChallengeNode.NeedRefresh = !0, this.InstanceRedDot.AllUserPuzzleNode.NeedRefresh = !0, this.InstanceRedDot.SecretJourneyNode.NeedRefresh = !0, this.InstanceRedDot.AccumulateRechargeNode.NeedRefresh = !0, this.RedDot.SummonActivityListNode.NeedRefresh = !0, this.InstanceRedDot.ReturnWelfareNode.NeedRefresh = !0, this.InstanceRedDot.ExquisiteCustomCardNode.NeedRefresh = !0, this.RedDot.ContinuousChargeNode.NeedRefresh = !0, this.RedDot.ContinuousChargeDailyGiftNode.NeedRefresh = !0, this.InstanceRedDot.MonopolyDiceNode.NeedRefresh = !0, this.InstanceRedDot.MonopolyRemoteDiceNode.NeedRefresh = !0, this.InstanceRedDot.MonopolyWarToken.NeedRefresh = !0, this.InstanceRedDot.MonopolyEntranceNode.NeedRefresh = !0, this.InstanceRedDot.BadgeCollectNode.NeedRefresh = !0, this.InstanceRedDot.BadgeCollectFinalRewardNode.NeedRefresh = !0, this.InstanceRedDot.AnswerActivityNode.NeedRefresh = !0, this.RedDot.WarTokenListNode.NeedRefresh = !0, this.RedDot.GiftPackListNode.NeedRefresh = !0, this.InstanceRedDot.LoverArrowStartNode.NeedRefresh = !0, this.InstanceRedDot.HeroSummonTrialHeroNode.NeedRefresh = !0, this.InstanceRedDot.ActivityStoryNode.NeedRefresh = !0, this.InstanceRedDot.HeroRisingPackActivity.NeedRefresh = !0, this.InstanceRedDot.DailyCheckInActivityPanel.NeedRefresh = !0, this.InstanceRedDot.WarmUpActivityPanel.NeedRefresh = !0, this.InstanceRedDot.HerosRisingStarGiftPanel.NeedRefresh = !0, this.InstanceRedDot.CarnivalSkinPanel.NeedRefresh = !0, this.InstanceRedDot.CampSupportGiftNode.NeedRefresh = !0, this.InstanceRedDot.CampSupportTaskNode.NeedRefresh = !0, this.InstanceRedDot.SupportNode.NeedRefresh = !0, this.InstanceRedDot.CampSupportNode.NeedRefresh = !0, this.InstanceRedDot.ActiveCollectionEntry.NeedRefresh = !0, this.InstanceRedDot.SummonBox.NeedRefresh = !0, this.InstanceRedDot.CookHouseEnterPanel.NeedRefresh = !0, this.InstanceRedDot.NewSignIn.NeedRefresh = !0, this.InstanceRedDot.SelectedGiftBag.NeedRefresh = !0, this.InstanceRedDot.CrazyWheel.NeedRefresh = !0, this.InstanceRedDot.CrazyWheelPack.NeedRefresh = !0, this.InstanceRedDot.CrazyWheelSummonBtn1.NeedRefresh = !0, this.InstanceRedDot.CrazyWheelSummonBtn2.NeedRefresh = !0, this.RedDot.ChampionShipNode.NeedRefresh = !0, this.RedDot.BreakOutMatchNode.NeedRefresh = !0, this.RedDot.ContinuousChargeNode.NeedRefresh = !0, this.RedDot.AllianceMazeBtnNode.NeedRefresh = !0, this.RedDot.AllianceAssaultOpertionNode.NeedRefresh = !0, this.InstanceRedDot.FamilyMutualAidNode.NeedRefresh = !0, this.InstanceRedDot.AssaultAchieveRewardsNode.NeedRefresh = !0, this.InstanceRedDot.AssaultOperationRankingGuessNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnFirstPayDataChange = function() {
                    this.RedDot.FirstChargeNode.NeedRefresh = !0, this.RedDot.IdleFirstChargeNode.NeedRefresh = !0, this.RedDot.GiftPackListNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnSummonCardDataChange = function() {
                    this.InstanceRedDot.WishCallNode.NeedRefresh = !0, this.InstanceRedDot.WishCallNewNode.NeedRefresh = !0, this.RedDot.MainUIWishCallNode.NeedRefresh = !0, this.RedDot.SummonQueenJuniorOnceBtn.NeedRefresh = !0, this.RedDot.SummonQueenJuniorTenBtn.NeedRefresh = !0, this.RedDot.SummonQueenSeniorOnceBtn.NeedRefresh = !0, this.RedDot.SummonQueenSeniorTenBtn.NeedRefresh = !0, this.RedDot.SummonPersonalOnceBtn.NeedRefresh = !0, this.RedDot.StrongPathWishListNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnGameModuleChange = function(e) {
                    for (var t in e) switch (e[t].Sid) {
                        case p.GameModuleType.EightDays:
                            break;
                        case p.GameModuleType.HeartStarPowerAwaken:
                        case p.GameModuleType.PowerStarPowerAwaken:
                        case p.GameModuleType.TechStarPowerAwaken:
                        case p.GameModuleType.BreakStarPowerAwaken:
                        case p.GameModuleType.FightStarPowerAwaken:
                            this.RedDot.StarPowerToggleNode.NeedRefresh = !0, this.RedDot.StarTempleBtnNode.NeedRefresh = !0;
                            break;
                        case p.GameModuleType.HeartTowerSuppress:
                        case p.GameModuleType.PowerTowerSuppress:
                        case p.GameModuleType.TechTowerSuppress:
                        case p.GameModuleType.BreakTowerSuppress:
                        case p.GameModuleType.FightTowerSuppress:
                            this.RedDot.ClimbTowerBtnNode.NeedRefresh = !0
                    }
                    this.RefreshRedDotState()
                }, t.prototype.OnGiftPackChange = function() {
                    this.RedDot.InfiniteSummonBtmNode1.NeedRefresh = !0, this.RedDot.InfiniteSummonBtmNode2.NeedRefresh = !0, this.RedDot.IdleInfiniteSummonNode.NeedRefresh = !0, this.RedDot.DailyChooseToggleNode.NeedRefresh = !0, this.RedDot.DailyRecommendToggleNode.NeedRefresh = !0, this.RedDot.MallHeroGiftNode.NeedRefresh = !0, this.RedDot.MallFavorGiftNode.NeedRefresh = !0, this.RedDot.MallGrowUpGiftNode.NeedRefresh = !0, this.RedDot.MallLegendGift1Node.NeedRefresh = !0, this.RedDot.MallLegendGift2Node.NeedRefresh = !0, this.RedDot.MallLegendGift3Node.NeedRefresh = !0, this.RedDot.MallLegendGift4Node.NeedRefresh = !0, this.RedDot.MallLegendGift5Node.NeedRefresh = !0, this.RedDot.HolyGiftNode.NeedRefresh = !0, this.RedDot.MallSkyChooseGiftNode.NeedRefresh = !0, this.RedDot.ChaosSummonFreeGiftPanelNode.NeedRefresh = !0, this.RedDot.PermanentPrivilegeHeroNode.NeedRefresh = !0, this.RedDot.PermanentPrivilegePersonalityNode.NeedRefresh = !0, this.RedDot.PermanentPrivilegeLRHeroNode.NeedRefresh = !0, this.RedDot.PermanentPrivilegeLRPersonalityNode.NeedRefresh = !0, this.InstanceRedDot.ChaosSummonFreeGiftPanelNode.NeedRefresh = !0, this.RedDot.MallGrowthFundNode.NeedRefresh = !0, this.RedDot.MallGrowthHero.NeedRefresh = !0, this.RedDot.MallGrowthWishCall.NeedRefresh = !0, this.RedDot.MallGrowthSummonChaos.NeedRefresh = !0, this.RedDot.MallGrowthPersonailty.NeedRefresh = !0, this.RedDot.MallGrowthSummonPerson.NeedRefresh = !0, this.RedDot.MallGrowthPersonalityLR.NeedRefresh = !0, this.RedDot.MallGrowthWishCallLR.NeedRefresh = !0, this.RedDot.MallSkinGiftBtnNode.NeedRefresh = !0, this.RedDot.HangUPFreeGiftPackBuyBtn.NeedRefresh = !0, this.RedDot.LookVIPNode.NeedRefresh = !0, this.RedDot.MallVipNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.onRankLikeChange = function() {
                    this.RedDot.CrossServePalaceNode.NeedRefresh = !0
                }, t.prototype.OnGameServerConnected = function() {
                    this.SetCoinPurchaseRedDotState()
                }, t.prototype.SetCoinPurchaseRedDotState = function() {
                    var e = this;
                    setTimeout(function() {
                        e.RedDot.CoinPurchaseNode.NeedRefresh = !0, e.SetCoinPurchaseRedDotState()
                    }, this._dataHandler.GetCoinPruchaseRemainderTime())
                }, t.prototype.OnDaysPayDataChange = function() {
                    this.RedDot.DaysPayNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnPowerCoreModelChange = function() {
                    this.InstanceRedDot.PowerCoreUpgadeBtnNode.NeedRefresh = !0, this.InstanceRedDot.PowerCoreBottomUpLevelNode.NeedRefresh = !0, this.InstanceRedDot.PowerCoreBottomUpStarNode.NeedRefresh = !0, this.InstanceRedDot.PowerCoreDevelopNode.NeedRefresh = !0, this.InstanceRedDot.PowerCoreReplaceNode.NeedRefresh = !0, this.InstanceRedDot.PowerCoreCanEquipNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserIconChanged = function() {
                    this.RedDot.HeadIconToggleNode.NeedRefresh = !0, this.RedDot.HeadFrameToggleNode.NeedRefresh = !0, this.RedDot.HeadTitleToggleNode.NeedRefresh = !0, this.RedDot.ChatWindowToggleNode.NeedRefresh = !0, this.RedDot.EmojiButtonNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserPet_ModelChange = function() {
                    this.RedDot.PetTabHandBook.NeedRefresh = !0, this.RedDot.PetToggleNode.NeedRefresh = !0, this.RedDot.AngelEntrance.NeedRefresh = !0, this.RedDot.PetTabDecomposeBtn.NeedRefresh = !0, this.RedDot.SetPetToggleNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserStarModelChange = function() {
                    this.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, this.RedDot.SimplifyCollectionPavilionEntryNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAngelChange = function() {
                    this.RedDot.AngelToggleNode.NeedRefresh = !0, this.RedDot.AngelHandbookEntryNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUpdateRankData = function() {
                    this.RedDot.RankZoneNode.NeedRefresh = !0, this.RedDot.RankCrossZoneNode.NeedRefresh = !0, this.RedDot.LeftVerticalBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnStartegyDataChange = function() {
                    this.RedDot.StrategyPageFormation.NeedRefresh = !0, this.RedDot.StrategyPageElement.NeedRefresh = !0, this.RedDot.StrategyPageOccupation.NeedRefresh = !0, this.RedDot.StrategyPageUniversal.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnDukeScrollDataChange = function() {
                    this.RedDot.DukeScrollEntry.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnGemDataChange = function() {
                    this.RedDot.GemGallerySlot1.NeedRefresh = !0, this.RedDot.GemGallerySlot2.NeedRefresh = !0, this.RedDot.GemGallerySlot3.NeedRefresh = !0, this.RedDot.CollectionPavilionEntryNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnStarGarrisonChange = function() {
                    this.RedDot.StarGarrisonToggleNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnStarPuzzleChange = function() {
                    this.RedDot.StarPuzzleToggleNode.NeedRefresh = !0, this.RedDot.MagicResearchMainScene.NeedRefresh = !0, this.RedDot.SimplifyMagicResearchMainScene.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnArtifactModelChange = function() {
                    this.RedDot.StarArtifactToggleNode.NeedRefresh = !0, this.RedDot.StarArtifactResonanceNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnArtifactResonanceModelChange = function() {
                    this.RedDot.StarArtifactResonanceNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnSuperWeaponModelChange = function() {
                    this.RedDot.SuperWeaponToggleNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnNewYearWeaponModelChange = function() {
                    t.Instance.RedDot.NewYearWeaponToggleNode.NeedRefresh = !0, t.Instance.RefreshRedDotState()
                }, t.prototype.OnSubscribePrivilegeChange = function(e) {
                    for (var t in e) switch (Number.parseInt(t)) {
                        case p.SubscribePrivilegeType.PetNest:
                            this.RedDot.PetToggleNode.NeedRefresh = !0, this.RedDot.AngelEntrance.NeedRefresh = !0
                    }
                    this.RefreshRedDotState()
                }, t.prototype.OnMagicCircleChange = function() {
                    this.RedDot.MagicResearchMainScene.NeedRefresh = !0, this.RedDot.MagicCircleToggleNode.NeedRefresh = !0, this.RedDot.MagicCircleHandBookNode.NeedRefresh = !0, this.RedDot.MagicCircleDecomposeBtn.NeedRefresh = !0, this.RedDot.MainHeroNode.NeedRefresh = !0, this.RedDot.HeroListNode.NeedRefresh = !0, this.RedDot.SetMagicCircleToggleNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAllianceBossDataChange = function() {
                    this.RedDot.AllianceBossApplyBtnNode.NeedRefresh = !0, this.RedDot.AllianceBossBtnNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAssaultAchieveProgressChange = function() {
                    this.InstanceRedDot.AssaultAchieveRewardsNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAssaultOperationNotGetRewardChange = function() {
                    this.InstanceRedDot.AssaultOperationSpiritCrystalGatherNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAssaultGressLevelChange = function() {
                    this.InstanceRedDot.AssaultOperationFamilyNode.NeedRefresh = !0, this.InstanceRedDot.AssaultOperationFamilyWelfareNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAssaultSendSpriteWaterChange = function() {
                    this.InstanceRedDot.AssaultOperationFamilyNode.NeedRefresh = !0, this.InstanceRedDot.AssaultOperationFamilyWelfareNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnAssaultFamilyHelpChange = function() {
                    this.InstanceRedDot.FamilyMutualAidNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t.prototype.OnUserAllianceInsigniaChange = function() {
                    this.RedDot.AllianceInsigniaNode.NeedRefresh = !0, this.RefreshRedDotState()
                }, t._instance = null, t
            }(cc.Component);
        n.RedDotManager = S, cc._RF.pop()
    }, {
        "../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../Consts/Consts": "Consts",
        "../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/GameRecord": "GameRecord",
        "../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Channel/ChannelManager": "ChannelManager",
        "../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../Components/DataCenter": "DataCenter",
        "../Components/RpcComponent": "RpcComponent",
        "./RedDotDataHandler": "RedDotDataHandler",
        "./RedDotDefine": "RedDotDefine"
    }],
    RedPacketListPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "575df6Eu2lETaNGFaR0tErq", "RedPacketListPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CustomLayout"),
            p = e("../Components/CustomToggle"),
            d = e("../../Auxiliary/EventKeys"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property;
        (function(e) {
            e[e.Mine = 0] = "Mine", e[e.All = 1] = "All", e[e.TotalCount = 2] = "TotalCount"
        })(l || (l = {}));
        var g = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new c.UIPanelType(c.UINodeType.Fixed), t.Title = null, t.MyRedPacketTip = null, t.LeftTimes = null, t.GetTip = null, t.MyRedPacketScrollView = null, t.AllRedPacketScrollView = null, t.MyRedPacketCustomLayout = null, t.AllRedPacketCustomLayout = null, t.DetailButton = null, t.GetButton = null, t.GetButtonLabel = null, t.ToggleContainer = null, t._currentToggleIndex = 0, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(d.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("Buttons/ToggleBottom", cc.Prefab), [4, Promise.all([t]).then(function(e) {
                                    n._togglePrefab = e[0]
                                })];
                            case 1:
                                return o.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "\u7ea2\u5305", this.MyRedPacketTip.string = "\u6211\u7684\u7ea2\u5305", this.GetButtonLabel.string = "\u4e00\u952e\u9886\u53d6", this.DetailButton.node.on("click", this.OnDetailButtonClick, this), this.GetButton.node.on("click", this.OnGetButtonClick, this)
            }, t.prototype.InitData = function() {
                e.prototype.InitData.call(this)
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), t || this.SetToggle(), this.SetCurrentShow()
            }, t.prototype.SetToggle = function() {
                for (var e = 0; e < l.TotalCount; e++) {
                    var t = cc.instantiate(this._togglePrefab);
                    t.setParent(this.ToggleContainer), t.name = e.toString(), t.getComponent(p.default).Init(("OldPlayerRecallPanel_Toggle_" + e).ToUILocale()), t.on("toggle", this.OnSwitchToggle, this)
                }
            }, t.prototype.OnSwitchToggle = function(e) {
                var t = Number.parseInt(e.node.name);
                this._currentToggleIndex != t && (this._currentToggleIndex = t, this.SetCurrentShow())
            }, t.prototype.SetCurrentShow = function() {
                return a(this, void 0, void 0, function() {
                    var e, t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                switch (this.MyRedPacketTip.node.active = !1, this.LeftTimes.node.active = !1, this.GetTip.node.active = !1, this.MyRedPacketScrollView.node.active = !1, this.AllRedPacketScrollView.node.active = !1, this._currentToggleIndex) {
                                    case l.Mine:
                                        return [3, 1];
                                    case l.All:
                                        return [3, 4]
                                }
                                return [3, 7];
                            case 1:
                                return this.MyRedPacketTip.node.active = !0, this.MyRedPacketScrollView.node.active = !0, this._myRedPacketListItemPrefab ? [3, 3] : (e = this, [4, this.LoadDynamicAsset("RedPacketPanel/Components/MyRedPacketListItem", cc.Prefab)]);
                            case 2:
                                if (e._myRedPacketListItemPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._myRedPacketListItemPrefab), [2];
                                this.MyRedPacketCustomLayout.Init(this._myRedPacketListItemPrefab), n.label = 3;
                            case 3:
                                return this.MyRedPacketCustomLayout.RenderLayOut(10), [3, 8];
                            case 4:
                                return this.LeftTimes.node.active = !0, this.GetTip.node.active = !0, this.AllRedPacketScrollView.node.active = !0, this._allRedPacketListItemPrefab ? [3, 6] : (t = this, [4, this.LoadDynamicAsset("RedPacketPanel/Components/AllRedPacketListItem", cc.Prefab)]);
                            case 5:
                                if (t._allRedPacketListItemPrefab = n.sent(), !this.isValid) return c.AssetsManager.Instance.UnloadAsset(this._allRedPacketListItemPrefab), [2];
                                this.AllRedPacketCustomLayout.Init(this._allRedPacketListItemPrefab), n.label = 6;
                            case 6:
                                return this.AllRedPacketCustomLayout.RenderLayOut(10), [3, 8];
                            case 7:
                                return [3, 8];
                            case 8:
                                return [2]
                        }
                    })
                })
            }, t.prototype.OnDetailButtonClick = function() {}, t.prototype.OnGetButtonClick = function() {}, t.prototype.RefreshScrollView = function(e, t) {
                t == this.MyRedPacketCustomLayout ? e.forEach(function() {}) : this.AllRedPacketCustomLayout
            }, i([y(cc.Label)], t.prototype, "Title", void 0), i([y(cc.Label)], t.prototype, "MyRedPacketTip", void 0), i([y(cc.RichText)], t.prototype, "LeftTimes", void 0), i([y(cc.RichText)], t.prototype, "GetTip", void 0), i([y(cc.ScrollView)], t.prototype, "MyRedPacketScrollView", void 0), i([y(cc.ScrollView)], t.prototype, "AllRedPacketScrollView", void 0), i([y(u.default)], t.prototype, "MyRedPacketCustomLayout", void 0), i([y(u.default)], t.prototype, "AllRedPacketCustomLayout", void 0), i([y(cc.Button)], t.prototype, "DetailButton", void 0), i([y(cc.Button)], t.prototype, "GetButton", void 0), i([y(cc.Label)], t.prototype, "GetButtonLabel", void 0), i([y(cc.Node)], t.prototype, "ToggleContainer", void 0), i([f], t)
        }(c.BaseUIPanel);
        n.default = g, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle"
    }],
    RelicTreasureCaption: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "be793lsmp5Gx7kmOIqgmv6t", "RelicTreasureCaption");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../Auxiliary/UIUtlity"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1), t.Title = null, t.Info = null, t.Dialogue = null, t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._title = "<outline color=#202434 width=3>" + t[0] + "</outline>", this._info = "<outline color=#202434 width=3>" + t[1] + "</outline>", this._pos = t[2]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.Title.string = this._title, this.Info.string = this._info, this.Dialogue.getComponent(cc.Layout).updateLayout();
                    var t = cc.Camera.main.getScreenToWorldPoint(this._pos),
                        n = cc.v2(t.x, t.y);
                    this._pos = this.node.convertToNodeSpaceAR(n), this._pos.y < 0 ? this._pos.y += this.Dialogue.height / 2 : this._pos.y -= this.Dialogue.height / 2, this._pos.x < this.Dialogue.width / 2 - l.UIUtlity.DESIGN_SCREEN_WIDTH / 2 ? this._pos.x = this.Dialogue.width / 2 - l.UIUtlity.DESIGN_SCREEN_WIDTH / 2 : this._pos.x > l.UIUtlity.DESIGN_SCREEN_WIDTH / 2 - this.Dialogue.width / 2 && (this._pos.x = l.UIUtlity.DESIGN_SCREEN_WIDTH / 2 - this.Dialogue.width / 2), this.Dialogue.position = cc.v3(this._pos)
                }, i([p(cc.RichText)], t.prototype, "Title", void 0), i([p(cc.RichText)], t.prototype, "Info", void 0), i([p(cc.Node)], t.prototype, "Dialogue", void 0), i([u], t)
            }(s.BaseUIPanel);
        n.default = d, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    RelicTreasureHuntPanelCompassBubbleItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "553eaPdBr9ERLkGk4HQDtWT", "RelicTreasureHuntPanelCompassBubbleItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Content = null, t
                }
                return r(t, e), t.prototype.InitUI = function(e, t) {
                    this.Content.string = t, this.node.setPosition(cc.Vec2.ZERO);
                    var n = this.node.convertToNodeSpaceAR(e);
                    this.node.setPosition(n)
                }, i([l(cc.Label)], t.prototype, "Content", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    RelicTreasureHuntPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "cb0b1RvsWxM0rZEZ2BSzoGm", "RelicTreasureHuntPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c, u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../../../Proto/Static/ConfigProto"),
            h = e("../../Components/Components"),
            f = e("../Auxiliary/UIUtlity"),
            y = e("../Components/CurrencyBarItem"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../../EZFramework/EZFramework"),
            I = e("./TreasureUIBuff"),
            _ = e("../../../Consts/Consts"),
            C = e("../../../Consts/Consts"),
            v = e("../Components/ItemComponent"),
            b = e("../../Auxiliary/EventKeys"),
            S = e("../Components/BubbleComponent"),
            w = e("./BuyAndSellItemPanel"),
            P = e("./GroundBlock"),
            A = e("./NodePool"),
            T = e("../../Components/DataCenter"),
            R = e("../../Auxiliary/DataUtlity"),
            L = e("./ShopUIPanel"),
            k = e("../../Components/Components"),
            O = e("../../Auxiliary/ModuleGuideManager"),
            M = e("../../Channel/ChannelManager"),
            D = e("../Components/CustomProgressBar"),
            B = e("../../RedDot/RedDotManager"),
            N = e("../../../Util/TimeUtil"),
            E = cc._decorator,
            U = E.ccclass,
            G = E.property;
        (function(e) {
            e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e[e.None = 99] = "None"
        })(l || (l = {})),
        function(e) {
            e[e.Normal = 0] = "Normal", e[e.Rush = 1] = "Rush"
        }(c || (c = {}));
        var x = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new g.UIPanelType(g.UINodeType.Fixed), t.TitleLabel = null, t.Bg = null, t.ProfilePicture = null, t.TreasureLevelTitle = null, t.TreasureLevelLabel = null, t.ExpProcessBarValueLabel = null, t.DirectionChooseLabel = null, t.RemoteDiceNumberLabel = null, t.RelicCompassLabel = null, t.CompassNumberLabel = null, t.TravelingShopLabel = null, t.ShopLabel = null, t.GoAheadLabel = null, t.GrayGoAheadLabel = null, t.AutoMoveButtonLabel = null, t.GrayAutoMoveButtonLabel = null, t.CancelAutonMoveButtonLabel = null, t.BtnRuinsShop = null, t.BtnGoAhead = null, t.AutonMoveButton = null, t.GrayAutonMoveButton = null, t.CancelAutonMoveButton = null, t.BtnRemoteDice = null, t.BtnWarTokenEntry = null, t.LabelWarTokenEntry = null, t.BtnCompass = null, t.BtnCompassBgActive = null, t.BtnCompassBgInactive = null, t.BtnRule = null, t.BtnReturn = null, t.RuinsCoinCurrency = null, t.GoldCoinCurrency = null, t.DiamondCurrency = null, t.DiceCurrency = null, t.ExpProcessBar = null, t.TravelingShop = null, t.BuffContainer = null, t.Map = null, t.MapContainer = null, t.EffectContainer = null, t.PlayerBackNode = null, t.Player = null, t.PlayerFrontNode = null, t.WorldNode = null, t.CenterTip = null, t.FrontEffect = null, t.MapEffectFront = null, t.UnTouchMaskNode = null, t.DiceAnimation = null, t.CompassAnimation = null, t.DirectionArrows = [], t.CompassGemsSprite = [], t.BtnAddDice = null, t.DiceNumberRichText = null, t.HeadIcon = null, t.HeadFrame = null, t.BubbleNode = null, t.BubbleLabel = null, t.DiceRestoreCountingDownRoot = null, t.DiceRestoreCountingDownRichText = null, t.TestRichText = null, t._ruinsCoinIndex = 14, t._goldCoinIndex = 1, t._diamondIndex = 3, t._diceIndex = 41, t._remoteDiceIndex = 42, t._superRushId = 4, t._itemScale = 150 / 218, t._mapDirectionVectors = [cc.v3(-136, 139), cc.v3(200, 90)], t._directionSpritePoss = [cc.v3(0, 70), cc.v3(0, 70)], t._playersDirectionScales = [-.875, .875], t._invisiblePos = cc.v3(-9e3, -9e3), t._diceAnimationPrefix = "UI_effect_yijixunbao_touzi", t._rushAnimationPrefix = "UI_effect_yijixunbao_chongci", t._superRushAnimationPrefix = "UI_effect_yijixunbao_chaojichongci", t._playerMoveAniName = _.SkillAnimationType.Move, t._playerIdleAniName = _.SkillAnimationType.Standby, t._scatteringCoinsAniName = "UI_effect_yijixunbao_sajinbi", t._emptyPandoraAniName = "UI_effect_yijixunbao_boom", t._eventSpritePrefix = "blockIcon", t._itemRaiseTime = .5, t._itemFallTime = .5, t._itemRaiseScale = .2, t._itemFallScale = -.5, t._itemFallOpacity = -255, t._itemRaiseShadowScale = 0, t._itemPeakStayTime = 0, t._blockLowerArray = [0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0], t._blockLeftArray = [0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1], t._blockRightArray = [1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1], t._arrowNameToDirection = new Map, t._playerPosOffset = new cc.Vec3(0, 86.315, 0), t._currentMode = c.Normal, t._emptyPandoraNumber = 0, t._curGoldCoinNumber = 0, t._curRuinsCoinNumber = 0, t._curDiamondNumber = 0, t._curDiceNumber = 0, t._debugMode = !1, t._moveSpeed = t._debugMode ? 20 : 3, t._rushSpeed = t._debugMode ? 40 : 5, t._resetIndex = 1, t._brickLayingZIndex = 0, t._brickLayingPos = cc.v3(0, 0, 0), t._blockHighLights = [], t._blocksPool = [], t._blocksDir = [], t._curTurnsEndIndex = -1, t._remainderPoint = 0, t._playerMoveTweens = [], t._arrowMoveTweens = [], t._litArray = [], t._relicModel = null, t._lowerMapData = [], t._upperMapData = [], t._scatteringCoinsPool = [], t._emptyPandoraPool = [], t._groundIconsPool = null, t._groundItemsPool = null, t._groundShadowsPool = null, t._playerSkeleton = null, t._playerUpperAni = null, t._playerLowerAni = null, t._rushAniPrefix = "", t._shouldPopShopBubble = !0, t._shouldPopDiceBubble = !0, t._buffParamById = [], t._relicLevelConfigs = [], t._isAutoMove = !1, t._isPlayerStop = !0, t._secondsToRestoreOneDice = 0, t._treasureSeekDiceRestoreCountdown = "", t._diceLimit = 0, t.shouldResumeAutoMoveAfterBoughtDice = !1, t
            }
            return r(t, e), t.prototype.onEnable = function() {
                var e = this;
                this.Bg.on(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove, this), this.DirectionArrows.forEach(function(t) {
                    t.on(cc.Node.EventType.TOUCH_END, e.OnDirectionArrowClick, e), t.active = !1
                }), g.Game.EventDispatcher.On(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this), g.Game.EventDispatcher.On(b.EventKeys.EVENT_TREASURE_ICON_CLICK, this.OnIconClick, this), g.Game.EventDispatcher.On(b.EventKeys.EVENT_TREASURE_REMOTE, this.OnBtnGoAheadClick, this), g.Game.EventDispatcher.On(b.EventKeys.EVENT_TREASURE_REFRESHBLOCKS, this.RefreshBlocks, this), g.Game.EventDispatcher.On(b.EventKeys.EVENT_TREASURE_MERCHANT_CLOSE, this.OnMerchantShopClose, this), g.Game.EventDispatcher.On(b.EventKeys.EVENT_TREASURE_HIERON_CLOSE, this.OnHieronClose, this), g.Game.EventDispatcher.On(b.EventKeys.EVENT_BUY_DICE_SUCCESS, this.OnDiceBought, this), g.Game.EventDispatcher.On(b.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnItemBought, this), g.Game.EventDispatcher.On(_.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChange, this)
            }, t.prototype.onDisable = function() {
                var e = this;
                this.Bg.off(cc.Node.EventType.TOUCH_MOVE, this.OnTouchMove), this.DirectionArrows.forEach(function(t) {
                    t.off(cc.Node.EventType.TOUCH_END, e.OnDirectionArrowClick)
                }), g.Game.EventDispatcher.Off(b.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick), g.Game.EventDispatcher.Off(b.EventKeys.EVENT_TREASURE_ICON_CLICK, this.OnIconClick), g.Game.EventDispatcher.Off(b.EventKeys.EVENT_TREASURE_REMOTE, this.OnBtnGoAheadClick), g.Game.EventDispatcher.Off(b.EventKeys.EVENT_TREASURE_REFRESHBLOCKS, this.RefreshBlocks), g.Game.EventDispatcher.Off(b.EventKeys.EVENT_TREASURE_MERCHANT_CLOSE, this.OnMerchantShopClose), g.Game.EventDispatcher.Off(b.EventKeys.EVENT_TREASURE_HIERON_CLOSE, this.OnHieronClose), g.Game.EventDispatcher.Off(b.EventKeys.EVENT_BUY_DICE_SUCCESS, this.OnDiceBought), g.Game.EventDispatcher.Off(b.EventKeys.EVENT_BUY_ITEM_SUCCESS, this.OnItemBought), g.Game.EventDispatcher.Off(_.GameEventIds.ChangeDataDetail.Fmt(p.UserItem_Model._n_), this.OnUserItemChange, this)
            }, t.prototype.OnTouchMove = function(e) {
                var t = this.WorldNode.position.add(cc.v3(e.getDelta()));
                Math.abs(t.x) < f.UIUtlity.DESIGN_SCREEN_WIDTH / 2 && Math.abs(t.y + f.UIUtlity.DESIGN_SCREEN_HEIGHT / 4 - this._playerPosOffset.y) < f.UIUtlity.DESIGN_SCREEN_HEIGHT / 4 && (this.WorldNode.position = t)
            }, t.prototype.OnItemClick = function(e, t) {
                t.parent.parent.getComponent(P.default) && f.UIUtlity.ShowItemTip(t.getComponent(v.ItemComponent).ItemId, t)
            }, t.prototype.OnIconClick = function(e, t) {
                g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureItemShown.Path, this._panelAtlas.getSpriteFrame(this._eventSpritePrefix + e), e, t.convertToWorldSpaceAR(cc.v3()))
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r, i, a, l, c, p, f, y, g, m, I, C, v, b, S = this;
                    return s(this, function(s) {
                        switch (s.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("RelicTreasureHuntPanel/Component/UIBuff", cc.Prefab), n = this.LoadDynamicAsset("RelicTreasureHuntPanel/PNG/blessingItems", cc.SpriteAtlas), o = this.LoadDynamicAsset("RelicTreasureHuntPanel/PNG/TreasureSeek_HS", cc.SpriteAtlas), r = this.LoadDynamicAsset("RelicTreasureHuntPanel/Component/GroundBlock", cc.Prefab), i = this.LoadDynamicAsset("RelicTreasureHuntPanel/Component/groundBlockhighlight", cc.Prefab), a = this.LoadDynamicAsset("ItemsComponent/ItemComponent", cc.Prefab), l = this.LoadDynamicAsset("RelicTreasureHuntPanel/Component/MapEffect", cc.Prefab), c = this.LoadDynamicAsset("RelicTreasureHuntPanel/Component/GroundIcon", cc.Prefab), p = this.LoadDynamicAsset("RelicTreasureHuntPanel/Component/GroundShadow", cc.Prefab), [4, Promise.all([t, n, o, r, i, a, l, c, p]).then(function(e) {
                                    S._buffPrefab = e[0], S._panelAtlas = e[2], S._groundBlockPrefab = e[3], S._blockLightPrefab = e[4], S._itemPrefab = e[5], S._coinEffectPrefab = e[6], S._groundIconPrefab = e[7], S._groundShadowPrefab = e[8]
                                })];
                            case 1:
                                return s.sent(), f = k.ConfigDataComponent.Instance.GetGlobalSettingByKey("Channel_RelicTreasureHunt_HeroId"), y = k.ConfigDataComponent.Instance.GetConfigById(d.HeroBase_Config, f), g = this.LoadDynamicAsset("RelicTreasureHuntPanel/Component/RushEffect", cc.Prefab), m = this.LoadDynamicAsset("RelicTreasureHuntPanel/Component/SuperRushEffect", cc.Prefab), I = this.LoadDynamicAsset("RelicTreasureHuntPanel/Component/EmptyPandora", cc.Prefab), C = this.LoadDynamicAsset(u.BundlePath.HeadIcon + "/" + h.DataCenter.Instance.GetIntData(_.UserDataKey.HeadIcon), cc.SpriteFrame), v = this.LoadDynamicAsset(u.BundlePath.HeadFrame + "/" + h.DataCenter.Instance.GetIntData(_.UserDataKey.HeadFrame), cc.SpriteFrame), b = this.LoadDynamicAsset("Hero_" + y.Model + "/HeroAvatar", cc.Prefab), [4, Promise.all([g, m, I, C, v, b]).then(function(e) {
                                    S._rushEffectPrefab = e[0], S._superRushEffectPrefab = e[1], S._pandoraEffectPrefab = e[2], S.HeadIcon.spriteFrame = e[3], S.HeadFrame.spriteFrame = e[4], S._heroPrefab = e[5]
                                })];
                            case 2:
                                return s.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.OnEvent(), this.TitleLabel.string = "treasureSeek_RuleMainTitle".ToUILocale(), this.LabelWarTokenEntry.string = "treasure_hunt_wartoken".ToUILocale(), this._treasureSeekDiceRestoreCountdown = "treasureSeek_dice_restore_countdown".ToUILocale(), this._diceLimit = k.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("RelicTreasureHuntDiceLimit"), this._secondsToRestoreOneDice = 60 * k.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("RelicTreasureHuntDiceTime"), this.MultiLanguageAssign(), this._rushEffectPrefab.name = "rushPrefab", this._superRushEffectPrefab.name = "superRushPrefab", this.GetModel(), this._shouldPopShopBubble = !1, this.InitMapConstant(), this.GenerateMap(), this._arrowNameToDirection.set("LeftArrow", l.Left), this._arrowNameToDirection.set("RightArrow", l.Right), this._heroNode = cc.instantiate(this._heroPrefab), this._heroNode.parent = this.Player, this._heroNode.scaleX = M.default.Instance.IsVNChannel() ? -1 : 1, this.Map.position = this.Player.parent.position.sub(this._playerPosOffset).sub(this._blocksPool[this._playerIndex].position), this.Player.scaleX = this._playersDirectionScales[this._blocksDir[this._nextIndex]], this._worldDefaultPos = cc.v3(0, -f.UIUtlity.DESIGN_SCREEN_HEIGHT / 4), this.WorldNode.position = this._worldDefaultPos, this._playerSkeleton = this._heroNode.getComponent(sp.Skeleton), this.DiceAnimation.node.active = !1, this._itemRaiseDistance = f.UIUtlity.DESIGN_SCREEN_HEIGHT / 4, this._itemFallDistance = f.UIUtlity.DESIGN_SCREEN_HEIGHT / 5, this._relicLevelConfigs = h.ConfigDataComponent.Instance.GetArrayConfig(d.RelicLevel_Config), this._diceNumber = h.DataCenter.Instance.GetItemCount(_.CommonItemId.DiceId)
            }, t.prototype.OnEvent = function() {
                this.BtnReturn.node.on("click", this.OnBtnReturnClick, this), this.BtnRule.node.on("click", this.OnBtnRuleClick, this), this.BtnRuinsShop.node.on("click", this.OnBtnRuinsShopClick, this), this.TravelingShop.on("click", this.OnTravelingShopClick, this), this.BtnCompass.node.on("click", this.OnBtnCompassClick, this), this.BtnRemoteDice.node.on("click", this.OnBtnRemoteDiceClick, this), this.BtnWarTokenEntry.node.on("click", this.OnBtnWarTokenEntryClick, this), this.BtnGoAhead.node.on("click", this.OnBtnGoAheadClick, this), this.DiamondCurrency.SetClickCallBack(function() {
                    f.UIUtlity.HideBubble(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.MallNewPanel.Path, [_.MallPageType.DiamondShop, _.GiftPackType.BuyDiamond])
                }), this.ProfilePicture.on(cc.Node.EventType.TOUCH_END, this.OnProfileTouch, this), this.AutonMoveButton.node.on("click", this.OnAutoMoveButtonClick, this), this.GrayAutonMoveButton.node.on("click", this.OnGrayAutoMoveButtonClick, this), this.CancelAutonMoveButton.node.on("click", this.OnCancelAutoMoveButtonClick, this)
            }, t.prototype.MultiLanguageAssign = function() {
                this.ShopLabel.string = L.ShopType.Relic.ToShopName(), this.RelicCompassLabel.string = "treasure_relicCompass".ToUILocale(), this.TravelingShopLabel.string = "treasure_travelingShop".ToUILocale(), this.GoAheadLabel.string = "monopoly_advance".ToUILocale(), this.GrayGoAheadLabel.string = "monopoly_advance".ToUILocale(), this.DirectionChooseLabel.string = "treasure_pleaseSelectDirection".ToUILocale(), this.BubbleLabel.string = "relicTreasure_active_reward".ToUILocale(), this.AutoMoveButtonLabel.string = "treasure_auto".ToUILocale(), this.GrayAutoMoveButtonLabel.string = "treasure_auto".ToUILocale(), this.CancelAutonMoveButtonLabel.string = "secretArea_cancle".ToUILocale()
            }, t.prototype.InitMapConstant = function() {
                this._blocksDir.push(-1);
                for (var e = 0; e < this._blockLowerArray.length; e++) this._blocksDir.push(this._blockLowerArray[e]);
                for (e = 0; e < this._blockLeftArray.length; e++) this._blocksDir.push(this._blockLeftArray[e]);
                for (e = 0; e < this._blockRightArray.length; e++) this._blocksDir.push(this._blockRightArray[e]);
                this._leftBranchStartIndex = this._blockLowerArray.length + 1, this._rightBranchStartIndex = this._leftBranchStartIndex + this._blockLeftArray.length, this._leftBranchEndIndex = this._rightBranchStartIndex - 1, this._rightBranchEndIndex = this._rightBranchStartIndex + this._blockRightArray.length - 1, this._branchPointIndex = this._leftBranchStartIndex - 1, this._curChosenEndIndex = this._rightBranchEndIndex, this._relicModel.ThrowingPoint[0] > 0 ? (this._remainderPoint = this._relicModel.PositionIndex + this._relicModel.ThrowingPoint[0] - this._blockLowerArray.length, this._playerIndex = this._branchPointIndex) : this._playerIndex = this._relicModel.PositionIndex, this._blocksPool[0] = void 0, this._playerIndex == this._leftBranchEndIndex || this._playerIndex == this._rightBranchEndIndex ? this._nextIndex = 1 : this._nextIndex = this._playerIndex + 1, this._groundIconsPool = new A.default(this._groundIconPrefab), this._groundItemsPool = new A.default(this._itemPrefab), this._groundShadowsPool = new A.default(this._groundShadowPrefab)
            }, t.prototype.GenerateMap = function() {
                if (this.BranchLocated(this._playerIndex) == l.None) {
                    this._currentChosenDirection = l.None, this._currentWalkOnPart = l.None;
                    var e = cc.instantiate(this._groundBlockPrefab);
                    this.MapContainer.addChild(e, this._brickLayingZIndex--), e.position = this._brickLayingPos, this._blocksPool[1] = e;
                    for (var t = 1; t < this._blockLowerArray.length; t++) e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockLowerArray[t]]), e.position = this._brickLayingPos, this._blocksPool[t + 1] = e;
                    for (t = 0; t < this._blockLeftArray.length; t++) e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockLeftArray[t]]), e.position = this._brickLayingPos, this._blocksPool[this._leftBranchStartIndex + t] = e;
                    for (this._brickLayingPos = this._blocksPool[this._branchPointIndex].position, t = 0; t < this._blockRightArray.length; t++) e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockRightArray[t]]), e.position = this._brickLayingPos, this._blocksPool[this._rightBranchStartIndex + t] = e;
                    this._brickLayingPos = this._invisiblePos
                } else if (this.BranchLocated(this._playerIndex) == l.Left) {
                    for (this._currentChosenDirection = l.Left, this._currentWalkOnPart = l.Left, e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), e.position = this._brickLayingPos, this._blocksPool[this._leftBranchStartIndex] = e, t = 1; t < this._blockLeftArray.length; t++) e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockLeftArray[t]]), e.position = this._brickLayingPos, this._blocksPool[this._leftBranchStartIndex + t] = e;
                    for (t = 0; t < this._blockLowerArray.length; t++) e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockLowerArray[t]]), e.position = this._brickLayingPos, this._blocksPool[t + 1] = e;
                    for (t = 0; t < this._blockRightArray.length; t++) e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockRightArray[t]]), e.position = this._brickLayingPos, this._blocksPool[this._rightBranchStartIndex + t] = e;
                    this._resetIndex = this._leftBranchStartIndex, this._curTurnsEndIndex = this._leftBranchEndIndex, this._brickLayingPos = this._blocksPool[this._branchPointIndex].position
                } else {
                    for (this._currentChosenDirection = l.Right, this._currentWalkOnPart = l.Right, e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), e.position = this._brickLayingPos, this._blocksPool[this._rightBranchStartIndex] = e, t = 1; t < this._blockRightArray.length; t++) e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockRightArray[t]]), e.position = this._brickLayingPos, this._blocksPool[this._rightBranchStartIndex + t] = e;
                    for (t = 0; t < this._blockLowerArray.length; t++) e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockLowerArray[t]]), e.position = this._brickLayingPos, this._blocksPool[t + 1] = e;
                    for (t = 0; t < this._blockLeftArray.length; t++) e = cc.instantiate(this._groundBlockPrefab), this.MapContainer.addChild(e, this._brickLayingZIndex--), this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blockLeftArray[t]]), e.position = this._brickLayingPos, this._blocksPool[this._leftBranchStartIndex + t] = e;
                    this._resetIndex = this._rightBranchStartIndex, this._curTurnsEndIndex = this._rightBranchEndIndex, this._brickLayingPos = this._blocksPool[this._branchPointIndex].position
                }
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this), t || (this.SetAllBlocks(), this._heroNode.getComponent(sp.Skeleton).setSkin("skin1"), this._playerSkeleton.setAnimation(0, this._playerIdleAniName, !0));
                var n = R.default.Instance.IsGameModuleUnlock(_.GameModuleType.RelicTreasureHuntWartoken)[0],
                    o = R.default.Instance.IsGameModuleOpen(_.GameModuleType.RelicTreasureHuntWartoken);
                this.BtnWarTokenEntry.node.active = n && o;
                var r = !1,
                    i = !1;
                if (n && o) {
                    var a = T.DataCenter.Instance.GetDataById(p.WarToken_Model, C.WarTokenType.RelicTreasureHunt);
                    r = a.ActivePrivilege, i = !a.ActivePrivilege
                }
                var s = R.default.Instance.IsGameModuleUnlock(_.GameModuleType.RelicTreasureHuntRemoteDice)[0],
                    l = R.default.Instance.IsGameModuleOpen(_.GameModuleType.RelicTreasureHuntRemoteDice);
                this.BtnRemoteDice.node.active = s && l;
                var c = R.default.Instance.IsGameModuleUnlock(_.GameModuleType.RelicTreasureHuntAutoRun)[0],
                    u = R.default.Instance.IsGameModuleOpen(_.GameModuleType.RelicTreasureHuntAutoRun);
                this.AutonMoveButton.node.active = c && u && r, this.GrayAutonMoveButton.node.active = c && u && i, this.RefreshCompass(), this.SetPlayerData(), this.ShowGuide(), t && this.shouldResumeAutoMoveAfterBoughtDice && (this.shouldResumeAutoMoveAfterBoughtDice = !1, this.OnCancelAutoMoveButtonClick(!0)), B.RedDotManager.Instance.Bind(this.BtnWarTokenEntry.node, B.RedDotManager.Instance.RedDot.RelicTreasureHuntWarTokenNode, -12, -12)
            }, t.prototype.OnBtnReturnClick = function() {
                f.UIUtlity.HideBubble(), g.UIManager.Instance.BackUIPanel(), g.Game.EventDispatcher.Emit(b.EventKeys.EVENT_RISKPORT_MODULECLOSE)
            }, t.prototype.OnBtnRuleClick = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n, o;
                    return s(this, function() {
                        return e = "assistant_relicTreasure".ToUILocale(), t = ["HeroTalent_Rule".ToUILocale()], n = ["treasureSeek_RuleText".ToUILocale()], o = {
                            name: e,
                            titles: t,
                            contents: n
                        }, f.UIUtlity.ShowRulePanel(o), [2]
                    })
                })
            }, t.prototype.OnBtnRuinsShopClick = function() {
                f.UIUtlity.HideBubble(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.ShopPanel.Path, 2, L.ShopType.Relic)
            }, t.prototype.OnTravelingShopClick = function() {
                f.UIUtlity.HideBubble(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureTravelingShopPanel.Path, this._relicModel.Goods)
            }, t.prototype.OnBtnCompassClick = function() {
                f.UIUtlity.HideBubble(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureCompassPanel.Path)
            }, t.prototype.OnBtnRemoteDiceClick = function() {
                h.DataCenter.Instance.GetItemCount(this._remoteDiceIndex) > 0 ? (f.UIUtlity.HideBubble(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureRemotePanel.Path)) : f.UIUtlity.ShowFloatingHint("treasure_remoteDiceCountNotEnough".ToUILocale())
            }, t.prototype.OnBtnWarTokenEntryClick = function() {
                m.UIManager.Instance.ShowUIPanel(u.PanelConfig.WarTokenListPanel.Path, !1, C.WarTokenType.RelicTreasureHunt)
            }, t.prototype.OnBtnGoAheadClick = function(e) {
                var t = this;
                if (void 0 === e && (e = 0), ("number" != typeof e || 0 == e) && h.DataCenter.Instance.GetItemCount(this._diceIndex) <= 0) {
                    if (this._isAutoMove) {
                        var n = !(this._relicModel.PurchasedDiceCount < this._diceBuyLimit);
                        this.OnCancelAutoMoveButtonClick(n), this.shouldResumeAutoMoveAfterBoughtDice = !0, this.SetDiceButtons(!0)
                    }
                    if (this._relicModel.PurchasedDiceCount < this._diceBuyLimit) {
                        var o = this;
                        g.UIManager.Instance.ShowUIPanel(u.PanelConfig.BuyAndSellItemPanel.Path, _.CommonItemId.DiceId, 0, this._relicModel.PurchasedDiceCount, w.BuyAndSellType.Buy, w.GoodsType.Dice, void 0, {
                            UseItemId: 0,
                            MaxCount: 0,
                            PerItemCount: null,
                            Title: null,
                            Callback: function() {
                                o.shouldResumeAutoMoveAfterBoughtDice && (o.shouldResumeAutoMoveAfterBoughtDice = !1, o.OnAutoMoveButtonClick())
                            }
                        })
                    } else f.UIUtlity.ShowFloatingHint("treasure_diceCountNotEnough".ToUILocale())
                } else {
                    this._isPlayerStop = !1, this.BtnReturn.node.active = !1;
                    var r = new p.Req_Relic_ThrowingDice;
                    e > 0 && (r.Point = e), h.RpcComponent.Instance.Call(r, function(n) {
                        t.SetDiceButtons(!1), t.RemoteDiceNumberLabel.string = h.DataCenter.Instance.GetItemCount(t._remoteDiceIndex).toString(), h.DataCenter.Instance.GetItemCount(_.CommonItemId.DiceId) < t._diceNumber || e > 0 ? (t.GetSecondsTillNextDiceRestore(), t.DiceCurrency.Init(t._diceIndex, !1, t._displayDiceCount)) : t._relicModel.HieronDeign && t._relicModel.HieronDeign[1] || n.Point % 2 != 0 || (t.GetSecondsTillNextDiceRestore(), t.DiceCurrency.Init(t._diceIndex, !1, t._displayDiceCount - 1)), t.SetResponse(n), t._cameraTween = cc.tween(t.WorldNode).to(.2, {
                            position: t._worldDefaultPos
                        }).start();
                        var o = t._diceAnimationPrefix + n.Point;
                        t.DiceAnimation.node.active = !0, t.DiceAnimation.timeScale = t._debugMode ? 10 : 1, t.DiceAnimation.setAnimation(0, o, !1) && t.DiceAnimation.setCompleteListener(function(e) {
                            e.animation.name == o && (t.GoOn(n.Point), t.DiceAnimation.node.active = !1)
                        })
                    })
                }
            }, t.prototype.OnBtnAddDiceClick = function() {
                this.GetModel(), this._relicModel.PurchasedDiceCount >= this._diceBuyLimit ? f.UIUtlity.ShowFloatingHint("treasure_buyDiceLimit".ToUILocale()) : g.UIManager.Instance.ShowUIPanel(u.PanelConfig.BuyAndSellItemPanel.Path, _.CommonItemId.DiceId, 0, this._relicModel.PurchasedDiceCount, w.BuyAndSellType.Buy, w.GoodsType.Dice)
            }, t.prototype.OnProfileTouch = function(e) {
                var t = h.DataCenter.Instance.GetDataById(p.RelicTreasureHunt_Model, 1);
                if (t.Level != this._relicLevelConfigs[this._relicLevelConfigs.length - 1].Id) {
                    var n = t.Level + 1;
                    g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureDialogueShown.Path, "treasure_nextLevel".ToUILocale().Fmt(n), h.ConfigDataComponent.Instance.GetLocale("RelicLevel_desc_" + n), e.getLocation())
                }
            }, t.prototype.OnAutoMoveButtonClick = function() {
                for (var e = !0, t = 0; t < this._blockHighLights.length; t++) 1 == this._blockHighLights[t].active && (e = !1);
                if (this._isPlayerStop && this._currentMode == c.Normal && e)
                    if (h.DataCenter.Instance.GetItemCount(this._diceIndex) <= 0)
                        if (this._relicModel.PurchasedDiceCount < this._diceBuyLimit) {
                            var n = this;
                            g.UIManager.Instance.ShowUIPanel(u.PanelConfig.BuyAndSellItemPanel.Path, _.CommonItemId.DiceId, 0, this._relicModel.PurchasedDiceCount, w.BuyAndSellType.Buy, w.GoodsType.Dice, void 0, {
                                UseItemId: 0,
                                MaxCount: 0,
                                PerItemCount: null,
                                Title: null,
                                Callback: function() {
                                    n.OnAutoMoveButtonClick()
                                }
                            })
                        } else f.UIUtlity.ShowFloatingHint("treasure_diceCountNotEnough".ToUILocale());
                else this.UnTouchMaskNode.active = !0, this.CancelAutonMoveButton.node.active = !0, this.AutonMoveButton.node.active = !1, this._isAutoMove = !0, this._isPlayerStop && this._currentMode == c.Normal && this.OnBtnGoAheadClick();
                else f.UIUtlity.ShowFloatingHint("treasure_auto_unclick".ToUILocale())
            }, t.prototype.OnCancelAutoMoveButtonClick = function(e) {
                void 0 === e && (e = !0), g.EZLog.Error("ok on OnCancelAutoMoveButtonClick..."), this.UnTouchMaskNode.active = !1, this.CancelAutonMoveButton.node.active = !1, this.AutonMoveButton.node.active = !0, this._isAutoMove = !1, e && f.UIUtlity.ShowFloatingHint("treasure_auto_cancel_tip".ToUILocale())
            }, t.prototype.OnMerchantShopClose = function(e, t) {
                void 0 === t && (t = !1), this._shouldPopShopBubble = t, this.ActorMovement(e)
            }, t.prototype.OnDiceBought = function() {
                this.DiceNumberRichText.string = h.DataCenter.Instance.GetItemCount(this._diceIndex).toString(), this.GetModel()
            }, t.prototype.OnItemBought = function(e) {
                null != e && f.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
            }, t.prototype.OnUserItemChange = function(e) {
                for (var t in e) switch (Number.parseInt(t)) {
                    case _.CommonItemId.Diamond:
                        this.DiamondCurrency.Init(_.CommonItemId.Diamond);
                        break;
                    case _.CommonItemId.Coin:
                        this.GoldCoinCurrency.Init(_.CommonItemId.Coin);
                        break;
                    case _.CommonItemId.DiceId:
                    case _.CommonItemId.RemoteControlDiceId:
                        break;
                    case this._ruinsCoinIndex:
                        this.RuinsCoinCurrency.Init(this._ruinsCoinIndex)
                }
            }, t.prototype.RefreshBlocks = function() {
                this._relicModel = h.DataCenter.Instance.GetDataById(p.RelicTreasureHunt_Model, 1), this.SetPlayerData(), this._isPlayerStop = !0, this._isAutoMove && this.OnBtnGoAheadClick()
            }, t.prototype.GoOn = function(e, t) {
                void 0 === t && (t = -1), this._litArray = [], this._playerMoveTweens.forEach(function(e) {
                    e.stop()
                }), this._playerMoveTweens = [];
                var n = this._moveSpeed;
                if (this._currentMode == c.Rush && (n = this._rushSpeed), e > 0) {
                    if (this._playerIndex == this._branchPointIndex && this._currentWalkOnPart == l.None) return this._remainderPoint = e, void this.BranchDirectionChoose();
                    this._remainderPoint = 0;
                    for (var o = 0; o < e; o++) {
                        if (this._currentWalkOnPart == l.Left)(r = this._nextIndex + o) <= this._leftBranchEndIndex ? this._litArray[o] = r : this._litArray[o] = r - this._leftBranchEndIndex;
                        else if (this._currentWalkOnPart == l.Right) {
                            var r;
                            (r = this._nextIndex + o) <= this._rightBranchEndIndex ? this._litArray[o] = r : this._litArray[o] = r - this._rightBranchEndIndex
                        } else this._litArray[o] = this._nextIndex + o;
                        if (this._litArray[o] == this._branchPointIndex) {
                            this._remainderPoint = e - o - 1;
                            for (var i = 0; i < this._remainderPoint; i++) this._litArray.push(this._leftBranchStartIndex + i), this._litArray.push(this._rightBranchStartIndex + i);
                            break
                        }
                    }
                    for (this._playerMoveTweens[0] = cc.tween(this.Map).by(1 / n, {
                            position: this._blocksPool[this._playerIndex].position.sub(this._blocksPool[this._litArray[0]].position)
                        }), o = 1; o < e - this._remainderPoint; o++) this._playerMoveTweens[o] = cc.tween(this.Map).by(1 / n, {
                        position: this._blocksPool[this._litArray[o - 1]].position.sub(this._blocksPool[this._litArray[o]].position)
                    })
                } else if (t > 0) {
                    if (this.BranchLocated(this._playerIndex) == this.BranchLocated(t))
                        for (var a = this._playerIndex + 1; a <= t; a++) this._litArray.push(a);
                    else if (this.BranchLocated(t) == l.None) {
                        if (this.BranchLocated(this._playerIndex) == l.Left)
                            for (a = this._playerIndex + 1; a <= this._leftBranchEndIndex; a++) this._litArray.push(a);
                        else
                            for (a = this._playerIndex + 1; a <= this._rightBranchEndIndex; a++) this._litArray.push(a);
                        for (a = 1; a <= t; a++) this._litArray.push(a)
                    } else {
                        for (a = this._playerIndex + 1; a < this._leftBranchStartIndex; a++) this._litArray.push(a);
                        if (this.BranchLocated(t) == l.Left) {
                            for (a = this._leftBranchStartIndex; a <= t; a++) this._litArray.push(a);
                            this._currentChosenDirection = l.Left, this._currentWalkOnPart = l.Left, this._brickLayingPos = this._blocksPool[this._leftBranchEndIndex].position
                        } else {
                            for (a = this._rightBranchStartIndex; a <= t; a++) this._litArray.push(a);
                            this._currentChosenDirection = l.Right, this._currentWalkOnPart = l.Right, this._brickLayingPos = this._blocksPool[this._rightBranchEndIndex].position
                        }
                        this._nextIndex = t + 1
                    }
                    for (this._playerMoveTweens[0] = cc.tween(this.Map).by(1 / n, {
                            position: this._blocksPool[this._playerIndex].position.sub(this._blocksPool[this._litArray[0]].position)
                        }), o = 1; o < this._litArray.length; o++) this._playerMoveTweens[o] = cc.tween(this.Map).by(1 / n, {
                        position: this._blocksPool[this._litArray[o - 1]].position.sub(this._blocksPool[this._litArray[o]].position)
                    })
                }
                this.LitBlock(), this.ActorMovement(0)
            }, t.prototype.ActorMovement = function(e) {
                var t = this;
                if (e >= this._playerMoveTweens.length) this.OnPlayerMoveEnd();
                else if (!(e < 0)) {
                    this._playerSkeleton.getState().tracks[0].animation.name != this._playerMoveAniName && this._playerSkeleton.setAnimation(0, this._playerMoveAniName, !0);
                    var n = this._blocksDir[this._litArray[e]];
                    this.Player.scaleX = this._playersDirectionScales[n], this._currentMode == c.Rush ? this.SetRushDirection(n) : this.SetRushDirection(l.None), this._playerMoveTweens[e].call(function() {
                        t._blockHighLights[e].active = !1, t._playerIndex = t._litArray[e], t.GetModel(), 1 == t._playerIndex && (t._currentWalkOnPart = l.None, t._curChosenEndIndex = t._rightBranchEndIndex), t.BlockReuse();
                        var n = t._blocksPool[t._playerIndex];
                        if (!n) return t._isAutoMove && t.OnCancelAutoMoveButtonClick(), t.BtnReturn.node.active = !0, t.RefreshBlocks(), t.InitMapConstant(), t.OnPlayerMoveEnd(), void t._blockHighLights.forEach(function(e) {
                            e.active = !1
                        });
                        if (n.getComponent(P.default).Sink(), e++, t._currentMode == c.Rush) {
                            var o = n.getComponent(P.default).GetEventType();
                            o == _.RelicTreasureHuntEventType.Blank ? t.PlayCoinEffectAnimation(n.position, t._scatteringCoinsAniName) : o == _.RelicTreasureHuntEventType.Items ? t.GotItemAnimation(n) : o == _.RelicTreasureHuntEventType.Pandora && t._emptyPandoraNumber > 0 && (t.PlayPandoraEffectAnimation(n.position, t._emptyPandoraAniName), t._emptyPandoraNumber--), t.ClearBlock(n.getComponent(P.default)), n.getComponent(P.default).SetEventType(-1), t._lowerMapData[t._playerIndex] = void 0, t.ActorMovement(e)
                        } else if (t._res.Goods.length > 0 && t._res.Goods[0].Items[0] == e) {
                            if (t._isAutoMove) {
                                t.ShowTravelingShopBubble(), t.ActorMovement(e);
                                var r = t._playerIndex == t._branchPointIndex && t._currentWalkOnPart == l.None;
                                e >= t._playerMoveTweens.length && (!r || r && 0 == t._remainderPoint) && (t._isPlayerStop = !0, t.OnBtnGoAheadClick())
                            } else g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureMerchantPanel.Path, t._res.Goods, e), t._playerSkeleton.setAnimation(0, t._playerIdleAniName, !0), e >= t._playerMoveTweens.length && (t._isPlayerStop = !0);
                            t.ClearBlock(n.getComponent(P.default)), n.getComponent(P.default).SetEventType(-1)
                        } else t.ActorMovement(e)
                    }).start()
                }
            }, t.prototype.BlockReuse = function() {
                for (; this.IsInvisible(this._resetIndex) && this._brickLayingPos.y > 0;) {
                    if (this._resetIndex < this._leftBranchStartIndex) this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blocksDir[this._resetIndex]]), this._blocksPool[this._resetIndex].position = this._brickLayingPos;
                    else {
                        if (this._curTurnsEndIndex < 0) {
                            if (this._currentChosenDirection == l.Right) {
                                for (var e = this._leftBranchStartIndex; e <= this._leftBranchEndIndex; e++) this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blocksDir[e]]), this._blocksPool[e].position = this._brickLayingPos, this._blocksPool[e].zIndex = this._brickLayingZIndex--;
                                this._resetIndex = this._rightBranchStartIndex, this._curTurnsEndIndex = this._rightBranchEndIndex
                            } else if (this._currentChosenDirection == l.Left) {
                                for (e = this._rightBranchStartIndex; e <= this._rightBranchEndIndex; e++) this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blocksDir[e]]), this._blocksPool[e].position = this._brickLayingPos, this._blocksPool[e].zIndex = this._brickLayingZIndex--;
                                this._resetIndex = this._leftBranchStartIndex, this._curTurnsEndIndex = this._leftBranchEndIndex
                            }
                            this._brickLayingPos = this._blocksPool[this._branchPointIndex].position;
                            continue
                        }
                        this._brickLayingPos.addSelf(this._mapDirectionVectors[this._blocksDir[this._resetIndex]]), this._blocksPool[this._resetIndex].position = this._brickLayingPos
                    }
                    this._blocksPool[this._resetIndex].zIndex = this._brickLayingZIndex--, this._resetIndex++, this._curTurnsEndIndex > 0 && this._resetIndex > this._curTurnsEndIndex && (this._resetIndex = 1, this._curTurnsEndIndex = -1, this._brickLayingPos = this._invisiblePos)
                }
            }, t.prototype.OnPlayerMoveEnd = function() {
                var e = this;
                if (this._playerSkeleton.setAnimation(0, this._playerIdleAniName, !0), this.BtnReturn.node.active = !0, this._remainderPoint > 0) {
                    if (this._isAutoMove) return void this.scheduleOnce(function() {
                        e.OnDirectionArrowClick(void 0)
                    }, .5);
                    if (this.DirectionArrows.forEach(function(e) {
                            e.active = !0
                        }), this.DirectionArrows[l.Left].parent = this._blocksPool[this._leftBranchStartIndex], this.DirectionArrows[l.Left].position = this._directionSpritePoss[l.Left], this.DirectionArrows[l.Right].parent = this._blocksPool[this._rightBranchStartIndex], this.DirectionArrows[l.Right].position = this._directionSpritePoss[l.Right], this.CenterTip.active = !0, 0 == this._arrowMoveTweens.length)
                        for (var t = function(t) {
                                n._arrowMoveTweens[t] = cc.tween(n.DirectionArrows[t]).repeatForever(cc.tween().by(1, {
                                    position: n._mapDirectionVectors[t].div(10)
                                }).call(function() {
                                    e.DirectionArrows[t].position = e._directionSpritePoss[t]
                                }))
                            }, n = this, o = 0; o < this.DirectionArrows.length; o++) t(o);
                    this._arrowMoveTweens.forEach(function(e) {
                        e.start()
                    })
                } else {
                    var r = !1;
                    if (this._playerIndex == this._leftBranchEndIndex || this._playerIndex == this._rightBranchEndIndex ? this._nextIndex = 1 : this._nextIndex = this._playerIndex + 1, this.Player.scaleX = this._playersDirectionScales[this._blocksDir[this._nextIndex]], this._res.LevelRewards.length > 0 && this._currentMode != c.Rush && (f.UIUtlity.ShowFloatingHint("treasure_levelUp".ToUILocale()), f.UIUtlity.ShwDisplayRewardPanel(this._res.LevelRewards)), this._res.Type == _.RelicTreasureHuntEventType.SlotMachine) f.UIUtlity.HideBubble(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureMachinePanel.Path, this._relicModel.Level, this._itemPrefab, this._isAutoMove), this._playerSkeleton.setAnimation(0, this._playerIdleAniName, !0), this.ClearBlock(this._blocksPool[this._playerIndex].getComponent(P.default));
                    else if (this._res.Type == _.RelicTreasureHuntEventType.Hieron)
                        if (f.UIUtlity.HideBubble(), this.ClearBlock(this._blocksPool[this._playerIndex].getComponent(P.default)), this._playerSkeleton.setAnimation(0, this._playerIdleAniName, !0), this._isAutoMove) h.ConfigDataComponent.Instance.GetConfigById(d.HieronBumper_Config, this._res.Hieron[0]).Type == _.RelicTreasureHuntHieronType.Charge ? this.scheduleOnce(function() {
                            e.OnHieronClose()
                        }, 1) : r = !0;
                        else {
                            var i;
                            i = 4 == this._res.Hieron[0] ? "Cardbuff_1" : "Cardbuff_" + this._res.Hieron[0], g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureHieronPanel.Path, this._panelAtlas.getSpriteFrame(i), this._res.Hieron[0])
                        }
                    else if (this._res.Type == _.RelicTreasureHuntEventType.Blank) this.MergeAndShowInfo(this._res.Rewards), this.PlayCoinEffectAnimation(this._blocksPool[this._playerIndex].position, this._scatteringCoinsAniName), this._isAutoMove && (r = !0);
                    else if (this._res.Type == _.RelicTreasureHuntEventType.Items) this.MergeAndShowInfo(this._res.Rewards), this.GotItemAnimation(this._blocksPool[this._playerIndex]), this._isAutoMove && (r = !0);
                    else if (this._res.Type == _.RelicTreasureHuntEventType.Box) {
                        if (this._isAutoMove) {
                            var a = [];
                            this._res.Rewards.forEach(function(e) {
                                var t = k.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e.ItemId),
                                    n = f.UIUtlity.GetLabelColorByQuality(t.Quality),
                                    o = "treasure_auto_reward".ToUILocale().Fmt(n.toHEX("#rrggbb"), e.ItemId.ToItemName(), e.Count);
                                a.push(o)
                            }), f.UIUtlity.ShowFloatingHint(a), r = !0
                        } else f.UIUtlity.ShwDisplayRewardPanel(this._res.Rewards, 1), this._isPlayerStop = !0;
                        this.ClearBlock(this._blocksPool[this._playerIndex].getComponent(P.default))
                    } else if (this._res.Type == _.RelicTreasureHuntEventType.Pandora) {
                        if (this.RemoveInvalidItemAtResRewards(), this._res.Rewards.length > 0)
                            if (this._isAutoMove) {
                                var s = [];
                                this._res.Rewards.forEach(function(e) {
                                    var t = k.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, e.ItemId),
                                        n = f.UIUtlity.GetLabelColorByQuality(t.Quality),
                                        o = "treasure_auto_reward".ToUILocale().Fmt(n.toHEX("#rrggbb"), e.ItemId.ToItemName(), e.Count);
                                    s.push(o)
                                }), f.UIUtlity.ShowFloatingHint(s), r = !0
                            } else f.UIUtlity.ShwDisplayRewardPanel(this._res.Rewards);
                        else this._currentMode == c.Normal && (this._isAutoMove && (r = !0), f.UIUtlity.ShowFloatingHint("treasure_noTreasure".ToUILocale()), this.PlayPandoraEffectAnimation(this._blocksPool[this._playerIndex].position.add(P.default.ItemPos), this._emptyPandoraAniName));
                        this.ClearBlock(this._blocksPool[this._playerIndex].getComponent(P.default))
                    }
                    this._res.Type != _.RelicTreasureHuntEventType.Hieron || h.ConfigDataComponent.Instance.GetConfigById(d.HieronBumper_Config, this._res.Hieron[0]).Type != _.RelicTreasureHuntHieronType.Charge ? (this.GetModel(), this.SetPlayerData(), this._isAutoMove || this.SetDiceButtons(!0), this._res.Hieron.length > 0 && this._res.Hieron[1] > 0 && (this.TravelingShop.active = !0, this.ShowTravelingShopBubble()), this.Map.position = this.Player.parent.position.sub(this._playerPosOffset).sub(this._blocksPool[this._relicModel.PositionIndex].position)) : (this.ClearBlock(this._blocksPool[this._playerIndex].getComponent(P.default)), this._blocksPool[this._playerIndex].getComponent(P.default).SetEventType(-1)), this._currentMode = c.Normal, this.SetRushDirection(l.None), this._isPlayerStop = !0, r && this.OnBtnGoAheadClick()
                }
            }, t.prototype.LitBlock = function() {
                var e = this._litArray;
                if (e.length > this._blockHighLights.length) {
                    for (var t = 0; t < this._blockHighLights.length; t++) this._blockHighLights[t].active = !0, this._blockHighLights[t].parent = this._blocksPool[e[t]], this._blockHighLights[t].setSiblingIndex(1), this._blockHighLights[t].position = P.default.HighLightPos;
                    for (t = this._blockHighLights.length; t < e.length; t++) {
                        var n = cc.instantiate(this._blockLightPrefab);
                        this._blockHighLights.push(n), n.parent = this._blocksPool[e[t]], n.setSiblingIndex(1), n.position = P.default.HighLightPos
                    }
                } else {
                    for (t = 0; t < e.length; t++) this._blockHighLights[t].active = !0, this._blockHighLights[t].parent = this._blocksPool[e[t]], this._blockHighLights[t].setSiblingIndex(1), this._blockHighLights[t].position = P.default.HighLightPos;
                    for (t = e.length; t < this._blockHighLights.length; t++) this._blockHighLights[t].active = !1
                }
            }, t.prototype.IsInvisible = function(e) {
                var t = this._blocksPool[e].convertToWorldSpaceAR(cc.v3(0, 0, 0));
                return t.x < -600 || t.y < -1300
            }, t.prototype.OnDirectionArrowClick = function(e) {
                var t, n = this;
                t = this._isAutoMove ? Math.round(Math.random()) : this._arrowNameToDirection.get(e.target.name), this._currentChosenDirection = t, this._currentWalkOnPart = t;
                var o = new p.Req_Relic_Fork;
                t == l.Left ? (this._brickLayingPos.y < 0 && (this._brickLayingPos = this._blocksPool[this._leftBranchEndIndex].position), this._nextIndex = this._leftBranchStartIndex, this._curChosenEndIndex = this._leftBranchEndIndex, o.Direction = _.RelicTreasureHuntFork.Left) : t == l.Right && (this._brickLayingPos.y < 0 && (this._brickLayingPos = this._blocksPool[this._rightBranchEndIndex].position), this._nextIndex = this._rightBranchStartIndex, this._curChosenEndIndex = this._rightBranchEndIndex, o.Direction = _.RelicTreasureHuntFork.Right), h.RpcComponent.Instance.Call(o, function(e) {
                    n.SetResponse(e), n._blockHighLights.forEach(function(e) {
                        e.active = !1
                    }), n.Player.scaleX = n._playersDirectionScales[n._blocksDir[n._nextIndex]], n._arrowMoveTweens.forEach(function(e) {
                        e.stop()
                    }), n.DirectionArrows.forEach(function(e) {
                        e.active = !1
                    }), n.CenterTip.active = !1, n.GoOn(n._remainderPoint)
                })
            }, t.prototype.SetBlock = function(e, t) {
                if (null != e && null != e) {
                    if (!t || 0 == t.Items.length) return this.ClearBlock(e.getComponent(P.default)), void e.getComponent(P.default).SetEventType(-1);
                    var n = t.Items,
                        o = t.Items[0];
                    o == e.getComponent(P.default).GetEventType() && o != _.RelicTreasureHuntEventType.Items || (e.getComponent(P.default).SetEventType(o), this.SetBlank(e.getComponent(P.default)), o == _.RelicTreasureHuntEventType.Items ? this.SetGroundItem(e, n[1], n[2]) : o != _.RelicTreasureHuntEventType.Hieron && o != _.RelicTreasureHuntEventType.Pandora && o != _.RelicTreasureHuntEventType.Box && o != _.RelicTreasureHuntEventType.SlotMachine && o != _.RelicTreasureHuntEventType.Businessman || this.SetGroundIcon(e, o))
                }
            }, t.prototype.SetBlockByIndex = function(e) {
                var t = this._blocksPool[e.Items[0]],
                    n = new p.IntArray;
                n.Items = [];
                for (var o = 1; o < e.Items.length; o++) n.Items.push(e.Items[o]);
                this.SetBlock(t, n)
            }, t.prototype.SetAllBlocks = function() {
                var e = this,
                    t = new p.Req_Relic_GetMap;
                h.RpcComponent.Instance.Call(t, function(t) {
                    if (e.GetModel(), e.SetPlayerData(), e.BranchLocated(e._playerIndex) == l.None)
                        for (var n = 1; n <= e._rightBranchEndIndex; n++) e.SetBlock(e._blocksPool[n], t.Map[n]);
                    else if (e.BranchLocated(e._playerIndex) == l.Left) {
                        for (n = 1; n <= e._branchPointIndex; n++) e.SetBlock(e._blocksPool[n], t.NextMap[n]);
                        for (n = e._leftBranchStartIndex; n <= e._leftBranchEndIndex; n++) e.SetBlock(e._blocksPool[n], t.Map[n]);
                        for (n = e._rightBranchStartIndex; n <= e._rightBranchEndIndex; n++) e.SetBlock(e._blocksPool[n], t.NextMap[n])
                    } else if (e.BranchLocated(e._playerIndex) == l.Right) {
                        for (n = 1; n <= e._branchPointIndex; n++) e.SetBlock(e._blocksPool[n], t.NextMap[n]);
                        for (n = e._leftBranchStartIndex; n <= e._leftBranchEndIndex; n++) e.SetBlock(e._blocksPool[n], t.NextMap[n]);
                        for (n = e._rightBranchStartIndex; n <= e._rightBranchEndIndex; n++) e.SetBlock(e._blocksPool[n], t.Map[n])
                    }
                    e._remainderPoint > 0 && (e.SetDiceButtons(!1), e.BranchDirectionChoose()), e._relicModel.Rewards.length > 0 && (f.UIUtlity.HideBubble(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureCompassPanel.Path, e._relicModel.Rewards), e.GetModel()), t.Map[e._relicModel.PositionIndex] && 6 == t.Map[e._relicModel.PositionIndex].Items[0] && (f.UIUtlity.HideBubble(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.RelicTreasureMachinePanel.Path, e._relicModel.Level, e._itemPrefab))
                })
            }, t.prototype.SetPlayerData = function() {
                var e, t;
                if (this.RuinsCoinCurrency.Init(this._ruinsCoinIndex), this.GoldCoinCurrency.Init(this._goldCoinIndex), this.DiamondCurrency.Init(this._diamondIndex), this._diceNumber = h.DataCenter.Instance.GetItemCount(_.CommonItemId.DiceId), this.GetSecondsTillNextDiceRestore(), this.DiceCurrency.SetMaxCount(this._diceLimit.toString()), this.DiceCurrency.Init(this._diceIndex, !1, this._displayDiceCount), this.DiceCurrency.SetClickCallBack(this.OnBtnAddDiceClick.bind(this)), this._curRuinsCoinNumber = h.DataCenter.Instance.GetItemCount(this._ruinsCoinIndex), this._curGoldCoinNumber = h.DataCenter.Instance.GetItemCount(this._goldCoinIndex), this._curDiamondNumber = h.DataCenter.Instance.GetItemCount(this._diamondIndex), this._curDiceNumber = h.DataCenter.Instance.GetItemCount(this._diceIndex), this.RemoteDiceNumberLabel.string = h.DataCenter.Instance.GetItemCount(this._remoteDiceIndex).toString(), this._diceBuyLimit = h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("RelicTreasureHuntBuyDiceLimit") + R.default.GetModuleBonusByType(_.ModuleBonusType.RelicBuyDice), this.TreasureLevelTitle.string = "treasure_level_title".ToUILocale(), this.TreasureLevelLabel.string = "Activity_LuckyBag_Box_Level".ToUILocale().Fmt(this._relicModel.Level), this._relicModel.Level < this._relicLevelConfigs[this._relicLevelConfigs.length - 1].Id) {
                    var n = this.GetXpOfLevel(this._relicModel.Level);
                    e = this._relicModel.Xp - n, t = this.GetXpOfLevel(this._relicModel.Level + 1) - n
                } else t = e = this._relicLevelConfigs[this._relicLevelConfigs.length - 1].Xp;
                this.ExpProcessBar.progress = e / t, this.ExpProcessBarValueLabel.string = e + "/" + t, this.RefreshCompass(), this.TravelingShop.active = this._relicModel.Goods.length > 0, this.TravelingShop.active && this._shouldPopShopBubble && (this.ShowTravelingShopBubble(), this._shouldPopShopBubble = !1);
                var o = this._displayDiceCount >= this._diceLimit;
                this._shouldPopDiceBubble && o && (this._shouldPopDiceBubble = !1, f.UIUtlity.HideBubble(), g.UIManager.Instance.ShowUIPanel(u.PanelConfig.BubblePanel.Path, this.DiceCurrency.node.convertToWorldSpaceAR(cc.v3(0, this.DiceCurrency.node.height / 2)), "treasure_bubble_Dice".ToUILocale().Fmt(this._diceLimit), S.BubbleAnchorType.Bottom, g.UINodeType.Fixed)), this._secondsToRestoreOneDice > 0 && !o && this.StartUpdateDiceRestoreCountingDown();
                var r = 0;
                if (this._relicModel.HieronBumper > 0) {
                    var i = _.RelicTreasureHuntHieronType.Bumper;
                    this.BuffContainerAddBuff(r, i), r++
                }
                this._relicModel.HieronDeign[0] > 0 && (i = _.RelicTreasureHuntHieronType.Deign, this.BuffContainerAddBuff(r, i), r++), this._relicModel.HieronBlessing[0] > 0 && (i = 5, this.BuffContainerAddBuff(r, i), r++);
                for (var a = r; a < this.BuffContainer.childrenCount; a++) this.BuffContainer.children[a].active = !1
            }, t.prototype.GetXpOfLevel = function(e) {
                var t;
                return 0 == e ? 0 : (t = e == this._relicLevelConfigs[this._relicLevelConfigs.length - 1].Id ? this._relicLevelConfigs.length - 1 : e - 1, this._relicLevelConfigs[t].Xp)
            }, t.prototype.BranchLocated = function(e) {
                return e < this._leftBranchStartIndex ? l.None : e < this._rightBranchStartIndex ? l.Left : l.Right
            }, t.prototype.SetCompassGems = function(e) {
                e = Math.floor(e);
                for (var t = 0; t < Math.min(e, this.CompassGemsSprite.length); t++) this.CompassGemsSprite[t].active = !0;
                for (t = e; t < this.CompassGemsSprite.length; t++) this.CompassGemsSprite[t].active = !1;
                e >= this.CompassGemsSprite.length ? (this.CompassAnimation.node.active = !0, this.BubbleNode.active = !0, this.CompassAnimation.setAnimation(0, this.CompassAnimation.animation, !0)) : (this.CompassAnimation.node.active = !1, this.BubbleNode.active = !1)
            }, t.prototype.RefreshCompass = function() {
                this.GetModel(), this.SetCompassGems(this._relicModel.ThrowingCount / h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("RelicTreasureHuntOneGemCount"));
                var e = Math.floor(this._relicModel.ThrowingCount / (h.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("RelicTreasureHuntOneGemCount") * this.CompassGemsSprite.length));
                this.CompassNumberLabel.string = e.toString();
                var t = e > 0;
                this.BtnCompassBgInactive.active = !t, this.BtnCompassBgActive.active = t
            }, t.prototype.GetModel = function() {
                this._relicModel = h.DataCenter.Instance.GetDataById(p.RelicTreasureHunt_Model, 1), this._relicModel.HieronDeign && 2 == this._relicModel.HieronDeign.length && (this._buffParamById[3] = [this._relicModel.HieronDeign[1]]), this._relicModel.HieronBlessing && 3 == this._relicModel.HieronBlessing.length && (this._buffParamById[5] = [this._relicModel.HieronBlessing[1], this._relicModel.HieronBlessing[2]]), this._relicModel.HieronBumper && (this._buffParamById[2] = [this._relicModel.HieronBumper])
            }, t.prototype.OnHieronClose = function() {
                var e = this._res.Hieron[0];
                h.ConfigDataComponent.Instance.GetConfigById(d.HieronBumper_Config, e).Type == _.RelicTreasureHuntHieronType.Charge ? (this._currentMode = c.Rush, e == this._superRushId ? (this._rushAniPrefix = this._superRushAnimationPrefix, this.RushAniAssign(this._superRushEffectPrefab)) : (this._rushAniPrefix = this._rushAnimationPrefix, this.RushAniAssign(this._rushEffectPrefab)), this.GetModel(), this.GoOn(-1, this._relicModel.PositionIndex), this._res.Type = _.RelicTreasureHuntEventType.Pandora) : this._isPlayerStop = !0
            }, t.prototype.ShowTravelingShopBubble = function() {
                var e = this;
                f.UIUtlity.HideBubble(), this.scheduleOnce(function() {
                    g.UIManager.Instance.ShowUIPanel(u.PanelConfig.BubblePanel.Path, e.TravelingShop.convertToWorldSpaceAR(cc.v3(-e.TravelingShop.width / 2)), "treasure_bubble_TravelingShop".ToUILocale(), S.BubbleAnchorType.Right, g.UINodeType.Fixed, 1)
                }, .5)
            }, t.prototype.BuffContainerAddBuff = function(e, t) {
                if (this.BuffContainer.children[e]) this.BuffContainer.children[e].active = !0, this.BuffContainer.children[e].getComponent(I.default).Set(this._panelAtlas.getSpriteFrame("UIbuff_" + t), t, this._buffParamById[t]);
                else {
                    var n = cc.instantiate(this._buffPrefab);
                    this.BuffContainer.addChild(n), n.getComponent(I.default).Set(this._panelAtlas.getSpriteFrame("UIbuff_" + t), t, this._buffParamById[t])
                }
            }, t.prototype.ShowFloatHint = function(e) {
                f.UIUtlity.ShowFloatingHint("treasure_gotMapItem".ToUILocale().Fmt(e.ItemId.ToItemName(), e.ItemId, e.Count))
            }, t.prototype.BranchDirectionChoose = function() {
                this._litArray = [];
                for (var e = 0; e < this._remainderPoint; e++) this._litArray.push(this._leftBranchStartIndex + e), this._litArray.push(this._rightBranchStartIndex + e);
                this.LitBlock(), this.OnPlayerMoveEnd()
            }, t.prototype.SetDiceButtons = function(e) {
                this.BtnGoAhead.node.active = e, this.BtnRemoteDice.interactable = e
            }, t.prototype.SetRushDirection = function(e) {
                if (this._playerLowerAni) {
                    if (e == l.None) return this._playerLowerAni.node.active = !1, void(this._playerUpperAni.node.active = !1);
                    this._playerLowerAni.node.active = !0, this._playerUpperAni.node.active = !0, e == l.Left ? (this._playerLowerAni.setAnimation(0, this._rushAniPrefix + "_down", !0), this._playerUpperAni.setAnimation(0, this._rushAniPrefix + "_up", !0)) : e == l.Right && (this._playerLowerAni.setAnimation(0, this._rushAniPrefix + "2_down", !0), this._playerUpperAni.setAnimation(0, this._rushAniPrefix + "2_up", !0))
                }
            }, t.prototype.PlayCoinEffectAnimation = function(e, t) {
                for (var n = this, o = 0; this._scatteringCoinsPool[o];) {
                    if (0 == this._scatteringCoinsPool[o].node.active) {
                        this._scatteringCoinsPool[o].node.active = !0;
                        break
                    }
                    o++
                }
                o >= this._scatteringCoinsPool.length && (this._scatteringCoinsPool[o] = cc.instantiate(this._coinEffectPrefab).getComponent(sp.Skeleton), this._scatteringCoinsPool[o].node.setParent(this.MapEffectFront)), this._scatteringCoinsPool[o].node.position = this.MapEffectFront.convertToNodeSpaceAR(this.Map.convertToWorldSpaceAR(e)), this._scatteringCoinsPool[o].setAnimation(0, t, !1) && this._scatteringCoinsPool[o].setCompleteListener(function() {
                    n._scatteringCoinsPool[o].node.active = !1
                })
            }, t.prototype.PlayPandoraEffectAnimation = function(e, t) {
                for (var n = this, o = 0; this._emptyPandoraPool[o];) {
                    if (0 == this._emptyPandoraPool[o].node.active) {
                        this._emptyPandoraPool[o].node.active = !0;
                        break
                    }
                    o++
                }
                o >= this._emptyPandoraPool.length && (this._emptyPandoraPool[o] = cc.instantiate(this._pandoraEffectPrefab).getComponent(sp.Skeleton), this._emptyPandoraPool[o].node.setParent(this.EffectContainer)), this._emptyPandoraPool[o].node.position = e, this._emptyPandoraPool[o].setAnimation(0, t, !1) && this._emptyPandoraPool[o].setCompleteListener(function() {
                    n._emptyPandoraPool[o].node.active = !1
                })
            }, t.prototype.SetGroundIcon = function(e, t) {
                var n = this._groundIconsPool.Get();
                n.targetOff(this), n.on(cc.Node.EventType.TOUCH_END, function() {
                    g.Game.EventDispatcher.Emit(b.EventKeys.EVENT_TREASURE_ICON_CLICK, t, n)
                }, this), e.getComponent(P.default).SetItem(n), n.children[0].getComponent(cc.Sprite).spriteFrame = this._panelAtlas.getSpriteFrame(this._eventSpritePrefix + t), this.SetGroundShadow(e)
            }, t.prototype.SetGroundItem = function(e, t, n) {
                var o = this._groundItemsPool.Get(this._itemScale);
                e.getComponent(P.default).SetItem(o);
                var r = h.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, t);
                o.getComponent(v.ItemComponent).Init({
                    ItemId: t,
                    Count: n
                }, r.Star ? v.ItemComponentType.ItemWithStar : v.ItemComponentType.ItemCommon), o.name = t.toString(), o.active = !0, this.SetGroundShadow(e)
            }, t.prototype.SetGroundShadow = function(e) {
                var t = this._groundShadowsPool.Get();
                e.getComponent(P.default).SetShadow(t)
            }, t.prototype.GotItemAnimation = function(e) {
                var t = this,
                    n = e.getComponent(P.default).GetItem();
                n.setParent(this.FrontEffect);
                var o = e.getComponent(P.default).GetShadow();
                cc.tween(n).by(this._itemRaiseTime, {
                    position: cc.v3(0, this._itemRaiseDistance, 0),
                    scale: this._itemRaiseScale
                }, {
                    easing: "quadOut"
                }).delay(this._itemPeakStayTime).by(this._itemFallTime, {
                    position: cc.v3(0, -this._itemFallDistance),
                    scale: this._itemFallScale,
                    opacity: this._itemFallOpacity
                }, {
                    easing: "quadIn"
                }).call(function() {
                    n.scale = t._itemScale, n.opacity = 255, t._groundItemsPool.Put(n), e.getComponent(P.default).SetBlank(), e.getComponent(P.default).SetEventType(-1)
                }).start(), cc.tween(o).to(this._itemRaiseTime, {
                    scale: 0
                }, {
                    easing: "quadOut"
                }).call(function() {
                    o.scale = 1, t._groundShadowsPool.Put(o)
                }).start()
            }, t.prototype.RemoveInvalidItemAtResRewards = function() {
                var e = this,
                    t = [];
                this._emptyPandoraNumber = 0, this._res.Rewards.forEach(function(n) {
                    n.ItemId > 0 ? t.push(n) : e._emptyPandoraNumber++
                }), this._res.Rewards = t
            }, t.prototype.SetResponse = function(e) {
                if (this._res = e, e.Map && e.Map.length > 0) {
                    if (1 == e.Map[0].Items[0])
                        for (var t = 2; t < e.Map.length; t++) this.SetBlock(this._blocksPool[t - 1], e.Map[t]);
                    else if (2 == e.Map[0].Items[0])
                        for (t = 1; t < e.Map.length; t++) this.SetBlockByIndex(e.Map[t]);
                    if (1 == e.NextMap[0].Items[0])
                        for (t = 2; t < e.NextMap.length; t++) this.SetBlock(this._blocksPool[t - 1], e.NextMap[t]);
                    else if (2 == e.NextMap[0].Items[0])
                        for (t = 1; t < e.NextMap.length; t++) this.SetBlockByIndex(e.NextMap[t])
                }
                this.RemoveInvalidItemAtResRewards()
            }, t.prototype.IsAtNextMapByIndex = function(e) {
                return this._resetIndex, this._playerIndex, e < this._resetIndex || this.BranchLocated(this._resetIndex) != l.None && this.BranchLocated(this._resetIndex) != this.BranchLocated(e)
            }, t.prototype.ClearBlock = function(e) {
                e.GetItem() && !e.GetItem().getComponent(v.ItemComponent) && (e.GetItem().getComponents(cc.Sprite) && this._groundIconsPool.Put(e.GetItem()), this._groundShadowsPool.Put(e.GetShadow()), e.SetBlank())
            }, t.prototype.SetBlank = function(e) {
                e.GetItem() && (e.GetItem().getComponent(cc.Sprite) ? this._groundIconsPool.Put(e.GetItem()) : this._groundItemsPool.Put(e.GetItem())), e.GetShadow() && this._groundShadowsPool.Put(e.GetShadow()), e.SetBlank()
            }, t.prototype.RushAniAssign = function(e) {
                this._playerLowerAni = this.SetRushAni(e, this.PlayerBackNode), this._playerUpperAni = this.SetRushAni(e, this.PlayerFrontNode), this.SetRushDirection(l.None)
            }, t.prototype.SetRushAni = function(e, t) {
                var n = t.getChildByName(e.name);
                return null == n && ((n = cc.instantiate(e)).setParent(t), n.setPosition(cc.v3()), n.name = e.name), n.getComponent(sp.Skeleton)
            }, t.prototype.MergeAndShowInfo = function(e) {
                var t = [];
                for (var n in e.forEach(function(e) {
                        null == t[e.ItemId] ? t[e.ItemId] = e.Count : t[e.ItemId] += e.Count
                    }), t) {
                    var o = Number.parseInt(n),
                        r = k.ConfigDataComponent.Instance.GetConfigById(d.ItemBase_Config, o),
                        i = f.UIUtlity.GetLabelColorByQuality(r.Quality);
                    f.UIUtlity.ShowFloatingHint("treasure_auto_reward".ToUILocale().Fmt(i.toHEX("#rrggbb"), o.ToItemName(), t[n]))
                }
            }, t.prototype.onDestroy = function() {
                this._playerMoveTweens.forEach(function(e) {
                    e.stop()
                }), this._arrowMoveTweens.forEach(function(e) {
                    e.stop()
                }), this._cameraTween && this._cameraTween.stop(), this._groundIconsPool && this._groundIconsPool.Clear(), this._groundItemsPool && this._groundItemsPool.Clear(), this._groundShadowsPool && this._groundShadowsPool.Clear()
            }, t.prototype.ShowGuide = function() {
                O.default.instance.CheckGameModeuleGuideNeedShow(_.GameModuleType.RelicTreasureHunt) && (O.default.instance.ShowNPCDialogs([1026]), O.default.instance.CompleteGameModuleWeakGuide(_.GameModuleType.RelicTreasureHunt))
            }, t.prototype.StartUpdateDiceRestoreCountingDown = function() {
                this.UpdateDiceRestoreCountingDown(), this.schedule(this.UpdateDiceRestoreCountingDown, 1)
            }, t.prototype.StopUpdateDiceRestoreCountingDown = function() {
                this.unschedule(this.UpdateDiceRestoreCountingDown)
            }, t.prototype.UpdateDiceRestoreCountingDown = function() {
                var e = this.GetSecondsTillNextDiceRestore();
                this.DiceRestoreCountingDownRichText.string = this._treasureSeekDiceRestoreCountdown.Fmt(R.default.ActivityTimeLeftFormat(1e3 * e), "1"), this.DiceRestoreCountingDownRoot.active = !0, this.DiceCurrency.SetCount(this._displayDiceCount), this._displayDiceCount >= this._diceLimit && (this.DiceRestoreCountingDownRoot.active = !1, this.StopUpdateDiceRestoreCountingDown())
            }, t.prototype.GetSecondsTillNextDiceRestore = function() {
                if (this._secondsToRestoreOneDice <= 0) return this._displayDiceCount = this._diceNumber, 0;
                var e = k.RpcComponent.Instance.ServerTime,
                    t = h.DataCenter.Instance.GetDataById(p.RelicTreasureHunt_Model, 1).DiceTs;
                t || (t = N.TimeUtil.Get0ClockTs(e));
                var n = e / 1e3 - t / 1e3,
                    o = Math.max(0, Math.floor(n / this._secondsToRestoreOneDice)),
                    r = this._secondsToRestoreOneDice - n % this._secondsToRestoreOneDice;
                return this._displayDiceCount = o + this._diceNumber, r
            }, t.prototype.OnGrayAutoMoveButtonClick = function() {
                f.UIUtlity.ShowFloatingHint("relicTreasureHunt_unlockAuto_hint".ToUILocale()), this.BtnWarTokenEntry.node.active && m.UIManager.Instance.ShowUIPanel(u.PanelConfig.WarTokenListPanel.Path, !1, C.WarTokenType.RelicTreasureHunt)
            }, i([G(cc.Label)], t.prototype, "TitleLabel", void 0), i([G(cc.Node)], t.prototype, "Bg", void 0), i([G(cc.Node)], t.prototype, "ProfilePicture", void 0), i([G(cc.Label)], t.prototype, "TreasureLevelTitle", void 0), i([G(cc.Label)], t.prototype, "TreasureLevelLabel", void 0), i([G(cc.Label)], t.prototype, "ExpProcessBarValueLabel", void 0), i([G(cc.Label)], t.prototype, "DirectionChooseLabel", void 0), i([G(cc.Label)], t.prototype, "RemoteDiceNumberLabel", void 0), i([G(cc.Label)], t.prototype, "RelicCompassLabel", void 0), i([G(cc.Label)], t.prototype, "CompassNumberLabel", void 0), i([G(cc.Label)], t.prototype, "TravelingShopLabel", void 0), i([G(cc.Label)], t.prototype, "ShopLabel", void 0), i([G(cc.Label)], t.prototype, "GoAheadLabel", void 0), i([G(cc.Label)], t.prototype, "GrayGoAheadLabel", void 0), i([G(cc.Label)], t.prototype, "AutoMoveButtonLabel", void 0), i([G(cc.Label)], t.prototype, "GrayAutoMoveButtonLabel", void 0), i([G(cc.Label)], t.prototype, "CancelAutonMoveButtonLabel", void 0), i([G(cc.Button)], t.prototype, "BtnRuinsShop", void 0), i([G(cc.Button)], t.prototype, "BtnGoAhead", void 0), i([G(cc.Button)], t.prototype, "AutonMoveButton", void 0), i([G(cc.Button)], t.prototype, "GrayAutonMoveButton", void 0), i([G(cc.Button)], t.prototype, "CancelAutonMoveButton", void 0), i([G(cc.Button)], t.prototype, "BtnRemoteDice", void 0), i([G(cc.Button)], t.prototype, "BtnWarTokenEntry", void 0), i([G(cc.Label)], t.prototype, "LabelWarTokenEntry", void 0), i([G(cc.Button)], t.prototype, "BtnCompass", void 0), i([G(cc.Node)], t.prototype, "BtnCompassBgActive", void 0), i([G(cc.Node)], t.prototype, "BtnCompassBgInactive", void 0), i([G(cc.Button)], t.prototype, "BtnRule", void 0), i([G(cc.Button)], t.prototype, "BtnReturn", void 0), i([G(y.default)], t.prototype, "RuinsCoinCurrency", void 0), i([G(y.default)], t.prototype, "GoldCoinCurrency", void 0), i([G(y.default)], t.prototype, "DiamondCurrency", void 0), i([G(y.default)], t.prototype, "DiceCurrency", void 0), i([G(D.default)], t.prototype, "ExpProcessBar", void 0), i([G(cc.Node)], t.prototype, "TravelingShop", void 0), i([G(cc.Node)], t.prototype, "BuffContainer", void 0), i([G(cc.Node)], t.prototype, "Map", void 0), i([G(cc.Node)], t.prototype, "MapContainer", void 0), i([G(cc.Node)], t.prototype, "EffectContainer", void 0), i([G(cc.Node)], t.prototype, "PlayerBackNode", void 0), i([G(cc.Node)], t.prototype, "Player", void 0), i([G(cc.Node)], t.prototype, "PlayerFrontNode", void 0), i([G(cc.Node)], t.prototype, "WorldNode", void 0), i([G(cc.Node)], t.prototype, "CenterTip", void 0), i([G(cc.Node)], t.prototype, "FrontEffect", void 0), i([G(cc.Node)], t.prototype, "MapEffectFront", void 0), i([G(cc.Node)], t.prototype, "UnTouchMaskNode", void 0), i([G(sp.Skeleton)], t.prototype, "DiceAnimation", void 0), i([G(sp.Skeleton)], t.prototype, "CompassAnimation", void 0), i([G({
                type: [cc.Node]
            })], t.prototype, "DirectionArrows", void 0), i([G({
                type: [cc.Node]
            })], t.prototype, "CompassGemsSprite", void 0), i([G(cc.Button)], t.prototype, "BtnAddDice", void 0), i([G(cc.RichText)], t.prototype, "DiceNumberRichText", void 0), i([G(cc.Sprite)], t.prototype, "HeadIcon", void 0), i([G(cc.Sprite)], t.prototype, "HeadFrame", void 0), i([G(cc.Node)], t.prototype, "BubbleNode", void 0), i([G(cc.Label)], t.prototype, "BubbleLabel", void 0), i([G(cc.Node)], t.prototype, "DiceRestoreCountingDownRoot", void 0), i([G(cc.RichText)], t.prototype, "DiceRestoreCountingDownRichText", void 0), i([G(cc.RichText)], t.prototype, "TestRichText", void 0), i([U], t)
        }(g.BaseUIFullScreenPanel);
        n.default = x, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/BubbleComponent": "BubbleComponent",
        "../Components/CurrencyBarItem": "CurrencyBarItem",
        "../Components/CustomProgressBar": "CustomProgressBar",
        "../Components/ItemComponent": "ItemComponent",
        "./BuyAndSellItemPanel": "BuyAndSellItemPanel",
        "./GroundBlock": "GroundBlock",
        "./NodePool": "NodePool",
        "./ShopUIPanel": "ShopUIPanel",
        "./TreasureUIBuff": "TreasureUIBuff"
    }],
    RelicTreasureItemCaption: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "70b6fPBQ4RBPJqRyxXd8woy", "RelicTreasureItemCaption");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../EZFramework/EZFramework"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../../Components/Components"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property,
            h = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new a.UIPanelType(a.UINodeType.Tip, !1), t.IconSprite = null, t.TitleText = null, t.InfoText = null, t.Tip = null, t
                }
                return r(t, e), t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._sprite = t[0], this._id = t[1], this._pos = t[2]
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.TitleText.string = "<outline color=#202434 width=3><color=#fed94a>" + c.ConfigDataComponent.Instance.GetLocale("RelicEvent_name_" + this._id) + "</c></outline>", this.InfoText.string = "<outline color=#202434 width=3><color=#ffffff>" + c.ConfigDataComponent.Instance.GetLocale("RelicEvent_desc_" + this._id) + "</c></outline>", this.IconSprite.spriteFrame = this._sprite, this._pos.subSelf(cc.v2(l.UIUtlity.DESIGN_SCREEN_WIDTH / 2, l.UIUtlity.DESIGN_SCREEN_HEIGHT / 2)), this._pos.y < 0 ? this._pos.y += this.Tip.height / 2 : this._pos.y -= this.Tip.height / 2, this._pos.x < this.Tip.width / 2 - l.UIUtlity.DESIGN_SCREEN_WIDTH / 2 ? this._pos.x = this.Tip.width / 2 - l.UIUtlity.DESIGN_SCREEN_WIDTH / 2 : this._pos.x > l.UIUtlity.DESIGN_SCREEN_WIDTH / 2 - this.Tip.width / 2 && (this._pos.x = l.UIUtlity.DESIGN_SCREEN_WIDTH / 2 - this.Tip.width / 2), this.Tip.position = cc.v3(this._pos)
                }, i([d(cc.Sprite)], t.prototype, "IconSprite", void 0), i([d(cc.RichText)], t.prototype, "TitleText", void 0), i([d(cc.RichText)], t.prototype, "InfoText", void 0), i([d(cc.Node)], t.prototype, "Tip", void 0), i([p], t)
            }(s.BaseUIPanel);
        n.default = h, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    RemoteDiceHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b44c7fHz6BHhaFrMkCbKRq7", "RemoteDiceHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../../../EZFramework/EZFramework"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Tip, !1), t.TitleLabel = null, t.TipLabel = null, t.BtnLabel = null, t.BtnConfirm = null, t.HighLightBackPic = null, t.Dices = [], t._currentChosenDice = 0, t._defaultBackPicPos = cc.v3(-3e3, -3e3), t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.TitleLabel.string = "treasure_remoteDice".ToUILocale(), this.TipLabel.string = "treasure_remoteDiceTip".ToUILocale(), this.BtnLabel.string = "ok".ToUILocale();
                    for (var t = 0; t < this.Dices.length; t++) this.Dices[t].on(cc.Node.EventType.TOUCH_END, this.OnDiceChosen, this);
                    this.BtnConfirm.node.on("click", this.OnBtnConfirmClick, this)
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this._currentChosenDice = 0, this.HighLightBackPic.active = !1
                }, t.prototype.OnDiceChosen = function(e) {
                    this._currentChosenDice = Number.parseInt(e.target.name), this.HighLightBackPic.active = !0, this.HighLightBackPic.position = this.Dices[this._currentChosenDice].position
                }, t.prototype.OnBtnConfirmClick = function() {
                    0 != this._currentChosenDice ? (p.Game.EventDispatcher.Emit(u.EventKeys.EVENT_TREASURE_REMOTE, this._currentChosenDice), this.Close()) : c.UIUtlity.ShowFloatingHint("treasure_pleaseChooseDice".ToUILocale())
                }, i([f(cc.Label)], t.prototype, "TitleLabel", void 0), i([f(cc.Label)], t.prototype, "TipLabel", void 0), i([f(cc.Label)], t.prototype, "BtnLabel", void 0), i([f(cc.Button)], t.prototype, "BtnConfirm", void 0), i([f(cc.Node)], t.prototype, "HighLightBackPic", void 0), i([f({
                    type: [cc.Node]
                })], t.prototype, "Dices", void 0), i([h], t)
            }(l.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    RequestTestComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "8626dWMSoJHQ4QKqjhxEysL", "RequestTestComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.ParamLabel = null, t.ParamEditBox = null, t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    this.ParamLabel.string = e
                }, t.prototype.GetParamEditBoxString = function() {
                    return this.ParamEditBox.string
                }, t.prototype.SetParamEditBoxString = function(e) {
                    this.ParamEditBox.string = e
                }, i([l(cc.Label)], t.prototype, "ParamLabel", void 0), i([l(cc.EditBox)], t.prototype, "ParamEditBox", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    RequestTestPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0340fdoCbBNMatbpmP2Yg3u", "RequestTestPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/Components"),
            s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../Auxiliary/UIUtlity"),
            u = e("../../../Consts/Consts"),
            p = e("./RequestTestComponent"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property,
            y = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new s.UIPanelType(s.UINodeType.Fixed, !0, !1), t.CloseBtn = null, t.ClearBtn = null, t.SureBtn = null, t.SendBtn = null, t.RequestNameEditBox = null, t.ParamsContent = null, t.ParamItemPrefab = null, t.ResponseLabel = null, t.NoReqParamLabel = null, t._paramItemNodes = [], t._requestMap = {}, t._paramDatas = [], t
                }
                return r(t, e), t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.CloseBtn.node.on("click", this.ClickCloseBtn, this), this.ClearBtn.node.on("click", this.ClickClearBtn, this), this.SureBtn.node.on("click", this.ClickSureBtn, this), this.SendBtn.node.on("click", this.ClickSendBtn, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this, t);
                    var n = [];
                    for (var o in l)
                        if (o.startsWith("Req") && !o.startsWith("Req_Web") && !o.startsWith("Req_Account") && !o.startsWith("Req_Editor")) {
                            n.push(o);
                            var r = (0, l[o].create)();
                            this._requestMap[o] = r
                        }
                }, t.prototype.DisPlay = function() {
                    e.prototype.DisPlay.call(this), this.NoReqParamLabel.node.active = !1
                }, t.prototype.SetParamNodes = function() {
                    var e = this;
                    this._paramDatas.forEach(function(t, n) {
                        if (!e._paramItemNodes[n]) {
                            var o = cc.instantiate(e.ParamItemPrefab);
                            o.parent = e.ParamsContent, e._paramItemNodes[n] = o
                        }
                        e._paramItemNodes[n].active = !0, e._paramItemNodes[n].getComponent(p.default).Init(t.ParamName)
                    })
                }, t.prototype.ClickClearBtn = function() {
                    this.NoReqParamLabel.node.active = !1, this.ResponseLabel.node.active = !1, this.RequestNameEditBox.string = "", this._paramItemNodes.forEach(function(e) {
                        e.getComponent(p.default).SetParamEditBoxString(""), e.active = !1
                    })
                }, t.prototype.ClickSureBtn = function() {
                    var e = this.RequestNameEditBox.string;
                    if (e && this._requestMap[e]) {
                        for (var t in this._paramDatas = [], this._requestMap[e])
                            if ("toJSON" != t && "None" != t) {
                                var n = typeof this._requestMap[e][t],
                                    o = {};
                                o.ParamName = t, o.ParamType = n, this._paramDatas.push(o)
                            } this.NoReqParamLabel.node.active = 0 == this._paramDatas.length, this._paramItemNodes.forEach(function(e) {
                            e.active = !1
                        }), this._paramDatas.length > 0 && this.SetParamNodes()
                    } else c.UIUtlity.ShowFloatingHint("No such request")
                }, t.prototype.ClickSendBtn = function() {
                    var e = this,
                        t = this.RequestNameEditBox.string;
                    if (t && this._requestMap[t]) {
                        var n = new this._requestMap[t].constructor;
                        this._paramDatas.forEach(function(t, o) {
                            var r = e._paramItemNodes[o].getComponent(p.default).GetParamEditBoxString();
                            if (r) {
                                var i = void 0;
                                switch (t.ParamType) {
                                    case "number":
                                        i = Number.parseInt(r);
                                        break;
                                    case "string":
                                        i = r;
                                        break;
                                    case "boolean":
                                        "true" == r ? i = !0 : "false" == r && (i = !1);
                                        break;
                                    case "object":
                                        i = JSON.parse(r);
                                        break;
                                    default:
                                        i = r
                                }
                                n[t.ParamName] = i
                            }
                        }), a.RpcComponent.Instance.Call(n, function(t) {
                            var n = JSON.stringify(t, null, 4);
                            e.ResponseLabel.node.active = !0, e.ResponseLabel.string = n, c.UIUtlity.ShowFloatingHint("request success")
                        }, function() {
                            c.UIUtlity.ShowFloatingHint("request fail")
                        })
                    } else c.UIUtlity.ShowFloatingHint("No such request")
                }, t.prototype.ClickCloseBtn = function() {
                    s.UIManager.Instance.BackUIPanel()
                }, t.prototype.TestPayOrder2 = function() {
                    var e = new l.Req_PayOrder_VN;
                    e.PayMethod = u.VnPayMethods.CC_GTE, e.Input1 = "CA01429448", e.Input2 = "6113824604", e.Amount = 1e4, a.RpcComponent.Instance.Call(e, function(e) {
                        console.log(e), c.UIUtlity.ShowFloatingHint("request success")
                    }, function() {
                        c.UIUtlity.ShowFloatingHint("request fail")
                    })
                }, t.prototype.TestPayOrder = function() {
                    var e = new l.Req_PayOrder_VN;
                    e.PayMethod = u.VnPayMethods.Gate_ATM, e.Amount = 1e4;
                    var t = this;
                    a.RpcComponent.Instance.Call(e, function(e) {
                        console.log(e), e.Url && t.ShowPage(e.Url), c.UIUtlity.ShowFloatingHint("request success")
                    }, function() {
                        c.UIUtlity.ShowFloatingHint("request fail")
                    })
                }, t.prototype.ShowPage = function(e) {
                    var t = document.getElementById("ez-pay-window");
                    if (!t) {
                        var n = document.createElement("div");
                        document.body.append(n), n.id = "ez-pay-window", n.style.position = "absolute", n.style.visibility = "hidden", n.style.width = "100%", n.style.height = "100%";
                        var o = document.createElement("div");
                        n.append(o), o.style.position = "absolute", o.style.backgroundColor = "rgb(240, 240, 240)", o.style.width = "100%", o.style.height = "100%", t = document.getElementById("ez-pay-window"), window.addEventListener("message", function(e) {
                            console.log("message", e), e.data && "close me" == e.data.msg && (t.style.visibility = "hidden")
                        }, !1)
                    }
                    t.innerHTML = '<iframe id="ez-pay-iframe" allow="autoplay" style="width:100%; height:100%; touch-action: none; opacity: 1;" src="' + e + '"></iframe>', t.style.visibility = "visible"
                }, i([f(cc.Button)], t.prototype, "CloseBtn", void 0), i([f(cc.Button)], t.prototype, "ClearBtn", void 0), i([f(cc.Button)], t.prototype, "SureBtn", void 0), i([f(cc.Button)], t.prototype, "SendBtn", void 0), i([f(cc.EditBox)], t.prototype, "RequestNameEditBox", void 0), i([f(cc.Node)], t.prototype, "ParamsContent", void 0), i([f(cc.Prefab)], t.prototype, "ParamItemPrefab", void 0), i([f(cc.Label)], t.prototype, "ResponseLabel", void 0), i([f(cc.Label)], t.prototype, "NoReqParamLabel", void 0), i([h], t)
            }(s.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./RequestTestComponent": "RequestTestComponent"
    }],
    ResonanceAdditionDesc: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a757ejfLylLS6mKhUDoJ0j0", "ResonanceAdditionDesc");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a, s = e("../../Auxiliary/DataUtlity"),
            l = e("../Auxiliary/UIUtlity"),
            c = e("../Components/AttrComponent4"),
            u = cc._decorator,
            p = u.ccclass,
            d = u.property;
        (function(e) {
            e[e.HolyEquip = 0] = "HolyEquip"
        })(a || (a = {}));
        var h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Title = null, t.EnableNode = null, t.EnableAttr = [], t.DisableNode = null, t.DisableAttr = [], t.ActivedText = null, t.Actived = null, t.BGSprite = null, t._unactivedColor = new cc.Color(175, 191, 231), t._activedColor = new cc.Color(235, 97, 0), t._hexColor = ["ffffff", "ffffff", "6EEEA7", "91dcff", "e2a3ff", "ffa14d", "ff403e"], t
            }
            return r(t, e), t.prototype.onLoad = function() {
                this.ActivedText.string = "artifact_has_active".ToUILocale().Fmt()
            }, t.prototype.Init = function(e, t, n) {
                n == a.HolyEquip ? this.Title.string = "holy_equip_advanced_resonance_desc".ToUILocale().Fmt(e) : this.Title.string = "<outline width=3 color=#202434>" + "gem_allGemsQualityAtLeast".ToUILocale().Fmt("<color = " + this._hexColor[e] + ">" + ("gem_color_" + e).ToUILocale() + "</>") + "</outline>";
                for (var o = 0; o < t.length; o++) this.EnableAttr[o].Init(t[o].Attr, t[o].Value, {
                    ValueAlign: c.AttrComponent4Align.Mid,
                    NotChangeTagNodeWidth: !0
                }), this.DisableAttr[o].Init(t[o].Attr, t[o].Value, {
                    ValueAlign: c.AttrComponent4Align.Mid,
                    NotChangeTagNodeWidth: !0
                }), l.UIUtlity.OnSpriteGray(this.DisableAttr[o].AttrIcon)
            }, Object.defineProperty(t.prototype, "active", {
                get: function() {
                    return this._active
                },
                set: function(e) {
                    this.EnableNode.active = e, this.DisableNode.active = !e, this._active = e
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.GetAttrDesc = function(e, t) {
                var n = s.default.GetAttrText(e, t);
                return this.active ? "<color = 624E3c>" + ("hero_attr_" + e).ToUILocale() + "<color = ff6900>" + n + "</></>" : "<color = 999999>" + ("hero_attr_" + e).ToUILocale() + n + "</>"
            }, i([d(cc.RichText)], t.prototype, "Title", void 0), i([d(cc.Node)], t.prototype, "EnableNode", void 0), i([d(c.default)], t.prototype, "EnableAttr", void 0), i([d(cc.Node)], t.prototype, "DisableNode", void 0), i([d(c.default)], t.prototype, "DisableAttr", void 0), i([d(cc.Label)], t.prototype, "ActivedText", void 0), i([d(cc.Node)], t.prototype, "Actived", void 0), i([d(cc.Sprite)], t.prototype, "BGSprite", void 0), i([p], t)
        }(cc.Component);
        n.default = h, cc._RF.pop()
    }, {
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/AttrComponent4": "AttrComponent4"
    }],
    ResonanceAdditionHint: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6c0ceXxoV5BY4C8f0RMYx6S", "ResonanceAdditionHint");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/Components"),
            d = e("../Components/ItemComponent"),
            h = e("./HeroInfoTabGem"),
            f = e("./ResonanceAdditionDesc"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Title = null, t.NoGemWear = null, t.ItemContainer = null, t.DescLayout = null, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t = this;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), [4, Promise.all([this.LoadDynamicAsset("HeroInfoPanel/ResonanceAdditionDesc"), this.LoadDynamicAsset(u.BundlePath.ItemComponent)]).then(function(e) {
                                        t._listItem = e[0], t._itemPrefab = e[1]
                                    })];
                                case 1:
                                    return n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.Title.string = "gem_resonanceAddition".ToUILocale(), this.NoGemWear.string = "gem_notWear".ToUILocale(), this._items = [];
                    for (var t = 0; t < 6; t++) {
                        var n = cc.instantiate(this._itemPrefab);
                        n.setParent(this.ItemContainer), this._items[t] = n.getComponent(d.ItemComponent)
                    }
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t);
                    for (var n = 0; n < 3; n++) this._items[n].Init({
                        ItemId: 3,
                        Count: 10 << n
                    }), this._items[n].node.active = !0;
                    for (n = 3; n < this._items.length; n++) this._items[n].node.active = !1;
                    if (this.NoGemWear.node.active = 0 == h.default.S.Models.length, this.ItemContainer.active = !this.NoGemWear.node.active, this.ItemContainer.active) {
                        for (n = 0; n < h.default.S.Models.length; n++) this._items[n].node.active = !0, this._items[n].Init({
                            ItemId: h.default.S.Models[n].ItemId
                        });
                        for (n = h.default.S.Models.length; n < this._items.length; n++) this._items[n].node.active = !1
                    }
                    var o = h.default.S.Level;
                    for (this.DescLayout.paddingTop = 2 == o ? 0 : -26, n = 2; n < 8; n++) {
                        var r = cc.instantiate(this._listItem);
                        r.setParent(this.DescLayout.node);
                        var i = r.getComponent(f.default);
                        i.active = n == o;
                        var a = p.ConfigDataComponent.Instance.GetConfigById(l.GemQuality_Config, n),
                            s = [];
                        if (a) {
                            for (var c = 0; c < a.SuitAttrs.length; c++) {
                                var u = a.SuitAttrs[c].Items;
                                s.push({
                                    Attr: u[0],
                                    Value: u[1]
                                })
                            }
                            i.Init(n, s)
                        }
                    }
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Label)], t.prototype, "NoGemWear", void 0), i([m(cc.Node)], t.prototype, "ItemContainer", void 0), i([m(cc.Layout)], t.prototype, "DescLayout", void 0), i([g], t)
            }(c.BaseUIPanel);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent",
        "./HeroInfoTabGem": "HeroInfoTabGem",
        "./ResonanceAdditionDesc": "ResonanceAdditionDesc"
    }],
    ResonanceHeroSelectPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f014a6xyK5KKLv+i8tBkwUN", "ResonanceHeroSelectPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/HeroListComponent"),
            p = e("../Components/CustomLayout"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../Components/DataCenter"),
            f = e("../../../../Proto/Static/ConfigProto"),
            y = e("../../Components/ConfigData/ConfigDataComponent"),
            g = e("../Components/ItemComponent"),
            m = e("../../Auxiliary/EventKeys"),
            I = e("../Auxiliary/UIUtlity"),
            _ = e("../../Components/RpcComponent"),
            C = e("../../../EZFramework/EZFramework"),
            v = e("../../Auxiliary/GlobalDefine"),
            b = e("./StarResonancePanel"),
            S = e("../../Channel/ChannelManager"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Tittle = null, t.BtnSure = null, t.SureBtnLabel = null, t.HeroListComponent = null, t.HeroListGrid = null, t.ListEmptyState = null, t.Focus = null, t._sort_convertArray = [0, 3, 4, 5, 1, 2], t._resonanceUserData = null, t._selectHero = null, t._slotId = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(m.EventKeys.EVENT_SWITCH_HERO_ELEMENT, this.OnSwitchHeroElement)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent();
                    var t = S.default.Instance.IsHighSchoolChannel();
                    this.ListEmptyState.node.color = t ? cc.color(98, 78, 60) : cc.color(255, 255, 255)
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "starResonance_heroSelect_tittle".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale(), this.ListEmptyState.string = "starResonance_heroSelect_empty_list".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnSure.node.on("click", this.OnBtnSureClick, this)
                }, t.prototype.InitData = function(e) {
                    this._slotId = e[0] + 1, C.EZLog.Log(this._slotId)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadResonanceUserData(), this.InitHeroListComponent()
                }, t.prototype.LoadResonanceUserData = function() {
                    this._resonanceUserData = h.DataCenter.Instance.GetDataById(d.StarResonance_Model, 1)
                }, t.prototype.InitHeroListComponent = function() {
                    var e = this,
                        t = this.GetHeroData();
                    this.SortByStarLevel(t), t.length <= 0 ? this.ListEmptyState.node.active = !0 : (this.ListEmptyState.node.active = !1, t.sort(function(t, n) {
                        var o = y.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, t.HeroId),
                            r = y.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, n.HeroId);
                        return t.StarLevel != n.StarLevel ? n.StarLevel - t.StarLevel : o.CoreHero && !r.CoreHero ? -1 : !o.CoreHero && r.CoreHero ? 1 : o.MaxStarLevel != r.MaxStarLevel ? r.MaxStarLevel - o.MaxStarLevel : o.ElementType != r.ElementType ? e._sort_convertArray[o.ElementType] - e._sort_convertArray[r.ElementType] : t.HeroId - n.HeroId
                    })), this.HeroListComponent.Init(u.HeroListType.Normal, {
                        HeroesData: t,
                        IsSelectHideMask: !0
                    }), this.HeroListComponent.SetItemClickCallback(this.OnClickHero.bind(this)), this.HeroListComponent.SetSelectCallback(this.SetSelect.bind(this))
                }, t.prototype.GetHeroData = function() {
                    for (var e = h.DataCenter.Instance.GetDataList(d.UserHero_Model), t = [], n = 0; n < e.length; n++) e[n].TemplePosition > 0 || b.default.OwnersId.includes(e[n].Sid) || t.push(e[n]);
                    return t
                }, t.prototype.SortByStarLevel = function(e) {
                    var t = this;
                    e.sort(function(e, n) {
                        return e.StarLevel > n.StarLevel ? -1 : e.StarLevel < n.StarLevel ? 1 : void t.SortByMaxStarLevel(e, n)
                    })
                }, t.prototype.SortByMaxStarLevel = function(e, t) {
                    var n = y.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, e.HeroId),
                        o = y.ConfigDataComponent.Instance.GetConfigById(f.HeroBase_Config, t.HeroId);
                    return n.MaxStarLevel > o.MaxStarLevel ? -1 : n.MaxStarLevel < o.MaxStarLevel ? 1 : this.SortByHeroId(e, t)
                }, t.prototype.SortByHeroId = function(e, t) {
                    return e.HeroId > t.HeroId ? -1 : e.HeroId < t.HeroId ? 1 : 0
                }, t.prototype.OnSwitchHeroElement = function(e) {
                    this._currentElement != e && (this._currentElement = e, null != this._selectHero && this.HeroListComponent.UnselectHeroItemNode(this._selectHero.Sid), this._selectHero = null, this.HeroListComponent.SelectSIds = [], this.HeroListGrid.node.children.length <= 0 ? this.ListEmptyState.node.active = !0 : this.ListEmptyState.node.active = !1)
                }, t.prototype.OnClickHero = function(e, t) {
                    var n = h.DataCenter.Instance.GetDataById(d.UserHero_Model, e),
                        o = t.getComponent(g.ItemComponent);
                    null == this._selectHero ? (this._selectHero = n, this.HeroListComponent.SelectSIds.push(this._selectHero.Sid), this.SetSelect(o, !0)) : this._selectHero.Sid != e && (this.HeroListComponent.UnselectHeroItemNode(this._selectHero.Sid), this._selectHero = n, this.HeroListComponent.SelectSIds.push(this._selectHero.Sid), this.SetSelect(o, !0))
                }, t.prototype.SetSelect = function(e, t) {
                    e.SetSelectFlagState(t), t && (e.SelectFlag.spriteFrame = null, e.DisableMask(), e.DisableHeroMask(), this.Focus.active = !0, this.Focus.setParent(e.SelectFlag.node), this.Focus.setPosition(cc.Vec3.ZERO))
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t)
                }, t.prototype.OnBtnSureClick = function() {
                    null == this._selectHero ? I.UIUtlity.ShowFloatingHint("starResonance_heroSelect_notSelect".ToUILocale()) : this.RequestSlotPutIn()
                }, t.prototype.RequestSlotPutIn = function() {
                    var e = new d.Req_Star_PutIn;
                    e.Sid = this._slotId, e.OwnerId = this._selectHero.Sid, _.RpcComponent.Instance.Call(e, this.ResponseSlotPutInSuccess.bind(this), this.ResponseSlotPutInFailed.bind(this)), I.UIUtlity.ShowMaskPanel()
                }, t.prototype.ResponseSlotPutInSuccess = function() {
                    I.UIUtlity.CloseMaskPanel(), I.UIUtlity.ShowFloatingHint("starResonance_heroSelect_putSuccess".ToUILocale());
                    var e = C.UIManager.Instance.GetUIPanel(v.PanelConfig.StarTemplePanel.Path),
                        t = this._selectHero.Sid;
                    e.PlayStarResonanceUnlockAnimation(this._slotId - 1, function() {
                        C.UIManager.Instance.ShowUIPanel(v.PanelConfig.ResonanceLevelUpPanel.Path, t)
                    }), C.UIManager.Instance.BackUIPanel()
                }, t.prototype.ResponseSlotPutInFailed = function() {
                    I.UIUtlity.CloseMaskPanel()
                }, i([A(cc.Label)], t.prototype, "Tittle", void 0), i([A(cc.Button)], t.prototype, "BtnSure", void 0), i([A(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([A(u.default)], t.prototype, "HeroListComponent", void 0), i([A(p.default)], t.prototype, "HeroListGrid", void 0), i([A(cc.Label)], t.prototype, "ListEmptyState", void 0), i([A(cc.Node)], t.prototype, "Focus", void 0), i([P], t)
            }(l.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/HeroListComponent": "HeroListComponent",
        "../Components/ItemComponent": "ItemComponent",
        "./StarResonancePanel": "StarResonancePanel"
    }],
    ResonanceIdolLevelPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b0d5c8UkCdNd4t2K7TJuWWb", "ResonanceIdolLevelPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/CustomRichText"),
            p = e("../../../../Proto/Static/ConfigProto"),
            d = e("../Components/HeroListComponent"),
            h = e("../../Components/ConfigData/ConfigDataComponent"),
            f = e("../../Components/ConfigData/ConfigCacheComponent"),
            y = e("../Components/CustomLayout"),
            g = e("../../../../Proto/Static/RpcProto"),
            m = e("../../Components/DataCenter"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip, !1), t.Tittle = null, t.HeroListComponent = null, t.HeroListGrid = null, t.UpperLimitLabel = null, t.HeroCountLabel = null, t.FunctionTag = null, t.ListEmptyState = null, t._resonanceUserData = null, t._currHeroCount = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "starResonance_idol_tittle".ToUILocale(), this.ListEmptyState.string = "starResonance_idol_empty_list".ToUILocale()
                }, t.prototype.InitData = function() {}, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadGlobalSetting(), this.LoadUserData(), this.InitHeroListComponent()
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetFunctionTag(), this.SetUpperLimitShow(), this.SetHeroCountShow(), this.SetListEmptyState()
                }, t.prototype.InitHeroListComponent = function() {
                    var e = this.GetHeroData();
                    this.SortByStarLevel(e), this.HeroListComponent.Init(d.HeroListType.Normal, {
                        HeroesData: e
                    })
                }, t.prototype.SortByStarLevel = function(e) {
                    var t = this;
                    e.sort(function(e, n) {
                        return e.StarLevel < n.StarLevel ? -1 : e.StarLevel > n.StarLevel ? 1 : void t.SortByElement(e, n)
                    })
                }, t.prototype.SortByElement = function(e, t) {
                    var n = h.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, e.HeroId),
                        o = h.ConfigDataComponent.Instance.GetConfigById(p.HeroBase_Config, t.HeroId);
                    return n.ElementType < o.ElementType ? -1 : n.ElementType > o.ElementType ? 1 : 0
                }, t.prototype.GetHeroData = function() {
                    for (var e = m.DataCenter.Instance.GetDataList(g.UserHero_Model), t = [], n = new Set, o = 0; o < e.length; o++) e[o].StarLevel < this._starResonanceSecondHeroStar || n.has(e[o].HeroId) || (t.push(e[o]), n.add(e[o].HeroId));
                    return this._currHeroCount = t.length, t
                }, t.prototype.LoadGlobalSetting = function() {
                    this._starResonanceSecondHeroStar = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarResonanceSecondHeroStar"), this._starResonanceSecondRaiseLimitCount = h.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarResonanceSecondRaiseLimitCount"), this._starResonanceLevelUpperLimit = f.ConfigCacheComponent.Instance.GetStarResonanceUpperLimit()
                }, t.prototype.LoadUserData = function() {
                    this._resonanceUserData = m.DataCenter.Instance.GetDataById(g.StarResonance_Model, 1)
                }, t.prototype.SetFunctionTag = function() {
                    var e = "starResonance_idol_panel_tag".ToUILocale().Fmt(this._starResonanceSecondHeroStar, this._starResonanceSecondRaiseLimitCount, this._starResonanceLevelUpperLimit);
                    this.FunctionTag.Init(e)
                }, t.prototype.SetUpperLimitShow = function() {
                    var e = Math.min(this._resonanceUserData.MaxLevel, this._starResonanceLevelUpperLimit);
                    this.UpperLimitLabel.Init("starResonance_idol_level_limit".ToUILocale().Fmt(e))
                }, t.prototype.SetHeroCountShow = function() {
                    this.HeroCountLabel.string = this._currHeroCount.toString()
                }, t.prototype.SetListEmptyState = function() {
                    this._currHeroCount > 0 ? this.ListEmptyState.node.active = !1 : this.ListEmptyState.node.active = !0
                }, i([C(cc.Label)], t.prototype, "Tittle", void 0), i([C(d.default)], t.prototype, "HeroListComponent", void 0), i([C(y.default)], t.prototype, "HeroListGrid", void 0), i([C(u.CustomRichText)], t.prototype, "UpperLimitLabel", void 0), i([C(cc.Label)], t.prototype, "HeroCountLabel", void 0), i([C(u.CustomRichText)], t.prototype, "FunctionTag", void 0), i([C(cc.Label)], t.prototype, "ListEmptyState", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Components/ConfigData/ConfigCacheComponent": "ConfigCacheComponent",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/HeroListComponent": "HeroListComponent"
    }],
    ResonanceLevelUpPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "e518cJa3vZF7rfdsnx4Sw/m", "ResonanceLevelUpPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../Components/ItemClickComponent"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../../Components/DataCenter"),
            g = e("../../../../Proto/Static/ConfigProto"),
            m = e("../../Components/ConfigData/ConfigDataComponent"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property;
        (function(e) {
            e[e.One = 1] = "One", e[e.Tow = 2] = "Tow"
        })(l || (l = {}));
        var v = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Tip, !1), t.ItemRoot = null, t.OldLevelLabel = null, t.NewLevelLabel = null, t.Tag = null, t._commonItemPrefab = null, t._item = null, t._heroData = null, t._resonanceUserData = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), null != this._commonItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(p.BundlePath.ItemComponent)]);
                            case 1:
                                t._commonItemPrefab = n.sent(), n.label = 2;
                            case 2:
                                return [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.SetStaticLocalText()
            }, t.prototype.SetStaticLocalText = function() {}, t.prototype.InitData = function(e) {
                this._heroSid = e[0], this.LoadHeroData()
            }, t.prototype.LoadHeroData = function() {
                this._heroData = y.DataCenter.Instance.GetDataById(f.UserHero_Model, this._heroSid), this._resonanceUserData = y.DataCenter.Instance.GetDataById(f.StarResonance_Model, 1)
            }, t.prototype.ResetPanelState = function() {
                e.prototype.ResetPanelState.call(this)
            }, t.prototype.DisPlay = function(t) {
                void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.LoadItemComponent(), this.SetLevelLabel(), this.SetTag()
            }, t.prototype.LoadItemComponent = function() {
                null != this._commonItemPrefab && (null == this._item && (this._item = cc.instantiate(this._commonItemPrefab).getComponent(d.ItemComponent), this._item.node.removeComponent(h.default), this._item.node.parent = this.ItemRoot), this._item.Init(this._heroData, d.ItemComponentType.HeroInfo))
            }, t.prototype.SetLevelLabel = function() {
                this.OldLevelLabel.string = "Lv." + this._heroData.Level.toString(), this.NewLevelLabel.string = "Lv." + this._heroData.TempleLevel.toString()
            }, t.prototype.SetTag = function() {
                this._resonanceUserData.Stage == l.One ? this.CheckHeroMaxLevel(this._heroData) ? this.Tag.string = "starResonance_hero_reach_max".ToUILocale() : this.Tag.string = "starResonance_hero_levelUp_tag".ToUILocale() : this.CheckHeroMaxLevel(this._heroData) ? this.Tag.string = "starResonance_hero_reach_max".ToUILocale() : this.Tag.string = "starResonance_hero_levelUp_tag2".ToUILocale()
            }, t.prototype.CheckHeroMaxLevel = function(e) {
                var t = m.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarResonanceSecondLevelUpStar"),
                    n = m.ConfigDataComponent.Instance.GetConfigById(g.HeroBase_Config, e.HeroId),
                    o = n.MaxStarLevel,
                    r = m.ConfigDataComponent.Instance.GetConfigById(g.HeroStar_Config, o);
                return n.MaxStarLevel < t && e.TempleLevel >= r.MaxLevel
            }, i([C(cc.Node)], t.prototype, "ItemRoot", void 0), i([C(cc.Label)], t.prototype, "OldLevelLabel", void 0), i([C(cc.Label)], t.prototype, "NewLevelLabel", void 0), i([C(cc.Label)], t.prototype, "Tag", void 0), i([_], t)
        }(c.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ResonanceRecoverHeroPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "9237cXCI4FGALhAx5/H7zH0", "ResonanceRecoverHeroPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/UIFrame/BaseUIPanel"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../Components/ItemComponent"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/DataCenter"),
            f = e("../Components/ItemClickComponent"),
            y = e("../Components/CustomRichText"),
            g = e("../../../EZFramework/EZFramework"),
            m = e("../../../../Proto/Static/ConfigProto"),
            I = e("../../Components/RpcComponent"),
            _ = e("../Auxiliary/UIUtlity"),
            C = e("../../Components/ConfigData/ConfigDataComponent"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property,
            w = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Tip), t.Tittle = null, t.CurrItemRoot = null, t.PastItemRoot = null, t.CurrLevelLabel = null, t.PastLevelLabel = null, t.BtnCancel = null, t.CancelBtnLabel = null, t.BtnSure = null, t.SureBtnLabel = null, t.AutoTakeOffEquipToggle = null, t.FunctionTag = null, t.RecoverTag = null, t.CheckText = null, t._commonItemPrefab = null, t._currItem = null, t._pastItem = null, t._heroData = null, t._isAutoTakeOff = !1, t._starResonanceCoolDown = 0, t
                }
                return r(t, e), t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), null != this._commonItemPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent)]);
                                case 1:
                                    t._commonItemPrefab = n.sent(), n.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLocalText(), this.SetClickEvent()
                }, t.prototype.SetStaticLocalText = function() {
                    this.Tittle.string = "starResonance_putoff_tittle".ToUILocale(), this.RecoverTag.string = "starResonance_putoff_recover".ToUILocale(), this.CheckText.string = "starResonance_putoff_check_text".ToUILocale(), this.CancelBtnLabel.string = "cancel".ToUILocale(), this.SureBtnLabel.string = "ok".ToUILocale()
                }, t.prototype.SetClickEvent = function() {
                    this.BtnCancel.node.on("click", this.OnBtnCancelClick, this), this.BtnSure.node.on("click", this.OnBtnSureClick, this), this.AutoTakeOffEquipToggle.node.on("toggle", this.OnToggleChange, this)
                }, t.prototype.InitData = function(e) {
                    this._heroSid = e[0], this._slotId = e[1] + 1, this.LoadHeroData()
                }, t.prototype.LoadHeroData = function() {
                    this._heroData = h.DataCenter.Instance.GetDataById(p.UserHero_Model, this._heroSid)
                }, t.prototype.ResetPanelState = function() {
                    e.prototype.ResetPanelState.call(this), this.LoadGlobalSetting()
                }, t.prototype.LoadGlobalSetting = function() {
                    this._starResonanceCoolDown = C.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarResonanceCooldown")
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this.SetFunctionTag(), this.LoadItemComponent(), this.SetLevelLabel(), this.ResetToggle()
                }, t.prototype.SetFunctionTag = function() {
                    this.FunctionTag.Init("starResonance_putoff_tag".ToUILocale().Fmt(this._starResonanceCoolDown))
                }, t.prototype.LoadItemComponent = function() {
                    if (null != this._commonItemPrefab) {
                        null == this._currItem && (this._currItem = cc.instantiate(this._commonItemPrefab).getComponent(u.ItemComponent), this._currItem.node.removeComponent(f.default), this._currItem.node.parent = this.CurrItemRoot, this._currItem.node.scale = 154 / 218), null == this._pastItem && (this._pastItem = cc.instantiate(this._commonItemPrefab).getComponent(u.ItemComponent), this._pastItem.node.removeComponent(f.default), this._pastItem.node.parent = this.PastItemRoot, this._pastItem.node.scale = 154 / 218), this._currItem.Init(this._heroData, u.ItemComponentType.HeroInfo);
                        var e = C.ConfigDataComponent.Instance.GetConfigById(m.HeroBase_Config, this._heroData.HeroId);
                        this._pastItem.Init({
                            ItemId: this._heroData.HeroId,
                            StarLevel: this._heroData.StarLevel,
                            ElementType: e.ElementType,
                            Level: this._heroData.Level
                        }, u.ItemComponentType.HeroInfo)
                    }
                }, t.prototype.SetLevelLabel = function() {
                    this.CurrLevelLabel.string = "Lv." + this._heroData.TempleLevel.toString(), this.PastLevelLabel.string = "Lv." + this._heroData.Level.toString()
                }, t.prototype.ResetToggle = function() {
                    this.AutoTakeOffEquipToggle.isChecked = !0, this._isAutoTakeOff = !0
                }, t.prototype.OnToggleChange = function() {
                    this._isAutoTakeOff = !this._isAutoTakeOff
                }, t.prototype.OnBtnCancelClick = function() {
                    g.UIManager.Instance.BackUIPanel()
                }, t.prototype.OnBtnSureClick = function() {
                    this.RequestLeaveSlot()
                }, t.prototype.RequestLeaveSlot = function() {
                    var e = new p.Req_Star_Leave;
                    e.Sid = this._slotId, e.IsPutOff = this._isAutoTakeOff, I.RpcComponent.Instance.Call(e, this.ResponseLeaveSlotSuccess.bind(this), this.ResponseLeaveSlotFailed.bind(this)), _.UIUtlity.ShowMaskPanel()
                }, t.prototype.ResponseLeaveSlotSuccess = function(e) {
                    _.UIUtlity.ShowFloatingHint("starResonance_putoff_success".ToUILocale()), _.UIUtlity.CloseMaskPanel(), g.UIManager.Instance.BackUIPanel(), e.Rewards.length > 0 && _.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.ResponseLeaveSlotFailed = function() {
                    _.UIUtlity.CloseMaskPanel()
                }, i([S(cc.Label)], t.prototype, "Tittle", void 0), i([S(cc.Node)], t.prototype, "CurrItemRoot", void 0), i([S(cc.Node)], t.prototype, "PastItemRoot", void 0), i([S(cc.Label)], t.prototype, "CurrLevelLabel", void 0), i([S(cc.Label)], t.prototype, "PastLevelLabel", void 0), i([S(cc.Button)], t.prototype, "BtnCancel", void 0), i([S(cc.Label)], t.prototype, "CancelBtnLabel", void 0), i([S(cc.Button)], t.prototype, "BtnSure", void 0), i([S(cc.Label)], t.prototype, "SureBtnLabel", void 0), i([S(cc.Toggle)], t.prototype, "AutoTakeOffEquipToggle", void 0), i([S(y.CustomRichText)], t.prototype, "FunctionTag", void 0), i([S(cc.Label)], t.prototype, "RecoverTag", void 0), i([S(cc.Label)], t.prototype, "CheckText", void 0), i([b], t)
            }(l.BaseUIPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../EZFramework/UIFrame/BaseUIPanel": "BaseUIPanel",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomRichText": "CustomRichText",
        "../Components/ItemClickComponent": "ItemClickComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ReturnWelfarePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a9f10m3I7tGFIiNehV0Y1hY", "ReturnWelfarePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../../../Proto/Static/RpcProto"),
            u = e("../../Components/Components"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../Auxiliary/UIUtlity"),
            f = e("../Components/ItemComponent"),
            y = e("../../../Consts/Etc"),
            g = e("../../Auxiliary/DataUtlity"),
            m = e("../../Components/Components"),
            I = cc._decorator,
            _ = I.ccclass,
            C = I.property,
            v = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed), t.DescRichText = null, t.LimitRichText = null, t.ScrollerNode = null, t.MoreRewardNode = null, t.RewardNode = null, t.RemainTime = null, t.Time = null, t.ReceiveButton = null, t.ReceiveLabel = null, t.ReceivedNode = null, t._itemPrefab = null, t._configData = null, t._model = null, t._returnDays = 0, t._itemNodes = [], t._deadLine = 0, t._isReDisplay = !1, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    l.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.onDisable = function() {
                    l.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, void 0, function() {
                        var e;
                        return s(this, function(t) {
                            switch (t.label) {
                                case 0:
                                    return e = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent, cc.Prefab)];
                                case 1:
                                    return e._itemPrefab = t.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.RemainTime.string = "gift_remainderTime".ToUILocale(), this.ReceiveLabel.string = "receive".ToUILocale(), this.ReceiveButton.node.on("click", this.OnClickReceiveButton, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._configData = u.DataCenter.Instance.ActivityConfigs[n], this._deadLine = g.default.Instance.ComputeDeadTime(this._configData.Common)
                }, t.prototype.DisPlay = function(t) {
                    void 0 === t && (t = !1), e.prototype.DisPlay.call(this, t), this._isReDisplay = t, this._model = u.DataCenter.Instance.GetDataById(c.UserActivity_Model, this._configData._id), this.SetUIContent()
                }, t.prototype.SetUIContent = function() {
                    this.SetData(), this.SetDesc(), this.SetButtonState(), this.SetRemainTIme(), this.SetReward()
                }, t.prototype.SetData = function() {
                    var e = this._model.IntArray[1] - this._model.IntArray[0];
                    this._returnDays = Math.round(e / y.Etc.DayDuration)
                }, t.prototype.SetDesc = function() {
                    this.DescRichText.string = "returnWelfare_desc".ToUILocale().Fmt(this._configData.CustomPart.Days), this._returnDays >= this._configData.CustomPart.Days ? this.LimitRichText.string = "returnWelfare_limit".ToUILocale().Fmt(this._returnDays) : this.LimitRichText.string = "returnWelfare_not_match".ToUILocale()
                }, t.prototype.SetReward = function() {
                    var e = this,
                        t = this._returnDays >= this._configData.CustomPart.Days ? this._model.Int2DArray : this._configData.CustomPart.Rewards;
                    this.ScrollerNode.active = t.length > 5, this.RewardNode.active = t.length <= 5;
                    var n = t.length > 5 ? this.MoreRewardNode : this.RewardNode;
                    t.forEach(function(t, o) {
                        if (!e._itemNodes[o]) {
                            var r = cc.instantiate(e._itemPrefab);
                            r.parent = n, e._itemNodes[o] = r
                        }
                        e._itemNodes[o].getComponent(f.ItemComponent).Init({
                            ItemId: t.Items[0],
                            Count: t.Items[1]
                        }, f.ItemComponentType.ItemCommon), e._itemNodes[o].getComponent(f.ItemComponent).SetSelectFlagState(e._model.IntValue > 0)
                    })
                }, t.prototype.SetButtonState = function() {
                    this.ReceiveButton.node.active = !this._model.IntValue, this.ReceivedNode.active = this._model.IntValue > 0
                }, t.prototype.SetRemainTIme = function() {
                    this._isReDisplay || (this.CountDown(), this.schedule(this.CountDown, 1))
                }, t.prototype.CountDown = function() {
                    var e = this._deadLine - u.RpcComponent.Instance.ServerTime;
                    e < 0 && l.UIManager.Instance.BackUIPanel(), this.Time.string = g.default.ActivityTimeLeftFormat(e)
                }, t.prototype.OnClickReceiveButton = function() {
                    var e = new c.Req_Activity_PlayerReturnReward;
                    e.ActivityId = this._configData._id, m.RpcComponent.Instance.Call(e, function(e) {
                        h.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                    })
                }, t.prototype.OnItemClick = function(e, t) {
                    (this._returnDays >= this._configData.CustomPart.Days ? this._model.Int2DArray : this._configData.CustomPart.Rewards).length > 5 ? -1 != this.MoreRewardNode.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t) : -1 != this.RewardNode.children.indexOf(t) && h.UIUtlity.ShowItemTip(t.getComponent(f.ItemComponent).ItemId, t)
                }, t.prototype.onDestroy = function() {
                    this.unschedule(this.CountDown)
                }, i([C(cc.RichText)], t.prototype, "DescRichText", void 0), i([C(cc.RichText)], t.prototype, "LimitRichText", void 0), i([C(cc.Node)], t.prototype, "ScrollerNode", void 0), i([C(cc.Node)], t.prototype, "MoreRewardNode", void 0), i([C(cc.Node)], t.prototype, "RewardNode", void 0), i([C(cc.Label)], t.prototype, "RemainTime", void 0), i([C(cc.Label)], t.prototype, "Time", void 0), i([C(cc.Button)], t.prototype, "ReceiveButton", void 0), i([C(cc.Label)], t.prototype, "ReceiveLabel", void 0), i([C(cc.Node)], t.prototype, "ReceivedNode", void 0), i([_], t)
            }(l.BaseUIPanel);
        n.default = v, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Etc": "Etc",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent"
    }],
    ReviveHeroComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "92b88J4J4NLS6QNKMa376ax", "ReviveHeroComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/DataCenter"),
            s = e("./ItemComponent"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.MemberName = null, t.ItemNode = null, t
                }
                return r(t, e), t.prototype.Init = function(e, t, n, o) {
                    if (this.MemberName.string = 0 == e ? "StrongholdWar_Team_Captain".ToUILocale() : "StrongholdWar_Team_Member".ToUILocale(), !this._itemComponent) {
                        var r = cc.instantiate(o);
                        r.parent = this.ItemNode, this._itemComponent = r.getComponent(s.ItemComponent)
                    }
                    if (n) {
                        var i = a.DataCenter.Instance.GetDataById(l.UserAngel_Model, t);
                        i && i.AngelId ? (this._itemComponent.Init({
                            ItemId: i.AngelId,
                            StarLevel: i.StarLevel
                        }, s.ItemComponentType.Angel), this._itemComponent.OnIconGray()) : this._itemComponent.SetHeroSimpleState()
                    } else {
                        var c = a.DataCenter.Instance.GetDataById(l.UserHero_Model, t);
                        c && c.HeroId ? (this._itemComponent.Init({
                            ItemId: c.HeroId,
                            StarLevel: c.StarLevel
                        }, s.ItemComponentType.HeroInfo), this._itemComponent.OnIconGray()) : this._itemComponent.SetHeroSimpleState()
                    }
                }, i([p(cc.Label)], t.prototype, "MemberName", void 0), i([p(cc.Node)], t.prototype, "ItemNode", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../Components/DataCenter": "DataCenter",
        "./ItemComponent": "ItemComponent"
    }],
    RewardByAccumulateRechargePageToogles: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "dffa9VhoxFG8q+vfnd3iWRd", "RewardByAccumulateRechargePageToogles");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.TitleOutline = null, t.Icon = null, t.SoldoutTag = null, t.IconAtlas = null, t.SELECTED_COLOR = (new cc.Color).fromHEX("#B7711F"), t.UN_SELECTED_COLOR = (new cc.Color).fromHEX("#202434"), t
                }
                return r(t, e), t.prototype.Init = function(e, t, n) {
                    this.Title.string = n.toString(), this.SoldoutTag.active = t, e ? (this.Icon.spriteFrame = this.IconAtlas.getSpriteFrame("toggle_2"), this.TitleOutline.color = this.SELECTED_COLOR) : (this.Icon.spriteFrame = t ? this.IconAtlas.getSpriteFrame("toggle_1") : this.IconAtlas.getSpriteFrame("toggle_0"), this.TitleOutline.color = this.UN_SELECTED_COLOR)
                }, i([l(cc.Label)], t.prototype, "Title", void 0), i([l(cc.LabelOutline)], t.prototype, "TitleOutline", void 0), i([l(cc.Sprite)], t.prototype, "Icon", void 0), i([l(cc.Node)], t.prototype, "SoldoutTag", void 0), i([l(cc.SpriteAtlas)], t.prototype, "IconAtlas", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    RewardByAccumulateRechargePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "896a6wfrEFFPLUkTlIIDCO9", "RewardByAccumulateRechargePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/DataUtlity"),
            p = e("../../Auxiliary/EventKeys"),
            d = e("../../Auxiliary/GlobalDefine"),
            h = e("../../Components/DataCenter"),
            f = e("../../../../Proto/Static/RpcProto"),
            y = e("../Auxiliary/UIUtlity"),
            g = e("../Components/ItemComponent"),
            m = e("../../Components/RpcComponent"),
            I = e("../../Channel/ChannelManager"),
            _ = e("../../Auxiliary/GameRecord"),
            C = e("../../RedDot/RedDotManager"),
            v = e("./CommonTaskTipComponent"),
            b = e("../Components/RewardByAccumulateRechargePageToogles"),
            S = e("../../../EZFramework/EZFramework"),
            w = cc._decorator,
            P = w.ccclass,
            A = w.property,
            T = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new c.UIPanelType(c.UINodeType.Fixed, !0), t.ActivityDescriptionRichText = null, t.FinalRewardScrollView = null, t.FinalRewardsContainer = null, t.TimeLeftRichText = null, t.GetFinalRewardButton = null, t.GetFinalRewardButtonLabel = null, t.GetFinalRewardButtonGray = null, t.GetFinalRewardButtonGrayLabel = null, t.FinalRewardGotBtn = null, t.FinalRewardGotLabel = null, t.RewardProgressLabel = null, t.DailyPackTitleLabel = null, t.DailyPackItemsContainer = null, t.BuyGiftPackButton = null, t.BuyGiftPackButtonLabel = null, t.DiscountValueLabel = null, t.DiscountDescriptionLabel = null, t.BoughtTag = null, t.BoughtLabel = null, t.VipPointNode = null, t.VipPointTag = null, t.VipPointLabel = null, t.CommonTaskTipComponent = null, t.GiftPackPreviewButton = null, t.GiftPackPreviewButtonLabel = null, t.ToggleContainer = null, t._itemPrefab = null, t._activityConfig = null, t._acitivityPackInfoMap = {}, t._model = null, t._deadLine = 0, t._boughtCount = 0, t._needCount = 0, t._currentSelectIndex = -1, t._itemComponents = [], t._togglePrefab = null, t._toggleComponents = [], t._currentPackIndex = -1, t._currPackConfig = null, t._currPackBoughtCount = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    c.Game.EventDispatcher.On(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem, this)
                }, t.prototype.onDisable = function() {
                    c.Game.EventDispatcher.Off(p.EventKeys.EVENT_ITEM_CLICK, this.OnClickItem)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        var t;
                        return s(this, function(n) {
                            switch (n.label) {
                                case 0:
                                    return e.prototype.Preload.call(this), t = this, [4, this.LoadDynamicAsset("TimeLimitedActivityPanel/ModuleRewardByAccumulateRecharge/Private/RewardByAccumulateRechargePageToogles", cc.Prefab)];
                                case 1:
                                    return t._togglePrefab = n.sent(), [2]
                            }
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.SetStaticLabels(), this.GetFinalRewardButton.node.on("click", this.OnGetRewardButtonClicked, this), this.GetFinalRewardButtonGray.node.on("click", this.OnGetRewardButtonClicked, this), this.BuyGiftPackButton.node.on("click", this.OnBuyGiftPackButtonClicked, this), this.GiftPackPreviewButton.node.on("click", this.OnGiftPackPreviewButtonClicked, this), this.CommonTaskTipComponent.InitData()
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this);
                    var n = t[0];
                    this._activityConfig = h.DataCenter.Instance.ActivityConfigs[n], this._deadLine = u.default.Instance.ComputeDeadTime(this._activityConfig.Common);
                    for (var o = 0; o < this._activityConfig._Packs.length; o++) this._acitivityPackInfoMap[this._activityConfig._Packs[o].Id] = this._activityConfig._Packs[o]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || this.InitToggles(), this._model = h.DataCenter.Instance.GetDataById(l.UserActivity_Model, this._activityConfig._id), this._currPackId = this.GetCurrPackId(), this.RefreshPage(), this.SetAccumulateView(), _.default.SetItem(_.GameRecordDefine.AccumulateRecharge, m.RpcComponent.Instance.ServerTime), C.RedDotManager.Instance.InstanceRedDot.AccumulateRechargeNode.NeedRefresh = !0, c.Game.EventDispatcher.Emit(p.EventKeys.EVENT_REFRESH_VERTICAL_ACTIVITY_FIRST_REDDOT, this._activityConfig._id), u.default.Instance.IsCumulativeBuyGiftEnterenceClose(this._activityConfig._id) && S.Game.EventDispatcher.Emit(p.EventKeys.EVENT_SET_VERTICAL_ACTIVITYBUTTON, this._activityConfig._id, -1)
                }, t.prototype.RefreshPage = function() {
                    this._needCount = this._activityConfig.CustomPart.Count, this._boughtCount = this.GetBoughtDays();
                    var e = this._acitivityPackInfoMap[this._currPackId],
                        t = 0;
                    this._model.Packs[this._currPackId] && (t = this._model.Packs[this._currPackId].Items[0]), this._currPackConfig = e, this._currPackBoughtCount = t, this.RefreshToggles(), this.SetDailyPackageView()
                }, t.prototype.InitToggles = function() {
                    for (var e = 0; e < this._activityConfig.CustomPart.PackIds.length; e++) {
                        var t = cc.instantiate(this._togglePrefab);
                        t.parent = this.ToggleContainer, t.name = e.toString();
                        var n = t.getComponent(b.default);
                        n.node.on("click", this.OnToggleClicked, this), this._toggleComponents.push(n)
                    }
                }, t.prototype.RefreshToggles = function() {
                    for (var e = 0; e < this._toggleComponents.length; e++) {
                        var t = this._toggleComponents[e],
                            n = e == this._currentPackIndex,
                            o = this._acitivityPackInfoMap[this._activityConfig.CustomPart.PackIds[e].Items[0]],
                            r = 0;
                        this._model.Packs[this._activityConfig.CustomPart.PackIds[e].Items[0]] && (r = this._model.Packs[this._activityConfig.CustomPart.PackIds[e].Items[0]].Items[0]);
                        var i = r >= o.LimitCount;
                        t.Init(n, i, e + 1)
                    }
                }, t.prototype.GetCurrPackId = function() {
                    for (var e = 0; e < this._activityConfig.CustomPart.PackIds.length; e++) {
                        var t = this._acitivityPackInfoMap[this._activityConfig.CustomPart.PackIds[e].Items[0]],
                            n = t.LimitCount,
                            o = 0;
                        if (this._model.Packs[t.Id] && (o = this._model.Packs[t.Id].Items[0]), o < n || e == this._activityConfig.CustomPart.PackIds.length - 1) return this._currentPackIndex = e, t.Id
                    }
                }, t.prototype.SetStaticLabels = function() {
                    this.GetFinalRewardButtonLabel.string = "receive".ToUILocale(), this.GetFinalRewardButtonGrayLabel.string = "receive".ToUILocale(), this.BoughtLabel.string = "BoughtToggleTagLabel".ToUILocale(), this.FinalRewardGotLabel.string = "already_receive".ToUILocale()
                }, t.prototype.SetAccumulateView = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    this.ActivityDescriptionRichText.string = "AccumulateRecharge_activityDescription".ToUILocale().Fmt(this._activityConfig.CustomPart.Count), this.TimeLeftRichText.string = "AccumulateRecharge_remainderTime".ToUILocale().Fmt(u.default.ActivityTimeLeftFormat(this._deadLine - m.RpcComponent.Instance.ServerTime)), this.RewardProgressLabel.string = "AccumulateRecharge_progress".ToUILocale().Fmt(Math.min(this._boughtCount, this._needCount), this._needCount), this.FinalRewardsContainer.destroyAllChildren(), this._itemComponents = [], e = 0, o.label = 1;
                                case 1:
                                    return e < this._activityConfig.CustomPart.Gifts.length ? (t = this._activityConfig.CustomPart.Gifts[e], [4, this.CreateItemInstance({
                                        ItemId: t.Items[0],
                                        Count: t.Items[1]
                                    })]) : [3, 4];
                                case 2:
                                    (n = o.sent()).name = e.toString(), this.FinalRewardsContainer.addChild(n), this._itemComponents.push(n.getComponent(g.ItemComponent)), o.label = 3;
                                case 3:
                                    return e++, [3, 1];
                                case 4:
                                    return this.SetGetRewardButtonAndRewardState(), [2]
                            }
                        })
                    })
                }, t.prototype.SetGetRewardButtonAndRewardState = function() {
                    if (this._model.IntValue >= 0) this.GetFinalRewardButton.node.active = !1, this.GetFinalRewardButtonGray.node.active = !1, this.FinalRewardGotBtn.active = !0, this._itemComponents[this._model.IntValue].SetSelectFlagState(!0);
                    else if (this._boughtCount >= this._needCount) {
                        this.GetFinalRewardButton.node.active = !0, this.GetFinalRewardButtonGray.node.active = !1, this.FinalRewardGotBtn.active = !1;
                        var e = C.RedDotManager.Instance.InstanceRedDot.AccumulateRechargeNode;
                        C.RedDotManager.Instance.BindInstance(this.GetFinalRewardButton.node, e, {
                            Value1: this._activityConfig._id
                        }), this._currentSelectIndex > -1 && this._itemComponents[this._currentSelectIndex].SetSelectFlagState(!0)
                    } else this.GetFinalRewardButton.node.active = !1, this.GetFinalRewardButtonGray.node.active = !0, this.FinalRewardGotBtn.active = !1
                }, t.prototype.SetDailyPackageView = function() {
                    var e = this;
                    this.DailyPackItemsContainer.destroyAllChildren(), this._currPackConfig.Items.forEach(function(t) {
                        return a(e, void 0, void 0, function() {
                            var e;
                            return s(this, function(n) {
                                switch (n.label) {
                                    case 0:
                                        return [4, this.CreateItemInstance({
                                            ItemId: t.Items[0],
                                            Count: t.Items[1]
                                        })];
                                    case 1:
                                        return (e = n.sent()).name = t.Items[0].toString(), this.DailyPackItemsContainer.addChild(e), [2]
                                }
                            })
                        })
                    }), this.DailyPackTitleLabel.string = this._currPackConfig.Name, this._currPackBoughtCount >= this._currPackConfig.LimitCount ? (this.BuyGiftPackButton.node.active = !1, this.VipPointNode.active = !1, this.BoughtTag.node.active = !0) : (this.BuyGiftPackButton.node.active = !0, this.VipPointNode.active = !0, this.BoughtTag.node.active = !1, u.default.Instance.SetDisCount(this._currPackConfig.Discount, this.DiscountValueLabel, this.DiscountDescriptionLabel), this.BuyGiftPackButtonLabel.string = I.default.Instance.CurrencySymbol + I.default.Instance.ExchangeMoney(this._currPackConfig.Money), this.VipPointTag.string = "AccumulateRecharge_VIPPointTag".ToUILocale(), this.VipPointLabel.string = "x" + this._currPackConfig.VipPoint.toString())
                }, t.prototype.CreateItemInstance = function(e) {
                    return a(this, void 0, void 0, function() {
                        var t, n;
                        return s(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return t = this, [4, this.LoadDynamicAsset(d.BundlePath.ItemComponent)];
                                case 1:
                                    return t._itemPrefab = o.sent(), this.isValid ? ((n = cc.instantiate(this._itemPrefab)).getComponent(g.ItemComponent).Init(e, g.ItemComponentType.ItemCommon), [2, n]) : (c.AssetsManager.Instance.UnloadAsset(this._itemPrefab), [2])
                            }
                        })
                    })
                }, t.prototype.GetBoughtDays = function() {
                    for (var e = this._activityConfig.CustomPart.PackIds, t = 0, n = 0; n < e.length; n++)
                        for (var o = 0; o < e[n].Items.length; o++) {
                            var r = e[n].Items[o];
                            if (this._model.Packs[r.toString()] && this._model.Packs[r.toString()].Items[0] > 0) {
                                t++;
                                break
                            }
                        }
                    return t
                }, t.prototype.OnGetRewardButtonClicked = function() {
                    if (this._boughtCount >= this._needCount)
                        if (this._currentSelectIndex >= 0) {
                            var e = this._activityConfig.CustomPart.Gifts[this._currentSelectIndex];
                            y.UIUtlity.ShowHintPanel(null, "AccumulateRecharge_GetRewardConfirm".ToUILocale().Fmt(e.Items[0].ToItemName(), e.Items[1]), "", null, "", this.RequestGetReward.bind(this))
                        } else y.UIUtlity.ShowFloatingHint("AccumulateRecharge_ItemNotSelected".ToUILocale().Fmt());
                    else y.UIUtlity.ShowFloatingHint("AccumulateRecharge_BoughtCountNotEnough".ToUILocale().Fmt(this._needCount))
                }, t.prototype.RequestGetReward = function() {
                    var e = new f.Req_Activity_CumulativeBuyGiftReward;
                    e.ActivityId = this._activityConfig._id, e.Index = this._currentSelectIndex, m.RpcComponent.Instance.Call(e, this.OnGetRewardSuccess.bind(this))
                }, t.prototype.OnGetRewardSuccess = function(e) {
                    y.UIUtlity.ShwDisplayRewardPanel(e.Rewards)
                }, t.prototype.OnBuyGiftPackButtonClicked = function() {
                    I.default.Instance.Pay(this._currPackConfig.Id, this._activityConfig._id)
                }, t.prototype.OnClickItem = function(e, t) {
                    if (-1 != this.FinalRewardsContainer.children.indexOf(t)) {
                        if (this._model.IntValue < 0 && this._boughtCount >= this._needCount)
                            for (var n = 0; n < this._itemComponents.length; n++) this._itemComponents[n].SetSelectFlagState(n == e);
                        return y.UIUtlity.ShowItemTip(this._activityConfig.CustomPart.Gifts[e].Items[0], t), void(this._currentSelectIndex = e)
                    } - 1 == this.DailyPackItemsContainer.children.indexOf(t) || y.UIUtlity.ShowItemTip(e, t)
                }, t.prototype.OnGiftPackPreviewButtonClicked = function() {
                    for (var e = this, t = [], n = function(n) {
                            var r = [];
                            o._activityConfig.CustomPart.PackIds[n].Items.forEach(function(t) {
                                r.push(e._acitivityPackInfoMap[t])
                            }), t.push({
                                title: "AccumulateRecharge_GiftPackReviewItemTitle".ToUILocale().Fmt(n + 1),
                                packInfos: r
                            })
                        }, o = this, r = 0; r < this._activityConfig.CustomPart.PackIds.length; r++) n(r);
                    c.UIManager.Instance.ShowUIPanel(d.PanelConfig.GiftPacksPreviewPanel.Path, "AccumulateRecharge_GiftPackReviewPanelTitle".ToUILocale(), t)
                }, t.prototype.OnToggleClicked = function(e) {
                    var t = parseInt(e.node.name);
                    t != this._currentPackIndex && (this._currentPackIndex = t, this._currPackId = this._activityConfig.CustomPart.PackIds[t].Items[0], this.RefreshPage())
                }, t.prototype.Close = function(t) {
                    e.prototype.Close.call(this, t)
                }, i([A(cc.RichText)], t.prototype, "ActivityDescriptionRichText", void 0), i([A(cc.ScrollView)], t.prototype, "FinalRewardScrollView", void 0), i([A(cc.Node)], t.prototype, "FinalRewardsContainer", void 0), i([A(cc.RichText)], t.prototype, "TimeLeftRichText", void 0), i([A(cc.Button)], t.prototype, "GetFinalRewardButton", void 0), i([A(cc.Label)], t.prototype, "GetFinalRewardButtonLabel", void 0), i([A(cc.Button)], t.prototype, "GetFinalRewardButtonGray", void 0), i([A(cc.Label)], t.prototype, "GetFinalRewardButtonGrayLabel", void 0), i([A(cc.Node)], t.prototype, "FinalRewardGotBtn", void 0), i([A(cc.Label)], t.prototype, "FinalRewardGotLabel", void 0), i([A(cc.Label)], t.prototype, "RewardProgressLabel", void 0), i([A(cc.Label)], t.prototype, "DailyPackTitleLabel", void 0), i([A(cc.Node)], t.prototype, "DailyPackItemsContainer", void 0), i([A(cc.Button)], t.prototype, "BuyGiftPackButton", void 0), i([A(cc.Label)], t.prototype, "BuyGiftPackButtonLabel", void 0), i([A(cc.Label)], t.prototype, "DiscountValueLabel", void 0), i([A(cc.Label)], t.prototype, "DiscountDescriptionLabel", void 0), i([A(cc.Sprite)], t.prototype, "BoughtTag", void 0), i([A(cc.Label)], t.prototype, "BoughtLabel", void 0), i([A(cc.Node)], t.prototype, "VipPointNode", void 0), i([A(cc.Label)], t.prototype, "VipPointTag", void 0), i([A(cc.Label)], t.prototype, "VipPointLabel", void 0), i([A(v.default)], t.prototype, "CommonTaskTipComponent", void 0), i([A(cc.Button)], t.prototype, "GiftPackPreviewButton", void 0), i([A(cc.Label)], t.prototype, "GiftPackPreviewButtonLabel", void 0), i([A(cc.Node)], t.prototype, "ToggleContainer", void 0), i([P], t)
            }(c.BaseUIPanel);
        n.default = T, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GameRecord": "GameRecord",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Channel/ChannelManager": "ChannelManager",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/RewardByAccumulateRechargePageToogles": "RewardByAccumulateRechargePageToogles",
        "./CommonTaskTipComponent": "CommonTaskTipComponent"
    }],
    RewardDescriptionListComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "88215nIYg5OcKERsmGCKDvY", "RewardDescriptionListComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RewardDescriptionListComponentStyle = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/EventKeys"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../Panel/RewardDescriptionPanel"),
            h = e("./ItemComponent"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property;
        (function(e) {
            e[e.Default = 0] = "Default", e[e.Style2 = 1] = "Style2"
        })(l = n.RewardDescriptionListComponentStyle || (n.RewardDescriptionListComponentStyle = {}));
        var m = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.Style = l.Default, t.Flag = null, t.RankNum = null, t.RankIcons = [], t.CampTag = null, t.TagLabel = null, t.ValueLabel = null, t.ItemContainer = null, t._itemComponents = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                c.Game.EventDispatcher.On(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                c.Game.EventDispatcher.Off(u.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Init = function(e, t, n, o, r, i) {
                return a(this, void 0, void 0, function() {
                    var a;
                    return s(this, function() {
                        switch (this._rewards = t, this._itemPrefab = n, o && (this.ValueLabel.string = o.toString()), e) {
                            case d.RewardTab.WinOrLose:
                                if (this.Flag.active = !0, r == i) {
                                    for (this.RankNum.node.active = !1, a = 1; a <= 3; a++) this.RankIcons[a].active = a === r;
                                    this.RankNum.node.active = !1
                                } else {
                                    for (this.RankNum.node.active = !0, a = 1; a <= 3; a++) this.RankIcons[a].active = !1;
                                    this.RankNum.string = 0 == i ? r + "+" : "StarPiece_ExclusiveHeroTagDetail".ToUILocale().Fmt(r, i)
                                }
                                break;
                            case d.RewardTab.PersonalRewards:
                            case d.RewardTab.CampRewards:
                        }
                        return this.SetItemContainer(), [2]
                    })
                })
            }, t.prototype.SetItemContainer = function() {
                var e = this;
                this._rewards.forEach(function(t, n) {
                    if (e._itemComponents.length <= n) {
                        var o = cc.instantiate(e._itemPrefab);
                        o.setParent(e.ItemContainer.node), o.name = t.Items[0].toString(), e._itemComponents.push(o.getComponent(h.ItemComponent))
                    }
                    e._itemComponents[n].node.active = !0, e._itemComponents[n].Init({
                        ItemId: t.Items[0],
                        Count: t.Items[1]
                    })
                });
                for (var t = this._rewards.length; t < this._itemComponents.length; t++) this._itemComponents[t].node.active = !1
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.ItemContainer.node.children.indexOf(t) && p.UIUtlity.ShowItemTip(t.getComponent(h.ItemComponent).ItemId, t)
            }, i([g({
                type: cc.Enum(l),
                displayName: "\u6837\u5f0f"
            })], t.prototype, "Style", void 0), i([g(cc.Node)], t.prototype, "Flag", void 0), i([g(cc.RichText)], t.prototype, "RankNum", void 0), i([g(cc.Node)], t.prototype, "RankIcons", void 0), i([g(cc.Node)], t.prototype, "CampTag", void 0), i([g(cc.Label)], t.prototype, "TagLabel", void 0), i([g(cc.Label)], t.prototype, "ValueLabel", void 0), i([g(cc.Layout)], t.prototype, "ItemContainer", void 0), i([y], t)
        }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Panel/RewardDescriptionPanel": "RewardDescriptionPanel",
        "./ItemComponent": "ItemComponent"
    }],
    RewardDescriptionPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "f9c67nElTtK7abR6j2AB1lc", "RewardDescriptionPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RewardTab = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../../../../Proto/Static/RpcProto"),
            d = e("../Components/CustomToggle"),
            h = e("../Components/CustomLayout"),
            f = e("../../Components/Components"),
            y = e("../Components/RewardDescriptionListComponent"),
            g = e("../../Auxiliary/EventKeys"),
            m = e("../../Auxiliary/GlobalDefine"),
            I = e("./CampSupportPanel"),
            _ = e("../../../Consts/Consts"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../Components/ItemComponent"),
            b = e("../Auxiliary/UIUtlity"),
            S = cc._decorator,
            w = S.ccclass,
            P = S.property;
        (function(e) {
            e[e.WinOrLose = 0] = "WinOrLose", e[e.PersonalRewards = 1] = "PersonalRewards", e[e.CampRewards = 2] = "CampRewards"
        })(l = n.RewardTab || (n.RewardTab = {})),
        function(e) {
            e[e.Win = 1] = "Win", e[e.Lose = 2] = "Lose"
        }(c || (c = {}));
        var A = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed, !1), t.BottomToggles = [], t.Title = null, t.WinOrLosePage = null, t.TitleTip = null, t.SupportTitle = null, t.WinOrLoseToggles = [], t.WinOrLoseContent = null, t.CampRewardPage = null, t.CampToggles = [], t.CampRewardContent = null, t.SupportValueRichText = null, t.TagLabel = null, t.Flag = null, t.LoseNode = null, t.WinNode = null, t.RankNumber = null, t.PersonalSupport = null, t.PersonalValueLabel = null, t.RewardScrollView = null, t.NoRankLabel = null, t.mainAtlas = null, t._isWinOrLoseContentInit = !1, t._isCampRewardContentInit = !1, t._isMyRewardInit = !1, t._rankRewards = [], t._personalRewards = [], t._campRewards = [], t._loadAssets = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), u.Game.EventDispatcher.On(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(g.EventKeys.EVENT_CUSTOMLAYOUT_REFRESH, this.RefreshScrollView, this), u.Game.EventDispatcher.Off(g.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Preload = function() {
                return a(this, void 0, void 0, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("CampSupportPanel/Components/RewardDescriptionListComponent", cc.Prefab), n = this.LoadDynamicAsset("CampSupportPanel/Components/RewardDescriptionListComponent2", cc.Prefab), o = this.LoadDynamicAsset(m.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._ListComponentPrefab = e[0], r._ListComponentPrefab2 = e[1], r._itemPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.Title.string = "abyss_RuleSubtitle1".ToUILocale(), this.TitleTip.string = "campSupport_exclusiveTitle".ToUILocale(), this.TagLabel.string = "crossServerRank_myReward".ToUILocale(), this.PersonalSupport.string = "campSupport_personalValue".ToUILocale(), this.SupportTitle.node.on(cc.Node.EventType.TOUCH_END, this.TouchSupportTitle, this), this.InitBottomToggles(), this.InitWinOrLoseToggles(), this.InitCampToggles()
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this, t), this._activityId = t[0], this._supportInfo = t[1], this._activityConfig = f.DataCenter.Instance.ActivityConfigs[this._activityId]
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.PreloadByData.call(this), [4, C.default.LoadActivityTexture(this._activityConfig.CustomPart.WinRewardIcon)];
                            case 1:
                                return t = n.sent(), this._loadAssets.push(t), this.SupportTitle.spriteFrame = t, [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), !t) {
                    var n = {};
                    this._activityConfig._Locale.forEach(function(e) {
                        n[e.Id] = e.Content
                    }), this.CampToggles[I.CampType.One].Init("" + n[I.CampType.One]), this.CampToggles[I.CampType.Two].Init("" + n[I.CampType.Two]), this.SupportValueRichText.imageAtlas = this.mainAtlas, this.SupportValueRichText.string = "campSupport_onRank".ToUILocale().Fmt(this._activityConfig.CustomPart.WinValue)
                }
                var o = this.BottomToggles[l.WinOrLose];
                o.isChecked = !0, this.OnBottomSwitchTab(o)
            }, t.prototype.InitBottomToggles = function() {
                this.BottomToggles[l.WinOrLose].Init("campSupport_reward_winOrLose".ToUILocale()), this.BottomToggles[l.PersonalRewards].Init("campSupport_reward_personal".ToUILocale()), this.BottomToggles[l.CampRewards].Init("campSupport_reward_camp".ToUILocale());
                for (var e = 0; e < this.BottomToggles.length; e++) this.BottomToggles[e].node.on("toggle", this.OnBottomSwitchTab, this)
            }, t.prototype.OnBottomSwitchTab = function(e) {
                var t = Number.parseInt(e.name);
                if (this._currentTab != t) switch (this._currentTab = t, t) {
                    case l.WinOrLose:
                        this.WinOrLosePage.active = !0, this.CampRewardPage.active = !1, this.SupportValueRichText.node.active = !0;
                        var n = this.WinOrLoseToggles[c.Win];
                        n.isChecked = !0, this.OnWinOrLoseToggle(n);
                        break;
                    case l.PersonalRewards:
                    case l.CampRewards:
                        this.WinOrLosePage.active = !1, this.CampRewardPage.active = !0, this.SupportValueRichText.node.active = !1, this.SetCampToggle()
                }
            }, t.prototype.InitWinOrLoseToggles = function() {
                this.WinOrLoseToggles[c.Win].Init("campSupport_reward_win".ToUILocale()), this.WinOrLoseToggles[c.Lose].Init("campSupport_reward_lose".ToUILocale());
                for (var e = 1; e < this.WinOrLoseToggles.length; e++) this.WinOrLoseToggles[e].node.on("toggle", this.OnWinOrLoseToggle, this)
            }, t.prototype.OnWinOrLoseToggle = function(e) {
                var t = Number.parseInt(e.name);
                this._curWinOrLoseToggle != t && (this._curWinOrLoseToggle = t, this.InitWinOrLoseContent(), this.SetMyRewardPart())
            }, t.prototype.InitCampToggles = function() {
                for (var e = 1; e < this.WinOrLoseToggles.length; e++) this.CampToggles[e].node.on("toggle", this.OnCampToggle, this)
            }, t.prototype.SetCampToggle = function() {
                this._curCampToggle = null;
                var e = this.CampToggles[I.CampType.One];
                e.isChecked = !0, this.OnCampToggle(e)
            }, t.prototype.OnCampToggle = function(e) {
                var t = Number.parseInt(e.name);
                this._curCampToggle != t && (this._curCampToggle = t, this.InitCampRewardContent())
            }, t.prototype.SetMyRewardPart = function() {
                var e = this;
                if (!this._isMyRewardInit) {
                    this._isMyRewardInit = !0, this._userActivityData = f.DataCenter.Instance.GetDataById(p.UserActivity_Model, this._activityId);
                    var t = this._userActivityData.IntArray[0],
                        n = this._userActivityData.IntArray[1];
                    if (t) {
                        if (this.PersonalValueLabel.string = n.toString(), C.default.Instance.ComputeDeadTime(this._activityConfig.Common) - f.RpcComponent.Instance.ServerTime - 3 * _.Etc.HourDuration <= 0 && n >= this._activityConfig.CustomPart.WinValue)
                            if (this._supportInfo) {
                                if (this._supportInfo.MyRank > 0) return void this.SetMyRewards(t)
                            } else {
                                var o = new p.Req_Activity_RefreshSupportInfo;
                                o.ActivityId = this._activityId, f.RpcComponent.Instance.Call(o, function(n) {
                                    e._supportInfo = n, e._supportInfo.MyRank > 0 && e.SetMyRewards(t)
                                })
                            }
                    } else this.PersonalValueLabel.string = "0";
                    this.Flag.active = !1, this.RewardScrollView.node.active = !1, this.NoRankLabel.node.active = !0, this.NoRankLabel.string = "campSupport_reward_noAccount".ToUILocale()
                }
            }, t.prototype.SetMyRewards = function(e) {
                var t, n = this;
                this.Flag.active = !0, this.RewardScrollView.node.active = !0, this.NoRankLabel.node.active = !1, e == (this._supportInfo.groupValue.Items[0] > this._supportInfo.groupValue.Items[1] ? I.CampType.One : I.CampType.Two) ? (t = c.Win, this.LoseNode.active = !1, this.WinNode.active = !0) : (t = c.Lose, this.LoseNode.active = !0, this.WinNode.active = !1);
                for (var o = [], r = 0; r < this._activityConfig.__RankReward.length; r++) {
                    var i = this._activityConfig.__RankReward[r];
                    if (t == i.IsWin) {
                        if (i.Rank[0] <= this._supportInfo.MyRank && this._supportInfo.MyRank <= i.Rank[1]) {
                            this.RankNumber.string = this._supportInfo.MyRank.toString(), o = i.Rewards;
                            break
                        }
                        if (i.Rank[0] <= this._supportInfo.MyRank && 0 == i.Rank[1]) {
                            this.RankNumber.string = i.Rank[0] + "+", o = i.Rewards;
                            break
                        }
                    }
                }
                o.forEach(function(e, t) {
                    n.RewardScrollView.content.childrenCount <= t && cc.instantiate(n._itemPrefab).setParent(n.RewardScrollView.content), n.RewardScrollView.content.children[t].getComponent(v.ItemComponent).Init({
                        ItemId: e.Items[0],
                        Count: e.Items[1]
                    })
                })
            }, t.prototype.InitWinOrLoseContent = function() {
                var e = this;
                this._isWinOrLoseContentInit || (this._isWinOrLoseContentInit = !0, this.WinOrLoseContent.Init(this._ListComponentPrefab)), this._rankRewards = [], this._activityConfig.__RankReward.forEach(function(t) {
                    t.IsWin == e._curWinOrLoseToggle && e._rankRewards.push(t)
                }), this.WinOrLoseContent.RenderLayOut(this._rankRewards.length)
            }, t.prototype.InitCampRewardContent = function() {
                var e = this;
                switch (this._isCampRewardContentInit || (this._isCampRewardContentInit = !0, this.CampRewardContent.Init(this._ListComponentPrefab2)), this._currentTab) {
                    case l.PersonalRewards:
                        this._personalRewards = [], this._activityConfig.__PersonReward.forEach(function(t) {
                            t.GroupId == e._curCampToggle && e._personalRewards.push(t)
                        }), this.CampRewardContent.RenderLayOut(this._personalRewards.length);
                        break;
                    case l.CampRewards:
                        this._campRewards = [], this._activityConfig.__GroupReward.forEach(function(t) {
                            t.GroupId == e._curCampToggle && e._campRewards.push(t)
                        }), this.CampRewardContent.RenderLayOut(this._campRewards.length)
                }
            }, t.prototype.RefreshScrollView = function(e, t) {
                var n = this;
                if (this.WinOrLoseContent == t) e.forEach(function(e, t) {
                    var o = n._rankRewards[t];
                    e.getComponent(y.default).Init(n._currentTab, o.Rewards, n._itemPrefab, null, o.Rank[0], o.Rank[1])
                });
                else if (this.CampRewardContent == t) switch (this._currentTab) {
                    case l.PersonalRewards:
                        e.forEach(function(e, t) {
                            e.getComponent(y.default).Init(n._currentTab, n._personalRewards[t].Rewards, n._itemPrefab, n._personalRewards[t].SupportValue)
                        });
                        break;
                    case l.CampRewards:
                        e.forEach(function(e, t) {
                            e.getComponent(y.default).Init(n._currentTab, n._campRewards[t].Rewards, n._itemPrefab, n._campRewards[t].SupportValue)
                        })
                }
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.RewardScrollView.content.children.indexOf(t) && b.UIUtlity.ShowItemTip(t.getComponent(v.ItemComponent).ItemId, t)
            }, t.prototype.TouchSupportTitle = function() {
                b.UIUtlity.ShowItemTip(this._activityConfig.CustomPart.WinRewardId, this.SupportTitle.node)
            }, t.prototype.onDestroy = function() {
                this._loadAssets.forEach(function(e) {
                    u.AssetsManager.Instance.UnloadAsset(e)
                })
            }, i([P(d.default)], t.prototype, "BottomToggles", void 0), i([P(cc.Label)], t.prototype, "Title", void 0), i([P(cc.Node)], t.prototype, "WinOrLosePage", void 0), i([P(cc.Label)], t.prototype, "TitleTip", void 0), i([P(cc.Sprite)], t.prototype, "SupportTitle", void 0), i([P(d.default)], t.prototype, "WinOrLoseToggles", void 0), i([P(h.default)], t.prototype, "WinOrLoseContent", void 0), i([P(cc.Node)], t.prototype, "CampRewardPage", void 0), i([P(d.default)], t.prototype, "CampToggles", void 0), i([P(h.default)], t.prototype, "CampRewardContent", void 0), i([P(cc.RichText)], t.prototype, "SupportValueRichText", void 0), i([P(cc.Label)], t.prototype, "TagLabel", void 0), i([P(cc.Node)], t.prototype, "Flag", void 0), i([P(cc.Node)], t.prototype, "LoseNode", void 0), i([P(cc.Node)], t.prototype, "WinNode", void 0), i([P(cc.Label)], t.prototype, "RankNumber", void 0), i([P(cc.Label)], t.prototype, "PersonalSupport", void 0), i([P(cc.Label)], t.prototype, "PersonalValueLabel", void 0), i([P(cc.ScrollView)], t.prototype, "RewardScrollView", void 0), i([P(cc.Label)], t.prototype, "NoRankLabel", void 0), i([P(cc.SpriteAtlas)], t.prototype, "mainAtlas", void 0), i([w], t)
        }(u.BaseUIPanel);
        n.default = A, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Components/CustomLayout": "CustomLayout",
        "../Components/CustomToggle": "CustomToggle",
        "../Components/ItemComponent": "ItemComponent",
        "../Components/RewardDescriptionListComponent": "RewardDescriptionListComponent",
        "./CampSupportPanel": "CampSupportPanel"
    }],
    RewardFlyingStar: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "83920Zm3CVACLr3A3fRkAFh", "RewardFlyingStar");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../../../Proto/Static/ConfigProto"),
            s = e("../../Components/Components"),
            l = e("../Components/ItemComponent"),
            c = cc._decorator,
            u = c.ccclass,
            p = c.property,
            d = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.BackAni = null, t.Container = null, t.FrontAni = null, t._itemId = 0, t
                }
                return r(t, e), t.prototype.SetMode = function(e) {
                    return this._mode = e, this
                }, t.prototype.SetItem = function(e, t, n) {
                    if (this._itemId = t, null == this._item) {
                        var o = e.Get();
                        o.setParent(this.Container), this._item = o.getComponent(l.ItemComponent)
                    }
                    if (this.Container.setScale(0, 1), this.FrontAni.node.opacity = 255, n) {
                        var r = s.ConfigDataComponent.Instance.GetConfigById(a.ItemBase_Config, t);
                        this._item.Init({
                            ItemId: t,
                            Count: n
                        }, r.Star ? l.ItemComponentType.ItemWithStar : l.ItemComponentType.ItemCommon)
                    } else r = s.ConfigDataComponent.Instance.GetConfigById(a.HeroBase_Config, t), this._item.Init({
                        ItemId: t,
                        StarLevel: r.StarLevel
                    }, l.ItemComponentType.HeroInfo);
                    this.FrontAni.setAnimation(0, "Ani_effect_xinyuanzhaohuan_wupin0" + this._mode, !0)
                }, t.prototype.FlipCard = function() {
                    var e = this;
                    this.BackAni.node.active = !0, this.BackAni.setAnimation(0, "Ani_effect_xinyuanzhaohuan_fanka0" + this._mode, !1), this.FrontAni.node.opacity = 255, this.Container.children[0] && (this.Container.children[0].x = 0, this.Container.children[0].active = !0, this.Container.children[0].scale = 1), cc.Tween.stopAllByTarget(this.Container), cc.tween(this.Container).to(.2, {
                        scaleX: 1
                    }).start(), cc.tween(this.FrontAni.node).delay(.2).to(.2, {
                        opacity: 0
                    }).start(), this.BackAni.setCompleteListener(function() {
                        e.BackAni.node.active = !1
                    })
                }, Object.defineProperty(t.prototype, "itemId", {
                    get: function() {
                        return this._itemId
                    },
                    enumerable: !1,
                    configurable: !0
                }), i([p(sp.Skeleton)], t.prototype, "BackAni", void 0), i([p(cc.Node)], t.prototype, "Container", void 0), i([p(sp.Skeleton)], t.prototype, "FrontAni", void 0), i([u], t)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../Components/Components": "Components",
        "../Components/ItemComponent": "ItemComponent"
    }],
    RewardItemComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "b2a23Hs9oxLNqsmNOSMIpBC", "RewardItemComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../../Proto/Static/ConfigProto"),
            c = e("../../Components/Components"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../Auxiliary/DataUtlity"),
            h = cc._decorator,
            f = h.ccclass,
            y = h.property,
            g = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.StrongholdIcon = null, t.NameBg = null, t.NameLabel = null, t.CanReceive = null, t.RewardTagLabels = [], t.ItemCountLabels = [], t.ItemIcons = [], t.TimeLabel = null, t.TimeValueLabel = null, t._isInit = !1, t._unloadAssets = [], t
                }
                return r(t, e), t.prototype.Init = function(e) {
                    var t = this,
                        n = e.Items[0];
                    switch (this._strongholdConfig = c.ConfigDataComponent.Instance.GetConfigById(l.WarCity_Config, n), this._isInit || (this._isInit = !0, this.RewardTagLabels.forEach(function(e) {
                            e.string = "activityBoss_reward".ToUILocale()
                        }), this.TimeLabel.string = "StrongholdWar_LeiJi".ToUILocale(), this._maxTime = c.ConfigDataComponent.Instance.GetGlobalSettingByKey("War_OccupyLimit"), this.LoadAssets()), this.NameLabel.string = n.ToStrongholdName(), this.StrongholdIcon.node.scale = .7, this._strongholdConfig.Type) {
                        case 1:
                            this.NameBg.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_center_white");
                            break;
                        case 2:
                            this.NameBg.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_center_blue");
                            break;
                        case 3:
                            this.NameBg.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_center_purple");
                            break;
                        case 4:
                            this.NameBg.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_center_green");
                            break;
                        case 5:
                            this.NameBg.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("small_tittle_center_orange"), this.StrongholdIcon.node.scale = .32
                    }
                    var o = e.Items[1] > this._maxTime ? this._maxTime : e.Items[1];
                    this.ItemCountLabels.forEach(function(e, n) {
                        e.string = (t._strongholdConfig.RewardsPerHour[n].Items[1] * o).FmtCurrency()
                    }), o < this._maxTime ? (this.TimeValueLabel.string = "StrongholdWar_Minute".ToUILocale().Fmt(o), this.CanReceive.active = o >= 1) : this.TimeValueLabel.string = "StrongholdWar_Minute".ToUILocale().Fmt(this._maxTime)
                }, t.prototype.LoadAssets = function() {
                    return a(this, void 0, void 0, function() {
                        var e, t, n, o, r = this;
                        return s(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return (e = []).push(u.AssetsManager.Instance.LoadAsset("StrongholdWarPanel/PNG/StrongholdWarAtlas", cc.SpriteAtlas)), this._strongholdConfig.RewardsPerHour.forEach(function(t) {
                                        var n = d.default.Instance.GetItemPathById(t.Items[0]);
                                        e.push(u.AssetsManager.Instance.LoadAsset(n, cc.SpriteFrame))
                                    }), [4, Promise.all(e).then(function(e) {
                                        t = e[0], n = e[1], o = e[2], r.isValid || e.forEach(function(e) {
                                            u.AssetsManager.Instance.UnloadAsset(e)
                                        })
                                    })];
                                case 1:
                                    return i.sent(), this._unloadAssets.push(t), this._unloadAssets.push(n), this._unloadAssets.push(o), this.ItemIcons[0].spriteFrame = n, this.ItemIcons[1].spriteFrame = o, this.StrongholdIcon.spriteFrame = t.getSpriteFrame("Stronghold_" + this._strongholdConfig.Type), [2]
                            }
                        })
                    })
                }, t.prototype.onDestroy = function() {
                    this._unloadAssets.forEach(function(e) {
                        e && u.AssetsManager.Instance.UnloadAsset(e)
                    }), this._unloadAssets = []
                }, i([y(cc.Sprite)], t.prototype, "StrongholdIcon", void 0), i([y(cc.Sprite)], t.prototype, "NameBg", void 0), i([y(cc.Label)], t.prototype, "NameLabel", void 0), i([y(cc.Node)], t.prototype, "CanReceive", void 0), i([y(cc.Label)], t.prototype, "RewardTagLabels", void 0), i([y(cc.Label)], t.prototype, "ItemCountLabels", void 0), i([y(cc.Sprite)], t.prototype, "ItemIcons", void 0), i([y(cc.Label)], t.prototype, "TimeLabel", void 0), i([y(cc.Label)], t.prototype, "TimeValueLabel", void 0), i([f], t)
            }(cc.Component);
        n.default = g, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    RewardTeamComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "ff772sV9nlAW4UmRA+aL94L", "RewardTeamComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../../Components/DataCenter"),
            s = e("./ItemComponent"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../../EZFramework/EZFramework"),
            u = e("../../Auxiliary/GlobalDefine"),
            p = e("../../Components/RpcComponent"),
            d = e("../Auxiliary/UIUtlity"),
            h = e("./StrongholdWarTeamItemComponent"),
            f = e("../../../ShareConsts/EnumType"),
            y = cc._decorator,
            g = y.ccclass,
            m = y.property,
            I = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.Title = null, t.StateTagLabel = null, t.StateTagNode = null, t.ReportButton = null, t.ReportButtonLabel = null, t.EditTeamButton = null, t.EditTeamButtonLabel = null, t.UnlockTipLabel = null, t.HeroContainer = null, t.TeamContainer = null, t._heroComponentArray = [], t
                }
                return r(t, e), t.prototype.onLoad = function() {
                    this.EditTeamButtonLabel.string = "StrongholdWar_Team_Edit".ToUILocale(), this.ReportButtonLabel.string = "allianceWar_report".ToUILocale(), this.EditTeamButton.node.on("click", this.OnEditTeamButtonClick, this), this.ReportButton.node.on("click", this.OnReportButtonClick, this)
                }, t.prototype.Init = function(e, t, n, o, r, i, a) {
                    this._teamIndex = e, this._teamType = t, this._formationHeroSids = n ? n.HeroIds : [], this._formationInfo = r || {}, this._formationId = o, this._itemPrefab = i, this._mainPanel = a, this.ReportButton.node.active = !!this._formationHeroSids[0], this.EditTeamButton.node.active = !this._formationHeroSids[0], this.Title.string = this._teamType == h.StrongholdWarTeamType.Hero ? "formation_index".ToUILocale().Fmt(this._teamIndex + 1) : "StrongholdWar_Team_Angel_Tag".ToUILocale(), this.SetHeroContent(this._formationHeroSids), this.SetTeamState()
                }, t.prototype.SetHeroContent = function(e) {
                    for (var t = 0; t < 5; t++) {
                        var n = this._heroComponentArray[t];
                        if (!n) {
                            var o = cc.instantiate(this._itemPrefab);
                            o.setParent(this.HeroContainer), n = o.getComponent(s.ItemComponent), this._heroComponentArray[t] = n
                        }
                        var r = e[t];
                        if (r) {
                            if (this._teamType == h.StrongholdWarTeamType.Hero) {
                                var i = a.DataCenter.Instance.GetDataById(l.UserHero_Model, r);
                                n.Init({
                                    ItemId: i.HeroId,
                                    StarLevel: i.StarLevel
                                }, s.ItemComponentType.HeroInfo)
                            } else if (this._teamType == h.StrongholdWarTeamType.Angel) {
                                var c = a.DataCenter.Instance.GetDataById(l.UserAngel_Model, r);
                                n.Init({
                                    ItemId: c.AngelId,
                                    StarLevel: c.StarLevel,
                                    SkinId: c.SkinId
                                }, s.ItemComponentType.Angel)
                            }
                        } else n.SetHeroSimpleState()
                    }
                }, t.prototype.SetTeamState = function() {
                    this.StateTagNode.active = !!this._formationHeroSids[0], this._formationInfo[this._formationId.toString()] && 0 != this._formationInfo[this._formationId.toString()].Items[0] ? this.StateTagLabel.string = "StrongholdWar_Team_State_Fight".ToUILocale() : (this.StateTagLabel.string = "StrongholdWar_Team_State_Free".ToUILocale(), this.StateTagLabel.node.color = cc.Color.GREEN)
                }, t.prototype.OnEditTeamButtonClick = function() {
                    this._teamType == h.StrongholdWarTeamType.Hero ? c.UIManager.Instance.ShowUIPanel(u.PanelConfig.BattleFormationPanel.Path, this.RequestSaveFormation.bind(this), [22, 22, 22, 22, 22], {
                        IsSaveFormationState: !0,
                        TeamIndex: this._teamIndex
                    }) : c.UIManager.Instance.ShowUIPanel(u.PanelConfig.BattleFormationPanel.Path, this.RequestSaveFormation.bind(this), [23], {
                        IsSaveFormationState: !0
                    })
                }, t.prototype.RequestSaveFormation = function(e) {
                    var t = this,
                        n = new l.Req_War_Action;
                    n.Type = f.WarActionType.SetFormations, n.Formations = e, p.RpcComponent.Instance.Call(n, function() {
                        d.UIUtlity.ShowFloatingHint("formation_change_success".ToUILocale()), t._mainPanel.SetTeamContainer()
                    })
                }, t.prototype.OnReportButtonClick = function() {
                    var e = new l.Req_War_Action;
                    e.Type = f.WarActionType.GetReports, e.Fids = [this._formationId], p.RpcComponent.Instance.Call(e, this.RequestReportSuccess.bind(this))
                }, t.prototype.RequestReportSuccess = function(e) {
                    c.UIManager.Instance.ShowUIPanel(u.PanelConfig.StrongholdWarReportPanel.Path, e.Int2DArray)
                }, i([m(cc.Label)], t.prototype, "Title", void 0), i([m(cc.Label)], t.prototype, "StateTagLabel", void 0), i([m(cc.Node)], t.prototype, "StateTagNode", void 0), i([m(cc.Button)], t.prototype, "ReportButton", void 0), i([m(cc.Label)], t.prototype, "ReportButtonLabel", void 0), i([m(cc.Button)], t.prototype, "EditTeamButton", void 0), i([m(cc.Label)], t.prototype, "EditTeamButtonLabel", void 0), i([m(cc.Label)], t.prototype, "UnlockTipLabel", void 0), i([m(cc.Node)], t.prototype, "HeroContainer", void 0), i([m(cc.Node)], t.prototype, "TeamContainer", void 0), i([g], t)
            }(cc.Component);
        n.default = I, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/DataCenter": "DataCenter",
        "../../Components/RpcComponent": "RpcComponent",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./ItemComponent": "ItemComponent",
        "./StrongholdWarTeamItemComponent": "StrongholdWarTeamItemComponent"
    }],
    RhythmCustomToggle: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "891f2BGrz5BH5Y2grNoq1yK", "RhythmCustomToggle");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = e("../Components/CustomToggle"),
            s = cc._decorator,
            l = s.ccclass,
            c = s.property,
            u = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.NameLabel = null, t.CheckTag = null, t.RedDotNode = null, t
                }
                return r(t, e), t.prototype.Init = function(t, n, o, r) {
                    void 0 === r && (r = !1), e.prototype.Init.call(this, t), this.CheckTag.active = !1, o ? (this.NameLabel.node.active = !0, this.NameLabel.string = o) : this.NameLabel.node.active = !1, this.RedDotNode.active = r
                }, t.prototype.SetCheckTag = function(e) {
                    void 0 === e && (e = !1), this.CheckTag.active = e
                }, i([c(cc.Label)], t.prototype, "NameLabel", void 0), i([c(cc.Node)], t.prototype, "CheckTag", void 0), i([c(cc.Node)], t.prototype, "RedDotNode", void 0), i([l], t)
            }(a.default);
        n.default = u, cc._RF.pop()
    }, {
        "../Components/CustomToggle": "CustomToggle"
    }],
    RhythmGameEntrancePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "1faacS1GcJJtLW7aWY/Y+8W", "RhythmGameEntrancePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Components/Components"),
            h = e("./RhythmCustomToggle"),
            f = e("./RhythmTaskItem"),
            y = e("../../Auxiliary/GlobalDefine"),
            g = e("../Components/AsyncLayout"),
            m = e("../Components/ActivityCountDownComponent"),
            I = e("../../../Util/TimeUtil"),
            _ = e("../../../Consts/Consts"),
            C = e("../../Auxiliary/DataUtlity"),
            v = cc._decorator,
            b = v.ccclass,
            S = v.property;
        (function(e) {
            e[e.NotComplete = 0] = "NotComplete", e[e.CanGet = 1] = "CanGet", e[e.Got = 2] = "Got"
        })(l || (l = {}));
        var w = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.Bg = null, t.AvatarSprite = null, t.RuleBtn = null, t.PanelTitle = null, t.CountDownComponent = null, t.TaskScrollView = null, t.TaskAsyncLayout = null, t.ToggleScrollView = null, t.ToggleAsyncLayout = null, t.BackBtn = null, t.ChallengeBtn = null, t.ChallengeBtnLabel = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t, n, o, r = this;
                    return s(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.prototype.Preload.call(this), t = this.LoadDynamicAsset("RhythmGamePanel/RhythmCustomToggle", cc.Prefab), n = this.LoadDynamicAsset("RhythmGamePanel/RhythmTaskItem", cc.Prefab), o = this.LoadDynamicAsset(y.BundlePath.ItemComponent, cc.Prefab), [4, Promise.all([t, n, o]).then(function(e) {
                                    r._togglePrefab = e[0], r._taskComponentPrefab = e[1], r._itemComponentPrefab = e[2]
                                })];
                            case 1:
                                return i.sent(), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ChallengeBtnLabel.string = "HolyRelic_challenge".ToUILocale(), this.ChallengeBtn.node.on("click", this.OnChallengeBtnClick, this), this.BackBtn.node.on("click", this.OnBackBtnClick, this), this.ToggleAsyncLayout.Init(this._togglePrefab, this.OnRenderToggleItem.bind(this)), this.TaskAsyncLayout.Init(this._taskComponentPrefab, this.OnRenderRewardTask.bind(this))
            }, t.prototype.InitData = function(t) {
                e.prototype.InitData.call(this);
                var n = t[0];
                this._activityConfig = d.DataCenter.Instance.ActivityConfigs[n], this._defaultLevelIndex = 0, this._curDay = I.TimeUtil.GetDiffDays(this._activityConfig.Common.StartTime, d.RpcComponent.Instance.ServerTime, !0) + 1, this.PanelTitle.string = this._activityConfig.Common.Title
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var e, t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = this.LoadDynamicAsset("RhythmGamePanel/Png/" + this._activityConfig.CustomPart.ShowType + "/entranceBg", cc.SpriteFrame), t = this.LoadDynamicAsset("RhythmGamePanel/Png/" + this._activityConfig.CustomPart.ShowType + "/entrance_avatar", cc.SpriteFrame), [4, Promise.all([e, t]).then(function(e) {
                                    n.Bg.spriteFrame = e[0], n.AvatarSprite.spriteFrame = e[1]
                                })];
                            case 1:
                                return o.sent(), [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t), this._activityData = d.DataCenter.Instance.GetDataById(u.UserActivity_Model, this._activityConfig._id), t ? (this.ToggleAsyncLayout.ReRender(), this.TaskAsyncLayout.ReRender()) : (this._curLevelIndex = this._defaultLevelIndex, this.ToggleAsyncLayout.RenderLayout(this._activityConfig.__Level.length), this.CountDownComponent.Init(this._activityConfig.Common), this.TaskAsyncLayout.RenderLayout(this._activityConfig.__Level[this._curLevelIndex].Hp))
            }, t.prototype.OnRenderToggleItem = function(e, t) {
                var n, o = this._activityConfig.__Level[t],
                    r = o.StartDay <= this._curDay;
                if (!r) {
                    var i = this._activityConfig.Common.StartTime + (o.StartDay - 1) * _.Etc.DayDuration,
                        a = C.default.ActivityTimeLeftFormat(i - d.RpcComponent.Instance.ServerTime);
                    n = "ActiveCollection_OpenTimeLabel".ToUILocale().Fmt(a)
                }
                e.name = t.toString(), e.on("toggle", this.SwitchLevel, this);
                var s = e.getComponent(h.default),
                    c = this.IsAllLevelRewardGot(t),
                    u = c == l.CanGet;
                s.Init((t + 1).toString(), void 0, "allianceWar_difficult_desc".ToUILocale(), u), r ? (s.SetInteractable(!0), s.SetCheckTag(c == l.Got)) : s.SetInteractable(!1, n), this._curLevelIndex == t && (s.isChecked = !0)
            }, t.prototype.IsAllLevelRewardGot = function(e) {
                var t, n = this._activityData.Int2DArray[e],
                    o = !0;
                if (n)
                    for (var r = 0; r < this._activityConfig.__Level[e].Hp; r++) switch (null !== (t = n.Items[r]) && void 0 !== t ? t : 0) {
                        case l.CanGet:
                            return l.CanGet;
                        case l.NotComplete:
                            o = !1
                    }
                return o ? l.Got : l.NotComplete
            }, t.prototype.SwitchLevel = function(e) {
                var t = Number.parseInt(e.node.name);
                this._curLevelIndex != t && (this._curLevelIndex = t, this._defaultLevelIndex = t, this.TaskAsyncLayout.RenderLayout(this._activityConfig.__Level[this._curLevelIndex].Hp))
            }, t.prototype.OnRenderRewardTask = function(e, t) {
                var n, o = this._activityConfig.__Level[this._curLevelIndex],
                    r = e.getComponent(f.default),
                    i = o.Rewards[t].Items;
                r.Init(this._itemComponentPrefab, this._activityConfig._id, t + 1, o.Id, i, null !== (n = this._activityData.Int2DArray[this._curLevelIndex].Items[t]) && void 0 !== n ? n : 0)
            }, t.prototype.OnBackBtnClick = function() {
                c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnChallengeBtnClick = function() {
                var e, t = this._activityConfig.__Level[this._curLevelIndex].Hp,
                    n = (null !== (e = this._activityData.Int2DArray[this._curLevelIndex].Items[t - 1]) && void 0 !== e ? e : 0) != l.NotComplete;
                c.UIManager.Instance.ShowUIPanel(y.PanelConfig.RhythmGamePanel.Path, this._activityConfig._id, this._curLevelIndex, n)
            }, i([S(cc.Sprite)], t.prototype, "Bg", void 0), i([S(cc.Sprite)], t.prototype, "AvatarSprite", void 0), i([S(cc.Button)], t.prototype, "RuleBtn", void 0), i([S(cc.Label)], t.prototype, "PanelTitle", void 0), i([S(m.default)], t.prototype, "CountDownComponent", void 0), i([S(cc.ScrollView)], t.prototype, "TaskScrollView", void 0), i([S(g.default)], t.prototype, "TaskAsyncLayout", void 0), i([S(cc.ScrollView)], t.prototype, "ToggleScrollView", void 0), i([S(g.default)], t.prototype, "ToggleAsyncLayout", void 0), i([S(cc.Button)], t.prototype, "BackBtn", void 0), i([S(cc.Button)], t.prototype, "ChallengeBtn", void 0), i([S(cc.Label)], t.prototype, "ChallengeBtnLabel", void 0), i([b], t)
        }(p.BaseUIFullScreenPanel);
        n.default = w, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/TimeUtil": "TimeUtil",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Components/ActivityCountDownComponent": "ActivityCountDownComponent",
        "../Components/AsyncLayout": "AsyncLayout",
        "./RhythmCustomToggle": "RhythmCustomToggle",
        "./RhythmTaskItem": "RhythmTaskItem"
    }],
    RhythmGamePanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "6d6b24FU1lHQ4bAzHiuvkdF", "RhythmGamePanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../../Proto/Static/RpcProto"),
            p = e("../../../EZFramework/EZFramework"),
            d = e("../../Components/Components"),
            h = e("../../Auxiliary/GlobalDefine"),
            f = e("./RhythmSuccessPanel"),
            y = e("../../../Util/AppUtil"),
            g = e("../Auxiliary/UIUtlity"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property;
        (function(e) {
            e[e.IsStart = 1] = "IsStart", e[e.PlayingAni = 2] = "PlayingAni", e[e.IsEnd = 3] = "IsEnd", e[e.None = 99] = "None"
        })(l || (l = {}));
        var C = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new p.UIPanelType(p.UINodeType.Fixed), t.PanelBg = null, t.MapBg = null, t.RuleBtn = null, t.PanelTitle = null, t.LevelLabel = null, t.CheckPoint = null, t.HpIcons = [], t.HpContainer = null, t.AimLabel = null, t.ProgressLabel = null, t.PosNode = null, t.PlayerNode = null, t.CheckResultIcon = null, t.PlayerAnimation = null, t.PlayerIcon = null, t.ActionBtn = null, t.CloseBtn = null, t.Atlas = null, t.CountDownMask = null, t.CountDownSprite = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    return s(this, function() {
                        return e.prototype.Preload.call(this), [2]
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.ActionBtn.node.on("click", this.OnCheckBtnClick, this), this.CloseBtn.node.on("click", this.OnCloseBtnClick, this), this.AimLabel.string = "knife_target".ToUILocale(), this.RuleBtn.on("click", this.OnRuleBtnClick, this)
            }, t.prototype.InitData = function(t) {
                var n;
                e.prototype.InitData.call(this);
                var o = t[0];
                this._curLevelIndex = t[1], this._isCompleted = t[2], this._activityConfig = d.DataCenter.Instance.ActivityConfigs[o], this.PanelTitle.string = this._activityConfig.Common.Title, this._levelConfig = this._activityConfig.__Level[this._curLevelIndex], this.LevelLabel.string = "level".ToUILocale().Fmt(this._curLevelIndex + 1), this._mapType = this._levelConfig.Map[0];
                var r = null !== (n = this._levelConfig.Map[1]) && void 0 !== n ? n : 0;
                this._moveAniSpeed = this._levelConfig.Speed ? this._levelConfig.Speed / 1e3 : 1, this.MapBg.node.angle = r, this.PlayerNode.angle = -r, this._moveAniName = "type_" + this._mapType, this._gameState = l.None, this.PlayerIcon.spriteFrame = this.Atlas.getSpriteFrame("playerIcon_" + this._activityConfig.CustomPart.ShowType)
            }, t.prototype.PreloadByData = function() {
                return a(this, void 0, Promise, function() {
                    var e, t, n, o = this;
                    return s(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return e = this.LoadDynamicAsset("RhythmGamePanel/PosComponent/type_" + this._mapType, cc.Prefab), t = this.LoadDynamicAsset("RhythmGamePanel/Png/" + this._activityConfig.CustomPart.ShowType + "/mapType_" + this._mapType, cc.SpriteFrame), n = this.LoadDynamicAsset("RhythmGamePanel/Png/" + this._activityConfig.CustomPart.ShowType + "/gameBg", cc.SpriteFrame), [4, Promise.all([e, t, n]).then(function(e) {
                                    o._positionPrefab = e[0], o.MapBg.spriteFrame = e[1], o.PanelBg.spriteFrame = e[2]
                                })];
                            case 1:
                                return r.sent(), [2]
                        }
                    })
                })
            }, t.prototype.DisPlay = function(t) {
                if (e.prototype.DisPlay.call(this, t), this._gameState == l.IsEnd && c.UIManager.Instance.BackUIPanel(), !t) {
                    this._positonRootNode || (this._positonRootNode = cc.instantiate(this._positionPrefab), this._positonRootNode.setParent(this.PosNode)), this._randomPositions = [];
                    for (var n = 0; n < this._positonRootNode.childrenCount; n++) this._randomPositions.push(this._positonRootNode.children[n].position);
                    this._curLevelIndex <= 0 ? this.OnRuleBtnClick() : this.StartCountDown()
                }
                this._gameState == l.IsStart && this.PlayerAnimation.resume()
            }, t.prototype.SetPlayerStartPosition = function() {
                this.PlayerAnimation.stop();
                var e = this.PlayerAnimation.getClips()[this._mapType - 1].curveData.props.position[0].value;
                this.PlayerNode.setPosition(e[0], e[1])
            }, t.prototype.StartCountDown = function() {
                this.CheckPoint.active = !1, this._gameState = l.IsStart, this._curHp = this._levelConfig.Hp, this._curTarget = 0, this.RefreshHpInfo(), this.SetPlayerStartPosition(), this._countDownTimer = 3, this.CountDownMask.active = !0, this.unschedule(this.PlayCountDownAni), this.PlayCountDownAni(), this.schedule(this.PlayCountDownAni, 1)
            }, t.prototype.PlayCountDownAni = function() {
                this._countDownTimer <= 0 ? (this.unschedule(this.PlayCountDownAni), this.CountDownMask.active = !1, this.StartGame()) : (this.CountDownSprite.node.scale = 1.1, this.CountDownSprite.node.opacity = 255, this.CountDownSprite.spriteFrame = this.Atlas.getSpriteFrame("number_" + this._countDownTimer), cc.Tween.stopAllByTarget(this.CountDownSprite.node), cc.tween(this.CountDownSprite.node).delay(.1).to(1, {
                    scale: .8,
                    opacity: 0
                }, {
                    easing: "backOut"
                }).start(), this._countDownTimer--)
            }, t.prototype.StartGame = function() {
                this.ShowNextCheckPoint(), this.PlayerAnimation.play(this._moveAniName);
                var e = this.PlayerAnimation.getAnimationState(this._moveAniName);
                switch (e.speed = this._moveAniSpeed, e.wrapMode) {
                    case cc.WrapMode.PingPongReverse:
                        e.wrapMode = cc.WrapMode.PingPong;
                        break;
                    case cc.WrapMode.LoopReverse:
                        e.wrapMode = cc.WrapMode.Loop
                }
            }, t.prototype.ShowNextCheckPoint = function() {
                this.CheckPoint.active = !0;
                var e = y.AppUtil.DispatchArray(this._randomPositions, 1, !0);
                this.CheckPoint.position = e[0]
            }, t.prototype.RefreshHpInfo = function() {
                for (var e = this._activityConfig.__Level[this._curLevelIndex].Hp, t = 0; t < e; t++) {
                    var n = this.HpIcons[t];
                    if (!n) {
                        var o = cc.instantiate(this.HpIcons[0].node);
                        o.setParent(this.HpContainer), n = o.getComponent(cc.Sprite), this.HpIcons.push(n)
                    }
                    t < this._curHp ? n.spriteFrame = this.Atlas.getSpriteFrame("hp") : n.spriteFrame = this.Atlas.getSpriteFrame("emptyHp")
                }
                this.ProgressLabel.string = this._curTarget + "/" + this._levelConfig.Target
            }, t.prototype.OnCloseBtnClick = function() {
                return a(this, void 0, void 0, function() {
                    var e = this;
                    return s(this, function(t) {
                        switch (t.label) {
                            case 0:
                                return this._gameState == l.IsStart && this.PlayerAnimation.pause(), [4, g.UIUtlity.ShowHintPanel(null, "gameExitConfirm".ToUILocale(), "", function() {
                                    e._gameState == l.IsStart && e.PlayerAnimation.resume()
                                }, "", function() {
                                    c.UIManager.Instance.BackUIPanel()
                                })];
                            case 1:
                                return t.sent().DisableMaskClose(), [2]
                        }
                    })
                })
            }, t.prototype.OnCheckBtnClick = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return this._gameState == l.PlayingAni ? [2] : (this._gameState = l.PlayingAni, this.PlayerAnimation.pause(), (e = this.GetVecDistance(this.PlayerNode.position, this.CheckPoint.position) <= this._activityConfig.CustomPart.Distance) ? [4, g.UIUtlity.GetMultilangAtlas5Sprite("success")] : [3, 2]);
                            case 1:
                                return n = o.sent(), [3, 4];
                            case 2:
                                return [4, g.UIUtlity.GetMultilangAtlas5Sprite("lose")];
                            case 3:
                                n = o.sent(), o.label = 4;
                            case 4:
                                return t = n, this.isValid ? (this.CheckResultIcon.spriteFrame = t, e ? this._curTarget += 1 : this._curHp -= 1, this.RefreshHpInfo(), this.PlayResultAni(e), [2]) : [2]
                        }
                    })
                })
            }, t.prototype.GetVecDistance = function(e, t) {
                var n = cc.v2(e.x - t.x, e.y - t.y);
                return Math.sqrt(n.x * n.x + n.y * n.y)
            }, t.prototype.PlayResultAni = function(e) {
                var t = this;
                this.CheckResultIcon.node.active = !0, cc.Tween.stopAllByTarget(this.CheckResultIcon.node), this.CheckResultIcon.node.scale = 1, cc.tween(this.CheckResultIcon.node).to(.2, {
                    scale: 1.2
                }).to(.2, {
                    scale: 1
                }).call(function() {
                    t.CheckResultIcon.node.active = !1, t.CheckIsGameFinish() ? t._gameState = l.IsEnd : (t._gameState = l.IsStart, e ? (t.ShowNextCheckPoint(), t.ReverseMoveAnimation()) : t.PlayerAnimation.resume())
                }).start()
            }, t.prototype.ReverseMoveAnimation = function() {
                var e = this.PlayerAnimation.getAnimationState(this._moveAniName),
                    t = e.time;
                switch (e.wrapMode) {
                    case cc.WrapMode.PingPong:
                        Math.floor(t / e.duration) % 2 != 0 || (e.wrapMode = cc.WrapMode.PingPongReverse);
                        break;
                    case cc.WrapMode.PingPongReverse:
                        Math.floor(t / e.duration) % 2 != 0 || (e.wrapMode = cc.WrapMode.PingPong);
                        break;
                    case cc.WrapMode.Loop:
                        e.wrapMode = cc.WrapMode.LoopReverse;
                        break;
                    case cc.WrapMode.LoopReverse:
                        e.wrapMode = cc.WrapMode.Loop;
                        break;
                    default:
                        return void c.EZLog.Error("wrong Ani wrapMode! ", this._moveAniName)
                }
                this.PlayerAnimation.setCurrentTime(e.duration - t % e.duration), this.PlayerAnimation.resume()
            }, t.prototype.CheckIsGameFinish = function() {
                var e = this;
                if (this._curHp <= 0) return this._gameState = l.IsEnd, c.UIManager.Instance.ShowUIPanel(h.PanelConfig.RhythmSuccessPanel.Path, {
                    Result: f.RhythmGameResult.Lose,
                    ResultTarget: this._curTarget,
                    MaxTarget: this._levelConfig.Target,
                    OnReChallengeCallBack: this.StartCountDown.bind(this),
                    OnLeaveCallBack: function() {
                        e._gameState = l.None, c.UIManager.Instance.BackUIPanel()
                    }
                }), !0;
                if (this._curTarget == this._levelConfig.Target) {
                    if (this._gameState = l.IsEnd, this._isCompleted) this.ShowSuccessPanel();
                    else {
                        var t = u.Req_Activity_RhythmEnd.create();
                        t.ActivityId = this._activityConfig._id, t.Hp = this._curHp, t.Level = this._levelConfig.Id, d.RpcComponent.Instance.Call(t, function() {
                            e.ShowSuccessPanel()
                        })
                    }
                    return !0
                }
                return !1
            }, t.prototype.ShowSuccessPanel = function() {
                c.UIManager.Instance.ShowUIPanel(h.PanelConfig.RhythmSuccessPanel.Path, {
                    Result: f.RhythmGameResult.Success,
                    LeftHp: this._curHp,
                    MaxHp: this._levelConfig.Hp,
                    OnReChallengeCallBack: this.StartCountDown.bind(this)
                })
            }, t.prototype.OnRuleBtnClick = function() {
                var e = this;
                if (!this._guidleSpritePaths) {
                    this._guidleSpritePaths = [], this._guidleTipIds = [];
                    for (var t = 0; t < this._activityConfig.Tutorial.length; t++) this._guidleSpritePaths.push(this._activityConfig.Tutorial[t].Picture), this._guidleTipIds.push(this._activityConfig.Tutorial[t].LocaleId)
                }
                this._gameState == l.IsStart && this.PlayerAnimation.pause(), c.UIManager.Instance.ShowUIPanel(h.PanelConfig.RhythmTutorialPanel.Path, {
                    GuideSpritePaths: this._guidleSpritePaths,
                    TipIds: this._guidleTipIds,
                    ActivityLocale: this._activityConfig._Locale,
                    OnCloseCallBack: function() {
                        e._gameState == l.None ? e.StartCountDown() : e._gameState == l.IsStart && e.PlayerAnimation.resume()
                    },
                    ActivityId: this._activityConfig._id
                })
            }, i([_(cc.Sprite)], t.prototype, "PanelBg", void 0), i([_(cc.Sprite)], t.prototype, "MapBg", void 0), i([_(cc.Node)], t.prototype, "RuleBtn", void 0), i([_(cc.Label)], t.prototype, "PanelTitle", void 0), i([_(cc.Label)], t.prototype, "LevelLabel", void 0), i([_(cc.Node)], t.prototype, "CheckPoint", void 0), i([_(cc.Sprite)], t.prototype, "HpIcons", void 0), i([_(cc.Node)], t.prototype, "HpContainer", void 0), i([_(cc.Label)], t.prototype, "AimLabel", void 0), i([_(cc.Label)], t.prototype, "ProgressLabel", void 0), i([_(cc.Node)], t.prototype, "PosNode", void 0), i([_(cc.Node)], t.prototype, "PlayerNode", void 0), i([_(cc.Sprite)], t.prototype, "CheckResultIcon", void 0), i([_(cc.Animation)], t.prototype, "PlayerAnimation", void 0), i([_(cc.Sprite)], t.prototype, "PlayerIcon", void 0), i([_(cc.Button)], t.prototype, "ActionBtn", void 0), i([_(cc.Button)], t.prototype, "CloseBtn", void 0), i([_(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([_(cc.Node)], t.prototype, "CountDownMask", void 0), i([_(cc.Sprite)], t.prototype, "CountDownSprite", void 0), i([I], t)
        }(p.BaseUIFullScreenPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../Util/AppUtil": "AppUtil",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/Components": "Components",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "./RhythmSuccessPanel": "RhythmSuccessPanel"
    }],
    RhythmSuccessPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "08f984LzgNHJ7fgZlyBEgeu", "RhythmSuccessPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RhythmGameResult = void 0;
        var l, c = e("../../../EZFramework/EZFramework"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../Auxiliary/UIUtlity"),
            d = cc._decorator,
            h = d.ccclass,
            f = d.property;
        (function(e) {
            e[e.Success = 1] = "Success", e[e.Lose = 2] = "Lose"
        })(l = n.RhythmGameResult || (n.RhythmGameResult = {}));
        var y = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.Bg = null, t.MultiLangTitle = null, t.SuccessNode = null, t.StarContainer = null, t.StarIcons = [], t.HpContainer = null, t.HpIcons = [], t.LeftHpLabel = null, t.LoseNode = null, t.LoseAimLabel = null, t.LoseAimCountLabel = null, t.BackBtn = null, t.BackBtnLabel = null, t.ReChallengeBtn = null, t.ReChallengeBtnLabel = null, t.Atlas = null, t.CommonBgAtlas = null, t
            }
            return r(t, e), t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    return s(this, function() {
                        return e.prototype.Preload.call(this), [2]
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.BackBtnLabel.string = "win_return".ToUILocale(), this.ReChallengeBtnLabel.string = "reChallenge".ToUILocale(), this.LeftHpLabel.string = "hpLeft".ToUILocale(), this.BackBtn.node.on("click", this.OnBackBtnClick, this), this.ReChallengeBtn.node.on("click", this.OnReChallengeBtnClick, this)
            }, t.prototype.InitData = function(t) {
                switch (e.prototype.InitData.call(this), this._panelData = t[0], this._panelData.Result) {
                    case l.Success:
                        this.ShowSuccessPanel();
                        break;
                    case l.Lose:
                        this.LoseNode.active = !0, this.LoseAimLabel.string = "knife_target".ToUILocale() + " " + this._panelData.ResultTarget + "/" + this._panelData.MaxTarget, this.Bg.spriteFrame = this.CommonBgAtlas.getSpriteFrame("pop_bottom_fail"), this.MultiLangTitle.spriteFrame = p.UIUtlity.COMMON_ATLAS5.getSpriteFrame("defeat")
                }
            }, t.prototype.ShowSuccessPanel = function() {
                this.SuccessNode.active = !0;
                for (var e = 0; e < this._panelData.MaxHp; e++) {
                    var t = this.HpIcons[e];
                    t || ((n = cc.instantiate(this.HpIcons[0].node)).setParent(this.HpContainer), t = n.getComponent(cc.Sprite), this.HpIcons.push(t));
                    var n, o = this.StarIcons[e];
                    o || ((n = cc.instantiate(this.StarIcons[0].node)).setParent(this.StarContainer), o = n.getComponent(cc.Sprite), this.StarIcons.push(o)), e < this._panelData.LeftHp ? (t.spriteFrame = this.Atlas.getSpriteFrame("hp"), o.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_orange")) : (t.spriteFrame = this.Atlas.getSpriteFrame("emptyHp"), o.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("star_orange_bg"))
                }
                for (e = this._panelData.MaxHp; e < this.HpIcons.length; e++) this.HpIcons[e].node.active = !1, this.StarIcons[e].node.active = !1;
                this.Bg.spriteFrame = this.CommonBgAtlas.getSpriteFrame("pop_bottom_success"), this.MultiLangTitle.spriteFrame = p.UIUtlity.COMMON_ATLAS4.getSpriteFrame("victory")
            }, t.prototype.DisPlay = function(t) {
                e.prototype.DisPlay.call(this, t)
            }, t.prototype.OnBackBtnClick = function() {
                this._panelData.OnLeaveCallBack && this._panelData.OnLeaveCallBack(), c.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnReChallengeBtnClick = function() {
                this._panelData.OnReChallengeCallBack && this._panelData.OnReChallengeCallBack(), c.UIManager.Instance.BackUIPanel()
            }, i([f(cc.Sprite)], t.prototype, "Bg", void 0), i([f(cc.Sprite)], t.prototype, "MultiLangTitle", void 0), i([f(cc.Node)], t.prototype, "SuccessNode", void 0), i([f(cc.Node)], t.prototype, "StarContainer", void 0), i([f(cc.Sprite)], t.prototype, "StarIcons", void 0), i([f(cc.Node)], t.prototype, "HpContainer", void 0), i([f(cc.Sprite)], t.prototype, "HpIcons", void 0), i([f(cc.Label)], t.prototype, "LeftHpLabel", void 0), i([f(cc.Node)], t.prototype, "LoseNode", void 0), i([f(cc.Label)], t.prototype, "LoseAimLabel", void 0), i([f(cc.Label)], t.prototype, "LoseAimCountLabel", void 0), i([f(cc.Button)], t.prototype, "BackBtn", void 0), i([f(cc.Label)], t.prototype, "BackBtnLabel", void 0), i([f(cc.Button)], t.prototype, "ReChallengeBtn", void 0), i([f(cc.Label)], t.prototype, "ReChallengeBtnLabel", void 0), i([f(cc.SpriteAtlas)], t.prototype, "Atlas", void 0), i([f(cc.SpriteAtlas)], t.prototype, "CommonBgAtlas", void 0), i([h], t)
        }(u.BaseUIPanel);
        n.default = y, cc._RF.pop()
    }, {
        "../../../EZFramework/EZFramework": "EZFramework",
        "../Auxiliary/UIUtlity": "UIUtlity"
    }],
    RhythmTaskItem: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "0f8172piltLZpE8abhX3n6Z", "RhythmTaskItem");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.RhythmTaskState = void 0;
        var a, s = e("../../../EZFramework/EZFramework"),
            l = e("../../../../Proto/Static/RpcProto"),
            c = e("../../Components/RpcComponent"),
            u = e("../../../EZFramework/EZFramework"),
            p = e("../../Auxiliary/GlobalDefine"),
            d = e("../Components/ItemComponent"),
            h = e("../../Auxiliary/EventKeys"),
            f = cc._decorator,
            y = f.ccclass,
            g = f.property;
        (function(e) {
            e[e.CanGet = 1] = "CanGet", e[e.UnComplete = 0] = "UnComplete", e[e.Completed = 2] = "Completed"
        })(a = n.RhythmTaskState || (n.RhythmTaskState = {}));
        var m = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.HpRequireLabel = null, t.StarNodes = [], t.RewardContainer = null, t.GetBtn = null, t.GetBtnLabel = null, t.UnCompleteBtn = null, t.UnCompleteBtnLabel = null, t.CompleteTag = null, t._rewardItems = [], t
            }
            return r(t, e), t.prototype.onEnable = function() {
                s.Game.EventDispatcher.On(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.onDisable = function() {
                s.Game.EventDispatcher.Off(h.EventKeys.EVENT_ITEM_CLICK, this.OnItemClick, this)
            }, t.prototype.Init = function(e, t, n, o, r, i) {
                switch (this._itemPrefab = e, this._activityId = t, this._level = o, this._hpValue = n, this._isInit || (this._isInit = !0, this.GetBtn.node.on("click", this.OnGetBtnClick, this), this.GetBtnLabel.string = "receive".ToUILocale(), this.UnCompleteBtnLabel.string = "mall_notReach".ToUILocale()), this.HpRequireLabel.string = "hpLeftCount".ToUILocale().Fmt(n), this.SetStar(), this.ResetState(), i) {
                    case a.CanGet:
                        this.GetBtn.node.active = !0;
                        break;
                    case a.Completed:
                        this.CompleteTag.active = !0;
                        break;
                    case a.UnComplete:
                        this.UnCompleteBtn.node.active = !0
                }
                this.ConfigReward(r, i == a.Completed)
            }, t.prototype.ConfigReward = function(e, t) {
                for (var n = 0, o = 0; o < e.length; o += 2) {
                    var r = e[o],
                        i = e[o + 1],
                        a = this._rewardItems[n];
                    if (!a) {
                        var s = cc.instantiate(this._itemPrefab);
                        s.setParent(this.RewardContainer), a = s.getComponent(d.ItemComponent), this._rewardItems.push(a)
                    }
                    a.node.active = !0, a.Init({
                        ItemId: r,
                        Count: i
                    }), a.SetReceivedTagState(t), n += 1
                }
                for (o = n; o < this._rewardItems.length; o++) this._rewardItems[o].node.active = !1
            }, t.prototype.ResetState = function() {
                this.GetBtn.node.active = !1, this.CompleteTag.active = !1, this.UnCompleteBtn.node.active = !1
            }, t.prototype.SetStar = function() {
                for (var e = 0; e < this._hpValue; e++) {
                    var t = this.StarNodes[e];
                    t || ((t = cc.instantiate(this.StarNodes[0])).setParent(this.StarNodes[0].parent), this.StarNodes.push(t)), t.active = !0
                }
                for (e = this._hpValue; e < this.StarNodes.length; e++) this.StarNodes[e].active = !1
            }, t.prototype.OnGetBtnClick = function() {
                var e = l.Req_Activity_RhythmReward.create();
                e.ActivityId = this._activityId, e.Level = this._level, e.Hp = this._hpValue, c.RpcComponent.Instance.Call(e, function(e) {
                    u.UIManager.Instance.ShowUIPanel(p.PanelConfig.DisplayRewardsPanel.Path, e.Rewards)
                })
            }, t.prototype.OnItemClick = function(e, t) {
                -1 != this.RewardContainer.children.indexOf(t) && t.getComponent(d.ItemComponent).ShowItemTip()
            }, i([g(cc.Label)], t.prototype, "HpRequireLabel", void 0), i([g(cc.Node)], t.prototype, "StarNodes", void 0), i([g(cc.Node)], t.prototype, "RewardContainer", void 0), i([g(cc.Button)], t.prototype, "GetBtn", void 0), i([g(cc.Label)], t.prototype, "GetBtnLabel", void 0), i([g(cc.Button)], t.prototype, "UnCompleteBtn", void 0), i([g(cc.Label)], t.prototype, "UnCompleteBtnLabel", void 0), i([g(cc.Node)], t.prototype, "CompleteTag", void 0), i([y], t)
        }(cc.Component);
        n.default = m, cc._RF.pop()
    }, {
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Components/RpcComponent": "RpcComponent",
        "../Components/ItemComponent": "ItemComponent"
    }],
    RhythmTutorialPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "76b52LxkPVH876h2bnJxKSE", "RhythmTutorialPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var l = e("../../../EZFramework/EZFramework"),
            c = e("../../Components/DataCenter"),
            u = e("../Components/LoadAssetHelper"),
            p = e("../../../ShareConsts/EnumType"),
            d = e("../../Auxiliary/EventKeys"),
            h = e("../../../EZFramework/EZFramework"),
            f = e("../Components/GameModuleGuideManager"),
            y = e("../../../../Proto/Static/ConfigProto"),
            g = e("../../Components/Components"),
            m = cc._decorator,
            I = m.ccclass,
            _ = m.property,
            C = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.UIType = new l.UIPanelType(l.UINodeType.Fixed, !1), t.ScrollView = null, t.GuideSprite = null, t.Tip = null, t.LeftArrowBtn = null, t.RightArrowBtn = null, t.ToggleContainer = null, t.Toggles = [], t.LoadAssetHelper = null, t._curShowingIndex = 0, t._moduleGuideGroupIds = {}, t._guideStepIndex = 0, t
                }
                return r(t, e), t.prototype.onEnable = function() {
                    h.Game.EventDispatcher.On(d.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.onDisable = function() {
                    h.Game.EventDispatcher.Off(d.EventKeys.EVENT_GAMEMODULEGUID_CLICKNEXT, this.ShowGameGuid, this)
                }, t.prototype.Preload = function() {
                    return a(this, void 0, Promise, function() {
                        return s(this, function() {
                            return e.prototype.Preload.call(this), [2]
                        })
                    })
                }, t.prototype.InitUI = function() {
                    e.prototype.InitUI.call(this), this.LeftArrowBtn.node.on("click", this.OnLeftArrowBtnClick, this), this.RightArrowBtn.node.on("click", this.OnRightArrowBtnClick, this)
                }, t.prototype.InitData = function(t) {
                    e.prototype.InitData.call(this), this._customData = t[0]
                }, t.prototype.DisPlay = function(t) {
                    e.prototype.DisPlay.call(this, t), t || (this.SetModuleGuideGroupIds(), this.SetCurGuideSprite(), this.RefreshToggleState(), this.ShowGameGuid())
                }, t.prototype.SetModuleGuideGroupIds = function() {
                    var e;
                    this._moduleGuideGroupIds = ((e = {})[p.ActivityType.AssaultOperation] = [10033], e)
                }, t.prototype.RefreshToggleState = function() {
                    for (var e = this._customData.GuideSpritePaths.length, t = 0; t < e; t++) {
                        var n = this.Toggles[t];
                        if (!n) {
                            var o = cc.instantiate(this.Toggles[0].node);
                            o.setParent(this.ToggleContainer), n = o.getComponent(cc.Toggle), this.Toggles.push(n)
                        }
                    }
                }, t.prototype.SetCurGuideSprite = function() {
                    var e = this,
                        t = this._customData.GuideSpritePaths[this._curShowingIndex],
                        n = this._customData.TipIds[this._curShowingIndex];
                    this.Tip.string = this.GetMulitLableContent(n), this.scheduleOnce(function() {
                        e.Tip.node.height > e.ScrollView.node.height ? e.ScrollView.enabled = !0 : (e.ScrollView.enabled = !1, e.Tip.node.y = 0)
                    }), t && this.LoadAssetHelper.LoadSpriteFrame(t, this.GuideSprite, null, null, !0), this.SetArrowBtnState(), this.Toggles[this._curShowingIndex].isChecked = !0
                }, t.prototype.SetArrowBtnState = function() {
                    this._curShowingIndex <= 0 ? this.LeftArrowBtn.node.active = !1 : this.LeftArrowBtn.node.active = !0;
                    var e = this._customData.GuideSpritePaths.length;
                    this._curShowingIndex < e - 1 ? this.RightArrowBtn.node.active = !0 : this.RightArrowBtn.node.active = !1
                }, t.prototype.OnLeftArrowBtnClick = function() {
                    this._curShowingIndex <= 0 || (this._curShowingIndex -= 1, this.SetCurGuideSprite())
                }, t.prototype.OnRightArrowBtnClick = function() {
                    var e = this._customData.GuideSpritePaths.length;
                    this._curShowingIndex >= e - 1 || (this._curShowingIndex += 1, this.SetCurGuideSprite())
                }, t.prototype.GetMulitLableContent = function(e) {
                    var t = this;
                    return this._labelContetnMap || (this._labelContetnMap = {}, this._customData.ActivityLocale.forEach(function(e) {
                        t._labelContetnMap[e.Id] = e
                    })), this._labelContetnMap[e].Content
                }, t.prototype.onDestroy = function() {
                    this._customData.OnCloseCallBack && this._customData.OnCloseCallBack()
                }, t.prototype.ShowGameGuid = function(e) {
                    if (!e || e == this._guideGroupId) {
                        var t = [];
                        if (this._customData.ActivityId) {
                            var n = c.DataCenter.Instance.ActivityConfigs[this._customData.ActivityId];
                            if ((t = this._moduleGuideGroupIds[n.Common.Type]) && !(t.length <= 0)) {
                                var o = f.default.Instance.GetCurrentGroupId(t, e);
                                if (!(o <= 0)) {
                                    this._guideGroupId && this._guideGroupId == o || (this._guideGroupId = o, this._guideStepIndex = 0);
                                    var r = g.ConfigDataComponent.Instance.GetConfigById(y.GameModuleGuideGroup_Config, this._guideGroupId);
                                    if (r)
                                        for (var i = 0; i < r.GameModuleGuideStepIds.length; i++) {
                                            var a = !0;
                                            switch (r.GameModuleGuideStepIds[this._guideStepIndex]) {
                                                case 83:
                                                    this.RightArrowBtn.node.active && (f.default.Instance.DoGuideJob(this._guideGroupId, this._guideStepIndex, this.RightArrowBtn.node, !1, !0), this._guideStepIndex--);
                                                    break;
                                                default:
                                                    a = !1
                                            }
                                            if (this._guideStepIndex++, a) break
                                        }
                                }
                            }
                        }
                    }
                }, i([_(cc.ScrollView)], t.prototype, "ScrollView", void 0), i([_(cc.Sprite)], t.prototype, "GuideSprite", void 0), i([_(cc.Label)], t.prototype, "Tip", void 0), i([_(cc.Button)], t.prototype, "LeftArrowBtn", void 0), i([_(cc.Button)], t.prototype, "RightArrowBtn", void 0), i([_(cc.Node)], t.prototype, "ToggleContainer", void 0), i([_(cc.Toggle)], t.prototype, "Toggles", void 0), i([_(u.default)], t.prototype, "LoadAssetHelper", void 0), i([I], t)
            }(l.BaseUIPanel);
        n.default = C, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../../ShareConsts/EnumType": "EnumType",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Components/Components": "Components",
        "../../Components/DataCenter": "DataCenter",
        "../Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../Components/LoadAssetHelper": "LoadAssetHelper"
    }],
    RichtextTypeWriter: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a5070reSD9IE7Vfj+tUo0Qf", "RichtextTypeWriter");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.TypeWritePlayingState = void 0;
        var a, s = cc._decorator,
            l = s.ccclass;
        s.property,
            function(e) {
                e[e.Playing = 0] = "Playing", e[e.End = 1] = "End"
            }(a = n.TypeWritePlayingState || (n.TypeWritePlayingState = {}));
        var c = function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            return r(t, e), t.prototype.onLoad = function() {
                this._richText = this.node.getComponent(cc.RichText)
            }, t.prototype.Play = function(e, t, n) {
                var o = this;
                void 0 === t && (t = null), void 0 === n && (n = 400), this._richText.node.destroyAllChildren(), this._richText.string = e;
                var r = this._richText._labelSegments;
                this.StopAllTween();
                var i = 0;
                this.PlayingState = a.Playing;
                for (var s = 0; s < r.length; s++) {
                    var l = r[s],
                        c = new cc.Node("Mask_" + s),
                        u = c.addComponent(cc.Mask);
                    c.anchorX = l.anchorX, c.anchorY = l.anchorY, 0 == this._richText.node.anchorX ? c.x = l.x + this._richText.node.width / 2 : c.x = l.x, .5 == this._richText.node.anchorY ? c.y = l.y : c.y = l.y - this._richText.node.height / 2, c.setContentSize(l.getContentSize()), l.setParent(c), c.setParent(this._richText.node), l.x = l.y = 0, l.anchorX = l.anchorY = .5;
                    var p = c.width,
                        d = p / n;
                    this._allTypeWriters.push({
                        Mask: u,
                        Animation: cc.tween(c).delay(i).to(d, {
                            width: p
                        })
                    }), i += d
                }
                this._richText.node.scale = 0, this._richText.string = "", this.scheduleOnce(function() {
                    for (var e = function(e) {
                            o._allTypeWriters[e].Mask.node.width = 0, o._allTypeWriters[e].Animation.call(function() {
                                e == o._allTypeWriters.length - 1 && t && (o.PlayingState = a.End, t())
                            }).start()
                        }, n = 0; n < o._allTypeWriters.length; n++) e(n);
                    o._richText.node.scale = 1
                }, 0)
            }, t.prototype.Stop = function() {
                this.StopAllTween(), this.PlayingState = a.End
            }, t.prototype.StopAllTween = function() {
                if (this._allTypeWriters) {
                    for (var e = 0; e < this._allTypeWriters.length; e++) this._allTypeWriters[e].Mask.enabled = !1, this._allTypeWriters[e].Animation.stop();
                    this._allTypeWriters = []
                } else this._allTypeWriters = []
            }, t.prototype.onDisable = function() {
                this.StopAllTween()
            }, i([l], t)
        }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    RiskPortPanel: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "af75d4Bn2hMJpTZu5ezDysk", "RiskPortPanel");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            },
            a = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            s = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.HolyAreaOpenState = void 0;
        var l, c, u = e("../../../EZFramework/EZFramework"),
            p = e("../Auxiliary/UIUtlity"),
            d = e("../../../../Proto/Static/RpcProto"),
            h = e("../../../../Proto/Static/ConfigProto"),
            f = e("../../Components/Components"),
            y = e("../../../Consts/Consts"),
            g = e("../../Auxiliary/GlobalDefine"),
            m = e("../../Components/Components"),
            I = e("../../Auxiliary/EventKeys"),
            _ = e("../../RedDot/RedDotManager"),
            C = e("../../Auxiliary/DataUtlity"),
            v = e("../Battle/BattleManager"),
            b = e("../../Auxiliary/GuideManager"),
            S = e("../../Auxiliary/ModuleGuideManager"),
            w = e("../../../Consts/Consts"),
            P = e("./HolyRelicsPanel"),
            A = e("./HolyRelicProgressComponent"),
            T = e("../Battle/BattleData"),
            R = e("../Components/GameUnlockFingerListener"),
            L = cc._decorator,
            k = L.ccclass,
            O = L.property;
        (function(e) {
            e[e.Upgrade = 0] = "Upgrade", e[e.Normal = 1] = "Normal", e[e.Downgrade = 2] = "Downgrade"
        })(l = n.HolyAreaOpenState || (n.HolyAreaOpenState = {})),
        function(e) {
            e[e.RelicTreasure = 0] = "RelicTreasure", e[e.SecretArea = 1] = "SecretArea", e[e.AncientSacred = 2] = "AncientSacred", e[e.SaintsWar = 3] = "SaintsWar", e[e.HolylRlic = 4] = "HolylRlic", e[e.AngelPve = 5] = "AngelPve"
        }(c || (c = {}));
        var M = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.UIType = new u.UIPanelType(u.UINodeType.Fixed), t.TitleLabel = null, t.RemainderDiceNumberLabel = null, t.HolyRelicsTimes = null, t.SecretRemainderTimeRichText = null, t.SecretCurrentLevelRichText = null, t.AcientRemainderTimeRichText = null, t.AcientInformationRichText = null, t.AcientInBattleEffect = null, t.AngelPveLevelRichText = null, t.SecretAreaTitleSprite = null, t.RelicTreasureTitleSprite = null, t.SaintsWarTitleSprite = null, t.AcientHollyTitleSprite = null, t.HollyRelicTitleSprite = null, t.ReturnButton = null, t.RelicTreasureNode = null, t.SecretAreaNode = null, t.AcientHolyNode = null, t.SaintsWarNode = null, t.HolyRelicNode = null, t.AngelPveNode = null, t.HolyRelicProgressContainer = null, t.SaintsWarTimeRichtext = null, t.Masks = [], t.MaskLabels = [], t.UnMasks = [], t.SetGrayNodes = [], t.EnterNodes = [], t.Scroview = null, t._diceIndex = 41, t._holyAreaUserData = null, t._ancientSacredConfig = null, t._layerMaxCount = 0, t._maxHighestMap = 0, t._holyRelicProgressList = [], t.GameUnlockSteps = {
                    0: [12],
                    1: [],
                    2: [],
                    3: [22],
                    4: [30],
                    5: []
                }, t._typeArray = [y.GameModuleType.RelicTreasureHunt, y.GameModuleType.SecretAreaExplore, y.GameModuleType.AncientSacred, y.GameModuleType.SaintsWar, y.GameModuleType.Artifact, y.GameModuleType.AngelPve], t
            }
            var n;
            return r(t, e), n = t, t.prototype.onEnable = function() {
                u.Game.EventDispatcher.On(I.EventKeys.EVENT_RISKPORT_MODULECLOSE, this.DisPlay, this), u.Game.EventDispatcher.On(y.GameEventIds.AddDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), u.Game.EventDispatcher.On(y.GameEventIds.ChangeDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), u.Game.EventDispatcher.On(y.GameEventIds.RemoveDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
            }, t.prototype.onDisable = function() {
                u.Game.EventDispatcher.Off(I.EventKeys.EVENT_RISKPORT_MODULECLOSE, this.DisPlay), u.Game.EventDispatcher.Off(y.GameEventIds.AddDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), u.Game.EventDispatcher.Off(y.GameEventIds.ChangeDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this), u.Game.EventDispatcher.Off(y.GameEventIds.RemoveDataDetail.Fmt(d.UserSimpleData_Model._n_), this.OnSimpleDataChage, this)
            }, t.prototype.OnSimpleDataChage = function(e) {
                var t;
                for (var n in e)
                    if (parseInt(n) == y.UserDataKey.GameModulePopGuide) {
                        t = !0;
                        break
                    } t && this.ShowAllGameUnlockFinger()
            }, t.prototype.Preload = function() {
                return a(this, void 0, Promise, function() {
                    var t;
                    return s(this, function(n) {
                        switch (n.label) {
                            case 0:
                                return e.prototype.Preload.call(this), [4, this.LoadDynamicAsset(f.GlobalConfigComponent.GetMultilangKey(g.BundlePath.MultilangAtlasHighSchool), cc.SpriteAtlas)];
                            case 1:
                                return t = n.sent(), this.SecretAreaTitleSprite.spriteFrame = t.getSpriteFrame("SecretAreaExplore"), this.RelicTreasureTitleSprite.spriteFrame = t.getSpriteFrame("RelicTreasureHunt"), this.AcientHollyTitleSprite.spriteFrame = t.getSpriteFrame("AcientHolly"), this.SaintsWarTitleSprite.spriteFrame = t.getSpriteFrame("SaintsWar"), this.HollyRelicTitleSprite.spriteFrame = t.getSpriteFrame("HollyRelic"), [2]
                        }
                    })
                })
            }, t.prototype.InitUI = function() {
                e.prototype.InitUI.call(this), this.TitleLabel.string = "riskPort".ToUILocale(), this.onEvent()
            }, t.prototype.DisPlay = function() {
                e.prototype.DisPlay.call(this), this.BindRedDot(), this.SetModuleState(), this.GetDataForUI(), this.ShowModuleGuide(), this.ShowAllGameUnlockFinger(!1)
            }, t.prototype.ShowModuleGuide = function() {
                if (!b.default.Instance.IsInGuide) {
                    var e = S.default.instance.GetNextGuideModule();
                    e > 0 && e == w.GameModuleType.RelicTreasureHunt ? S.default.instance.AddFingerNode(this.RelicTreasureNode) : S.default.instance.RemoveFingerNode(this.RelicTreasureNode), e > 0 && 5006 == e ? S.default.instance.AddFingerNode(this.AcientHolyNode) : S.default.instance.RemoveFingerNode(this.AcientHolyNode), C.default.Instance.IsGameModuleOpen(y.GameModuleType.SaintsWar) && (e > 0 && e == w.GameModuleType.SaintsWar ? S.default.instance.AddFingerNode(this.SaintsWarNode) : S.default.instance.RemoveFingerNode(this.SaintsWarNode))
                }
            }, t.prototype.BindRedDot = function() {
                _.RedDotManager.Instance.Bind(this.AcientHolyNode, _.RedDotManager.Instance.RedDot.RiskPortAncientBtnNode, -32, -45), _.RedDotManager.Instance.Bind(this.RelicTreasureNode, _.RedDotManager.Instance.RedDot.RiskPortRelicBtnNode, -32, -45), _.RedDotManager.Instance.Bind(this.SecretAreaNode, _.RedDotManager.Instance.RedDot.RiskPortSecretBtnNode, -32, -45), _.RedDotManager.Instance.Bind(this.HolyRelicNode, _.RedDotManager.Instance.RedDot.RiskPortHolyRelic, -32, -45), _.RedDotManager.Instance.Bind(this.AngelPveNode, _.RedDotManager.Instance.RedDot.RiskPortAngelPve, 0, 0), C.default.Instance.IsGameModuleOpen(y.GameModuleType.SaintsWar) && _.RedDotManager.Instance.Bind(this.SaintsWarNode, _.RedDotManager.Instance.RedDot.RiskPortSaintsWarBtnNode, -32, -45)
            }, t.prototype.SetModuleState = function() {
                for (var e = 0; e < this.Masks.length; e++) {
                    var t = C.default.Instance.IsGameModuleUnlock(this._typeArray[e]);
                    if (4 == e) {
                        var n = C.default.Instance.IsGameModuleOpen(y.GameModuleType.Artifact);
                        this.Masks[e].parent.active = n
                    } else 5 == e ? (n = C.default.Instance.IsGameModuleOpen(y.GameModuleType.AngelPve), this.Masks[e].parent.active = n) : 3 == e && (n = C.default.Instance.IsGameModuleOpen(y.GameModuleType.SaintsWar), this.Masks[e].parent.active = n);
                    this.Masks[e].active = !t[0], this.UnMasks[e].active = t[0], t[0] || (this.MaskLabels[e].string = t[1]), this.SetGrayNodes[e] && (t[0] ? p.UIUtlity.OffNodeGray(this.SetGrayNodes[e]) : p.UIUtlity.OnNodeGray(this.SetGrayNodes[e]))
                }
            }, t.prototype.GetDataForUI = function() {
                var e = this;
                if (this.UnMasks[0].active) {
                    var t = new d.Req_Relic_GetMap;
                    f.RpcComponent.Instance.Call(t, function() {
                        var t = f.DataCenter.Instance.GetItemCount(e._diceIndex);
                        e.RemainderDiceNumberLabel.string = "riskport_diceRemainder".ToUILocale().Fmt(t)
                    })
                }
                if (this.UnMasks[1].active) {
                    this._secretModel = f.DataCenter.Instance.GetDataById(d.SecretAreaExplore_Model, 1);
                    var n = this._secretModel.Index;
                    this.SecretCurrentLevelRichText.string = n > 3 ? "riskport_rewardStage".ToUILocale() : n > 0 ? "riskport_currentStage".ToUILocale().Fmt(n, 3) : "secretArea_doneAllStage".ToUILocale();
                    var o = f.RpcComponent.Instance.ServerTime;
                    this._timeTag = this._secretModel.ResetTime + 2 * y.Etc.DayDuration - o, this.RefreshSecretTime(), this.SetSecretTime()
                }
                this.UnMasks[2].active && this.CheckHintShow(), this.UnMasks[3].active && C.default.Instance.IsGameModuleOpen(y.GameModuleType.SaintsWar) && this.ConfigSaintsWar(), this.UnMasks[4].active && this.ConfigHolyRelic(), this.UnMasks[5].active && this.ConfigAngelPve()
            }, t.prototype.CheckHintShow = function() {
                this._holyAreaState = l.Normal, this.LoadUserData();
                var e = m.ConfigDataComponent.Instance.GetConfigById(h.AncientSacredMap_Config, this._holyAreaUserData.MapLevelId),
                    t = e.MonsterType[e.MonsterType.length - 1].Items[0];
                if (this._holyAreaUserData.Monsters && 0 != this._holyAreaUserData.Monsters.length) this.RequestEnterHolyArea();
                else {
                    if (this.CheckIsHighestMap()) return void this.RequestEnterHolyArea();
                    for (var n = !0, o = 0; o < this._holyAreaUserData.Maps.length; o++)
                        if (7 != this._holyAreaUserData.Maps[o]) {
                            n = !1;
                            break
                        } var r = this._holyAreaUserData.MapLevelId + 1,
                        i = m.ConfigDataComponent.Instance.GetConfigById(h.AncientSacredMap_Config, r);
                    this._holyAreaUserData.Maps.length == t && n && i ? this._holyAreaState = l.Upgrade : (this._holyAreaUserData.Maps.length < t || !n) && 1 != this._holyAreaUserData.MapLevelId && (this._holyAreaState = l.Downgrade), this._holyAreaState == l.Normal ? (this.LoadConfig(), this.SetHolyAreaInfo(), this.SetAncientTime()) : (this.SetAncientTime(), this.AcientInformationRichText.string = "<outline width=3 color=#202434><color=#6EEEA7>" + "holyArea_previous_mapId".ToUILocale().Fmt(this._holyAreaUserData.MapLevelId) + "</c>")
                }
            }, t.prototype.CheckIsHighestMap = function() {
                if (!this._maxHighestMap) {
                    var e = 0;
                    m.ConfigDataComponent.Instance.GetArrayConfig(h.AncientSacredMap_Config).forEach(function(t) {
                        e = Math.max(t.Id, e)
                    });
                    var t = m.ConfigDataComponent.Instance.GetConfigById(h.AncientSacredMap_Config, e);
                    this._maxHighestMap = 3 * t.MonsterType.length + 100 * e
                }
                return this._holyAreaUserData.HighestMap > 0 && this._holyAreaUserData.HighestMap == this._maxHighestMap
            }, t.prototype.RequestUpgradeHolyArea = function() {
                var e = new d.Req_Ancient_Enter;
                e.Type = 0, m.RpcComponent.Instance.Call(e, this.RefreshHolyAreaInfo.bind(this))
            }, t.prototype.RequestDowngradeHolyArea = function() {
                var e = this;
                p.UIUtlity.ShowHintPanel("", "holyArea_lower_hint".ToUILocale(), "", null, "", function() {
                    var t = new d.Req_Ancient_Enter;
                    t.Type = 2, m.RpcComponent.Instance.Call(t, e.RefreshHolyAreaInfo.bind(e))
                })
            }, t.prototype.RequestCurrentHolyArea = function() {
                var e = new d.Req_Ancient_Enter;
                e.Type = 1, m.RpcComponent.Instance.Call(e, this.RefreshHolyAreaInfo.bind(this))
            }, t.prototype.RefreshHolyAreaInfo = function() {
                this.LoadUserData(), this.LoadConfig(), this.SetHolyAreaInfo(), this.ShowHolyAreaMainPanel()
            }, t.prototype.RequestEnterHolyArea = function() {
                var e = new d.Req_Ancient_Enter;
                e.Type = 0, m.RpcComponent.Instance.Call(e, this.ResponseEnterHolyAreaSuccess.bind(this))
            }, t.prototype.ResponseEnterHolyAreaSuccess = function() {
                this.LoadUserData(), this.LoadConfig(), this.SetHolyAreaInfo(), this.SetAncientTime()
            }, t.prototype.LoadUserData = function() {
                this._holyAreaUserData = m.DataCenter.Instance.GetDataById(d.AncientSacred_Model, 1)
            }, t.prototype.LoadConfig = function() {
                this._ancientSacredConfig = m.ConfigDataComponent.Instance.GetConfigById(h.AncientSacredMap_Config, this._holyAreaUserData.MapLevelId), this._layerMaxCount = this._ancientSacredConfig.MonsterType[this._ancientSacredConfig.MonsterType.length - 1].Items[0]
            }, t.prototype.SetHolyAreaInfo = function() {
                var e = "holyArea_difficulty".ToUILocale().Fmt(this._holyAreaUserData.MapLevelId),
                    t = this._holyAreaUserData.Maps.length - 1,
                    n = this._layerMaxCount;
                n == this._holyAreaUserData.Maps.length && this._holyAreaUserData.Maps[this._holyAreaUserData.Maps.length - 1] > 0 && (t = n);
                var o = "" + "checkpoint".ToUILocale() + t + "/" + n;
                this.AcientInformationRichText.string = "<outline width=3 color=#202434><color=#ffffff>" + e + "</c><color=#fed94a>" + o + "</c></outline>", this.AcientInBattleEffect.active = !1, v.BattleManager.Instance.IsInBattle(y.MapType.AncientSacred) && (this.AcientInBattleEffect.active = !0)
            }, t.prototype.SetSecretTime = function() {
                this.unschedule(this.RefreshSecretTime), this.schedule(this.RefreshSecretTime, 1)
            }, t.prototype.RefreshSecretTime = function() {
                var e, t = f.RpcComponent.Instance.ServerTime;
                if (this._timeTag = this._secretModel.ResetTime + 2 * y.Etc.DayDuration - t, this._timeTag > y.Etc.DayDuration) {
                    var n = this._timeTag % y.Etc.DayDuration;
                    n = Math.floor(n / y.Etc.HourDuration);
                    var o = Math.floor(this._timeTag / y.Etc.DayDuration);
                    e = "timeFormat_DayAndHour".ToUILocale().Fmt(o, n)
                } else e = this._timeTag.FmtRemainTime();
                this.SecretRemainderTimeRichText.string = "<outline width=3 color=#202434><color=#ffffff>" + "explore_time".ToUILocale().Fmt("<color=#6EEEA7>" + e + "</c>") + "</color></outline>"
            }, t.prototype.SetAncientTime = function() {
                this.SetTimeTag(), this.SetResetTime()
            }, t.prototype.SetResetTime = function() {
                var e = this;
                this.unschedule(this.SetTimeTag), this.schedule(function() {
                    e.SetTimeTag()
                }, 1)
            }, t.prototype.SetTimeTag = function() {
                var e, t = m.RpcComponent.Instance.ServerTime,
                    n = this._holyAreaUserData.ResetTime + 2 * y.Etc.DayDuration - t;
                if (n > y.Etc.DayDuration) {
                    var o = n % y.Etc.DayDuration;
                    o = Math.floor(o / y.Etc.HourDuration);
                    var r = Math.floor(n / y.Etc.DayDuration);
                    e = "timeFormat_DayAndHour".ToUILocale().Fmt(r, o)
                } else e = n.FmtRemainTime();
                this.AcientRemainderTimeRichText.string = "<outline width=3 color=#202434><color=#ffffff>" + "holyArea_timeRemainderOnlyHours".ToUILocale().Fmt("<color=#6EEEA7>" + e + "</c>") + "</c></outline>"
            }, t.prototype.onEvent = function() {
                var e = this;
                this.ReturnButton.node.on("click", this.OnReturnButtonClick, this), this.RelicTreasureNode.on("click", this.OnRelicModuleTouch, this), this.SecretAreaNode.on(cc.Node.EventType.TOUCH_END, this.OnSecretModuleTouch, this), this.AcientHolyNode.on(cc.Node.EventType.TOUCH_END, this.OnHolyAreaModuleTouch, this), this.SaintsWarNode.on("click", this.OnSaintsWarTouch, this), this.HolyRelicNode.on("click", this.OnHolyRelicTouch, this), this.AngelPveNode.on(cc.Node.EventType.TOUCH_END, this.OnAngelPveTouch, this), this.Masks.forEach(function(t) {
                    t.on(cc.Node.EventType.TOUCH_END, e.OnMaskTouch, e)
                })
            }, t.prototype.OnReturnButtonClick = function() {
                u.UIManager.Instance.BackUIPanel()
            }, t.prototype.OnRelicModuleTouch = function() {
                u.UIManager.Instance.ShowUIPanel(g.PanelConfig.RelicTreasureHuntPanel.Path), this.DelayClose()
            }, t.prototype.OnSecretModuleTouch = function() {
                var e = this,
                    t = f.DataCenter.Instance.GetDataById(d.SecretAreaExplore_Model, 1),
                    n = f.ConfigDataComponent.Instance.GetConfigById(h.SecretAreaMap_Config, t.Index);
                if (null != n) {
                    var o = new d.Req_Secret_GetMap;
                    f.RpcComponent.Instance.Call(o, function(t) {
                        u.UIManager.Instance.ShowUIPanel(g.PanelConfig.CloudsTurnPanel.Path, function() {
                            e.Close(), u.UIManager.Instance.ShowUIPanel(g.PanelConfig.SecretAreaExplorePanel.Path, t, n.Type == y.SecretAreaMapType.Reward)
                        })
                    })
                } else p.UIUtlity.ShowFloatingHint("secretArea_moduleClose".ToUILocale())
            }, t.prototype.ConfigSaintsWar = function() {
                var e = m.DataCenter.Instance.GetDataList(d.SaintsWar_Model),
                    t = cc.find("Layout", this.UnMasks[3]),
                    n = "<outline color=#202434 width=3><color=#6EEEA7>" + (m.DataCenter.Instance.GetIntData(y.UserDataKey.SaintsWarDifficultyLevel) || 1).ToSaintsWarDifficultName() + "</color></outline>";
                cc.find("UnMasked/DifficultBg/DifficultLevel", this.SaintsWarNode).getComponent(cc.RichText).string = "<outline color=#202434 width=3>" + "saintsWar_difficultLevel".ToUILocale().Fmt(n) + "</outline>";
                var o = m.ConfigDataComponent.Instance.GetIntGlobalSettingByKey("SaintsWarMaxBattleCountDaily"),
                    r = C.default.Instance.GetSaintsWarLuckyHeroIds(),
                    i = [1, 2, 3];
                if (r)
                    for (var a = 0; a < r.length; a++) {
                        var s = m.ConfigDataComponent.Instance.GetConfigById(h.HeroBase_Config, r[a]);
                        i[a] = s.ElementType
                    }
                for (a = 0; a < e.length; a++) {
                    var l = t.children[a];
                    cc.find("CommonLongLabelRollComponent/Tag", l).getComponent(cc.Label).string = ("saintsWar_mapName_" + i[a]).ToUILocale();
                    var c = o - e[a].BattleCount;
                    cc.find("Progress", l).getComponent(cc.RichText).string = "<outline width=3 color=#202434><color=#6EEEA7>" + c + "</c>/" + o + "</outline>"
                }
                this._saintsWarResetTime = C.default.GetNextMonday0ClockTs(), this.ConfigSaintWarTime(), this.unschedule(this.ConfigSaintWarTime), this.schedule(this.ConfigSaintWarTime, 1)
            }, t.prototype.ConfigHolyRelic = function() {
                return a(this, void 0, void 0, function() {
                    var e, t, n = this;
                    return s(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return e = P.HolyRelicsData.GetLeftTimes(), this.HolyRelicsTimes.string = "HolyRelic_leftTimes".ToUILocale().Fmt(e.residueTimes), this._holyRelicProgressPrefab ? [3, 2] : (t = this, [4, this.LoadDynamicAsset("HolyRelicsPanel/Component/HolyRelicProgressComponent", cc.Prefab)]);
                            case 1:
                                t._holyRelicProgressPrefab = o.sent(), o.label = 2;
                            case 2:
                                return m.ConfigDataComponent.Instance.GetArrayConfig(h.ArtefactRelic_Config).forEach(function(e, t) {
                                    if (!n._holyRelicProgressList[t]) {
                                        var o = cc.instantiate(n._holyRelicProgressPrefab);
                                        n.HolyRelicProgressContainer.addChild(o);
                                        var r = o.getComponent(A.default);
                                        n._holyRelicProgressList[t] = r
                                    }
                                    var i = C.default.Instance.GetHolyRelicCheckPointProgress(e.Id);
                                    n._holyRelicProgressList[t].Set(e.Id, i[0], i[1])
                                }), [2]
                        }
                    })
                })
            }, t.prototype.ConfigAngelPve = function() {
                var e = f.ConfigDataComponent.Instance.GetArrayConfig(h.StarLightSecretLandMap_Config),
                    t = f.DataCenter.Instance.GetIntData(y.UserDataKey.StarLightSecretProgress),
                    n = e.findIndex(function(e) {
                        return e.Id == t
                    }),
                    o = f.DataCenter.Instance.GetIntData(y.UserDataKey.StarLightSecretTodayCount),
                    r = f.ConfigDataComponent.Instance.GetGlobalSettingByKey("StarLightSecretLandDailyCount"),
                    i = r - o > 0 ? r - o : 0;
                this.AngelPveLevelRichText.string = "angelPve_current_level".ToUILocale().Fmt(n + 1, e.length, i, r)
            }, t.prototype.ConfigSaintWarTime = function() {
                var e = this._saintsWarResetTime - m.RpcComponent.Instance.ServerTime;
                e = e > 0 ? e : 0, this.SaintsWarTimeRichtext.string = "<outline width=3 color=#202434>" + "holyArea_timeRemainderOnlyHours".ToUILocale().Fmt("<color=#6EEEA7>" + C.default.ActivityTimeLeftFormat(e) + "</c>") + "</outline>"
            }, t.prototype.OnHolyAreaModuleTouch = function() {
                var e = {};
                switch (this._holyAreaState) {
                    case l.Upgrade:
                        e.Title = "hint".ToUILocale(), e.Info = "holyArea_check_next".ToUILocale().Fmt(this._holyAreaUserData.MapLevelId), e.ButtonLabels = ["holyArea_upLevel".ToUILocale(), "holyArea_not_upLevel".ToUILocale(), "holyArea_quit".ToUILocale()], e.Callbacks = [this.RequestUpgradeHolyArea, this.RequestCurrentHolyArea, null], u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyAreaHintPanel.Path, e, this);
                        break;
                    case l.Normal:
                        this.ShowHolyAreaMainPanel();
                        break;
                    case l.Downgrade:
                        e.Title = "hint".ToUILocale(), e.Info = "holyArea_check_down".ToUILocale().Fmt(this._holyAreaUserData.MapLevelId, this._holyAreaUserData.MapLevelId - 1), e.ButtonLabels = ["holyArea_lower".ToUILocale(), "holyArea_not_lower".ToUILocale(), "holyArea_quit".ToUILocale()], e.Callbacks = [this.RequestDowngradeHolyArea, this.RequestCurrentHolyArea, null], u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyAreaHintPanel.Path, e, this);
                        break;
                    default:
                        this.ShowHolyAreaMainPanel()
                }
            }, t.prototype.ShowHolyAreaMainPanel = function() {
                u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyAreaMainPanel.Path), this.DelayClose()
            }, t.prototype.OnSaintsWarTouch = function() {
                u.UIManager.Instance.ShowUIPanel(g.PanelConfig.SaintsWarPanel.Path), S.default.instance.CheckNeedRequestGameModule(w.GameModuleType.SaintsWar) && S.default.instance.CompleteGameModuleWeakGuide(w.GameModuleType.SaintsWar)
            }, t.prototype.OnHolyRelicTouch = function() {
                var e = y.MapType.ArtefactRelic;
                T.BattleData.PlayingBattleDatas[e] ? v.BattleManager.Instance.ResumePlayBattle(e) : u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyRelicsPanel.Path)
            }, t.prototype.OnAngelPveTouch = function() {
                v.BattleManager.Instance.IsInBattle(y.MapType.StarLightSecretLand) ? v.BattleManager.Instance.ResumePlayBattle(y.MapType.StarLightSecretLand) : u.UIManager.Instance.ShowUIPanel(g.PanelConfig.AngelPvePanel.Path)
            }, t.prototype.OnMaskTouch = function() {
                p.UIUtlity.ShowFloatingHint("error_hint_content_code_1019".ToUILocale())
            }, t.ShowHolyAreaPanel = function() {
                var e = l.Normal,
                    t = m.DataCenter.Instance.GetDataById(d.AncientSacred_Model, 1),
                    o = m.ConfigDataComponent.Instance.GetConfigById(h.AncientSacredMap_Config, t.MapLevelId),
                    r = o.MonsterType[o.MonsterType.length - 1].Items[0];
                if (!t.Monsters || 0 == t.Monsters.length) {
                    if (n.CheckHolyAreaIsHighestMap(t)) return void n.RequestOpenHolyAreaMainPanel(l.Upgrade);
                    for (var i = !0, a = 0; a < t.Maps.length; a++)
                        if (7 != t.Maps[a]) {
                            i = !1;
                            break
                        } var s = t.MapLevelId + 1,
                        c = m.ConfigDataComponent.Instance.GetConfigById(h.AncientSacredMap_Config, s);
                    t.Maps.length == r && i && c ? e = l.Upgrade : (t.Maps.length < r || !i) && 1 != t.MapLevelId && (e = l.Downgrade)
                }
                var p = {};
                switch (e) {
                    case l.Upgrade:
                        p.Title = "hint".ToUILocale(), p.Info = "holyArea_check_next".ToUILocale().Fmt(t.MapLevelId), p.ButtonLabels = ["holyArea_upLevel".ToUILocale(), "holyArea_not_upLevel".ToUILocale(), "holyArea_quit".ToUILocale()], p.Callbacks = [n.RequestOpenHolyAreaMainPanel, n.RequestOpenHolyAreaMainPanel, null], p.CallbackParams = [l.Upgrade, l.Normal, null], u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyAreaHintPanel.Path, p, this);
                        break;
                    case l.Normal:
                        u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyAreaMainPanel.Path);
                        break;
                    case l.Downgrade:
                        p.Title = "hint".ToUILocale(), p.Info = "holyArea_check_down".ToUILocale().Fmt(t.MapLevelId, t.MapLevelId - 1), p.ButtonLabels = ["holyArea_lower".ToUILocale(), "holyArea_not_lower".ToUILocale(), "holyArea_quit".ToUILocale()], p.Callbacks = [n.RequestOpenHolyAreaMainPanel, n.RequestOpenHolyAreaMainPanel, null], p.CallbackParams = [l.Downgrade, l.Normal, null], u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyAreaHintPanel.Path, p, this);
                        break;
                    default:
                        u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyAreaMainPanel.Path)
                }
            }, t.RequestOpenHolyAreaMainPanel = function(e) {
                var t = new d.Req_Ancient_Enter;
                t.Type = e, m.RpcComponent.Instance.Call(t, function() {
                    u.UIManager.Instance.ShowUIPanel(g.PanelConfig.HolyAreaMainPanel.Path)
                })
            }, t.CheckHolyAreaIsHighestMap = function(e) {
                var t, n = 0;
                return m.ConfigDataComponent.Instance.GetArrayConfig(h.AncientSacredMap_Config).forEach(function(e) {
                    n = Math.max(e.Id, n)
                }), t = 3 * m.ConfigDataComponent.Instance.GetConfigById(h.AncientSacredMap_Config, n).MonsterType.length + 100 * n, e.HighestMap > 0 && e.HighestMap == t
            }, t.prototype.onDestroy = function() {
                this.unscheduleAllCallbacks()
            }, t.prototype.ShowAllGameUnlockFinger = function(e) {
                if (void 0 === e && (e = !0), !b.default.Instance.IsInGuide) {
                    var t = R.default.Instance.CurrencyMoudleId;
                    if (!t || t < 0)
                        for (var n = 0; n < this.EnterNodes.length; n++) R.default.Instance.RemoveFinger(this.EnterNodes[n]);
                    var o = m.ConfigDataComponent.Instance.GetConfigById(h.GameModuleUnlockPop_Config, t);
                    if (!o)
                        for (n = 0; n < this.EnterNodes.length; n++) R.default.Instance.RemoveFinger(this.EnterNodes[n]);
                    var r = e ? 2 : 0;
                    for (var i in this.GameUnlockSteps) {
                        var a = parseInt(i);
                        if (-1 != this.GameUnlockSteps[i].indexOf(t)) return this.Scroview.stopAutoScroll(), this.Scroview.scrollToOffset(cc.v2(0, this.ComputeScroviewOffset(a))), void R.default.Instance.SetFinger(this.EnterNodes[a], o.Id, 0, 0, r)
                    }
                }
            }, t.prototype.ComputeScroviewOffset = function(e) {
                for (var t = 0, n = 0; n < this.EnterNodes.length && !(n >= e); n++) this.EnterNodes[n].active && (t += this.EnterNodes[n].height);
                return t
            }, i([O(cc.Label)], t.prototype, "TitleLabel", void 0), i([O(cc.Label)], t.prototype, "RemainderDiceNumberLabel", void 0), i([O(cc.Label)], t.prototype, "HolyRelicsTimes", void 0), i([O(cc.RichText)], t.prototype, "SecretRemainderTimeRichText", void 0), i([O(cc.RichText)], t.prototype, "SecretCurrentLevelRichText", void 0), i([O(cc.RichText)], t.prototype, "AcientRemainderTimeRichText", void 0), i([O(cc.RichText)], t.prototype, "AcientInformationRichText", void 0), i([O(cc.Node)], t.prototype, "AcientInBattleEffect", void 0), i([O(cc.RichText)], t.prototype, "AngelPveLevelRichText", void 0), i([O(cc.Sprite)], t.prototype, "SecretAreaTitleSprite", void 0), i([O(cc.Sprite)], t.prototype, "RelicTreasureTitleSprite", void 0), i([O(cc.Sprite)], t.prototype, "SaintsWarTitleSprite", void 0), i([O(cc.Sprite)], t.prototype, "AcientHollyTitleSprite", void 0), i([O(cc.Sprite)], t.prototype, "HollyRelicTitleSprite", void 0), i([O(cc.Button)], t.prototype, "ReturnButton", void 0), i([O(cc.Node)], t.prototype, "RelicTreasureNode", void 0), i([O(cc.Node)], t.prototype, "SecretAreaNode", void 0), i([O(cc.Node)], t.prototype, "AcientHolyNode", void 0), i([O(cc.Node)], t.prototype, "SaintsWarNode", void 0), i([O(cc.Node)], t.prototype, "HolyRelicNode", void 0), i([O(cc.Node)], t.prototype, "AngelPveNode", void 0), i([O(cc.Node)], t.prototype, "HolyRelicProgressContainer", void 0), i([O(cc.RichText)], t.prototype, "SaintsWarTimeRichtext", void 0), i([O({
                type: [cc.Node]
            })], t.prototype, "Masks", void 0), i([O({
                type: [cc.Label]
            })], t.prototype, "MaskLabels", void 0), i([O({
                type: [cc.Node]
            })], t.prototype, "UnMasks", void 0), i([O({
                type: [cc.Node]
            })], t.prototype, "SetGrayNodes", void 0), i([O(cc.Node)], t.prototype, "EnterNodes", void 0), i([O(cc.ScrollView)], t.prototype, "Scroview", void 0), n = i([k], t)
        }(u.BaseUIPanel);
        n.default = M, cc._RF.pop()
    }, {
        "../../../../Proto/Static/ConfigProto": "ConfigProto",
        "../../../../Proto/Static/RpcProto": "RpcProto",
        "../../../Consts/Consts": "Consts",
        "../../../EZFramework/EZFramework": "EZFramework",
        "../../Auxiliary/DataUtlity": "DataUtlity",
        "../../Auxiliary/EventKeys": "EventKeys",
        "../../Auxiliary/GlobalDefine": "GlobalDefine",
        "../../Auxiliary/GuideManager": "GuideManager",
        "../../Auxiliary/ModuleGuideManager": "ModuleGuideManager",
        "../../Components/Components": "Components",
        "../../RedDot/RedDotManager": "RedDotManager",
        "../Auxiliary/UIUtlity": "UIUtlity",
        "../Battle/BattleData": "BattleData",
        "../Battle/BattleManager": "BattleManager",
        "../Components/GameUnlockFingerListener": "GameUnlockFingerListener",
        "./HolyRelicProgressComponent": "HolyRelicProgressComponent",
        "./HolyRelicsPanel": "HolyRelicsPanel"
    }],
    RollingScreen: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "de51dYA18xFjLvrR0FpRH67", "RollingScreen");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__decorate || function(e, t, n, o) {
                var r, i = arguments.length,
                    a = i < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
                if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
                else
                    for (var s = e.length - 1; s >= 0; s--)(r = e[s]) && (a = (i < 3 ? r(a) : i > 3 ? r(t, n, a) : r(t, n)) || a);
                return i > 3 && a && Object.defineProperty(t, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            s = a.ccclass,
            l = a.property,
            c = function(e) {
                function t() {
                    var t = null !== e && e.apply(this, arguments) || this;
                    return t.RollingNodes = [], t.Speed = 0, t.Distance = 0, t._isRolling = !1, t
                }
                return r(t, e), t.prototype.Init = function() {
                    for (var e = 0; e < this.RollingNodes.length; e++) this.RollingNodes[e].x = e * this.Distance
                }, t.prototype.StartRolling = function() {
                    this._isRolling = !0
                }, t.prototype.Pause = function() {
                    this._isRolling = !1
                }, t.prototype.Resume = function() {
                    this._isRolling = !0
                }, t.prototype.Stop = function() {
                    this._isRolling = !1
                }, t.prototype.update = function() {
                    if (this._isRolling)
                        for (var e = this.RollingNodes.length, t = 0; t < e; t++) {
                            var n = this.RollingNodes[t];
                            n.x -= this.Speed, n.x <= -1 * this.Distance && (n.x = this.Distance * (e - 1))
                        }
                }, i([l([cc.Node])], t.prototype, "RollingNodes", void 0), i([l], t.prototype, "Speed", void 0), i([l], t.prototype, "Distance", void 0), i([s], t)
            }(cc.Component);
        n.default = c, cc._RF.pop()
    }, {}],
    RpcComponent: [function(e, t, n) {
        "use strict";
        cc._RF.push(t, "a293aA6uclFvqUtOJJowpu1", "RpcComponent");
        var o, r = this && this.__extends || (o = function(e, t) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array && function(e, t) {
                        e.__proto__ = t
                    } || function(e, t) {
                        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
                    })(e, t)
            }, function(e, t) {
                function n() {
                    this.constructor = e
                }
                o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
            }),
            i = this && this.__awaiter || function(e, t, n, o) {
                return new(n || (n = Promise))(function(r, i) {
                    function a(e) {
                        try {
                            l(o.next(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function s(e) {
                        try {
                            l(o.throw(e))
                        } catch (t) {
                            i(t)
                        }
                    }

                    function l(e) {
                        var t;
                        e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
                            e(t)
                        })).then(a, s)
                    }
                    l((o = o.apply(e, t || [])).next())
                })
            },
            a = this && this.__generator || function(e, t) {
                var n, o, r, i, a = {
                    label: 0,
                    sent: function() {
                        if (1 & r[0]) throw r[1];
                        return r[1]
                    },
                    trys: [],
                    ops: []
                };
                return i = {
                    next: s(0),
                    throw: s(1),
                    return: s(2)
                }, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
                    return this
                }), i;

                function s(e) {
                    return function(t) {
                        return l([e, t])
                    }
                }

                function l(i) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;
                        switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {
                            case 0:
                            case 1:
                                r = i;
                                break;
                            case 4:
                                return a.label++, {
                                    value: i[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = i[1], i = [0];
                                continue;
                            case 7:
                                i = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(r = (r = a.trys).length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
                                    a.label = i[1];
                                    break
                                }
                                if (6 === i[0] && a.label < r[1]) {
                                    a.label = r[1], r = i;
                                    break
                                }
                                if (r && a.label < r[2]) {
                                    a.label = r[2], a.ops.push(i);
                                    break
                                }
                                r[2] && a.ops.pop(), a.trys.pop();
                                continue
                        }
                        i = t.call(e, a)
                    } catch (s) {
                        i = [6, s], o = 0
                    } finally {
                        n = r = 0
                    }
                    if (5 & i[0]) throw i[1];
                    return {
                        value: i[0] ? i[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.ProtoMessage = n.RpcComponent = n.ServerStatus = void 0;
        var s, l = e("../../Consts/Consts"),
            c = e("../../Util/index"),
            u = e("../../EZFramework/EZFramework"),
            p = e("../../../Proto/Static/RpcProto"),
            d = e("./PushHandler/PushHandler"),
            h = e("./DataCenter"),
            f = e("./GlobalConfigComponent"),
            y = e("./ConfigData/ConfigDataComponent"),
            g = e("../UI/Auxiliary/UIUtlity"),
            m = e("../Auxiliary/GameEventsListener"),
            I = e("../Auxiliary/DataUtlity"),
            _ = e("../Auxiliary/EventKeys"),
            C = e("../../Util/index"),
            v = e("../Channel/ChannelManager"),
            b = e("../Auxiliary/GlobalDefine"),
            S = e("../UI/Components/GameUnlockPopListener"),
            w = e("../UI/Components/GameModuleGuideManager");
        (function(e) {
            e[e.Closed = 0] = "Closed", e[e.Disconnect = 1] = "Disconnect", e[e.Connecting = 2] = "Connecting", e[e.Connected = 3] = "Connected"
        })(s = n.ServerStatus || (n.ServerStatus = {}));
        var P = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t._LastHeartbeatTime = 0, t._LastUpdateServerTime = 0, t
            }
            return r(t, e), Object.defineProperty(t, "Instance", {
                get: function() {
                    return t._Instance
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Init = function(n) {
                t._Instance = this, this._TransId = 0, this._Status = s.Closed, this._AutoRetryCount = 0, this._ProcessingMsg = null, this._HeartbeatData = new p.RpcPackage, this._HeartbeatData.IsHeartbeat = !0, this._MessageQueue = [], this._ReturnLoginAction = n || null, e.prototype.Init.call(this)
            }, t.prototype.Dispose = function() {
                var t, n;
                this.IsDisposed || (this.ClearMessageQueue(), null === (t = this._ProcessingMsg) || void 0 === t || t.Dispose(), this._ProcessingMsg = null, null === (n = this._GateSession) || void 0 === n || n.Dispose(), this._GateSession = null, e.prototype.Dispose.call(this))
            }, t.prototype.OnUpdate = function() {
                var e;
                if (this._Status == s.Connected) {
                    if (this._GateSession.InstanceId != this._SessionId || this._GateSession.IsDisposed) return u.EZLog.Debug("reconnect"), this._Status = s.Connecting, u.Game.EventDispatcher.Emit(l.GameEventIds.ServerConnecting), this._AutoRetryCount = 0, g.UIUtlity.ShowMaskPanel(), void this._ConnectServer(!0);
                    if (c.TimeUtil.Now() > this._HeartbeatTimeoutTs) return u.EZLog.Error("heartbeat time out."), void(null === (e = this._GateSession) || void 0 === e || e.Dispose());
                    if (this._ProcessingMsg && this._ProcessingMsg.IsComplete && (this._ProcessingMsg.Dispose(), this._ProcessingMsg = null), this._GateSession.IsReady && null == this._ProcessingMsg && this._MessageQueue.length > 0) {
                        for (this._ProcessingMsg = this._MessageQueue.shift(); null != this._ProcessingMsg && this._ProcessingMsg.IsNotify;) this._GateSession.Send(this._ProcessingMsg.Request, this._ProcessingMsg.TransId, this._ProcessingMsg.CommonParam), this._ProcessingMsg = null, this._MessageQueue.length > 0 && (this._ProcessingMsg = this._MessageQueue.shift());
                        null != this._ProcessingMsg && this.DoRpcCall(this._ProcessingMsg)
                    }
                }
            }, Object.defineProperty(t.prototype, "ServerTime", {
                get: function() {
                    var e = c.TimeUtil.Now();
                    if (this._LastHeartbeatTime > 0) {
                        var t = e - this._LastHeartbeatTime;
                        return this._LastUpdateServerTime + t
                    }
                    return e
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.Call = function(e, t, n, o) {
                void 0 === n && (n = null), g.UIUtlity.ShowMaskPanel(), this.DoCallJob(e, t, n, o, !0)
            }, t.prototype.CallWithoutMask = function(e, t, n, o) {
                void 0 === n && (n = null), this.DoCallJob(e, t, n, o, !1)
            }, t.prototype.DoCallJob = function(e, t, n, o, r) {
                void 0 === n && (n = null);
                var i, a = u.ComponentFactory.Create(A);
                if (a.TransId = ++this._TransId, a.Request = e, a.OkHandler = t, a.ErrorHandler = n, a.IsNotify = !1, a.IsComplete = !1, a.HasMask = r, this._needShowResponseTime) {
                    var s = c.TimeUtil.Now();
                    a.SendTime = s, console.log("EZGAME Request: " + e.constructor.name + ", TransId: " + a.TransId + ", Time: " + s)
                }
                null != o && ((i = new p.CommonParam).GuideId = o), a.CommonParam = i, this._MessageQueue.push(a)
            }, t.prototype.Send = function(e) {
                var t = u.ComponentFactory.Create(A);
                t.TransId = ++this._TransId, t.Request = e, t.OkHandler = null, t.ErrorHandler = null, t.IsNotify = !0, t.IsComplete = !1, this._MessageQueue.push(t)
            }, t.prototype.Disconnect = function() {
                if (this._Status != s.Closed) {
                    this._Status = s.Closed;
                    var e = this._GateSession;
                    this._GateSession = null, e.Dispose()
                }
            }, t.prototype.ConnectServer = function(e) {
                void 0 === e && (e = !1), this._Status = s.Disconnect, this._AutoRetryCount = 0, g.UIUtlity.ShowMaskPanel(), this._ConnectServer(e)
            }, t.prototype.UpdateServerTime = function(e) {
                e || (e = 0);
                var t = c.TimeUtil.Now();
                this._LastHeartbeatTime = t, this._LastUpdateServerTime = e
            }, t.prototype.OnPushMessage = function(e) {
                if (e.Changes.length > 0 && h.DataCenter.Instance.ApplyChangeData(e.Changes), e.Type != l.OpCode.Push_OnResetData) {
                    h.DataCenter.Instance.CheckSpecialRedDot(e.SpecialRedDot);
                    var t = d.GetPushHandlers();
                    if (t[e.Type]) {
                        var n = u.OpCodeComponent.Instance.GetType(e.Type),
                            o = null;
                        if (null != n) try {
                            o = n.decode(e.Data, e.Data.length), u.EZLog.Log("push data: "), u.EZLog.Log(n.toObject(o))
                        } catch (r) {
                            return void u.EZLog.Error("decode response data error: " + r)
                        }
                        try {
                            t[e.Type](o)
                        } catch (r) {
                            u.EZLog.Error("exec push handler [" + n.name + "] error: " + r)
                        }
                    }
                } else this.ResetDailyData()
            }, t.prototype.DoRpcCall = function(e) {
                return i(this, void 0, Promise, function() {
                    var t, n, o, r;
                    return a(this, function(i) {
                        switch (i.label) {
                            case 0:
                                return e.IsComplete = !1, [4, this._GateSession.Call(e.Request, e.TransId, e.CommonParam)];
                            case 1:
                                if (t = i.sent(), null == this._ProcessingMsg || e.InstanceId != this._ProcessingMsg.InstanceId) return [2];
                                if (e.HasMask && g.UIUtlity.CloseMaskPanel(), t.Code != l.ErrCode.OK) try {
                                    u.EZLog.Log("ErrorHandler"), null != e.ErrorHandler && e.ErrorHandler(t.Code, t.Message), this.GeneralErrorHandler(t.Code, t.Message)
                                } catch (a) {
                                    u.EZLog.Error("error handler error: " + a)
                                } else try {
                                    if (this._needShowResponseTime && (n = c.TimeUtil.Now(), console.log("EZGAME Response: " + e.Request.constructor.name + ", TransId: " + e.TransId + ", Time: " + n + ", ResponseDuration: " + (n - e.SendTime))), this.GeneralResponseHandler(t), null != e.OkHandler) {
                                        if (o = u.OpCodeComponent.Instance.GetType(t.Type), r = null, null != o) try {
                                            r = o.decode(t.Data, t.Data.length), u.OpCodeComponent.Instance.IsNeedLogMessage(t.Type) && (u.EZLog.Log("response data:"), u.EZLog.Log(o.toObject(r)))
                                        } catch (s) {
                                            u.EZLog.Error("decode response data error: " + s), r = new o
                                        }
                                        e.OkHandler(r)
                                    }
                                } catch (a) {
                                    u.EZLog.Error("ok handler error: " + a)
                                }
                                return e.IsComplete = !0, [2]
                        }
                    })
                })
            }, t.prototype.GeneralResponseHandler = function(e) {
                e.Changes.length > 0 && h.DataCenter.Instance.ApplyChangeData(e.Changes), h.DataCenter.Instance.CheckSpecialRedDot(e.SpecialRedDot)
            }, t.prototype.GeneralErrorHandler = function(e, t) {
                if (e > 2e4) switch (e) {
                    case l.ErrCode.AssetVerIsNotAvailable:
                    case l.ErrCode.ConfigVerIsNotAvailable:
                    case l.ErrCode.ServerMaintenance:
                        I.default.Instance.ShowRestartGamePanel(e, t);
                        break;
                    default:
                        g.UIUtlity.ShowFloatingHint(t), u.Game.EventDispatcher.Emit(l.GameEventIds.ErrorCodeEvent.Fmt(e), t)
                } else {
                    if (e < 1e4) {
                        var n = "";
                        switch (e) {
                            case l.ErrCode.VerifyTokenError:
                                return n = "error_hint_content_code_1012".ToUILocale(), void g.UIUtlity.ShowForceConfirmPanel(null, n, "button_return_to_login".ToUILocale(), this._ReturnLoginAction.bind(this));
                            case l.ErrCode.UserBanLogin:
                                n = "error_hint_content_code_1026".ToUILocale(), g.UIUtlity.ShowForceConfirmPanel(null, "error_hint_content_code_1026".ToUILocale().Fmt(C.TimeUtil.Format("YYYY/MM/DD HH:mm", Number.parseInt(t))), "ok".ToUILocale(), this._ReturnLoginAction.bind(this));
                                break;
                            case l.ErrCode.UserBanChat:
                                n = "error_hint_content_code_1027".ToUILocale(), g.UIUtlity.ShowForceConfirmPanel(null, "error_hint_content_code_1027".ToUILocale().Fmt(C.TimeUtil.Format("YYYY/MM/DD HH:mm", Number.parseInt(t))), "ok".ToUILocale(), null);
                                break;
                            case l.ErrCode.AllianceChallengeTodayChallenged:
                            case l.ErrCode.AllianceChallengeTodayRaided:
                            case l.ErrCode.AllianceChallengeParamError:
                            case l.ErrCode.AllianceChallengeUserLocked:
                                n = "allianceWar_data_error".ToUILocale(), g.UIUtlity.ShowFloatingHint("allianceWar_data_error".ToUILocale());
                                break;
                            case l.ErrCode.From16To17MonthlyPayLimit:
                                u.UIManager.Instance.ShowUIPanel(b.PanelConfig.AgreementPanel.Path, 10);
                                break;
                            case l.ErrCode.From16To17SinglePay:
                                u.UIManager.Instance.ShowUIPanel(b.PanelConfig.AgreementPanel.Path, 9);
                                break;
                            case l.ErrCode.CutPriceGiftTimeExpired:
                            case l.ErrCode.CutPriceGiftHelped:
                            case l.ErrCode.CutPriceGiftCountLimit:
                            case l.ErrCode.AllianceMazeDataChanged:
                                break;
                            default:
                                var o = n = ("error_hint_content_code_" + e).ToUILocale();
                                o || (o = "error_hint_content_code_default".ToUILocale(), n = ("error_hint_content_code_" + e + "_debug").ToUILocale() || o), g.UIUtlity.ShowFloatingHint(o)
                        }
                        f.GlobalConfigComponent.Instance.IsDebug && g.UIUtlity.ShowHintPanel(null, "ErrorCode: " + e + " \r\n " + t + (n ? " \r\n " + n : ""), null, null, "")
                    }
                    e == l.ErrCode.AlreadyHaveAlliance ? h.DataCenter.Instance.AllianceId = c.AppUtil.ToInt(t) : e == l.ErrCode.AllianceNotExist || e == l.ErrCode.NotInAlliance ? h.DataCenter.Instance.AllianceId = 0 : e == l.ErrCode.NeedRefreshData && this.ResetDailyData()
                }
            }, t.prototype._ConnectServer = function(e) {
                var t, n;
                return void 0 === e && (e = !1), i(this, void 0, Promise, function() {
                    var o, r, i, d, b, P;
                    return a(this, function(a) {
                        switch (a.label) {
                            case 0:
                                null === (t = this._GateSession) || void 0 === t || t.Dispose(), this._LastUpdateServerTime = 0, this._LastHeartbeatTime = 0, this._GateSession = u.ComponentFactory.Create(u.Session, h.DataCenter.Instance.GateAddress, this.OnPushMessage.bind(this)), o = this._GateSession.InstanceId, e ? null != this._ProcessingMsg && (this._MessageQueue.unshift(this._ProcessingMsg), this._ProcessingMsg = null) : (this._TransId = 0, null === (n = this._ProcessingMsg) || void 0 === n || n.Dispose(), this._ProcessingMsg = null, this.ClearMessageQueue()), (r = new p.Req_Player_EnterGame).Uid = h.DataCenter.Instance.Uid, r.Token = h.DataCenter.Instance.Token.toString(), r.IsReconnect = e, r.ClientVer = f.GlobalConfigComponent.Instance.ClientVersion, r.AssetVer = f.GlobalConfigComponent.Instance.AssetVersion, r.Locale = f.GlobalConfigComponent.Instance.Locale, r.ConfigureVer = y.ConfigDataComponent.Instance.ConfigVersion, r.Country = v.default.Instance.Localization_Country, r.Currency = v.default.Instance.Localization_Currency, a.label = 1;
                            case 1:
                                return a.trys.push([1, 4, , 6]), [4, this._GateSession.Connect()];
                            case 2:
                                return a.sent(), this._GateSession.InstanceId != o ? [2] : [4, this._GateSession.Call(r, 0)];
                            case 3:
                                if (i = a.sent(), this._GateSession.InstanceId != o) return [2];
                                if (i.Code == l.ErrCode.OK) {
                                    d = p.Res_Player_EnterGame.decode(i.Data), u.EZLog.Log("EnterGame response data:"), u.EZLog.Log(p.Res_Player_EnterGame.toObject(d)), S.default.Instance.UnRegisteEvents(), S.default.Instance.RegisteEvents();
                                    try {
                                        e ? h.DataCenter.Instance.ApplyChangeData(i.Changes) : (h.DataCenter.Instance.ApplyChangeData(d.Data, !0), h.DataCenter.Instance.ApplyChangeData(i.Changes), h.DataCenter.Instance.RankAchievements = d.RankAchievements || [], h.DataCenter.Instance.PlayingBattles = d.PlayingBattles || []), h.DataCenter.Instance.OnLineDurationTime = d.OnlineDruationTime, h.DataCenter.Instance.LoadChatData(d), h.DataCenter.Instance.LoadActivityConfigs(d), d.TriggerGifts && d.TriggerGifts.length > 0 && d.TriggerGifts.forEach(function(e) {
                                            h.DataCenter.Instance.TriggerGifts[e.Sid] = e
                                        }), h.DataCenter.Instance.IsChanceTestUser = d.ChanceTestUser, h.DataCenter.Instance.StatExcludeUid = d.StatExcludeUid, h.DataCenter.Instance.SystemMaintainModel = d.Maintains, h.DataCenter.Instance.ClosedModuleIds = d.ClosedModuleIds, h.DataCenter.Instance.WorldLevel = d.WorldLevel, h.DataCenter.Instance.ZoneGroupResetTime = d.ZoneGroupResetTime, h.DataCenter.Instance.DealWithActivityTrailers(d), h.DataCenter.Instance.LastLoginTime = d.LastLogin, h.DataCenter.Instance.AllianceInfo = d.Alliance, h.DataCenter.Instance.ClosedModuleIds.includes(l.GameModuleType.ShowNetWorkResponseTime) ? this._needShowResponseTime = !0 : this._needShowResponseTime = !1, h.DataCenter.Instance.LoadAnnouncements(d), h.DataCenter.Instance.LoadModuleAvailableStartTime(d), h.DataCenter.Instance.CacheEventIds = d.CacheEventIds, u.Game.EventDispatcher.Emit(_.EventKeys.EVENT_ON_CACHEEVENTIDSCHECK, d.CacheEventIds), d.PopupGifts && d.PopupGifts.length > 0 && (b = {}, d.PopupGifts.forEach(function(e) {
                                            e && (b[e.Sid] = e)
                                        }), h.DataCenter.Instance.SetTempData("Recommended_Popup_Gifts", b))
                                    } catch (A) {
                                        cc.error(A)
                                    }
                                    m.default.Instance.UnRegisteEvents(), m.default.Instance.RegisteEvents(), w.default.Instance.UnRegisteEvents(), w.default.Instance.RegisteEvents(), h.DataCenter.Instance.CheckSpecialRedDot(i.SpecialRedDot), this.UpdateServerTime(d.Ts), this._SessionId = this._GateSession.InstanceId, this._AutoRetryCount = 0, this._Status = s.Connected, g.UIUtlity.CloseMaskPanel(e), u.Game.EventDispatcher.Emit(l.GameEventIds.ServerConnected), this._HeartbeatInterval = f.GlobalConfigComponent.Instance.HeartbeatInterval, this._HeartbeatInterval > 0 && (this._HeartbeatTimeoutTs = c.TimeUtil.Now() + 3 * this._HeartbeatInterval, this.Heartbeat(this._SessionId))
                                } else switch (this.Disconnect(), g.UIUtlity.CloseMaskPanel(e), i.Code) {
                                    case l.ErrCode.AssetVerIsNotAvailable:
                                    case l.ErrCode.ConfigVerIsNotAvailable:
                                    case l.ErrCode.ServerMaintenance:
                                        I.default.Instance.ShowRestartGamePanel(i.Code, i.Message);
                                        break;
                                    case l.ErrCode.VerifyTokenError:
                                        g.UIUtlity.ShowForceConfirmPanel(null, "error_hint_content_code_1012".ToUILocale(), "button_return_to_login".ToUILocale(), this._ReturnLoginAction.bind(this));
                                        break;
                                    case l.ErrCode.UserBanLogin:
                                        g.UIUtlity.ShowForceConfirmPanel(null, "error_hint_content_code_1026".ToUILocale().Fmt(C.TimeUtil.Format("YYYY/MM/DD HH:mm", Number.parseInt(i.Message))), "ok".ToUILocale(), this._ReturnLoginAction.bind(this));
                                        break;
                                    default:
                                        g.UIUtlity.ShowForceConfirmPanel(null, "error_connect_server_error".ToUILocale() || "", "button_return_to_login".ToUILocale(), this._ReturnLoginAction.bind(this))
                                }
                                return [3, 6];
                            case 4:
                                return P = a.sent(), this._AutoRetryCount++, this._AutoRetryCount >= l.GlobalSetting.RPC_TCP_RETRY_COUNT ? (g.UIUtlity.CloseMaskPanel(!0), g.UIUtlity.ShowForceConfirmPanel(null, "error_connect_server_error".ToUILocale() || "", "button_return_to_login".ToUILocale(), this._ReturnLoginAction.bind(this)), [2]) : (u.EZLog.Error('"network error: ' + P), [4, u.Game.Scene.GetComponent(u.TimerComponent).WaitAsync(2e3)]);
                            case 5:
                                return a.sent(), this._ConnectServer(!0), [3, 6];
                            case 6:
                                return [2]
                        }
                    })
                })
            }, t.prototype.ResetDailyData = function() {
                u.EZLog.Log("reset daily data");
                var e = 0,
                    n = new p.Req_Player_EnterGame;
                n.IsReloadData = !0;
                var o = this;
                (function r() {
                    o.Call(n, function(e) {
                        try {
                            h.DataCenter.Instance.LoadActivityConfigsTime = t.Instance.ServerTime, h.DataCenter.Instance.LoadActivityConfigs(e), e.TriggerGifts && e.TriggerGifts.length > 0 && e.TriggerGifts.forEach(function(e) {
                                h.DataCenter.Instance.TriggerGifts[e.Sid] = e
                            }), g.UIUtlity.AfterResetDataPanelId && (g.UIUtlity.ShowPanelById(g.UIUtlity.AfterResetDataPanelId), g.UIUtlity.AfterResetDataPanelId = null), u.Game.EventDispatcher.Emit(l.GameEventIds.DailyResetDataComplete)
                        } catch (n) {
                            u.EZLog.Error(n)
                        }
                    }, function() {
                        ++e <= 10 && r()
                    })
                })()
            }, t.prototype.Heartbeat = function(e) {
                return i(this, void 0, Promise, function() {
                    var t, n, o;
                    return a(this, function(r) {
                        switch (r.label) {
                            case 0:
                                return [4, u.Game.Scene.GetComponent(u.TimerComponent).WaitAsync(this._HeartbeatInterval)];
                            case 1:
                                if (r.sent(), this._Status != s.Connected) return [2];
                                if (this._GateSession.InstanceId != e) return [2];
                                r.label = 2;
                            case 2:
                                return r.trys.push([2, 4, , 5]), [4, this._GateSession.Call(this._HeartbeatData)];
                            case 3:
                                return t = r.sent(), this._GateSession.InstanceId != e ? [2] : (t.Code == l.ErrCode.OK && (n = c.TimeUtil.Now(), this._HeartbeatTimeoutTs = n + 3 * this._HeartbeatInterval, this._LastHeartbeatTime = n, this._LastUpdateServerTime = t.Ts), [3, 5]);
                            case 4:
                                return o = r.sent(), u.EZLog.Error("send heartbeat error. " + o), [3, 5];
                            case 5:
                                return this.Heartbeat(e), [2]
                        }
                    })
                })
            }, t.prototype.ClearMessageQueue = function() {
                for (; this._MessageQueue.length > 0;) {
                    var e = this._MessageQueue.shift();
                    null == e || e.Dispose()
                }
                g.UIUtlity.CloseMaskPanel(!0)
            }, t.CompName = "RpcComponent", t
        }(u.Component);
        n.RpcComponent = P;
        var A = function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            return r(t, e), t.CompName = "ProtoMessage", t
        }(u.Component);
        n.ProtoMessage = A, cc._RF.pop()
    }, {
        "../../../Proto/Static/RpcProto": "RpcProto",
        "../../Consts/Consts": "Consts",
        "../../EZFramework/EZFramework": "EZFramework",
        "../../Util/index": "index",
        "../Auxiliary/DataUtlity": "DataUtlity",
        "../Auxiliary/EventKeys": "EventKeys",
        "../Auxiliary/GameEventsListener": "GameEventsListener",
        "../Auxiliary/GlobalDefine": "GlobalDefine",
        "../Channel/ChannelManager": "ChannelManager",
        "../UI/Auxiliary/UIUtlity": "UIUtlity",
        "../UI/Components/GameModuleGuideManager": "GameModuleGuideManager",
        "../UI/Components/GameUnlockPopListener": "GameUnlockPopListener",
        "./ConfigData/ConfigDataComponent": "ConfigDataComponent",
        "./DataCenter": "DataCenter",
        "./GlobalConfigComponent": "GlobalConfigComponent",
        "./PushHandler/PushHandler": "PushHandler"
    }],
    RpcProto: [function(e, t) {
        "use strict";
        var n;
        cc._RF.push(t, "feacaYGbMVJ763fhidX83OS", "RpcProto");
        var o = (n = "undefined" != typeof protobuf ? protobuf : e("protobufjs/minimal")).Reader,
            r = n.Writer,
            i = n.util,
            a = n.roots.default || (n.roots.default = {});
        a.RpcPackage = function() {
            function e(e) {
                if (this.Changes = [], this.SpecialRedDot = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RpcId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = 0, e.prototype.Data = i.newBuffer([]), e.prototype.IsReply = !1, e.prototype.Code = 0, e.prototype.Message = "", e.prototype.TransId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsHeartbeat = !1, e.prototype.Ts = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Changes = i.emptyArray, e.prototype.SpecialRedDot = i.emptyObject, e.prototype.CommonParam = null, e.prototype.ErrorStack = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.RpcId && Object.hasOwnProperty.call(e, "RpcId") && t.uint32(8).int64(e.RpcId), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int32(e.Type), null != e.Data && Object.hasOwnProperty.call(e, "Data") && t.uint32(26).bytes(e.Data), null != e.IsReply && Object.hasOwnProperty.call(e, "IsReply") && t.uint32(32).bool(e.IsReply), null != e.Code && Object.hasOwnProperty.call(e, "Code") && t.uint32(40).int32(e.Code), null != e.Message && Object.hasOwnProperty.call(e, "Message") && t.uint32(50).string(e.Message), null != e.TransId && Object.hasOwnProperty.call(e, "TransId") && t.uint32(56).int64(e.TransId), null != e.IsHeartbeat && Object.hasOwnProperty.call(e, "IsHeartbeat") && t.uint32(64).bool(e.IsHeartbeat), null != e.Ts && Object.hasOwnProperty.call(e, "Ts") && t.uint32(72).int64(e.Ts), null != e.Changes && e.Changes.length)
                    for (var n = 0; n < e.Changes.length; ++n) a.UserModelChange.encode(e.Changes[n], t.uint32(82).fork()).ldelim();
                if (null != e.SpecialRedDot && Object.hasOwnProperty.call(e, "SpecialRedDot")) {
                    var o = Object.keys(e.SpecialRedDot);
                    for (n = 0; n < o.length; ++n) t.uint32(90).fork().uint32(8).int64(o[n]).uint32(16).int64(e.SpecialRedDot[o[n]]).ldelim()
                }
                return null != e.CommonParam && Object.hasOwnProperty.call(e, "CommonParam") && a.CommonParam.encode(e.CommonParam, t.uint32(98).fork()).ldelim(), null != e.ErrorStack && Object.hasOwnProperty.call(e, "ErrorStack") && t.uint32(794).string(e.ErrorStack), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.RpcPackage; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.RpcId = e.int64();
                            break;
                        case 2:
                            l.Type = e.int32();
                            break;
                        case 3:
                            l.Data = e.bytes();
                            break;
                        case 4:
                            l.IsReply = e.bool();
                            break;
                        case 5:
                            l.Code = e.int32();
                            break;
                        case 6:
                            l.Message = e.string();
                            break;
                        case 7:
                            l.TransId = e.int64();
                            break;
                        case 8:
                            l.IsHeartbeat = e.bool();
                            break;
                        case 9:
                            l.Ts = e.int64();
                            break;
                        case 10:
                            l.Changes && l.Changes.length || (l.Changes = []), l.Changes.push(a.UserModelChange.decode(e, e.uint32()));
                            break;
                        case 11:
                            l.SpecialRedDot === i.emptyObject && (l.SpecialRedDot = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = 0; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = e.int64();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.SpecialRedDot["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 12:
                            l.CommonParam = a.CommonParam.decode(e, e.uint32());
                            break;
                        case 99:
                            l.ErrorStack = e.string();
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.RpcId && e.hasOwnProperty("RpcId") && !(i.isInteger(e.RpcId) || e.RpcId && i.isInteger(e.RpcId.low) && i.isInteger(e.RpcId.high))) return "RpcId: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type)) return "Type: integer expected";
                if (null != e.Data && e.hasOwnProperty("Data") && !(e.Data && "number" == typeof e.Data.length || i.isString(e.Data))) return "Data: buffer expected";
                if (null != e.IsReply && e.hasOwnProperty("IsReply") && "boolean" != typeof e.IsReply) return "IsReply: boolean expected";
                if (null != e.Code && e.hasOwnProperty("Code") && !i.isInteger(e.Code)) return "Code: integer expected";
                if (null != e.Message && e.hasOwnProperty("Message") && !i.isString(e.Message)) return "Message: string expected";
                if (null != e.TransId && e.hasOwnProperty("TransId") && !(i.isInteger(e.TransId) || e.TransId && i.isInteger(e.TransId.low) && i.isInteger(e.TransId.high))) return "TransId: integer|Long expected";
                if (null != e.IsHeartbeat && e.hasOwnProperty("IsHeartbeat") && "boolean" != typeof e.IsHeartbeat) return "IsHeartbeat: boolean expected";
                if (null != e.Ts && e.hasOwnProperty("Ts") && !(i.isInteger(e.Ts) || e.Ts && i.isInteger(e.Ts.low) && i.isInteger(e.Ts.high))) return "Ts: integer|Long expected";
                if (null != e.Changes && e.hasOwnProperty("Changes")) {
                    if (!Array.isArray(e.Changes)) return "Changes: array expected";
                    for (var t = 0; t < e.Changes.length; ++t)
                        if (o = a.UserModelChange.verify(e.Changes[t])) return "Changes." + o
                }
                if (null != e.SpecialRedDot && e.hasOwnProperty("SpecialRedDot")) {
                    if (!i.isObject(e.SpecialRedDot)) return "SpecialRedDot: object expected";
                    var n = Object.keys(e.SpecialRedDot);
                    for (t = 0; t < n.length; ++t) {
                        if (!i.key64Re.test(n[t])) return "SpecialRedDot: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.SpecialRedDot[n[t]]) || e.SpecialRedDot[n[t]] && i.isInteger(e.SpecialRedDot[n[t]].low) && i.isInteger(e.SpecialRedDot[n[t]].high))) return "SpecialRedDot: integer|Long{k:int64} expected"
                    }
                }
                var o;
                return null != e.CommonParam && e.hasOwnProperty("CommonParam") && (o = a.CommonParam.verify(e.CommonParam)) ? "CommonParam." + o : null != e.ErrorStack && e.hasOwnProperty("ErrorStack") && !i.isString(e.ErrorStack) ? "ErrorStack: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RpcPackage) return e;
                var t = new a.RpcPackage;
                if (null != e.RpcId && (i.Long ? (t.RpcId = i.Long.fromValue(e.RpcId)).unsigned = !1 : "string" == typeof e.RpcId ? t.RpcId = parseInt(e.RpcId, 10) : "number" == typeof e.RpcId ? t.RpcId = e.RpcId : "object" == typeof e.RpcId && (t.RpcId = new i.LongBits(e.RpcId.low >>> 0, e.RpcId.high >>> 0).toNumber())), null != e.Type && (t.Type = 0 | e.Type), null != e.Data && ("string" == typeof e.Data ? i.base64.decode(e.Data, t.Data = i.newBuffer(i.base64.length(e.Data)), 0) : e.Data.length >= 0 && (t.Data = e.Data)), null != e.IsReply && (t.IsReply = Boolean(e.IsReply)), null != e.Code && (t.Code = 0 | e.Code), null != e.Message && (t.Message = String(e.Message)), null != e.TransId && (i.Long ? (t.TransId = i.Long.fromValue(e.TransId)).unsigned = !1 : "string" == typeof e.TransId ? t.TransId = parseInt(e.TransId, 10) : "number" == typeof e.TransId ? t.TransId = e.TransId : "object" == typeof e.TransId && (t.TransId = new i.LongBits(e.TransId.low >>> 0, e.TransId.high >>> 0).toNumber())), null != e.IsHeartbeat && (t.IsHeartbeat = Boolean(e.IsHeartbeat)), null != e.Ts && (i.Long ? (t.Ts = i.Long.fromValue(e.Ts)).unsigned = !1 : "string" == typeof e.Ts ? t.Ts = parseInt(e.Ts, 10) : "number" == typeof e.Ts ? t.Ts = e.Ts : "object" == typeof e.Ts && (t.Ts = new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber())), e.Changes) {
                    if (!Array.isArray(e.Changes)) throw TypeError(".RpcPackage.Changes: array expected");
                    t.Changes = [];
                    for (var n = 0; n < e.Changes.length; ++n) {
                        if ("object" != typeof e.Changes[n]) throw TypeError(".RpcPackage.Changes: object expected");
                        t.Changes[n] = a.UserModelChange.fromObject(e.Changes[n])
                    }
                }
                if (e.SpecialRedDot) {
                    if ("object" != typeof e.SpecialRedDot) throw TypeError(".RpcPackage.SpecialRedDot: object expected");
                    t.SpecialRedDot = {};
                    var o = Object.keys(e.SpecialRedDot);
                    for (n = 0; n < o.length; ++n) i.Long ? (t.SpecialRedDot[o[n]] = i.Long.fromValue(e.SpecialRedDot[o[n]])).unsigned = !1 : "string" == typeof e.SpecialRedDot[o[n]] ? t.SpecialRedDot[o[n]] = parseInt(e.SpecialRedDot[o[n]], 10) : "number" == typeof e.SpecialRedDot[o[n]] ? t.SpecialRedDot[o[n]] = e.SpecialRedDot[o[n]] : "object" == typeof e.SpecialRedDot[o[n]] && (t.SpecialRedDot[o[n]] = new i.LongBits(e.SpecialRedDot[o[n]].low >>> 0, e.SpecialRedDot[o[n]].high >>> 0).toNumber())
                }
                if (null != e.CommonParam) {
                    if ("object" != typeof e.CommonParam) throw TypeError(".RpcPackage.CommonParam: object expected");
                    t.CommonParam = a.CommonParam.fromObject(e.CommonParam)
                }
                return null != e.ErrorStack && (t.ErrorStack = String(e.ErrorStack)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.Changes = []), (t.objects || t.defaults) && (o.SpecialRedDot = {}), t.defaults) {
                    if (i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.RpcId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.RpcId = t.longs === String ? "0" : 0;
                    o.Type = 0, t.bytes === String ? o.Data = "" : (o.Data = [], t.bytes !== Array && (o.Data = i.newBuffer(o.Data))), o.IsReply = !1, o.Code = 0, o.Message = "", i.Long ? (r = new i.Long(0, 0, !1), o.TransId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.TransId = t.longs === String ? "0" : 0, o.IsHeartbeat = !1, i.Long ? (r = new i.Long(0, 0, !1), o.Ts = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Ts = t.longs === String ? "0" : 0, o.CommonParam = null, o.ErrorStack = ""
                }
                if (null != e.RpcId && e.hasOwnProperty("RpcId") && ("number" == typeof e.RpcId ? o.RpcId = t.longs === String ? String(e.RpcId) : e.RpcId : o.RpcId = t.longs === String ? i.Long.prototype.toString.call(e.RpcId) : t.longs === Number ? new i.LongBits(e.RpcId.low >>> 0, e.RpcId.high >>> 0).toNumber() : e.RpcId), null != e.Type && e.hasOwnProperty("Type") && (o.Type = e.Type), null != e.Data && e.hasOwnProperty("Data") && (o.Data = t.bytes === String ? i.base64.encode(e.Data, 0, e.Data.length) : t.bytes === Array ? Array.prototype.slice.call(e.Data) : e.Data), null != e.IsReply && e.hasOwnProperty("IsReply") && (o.IsReply = e.IsReply), null != e.Code && e.hasOwnProperty("Code") && (o.Code = e.Code), null != e.Message && e.hasOwnProperty("Message") && (o.Message = e.Message), null != e.TransId && e.hasOwnProperty("TransId") && ("number" == typeof e.TransId ? o.TransId = t.longs === String ? String(e.TransId) : e.TransId : o.TransId = t.longs === String ? i.Long.prototype.toString.call(e.TransId) : t.longs === Number ? new i.LongBits(e.TransId.low >>> 0, e.TransId.high >>> 0).toNumber() : e.TransId), null != e.IsHeartbeat && e.hasOwnProperty("IsHeartbeat") && (o.IsHeartbeat = e.IsHeartbeat), null != e.Ts && e.hasOwnProperty("Ts") && ("number" == typeof e.Ts ? o.Ts = t.longs === String ? String(e.Ts) : e.Ts : o.Ts = t.longs === String ? i.Long.prototype.toString.call(e.Ts) : t.longs === Number ? new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber() : e.Ts), e.Changes && e.Changes.length) {
                    o.Changes = [];
                    for (var s = 0; s < e.Changes.length; ++s) o.Changes[s] = a.UserModelChange.toObject(e.Changes[s], t)
                }
                if (e.SpecialRedDot && (n = Object.keys(e.SpecialRedDot)).length)
                    for (o.SpecialRedDot = {}, s = 0; s < n.length; ++s) "number" == typeof e.SpecialRedDot[n[s]] ? o.SpecialRedDot[n[s]] = t.longs === String ? String(e.SpecialRedDot[n[s]]) : e.SpecialRedDot[n[s]] : o.SpecialRedDot[n[s]] = t.longs === String ? i.Long.prototype.toString.call(e.SpecialRedDot[n[s]]) : t.longs === Number ? new i.LongBits(e.SpecialRedDot[n[s]].low >>> 0, e.SpecialRedDot[n[s]].high >>> 0).toNumber() : e.SpecialRedDot[n[s]];
                return null != e.CommonParam && e.hasOwnProperty("CommonParam") && (o.CommonParam = a.CommonParam.toObject(e.CommonParam, t)), null != e.ErrorStack && e.hasOwnProperty("ErrorStack") && (o.ErrorStack = e.ErrorStack), o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RpcPackage"
            }, e
        }(), a.UserModelChange = function() {
            function e(e) {
                if (this.DataList = {}, this.RemoveIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Opcode = 0, e.prototype.DataList = i.emptyObject, e.prototype.RemoveIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Opcode && Object.hasOwnProperty.call(e, "Opcode") && t.uint32(8).int32(e.Opcode), null != e.DataList && Object.hasOwnProperty.call(e, "DataList"))
                    for (var n = Object.keys(e.DataList), o = 0; o < n.length; ++o) t.uint32(18).fork().uint32(8).int64(n[o]).uint32(18).bytes(e.DataList[n[o]]).ldelim();
                if (null != e.RemoveIds && e.RemoveIds.length) {
                    for (t.uint32(26).fork(), o = 0; o < e.RemoveIds.length; ++o) t.int64(e.RemoveIds[o]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.UserModelChange; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Opcode = e.int32();
                            break;
                        case 2:
                            l.DataList === i.emptyObject && (l.DataList = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = []; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = e.bytes();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.DataList["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 3:
                            if (l.RemoveIds && l.RemoveIds.length || (l.RemoveIds = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.RemoveIds.push(e.int64());
                            else l.RemoveIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Opcode && e.hasOwnProperty("Opcode") && !i.isInteger(e.Opcode)) return "Opcode: integer expected";
                if (null != e.DataList && e.hasOwnProperty("DataList")) {
                    if (!i.isObject(e.DataList)) return "DataList: object expected";
                    for (var t = Object.keys(e.DataList), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "DataList: integer|Long key{k:int64} expected";
                        if (!(e.DataList[t[n]] && "number" == typeof e.DataList[t[n]].length || i.isString(e.DataList[t[n]]))) return "DataList: buffer{k:int64} expected"
                    }
                }
                if (null != e.RemoveIds && e.hasOwnProperty("RemoveIds")) {
                    if (!Array.isArray(e.RemoveIds)) return "RemoveIds: array expected";
                    for (n = 0; n < e.RemoveIds.length; ++n)
                        if (!(i.isInteger(e.RemoveIds[n]) || e.RemoveIds[n] && i.isInteger(e.RemoveIds[n].low) && i.isInteger(e.RemoveIds[n].high))) return "RemoveIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.UserModelChange) return e;
                var t = new a.UserModelChange;
                if (null != e.Opcode && (t.Opcode = 0 | e.Opcode), e.DataList) {
                    if ("object" != typeof e.DataList) throw TypeError(".UserModelChange.DataList: object expected");
                    t.DataList = {};
                    for (var n = Object.keys(e.DataList), o = 0; o < n.length; ++o) "string" == typeof e.DataList[n[o]] ? i.base64.decode(e.DataList[n[o]], t.DataList[n[o]] = i.newBuffer(i.base64.length(e.DataList[n[o]])), 0) : e.DataList[n[o]].length >= 0 && (t.DataList[n[o]] = e.DataList[n[o]])
                }
                if (e.RemoveIds) {
                    if (!Array.isArray(e.RemoveIds)) throw TypeError(".UserModelChange.RemoveIds: array expected");
                    for (t.RemoveIds = [], o = 0; o < e.RemoveIds.length; ++o) i.Long ? (t.RemoveIds[o] = i.Long.fromValue(e.RemoveIds[o])).unsigned = !1 : "string" == typeof e.RemoveIds[o] ? t.RemoveIds[o] = parseInt(e.RemoveIds[o], 10) : "number" == typeof e.RemoveIds[o] ? t.RemoveIds[o] = e.RemoveIds[o] : "object" == typeof e.RemoveIds[o] && (t.RemoveIds[o] = new i.LongBits(e.RemoveIds[o].low >>> 0, e.RemoveIds[o].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.RemoveIds = []), (t.objects || t.defaults) && (o.DataList = {}), t.defaults && (o.Opcode = 0), null != e.Opcode && e.hasOwnProperty("Opcode") && (o.Opcode = e.Opcode), e.DataList && (n = Object.keys(e.DataList)).length) {
                    o.DataList = {};
                    for (var r = 0; r < n.length; ++r) o.DataList[n[r]] = t.bytes === String ? i.base64.encode(e.DataList[n[r]], 0, e.DataList[n[r]].length) : t.bytes === Array ? Array.prototype.slice.call(e.DataList[n[r]]) : e.DataList[n[r]]
                }
                if (e.RemoveIds && e.RemoveIds.length)
                    for (o.RemoveIds = [], r = 0; r < e.RemoveIds.length; ++r) "number" == typeof e.RemoveIds[r] ? o.RemoveIds[r] = t.longs === String ? String(e.RemoveIds[r]) : e.RemoveIds[r] : o.RemoveIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.RemoveIds[r]) : t.longs === Number ? new i.LongBits(e.RemoveIds[r].low >>> 0, e.RemoveIds[r].high >>> 0).toNumber() : e.RemoveIds[r];
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/UserModelChange"
            }, e
        }(), a.CommonParam = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.GuideId = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.GuideId && Object.hasOwnProperty.call(e, "GuideId") && t.uint32(8).int32(e.GuideId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.CommonParam; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.GuideId = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.GuideId && e.hasOwnProperty("GuideId") && !i.isInteger(e.GuideId) ? "GuideId: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.CommonParam) return e;
                var t = new a.CommonParam;
                return null != e.GuideId && (t.GuideId = 0 | e.GuideId), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.GuideId = 0), null != e.GuideId && e.hasOwnProperty("GuideId") && (n.GuideId = e.GuideId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CommonParam"
            }, e
        }(), a.IntArray = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Items = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Items && e.Items.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Items.length; ++n) t.int64(e.Items[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.IntArray; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Items && r.Items.length || (r.Items = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Items.push(e.int64());
                            else r.Items.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t)
                        if (!(i.isInteger(e.Items[t]) || e.Items[t] && i.isInteger(e.Items[t].low) && i.isInteger(e.Items[t].high))) return "Items: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.IntArray) return e;
                var t = new a.IntArray;
                if (e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".IntArray.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) i.Long ? (t.Items[n] = i.Long.fromValue(e.Items[n])).unsigned = !1 : "string" == typeof e.Items[n] ? t.Items[n] = parseInt(e.Items[n], 10) : "number" == typeof e.Items[n] ? t.Items[n] = e.Items[n] : "object" == typeof e.Items[n] && (t.Items[n] = new i.LongBits(e.Items[n].low >>> 0, e.Items[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var o = 0; o < e.Items.length; ++o) "number" == typeof e.Items[o] ? n.Items[o] = t.longs === String ? String(e.Items[o]) : e.Items[o] : n.Items[o] = t.longs === String ? i.Long.prototype.toString.call(e.Items[o]) : t.longs === Number ? new i.LongBits(e.Items[o].low >>> 0, e.Items[o].high >>> 0).toNumber() : e.Items[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/IntArray"
            }, e
        }(), a.FloatArray = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Items = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Items && e.Items.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Items.length; ++n) t.float(e.Items[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.FloatArray; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Items && r.Items.length || (r.Items = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Items.push(e.float());
                            else r.Items.push(e.float());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t)
                        if ("number" != typeof e.Items[t]) return "Items: number[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.FloatArray) return e;
                var t = new a.FloatArray;
                if (e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".FloatArray.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) t.Items[n] = Number(e.Items[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var o = 0; o < e.Items.length; ++o) n.Items[o] = t.json && !isFinite(e.Items[o]) ? String(e.Items[o]) : e.Items[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/FloatArray"
            }, e
        }(), a.DoubleArray = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Items = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Items && e.Items.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Items.length; ++n) t.double(e.Items[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.DoubleArray; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Items && r.Items.length || (r.Items = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Items.push(e.double());
                            else r.Items.push(e.double());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t)
                        if ("number" != typeof e.Items[t]) return "Items: number[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.DoubleArray) return e;
                var t = new a.DoubleArray;
                if (e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".DoubleArray.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) t.Items[n] = Number(e.Items[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var o = 0; o < e.Items.length; ++o) n.Items[o] = t.json && !isFinite(e.Items[o]) ? String(e.Items[o]) : e.Items[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/DoubleArray"
            }, e
        }(), a.IntMap = function() {
            function e(e) {
                if (this.Map = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Map = i.emptyObject, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Map && Object.hasOwnProperty.call(e, "Map"))
                    for (var n = Object.keys(e.Map), o = 0; o < n.length; ++o) t.uint32(10).fork().uint32(8).int64(n[o]).uint32(16).int64(e.Map[n[o]]).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.IntMap; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Map === i.emptyObject && (l.Map = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = 0; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = e.int64();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.Map["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!i.isObject(e.Map)) return "Map: object expected";
                    for (var t = Object.keys(e.Map), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "Map: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.Map[t[n]]) || e.Map[t[n]] && i.isInteger(e.Map[t[n]].low) && i.isInteger(e.Map[t[n]].high))) return "Map: integer|Long{k:int64} expected"
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.IntMap) return e;
                var t = new a.IntMap;
                if (e.Map) {
                    if ("object" != typeof e.Map) throw TypeError(".IntMap.Map: object expected");
                    t.Map = {};
                    for (var n = Object.keys(e.Map), o = 0; o < n.length; ++o) i.Long ? (t.Map[n[o]] = i.Long.fromValue(e.Map[n[o]])).unsigned = !1 : "string" == typeof e.Map[n[o]] ? t.Map[n[o]] = parseInt(e.Map[n[o]], 10) : "number" == typeof e.Map[n[o]] ? t.Map[n[o]] = e.Map[n[o]] : "object" == typeof e.Map[n[o]] && (t.Map[n[o]] = new i.LongBits(e.Map[n[o]].low >>> 0, e.Map[n[o]].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.objects || t.defaults) && (o.Map = {}), e.Map && (n = Object.keys(e.Map)).length) {
                    o.Map = {};
                    for (var r = 0; r < n.length; ++r) "number" == typeof e.Map[n[r]] ? o.Map[n[r]] = t.longs === String ? String(e.Map[n[r]]) : e.Map[n[r]] : o.Map[n[r]] = t.longs === String ? i.Long.prototype.toString.call(e.Map[n[r]]) : t.longs === Number ? new i.LongBits(e.Map[n[r]].low >>> 0, e.Map[n[r]].high >>> 0).toNumber() : e.Map[n[r]]
                }
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/IntMap"
            }, e
        }(), a.IntArrayMap = function() {
            function e(e) {
                if (this.Map = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Map = i.emptyObject, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Map && Object.hasOwnProperty.call(e, "Map"))
                    for (var n = Object.keys(e.Map), o = 0; o < n.length; ++o) t.uint32(10).fork().uint32(8).int64(n[o]), a.IntArray.encode(e.Map[n[o]], t.uint32(18).fork()).ldelim().ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.IntArrayMap; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Map === i.emptyObject && (l.Map = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = null; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = a.IntArray.decode(e, e.uint32());
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.Map["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!i.isObject(e.Map)) return "Map: object expected";
                    for (var t = Object.keys(e.Map), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "Map: integer|Long key{k:int64} expected";
                        var o = a.IntArray.verify(e.Map[t[n]]);
                        if (o) return "Map." + o
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.IntArrayMap) return e;
                var t = new a.IntArrayMap;
                if (e.Map) {
                    if ("object" != typeof e.Map) throw TypeError(".IntArrayMap.Map: object expected");
                    t.Map = {};
                    for (var n = Object.keys(e.Map), o = 0; o < n.length; ++o) {
                        if ("object" != typeof e.Map[n[o]]) throw TypeError(".IntArrayMap.Map: object expected");
                        t.Map[n[o]] = a.IntArray.fromObject(e.Map[n[o]])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.objects || t.defaults) && (o.Map = {}), e.Map && (n = Object.keys(e.Map)).length) {
                    o.Map = {};
                    for (var r = 0; r < n.length; ++r) o.Map[n[r]] = a.IntArray.toObject(e.Map[n[r]], t)
                }
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/IntArrayMap"
            }, e
        }(), a.RankPlayerInfo = function() {
            function e(e) {
                if (this.NotShow = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.HeadIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadFrame = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Avatar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Country = "", e.prototype.Title = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Designation = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NotShow = i.emptyArray, e.prototype.Power = 0, e.prototype.MagicCircle = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Pet = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.HeadIcon && Object.hasOwnProperty.call(e, "HeadIcon") && t.uint32(24).int64(e.HeadIcon), null != e.HeadFrame && Object.hasOwnProperty.call(e, "HeadFrame") && t.uint32(32).int64(e.HeadFrame), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(40).int64(e.Level), null != e.Avatar && Object.hasOwnProperty.call(e, "Avatar") && t.uint32(48).int64(e.Avatar), null != e.Country && Object.hasOwnProperty.call(e, "Country") && t.uint32(58).string(e.Country), null != e.Title && Object.hasOwnProperty.call(e, "Title") && t.uint32(64).int64(e.Title), null != e.Designation && Object.hasOwnProperty.call(e, "Designation") && t.uint32(72).int64(e.Designation), null != e.NotShow && e.NotShow.length) {
                    t.uint32(82).fork();
                    for (var n = 0; n < e.NotShow.length; ++n) t.int64(e.NotShow[n]);
                    t.ldelim()
                }
                return null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(88).int32(e.Power), null != e.MagicCircle && Object.hasOwnProperty.call(e, "MagicCircle") && t.uint32(96).int64(e.MagicCircle), null != e.Pet && Object.hasOwnProperty.call(e, "Pet") && t.uint32(104).int64(e.Pet), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RankPlayerInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            r.HeadIcon = e.int64();
                            break;
                        case 4:
                            r.HeadFrame = e.int64();
                            break;
                        case 5:
                            r.Level = e.int64();
                            break;
                        case 6:
                            r.Avatar = e.int64();
                            break;
                        case 7:
                            r.Country = e.string();
                            break;
                        case 8:
                            r.Title = e.int64();
                            break;
                        case 9:
                            r.Designation = e.int64();
                            break;
                        case 10:
                            if (r.NotShow && r.NotShow.length || (r.NotShow = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.NotShow.push(e.int64());
                            else r.NotShow.push(e.int64());
                            break;
                        case 11:
                            r.Power = e.int32();
                            break;
                        case 12:
                            r.MagicCircle = e.int64();
                            break;
                        case 13:
                            r.Pet = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high))) return "Uid: integer|Long expected";
                if (null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name)) return "Name: string expected";
                if (null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && !(i.isInteger(e.HeadIcon) || e.HeadIcon && i.isInteger(e.HeadIcon.low) && i.isInteger(e.HeadIcon.high))) return "HeadIcon: integer|Long expected";
                if (null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && !(i.isInteger(e.HeadFrame) || e.HeadFrame && i.isInteger(e.HeadFrame.low) && i.isInteger(e.HeadFrame.high))) return "HeadFrame: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.Avatar && e.hasOwnProperty("Avatar") && !(i.isInteger(e.Avatar) || e.Avatar && i.isInteger(e.Avatar.low) && i.isInteger(e.Avatar.high))) return "Avatar: integer|Long expected";
                if (null != e.Country && e.hasOwnProperty("Country") && !i.isString(e.Country)) return "Country: string expected";
                if (null != e.Title && e.hasOwnProperty("Title") && !(i.isInteger(e.Title) || e.Title && i.isInteger(e.Title.low) && i.isInteger(e.Title.high))) return "Title: integer|Long expected";
                if (null != e.Designation && e.hasOwnProperty("Designation") && !(i.isInteger(e.Designation) || e.Designation && i.isInteger(e.Designation.low) && i.isInteger(e.Designation.high))) return "Designation: integer|Long expected";
                if (null != e.NotShow && e.hasOwnProperty("NotShow")) {
                    if (!Array.isArray(e.NotShow)) return "NotShow: array expected";
                    for (var t = 0; t < e.NotShow.length; ++t)
                        if (!(i.isInteger(e.NotShow[t]) || e.NotShow[t] && i.isInteger(e.NotShow[t].low) && i.isInteger(e.NotShow[t].high))) return "NotShow: integer|Long[] expected"
                }
                return null != e.Power && e.hasOwnProperty("Power") && !i.isInteger(e.Power) ? "Power: integer expected" : null != e.MagicCircle && e.hasOwnProperty("MagicCircle") && !(i.isInteger(e.MagicCircle) || e.MagicCircle && i.isInteger(e.MagicCircle.low) && i.isInteger(e.MagicCircle.high)) ? "MagicCircle: integer|Long expected" : null != e.Pet && e.hasOwnProperty("Pet") && !(i.isInteger(e.Pet) || e.Pet && i.isInteger(e.Pet.low) && i.isInteger(e.Pet.high)) ? "Pet: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RankPlayerInfo) return e;
                var t = new a.RankPlayerInfo;
                if (null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.HeadIcon && (i.Long ? (t.HeadIcon = i.Long.fromValue(e.HeadIcon)).unsigned = !1 : "string" == typeof e.HeadIcon ? t.HeadIcon = parseInt(e.HeadIcon, 10) : "number" == typeof e.HeadIcon ? t.HeadIcon = e.HeadIcon : "object" == typeof e.HeadIcon && (t.HeadIcon = new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber())), null != e.HeadFrame && (i.Long ? (t.HeadFrame = i.Long.fromValue(e.HeadFrame)).unsigned = !1 : "string" == typeof e.HeadFrame ? t.HeadFrame = parseInt(e.HeadFrame, 10) : "number" == typeof e.HeadFrame ? t.HeadFrame = e.HeadFrame : "object" == typeof e.HeadFrame && (t.HeadFrame = new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Avatar && (i.Long ? (t.Avatar = i.Long.fromValue(e.Avatar)).unsigned = !1 : "string" == typeof e.Avatar ? t.Avatar = parseInt(e.Avatar, 10) : "number" == typeof e.Avatar ? t.Avatar = e.Avatar : "object" == typeof e.Avatar && (t.Avatar = new i.LongBits(e.Avatar.low >>> 0, e.Avatar.high >>> 0).toNumber())), null != e.Country && (t.Country = String(e.Country)), null != e.Title && (i.Long ? (t.Title = i.Long.fromValue(e.Title)).unsigned = !1 : "string" == typeof e.Title ? t.Title = parseInt(e.Title, 10) : "number" == typeof e.Title ? t.Title = e.Title : "object" == typeof e.Title && (t.Title = new i.LongBits(e.Title.low >>> 0, e.Title.high >>> 0).toNumber())), null != e.Designation && (i.Long ? (t.Designation = i.Long.fromValue(e.Designation)).unsigned = !1 : "string" == typeof e.Designation ? t.Designation = parseInt(e.Designation, 10) : "number" == typeof e.Designation ? t.Designation = e.Designation : "object" == typeof e.Designation && (t.Designation = new i.LongBits(e.Designation.low >>> 0, e.Designation.high >>> 0).toNumber())), e.NotShow) {
                    if (!Array.isArray(e.NotShow)) throw TypeError(".RankPlayerInfo.NotShow: array expected");
                    t.NotShow = [];
                    for (var n = 0; n < e.NotShow.length; ++n) i.Long ? (t.NotShow[n] = i.Long.fromValue(e.NotShow[n])).unsigned = !1 : "string" == typeof e.NotShow[n] ? t.NotShow[n] = parseInt(e.NotShow[n], 10) : "number" == typeof e.NotShow[n] ? t.NotShow[n] = e.NotShow[n] : "object" == typeof e.NotShow[n] && (t.NotShow[n] = new i.LongBits(e.NotShow[n].low >>> 0, e.NotShow[n].high >>> 0).toNumber())
                }
                return null != e.Power && (t.Power = 0 | e.Power), null != e.MagicCircle && (i.Long ? (t.MagicCircle = i.Long.fromValue(e.MagicCircle)).unsigned = !1 : "string" == typeof e.MagicCircle ? t.MagicCircle = parseInt(e.MagicCircle, 10) : "number" == typeof e.MagicCircle ? t.MagicCircle = e.MagicCircle : "object" == typeof e.MagicCircle && (t.MagicCircle = new i.LongBits(e.MagicCircle.low >>> 0, e.MagicCircle.high >>> 0).toNumber())), null != e.Pet && (i.Long ? (t.Pet = i.Long.fromValue(e.Pet)).unsigned = !1 : "string" == typeof e.Pet ? t.Pet = parseInt(e.Pet, 10) : "number" == typeof e.Pet ? t.Pet = e.Pet : "object" == typeof e.Pet && (t.Pet = new i.LongBits(e.Pet.low >>> 0, e.Pet.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.NotShow = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    n.Name = "", i.Long ? (o = new i.Long(0, 0, !1), n.HeadIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadIcon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadFrame = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadFrame = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Avatar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Avatar = t.longs === String ? "0" : 0, n.Country = "", i.Long ? (o = new i.Long(0, 0, !1), n.Title = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Title = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Designation = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Designation = t.longs === String ? "0" : 0, n.Power = 0, i.Long ? (o = new i.Long(0, 0, !1), n.MagicCircle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MagicCircle = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Pet = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Pet = t.longs === String ? "0" : 0
                }
                if (null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && ("number" == typeof e.HeadIcon ? n.HeadIcon = t.longs === String ? String(e.HeadIcon) : e.HeadIcon : n.HeadIcon = t.longs === String ? i.Long.prototype.toString.call(e.HeadIcon) : t.longs === Number ? new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber() : e.HeadIcon), null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && ("number" == typeof e.HeadFrame ? n.HeadFrame = t.longs === String ? String(e.HeadFrame) : e.HeadFrame : n.HeadFrame = t.longs === String ? i.Long.prototype.toString.call(e.HeadFrame) : t.longs === Number ? new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber() : e.HeadFrame), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Avatar && e.hasOwnProperty("Avatar") && ("number" == typeof e.Avatar ? n.Avatar = t.longs === String ? String(e.Avatar) : e.Avatar : n.Avatar = t.longs === String ? i.Long.prototype.toString.call(e.Avatar) : t.longs === Number ? new i.LongBits(e.Avatar.low >>> 0, e.Avatar.high >>> 0).toNumber() : e.Avatar), null != e.Country && e.hasOwnProperty("Country") && (n.Country = e.Country), null != e.Title && e.hasOwnProperty("Title") && ("number" == typeof e.Title ? n.Title = t.longs === String ? String(e.Title) : e.Title : n.Title = t.longs === String ? i.Long.prototype.toString.call(e.Title) : t.longs === Number ? new i.LongBits(e.Title.low >>> 0, e.Title.high >>> 0).toNumber() : e.Title), null != e.Designation && e.hasOwnProperty("Designation") && ("number" == typeof e.Designation ? n.Designation = t.longs === String ? String(e.Designation) : e.Designation : n.Designation = t.longs === String ? i.Long.prototype.toString.call(e.Designation) : t.longs === Number ? new i.LongBits(e.Designation.low >>> 0, e.Designation.high >>> 0).toNumber() : e.Designation), e.NotShow && e.NotShow.length) {
                    n.NotShow = [];
                    for (var r = 0; r < e.NotShow.length; ++r) "number" == typeof e.NotShow[r] ? n.NotShow[r] = t.longs === String ? String(e.NotShow[r]) : e.NotShow[r] : n.NotShow[r] = t.longs === String ? i.Long.prototype.toString.call(e.NotShow[r]) : t.longs === Number ? new i.LongBits(e.NotShow[r].low >>> 0, e.NotShow[r].high >>> 0).toNumber() : e.NotShow[r]
                }
                return null != e.Power && e.hasOwnProperty("Power") && (n.Power = e.Power), null != e.MagicCircle && e.hasOwnProperty("MagicCircle") && ("number" == typeof e.MagicCircle ? n.MagicCircle = t.longs === String ? String(e.MagicCircle) : e.MagicCircle : n.MagicCircle = t.longs === String ? i.Long.prototype.toString.call(e.MagicCircle) : t.longs === Number ? new i.LongBits(e.MagicCircle.low >>> 0, e.MagicCircle.high >>> 0).toNumber() : e.MagicCircle), null != e.Pet && e.hasOwnProperty("Pet") && ("number" == typeof e.Pet ? n.Pet = t.longs === String ? String(e.Pet) : e.Pet : n.Pet = t.longs === String ? i.Long.prototype.toString.call(e.Pet) : t.longs === Number ? new i.LongBits(e.Pet.low >>> 0, e.Pet.high >>> 0).toNumber() : e.Pet), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RankPlayerInfo"
            }, e
        }(), a.RankAllianceInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MemberCount = 0, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LeaderName = "", e.prototype.LeaderCountry = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(24).int64(e.Level), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(32).int64(e.Icon), null != e.MemberCount && Object.hasOwnProperty.call(e, "MemberCount") && t.uint32(40).int32(e.MemberCount), null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(48).int64(e.Power), null != e.LeaderName && Object.hasOwnProperty.call(e, "LeaderName") && t.uint32(58).string(e.LeaderName), null != e.LeaderCountry && Object.hasOwnProperty.call(e, "LeaderCountry") && t.uint32(66).string(e.LeaderCountry), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RankAllianceInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            r.Level = e.int64();
                            break;
                        case 4:
                            r.Icon = e.int64();
                            break;
                        case 5:
                            r.MemberCount = e.int32();
                            break;
                        case 6:
                            r.Power = e.int64();
                            break;
                        case 7:
                            r.LeaderName = e.string();
                            break;
                        case 8:
                            r.LeaderCountry = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high)) ? "Level: integer|Long expected" : null != e.Icon && e.hasOwnProperty("Icon") && !(i.isInteger(e.Icon) || e.Icon && i.isInteger(e.Icon.low) && i.isInteger(e.Icon.high)) ? "Icon: integer|Long expected" : null != e.MemberCount && e.hasOwnProperty("MemberCount") && !i.isInteger(e.MemberCount) ? "MemberCount: integer expected" : null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high)) ? "Power: integer|Long expected" : null != e.LeaderName && e.hasOwnProperty("LeaderName") && !i.isString(e.LeaderName) ? "LeaderName: string expected" : null != e.LeaderCountry && e.hasOwnProperty("LeaderCountry") && !i.isString(e.LeaderCountry) ? "LeaderCountry: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RankAllianceInfo) return e;
                var t = new a.RankAllianceInfo;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Icon && (i.Long ? (t.Icon = i.Long.fromValue(e.Icon)).unsigned = !1 : "string" == typeof e.Icon ? t.Icon = parseInt(e.Icon, 10) : "number" == typeof e.Icon ? t.Icon = e.Icon : "object" == typeof e.Icon && (t.Icon = new i.LongBits(e.Icon.low >>> 0, e.Icon.high >>> 0).toNumber())), null != e.MemberCount && (t.MemberCount = 0 | e.MemberCount), null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.LeaderName && (t.LeaderName = String(e.LeaderName)), null != e.LeaderCountry && (t.LeaderCountry = String(e.LeaderCountry)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Name = "", i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Icon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Icon = t.longs === String ? "0" : 0, n.MemberCount = 0, i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0, n.LeaderName = "", n.LeaderCountry = ""
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Icon && e.hasOwnProperty("Icon") && ("number" == typeof e.Icon ? n.Icon = t.longs === String ? String(e.Icon) : e.Icon : n.Icon = t.longs === String ? i.Long.prototype.toString.call(e.Icon) : t.longs === Number ? new i.LongBits(e.Icon.low >>> 0, e.Icon.high >>> 0).toNumber() : e.Icon), null != e.MemberCount && e.hasOwnProperty("MemberCount") && (n.MemberCount = e.MemberCount), null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.LeaderName && e.hasOwnProperty("LeaderName") && (n.LeaderName = e.LeaderName), null != e.LeaderCountry && e.hasOwnProperty("LeaderCountry") && (n.LeaderCountry = e.LeaderCountry), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RankAllianceInfo"
            }, e
        }(), a.RankHeroInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkinId = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(16).int64(e.HeroId), null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(24).int64(e.StarLevel), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(32).int64(e.Level), null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(40).int64(e.Power), null != e.SkinId && Object.hasOwnProperty.call(e, "SkinId") && t.uint32(48).int32(e.SkinId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RankHeroInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HeroId = e.int64();
                            break;
                        case 3:
                            r.StarLevel = e.int64();
                            break;
                        case 4:
                            r.Level = e.int64();
                            break;
                        case 5:
                            r.Power = e.int64();
                            break;
                        case 6:
                            r.SkinId = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high)) ? "StarLevel: integer|Long expected" : null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high)) ? "Level: integer|Long expected" : null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high)) ? "Power: integer|Long expected" : null != e.SkinId && e.hasOwnProperty("SkinId") && !i.isInteger(e.SkinId) ? "SkinId: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RankHeroInfo) return e;
                var t = new a.RankHeroInfo;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.SkinId && (t.SkinId = 0 | e.SkinId), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0, n.SkinId = 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.SkinId && e.hasOwnProperty("SkinId") && (n.SkinId = e.SkinId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RankHeroInfo"
            }, e
        }(), a.RankRowData = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Zone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Value = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PlayerInfo = null, e.prototype.AllianceInfo = null, e.prototype.HeroInfo = null, e.prototype.BeLikeCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(16).int64(e.Id), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(24).int64(e.Zone), null != e.Value && Object.hasOwnProperty.call(e, "Value") && t.uint32(32).int64(e.Value), null != e.PlayerInfo && Object.hasOwnProperty.call(e, "PlayerInfo") && a.RankPlayerInfo.encode(e.PlayerInfo, t.uint32(42).fork()).ldelim(), null != e.AllianceInfo && Object.hasOwnProperty.call(e, "AllianceInfo") && a.RankAllianceInfo.encode(e.AllianceInfo, t.uint32(50).fork()).ldelim(), null != e.HeroInfo && Object.hasOwnProperty.call(e, "HeroInfo") && a.RankHeroInfo.encode(e.HeroInfo, t.uint32(58).fork()).ldelim(), null != e.BeLikeCount && Object.hasOwnProperty.call(e, "BeLikeCount") && t.uint32(64).int64(e.BeLikeCount), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RankRowData; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 2:
                            r.Id = e.int64();
                            break;
                        case 3:
                            r.Zone = e.int64();
                            break;
                        case 4:
                            r.Value = e.int64();
                            break;
                        case 5:
                            r.PlayerInfo = a.RankPlayerInfo.decode(e, e.uint32());
                            break;
                        case 6:
                            r.AllianceInfo = a.RankAllianceInfo.decode(e, e.uint32());
                            break;
                        case 7:
                            r.HeroInfo = a.RankHeroInfo.decode(e, e.uint32());
                            break;
                        case 8:
                            r.BeLikeCount = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Zone && e.hasOwnProperty("Zone") && !(i.isInteger(e.Zone) || e.Zone && i.isInteger(e.Zone.low) && i.isInteger(e.Zone.high)) ? "Zone: integer|Long expected" : null != e.Value && e.hasOwnProperty("Value") && !(i.isInteger(e.Value) || e.Value && i.isInteger(e.Value.low) && i.isInteger(e.Value.high)) ? "Value: integer|Long expected" : null != e.PlayerInfo && e.hasOwnProperty("PlayerInfo") && (t = a.RankPlayerInfo.verify(e.PlayerInfo)) ? "PlayerInfo." + t : null != e.AllianceInfo && e.hasOwnProperty("AllianceInfo") && (t = a.RankAllianceInfo.verify(e.AllianceInfo)) ? "AllianceInfo." + t : null != e.HeroInfo && e.hasOwnProperty("HeroInfo") && (t = a.RankHeroInfo.verify(e.HeroInfo)) ? "HeroInfo." + t : null != e.BeLikeCount && e.hasOwnProperty("BeLikeCount") && !(i.isInteger(e.BeLikeCount) || e.BeLikeCount && i.isInteger(e.BeLikeCount.low) && i.isInteger(e.BeLikeCount.high)) ? "BeLikeCount: integer|Long expected" : null;
                var t
            }, e.fromObject = function(e) {
                if (e instanceof a.RankRowData) return e;
                var t = new a.RankRowData;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Zone && (i.Long ? (t.Zone = i.Long.fromValue(e.Zone)).unsigned = !1 : "string" == typeof e.Zone ? t.Zone = parseInt(e.Zone, 10) : "number" == typeof e.Zone ? t.Zone = e.Zone : "object" == typeof e.Zone && (t.Zone = new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber())), null != e.Value && (i.Long ? (t.Value = i.Long.fromValue(e.Value)).unsigned = !1 : "string" == typeof e.Value ? t.Value = parseInt(e.Value, 10) : "number" == typeof e.Value ? t.Value = e.Value : "object" == typeof e.Value && (t.Value = new i.LongBits(e.Value.low >>> 0, e.Value.high >>> 0).toNumber())), null != e.PlayerInfo) {
                    if ("object" != typeof e.PlayerInfo) throw TypeError(".RankRowData.PlayerInfo: object expected");
                    t.PlayerInfo = a.RankPlayerInfo.fromObject(e.PlayerInfo)
                }
                if (null != e.AllianceInfo) {
                    if ("object" != typeof e.AllianceInfo) throw TypeError(".RankRowData.AllianceInfo: object expected");
                    t.AllianceInfo = a.RankAllianceInfo.fromObject(e.AllianceInfo)
                }
                if (null != e.HeroInfo) {
                    if ("object" != typeof e.HeroInfo) throw TypeError(".RankRowData.HeroInfo: object expected");
                    t.HeroInfo = a.RankHeroInfo.fromObject(e.HeroInfo)
                }
                return null != e.BeLikeCount && (i.Long ? (t.BeLikeCount = i.Long.fromValue(e.BeLikeCount)).unsigned = !1 : "string" == typeof e.BeLikeCount ? t.BeLikeCount = parseInt(e.BeLikeCount, 10) : "number" == typeof e.BeLikeCount ? t.BeLikeCount = e.BeLikeCount : "object" == typeof e.BeLikeCount && (t.BeLikeCount = new i.LongBits(e.BeLikeCount.low >>> 0, e.BeLikeCount.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Zone = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Zone = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Value = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Value = t.longs === String ? "0" : 0, n.PlayerInfo = null, n.AllianceInfo = null, n.HeroInfo = null, i.Long ? (o = new i.Long(0, 0, !1), n.BeLikeCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BeLikeCount = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Zone && e.hasOwnProperty("Zone") && ("number" == typeof e.Zone ? n.Zone = t.longs === String ? String(e.Zone) : e.Zone : n.Zone = t.longs === String ? i.Long.prototype.toString.call(e.Zone) : t.longs === Number ? new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber() : e.Zone), null != e.Value && e.hasOwnProperty("Value") && ("number" == typeof e.Value ? n.Value = t.longs === String ? String(e.Value) : e.Value : n.Value = t.longs === String ? i.Long.prototype.toString.call(e.Value) : t.longs === Number ? new i.LongBits(e.Value.low >>> 0, e.Value.high >>> 0).toNumber() : e.Value), null != e.PlayerInfo && e.hasOwnProperty("PlayerInfo") && (n.PlayerInfo = a.RankPlayerInfo.toObject(e.PlayerInfo, t)), null != e.AllianceInfo && e.hasOwnProperty("AllianceInfo") && (n.AllianceInfo = a.RankAllianceInfo.toObject(e.AllianceInfo, t)), null != e.HeroInfo && e.hasOwnProperty("HeroInfo") && (n.HeroInfo = a.RankHeroInfo.toObject(e.HeroInfo, t)), null != e.BeLikeCount && e.hasOwnProperty("BeLikeCount") && ("number" == typeof e.BeLikeCount ? n.BeLikeCount = t.longs === String ? String(e.BeLikeCount) : e.BeLikeCount : n.BeLikeCount = t.longs === String ? i.Long.prototype.toString.call(e.BeLikeCount) : t.longs === Number ? new i.LongBits(e.BeLikeCount.low >>> 0, e.BeLikeCount.high >>> 0).toNumber() : e.BeLikeCount), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RankRowData"
            }, e
        }(), a.RankAchievement = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RewardIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Value = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UpdateTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PlayerInfo = null, e.prototype.HeroInfo = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.RewardIndex && Object.hasOwnProperty.call(e, "RewardIndex") && t.uint32(16).int64(e.RewardIndex), null != e.Value && Object.hasOwnProperty.call(e, "Value") && t.uint32(24).int64(e.Value), null != e.UpdateTime && Object.hasOwnProperty.call(e, "UpdateTime") && t.uint32(32).int64(e.UpdateTime), null != e.PlayerInfo && Object.hasOwnProperty.call(e, "PlayerInfo") && a.RankPlayerInfo.encode(e.PlayerInfo, t.uint32(50).fork()).ldelim(), null != e.HeroInfo && Object.hasOwnProperty.call(e, "HeroInfo") && a.RankHeroInfo.encode(e.HeroInfo, t.uint32(58).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RankAchievement; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 2:
                            r.RewardIndex = e.int64();
                            break;
                        case 3:
                            r.Value = e.int64();
                            break;
                        case 4:
                            r.UpdateTime = e.int64();
                            break;
                        case 6:
                            r.PlayerInfo = a.RankPlayerInfo.decode(e, e.uint32());
                            break;
                        case 7:
                            r.HeroInfo = a.RankHeroInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.RewardIndex && e.hasOwnProperty("RewardIndex") && !(i.isInteger(e.RewardIndex) || e.RewardIndex && i.isInteger(e.RewardIndex.low) && i.isInteger(e.RewardIndex.high)) ? "RewardIndex: integer|Long expected" : null != e.Value && e.hasOwnProperty("Value") && !(i.isInteger(e.Value) || e.Value && i.isInteger(e.Value.low) && i.isInteger(e.Value.high)) ? "Value: integer|Long expected" : null != e.UpdateTime && e.hasOwnProperty("UpdateTime") && !(i.isInteger(e.UpdateTime) || e.UpdateTime && i.isInteger(e.UpdateTime.low) && i.isInteger(e.UpdateTime.high)) ? "UpdateTime: integer|Long expected" : null != e.PlayerInfo && e.hasOwnProperty("PlayerInfo") && (t = a.RankPlayerInfo.verify(e.PlayerInfo)) ? "PlayerInfo." + t : null != e.HeroInfo && e.hasOwnProperty("HeroInfo") && (t = a.RankHeroInfo.verify(e.HeroInfo)) ? "HeroInfo." + t : null;
                var t
            }, e.fromObject = function(e) {
                if (e instanceof a.RankAchievement) return e;
                var t = new a.RankAchievement;
                if (null != e.RewardIndex && (i.Long ? (t.RewardIndex = i.Long.fromValue(e.RewardIndex)).unsigned = !1 : "string" == typeof e.RewardIndex ? t.RewardIndex = parseInt(e.RewardIndex, 10) : "number" == typeof e.RewardIndex ? t.RewardIndex = e.RewardIndex : "object" == typeof e.RewardIndex && (t.RewardIndex = new i.LongBits(e.RewardIndex.low >>> 0, e.RewardIndex.high >>> 0).toNumber())), null != e.Value && (i.Long ? (t.Value = i.Long.fromValue(e.Value)).unsigned = !1 : "string" == typeof e.Value ? t.Value = parseInt(e.Value, 10) : "number" == typeof e.Value ? t.Value = e.Value : "object" == typeof e.Value && (t.Value = new i.LongBits(e.Value.low >>> 0, e.Value.high >>> 0).toNumber())), null != e.UpdateTime && (i.Long ? (t.UpdateTime = i.Long.fromValue(e.UpdateTime)).unsigned = !1 : "string" == typeof e.UpdateTime ? t.UpdateTime = parseInt(e.UpdateTime, 10) : "number" == typeof e.UpdateTime ? t.UpdateTime = e.UpdateTime : "object" == typeof e.UpdateTime && (t.UpdateTime = new i.LongBits(e.UpdateTime.low >>> 0, e.UpdateTime.high >>> 0).toNumber())), null != e.PlayerInfo) {
                    if ("object" != typeof e.PlayerInfo) throw TypeError(".RankAchievement.PlayerInfo: object expected");
                    t.PlayerInfo = a.RankPlayerInfo.fromObject(e.PlayerInfo)
                }
                if (null != e.HeroInfo) {
                    if ("object" != typeof e.HeroInfo) throw TypeError(".RankAchievement.HeroInfo: object expected");
                    t.HeroInfo = a.RankHeroInfo.fromObject(e.HeroInfo)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.RewardIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.RewardIndex = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Value = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Value = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.UpdateTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UpdateTime = t.longs === String ? "0" : 0, n.PlayerInfo = null, n.HeroInfo = null
                }
                return null != e.RewardIndex && e.hasOwnProperty("RewardIndex") && ("number" == typeof e.RewardIndex ? n.RewardIndex = t.longs === String ? String(e.RewardIndex) : e.RewardIndex : n.RewardIndex = t.longs === String ? i.Long.prototype.toString.call(e.RewardIndex) : t.longs === Number ? new i.LongBits(e.RewardIndex.low >>> 0, e.RewardIndex.high >>> 0).toNumber() : e.RewardIndex), null != e.Value && e.hasOwnProperty("Value") && ("number" == typeof e.Value ? n.Value = t.longs === String ? String(e.Value) : e.Value : n.Value = t.longs === String ? i.Long.prototype.toString.call(e.Value) : t.longs === Number ? new i.LongBits(e.Value.low >>> 0, e.Value.high >>> 0).toNumber() : e.Value), null != e.UpdateTime && e.hasOwnProperty("UpdateTime") && ("number" == typeof e.UpdateTime ? n.UpdateTime = t.longs === String ? String(e.UpdateTime) : e.UpdateTime : n.UpdateTime = t.longs === String ? i.Long.prototype.toString.call(e.UpdateTime) : t.longs === Number ? new i.LongBits(e.UpdateTime.low >>> 0, e.UpdateTime.high >>> 0).toNumber() : e.UpdateTime), null != e.PlayerInfo && e.hasOwnProperty("PlayerInfo") && (n.PlayerInfo = a.RankPlayerInfo.toObject(e.PlayerInfo, t)), null != e.HeroInfo && e.hasOwnProperty("HeroInfo") && (n.HeroInfo = a.RankHeroInfo.toObject(e.HeroInfo, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RankAchievement"
            }, e
        }(), a.RankData = function() {
            function e(e) {
                if (this.Rows = [], this.Achievements = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RankType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Zone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rows = i.emptyArray, e.prototype.Achievements = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.RankType && Object.hasOwnProperty.call(e, "RankType") && t.uint32(8).int64(e.RankType), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(16).int64(e.Zone), null != e.Rows && e.Rows.length)
                    for (var n = 0; n < e.Rows.length; ++n) a.RankRowData.encode(e.Rows[n], t.uint32(26).fork()).ldelim();
                if (null != e.Achievements && e.Achievements.length)
                    for (n = 0; n < e.Achievements.length; ++n) a.RankAchievement.encode(e.Achievements[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RankData; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.RankType = e.int64();
                            break;
                        case 2:
                            r.Zone = e.int64();
                            break;
                        case 3:
                            r.Rows && r.Rows.length || (r.Rows = []), r.Rows.push(a.RankRowData.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.Achievements && r.Achievements.length || (r.Achievements = []), r.Achievements.push(a.RankAchievement.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.RankType && e.hasOwnProperty("RankType") && !(i.isInteger(e.RankType) || e.RankType && i.isInteger(e.RankType.low) && i.isInteger(e.RankType.high))) return "RankType: integer|Long expected";
                if (null != e.Zone && e.hasOwnProperty("Zone") && !(i.isInteger(e.Zone) || e.Zone && i.isInteger(e.Zone.low) && i.isInteger(e.Zone.high))) return "Zone: integer|Long expected";
                if (null != e.Rows && e.hasOwnProperty("Rows")) {
                    if (!Array.isArray(e.Rows)) return "Rows: array expected";
                    for (var t = 0; t < e.Rows.length; ++t)
                        if (n = a.RankRowData.verify(e.Rows[t])) return "Rows." + n
                }
                if (null != e.Achievements && e.hasOwnProperty("Achievements")) {
                    if (!Array.isArray(e.Achievements)) return "Achievements: array expected";
                    for (t = 0; t < e.Achievements.length; ++t) {
                        var n;
                        if (n = a.RankAchievement.verify(e.Achievements[t])) return "Achievements." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.RankData) return e;
                var t = new a.RankData;
                if (null != e.RankType && (i.Long ? (t.RankType = i.Long.fromValue(e.RankType)).unsigned = !1 : "string" == typeof e.RankType ? t.RankType = parseInt(e.RankType, 10) : "number" == typeof e.RankType ? t.RankType = e.RankType : "object" == typeof e.RankType && (t.RankType = new i.LongBits(e.RankType.low >>> 0, e.RankType.high >>> 0).toNumber())), null != e.Zone && (i.Long ? (t.Zone = i.Long.fromValue(e.Zone)).unsigned = !1 : "string" == typeof e.Zone ? t.Zone = parseInt(e.Zone, 10) : "number" == typeof e.Zone ? t.Zone = e.Zone : "object" == typeof e.Zone && (t.Zone = new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber())), e.Rows) {
                    if (!Array.isArray(e.Rows)) throw TypeError(".RankData.Rows: array expected");
                    t.Rows = [];
                    for (var n = 0; n < e.Rows.length; ++n) {
                        if ("object" != typeof e.Rows[n]) throw TypeError(".RankData.Rows: object expected");
                        t.Rows[n] = a.RankRowData.fromObject(e.Rows[n])
                    }
                }
                if (e.Achievements) {
                    if (!Array.isArray(e.Achievements)) throw TypeError(".RankData.Achievements: array expected");
                    for (t.Achievements = [], n = 0; n < e.Achievements.length; ++n) {
                        if ("object" != typeof e.Achievements[n]) throw TypeError(".RankData.Achievements: object expected");
                        t.Achievements[n] = a.RankAchievement.fromObject(e.Achievements[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rows = [], n.Achievements = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.RankType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.RankType = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Zone = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Zone = t.longs === String ? "0" : 0
                }
                if (null != e.RankType && e.hasOwnProperty("RankType") && ("number" == typeof e.RankType ? n.RankType = t.longs === String ? String(e.RankType) : e.RankType : n.RankType = t.longs === String ? i.Long.prototype.toString.call(e.RankType) : t.longs === Number ? new i.LongBits(e.RankType.low >>> 0, e.RankType.high >>> 0).toNumber() : e.RankType), null != e.Zone && e.hasOwnProperty("Zone") && ("number" == typeof e.Zone ? n.Zone = t.longs === String ? String(e.Zone) : e.Zone : n.Zone = t.longs === String ? i.Long.prototype.toString.call(e.Zone) : t.longs === Number ? new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber() : e.Zone), e.Rows && e.Rows.length) {
                    n.Rows = [];
                    for (var r = 0; r < e.Rows.length; ++r) n.Rows[r] = a.RankRowData.toObject(e.Rows[r], t)
                }
                if (e.Achievements && e.Achievements.length)
                    for (n.Achievements = [], r = 0; r < e.Achievements.length; ++r) n.Achievements[r] = a.RankAchievement.toObject(e.Achievements[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RankData"
            }, e
        }(), a.PlayerDetailInfo = function() {
            function e(e) {
                if (this.HeroPersonality = {}, this.AngelIds = [], this.NotShow = [], this.HeroMaxStar = {}, this.MagicCircles = {}, this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Zone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.HeadIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadFrame = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.VipLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LastActiveTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Title = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AllianceName = "", e.prototype.IsFriend = !1, e.prototype.InBlacklist = !1, e.prototype.IsGivedGift = !1, e.prototype.CanAcceptedGift = !1, e.prototype.HeroPersonality = i.emptyObject, e.prototype.Country = "", e.prototype.AngelIds = i.emptyArray, e.prototype.Designation = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SameAlliance = !1, e.prototype.Signature = "", e.prototype.NotShow = i.emptyArray, e.prototype.HeroMaxStar = i.emptyObject, e.prototype.Locale = "", e.prototype.ChatWindow = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MagicCircles = i.emptyObject, e.prototype.MagicCircle = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Pet = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PlayerType = 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(16).int64(e.Zone), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(26).string(e.Name), null != e.HeadIcon && Object.hasOwnProperty.call(e, "HeadIcon") && t.uint32(32).int64(e.HeadIcon), null != e.HeadFrame && Object.hasOwnProperty.call(e, "HeadFrame") && t.uint32(40).int64(e.HeadFrame), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(48).int64(e.Level), null != e.VipLevel && Object.hasOwnProperty.call(e, "VipLevel") && t.uint32(56).int64(e.VipLevel), null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(64).int64(e.Power), null != e.LastActiveTime && Object.hasOwnProperty.call(e, "LastActiveTime") && t.uint32(72).int64(e.LastActiveTime), null != e.Title && Object.hasOwnProperty.call(e, "Title") && t.uint32(80).int64(e.Title), null != e.AllianceName && Object.hasOwnProperty.call(e, "AllianceName") && t.uint32(106).string(e.AllianceName), null != e.IsFriend && Object.hasOwnProperty.call(e, "IsFriend") && t.uint32(112).bool(e.IsFriend), null != e.InBlacklist && Object.hasOwnProperty.call(e, "InBlacklist") && t.uint32(120).bool(e.InBlacklist), null != e.IsGivedGift && Object.hasOwnProperty.call(e, "IsGivedGift") && t.uint32(128).bool(e.IsGivedGift), null != e.CanAcceptedGift && Object.hasOwnProperty.call(e, "CanAcceptedGift") && t.uint32(136).bool(e.CanAcceptedGift), null != e.HeroPersonality && Object.hasOwnProperty.call(e, "HeroPersonality"))
                    for (var n = Object.keys(e.HeroPersonality), o = 0; o < n.length; ++o) t.uint32(178).fork().uint32(8).int64(n[o]).uint32(16).int64(e.HeroPersonality[n[o]]).ldelim();
                if (null != e.Country && Object.hasOwnProperty.call(e, "Country") && t.uint32(186).string(e.Country), null != e.AngelIds && e.AngelIds.length) {
                    for (t.uint32(194).fork(), o = 0; o < e.AngelIds.length; ++o) t.int64(e.AngelIds[o]);
                    t.ldelim()
                }
                if (null != e.Designation && Object.hasOwnProperty.call(e, "Designation") && t.uint32(200).int64(e.Designation), null != e.SameAlliance && Object.hasOwnProperty.call(e, "SameAlliance") && t.uint32(208).bool(e.SameAlliance), null != e.Signature && Object.hasOwnProperty.call(e, "Signature") && t.uint32(218).string(e.Signature), null != e.NotShow && e.NotShow.length) {
                    for (t.uint32(234).fork(), o = 0; o < e.NotShow.length; ++o) t.int64(e.NotShow[o]);
                    t.ldelim()
                }
                if (null != e.HeroMaxStar && Object.hasOwnProperty.call(e, "HeroMaxStar"))
                    for (n = Object.keys(e.HeroMaxStar), o = 0; o < n.length; ++o) t.uint32(242).fork().uint32(8).int64(n[o]).uint32(16).int64(e.HeroMaxStar[n[o]]).ldelim();
                if (null != e.Locale && Object.hasOwnProperty.call(e, "Locale") && t.uint32(250).string(e.Locale), null != e.ChatWindow && Object.hasOwnProperty.call(e, "ChatWindow") && t.uint32(256).int64(e.ChatWindow), null != e.MagicCircles && Object.hasOwnProperty.call(e, "MagicCircles"))
                    for (n = Object.keys(e.MagicCircles), o = 0; o < n.length; ++o) t.uint32(266).fork().uint32(8).int64(n[o]), a.MagicCircle_Model.encode(e.MagicCircles[n[o]], t.uint32(18).fork()).ldelim().ldelim();
                if (null != e.MagicCircle && Object.hasOwnProperty.call(e, "MagicCircle") && t.uint32(272).int64(e.MagicCircle), null != e.Pet && Object.hasOwnProperty.call(e, "Pet") && t.uint32(360).int64(e.Pet), null != e.PlayerType && Object.hasOwnProperty.call(e, "PlayerType") && t.uint32(792).int32(e.PlayerType), null != e.Formations && e.Formations.length)
                    for (o = 0; o < e.Formations.length; ++o) a.UserFormation.encode(e.Formations[o], t.uint32(8010).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.PlayerDetailInfo; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Uid = e.int64();
                            break;
                        case 2:
                            l.Zone = e.int64();
                            break;
                        case 3:
                            l.Name = e.string();
                            break;
                        case 4:
                            l.HeadIcon = e.int64();
                            break;
                        case 5:
                            l.HeadFrame = e.int64();
                            break;
                        case 6:
                            l.Level = e.int64();
                            break;
                        case 7:
                            l.VipLevel = e.int64();
                            break;
                        case 8:
                            l.Power = e.int64();
                            break;
                        case 9:
                            l.LastActiveTime = e.int64();
                            break;
                        case 10:
                            l.Title = e.int64();
                            break;
                        case 13:
                            l.AllianceName = e.string();
                            break;
                        case 14:
                            l.IsFriend = e.bool();
                            break;
                        case 15:
                            l.InBlacklist = e.bool();
                            break;
                        case 16:
                            l.IsGivedGift = e.bool();
                            break;
                        case 17:
                            l.CanAcceptedGift = e.bool();
                            break;
                        case 22:
                            l.HeroPersonality === i.emptyObject && (l.HeroPersonality = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = 0; e.pos < u;) switch ((p = e.uint32()) >>> 3) {
                                case 1:
                                    n = e.int64();
                                    break;
                                case 2:
                                    r = e.int64();
                                    break;
                                default:
                                    e.skipType(7 & p)
                            }
                            l.HeroPersonality["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 23:
                            l.Country = e.string();
                            break;
                        case 24:
                            if (l.AngelIds && l.AngelIds.length || (l.AngelIds = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.AngelIds.push(e.int64());
                            else l.AngelIds.push(e.int64());
                            break;
                        case 25:
                            l.Designation = e.int64();
                            break;
                        case 26:
                            l.SameAlliance = e.bool();
                            break;
                        case 27:
                            l.Signature = e.string();
                            break;
                        case 29:
                            if (l.NotShow && l.NotShow.length || (l.NotShow = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.NotShow.push(e.int64());
                            else l.NotShow.push(e.int64());
                            break;
                        case 30:
                            for (l.HeroMaxStar === i.emptyObject && (l.HeroMaxStar = {}), u = e.uint32() + e.pos, n = 0, r = 0; e.pos < u;) switch ((p = e.uint32()) >>> 3) {
                                case 1:
                                    n = e.int64();
                                    break;
                                case 2:
                                    r = e.int64();
                                    break;
                                default:
                                    e.skipType(7 & p)
                            }
                            l.HeroMaxStar["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 31:
                            l.Locale = e.string();
                            break;
                        case 32:
                            l.ChatWindow = e.int64();
                            break;
                        case 33:
                            for (l.MagicCircles === i.emptyObject && (l.MagicCircles = {}), u = e.uint32() + e.pos, n = 0, r = null; e.pos < u;) {
                                var p;
                                switch ((p = e.uint32()) >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = a.MagicCircle_Model.decode(e, e.uint32());
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.MagicCircles["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 34:
                            l.MagicCircle = e.int64();
                            break;
                        case 45:
                            l.Pet = e.int64();
                            break;
                        case 99:
                            l.PlayerType = e.int32();
                            break;
                        case 1001:
                            l.Formations && l.Formations.length || (l.Formations = []), l.Formations.push(a.UserFormation.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high))) return "Uid: integer|Long expected";
                if (null != e.Zone && e.hasOwnProperty("Zone") && !(i.isInteger(e.Zone) || e.Zone && i.isInteger(e.Zone.low) && i.isInteger(e.Zone.high))) return "Zone: integer|Long expected";
                if (null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name)) return "Name: string expected";
                if (null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && !(i.isInteger(e.HeadIcon) || e.HeadIcon && i.isInteger(e.HeadIcon.low) && i.isInteger(e.HeadIcon.high))) return "HeadIcon: integer|Long expected";
                if (null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && !(i.isInteger(e.HeadFrame) || e.HeadFrame && i.isInteger(e.HeadFrame.low) && i.isInteger(e.HeadFrame.high))) return "HeadFrame: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.VipLevel && e.hasOwnProperty("VipLevel") && !(i.isInteger(e.VipLevel) || e.VipLevel && i.isInteger(e.VipLevel.low) && i.isInteger(e.VipLevel.high))) return "VipLevel: integer|Long expected";
                if (null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high))) return "Power: integer|Long expected";
                if (null != e.LastActiveTime && e.hasOwnProperty("LastActiveTime") && !(i.isInteger(e.LastActiveTime) || e.LastActiveTime && i.isInteger(e.LastActiveTime.low) && i.isInteger(e.LastActiveTime.high))) return "LastActiveTime: integer|Long expected";
                if (null != e.Title && e.hasOwnProperty("Title") && !(i.isInteger(e.Title) || e.Title && i.isInteger(e.Title.low) && i.isInteger(e.Title.high))) return "Title: integer|Long expected";
                if (null != e.AllianceName && e.hasOwnProperty("AllianceName") && !i.isString(e.AllianceName)) return "AllianceName: string expected";
                if (null != e.IsFriend && e.hasOwnProperty("IsFriend") && "boolean" != typeof e.IsFriend) return "IsFriend: boolean expected";
                if (null != e.InBlacklist && e.hasOwnProperty("InBlacklist") && "boolean" != typeof e.InBlacklist) return "InBlacklist: boolean expected";
                if (null != e.IsGivedGift && e.hasOwnProperty("IsGivedGift") && "boolean" != typeof e.IsGivedGift) return "IsGivedGift: boolean expected";
                if (null != e.CanAcceptedGift && e.hasOwnProperty("CanAcceptedGift") && "boolean" != typeof e.CanAcceptedGift) return "CanAcceptedGift: boolean expected";
                if (null != e.HeroPersonality && e.hasOwnProperty("HeroPersonality")) {
                    if (!i.isObject(e.HeroPersonality)) return "HeroPersonality: object expected";
                    for (var t = Object.keys(e.HeroPersonality), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "HeroPersonality: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.HeroPersonality[t[n]]) || e.HeroPersonality[t[n]] && i.isInteger(e.HeroPersonality[t[n]].low) && i.isInteger(e.HeroPersonality[t[n]].high))) return "HeroPersonality: integer|Long{k:int64} expected"
                    }
                }
                if (null != e.Country && e.hasOwnProperty("Country") && !i.isString(e.Country)) return "Country: string expected";
                if (null != e.AngelIds && e.hasOwnProperty("AngelIds")) {
                    if (!Array.isArray(e.AngelIds)) return "AngelIds: array expected";
                    for (n = 0; n < e.AngelIds.length; ++n)
                        if (!(i.isInteger(e.AngelIds[n]) || e.AngelIds[n] && i.isInteger(e.AngelIds[n].low) && i.isInteger(e.AngelIds[n].high))) return "AngelIds: integer|Long[] expected"
                }
                if (null != e.Designation && e.hasOwnProperty("Designation") && !(i.isInteger(e.Designation) || e.Designation && i.isInteger(e.Designation.low) && i.isInteger(e.Designation.high))) return "Designation: integer|Long expected";
                if (null != e.SameAlliance && e.hasOwnProperty("SameAlliance") && "boolean" != typeof e.SameAlliance) return "SameAlliance: boolean expected";
                if (null != e.Signature && e.hasOwnProperty("Signature") && !i.isString(e.Signature)) return "Signature: string expected";
                if (null != e.NotShow && e.hasOwnProperty("NotShow")) {
                    if (!Array.isArray(e.NotShow)) return "NotShow: array expected";
                    for (n = 0; n < e.NotShow.length; ++n)
                        if (!(i.isInteger(e.NotShow[n]) || e.NotShow[n] && i.isInteger(e.NotShow[n].low) && i.isInteger(e.NotShow[n].high))) return "NotShow: integer|Long[] expected"
                }
                if (null != e.HeroMaxStar && e.hasOwnProperty("HeroMaxStar")) {
                    if (!i.isObject(e.HeroMaxStar)) return "HeroMaxStar: object expected";
                    for (t = Object.keys(e.HeroMaxStar), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "HeroMaxStar: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.HeroMaxStar[t[n]]) || e.HeroMaxStar[t[n]] && i.isInteger(e.HeroMaxStar[t[n]].low) && i.isInteger(e.HeroMaxStar[t[n]].high))) return "HeroMaxStar: integer|Long{k:int64} expected"
                    }
                }
                if (null != e.Locale && e.hasOwnProperty("Locale") && !i.isString(e.Locale)) return "Locale: string expected";
                if (null != e.ChatWindow && e.hasOwnProperty("ChatWindow") && !(i.isInteger(e.ChatWindow) || e.ChatWindow && i.isInteger(e.ChatWindow.low) && i.isInteger(e.ChatWindow.high))) return "ChatWindow: integer|Long expected";
                if (null != e.MagicCircles && e.hasOwnProperty("MagicCircles")) {
                    if (!i.isObject(e.MagicCircles)) return "MagicCircles: object expected";
                    for (t = Object.keys(e.MagicCircles), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "MagicCircles: integer|Long key{k:int64} expected";
                        if (o = a.MagicCircle_Model.verify(e.MagicCircles[t[n]])) return "MagicCircles." + o
                    }
                }
                if (null != e.MagicCircle && e.hasOwnProperty("MagicCircle") && !(i.isInteger(e.MagicCircle) || e.MagicCircle && i.isInteger(e.MagicCircle.low) && i.isInteger(e.MagicCircle.high))) return "MagicCircle: integer|Long expected";
                if (null != e.Pet && e.hasOwnProperty("Pet") && !(i.isInteger(e.Pet) || e.Pet && i.isInteger(e.Pet.low) && i.isInteger(e.Pet.high))) return "Pet: integer|Long expected";
                if (null != e.PlayerType && e.hasOwnProperty("PlayerType") && !i.isInteger(e.PlayerType)) return "PlayerType: integer expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (n = 0; n < e.Formations.length; ++n) {
                        var o;
                        if (o = a.UserFormation.verify(e.Formations[n])) return "Formations." + o
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PlayerDetailInfo) return e;
                var t = new a.PlayerDetailInfo;
                if (null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.Zone && (i.Long ? (t.Zone = i.Long.fromValue(e.Zone)).unsigned = !1 : "string" == typeof e.Zone ? t.Zone = parseInt(e.Zone, 10) : "number" == typeof e.Zone ? t.Zone = e.Zone : "object" == typeof e.Zone && (t.Zone = new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.HeadIcon && (i.Long ? (t.HeadIcon = i.Long.fromValue(e.HeadIcon)).unsigned = !1 : "string" == typeof e.HeadIcon ? t.HeadIcon = parseInt(e.HeadIcon, 10) : "number" == typeof e.HeadIcon ? t.HeadIcon = e.HeadIcon : "object" == typeof e.HeadIcon && (t.HeadIcon = new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber())), null != e.HeadFrame && (i.Long ? (t.HeadFrame = i.Long.fromValue(e.HeadFrame)).unsigned = !1 : "string" == typeof e.HeadFrame ? t.HeadFrame = parseInt(e.HeadFrame, 10) : "number" == typeof e.HeadFrame ? t.HeadFrame = e.HeadFrame : "object" == typeof e.HeadFrame && (t.HeadFrame = new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.VipLevel && (i.Long ? (t.VipLevel = i.Long.fromValue(e.VipLevel)).unsigned = !1 : "string" == typeof e.VipLevel ? t.VipLevel = parseInt(e.VipLevel, 10) : "number" == typeof e.VipLevel ? t.VipLevel = e.VipLevel : "object" == typeof e.VipLevel && (t.VipLevel = new i.LongBits(e.VipLevel.low >>> 0, e.VipLevel.high >>> 0).toNumber())), null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.LastActiveTime && (i.Long ? (t.LastActiveTime = i.Long.fromValue(e.LastActiveTime)).unsigned = !1 : "string" == typeof e.LastActiveTime ? t.LastActiveTime = parseInt(e.LastActiveTime, 10) : "number" == typeof e.LastActiveTime ? t.LastActiveTime = e.LastActiveTime : "object" == typeof e.LastActiveTime && (t.LastActiveTime = new i.LongBits(e.LastActiveTime.low >>> 0, e.LastActiveTime.high >>> 0).toNumber())), null != e.Title && (i.Long ? (t.Title = i.Long.fromValue(e.Title)).unsigned = !1 : "string" == typeof e.Title ? t.Title = parseInt(e.Title, 10) : "number" == typeof e.Title ? t.Title = e.Title : "object" == typeof e.Title && (t.Title = new i.LongBits(e.Title.low >>> 0, e.Title.high >>> 0).toNumber())), null != e.AllianceName && (t.AllianceName = String(e.AllianceName)), null != e.IsFriend && (t.IsFriend = Boolean(e.IsFriend)), null != e.InBlacklist && (t.InBlacklist = Boolean(e.InBlacklist)), null != e.IsGivedGift && (t.IsGivedGift = Boolean(e.IsGivedGift)), null != e.CanAcceptedGift && (t.CanAcceptedGift = Boolean(e.CanAcceptedGift)), e.HeroPersonality) {
                    if ("object" != typeof e.HeroPersonality) throw TypeError(".PlayerDetailInfo.HeroPersonality: object expected");
                    t.HeroPersonality = {};
                    for (var n = Object.keys(e.HeroPersonality), o = 0; o < n.length; ++o) i.Long ? (t.HeroPersonality[n[o]] = i.Long.fromValue(e.HeroPersonality[n[o]])).unsigned = !1 : "string" == typeof e.HeroPersonality[n[o]] ? t.HeroPersonality[n[o]] = parseInt(e.HeroPersonality[n[o]], 10) : "number" == typeof e.HeroPersonality[n[o]] ? t.HeroPersonality[n[o]] = e.HeroPersonality[n[o]] : "object" == typeof e.HeroPersonality[n[o]] && (t.HeroPersonality[n[o]] = new i.LongBits(e.HeroPersonality[n[o]].low >>> 0, e.HeroPersonality[n[o]].high >>> 0).toNumber())
                }
                if (null != e.Country && (t.Country = String(e.Country)), e.AngelIds) {
                    if (!Array.isArray(e.AngelIds)) throw TypeError(".PlayerDetailInfo.AngelIds: array expected");
                    for (t.AngelIds = [], o = 0; o < e.AngelIds.length; ++o) i.Long ? (t.AngelIds[o] = i.Long.fromValue(e.AngelIds[o])).unsigned = !1 : "string" == typeof e.AngelIds[o] ? t.AngelIds[o] = parseInt(e.AngelIds[o], 10) : "number" == typeof e.AngelIds[o] ? t.AngelIds[o] = e.AngelIds[o] : "object" == typeof e.AngelIds[o] && (t.AngelIds[o] = new i.LongBits(e.AngelIds[o].low >>> 0, e.AngelIds[o].high >>> 0).toNumber())
                }
                if (null != e.Designation && (i.Long ? (t.Designation = i.Long.fromValue(e.Designation)).unsigned = !1 : "string" == typeof e.Designation ? t.Designation = parseInt(e.Designation, 10) : "number" == typeof e.Designation ? t.Designation = e.Designation : "object" == typeof e.Designation && (t.Designation = new i.LongBits(e.Designation.low >>> 0, e.Designation.high >>> 0).toNumber())), null != e.SameAlliance && (t.SameAlliance = Boolean(e.SameAlliance)), null != e.Signature && (t.Signature = String(e.Signature)), e.NotShow) {
                    if (!Array.isArray(e.NotShow)) throw TypeError(".PlayerDetailInfo.NotShow: array expected");
                    for (t.NotShow = [], o = 0; o < e.NotShow.length; ++o) i.Long ? (t.NotShow[o] = i.Long.fromValue(e.NotShow[o])).unsigned = !1 : "string" == typeof e.NotShow[o] ? t.NotShow[o] = parseInt(e.NotShow[o], 10) : "number" == typeof e.NotShow[o] ? t.NotShow[o] = e.NotShow[o] : "object" == typeof e.NotShow[o] && (t.NotShow[o] = new i.LongBits(e.NotShow[o].low >>> 0, e.NotShow[o].high >>> 0).toNumber())
                }
                if (e.HeroMaxStar) {
                    if ("object" != typeof e.HeroMaxStar) throw TypeError(".PlayerDetailInfo.HeroMaxStar: object expected");
                    for (t.HeroMaxStar = {}, n = Object.keys(e.HeroMaxStar), o = 0; o < n.length; ++o) i.Long ? (t.HeroMaxStar[n[o]] = i.Long.fromValue(e.HeroMaxStar[n[o]])).unsigned = !1 : "string" == typeof e.HeroMaxStar[n[o]] ? t.HeroMaxStar[n[o]] = parseInt(e.HeroMaxStar[n[o]], 10) : "number" == typeof e.HeroMaxStar[n[o]] ? t.HeroMaxStar[n[o]] = e.HeroMaxStar[n[o]] : "object" == typeof e.HeroMaxStar[n[o]] && (t.HeroMaxStar[n[o]] = new i.LongBits(e.HeroMaxStar[n[o]].low >>> 0, e.HeroMaxStar[n[o]].high >>> 0).toNumber())
                }
                if (null != e.Locale && (t.Locale = String(e.Locale)), null != e.ChatWindow && (i.Long ? (t.ChatWindow = i.Long.fromValue(e.ChatWindow)).unsigned = !1 : "string" == typeof e.ChatWindow ? t.ChatWindow = parseInt(e.ChatWindow, 10) : "number" == typeof e.ChatWindow ? t.ChatWindow = e.ChatWindow : "object" == typeof e.ChatWindow && (t.ChatWindow = new i.LongBits(e.ChatWindow.low >>> 0, e.ChatWindow.high >>> 0).toNumber())), e.MagicCircles) {
                    if ("object" != typeof e.MagicCircles) throw TypeError(".PlayerDetailInfo.MagicCircles: object expected");
                    for (t.MagicCircles = {}, n = Object.keys(e.MagicCircles), o = 0; o < n.length; ++o) {
                        if ("object" != typeof e.MagicCircles[n[o]]) throw TypeError(".PlayerDetailInfo.MagicCircles: object expected");
                        t.MagicCircles[n[o]] = a.MagicCircle_Model.fromObject(e.MagicCircles[n[o]])
                    }
                }
                if (null != e.MagicCircle && (i.Long ? (t.MagicCircle = i.Long.fromValue(e.MagicCircle)).unsigned = !1 : "string" == typeof e.MagicCircle ? t.MagicCircle = parseInt(e.MagicCircle, 10) : "number" == typeof e.MagicCircle ? t.MagicCircle = e.MagicCircle : "object" == typeof e.MagicCircle && (t.MagicCircle = new i.LongBits(e.MagicCircle.low >>> 0, e.MagicCircle.high >>> 0).toNumber())), null != e.Pet && (i.Long ? (t.Pet = i.Long.fromValue(e.Pet)).unsigned = !1 : "string" == typeof e.Pet ? t.Pet = parseInt(e.Pet, 10) : "number" == typeof e.Pet ? t.Pet = e.Pet : "object" == typeof e.Pet && (t.Pet = new i.LongBits(e.Pet.low >>> 0, e.Pet.high >>> 0).toNumber())), null != e.PlayerType && (t.PlayerType = 0 | e.PlayerType), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".PlayerDetailInfo.Formations: array expected");
                    for (t.Formations = [], o = 0; o < e.Formations.length; ++o) {
                        if ("object" != typeof e.Formations[o]) throw TypeError(".PlayerDetailInfo.Formations: object expected");
                        t.Formations[o] = a.UserFormation.fromObject(e.Formations[o])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.AngelIds = [], o.NotShow = [], o.Formations = []), (t.objects || t.defaults) && (o.HeroPersonality = {}, o.HeroMaxStar = {}, o.MagicCircles = {}), t.defaults) {
                    if (i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.Uid = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.Uid = t.longs === String ? "0" : 0;
                    i.Long ? (r = new i.Long(0, 0, !1), o.Zone = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Zone = t.longs === String ? "0" : 0, o.Name = "", i.Long ? (r = new i.Long(0, 0, !1), o.HeadIcon = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.HeadIcon = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.HeadFrame = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.HeadFrame = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.Level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Level = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.VipLevel = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.VipLevel = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.Power = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Power = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.LastActiveTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.LastActiveTime = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.Title = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Title = t.longs === String ? "0" : 0, o.AllianceName = "", o.IsFriend = !1, o.InBlacklist = !1, o.IsGivedGift = !1, o.CanAcceptedGift = !1, o.Country = "", i.Long ? (r = new i.Long(0, 0, !1), o.Designation = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Designation = t.longs === String ? "0" : 0, o.SameAlliance = !1, o.Signature = "", o.Locale = "", i.Long ? (r = new i.Long(0, 0, !1), o.ChatWindow = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.ChatWindow = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.MagicCircle = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.MagicCircle = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.Pet = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Pet = t.longs === String ? "0" : 0, o.PlayerType = 0
                }
                if (null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? o.Uid = t.longs === String ? String(e.Uid) : e.Uid : o.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.Zone && e.hasOwnProperty("Zone") && ("number" == typeof e.Zone ? o.Zone = t.longs === String ? String(e.Zone) : e.Zone : o.Zone = t.longs === String ? i.Long.prototype.toString.call(e.Zone) : t.longs === Number ? new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber() : e.Zone), null != e.Name && e.hasOwnProperty("Name") && (o.Name = e.Name), null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && ("number" == typeof e.HeadIcon ? o.HeadIcon = t.longs === String ? String(e.HeadIcon) : e.HeadIcon : o.HeadIcon = t.longs === String ? i.Long.prototype.toString.call(e.HeadIcon) : t.longs === Number ? new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber() : e.HeadIcon), null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && ("number" == typeof e.HeadFrame ? o.HeadFrame = t.longs === String ? String(e.HeadFrame) : e.HeadFrame : o.HeadFrame = t.longs === String ? i.Long.prototype.toString.call(e.HeadFrame) : t.longs === Number ? new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber() : e.HeadFrame), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? o.Level = t.longs === String ? String(e.Level) : e.Level : o.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.VipLevel && e.hasOwnProperty("VipLevel") && ("number" == typeof e.VipLevel ? o.VipLevel = t.longs === String ? String(e.VipLevel) : e.VipLevel : o.VipLevel = t.longs === String ? i.Long.prototype.toString.call(e.VipLevel) : t.longs === Number ? new i.LongBits(e.VipLevel.low >>> 0, e.VipLevel.high >>> 0).toNumber() : e.VipLevel), null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? o.Power = t.longs === String ? String(e.Power) : e.Power : o.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.LastActiveTime && e.hasOwnProperty("LastActiveTime") && ("number" == typeof e.LastActiveTime ? o.LastActiveTime = t.longs === String ? String(e.LastActiveTime) : e.LastActiveTime : o.LastActiveTime = t.longs === String ? i.Long.prototype.toString.call(e.LastActiveTime) : t.longs === Number ? new i.LongBits(e.LastActiveTime.low >>> 0, e.LastActiveTime.high >>> 0).toNumber() : e.LastActiveTime), null != e.Title && e.hasOwnProperty("Title") && ("number" == typeof e.Title ? o.Title = t.longs === String ? String(e.Title) : e.Title : o.Title = t.longs === String ? i.Long.prototype.toString.call(e.Title) : t.longs === Number ? new i.LongBits(e.Title.low >>> 0, e.Title.high >>> 0).toNumber() : e.Title), null != e.AllianceName && e.hasOwnProperty("AllianceName") && (o.AllianceName = e.AllianceName), null != e.IsFriend && e.hasOwnProperty("IsFriend") && (o.IsFriend = e.IsFriend), null != e.InBlacklist && e.hasOwnProperty("InBlacklist") && (o.InBlacklist = e.InBlacklist), null != e.IsGivedGift && e.hasOwnProperty("IsGivedGift") && (o.IsGivedGift = e.IsGivedGift), null != e.CanAcceptedGift && e.hasOwnProperty("CanAcceptedGift") && (o.CanAcceptedGift = e.CanAcceptedGift), e.HeroPersonality && (n = Object.keys(e.HeroPersonality)).length) {
                    o.HeroPersonality = {};
                    for (var s = 0; s < n.length; ++s) "number" == typeof e.HeroPersonality[n[s]] ? o.HeroPersonality[n[s]] = t.longs === String ? String(e.HeroPersonality[n[s]]) : e.HeroPersonality[n[s]] : o.HeroPersonality[n[s]] = t.longs === String ? i.Long.prototype.toString.call(e.HeroPersonality[n[s]]) : t.longs === Number ? new i.LongBits(e.HeroPersonality[n[s]].low >>> 0, e.HeroPersonality[n[s]].high >>> 0).toNumber() : e.HeroPersonality[n[s]]
                }
                if (null != e.Country && e.hasOwnProperty("Country") && (o.Country = e.Country), e.AngelIds && e.AngelIds.length)
                    for (o.AngelIds = [], s = 0; s < e.AngelIds.length; ++s) "number" == typeof e.AngelIds[s] ? o.AngelIds[s] = t.longs === String ? String(e.AngelIds[s]) : e.AngelIds[s] : o.AngelIds[s] = t.longs === String ? i.Long.prototype.toString.call(e.AngelIds[s]) : t.longs === Number ? new i.LongBits(e.AngelIds[s].low >>> 0, e.AngelIds[s].high >>> 0).toNumber() : e.AngelIds[s];
                if (null != e.Designation && e.hasOwnProperty("Designation") && ("number" == typeof e.Designation ? o.Designation = t.longs === String ? String(e.Designation) : e.Designation : o.Designation = t.longs === String ? i.Long.prototype.toString.call(e.Designation) : t.longs === Number ? new i.LongBits(e.Designation.low >>> 0, e.Designation.high >>> 0).toNumber() : e.Designation), null != e.SameAlliance && e.hasOwnProperty("SameAlliance") && (o.SameAlliance = e.SameAlliance), null != e.Signature && e.hasOwnProperty("Signature") && (o.Signature = e.Signature), e.NotShow && e.NotShow.length)
                    for (o.NotShow = [], s = 0; s < e.NotShow.length; ++s) "number" == typeof e.NotShow[s] ? o.NotShow[s] = t.longs === String ? String(e.NotShow[s]) : e.NotShow[s] : o.NotShow[s] = t.longs === String ? i.Long.prototype.toString.call(e.NotShow[s]) : t.longs === Number ? new i.LongBits(e.NotShow[s].low >>> 0, e.NotShow[s].high >>> 0).toNumber() : e.NotShow[s];
                if (e.HeroMaxStar && (n = Object.keys(e.HeroMaxStar)).length)
                    for (o.HeroMaxStar = {}, s = 0; s < n.length; ++s) "number" == typeof e.HeroMaxStar[n[s]] ? o.HeroMaxStar[n[s]] = t.longs === String ? String(e.HeroMaxStar[n[s]]) : e.HeroMaxStar[n[s]] : o.HeroMaxStar[n[s]] = t.longs === String ? i.Long.prototype.toString.call(e.HeroMaxStar[n[s]]) : t.longs === Number ? new i.LongBits(e.HeroMaxStar[n[s]].low >>> 0, e.HeroMaxStar[n[s]].high >>> 0).toNumber() : e.HeroMaxStar[n[s]];
                if (null != e.Locale && e.hasOwnProperty("Locale") && (o.Locale = e.Locale), null != e.ChatWindow && e.hasOwnProperty("ChatWindow") && ("number" == typeof e.ChatWindow ? o.ChatWindow = t.longs === String ? String(e.ChatWindow) : e.ChatWindow : o.ChatWindow = t.longs === String ? i.Long.prototype.toString.call(e.ChatWindow) : t.longs === Number ? new i.LongBits(e.ChatWindow.low >>> 0, e.ChatWindow.high >>> 0).toNumber() : e.ChatWindow), e.MagicCircles && (n = Object.keys(e.MagicCircles)).length)
                    for (o.MagicCircles = {}, s = 0; s < n.length; ++s) o.MagicCircles[n[s]] = a.MagicCircle_Model.toObject(e.MagicCircles[n[s]], t);
                if (null != e.MagicCircle && e.hasOwnProperty("MagicCircle") && ("number" == typeof e.MagicCircle ? o.MagicCircle = t.longs === String ? String(e.MagicCircle) : e.MagicCircle : o.MagicCircle = t.longs === String ? i.Long.prototype.toString.call(e.MagicCircle) : t.longs === Number ? new i.LongBits(e.MagicCircle.low >>> 0, e.MagicCircle.high >>> 0).toNumber() : e.MagicCircle), null != e.Pet && e.hasOwnProperty("Pet") && ("number" == typeof e.Pet ? o.Pet = t.longs === String ? String(e.Pet) : e.Pet : o.Pet = t.longs === String ? i.Long.prototype.toString.call(e.Pet) : t.longs === Number ? new i.LongBits(e.Pet.low >>> 0, e.Pet.high >>> 0).toNumber() : e.Pet), null != e.PlayerType && e.hasOwnProperty("PlayerType") && (o.PlayerType = e.PlayerType), e.Formations && e.Formations.length)
                    for (o.Formations = [], s = 0; s < e.Formations.length; ++s) o.Formations[s] = a.UserFormation.toObject(e.Formations[s], t);
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PlayerDetailInfo"
            }, e
        }(), a.PlayerSimpleInfo = function() {
            function e(e) {
                if (this.NotShow = [], this.ArrayParam = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Zone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.HeadIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadFrame = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Title = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Country = "", e.prototype.Avatar = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Designation = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsFriend = !1, e.prototype.SameAlliance = !1, e.prototype.NotShow = i.emptyArray, e.prototype.ChatWindow = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Locale = "", e.prototype.MagicCircle = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Pet = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Value1 = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ArrayParam = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(16).int64(e.Zone), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(26).string(e.Name), null != e.HeadIcon && Object.hasOwnProperty.call(e, "HeadIcon") && t.uint32(32).int64(e.HeadIcon), null != e.HeadFrame && Object.hasOwnProperty.call(e, "HeadFrame") && t.uint32(40).int64(e.HeadFrame), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(48).int64(e.Level), null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(56).int64(e.Power), null != e.Title && Object.hasOwnProperty.call(e, "Title") && t.uint32(64).int64(e.Title), null != e.Country && Object.hasOwnProperty.call(e, "Country") && t.uint32(74).string(e.Country), null != e.Avatar && Object.hasOwnProperty.call(e, "Avatar") && t.uint32(80).int64(e.Avatar), null != e.Designation && Object.hasOwnProperty.call(e, "Designation") && t.uint32(88).int64(e.Designation), null != e.IsFriend && Object.hasOwnProperty.call(e, "IsFriend") && t.uint32(96).bool(e.IsFriend), null != e.SameAlliance && Object.hasOwnProperty.call(e, "SameAlliance") && t.uint32(104).bool(e.SameAlliance), null != e.NotShow && e.NotShow.length) {
                    t.uint32(114).fork();
                    for (var n = 0; n < e.NotShow.length; ++n) t.int64(e.NotShow[n]);
                    t.ldelim()
                }
                if (null != e.ChatWindow && Object.hasOwnProperty.call(e, "ChatWindow") && t.uint32(120).int64(e.ChatWindow), null != e.Locale && Object.hasOwnProperty.call(e, "Locale") && t.uint32(130).string(e.Locale), null != e.MagicCircle && Object.hasOwnProperty.call(e, "MagicCircle") && t.uint32(136).int64(e.MagicCircle), null != e.Pet && Object.hasOwnProperty.call(e, "Pet") && t.uint32(144).int64(e.Pet), null != e.Value1 && Object.hasOwnProperty.call(e, "Value1") && t.uint32(808).int64(e.Value1), null != e.ArrayParam && e.ArrayParam.length) {
                    for (t.uint32(818).fork(), n = 0; n < e.ArrayParam.length; ++n) t.int64(e.ArrayParam[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.PlayerSimpleInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.Zone = e.int64();
                            break;
                        case 3:
                            r.Name = e.string();
                            break;
                        case 4:
                            r.HeadIcon = e.int64();
                            break;
                        case 5:
                            r.HeadFrame = e.int64();
                            break;
                        case 6:
                            r.Level = e.int64();
                            break;
                        case 7:
                            r.Power = e.int64();
                            break;
                        case 8:
                            r.Title = e.int64();
                            break;
                        case 9:
                            r.Country = e.string();
                            break;
                        case 10:
                            r.Avatar = e.int64();
                            break;
                        case 11:
                            r.Designation = e.int64();
                            break;
                        case 12:
                            r.IsFriend = e.bool();
                            break;
                        case 13:
                            r.SameAlliance = e.bool();
                            break;
                        case 14:
                            if (r.NotShow && r.NotShow.length || (r.NotShow = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.NotShow.push(e.int64());
                            else r.NotShow.push(e.int64());
                            break;
                        case 15:
                            r.ChatWindow = e.int64();
                            break;
                        case 16:
                            r.Locale = e.string();
                            break;
                        case 17:
                            r.MagicCircle = e.int64();
                            break;
                        case 18:
                            r.Pet = e.int64();
                            break;
                        case 101:
                            r.Value1 = e.int64();
                            break;
                        case 102:
                            if (r.ArrayParam && r.ArrayParam.length || (r.ArrayParam = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.ArrayParam.push(e.int64());
                            else r.ArrayParam.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high))) return "Uid: integer|Long expected";
                if (null != e.Zone && e.hasOwnProperty("Zone") && !(i.isInteger(e.Zone) || e.Zone && i.isInteger(e.Zone.low) && i.isInteger(e.Zone.high))) return "Zone: integer|Long expected";
                if (null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name)) return "Name: string expected";
                if (null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && !(i.isInteger(e.HeadIcon) || e.HeadIcon && i.isInteger(e.HeadIcon.low) && i.isInteger(e.HeadIcon.high))) return "HeadIcon: integer|Long expected";
                if (null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && !(i.isInteger(e.HeadFrame) || e.HeadFrame && i.isInteger(e.HeadFrame.low) && i.isInteger(e.HeadFrame.high))) return "HeadFrame: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high))) return "Power: integer|Long expected";
                if (null != e.Title && e.hasOwnProperty("Title") && !(i.isInteger(e.Title) || e.Title && i.isInteger(e.Title.low) && i.isInteger(e.Title.high))) return "Title: integer|Long expected";
                if (null != e.Country && e.hasOwnProperty("Country") && !i.isString(e.Country)) return "Country: string expected";
                if (null != e.Avatar && e.hasOwnProperty("Avatar") && !(i.isInteger(e.Avatar) || e.Avatar && i.isInteger(e.Avatar.low) && i.isInteger(e.Avatar.high))) return "Avatar: integer|Long expected";
                if (null != e.Designation && e.hasOwnProperty("Designation") && !(i.isInteger(e.Designation) || e.Designation && i.isInteger(e.Designation.low) && i.isInteger(e.Designation.high))) return "Designation: integer|Long expected";
                if (null != e.IsFriend && e.hasOwnProperty("IsFriend") && "boolean" != typeof e.IsFriend) return "IsFriend: boolean expected";
                if (null != e.SameAlliance && e.hasOwnProperty("SameAlliance") && "boolean" != typeof e.SameAlliance) return "SameAlliance: boolean expected";
                if (null != e.NotShow && e.hasOwnProperty("NotShow")) {
                    if (!Array.isArray(e.NotShow)) return "NotShow: array expected";
                    for (var t = 0; t < e.NotShow.length; ++t)
                        if (!(i.isInteger(e.NotShow[t]) || e.NotShow[t] && i.isInteger(e.NotShow[t].low) && i.isInteger(e.NotShow[t].high))) return "NotShow: integer|Long[] expected"
                }
                if (null != e.ChatWindow && e.hasOwnProperty("ChatWindow") && !(i.isInteger(e.ChatWindow) || e.ChatWindow && i.isInteger(e.ChatWindow.low) && i.isInteger(e.ChatWindow.high))) return "ChatWindow: integer|Long expected";
                if (null != e.Locale && e.hasOwnProperty("Locale") && !i.isString(e.Locale)) return "Locale: string expected";
                if (null != e.MagicCircle && e.hasOwnProperty("MagicCircle") && !(i.isInteger(e.MagicCircle) || e.MagicCircle && i.isInteger(e.MagicCircle.low) && i.isInteger(e.MagicCircle.high))) return "MagicCircle: integer|Long expected";
                if (null != e.Pet && e.hasOwnProperty("Pet") && !(i.isInteger(e.Pet) || e.Pet && i.isInteger(e.Pet.low) && i.isInteger(e.Pet.high))) return "Pet: integer|Long expected";
                if (null != e.Value1 && e.hasOwnProperty("Value1") && !(i.isInteger(e.Value1) || e.Value1 && i.isInteger(e.Value1.low) && i.isInteger(e.Value1.high))) return "Value1: integer|Long expected";
                if (null != e.ArrayParam && e.hasOwnProperty("ArrayParam")) {
                    if (!Array.isArray(e.ArrayParam)) return "ArrayParam: array expected";
                    for (t = 0; t < e.ArrayParam.length; ++t)
                        if (!(i.isInteger(e.ArrayParam[t]) || e.ArrayParam[t] && i.isInteger(e.ArrayParam[t].low) && i.isInteger(e.ArrayParam[t].high))) return "ArrayParam: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.PlayerSimpleInfo) return e;
                var t = new a.PlayerSimpleInfo;
                if (null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.Zone && (i.Long ? (t.Zone = i.Long.fromValue(e.Zone)).unsigned = !1 : "string" == typeof e.Zone ? t.Zone = parseInt(e.Zone, 10) : "number" == typeof e.Zone ? t.Zone = e.Zone : "object" == typeof e.Zone && (t.Zone = new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.HeadIcon && (i.Long ? (t.HeadIcon = i.Long.fromValue(e.HeadIcon)).unsigned = !1 : "string" == typeof e.HeadIcon ? t.HeadIcon = parseInt(e.HeadIcon, 10) : "number" == typeof e.HeadIcon ? t.HeadIcon = e.HeadIcon : "object" == typeof e.HeadIcon && (t.HeadIcon = new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber())), null != e.HeadFrame && (i.Long ? (t.HeadFrame = i.Long.fromValue(e.HeadFrame)).unsigned = !1 : "string" == typeof e.HeadFrame ? t.HeadFrame = parseInt(e.HeadFrame, 10) : "number" == typeof e.HeadFrame ? t.HeadFrame = e.HeadFrame : "object" == typeof e.HeadFrame && (t.HeadFrame = new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.Title && (i.Long ? (t.Title = i.Long.fromValue(e.Title)).unsigned = !1 : "string" == typeof e.Title ? t.Title = parseInt(e.Title, 10) : "number" == typeof e.Title ? t.Title = e.Title : "object" == typeof e.Title && (t.Title = new i.LongBits(e.Title.low >>> 0, e.Title.high >>> 0).toNumber())), null != e.Country && (t.Country = String(e.Country)), null != e.Avatar && (i.Long ? (t.Avatar = i.Long.fromValue(e.Avatar)).unsigned = !1 : "string" == typeof e.Avatar ? t.Avatar = parseInt(e.Avatar, 10) : "number" == typeof e.Avatar ? t.Avatar = e.Avatar : "object" == typeof e.Avatar && (t.Avatar = new i.LongBits(e.Avatar.low >>> 0, e.Avatar.high >>> 0).toNumber())), null != e.Designation && (i.Long ? (t.Designation = i.Long.fromValue(e.Designation)).unsigned = !1 : "string" == typeof e.Designation ? t.Designation = parseInt(e.Designation, 10) : "number" == typeof e.Designation ? t.Designation = e.Designation : "object" == typeof e.Designation && (t.Designation = new i.LongBits(e.Designation.low >>> 0, e.Designation.high >>> 0).toNumber())), null != e.IsFriend && (t.IsFriend = Boolean(e.IsFriend)), null != e.SameAlliance && (t.SameAlliance = Boolean(e.SameAlliance)), e.NotShow) {
                    if (!Array.isArray(e.NotShow)) throw TypeError(".PlayerSimpleInfo.NotShow: array expected");
                    t.NotShow = [];
                    for (var n = 0; n < e.NotShow.length; ++n) i.Long ? (t.NotShow[n] = i.Long.fromValue(e.NotShow[n])).unsigned = !1 : "string" == typeof e.NotShow[n] ? t.NotShow[n] = parseInt(e.NotShow[n], 10) : "number" == typeof e.NotShow[n] ? t.NotShow[n] = e.NotShow[n] : "object" == typeof e.NotShow[n] && (t.NotShow[n] = new i.LongBits(e.NotShow[n].low >>> 0, e.NotShow[n].high >>> 0).toNumber())
                }
                if (null != e.ChatWindow && (i.Long ? (t.ChatWindow = i.Long.fromValue(e.ChatWindow)).unsigned = !1 : "string" == typeof e.ChatWindow ? t.ChatWindow = parseInt(e.ChatWindow, 10) : "number" == typeof e.ChatWindow ? t.ChatWindow = e.ChatWindow : "object" == typeof e.ChatWindow && (t.ChatWindow = new i.LongBits(e.ChatWindow.low >>> 0, e.ChatWindow.high >>> 0).toNumber())), null != e.Locale && (t.Locale = String(e.Locale)), null != e.MagicCircle && (i.Long ? (t.MagicCircle = i.Long.fromValue(e.MagicCircle)).unsigned = !1 : "string" == typeof e.MagicCircle ? t.MagicCircle = parseInt(e.MagicCircle, 10) : "number" == typeof e.MagicCircle ? t.MagicCircle = e.MagicCircle : "object" == typeof e.MagicCircle && (t.MagicCircle = new i.LongBits(e.MagicCircle.low >>> 0, e.MagicCircle.high >>> 0).toNumber())), null != e.Pet && (i.Long ? (t.Pet = i.Long.fromValue(e.Pet)).unsigned = !1 : "string" == typeof e.Pet ? t.Pet = parseInt(e.Pet, 10) : "number" == typeof e.Pet ? t.Pet = e.Pet : "object" == typeof e.Pet && (t.Pet = new i.LongBits(e.Pet.low >>> 0, e.Pet.high >>> 0).toNumber())), null != e.Value1 && (i.Long ? (t.Value1 = i.Long.fromValue(e.Value1)).unsigned = !1 : "string" == typeof e.Value1 ? t.Value1 = parseInt(e.Value1, 10) : "number" == typeof e.Value1 ? t.Value1 = e.Value1 : "object" == typeof e.Value1 && (t.Value1 = new i.LongBits(e.Value1.low >>> 0, e.Value1.high >>> 0).toNumber())), e.ArrayParam) {
                    if (!Array.isArray(e.ArrayParam)) throw TypeError(".PlayerSimpleInfo.ArrayParam: array expected");
                    for (t.ArrayParam = [], n = 0; n < e.ArrayParam.length; ++n) i.Long ? (t.ArrayParam[n] = i.Long.fromValue(e.ArrayParam[n])).unsigned = !1 : "string" == typeof e.ArrayParam[n] ? t.ArrayParam[n] = parseInt(e.ArrayParam[n], 10) : "number" == typeof e.ArrayParam[n] ? t.ArrayParam[n] = e.ArrayParam[n] : "object" == typeof e.ArrayParam[n] && (t.ArrayParam[n] = new i.LongBits(e.ArrayParam[n].low >>> 0, e.ArrayParam[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.NotShow = [], n.ArrayParam = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Zone = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Zone = t.longs === String ? "0" : 0, n.Name = "", i.Long ? (o = new i.Long(0, 0, !1), n.HeadIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadIcon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadFrame = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadFrame = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Title = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Title = t.longs === String ? "0" : 0, n.Country = "", i.Long ? (o = new i.Long(0, 0, !1), n.Avatar = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Avatar = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Designation = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Designation = t.longs === String ? "0" : 0, n.IsFriend = !1, n.SameAlliance = !1, i.Long ? (o = new i.Long(0, 0, !1), n.ChatWindow = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ChatWindow = t.longs === String ? "0" : 0, n.Locale = "", i.Long ? (o = new i.Long(0, 0, !1), n.MagicCircle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MagicCircle = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Pet = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Pet = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Value1 = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Value1 = t.longs === String ? "0" : 0
                }
                if (null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.Zone && e.hasOwnProperty("Zone") && ("number" == typeof e.Zone ? n.Zone = t.longs === String ? String(e.Zone) : e.Zone : n.Zone = t.longs === String ? i.Long.prototype.toString.call(e.Zone) : t.longs === Number ? new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber() : e.Zone), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && ("number" == typeof e.HeadIcon ? n.HeadIcon = t.longs === String ? String(e.HeadIcon) : e.HeadIcon : n.HeadIcon = t.longs === String ? i.Long.prototype.toString.call(e.HeadIcon) : t.longs === Number ? new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber() : e.HeadIcon), null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && ("number" == typeof e.HeadFrame ? n.HeadFrame = t.longs === String ? String(e.HeadFrame) : e.HeadFrame : n.HeadFrame = t.longs === String ? i.Long.prototype.toString.call(e.HeadFrame) : t.longs === Number ? new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber() : e.HeadFrame), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.Title && e.hasOwnProperty("Title") && ("number" == typeof e.Title ? n.Title = t.longs === String ? String(e.Title) : e.Title : n.Title = t.longs === String ? i.Long.prototype.toString.call(e.Title) : t.longs === Number ? new i.LongBits(e.Title.low >>> 0, e.Title.high >>> 0).toNumber() : e.Title), null != e.Country && e.hasOwnProperty("Country") && (n.Country = e.Country), null != e.Avatar && e.hasOwnProperty("Avatar") && ("number" == typeof e.Avatar ? n.Avatar = t.longs === String ? String(e.Avatar) : e.Avatar : n.Avatar = t.longs === String ? i.Long.prototype.toString.call(e.Avatar) : t.longs === Number ? new i.LongBits(e.Avatar.low >>> 0, e.Avatar.high >>> 0).toNumber() : e.Avatar), null != e.Designation && e.hasOwnProperty("Designation") && ("number" == typeof e.Designation ? n.Designation = t.longs === String ? String(e.Designation) : e.Designation : n.Designation = t.longs === String ? i.Long.prototype.toString.call(e.Designation) : t.longs === Number ? new i.LongBits(e.Designation.low >>> 0, e.Designation.high >>> 0).toNumber() : e.Designation), null != e.IsFriend && e.hasOwnProperty("IsFriend") && (n.IsFriend = e.IsFriend), null != e.SameAlliance && e.hasOwnProperty("SameAlliance") && (n.SameAlliance = e.SameAlliance), e.NotShow && e.NotShow.length) {
                    n.NotShow = [];
                    for (var r = 0; r < e.NotShow.length; ++r) "number" == typeof e.NotShow[r] ? n.NotShow[r] = t.longs === String ? String(e.NotShow[r]) : e.NotShow[r] : n.NotShow[r] = t.longs === String ? i.Long.prototype.toString.call(e.NotShow[r]) : t.longs === Number ? new i.LongBits(e.NotShow[r].low >>> 0, e.NotShow[r].high >>> 0).toNumber() : e.NotShow[r]
                }
                if (null != e.ChatWindow && e.hasOwnProperty("ChatWindow") && ("number" == typeof e.ChatWindow ? n.ChatWindow = t.longs === String ? String(e.ChatWindow) : e.ChatWindow : n.ChatWindow = t.longs === String ? i.Long.prototype.toString.call(e.ChatWindow) : t.longs === Number ? new i.LongBits(e.ChatWindow.low >>> 0, e.ChatWindow.high >>> 0).toNumber() : e.ChatWindow), null != e.Locale && e.hasOwnProperty("Locale") && (n.Locale = e.Locale), null != e.MagicCircle && e.hasOwnProperty("MagicCircle") && ("number" == typeof e.MagicCircle ? n.MagicCircle = t.longs === String ? String(e.MagicCircle) : e.MagicCircle : n.MagicCircle = t.longs === String ? i.Long.prototype.toString.call(e.MagicCircle) : t.longs === Number ? new i.LongBits(e.MagicCircle.low >>> 0, e.MagicCircle.high >>> 0).toNumber() : e.MagicCircle), null != e.Pet && e.hasOwnProperty("Pet") && ("number" == typeof e.Pet ? n.Pet = t.longs === String ? String(e.Pet) : e.Pet : n.Pet = t.longs === String ? i.Long.prototype.toString.call(e.Pet) : t.longs === Number ? new i.LongBits(e.Pet.low >>> 0, e.Pet.high >>> 0).toNumber() : e.Pet), null != e.Value1 && e.hasOwnProperty("Value1") && ("number" == typeof e.Value1 ? n.Value1 = t.longs === String ? String(e.Value1) : e.Value1 : n.Value1 = t.longs === String ? i.Long.prototype.toString.call(e.Value1) : t.longs === Number ? new i.LongBits(e.Value1.low >>> 0, e.Value1.high >>> 0).toNumber() : e.Value1), e.ArrayParam && e.ArrayParam.length)
                    for (n.ArrayParam = [], r = 0; r < e.ArrayParam.length; ++r) "number" == typeof e.ArrayParam[r] ? n.ArrayParam[r] = t.longs === String ? String(e.ArrayParam[r]) : e.ArrayParam[r] : n.ArrayParam[r] = t.longs === String ? i.Long.prototype.toString.call(e.ArrayParam[r]) : t.longs === Number ? new i.LongBits(e.ArrayParam[r].low >>> 0, e.ArrayParam[r].high >>> 0).toNumber() : e.ArrayParam[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/PlayerSimpleInfo"
            }, e
        }(), a.HeroDetailInfo = function() {
            function e(e) {
                if (this.Equipments = [], this.luckyCharms = [], this.HolyEquipments = [], this.GemEquips = [], this.Pets = [], this.Cores = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Hero = null, e.prototype.Equipments = i.emptyArray, e.prototype.luckyCharms = i.emptyArray, e.prototype.HolyEquipments = i.emptyArray, e.prototype.GemEquips = i.emptyArray, e.prototype.HeroInfo = null, e.prototype.Pets = i.emptyArray, e.prototype.Cores = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Hero && Object.hasOwnProperty.call(e, "Hero") && a.UserHero_Model.encode(e.Hero, t.uint32(10).fork()).ldelim(), null != e.Equipments && e.Equipments.length)
                    for (var n = 0; n < e.Equipments.length; ++n) a.Equipment_Model.encode(e.Equipments[n], t.uint32(18).fork()).ldelim();
                if (null != e.luckyCharms && e.luckyCharms.length)
                    for (n = 0; n < e.luckyCharms.length; ++n) a.LuckyCharmEquip_Model.encode(e.luckyCharms[n], t.uint32(26).fork()).ldelim();
                if (null != e.HolyEquipments && e.HolyEquipments.length)
                    for (n = 0; n < e.HolyEquipments.length; ++n) a.HolyEquipment_Model.encode(e.HolyEquipments[n], t.uint32(34).fork()).ldelim();
                if (null != e.GemEquips && e.GemEquips.length)
                    for (n = 0; n < e.GemEquips.length; ++n) a.GemEquip_Model.encode(e.GemEquips[n], t.uint32(42).fork()).ldelim();
                if (null != e.HeroInfo && Object.hasOwnProperty.call(e, "HeroInfo") && a.HeroInfo_Model.encode(e.HeroInfo, t.uint32(50).fork()).ldelim(), null != e.Pets && e.Pets.length)
                    for (n = 0; n < e.Pets.length; ++n) a.UserPet_Model.encode(e.Pets[n], t.uint32(58).fork()).ldelim();
                if (null != e.Cores && e.Cores.length)
                    for (n = 0; n < e.Cores.length; ++n) a.PowerCore_Model.encode(e.Cores[n], t.uint32(66).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HeroDetailInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Hero = a.UserHero_Model.decode(e, e.uint32());
                            break;
                        case 2:
                            r.Equipments && r.Equipments.length || (r.Equipments = []), r.Equipments.push(a.Equipment_Model.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.luckyCharms && r.luckyCharms.length || (r.luckyCharms = []), r.luckyCharms.push(a.LuckyCharmEquip_Model.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.HolyEquipments && r.HolyEquipments.length || (r.HolyEquipments = []), r.HolyEquipments.push(a.HolyEquipment_Model.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.GemEquips && r.GemEquips.length || (r.GemEquips = []), r.GemEquips.push(a.GemEquip_Model.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.HeroInfo = a.HeroInfo_Model.decode(e, e.uint32());
                            break;
                        case 7:
                            r.Pets && r.Pets.length || (r.Pets = []), r.Pets.push(a.UserPet_Model.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.Cores && r.Cores.length || (r.Cores = []), r.Cores.push(a.PowerCore_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Hero && e.hasOwnProperty("Hero") && (n = a.UserHero_Model.verify(e.Hero))) return "Hero." + n;
                if (null != e.Equipments && e.hasOwnProperty("Equipments")) {
                    if (!Array.isArray(e.Equipments)) return "Equipments: array expected";
                    for (var t = 0; t < e.Equipments.length; ++t)
                        if (n = a.Equipment_Model.verify(e.Equipments[t])) return "Equipments." + n
                }
                if (null != e.luckyCharms && e.hasOwnProperty("luckyCharms")) {
                    if (!Array.isArray(e.luckyCharms)) return "luckyCharms: array expected";
                    for (t = 0; t < e.luckyCharms.length; ++t)
                        if (n = a.LuckyCharmEquip_Model.verify(e.luckyCharms[t])) return "luckyCharms." + n
                }
                if (null != e.HolyEquipments && e.hasOwnProperty("HolyEquipments")) {
                    if (!Array.isArray(e.HolyEquipments)) return "HolyEquipments: array expected";
                    for (t = 0; t < e.HolyEquipments.length; ++t)
                        if (n = a.HolyEquipment_Model.verify(e.HolyEquipments[t])) return "HolyEquipments." + n
                }
                if (null != e.GemEquips && e.hasOwnProperty("GemEquips")) {
                    if (!Array.isArray(e.GemEquips)) return "GemEquips: array expected";
                    for (t = 0; t < e.GemEquips.length; ++t)
                        if (n = a.GemEquip_Model.verify(e.GemEquips[t])) return "GemEquips." + n
                }
                if (null != e.HeroInfo && e.hasOwnProperty("HeroInfo") && (n = a.HeroInfo_Model.verify(e.HeroInfo))) return "HeroInfo." + n;
                if (null != e.Pets && e.hasOwnProperty("Pets")) {
                    if (!Array.isArray(e.Pets)) return "Pets: array expected";
                    for (t = 0; t < e.Pets.length; ++t)
                        if (n = a.UserPet_Model.verify(e.Pets[t])) return "Pets." + n
                }
                if (null != e.Cores && e.hasOwnProperty("Cores")) {
                    if (!Array.isArray(e.Cores)) return "Cores: array expected";
                    for (t = 0; t < e.Cores.length; ++t) {
                        var n;
                        if (n = a.PowerCore_Model.verify(e.Cores[t])) return "Cores." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.HeroDetailInfo) return e;
                var t = new a.HeroDetailInfo;
                if (null != e.Hero) {
                    if ("object" != typeof e.Hero) throw TypeError(".HeroDetailInfo.Hero: object expected");
                    t.Hero = a.UserHero_Model.fromObject(e.Hero)
                }
                if (e.Equipments) {
                    if (!Array.isArray(e.Equipments)) throw TypeError(".HeroDetailInfo.Equipments: array expected");
                    t.Equipments = [];
                    for (var n = 0; n < e.Equipments.length; ++n) {
                        if ("object" != typeof e.Equipments[n]) throw TypeError(".HeroDetailInfo.Equipments: object expected");
                        t.Equipments[n] = a.Equipment_Model.fromObject(e.Equipments[n])
                    }
                }
                if (e.luckyCharms) {
                    if (!Array.isArray(e.luckyCharms)) throw TypeError(".HeroDetailInfo.luckyCharms: array expected");
                    for (t.luckyCharms = [], n = 0; n < e.luckyCharms.length; ++n) {
                        if ("object" != typeof e.luckyCharms[n]) throw TypeError(".HeroDetailInfo.luckyCharms: object expected");
                        t.luckyCharms[n] = a.LuckyCharmEquip_Model.fromObject(e.luckyCharms[n])
                    }
                }
                if (e.HolyEquipments) {
                    if (!Array.isArray(e.HolyEquipments)) throw TypeError(".HeroDetailInfo.HolyEquipments: array expected");
                    for (t.HolyEquipments = [], n = 0; n < e.HolyEquipments.length; ++n) {
                        if ("object" != typeof e.HolyEquipments[n]) throw TypeError(".HeroDetailInfo.HolyEquipments: object expected");
                        t.HolyEquipments[n] = a.HolyEquipment_Model.fromObject(e.HolyEquipments[n])
                    }
                }
                if (e.GemEquips) {
                    if (!Array.isArray(e.GemEquips)) throw TypeError(".HeroDetailInfo.GemEquips: array expected");
                    for (t.GemEquips = [], n = 0; n < e.GemEquips.length; ++n) {
                        if ("object" != typeof e.GemEquips[n]) throw TypeError(".HeroDetailInfo.GemEquips: object expected");
                        t.GemEquips[n] = a.GemEquip_Model.fromObject(e.GemEquips[n])
                    }
                }
                if (null != e.HeroInfo) {
                    if ("object" != typeof e.HeroInfo) throw TypeError(".HeroDetailInfo.HeroInfo: object expected");
                    t.HeroInfo = a.HeroInfo_Model.fromObject(e.HeroInfo)
                }
                if (e.Pets) {
                    if (!Array.isArray(e.Pets)) throw TypeError(".HeroDetailInfo.Pets: array expected");
                    for (t.Pets = [], n = 0; n < e.Pets.length; ++n) {
                        if ("object" != typeof e.Pets[n]) throw TypeError(".HeroDetailInfo.Pets: object expected");
                        t.Pets[n] = a.UserPet_Model.fromObject(e.Pets[n])
                    }
                }
                if (e.Cores) {
                    if (!Array.isArray(e.Cores)) throw TypeError(".HeroDetailInfo.Cores: array expected");
                    for (t.Cores = [], n = 0; n < e.Cores.length; ++n) {
                        if ("object" != typeof e.Cores[n]) throw TypeError(".HeroDetailInfo.Cores: object expected");
                        t.Cores[n] = a.PowerCore_Model.fromObject(e.Cores[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Equipments = [], n.luckyCharms = [], n.HolyEquipments = [], n.GemEquips = [], n.Pets = [], n.Cores = []), t.defaults && (n.Hero = null, n.HeroInfo = null), null != e.Hero && e.hasOwnProperty("Hero") && (n.Hero = a.UserHero_Model.toObject(e.Hero, t)), e.Equipments && e.Equipments.length) {
                    n.Equipments = [];
                    for (var o = 0; o < e.Equipments.length; ++o) n.Equipments[o] = a.Equipment_Model.toObject(e.Equipments[o], t)
                }
                if (e.luckyCharms && e.luckyCharms.length)
                    for (n.luckyCharms = [], o = 0; o < e.luckyCharms.length; ++o) n.luckyCharms[o] = a.LuckyCharmEquip_Model.toObject(e.luckyCharms[o], t);
                if (e.HolyEquipments && e.HolyEquipments.length)
                    for (n.HolyEquipments = [], o = 0; o < e.HolyEquipments.length; ++o) n.HolyEquipments[o] = a.HolyEquipment_Model.toObject(e.HolyEquipments[o], t);
                if (e.GemEquips && e.GemEquips.length)
                    for (n.GemEquips = [], o = 0; o < e.GemEquips.length; ++o) n.GemEquips[o] = a.GemEquip_Model.toObject(e.GemEquips[o], t);
                if (null != e.HeroInfo && e.hasOwnProperty("HeroInfo") && (n.HeroInfo = a.HeroInfo_Model.toObject(e.HeroInfo, t)), e.Pets && e.Pets.length)
                    for (n.Pets = [], o = 0; o < e.Pets.length; ++o) n.Pets[o] = a.UserPet_Model.toObject(e.Pets[o], t);
                if (e.Cores && e.Cores.length)
                    for (n.Cores = [], o = 0; o < e.Cores.length; ++o) n.Cores[o] = a.PowerCore_Model.toObject(e.Cores[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HeroDetailInfo"
            }, e
        }(), a.AngelInfo = function() {
            function e(e) {
                if (this.Attrs = {}, this.GlobalAttrs = {}, this.Skills = [], this.GodSoulIds = [], this.PersonalWarAttr = {}, this.PersonalBattleSkills = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Attrs = i.emptyObject, e.prototype.GlobalAttrs = i.emptyObject, e.prototype.Skills = i.emptyArray, e.prototype.GodSoulIds = i.emptyArray, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkinId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PersonalWarAttr = i.emptyObject, e.prototype.PersonalBattleSkills = i.emptyArray, e.prototype.PersonalBattlePower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), null != e.Attrs && Object.hasOwnProperty.call(e, "Attrs"))
                    for (var n = Object.keys(e.Attrs), o = 0; o < n.length; ++o) t.uint32(18).fork().uint32(8).int64(n[o]).uint32(16).int64(e.Attrs[n[o]]).ldelim();
                if (null != e.GlobalAttrs && Object.hasOwnProperty.call(e, "GlobalAttrs"))
                    for (n = Object.keys(e.GlobalAttrs), o = 0; o < n.length; ++o) t.uint32(26).fork().uint32(8).int64(n[o]).uint32(16).int64(e.GlobalAttrs[n[o]]).ldelim();
                if (null != e.Skills && e.Skills.length) {
                    for (t.uint32(34).fork(), o = 0; o < e.Skills.length; ++o) t.int64(e.Skills[o]);
                    t.ldelim()
                }
                if (null != e.GodSoulIds && e.GodSoulIds.length) {
                    for (t.uint32(42).fork(), o = 0; o < e.GodSoulIds.length; ++o) t.int64(e.GodSoulIds[o]);
                    t.ldelim()
                }
                if (null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(48).int64(e.StarLevel), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(56).int64(e.Level), null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(64).int64(e.Power), null != e.SkinId && Object.hasOwnProperty.call(e, "SkinId") && t.uint32(72).int64(e.SkinId), null != e.PersonalWarAttr && Object.hasOwnProperty.call(e, "PersonalWarAttr"))
                    for (n = Object.keys(e.PersonalWarAttr), o = 0; o < n.length; ++o) t.uint32(82).fork().uint32(8).int64(n[o]).uint32(16).int64(e.PersonalWarAttr[n[o]]).ldelim();
                if (null != e.PersonalBattleSkills && e.PersonalBattleSkills.length) {
                    for (t.uint32(90).fork(), o = 0; o < e.PersonalBattleSkills.length; ++o) t.int64(e.PersonalBattleSkills[o]);
                    t.ldelim()
                }
                return null != e.PersonalBattlePower && Object.hasOwnProperty.call(e, "PersonalBattlePower") && t.uint32(96).int64(e.PersonalBattlePower), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.AngelInfo; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.AngelId = e.int64();
                            break;
                        case 2:
                            l.Attrs === i.emptyObject && (l.Attrs = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = 0; e.pos < u;) switch ((p = e.uint32()) >>> 3) {
                                case 1:
                                    n = e.int64();
                                    break;
                                case 2:
                                    r = e.int64();
                                    break;
                                default:
                                    e.skipType(7 & p)
                            }
                            l.Attrs["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 3:
                            for (l.GlobalAttrs === i.emptyObject && (l.GlobalAttrs = {}), u = e.uint32() + e.pos, n = 0, r = 0; e.pos < u;) switch ((p = e.uint32()) >>> 3) {
                                case 1:
                                    n = e.int64();
                                    break;
                                case 2:
                                    r = e.int64();
                                    break;
                                default:
                                    e.skipType(7 & p)
                            }
                            l.GlobalAttrs["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 4:
                            if (l.Skills && l.Skills.length || (l.Skills = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.Skills.push(e.int64());
                            else l.Skills.push(e.int64());
                            break;
                        case 5:
                            if (l.GodSoulIds && l.GodSoulIds.length || (l.GodSoulIds = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.GodSoulIds.push(e.int64());
                            else l.GodSoulIds.push(e.int64());
                            break;
                        case 6:
                            l.StarLevel = e.int64();
                            break;
                        case 7:
                            l.Level = e.int64();
                            break;
                        case 8:
                            l.Power = e.int64();
                            break;
                        case 9:
                            l.SkinId = e.int64();
                            break;
                        case 10:
                            for (l.PersonalWarAttr === i.emptyObject && (l.PersonalWarAttr = {}), u = e.uint32() + e.pos, n = 0, r = 0; e.pos < u;) {
                                var p;
                                switch ((p = e.uint32()) >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = e.int64();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.PersonalWarAttr["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 11:
                            if (l.PersonalBattleSkills && l.PersonalBattleSkills.length || (l.PersonalBattleSkills = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.PersonalBattleSkills.push(e.int64());
                            else l.PersonalBattleSkills.push(e.int64());
                            break;
                        case 12:
                            l.PersonalBattlePower = e.int64();
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high))) return "AngelId: integer|Long expected";
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!i.isObject(e.Attrs)) return "Attrs: object expected";
                    for (var t = Object.keys(e.Attrs), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "Attrs: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.Attrs[t[n]]) || e.Attrs[t[n]] && i.isInteger(e.Attrs[t[n]].low) && i.isInteger(e.Attrs[t[n]].high))) return "Attrs: integer|Long{k:int64} expected"
                    }
                }
                if (null != e.GlobalAttrs && e.hasOwnProperty("GlobalAttrs")) {
                    if (!i.isObject(e.GlobalAttrs)) return "GlobalAttrs: object expected";
                    for (t = Object.keys(e.GlobalAttrs), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "GlobalAttrs: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.GlobalAttrs[t[n]]) || e.GlobalAttrs[t[n]] && i.isInteger(e.GlobalAttrs[t[n]].low) && i.isInteger(e.GlobalAttrs[t[n]].high))) return "GlobalAttrs: integer|Long{k:int64} expected"
                    }
                }
                if (null != e.Skills && e.hasOwnProperty("Skills")) {
                    if (!Array.isArray(e.Skills)) return "Skills: array expected";
                    for (n = 0; n < e.Skills.length; ++n)
                        if (!(i.isInteger(e.Skills[n]) || e.Skills[n] && i.isInteger(e.Skills[n].low) && i.isInteger(e.Skills[n].high))) return "Skills: integer|Long[] expected"
                }
                if (null != e.GodSoulIds && e.hasOwnProperty("GodSoulIds")) {
                    if (!Array.isArray(e.GodSoulIds)) return "GodSoulIds: array expected";
                    for (n = 0; n < e.GodSoulIds.length; ++n)
                        if (!(i.isInteger(e.GodSoulIds[n]) || e.GodSoulIds[n] && i.isInteger(e.GodSoulIds[n].low) && i.isInteger(e.GodSoulIds[n].high))) return "GodSoulIds: integer|Long[] expected"
                }
                if (null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high))) return "StarLevel: integer|Long expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high))) return "Power: integer|Long expected";
                if (null != e.SkinId && e.hasOwnProperty("SkinId") && !(i.isInteger(e.SkinId) || e.SkinId && i.isInteger(e.SkinId.low) && i.isInteger(e.SkinId.high))) return "SkinId: integer|Long expected";
                if (null != e.PersonalWarAttr && e.hasOwnProperty("PersonalWarAttr")) {
                    if (!i.isObject(e.PersonalWarAttr)) return "PersonalWarAttr: object expected";
                    for (t = Object.keys(e.PersonalWarAttr), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "PersonalWarAttr: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.PersonalWarAttr[t[n]]) || e.PersonalWarAttr[t[n]] && i.isInteger(e.PersonalWarAttr[t[n]].low) && i.isInteger(e.PersonalWarAttr[t[n]].high))) return "PersonalWarAttr: integer|Long{k:int64} expected"
                    }
                }
                if (null != e.PersonalBattleSkills && e.hasOwnProperty("PersonalBattleSkills")) {
                    if (!Array.isArray(e.PersonalBattleSkills)) return "PersonalBattleSkills: array expected";
                    for (n = 0; n < e.PersonalBattleSkills.length; ++n)
                        if (!(i.isInteger(e.PersonalBattleSkills[n]) || e.PersonalBattleSkills[n] && i.isInteger(e.PersonalBattleSkills[n].low) && i.isInteger(e.PersonalBattleSkills[n].high))) return "PersonalBattleSkills: integer|Long[] expected"
                }
                return null != e.PersonalBattlePower && e.hasOwnProperty("PersonalBattlePower") && !(i.isInteger(e.PersonalBattlePower) || e.PersonalBattlePower && i.isInteger(e.PersonalBattlePower.low) && i.isInteger(e.PersonalBattlePower.high)) ? "PersonalBattlePower: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelInfo) return e;
                var t = new a.AngelInfo;
                if (null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), e.Attrs) {
                    if ("object" != typeof e.Attrs) throw TypeError(".AngelInfo.Attrs: object expected");
                    t.Attrs = {};
                    for (var n = Object.keys(e.Attrs), o = 0; o < n.length; ++o) i.Long ? (t.Attrs[n[o]] = i.Long.fromValue(e.Attrs[n[o]])).unsigned = !1 : "string" == typeof e.Attrs[n[o]] ? t.Attrs[n[o]] = parseInt(e.Attrs[n[o]], 10) : "number" == typeof e.Attrs[n[o]] ? t.Attrs[n[o]] = e.Attrs[n[o]] : "object" == typeof e.Attrs[n[o]] && (t.Attrs[n[o]] = new i.LongBits(e.Attrs[n[o]].low >>> 0, e.Attrs[n[o]].high >>> 0).toNumber())
                }
                if (e.GlobalAttrs) {
                    if ("object" != typeof e.GlobalAttrs) throw TypeError(".AngelInfo.GlobalAttrs: object expected");
                    for (t.GlobalAttrs = {}, n = Object.keys(e.GlobalAttrs), o = 0; o < n.length; ++o) i.Long ? (t.GlobalAttrs[n[o]] = i.Long.fromValue(e.GlobalAttrs[n[o]])).unsigned = !1 : "string" == typeof e.GlobalAttrs[n[o]] ? t.GlobalAttrs[n[o]] = parseInt(e.GlobalAttrs[n[o]], 10) : "number" == typeof e.GlobalAttrs[n[o]] ? t.GlobalAttrs[n[o]] = e.GlobalAttrs[n[o]] : "object" == typeof e.GlobalAttrs[n[o]] && (t.GlobalAttrs[n[o]] = new i.LongBits(e.GlobalAttrs[n[o]].low >>> 0, e.GlobalAttrs[n[o]].high >>> 0).toNumber())
                }
                if (e.Skills) {
                    if (!Array.isArray(e.Skills)) throw TypeError(".AngelInfo.Skills: array expected");
                    for (t.Skills = [], o = 0; o < e.Skills.length; ++o) i.Long ? (t.Skills[o] = i.Long.fromValue(e.Skills[o])).unsigned = !1 : "string" == typeof e.Skills[o] ? t.Skills[o] = parseInt(e.Skills[o], 10) : "number" == typeof e.Skills[o] ? t.Skills[o] = e.Skills[o] : "object" == typeof e.Skills[o] && (t.Skills[o] = new i.LongBits(e.Skills[o].low >>> 0, e.Skills[o].high >>> 0).toNumber())
                }
                if (e.GodSoulIds) {
                    if (!Array.isArray(e.GodSoulIds)) throw TypeError(".AngelInfo.GodSoulIds: array expected");
                    for (t.GodSoulIds = [], o = 0; o < e.GodSoulIds.length; ++o) i.Long ? (t.GodSoulIds[o] = i.Long.fromValue(e.GodSoulIds[o])).unsigned = !1 : "string" == typeof e.GodSoulIds[o] ? t.GodSoulIds[o] = parseInt(e.GodSoulIds[o], 10) : "number" == typeof e.GodSoulIds[o] ? t.GodSoulIds[o] = e.GodSoulIds[o] : "object" == typeof e.GodSoulIds[o] && (t.GodSoulIds[o] = new i.LongBits(e.GodSoulIds[o].low >>> 0, e.GodSoulIds[o].high >>> 0).toNumber())
                }
                if (null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.SkinId && (i.Long ? (t.SkinId = i.Long.fromValue(e.SkinId)).unsigned = !1 : "string" == typeof e.SkinId ? t.SkinId = parseInt(e.SkinId, 10) : "number" == typeof e.SkinId ? t.SkinId = e.SkinId : "object" == typeof e.SkinId && (t.SkinId = new i.LongBits(e.SkinId.low >>> 0, e.SkinId.high >>> 0).toNumber())), e.PersonalWarAttr) {
                    if ("object" != typeof e.PersonalWarAttr) throw TypeError(".AngelInfo.PersonalWarAttr: object expected");
                    for (t.PersonalWarAttr = {}, n = Object.keys(e.PersonalWarAttr), o = 0; o < n.length; ++o) i.Long ? (t.PersonalWarAttr[n[o]] = i.Long.fromValue(e.PersonalWarAttr[n[o]])).unsigned = !1 : "string" == typeof e.PersonalWarAttr[n[o]] ? t.PersonalWarAttr[n[o]] = parseInt(e.PersonalWarAttr[n[o]], 10) : "number" == typeof e.PersonalWarAttr[n[o]] ? t.PersonalWarAttr[n[o]] = e.PersonalWarAttr[n[o]] : "object" == typeof e.PersonalWarAttr[n[o]] && (t.PersonalWarAttr[n[o]] = new i.LongBits(e.PersonalWarAttr[n[o]].low >>> 0, e.PersonalWarAttr[n[o]].high >>> 0).toNumber())
                }
                if (e.PersonalBattleSkills) {
                    if (!Array.isArray(e.PersonalBattleSkills)) throw TypeError(".AngelInfo.PersonalBattleSkills: array expected");
                    for (t.PersonalBattleSkills = [], o = 0; o < e.PersonalBattleSkills.length; ++o) i.Long ? (t.PersonalBattleSkills[o] = i.Long.fromValue(e.PersonalBattleSkills[o])).unsigned = !1 : "string" == typeof e.PersonalBattleSkills[o] ? t.PersonalBattleSkills[o] = parseInt(e.PersonalBattleSkills[o], 10) : "number" == typeof e.PersonalBattleSkills[o] ? t.PersonalBattleSkills[o] = e.PersonalBattleSkills[o] : "object" == typeof e.PersonalBattleSkills[o] && (t.PersonalBattleSkills[o] = new i.LongBits(e.PersonalBattleSkills[o].low >>> 0, e.PersonalBattleSkills[o].high >>> 0).toNumber())
                }
                return null != e.PersonalBattlePower && (i.Long ? (t.PersonalBattlePower = i.Long.fromValue(e.PersonalBattlePower)).unsigned = !1 : "string" == typeof e.PersonalBattlePower ? t.PersonalBattlePower = parseInt(e.PersonalBattlePower, 10) : "number" == typeof e.PersonalBattlePower ? t.PersonalBattlePower = e.PersonalBattlePower : "object" == typeof e.PersonalBattlePower && (t.PersonalBattlePower = new i.LongBits(e.PersonalBattlePower.low >>> 0, e.PersonalBattlePower.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.Skills = [], o.GodSoulIds = [], o.PersonalBattleSkills = []), (t.objects || t.defaults) && (o.Attrs = {}, o.GlobalAttrs = {}, o.PersonalWarAttr = {}), t.defaults) {
                    if (i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.AngelId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.AngelId = t.longs === String ? "0" : 0;
                    i.Long ? (r = new i.Long(0, 0, !1), o.StarLevel = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.StarLevel = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.Level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Level = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.Power = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Power = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.SkinId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.SkinId = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.PersonalBattlePower = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.PersonalBattlePower = t.longs === String ? "0" : 0
                }
                if (null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? o.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : o.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), e.Attrs && (n = Object.keys(e.Attrs)).length) {
                    o.Attrs = {};
                    for (var a = 0; a < n.length; ++a) "number" == typeof e.Attrs[n[a]] ? o.Attrs[n[a]] = t.longs === String ? String(e.Attrs[n[a]]) : e.Attrs[n[a]] : o.Attrs[n[a]] = t.longs === String ? i.Long.prototype.toString.call(e.Attrs[n[a]]) : t.longs === Number ? new i.LongBits(e.Attrs[n[a]].low >>> 0, e.Attrs[n[a]].high >>> 0).toNumber() : e.Attrs[n[a]]
                }
                if (e.GlobalAttrs && (n = Object.keys(e.GlobalAttrs)).length)
                    for (o.GlobalAttrs = {}, a = 0; a < n.length; ++a) "number" == typeof e.GlobalAttrs[n[a]] ? o.GlobalAttrs[n[a]] = t.longs === String ? String(e.GlobalAttrs[n[a]]) : e.GlobalAttrs[n[a]] : o.GlobalAttrs[n[a]] = t.longs === String ? i.Long.prototype.toString.call(e.GlobalAttrs[n[a]]) : t.longs === Number ? new i.LongBits(e.GlobalAttrs[n[a]].low >>> 0, e.GlobalAttrs[n[a]].high >>> 0).toNumber() : e.GlobalAttrs[n[a]];
                if (e.Skills && e.Skills.length)
                    for (o.Skills = [], a = 0; a < e.Skills.length; ++a) "number" == typeof e.Skills[a] ? o.Skills[a] = t.longs === String ? String(e.Skills[a]) : e.Skills[a] : o.Skills[a] = t.longs === String ? i.Long.prototype.toString.call(e.Skills[a]) : t.longs === Number ? new i.LongBits(e.Skills[a].low >>> 0, e.Skills[a].high >>> 0).toNumber() : e.Skills[a];
                if (e.GodSoulIds && e.GodSoulIds.length)
                    for (o.GodSoulIds = [], a = 0; a < e.GodSoulIds.length; ++a) "number" == typeof e.GodSoulIds[a] ? o.GodSoulIds[a] = t.longs === String ? String(e.GodSoulIds[a]) : e.GodSoulIds[a] : o.GodSoulIds[a] = t.longs === String ? i.Long.prototype.toString.call(e.GodSoulIds[a]) : t.longs === Number ? new i.LongBits(e.GodSoulIds[a].low >>> 0, e.GodSoulIds[a].high >>> 0).toNumber() : e.GodSoulIds[a];
                if (null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? o.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : o.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? o.Level = t.longs === String ? String(e.Level) : e.Level : o.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? o.Power = t.longs === String ? String(e.Power) : e.Power : o.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.SkinId && e.hasOwnProperty("SkinId") && ("number" == typeof e.SkinId ? o.SkinId = t.longs === String ? String(e.SkinId) : e.SkinId : o.SkinId = t.longs === String ? i.Long.prototype.toString.call(e.SkinId) : t.longs === Number ? new i.LongBits(e.SkinId.low >>> 0, e.SkinId.high >>> 0).toNumber() : e.SkinId), e.PersonalWarAttr && (n = Object.keys(e.PersonalWarAttr)).length)
                    for (o.PersonalWarAttr = {}, a = 0; a < n.length; ++a) "number" == typeof e.PersonalWarAttr[n[a]] ? o.PersonalWarAttr[n[a]] = t.longs === String ? String(e.PersonalWarAttr[n[a]]) : e.PersonalWarAttr[n[a]] : o.PersonalWarAttr[n[a]] = t.longs === String ? i.Long.prototype.toString.call(e.PersonalWarAttr[n[a]]) : t.longs === Number ? new i.LongBits(e.PersonalWarAttr[n[a]].low >>> 0, e.PersonalWarAttr[n[a]].high >>> 0).toNumber() : e.PersonalWarAttr[n[a]];
                if (e.PersonalBattleSkills && e.PersonalBattleSkills.length)
                    for (o.PersonalBattleSkills = [], a = 0; a < e.PersonalBattleSkills.length; ++a) "number" == typeof e.PersonalBattleSkills[a] ? o.PersonalBattleSkills[a] = t.longs === String ? String(e.PersonalBattleSkills[a]) : e.PersonalBattleSkills[a] : o.PersonalBattleSkills[a] = t.longs === String ? i.Long.prototype.toString.call(e.PersonalBattleSkills[a]) : t.longs === Number ? new i.LongBits(e.PersonalBattleSkills[a].low >>> 0, e.PersonalBattleSkills[a].high >>> 0).toNumber() : e.PersonalBattleSkills[a];
                return null != e.PersonalBattlePower && e.hasOwnProperty("PersonalBattlePower") && ("number" == typeof e.PersonalBattlePower ? o.PersonalBattlePower = t.longs === String ? String(e.PersonalBattlePower) : e.PersonalBattlePower : o.PersonalBattlePower = t.longs === String ? i.Long.prototype.toString.call(e.PersonalBattlePower) : t.longs === Number ? new i.LongBits(e.PersonalBattlePower.low >>> 0, e.PersonalBattlePower.high >>> 0).toNumber() : e.PersonalBattlePower), o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelInfo"
            }, e
        }(), a.SimpleAllianceInfo = function() {
            function e(e) {
                if (this.ArrayParam = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Icon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MemberCount = 0, e.prototype.IsRequested = !1, e.prototype.RequireLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RequirePower = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LeaderName = "", e.prototype.LeaderCountry = "", e.prototype.ArrayParam = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(24).int64(e.Level), null != e.Icon && Object.hasOwnProperty.call(e, "Icon") && t.uint32(32).int64(e.Icon), null != e.MemberCount && Object.hasOwnProperty.call(e, "MemberCount") && t.uint32(40).int32(e.MemberCount), null != e.IsRequested && Object.hasOwnProperty.call(e, "IsRequested") && t.uint32(48).bool(e.IsRequested), null != e.RequireLevel && Object.hasOwnProperty.call(e, "RequireLevel") && t.uint32(56).int64(e.RequireLevel), null != e.RequirePower && Object.hasOwnProperty.call(e, "RequirePower") && t.uint32(64).int64(e.RequirePower), null != e.LeaderName && Object.hasOwnProperty.call(e, "LeaderName") && t.uint32(74).string(e.LeaderName), null != e.LeaderCountry && Object.hasOwnProperty.call(e, "LeaderCountry") && t.uint32(82).string(e.LeaderCountry), null != e.ArrayParam && e.ArrayParam.length) {
                    t.uint32(810).fork();
                    for (var n = 0; n < e.ArrayParam.length; ++n) t.int64(e.ArrayParam[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SimpleAllianceInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            r.Level = e.int64();
                            break;
                        case 4:
                            r.Icon = e.int64();
                            break;
                        case 5:
                            r.MemberCount = e.int32();
                            break;
                        case 6:
                            r.IsRequested = e.bool();
                            break;
                        case 7:
                            r.RequireLevel = e.int64();
                            break;
                        case 8:
                            r.RequirePower = e.int64();
                            break;
                        case 9:
                            r.LeaderName = e.string();
                            break;
                        case 10:
                            r.LeaderCountry = e.string();
                            break;
                        case 101:
                            if (r.ArrayParam && r.ArrayParam.length || (r.ArrayParam = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ArrayParam.push(e.int64());
                            else r.ArrayParam.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name)) return "Name: string expected";
                if (null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high))) return "Level: integer|Long expected";
                if (null != e.Icon && e.hasOwnProperty("Icon") && !(i.isInteger(e.Icon) || e.Icon && i.isInteger(e.Icon.low) && i.isInteger(e.Icon.high))) return "Icon: integer|Long expected";
                if (null != e.MemberCount && e.hasOwnProperty("MemberCount") && !i.isInteger(e.MemberCount)) return "MemberCount: integer expected";
                if (null != e.IsRequested && e.hasOwnProperty("IsRequested") && "boolean" != typeof e.IsRequested) return "IsRequested: boolean expected";
                if (null != e.RequireLevel && e.hasOwnProperty("RequireLevel") && !(i.isInteger(e.RequireLevel) || e.RequireLevel && i.isInteger(e.RequireLevel.low) && i.isInteger(e.RequireLevel.high))) return "RequireLevel: integer|Long expected";
                if (null != e.RequirePower && e.hasOwnProperty("RequirePower") && !(i.isInteger(e.RequirePower) || e.RequirePower && i.isInteger(e.RequirePower.low) && i.isInteger(e.RequirePower.high))) return "RequirePower: integer|Long expected";
                if (null != e.LeaderName && e.hasOwnProperty("LeaderName") && !i.isString(e.LeaderName)) return "LeaderName: string expected";
                if (null != e.LeaderCountry && e.hasOwnProperty("LeaderCountry") && !i.isString(e.LeaderCountry)) return "LeaderCountry: string expected";
                if (null != e.ArrayParam && e.hasOwnProperty("ArrayParam")) {
                    if (!Array.isArray(e.ArrayParam)) return "ArrayParam: array expected";
                    for (var t = 0; t < e.ArrayParam.length; ++t)
                        if (!(i.isInteger(e.ArrayParam[t]) || e.ArrayParam[t] && i.isInteger(e.ArrayParam[t].low) && i.isInteger(e.ArrayParam[t].high))) return "ArrayParam: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.SimpleAllianceInfo) return e;
                var t = new a.SimpleAllianceInfo;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.Icon && (i.Long ? (t.Icon = i.Long.fromValue(e.Icon)).unsigned = !1 : "string" == typeof e.Icon ? t.Icon = parseInt(e.Icon, 10) : "number" == typeof e.Icon ? t.Icon = e.Icon : "object" == typeof e.Icon && (t.Icon = new i.LongBits(e.Icon.low >>> 0, e.Icon.high >>> 0).toNumber())), null != e.MemberCount && (t.MemberCount = 0 | e.MemberCount), null != e.IsRequested && (t.IsRequested = Boolean(e.IsRequested)), null != e.RequireLevel && (i.Long ? (t.RequireLevel = i.Long.fromValue(e.RequireLevel)).unsigned = !1 : "string" == typeof e.RequireLevel ? t.RequireLevel = parseInt(e.RequireLevel, 10) : "number" == typeof e.RequireLevel ? t.RequireLevel = e.RequireLevel : "object" == typeof e.RequireLevel && (t.RequireLevel = new i.LongBits(e.RequireLevel.low >>> 0, e.RequireLevel.high >>> 0).toNumber())), null != e.RequirePower && (i.Long ? (t.RequirePower = i.Long.fromValue(e.RequirePower)).unsigned = !1 : "string" == typeof e.RequirePower ? t.RequirePower = parseInt(e.RequirePower, 10) : "number" == typeof e.RequirePower ? t.RequirePower = e.RequirePower : "object" == typeof e.RequirePower && (t.RequirePower = new i.LongBits(e.RequirePower.low >>> 0, e.RequirePower.high >>> 0).toNumber())), null != e.LeaderName && (t.LeaderName = String(e.LeaderName)), null != e.LeaderCountry && (t.LeaderCountry = String(e.LeaderCountry)), e.ArrayParam) {
                    if (!Array.isArray(e.ArrayParam)) throw TypeError(".SimpleAllianceInfo.ArrayParam: array expected");
                    t.ArrayParam = [];
                    for (var n = 0; n < e.ArrayParam.length; ++n) i.Long ? (t.ArrayParam[n] = i.Long.fromValue(e.ArrayParam[n])).unsigned = !1 : "string" == typeof e.ArrayParam[n] ? t.ArrayParam[n] = parseInt(e.ArrayParam[n], 10) : "number" == typeof e.ArrayParam[n] ? t.ArrayParam[n] = e.ArrayParam[n] : "object" == typeof e.ArrayParam[n] && (t.ArrayParam[n] = new i.LongBits(e.ArrayParam[n].low >>> 0, e.ArrayParam[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ArrayParam = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Name = "", i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Icon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Icon = t.longs === String ? "0" : 0, n.MemberCount = 0, n.IsRequested = !1, i.Long ? (o = new i.Long(0, 0, !1), n.RequireLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RequireLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.RequirePower = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.RequirePower = t.longs === String ? "0" : 0, n.LeaderName = "", n.LeaderCountry = ""
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.Icon && e.hasOwnProperty("Icon") && ("number" == typeof e.Icon ? n.Icon = t.longs === String ? String(e.Icon) : e.Icon : n.Icon = t.longs === String ? i.Long.prototype.toString.call(e.Icon) : t.longs === Number ? new i.LongBits(e.Icon.low >>> 0, e.Icon.high >>> 0).toNumber() : e.Icon), null != e.MemberCount && e.hasOwnProperty("MemberCount") && (n.MemberCount = e.MemberCount), null != e.IsRequested && e.hasOwnProperty("IsRequested") && (n.IsRequested = e.IsRequested), null != e.RequireLevel && e.hasOwnProperty("RequireLevel") && ("number" == typeof e.RequireLevel ? n.RequireLevel = t.longs === String ? String(e.RequireLevel) : e.RequireLevel : n.RequireLevel = t.longs === String ? i.Long.prototype.toString.call(e.RequireLevel) : t.longs === Number ? new i.LongBits(e.RequireLevel.low >>> 0, e.RequireLevel.high >>> 0).toNumber() : e.RequireLevel), null != e.RequirePower && e.hasOwnProperty("RequirePower") && ("number" == typeof e.RequirePower ? n.RequirePower = t.longs === String ? String(e.RequirePower) : e.RequirePower : n.RequirePower = t.longs === String ? i.Long.prototype.toString.call(e.RequirePower) : t.longs === Number ? new i.LongBits(e.RequirePower.low >>> 0, e.RequirePower.high >>> 0).toNumber() : e.RequirePower), null != e.LeaderName && e.hasOwnProperty("LeaderName") && (n.LeaderName = e.LeaderName), null != e.LeaderCountry && e.hasOwnProperty("LeaderCountry") && (n.LeaderCountry = e.LeaderCountry), e.ArrayParam && e.ArrayParam.length) {
                    n.ArrayParam = [];
                    for (var r = 0; r < e.ArrayParam.length; ++r) "number" == typeof e.ArrayParam[r] ? n.ArrayParam[r] = t.longs === String ? String(e.ArrayParam[r]) : e.ArrayParam[r] : n.ArrayParam[r] = t.longs === String ? i.Long.prototype.toString.call(e.ArrayParam[r]) : t.longs === Number ? new i.LongBits(e.ArrayParam[r].low >>> 0, e.ArrayParam[r].high >>> 0).toNumber() : e.ArrayParam[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SimpleAllianceInfo"
            }, e
        }(), a.AllianceMemberInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadFrame = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LastActiveTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AlliancePost = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TotalScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Day7Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Power = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Title = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Country = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(24).int64(e.Level), null != e.HeadIcon && Object.hasOwnProperty.call(e, "HeadIcon") && t.uint32(32).int64(e.HeadIcon), null != e.HeadFrame && Object.hasOwnProperty.call(e, "HeadFrame") && t.uint32(40).int64(e.HeadFrame), null != e.LastActiveTime && Object.hasOwnProperty.call(e, "LastActiveTime") && t.uint32(48).int64(e.LastActiveTime), null != e.AlliancePost && Object.hasOwnProperty.call(e, "AlliancePost") && t.uint32(56).int64(e.AlliancePost), null != e.TotalScore && Object.hasOwnProperty.call(e, "TotalScore") && t.uint32(64).int64(e.TotalScore), null != e.Day7Score && Object.hasOwnProperty.call(e, "Day7Score") && t.uint32(72).int64(e.Day7Score), null != e.Power && Object.hasOwnProperty.call(e, "Power") && t.uint32(80).int64(e.Power), null != e.Title && Object.hasOwnProperty.call(e, "Title") && t.uint32(88).int64(e.Title), null != e.Country && Object.hasOwnProperty.call(e, "Country") && t.uint32(98).string(e.Country), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceMemberInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            r.Level = e.int64();
                            break;
                        case 4:
                            r.HeadIcon = e.int64();
                            break;
                        case 5:
                            r.HeadFrame = e.int64();
                            break;
                        case 6:
                            r.LastActiveTime = e.int64();
                            break;
                        case 7:
                            r.AlliancePost = e.int64();
                            break;
                        case 8:
                            r.TotalScore = e.int64();
                            break;
                        case 9:
                            r.Day7Score = e.int64();
                            break;
                        case 10:
                            r.Power = e.int64();
                            break;
                        case 11:
                            r.Title = e.int64();
                            break;
                        case 12:
                            r.Country = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high)) ? "Level: integer|Long expected" : null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && !(i.isInteger(e.HeadIcon) || e.HeadIcon && i.isInteger(e.HeadIcon.low) && i.isInteger(e.HeadIcon.high)) ? "HeadIcon: integer|Long expected" : null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && !(i.isInteger(e.HeadFrame) || e.HeadFrame && i.isInteger(e.HeadFrame.low) && i.isInteger(e.HeadFrame.high)) ? "HeadFrame: integer|Long expected" : null != e.LastActiveTime && e.hasOwnProperty("LastActiveTime") && !(i.isInteger(e.LastActiveTime) || e.LastActiveTime && i.isInteger(e.LastActiveTime.low) && i.isInteger(e.LastActiveTime.high)) ? "LastActiveTime: integer|Long expected" : null != e.AlliancePost && e.hasOwnProperty("AlliancePost") && !(i.isInteger(e.AlliancePost) || e.AlliancePost && i.isInteger(e.AlliancePost.low) && i.isInteger(e.AlliancePost.high)) ? "AlliancePost: integer|Long expected" : null != e.TotalScore && e.hasOwnProperty("TotalScore") && !(i.isInteger(e.TotalScore) || e.TotalScore && i.isInteger(e.TotalScore.low) && i.isInteger(e.TotalScore.high)) ? "TotalScore: integer|Long expected" : null != e.Day7Score && e.hasOwnProperty("Day7Score") && !(i.isInteger(e.Day7Score) || e.Day7Score && i.isInteger(e.Day7Score.low) && i.isInteger(e.Day7Score.high)) ? "Day7Score: integer|Long expected" : null != e.Power && e.hasOwnProperty("Power") && !(i.isInteger(e.Power) || e.Power && i.isInteger(e.Power.low) && i.isInteger(e.Power.high)) ? "Power: integer|Long expected" : null != e.Title && e.hasOwnProperty("Title") && !(i.isInteger(e.Title) || e.Title && i.isInteger(e.Title.low) && i.isInteger(e.Title.high)) ? "Title: integer|Long expected" : null != e.Country && e.hasOwnProperty("Country") && !i.isString(e.Country) ? "Country: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceMemberInfo) return e;
                var t = new a.AllianceMemberInfo;
                return null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.HeadIcon && (i.Long ? (t.HeadIcon = i.Long.fromValue(e.HeadIcon)).unsigned = !1 : "string" == typeof e.HeadIcon ? t.HeadIcon = parseInt(e.HeadIcon, 10) : "number" == typeof e.HeadIcon ? t.HeadIcon = e.HeadIcon : "object" == typeof e.HeadIcon && (t.HeadIcon = new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber())), null != e.HeadFrame && (i.Long ? (t.HeadFrame = i.Long.fromValue(e.HeadFrame)).unsigned = !1 : "string" == typeof e.HeadFrame ? t.HeadFrame = parseInt(e.HeadFrame, 10) : "number" == typeof e.HeadFrame ? t.HeadFrame = e.HeadFrame : "object" == typeof e.HeadFrame && (t.HeadFrame = new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber())), null != e.LastActiveTime && (i.Long ? (t.LastActiveTime = i.Long.fromValue(e.LastActiveTime)).unsigned = !1 : "string" == typeof e.LastActiveTime ? t.LastActiveTime = parseInt(e.LastActiveTime, 10) : "number" == typeof e.LastActiveTime ? t.LastActiveTime = e.LastActiveTime : "object" == typeof e.LastActiveTime && (t.LastActiveTime = new i.LongBits(e.LastActiveTime.low >>> 0, e.LastActiveTime.high >>> 0).toNumber())), null != e.AlliancePost && (i.Long ? (t.AlliancePost = i.Long.fromValue(e.AlliancePost)).unsigned = !1 : "string" == typeof e.AlliancePost ? t.AlliancePost = parseInt(e.AlliancePost, 10) : "number" == typeof e.AlliancePost ? t.AlliancePost = e.AlliancePost : "object" == typeof e.AlliancePost && (t.AlliancePost = new i.LongBits(e.AlliancePost.low >>> 0, e.AlliancePost.high >>> 0).toNumber())), null != e.TotalScore && (i.Long ? (t.TotalScore = i.Long.fromValue(e.TotalScore)).unsigned = !1 : "string" == typeof e.TotalScore ? t.TotalScore = parseInt(e.TotalScore, 10) : "number" == typeof e.TotalScore ? t.TotalScore = e.TotalScore : "object" == typeof e.TotalScore && (t.TotalScore = new i.LongBits(e.TotalScore.low >>> 0, e.TotalScore.high >>> 0).toNumber())), null != e.Day7Score && (i.Long ? (t.Day7Score = i.Long.fromValue(e.Day7Score)).unsigned = !1 : "string" == typeof e.Day7Score ? t.Day7Score = parseInt(e.Day7Score, 10) : "number" == typeof e.Day7Score ? t.Day7Score = e.Day7Score : "object" == typeof e.Day7Score && (t.Day7Score = new i.LongBits(e.Day7Score.low >>> 0, e.Day7Score.high >>> 0).toNumber())), null != e.Power && (i.Long ? (t.Power = i.Long.fromValue(e.Power)).unsigned = !1 : "string" == typeof e.Power ? t.Power = parseInt(e.Power, 10) : "number" == typeof e.Power ? t.Power = e.Power : "object" == typeof e.Power && (t.Power = new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber())), null != e.Title && (i.Long ? (t.Title = i.Long.fromValue(e.Title)).unsigned = !1 : "string" == typeof e.Title ? t.Title = parseInt(e.Title, 10) : "number" == typeof e.Title ? t.Title = e.Title : "object" == typeof e.Title && (t.Title = new i.LongBits(e.Title.low >>> 0, e.Title.high >>> 0).toNumber())), null != e.Country && (t.Country = String(e.Country)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    n.Name = "", i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadIcon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadFrame = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadFrame = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.LastActiveTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LastActiveTime = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AlliancePost = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AlliancePost = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TotalScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TotalScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Day7Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Day7Score = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Power = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Power = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Title = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Title = t.longs === String ? "0" : 0, n.Country = ""
                }
                return null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && ("number" == typeof e.HeadIcon ? n.HeadIcon = t.longs === String ? String(e.HeadIcon) : e.HeadIcon : n.HeadIcon = t.longs === String ? i.Long.prototype.toString.call(e.HeadIcon) : t.longs === Number ? new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber() : e.HeadIcon), null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && ("number" == typeof e.HeadFrame ? n.HeadFrame = t.longs === String ? String(e.HeadFrame) : e.HeadFrame : n.HeadFrame = t.longs === String ? i.Long.prototype.toString.call(e.HeadFrame) : t.longs === Number ? new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber() : e.HeadFrame), null != e.LastActiveTime && e.hasOwnProperty("LastActiveTime") && ("number" == typeof e.LastActiveTime ? n.LastActiveTime = t.longs === String ? String(e.LastActiveTime) : e.LastActiveTime : n.LastActiveTime = t.longs === String ? i.Long.prototype.toString.call(e.LastActiveTime) : t.longs === Number ? new i.LongBits(e.LastActiveTime.low >>> 0, e.LastActiveTime.high >>> 0).toNumber() : e.LastActiveTime), null != e.AlliancePost && e.hasOwnProperty("AlliancePost") && ("number" == typeof e.AlliancePost ? n.AlliancePost = t.longs === String ? String(e.AlliancePost) : e.AlliancePost : n.AlliancePost = t.longs === String ? i.Long.prototype.toString.call(e.AlliancePost) : t.longs === Number ? new i.LongBits(e.AlliancePost.low >>> 0, e.AlliancePost.high >>> 0).toNumber() : e.AlliancePost), null != e.TotalScore && e.hasOwnProperty("TotalScore") && ("number" == typeof e.TotalScore ? n.TotalScore = t.longs === String ? String(e.TotalScore) : e.TotalScore : n.TotalScore = t.longs === String ? i.Long.prototype.toString.call(e.TotalScore) : t.longs === Number ? new i.LongBits(e.TotalScore.low >>> 0, e.TotalScore.high >>> 0).toNumber() : e.TotalScore), null != e.Day7Score && e.hasOwnProperty("Day7Score") && ("number" == typeof e.Day7Score ? n.Day7Score = t.longs === String ? String(e.Day7Score) : e.Day7Score : n.Day7Score = t.longs === String ? i.Long.prototype.toString.call(e.Day7Score) : t.longs === Number ? new i.LongBits(e.Day7Score.low >>> 0, e.Day7Score.high >>> 0).toNumber() : e.Day7Score), null != e.Power && e.hasOwnProperty("Power") && ("number" == typeof e.Power ? n.Power = t.longs === String ? String(e.Power) : e.Power : n.Power = t.longs === String ? i.Long.prototype.toString.call(e.Power) : t.longs === Number ? new i.LongBits(e.Power.low >>> 0, e.Power.high >>> 0).toNumber() : e.Power), null != e.Title && e.hasOwnProperty("Title") && ("number" == typeof e.Title ? n.Title = t.longs === String ? String(e.Title) : e.Title : n.Title = t.longs === String ? i.Long.prototype.toString.call(e.Title) : t.longs === Number ? new i.LongBits(e.Title.low >>> 0, e.Title.high >>> 0).toNumber() : e.Title), null != e.Country && e.hasOwnProperty("Country") && (n.Country = e.Country), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceMemberInfo"
            }, e
        }(), a.AllianceLog = function() {
            function e(e) {
                if (this.IntParam = [], this.StringParam = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Ts = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IntParam = i.emptyArray, e.prototype.StringParam = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Ts && Object.hasOwnProperty.call(e, "Ts") && t.uint32(8).int64(e.Ts), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int64(e.Type), null != e.IntParam && e.IntParam.length) {
                    t.uint32(50).fork();
                    for (var n = 0; n < e.IntParam.length; ++n) t.int64(e.IntParam[n]);
                    t.ldelim()
                }
                if (null != e.StringParam && e.StringParam.length)
                    for (n = 0; n < e.StringParam.length; ++n) t.uint32(58).string(e.StringParam[n]);
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceLog; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Ts = e.int64();
                            break;
                        case 2:
                            r.Type = e.int64();
                            break;
                        case 6:
                            if (r.IntParam && r.IntParam.length || (r.IntParam = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.IntParam.push(e.int64());
                            else r.IntParam.push(e.int64());
                            break;
                        case 7:
                            r.StringParam && r.StringParam.length || (r.StringParam = []), r.StringParam.push(e.string());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Ts && e.hasOwnProperty("Ts") && !(i.isInteger(e.Ts) || e.Ts && i.isInteger(e.Ts.low) && i.isInteger(e.Ts.high))) return "Ts: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.IntParam && e.hasOwnProperty("IntParam")) {
                    if (!Array.isArray(e.IntParam)) return "IntParam: array expected";
                    for (var t = 0; t < e.IntParam.length; ++t)
                        if (!(i.isInteger(e.IntParam[t]) || e.IntParam[t] && i.isInteger(e.IntParam[t].low) && i.isInteger(e.IntParam[t].high))) return "IntParam: integer|Long[] expected"
                }
                if (null != e.StringParam && e.hasOwnProperty("StringParam")) {
                    if (!Array.isArray(e.StringParam)) return "StringParam: array expected";
                    for (t = 0; t < e.StringParam.length; ++t)
                        if (!i.isString(e.StringParam[t])) return "StringParam: string[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceLog) return e;
                var t = new a.AllianceLog;
                if (null != e.Ts && (i.Long ? (t.Ts = i.Long.fromValue(e.Ts)).unsigned = !1 : "string" == typeof e.Ts ? t.Ts = parseInt(e.Ts, 10) : "number" == typeof e.Ts ? t.Ts = e.Ts : "object" == typeof e.Ts && (t.Ts = new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.IntParam) {
                    if (!Array.isArray(e.IntParam)) throw TypeError(".AllianceLog.IntParam: array expected");
                    t.IntParam = [];
                    for (var n = 0; n < e.IntParam.length; ++n) i.Long ? (t.IntParam[n] = i.Long.fromValue(e.IntParam[n])).unsigned = !1 : "string" == typeof e.IntParam[n] ? t.IntParam[n] = parseInt(e.IntParam[n], 10) : "number" == typeof e.IntParam[n] ? t.IntParam[n] = e.IntParam[n] : "object" == typeof e.IntParam[n] && (t.IntParam[n] = new i.LongBits(e.IntParam[n].low >>> 0, e.IntParam[n].high >>> 0).toNumber())
                }
                if (e.StringParam) {
                    if (!Array.isArray(e.StringParam)) throw TypeError(".AllianceLog.StringParam: array expected");
                    for (t.StringParam = [], n = 0; n < e.StringParam.length; ++n) t.StringParam[n] = String(e.StringParam[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.IntParam = [], n.StringParam = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Ts = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Ts = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Ts && e.hasOwnProperty("Ts") && ("number" == typeof e.Ts ? n.Ts = t.longs === String ? String(e.Ts) : e.Ts : n.Ts = t.longs === String ? i.Long.prototype.toString.call(e.Ts) : t.longs === Number ? new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber() : e.Ts), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.IntParam && e.IntParam.length) {
                    n.IntParam = [];
                    for (var r = 0; r < e.IntParam.length; ++r) "number" == typeof e.IntParam[r] ? n.IntParam[r] = t.longs === String ? String(e.IntParam[r]) : e.IntParam[r] : n.IntParam[r] = t.longs === String ? i.Long.prototype.toString.call(e.IntParam[r]) : t.longs === Number ? new i.LongBits(e.IntParam[r].low >>> 0, e.IntParam[r].high >>> 0).toNumber() : e.IntParam[r]
                }
                if (e.StringParam && e.StringParam.length)
                    for (n.StringParam = [], r = 0; r < e.StringParam.length; ++r) n.StringParam[r] = e.StringParam[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceLog"
            }, e
        }(), a.AllianceMazeData = function() {
            function e(e) {
                if (this.Map = [], this.SetFire = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Map = i.emptyArray, e.prototype.Level = 0, e.prototype.HolyExp = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SetFire = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Map && e.Map.length)
                    for (var n = 0; n < e.Map.length; ++n) a.AllianceMazeMap.encode(e.Map[n], t.uint32(10).fork()).ldelim();
                if (null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(16).int32(e.Level), null != e.HolyExp && Object.hasOwnProperty.call(e, "HolyExp") && t.uint32(24).int64(e.HolyExp), null != e.SetFire && e.SetFire.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.SetFire.length; ++n) t.int32(e.SetFire[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AllianceMazeData; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Map && r.Map.length || (r.Map = []), r.Map.push(a.AllianceMazeMap.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.Level = e.int32();
                            break;
                        case 3:
                            r.HolyExp = e.int64();
                            break;
                        case 4:
                            if (r.SetFire && r.SetFire.length || (r.SetFire = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.SetFire.push(e.int32());
                            else r.SetFire.push(e.int32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!Array.isArray(e.Map)) return "Map: array expected";
                    for (var t = 0; t < e.Map.length; ++t) {
                        var n = a.AllianceMazeMap.verify(e.Map[t]);
                        if (n) return "Map." + n
                    }
                }
                if (null != e.Level && e.hasOwnProperty("Level") && !i.isInteger(e.Level)) return "Level: integer expected";
                if (null != e.HolyExp && e.hasOwnProperty("HolyExp") && !(i.isInteger(e.HolyExp) || e.HolyExp && i.isInteger(e.HolyExp.low) && i.isInteger(e.HolyExp.high))) return "HolyExp: integer|Long expected";
                if (null != e.SetFire && e.hasOwnProperty("SetFire")) {
                    if (!Array.isArray(e.SetFire)) return "SetFire: array expected";
                    for (t = 0; t < e.SetFire.length; ++t)
                        if (!i.isInteger(e.SetFire[t])) return "SetFire: integer[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceMazeData) return e;
                var t = new a.AllianceMazeData;
                if (e.Map) {
                    if (!Array.isArray(e.Map)) throw TypeError(".AllianceMazeData.Map: array expected");
                    t.Map = [];
                    for (var n = 0; n < e.Map.length; ++n) {
                        if ("object" != typeof e.Map[n]) throw TypeError(".AllianceMazeData.Map: object expected");
                        t.Map[n] = a.AllianceMazeMap.fromObject(e.Map[n])
                    }
                }
                if (null != e.Level && (t.Level = 0 | e.Level), null != e.HolyExp && (i.Long ? (t.HolyExp = i.Long.fromValue(e.HolyExp)).unsigned = !1 : "string" == typeof e.HolyExp ? t.HolyExp = parseInt(e.HolyExp, 10) : "number" == typeof e.HolyExp ? t.HolyExp = e.HolyExp : "object" == typeof e.HolyExp && (t.HolyExp = new i.LongBits(e.HolyExp.low >>> 0, e.HolyExp.high >>> 0).toNumber())), e.SetFire) {
                    if (!Array.isArray(e.SetFire)) throw TypeError(".AllianceMazeData.SetFire: array expected");
                    for (t.SetFire = [], n = 0; n < e.SetFire.length; ++n) t.SetFire[n] = 0 | e.SetFire[n]
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Map = [], n.SetFire = []), t.defaults)
                    if (n.Level = 0, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.HolyExp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.HolyExp = t.longs === String ? "0" : 0;
                if (e.Map && e.Map.length) {
                    n.Map = [];
                    for (var r = 0; r < e.Map.length; ++r) n.Map[r] = a.AllianceMazeMap.toObject(e.Map[r], t)
                }
                if (null != e.Level && e.hasOwnProperty("Level") && (n.Level = e.Level), null != e.HolyExp && e.hasOwnProperty("HolyExp") && ("number" == typeof e.HolyExp ? n.HolyExp = t.longs === String ? String(e.HolyExp) : e.HolyExp : n.HolyExp = t.longs === String ? i.Long.prototype.toString.call(e.HolyExp) : t.longs === Number ? new i.LongBits(e.HolyExp.low >>> 0, e.HolyExp.high >>> 0).toNumber() : e.HolyExp), e.SetFire && e.SetFire.length)
                    for (n.SetFire = [], r = 0; r < e.SetFire.length; ++r) n.SetFire[r] = e.SetFire[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceMazeData"
            }, e
        }(), a.AllianceMazeMap = function() {
            function e(e) {
                if (this.Map = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Map = i.emptyObject, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Map && Object.hasOwnProperty.call(e, "Map"))
                    for (var n = Object.keys(e.Map), o = 0; o < n.length; ++o) t.uint32(10).fork().uint32(10).string(n[o]), a.IntArray.encode(e.Map[n[o]], t.uint32(18).fork()).ldelim().ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.AllianceMazeMap; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Map === i.emptyObject && (l.Map = {});
                            var u = e.uint32() + e.pos;
                            for (n = "", r = null; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.string();
                                        break;
                                    case 2:
                                        r = a.IntArray.decode(e, e.uint32());
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.Map[n] = r;
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!i.isObject(e.Map)) return "Map: object expected";
                    for (var t = Object.keys(e.Map), n = 0; n < t.length; ++n) {
                        var o = a.IntArray.verify(e.Map[t[n]]);
                        if (o) return "Map." + o
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AllianceMazeMap) return e;
                var t = new a.AllianceMazeMap;
                if (e.Map) {
                    if ("object" != typeof e.Map) throw TypeError(".AllianceMazeMap.Map: object expected");
                    t.Map = {};
                    for (var n = Object.keys(e.Map), o = 0; o < n.length; ++o) {
                        if ("object" != typeof e.Map[n[o]]) throw TypeError(".AllianceMazeMap.Map: object expected");
                        t.Map[n[o]] = a.IntArray.fromObject(e.Map[n[o]])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.objects || t.defaults) && (o.Map = {}), e.Map && (n = Object.keys(e.Map)).length) {
                    o.Map = {};
                    for (var r = 0; r < n.length; ++r) o.Map[n[r]] = a.IntArray.toObject(e.Map[n[r]], t)
                }
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AllianceMazeMap"
            }, e
        }(), a.BattleMessage = function() {
            function e(e) {
                if (this.IntParams = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Ts = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Result = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Report = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IntParams = i.emptyArray, e.prototype.AttackerInfo = null, e.prototype.DefenderInfo = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Ts && Object.hasOwnProperty.call(e, "Ts") && t.uint32(8).int64(e.Ts), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(16).int64(e.Result), null != e.Report && Object.hasOwnProperty.call(e, "Report") && t.uint32(24).int64(e.Report), null != e.IntParams && e.IntParams.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.IntParams.length; ++n) t.int64(e.IntParams[n]);
                    t.ldelim()
                }
                return null != e.AttackerInfo && Object.hasOwnProperty.call(e, "AttackerInfo") && a.PlayerSimpleInfo.encode(e.AttackerInfo, t.uint32(42).fork()).ldelim(), null != e.DefenderInfo && Object.hasOwnProperty.call(e, "DefenderInfo") && a.PlayerSimpleInfo.encode(e.DefenderInfo, t.uint32(50).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.BattleMessage; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Ts = e.int64();
                            break;
                        case 2:
                            r.Result = e.int64();
                            break;
                        case 3:
                            r.Report = e.int64();
                            break;
                        case 4:
                            if (r.IntParams && r.IntParams.length || (r.IntParams = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.IntParams.push(e.int64());
                            else r.IntParams.push(e.int64());
                            break;
                        case 5:
                            r.AttackerInfo = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        case 6:
                            r.DefenderInfo = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Ts && e.hasOwnProperty("Ts") && !(i.isInteger(e.Ts) || e.Ts && i.isInteger(e.Ts.low) && i.isInteger(e.Ts.high))) return "Ts: integer|Long expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !(i.isInteger(e.Result) || e.Result && i.isInteger(e.Result.low) && i.isInteger(e.Result.high))) return "Result: integer|Long expected";
                if (null != e.Report && e.hasOwnProperty("Report") && !(i.isInteger(e.Report) || e.Report && i.isInteger(e.Report.low) && i.isInteger(e.Report.high))) return "Report: integer|Long expected";
                if (null != e.IntParams && e.hasOwnProperty("IntParams")) {
                    if (!Array.isArray(e.IntParams)) return "IntParams: array expected";
                    for (var t = 0; t < e.IntParams.length; ++t)
                        if (!(i.isInteger(e.IntParams[t]) || e.IntParams[t] && i.isInteger(e.IntParams[t].low) && i.isInteger(e.IntParams[t].high))) return "IntParams: integer|Long[] expected"
                }
                var n;
                return null != e.AttackerInfo && e.hasOwnProperty("AttackerInfo") && (n = a.PlayerSimpleInfo.verify(e.AttackerInfo)) ? "AttackerInfo." + n : null != e.DefenderInfo && e.hasOwnProperty("DefenderInfo") && (n = a.PlayerSimpleInfo.verify(e.DefenderInfo)) ? "DefenderInfo." + n : null
            }, e.fromObject = function(e) {
                if (e instanceof a.BattleMessage) return e;
                var t = new a.BattleMessage;
                if (null != e.Ts && (i.Long ? (t.Ts = i.Long.fromValue(e.Ts)).unsigned = !1 : "string" == typeof e.Ts ? t.Ts = parseInt(e.Ts, 10) : "number" == typeof e.Ts ? t.Ts = e.Ts : "object" == typeof e.Ts && (t.Ts = new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber())), null != e.Result && (i.Long ? (t.Result = i.Long.fromValue(e.Result)).unsigned = !1 : "string" == typeof e.Result ? t.Result = parseInt(e.Result, 10) : "number" == typeof e.Result ? t.Result = e.Result : "object" == typeof e.Result && (t.Result = new i.LongBits(e.Result.low >>> 0, e.Result.high >>> 0).toNumber())), null != e.Report && (i.Long ? (t.Report = i.Long.fromValue(e.Report)).unsigned = !1 : "string" == typeof e.Report ? t.Report = parseInt(e.Report, 10) : "number" == typeof e.Report ? t.Report = e.Report : "object" == typeof e.Report && (t.Report = new i.LongBits(e.Report.low >>> 0, e.Report.high >>> 0).toNumber())), e.IntParams) {
                    if (!Array.isArray(e.IntParams)) throw TypeError(".BattleMessage.IntParams: array expected");
                    t.IntParams = [];
                    for (var n = 0; n < e.IntParams.length; ++n) i.Long ? (t.IntParams[n] = i.Long.fromValue(e.IntParams[n])).unsigned = !1 : "string" == typeof e.IntParams[n] ? t.IntParams[n] = parseInt(e.IntParams[n], 10) : "number" == typeof e.IntParams[n] ? t.IntParams[n] = e.IntParams[n] : "object" == typeof e.IntParams[n] && (t.IntParams[n] = new i.LongBits(e.IntParams[n].low >>> 0, e.IntParams[n].high >>> 0).toNumber())
                }
                if (null != e.AttackerInfo) {
                    if ("object" != typeof e.AttackerInfo) throw TypeError(".BattleMessage.AttackerInfo: object expected");
                    t.AttackerInfo = a.PlayerSimpleInfo.fromObject(e.AttackerInfo)
                }
                if (null != e.DefenderInfo) {
                    if ("object" != typeof e.DefenderInfo) throw TypeError(".BattleMessage.DefenderInfo: object expected");
                    t.DefenderInfo = a.PlayerSimpleInfo.fromObject(e.DefenderInfo)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.IntParams = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Ts = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Ts = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Result = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Result = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Report = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Report = t.longs === String ? "0" : 0, n.AttackerInfo = null, n.DefenderInfo = null
                }
                if (null != e.Ts && e.hasOwnProperty("Ts") && ("number" == typeof e.Ts ? n.Ts = t.longs === String ? String(e.Ts) : e.Ts : n.Ts = t.longs === String ? i.Long.prototype.toString.call(e.Ts) : t.longs === Number ? new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber() : e.Ts), null != e.Result && e.hasOwnProperty("Result") && ("number" == typeof e.Result ? n.Result = t.longs === String ? String(e.Result) : e.Result : n.Result = t.longs === String ? i.Long.prototype.toString.call(e.Result) : t.longs === Number ? new i.LongBits(e.Result.low >>> 0, e.Result.high >>> 0).toNumber() : e.Result), null != e.Report && e.hasOwnProperty("Report") && ("number" == typeof e.Report ? n.Report = t.longs === String ? String(e.Report) : e.Report : n.Report = t.longs === String ? i.Long.prototype.toString.call(e.Report) : t.longs === Number ? new i.LongBits(e.Report.low >>> 0, e.Report.high >>> 0).toNumber() : e.Report), e.IntParams && e.IntParams.length) {
                    n.IntParams = [];
                    for (var r = 0; r < e.IntParams.length; ++r) "number" == typeof e.IntParams[r] ? n.IntParams[r] = t.longs === String ? String(e.IntParams[r]) : e.IntParams[r] : n.IntParams[r] = t.longs === String ? i.Long.prototype.toString.call(e.IntParams[r]) : t.longs === Number ? new i.LongBits(e.IntParams[r].low >>> 0, e.IntParams[r].high >>> 0).toNumber() : e.IntParams[r]
                }
                return null != e.AttackerInfo && e.hasOwnProperty("AttackerInfo") && (n.AttackerInfo = a.PlayerSimpleInfo.toObject(e.AttackerInfo, t)), null != e.DefenderInfo && e.hasOwnProperty("DefenderInfo") && (n.DefenderInfo = a.PlayerSimpleInfo.toObject(e.DefenderInfo, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/BattleMessage"
            }, e
        }(), a.SimpleBattleMessage = function() {
            function e(e) {
                if (this.IntParams = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Ts = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Result = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Report = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IntParams = i.emptyArray, e.prototype.AttackerUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DefenderUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Ts && Object.hasOwnProperty.call(e, "Ts") && t.uint32(8).int64(e.Ts), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(16).int64(e.Result), null != e.Report && Object.hasOwnProperty.call(e, "Report") && t.uint32(24).int64(e.Report), null != e.IntParams && e.IntParams.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.IntParams.length; ++n) t.int64(e.IntParams[n]);
                    t.ldelim()
                }
                return null != e.AttackerUid && Object.hasOwnProperty.call(e, "AttackerUid") && t.uint32(40).int64(e.AttackerUid), null != e.DefenderUid && Object.hasOwnProperty.call(e, "DefenderUid") && t.uint32(48).int64(e.DefenderUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.SimpleBattleMessage; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Ts = e.int64();
                            break;
                        case 2:
                            r.Result = e.int64();
                            break;
                        case 3:
                            r.Report = e.int64();
                            break;
                        case 4:
                            if (r.IntParams && r.IntParams.length || (r.IntParams = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.IntParams.push(e.int64());
                            else r.IntParams.push(e.int64());
                            break;
                        case 5:
                            r.AttackerUid = e.int64();
                            break;
                        case 6:
                            r.DefenderUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Ts && e.hasOwnProperty("Ts") && !(i.isInteger(e.Ts) || e.Ts && i.isInteger(e.Ts.low) && i.isInteger(e.Ts.high))) return "Ts: integer|Long expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !(i.isInteger(e.Result) || e.Result && i.isInteger(e.Result.low) && i.isInteger(e.Result.high))) return "Result: integer|Long expected";
                if (null != e.Report && e.hasOwnProperty("Report") && !(i.isInteger(e.Report) || e.Report && i.isInteger(e.Report.low) && i.isInteger(e.Report.high))) return "Report: integer|Long expected";
                if (null != e.IntParams && e.hasOwnProperty("IntParams")) {
                    if (!Array.isArray(e.IntParams)) return "IntParams: array expected";
                    for (var t = 0; t < e.IntParams.length; ++t)
                        if (!(i.isInteger(e.IntParams[t]) || e.IntParams[t] && i.isInteger(e.IntParams[t].low) && i.isInteger(e.IntParams[t].high))) return "IntParams: integer|Long[] expected"
                }
                return null != e.AttackerUid && e.hasOwnProperty("AttackerUid") && !(i.isInteger(e.AttackerUid) || e.AttackerUid && i.isInteger(e.AttackerUid.low) && i.isInteger(e.AttackerUid.high)) ? "AttackerUid: integer|Long expected" : null != e.DefenderUid && e.hasOwnProperty("DefenderUid") && !(i.isInteger(e.DefenderUid) || e.DefenderUid && i.isInteger(e.DefenderUid.low) && i.isInteger(e.DefenderUid.high)) ? "DefenderUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.SimpleBattleMessage) return e;
                var t = new a.SimpleBattleMessage;
                if (null != e.Ts && (i.Long ? (t.Ts = i.Long.fromValue(e.Ts)).unsigned = !1 : "string" == typeof e.Ts ? t.Ts = parseInt(e.Ts, 10) : "number" == typeof e.Ts ? t.Ts = e.Ts : "object" == typeof e.Ts && (t.Ts = new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber())), null != e.Result && (i.Long ? (t.Result = i.Long.fromValue(e.Result)).unsigned = !1 : "string" == typeof e.Result ? t.Result = parseInt(e.Result, 10) : "number" == typeof e.Result ? t.Result = e.Result : "object" == typeof e.Result && (t.Result = new i.LongBits(e.Result.low >>> 0, e.Result.high >>> 0).toNumber())), null != e.Report && (i.Long ? (t.Report = i.Long.fromValue(e.Report)).unsigned = !1 : "string" == typeof e.Report ? t.Report = parseInt(e.Report, 10) : "number" == typeof e.Report ? t.Report = e.Report : "object" == typeof e.Report && (t.Report = new i.LongBits(e.Report.low >>> 0, e.Report.high >>> 0).toNumber())), e.IntParams) {
                    if (!Array.isArray(e.IntParams)) throw TypeError(".SimpleBattleMessage.IntParams: array expected");
                    t.IntParams = [];
                    for (var n = 0; n < e.IntParams.length; ++n) i.Long ? (t.IntParams[n] = i.Long.fromValue(e.IntParams[n])).unsigned = !1 : "string" == typeof e.IntParams[n] ? t.IntParams[n] = parseInt(e.IntParams[n], 10) : "number" == typeof e.IntParams[n] ? t.IntParams[n] = e.IntParams[n] : "object" == typeof e.IntParams[n] && (t.IntParams[n] = new i.LongBits(e.IntParams[n].low >>> 0, e.IntParams[n].high >>> 0).toNumber())
                }
                return null != e.AttackerUid && (i.Long ? (t.AttackerUid = i.Long.fromValue(e.AttackerUid)).unsigned = !1 : "string" == typeof e.AttackerUid ? t.AttackerUid = parseInt(e.AttackerUid, 10) : "number" == typeof e.AttackerUid ? t.AttackerUid = e.AttackerUid : "object" == typeof e.AttackerUid && (t.AttackerUid = new i.LongBits(e.AttackerUid.low >>> 0, e.AttackerUid.high >>> 0).toNumber())), null != e.DefenderUid && (i.Long ? (t.DefenderUid = i.Long.fromValue(e.DefenderUid)).unsigned = !1 : "string" == typeof e.DefenderUid ? t.DefenderUid = parseInt(e.DefenderUid, 10) : "number" == typeof e.DefenderUid ? t.DefenderUid = e.DefenderUid : "object" == typeof e.DefenderUid && (t.DefenderUid = new i.LongBits(e.DefenderUid.low >>> 0, e.DefenderUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.IntParams = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Ts = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Ts = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Result = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Result = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Report = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Report = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AttackerUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AttackerUid = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DefenderUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DefenderUid = t.longs === String ? "0" : 0
                }
                if (null != e.Ts && e.hasOwnProperty("Ts") && ("number" == typeof e.Ts ? n.Ts = t.longs === String ? String(e.Ts) : e.Ts : n.Ts = t.longs === String ? i.Long.prototype.toString.call(e.Ts) : t.longs === Number ? new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber() : e.Ts), null != e.Result && e.hasOwnProperty("Result") && ("number" == typeof e.Result ? n.Result = t.longs === String ? String(e.Result) : e.Result : n.Result = t.longs === String ? i.Long.prototype.toString.call(e.Result) : t.longs === Number ? new i.LongBits(e.Result.low >>> 0, e.Result.high >>> 0).toNumber() : e.Result), null != e.Report && e.hasOwnProperty("Report") && ("number" == typeof e.Report ? n.Report = t.longs === String ? String(e.Report) : e.Report : n.Report = t.longs === String ? i.Long.prototype.toString.call(e.Report) : t.longs === Number ? new i.LongBits(e.Report.low >>> 0, e.Report.high >>> 0).toNumber() : e.Report), e.IntParams && e.IntParams.length) {
                    n.IntParams = [];
                    for (var r = 0; r < e.IntParams.length; ++r) "number" == typeof e.IntParams[r] ? n.IntParams[r] = t.longs === String ? String(e.IntParams[r]) : e.IntParams[r] : n.IntParams[r] = t.longs === String ? i.Long.prototype.toString.call(e.IntParams[r]) : t.longs === Number ? new i.LongBits(e.IntParams[r].low >>> 0, e.IntParams[r].high >>> 0).toNumber() : e.IntParams[r]
                }
                return null != e.AttackerUid && e.hasOwnProperty("AttackerUid") && ("number" == typeof e.AttackerUid ? n.AttackerUid = t.longs === String ? String(e.AttackerUid) : e.AttackerUid : n.AttackerUid = t.longs === String ? i.Long.prototype.toString.call(e.AttackerUid) : t.longs === Number ? new i.LongBits(e.AttackerUid.low >>> 0, e.AttackerUid.high >>> 0).toNumber() : e.AttackerUid), null != e.DefenderUid && e.hasOwnProperty("DefenderUid") && ("number" == typeof e.DefenderUid ? n.DefenderUid = t.longs === String ? String(e.DefenderUid) : e.DefenderUid : n.DefenderUid = t.longs === String ? i.Long.prototype.toString.call(e.DefenderUid) : t.longs === Number ? new i.LongBits(e.DefenderUid.low >>> 0, e.DefenderUid.high >>> 0).toNumber() : e.DefenderUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/SimpleBattleMessage"
            }, e
        }(), a.HotUpdateAsset = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Name = "", e.prototype.Size = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(10).string(e.Name), null != e.Size && Object.hasOwnProperty.call(e, "Size") && t.uint32(16).int64(e.Size), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.HotUpdateAsset; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Name = e.string();
                            break;
                        case 2:
                            r.Size = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.Size && e.hasOwnProperty("Size") && !(i.isInteger(e.Size) || e.Size && i.isInteger(e.Size.low) && i.isInteger(e.Size.high)) ? "Size: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.HotUpdateAsset) return e;
                var t = new a.HotUpdateAsset;
                return null != e.Name && (t.Name = String(e.Name)), null != e.Size && (i.Long ? (t.Size = i.Long.fromValue(e.Size)).unsigned = !1 : "string" == typeof e.Size ? t.Size = parseInt(e.Size, 10) : "number" == typeof e.Size ? t.Size = e.Size : "object" == typeof e.Size && (t.Size = new i.LongBits(e.Size.low >>> 0, e.Size.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (n.Name = "", i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Size = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Size = t.longs === String ? "0" : 0;
                return null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Size && e.hasOwnProperty("Size") && ("number" == typeof e.Size ? n.Size = t.longs === String ? String(e.Size) : e.Size : n.Size = t.longs === String ? i.Long.prototype.toString.call(e.Size) : t.longs === Number ? new i.LongBits(e.Size.low >>> 0, e.Size.high >>> 0).toNumber() : e.Size), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/HotUpdateAsset"
            }, e
        }(), a.TradeWarRoundMessage = function() {
            function e(e) {
                if (this.CityIds = [], this.CityScores = [], this.LeaderInfos = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.CityIds = i.emptyArray, e.prototype.CityScores = i.emptyArray, e.prototype.LeaderInfos = i.emptyArray, e.prototype.MyCityId = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.CityIds && e.CityIds.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.CityIds.length; ++n) t.int32(e.CityIds[n]);
                    t.ldelim()
                }
                if (null != e.CityScores && e.CityScores.length) {
                    for (t.uint32(18).fork(), n = 0; n < e.CityScores.length; ++n) t.int32(e.CityScores[n]);
                    t.ldelim()
                }
                if (null != e.LeaderInfos && e.LeaderInfos.length)
                    for (n = 0; n < e.LeaderInfos.length; ++n) a.PlayerSimpleInfo.encode(e.LeaderInfos[n], t.uint32(26).fork()).ldelim();
                return null != e.MyCityId && Object.hasOwnProperty.call(e, "MyCityId") && t.uint32(32).int32(e.MyCityId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.TradeWarRoundMessage; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.CityIds && r.CityIds.length || (r.CityIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.CityIds.push(e.int32());
                            else r.CityIds.push(e.int32());
                            break;
                        case 2:
                            if (r.CityScores && r.CityScores.length || (r.CityScores = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.CityScores.push(e.int32());
                            else r.CityScores.push(e.int32());
                            break;
                        case 3:
                            r.LeaderInfos && r.LeaderInfos.length || (r.LeaderInfos = []), r.LeaderInfos.push(a.PlayerSimpleInfo.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.MyCityId = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.CityIds && e.hasOwnProperty("CityIds")) {
                    if (!Array.isArray(e.CityIds)) return "CityIds: array expected";
                    for (var t = 0; t < e.CityIds.length; ++t)
                        if (!i.isInteger(e.CityIds[t])) return "CityIds: integer[] expected"
                }
                if (null != e.CityScores && e.hasOwnProperty("CityScores")) {
                    if (!Array.isArray(e.CityScores)) return "CityScores: array expected";
                    for (t = 0; t < e.CityScores.length; ++t)
                        if (!i.isInteger(e.CityScores[t])) return "CityScores: integer[] expected"
                }
                if (null != e.LeaderInfos && e.hasOwnProperty("LeaderInfos")) {
                    if (!Array.isArray(e.LeaderInfos)) return "LeaderInfos: array expected";
                    for (t = 0; t < e.LeaderInfos.length; ++t) {
                        var n = a.PlayerSimpleInfo.verify(e.LeaderInfos[t]);
                        if (n) return "LeaderInfos." + n
                    }
                }
                return null != e.MyCityId && e.hasOwnProperty("MyCityId") && !i.isInteger(e.MyCityId) ? "MyCityId: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.TradeWarRoundMessage) return e;
                var t = new a.TradeWarRoundMessage;
                if (e.CityIds) {
                    if (!Array.isArray(e.CityIds)) throw TypeError(".TradeWarRoundMessage.CityIds: array expected");
                    t.CityIds = [];
                    for (var n = 0; n < e.CityIds.length; ++n) t.CityIds[n] = 0 | e.CityIds[n]
                }
                if (e.CityScores) {
                    if (!Array.isArray(e.CityScores)) throw TypeError(".TradeWarRoundMessage.CityScores: array expected");
                    for (t.CityScores = [], n = 0; n < e.CityScores.length; ++n) t.CityScores[n] = 0 | e.CityScores[n]
                }
                if (e.LeaderInfos) {
                    if (!Array.isArray(e.LeaderInfos)) throw TypeError(".TradeWarRoundMessage.LeaderInfos: array expected");
                    for (t.LeaderInfos = [], n = 0; n < e.LeaderInfos.length; ++n) {
                        if ("object" != typeof e.LeaderInfos[n]) throw TypeError(".TradeWarRoundMessage.LeaderInfos: object expected");
                        t.LeaderInfos[n] = a.PlayerSimpleInfo.fromObject(e.LeaderInfos[n])
                    }
                }
                return null != e.MyCityId && (t.MyCityId = 0 | e.MyCityId), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.CityIds = [], n.CityScores = [], n.LeaderInfos = []), t.defaults && (n.MyCityId = 0), e.CityIds && e.CityIds.length) {
                    n.CityIds = [];
                    for (var o = 0; o < e.CityIds.length; ++o) n.CityIds[o] = e.CityIds[o]
                }
                if (e.CityScores && e.CityScores.length)
                    for (n.CityScores = [], o = 0; o < e.CityScores.length; ++o) n.CityScores[o] = e.CityScores[o];
                if (e.LeaderInfos && e.LeaderInfos.length)
                    for (n.LeaderInfos = [], o = 0; o < e.LeaderInfos.length; ++o) n.LeaderInfos[o] = a.PlayerSimpleInfo.toObject(e.LeaderInfos[o], t);
                return null != e.MyCityId && e.hasOwnProperty("MyCityId") && (n.MyCityId = e.MyCityId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/TradeWarRoundMessage"
            }, e
        }(), a.CutPriceGiftInfo = function() {
            function e(e) {
                if (this.PlayerNames = [], this.BuyPlayerInfos = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.GroupIndex = 0, e.prototype.BuyGiftId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PlayerNames = i.emptyArray, e.prototype.BuyPlayerInfos = i.emptyObject, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.GroupIndex && Object.hasOwnProperty.call(e, "GroupIndex") && t.uint32(8).int32(e.GroupIndex), null != e.BuyGiftId && Object.hasOwnProperty.call(e, "BuyGiftId") && t.uint32(16).int64(e.BuyGiftId), null != e.PlayerNames && e.PlayerNames.length)
                    for (var n = 0; n < e.PlayerNames.length; ++n) t.uint32(26).string(e.PlayerNames[n]);
                if (null != e.BuyPlayerInfos && Object.hasOwnProperty.call(e, "BuyPlayerInfos")) {
                    var o = Object.keys(e.BuyPlayerInfos);
                    for (n = 0; n < o.length; ++n) t.uint32(34).fork().uint32(10).string(o[n]).uint32(16).int64(e.BuyPlayerInfos[o[n]]).ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.CutPriceGiftInfo; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.GroupIndex = e.int32();
                            break;
                        case 2:
                            l.BuyGiftId = e.int64();
                            break;
                        case 3:
                            l.PlayerNames && l.PlayerNames.length || (l.PlayerNames = []), l.PlayerNames.push(e.string());
                            break;
                        case 4:
                            l.BuyPlayerInfos === i.emptyObject && (l.BuyPlayerInfos = {});
                            var u = e.uint32() + e.pos;
                            for (n = "", r = 0; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.string();
                                        break;
                                    case 2:
                                        r = e.int64();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.BuyPlayerInfos[n] = r;
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.GroupIndex && e.hasOwnProperty("GroupIndex") && !i.isInteger(e.GroupIndex)) return "GroupIndex: integer expected";
                if (null != e.BuyGiftId && e.hasOwnProperty("BuyGiftId") && !(i.isInteger(e.BuyGiftId) || e.BuyGiftId && i.isInteger(e.BuyGiftId.low) && i.isInteger(e.BuyGiftId.high))) return "BuyGiftId: integer|Long expected";
                if (null != e.PlayerNames && e.hasOwnProperty("PlayerNames")) {
                    if (!Array.isArray(e.PlayerNames)) return "PlayerNames: array expected";
                    for (var t = 0; t < e.PlayerNames.length; ++t)
                        if (!i.isString(e.PlayerNames[t])) return "PlayerNames: string[] expected"
                }
                if (null != e.BuyPlayerInfos && e.hasOwnProperty("BuyPlayerInfos")) {
                    if (!i.isObject(e.BuyPlayerInfos)) return "BuyPlayerInfos: object expected";
                    var n = Object.keys(e.BuyPlayerInfos);
                    for (t = 0; t < n.length; ++t)
                        if (!(i.isInteger(e.BuyPlayerInfos[n[t]]) || e.BuyPlayerInfos[n[t]] && i.isInteger(e.BuyPlayerInfos[n[t]].low) && i.isInteger(e.BuyPlayerInfos[n[t]].high))) return "BuyPlayerInfos: integer|Long{k:string} expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.CutPriceGiftInfo) return e;
                var t = new a.CutPriceGiftInfo;
                if (null != e.GroupIndex && (t.GroupIndex = 0 | e.GroupIndex), null != e.BuyGiftId && (i.Long ? (t.BuyGiftId = i.Long.fromValue(e.BuyGiftId)).unsigned = !1 : "string" == typeof e.BuyGiftId ? t.BuyGiftId = parseInt(e.BuyGiftId, 10) : "number" == typeof e.BuyGiftId ? t.BuyGiftId = e.BuyGiftId : "object" == typeof e.BuyGiftId && (t.BuyGiftId = new i.LongBits(e.BuyGiftId.low >>> 0, e.BuyGiftId.high >>> 0).toNumber())), e.PlayerNames) {
                    if (!Array.isArray(e.PlayerNames)) throw TypeError(".CutPriceGiftInfo.PlayerNames: array expected");
                    t.PlayerNames = [];
                    for (var n = 0; n < e.PlayerNames.length; ++n) t.PlayerNames[n] = String(e.PlayerNames[n])
                }
                if (e.BuyPlayerInfos) {
                    if ("object" != typeof e.BuyPlayerInfos) throw TypeError(".CutPriceGiftInfo.BuyPlayerInfos: object expected");
                    t.BuyPlayerInfos = {};
                    var o = Object.keys(e.BuyPlayerInfos);
                    for (n = 0; n < o.length; ++n) i.Long ? (t.BuyPlayerInfos[o[n]] = i.Long.fromValue(e.BuyPlayerInfos[o[n]])).unsigned = !1 : "string" == typeof e.BuyPlayerInfos[o[n]] ? t.BuyPlayerInfos[o[n]] = parseInt(e.BuyPlayerInfos[o[n]], 10) : "number" == typeof e.BuyPlayerInfos[o[n]] ? t.BuyPlayerInfos[o[n]] = e.BuyPlayerInfos[o[n]] : "object" == typeof e.BuyPlayerInfos[o[n]] && (t.BuyPlayerInfos[o[n]] = new i.LongBits(e.BuyPlayerInfos[o[n]].low >>> 0, e.BuyPlayerInfos[o[n]].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.PlayerNames = []), (t.objects || t.defaults) && (o.BuyPlayerInfos = {}), t.defaults)
                    if (o.GroupIndex = 0, i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.BuyGiftId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.BuyGiftId = t.longs === String ? "0" : 0;
                if (null != e.GroupIndex && e.hasOwnProperty("GroupIndex") && (o.GroupIndex = e.GroupIndex), null != e.BuyGiftId && e.hasOwnProperty("BuyGiftId") && ("number" == typeof e.BuyGiftId ? o.BuyGiftId = t.longs === String ? String(e.BuyGiftId) : e.BuyGiftId : o.BuyGiftId = t.longs === String ? i.Long.prototype.toString.call(e.BuyGiftId) : t.longs === Number ? new i.LongBits(e.BuyGiftId.low >>> 0, e.BuyGiftId.high >>> 0).toNumber() : e.BuyGiftId), e.PlayerNames && e.PlayerNames.length) {
                    o.PlayerNames = [];
                    for (var a = 0; a < e.PlayerNames.length; ++a) o.PlayerNames[a] = e.PlayerNames[a]
                }
                if (e.BuyPlayerInfos && (n = Object.keys(e.BuyPlayerInfos)).length)
                    for (o.BuyPlayerInfos = {}, a = 0; a < n.length; ++a) "number" == typeof e.BuyPlayerInfos[n[a]] ? o.BuyPlayerInfos[n[a]] = t.longs === String ? String(e.BuyPlayerInfos[n[a]]) : e.BuyPlayerInfos[n[a]] : o.BuyPlayerInfos[n[a]] = t.longs === String ? i.Long.prototype.toString.call(e.BuyPlayerInfos[n[a]]) : t.longs === Number ? new i.LongBits(e.BuyPlayerInfos[n[a]].low >>> 0, e.BuyPlayerInfos[n[a]].high >>> 0).toNumber() : e.BuyPlayerInfos[n[a]];
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/CutPriceGiftInfo"
            }, e
        }(), a.RuinsWarPlayerBattleData = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(16).int64(e.TargetUid), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.Param && e.Param.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.Param.length; ++n) t.int64(e.Param[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RuinsWarPlayerBattleData; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.TargetUid = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            if (r.Param && r.Param.length || (r.Param = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Param.push(e.int64());
                            else r.Param.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high))) return "Uid: integer|Long expected";
                if (null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high))) return "TargetUid: integer|Long expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t)
                        if (!(i.isInteger(e.Param[t]) || e.Param[t] && i.isInteger(e.Param[t].low) && i.isInteger(e.Param[t].high))) return "Param: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.RuinsWarPlayerBattleData) return e;
                var t = new a.RuinsWarPlayerBattleData;
                if (null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".RuinsWarPlayerBattleData.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) i.Long ? (t.Param[n] = i.Long.fromValue(e.Param[n])).unsigned = !1 : "string" == typeof e.Param[n] ? t.Param[n] = parseInt(e.Param[n], 10) : "number" == typeof e.Param[n] ? t.Param[n] = e.Param[n] : "object" == typeof e.Param[n] && (t.Param[n] = new i.LongBits(e.Param[n].low >>> 0, e.Param[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetUid = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var r = 0; r < e.Param.length; ++r) "number" == typeof e.Param[r] ? n.Param[r] = t.longs === String ? String(e.Param[r]) : e.Param[r] : n.Param[r] = t.longs === String ? i.Long.prototype.toString.call(e.Param[r]) : t.longs === Number ? new i.LongBits(e.Param[r].low >>> 0, e.Param[r].high >>> 0).toNumber() : e.Param[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RuinsWarPlayerBattleData"
            }, e
        }(), a.RuinsWarStrongPoint = function() {
            function e(e) {
                if (this.AllianceMemberCount = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OccupyAllianceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AllianceMemberCount = i.emptyObject, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.OccupyAllianceId && Object.hasOwnProperty.call(e, "OccupyAllianceId") && t.uint32(16).int64(e.OccupyAllianceId), null != e.AllianceMemberCount && Object.hasOwnProperty.call(e, "AllianceMemberCount"))
                    for (var n = Object.keys(e.AllianceMemberCount), o = 0; o < n.length; ++o) t.uint32(26).fork().uint32(8).int64(n[o]).uint32(16).int64(e.AllianceMemberCount[n[o]]).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.RuinsWarStrongPoint; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Id = e.int64();
                            break;
                        case 2:
                            l.OccupyAllianceId = e.int64();
                            break;
                        case 3:
                            l.AllianceMemberCount === i.emptyObject && (l.AllianceMemberCount = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = 0; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = e.int64();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.AllianceMemberCount["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.OccupyAllianceId && e.hasOwnProperty("OccupyAllianceId") && !(i.isInteger(e.OccupyAllianceId) || e.OccupyAllianceId && i.isInteger(e.OccupyAllianceId.low) && i.isInteger(e.OccupyAllianceId.high))) return "OccupyAllianceId: integer|Long expected";
                if (null != e.AllianceMemberCount && e.hasOwnProperty("AllianceMemberCount")) {
                    if (!i.isObject(e.AllianceMemberCount)) return "AllianceMemberCount: object expected";
                    for (var t = Object.keys(e.AllianceMemberCount), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "AllianceMemberCount: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.AllianceMemberCount[t[n]]) || e.AllianceMemberCount[t[n]] && i.isInteger(e.AllianceMemberCount[t[n]].low) && i.isInteger(e.AllianceMemberCount[t[n]].high))) return "AllianceMemberCount: integer|Long{k:int64} expected"
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.RuinsWarStrongPoint) return e;
                var t = new a.RuinsWarStrongPoint;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.OccupyAllianceId && (i.Long ? (t.OccupyAllianceId = i.Long.fromValue(e.OccupyAllianceId)).unsigned = !1 : "string" == typeof e.OccupyAllianceId ? t.OccupyAllianceId = parseInt(e.OccupyAllianceId, 10) : "number" == typeof e.OccupyAllianceId ? t.OccupyAllianceId = e.OccupyAllianceId : "object" == typeof e.OccupyAllianceId && (t.OccupyAllianceId = new i.LongBits(e.OccupyAllianceId.low >>> 0, e.OccupyAllianceId.high >>> 0).toNumber())), e.AllianceMemberCount) {
                    if ("object" != typeof e.AllianceMemberCount) throw TypeError(".RuinsWarStrongPoint.AllianceMemberCount: object expected");
                    t.AllianceMemberCount = {};
                    for (var n = Object.keys(e.AllianceMemberCount), o = 0; o < n.length; ++o) i.Long ? (t.AllianceMemberCount[n[o]] = i.Long.fromValue(e.AllianceMemberCount[n[o]])).unsigned = !1 : "string" == typeof e.AllianceMemberCount[n[o]] ? t.AllianceMemberCount[n[o]] = parseInt(e.AllianceMemberCount[n[o]], 10) : "number" == typeof e.AllianceMemberCount[n[o]] ? t.AllianceMemberCount[n[o]] = e.AllianceMemberCount[n[o]] : "object" == typeof e.AllianceMemberCount[n[o]] && (t.AllianceMemberCount[n[o]] = new i.LongBits(e.AllianceMemberCount[n[o]].low >>> 0, e.AllianceMemberCount[n[o]].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.objects || t.defaults) && (o.AllianceMemberCount = {}), t.defaults) {
                    if (i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.Id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.Id = t.longs === String ? "0" : 0;
                    i.Long ? (r = new i.Long(0, 0, !1), o.OccupyAllianceId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.OccupyAllianceId = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? o.Id = t.longs === String ? String(e.Id) : e.Id : o.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.OccupyAllianceId && e.hasOwnProperty("OccupyAllianceId") && ("number" == typeof e.OccupyAllianceId ? o.OccupyAllianceId = t.longs === String ? String(e.OccupyAllianceId) : e.OccupyAllianceId : o.OccupyAllianceId = t.longs === String ? i.Long.prototype.toString.call(e.OccupyAllianceId) : t.longs === Number ? new i.LongBits(e.OccupyAllianceId.low >>> 0, e.OccupyAllianceId.high >>> 0).toNumber() : e.OccupyAllianceId), e.AllianceMemberCount && (n = Object.keys(e.AllianceMemberCount)).length) {
                    o.AllianceMemberCount = {};
                    for (var a = 0; a < n.length; ++a) "number" == typeof e.AllianceMemberCount[n[a]] ? o.AllianceMemberCount[n[a]] = t.longs === String ? String(e.AllianceMemberCount[n[a]]) : e.AllianceMemberCount[n[a]] : o.AllianceMemberCount[n[a]] = t.longs === String ? i.Long.prototype.toString.call(e.AllianceMemberCount[n[a]]) : t.longs === Number ? new i.LongBits(e.AllianceMemberCount[n[a]].low >>> 0, e.AllianceMemberCount[n[a]].high >>> 0).toNumber() : e.AllianceMemberCount[n[a]]
                }
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RuinsWarStrongPoint"
            }, e
        }(), a.RuinsWarReportMessage = function() {
            function e(e) {
                if (this.ArrayParam = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.prototype.AllianceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StrongPointId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ArrayParam = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(18).string(e.Name), null != e.AllianceId && Object.hasOwnProperty.call(e, "AllianceId") && t.uint32(24).int64(e.AllianceId), null != e.StrongPointId && Object.hasOwnProperty.call(e, "StrongPointId") && t.uint32(32).int64(e.StrongPointId), null != e.ArrayParam && e.ArrayParam.length) {
                    t.uint32(42).fork();
                    for (var n = 0; n < e.ArrayParam.length; ++n) t.int64(e.ArrayParam[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RuinsWarReportMessage; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.Name = e.string();
                            break;
                        case 3:
                            r.AllianceId = e.int64();
                            break;
                        case 4:
                            r.StrongPointId = e.int64();
                            break;
                        case 5:
                            if (r.ArrayParam && r.ArrayParam.length || (r.ArrayParam = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ArrayParam.push(e.int64());
                            else r.ArrayParam.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name)) return "Name: string expected";
                if (null != e.AllianceId && e.hasOwnProperty("AllianceId") && !(i.isInteger(e.AllianceId) || e.AllianceId && i.isInteger(e.AllianceId.low) && i.isInteger(e.AllianceId.high))) return "AllianceId: integer|Long expected";
                if (null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && !(i.isInteger(e.StrongPointId) || e.StrongPointId && i.isInteger(e.StrongPointId.low) && i.isInteger(e.StrongPointId.high))) return "StrongPointId: integer|Long expected";
                if (null != e.ArrayParam && e.hasOwnProperty("ArrayParam")) {
                    if (!Array.isArray(e.ArrayParam)) return "ArrayParam: array expected";
                    for (var t = 0; t < e.ArrayParam.length; ++t)
                        if (!(i.isInteger(e.ArrayParam[t]) || e.ArrayParam[t] && i.isInteger(e.ArrayParam[t].low) && i.isInteger(e.ArrayParam[t].high))) return "ArrayParam: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.RuinsWarReportMessage) return e;
                var t = new a.RuinsWarReportMessage;
                if (null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), null != e.AllianceId && (i.Long ? (t.AllianceId = i.Long.fromValue(e.AllianceId)).unsigned = !1 : "string" == typeof e.AllianceId ? t.AllianceId = parseInt(e.AllianceId, 10) : "number" == typeof e.AllianceId ? t.AllianceId = e.AllianceId : "object" == typeof e.AllianceId && (t.AllianceId = new i.LongBits(e.AllianceId.low >>> 0, e.AllianceId.high >>> 0).toNumber())), null != e.StrongPointId && (i.Long ? (t.StrongPointId = i.Long.fromValue(e.StrongPointId)).unsigned = !1 : "string" == typeof e.StrongPointId ? t.StrongPointId = parseInt(e.StrongPointId, 10) : "number" == typeof e.StrongPointId ? t.StrongPointId = e.StrongPointId : "object" == typeof e.StrongPointId && (t.StrongPointId = new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber())), e.ArrayParam) {
                    if (!Array.isArray(e.ArrayParam)) throw TypeError(".RuinsWarReportMessage.ArrayParam: array expected");
                    t.ArrayParam = [];
                    for (var n = 0; n < e.ArrayParam.length; ++n) i.Long ? (t.ArrayParam[n] = i.Long.fromValue(e.ArrayParam[n])).unsigned = !1 : "string" == typeof e.ArrayParam[n] ? t.ArrayParam[n] = parseInt(e.ArrayParam[n], 10) : "number" == typeof e.ArrayParam[n] ? t.ArrayParam[n] = e.ArrayParam[n] : "object" == typeof e.ArrayParam[n] && (t.ArrayParam[n] = new i.LongBits(e.ArrayParam[n].low >>> 0, e.ArrayParam[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ArrayParam = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    n.Name = "", i.Long ? (o = new i.Long(0, 0, !1), n.AllianceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AllianceId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StrongPointId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StrongPointId = t.longs === String ? "0" : 0
                }
                if (null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.AllianceId && e.hasOwnProperty("AllianceId") && ("number" == typeof e.AllianceId ? n.AllianceId = t.longs === String ? String(e.AllianceId) : e.AllianceId : n.AllianceId = t.longs === String ? i.Long.prototype.toString.call(e.AllianceId) : t.longs === Number ? new i.LongBits(e.AllianceId.low >>> 0, e.AllianceId.high >>> 0).toNumber() : e.AllianceId), null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && ("number" == typeof e.StrongPointId ? n.StrongPointId = t.longs === String ? String(e.StrongPointId) : e.StrongPointId : n.StrongPointId = t.longs === String ? i.Long.prototype.toString.call(e.StrongPointId) : t.longs === Number ? new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber() : e.StrongPointId), e.ArrayParam && e.ArrayParam.length) {
                    n.ArrayParam = [];
                    for (var r = 0; r < e.ArrayParam.length; ++r) "number" == typeof e.ArrayParam[r] ? n.ArrayParam[r] = t.longs === String ? String(e.ArrayParam[r]) : e.ArrayParam[r] : n.ArrayParam[r] = t.longs === String ? i.Long.prototype.toString.call(e.ArrayParam[r]) : t.longs === Number ? new i.LongBits(e.ArrayParam[r].low >>> 0, e.ArrayParam[r].high >>> 0).toNumber() : e.ArrayParam[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RuinsWarReportMessage"
            }, e
        }(), a.RuinsWarPlayerEnterStrongPoint = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.StrongPointId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Players = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.StrongPointId && Object.hasOwnProperty.call(e, "StrongPointId") && t.uint32(8).int64(e.StrongPointId), null != e.Players && Object.hasOwnProperty.call(e, "Players") && a.PlayerSimpleInfo.encode(e.Players, t.uint32(18).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RuinsWarPlayerEnterStrongPoint; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.StrongPointId = e.int64();
                            break;
                        case 2:
                            r.Players = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && !(i.isInteger(e.StrongPointId) || e.StrongPointId && i.isInteger(e.StrongPointId.low) && i.isInteger(e.StrongPointId.high))) return "StrongPointId: integer|Long expected";
                if (null != e.Players && e.hasOwnProperty("Players")) {
                    var t = a.PlayerSimpleInfo.verify(e.Players);
                    if (t) return "Players." + t
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.RuinsWarPlayerEnterStrongPoint) return e;
                var t = new a.RuinsWarPlayerEnterStrongPoint;
                if (null != e.StrongPointId && (i.Long ? (t.StrongPointId = i.Long.fromValue(e.StrongPointId)).unsigned = !1 : "string" == typeof e.StrongPointId ? t.StrongPointId = parseInt(e.StrongPointId, 10) : "number" == typeof e.StrongPointId ? t.StrongPointId = e.StrongPointId : "object" == typeof e.StrongPointId && (t.StrongPointId = new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber())), null != e.Players) {
                    if ("object" != typeof e.Players) throw TypeError(".RuinsWarPlayerEnterStrongPoint.Players: object expected");
                    t.Players = a.PlayerSimpleInfo.fromObject(e.Players)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.StrongPointId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.StrongPointId = t.longs === String ? "0" : 0;
                    n.Players = null
                }
                return null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && ("number" == typeof e.StrongPointId ? n.StrongPointId = t.longs === String ? String(e.StrongPointId) : e.StrongPointId : n.StrongPointId = t.longs === String ? i.Long.prototype.toString.call(e.StrongPointId) : t.longs === Number ? new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber() : e.StrongPointId), null != e.Players && e.hasOwnProperty("Players") && (n.Players = a.PlayerSimpleInfo.toObject(e.Players, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RuinsWarPlayerEnterStrongPoint"
            }, e
        }(), a.RuinsWarPlayerLeaveStrongPoint = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.StrongPointId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AlliacneId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.StrongPointId && Object.hasOwnProperty.call(e, "StrongPointId") && t.uint32(8).int64(e.StrongPointId), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(16).int64(e.Uid), null != e.AlliacneId && Object.hasOwnProperty.call(e, "AlliacneId") && t.uint32(24).int64(e.AlliacneId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RuinsWarPlayerLeaveStrongPoint; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.StrongPointId = e.int64();
                            break;
                        case 2:
                            r.Uid = e.int64();
                            break;
                        case 3:
                            r.AlliacneId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && !(i.isInteger(e.StrongPointId) || e.StrongPointId && i.isInteger(e.StrongPointId.low) && i.isInteger(e.StrongPointId.high)) ? "StrongPointId: integer|Long expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null != e.AlliacneId && e.hasOwnProperty("AlliacneId") && !(i.isInteger(e.AlliacneId) || e.AlliacneId && i.isInteger(e.AlliacneId.low) && i.isInteger(e.AlliacneId.high)) ? "AlliacneId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RuinsWarPlayerLeaveStrongPoint) return e;
                var t = new a.RuinsWarPlayerLeaveStrongPoint;
                return null != e.StrongPointId && (i.Long ? (t.StrongPointId = i.Long.fromValue(e.StrongPointId)).unsigned = !1 : "string" == typeof e.StrongPointId ? t.StrongPointId = parseInt(e.StrongPointId, 10) : "number" == typeof e.StrongPointId ? t.StrongPointId = e.StrongPointId : "object" == typeof e.StrongPointId && (t.StrongPointId = new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber())), null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.AlliacneId && (i.Long ? (t.AlliacneId = i.Long.fromValue(e.AlliacneId)).unsigned = !1 : "string" == typeof e.AlliacneId ? t.AlliacneId = parseInt(e.AlliacneId, 10) : "number" == typeof e.AlliacneId ? t.AlliacneId = e.AlliacneId : "object" == typeof e.AlliacneId && (t.AlliacneId = new i.LongBits(e.AlliacneId.low >>> 0, e.AlliacneId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.StrongPointId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.StrongPointId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Uid = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AlliacneId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AlliacneId = t.longs === String ? "0" : 0
                }
                return null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && ("number" == typeof e.StrongPointId ? n.StrongPointId = t.longs === String ? String(e.StrongPointId) : e.StrongPointId : n.StrongPointId = t.longs === String ? i.Long.prototype.toString.call(e.StrongPointId) : t.longs === Number ? new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber() : e.StrongPointId), null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.AlliacneId && e.hasOwnProperty("AlliacneId") && ("number" == typeof e.AlliacneId ? n.AlliacneId = t.longs === String ? String(e.AlliacneId) : e.AlliacneId : n.AlliacneId = t.longs === String ? i.Long.prototype.toString.call(e.AlliacneId) : t.longs === Number ? new i.LongBits(e.AlliacneId.low >>> 0, e.AlliacneId.high >>> 0).toNumber() : e.AlliacneId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RuinsWarPlayerLeaveStrongPoint"
            }, e
        }(), a.RuinsWarPlayerLeaveAlliance = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.StrongPointId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AlliacneId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TotalHarmful = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TotalKill = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.StrongPointId && Object.hasOwnProperty.call(e, "StrongPointId") && t.uint32(8).int64(e.StrongPointId), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(16).int64(e.Uid), null != e.AlliacneId && Object.hasOwnProperty.call(e, "AlliacneId") && t.uint32(24).int64(e.AlliacneId), null != e.TotalHarmful && Object.hasOwnProperty.call(e, "TotalHarmful") && t.uint32(32).int64(e.TotalHarmful), null != e.TotalKill && Object.hasOwnProperty.call(e, "TotalKill") && t.uint32(40).int64(e.TotalKill), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RuinsWarPlayerLeaveAlliance; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.StrongPointId = e.int64();
                            break;
                        case 2:
                            r.Uid = e.int64();
                            break;
                        case 3:
                            r.AlliacneId = e.int64();
                            break;
                        case 4:
                            r.TotalHarmful = e.int64();
                            break;
                        case 5:
                            r.TotalKill = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && !(i.isInteger(e.StrongPointId) || e.StrongPointId && i.isInteger(e.StrongPointId.low) && i.isInteger(e.StrongPointId.high)) ? "StrongPointId: integer|Long expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null != e.AlliacneId && e.hasOwnProperty("AlliacneId") && !(i.isInteger(e.AlliacneId) || e.AlliacneId && i.isInteger(e.AlliacneId.low) && i.isInteger(e.AlliacneId.high)) ? "AlliacneId: integer|Long expected" : null != e.TotalHarmful && e.hasOwnProperty("TotalHarmful") && !(i.isInteger(e.TotalHarmful) || e.TotalHarmful && i.isInteger(e.TotalHarmful.low) && i.isInteger(e.TotalHarmful.high)) ? "TotalHarmful: integer|Long expected" : null != e.TotalKill && e.hasOwnProperty("TotalKill") && !(i.isInteger(e.TotalKill) || e.TotalKill && i.isInteger(e.TotalKill.low) && i.isInteger(e.TotalKill.high)) ? "TotalKill: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RuinsWarPlayerLeaveAlliance) return e;
                var t = new a.RuinsWarPlayerLeaveAlliance;
                return null != e.StrongPointId && (i.Long ? (t.StrongPointId = i.Long.fromValue(e.StrongPointId)).unsigned = !1 : "string" == typeof e.StrongPointId ? t.StrongPointId = parseInt(e.StrongPointId, 10) : "number" == typeof e.StrongPointId ? t.StrongPointId = e.StrongPointId : "object" == typeof e.StrongPointId && (t.StrongPointId = new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber())), null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.AlliacneId && (i.Long ? (t.AlliacneId = i.Long.fromValue(e.AlliacneId)).unsigned = !1 : "string" == typeof e.AlliacneId ? t.AlliacneId = parseInt(e.AlliacneId, 10) : "number" == typeof e.AlliacneId ? t.AlliacneId = e.AlliacneId : "object" == typeof e.AlliacneId && (t.AlliacneId = new i.LongBits(e.AlliacneId.low >>> 0, e.AlliacneId.high >>> 0).toNumber())), null != e.TotalHarmful && (i.Long ? (t.TotalHarmful = i.Long.fromValue(e.TotalHarmful)).unsigned = !1 : "string" == typeof e.TotalHarmful ? t.TotalHarmful = parseInt(e.TotalHarmful, 10) : "number" == typeof e.TotalHarmful ? t.TotalHarmful = e.TotalHarmful : "object" == typeof e.TotalHarmful && (t.TotalHarmful = new i.LongBits(e.TotalHarmful.low >>> 0, e.TotalHarmful.high >>> 0).toNumber())), null != e.TotalKill && (i.Long ? (t.TotalKill = i.Long.fromValue(e.TotalKill)).unsigned = !1 : "string" == typeof e.TotalKill ? t.TotalKill = parseInt(e.TotalKill, 10) : "number" == typeof e.TotalKill ? t.TotalKill = e.TotalKill : "object" == typeof e.TotalKill && (t.TotalKill = new i.LongBits(e.TotalKill.low >>> 0, e.TotalKill.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.StrongPointId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.StrongPointId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Uid = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AlliacneId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AlliacneId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TotalHarmful = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TotalHarmful = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TotalKill = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TotalKill = t.longs === String ? "0" : 0
                }
                return null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && ("number" == typeof e.StrongPointId ? n.StrongPointId = t.longs === String ? String(e.StrongPointId) : e.StrongPointId : n.StrongPointId = t.longs === String ? i.Long.prototype.toString.call(e.StrongPointId) : t.longs === Number ? new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber() : e.StrongPointId), null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.AlliacneId && e.hasOwnProperty("AlliacneId") && ("number" == typeof e.AlliacneId ? n.AlliacneId = t.longs === String ? String(e.AlliacneId) : e.AlliacneId : n.AlliacneId = t.longs === String ? i.Long.prototype.toString.call(e.AlliacneId) : t.longs === Number ? new i.LongBits(e.AlliacneId.low >>> 0, e.AlliacneId.high >>> 0).toNumber() : e.AlliacneId), null != e.TotalHarmful && e.hasOwnProperty("TotalHarmful") && ("number" == typeof e.TotalHarmful ? n.TotalHarmful = t.longs === String ? String(e.TotalHarmful) : e.TotalHarmful : n.TotalHarmful = t.longs === String ? i.Long.prototype.toString.call(e.TotalHarmful) : t.longs === Number ? new i.LongBits(e.TotalHarmful.low >>> 0, e.TotalHarmful.high >>> 0).toNumber() : e.TotalHarmful), null != e.TotalKill && e.hasOwnProperty("TotalKill") && ("number" == typeof e.TotalKill ? n.TotalKill = t.longs === String ? String(e.TotalKill) : e.TotalKill : n.TotalKill = t.longs === String ? i.Long.prototype.toString.call(e.TotalKill) : t.longs === Number ? new i.LongBits(e.TotalKill.low >>> 0, e.TotalKill.high >>> 0).toNumber() : e.TotalKill), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RuinsWarPlayerLeaveAlliance"
            }, e
        }(), a.RuinsWarStrongPointCompete = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AllianceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StrongPointId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CompeteEndTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.AllianceId && Object.hasOwnProperty.call(e, "AllianceId") && t.uint32(16).int64(e.AllianceId), null != e.StrongPointId && Object.hasOwnProperty.call(e, "StrongPointId") && t.uint32(24).int64(e.StrongPointId), null != e.CompeteEndTime && Object.hasOwnProperty.call(e, "CompeteEndTime") && t.uint32(32).int64(e.CompeteEndTime), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.RuinsWarStrongPointCompete; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.AllianceId = e.int64();
                            break;
                        case 3:
                            r.StrongPointId = e.int64();
                            break;
                        case 4:
                            r.CompeteEndTime = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.AllianceId && e.hasOwnProperty("AllianceId") && !(i.isInteger(e.AllianceId) || e.AllianceId && i.isInteger(e.AllianceId.low) && i.isInteger(e.AllianceId.high)) ? "AllianceId: integer|Long expected" : null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && !(i.isInteger(e.StrongPointId) || e.StrongPointId && i.isInteger(e.StrongPointId.low) && i.isInteger(e.StrongPointId.high)) ? "StrongPointId: integer|Long expected" : null != e.CompeteEndTime && e.hasOwnProperty("CompeteEndTime") && !(i.isInteger(e.CompeteEndTime) || e.CompeteEndTime && i.isInteger(e.CompeteEndTime.low) && i.isInteger(e.CompeteEndTime.high)) ? "CompeteEndTime: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.RuinsWarStrongPointCompete) return e;
                var t = new a.RuinsWarStrongPointCompete;
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.AllianceId && (i.Long ? (t.AllianceId = i.Long.fromValue(e.AllianceId)).unsigned = !1 : "string" == typeof e.AllianceId ? t.AllianceId = parseInt(e.AllianceId, 10) : "number" == typeof e.AllianceId ? t.AllianceId = e.AllianceId : "object" == typeof e.AllianceId && (t.AllianceId = new i.LongBits(e.AllianceId.low >>> 0, e.AllianceId.high >>> 0).toNumber())), null != e.StrongPointId && (i.Long ? (t.StrongPointId = i.Long.fromValue(e.StrongPointId)).unsigned = !1 : "string" == typeof e.StrongPointId ? t.StrongPointId = parseInt(e.StrongPointId, 10) : "number" == typeof e.StrongPointId ? t.StrongPointId = e.StrongPointId : "object" == typeof e.StrongPointId && (t.StrongPointId = new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber())), null != e.CompeteEndTime && (i.Long ? (t.CompeteEndTime = i.Long.fromValue(e.CompeteEndTime)).unsigned = !1 : "string" == typeof e.CompeteEndTime ? t.CompeteEndTime = parseInt(e.CompeteEndTime, 10) : "number" == typeof e.CompeteEndTime ? t.CompeteEndTime = e.CompeteEndTime : "object" == typeof e.CompeteEndTime && (t.CompeteEndTime = new i.LongBits(e.CompeteEndTime.low >>> 0, e.CompeteEndTime.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.AllianceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AllianceId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StrongPointId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StrongPointId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.CompeteEndTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CompeteEndTime = t.longs === String ? "0" : 0
                }
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.AllianceId && e.hasOwnProperty("AllianceId") && ("number" == typeof e.AllianceId ? n.AllianceId = t.longs === String ? String(e.AllianceId) : e.AllianceId : n.AllianceId = t.longs === String ? i.Long.prototype.toString.call(e.AllianceId) : t.longs === Number ? new i.LongBits(e.AllianceId.low >>> 0, e.AllianceId.high >>> 0).toNumber() : e.AllianceId), null != e.StrongPointId && e.hasOwnProperty("StrongPointId") && ("number" == typeof e.StrongPointId ? n.StrongPointId = t.longs === String ? String(e.StrongPointId) : e.StrongPointId : n.StrongPointId = t.longs === String ? i.Long.prototype.toString.call(e.StrongPointId) : t.longs === Number ? new i.LongBits(e.StrongPointId.low >>> 0, e.StrongPointId.high >>> 0).toNumber() : e.StrongPointId), null != e.CompeteEndTime && e.hasOwnProperty("CompeteEndTime") && ("number" == typeof e.CompeteEndTime ? n.CompeteEndTime = t.longs === String ? String(e.CompeteEndTime) : e.CompeteEndTime : n.CompeteEndTime = t.longs === String ? i.Long.prototype.toString.call(e.CompeteEndTime) : t.longs === Number ? new i.LongBits(e.CompeteEndTime.low >>> 0, e.CompeteEndTime.high >>> 0).toNumber() : e.CompeteEndTime), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/RuinsWarStrongPointCompete"
            }, e
        }(), a.BossHuntGroupInfo = function() {
            function e(e) {
                if (this.RoundInfo = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RoundInfo = i.emptyObject, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.RoundInfo && Object.hasOwnProperty.call(e, "RoundInfo"))
                    for (var n = Object.keys(e.RoundInfo), o = 0; o < n.length; ++o) t.uint32(10).fork().uint32(8).int32(n[o]), a.BossHuntGroupRoundInfo.encode(e.RoundInfo[n[o]], t.uint32(18).fork()).ldelim().ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.BossHuntGroupInfo; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.RoundInfo === i.emptyObject && (l.RoundInfo = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = null; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.int32();
                                        break;
                                    case 2:
                                        r = a.BossHuntGroupRoundInfo.decode(e, e.uint32());
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.RoundInfo[n] = r;
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.RoundInfo && e.hasOwnProperty("RoundInfo")) {
                    if (!i.isObject(e.RoundInfo)) return "RoundInfo: object expected";
                    for (var t = Object.keys(e.RoundInfo), n = 0; n < t.length; ++n) {
                        if (!i.key32Re.test(t[n])) return "RoundInfo: integer key{k:int32} expected";
                        var o = a.BossHuntGroupRoundInfo.verify(e.RoundInfo[t[n]]);
                        if (o) return "RoundInfo." + o
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.BossHuntGroupInfo) return e;
                var t = new a.BossHuntGroupInfo;
                if (e.RoundInfo) {
                    if ("object" != typeof e.RoundInfo) throw TypeError(".BossHuntGroupInfo.RoundInfo: object expected");
                    t.RoundInfo = {};
                    for (var n = Object.keys(e.RoundInfo), o = 0; o < n.length; ++o) {
                        if ("object" != typeof e.RoundInfo[n[o]]) throw TypeError(".BossHuntGroupInfo.RoundInfo: object expected");
                        t.RoundInfo[n[o]] = a.BossHuntGroupRoundInfo.fromObject(e.RoundInfo[n[o]])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.objects || t.defaults) && (o.RoundInfo = {}), e.RoundInfo && (n = Object.keys(e.RoundInfo)).length) {
                    o.RoundInfo = {};
                    for (var r = 0; r < n.length; ++r) o.RoundInfo[n[r]] = a.BossHuntGroupRoundInfo.toObject(e.RoundInfo[n[r]], t)
                }
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/BossHuntGroupInfo"
            }, e
        }(), a.BossHuntGroupRoundInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.LeaderUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(8).int64(e.Score), null != e.LeaderUid && Object.hasOwnProperty.call(e, "LeaderUid") && t.uint32(16).int64(e.LeaderUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.BossHuntGroupRoundInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Score = e.int64();
                            break;
                        case 2:
                            r.LeaderUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high)) ? "Score: integer|Long expected" : null != e.LeaderUid && e.hasOwnProperty("LeaderUid") && !(i.isInteger(e.LeaderUid) || e.LeaderUid && i.isInteger(e.LeaderUid.low) && i.isInteger(e.LeaderUid.high)) ? "LeaderUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.BossHuntGroupRoundInfo) return e;
                var t = new a.BossHuntGroupRoundInfo;
                return null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), null != e.LeaderUid && (i.Long ? (t.LeaderUid = i.Long.fromValue(e.LeaderUid)).unsigned = !1 : "string" == typeof e.LeaderUid ? t.LeaderUid = parseInt(e.LeaderUid, 10) : "number" == typeof e.LeaderUid ? t.LeaderUid = e.LeaderUid : "object" == typeof e.LeaderUid && (t.LeaderUid = new i.LongBits(e.LeaderUid.low >>> 0, e.LeaderUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Score = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Score = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.LeaderUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.LeaderUid = t.longs === String ? "0" : 0
                }
                return null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? n.Score = t.longs === String ? String(e.Score) : e.Score : n.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), null != e.LeaderUid && e.hasOwnProperty("LeaderUid") && ("number" == typeof e.LeaderUid ? n.LeaderUid = t.longs === String ? String(e.LeaderUid) : e.LeaderUid : n.LeaderUid = t.longs === String ? i.Long.prototype.toString.call(e.LeaderUid) : t.longs === Number ? new i.LongBits(e.LeaderUid.low >>> 0, e.LeaderUid.high >>> 0).toNumber() : e.LeaderUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/BossHuntGroupRoundInfo"
            }, e
        }(), a.AngelCardHandCard = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Color = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Number = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Effect = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.State = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Color && Object.hasOwnProperty.call(e, "Color") && t.uint32(8).int64(e.Color), null != e.Number && Object.hasOwnProperty.call(e, "Number") && t.uint32(16).int64(e.Number), null != e.Effect && Object.hasOwnProperty.call(e, "Effect") && t.uint32(24).int64(e.Effect), null != e.State && Object.hasOwnProperty.call(e, "State") && t.uint32(32).int64(e.State), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelCardHandCard; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Color = e.int64();
                            break;
                        case 2:
                            r.Number = e.int64();
                            break;
                        case 3:
                            r.Effect = e.int64();
                            break;
                        case 4:
                            r.State = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Color && e.hasOwnProperty("Color") && !(i.isInteger(e.Color) || e.Color && i.isInteger(e.Color.low) && i.isInteger(e.Color.high)) ? "Color: integer|Long expected" : null != e.Number && e.hasOwnProperty("Number") && !(i.isInteger(e.Number) || e.Number && i.isInteger(e.Number.low) && i.isInteger(e.Number.high)) ? "Number: integer|Long expected" : null != e.Effect && e.hasOwnProperty("Effect") && !(i.isInteger(e.Effect) || e.Effect && i.isInteger(e.Effect.low) && i.isInteger(e.Effect.high)) ? "Effect: integer|Long expected" : null != e.State && e.hasOwnProperty("State") && !(i.isInteger(e.State) || e.State && i.isInteger(e.State.low) && i.isInteger(e.State.high)) ? "State: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelCardHandCard) return e;
                var t = new a.AngelCardHandCard;
                return null != e.Color && (i.Long ? (t.Color = i.Long.fromValue(e.Color)).unsigned = !1 : "string" == typeof e.Color ? t.Color = parseInt(e.Color, 10) : "number" == typeof e.Color ? t.Color = e.Color : "object" == typeof e.Color && (t.Color = new i.LongBits(e.Color.low >>> 0, e.Color.high >>> 0).toNumber())), null != e.Number && (i.Long ? (t.Number = i.Long.fromValue(e.Number)).unsigned = !1 : "string" == typeof e.Number ? t.Number = parseInt(e.Number, 10) : "number" == typeof e.Number ? t.Number = e.Number : "object" == typeof e.Number && (t.Number = new i.LongBits(e.Number.low >>> 0, e.Number.high >>> 0).toNumber())), null != e.Effect && (i.Long ? (t.Effect = i.Long.fromValue(e.Effect)).unsigned = !1 : "string" == typeof e.Effect ? t.Effect = parseInt(e.Effect, 10) : "number" == typeof e.Effect ? t.Effect = e.Effect : "object" == typeof e.Effect && (t.Effect = new i.LongBits(e.Effect.low >>> 0, e.Effect.high >>> 0).toNumber())), null != e.State && (i.Long ? (t.State = i.Long.fromValue(e.State)).unsigned = !1 : "string" == typeof e.State ? t.State = parseInt(e.State, 10) : "number" == typeof e.State ? t.State = e.State : "object" == typeof e.State && (t.State = new i.LongBits(e.State.low >>> 0, e.State.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Color = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Color = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Number = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Number = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Effect = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Effect = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.State = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.State = t.longs === String ? "0" : 0
                }
                return null != e.Color && e.hasOwnProperty("Color") && ("number" == typeof e.Color ? n.Color = t.longs === String ? String(e.Color) : e.Color : n.Color = t.longs === String ? i.Long.prototype.toString.call(e.Color) : t.longs === Number ? new i.LongBits(e.Color.low >>> 0, e.Color.high >>> 0).toNumber() : e.Color), null != e.Number && e.hasOwnProperty("Number") && ("number" == typeof e.Number ? n.Number = t.longs === String ? String(e.Number) : e.Number : n.Number = t.longs === String ? i.Long.prototype.toString.call(e.Number) : t.longs === Number ? new i.LongBits(e.Number.low >>> 0, e.Number.high >>> 0).toNumber() : e.Number), null != e.Effect && e.hasOwnProperty("Effect") && ("number" == typeof e.Effect ? n.Effect = t.longs === String ? String(e.Effect) : e.Effect : n.Effect = t.longs === String ? i.Long.prototype.toString.call(e.Effect) : t.longs === Number ? new i.LongBits(e.Effect.low >>> 0, e.Effect.high >>> 0).toNumber() : e.Effect), null != e.State && e.hasOwnProperty("State") && ("number" == typeof e.State ? n.State = t.longs === String ? String(e.State) : e.State : n.State = t.longs === String ? i.Long.prototype.toString.call(e.State) : t.longs === Number ? new i.LongBits(e.State.low >>> 0, e.State.high >>> 0).toNumber() : e.State), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelCardHandCard"
            }, e
        }(), a.AssResourcePointSimpleInfo = function() {
            function e(e) {
                if (this.PlayerInfo = [], this.DefenderDeadTs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PlayerInfo = i.emptyArray, e.prototype.OccupyAllianceName = "", e.prototype.BattleOverTs = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MonsterCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DefenderCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OccupyAllianceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OccupyStartTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DefenderDeadTs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.PlayerInfo && e.PlayerInfo.length)
                    for (var n = 0; n < e.PlayerInfo.length; ++n) a.IntArray.encode(e.PlayerInfo[n], t.uint32(18).fork()).ldelim();
                if (null != e.OccupyAllianceName && Object.hasOwnProperty.call(e, "OccupyAllianceName") && t.uint32(26).string(e.OccupyAllianceName), null != e.BattleOverTs && Object.hasOwnProperty.call(e, "BattleOverTs") && t.uint32(32).int64(e.BattleOverTs), null != e.MonsterCount && Object.hasOwnProperty.call(e, "MonsterCount") && t.uint32(40).int64(e.MonsterCount), null != e.DefenderCount && Object.hasOwnProperty.call(e, "DefenderCount") && t.uint32(48).int64(e.DefenderCount), null != e.OccupyAllianceId && Object.hasOwnProperty.call(e, "OccupyAllianceId") && t.uint32(56).int64(e.OccupyAllianceId), null != e.OccupyStartTime && Object.hasOwnProperty.call(e, "OccupyStartTime") && t.uint32(64).int64(e.OccupyStartTime), null != e.DefenderDeadTs && e.DefenderDeadTs.length)
                    for (n = 0; n < e.DefenderDeadTs.length; ++n) a.IntArray.encode(e.DefenderDeadTs[n], t.uint32(74).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AssResourcePointSimpleInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.PlayerInfo && r.PlayerInfo.length || (r.PlayerInfo = []), r.PlayerInfo.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.OccupyAllianceName = e.string();
                            break;
                        case 4:
                            r.BattleOverTs = e.int64();
                            break;
                        case 5:
                            r.MonsterCount = e.int64();
                            break;
                        case 6:
                            r.DefenderCount = e.int64();
                            break;
                        case 7:
                            r.OccupyAllianceId = e.int64();
                            break;
                        case 8:
                            r.OccupyStartTime = e.int64();
                            break;
                        case 9:
                            r.DefenderDeadTs && r.DefenderDeadTs.length || (r.DefenderDeadTs = []), r.DefenderDeadTs.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.PlayerInfo && e.hasOwnProperty("PlayerInfo")) {
                    if (!Array.isArray(e.PlayerInfo)) return "PlayerInfo: array expected";
                    for (var t = 0; t < e.PlayerInfo.length; ++t)
                        if (n = a.IntArray.verify(e.PlayerInfo[t])) return "PlayerInfo." + n
                }
                if (null != e.OccupyAllianceName && e.hasOwnProperty("OccupyAllianceName") && !i.isString(e.OccupyAllianceName)) return "OccupyAllianceName: string expected";
                if (null != e.BattleOverTs && e.hasOwnProperty("BattleOverTs") && !(i.isInteger(e.BattleOverTs) || e.BattleOverTs && i.isInteger(e.BattleOverTs.low) && i.isInteger(e.BattleOverTs.high))) return "BattleOverTs: integer|Long expected";
                if (null != e.MonsterCount && e.hasOwnProperty("MonsterCount") && !(i.isInteger(e.MonsterCount) || e.MonsterCount && i.isInteger(e.MonsterCount.low) && i.isInteger(e.MonsterCount.high))) return "MonsterCount: integer|Long expected";
                if (null != e.DefenderCount && e.hasOwnProperty("DefenderCount") && !(i.isInteger(e.DefenderCount) || e.DefenderCount && i.isInteger(e.DefenderCount.low) && i.isInteger(e.DefenderCount.high))) return "DefenderCount: integer|Long expected";
                if (null != e.OccupyAllianceId && e.hasOwnProperty("OccupyAllianceId") && !(i.isInteger(e.OccupyAllianceId) || e.OccupyAllianceId && i.isInteger(e.OccupyAllianceId.low) && i.isInteger(e.OccupyAllianceId.high))) return "OccupyAllianceId: integer|Long expected";
                if (null != e.OccupyStartTime && e.hasOwnProperty("OccupyStartTime") && !(i.isInteger(e.OccupyStartTime) || e.OccupyStartTime && i.isInteger(e.OccupyStartTime.low) && i.isInteger(e.OccupyStartTime.high))) return "OccupyStartTime: integer|Long expected";
                if (null != e.DefenderDeadTs && e.hasOwnProperty("DefenderDeadTs")) {
                    if (!Array.isArray(e.DefenderDeadTs)) return "DefenderDeadTs: array expected";
                    for (t = 0; t < e.DefenderDeadTs.length; ++t) {
                        var n;
                        if (n = a.IntArray.verify(e.DefenderDeadTs[t])) return "DefenderDeadTs." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AssResourcePointSimpleInfo) return e;
                var t = new a.AssResourcePointSimpleInfo;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.PlayerInfo) {
                    if (!Array.isArray(e.PlayerInfo)) throw TypeError(".AssResourcePointSimpleInfo.PlayerInfo: array expected");
                    t.PlayerInfo = [];
                    for (var n = 0; n < e.PlayerInfo.length; ++n) {
                        if ("object" != typeof e.PlayerInfo[n]) throw TypeError(".AssResourcePointSimpleInfo.PlayerInfo: object expected");
                        t.PlayerInfo[n] = a.IntArray.fromObject(e.PlayerInfo[n])
                    }
                }
                if (null != e.OccupyAllianceName && (t.OccupyAllianceName = String(e.OccupyAllianceName)), null != e.BattleOverTs && (i.Long ? (t.BattleOverTs = i.Long.fromValue(e.BattleOverTs)).unsigned = !1 : "string" == typeof e.BattleOverTs ? t.BattleOverTs = parseInt(e.BattleOverTs, 10) : "number" == typeof e.BattleOverTs ? t.BattleOverTs = e.BattleOverTs : "object" == typeof e.BattleOverTs && (t.BattleOverTs = new i.LongBits(e.BattleOverTs.low >>> 0, e.BattleOverTs.high >>> 0).toNumber())), null != e.MonsterCount && (i.Long ? (t.MonsterCount = i.Long.fromValue(e.MonsterCount)).unsigned = !1 : "string" == typeof e.MonsterCount ? t.MonsterCount = parseInt(e.MonsterCount, 10) : "number" == typeof e.MonsterCount ? t.MonsterCount = e.MonsterCount : "object" == typeof e.MonsterCount && (t.MonsterCount = new i.LongBits(e.MonsterCount.low >>> 0, e.MonsterCount.high >>> 0).toNumber())), null != e.DefenderCount && (i.Long ? (t.DefenderCount = i.Long.fromValue(e.DefenderCount)).unsigned = !1 : "string" == typeof e.DefenderCount ? t.DefenderCount = parseInt(e.DefenderCount, 10) : "number" == typeof e.DefenderCount ? t.DefenderCount = e.DefenderCount : "object" == typeof e.DefenderCount && (t.DefenderCount = new i.LongBits(e.DefenderCount.low >>> 0, e.DefenderCount.high >>> 0).toNumber())), null != e.OccupyAllianceId && (i.Long ? (t.OccupyAllianceId = i.Long.fromValue(e.OccupyAllianceId)).unsigned = !1 : "string" == typeof e.OccupyAllianceId ? t.OccupyAllianceId = parseInt(e.OccupyAllianceId, 10) : "number" == typeof e.OccupyAllianceId ? t.OccupyAllianceId = e.OccupyAllianceId : "object" == typeof e.OccupyAllianceId && (t.OccupyAllianceId = new i.LongBits(e.OccupyAllianceId.low >>> 0, e.OccupyAllianceId.high >>> 0).toNumber())), null != e.OccupyStartTime && (i.Long ? (t.OccupyStartTime = i.Long.fromValue(e.OccupyStartTime)).unsigned = !1 : "string" == typeof e.OccupyStartTime ? t.OccupyStartTime = parseInt(e.OccupyStartTime, 10) : "number" == typeof e.OccupyStartTime ? t.OccupyStartTime = e.OccupyStartTime : "object" == typeof e.OccupyStartTime && (t.OccupyStartTime = new i.LongBits(e.OccupyStartTime.low >>> 0, e.OccupyStartTime.high >>> 0).toNumber())), e.DefenderDeadTs) {
                    if (!Array.isArray(e.DefenderDeadTs)) throw TypeError(".AssResourcePointSimpleInfo.DefenderDeadTs: array expected");
                    for (t.DefenderDeadTs = [], n = 0; n < e.DefenderDeadTs.length; ++n) {
                        if ("object" != typeof e.DefenderDeadTs[n]) throw TypeError(".AssResourcePointSimpleInfo.DefenderDeadTs: object expected");
                        t.DefenderDeadTs[n] = a.IntArray.fromObject(e.DefenderDeadTs[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PlayerInfo = [], n.DefenderDeadTs = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.OccupyAllianceName = "", i.Long ? (o = new i.Long(0, 0, !1), n.BattleOverTs = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BattleOverTs = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MonsterCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MonsterCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DefenderCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DefenderCount = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.OccupyAllianceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OccupyAllianceId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.OccupyStartTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OccupyStartTime = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.PlayerInfo && e.PlayerInfo.length) {
                    n.PlayerInfo = [];
                    for (var r = 0; r < e.PlayerInfo.length; ++r) n.PlayerInfo[r] = a.IntArray.toObject(e.PlayerInfo[r], t)
                }
                if (null != e.OccupyAllianceName && e.hasOwnProperty("OccupyAllianceName") && (n.OccupyAllianceName = e.OccupyAllianceName), null != e.BattleOverTs && e.hasOwnProperty("BattleOverTs") && ("number" == typeof e.BattleOverTs ? n.BattleOverTs = t.longs === String ? String(e.BattleOverTs) : e.BattleOverTs : n.BattleOverTs = t.longs === String ? i.Long.prototype.toString.call(e.BattleOverTs) : t.longs === Number ? new i.LongBits(e.BattleOverTs.low >>> 0, e.BattleOverTs.high >>> 0).toNumber() : e.BattleOverTs), null != e.MonsterCount && e.hasOwnProperty("MonsterCount") && ("number" == typeof e.MonsterCount ? n.MonsterCount = t.longs === String ? String(e.MonsterCount) : e.MonsterCount : n.MonsterCount = t.longs === String ? i.Long.prototype.toString.call(e.MonsterCount) : t.longs === Number ? new i.LongBits(e.MonsterCount.low >>> 0, e.MonsterCount.high >>> 0).toNumber() : e.MonsterCount), null != e.DefenderCount && e.hasOwnProperty("DefenderCount") && ("number" == typeof e.DefenderCount ? n.DefenderCount = t.longs === String ? String(e.DefenderCount) : e.DefenderCount : n.DefenderCount = t.longs === String ? i.Long.prototype.toString.call(e.DefenderCount) : t.longs === Number ? new i.LongBits(e.DefenderCount.low >>> 0, e.DefenderCount.high >>> 0).toNumber() : e.DefenderCount), null != e.OccupyAllianceId && e.hasOwnProperty("OccupyAllianceId") && ("number" == typeof e.OccupyAllianceId ? n.OccupyAllianceId = t.longs === String ? String(e.OccupyAllianceId) : e.OccupyAllianceId : n.OccupyAllianceId = t.longs === String ? i.Long.prototype.toString.call(e.OccupyAllianceId) : t.longs === Number ? new i.LongBits(e.OccupyAllianceId.low >>> 0, e.OccupyAllianceId.high >>> 0).toNumber() : e.OccupyAllianceId), null != e.OccupyStartTime && e.hasOwnProperty("OccupyStartTime") && ("number" == typeof e.OccupyStartTime ? n.OccupyStartTime = t.longs === String ? String(e.OccupyStartTime) : e.OccupyStartTime : n.OccupyStartTime = t.longs === String ? i.Long.prototype.toString.call(e.OccupyStartTime) : t.longs === Number ? new i.LongBits(e.OccupyStartTime.low >>> 0, e.OccupyStartTime.high >>> 0).toNumber() : e.OccupyStartTime), e.DefenderDeadTs && e.DefenderDeadTs.length)
                    for (n.DefenderDeadTs = [], r = 0; r < e.DefenderDeadTs.length; ++r) n.DefenderDeadTs[r] = a.IntArray.toObject(e.DefenderDeadTs[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AssResourcePointSimpleInfo"
            }, e
        }(), a.AssWinstreakInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadFrame = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.WinCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Name = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.HeadIcon && Object.hasOwnProperty.call(e, "HeadIcon") && t.uint32(16).int64(e.HeadIcon), null != e.HeadFrame && Object.hasOwnProperty.call(e, "HeadFrame") && t.uint32(24).int64(e.HeadFrame), null != e.WinCount && Object.hasOwnProperty.call(e, "WinCount") && t.uint32(32).int64(e.WinCount), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(42).string(e.Name), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AssWinstreakInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.HeadIcon = e.int64();
                            break;
                        case 3:
                            r.HeadFrame = e.int64();
                            break;
                        case 4:
                            r.WinCount = e.int64();
                            break;
                        case 5:
                            r.Name = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && !(i.isInteger(e.HeadIcon) || e.HeadIcon && i.isInteger(e.HeadIcon.low) && i.isInteger(e.HeadIcon.high)) ? "HeadIcon: integer|Long expected" : null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && !(i.isInteger(e.HeadFrame) || e.HeadFrame && i.isInteger(e.HeadFrame.low) && i.isInteger(e.HeadFrame.high)) ? "HeadFrame: integer|Long expected" : null != e.WinCount && e.hasOwnProperty("WinCount") && !(i.isInteger(e.WinCount) || e.WinCount && i.isInteger(e.WinCount.low) && i.isInteger(e.WinCount.high)) ? "WinCount: integer|Long expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AssWinstreakInfo) return e;
                var t = new a.AssWinstreakInfo;
                return null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.HeadIcon && (i.Long ? (t.HeadIcon = i.Long.fromValue(e.HeadIcon)).unsigned = !1 : "string" == typeof e.HeadIcon ? t.HeadIcon = parseInt(e.HeadIcon, 10) : "number" == typeof e.HeadIcon ? t.HeadIcon = e.HeadIcon : "object" == typeof e.HeadIcon && (t.HeadIcon = new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber())), null != e.HeadFrame && (i.Long ? (t.HeadFrame = i.Long.fromValue(e.HeadFrame)).unsigned = !1 : "string" == typeof e.HeadFrame ? t.HeadFrame = parseInt(e.HeadFrame, 10) : "number" == typeof e.HeadFrame ? t.HeadFrame = e.HeadFrame : "object" == typeof e.HeadFrame && (t.HeadFrame = new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber())), null != e.WinCount && (i.Long ? (t.WinCount = i.Long.fromValue(e.WinCount)).unsigned = !1 : "string" == typeof e.WinCount ? t.WinCount = parseInt(e.WinCount, 10) : "number" == typeof e.WinCount ? t.WinCount = e.WinCount : "object" == typeof e.WinCount && (t.WinCount = new i.LongBits(e.WinCount.low >>> 0, e.WinCount.high >>> 0).toNumber())), null != e.Name && (t.Name = String(e.Name)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeadIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadIcon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadFrame = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadFrame = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.WinCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.WinCount = t.longs === String ? "0" : 0, n.Name = ""
                }
                return null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && ("number" == typeof e.HeadIcon ? n.HeadIcon = t.longs === String ? String(e.HeadIcon) : e.HeadIcon : n.HeadIcon = t.longs === String ? i.Long.prototype.toString.call(e.HeadIcon) : t.longs === Number ? new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber() : e.HeadIcon), null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && ("number" == typeof e.HeadFrame ? n.HeadFrame = t.longs === String ? String(e.HeadFrame) : e.HeadFrame : n.HeadFrame = t.longs === String ? i.Long.prototype.toString.call(e.HeadFrame) : t.longs === Number ? new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber() : e.HeadFrame), null != e.WinCount && e.hasOwnProperty("WinCount") && ("number" == typeof e.WinCount ? n.WinCount = t.longs === String ? String(e.WinCount) : e.WinCount : n.WinCount = t.longs === String ? i.Long.prototype.toString.call(e.WinCount) : t.longs === Number ? new i.LongBits(e.WinCount.low >>> 0, e.WinCount.high >>> 0).toNumber() : e.WinCount), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AssWinstreakInfo"
            }, e
        }(), a.AngelCardGameInfo = function() {
            function e(e) {
                if (this.AngelCards = [], this.AllHandCards = [], this.MagicCards = [], this.HandCards = [], this.SuccessCardBag = [], this.RefreshCards = [], this.ChooseCardsIndex = [], this.ChooseBufferIds = [], this.CardLevel = {}, this.PayCardTimes = {}, this.Attrs = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Coin = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Score = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Stage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Deck = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Difficulty = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PlayCardsTimes = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DisCardTimes = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RefreshShopTimes = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.State = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AngelCards = i.emptyArray, e.prototype.AllHandCards = i.emptyArray, e.prototype.MagicCards = i.emptyArray, e.prototype.HandCards = i.emptyArray, e.prototype.SuccessCardBag = i.emptyArray, e.prototype.RefreshCards = i.emptyArray, e.prototype.ChooseCardsIndex = i.emptyArray, e.prototype.ChooseBufferIds = i.emptyArray, e.prototype.CardLevel = i.emptyObject, e.prototype.PayCardTimes = i.emptyObject, e.prototype.Attrs = i.emptyObject, e.prototype.MonsterId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Coin && Object.hasOwnProperty.call(e, "Coin") && t.uint32(8).int64(e.Coin), null != e.Score && Object.hasOwnProperty.call(e, "Score") && t.uint32(16).int64(e.Score), null != e.Stage && Object.hasOwnProperty.call(e, "Stage") && t.uint32(24).int64(e.Stage), null != e.Deck && Object.hasOwnProperty.call(e, "Deck") && t.uint32(32).int64(e.Deck), null != e.Difficulty && Object.hasOwnProperty.call(e, "Difficulty") && t.uint32(40).int64(e.Difficulty), null != e.PlayCardsTimes && Object.hasOwnProperty.call(e, "PlayCardsTimes") && t.uint32(48).int64(e.PlayCardsTimes), null != e.DisCardTimes && Object.hasOwnProperty.call(e, "DisCardTimes") && t.uint32(56).int64(e.DisCardTimes), null != e.RefreshShopTimes && Object.hasOwnProperty.call(e, "RefreshShopTimes") && t.uint32(64).int64(e.RefreshShopTimes), null != e.State && Object.hasOwnProperty.call(e, "State") && t.uint32(72).int64(e.State), null != e.AngelCards && e.AngelCards.length)
                    for (var n = 0; n < e.AngelCards.length; ++n) a.IntArray.encode(e.AngelCards[n], t.uint32(82).fork()).ldelim();
                if (null != e.AllHandCards && e.AllHandCards.length)
                    for (n = 0; n < e.AllHandCards.length; ++n) a.AngelCardHandCard.encode(e.AllHandCards[n], t.uint32(90).fork()).ldelim();
                if (null != e.MagicCards && e.MagicCards.length) {
                    for (t.uint32(98).fork(), n = 0; n < e.MagicCards.length; ++n) t.int64(e.MagicCards[n]);
                    t.ldelim()
                }
                if (null != e.HandCards && e.HandCards.length)
                    for (n = 0; n < e.HandCards.length; ++n) a.AngelCardHandCard.encode(e.HandCards[n], t.uint32(106).fork()).ldelim();
                if (null != e.SuccessCardBag && e.SuccessCardBag.length) {
                    for (t.uint32(114).fork(), n = 0; n < e.SuccessCardBag.length; ++n) t.int64(e.SuccessCardBag[n]);
                    t.ldelim()
                }
                if (null != e.RefreshCards && e.RefreshCards.length) {
                    for (t.uint32(122).fork(), n = 0; n < e.RefreshCards.length; ++n) t.int64(e.RefreshCards[n]);
                    t.ldelim()
                }
                if (null != e.ChooseCardsIndex && e.ChooseCardsIndex.length) {
                    for (t.uint32(130).fork(), n = 0; n < e.ChooseCardsIndex.length; ++n) t.int64(e.ChooseCardsIndex[n]);
                    t.ldelim()
                }
                if (null != e.CardLevel && Object.hasOwnProperty.call(e, "CardLevel")) {
                    var o = Object.keys(e.CardLevel);
                    for (n = 0; n < o.length; ++n) t.uint32(162).fork().uint32(8).int64(o[n]).uint32(16).int64(e.CardLevel[o[n]]).ldelim()
                }
                if (null != e.PayCardTimes && Object.hasOwnProperty.call(e, "PayCardTimes"))
                    for (o = Object.keys(e.PayCardTimes), n = 0; n < o.length; ++n) t.uint32(170).fork().uint32(8).int64(o[n]).uint32(16).int64(e.PayCardTimes[o[n]]).ldelim();
                if (null != e.ChooseBufferIds && e.ChooseBufferIds.length) {
                    for (t.uint32(178).fork(), n = 0; n < e.ChooseBufferIds.length; ++n) t.int64(e.ChooseBufferIds[n]);
                    t.ldelim()
                }
                if (null != e.Attrs && Object.hasOwnProperty.call(e, "Attrs"))
                    for (o = Object.keys(e.Attrs), n = 0; n < o.length; ++n) t.uint32(186).fork().uint32(8).int64(o[n]).uint32(16).int64(e.Attrs[o[n]]).ldelim();
                return null != e.MonsterId && Object.hasOwnProperty.call(e, "MonsterId") && t.uint32(240).int64(e.MonsterId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.AngelCardGameInfo; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Coin = e.int64();
                            break;
                        case 2:
                            l.Score = e.int64();
                            break;
                        case 3:
                            l.Stage = e.int64();
                            break;
                        case 4:
                            l.Deck = e.int64();
                            break;
                        case 5:
                            l.Difficulty = e.int64();
                            break;
                        case 6:
                            l.PlayCardsTimes = e.int64();
                            break;
                        case 7:
                            l.DisCardTimes = e.int64();
                            break;
                        case 8:
                            l.RefreshShopTimes = e.int64();
                            break;
                        case 9:
                            l.State = e.int64();
                            break;
                        case 10:
                            l.AngelCards && l.AngelCards.length || (l.AngelCards = []), l.AngelCards.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 11:
                            l.AllHandCards && l.AllHandCards.length || (l.AllHandCards = []), l.AllHandCards.push(a.AngelCardHandCard.decode(e, e.uint32()));
                            break;
                        case 12:
                            if (l.MagicCards && l.MagicCards.length || (l.MagicCards = []), 2 == (7 & c))
                                for (var u = e.uint32() + e.pos; e.pos < u;) l.MagicCards.push(e.int64());
                            else l.MagicCards.push(e.int64());
                            break;
                        case 13:
                            l.HandCards && l.HandCards.length || (l.HandCards = []), l.HandCards.push(a.AngelCardHandCard.decode(e, e.uint32()));
                            break;
                        case 14:
                            if (l.SuccessCardBag && l.SuccessCardBag.length || (l.SuccessCardBag = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.SuccessCardBag.push(e.int64());
                            else l.SuccessCardBag.push(e.int64());
                            break;
                        case 15:
                            if (l.RefreshCards && l.RefreshCards.length || (l.RefreshCards = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.RefreshCards.push(e.int64());
                            else l.RefreshCards.push(e.int64());
                            break;
                        case 16:
                            if (l.ChooseCardsIndex && l.ChooseCardsIndex.length || (l.ChooseCardsIndex = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.ChooseCardsIndex.push(e.int64());
                            else l.ChooseCardsIndex.push(e.int64());
                            break;
                        case 22:
                            if (l.ChooseBufferIds && l.ChooseBufferIds.length || (l.ChooseBufferIds = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.ChooseBufferIds.push(e.int64());
                            else l.ChooseBufferIds.push(e.int64());
                            break;
                        case 20:
                            for (l.CardLevel === i.emptyObject && (l.CardLevel = {}), u = e.uint32() + e.pos, n = 0, r = 0; e.pos < u;) switch ((p = e.uint32()) >>> 3) {
                                case 1:
                                    n = e.int64();
                                    break;
                                case 2:
                                    r = e.int64();
                                    break;
                                default:
                                    e.skipType(7 & p)
                            }
                            l.CardLevel["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 21:
                            for (l.PayCardTimes === i.emptyObject && (l.PayCardTimes = {}), u = e.uint32() + e.pos, n = 0, r = 0; e.pos < u;) switch ((p = e.uint32()) >>> 3) {
                                case 1:
                                    n = e.int64();
                                    break;
                                case 2:
                                    r = e.int64();
                                    break;
                                default:
                                    e.skipType(7 & p)
                            }
                            l.PayCardTimes["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 23:
                            for (l.Attrs === i.emptyObject && (l.Attrs = {}), u = e.uint32() + e.pos, n = 0, r = 0; e.pos < u;) {
                                var p;
                                switch ((p = e.uint32()) >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = e.int64();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.Attrs["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 30:
                            l.MonsterId = e.int64();
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Coin && e.hasOwnProperty("Coin") && !(i.isInteger(e.Coin) || e.Coin && i.isInteger(e.Coin.low) && i.isInteger(e.Coin.high))) return "Coin: integer|Long expected";
                if (null != e.Score && e.hasOwnProperty("Score") && !(i.isInteger(e.Score) || e.Score && i.isInteger(e.Score.low) && i.isInteger(e.Score.high))) return "Score: integer|Long expected";
                if (null != e.Stage && e.hasOwnProperty("Stage") && !(i.isInteger(e.Stage) || e.Stage && i.isInteger(e.Stage.low) && i.isInteger(e.Stage.high))) return "Stage: integer|Long expected";
                if (null != e.Deck && e.hasOwnProperty("Deck") && !(i.isInteger(e.Deck) || e.Deck && i.isInteger(e.Deck.low) && i.isInteger(e.Deck.high))) return "Deck: integer|Long expected";
                if (null != e.Difficulty && e.hasOwnProperty("Difficulty") && !(i.isInteger(e.Difficulty) || e.Difficulty && i.isInteger(e.Difficulty.low) && i.isInteger(e.Difficulty.high))) return "Difficulty: integer|Long expected";
                if (null != e.PlayCardsTimes && e.hasOwnProperty("PlayCardsTimes") && !(i.isInteger(e.PlayCardsTimes) || e.PlayCardsTimes && i.isInteger(e.PlayCardsTimes.low) && i.isInteger(e.PlayCardsTimes.high))) return "PlayCardsTimes: integer|Long expected";
                if (null != e.DisCardTimes && e.hasOwnProperty("DisCardTimes") && !(i.isInteger(e.DisCardTimes) || e.DisCardTimes && i.isInteger(e.DisCardTimes.low) && i.isInteger(e.DisCardTimes.high))) return "DisCardTimes: integer|Long expected";
                if (null != e.RefreshShopTimes && e.hasOwnProperty("RefreshShopTimes") && !(i.isInteger(e.RefreshShopTimes) || e.RefreshShopTimes && i.isInteger(e.RefreshShopTimes.low) && i.isInteger(e.RefreshShopTimes.high))) return "RefreshShopTimes: integer|Long expected";
                if (null != e.State && e.hasOwnProperty("State") && !(i.isInteger(e.State) || e.State && i.isInteger(e.State.low) && i.isInteger(e.State.high))) return "State: integer|Long expected";
                if (null != e.AngelCards && e.hasOwnProperty("AngelCards")) {
                    if (!Array.isArray(e.AngelCards)) return "AngelCards: array expected";
                    for (var t = 0; t < e.AngelCards.length; ++t)
                        if (n = a.IntArray.verify(e.AngelCards[t])) return "AngelCards." + n
                }
                if (null != e.AllHandCards && e.hasOwnProperty("AllHandCards")) {
                    if (!Array.isArray(e.AllHandCards)) return "AllHandCards: array expected";
                    for (t = 0; t < e.AllHandCards.length; ++t)
                        if (n = a.AngelCardHandCard.verify(e.AllHandCards[t])) return "AllHandCards." + n
                }
                if (null != e.MagicCards && e.hasOwnProperty("MagicCards")) {
                    if (!Array.isArray(e.MagicCards)) return "MagicCards: array expected";
                    for (t = 0; t < e.MagicCards.length; ++t)
                        if (!(i.isInteger(e.MagicCards[t]) || e.MagicCards[t] && i.isInteger(e.MagicCards[t].low) && i.isInteger(e.MagicCards[t].high))) return "MagicCards: integer|Long[] expected"
                }
                if (null != e.HandCards && e.hasOwnProperty("HandCards")) {
                    if (!Array.isArray(e.HandCards)) return "HandCards: array expected";
                    for (t = 0; t < e.HandCards.length; ++t) {
                        var n;
                        if (n = a.AngelCardHandCard.verify(e.HandCards[t])) return "HandCards." + n
                    }
                }
                if (null != e.SuccessCardBag && e.hasOwnProperty("SuccessCardBag")) {
                    if (!Array.isArray(e.SuccessCardBag)) return "SuccessCardBag: array expected";
                    for (t = 0; t < e.SuccessCardBag.length; ++t)
                        if (!(i.isInteger(e.SuccessCardBag[t]) || e.SuccessCardBag[t] && i.isInteger(e.SuccessCardBag[t].low) && i.isInteger(e.SuccessCardBag[t].high))) return "SuccessCardBag: integer|Long[] expected"
                }
                if (null != e.RefreshCards && e.hasOwnProperty("RefreshCards")) {
                    if (!Array.isArray(e.RefreshCards)) return "RefreshCards: array expected";
                    for (t = 0; t < e.RefreshCards.length; ++t)
                        if (!(i.isInteger(e.RefreshCards[t]) || e.RefreshCards[t] && i.isInteger(e.RefreshCards[t].low) && i.isInteger(e.RefreshCards[t].high))) return "RefreshCards: integer|Long[] expected"
                }
                if (null != e.ChooseCardsIndex && e.hasOwnProperty("ChooseCardsIndex")) {
                    if (!Array.isArray(e.ChooseCardsIndex)) return "ChooseCardsIndex: array expected";
                    for (t = 0; t < e.ChooseCardsIndex.length; ++t)
                        if (!(i.isInteger(e.ChooseCardsIndex[t]) || e.ChooseCardsIndex[t] && i.isInteger(e.ChooseCardsIndex[t].low) && i.isInteger(e.ChooseCardsIndex[t].high))) return "ChooseCardsIndex: integer|Long[] expected"
                }
                if (null != e.ChooseBufferIds && e.hasOwnProperty("ChooseBufferIds")) {
                    if (!Array.isArray(e.ChooseBufferIds)) return "ChooseBufferIds: array expected";
                    for (t = 0; t < e.ChooseBufferIds.length; ++t)
                        if (!(i.isInteger(e.ChooseBufferIds[t]) || e.ChooseBufferIds[t] && i.isInteger(e.ChooseBufferIds[t].low) && i.isInteger(e.ChooseBufferIds[t].high))) return "ChooseBufferIds: integer|Long[] expected"
                }
                if (null != e.CardLevel && e.hasOwnProperty("CardLevel")) {
                    if (!i.isObject(e.CardLevel)) return "CardLevel: object expected";
                    var o = Object.keys(e.CardLevel);
                    for (t = 0; t < o.length; ++t) {
                        if (!i.key64Re.test(o[t])) return "CardLevel: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.CardLevel[o[t]]) || e.CardLevel[o[t]] && i.isInteger(e.CardLevel[o[t]].low) && i.isInteger(e.CardLevel[o[t]].high))) return "CardLevel: integer|Long{k:int64} expected"
                    }
                }
                if (null != e.PayCardTimes && e.hasOwnProperty("PayCardTimes")) {
                    if (!i.isObject(e.PayCardTimes)) return "PayCardTimes: object expected";
                    for (o = Object.keys(e.PayCardTimes), t = 0; t < o.length; ++t) {
                        if (!i.key64Re.test(o[t])) return "PayCardTimes: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.PayCardTimes[o[t]]) || e.PayCardTimes[o[t]] && i.isInteger(e.PayCardTimes[o[t]].low) && i.isInteger(e.PayCardTimes[o[t]].high))) return "PayCardTimes: integer|Long{k:int64} expected"
                    }
                }
                if (null != e.Attrs && e.hasOwnProperty("Attrs")) {
                    if (!i.isObject(e.Attrs)) return "Attrs: object expected";
                    for (o = Object.keys(e.Attrs), t = 0; t < o.length; ++t) {
                        if (!i.key64Re.test(o[t])) return "Attrs: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.Attrs[o[t]]) || e.Attrs[o[t]] && i.isInteger(e.Attrs[o[t]].low) && i.isInteger(e.Attrs[o[t]].high))) return "Attrs: integer|Long{k:int64} expected"
                    }
                }
                return null != e.MonsterId && e.hasOwnProperty("MonsterId") && !(i.isInteger(e.MonsterId) || e.MonsterId && i.isInteger(e.MonsterId.low) && i.isInteger(e.MonsterId.high)) ? "MonsterId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelCardGameInfo) return e;
                var t = new a.AngelCardGameInfo;
                if (null != e.Coin && (i.Long ? (t.Coin = i.Long.fromValue(e.Coin)).unsigned = !1 : "string" == typeof e.Coin ? t.Coin = parseInt(e.Coin, 10) : "number" == typeof e.Coin ? t.Coin = e.Coin : "object" == typeof e.Coin && (t.Coin = new i.LongBits(e.Coin.low >>> 0, e.Coin.high >>> 0).toNumber())), null != e.Score && (i.Long ? (t.Score = i.Long.fromValue(e.Score)).unsigned = !1 : "string" == typeof e.Score ? t.Score = parseInt(e.Score, 10) : "number" == typeof e.Score ? t.Score = e.Score : "object" == typeof e.Score && (t.Score = new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber())), null != e.Stage && (i.Long ? (t.Stage = i.Long.fromValue(e.Stage)).unsigned = !1 : "string" == typeof e.Stage ? t.Stage = parseInt(e.Stage, 10) : "number" == typeof e.Stage ? t.Stage = e.Stage : "object" == typeof e.Stage && (t.Stage = new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber())), null != e.Deck && (i.Long ? (t.Deck = i.Long.fromValue(e.Deck)).unsigned = !1 : "string" == typeof e.Deck ? t.Deck = parseInt(e.Deck, 10) : "number" == typeof e.Deck ? t.Deck = e.Deck : "object" == typeof e.Deck && (t.Deck = new i.LongBits(e.Deck.low >>> 0, e.Deck.high >>> 0).toNumber())), null != e.Difficulty && (i.Long ? (t.Difficulty = i.Long.fromValue(e.Difficulty)).unsigned = !1 : "string" == typeof e.Difficulty ? t.Difficulty = parseInt(e.Difficulty, 10) : "number" == typeof e.Difficulty ? t.Difficulty = e.Difficulty : "object" == typeof e.Difficulty && (t.Difficulty = new i.LongBits(e.Difficulty.low >>> 0, e.Difficulty.high >>> 0).toNumber())), null != e.PlayCardsTimes && (i.Long ? (t.PlayCardsTimes = i.Long.fromValue(e.PlayCardsTimes)).unsigned = !1 : "string" == typeof e.PlayCardsTimes ? t.PlayCardsTimes = parseInt(e.PlayCardsTimes, 10) : "number" == typeof e.PlayCardsTimes ? t.PlayCardsTimes = e.PlayCardsTimes : "object" == typeof e.PlayCardsTimes && (t.PlayCardsTimes = new i.LongBits(e.PlayCardsTimes.low >>> 0, e.PlayCardsTimes.high >>> 0).toNumber())), null != e.DisCardTimes && (i.Long ? (t.DisCardTimes = i.Long.fromValue(e.DisCardTimes)).unsigned = !1 : "string" == typeof e.DisCardTimes ? t.DisCardTimes = parseInt(e.DisCardTimes, 10) : "number" == typeof e.DisCardTimes ? t.DisCardTimes = e.DisCardTimes : "object" == typeof e.DisCardTimes && (t.DisCardTimes = new i.LongBits(e.DisCardTimes.low >>> 0, e.DisCardTimes.high >>> 0).toNumber())), null != e.RefreshShopTimes && (i.Long ? (t.RefreshShopTimes = i.Long.fromValue(e.RefreshShopTimes)).unsigned = !1 : "string" == typeof e.RefreshShopTimes ? t.RefreshShopTimes = parseInt(e.RefreshShopTimes, 10) : "number" == typeof e.RefreshShopTimes ? t.RefreshShopTimes = e.RefreshShopTimes : "object" == typeof e.RefreshShopTimes && (t.RefreshShopTimes = new i.LongBits(e.RefreshShopTimes.low >>> 0, e.RefreshShopTimes.high >>> 0).toNumber())), null != e.State && (i.Long ? (t.State = i.Long.fromValue(e.State)).unsigned = !1 : "string" == typeof e.State ? t.State = parseInt(e.State, 10) : "number" == typeof e.State ? t.State = e.State : "object" == typeof e.State && (t.State = new i.LongBits(e.State.low >>> 0, e.State.high >>> 0).toNumber())), e.AngelCards) {
                    if (!Array.isArray(e.AngelCards)) throw TypeError(".AngelCardGameInfo.AngelCards: array expected");
                    t.AngelCards = [];
                    for (var n = 0; n < e.AngelCards.length; ++n) {
                        if ("object" != typeof e.AngelCards[n]) throw TypeError(".AngelCardGameInfo.AngelCards: object expected");
                        t.AngelCards[n] = a.IntArray.fromObject(e.AngelCards[n])
                    }
                }
                if (e.AllHandCards) {
                    if (!Array.isArray(e.AllHandCards)) throw TypeError(".AngelCardGameInfo.AllHandCards: array expected");
                    for (t.AllHandCards = [], n = 0; n < e.AllHandCards.length; ++n) {
                        if ("object" != typeof e.AllHandCards[n]) throw TypeError(".AngelCardGameInfo.AllHandCards: object expected");
                        t.AllHandCards[n] = a.AngelCardHandCard.fromObject(e.AllHandCards[n])
                    }
                }
                if (e.MagicCards) {
                    if (!Array.isArray(e.MagicCards)) throw TypeError(".AngelCardGameInfo.MagicCards: array expected");
                    for (t.MagicCards = [], n = 0; n < e.MagicCards.length; ++n) i.Long ? (t.MagicCards[n] = i.Long.fromValue(e.MagicCards[n])).unsigned = !1 : "string" == typeof e.MagicCards[n] ? t.MagicCards[n] = parseInt(e.MagicCards[n], 10) : "number" == typeof e.MagicCards[n] ? t.MagicCards[n] = e.MagicCards[n] : "object" == typeof e.MagicCards[n] && (t.MagicCards[n] = new i.LongBits(e.MagicCards[n].low >>> 0, e.MagicCards[n].high >>> 0).toNumber())
                }
                if (e.HandCards) {
                    if (!Array.isArray(e.HandCards)) throw TypeError(".AngelCardGameInfo.HandCards: array expected");
                    for (t.HandCards = [], n = 0; n < e.HandCards.length; ++n) {
                        if ("object" != typeof e.HandCards[n]) throw TypeError(".AngelCardGameInfo.HandCards: object expected");
                        t.HandCards[n] = a.AngelCardHandCard.fromObject(e.HandCards[n])
                    }
                }
                if (e.SuccessCardBag) {
                    if (!Array.isArray(e.SuccessCardBag)) throw TypeError(".AngelCardGameInfo.SuccessCardBag: array expected");
                    for (t.SuccessCardBag = [], n = 0; n < e.SuccessCardBag.length; ++n) i.Long ? (t.SuccessCardBag[n] = i.Long.fromValue(e.SuccessCardBag[n])).unsigned = !1 : "string" == typeof e.SuccessCardBag[n] ? t.SuccessCardBag[n] = parseInt(e.SuccessCardBag[n], 10) : "number" == typeof e.SuccessCardBag[n] ? t.SuccessCardBag[n] = e.SuccessCardBag[n] : "object" == typeof e.SuccessCardBag[n] && (t.SuccessCardBag[n] = new i.LongBits(e.SuccessCardBag[n].low >>> 0, e.SuccessCardBag[n].high >>> 0).toNumber())
                }
                if (e.RefreshCards) {
                    if (!Array.isArray(e.RefreshCards)) throw TypeError(".AngelCardGameInfo.RefreshCards: array expected");
                    for (t.RefreshCards = [], n = 0; n < e.RefreshCards.length; ++n) i.Long ? (t.RefreshCards[n] = i.Long.fromValue(e.RefreshCards[n])).unsigned = !1 : "string" == typeof e.RefreshCards[n] ? t.RefreshCards[n] = parseInt(e.RefreshCards[n], 10) : "number" == typeof e.RefreshCards[n] ? t.RefreshCards[n] = e.RefreshCards[n] : "object" == typeof e.RefreshCards[n] && (t.RefreshCards[n] = new i.LongBits(e.RefreshCards[n].low >>> 0, e.RefreshCards[n].high >>> 0).toNumber())
                }
                if (e.ChooseCardsIndex) {
                    if (!Array.isArray(e.ChooseCardsIndex)) throw TypeError(".AngelCardGameInfo.ChooseCardsIndex: array expected");
                    for (t.ChooseCardsIndex = [], n = 0; n < e.ChooseCardsIndex.length; ++n) i.Long ? (t.ChooseCardsIndex[n] = i.Long.fromValue(e.ChooseCardsIndex[n])).unsigned = !1 : "string" == typeof e.ChooseCardsIndex[n] ? t.ChooseCardsIndex[n] = parseInt(e.ChooseCardsIndex[n], 10) : "number" == typeof e.ChooseCardsIndex[n] ? t.ChooseCardsIndex[n] = e.ChooseCardsIndex[n] : "object" == typeof e.ChooseCardsIndex[n] && (t.ChooseCardsIndex[n] = new i.LongBits(e.ChooseCardsIndex[n].low >>> 0, e.ChooseCardsIndex[n].high >>> 0).toNumber())
                }
                if (e.ChooseBufferIds) {
                    if (!Array.isArray(e.ChooseBufferIds)) throw TypeError(".AngelCardGameInfo.ChooseBufferIds: array expected");
                    for (t.ChooseBufferIds = [], n = 0; n < e.ChooseBufferIds.length; ++n) i.Long ? (t.ChooseBufferIds[n] = i.Long.fromValue(e.ChooseBufferIds[n])).unsigned = !1 : "string" == typeof e.ChooseBufferIds[n] ? t.ChooseBufferIds[n] = parseInt(e.ChooseBufferIds[n], 10) : "number" == typeof e.ChooseBufferIds[n] ? t.ChooseBufferIds[n] = e.ChooseBufferIds[n] : "object" == typeof e.ChooseBufferIds[n] && (t.ChooseBufferIds[n] = new i.LongBits(e.ChooseBufferIds[n].low >>> 0, e.ChooseBufferIds[n].high >>> 0).toNumber())
                }
                if (e.CardLevel) {
                    if ("object" != typeof e.CardLevel) throw TypeError(".AngelCardGameInfo.CardLevel: object expected");
                    t.CardLevel = {};
                    var o = Object.keys(e.CardLevel);
                    for (n = 0; n < o.length; ++n) i.Long ? (t.CardLevel[o[n]] = i.Long.fromValue(e.CardLevel[o[n]])).unsigned = !1 : "string" == typeof e.CardLevel[o[n]] ? t.CardLevel[o[n]] = parseInt(e.CardLevel[o[n]], 10) : "number" == typeof e.CardLevel[o[n]] ? t.CardLevel[o[n]] = e.CardLevel[o[n]] : "object" == typeof e.CardLevel[o[n]] && (t.CardLevel[o[n]] = new i.LongBits(e.CardLevel[o[n]].low >>> 0, e.CardLevel[o[n]].high >>> 0).toNumber())
                }
                if (e.PayCardTimes) {
                    if ("object" != typeof e.PayCardTimes) throw TypeError(".AngelCardGameInfo.PayCardTimes: object expected");
                    for (t.PayCardTimes = {}, o = Object.keys(e.PayCardTimes), n = 0; n < o.length; ++n) i.Long ? (t.PayCardTimes[o[n]] = i.Long.fromValue(e.PayCardTimes[o[n]])).unsigned = !1 : "string" == typeof e.PayCardTimes[o[n]] ? t.PayCardTimes[o[n]] = parseInt(e.PayCardTimes[o[n]], 10) : "number" == typeof e.PayCardTimes[o[n]] ? t.PayCardTimes[o[n]] = e.PayCardTimes[o[n]] : "object" == typeof e.PayCardTimes[o[n]] && (t.PayCardTimes[o[n]] = new i.LongBits(e.PayCardTimes[o[n]].low >>> 0, e.PayCardTimes[o[n]].high >>> 0).toNumber())
                }
                if (e.Attrs) {
                    if ("object" != typeof e.Attrs) throw TypeError(".AngelCardGameInfo.Attrs: object expected");
                    for (t.Attrs = {}, o = Object.keys(e.Attrs), n = 0; n < o.length; ++n) i.Long ? (t.Attrs[o[n]] = i.Long.fromValue(e.Attrs[o[n]])).unsigned = !1 : "string" == typeof e.Attrs[o[n]] ? t.Attrs[o[n]] = parseInt(e.Attrs[o[n]], 10) : "number" == typeof e.Attrs[o[n]] ? t.Attrs[o[n]] = e.Attrs[o[n]] : "object" == typeof e.Attrs[o[n]] && (t.Attrs[o[n]] = new i.LongBits(e.Attrs[o[n]].low >>> 0, e.Attrs[o[n]].high >>> 0).toNumber())
                }
                return null != e.MonsterId && (i.Long ? (t.MonsterId = i.Long.fromValue(e.MonsterId)).unsigned = !1 : "string" == typeof e.MonsterId ? t.MonsterId = parseInt(e.MonsterId, 10) : "number" == typeof e.MonsterId ? t.MonsterId = e.MonsterId : "object" == typeof e.MonsterId && (t.MonsterId = new i.LongBits(e.MonsterId.low >>> 0, e.MonsterId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.AngelCards = [], o.AllHandCards = [], o.MagicCards = [], o.HandCards = [], o.SuccessCardBag = [], o.RefreshCards = [], o.ChooseCardsIndex = [], o.ChooseBufferIds = []), (t.objects || t.defaults) && (o.CardLevel = {}, o.PayCardTimes = {}, o.Attrs = {}), t.defaults) {
                    if (i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.Coin = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.Coin = t.longs === String ? "0" : 0;
                    i.Long ? (r = new i.Long(0, 0, !1), o.Score = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Score = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.Stage = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Stage = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.Deck = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Deck = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.Difficulty = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Difficulty = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.PlayCardsTimes = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.PlayCardsTimes = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.DisCardTimes = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.DisCardTimes = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.RefreshShopTimes = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.RefreshShopTimes = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.State = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.State = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.MonsterId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.MonsterId = t.longs === String ? "0" : 0
                }
                if (null != e.Coin && e.hasOwnProperty("Coin") && ("number" == typeof e.Coin ? o.Coin = t.longs === String ? String(e.Coin) : e.Coin : o.Coin = t.longs === String ? i.Long.prototype.toString.call(e.Coin) : t.longs === Number ? new i.LongBits(e.Coin.low >>> 0, e.Coin.high >>> 0).toNumber() : e.Coin), null != e.Score && e.hasOwnProperty("Score") && ("number" == typeof e.Score ? o.Score = t.longs === String ? String(e.Score) : e.Score : o.Score = t.longs === String ? i.Long.prototype.toString.call(e.Score) : t.longs === Number ? new i.LongBits(e.Score.low >>> 0, e.Score.high >>> 0).toNumber() : e.Score), null != e.Stage && e.hasOwnProperty("Stage") && ("number" == typeof e.Stage ? o.Stage = t.longs === String ? String(e.Stage) : e.Stage : o.Stage = t.longs === String ? i.Long.prototype.toString.call(e.Stage) : t.longs === Number ? new i.LongBits(e.Stage.low >>> 0, e.Stage.high >>> 0).toNumber() : e.Stage), null != e.Deck && e.hasOwnProperty("Deck") && ("number" == typeof e.Deck ? o.Deck = t.longs === String ? String(e.Deck) : e.Deck : o.Deck = t.longs === String ? i.Long.prototype.toString.call(e.Deck) : t.longs === Number ? new i.LongBits(e.Deck.low >>> 0, e.Deck.high >>> 0).toNumber() : e.Deck), null != e.Difficulty && e.hasOwnProperty("Difficulty") && ("number" == typeof e.Difficulty ? o.Difficulty = t.longs === String ? String(e.Difficulty) : e.Difficulty : o.Difficulty = t.longs === String ? i.Long.prototype.toString.call(e.Difficulty) : t.longs === Number ? new i.LongBits(e.Difficulty.low >>> 0, e.Difficulty.high >>> 0).toNumber() : e.Difficulty), null != e.PlayCardsTimes && e.hasOwnProperty("PlayCardsTimes") && ("number" == typeof e.PlayCardsTimes ? o.PlayCardsTimes = t.longs === String ? String(e.PlayCardsTimes) : e.PlayCardsTimes : o.PlayCardsTimes = t.longs === String ? i.Long.prototype.toString.call(e.PlayCardsTimes) : t.longs === Number ? new i.LongBits(e.PlayCardsTimes.low >>> 0, e.PlayCardsTimes.high >>> 0).toNumber() : e.PlayCardsTimes), null != e.DisCardTimes && e.hasOwnProperty("DisCardTimes") && ("number" == typeof e.DisCardTimes ? o.DisCardTimes = t.longs === String ? String(e.DisCardTimes) : e.DisCardTimes : o.DisCardTimes = t.longs === String ? i.Long.prototype.toString.call(e.DisCardTimes) : t.longs === Number ? new i.LongBits(e.DisCardTimes.low >>> 0, e.DisCardTimes.high >>> 0).toNumber() : e.DisCardTimes), null != e.RefreshShopTimes && e.hasOwnProperty("RefreshShopTimes") && ("number" == typeof e.RefreshShopTimes ? o.RefreshShopTimes = t.longs === String ? String(e.RefreshShopTimes) : e.RefreshShopTimes : o.RefreshShopTimes = t.longs === String ? i.Long.prototype.toString.call(e.RefreshShopTimes) : t.longs === Number ? new i.LongBits(e.RefreshShopTimes.low >>> 0, e.RefreshShopTimes.high >>> 0).toNumber() : e.RefreshShopTimes), null != e.State && e.hasOwnProperty("State") && ("number" == typeof e.State ? o.State = t.longs === String ? String(e.State) : e.State : o.State = t.longs === String ? i.Long.prototype.toString.call(e.State) : t.longs === Number ? new i.LongBits(e.State.low >>> 0, e.State.high >>> 0).toNumber() : e.State), e.AngelCards && e.AngelCards.length) {
                    o.AngelCards = [];
                    for (var s = 0; s < e.AngelCards.length; ++s) o.AngelCards[s] = a.IntArray.toObject(e.AngelCards[s], t)
                }
                if (e.AllHandCards && e.AllHandCards.length)
                    for (o.AllHandCards = [], s = 0; s < e.AllHandCards.length; ++s) o.AllHandCards[s] = a.AngelCardHandCard.toObject(e.AllHandCards[s], t);
                if (e.MagicCards && e.MagicCards.length)
                    for (o.MagicCards = [], s = 0; s < e.MagicCards.length; ++s) "number" == typeof e.MagicCards[s] ? o.MagicCards[s] = t.longs === String ? String(e.MagicCards[s]) : e.MagicCards[s] : o.MagicCards[s] = t.longs === String ? i.Long.prototype.toString.call(e.MagicCards[s]) : t.longs === Number ? new i.LongBits(e.MagicCards[s].low >>> 0, e.MagicCards[s].high >>> 0).toNumber() : e.MagicCards[s];
                if (e.HandCards && e.HandCards.length)
                    for (o.HandCards = [], s = 0; s < e.HandCards.length; ++s) o.HandCards[s] = a.AngelCardHandCard.toObject(e.HandCards[s], t);
                if (e.SuccessCardBag && e.SuccessCardBag.length)
                    for (o.SuccessCardBag = [], s = 0; s < e.SuccessCardBag.length; ++s) "number" == typeof e.SuccessCardBag[s] ? o.SuccessCardBag[s] = t.longs === String ? String(e.SuccessCardBag[s]) : e.SuccessCardBag[s] : o.SuccessCardBag[s] = t.longs === String ? i.Long.prototype.toString.call(e.SuccessCardBag[s]) : t.longs === Number ? new i.LongBits(e.SuccessCardBag[s].low >>> 0, e.SuccessCardBag[s].high >>> 0).toNumber() : e.SuccessCardBag[s];
                if (e.RefreshCards && e.RefreshCards.length)
                    for (o.RefreshCards = [], s = 0; s < e.RefreshCards.length; ++s) "number" == typeof e.RefreshCards[s] ? o.RefreshCards[s] = t.longs === String ? String(e.RefreshCards[s]) : e.RefreshCards[s] : o.RefreshCards[s] = t.longs === String ? i.Long.prototype.toString.call(e.RefreshCards[s]) : t.longs === Number ? new i.LongBits(e.RefreshCards[s].low >>> 0, e.RefreshCards[s].high >>> 0).toNumber() : e.RefreshCards[s];
                if (e.ChooseCardsIndex && e.ChooseCardsIndex.length)
                    for (o.ChooseCardsIndex = [], s = 0; s < e.ChooseCardsIndex.length; ++s) "number" == typeof e.ChooseCardsIndex[s] ? o.ChooseCardsIndex[s] = t.longs === String ? String(e.ChooseCardsIndex[s]) : e.ChooseCardsIndex[s] : o.ChooseCardsIndex[s] = t.longs === String ? i.Long.prototype.toString.call(e.ChooseCardsIndex[s]) : t.longs === Number ? new i.LongBits(e.ChooseCardsIndex[s].low >>> 0, e.ChooseCardsIndex[s].high >>> 0).toNumber() : e.ChooseCardsIndex[s];
                if (e.CardLevel && (n = Object.keys(e.CardLevel)).length)
                    for (o.CardLevel = {}, s = 0; s < n.length; ++s) "number" == typeof e.CardLevel[n[s]] ? o.CardLevel[n[s]] = t.longs === String ? String(e.CardLevel[n[s]]) : e.CardLevel[n[s]] : o.CardLevel[n[s]] = t.longs === String ? i.Long.prototype.toString.call(e.CardLevel[n[s]]) : t.longs === Number ? new i.LongBits(e.CardLevel[n[s]].low >>> 0, e.CardLevel[n[s]].high >>> 0).toNumber() : e.CardLevel[n[s]];
                if (e.PayCardTimes && (n = Object.keys(e.PayCardTimes)).length)
                    for (o.PayCardTimes = {}, s = 0; s < n.length; ++s) "number" == typeof e.PayCardTimes[n[s]] ? o.PayCardTimes[n[s]] = t.longs === String ? String(e.PayCardTimes[n[s]]) : e.PayCardTimes[n[s]] : o.PayCardTimes[n[s]] = t.longs === String ? i.Long.prototype.toString.call(e.PayCardTimes[n[s]]) : t.longs === Number ? new i.LongBits(e.PayCardTimes[n[s]].low >>> 0, e.PayCardTimes[n[s]].high >>> 0).toNumber() : e.PayCardTimes[n[s]];
                if (e.ChooseBufferIds && e.ChooseBufferIds.length)
                    for (o.ChooseBufferIds = [], s = 0; s < e.ChooseBufferIds.length; ++s) "number" == typeof e.ChooseBufferIds[s] ? o.ChooseBufferIds[s] = t.longs === String ? String(e.ChooseBufferIds[s]) : e.ChooseBufferIds[s] : o.ChooseBufferIds[s] = t.longs === String ? i.Long.prototype.toString.call(e.ChooseBufferIds[s]) : t.longs === Number ? new i.LongBits(e.ChooseBufferIds[s].low >>> 0, e.ChooseBufferIds[s].high >>> 0).toNumber() : e.ChooseBufferIds[s];
                if (e.Attrs && (n = Object.keys(e.Attrs)).length)
                    for (o.Attrs = {}, s = 0; s < n.length; ++s) "number" == typeof e.Attrs[n[s]] ? o.Attrs[n[s]] = t.longs === String ? String(e.Attrs[n[s]]) : e.Attrs[n[s]] : o.Attrs[n[s]] = t.longs === String ? i.Long.prototype.toString.call(e.Attrs[n[s]]) : t.longs === Number ? new i.LongBits(e.Attrs[n[s]].low >>> 0, e.Attrs[n[s]].high >>> 0).toNumber() : e.Attrs[n[s]];
                return null != e.MonsterId && e.hasOwnProperty("MonsterId") && ("number" == typeof e.MonsterId ? o.MonsterId = t.longs === String ? String(e.MonsterId) : e.MonsterId : o.MonsterId = t.longs === String ? i.Long.prototype.toString.call(e.MonsterId) : t.longs === Number ? new i.LongBits(e.MonsterId.low >>> 0, e.MonsterId.high >>> 0).toNumber() : e.MonsterId), o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelCardGameInfo"
            }, e
        }(), a.AngelCardGlobalInfo = function() {
            function e(e) {
                if (this.UnlockAngelCards = [], this.CardsDifficulty = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.UnlockAngelCards = i.emptyArray, e.prototype.CardsDifficulty = i.emptyObject, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.UnlockAngelCards && e.UnlockAngelCards.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.UnlockAngelCards.length; ++n) t.int64(e.UnlockAngelCards[n]);
                    t.ldelim()
                }
                if (null != e.CardsDifficulty && Object.hasOwnProperty.call(e, "CardsDifficulty")) {
                    var o = Object.keys(e.CardsDifficulty);
                    for (n = 0; n < o.length; ++n) t.uint32(26).fork().uint32(8).int64(o[n]).uint32(16).int64(e.CardsDifficulty[o[n]]).ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.AngelCardGlobalInfo; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 2:
                            if (l.UnlockAngelCards && l.UnlockAngelCards.length || (l.UnlockAngelCards = []), 2 == (7 & c))
                                for (var u = e.uint32() + e.pos; e.pos < u;) l.UnlockAngelCards.push(e.int64());
                            else l.UnlockAngelCards.push(e.int64());
                            break;
                        case 3:
                            for (l.CardsDifficulty === i.emptyObject && (l.CardsDifficulty = {}), u = e.uint32() + e.pos, n = 0, r = 0; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = e.int64();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.CardsDifficulty["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.UnlockAngelCards && e.hasOwnProperty("UnlockAngelCards")) {
                    if (!Array.isArray(e.UnlockAngelCards)) return "UnlockAngelCards: array expected";
                    for (var t = 0; t < e.UnlockAngelCards.length; ++t)
                        if (!(i.isInteger(e.UnlockAngelCards[t]) || e.UnlockAngelCards[t] && i.isInteger(e.UnlockAngelCards[t].low) && i.isInteger(e.UnlockAngelCards[t].high))) return "UnlockAngelCards: integer|Long[] expected"
                }
                if (null != e.CardsDifficulty && e.hasOwnProperty("CardsDifficulty")) {
                    if (!i.isObject(e.CardsDifficulty)) return "CardsDifficulty: object expected";
                    var n = Object.keys(e.CardsDifficulty);
                    for (t = 0; t < n.length; ++t) {
                        if (!i.key64Re.test(n[t])) return "CardsDifficulty: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.CardsDifficulty[n[t]]) || e.CardsDifficulty[n[t]] && i.isInteger(e.CardsDifficulty[n[t]].low) && i.isInteger(e.CardsDifficulty[n[t]].high))) return "CardsDifficulty: integer|Long{k:int64} expected"
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelCardGlobalInfo) return e;
                var t = new a.AngelCardGlobalInfo;
                if (e.UnlockAngelCards) {
                    if (!Array.isArray(e.UnlockAngelCards)) throw TypeError(".AngelCardGlobalInfo.UnlockAngelCards: array expected");
                    t.UnlockAngelCards = [];
                    for (var n = 0; n < e.UnlockAngelCards.length; ++n) i.Long ? (t.UnlockAngelCards[n] = i.Long.fromValue(e.UnlockAngelCards[n])).unsigned = !1 : "string" == typeof e.UnlockAngelCards[n] ? t.UnlockAngelCards[n] = parseInt(e.UnlockAngelCards[n], 10) : "number" == typeof e.UnlockAngelCards[n] ? t.UnlockAngelCards[n] = e.UnlockAngelCards[n] : "object" == typeof e.UnlockAngelCards[n] && (t.UnlockAngelCards[n] = new i.LongBits(e.UnlockAngelCards[n].low >>> 0, e.UnlockAngelCards[n].high >>> 0).toNumber())
                }
                if (e.CardsDifficulty) {
                    if ("object" != typeof e.CardsDifficulty) throw TypeError(".AngelCardGlobalInfo.CardsDifficulty: object expected");
                    t.CardsDifficulty = {};
                    var o = Object.keys(e.CardsDifficulty);
                    for (n = 0; n < o.length; ++n) i.Long ? (t.CardsDifficulty[o[n]] = i.Long.fromValue(e.CardsDifficulty[o[n]])).unsigned = !1 : "string" == typeof e.CardsDifficulty[o[n]] ? t.CardsDifficulty[o[n]] = parseInt(e.CardsDifficulty[o[n]], 10) : "number" == typeof e.CardsDifficulty[o[n]] ? t.CardsDifficulty[o[n]] = e.CardsDifficulty[o[n]] : "object" == typeof e.CardsDifficulty[o[n]] && (t.CardsDifficulty[o[n]] = new i.LongBits(e.CardsDifficulty[o[n]].low >>> 0, e.CardsDifficulty[o[n]].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.UnlockAngelCards = []), (t.objects || t.defaults) && (o.CardsDifficulty = {}), e.UnlockAngelCards && e.UnlockAngelCards.length) {
                    o.UnlockAngelCards = [];
                    for (var r = 0; r < e.UnlockAngelCards.length; ++r) "number" == typeof e.UnlockAngelCards[r] ? o.UnlockAngelCards[r] = t.longs === String ? String(e.UnlockAngelCards[r]) : e.UnlockAngelCards[r] : o.UnlockAngelCards[r] = t.longs === String ? i.Long.prototype.toString.call(e.UnlockAngelCards[r]) : t.longs === Number ? new i.LongBits(e.UnlockAngelCards[r].low >>> 0, e.UnlockAngelCards[r].high >>> 0).toNumber() : e.UnlockAngelCards[r]
                }
                if (e.CardsDifficulty && (n = Object.keys(e.CardsDifficulty)).length)
                    for (o.CardsDifficulty = {}, r = 0; r < n.length; ++r) "number" == typeof e.CardsDifficulty[n[r]] ? o.CardsDifficulty[n[r]] = t.longs === String ? String(e.CardsDifficulty[n[r]]) : e.CardsDifficulty[n[r]] : o.CardsDifficulty[n[r]] = t.longs === String ? i.Long.prototype.toString.call(e.CardsDifficulty[n[r]]) : t.longs === Number ? new i.LongBits(e.CardsDifficulty[n[r]].low >>> 0, e.CardsDifficulty[n[r]].high >>> 0).toNumber() : e.CardsDifficulty[n[r]];
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelCardGlobalInfo"
            }, e
        }(), a.AngelCardPlayerInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GameInfo = null, e.prototype.GlobalInfo = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.GameInfo && Object.hasOwnProperty.call(e, "GameInfo") && a.AngelCardGameInfo.encode(e.GameInfo, t.uint32(18).fork()).ldelim(), null != e.GlobalInfo && Object.hasOwnProperty.call(e, "GlobalInfo") && a.AngelCardGlobalInfo.encode(e.GlobalInfo, t.uint32(26).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AngelCardPlayerInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.GameInfo = a.AngelCardGameInfo.decode(e, e.uint32());
                            break;
                        case 3:
                            r.GlobalInfo = a.AngelCardGlobalInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null != e.GameInfo && e.hasOwnProperty("GameInfo") && (t = a.AngelCardGameInfo.verify(e.GameInfo)) ? "GameInfo." + t : null != e.GlobalInfo && e.hasOwnProperty("GlobalInfo") && (t = a.AngelCardGlobalInfo.verify(e.GlobalInfo)) ? "GlobalInfo." + t : null;
                var t
            }, e.fromObject = function(e) {
                if (e instanceof a.AngelCardPlayerInfo) return e;
                var t = new a.AngelCardPlayerInfo;
                if (null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.GameInfo) {
                    if ("object" != typeof e.GameInfo) throw TypeError(".AngelCardPlayerInfo.GameInfo: object expected");
                    t.GameInfo = a.AngelCardGameInfo.fromObject(e.GameInfo)
                }
                if (null != e.GlobalInfo) {
                    if ("object" != typeof e.GlobalInfo) throw TypeError(".AngelCardPlayerInfo.GlobalInfo: object expected");
                    t.GlobalInfo = a.AngelCardGlobalInfo.fromObject(e.GlobalInfo)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    n.GameInfo = null, n.GlobalInfo = null
                }
                return null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.GameInfo && e.hasOwnProperty("GameInfo") && (n.GameInfo = a.AngelCardGameInfo.toObject(e.GameInfo, t)), null != e.GlobalInfo && e.hasOwnProperty("GlobalInfo") && (n.GlobalInfo = a.AngelCardGlobalInfo.toObject(e.GlobalInfo, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AngelCardPlayerInfo"
            }, e
        }(), a.AssaultOperationMoveRoute = function() {
            function e(e) {
                if (this.AccelerationTime = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.StartResourcePoint = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EndResourcePoint = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AccelerationTime = i.emptyArray, e.prototype.MoveEndTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.StartTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadFrame = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AllianceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PlayerInfo = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.StartResourcePoint && Object.hasOwnProperty.call(e, "StartResourcePoint") && t.uint32(8).int64(e.StartResourcePoint), null != e.EndResourcePoint && Object.hasOwnProperty.call(e, "EndResourcePoint") && t.uint32(16).int64(e.EndResourcePoint), null != e.AccelerationTime && e.AccelerationTime.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.AccelerationTime.length; ++n) t.int64(e.AccelerationTime[n]);
                    t.ldelim()
                }
                return null != e.MoveEndTime && Object.hasOwnProperty.call(e, "MoveEndTime") && t.uint32(32).int64(e.MoveEndTime), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(40).int64(e.Uid), null != e.StartTime && Object.hasOwnProperty.call(e, "StartTime") && t.uint32(48).int64(e.StartTime), null != e.HeadFrame && Object.hasOwnProperty.call(e, "HeadFrame") && t.uint32(56).int64(e.HeadFrame), null != e.HeadIcon && Object.hasOwnProperty.call(e, "HeadIcon") && t.uint32(64).int64(e.HeadIcon), null != e.AllianceId && Object.hasOwnProperty.call(e, "AllianceId") && t.uint32(72).int64(e.AllianceId), null != e.PlayerInfo && Object.hasOwnProperty.call(e, "PlayerInfo") && a.PlayerSimpleInfo.encode(e.PlayerInfo, t.uint32(82).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AssaultOperationMoveRoute; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.StartResourcePoint = e.int64();
                            break;
                        case 2:
                            r.EndResourcePoint = e.int64();
                            break;
                        case 3:
                            if (r.AccelerationTime && r.AccelerationTime.length || (r.AccelerationTime = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.AccelerationTime.push(e.int64());
                            else r.AccelerationTime.push(e.int64());
                            break;
                        case 4:
                            r.MoveEndTime = e.int64();
                            break;
                        case 5:
                            r.Uid = e.int64();
                            break;
                        case 6:
                            r.StartTime = e.int64();
                            break;
                        case 7:
                            r.HeadFrame = e.int64();
                            break;
                        case 8:
                            r.HeadIcon = e.int64();
                            break;
                        case 9:
                            r.AllianceId = e.int64();
                            break;
                        case 10:
                            r.PlayerInfo = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.StartResourcePoint && e.hasOwnProperty("StartResourcePoint") && !(i.isInteger(e.StartResourcePoint) || e.StartResourcePoint && i.isInteger(e.StartResourcePoint.low) && i.isInteger(e.StartResourcePoint.high))) return "StartResourcePoint: integer|Long expected";
                if (null != e.EndResourcePoint && e.hasOwnProperty("EndResourcePoint") && !(i.isInteger(e.EndResourcePoint) || e.EndResourcePoint && i.isInteger(e.EndResourcePoint.low) && i.isInteger(e.EndResourcePoint.high))) return "EndResourcePoint: integer|Long expected";
                if (null != e.AccelerationTime && e.hasOwnProperty("AccelerationTime")) {
                    if (!Array.isArray(e.AccelerationTime)) return "AccelerationTime: array expected";
                    for (var t = 0; t < e.AccelerationTime.length; ++t)
                        if (!(i.isInteger(e.AccelerationTime[t]) || e.AccelerationTime[t] && i.isInteger(e.AccelerationTime[t].low) && i.isInteger(e.AccelerationTime[t].high))) return "AccelerationTime: integer|Long[] expected"
                }
                if (null != e.MoveEndTime && e.hasOwnProperty("MoveEndTime") && !(i.isInteger(e.MoveEndTime) || e.MoveEndTime && i.isInteger(e.MoveEndTime.low) && i.isInteger(e.MoveEndTime.high))) return "MoveEndTime: integer|Long expected";
                if (null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high))) return "Uid: integer|Long expected";
                if (null != e.StartTime && e.hasOwnProperty("StartTime") && !(i.isInteger(e.StartTime) || e.StartTime && i.isInteger(e.StartTime.low) && i.isInteger(e.StartTime.high))) return "StartTime: integer|Long expected";
                if (null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && !(i.isInteger(e.HeadFrame) || e.HeadFrame && i.isInteger(e.HeadFrame.low) && i.isInteger(e.HeadFrame.high))) return "HeadFrame: integer|Long expected";
                if (null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && !(i.isInteger(e.HeadIcon) || e.HeadIcon && i.isInteger(e.HeadIcon.low) && i.isInteger(e.HeadIcon.high))) return "HeadIcon: integer|Long expected";
                if (null != e.AllianceId && e.hasOwnProperty("AllianceId") && !(i.isInteger(e.AllianceId) || e.AllianceId && i.isInteger(e.AllianceId.low) && i.isInteger(e.AllianceId.high))) return "AllianceId: integer|Long expected";
                if (null != e.PlayerInfo && e.hasOwnProperty("PlayerInfo")) {
                    var n = a.PlayerSimpleInfo.verify(e.PlayerInfo);
                    if (n) return "PlayerInfo." + n
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.AssaultOperationMoveRoute) return e;
                var t = new a.AssaultOperationMoveRoute;
                if (null != e.StartResourcePoint && (i.Long ? (t.StartResourcePoint = i.Long.fromValue(e.StartResourcePoint)).unsigned = !1 : "string" == typeof e.StartResourcePoint ? t.StartResourcePoint = parseInt(e.StartResourcePoint, 10) : "number" == typeof e.StartResourcePoint ? t.StartResourcePoint = e.StartResourcePoint : "object" == typeof e.StartResourcePoint && (t.StartResourcePoint = new i.LongBits(e.StartResourcePoint.low >>> 0, e.StartResourcePoint.high >>> 0).toNumber())), null != e.EndResourcePoint && (i.Long ? (t.EndResourcePoint = i.Long.fromValue(e.EndResourcePoint)).unsigned = !1 : "string" == typeof e.EndResourcePoint ? t.EndResourcePoint = parseInt(e.EndResourcePoint, 10) : "number" == typeof e.EndResourcePoint ? t.EndResourcePoint = e.EndResourcePoint : "object" == typeof e.EndResourcePoint && (t.EndResourcePoint = new i.LongBits(e.EndResourcePoint.low >>> 0, e.EndResourcePoint.high >>> 0).toNumber())), e.AccelerationTime) {
                    if (!Array.isArray(e.AccelerationTime)) throw TypeError(".AssaultOperationMoveRoute.AccelerationTime: array expected");
                    t.AccelerationTime = [];
                    for (var n = 0; n < e.AccelerationTime.length; ++n) i.Long ? (t.AccelerationTime[n] = i.Long.fromValue(e.AccelerationTime[n])).unsigned = !1 : "string" == typeof e.AccelerationTime[n] ? t.AccelerationTime[n] = parseInt(e.AccelerationTime[n], 10) : "number" == typeof e.AccelerationTime[n] ? t.AccelerationTime[n] = e.AccelerationTime[n] : "object" == typeof e.AccelerationTime[n] && (t.AccelerationTime[n] = new i.LongBits(e.AccelerationTime[n].low >>> 0, e.AccelerationTime[n].high >>> 0).toNumber())
                }
                if (null != e.MoveEndTime && (i.Long ? (t.MoveEndTime = i.Long.fromValue(e.MoveEndTime)).unsigned = !1 : "string" == typeof e.MoveEndTime ? t.MoveEndTime = parseInt(e.MoveEndTime, 10) : "number" == typeof e.MoveEndTime ? t.MoveEndTime = e.MoveEndTime : "object" == typeof e.MoveEndTime && (t.MoveEndTime = new i.LongBits(e.MoveEndTime.low >>> 0, e.MoveEndTime.high >>> 0).toNumber())), null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.StartTime && (i.Long ? (t.StartTime = i.Long.fromValue(e.StartTime)).unsigned = !1 : "string" == typeof e.StartTime ? t.StartTime = parseInt(e.StartTime, 10) : "number" == typeof e.StartTime ? t.StartTime = e.StartTime : "object" == typeof e.StartTime && (t.StartTime = new i.LongBits(e.StartTime.low >>> 0, e.StartTime.high >>> 0).toNumber())), null != e.HeadFrame && (i.Long ? (t.HeadFrame = i.Long.fromValue(e.HeadFrame)).unsigned = !1 : "string" == typeof e.HeadFrame ? t.HeadFrame = parseInt(e.HeadFrame, 10) : "number" == typeof e.HeadFrame ? t.HeadFrame = e.HeadFrame : "object" == typeof e.HeadFrame && (t.HeadFrame = new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber())), null != e.HeadIcon && (i.Long ? (t.HeadIcon = i.Long.fromValue(e.HeadIcon)).unsigned = !1 : "string" == typeof e.HeadIcon ? t.HeadIcon = parseInt(e.HeadIcon, 10) : "number" == typeof e.HeadIcon ? t.HeadIcon = e.HeadIcon : "object" == typeof e.HeadIcon && (t.HeadIcon = new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber())), null != e.AllianceId && (i.Long ? (t.AllianceId = i.Long.fromValue(e.AllianceId)).unsigned = !1 : "string" == typeof e.AllianceId ? t.AllianceId = parseInt(e.AllianceId, 10) : "number" == typeof e.AllianceId ? t.AllianceId = e.AllianceId : "object" == typeof e.AllianceId && (t.AllianceId = new i.LongBits(e.AllianceId.low >>> 0, e.AllianceId.high >>> 0).toNumber())), null != e.PlayerInfo) {
                    if ("object" != typeof e.PlayerInfo) throw TypeError(".AssaultOperationMoveRoute.PlayerInfo: object expected");
                    t.PlayerInfo = a.PlayerSimpleInfo.fromObject(e.PlayerInfo)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.AccelerationTime = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.StartResourcePoint = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.StartResourcePoint = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.EndResourcePoint = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EndResourcePoint = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MoveEndTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MoveEndTime = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Uid = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.StartTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StartTime = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadFrame = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadFrame = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadIcon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AllianceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AllianceId = t.longs === String ? "0" : 0, n.PlayerInfo = null
                }
                if (null != e.StartResourcePoint && e.hasOwnProperty("StartResourcePoint") && ("number" == typeof e.StartResourcePoint ? n.StartResourcePoint = t.longs === String ? String(e.StartResourcePoint) : e.StartResourcePoint : n.StartResourcePoint = t.longs === String ? i.Long.prototype.toString.call(e.StartResourcePoint) : t.longs === Number ? new i.LongBits(e.StartResourcePoint.low >>> 0, e.StartResourcePoint.high >>> 0).toNumber() : e.StartResourcePoint), null != e.EndResourcePoint && e.hasOwnProperty("EndResourcePoint") && ("number" == typeof e.EndResourcePoint ? n.EndResourcePoint = t.longs === String ? String(e.EndResourcePoint) : e.EndResourcePoint : n.EndResourcePoint = t.longs === String ? i.Long.prototype.toString.call(e.EndResourcePoint) : t.longs === Number ? new i.LongBits(e.EndResourcePoint.low >>> 0, e.EndResourcePoint.high >>> 0).toNumber() : e.EndResourcePoint), e.AccelerationTime && e.AccelerationTime.length) {
                    n.AccelerationTime = [];
                    for (var r = 0; r < e.AccelerationTime.length; ++r) "number" == typeof e.AccelerationTime[r] ? n.AccelerationTime[r] = t.longs === String ? String(e.AccelerationTime[r]) : e.AccelerationTime[r] : n.AccelerationTime[r] = t.longs === String ? i.Long.prototype.toString.call(e.AccelerationTime[r]) : t.longs === Number ? new i.LongBits(e.AccelerationTime[r].low >>> 0, e.AccelerationTime[r].high >>> 0).toNumber() : e.AccelerationTime[r]
                }
                return null != e.MoveEndTime && e.hasOwnProperty("MoveEndTime") && ("number" == typeof e.MoveEndTime ? n.MoveEndTime = t.longs === String ? String(e.MoveEndTime) : e.MoveEndTime : n.MoveEndTime = t.longs === String ? i.Long.prototype.toString.call(e.MoveEndTime) : t.longs === Number ? new i.LongBits(e.MoveEndTime.low >>> 0, e.MoveEndTime.high >>> 0).toNumber() : e.MoveEndTime), null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.StartTime && e.hasOwnProperty("StartTime") && ("number" == typeof e.StartTime ? n.StartTime = t.longs === String ? String(e.StartTime) : e.StartTime : n.StartTime = t.longs === String ? i.Long.prototype.toString.call(e.StartTime) : t.longs === Number ? new i.LongBits(e.StartTime.low >>> 0, e.StartTime.high >>> 0).toNumber() : e.StartTime), null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && ("number" == typeof e.HeadFrame ? n.HeadFrame = t.longs === String ? String(e.HeadFrame) : e.HeadFrame : n.HeadFrame = t.longs === String ? i.Long.prototype.toString.call(e.HeadFrame) : t.longs === Number ? new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber() : e.HeadFrame), null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && ("number" == typeof e.HeadIcon ? n.HeadIcon = t.longs === String ? String(e.HeadIcon) : e.HeadIcon : n.HeadIcon = t.longs === String ? i.Long.prototype.toString.call(e.HeadIcon) : t.longs === Number ? new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber() : e.HeadIcon), null != e.AllianceId && e.hasOwnProperty("AllianceId") && ("number" == typeof e.AllianceId ? n.AllianceId = t.longs === String ? String(e.AllianceId) : e.AllianceId : n.AllianceId = t.longs === String ? i.Long.prototype.toString.call(e.AllianceId) : t.longs === Number ? new i.LongBits(e.AllianceId.low >>> 0, e.AllianceId.high >>> 0).toNumber() : e.AllianceId), null != e.PlayerInfo && e.hasOwnProperty("PlayerInfo") && (n.PlayerInfo = a.PlayerSimpleInfo.toObject(e.PlayerInfo, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AssaultOperationMoveRoute"
            }, e
        }(), a.AssaultOperationEnergyValueChange = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EnergyValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EnergyValueLimit = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HomeId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadFrame = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.EnergyValue && Object.hasOwnProperty.call(e, "EnergyValue") && t.uint32(16).int64(e.EnergyValue), null != e.EnergyValueLimit && Object.hasOwnProperty.call(e, "EnergyValueLimit") && t.uint32(24).int64(e.EnergyValueLimit), null != e.HomeId && Object.hasOwnProperty.call(e, "HomeId") && t.uint32(32).int64(e.HomeId), null != e.HeadIcon && Object.hasOwnProperty.call(e, "HeadIcon") && t.uint32(40).int64(e.HeadIcon), null != e.HeadFrame && Object.hasOwnProperty.call(e, "HeadFrame") && t.uint32(48).int64(e.HeadFrame), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AssaultOperationEnergyValueChange; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.EnergyValue = e.int64();
                            break;
                        case 3:
                            r.EnergyValueLimit = e.int64();
                            break;
                        case 4:
                            r.HomeId = e.int64();
                            break;
                        case 5:
                            r.HeadIcon = e.int64();
                            break;
                        case 6:
                            r.HeadFrame = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null != e.EnergyValue && e.hasOwnProperty("EnergyValue") && !(i.isInteger(e.EnergyValue) || e.EnergyValue && i.isInteger(e.EnergyValue.low) && i.isInteger(e.EnergyValue.high)) ? "EnergyValue: integer|Long expected" : null != e.EnergyValueLimit && e.hasOwnProperty("EnergyValueLimit") && !(i.isInteger(e.EnergyValueLimit) || e.EnergyValueLimit && i.isInteger(e.EnergyValueLimit.low) && i.isInteger(e.EnergyValueLimit.high)) ? "EnergyValueLimit: integer|Long expected" : null != e.HomeId && e.hasOwnProperty("HomeId") && !(i.isInteger(e.HomeId) || e.HomeId && i.isInteger(e.HomeId.low) && i.isInteger(e.HomeId.high)) ? "HomeId: integer|Long expected" : null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && !(i.isInteger(e.HeadIcon) || e.HeadIcon && i.isInteger(e.HeadIcon.low) && i.isInteger(e.HeadIcon.high)) ? "HeadIcon: integer|Long expected" : null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && !(i.isInteger(e.HeadFrame) || e.HeadFrame && i.isInteger(e.HeadFrame.low) && i.isInteger(e.HeadFrame.high)) ? "HeadFrame: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AssaultOperationEnergyValueChange) return e;
                var t = new a.AssaultOperationEnergyValueChange;
                return null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.EnergyValue && (i.Long ? (t.EnergyValue = i.Long.fromValue(e.EnergyValue)).unsigned = !1 : "string" == typeof e.EnergyValue ? t.EnergyValue = parseInt(e.EnergyValue, 10) : "number" == typeof e.EnergyValue ? t.EnergyValue = e.EnergyValue : "object" == typeof e.EnergyValue && (t.EnergyValue = new i.LongBits(e.EnergyValue.low >>> 0, e.EnergyValue.high >>> 0).toNumber())), null != e.EnergyValueLimit && (i.Long ? (t.EnergyValueLimit = i.Long.fromValue(e.EnergyValueLimit)).unsigned = !1 : "string" == typeof e.EnergyValueLimit ? t.EnergyValueLimit = parseInt(e.EnergyValueLimit, 10) : "number" == typeof e.EnergyValueLimit ? t.EnergyValueLimit = e.EnergyValueLimit : "object" == typeof e.EnergyValueLimit && (t.EnergyValueLimit = new i.LongBits(e.EnergyValueLimit.low >>> 0, e.EnergyValueLimit.high >>> 0).toNumber())), null != e.HomeId && (i.Long ? (t.HomeId = i.Long.fromValue(e.HomeId)).unsigned = !1 : "string" == typeof e.HomeId ? t.HomeId = parseInt(e.HomeId, 10) : "number" == typeof e.HomeId ? t.HomeId = e.HomeId : "object" == typeof e.HomeId && (t.HomeId = new i.LongBits(e.HomeId.low >>> 0, e.HomeId.high >>> 0).toNumber())), null != e.HeadIcon && (i.Long ? (t.HeadIcon = i.Long.fromValue(e.HeadIcon)).unsigned = !1 : "string" == typeof e.HeadIcon ? t.HeadIcon = parseInt(e.HeadIcon, 10) : "number" == typeof e.HeadIcon ? t.HeadIcon = e.HeadIcon : "object" == typeof e.HeadIcon && (t.HeadIcon = new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber())), null != e.HeadFrame && (i.Long ? (t.HeadFrame = i.Long.fromValue(e.HeadFrame)).unsigned = !1 : "string" == typeof e.HeadFrame ? t.HeadFrame = parseInt(e.HeadFrame, 10) : "number" == typeof e.HeadFrame ? t.HeadFrame = e.HeadFrame : "object" == typeof e.HeadFrame && (t.HeadFrame = new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.EnergyValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EnergyValue = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.EnergyValueLimit = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EnergyValueLimit = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HomeId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HomeId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadIcon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadFrame = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadFrame = t.longs === String ? "0" : 0
                }
                return null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.EnergyValue && e.hasOwnProperty("EnergyValue") && ("number" == typeof e.EnergyValue ? n.EnergyValue = t.longs === String ? String(e.EnergyValue) : e.EnergyValue : n.EnergyValue = t.longs === String ? i.Long.prototype.toString.call(e.EnergyValue) : t.longs === Number ? new i.LongBits(e.EnergyValue.low >>> 0, e.EnergyValue.high >>> 0).toNumber() : e.EnergyValue), null != e.EnergyValueLimit && e.hasOwnProperty("EnergyValueLimit") && ("number" == typeof e.EnergyValueLimit ? n.EnergyValueLimit = t.longs === String ? String(e.EnergyValueLimit) : e.EnergyValueLimit : n.EnergyValueLimit = t.longs === String ? i.Long.prototype.toString.call(e.EnergyValueLimit) : t.longs === Number ? new i.LongBits(e.EnergyValueLimit.low >>> 0, e.EnergyValueLimit.high >>> 0).toNumber() : e.EnergyValueLimit), null != e.HomeId && e.hasOwnProperty("HomeId") && ("number" == typeof e.HomeId ? n.HomeId = t.longs === String ? String(e.HomeId) : e.HomeId : n.HomeId = t.longs === String ? i.Long.prototype.toString.call(e.HomeId) : t.longs === Number ? new i.LongBits(e.HomeId.low >>> 0, e.HomeId.high >>> 0).toNumber() : e.HomeId), null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && ("number" == typeof e.HeadIcon ? n.HeadIcon = t.longs === String ? String(e.HeadIcon) : e.HeadIcon : n.HeadIcon = t.longs === String ? i.Long.prototype.toString.call(e.HeadIcon) : t.longs === Number ? new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber() : e.HeadIcon), null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && ("number" == typeof e.HeadFrame ? n.HeadFrame = t.longs === String ? String(e.HeadFrame) : e.HeadFrame : n.HeadFrame = t.longs === String ? i.Long.prototype.toString.call(e.HeadFrame) : t.longs === Number ? new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber() : e.HeadFrame), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AssaultOperationEnergyValueChange"
            }, e
        }(), a.AssaultOperationResourcePoint = function() {
            function e(e) {
                if (this.Receivers = {}, this.Attackers = [], this.Defenders = [], this.Monsters = {}, this.BattleQueue = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OccupyAllianceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OccupyStartTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Receivers = i.emptyObject, e.prototype.Attackers = i.emptyArray, e.prototype.Defenders = i.emptyArray, e.prototype.Monsters = i.emptyObject, e.prototype.BattleQueue = i.emptyArray, e.prototype.IsAddMonsterCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.OccupyAllianceId && Object.hasOwnProperty.call(e, "OccupyAllianceId") && t.uint32(16).int64(e.OccupyAllianceId), null != e.OccupyStartTime && Object.hasOwnProperty.call(e, "OccupyStartTime") && t.uint32(24).int64(e.OccupyStartTime), null != e.Receivers && Object.hasOwnProperty.call(e, "Receivers"))
                    for (var n = Object.keys(e.Receivers), o = 0; o < n.length; ++o) t.uint32(34).fork().uint32(8).int64(n[o]).uint32(16).int64(e.Receivers[n[o]]).ldelim();
                if (null != e.Attackers && e.Attackers.length) {
                    for (t.uint32(42).fork(), o = 0; o < e.Attackers.length; ++o) t.int64(e.Attackers[o]);
                    t.ldelim()
                }
                if (null != e.Defenders && e.Defenders.length) {
                    for (t.uint32(50).fork(), o = 0; o < e.Defenders.length; ++o) t.int64(e.Defenders[o]);
                    t.ldelim()
                }
                if (null != e.Monsters && Object.hasOwnProperty.call(e, "Monsters"))
                    for (n = Object.keys(e.Monsters), o = 0; o < n.length; ++o) t.uint32(58).fork().uint32(8).int64(n[o]).uint32(16).int64(e.Monsters[n[o]]).ldelim();
                if (null != e.BattleQueue && e.BattleQueue.length)
                    for (o = 0; o < e.BattleQueue.length; ++o) a.IntArray.encode(e.BattleQueue[o], t.uint32(66).fork()).ldelim();
                return null != e.IsAddMonsterCount && Object.hasOwnProperty.call(e, "IsAddMonsterCount") && t.uint32(80).int64(e.IsAddMonsterCount), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.AssaultOperationResourcePoint; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Id = e.int64();
                            break;
                        case 2:
                            l.OccupyAllianceId = e.int64();
                            break;
                        case 3:
                            l.OccupyStartTime = e.int64();
                            break;
                        case 4:
                            l.Receivers === i.emptyObject && (l.Receivers = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = 0; e.pos < u;) switch ((p = e.uint32()) >>> 3) {
                                case 1:
                                    n = e.int64();
                                    break;
                                case 2:
                                    r = e.int64();
                                    break;
                                default:
                                    e.skipType(7 & p)
                            }
                            l.Receivers["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 5:
                            if (l.Attackers && l.Attackers.length || (l.Attackers = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.Attackers.push(e.int64());
                            else l.Attackers.push(e.int64());
                            break;
                        case 6:
                            if (l.Defenders && l.Defenders.length || (l.Defenders = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.Defenders.push(e.int64());
                            else l.Defenders.push(e.int64());
                            break;
                        case 7:
                            for (l.Monsters === i.emptyObject && (l.Monsters = {}), u = e.uint32() + e.pos, n = 0, r = 0; e.pos < u;) {
                                var p;
                                switch ((p = e.uint32()) >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = e.int64();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.Monsters["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 8:
                            l.BattleQueue && l.BattleQueue.length || (l.BattleQueue = []), l.BattleQueue.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 10:
                            l.IsAddMonsterCount = e.int64();
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.OccupyAllianceId && e.hasOwnProperty("OccupyAllianceId") && !(i.isInteger(e.OccupyAllianceId) || e.OccupyAllianceId && i.isInteger(e.OccupyAllianceId.low) && i.isInteger(e.OccupyAllianceId.high))) return "OccupyAllianceId: integer|Long expected";
                if (null != e.OccupyStartTime && e.hasOwnProperty("OccupyStartTime") && !(i.isInteger(e.OccupyStartTime) || e.OccupyStartTime && i.isInteger(e.OccupyStartTime.low) && i.isInteger(e.OccupyStartTime.high))) return "OccupyStartTime: integer|Long expected";
                if (null != e.Receivers && e.hasOwnProperty("Receivers")) {
                    if (!i.isObject(e.Receivers)) return "Receivers: object expected";
                    for (var t = Object.keys(e.Receivers), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "Receivers: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.Receivers[t[n]]) || e.Receivers[t[n]] && i.isInteger(e.Receivers[t[n]].low) && i.isInteger(e.Receivers[t[n]].high))) return "Receivers: integer|Long{k:int64} expected"
                    }
                }
                if (null != e.Attackers && e.hasOwnProperty("Attackers")) {
                    if (!Array.isArray(e.Attackers)) return "Attackers: array expected";
                    for (n = 0; n < e.Attackers.length; ++n)
                        if (!(i.isInteger(e.Attackers[n]) || e.Attackers[n] && i.isInteger(e.Attackers[n].low) && i.isInteger(e.Attackers[n].high))) return "Attackers: integer|Long[] expected"
                }
                if (null != e.Defenders && e.hasOwnProperty("Defenders")) {
                    if (!Array.isArray(e.Defenders)) return "Defenders: array expected";
                    for (n = 0; n < e.Defenders.length; ++n)
                        if (!(i.isInteger(e.Defenders[n]) || e.Defenders[n] && i.isInteger(e.Defenders[n].low) && i.isInteger(e.Defenders[n].high))) return "Defenders: integer|Long[] expected"
                }
                if (null != e.Monsters && e.hasOwnProperty("Monsters")) {
                    if (!i.isObject(e.Monsters)) return "Monsters: object expected";
                    for (t = Object.keys(e.Monsters), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "Monsters: integer|Long key{k:int64} expected";
                        if (!(i.isInteger(e.Monsters[t[n]]) || e.Monsters[t[n]] && i.isInteger(e.Monsters[t[n]].low) && i.isInteger(e.Monsters[t[n]].high))) return "Monsters: integer|Long{k:int64} expected"
                    }
                }
                if (null != e.BattleQueue && e.hasOwnProperty("BattleQueue")) {
                    if (!Array.isArray(e.BattleQueue)) return "BattleQueue: array expected";
                    for (n = 0; n < e.BattleQueue.length; ++n) {
                        var o = a.IntArray.verify(e.BattleQueue[n]);
                        if (o) return "BattleQueue." + o
                    }
                }
                return null != e.IsAddMonsterCount && e.hasOwnProperty("IsAddMonsterCount") && !(i.isInteger(e.IsAddMonsterCount) || e.IsAddMonsterCount && i.isInteger(e.IsAddMonsterCount.low) && i.isInteger(e.IsAddMonsterCount.high)) ? "IsAddMonsterCount: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AssaultOperationResourcePoint) return e;
                var t = new a.AssaultOperationResourcePoint;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.OccupyAllianceId && (i.Long ? (t.OccupyAllianceId = i.Long.fromValue(e.OccupyAllianceId)).unsigned = !1 : "string" == typeof e.OccupyAllianceId ? t.OccupyAllianceId = parseInt(e.OccupyAllianceId, 10) : "number" == typeof e.OccupyAllianceId ? t.OccupyAllianceId = e.OccupyAllianceId : "object" == typeof e.OccupyAllianceId && (t.OccupyAllianceId = new i.LongBits(e.OccupyAllianceId.low >>> 0, e.OccupyAllianceId.high >>> 0).toNumber())), null != e.OccupyStartTime && (i.Long ? (t.OccupyStartTime = i.Long.fromValue(e.OccupyStartTime)).unsigned = !1 : "string" == typeof e.OccupyStartTime ? t.OccupyStartTime = parseInt(e.OccupyStartTime, 10) : "number" == typeof e.OccupyStartTime ? t.OccupyStartTime = e.OccupyStartTime : "object" == typeof e.OccupyStartTime && (t.OccupyStartTime = new i.LongBits(e.OccupyStartTime.low >>> 0, e.OccupyStartTime.high >>> 0).toNumber())), e.Receivers) {
                    if ("object" != typeof e.Receivers) throw TypeError(".AssaultOperationResourcePoint.Receivers: object expected");
                    t.Receivers = {};
                    for (var n = Object.keys(e.Receivers), o = 0; o < n.length; ++o) i.Long ? (t.Receivers[n[o]] = i.Long.fromValue(e.Receivers[n[o]])).unsigned = !1 : "string" == typeof e.Receivers[n[o]] ? t.Receivers[n[o]] = parseInt(e.Receivers[n[o]], 10) : "number" == typeof e.Receivers[n[o]] ? t.Receivers[n[o]] = e.Receivers[n[o]] : "object" == typeof e.Receivers[n[o]] && (t.Receivers[n[o]] = new i.LongBits(e.Receivers[n[o]].low >>> 0, e.Receivers[n[o]].high >>> 0).toNumber())
                }
                if (e.Attackers) {
                    if (!Array.isArray(e.Attackers)) throw TypeError(".AssaultOperationResourcePoint.Attackers: array expected");
                    for (t.Attackers = [], o = 0; o < e.Attackers.length; ++o) i.Long ? (t.Attackers[o] = i.Long.fromValue(e.Attackers[o])).unsigned = !1 : "string" == typeof e.Attackers[o] ? t.Attackers[o] = parseInt(e.Attackers[o], 10) : "number" == typeof e.Attackers[o] ? t.Attackers[o] = e.Attackers[o] : "object" == typeof e.Attackers[o] && (t.Attackers[o] = new i.LongBits(e.Attackers[o].low >>> 0, e.Attackers[o].high >>> 0).toNumber())
                }
                if (e.Defenders) {
                    if (!Array.isArray(e.Defenders)) throw TypeError(".AssaultOperationResourcePoint.Defenders: array expected");
                    for (t.Defenders = [], o = 0; o < e.Defenders.length; ++o) i.Long ? (t.Defenders[o] = i.Long.fromValue(e.Defenders[o])).unsigned = !1 : "string" == typeof e.Defenders[o] ? t.Defenders[o] = parseInt(e.Defenders[o], 10) : "number" == typeof e.Defenders[o] ? t.Defenders[o] = e.Defenders[o] : "object" == typeof e.Defenders[o] && (t.Defenders[o] = new i.LongBits(e.Defenders[o].low >>> 0, e.Defenders[o].high >>> 0).toNumber())
                }
                if (e.Monsters) {
                    if ("object" != typeof e.Monsters) throw TypeError(".AssaultOperationResourcePoint.Monsters: object expected");
                    for (t.Monsters = {}, n = Object.keys(e.Monsters), o = 0; o < n.length; ++o) i.Long ? (t.Monsters[n[o]] = i.Long.fromValue(e.Monsters[n[o]])).unsigned = !1 : "string" == typeof e.Monsters[n[o]] ? t.Monsters[n[o]] = parseInt(e.Monsters[n[o]], 10) : "number" == typeof e.Monsters[n[o]] ? t.Monsters[n[o]] = e.Monsters[n[o]] : "object" == typeof e.Monsters[n[o]] && (t.Monsters[n[o]] = new i.LongBits(e.Monsters[n[o]].low >>> 0, e.Monsters[n[o]].high >>> 0).toNumber())
                }
                if (e.BattleQueue) {
                    if (!Array.isArray(e.BattleQueue)) throw TypeError(".AssaultOperationResourcePoint.BattleQueue: array expected");
                    for (t.BattleQueue = [], o = 0; o < e.BattleQueue.length; ++o) {
                        if ("object" != typeof e.BattleQueue[o]) throw TypeError(".AssaultOperationResourcePoint.BattleQueue: object expected");
                        t.BattleQueue[o] = a.IntArray.fromObject(e.BattleQueue[o])
                    }
                }
                return null != e.IsAddMonsterCount && (i.Long ? (t.IsAddMonsterCount = i.Long.fromValue(e.IsAddMonsterCount)).unsigned = !1 : "string" == typeof e.IsAddMonsterCount ? t.IsAddMonsterCount = parseInt(e.IsAddMonsterCount, 10) : "number" == typeof e.IsAddMonsterCount ? t.IsAddMonsterCount = e.IsAddMonsterCount : "object" == typeof e.IsAddMonsterCount && (t.IsAddMonsterCount = new i.LongBits(e.IsAddMonsterCount.low >>> 0, e.IsAddMonsterCount.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.Attackers = [], o.Defenders = [], o.BattleQueue = []), (t.objects || t.defaults) && (o.Receivers = {}, o.Monsters = {}), t.defaults) {
                    if (i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.Id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.Id = t.longs === String ? "0" : 0;
                    i.Long ? (r = new i.Long(0, 0, !1), o.OccupyAllianceId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.OccupyAllianceId = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.OccupyStartTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.OccupyStartTime = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.IsAddMonsterCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.IsAddMonsterCount = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? o.Id = t.longs === String ? String(e.Id) : e.Id : o.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.OccupyAllianceId && e.hasOwnProperty("OccupyAllianceId") && ("number" == typeof e.OccupyAllianceId ? o.OccupyAllianceId = t.longs === String ? String(e.OccupyAllianceId) : e.OccupyAllianceId : o.OccupyAllianceId = t.longs === String ? i.Long.prototype.toString.call(e.OccupyAllianceId) : t.longs === Number ? new i.LongBits(e.OccupyAllianceId.low >>> 0, e.OccupyAllianceId.high >>> 0).toNumber() : e.OccupyAllianceId), null != e.OccupyStartTime && e.hasOwnProperty("OccupyStartTime") && ("number" == typeof e.OccupyStartTime ? o.OccupyStartTime = t.longs === String ? String(e.OccupyStartTime) : e.OccupyStartTime : o.OccupyStartTime = t.longs === String ? i.Long.prototype.toString.call(e.OccupyStartTime) : t.longs === Number ? new i.LongBits(e.OccupyStartTime.low >>> 0, e.OccupyStartTime.high >>> 0).toNumber() : e.OccupyStartTime), e.Receivers && (n = Object.keys(e.Receivers)).length) {
                    o.Receivers = {};
                    for (var s = 0; s < n.length; ++s) "number" == typeof e.Receivers[n[s]] ? o.Receivers[n[s]] = t.longs === String ? String(e.Receivers[n[s]]) : e.Receivers[n[s]] : o.Receivers[n[s]] = t.longs === String ? i.Long.prototype.toString.call(e.Receivers[n[s]]) : t.longs === Number ? new i.LongBits(e.Receivers[n[s]].low >>> 0, e.Receivers[n[s]].high >>> 0).toNumber() : e.Receivers[n[s]]
                }
                if (e.Attackers && e.Attackers.length)
                    for (o.Attackers = [], s = 0; s < e.Attackers.length; ++s) "number" == typeof e.Attackers[s] ? o.Attackers[s] = t.longs === String ? String(e.Attackers[s]) : e.Attackers[s] : o.Attackers[s] = t.longs === String ? i.Long.prototype.toString.call(e.Attackers[s]) : t.longs === Number ? new i.LongBits(e.Attackers[s].low >>> 0, e.Attackers[s].high >>> 0).toNumber() : e.Attackers[s];
                if (e.Defenders && e.Defenders.length)
                    for (o.Defenders = [], s = 0; s < e.Defenders.length; ++s) "number" == typeof e.Defenders[s] ? o.Defenders[s] = t.longs === String ? String(e.Defenders[s]) : e.Defenders[s] : o.Defenders[s] = t.longs === String ? i.Long.prototype.toString.call(e.Defenders[s]) : t.longs === Number ? new i.LongBits(e.Defenders[s].low >>> 0, e.Defenders[s].high >>> 0).toNumber() : e.Defenders[s];
                if (e.Monsters && (n = Object.keys(e.Monsters)).length)
                    for (o.Monsters = {}, s = 0; s < n.length; ++s) "number" == typeof e.Monsters[n[s]] ? o.Monsters[n[s]] = t.longs === String ? String(e.Monsters[n[s]]) : e.Monsters[n[s]] : o.Monsters[n[s]] = t.longs === String ? i.Long.prototype.toString.call(e.Monsters[n[s]]) : t.longs === Number ? new i.LongBits(e.Monsters[n[s]].low >>> 0, e.Monsters[n[s]].high >>> 0).toNumber() : e.Monsters[n[s]];
                if (e.BattleQueue && e.BattleQueue.length)
                    for (o.BattleQueue = [], s = 0; s < e.BattleQueue.length; ++s) o.BattleQueue[s] = a.IntArray.toObject(e.BattleQueue[s], t);
                return null != e.IsAddMonsterCount && e.hasOwnProperty("IsAddMonsterCount") && ("number" == typeof e.IsAddMonsterCount ? o.IsAddMonsterCount = t.longs === String ? String(e.IsAddMonsterCount) : e.IsAddMonsterCount : o.IsAddMonsterCount = t.longs === String ? i.Long.prototype.toString.call(e.IsAddMonsterCount) : t.longs === Number ? new i.LongBits(e.IsAddMonsterCount.low >>> 0, e.IsAddMonsterCount.high >>> 0).toNumber() : e.IsAddMonsterCount), o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AssaultOperationResourcePoint"
            }, e
        }(), a.AssaultOperationPlayerBattleInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetEnergyValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetCostEnergyValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyEnergyValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyCostEnergyValue = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ResourcePonintId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetZone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ResourcePointId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.AllianceId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), null != e.TargetEnergyValue && Object.hasOwnProperty.call(e, "TargetEnergyValue") && t.uint32(16).int64(e.TargetEnergyValue), null != e.TargetCostEnergyValue && Object.hasOwnProperty.call(e, "TargetCostEnergyValue") && t.uint32(24).int64(e.TargetCostEnergyValue), null != e.MyEnergyValue && Object.hasOwnProperty.call(e, "MyEnergyValue") && t.uint32(32).int64(e.MyEnergyValue), null != e.MyCostEnergyValue && Object.hasOwnProperty.call(e, "MyCostEnergyValue") && t.uint32(40).int64(e.MyCostEnergyValue), null != e.ResourcePonintId && Object.hasOwnProperty.call(e, "ResourcePonintId") && t.uint32(48).int64(e.ResourcePonintId), null != e.TargetZone && Object.hasOwnProperty.call(e, "TargetZone") && t.uint32(56).int64(e.TargetZone), null != e.ResourcePointId && Object.hasOwnProperty.call(e, "ResourcePointId") && t.uint32(64).int64(e.ResourcePointId), null != e.AllianceId && Object.hasOwnProperty.call(e, "AllianceId") && t.uint32(72).int64(e.AllianceId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.AssaultOperationPlayerBattleInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        case 2:
                            r.TargetEnergyValue = e.int64();
                            break;
                        case 3:
                            r.TargetCostEnergyValue = e.int64();
                            break;
                        case 4:
                            r.MyEnergyValue = e.int64();
                            break;
                        case 5:
                            r.MyCostEnergyValue = e.int64();
                            break;
                        case 6:
                            r.ResourcePonintId = e.int64();
                            break;
                        case 7:
                            r.TargetZone = e.int64();
                            break;
                        case 8:
                            r.ResourcePointId = e.int64();
                            break;
                        case 9:
                            r.AllianceId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null != e.TargetEnergyValue && e.hasOwnProperty("TargetEnergyValue") && !(i.isInteger(e.TargetEnergyValue) || e.TargetEnergyValue && i.isInteger(e.TargetEnergyValue.low) && i.isInteger(e.TargetEnergyValue.high)) ? "TargetEnergyValue: integer|Long expected" : null != e.TargetCostEnergyValue && e.hasOwnProperty("TargetCostEnergyValue") && !(i.isInteger(e.TargetCostEnergyValue) || e.TargetCostEnergyValue && i.isInteger(e.TargetCostEnergyValue.low) && i.isInteger(e.TargetCostEnergyValue.high)) ? "TargetCostEnergyValue: integer|Long expected" : null != e.MyEnergyValue && e.hasOwnProperty("MyEnergyValue") && !(i.isInteger(e.MyEnergyValue) || e.MyEnergyValue && i.isInteger(e.MyEnergyValue.low) && i.isInteger(e.MyEnergyValue.high)) ? "MyEnergyValue: integer|Long expected" : null != e.MyCostEnergyValue && e.hasOwnProperty("MyCostEnergyValue") && !(i.isInteger(e.MyCostEnergyValue) || e.MyCostEnergyValue && i.isInteger(e.MyCostEnergyValue.low) && i.isInteger(e.MyCostEnergyValue.high)) ? "MyCostEnergyValue: integer|Long expected" : null != e.ResourcePonintId && e.hasOwnProperty("ResourcePonintId") && !(i.isInteger(e.ResourcePonintId) || e.ResourcePonintId && i.isInteger(e.ResourcePonintId.low) && i.isInteger(e.ResourcePonintId.high)) ? "ResourcePonintId: integer|Long expected" : null != e.TargetZone && e.hasOwnProperty("TargetZone") && !(i.isInteger(e.TargetZone) || e.TargetZone && i.isInteger(e.TargetZone.low) && i.isInteger(e.TargetZone.high)) ? "TargetZone: integer|Long expected" : null != e.ResourcePointId && e.hasOwnProperty("ResourcePointId") && !(i.isInteger(e.ResourcePointId) || e.ResourcePointId && i.isInteger(e.ResourcePointId.low) && i.isInteger(e.ResourcePointId.high)) ? "ResourcePointId: integer|Long expected" : null != e.AllianceId && e.hasOwnProperty("AllianceId") && !(i.isInteger(e.AllianceId) || e.AllianceId && i.isInteger(e.AllianceId.low) && i.isInteger(e.AllianceId.high)) ? "AllianceId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.AssaultOperationPlayerBattleInfo) return e;
                var t = new a.AssaultOperationPlayerBattleInfo;
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), null != e.TargetEnergyValue && (i.Long ? (t.TargetEnergyValue = i.Long.fromValue(e.TargetEnergyValue)).unsigned = !1 : "string" == typeof e.TargetEnergyValue ? t.TargetEnergyValue = parseInt(e.TargetEnergyValue, 10) : "number" == typeof e.TargetEnergyValue ? t.TargetEnergyValue = e.TargetEnergyValue : "object" == typeof e.TargetEnergyValue && (t.TargetEnergyValue = new i.LongBits(e.TargetEnergyValue.low >>> 0, e.TargetEnergyValue.high >>> 0).toNumber())), null != e.TargetCostEnergyValue && (i.Long ? (t.TargetCostEnergyValue = i.Long.fromValue(e.TargetCostEnergyValue)).unsigned = !1 : "string" == typeof e.TargetCostEnergyValue ? t.TargetCostEnergyValue = parseInt(e.TargetCostEnergyValue, 10) : "number" == typeof e.TargetCostEnergyValue ? t.TargetCostEnergyValue = e.TargetCostEnergyValue : "object" == typeof e.TargetCostEnergyValue && (t.TargetCostEnergyValue = new i.LongBits(e.TargetCostEnergyValue.low >>> 0, e.TargetCostEnergyValue.high >>> 0).toNumber())), null != e.MyEnergyValue && (i.Long ? (t.MyEnergyValue = i.Long.fromValue(e.MyEnergyValue)).unsigned = !1 : "string" == typeof e.MyEnergyValue ? t.MyEnergyValue = parseInt(e.MyEnergyValue, 10) : "number" == typeof e.MyEnergyValue ? t.MyEnergyValue = e.MyEnergyValue : "object" == typeof e.MyEnergyValue && (t.MyEnergyValue = new i.LongBits(e.MyEnergyValue.low >>> 0, e.MyEnergyValue.high >>> 0).toNumber())), null != e.MyCostEnergyValue && (i.Long ? (t.MyCostEnergyValue = i.Long.fromValue(e.MyCostEnergyValue)).unsigned = !1 : "string" == typeof e.MyCostEnergyValue ? t.MyCostEnergyValue = parseInt(e.MyCostEnergyValue, 10) : "number" == typeof e.MyCostEnergyValue ? t.MyCostEnergyValue = e.MyCostEnergyValue : "object" == typeof e.MyCostEnergyValue && (t.MyCostEnergyValue = new i.LongBits(e.MyCostEnergyValue.low >>> 0, e.MyCostEnergyValue.high >>> 0).toNumber())), null != e.ResourcePonintId && (i.Long ? (t.ResourcePonintId = i.Long.fromValue(e.ResourcePonintId)).unsigned = !1 : "string" == typeof e.ResourcePonintId ? t.ResourcePonintId = parseInt(e.ResourcePonintId, 10) : "number" == typeof e.ResourcePonintId ? t.ResourcePonintId = e.ResourcePonintId : "object" == typeof e.ResourcePonintId && (t.ResourcePonintId = new i.LongBits(e.ResourcePonintId.low >>> 0, e.ResourcePonintId.high >>> 0).toNumber())), null != e.TargetZone && (i.Long ? (t.TargetZone = i.Long.fromValue(e.TargetZone)).unsigned = !1 : "string" == typeof e.TargetZone ? t.TargetZone = parseInt(e.TargetZone, 10) : "number" == typeof e.TargetZone ? t.TargetZone = e.TargetZone : "object" == typeof e.TargetZone && (t.TargetZone = new i.LongBits(e.TargetZone.low >>> 0, e.TargetZone.high >>> 0).toNumber())), null != e.ResourcePointId && (i.Long ? (t.ResourcePointId = i.Long.fromValue(e.ResourcePointId)).unsigned = !1 : "string" == typeof e.ResourcePointId ? t.ResourcePointId = parseInt(e.ResourcePointId, 10) : "number" == typeof e.ResourcePointId ? t.ResourcePointId = e.ResourcePointId : "object" == typeof e.ResourcePointId && (t.ResourcePointId = new i.LongBits(e.ResourcePointId.low >>> 0, e.ResourcePointId.high >>> 0).toNumber())), null != e.AllianceId && (i.Long ? (t.AllianceId = i.Long.fromValue(e.AllianceId)).unsigned = !1 : "string" == typeof e.AllianceId ? t.AllianceId = parseInt(e.AllianceId, 10) : "number" == typeof e.AllianceId ? t.AllianceId = e.AllianceId : "object" == typeof e.AllianceId && (t.AllianceId = new i.LongBits(e.AllianceId.low >>> 0, e.AllianceId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.TargetEnergyValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetEnergyValue = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetCostEnergyValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetCostEnergyValue = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyEnergyValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyEnergyValue = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyCostEnergyValue = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyCostEnergyValue = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ResourcePonintId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ResourcePonintId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetZone = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetZone = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.ResourcePointId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ResourcePointId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.AllianceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AllianceId = t.longs === String ? "0" : 0
                }
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), null != e.TargetEnergyValue && e.hasOwnProperty("TargetEnergyValue") && ("number" == typeof e.TargetEnergyValue ? n.TargetEnergyValue = t.longs === String ? String(e.TargetEnergyValue) : e.TargetEnergyValue : n.TargetEnergyValue = t.longs === String ? i.Long.prototype.toString.call(e.TargetEnergyValue) : t.longs === Number ? new i.LongBits(e.TargetEnergyValue.low >>> 0, e.TargetEnergyValue.high >>> 0).toNumber() : e.TargetEnergyValue), null != e.TargetCostEnergyValue && e.hasOwnProperty("TargetCostEnergyValue") && ("number" == typeof e.TargetCostEnergyValue ? n.TargetCostEnergyValue = t.longs === String ? String(e.TargetCostEnergyValue) : e.TargetCostEnergyValue : n.TargetCostEnergyValue = t.longs === String ? i.Long.prototype.toString.call(e.TargetCostEnergyValue) : t.longs === Number ? new i.LongBits(e.TargetCostEnergyValue.low >>> 0, e.TargetCostEnergyValue.high >>> 0).toNumber() : e.TargetCostEnergyValue), null != e.MyEnergyValue && e.hasOwnProperty("MyEnergyValue") && ("number" == typeof e.MyEnergyValue ? n.MyEnergyValue = t.longs === String ? String(e.MyEnergyValue) : e.MyEnergyValue : n.MyEnergyValue = t.longs === String ? i.Long.prototype.toString.call(e.MyEnergyValue) : t.longs === Number ? new i.LongBits(e.MyEnergyValue.low >>> 0, e.MyEnergyValue.high >>> 0).toNumber() : e.MyEnergyValue), null != e.MyCostEnergyValue && e.hasOwnProperty("MyCostEnergyValue") && ("number" == typeof e.MyCostEnergyValue ? n.MyCostEnergyValue = t.longs === String ? String(e.MyCostEnergyValue) : e.MyCostEnergyValue : n.MyCostEnergyValue = t.longs === String ? i.Long.prototype.toString.call(e.MyCostEnergyValue) : t.longs === Number ? new i.LongBits(e.MyCostEnergyValue.low >>> 0, e.MyCostEnergyValue.high >>> 0).toNumber() : e.MyCostEnergyValue), null != e.ResourcePonintId && e.hasOwnProperty("ResourcePonintId") && ("number" == typeof e.ResourcePonintId ? n.ResourcePonintId = t.longs === String ? String(e.ResourcePonintId) : e.ResourcePonintId : n.ResourcePonintId = t.longs === String ? i.Long.prototype.toString.call(e.ResourcePonintId) : t.longs === Number ? new i.LongBits(e.ResourcePonintId.low >>> 0, e.ResourcePonintId.high >>> 0).toNumber() : e.ResourcePonintId), null != e.TargetZone && e.hasOwnProperty("TargetZone") && ("number" == typeof e.TargetZone ? n.TargetZone = t.longs === String ? String(e.TargetZone) : e.TargetZone : n.TargetZone = t.longs === String ? i.Long.prototype.toString.call(e.TargetZone) : t.longs === Number ? new i.LongBits(e.TargetZone.low >>> 0, e.TargetZone.high >>> 0).toNumber() : e.TargetZone), null != e.ResourcePointId && e.hasOwnProperty("ResourcePointId") && ("number" == typeof e.ResourcePointId ? n.ResourcePointId = t.longs === String ? String(e.ResourcePointId) : e.ResourcePointId : n.ResourcePointId = t.longs === String ? i.Long.prototype.toString.call(e.ResourcePointId) : t.longs === Number ? new i.LongBits(e.ResourcePointId.low >>> 0, e.ResourcePointId.high >>> 0).toNumber() : e.ResourcePointId), null != e.AllianceId && e.hasOwnProperty("AllianceId") && ("number" == typeof e.AllianceId ? n.AllianceId = t.longs === String ? String(e.AllianceId) : e.AllianceId : n.AllianceId = t.longs === String ? i.Long.prototype.toString.call(e.AllianceId) : t.longs === Number ? new i.LongBits(e.AllianceId.low >>> 0, e.AllianceId.high >>> 0).toNumber() : e.AllianceId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/AssaultOperationPlayerBattleInfo"
            }, e
        }(), a.ModuleStartTime_Model = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype._id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ModuleId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OpenTime = "", e.prototype.UpdateTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Enabled = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Desc = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e._id && Object.hasOwnProperty.call(e, "_id") && t.uint32(8).int64(e._id), null != e.ModuleId && Object.hasOwnProperty.call(e, "ModuleId") && t.uint32(16).int64(e.ModuleId), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), null != e.OpenTime && Object.hasOwnProperty.call(e, "OpenTime") && t.uint32(34).string(e.OpenTime), null != e.UpdateTime && Object.hasOwnProperty.call(e, "UpdateTime") && t.uint32(40).int64(e.UpdateTime), null != e.Enabled && Object.hasOwnProperty.call(e, "Enabled") && t.uint32(48).int64(e.Enabled), null != e.Desc && Object.hasOwnProperty.call(e, "Desc") && t.uint32(58).string(e.Desc), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.ModuleStartTime_Model; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r._id = e.int64();
                            break;
                        case 2:
                            r.ModuleId = e.int64();
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        case 4:
                            r.OpenTime = e.string();
                            break;
                        case 5:
                            r.UpdateTime = e.int64();
                            break;
                        case 6:
                            r.Enabled = e.int64();
                            break;
                        case 7:
                            r.Desc = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e._id && e.hasOwnProperty("_id") && !(i.isInteger(e._id) || e._id && i.isInteger(e._id.low) && i.isInteger(e._id.high)) ? "_id: integer|Long expected" : null != e.ModuleId && e.hasOwnProperty("ModuleId") && !(i.isInteger(e.ModuleId) || e.ModuleId && i.isInteger(e.ModuleId.low) && i.isInteger(e.ModuleId.high)) ? "ModuleId: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.OpenTime && e.hasOwnProperty("OpenTime") && !i.isString(e.OpenTime) ? "OpenTime: string expected" : null != e.UpdateTime && e.hasOwnProperty("UpdateTime") && !(i.isInteger(e.UpdateTime) || e.UpdateTime && i.isInteger(e.UpdateTime.low) && i.isInteger(e.UpdateTime.high)) ? "UpdateTime: integer|Long expected" : null != e.Enabled && e.hasOwnProperty("Enabled") && !(i.isInteger(e.Enabled) || e.Enabled && i.isInteger(e.Enabled.low) && i.isInteger(e.Enabled.high)) ? "Enabled: integer|Long expected" : null != e.Desc && e.hasOwnProperty("Desc") && !i.isString(e.Desc) ? "Desc: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.ModuleStartTime_Model) return e;
                var t = new a.ModuleStartTime_Model;
                return null != e._id && (i.Long ? (t._id = i.Long.fromValue(e._id)).unsigned = !1 : "string" == typeof e._id ? t._id = parseInt(e._id, 10) : "number" == typeof e._id ? t._id = e._id : "object" == typeof e._id && (t._id = new i.LongBits(e._id.low >>> 0, e._id.high >>> 0).toNumber())), null != e.ModuleId && (i.Long ? (t.ModuleId = i.Long.fromValue(e.ModuleId)).unsigned = !1 : "string" == typeof e.ModuleId ? t.ModuleId = parseInt(e.ModuleId, 10) : "number" == typeof e.ModuleId ? t.ModuleId = e.ModuleId : "object" == typeof e.ModuleId && (t.ModuleId = new i.LongBits(e.ModuleId.low >>> 0, e.ModuleId.high >>> 0).toNumber())), null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.OpenTime && (t.OpenTime = String(e.OpenTime)), null != e.UpdateTime && (i.Long ? (t.UpdateTime = i.Long.fromValue(e.UpdateTime)).unsigned = !1 : "string" == typeof e.UpdateTime ? t.UpdateTime = parseInt(e.UpdateTime, 10) : "number" == typeof e.UpdateTime ? t.UpdateTime = e.UpdateTime : "object" == typeof e.UpdateTime && (t.UpdateTime = new i.LongBits(e.UpdateTime.low >>> 0, e.UpdateTime.high >>> 0).toNumber())), null != e.Enabled && (i.Long ? (t.Enabled = i.Long.fromValue(e.Enabled)).unsigned = !1 : "string" == typeof e.Enabled ? t.Enabled = parseInt(e.Enabled, 10) : "number" == typeof e.Enabled ? t.Enabled = e.Enabled : "object" == typeof e.Enabled && (t.Enabled = new i.LongBits(e.Enabled.low >>> 0, e.Enabled.high >>> 0).toNumber())), null != e.Desc && (t.Desc = String(e.Desc)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n._id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n._id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ModuleId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ModuleId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0, n.OpenTime = "", i.Long ? (o = new i.Long(0, 0, !1), n.UpdateTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.UpdateTime = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Enabled = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Enabled = t.longs === String ? "0" : 0, n.Desc = ""
                }
                return null != e._id && e.hasOwnProperty("_id") && ("number" == typeof e._id ? n._id = t.longs === String ? String(e._id) : e._id : n._id = t.longs === String ? i.Long.prototype.toString.call(e._id) : t.longs === Number ? new i.LongBits(e._id.low >>> 0, e._id.high >>> 0).toNumber() : e._id), null != e.ModuleId && e.hasOwnProperty("ModuleId") && ("number" == typeof e.ModuleId ? n.ModuleId = t.longs === String ? String(e.ModuleId) : e.ModuleId : n.ModuleId = t.longs === String ? i.Long.prototype.toString.call(e.ModuleId) : t.longs === Number ? new i.LongBits(e.ModuleId.low >>> 0, e.ModuleId.high >>> 0).toNumber() : e.ModuleId), null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.OpenTime && e.hasOwnProperty("OpenTime") && (n.OpenTime = e.OpenTime), null != e.UpdateTime && e.hasOwnProperty("UpdateTime") && ("number" == typeof e.UpdateTime ? n.UpdateTime = t.longs === String ? String(e.UpdateTime) : e.UpdateTime : n.UpdateTime = t.longs === String ? i.Long.prototype.toString.call(e.UpdateTime) : t.longs === Number ? new i.LongBits(e.UpdateTime.low >>> 0, e.UpdateTime.high >>> 0).toNumber() : e.UpdateTime), null != e.Enabled && e.hasOwnProperty("Enabled") && ("number" == typeof e.Enabled ? n.Enabled = t.longs === String ? String(e.Enabled) : e.Enabled : n.Enabled = t.longs === String ? i.Long.prototype.toString.call(e.Enabled) : t.longs === Number ? new i.LongBits(e.Enabled.low >>> 0, e.Enabled.high >>> 0).toNumber() : e.Enabled), null != e.Desc && e.hasOwnProperty("Desc") && (n.Desc = e.Desc), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/ModuleStartTime_Model"
            }, e
        }(), a.WebCommonParam = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Channel = "", e.prototype.UDID = "", e.prototype.ClientVer = "", e.prototype.Locale = "", e.prototype.Ts = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Sign = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Channel && Object.hasOwnProperty.call(e, "Channel") && t.uint32(10).string(e.Channel), null != e.UDID && Object.hasOwnProperty.call(e, "UDID") && t.uint32(18).string(e.UDID), null != e.ClientVer && Object.hasOwnProperty.call(e, "ClientVer") && t.uint32(26).string(e.ClientVer), null != e.Locale && Object.hasOwnProperty.call(e, "Locale") && t.uint32(34).string(e.Locale), null != e.Ts && Object.hasOwnProperty.call(e, "Ts") && t.uint32(40).int64(e.Ts), null != e.Sign && Object.hasOwnProperty.call(e, "Sign") && t.uint32(50).string(e.Sign), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.WebCommonParam; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Channel = e.string();
                            break;
                        case 2:
                            r.UDID = e.string();
                            break;
                        case 3:
                            r.ClientVer = e.string();
                            break;
                        case 4:
                            r.Locale = e.string();
                            break;
                        case 5:
                            r.Ts = e.int64();
                            break;
                        case 6:
                            r.Sign = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Channel && e.hasOwnProperty("Channel") && !i.isString(e.Channel) ? "Channel: string expected" : null != e.UDID && e.hasOwnProperty("UDID") && !i.isString(e.UDID) ? "UDID: string expected" : null != e.ClientVer && e.hasOwnProperty("ClientVer") && !i.isString(e.ClientVer) ? "ClientVer: string expected" : null != e.Locale && e.hasOwnProperty("Locale") && !i.isString(e.Locale) ? "Locale: string expected" : null != e.Ts && e.hasOwnProperty("Ts") && !(i.isInteger(e.Ts) || e.Ts && i.isInteger(e.Ts.low) && i.isInteger(e.Ts.high)) ? "Ts: integer|Long expected" : null != e.Sign && e.hasOwnProperty("Sign") && !i.isString(e.Sign) ? "Sign: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.WebCommonParam) return e;
                var t = new a.WebCommonParam;
                return null != e.Channel && (t.Channel = String(e.Channel)), null != e.UDID && (t.UDID = String(e.UDID)), null != e.ClientVer && (t.ClientVer = String(e.ClientVer)), null != e.Locale && (t.Locale = String(e.Locale)), null != e.Ts && (i.Long ? (t.Ts = i.Long.fromValue(e.Ts)).unsigned = !1 : "string" == typeof e.Ts ? t.Ts = parseInt(e.Ts, 10) : "number" == typeof e.Ts ? t.Ts = e.Ts : "object" == typeof e.Ts && (t.Ts = new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber())), null != e.Sign && (t.Sign = String(e.Sign)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (n.Channel = "", n.UDID = "", n.ClientVer = "", n.Locale = "", i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Ts = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Ts = t.longs === String ? "0" : 0;
                    n.Sign = ""
                }
                return null != e.Channel && e.hasOwnProperty("Channel") && (n.Channel = e.Channel), null != e.UDID && e.hasOwnProperty("UDID") && (n.UDID = e.UDID), null != e.ClientVer && e.hasOwnProperty("ClientVer") && (n.ClientVer = e.ClientVer), null != e.Locale && e.hasOwnProperty("Locale") && (n.Locale = e.Locale), null != e.Ts && e.hasOwnProperty("Ts") && ("number" == typeof e.Ts ? n.Ts = t.longs === String ? String(e.Ts) : e.Ts : n.Ts = t.longs === String ? i.Long.prototype.toString.call(e.Ts) : t.longs === Number ? new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber() : e.Ts), null != e.Sign && e.hasOwnProperty("Sign") && (n.Sign = e.Sign), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/WebCommonParam"
            }, e
        }(), a.UserLoginInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Zone = 0, e.prototype.LastLogin = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RoleName = "", e.prototype.HeadIcon = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeadFrame = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(8).int32(e.Zone), null != e.LastLogin && Object.hasOwnProperty.call(e, "LastLogin") && t.uint32(16).int64(e.LastLogin), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(24).int64(e.Level), null != e.RoleName && Object.hasOwnProperty.call(e, "RoleName") && t.uint32(34).string(e.RoleName), null != e.HeadIcon && Object.hasOwnProperty.call(e, "HeadIcon") && t.uint32(40).int64(e.HeadIcon), null != e.HeadFrame && Object.hasOwnProperty.call(e, "HeadFrame") && t.uint32(48).int64(e.HeadFrame), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.UserLoginInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Zone = e.int32();
                            break;
                        case 2:
                            r.LastLogin = e.int64();
                            break;
                        case 3:
                            r.Level = e.int64();
                            break;
                        case 4:
                            r.RoleName = e.string();
                            break;
                        case 5:
                            r.HeadIcon = e.int64();
                            break;
                        case 6:
                            r.HeadFrame = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Zone && e.hasOwnProperty("Zone") && !i.isInteger(e.Zone) ? "Zone: integer expected" : null != e.LastLogin && e.hasOwnProperty("LastLogin") && !(i.isInteger(e.LastLogin) || e.LastLogin && i.isInteger(e.LastLogin.low) && i.isInteger(e.LastLogin.high)) ? "LastLogin: integer|Long expected" : null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high)) ? "Level: integer|Long expected" : null != e.RoleName && e.hasOwnProperty("RoleName") && !i.isString(e.RoleName) ? "RoleName: string expected" : null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && !(i.isInteger(e.HeadIcon) || e.HeadIcon && i.isInteger(e.HeadIcon.low) && i.isInteger(e.HeadIcon.high)) ? "HeadIcon: integer|Long expected" : null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && !(i.isInteger(e.HeadFrame) || e.HeadFrame && i.isInteger(e.HeadFrame.low) && i.isInteger(e.HeadFrame.high)) ? "HeadFrame: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.UserLoginInfo) return e;
                var t = new a.UserLoginInfo;
                return null != e.Zone && (t.Zone = 0 | e.Zone), null != e.LastLogin && (i.Long ? (t.LastLogin = i.Long.fromValue(e.LastLogin)).unsigned = !1 : "string" == typeof e.LastLogin ? t.LastLogin = parseInt(e.LastLogin, 10) : "number" == typeof e.LastLogin ? t.LastLogin = e.LastLogin : "object" == typeof e.LastLogin && (t.LastLogin = new i.LongBits(e.LastLogin.low >>> 0, e.LastLogin.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), null != e.RoleName && (t.RoleName = String(e.RoleName)), null != e.HeadIcon && (i.Long ? (t.HeadIcon = i.Long.fromValue(e.HeadIcon)).unsigned = !1 : "string" == typeof e.HeadIcon ? t.HeadIcon = parseInt(e.HeadIcon, 10) : "number" == typeof e.HeadIcon ? t.HeadIcon = e.HeadIcon : "object" == typeof e.HeadIcon && (t.HeadIcon = new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber())), null != e.HeadFrame && (i.Long ? (t.HeadFrame = i.Long.fromValue(e.HeadFrame)).unsigned = !1 : "string" == typeof e.HeadFrame ? t.HeadFrame = parseInt(e.HeadFrame, 10) : "number" == typeof e.HeadFrame ? t.HeadFrame = e.HeadFrame : "object" == typeof e.HeadFrame && (t.HeadFrame = new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (n.Zone = 0, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.LastLogin = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.LastLogin = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0, n.RoleName = "", i.Long ? (o = new i.Long(0, 0, !1), n.HeadIcon = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadIcon = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.HeadFrame = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeadFrame = t.longs === String ? "0" : 0
                }
                return null != e.Zone && e.hasOwnProperty("Zone") && (n.Zone = e.Zone), null != e.LastLogin && e.hasOwnProperty("LastLogin") && ("number" == typeof e.LastLogin ? n.LastLogin = t.longs === String ? String(e.LastLogin) : e.LastLogin : n.LastLogin = t.longs === String ? i.Long.prototype.toString.call(e.LastLogin) : t.longs === Number ? new i.LongBits(e.LastLogin.low >>> 0, e.LastLogin.high >>> 0).toNumber() : e.LastLogin), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), null != e.RoleName && e.hasOwnProperty("RoleName") && (n.RoleName = e.RoleName), null != e.HeadIcon && e.hasOwnProperty("HeadIcon") && ("number" == typeof e.HeadIcon ? n.HeadIcon = t.longs === String ? String(e.HeadIcon) : e.HeadIcon : n.HeadIcon = t.longs === String ? i.Long.prototype.toString.call(e.HeadIcon) : t.longs === Number ? new i.LongBits(e.HeadIcon.low >>> 0, e.HeadIcon.high >>> 0).toNumber() : e.HeadIcon), null != e.HeadFrame && e.hasOwnProperty("HeadFrame") && ("number" == typeof e.HeadFrame ? n.HeadFrame = t.longs === String ? String(e.HeadFrame) : e.HeadFrame : n.HeadFrame = t.longs === String ? i.Long.prototype.toString.call(e.HeadFrame) : t.longs === Number ? new i.LongBits(e.HeadFrame.low >>> 0, e.HeadFrame.high >>> 0).toNumber() : e.HeadFrame), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/UserLoginInfo"
            }, e
        }(), a.Req_Web_InitGame = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Web_InitGame; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Web_InitGame) return e;
                var t = new a.Req_Web_InitGame;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Web_InitGame.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Param = null), null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Web_InitGame"
            }, e
        }(), a.Res_Web_InitGame = function() {
            function e(e) {
                if (this.ZoneList = [], this.Configures = [], this.SkillConfigs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RedirectUrl = "", e.prototype.TimeZone = "", e.prototype.AssetUpdateUrl = "", e.prototype.HeartbeatInterval = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ZoneList = i.emptyArray, e.prototype.ConfigureVersion = "", e.prototype.Configures = i.emptyArray, e.prototype.Ts = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsDebug = !1, e.prototype.UseEncrypt = !1, e.prototype.EditSkillConfig = !1, e.prototype.SDKIsTest = !1, e.prototype.IsLoginDebug = !1, e.prototype.SkillConfigs = i.emptyArray, e.prototype.ConfigUpdateUrl = "", e.prototype.BaseAssetPack = "", e.prototype.UseDevAccount = !1, e.prototype.ActivityImageUrl = "", e.prototype.ManifestVersion = "", e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.RedirectUrl && Object.hasOwnProperty.call(e, "RedirectUrl") && t.uint32(10).string(e.RedirectUrl), null != e.TimeZone && Object.hasOwnProperty.call(e, "TimeZone") && t.uint32(18).string(e.TimeZone), null != e.AssetUpdateUrl && Object.hasOwnProperty.call(e, "AssetUpdateUrl") && t.uint32(26).string(e.AssetUpdateUrl), null != e.HeartbeatInterval && Object.hasOwnProperty.call(e, "HeartbeatInterval") && t.uint32(32).int64(e.HeartbeatInterval), null != e.ZoneList && e.ZoneList.length)
                    for (var n = 0; n < e.ZoneList.length; ++n) a.ZoneInfo_Model.encode(e.ZoneList[n], t.uint32(42).fork()).ldelim();
                if (null != e.ConfigureVersion && Object.hasOwnProperty.call(e, "ConfigureVersion") && t.uint32(50).string(e.ConfigureVersion), null != e.Configures && e.Configures.length)
                    for (n = 0; n < e.Configures.length; ++n) t.uint32(58).bytes(e.Configures[n]);
                if (null != e.Ts && Object.hasOwnProperty.call(e, "Ts") && t.uint32(64).int64(e.Ts), null != e.IsDebug && Object.hasOwnProperty.call(e, "IsDebug") && t.uint32(72).bool(e.IsDebug), null != e.UseEncrypt && Object.hasOwnProperty.call(e, "UseEncrypt") && t.uint32(80).bool(e.UseEncrypt), null != e.EditSkillConfig && Object.hasOwnProperty.call(e, "EditSkillConfig") && t.uint32(88).bool(e.EditSkillConfig), null != e.SDKIsTest && Object.hasOwnProperty.call(e, "SDKIsTest") && t.uint32(96).bool(e.SDKIsTest), null != e.IsLoginDebug && Object.hasOwnProperty.call(e, "IsLoginDebug") && t.uint32(104).bool(e.IsLoginDebug), null != e.SkillConfigs && e.SkillConfigs.length)
                    for (n = 0; n < e.SkillConfigs.length; ++n) t.uint32(114).bytes(e.SkillConfigs[n]);
                return null != e.ConfigUpdateUrl && Object.hasOwnProperty.call(e, "ConfigUpdateUrl") && t.uint32(122).string(e.ConfigUpdateUrl), null != e.BaseAssetPack && Object.hasOwnProperty.call(e, "BaseAssetPack") && t.uint32(130).string(e.BaseAssetPack), null != e.UseDevAccount && Object.hasOwnProperty.call(e, "UseDevAccount") && t.uint32(136).bool(e.UseDevAccount), null != e.ActivityImageUrl && Object.hasOwnProperty.call(e, "ActivityImageUrl") && t.uint32(146).string(e.ActivityImageUrl), null != e.ManifestVersion && Object.hasOwnProperty.call(e, "ManifestVersion") && t.uint32(154).string(e.ManifestVersion), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Web_InitGame; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.RedirectUrl = e.string();
                            break;
                        case 2:
                            r.TimeZone = e.string();
                            break;
                        case 3:
                            r.AssetUpdateUrl = e.string();
                            break;
                        case 4:
                            r.HeartbeatInterval = e.int64();
                            break;
                        case 5:
                            r.ZoneList && r.ZoneList.length || (r.ZoneList = []), r.ZoneList.push(a.ZoneInfo_Model.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.ConfigureVersion = e.string();
                            break;
                        case 7:
                            r.Configures && r.Configures.length || (r.Configures = []), r.Configures.push(e.bytes());
                            break;
                        case 8:
                            r.Ts = e.int64();
                            break;
                        case 9:
                            r.IsDebug = e.bool();
                            break;
                        case 10:
                            r.UseEncrypt = e.bool();
                            break;
                        case 11:
                            r.EditSkillConfig = e.bool();
                            break;
                        case 12:
                            r.SDKIsTest = e.bool();
                            break;
                        case 13:
                            r.IsLoginDebug = e.bool();
                            break;
                        case 14:
                            r.SkillConfigs && r.SkillConfigs.length || (r.SkillConfigs = []), r.SkillConfigs.push(e.bytes());
                            break;
                        case 15:
                            r.ConfigUpdateUrl = e.string();
                            break;
                        case 16:
                            r.BaseAssetPack = e.string();
                            break;
                        case 17:
                            r.UseDevAccount = e.bool();
                            break;
                        case 18:
                            r.ActivityImageUrl = e.string();
                            break;
                        case 19:
                            r.ManifestVersion = e.string();
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.RedirectUrl && e.hasOwnProperty("RedirectUrl") && !i.isString(e.RedirectUrl)) return "RedirectUrl: string expected";
                if (null != e.TimeZone && e.hasOwnProperty("TimeZone") && !i.isString(e.TimeZone)) return "TimeZone: string expected";
                if (null != e.AssetUpdateUrl && e.hasOwnProperty("AssetUpdateUrl") && !i.isString(e.AssetUpdateUrl)) return "AssetUpdateUrl: string expected";
                if (null != e.HeartbeatInterval && e.hasOwnProperty("HeartbeatInterval") && !(i.isInteger(e.HeartbeatInterval) || e.HeartbeatInterval && i.isInteger(e.HeartbeatInterval.low) && i.isInteger(e.HeartbeatInterval.high))) return "HeartbeatInterval: integer|Long expected";
                if (null != e.ZoneList && e.hasOwnProperty("ZoneList")) {
                    if (!Array.isArray(e.ZoneList)) return "ZoneList: array expected";
                    for (var t = 0; t < e.ZoneList.length; ++t) {
                        var n = a.ZoneInfo_Model.verify(e.ZoneList[t]);
                        if (n) return "ZoneList." + n
                    }
                }
                if (null != e.ConfigureVersion && e.hasOwnProperty("ConfigureVersion") && !i.isString(e.ConfigureVersion)) return "ConfigureVersion: string expected";
                if (null != e.Configures && e.hasOwnProperty("Configures")) {
                    if (!Array.isArray(e.Configures)) return "Configures: array expected";
                    for (t = 0; t < e.Configures.length; ++t)
                        if (!(e.Configures[t] && "number" == typeof e.Configures[t].length || i.isString(e.Configures[t]))) return "Configures: buffer[] expected"
                }
                if (null != e.Ts && e.hasOwnProperty("Ts") && !(i.isInteger(e.Ts) || e.Ts && i.isInteger(e.Ts.low) && i.isInteger(e.Ts.high))) return "Ts: integer|Long expected";
                if (null != e.IsDebug && e.hasOwnProperty("IsDebug") && "boolean" != typeof e.IsDebug) return "IsDebug: boolean expected";
                if (null != e.UseEncrypt && e.hasOwnProperty("UseEncrypt") && "boolean" != typeof e.UseEncrypt) return "UseEncrypt: boolean expected";
                if (null != e.EditSkillConfig && e.hasOwnProperty("EditSkillConfig") && "boolean" != typeof e.EditSkillConfig) return "EditSkillConfig: boolean expected";
                if (null != e.SDKIsTest && e.hasOwnProperty("SDKIsTest") && "boolean" != typeof e.SDKIsTest) return "SDKIsTest: boolean expected";
                if (null != e.IsLoginDebug && e.hasOwnProperty("IsLoginDebug") && "boolean" != typeof e.IsLoginDebug) return "IsLoginDebug: boolean expected";
                if (null != e.SkillConfigs && e.hasOwnProperty("SkillConfigs")) {
                    if (!Array.isArray(e.SkillConfigs)) return "SkillConfigs: array expected";
                    for (t = 0; t < e.SkillConfigs.length; ++t)
                        if (!(e.SkillConfigs[t] && "number" == typeof e.SkillConfigs[t].length || i.isString(e.SkillConfigs[t]))) return "SkillConfigs: buffer[] expected"
                }
                return null != e.ConfigUpdateUrl && e.hasOwnProperty("ConfigUpdateUrl") && !i.isString(e.ConfigUpdateUrl) ? "ConfigUpdateUrl: string expected" : null != e.BaseAssetPack && e.hasOwnProperty("BaseAssetPack") && !i.isString(e.BaseAssetPack) ? "BaseAssetPack: string expected" : null != e.UseDevAccount && e.hasOwnProperty("UseDevAccount") && "boolean" != typeof e.UseDevAccount ? "UseDevAccount: boolean expected" : null != e.ActivityImageUrl && e.hasOwnProperty("ActivityImageUrl") && !i.isString(e.ActivityImageUrl) ? "ActivityImageUrl: string expected" : null != e.ManifestVersion && e.hasOwnProperty("ManifestVersion") && !i.isString(e.ManifestVersion) ? "ManifestVersion: string expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Web_InitGame) return e;
                var t = new a.Res_Web_InitGame;
                if (null != e.RedirectUrl && (t.RedirectUrl = String(e.RedirectUrl)), null != e.TimeZone && (t.TimeZone = String(e.TimeZone)), null != e.AssetUpdateUrl && (t.AssetUpdateUrl = String(e.AssetUpdateUrl)), null != e.HeartbeatInterval && (i.Long ? (t.HeartbeatInterval = i.Long.fromValue(e.HeartbeatInterval)).unsigned = !1 : "string" == typeof e.HeartbeatInterval ? t.HeartbeatInterval = parseInt(e.HeartbeatInterval, 10) : "number" == typeof e.HeartbeatInterval ? t.HeartbeatInterval = e.HeartbeatInterval : "object" == typeof e.HeartbeatInterval && (t.HeartbeatInterval = new i.LongBits(e.HeartbeatInterval.low >>> 0, e.HeartbeatInterval.high >>> 0).toNumber())), e.ZoneList) {
                    if (!Array.isArray(e.ZoneList)) throw TypeError(".Res_Web_InitGame.ZoneList: array expected");
                    t.ZoneList = [];
                    for (var n = 0; n < e.ZoneList.length; ++n) {
                        if ("object" != typeof e.ZoneList[n]) throw TypeError(".Res_Web_InitGame.ZoneList: object expected");
                        t.ZoneList[n] = a.ZoneInfo_Model.fromObject(e.ZoneList[n])
                    }
                }
                if (null != e.ConfigureVersion && (t.ConfigureVersion = String(e.ConfigureVersion)), e.Configures) {
                    if (!Array.isArray(e.Configures)) throw TypeError(".Res_Web_InitGame.Configures: array expected");
                    for (t.Configures = [], n = 0; n < e.Configures.length; ++n) "string" == typeof e.Configures[n] ? i.base64.decode(e.Configures[n], t.Configures[n] = i.newBuffer(i.base64.length(e.Configures[n])), 0) : e.Configures[n].length >= 0 && (t.Configures[n] = e.Configures[n])
                }
                if (null != e.Ts && (i.Long ? (t.Ts = i.Long.fromValue(e.Ts)).unsigned = !1 : "string" == typeof e.Ts ? t.Ts = parseInt(e.Ts, 10) : "number" == typeof e.Ts ? t.Ts = e.Ts : "object" == typeof e.Ts && (t.Ts = new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber())), null != e.IsDebug && (t.IsDebug = Boolean(e.IsDebug)), null != e.UseEncrypt && (t.UseEncrypt = Boolean(e.UseEncrypt)), null != e.EditSkillConfig && (t.EditSkillConfig = Boolean(e.EditSkillConfig)), null != e.SDKIsTest && (t.SDKIsTest = Boolean(e.SDKIsTest)), null != e.IsLoginDebug && (t.IsLoginDebug = Boolean(e.IsLoginDebug)), e.SkillConfigs) {
                    if (!Array.isArray(e.SkillConfigs)) throw TypeError(".Res_Web_InitGame.SkillConfigs: array expected");
                    for (t.SkillConfigs = [], n = 0; n < e.SkillConfigs.length; ++n) "string" == typeof e.SkillConfigs[n] ? i.base64.decode(e.SkillConfigs[n], t.SkillConfigs[n] = i.newBuffer(i.base64.length(e.SkillConfigs[n])), 0) : e.SkillConfigs[n].length >= 0 && (t.SkillConfigs[n] = e.SkillConfigs[n])
                }
                return null != e.ConfigUpdateUrl && (t.ConfigUpdateUrl = String(e.ConfigUpdateUrl)), null != e.BaseAssetPack && (t.BaseAssetPack = String(e.BaseAssetPack)), null != e.UseDevAccount && (t.UseDevAccount = Boolean(e.UseDevAccount)), null != e.ActivityImageUrl && (t.ActivityImageUrl = String(e.ActivityImageUrl)), null != e.ManifestVersion && (t.ManifestVersion = String(e.ManifestVersion)), null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ZoneList = [], n.Configures = [], n.SkillConfigs = []), t.defaults) {
                    if (n.RedirectUrl = "", n.TimeZone = "", n.AssetUpdateUrl = "", i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.HeartbeatInterval = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.HeartbeatInterval = t.longs === String ? "0" : 0;
                    n.ConfigureVersion = "", i.Long ? (o = new i.Long(0, 0, !1), n.Ts = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Ts = t.longs === String ? "0" : 0, n.IsDebug = !1, n.UseEncrypt = !1, n.EditSkillConfig = !1, n.SDKIsTest = !1, n.IsLoginDebug = !1, n.ConfigUpdateUrl = "", n.BaseAssetPack = "", n.UseDevAccount = !1, n.ActivityImageUrl = "", n.ManifestVersion = "", n.ErrCode = 0, n.ErrMsg = ""
                }
                if (null != e.RedirectUrl && e.hasOwnProperty("RedirectUrl") && (n.RedirectUrl = e.RedirectUrl), null != e.TimeZone && e.hasOwnProperty("TimeZone") && (n.TimeZone = e.TimeZone), null != e.AssetUpdateUrl && e.hasOwnProperty("AssetUpdateUrl") && (n.AssetUpdateUrl = e.AssetUpdateUrl), null != e.HeartbeatInterval && e.hasOwnProperty("HeartbeatInterval") && ("number" == typeof e.HeartbeatInterval ? n.HeartbeatInterval = t.longs === String ? String(e.HeartbeatInterval) : e.HeartbeatInterval : n.HeartbeatInterval = t.longs === String ? i.Long.prototype.toString.call(e.HeartbeatInterval) : t.longs === Number ? new i.LongBits(e.HeartbeatInterval.low >>> 0, e.HeartbeatInterval.high >>> 0).toNumber() : e.HeartbeatInterval), e.ZoneList && e.ZoneList.length) {
                    n.ZoneList = [];
                    for (var r = 0; r < e.ZoneList.length; ++r) n.ZoneList[r] = a.ZoneInfo_Model.toObject(e.ZoneList[r], t)
                }
                if (null != e.ConfigureVersion && e.hasOwnProperty("ConfigureVersion") && (n.ConfigureVersion = e.ConfigureVersion), e.Configures && e.Configures.length)
                    for (n.Configures = [], r = 0; r < e.Configures.length; ++r) n.Configures[r] = t.bytes === String ? i.base64.encode(e.Configures[r], 0, e.Configures[r].length) : t.bytes === Array ? Array.prototype.slice.call(e.Configures[r]) : e.Configures[r];
                if (null != e.Ts && e.hasOwnProperty("Ts") && ("number" == typeof e.Ts ? n.Ts = t.longs === String ? String(e.Ts) : e.Ts : n.Ts = t.longs === String ? i.Long.prototype.toString.call(e.Ts) : t.longs === Number ? new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber() : e.Ts), null != e.IsDebug && e.hasOwnProperty("IsDebug") && (n.IsDebug = e.IsDebug), null != e.UseEncrypt && e.hasOwnProperty("UseEncrypt") && (n.UseEncrypt = e.UseEncrypt), null != e.EditSkillConfig && e.hasOwnProperty("EditSkillConfig") && (n.EditSkillConfig = e.EditSkillConfig), null != e.SDKIsTest && e.hasOwnProperty("SDKIsTest") && (n.SDKIsTest = e.SDKIsTest), null != e.IsLoginDebug && e.hasOwnProperty("IsLoginDebug") && (n.IsLoginDebug = e.IsLoginDebug), e.SkillConfigs && e.SkillConfigs.length)
                    for (n.SkillConfigs = [], r = 0; r < e.SkillConfigs.length; ++r) n.SkillConfigs[r] = t.bytes === String ? i.base64.encode(e.SkillConfigs[r], 0, e.SkillConfigs[r].length) : t.bytes === Array ? Array.prototype.slice.call(e.SkillConfigs[r]) : e.SkillConfigs[r];
                return null != e.ConfigUpdateUrl && e.hasOwnProperty("ConfigUpdateUrl") && (n.ConfigUpdateUrl = e.ConfigUpdateUrl), null != e.BaseAssetPack && e.hasOwnProperty("BaseAssetPack") && (n.BaseAssetPack = e.BaseAssetPack), null != e.UseDevAccount && e.hasOwnProperty("UseDevAccount") && (n.UseDevAccount = e.UseDevAccount), null != e.ActivityImageUrl && e.hasOwnProperty("ActivityImageUrl") && (n.ActivityImageUrl = e.ActivityImageUrl), null != e.ManifestVersion && e.hasOwnProperty("ManifestVersion") && (n.ManifestVersion = e.ManifestVersion), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Web_InitGame"
            }, e
        }(), a.Req_Web_GetLoginInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.Pid = "", e.prototype.Token = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(18).string(e.Pid), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(26).string(e.Token), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Web_GetLoginInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.Pid = e.string();
                            break;
                        case 3:
                            r.Token = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid) ? "Pid: string expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Web_GetLoginInfo) return e;
                var t = new a.Req_Web_GetLoginInfo;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Web_GetLoginInfo.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.Pid && (t.Pid = String(e.Pid)), null != e.Token && (t.Token = String(e.Token)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Param = null, n.Pid = "", n.Token = ""), null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Web_GetLoginInfo"
            }, e
        }(), a.Res_Web_GetLoginInfo = function() {
            function e(e) {
                if (this.Data = [], this.MaintenanceZones = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Data = i.emptyArray, e.prototype.Pid = "", e.prototype.MaintenanceZones = i.emptyArray, e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Data && e.Data.length)
                    for (var n = 0; n < e.Data.length; ++n) a.UserLoginInfo.encode(e.Data[n], t.uint32(10).fork()).ldelim();
                if (null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(18).string(e.Pid), null != e.MaintenanceZones && e.MaintenanceZones.length)
                    for (n = 0; n < e.MaintenanceZones.length; ++n) a.IntArray.encode(e.MaintenanceZones[n], t.uint32(26).fork()).ldelim();
                return null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Web_GetLoginInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Data && r.Data.length || (r.Data = []), r.Data.push(a.UserLoginInfo.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.Pid = e.string();
                            break;
                        case 3:
                            r.MaintenanceZones && r.MaintenanceZones.length || (r.MaintenanceZones = []), r.MaintenanceZones.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t)
                        if (n = a.UserLoginInfo.verify(e.Data[t])) return "Data." + n
                }
                if (null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid)) return "Pid: string expected";
                if (null != e.MaintenanceZones && e.hasOwnProperty("MaintenanceZones")) {
                    if (!Array.isArray(e.MaintenanceZones)) return "MaintenanceZones: array expected";
                    for (t = 0; t < e.MaintenanceZones.length; ++t) {
                        var n;
                        if (n = a.IntArray.verify(e.MaintenanceZones[t])) return "MaintenanceZones." + n
                    }
                }
                return null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Web_GetLoginInfo) return e;
                var t = new a.Res_Web_GetLoginInfo;
                if (e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".Res_Web_GetLoginInfo.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) {
                        if ("object" != typeof e.Data[n]) throw TypeError(".Res_Web_GetLoginInfo.Data: object expected");
                        t.Data[n] = a.UserLoginInfo.fromObject(e.Data[n])
                    }
                }
                if (null != e.Pid && (t.Pid = String(e.Pid)), e.MaintenanceZones) {
                    if (!Array.isArray(e.MaintenanceZones)) throw TypeError(".Res_Web_GetLoginInfo.MaintenanceZones: array expected");
                    for (t.MaintenanceZones = [], n = 0; n < e.MaintenanceZones.length; ++n) {
                        if ("object" != typeof e.MaintenanceZones[n]) throw TypeError(".Res_Web_GetLoginInfo.MaintenanceZones: object expected");
                        t.MaintenanceZones[n] = a.IntArray.fromObject(e.MaintenanceZones[n])
                    }
                }
                return null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = [], n.MaintenanceZones = []), t.defaults && (n.Pid = "", n.ErrCode = 0, n.ErrMsg = ""), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var o = 0; o < e.Data.length; ++o) n.Data[o] = a.UserLoginInfo.toObject(e.Data[o], t)
                }
                if (null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), e.MaintenanceZones && e.MaintenanceZones.length)
                    for (n.MaintenanceZones = [], o = 0; o < e.MaintenanceZones.length; ++o) n.MaintenanceZones[o] = a.IntArray.toObject(e.MaintenanceZones[o], t);
                return null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Web_GetLoginInfo"
            }, e
        }(), a.Req_Web_Login = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.Pid = "", e.prototype.Zone = 0, e.prototype.Token = "", e.prototype.SpZone = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(18).string(e.Pid), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(24).int32(e.Zone), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(34).string(e.Token), null != e.SpZone && Object.hasOwnProperty.call(e, "SpZone") && t.uint32(42).string(e.SpZone), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Web_Login; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.Pid = e.string();
                            break;
                        case 3:
                            r.Zone = e.int32();
                            break;
                        case 4:
                            r.Token = e.string();
                            break;
                        case 5:
                            r.SpZone = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid) ? "Pid: string expected" : null != e.Zone && e.hasOwnProperty("Zone") && !i.isInteger(e.Zone) ? "Zone: integer expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.SpZone && e.hasOwnProperty("SpZone") && !i.isString(e.SpZone) ? "SpZone: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Web_Login) return e;
                var t = new a.Req_Web_Login;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Web_Login.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.Pid && (t.Pid = String(e.Pid)), null != e.Zone && (t.Zone = 0 | e.Zone), null != e.Token && (t.Token = String(e.Token)), null != e.SpZone && (t.SpZone = String(e.SpZone)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Param = null, n.Pid = "", n.Zone = 0, n.Token = "", n.SpZone = ""), null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), null != e.Zone && e.hasOwnProperty("Zone") && (n.Zone = e.Zone), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.SpZone && e.hasOwnProperty("SpZone") && (n.SpZone = e.SpZone), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Web_Login"
            }, e
        }(), a.Res_Web_Login = function() {
            function e(e) {
                if (this.ExtraInfo = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Pid = "", e.prototype.GateAddress = "", e.prototype.Token = "", e.prototype.Zone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsRegister = !1, e.prototype.IsCreateRole = !1, e.prototype.PlayAnimation = !1, e.prototype.ExtraInfo = i.emptyObject, e.prototype.AgeType = 0, e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(18).string(e.Pid), null != e.GateAddress && Object.hasOwnProperty.call(e, "GateAddress") && t.uint32(26).string(e.GateAddress), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(34).string(e.Token), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(40).int64(e.Zone), null != e.IsRegister && Object.hasOwnProperty.call(e, "IsRegister") && t.uint32(48).bool(e.IsRegister), null != e.IsCreateRole && Object.hasOwnProperty.call(e, "IsCreateRole") && t.uint32(56).bool(e.IsCreateRole), null != e.PlayAnimation && Object.hasOwnProperty.call(e, "PlayAnimation") && t.uint32(64).bool(e.PlayAnimation), null != e.ExtraInfo && Object.hasOwnProperty.call(e, "ExtraInfo"))
                    for (var n = Object.keys(e.ExtraInfo), o = 0; o < n.length; ++o) t.uint32(74).fork().uint32(10).string(n[o]).uint32(18).string(e.ExtraInfo[n[o]]).ldelim();
                return null != e.AgeType && Object.hasOwnProperty.call(e, "AgeType") && t.uint32(80).int32(e.AgeType), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.Res_Web_Login; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Uid = e.int64();
                            break;
                        case 2:
                            l.Pid = e.string();
                            break;
                        case 3:
                            l.GateAddress = e.string();
                            break;
                        case 4:
                            l.Token = e.string();
                            break;
                        case 5:
                            l.Zone = e.int64();
                            break;
                        case 6:
                            l.IsRegister = e.bool();
                            break;
                        case 7:
                            l.IsCreateRole = e.bool();
                            break;
                        case 8:
                            l.PlayAnimation = e.bool();
                            break;
                        case 9:
                            l.ExtraInfo === i.emptyObject && (l.ExtraInfo = {});
                            var u = e.uint32() + e.pos;
                            for (n = "", r = ""; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.string();
                                        break;
                                    case 2:
                                        r = e.string();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.ExtraInfo[n] = r;
                            break;
                        case 10:
                            l.AgeType = e.int32();
                            break;
                        case 90:
                            l.ErrCode = e.int32();
                            break;
                        case 91:
                            l.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high))) return "Uid: integer|Long expected";
                if (null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid)) return "Pid: string expected";
                if (null != e.GateAddress && e.hasOwnProperty("GateAddress") && !i.isString(e.GateAddress)) return "GateAddress: string expected";
                if (null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token)) return "Token: string expected";
                if (null != e.Zone && e.hasOwnProperty("Zone") && !(i.isInteger(e.Zone) || e.Zone && i.isInteger(e.Zone.low) && i.isInteger(e.Zone.high))) return "Zone: integer|Long expected";
                if (null != e.IsRegister && e.hasOwnProperty("IsRegister") && "boolean" != typeof e.IsRegister) return "IsRegister: boolean expected";
                if (null != e.IsCreateRole && e.hasOwnProperty("IsCreateRole") && "boolean" != typeof e.IsCreateRole) return "IsCreateRole: boolean expected";
                if (null != e.PlayAnimation && e.hasOwnProperty("PlayAnimation") && "boolean" != typeof e.PlayAnimation) return "PlayAnimation: boolean expected";
                if (null != e.ExtraInfo && e.hasOwnProperty("ExtraInfo")) {
                    if (!i.isObject(e.ExtraInfo)) return "ExtraInfo: object expected";
                    for (var t = Object.keys(e.ExtraInfo), n = 0; n < t.length; ++n)
                        if (!i.isString(e.ExtraInfo[t[n]])) return "ExtraInfo: string{k:string} expected"
                }
                return null != e.AgeType && e.hasOwnProperty("AgeType") && !i.isInteger(e.AgeType) ? "AgeType: integer expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Web_Login) return e;
                var t = new a.Res_Web_Login;
                if (null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.Pid && (t.Pid = String(e.Pid)), null != e.GateAddress && (t.GateAddress = String(e.GateAddress)), null != e.Token && (t.Token = String(e.Token)), null != e.Zone && (i.Long ? (t.Zone = i.Long.fromValue(e.Zone)).unsigned = !1 : "string" == typeof e.Zone ? t.Zone = parseInt(e.Zone, 10) : "number" == typeof e.Zone ? t.Zone = e.Zone : "object" == typeof e.Zone && (t.Zone = new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber())), null != e.IsRegister && (t.IsRegister = Boolean(e.IsRegister)), null != e.IsCreateRole && (t.IsCreateRole = Boolean(e.IsCreateRole)), null != e.PlayAnimation && (t.PlayAnimation = Boolean(e.PlayAnimation)), e.ExtraInfo) {
                    if ("object" != typeof e.ExtraInfo) throw TypeError(".Res_Web_Login.ExtraInfo: object expected");
                    t.ExtraInfo = {};
                    for (var n = Object.keys(e.ExtraInfo), o = 0; o < n.length; ++o) t.ExtraInfo[n[o]] = String(e.ExtraInfo[n[o]])
                }
                return null != e.AgeType && (t.AgeType = 0 | e.AgeType), null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.objects || t.defaults) && (o.ExtraInfo = {}), t.defaults) {
                    if (i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.Uid = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.Uid = t.longs === String ? "0" : 0;
                    o.Pid = "", o.GateAddress = "", o.Token = "", i.Long ? (r = new i.Long(0, 0, !1), o.Zone = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.Zone = t.longs === String ? "0" : 0, o.IsRegister = !1, o.IsCreateRole = !1, o.PlayAnimation = !1, o.AgeType = 0, o.ErrCode = 0, o.ErrMsg = ""
                }
                if (null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? o.Uid = t.longs === String ? String(e.Uid) : e.Uid : o.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.Pid && e.hasOwnProperty("Pid") && (o.Pid = e.Pid), null != e.GateAddress && e.hasOwnProperty("GateAddress") && (o.GateAddress = e.GateAddress), null != e.Token && e.hasOwnProperty("Token") && (o.Token = e.Token), null != e.Zone && e.hasOwnProperty("Zone") && ("number" == typeof e.Zone ? o.Zone = t.longs === String ? String(e.Zone) : e.Zone : o.Zone = t.longs === String ? i.Long.prototype.toString.call(e.Zone) : t.longs === Number ? new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber() : e.Zone), null != e.IsRegister && e.hasOwnProperty("IsRegister") && (o.IsRegister = e.IsRegister), null != e.IsCreateRole && e.hasOwnProperty("IsCreateRole") && (o.IsCreateRole = e.IsCreateRole), null != e.PlayAnimation && e.hasOwnProperty("PlayAnimation") && (o.PlayAnimation = e.PlayAnimation), e.ExtraInfo && (n = Object.keys(e.ExtraInfo)).length) {
                    o.ExtraInfo = {};
                    for (var a = 0; a < n.length; ++a) o.ExtraInfo[n[a]] = e.ExtraInfo[n[a]]
                }
                return null != e.AgeType && e.hasOwnProperty("AgeType") && (o.AgeType = e.AgeType), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (o.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (o.ErrMsg = e.ErrMsg), o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Web_Login"
            }, e
        }(), a.Req_Web_LoginDebug = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.Pid = "", e.prototype.Zone = 0, e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(18).string(e.Pid), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(24).int32(e.Zone), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(32).int64(e.Uid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Web_LoginDebug; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.Pid = e.string();
                            break;
                        case 3:
                            r.Zone = e.int32();
                            break;
                        case 4:
                            r.Uid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid) ? "Pid: string expected" : null != e.Zone && e.hasOwnProperty("Zone") && !i.isInteger(e.Zone) ? "Zone: integer expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Web_LoginDebug) return e;
                var t = new a.Req_Web_LoginDebug;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Web_LoginDebug.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.Pid && (t.Pid = String(e.Pid)), null != e.Zone && (t.Zone = 0 | e.Zone), null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (n.Param = null, n.Pid = "", n.Zone = 0, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                return null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), null != e.Zone && e.hasOwnProperty("Zone") && (n.Zone = e.Zone), null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Web_LoginDebug"
            }, e
        }(), a.Req_Web_GetUpdateAssets = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.Ver = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.Ver && Object.hasOwnProperty.call(e, "Ver") && t.uint32(16).int64(e.Ver), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Web_GetUpdateAssets; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.Ver = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.Ver && e.hasOwnProperty("Ver") && !(i.isInteger(e.Ver) || e.Ver && i.isInteger(e.Ver.low) && i.isInteger(e.Ver.high)) ? "Ver: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Web_GetUpdateAssets) return e;
                var t = new a.Req_Web_GetUpdateAssets;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Web_GetUpdateAssets.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.Ver && (i.Long ? (t.Ver = i.Long.fromValue(e.Ver)).unsigned = !1 : "string" == typeof e.Ver ? t.Ver = parseInt(e.Ver, 10) : "number" == typeof e.Ver ? t.Ver = e.Ver : "object" == typeof e.Ver && (t.Ver = new i.LongBits(e.Ver.low >>> 0, e.Ver.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (n.Param = null, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Ver = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Ver = t.longs === String ? "0" : 0;
                return null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.Ver && e.hasOwnProperty("Ver") && ("number" == typeof e.Ver ? n.Ver = t.longs === String ? String(e.Ver) : e.Ver : n.Ver = t.longs === String ? i.Long.prototype.toString.call(e.Ver) : t.longs === Number ? new i.LongBits(e.Ver.low >>> 0, e.Ver.high >>> 0).toNumber() : e.Ver), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Web_GetUpdateAssets"
            }, e
        }(), a.Res_Web_GetUpdateAssets = function() {
            function e(e) {
                if (this.ChangeList = [], this.RemoveList = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ChangeList = i.emptyArray, e.prototype.RemoveList = i.emptyArray, e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.ChangeList && e.ChangeList.length)
                    for (var n = 0; n < e.ChangeList.length; ++n) a.HotUpdateAsset.encode(e.ChangeList[n], t.uint32(10).fork()).ldelim();
                if (null != e.RemoveList && e.RemoveList.length)
                    for (n = 0; n < e.RemoveList.length; ++n) t.uint32(18).string(e.RemoveList[n]);
                return null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Web_GetUpdateAssets; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.ChangeList && r.ChangeList.length || (r.ChangeList = []), r.ChangeList.push(a.HotUpdateAsset.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.RemoveList && r.RemoveList.length || (r.RemoveList = []), r.RemoveList.push(e.string());
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.ChangeList && e.hasOwnProperty("ChangeList")) {
                    if (!Array.isArray(e.ChangeList)) return "ChangeList: array expected";
                    for (var t = 0; t < e.ChangeList.length; ++t) {
                        var n = a.HotUpdateAsset.verify(e.ChangeList[t]);
                        if (n) return "ChangeList." + n
                    }
                }
                if (null != e.RemoveList && e.hasOwnProperty("RemoveList")) {
                    if (!Array.isArray(e.RemoveList)) return "RemoveList: array expected";
                    for (t = 0; t < e.RemoveList.length; ++t)
                        if (!i.isString(e.RemoveList[t])) return "RemoveList: string[] expected"
                }
                return null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Web_GetUpdateAssets) return e;
                var t = new a.Res_Web_GetUpdateAssets;
                if (e.ChangeList) {
                    if (!Array.isArray(e.ChangeList)) throw TypeError(".Res_Web_GetUpdateAssets.ChangeList: array expected");
                    t.ChangeList = [];
                    for (var n = 0; n < e.ChangeList.length; ++n) {
                        if ("object" != typeof e.ChangeList[n]) throw TypeError(".Res_Web_GetUpdateAssets.ChangeList: object expected");
                        t.ChangeList[n] = a.HotUpdateAsset.fromObject(e.ChangeList[n])
                    }
                }
                if (e.RemoveList) {
                    if (!Array.isArray(e.RemoveList)) throw TypeError(".Res_Web_GetUpdateAssets.RemoveList: array expected");
                    for (t.RemoveList = [], n = 0; n < e.RemoveList.length; ++n) t.RemoveList[n] = String(e.RemoveList[n])
                }
                return null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ChangeList = [], n.RemoveList = []), t.defaults && (n.ErrCode = 0, n.ErrMsg = ""), e.ChangeList && e.ChangeList.length) {
                    n.ChangeList = [];
                    for (var o = 0; o < e.ChangeList.length; ++o) n.ChangeList[o] = a.HotUpdateAsset.toObject(e.ChangeList[o], t)
                }
                if (e.RemoveList && e.RemoveList.length)
                    for (n.RemoveList = [], o = 0; o < e.RemoveList.length; ++o) n.RemoveList[o] = e.RemoveList[o];
                return null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Web_GetUpdateAssets"
            }, e
        }(), a.Req_Web_ClientEvent = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.Id = "", e.prototype.Action = "", e.prototype.Ts = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(18).string(e.Id), null != e.Action && Object.hasOwnProperty.call(e, "Action") && t.uint32(26).string(e.Action), null != e.Ts && Object.hasOwnProperty.call(e, "Ts") && t.uint32(32).int64(e.Ts), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Web_ClientEvent; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.Id = e.string();
                            break;
                        case 3:
                            r.Action = e.string();
                            break;
                        case 4:
                            r.Ts = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.Id && e.hasOwnProperty("Id") && !i.isString(e.Id) ? "Id: string expected" : null != e.Action && e.hasOwnProperty("Action") && !i.isString(e.Action) ? "Action: string expected" : null != e.Ts && e.hasOwnProperty("Ts") && !(i.isInteger(e.Ts) || e.Ts && i.isInteger(e.Ts.low) && i.isInteger(e.Ts.high)) ? "Ts: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Web_ClientEvent) return e;
                var t = new a.Req_Web_ClientEvent;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Web_ClientEvent.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.Id && (t.Id = String(e.Id)), null != e.Action && (t.Action = String(e.Action)), null != e.Ts && (i.Long ? (t.Ts = i.Long.fromValue(e.Ts)).unsigned = !1 : "string" == typeof e.Ts ? t.Ts = parseInt(e.Ts, 10) : "number" == typeof e.Ts ? t.Ts = e.Ts : "object" == typeof e.Ts && (t.Ts = new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (n.Param = null, n.Id = "", n.Action = "", i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Ts = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Ts = t.longs === String ? "0" : 0;
                return null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.Id && e.hasOwnProperty("Id") && (n.Id = e.Id), null != e.Action && e.hasOwnProperty("Action") && (n.Action = e.Action), null != e.Ts && e.hasOwnProperty("Ts") && ("number" == typeof e.Ts ? n.Ts = t.longs === String ? String(e.Ts) : e.Ts : n.Ts = t.longs === String ? i.Long.prototype.toString.call(e.Ts) : t.longs === Number ? new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber() : e.Ts), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Web_ClientEvent"
            }, e
        }(), a.Res_Web_ClientEvent = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Web_ClientEvent; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Web_ClientEvent) return e;
                var t = new a.Res_Web_ClientEvent;
                return null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.ErrCode = 0, n.ErrMsg = ""), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Web_ClientEvent"
            }, e
        }(), a.Req_Account_Register = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.AccountType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Pid = "", e.prototype.Password = "", e.prototype.VerifyCode = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.AccountType && Object.hasOwnProperty.call(e, "AccountType") && t.uint32(16).int64(e.AccountType), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(26).string(e.Pid), null != e.Password && Object.hasOwnProperty.call(e, "Password") && t.uint32(34).string(e.Password), null != e.VerifyCode && Object.hasOwnProperty.call(e, "VerifyCode") && t.uint32(42).string(e.VerifyCode), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Account_Register; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.AccountType = e.int64();
                            break;
                        case 3:
                            r.Pid = e.string();
                            break;
                        case 4:
                            r.Password = e.string();
                            break;
                        case 5:
                            r.VerifyCode = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.AccountType && e.hasOwnProperty("AccountType") && !(i.isInteger(e.AccountType) || e.AccountType && i.isInteger(e.AccountType.low) && i.isInteger(e.AccountType.high)) ? "AccountType: integer|Long expected" : null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid) ? "Pid: string expected" : null != e.Password && e.hasOwnProperty("Password") && !i.isString(e.Password) ? "Password: string expected" : null != e.VerifyCode && e.hasOwnProperty("VerifyCode") && !i.isString(e.VerifyCode) ? "VerifyCode: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Account_Register) return e;
                var t = new a.Req_Account_Register;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Account_Register.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.AccountType && (i.Long ? (t.AccountType = i.Long.fromValue(e.AccountType)).unsigned = !1 : "string" == typeof e.AccountType ? t.AccountType = parseInt(e.AccountType, 10) : "number" == typeof e.AccountType ? t.AccountType = e.AccountType : "object" == typeof e.AccountType && (t.AccountType = new i.LongBits(e.AccountType.low >>> 0, e.AccountType.high >>> 0).toNumber())), null != e.Pid && (t.Pid = String(e.Pid)), null != e.Password && (t.Password = String(e.Password)), null != e.VerifyCode && (t.VerifyCode = String(e.VerifyCode)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (n.Param = null, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AccountType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AccountType = t.longs === String ? "0" : 0;
                    n.Pid = "", n.Password = "", n.VerifyCode = ""
                }
                return null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.AccountType && e.hasOwnProperty("AccountType") && ("number" == typeof e.AccountType ? n.AccountType = t.longs === String ? String(e.AccountType) : e.AccountType : n.AccountType = t.longs === String ? i.Long.prototype.toString.call(e.AccountType) : t.longs === Number ? new i.LongBits(e.AccountType.low >>> 0, e.AccountType.high >>> 0).toNumber() : e.AccountType), null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), null != e.Password && e.hasOwnProperty("Password") && (n.Password = e.Password), null != e.VerifyCode && e.hasOwnProperty("VerifyCode") && (n.VerifyCode = e.VerifyCode), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Account_Register"
            }, e
        }(), a.Res_Account_Register = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AccountId = "", e.prototype.Token = "", e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.AccountId && Object.hasOwnProperty.call(e, "AccountId") && t.uint32(10).string(e.AccountId), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(18).string(e.Token), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Account_Register; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AccountId = e.string();
                            break;
                        case 2:
                            r.Token = e.string();
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.AccountId && e.hasOwnProperty("AccountId") && !i.isString(e.AccountId) ? "AccountId: string expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Account_Register) return e;
                var t = new a.Res_Account_Register;
                return null != e.AccountId && (t.AccountId = String(e.AccountId)), null != e.Token && (t.Token = String(e.Token)), null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.AccountId = "", n.Token = "", n.ErrCode = 0, n.ErrMsg = ""), null != e.AccountId && e.hasOwnProperty("AccountId") && (n.AccountId = e.AccountId), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Account_Register"
            }, e
        }(), a.Req_Account_Bind = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.AccountId = "", e.prototype.Token = "", e.prototype.AccountType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ThirdPartyToken = "", e.prototype.VerifyCode = "", e.prototype.Password = "", e.prototype.MailAddress = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.AccountId && Object.hasOwnProperty.call(e, "AccountId") && t.uint32(18).string(e.AccountId), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(26).string(e.Token), null != e.AccountType && Object.hasOwnProperty.call(e, "AccountType") && t.uint32(32).int64(e.AccountType), null != e.ThirdPartyToken && Object.hasOwnProperty.call(e, "ThirdPartyToken") && t.uint32(42).string(e.ThirdPartyToken), null != e.VerifyCode && Object.hasOwnProperty.call(e, "VerifyCode") && t.uint32(50).string(e.VerifyCode), null != e.Password && Object.hasOwnProperty.call(e, "Password") && t.uint32(58).string(e.Password), null != e.MailAddress && Object.hasOwnProperty.call(e, "MailAddress") && t.uint32(66).string(e.MailAddress), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Account_Bind; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.AccountId = e.string();
                            break;
                        case 3:
                            r.Token = e.string();
                            break;
                        case 4:
                            r.AccountType = e.int64();
                            break;
                        case 5:
                            r.ThirdPartyToken = e.string();
                            break;
                        case 6:
                            r.VerifyCode = e.string();
                            break;
                        case 7:
                            r.Password = e.string();
                            break;
                        case 8:
                            r.MailAddress = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.AccountId && e.hasOwnProperty("AccountId") && !i.isString(e.AccountId) ? "AccountId: string expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.AccountType && e.hasOwnProperty("AccountType") && !(i.isInteger(e.AccountType) || e.AccountType && i.isInteger(e.AccountType.low) && i.isInteger(e.AccountType.high)) ? "AccountType: integer|Long expected" : null != e.ThirdPartyToken && e.hasOwnProperty("ThirdPartyToken") && !i.isString(e.ThirdPartyToken) ? "ThirdPartyToken: string expected" : null != e.VerifyCode && e.hasOwnProperty("VerifyCode") && !i.isString(e.VerifyCode) ? "VerifyCode: string expected" : null != e.Password && e.hasOwnProperty("Password") && !i.isString(e.Password) ? "Password: string expected" : null != e.MailAddress && e.hasOwnProperty("MailAddress") && !i.isString(e.MailAddress) ? "MailAddress: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Account_Bind) return e;
                var t = new a.Req_Account_Bind;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Account_Bind.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.AccountId && (t.AccountId = String(e.AccountId)), null != e.Token && (t.Token = String(e.Token)), null != e.AccountType && (i.Long ? (t.AccountType = i.Long.fromValue(e.AccountType)).unsigned = !1 : "string" == typeof e.AccountType ? t.AccountType = parseInt(e.AccountType, 10) : "number" == typeof e.AccountType ? t.AccountType = e.AccountType : "object" == typeof e.AccountType && (t.AccountType = new i.LongBits(e.AccountType.low >>> 0, e.AccountType.high >>> 0).toNumber())), null != e.ThirdPartyToken && (t.ThirdPartyToken = String(e.ThirdPartyToken)), null != e.VerifyCode && (t.VerifyCode = String(e.VerifyCode)), null != e.Password && (t.Password = String(e.Password)), null != e.MailAddress && (t.MailAddress = String(e.MailAddress)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (n.Param = null, n.AccountId = "", n.Token = "", i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AccountType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AccountType = t.longs === String ? "0" : 0;
                    n.ThirdPartyToken = "", n.VerifyCode = "", n.Password = "", n.MailAddress = ""
                }
                return null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.AccountId && e.hasOwnProperty("AccountId") && (n.AccountId = e.AccountId), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.AccountType && e.hasOwnProperty("AccountType") && ("number" == typeof e.AccountType ? n.AccountType = t.longs === String ? String(e.AccountType) : e.AccountType : n.AccountType = t.longs === String ? i.Long.prototype.toString.call(e.AccountType) : t.longs === Number ? new i.LongBits(e.AccountType.low >>> 0, e.AccountType.high >>> 0).toNumber() : e.AccountType), null != e.ThirdPartyToken && e.hasOwnProperty("ThirdPartyToken") && (n.ThirdPartyToken = e.ThirdPartyToken), null != e.VerifyCode && e.hasOwnProperty("VerifyCode") && (n.VerifyCode = e.VerifyCode), null != e.Password && e.hasOwnProperty("Password") && (n.Password = e.Password), null != e.MailAddress && e.hasOwnProperty("MailAddress") && (n.MailAddress = e.MailAddress), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Account_Bind"
            }, e
        }(), a.Res_Account_Bind = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Token = "", e.prototype.Pid = "", e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(10).string(e.Token), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(18).string(e.Pid), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Account_Bind; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Token = e.string();
                            break;
                        case 2:
                            r.Pid = e.string();
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid) ? "Pid: string expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Account_Bind) return e;
                var t = new a.Res_Account_Bind;
                return null != e.Token && (t.Token = String(e.Token)), null != e.Pid && (t.Pid = String(e.Pid)), null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Token = "", n.Pid = "", n.ErrCode = 0, n.ErrMsg = ""), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Account_Bind"
            }, e
        }(), a.Req_Account_Login = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.AccountType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Pid = "", e.prototype.Token = "", e.prototype.Password = "", e.prototype.VerifyCode = "", e.prototype.ThirdPartyToken = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.AccountType && Object.hasOwnProperty.call(e, "AccountType") && t.uint32(16).int64(e.AccountType), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(26).string(e.Pid), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(34).string(e.Token), null != e.Password && Object.hasOwnProperty.call(e, "Password") && t.uint32(42).string(e.Password), null != e.VerifyCode && Object.hasOwnProperty.call(e, "VerifyCode") && t.uint32(50).string(e.VerifyCode), null != e.ThirdPartyToken && Object.hasOwnProperty.call(e, "ThirdPartyToken") && t.uint32(58).string(e.ThirdPartyToken), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Account_Login; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.AccountType = e.int64();
                            break;
                        case 3:
                            r.Pid = e.string();
                            break;
                        case 4:
                            r.Token = e.string();
                            break;
                        case 5:
                            r.Password = e.string();
                            break;
                        case 6:
                            r.VerifyCode = e.string();
                            break;
                        case 7:
                            r.ThirdPartyToken = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.AccountType && e.hasOwnProperty("AccountType") && !(i.isInteger(e.AccountType) || e.AccountType && i.isInteger(e.AccountType.low) && i.isInteger(e.AccountType.high)) ? "AccountType: integer|Long expected" : null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid) ? "Pid: string expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.Password && e.hasOwnProperty("Password") && !i.isString(e.Password) ? "Password: string expected" : null != e.VerifyCode && e.hasOwnProperty("VerifyCode") && !i.isString(e.VerifyCode) ? "VerifyCode: string expected" : null != e.ThirdPartyToken && e.hasOwnProperty("ThirdPartyToken") && !i.isString(e.ThirdPartyToken) ? "ThirdPartyToken: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Account_Login) return e;
                var t = new a.Req_Account_Login;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Account_Login.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.AccountType && (i.Long ? (t.AccountType = i.Long.fromValue(e.AccountType)).unsigned = !1 : "string" == typeof e.AccountType ? t.AccountType = parseInt(e.AccountType, 10) : "number" == typeof e.AccountType ? t.AccountType = e.AccountType : "object" == typeof e.AccountType && (t.AccountType = new i.LongBits(e.AccountType.low >>> 0, e.AccountType.high >>> 0).toNumber())), null != e.Pid && (t.Pid = String(e.Pid)), null != e.Token && (t.Token = String(e.Token)), null != e.Password && (t.Password = String(e.Password)), null != e.VerifyCode && (t.VerifyCode = String(e.VerifyCode)), null != e.ThirdPartyToken && (t.ThirdPartyToken = String(e.ThirdPartyToken)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (n.Param = null, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AccountType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AccountType = t.longs === String ? "0" : 0;
                    n.Pid = "", n.Token = "", n.Password = "", n.VerifyCode = "", n.ThirdPartyToken = ""
                }
                return null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.AccountType && e.hasOwnProperty("AccountType") && ("number" == typeof e.AccountType ? n.AccountType = t.longs === String ? String(e.AccountType) : e.AccountType : n.AccountType = t.longs === String ? i.Long.prototype.toString.call(e.AccountType) : t.longs === Number ? new i.LongBits(e.AccountType.low >>> 0, e.AccountType.high >>> 0).toNumber() : e.AccountType), null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.Password && e.hasOwnProperty("Password") && (n.Password = e.Password), null != e.VerifyCode && e.hasOwnProperty("VerifyCode") && (n.VerifyCode = e.VerifyCode), null != e.ThirdPartyToken && e.hasOwnProperty("ThirdPartyToken") && (n.ThirdPartyToken = e.ThirdPartyToken), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Account_Login"
            }, e
        }(), a.Res_Account_Login = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Token = "", e.prototype.Pid = "", e.prototype.IdCardVerification = 0, e.prototype.AgeType = 0, e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(10).string(e.Token), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(18).string(e.Pid), null != e.IdCardVerification && Object.hasOwnProperty.call(e, "IdCardVerification") && t.uint32(24).int32(e.IdCardVerification), null != e.AgeType && Object.hasOwnProperty.call(e, "AgeType") && t.uint32(32).int32(e.AgeType), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Account_Login; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Token = e.string();
                            break;
                        case 2:
                            r.Pid = e.string();
                            break;
                        case 3:
                            r.IdCardVerification = e.int32();
                            break;
                        case 4:
                            r.AgeType = e.int32();
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid) ? "Pid: string expected" : null != e.IdCardVerification && e.hasOwnProperty("IdCardVerification") && !i.isInteger(e.IdCardVerification) ? "IdCardVerification: integer expected" : null != e.AgeType && e.hasOwnProperty("AgeType") && !i.isInteger(e.AgeType) ? "AgeType: integer expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Account_Login) return e;
                var t = new a.Res_Account_Login;
                return null != e.Token && (t.Token = String(e.Token)), null != e.Pid && (t.Pid = String(e.Pid)), null != e.IdCardVerification && (t.IdCardVerification = 0 | e.IdCardVerification), null != e.AgeType && (t.AgeType = 0 | e.AgeType), null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Token = "", n.Pid = "", n.IdCardVerification = 0, n.AgeType = 0, n.ErrCode = 0, n.ErrMsg = ""), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), null != e.IdCardVerification && e.hasOwnProperty("IdCardVerification") && (n.IdCardVerification = e.IdCardVerification), null != e.AgeType && e.hasOwnProperty("AgeType") && (n.AgeType = e.AgeType), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Account_Login"
            }, e
        }(), a.Req_Account_Password = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.Pid = "", e.prototype.Password = "", e.prototype.OriginalPassword = "", e.prototype.VerifyCode = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(18).string(e.Pid), null != e.Password && Object.hasOwnProperty.call(e, "Password") && t.uint32(26).string(e.Password), null != e.OriginalPassword && Object.hasOwnProperty.call(e, "OriginalPassword") && t.uint32(34).string(e.OriginalPassword), null != e.VerifyCode && Object.hasOwnProperty.call(e, "VerifyCode") && t.uint32(42).string(e.VerifyCode), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Account_Password; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.Pid = e.string();
                            break;
                        case 3:
                            r.Password = e.string();
                            break;
                        case 4:
                            r.OriginalPassword = e.string();
                            break;
                        case 5:
                            r.VerifyCode = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid) ? "Pid: string expected" : null != e.Password && e.hasOwnProperty("Password") && !i.isString(e.Password) ? "Password: string expected" : null != e.OriginalPassword && e.hasOwnProperty("OriginalPassword") && !i.isString(e.OriginalPassword) ? "OriginalPassword: string expected" : null != e.VerifyCode && e.hasOwnProperty("VerifyCode") && !i.isString(e.VerifyCode) ? "VerifyCode: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Account_Password) return e;
                var t = new a.Req_Account_Password;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Account_Password.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.Pid && (t.Pid = String(e.Pid)), null != e.Password && (t.Password = String(e.Password)), null != e.OriginalPassword && (t.OriginalPassword = String(e.OriginalPassword)), null != e.VerifyCode && (t.VerifyCode = String(e.VerifyCode)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Param = null, n.Pid = "", n.Password = "", n.OriginalPassword = "", n.VerifyCode = ""), null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), null != e.Password && e.hasOwnProperty("Password") && (n.Password = e.Password), null != e.OriginalPassword && e.hasOwnProperty("OriginalPassword") && (n.OriginalPassword = e.OriginalPassword), null != e.VerifyCode && e.hasOwnProperty("VerifyCode") && (n.VerifyCode = e.VerifyCode), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Account_Password"
            }, e
        }(), a.Res_Account_Password = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Account_Password; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Account_Password) return e;
                var t = new a.Res_Account_Password;
                return null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.ErrCode = 0, n.ErrMsg = ""), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Account_Password"
            }, e
        }(), a.Req_Account_VerifyCode = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.MailAddress = "", e.prototype.Locale = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.MailAddress && Object.hasOwnProperty.call(e, "MailAddress") && t.uint32(18).string(e.MailAddress), null != e.Locale && Object.hasOwnProperty.call(e, "Locale") && t.uint32(26).string(e.Locale), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Account_VerifyCode; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.MailAddress = e.string();
                            break;
                        case 3:
                            r.Locale = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.MailAddress && e.hasOwnProperty("MailAddress") && !i.isString(e.MailAddress) ? "MailAddress: string expected" : null != e.Locale && e.hasOwnProperty("Locale") && !i.isString(e.Locale) ? "Locale: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Account_VerifyCode) return e;
                var t = new a.Req_Account_VerifyCode;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Account_VerifyCode.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.MailAddress && (t.MailAddress = String(e.MailAddress)), null != e.Locale && (t.Locale = String(e.Locale)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Param = null, n.MailAddress = "", n.Locale = ""), null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.MailAddress && e.hasOwnProperty("MailAddress") && (n.MailAddress = e.MailAddress), null != e.Locale && e.hasOwnProperty("Locale") && (n.Locale = e.Locale), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Account_VerifyCode"
            }, e
        }(), a.Res_Account_VerifyCode = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Account_VerifyCode; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Account_VerifyCode) return e;
                var t = new a.Res_Account_VerifyCode;
                return null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.ErrCode = 0, n.ErrMsg = ""), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Account_VerifyCode"
            }, e
        }(), a.Req_Account_IdCardVerification = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = null, e.prototype.Token = "", e.prototype.Pid = "", e.prototype.Name = "", e.prototype.IdCard = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Param && Object.hasOwnProperty.call(e, "Param") && a.WebCommonParam.encode(e.Param, t.uint32(10).fork()).ldelim(), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(18).string(e.Token), null != e.Pid && Object.hasOwnProperty.call(e, "Pid") && t.uint32(26).string(e.Pid), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(34).string(e.Name), null != e.IdCard && Object.hasOwnProperty.call(e, "IdCard") && t.uint32(42).string(e.IdCard), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Account_IdCardVerification; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param = a.WebCommonParam.decode(e, e.uint32());
                            break;
                        case 2:
                            r.Token = e.string();
                            break;
                        case 3:
                            r.Pid = e.string();
                            break;
                        case 4:
                            r.Name = e.string();
                            break;
                        case 5:
                            r.IdCard = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    var t = a.WebCommonParam.verify(e.Param);
                    if (t) return "Param." + t
                }
                return null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.Pid && e.hasOwnProperty("Pid") && !i.isString(e.Pid) ? "Pid: string expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.IdCard && e.hasOwnProperty("IdCard") && !i.isString(e.IdCard) ? "IdCard: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Account_IdCardVerification) return e;
                var t = new a.Req_Account_IdCardVerification;
                if (null != e.Param) {
                    if ("object" != typeof e.Param) throw TypeError(".Req_Account_IdCardVerification.Param: object expected");
                    t.Param = a.WebCommonParam.fromObject(e.Param)
                }
                return null != e.Token && (t.Token = String(e.Token)), null != e.Pid && (t.Pid = String(e.Pid)), null != e.Name && (t.Name = String(e.Name)), null != e.IdCard && (t.IdCard = String(e.IdCard)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Param = null, n.Token = "", n.Pid = "", n.Name = "", n.IdCard = ""), null != e.Param && e.hasOwnProperty("Param") && (n.Param = a.WebCommonParam.toObject(e.Param, t)), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.Pid && e.hasOwnProperty("Pid") && (n.Pid = e.Pid), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.IdCard && e.hasOwnProperty("IdCard") && (n.IdCard = e.IdCard), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Account_IdCardVerification"
            }, e
        }(), a.Res_Account_IdCardVerification = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = 0, e.prototype.AgeType = 0, e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int32(e.Result), null != e.AgeType && Object.hasOwnProperty.call(e, "AgeType") && t.uint32(16).int32(e.AgeType), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Account_IdCardVerification; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int32();
                            break;
                        case 2:
                            r.AgeType = e.int32();
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result) ? "Result: integer expected" : null != e.AgeType && e.hasOwnProperty("AgeType") && !i.isInteger(e.AgeType) ? "AgeType: integer expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Account_IdCardVerification) return e;
                var t = new a.Res_Account_IdCardVerification;
                return null != e.Result && (t.Result = 0 | e.Result), null != e.AgeType && (t.AgeType = 0 | e.AgeType), null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Result = 0, n.AgeType = 0, n.ErrCode = 0, n.ErrMsg = ""), null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), null != e.AgeType && e.hasOwnProperty("AgeType") && (n.AgeType = e.AgeType), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Account_IdCardVerification"
            }, e
        }(), a.Req_Editor_Login = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sign = "", e.prototype.Username = "", e.prototype.Password = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sign && Object.hasOwnProperty.call(e, "Sign") && t.uint32(10).string(e.Sign), null != e.Username && Object.hasOwnProperty.call(e, "Username") && t.uint32(18).string(e.Username), null != e.Password && Object.hasOwnProperty.call(e, "Password") && t.uint32(26).string(e.Password), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Editor_Login; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sign = e.string();
                            break;
                        case 2:
                            r.Username = e.string();
                            break;
                        case 3:
                            r.Password = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sign && e.hasOwnProperty("Sign") && !i.isString(e.Sign) ? "Sign: string expected" : null != e.Username && e.hasOwnProperty("Username") && !i.isString(e.Username) ? "Username: string expected" : null != e.Password && e.hasOwnProperty("Password") && !i.isString(e.Password) ? "Password: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Editor_Login) return e;
                var t = new a.Req_Editor_Login;
                return null != e.Sign && (t.Sign = String(e.Sign)), null != e.Username && (t.Username = String(e.Username)), null != e.Password && (t.Password = String(e.Password)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Sign = "", n.Username = "", n.Password = ""), null != e.Sign && e.hasOwnProperty("Sign") && (n.Sign = e.Sign), null != e.Username && e.hasOwnProperty("Username") && (n.Username = e.Username), null != e.Password && e.hasOwnProperty("Password") && (n.Password = e.Password), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Editor_Login"
            }, e
        }(), a.Res_Editor_Login = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Token = "", e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(34).string(e.Token), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Editor_Login; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 4:
                            r.Token = e.string();
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Editor_Login) return e;
                var t = new a.Res_Editor_Login;
                return null != e.Token && (t.Token = String(e.Token)), null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Token = "", n.ErrCode = 0, n.ErrMsg = ""), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Editor_Login"
            }, e
        }(), a.Req_Editor_GetList = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Token = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(10).string(e.Token), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Editor_GetList; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Token = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Editor_GetList) return e;
                var t = new a.Req_Editor_GetList;
                return null != e.Token && (t.Token = String(e.Token)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Token = ""), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Editor_GetList"
            }, e
        }(), a.Res_Editor_GetList = function() {
            function e(e) {
                if (this.ConfigList = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ConfigList = i.emptyArray, e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.ConfigList && e.ConfigList.length)
                    for (var n = 0; n < e.ConfigList.length; ++n) t.uint32(10).string(e.ConfigList[n]);
                return null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Editor_GetList; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.ConfigList && r.ConfigList.length || (r.ConfigList = []), r.ConfigList.push(e.string());
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.ConfigList && e.hasOwnProperty("ConfigList")) {
                    if (!Array.isArray(e.ConfigList)) return "ConfigList: array expected";
                    for (var t = 0; t < e.ConfigList.length; ++t)
                        if (!i.isString(e.ConfigList[t])) return "ConfigList: string[] expected"
                }
                return null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Editor_GetList) return e;
                var t = new a.Res_Editor_GetList;
                if (e.ConfigList) {
                    if (!Array.isArray(e.ConfigList)) throw TypeError(".Res_Editor_GetList.ConfigList: array expected");
                    t.ConfigList = [];
                    for (var n = 0; n < e.ConfigList.length; ++n) t.ConfigList[n] = String(e.ConfigList[n])
                }
                return null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ConfigList = []), t.defaults && (n.ErrCode = 0, n.ErrMsg = ""), e.ConfigList && e.ConfigList.length) {
                    n.ConfigList = [];
                    for (var o = 0; o < e.ConfigList.length; ++o) n.ConfigList[o] = e.ConfigList[o]
                }
                return null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Editor_GetList"
            }, e
        }(), a.Req_Editor_NewConfig = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Token = "", e.prototype.ConfigName = "", e.prototype.BundleName = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(10).string(e.Token), null != e.ConfigName && Object.hasOwnProperty.call(e, "ConfigName") && t.uint32(18).string(e.ConfigName), null != e.BundleName && Object.hasOwnProperty.call(e, "BundleName") && t.uint32(26).string(e.BundleName), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Editor_NewConfig; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Token = e.string();
                            break;
                        case 2:
                            r.ConfigName = e.string();
                            break;
                        case 3:
                            r.BundleName = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.ConfigName && e.hasOwnProperty("ConfigName") && !i.isString(e.ConfigName) ? "ConfigName: string expected" : null != e.BundleName && e.hasOwnProperty("BundleName") && !i.isString(e.BundleName) ? "BundleName: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Editor_NewConfig) return e;
                var t = new a.Req_Editor_NewConfig;
                return null != e.Token && (t.Token = String(e.Token)), null != e.ConfigName && (t.ConfigName = String(e.ConfigName)), null != e.BundleName && (t.BundleName = String(e.BundleName)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Token = "", n.ConfigName = "", n.BundleName = ""), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.ConfigName && e.hasOwnProperty("ConfigName") && (n.ConfigName = e.ConfigName), null != e.BundleName && e.hasOwnProperty("BundleName") && (n.BundleName = e.BundleName), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Editor_NewConfig"
            }, e
        }(), a.Res_Editor_NewConfig = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Editor_NewConfig; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Editor_NewConfig) return e;
                var t = new a.Res_Editor_NewConfig;
                return null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.ErrCode = 0, n.ErrMsg = ""), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Editor_NewConfig"
            }, e
        }(), a.Req_Editor_SaveConfig = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Token = "", e.prototype.ConfigName = "", e.prototype.Data = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(10).string(e.Token), null != e.ConfigName && Object.hasOwnProperty.call(e, "ConfigName") && t.uint32(18).string(e.ConfigName), null != e.Data && Object.hasOwnProperty.call(e, "Data") && a.HeroSkillConfig.encode(e.Data, t.uint32(26).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Editor_SaveConfig; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Token = e.string();
                            break;
                        case 2:
                            r.ConfigName = e.string();
                            break;
                        case 3:
                            r.Data = a.HeroSkillConfig.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token)) return "Token: string expected";
                if (null != e.ConfigName && e.hasOwnProperty("ConfigName") && !i.isString(e.ConfigName)) return "ConfigName: string expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    var t = a.HeroSkillConfig.verify(e.Data);
                    if (t) return "Data." + t
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Editor_SaveConfig) return e;
                var t = new a.Req_Editor_SaveConfig;
                if (null != e.Token && (t.Token = String(e.Token)), null != e.ConfigName && (t.ConfigName = String(e.ConfigName)), null != e.Data) {
                    if ("object" != typeof e.Data) throw TypeError(".Req_Editor_SaveConfig.Data: object expected");
                    t.Data = a.HeroSkillConfig.fromObject(e.Data)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Token = "", n.ConfigName = "", n.Data = null), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.ConfigName && e.hasOwnProperty("ConfigName") && (n.ConfigName = e.ConfigName), null != e.Data && e.hasOwnProperty("Data") && (n.Data = a.HeroSkillConfig.toObject(e.Data, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Editor_SaveConfig"
            }, e
        }(), a.Res_Editor_SaveConfig = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Editor_SaveConfig; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Editor_SaveConfig) return e;
                var t = new a.Res_Editor_SaveConfig;
                return null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.ErrCode = 0, n.ErrMsg = ""), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Editor_SaveConfig"
            }, e
        }(), a.Req_Editor_CommitConfig = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Token = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(10).string(e.Token), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Editor_CommitConfig; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Token = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Editor_CommitConfig) return e;
                var t = new a.Req_Editor_CommitConfig;
                return null != e.Token && (t.Token = String(e.Token)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Token = ""), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Editor_CommitConfig"
            }, e
        }(), a.Res_Editor_CommitConfig = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Message = "", e.prototype.ErrCode = 0, e.prototype.ErrMsg = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Message && Object.hasOwnProperty.call(e, "Message") && t.uint32(10).string(e.Message), null != e.ErrCode && Object.hasOwnProperty.call(e, "ErrCode") && t.uint32(720).int32(e.ErrCode), null != e.ErrMsg && Object.hasOwnProperty.call(e, "ErrMsg") && t.uint32(730).string(e.ErrMsg), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Editor_CommitConfig; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Message = e.string();
                            break;
                        case 90:
                            r.ErrCode = e.int32();
                            break;
                        case 91:
                            r.ErrMsg = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Message && e.hasOwnProperty("Message") && !i.isString(e.Message) ? "Message: string expected" : null != e.ErrCode && e.hasOwnProperty("ErrCode") && !i.isInteger(e.ErrCode) ? "ErrCode: integer expected" : null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && !i.isString(e.ErrMsg) ? "ErrMsg: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Editor_CommitConfig) return e;
                var t = new a.Res_Editor_CommitConfig;
                return null != e.Message && (t.Message = String(e.Message)), null != e.ErrCode && (t.ErrCode = 0 | e.ErrCode), null != e.ErrMsg && (t.ErrMsg = String(e.ErrMsg)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Message = "", n.ErrCode = 0, n.ErrMsg = ""), null != e.Message && e.hasOwnProperty("Message") && (n.Message = e.Message), null != e.ErrCode && e.hasOwnProperty("ErrCode") && (n.ErrCode = e.ErrCode), null != e.ErrMsg && e.hasOwnProperty("ErrMsg") && (n.ErrMsg = e.ErrMsg), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Editor_CommitConfig"
            }, e
        }(), a.Req_Player_EnterGame = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Token = "", e.prototype.ConfigureVer = "", e.prototype.ClientVer = "", e.prototype.AssetVer = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Locale = "", e.prototype.IsReconnect = !1, e.prototype.IsReloadData = !1, e.prototype.Country = "", e.prototype.Currency = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.Token && Object.hasOwnProperty.call(e, "Token") && t.uint32(18).string(e.Token), null != e.ConfigureVer && Object.hasOwnProperty.call(e, "ConfigureVer") && t.uint32(26).string(e.ConfigureVer), null != e.ClientVer && Object.hasOwnProperty.call(e, "ClientVer") && t.uint32(34).string(e.ClientVer), null != e.AssetVer && Object.hasOwnProperty.call(e, "AssetVer") && t.uint32(40).int64(e.AssetVer), null != e.Locale && Object.hasOwnProperty.call(e, "Locale") && t.uint32(50).string(e.Locale), null != e.IsReconnect && Object.hasOwnProperty.call(e, "IsReconnect") && t.uint32(56).bool(e.IsReconnect), null != e.IsReloadData && Object.hasOwnProperty.call(e, "IsReloadData") && t.uint32(64).bool(e.IsReloadData), null != e.Country && Object.hasOwnProperty.call(e, "Country") && t.uint32(74).string(e.Country), null != e.Currency && Object.hasOwnProperty.call(e, "Currency") && t.uint32(82).string(e.Currency), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_EnterGame; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.Token = e.string();
                            break;
                        case 3:
                            r.ConfigureVer = e.string();
                            break;
                        case 4:
                            r.ClientVer = e.string();
                            break;
                        case 5:
                            r.AssetVer = e.int64();
                            break;
                        case 6:
                            r.Locale = e.string();
                            break;
                        case 7:
                            r.IsReconnect = e.bool();
                            break;
                        case 8:
                            r.IsReloadData = e.bool();
                            break;
                        case 9:
                            r.Country = e.string();
                            break;
                        case 10:
                            r.Currency = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null != e.Token && e.hasOwnProperty("Token") && !i.isString(e.Token) ? "Token: string expected" : null != e.ConfigureVer && e.hasOwnProperty("ConfigureVer") && !i.isString(e.ConfigureVer) ? "ConfigureVer: string expected" : null != e.ClientVer && e.hasOwnProperty("ClientVer") && !i.isString(e.ClientVer) ? "ClientVer: string expected" : null != e.AssetVer && e.hasOwnProperty("AssetVer") && !(i.isInteger(e.AssetVer) || e.AssetVer && i.isInteger(e.AssetVer.low) && i.isInteger(e.AssetVer.high)) ? "AssetVer: integer|Long expected" : null != e.Locale && e.hasOwnProperty("Locale") && !i.isString(e.Locale) ? "Locale: string expected" : null != e.IsReconnect && e.hasOwnProperty("IsReconnect") && "boolean" != typeof e.IsReconnect ? "IsReconnect: boolean expected" : null != e.IsReloadData && e.hasOwnProperty("IsReloadData") && "boolean" != typeof e.IsReloadData ? "IsReloadData: boolean expected" : null != e.Country && e.hasOwnProperty("Country") && !i.isString(e.Country) ? "Country: string expected" : null != e.Currency && e.hasOwnProperty("Currency") && !i.isString(e.Currency) ? "Currency: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_EnterGame) return e;
                var t = new a.Req_Player_EnterGame;
                return null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.Token && (t.Token = String(e.Token)), null != e.ConfigureVer && (t.ConfigureVer = String(e.ConfigureVer)), null != e.ClientVer && (t.ClientVer = String(e.ClientVer)), null != e.AssetVer && (i.Long ? (t.AssetVer = i.Long.fromValue(e.AssetVer)).unsigned = !1 : "string" == typeof e.AssetVer ? t.AssetVer = parseInt(e.AssetVer, 10) : "number" == typeof e.AssetVer ? t.AssetVer = e.AssetVer : "object" == typeof e.AssetVer && (t.AssetVer = new i.LongBits(e.AssetVer.low >>> 0, e.AssetVer.high >>> 0).toNumber())), null != e.Locale && (t.Locale = String(e.Locale)), null != e.IsReconnect && (t.IsReconnect = Boolean(e.IsReconnect)), null != e.IsReloadData && (t.IsReloadData = Boolean(e.IsReloadData)), null != e.Country && (t.Country = String(e.Country)), null != e.Currency && (t.Currency = String(e.Currency)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    n.Token = "", n.ConfigureVer = "", n.ClientVer = "", i.Long ? (o = new i.Long(0, 0, !1), n.AssetVer = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.AssetVer = t.longs === String ? "0" : 0, n.Locale = "", n.IsReconnect = !1, n.IsReloadData = !1, n.Country = "", n.Currency = ""
                }
                return null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.Token && e.hasOwnProperty("Token") && (n.Token = e.Token), null != e.ConfigureVer && e.hasOwnProperty("ConfigureVer") && (n.ConfigureVer = e.ConfigureVer), null != e.ClientVer && e.hasOwnProperty("ClientVer") && (n.ClientVer = e.ClientVer), null != e.AssetVer && e.hasOwnProperty("AssetVer") && ("number" == typeof e.AssetVer ? n.AssetVer = t.longs === String ? String(e.AssetVer) : e.AssetVer : n.AssetVer = t.longs === String ? i.Long.prototype.toString.call(e.AssetVer) : t.longs === Number ? new i.LongBits(e.AssetVer.low >>> 0, e.AssetVer.high >>> 0).toNumber() : e.AssetVer), null != e.Locale && e.hasOwnProperty("Locale") && (n.Locale = e.Locale), null != e.IsReconnect && e.hasOwnProperty("IsReconnect") && (n.IsReconnect = e.IsReconnect), null != e.IsReloadData && e.hasOwnProperty("IsReloadData") && (n.IsReloadData = e.IsReloadData), null != e.Country && e.hasOwnProperty("Country") && (n.Country = e.Country), null != e.Currency && e.hasOwnProperty("Currency") && (n.Currency = e.Currency), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_EnterGame"
            }, e
        }(), a.Res_Player_EnterGame = function() {
            function e(e) {
                if (this.Data = [], this.RankAchievements = [], this.PlayingBattles = [], this.MyBlackList = [], this.Announcements = [], this.PublicChat = [], this.PrivateChat = [], this.TriggerGifts = [], this.ActivityConfigs = [], this.ActivityTrailers = [], this.PopupGifts = [], this.Maintains = [], this.ActivityLocaleMap = {}, this.ActTrailersLocaleMap = {}, this.ClosedModuleIds = [], this.SkillConfigs = {}, this.CacheEventIds = [], this.ModuleStartTimes = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Data = i.emptyArray, e.prototype.Ts = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OnlineDruationTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ChanceTestUser = !1, e.prototype.StatExcludeUid = !1, e.prototype.LastLogin = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RankAchievements = i.emptyArray, e.prototype.PlayingBattles = i.emptyArray, e.prototype.MyBlackList = i.emptyArray, e.prototype.WorldLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Announcements = i.emptyArray, e.prototype.ZoneGroupResetTime = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PublicChat = i.emptyArray, e.prototype.PrivateChat = i.emptyArray, e.prototype.TriggerGifts = i.emptyArray, e.prototype.ActivityConfigs = i.emptyArray, e.prototype.ActivityTrailers = i.emptyArray, e.prototype.PopupGifts = i.emptyArray, e.prototype.Maintains = i.emptyArray, e.prototype.ActivityLocaleMap = i.emptyObject, e.prototype.ActTrailersLocaleMap = i.emptyObject, e.prototype.ClosedModuleIds = i.emptyArray, e.prototype.SkillConfigs = i.emptyObject, e.prototype.CacheEventIds = i.emptyArray, e.prototype.Alliance = null, e.prototype.ModuleStartTimes = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Data && e.Data.length)
                    for (var n = 0; n < e.Data.length; ++n) a.UserModelChange.encode(e.Data[n], t.uint32(10).fork()).ldelim();
                if (null != e.Ts && Object.hasOwnProperty.call(e, "Ts") && t.uint32(16).int64(e.Ts), null != e.OnlineDruationTime && Object.hasOwnProperty.call(e, "OnlineDruationTime") && t.uint32(24).int64(e.OnlineDruationTime), null != e.ChanceTestUser && Object.hasOwnProperty.call(e, "ChanceTestUser") && t.uint32(32).bool(e.ChanceTestUser), null != e.StatExcludeUid && Object.hasOwnProperty.call(e, "StatExcludeUid") && t.uint32(40).bool(e.StatExcludeUid), null != e.LastLogin && Object.hasOwnProperty.call(e, "LastLogin") && t.uint32(48).int64(e.LastLogin), null != e.RankAchievements && e.RankAchievements.length)
                    for (n = 0; n < e.RankAchievements.length; ++n) a.RankData.encode(e.RankAchievements[n], t.uint32(90).fork()).ldelim();
                if (null != e.PlayingBattles && e.PlayingBattles.length)
                    for (n = 0; n < e.PlayingBattles.length; ++n) a.UserPlayingBattle_Model.encode(e.PlayingBattles[n], t.uint32(98).fork()).ldelim();
                if (null != e.MyBlackList && e.MyBlackList.length) {
                    for (t.uint32(106).fork(), n = 0; n < e.MyBlackList.length; ++n) t.int64(e.MyBlackList[n]);
                    t.ldelim()
                }
                if (null != e.WorldLevel && Object.hasOwnProperty.call(e, "WorldLevel") && t.uint32(112).int64(e.WorldLevel), null != e.Announcements && e.Announcements.length)
                    for (n = 0; n < e.Announcements.length; ++n) a.UserMail_Model.encode(e.Announcements[n], t.uint32(122).fork()).ldelim();
                if (null != e.ZoneGroupResetTime && Object.hasOwnProperty.call(e, "ZoneGroupResetTime") && t.uint32(128).int64(e.ZoneGroupResetTime), null != e.PublicChat && e.PublicChat.length)
                    for (n = 0; n < e.PublicChat.length; ++n) a.ChatMessage_Model.encode(e.PublicChat[n], t.uint32(170).fork()).ldelim();
                if (null != e.PrivateChat && e.PrivateChat.length)
                    for (n = 0; n < e.PrivateChat.length; ++n) a.PrivateChatMessage_Model.encode(e.PrivateChat[n], t.uint32(178).fork()).ldelim();
                if (null != e.TriggerGifts && e.TriggerGifts.length)
                    for (n = 0; n < e.TriggerGifts.length; ++n) a.TriggerGift_Model.encode(e.TriggerGifts[n], t.uint32(250).fork()).ldelim();
                if (null != e.ActivityConfigs && e.ActivityConfigs.length)
                    for (n = 0; n < e.ActivityConfigs.length; ++n) a.ActivityConfigData.encode(e.ActivityConfigs[n], t.uint32(258).fork()).ldelim();
                if (null != e.ActivityTrailers && e.ActivityTrailers.length)
                    for (n = 0; n < e.ActivityTrailers.length; ++n) a.ActivityTrailer.encode(e.ActivityTrailers[n], t.uint32(266).fork()).ldelim();
                if (null != e.PopupGifts && e.PopupGifts.length)
                    for (n = 0; n < e.PopupGifts.length; ++n) a.PopupGift_Model.encode(e.PopupGifts[n], t.uint32(274).fork()).ldelim();
                if (null != e.Maintains && e.Maintains.length)
                    for (n = 0; n < e.Maintains.length; ++n) a.SystemMaintain_Model.encode(e.Maintains[n], t.uint32(282).fork()).ldelim();
                if (null != e.ActivityLocaleMap && Object.hasOwnProperty.call(e, "ActivityLocaleMap")) {
                    var o = Object.keys(e.ActivityLocaleMap);
                    for (n = 0; n < o.length; ++n) t.uint32(290).fork().uint32(10).string(o[n]).uint32(18).string(e.ActivityLocaleMap[o[n]]).ldelim()
                }
                if (null != e.ActTrailersLocaleMap && Object.hasOwnProperty.call(e, "ActTrailersLocaleMap"))
                    for (o = Object.keys(e.ActTrailersLocaleMap), n = 0; n < o.length; ++n) t.uint32(298).fork().uint32(10).string(o[n]).uint32(18).string(e.ActTrailersLocaleMap[o[n]]).ldelim();
                if (null != e.ClosedModuleIds && e.ClosedModuleIds.length) {
                    for (t.uint32(330).fork(), n = 0; n < e.ClosedModuleIds.length; ++n) t.int64(e.ClosedModuleIds[n]);
                    t.ldelim()
                }
                if (null != e.SkillConfigs && Object.hasOwnProperty.call(e, "SkillConfigs"))
                    for (o = Object.keys(e.SkillConfigs), n = 0; n < o.length; ++n) t.uint32(338).fork().uint32(10).string(o[n]).uint32(18).bytes(e.SkillConfigs[o[n]]).ldelim();
                if (null != e.CacheEventIds && e.CacheEventIds.length) {
                    for (t.uint32(410).fork(), n = 0; n < e.CacheEventIds.length; ++n) t.int64(e.CacheEventIds[n]);
                    t.ldelim()
                }
                if (null != e.Alliance && Object.hasOwnProperty.call(e, "Alliance") && a.AllianceInfo_Model.encode(e.Alliance, t.uint32(418).fork()).ldelim(), null != e.ModuleStartTimes && e.ModuleStartTimes.length)
                    for (n = 0; n < e.ModuleStartTimes.length; ++n) a.ModuleStartTime_Model.encode(e.ModuleStartTimes[n], t.uint32(426).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.Res_Player_EnterGame; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Data && l.Data.length || (l.Data = []), l.Data.push(a.UserModelChange.decode(e, e.uint32()));
                            break;
                        case 2:
                            l.Ts = e.int64();
                            break;
                        case 3:
                            l.OnlineDruationTime = e.int64();
                            break;
                        case 4:
                            l.ChanceTestUser = e.bool();
                            break;
                        case 5:
                            l.StatExcludeUid = e.bool();
                            break;
                        case 6:
                            l.LastLogin = e.int64();
                            break;
                        case 11:
                            l.RankAchievements && l.RankAchievements.length || (l.RankAchievements = []), l.RankAchievements.push(a.RankData.decode(e, e.uint32()));
                            break;
                        case 12:
                            l.PlayingBattles && l.PlayingBattles.length || (l.PlayingBattles = []), l.PlayingBattles.push(a.UserPlayingBattle_Model.decode(e, e.uint32()));
                            break;
                        case 13:
                            if (l.MyBlackList && l.MyBlackList.length || (l.MyBlackList = []), 2 == (7 & c))
                                for (var u = e.uint32() + e.pos; e.pos < u;) l.MyBlackList.push(e.int64());
                            else l.MyBlackList.push(e.int64());
                            break;
                        case 14:
                            l.WorldLevel = e.int64();
                            break;
                        case 15:
                            l.Announcements && l.Announcements.length || (l.Announcements = []), l.Announcements.push(a.UserMail_Model.decode(e, e.uint32()));
                            break;
                        case 16:
                            l.ZoneGroupResetTime = e.int64();
                            break;
                        case 21:
                            l.PublicChat && l.PublicChat.length || (l.PublicChat = []), l.PublicChat.push(a.ChatMessage_Model.decode(e, e.uint32()));
                            break;
                        case 22:
                            l.PrivateChat && l.PrivateChat.length || (l.PrivateChat = []), l.PrivateChat.push(a.PrivateChatMessage_Model.decode(e, e.uint32()));
                            break;
                        case 31:
                            l.TriggerGifts && l.TriggerGifts.length || (l.TriggerGifts = []), l.TriggerGifts.push(a.TriggerGift_Model.decode(e, e.uint32()));
                            break;
                        case 32:
                            l.ActivityConfigs && l.ActivityConfigs.length || (l.ActivityConfigs = []), l.ActivityConfigs.push(a.ActivityConfigData.decode(e, e.uint32()));
                            break;
                        case 33:
                            l.ActivityTrailers && l.ActivityTrailers.length || (l.ActivityTrailers = []), l.ActivityTrailers.push(a.ActivityTrailer.decode(e, e.uint32()));
                            break;
                        case 34:
                            l.PopupGifts && l.PopupGifts.length || (l.PopupGifts = []), l.PopupGifts.push(a.PopupGift_Model.decode(e, e.uint32()));
                            break;
                        case 35:
                            l.Maintains && l.Maintains.length || (l.Maintains = []), l.Maintains.push(a.SystemMaintain_Model.decode(e, e.uint32()));
                            break;
                        case 36:
                            for (l.ActivityLocaleMap === i.emptyObject && (l.ActivityLocaleMap = {}), u = e.uint32() + e.pos, n = "", r = ""; e.pos < u;) switch ((p = e.uint32()) >>> 3) {
                                case 1:
                                    n = e.string();
                                    break;
                                case 2:
                                    r = e.string();
                                    break;
                                default:
                                    e.skipType(7 & p)
                            }
                            l.ActivityLocaleMap[n] = r;
                            break;
                        case 37:
                            for (l.ActTrailersLocaleMap === i.emptyObject && (l.ActTrailersLocaleMap = {}), u = e.uint32() + e.pos, n = "", r = ""; e.pos < u;) switch ((p = e.uint32()) >>> 3) {
                                case 1:
                                    n = e.string();
                                    break;
                                case 2:
                                    r = e.string();
                                    break;
                                default:
                                    e.skipType(7 & p)
                            }
                            l.ActTrailersLocaleMap[n] = r;
                            break;
                        case 41:
                            if (l.ClosedModuleIds && l.ClosedModuleIds.length || (l.ClosedModuleIds = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.ClosedModuleIds.push(e.int64());
                            else l.ClosedModuleIds.push(e.int64());
                            break;
                        case 42:
                            for (l.SkillConfigs === i.emptyObject && (l.SkillConfigs = {}), u = e.uint32() + e.pos, n = "", r = []; e.pos < u;) {
                                var p;
                                switch ((p = e.uint32()) >>> 3) {
                                    case 1:
                                        n = e.string();
                                        break;
                                    case 2:
                                        r = e.bytes();
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.SkillConfigs[n] = r;
                            break;
                        case 51:
                            if (l.CacheEventIds && l.CacheEventIds.length || (l.CacheEventIds = []), 2 == (7 & c))
                                for (u = e.uint32() + e.pos; e.pos < u;) l.CacheEventIds.push(e.int64());
                            else l.CacheEventIds.push(e.int64());
                            break;
                        case 52:
                            l.Alliance = a.AllianceInfo_Model.decode(e, e.uint32());
                            break;
                        case 53:
                            l.ModuleStartTimes && l.ModuleStartTimes.length || (l.ModuleStartTimes = []), l.ModuleStartTimes.push(a.ModuleStartTime_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t)
                        if (o = a.UserModelChange.verify(e.Data[t])) return "Data." + o
                }
                if (null != e.Ts && e.hasOwnProperty("Ts") && !(i.isInteger(e.Ts) || e.Ts && i.isInteger(e.Ts.low) && i.isInteger(e.Ts.high))) return "Ts: integer|Long expected";
                if (null != e.OnlineDruationTime && e.hasOwnProperty("OnlineDruationTime") && !(i.isInteger(e.OnlineDruationTime) || e.OnlineDruationTime && i.isInteger(e.OnlineDruationTime.low) && i.isInteger(e.OnlineDruationTime.high))) return "OnlineDruationTime: integer|Long expected";
                if (null != e.ChanceTestUser && e.hasOwnProperty("ChanceTestUser") && "boolean" != typeof e.ChanceTestUser) return "ChanceTestUser: boolean expected";
                if (null != e.StatExcludeUid && e.hasOwnProperty("StatExcludeUid") && "boolean" != typeof e.StatExcludeUid) return "StatExcludeUid: boolean expected";
                if (null != e.LastLogin && e.hasOwnProperty("LastLogin") && !(i.isInteger(e.LastLogin) || e.LastLogin && i.isInteger(e.LastLogin.low) && i.isInteger(e.LastLogin.high))) return "LastLogin: integer|Long expected";
                if (null != e.RankAchievements && e.hasOwnProperty("RankAchievements")) {
                    if (!Array.isArray(e.RankAchievements)) return "RankAchievements: array expected";
                    for (t = 0; t < e.RankAchievements.length; ++t)
                        if (o = a.RankData.verify(e.RankAchievements[t])) return "RankAchievements." + o
                }
                if (null != e.PlayingBattles && e.hasOwnProperty("PlayingBattles")) {
                    if (!Array.isArray(e.PlayingBattles)) return "PlayingBattles: array expected";
                    for (t = 0; t < e.PlayingBattles.length; ++t)
                        if (o = a.UserPlayingBattle_Model.verify(e.PlayingBattles[t])) return "PlayingBattles." + o
                }
                if (null != e.MyBlackList && e.hasOwnProperty("MyBlackList")) {
                    if (!Array.isArray(e.MyBlackList)) return "MyBlackList: array expected";
                    for (t = 0; t < e.MyBlackList.length; ++t)
                        if (!(i.isInteger(e.MyBlackList[t]) || e.MyBlackList[t] && i.isInteger(e.MyBlackList[t].low) && i.isInteger(e.MyBlackList[t].high))) return "MyBlackList: integer|Long[] expected"
                }
                if (null != e.WorldLevel && e.hasOwnProperty("WorldLevel") && !(i.isInteger(e.WorldLevel) || e.WorldLevel && i.isInteger(e.WorldLevel.low) && i.isInteger(e.WorldLevel.high))) return "WorldLevel: integer|Long expected";
                if (null != e.Announcements && e.hasOwnProperty("Announcements")) {
                    if (!Array.isArray(e.Announcements)) return "Announcements: array expected";
                    for (t = 0; t < e.Announcements.length; ++t)
                        if (o = a.UserMail_Model.verify(e.Announcements[t])) return "Announcements." + o
                }
                if (null != e.ZoneGroupResetTime && e.hasOwnProperty("ZoneGroupResetTime") && !(i.isInteger(e.ZoneGroupResetTime) || e.ZoneGroupResetTime && i.isInteger(e.ZoneGroupResetTime.low) && i.isInteger(e.ZoneGroupResetTime.high))) return "ZoneGroupResetTime: integer|Long expected";
                if (null != e.PublicChat && e.hasOwnProperty("PublicChat")) {
                    if (!Array.isArray(e.PublicChat)) return "PublicChat: array expected";
                    for (t = 0; t < e.PublicChat.length; ++t)
                        if (o = a.ChatMessage_Model.verify(e.PublicChat[t])) return "PublicChat." + o
                }
                if (null != e.PrivateChat && e.hasOwnProperty("PrivateChat")) {
                    if (!Array.isArray(e.PrivateChat)) return "PrivateChat: array expected";
                    for (t = 0; t < e.PrivateChat.length; ++t)
                        if (o = a.PrivateChatMessage_Model.verify(e.PrivateChat[t])) return "PrivateChat." + o
                }
                if (null != e.TriggerGifts && e.hasOwnProperty("TriggerGifts")) {
                    if (!Array.isArray(e.TriggerGifts)) return "TriggerGifts: array expected";
                    for (t = 0; t < e.TriggerGifts.length; ++t)
                        if (o = a.TriggerGift_Model.verify(e.TriggerGifts[t])) return "TriggerGifts." + o
                }
                if (null != e.ActivityConfigs && e.hasOwnProperty("ActivityConfigs")) {
                    if (!Array.isArray(e.ActivityConfigs)) return "ActivityConfigs: array expected";
                    for (t = 0; t < e.ActivityConfigs.length; ++t)
                        if (o = a.ActivityConfigData.verify(e.ActivityConfigs[t])) return "ActivityConfigs." + o
                }
                if (null != e.ActivityTrailers && e.hasOwnProperty("ActivityTrailers")) {
                    if (!Array.isArray(e.ActivityTrailers)) return "ActivityTrailers: array expected";
                    for (t = 0; t < e.ActivityTrailers.length; ++t)
                        if (o = a.ActivityTrailer.verify(e.ActivityTrailers[t])) return "ActivityTrailers." + o
                }
                if (null != e.PopupGifts && e.hasOwnProperty("PopupGifts")) {
                    if (!Array.isArray(e.PopupGifts)) return "PopupGifts: array expected";
                    for (t = 0; t < e.PopupGifts.length; ++t)
                        if (o = a.PopupGift_Model.verify(e.PopupGifts[t])) return "PopupGifts." + o
                }
                if (null != e.Maintains && e.hasOwnProperty("Maintains")) {
                    if (!Array.isArray(e.Maintains)) return "Maintains: array expected";
                    for (t = 0; t < e.Maintains.length; ++t)
                        if (o = a.SystemMaintain_Model.verify(e.Maintains[t])) return "Maintains." + o
                }
                if (null != e.ActivityLocaleMap && e.hasOwnProperty("ActivityLocaleMap")) {
                    if (!i.isObject(e.ActivityLocaleMap)) return "ActivityLocaleMap: object expected";
                    var n = Object.keys(e.ActivityLocaleMap);
                    for (t = 0; t < n.length; ++t)
                        if (!i.isString(e.ActivityLocaleMap[n[t]])) return "ActivityLocaleMap: string{k:string} expected"
                }
                if (null != e.ActTrailersLocaleMap && e.hasOwnProperty("ActTrailersLocaleMap")) {
                    if (!i.isObject(e.ActTrailersLocaleMap)) return "ActTrailersLocaleMap: object expected";
                    for (n = Object.keys(e.ActTrailersLocaleMap), t = 0; t < n.length; ++t)
                        if (!i.isString(e.ActTrailersLocaleMap[n[t]])) return "ActTrailersLocaleMap: string{k:string} expected"
                }
                if (null != e.ClosedModuleIds && e.hasOwnProperty("ClosedModuleIds")) {
                    if (!Array.isArray(e.ClosedModuleIds)) return "ClosedModuleIds: array expected";
                    for (t = 0; t < e.ClosedModuleIds.length; ++t)
                        if (!(i.isInteger(e.ClosedModuleIds[t]) || e.ClosedModuleIds[t] && i.isInteger(e.ClosedModuleIds[t].low) && i.isInteger(e.ClosedModuleIds[t].high))) return "ClosedModuleIds: integer|Long[] expected"
                }
                if (null != e.SkillConfigs && e.hasOwnProperty("SkillConfigs")) {
                    if (!i.isObject(e.SkillConfigs)) return "SkillConfigs: object expected";
                    for (n = Object.keys(e.SkillConfigs), t = 0; t < n.length; ++t)
                        if (!(e.SkillConfigs[n[t]] && "number" == typeof e.SkillConfigs[n[t]].length || i.isString(e.SkillConfigs[n[t]]))) return "SkillConfigs: buffer{k:string} expected"
                }
                if (null != e.CacheEventIds && e.hasOwnProperty("CacheEventIds")) {
                    if (!Array.isArray(e.CacheEventIds)) return "CacheEventIds: array expected";
                    for (t = 0; t < e.CacheEventIds.length; ++t)
                        if (!(i.isInteger(e.CacheEventIds[t]) || e.CacheEventIds[t] && i.isInteger(e.CacheEventIds[t].low) && i.isInteger(e.CacheEventIds[t].high))) return "CacheEventIds: integer|Long[] expected"
                }
                if (null != e.Alliance && e.hasOwnProperty("Alliance") && (o = a.AllianceInfo_Model.verify(e.Alliance))) return "Alliance." + o;
                if (null != e.ModuleStartTimes && e.hasOwnProperty("ModuleStartTimes")) {
                    if (!Array.isArray(e.ModuleStartTimes)) return "ModuleStartTimes: array expected";
                    for (t = 0; t < e.ModuleStartTimes.length; ++t) {
                        var o;
                        if (o = a.ModuleStartTime_Model.verify(e.ModuleStartTimes[t])) return "ModuleStartTimes." + o
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_EnterGame) return e;
                var t = new a.Res_Player_EnterGame;
                if (e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".Res_Player_EnterGame.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) {
                        if ("object" != typeof e.Data[n]) throw TypeError(".Res_Player_EnterGame.Data: object expected");
                        t.Data[n] = a.UserModelChange.fromObject(e.Data[n])
                    }
                }
                if (null != e.Ts && (i.Long ? (t.Ts = i.Long.fromValue(e.Ts)).unsigned = !1 : "string" == typeof e.Ts ? t.Ts = parseInt(e.Ts, 10) : "number" == typeof e.Ts ? t.Ts = e.Ts : "object" == typeof e.Ts && (t.Ts = new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber())), null != e.OnlineDruationTime && (i.Long ? (t.OnlineDruationTime = i.Long.fromValue(e.OnlineDruationTime)).unsigned = !1 : "string" == typeof e.OnlineDruationTime ? t.OnlineDruationTime = parseInt(e.OnlineDruationTime, 10) : "number" == typeof e.OnlineDruationTime ? t.OnlineDruationTime = e.OnlineDruationTime : "object" == typeof e.OnlineDruationTime && (t.OnlineDruationTime = new i.LongBits(e.OnlineDruationTime.low >>> 0, e.OnlineDruationTime.high >>> 0).toNumber())), null != e.ChanceTestUser && (t.ChanceTestUser = Boolean(e.ChanceTestUser)), null != e.StatExcludeUid && (t.StatExcludeUid = Boolean(e.StatExcludeUid)), null != e.LastLogin && (i.Long ? (t.LastLogin = i.Long.fromValue(e.LastLogin)).unsigned = !1 : "string" == typeof e.LastLogin ? t.LastLogin = parseInt(e.LastLogin, 10) : "number" == typeof e.LastLogin ? t.LastLogin = e.LastLogin : "object" == typeof e.LastLogin && (t.LastLogin = new i.LongBits(e.LastLogin.low >>> 0, e.LastLogin.high >>> 0).toNumber())), e.RankAchievements) {
                    if (!Array.isArray(e.RankAchievements)) throw TypeError(".Res_Player_EnterGame.RankAchievements: array expected");
                    for (t.RankAchievements = [], n = 0; n < e.RankAchievements.length; ++n) {
                        if ("object" != typeof e.RankAchievements[n]) throw TypeError(".Res_Player_EnterGame.RankAchievements: object expected");
                        t.RankAchievements[n] = a.RankData.fromObject(e.RankAchievements[n])
                    }
                }
                if (e.PlayingBattles) {
                    if (!Array.isArray(e.PlayingBattles)) throw TypeError(".Res_Player_EnterGame.PlayingBattles: array expected");
                    for (t.PlayingBattles = [], n = 0; n < e.PlayingBattles.length; ++n) {
                        if ("object" != typeof e.PlayingBattles[n]) throw TypeError(".Res_Player_EnterGame.PlayingBattles: object expected");
                        t.PlayingBattles[n] = a.UserPlayingBattle_Model.fromObject(e.PlayingBattles[n])
                    }
                }
                if (e.MyBlackList) {
                    if (!Array.isArray(e.MyBlackList)) throw TypeError(".Res_Player_EnterGame.MyBlackList: array expected");
                    for (t.MyBlackList = [], n = 0; n < e.MyBlackList.length; ++n) i.Long ? (t.MyBlackList[n] = i.Long.fromValue(e.MyBlackList[n])).unsigned = !1 : "string" == typeof e.MyBlackList[n] ? t.MyBlackList[n] = parseInt(e.MyBlackList[n], 10) : "number" == typeof e.MyBlackList[n] ? t.MyBlackList[n] = e.MyBlackList[n] : "object" == typeof e.MyBlackList[n] && (t.MyBlackList[n] = new i.LongBits(e.MyBlackList[n].low >>> 0, e.MyBlackList[n].high >>> 0).toNumber())
                }
                if (null != e.WorldLevel && (i.Long ? (t.WorldLevel = i.Long.fromValue(e.WorldLevel)).unsigned = !1 : "string" == typeof e.WorldLevel ? t.WorldLevel = parseInt(e.WorldLevel, 10) : "number" == typeof e.WorldLevel ? t.WorldLevel = e.WorldLevel : "object" == typeof e.WorldLevel && (t.WorldLevel = new i.LongBits(e.WorldLevel.low >>> 0, e.WorldLevel.high >>> 0).toNumber())), e.Announcements) {
                    if (!Array.isArray(e.Announcements)) throw TypeError(".Res_Player_EnterGame.Announcements: array expected");
                    for (t.Announcements = [], n = 0; n < e.Announcements.length; ++n) {
                        if ("object" != typeof e.Announcements[n]) throw TypeError(".Res_Player_EnterGame.Announcements: object expected");
                        t.Announcements[n] = a.UserMail_Model.fromObject(e.Announcements[n])
                    }
                }
                if (null != e.ZoneGroupResetTime && (i.Long ? (t.ZoneGroupResetTime = i.Long.fromValue(e.ZoneGroupResetTime)).unsigned = !1 : "string" == typeof e.ZoneGroupResetTime ? t.ZoneGroupResetTime = parseInt(e.ZoneGroupResetTime, 10) : "number" == typeof e.ZoneGroupResetTime ? t.ZoneGroupResetTime = e.ZoneGroupResetTime : "object" == typeof e.ZoneGroupResetTime && (t.ZoneGroupResetTime = new i.LongBits(e.ZoneGroupResetTime.low >>> 0, e.ZoneGroupResetTime.high >>> 0).toNumber())), e.PublicChat) {
                    if (!Array.isArray(e.PublicChat)) throw TypeError(".Res_Player_EnterGame.PublicChat: array expected");
                    for (t.PublicChat = [], n = 0; n < e.PublicChat.length; ++n) {
                        if ("object" != typeof e.PublicChat[n]) throw TypeError(".Res_Player_EnterGame.PublicChat: object expected");
                        t.PublicChat[n] = a.ChatMessage_Model.fromObject(e.PublicChat[n])
                    }
                }
                if (e.PrivateChat) {
                    if (!Array.isArray(e.PrivateChat)) throw TypeError(".Res_Player_EnterGame.PrivateChat: array expected");
                    for (t.PrivateChat = [], n = 0; n < e.PrivateChat.length; ++n) {
                        if ("object" != typeof e.PrivateChat[n]) throw TypeError(".Res_Player_EnterGame.PrivateChat: object expected");
                        t.PrivateChat[n] = a.PrivateChatMessage_Model.fromObject(e.PrivateChat[n])
                    }
                }
                if (e.TriggerGifts) {
                    if (!Array.isArray(e.TriggerGifts)) throw TypeError(".Res_Player_EnterGame.TriggerGifts: array expected");
                    for (t.TriggerGifts = [], n = 0; n < e.TriggerGifts.length; ++n) {
                        if ("object" != typeof e.TriggerGifts[n]) throw TypeError(".Res_Player_EnterGame.TriggerGifts: object expected");
                        t.TriggerGifts[n] = a.TriggerGift_Model.fromObject(e.TriggerGifts[n])
                    }
                }
                if (e.ActivityConfigs) {
                    if (!Array.isArray(e.ActivityConfigs)) throw TypeError(".Res_Player_EnterGame.ActivityConfigs: array expected");
                    for (t.ActivityConfigs = [], n = 0; n < e.ActivityConfigs.length; ++n) {
                        if ("object" != typeof e.ActivityConfigs[n]) throw TypeError(".Res_Player_EnterGame.ActivityConfigs: object expected");
                        t.ActivityConfigs[n] = a.ActivityConfigData.fromObject(e.ActivityConfigs[n])
                    }
                }
                if (e.ActivityTrailers) {
                    if (!Array.isArray(e.ActivityTrailers)) throw TypeError(".Res_Player_EnterGame.ActivityTrailers: array expected");
                    for (t.ActivityTrailers = [], n = 0; n < e.ActivityTrailers.length; ++n) {
                        if ("object" != typeof e.ActivityTrailers[n]) throw TypeError(".Res_Player_EnterGame.ActivityTrailers: object expected");
                        t.ActivityTrailers[n] = a.ActivityTrailer.fromObject(e.ActivityTrailers[n])
                    }
                }
                if (e.PopupGifts) {
                    if (!Array.isArray(e.PopupGifts)) throw TypeError(".Res_Player_EnterGame.PopupGifts: array expected");
                    for (t.PopupGifts = [], n = 0; n < e.PopupGifts.length; ++n) {
                        if ("object" != typeof e.PopupGifts[n]) throw TypeError(".Res_Player_EnterGame.PopupGifts: object expected");
                        t.PopupGifts[n] = a.PopupGift_Model.fromObject(e.PopupGifts[n])
                    }
                }
                if (e.Maintains) {
                    if (!Array.isArray(e.Maintains)) throw TypeError(".Res_Player_EnterGame.Maintains: array expected");
                    for (t.Maintains = [], n = 0; n < e.Maintains.length; ++n) {
                        if ("object" != typeof e.Maintains[n]) throw TypeError(".Res_Player_EnterGame.Maintains: object expected");
                        t.Maintains[n] = a.SystemMaintain_Model.fromObject(e.Maintains[n])
                    }
                }
                if (e.ActivityLocaleMap) {
                    if ("object" != typeof e.ActivityLocaleMap) throw TypeError(".Res_Player_EnterGame.ActivityLocaleMap: object expected");
                    t.ActivityLocaleMap = {};
                    var o = Object.keys(e.ActivityLocaleMap);
                    for (n = 0; n < o.length; ++n) t.ActivityLocaleMap[o[n]] = String(e.ActivityLocaleMap[o[n]])
                }
                if (e.ActTrailersLocaleMap) {
                    if ("object" != typeof e.ActTrailersLocaleMap) throw TypeError(".Res_Player_EnterGame.ActTrailersLocaleMap: object expected");
                    for (t.ActTrailersLocaleMap = {}, o = Object.keys(e.ActTrailersLocaleMap), n = 0; n < o.length; ++n) t.ActTrailersLocaleMap[o[n]] = String(e.ActTrailersLocaleMap[o[n]])
                }
                if (e.ClosedModuleIds) {
                    if (!Array.isArray(e.ClosedModuleIds)) throw TypeError(".Res_Player_EnterGame.ClosedModuleIds: array expected");
                    for (t.ClosedModuleIds = [], n = 0; n < e.ClosedModuleIds.length; ++n) i.Long ? (t.ClosedModuleIds[n] = i.Long.fromValue(e.ClosedModuleIds[n])).unsigned = !1 : "string" == typeof e.ClosedModuleIds[n] ? t.ClosedModuleIds[n] = parseInt(e.ClosedModuleIds[n], 10) : "number" == typeof e.ClosedModuleIds[n] ? t.ClosedModuleIds[n] = e.ClosedModuleIds[n] : "object" == typeof e.ClosedModuleIds[n] && (t.ClosedModuleIds[n] = new i.LongBits(e.ClosedModuleIds[n].low >>> 0, e.ClosedModuleIds[n].high >>> 0).toNumber())
                }
                if (e.SkillConfigs) {
                    if ("object" != typeof e.SkillConfigs) throw TypeError(".Res_Player_EnterGame.SkillConfigs: object expected");
                    for (t.SkillConfigs = {}, o = Object.keys(e.SkillConfigs), n = 0; n < o.length; ++n) "string" == typeof e.SkillConfigs[o[n]] ? i.base64.decode(e.SkillConfigs[o[n]], t.SkillConfigs[o[n]] = i.newBuffer(i.base64.length(e.SkillConfigs[o[n]])), 0) : e.SkillConfigs[o[n]].length >= 0 && (t.SkillConfigs[o[n]] = e.SkillConfigs[o[n]])
                }
                if (e.CacheEventIds) {
                    if (!Array.isArray(e.CacheEventIds)) throw TypeError(".Res_Player_EnterGame.CacheEventIds: array expected");
                    for (t.CacheEventIds = [], n = 0; n < e.CacheEventIds.length; ++n) i.Long ? (t.CacheEventIds[n] = i.Long.fromValue(e.CacheEventIds[n])).unsigned = !1 : "string" == typeof e.CacheEventIds[n] ? t.CacheEventIds[n] = parseInt(e.CacheEventIds[n], 10) : "number" == typeof e.CacheEventIds[n] ? t.CacheEventIds[n] = e.CacheEventIds[n] : "object" == typeof e.CacheEventIds[n] && (t.CacheEventIds[n] = new i.LongBits(e.CacheEventIds[n].low >>> 0, e.CacheEventIds[n].high >>> 0).toNumber())
                }
                if (null != e.Alliance) {
                    if ("object" != typeof e.Alliance) throw TypeError(".Res_Player_EnterGame.Alliance: object expected");
                    t.Alliance = a.AllianceInfo_Model.fromObject(e.Alliance)
                }
                if (e.ModuleStartTimes) {
                    if (!Array.isArray(e.ModuleStartTimes)) throw TypeError(".Res_Player_EnterGame.ModuleStartTimes: array expected");
                    for (t.ModuleStartTimes = [], n = 0; n < e.ModuleStartTimes.length; ++n) {
                        if ("object" != typeof e.ModuleStartTimes[n]) throw TypeError(".Res_Player_EnterGame.ModuleStartTimes: object expected");
                        t.ModuleStartTimes[n] = a.ModuleStartTime_Model.fromObject(e.ModuleStartTimes[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.Data = [], o.RankAchievements = [], o.PlayingBattles = [], o.MyBlackList = [], o.Announcements = [], o.PublicChat = [], o.PrivateChat = [], o.TriggerGifts = [], o.ActivityConfigs = [], o.ActivityTrailers = [], o.PopupGifts = [], o.Maintains = [], o.ClosedModuleIds = [], o.CacheEventIds = [], o.ModuleStartTimes = []), (t.objects || t.defaults) && (o.ActivityLocaleMap = {}, o.ActTrailersLocaleMap = {}, o.SkillConfigs = {}), t.defaults) {
                    if (i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.Ts = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.Ts = t.longs === String ? "0" : 0;
                    i.Long ? (r = new i.Long(0, 0, !1), o.OnlineDruationTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.OnlineDruationTime = t.longs === String ? "0" : 0, o.ChanceTestUser = !1, o.StatExcludeUid = !1, i.Long ? (r = new i.Long(0, 0, !1), o.LastLogin = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.LastLogin = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.WorldLevel = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.WorldLevel = t.longs === String ? "0" : 0, i.Long ? (r = new i.Long(0, 0, !1), o.ZoneGroupResetTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.ZoneGroupResetTime = t.longs === String ? "0" : 0, o.Alliance = null
                }
                if (e.Data && e.Data.length) {
                    o.Data = [];
                    for (var s = 0; s < e.Data.length; ++s) o.Data[s] = a.UserModelChange.toObject(e.Data[s], t)
                }
                if (null != e.Ts && e.hasOwnProperty("Ts") && ("number" == typeof e.Ts ? o.Ts = t.longs === String ? String(e.Ts) : e.Ts : o.Ts = t.longs === String ? i.Long.prototype.toString.call(e.Ts) : t.longs === Number ? new i.LongBits(e.Ts.low >>> 0, e.Ts.high >>> 0).toNumber() : e.Ts), null != e.OnlineDruationTime && e.hasOwnProperty("OnlineDruationTime") && ("number" == typeof e.OnlineDruationTime ? o.OnlineDruationTime = t.longs === String ? String(e.OnlineDruationTime) : e.OnlineDruationTime : o.OnlineDruationTime = t.longs === String ? i.Long.prototype.toString.call(e.OnlineDruationTime) : t.longs === Number ? new i.LongBits(e.OnlineDruationTime.low >>> 0, e.OnlineDruationTime.high >>> 0).toNumber() : e.OnlineDruationTime), null != e.ChanceTestUser && e.hasOwnProperty("ChanceTestUser") && (o.ChanceTestUser = e.ChanceTestUser), null != e.StatExcludeUid && e.hasOwnProperty("StatExcludeUid") && (o.StatExcludeUid = e.StatExcludeUid), null != e.LastLogin && e.hasOwnProperty("LastLogin") && ("number" == typeof e.LastLogin ? o.LastLogin = t.longs === String ? String(e.LastLogin) : e.LastLogin : o.LastLogin = t.longs === String ? i.Long.prototype.toString.call(e.LastLogin) : t.longs === Number ? new i.LongBits(e.LastLogin.low >>> 0, e.LastLogin.high >>> 0).toNumber() : e.LastLogin), e.RankAchievements && e.RankAchievements.length)
                    for (o.RankAchievements = [], s = 0; s < e.RankAchievements.length; ++s) o.RankAchievements[s] = a.RankData.toObject(e.RankAchievements[s], t);
                if (e.PlayingBattles && e.PlayingBattles.length)
                    for (o.PlayingBattles = [], s = 0; s < e.PlayingBattles.length; ++s) o.PlayingBattles[s] = a.UserPlayingBattle_Model.toObject(e.PlayingBattles[s], t);
                if (e.MyBlackList && e.MyBlackList.length)
                    for (o.MyBlackList = [], s = 0; s < e.MyBlackList.length; ++s) "number" == typeof e.MyBlackList[s] ? o.MyBlackList[s] = t.longs === String ? String(e.MyBlackList[s]) : e.MyBlackList[s] : o.MyBlackList[s] = t.longs === String ? i.Long.prototype.toString.call(e.MyBlackList[s]) : t.longs === Number ? new i.LongBits(e.MyBlackList[s].low >>> 0, e.MyBlackList[s].high >>> 0).toNumber() : e.MyBlackList[s];
                if (null != e.WorldLevel && e.hasOwnProperty("WorldLevel") && ("number" == typeof e.WorldLevel ? o.WorldLevel = t.longs === String ? String(e.WorldLevel) : e.WorldLevel : o.WorldLevel = t.longs === String ? i.Long.prototype.toString.call(e.WorldLevel) : t.longs === Number ? new i.LongBits(e.WorldLevel.low >>> 0, e.WorldLevel.high >>> 0).toNumber() : e.WorldLevel), e.Announcements && e.Announcements.length)
                    for (o.Announcements = [], s = 0; s < e.Announcements.length; ++s) o.Announcements[s] = a.UserMail_Model.toObject(e.Announcements[s], t);
                if (null != e.ZoneGroupResetTime && e.hasOwnProperty("ZoneGroupResetTime") && ("number" == typeof e.ZoneGroupResetTime ? o.ZoneGroupResetTime = t.longs === String ? String(e.ZoneGroupResetTime) : e.ZoneGroupResetTime : o.ZoneGroupResetTime = t.longs === String ? i.Long.prototype.toString.call(e.ZoneGroupResetTime) : t.longs === Number ? new i.LongBits(e.ZoneGroupResetTime.low >>> 0, e.ZoneGroupResetTime.high >>> 0).toNumber() : e.ZoneGroupResetTime), e.PublicChat && e.PublicChat.length)
                    for (o.PublicChat = [], s = 0; s < e.PublicChat.length; ++s) o.PublicChat[s] = a.ChatMessage_Model.toObject(e.PublicChat[s], t);
                if (e.PrivateChat && e.PrivateChat.length)
                    for (o.PrivateChat = [], s = 0; s < e.PrivateChat.length; ++s) o.PrivateChat[s] = a.PrivateChatMessage_Model.toObject(e.PrivateChat[s], t);
                if (e.TriggerGifts && e.TriggerGifts.length)
                    for (o.TriggerGifts = [], s = 0; s < e.TriggerGifts.length; ++s) o.TriggerGifts[s] = a.TriggerGift_Model.toObject(e.TriggerGifts[s], t);
                if (e.ActivityConfigs && e.ActivityConfigs.length)
                    for (o.ActivityConfigs = [], s = 0; s < e.ActivityConfigs.length; ++s) o.ActivityConfigs[s] = a.ActivityConfigData.toObject(e.ActivityConfigs[s], t);
                if (e.ActivityTrailers && e.ActivityTrailers.length)
                    for (o.ActivityTrailers = [], s = 0; s < e.ActivityTrailers.length; ++s) o.ActivityTrailers[s] = a.ActivityTrailer.toObject(e.ActivityTrailers[s], t);
                if (e.PopupGifts && e.PopupGifts.length)
                    for (o.PopupGifts = [], s = 0; s < e.PopupGifts.length; ++s) o.PopupGifts[s] = a.PopupGift_Model.toObject(e.PopupGifts[s], t);
                if (e.Maintains && e.Maintains.length)
                    for (o.Maintains = [], s = 0; s < e.Maintains.length; ++s) o.Maintains[s] = a.SystemMaintain_Model.toObject(e.Maintains[s], t);
                if (e.ActivityLocaleMap && (n = Object.keys(e.ActivityLocaleMap)).length)
                    for (o.ActivityLocaleMap = {}, s = 0; s < n.length; ++s) o.ActivityLocaleMap[n[s]] = e.ActivityLocaleMap[n[s]];
                if (e.ActTrailersLocaleMap && (n = Object.keys(e.ActTrailersLocaleMap)).length)
                    for (o.ActTrailersLocaleMap = {}, s = 0; s < n.length; ++s) o.ActTrailersLocaleMap[n[s]] = e.ActTrailersLocaleMap[n[s]];
                if (e.ClosedModuleIds && e.ClosedModuleIds.length)
                    for (o.ClosedModuleIds = [], s = 0; s < e.ClosedModuleIds.length; ++s) "number" == typeof e.ClosedModuleIds[s] ? o.ClosedModuleIds[s] = t.longs === String ? String(e.ClosedModuleIds[s]) : e.ClosedModuleIds[s] : o.ClosedModuleIds[s] = t.longs === String ? i.Long.prototype.toString.call(e.ClosedModuleIds[s]) : t.longs === Number ? new i.LongBits(e.ClosedModuleIds[s].low >>> 0, e.ClosedModuleIds[s].high >>> 0).toNumber() : e.ClosedModuleIds[s];
                if (e.SkillConfigs && (n = Object.keys(e.SkillConfigs)).length)
                    for (o.SkillConfigs = {}, s = 0; s < n.length; ++s) o.SkillConfigs[n[s]] = t.bytes === String ? i.base64.encode(e.SkillConfigs[n[s]], 0, e.SkillConfigs[n[s]].length) : t.bytes === Array ? Array.prototype.slice.call(e.SkillConfigs[n[s]]) : e.SkillConfigs[n[s]];
                if (e.CacheEventIds && e.CacheEventIds.length)
                    for (o.CacheEventIds = [], s = 0; s < e.CacheEventIds.length; ++s) "number" == typeof e.CacheEventIds[s] ? o.CacheEventIds[s] = t.longs === String ? String(e.CacheEventIds[s]) : e.CacheEventIds[s] : o.CacheEventIds[s] = t.longs === String ? i.Long.prototype.toString.call(e.CacheEventIds[s]) : t.longs === Number ? new i.LongBits(e.CacheEventIds[s].low >>> 0, e.CacheEventIds[s].high >>> 0).toNumber() : e.CacheEventIds[s];
                if (null != e.Alliance && e.hasOwnProperty("Alliance") && (o.Alliance = a.AllianceInfo_Model.toObject(e.Alliance, t)), e.ModuleStartTimes && e.ModuleStartTimes.length)
                    for (o.ModuleStartTimes = [], s = 0; s < e.ModuleStartTimes.length; ++s) o.ModuleStartTimes[s] = a.ModuleStartTime_Model.toObject(e.ModuleStartTimes[s], t);
                return o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_EnterGame"
            }, e
        }(), a.Req_Player_ProcessCacheEvent = function() {
            function e(e) {
                if (this.CacheEventIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.CacheEventIds = i.emptyArray, e.prototype.CacheEventType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.CacheEventIds && e.CacheEventIds.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.CacheEventIds.length; ++n) t.int64(e.CacheEventIds[n]);
                    t.ldelim()
                }
                return null != e.CacheEventType && Object.hasOwnProperty.call(e, "CacheEventType") && t.uint32(16).int64(e.CacheEventType), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ProcessCacheEvent; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.CacheEventIds && r.CacheEventIds.length || (r.CacheEventIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.CacheEventIds.push(e.int64());
                            else r.CacheEventIds.push(e.int64());
                            break;
                        case 2:
                            r.CacheEventType = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.CacheEventIds && e.hasOwnProperty("CacheEventIds")) {
                    if (!Array.isArray(e.CacheEventIds)) return "CacheEventIds: array expected";
                    for (var t = 0; t < e.CacheEventIds.length; ++t)
                        if (!(i.isInteger(e.CacheEventIds[t]) || e.CacheEventIds[t] && i.isInteger(e.CacheEventIds[t].low) && i.isInteger(e.CacheEventIds[t].high))) return "CacheEventIds: integer|Long[] expected"
                }
                return null != e.CacheEventType && e.hasOwnProperty("CacheEventType") && !(i.isInteger(e.CacheEventType) || e.CacheEventType && i.isInteger(e.CacheEventType.low) && i.isInteger(e.CacheEventType.high)) ? "CacheEventType: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ProcessCacheEvent) return e;
                var t = new a.Req_Player_ProcessCacheEvent;
                if (e.CacheEventIds) {
                    if (!Array.isArray(e.CacheEventIds)) throw TypeError(".Req_Player_ProcessCacheEvent.CacheEventIds: array expected");
                    t.CacheEventIds = [];
                    for (var n = 0; n < e.CacheEventIds.length; ++n) i.Long ? (t.CacheEventIds[n] = i.Long.fromValue(e.CacheEventIds[n])).unsigned = !1 : "string" == typeof e.CacheEventIds[n] ? t.CacheEventIds[n] = parseInt(e.CacheEventIds[n], 10) : "number" == typeof e.CacheEventIds[n] ? t.CacheEventIds[n] = e.CacheEventIds[n] : "object" == typeof e.CacheEventIds[n] && (t.CacheEventIds[n] = new i.LongBits(e.CacheEventIds[n].low >>> 0, e.CacheEventIds[n].high >>> 0).toNumber())
                }
                return null != e.CacheEventType && (i.Long ? (t.CacheEventType = i.Long.fromValue(e.CacheEventType)).unsigned = !1 : "string" == typeof e.CacheEventType ? t.CacheEventType = parseInt(e.CacheEventType, 10) : "number" == typeof e.CacheEventType ? t.CacheEventType = e.CacheEventType : "object" == typeof e.CacheEventType && (t.CacheEventType = new i.LongBits(e.CacheEventType.low >>> 0, e.CacheEventType.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.CacheEventIds = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.CacheEventType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.CacheEventType = t.longs === String ? "0" : 0;
                if (e.CacheEventIds && e.CacheEventIds.length) {
                    n.CacheEventIds = [];
                    for (var r = 0; r < e.CacheEventIds.length; ++r) "number" == typeof e.CacheEventIds[r] ? n.CacheEventIds[r] = t.longs === String ? String(e.CacheEventIds[r]) : e.CacheEventIds[r] : n.CacheEventIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.CacheEventIds[r]) : t.longs === Number ? new i.LongBits(e.CacheEventIds[r].low >>> 0, e.CacheEventIds[r].high >>> 0).toNumber() : e.CacheEventIds[r]
                }
                return null != e.CacheEventType && e.hasOwnProperty("CacheEventType") && ("number" == typeof e.CacheEventType ? n.CacheEventType = t.longs === String ? String(e.CacheEventType) : e.CacheEventType : n.CacheEventType = t.longs === String ? i.Long.prototype.toString.call(e.CacheEventType) : t.longs === Number ? new i.LongBits(e.CacheEventType.low >>> 0, e.CacheEventType.high >>> 0).toNumber() : e.CacheEventType), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ProcessCacheEvent"
            }, e
        }(), a.Req_Player_AfterEnterGame = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_AfterEnterGame; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_AfterEnterGame) return e;
                var t = new a.Req_Player_AfterEnterGame;
                return null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                return null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_AfterEnterGame"
            }, e
        }(), a.Res_Player_AfterEnterGame = function() {
            function e(e) {
                if (this.RankAchievements = [], this.PlayingBattles = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RankAchievements = i.emptyArray, e.prototype.PlayingBattles = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.RankAchievements && e.RankAchievements.length)
                    for (var n = 0; n < e.RankAchievements.length; ++n) a.RankData.encode(e.RankAchievements[n], t.uint32(18).fork()).ldelim();
                if (null != e.PlayingBattles && e.PlayingBattles.length)
                    for (n = 0; n < e.PlayingBattles.length; ++n) a.UserPlayingBattle_Model.encode(e.PlayingBattles[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_AfterEnterGame; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 2:
                            r.RankAchievements && r.RankAchievements.length || (r.RankAchievements = []), r.RankAchievements.push(a.RankData.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.PlayingBattles && r.PlayingBattles.length || (r.PlayingBattles = []), r.PlayingBattles.push(a.UserPlayingBattle_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.RankAchievements && e.hasOwnProperty("RankAchievements")) {
                    if (!Array.isArray(e.RankAchievements)) return "RankAchievements: array expected";
                    for (var t = 0; t < e.RankAchievements.length; ++t)
                        if (n = a.RankData.verify(e.RankAchievements[t])) return "RankAchievements." + n
                }
                if (null != e.PlayingBattles && e.hasOwnProperty("PlayingBattles")) {
                    if (!Array.isArray(e.PlayingBattles)) return "PlayingBattles: array expected";
                    for (t = 0; t < e.PlayingBattles.length; ++t) {
                        var n;
                        if (n = a.UserPlayingBattle_Model.verify(e.PlayingBattles[t])) return "PlayingBattles." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_AfterEnterGame) return e;
                var t = new a.Res_Player_AfterEnterGame;
                if (e.RankAchievements) {
                    if (!Array.isArray(e.RankAchievements)) throw TypeError(".Res_Player_AfterEnterGame.RankAchievements: array expected");
                    t.RankAchievements = [];
                    for (var n = 0; n < e.RankAchievements.length; ++n) {
                        if ("object" != typeof e.RankAchievements[n]) throw TypeError(".Res_Player_AfterEnterGame.RankAchievements: object expected");
                        t.RankAchievements[n] = a.RankData.fromObject(e.RankAchievements[n])
                    }
                }
                if (e.PlayingBattles) {
                    if (!Array.isArray(e.PlayingBattles)) throw TypeError(".Res_Player_AfterEnterGame.PlayingBattles: array expected");
                    for (t.PlayingBattles = [], n = 0; n < e.PlayingBattles.length; ++n) {
                        if ("object" != typeof e.PlayingBattles[n]) throw TypeError(".Res_Player_AfterEnterGame.PlayingBattles: object expected");
                        t.PlayingBattles[n] = a.UserPlayingBattle_Model.fromObject(e.PlayingBattles[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.RankAchievements = [], n.PlayingBattles = []), e.RankAchievements && e.RankAchievements.length) {
                    n.RankAchievements = [];
                    for (var o = 0; o < e.RankAchievements.length; ++o) n.RankAchievements[o] = a.RankData.toObject(e.RankAchievements[o], t)
                }
                if (e.PlayingBattles && e.PlayingBattles.length)
                    for (n.PlayingBattles = [], o = 0; o < e.PlayingBattles.length; ++o) n.PlayingBattles[o] = a.UserPlayingBattle_Model.toObject(e.PlayingBattles[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_AfterEnterGame"
            }, e
        }(), a.Res_Common_Empty = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Message = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Message && Object.hasOwnProperty.call(e, "Message") && t.uint32(10).string(e.Message), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Common_Empty; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Message = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Message && e.hasOwnProperty("Message") && !i.isString(e.Message) ? "Message: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Common_Empty) return e;
                var t = new a.Res_Common_Empty;
                return null != e.Message && (t.Message = String(e.Message)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Message = ""), null != e.Message && e.hasOwnProperty("Message") && (n.Message = e.Message), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Common_Empty"
            }, e
        }(), a.Res_Common_Rewards = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Common_Rewards; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.UserItem_Model.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Common_Rewards) return e;
                var t = new a.Res_Common_Rewards;
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Common_Rewards.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Common_Rewards.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Common_Rewards"
            }, e
        }(), a.Res_Common_BattleChallenge = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Report = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Report && Object.hasOwnProperty.call(e, "Report") && a.BattleReport.encode(e.Report, t.uint32(18).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Common_BattleChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 2:
                            r.Report = a.BattleReport.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Report && e.hasOwnProperty("Report")) {
                    var t = a.BattleReport.verify(e.Report);
                    if (t) return "Report." + t
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Common_BattleChallenge) return e;
                var t = new a.Res_Common_BattleChallenge;
                if (null != e.Report) {
                    if ("object" != typeof e.Report) throw TypeError(".Res_Common_BattleChallenge.Report: object expected");
                    t.Report = a.BattleReport.fromObject(e.Report)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Report = null), null != e.Report && e.hasOwnProperty("Report") && (n.Report = a.BattleReport.toObject(e.Report, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Common_BattleChallenge"
            }, e
        }(), a.Res_Common_Challenge = function() {
            function e(e) {
                if (this.Reports = [], this.Rewards = [], this.Params = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = 0, e.prototype.Reports = i.emptyArray, e.prototype.TargetInfo = null, e.prototype.Rewards = i.emptyArray, e.prototype.Params = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int32(e.Result), null != e.Reports && e.Reports.length)
                    for (var n = 0; n < e.Reports.length; ++n) a.BattleReport.encode(e.Reports[n], t.uint32(18).fork()).ldelim();
                if (null != e.TargetInfo && Object.hasOwnProperty.call(e, "TargetInfo") && a.PlayerSimpleInfo.encode(e.TargetInfo, t.uint32(26).fork()).ldelim(), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(34).fork()).ldelim();
                if (null != e.Params && e.Params.length) {
                    for (t.uint32(90).fork(), n = 0; n < e.Params.length; ++n) t.int64(e.Params[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Common_Challenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int32();
                            break;
                        case 2:
                            r.Reports && r.Reports.length || (r.Reports = []), r.Reports.push(a.BattleReport.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.TargetInfo = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        case 4:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 11:
                            if (r.Params && r.Params.length || (r.Params = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Params.push(e.int64());
                            else r.Params.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.Reports && e.hasOwnProperty("Reports")) {
                    if (!Array.isArray(e.Reports)) return "Reports: array expected";
                    for (var t = 0; t < e.Reports.length; ++t)
                        if (n = a.BattleReport.verify(e.Reports[t])) return "Reports." + n
                }
                if (null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n = a.PlayerSimpleInfo.verify(e.TargetInfo))) return "TargetInfo." + n;
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                if (null != e.Params && e.hasOwnProperty("Params")) {
                    if (!Array.isArray(e.Params)) return "Params: array expected";
                    for (t = 0; t < e.Params.length; ++t)
                        if (!(i.isInteger(e.Params[t]) || e.Params[t] && i.isInteger(e.Params[t].low) && i.isInteger(e.Params[t].high))) return "Params: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Common_Challenge) return e;
                var t = new a.Res_Common_Challenge;
                if (null != e.Result && (t.Result = 0 | e.Result), e.Reports) {
                    if (!Array.isArray(e.Reports)) throw TypeError(".Res_Common_Challenge.Reports: array expected");
                    t.Reports = [];
                    for (var n = 0; n < e.Reports.length; ++n) {
                        if ("object" != typeof e.Reports[n]) throw TypeError(".Res_Common_Challenge.Reports: object expected");
                        t.Reports[n] = a.BattleReport.fromObject(e.Reports[n])
                    }
                }
                if (null != e.TargetInfo) {
                    if ("object" != typeof e.TargetInfo) throw TypeError(".Res_Common_Challenge.TargetInfo: object expected");
                    t.TargetInfo = a.PlayerSimpleInfo.fromObject(e.TargetInfo)
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Common_Challenge.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Common_Challenge.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (e.Params) {
                    if (!Array.isArray(e.Params)) throw TypeError(".Res_Common_Challenge.Params: array expected");
                    for (t.Params = [], n = 0; n < e.Params.length; ++n) i.Long ? (t.Params[n] = i.Long.fromValue(e.Params[n])).unsigned = !1 : "string" == typeof e.Params[n] ? t.Params[n] = parseInt(e.Params[n], 10) : "number" == typeof e.Params[n] ? t.Params[n] = e.Params[n] : "object" == typeof e.Params[n] && (t.Params[n] = new i.LongBits(e.Params[n].low >>> 0, e.Params[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Reports = [], n.Rewards = [], n.Params = []), t.defaults && (n.Result = 0, n.TargetInfo = null), null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), e.Reports && e.Reports.length) {
                    n.Reports = [];
                    for (var o = 0; o < e.Reports.length; ++o) n.Reports[o] = a.BattleReport.toObject(e.Reports[o], t)
                }
                if (null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n.TargetInfo = a.PlayerSimpleInfo.toObject(e.TargetInfo, t)), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t);
                if (e.Params && e.Params.length)
                    for (n.Params = [], o = 0; o < e.Params.length; ++o) "number" == typeof e.Params[o] ? n.Params[o] = t.longs === String ? String(e.Params[o]) : e.Params[o] : n.Params[o] = t.longs === String ? i.Long.prototype.toString.call(e.Params[o]) : t.longs === Number ? new i.LongBits(e.Params[o].low >>> 0, e.Params[o].high >>> 0).toNumber() : e.Params[o];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Common_Challenge"
            }, e
        }(), a.Res_Common_PlayerDetails = function() {
            function e(e) {
                if (this.Infos = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Infos = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Infos && e.Infos.length)
                    for (var n = 0; n < e.Infos.length; ++n) a.PlayerDetailInfo.encode(e.Infos[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Common_PlayerDetails; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Infos && r.Infos.length || (r.Infos = []), r.Infos.push(a.PlayerDetailInfo.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Infos && e.hasOwnProperty("Infos")) {
                    if (!Array.isArray(e.Infos)) return "Infos: array expected";
                    for (var t = 0; t < e.Infos.length; ++t) {
                        var n = a.PlayerDetailInfo.verify(e.Infos[t]);
                        if (n) return "Infos." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Common_PlayerDetails) return e;
                var t = new a.Res_Common_PlayerDetails;
                if (e.Infos) {
                    if (!Array.isArray(e.Infos)) throw TypeError(".Res_Common_PlayerDetails.Infos: array expected");
                    t.Infos = [];
                    for (var n = 0; n < e.Infos.length; ++n) {
                        if ("object" != typeof e.Infos[n]) throw TypeError(".Res_Common_PlayerDetails.Infos: object expected");
                        t.Infos[n] = a.PlayerDetailInfo.fromObject(e.Infos[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Infos = []), e.Infos && e.Infos.length) {
                    n.Infos = [];
                    for (var o = 0; o < e.Infos.length; ++o) n.Infos[o] = a.PlayerDetailInfo.toObject(e.Infos[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Common_PlayerDetails"
            }, e
        }(), a.Req_Player_GetRank = function() {
            function e(e) {
                if (this.Params = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RankType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CustomCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Params = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.RankType && Object.hasOwnProperty.call(e, "RankType") && t.uint32(8).int64(e.RankType), null != e.CustomCount && Object.hasOwnProperty.call(e, "CustomCount") && t.uint32(16).int64(e.CustomCount), null != e.Params && e.Params.length) {
                    t.uint32(810).fork();
                    for (var n = 0; n < e.Params.length; ++n) t.int64(e.Params[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetRank; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.RankType = e.int64();
                            break;
                        case 2:
                            r.CustomCount = e.int64();
                            break;
                        case 101:
                            if (r.Params && r.Params.length || (r.Params = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Params.push(e.int64());
                            else r.Params.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.RankType && e.hasOwnProperty("RankType") && !(i.isInteger(e.RankType) || e.RankType && i.isInteger(e.RankType.low) && i.isInteger(e.RankType.high))) return "RankType: integer|Long expected";
                if (null != e.CustomCount && e.hasOwnProperty("CustomCount") && !(i.isInteger(e.CustomCount) || e.CustomCount && i.isInteger(e.CustomCount.low) && i.isInteger(e.CustomCount.high))) return "CustomCount: integer|Long expected";
                if (null != e.Params && e.hasOwnProperty("Params")) {
                    if (!Array.isArray(e.Params)) return "Params: array expected";
                    for (var t = 0; t < e.Params.length; ++t)
                        if (!(i.isInteger(e.Params[t]) || e.Params[t] && i.isInteger(e.Params[t].low) && i.isInteger(e.Params[t].high))) return "Params: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetRank) return e;
                var t = new a.Req_Player_GetRank;
                if (null != e.RankType && (i.Long ? (t.RankType = i.Long.fromValue(e.RankType)).unsigned = !1 : "string" == typeof e.RankType ? t.RankType = parseInt(e.RankType, 10) : "number" == typeof e.RankType ? t.RankType = e.RankType : "object" == typeof e.RankType && (t.RankType = new i.LongBits(e.RankType.low >>> 0, e.RankType.high >>> 0).toNumber())), null != e.CustomCount && (i.Long ? (t.CustomCount = i.Long.fromValue(e.CustomCount)).unsigned = !1 : "string" == typeof e.CustomCount ? t.CustomCount = parseInt(e.CustomCount, 10) : "number" == typeof e.CustomCount ? t.CustomCount = e.CustomCount : "object" == typeof e.CustomCount && (t.CustomCount = new i.LongBits(e.CustomCount.low >>> 0, e.CustomCount.high >>> 0).toNumber())), e.Params) {
                    if (!Array.isArray(e.Params)) throw TypeError(".Req_Player_GetRank.Params: array expected");
                    t.Params = [];
                    for (var n = 0; n < e.Params.length; ++n) i.Long ? (t.Params[n] = i.Long.fromValue(e.Params[n])).unsigned = !1 : "string" == typeof e.Params[n] ? t.Params[n] = parseInt(e.Params[n], 10) : "number" == typeof e.Params[n] ? t.Params[n] = e.Params[n] : "object" == typeof e.Params[n] && (t.Params[n] = new i.LongBits(e.Params[n].low >>> 0, e.Params[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Params = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.RankType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.RankType = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.CustomCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CustomCount = t.longs === String ? "0" : 0
                }
                if (null != e.RankType && e.hasOwnProperty("RankType") && ("number" == typeof e.RankType ? n.RankType = t.longs === String ? String(e.RankType) : e.RankType : n.RankType = t.longs === String ? i.Long.prototype.toString.call(e.RankType) : t.longs === Number ? new i.LongBits(e.RankType.low >>> 0, e.RankType.high >>> 0).toNumber() : e.RankType), null != e.CustomCount && e.hasOwnProperty("CustomCount") && ("number" == typeof e.CustomCount ? n.CustomCount = t.longs === String ? String(e.CustomCount) : e.CustomCount : n.CustomCount = t.longs === String ? i.Long.prototype.toString.call(e.CustomCount) : t.longs === Number ? new i.LongBits(e.CustomCount.low >>> 0, e.CustomCount.high >>> 0).toNumber() : e.CustomCount), e.Params && e.Params.length) {
                    n.Params = [];
                    for (var r = 0; r < e.Params.length; ++r) "number" == typeof e.Params[r] ? n.Params[r] = t.longs === String ? String(e.Params[r]) : e.Params[r] : n.Params[r] = t.longs === String ? i.Long.prototype.toString.call(e.Params[r]) : t.longs === Number ? new i.LongBits(e.Params[r].low >>> 0, e.Params[r].high >>> 0).toNumber() : e.Params[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetRank"
            }, e
        }(), a.Res_Player_GetRank = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Data = null, e.prototype.MyRankData = null, e.prototype.MyRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Data && Object.hasOwnProperty.call(e, "Data") && a.RankData.encode(e.Data, t.uint32(10).fork()).ldelim(), null != e.MyRankData && Object.hasOwnProperty.call(e, "MyRankData") && a.RankRowData.encode(e.MyRankData, t.uint32(18).fork()).ldelim(), null != e.MyRank && Object.hasOwnProperty.call(e, "MyRank") && t.uint32(24).int64(e.MyRank), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetRank; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Data = a.RankData.decode(e, e.uint32());
                            break;
                        case 2:
                            r.MyRankData = a.RankRowData.decode(e, e.uint32());
                            break;
                        case 3:
                            r.MyRank = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Data && e.hasOwnProperty("Data") && (t = a.RankData.verify(e.Data)) ? "Data." + t : null != e.MyRankData && e.hasOwnProperty("MyRankData") && (t = a.RankRowData.verify(e.MyRankData)) ? "MyRankData." + t : null != e.MyRank && e.hasOwnProperty("MyRank") && !(i.isInteger(e.MyRank) || e.MyRank && i.isInteger(e.MyRank.low) && i.isInteger(e.MyRank.high)) ? "MyRank: integer|Long expected" : null;
                var t
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetRank) return e;
                var t = new a.Res_Player_GetRank;
                if (null != e.Data) {
                    if ("object" != typeof e.Data) throw TypeError(".Res_Player_GetRank.Data: object expected");
                    t.Data = a.RankData.fromObject(e.Data)
                }
                if (null != e.MyRankData) {
                    if ("object" != typeof e.MyRankData) throw TypeError(".Res_Player_GetRank.MyRankData: object expected");
                    t.MyRankData = a.RankRowData.fromObject(e.MyRankData)
                }
                return null != e.MyRank && (i.Long ? (t.MyRank = i.Long.fromValue(e.MyRank)).unsigned = !1 : "string" == typeof e.MyRank ? t.MyRank = parseInt(e.MyRank, 10) : "number" == typeof e.MyRank ? t.MyRank = e.MyRank : "object" == typeof e.MyRank && (t.MyRank = new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (n.Data = null, n.MyRankData = null, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MyRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MyRank = t.longs === String ? "0" : 0;
                return null != e.Data && e.hasOwnProperty("Data") && (n.Data = a.RankData.toObject(e.Data, t)), null != e.MyRankData && e.hasOwnProperty("MyRankData") && (n.MyRankData = a.RankRowData.toObject(e.MyRankData, t)), null != e.MyRank && e.hasOwnProperty("MyRank") && ("number" == typeof e.MyRank ? n.MyRank = t.longs === String ? String(e.MyRank) : e.MyRank : n.MyRank = t.longs === String ? i.Long.prototype.toString.call(e.MyRank) : t.longs === Number ? new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber() : e.MyRank), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetRank"
            }, e
        }(), a.Req_Player_GetTopRanks = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TabId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TabId && Object.hasOwnProperty.call(e, "TabId") && t.uint32(8).int64(e.TabId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetTopRanks; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TabId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TabId && e.hasOwnProperty("TabId") && !(i.isInteger(e.TabId) || e.TabId && i.isInteger(e.TabId.low) && i.isInteger(e.TabId.high)) ? "TabId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetTopRanks) return e;
                var t = new a.Req_Player_GetTopRanks;
                return null != e.TabId && (i.Long ? (t.TabId = i.Long.fromValue(e.TabId)).unsigned = !1 : "string" == typeof e.TabId ? t.TabId = parseInt(e.TabId, 10) : "number" == typeof e.TabId ? t.TabId = e.TabId : "object" == typeof e.TabId && (t.TabId = new i.LongBits(e.TabId.low >>> 0, e.TabId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TabId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TabId = t.longs === String ? "0" : 0;
                return null != e.TabId && e.hasOwnProperty("TabId") && ("number" == typeof e.TabId ? n.TabId = t.longs === String ? String(e.TabId) : e.TabId : n.TabId = t.longs === String ? i.Long.prototype.toString.call(e.TabId) : t.longs === Number ? new i.LongBits(e.TabId.low >>> 0, e.TabId.high >>> 0).toNumber() : e.TabId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetTopRanks"
            }, e
        }(), a.Res_Player_GetTopRanks = function() {
            function e(e) {
                if (this.Data = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Data = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Data && e.Data.length)
                    for (var n = 0; n < e.Data.length; ++n) a.RankData.encode(e.Data[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetTopRanks; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 3:
                            r.Data && r.Data.length || (r.Data = []), r.Data.push(a.RankData.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t) {
                        var n = a.RankData.verify(e.Data[t]);
                        if (n) return "Data." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetTopRanks) return e;
                var t = new a.Res_Player_GetTopRanks;
                if (e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".Res_Player_GetTopRanks.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) {
                        if ("object" != typeof e.Data[n]) throw TypeError(".Res_Player_GetTopRanks.Data: object expected");
                        t.Data[n] = a.RankData.fromObject(e.Data[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = []), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var o = 0; o < e.Data.length; ++o) n.Data[o] = a.RankData.toObject(e.Data[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetTopRanks"
            }, e
        }(), a.Req_Player_DrawRankReward = function() {
            function e(e) {
                if (this.RewardIndexs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RankType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.RewardIndexs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.RankType && Object.hasOwnProperty.call(e, "RankType") && t.uint32(8).int64(e.RankType), null != e.RewardIndexs && e.RewardIndexs.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.RewardIndexs.length; ++n) t.int64(e.RewardIndexs[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_DrawRankReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.RankType = e.int64();
                            break;
                        case 2:
                            if (r.RewardIndexs && r.RewardIndexs.length || (r.RewardIndexs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.RewardIndexs.push(e.int64());
                            else r.RewardIndexs.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.RankType && e.hasOwnProperty("RankType") && !(i.isInteger(e.RankType) || e.RankType && i.isInteger(e.RankType.low) && i.isInteger(e.RankType.high))) return "RankType: integer|Long expected";
                if (null != e.RewardIndexs && e.hasOwnProperty("RewardIndexs")) {
                    if (!Array.isArray(e.RewardIndexs)) return "RewardIndexs: array expected";
                    for (var t = 0; t < e.RewardIndexs.length; ++t)
                        if (!(i.isInteger(e.RewardIndexs[t]) || e.RewardIndexs[t] && i.isInteger(e.RewardIndexs[t].low) && i.isInteger(e.RewardIndexs[t].high))) return "RewardIndexs: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_DrawRankReward) return e;
                var t = new a.Req_Player_DrawRankReward;
                if (null != e.RankType && (i.Long ? (t.RankType = i.Long.fromValue(e.RankType)).unsigned = !1 : "string" == typeof e.RankType ? t.RankType = parseInt(e.RankType, 10) : "number" == typeof e.RankType ? t.RankType = e.RankType : "object" == typeof e.RankType && (t.RankType = new i.LongBits(e.RankType.low >>> 0, e.RankType.high >>> 0).toNumber())), e.RewardIndexs) {
                    if (!Array.isArray(e.RewardIndexs)) throw TypeError(".Req_Player_DrawRankReward.RewardIndexs: array expected");
                    t.RewardIndexs = [];
                    for (var n = 0; n < e.RewardIndexs.length; ++n) i.Long ? (t.RewardIndexs[n] = i.Long.fromValue(e.RewardIndexs[n])).unsigned = !1 : "string" == typeof e.RewardIndexs[n] ? t.RewardIndexs[n] = parseInt(e.RewardIndexs[n], 10) : "number" == typeof e.RewardIndexs[n] ? t.RewardIndexs[n] = e.RewardIndexs[n] : "object" == typeof e.RewardIndexs[n] && (t.RewardIndexs[n] = new i.LongBits(e.RewardIndexs[n].low >>> 0, e.RewardIndexs[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.RewardIndexs = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.RankType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.RankType = t.longs === String ? "0" : 0;
                if (null != e.RankType && e.hasOwnProperty("RankType") && ("number" == typeof e.RankType ? n.RankType = t.longs === String ? String(e.RankType) : e.RankType : n.RankType = t.longs === String ? i.Long.prototype.toString.call(e.RankType) : t.longs === Number ? new i.LongBits(e.RankType.low >>> 0, e.RankType.high >>> 0).toNumber() : e.RankType), e.RewardIndexs && e.RewardIndexs.length) {
                    n.RewardIndexs = [];
                    for (var r = 0; r < e.RewardIndexs.length; ++r) "number" == typeof e.RewardIndexs[r] ? n.RewardIndexs[r] = t.longs === String ? String(e.RewardIndexs[r]) : e.RewardIndexs[r] : n.RewardIndexs[r] = t.longs === String ? i.Long.prototype.toString.call(e.RewardIndexs[r]) : t.longs === Number ? new i.LongBits(e.RewardIndexs[r].low >>> 0, e.RewardIndexs[r].high >>> 0).toNumber() : e.RewardIndexs[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_DrawRankReward"
            }, e
        }(), a.Req_Player_RankLike = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RankType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.RankType && Object.hasOwnProperty.call(e, "RankType") && t.uint32(8).int64(e.RankType), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(16).int64(e.TargetUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_RankLike; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.RankType = e.int64();
                            break;
                        case 2:
                            r.TargetUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.RankType && e.hasOwnProperty("RankType") && !(i.isInteger(e.RankType) || e.RankType && i.isInteger(e.RankType.low) && i.isInteger(e.RankType.high)) ? "RankType: integer|Long expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_RankLike) return e;
                var t = new a.Req_Player_RankLike;
                return null != e.RankType && (i.Long ? (t.RankType = i.Long.fromValue(e.RankType)).unsigned = !1 : "string" == typeof e.RankType ? t.RankType = parseInt(e.RankType, 10) : "number" == typeof e.RankType ? t.RankType = e.RankType : "object" == typeof e.RankType && (t.RankType = new i.LongBits(e.RankType.low >>> 0, e.RankType.high >>> 0).toNumber())), null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.RankType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.RankType = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetUid = t.longs === String ? "0" : 0
                }
                return null != e.RankType && e.hasOwnProperty("RankType") && ("number" == typeof e.RankType ? n.RankType = t.longs === String ? String(e.RankType) : e.RankType : n.RankType = t.longs === String ? i.Long.prototype.toString.call(e.RankType) : t.longs === Number ? new i.LongBits(e.RankType.low >>> 0, e.RankType.high >>> 0).toNumber() : e.RankType), null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_RankLike"
            }, e
        }(), a.Req_Player_GetPlayerDetailInfo = function() {
            function e(e) {
                if (this.FormationIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Zone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PlayerType = 0, e.prototype.FormationIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(16).int64(e.Zone), null != e.PlayerType && Object.hasOwnProperty.call(e, "PlayerType") && t.uint32(24).int32(e.PlayerType), null != e.FormationIds && e.FormationIds.length) {
                    t.uint32(34).fork();
                    for (var n = 0; n < e.FormationIds.length; ++n) t.int32(e.FormationIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetPlayerDetailInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.Zone = e.int64();
                            break;
                        case 3:
                            r.PlayerType = e.int32();
                            break;
                        case 4:
                            if (r.FormationIds && r.FormationIds.length || (r.FormationIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.FormationIds.push(e.int32());
                            else r.FormationIds.push(e.int32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high))) return "Uid: integer|Long expected";
                if (null != e.Zone && e.hasOwnProperty("Zone") && !(i.isInteger(e.Zone) || e.Zone && i.isInteger(e.Zone.low) && i.isInteger(e.Zone.high))) return "Zone: integer|Long expected";
                if (null != e.PlayerType && e.hasOwnProperty("PlayerType") && !i.isInteger(e.PlayerType)) return "PlayerType: integer expected";
                if (null != e.FormationIds && e.hasOwnProperty("FormationIds")) {
                    if (!Array.isArray(e.FormationIds)) return "FormationIds: array expected";
                    for (var t = 0; t < e.FormationIds.length; ++t)
                        if (!i.isInteger(e.FormationIds[t])) return "FormationIds: integer[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetPlayerDetailInfo) return e;
                var t = new a.Req_Player_GetPlayerDetailInfo;
                if (null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.Zone && (i.Long ? (t.Zone = i.Long.fromValue(e.Zone)).unsigned = !1 : "string" == typeof e.Zone ? t.Zone = parseInt(e.Zone, 10) : "number" == typeof e.Zone ? t.Zone = e.Zone : "object" == typeof e.Zone && (t.Zone = new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber())), null != e.PlayerType && (t.PlayerType = 0 | e.PlayerType), e.FormationIds) {
                    if (!Array.isArray(e.FormationIds)) throw TypeError(".Req_Player_GetPlayerDetailInfo.FormationIds: array expected");
                    t.FormationIds = [];
                    for (var n = 0; n < e.FormationIds.length; ++n) t.FormationIds[n] = 0 | e.FormationIds[n]
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.FormationIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Zone = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Zone = t.longs === String ? "0" : 0, n.PlayerType = 0
                }
                if (null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.Zone && e.hasOwnProperty("Zone") && ("number" == typeof e.Zone ? n.Zone = t.longs === String ? String(e.Zone) : e.Zone : n.Zone = t.longs === String ? i.Long.prototype.toString.call(e.Zone) : t.longs === Number ? new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber() : e.Zone), null != e.PlayerType && e.hasOwnProperty("PlayerType") && (n.PlayerType = e.PlayerType), e.FormationIds && e.FormationIds.length) {
                    n.FormationIds = [];
                    for (var r = 0; r < e.FormationIds.length; ++r) n.FormationIds[r] = e.FormationIds[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetPlayerDetailInfo"
            }, e
        }(), a.Res_Player_GetPlayerDetailInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Info = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Info && Object.hasOwnProperty.call(e, "Info") && a.PlayerDetailInfo.encode(e.Info, t.uint32(10).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetPlayerDetailInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Info = a.PlayerDetailInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Info && e.hasOwnProperty("Info")) {
                    var t = a.PlayerDetailInfo.verify(e.Info);
                    if (t) return "Info." + t
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetPlayerDetailInfo) return e;
                var t = new a.Res_Player_GetPlayerDetailInfo;
                if (null != e.Info) {
                    if ("object" != typeof e.Info) throw TypeError(".Res_Player_GetPlayerDetailInfo.Info: object expected");
                    t.Info = a.PlayerDetailInfo.fromObject(e.Info)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Info = null), null != e.Info && e.hasOwnProperty("Info") && (n.Info = a.PlayerDetailInfo.toObject(e.Info, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetPlayerDetailInfo"
            }, e
        }(), a.Req_Player_GetPlayerSimpleInfo = function() {
            function e(e) {
                if (this.Uids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Uids && e.Uids.length)
                    for (var n = 0; n < e.Uids.length; ++n) a.IntArray.encode(e.Uids[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetPlayerSimpleInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uids && r.Uids.length || (r.Uids = []), r.Uids.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Uids && e.hasOwnProperty("Uids")) {
                    if (!Array.isArray(e.Uids)) return "Uids: array expected";
                    for (var t = 0; t < e.Uids.length; ++t) {
                        var n = a.IntArray.verify(e.Uids[t]);
                        if (n) return "Uids." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetPlayerSimpleInfo) return e;
                var t = new a.Req_Player_GetPlayerSimpleInfo;
                if (e.Uids) {
                    if (!Array.isArray(e.Uids)) throw TypeError(".Req_Player_GetPlayerSimpleInfo.Uids: array expected");
                    t.Uids = [];
                    for (var n = 0; n < e.Uids.length; ++n) {
                        if ("object" != typeof e.Uids[n]) throw TypeError(".Req_Player_GetPlayerSimpleInfo.Uids: object expected");
                        t.Uids[n] = a.IntArray.fromObject(e.Uids[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Uids = []), e.Uids && e.Uids.length) {
                    n.Uids = [];
                    for (var o = 0; o < e.Uids.length; ++o) n.Uids[o] = a.IntArray.toObject(e.Uids[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetPlayerSimpleInfo"
            }, e
        }(), a.Res_Player_GetPlayerSimpleInfo = function() {
            function e(e) {
                if (this.Infos = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Infos = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Infos && e.Infos.length)
                    for (var n = 0; n < e.Infos.length; ++n) a.PlayerSimpleInfo.encode(e.Infos[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetPlayerSimpleInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Infos && r.Infos.length || (r.Infos = []), r.Infos.push(a.PlayerSimpleInfo.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Infos && e.hasOwnProperty("Infos")) {
                    if (!Array.isArray(e.Infos)) return "Infos: array expected";
                    for (var t = 0; t < e.Infos.length; ++t) {
                        var n = a.PlayerSimpleInfo.verify(e.Infos[t]);
                        if (n) return "Infos." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetPlayerSimpleInfo) return e;
                var t = new a.Res_Player_GetPlayerSimpleInfo;
                if (e.Infos) {
                    if (!Array.isArray(e.Infos)) throw TypeError(".Res_Player_GetPlayerSimpleInfo.Infos: array expected");
                    t.Infos = [];
                    for (var n = 0; n < e.Infos.length; ++n) {
                        if ("object" != typeof e.Infos[n]) throw TypeError(".Res_Player_GetPlayerSimpleInfo.Infos: object expected");
                        t.Infos[n] = a.PlayerSimpleInfo.fromObject(e.Infos[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Infos = []), e.Infos && e.Infos.length) {
                    n.Infos = [];
                    for (var o = 0; o < e.Infos.length; ++o) n.Infos[o] = a.PlayerSimpleInfo.toObject(e.Infos[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetPlayerSimpleInfo"
            }, e
        }(), a.Req_Player_GetFormations = function() {
            function e(e) {
                if (this.FormationIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Zone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FormationIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(16).int64(e.Zone), null != e.FormationIds && e.FormationIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.FormationIds.length; ++n) t.int64(e.FormationIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetFormations; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.Zone = e.int64();
                            break;
                        case 3:
                            if (r.FormationIds && r.FormationIds.length || (r.FormationIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.FormationIds.push(e.int64());
                            else r.FormationIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high))) return "Uid: integer|Long expected";
                if (null != e.Zone && e.hasOwnProperty("Zone") && !(i.isInteger(e.Zone) || e.Zone && i.isInteger(e.Zone.low) && i.isInteger(e.Zone.high))) return "Zone: integer|Long expected";
                if (null != e.FormationIds && e.hasOwnProperty("FormationIds")) {
                    if (!Array.isArray(e.FormationIds)) return "FormationIds: array expected";
                    for (var t = 0; t < e.FormationIds.length; ++t)
                        if (!(i.isInteger(e.FormationIds[t]) || e.FormationIds[t] && i.isInteger(e.FormationIds[t].low) && i.isInteger(e.FormationIds[t].high))) return "FormationIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetFormations) return e;
                var t = new a.Req_Player_GetFormations;
                if (null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.Zone && (i.Long ? (t.Zone = i.Long.fromValue(e.Zone)).unsigned = !1 : "string" == typeof e.Zone ? t.Zone = parseInt(e.Zone, 10) : "number" == typeof e.Zone ? t.Zone = e.Zone : "object" == typeof e.Zone && (t.Zone = new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber())), e.FormationIds) {
                    if (!Array.isArray(e.FormationIds)) throw TypeError(".Req_Player_GetFormations.FormationIds: array expected");
                    t.FormationIds = [];
                    for (var n = 0; n < e.FormationIds.length; ++n) i.Long ? (t.FormationIds[n] = i.Long.fromValue(e.FormationIds[n])).unsigned = !1 : "string" == typeof e.FormationIds[n] ? t.FormationIds[n] = parseInt(e.FormationIds[n], 10) : "number" == typeof e.FormationIds[n] ? t.FormationIds[n] = e.FormationIds[n] : "object" == typeof e.FormationIds[n] && (t.FormationIds[n] = new i.LongBits(e.FormationIds[n].low >>> 0, e.FormationIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.FormationIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Zone = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Zone = t.longs === String ? "0" : 0
                }
                if (null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.Zone && e.hasOwnProperty("Zone") && ("number" == typeof e.Zone ? n.Zone = t.longs === String ? String(e.Zone) : e.Zone : n.Zone = t.longs === String ? i.Long.prototype.toString.call(e.Zone) : t.longs === Number ? new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber() : e.Zone), e.FormationIds && e.FormationIds.length) {
                    n.FormationIds = [];
                    for (var r = 0; r < e.FormationIds.length; ++r) "number" == typeof e.FormationIds[r] ? n.FormationIds[r] = t.longs === String ? String(e.FormationIds[r]) : e.FormationIds[r] : n.FormationIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.FormationIds[r]) : t.longs === Number ? new i.LongBits(e.FormationIds[r].low >>> 0, e.FormationIds[r].high >>> 0).toNumber() : e.FormationIds[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetFormations"
            }, e
        }(), a.Res_Player_GetFormations = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Info = null, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Info && Object.hasOwnProperty.call(e, "Info") && a.PlayerDetailInfo.encode(e.Info, t.uint32(10).fork()).ldelim(), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation.encode(e.Formations[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetFormations; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Info = a.PlayerDetailInfo.decode(e, e.uint32());
                            break;
                        case 2:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Info && e.hasOwnProperty("Info") && (n = a.PlayerDetailInfo.verify(e.Info))) return "Info." + n;
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n;
                        if (n = a.UserFormation.verify(e.Formations[t])) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetFormations) return e;
                var t = new a.Res_Player_GetFormations;
                if (null != e.Info) {
                    if ("object" != typeof e.Info) throw TypeError(".Res_Player_GetFormations.Info: object expected");
                    t.Info = a.PlayerDetailInfo.fromObject(e.Info)
                }
                if (e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Res_Player_GetFormations.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Res_Player_GetFormations.Formations: object expected");
                        t.Formations[n] = a.UserFormation.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults && (n.Info = null), null != e.Info && e.hasOwnProperty("Info") && (n.Info = a.PlayerDetailInfo.toObject(e.Info, t)), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var o = 0; o < e.Formations.length; ++o) n.Formations[o] = a.UserFormation.toObject(e.Formations[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetFormations"
            }, e
        }(), a.Req_Player_GetHeroDetailInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroSid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), null != e.HeroSid && Object.hasOwnProperty.call(e, "HeroSid") && t.uint32(16).int64(e.HeroSid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetHeroDetailInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        case 2:
                            r.HeroSid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null != e.HeroSid && e.hasOwnProperty("HeroSid") && !(i.isInteger(e.HeroSid) || e.HeroSid && i.isInteger(e.HeroSid.low) && i.isInteger(e.HeroSid.high)) ? "HeroSid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetHeroDetailInfo) return e;
                var t = new a.Req_Player_GetHeroDetailInfo;
                return null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), null != e.HeroSid && (i.Long ? (t.HeroSid = i.Long.fromValue(e.HeroSid)).unsigned = !1 : "string" == typeof e.HeroSid ? t.HeroSid = parseInt(e.HeroSid, 10) : "number" == typeof e.HeroSid ? t.HeroSid = e.HeroSid : "object" == typeof e.HeroSid && (t.HeroSid = new i.LongBits(e.HeroSid.low >>> 0, e.HeroSid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroSid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroSid = t.longs === String ? "0" : 0
                }
                return null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), null != e.HeroSid && e.hasOwnProperty("HeroSid") && ("number" == typeof e.HeroSid ? n.HeroSid = t.longs === String ? String(e.HeroSid) : e.HeroSid : n.HeroSid = t.longs === String ? i.Long.prototype.toString.call(e.HeroSid) : t.longs === Number ? new i.LongBits(e.HeroSid.low >>> 0, e.HeroSid.high >>> 0).toNumber() : e.HeroSid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetHeroDetailInfo"
            }, e
        }(), a.Res_Player_GetHeroDetailInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Info = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Info && Object.hasOwnProperty.call(e, "Info") && a.HeroDetailInfo.encode(e.Info, t.uint32(10).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetHeroDetailInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Info = a.HeroDetailInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Info && e.hasOwnProperty("Info")) {
                    var t = a.HeroDetailInfo.verify(e.Info);
                    if (t) return "Info." + t
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetHeroDetailInfo) return e;
                var t = new a.Res_Player_GetHeroDetailInfo;
                if (null != e.Info) {
                    if ("object" != typeof e.Info) throw TypeError(".Res_Player_GetHeroDetailInfo.Info: object expected");
                    t.Info = a.HeroDetailInfo.fromObject(e.Info)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Info = null), null != e.Info && e.hasOwnProperty("Info") && (n.Info = a.HeroDetailInfo.toObject(e.Info, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetHeroDetailInfo"
            }, e
        }(), a.Req_Player_GetPlayerFormations = function() {
            function e(e) {
                if (this.Uids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uids = i.emptyArray, e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Uids && e.Uids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Uids.length; ++n) t.int64(e.Uids[n]);
                    t.ldelim()
                }
                return null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(16).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetPlayerFormations; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Uids && r.Uids.length || (r.Uids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Uids.push(e.int64());
                            else r.Uids.push(e.int64());
                            break;
                        case 2:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Uids && e.hasOwnProperty("Uids")) {
                    if (!Array.isArray(e.Uids)) return "Uids: array expected";
                    for (var t = 0; t < e.Uids.length; ++t)
                        if (!(i.isInteger(e.Uids[t]) || e.Uids[t] && i.isInteger(e.Uids[t].low) && i.isInteger(e.Uids[t].high))) return "Uids: integer|Long[] expected"
                }
                return null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetPlayerFormations) return e;
                var t = new a.Req_Player_GetPlayerFormations;
                if (e.Uids) {
                    if (!Array.isArray(e.Uids)) throw TypeError(".Req_Player_GetPlayerFormations.Uids: array expected");
                    t.Uids = [];
                    for (var n = 0; n < e.Uids.length; ++n) i.Long ? (t.Uids[n] = i.Long.fromValue(e.Uids[n])).unsigned = !1 : "string" == typeof e.Uids[n] ? t.Uids[n] = parseInt(e.Uids[n], 10) : "number" == typeof e.Uids[n] ? t.Uids[n] = e.Uids[n] : "object" == typeof e.Uids[n] && (t.Uids[n] = new i.LongBits(e.Uids[n].low >>> 0, e.Uids[n].high >>> 0).toNumber())
                }
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Uids = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (e.Uids && e.Uids.length) {
                    n.Uids = [];
                    for (var r = 0; r < e.Uids.length; ++r) "number" == typeof e.Uids[r] ? n.Uids[r] = t.longs === String ? String(e.Uids[r]) : e.Uids[r] : n.Uids[r] = t.longs === String ? i.Long.prototype.toString.call(e.Uids[r]) : t.longs === Number ? new i.LongBits(e.Uids[r].low >>> 0, e.Uids[r].high >>> 0).toNumber() : e.Uids[r]
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetPlayerFormations"
            }, e
        }(), a.Res_Player_GetPlayerFormations = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation.encode(e.Formations[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetPlayerFormations; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetPlayerFormations) return e;
                var t = new a.Res_Player_GetPlayerFormations;
                if (e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Res_Player_GetPlayerFormations.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Res_Player_GetPlayerFormations.Formations: object expected");
                        t.Formations[n] = a.UserFormation.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var o = 0; o < e.Formations.length; ++o) n.Formations[o] = a.UserFormation.toObject(e.Formations[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetPlayerFormations"
            }, e
        }(), a.Req_Player_ChangeIcon = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.IconId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.IconId && Object.hasOwnProperty.call(e, "IconId") && t.uint32(16).int64(e.IconId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ChangeIcon; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.IconId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null != e.IconId && e.hasOwnProperty("IconId") && !(i.isInteger(e.IconId) || e.IconId && i.isInteger(e.IconId.low) && i.isInteger(e.IconId.high)) ? "IconId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ChangeIcon) return e;
                var t = new a.Req_Player_ChangeIcon;
                return null != e.Type && (t.Type = 0 | e.Type), null != e.IconId && (i.Long ? (t.IconId = i.Long.fromValue(e.IconId)).unsigned = !1 : "string" == typeof e.IconId ? t.IconId = parseInt(e.IconId, 10) : "number" == typeof e.IconId ? t.IconId = e.IconId : "object" == typeof e.IconId && (t.IconId = new i.LongBits(e.IconId.low >>> 0, e.IconId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (n.Type = 0, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.IconId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.IconId = t.longs === String ? "0" : 0;
                return null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.IconId && e.hasOwnProperty("IconId") && ("number" == typeof e.IconId ? n.IconId = t.longs === String ? String(e.IconId) : e.IconId : n.IconId = t.longs === String ? i.Long.prototype.toString.call(e.IconId) : t.longs === Number ? new i.LongBits(e.IconId.low >>> 0, e.IconId.high >>> 0).toNumber() : e.IconId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ChangeIcon"
            }, e
        }(), a.Req_Player_ChangeShowMagicCircle = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ChangeShowMagicCircle; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ChangeShowMagicCircle) return e;
                var t = new a.Req_Player_ChangeShowMagicCircle;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ChangeShowMagicCircle"
            }, e
        }(), a.Req_Player_ChangeShowPet = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ChangeShowPet; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ChangeShowPet) return e;
                var t = new a.Req_Player_ChangeShowPet;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ChangeShowPet"
            }, e
        }(), a.Req_Player_Rename = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.RoleName = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.RoleName && Object.hasOwnProperty.call(e, "RoleName") && t.uint32(10).string(e.RoleName), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_Rename; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.RoleName = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.RoleName && e.hasOwnProperty("RoleName") && !i.isString(e.RoleName) ? "RoleName: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_Rename) return e;
                var t = new a.Req_Player_Rename;
                return null != e.RoleName && (t.RoleName = String(e.RoleName)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.RoleName = ""), null != e.RoleName && e.hasOwnProperty("RoleName") && (n.RoleName = e.RoleName), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_Rename"
            }, e
        }(), a.Req_Player_ChangeSignature = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Signature = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Signature && Object.hasOwnProperty.call(e, "Signature") && t.uint32(10).string(e.Signature), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ChangeSignature; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Signature = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Signature && e.hasOwnProperty("Signature") && !i.isString(e.Signature) ? "Signature: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ChangeSignature) return e;
                var t = new a.Req_Player_ChangeSignature;
                return null != e.Signature && (t.Signature = String(e.Signature)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Signature = ""), null != e.Signature && e.hasOwnProperty("Signature") && (n.Signature = e.Signature), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ChangeSignature"
            }, e
        }(), a.Req_Player_ChangeCountry = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Country = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Country && Object.hasOwnProperty.call(e, "Country") && t.uint32(10).string(e.Country), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ChangeCountry; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Country = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Country && e.hasOwnProperty("Country") && !i.isString(e.Country) ? "Country: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ChangeCountry) return e;
                var t = new a.Req_Player_ChangeCountry;
                return null != e.Country && (t.Country = String(e.Country)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Country = ""), null != e.Country && e.hasOwnProperty("Country") && (n.Country = e.Country), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ChangeCountry"
            }, e
        }(), a.Req_Player_ChangeCountryShowState = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.State = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.State && Object.hasOwnProperty.call(e, "State") && t.uint32(8).int32(e.State), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ChangeCountryShowState; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.State = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.State && e.hasOwnProperty("State") && !i.isInteger(e.State) ? "State: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ChangeCountryShowState) return e;
                var t = new a.Req_Player_ChangeCountryShowState;
                return null != e.State && (t.State = 0 | e.State), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.State = 0), null != e.State && e.hasOwnProperty("State") && (n.State = e.State), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ChangeCountryShowState"
            }, e
        }(), a.Req_Player_ChangeTopRankAlertShowState = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.State = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.State && Object.hasOwnProperty.call(e, "State") && t.uint32(8).int32(e.State), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ChangeTopRankAlertShowState; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.State = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.State && e.hasOwnProperty("State") && !i.isInteger(e.State) ? "State: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ChangeTopRankAlertShowState) return e;
                var t = new a.Req_Player_ChangeTopRankAlertShowState;
                return null != e.State && (t.State = 0 | e.State), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.State = 0), null != e.State && e.hasOwnProperty("State") && (n.State = e.State), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ChangeTopRankAlertShowState"
            }, e
        }(), a.Req_Player_ChangeRadio = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.Value = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.Value && Object.hasOwnProperty.call(e, "Value") && t.uint32(18).string(e.Value), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ChangeRadio; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.Value = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null != e.Value && e.hasOwnProperty("Value") && !i.isString(e.Value) ? "Value: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ChangeRadio) return e;
                var t = new a.Req_Player_ChangeRadio;
                return null != e.Type && (t.Type = 0 | e.Type), null != e.Value && (t.Value = String(e.Value)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0, n.Value = ""), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.Value && e.hasOwnProperty("Value") && (n.Value = e.Value), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ChangeRadio"
            }, e
        }(), a.Req_Player_OnlineRewards = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_OnlineRewards; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_OnlineRewards) return e;
                var t = new a.Req_Player_OnlineRewards;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_OnlineRewards"
            }, e
        }(), a.Req_Player_ClockIn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ClockIn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ClockIn) return e;
                var t = new a.Req_Player_ClockIn;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ClockIn"
            }, e
        }(), a.Req_Player_UseGiftCode = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Code = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Code && Object.hasOwnProperty.call(e, "Code") && t.uint32(10).string(e.Code), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_UseGiftCode; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Code = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Code && e.hasOwnProperty("Code") && !i.isString(e.Code) ? "Code: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_UseGiftCode) return e;
                var t = new a.Req_Player_UseGiftCode;
                return null != e.Code && (t.Code = String(e.Code)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Code = ""), null != e.Code && e.hasOwnProperty("Code") && (n.Code = e.Code), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_UseGiftCode"
            }, e
        }(), a.Req_Player_ReceiveOuterRewards = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ReceiveOuterRewards; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ReceiveOuterRewards) return e;
                var t = new a.Req_Player_ReceiveOuterRewards;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ReceiveOuterRewards"
            }, e
        }(), a.Req_Vip_BuyGift = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int32(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Vip_BuyGift; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !i.isInteger(e.Id) ? "Id: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Vip_BuyGift) return e;
                var t = new a.Req_Vip_BuyGift;
                return null != e.Id && (t.Id = 0 | e.Id), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Id = 0), null != e.Id && e.hasOwnProperty("Id") && (n.Id = e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Vip_BuyGift"
            }, e
        }(), a.Req_Player_SearchUser = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Name = "", e.prototype.Zone = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Name && Object.hasOwnProperty.call(e, "Name") && t.uint32(10).string(e.Name), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(16).int32(e.Zone), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_SearchUser; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Name = e.string();
                            break;
                        case 2:
                            r.Zone = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Name && e.hasOwnProperty("Name") && !i.isString(e.Name) ? "Name: string expected" : null != e.Zone && e.hasOwnProperty("Zone") && !i.isInteger(e.Zone) ? "Zone: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_SearchUser) return e;
                var t = new a.Req_Player_SearchUser;
                return null != e.Name && (t.Name = String(e.Name)), null != e.Zone && (t.Zone = 0 | e.Zone), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Name = "", n.Zone = 0), null != e.Name && e.hasOwnProperty("Name") && (n.Name = e.Name), null != e.Zone && e.hasOwnProperty("Zone") && (n.Zone = e.Zone), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_SearchUser"
            }, e
        }(), a.Res_Player_SearchUser = function() {
            function e(e) {
                if (this.Users = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Users = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Users && e.Users.length)
                    for (var n = 0; n < e.Users.length; ++n) a.PlayerDetailInfo.encode(e.Users[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_SearchUser; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Users && r.Users.length || (r.Users = []), r.Users.push(a.PlayerDetailInfo.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Users && e.hasOwnProperty("Users")) {
                    if (!Array.isArray(e.Users)) return "Users: array expected";
                    for (var t = 0; t < e.Users.length; ++t) {
                        var n = a.PlayerDetailInfo.verify(e.Users[t]);
                        if (n) return "Users." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_SearchUser) return e;
                var t = new a.Res_Player_SearchUser;
                if (e.Users) {
                    if (!Array.isArray(e.Users)) throw TypeError(".Res_Player_SearchUser.Users: array expected");
                    t.Users = [];
                    for (var n = 0; n < e.Users.length; ++n) {
                        if ("object" != typeof e.Users[n]) throw TypeError(".Res_Player_SearchUser.Users: object expected");
                        t.Users[n] = a.PlayerDetailInfo.fromObject(e.Users[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Users = []), e.Users && e.Users.length) {
                    n.Users = [];
                    for (var o = 0; o < e.Users.length; ++o) n.Users[o] = a.PlayerDetailInfo.toObject(e.Users[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_SearchUser"
            }, e
        }(), a.Req_Player_GetFriendList = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetFriendList; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetFriendList) return e;
                var t = new a.Req_Player_GetFriendList;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetFriendList"
            }, e
        }(), a.Res_Player_GetFriendList = function() {
            function e(e) {
                if (this.Users = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Users = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Users && e.Users.length)
                    for (var n = 0; n < e.Users.length; ++n) a.PlayerDetailInfo.encode(e.Users[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetFriendList; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Users && r.Users.length || (r.Users = []), r.Users.push(a.PlayerDetailInfo.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Users && e.hasOwnProperty("Users")) {
                    if (!Array.isArray(e.Users)) return "Users: array expected";
                    for (var t = 0; t < e.Users.length; ++t) {
                        var n = a.PlayerDetailInfo.verify(e.Users[t]);
                        if (n) return "Users." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetFriendList) return e;
                var t = new a.Res_Player_GetFriendList;
                if (e.Users) {
                    if (!Array.isArray(e.Users)) throw TypeError(".Res_Player_GetFriendList.Users: array expected");
                    t.Users = [];
                    for (var n = 0; n < e.Users.length; ++n) {
                        if ("object" != typeof e.Users[n]) throw TypeError(".Res_Player_GetFriendList.Users: object expected");
                        t.Users[n] = a.PlayerDetailInfo.fromObject(e.Users[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Users = []), e.Users && e.Users.length) {
                    n.Users = [];
                    for (var o = 0; o < e.Users.length; ++o) n.Users[o] = a.PlayerDetailInfo.toObject(e.Users[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetFriendList"
            }, e
        }(), a.Req_Player_GetBlacklist = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetBlacklist; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetBlacklist) return e;
                var t = new a.Req_Player_GetBlacklist;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetBlacklist"
            }, e
        }(), a.Res_Player_GetBlacklist = function() {
            function e(e) {
                if (this.Users = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Users = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Users && e.Users.length)
                    for (var n = 0; n < e.Users.length; ++n) a.PlayerDetailInfo.encode(e.Users[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetBlacklist; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Users && r.Users.length || (r.Users = []), r.Users.push(a.PlayerDetailInfo.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Users && e.hasOwnProperty("Users")) {
                    if (!Array.isArray(e.Users)) return "Users: array expected";
                    for (var t = 0; t < e.Users.length; ++t) {
                        var n = a.PlayerDetailInfo.verify(e.Users[t]);
                        if (n) return "Users." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetBlacklist) return e;
                var t = new a.Res_Player_GetBlacklist;
                if (e.Users) {
                    if (!Array.isArray(e.Users)) throw TypeError(".Res_Player_GetBlacklist.Users: array expected");
                    t.Users = [];
                    for (var n = 0; n < e.Users.length; ++n) {
                        if ("object" != typeof e.Users[n]) throw TypeError(".Res_Player_GetBlacklist.Users: object expected");
                        t.Users[n] = a.PlayerDetailInfo.fromObject(e.Users[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Users = []), e.Users && e.Users.length) {
                    n.Users = [];
                    for (var o = 0; o < e.Users.length; ++o) n.Users[o] = a.PlayerDetailInfo.toObject(e.Users[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetBlacklist"
            }, e
        }(), a.Req_Player_GetFriendRequests = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetFriendRequests; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetFriendRequests) return e;
                var t = new a.Req_Player_GetFriendRequests;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetFriendRequests"
            }, e
        }(), a.Res_Player_GetFriendRequests = function() {
            function e(e) {
                if (this.Users = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Users = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Users && e.Users.length)
                    for (var n = 0; n < e.Users.length; ++n) a.PlayerDetailInfo.encode(e.Users[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetFriendRequests; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Users && r.Users.length || (r.Users = []), r.Users.push(a.PlayerDetailInfo.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Users && e.hasOwnProperty("Users")) {
                    if (!Array.isArray(e.Users)) return "Users: array expected";
                    for (var t = 0; t < e.Users.length; ++t) {
                        var n = a.PlayerDetailInfo.verify(e.Users[t]);
                        if (n) return "Users." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetFriendRequests) return e;
                var t = new a.Res_Player_GetFriendRequests;
                if (e.Users) {
                    if (!Array.isArray(e.Users)) throw TypeError(".Res_Player_GetFriendRequests.Users: array expected");
                    t.Users = [];
                    for (var n = 0; n < e.Users.length; ++n) {
                        if ("object" != typeof e.Users[n]) throw TypeError(".Res_Player_GetFriendRequests.Users: object expected");
                        t.Users[n] = a.PlayerDetailInfo.fromObject(e.Users[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Users = []), e.Users && e.Users.length) {
                    n.Users = [];
                    for (var o = 0; o < e.Users.length; ++o) n.Users[o] = a.PlayerDetailInfo.toObject(e.Users[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetFriendRequests"
            }, e
        }(), a.Req_Player_ApplyFriend = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ApplyFriend; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ApplyFriend) return e;
                var t = new a.Req_Player_ApplyFriend;
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ApplyFriend"
            }, e
        }(), a.Req_Player_RemoveFriend = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_RemoveFriend; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_RemoveFriend) return e;
                var t = new a.Req_Player_RemoveFriend;
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_RemoveFriend"
            }, e
        }(), a.Req_Player_HandleFriendRequest = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IsAgree = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), null != e.IsAgree && Object.hasOwnProperty.call(e, "IsAgree") && t.uint32(16).bool(e.IsAgree), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_HandleFriendRequest; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        case 2:
                            r.IsAgree = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null != e.IsAgree && e.hasOwnProperty("IsAgree") && "boolean" != typeof e.IsAgree ? "IsAgree: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_HandleFriendRequest) return e;
                var t = new a.Req_Player_HandleFriendRequest;
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), null != e.IsAgree && (t.IsAgree = Boolean(e.IsAgree)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                    n.IsAgree = !1
                }
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), null != e.IsAgree && e.hasOwnProperty("IsAgree") && (n.IsAgree = e.IsAgree), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_HandleFriendRequest"
            }, e
        }(), a.Req_Player_AddBlacklist = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_AddBlacklist; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_AddBlacklist) return e;
                var t = new a.Req_Player_AddBlacklist;
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_AddBlacklist"
            }, e
        }(), a.Req_Player_RemoveBlacklist = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_RemoveBlacklist; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_RemoveBlacklist) return e;
                var t = new a.Req_Player_RemoveBlacklist;
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_RemoveBlacklist"
            }, e
        }(), a.Req_Player_GiveGift = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GiveGift; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GiveGift) return e;
                var t = new a.Req_Player_GiveGift;
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GiveGift"
            }, e
        }(), a.Req_Player_AcceptGift = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_AcceptGift; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_AcceptGift) return e;
                var t = new a.Req_Player_AcceptGift;
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_AcceptGift"
            }, e
        }(), a.Req_Player_GiveAndReceiveGifts = function() {
            function e(e) {
                if (this.GiveUids = [], this.AcceptUids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.GiveUids = i.emptyArray, e.prototype.AcceptUids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.GiveUids && e.GiveUids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.GiveUids.length; ++n) t.int64(e.GiveUids[n]);
                    t.ldelim()
                }
                if (null != e.AcceptUids && e.AcceptUids.length) {
                    for (t.uint32(18).fork(), n = 0; n < e.AcceptUids.length; ++n) t.int64(e.AcceptUids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GiveAndReceiveGifts; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.GiveUids && r.GiveUids.length || (r.GiveUids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.GiveUids.push(e.int64());
                            else r.GiveUids.push(e.int64());
                            break;
                        case 2:
                            if (r.AcceptUids && r.AcceptUids.length || (r.AcceptUids = []), 2 == (7 & i))
                                for (s = e.uint32() + e.pos; e.pos < s;) r.AcceptUids.push(e.int64());
                            else r.AcceptUids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.GiveUids && e.hasOwnProperty("GiveUids")) {
                    if (!Array.isArray(e.GiveUids)) return "GiveUids: array expected";
                    for (var t = 0; t < e.GiveUids.length; ++t)
                        if (!(i.isInteger(e.GiveUids[t]) || e.GiveUids[t] && i.isInteger(e.GiveUids[t].low) && i.isInteger(e.GiveUids[t].high))) return "GiveUids: integer|Long[] expected"
                }
                if (null != e.AcceptUids && e.hasOwnProperty("AcceptUids")) {
                    if (!Array.isArray(e.AcceptUids)) return "AcceptUids: array expected";
                    for (t = 0; t < e.AcceptUids.length; ++t)
                        if (!(i.isInteger(e.AcceptUids[t]) || e.AcceptUids[t] && i.isInteger(e.AcceptUids[t].low) && i.isInteger(e.AcceptUids[t].high))) return "AcceptUids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GiveAndReceiveGifts) return e;
                var t = new a.Req_Player_GiveAndReceiveGifts;
                if (e.GiveUids) {
                    if (!Array.isArray(e.GiveUids)) throw TypeError(".Req_Player_GiveAndReceiveGifts.GiveUids: array expected");
                    t.GiveUids = [];
                    for (var n = 0; n < e.GiveUids.length; ++n) i.Long ? (t.GiveUids[n] = i.Long.fromValue(e.GiveUids[n])).unsigned = !1 : "string" == typeof e.GiveUids[n] ? t.GiveUids[n] = parseInt(e.GiveUids[n], 10) : "number" == typeof e.GiveUids[n] ? t.GiveUids[n] = e.GiveUids[n] : "object" == typeof e.GiveUids[n] && (t.GiveUids[n] = new i.LongBits(e.GiveUids[n].low >>> 0, e.GiveUids[n].high >>> 0).toNumber())
                }
                if (e.AcceptUids) {
                    if (!Array.isArray(e.AcceptUids)) throw TypeError(".Req_Player_GiveAndReceiveGifts.AcceptUids: array expected");
                    for (t.AcceptUids = [], n = 0; n < e.AcceptUids.length; ++n) i.Long ? (t.AcceptUids[n] = i.Long.fromValue(e.AcceptUids[n])).unsigned = !1 : "string" == typeof e.AcceptUids[n] ? t.AcceptUids[n] = parseInt(e.AcceptUids[n], 10) : "number" == typeof e.AcceptUids[n] ? t.AcceptUids[n] = e.AcceptUids[n] : "object" == typeof e.AcceptUids[n] && (t.AcceptUids[n] = new i.LongBits(e.AcceptUids[n].low >>> 0, e.AcceptUids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.GiveUids = [], n.AcceptUids = []), e.GiveUids && e.GiveUids.length) {
                    n.GiveUids = [];
                    for (var o = 0; o < e.GiveUids.length; ++o) "number" == typeof e.GiveUids[o] ? n.GiveUids[o] = t.longs === String ? String(e.GiveUids[o]) : e.GiveUids[o] : n.GiveUids[o] = t.longs === String ? i.Long.prototype.toString.call(e.GiveUids[o]) : t.longs === Number ? new i.LongBits(e.GiveUids[o].low >>> 0, e.GiveUids[o].high >>> 0).toNumber() : e.GiveUids[o]
                }
                if (e.AcceptUids && e.AcceptUids.length)
                    for (n.AcceptUids = [], o = 0; o < e.AcceptUids.length; ++o) "number" == typeof e.AcceptUids[o] ? n.AcceptUids[o] = t.longs === String ? String(e.AcceptUids[o]) : e.AcceptUids[o] : n.AcceptUids[o] = t.longs === String ? i.Long.prototype.toString.call(e.AcceptUids[o]) : t.longs === Number ? new i.LongBits(e.AcceptUids[o].low >>> 0, e.AcceptUids[o].high >>> 0).toNumber() : e.AcceptUids[o];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GiveAndReceiveGifts"
            }, e
        }(), a.Res_Player_GiveAndReceiveGifts = function() {
            function e(e) {
                if (this.Changes = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Changes = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Changes && e.Changes.length)
                    for (var n = 0; n < e.Changes.length; ++n) a.PlayerDetailInfo.encode(e.Changes[n], t.uint32(10).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GiveAndReceiveGifts; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Changes && r.Changes.length || (r.Changes = []), r.Changes.push(a.PlayerDetailInfo.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Changes && e.hasOwnProperty("Changes")) {
                    if (!Array.isArray(e.Changes)) return "Changes: array expected";
                    for (var t = 0; t < e.Changes.length; ++t)
                        if (n = a.PlayerDetailInfo.verify(e.Changes[t])) return "Changes." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GiveAndReceiveGifts) return e;
                var t = new a.Res_Player_GiveAndReceiveGifts;
                if (e.Changes) {
                    if (!Array.isArray(e.Changes)) throw TypeError(".Res_Player_GiveAndReceiveGifts.Changes: array expected");
                    t.Changes = [];
                    for (var n = 0; n < e.Changes.length; ++n) {
                        if ("object" != typeof e.Changes[n]) throw TypeError(".Res_Player_GiveAndReceiveGifts.Changes: object expected");
                        t.Changes[n] = a.PlayerDetailInfo.fromObject(e.Changes[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Player_GiveAndReceiveGifts.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Player_GiveAndReceiveGifts.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Changes = [], n.Rewards = []), e.Changes && e.Changes.length) {
                    n.Changes = [];
                    for (var o = 0; o < e.Changes.length; ++o) n.Changes[o] = a.PlayerDetailInfo.toObject(e.Changes[o], t)
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GiveAndReceiveGifts"
            }, e
        }(), a.Req_Player_FriendPK = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Formations = i.emptyArray, e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(10).fork()).ldelim();
                return null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(16).int64(e.TargetUid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_FriendPK; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.TargetUid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_FriendPK) return e;
                var t = new a.Req_Player_FriendPK;
                if (e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Player_FriendPK.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Player_FriendPK.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                if (e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_FriendPK"
            }, e
        }(), a.Res_Player_FriendPK = function() {
            function e(e) {
                if (this.Reports = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = 0, e.prototype.Reports = i.emptyArray, e.prototype.TargetInfo = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int32(e.Result), null != e.Reports && e.Reports.length)
                    for (var n = 0; n < e.Reports.length; ++n) a.BattleReport.encode(e.Reports[n], t.uint32(18).fork()).ldelim();
                return null != e.TargetInfo && Object.hasOwnProperty.call(e, "TargetInfo") && a.PlayerSimpleInfo.encode(e.TargetInfo, t.uint32(26).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_FriendPK; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int32();
                            break;
                        case 2:
                            r.Reports && r.Reports.length || (r.Reports = []), r.Reports.push(a.BattleReport.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.TargetInfo = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.Reports && e.hasOwnProperty("Reports")) {
                    if (!Array.isArray(e.Reports)) return "Reports: array expected";
                    for (var t = 0; t < e.Reports.length; ++t)
                        if (n = a.BattleReport.verify(e.Reports[t])) return "Reports." + n
                }
                var n;
                return null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n = a.PlayerSimpleInfo.verify(e.TargetInfo)) ? "TargetInfo." + n : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_FriendPK) return e;
                var t = new a.Res_Player_FriendPK;
                if (null != e.Result && (t.Result = 0 | e.Result), e.Reports) {
                    if (!Array.isArray(e.Reports)) throw TypeError(".Res_Player_FriendPK.Reports: array expected");
                    t.Reports = [];
                    for (var n = 0; n < e.Reports.length; ++n) {
                        if ("object" != typeof e.Reports[n]) throw TypeError(".Res_Player_FriendPK.Reports: object expected");
                        t.Reports[n] = a.BattleReport.fromObject(e.Reports[n])
                    }
                }
                if (null != e.TargetInfo) {
                    if ("object" != typeof e.TargetInfo) throw TypeError(".Res_Player_FriendPK.TargetInfo: object expected");
                    t.TargetInfo = a.PlayerSimpleInfo.fromObject(e.TargetInfo)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Reports = []), t.defaults && (n.Result = 0, n.TargetInfo = null), null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), e.Reports && e.Reports.length) {
                    n.Reports = [];
                    for (var o = 0; o < e.Reports.length; ++o) n.Reports[o] = a.BattleReport.toObject(e.Reports[o], t)
                }
                return null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n.TargetInfo = a.PlayerSimpleInfo.toObject(e.TargetInfo, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_FriendPK"
            }, e
        }(), a.Req_Player_ShareCallback = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ShareCallback; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ShareCallback) return e;
                var t = new a.Req_Player_ShareCallback;
                return null != e.Type && (t.Type = 0 | e.Type), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ShareCallback"
            }, e
        }(), a.Res_Player_ShareCallback = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_ShareCallback; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.UserItem_Model.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_ShareCallback) return e;
                var t = new a.Res_Player_ShareCallback;
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Player_ShareCallback.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Player_ShareCallback.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_ShareCallback"
            }, e
        }(), a.Req_Player_CompleteNewerGuide = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_CompleteNewerGuide; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_CompleteNewerGuide) return e;
                var t = new a.Req_Player_CompleteNewerGuide;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_CompleteNewerGuide"
            }, e
        }(), a.Req_Player_CompleteGameModuleGuide = function() {
            function e(e) {
                if (this.Ids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Ids = i.emptyArray, e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Ids && e.Ids.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Ids.length; ++n) t.int64(e.Ids[n]);
                    t.ldelim()
                }
                return null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_CompleteGameModuleGuide; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            if (r.Ids && r.Ids.length || (r.Ids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Ids.push(e.int64());
                            else r.Ids.push(e.int64());
                            break;
                        case 3:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Ids && e.hasOwnProperty("Ids")) {
                    if (!Array.isArray(e.Ids)) return "Ids: array expected";
                    for (var t = 0; t < e.Ids.length; ++t)
                        if (!(i.isInteger(e.Ids[t]) || e.Ids[t] && i.isInteger(e.Ids[t].low) && i.isInteger(e.Ids[t].high))) return "Ids: integer|Long[] expected"
                }
                return null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_CompleteGameModuleGuide) return e;
                var t = new a.Req_Player_CompleteGameModuleGuide;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Ids) {
                    if (!Array.isArray(e.Ids)) throw TypeError(".Req_Player_CompleteGameModuleGuide.Ids: array expected");
                    t.Ids = [];
                    for (var n = 0; n < e.Ids.length; ++n) i.Long ? (t.Ids[n] = i.Long.fromValue(e.Ids[n])).unsigned = !1 : "string" == typeof e.Ids[n] ? t.Ids[n] = parseInt(e.Ids[n], 10) : "number" == typeof e.Ids[n] ? t.Ids[n] = e.Ids[n] : "object" == typeof e.Ids[n] && (t.Ids[n] = new i.LongBits(e.Ids[n].low >>> 0, e.Ids[n].high >>> 0).toNumber())
                }
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Ids = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Type = t.longs === String ? "0" : 0
                }
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Ids && e.Ids.length) {
                    n.Ids = [];
                    for (var r = 0; r < e.Ids.length; ++r) "number" == typeof e.Ids[r] ? n.Ids[r] = t.longs === String ? String(e.Ids[r]) : e.Ids[r] : n.Ids[r] = t.longs === String ? i.Long.prototype.toString.call(e.Ids[r]) : t.longs === Number ? new i.LongBits(e.Ids[r].low >>> 0, e.Ids[r].high >>> 0).toNumber() : e.Ids[r]
                }
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_CompleteGameModuleGuide"
            }, e
        }(), a.Req_Player_SaveClientStorage = function() {
            function e(e) {
                if (this.Data = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Data = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Data && e.Data.length)
                    for (var n = 0; n < e.Data.length; ++n) a.ClientStorage_Model.encode(e.Data[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_SaveClientStorage; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Data && r.Data.length || (r.Data = []), r.Data.push(a.ClientStorage_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t) {
                        var n = a.ClientStorage_Model.verify(e.Data[t]);
                        if (n) return "Data." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_SaveClientStorage) return e;
                var t = new a.Req_Player_SaveClientStorage;
                if (e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".Req_Player_SaveClientStorage.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) {
                        if ("object" != typeof e.Data[n]) throw TypeError(".Req_Player_SaveClientStorage.Data: object expected");
                        t.Data[n] = a.ClientStorage_Model.fromObject(e.Data[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = []), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var o = 0; o < e.Data.length; ++o) n.Data[o] = a.ClientStorage_Model.toObject(e.Data[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_SaveClientStorage"
            }, e
        }(), a.Req_Player_NewPlayerReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_NewPlayerReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_NewPlayerReward) return e;
                var t = new a.Req_Player_NewPlayerReward;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_NewPlayerReward"
            }, e
        }(), a.Req_Player_DaysPayEnter = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_DaysPayEnter; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_DaysPayEnter) return e;
                var t = new a.Req_Player_DaysPayEnter;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_DaysPayEnter"
            }, e
        }(), a.Res_Player_DaysPayEnter = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.DaysPayDays = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DaysPayRewards = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DaysPayFinallyReward = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DaysPayDailyReward = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.DaysPayDays && Object.hasOwnProperty.call(e, "DaysPayDays") && t.uint32(8).int64(e.DaysPayDays), null != e.DaysPayRewards && Object.hasOwnProperty.call(e, "DaysPayRewards") && t.uint32(16).int64(e.DaysPayRewards), null != e.DaysPayFinallyReward && Object.hasOwnProperty.call(e, "DaysPayFinallyReward") && t.uint32(24).int64(e.DaysPayFinallyReward), null != e.DaysPayDailyReward && Object.hasOwnProperty.call(e, "DaysPayDailyReward") && t.uint32(32).int64(e.DaysPayDailyReward), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_DaysPayEnter; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.DaysPayDays = e.int64();
                            break;
                        case 2:
                            r.DaysPayRewards = e.int64();
                            break;
                        case 3:
                            r.DaysPayFinallyReward = e.int64();
                            break;
                        case 4:
                            r.DaysPayDailyReward = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.DaysPayDays && e.hasOwnProperty("DaysPayDays") && !(i.isInteger(e.DaysPayDays) || e.DaysPayDays && i.isInteger(e.DaysPayDays.low) && i.isInteger(e.DaysPayDays.high)) ? "DaysPayDays: integer|Long expected" : null != e.DaysPayRewards && e.hasOwnProperty("DaysPayRewards") && !(i.isInteger(e.DaysPayRewards) || e.DaysPayRewards && i.isInteger(e.DaysPayRewards.low) && i.isInteger(e.DaysPayRewards.high)) ? "DaysPayRewards: integer|Long expected" : null != e.DaysPayFinallyReward && e.hasOwnProperty("DaysPayFinallyReward") && !(i.isInteger(e.DaysPayFinallyReward) || e.DaysPayFinallyReward && i.isInteger(e.DaysPayFinallyReward.low) && i.isInteger(e.DaysPayFinallyReward.high)) ? "DaysPayFinallyReward: integer|Long expected" : null != e.DaysPayDailyReward && e.hasOwnProperty("DaysPayDailyReward") && !(i.isInteger(e.DaysPayDailyReward) || e.DaysPayDailyReward && i.isInteger(e.DaysPayDailyReward.low) && i.isInteger(e.DaysPayDailyReward.high)) ? "DaysPayDailyReward: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_DaysPayEnter) return e;
                var t = new a.Res_Player_DaysPayEnter;
                return null != e.DaysPayDays && (i.Long ? (t.DaysPayDays = i.Long.fromValue(e.DaysPayDays)).unsigned = !1 : "string" == typeof e.DaysPayDays ? t.DaysPayDays = parseInt(e.DaysPayDays, 10) : "number" == typeof e.DaysPayDays ? t.DaysPayDays = e.DaysPayDays : "object" == typeof e.DaysPayDays && (t.DaysPayDays = new i.LongBits(e.DaysPayDays.low >>> 0, e.DaysPayDays.high >>> 0).toNumber())), null != e.DaysPayRewards && (i.Long ? (t.DaysPayRewards = i.Long.fromValue(e.DaysPayRewards)).unsigned = !1 : "string" == typeof e.DaysPayRewards ? t.DaysPayRewards = parseInt(e.DaysPayRewards, 10) : "number" == typeof e.DaysPayRewards ? t.DaysPayRewards = e.DaysPayRewards : "object" == typeof e.DaysPayRewards && (t.DaysPayRewards = new i.LongBits(e.DaysPayRewards.low >>> 0, e.DaysPayRewards.high >>> 0).toNumber())), null != e.DaysPayFinallyReward && (i.Long ? (t.DaysPayFinallyReward = i.Long.fromValue(e.DaysPayFinallyReward)).unsigned = !1 : "string" == typeof e.DaysPayFinallyReward ? t.DaysPayFinallyReward = parseInt(e.DaysPayFinallyReward, 10) : "number" == typeof e.DaysPayFinallyReward ? t.DaysPayFinallyReward = e.DaysPayFinallyReward : "object" == typeof e.DaysPayFinallyReward && (t.DaysPayFinallyReward = new i.LongBits(e.DaysPayFinallyReward.low >>> 0, e.DaysPayFinallyReward.high >>> 0).toNumber())), null != e.DaysPayDailyReward && (i.Long ? (t.DaysPayDailyReward = i.Long.fromValue(e.DaysPayDailyReward)).unsigned = !1 : "string" == typeof e.DaysPayDailyReward ? t.DaysPayDailyReward = parseInt(e.DaysPayDailyReward, 10) : "number" == typeof e.DaysPayDailyReward ? t.DaysPayDailyReward = e.DaysPayDailyReward : "object" == typeof e.DaysPayDailyReward && (t.DaysPayDailyReward = new i.LongBits(e.DaysPayDailyReward.low >>> 0, e.DaysPayDailyReward.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.DaysPayDays = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.DaysPayDays = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.DaysPayRewards = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DaysPayRewards = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DaysPayFinallyReward = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DaysPayFinallyReward = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DaysPayDailyReward = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DaysPayDailyReward = t.longs === String ? "0" : 0
                }
                return null != e.DaysPayDays && e.hasOwnProperty("DaysPayDays") && ("number" == typeof e.DaysPayDays ? n.DaysPayDays = t.longs === String ? String(e.DaysPayDays) : e.DaysPayDays : n.DaysPayDays = t.longs === String ? i.Long.prototype.toString.call(e.DaysPayDays) : t.longs === Number ? new i.LongBits(e.DaysPayDays.low >>> 0, e.DaysPayDays.high >>> 0).toNumber() : e.DaysPayDays), null != e.DaysPayRewards && e.hasOwnProperty("DaysPayRewards") && ("number" == typeof e.DaysPayRewards ? n.DaysPayRewards = t.longs === String ? String(e.DaysPayRewards) : e.DaysPayRewards : n.DaysPayRewards = t.longs === String ? i.Long.prototype.toString.call(e.DaysPayRewards) : t.longs === Number ? new i.LongBits(e.DaysPayRewards.low >>> 0, e.DaysPayRewards.high >>> 0).toNumber() : e.DaysPayRewards), null != e.DaysPayFinallyReward && e.hasOwnProperty("DaysPayFinallyReward") && ("number" == typeof e.DaysPayFinallyReward ? n.DaysPayFinallyReward = t.longs === String ? String(e.DaysPayFinallyReward) : e.DaysPayFinallyReward : n.DaysPayFinallyReward = t.longs === String ? i.Long.prototype.toString.call(e.DaysPayFinallyReward) : t.longs === Number ? new i.LongBits(e.DaysPayFinallyReward.low >>> 0, e.DaysPayFinallyReward.high >>> 0).toNumber() : e.DaysPayFinallyReward), null != e.DaysPayDailyReward && e.hasOwnProperty("DaysPayDailyReward") && ("number" == typeof e.DaysPayDailyReward ? n.DaysPayDailyReward = t.longs === String ? String(e.DaysPayDailyReward) : e.DaysPayDailyReward : n.DaysPayDailyReward = t.longs === String ? i.Long.prototype.toString.call(e.DaysPayDailyReward) : t.longs === Number ? new i.LongBits(e.DaysPayDailyReward.low >>> 0, e.DaysPayDailyReward.high >>> 0).toNumber() : e.DaysPayDailyReward), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_DaysPayEnter"
            }, e
        }(), a.Req_Player_DaysPayReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(16).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_DaysPayReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_DaysPayReward) return e;
                var t = new a.Req_Player_DaysPayReward;
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Id = t.longs === String ? "0" : 0
                }
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_DaysPayReward"
            }, e
        }(), a.Res_Player_DaysPayReward = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Rewards = i.emptyArray, e.prototype.DaysPayRewards = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DaysPayFinallyReward = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DaysPayDailyReward = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(10).fork()).ldelim();
                return null != e.DaysPayRewards && Object.hasOwnProperty.call(e, "DaysPayRewards") && t.uint32(16).int64(e.DaysPayRewards), null != e.DaysPayFinallyReward && Object.hasOwnProperty.call(e, "DaysPayFinallyReward") && t.uint32(24).int64(e.DaysPayFinallyReward), null != e.DaysPayDailyReward && Object.hasOwnProperty.call(e, "DaysPayDailyReward") && t.uint32(32).int64(e.DaysPayDailyReward), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_DaysPayReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.DaysPayRewards = e.int64();
                            break;
                        case 3:
                            r.DaysPayFinallyReward = e.int64();
                            break;
                        case 4:
                            r.DaysPayDailyReward = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.UserItem_Model.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                return null != e.DaysPayRewards && e.hasOwnProperty("DaysPayRewards") && !(i.isInteger(e.DaysPayRewards) || e.DaysPayRewards && i.isInteger(e.DaysPayRewards.low) && i.isInteger(e.DaysPayRewards.high)) ? "DaysPayRewards: integer|Long expected" : null != e.DaysPayFinallyReward && e.hasOwnProperty("DaysPayFinallyReward") && !(i.isInteger(e.DaysPayFinallyReward) || e.DaysPayFinallyReward && i.isInteger(e.DaysPayFinallyReward.low) && i.isInteger(e.DaysPayFinallyReward.high)) ? "DaysPayFinallyReward: integer|Long expected" : null != e.DaysPayDailyReward && e.hasOwnProperty("DaysPayDailyReward") && !(i.isInteger(e.DaysPayDailyReward) || e.DaysPayDailyReward && i.isInteger(e.DaysPayDailyReward.low) && i.isInteger(e.DaysPayDailyReward.high)) ? "DaysPayDailyReward: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_DaysPayReward) return e;
                var t = new a.Res_Player_DaysPayReward;
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Player_DaysPayReward.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Player_DaysPayReward.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return null != e.DaysPayRewards && (i.Long ? (t.DaysPayRewards = i.Long.fromValue(e.DaysPayRewards)).unsigned = !1 : "string" == typeof e.DaysPayRewards ? t.DaysPayRewards = parseInt(e.DaysPayRewards, 10) : "number" == typeof e.DaysPayRewards ? t.DaysPayRewards = e.DaysPayRewards : "object" == typeof e.DaysPayRewards && (t.DaysPayRewards = new i.LongBits(e.DaysPayRewards.low >>> 0, e.DaysPayRewards.high >>> 0).toNumber())), null != e.DaysPayFinallyReward && (i.Long ? (t.DaysPayFinallyReward = i.Long.fromValue(e.DaysPayFinallyReward)).unsigned = !1 : "string" == typeof e.DaysPayFinallyReward ? t.DaysPayFinallyReward = parseInt(e.DaysPayFinallyReward, 10) : "number" == typeof e.DaysPayFinallyReward ? t.DaysPayFinallyReward = e.DaysPayFinallyReward : "object" == typeof e.DaysPayFinallyReward && (t.DaysPayFinallyReward = new i.LongBits(e.DaysPayFinallyReward.low >>> 0, e.DaysPayFinallyReward.high >>> 0).toNumber())), null != e.DaysPayDailyReward && (i.Long ? (t.DaysPayDailyReward = i.Long.fromValue(e.DaysPayDailyReward)).unsigned = !1 : "string" == typeof e.DaysPayDailyReward ? t.DaysPayDailyReward = parseInt(e.DaysPayDailyReward, 10) : "number" == typeof e.DaysPayDailyReward ? t.DaysPayDailyReward = e.DaysPayDailyReward : "object" == typeof e.DaysPayDailyReward && (t.DaysPayDailyReward = new i.LongBits(e.DaysPayDailyReward.low >>> 0, e.DaysPayDailyReward.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.DaysPayRewards = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.DaysPayRewards = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.DaysPayFinallyReward = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DaysPayFinallyReward = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.DaysPayDailyReward = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.DaysPayDailyReward = t.longs === String ? "0" : 0
                }
                if (e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.UserItem_Model.toObject(e.Rewards[r], t)
                }
                return null != e.DaysPayRewards && e.hasOwnProperty("DaysPayRewards") && ("number" == typeof e.DaysPayRewards ? n.DaysPayRewards = t.longs === String ? String(e.DaysPayRewards) : e.DaysPayRewards : n.DaysPayRewards = t.longs === String ? i.Long.prototype.toString.call(e.DaysPayRewards) : t.longs === Number ? new i.LongBits(e.DaysPayRewards.low >>> 0, e.DaysPayRewards.high >>> 0).toNumber() : e.DaysPayRewards), null != e.DaysPayFinallyReward && e.hasOwnProperty("DaysPayFinallyReward") && ("number" == typeof e.DaysPayFinallyReward ? n.DaysPayFinallyReward = t.longs === String ? String(e.DaysPayFinallyReward) : e.DaysPayFinallyReward : n.DaysPayFinallyReward = t.longs === String ? i.Long.prototype.toString.call(e.DaysPayFinallyReward) : t.longs === Number ? new i.LongBits(e.DaysPayFinallyReward.low >>> 0, e.DaysPayFinallyReward.high >>> 0).toNumber() : e.DaysPayFinallyReward), null != e.DaysPayDailyReward && e.hasOwnProperty("DaysPayDailyReward") && ("number" == typeof e.DaysPayDailyReward ? n.DaysPayDailyReward = t.longs === String ? String(e.DaysPayDailyReward) : e.DaysPayDailyReward : n.DaysPayDailyReward = t.longs === String ? i.Long.prototype.toString.call(e.DaysPayDailyReward) : t.longs === Number ? new i.LongBits(e.DaysPayDailyReward.low >>> 0, e.DaysPayDailyReward.high >>> 0).toNumber() : e.DaysPayDailyReward), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_DaysPayReward"
            }, e
        }(), a.Req_Player_ReciveChaosTicket = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_ReciveChaosTicket; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_ReciveChaosTicket) return e;
                var t = new a.Req_Player_ReciveChaosTicket;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_ReciveChaosTicket"
            }, e
        }(), a.Req_Player_GetBattleMessages = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetBattleMessages; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetBattleMessages) return e;
                var t = new a.Req_Player_GetBattleMessages;
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetBattleMessages"
            }, e
        }(), a.Res_Player_GetBattleMessages = function() {
            function e(e) {
                if (this.Data = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Data = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Data && e.Data.length)
                    for (var n = 0; n < e.Data.length; ++n) a.BattleMessage.encode(e.Data[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetBattleMessages; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Data && r.Data.length || (r.Data = []), r.Data.push(a.BattleMessage.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t) {
                        var n = a.BattleMessage.verify(e.Data[t]);
                        if (n) return "Data." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetBattleMessages) return e;
                var t = new a.Res_Player_GetBattleMessages;
                if (e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".Res_Player_GetBattleMessages.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) {
                        if ("object" != typeof e.Data[n]) throw TypeError(".Res_Player_GetBattleMessages.Data: object expected");
                        t.Data[n] = a.BattleMessage.fromObject(e.Data[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = []), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var o = 0; o < e.Data.length; ++o) n.Data[o] = a.BattleMessage.toObject(e.Data[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetBattleMessages"
            }, e
        }(), a.Req_Player_GetCommonReport = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_GetCommonReport; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_GetCommonReport) return e;
                var t = new a.Req_Player_GetCommonReport;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_GetCommonReport"
            }, e
        }(), a.Res_Player_GetCommonReport = function() {
            function e(e) {
                if (this.Reports = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Reports = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Reports && e.Reports.length)
                    for (var n = 0; n < e.Reports.length; ++n) a.BattleReport.encode(e.Reports[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Player_GetCommonReport; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Reports && r.Reports.length || (r.Reports = []), r.Reports.push(a.BattleReport.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Reports && e.hasOwnProperty("Reports")) {
                    if (!Array.isArray(e.Reports)) return "Reports: array expected";
                    for (var t = 0; t < e.Reports.length; ++t) {
                        var n = a.BattleReport.verify(e.Reports[t]);
                        if (n) return "Reports." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Player_GetCommonReport) return e;
                var t = new a.Res_Player_GetCommonReport;
                if (e.Reports) {
                    if (!Array.isArray(e.Reports)) throw TypeError(".Res_Player_GetCommonReport.Reports: array expected");
                    t.Reports = [];
                    for (var n = 0; n < e.Reports.length; ++n) {
                        if ("object" != typeof e.Reports[n]) throw TypeError(".Res_Player_GetCommonReport.Reports: object expected");
                        t.Reports[n] = a.BattleReport.fromObject(e.Reports[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Reports = []), e.Reports && e.Reports.length) {
                    n.Reports = [];
                    for (var o = 0; o < e.Reports.length; ++o) n.Reports[o] = a.BattleReport.toObject(e.Reports[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Player_GetCommonReport"
            }, e
        }(), a.Req_Player_SetMainBackground = function() {
            function e(e) {
                if (this.Data = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Data = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Data && e.Data.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Data.length; ++n) t.int64(e.Data[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_SetMainBackground; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Data && r.Data.length || (r.Data = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Data.push(e.int64());
                            else r.Data.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t)
                        if (!(i.isInteger(e.Data[t]) || e.Data[t] && i.isInteger(e.Data[t].low) && i.isInteger(e.Data[t].high))) return "Data: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_SetMainBackground) return e;
                var t = new a.Req_Player_SetMainBackground;
                if (e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".Req_Player_SetMainBackground.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) i.Long ? (t.Data[n] = i.Long.fromValue(e.Data[n])).unsigned = !1 : "string" == typeof e.Data[n] ? t.Data[n] = parseInt(e.Data[n], 10) : "number" == typeof e.Data[n] ? t.Data[n] = e.Data[n] : "object" == typeof e.Data[n] && (t.Data[n] = new i.LongBits(e.Data[n].low >>> 0, e.Data[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = []), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var o = 0; o < e.Data.length; ++o) "number" == typeof e.Data[o] ? n.Data[o] = t.longs === String ? String(e.Data[o]) : e.Data[o] : n.Data[o] = t.longs === String ? i.Long.prototype.toString.call(e.Data[o]) : t.longs === Number ? new i.LongBits(e.Data[o].low >>> 0, e.Data[o].high >>> 0).toNumber() : e.Data[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_SetMainBackground"
            }, e
        }(), a.Req_Player_SetSkip = function() {
            function e(e) {
                if (this.Values = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.IsSkip = 0, e.prototype.Values = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.IsSkip && Object.hasOwnProperty.call(e, "IsSkip") && t.uint32(16).int32(e.IsSkip), null != e.Values && e.Values.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Values.length; ++n) t.int32(e.Values[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_SetSkip; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.IsSkip = e.int32();
                            break;
                        case 3:
                            if (r.Values && r.Values.length || (r.Values = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Values.push(e.int32());
                            else r.Values.push(e.int32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type)) return "Type: integer expected";
                if (null != e.IsSkip && e.hasOwnProperty("IsSkip") && !i.isInteger(e.IsSkip)) return "IsSkip: integer expected";
                if (null != e.Values && e.hasOwnProperty("Values")) {
                    if (!Array.isArray(e.Values)) return "Values: array expected";
                    for (var t = 0; t < e.Values.length; ++t)
                        if (!i.isInteger(e.Values[t])) return "Values: integer[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_SetSkip) return e;
                var t = new a.Req_Player_SetSkip;
                if (null != e.Type && (t.Type = 0 | e.Type), null != e.IsSkip && (t.IsSkip = 0 | e.IsSkip), e.Values) {
                    if (!Array.isArray(e.Values)) throw TypeError(".Req_Player_SetSkip.Values: array expected");
                    t.Values = [];
                    for (var n = 0; n < e.Values.length; ++n) t.Values[n] = 0 | e.Values[n]
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Values = []), t.defaults && (n.Type = 0, n.IsSkip = 0), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.IsSkip && e.hasOwnProperty("IsSkip") && (n.IsSkip = e.IsSkip), e.Values && e.Values.length) {
                    n.Values = [];
                    for (var o = 0; o < e.Values.length; ++o) n.Values[o] = e.Values[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_SetSkip"
            }, e
        }(), a.Req_Player_DetailNotShow = function() {
            function e(e) {
                if (this.NotShow = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.NotShow = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.NotShow && e.NotShow.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.NotShow.length; ++n) t.int64(e.NotShow[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_DetailNotShow; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.NotShow && r.NotShow.length || (r.NotShow = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.NotShow.push(e.int64());
                            else r.NotShow.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.NotShow && e.hasOwnProperty("NotShow")) {
                    if (!Array.isArray(e.NotShow)) return "NotShow: array expected";
                    for (var t = 0; t < e.NotShow.length; ++t)
                        if (!(i.isInteger(e.NotShow[t]) || e.NotShow[t] && i.isInteger(e.NotShow[t].low) && i.isInteger(e.NotShow[t].high))) return "NotShow: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_DetailNotShow) return e;
                var t = new a.Req_Player_DetailNotShow;
                if (e.NotShow) {
                    if (!Array.isArray(e.NotShow)) throw TypeError(".Req_Player_DetailNotShow.NotShow: array expected");
                    t.NotShow = [];
                    for (var n = 0; n < e.NotShow.length; ++n) i.Long ? (t.NotShow[n] = i.Long.fromValue(e.NotShow[n])).unsigned = !1 : "string" == typeof e.NotShow[n] ? t.NotShow[n] = parseInt(e.NotShow[n], 10) : "number" == typeof e.NotShow[n] ? t.NotShow[n] = e.NotShow[n] : "object" == typeof e.NotShow[n] && (t.NotShow[n] = new i.LongBits(e.NotShow[n].low >>> 0, e.NotShow[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.NotShow = []), e.NotShow && e.NotShow.length) {
                    n.NotShow = [];
                    for (var o = 0; o < e.NotShow.length; ++o) "number" == typeof e.NotShow[o] ? n.NotShow[o] = t.longs === String ? String(e.NotShow[o]) : e.NotShow[o] : n.NotShow[o] = t.longs === String ? i.Long.prototype.toString.call(e.NotShow[o]) : t.longs === Number ? new i.LongBits(e.NotShow[o].low >>> 0, e.NotShow[o].high >>> 0).toNumber() : e.NotShow[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_DetailNotShow"
            }, e
        }(), a.Req_Player_OldPlayerReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_OldPlayerReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_OldPlayerReward) return e;
                var t = new a.Req_Player_OldPlayerReward;
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_OldPlayerReward"
            }, e
        }(), a.Req_Player_DailyBuffReward = function() {
            function e(e) {
                if (this.Indexs = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Indexs = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Indexs && e.Indexs.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Indexs.length; ++n) t.int32(e.Indexs[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_DailyBuffReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Indexs && r.Indexs.length || (r.Indexs = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Indexs.push(e.int32());
                            else r.Indexs.push(e.int32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Indexs && e.hasOwnProperty("Indexs")) {
                    if (!Array.isArray(e.Indexs)) return "Indexs: array expected";
                    for (var t = 0; t < e.Indexs.length; ++t)
                        if (!i.isInteger(e.Indexs[t])) return "Indexs: integer[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_DailyBuffReward) return e;
                var t = new a.Req_Player_DailyBuffReward;
                if (e.Indexs) {
                    if (!Array.isArray(e.Indexs)) throw TypeError(".Req_Player_DailyBuffReward.Indexs: array expected");
                    t.Indexs = [];
                    for (var n = 0; n < e.Indexs.length; ++n) t.Indexs[n] = 0 | e.Indexs[n]
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Indexs = []), e.Indexs && e.Indexs.length) {
                    n.Indexs = [];
                    for (var o = 0; o < e.Indexs.length; ++o) n.Indexs[o] = e.Indexs[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_DailyBuffReward"
            }, e
        }(), a.Req_Player_SnsReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Receive = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Receive && Object.hasOwnProperty.call(e, "Receive") && t.uint32(8).int32(e.Receive), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Player_SnsReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Receive = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Receive && e.hasOwnProperty("Receive") && !i.isInteger(e.Receive) ? "Receive: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Player_SnsReward) return e;
                var t = new a.Req_Player_SnsReward;
                return null != e.Receive && (t.Receive = 0 | e.Receive), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Receive = 0), null != e.Receive && e.hasOwnProperty("Receive") && (n.Receive = e.Receive), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Player_SnsReward"
            }, e
        }(), a.Req_Mail_GetMailList = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Mail_GetMailList; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Mail_GetMailList) return e;
                var t = new a.Req_Mail_GetMailList;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Mail_GetMailList"
            }, e
        }(), a.Res_Mail_GetMailList = function() {
            function e(e) {
                if (this.Data = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Data = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Data && e.Data.length)
                    for (var n = 0; n < e.Data.length; ++n) a.UserMail_Model.encode(e.Data[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Mail_GetMailList; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Data && r.Data.length || (r.Data = []), r.Data.push(a.UserMail_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Data && e.hasOwnProperty("Data")) {
                    if (!Array.isArray(e.Data)) return "Data: array expected";
                    for (var t = 0; t < e.Data.length; ++t) {
                        var n = a.UserMail_Model.verify(e.Data[t]);
                        if (n) return "Data." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Mail_GetMailList) return e;
                var t = new a.Res_Mail_GetMailList;
                if (e.Data) {
                    if (!Array.isArray(e.Data)) throw TypeError(".Res_Mail_GetMailList.Data: array expected");
                    t.Data = [];
                    for (var n = 0; n < e.Data.length; ++n) {
                        if ("object" != typeof e.Data[n]) throw TypeError(".Res_Mail_GetMailList.Data: object expected");
                        t.Data[n] = a.UserMail_Model.fromObject(e.Data[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Data = []), e.Data && e.Data.length) {
                    n.Data = [];
                    for (var o = 0; o < e.Data.length; ++o) n.Data[o] = a.UserMail_Model.toObject(e.Data[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Mail_GetMailList"
            }, e
        }(), a.Req_Mail_Read = function() {
            function e(e) {
                if (this.Sids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sids && e.Sids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Sids.length; ++n) t.int64(e.Sids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Mail_Read; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Sids && r.Sids.length || (r.Sids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Sids.push(e.int64());
                            else r.Sids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sids && e.hasOwnProperty("Sids")) {
                    if (!Array.isArray(e.Sids)) return "Sids: array expected";
                    for (var t = 0; t < e.Sids.length; ++t)
                        if (!(i.isInteger(e.Sids[t]) || e.Sids[t] && i.isInteger(e.Sids[t].low) && i.isInteger(e.Sids[t].high))) return "Sids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Mail_Read) return e;
                var t = new a.Req_Mail_Read;
                if (e.Sids) {
                    if (!Array.isArray(e.Sids)) throw TypeError(".Req_Mail_Read.Sids: array expected");
                    t.Sids = [];
                    for (var n = 0; n < e.Sids.length; ++n) i.Long ? (t.Sids[n] = i.Long.fromValue(e.Sids[n])).unsigned = !1 : "string" == typeof e.Sids[n] ? t.Sids[n] = parseInt(e.Sids[n], 10) : "number" == typeof e.Sids[n] ? t.Sids[n] = e.Sids[n] : "object" == typeof e.Sids[n] && (t.Sids[n] = new i.LongBits(e.Sids[n].low >>> 0, e.Sids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Sids = []), e.Sids && e.Sids.length) {
                    n.Sids = [];
                    for (var o = 0; o < e.Sids.length; ++o) "number" == typeof e.Sids[o] ? n.Sids[o] = t.longs === String ? String(e.Sids[o]) : e.Sids[o] : n.Sids[o] = t.longs === String ? i.Long.prototype.toString.call(e.Sids[o]) : t.longs === Number ? new i.LongBits(e.Sids[o].low >>> 0, e.Sids[o].high >>> 0).toNumber() : e.Sids[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Mail_Read"
            }, e
        }(), a.Req_Mail_Delete = function() {
            function e(e) {
                if (this.Sids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sids && e.Sids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Sids.length; ++n) t.int64(e.Sids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Mail_Delete; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Sids && r.Sids.length || (r.Sids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Sids.push(e.int64());
                            else r.Sids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sids && e.hasOwnProperty("Sids")) {
                    if (!Array.isArray(e.Sids)) return "Sids: array expected";
                    for (var t = 0; t < e.Sids.length; ++t)
                        if (!(i.isInteger(e.Sids[t]) || e.Sids[t] && i.isInteger(e.Sids[t].low) && i.isInteger(e.Sids[t].high))) return "Sids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Mail_Delete) return e;
                var t = new a.Req_Mail_Delete;
                if (e.Sids) {
                    if (!Array.isArray(e.Sids)) throw TypeError(".Req_Mail_Delete.Sids: array expected");
                    t.Sids = [];
                    for (var n = 0; n < e.Sids.length; ++n) i.Long ? (t.Sids[n] = i.Long.fromValue(e.Sids[n])).unsigned = !1 : "string" == typeof e.Sids[n] ? t.Sids[n] = parseInt(e.Sids[n], 10) : "number" == typeof e.Sids[n] ? t.Sids[n] = e.Sids[n] : "object" == typeof e.Sids[n] && (t.Sids[n] = new i.LongBits(e.Sids[n].low >>> 0, e.Sids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Sids = []), e.Sids && e.Sids.length) {
                    n.Sids = [];
                    for (var o = 0; o < e.Sids.length; ++o) "number" == typeof e.Sids[o] ? n.Sids[o] = t.longs === String ? String(e.Sids[o]) : e.Sids[o] : n.Sids[o] = t.longs === String ? i.Long.prototype.toString.call(e.Sids[o]) : t.longs === Number ? new i.LongBits(e.Sids[o].low >>> 0, e.Sids[o].high >>> 0).toNumber() : e.Sids[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Mail_Delete"
            }, e
        }(), a.Req_Mail_DrawReward = function() {
            function e(e) {
                if (this.Sids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sids && e.Sids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Sids.length; ++n) t.int64(e.Sids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Mail_DrawReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Sids && r.Sids.length || (r.Sids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Sids.push(e.int64());
                            else r.Sids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sids && e.hasOwnProperty("Sids")) {
                    if (!Array.isArray(e.Sids)) return "Sids: array expected";
                    for (var t = 0; t < e.Sids.length; ++t)
                        if (!(i.isInteger(e.Sids[t]) || e.Sids[t] && i.isInteger(e.Sids[t].low) && i.isInteger(e.Sids[t].high))) return "Sids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Mail_DrawReward) return e;
                var t = new a.Req_Mail_DrawReward;
                if (e.Sids) {
                    if (!Array.isArray(e.Sids)) throw TypeError(".Req_Mail_DrawReward.Sids: array expected");
                    t.Sids = [];
                    for (var n = 0; n < e.Sids.length; ++n) i.Long ? (t.Sids[n] = i.Long.fromValue(e.Sids[n])).unsigned = !1 : "string" == typeof e.Sids[n] ? t.Sids[n] = parseInt(e.Sids[n], 10) : "number" == typeof e.Sids[n] ? t.Sids[n] = e.Sids[n] : "object" == typeof e.Sids[n] && (t.Sids[n] = new i.LongBits(e.Sids[n].low >>> 0, e.Sids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Sids = []), e.Sids && e.Sids.length) {
                    n.Sids = [];
                    for (var o = 0; o < e.Sids.length; ++o) "number" == typeof e.Sids[o] ? n.Sids[o] = t.longs === String ? String(e.Sids[o]) : e.Sids[o] : n.Sids[o] = t.longs === String ? i.Long.prototype.toString.call(e.Sids[o]) : t.longs === Number ? new i.LongBits(e.Sids[o].low >>> 0, e.Sids[o].high >>> 0).toNumber() : e.Sids[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Mail_DrawReward"
            }, e
        }(), a.Req_Shop_BuyItem = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.Id = 0, e.prototype.Count = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(16).int32(e.Id), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(24).int32(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Shop_BuyItem; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.Id = e.int32();
                            break;
                        case 3:
                            r.Count = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null != e.Id && e.hasOwnProperty("Id") && !i.isInteger(e.Id) ? "Id: integer expected" : null != e.Count && e.hasOwnProperty("Count") && !i.isInteger(e.Count) ? "Count: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Shop_BuyItem) return e;
                var t = new a.Req_Shop_BuyItem;
                return null != e.Type && (t.Type = 0 | e.Type), null != e.Id && (t.Id = 0 | e.Id), null != e.Count && (t.Count = 0 | e.Count), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0, n.Id = 0, n.Count = 0), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.Id && e.hasOwnProperty("Id") && (n.Id = e.Id), null != e.Count && e.hasOwnProperty("Count") && (n.Count = e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Shop_BuyItem"
            }, e
        }(), a.Req_Shop_OneClickBuyItem = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Shop_OneClickBuyItem; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Shop_OneClickBuyItem) return e;
                var t = new a.Req_Shop_OneClickBuyItem;
                return null != e.Type && (t.Type = 0 | e.Type), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Shop_OneClickBuyItem"
            }, e
        }(), a.Req_Shop_Refresh = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.UseCurrency = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.UseCurrency && Object.hasOwnProperty.call(e, "UseCurrency") && t.uint32(16).bool(e.UseCurrency), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Shop_Refresh; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.UseCurrency = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null != e.UseCurrency && e.hasOwnProperty("UseCurrency") && "boolean" != typeof e.UseCurrency ? "UseCurrency: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Shop_Refresh) return e;
                var t = new a.Req_Shop_Refresh;
                return null != e.Type && (t.Type = 0 | e.Type), null != e.UseCurrency && (t.UseCurrency = Boolean(e.UseCurrency)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0, n.UseCurrency = !1), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.UseCurrency && e.hasOwnProperty("UseCurrency") && (n.UseCurrency = e.UseCurrency), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Shop_Refresh"
            }, e
        }(), a.Req_TreasureHunt_Hunt = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.IsTen = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.IsTen && Object.hasOwnProperty.call(e, "IsTen") && t.uint32(16).bool(e.IsTen), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_TreasureHunt_Hunt; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.IsTen = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null != e.IsTen && e.hasOwnProperty("IsTen") && "boolean" != typeof e.IsTen ? "IsTen: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_TreasureHunt_Hunt) return e;
                var t = new a.Req_TreasureHunt_Hunt;
                return null != e.Type && (t.Type = 0 | e.Type), null != e.IsTen && (t.IsTen = Boolean(e.IsTen)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0, n.IsTen = !1), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.IsTen && e.hasOwnProperty("IsTen") && (n.IsTen = e.IsTen), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_TreasureHunt_Hunt"
            }, e
        }(), a.Res_TreasureHunt_Hunt = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Rewards = i.emptyArray, e.prototype.CellIndex = 0, e.prototype.Notice = null, e.prototype.Refresh = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(10).fork()).ldelim();
                return null != e.CellIndex && Object.hasOwnProperty.call(e, "CellIndex") && t.uint32(16).int32(e.CellIndex), null != e.Notice && Object.hasOwnProperty.call(e, "Notice") && a.TreasureHuntNotice_Model.encode(e.Notice, t.uint32(26).fork()).ldelim(), null != e.Refresh && Object.hasOwnProperty.call(e, "Refresh") && t.uint32(32).int32(e.Refresh), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_TreasureHunt_Hunt; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.CellIndex = e.int32();
                            break;
                        case 3:
                            r.Notice = a.TreasureHuntNotice_Model.decode(e, e.uint32());
                            break;
                        case 4:
                            r.Refresh = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                }
                return null != e.CellIndex && e.hasOwnProperty("CellIndex") && !i.isInteger(e.CellIndex) ? "CellIndex: integer expected" : null != e.Notice && e.hasOwnProperty("Notice") && (n = a.TreasureHuntNotice_Model.verify(e.Notice)) ? "Notice." + n : null != e.Refresh && e.hasOwnProperty("Refresh") && !i.isInteger(e.Refresh) ? "Refresh: integer expected" : null;
                var n
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_TreasureHunt_Hunt) return e;
                var t = new a.Res_TreasureHunt_Hunt;
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_TreasureHunt_Hunt.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_TreasureHunt_Hunt.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (null != e.CellIndex && (t.CellIndex = 0 | e.CellIndex), null != e.Notice) {
                    if ("object" != typeof e.Notice) throw TypeError(".Res_TreasureHunt_Hunt.Notice: object expected");
                    t.Notice = a.TreasureHuntNotice_Model.fromObject(e.Notice)
                }
                return null != e.Refresh && (t.Refresh = 0 | e.Refresh), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults && (n.CellIndex = 0, n.Notice = null, n.Refresh = 0), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                return null != e.CellIndex && e.hasOwnProperty("CellIndex") && (n.CellIndex = e.CellIndex), null != e.Notice && e.hasOwnProperty("Notice") && (n.Notice = a.TreasureHuntNotice_Model.toObject(e.Notice, t)), null != e.Refresh && e.hasOwnProperty("Refresh") && (n.Refresh = e.Refresh), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_TreasureHunt_Hunt"
            }, e
        }(), a.Req_TreasureHunt_Refresh = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.UseDiamond = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.UseDiamond && Object.hasOwnProperty.call(e, "UseDiamond") && t.uint32(16).int32(e.UseDiamond), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_TreasureHunt_Refresh; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.UseDiamond = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null != e.UseDiamond && e.hasOwnProperty("UseDiamond") && !i.isInteger(e.UseDiamond) ? "UseDiamond: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_TreasureHunt_Refresh) return e;
                var t = new a.Req_TreasureHunt_Refresh;
                return null != e.Type && (t.Type = 0 | e.Type), null != e.UseDiamond && (t.UseDiamond = 0 | e.UseDiamond), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0, n.UseDiamond = 0), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.UseDiamond && e.hasOwnProperty("UseDiamond") && (n.UseDiamond = e.UseDiamond), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_TreasureHunt_Refresh"
            }, e
        }(), a.Req_TreasureHunt_PointReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.RewardIndex = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.RewardIndex && Object.hasOwnProperty.call(e, "RewardIndex") && t.uint32(16).int32(e.RewardIndex), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_TreasureHunt_PointReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.RewardIndex = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null != e.RewardIndex && e.hasOwnProperty("RewardIndex") && !i.isInteger(e.RewardIndex) ? "RewardIndex: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_TreasureHunt_PointReward) return e;
                var t = new a.Req_TreasureHunt_PointReward;
                return null != e.Type && (t.Type = 0 | e.Type), null != e.RewardIndex && (t.RewardIndex = 0 | e.RewardIndex), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0, n.RewardIndex = 0), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.RewardIndex && e.hasOwnProperty("RewardIndex") && (n.RewardIndex = e.RewardIndex), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_TreasureHunt_PointReward"
            }, e
        }(), a.Req_TreasureHunt_GetNotice = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_TreasureHunt_GetNotice; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_TreasureHunt_GetNotice) return e;
                var t = new a.Req_TreasureHunt_GetNotice;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_TreasureHunt_GetNotice"
            }, e
        }(), a.Res_TreasureHunt_GetNotice = function() {
            function e(e) {
                if (this.Notices = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Notices = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Notices && e.Notices.length)
                    for (var n = 0; n < e.Notices.length; ++n) a.TreasureHuntNotice_Model.encode(e.Notices[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_TreasureHunt_GetNotice; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Notices && r.Notices.length || (r.Notices = []), r.Notices.push(a.TreasureHuntNotice_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Notices && e.hasOwnProperty("Notices")) {
                    if (!Array.isArray(e.Notices)) return "Notices: array expected";
                    for (var t = 0; t < e.Notices.length; ++t) {
                        var n = a.TreasureHuntNotice_Model.verify(e.Notices[t]);
                        if (n) return "Notices." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_TreasureHunt_GetNotice) return e;
                var t = new a.Res_TreasureHunt_GetNotice;
                if (e.Notices) {
                    if (!Array.isArray(e.Notices)) throw TypeError(".Res_TreasureHunt_GetNotice.Notices: array expected");
                    t.Notices = [];
                    for (var n = 0; n < e.Notices.length; ++n) {
                        if ("object" != typeof e.Notices[n]) throw TypeError(".Res_TreasureHunt_GetNotice.Notices: object expected");
                        t.Notices[n] = a.TreasureHuntNotice_Model.fromObject(e.Notices[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Notices = []), e.Notices && e.Notices.length) {
                    n.Notices = [];
                    for (var o = 0; o < e.Notices.length; ++o) n.Notices[o] = a.TreasureHuntNotice_Model.toObject(e.Notices[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_TreasureHunt_GetNotice"
            }, e
        }(), a.Req_Item_SellItem = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(8).int64(e.ItemId), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(16).int32(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_SellItem; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.ItemId = e.int64();
                            break;
                        case 2:
                            r.Count = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null != e.Count && e.hasOwnProperty("Count") && !i.isInteger(e.Count) ? "Count: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_SellItem) return e;
                var t = new a.Req_Item_SellItem;
                return null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), null != e.Count && (t.Count = 0 | e.Count), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.ItemId = t.longs === String ? "0" : 0;
                    n.Count = 0
                }
                return null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), null != e.Count && e.hasOwnProperty("Count") && (n.Count = e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_SellItem"
            }, e
        }(), a.Req_Item_UseItem = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = 0, e.prototype.SelIndex = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(8).int64(e.ItemId), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(16).int32(e.Count), null != e.SelIndex && Object.hasOwnProperty.call(e, "SelIndex") && t.uint32(24).int32(e.SelIndex), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_UseItem; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.ItemId = e.int64();
                            break;
                        case 2:
                            r.Count = e.int32();
                            break;
                        case 3:
                            r.SelIndex = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null != e.Count && e.hasOwnProperty("Count") && !i.isInteger(e.Count) ? "Count: integer expected" : null != e.SelIndex && e.hasOwnProperty("SelIndex") && !i.isInteger(e.SelIndex) ? "SelIndex: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_UseItem) return e;
                var t = new a.Req_Item_UseItem;
                return null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), null != e.Count && (t.Count = 0 | e.Count), null != e.SelIndex && (t.SelIndex = 0 | e.SelIndex), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.ItemId = t.longs === String ? "0" : 0;
                    n.Count = 0, n.SelIndex = 0
                }
                return null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), null != e.Count && e.hasOwnProperty("Count") && (n.Count = e.Count), null != e.SelIndex && e.hasOwnProperty("SelIndex") && (n.SelIndex = e.SelIndex), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_UseItem"
            }, e
        }(), a.Req_Item_UseItems = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Items = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Items && e.Items.length)
                    for (var n = 0; n < e.Items.length; ++n) a.IntArray.encode(e.Items[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_UseItems; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Items && r.Items.length || (r.Items = []), r.Items.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t) {
                        var n = a.IntArray.verify(e.Items[t]);
                        if (n) return "Items." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_UseItems) return e;
                var t = new a.Req_Item_UseItems;
                if (e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".Req_Item_UseItems.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) {
                        if ("object" != typeof e.Items[n]) throw TypeError(".Req_Item_UseItems.Items: object expected");
                        t.Items[n] = a.IntArray.fromObject(e.Items[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var o = 0; o < e.Items.length; ++o) n.Items[o] = a.IntArray.toObject(e.Items[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_UseItems"
            }, e
        }(), a.Req_Item_ComposePiece = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(8).int64(e.ItemId), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(16).int32(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_ComposePiece; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.ItemId = e.int64();
                            break;
                        case 2:
                            r.Count = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null != e.Count && e.hasOwnProperty("Count") && !i.isInteger(e.Count) ? "Count: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_ComposePiece) return e;
                var t = new a.Req_Item_ComposePiece;
                return null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), null != e.Count && (t.Count = 0 | e.Count), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.ItemId = t.longs === String ? "0" : 0;
                    n.Count = 0
                }
                return null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), null != e.Count && e.hasOwnProperty("Count") && (n.Count = e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_ComposePiece"
            }, e
        }(), a.Req_Item_OneClickComposePiece = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_OneClickComposePiece; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_OneClickComposePiece) return e;
                var t = new a.Req_Item_OneClickComposePiece;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_OneClickComposePiece"
            }, e
        }(), a.Req_Item_DisplaceCommonItem = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NewItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(8).int64(e.ItemId), null != e.NewItemId && Object.hasOwnProperty.call(e, "NewItemId") && t.uint32(16).int64(e.NewItemId), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(24).int32(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_DisplaceCommonItem; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.ItemId = e.int64();
                            break;
                        case 2:
                            r.NewItemId = e.int64();
                            break;
                        case 3:
                            r.Count = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null != e.NewItemId && e.hasOwnProperty("NewItemId") && !(i.isInteger(e.NewItemId) || e.NewItemId && i.isInteger(e.NewItemId.low) && i.isInteger(e.NewItemId.high)) ? "NewItemId: integer|Long expected" : null != e.Count && e.hasOwnProperty("Count") && !i.isInteger(e.Count) ? "Count: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_DisplaceCommonItem) return e;
                var t = new a.Req_Item_DisplaceCommonItem;
                return null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), null != e.NewItemId && (i.Long ? (t.NewItemId = i.Long.fromValue(e.NewItemId)).unsigned = !1 : "string" == typeof e.NewItemId ? t.NewItemId = parseInt(e.NewItemId, 10) : "number" == typeof e.NewItemId ? t.NewItemId = e.NewItemId : "object" == typeof e.NewItemId && (t.NewItemId = new i.LongBits(e.NewItemId.low >>> 0, e.NewItemId.high >>> 0).toNumber())), null != e.Count && (t.Count = 0 | e.Count), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.ItemId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.NewItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NewItemId = t.longs === String ? "0" : 0, n.Count = 0
                }
                return null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), null != e.NewItemId && e.hasOwnProperty("NewItemId") && ("number" == typeof e.NewItemId ? n.NewItemId = t.longs === String ? String(e.NewItemId) : e.NewItemId : n.NewItemId = t.longs === String ? i.Long.prototype.toString.call(e.NewItemId) : t.longs === Number ? new i.LongBits(e.NewItemId.low >>> 0, e.NewItemId.high >>> 0).toNumber() : e.NewItemId), null != e.Count && e.hasOwnProperty("Count") && (n.Count = e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_DisplaceCommonItem"
            }, e
        }(), a.Req_Item_DecomposeHeroPiece = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = 0, e.prototype.Items = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(8).int64(e.ItemId), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(16).int32(e.Count), null != e.Items && e.Items.length)
                    for (var n = 0; n < e.Items.length; ++n) a.IntArray.encode(e.Items[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_DecomposeHeroPiece; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.ItemId = e.int64();
                            break;
                        case 2:
                            r.Count = e.int32();
                            break;
                        case 3:
                            r.Items && r.Items.length || (r.Items = []), r.Items.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high))) return "ItemId: integer|Long expected";
                if (null != e.Count && e.hasOwnProperty("Count") && !i.isInteger(e.Count)) return "Count: integer expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t) {
                        var n = a.IntArray.verify(e.Items[t]);
                        if (n) return "Items." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_DecomposeHeroPiece) return e;
                var t = new a.Req_Item_DecomposeHeroPiece;
                if (null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), null != e.Count && (t.Count = 0 | e.Count), e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".Req_Item_DecomposeHeroPiece.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) {
                        if ("object" != typeof e.Items[n]) throw TypeError(".Req_Item_DecomposeHeroPiece.Items: object expected");
                        t.Items[n] = a.IntArray.fromObject(e.Items[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.ItemId = t.longs === String ? "0" : 0;
                    n.Count = 0
                }
                if (null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), null != e.Count && e.hasOwnProperty("Count") && (n.Count = e.Count), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var r = 0; r < e.Items.length; ++r) n.Items[r] = a.IntArray.toObject(e.Items[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_DecomposeHeroPiece"
            }, e
        }(), a.Req_Item_CommonCompose = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_CommonCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type)) return "Type: integer expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_CommonCompose) return e;
                var t = new a.Req_Item_CommonCompose;
                if (null != e.Type && (t.Type = 0 | e.Type), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_CommonCompose.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Item_CommonCompose.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults && (n.Type = 0), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var o = 0; o < e.Materials.length; ++o) n.Materials[o] = a.IntArray.toObject(e.Materials[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_CommonCompose"
            }, e
        }(), a.Res_Item_CommonCompose = function() {
            function e(e) {
                if (this.Rewards = [], this.ExtraParam = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Rewards = i.emptyArray, e.prototype.ExtraParam = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(10).fork()).ldelim();
                if (null != e.ExtraParam && e.ExtraParam.length) {
                    for (t.uint32(18).fork(), n = 0; n < e.ExtraParam.length; ++n) t.int64(e.ExtraParam[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Item_CommonCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 2:
                            if (r.ExtraParam && r.ExtraParam.length || (r.ExtraParam = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ExtraParam.push(e.int64());
                            else r.ExtraParam.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.UserItem_Model.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                if (null != e.ExtraParam && e.hasOwnProperty("ExtraParam")) {
                    if (!Array.isArray(e.ExtraParam)) return "ExtraParam: array expected";
                    for (t = 0; t < e.ExtraParam.length; ++t)
                        if (!(i.isInteger(e.ExtraParam[t]) || e.ExtraParam[t] && i.isInteger(e.ExtraParam[t].low) && i.isInteger(e.ExtraParam[t].high))) return "ExtraParam: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Item_CommonCompose) return e;
                var t = new a.Res_Item_CommonCompose;
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Item_CommonCompose.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Item_CommonCompose.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (e.ExtraParam) {
                    if (!Array.isArray(e.ExtraParam)) throw TypeError(".Res_Item_CommonCompose.ExtraParam: array expected");
                    for (t.ExtraParam = [], n = 0; n < e.ExtraParam.length; ++n) i.Long ? (t.ExtraParam[n] = i.Long.fromValue(e.ExtraParam[n])).unsigned = !1 : "string" == typeof e.ExtraParam[n] ? t.ExtraParam[n] = parseInt(e.ExtraParam[n], 10) : "number" == typeof e.ExtraParam[n] ? t.ExtraParam[n] = e.ExtraParam[n] : "object" == typeof e.ExtraParam[n] && (t.ExtraParam[n] = new i.LongBits(e.ExtraParam[n].low >>> 0, e.ExtraParam[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.ExtraParam = []), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                if (e.ExtraParam && e.ExtraParam.length)
                    for (n.ExtraParam = [], o = 0; o < e.ExtraParam.length; ++o) "number" == typeof e.ExtraParam[o] ? n.ExtraParam[o] = t.longs === String ? String(e.ExtraParam[o]) : e.ExtraParam[o] : n.ExtraParam[o] = t.longs === String ? i.Long.prototype.toString.call(e.ExtraParam[o]) : t.longs === Number ? new i.LongBits(e.ExtraParam[o].low >>> 0, e.ExtraParam[o].high >>> 0).toNumber() : e.ExtraParam[o];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Item_CommonCompose"
            }, e
        }(), a.Req_Item_DecomposeCore = function() {
            function e(e) {
                if (this.Sids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sids && e.Sids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Sids.length; ++n) t.int64(e.Sids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_DecomposeCore; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Sids && r.Sids.length || (r.Sids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Sids.push(e.int64());
                            else r.Sids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sids && e.hasOwnProperty("Sids")) {
                    if (!Array.isArray(e.Sids)) return "Sids: array expected";
                    for (var t = 0; t < e.Sids.length; ++t)
                        if (!(i.isInteger(e.Sids[t]) || e.Sids[t] && i.isInteger(e.Sids[t].low) && i.isInteger(e.Sids[t].high))) return "Sids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_DecomposeCore) return e;
                var t = new a.Req_Item_DecomposeCore;
                if (e.Sids) {
                    if (!Array.isArray(e.Sids)) throw TypeError(".Req_Item_DecomposeCore.Sids: array expected");
                    t.Sids = [];
                    for (var n = 0; n < e.Sids.length; ++n) i.Long ? (t.Sids[n] = i.Long.fromValue(e.Sids[n])).unsigned = !1 : "string" == typeof e.Sids[n] ? t.Sids[n] = parseInt(e.Sids[n], 10) : "number" == typeof e.Sids[n] ? t.Sids[n] = e.Sids[n] : "object" == typeof e.Sids[n] && (t.Sids[n] = new i.LongBits(e.Sids[n].low >>> 0, e.Sids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Sids = []), e.Sids && e.Sids.length) {
                    n.Sids = [];
                    for (var o = 0; o < e.Sids.length; ++o) "number" == typeof e.Sids[o] ? n.Sids[o] = t.longs === String ? String(e.Sids[o]) : e.Sids[o] : n.Sids[o] = t.longs === String ? i.Long.prototype.toString.call(e.Sids[o]) : t.longs === Number ? new i.LongBits(e.Sids[o].low >>> 0, e.Sids[o].high >>> 0).toNumber() : e.Sids[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_DecomposeCore"
            }, e
        }(), a.Req_Item_EquipmentPutOn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.StorageType = 0, e.prototype.EquipmentId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.StorageType && Object.hasOwnProperty.call(e, "StorageType") && t.uint32(8).int32(e.StorageType), null != e.EquipmentId && Object.hasOwnProperty.call(e, "EquipmentId") && t.uint32(16).int64(e.EquipmentId), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(24).int64(e.OwnerId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_EquipmentPutOn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.StorageType = e.int32();
                            break;
                        case 2:
                            r.EquipmentId = e.int64();
                            break;
                        case 3:
                            r.OwnerId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.StorageType && e.hasOwnProperty("StorageType") && !i.isInteger(e.StorageType) ? "StorageType: integer expected" : null != e.EquipmentId && e.hasOwnProperty("EquipmentId") && !(i.isInteger(e.EquipmentId) || e.EquipmentId && i.isInteger(e.EquipmentId.low) && i.isInteger(e.EquipmentId.high)) ? "EquipmentId: integer|Long expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_EquipmentPutOn) return e;
                var t = new a.Req_Item_EquipmentPutOn;
                return null != e.StorageType && (t.StorageType = 0 | e.StorageType), null != e.EquipmentId && (i.Long ? (t.EquipmentId = i.Long.fromValue(e.EquipmentId)).unsigned = !1 : "string" == typeof e.EquipmentId ? t.EquipmentId = parseInt(e.EquipmentId, 10) : "number" == typeof e.EquipmentId ? t.EquipmentId = e.EquipmentId : "object" == typeof e.EquipmentId && (t.EquipmentId = new i.LongBits(e.EquipmentId.low >>> 0, e.EquipmentId.high >>> 0).toNumber())), null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (n.StorageType = 0, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.EquipmentId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.EquipmentId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OwnerId = t.longs === String ? "0" : 0
                }
                return null != e.StorageType && e.hasOwnProperty("StorageType") && (n.StorageType = e.StorageType), null != e.EquipmentId && e.hasOwnProperty("EquipmentId") && ("number" == typeof e.EquipmentId ? n.EquipmentId = t.longs === String ? String(e.EquipmentId) : e.EquipmentId : n.EquipmentId = t.longs === String ? i.Long.prototype.toString.call(e.EquipmentId) : t.longs === Number ? new i.LongBits(e.EquipmentId.low >>> 0, e.EquipmentId.high >>> 0).toNumber() : e.EquipmentId), null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_EquipmentPutOn"
            }, e
        }(), a.Req_Item_EquipmentPutOff = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.StorageType = 0, e.prototype.EquipmentId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.StorageType && Object.hasOwnProperty.call(e, "StorageType") && t.uint32(8).int32(e.StorageType), null != e.EquipmentId && Object.hasOwnProperty.call(e, "EquipmentId") && t.uint32(16).int64(e.EquipmentId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_EquipmentPutOff; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.StorageType = e.int32();
                            break;
                        case 2:
                            r.EquipmentId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.StorageType && e.hasOwnProperty("StorageType") && !i.isInteger(e.StorageType) ? "StorageType: integer expected" : null != e.EquipmentId && e.hasOwnProperty("EquipmentId") && !(i.isInteger(e.EquipmentId) || e.EquipmentId && i.isInteger(e.EquipmentId.low) && i.isInteger(e.EquipmentId.high)) ? "EquipmentId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_EquipmentPutOff) return e;
                var t = new a.Req_Item_EquipmentPutOff;
                return null != e.StorageType && (t.StorageType = 0 | e.StorageType), null != e.EquipmentId && (i.Long ? (t.EquipmentId = i.Long.fromValue(e.EquipmentId)).unsigned = !1 : "string" == typeof e.EquipmentId ? t.EquipmentId = parseInt(e.EquipmentId, 10) : "number" == typeof e.EquipmentId ? t.EquipmentId = e.EquipmentId : "object" == typeof e.EquipmentId && (t.EquipmentId = new i.LongBits(e.EquipmentId.low >>> 0, e.EquipmentId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (n.StorageType = 0, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.EquipmentId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.EquipmentId = t.longs === String ? "0" : 0;
                return null != e.StorageType && e.hasOwnProperty("StorageType") && (n.StorageType = e.StorageType), null != e.EquipmentId && e.hasOwnProperty("EquipmentId") && ("number" == typeof e.EquipmentId ? n.EquipmentId = t.longs === String ? String(e.EquipmentId) : e.EquipmentId : n.EquipmentId = t.longs === String ? i.Long.prototype.toString.call(e.EquipmentId) : t.longs === Number ? new i.LongBits(e.EquipmentId.low >>> 0, e.EquipmentId.high >>> 0).toNumber() : e.EquipmentId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_EquipmentPutOff"
            }, e
        }(), a.Req_Item_EquipmentForging = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.EquipmentId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.EquipmentId && Object.hasOwnProperty.call(e, "EquipmentId") && t.uint32(8).int64(e.EquipmentId), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_EquipmentForging; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.EquipmentId = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.EquipmentId && e.hasOwnProperty("EquipmentId") && !(i.isInteger(e.EquipmentId) || e.EquipmentId && i.isInteger(e.EquipmentId.low) && i.isInteger(e.EquipmentId.high))) return "EquipmentId: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_EquipmentForging) return e;
                var t = new a.Req_Item_EquipmentForging;
                if (null != e.EquipmentId && (i.Long ? (t.EquipmentId = i.Long.fromValue(e.EquipmentId)).unsigned = !1 : "string" == typeof e.EquipmentId ? t.EquipmentId = parseInt(e.EquipmentId, 10) : "number" == typeof e.EquipmentId ? t.EquipmentId = e.EquipmentId : "object" == typeof e.EquipmentId && (t.EquipmentId = new i.LongBits(e.EquipmentId.low >>> 0, e.EquipmentId.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_EquipmentForging.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Item_EquipmentForging.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.EquipmentId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.EquipmentId = t.longs === String ? "0" : 0;
                if (null != e.EquipmentId && e.hasOwnProperty("EquipmentId") && ("number" == typeof e.EquipmentId ? n.EquipmentId = t.longs === String ? String(e.EquipmentId) : e.EquipmentId : n.EquipmentId = t.longs === String ? i.Long.prototype.toString.call(e.EquipmentId) : t.longs === Number ? new i.LongBits(e.EquipmentId.low >>> 0, e.EquipmentId.high >>> 0).toNumber() : e.EquipmentId), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray.toObject(e.Materials[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_EquipmentForging"
            }, e
        }(), a.Req_Item_EquipmentOneClickPutOn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(8).int64(e.OwnerId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_EquipmentOneClickPutOn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.OwnerId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_EquipmentOneClickPutOn) return e;
                var t = new a.Req_Item_EquipmentOneClickPutOn;
                return null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.OwnerId = t.longs === String ? "0" : 0;
                return null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_EquipmentOneClickPutOn"
            }, e
        }(), a.Req_Item_EquipmentOneClickPutOff = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(8).int64(e.OwnerId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_EquipmentOneClickPutOff; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.OwnerId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_EquipmentOneClickPutOff) return e;
                var t = new a.Req_Item_EquipmentOneClickPutOff;
                return null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.OwnerId = t.longs === String ? "0" : 0;
                return null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_EquipmentOneClickPutOff"
            }, e
        }(), a.Req_Item_EquipmentOneClickForging = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(8).int64(e.OwnerId), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_EquipmentOneClickForging; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.OwnerId = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high))) return "OwnerId: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_EquipmentOneClickForging) return e;
                var t = new a.Req_Item_EquipmentOneClickForging;
                if (null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_EquipmentOneClickForging.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Item_EquipmentOneClickForging.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.OwnerId = t.longs === String ? "0" : 0;
                if (null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray.toObject(e.Materials[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_EquipmentOneClickForging"
            }, e
        }(), a.Req_Item_BuyCoin = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_BuyCoin; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_BuyCoin) return e;
                var t = new a.Req_Item_BuyCoin;
                return null != e.Type && (t.Type = 0 | e.Type), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_BuyCoin"
            }, e
        }(), a.Req_Item_BuyBattlePoint = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int32(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_BuyBattlePoint; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_BuyBattlePoint) return e;
                var t = new a.Req_Item_BuyBattlePoint;
                return null != e.Type && (t.Type = 0 | e.Type), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Type = 0), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_BuyBattlePoint"
            }, e
        }(), a.Req_Holy_EquipmentLevelUp = function() {
            function e(e) {
                if (this.Counts = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Counts = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Counts && e.Counts.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Counts.length; ++n) t.int64(e.Counts[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Holy_EquipmentLevelUp; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            if (r.Counts && r.Counts.length || (r.Counts = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Counts.push(e.int64());
                            else r.Counts.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high))) return "Sid: integer|Long expected";
                if (null != e.Counts && e.hasOwnProperty("Counts")) {
                    if (!Array.isArray(e.Counts)) return "Counts: array expected";
                    for (var t = 0; t < e.Counts.length; ++t)
                        if (!(i.isInteger(e.Counts[t]) || e.Counts[t] && i.isInteger(e.Counts[t].low) && i.isInteger(e.Counts[t].high))) return "Counts: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Holy_EquipmentLevelUp) return e;
                var t = new a.Req_Holy_EquipmentLevelUp;
                if (null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), e.Counts) {
                    if (!Array.isArray(e.Counts)) throw TypeError(".Req_Holy_EquipmentLevelUp.Counts: array expected");
                    t.Counts = [];
                    for (var n = 0; n < e.Counts.length; ++n) i.Long ? (t.Counts[n] = i.Long.fromValue(e.Counts[n])).unsigned = !1 : "string" == typeof e.Counts[n] ? t.Counts[n] = parseInt(e.Counts[n], 10) : "number" == typeof e.Counts[n] ? t.Counts[n] = e.Counts[n] : "object" == typeof e.Counts[n] && (t.Counts[n] = new i.LongBits(e.Counts[n].low >>> 0, e.Counts[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Counts = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                if (null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), e.Counts && e.Counts.length) {
                    n.Counts = [];
                    for (var r = 0; r < e.Counts.length; ++r) "number" == typeof e.Counts[r] ? n.Counts[r] = t.longs === String ? String(e.Counts[r]) : e.Counts[r] : n.Counts[r] = t.longs === String ? i.Long.prototype.toString.call(e.Counts[r]) : t.longs === Number ? new i.LongBits(e.Counts[r].low >>> 0, e.Counts[r].high >>> 0).toNumber() : e.Counts[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Holy_EquipmentLevelUp"
            }, e
        }(), a.Req_Holy_EquipmentStarUp = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int32(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Holy_EquipmentStarUp; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Type = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Holy_EquipmentStarUp) return e;
                var t = new a.Req_Holy_EquipmentStarUp;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Type && (t.Type = 0 | e.Type), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Type = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Holy_EquipmentStarUp"
            }, e
        }(), a.Req_Holy_EquipmentUnlock = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Index = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(16).int32(e.Index), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Holy_EquipmentUnlock; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Index = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Index && e.hasOwnProperty("Index") && !i.isInteger(e.Index) ? "Index: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Holy_EquipmentUnlock) return e;
                var t = new a.Req_Holy_EquipmentUnlock;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Index && (t.Index = 0 | e.Index), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Index = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Index && e.hasOwnProperty("Index") && (n.Index = e.Index), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Holy_EquipmentUnlock"
            }, e
        }(), a.Req_Holy_EquipmentBlessing = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Index = 0, e.prototype.Count = 0, e.prototype.MaxLevelBlessing = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(16).int32(e.Index), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(24).int32(e.Count), null != e.MaxLevelBlessing && Object.hasOwnProperty.call(e, "MaxLevelBlessing") && t.uint32(32).bool(e.MaxLevelBlessing), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Holy_EquipmentBlessing; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Index = e.int32();
                            break;
                        case 3:
                            r.Count = e.int32();
                            break;
                        case 4:
                            r.MaxLevelBlessing = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Index && e.hasOwnProperty("Index") && !i.isInteger(e.Index) ? "Index: integer expected" : null != e.Count && e.hasOwnProperty("Count") && !i.isInteger(e.Count) ? "Count: integer expected" : null != e.MaxLevelBlessing && e.hasOwnProperty("MaxLevelBlessing") && "boolean" != typeof e.MaxLevelBlessing ? "MaxLevelBlessing: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Holy_EquipmentBlessing) return e;
                var t = new a.Req_Holy_EquipmentBlessing;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Index && (t.Index = 0 | e.Index), null != e.Count && (t.Count = 0 | e.Count), null != e.MaxLevelBlessing && (t.MaxLevelBlessing = Boolean(e.MaxLevelBlessing)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Index = 0, n.Count = 0, n.MaxLevelBlessing = !1
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Index && e.hasOwnProperty("Index") && (n.Index = e.Index), null != e.Count && e.hasOwnProperty("Count") && (n.Count = e.Count), null != e.MaxLevelBlessing && e.hasOwnProperty("MaxLevelBlessing") && (n.MaxLevelBlessing = e.MaxLevelBlessing), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Holy_EquipmentBlessing"
            }, e
        }(), a.Req_Holy_EquipmentReplace = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Index = 0, e.prototype.PoolIndex = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(16).int32(e.Index), null != e.PoolIndex && Object.hasOwnProperty.call(e, "PoolIndex") && t.uint32(24).int32(e.PoolIndex), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Holy_EquipmentReplace; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Index = e.int32();
                            break;
                        case 3:
                            r.PoolIndex = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Index && e.hasOwnProperty("Index") && !i.isInteger(e.Index) ? "Index: integer expected" : null != e.PoolIndex && e.hasOwnProperty("PoolIndex") && !i.isInteger(e.PoolIndex) ? "PoolIndex: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Holy_EquipmentReplace) return e;
                var t = new a.Req_Holy_EquipmentReplace;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Index && (t.Index = 0 | e.Index), null != e.PoolIndex && (t.PoolIndex = 0 | e.PoolIndex), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Index = 0, n.PoolIndex = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Index && e.hasOwnProperty("Index") && (n.Index = e.Index), null != e.PoolIndex && e.hasOwnProperty("PoolIndex") && (n.PoolIndex = e.PoolIndex), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Holy_EquipmentReplace"
            }, e
        }(), a.Req_Holy_EquipmentClear = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Index = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(16).int32(e.Index), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Holy_EquipmentClear; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Index = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Index && e.hasOwnProperty("Index") && !i.isInteger(e.Index) ? "Index: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Holy_EquipmentClear) return e;
                var t = new a.Req_Holy_EquipmentClear;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Index && (t.Index = 0 | e.Index), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Index = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Index && e.hasOwnProperty("Index") && (n.Index = e.Index), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Holy_EquipmentClear"
            }, e
        }(), a.Req_Holy_EquipmentSoul = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Holy_EquipmentSoul; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Holy_EquipmentSoul) return e;
                var t = new a.Req_Holy_EquipmentSoul;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Holy_EquipmentSoul"
            }, e
        }(), a.Req_Holy_EquipmentDisplace = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HolyId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.HolyId && Object.hasOwnProperty.call(e, "HolyId") && t.uint32(16).int64(e.HolyId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Holy_EquipmentDisplace; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.HolyId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.HolyId && e.hasOwnProperty("HolyId") && !(i.isInteger(e.HolyId) || e.HolyId && i.isInteger(e.HolyId.low) && i.isInteger(e.HolyId.high)) ? "HolyId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Holy_EquipmentDisplace) return e;
                var t = new a.Req_Holy_EquipmentDisplace;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.HolyId && (i.Long ? (t.HolyId = i.Long.fromValue(e.HolyId)).unsigned = !1 : "string" == typeof e.HolyId ? t.HolyId = parseInt(e.HolyId, 10) : "number" == typeof e.HolyId ? t.HolyId = e.HolyId : "object" == typeof e.HolyId && (t.HolyId = new i.LongBits(e.HolyId.low >>> 0, e.HolyId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HolyId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HolyId = t.longs === String ? "0" : 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.HolyId && e.hasOwnProperty("HolyId") && ("number" == typeof e.HolyId ? n.HolyId = t.longs === String ? String(e.HolyId) : e.HolyId : n.HolyId = t.longs === String ? i.Long.prototype.toString.call(e.HolyId) : t.longs === Number ? new i.LongBits(e.HolyId.low >>> 0, e.HolyId.high >>> 0).toNumber() : e.HolyId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Holy_EquipmentDisplace"
            }, e
        }(), a.Req_Item_SetLuckyCharmShowHouse = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Pos = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Pos && Object.hasOwnProperty.call(e, "Pos") && t.uint32(16).int64(e.Pos), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_SetLuckyCharmShowHouse; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Pos = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Pos && e.hasOwnProperty("Pos") && !(i.isInteger(e.Pos) || e.Pos && i.isInteger(e.Pos.low) && i.isInteger(e.Pos.high)) ? "Pos: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_SetLuckyCharmShowHouse) return e;
                var t = new a.Req_Item_SetLuckyCharmShowHouse;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Pos && (i.Long ? (t.Pos = i.Long.fromValue(e.Pos)).unsigned = !1 : "string" == typeof e.Pos ? t.Pos = parseInt(e.Pos, 10) : "number" == typeof e.Pos ? t.Pos = e.Pos : "object" == typeof e.Pos && (t.Pos = new i.LongBits(e.Pos.low >>> 0, e.Pos.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Pos = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Pos = t.longs === String ? "0" : 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Pos && e.hasOwnProperty("Pos") && ("number" == typeof e.Pos ? n.Pos = t.longs === String ? String(e.Pos) : e.Pos : n.Pos = t.longs === String ? i.Long.prototype.toString.call(e.Pos) : t.longs === Number ? new i.LongBits(e.Pos.low >>> 0, e.Pos.high >>> 0).toNumber() : e.Pos), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_SetLuckyCharmShowHouse"
            }, e
        }(), a.Req_Item_UpgradeLuckyCharmShowHouse = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(8).int64(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_UpgradeLuckyCharmShowHouse; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Count = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_UpgradeLuckyCharmShowHouse) return e;
                var t = new a.Req_Item_UpgradeLuckyCharmShowHouse;
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Count = t.longs === String ? "0" : 0;
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_UpgradeLuckyCharmShowHouse"
            }, e
        }(), a.Req_Item_LuckyCharmCompose = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Materials && e.Materials.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Materials.length; ++n) t.int64(e.Materials[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_LuckyCharmCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Materials && r.Materials.length || (r.Materials = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Materials.push(e.int64());
                            else r.Materials.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (!(i.isInteger(e.Materials[t]) || e.Materials[t] && i.isInteger(e.Materials[t].low) && i.isInteger(e.Materials[t].high))) return "Materials: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_LuckyCharmCompose) return e;
                var t = new a.Req_Item_LuckyCharmCompose;
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_LuckyCharmCompose.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) i.Long ? (t.Materials[n] = i.Long.fromValue(e.Materials[n])).unsigned = !1 : "string" == typeof e.Materials[n] ? t.Materials[n] = parseInt(e.Materials[n], 10) : "number" == typeof e.Materials[n] ? t.Materials[n] = e.Materials[n] : "object" == typeof e.Materials[n] && (t.Materials[n] = new i.LongBits(e.Materials[n].low >>> 0, e.Materials[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var o = 0; o < e.Materials.length; ++o) "number" == typeof e.Materials[o] ? n.Materials[o] = t.longs === String ? String(e.Materials[o]) : e.Materials[o] : n.Materials[o] = t.longs === String ? i.Long.prototype.toString.call(e.Materials[o]) : t.longs === Number ? new i.LongBits(e.Materials[o].low >>> 0, e.Materials[o].high >>> 0).toNumber() : e.Materials[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_LuckyCharmCompose"
            }, e
        }(), a.Res_Item_LuckyCharmCompose = function() {
            function e(e) {
                if (this.Rewards = [], this.ExtraRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Success = !1, e.prototype.Rewards = i.emptyArray, e.prototype.ExtraRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Success && Object.hasOwnProperty.call(e, "Success") && t.uint32(8).bool(e.Success), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                if (null != e.ExtraRewards && e.ExtraRewards.length)
                    for (n = 0; n < e.ExtraRewards.length; ++n) a.UserItem_Model.encode(e.ExtraRewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Item_LuckyCharmCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Success = e.bool();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.ExtraRewards && r.ExtraRewards.length || (r.ExtraRewards = []), r.ExtraRewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Success && e.hasOwnProperty("Success") && "boolean" != typeof e.Success) return "Success: boolean expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.ExtraRewards && e.hasOwnProperty("ExtraRewards")) {
                    if (!Array.isArray(e.ExtraRewards)) return "ExtraRewards: array expected";
                    for (t = 0; t < e.ExtraRewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.ExtraRewards[t])) return "ExtraRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Item_LuckyCharmCompose) return e;
                var t = new a.Res_Item_LuckyCharmCompose;
                if (null != e.Success && (t.Success = Boolean(e.Success)), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Item_LuckyCharmCompose.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Item_LuckyCharmCompose.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (e.ExtraRewards) {
                    if (!Array.isArray(e.ExtraRewards)) throw TypeError(".Res_Item_LuckyCharmCompose.ExtraRewards: array expected");
                    for (t.ExtraRewards = [], n = 0; n < e.ExtraRewards.length; ++n) {
                        if ("object" != typeof e.ExtraRewards[n]) throw TypeError(".Res_Item_LuckyCharmCompose.ExtraRewards: object expected");
                        t.ExtraRewards[n] = a.UserItem_Model.fromObject(e.ExtraRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.ExtraRewards = []), t.defaults && (n.Success = !1), null != e.Success && e.hasOwnProperty("Success") && (n.Success = e.Success), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                if (e.ExtraRewards && e.ExtraRewards.length)
                    for (n.ExtraRewards = [], o = 0; o < e.ExtraRewards.length; ++o) n.ExtraRewards[o] = a.UserItem_Model.toObject(e.ExtraRewards[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Item_LuckyCharmCompose"
            }, e
        }(), a.Req_Item_BatchLuckyCharmCompose = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Materials = i.emptyArray, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Materials && e.Materials.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Materials.length; ++n) t.int64(e.Materials[n]);
                    t.ldelim()
                }
                return null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(16).int64(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_BatchLuckyCharmCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Materials && r.Materials.length || (r.Materials = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Materials.push(e.int64());
                            else r.Materials.push(e.int64());
                            break;
                        case 2:
                            r.Count = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (!(i.isInteger(e.Materials[t]) || e.Materials[t] && i.isInteger(e.Materials[t].low) && i.isInteger(e.Materials[t].high))) return "Materials: integer|Long[] expected"
                }
                return null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_BatchLuckyCharmCompose) return e;
                var t = new a.Req_Item_BatchLuckyCharmCompose;
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_BatchLuckyCharmCompose.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) i.Long ? (t.Materials[n] = i.Long.fromValue(e.Materials[n])).unsigned = !1 : "string" == typeof e.Materials[n] ? t.Materials[n] = parseInt(e.Materials[n], 10) : "number" == typeof e.Materials[n] ? t.Materials[n] = e.Materials[n] : "object" == typeof e.Materials[n] && (t.Materials[n] = new i.LongBits(e.Materials[n].low >>> 0, e.Materials[n].high >>> 0).toNumber())
                }
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Count = t.longs === String ? "0" : 0;
                if (e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) "number" == typeof e.Materials[r] ? n.Materials[r] = t.longs === String ? String(e.Materials[r]) : e.Materials[r] : n.Materials[r] = t.longs === String ? i.Long.prototype.toString.call(e.Materials[r]) : t.longs === Number ? new i.LongBits(e.Materials[r].low >>> 0, e.Materials[r].high >>> 0).toNumber() : e.Materials[r]
                }
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_BatchLuckyCharmCompose"
            }, e
        }(), a.Res_Item_BatchLuckyCharmCompose = function() {
            function e(e) {
                if (this.Rewards = [], this.ExtraRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.SuccessCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FailCount = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.prototype.ExtraRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.SuccessCount && Object.hasOwnProperty.call(e, "SuccessCount") && t.uint32(8).int64(e.SuccessCount), null != e.FailCount && Object.hasOwnProperty.call(e, "FailCount") && t.uint32(16).int64(e.FailCount), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.ExtraRewards && e.ExtraRewards.length)
                    for (n = 0; n < e.ExtraRewards.length; ++n) a.UserItem_Model.encode(e.ExtraRewards[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Item_BatchLuckyCharmCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.SuccessCount = e.int64();
                            break;
                        case 2:
                            r.FailCount = e.int64();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ExtraRewards && r.ExtraRewards.length || (r.ExtraRewards = []), r.ExtraRewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.SuccessCount && e.hasOwnProperty("SuccessCount") && !(i.isInteger(e.SuccessCount) || e.SuccessCount && i.isInteger(e.SuccessCount.low) && i.isInteger(e.SuccessCount.high))) return "SuccessCount: integer|Long expected";
                if (null != e.FailCount && e.hasOwnProperty("FailCount") && !(i.isInteger(e.FailCount) || e.FailCount && i.isInteger(e.FailCount.low) && i.isInteger(e.FailCount.high))) return "FailCount: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.ExtraRewards && e.hasOwnProperty("ExtraRewards")) {
                    if (!Array.isArray(e.ExtraRewards)) return "ExtraRewards: array expected";
                    for (t = 0; t < e.ExtraRewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.ExtraRewards[t])) return "ExtraRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Item_BatchLuckyCharmCompose) return e;
                var t = new a.Res_Item_BatchLuckyCharmCompose;
                if (null != e.SuccessCount && (i.Long ? (t.SuccessCount = i.Long.fromValue(e.SuccessCount)).unsigned = !1 : "string" == typeof e.SuccessCount ? t.SuccessCount = parseInt(e.SuccessCount, 10) : "number" == typeof e.SuccessCount ? t.SuccessCount = e.SuccessCount : "object" == typeof e.SuccessCount && (t.SuccessCount = new i.LongBits(e.SuccessCount.low >>> 0, e.SuccessCount.high >>> 0).toNumber())), null != e.FailCount && (i.Long ? (t.FailCount = i.Long.fromValue(e.FailCount)).unsigned = !1 : "string" == typeof e.FailCount ? t.FailCount = parseInt(e.FailCount, 10) : "number" == typeof e.FailCount ? t.FailCount = e.FailCount : "object" == typeof e.FailCount && (t.FailCount = new i.LongBits(e.FailCount.low >>> 0, e.FailCount.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Item_BatchLuckyCharmCompose.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Item_BatchLuckyCharmCompose.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (e.ExtraRewards) {
                    if (!Array.isArray(e.ExtraRewards)) throw TypeError(".Res_Item_BatchLuckyCharmCompose.ExtraRewards: array expected");
                    for (t.ExtraRewards = [], n = 0; n < e.ExtraRewards.length; ++n) {
                        if ("object" != typeof e.ExtraRewards[n]) throw TypeError(".Res_Item_BatchLuckyCharmCompose.ExtraRewards: object expected");
                        t.ExtraRewards[n] = a.UserItem_Model.fromObject(e.ExtraRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.ExtraRewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.SuccessCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.SuccessCount = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.FailCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.FailCount = t.longs === String ? "0" : 0
                }
                if (null != e.SuccessCount && e.hasOwnProperty("SuccessCount") && ("number" == typeof e.SuccessCount ? n.SuccessCount = t.longs === String ? String(e.SuccessCount) : e.SuccessCount : n.SuccessCount = t.longs === String ? i.Long.prototype.toString.call(e.SuccessCount) : t.longs === Number ? new i.LongBits(e.SuccessCount.low >>> 0, e.SuccessCount.high >>> 0).toNumber() : e.SuccessCount), null != e.FailCount && e.hasOwnProperty("FailCount") && ("number" == typeof e.FailCount ? n.FailCount = t.longs === String ? String(e.FailCount) : e.FailCount : n.FailCount = t.longs === String ? i.Long.prototype.toString.call(e.FailCount) : t.longs === Number ? new i.LongBits(e.FailCount.low >>> 0, e.FailCount.high >>> 0).toNumber() : e.FailCount), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.UserItem_Model.toObject(e.Rewards[r], t)
                }
                if (e.ExtraRewards && e.ExtraRewards.length)
                    for (n.ExtraRewards = [], r = 0; r < e.ExtraRewards.length; ++r) n.ExtraRewards[r] = a.UserItem_Model.toObject(e.ExtraRewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Item_BatchLuckyCharmCompose"
            }, e
        }(), a.Req_Item_LuckyCharmCast = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_LuckyCharmCast; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_LuckyCharmCast) return e;
                var t = new a.Req_Item_LuckyCharmCast;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_LuckyCharmCast"
            }, e
        }(), a.Req_Item_LuckyCharmCastSave = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_LuckyCharmCastSave; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_LuckyCharmCastSave) return e;
                var t = new a.Req_Item_LuckyCharmCastSave;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_LuckyCharmCastSave"
            }, e
        }(), a.Req_Item_LuckyCharmSelectSkill = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillIndex = 0, e.prototype.SkillId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.SkillIndex && Object.hasOwnProperty.call(e, "SkillIndex") && t.uint32(16).int32(e.SkillIndex), null != e.SkillId && Object.hasOwnProperty.call(e, "SkillId") && t.uint32(24).int64(e.SkillId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_LuckyCharmSelectSkill; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.SkillIndex = e.int32();
                            break;
                        case 3:
                            r.SkillId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.SkillIndex && e.hasOwnProperty("SkillIndex") && !i.isInteger(e.SkillIndex) ? "SkillIndex: integer expected" : null != e.SkillId && e.hasOwnProperty("SkillId") && !(i.isInteger(e.SkillId) || e.SkillId && i.isInteger(e.SkillId.low) && i.isInteger(e.SkillId.high)) ? "SkillId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_LuckyCharmSelectSkill) return e;
                var t = new a.Req_Item_LuckyCharmSelectSkill;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.SkillIndex && (t.SkillIndex = 0 | e.SkillIndex), null != e.SkillId && (i.Long ? (t.SkillId = i.Long.fromValue(e.SkillId)).unsigned = !1 : "string" == typeof e.SkillId ? t.SkillId = parseInt(e.SkillId, 10) : "number" == typeof e.SkillId ? t.SkillId = e.SkillId : "object" == typeof e.SkillId && (t.SkillId = new i.LongBits(e.SkillId.low >>> 0, e.SkillId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.SkillIndex = 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkillId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillId = t.longs === String ? "0" : 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.SkillIndex && e.hasOwnProperty("SkillIndex") && (n.SkillIndex = e.SkillIndex), null != e.SkillId && e.hasOwnProperty("SkillId") && ("number" == typeof e.SkillId ? n.SkillId = t.longs === String ? String(e.SkillId) : e.SkillId : n.SkillId = t.longs === String ? i.Long.prototype.toString.call(e.SkillId) : t.longs === Number ? new i.LongBits(e.SkillId.low >>> 0, e.SkillId.high >>> 0).toNumber() : e.SkillId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_LuckyCharmSelectSkill"
            }, e
        }(), a.Req_Item_LuckyCharmPutOn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SlotId = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(16).int64(e.OwnerId), null != e.SlotId && Object.hasOwnProperty.call(e, "SlotId") && t.uint32(24).int32(e.SlotId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_LuckyCharmPutOn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.OwnerId = e.int64();
                            break;
                        case 3:
                            r.SlotId = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null != e.SlotId && e.hasOwnProperty("SlotId") && !i.isInteger(e.SlotId) ? "SlotId: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_LuckyCharmPutOn) return e;
                var t = new a.Req_Item_LuckyCharmPutOn;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), null != e.SlotId && (t.SlotId = 0 | e.SlotId), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OwnerId = t.longs === String ? "0" : 0, n.SlotId = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), null != e.SlotId && e.hasOwnProperty("SlotId") && (n.SlotId = e.SlotId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_LuckyCharmPutOn"
            }, e
        }(), a.Req_Item_LuckyCharmPutOff = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_LuckyCharmPutOff; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_LuckyCharmPutOff) return e;
                var t = new a.Req_Item_LuckyCharmPutOff;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_LuckyCharmPutOff"
            }, e
        }(), a.Req_Item_LuckyCharmLock = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Locked = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Locked && Object.hasOwnProperty.call(e, "Locked") && t.uint32(16).bool(e.Locked), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_LuckyCharmLock; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Locked = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Locked && e.hasOwnProperty("Locked") && "boolean" != typeof e.Locked ? "Locked: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_LuckyCharmLock) return e;
                var t = new a.Req_Item_LuckyCharmLock;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Locked && (t.Locked = Boolean(e.Locked)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Locked = !1
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Locked && e.hasOwnProperty("Locked") && (n.Locked = e.Locked), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_LuckyCharmLock"
            }, e
        }(), a.Req_Item_LuckyCharmUpgradeStar = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(16).int64(e.ItemId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_LuckyCharmUpgradeStar; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.ItemId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_LuckyCharmUpgradeStar) return e;
                var t = new a.Req_Item_LuckyCharmUpgradeStar;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.ItemId = t.longs === String ? "0" : 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_LuckyCharmUpgradeStar"
            }, e
        }(), a.Req_Item_LuckyCharmChangeSkill = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Star = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Star && Object.hasOwnProperty.call(e, "Star") && t.uint32(16).int64(e.Star), null != e.SkillId && Object.hasOwnProperty.call(e, "SkillId") && t.uint32(24).int64(e.SkillId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_LuckyCharmChangeSkill; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Star = e.int64();
                            break;
                        case 3:
                            r.SkillId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Star && e.hasOwnProperty("Star") && !(i.isInteger(e.Star) || e.Star && i.isInteger(e.Star.low) && i.isInteger(e.Star.high)) ? "Star: integer|Long expected" : null != e.SkillId && e.hasOwnProperty("SkillId") && !(i.isInteger(e.SkillId) || e.SkillId && i.isInteger(e.SkillId.low) && i.isInteger(e.SkillId.high)) ? "SkillId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_LuckyCharmChangeSkill) return e;
                var t = new a.Req_Item_LuckyCharmChangeSkill;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Star && (i.Long ? (t.Star = i.Long.fromValue(e.Star)).unsigned = !1 : "string" == typeof e.Star ? t.Star = parseInt(e.Star, 10) : "number" == typeof e.Star ? t.Star = e.Star : "object" == typeof e.Star && (t.Star = new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber())), null != e.SkillId && (i.Long ? (t.SkillId = i.Long.fromValue(e.SkillId)).unsigned = !1 : "string" == typeof e.SkillId ? t.SkillId = parseInt(e.SkillId, 10) : "number" == typeof e.SkillId ? t.SkillId = e.SkillId : "object" == typeof e.SkillId && (t.SkillId = new i.LongBits(e.SkillId.low >>> 0, e.SkillId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Star = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Star = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkillId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillId = t.longs === String ? "0" : 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Star && e.hasOwnProperty("Star") && ("number" == typeof e.Star ? n.Star = t.longs === String ? String(e.Star) : e.Star : n.Star = t.longs === String ? i.Long.prototype.toString.call(e.Star) : t.longs === Number ? new i.LongBits(e.Star.low >>> 0, e.Star.high >>> 0).toNumber() : e.Star), null != e.SkillId && e.hasOwnProperty("SkillId") && ("number" == typeof e.SkillId ? n.SkillId = t.longs === String ? String(e.SkillId) : e.SkillId : n.SkillId = t.longs === String ? i.Long.prototype.toString.call(e.SkillId) : t.longs === Number ? new i.LongBits(e.SkillId.low >>> 0, e.SkillId.high >>> 0).toNumber() : e.SkillId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_LuckyCharmChangeSkill"
            }, e
        }(), a.Req_Item_GemCompose = function() {
            function e(e) {
                if (this.Materials = [], this.Gems = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Materials = i.emptyArray, e.prototype.IsAbsolute = !1, e.prototype.Gems = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Materials && e.Materials.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Materials.length; ++n) t.int64(e.Materials[n]);
                    t.ldelim()
                }
                if (null != e.IsAbsolute && Object.hasOwnProperty.call(e, "IsAbsolute") && t.uint32(16).bool(e.IsAbsolute), null != e.Gems && e.Gems.length)
                    for (n = 0; n < e.Gems.length; ++n) a.IntArray.encode(e.Gems[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GemCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Materials && r.Materials.length || (r.Materials = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Materials.push(e.int64());
                            else r.Materials.push(e.int64());
                            break;
                        case 2:
                            r.IsAbsolute = e.bool();
                            break;
                        case 3:
                            r.Gems && r.Gems.length || (r.Gems = []), r.Gems.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (!(i.isInteger(e.Materials[t]) || e.Materials[t] && i.isInteger(e.Materials[t].low) && i.isInteger(e.Materials[t].high))) return "Materials: integer|Long[] expected"
                }
                if (null != e.IsAbsolute && e.hasOwnProperty("IsAbsolute") && "boolean" != typeof e.IsAbsolute) return "IsAbsolute: boolean expected";
                if (null != e.Gems && e.hasOwnProperty("Gems")) {
                    if (!Array.isArray(e.Gems)) return "Gems: array expected";
                    for (t = 0; t < e.Gems.length; ++t) {
                        var n = a.IntArray.verify(e.Gems[t]);
                        if (n) return "Gems." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GemCompose) return e;
                var t = new a.Req_Item_GemCompose;
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_GemCompose.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) i.Long ? (t.Materials[n] = i.Long.fromValue(e.Materials[n])).unsigned = !1 : "string" == typeof e.Materials[n] ? t.Materials[n] = parseInt(e.Materials[n], 10) : "number" == typeof e.Materials[n] ? t.Materials[n] = e.Materials[n] : "object" == typeof e.Materials[n] && (t.Materials[n] = new i.LongBits(e.Materials[n].low >>> 0, e.Materials[n].high >>> 0).toNumber())
                }
                if (null != e.IsAbsolute && (t.IsAbsolute = Boolean(e.IsAbsolute)), e.Gems) {
                    if (!Array.isArray(e.Gems)) throw TypeError(".Req_Item_GemCompose.Gems: array expected");
                    for (t.Gems = [], n = 0; n < e.Gems.length; ++n) {
                        if ("object" != typeof e.Gems[n]) throw TypeError(".Req_Item_GemCompose.Gems: object expected");
                        t.Gems[n] = a.IntArray.fromObject(e.Gems[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.Gems = []), t.defaults && (n.IsAbsolute = !1), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var o = 0; o < e.Materials.length; ++o) "number" == typeof e.Materials[o] ? n.Materials[o] = t.longs === String ? String(e.Materials[o]) : e.Materials[o] : n.Materials[o] = t.longs === String ? i.Long.prototype.toString.call(e.Materials[o]) : t.longs === Number ? new i.LongBits(e.Materials[o].low >>> 0, e.Materials[o].high >>> 0).toNumber() : e.Materials[o]
                }
                if (null != e.IsAbsolute && e.hasOwnProperty("IsAbsolute") && (n.IsAbsolute = e.IsAbsolute), e.Gems && e.Gems.length)
                    for (n.Gems = [], o = 0; o < e.Gems.length; ++o) n.Gems[o] = a.IntArray.toObject(e.Gems[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GemCompose"
            }, e
        }(), a.Res_Item_GemCompose = function() {
            function e(e) {
                if (this.Rewards = [], this.Results = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Success = !1, e.prototype.Rewards = i.emptyArray, e.prototype.Results = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Success && Object.hasOwnProperty.call(e, "Success") && t.uint32(8).bool(e.Success), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                if (null != e.Results && e.Results.length) {
                    for (t.uint32(26).fork(), n = 0; n < e.Results.length; ++n) t.int32(e.Results[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Item_GemCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Success = e.bool();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 3:
                            if (r.Results && r.Results.length || (r.Results = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Results.push(e.int32());
                            else r.Results.push(e.int32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Success && e.hasOwnProperty("Success") && "boolean" != typeof e.Success) return "Success: boolean expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n = a.UserItem_Model.verify(e.Rewards[t]);
                        if (n) return "Rewards." + n
                    }
                }
                if (null != e.Results && e.hasOwnProperty("Results")) {
                    if (!Array.isArray(e.Results)) return "Results: array expected";
                    for (t = 0; t < e.Results.length; ++t)
                        if (!i.isInteger(e.Results[t])) return "Results: integer[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Item_GemCompose) return e;
                var t = new a.Res_Item_GemCompose;
                if (null != e.Success && (t.Success = Boolean(e.Success)), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Item_GemCompose.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Item_GemCompose.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (e.Results) {
                    if (!Array.isArray(e.Results)) throw TypeError(".Res_Item_GemCompose.Results: array expected");
                    for (t.Results = [], n = 0; n < e.Results.length; ++n) t.Results[n] = 0 | e.Results[n]
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.Results = []), t.defaults && (n.Success = !1), null != e.Success && e.hasOwnProperty("Success") && (n.Success = e.Success), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                if (e.Results && e.Results.length)
                    for (n.Results = [], o = 0; o < e.Results.length; ++o) n.Results[o] = e.Results[o];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Item_GemCompose"
            }, e
        }(), a.Req_Item_GemPutOn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SlotId = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(16).int64(e.OwnerId), null != e.SlotId && Object.hasOwnProperty.call(e, "SlotId") && t.uint32(24).int32(e.SlotId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GemPutOn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.OwnerId = e.int64();
                            break;
                        case 3:
                            r.SlotId = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null != e.SlotId && e.hasOwnProperty("SlotId") && !i.isInteger(e.SlotId) ? "SlotId: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GemPutOn) return e;
                var t = new a.Req_Item_GemPutOn;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), null != e.SlotId && (t.SlotId = 0 | e.SlotId), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OwnerId = t.longs === String ? "0" : 0, n.SlotId = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), null != e.SlotId && e.hasOwnProperty("SlotId") && (n.SlotId = e.SlotId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GemPutOn"
            }, e
        }(), a.Req_Item_GemOneClickPutOn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(8).int64(e.OwnerId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GemOneClickPutOn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.OwnerId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GemOneClickPutOn) return e;
                var t = new a.Req_Item_GemOneClickPutOn;
                return null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.OwnerId = t.longs === String ? "0" : 0;
                return null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GemOneClickPutOn"
            }, e
        }(), a.Req_Item_GemPutOff = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GemPutOff; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GemPutOff) return e;
                var t = new a.Req_Item_GemPutOff;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GemPutOff"
            }, e
        }(), a.Req_Item_GemOneClickPutOff = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(8).int64(e.OwnerId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GemOneClickPutOff; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.OwnerId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GemOneClickPutOff) return e;
                var t = new a.Req_Item_GemOneClickPutOff;
                return null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.OwnerId = t.longs === String ? "0" : 0;
                return null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GemOneClickPutOff"
            }, e
        }(), a.Req_Item_GemLock = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Locked = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Locked && Object.hasOwnProperty.call(e, "Locked") && t.uint32(16).bool(e.Locked), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GemLock; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Locked = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Locked && e.hasOwnProperty("Locked") && "boolean" != typeof e.Locked ? "Locked: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GemLock) return e;
                var t = new a.Req_Item_GemLock;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Locked && (t.Locked = Boolean(e.Locked)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Locked = !1
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Locked && e.hasOwnProperty("Locked") && (n.Locked = e.Locked), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GemLock"
            }, e
        }(), a.Req_Item_GemUpgrade = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GemUpgrade; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GemUpgrade) return e;
                var t = new a.Req_Item_GemUpgrade;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GemUpgrade"
            }, e
        }(), a.Req_Item_CoreUpgradeLevel = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NewLevel = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.NewLevel && Object.hasOwnProperty.call(e, "NewLevel") && t.uint32(16).int32(e.NewLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_CoreUpgradeLevel; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.NewLevel = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.NewLevel && e.hasOwnProperty("NewLevel") && !i.isInteger(e.NewLevel) ? "NewLevel: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_CoreUpgradeLevel) return e;
                var t = new a.Req_Item_CoreUpgradeLevel;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.NewLevel && (t.NewLevel = 0 | e.NewLevel), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.NewLevel = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.NewLevel && e.hasOwnProperty("NewLevel") && (n.NewLevel = e.NewLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_CoreUpgradeLevel"
            }, e
        }(), a.Req_Item_CoreUpgradeStar = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_CoreUpgradeStar; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high))) return "Sid: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_CoreUpgradeStar) return e;
                var t = new a.Req_Item_CoreUpgradeStar;
                if (null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_CoreUpgradeStar.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Item_CoreUpgradeStar.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                if (null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray.toObject(e.Materials[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_CoreUpgradeStar"
            }, e
        }(), a.Req_Item_CoresUpgradeStar = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Param = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Param && e.Param.length)
                    for (var n = 0; n < e.Param.length; ++n) a.IntArray.encode(e.Param[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_CoresUpgradeStar; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Param && r.Param.length || (r.Param = []), r.Param.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Param && e.hasOwnProperty("Param")) {
                    if (!Array.isArray(e.Param)) return "Param: array expected";
                    for (var t = 0; t < e.Param.length; ++t) {
                        var n = a.IntArray.verify(e.Param[t]);
                        if (n) return "Param." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_CoresUpgradeStar) return e;
                var t = new a.Req_Item_CoresUpgradeStar;
                if (e.Param) {
                    if (!Array.isArray(e.Param)) throw TypeError(".Req_Item_CoresUpgradeStar.Param: array expected");
                    t.Param = [];
                    for (var n = 0; n < e.Param.length; ++n) {
                        if ("object" != typeof e.Param[n]) throw TypeError(".Req_Item_CoresUpgradeStar.Param: object expected");
                        t.Param[n] = a.IntArray.fromObject(e.Param[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Param = []), e.Param && e.Param.length) {
                    n.Param = [];
                    for (var o = 0; o < e.Param.length; ++o) n.Param[o] = a.IntArray.toObject(e.Param[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_CoresUpgradeStar"
            }, e
        }(), a.Req_Item_CorePutOn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(16).int64(e.OwnerId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_CorePutOn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.OwnerId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_CorePutOn) return e;
                var t = new a.Req_Item_CorePutOn;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OwnerId = t.longs === String ? "0" : 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_CorePutOn"
            }, e
        }(), a.Req_Item_CorePutOff = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_CorePutOff; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_CorePutOff) return e;
                var t = new a.Req_Item_CorePutOff;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_CorePutOff"
            }, e
        }(), a.Req_Item_PetUpgradeStar = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetUpgradeStar; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetUpgradeStar) return e;
                var t = new a.Req_Item_PetUpgradeStar;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetUpgradeStar"
            }, e
        }(), a.Req_Item_PetUpgradeLevel = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NewLevel = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.NewLevel && Object.hasOwnProperty.call(e, "NewLevel") && t.uint32(16).int32(e.NewLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetUpgradeLevel; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.NewLevel = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.NewLevel && e.hasOwnProperty("NewLevel") && !i.isInteger(e.NewLevel) ? "NewLevel: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetUpgradeLevel) return e;
                var t = new a.Req_Item_PetUpgradeLevel;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.NewLevel && (t.NewLevel = 0 | e.NewLevel), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.NewLevel = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.NewLevel && e.hasOwnProperty("NewLevel") && (n.NewLevel = e.NewLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetUpgradeLevel"
            }, e
        }(), a.Req_Item_PetPutOn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Slot = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(16).int64(e.OwnerId), null != e.Slot && Object.hasOwnProperty.call(e, "Slot") && t.uint32(24).int32(e.Slot), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetPutOn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.OwnerId = e.int64();
                            break;
                        case 3:
                            r.Slot = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null != e.Slot && e.hasOwnProperty("Slot") && !i.isInteger(e.Slot) ? "Slot: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetPutOn) return e;
                var t = new a.Req_Item_PetPutOn;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), null != e.Slot && (t.Slot = 0 | e.Slot), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.OwnerId = t.longs === String ? "0" : 0, n.Slot = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), null != e.Slot && e.hasOwnProperty("Slot") && (n.Slot = e.Slot), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetPutOn"
            }, e
        }(), a.Req_Item_SetPetShowHouse = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Pos = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Pos && Object.hasOwnProperty.call(e, "Pos") && t.uint32(16).int64(e.Pos), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_SetPetShowHouse; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Pos = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Pos && e.hasOwnProperty("Pos") && !(i.isInteger(e.Pos) || e.Pos && i.isInteger(e.Pos.low) && i.isInteger(e.Pos.high)) ? "Pos: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_SetPetShowHouse) return e;
                var t = new a.Req_Item_SetPetShowHouse;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Pos && (i.Long ? (t.Pos = i.Long.fromValue(e.Pos)).unsigned = !1 : "string" == typeof e.Pos ? t.Pos = parseInt(e.Pos, 10) : "number" == typeof e.Pos ? t.Pos = e.Pos : "object" == typeof e.Pos && (t.Pos = new i.LongBits(e.Pos.low >>> 0, e.Pos.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Pos = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Pos = t.longs === String ? "0" : 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Pos && e.hasOwnProperty("Pos") && ("number" == typeof e.Pos ? n.Pos = t.longs === String ? String(e.Pos) : e.Pos : n.Pos = t.longs === String ? i.Long.prototype.toString.call(e.Pos) : t.longs === Number ? new i.LongBits(e.Pos.low >>> 0, e.Pos.high >>> 0).toNumber() : e.Pos), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_SetPetShowHouse"
            }, e
        }(), a.Req_Item_UpgradePetShowHouse = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(8).int64(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_UpgradePetShowHouse; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Count = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_UpgradePetShowHouse) return e;
                var t = new a.Req_Item_UpgradePetShowHouse;
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Count = t.longs === String ? "0" : 0;
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_UpgradePetShowHouse"
            }, e
        }(), a.Req_Item_PetHandbookUpgrade = function() {
            function e(e) {
                if (this.Sids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sids && e.Sids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Sids.length; ++n) t.int64(e.Sids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetHandbookUpgrade; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Sids && r.Sids.length || (r.Sids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Sids.push(e.int64());
                            else r.Sids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sids && e.hasOwnProperty("Sids")) {
                    if (!Array.isArray(e.Sids)) return "Sids: array expected";
                    for (var t = 0; t < e.Sids.length; ++t)
                        if (!(i.isInteger(e.Sids[t]) || e.Sids[t] && i.isInteger(e.Sids[t].low) && i.isInteger(e.Sids[t].high))) return "Sids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetHandbookUpgrade) return e;
                var t = new a.Req_Item_PetHandbookUpgrade;
                if (e.Sids) {
                    if (!Array.isArray(e.Sids)) throw TypeError(".Req_Item_PetHandbookUpgrade.Sids: array expected");
                    t.Sids = [];
                    for (var n = 0; n < e.Sids.length; ++n) i.Long ? (t.Sids[n] = i.Long.fromValue(e.Sids[n])).unsigned = !1 : "string" == typeof e.Sids[n] ? t.Sids[n] = parseInt(e.Sids[n], 10) : "number" == typeof e.Sids[n] ? t.Sids[n] = e.Sids[n] : "object" == typeof e.Sids[n] && (t.Sids[n] = new i.LongBits(e.Sids[n].low >>> 0, e.Sids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Sids = []), e.Sids && e.Sids.length) {
                    n.Sids = [];
                    for (var o = 0; o < e.Sids.length; ++o) "number" == typeof e.Sids[o] ? n.Sids[o] = t.longs === String ? String(e.Sids[o]) : e.Sids[o] : n.Sids[o] = t.longs === String ? i.Long.prototype.toString.call(e.Sids[o]) : t.longs === Number ? new i.LongBits(e.Sids[o].low >>> 0, e.Sids[o].high >>> 0).toNumber() : e.Sids[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetHandbookUpgrade"
            }, e
        }(), a.Req_Item_PetNestHatch = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(16).int64(e.ItemId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetNestHatch; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 2:
                            r.ItemId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetNestHatch) return e;
                var t = new a.Req_Item_PetNestHatch;
                return null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.ItemId = t.longs === String ? "0" : 0;
                return null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetNestHatch"
            }, e
        }(), a.Req_Item_PetNestReceive = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Index = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(16).int64(e.Index), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetNestReceive; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 2:
                            r.Index = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Index && e.hasOwnProperty("Index") && !(i.isInteger(e.Index) || e.Index && i.isInteger(e.Index.low) && i.isInteger(e.Index.high)) ? "Index: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetNestReceive) return e;
                var t = new a.Req_Item_PetNestReceive;
                return null != e.Index && (i.Long ? (t.Index = i.Long.fromValue(e.Index)).unsigned = !1 : "string" == typeof e.Index ? t.Index = parseInt(e.Index, 10) : "number" == typeof e.Index ? t.Index = e.Index : "object" == typeof e.Index && (t.Index = new i.LongBits(e.Index.low >>> 0, e.Index.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Index = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Index = t.longs === String ? "0" : 0;
                return null != e.Index && e.hasOwnProperty("Index") && ("number" == typeof e.Index ? n.Index = t.longs === String ? String(e.Index) : e.Index : n.Index = t.longs === String ? i.Long.prototype.toString.call(e.Index) : t.longs === Number ? new i.LongBits(e.Index.low >>> 0, e.Index.high >>> 0).toNumber() : e.Index), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetNestReceive"
            }, e
        }(), a.Req_Item_OneClickPetNestHatch = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_OneClickPetNestHatch; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_OneClickPetNestHatch) return e;
                var t = new a.Req_Item_OneClickPetNestHatch;
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_OneClickPetNestHatch.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Item_OneClickPetNestHatch.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var o = 0; o < e.Materials.length; ++o) n.Materials[o] = a.IntArray.toObject(e.Materials[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_OneClickPetNestHatch"
            }, e
        }(), a.Req_Item_PetReborn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetReborn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetReborn) return e;
                var t = new a.Req_Item_PetReborn;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetReborn"
            }, e
        }(), a.Req_Item_PetLock = function() {
            function e(e) {
                if (this.Lock = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Lock = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Lock && e.Lock.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.Lock.length; ++n) t.bool(e.Lock[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetLock; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 3:
                            if (r.Lock && r.Lock.length || (r.Lock = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Lock.push(e.bool());
                            else r.Lock.push(e.bool());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high))) return "Sid: integer|Long expected";
                if (null != e.Lock && e.hasOwnProperty("Lock")) {
                    if (!Array.isArray(e.Lock)) return "Lock: array expected";
                    for (var t = 0; t < e.Lock.length; ++t)
                        if ("boolean" != typeof e.Lock[t]) return "Lock: boolean[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetLock) return e;
                var t = new a.Req_Item_PetLock;
                if (null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), e.Lock) {
                    if (!Array.isArray(e.Lock)) throw TypeError(".Req_Item_PetLock.Lock: array expected");
                    t.Lock = [];
                    for (var n = 0; n < e.Lock.length; ++n) t.Lock[n] = Boolean(e.Lock[n])
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Lock = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                if (null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), e.Lock && e.Lock.length) {
                    n.Lock = [];
                    for (var r = 0; r < e.Lock.length; ++r) n.Lock[r] = e.Lock[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetLock"
            }, e
        }(), a.Req_Item_PetRefine = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetRefine; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetRefine) return e;
                var t = new a.Req_Item_PetRefine;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetRefine"
            }, e
        }(), a.Req_Item_PetWishChange = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ItemId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.ItemId && Object.hasOwnProperty.call(e, "ItemId") && t.uint32(8).int64(e.ItemId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetWishChange; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.ItemId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.ItemId && e.hasOwnProperty("ItemId") && !(i.isInteger(e.ItemId) || e.ItemId && i.isInteger(e.ItemId.low) && i.isInteger(e.ItemId.high)) ? "ItemId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetWishChange) return e;
                var t = new a.Req_Item_PetWishChange;
                return null != e.ItemId && (i.Long ? (t.ItemId = i.Long.fromValue(e.ItemId)).unsigned = !1 : "string" == typeof e.ItemId ? t.ItemId = parseInt(e.ItemId, 10) : "number" == typeof e.ItemId ? t.ItemId = e.ItemId : "object" == typeof e.ItemId && (t.ItemId = new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.ItemId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.ItemId = t.longs === String ? "0" : 0;
                return null != e.ItemId && e.hasOwnProperty("ItemId") && ("number" == typeof e.ItemId ? n.ItemId = t.longs === String ? String(e.ItemId) : e.ItemId : n.ItemId = t.longs === String ? i.Long.prototype.toString.call(e.ItemId) : t.longs === Number ? new i.LongBits(e.ItemId.low >>> 0, e.ItemId.high >>> 0).toNumber() : e.ItemId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetWishChange"
            }, e
        }(), a.Req_Item_PetWishReceive = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_PetWishReceive; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_PetWishReceive) return e;
                var t = new a.Req_Item_PetWishReceive;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_PetWishReceive"
            }, e
        }(), a.Req_Hero_UpgradeLevel = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NewLevel = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.NewLevel && Object.hasOwnProperty.call(e, "NewLevel") && t.uint32(16).int32(e.NewLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_UpgradeLevel; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.NewLevel = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.NewLevel && e.hasOwnProperty("NewLevel") && !i.isInteger(e.NewLevel) ? "NewLevel: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_UpgradeLevel) return e;
                var t = new a.Req_Hero_UpgradeLevel;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.NewLevel && (t.NewLevel = 0 | e.NewLevel), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.NewLevel = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.NewLevel && e.hasOwnProperty("NewLevel") && (n.NewLevel = e.NewLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_UpgradeLevel"
            }, e
        }(), a.Req_Hero_UpgradeTalent = function() {
            function e(e) {
                if (this.Materials = [], this.UpgradeStarHeroSids = [], this.UpgradeStarHeroMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Type = 0, e.prototype.UpgradeStarHeroSids = i.emptyArray, e.prototype.UpgradeStarHeroMaterials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int32(e.Type), null != e.UpgradeStarHeroSids && e.UpgradeStarHeroSids.length) {
                    for (t.uint32(34).fork(), n = 0; n < e.UpgradeStarHeroSids.length; ++n) t.int64(e.UpgradeStarHeroSids[n]);
                    t.ldelim()
                }
                if (null != e.UpgradeStarHeroMaterials && e.UpgradeStarHeroMaterials.length)
                    for (n = 0; n < e.UpgradeStarHeroMaterials.length; ++n) a.IntArray.encode(e.UpgradeStarHeroMaterials[n], t.uint32(42).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_UpgradeTalent; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Type = e.int32();
                            break;
                        case 4:
                            if (r.UpgradeStarHeroSids && r.UpgradeStarHeroSids.length || (r.UpgradeStarHeroSids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.UpgradeStarHeroSids.push(e.int64());
                            else r.UpgradeStarHeroSids.push(e.int64());
                            break;
                        case 5:
                            r.UpgradeStarHeroMaterials && r.UpgradeStarHeroMaterials.length || (r.UpgradeStarHeroMaterials = []), r.UpgradeStarHeroMaterials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high))) return "Sid: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type)) return "Type: integer expected";
                if (null != e.UpgradeStarHeroSids && e.hasOwnProperty("UpgradeStarHeroSids")) {
                    if (!Array.isArray(e.UpgradeStarHeroSids)) return "UpgradeStarHeroSids: array expected";
                    for (t = 0; t < e.UpgradeStarHeroSids.length; ++t)
                        if (!(i.isInteger(e.UpgradeStarHeroSids[t]) || e.UpgradeStarHeroSids[t] && i.isInteger(e.UpgradeStarHeroSids[t].low) && i.isInteger(e.UpgradeStarHeroSids[t].high))) return "UpgradeStarHeroSids: integer|Long[] expected"
                }
                if (null != e.UpgradeStarHeroMaterials && e.hasOwnProperty("UpgradeStarHeroMaterials")) {
                    if (!Array.isArray(e.UpgradeStarHeroMaterials)) return "UpgradeStarHeroMaterials: array expected";
                    for (t = 0; t < e.UpgradeStarHeroMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray.verify(e.UpgradeStarHeroMaterials[t])) return "UpgradeStarHeroMaterials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_UpgradeTalent) return e;
                var t = new a.Req_Hero_UpgradeTalent;
                if (null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Hero_UpgradeTalent.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Hero_UpgradeTalent.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                if (null != e.Type && (t.Type = 0 | e.Type), e.UpgradeStarHeroSids) {
                    if (!Array.isArray(e.UpgradeStarHeroSids)) throw TypeError(".Req_Hero_UpgradeTalent.UpgradeStarHeroSids: array expected");
                    for (t.UpgradeStarHeroSids = [], n = 0; n < e.UpgradeStarHeroSids.length; ++n) i.Long ? (t.UpgradeStarHeroSids[n] = i.Long.fromValue(e.UpgradeStarHeroSids[n])).unsigned = !1 : "string" == typeof e.UpgradeStarHeroSids[n] ? t.UpgradeStarHeroSids[n] = parseInt(e.UpgradeStarHeroSids[n], 10) : "number" == typeof e.UpgradeStarHeroSids[n] ? t.UpgradeStarHeroSids[n] = e.UpgradeStarHeroSids[n] : "object" == typeof e.UpgradeStarHeroSids[n] && (t.UpgradeStarHeroSids[n] = new i.LongBits(e.UpgradeStarHeroSids[n].low >>> 0, e.UpgradeStarHeroSids[n].high >>> 0).toNumber())
                }
                if (e.UpgradeStarHeroMaterials) {
                    if (!Array.isArray(e.UpgradeStarHeroMaterials)) throw TypeError(".Req_Hero_UpgradeTalent.UpgradeStarHeroMaterials: array expected");
                    for (t.UpgradeStarHeroMaterials = [], n = 0; n < e.UpgradeStarHeroMaterials.length; ++n) {
                        if ("object" != typeof e.UpgradeStarHeroMaterials[n]) throw TypeError(".Req_Hero_UpgradeTalent.UpgradeStarHeroMaterials: object expected");
                        t.UpgradeStarHeroMaterials[n] = a.IntArray.fromObject(e.UpgradeStarHeroMaterials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.UpgradeStarHeroSids = [], n.UpgradeStarHeroMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Type = 0
                }
                if (null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray.toObject(e.Materials[r], t)
                }
                if (null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), e.UpgradeStarHeroSids && e.UpgradeStarHeroSids.length)
                    for (n.UpgradeStarHeroSids = [], r = 0; r < e.UpgradeStarHeroSids.length; ++r) "number" == typeof e.UpgradeStarHeroSids[r] ? n.UpgradeStarHeroSids[r] = t.longs === String ? String(e.UpgradeStarHeroSids[r]) : e.UpgradeStarHeroSids[r] : n.UpgradeStarHeroSids[r] = t.longs === String ? i.Long.prototype.toString.call(e.UpgradeStarHeroSids[r]) : t.longs === Number ? new i.LongBits(e.UpgradeStarHeroSids[r].low >>> 0, e.UpgradeStarHeroSids[r].high >>> 0).toNumber() : e.UpgradeStarHeroSids[r];
                if (e.UpgradeStarHeroMaterials && e.UpgradeStarHeroMaterials.length)
                    for (n.UpgradeStarHeroMaterials = [], r = 0; r < e.UpgradeStarHeroMaterials.length; ++r) n.UpgradeStarHeroMaterials[r] = a.IntArray.toObject(e.UpgradeStarHeroMaterials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_UpgradeTalent"
            }, e
        }(), a.Req_Hero_BatchUpgradeTalent = function() {
            function e(e) {
                if (this.Materials = [], this.UpgradeStarHeroSids = [], this.UpgradeStarHeroMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.Type = 0, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.UpgradeStarHeroSids = i.emptyArray, e.prototype.UpgradeStarHeroMaterials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int32(e.Type), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(32).int64(e.Count), null != e.UpgradeStarHeroSids && e.UpgradeStarHeroSids.length) {
                    for (t.uint32(42).fork(), n = 0; n < e.UpgradeStarHeroSids.length; ++n) t.int64(e.UpgradeStarHeroSids[n]);
                    t.ldelim()
                }
                if (null != e.UpgradeStarHeroMaterials && e.UpgradeStarHeroMaterials.length)
                    for (n = 0; n < e.UpgradeStarHeroMaterials.length; ++n) a.IntArray.encode(e.UpgradeStarHeroMaterials[n], t.uint32(50).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_BatchUpgradeTalent; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Type = e.int32();
                            break;
                        case 4:
                            r.Count = e.int64();
                            break;
                        case 5:
                            if (r.UpgradeStarHeroSids && r.UpgradeStarHeroSids.length || (r.UpgradeStarHeroSids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.UpgradeStarHeroSids.push(e.int64());
                            else r.UpgradeStarHeroSids.push(e.int64());
                            break;
                        case 6:
                            r.UpgradeStarHeroMaterials && r.UpgradeStarHeroMaterials.length || (r.UpgradeStarHeroMaterials = []), r.UpgradeStarHeroMaterials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high))) return "Sid: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type)) return "Type: integer expected";
                if (null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high))) return "Count: integer|Long expected";
                if (null != e.UpgradeStarHeroSids && e.hasOwnProperty("UpgradeStarHeroSids")) {
                    if (!Array.isArray(e.UpgradeStarHeroSids)) return "UpgradeStarHeroSids: array expected";
                    for (t = 0; t < e.UpgradeStarHeroSids.length; ++t)
                        if (!(i.isInteger(e.UpgradeStarHeroSids[t]) || e.UpgradeStarHeroSids[t] && i.isInteger(e.UpgradeStarHeroSids[t].low) && i.isInteger(e.UpgradeStarHeroSids[t].high))) return "UpgradeStarHeroSids: integer|Long[] expected"
                }
                if (null != e.UpgradeStarHeroMaterials && e.hasOwnProperty("UpgradeStarHeroMaterials")) {
                    if (!Array.isArray(e.UpgradeStarHeroMaterials)) return "UpgradeStarHeroMaterials: array expected";
                    for (t = 0; t < e.UpgradeStarHeroMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray.verify(e.UpgradeStarHeroMaterials[t])) return "UpgradeStarHeroMaterials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_BatchUpgradeTalent) return e;
                var t = new a.Req_Hero_BatchUpgradeTalent;
                if (null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Hero_BatchUpgradeTalent.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Hero_BatchUpgradeTalent.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                if (null != e.Type && (t.Type = 0 | e.Type), null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), e.UpgradeStarHeroSids) {
                    if (!Array.isArray(e.UpgradeStarHeroSids)) throw TypeError(".Req_Hero_BatchUpgradeTalent.UpgradeStarHeroSids: array expected");
                    for (t.UpgradeStarHeroSids = [], n = 0; n < e.UpgradeStarHeroSids.length; ++n) i.Long ? (t.UpgradeStarHeroSids[n] = i.Long.fromValue(e.UpgradeStarHeroSids[n])).unsigned = !1 : "string" == typeof e.UpgradeStarHeroSids[n] ? t.UpgradeStarHeroSids[n] = parseInt(e.UpgradeStarHeroSids[n], 10) : "number" == typeof e.UpgradeStarHeroSids[n] ? t.UpgradeStarHeroSids[n] = e.UpgradeStarHeroSids[n] : "object" == typeof e.UpgradeStarHeroSids[n] && (t.UpgradeStarHeroSids[n] = new i.LongBits(e.UpgradeStarHeroSids[n].low >>> 0, e.UpgradeStarHeroSids[n].high >>> 0).toNumber())
                }
                if (e.UpgradeStarHeroMaterials) {
                    if (!Array.isArray(e.UpgradeStarHeroMaterials)) throw TypeError(".Req_Hero_BatchUpgradeTalent.UpgradeStarHeroMaterials: array expected");
                    for (t.UpgradeStarHeroMaterials = [], n = 0; n < e.UpgradeStarHeroMaterials.length; ++n) {
                        if ("object" != typeof e.UpgradeStarHeroMaterials[n]) throw TypeError(".Req_Hero_BatchUpgradeTalent.UpgradeStarHeroMaterials: object expected");
                        t.UpgradeStarHeroMaterials[n] = a.IntArray.fromObject(e.UpgradeStarHeroMaterials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.UpgradeStarHeroSids = [], n.UpgradeStarHeroMaterials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Type = 0, i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0
                }
                if (null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray.toObject(e.Materials[r], t)
                }
                if (null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), e.UpgradeStarHeroSids && e.UpgradeStarHeroSids.length)
                    for (n.UpgradeStarHeroSids = [], r = 0; r < e.UpgradeStarHeroSids.length; ++r) "number" == typeof e.UpgradeStarHeroSids[r] ? n.UpgradeStarHeroSids[r] = t.longs === String ? String(e.UpgradeStarHeroSids[r]) : e.UpgradeStarHeroSids[r] : n.UpgradeStarHeroSids[r] = t.longs === String ? i.Long.prototype.toString.call(e.UpgradeStarHeroSids[r]) : t.longs === Number ? new i.LongBits(e.UpgradeStarHeroSids[r].low >>> 0, e.UpgradeStarHeroSids[r].high >>> 0).toNumber() : e.UpgradeStarHeroSids[r];
                if (e.UpgradeStarHeroMaterials && e.UpgradeStarHeroMaterials.length)
                    for (n.UpgradeStarHeroMaterials = [], r = 0; r < e.UpgradeStarHeroMaterials.length; ++r) n.UpgradeStarHeroMaterials[r] = a.IntArray.toObject(e.UpgradeStarHeroMaterials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_BatchUpgradeTalent"
            }, e
        }(), a.Req_Hero_ResetTalent = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int32(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_ResetTalent; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Type = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_ResetTalent) return e;
                var t = new a.Req_Hero_ResetTalent;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Type && (t.Type = 0 | e.Type), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Type = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_ResetTalent"
            }, e
        }(), a.Res_Hero_ResetTalent = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.UserItem_Model.encode(e.Materials[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Hero_ResetTalent; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.UserItem_Model.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Hero_ResetTalent) return e;
                var t = new a.Res_Hero_ResetTalent;
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Res_Hero_ResetTalent.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Res_Hero_ResetTalent.Materials: object expected");
                        t.Materials[n] = a.UserItem_Model.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var o = 0; o < e.Materials.length; ++o) n.Materials[o] = a.UserItem_Model.toObject(e.Materials[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Hero_ResetTalent"
            }, e
        }(), a.Req_Hero_UpgradeStar = function() {
            function e(e) {
                if (this.Materials = [], this.UpgradeStarHeroSids = [], this.UpgradeStarHeroMaterials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.UpgradeStarHeroSids = i.emptyArray, e.prototype.UpgradeStarHeroMaterials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                if (null != e.UpgradeStarHeroSids && e.UpgradeStarHeroSids.length) {
                    for (t.uint32(26).fork(), n = 0; n < e.UpgradeStarHeroSids.length; ++n) t.int64(e.UpgradeStarHeroSids[n]);
                    t.ldelim()
                }
                if (null != e.UpgradeStarHeroMaterials && e.UpgradeStarHeroMaterials.length)
                    for (n = 0; n < e.UpgradeStarHeroMaterials.length; ++n) a.IntArray.encode(e.UpgradeStarHeroMaterials[n], t.uint32(34).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_UpgradeStar; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 3:
                            if (r.UpgradeStarHeroSids && r.UpgradeStarHeroSids.length || (r.UpgradeStarHeroSids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.UpgradeStarHeroSids.push(e.int64());
                            else r.UpgradeStarHeroSids.push(e.int64());
                            break;
                        case 4:
                            r.UpgradeStarHeroMaterials && r.UpgradeStarHeroMaterials.length || (r.UpgradeStarHeroMaterials = []), r.UpgradeStarHeroMaterials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high))) return "Sid: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (n = a.IntArray.verify(e.Materials[t])) return "Materials." + n
                }
                if (null != e.UpgradeStarHeroSids && e.hasOwnProperty("UpgradeStarHeroSids")) {
                    if (!Array.isArray(e.UpgradeStarHeroSids)) return "UpgradeStarHeroSids: array expected";
                    for (t = 0; t < e.UpgradeStarHeroSids.length; ++t)
                        if (!(i.isInteger(e.UpgradeStarHeroSids[t]) || e.UpgradeStarHeroSids[t] && i.isInteger(e.UpgradeStarHeroSids[t].low) && i.isInteger(e.UpgradeStarHeroSids[t].high))) return "UpgradeStarHeroSids: integer|Long[] expected"
                }
                if (null != e.UpgradeStarHeroMaterials && e.hasOwnProperty("UpgradeStarHeroMaterials")) {
                    if (!Array.isArray(e.UpgradeStarHeroMaterials)) return "UpgradeStarHeroMaterials: array expected";
                    for (t = 0; t < e.UpgradeStarHeroMaterials.length; ++t) {
                        var n;
                        if (n = a.IntArray.verify(e.UpgradeStarHeroMaterials[t])) return "UpgradeStarHeroMaterials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_UpgradeStar) return e;
                var t = new a.Req_Hero_UpgradeStar;
                if (null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Hero_UpgradeStar.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Hero_UpgradeStar.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                if (e.UpgradeStarHeroSids) {
                    if (!Array.isArray(e.UpgradeStarHeroSids)) throw TypeError(".Req_Hero_UpgradeStar.UpgradeStarHeroSids: array expected");
                    for (t.UpgradeStarHeroSids = [], n = 0; n < e.UpgradeStarHeroSids.length; ++n) i.Long ? (t.UpgradeStarHeroSids[n] = i.Long.fromValue(e.UpgradeStarHeroSids[n])).unsigned = !1 : "string" == typeof e.UpgradeStarHeroSids[n] ? t.UpgradeStarHeroSids[n] = parseInt(e.UpgradeStarHeroSids[n], 10) : "number" == typeof e.UpgradeStarHeroSids[n] ? t.UpgradeStarHeroSids[n] = e.UpgradeStarHeroSids[n] : "object" == typeof e.UpgradeStarHeroSids[n] && (t.UpgradeStarHeroSids[n] = new i.LongBits(e.UpgradeStarHeroSids[n].low >>> 0, e.UpgradeStarHeroSids[n].high >>> 0).toNumber())
                }
                if (e.UpgradeStarHeroMaterials) {
                    if (!Array.isArray(e.UpgradeStarHeroMaterials)) throw TypeError(".Req_Hero_UpgradeStar.UpgradeStarHeroMaterials: array expected");
                    for (t.UpgradeStarHeroMaterials = [], n = 0; n < e.UpgradeStarHeroMaterials.length; ++n) {
                        if ("object" != typeof e.UpgradeStarHeroMaterials[n]) throw TypeError(".Req_Hero_UpgradeStar.UpgradeStarHeroMaterials: object expected");
                        t.UpgradeStarHeroMaterials[n] = a.IntArray.fromObject(e.UpgradeStarHeroMaterials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = [], n.UpgradeStarHeroSids = [], n.UpgradeStarHeroMaterials = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                if (null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray.toObject(e.Materials[r], t)
                }
                if (e.UpgradeStarHeroSids && e.UpgradeStarHeroSids.length)
                    for (n.UpgradeStarHeroSids = [], r = 0; r < e.UpgradeStarHeroSids.length; ++r) "number" == typeof e.UpgradeStarHeroSids[r] ? n.UpgradeStarHeroSids[r] = t.longs === String ? String(e.UpgradeStarHeroSids[r]) : e.UpgradeStarHeroSids[r] : n.UpgradeStarHeroSids[r] = t.longs === String ? i.Long.prototype.toString.call(e.UpgradeStarHeroSids[r]) : t.longs === Number ? new i.LongBits(e.UpgradeStarHeroSids[r].low >>> 0, e.UpgradeStarHeroSids[r].high >>> 0).toNumber() : e.UpgradeStarHeroSids[r];
                if (e.UpgradeStarHeroMaterials && e.UpgradeStarHeroMaterials.length)
                    for (n.UpgradeStarHeroMaterials = [], r = 0; r < e.UpgradeStarHeroMaterials.length; ++r) n.UpgradeStarHeroMaterials[r] = a.IntArray.toObject(e.UpgradeStarHeroMaterials[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_UpgradeStar"
            }, e
        }(), a.Req_Hero_HerosUpgradeStar = function() {
            function e(e) {
                if (this.Sids = [], this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sids = i.emptyArray, e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sids && e.Sids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Sids.length; ++n) t.int64(e.Sids[n]);
                    t.ldelim()
                }
                if (null != e.Materials && e.Materials.length)
                    for (n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_HerosUpgradeStar; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Sids && r.Sids.length || (r.Sids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Sids.push(e.int64());
                            else r.Sids.push(e.int64());
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sids && e.hasOwnProperty("Sids")) {
                    if (!Array.isArray(e.Sids)) return "Sids: array expected";
                    for (var t = 0; t < e.Sids.length; ++t)
                        if (!(i.isInteger(e.Sids[t]) || e.Sids[t] && i.isInteger(e.Sids[t].low) && i.isInteger(e.Sids[t].high))) return "Sids: integer|Long[] expected"
                }
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_HerosUpgradeStar) return e;
                var t = new a.Req_Hero_HerosUpgradeStar;
                if (e.Sids) {
                    if (!Array.isArray(e.Sids)) throw TypeError(".Req_Hero_HerosUpgradeStar.Sids: array expected");
                    t.Sids = [];
                    for (var n = 0; n < e.Sids.length; ++n) i.Long ? (t.Sids[n] = i.Long.fromValue(e.Sids[n])).unsigned = !1 : "string" == typeof e.Sids[n] ? t.Sids[n] = parseInt(e.Sids[n], 10) : "number" == typeof e.Sids[n] ? t.Sids[n] = e.Sids[n] : "object" == typeof e.Sids[n] && (t.Sids[n] = new i.LongBits(e.Sids[n].low >>> 0, e.Sids[n].high >>> 0).toNumber())
                }
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Hero_HerosUpgradeStar.Materials: array expected");
                    for (t.Materials = [], n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Hero_HerosUpgradeStar.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Sids = [], n.Materials = []), e.Sids && e.Sids.length) {
                    n.Sids = [];
                    for (var o = 0; o < e.Sids.length; ++o) "number" == typeof e.Sids[o] ? n.Sids[o] = t.longs === String ? String(e.Sids[o]) : e.Sids[o] : n.Sids[o] = t.longs === String ? i.Long.prototype.toString.call(e.Sids[o]) : t.longs === Number ? new i.LongBits(e.Sids[o].low >>> 0, e.Sids[o].high >>> 0).toNumber() : e.Sids[o]
                }
                if (e.Materials && e.Materials.length)
                    for (n.Materials = [], o = 0; o < e.Materials.length; ++o) n.Materials[o] = a.IntArray.toObject(e.Materials[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_HerosUpgradeStar"
            }, e
        }(), a.Req_Hero_SetFormation = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_SetFormation; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_SetFormation) return e;
                var t = new a.Req_Hero_SetFormation;
                if (e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Hero_SetFormation.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Hero_SetFormation.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var o = 0; o < e.Formations.length; ++o) n.Formations[o] = a.UserFormation_Model.toObject(e.Formations[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_SetFormation"
            }, e
        }(), a.Req_Hero_SetSkin = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkinId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(8).int64(e.OwnerId), null != e.SkinId && Object.hasOwnProperty.call(e, "SkinId") && t.uint32(16).int64(e.SkinId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_SetSkin; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.OwnerId = e.int64();
                            break;
                        case 2:
                            r.SkinId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null != e.SkinId && e.hasOwnProperty("SkinId") && !(i.isInteger(e.SkinId) || e.SkinId && i.isInteger(e.SkinId.low) && i.isInteger(e.SkinId.high)) ? "SkinId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_SetSkin) return e;
                var t = new a.Req_Hero_SetSkin;
                return null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), null != e.SkinId && (i.Long ? (t.SkinId = i.Long.fromValue(e.SkinId)).unsigned = !1 : "string" == typeof e.SkinId ? t.SkinId = parseInt(e.SkinId, 10) : "number" == typeof e.SkinId ? t.SkinId = e.SkinId : "object" == typeof e.SkinId && (t.SkinId = new i.LongBits(e.SkinId.low >>> 0, e.SkinId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.OwnerId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SkinId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkinId = t.longs === String ? "0" : 0
                }
                return null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), null != e.SkinId && e.hasOwnProperty("SkinId") && ("number" == typeof e.SkinId ? n.SkinId = t.longs === String ? String(e.SkinId) : e.SkinId : n.SkinId = t.longs === String ? i.Long.prototype.toString.call(e.SkinId) : t.longs === Number ? new i.LongBits(e.SkinId.low >>> 0, e.SkinId.high >>> 0).toNumber() : e.SkinId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_SetSkin"
            }, e
        }(), a.Req_Hero_Reborn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.IncludeEquipment = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.IncludeEquipment && Object.hasOwnProperty.call(e, "IncludeEquipment") && t.uint32(16).bool(e.IncludeEquipment), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_Reborn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.IncludeEquipment = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.IncludeEquipment && e.hasOwnProperty("IncludeEquipment") && "boolean" != typeof e.IncludeEquipment ? "IncludeEquipment: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_Reborn) return e;
                var t = new a.Req_Hero_Reborn;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.IncludeEquipment && (t.IncludeEquipment = Boolean(e.IncludeEquipment)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.IncludeEquipment = !1
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.IncludeEquipment && e.hasOwnProperty("IncludeEquipment") && (n.IncludeEquipment = e.IncludeEquipment), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_Reborn"
            }, e
        }(), a.Req_Hero_Decompose = function() {
            function e(e) {
                if (this.Sids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sids && e.Sids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Sids.length; ++n) t.int64(e.Sids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_Decompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Sids && r.Sids.length || (r.Sids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Sids.push(e.int64());
                            else r.Sids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sids && e.hasOwnProperty("Sids")) {
                    if (!Array.isArray(e.Sids)) return "Sids: array expected";
                    for (var t = 0; t < e.Sids.length; ++t)
                        if (!(i.isInteger(e.Sids[t]) || e.Sids[t] && i.isInteger(e.Sids[t].low) && i.isInteger(e.Sids[t].high))) return "Sids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_Decompose) return e;
                var t = new a.Req_Hero_Decompose;
                if (e.Sids) {
                    if (!Array.isArray(e.Sids)) throw TypeError(".Req_Hero_Decompose.Sids: array expected");
                    t.Sids = [];
                    for (var n = 0; n < e.Sids.length; ++n) i.Long ? (t.Sids[n] = i.Long.fromValue(e.Sids[n])).unsigned = !1 : "string" == typeof e.Sids[n] ? t.Sids[n] = parseInt(e.Sids[n], 10) : "number" == typeof e.Sids[n] ? t.Sids[n] = e.Sids[n] : "object" == typeof e.Sids[n] && (t.Sids[n] = new i.LongBits(e.Sids[n].low >>> 0, e.Sids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Sids = []), e.Sids && e.Sids.length) {
                    n.Sids = [];
                    for (var o = 0; o < e.Sids.length; ++o) "number" == typeof e.Sids[o] ? n.Sids[o] = t.longs === String ? String(e.Sids[o]) : e.Sids[o] : n.Sids[o] = t.longs === String ? i.Long.prototype.toString.call(e.Sids[o]) : t.longs === Number ? new i.LongBits(e.Sids[o].low >>> 0, e.Sids[o].high >>> 0).toNumber() : e.Sids[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_Decompose"
            }, e
        }(), a.Req_Hero_Displace = function() {
            function e(e) {
                if (this.MaterialHeroSids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NewHeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MaterialHeroSids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.NewHeroId && Object.hasOwnProperty.call(e, "NewHeroId") && t.uint32(16).int64(e.NewHeroId), null != e.MaterialHeroSids && e.MaterialHeroSids.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.MaterialHeroSids.length; ++n) t.int64(e.MaterialHeroSids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_Displace; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.NewHeroId = e.int64();
                            break;
                        case 3:
                            if (r.MaterialHeroSids && r.MaterialHeroSids.length || (r.MaterialHeroSids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.MaterialHeroSids.push(e.int64());
                            else r.MaterialHeroSids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high))) return "Sid: integer|Long expected";
                if (null != e.NewHeroId && e.hasOwnProperty("NewHeroId") && !(i.isInteger(e.NewHeroId) || e.NewHeroId && i.isInteger(e.NewHeroId.low) && i.isInteger(e.NewHeroId.high))) return "NewHeroId: integer|Long expected";
                if (null != e.MaterialHeroSids && e.hasOwnProperty("MaterialHeroSids")) {
                    if (!Array.isArray(e.MaterialHeroSids)) return "MaterialHeroSids: array expected";
                    for (var t = 0; t < e.MaterialHeroSids.length; ++t)
                        if (!(i.isInteger(e.MaterialHeroSids[t]) || e.MaterialHeroSids[t] && i.isInteger(e.MaterialHeroSids[t].low) && i.isInteger(e.MaterialHeroSids[t].high))) return "MaterialHeroSids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_Displace) return e;
                var t = new a.Req_Hero_Displace;
                if (null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.NewHeroId && (i.Long ? (t.NewHeroId = i.Long.fromValue(e.NewHeroId)).unsigned = !1 : "string" == typeof e.NewHeroId ? t.NewHeroId = parseInt(e.NewHeroId, 10) : "number" == typeof e.NewHeroId ? t.NewHeroId = e.NewHeroId : "object" == typeof e.NewHeroId && (t.NewHeroId = new i.LongBits(e.NewHeroId.low >>> 0, e.NewHeroId.high >>> 0).toNumber())), e.MaterialHeroSids) {
                    if (!Array.isArray(e.MaterialHeroSids)) throw TypeError(".Req_Hero_Displace.MaterialHeroSids: array expected");
                    t.MaterialHeroSids = [];
                    for (var n = 0; n < e.MaterialHeroSids.length; ++n) i.Long ? (t.MaterialHeroSids[n] = i.Long.fromValue(e.MaterialHeroSids[n])).unsigned = !1 : "string" == typeof e.MaterialHeroSids[n] ? t.MaterialHeroSids[n] = parseInt(e.MaterialHeroSids[n], 10) : "number" == typeof e.MaterialHeroSids[n] ? t.MaterialHeroSids[n] = e.MaterialHeroSids[n] : "object" == typeof e.MaterialHeroSids[n] && (t.MaterialHeroSids[n] = new i.LongBits(e.MaterialHeroSids[n].low >>> 0, e.MaterialHeroSids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.MaterialHeroSids = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.NewHeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NewHeroId = t.longs === String ? "0" : 0
                }
                if (null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.NewHeroId && e.hasOwnProperty("NewHeroId") && ("number" == typeof e.NewHeroId ? n.NewHeroId = t.longs === String ? String(e.NewHeroId) : e.NewHeroId : n.NewHeroId = t.longs === String ? i.Long.prototype.toString.call(e.NewHeroId) : t.longs === Number ? new i.LongBits(e.NewHeroId.low >>> 0, e.NewHeroId.high >>> 0).toNumber() : e.NewHeroId), e.MaterialHeroSids && e.MaterialHeroSids.length) {
                    n.MaterialHeroSids = [];
                    for (var r = 0; r < e.MaterialHeroSids.length; ++r) "number" == typeof e.MaterialHeroSids[r] ? n.MaterialHeroSids[r] = t.longs === String ? String(e.MaterialHeroSids[r]) : e.MaterialHeroSids[r] : n.MaterialHeroSids[r] = t.longs === String ? i.Long.prototype.toString.call(e.MaterialHeroSids[r]) : t.longs === Number ? new i.LongBits(e.MaterialHeroSids[r].low >>> 0, e.MaterialHeroSids[r].high >>> 0).toNumber() : e.MaterialHeroSids[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_Displace"
            }, e
        }(), a.Req_Hero_LockHero = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Locked = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Locked && Object.hasOwnProperty.call(e, "Locked") && t.uint32(16).bool(e.Locked), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_LockHero; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Locked = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Locked && e.hasOwnProperty("Locked") && "boolean" != typeof e.Locked ? "Locked: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_LockHero) return e;
                var t = new a.Req_Hero_LockHero;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Locked && (t.Locked = Boolean(e.Locked)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Locked = !1
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Locked && e.hasOwnProperty("Locked") && (n.Locked = e.Locked), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_LockHero"
            }, e
        }(), a.Req_Hero_DrawReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(8).int64(e.HeroId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_DrawReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.HeroId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_DrawReward) return e;
                var t = new a.Req_Hero_DrawReward;
                return null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.HeroId = t.longs === String ? "0" : 0;
                return null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_DrawReward"
            }, e
        }(), a.Req_Hero_LuckSkillStudy = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Index = 0, e.prototype.Type = 0, e.prototype.Param = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(16).int32(e.Index), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int32(e.Type), null != e.Param && Object.hasOwnProperty.call(e, "Param") && t.uint32(32).int64(e.Param), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_LuckSkillStudy; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Index = e.int32();
                            break;
                        case 3:
                            r.Type = e.int32();
                            break;
                        case 4:
                            r.Param = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Index && e.hasOwnProperty("Index") && !i.isInteger(e.Index) ? "Index: integer expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null != e.Param && e.hasOwnProperty("Param") && !(i.isInteger(e.Param) || e.Param && i.isInteger(e.Param.low) && i.isInteger(e.Param.high)) ? "Param: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_LuckSkillStudy) return e;
                var t = new a.Req_Hero_LuckSkillStudy;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Index && (t.Index = 0 | e.Index), null != e.Type && (t.Type = 0 | e.Type), null != e.Param && (i.Long ? (t.Param = i.Long.fromValue(e.Param)).unsigned = !1 : "string" == typeof e.Param ? t.Param = parseInt(e.Param, 10) : "number" == typeof e.Param ? t.Param = e.Param : "object" == typeof e.Param && (t.Param = new i.LongBits(e.Param.low >>> 0, e.Param.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Index = 0, n.Type = 0, i.Long ? (o = new i.Long(0, 0, !1), n.Param = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Param = t.longs === String ? "0" : 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Index && e.hasOwnProperty("Index") && (n.Index = e.Index), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), null != e.Param && e.hasOwnProperty("Param") && ("number" == typeof e.Param ? n.Param = t.longs === String ? String(e.Param) : e.Param : n.Param = t.longs === String ? i.Long.prototype.toString.call(e.Param) : t.longs === Number ? new i.LongBits(e.Param.low >>> 0, e.Param.high >>> 0).toNumber() : e.Param), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_LuckSkillStudy"
            }, e
        }(), a.Req_Hero_LuckSkillClear = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Index = 0, e.prototype.Type = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(16).int32(e.Index), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int32(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_LuckSkillClear; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Index = e.int32();
                            break;
                        case 3:
                            r.Type = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Index && e.hasOwnProperty("Index") && !i.isInteger(e.Index) ? "Index: integer expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_LuckSkillClear) return e;
                var t = new a.Req_Hero_LuckSkillClear;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Index && (t.Index = 0 | e.Index), null != e.Type && (t.Type = 0 | e.Type), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Index = 0, n.Type = 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Index && e.hasOwnProperty("Index") && (n.Index = e.Index), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_LuckSkillClear"
            }, e
        }(), a.Req_Hero_HandbookUpgradeStar = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_HandbookUpgradeStar; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_HandbookUpgradeStar) return e;
                var t = new a.Req_Hero_HandbookUpgradeStar;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_HandbookUpgradeStar"
            }, e
        }(), a.Req_Hero_HandbookDeposit = function() {
            function e(e) {
                if (this.Sids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sids = i.emptyArray, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NewLevel = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sids && e.Sids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Sids.length; ++n) t.int64(e.Sids[n]);
                    t.ldelim()
                }
                return null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(16).int64(e.HeroId), null != e.NewLevel && Object.hasOwnProperty.call(e, "NewLevel") && t.uint32(24).int32(e.NewLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_HandbookDeposit; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Sids && r.Sids.length || (r.Sids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Sids.push(e.int64());
                            else r.Sids.push(e.int64());
                            break;
                        case 2:
                            r.HeroId = e.int64();
                            break;
                        case 3:
                            r.NewLevel = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sids && e.hasOwnProperty("Sids")) {
                    if (!Array.isArray(e.Sids)) return "Sids: array expected";
                    for (var t = 0; t < e.Sids.length; ++t)
                        if (!(i.isInteger(e.Sids[t]) || e.Sids[t] && i.isInteger(e.Sids[t].low) && i.isInteger(e.Sids[t].high))) return "Sids: integer|Long[] expected"
                }
                return null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null != e.NewLevel && e.hasOwnProperty("NewLevel") && !i.isInteger(e.NewLevel) ? "NewLevel: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_HandbookDeposit) return e;
                var t = new a.Req_Hero_HandbookDeposit;
                if (e.Sids) {
                    if (!Array.isArray(e.Sids)) throw TypeError(".Req_Hero_HandbookDeposit.Sids: array expected");
                    t.Sids = [];
                    for (var n = 0; n < e.Sids.length; ++n) i.Long ? (t.Sids[n] = i.Long.fromValue(e.Sids[n])).unsigned = !1 : "string" == typeof e.Sids[n] ? t.Sids[n] = parseInt(e.Sids[n], 10) : "number" == typeof e.Sids[n] ? t.Sids[n] = e.Sids[n] : "object" == typeof e.Sids[n] && (t.Sids[n] = new i.LongBits(e.Sids[n].low >>> 0, e.Sids[n].high >>> 0).toNumber())
                }
                return null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), null != e.NewLevel && (t.NewLevel = 0 | e.NewLevel), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Sids = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.HeroId = t.longs === String ? "0" : 0;
                    n.NewLevel = 0
                }
                if (e.Sids && e.Sids.length) {
                    n.Sids = [];
                    for (var r = 0; r < e.Sids.length; ++r) "number" == typeof e.Sids[r] ? n.Sids[r] = t.longs === String ? String(e.Sids[r]) : e.Sids[r] : n.Sids[r] = t.longs === String ? i.Long.prototype.toString.call(e.Sids[r]) : t.longs === Number ? new i.LongBits(e.Sids[r].low >>> 0, e.Sids[r].high >>> 0).toNumber() : e.Sids[r]
                }
                return null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), null != e.NewLevel && e.hasOwnProperty("NewLevel") && (n.NewLevel = e.NewLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_HandbookDeposit"
            }, e
        }(), a.Req_Hero_HandbookWithdraw = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(8).int64(e.HeroId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_HandbookWithdraw; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.HeroId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_HandbookWithdraw) return e;
                var t = new a.Req_Hero_HandbookWithdraw;
                return null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.HeroId = t.longs === String ? "0" : 0;
                return null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_HandbookWithdraw"
            }, e
        }(), a.Req_Hero_UpgradeHeroSkin = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(16).int64(e.Level), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_UpgradeHeroSkin; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Level = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high)) ? "Level: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_UpgradeHeroSkin) return e;
                var t = new a.Req_Hero_UpgradeHeroSkin;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_UpgradeHeroSkin"
            }, e
        }(), a.Req_Hero_JobChange = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = 0, e.prototype.Index = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int32(e.Sid), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(16).int32(e.Index), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_JobChange; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int32();
                            break;
                        case 2:
                            r.Index = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !i.isInteger(e.Sid) ? "Sid: integer expected" : null != e.Index && e.hasOwnProperty("Index") && !i.isInteger(e.Index) ? "Index: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_JobChange) return e;
                var t = new a.Req_Hero_JobChange;
                return null != e.Sid && (t.Sid = 0 | e.Sid), null != e.Index && (t.Index = 0 | e.Index), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Sid = 0, n.Index = 0), null != e.Sid && e.hasOwnProperty("Sid") && (n.Sid = e.Sid), null != e.Index && e.hasOwnProperty("Index") && (n.Index = e.Index), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_JobChange"
            }, e
        }(), a.Req_Hero_JobReset = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int32(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_JobReset; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !i.isInteger(e.Sid) ? "Sid: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_JobReset) return e;
                var t = new a.Req_Hero_JobReset;
                return null != e.Sid && (t.Sid = 0 | e.Sid), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Sid = 0), null != e.Sid && e.hasOwnProperty("Sid") && (n.Sid = e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_JobReset"
            }, e
        }(), a.Req_Hero_NewPersonalityUnlock = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = 0, e.prototype.PersonalityId = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int32(e.Sid), null != e.PersonalityId && Object.hasOwnProperty.call(e, "PersonalityId") && t.uint32(16).int32(e.PersonalityId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_NewPersonalityUnlock; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int32();
                            break;
                        case 2:
                            r.PersonalityId = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !i.isInteger(e.Sid) ? "Sid: integer expected" : null != e.PersonalityId && e.hasOwnProperty("PersonalityId") && !i.isInteger(e.PersonalityId) ? "PersonalityId: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_NewPersonalityUnlock) return e;
                var t = new a.Req_Hero_NewPersonalityUnlock;
                return null != e.Sid && (t.Sid = 0 | e.Sid), null != e.PersonalityId && (t.PersonalityId = 0 | e.PersonalityId), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Sid = 0, n.PersonalityId = 0), null != e.Sid && e.hasOwnProperty("Sid") && (n.Sid = e.Sid), null != e.PersonalityId && e.hasOwnProperty("PersonalityId") && (n.PersonalityId = e.PersonalityId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_NewPersonalityUnlock"
            }, e
        }(), a.Req_Hero_NewPersonalityChange = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = 0, e.prototype.PersonalityId = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int32(e.Sid), null != e.PersonalityId && Object.hasOwnProperty.call(e, "PersonalityId") && t.uint32(16).int32(e.PersonalityId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_NewPersonalityChange; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int32();
                            break;
                        case 2:
                            r.PersonalityId = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !i.isInteger(e.Sid) ? "Sid: integer expected" : null != e.PersonalityId && e.hasOwnProperty("PersonalityId") && !i.isInteger(e.PersonalityId) ? "PersonalityId: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_NewPersonalityChange) return e;
                var t = new a.Req_Hero_NewPersonalityChange;
                return null != e.Sid && (t.Sid = 0 | e.Sid), null != e.PersonalityId && (t.PersonalityId = 0 | e.PersonalityId), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Sid = 0, n.PersonalityId = 0), null != e.Sid && e.hasOwnProperty("Sid") && (n.Sid = e.Sid), null != e.PersonalityId && e.hasOwnProperty("PersonalityId") && (n.PersonalityId = e.PersonalityId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_NewPersonalityChange"
            }, e
        }(), a.Req_Hero_NewPersonalityUpgrade = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int32(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_NewPersonalityUpgrade; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !i.isInteger(e.Sid) ? "Sid: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_NewPersonalityUpgrade) return e;
                var t = new a.Req_Hero_NewPersonalityUpgrade;
                return null != e.Sid && (t.Sid = 0 | e.Sid), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Sid = 0), null != e.Sid && e.hasOwnProperty("Sid") && (n.Sid = e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_NewPersonalityUpgrade"
            }, e
        }(), a.Req_Hero_NewPersonalitySee = function() {
            function e(e) {
                if (this.ActionIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = 0, e.prototype.PersonalityId = 0, e.prototype.ActionIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int32(e.Sid), null != e.PersonalityId && Object.hasOwnProperty.call(e, "PersonalityId") && t.uint32(16).int32(e.PersonalityId), null != e.ActionIds && e.ActionIds.length) {
                    t.uint32(26).fork();
                    for (var n = 0; n < e.ActionIds.length; ++n) t.int32(e.ActionIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_NewPersonalitySee; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int32();
                            break;
                        case 2:
                            r.PersonalityId = e.int32();
                            break;
                        case 3:
                            if (r.ActionIds && r.ActionIds.length || (r.ActionIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ActionIds.push(e.int32());
                            else r.ActionIds.push(e.int32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Sid && e.hasOwnProperty("Sid") && !i.isInteger(e.Sid)) return "Sid: integer expected";
                if (null != e.PersonalityId && e.hasOwnProperty("PersonalityId") && !i.isInteger(e.PersonalityId)) return "PersonalityId: integer expected";
                if (null != e.ActionIds && e.hasOwnProperty("ActionIds")) {
                    if (!Array.isArray(e.ActionIds)) return "ActionIds: array expected";
                    for (var t = 0; t < e.ActionIds.length; ++t)
                        if (!i.isInteger(e.ActionIds[t])) return "ActionIds: integer[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_NewPersonalitySee) return e;
                var t = new a.Req_Hero_NewPersonalitySee;
                if (null != e.Sid && (t.Sid = 0 | e.Sid), null != e.PersonalityId && (t.PersonalityId = 0 | e.PersonalityId), e.ActionIds) {
                    if (!Array.isArray(e.ActionIds)) throw TypeError(".Req_Hero_NewPersonalitySee.ActionIds: array expected");
                    t.ActionIds = [];
                    for (var n = 0; n < e.ActionIds.length; ++n) t.ActionIds[n] = 0 | e.ActionIds[n]
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ActionIds = []), t.defaults && (n.Sid = 0, n.PersonalityId = 0), null != e.Sid && e.hasOwnProperty("Sid") && (n.Sid = e.Sid), null != e.PersonalityId && e.hasOwnProperty("PersonalityId") && (n.PersonalityId = e.PersonalityId), e.ActionIds && e.ActionIds.length) {
                    n.ActionIds = [];
                    for (var o = 0; o < e.ActionIds.length; ++o) n.ActionIds[o] = e.ActionIds[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_NewPersonalitySee"
            }, e
        }(), a.Req_Item_AngelUpgradeLevel = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NewLevel = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), null != e.NewLevel && Object.hasOwnProperty.call(e, "NewLevel") && t.uint32(16).int32(e.NewLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelUpgradeLevel; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AngelId = e.int64();
                            break;
                        case 2:
                            r.NewLevel = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high)) ? "AngelId: integer|Long expected" : null != e.NewLevel && e.hasOwnProperty("NewLevel") && !i.isInteger(e.NewLevel) ? "NewLevel: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelUpgradeLevel) return e;
                var t = new a.Req_Item_AngelUpgradeLevel;
                return null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), null != e.NewLevel && (t.NewLevel = 0 | e.NewLevel), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AngelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AngelId = t.longs === String ? "0" : 0;
                    n.NewLevel = 0
                }
                return null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? n.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : n.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), null != e.NewLevel && e.hasOwnProperty("NewLevel") && (n.NewLevel = e.NewLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelUpgradeLevel"
            }, e
        }(), a.Req_Item_AngelUpgradeStar = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Materials = i.emptyArray, e.prototype.StarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SubStarLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), null != e.Materials && e.Materials.length)
                    for (var n = 0; n < e.Materials.length; ++n) a.IntArray.encode(e.Materials[n], t.uint32(18).fork()).ldelim();
                return null != e.StarLevel && Object.hasOwnProperty.call(e, "StarLevel") && t.uint32(24).int64(e.StarLevel), null != e.SubStarLevel && Object.hasOwnProperty.call(e, "SubStarLevel") && t.uint32(32).int64(e.SubStarLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelUpgradeStar; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AngelId = e.int64();
                            break;
                        case 2:
                            r.Materials && r.Materials.length || (r.Materials = []), r.Materials.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.StarLevel = e.int64();
                            break;
                        case 4:
                            r.SubStarLevel = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high))) return "AngelId: integer|Long expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t) {
                        var n = a.IntArray.verify(e.Materials[t]);
                        if (n) return "Materials." + n
                    }
                }
                return null != e.StarLevel && e.hasOwnProperty("StarLevel") && !(i.isInteger(e.StarLevel) || e.StarLevel && i.isInteger(e.StarLevel.low) && i.isInteger(e.StarLevel.high)) ? "StarLevel: integer|Long expected" : null != e.SubStarLevel && e.hasOwnProperty("SubStarLevel") && !(i.isInteger(e.SubStarLevel) || e.SubStarLevel && i.isInteger(e.SubStarLevel.low) && i.isInteger(e.SubStarLevel.high)) ? "SubStarLevel: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelUpgradeStar) return e;
                var t = new a.Req_Item_AngelUpgradeStar;
                if (null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_AngelUpgradeStar.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) {
                        if ("object" != typeof e.Materials[n]) throw TypeError(".Req_Item_AngelUpgradeStar.Materials: object expected");
                        t.Materials[n] = a.IntArray.fromObject(e.Materials[n])
                    }
                }
                return null != e.StarLevel && (i.Long ? (t.StarLevel = i.Long.fromValue(e.StarLevel)).unsigned = !1 : "string" == typeof e.StarLevel ? t.StarLevel = parseInt(e.StarLevel, 10) : "number" == typeof e.StarLevel ? t.StarLevel = e.StarLevel : "object" == typeof e.StarLevel && (t.StarLevel = new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber())), null != e.SubStarLevel && (i.Long ? (t.SubStarLevel = i.Long.fromValue(e.SubStarLevel)).unsigned = !1 : "string" == typeof e.SubStarLevel ? t.SubStarLevel = parseInt(e.SubStarLevel, 10) : "number" == typeof e.SubStarLevel ? t.SubStarLevel = e.SubStarLevel : "object" == typeof e.SubStarLevel && (t.SubStarLevel = new i.LongBits(e.SubStarLevel.low >>> 0, e.SubStarLevel.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AngelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AngelId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.StarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.StarLevel = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SubStarLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SubStarLevel = t.longs === String ? "0" : 0
                }
                if (null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? n.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : n.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var r = 0; r < e.Materials.length; ++r) n.Materials[r] = a.IntArray.toObject(e.Materials[r], t)
                }
                return null != e.StarLevel && e.hasOwnProperty("StarLevel") && ("number" == typeof e.StarLevel ? n.StarLevel = t.longs === String ? String(e.StarLevel) : e.StarLevel : n.StarLevel = t.longs === String ? i.Long.prototype.toString.call(e.StarLevel) : t.longs === Number ? new i.LongBits(e.StarLevel.low >>> 0, e.StarLevel.high >>> 0).toNumber() : e.StarLevel), null != e.SubStarLevel && e.hasOwnProperty("SubStarLevel") && ("number" == typeof e.SubStarLevel ? n.SubStarLevel = t.longs === String ? String(e.SubStarLevel) : e.SubStarLevel : n.SubStarLevel = t.longs === String ? i.Long.prototype.toString.call(e.SubStarLevel) : t.longs === Number ? new i.LongBits(e.SubStarLevel.low >>> 0, e.SubStarLevel.high >>> 0).toNumber() : e.SubStarLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelUpgradeStar"
            }, e
        }(), a.Req_Item_AngelUnlock = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelUnlock; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AngelId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high)) ? "AngelId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelUnlock) return e;
                var t = new a.Req_Item_AngelUnlock;
                return null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AngelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AngelId = t.longs === String ? "0" : 0;
                return null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? n.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : n.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelUnlock"
            }, e
        }(), a.Req_Item_AngelReborn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelReborn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AngelId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high)) ? "AngelId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelReborn) return e;
                var t = new a.Req_Item_AngelReborn;
                return null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AngelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AngelId = t.longs === String ? "0" : 0;
                return null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? n.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : n.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelReborn"
            }, e
        }(), a.Req_Item_AngelAddFavor = function() {
            function e(e) {
                if (this.Items = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Items = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), null != e.Items && e.Items.length)
                    for (var n = 0; n < e.Items.length; ++n) a.IntArray.encode(e.Items[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelAddFavor; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AngelId = e.int64();
                            break;
                        case 2:
                            r.Items && r.Items.length || (r.Items = []), r.Items.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high))) return "AngelId: integer|Long expected";
                if (null != e.Items && e.hasOwnProperty("Items")) {
                    if (!Array.isArray(e.Items)) return "Items: array expected";
                    for (var t = 0; t < e.Items.length; ++t) {
                        var n = a.IntArray.verify(e.Items[t]);
                        if (n) return "Items." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelAddFavor) return e;
                var t = new a.Req_Item_AngelAddFavor;
                if (null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), e.Items) {
                    if (!Array.isArray(e.Items)) throw TypeError(".Req_Item_AngelAddFavor.Items: array expected");
                    t.Items = [];
                    for (var n = 0; n < e.Items.length; ++n) {
                        if ("object" != typeof e.Items[n]) throw TypeError(".Req_Item_AngelAddFavor.Items: object expected");
                        t.Items[n] = a.IntArray.fromObject(e.Items[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Items = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AngelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AngelId = t.longs === String ? "0" : 0;
                if (null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? n.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : n.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), e.Items && e.Items.length) {
                    n.Items = [];
                    for (var r = 0; r < e.Items.length; ++r) n.Items[r] = a.IntArray.toObject(e.Items[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelAddFavor"
            }, e
        }(), a.Req_Item_AngelGetReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelGetReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AngelId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high)) ? "AngelId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelGetReward) return e;
                var t = new a.Req_Item_AngelGetReward;
                return null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AngelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AngelId = t.longs === String ? "0" : 0;
                return null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? n.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : n.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelGetReward"
            }, e
        }(), a.Req_Item_AngelActiveFatePoint = function() {
            function e(e) {
                if (this.PointIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.PointIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), null != e.PointIds && e.PointIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.PointIds.length; ++n) t.int64(e.PointIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelActiveFatePoint; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AngelId = e.int64();
                            break;
                        case 2:
                            if (r.PointIds && r.PointIds.length || (r.PointIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.PointIds.push(e.int64());
                            else r.PointIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high))) return "AngelId: integer|Long expected";
                if (null != e.PointIds && e.hasOwnProperty("PointIds")) {
                    if (!Array.isArray(e.PointIds)) return "PointIds: array expected";
                    for (var t = 0; t < e.PointIds.length; ++t)
                        if (!(i.isInteger(e.PointIds[t]) || e.PointIds[t] && i.isInteger(e.PointIds[t].low) && i.isInteger(e.PointIds[t].high))) return "PointIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelActiveFatePoint) return e;
                var t = new a.Req_Item_AngelActiveFatePoint;
                if (null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), e.PointIds) {
                    if (!Array.isArray(e.PointIds)) throw TypeError(".Req_Item_AngelActiveFatePoint.PointIds: array expected");
                    t.PointIds = [];
                    for (var n = 0; n < e.PointIds.length; ++n) i.Long ? (t.PointIds[n] = i.Long.fromValue(e.PointIds[n])).unsigned = !1 : "string" == typeof e.PointIds[n] ? t.PointIds[n] = parseInt(e.PointIds[n], 10) : "number" == typeof e.PointIds[n] ? t.PointIds[n] = e.PointIds[n] : "object" == typeof e.PointIds[n] && (t.PointIds[n] = new i.LongBits(e.PointIds[n].low >>> 0, e.PointIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.PointIds = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AngelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AngelId = t.longs === String ? "0" : 0;
                if (null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? n.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : n.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), e.PointIds && e.PointIds.length) {
                    n.PointIds = [];
                    for (var r = 0; r < e.PointIds.length; ++r) "number" == typeof e.PointIds[r] ? n.PointIds[r] = t.longs === String ? String(e.PointIds[r]) : e.PointIds[r] : n.PointIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.PointIds[r]) : t.longs === Number ? new i.LongBits(e.PointIds[r].low >>> 0, e.PointIds[r].high >>> 0).toNumber() : e.PointIds[r]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelActiveFatePoint"
            }, e
        }(), a.Req_Item_AngelSetSkin = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkinId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), null != e.SkinId && Object.hasOwnProperty.call(e, "SkinId") && t.uint32(16).int64(e.SkinId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelSetSkin; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AngelId = e.int64();
                            break;
                        case 2:
                            r.SkinId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high)) ? "AngelId: integer|Long expected" : null != e.SkinId && e.hasOwnProperty("SkinId") && !(i.isInteger(e.SkinId) || e.SkinId && i.isInteger(e.SkinId.low) && i.isInteger(e.SkinId.high)) ? "SkinId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelSetSkin) return e;
                var t = new a.Req_Item_AngelSetSkin;
                return null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), null != e.SkinId && (i.Long ? (t.SkinId = i.Long.fromValue(e.SkinId)).unsigned = !1 : "string" == typeof e.SkinId ? t.SkinId = parseInt(e.SkinId, 10) : "number" == typeof e.SkinId ? t.SkinId = e.SkinId : "object" == typeof e.SkinId && (t.SkinId = new i.LongBits(e.SkinId.low >>> 0, e.SkinId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AngelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AngelId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SkinId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkinId = t.longs === String ? "0" : 0
                }
                return null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? n.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : n.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), null != e.SkinId && e.hasOwnProperty("SkinId") && ("number" == typeof e.SkinId ? n.SkinId = t.longs === String ? String(e.SkinId) : e.SkinId : n.SkinId = t.longs === String ? i.Long.prototype.toString.call(e.SkinId) : t.longs === Number ? new i.LongBits(e.SkinId.low >>> 0, e.SkinId.high >>> 0).toNumber() : e.SkinId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelSetSkin"
            }, e
        }(), a.Req_Item_AngelActiveSkin = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.SkinId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.SkinId && Object.hasOwnProperty.call(e, "SkinId") && t.uint32(8).int64(e.SkinId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelActiveSkin; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.SkinId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.SkinId && e.hasOwnProperty("SkinId") && !(i.isInteger(e.SkinId) || e.SkinId && i.isInteger(e.SkinId.low) && i.isInteger(e.SkinId.high)) ? "SkinId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelActiveSkin) return e;
                var t = new a.Req_Item_AngelActiveSkin;
                return null != e.SkinId && (i.Long ? (t.SkinId = i.Long.fromValue(e.SkinId)).unsigned = !1 : "string" == typeof e.SkinId ? t.SkinId = parseInt(e.SkinId, 10) : "number" == typeof e.SkinId ? t.SkinId = e.SkinId : "object" == typeof e.SkinId && (t.SkinId = new i.LongBits(e.SkinId.low >>> 0, e.SkinId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.SkinId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.SkinId = t.longs === String ? "0" : 0;
                return null != e.SkinId && e.hasOwnProperty("SkinId") && ("number" == typeof e.SkinId ? n.SkinId = t.longs === String ? String(e.SkinId) : e.SkinId : n.SkinId = t.longs === String ? i.Long.prototype.toString.call(e.SkinId) : t.longs === Number ? new i.LongBits(e.SkinId.low >>> 0, e.SkinId.high >>> 0).toNumber() : e.SkinId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelActiveSkin"
            }, e
        }(), a.Req_Item_AngelSetSkill = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.AngelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Pos = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SkillId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.AngelId && Object.hasOwnProperty.call(e, "AngelId") && t.uint32(8).int64(e.AngelId), null != e.Pos && Object.hasOwnProperty.call(e, "Pos") && t.uint32(16).int64(e.Pos), null != e.SkillId && Object.hasOwnProperty.call(e, "SkillId") && t.uint32(24).int64(e.SkillId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelSetSkill; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.AngelId = e.int64();
                            break;
                        case 2:
                            r.Pos = e.int64();
                            break;
                        case 3:
                            r.SkillId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.AngelId && e.hasOwnProperty("AngelId") && !(i.isInteger(e.AngelId) || e.AngelId && i.isInteger(e.AngelId.low) && i.isInteger(e.AngelId.high)) ? "AngelId: integer|Long expected" : null != e.Pos && e.hasOwnProperty("Pos") && !(i.isInteger(e.Pos) || e.Pos && i.isInteger(e.Pos.low) && i.isInteger(e.Pos.high)) ? "Pos: integer|Long expected" : null != e.SkillId && e.hasOwnProperty("SkillId") && !(i.isInteger(e.SkillId) || e.SkillId && i.isInteger(e.SkillId.low) && i.isInteger(e.SkillId.high)) ? "SkillId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelSetSkill) return e;
                var t = new a.Req_Item_AngelSetSkill;
                return null != e.AngelId && (i.Long ? (t.AngelId = i.Long.fromValue(e.AngelId)).unsigned = !1 : "string" == typeof e.AngelId ? t.AngelId = parseInt(e.AngelId, 10) : "number" == typeof e.AngelId ? t.AngelId = e.AngelId : "object" == typeof e.AngelId && (t.AngelId = new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber())), null != e.Pos && (i.Long ? (t.Pos = i.Long.fromValue(e.Pos)).unsigned = !1 : "string" == typeof e.Pos ? t.Pos = parseInt(e.Pos, 10) : "number" == typeof e.Pos ? t.Pos = e.Pos : "object" == typeof e.Pos && (t.Pos = new i.LongBits(e.Pos.low >>> 0, e.Pos.high >>> 0).toNumber())), null != e.SkillId && (i.Long ? (t.SkillId = i.Long.fromValue(e.SkillId)).unsigned = !1 : "string" == typeof e.SkillId ? t.SkillId = parseInt(e.SkillId, 10) : "number" == typeof e.SkillId ? t.SkillId = e.SkillId : "object" == typeof e.SkillId && (t.SkillId = new i.LongBits(e.SkillId.low >>> 0, e.SkillId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.AngelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.AngelId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Pos = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Pos = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.SkillId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SkillId = t.longs === String ? "0" : 0
                }
                return null != e.AngelId && e.hasOwnProperty("AngelId") && ("number" == typeof e.AngelId ? n.AngelId = t.longs === String ? String(e.AngelId) : e.AngelId : n.AngelId = t.longs === String ? i.Long.prototype.toString.call(e.AngelId) : t.longs === Number ? new i.LongBits(e.AngelId.low >>> 0, e.AngelId.high >>> 0).toNumber() : e.AngelId), null != e.Pos && e.hasOwnProperty("Pos") && ("number" == typeof e.Pos ? n.Pos = t.longs === String ? String(e.Pos) : e.Pos : n.Pos = t.longs === String ? i.Long.prototype.toString.call(e.Pos) : t.longs === Number ? new i.LongBits(e.Pos.low >>> 0, e.Pos.high >>> 0).toNumber() : e.Pos), null != e.SkillId && e.hasOwnProperty("SkillId") && ("number" == typeof e.SkillId ? n.SkillId = t.longs === String ? String(e.SkillId) : e.SkillId : n.SkillId = t.longs === String ? i.Long.prototype.toString.call(e.SkillId) : t.longs === Number ? new i.LongBits(e.SkillId.low >>> 0, e.SkillId.high >>> 0).toNumber() : e.SkillId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelSetSkill"
            }, e
        }(), a.Req_Item_GetTargetAngel = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Zone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.FormationIdType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), null != e.Zone && Object.hasOwnProperty.call(e, "Zone") && t.uint32(16).int64(e.Zone), null != e.FormationIdType && Object.hasOwnProperty.call(e, "FormationIdType") && t.uint32(24).int64(e.FormationIdType), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GetTargetAngel; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        case 2:
                            r.Zone = e.int64();
                            break;
                        case 3:
                            r.FormationIdType = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high)) ? "TargetUid: integer|Long expected" : null != e.Zone && e.hasOwnProperty("Zone") && !(i.isInteger(e.Zone) || e.Zone && i.isInteger(e.Zone.low) && i.isInteger(e.Zone.high)) ? "Zone: integer|Long expected" : null != e.FormationIdType && e.hasOwnProperty("FormationIdType") && !(i.isInteger(e.FormationIdType) || e.FormationIdType && i.isInteger(e.FormationIdType.low) && i.isInteger(e.FormationIdType.high)) ? "FormationIdType: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GetTargetAngel) return e;
                var t = new a.Req_Item_GetTargetAngel;
                return null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), null != e.Zone && (i.Long ? (t.Zone = i.Long.fromValue(e.Zone)).unsigned = !1 : "string" == typeof e.Zone ? t.Zone = parseInt(e.Zone, 10) : "number" == typeof e.Zone ? t.Zone = e.Zone : "object" == typeof e.Zone && (t.Zone = new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber())), null != e.FormationIdType && (i.Long ? (t.FormationIdType = i.Long.fromValue(e.FormationIdType)).unsigned = !1 : "string" == typeof e.FormationIdType ? t.FormationIdType = parseInt(e.FormationIdType, 10) : "number" == typeof e.FormationIdType ? t.FormationIdType = e.FormationIdType : "object" == typeof e.FormationIdType && (t.FormationIdType = new i.LongBits(e.FormationIdType.low >>> 0, e.FormationIdType.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Zone = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Zone = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.FormationIdType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.FormationIdType = t.longs === String ? "0" : 0
                }
                return null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), null != e.Zone && e.hasOwnProperty("Zone") && ("number" == typeof e.Zone ? n.Zone = t.longs === String ? String(e.Zone) : e.Zone : n.Zone = t.longs === String ? i.Long.prototype.toString.call(e.Zone) : t.longs === Number ? new i.LongBits(e.Zone.low >>> 0, e.Zone.high >>> 0).toNumber() : e.Zone), null != e.FormationIdType && e.hasOwnProperty("FormationIdType") && ("number" == typeof e.FormationIdType ? n.FormationIdType = t.longs === String ? String(e.FormationIdType) : e.FormationIdType : n.FormationIdType = t.longs === String ? i.Long.prototype.toString.call(e.FormationIdType) : t.longs === Number ? new i.LongBits(e.FormationIdType.low >>> 0, e.FormationIdType.high >>> 0).toNumber() : e.FormationIdType), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GetTargetAngel"
            }, e
        }(), a.Res_Item_GetTargetAngel = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Info = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Info && Object.hasOwnProperty.call(e, "Info") && a.AngelInfo.encode(e.Info, t.uint32(10).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Item_GetTargetAngel; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Info = a.AngelInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Info && e.hasOwnProperty("Info")) {
                    var t = a.AngelInfo.verify(e.Info);
                    if (t) return "Info." + t
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Item_GetTargetAngel) return e;
                var t = new a.Res_Item_GetTargetAngel;
                if (null != e.Info) {
                    if ("object" != typeof e.Info) throw TypeError(".Res_Item_GetTargetAngel.Info: object expected");
                    t.Info = a.AngelInfo.fromObject(e.Info)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Info = null), null != e.Info && e.hasOwnProperty("Info") && (n.Info = a.AngelInfo.toObject(e.Info, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Item_GetTargetAngel"
            }, e
        }(), a.Req_Item_GodSoulPutOn = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SlotId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(8).int64(e.OwnerId), null != e.SlotId && Object.hasOwnProperty.call(e, "SlotId") && t.uint32(16).int64(e.SlotId), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(24).int64(e.Sid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GodSoulPutOn; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.OwnerId = e.int64();
                            break;
                        case 2:
                            r.SlotId = e.int64();
                            break;
                        case 3:
                            r.Sid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null != e.SlotId && e.hasOwnProperty("SlotId") && !(i.isInteger(e.SlotId) || e.SlotId && i.isInteger(e.SlotId.low) && i.isInteger(e.SlotId.high)) ? "SlotId: integer|Long expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GodSoulPutOn) return e;
                var t = new a.Req_Item_GodSoulPutOn;
                return null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), null != e.SlotId && (i.Long ? (t.SlotId = i.Long.fromValue(e.SlotId)).unsigned = !1 : "string" == typeof e.SlotId ? t.SlotId = parseInt(e.SlotId, 10) : "number" == typeof e.SlotId ? t.SlotId = e.SlotId : "object" == typeof e.SlotId && (t.SlotId = new i.LongBits(e.SlotId.low >>> 0, e.SlotId.high >>> 0).toNumber())), null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.OwnerId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SlotId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SlotId = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Sid = t.longs === String ? "0" : 0
                }
                return null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), null != e.SlotId && e.hasOwnProperty("SlotId") && ("number" == typeof e.SlotId ? n.SlotId = t.longs === String ? String(e.SlotId) : e.SlotId : n.SlotId = t.longs === String ? i.Long.prototype.toString.call(e.SlotId) : t.longs === Number ? new i.LongBits(e.SlotId.low >>> 0, e.SlotId.high >>> 0).toNumber() : e.SlotId), null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GodSoulPutOn"
            }, e
        }(), a.Req_Item_GodSoulPutOff = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.OwnerId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SlotId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.OwnerId && Object.hasOwnProperty.call(e, "OwnerId") && t.uint32(8).int64(e.OwnerId), null != e.SlotId && Object.hasOwnProperty.call(e, "SlotId") && t.uint32(16).int64(e.SlotId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GodSoulPutOff; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.OwnerId = e.int64();
                            break;
                        case 2:
                            r.SlotId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.OwnerId && e.hasOwnProperty("OwnerId") && !(i.isInteger(e.OwnerId) || e.OwnerId && i.isInteger(e.OwnerId.low) && i.isInteger(e.OwnerId.high)) ? "OwnerId: integer|Long expected" : null != e.SlotId && e.hasOwnProperty("SlotId") && !(i.isInteger(e.SlotId) || e.SlotId && i.isInteger(e.SlotId.low) && i.isInteger(e.SlotId.high)) ? "SlotId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GodSoulPutOff) return e;
                var t = new a.Req_Item_GodSoulPutOff;
                return null != e.OwnerId && (i.Long ? (t.OwnerId = i.Long.fromValue(e.OwnerId)).unsigned = !1 : "string" == typeof e.OwnerId ? t.OwnerId = parseInt(e.OwnerId, 10) : "number" == typeof e.OwnerId ? t.OwnerId = e.OwnerId : "object" == typeof e.OwnerId && (t.OwnerId = new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber())), null != e.SlotId && (i.Long ? (t.SlotId = i.Long.fromValue(e.SlotId)).unsigned = !1 : "string" == typeof e.SlotId ? t.SlotId = parseInt(e.SlotId, 10) : "number" == typeof e.SlotId ? t.SlotId = e.SlotId : "object" == typeof e.SlotId && (t.SlotId = new i.LongBits(e.SlotId.low >>> 0, e.SlotId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.OwnerId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.OwnerId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SlotId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SlotId = t.longs === String ? "0" : 0
                }
                return null != e.OwnerId && e.hasOwnProperty("OwnerId") && ("number" == typeof e.OwnerId ? n.OwnerId = t.longs === String ? String(e.OwnerId) : e.OwnerId : n.OwnerId = t.longs === String ? i.Long.prototype.toString.call(e.OwnerId) : t.longs === Number ? new i.LongBits(e.OwnerId.low >>> 0, e.OwnerId.high >>> 0).toNumber() : e.OwnerId), null != e.SlotId && e.hasOwnProperty("SlotId") && ("number" == typeof e.SlotId ? n.SlotId = t.longs === String ? String(e.SlotId) : e.SlotId : n.SlotId = t.longs === String ? i.Long.prototype.toString.call(e.SlotId) : t.longs === Number ? new i.LongBits(e.SlotId.low >>> 0, e.SlotId.high >>> 0).toNumber() : e.SlotId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GodSoulPutOff"
            }, e
        }(), a.Req_Item_GodSoulCast = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.SelectId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.SelectId && Object.hasOwnProperty.call(e, "SelectId") && t.uint32(16).int64(e.SelectId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GodSoulCast; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.SelectId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.SelectId && e.hasOwnProperty("SelectId") && !(i.isInteger(e.SelectId) || e.SelectId && i.isInteger(e.SelectId.low) && i.isInteger(e.SelectId.high)) ? "SelectId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GodSoulCast) return e;
                var t = new a.Req_Item_GodSoulCast;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.SelectId && (i.Long ? (t.SelectId = i.Long.fromValue(e.SelectId)).unsigned = !1 : "string" == typeof e.SelectId ? t.SelectId = parseInt(e.SelectId, 10) : "number" == typeof e.SelectId ? t.SelectId = e.SelectId : "object" == typeof e.SelectId && (t.SelectId = new i.LongBits(e.SelectId.low >>> 0, e.SelectId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.SelectId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.SelectId = t.longs === String ? "0" : 0
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.SelectId && e.hasOwnProperty("SelectId") && ("number" == typeof e.SelectId ? n.SelectId = t.longs === String ? String(e.SelectId) : e.SelectId : n.SelectId = t.longs === String ? i.Long.prototype.toString.call(e.SelectId) : t.longs === Number ? new i.LongBits(e.SelectId.low >>> 0, e.SelectId.high >>> 0).toNumber() : e.SelectId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GodSoulCast"
            }, e
        }(), a.Req_Item_GodSoulCompose = function() {
            function e(e) {
                if (this.Materials = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Materials = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Materials && e.Materials.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Materials.length; ++n) t.int64(e.Materials[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GodSoulCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Materials && r.Materials.length || (r.Materials = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Materials.push(e.int64());
                            else r.Materials.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Materials && e.hasOwnProperty("Materials")) {
                    if (!Array.isArray(e.Materials)) return "Materials: array expected";
                    for (var t = 0; t < e.Materials.length; ++t)
                        if (!(i.isInteger(e.Materials[t]) || e.Materials[t] && i.isInteger(e.Materials[t].low) && i.isInteger(e.Materials[t].high))) return "Materials: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GodSoulCompose) return e;
                var t = new a.Req_Item_GodSoulCompose;
                if (e.Materials) {
                    if (!Array.isArray(e.Materials)) throw TypeError(".Req_Item_GodSoulCompose.Materials: array expected");
                    t.Materials = [];
                    for (var n = 0; n < e.Materials.length; ++n) i.Long ? (t.Materials[n] = i.Long.fromValue(e.Materials[n])).unsigned = !1 : "string" == typeof e.Materials[n] ? t.Materials[n] = parseInt(e.Materials[n], 10) : "number" == typeof e.Materials[n] ? t.Materials[n] = e.Materials[n] : "object" == typeof e.Materials[n] && (t.Materials[n] = new i.LongBits(e.Materials[n].low >>> 0, e.Materials[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Materials = []), e.Materials && e.Materials.length) {
                    n.Materials = [];
                    for (var o = 0; o < e.Materials.length; ++o) "number" == typeof e.Materials[o] ? n.Materials[o] = t.longs === String ? String(e.Materials[o]) : e.Materials[o] : n.Materials[o] = t.longs === String ? i.Long.prototype.toString.call(e.Materials[o]) : t.longs === Number ? new i.LongBits(e.Materials[o].low >>> 0, e.Materials[o].high >>> 0).toNumber() : e.Materials[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GodSoulCompose"
            }, e
        }(), a.Res_Item_GodSoulCompose = function() {
            function e(e) {
                if (this.Rewards = [], this.ExtraRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Success = !1, e.prototype.Rewards = i.emptyArray, e.prototype.ExtraRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Success && Object.hasOwnProperty.call(e, "Success") && t.uint32(8).bool(e.Success), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                if (null != e.ExtraRewards && e.ExtraRewards.length)
                    for (n = 0; n < e.ExtraRewards.length; ++n) a.UserItem_Model.encode(e.ExtraRewards[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Item_GodSoulCompose; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Success = e.bool();
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.ExtraRewards && r.ExtraRewards.length || (r.ExtraRewards = []), r.ExtraRewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Success && e.hasOwnProperty("Success") && "boolean" != typeof e.Success) return "Success: boolean expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.ExtraRewards && e.hasOwnProperty("ExtraRewards")) {
                    if (!Array.isArray(e.ExtraRewards)) return "ExtraRewards: array expected";
                    for (t = 0; t < e.ExtraRewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.ExtraRewards[t])) return "ExtraRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Item_GodSoulCompose) return e;
                var t = new a.Res_Item_GodSoulCompose;
                if (null != e.Success && (t.Success = Boolean(e.Success)), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Item_GodSoulCompose.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Item_GodSoulCompose.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (e.ExtraRewards) {
                    if (!Array.isArray(e.ExtraRewards)) throw TypeError(".Res_Item_GodSoulCompose.ExtraRewards: array expected");
                    for (t.ExtraRewards = [], n = 0; n < e.ExtraRewards.length; ++n) {
                        if ("object" != typeof e.ExtraRewards[n]) throw TypeError(".Res_Item_GodSoulCompose.ExtraRewards: object expected");
                        t.ExtraRewards[n] = a.UserItem_Model.fromObject(e.ExtraRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.ExtraRewards = []), t.defaults && (n.Success = !1), null != e.Success && e.hasOwnProperty("Success") && (n.Success = e.Success), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                if (e.ExtraRewards && e.ExtraRewards.length)
                    for (n.ExtraRewards = [], o = 0; o < e.ExtraRewards.length; ++o) n.ExtraRewards[o] = a.UserItem_Model.toObject(e.ExtraRewards[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Item_GodSoulCompose"
            }, e
        }(), a.Req_Item_GodSoulLock = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Sid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Locked = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Sid && Object.hasOwnProperty.call(e, "Sid") && t.uint32(8).int64(e.Sid), null != e.Locked && Object.hasOwnProperty.call(e, "Locked") && t.uint32(16).bool(e.Locked), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_GodSoulLock; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Sid = e.int64();
                            break;
                        case 2:
                            r.Locked = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Sid && e.hasOwnProperty("Sid") && !(i.isInteger(e.Sid) || e.Sid && i.isInteger(e.Sid.low) && i.isInteger(e.Sid.high)) ? "Sid: integer|Long expected" : null != e.Locked && e.hasOwnProperty("Locked") && "boolean" != typeof e.Locked ? "Locked: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_GodSoulLock) return e;
                var t = new a.Req_Item_GodSoulLock;
                return null != e.Sid && (i.Long ? (t.Sid = i.Long.fromValue(e.Sid)).unsigned = !1 : "string" == typeof e.Sid ? t.Sid = parseInt(e.Sid, 10) : "number" == typeof e.Sid ? t.Sid = e.Sid : "object" == typeof e.Sid && (t.Sid = new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber())), null != e.Locked && (t.Locked = Boolean(e.Locked)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Sid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Sid = t.longs === String ? "0" : 0;
                    n.Locked = !1
                }
                return null != e.Sid && e.hasOwnProperty("Sid") && ("number" == typeof e.Sid ? n.Sid = t.longs === String ? String(e.Sid) : e.Sid : n.Sid = t.longs === String ? i.Long.prototype.toString.call(e.Sid) : t.longs === Number ? new i.LongBits(e.Sid.low >>> 0, e.Sid.high >>> 0).toNumber() : e.Sid), null != e.Locked && e.hasOwnProperty("Locked") && (n.Locked = e.Locked), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_GodSoulLock"
            }, e
        }(), a.Req_Item_AngeleUpdateGuide = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngeleUpdateGuide; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngeleUpdateGuide) return e;
                var t = new a.Req_Item_AngeleUpdateGuide;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngeleUpdateGuide"
            }, e
        }(), a.Req_Item_UpStepHolyEquip = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(16).int64(e.Level), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_UpStepHolyEquip; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Level = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Level && e.hasOwnProperty("Level") && !(i.isInteger(e.Level) || e.Level && i.isInteger(e.Level.low) && i.isInteger(e.Level.high)) ? "Level: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_UpStepHolyEquip) return e;
                var t = new a.Req_Item_UpStepHolyEquip;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Level && (i.Long ? (t.Level = i.Long.fromValue(e.Level)).unsigned = !1 : "string" == typeof e.Level ? t.Level = parseInt(e.Level, 10) : "number" == typeof e.Level ? t.Level = e.Level : "object" == typeof e.Level && (t.Level = new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Level = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Level = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Level && e.hasOwnProperty("Level") && ("number" == typeof e.Level ? n.Level = t.longs === String ? String(e.Level) : e.Level : n.Level = t.longs === String ? i.Long.prototype.toString.call(e.Level) : t.longs === Number ? new i.LongBits(e.Level.low >>> 0, e.Level.high >>> 0).toNumber() : e.Level), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_UpStepHolyEquip"
            }, e
        }(), a.Req_Item_AngelHandBookUpdate = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelHandBookUpdate; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelHandBookUpdate) return e;
                var t = new a.Req_Item_AngelHandBookUpdate;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelHandBookUpdate"
            }, e
        }(), a.Req_Item_AngelHandbookDeposit = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Level = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Level && Object.hasOwnProperty.call(e, "Level") && t.uint32(16).int32(e.Level), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelHandbookDeposit; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Level = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Level && e.hasOwnProperty("Level") && !i.isInteger(e.Level) ? "Level: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelHandbookDeposit) return e;
                var t = new a.Req_Item_AngelHandbookDeposit;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Level && (t.Level = 0 | e.Level), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    n.Level = 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Level && e.hasOwnProperty("Level") && (n.Level = e.Level), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelHandbookDeposit"
            }, e
        }(), a.Req_Item_AngelHandbookWithdraw = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_AngelHandbookWithdraw; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_AngelHandbookWithdraw) return e;
                var t = new a.Req_Item_AngelHandbookWithdraw;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_AngelHandbookWithdraw"
            }, e
        }(), a.Req_Item_MagicCircleUpgradeLevel = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.NewLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.NewLevel && Object.hasOwnProperty.call(e, "NewLevel") && t.uint32(16).int64(e.NewLevel), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_MagicCircleUpgradeLevel; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.NewLevel = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.NewLevel && e.hasOwnProperty("NewLevel") && !(i.isInteger(e.NewLevel) || e.NewLevel && i.isInteger(e.NewLevel.low) && i.isInteger(e.NewLevel.high)) ? "NewLevel: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_MagicCircleUpgradeLevel) return e;
                var t = new a.Req_Item_MagicCircleUpgradeLevel;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.NewLevel && (i.Long ? (t.NewLevel = i.Long.fromValue(e.NewLevel)).unsigned = !1 : "string" == typeof e.NewLevel ? t.NewLevel = parseInt(e.NewLevel, 10) : "number" == typeof e.NewLevel ? t.NewLevel = e.NewLevel : "object" == typeof e.NewLevel && (t.NewLevel = new i.LongBits(e.NewLevel.low >>> 0, e.NewLevel.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.NewLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.NewLevel = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.NewLevel && e.hasOwnProperty("NewLevel") && ("number" == typeof e.NewLevel ? n.NewLevel = t.longs === String ? String(e.NewLevel) : e.NewLevel : n.NewLevel = t.longs === String ? i.Long.prototype.toString.call(e.NewLevel) : t.longs === Number ? new i.LongBits(e.NewLevel.low >>> 0, e.NewLevel.high >>> 0).toNumber() : e.NewLevel), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_MagicCircleUpgradeLevel"
            }, e
        }(), a.Req_Item_MagicCircleUpgradeStar = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_MagicCircleUpgradeStar; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_MagicCircleUpgradeStar) return e;
                var t = new a.Req_Item_MagicCircleUpgradeStar;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_MagicCircleUpgradeStar"
            }, e
        }(), a.Req_Item_MagicCircleUpgradeTalent = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TalentIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.TalentIndex && Object.hasOwnProperty.call(e, "TalentIndex") && t.uint32(16).int64(e.TalentIndex), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_MagicCircleUpgradeTalent; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.TalentIndex = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.TalentIndex && e.hasOwnProperty("TalentIndex") && !(i.isInteger(e.TalentIndex) || e.TalentIndex && i.isInteger(e.TalentIndex.low) && i.isInteger(e.TalentIndex.high)) ? "TalentIndex: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_MagicCircleUpgradeTalent) return e;
                var t = new a.Req_Item_MagicCircleUpgradeTalent;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.TalentIndex && (i.Long ? (t.TalentIndex = i.Long.fromValue(e.TalentIndex)).unsigned = !1 : "string" == typeof e.TalentIndex ? t.TalentIndex = parseInt(e.TalentIndex, 10) : "number" == typeof e.TalentIndex ? t.TalentIndex = e.TalentIndex : "object" == typeof e.TalentIndex && (t.TalentIndex = new i.LongBits(e.TalentIndex.low >>> 0, e.TalentIndex.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.TalentIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TalentIndex = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.TalentIndex && e.hasOwnProperty("TalentIndex") && ("number" == typeof e.TalentIndex ? n.TalentIndex = t.longs === String ? String(e.TalentIndex) : e.TalentIndex : n.TalentIndex = t.longs === String ? i.Long.prototype.toString.call(e.TalentIndex) : t.longs === Number ? new i.LongBits(e.TalentIndex.low >>> 0, e.TalentIndex.high >>> 0).toNumber() : e.TalentIndex), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_MagicCircleUpgradeTalent"
            }, e
        }(), a.Req_Item_MagicCircleChangeHeroId = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.HeroId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.HeroId && Object.hasOwnProperty.call(e, "HeroId") && t.uint32(16).int64(e.HeroId), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_MagicCircleChangeHeroId; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.HeroId = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.HeroId && e.hasOwnProperty("HeroId") && !(i.isInteger(e.HeroId) || e.HeroId && i.isInteger(e.HeroId.low) && i.isInteger(e.HeroId.high)) ? "HeroId: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_MagicCircleChangeHeroId) return e;
                var t = new a.Req_Item_MagicCircleChangeHeroId;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.HeroId && (i.Long ? (t.HeroId = i.Long.fromValue(e.HeroId)).unsigned = !1 : "string" == typeof e.HeroId ? t.HeroId = parseInt(e.HeroId, 10) : "number" == typeof e.HeroId ? t.HeroId = e.HeroId : "object" == typeof e.HeroId && (t.HeroId = new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.HeroId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.HeroId = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.HeroId && e.hasOwnProperty("HeroId") && ("number" == typeof e.HeroId ? n.HeroId = t.longs === String ? String(e.HeroId) : e.HeroId : n.HeroId = t.longs === String ? i.Long.prototype.toString.call(e.HeroId) : t.longs === Number ? new i.LongBits(e.HeroId.low >>> 0, e.HeroId.high >>> 0).toNumber() : e.HeroId), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_MagicCircleChangeHeroId"
            }, e
        }(), a.Req_Item_MagicCircleReset = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_MagicCircleReset; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_MagicCircleReset) return e;
                var t = new a.Req_Item_MagicCircleReset;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_MagicCircleReset"
            }, e
        }(), a.Req_Item_MagicCircleHandbookUpgrade = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Item_MagicCircleHandbookUpgrade; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Item_MagicCircleHandbookUpgrade) return e;
                var t = new a.Req_Item_MagicCircleHandbookUpgrade;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Item_MagicCircleHandbookUpgrade"
            }, e
        }(), a.Req_Hero_ActivePicSkin = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(16).int64(e.Id), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Hero_ActivePicSkin; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.Id = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Hero_ActivePicSkin) return e;
                var t = new a.Req_Hero_ActivePicSkin;
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Id = t.longs === String ? "0" : 0
                }
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Hero_ActivePicSkin"
            }, e
        }(), a.Req_Map_BattleSettlement = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MapType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.MapType && Object.hasOwnProperty.call(e, "MapType") && t.uint32(8).int64(e.MapType), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_BattleSettlement; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MapType = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.MapType && e.hasOwnProperty("MapType") && !(i.isInteger(e.MapType) || e.MapType && i.isInteger(e.MapType.low) && i.isInteger(e.MapType.high)) ? "MapType: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_BattleSettlement) return e;
                var t = new a.Req_Map_BattleSettlement;
                return null != e.MapType && (i.Long ? (t.MapType = i.Long.fromValue(e.MapType)).unsigned = !1 : "string" == typeof e.MapType ? t.MapType = parseInt(e.MapType, 10) : "number" == typeof e.MapType ? t.MapType = e.MapType : "object" == typeof e.MapType && (t.MapType = new i.LongBits(e.MapType.low >>> 0, e.MapType.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MapType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MapType = t.longs === String ? "0" : 0;
                return null != e.MapType && e.hasOwnProperty("MapType") && ("number" == typeof e.MapType ? n.MapType = t.longs === String ? String(e.MapType) : e.MapType : n.MapType = t.longs === String ? i.Long.prototype.toString.call(e.MapType) : t.longs === Number ? new i.LongBits(e.MapType.low >>> 0, e.MapType.high >>> 0).toNumber() : e.MapType), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_BattleSettlement"
            }, e
        }(), a.Res_Map_BattleSettlement = function() {
            function e(e) {
                if (this.Rewards = [], this.ExtraParam = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MapId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Result = 0, e.prototype.Rewards = i.emptyArray, e.prototype.PlayerLevel = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ExtraParam = i.emptyArray, e.prototype.StringParam = "", e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.MapId && Object.hasOwnProperty.call(e, "MapId") && t.uint32(8).int64(e.MapId), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(16).int32(e.Result), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.PlayerLevel && Object.hasOwnProperty.call(e, "PlayerLevel") && t.uint32(32).int64(e.PlayerLevel), null != e.ExtraParam && e.ExtraParam.length)
                    for (n = 0; n < e.ExtraParam.length; ++n) a.IntArray.encode(e.ExtraParam[n], t.uint32(42).fork()).ldelim();
                return null != e.StringParam && Object.hasOwnProperty.call(e, "StringParam") && t.uint32(50).string(e.StringParam), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_BattleSettlement; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MapId = e.int64();
                            break;
                        case 2:
                            r.Result = e.int32();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.PlayerLevel = e.int64();
                            break;
                        case 5:
                            r.ExtraParam && r.ExtraParam.length || (r.ExtraParam = []), r.ExtraParam.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.StringParam = e.string();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.MapId && e.hasOwnProperty("MapId") && !(i.isInteger(e.MapId) || e.MapId && i.isInteger(e.MapId.low) && i.isInteger(e.MapId.high))) return "MapId: integer|Long expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.PlayerLevel && e.hasOwnProperty("PlayerLevel") && !(i.isInteger(e.PlayerLevel) || e.PlayerLevel && i.isInteger(e.PlayerLevel.low) && i.isInteger(e.PlayerLevel.high))) return "PlayerLevel: integer|Long expected";
                if (null != e.ExtraParam && e.hasOwnProperty("ExtraParam")) {
                    if (!Array.isArray(e.ExtraParam)) return "ExtraParam: array expected";
                    for (t = 0; t < e.ExtraParam.length; ++t) {
                        var n;
                        if (n = a.IntArray.verify(e.ExtraParam[t])) return "ExtraParam." + n
                    }
                }
                return null != e.StringParam && e.hasOwnProperty("StringParam") && !i.isString(e.StringParam) ? "StringParam: string expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_BattleSettlement) return e;
                var t = new a.Res_Map_BattleSettlement;
                if (null != e.MapId && (i.Long ? (t.MapId = i.Long.fromValue(e.MapId)).unsigned = !1 : "string" == typeof e.MapId ? t.MapId = parseInt(e.MapId, 10) : "number" == typeof e.MapId ? t.MapId = e.MapId : "object" == typeof e.MapId && (t.MapId = new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber())), null != e.Result && (t.Result = 0 | e.Result), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Map_BattleSettlement.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Map_BattleSettlement.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (null != e.PlayerLevel && (i.Long ? (t.PlayerLevel = i.Long.fromValue(e.PlayerLevel)).unsigned = !1 : "string" == typeof e.PlayerLevel ? t.PlayerLevel = parseInt(e.PlayerLevel, 10) : "number" == typeof e.PlayerLevel ? t.PlayerLevel = e.PlayerLevel : "object" == typeof e.PlayerLevel && (t.PlayerLevel = new i.LongBits(e.PlayerLevel.low >>> 0, e.PlayerLevel.high >>> 0).toNumber())), e.ExtraParam) {
                    if (!Array.isArray(e.ExtraParam)) throw TypeError(".Res_Map_BattleSettlement.ExtraParam: array expected");
                    for (t.ExtraParam = [], n = 0; n < e.ExtraParam.length; ++n) {
                        if ("object" != typeof e.ExtraParam[n]) throw TypeError(".Res_Map_BattleSettlement.ExtraParam: object expected");
                        t.ExtraParam[n] = a.IntArray.fromObject(e.ExtraParam[n])
                    }
                }
                return null != e.StringParam && (t.StringParam = String(e.StringParam)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.ExtraParam = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MapId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MapId = t.longs === String ? "0" : 0;
                    n.Result = 0, i.Long ? (o = new i.Long(0, 0, !1), n.PlayerLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.PlayerLevel = t.longs === String ? "0" : 0, n.StringParam = ""
                }
                if (null != e.MapId && e.hasOwnProperty("MapId") && ("number" == typeof e.MapId ? n.MapId = t.longs === String ? String(e.MapId) : e.MapId : n.MapId = t.longs === String ? i.Long.prototype.toString.call(e.MapId) : t.longs === Number ? new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber() : e.MapId), null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.UserItem_Model.toObject(e.Rewards[r], t)
                }
                if (null != e.PlayerLevel && e.hasOwnProperty("PlayerLevel") && ("number" == typeof e.PlayerLevel ? n.PlayerLevel = t.longs === String ? String(e.PlayerLevel) : e.PlayerLevel : n.PlayerLevel = t.longs === String ? i.Long.prototype.toString.call(e.PlayerLevel) : t.longs === Number ? new i.LongBits(e.PlayerLevel.low >>> 0, e.PlayerLevel.high >>> 0).toNumber() : e.PlayerLevel), e.ExtraParam && e.ExtraParam.length)
                    for (n.ExtraParam = [], r = 0; r < e.ExtraParam.length; ++r) n.ExtraParam[r] = a.IntArray.toObject(e.ExtraParam[r], t);
                return null != e.StringParam && e.hasOwnProperty("StringParam") && (n.StringParam = e.StringParam), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_BattleSettlement"
            }, e
        }(), a.Req_Map_CancelChallenge = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MapType = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.MapType && Object.hasOwnProperty.call(e, "MapType") && t.uint32(8).int64(e.MapType), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_CancelChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MapType = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.MapType && e.hasOwnProperty("MapType") && !(i.isInteger(e.MapType) || e.MapType && i.isInteger(e.MapType.low) && i.isInteger(e.MapType.high)) ? "MapType: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_CancelChallenge) return e;
                var t = new a.Req_Map_CancelChallenge;
                return null != e.MapType && (i.Long ? (t.MapType = i.Long.fromValue(e.MapType)).unsigned = !1 : "string" == typeof e.MapType ? t.MapType = parseInt(e.MapType, 10) : "number" == typeof e.MapType ? t.MapType = e.MapType : "object" == typeof e.MapType && (t.MapType = new i.LongBits(e.MapType.low >>> 0, e.MapType.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MapType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MapType = t.longs === String ? "0" : 0;
                return null != e.MapType && e.hasOwnProperty("MapType") && ("number" == typeof e.MapType ? n.MapType = t.longs === String ? String(e.MapType) : e.MapType : n.MapType = t.longs === String ? i.Long.prototype.toString.call(e.MapType) : t.longs === Number ? new i.LongBits(e.MapType.low >>> 0, e.MapType.high >>> 0).toNumber() : e.MapType), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_CancelChallenge"
            }, e
        }(), a.Req_Map_DailyInstanceChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.MapId && Object.hasOwnProperty.call(e, "MapId") && t.uint32(16).int64(e.MapId), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_DailyInstanceChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.MapId = e.int64();
                            break;
                        case 3:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.MapId && e.hasOwnProperty("MapId") && !(i.isInteger(e.MapId) || e.MapId && i.isInteger(e.MapId.low) && i.isInteger(e.MapId.high))) return "MapId: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_DailyInstanceChallenge) return e;
                var t = new a.Req_Map_DailyInstanceChallenge;
                if (null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.MapId && (i.Long ? (t.MapId = i.Long.fromValue(e.MapId)).unsigned = !1 : "string" == typeof e.MapId ? t.MapId = parseInt(e.MapId, 10) : "number" == typeof e.MapId ? t.MapId = e.MapId : "object" == typeof e.MapId && (t.MapId = new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_DailyInstanceChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_DailyInstanceChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MapId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapId = t.longs === String ? "0" : 0
                }
                if (null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.MapId && e.hasOwnProperty("MapId") && ("number" == typeof e.MapId ? n.MapId = t.longs === String ? String(e.MapId) : e.MapId : n.MapId = t.longs === String ? i.Long.prototype.toString.call(e.MapId) : t.longs === Number ? new i.LongBits(e.MapId.low >>> 0, e.MapId.high >>> 0).toNumber() : e.MapId), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_DailyInstanceChallenge"
            }, e
        }(), a.Req_Map_DailyInstanceQuickBattle = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapId = 0, e.prototype.Count = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.MapId && Object.hasOwnProperty.call(e, "MapId") && t.uint32(16).int32(e.MapId), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(24).int32(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_DailyInstanceQuickBattle; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.MapId = e.int32();
                            break;
                        case 3:
                            r.Count = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.MapId && e.hasOwnProperty("MapId") && !i.isInteger(e.MapId) ? "MapId: integer expected" : null != e.Count && e.hasOwnProperty("Count") && !i.isInteger(e.Count) ? "Count: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_DailyInstanceQuickBattle) return e;
                var t = new a.Req_Map_DailyInstanceQuickBattle;
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.MapId && (t.MapId = 0 | e.MapId), null != e.Count && (t.Count = 0 | e.Count), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    n.MapId = 0, n.Count = 0
                }
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.MapId && e.hasOwnProperty("MapId") && (n.MapId = e.MapId), null != e.Count && e.hasOwnProperty("Count") && (n.Count = e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_DailyInstanceQuickBattle"
            }, e
        }(), a.Req_Map_ElementTowerSuppress = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.CountMax = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.CountMax && Object.hasOwnProperty.call(e, "CountMax") && t.uint32(16).int64(e.CountMax), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_ElementTowerSuppress; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.CountMax = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.CountMax && e.hasOwnProperty("CountMax") && !(i.isInteger(e.CountMax) || e.CountMax && i.isInteger(e.CountMax.low) && i.isInteger(e.CountMax.high)) ? "CountMax: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_ElementTowerSuppress) return e;
                var t = new a.Req_Map_ElementTowerSuppress;
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.CountMax && (i.Long ? (t.CountMax = i.Long.fromValue(e.CountMax)).unsigned = !1 : "string" == typeof e.CountMax ? t.CountMax = parseInt(e.CountMax, 10) : "number" == typeof e.CountMax ? t.CountMax = e.CountMax : "object" == typeof e.CountMax && (t.CountMax = new i.LongBits(e.CountMax.low >>> 0, e.CountMax.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.CountMax = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.CountMax = t.longs === String ? "0" : 0
                }
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.CountMax && e.hasOwnProperty("CountMax") && ("number" == typeof e.CountMax ? n.CountMax = t.longs === String ? String(e.CountMax) : e.CountMax : n.CountMax = t.longs === String ? i.Long.prototype.toString.call(e.CountMax) : t.longs === Number ? new i.LongBits(e.CountMax.low >>> 0, e.CountMax.high >>> 0).toNumber() : e.CountMax), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_ElementTowerSuppress"
            }, e
        }(), a.Res_Map_ElementTowerSuppress = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Suppress = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Suppress && Object.hasOwnProperty.call(e, "Suppress") && t.uint32(8).int64(e.Suppress), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_ElementTowerSuppress; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Suppress = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Suppress && e.hasOwnProperty("Suppress") && !(i.isInteger(e.Suppress) || e.Suppress && i.isInteger(e.Suppress.low) && i.isInteger(e.Suppress.high)) ? "Suppress: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_ElementTowerSuppress) return e;
                var t = new a.Res_Map_ElementTowerSuppress;
                return null != e.Suppress && (i.Long ? (t.Suppress = i.Long.fromValue(e.Suppress)).unsigned = !1 : "string" == typeof e.Suppress ? t.Suppress = parseInt(e.Suppress, 10) : "number" == typeof e.Suppress ? t.Suppress = e.Suppress : "object" == typeof e.Suppress && (t.Suppress = new i.LongBits(e.Suppress.low >>> 0, e.Suppress.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Suppress = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Suppress = t.longs === String ? "0" : 0;
                return null != e.Suppress && e.hasOwnProperty("Suppress") && ("number" == typeof e.Suppress ? n.Suppress = t.longs === String ? String(e.Suppress) : e.Suppress : n.Suppress = t.longs === String ? i.Long.prototype.toString.call(e.Suppress) : t.longs === Number ? new i.LongBits(e.Suppress.low >>> 0, e.Suppress.high >>> 0).toNumber() : e.Suppress), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_ElementTowerSuppress"
            }, e
        }(), a.Req_Map_TestTowerChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.MapIndex && Object.hasOwnProperty.call(e, "MapIndex") && t.uint32(16).int64(e.MapIndex), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_TestTowerChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.MapIndex = e.int64();
                            break;
                        case 3:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.MapIndex && e.hasOwnProperty("MapIndex") && !(i.isInteger(e.MapIndex) || e.MapIndex && i.isInteger(e.MapIndex.low) && i.isInteger(e.MapIndex.high))) return "MapIndex: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_TestTowerChallenge) return e;
                var t = new a.Req_Map_TestTowerChallenge;
                if (null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.MapIndex && (i.Long ? (t.MapIndex = i.Long.fromValue(e.MapIndex)).unsigned = !1 : "string" == typeof e.MapIndex ? t.MapIndex = parseInt(e.MapIndex, 10) : "number" == typeof e.MapIndex ? t.MapIndex = e.MapIndex : "object" == typeof e.MapIndex && (t.MapIndex = new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_TestTowerChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_TestTowerChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MapIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapIndex = t.longs === String ? "0" : 0
                }
                if (null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.MapIndex && e.hasOwnProperty("MapIndex") && ("number" == typeof e.MapIndex ? n.MapIndex = t.longs === String ? String(e.MapIndex) : e.MapIndex : n.MapIndex = t.longs === String ? i.Long.prototype.toString.call(e.MapIndex) : t.longs === Number ? new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber() : e.MapIndex), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_TestTowerChallenge"
            }, e
        }(), a.Req_Map_TestTowerQuickBattle = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MapIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.EndMapIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.MapIndex && Object.hasOwnProperty.call(e, "MapIndex") && t.uint32(8).int64(e.MapIndex), null != e.EndMapIndex && Object.hasOwnProperty.call(e, "EndMapIndex") && t.uint32(16).int64(e.EndMapIndex), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(24).int32(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_TestTowerQuickBattle; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MapIndex = e.int64();
                            break;
                        case 2:
                            r.EndMapIndex = e.int64();
                            break;
                        case 3:
                            r.Type = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.MapIndex && e.hasOwnProperty("MapIndex") && !(i.isInteger(e.MapIndex) || e.MapIndex && i.isInteger(e.MapIndex.low) && i.isInteger(e.MapIndex.high)) ? "MapIndex: integer|Long expected" : null != e.EndMapIndex && e.hasOwnProperty("EndMapIndex") && !(i.isInteger(e.EndMapIndex) || e.EndMapIndex && i.isInteger(e.EndMapIndex.low) && i.isInteger(e.EndMapIndex.high)) ? "EndMapIndex: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_TestTowerQuickBattle) return e;
                var t = new a.Req_Map_TestTowerQuickBattle;
                return null != e.MapIndex && (i.Long ? (t.MapIndex = i.Long.fromValue(e.MapIndex)).unsigned = !1 : "string" == typeof e.MapIndex ? t.MapIndex = parseInt(e.MapIndex, 10) : "number" == typeof e.MapIndex ? t.MapIndex = e.MapIndex : "object" == typeof e.MapIndex && (t.MapIndex = new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber())), null != e.EndMapIndex && (i.Long ? (t.EndMapIndex = i.Long.fromValue(e.EndMapIndex)).unsigned = !1 : "string" == typeof e.EndMapIndex ? t.EndMapIndex = parseInt(e.EndMapIndex, 10) : "number" == typeof e.EndMapIndex ? t.EndMapIndex = e.EndMapIndex : "object" == typeof e.EndMapIndex && (t.EndMapIndex = new i.LongBits(e.EndMapIndex.low >>> 0, e.EndMapIndex.high >>> 0).toNumber())), null != e.Type && (t.Type = 0 | e.Type), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MapIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MapIndex = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.EndMapIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.EndMapIndex = t.longs === String ? "0" : 0, n.Type = 0
                }
                return null != e.MapIndex && e.hasOwnProperty("MapIndex") && ("number" == typeof e.MapIndex ? n.MapIndex = t.longs === String ? String(e.MapIndex) : e.MapIndex : n.MapIndex = t.longs === String ? i.Long.prototype.toString.call(e.MapIndex) : t.longs === Number ? new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber() : e.MapIndex), null != e.EndMapIndex && e.hasOwnProperty("EndMapIndex") && ("number" == typeof e.EndMapIndex ? n.EndMapIndex = t.longs === String ? String(e.EndMapIndex) : e.EndMapIndex : n.EndMapIndex = t.longs === String ? i.Long.prototype.toString.call(e.EndMapIndex) : t.longs === Number ? new i.LongBits(e.EndMapIndex.low >>> 0, e.EndMapIndex.high >>> 0).toNumber() : e.EndMapIndex), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_TestTowerQuickBattle"
            }, e
        }(), a.Req_Map_TestTowerDialyReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MapIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Type = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.MapIndex && Object.hasOwnProperty.call(e, "MapIndex") && t.uint32(8).int64(e.MapIndex), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int32(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_TestTowerDialyReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MapIndex = e.int64();
                            break;
                        case 2:
                            r.Type = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.MapIndex && e.hasOwnProperty("MapIndex") && !(i.isInteger(e.MapIndex) || e.MapIndex && i.isInteger(e.MapIndex.low) && i.isInteger(e.MapIndex.high)) ? "MapIndex: integer|Long expected" : null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type) ? "Type: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_TestTowerDialyReward) return e;
                var t = new a.Req_Map_TestTowerDialyReward;
                return null != e.MapIndex && (i.Long ? (t.MapIndex = i.Long.fromValue(e.MapIndex)).unsigned = !1 : "string" == typeof e.MapIndex ? t.MapIndex = parseInt(e.MapIndex, 10) : "number" == typeof e.MapIndex ? t.MapIndex = e.MapIndex : "object" == typeof e.MapIndex && (t.MapIndex = new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber())), null != e.Type && (t.Type = 0 | e.Type), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MapIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MapIndex = t.longs === String ? "0" : 0;
                    n.Type = 0
                }
                return null != e.MapIndex && e.hasOwnProperty("MapIndex") && ("number" == typeof e.MapIndex ? n.MapIndex = t.longs === String ? String(e.MapIndex) : e.MapIndex : n.MapIndex = t.longs === String ? i.Long.prototype.toString.call(e.MapIndex) : t.longs === Number ? new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber() : e.MapIndex), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_TestTowerDialyReward"
            }, e
        }(), a.Req_Map_TestTowerExtraReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.MapIndex && Object.hasOwnProperty.call(e, "MapIndex") && t.uint32(16).int64(e.MapIndex), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_TestTowerExtraReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.MapIndex = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null != e.MapIndex && e.hasOwnProperty("MapIndex") && !(i.isInteger(e.MapIndex) || e.MapIndex && i.isInteger(e.MapIndex.low) && i.isInteger(e.MapIndex.high)) ? "MapIndex: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_TestTowerExtraReward) return e;
                var t = new a.Req_Map_TestTowerExtraReward;
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.MapIndex && (i.Long ? (t.MapIndex = i.Long.fromValue(e.MapIndex)).unsigned = !1 : "string" == typeof e.MapIndex ? t.MapIndex = parseInt(e.MapIndex, 10) : "number" == typeof e.MapIndex ? t.MapIndex = e.MapIndex : "object" == typeof e.MapIndex && (t.MapIndex = new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MapIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapIndex = t.longs === String ? "0" : 0
                }
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.MapIndex && e.hasOwnProperty("MapIndex") && ("number" == typeof e.MapIndex ? n.MapIndex = t.longs === String ? String(e.MapIndex) : e.MapIndex : n.MapIndex = t.longs === String ? i.Long.prototype.toString.call(e.MapIndex) : t.longs === Number ? new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber() : e.MapIndex), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_TestTowerExtraReward"
            }, e
        }(), a.Req_Map_TestTowerHardChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.MapIndex && Object.hasOwnProperty.call(e, "MapIndex") && t.uint32(16).int64(e.MapIndex), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_TestTowerHardChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.MapIndex = e.int64();
                            break;
                        case 3:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.MapIndex && e.hasOwnProperty("MapIndex") && !(i.isInteger(e.MapIndex) || e.MapIndex && i.isInteger(e.MapIndex.low) && i.isInteger(e.MapIndex.high))) return "MapIndex: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_TestTowerHardChallenge) return e;
                var t = new a.Req_Map_TestTowerHardChallenge;
                if (null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.MapIndex && (i.Long ? (t.MapIndex = i.Long.fromValue(e.MapIndex)).unsigned = !1 : "string" == typeof e.MapIndex ? t.MapIndex = parseInt(e.MapIndex, 10) : "number" == typeof e.MapIndex ? t.MapIndex = e.MapIndex : "object" == typeof e.MapIndex && (t.MapIndex = new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_TestTowerHardChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_TestTowerHardChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MapIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapIndex = t.longs === String ? "0" : 0
                }
                if (null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.MapIndex && e.hasOwnProperty("MapIndex") && ("number" == typeof e.MapIndex ? n.MapIndex = t.longs === String ? String(e.MapIndex) : e.MapIndex : n.MapIndex = t.longs === String ? i.Long.prototype.toString.call(e.MapIndex) : t.longs === Number ? new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber() : e.MapIndex), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_TestTowerHardChallenge"
            }, e
        }(), a.Req_Map_EndlessAbyssPointReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_EndlessAbyssPointReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high)) ? "Type: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_EndlessAbyssPointReward) return e;
                var t = new a.Req_Map_EndlessAbyssPointReward;
                return null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                return null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_EndlessAbyssPointReward"
            }, e
        }(), a.Req_Map_EndlessAbyssChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Type = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MapIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.prototype.ChallengeType = 0, e.prototype.BuffIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(8).int64(e.Type), null != e.MapIndex && Object.hasOwnProperty.call(e, "MapIndex") && t.uint32(16).int64(e.MapIndex), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(26).fork()).ldelim();
                return null != e.ChallengeType && Object.hasOwnProperty.call(e, "ChallengeType") && t.uint32(32).int32(e.ChallengeType), null != e.BuffIndex && Object.hasOwnProperty.call(e, "BuffIndex") && t.uint32(40).int64(e.BuffIndex), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_EndlessAbyssChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Type = e.int64();
                            break;
                        case 2:
                            r.MapIndex = e.int64();
                            break;
                        case 3:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.ChallengeType = e.int32();
                            break;
                        case 5:
                            r.BuffIndex = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !(i.isInteger(e.Type) || e.Type && i.isInteger(e.Type.low) && i.isInteger(e.Type.high))) return "Type: integer|Long expected";
                if (null != e.MapIndex && e.hasOwnProperty("MapIndex") && !(i.isInteger(e.MapIndex) || e.MapIndex && i.isInteger(e.MapIndex.low) && i.isInteger(e.MapIndex.high))) return "MapIndex: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null != e.ChallengeType && e.hasOwnProperty("ChallengeType") && !i.isInteger(e.ChallengeType) ? "ChallengeType: integer expected" : null != e.BuffIndex && e.hasOwnProperty("BuffIndex") && !(i.isInteger(e.BuffIndex) || e.BuffIndex && i.isInteger(e.BuffIndex.low) && i.isInteger(e.BuffIndex.high)) ? "BuffIndex: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_EndlessAbyssChallenge) return e;
                var t = new a.Req_Map_EndlessAbyssChallenge;
                if (null != e.Type && (i.Long ? (t.Type = i.Long.fromValue(e.Type)).unsigned = !1 : "string" == typeof e.Type ? t.Type = parseInt(e.Type, 10) : "number" == typeof e.Type ? t.Type = e.Type : "object" == typeof e.Type && (t.Type = new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber())), null != e.MapIndex && (i.Long ? (t.MapIndex = i.Long.fromValue(e.MapIndex)).unsigned = !1 : "string" == typeof e.MapIndex ? t.MapIndex = parseInt(e.MapIndex, 10) : "number" == typeof e.MapIndex ? t.MapIndex = e.MapIndex : "object" == typeof e.MapIndex && (t.MapIndex = new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_EndlessAbyssChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_EndlessAbyssChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return null != e.ChallengeType && (t.ChallengeType = 0 | e.ChallengeType), null != e.BuffIndex && (i.Long ? (t.BuffIndex = i.Long.fromValue(e.BuffIndex)).unsigned = !1 : "string" == typeof e.BuffIndex ? t.BuffIndex = parseInt(e.BuffIndex, 10) : "number" == typeof e.BuffIndex ? t.BuffIndex = e.BuffIndex : "object" == typeof e.BuffIndex && (t.BuffIndex = new i.LongBits(e.BuffIndex.low >>> 0, e.BuffIndex.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Type = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Type = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MapIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MapIndex = t.longs === String ? "0" : 0, n.ChallengeType = 0, i.Long ? (o = new i.Long(0, 0, !1), n.BuffIndex = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.BuffIndex = t.longs === String ? "0" : 0
                }
                if (null != e.Type && e.hasOwnProperty("Type") && ("number" == typeof e.Type ? n.Type = t.longs === String ? String(e.Type) : e.Type : n.Type = t.longs === String ? i.Long.prototype.toString.call(e.Type) : t.longs === Number ? new i.LongBits(e.Type.low >>> 0, e.Type.high >>> 0).toNumber() : e.Type), null != e.MapIndex && e.hasOwnProperty("MapIndex") && ("number" == typeof e.MapIndex ? n.MapIndex = t.longs === String ? String(e.MapIndex) : e.MapIndex : n.MapIndex = t.longs === String ? i.Long.prototype.toString.call(e.MapIndex) : t.longs === Number ? new i.LongBits(e.MapIndex.low >>> 0, e.MapIndex.high >>> 0).toNumber() : e.MapIndex), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return null != e.ChallengeType && e.hasOwnProperty("ChallengeType") && (n.ChallengeType = e.ChallengeType), null != e.BuffIndex && e.hasOwnProperty("BuffIndex") && ("number" == typeof e.BuffIndex ? n.BuffIndex = t.longs === String ? String(e.BuffIndex) : e.BuffIndex : n.BuffIndex = t.longs === String ? i.Long.prototype.toString.call(e.BuffIndex) : t.longs === Number ? new i.LongBits(e.BuffIndex.low >>> 0, e.BuffIndex.high >>> 0).toNumber() : e.BuffIndex), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_EndlessAbyssChallenge"
            }, e
        }(), a.Res_Map_EndlessAbyssChallenge = function() {
            function e(e) {
                if (this.OptionalBuffIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = 0, e.prototype.OptionalBuffIds = i.emptyArray, e.prototype.Report = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int32(e.Result), null != e.OptionalBuffIds && e.OptionalBuffIds.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.OptionalBuffIds.length; ++n) t.int64(e.OptionalBuffIds[n]);
                    t.ldelim()
                }
                return null != e.Report && Object.hasOwnProperty.call(e, "Report") && a.BattleReport.encode(e.Report, t.uint32(26).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_EndlessAbyssChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int32();
                            break;
                        case 2:
                            if (r.OptionalBuffIds && r.OptionalBuffIds.length || (r.OptionalBuffIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.OptionalBuffIds.push(e.int64());
                            else r.OptionalBuffIds.push(e.int64());
                            break;
                        case 3:
                            r.Report = a.BattleReport.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.OptionalBuffIds && e.hasOwnProperty("OptionalBuffIds")) {
                    if (!Array.isArray(e.OptionalBuffIds)) return "OptionalBuffIds: array expected";
                    for (var t = 0; t < e.OptionalBuffIds.length; ++t)
                        if (!(i.isInteger(e.OptionalBuffIds[t]) || e.OptionalBuffIds[t] && i.isInteger(e.OptionalBuffIds[t].low) && i.isInteger(e.OptionalBuffIds[t].high))) return "OptionalBuffIds: integer|Long[] expected"
                }
                if (null != e.Report && e.hasOwnProperty("Report")) {
                    var n = a.BattleReport.verify(e.Report);
                    if (n) return "Report." + n
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_EndlessAbyssChallenge) return e;
                var t = new a.Res_Map_EndlessAbyssChallenge;
                if (null != e.Result && (t.Result = 0 | e.Result), e.OptionalBuffIds) {
                    if (!Array.isArray(e.OptionalBuffIds)) throw TypeError(".Res_Map_EndlessAbyssChallenge.OptionalBuffIds: array expected");
                    t.OptionalBuffIds = [];
                    for (var n = 0; n < e.OptionalBuffIds.length; ++n) i.Long ? (t.OptionalBuffIds[n] = i.Long.fromValue(e.OptionalBuffIds[n])).unsigned = !1 : "string" == typeof e.OptionalBuffIds[n] ? t.OptionalBuffIds[n] = parseInt(e.OptionalBuffIds[n], 10) : "number" == typeof e.OptionalBuffIds[n] ? t.OptionalBuffIds[n] = e.OptionalBuffIds[n] : "object" == typeof e.OptionalBuffIds[n] && (t.OptionalBuffIds[n] = new i.LongBits(e.OptionalBuffIds[n].low >>> 0, e.OptionalBuffIds[n].high >>> 0).toNumber())
                }
                if (null != e.Report) {
                    if ("object" != typeof e.Report) throw TypeError(".Res_Map_EndlessAbyssChallenge.Report: object expected");
                    t.Report = a.BattleReport.fromObject(e.Report)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.OptionalBuffIds = []), t.defaults && (n.Result = 0, n.Report = null), null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), e.OptionalBuffIds && e.OptionalBuffIds.length) {
                    n.OptionalBuffIds = [];
                    for (var o = 0; o < e.OptionalBuffIds.length; ++o) "number" == typeof e.OptionalBuffIds[o] ? n.OptionalBuffIds[o] = t.longs === String ? String(e.OptionalBuffIds[o]) : e.OptionalBuffIds[o] : n.OptionalBuffIds[o] = t.longs === String ? i.Long.prototype.toString.call(e.OptionalBuffIds[o]) : t.longs === Number ? new i.LongBits(e.OptionalBuffIds[o].low >>> 0, e.OptionalBuffIds[o].high >>> 0).toNumber() : e.OptionalBuffIds[o]
                }
                return null != e.Report && e.hasOwnProperty("Report") && (n.Report = a.BattleReport.toObject(e.Report, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_EndlessAbyssChallenge"
            }, e
        }(), a.Req_Map_AdventureChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MapLevelId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.MapLevelId && Object.hasOwnProperty.call(e, "MapLevelId") && t.uint32(8).int64(e.MapLevelId), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_AdventureChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MapLevelId = e.int64();
                            break;
                        case 2:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.MapLevelId && e.hasOwnProperty("MapLevelId") && !(i.isInteger(e.MapLevelId) || e.MapLevelId && i.isInteger(e.MapLevelId.low) && i.isInteger(e.MapLevelId.high))) return "MapLevelId: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_AdventureChallenge) return e;
                var t = new a.Req_Map_AdventureChallenge;
                if (null != e.MapLevelId && (i.Long ? (t.MapLevelId = i.Long.fromValue(e.MapLevelId)).unsigned = !1 : "string" == typeof e.MapLevelId ? t.MapLevelId = parseInt(e.MapLevelId, 10) : "number" == typeof e.MapLevelId ? t.MapLevelId = e.MapLevelId : "object" == typeof e.MapLevelId && (t.MapLevelId = new i.LongBits(e.MapLevelId.low >>> 0, e.MapLevelId.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_AdventureChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_AdventureChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MapLevelId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MapLevelId = t.longs === String ? "0" : 0;
                if (null != e.MapLevelId && e.hasOwnProperty("MapLevelId") && ("number" == typeof e.MapLevelId ? n.MapLevelId = t.longs === String ? String(e.MapLevelId) : e.MapLevelId : n.MapLevelId = t.longs === String ? i.Long.prototype.toString.call(e.MapLevelId) : t.longs === Number ? new i.LongBits(e.MapLevelId.low >>> 0, e.MapLevelId.high >>> 0).toNumber() : e.MapLevelId), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_AdventureChallenge"
            }, e
        }(), a.Req_Map_AdventureGetHangUpReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_AdventureGetHangUpReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_AdventureGetHangUpReward) return e;
                var t = new a.Req_Map_AdventureGetHangUpReward;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_AdventureGetHangUpReward"
            }, e
        }(), a.Res_Map_AdventureHangUpReward = function() {
            function e(e) {
                if (this.Rewards = [], this.ActivityRewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Rewards = i.emptyArray, e.prototype.ActivityRewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(10).fork()).ldelim();
                if (null != e.ActivityRewards && e.ActivityRewards.length)
                    for (n = 0; n < e.ActivityRewards.length; ++n) a.UserItem_Model.encode(e.ActivityRewards[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_AdventureHangUpReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.ActivityRewards && r.ActivityRewards.length || (r.ActivityRewards = []), r.ActivityRewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.ActivityRewards && e.hasOwnProperty("ActivityRewards")) {
                    if (!Array.isArray(e.ActivityRewards)) return "ActivityRewards: array expected";
                    for (t = 0; t < e.ActivityRewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.ActivityRewards[t])) return "ActivityRewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_AdventureHangUpReward) return e;
                var t = new a.Res_Map_AdventureHangUpReward;
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Map_AdventureHangUpReward.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Map_AdventureHangUpReward.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (e.ActivityRewards) {
                    if (!Array.isArray(e.ActivityRewards)) throw TypeError(".Res_Map_AdventureHangUpReward.ActivityRewards: array expected");
                    for (t.ActivityRewards = [], n = 0; n < e.ActivityRewards.length; ++n) {
                        if ("object" != typeof e.ActivityRewards[n]) throw TypeError(".Res_Map_AdventureHangUpReward.ActivityRewards: object expected");
                        t.ActivityRewards[n] = a.UserItem_Model.fromObject(e.ActivityRewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.ActivityRewards = []), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                if (e.ActivityRewards && e.ActivityRewards.length)
                    for (n.ActivityRewards = [], o = 0; o < e.ActivityRewards.length; ++o) n.ActivityRewards[o] = a.UserItem_Model.toObject(e.ActivityRewards[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_AdventureHangUpReward"
            }, e
        }(), a.Req_Map_AdventureReceiveHangUpReward = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_AdventureReceiveHangUpReward; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_AdventureReceiveHangUpReward) return e;
                var t = new a.Req_Map_AdventureReceiveHangUpReward;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_AdventureReceiveHangUpReward"
            }, e
        }(), a.Req_Map_AdventureQuickBattle = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_AdventureQuickBattle; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_AdventureQuickBattle) return e;
                var t = new a.Req_Map_AdventureQuickBattle;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_AdventureQuickBattle"
            }, e
        }(), a.Req_Adventure_ReceiveRewards = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Adventure_ReceiveRewards; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Adventure_ReceiveRewards) return e;
                var t = new a.Req_Adventure_ReceiveRewards;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Adventure_ReceiveRewards"
            }, e
        }(), a.Req_Map_RefreshArenaInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_RefreshArenaInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_RefreshArenaInfo) return e;
                var t = new a.Req_Map_RefreshArenaInfo;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_RefreshArenaInfo"
            }, e
        }(), a.Res_Map_RefreshArenaInfo = function() {
            function e(e) {
                if (this.Targets = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Targets = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(8).int64(e.MyScore), null != e.MyRank && Object.hasOwnProperty.call(e, "MyRank") && t.uint32(16).int64(e.MyRank), null != e.Targets && e.Targets.length)
                    for (var n = 0; n < e.Targets.length; ++n) a.PlayerSimpleInfo.encode(e.Targets[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_RefreshArenaInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MyScore = e.int64();
                            break;
                        case 2:
                            r.MyRank = e.int64();
                            break;
                        case 3:
                            r.Targets && r.Targets.length || (r.Targets = []), r.Targets.push(a.PlayerSimpleInfo.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high))) return "MyScore: integer|Long expected";
                if (null != e.MyRank && e.hasOwnProperty("MyRank") && !(i.isInteger(e.MyRank) || e.MyRank && i.isInteger(e.MyRank.low) && i.isInteger(e.MyRank.high))) return "MyRank: integer|Long expected";
                if (null != e.Targets && e.hasOwnProperty("Targets")) {
                    if (!Array.isArray(e.Targets)) return "Targets: array expected";
                    for (var t = 0; t < e.Targets.length; ++t) {
                        var n = a.PlayerSimpleInfo.verify(e.Targets[t]);
                        if (n) return "Targets." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_RefreshArenaInfo) return e;
                var t = new a.Res_Map_RefreshArenaInfo;
                if (null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), null != e.MyRank && (i.Long ? (t.MyRank = i.Long.fromValue(e.MyRank)).unsigned = !1 : "string" == typeof e.MyRank ? t.MyRank = parseInt(e.MyRank, 10) : "number" == typeof e.MyRank ? t.MyRank = e.MyRank : "object" == typeof e.MyRank && (t.MyRank = new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber())), e.Targets) {
                    if (!Array.isArray(e.Targets)) throw TypeError(".Res_Map_RefreshArenaInfo.Targets: array expected");
                    t.Targets = [];
                    for (var n = 0; n < e.Targets.length; ++n) {
                        if ("object" != typeof e.Targets[n]) throw TypeError(".Res_Map_RefreshArenaInfo.Targets: object expected");
                        t.Targets[n] = a.PlayerSimpleInfo.fromObject(e.Targets[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Targets = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MyScore = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyRank = t.longs === String ? "0" : 0
                }
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), null != e.MyRank && e.hasOwnProperty("MyRank") && ("number" == typeof e.MyRank ? n.MyRank = t.longs === String ? String(e.MyRank) : e.MyRank : n.MyRank = t.longs === String ? i.Long.prototype.toString.call(e.MyRank) : t.longs === Number ? new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber() : e.MyRank), e.Targets && e.Targets.length) {
                    n.Targets = [];
                    for (var r = 0; r < e.Targets.length; ++r) n.Targets[r] = a.PlayerSimpleInfo.toObject(e.Targets[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_RefreshArenaInfo"
            }, e
        }(), a.Req_Map_GetArenaTargetDetail = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Uid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Uid && Object.hasOwnProperty.call(e, "Uid") && t.uint32(8).int64(e.Uid), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_GetArenaTargetDetail; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Uid = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Uid && e.hasOwnProperty("Uid") && !(i.isInteger(e.Uid) || e.Uid && i.isInteger(e.Uid.low) && i.isInteger(e.Uid.high)) ? "Uid: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_GetArenaTargetDetail) return e;
                var t = new a.Req_Map_GetArenaTargetDetail;
                return null != e.Uid && (i.Long ? (t.Uid = i.Long.fromValue(e.Uid)).unsigned = !1 : "string" == typeof e.Uid ? t.Uid = parseInt(e.Uid, 10) : "number" == typeof e.Uid ? t.Uid = e.Uid : "object" == typeof e.Uid && (t.Uid = new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Uid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Uid = t.longs === String ? "0" : 0;
                return null != e.Uid && e.hasOwnProperty("Uid") && ("number" == typeof e.Uid ? n.Uid = t.longs === String ? String(e.Uid) : e.Uid : n.Uid = t.longs === String ? i.Long.prototype.toString.call(e.Uid) : t.longs === Number ? new i.LongBits(e.Uid.low >>> 0, e.Uid.high >>> 0).toNumber() : e.Uid), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_GetArenaTargetDetail"
            }, e
        }(), a.Res_Map_GetArenaTargetDetail = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Info = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Info && Object.hasOwnProperty.call(e, "Info") && a.PlayerDetailInfo.encode(e.Info, t.uint32(10).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_GetArenaTargetDetail; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Info = a.PlayerDetailInfo.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Info && e.hasOwnProperty("Info")) {
                    var t = a.PlayerDetailInfo.verify(e.Info);
                    if (t) return "Info." + t
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_GetArenaTargetDetail) return e;
                var t = new a.Res_Map_GetArenaTargetDetail;
                if (null != e.Info) {
                    if ("object" != typeof e.Info) throw TypeError(".Res_Map_GetArenaTargetDetail.Info: object expected");
                    t.Info = a.PlayerDetailInfo.fromObject(e.Info)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Info = null), null != e.Info && e.hasOwnProperty("Info") && (n.Info = a.PlayerDetailInfo.toObject(e.Info, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_GetArenaTargetDetail"
            }, e
        }(), a.Req_Map_ArenaChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.prototype.SkipPlay = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(18).fork()).ldelim();
                return null != e.SkipPlay && Object.hasOwnProperty.call(e, "SkipPlay") && t.uint32(24).bool(e.SkipPlay), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_ArenaChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        case 2:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.SkipPlay = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high))) return "TargetUid: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null != e.SkipPlay && e.hasOwnProperty("SkipPlay") && "boolean" != typeof e.SkipPlay ? "SkipPlay: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_ArenaChallenge) return e;
                var t = new a.Req_Map_ArenaChallenge;
                if (null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_ArenaChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_ArenaChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return null != e.SkipPlay && (t.SkipPlay = Boolean(e.SkipPlay)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                    n.SkipPlay = !1
                }
                if (null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return null != e.SkipPlay && e.hasOwnProperty("SkipPlay") && (n.SkipPlay = e.SkipPlay), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_ArenaChallenge"
            }, e
        }(), a.Res_Map_ArenaChallenge = function() {
            function e(e) {
                if (this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = 0, e.prototype.Report = null, e.prototype.TargetInfo = null, e.prototype.TargetScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int32(e.Result), null != e.Report && Object.hasOwnProperty.call(e, "Report") && a.BattleReport.encode(e.Report, t.uint32(18).fork()).ldelim(), null != e.TargetInfo && Object.hasOwnProperty.call(e, "TargetInfo") && a.PlayerSimpleInfo.encode(e.TargetInfo, t.uint32(26).fork()).ldelim(), null != e.TargetScoreChange && Object.hasOwnProperty.call(e, "TargetScoreChange") && t.uint32(32).int64(e.TargetScoreChange), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(40).int64(e.MyScore), null != e.MyScoreChange && Object.hasOwnProperty.call(e, "MyScoreChange") && t.uint32(48).int64(e.MyScoreChange), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_ArenaChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int32();
                            break;
                        case 2:
                            r.Report = a.BattleReport.decode(e, e.uint32());
                            break;
                        case 3:
                            r.TargetInfo = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        case 4:
                            r.TargetScoreChange = e.int64();
                            break;
                        case 5:
                            r.MyScore = e.int64();
                            break;
                        case 6:
                            r.MyScoreChange = e.int64();
                            break;
                        case 7:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.Report && e.hasOwnProperty("Report") && (n = a.BattleReport.verify(e.Report))) return "Report." + n;
                if (null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n = a.PlayerSimpleInfo.verify(e.TargetInfo))) return "TargetInfo." + n;
                if (null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && !(i.isInteger(e.TargetScoreChange) || e.TargetScoreChange && i.isInteger(e.TargetScoreChange.low) && i.isInteger(e.TargetScoreChange.high))) return "TargetScoreChange: integer|Long expected";
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high))) return "MyScore: integer|Long expected";
                if (null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && !(i.isInteger(e.MyScoreChange) || e.MyScoreChange && i.isInteger(e.MyScoreChange.low) && i.isInteger(e.MyScoreChange.high))) return "MyScoreChange: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_ArenaChallenge) return e;
                var t = new a.Res_Map_ArenaChallenge;
                if (null != e.Result && (t.Result = 0 | e.Result), null != e.Report) {
                    if ("object" != typeof e.Report) throw TypeError(".Res_Map_ArenaChallenge.Report: object expected");
                    t.Report = a.BattleReport.fromObject(e.Report)
                }
                if (null != e.TargetInfo) {
                    if ("object" != typeof e.TargetInfo) throw TypeError(".Res_Map_ArenaChallenge.TargetInfo: object expected");
                    t.TargetInfo = a.PlayerSimpleInfo.fromObject(e.TargetInfo)
                }
                if (null != e.TargetScoreChange && (i.Long ? (t.TargetScoreChange = i.Long.fromValue(e.TargetScoreChange)).unsigned = !1 : "string" == typeof e.TargetScoreChange ? t.TargetScoreChange = parseInt(e.TargetScoreChange, 10) : "number" == typeof e.TargetScoreChange ? t.TargetScoreChange = e.TargetScoreChange : "object" == typeof e.TargetScoreChange && (t.TargetScoreChange = new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber())), null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), null != e.MyScoreChange && (i.Long ? (t.MyScoreChange = i.Long.fromValue(e.MyScoreChange)).unsigned = !1 : "string" == typeof e.MyScoreChange ? t.MyScoreChange = parseInt(e.MyScoreChange, 10) : "number" == typeof e.MyScoreChange ? t.MyScoreChange = e.MyScoreChange : "object" == typeof e.MyScoreChange && (t.MyScoreChange = new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Map_ArenaChallenge.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Map_ArenaChallenge.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = []), t.defaults) {
                    if (n.Result = 0, n.Report = null, n.TargetInfo = null, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetScoreChange = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScoreChange = t.longs === String ? "0" : 0
                }
                if (null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), null != e.Report && e.hasOwnProperty("Report") && (n.Report = a.BattleReport.toObject(e.Report, t)), null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n.TargetInfo = a.PlayerSimpleInfo.toObject(e.TargetInfo, t)), null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && ("number" == typeof e.TargetScoreChange ? n.TargetScoreChange = t.longs === String ? String(e.TargetScoreChange) : e.TargetScoreChange : n.TargetScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.TargetScoreChange) : t.longs === Number ? new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber() : e.TargetScoreChange), null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && ("number" == typeof e.MyScoreChange ? n.MyScoreChange = t.longs === String ? String(e.MyScoreChange) : e.MyScoreChange : n.MyScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.MyScoreChange) : t.longs === Number ? new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber() : e.MyScoreChange), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.UserItem_Model.toObject(e.Rewards[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_ArenaChallenge"
            }, e
        }(), a.Req_Map_RefreshSeniorArenaInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_RefreshSeniorArenaInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_RefreshSeniorArenaInfo) return e;
                var t = new a.Req_Map_RefreshSeniorArenaInfo;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_RefreshSeniorArenaInfo"
            }, e
        }(), a.Res_Map_RefreshSeniorArenaInfo = function() {
            function e(e) {
                if (this.Targets = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Targets = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(8).int64(e.MyScore), null != e.MyRank && Object.hasOwnProperty.call(e, "MyRank") && t.uint32(16).int64(e.MyRank), null != e.Targets && e.Targets.length)
                    for (var n = 0; n < e.Targets.length; ++n) a.PlayerSimpleInfo.encode(e.Targets[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_RefreshSeniorArenaInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MyScore = e.int64();
                            break;
                        case 2:
                            r.MyRank = e.int64();
                            break;
                        case 3:
                            r.Targets && r.Targets.length || (r.Targets = []), r.Targets.push(a.PlayerSimpleInfo.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high))) return "MyScore: integer|Long expected";
                if (null != e.MyRank && e.hasOwnProperty("MyRank") && !(i.isInteger(e.MyRank) || e.MyRank && i.isInteger(e.MyRank.low) && i.isInteger(e.MyRank.high))) return "MyRank: integer|Long expected";
                if (null != e.Targets && e.hasOwnProperty("Targets")) {
                    if (!Array.isArray(e.Targets)) return "Targets: array expected";
                    for (var t = 0; t < e.Targets.length; ++t) {
                        var n = a.PlayerSimpleInfo.verify(e.Targets[t]);
                        if (n) return "Targets." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_RefreshSeniorArenaInfo) return e;
                var t = new a.Res_Map_RefreshSeniorArenaInfo;
                if (null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), null != e.MyRank && (i.Long ? (t.MyRank = i.Long.fromValue(e.MyRank)).unsigned = !1 : "string" == typeof e.MyRank ? t.MyRank = parseInt(e.MyRank, 10) : "number" == typeof e.MyRank ? t.MyRank = e.MyRank : "object" == typeof e.MyRank && (t.MyRank = new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber())), e.Targets) {
                    if (!Array.isArray(e.Targets)) throw TypeError(".Res_Map_RefreshSeniorArenaInfo.Targets: array expected");
                    t.Targets = [];
                    for (var n = 0; n < e.Targets.length; ++n) {
                        if ("object" != typeof e.Targets[n]) throw TypeError(".Res_Map_RefreshSeniorArenaInfo.Targets: object expected");
                        t.Targets[n] = a.PlayerSimpleInfo.fromObject(e.Targets[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Targets = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MyScore = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyRank = t.longs === String ? "0" : 0
                }
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), null != e.MyRank && e.hasOwnProperty("MyRank") && ("number" == typeof e.MyRank ? n.MyRank = t.longs === String ? String(e.MyRank) : e.MyRank : n.MyRank = t.longs === String ? i.Long.prototype.toString.call(e.MyRank) : t.longs === Number ? new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber() : e.MyRank), e.Targets && e.Targets.length) {
                    n.Targets = [];
                    for (var r = 0; r < e.Targets.length; ++r) n.Targets[r] = a.PlayerSimpleInfo.toObject(e.Targets[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_RefreshSeniorArenaInfo"
            }, e
        }(), a.Req_Map_SeniorArenaChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.prototype.SkipPlay = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(18).fork()).ldelim();
                return null != e.SkipPlay && Object.hasOwnProperty.call(e, "SkipPlay") && t.uint32(24).bool(e.SkipPlay), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_SeniorArenaChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        case 2:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.SkipPlay = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high))) return "TargetUid: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null != e.SkipPlay && e.hasOwnProperty("SkipPlay") && "boolean" != typeof e.SkipPlay ? "SkipPlay: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_SeniorArenaChallenge) return e;
                var t = new a.Req_Map_SeniorArenaChallenge;
                if (null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_SeniorArenaChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_SeniorArenaChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return null != e.SkipPlay && (t.SkipPlay = Boolean(e.SkipPlay)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                    n.SkipPlay = !1
                }
                if (null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return null != e.SkipPlay && e.hasOwnProperty("SkipPlay") && (n.SkipPlay = e.SkipPlay), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_SeniorArenaChallenge"
            }, e
        }(), a.Res_Map_SeniorArenaChallenge = function() {
            function e(e) {
                if (this.Reports = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = 0, e.prototype.Reports = i.emptyArray, e.prototype.TargetInfo = null, e.prototype.TargetScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int32(e.Result), null != e.Reports && e.Reports.length)
                    for (var n = 0; n < e.Reports.length; ++n) a.BattleReport.encode(e.Reports[n], t.uint32(18).fork()).ldelim();
                if (null != e.TargetInfo && Object.hasOwnProperty.call(e, "TargetInfo") && a.PlayerSimpleInfo.encode(e.TargetInfo, t.uint32(26).fork()).ldelim(), null != e.TargetScoreChange && Object.hasOwnProperty.call(e, "TargetScoreChange") && t.uint32(32).int64(e.TargetScoreChange), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(40).int64(e.MyScore), null != e.MyScoreChange && Object.hasOwnProperty.call(e, "MyScoreChange") && t.uint32(48).int64(e.MyScoreChange), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_SeniorArenaChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int32();
                            break;
                        case 2:
                            r.Reports && r.Reports.length || (r.Reports = []), r.Reports.push(a.BattleReport.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.TargetInfo = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        case 4:
                            r.TargetScoreChange = e.int64();
                            break;
                        case 5:
                            r.MyScore = e.int64();
                            break;
                        case 6:
                            r.MyScoreChange = e.int64();
                            break;
                        case 7:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.Reports && e.hasOwnProperty("Reports")) {
                    if (!Array.isArray(e.Reports)) return "Reports: array expected";
                    for (var t = 0; t < e.Reports.length; ++t)
                        if (n = a.BattleReport.verify(e.Reports[t])) return "Reports." + n
                }
                if (null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n = a.PlayerSimpleInfo.verify(e.TargetInfo))) return "TargetInfo." + n;
                if (null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && !(i.isInteger(e.TargetScoreChange) || e.TargetScoreChange && i.isInteger(e.TargetScoreChange.low) && i.isInteger(e.TargetScoreChange.high))) return "TargetScoreChange: integer|Long expected";
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high))) return "MyScore: integer|Long expected";
                if (null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && !(i.isInteger(e.MyScoreChange) || e.MyScoreChange && i.isInteger(e.MyScoreChange.low) && i.isInteger(e.MyScoreChange.high))) return "MyScoreChange: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_SeniorArenaChallenge) return e;
                var t = new a.Res_Map_SeniorArenaChallenge;
                if (null != e.Result && (t.Result = 0 | e.Result), e.Reports) {
                    if (!Array.isArray(e.Reports)) throw TypeError(".Res_Map_SeniorArenaChallenge.Reports: array expected");
                    t.Reports = [];
                    for (var n = 0; n < e.Reports.length; ++n) {
                        if ("object" != typeof e.Reports[n]) throw TypeError(".Res_Map_SeniorArenaChallenge.Reports: object expected");
                        t.Reports[n] = a.BattleReport.fromObject(e.Reports[n])
                    }
                }
                if (null != e.TargetInfo) {
                    if ("object" != typeof e.TargetInfo) throw TypeError(".Res_Map_SeniorArenaChallenge.TargetInfo: object expected");
                    t.TargetInfo = a.PlayerSimpleInfo.fromObject(e.TargetInfo)
                }
                if (null != e.TargetScoreChange && (i.Long ? (t.TargetScoreChange = i.Long.fromValue(e.TargetScoreChange)).unsigned = !1 : "string" == typeof e.TargetScoreChange ? t.TargetScoreChange = parseInt(e.TargetScoreChange, 10) : "number" == typeof e.TargetScoreChange ? t.TargetScoreChange = e.TargetScoreChange : "object" == typeof e.TargetScoreChange && (t.TargetScoreChange = new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber())), null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), null != e.MyScoreChange && (i.Long ? (t.MyScoreChange = i.Long.fromValue(e.MyScoreChange)).unsigned = !1 : "string" == typeof e.MyScoreChange ? t.MyScoreChange = parseInt(e.MyScoreChange, 10) : "number" == typeof e.MyScoreChange ? t.MyScoreChange = e.MyScoreChange : "object" == typeof e.MyScoreChange && (t.MyScoreChange = new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Map_SeniorArenaChallenge.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Map_SeniorArenaChallenge.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Reports = [], n.Rewards = []), t.defaults) {
                    if (n.Result = 0, n.TargetInfo = null, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetScoreChange = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScoreChange = t.longs === String ? "0" : 0
                }
                if (null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), e.Reports && e.Reports.length) {
                    n.Reports = [];
                    for (var r = 0; r < e.Reports.length; ++r) n.Reports[r] = a.BattleReport.toObject(e.Reports[r], t)
                }
                if (null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n.TargetInfo = a.PlayerSimpleInfo.toObject(e.TargetInfo, t)), null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && ("number" == typeof e.TargetScoreChange ? n.TargetScoreChange = t.longs === String ? String(e.TargetScoreChange) : e.TargetScoreChange : n.TargetScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.TargetScoreChange) : t.longs === Number ? new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber() : e.TargetScoreChange), null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && ("number" == typeof e.MyScoreChange ? n.MyScoreChange = t.longs === String ? String(e.MyScoreChange) : e.MyScoreChange : n.MyScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.MyScoreChange) : t.longs === Number ? new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber() : e.MyScoreChange), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.UserItem_Model.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_SeniorArenaChallenge"
            }, e
        }(), a.Req_Map_CollectSeniorArenaCoin = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_CollectSeniorArenaCoin; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_CollectSeniorArenaCoin) return e;
                var t = new a.Req_Map_CollectSeniorArenaCoin;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_CollectSeniorArenaCoin"
            }, e
        }(), a.Req_Map_BuySeniorArenaTicket = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(8).int64(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_BuySeniorArenaTicket; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Count = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_BuySeniorArenaTicket) return e;
                var t = new a.Req_Map_BuySeniorArenaTicket;
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Count = t.longs === String ? "0" : 0;
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_BuySeniorArenaTicket"
            }, e
        }(), a.Req_Map_CrossZoneRankEnter = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_CrossZoneRankEnter; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_CrossZoneRankEnter) return e;
                var t = new a.Req_Map_CrossZoneRankEnter;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_CrossZoneRankEnter"
            }, e
        }(), a.Res_Map_CrossZoneRankEnter = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(8).int64(e.MyScore), null != e.MyRank && Object.hasOwnProperty.call(e, "MyRank") && t.uint32(16).int64(e.MyRank), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_CrossZoneRankEnter; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MyScore = e.int64();
                            break;
                        case 2:
                            r.MyRank = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high)) ? "MyScore: integer|Long expected" : null != e.MyRank && e.hasOwnProperty("MyRank") && !(i.isInteger(e.MyRank) || e.MyRank && i.isInteger(e.MyRank.low) && i.isInteger(e.MyRank.high)) ? "MyRank: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_CrossZoneRankEnter) return e;
                var t = new a.Res_Map_CrossZoneRankEnter;
                return null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), null != e.MyRank && (i.Long ? (t.MyRank = i.Long.fromValue(e.MyRank)).unsigned = !1 : "string" == typeof e.MyRank ? t.MyRank = parseInt(e.MyRank, 10) : "number" == typeof e.MyRank ? t.MyRank = e.MyRank : "object" == typeof e.MyRank && (t.MyRank = new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MyScore = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyRank = t.longs === String ? "0" : 0
                }
                return null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), null != e.MyRank && e.hasOwnProperty("MyRank") && ("number" == typeof e.MyRank ? n.MyRank = t.longs === String ? String(e.MyRank) : e.MyRank : n.MyRank = t.longs === String ? i.Long.prototype.toString.call(e.MyRank) : t.longs === Number ? new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber() : e.MyRank), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_CrossZoneRankEnter"
            }, e
        }(), a.Req_Map_CrossZoneRankChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_CrossZoneRankChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_CrossZoneRankChallenge) return e;
                var t = new a.Req_Map_CrossZoneRankChallenge;
                if (e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_CrossZoneRankChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_CrossZoneRankChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var o = 0; o < e.Formations.length; ++o) n.Formations[o] = a.UserFormation_Model.toObject(e.Formations[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_CrossZoneRankChallenge"
            }, e
        }(), a.Res_Map_CrossZoneRankChallenge = function() {
            function e(e) {
                if (this.Reports = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = 0, e.prototype.Reports = i.emptyArray, e.prototype.TargetInfo = null, e.prototype.TargetScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int32(e.Result), null != e.Reports && e.Reports.length)
                    for (var n = 0; n < e.Reports.length; ++n) a.BattleReport.encode(e.Reports[n], t.uint32(18).fork()).ldelim();
                if (null != e.TargetInfo && Object.hasOwnProperty.call(e, "TargetInfo") && a.PlayerSimpleInfo.encode(e.TargetInfo, t.uint32(26).fork()).ldelim(), null != e.TargetScoreChange && Object.hasOwnProperty.call(e, "TargetScoreChange") && t.uint32(32).int64(e.TargetScoreChange), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(40).int64(e.MyScore), null != e.MyScoreChange && Object.hasOwnProperty.call(e, "MyScoreChange") && t.uint32(48).int64(e.MyScoreChange), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_CrossZoneRankChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int32();
                            break;
                        case 2:
                            r.Reports && r.Reports.length || (r.Reports = []), r.Reports.push(a.BattleReport.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.TargetInfo = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        case 4:
                            r.TargetScoreChange = e.int64();
                            break;
                        case 5:
                            r.MyScore = e.int64();
                            break;
                        case 6:
                            r.MyScoreChange = e.int64();
                            break;
                        case 7:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.Reports && e.hasOwnProperty("Reports")) {
                    if (!Array.isArray(e.Reports)) return "Reports: array expected";
                    for (var t = 0; t < e.Reports.length; ++t)
                        if (n = a.BattleReport.verify(e.Reports[t])) return "Reports." + n
                }
                if (null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n = a.PlayerSimpleInfo.verify(e.TargetInfo))) return "TargetInfo." + n;
                if (null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && !(i.isInteger(e.TargetScoreChange) || e.TargetScoreChange && i.isInteger(e.TargetScoreChange.low) && i.isInteger(e.TargetScoreChange.high))) return "TargetScoreChange: integer|Long expected";
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high))) return "MyScore: integer|Long expected";
                if (null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && !(i.isInteger(e.MyScoreChange) || e.MyScoreChange && i.isInteger(e.MyScoreChange.low) && i.isInteger(e.MyScoreChange.high))) return "MyScoreChange: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_CrossZoneRankChallenge) return e;
                var t = new a.Res_Map_CrossZoneRankChallenge;
                if (null != e.Result && (t.Result = 0 | e.Result), e.Reports) {
                    if (!Array.isArray(e.Reports)) throw TypeError(".Res_Map_CrossZoneRankChallenge.Reports: array expected");
                    t.Reports = [];
                    for (var n = 0; n < e.Reports.length; ++n) {
                        if ("object" != typeof e.Reports[n]) throw TypeError(".Res_Map_CrossZoneRankChallenge.Reports: object expected");
                        t.Reports[n] = a.BattleReport.fromObject(e.Reports[n])
                    }
                }
                if (null != e.TargetInfo) {
                    if ("object" != typeof e.TargetInfo) throw TypeError(".Res_Map_CrossZoneRankChallenge.TargetInfo: object expected");
                    t.TargetInfo = a.PlayerSimpleInfo.fromObject(e.TargetInfo)
                }
                if (null != e.TargetScoreChange && (i.Long ? (t.TargetScoreChange = i.Long.fromValue(e.TargetScoreChange)).unsigned = !1 : "string" == typeof e.TargetScoreChange ? t.TargetScoreChange = parseInt(e.TargetScoreChange, 10) : "number" == typeof e.TargetScoreChange ? t.TargetScoreChange = e.TargetScoreChange : "object" == typeof e.TargetScoreChange && (t.TargetScoreChange = new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber())), null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), null != e.MyScoreChange && (i.Long ? (t.MyScoreChange = i.Long.fromValue(e.MyScoreChange)).unsigned = !1 : "string" == typeof e.MyScoreChange ? t.MyScoreChange = parseInt(e.MyScoreChange, 10) : "number" == typeof e.MyScoreChange ? t.MyScoreChange = e.MyScoreChange : "object" == typeof e.MyScoreChange && (t.MyScoreChange = new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Map_CrossZoneRankChallenge.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Map_CrossZoneRankChallenge.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Reports = [], n.Rewards = []), t.defaults) {
                    if (n.Result = 0, n.TargetInfo = null, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetScoreChange = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScoreChange = t.longs === String ? "0" : 0
                }
                if (null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), e.Reports && e.Reports.length) {
                    n.Reports = [];
                    for (var r = 0; r < e.Reports.length; ++r) n.Reports[r] = a.BattleReport.toObject(e.Reports[r], t)
                }
                if (null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n.TargetInfo = a.PlayerSimpleInfo.toObject(e.TargetInfo, t)), null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && ("number" == typeof e.TargetScoreChange ? n.TargetScoreChange = t.longs === String ? String(e.TargetScoreChange) : e.TargetScoreChange : n.TargetScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.TargetScoreChange) : t.longs === Number ? new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber() : e.TargetScoreChange), null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && ("number" == typeof e.MyScoreChange ? n.MyScoreChange = t.longs === String ? String(e.MyScoreChange) : e.MyScoreChange : n.MyScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.MyScoreChange) : t.longs === Number ? new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber() : e.MyScoreChange), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.UserItem_Model.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_CrossZoneRankChallenge"
            }, e
        }(), a.Req_Map_CrossZoneContinueWarRankEnter = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_CrossZoneContinueWarRankEnter; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_CrossZoneContinueWarRankEnter) return e;
                var t = new a.Req_Map_CrossZoneContinueWarRankEnter;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_CrossZoneContinueWarRankEnter"
            }, e
        }(), a.Res_Map_CrossZoneContinueWarRankEnter = function() {
            function e(e) {
                if (this.DuanRankData = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyDuanRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.DuanRankData = i.emptyArray, e.prototype.MyRankData = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(8).int64(e.MyScore), null != e.MyRank && Object.hasOwnProperty.call(e, "MyRank") && t.uint32(16).int64(e.MyRank), null != e.MyDuanRank && Object.hasOwnProperty.call(e, "MyDuanRank") && t.uint32(24).int64(e.MyDuanRank), null != e.DuanRankData && e.DuanRankData.length)
                    for (var n = 0; n < e.DuanRankData.length; ++n) a.RankRowData.encode(e.DuanRankData[n], t.uint32(34).fork()).ldelim();
                return null != e.MyRankData && Object.hasOwnProperty.call(e, "MyRankData") && a.RankRowData.encode(e.MyRankData, t.uint32(42).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_CrossZoneContinueWarRankEnter; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MyScore = e.int64();
                            break;
                        case 2:
                            r.MyRank = e.int64();
                            break;
                        case 3:
                            r.MyDuanRank = e.int64();
                            break;
                        case 4:
                            r.DuanRankData && r.DuanRankData.length || (r.DuanRankData = []), r.DuanRankData.push(a.RankRowData.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.MyRankData = a.RankRowData.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high))) return "MyScore: integer|Long expected";
                if (null != e.MyRank && e.hasOwnProperty("MyRank") && !(i.isInteger(e.MyRank) || e.MyRank && i.isInteger(e.MyRank.low) && i.isInteger(e.MyRank.high))) return "MyRank: integer|Long expected";
                if (null != e.MyDuanRank && e.hasOwnProperty("MyDuanRank") && !(i.isInteger(e.MyDuanRank) || e.MyDuanRank && i.isInteger(e.MyDuanRank.low) && i.isInteger(e.MyDuanRank.high))) return "MyDuanRank: integer|Long expected";
                if (null != e.DuanRankData && e.hasOwnProperty("DuanRankData")) {
                    if (!Array.isArray(e.DuanRankData)) return "DuanRankData: array expected";
                    for (var t = 0; t < e.DuanRankData.length; ++t)
                        if (n = a.RankRowData.verify(e.DuanRankData[t])) return "DuanRankData." + n
                }
                var n;
                return null != e.MyRankData && e.hasOwnProperty("MyRankData") && (n = a.RankRowData.verify(e.MyRankData)) ? "MyRankData." + n : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_CrossZoneContinueWarRankEnter) return e;
                var t = new a.Res_Map_CrossZoneContinueWarRankEnter;
                if (null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), null != e.MyRank && (i.Long ? (t.MyRank = i.Long.fromValue(e.MyRank)).unsigned = !1 : "string" == typeof e.MyRank ? t.MyRank = parseInt(e.MyRank, 10) : "number" == typeof e.MyRank ? t.MyRank = e.MyRank : "object" == typeof e.MyRank && (t.MyRank = new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber())), null != e.MyDuanRank && (i.Long ? (t.MyDuanRank = i.Long.fromValue(e.MyDuanRank)).unsigned = !1 : "string" == typeof e.MyDuanRank ? t.MyDuanRank = parseInt(e.MyDuanRank, 10) : "number" == typeof e.MyDuanRank ? t.MyDuanRank = e.MyDuanRank : "object" == typeof e.MyDuanRank && (t.MyDuanRank = new i.LongBits(e.MyDuanRank.low >>> 0, e.MyDuanRank.high >>> 0).toNumber())), e.DuanRankData) {
                    if (!Array.isArray(e.DuanRankData)) throw TypeError(".Res_Map_CrossZoneContinueWarRankEnter.DuanRankData: array expected");
                    t.DuanRankData = [];
                    for (var n = 0; n < e.DuanRankData.length; ++n) {
                        if ("object" != typeof e.DuanRankData[n]) throw TypeError(".Res_Map_CrossZoneContinueWarRankEnter.DuanRankData: object expected");
                        t.DuanRankData[n] = a.RankRowData.fromObject(e.DuanRankData[n])
                    }
                }
                if (null != e.MyRankData) {
                    if ("object" != typeof e.MyRankData) throw TypeError(".Res_Map_CrossZoneContinueWarRankEnter.MyRankData: object expected");
                    t.MyRankData = a.RankRowData.fromObject(e.MyRankData)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.DuanRankData = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MyScore = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyRank = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyDuanRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyDuanRank = t.longs === String ? "0" : 0, n.MyRankData = null
                }
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), null != e.MyRank && e.hasOwnProperty("MyRank") && ("number" == typeof e.MyRank ? n.MyRank = t.longs === String ? String(e.MyRank) : e.MyRank : n.MyRank = t.longs === String ? i.Long.prototype.toString.call(e.MyRank) : t.longs === Number ? new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber() : e.MyRank), null != e.MyDuanRank && e.hasOwnProperty("MyDuanRank") && ("number" == typeof e.MyDuanRank ? n.MyDuanRank = t.longs === String ? String(e.MyDuanRank) : e.MyDuanRank : n.MyDuanRank = t.longs === String ? i.Long.prototype.toString.call(e.MyDuanRank) : t.longs === Number ? new i.LongBits(e.MyDuanRank.low >>> 0, e.MyDuanRank.high >>> 0).toNumber() : e.MyDuanRank), e.DuanRankData && e.DuanRankData.length) {
                    n.DuanRankData = [];
                    for (var r = 0; r < e.DuanRankData.length; ++r) n.DuanRankData[r] = a.RankRowData.toObject(e.DuanRankData[r], t)
                }
                return null != e.MyRankData && e.hasOwnProperty("MyRankData") && (n.MyRankData = a.RankRowData.toObject(e.MyRankData, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_CrossZoneContinueWarRankEnter"
            }, e
        }(), a.Req_Map_CrossZoneContinueWarRankChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_CrossZoneContinueWarRankChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_CrossZoneContinueWarRankChallenge) return e;
                var t = new a.Req_Map_CrossZoneContinueWarRankChallenge;
                if (e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_CrossZoneContinueWarRankChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_CrossZoneContinueWarRankChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var o = 0; o < e.Formations.length; ++o) n.Formations[o] = a.UserFormation_Model.toObject(e.Formations[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_CrossZoneContinueWarRankChallenge"
            }, e
        }(), a.Res_Map_CrossZoneContinueWarRankChallenge = function() {
            function e(e) {
                if (this.Reports = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = 0, e.prototype.Reports = i.emptyArray, e.prototype.TargetInfo = null, e.prototype.TargetScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int32(e.Result), null != e.Reports && e.Reports.length)
                    for (var n = 0; n < e.Reports.length; ++n) a.BattleReport.encode(e.Reports[n], t.uint32(18).fork()).ldelim();
                if (null != e.TargetInfo && Object.hasOwnProperty.call(e, "TargetInfo") && a.PlayerSimpleInfo.encode(e.TargetInfo, t.uint32(26).fork()).ldelim(), null != e.TargetScoreChange && Object.hasOwnProperty.call(e, "TargetScoreChange") && t.uint32(32).int64(e.TargetScoreChange), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(40).int64(e.MyScore), null != e.MyScoreChange && Object.hasOwnProperty.call(e, "MyScoreChange") && t.uint32(48).int64(e.MyScoreChange), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_CrossZoneContinueWarRankChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int32();
                            break;
                        case 2:
                            r.Reports && r.Reports.length || (r.Reports = []), r.Reports.push(a.BattleReport.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.TargetInfo = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        case 4:
                            r.TargetScoreChange = e.int64();
                            break;
                        case 5:
                            r.MyScore = e.int64();
                            break;
                        case 6:
                            r.MyScoreChange = e.int64();
                            break;
                        case 7:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.Reports && e.hasOwnProperty("Reports")) {
                    if (!Array.isArray(e.Reports)) return "Reports: array expected";
                    for (var t = 0; t < e.Reports.length; ++t)
                        if (n = a.BattleReport.verify(e.Reports[t])) return "Reports." + n
                }
                if (null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n = a.PlayerSimpleInfo.verify(e.TargetInfo))) return "TargetInfo." + n;
                if (null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && !(i.isInteger(e.TargetScoreChange) || e.TargetScoreChange && i.isInteger(e.TargetScoreChange.low) && i.isInteger(e.TargetScoreChange.high))) return "TargetScoreChange: integer|Long expected";
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high))) return "MyScore: integer|Long expected";
                if (null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && !(i.isInteger(e.MyScoreChange) || e.MyScoreChange && i.isInteger(e.MyScoreChange.low) && i.isInteger(e.MyScoreChange.high))) return "MyScoreChange: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_CrossZoneContinueWarRankChallenge) return e;
                var t = new a.Res_Map_CrossZoneContinueWarRankChallenge;
                if (null != e.Result && (t.Result = 0 | e.Result), e.Reports) {
                    if (!Array.isArray(e.Reports)) throw TypeError(".Res_Map_CrossZoneContinueWarRankChallenge.Reports: array expected");
                    t.Reports = [];
                    for (var n = 0; n < e.Reports.length; ++n) {
                        if ("object" != typeof e.Reports[n]) throw TypeError(".Res_Map_CrossZoneContinueWarRankChallenge.Reports: object expected");
                        t.Reports[n] = a.BattleReport.fromObject(e.Reports[n])
                    }
                }
                if (null != e.TargetInfo) {
                    if ("object" != typeof e.TargetInfo) throw TypeError(".Res_Map_CrossZoneContinueWarRankChallenge.TargetInfo: object expected");
                    t.TargetInfo = a.PlayerSimpleInfo.fromObject(e.TargetInfo)
                }
                if (null != e.TargetScoreChange && (i.Long ? (t.TargetScoreChange = i.Long.fromValue(e.TargetScoreChange)).unsigned = !1 : "string" == typeof e.TargetScoreChange ? t.TargetScoreChange = parseInt(e.TargetScoreChange, 10) : "number" == typeof e.TargetScoreChange ? t.TargetScoreChange = e.TargetScoreChange : "object" == typeof e.TargetScoreChange && (t.TargetScoreChange = new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber())), null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), null != e.MyScoreChange && (i.Long ? (t.MyScoreChange = i.Long.fromValue(e.MyScoreChange)).unsigned = !1 : "string" == typeof e.MyScoreChange ? t.MyScoreChange = parseInt(e.MyScoreChange, 10) : "number" == typeof e.MyScoreChange ? t.MyScoreChange = e.MyScoreChange : "object" == typeof e.MyScoreChange && (t.MyScoreChange = new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Map_CrossZoneContinueWarRankChallenge.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Map_CrossZoneContinueWarRankChallenge.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Reports = [], n.Rewards = []), t.defaults) {
                    if (n.Result = 0, n.TargetInfo = null, i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetScoreChange = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScoreChange = t.longs === String ? "0" : 0
                }
                if (null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), e.Reports && e.Reports.length) {
                    n.Reports = [];
                    for (var r = 0; r < e.Reports.length; ++r) n.Reports[r] = a.BattleReport.toObject(e.Reports[r], t)
                }
                if (null != e.TargetInfo && e.hasOwnProperty("TargetInfo") && (n.TargetInfo = a.PlayerSimpleInfo.toObject(e.TargetInfo, t)), null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && ("number" == typeof e.TargetScoreChange ? n.TargetScoreChange = t.longs === String ? String(e.TargetScoreChange) : e.TargetScoreChange : n.TargetScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.TargetScoreChange) : t.longs === Number ? new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber() : e.TargetScoreChange), null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && ("number" == typeof e.MyScoreChange ? n.MyScoreChange = t.longs === String ? String(e.MyScoreChange) : e.MyScoreChange : n.MyScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.MyScoreChange) : t.longs === Number ? new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber() : e.MyScoreChange), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.UserItem_Model.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_CrossZoneContinueWarRankChallenge"
            }, e
        }(), a.Req_Map_MoonTempleEnter = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_MoonTempleEnter; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_MoonTempleEnter) return e;
                var t = new a.Req_Map_MoonTempleEnter;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_MoonTempleEnter"
            }, e
        }(), a.Res_Map_MoonTempleEnter = function() {
            function e(e) {
                if (this.Shrines = {}, e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Shrines = i.emptyObject, e.prototype.MoonId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Shrines && Object.hasOwnProperty.call(e, "Shrines"))
                    for (var n = Object.keys(e.Shrines), o = 0; o < n.length; ++o) t.uint32(10).fork().uint32(8).int64(n[o]), a.MoonShrine.encode(e.Shrines[n[o]], t.uint32(18).fork()).ldelim().ldelim();
                return null != e.MoonId && Object.hasOwnProperty.call(e, "MoonId") && t.uint32(16).int64(e.MoonId), null != e.MyRank && Object.hasOwnProperty.call(e, "MyRank") && t.uint32(24).int64(e.MyRank), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.Res_Map_MoonTempleEnter; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Shrines === i.emptyObject && (l.Shrines = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = null; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = a.MoonShrine.decode(e, e.uint32());
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.Shrines["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 2:
                            l.MoonId = e.int64();
                            break;
                        case 3:
                            l.MyRank = e.int64();
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Shrines && e.hasOwnProperty("Shrines")) {
                    if (!i.isObject(e.Shrines)) return "Shrines: object expected";
                    for (var t = Object.keys(e.Shrines), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "Shrines: integer|Long key{k:int64} expected";
                        var o = a.MoonShrine.verify(e.Shrines[t[n]]);
                        if (o) return "Shrines." + o
                    }
                }
                return null != e.MoonId && e.hasOwnProperty("MoonId") && !(i.isInteger(e.MoonId) || e.MoonId && i.isInteger(e.MoonId.low) && i.isInteger(e.MoonId.high)) ? "MoonId: integer|Long expected" : null != e.MyRank && e.hasOwnProperty("MyRank") && !(i.isInteger(e.MyRank) || e.MyRank && i.isInteger(e.MyRank.low) && i.isInteger(e.MyRank.high)) ? "MyRank: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_MoonTempleEnter) return e;
                var t = new a.Res_Map_MoonTempleEnter;
                if (e.Shrines) {
                    if ("object" != typeof e.Shrines) throw TypeError(".Res_Map_MoonTempleEnter.Shrines: object expected");
                    t.Shrines = {};
                    for (var n = Object.keys(e.Shrines), o = 0; o < n.length; ++o) {
                        if ("object" != typeof e.Shrines[n[o]]) throw TypeError(".Res_Map_MoonTempleEnter.Shrines: object expected");
                        t.Shrines[n[o]] = a.MoonShrine.fromObject(e.Shrines[n[o]])
                    }
                }
                return null != e.MoonId && (i.Long ? (t.MoonId = i.Long.fromValue(e.MoonId)).unsigned = !1 : "string" == typeof e.MoonId ? t.MoonId = parseInt(e.MoonId, 10) : "number" == typeof e.MoonId ? t.MoonId = e.MoonId : "object" == typeof e.MoonId && (t.MoonId = new i.LongBits(e.MoonId.low >>> 0, e.MoonId.high >>> 0).toNumber())), null != e.MyRank && (i.Long ? (t.MyRank = i.Long.fromValue(e.MyRank)).unsigned = !1 : "string" == typeof e.MyRank ? t.MyRank = parseInt(e.MyRank, 10) : "number" == typeof e.MyRank ? t.MyRank = e.MyRank : "object" == typeof e.MyRank && (t.MyRank = new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.objects || t.defaults) && (o.Shrines = {}), t.defaults) {
                    if (i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.MoonId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.MoonId = t.longs === String ? "0" : 0;
                    i.Long ? (r = new i.Long(0, 0, !1), o.MyRank = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r) : o.MyRank = t.longs === String ? "0" : 0
                }
                if (e.Shrines && (n = Object.keys(e.Shrines)).length) {
                    o.Shrines = {};
                    for (var s = 0; s < n.length; ++s) o.Shrines[n[s]] = a.MoonShrine.toObject(e.Shrines[n[s]], t)
                }
                return null != e.MoonId && e.hasOwnProperty("MoonId") && ("number" == typeof e.MoonId ? o.MoonId = t.longs === String ? String(e.MoonId) : e.MoonId : o.MoonId = t.longs === String ? i.Long.prototype.toString.call(e.MoonId) : t.longs === Number ? new i.LongBits(e.MoonId.low >>> 0, e.MoonId.high >>> 0).toNumber() : e.MoonId), null != e.MyRank && e.hasOwnProperty("MyRank") && ("number" == typeof e.MyRank ? o.MyRank = t.longs === String ? String(e.MyRank) : e.MyRank : o.MyRank = t.longs === String ? i.Long.prototype.toString.call(e.MyRank) : t.longs === Number ? new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber() : e.MyRank), o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_MoonTempleEnter"
            }, e
        }(), a.Req_Map_MoonTempleChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ShrineId = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Intensify = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.ShrineId && Object.hasOwnProperty.call(e, "ShrineId") && t.uint32(8).int64(e.ShrineId), null != e.Intensify && Object.hasOwnProperty.call(e, "Intensify") && t.uint32(16).int64(e.Intensify), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(26).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_MoonTempleChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.ShrineId = e.int64();
                            break;
                        case 2:
                            r.Intensify = e.int64();
                            break;
                        case 3:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.ShrineId && e.hasOwnProperty("ShrineId") && !(i.isInteger(e.ShrineId) || e.ShrineId && i.isInteger(e.ShrineId.low) && i.isInteger(e.ShrineId.high))) return "ShrineId: integer|Long expected";
                if (null != e.Intensify && e.hasOwnProperty("Intensify") && !(i.isInteger(e.Intensify) || e.Intensify && i.isInteger(e.Intensify.low) && i.isInteger(e.Intensify.high))) return "Intensify: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_MoonTempleChallenge) return e;
                var t = new a.Req_Map_MoonTempleChallenge;
                if (null != e.ShrineId && (i.Long ? (t.ShrineId = i.Long.fromValue(e.ShrineId)).unsigned = !1 : "string" == typeof e.ShrineId ? t.ShrineId = parseInt(e.ShrineId, 10) : "number" == typeof e.ShrineId ? t.ShrineId = e.ShrineId : "object" == typeof e.ShrineId && (t.ShrineId = new i.LongBits(e.ShrineId.low >>> 0, e.ShrineId.high >>> 0).toNumber())), null != e.Intensify && (i.Long ? (t.Intensify = i.Long.fromValue(e.Intensify)).unsigned = !1 : "string" == typeof e.Intensify ? t.Intensify = parseInt(e.Intensify, 10) : "number" == typeof e.Intensify ? t.Intensify = e.Intensify : "object" == typeof e.Intensify && (t.Intensify = new i.LongBits(e.Intensify.low >>> 0, e.Intensify.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_MoonTempleChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_MoonTempleChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.ShrineId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.ShrineId = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Intensify = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Intensify = t.longs === String ? "0" : 0
                }
                if (null != e.ShrineId && e.hasOwnProperty("ShrineId") && ("number" == typeof e.ShrineId ? n.ShrineId = t.longs === String ? String(e.ShrineId) : e.ShrineId : n.ShrineId = t.longs === String ? i.Long.prototype.toString.call(e.ShrineId) : t.longs === Number ? new i.LongBits(e.ShrineId.low >>> 0, e.ShrineId.high >>> 0).toNumber() : e.ShrineId), null != e.Intensify && e.hasOwnProperty("Intensify") && ("number" == typeof e.Intensify ? n.Intensify = t.longs === String ? String(e.Intensify) : e.Intensify : n.Intensify = t.longs === String ? i.Long.prototype.toString.call(e.Intensify) : t.longs === Number ? new i.LongBits(e.Intensify.low >>> 0, e.Intensify.high >>> 0).toNumber() : e.Intensify), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_MoonTempleChallenge"
            }, e
        }(), a.Res_Map_MoonTempleChallenge = function() {
            function e(e) {
                if (this.Shrines = {}, this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Shrines = i.emptyObject, e.prototype.Result = 0, e.prototype.Report = null, e.prototype.Rewards = i.emptyArray, e.prototype.MyRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.ReportData = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Shrines && Object.hasOwnProperty.call(e, "Shrines"))
                    for (var n = Object.keys(e.Shrines), o = 0; o < n.length; ++o) t.uint32(10).fork().uint32(8).int64(n[o]), a.MoonShrine.encode(e.Shrines[n[o]], t.uint32(18).fork()).ldelim().ldelim();
                if (null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(16).int32(e.Result), null != e.Report && Object.hasOwnProperty.call(e, "Report") && a.MoonShrineReport_Model.encode(e.Report, t.uint32(26).fork()).ldelim(), null != e.Rewards && e.Rewards.length)
                    for (o = 0; o < e.Rewards.length; ++o) a.UserItem_Model.encode(e.Rewards[o], t.uint32(34).fork()).ldelim();
                return null != e.MyRank && Object.hasOwnProperty.call(e, "MyRank") && t.uint32(40).int64(e.MyRank), null != e.ReportData && Object.hasOwnProperty.call(e, "ReportData") && a.BattleReport.encode(e.ReportData, t.uint32(50).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n, r, s = void 0 === t ? e.len : e.pos + t, l = new a.Res_Map_MoonTempleChallenge; e.pos < s;) {
                    var c = e.uint32();
                    switch (c >>> 3) {
                        case 1:
                            l.Shrines === i.emptyObject && (l.Shrines = {});
                            var u = e.uint32() + e.pos;
                            for (n = 0, r = null; e.pos < u;) {
                                var p = e.uint32();
                                switch (p >>> 3) {
                                    case 1:
                                        n = e.int64();
                                        break;
                                    case 2:
                                        r = a.MoonShrine.decode(e, e.uint32());
                                        break;
                                    default:
                                        e.skipType(7 & p)
                                }
                            }
                            l.Shrines["object" == typeof n ? i.longToHash(n) : n] = r;
                            break;
                        case 2:
                            l.Result = e.int32();
                            break;
                        case 3:
                            l.Report = a.MoonShrineReport_Model.decode(e, e.uint32());
                            break;
                        case 4:
                            l.Rewards && l.Rewards.length || (l.Rewards = []), l.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 5:
                            l.MyRank = e.int64();
                            break;
                        case 6:
                            l.ReportData = a.BattleReport.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & c)
                    }
                }
                return l
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Shrines && e.hasOwnProperty("Shrines")) {
                    if (!i.isObject(e.Shrines)) return "Shrines: object expected";
                    for (var t = Object.keys(e.Shrines), n = 0; n < t.length; ++n) {
                        if (!i.key64Re.test(t[n])) return "Shrines: integer|Long key{k:int64} expected";
                        if (o = a.MoonShrine.verify(e.Shrines[t[n]])) return "Shrines." + o
                    }
                }
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.Report && e.hasOwnProperty("Report") && (o = a.MoonShrineReport_Model.verify(e.Report))) return "Report." + o;
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (n = 0; n < e.Rewards.length; ++n) {
                        var o;
                        if (o = a.UserItem_Model.verify(e.Rewards[n])) return "Rewards." + o
                    }
                }
                return null != e.MyRank && e.hasOwnProperty("MyRank") && !(i.isInteger(e.MyRank) || e.MyRank && i.isInteger(e.MyRank.low) && i.isInteger(e.MyRank.high)) ? "MyRank: integer|Long expected" : null != e.ReportData && e.hasOwnProperty("ReportData") && (o = a.BattleReport.verify(e.ReportData)) ? "ReportData." + o : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_MoonTempleChallenge) return e;
                var t = new a.Res_Map_MoonTempleChallenge;
                if (e.Shrines) {
                    if ("object" != typeof e.Shrines) throw TypeError(".Res_Map_MoonTempleChallenge.Shrines: object expected");
                    t.Shrines = {};
                    for (var n = Object.keys(e.Shrines), o = 0; o < n.length; ++o) {
                        if ("object" != typeof e.Shrines[n[o]]) throw TypeError(".Res_Map_MoonTempleChallenge.Shrines: object expected");
                        t.Shrines[n[o]] = a.MoonShrine.fromObject(e.Shrines[n[o]])
                    }
                }
                if (null != e.Result && (t.Result = 0 | e.Result), null != e.Report) {
                    if ("object" != typeof e.Report) throw TypeError(".Res_Map_MoonTempleChallenge.Report: object expected");
                    t.Report = a.MoonShrineReport_Model.fromObject(e.Report)
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Map_MoonTempleChallenge.Rewards: array expected");
                    for (t.Rewards = [], o = 0; o < e.Rewards.length; ++o) {
                        if ("object" != typeof e.Rewards[o]) throw TypeError(".Res_Map_MoonTempleChallenge.Rewards: object expected");
                        t.Rewards[o] = a.UserItem_Model.fromObject(e.Rewards[o])
                    }
                }
                if (null != e.MyRank && (i.Long ? (t.MyRank = i.Long.fromValue(e.MyRank)).unsigned = !1 : "string" == typeof e.MyRank ? t.MyRank = parseInt(e.MyRank, 10) : "number" == typeof e.MyRank ? t.MyRank = e.MyRank : "object" == typeof e.MyRank && (t.MyRank = new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber())), null != e.ReportData) {
                    if ("object" != typeof e.ReportData) throw TypeError(".Res_Map_MoonTempleChallenge.ReportData: object expected");
                    t.ReportData = a.BattleReport.fromObject(e.ReportData)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n, o = {};
                if ((t.arrays || t.defaults) && (o.Rewards = []), (t.objects || t.defaults) && (o.Shrines = {}), t.defaults) {
                    if (o.Result = 0, o.Report = null, i.Long) {
                        var r = new i.Long(0, 0, !1);
                        o.MyRank = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r
                    } else o.MyRank = t.longs === String ? "0" : 0;
                    o.ReportData = null
                }
                if (e.Shrines && (n = Object.keys(e.Shrines)).length) {
                    o.Shrines = {};
                    for (var s = 0; s < n.length; ++s) o.Shrines[n[s]] = a.MoonShrine.toObject(e.Shrines[n[s]], t)
                }
                if (null != e.Result && e.hasOwnProperty("Result") && (o.Result = e.Result), null != e.Report && e.hasOwnProperty("Report") && (o.Report = a.MoonShrineReport_Model.toObject(e.Report, t)), e.Rewards && e.Rewards.length)
                    for (o.Rewards = [], s = 0; s < e.Rewards.length; ++s) o.Rewards[s] = a.UserItem_Model.toObject(e.Rewards[s], t);
                return null != e.MyRank && e.hasOwnProperty("MyRank") && ("number" == typeof e.MyRank ? o.MyRank = t.longs === String ? String(e.MyRank) : e.MyRank : o.MyRank = t.longs === String ? i.Long.prototype.toString.call(e.MyRank) : t.longs === Number ? new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber() : e.MyRank), null != e.ReportData && e.hasOwnProperty("ReportData") && (o.ReportData = a.BattleReport.toObject(e.ReportData, t)), o
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_MoonTempleChallenge"
            }, e
        }(), a.Req_Map_MoonTempleReports = function() {
            function e(e) {
                if (this.ReportIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.ReportIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.ReportIds && e.ReportIds.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.ReportIds.length; ++n) t.int64(e.ReportIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_MoonTempleReports; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.ReportIds && r.ReportIds.length || (r.ReportIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.ReportIds.push(e.int64());
                            else r.ReportIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.ReportIds && e.hasOwnProperty("ReportIds")) {
                    if (!Array.isArray(e.ReportIds)) return "ReportIds: array expected";
                    for (var t = 0; t < e.ReportIds.length; ++t)
                        if (!(i.isInteger(e.ReportIds[t]) || e.ReportIds[t] && i.isInteger(e.ReportIds[t].low) && i.isInteger(e.ReportIds[t].high))) return "ReportIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_MoonTempleReports) return e;
                var t = new a.Req_Map_MoonTempleReports;
                if (e.ReportIds) {
                    if (!Array.isArray(e.ReportIds)) throw TypeError(".Req_Map_MoonTempleReports.ReportIds: array expected");
                    t.ReportIds = [];
                    for (var n = 0; n < e.ReportIds.length; ++n) i.Long ? (t.ReportIds[n] = i.Long.fromValue(e.ReportIds[n])).unsigned = !1 : "string" == typeof e.ReportIds[n] ? t.ReportIds[n] = parseInt(e.ReportIds[n], 10) : "number" == typeof e.ReportIds[n] ? t.ReportIds[n] = e.ReportIds[n] : "object" == typeof e.ReportIds[n] && (t.ReportIds[n] = new i.LongBits(e.ReportIds[n].low >>> 0, e.ReportIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.ReportIds = []), e.ReportIds && e.ReportIds.length) {
                    n.ReportIds = [];
                    for (var o = 0; o < e.ReportIds.length; ++o) "number" == typeof e.ReportIds[o] ? n.ReportIds[o] = t.longs === String ? String(e.ReportIds[o]) : e.ReportIds[o] : n.ReportIds[o] = t.longs === String ? i.Long.prototype.toString.call(e.ReportIds[o]) : t.longs === Number ? new i.LongBits(e.ReportIds[o].low >>> 0, e.ReportIds[o].high >>> 0).toNumber() : e.ReportIds[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_MoonTempleReports"
            }, e
        }(), a.Res_Map_MoonTempleReports = function() {
            function e(e) {
                if (this.Reports = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Reports = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Reports && e.Reports.length)
                    for (var n = 0; n < e.Reports.length; ++n) a.MoonShrineReport_Model.encode(e.Reports[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_MoonTempleReports; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Reports && r.Reports.length || (r.Reports = []), r.Reports.push(a.MoonShrineReport_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Reports && e.hasOwnProperty("Reports")) {
                    if (!Array.isArray(e.Reports)) return "Reports: array expected";
                    for (var t = 0; t < e.Reports.length; ++t) {
                        var n = a.MoonShrineReport_Model.verify(e.Reports[t]);
                        if (n) return "Reports." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_MoonTempleReports) return e;
                var t = new a.Res_Map_MoonTempleReports;
                if (e.Reports) {
                    if (!Array.isArray(e.Reports)) throw TypeError(".Res_Map_MoonTempleReports.Reports: array expected");
                    t.Reports = [];
                    for (var n = 0; n < e.Reports.length; ++n) {
                        if ("object" != typeof e.Reports[n]) throw TypeError(".Res_Map_MoonTempleReports.Reports: object expected");
                        t.Reports[n] = a.MoonShrineReport_Model.fromObject(e.Reports[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Reports = []), e.Reports && e.Reports.length) {
                    n.Reports = [];
                    for (var o = 0; o < e.Reports.length; ++o) n.Reports[o] = a.MoonShrineReport_Model.toObject(e.Reports[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_MoonTempleReports"
            }, e
        }(), a.Req_Map_StarLightSecretLandChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_StarLightSecretLandChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high))) return "Id: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_StarLightSecretLandChallenge) return e;
                var t = new a.Req_Map_StarLightSecretLandChallenge;
                if (null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_StarLightSecretLandChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_StarLightSecretLandChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                if (null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_StarLightSecretLandChallenge"
            }, e
        }(), a.Res_Map_StarLightSecretLandChallenge = function() {
            function e(e) {
                if (this.Reports = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = 0, e.prototype.Reports = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int32(e.Result), null != e.Reports && e.Reports.length)
                    for (var n = 0; n < e.Reports.length; ++n) a.BattleReport.encode(e.Reports[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_StarLightSecretLandChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int32();
                            break;
                        case 2:
                            r.Reports && r.Reports.length || (r.Reports = []), r.Reports.push(a.BattleReport.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !i.isInteger(e.Result)) return "Result: integer expected";
                if (null != e.Reports && e.hasOwnProperty("Reports")) {
                    if (!Array.isArray(e.Reports)) return "Reports: array expected";
                    for (var t = 0; t < e.Reports.length; ++t) {
                        var n = a.BattleReport.verify(e.Reports[t]);
                        if (n) return "Reports." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_StarLightSecretLandChallenge) return e;
                var t = new a.Res_Map_StarLightSecretLandChallenge;
                if (null != e.Result && (t.Result = 0 | e.Result), e.Reports) {
                    if (!Array.isArray(e.Reports)) throw TypeError(".Res_Map_StarLightSecretLandChallenge.Reports: array expected");
                    t.Reports = [];
                    for (var n = 0; n < e.Reports.length; ++n) {
                        if ("object" != typeof e.Reports[n]) throw TypeError(".Res_Map_StarLightSecretLandChallenge.Reports: object expected");
                        t.Reports[n] = a.BattleReport.fromObject(e.Reports[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Reports = []), t.defaults && (n.Result = 0), null != e.Result && e.hasOwnProperty("Result") && (n.Result = e.Result), e.Reports && e.Reports.length) {
                    n.Reports = [];
                    for (var o = 0; o < e.Reports.length; ++o) n.Reports[o] = a.BattleReport.toObject(e.Reports[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_StarLightSecretLandChallenge"
            }, e
        }(), a.Req_Map_StarLightSecretLandSweep = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Id = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Id && Object.hasOwnProperty.call(e, "Id") && t.uint32(8).int64(e.Id), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(16).int64(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_StarLightSecretLandSweep; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Id = e.int64();
                            break;
                        case 2:
                            r.Count = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Id && e.hasOwnProperty("Id") && !(i.isInteger(e.Id) || e.Id && i.isInteger(e.Id.low) && i.isInteger(e.Id.high)) ? "Id: integer|Long expected" : null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_StarLightSecretLandSweep) return e;
                var t = new a.Req_Map_StarLightSecretLandSweep;
                return null != e.Id && (i.Long ? (t.Id = i.Long.fromValue(e.Id)).unsigned = !1 : "string" == typeof e.Id ? t.Id = parseInt(e.Id, 10) : "number" == typeof e.Id ? t.Id = e.Id : "object" == typeof e.Id && (t.Id = new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber())), null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Id = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.Count = t.longs === String ? "0" : 0
                }
                return null != e.Id && e.hasOwnProperty("Id") && ("number" == typeof e.Id ? n.Id = t.longs === String ? String(e.Id) : e.Id : n.Id = t.longs === String ? i.Long.prototype.toString.call(e.Id) : t.longs === Number ? new i.LongBits(e.Id.low >>> 0, e.Id.high >>> 0).toNumber() : e.Id), null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_StarLightSecretLandSweep"
            }, e
        }(), a.Req_Map_GodLandDuelEnter = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_GodLandDuelEnter; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_GodLandDuelEnter) return e;
                var t = new a.Req_Map_GodLandDuelEnter;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_GodLandDuelEnter"
            }, e
        }(), a.Res_Map_GodLandDuelEnter = function() {
            function e(e) {
                if (this.Rank = [], this.TierRank = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rank = i.emptyArray, e.prototype.TierRank = i.emptyArray, e.prototype.MyTierRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyRankData = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(8).int64(e.MyScore), null != e.Rank && e.Rank.length)
                    for (var n = 0; n < e.Rank.length; ++n) a.RankRowData.encode(e.Rank[n], t.uint32(18).fork()).ldelim();
                if (null != e.TierRank && e.TierRank.length)
                    for (n = 0; n < e.TierRank.length; ++n) a.RankRowData.encode(e.TierRank[n], t.uint32(26).fork()).ldelim();
                return null != e.MyTierRank && Object.hasOwnProperty.call(e, "MyTierRank") && t.uint32(32).int64(e.MyTierRank), null != e.MyRankData && Object.hasOwnProperty.call(e, "MyRankData") && a.RankRowData.encode(e.MyRankData, t.uint32(42).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_GodLandDuelEnter; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.MyScore = e.int64();
                            break;
                        case 2:
                            r.Rank && r.Rank.length || (r.Rank = []), r.Rank.push(a.RankRowData.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.TierRank && r.TierRank.length || (r.TierRank = []), r.TierRank.push(a.RankRowData.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.MyTierRank = e.int64();
                            break;
                        case 5:
                            r.MyRankData = a.RankRowData.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high))) return "MyScore: integer|Long expected";
                if (null != e.Rank && e.hasOwnProperty("Rank")) {
                    if (!Array.isArray(e.Rank)) return "Rank: array expected";
                    for (var t = 0; t < e.Rank.length; ++t)
                        if (n = a.RankRowData.verify(e.Rank[t])) return "Rank." + n
                }
                if (null != e.TierRank && e.hasOwnProperty("TierRank")) {
                    if (!Array.isArray(e.TierRank)) return "TierRank: array expected";
                    for (t = 0; t < e.TierRank.length; ++t)
                        if (n = a.RankRowData.verify(e.TierRank[t])) return "TierRank." + n
                }
                return null != e.MyTierRank && e.hasOwnProperty("MyTierRank") && !(i.isInteger(e.MyTierRank) || e.MyTierRank && i.isInteger(e.MyTierRank.low) && i.isInteger(e.MyTierRank.high)) ? "MyTierRank: integer|Long expected" : null != e.MyRankData && e.hasOwnProperty("MyRankData") && (n = a.RankRowData.verify(e.MyRankData)) ? "MyRankData." + n : null;
                var n
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_GodLandDuelEnter) return e;
                var t = new a.Res_Map_GodLandDuelEnter;
                if (null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), e.Rank) {
                    if (!Array.isArray(e.Rank)) throw TypeError(".Res_Map_GodLandDuelEnter.Rank: array expected");
                    t.Rank = [];
                    for (var n = 0; n < e.Rank.length; ++n) {
                        if ("object" != typeof e.Rank[n]) throw TypeError(".Res_Map_GodLandDuelEnter.Rank: object expected");
                        t.Rank[n] = a.RankRowData.fromObject(e.Rank[n])
                    }
                }
                if (e.TierRank) {
                    if (!Array.isArray(e.TierRank)) throw TypeError(".Res_Map_GodLandDuelEnter.TierRank: array expected");
                    for (t.TierRank = [], n = 0; n < e.TierRank.length; ++n) {
                        if ("object" != typeof e.TierRank[n]) throw TypeError(".Res_Map_GodLandDuelEnter.TierRank: object expected");
                        t.TierRank[n] = a.RankRowData.fromObject(e.TierRank[n])
                    }
                }
                if (null != e.MyTierRank && (i.Long ? (t.MyTierRank = i.Long.fromValue(e.MyTierRank)).unsigned = !1 : "string" == typeof e.MyTierRank ? t.MyTierRank = parseInt(e.MyTierRank, 10) : "number" == typeof e.MyTierRank ? t.MyTierRank = e.MyTierRank : "object" == typeof e.MyTierRank && (t.MyTierRank = new i.LongBits(e.MyTierRank.low >>> 0, e.MyTierRank.high >>> 0).toNumber())), null != e.MyRankData) {
                    if ("object" != typeof e.MyRankData) throw TypeError(".Res_Map_GodLandDuelEnter.MyRankData: object expected");
                    t.MyRankData = a.RankRowData.fromObject(e.MyRankData)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rank = [], n.TierRank = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.MyScore = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyTierRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyTierRank = t.longs === String ? "0" : 0, n.MyRankData = null
                }
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), e.Rank && e.Rank.length) {
                    n.Rank = [];
                    for (var r = 0; r < e.Rank.length; ++r) n.Rank[r] = a.RankRowData.toObject(e.Rank[r], t)
                }
                if (e.TierRank && e.TierRank.length)
                    for (n.TierRank = [], r = 0; r < e.TierRank.length; ++r) n.TierRank[r] = a.RankRowData.toObject(e.TierRank[r], t);
                return null != e.MyTierRank && e.hasOwnProperty("MyTierRank") && ("number" == typeof e.MyTierRank ? n.MyTierRank = t.longs === String ? String(e.MyTierRank) : e.MyTierRank : n.MyTierRank = t.longs === String ? i.Long.prototype.toString.call(e.MyTierRank) : t.longs === Number ? new i.LongBits(e.MyTierRank.low >>> 0, e.MyTierRank.high >>> 0).toNumber() : e.MyTierRank), null != e.MyRankData && e.hasOwnProperty("MyRankData") && (n.MyRankData = a.RankRowData.toObject(e.MyRankData, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_GodLandDuelEnter"
            }, e
        }(), a.Req_Map_GodLandDuelChangeFormation = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_GodLandDuelChangeFormation; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_GodLandDuelChangeFormation) return e;
                var t = new a.Req_Map_GodLandDuelChangeFormation;
                if (e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_GodLandDuelChangeFormation.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_GodLandDuelChangeFormation.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var o = 0; o < e.Formations.length; ++o) n.Formations[o] = a.UserFormation_Model.toObject(e.Formations[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_GodLandDuelChangeFormation"
            }, e
        }(), a.Req_Map_GodLandDuelBattle = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_GodLandDuelBattle; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_GodLandDuelBattle) return e;
                var t = new a.Req_Map_GodLandDuelBattle;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_GodLandDuelBattle"
            }, e
        }(), a.Res_Map_GodLandDuelBattle = function() {
            function e(e) {
                if (this.Report = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Result = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Report = i.emptyArray, e.prototype.Player = null, e.prototype.TargetScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScore = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MyScoreChange = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Result && Object.hasOwnProperty.call(e, "Result") && t.uint32(8).int64(e.Result), null != e.Report && e.Report.length)
                    for (var n = 0; n < e.Report.length; ++n) a.BattleReport.encode(e.Report[n], t.uint32(18).fork()).ldelim();
                if (null != e.Player && Object.hasOwnProperty.call(e, "Player") && a.PlayerSimpleInfo.encode(e.Player, t.uint32(26).fork()).ldelim(), null != e.TargetScoreChange && Object.hasOwnProperty.call(e, "TargetScoreChange") && t.uint32(32).int64(e.TargetScoreChange), null != e.MyScore && Object.hasOwnProperty.call(e, "MyScore") && t.uint32(40).int64(e.MyScore), null != e.MyScoreChange && Object.hasOwnProperty.call(e, "MyScoreChange") && t.uint32(48).int64(e.MyScoreChange), null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(58).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_GodLandDuelBattle; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Result = e.int64();
                            break;
                        case 2:
                            r.Report && r.Report.length || (r.Report = []), r.Report.push(a.BattleReport.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Player = a.PlayerSimpleInfo.decode(e, e.uint32());
                            break;
                        case 4:
                            r.TargetScoreChange = e.int64();
                            break;
                        case 5:
                            r.MyScore = e.int64();
                            break;
                        case 6:
                            r.MyScoreChange = e.int64();
                            break;
                        case 7:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Result && e.hasOwnProperty("Result") && !(i.isInteger(e.Result) || e.Result && i.isInteger(e.Result.low) && i.isInteger(e.Result.high))) return "Result: integer|Long expected";
                if (null != e.Report && e.hasOwnProperty("Report")) {
                    if (!Array.isArray(e.Report)) return "Report: array expected";
                    for (var t = 0; t < e.Report.length; ++t)
                        if (n = a.BattleReport.verify(e.Report[t])) return "Report." + n
                }
                if (null != e.Player && e.hasOwnProperty("Player") && (n = a.PlayerSimpleInfo.verify(e.Player))) return "Player." + n;
                if (null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && !(i.isInteger(e.TargetScoreChange) || e.TargetScoreChange && i.isInteger(e.TargetScoreChange.low) && i.isInteger(e.TargetScoreChange.high))) return "TargetScoreChange: integer|Long expected";
                if (null != e.MyScore && e.hasOwnProperty("MyScore") && !(i.isInteger(e.MyScore) || e.MyScore && i.isInteger(e.MyScore.low) && i.isInteger(e.MyScore.high))) return "MyScore: integer|Long expected";
                if (null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && !(i.isInteger(e.MyScoreChange) || e.MyScoreChange && i.isInteger(e.MyScoreChange.low) && i.isInteger(e.MyScoreChange.high))) return "MyScoreChange: integer|Long expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_GodLandDuelBattle) return e;
                var t = new a.Res_Map_GodLandDuelBattle;
                if (null != e.Result && (i.Long ? (t.Result = i.Long.fromValue(e.Result)).unsigned = !1 : "string" == typeof e.Result ? t.Result = parseInt(e.Result, 10) : "number" == typeof e.Result ? t.Result = e.Result : "object" == typeof e.Result && (t.Result = new i.LongBits(e.Result.low >>> 0, e.Result.high >>> 0).toNumber())), e.Report) {
                    if (!Array.isArray(e.Report)) throw TypeError(".Res_Map_GodLandDuelBattle.Report: array expected");
                    t.Report = [];
                    for (var n = 0; n < e.Report.length; ++n) {
                        if ("object" != typeof e.Report[n]) throw TypeError(".Res_Map_GodLandDuelBattle.Report: object expected");
                        t.Report[n] = a.BattleReport.fromObject(e.Report[n])
                    }
                }
                if (null != e.Player) {
                    if ("object" != typeof e.Player) throw TypeError(".Res_Map_GodLandDuelBattle.Player: object expected");
                    t.Player = a.PlayerSimpleInfo.fromObject(e.Player)
                }
                if (null != e.TargetScoreChange && (i.Long ? (t.TargetScoreChange = i.Long.fromValue(e.TargetScoreChange)).unsigned = !1 : "string" == typeof e.TargetScoreChange ? t.TargetScoreChange = parseInt(e.TargetScoreChange, 10) : "number" == typeof e.TargetScoreChange ? t.TargetScoreChange = e.TargetScoreChange : "object" == typeof e.TargetScoreChange && (t.TargetScoreChange = new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber())), null != e.MyScore && (i.Long ? (t.MyScore = i.Long.fromValue(e.MyScore)).unsigned = !1 : "string" == typeof e.MyScore ? t.MyScore = parseInt(e.MyScore, 10) : "number" == typeof e.MyScore ? t.MyScore = e.MyScore : "object" == typeof e.MyScore && (t.MyScore = new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber())), null != e.MyScoreChange && (i.Long ? (t.MyScoreChange = i.Long.fromValue(e.MyScoreChange)).unsigned = !1 : "string" == typeof e.MyScoreChange ? t.MyScoreChange = parseInt(e.MyScoreChange, 10) : "number" == typeof e.MyScoreChange ? t.MyScoreChange = e.MyScoreChange : "object" == typeof e.MyScoreChange && (t.MyScoreChange = new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber())), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Map_GodLandDuelBattle.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Map_GodLandDuelBattle.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Report = [], n.Rewards = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Result = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Result = t.longs === String ? "0" : 0;
                    n.Player = null, i.Long ? (o = new i.Long(0, 0, !1), n.TargetScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetScoreChange = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyScore = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScore = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyScoreChange = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyScoreChange = t.longs === String ? "0" : 0
                }
                if (null != e.Result && e.hasOwnProperty("Result") && ("number" == typeof e.Result ? n.Result = t.longs === String ? String(e.Result) : e.Result : n.Result = t.longs === String ? i.Long.prototype.toString.call(e.Result) : t.longs === Number ? new i.LongBits(e.Result.low >>> 0, e.Result.high >>> 0).toNumber() : e.Result), e.Report && e.Report.length) {
                    n.Report = [];
                    for (var r = 0; r < e.Report.length; ++r) n.Report[r] = a.BattleReport.toObject(e.Report[r], t)
                }
                if (null != e.Player && e.hasOwnProperty("Player") && (n.Player = a.PlayerSimpleInfo.toObject(e.Player, t)), null != e.TargetScoreChange && e.hasOwnProperty("TargetScoreChange") && ("number" == typeof e.TargetScoreChange ? n.TargetScoreChange = t.longs === String ? String(e.TargetScoreChange) : e.TargetScoreChange : n.TargetScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.TargetScoreChange) : t.longs === Number ? new i.LongBits(e.TargetScoreChange.low >>> 0, e.TargetScoreChange.high >>> 0).toNumber() : e.TargetScoreChange), null != e.MyScore && e.hasOwnProperty("MyScore") && ("number" == typeof e.MyScore ? n.MyScore = t.longs === String ? String(e.MyScore) : e.MyScore : n.MyScore = t.longs === String ? i.Long.prototype.toString.call(e.MyScore) : t.longs === Number ? new i.LongBits(e.MyScore.low >>> 0, e.MyScore.high >>> 0).toNumber() : e.MyScore), null != e.MyScoreChange && e.hasOwnProperty("MyScoreChange") && ("number" == typeof e.MyScoreChange ? n.MyScoreChange = t.longs === String ? String(e.MyScoreChange) : e.MyScoreChange : n.MyScoreChange = t.longs === String ? i.Long.prototype.toString.call(e.MyScoreChange) : t.longs === Number ? new i.LongBits(e.MyScoreChange.low >>> 0, e.MyScoreChange.high >>> 0).toNumber() : e.MyScoreChange), e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], r = 0; r < e.Rewards.length; ++r) n.Rewards[r] = a.UserItem_Model.toObject(e.Rewards[r], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_GodLandDuelBattle"
            }, e
        }(), a.Req_Map_RankMatchEnroll = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_RankMatchEnroll; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_RankMatchEnroll) return e;
                var t = new a.Req_Map_RankMatchEnroll;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_RankMatchEnroll"
            }, e
        }(), a.Req_Map_EnterScoreMatch = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_EnterScoreMatch; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_EnterScoreMatch) return e;
                var t = new a.Req_Map_EnterScoreMatch;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_EnterScoreMatch"
            }, e
        }(), a.Res_Map_EnterScoreMatch = function() {
            function e(e) {
                if (this.Players = [], this.MyInfo = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Players = i.emptyArray, e.prototype.MyInfo = i.emptyArray, e.prototype.IsEnroll = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Players && e.Players.length)
                    for (var n = 0; n < e.Players.length; ++n) a.RankRowData.encode(e.Players[n], t.uint32(10).fork()).ldelim();
                if (null != e.MyInfo && e.MyInfo.length) {
                    for (t.uint32(18).fork(), n = 0; n < e.MyInfo.length; ++n) t.int64(e.MyInfo[n]);
                    t.ldelim()
                }
                return null != e.IsEnroll && Object.hasOwnProperty.call(e, "IsEnroll") && t.uint32(24).int64(e.IsEnroll), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_EnterScoreMatch; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Players && r.Players.length || (r.Players = []), r.Players.push(a.RankRowData.decode(e, e.uint32()));
                            break;
                        case 2:
                            if (r.MyInfo && r.MyInfo.length || (r.MyInfo = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.MyInfo.push(e.int64());
                            else r.MyInfo.push(e.int64());
                            break;
                        case 3:
                            r.IsEnroll = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Players && e.hasOwnProperty("Players")) {
                    if (!Array.isArray(e.Players)) return "Players: array expected";
                    for (var t = 0; t < e.Players.length; ++t) {
                        var n = a.RankRowData.verify(e.Players[t]);
                        if (n) return "Players." + n
                    }
                }
                if (null != e.MyInfo && e.hasOwnProperty("MyInfo")) {
                    if (!Array.isArray(e.MyInfo)) return "MyInfo: array expected";
                    for (t = 0; t < e.MyInfo.length; ++t)
                        if (!(i.isInteger(e.MyInfo[t]) || e.MyInfo[t] && i.isInteger(e.MyInfo[t].low) && i.isInteger(e.MyInfo[t].high))) return "MyInfo: integer|Long[] expected"
                }
                return null != e.IsEnroll && e.hasOwnProperty("IsEnroll") && !(i.isInteger(e.IsEnroll) || e.IsEnroll && i.isInteger(e.IsEnroll.low) && i.isInteger(e.IsEnroll.high)) ? "IsEnroll: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_EnterScoreMatch) return e;
                var t = new a.Res_Map_EnterScoreMatch;
                if (e.Players) {
                    if (!Array.isArray(e.Players)) throw TypeError(".Res_Map_EnterScoreMatch.Players: array expected");
                    t.Players = [];
                    for (var n = 0; n < e.Players.length; ++n) {
                        if ("object" != typeof e.Players[n]) throw TypeError(".Res_Map_EnterScoreMatch.Players: object expected");
                        t.Players[n] = a.RankRowData.fromObject(e.Players[n])
                    }
                }
                if (e.MyInfo) {
                    if (!Array.isArray(e.MyInfo)) throw TypeError(".Res_Map_EnterScoreMatch.MyInfo: array expected");
                    for (t.MyInfo = [], n = 0; n < e.MyInfo.length; ++n) i.Long ? (t.MyInfo[n] = i.Long.fromValue(e.MyInfo[n])).unsigned = !1 : "string" == typeof e.MyInfo[n] ? t.MyInfo[n] = parseInt(e.MyInfo[n], 10) : "number" == typeof e.MyInfo[n] ? t.MyInfo[n] = e.MyInfo[n] : "object" == typeof e.MyInfo[n] && (t.MyInfo[n] = new i.LongBits(e.MyInfo[n].low >>> 0, e.MyInfo[n].high >>> 0).toNumber())
                }
                return null != e.IsEnroll && (i.Long ? (t.IsEnroll = i.Long.fromValue(e.IsEnroll)).unsigned = !1 : "string" == typeof e.IsEnroll ? t.IsEnroll = parseInt(e.IsEnroll, 10) : "number" == typeof e.IsEnroll ? t.IsEnroll = e.IsEnroll : "object" == typeof e.IsEnroll && (t.IsEnroll = new i.LongBits(e.IsEnroll.low >>> 0, e.IsEnroll.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Players = [], n.MyInfo = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.IsEnroll = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.IsEnroll = t.longs === String ? "0" : 0;
                if (e.Players && e.Players.length) {
                    n.Players = [];
                    for (var r = 0; r < e.Players.length; ++r) n.Players[r] = a.RankRowData.toObject(e.Players[r], t)
                }
                if (e.MyInfo && e.MyInfo.length)
                    for (n.MyInfo = [], r = 0; r < e.MyInfo.length; ++r) "number" == typeof e.MyInfo[r] ? n.MyInfo[r] = t.longs === String ? String(e.MyInfo[r]) : e.MyInfo[r] : n.MyInfo[r] = t.longs === String ? i.Long.prototype.toString.call(e.MyInfo[r]) : t.longs === Number ? new i.LongBits(e.MyInfo[r].low >>> 0, e.MyInfo[r].high >>> 0).toNumber() : e.MyInfo[r];
                return null != e.IsEnroll && e.hasOwnProperty("IsEnroll") && ("number" == typeof e.IsEnroll ? n.IsEnroll = t.longs === String ? String(e.IsEnroll) : e.IsEnroll : n.IsEnroll = t.longs === String ? i.Long.prototype.toString.call(e.IsEnroll) : t.longs === Number ? new i.LongBits(e.IsEnroll.low >>> 0, e.IsEnroll.high >>> 0).toNumber() : e.IsEnroll), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_EnterScoreMatch"
            }, e
        }(), a.Req_Map_RankMatchClassificationChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_RankMatchClassificationChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        case 2:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high))) return "TargetUid: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_RankMatchClassificationChallenge) return e;
                var t = new a.Req_Map_RankMatchClassificationChallenge;
                if (null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_RankMatchClassificationChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_RankMatchClassificationChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                if (null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_RankMatchClassificationChallenge"
            }, e
        }(), a.Req_Map_RankMatchChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetUid = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.TargetUid && Object.hasOwnProperty.call(e, "TargetUid") && t.uint32(8).int64(e.TargetUid), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_RankMatchChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetUid = e.int64();
                            break;
                        case 2:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.TargetUid && e.hasOwnProperty("TargetUid") && !(i.isInteger(e.TargetUid) || e.TargetUid && i.isInteger(e.TargetUid.low) && i.isInteger(e.TargetUid.high))) return "TargetUid: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_RankMatchChallenge) return e;
                var t = new a.Req_Map_RankMatchChallenge;
                if (null != e.TargetUid && (i.Long ? (t.TargetUid = i.Long.fromValue(e.TargetUid)).unsigned = !1 : "string" == typeof e.TargetUid ? t.TargetUid = parseInt(e.TargetUid, 10) : "number" == typeof e.TargetUid ? t.TargetUid = e.TargetUid : "object" == typeof e.TargetUid && (t.TargetUid = new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_RankMatchChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_RankMatchChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetUid = t.longs === String ? "0" : 0;
                if (null != e.TargetUid && e.hasOwnProperty("TargetUid") && ("number" == typeof e.TargetUid ? n.TargetUid = t.longs === String ? String(e.TargetUid) : e.TargetUid : n.TargetUid = t.longs === String ? i.Long.prototype.toString.call(e.TargetUid) : t.longs === Number ? new i.LongBits(e.TargetUid.low >>> 0, e.TargetUid.high >>> 0).toNumber() : e.TargetUid), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_RankMatchChallenge"
            }, e
        }(), a.Req_Map_WorldBossGetInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_WorldBossGetInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_WorldBossGetInfo) return e;
                var t = new a.Req_Map_WorldBossGetInfo;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_WorldBossGetInfo"
            }, e
        }(), a.Res_Map_WorldBossGetInfo = function() {
            function e(e) {
                if (this.Three = [], this.Bonus = [], this.GotRewardsIds = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.TargetZone = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Three = i.emptyArray, e.prototype.MyZoneDamage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.TargetZoneDamage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Bonus = i.emptyArray, e.prototype.MyRank = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.MySumDamage = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.GotRewardsIds = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.TargetZone && Object.hasOwnProperty.call(e, "TargetZone") && t.uint32(8).int64(e.TargetZone), null != e.Three && e.Three.length)
                    for (var n = 0; n < e.Three.length; ++n) a.PlayerSimpleInfo.encode(e.Three[n], t.uint32(18).fork()).ldelim();
                if (null != e.MyZoneDamage && Object.hasOwnProperty.call(e, "MyZoneDamage") && t.uint32(24).int64(e.MyZoneDamage), null != e.TargetZoneDamage && Object.hasOwnProperty.call(e, "TargetZoneDamage") && t.uint32(32).int64(e.TargetZoneDamage), null != e.Bonus && e.Bonus.length)
                    for (n = 0; n < e.Bonus.length; ++n) a.IntArray.encode(e.Bonus[n], t.uint32(42).fork()).ldelim();
                if (null != e.MyRank && Object.hasOwnProperty.call(e, "MyRank") && t.uint32(48).int64(e.MyRank), null != e.MySumDamage && Object.hasOwnProperty.call(e, "MySumDamage") && t.uint32(56).int64(e.MySumDamage), null != e.GotRewardsIds && e.GotRewardsIds.length) {
                    for (t.uint32(66).fork(), n = 0; n < e.GotRewardsIds.length; ++n) t.int64(e.GotRewardsIds[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_WorldBossGetInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.TargetZone = e.int64();
                            break;
                        case 2:
                            r.Three && r.Three.length || (r.Three = []), r.Three.push(a.PlayerSimpleInfo.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.MyZoneDamage = e.int64();
                            break;
                        case 4:
                            r.TargetZoneDamage = e.int64();
                            break;
                        case 5:
                            r.Bonus && r.Bonus.length || (r.Bonus = []), r.Bonus.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 6:
                            r.MyRank = e.int64();
                            break;
                        case 7:
                            r.MySumDamage = e.int64();
                            break;
                        case 8:
                            if (r.GotRewardsIds && r.GotRewardsIds.length || (r.GotRewardsIds = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.GotRewardsIds.push(e.int64());
                            else r.GotRewardsIds.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.TargetZone && e.hasOwnProperty("TargetZone") && !(i.isInteger(e.TargetZone) || e.TargetZone && i.isInteger(e.TargetZone.low) && i.isInteger(e.TargetZone.high))) return "TargetZone: integer|Long expected";
                if (null != e.Three && e.hasOwnProperty("Three")) {
                    if (!Array.isArray(e.Three)) return "Three: array expected";
                    for (var t = 0; t < e.Three.length; ++t)
                        if (n = a.PlayerSimpleInfo.verify(e.Three[t])) return "Three." + n
                }
                if (null != e.MyZoneDamage && e.hasOwnProperty("MyZoneDamage") && !(i.isInteger(e.MyZoneDamage) || e.MyZoneDamage && i.isInteger(e.MyZoneDamage.low) && i.isInteger(e.MyZoneDamage.high))) return "MyZoneDamage: integer|Long expected";
                if (null != e.TargetZoneDamage && e.hasOwnProperty("TargetZoneDamage") && !(i.isInteger(e.TargetZoneDamage) || e.TargetZoneDamage && i.isInteger(e.TargetZoneDamage.low) && i.isInteger(e.TargetZoneDamage.high))) return "TargetZoneDamage: integer|Long expected";
                if (null != e.Bonus && e.hasOwnProperty("Bonus")) {
                    if (!Array.isArray(e.Bonus)) return "Bonus: array expected";
                    for (t = 0; t < e.Bonus.length; ++t) {
                        var n;
                        if (n = a.IntArray.verify(e.Bonus[t])) return "Bonus." + n
                    }
                }
                if (null != e.MyRank && e.hasOwnProperty("MyRank") && !(i.isInteger(e.MyRank) || e.MyRank && i.isInteger(e.MyRank.low) && i.isInteger(e.MyRank.high))) return "MyRank: integer|Long expected";
                if (null != e.MySumDamage && e.hasOwnProperty("MySumDamage") && !(i.isInteger(e.MySumDamage) || e.MySumDamage && i.isInteger(e.MySumDamage.low) && i.isInteger(e.MySumDamage.high))) return "MySumDamage: integer|Long expected";
                if (null != e.GotRewardsIds && e.hasOwnProperty("GotRewardsIds")) {
                    if (!Array.isArray(e.GotRewardsIds)) return "GotRewardsIds: array expected";
                    for (t = 0; t < e.GotRewardsIds.length; ++t)
                        if (!(i.isInteger(e.GotRewardsIds[t]) || e.GotRewardsIds[t] && i.isInteger(e.GotRewardsIds[t].low) && i.isInteger(e.GotRewardsIds[t].high))) return "GotRewardsIds: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_WorldBossGetInfo) return e;
                var t = new a.Res_Map_WorldBossGetInfo;
                if (null != e.TargetZone && (i.Long ? (t.TargetZone = i.Long.fromValue(e.TargetZone)).unsigned = !1 : "string" == typeof e.TargetZone ? t.TargetZone = parseInt(e.TargetZone, 10) : "number" == typeof e.TargetZone ? t.TargetZone = e.TargetZone : "object" == typeof e.TargetZone && (t.TargetZone = new i.LongBits(e.TargetZone.low >>> 0, e.TargetZone.high >>> 0).toNumber())), e.Three) {
                    if (!Array.isArray(e.Three)) throw TypeError(".Res_Map_WorldBossGetInfo.Three: array expected");
                    t.Three = [];
                    for (var n = 0; n < e.Three.length; ++n) {
                        if ("object" != typeof e.Three[n]) throw TypeError(".Res_Map_WorldBossGetInfo.Three: object expected");
                        t.Three[n] = a.PlayerSimpleInfo.fromObject(e.Three[n])
                    }
                }
                if (null != e.MyZoneDamage && (i.Long ? (t.MyZoneDamage = i.Long.fromValue(e.MyZoneDamage)).unsigned = !1 : "string" == typeof e.MyZoneDamage ? t.MyZoneDamage = parseInt(e.MyZoneDamage, 10) : "number" == typeof e.MyZoneDamage ? t.MyZoneDamage = e.MyZoneDamage : "object" == typeof e.MyZoneDamage && (t.MyZoneDamage = new i.LongBits(e.MyZoneDamage.low >>> 0, e.MyZoneDamage.high >>> 0).toNumber())), null != e.TargetZoneDamage && (i.Long ? (t.TargetZoneDamage = i.Long.fromValue(e.TargetZoneDamage)).unsigned = !1 : "string" == typeof e.TargetZoneDamage ? t.TargetZoneDamage = parseInt(e.TargetZoneDamage, 10) : "number" == typeof e.TargetZoneDamage ? t.TargetZoneDamage = e.TargetZoneDamage : "object" == typeof e.TargetZoneDamage && (t.TargetZoneDamage = new i.LongBits(e.TargetZoneDamage.low >>> 0, e.TargetZoneDamage.high >>> 0).toNumber())), e.Bonus) {
                    if (!Array.isArray(e.Bonus)) throw TypeError(".Res_Map_WorldBossGetInfo.Bonus: array expected");
                    for (t.Bonus = [], n = 0; n < e.Bonus.length; ++n) {
                        if ("object" != typeof e.Bonus[n]) throw TypeError(".Res_Map_WorldBossGetInfo.Bonus: object expected");
                        t.Bonus[n] = a.IntArray.fromObject(e.Bonus[n])
                    }
                }
                if (null != e.MyRank && (i.Long ? (t.MyRank = i.Long.fromValue(e.MyRank)).unsigned = !1 : "string" == typeof e.MyRank ? t.MyRank = parseInt(e.MyRank, 10) : "number" == typeof e.MyRank ? t.MyRank = e.MyRank : "object" == typeof e.MyRank && (t.MyRank = new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber())), null != e.MySumDamage && (i.Long ? (t.MySumDamage = i.Long.fromValue(e.MySumDamage)).unsigned = !1 : "string" == typeof e.MySumDamage ? t.MySumDamage = parseInt(e.MySumDamage, 10) : "number" == typeof e.MySumDamage ? t.MySumDamage = e.MySumDamage : "object" == typeof e.MySumDamage && (t.MySumDamage = new i.LongBits(e.MySumDamage.low >>> 0, e.MySumDamage.high >>> 0).toNumber())), e.GotRewardsIds) {
                    if (!Array.isArray(e.GotRewardsIds)) throw TypeError(".Res_Map_WorldBossGetInfo.GotRewardsIds: array expected");
                    for (t.GotRewardsIds = [], n = 0; n < e.GotRewardsIds.length; ++n) i.Long ? (t.GotRewardsIds[n] = i.Long.fromValue(e.GotRewardsIds[n])).unsigned = !1 : "string" == typeof e.GotRewardsIds[n] ? t.GotRewardsIds[n] = parseInt(e.GotRewardsIds[n], 10) : "number" == typeof e.GotRewardsIds[n] ? t.GotRewardsIds[n] = e.GotRewardsIds[n] : "object" == typeof e.GotRewardsIds[n] && (t.GotRewardsIds[n] = new i.LongBits(e.GotRewardsIds[n].low >>> 0, e.GotRewardsIds[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Three = [], n.Bonus = [], n.GotRewardsIds = []), t.defaults) {
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.TargetZone = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.TargetZone = t.longs === String ? "0" : 0;
                    i.Long ? (o = new i.Long(0, 0, !1), n.MyZoneDamage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyZoneDamage = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.TargetZoneDamage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.TargetZoneDamage = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MyRank = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MyRank = t.longs === String ? "0" : 0, i.Long ? (o = new i.Long(0, 0, !1), n.MySumDamage = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o) : n.MySumDamage = t.longs === String ? "0" : 0
                }
                if (null != e.TargetZone && e.hasOwnProperty("TargetZone") && ("number" == typeof e.TargetZone ? n.TargetZone = t.longs === String ? String(e.TargetZone) : e.TargetZone : n.TargetZone = t.longs === String ? i.Long.prototype.toString.call(e.TargetZone) : t.longs === Number ? new i.LongBits(e.TargetZone.low >>> 0, e.TargetZone.high >>> 0).toNumber() : e.TargetZone), e.Three && e.Three.length) {
                    n.Three = [];
                    for (var r = 0; r < e.Three.length; ++r) n.Three[r] = a.PlayerSimpleInfo.toObject(e.Three[r], t)
                }
                if (null != e.MyZoneDamage && e.hasOwnProperty("MyZoneDamage") && ("number" == typeof e.MyZoneDamage ? n.MyZoneDamage = t.longs === String ? String(e.MyZoneDamage) : e.MyZoneDamage : n.MyZoneDamage = t.longs === String ? i.Long.prototype.toString.call(e.MyZoneDamage) : t.longs === Number ? new i.LongBits(e.MyZoneDamage.low >>> 0, e.MyZoneDamage.high >>> 0).toNumber() : e.MyZoneDamage), null != e.TargetZoneDamage && e.hasOwnProperty("TargetZoneDamage") && ("number" == typeof e.TargetZoneDamage ? n.TargetZoneDamage = t.longs === String ? String(e.TargetZoneDamage) : e.TargetZoneDamage : n.TargetZoneDamage = t.longs === String ? i.Long.prototype.toString.call(e.TargetZoneDamage) : t.longs === Number ? new i.LongBits(e.TargetZoneDamage.low >>> 0, e.TargetZoneDamage.high >>> 0).toNumber() : e.TargetZoneDamage), e.Bonus && e.Bonus.length)
                    for (n.Bonus = [], r = 0; r < e.Bonus.length; ++r) n.Bonus[r] = a.IntArray.toObject(e.Bonus[r], t);
                if (null != e.MyRank && e.hasOwnProperty("MyRank") && ("number" == typeof e.MyRank ? n.MyRank = t.longs === String ? String(e.MyRank) : e.MyRank : n.MyRank = t.longs === String ? i.Long.prototype.toString.call(e.MyRank) : t.longs === Number ? new i.LongBits(e.MyRank.low >>> 0, e.MyRank.high >>> 0).toNumber() : e.MyRank), null != e.MySumDamage && e.hasOwnProperty("MySumDamage") && ("number" == typeof e.MySumDamage ? n.MySumDamage = t.longs === String ? String(e.MySumDamage) : e.MySumDamage : n.MySumDamage = t.longs === String ? i.Long.prototype.toString.call(e.MySumDamage) : t.longs === Number ? new i.LongBits(e.MySumDamage.low >>> 0, e.MySumDamage.high >>> 0).toNumber() : e.MySumDamage), e.GotRewardsIds && e.GotRewardsIds.length)
                    for (n.GotRewardsIds = [], r = 0; r < e.GotRewardsIds.length; ++r) "number" == typeof e.GotRewardsIds[r] ? n.GotRewardsIds[r] = t.longs === String ? String(e.GotRewardsIds[r]) : e.GotRewardsIds[r] : n.GotRewardsIds[r] = t.longs === String ? i.Long.prototype.toString.call(e.GotRewardsIds[r]) : t.longs === Number ? new i.LongBits(e.GotRewardsIds[r].low >>> 0, e.GotRewardsIds[r].high >>> 0).toNumber() : e.GotRewardsIds[r];
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_WorldBossGetInfo"
            }, e
        }(), a.Req_Map_WorldBossChallenge = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(10).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_WorldBossChallenge; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_WorldBossChallenge) return e;
                var t = new a.Req_Map_WorldBossChallenge;
                if (e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Map_WorldBossChallenge.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Map_WorldBossChallenge.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var o = 0; o < e.Formations.length; ++o) n.Formations[o] = a.UserFormation_Model.toObject(e.Formations[o], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_WorldBossChallenge"
            }, e
        }(), a.Req_Map_WorldBossRewards = function() {
            function e(e) {
                if (this.Ids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Ids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Ids && e.Ids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Ids.length; ++n) t.int64(e.Ids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_WorldBossRewards; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Ids && r.Ids.length || (r.Ids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Ids.push(e.int64());
                            else r.Ids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Ids && e.hasOwnProperty("Ids")) {
                    if (!Array.isArray(e.Ids)) return "Ids: array expected";
                    for (var t = 0; t < e.Ids.length; ++t)
                        if (!(i.isInteger(e.Ids[t]) || e.Ids[t] && i.isInteger(e.Ids[t].low) && i.isInteger(e.Ids[t].high))) return "Ids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_WorldBossRewards) return e;
                var t = new a.Req_Map_WorldBossRewards;
                if (e.Ids) {
                    if (!Array.isArray(e.Ids)) throw TypeError(".Req_Map_WorldBossRewards.Ids: array expected");
                    t.Ids = [];
                    for (var n = 0; n < e.Ids.length; ++n) i.Long ? (t.Ids[n] = i.Long.fromValue(e.Ids[n])).unsigned = !1 : "string" == typeof e.Ids[n] ? t.Ids[n] = parseInt(e.Ids[n], 10) : "number" == typeof e.Ids[n] ? t.Ids[n] = e.Ids[n] : "object" == typeof e.Ids[n] && (t.Ids[n] = new i.LongBits(e.Ids[n].low >>> 0, e.Ids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Ids = []), e.Ids && e.Ids.length) {
                    n.Ids = [];
                    for (var o = 0; o < e.Ids.length; ++o) "number" == typeof e.Ids[o] ? n.Ids[o] = t.longs === String ? String(e.Ids[o]) : e.Ids[o] : n.Ids[o] = t.longs === String ? i.Long.prototype.toString.call(e.Ids[o]) : t.longs === Number ? new i.LongBits(e.Ids[o].low >>> 0, e.Ids[o].high >>> 0).toNumber() : e.Ids[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_WorldBossRewards"
            }, e
        }(), a.Req_Map_WorldBossRewardsInfo = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Map_WorldBossRewardsInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Map_WorldBossRewardsInfo) return e;
                var t = new a.Req_Map_WorldBossRewardsInfo;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Map_WorldBossRewardsInfo"
            }, e
        }(), a.Res_Map_WorldBossRewardsInfo = function() {
            function e(e) {
                if (this.Ids = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Ids = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Ids && e.Ids.length) {
                    t.uint32(10).fork();
                    for (var n = 0; n < e.Ids.length; ++n) t.int64(e.Ids[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Map_WorldBossRewardsInfo; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            if (r.Ids && r.Ids.length || (r.Ids = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Ids.push(e.int64());
                            else r.Ids.push(e.int64());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Ids && e.hasOwnProperty("Ids")) {
                    if (!Array.isArray(e.Ids)) return "Ids: array expected";
                    for (var t = 0; t < e.Ids.length; ++t)
                        if (!(i.isInteger(e.Ids[t]) || e.Ids[t] && i.isInteger(e.Ids[t].low) && i.isInteger(e.Ids[t].high))) return "Ids: integer|Long[] expected"
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Map_WorldBossRewardsInfo) return e;
                var t = new a.Res_Map_WorldBossRewardsInfo;
                if (e.Ids) {
                    if (!Array.isArray(e.Ids)) throw TypeError(".Res_Map_WorldBossRewardsInfo.Ids: array expected");
                    t.Ids = [];
                    for (var n = 0; n < e.Ids.length; ++n) i.Long ? (t.Ids[n] = i.Long.fromValue(e.Ids[n])).unsigned = !1 : "string" == typeof e.Ids[n] ? t.Ids[n] = parseInt(e.Ids[n], 10) : "number" == typeof e.Ids[n] ? t.Ids[n] = e.Ids[n] : "object" == typeof e.Ids[n] && (t.Ids[n] = new i.LongBits(e.Ids[n].low >>> 0, e.Ids[n].high >>> 0).toNumber())
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Ids = []), e.Ids && e.Ids.length) {
                    n.Ids = [];
                    for (var o = 0; o < e.Ids.length; ++o) "number" == typeof e.Ids[o] ? n.Ids[o] = t.longs === String ? String(e.Ids[o]) : e.Ids[o] : n.Ids[o] = t.longs === String ? i.Long.prototype.toString.call(e.Ids[o]) : t.longs === Number ? new i.LongBits(e.Ids[o].low >>> 0, e.Ids[o].high >>> 0).toNumber() : e.Ids[o]
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Map_WorldBossRewardsInfo"
            }, e
        }(), a.Req_Relic_GetMap = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Relic_GetMap; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Relic_GetMap) return e;
                var t = new a.Req_Relic_GetMap;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Relic_GetMap"
            }, e
        }(), a.Res_Relic_GetMap = function() {
            function e(e) {
                if (this.Map = [], this.NextMap = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Map = i.emptyArray, e.prototype.NextMap = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Map && e.Map.length)
                    for (var n = 0; n < e.Map.length; ++n) a.IntArray.encode(e.Map[n], t.uint32(10).fork()).ldelim();
                if (null != e.NextMap && e.NextMap.length)
                    for (n = 0; n < e.NextMap.length; ++n) a.IntArray.encode(e.NextMap[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Relic_GetMap; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Map && r.Map.length || (r.Map = []), r.Map.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.NextMap && r.NextMap.length || (r.NextMap = []), r.NextMap.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!Array.isArray(e.Map)) return "Map: array expected";
                    for (var t = 0; t < e.Map.length; ++t)
                        if (n = a.IntArray.verify(e.Map[t])) return "Map." + n
                }
                if (null != e.NextMap && e.hasOwnProperty("NextMap")) {
                    if (!Array.isArray(e.NextMap)) return "NextMap: array expected";
                    for (t = 0; t < e.NextMap.length; ++t) {
                        var n;
                        if (n = a.IntArray.verify(e.NextMap[t])) return "NextMap." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Relic_GetMap) return e;
                var t = new a.Res_Relic_GetMap;
                if (e.Map) {
                    if (!Array.isArray(e.Map)) throw TypeError(".Res_Relic_GetMap.Map: array expected");
                    t.Map = [];
                    for (var n = 0; n < e.Map.length; ++n) {
                        if ("object" != typeof e.Map[n]) throw TypeError(".Res_Relic_GetMap.Map: object expected");
                        t.Map[n] = a.IntArray.fromObject(e.Map[n])
                    }
                }
                if (e.NextMap) {
                    if (!Array.isArray(e.NextMap)) throw TypeError(".Res_Relic_GetMap.NextMap: array expected");
                    for (t.NextMap = [], n = 0; n < e.NextMap.length; ++n) {
                        if ("object" != typeof e.NextMap[n]) throw TypeError(".Res_Relic_GetMap.NextMap: object expected");
                        t.NextMap[n] = a.IntArray.fromObject(e.NextMap[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Map = [], n.NextMap = []), e.Map && e.Map.length) {
                    n.Map = [];
                    for (var o = 0; o < e.Map.length; ++o) n.Map[o] = a.IntArray.toObject(e.Map[o], t)
                }
                if (e.NextMap && e.NextMap.length)
                    for (n.NextMap = [], o = 0; o < e.NextMap.length; ++o) n.NextMap[o] = a.IntArray.toObject(e.NextMap[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Relic_GetMap"
            }, e
        }(), a.Req_Relic_ThrowingDice = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Point = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Point && Object.hasOwnProperty.call(e, "Point") && t.uint32(8).int32(e.Point), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Relic_ThrowingDice; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Point = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Point && e.hasOwnProperty("Point") && !i.isInteger(e.Point) ? "Point: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Relic_ThrowingDice) return e;
                var t = new a.Req_Relic_ThrowingDice;
                return null != e.Point && (t.Point = 0 | e.Point), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Point = 0), null != e.Point && e.hasOwnProperty("Point") && (n.Point = e.Point), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Relic_ThrowingDice"
            }, e
        }(), a.Res_Relic_ThrowingDice = function() {
            function e(e) {
                if (this.Rewards = [], this.LevelRewards = [], this.Goods = [], this.Hieron = [], this.Map = [], this.NextMap = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Point = 0, e.prototype.Type = 0, e.prototype.Rewards = i.emptyArray, e.prototype.LevelRewards = i.emptyArray, e.prototype.Goods = i.emptyArray, e.prototype.Hieron = i.emptyArray, e.prototype.Map = i.emptyArray, e.prototype.NextMap = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Point && Object.hasOwnProperty.call(e, "Point") && t.uint32(8).int32(e.Point), null != e.Type && Object.hasOwnProperty.call(e, "Type") && t.uint32(16).int32(e.Type), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(26).fork()).ldelim();
                if (null != e.LevelRewards && e.LevelRewards.length)
                    for (n = 0; n < e.LevelRewards.length; ++n) a.UserItem_Model.encode(e.LevelRewards[n], t.uint32(34).fork()).ldelim();
                if (null != e.Goods && e.Goods.length)
                    for (n = 0; n < e.Goods.length; ++n) a.IntArray.encode(e.Goods[n], t.uint32(42).fork()).ldelim();
                if (null != e.Hieron && e.Hieron.length) {
                    for (t.uint32(50).fork(), n = 0; n < e.Hieron.length; ++n) t.int64(e.Hieron[n]);
                    t.ldelim()
                }
                if (null != e.Map && e.Map.length)
                    for (n = 0; n < e.Map.length; ++n) a.IntArray.encode(e.Map[n], t.uint32(58).fork()).ldelim();
                if (null != e.NextMap && e.NextMap.length)
                    for (n = 0; n < e.NextMap.length; ++n) a.IntArray.encode(e.NextMap[n], t.uint32(66).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Relic_ThrowingDice; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Point = e.int32();
                            break;
                        case 2:
                            r.Type = e.int32();
                            break;
                        case 3:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 4:
                            r.LevelRewards && r.LevelRewards.length || (r.LevelRewards = []), r.LevelRewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 5:
                            r.Goods && r.Goods.length || (r.Goods = []), r.Goods.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 6:
                            if (r.Hieron && r.Hieron.length || (r.Hieron = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Hieron.push(e.int64());
                            else r.Hieron.push(e.int64());
                            break;
                        case 7:
                            r.Map && r.Map.length || (r.Map = []), r.Map.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 8:
                            r.NextMap && r.NextMap.length || (r.NextMap = []), r.NextMap.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Point && e.hasOwnProperty("Point") && !i.isInteger(e.Point)) return "Point: integer expected";
                if (null != e.Type && e.hasOwnProperty("Type") && !i.isInteger(e.Type)) return "Type: integer expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.LevelRewards && e.hasOwnProperty("LevelRewards")) {
                    if (!Array.isArray(e.LevelRewards)) return "LevelRewards: array expected";
                    for (t = 0; t < e.LevelRewards.length; ++t)
                        if (n = a.UserItem_Model.verify(e.LevelRewards[t])) return "LevelRewards." + n
                }
                if (null != e.Goods && e.hasOwnProperty("Goods")) {
                    if (!Array.isArray(e.Goods)) return "Goods: array expected";
                    for (t = 0; t < e.Goods.length; ++t)
                        if (n = a.IntArray.verify(e.Goods[t])) return "Goods." + n
                }
                if (null != e.Hieron && e.hasOwnProperty("Hieron")) {
                    if (!Array.isArray(e.Hieron)) return "Hieron: array expected";
                    for (t = 0; t < e.Hieron.length; ++t)
                        if (!(i.isInteger(e.Hieron[t]) || e.Hieron[t] && i.isInteger(e.Hieron[t].low) && i.isInteger(e.Hieron[t].high))) return "Hieron: integer|Long[] expected"
                }
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!Array.isArray(e.Map)) return "Map: array expected";
                    for (t = 0; t < e.Map.length; ++t)
                        if (n = a.IntArray.verify(e.Map[t])) return "Map." + n
                }
                if (null != e.NextMap && e.hasOwnProperty("NextMap")) {
                    if (!Array.isArray(e.NextMap)) return "NextMap: array expected";
                    for (t = 0; t < e.NextMap.length; ++t) {
                        var n;
                        if (n = a.IntArray.verify(e.NextMap[t])) return "NextMap." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Relic_ThrowingDice) return e;
                var t = new a.Res_Relic_ThrowingDice;
                if (null != e.Point && (t.Point = 0 | e.Point), null != e.Type && (t.Type = 0 | e.Type), e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Relic_ThrowingDice.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Relic_ThrowingDice.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (e.LevelRewards) {
                    if (!Array.isArray(e.LevelRewards)) throw TypeError(".Res_Relic_ThrowingDice.LevelRewards: array expected");
                    for (t.LevelRewards = [], n = 0; n < e.LevelRewards.length; ++n) {
                        if ("object" != typeof e.LevelRewards[n]) throw TypeError(".Res_Relic_ThrowingDice.LevelRewards: object expected");
                        t.LevelRewards[n] = a.UserItem_Model.fromObject(e.LevelRewards[n])
                    }
                }
                if (e.Goods) {
                    if (!Array.isArray(e.Goods)) throw TypeError(".Res_Relic_ThrowingDice.Goods: array expected");
                    for (t.Goods = [], n = 0; n < e.Goods.length; ++n) {
                        if ("object" != typeof e.Goods[n]) throw TypeError(".Res_Relic_ThrowingDice.Goods: object expected");
                        t.Goods[n] = a.IntArray.fromObject(e.Goods[n])
                    }
                }
                if (e.Hieron) {
                    if (!Array.isArray(e.Hieron)) throw TypeError(".Res_Relic_ThrowingDice.Hieron: array expected");
                    for (t.Hieron = [], n = 0; n < e.Hieron.length; ++n) i.Long ? (t.Hieron[n] = i.Long.fromValue(e.Hieron[n])).unsigned = !1 : "string" == typeof e.Hieron[n] ? t.Hieron[n] = parseInt(e.Hieron[n], 10) : "number" == typeof e.Hieron[n] ? t.Hieron[n] = e.Hieron[n] : "object" == typeof e.Hieron[n] && (t.Hieron[n] = new i.LongBits(e.Hieron[n].low >>> 0, e.Hieron[n].high >>> 0).toNumber())
                }
                if (e.Map) {
                    if (!Array.isArray(e.Map)) throw TypeError(".Res_Relic_ThrowingDice.Map: array expected");
                    for (t.Map = [], n = 0; n < e.Map.length; ++n) {
                        if ("object" != typeof e.Map[n]) throw TypeError(".Res_Relic_ThrowingDice.Map: object expected");
                        t.Map[n] = a.IntArray.fromObject(e.Map[n])
                    }
                }
                if (e.NextMap) {
                    if (!Array.isArray(e.NextMap)) throw TypeError(".Res_Relic_ThrowingDice.NextMap: array expected");
                    for (t.NextMap = [], n = 0; n < e.NextMap.length; ++n) {
                        if ("object" != typeof e.NextMap[n]) throw TypeError(".Res_Relic_ThrowingDice.NextMap: object expected");
                        t.NextMap[n] = a.IntArray.fromObject(e.NextMap[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.LevelRewards = [], n.Goods = [], n.Hieron = [], n.Map = [], n.NextMap = []), t.defaults && (n.Point = 0, n.Type = 0), null != e.Point && e.hasOwnProperty("Point") && (n.Point = e.Point), null != e.Type && e.hasOwnProperty("Type") && (n.Type = e.Type), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                if (e.LevelRewards && e.LevelRewards.length)
                    for (n.LevelRewards = [], o = 0; o < e.LevelRewards.length; ++o) n.LevelRewards[o] = a.UserItem_Model.toObject(e.LevelRewards[o], t);
                if (e.Goods && e.Goods.length)
                    for (n.Goods = [], o = 0; o < e.Goods.length; ++o) n.Goods[o] = a.IntArray.toObject(e.Goods[o], t);
                if (e.Hieron && e.Hieron.length)
                    for (n.Hieron = [], o = 0; o < e.Hieron.length; ++o) "number" == typeof e.Hieron[o] ? n.Hieron[o] = t.longs === String ? String(e.Hieron[o]) : e.Hieron[o] : n.Hieron[o] = t.longs === String ? i.Long.prototype.toString.call(e.Hieron[o]) : t.longs === Number ? new i.LongBits(e.Hieron[o].low >>> 0, e.Hieron[o].high >>> 0).toNumber() : e.Hieron[o];
                if (e.Map && e.Map.length)
                    for (n.Map = [], o = 0; o < e.Map.length; ++o) n.Map[o] = a.IntArray.toObject(e.Map[o], t);
                if (e.NextMap && e.NextMap.length)
                    for (n.NextMap = [], o = 0; o < e.NextMap.length; ++o) n.NextMap[o] = a.IntArray.toObject(e.NextMap[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Relic_ThrowingDice"
            }, e
        }(), a.Req_Relic_Fork = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Direction = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Direction && Object.hasOwnProperty.call(e, "Direction") && t.uint32(8).int32(e.Direction), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Relic_Fork; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Direction = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Direction && e.hasOwnProperty("Direction") && !i.isInteger(e.Direction) ? "Direction: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Relic_Fork) return e;
                var t = new a.Req_Relic_Fork;
                return null != e.Direction && (t.Direction = 0 | e.Direction), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Direction = 0), null != e.Direction && e.hasOwnProperty("Direction") && (n.Direction = e.Direction), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Relic_Fork"
            }, e
        }(), a.Req_Relic_BuyDice = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Count = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Count && Object.hasOwnProperty.call(e, "Count") && t.uint32(8).int64(e.Count), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Relic_BuyDice; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Count = e.int64();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Count && e.hasOwnProperty("Count") && !(i.isInteger(e.Count) || e.Count && i.isInteger(e.Count.low) && i.isInteger(e.Count.high)) ? "Count: integer|Long expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Relic_BuyDice) return e;
                var t = new a.Req_Relic_BuyDice;
                return null != e.Count && (i.Long ? (t.Count = i.Long.fromValue(e.Count)).unsigned = !1 : "string" == typeof e.Count ? t.Count = parseInt(e.Count, 10) : "number" == typeof e.Count ? t.Count = e.Count : "object" == typeof e.Count && (t.Count = new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber())), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if (t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Count = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Count = t.longs === String ? "0" : 0;
                return null != e.Count && e.hasOwnProperty("Count") && ("number" == typeof e.Count ? n.Count = t.longs === String ? String(e.Count) : e.Count : n.Count = t.longs === String ? i.Long.prototype.toString.call(e.Count) : t.longs === Number ? new i.LongBits(e.Count.low >>> 0, e.Count.high >>> 0).toNumber() : e.Count), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Relic_BuyDice"
            }, e
        }(), a.Req_Relic_SlotMachine = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Relic_SlotMachine; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Relic_SlotMachine) return e;
                var t = new a.Req_Relic_SlotMachine;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Relic_SlotMachine"
            }, e
        }(), a.Req_Relic_Compass = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Relic_Compass; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Relic_Compass) return e;
                var t = new a.Req_Relic_Compass;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Relic_Compass"
            }, e
        }(), a.Req_Relic_CompassSelect = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Index = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(8).int32(e.Index), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Relic_CompassSelect; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Index = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Index && e.hasOwnProperty("Index") && !i.isInteger(e.Index) ? "Index: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Relic_CompassSelect) return e;
                var t = new a.Req_Relic_CompassSelect;
                return null != e.Index && (t.Index = 0 | e.Index), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Index = 0), null != e.Index && e.hasOwnProperty("Index") && (n.Index = e.Index), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Relic_CompassSelect"
            }, e
        }(), a.Req_Relic_BuyGoods = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Index = 0, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(8).int32(e.Index), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Relic_BuyGoods; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Index = e.int32();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.Index && e.hasOwnProperty("Index") && !i.isInteger(e.Index) ? "Index: integer expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Relic_BuyGoods) return e;
                var t = new a.Req_Relic_BuyGoods;
                return null != e.Index && (t.Index = 0 | e.Index), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.Index = 0), null != e.Index && e.hasOwnProperty("Index") && (n.Index = e.Index), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Relic_BuyGoods"
            }, e
        }(), a.Req_Secret_GetMap = function() {
            function e(e) {
                if (e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.None = !1, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                return t || (t = r.create()), null != e.None && Object.hasOwnProperty.call(e, "None") && t.uint32(8).bool(e.None), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Secret_GetMap; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.None = e.bool();
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                return "object" != typeof e || null === e ? "object expected" : null != e.None && e.hasOwnProperty("None") && "boolean" != typeof e.None ? "None: boolean expected" : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Secret_GetMap) return e;
                var t = new a.Req_Secret_GetMap;
                return null != e.None && (t.None = Boolean(e.None)), t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                return t.defaults && (n.None = !1), null != e.None && e.hasOwnProperty("None") && (n.None = e.None), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Secret_GetMap"
            }, e
        }(), a.Res_Secret_GetMap = function() {
            function e(e) {
                if (this.Map = [], this.Rewards = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Map = i.emptyArray, e.prototype.Rewards = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Map && e.Map.length)
                    for (var n = 0; n < e.Map.length; ++n) a.IntArray.encode(e.Map[n], t.uint32(10).fork()).ldelim();
                if (null != e.Rewards && e.Rewards.length)
                    for (n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Secret_GetMap; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Map && r.Map.length || (r.Map = []), r.Map.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!Array.isArray(e.Map)) return "Map: array expected";
                    for (var t = 0; t < e.Map.length; ++t)
                        if (n = a.IntArray.verify(e.Map[t])) return "Map." + n
                }
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (t = 0; t < e.Rewards.length; ++t) {
                        var n;
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Secret_GetMap) return e;
                var t = new a.Res_Secret_GetMap;
                if (e.Map) {
                    if (!Array.isArray(e.Map)) throw TypeError(".Res_Secret_GetMap.Map: array expected");
                    t.Map = [];
                    for (var n = 0; n < e.Map.length; ++n) {
                        if ("object" != typeof e.Map[n]) throw TypeError(".Res_Secret_GetMap.Map: object expected");
                        t.Map[n] = a.IntArray.fromObject(e.Map[n])
                    }
                }
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Secret_GetMap.Rewards: array expected");
                    for (t.Rewards = [], n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Secret_GetMap.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Map = [], n.Rewards = []), e.Map && e.Map.length) {
                    n.Map = [];
                    for (var o = 0; o < e.Map.length; ++o) n.Map[o] = a.IntArray.toObject(e.Map[o], t)
                }
                if (e.Rewards && e.Rewards.length)
                    for (n.Rewards = [], o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t);
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Secret_GetMap"
            }, e
        }(), a.Req_Secret_Click = function() {
            function e(e) {
                if (this.Formations = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Index = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Formations = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Index && Object.hasOwnProperty.call(e, "Index") && t.uint32(8).int64(e.Index), null != e.Formations && e.Formations.length)
                    for (var n = 0; n < e.Formations.length; ++n) a.UserFormation_Model.encode(e.Formations[n], t.uint32(18).fork()).ldelim();
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Secret_Click; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Index = e.int64();
                            break;
                        case 2:
                            r.Formations && r.Formations.length || (r.Formations = []), r.Formations.push(a.UserFormation_Model.decode(e, e.uint32()));
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Index && e.hasOwnProperty("Index") && !(i.isInteger(e.Index) || e.Index && i.isInteger(e.Index.low) && i.isInteger(e.Index.high))) return "Index: integer|Long expected";
                if (null != e.Formations && e.hasOwnProperty("Formations")) {
                    if (!Array.isArray(e.Formations)) return "Formations: array expected";
                    for (var t = 0; t < e.Formations.length; ++t) {
                        var n = a.UserFormation_Model.verify(e.Formations[t]);
                        if (n) return "Formations." + n
                    }
                }
                return null
            }, e.fromObject = function(e) {
                if (e instanceof a.Req_Secret_Click) return e;
                var t = new a.Req_Secret_Click;
                if (null != e.Index && (i.Long ? (t.Index = i.Long.fromValue(e.Index)).unsigned = !1 : "string" == typeof e.Index ? t.Index = parseInt(e.Index, 10) : "number" == typeof e.Index ? t.Index = e.Index : "object" == typeof e.Index && (t.Index = new i.LongBits(e.Index.low >>> 0, e.Index.high >>> 0).toNumber())), e.Formations) {
                    if (!Array.isArray(e.Formations)) throw TypeError(".Req_Secret_Click.Formations: array expected");
                    t.Formations = [];
                    for (var n = 0; n < e.Formations.length; ++n) {
                        if ("object" != typeof e.Formations[n]) throw TypeError(".Req_Secret_Click.Formations: object expected");
                        t.Formations[n] = a.UserFormation_Model.fromObject(e.Formations[n])
                    }
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Formations = []), t.defaults)
                    if (i.Long) {
                        var o = new i.Long(0, 0, !1);
                        n.Index = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o
                    } else n.Index = t.longs === String ? "0" : 0;
                if (null != e.Index && e.hasOwnProperty("Index") && ("number" == typeof e.Index ? n.Index = t.longs === String ? String(e.Index) : e.Index : n.Index = t.longs === String ? i.Long.prototype.toString.call(e.Index) : t.longs === Number ? new i.LongBits(e.Index.low >>> 0, e.Index.high >>> 0).toNumber() : e.Index), e.Formations && e.Formations.length) {
                    n.Formations = [];
                    for (var r = 0; r < e.Formations.length; ++r) n.Formations[r] = a.UserFormation_Model.toObject(e.Formations[r], t)
                }
                return n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Req_Secret_Click"
            }, e
        }(), a.Res_Secret_Click = function() {
            function e(e) {
                if (this.Rewards = [], this.Map = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.Rewards = i.emptyArray, e.prototype.Map = i.emptyArray, e.prototype.Report = null, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.Rewards && e.Rewards.length)
                    for (var n = 0; n < e.Rewards.length; ++n) a.UserItem_Model.encode(e.Rewards[n], t.uint32(10).fork()).ldelim();
                if (null != e.Map && e.Map.length)
                    for (n = 0; n < e.Map.length; ++n) a.IntArray.encode(e.Map[n], t.uint32(18).fork()).ldelim();
                return null != e.Report && Object.hasOwnProperty.call(e, "Report") && a.BattleReport.encode(e.Report, t.uint32(26).fork()).ldelim(), t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Res_Secret_Click; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.Rewards && r.Rewards.length || (r.Rewards = []), r.Rewards.push(a.UserItem_Model.decode(e, e.uint32()));
                            break;
                        case 2:
                            r.Map && r.Map.length || (r.Map = []), r.Map.push(a.IntArray.decode(e, e.uint32()));
                            break;
                        case 3:
                            r.Report = a.BattleReport.decode(e, e.uint32());
                            break;
                        default:
                            e.skipType(7 & i)
                    }
                }
                return r
            }, e.decodeDelimited = function(e) {
                return e instanceof o || (e = new o(e)), this.decode(e, e.uint32())
            }, e.verify = function(e) {
                if ("object" != typeof e || null === e) return "object expected";
                if (null != e.Rewards && e.hasOwnProperty("Rewards")) {
                    if (!Array.isArray(e.Rewards)) return "Rewards: array expected";
                    for (var t = 0; t < e.Rewards.length; ++t)
                        if (n = a.UserItem_Model.verify(e.Rewards[t])) return "Rewards." + n
                }
                if (null != e.Map && e.hasOwnProperty("Map")) {
                    if (!Array.isArray(e.Map)) return "Map: array expected";
                    for (t = 0; t < e.Map.length; ++t)
                        if (n = a.IntArray.verify(e.Map[t])) return "Map." + n
                }
                var n;
                return null != e.Report && e.hasOwnProperty("Report") && (n = a.BattleReport.verify(e.Report)) ? "Report." + n : null
            }, e.fromObject = function(e) {
                if (e instanceof a.Res_Secret_Click) return e;
                var t = new a.Res_Secret_Click;
                if (e.Rewards) {
                    if (!Array.isArray(e.Rewards)) throw TypeError(".Res_Secret_Click.Rewards: array expected");
                    t.Rewards = [];
                    for (var n = 0; n < e.Rewards.length; ++n) {
                        if ("object" != typeof e.Rewards[n]) throw TypeError(".Res_Secret_Click.Rewards: object expected");
                        t.Rewards[n] = a.UserItem_Model.fromObject(e.Rewards[n])
                    }
                }
                if (e.Map) {
                    if (!Array.isArray(e.Map)) throw TypeError(".Res_Secret_Click.Map: array expected");
                    for (t.Map = [], n = 0; n < e.Map.length; ++n) {
                        if ("object" != typeof e.Map[n]) throw TypeError(".Res_Secret_Click.Map: object expected");
                        t.Map[n] = a.IntArray.fromObject(e.Map[n])
                    }
                }
                if (null != e.Report) {
                    if ("object" != typeof e.Report) throw TypeError(".Res_Secret_Click.Report: object expected");
                    t.Report = a.BattleReport.fromObject(e.Report)
                }
                return t
            }, e.toObject = function(e, t) {
                t || (t = {});
                var n = {};
                if ((t.arrays || t.defaults) && (n.Rewards = [], n.Map = []), t.defaults && (n.Report = null), e.Rewards && e.Rewards.length) {
                    n.Rewards = [];
                    for (var o = 0; o < e.Rewards.length; ++o) n.Rewards[o] = a.UserItem_Model.toObject(e.Rewards[o], t)
                }
                if (e.Map && e.Map.length)
                    for (n.Map = [], o = 0; o < e.Map.length; ++o) n.Map[o] = a.IntArray.toObject(e.Map[o], t);
                return null != e.Report && e.hasOwnProperty("Report") && (n.Report = a.BattleReport.toObject(e.Report, t)), n
            }, e.prototype.toJSON = function() {
                return this.constructor.toObject(this, n.util.toJSONOptions)
            }, e.getTypeUrl = function(e) {
                return void 0 === e && (e = "type.googleapis.com"), e + "/Res_Secret_Click"
            }, e
        }(), a.Req_Secret_UseProp = function() {
            function e(e) {
                if (this.Param = [], e)
                    for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]])
            }
            return e.prototype.PropIndex = i.Long ? i.Long.fromBits(0, 0, !1) : 0, e.prototype.Param = i.emptyArray, e.create = function(t) {
                return new e(t)
            }, e.encode = function(e, t) {
                if (t || (t = r.create()), null != e.PropIndex && Object.hasOwnProperty.call(e, "PropIndex") && t.uint32(8).int64(e.PropIndex), null != e.Param && e.Param.length) {
                    t.uint32(18).fork();
                    for (var n = 0; n < e.Param.length; ++n) t.int64(e.Param[n]);
                    t.ldelim()
                }
                return t
            }, e.encodeDelimited = function(e, t) {
                return this.encode(e, t).ldelim()
            }, e.decode = function(e, t) {
                e instanceof o || (e = o.create(e));
                for (var n = void 0 === t ? e.len : e.pos + t, r = new a.Req_Secret_UseProp; e.pos < n;) {
                    var i = e.uint32();
                    switch (i >>> 3) {
                        case 1:
                            r.PropIndex = e.int64();
                            break;
                        case 2:
                            if (r.Param && r.Param.length || (r.Param = []), 2 == (7 & i))
                                for (var s = e.uint32() + e.pos; e.pos < s;) r.Param.push(e.int64());
                            else r.Param.p